jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
6,772 lines • 1.23 MB
JavaScript
/* Release Date: Jan-02-2026
Copyright (c) 2011-2026 jQWidgets.
License: https://jqwidgets.com/license/ */
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 7662:
/***/ ((module) => {
/* tslint:disable */
/* eslint-disable */
/* tslint:disable */
/* eslint-disable */
(function() {
if (typeof document === 'undefined') {
return;
}
/*!
* Globalize
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
(function( window, undefined ) {
if (document.Globalize) {
return;
}
var Globalize,
// private variables
regexHex,
regexInfinity,
regexParseFloat,
regexTrim,
// private JavaScript utility functions
arrayIndexOf,
endsWith,
extend,
isArray,
isFunction,
isObject,
startsWith,
trim,
truncate,
zeroPad,
// private Globalization utility functions
appendPreOrPostMatch,
expandFormat,
formatDate,
formatNumber,
getTokenRegExp,
getEra,
getEraYear,
parseExact,
parseNegativePattern;
// Global variable (Globalize) or CommonJS module (globalize)
Globalize = function( cultureSelector ) {
return new Globalize.prototype.init( cultureSelector );
};
if ( true ) {
// Assume CommonJS
module.exports = Globalize;
} else {}
Globalize.cultures = {};
Globalize.prototype = {
constructor: Globalize,
init: function( cultureSelector ) {
this.cultures = Globalize.cultures;
this.cultureSelector = cultureSelector;
return this;
}
};
Globalize.prototype.init.prototype = Globalize.prototype;
// 1. When defining a culture, all fields are required except the ones stated as optional.
// 2. Each culture should have a ".calendars" object with at least one calendar named "standard"
// which serves as the default calendar in use by that culture.
// 3. Each culture should have a ".calendar" object which is the current calendar being used,
// it may be dynamically changed at any time to one of the calendars in ".calendars".
Globalize.cultures[ "default" ] = {
// A unique name for the culture in the form <language code>-<country/region code>
name: "en",
// the name of the culture in the english language
englishName: "English",
// the name of the culture in its own language
nativeName: "English",
// whether the culture uses right-to-left text
isRTL: false,
// "language" is used for so-called "specific" cultures.
// For example, the culture "es-CL" means "Spanish, in Chili".
// It represents the Spanish-speaking culture as it is in Chili,
// which might have different formatting rules or even translations
// than Spanish in Spain. A "neutral" culture is one that is not
// specific to a region. For example, the culture "es" is the generic
// Spanish culture, which may be a more generalized version of the language
// that may or may not be what a specific culture expects.
// For a specific culture like "es-CL", the "language" field refers to the
// neutral, generic culture information for the language it is using.
// This is not always a simple matter of the string before the dash.
// For example, the "zh-Hans" culture is netural (Simplified Chinese).
// And the "zh-SG" culture is Simplified Chinese in Singapore, whose lanugage
// field is "zh-CHS", not "zh".
// This field should be used to navigate from a specific culture to it's
// more general, neutral culture. If a culture is already as general as it
// can get, the language may refer to itself.
language: "en",
// numberFormat defines general number formatting rules, like the digits in
// each grouping, the group separator, and how negative numbers are displayed.
numberFormat: {
// [negativePattern]
// Note, numberFormat.pattern has no "positivePattern" unlike percent and currency,
// but is still defined as an array for consistency with them.
// negativePattern: one of "(n)|-n|- n|n-|n -"
pattern: [ "-n" ],
// number of decimal places normally shown
decimals: 2,
// string that separates number groups, as in 1,000,000
",": ",",
// string that separates a number from the fractional portion, as in 1.99
".": ".",
// array of numbers indicating the size of each number group.
// TODO: more detailed description and example
groupSizes: [ 3 ],
// symbol used for positive numbers
"+": "+",
// symbol used for negative numbers
"-": "-",
// symbol used for NaN (Not-A-Number)
"NaN": "NaN",
// symbol used for Negative Infinity
negativeInfinity: "-Infinity",
// symbol used for Positive Infinity
positiveInfinity: "Infinity",
percent: {
// [negativePattern, positivePattern]
// negativePattern: one of "-n %|-n%|-%n|%-n|%n-|n-%|n%-|-% n|n %-|% n-|% -n|n- %"
// positivePattern: one of "n %|n%|%n|% n"
pattern: [ "-n %", "n %" ],
// number of decimal places normally shown
decimals: 2,
// array of numbers indicating the size of each number group.
// TODO: more detailed description and example
groupSizes: [ 3 ],
// string that separates number groups, as in 1,000,000
",": ",",
// string that separates a number from the fractional portion, as in 1.99
".": ".",
// symbol used to represent a percentage
symbol: "%"
},
currency: {
// [negativePattern, positivePattern]
// negativePattern: one of "($n)|-$n|$-n|$n-|(n$)|-n$|n-$|n$-|-n $|-$ n|n $-|$ n-|$ -n|n- $|($ n)|(n $)"
// positivePattern: one of "$n|n$|$ n|n $"
pattern: [ "($n)", "$n" ],
// number of decimal places normally shown
decimals: 2,
// array of numbers indicating the size of each number group.
// TODO: more detailed description and example
groupSizes: [ 3 ],
// string that separates number groups, as in 1,000,000
",": ",",
// string that separates a number from the fractional portion, as in 1.99
".": ".",
// symbol used to represent currency
symbol: "$"
}
},
// calendars defines all the possible calendars used by this culture.
// There should be at least one defined with name "standard", and is the default
// calendar used by the culture.
// A calendar contains information about how dates are formatted, information about
// the calendar's eras, a standard set of the date formats,
// translations for day and month names, and if the calendar is not based on the Gregorian
// calendar, conversion functions to and from the Gregorian calendar.
calendars: {
standard: {
// name that identifies the type of calendar this is
name: "Gregorian_USEnglish",
// separator of parts of a date (e.g. "/" in 11/05/1955)
"/": "/",
// separator of parts of a time (e.g. ":" in 05:44 PM)
":": ":",
// the first day of the week (0 = Sunday, 1 = Monday, etc)
firstDay: 0,
days: {
// full day names
names: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ],
// abbreviated day names
namesAbbr: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ],
// shortest day names
namesShort: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ]
},
months: {
// full month names (13 months for lunar calendards -- 13th month should be "" if not lunar)
names: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", "" ],
// abbreviated month names
namesAbbr: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "" ]
},
// AM and PM designators in one of these forms:
// The usual view, and the upper and lower case versions
// [ standard, lowercase, uppercase ]
// The culture does not use AM or PM (likely all standard date formats use 24 hour time)
// null
AM: [ "AM", "am", "AM" ],
PM: [ "PM", "pm", "PM" ],
eras: [
// eras in reverse chronological order.
// name: the name of the era in this culture (e.g. A.D., C.E.)
// start: when the era starts in ticks (gregorian, gmt), null if it is the earliest supported era.
// offset: offset in years from gregorian calendar
{
"name": "A.D.",
"start": null,
"offset": 0
}
],
// when a two digit year is given, it will never be parsed as a four digit
// year greater than this year (in the appropriate era for the culture)
// Set it as a full year (e.g. 2029) or use an offset format starting from
// the current year: "+19" would correspond to 2029 if the current year 2010.
twoDigitYearMax: 2029,
// set of predefined date and time patterns used by the culture
// these represent the format someone in this culture would expect
// to see given the portions of the date that are shown.
patterns: {
// short date pattern
d: "M/d/yyyy",
// long date pattern
D: "dddd, MMMM dd, yyyy",
// short time pattern
t: "h:mm tt",
// long time pattern
T: "h:mm:ss tt",
// long date, short time pattern
f: "dddd, MMMM dd, yyyy h:mm tt",
// long date, long time pattern
F: "dddd, MMMM dd, yyyy h:mm:ss tt",
// month/day pattern
M: "MMMM dd",
// month/year pattern
Y: "yyyy MMMM",
// S is a sortable format that does not vary by culture
S: "yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss"
}
// optional fields for each calendar:
/*
monthsGenitive:
Same as months but used when the day preceeds the month.
Omit if the culture has no genitive distinction in month names.
For an explaination of genitive months, see http://blogs.msdn.com/michkap/archive/2004/12/25/332259.aspx
convert:
Allows for the support of non-gregorian based calendars. This convert object is used to
to convert a date to and from a gregorian calendar date to handle parsing and formatting.
The two functions:
fromGregorian( date )
Given the date as a parameter, return an array with parts [ year, month, day ]
corresponding to the non-gregorian based year, month, and day for the calendar.
toGregorian( year, month, day )
Given the non-gregorian year, month, and day, return a new Date() object
set to the corresponding date in the gregorian calendar.
*/
}
},
// For localized strings
messages: {}
};
Globalize.cultures[ "default" ].calendar = Globalize.cultures[ "default" ].calendars.standard;
Globalize.cultures.en = Globalize.cultures[ "default" ];
Globalize.cultureSelector = "en";
//
// private variables
//
regexHex = /^0x[a-f0-9]+$/i;
regexInfinity = /^[+\-]?infinity$/i;
regexParseFloat = /^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/;
regexTrim = /^\s+|\s+$/g;
//
// private JavaScript utility functions
//
arrayIndexOf = function( array, item ) {
if ( array.indexOf ) {
return array.indexOf( item );
}
for ( var i = 0, length = array.length; i < length; i++ ) {
if ( array[i] === item ) {
return i;
}
}
return -1;
};
endsWith = function( value, pattern ) {
return value.substr( value.length - pattern.length ) === pattern;
};
extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
deep = false;
// Handle a deep copy situation
if ( typeof target === "boolean" ) {
deep = target;
target = arguments[1] || {};
// skip the boolean and the target
i = 2;
}
// Handle case when target is a string or something (possible in deep copy)
if ( typeof target !== "object" && !isFunction(target) ) {
target = {};
}
for ( ; i < length; i++ ) {
// Only deal with non-null/undefined values
if ( (options = arguments[ i ]) != null ) {
// Extend the base object
for ( name in options ) {
src = target[ name ];
copy = options[ name ];
// Prevent never-ending loop
if ( target === copy ) {
continue;
}
// Recurse if we're merging plain objects or arrays
if ( deep && copy && ( isObject(copy) || (copyIsArray = isArray(copy)) ) ) {
if ( copyIsArray ) {
copyIsArray = false;
clone = src && isArray(src) ? src : [];
} else {
clone = src && isObject(src) ? src : {};
}
// Never move original objects, clone them
target[ name ] = extend( deep, clone, copy );
// Don't bring in undefined values
} else if ( copy !== undefined ) {
target[ name ] = copy;
}
}
}
}
// Return the modified object
return target;
};
isArray = Array.isArray || function( obj ) {
return Object.prototype.toString.call( obj ) === "[object Array]";
};
isFunction = function( obj ) {
return Object.prototype.toString.call( obj ) === "[object Function]";
};
isObject = function( obj ) {
return Object.prototype.toString.call( obj ) === "[object Object]";
};
startsWith = function( value, pattern ) {
return value.indexOf( pattern ) === 0;
};
trim = function( value ) {
return ( value + "" ).replace( regexTrim, "" );
};
truncate = function( value ) {
if ( isNaN( value ) ) {
return NaN;
}
return Math[ value < 0 ? "ceil" : "floor" ]( value );
};
zeroPad = function( str, count, left ) {
var l;
for ( l = str.length; l < count; l += 1 ) {
str = ( left ? ("0" + str) : (str + "0") );
}
return str;
};
//
// private Globalization utility functions
//
appendPreOrPostMatch = function( preMatch, strings ) {
// appends pre- and post- token match strings while removing escaped characters.
// Returns a single quote count which is used to determine if the token occurs
// in a string literal.
var quoteCount = 0,
escaped = false;
for ( var i = 0, il = preMatch.length; i < il; i++ ) {
var c = preMatch.charAt( i );
switch ( c ) {
case "\'":
if ( escaped ) {
strings.push( "\'" );
}
else {
quoteCount++;
}
escaped = false;
break;
case "\\":
if ( escaped ) {
strings.push( "\\" );
}
escaped = !escaped;
break;
default:
strings.push( c );
escaped = false;
break;
}
}
return quoteCount;
};
expandFormat = function( cal, format ) {
// expands unspecified or single character date formats into the full pattern.
format = format || "F";
var pattern,
patterns = cal.patterns,
len = format.length;
if ( len === 1 ) {
pattern = patterns[ format ];
if ( !pattern ) {
throw "Invalid date format string \'" + format + "\'.";
}
format = pattern;
}
else if ( len === 2 && format.charAt(0) === "%" ) {
// %X escape format -- intended as a custom format string that is only one character, not a built-in format.
format = format.charAt( 1 );
}
return format;
};
formatDate = function( value, format, culture ) {
var cal = culture.calendar,
convert = cal.convert,
ret;
if ( !format || !format.length || format === "i" ) {
if ( culture && culture.name.length ) {
if ( convert ) {
// non-gregorian calendar, so we cannot use built-in toLocaleString()
ret = formatDate( value, cal.patterns.F, culture );
}
else {
var eraDate = new Date( value.getTime() ),
era = getEra( value, cal.eras );
eraDate.setFullYear( getEraYear(value, cal, era) );
ret = eraDate.toLocaleString();
}
}
else {
ret = value.toString();
}
return ret;
}
var eras = cal.eras,
sortable = format === "s";
format = expandFormat( cal, format );
// Start with an empty string
ret = [];
var hour,
zeros = [ "0", "00", "000" ],
foundDay,
checkedDay,
dayPartRegExp = /([^d]|^)(d|dd)([^d]|$)/g,
quoteCount = 0,
tokenRegExp = getTokenRegExp(),
converted;
//function padZeros( num, c ) {
// var r, s = num + "";
// if ( c > 1 && s.length < c ) {
// r = ( zeros[c - 2] + s);
// return r.substr( r.length - c, c );
// }
// else {
// r = s;
// }
// return r;
//}
function padZeros(num, c) {
if (num < 0) {
return "-" + padZeros(-num, c);
}
var r, s = num + "";
if (c > 1 && s.length < c) {
r = (zeros[c - 2] + s);
return r.substr(r.length - c, c);
}
else {
r = s;
}
return r;
}
function hasDay() {
if ( foundDay || checkedDay ) {
return foundDay;
}
foundDay = dayPartRegExp.test( format );
checkedDay = true;
return foundDay;
}
function getPart( date, part ) {
if ( converted ) {
return converted[ part ];
}
switch ( part ) {
case 0:
return date.getFullYear();
case 1:
return date.getMonth();
case 2:
return date.getDate();
default:
throw "Invalid part value " + part;
}
}
if ( !sortable && convert ) {
converted = convert.fromGregorian( value );
}
for ( ; ; ) {
// Save the current index
var index = tokenRegExp.lastIndex,
// Look for the next pattern
ar = tokenRegExp.exec( format );
// Append the text before the pattern (or the end of the string if not found)
var preMatch = format.slice( index, ar ? ar.index : format.length );
quoteCount += appendPreOrPostMatch( preMatch, ret );
if ( !ar ) {
break;
}
// do not replace any matches that occur inside a string literal.
if ( quoteCount % 2 ) {
ret.push( ar[0] );
continue;
}
var current = ar[ 0 ],
clength = current.length;
switch ( current ) {
case "ddd":
//Day of the week, as a three-letter abbreviation
case "dddd":
// Day of the week, using the full name
var names = ( clength === 3 ) ? cal.days.namesAbbr : cal.days.names;
ret.push( names[value.getDay()] );
break;
case "d":
// Day of month, without leading zero for single-digit days
case "dd":
// Day of month, with leading zero for single-digit days
foundDay = true;
ret.push(
padZeros( getPart(value, 2), clength )
);
break;
case "MMM":
// Month, as a three-letter abbreviation
case "MMMM":
// Month, using the full name
var part = getPart( value, 1 );
ret.push(
( cal.monthsGenitive && hasDay() ) ?
( cal.monthsGenitive[ clength === 3 ? "namesAbbr" : "names" ][ part ] ) :
( cal.months[ clength === 3 ? "namesAbbr" : "names" ][ part ] )
);
break;
case "M":
// Month, as digits, with no leading zero for single-digit months
case "MM":
// Month, as digits, with leading zero for single-digit months
ret.push(
padZeros( getPart(value, 1) + 1, clength )
);
break;
case "y":
// Year, as two digits, but with no leading zero for years less than 10
case "yy":
// Year, as two digits, with leading zero for years less than 10
case "yyyy":
// Year represented by four full digits
part = converted ? converted[ 0 ] : getEraYear( value, cal, getEra(value, eras), sortable );
if ( clength < 4 ) {
part = part % 100;
}
ret.push(
padZeros( part, clength )
);
break;
case "h":
// Hours with no leading zero for single-digit hours, using 12-hour clock
case "hh":
// Hours with leading zero for single-digit hours, using 12-hour clock
hour = value.getHours() % 12;
if ( hour === 0 ) hour = 12;
ret.push(
padZeros( hour, clength )
);
break;
case "H":
// Hours with no leading zero for single-digit hours, using 24-hour clock
case "HH":
// Hours with leading zero for single-digit hours, using 24-hour clock
ret.push(
padZeros( value.getHours(), clength )
);
break;
case "m":
// Minutes with no leading zero for single-digit minutes
case "mm":
// Minutes with leading zero for single-digit minutes
ret.push(
padZeros( value.getMinutes(), clength )
);
break;
case "s":
// Seconds with no leading zero for single-digit seconds
case "ss":
// Seconds with leading zero for single-digit seconds
ret.push(
padZeros( value.getSeconds(), clength )
);
break;
case "t":
// One character am/pm indicator ("a" or "p")
case "tt":
// Multicharacter am/pm indicator
part = value.getHours() < 12 ? ( cal.AM ? cal.AM[0] : " " ) : ( cal.PM ? cal.PM[0] : " " );
ret.push( clength === 1 ? part.charAt(0) : part );
break;
case "f":
// Deciseconds
case "ff":
// Centiseconds
case "fff":
// Milliseconds
ret.push(
padZeros( value.getMilliseconds(), 3 ).substr( 0, clength )
);
break;
case "z":
// Time zone offset, no leading zero
case "zz":
// Time zone offset with leading zero
hour = value.getTimezoneOffset() / 60;
ret.push(
( hour <= 0 ? "+" : "-" ) + padZeros( Math.floor(Math.abs(hour)), clength )
);
break;
case "zzz":
// Time zone offset with leading zero
hour = value.getTimezoneOffset() / 60;
ret.push(
( hour <= 0 ? "+" : "-" ) + padZeros( Math.floor(Math.abs(hour)), 2 ) +
// Hard coded ":" separator, rather than using cal.TimeSeparator
// Repeated here for consistency, plus ":" was already assumed in date parsing.
":" + padZeros( Math.abs(value.getTimezoneOffset() % 60), 2 )
);
break;
case "g":
case "gg":
if ( cal.eras ) {
ret.push(
cal.eras[ getEra(value, eras) ].name
);
}
break;
case "/":
ret.push( cal["/"] );
break;
default:
throw "Invalid date format pattern \'" + current + "\'.";
}
}
return ret.join( "" );
};
// formatNumber
(function() {
var expandNumber;
expandNumber = function( number, precision, formatInfo ) {
var groupSizes = formatInfo.groupSizes,
curSize = groupSizes[ 0 ],
curGroupIndex = 1,
factor = Math.pow( 10, precision ),
rounded = Math.round( number * factor ) / factor;
if ( !isFinite(rounded) ) {
rounded = number;
}
number = rounded;
var numberString = number+"",
right = "",
split = numberString.split( /e/i ),
exponent = split.length > 1 ? parseInt( split[1], 10 ) : 0;
numberString = split[ 0 ];
split = numberString.split( "." );
numberString = split[ 0 ];
right = split.length > 1 ? split[ 1 ] : "";
var l;
if ( exponent > 0 ) {
right = zeroPad( right, exponent, false );
numberString += right.slice( 0, exponent );
right = right.substr( exponent );
}
else if ( exponent < 0 ) {
exponent = -exponent;
numberString = zeroPad( numberString, exponent + 1, true );
right = numberString.slice( -exponent, numberString.length ) + right;
numberString = numberString.slice( 0, -exponent );
}
if ( precision > 0 ) {
right = formatInfo[ "." ] +
( (right.length > precision) ? right.slice(0, precision) : zeroPad(right, precision) );
}
else {
right = "";
}
var stringIndex = numberString.length - 1,
sep = formatInfo[ "," ],
ret = "";
while ( stringIndex >= 0 ) {
if ( curSize === 0 || curSize > stringIndex ) {
return numberString.slice( 0, stringIndex + 1 ) + ( ret.length ? (sep + ret + right) : right );
}
ret = numberString.slice( stringIndex - curSize + 1, stringIndex + 1 ) + ( ret.length ? (sep + ret) : "" );
stringIndex -= curSize;
if ( curGroupIndex < groupSizes.length ) {
curSize = groupSizes[ curGroupIndex ];
curGroupIndex++;
}
}
return numberString.slice( 0, stringIndex + 1 ) + sep + ret + right;
};
formatNumber = function( value, format, culture ) {
if ( !isFinite(value) ) {
if ( value === Infinity ) {
return culture.numberFormat.positiveInfinity;
}
if ( value === -Infinity ) {
return culture.numberFormat.negativeInfinity;
}
return culture.numberFormat.NaN;
}
if ( !format || format === "i" ) {
return culture.name.length ? value.toLocaleString() : value.toString();
}
format = format || "D";
var nf = culture.numberFormat,
number = Math.abs( value ),
precision = -1,
pattern;
if ( format.length > 1 ) precision = parseInt( format.slice(1), 10 );
var current = format.charAt( 0 ).toUpperCase(),
formatInfo;
switch ( current ) {
case "D":
pattern = "n";
number = truncate( number );
if ( precision !== -1 ) {
number = zeroPad( "" + number, precision, true );
}
if ( value < 0 ) number = "-" + number;
break;
case "N":
formatInfo = nf;
/* falls through */
case "C":
formatInfo = formatInfo || nf.currency;
/* falls through */
case "P":
formatInfo = formatInfo || nf.percent;
pattern = value < 0 ? formatInfo.pattern[ 0 ] : ( formatInfo.pattern[1] || "n" );
if ( precision === -1 ) precision = formatInfo.decimals;
number = expandNumber( number * (current === "P" ? 100 : 1), precision, formatInfo );
break;
default:
throw "Bad number format specifier: " + current;
}
var patternParts = /n|\$|-|%/g,
ret = "";
for ( ; ; ) {
var index = patternParts.lastIndex,
ar = patternParts.exec( pattern );
ret += pattern.slice( index, ar ? ar.index : pattern.length );
if ( !ar ) {
break;
}
switch ( ar[0] ) {
case "n":
ret += number;
break;
case "$":
ret += nf.currency.symbol;
break;
case "-":
// don't make 0 negative
if ( /[1-9]/.test(number) ) {
ret += nf[ "-" ];
}
break;
case "%":
ret += nf.percent.symbol;
break;
}
}
return ret;
};
}());
getTokenRegExp = function() {
// regular expression for matching date and time tokens in format strings.
return (/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g);
};
getEra = function( date, eras ) {
if ( !eras ) return 0;
var start, ticks = date.getTime();
for ( var i = 0, l = eras.length; i < l; i++ ) {
start = eras[ i ].start;
if ( start === null || ticks >= start ) {
return i;
}
}
return 0;
};
getEraYear = function( date, cal, era, sortable ) {
var year = date.getFullYear();
if ( !sortable && cal.eras ) {
// convert normal gregorian year to era-shifted gregorian
// year by subtracting the era offset
year -= cal.eras[ era ].offset;
}
return year;
};
// parseExact
(function() {
var expandYear,
getDayIndex,
getMonthIndex,
getParseRegExp,
outOfRange,
toUpper,
toUpperArray;
expandYear = function( cal, year ) {
// expands 2-digit year into 4 digits.
if ( year < 100 ) {
var now = new Date(),
era = getEra( now ),
curr = getEraYear( now, cal, era ),
twoDigitYearMax = cal.twoDigitYearMax;
twoDigitYearMax = typeof twoDigitYearMax === "string" ? new Date().getFullYear() % 100 + parseInt( twoDigitYearMax, 10 ) : twoDigitYearMax;
year += curr - ( curr % 100 );
if ( year > twoDigitYearMax ) {
year -= 100;
}
}
return year;
};
getDayIndex = function ( cal, value, abbr ) {
var ret,
days = cal.days,
upperDays = cal._upperDays;
if ( !upperDays ) {
cal._upperDays = upperDays = [
toUpperArray( days.names ),
toUpperArray( days.namesAbbr ),
toUpperArray( days.namesShort )
];
}
value = toUpper( value );
if ( abbr ) {
ret = arrayIndexOf( upperDays[1], value );
if ( ret === -1 ) {
ret = arrayIndexOf( upperDays[2], value );
}
}
else {
ret = arrayIndexOf( upperDays[0], value );
}
return ret;
};
getMonthIndex = function( cal, value, abbr ) {
var months = cal.months,
monthsGen = cal.monthsGenitive || cal.months,
upperMonths = cal._upperMonths,
upperMonthsGen = cal._upperMonthsGen;
if ( !upperMonths ) {
cal._upperMonths = upperMonths = [
toUpperArray( months.names ),
toUpperArray( months.namesAbbr )
];
cal._upperMonthsGen = upperMonthsGen = [
toUpperArray( monthsGen.names ),
toUpperArray( monthsGen.namesAbbr )
];
}
value = toUpper( value );
var i = arrayIndexOf( abbr ? upperMonths[1] : upperMonths[0], value );
if ( i < 0 ) {
i = arrayIndexOf( abbr ? upperMonthsGen[1] : upperMonthsGen[0], value );
}
return i;
};
getParseRegExp = function( cal, format ) {
// converts a format string into a regular expression with groups that
// can be used to extract date fields from a date string.
// check for a cached parse regex.
var re = cal._parseRegExp;
if ( !re ) {
cal._parseRegExp = re = {};
}
else {
var reFormat = re[ format ];
if ( reFormat ) {
return reFormat;
}
}
// expand single digit formats, then escape regular expression characters.
var expFormat = expandFormat( cal, format ).replace( /([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g, "\\\\$1" ),
regexp = [ "^" ],
groups = [],
index = 0,
quoteCount = 0,
tokenRegExp = getTokenRegExp(),
match;
// iterate through each date token found.
while ( (match = tokenRegExp.exec(expFormat)) !== null ) {
var preMatch = expFormat.slice( index, match.index );
index = tokenRegExp.lastIndex;
// don't replace any matches that occur inside a string literal.
quoteCount += appendPreOrPostMatch( preMatch, regexp );
if ( quoteCount % 2 ) {
regexp.push( match[0] );
continue;
}
// add a regex group for the token.
var m = match[ 0 ],
len = m.length,
add;
switch ( m ) {
case "dddd": case "ddd":
case "MMMM": case "MMM":
case "gg": case "g":
add = "(\\D+)";
break;
case "tt": case "t":
add = "(\\D*)";
break;
case "yyyy":
case "fff":
case "ff":
case "f":
add = "(\\d{" + len + "})";
break;
case "dd": case "d":
case "MM": case "M":
case "yy": case "y":
case "HH": case "H":
case "hh": case "h":
case "mm": case "m":
case "ss": case "s":
add = "(\\d\\d?)";
break;
case "zzz":
add = "([+-]?\\d\\d?:\\d{2})";
break;
case "zz": case "z":
add = "([+-]?\\d\\d?)";
break;
case "/":
add = "(\\/)";
break;
default:
throw "Invalid date format pattern \'" + m + "\'.";
}
if ( add ) {
regexp.push( add );
}
groups.push( match[0] );
}
appendPreOrPostMatch( expFormat.slice(index), regexp );
regexp.push( "$" );
// allow whitespace to differ when matching formats.
var regexpStr = regexp.join( "" ).replace( /\s+/g, "\\s+" ),
parseRegExp = { "regExp": regexpStr, "groups": groups };
// cache the regex for this format.
return re[ format ] = parseRegExp;
};
outOfRange = function( value, low, high ) {
return value < low || value > high;
};
toUpper = function( value ) {
// "he-IL" has non-breaking space in weekday names.
return value.split( "\u00A0" ).join( " " ).toUpperCase();
};
toUpperArray = function( arr ) {
var results = [];
for ( var i = 0, l = arr.length; i < l; i++ ) {
results[ i ] = toUpper( arr[i] );
}
return results;
};
parseExact = function( value, format, culture ) {
// try to parse the date string by matching against the format string
// while using the specified culture for date field names.
value = trim( value );
var cal = culture.calendar,
// convert date formats into regular expressions with groupings.
// use the regexp to determine the input format and extract the date fields.
parseInfo = getParseRegExp( cal, format ),
match = new RegExp( parseInfo.regExp ).exec( value );
if ( match === null ) {
return null;
}
// found a date format that matches the input.
var groups = parseInfo.groups,
era = null, year = null, month = null, date = null, weekDay = null,
hour = 0, hourOffset, min = 0, sec = 0, msec = 0, tzMinOffset = null,
pmHour = false;
// iterate the format groups to extract and set the date fields.
for ( var j = 0, jl = groups.length; j < jl; j++ ) {
var matchGroup = match[ j + 1 ];
if ( matchGroup ) {
var current = groups[ j ],
clength = current.length,
matchInt = parseInt( matchGroup, 10 );
switch ( current ) {
case "dd": case "d":
// Day of month.
date = matchInt;
// check that date is generally in valid range, also checking overflow below.
if ( outOfRange(date, 1, 31) ) return null;
break;
case "MMM": case "MMMM":
month = getMonthIndex( cal, matchGroup, clength === 3 );
if ( outOfRange(month, 0, 11) ) return null;
break;
case "M": case "MM":
// Month.
month = matchInt - 1;
if ( outOfRange(month, 0, 11) ) return null;
break;
case "y": case "yy":
case "yyyy":
year = clength < 4 ? expandYear( cal, matchInt ) : matchInt;
if ( outOfRange(year, 0, 9999) ) return null;
break;
case "h": case "hh":
// Hours (12-hour clock).
hour = matchInt;
if ( hour === 12 ) hour = 0;
if ( outOfRange(hour, 0, 11) ) return null;
break;
case "H": case "HH":
// Hours (24-hour clock).
hour = matchInt;
if ( outOfRange(hour, 0, 23) ) return null;
break;
case "m": case "mm":
// Minutes.
min = matchInt;
if ( outOfRange(min, 0, 59) ) return null;
break;
case "s": case "ss":
// Seconds.
sec = matchInt;
if ( outOfRange(sec, 0, 59) ) return null;
break;
case "tt": case "t":
// AM/PM designator.
// see if it is standard, upper, or lower case PM. If not, ensure it is at least one of
// the AM tokens. If not, fail the parse for this format.
pmHour = cal.PM && ( matchGroup === cal.PM[0] || matchGroup === cal.PM[1] || matchGroup === cal.PM[2] );
if (
!pmHour && (
!cal.AM || ( matchGroup !== cal.AM[0] && matchGroup !== cal.AM[1] && matchGroup !== cal.AM[2] )
)
) return null;
break;
case "f":
// Deciseconds.
case "ff":
// Centiseconds.
case "fff":
// Milliseconds.
msec = matchInt * Math.pow( 10, 3 - clength );
if ( outOfRange(msec, 0, 999) ) return null;
break;
case "ddd":
// Day of week.
case "dddd":
// Day of week.
weekDay = getDayIndex( cal, matchGroup, clength === 3 );
if ( outOfRange(weekDay, 0, 6) ) return null;
break;
case "zzz":
// Time zone offset in +/- hours:min.
var offsets = matchGroup.split( /:/ );
if ( offsets.length !== 2 ) return null;
hourOffset = parseInt( offsets[0], 10 );
if ( outOfRange(hourOffset, -12, 13) ) return null;
var minOffset = parseInt( offsets[1], 10 );
if ( outOfRange(minOffset, 0, 59) ) return null;
tzMinOffset = ( hourOffset * 60 ) + ( startsWith(matchGroup, "-") ? -minOffset : minOffset );
break;
case "z": case "zz":
// Time zone offset in +/- hours.
hourOffset = matchInt;
if ( outOfRange(hourOffset, -12, 13) ) return null;
tzMinOffset = hourOffset * 60;
break;
case "g": case "gg":
var eraName = matchGroup;
if ( !eraName || !cal.eras ) return null;
eraName = trim( eraName.toLowerCase() );
for ( var i = 0, l = cal.eras.length; i < l; i++ ) {
if ( eraName === cal.eras[i].name.toLowerCase() ) {
era = i;
break;
}
}
// could not find an era with that name
if ( era === null ) return null;
break;
}
}
}
var result = new Date(), defaultYear, convert = cal.convert;
defaultYear = convert ? convert.fromGregorian( result )[ 0 ] : result.getFullYear();
if ( year === null ) {
year = defaultYear;
}
else if ( cal.eras ) {
// year must be shifted to normal gregorian year
// but not if year was not specified, its already normal gregorian
// per the main if clause above.
year += cal.eras[( era || 0 )].offset;
}
// set default day and month to 1 and January, so if unspecified, these are the defaults
// instead of the current day/month.
if ( month === null ) {
month = 0;
}
if ( date === null ) {
date = 1;
}
// now have year, month, and date, but in the culture's calendar.
// convert to gregorian if necessary
if ( convert ) {
result = convert.toGregorian( year, month, date );
// conversion failed, must be an invalid match
if ( result === null ) return null;
}
else {
// have to set year, month and date together to avoid overflow based on current date.
result.setFullYear( year, month, date );
// check to see if date overflowed for specified month (only checked 1-31 above).
if ( result.getDate() !== date ) return null;
// invalid day of week.
if ( weekDay !== null && result.getDay() !== weekDay ) {
return null;
}
}
// if pm designator token was found make sure the hours fit the 24-hour clock.
if ( pmHour && hour < 12 ) {
hour += 12;
}
result.setHours( hour, min, sec, msec );
if ( tzMinOffset !== null ) {
// adjust timezone to utc before applying local offset.
var adjustedMin = result.getMinutes() - ( tzMinOffset + result.getTimezoneOffset() );
// Safari limits hours and minutes to the range of -127 to 127. We need to use setHours
// to ensure both these fields will not exceed this range. adjustedMin will range
// somewhere between -1440 and 1500, so we only need to split this into hours.
result.setHours( result.getHours() + parseInt(adjustedMin / 60, 10), adjustedMin % 60 );
}
return result;
};
}());
parseNegativePattern = function( value, nf, negativePattern ) {
var neg = nf[ "-" ],
pos = nf[ "+" ],
ret;
switch ( negativePattern ) {
case "n -":
neg = " " + neg;
pos = " " + pos;
/* falls through */
case "n-":
if ( endsWith(value, neg) ) {
ret = [ "-", value.substr(0, value.length - neg.length) ];
}
else if ( endsWith(value, pos) ) {
ret = [ "+", value.substr(0, value.length - pos.length) ];
}
break;
case "- n":
neg += " ";
pos += " ";
/* falls through */
case "-n":
if ( startsWith(value, neg) ) {
ret = [ "-", value.substr(neg.length) ];
}
else if ( startsWith(value, pos) ) {
ret = [ "+", value.substr(pos.length) ];
}
break;
case "(n)":
if ( startsWith(value, "(") && endsWith(value, ")") ) {
ret = [ "-", value.substr(1, value.length - 2) ];
}
break;
}
return ret || [ "", value ];
};
//
// public instance functions
//
Globalize.prototype.findClosestCulture = function( cultureSelector ) {
return Globalize.findClosestCulture.call( this, cultureSelector );
};
Globalize.prototype.format = function( value, format, cultureSelector ) {
return Globalize.format.call( this, value, format, cultureSelector );
};
Globalize.prototype.localize = function( key, cultureSelector ) {
return Globalize.localize.call( this, key, cultureSelector );
};
Globalize.prototype.parseInt = function( value, radix, cultureSelector ) {
return Globalize.parseInt.call( this, value, radix, cultureSelector );
};
Globalize.prototype.parseFloat = function( value, radix, cultureSelector ) {
return Globalize.parseFloat.call( this, value, radix, cultureSelector );
};
Globalize.prototype.culture = function( cultureSelector ) {
return Globalize.culture.call( this, cultureSelector );
};
//
// public singleton functions
//
Globalize.addCultureInfo = function( cultureName, baseCultureName, info ) {
var base = {},
isNew = false;
if ( typeof cultureName !== "string" ) {
// cultureName argument is optional string. If not specified, assume info is first
// and only argument. Specified info deep-extends current culture.
info = cultureName;
cultureName = this.culture().name;
base = this.cultures[ cultureName ];
} else if ( typeof baseCultureName !== "string" ) {
// baseCultureName argument is optional string. If not specified, assume info is second
// argument. Specified info deep-extends specified culture.
// If specified culture does not exist, create by deep-extending default
info = baseCultureName;
isNew = ( this.cultures[ cultureName ] == null );
base = this.cultures[ cultureName ] || this.cultures[ "default" ];
} else {
// cultureName and baseCultureName specified. Assume a new culture is being created
// by deep-extending an specified base culture
isNew = true;
base = this.cultures[ baseCultureName ];
}
this.cultures[ cultureName ] = extend(true, {},
base,
info
);
// Make the standard calendar the current culture if it's a new culture
if ( isNew ) {
this.cultures[ cultureName ].calendar = this.cultures[ cultureName ].calendars.standard;
}
};
Globalize.findClosestCulture = function( name ) {
var match;
if ( !name ) {
return this.findClosestCulture( this.cultureSelector ) || this.cultures[ "default" ];
}
if ( typeof name === "string" ) {
name = name.split( "," );
}
if ( isArray(name) ) {
var lang,
cultures = this.cultures,
list = name,
i, l = list.length,
prioritized = [];
for ( i = 0; i < l; i++ ) {
name = trim( list[i] );
var pri, parts = name.split( ";" );
lang = trim( parts[0] );
if ( parts.length === 1 ) {
pri = 1;
}
else {
name = trim( parts[1] );
if ( name.indexOf("q=") === 0 ) {
name = name.substr( 2 );
pri = parseFloat( name );
pri = isNaN( pri ) ? 0 : pri;
}
else {
pri = 1;
}
}
prioritized.push({ lang: lang, pri: pri });
}
prioritized.sort(function( a, b ) {
if ( a.pri < b.pri ) {
return 1;
} else if ( a.pri > b.pri ) {
return -1;
}
return 0;
});
// exact match
for ( i = 0; i < l; i++ ) {
lang = prioritized[ i ].lang;
match = cultures[ lang ];
if ( match ) {
return match;
}
}
// neutral language match
for ( i = 0; i < l; i++ ) {
lang = prioritized[ i ].lang;
do {
var index = lang.lastIndexOf( "-" );
if ( index === -1 ) {
break;
}
// strip off the last part. e.g. en-US => en
lang = lang.substr( 0, index );
match = cultures[ lang ];
if ( match ) {
return match;
}
}
while ( 1 );
}
// last resort: match first culture using that language
for ( i = 0; i < l; i++ ) {
lang = prioritized[ i ].lang;
for ( var cultureKey in cultures ) {
var culture = cultures[ cultureKey ];
if ( culture.language == lang ) {
return culture;
}
}
}
}
else if ( typeof name === "object" ) {
return name;
}
return match || null;
};
Globalize.format = function( value, format, cultureSelector ) {
var culture = this.findClosestCulture( cultureSelector );
if ( value instanceof Date ) {
value = formatDate( value, format, culture );
}
else if ( typeof value === "number" ) {
value = formatNumber( value, format, culture );
}
return value;
};
Globalize.localize = function( key, cultureSelector ) {
return this.findClosestCulture( cultureSelector ).messages[ key ] ||
this.cultures[ "default" ].messages[ key ];
};
Globalize.parseDate = function( value, formats, culture ) {
culture = this.findClosestCulture( culture );
var date, prop, patterns;
if ( formats ) {
if ( typeof formats === "string" ) {
formats = [ formats ];
}
if ( formats.length ) {
for ( var i = 0, l = formats.length; i < l; i++ ) {
var format = formats[ i ];
if ( format ) {
date = parseExact( value, format, culture );
if ( date ) {
break;
}
}
}
}
} else {
patterns = culture.calendar.patterns;
for ( prop in patterns ) {
date = parseExact( value, patterns[prop], culture );
if ( date ) {
break;
}
}
}
return date || null;
};
Globalize.parseInt = function( value, radix, cultureSelector ) {
return truncate( Globalize.parseFloat(value, radix, cultureSelector) );
};
Globalize.parseFloat = function( value, radix, cultureSelector ) {
// radix argument is optional
if ( typeof radix !== "number" ) {
cultureSelector = radix;
radix = 10;
}
var culture = this.findClosestCulture( cultureSelector );
var ret = NaN,
nf = culture.numberFormat;
if ( value.indexOf(culture.numberFormat.currency.symbol) > -1 ) {
// remove currency symbol
value = value.replace( culture.numberFormat.currency.symbol, "" );
// replace decimal seperator
value = value.replace( culture.numberFormat.currency["."], culture.numberFormat["."] );
}
//Remove percentage character from number string before parsing
if ( value.indexOf(culture.numberFormat.percent.symbol) > -1){
value = value.replace( culture.numberFormat.percent.symbol, "" );
}
// remove spaces: leading, trailing and between - and number. Used for negative currency pt-BR
value = value.replace( / /g, "" );
// allow infinity or hexidecimal
if ( regexInfinity.test(value) ) {
ret = parseFloat( value );
}
else if ( !radix && regexHex.test(value) ) {
ret = parseInt( value, 16 );
}
else {
// determine sign and number
var signInfo = parseNegativePattern( value, nf, nf.pattern[0] ),
sign = signInfo[ 0 ],
num = signInfo[ 1 ];
// #44 - try parsing as "(n)"
if ( sign === "" && nf.pattern[0] !== "(n)" ) {
signInfo = parseNegativePattern( value, nf, "(n)" );
sign = signInfo[ 0 ];
num = signInfo[ 1 ];
}
// try parsing as "-n"
if ( sign === "" && nf.pattern[0] !== "-n" ) {
signInfo = parseNegativePattern( value, nf, "-n" );
sign = signInfo[ 0 ];
num = signInfo[ 1 ];
}
sign = sign || "+";
// determine exponent and number
var exponent,
intAndFraction,
exponentPos = num.indexOf( "e" );
if ( exponentPos < 0 ) exponentPos = num.indexOf( "E" );
if ( exponentPos < 0 ) {
intAndFraction = num;
exponent = null;
}
else {
intAndFraction = num.substr( 0, exponentPos );
exponent = num.substr( exponentPos + 1 );
}
// determine decimal position
var integer,
fraction,
decSep = nf[ "." ],
decimalPos = intAndFraction.indexOf( decSep );
if ( decimalPos < 0 ) {
integer = intAndFraction;
fraction = null;
}
else {
integer = intAndFraction.substr( 0, decimalPos );
fraction = intAndFraction.substr( decimalPos + decSep.length );
}
// handle groups (e.g. 1,000,000)
var groupSep = nf[ "," ];
integer = integer.split( groupSep ).join( "" );
var altGroupSep = groupSep.replace( /\u00A0/g, " " );
if ( groupSep !== altGroupSep ) {
integer = integer.split( altGroupSep ).join( "" );
}
// build a natively parsable number string
var p = sign + integer;
if ( fraction !== null ) {
p += "." + fraction;
}
if ( exponent !== null ) {
// exponent itself may have a number patternd
var expSignInfo = parseNegativePattern( exponent, nf, "-n" );
p += "e" + ( expSignInfo[0] || "+" ) + expSignInfo[ 1 ];
}
if ( regexParseFloat.test(p) ) {
ret = parseFloat( p );
}
}
return ret;
};
Globalize.culture = function( cultureSelector ) {
// setter
if ( typeof cultureSelector !== "undefined" ) {
this.cultureSelector = cultureSelector;
}
// getter
return this.findClosestCulture( cultureSelector ) || this.cultures[ "default" ];
};
document.Globalize = Globalize;
}(this));
})();
/***/ }),
/***/ 3475:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxButtonGroup","",{});a.extend(a.jqx._jqxButtonGroup.prototype,{defineInstance:function(){var b={mode:"default",roundedCorners:true,disabled:false,enableHover:false,orientation:"horizontal",width:null,height:null,_eventsMap:{mousedown:a.jqx.mobile.getTouchEventName("touchstart"),mouseup:a.jqx.mobile.getTouchEventName("touchend")},_events:["selected","unselected","buttonclick"],_buttonId:{},_selected:null,_pressed:null,rtl:false,template:"",_baseId:"group_button",aria:{"aria-disabled":{name:"disabled",type:"boolean"}}};if(this===a.jqx._jqxButtonGroup.prototype){return b}a.extend(true,this,b);return b},createInstance:function(b){var c=this;c._isTouchDevice=a.jqx.mobile.isTouchDevice();a.jqx.aria(c);c._baseId=c._baseId+c.element.id;c.addHandler(c.host,"selectstart",function(d){if(!c.disabled){d.preventDefault()}})},refresh:function(){var b=this;if(b.width){if(b.width.toString()&&b.width.toString().indexOf("%")>=0){b.element.style.width=b.width}else{b.host.width(b.width)}}if(b.height){b.host.height(b.height)}b._refreshButtons()},render:function(){this.refresh()},resize:function(){this.refresh()},_getEvent:function(c){var b=this;if(b._isTouchDevice){var d=b._eventsMap[c]||c;d+="."+b.element.id;return d}c+="."+b.element.id;return c},_refreshButtons:function(){var f=this;if(f.lastElement){f.lastElement.remove()}f.lastElement=a("<div style='clear: both;'></div>");var c=f.host.children(),e=c.length,g;switch(f.mode){case"radio":f.host.attr("role","radiogroup");break;case"checkbox":case"default":f.host.attr("role","group");break}var d=new Number(100/e).toFixed(2);for(var b=0;b<e;b+=1){g=a(c[b]);if(f.width){if(f.orientation==="horizontal"){g.css("width",d+"%");g.css("box-sizing","border-box");g.css("-moz-box-sizing","border-box");g.css("white-space","nowrap");g.css("text-overflow","ellipsis");g.css("overflow","hidden")}else{g.css("box-sizing","border-box");g.css("-moz-box-sizing","border-box");g.css("width","100%")}}f._refreshButton(g,b,e)}f.lastElement.appendTo(f.host)},_refreshButton:function(c,b,d){(function(e){var f=this;e=f._render(e);f._removeStyles(e);f._addStyles(e,b,d);f._performLayout(e);f._removeButtonListeners(e);f._addButtonListeners(e);f._handleButtonId(e,b);if(f.mode==="radio"){e.attr("role","radio")}else{e.attr("role","button")}e.attr("disabled",f.disabled);if(f.disabled){e.addClass(f.toThemeProperty("jqx-fill-state-disabled"))}else{e.removeClass(f.toThemeProperty("jqx-fill-state-disabled"))}}).apply(this,[c])},destroy:function(b){var f=this;var d=f.host.children(),e=d.length,g;for(var c=0;c<e;c+=1){g=a(d[c]);f._removeStyles(g);f._removeButtonListeners(g)}if(b!==false){f.host.remove()}},_render:function(b){var c=this;if(b[0].tagName.toLowerCase()==="button"){return c._renderFromButton(b)}else{return c._renderButton(b)}},_renderButton:function(b){var c;b.wrapInner("<div/>");return b},_removeStyles:function(b){var c=this;var d=c.toThemeProperty;c.host.removeClass("jqx-widget");c.host.removeClass("jqx-rc-all");b.removeClass(d.call(this,"jqx-fill-state-normal"));b.removeClass(d.call(this,"jqx-group-button-normal"));b.removeClass(d.call(this,"jqx-rc-tl"));b.removeClass(d.call(this,"jqx-rc-bl"));b.removeClass(d.call(this,"jqx-rc-tr"));b.removeClass(d.call(this,"jqx-rc-br"));b.css("margin-left",0)},_addStyles:function(c,b,e){var d=this;var f=this.toThemeProperty;d.host.addClass(f.call(this,"jqx-widget"));d.host.addClass(f.call(this,"jqx-rc-all"));d.host.addClass(f.call(this,"jqx-buttongroup"));c.addClass(f.call(this,"jqx-button"));c.addClass(f.call(this,"jqx-group-button-normal"));c.addClass(f.call(this,"jqx-fill-state-normal"));if(d.template){c.addClass(f.call(this,"jqx-"+d.template))}if(d.roundedCorners){if(b===0){d._addRoundedCorners(c,true)}else{if(b===e-1){d._addRoundedCorners(c,false)}}}if(d.orientation==="horizontal"){c.css("margin-left",-parseInt(c.css("border-left-width"),10))}else{c.css("margin-top",-parseInt(c.css("border-left-width"),10))}},_addRoundedCorners:function(b,d){var c=this;var e=c.toThemeProperty;if(c.orientation==="horizontal"){if(d){b.addClass(e.call(this,"jqx-rc-tl"));b.addClass(e.call(this,"jqx-rc-bl"))}else{b.addClass(e.call(this,"jqx-rc-tr"));b.addClass(e.call(this,"jqx-rc-br"))}}else{if(d){b.addClass(e.call(this,"jqx-rc-tl"));b.addClass(e.call(this,"jqx-rc-tr"))}else{b.addClass(e.call(this,"jqx-rc-bl"));b.addClass(e.call(this,"jqx-rc-br"))}}},_centerContent:function(c,b){c.css({"margin-top":(b.height()-c.height())/2,"margin-left":(b.width()-c.width())/2});return c},_renderFromButton:function(b){var c=b.val();if(c===""){c=b.html()}var e;var d=b[0].id;b.wrap("<div/>");e=b.parent();e.attr("style",b.attr("style"));b.remove();a.jqx.utilities.html(e,c);e[0].id=d;return e},_performLayout:function(b){if(this.orientation==="horizontal"){if(this.rtl){b.css("float","right")}else{b.css("float","left")}}else{b.css("float","none")}this._centerContent(a(b.children()),b)},_mouseEnterHandler:function(d){var b=d.data.self,c=a(d.currentTarget);if(b._isDisabled(c)||!b.enableHover){return}var f=b.toThemeProperty;c.addClass(f.call(b,"jqx-group-button-hover"));c.addClass(f.call(b,"jqx-fill-state-hover"))},_mouseLeaveHandler:function(d){var b=d.data.self,c=a(d.currentTarget);if(b._isDisabled(c)||!b.enableHover){return}var f=b.toThemeProperty;c.removeClass(f.call(b,"jqx-group-button-hover"));c.removeClass(f.call(b,"jqx-fill-state-hover"))},_mouseDownHandler:function(d){var b=d.data.self,c=a(d.currentTarget);if(b._isDisabled(c)){return}b._pressed=c;var f=b.toThemeProperty;c.addClass(f.call(b,"jqx-group-button-pressed"));c.addClass(f.call(b,"jqx-fill-state-pressed"))},_mouseUpHandler:function(d){var b=d.data.self,c=a(d.currentTarget);if(b._isDisabled(c)){return}b._handleSelection(c);b._pressed=null;c=b._buttonId[c[0].id];b._raiseEvent(2,{index:c.num,button:c.btn})},_isDisabled:function(b){if(!b||!b[0]){return false}return this._buttonId[b[0].id].disabled},_documentUpHandler:function(d){var b=d.data.self,c=b._pressed;if(c&&!b._buttonId[c[0].id].selected){c.removeClass(b.toThemeProperty("jqx-fill-state-pressed"));b._pressed=null}},_addButtonListeners:function(c){var e=this;var b=e.addHandler;var d=e._getEvent;b(c,d.call(e,"mouseenter"),e._mouseEnterHandler,{self:e});b(c,d.call(e,"mouseleave"),e._mouseLeaveHandler,{self:e});b(c,d.call(e,"mousedown"),e._mouseDownHandler,{self:e});b(c,d.call(e,"mouseup"),e._mouseUpHandler,{self:e});b(a(document),d.call(e,"mouseup"),e._documentUpHandler,{self:e})},_removeButtonListeners:function(c){var e=this;var b=e.removeHandler;var d=e._getEvent;b(c,d.call(e,"mouseenter"),e._mouseEnterHandler);b(c,d.call(e,"mouseleave"),e._mouseLeaveHandler);b(c,d.call(e,"mousedown"),e._mouseDownHandler);b(c,d.call(e,"mouseup"),e._mouseUpHandler);b(a(document),d.call(e,"mouseup"),e._documentUpHandler)},_handleSelection:function(b){var c=this;if(c.mode==="radio"){c._handleRadio(b)}else{if(c.mode==="checkbox"){c._handleCheckbox(b)}else{c._handleDefault(b)}}},_handleRadio:function(b){var d=this;var c=d._getSelectedButton();if(c&&c.btn[0].id!==b[0].id){d._unselectButton(c.btn,true)}for(var e in d._buttonId){d._buttonId[e].selected=true;d._unselectButton(d._buttonId[e].btn,false)}d._selectButton(b,true)},_handleCheckbox:function(c){var d=this;var b=d._buttonId[c[0].id];if(b.selected){d._unselectButton(b.btn,true)}else{d._selectButton(c,true)}},_handleDefault:function(b){var c=this;c._selectButton(b,false);for(var d in c._buttonId){c._buttonId[d].selected=true;c._unselectButton(c._buttonId[d].btn,false)}},_getSelectedButton:function(){var b=this;for(var c in b._buttonId){if(b._buttonId[c].selected){return b._buttonId[c]}}return null},_getSelectedButtons:function(){var c=this;var b=[];for(var d in c._buttonId){if(c._buttonId[d].selected){b.push(c._buttonId[d].num)}}return b},_getButtonByIndex:function(b){var c=this;var e;for(var d in c._buttonId){if(c._buttonId[d].num===b){return c._buttonId[d]}}return null},_selectButton:function(c,e){var d=this;var b=d._buttonId[c[0].id];if(b.selected){return}var f=d.toThemeProperty;b.btn.addClass(f.call(this,"jqx-group-button-pressed"));b.btn.addClass(f.call(this,"jqx-fill-state-pressed"));b.selected=true;if(e){d._raiseEvent(0,{index:b.num,button:b.btn})}a.jqx.aria(b.btn,"aria-checked",true)},_unselectButton:function(c,e){var d=this;var b=d._buttonId[c[0].id];if(!b.selected){return}var f=d.toThemeProperty;b.btn.removeClass(f.call(this,"jqx-group-button-pressed"));b.btn.removeClass(f.call(this,"jqx-fill-state-pressed"));b.selected=false;if(e){d._raiseEvent(1,{index:b.num,button:b.btn})}a.jqx.aria(b.btn,"aria-checked",false)},setSelection:function(b){var d=this;if(b===-1){d.clearSelection();return}if(d.mode==="checkbox"){if(typeof b==="number"){d._setSelection(b)}else{for(var c=0;c<b.length;c+=1){d._setSelection(b[c])}}}else{if(typeof b==="number"&&d.mode==="radio"){d._setSelection(b)}}},_setSelection:function(b){var d=this;var c=d._getButtonByIndex(b);if(c){d._handleSelection(c.btn)}},getSelection:function(){var b=this;if(b.mode==="radio"){if(b._getSelectedButton()){return b._getSelectedButton().num}}else{if(b.mode==="checkbox"){return b._getSelectedButtons()}}return undefined},disable:function(){var c=this;c.disabled=true;var d;for(var b in c._buttonId){d=c._buttonId[b];c.disableAt(d.num)}a.jqx.aria(c,"aria-disabled",true)},enable:function(){var c=this;c.disabled=false;var d;for(var b in c._buttonId){d=c._buttonId[b];c.enableAt(d.num)}a.jqx.aria(c,"aria-disabled",false)},disableAt:function(b){var d=this;var c=d._getButtonByIndex(b);if(!c.disabled){c.disabled=true;c.btn.addClass(d.toThemeProperty("jqx-fill-state-disabled"))}},enableAt:function(b){var d=this;var c=d._getButtonByIndex(b);if(c.disabled){c.disabled=false;c.btn.removeClass(d.toThemeProperty("jqx-fill-state-disabled"))}},_handleButtonId:function(b,d){var f=b[0].id,e={btn:b,num:d,selected:false},c;if(!f){f=this._baseId+b.index()}b[0].id=f;this._buttonId[f]=e;return f},_raiseEvent:function(d,c){var b=a.Event(this._events[d]);b.args=c;return this.host.trigger(b)},_unselectAll:function(){for(var b in this._buttonId){this._unselectButton(this._buttonId[b].btn,false)}},clearSelection:function(){this._unselectAll()},propertyChangedHandler:function(b,c,e,d){if(c==="theme"&&d!==null){a.jqx.utilities.setTheme(e,d,b.host)}if(c==="rtl"){b.refresh()}if(c==="template"){b.refresh()}if(c==="mode"){b._unselectAll();b.refresh();return}else{if(c==="disabled"){if(d){b.disable()}else{b.enable()}}else{b.refresh()}}}})})(jqxBaseFramework)})();
/***/ }),
/***/ 1528:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.cssroundedcorners=function(b){var d={all:"jqx-rc-all",top:"jqx-rc-t",bottom:"jqx-rc-b",left:"jqx-rc-l",right:"jqx-rc-r","top-right":"jqx-rc-tr","top-left":"jqx-rc-tl","bottom-right":"jqx-rc-br","bottom-left":"jqx-rc-bl"};for(var c in d){if(!d.hasOwnProperty(c)){continue}if(b==c){return d[c]}}};a.jqx.jqxWidget("jqxButton","",{});a.extend(a.jqx._jqxButton.prototype,{defineInstance:function(){var b={type:"",cursor:"arrow",roundedCorners:"all",disabled:false,height:null,width:null,overrideTheme:false,enableHover:true,enableDefault:true,enablePressed:true,imgPosition:"center",imgSrc:"",imgWidth:16,imgHeight:16,value:null,textPosition:"",textImageRelation:"overlay",rtl:false,_ariaDisabled:false,_scrollAreaButton:false,template:"default",aria:{"aria-disabled":{name:"disabled",type:"boolean"}}};if(this===a.jqx._jqxButton.prototype){return b}a.extend(true,this,b);return b},_addImage:function(c){var g=this;if(g.element.nodeName.toLowerCase()=="input"||g.element.nodeName.toLowerCase()=="button"||g.element.nodeName.toLowerCase()=="div"){if(!g._img){g.field=g.element;if(g.field.className){g._className=g.field.className}var i={title:g.field.title};var j=null;if(g.field.getAttribute("value")){var j=g.field.getAttribute("value")}else{if(g.element.nodeName.toLowerCase()!="input"){var j=g.element.innerHTML}}if(g.value){j=g.value}if(g.field.id.length){i.id=g.field.id.replace(/[^\w]/g,"_")+"_"+c}else{i.id=a.jqx.utilities.createId()+"_"+c}var b=document.createElement("div");b.id=i.id;b.title=i.title;b.style.cssText=g.field.style.cssText;b.style.boxSizing="border-box";var f=document.createElement("img");f.setAttribute("src",g.imgSrc);f.setAttribute("width",g.imgWidth);f.setAttribute("height",g.imgHeight);b.appendChild(f);g._img=f;var l=document.createElement("span");if(j){l.innerHTML=j;g.value=j}b.appendChild(l);g._text=l;g.field.style.display="none";if(g.field.parentNode){g.field.parentNode.insertBefore(b,g.field.nextSibling)}var e=g.host.data();g.host=a(b);g.host.data(e);g.element=b;g.element.id=g.field.id;g.field.id=i.id;var k=new a(g.element);var h=new a(g.field);if(g._className){k.addClass(g._className);h.removeClass(g._className)}if(g.field.tabIndex){var d=g.field.tabIndex;g.field.tabIndex=-1;g.element.tabIndex=d}}else{g._img.setAttribute("src",g.imgSrc);g._img.setAttribute("width",g.imgWidth);g._img.setAttribute("height",g.imgHeight);g._text.innerHTML=g.value}if(!g.imgSrc){g._img.style.display="none"}else{g._img.style.display="inline"}if(!g.value){g._text.style.display="none"}else{g._text.style.display="inline"}g._positionTextAndImage()}},_positionTextAndImage:function(){var k=this;var r=k.element.offsetWidth;var q=k.element.offsetHeight;var m=k.imgWidth;var v=k.imgHeight;if(k.imgSrc==""){m=0;v=0}var f=k._text.offsetWidth;var b=k._text.offsetHeight;var i=4;var c=4;var l=4;var n=0;var u=0;switch(k.textImageRelation){case"imageBeforeText":case"textBeforeImage":n=m+f+2*l+i+2*c;u=Math.max(v,b)+2*l+i+2*c;break;case"imageAboveText":case"textAboveImage":n=Math.max(m,f)+2*l;u=v+b+i+2*l+2*c;break;case"overlay":n=Math.max(m,f)+2*l;u=Math.max(v,b)+2*l;break}if(!k.width){k.element.style.width=n+"px";r=n}if(!k.height){k.element.style.height=u+"px";q=u}k._img.style.position="absolute";k._text.style.position="absolute";k.element.style.position="relative";k.element.style.overflow="hidden";var e={};var z={};var s=function(E,D,G,C,F){if(D.width<C){D.width=C}if(D.height<F){D.height=F}switch(G){case"left":E.style.left=D.left+"px";E.style.top=D.top+D.height/2-F/2+"px";break;case"topLeft":E.style.left=D.left+"px";E.style.top=D.top+"px";break;case"bottomLeft":E.style.left=D.left+"px";E.style.top=D.top+D.height-F+"px";break;default:case"center":E.style.left=D.left+D.width/2-C/2+"px";E.style.top=D.top+D.height/2-F/2+"px";break;case"top":E.style.left=D.left+D.width/2-C/2+"px";E.style.top=D.top+"px";break;case"bottom":E.style.left=D.left+D.width/2-C/2+"px";E.style.top=D.top+D.height-F+"px";break;case"right":E.style.left=D.left+D.width-C+"px";E.style.top=D.top+D.height/2-F/2+"px";break;case"topRight":E.style.left=D.left+D.width-C+"px";E.style.top=D.top+"px";break;case"bottomRight":E.style.left=D.left+D.width-C+"px";E.style.top=D.top+D.height-F+"px";break}};var g=0;var p=0;var x=r;var j=q;var A=(x-g)/2;var y=(j-p)/2;var B=k._img;var o=k._text;var t=j-p;var d=x-g;g+=c;p+=c;x=x-c-2;d=d-2*c-2;t=t-2*c-2;switch(k.textImageRelation){case"imageBeforeText":switch(k.imgPosition){case"left":case"topLeft":case"bottomLeft":z={left:g,top:p,width:g+m,height:t};e={left:g+m+i,top:p,width:d-m-i,height:t};break;case"center":case"top":case"bottom":z={left:A-f/2-m/2-i/2,top:p,width:m,height:t};e={left:z.left+m+i,top:p,width:x-z.left-m-i,height:t};break;case"right":case"topRight":case"bottomRight":z={left:x-f-m-i,top:p,width:m,height:t};e={left:z.left+m+i,top:p,width:x-z.left-m-i,height:t};break}s(B,z,k.imgPosition,m,v);s(o,e,k.textPosition,f,b);break;case"textBeforeImage":switch(k.textPosition){case"left":case"topLeft":case"bottomLeft":e={left:g,top:p,width:g+f,height:t};z={left:g+f+i,top:p,width:d-f-i,height:t};break;case"center":case"top":case"bottom":e={left:A-f/2-m/2-i/2,top:p,width:f,height:t};z={left:e.left+f+i,top:p,width:x-e.left-f-i,height:t};break;case"right":case"topRight":case"bottomRight":e={left:x-f-m-i,top:p,width:f,height:t};z={left:e.left+f+i,top:p,width:x-e.left-f-i,height:t};break}s(B,z,k.imgPosition,m,v);s(o,e,k.textPosition,f,b);break;case"imageAboveText":switch(k.imgPosition){case"topRight":case"top":case"topLeft":z={left:g,top:p,width:d,height:v};e={left:g,top:p+v+i,width:d,height:t-v-i};break;case"left":case"center":case"right":z={left:g,top:y-v/2-b/2-i/2,width:d,height:v};e={left:g,top:z.top+i+v,width:d,height:t-z.top-i-v};break;case"bottomLeft":case"bottom":case"bottomRight":z={left:g,top:j-v-b-i,width:d,height:v};e={left:g,top:z.top+i+v,width:d,height:b};break}s(B,z,k.imgPosition,m,v);s(o,e,k.textPosition,f,b);break;case"textAboveImage":switch(k.textPosition){case"topRight":case"top":case"topLeft":e={left:g,top:p,width:d,height:b};z={left:g,top:p+b+i,width:d,height:t-b-i};break;case"left":case"center":case"right":e={left:g,top:y-v/2-b/2-i/2,width:d,height:b};z={left:g,top:e.top+i+b,width:d,height:t-e.top-i-b};break;case"bottomLeft":case"bottom":case"bottomRight":e={left:g,top:j-v-b-i,width:d,height:b};z={left:g,top:e.top+i+b,width:d,height:v};break}s(B,z,k.imgPosition,m,v);s(o,e,k.textPosition,f,b);break;case"overlay":default:e={left:g,top:p,width:d,height:t};z={left:g,top:p,width:d,height:t};s(B,z,k.imgPosition,m,v);s(o,e,k.textPosition,f,b);break}},createInstance:function(d){var e=this;e._setSize();var b=e.isMaterialized();e.buttonObj=new a(e.element);if(e.imgSrc!=""||e.textPosition!=""||(e.element.value&&e.element.value.indexOf("<")>=0)||e.value!=null){e.refresh();e._addImage("jqxButton");e.buttonObj=new a(e.element)}if(!e._ariaDisabled){e.element.setAttribute("role","button")}if(e.type!==""){e.element.setAttribute("type",e.type)}if(!e.overrideTheme){e.buttonObj.addClass(e.toThemeProperty(a.jqx.cssroundedcorners(e.roundedCorners)));if(e.enableDefault){e.buttonObj.addClass(e.toThemeProperty("jqx-button"))}e.buttonObj.addClass(e.toThemeProperty("jqx-widget"))}e.isTouchDevice=a.jqx.mobile.isTouchDevice();if(!e._ariaDisabled){a.jqx.aria(this)}if(e.cursor!="arrow"){if(!e.disabled){e.element.style.cursor=e.cursor}else{e.element.style.cursor="arrow"}}var g="mouseenter mouseleave mousedown focus blur";if(e._scrollAreaButton){var g="mousedown"}if(e.isTouchDevice){e.addHandler(e.host,a.jqx.mobile.getTouchEventName("touchstart"),function(h){e.isPressed=true;e.refresh()});e.addHandler(a(document),a.jqx.mobile.getTouchEventName("touchend")+"."+e.element.id,function(h){e.isPressed=false;e.refresh()})}e.addHandler(e.host,g,function(h){switch(h.type){case"mouseenter":if(!e.isTouchDevice){if(!e.disabled&&e.enableHover){e.isMouseOver=true;e.refresh()}}break;case"mouseleave":if(!e.isTouchDevice){if(!e.disabled&&e.enableHover){e.isMouseOver=false;e.refresh()}}break;case"mousedown":if(!e.disabled){e.isPressed=true;e.refresh()}break;case"focus":if(!e.disabled){e.isFocused=true;e.refresh()}break;case"blur":if(!e.disabled){e.isFocused=false;e.refresh()}break}});e.mouseupfunc=function(h){if(!e.disabled){if(e.isPressed||e.isMouseOver){e.isPressed=false;e.refresh()}}};e.addHandler(document,"mouseup.button"+e.element.id,e.mouseupfunc);try{if(document.referrer!=""||window.frameElement){if(window.top!=null&&window.top!=window.that){var f="";if(window.parent&&document.referrer){f=document.referrer}if(f.indexOf(document.location.host)!=-1){if(window.top.document){window.top.document.addEventListener("mouseup",e._topDocumentMouseupHandler)}}}}}catch(c){}e.propertyChangeMap.roundedCorners=function(h,j,i,k){h.buttonObj.removeClass(h.toThemeProperty(a.jqx.cssroundedcorners(i)));h.buttonObj.addClass(h.toThemeProperty(a.jqx.cssroundedcorners(k)))};e.propertyChangeMap.disabled=function(h,j,i,k){if(i!=k){h.refresh();h.element.setAttribute("disabled",k);h.element.disabled=k;if(!k){h.element.removeAttribute("disabled");h.element.style.cursor=""}else{h.element.style.cursor="default"}h.buttonObj.removeClass(h.toThemeProperty("jqx-fill-state-hover"));a.jqx.aria(h,"aria-disabled",h.disabled)}};e.propertyChangeMap.rtl=function(h,j,i,k){if(i!=k){h.refresh()}};e.propertyChangeMap.template=function(h,j,i,k){if(i!=k){h.buttonObj.removeClass(h.toThemeProperty("jqx-"+i));h.refresh()}};e.propertyChangeMap.theme=function(h,j,i,k){h.buttonObj.removeClass(h.element);if(i){h.buttonObj.removeClass("jqx-button-"+i);h.buttonObj.removeClass("jqx-widget-"+i);h.buttonObj.removeClass("jqx-fill-state-normal-"+i);h.buttonObj.removeClass(h.toThemeProperty(a.jqx.cssroundedcorners(h.roundedCorners))+"-"+i)}if(h.enableDefault){h.buttonObj.addClass(h.toThemeProperty("jqx-button"))}h.buttonObj.addClass(h.toThemeProperty("jqx-widget"));if(!h.overrideTheme){h.buttonObj.addClass(h.toThemeProperty(a.jqx.cssroundedcorners(h.roundedCorners)))}h._oldCSSCurrent=null;h.refresh()};if(e.disabled){e.element.disabled=true;e.element.setAttribute("disabled","true")}if(e.textPosition){a.jqx.utilities.resize(this.host,function(){e._positionTextAndImage()})}},resize:function(c,b){this.width=c;this.height=b;this._setSize()},val:function(d){var c=this;var b=c.host.find("input");if(b.length>0){if(arguments.length==0||typeof(d)=="object"){return b.val()}b.val(d);c.refresh();return b.val()}if(arguments.length==0||typeof(d)=="object"){if(c.element.nodeName.toLowerCase()=="button"){return a(c.element).text()}return c.element.value}if(arguments.length>0&&c._text){c._text.innerHTML=arguments[0];c.refresh();return}else{if(arguments.length>0&&c.element.nodeName==="DIV"){c.element.innerHTML=arguments[0];c.refresh()}}c.element.value=arguments[0];if(c.element.nodeName.toLowerCase()=="button"){a(c.element).html(arguments[0])}c.refresh()},_setSize:function(){var d=this;var b=d.height;var c=d.width;if(b){if(!isNaN(b)){b=b+"px"}d.element.style.height=b}if(c){if(!isNaN(c)){c=c+"px"}d.element.style.width=c}},_removeHandlers:function(){var b=this;b.removeHandler(b.host,"selectstart");b.removeHandler(b.host,"click");b.removeHandler(b.host,"focus");b.removeHandler(b.host,"blur");b.removeHandler(b.host,"mouseenter");b.removeHandler(b.host,"mouseleave");b.removeHandler(b.host,"mousedown");b.removeHandler(a(document),"mouseup.button"+b.element.id,b.mouseupfunc);if(b.isTouchDevice){b.removeHandler(b.host,a.jqx.mobile.getTouchEventName("touchstart"));b.removeHandler(a(document),a.jqx.mobile.getTouchEventName("touchend")+"."+b.element.id)}b.mouseupfunc=null;delete b.mouseupfunc},focus:function(){this.host.focus()},destroy:function(){var b=this;b._removeHandlers();var c=a.data(b.element,"jqxButton");if(c){delete c.instance}b.host.removeClass();b.host.removeData();b.host.remove();delete b.set;delete b.get;delete b.call;delete b.element;delete b.host},render:function(){this.refresh()},propertiesChangedHandler:function(d,b,c){if(c&&c.width&&c.height&&Object.keys(c).length==2){d._setSize();d.refresh()}},propertyChangedHandler:function(b,c,e,d){if(this.isInitialized==undefined||this.isInitialized==false){return}if(d==e){return}if(b.batchUpdate&&b.batchUpdate.width&&b.batchUpdate.height&&Object.keys(b.batchUpdate).length==2){return}if(c==="type"){b.element.setAttribute("type",d)}if(c=="textImageRelation"||c=="textPosition"||c=="imgPosition"){if(b._img){b._positionTextAndImage()}else{b._addImage("jqxButton")}}if(c=="imgSrc"||c=="imgWidth"||c=="imgHeight"){b._addImage("jqxButton")}if(c==="value"){b.val(d)}if(c=="width"||c=="height"){b._setSize();b.refresh()}},refresh:function(){var c=this;if(c.overrideTheme){return}var e=c.toThemeProperty("jqx-fill-state-focus");var i=c.toThemeProperty("jqx-fill-state-disabled");var b=c.toThemeProperty("jqx-fill-state-normal");if(!c.enableDefault){b=""}var h=c.toThemeProperty("jqx-fill-state-hover");var f=c.toThemeProperty("jqx-fill-state-pressed");var g=c.toThemeProperty("jqx-fill-state-pressed");if(!c.enablePressed){f=""}var d="";if(!c.host){return}c.element.disabled=c.disabled;if(c.disabled){if(c._oldCSSCurrent){c.buttonObj.removeClass(c._oldCSSCurrent)}d=b+" "+i;if(c.template!=="default"&&c.template!==""){d+=" jqx-"+c.template;if(c.theme!=""){d+=" jqx-"+c.template+"-"+c.theme}}c.buttonObj.addClass(d);c._oldCSSCurrent=d;return}else{if(c.isMouseOver&&!c.isTouchDevice){if(c.isPressed){d=g}else{d=h}}else{if(c.isPressed){d=f}else{d=b}}}if(c.isFocused){d+=" "+e}if(c.template!=="default"&&c.template!==""){d+=" jqx-"+c.template;if(c.theme!=""){d+=" jqx-"+c.template+"-"+c.theme}}if(d!=c._oldCSSCurrent){if(c._oldCSSCurrent){c.buttonObj.removeClass(c._oldCSSCurrent)}c.buttonObj.addClass(d);c._oldCSSCurrent=d}if(c.rtl){c.buttonObj.addClass(c.toThemeProperty("jqx-rtl"));c.element.style.direction="rtl"}if(c.isMaterialized()){c.host.addClass("buttonRipple")}}});a.jqx.jqxWidget("jqxLinkButton","",{});a.extend(a.jqx._jqxLinkButton.prototype,{defineInstance:function(){this.disabled=false;this.height=null;this.width=null;this.rtl=false;this.href=null},createInstance:function(c){var f=this;this.host.onselectstart=function(){return false};this.host.attr("role","button");var b=this.height||this.element.offsetHeight;var d=this.width||this.element.offsetWidth;this.href=this.element.getAttribute("href");this.target=this.element.getAttribute("target");this.content=this.host.text();this.element.innerHTML="";var g=document.createElement("input");g.type="button";g.className="jqx-wrapper "+this.toThemeProperty("jqx-reset");this._setSize(g,d,b);g.value=this.content;var e=new a(this.element);e.addClass(this.toThemeProperty("jqx-link"));this.element.style.color="inherit";this.element.appendChild(g);this._setSize(g,d,b);var h=c==undefined?{}:c[0]||{};a(g).jqxButton(h);this.wrapElement=g;if(this.disabled){this.element.disabled=true}this.propertyChangeMap.disabled=function(i,k,j,l){i.element.disabled=l;i.wrapElement.jqxButton({disabled:l})};this.addHandler(a(g),"click",function(i){if(!this.disabled){f.onclick(i)}return false})},_setSize:function(c,d,b){var e=this;if(b){if(!isNaN(b)){b=b+"px"}c.style.height=b}if(d){if(!isNaN(d)){d=d+"px"}c.style.width=d}},onclick:function(b){if(this.target!=null){window.open(this.href,this.target)}else{window.location=this.href}}});a.jqx.jqxWidget("jqxRepeatButton","jqxButton",{});a.extend(a.jqx._jqxRepeatButton.prototype,{defineInstance:function(){this.delay=50},createInstance:function(d){var e=this;var c=a.jqx.mobile.isTouchDevice();var b=!c?"mouseup."+this.base.element.id:"touchend."+this.base.element.id;var f=!c?"mousedown."+this.base.element.id:"touchstart."+this.base.element.id;this.addHandler(a(document),b,function(g){if(e.timeout!=null){clearTimeout(e.timeout);e.timeout=null;e.refresh()}if(e.timer!=undefined){clearInterval(e.timer);e.timer=null;e.refresh()}});this.addHandler(this.base.host,f,function(g){if(e.timer!=null){clearInterval(e.timer)}e.timeout=setTimeout(function(){clearInterval(e.timer);e.timer=setInterval(function(h){e.ontimer(h)},e.delay)},150)});this.mousemovefunc=function(g){if(!c){if(g.which==0){if(e.timer!=null){clearInterval(e.timer);e.timer=null}}}};this.addHandler(this.base.host,"mousemove",this.mousemovefunc)},destroy:function(){var c=a.jqx.mobile.isTouchDevice();var b=!c?"mouseup."+this.base.element.id:"touchend."+this.base.element.id;var e=!c?"mousedown."+this.base.element.id:"touchstart."+this.base.element.id;this.removeHandler(this.base.host,"mousemove",this.mousemovefunc);this.removeHandler(this.base.host,e);this.removeHandler(a(document),b);this.timer=null;delete this.mousemovefunc;delete this.timer;var d=a.data(this.base.element,"jqxRepeatButton");if(d){delete d.instance}a(this.base.element).removeData();this.base.destroy();delete this.base},stop:function(){clearInterval(this.timer);this.timer=null},ontimer:function(b){var b=new a.Event("click");if(this.base!=null&&this.base.host!=null){this.base.host.trigger(b)}}});a.jqx.jqxWidget("jqxToggleButton","jqxButton",{});a.extend(a.jqx._jqxToggleButton.prototype,{defineInstance:function(){this.toggled=false;this.uiToggle=true;this.aria={"aria-checked":{name:"toggled",type:"boolean"},"aria-disabled":{name:"disabled",type:"boolean"}}},createInstance:function(b){var c=this;c.base.overrideTheme=true;c.isTouchDevice=a.jqx.mobile.isTouchDevice();a.jqx.aria(this);c.base.host.attr("role","checkbox");c.propertyChangeMap.roundedCorners=function(d,f,e,g){d.base.buttonObj.removeClass(d.toThemeProperty(a.jqx.cssroundedcorners(e)));d.base.buttonObj.addClass(d.toThemeProperty(a.jqx.cssroundedcorners(g)))};c.propertyChangeMap.toggled=function(d,f,e,g){d.refresh()};c.propertyChangeMap.disabled=function(d,f,e,g){d.base.disabled=g;d.base.buttonObj.removeClass(d.toThemeProperty("jqx-fill-state-hover"));d.refresh()};c.addHandler(c.base.host,"click",function(d){if(!c.base.disabled&&c.uiToggle){c.toggle()}});if(!c.isTouchDevice){c.addHandler(c.base.host,"mouseenter",function(d){if(!c.base.disabled){c.refresh()}});c.addHandler(c.base.host,"mouseleave",function(d){if(!c.base.disabled){c.refresh()}})}c.addHandler(c.base.host,"mousedown",function(d){if(!c.base.disabled){c.refresh()}});c.addHandler(a(document),"mouseup.togglebutton"+c.base.element.id,function(d){if(!c.base.disabled){c.refresh()}})},destroy:function(){this._removeHandlers();this.base.destroy()},_removeHandlers:function(){this.removeHandler(this.base.host,"click");this.removeHandler(this.base.host,"mouseenter");this.removeHandler(this.base.host,"mouseleave");this.removeHandler(this.base.host,"mousedown");this.removeHandler(a(document),"mouseup.togglebutton"+this.base.element.id)},toggle:function(){this.toggled=!this.toggled;this.refresh();a.jqx.aria(this,"aria-checked",this.toggled)},unCheck:function(){this.toggled=false;this.refresh()},check:function(){this.toggled=true;this.refresh()},refresh:function(){var c=this;var h=c.base.toThemeProperty("jqx-fill-state-disabled");var b=c.base.toThemeProperty("jqx-fill-state-normal");if(!c.base.enableDefault){b=""}var g=c.base.toThemeProperty("jqx-fill-state-hover");var e=c.base.toThemeProperty("jqx-fill-state-pressed");var f=c.base.toThemeProperty("jqx-fill-state-pressed");var d="";c.base.element.disabled=c.base.disabled;if(c.base.disabled){d=b+" "+h;c.base.buttonObj.addClass(d);return}else{if(c.base.isMouseOver&&!c.isTouchDevice){if(c.base.isPressed||c.toggled){d=f}else{d=g}}else{if(c.base.isPressed||c.toggled){d=e}else{d=b}}}if(c.base.template!=="default"&&c.base.template!==""){d+=" jqx-"+c.base.template;if(c.base.theme!=""){d+=" jqx-"+c.template+"-"+c.base.theme}}if(c.base.buttonObj.hasClass(h)&&h!=d){c.base.buttonObj.removeClass(h)}if(c.base.buttonObj.hasClass(b)&&b!=d){c.base.buttonObj.removeClass(b)}if(c.base.buttonObj.hasClass(g)&&g!=d){c.base.buttonObj.removeClass(g)}if(c.base.buttonObj.hasClass(e)&&e!=d){c.base.buttonObj.removeClass(e)}if(c.base.buttonObj.hasClass(f)&&f!=d){c.base.buttonObj.removeClass(f)}if(!c.base.buttonObj.hasClass(d)){c.base.buttonObj.addClass(d)}},_topDocumentMouseupHandler:function(c){var b=this;b.isPressed=false;b.refresh()}})})(jqxBaseFramework)})();
/***/ }),
/***/ 1828:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxCalendar","",{});a.extend(a.jqx._jqxCalendar.prototype,{defineInstance:function(){var b={disabled:false,restrictedDates:new Array(),multipleMonthRows:1,multipleMonthColumns:1,minDate:a.jqx._jqxDateTimeInput.getDateTime(new Date()),maxDate:a.jqx._jqxDateTimeInput.getDateTime(new Date()),min:new Date(1900,0,1),max:new Date(2100,0,1),navigationDelay:400,stepMonths:1,width:null,height:null,value:a.jqx._jqxDateTimeInput.getDateTime(new Date()),firstDayOfWeek:0,showWeekNumbers:false,showDayNames:true,enableWeekend:false,enableOtherMonthDays:true,showOtherMonthDays:true,rowHeaderWidth:25,columnHeaderHeight:25,titleHeight:30,dayNameFormat:"firstTwoLetters",monthNameFormat:"default",titleFormat:["MMMM yyyy","yyyy","yyyy","yyyy"],enableViews:true,readOnly:false,culture:"default",enableFastNavigation:true,enableHover:true,enableAutoNavigation:true,enableTooltips:false,backText:"Back",forwardText:"Forward",specialDates:new Array(),keyboardNavigation:true,selectionMode:"default",selectableDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],todayString:"Today",clearString:"Clear",showFooter:false,selection:{from:null,to:null},canRender:true,_checkForHiddenParent:true,height:null,rtl:false,view:"month",views:["month","year","decade"],changing:null,change:null,localization:{backString:"Back",forwardString:"Forward",todayString:"Today",clearString:"Clear",calendar:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss",ISO:"yyyy-MM-dd hh:mm:ss"}}},events:["backButtonClick","nextButtonClick","valuechanged","cellMouseDown","cellMouseUp","cellSelected","cellUnselected","change","viewChange"]};if(this===a.jqx._jqxCalendar.prototype){return b}a.extend(true,this,b);this.minDate._setYear(1900);this.minDate._setMonth(1);this.minDate._setDay(1);this.minDate._setHours(0);this.minDate._setMinutes(0);this.minDate._setSeconds(0);this.minDate._setMilliseconds(0);this.maxDate._setYear(2100);this.maxDate._setMonth(1);this.maxDate._setDay(1);this.maxDate._setHours(0);this.maxDate._setMinutes(0);this.maxDate._setSeconds(0);this.maxDate._setMilliseconds(0);this.value._setHours(0);this.value._setMinutes(0);this.value._setSeconds(0);this.value._setMilliseconds(0);return b},_createFromInput:function(d){var g=this;if(g.element.nodeName.toLowerCase()=="input"){g.field=g.element;if(g.field.className){g._className=g.field.className}var f={title:g.field.title};if(g.field.value){f.value=g.field.value}if(g.field.checked){f.checked=true}if(g.field.id.length){f.id=g.field.id.replace(/[^\w]/g,"_")+"_"+d}else{f.id=a.jqx.utilities.createId()+"_"+d}if(g.field.getAttribute("min")){var e=new Date(g.field.getAttribute("min"));if(e!="Invalid Date"){g.min=e}}if(g.field.getAttribute("max")){var c=new Date(g.field.getAttribute("max"));if(c!="Invalid Date"){g.max=c}}var i=a("<div></div>",f);i[0].style.cssText=g.field.style.cssText;if(!g.width){g.width=a(g.field).width()}if(!g.height){g.height=a(g.field).outerHeight()}a(g.field).hide().after(i);var h=g.host.data();g.host=i;g.host.data(h);g.element=i[0];g.element.id=g.field.id;g.field.id=f.id;if(g._className){g.host.addClass(g._className);a(g.field).removeClass(g._className)}if(g.field.tabIndex){var b=g.field.tabIndex;g.field.tabIndex=-1;g.element.tabIndex=b}}},createInstance:function(k){var j=this;j._createFromInput("jqxCalendar");if(j.isMaterialized()){var m=window.getComputedStyle(this.element);var i=m.getPropertyValue("--jqx-calendar-title-height");var c=m.getPropertyValue("--jqx-calendar-column-header-height");if(i){this.titleHeight=parseInt(i)}if(c){this.columnHeaderHeight=parseInt(c)}if(this.theme==="fluent"||j.theme==="tailwind"){this.navigationDelay=0}setTimeout(function(){j.refreshControl()},200)}this.setCalendarSize();if(this.element.id===""){this.element.id=a.jqx.utilities.createId()}if(a.type(this.value)=="date"){this.value=a.jqx._jqxDateTimeInput.getDateTime(this.value)}this.element.innerHTML="";this.host.attr("data-role","calendar");var b=this.element.id;var l=this;this.propertyChangeMap.width=function(n,p,o,q){l.setCalendarSize()};this.propertyChangeMap.height=function(n,p,o,q){l.setCalendarSize()};if(a.global){a.global.preferCulture(this.culture)}if(this.culture!="default"){if(a.global){a.global.preferCulture(this.culture);this.localization.calendar=a.global.culture.calendar}else{if(window.Globalize){var e=window.Globalize.culture(this.culture);this.localization.calendar=e.calendar}}this.firstDayOfWeek=this.localization.calendar.firstDay}if(this.localization.backString!="Back"){this.backText=this.localization.backString}if(this.localization.forwardString!="Forward"){this.forwardText=this.localization.forwardString}if(this.localization.todayString!="Today"&&this.localization.todayString){this.todayString=this.localization.todayString}if(this.localization.clearString!="Clear"&&this.localization.clearString){this.clearString=this.localization.clearString}if(this.localization.calendar&&this.localization.calendar.firstDay!=undefined&&this.culture!="default"){this.firstDayOfWeek=this.localization.calendar.firstDay}this.setMaxDate(this.max,false);this.setMinDate(this.min,false);if(!this.host.attr("tabIndex")){this.host.attr("tabIndex",0)}this.host.css("outline","none");this.host.addClass(this.toThemeProperty("jqx-calendar"));this.host.addClass(this.toThemeProperty("jqx-widget"));this.host.addClass(this.toThemeProperty("jqx-widget-content"));this.host.addClass(this.toThemeProperty("jqx-rc-all"));this._addInput();if(this.views.indexOf("month")==-1){this.view="year"}if(this.views.indexOf("year")==-1&&this.views.indexOf("month")==-1){this.view="decade"}this.addHandler(this.host,"keydown",function(o){var n=true;if(l.keyboardNavigation){if(l._handleKey!=undefined){n=l._handleKey(o);if(!n){if(o.stopPropagation){o.stopPropagation()}if(o.preventDefault){o.preventDefault()}}}}return n});var f=false;var h=this;var g=false;if(l.width!=null&&l.width.toString().indexOf("%")!=-1){g=true}if(l.height!=null&&l.height.toString().indexOf("%")!=-1){g=true}a.jqx.utilities.resize(this.host,function(){var n=h.host.find("#View"+l.element.id);if(!f){f=true;h.render()}else{h.refreshTitle(n)}if(g){if(l.refreshTimer){clearTimeout(l.refreshTimer)}l.refreshTimer=setTimeout(function(){l.refreshControl()},1)}},false,this._checkForHiddenParent);var d="View";this.propertyChangeMap.disabled=function(n,p,o,q){if(q){n.host.addClass(l.toThemeProperty("jqx-fill-state-disabled"))}else{n.host.removeClass(l.toThemeProperty("jqx-fill-state-disabled"))}l.refreshControl()}},_addInput:function(){var b=this.host.attr("name");this.input=a("<input type='hidden'/>");this.host.append(this.input);if(b){this.input.attr("name",b)}this.input.val(this.getDate().toString())},setCalendarSize:function(){if(this.width!=null&&this.width.toString().indexOf("px")!=-1){this.host.width(this.width)}else{if(this.width!=undefined&&!isNaN(this.width)){this.host.width(this.width)}}if(this.width!=null&&this.width.toString().indexOf("%")!=-1){this.host.css("width",this.width)}if(this.height!=null&&this.height.toString().indexOf("px")!=-1){this.host.height(this.height)}else{if(this.height!=undefined&&!isNaN(this.height)){this.host.height(this.height)}}if(this.height!=null&&this.height.toString().indexOf("%")!=-1){this.host.css("height",this.height)}},_getYearAndMonthPart:function(c){if(!c){return new Date(1900,0,1)}var b=new Date(c.getFullYear(),c.getMonth(),1);return b},_handleKey:function(p){if(this.readOnly){return true}var A=p.keyCode;var y=this;var b=this._getSelectedDate();if(b==undefined){if(this.view=="month"&&(A==37||A==38||A==39||A==40)){this.selectedDate=new Date(this.value.year,this.value.month-1,1);this._selectDate(this.selectedDate,"key");b=this.selectedDate}else{return true}}if(p.altKey){return true}if(this._animating){return false}if(this.view!="month"&&A==13){var d=this._getSelectedCell();this._setDateAndSwitchViews(d,p,"keyboard")}if(this.view=="year"){var w=b.getMonth();var j=this._getYearAndMonthPart(this.getMinDate());var m=this._getYearAndMonthPart(this.getMaxDate());switch(A){case 37:if(w==0){var h=new Date(b.getFullYear()-1,11,1);if(h>=j){this.selectedDate=h;this.navigateBackward()}else{if(this.selectedDate!=j){this.selectedDate=j;this.navigateBackward()}}}else{var h=new Date(b.getFullYear(),w-1,1);if(h>=j){this._selectDate(h,"key")}}return false;case 38:var h=new Date(b.getFullYear(),w-4,1);if(h<j){h=j}if(w-4<0){this.selectedDate=h;this.navigateBackward()}else{this._selectDate(h,"key")}return false;case 40:var h=new Date(b.getFullYear(),w+4,1);if(h>m){h=m}if(w+4>11){this.selectedDate=h;this.navigateForward()}else{this._selectDate(h,"key")}return false;case 39:if(w==11){var h=new Date(b.getFullYear()+1,0,1);if(h<=m){this.selectedDate=h;this.navigateForward()}else{if(this.selectedDate!=m){this.selectedDate=m;this.navigateForward()}}}else{var h=new Date(b.getFullYear(),w+1,1);if(h<=m){this._selectDate(h,"key")}}return false}return true}if(this.view=="decade"){var o=this._renderStartDate.getFullYear();var k=this._renderEndDate.getFullYear();var n=b.getFullYear();var v=this.getMinDate().getFullYear();var c=this.getMaxDate().getFullYear();switch(A){case 37:if(n-1>=v){if(n<=o){this.selectedDate=new Date(n-1,b.getMonth(),1);this.navigateBackward()}else{this._selectDate(new Date(n-1,b.getMonth(),1),"key")}}return false;case 38:var x=n-4;if(n-4<v){x=v}if(x<o){this.selectedDate=new Date(x,b.getMonth(),1);this.navigateBackward()}else{this._selectDate(new Date(x,b.getMonth(),1),"key")}return false;case 40:var x=n+4;if(x>c){x=c}if(x>k){this.selectedDate=new Date(x,b.getMonth(),1);this.navigateForward()}else{this._selectDate(new Date(x,b.getMonth(),1),"key")}return false;case 39:if(n+1<=c){if(n==k){this.selectedDate=new Date(n+1,b.getMonth(),1);this.navigateForward()}else{this._selectDate(new Date(n+1,b.getMonth(),1),"key")}}return false}return true}var u=new a.jqx._jqxDateTimeInput.getDateTime(b);var f=this.getViewStart();var e=this.getViewEnd();var t=u;var s=a.data(this.element,"View"+this.element.id);if(s==undefined||s==null){return true}if(A==36){u._setDay(1);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");return false}if(A==35){var r=this.value._daysInMonth(this.value.year,this.value.month);u._setDay(r);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");return false}var g=1;if(p.ctrlKey){g=12}if(A==34){var z=this.navigateForward(g);if(z){u._addMonths(g);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key")}return false}if(A==33){var z=this.navigateBackward(g);if(z){u._addMonths(-g);if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key")}return false}if(A==38){u._addDays(-7);if(u.dateTime<this.getMinDate()){return false}if(u.dateTime<f){var z=this.navigateBackward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l<=u.dateTime){this.value.day=l.getDate();this.navigateBackward();this._selectDate(u.dateTime,"key");break}}return false}else{if(A==40){u._addDays(7);if(u.dateTime>this.getMaxDate()){return false}if(u.dateTime>e){var z=this.navigateForward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l>=u.dateTime){this.value.day=l.getDate();this.navigateForward();this._selectDate(u.dateTime,"key");break}}return false}}if(A==37){u._addDays(-1);if(u.dateTime<this.getMinDate()){return false}if(u.dateTime<f){var z=this.navigateBackward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l<=u.dateTime){if(u.dateTime<this.getMinDate()||u.dateTime>this.getMaxDate()){return false}if(this._isDisabled(u.dateTime)){return false}this.navigateBackward();this._selectDate(u.dateTime,"key");break}}return false}else{if(A==39){u._addDays(1);if(u.dateTime>this.getMaxDate()){return false}if(u.dateTime>e){var z=this.navigateForward();if(!z){return false}}if(this._isDisabled(u.dateTime)){return false}this._selectDate(u.dateTime,"key");for(var q=0;q<s.cells.length;q++){var d=s.cells[q];var l=d.getDate();if(d.isOtherMonth&&d.isSelected&&l>=u.dateTime){if(u.dateTime<this.getMinDate()||u.dateTime>this.getMaxDate()){return false}this.navigateForward();this._selectDate(u.dateTime,"key");break}}return false}}return true},render:function(){if(!this.canRender){return}this.host.children().remove();var c=this._renderSingleCalendar("View"+this.element.id);var b=this;this.host.append(c)},addSpecialDate:function(b,c,d){if(this.multipleMonthRows==1&&this.multipleMonthColumns==1){var e=this.specialDates.length;this.specialDates[e]={Date:b,Class:c,Tooltip:d};this.refreshControl()}},refresh:function(c){var b=this;this.render();setTimeout(function(){b.refreshControl()})},invalidate:function(){this.refreshControl()},refreshControl:function(){if(this.multipleMonthRows==1&&this.multipleMonthColumns==1){this.refreshSingleCalendar("View"+this.element.id,null)}},getViewStart:function(){var c=this.getVisibleDate();var b=this.getFirstDayOfWeek(c);return b.dateTime},getViewEnd:function(){var c=this.getViewStart();var b=new a.jqx._jqxDateTimeInput.getDateTime(c);b._addDays(41);return b.dateTime},refreshSingleCalendar:function(e,l){if(!this.canRender){return}var j=this.host.find("#"+e);if(!this.month){this.month=j}var f=this.getVisibleDate();var c=this.getFirstDayOfWeek(f);this.refreshCalendarCells(j,c,e);this.refreshTitle(j);this.refreshRowHeader(j,e);if(this.selectedDate!=undefined){this._selectDate(this.selectedDate)}var b=parseInt(this.month.css("padding-top"));if(isNaN(b)){b=0}var g=this.host.height()-2*b;var k=g-this.titleHeight-this.columnHeaderHeight;if(!this.showDayNames){k=this.month.height()-this.titleHeight}if(this.showFooter){k-=20}var d=j.find("#cellsTable"+e);var i=j.find("#calendarRowHeader"+e);d.height(k);i.height(k)},refreshRowHeader:function(s,m){if(!this.showWeekNumbers){return}var c=this.getVisibleDate();var h=this.getFirstDayOfWeek(c);var n=h.dayOfWeek;var t=this.getWeekOfYear(h);var f=new a.jqx._jqxDateTimeInput.getDateTime(new Date(h.dateTime));f._addDays(5);f.dayOfWeek=f.dateTime.getDay();var k=this.getWeekOfYear(f);var e=this.rowHeader.find("table");e.width(this.rowHeaderWidth);var g=h;var q=new Array();for(var p=0;p<6;p++){var o=t.toString();var b=new a.jqx._jqxCalendar.cell(g.dateTime);var l=p+1+this.element.id;var j=a(e[0].rows[p].cells[0]);b.element=j;b.row=p;b.column=0;var d=j.find("#headerCellContent"+l);d.addClass(this.toThemeProperty("jqx-calendar-row-cell"));d[0].innerHTML=t;q[p]=b;g=new a.jqx._jqxDateTimeInput.getDateTime(new Date(g._addWeeks(1)));t=this.getWeekOfYear(g)}var r=a.data(this.element,s[0].id);r.rowCells=q;this._refreshOtherMonthRows(r,m)},_refreshOtherMonthRows:function(f,e){if(this.showOtherMonthDays){return}this._displayLastRow(true,e);this._displayFirstRow(true,e);var d=false;var g=false;for(var c=0;c<f.cells.length;c++){var b=f.cells[c];if(b.isVisible&&c<7){d=true}else{if(b.isVisible&&c>=f.cells.length-7){g=true}}}if(!d){this._displayFirstRow(false,e)}if(!g){this._displayLastRow(false,e)}},_displayLastRow:function(b,c){var g=this.host.find("#"+c);var f=g.find("#calendarRowHeader"+g[0].id).find("table");var d=null;if(this.showWeekNumbers){if(f[0].cells){var d=a(f[0].rows[5])}}var e=a(g.find("#cellTable"+g[0].id)[0].rows[5]);if(b){if(this.showWeekNumbers&&d){d.css("display","table-row")}e.css("display","table-row")}else{if(this.showWeekNumbers&&d){d.css("display","none")}e.css("display","none")}},_displayFirstRow:function(b,c){var e=this.host.find("#"+c);var d=e.find("#calendarRowHeader"+e[0].id).find("table");var f=null;if(this.showWeekNumbers){if(d[0].cells){var f=a(d[0].rows[0])}}var g=a(e.find("#cellTable"+e[0].id)[0].rows[0]);if(b){if(this.showWeekNumbers&&f){f.css("display","table-row")}g.css("display","table-row")}else{if(this.showWeekNumbers&&f){f.css("display","none")}g.css("display","none")}},_renderSingleCalendar:function(r,m){if(!this.canRender){return}var o=this.host.find("#"+r.toString());if(o!=null){o.remove()}var z=a("<div></div>").attr("id",r.toString());var b=this.getVisibleDate();var n=this.getFirstDayOfWeek(b);var e=new a.jqx._jqxDateTimeInput.getDateTime(n.dateTime);e._addMonths(1);var y=a.jqx._jqxCalendar.monthView(n,e,null,null,null,z);if(m==undefined||m==null){this.host.append(z);z.css({width:"100%",height:"100%"})}else{m.append(z)}a.data(this.element,r,y);var d=20;var x=parseInt(z.css("padding-top"))||0;if(isNaN(x)){x=0}var u=this.host.height()-2*x;var t=u-this.titleHeight-this.columnHeaderHeight;if(!this.showDayNames){t=u-this.titleHeight}if(this.showFooter){t-=d}if(this.rowHeaderWidth<0){this.rowHeaderWidth=0}if(this.columnHeaderHeight<0){this.columnHeaderHeight=0}if(this.titleHeight<0){this.titleHeight=0}var g=this.rowHeaderWidth;var k=this.columnHeaderHeight;if(!this.showWeekNumbers){g=0}if(!this.showDayNames){k=0}var D=a("<div></div>").css("height",this.titleHeight+"px");var w=a("<table role='grid'></table>").css({margin:0,width:"100%",height:"100%",borderSpacing:0}).attr({cellspacing:0,cellpadding:0});var s=a("<tr role='row'></tr>").attr("id","calendarTitle").css("width","100%");s.append("<td role='gridcell' NOWRAP id='leftNavigationArrow'></td>");s.append("<td aria-live='assertive' aria-atomic='true' role='gridcell' align='center' NOWRAP id='calendarTitleHeader'></td>");s.append("<td role='gridcell' NOWRAP id='rightNavigationArrow'></td>");w.append(s);D.append(w);var c=a("<table role='grid'></table>").addClass(this.toThemeProperty("jqx-calendar-month")).css({margin:0,borderSpacing:0}).attr({cellspacing:0,cellpadding:0});var v=a("<tr role='row'></tr>").attr("id","calendarHeader").css("height",k);v.append(a("<td role='gridcell' id='selectCell'></td>").css("width",g));v.append(a("<td role='gridcell' colspan='2' id='calendarColumnHeader'></td>").css({border:"none",paddingLeft:"2px",paddingRight:"2px"}));c.append(v);var l=a("<tr role='row'></tr>").attr("id","calendarContent");l.append(a("<td role='gridcell' id='calendarRowHeader'></td>").css({height:t,width:g,verticalAlign:"top"}));l.append(a("<td role='gridcell' valign='top' colspan='2' id='cellsTable'></td>").css({height:t,paddingLeft:"2px",paddingRight:"2px"}));c.append(l);var q=a("<div id='footer'></div>").css({margin:0,display:"none",height:d+"px"});var B=a("<table></table>").css({width:"100%",height:"100%",borderSpacing:0}).attr({cellspacing:0,cellpadding:0});var C=a("<tr id='calendarFooter'></tr>");C.append("<td align='right' id='todayButton'></td>");C.append("<td align='left' colspan='2' id='doneButton'></td>");B.append(C);q.append(B);z.append(D,c,q);this.header=z.find("#calendarHeader");this.header[0].id="calendarHeader"+r;this.header.addClass(this.toThemeProperty("calendar-header"));this.columnHeader=z.find("#calendarColumnHeader");this.columnHeader[0].id="calendarColumnHeader"+r;this.table=z.find("#cellsTable");this.table[0].id="cellsTable"+r;this.rowHeader=z.find("#calendarRowHeader");this.rowHeader[0].id="calendarRowHeader"+r;this.selectCell=z.find("#selectCell");this.selectCell[0].id="selectCell"+r;this.title=z.find("#calendarTitle");this.title[0].id="calendarTitle"+r;this.leftButton=z.find("#leftNavigationArrow");this.leftButton[0].id="leftNavigationArrow"+r;this.titleHeader=z.find("#calendarTitleHeader");this.titleHeader[0].id="calendarTitleHeader"+r;this.rightButton=z.find("#rightNavigationArrow");this.rightButton[0].id="rightNavigationArrow"+r;this.footer=z.find("#calendarFooter");this._footer=z.find("#footer");this._footer[0].id="footer"+r;this.footer[0].id="calendarFooter"+r;this.todayButton=z.find("#todayButton");this.todayButton[0].id="todayButton"+r;this.doneButton=z.find("#doneButton");this.doneButton[0].id="doneButton"+r;this.title.addClass(this.toThemeProperty("jqx-calendar-title-container"));if(this.showFooter){this._footer.css("display","block");this.footer.height(d);var j=a("<a href='javascript:;'>"+this.todayString+"</a>").appendTo(this.todayButton).addClass(this.toThemeProperty("jqx-calendar-footer"));var i=a("<a href='javascript:;'>"+this.clearString+"</a>").appendTo(this.doneButton).addClass(this.toThemeProperty("jqx-calendar-footer"));var p=this;var f="mousedown";if(a.jqx.mobile.isTouchDevice()){f=a.jqx.mobile.getTouchEventName("touchstart")}this.addHandler(j,f,function(){if(p.today){p.today()}else{p.setDate(new Date(),"mouse")}return false});this.addHandler(i,f,function(){if(p.clear){p.clear()}else{p.setDate(null,"mouse")}return false})}if(this.view!="month"){this.header.hide()}if(this.showDayNames&&this.view=="month"){this.renderColumnHeader(z)}this.oldView=this.view;this.renderCalendarCells(z,n,r);if(m==undefined||m==null){this.renderTitle(z)}this._refreshOtherMonthRows(y,r);z.find("tbody").css({border:"none",background:"transparent"});if(this.selectedDate!=undefined){this._selectDate(this.selectedDate)}var A=this;this.addHandler(this.host,"focus",function(){A.focus()});z.find("tr").addClass(this.toThemeProperty("jqx-reset"));z.addClass(this.toThemeProperty("jqx-widget-content jqx-calendar-month-container"));this.selectCell.addClass(this.toThemeProperty("jqx-reset jqx-calendar-top-left-header"));if(this.showWeekNumbers){this._renderRowHeader(z)}else{this.table[0].colSpan=3;this.columnHeader[0].colSpan=3;this.rowHeader.css("display","none");this.selectCell.css("display","none")}return z},_getTitleFormat:function(){switch(this.view){case"month":return this.titleFormat[0];case"year":return this.titleFormat[1];case"decade":return this.titleFormat[2];case"centuries":return this.titleFormat[3]}},renderTitle:function(t){var k=a("<div role='button'></div>").css("float","left");var l=a("<div role='button'></div>").css("float","right");var o=this.title;o.addClass(this.toThemeProperty("jqx-reset"));o.addClass(this.toThemeProperty("jqx-widget-header"));o.addClass(this.toThemeProperty("jqx-calendar-title-header"));var e=o.find("td");if(a.jqx.browser.msie&&a.jqx.browser.version<8){if(e.css("background-color")!="transparent"){var g=o.css("background-color");e.css("background-color",g)}if(e.css("background-image")!="transparent"){var d=o.css("background-image");var p=o.css("background-repeat");var c=o.css("background-position");e.css("background-image",d);e.css("background-repeat",p);e.css("background-position","left center scroll")}}else{e.css("background-color","transparent")}if(this.disabled){o.addClass(this.toThemeProperty("jqx-calendar-title-header-disabled"))}k.addClass(this.toThemeProperty("jqx-calendar-title-navigation"));k.addClass(this.toThemeProperty("jqx-icon-arrow-left"));k[0].setAttribute("title",this.backText);k.appendTo(this.leftButton);var m=this.leftButton;l.addClass(this.toThemeProperty("jqx-calendar-title-navigation"));l.addClass(this.toThemeProperty("jqx-icon-arrow-right"));l.appendTo(this.rightButton);l[0].setAttribute("title",this.forwardText);var b=this.rightButton;if(this.enableTooltips){if(a(m).jqxTooltip){a(m).jqxTooltip({name:this.element.id,position:"mouse",theme:this.theme,content:this.backText});a(b).jqxTooltip({name:this.element.id,position:"mouse",theme:this.theme,content:this.forwardText})}}var n=this.titleHeader;var v=this._format(this.value.dateTime,this._getTitleFormat(),this.culture);if(this.view=="decade"){var q=this._format(this._renderStartDate,this._getTitleFormat(),this.culture);var j=this._format(this._renderEndDate,this._getTitleFormat(),this.culture);v=q+" - "+j}else{if(this.view=="centuries"){var q=this._format(this._renderCenturyStartDate,this._getTitleFormat(),this.culture);var j=this._format(this._renderCenturyEndDate,this._getTitleFormat(),this.culture);v=q+" - "+j}}var f=a("<div></div>").text(v).css({background:"transparent",margin:0,padding:0,border:"none"});n.append(f);f.addClass(this.toThemeProperty("jqx-calendar-title-content"));var s=parseInt(k.width());var i=t.width()-2*s;var r=n.find(".jqx-calendar-title-content").width(i);a.data(k,"navigateLeft",this);a.data(l,"navigateRight",this);var h=a.jqx.mobile.isTouchDevice();if(!this.disabled){var u=this;this.addHandler(n,"mousedown",function(A){if(u.enableViews){if(!u._viewAnimating&&!u._animating){var x=u.view;u.oldView=x;switch(u.view){case"month":u.view="year";break;case"year":u.view="decade";break}if(u.views.indexOf("year")==-1&&u.view=="year"){u.view="decade"}if(u.views.indexOf("decade")==-1&&u.view=="decade"){u.view=x}if(x!=u.view){var z="View"+u.element.id;var B=u.host.find("#"+z);var y=u.getVisibleDate();var w=u.getFirstDayOfWeek(y);u.renderCalendarCells(B,w,z,true);u.refreshTitle(B);u._raiseEvent("8")}}return false}});this.addHandler(k,"mousedown",function(x){if(!u._animating){a.data(k,"navigateLeftRepeat",true);var w=a.data(k,"navigateLeft");if(w.enableFastNavigation&&!h){w.startRepeat(w,k,true,u.navigationDelay+200)}w.navigateBackward(u.stepMonths,"arrow");x.stopPropagation();x.preventDefault();return w._raiseEvent(0,x)}else{return false}});this.addHandler(k,"mouseup",function(w){a.data(k,"navigateLeftRepeat",false)});this.addHandler(k,"mouseleave",function(w){a.data(k,"navigateLeftRepeat",false)});this.addHandler(l,"mousedown",function(x){if(!u._animating){a.data(l,"navigateRightRepeat",true);var w=a.data(l,"navigateRight");if(w.enableFastNavigation&&!h){w.startRepeat(w,l,false,u.navigationDelay+200)}w.navigateForward(u.stepMonths,"arrow");x.stopPropagation();x.preventDefault();return w._raiseEvent(1,x)}else{return false}});this.addHandler(l,"mouseup",function(w){a.data(l,"navigateRightRepeat",false)});this.addHandler(l,"mouseleave",function(w){a.data(l,"navigateRightRepeat",false)})}},refreshTitle:function(f){var g=this._format(this.value.dateTime,this._getTitleFormat(),this.culture);if(this.view=="decade"){var d=this._format(this._renderStartDate,this._getTitleFormat(),this.culture);var b=this._format(this._renderEndDate,this._getTitleFormat(),this.culture);g=d+" - "+b}else{if(this.view=="centuries"){var d=this._format(this._renderCenturyStartDate,this._getTitleFormat(),this.culture);var b=this._format(this._renderCenturyEndDate,this._getTitleFormat(),this.culture);g=d+" - "+b}}var e=this.titleHeader;if(this.titleHeader){var c=e.find(".jqx-calendar-title-content");var h=a("<div></div>").text(g).css({background:"transparent",margin:0,padding:0,border:"none"});e.append(h);h.addClass(this.toThemeProperty("jqx-calendar-title-content"));if(c!=null){c.remove()}}},startRepeat:function(d,b,f,e){var c=window.setTimeout(function(){var g=a.data(b,"navigateLeftRepeat");if(!f){g=a.data(b,"navigateRightRepeat")}if(g){if(e<25){e=25}if(f){d.navigateBackward(1,"arrow");d.startRepeat(d,b,true,e)}else{d.navigateForward(1,"arrow");c=d.startRepeat(d,b,false,e)}}else{window.clearTimeout(c);return}},e)},navigateForward:function(h,g){if(h==undefined||h==null){h=this.stepMonths}var f=this.value.year;if(this.view=="decade"){f=this._renderStartDate.getFullYear()+12;if(this._renderEndDate.getFullYear()>=this.getMaxDate().getFullYear()){return}}else{if(this.view=="year"){f=this.value.year+1}else{if(this.view=="centuries"){f=this.value.year+100}}}if(this.view!="month"){var b=this.getMaxDate().getFullYear();if(b<f||f>b){f=b}if(this.value.year==f){if(this.view==="decade"){if(this.value.year>this._renderEndDate.getFullYear()){this.value.year=f;this.value.month=1;this.value.day=1}else{return}}else{return}}this.value.year=f;this.value.month=1;this.value.day=1}var c=this.value.day;var i=this.value.month;if(i+h<=12){var e=this.value._daysInMonth(this.value.year,this.value.month+h);if(c>e){c=e}}if(this.view=="month"){var d=new Date(this.value.year,this.value.month-1+h,c);if(g=="arrow"&&this.selectableDays.length==7&&this.selectionMode!="range"){this.selectedDate=new Date(this.value.year,this.value.month-1+h,1)}}else{var d=new Date(this.value.year,this.value.month-1,c)}return this.navigateTo(d)},navigateBackward:function(g,f){if(g==undefined||g==null){g=this.stepMonths}var e=this.value.year;if(this.view=="decade"){e=this._renderStartDate.getFullYear()-12}else{if(this.view=="year"){e=this.value.year-1}else{if(this.view=="centuries"){e=this.value.year-100}}}if(this.view!="month"){var i=this.getMinDate().getFullYear();if(e<i){e=i}if(this.view=="decade"){if(this._renderStartDate){if(this._renderStartDate.getFullYear()==e){return}}}this.value.year=e;this.value.month=1;this.value.day=1}var b=this.value.day;var h=this.value.month;if(h-g>=1){var d=this.value._daysInMonth(this.value.year,this.value.month-g);if(b>d){b=d}}if(this.view=="month"){var c=new Date(this.value.year,this.value.month-1-g,b);if(f=="arrow"&&this.selectableDays.length==7&&this.selectionMode!="range"){this.selectedDate=new Date(this.value.year,this.value.month-1-g,1)}}else{var c=new Date(this.value.year,this.value.month-1,b)}return this.navigateTo(c)},_isRestrictedRange:function(d,c){if(d>c){return true}var b=d;while(b.valueOf()<=c.valueOf()){if(this._isRestrictedDate(b)){return true}b.setDate(b.getDate()+1)}return false},_hasUnrestrictedRanges:function(d,c){if(d>c){return false}var b=d;while(b.valueOf()<=c.valueOf()){if(!this._isRestrictedDate(b)){return true}b.setDate(b.getDate()+1)}return false},_getNextUnrestrictedDay:function(d,c){if(d>c){return null}var b=d;while(b.valueOf()<=c.valueOf()){if(!this._isRestrictedDate(b)){return b}b.setDate(b.getDate()+1)}return null},_isRestrictedDate:function(d){var c=this;if(!a.isArray(c.restrictedDates)){return false}for(var g=0;g<c.restrictedDates.length;g++){var b=c.restrictedDates[g];if(typeof(b)=="object"&&b.from!=undefined&&b.to!=undefined){var f=b.from;var e=b.to;if(d.valueOf()>=f.valueOf()&&d.valueOf()<=e.valueOf()){return true}}else{if(b.getMonth()==d.getMonth()&&b.getDate()==d.getDate()&&b.getFullYear()==d.getFullYear()){return true}}}return false},_isDisabled:function(d){var e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var b=d.getDay();var c=e[b];if(this.selectableDays.indexOf(c)==-1){return true}if(this._isRestrictedDate(d)){return true}return false},refreshCalendarCells:function(x,f,m){if(this.view=="year"||this.view=="decade"||this.view=="centuries"){this.refreshViews(x,f,m);return}var s=this.table;var q=s.find("#cellTable"+m.toString());var e=f;var c=new Array();var n=0;var u=new a.jqx._jqxDateTimeInput.getDateTime(new Date());for(var p=0;p<6;p++){for(var o=0;o<7;o++){var d=p+1;var h=o;if(this.rtl){h=6-h}var t=h+1;var l="#cell"+d+t+this.element.id;var w=new Date(e.dateTime.getFullYear(),e.dateTime.getMonth(),e.dateTime.getDate());var b=new a.jqx._jqxCalendar.cell(w);var g=a(q[0].rows[p].cells[t-1]);g[0].id=l.substring(1);b.element=g;b.row=p;b.column=o;b.isVisible=true;b.isOtherMonth=false;b.isToday=false;b.isWeekend=false;b.isHighlighted=false;b.isSelected=false;if(e.month!=this.value.month){b.isOtherMonth=true;b.isVisible=this.showOtherMonthDays}if(this._isRestrictedDate(w)){b.isRestricted=true;b.isDisabled=true}if(!b.isDisabled){if(w<this.getMinDate()||w>this.getMaxDate()||this._isDisabled(w)){b.isDisabled=true}}if(e.month==u.month&&e.day==u.day&&e.year==u.year){b.isToday=true}if(e.isWeekend()){b.isWeekend=true}a.data(this.element,"cellContent"+l.substring(1),b);a.data(this.element,l.substring(1),b);c[n]=b;n++;a.jqx.utilities.html(g,e.day);this._applyCellStyle(b,g,g);e=new a.jqx._jqxDateTimeInput.getDateTime(new Date(e._addDays(1)))}}var v=a.data(this.element,x[0].id);if(v!=undefined&&v!=null){v.cells=c}this.renderedCells=c;this._refreshOtherMonthRows(v,m)},_getDecadeAndCenturiesData:function(){var k=new Array();var q=new Array();var c=this.getMaxDate().getFullYear()-this.getMinDate().getFullYear();if(c<12){c=12}var f=this.getMinDate();var b=this.getMaxDate();var l=this.value.dateTime.getFullYear();if(this.view=="decade"){if(l+12>b.getFullYear()){l=b.getFullYear()-11}if(l<f.getFullYear()){l=f.getFullYear()}for(var h=0;h<c;h++){var d=new Date(f.getFullYear()+h,0,1);if(f.getFullYear()<=l&&l<=d.getFullYear()){var g=new Date(d.getFullYear(),d.getMonth(),1);for(var e=0;e<12;e++){var p=new Date(g.getFullYear()+e,this.value.dateTime.getMonth(),this.value.dateTime.getDate());var m=p.getFullYear();if(f.getFullYear()<=m&&m<=b.getFullYear()){k.push(m);q.push(p);if(e==0){this._renderStartDate=p}this._renderEndDate=p}else{k.push(m);q.push(p)}}break}}}else{if(this.view=="centuries"){for(var h=0;h<c;h+=120){var d=new Date(f.getFullYear()+h+120,0,1);if(f.getFullYear()<=l&&l<=d.getFullYear()){var g=new Date(d.getFullYear()-130,d.getMonth(),1);if(g<f){g=f}for(var e=0;e<12;e++){var n=new Date(g.getFullYear()+e*10,g.getMonth(),1);if(g.getFullYear()>=f.getFullYear()&&n.getFullYear()<=b.getFullYear()){var o=a("<span>-</span>").css("visibility","hidden");k.push(o.prop("outerHTML")+n.getFullYear()+"-"+(n.getFullYear()+9));q.push(n);if(e==0){this._renderCenturyStartDate=n}this._renderCenturyEndDate=new Date(n.getFullYear()+9,0,1)}}break}}}}return{years:k,dates:q}},refreshViews:function(A,m,s){var B=this;var c=new Array();var w=A.find("#cellTable"+s.toString());var D=this._getDecadeAndCenturiesData();var l=D.years;var C=D.dates;var t=0;var f=this.getMinDate();var n=this.getMaxDate();for(var v=0;v<3;v++){for(var u=0;u<4;u++){var d=v+1;var q=u;if(this.rtl){q=3-q}var x=q+1;var z=new Date(this.value.dateTime);z.setDate(1);z.setMonth(v*4+q);var b=new a.jqx._jqxCalendar.cell(z);var e=w[0].rows["row"+(1+v)+this.element.id];var o=a(e.cells[u]);b.isSelected=false;b.isVisible=true;b.element=o;b.row=v;b.column=u;b.index=c.length;var p="";if(this.view=="year"){var h=this.localization.calendar.months.names;var g=h[v*4+q];switch(this.monthNameFormat){case"default":g=this.localization.calendar.months.namesAbbr[v*4+q];break;case"shortest":g=this.localization.calendar.months.namesShort[v*4+q];break;case"firstTwoLetters":g=g.substring(0,2);break;case"firstLetter":g=g.substring(0,1);break}p=g}else{if(this.view=="decade"||this.view=="centuries"){p=l[v*4+q];if(undefined==p){p="<span style='cursor: default; visibility: hidden;'>2013</span>"}b.setDate(C[v*4+q])}}var z=b.getDate();if(this.view=="year"){if(z.getMonth()==this.getDate().getMonth()&&z.getFullYear()==this.getDate().getFullYear()){b.isSelected=true}}else{if(z.getFullYear()==this.getDate().getFullYear()){b.isSelected=true}}if(this.view=="year"){if(this._getYearAndMonthPart(z)<this._getYearAndMonthPart(f)){b.isDisabled=true}if(this._getYearAndMonthPart(z)>this._getYearAndMonthPart(n)){b.isDisabled=true}}else{if(z.getFullYear()<f.getFullYear()){b.isDisabled=true}if(z.getFullYear()>n.getFullYear()){b.isDisabled=true}}a.jqx.utilities.html(o,p);c[t]=b;t++}}var y=a.data(this.element,A[0].id);if(y!=undefined&&y!=null){y.cells=c}this.renderedCells=c;this._applyCellStyles()},_createViewClone:function(){var b=this.host.find(".jqx-calendar-month");var c=b.clone();c.css("position","absolute");c.css("top",b.position().top);c.width(this.month.width());return c},_addCellsTable:function(h,g){var e=this;var c=this.showFooter?20:0;if(this.view!="month"){if(this.views.indexOf("month")===-1){g.height(this.host.height()-this.titleHeight)}else{g.height(this.month.height()-this.titleHeight);if(this.month[0].style.height==="100%"){g.height(this.host.height()-this.titleHeight)}}}else{g.height(this.month.height()-this.titleHeight-this.columnHeaderHeight-c);if(this.month[0].style.height==="100%"){g.height(this.host.height()-this.titleHeight-this.columnHeaderHeight-c)}}this._viewAnimating=true;var b=this.host.find(".jqx-calendar-month-container");b.css("position","relative");var d=this.host.find(".jqx-calendar-month");var f=this._createViewClone();b.append(f);if(this.view!="month"){this.header.fadeOut(0);if(this.showWeekNumbers){this.rowHeader.fadeOut(0)}if(this.showFooter){this._footer.fadeOut(0)}}else{this.header.fadeIn(this.navigationDelay+200);if(this.showWeekNumbers){this.rowHeader.fadeIn(this.navigationDelay+200)}if(this.showFooter){this._footer.fadeIn(this.navigationDelay+200)}}h.children().remove();h.append(g);this._animateViews(f,g,function(){if(!e.selectedDate&&e.selectionMode!="range"){e.selectedDate=e.renderedCells[0].getDate()}try{e.renderedCells[0].element.focus();setTimeout(function(){e.renderedCells[0].element.focus()},10)}catch(i){}e._viewAnimating=false});g.addClass(this.toThemeProperty("jqx-calendar-view"))},_animateViews:function(c,b,e){var d=this;d._viewAnimating=true;if(d.oldView==d.view){c.remove();b.fadeOut(0);b.fadeIn(0);e();return}c.fadeOut(this.navigationDelay+100,function(){c.remove()});b.fadeOut(0);b.fadeIn(this.navigationDelay+200,function(){e()})},focus:function(){if(this.disabled){return}try{if(this.renderedCells&&this.renderedCells.length>0){var d=this;var c=false;if(!d.selectedDate&&d.selectionMode!="range"){this.setDate(new Date(),"mouse")}this.element.focus()}}catch(b){}},renderViews:function(E,o,v){var F=this;var e=new Array();var z=a("<table></table>").attr({role:"grid",id:"cellTable"+v.toString(),cellspacing:2,cellpadding:0}).css({borderColor:"transparent",width:"100%",height:"100%"});for(var y=1;y<=3;y++){var f=a("<tr></tr>").attr({role:"row",id:"row"+y+this.element.id});for(var x=0;x<4;x++){var c=a("<td></td>").attr("role","gridcell");f.append(c)}z.append(f)}var q=this.host.find(".jqx-calendar-month-container");q.css("position","relative");var A=E.find("#cellsTable"+E[0].id);A[0].style.borderColor="transparent";var I=this._getDecadeAndCenturiesData();var m=I.years;var H=I.dates;var w=0;var g=this.getMinDate();var n=this.getMaxDate();var t=new Date(this.value.dateTime);t.setDate(1);for(var y=0;y<3;y++){for(var x=0;x<4;x++){var d=y+1;var u=x;if(this.rtl){u=3-u}var B=u+1;var f=z[0].rows["row"+(1+y)+this.element.id];var D=new Date(t);D.setMonth(y*4+u);var c=new a.jqx._jqxCalendar.cell(D);var p=a(f.cells[x]);c.isVisible=true;c.element=p;c.row=y;c.column=x;c.index=e.length;c.isSelected=false;var s="";if(this.view=="year"){if(D.getMonth()==this.getDate().getMonth()&&D.getFullYear()==this.getDate().getFullYear()){c.isSelected=true}var l=this.localization.calendar.months.names;var h=l[y*4+u];switch(this.monthNameFormat){case"default":h=this.localization.calendar.months.namesAbbr[y*4+u];break;case"shortest":h=this.localization.calendar.months.namesShort[y*4+u];break;case"firstTwoLetters":h=h.substring(0,2);break;case"firstLetter":h=h.substring(0,1);break}s=h}else{if(this.view=="decade"||this.view=="centuries"){s=m[y*4+u];c.setDate(H[y*4+u]);if(c.getDate().getFullYear()==this.getDate().getFullYear()){c.isSelected=true}if(undefined==s){s="<span style='cursor: default; visibility: hidden;'>2013</span>"}}}var D=c.getDate();if(this.view=="year"){var b=new Date(D);b.setDate(1);b.setHours(0,0,0,0);b.setMonth(D.getMonth()+1);b=new Date(b.valueOf()-1);if(this._getYearAndMonthPart(D)<this._getYearAndMonthPart(g)||this._getYearAndMonthPart(D)>this._getYearAndMonthPart(n)||!this._hasUnrestrictedRanges(D,b)){c.isDisabled=true}}else{var G=new Date(D);G.setMonth(0);G.setDate(1);G.setHours(0,0,0,0);G.setFullYear(D.getFullYear()+1);G=new Date(G.valueOf()-1);if(D.getFullYear()<g.getFullYear()||D.getFullYear()>n.getFullYear()||!this._hasUnrestrictedRanges(D,G)){c.isDisabled=true}}a.jqx.utilities.html(p,s);e[w]=c;w++}}a.each(e,function(){var j=this.element;var i=this;if(!F.disabled){F.addHandler(j,"mousedown",function(k){F._setDateAndSwitchViews(i,k,"mouse")});F.addHandler(j,"mouseover",function(r){var k=F.renderedCells[i.index];if(F.view!="centuries"&&k.element.html().toLowerCase().indexOf("span")!=-1){return}k.isHighlighted=true;F._applyCellStyle(k,k.element,k.element)});F.addHandler(j,"mouseout",function(r){var k=F.renderedCells[i.index];if(F.view!="centuries"&&k.element.html().toLowerCase().indexOf("span")!=-1){return}k.isHighlighted=false;F._applyCellStyle(k,k.element,k.element)})}});var C=a.data(this.element,E[0].id);if(C!=undefined&&C!=null){C.cells=e}this.renderedCells=e;this._addCellsTable(A,z);this._applyCellStyles()},_setDateAndSwitchViews:function(m,d,j){if(!this._viewAnimating&&!this._animating){var g=this.getDate();var e=this.renderedCells[m.index].getDate();var k=this.value.dateTime.getDate();var l=new Date(e);if(this.views.indexOf("month")!=-1){l.setDate(k)}else{l.setDate(1);e.setDate(1)}if(l.getMonth()==e.getMonth()){e=l}var i=this.getMinDate();var c=this.getMaxDate();if(this.view=="year"){if(this._getYearAndMonthPart(e)<this._getYearAndMonthPart(i)){return}if(this._getYearAndMonthPart(e)>this._getYearAndMonthPart(c)){return}}else{if(e.getFullYear()<i.getFullYear()){return}if(e.getFullYear()>c.getFullYear()){return}}if(this.selectionMode!="range"){this._selectDate(e,j)}this.oldView=this.view;switch(this.view){case"year":this.view="month";break;case"decade":this.view="year";break}if(this.views.indexOf("month")==-1){this.view="year"}if(this.views.indexOf("year")==-1){this.view="decade"}if(this.view=="year"){if(this._getYearAndMonthPart(e)<this._getYearAndMonthPart(i)){e=i}if(this._getYearAndMonthPart(e)>this._getYearAndMonthPart(c)){e=c}}else{if(e.getFullYear()<i.getFullYear()){e=i}if(e.getFullYear()>c.getFullYear()){e=c}}if(this.changing&&(this.selectedDate&&(this.selectedDate.getFullYear()!=e.getFullYear()||this.selectedDate.getMonth()!=e.getMonth()||this.selectedDate.getDate()!=e.getDate()))){e=this.selectedDate}this.value._setYear(e.getFullYear());this.value._setDay(e.getDate());this.value._setMonth(e.getMonth()+1);this.value._setDay(e.getDate());var h=this.getVisibleDate();var b=this.getFirstDayOfWeek(h);var f="View"+this.element.id;this.renderCalendarCells(this.month,b,f,true);this.refreshTitle(this.month);if(this.showWeekNumbers){this.refreshRowHeader(this.month,f)}if(this.views.length==3){if(this.view=="month"){if(this.selectionMode!="range"){this._selectDate(this.selectedDate,"view")}else{var n=this;a.each(this.renderedCells,function(r){var o=this;var t=o.getDate();var p=a(o.element);var q=p;if(p.length==0){return false}var s=function(v){if(v==null){return new Date()}var u=new Date();u.setHours(0,0,0,0);u.setFullYear(v.getFullYear(),v.getMonth(),v.getDate());return u};if(!o.isOtherMonth&&s(t).toString()==s(e).toString()){n.value._setMonth(e.getMonth()+1);n.value._setDay(e.getDate());n.value._setYear(e.getFullYear())}o.isSelected=false;o.isDisabled=false;if(s(t)<s(n.selection.from)&&n._clicks==1){o.isDisabled=true}if(n.getMaxDate()<t){o.isDisabled=true}if(n.getMinDate()>t){o.isDisabled=true}if(n._isDisabled(t)){o.isDisabled=true}if(!o.isDisabled){if(s(t)>=s(n.selection.from)&&s(t)<=s(n.selection.to)){o.isSelected=true}}});this._applyCellStyles()}}}if(this.view!="month"){if(this.oldView=="year"||(this.views.indexOf("year")==-1&&this.view=="decade")){if(j!="keyboard"){this._raiseEvent("3")}this._raiseEvent("5",{selectionType:"mouse"})}}this._raiseEvent("8")}},renderCalendarCells:function(G,p,v,u){if(this.view=="year"||this.view=="decade"||this.view=="centuries"){this.renderViews(G,p,v);return}var A=a("<table></table>").attr({role:"grid",id:"cellTable"+v.toString(),cellspacing:2,cellpadding:1}).css({width:"100%",height:"100%",borderColor:"transparent"});var f=6;var l=7;for(var z=0;z<f;z++){var n=a("<tr></tr>").attr("role","row");for(var y=0;y<l;y++){var c=a("<td></td>").attr("role","gridcell");n.append(c)}A.append(n)}var B=this.table;B[0].style.borderColor="transparent";if(u==undefined){var h=B.find("#cellTable"+v.toString());if(h!=null){h.remove()}B.append(A)}var o=p;var b=this.showDayNames?1:0;var g=this.showWeekNumbers?1:0;var e=new Array();var w=0;var x=(G.width()-this.rowHeaderWidth-2)/7;if(!this.showWeekNumbers){x=(G.width()-2)/7}x=parseInt(x);var D=new a.jqx._jqxDateTimeInput.getDateTime(new Date());for(var z=0;z<6;z++){for(var y=0;y<7;y++){var d=z+1;var s=y;if(this.rtl){s=6-s}var C=s+1;var t="#cell"+d+C+this.element.id;var F=new Date(o.dateTime.getFullYear(),o.dateTime.getMonth(),o.dateTime.getDate());var c=new a.jqx._jqxCalendar.cell(F);var q=a(A[0].rows[z].cells[C-1]);q[0].id=t.substring(1);c.isVisible=true;c.isDisabled=false;if(o.month!=this.value.month){c.isOtherMonth=true;c.isVisible=this.showOtherMonthDays}if(this._isRestrictedDate(F)){c.isRestricted=true;c.isDisabled=true}if(!c.isDisabled){if(F<this.getMinDate()||F>this.getMaxDate()||this._isDisabled(F)){c.isDisabled=true}}if(o.month==D.month&&o.day==D.day&&o.year==D.year){c.isToday=true}if(o.isWeekend()){c.isWeekend=true}c.element=q;c.row=b;c.column=g;a.jqx.utilities.html(q,o.day);o=new a.jqx._jqxDateTimeInput.getDateTime(new Date(o._addDays(1)));a.data(this.element,"cellContent"+t.substring(1),c);a.data(this.element,""+t.substring(1),c);var H=this;if(H.isMaterialized()){a(q).addClass("ripple");a.jqx.ripple(a(q))}this.addHandler(q,"mousedown",function(L){if(!H.readOnly&&!H.disabled){var K=a(L.target);var j=a.data(H.element,K[0].id);var i=H._raiseEvent(3,L);if(j!=null&&j!=undefined){var r=j.getDate();if(H.getMinDate()<=r&&r<=H.getMaxDate()){if(!j.isDisabled){if(j.isOtherMonth&&H.enableAutoNavigation){if(j.row<2){H.navigateBackward()}else{H.navigateForward()}H._selectDate(j.getDate(),"mouse",L.shiftKey)}else{var I=new Date(H.getDate());H._selectDate(j.getDate(),"mouse",L.shiftKey);H.value._setYear(r.getFullYear());H.value._setDay(1);H.value._setMonth(r.getMonth()+1);H.value._setDay(r.getDate());var J=H.host.find(".jqx-calendar-month");J.stop();J.css("margin-left","0px");var k=H.getDate();H._raiseEvent("2");if(j.isOtherMonth){H._raiseEvent("5",{selectionType:"mouse"})}}}}}return false}});if(!H.disabled){var m=function(I,j){if(!H.readOnly){var r=a(I.target);var i=a.data(H.element,r[0].id);if(i!=null&&i!=undefined){var k=i.getDate();if(H.getMinDate()<=k&&k<=H.getMaxDate()){i.isHighlighted=j;H._applyCellStyle(i,i.element,r)}}}};this.addHandler(q,"mouseenter",function(i){m(i,true);return false});this.addHandler(q,"mouseleave",function(i){m(i,false);return false})}g++;e[w]=c;w++}g=0;b++}var E=a.data(this.element,G[0].id);if(E!=undefined&&E!=null){E.cells=e}this.renderedCells=e;if(u!=undefined){this._addCellsTable(B,A)}this._applyCellStyles();this._refreshOtherMonthRows(E,v)},setMaxDate:function(b,c){if(b!=null&&typeof(b)=="string"){b=new Date(b);if(b=="Invalid Date"){return}}this.maxDate=a.jqx._jqxDateTimeInput.getDateTime(b);if(c!==false){this.render()}},getMaxDate:function(){if(this.maxDate!=null&&this.maxDate!=undefined){return this.maxDate.dateTime}return null},setMinDate:function(b,c){if(b!=null&&typeof(b)=="string"){b=new Date(b);if(b=="Invalid Date"){return}}this.minDate=a.jqx._jqxDateTimeInput.getDateTime(b);if(c!==false){this.render()}},getMinDate:function(){if(this.minDate!=null&&this.minDate!=undefined){return this.minDate.dateTime}return null},navigateTo:function(g,i){if(this.view=="month"){var h=this.getMinDate();var d=new Date(this.getMaxDate().getFullYear(),this.getMaxDate().getMonth()+1,this.getMaxDate().getDate());if((g<this._getYearAndMonthPart(h))||(g>this._getYearAndMonthPart(d))){return false}}else{if(g&&(g.getFullYear()<this.getMinDate().getFullYear()||g.getFullYear()>this.getMaxDate().getFullYear())){return false}}if(g==null){return false}if(i==undefined){var j=this;if(this._animating){return}this._animating=true;var e=this.host.find(".jqx-calendar-month-container");var k=a("<div></div>");k[0].style.width="100%";k[0].style.height="100%";k[0].style.overflow="hidden";k[0].style.position="relative";k[0].style.left="0px";k[0].style.top="-100%";e.append(k);if(this._viewClone){this._viewClone.stop();this._viewClone.remove()}if(this._newViewClone){this._newViewClone.stop();this._newViewClone.remove()}var m=this.host.find(".jqx-calendar-month");m.stop();m.css("margin-left","0px");var b=m.clone();this._viewClone=b;var l=new Date(this.value.dateTime);this.value._setYear(g.getFullYear());this.value._setDay(g.getDate());this.value._setMonth(g.getMonth()+1);var c=parseInt(this.month.css("padding-top"));if(isNaN(c)){c=0}j.refreshControl();k.css("overflow","hidden");e.css("position","relative");e.css("overflow","hidden");b.css("position","absolute");b.css("top",m.position().top-c);k.append(b);if(a.jqx.browser.msie&&a.jqx.browser.version<8){this.month.css("position","relative");this.month.css("overflow","hidden");this.table.css("position","relative");this.table.css("overflow","hidden")}var f=-this.month.width();if(g<l){if(this.view=="month"&&g.getMonth()!=l.getMonth()){f=this.month.width()}else{if(g.getFullYear()!=l.getFullYear()){f=this.month.width()}}}b.animate({marginLeft:parseInt(f)+"px"},this.navigationDelay,function(){b.remove()});var n=m.clone();this._newViewClone=n;n.css("position","absolute");n.css("top",m.position().top-c);k.append(n);n.css("margin-left",-f);m.css("visibility","hidden");n.animate({marginLeft:"0px"},this.navigationDelay,function(){n.remove();m.css("visibility","inherit");k.remove();j._animating=false})}else{this.value._setYear(g.getFullYear());this.value._setDay(g.getDate());this.value._setMonth(g.getMonth()+1);var m=this.host.find(".jqx-calendar-month");m.stop();m.css("margin-left","0px");this.refreshControl()}this._raiseEvent("2");this._raiseEvent("8");return true},setDate:function(b){if(b!=null&&typeof(b)=="string"){b=new Date(b)}if(this.canRender==false){this.canRender=true;this.render()}this.navigateTo(b,"api");this._selectDate(b);if(this.selectionMode=="range"){this._selectDate(b,"mouse")}return true},val:function(b){if(arguments.length!=0){if(b==null){this.setDate(null)}if(b instanceof Date){this.setDate(b)}if(typeof(b)=="string"){this.setDate(b)}}return this.getDate()},getDate:function(){if(this.selectedDate==undefined){return new Date()}return this.selectedDate},getValue:function(){if(this.value==undefined){return new Date()}return this.value.dateTime},setRange:function(c,b){if(this.canRender==false){this.canRender=true;this.render()}this.navigateTo(c,"api");this._selectDate(c,"mouse");this._selectDate(b,"mouse")},getRange:function(){return this.selection},_selectDate:function(d,g,c){if(this.selectionMode=="none"){return}if(g==null||g==undefined){g="none"}if(c==null||c==undefined){c=false}var i=a.data(this.element,"View"+this.element.id);if(i==undefined||i==null){return}if(this.changing){if(d&&this.selectedDate){if(this.selectedDate.getFullYear()!=d.getFullYear()||this.selectedDate.getDate()!=d.getDate()||this.selectedDate.getMonth()!=d.getMonth()){var j=this.changing(this.selectedDate,d)}if(j){d=j}}}var k=this;if(this.input){if(d!=null){this.input.val(d.toString())}else{this.input.val("")}}var e=this.selectedDate;this.selectedDate=d;if(this.view!="month"){if(e!=d){this._raiseEvent(7,{selectionType:g})}a.each(this.renderedCells,function(p){var l=this;var q=l.getDate();var m=a(l.element);var o=m.find("#cellContent"+m[0].id);if(d==null){l.isSelected=false;l.isDisabled=false}else{l.isSelected=false;if(q){if((q.getMonth()==d.getMonth()&&k.view=="year"&&q.getFullYear()==d.getFullYear())||(k.view=="decade"&&q.getFullYear()==d.getFullYear())){l.isSelected=true;try{if(g!="none"){l.element.focus()}}catch(n){}}}}k._applyCellStyle(l,m,m)});if(this.change){this.change(d)}return}if(this.view=="month"){if(this.selectionMode=="range"&&g=="key"){var f=this.getVisibleDate();var b=this.getFirstDayOfWeek(f);this.refreshCalendarCells(this.month,b,"View"+this.element.id)}}var h=false;a.each(this.renderedCells,function(r){var w=this;var o=w.getDate();var v=a(w.element);var l=v;if(v.length==0){return false}if(d==null){w.isSelected=false;w.isDisabled=false;if(r==0){k.selection={from:null,to:null};k._raiseEvent("2");k._raiseEvent("5",{selectionType:g})}}else{if(k.selectionMode!="range"||g=="key"){if(o.getDate()==d.getDate()&&o.getMonth()==d.getMonth()&&o.getFullYear()==d.getFullYear()&&w.isSelected){k._applyCellStyle(w,v,l);k._raiseEvent("5",{selectionType:g});return}if(w.isSelected){k._raiseEvent("6",{selectionType:g})}w.isSelected=false;if(o.getDate()==d.getDate()&&o.getMonth()==d.getMonth()&&o.getFullYear()==d.getFullYear()){w.isSelected=true;if(r==0){k.selection={date:d}}try{if(g!="none"){w.element.focus();k.host.focus()}}catch(s){}if(!w.isOtherMonth){k.value._setMonth(d.getMonth()+1);k.value._setDay(d.getDate());k.value._setYear(d.getFullYear());k._raiseEvent("2");k._raiseEvent("5",{selectionType:g})}}if(k.selectionMode=="range"){k._clicks=0;k.selection={from:d,to:d}}}else{if(k.selectionMode=="range"){if(g=="view"){w.isSelected=false;w.isDisabled=false;if(k.getMaxDate()<o){w.isDisabled=true}if(k.getMinDate()>o){w.isDisabled=true}if(k._isRestrictedDate(o)){w.isDisabled=true;w.isRestricted=true}if(!w.isDisabled&&k._isDisabled(o)){w.isDisabled=true}k._applyCellStyle(w,v,l);return true}if(r==0){if(g!="none"){if(k._clicks==undefined){k._clicks=0}k._clicks++;if(c){k._clicks++}if(k._clicks==1){k.selection={from:d,to:d}}else{var u=k.selection.from;var q=u<=d?u:d;var t=u<=d?d:u;if(q){var m=new Date(q.getFullYear(),q.getMonth(),q.getDate())}if(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59)}k.selection={from:m,to:n};k._clicks=0}}else{if(k.selection==null||k.selection.from==null){k.selection={from:d,to:d};if(k._clicks==undefined){k._clicks=0}k._clicks++;if(k._clicks==2){k._clicks=0}}}}var p=function(y){if(y==null){return new Date()}var x=new Date();x.setHours(0,0,0,0);x.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());return x};if(!w.isOtherMonth&&p(o).toString()==p(d).toString()){k.value._setMonth(d.getMonth()+1);k.value._setDay(d.getDate());k.value._setYear(d.getFullYear());k._raiseEvent("2");k._raiseEvent("5",{selectionType:g})}w.isSelected=false;w.isDisabled=h;if(p(o)<p(k.selection.from)&&k._clicks==1){w.isDisabled=true}if(k.getMaxDate()<o){w.isDisabled=true}if(k.getMinDate()>o){w.isDisabled=true}if(k._isRestrictedDate(o)){w.isRestricted=true;w.isDisabled=true}if(!w.isDisabled&&k._isDisabled(o)){w.isDisabled=true}if(!w.isDisabled){if(p(o)>=p(k.selection.from)&&p(o)<=p(k.selection.to)){w.isSelected=true}}else{if(!k.allowRestrictedDaysInRange&&p(o)>=p(k.selection.from)&&k.selection.to==k.selection.from){h=true}}}}}k._applyCellStyle(w,v,l)});if(k.selectionMode=="range"&&k._clicks==0){k._raiseEvent(7,{selectionType:g});return}else{if(k.selectionMode=="range"){return}}if(e!=d){k._raiseEvent(7,{selectionType:g});if(this.change){this.change(d)}}},_getSelectedDate:function(){var d=a.data(this.element,"View"+this.element.id);if(d==undefined||d==null){return}if(this.view!="month"){return this.selectedDate}for(var c=0;c<d.cells.length;c++){var b=d.cells[c];var e=b.getDate();if(b.isSelected){return e}}if(this.selectedDate){return this.selectedDate}},_getSelectedCell:function(){var d=a.data(this.element,"View"+this.element.id);if(d==undefined||d==null){return}for(var c=0;c<d.cells.length;c++){var b=d.cells[c];var e=b.getDate();if(b.isSelected){return b}}},_applyCellStyle:function(c,d,g){var e=this;if(g==null||(g!=null&&g.length==0)){g=d}var b="";b=this.toThemeProperty("jqx-rc-all");b+=" "+this.toThemeProperty("jqx-item");if(this.disabled||(c.isDisabled&&!c.isRestricted)){b+=" "+this.toThemeProperty("jqx-calendar-cell-disabled");b+=" "+this.toThemeProperty("jqx-fill-state-disabled")}if(!this.disabled&&c.isRestricted){b+=" "+this.toThemeProperty("jqx-calendar-cell-restrictedDate")}if(c.isOtherMonth&&this.enableOtherMonthDays&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-othermonth")}if(c.isWeekend&&this.enableWeekend&&c.isVisible&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-weekend")}if(this.isMaterialized()){b+=" ripple"}if(!c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-hidden")}else{b+=" "+this.toThemeProperty("jqx-calendar-cell");if(this.view!="month"){if(g.length>0&&g.html().toLowerCase().indexOf("span")!=-1){g.css("cursor","default")}}}g.removeAttr("aria-selected");if(c.isSelected&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-selected");b+=" "+this.toThemeProperty("jqx-fill-state-pressed");g.attr("aria-selected",true);var f=c.getDate();if(this._isDisabled(f)){b+=" "+this.toThemeProperty("jqx-calendar-cell-selected-invalid")}}if(c.isHighlighted&&c.isVisible&&this.enableHover){if(!c.isDisabled){b+=" "+this.toThemeProperty("jqx-calendar-cell-hover");b+=" "+this.toThemeProperty("jqx-fill-state-hover")}}b+=" "+this.toThemeProperty("jqx-calendar-cell-"+this.view);if(c.isToday&&c.isVisible){b+=" "+this.toThemeProperty("jqx-calendar-cell-today")}g[0].className=b;if(this.specialDates.length>0){var h=this;a.each(this.specialDates,function(){if(this.Class!=undefined&&this.Class!=null&&this.Class!=""){g.removeClass(this.Class)}else{g.removeClass(e.toThemeProperty("jqx-calendar-cell-specialDate"))}var i=c.getDate();if(i.getFullYear()==this.Date.getFullYear()&&i.getMonth()==this.Date.getMonth()&&i.getDate()==this.Date.getDate()){if(c.tooltip==null&&this.Tooltip!=null){c.tooltip=this.Tooltip;if(a(g).jqxTooltip){var j=this.Class;a(g).jqxTooltip({value:{cell:c,specialDate:this.Date},name:h.element.id,content:this.Tooltip,position:"mouse",theme:h.theme,opening:function(k){if(g.hasClass(e.toThemeProperty("jqx-calendar-cell-specialDate"))){return true}if(g.hasClass(j)){return true}return false}})}}g.removeClass(e.toThemeProperty("jqx-calendar-cell-othermonth"));g.removeClass(e.toThemeProperty("jqx-calendar-cell-weekend"));if(this.Class==undefined||this.Class==""){g.addClass(e.toThemeProperty("jqx-calendar-cell-specialDate"));return false}else{g.addClass(this.Class);return false}}})}},_applyCellStyles:function(){var f=a.data(this.element,"View"+this.element.id);if(f==undefined||f==null){return}for(var e=0;e<f.cells.length;e++){var b=f.cells[e];var c=a(b.element);var d=c.find("#cellContent"+c[0].id);if(d.length==0){d=c}this._applyCellStyle(b,c,d)}},getWeekOfYear:function(d){var j=new Date(d.dateTime);var h=this.firstDayOfWeek;var e=new Date(j.getFullYear(),0,1);var i=e.getDay()-h;i=(i>=0?i:i+7);var c=Math.floor((j.getTime()-e.getTime()-(j.getTimezoneOffset()-e.getTimezoneOffset())*60000)/86400000)+1;var f;if(i<4){f=Math.floor((c+i-1)/7)+1;if(f>52){var g=new Date(j.getFullYear()+1,0,1);var b=g.getDay()-h;b=b>=0?b:b+7;f=b<4?1:53}}else{f=Math.floor((c+i-1)/7)}return f},renderColumnHeader:function(y){if(!this.showDayNames){return}var u=a("<table role='grid'></table>").attr({cellspacing:0,cellpadding:1}).css({borderSpacing:0,borderCollapse:"collapse",width:"100%",height:"100%"});var v=a("<tr role='row'></tr>");for(var p=0;p<7;p++){v.append(a("<td role='gridcell'></td>").css({background:"transparent",padding:1,margin:0,border:"none"}))}u.append(v);u.addClass(this.toThemeProperty("jqx-reset jqx-widget-content jqx-calendar-column-header"));this.columnHeader.append(u);var d=this.getVisibleDate();var h=this.getFirstDayOfWeek(d);var n=h.dayOfWeek;var z=this.getWeekOfYear(h);var s=this.firstDayOfWeek;var x=this.localization.calendar.days.names;var o=[];var g=h;var q=(y.width()-this.rowHeaderWidth-2)/7;if(!this.showWeekNumbers){q=(y.width()-2)/7}for(var t=0;t<7;t++){var f=x[s];if(this.rtl){f=x[6-s]}switch(this.dayNameFormat){case"default":f=this.localization.calendar.days.namesAbbr[s];if(this.rtl){f=this.localization.calendar.days.namesAbbr[6-s]}break;case"shortest":f=this.localization.calendar.days.namesShort[s];if(this.rtl){f=this.localization.calendar.days.namesShort[6-s]}break;case"firstTwoLetters":f=f.substring(0,2);break;case"firstLetter":f=f.substring(0,1);break}var b=new a.jqx._jqxCalendar.cell(g.dateTime);var l=t+1;var m=l+this.element.id;var k=a(u[0].rows[0].cells[t]);if(this.enableTooltips&&a(k).jqxTooltip){a(k).jqxTooltip({name:this.element.id,content:x[s],theme:this.theme,position:"mouse"})}s=(s>=6)?0:s+1;b.element=k;b.row=0;b.column=t+1;var e=this._textwidth(f);var c=a("<div></div>").attr("id","columnCell"+m).text(f).css({padding:0,margin:0,border:"none",background:"transparent"}).addClass(this.toThemeProperty("jqx-calendar-column-cell"));k.append(c);k.width(q);if(this.disabled){c.addClass(this.toThemeProperty("jqx-calendar-column-cell-disabled"))}if(e>0&&q>0){while(e>k.width()){if(f.length===0){break}f=f.substring(0,f.length-1);a.jqx.utilities.html(c,f);e=this._textwidth(f)}}o[t]=b;g=new a.jqx._jqxDateTimeInput.getDateTime(new Date(g._addDays(1)))}if(parseInt(this.columnHeader.width())>parseInt(y.width())){this.columnHeader.width(y.width())}var w=a.data(this.element,y[0].id);w.columnCells=o},_format:function(d,e,b){var f=false;try{if(window.Globalize!=undefined){f=true}else{if(document.Globalize){window.Globalize=document.Globalize;f=true}}}catch(c){if(document.Globalize){window.Globalize=document.Globalize;f=true}}if(document.Globalize){window.Globalize=document.Globalize;f=true}if(a.global){a.global.culture.calendar=this.localization.calendar;return a.global.format(d,e,this.culture)}else{if(f){try{if(window.Globalize.cultures[this.culture]){window.Globalize.cultures[this.culture].calendar=this.localization.calendar;return window.Globalize.format(d,e,this.culture)}else{return window.Globalize.format(d,e,this.culture)}}catch(c){return window.Globalize.format(d,e)}}else{if(a.jqx.dataFormat){return a.jqx.dataFormat.formatdate(d,e,this.localization.calendar)}}}},_textwidth:function(d){var c=a("<span>"+d+"</span>");c.addClass(this.toThemeProperty("jqx-calendar-column-cell"));a(this.host).append(c);var b=c.width();c.remove();return b},_textheight:function(d){var c=a("<span>"+d+"</span>");a(this.host).append(c);var b=c.height();c.remove();return b},_renderRowHeader:function(t){var d=this.getVisibleDate();var k=this.getFirstDayOfWeek(d);var o=k.dayOfWeek;var u=this.getWeekOfYear(k);var h=new a.jqx._jqxDateTimeInput.getDateTime(new Date(k.dateTime));h._addDays(5);h.dayOfWeek=h.dateTime.getDay();var m=this.getWeekOfYear(h);if(53==u&&h.dateTime.getMonth()==0){u=1}var f=a("<table></table>").attr({cellspacing:0,cellpadding:1}).css({overflow:"hidden",width:"100%",height:"100%"});var e=6;for(var q=0;q<e;q++){var g=a("<tr></tr>");var b=a("<td></td>");g.append(b);f.append(g)}f.find("table").addClass(this.toThemeProperty("jqx-reset"));f.find("td").addClass(this.toThemeProperty("jqx-reset"));f.find("tr").addClass(this.toThemeProperty("jqx-reset"));f.addClass(this.toThemeProperty("jqx-calendar-row-header"));f.width(this.rowHeaderWidth);this.rowHeader.append(f);var j=k;var r=new Array();for(var q=0;q<6;q++){var p=u.toString();var b=new a.jqx._jqxCalendar.cell(j.dateTime);var n=q+1+this.element.id;var l=a(f[0].rows[q].cells[0]);b.element=l;b.row=q;b.column=0;var c=a("<div></div>").attr("id","headerCellContent"+n).text(p).css({background:"transparent",border:"none",padding:0,margin:0});l.append(c);l.find("#headerCellContent"+n).addClass(this.toThemeProperty("jqx-calendar-row-cell"));r[q]=b;j=new a.jqx._jqxDateTimeInput.getDateTime(new Date(j._addWeeks(1)));u=this.getWeekOfYear(j)}var s=a.data(this.element,t[0].id);s.rowCells=r},getFirstDayOfWeek:function(e){var d=e;if(this.firstDayOfWeek<0||this.firstDayOfWeek>6){this.firstDayOfWeek=6}var c=d.dayOfWeek-this.firstDayOfWeek;if(c<=0){c+=7}var b=a.jqx._jqxDateTimeInput.getDateTime(d._addDays(-c));return b},getVisibleDate:function(){var c=new a.jqx._jqxDateTimeInput.getDateTime(new Date(this.value.dateTime));if(c<this.minDate){c=this.minDate}if(c>this.maxDate){this.visibleDate=this.maxDate}c.dateTime.setHours(0);var d=c.day;var b=a.jqx._jqxDateTimeInput.getDateTime(c._addDays(-d+1));c=b;return c},destroy:function(b){a.jqx.utilities.resize(this.host,null,true);this.host.removeClass();if(b!=false){this.host.remove()}},_raiseEvent:function(d,i){if(i==undefined){i={owner:null}}var h=this.events[d];var g=i?i:{};g.owner=this;var c=new a.Event(h);c.owner=this;c.args=g;if(d==0||d==1||d==2||d==3||d==4||d==5||d==6||d==7||d==8){c.args.date=c.args.selectedDate=this.getDate();c.args.range=this.getRange();var e=this.getViewStart();var f=this.getViewEnd();c.args.view={from:e,to:f}}if(d==7){var b=g.selectionType;if(!b){b=null}if(b=="key"){b="keyboard"}if(b=="none"){b=null}g.type=b}var j=this.host.trigger(c);if(d==0||d==1){j=false}return j},propertyMap:function(b){if(b=="value"){if(this.selectionMode!="range"){return this.getDate()}else{return this.getRange()}}return null},_setSize:function(){var d=this.host.find("#View"+this.element.id);if(d.length>0){this.setCalendarSize();d[0].style.height="100%";d[0].style.width="100%";var c=this.month.height()-this.titleHeight-this.columnHeaderHeight;var b="View"+this.element.id;d.find("#cellsTable"+b).height(c);d.find("#calendarRowHeader"+b).height(c);this.refreshControl()}},resize:function(){this._setSize()},clear:function(){if(this.selectionMode=="range"){this._clicks=1;this.setRange(null,null);this._raiseEvent(7)}else{this.setDate(null,"mouse")}this._clicks=0;this.selection={from:null,to:null}},today:function(){if(this.selectionMode=="range"){this.setRange(new Date(),new Date())}else{this.setDate(new Date(),"mouse")}},propertiesChangedHandler:function(b,c,d){if(d.width&&d.height&&Object.keys(d).length==2){b._setSize()}},propertyChangedHandler:function(d,e,g,f){if(this.isInitialized==undefined||this.isInitialized==false){return}if(d.batchUpdate&&d.batchUpdate.width&&d.batchUpdate.height&&Object.keys(d.batchUpdate).length==2){return}if(e=="enableHover"){return}if(e=="keyboardNavigation"){return}if(e=="localization"){if(this.localization){if(this.localization.backString){this.backText=this.localization.backString}if(this.localization.forwardString){this.forwardText=this.localization.forwardString}if(this.localization.todayString){this.todayString=this.localization.todayString}if(this.localization.clearString){this.clearString=this.localization.clearString}this.firstDayOfWeek=this.localization.calendar.firstDay}}if(e=="culture"){try{if(a.global){a.global.preferCulture(d.culture);d.localization.calendar=a.global.culture.calendar}else{if(window.Globalize){var b=window.Globalize.culture(d.culture);d.localization.calendar=b.calendar}}if(d.localization.calendar&&d.localization.calendar.firstDay!=undefined&&d.culture!="default"){d.firstDayOfWeek=d.localization.calendar.firstDay}}catch(c){}}if(e=="views"){if(d.views.indexOf("month")==-1){d.view="year"}if(d.views.indexOf("year")==-1&&d.views.indexOf("month")==-1){d.view="decade"}d.render();return}if(e=="showFooter"){d.render()}if(e=="width"||e=="height"){d._setSize();return}else{if(e=="theme"){a.jqx.utilities.setTheme(g,f,d.host)}else{if(e=="rowHeaderWidth"||e=="showWeekNumbers"){d.render()}else{d.view="month";d.render();d.refreshControl()}}}if(e==="firstDayOfWeek"){d.refreshControl()}}})})(jqxBaseFramework);(function(a){a.jqx._jqxCalendar.cell=function(c){var b={dateTime:new a.jqx._jqxDateTimeInput.getDateTime(c),_date:c,getDate:function(){return this._date},setDate:function(d){this.dateTime=new a.jqx._jqxDateTimeInput.getDateTime(d);this._date=d},isToday:false,isWeekend:false,isOtherMonth:false,isVisible:true,isSelected:false,isHighlighted:false,element:null,row:-1,column:-1,tooltip:null};return b};a.jqx._jqxCalendar.monthView=function(c,h,d,b,f,e){var g={start:c,end:h,cells:d,rowCells:b,columnCells:f,element:e};return g}})(jqxBaseFramework)})();
/***/ }),
/***/ 5281:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxCheckBox","",{});a.extend(a.jqx._jqxCheckBox.prototype,{defineInstance:function(){var b={animationShowDelay:300,animationHideDelay:300,width:null,height:null,boxSize:"16px",checked:false,hasThreeStates:false,disabled:false,enableContainerClick:true,locked:false,groupName:"",keyboardCheck:true,enableHover:true,hasInput:true,rtl:false,updated:null,disabledContainer:false,changeType:null,_canFocus:true,rippleEffect:true,aria:{"aria-checked":{name:"checked",type:"boolean"},"aria-disabled":{name:"disabled",type:"boolean"}},events:["checked","unchecked","indeterminate","change"]};if(this===a.jqx._jqxCheckBox.prototype){return b}a.extend(true,this,b);return b},createInstance:function(b){var c=this;c._createFromInput("CheckBox");c.render()},_createFromInput:function(c){var j=this;if(j.element.nodeName.toLowerCase()=="input"){j.field=j.element;if(j.field.className){j._className=j.field.className}var l={title:j.field.title};if(j.field.value){l.value=j.field.value}if(j.field.checked){l.checked=true}if(j.field.id.length){l.id=j.field.id.replace(/[^\w]/g,"_")+"_"+c}else{l.id=a.jqx.utilities.createId()+"_"+c}var e=j.element.nextSibling;var h=false;if(e&&(e.nodeName=="#text"||e.nodeName=="span")){h=true}var k=0;var b=a("<div></div>",l);if(h){b.append(e);var i=a("<span>"+a(e).text()+"</span>");i.appendTo(a(document.body));k+=i.width();i.remove()}b[0].style.cssText=j.field.style.cssText;if(!j.width){j.width=a(j.field).width()+k+10}if(!j.height){j.height=a(j.field).outerHeight()+10}a(j.field).hide().after(b);var g=j.host.data();j.host=b;j.host.data(g);j.element=b[0];j.element.id=j.field.id;j.field.id=l.id;if(j._className){j.host.addClass(j._className);a(j.field).removeClass(j._className)}if(j.field.tabIndex){var d=j.field.tabIndex;j.field.tabIndex=-1;j.element.tabIndex=d}}},_addInput:function(){if(this.hasInput){if(this.input){this.input.remove()}var b=this.host.attr("name");this.input=a("<input type='hidden'/>");this.host.append(this.input);if(b){this.input.attr("name",b)}this.input.val(this.checked);this.host.attr("role","checkbox");a.jqx.aria(this)}},render:function(){this.init=true;var g=this;this.setSize();this.propertyChangeMap.width=function(){g.setSize()};this.propertyChangeMap.height=function(){g.setSize()};this._removeHandlers();if(!this.width){this.host.css("overflow-x","visible")}if(!this.height){this.host.css("overflow-y","visible")}if(this.checkbox){this.checkbox.remove();this.checkbox=null}if(this.checkMark){this.checkMark.remove();this.checkMark=null}if(this.box){this.box.remove();this.box=null}if(this.clear){this.clear.remove();this.clear=null}if(this.boxSize==null){this.boxSize=16}var c=parseInt(this.boxSize)+"px";var e="16px";var d=Math.floor((parseInt(this.boxSize)-16)/2);var b=d;var k=d+"px";var h=b+"px";this.checkbox=a("<div><div><span></span></div></div>");var f=a(this.checkbox[0].firstChild);var j=a(this.checkbox[0].firstChild.firstChild);f.css({width:c,height:c});j.css({width:e,height:e});if(parseInt(this.boxSize)!==16){j.css({position:"relative",left:k,top:h})}this.host.prepend(this.checkbox);if(!this.disabledContainer){if(!this.host.attr("tabIndex")){this.host.attr("tabIndex",0)}this.clear=a("<div></div>");this.clear.css({clear:"both"});this.host.append(this.clear)}this.host.attr("aria-label",this.host.text().trim()||"checkbox");this.checkMark=a(this.checkbox[0].firstChild.firstChild);this.box=this.checkbox;this.box.addClass(this.toThemeProperty("jqx-checkbox-default")+" "+this.toThemeProperty("jqx-fill-state-normal")+" "+this.toThemeProperty("jqx-rc-all"));if(this.disabled){this.disable()}if(!this.disabledContainer){this.host.addClass(this.toThemeProperty("jqx-widget"));this.host.addClass(this.toThemeProperty("jqx-checkbox"))}if(this.locked&&!this.disabledContainer){this.host.css("cursor","auto")}var i=this.element.getAttribute("checked");if(i=="checked"||i=="true"||i===true){this.checked=true}this._addInput();this._render();this._addHandlers();this.init=false;this._centerBox();if(this.isMaterialized()){if(this.rippleEffect){a(this.checkbox).addClass("ripple");a.jqx.ripple(a(this.checkbox),this.host,"checkbox")}}},_centerBox:function(){if(this.height&&this.height.toString().indexOf("%")==-1&&this.box){var b=parseInt(this.height);this.host.css("line-height",b+"px");var c=b-parseInt(this.boxSize)-1;c/=2;this.box.css("margin-top",parseInt(c))}},refresh:function(b){if(!b){this.setSize();this._render()}},resize:function(c,b){this.width=c;this.height=b;this.refresh()},setSize:function(){if(this.width!=null&&this.width.toString().indexOf("px")!=-1){this.host.width(this.width)}else{if(this.width!=undefined&&!isNaN(this.width)){this.host.width(this.width)}else{if(this.width!=null&&this.width.toString().indexOf("%")!=-1){this.element.style.width=this.width}}}if(this.height!=null&&this.height.toString().indexOf("px")!=-1){this.host.height(this.height)}else{if(this.height!=undefined&&!isNaN(this.height)){this.host.height(this.height)}else{if(this.height!=null&&this.height.toString().indexOf("%")!=-1){this.element.style.height=this.height}}}this._centerBox()},_addHandlers:function(){var d=this;var c=a.jqx.mobile.isTouchDevice();var b="mousedown";if(c){b=a.jqx.mobile.getTouchEventName("touchend")}this.addHandler(this.box,b,function(e){if(!d.disabled&&!d.enableContainerClick&&!d.locked){d.changeType="mouse";d.toggle();if(d.updated){e.owner=d;d.updated(e,d.checked,d.oldChecked)}if(e.preventDefault){e.preventDefault()}return false}});if(!this.disabledContainer){this.addHandler(this.host,"keydown",function(e){if(!d.disabled&&!d.locked&&d.keyboardCheck){if(e.keyCode==32){if(!d._canFocus){return true}d.changeType="keyboard";d.toggle();if(d.updated){e.owner=d;d.updated(e,d.checked,d.oldChecked)}if(e.preventDefault){e.preventDefault()}return false}}});this.addHandler(this.host,b,function(e){if(!d.disabled&&d.enableContainerClick&&!d.locked){d.clickTime=new Date();d.changeType="mouse";d.toggle();if(e.preventDefault){e.preventDefault()}if(d._canFocus){d.focus()}return false}});this.addHandler(this.host,"selectstart",function(e){if(!d.disabled&&d.enableContainerClick){if(e.preventDefault){e.preventDefault()}return false}});this.addHandler(this.host,"mouseup",function(e){if(!d.disabled&&d.enableContainerClick){if(e.preventDefault){e.preventDefault()}}});this.addHandler(this.host,"focus",function(e){if(!d.disabled&&!d.locked){if(!d._canFocus){return true}if(d.enableHover){d.box.addClass(d.toThemeProperty("jqx-checkbox-hover"))}d.box.addClass(d.toThemeProperty("jqx-fill-state-focus"));if(e.preventDefault){e.preventDefault()}a(d.checkbox).removeClass("active");if(!d.clickTime||(d.clickTime&&(new Date()-d.clickTime>300))){a(d.checkbox).addClass("active")}d.hovered=true;return false}});this.addHandler(this.host,"blur",function(e){a(d.checkbox).removeClass("active");if(!d.disabled&&!d.locked){if(!d._canFocus){return true}if(d.enableHover){d.box.removeClass(d.toThemeProperty("jqx-checkbox-hover"))}d.box.removeClass(d.toThemeProperty("jqx-fill-state-focus"));if(e.preventDefault){e.preventDefault()}d.hovered=false;return false}});this.addHandler(this.host,"mouseenter",function(e){if(d.locked){d.host.css("cursor","arrow")}if(d.enableHover){if(!d.disabled&&d.enableContainerClick&&!d.locked){d.box.addClass(d.toThemeProperty("jqx-checkbox-hover"));d.box.addClass(d.toThemeProperty("jqx-fill-state-hover"));if(e.preventDefault){e.preventDefault()}d.hovered=true;return false}}});this.addHandler(this.host,"mouseleave",function(e){if(d.enableHover){if(!d.disabled&&d.enableContainerClick&&!d.locked){d.box.removeClass(d.toThemeProperty("jqx-checkbox-hover"));d.box.removeClass(d.toThemeProperty("jqx-fill-state-hover"));if(e.preventDefault){e.preventDefault()}d.hovered=false;return false}}});this.addHandler(this.box,"mouseenter",function(){if(d.locked){return}if(!d.disabled&&!d.enableContainerClick){d.box.addClass(d.toThemeProperty("jqx-checkbox-hover"));d.box.addClass(d.toThemeProperty("jqx-fill-state-hover"))}});this.addHandler(this.box,"mouseleave",function(){if(!d.disabled&&!d.enableContainerClick){d.box.removeClass(d.toThemeProperty("jqx-checkbox-hover"));d.box.removeClass(d.toThemeProperty("jqx-fill-state-hover"))}})}},focus:function(){try{this.host.focus()}catch(b){}},_removeHandlers:function(){var c=a.jqx.mobile.isTouchDevice();var b="mousedown";if(c){b="touchend"}if(this.box){this.removeHandler(this.box,b);this.removeHandler(this.box,"mouseenter");this.removeHandler(this.box,"mouseleave")}this.removeHandler(this.host,b);this.removeHandler(this.host,"mouseup");this.removeHandler(this.host,"selectstart");this.removeHandler(this.host,"mouseenter");this.removeHandler(this.host,"mouseleave");this.removeHandler(this.host,"keydown");this.removeHandler(this.host,"blur");this.removeHandler(this.host,"focus")},_render:function(){if(!this.disabled){if(this.enableContainerClick){this.host.css("cursor","pointer")}else{if(!this.init){this.host.css("cursor","auto")}}}else{this.disable()}if(this.rtl){this.box.addClass(this.toThemeProperty("jqx-checkbox-rtl"));this.host.addClass(this.toThemeProperty("jqx-rtl"))}this.updateStates();this.host.attr("checked",this.checked)},_setState:function(c,b){if(this.checked!=c){this.checked=c;if(this.checked){this.checkMark[0].className=this.toThemeProperty("jqx-checkbox-check-checked")}else{if(this.checked==null){this.checkMark[0].className=this.toThemeProperty("jqx-checkbox-check-indeterminate")}else{this.checkMark[0].className=""}}}if(b===false||b===true){this.locked=b}if(c){this.element.setAttribute("checked",true)}else{this.element.removeAttribute("checked")}},val:function(b){if(arguments.length==0||(b!=null&&typeof(b)=="object")){return this.checked}if(typeof b=="string"){if(b=="true"){this.check()}if(b=="false"){this.uncheck()}if(b==""){this.indeterminate()}}else{if(b==true){this.check()}if(b==false){this.uncheck()}if(b==null){this.indeterminate()}}return this.checked},check:function(){this.checked=true;var c=this;this.checkMark.removeClass();this.element.setAttribute("checked",true);if(a.jqx.browser.msie||this.animationShowDelay==0){this.checkMark.addClass(this.toThemeProperty("jqx-checkbox-check-checked"))}else{this.checkMark.addClass(this.toThemeProperty("jqx-checkbox-check-checked"));this.checkMark.css("opacity",0);this.checkMark.stop().animate({opacity:1},this.animationShowDelay,function(){})}if(this.groupName!=null&&this.groupName.length>0){var d=a.find(this.toThemeProperty(".jqx-checkbox",true));a.each(d,function(){var e=a(this).jqxCheckBox("groupName");if(e==c.groupName&&this!=c.element){a(this).jqxCheckBox("uncheck")}})}var b=this.changeType;this._raiseEvent("0",{checked:true});this.changeType=b;this._raiseEvent("3",{checked:true});if(this.input!=undefined){this.input.val(this.checked);a.jqx.aria(this,"aria-checked",this.checked);this.host.attr("checked",this.checked)}},uncheck:function(){this.checked=false;var c=this;this.element.removeAttribute("checked");if(a.jqx.browser.msie||this.animationHideDelay==0){if(c.checkMark[0].className!=""){c.checkMark[0].className=""}}else{this.checkMark.css("opacity",1);this.checkMark.stop().animate({opacity:0},this.animationHideDelay,function(){if(c.checkMark[0].className!=""){c.checkMark[0].className=""}})}var b=this.changeType;this._raiseEvent("1");this.changeType=b;this._raiseEvent("3",{checked:false});if(this.input!=undefined){this.input.val(this.checked);a.jqx.aria(this,"aria-checked",this.checked);this.host.attr("checked",this.checked)}},indeterminate:function(){this.checked=null;this.checkMark.removeClass();if(a.jqx.browser.msie||this.animationShowDelay==0){this.checkMark.addClass(this.toThemeProperty("jqx-checkbox-check-indeterminate"))}else{this.checkMark.addClass(this.toThemeProperty("jqx-checkbox-check-indeterminate"));this.checkMark.css("opacity",0);this.checkMark.stop().animate({opacity:1},this.animationShowDelay,function(){})}var b=this.changeType;this._raiseEvent("2");this._raiseEvent("3",{checked:null});if(this.input!=undefined){this.input.val(this.checked);a.jqx.aria(this,"aria-checked","undefined");this.host.attr("checked","undefined")}},toggle:function(){if(this.disabled){return}if(this.locked){return}if(this.groupName!=null&&this.groupName.length>0){if(this.checked!=true){this.checked=true;this.updateStates()}return}this.oldChecked=this.checked;if(this.checked==true){this.checked=this.hasThreeStates?null:false}else{this.checked=this.checked!=null}this.updateStates();if(this.input!=undefined){this.input.val(this.checked)}},updateStates:function(){if(this.checked){this.check()}else{if(this.checked==false){this.uncheck()}else{if(this.checked==null){this.indeterminate()}}}},disable:function(){this.disabled=true;if(this.checked==true){this.checkMark.addClass(this.toThemeProperty("jqx-checkbox-check-disabled"))}else{if(this.checked==null){this.checkMark.addClass(this.toThemeProperty("jqx-checkbox-check-indeterminate-disabled"))}}this.box.addClass(this.toThemeProperty("jqx-checkbox-disabled-box"));this.host.addClass(this.toThemeProperty("jqx-checkbox-disabled"));this.host.addClass(this.toThemeProperty("jqx-fill-state-disabled"));this.box.addClass(this.toThemeProperty("jqx-checkbox-disabled"));a.jqx.aria(this,"aria-disabled",this.disabled)},enable:function(){if(this.checked==true){this.checkMark.removeClass(this.toThemeProperty("jqx-checkbox-check-disabled"))}else{if(this.checked==null){this.checkMark.removeClass(this.toThemeProperty("jqx-checkbox-check-indeterminate-disabled"))}}this.box.removeClass(this.toThemeProperty("jqx-checkbox-disabled-box"));this.host.removeClass(this.toThemeProperty("jqx-checkbox-disabled"));this.host.removeClass(this.toThemeProperty("jqx-fill-state-disabled"));this.box.removeClass(this.toThemeProperty("jqx-checkbox-disabled"));this.disabled=false;a.jqx.aria(this,"aria-disabled",this.disabled)},destroy:function(){this.host.remove()},_raiseEvent:function(g,e){if(this.init){return}var c=this.events[g];var f=new a.Event(c);f.owner=this;if(!e){e={}}e.type=this.changeType;this.changeType=null;f.args=e;try{var b=this.host.trigger(f)}catch(d){}return b},propertiesChangedHandler:function(b,c,d){if(d.width&&d.height&&Object.keys(d).length==2){b.setSize()}},propertyChangedHandler:function(b,c,e,d){if(this.isInitialized==undefined||this.isInitialized==false){return}if(b.batchUpdate&&b.batchUpdate.width&&b.batchUpdate.height&&Object.keys(b.batchUpdate).length==2){return}if(c=="enableContainerClick"&&!b.disabled&&!b.locked){if(d){b.host.css("cursor","pointer")}else{b.host.css("cursor","auto")}}if(c=="rtl"){if(d){b.box.addClass(b.toThemeProperty("jqx-checkbox-rtl"));b.host.addClass(b.toThemeProperty("jqx-rtl"))}else{b.box.removeClass(b.toThemeProperty("jqx-checkbox-rtl"));b.host.removeClass(b.toThemeProperty("jqx-rtl"))}}if(c=="boxSize"){b.render()}if(c=="theme"){a.jqx.utilities.setTheme(e,d,b.host)}if(c=="checked"){if(d!=e){switch(d){case true:b.check();break;case false:b.uncheck();break;case null:b.indeterminate();break}}}if(c=="disabled"){if(d!=e){if(d){b.disable()}else{b.enable()}}}}})})(jqxBaseFramework)})();
/***/ }),
/***/ 6294:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxComboBox","",{});a.extend(a.jqx._jqxComboBox.prototype,{defineInstance:function(){var b={disabled:false,width:200,height:25,items:new Array(),selectedIndex:-1,selectedItems:new Array(),_selectedItems:new Array(),source:null,autoItemsHeight:false,scrollBarSize:a.jqx.utilities.scrollBarSize,arrowSize:17,enableHover:true,enableSelection:true,visualItems:new Array(),groups:new Array(),equalItemsWidth:true,itemHeight:-1,visibleItems:new Array(),hint:true,emptyGroupText:"Group",emptyString:"",ready:null,openDelay:250,closeDelay:300,animationType:"default",dropDownWidth:"auto",dropDownHeight:"200px",autoDropDownHeight:false,enableBrowserBoundsDetection:false,dropDownHorizontalAlignment:"left",dropDownVerticalAlignment:"bottom",dropDownContainer:"default",searchMode:"startswithignorecase",autoComplete:false,remoteAutoComplete:false,remoteAutoCompleteDelay:500,selectionMode:"default",minLength:2,displayMember:"",valueMember:"",groupMember:"",searchMember:"",keyboardSelection:true,renderer:null,autoOpen:false,template:"",checkboxes:false,promptText:"",placeHolder:"",rtl:false,listBox:null,validateSelection:null,showCloseButtons:true,renderSelectedItem:null,search:null,popupZIndex:2000,searchString:null,multiSelect:false,showArrow:true,_disabledItems:new Array(),touchMode:"auto",autoBind:true,aria:{"aria-disabled":{name:"disabled",type:"boolean"}},events:["open","close","select","unselect","change","checkChange","bindingComplete","itemAdd","itemRemove","itemUpdate"]};if(this===a.jqx._jqxComboBox.prototype){return b}a.extend(true,this,b);return b},createInstance:function(b){var e=this;this.host.attr("role","combobox");this.host.attr("aria-expanded","false");a.jqx.aria(this,"aria-autocomplete","both");if(a.jqx._jqxListBox==null||a.jqx._jqxListBox==undefined){throw new Error("jqxComboBox: Missing reference to jqxlistbox.js.")}a.jqx.aria(this);if(e.isMaterialized()){var g=window.getComputedStyle(this.element);var f=g.getPropertyValue("--jqx-dropdown-animation");var d=g.getPropertyValue("--jqx-list-item-height");var c=g.getPropertyValue("--jqx-action-button-size");if(c){this.arrowSize=parseInt(c)}else{this.arrowSize=25}if(f&&this.animationType=="default"){this.animationType=f.trim()}if(d&&this.itemHeight===-1){this.itemHeight=parseInt(d)}}if(this.promptText!=""){this.placeHolder=this.promptText}this.render()},render:function(){var j=this;var b=j.element.nodeName.toLowerCase();if(b=="select"||b=="ul"||b=="ol"){j.field=j.element;if(j.field.className){j._className=j.field.className}var i={title:j.field.title};if(j.field.id.length){i.id=j.field.id.replace(/[^\w]/g,"_")+"_jqxComboBox"}else{i.id=a.jqx.utilities.createId()+"_jqxComboBox"}var f=a("<div></div>",i);if(!j.width){j.width=a(j.field).width()}if(!j.height){j.height=a(j.field).outerHeight()}j.element.style.cssText=j.field.style.cssText;a(j.field).hide().after(f);var v=j.host.data();j.host=f;j.host.data(v);j.element=f[0];j.element.id=j.field.id;j.field.id=i.id;if(j._className){j.host.addClass(j._className);a(j.field).removeClass(j._className)}if(j.field.tabIndex){var d=j.field.tabIndex;j.field.tabIndex=-1;j.element.tabIndex=d}if(j.field.innerHTML!=""){var l=a.jqx.parseSourceTag(j.field);j.source=l.items;if(j.selectedIndex==-1){j.selectedIndex=l.index}}}else{if(j.host.find("li").length>0||j.host.find("option").length>0){var l=a.jqx.parseSourceTag(j.element);j.source=l.items}}j.removeHandlers();j.isanimating=false;j.id=a.jqx.utilities.createId();j.element.innerHTML="";var n=(function(){var e=a("<div></div>").css({"background-color":"transparent","-webkit-appearance":"none",outline:"none",width:"100%",height:"100%",padding:"0px",margin:"0px",border:"0px",position:"relative"});var y=a("<div></div>").attr("id","dropdownlistWrapper").css({padding:"0",margin:"0",border:"none","background-color":"transparent","float":"left",width:"100%",height:"100%",position:"relative"});var w=a("<div></div>").attr("id","dropdownlistContent").css({padding:"0",margin:"0","border-top":"none","border-bottom":"none","float":"left",position:"absolute"});var x=a("<div></div>").attr({id:"dropdownlistArrow",role:"button"}).css({padding:"0",margin:"0","border-left-width":"1px","border-bottom-width":"0px","border-top-width":"0px","border-right-width":"0px","float":"right",position:"absolute"});y.append(w).append(x);e.append(y);return e})();j.comboStructure=n;if(a.jqx._jqxListBox==null||a.jqx._jqxListBox==undefined){throw"jqxComboBox: Missing reference to jqxlistbox.js."}j.touch=a.jqx.mobile.isTouchDevice();if(j.touchMode===true){j.touch=true}j.host.append(n);j.dropdownlistWrapper=j.host.find("#dropdownlistWrapper");j.dropdownlistArrow=j.host.find("#dropdownlistArrow");j.dropdownlistContent=j.host.find("#dropdownlistContent");j.dropdownlistContent.addClass(j.toThemeProperty("jqx-combobox-content"));j.dropdownlistContent.addClass(j.toThemeProperty("jqx-widget-content"));j.dropdownlistWrapper[0].id="dropdownlistWrapper"+j.element.id;j.dropdownlistArrow[0].id="dropdownlistArrow"+j.element.id;j.dropdownlistContent[0].id="dropdownlistContent"+j.element.id;if(j.template){j.dropdownlistArrow.addClass(j.toThemeProperty("jqx-"+j.template+""))}var c=a("<input/>",{autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"textarea"}).css({"box-sizing":"border-box",margin:0,padding:0,"padding-left":"3px","padding-right":"3px",border:0});j.dropdownlistContent.append(c);j.input=j.dropdownlistContent.find("input");j.input.addClass(j.toThemeProperty("jqx-combobox-input"));j.input.addClass(j.toThemeProperty("jqx-widget-content"));j.input[0].setAttribute("aria-label","input");if(j.host.attr("tabindex")){j.input.attr("tabindex",j.host.attr("tabindex"));j.host.removeAttr("tabindex")}var k=a("<label></label>");if(this.hint){k[0].innerHTML=this.placeHolder}k.addClass(j.toThemeProperty("jqx-input-label"));j.dropdownlistWrapper.append(k);j.label=k;var s=a("<span></span>");j.dropdownlistWrapper.append(s);s.addClass(j.toThemeProperty("jqx-input-bar"));j.bar=s;var j=this;if(j.template){j.bar.addClass(j.toThemeProperty("jqx-"+j.template));j.label.addClass(j.toThemeProperty("jqx-"+j.template))}j._addInput();if(j.rtl){j.input.css({direction:"rtl"});j.dropdownlistContent.addClass(j.toThemeProperty("jqx-combobox-content-rtl"))}try{var r="listBox"+j.id;var h=a(a.find("#"+r));if(h.length>0){h.remove()}a.jqx.aria(this,"aria-owns",r);a.jqx.aria(this,"aria-haspopup",true);if(j.listBoxContainer){j.listBoxContainer.jqxListBox("destroy")}if(j.container){j.container.remove()}var m=a("<div></div>").attr("id","listBox"+j.id).css({overflow:"hidden",border:"none",backgroundColor:"transparent",position:"absolute"});var u=a("<div></div>").attr("id","innerListBox"+j.id);m.append(u);m.hide();if(j.dropDownContainer=="element"){m.appendTo(j.host)}else{m.appendTo(document.body)}m.addClass(j.toThemeProperty("jqx-listbox-container"));j.container=m;j.listBoxContainer=a(a.find("#innerListBox"+j.id));var q=j.width;if(j.dropDownWidth!="auto"){q=j.dropDownWidth}if(j.dropDownHeight==null){j.dropDownHeight=200}j.container.width(parseInt(q)+25);j.container.height(parseInt(j.dropDownHeight)+25);j._ready=false;j.addHandler(j.listBoxContainer,"bindingComplete",function(e){if(!j.listBox){j.listBox=a.data(j.listBoxContainer[0],"jqxListBox").instance}if(!j._ready){if(j.ready){j.ready()}j._ready=true}j._raiseEvent("6")});j.addHandler(j.listBoxContainer,"itemAdd",function(e){j._raiseEvent("7",e.args)});j.addHandler(j.listBoxContainer,"itemRemove",function(e){j._raiseEvent("8",e.args)});j.addHandler(j.listBoxContainer,"itemUpdate",function(e){j._raiseEvent("9",e.args)});var p=true;j.listBoxContainer.jqxListBox({autoItemsHeight:j.autoItemsHeight,_checkForHiddenParent:false,allowDrop:false,allowDrag:false,checkboxes:j.checkboxes,emptyString:j.emptyString,autoBind:!j.remoteAutoComplete&&j.autoBind,renderer:j.renderer,rtl:j.rtl,itemHeight:j.itemHeight,selectedIndex:j.selectedIndex,incrementalSearch:false,width:q,scrollBarSize:j.scrollBarSize,autoHeight:j.autoDropDownHeight,height:j.dropDownHeight,groupMember:j.groupMember,searchMember:j.searchMember,displayMember:j.displayMember,valueMember:j.valueMember,source:j.source,theme:j.theme,rendered:function(){j.listBox=a.data(j.listBoxContainer[0],"jqxListBox").instance;if(j.remoteAutoComplete){if(j.autoDropDownHeight){j.container.height(j.listBox.virtualSize.height+25);j.listBoxContainer.height(j.listBox.virtualSize.height);j.listBox._arrange()}else{j.listBox._arrange();j.listBox.ensureVisible(0);j.listBox._renderItems();j.container.height(j.listBoxContainer.height()+25)}if(j.searchString!=undefined&&j.searchString.length>=j.minLength){var e=j.listBoxContainer.jqxListBox("items");if(e){if(e.length>0){if(!j.isOpened()){j.open()}}else{j.close()}}else{j.close()}}else{j.close()}}else{j.renderSelection("mouse");if(j.multiSelect){j.doMultiSelect(false)}}if(j.rendered){j.rendered()}}});if(j.dropDownContainer=="element"){j.listBoxContainer.css({position:"absolute",top:0,left:0})}else{j.listBoxContainer.css({position:"absolute",zIndex:j.popupZIndex,top:0,left:0})}j.listBoxContainer.css("border-top-width","1px");j.listBoxContainer.addClass(j.toThemeProperty("jqx-popup"));if(a.jqx.browser.msie){j.listBoxContainer.addClass(j.toThemeProperty("jqx-noshadow"))}if(j.template){j.listBoxContainer.addClass(j.toThemeProperty("jqx-"+j.template+"-item"))}j.listBox=a.data(j.listBoxContainer[0],"jqxListBox").instance;j.listBox.enableSelection=j.enableSelection;j.listBox.enableHover=j.enableHover;j.listBox.equalItemsWidth=j.equalItemsWidth;j.listBox._arrange();j.addHandler(j.listBoxContainer,"unselect",function(e){if(!j.multiSelect){j._raiseEvent("3",{index:e.args.index,type:e.args.type,item:e.args.item})}});j.addHandler(j.listBoxContainer,"change",function(e){if(!j.multiSelect){j.selectedIndex=j.listBox.selectedIndex;j._raiseEvent("4",{index:e.args.index,type:e.args.type,item:e.args.item})}});if(j.animationType=="none"){j.container.css("display","none")}else{j.container.hide()}p=false}catch(t){throw t}var j=this;j.input.attr("disabled",j.disabled);var g=a.jqx.browser.msie&&a.jqx.browser.version<8;if(!g){if(j.isMaterialized()&&j.hint){j.label[0].innerHTML=j.placeHolder}else{j.input.attr("placeholder",j.placeHolder)}}j.propertyChangeMap.disabled=function(e,x,w,y){if(y){e.host.addClass(j.toThemeProperty("jqx-combobox-state-disabled"));e.host.addClass(j.toThemeProperty("jqx-fill-state-disabled"));e.dropdownlistContent.addClass(j.toThemeProperty("jqx-combobox-content-disabled"))}else{e.host.removeClass(j.toThemeProperty("jqx-combobox-state-disabled"));e.host.removeClass(j.toThemeProperty("jqx-fill-state-disabled"));e.dropdownlistContent.removeClass(j.toThemeProperty("jqx-combobox-content-disabled"))}e.input.attr("disabled",e.disabled);a.jqx.aria(e,"aria-disabled",e.disabled);e.input.attr("disabled",e.disabled)};if(j.disabled){j.host.addClass(j.toThemeProperty("jqx-combobox-state-disabled"));j.host.addClass(j.toThemeProperty("jqx-fill-state-disabled"));j.dropdownlistContent.addClass(j.toThemeProperty("jqx-combobox-content-disabled"))}j.host.addClass(j.toThemeProperty("jqx-combobox-state-normal"));j.host.addClass(j.toThemeProperty("jqx-combobox"));j.host.addClass(j.toThemeProperty("jqx-rc-all"));j.host.addClass(j.toThemeProperty("jqx-widget"));j.host.addClass(j.toThemeProperty("jqx-widget-content"));j.dropdownlistArrowIcon=a("<div></div>");if(j.dropDownVerticalAlignment=="top"){j.dropdownlistArrowIcon.addClass(j.toThemeProperty("jqx-icon-arrow-up"))}else{j.dropdownlistArrowIcon.addClass(j.toThemeProperty("jqx-icon-arrow-down"))}j.dropdownlistArrowIcon.addClass(j.toThemeProperty("jqx-icon"));j.dropdownlistArrow.append(j.dropdownlistArrowIcon);j.dropdownlistArrow.addClass(j.toThemeProperty("jqx-combobox-arrow-normal"));j.dropdownlistArrow.addClass(j.toThemeProperty("jqx-fill-state-normal"));j.dropdownlistArrow[0].setAttribute("aria-label","expand");if(!j.rtl){j.dropdownlistArrow.addClass(j.toThemeProperty("jqx-rc-r"))}else{j.dropdownlistArrow.addClass(j.toThemeProperty("jqx-rc-l"))}j._setSize();j._updateHandlers();j.addHandler(j.input,"paste.textchange",function(e){if(j._writeTimer){clearTimeout(j._writeTimer)}j._writeTimer=setTimeout(function(){j.ctrlKey=false;var w=j._search(e);if(j.cinput&&j.input){if(!j.displayMember){j.cinput[0].value=j.input[0].value}else{j._updateInputSelection()}}},50)});j.addHandler(j.input,"keyup.textchange",function(e){if(j._writeTimer){clearTimeout(j._writeTimer)}j._writeTimer=setTimeout(function(){var w=j._search(e);if(j.cinput&&j.input){if(!j.displayMember){j.cinput[0].value=j.input[0].value}else{j._updateInputSelection()}}},50)});if(a.jqx.browser.msie&&a.jqx.browser.version<8){if(j.host.parents(".jqx-window").length>0){var o=j.host.parents(".jqx-window").css("z-index");m.css("z-index",o+10);j.listBoxContainer.css("z-index",o+10)}}if(j.checkboxes){j.input.attr("readonly",true);a.jqx.aria(this,"aria-readonly",true)}else{a.jqx.aria(this,"aria-readonly",false)}if(!j.remoteAutoComplete){j.searchString=""}this.bar.css("top",this.host.height())},_addInput:function(){var b=this.host.attr("name");this.cinput=a("<input type='hidden'/>");this.host.append(this.cinput);if(b){this.cinput.attr("name",b)}},_updateInputSelection:function(){if(this.cinput){var c=new Array();if(this.selectedIndex==-1){this.cinput.val("")}else{var e=this.getSelectedItem();if(e!=null){this.cinput.val(e.value);c.push(e.value)}else{this.cinput.val(this.dropdownlistContent.text())}}if(this.checkboxes||this.multiSelect){if(!this.multiSelect){var b=this.getCheckedItems()}else{var b=this.getSelectedItems()}var f="";if(b!=null){for(var d=0;d<b.length;d++){if(d==b.length-1){f+=b[d].value}else{f+=b[d].value+","}c.push(b[d].value)}}this.cinput.val(f)}if(this.field&&this.cinput){if(this.field.nodeName.toLowerCase()=="select"){a.each(this.field,function(g,h){a(this).removeAttr("selected");this.selected=c.indexOf(this.value)>=0;if(this.selected){a(this).attr("selected",true)}})}else{a.each(this.items,function(g,h){a(this.originalItem.originalItem).removeAttr("data-selected");this.selected=c.indexOf(this.value)>=0;if(this.selected){a(this.originalItem.originalItem).attr("data-selected",true)}})}}}},_search:function(d){var i=this;if(d.keyCode==9){return}if(i.searchMode=="none"||i.searchMode==null||i.searchMode=="undefined"){return}if(d.keyCode==16||d.keyCode==17||d.keyCode==20){return}if(i.checkboxes){return}if(i.multiSelect){var l=a("<span style='visibility: hidden; white-space: nowrap;'>"+document.createTextNode(i.input.val())+"</span>");l.addClass(i.toThemeProperty("jqx-widget"));a(document.body).append(l);var e=l.width()+15;l.remove();if(e>i.host.width()){e=i.host.width()}if(e<25){e=25}i.input.css("width",e+"px");if(i.selectedItems.length==0){i.input.css("width","100%");if(!i.isMaterialized()){i.input.attr("placeholder",i.placeHolder)}}else{if(!i.isMaterialized()){i.input.attr("placeholder","")}}var j=parseInt(this._findPos(i.host[0])[1])+parseInt(i.host.outerHeight())-1+"px";var r=false;if((r!=null&&r)){j=a.jqx.mobile.getTopPos(this.element)+parseInt(i.host.outerHeight());if(a("body").css("border-top-width")!="0px"){j=parseInt(j)-this._getBodyOffset().top+"px"}}i.container.css("top",j);var o=parseInt(i.host.height());i.dropdownlistArrow.height(o)}if(!i.isanimating){if(d.altKey&&d.keyCode==38){i.hideListBox("altKey");return false}if(d.altKey&&d.keyCode==40){if(!i.isOpened()){i.showListBox("altKey")}return false}}if(d.keyCode==37||d.keyCode==39){return false}if(d.altKey||d.keyCode==18){return}if(d.keyCode>=33&&d.keyCode<=40){return}if(d.ctrlKey||i.ctrlKey){if(d.keyCode!=88&&d.keyCode!=86){return}}var k=i.input.val();if(k.length==0&&!i.autoComplete){i.listBox.searchString=i.input.val();i.listBox.clearSelection();i.hideListBox("search");i.searchString=i.input.val();return}if(i.remoteAutoComplete){var i=this;var q=function(){i.listBox.vScrollInstance.value=0};if(k.length>=i.minLength){if(!d.ctrlKey&&!d.altKey){if(i.searchString!=k){var c=i.listBoxContainer.jqxListBox("source");if(c==null){i.listBoxContainer.jqxListBox({source:i.source})}if(i._searchTimer){clearTimeout(i._searchTimer)}if(d.keyCode!=13&&d.keyCode!=27){i._searchTimer=setTimeout(function(){q();if(i.autoDropDownHeight){i.listBox.autoHeight=true}i.searchString=i.input.val();if(i.search!=null){i.search(i.input.val())}else{throw"'search' function is not defined"}},i.remoteAutoCompleteDelay)}}i.searchString=k}}else{if(i._searchTimer){clearTimeout(i._searchTimer)}q();i.searchString="";i.search("");i.listBoxContainer.jqxListBox({source:null})}return}var i=this;if(k===i.searchString){return}if(!(d.keyCode=="27"||d.keyCode=="13")){var n=i.input[0].value;var g=i._updateItemsVisibility(k);var m=g.matchItems;if(i.autoComplete&&i.autoItemsHeight){i.input[0].value=n}var h=g.index;if(!i.autoComplete&&!i.remoteAutoComplete){if(!i.multiSelect||(i.multiSelect&&h>=0)){i.listBox.selectIndex(h);var f=i.listBox.isIndexInView(h);if(!f){i.listBox.ensureVisible(h)}else{i.listBox._renderItems()}}}if(i.autoComplete&&m.length===0){i.hideListBox("search")}}if(d.keyCode=="13"){var b=i.container.css("display")=="block";if(b&&!i.isanimating){i.hideListBox("keyboard");i._oldvalue=i.listBox.selectedValue;return}}else{if(d.keyCode=="27"){var b=i.container.css("display")=="block";if(b&&!i.isanimating){if(!i.multiSelect){var p=i.listBox.getVisibleItem(i._oldvalue);if(p){var i=this;setTimeout(function(){if(i.autoComplete){i._updateItemsVisibility("")}i.listBox.selectIndex(p.index);i.renderSelection("api")},i.closeDelay)}else{i.clearSelection()}}else{i.input.val("");i.listBox.selectedValue=null}i.hideListBox("keyboard");i.renderSelection("api");d.preventDefault();return false}}else{if(!i.isOpened()&&!i.opening&&!d.ctrlKey){if(i.listBox.visibleItems&&i.listBox.visibleItems.length>0){if(i.input.val()!=i.searchString&&i.searchString!=undefined&&h!=-1){i.showListBox("search")}}}i.searchString=i.input.val();if(i.searchString==""){if(!i.listBox.itemsByValue[""]){h=-1;if(!i.multiSelect){i.clearSelection()}}}var p=i.listBox.getVisibleItem(h);if(p!=undefined){i._updateInputSelection()}}}},val:function(c){if(!this.input){return""}var d=function(f){for(var e in f){if(f.hasOwnProperty(e)){return false}}if(typeof c=="number"){return false}if(typeof c=="date"){return false}if(typeof c=="boolean"){return false}if(typeof c=="string"){return false}return true};if(d(c)||arguments.length==0){var b=this.getSelectedItem();if(b){return b.value}return this.input.val()}else{var b=this.getItemByValue(c);if(b!=null){this.selectItem(b)}else{this.input.val(c)}return this.input.val()}},focus:function(){var c=this;var b=function(){c.input.focus();var d=c.input.val();c._setSelection(0,d.length)};b();setTimeout(function(){b()},10)},_setSelection:function(e,b){try{if("selectionStart" in this.input[0]){this.input[0].focus();this.input[0].setSelectionRange(e,b)}else{var c=this.input[0].createTextRange();c.collapse(true);c.moveEnd("character",b);c.moveStart("character",e);c.select()}}catch(d){}},setContent:function(b){this.input.val(b)},_updateItemsVisibility:function(k){var i=this.getItems();if(i==undefined){return{index:-1,matchItem:new Array()}}var f=this;var g=-1;var l=new Array();var j=0;a.each(i,function(o){var q="";if(!this.isGroup){if(this.searchLabel){q=this.searchLabel}else{if(this.label){q=this.label}else{if(this.value){q=this.value}else{if(this.title){q=this.title}else{q="jqxItem"}}}}q=q.toString();var p=false;switch(f.searchMode){case"containsignorecase":p=a.jqx.string.containsIgnoreCase(q,k);break;case"contains":p=a.jqx.string.contains(q,k);break;case"equals":p=a.jqx.string.equals(q,k);break;case"equalsignorecase":p=a.jqx.string.equalsIgnoreCase(q,k);break;case"startswith":p=a.jqx.string.startsWith(q,k);break;case"startswithignorecase":p=a.jqx.string.startsWithIgnoreCase(q,k);break;case"endswith":p=a.jqx.string.endsWith(q,k);break;case"endswithignorecase":p=a.jqx.string.endsWithIgnoreCase(q,k);break}if(f.autoComplete&&!p){this.visible=false}if(p&&f.autoComplete){l[j++]=this;this.visible=true;g=this.visibleIndex}if(k==""&&f.autoComplete){this.visible=true;p=false}if(f.multiSelect){this.disabled=false;if(f.selectedItems.indexOf(this.value)>=0||f._disabledItems.indexOf(this.value)>=0){this.disabled=true;p=false}}if(!f.multiSelect){if(p&&!f.autoComplete){g=this.visibleIndex;return false}}else{if(p&&!f.autoComplete){if(g===-1){g=this.visibleIndex}return true}}}});this.listBox.searchString=k;var f=this;var h=function(){if(f.multiSelect){return}var o=0;var r=false;var q=null;for(var p=0;p<f.listBox.items.length;p++){f.listBox.selectedIndexes[p]=-1;if(!f.listBox.items[p].disabled){if(r==false){q=f.listBox.items[p];o=q.visibleIndex;r=true}}}f.listBox.selectedIndex=-1;f.listBox.selectedIndex=o;f.listBox.selectedIndexes[o]=o;if(f.listBox.visibleItems.length>0){if(q){f.listBox.selectedValue=q.value}else{f.listBox.selectedValue=null}}else{f.listBox.selectedValue=null}f.listBox.ensureVisible(0)};if(!this.autoComplete){h();return{index:g,matchItems:l}}this.listBox.renderedVisibleItems=new Array();var b=this.listBox.vScrollInstance.value;this.listBox.vScrollInstance.value=0;this.listBox.visibleItems=new Array();this.listBox._renderItems();var e=this.listBox.selectedValue;var n=this.listBox.getItemByValue(e);if(!this.multiSelect){if(n){if(n.visible){this.listBox.selectedIndex=n.visibleIndex;for(var d=0;d<this.listBox.items.length;d++){this.listBox.selectedIndexes[d]=-1}this.listBox.selectedIndexes[n.visibleIndex]=n.visibleIndex}else{for(var d=0;d<this.listBox.items.length;d++){this.listBox.selectedIndexes[d]=-1}this.listBox.selectedIndex=-1}}}else{h()}this.listBox._renderItems();var m=this.listBox._calculateVirtualSize().height;if(m<b){b=0;this.listBox.vScrollInstance.refresh()}if(this.autoDropDownHeight){this._disableSelection=true;if(this.listBox.autoHeight!=this.autoDropDownHeight){this.listBoxContainer.jqxListBox({autoHeight:this.autoDropDownHeight})}this.container.height(m+25);this.listBox.invalidate();this._disableSelection=false}else{if(m<parseInt(this.dropDownHeight)){var c=this.listBox.hScrollBar[0].style.visibility=="hidden"?0:20;this.listBox.height=c+m;this.container.height(m+25+c);this.listBox.invalidate()}else{this.listBox.height=parseInt(this.dropDownHeight);this.container.height(parseInt(this.dropDownHeight)+25);this.listBox.invalidate()}}this.listBox.vScrollInstance.setPosition(b);return{index:g,matchItems:l}},findItems:function(e){var b=this.getItems();var d=this;var c=0;var f=new Array();a.each(b,function(g){var j="";if(!this.isGroup){if(this.label){j=this.label}else{if(this.value){j=this.value}else{if(this.title){j=this.title}else{j="jqxItem"}}}var h=false;switch(d.searchMode){case"containsignorecase":h=a.jqx.string.containsIgnoreCase(j,e);break;case"contains":h=a.jqx.string.contains(j,e);break;case"equals":h=a.jqx.string.equals(j,e);break;case"equalsignorecase":h=a.jqx.string.equalsIgnoreCase(j,e);break;case"startswith":h=a.jqx.string.startsWith(j,e);break;case"startswithignorecase":h=a.jqx.string.startsWithIgnoreCase(j,e);break;case"endswith":h=a.jqx.string.endsWith(j,e);break;case"endswithignorecase":h=a.jqx.string.endsWithIgnoreCase(j,e);break}if(h){f[c++]=this}}});return f},_resetautocomplete:function(){a.each(this.listBox.items,function(b){this.visible=true});this.listBox.vScrollInstance.value=0;this.listBox._addItems();this.listBox.autoHeight=false;this.listBox.height=this.dropDownHeight;this.container.height(parseInt(this.dropDownHeight)+25);this.listBoxContainer.height(parseInt(this.dropDownHeight));this.listBox._arrange();this.listBox._addItems();this.listBox._renderItems()},getItems:function(){var b=this.listBox.items;return b},getVisibleItems:function(){return this.listBox.getVisibleItems()},_setSize:function(){var b=window.getComputedStyle(this.element);var c=parseInt(b.borderLeftWidth)*2;var h=b.boxSizing;if(h==="border-box"||isNaN(c)){c=0}if(this.width!=null&&this.width.toString().indexOf("px")!=-1){this.element.style.width=parseInt(this.width)-c+"px"}else{if(this.width!=undefined&&!isNaN(this.width)){this.element.style.width=parseInt(this.width)-c+"px"}}if(this.height!=null&&this.height.toString().indexOf("px")!=-1){this.element.style.height=parseInt(this.height)-c+"px"}else{if(this.height!=undefined&&!isNaN(this.height)){this.element.style.height=parseInt(this.height)-c+"px"}}var g=false;if(this.width!=null&&this.width.toString().indexOf("%")!=-1){g=true;this.element.style.width=this.width;if(c>0){this.host.css("box-sizing","border-box")}}if(this.height!=null&&this.height.toString().indexOf("%")!=-1){g=true;this.element.style.height=this.height}if(g){var e=this;var d=this.host.width();if(this.dropDownWidth!="auto"){d=this.dropDownWidth}this.listBoxContainer.jqxListBox({width:d});this.container.width(parseInt(d)+25);this._arrange()}var e=this;var f=function(){if(e.multiSelect){e.host.height(e.height)}e._arrange();if(e.multiSelect){e.host.height("auto")}};e.oldWidth=e.host.width();e.oldHeight=e.host.height();a.jqx.utilities.resize(this.host,function(){var i=e.host.width();var j=e.host.height();if(i!=e.oldWidth||j!=e.oldHeight){f();e.hideListBox("api")}e.oldWidth=i;e.oldHeight=j})},isOpened:function(){var c=this;var b=a.data(document.body,"openedCombojqxListBox"+this.element.id);if(this.container.css("display")!="block"){return false}if(b!=null&&b==c.listBoxContainer){return true}return false},_updateHandlers:function(){var e=this;var d=false;this.removeHandlers();if(this.multiSelect){this.addHandler(this.dropdownlistContent,"click",function(f){if(f.target.href){return false}e.input.focus();setTimeout(function(){e.input.focus()},10)});this.addHandler(this.dropdownlistContent,"focus",function(f){if(f.target.href){return false}e.input.focus();setTimeout(function(){e.input.focus()},10)})}if(!this.touch){if(this.host.parents()){this.addHandler(this.host.parents(),"scroll.combobox"+this.element.id,function(f){var g=e.isOpened();if(g){e.close()}})}this.addHandler(this.host,"mouseenter",function(){if(!e.disabled&&e.enableHover){d=true;e.host.addClass(e.toThemeProperty("jqx-combobox-state-hover"));if(e.dropDownVerticalAlignment=="top"){e.dropdownlistArrowIcon.addClass(e.toThemeProperty("jqx-icon-arrow-up"))}else{e.dropdownlistArrowIcon.addClass(e.toThemeProperty("jqx-icon-arrow-down-hover"))}e.dropdownlistArrow.addClass(e.toThemeProperty("jqx-combobox-arrow-hover"));e.dropdownlistArrow.addClass(e.toThemeProperty("jqx-fill-state-hover"))}});this.addHandler(this.host,"mouseleave",function(){if(!e.disabled&&e.enableHover){e.host.removeClass(e.toThemeProperty("jqx-combobox-state-hover"));e.dropdownlistArrowIcon.removeClass(e.toThemeProperty("jqx-icon-arrow-down-hover"));e.dropdownlistArrowIcon.removeClass(e.toThemeProperty("jqx-icon-arrow-up-hover"));e.dropdownlistArrow.removeClass(e.toThemeProperty("jqx-combobox-arrow-hover"));e.dropdownlistArrow.removeClass(e.toThemeProperty("jqx-fill-state-hover"));d=false}})}if(e.autoOpen){this.addHandler(this.host,"mouseenter",function(){var f=e.isOpened();if(!f&&e.autoOpen){e.open();e.host.focus()}});this.addHandler(a(document),"mousemove."+e.id,function(f){var m=e.isOpened();if(m&&e.autoOpen){var j=e.host.coord();var k=j.top;var i=j.left;var g=e.container.coord();var n=g.left;var l=g.top;var h=true;if(f.pageY>=k&&f.pageY<=k+e.host.height()+2){if(f.pageX>=i&&f.pageX<i+e.host.width()){h=false}}if(f.pageY>=l&&f.pageY<=l+e.container.height()-20){if(f.pageX>=n&&f.pageX<n+e.container.width()){h=false}}if(h){e.close()}}})}var c="mousedown";if(this.touch){c=a.jqx.mobile.getTouchEventName("touchstart")}var b=function(h){if(!e.disabled){var f=e.container.css("display")=="block";if(!e.isanimating){if(f){e.hideListBox("api");if(!a.jqx.mobile.isTouchDevice()){e.input.focus();setTimeout(function(){e.input.focus()},10)}return true}else{if(e.autoDropDownHeight){e.container.height(e.listBoxContainer.height()+25);var g=e.listBoxContainer.jqxListBox("autoHeight");if(!g){e.listBoxContainer.jqxListBox({autoHeight:e.autoDropDownHeight});e.listBox._arrange();e.listBox.ensureVisible(0);e.listBox._renderItems();e.container.height(e.listBoxContainer.height()+25)}}e.showListBox("api");if(!a.jqx.mobile.isTouchDevice()){setTimeout(function(){e.input.focus()},10)}else{return true}}}}};this.addHandler(this.dropdownlistArrow,c,function(f){b(f)});this.addHandler(this.dropdownlistArrowIcon,c,function(f){});this.addHandler(this.host,"focus",function(){e.focus()});this.addHandler(this.input,"focus",function(f){e.focused=true;e.host.addClass(e.toThemeProperty("jqx-combobox-state-focus"));e.host.addClass(e.toThemeProperty("jqx-fill-state-focus"));e.bar.addClass("focused");e.label.addClass("focused");e.dropdownlistContent.addClass(e.toThemeProperty("jqx-combobox-content-focus"));if(f.stopPropagation){f.stopPropagation()}});this.addHandler(this.input,"blur",function(){e.focused=false;e.bar.removeClass("focused");e.label.removeClass("focused");if(!e.isOpened()&&!e.opening){if(e.selectionMode=="dropDownList"){e._selectOldValue()}e.host.removeClass(e.toThemeProperty("jqx-combobox-state-focus"));e.host.removeClass(e.toThemeProperty("jqx-fill-state-focus"));e.dropdownlistContent.removeClass(e.toThemeProperty("jqx-combobox-content-focus"))}if(e._searchTimer){clearTimeout(e._searchTimer)}});this.addHandler(a(document),"mousedown."+this.id,e.closeOpenedListBox,{that:this,listbox:this.listBox,id:this.id});if(this.touch){this.addHandler(a(document),a.jqx.mobile.getTouchEventName("touchstart")+"."+this.id,e.closeOpenedListBox,{that:this,listbox:this.listBox,id:this.id})}this.addHandler(this.host,"keydown",function(k){var h=e.container.css("display")=="block";e.ctrlKey=k.ctrlKey;if(e.host.css("display")=="none"){return true}if(k.keyCode=="13"||k.keyCode=="9"){if(h&&!e.isanimating){if(e.listBox.selectedIndex!=-1){e.renderSelection("mouse");var f=e.listBox.selectedIndex;var j=e.listBox.getVisibleItem(f);if(j){e.listBox.selectedValue=j.value}e._setSelection(e.input.val().length,e.input.val().length);e.hideListBox("keyboard")}if(k.keyCode=="13"){e._oldvalue=e.listBox.selectedValue}if(!e.keyboardSelection){e._raiseEvent("2",{index:e.selectedIndex,type:"keyboard",item:e.getItem(e.selectedIndex)})}if(k.keyCode=="9"){return true}return false}}if(k.keyCode==115){if(!e.isanimating){if(!e.isOpened()){e.showListBox("keyboard")}else{if(e.isOpened()){e.hideListBox("keyboard")}}}return false}if(k.altKey){if(e.host.css("display")=="block"){if(!e.isanimating){if(k.keyCode==38){if(e.isOpened()){e.hideListBox("altKey")}}else{if(k.keyCode==40){if(!e.isOpened()){e.showListBox("altKey")}}}}}}if(k.keyCode=="27"||k.keyCode=="9"){if(e.isOpened()&&!e.isanimating){if(k.keyCode=="27"){if(!e.multiSelect){var j=e.listBox.getItemByValue(e._oldvalue);if(j){setTimeout(function(){if(e.autoComplete){e._updateItemsVisibility("")}e.listBox.selectIndex(j.index);e.renderSelection("api")},e.closeDelay)}else{e.clearSelection()}}else{e.listBox.selectedValue=null;e.input.val("")}}e.hideListBox("keyboard");if(k.keyCode=="9"){return true}e.renderSelection("api");k.preventDefault();return false}}var g=k.keyCode;if(h&&!e.disabled&&g!=8){return e.listBox._handleKeyDown(k)}else{if(!e.disabled&&!h){var g=k.keyCode;if(g==33||g==34||g==35||g==36||g==38||g==40){return e.listBox._handleKeyDown(k)}}}if(g===8&&e.multiSelect){if(e.input.val().length===0){var i=e.selectedItems[e.selectedItems.length-1];e.selectedItems.pop();e._selectedItems.pop();if(i){e._raiseEvent("3",{index:i.index,type:"keyboard",item:i});e._raiseEvent("4",{index:i.index,type:"keyboard",item:i})}e.listBox.selectedValue=null;e.doMultiSelect();return false}}if(e.isMaterialized()&&e.hint){setTimeout(function(){if(e.input[0].value.length===0){e.element.removeAttribute("hint");e.label[0].innerHTML=e.placeHolder}else{if(e.hint){e.element.setAttribute("hint",true)}}})}});this.addHandler(this.listBoxContainer,"checkChange",function(f){e.renderSelection("mouse");e._updateInputSelection();e._raiseEvent(5,{label:f.args.label,value:f.args.value,checked:f.args.checked,item:f.args.item})});this.addHandler(this.listBoxContainer,"select",function(f){if(!e.disabled){if(f.args.type!="keyboard"||e.keyboardSelection){e.renderSelection(f.args.type);if(!e.multiSelect){e._raiseEvent("2",{index:f.args.index,type:f.args.type,item:f.args.item})}if(f.args.type=="mouse"){e._oldvalue=e.listBox.selectedValue;if(!e.checkboxes){e.hideListBox("mouse");if(!e.touch){e.input.focus()}else{return false}}}}}});if(this.listBox!=null&&this.listBox.content!=null){this.addHandler(this.listBox.content,"click",function(f){if(!e.disabled){if(e.listBox.itemswrapper){if(f.target===e.listBox.itemswrapper[0]){return true}}if(f.target&&f.target.className){if(f.target.className.indexOf("jqx-fill-state-disabled")>=0){return true}}e.renderSelection("mouse");e._oldvalue=e.listBox.selectedValue;if(!e.touch&&!e.ishiding){if(!e.checkboxes){e.hideListBox("mouse");e.input.focus()}}if(e.touch===true){if(!e.checkboxes){e.hideListBox("mouse")}}}})}},_selectOldValue:function(){var c=this;if(c.listBox.selectedIndex==-1){if(!c.multiSelect){var b=c.listBox.getItemByValue(c._oldvalue);if(b){setTimeout(function(){if(c.autoComplete){c._updateItemsVisibility("")}c.listBox.selectIndex(b.index);c.renderSelection("api")},c.closeDelay)}else{c.clearSelection();c.listBox.selectIndex(0);c.renderSelection("api")}}else{c.listBox.selectedValue=null;c.input.val("")}}else{c.renderSelection("api")}},removeHandlers:function(){var c=this;if(this.dropdownlistWrapper!=null){this.removeHandler(this.dropdownlistWrapper,"mousedown")}if(this.dropdownlistContent){this.removeHandler(this.dropdownlistContent,"click");this.removeHandler(this.dropdownlistContent,"focus")}this.removeHandler(this.host,"keydown");this.removeHandler(this.host,"focus");if(this.input!=null){this.removeHandler(this.input,"focus");this.removeHandler(this.input,"blur")}this.removeHandler(this.host,"mouseenter");this.removeHandler(this.host,"mouseleave");this.removeHandler(a(document),"mousemove."+c.id);if(this.listBoxContainer){this.removeHandler(this.listBoxContainer,"checkChange");this.removeHandler(this.listBoxContainer,"select")}if(this.host.parents()){this.removeHandler(this.host.parents(),"scroll.combobox"+this.element.id)}if(this.dropdownlistArrowIcon&&this.dropdownlistArrow){var b="mousedown";if(this.touch){b=a.jqx.mobile.getTouchEventName("touchstart")}this.removeHandler(this.dropdownlistArrowIcon,b);this.removeHandler(this.dropdownlistArrow,b)}},getItem:function(b){var c=this.listBox.getItem(b);return c},getItemByValue:function(c){var b=this.listBox.getItemByValue(c);return b},getVisibleItem:function(b){var c=this.listBox.getVisibleItem(b);return c},renderSelection:function(j){if(j==undefined||j=="none"){return}if(this._disableSelection===true){return}if(this.listBox==null){return}if(this.multiSelect){return}var k=this.listBox.visibleItems[this.listBox.selectedIndex];if(this.autoComplete&&!this.checkboxes){if(this.listBox.selectedValue!==undefined){var k=this.getItemByValue(this.listBox.selectedValue)}}if(this.checkboxes){var f=this.getCheckedItems();if(f!=null&&f.length>0){k=f[0]}else{k=null}}if(this.hint){this.label[0].innerHTML=this.placeHolder}if(k!=null){if(this.hint){this.element.setAttribute("hint",true)}}else{this.element.removeAttribute("hint")}this.bar.css("top",this.host.height());if(k==null){var d=a.jqx.browser.msie&&a.jqx.browser.version<8;this.input.val("");this.input.attr("value","");if(!d){if(this.isMaterialized()){this.label[0].innerHTML=this.placeHolder;this.input.removeAttr("placeholder")}else{this.input.attr("placeholder",this.placeHolder)}}this._updateInputSelection();return}this.selectedIndex=this.listBox.selectedIndex;var c=a("<span></span>");if(k.label!=undefined&&k.label!=null&&k.label.toString().length>0){a.jqx.utilities.html(c,k.label)}else{if(k.value!=undefined&&k.value!=null&&k.value.toString().length>0){a.jqx.utilities.html(c,k.value)}else{if(k.title!=undefined&&k.title!=null&&k.title.toString().length>0){a.jqx.utilities.html(c,k.title)}else{a.jqx.utilities.html(c,this.emptyString)}}}var b=c.outerHeight();if(this.checkboxes){var g=this.getCheckedItems();var h="";for(var e=0;e<g.length;e++){if(e==g.length-1){h+=g[e].label}else{h+=g[e].label+", "}}this.input.val(h)}else{this.input.val(c.text())}c.remove();this._updateInputSelection();if(this.renderSelectedItem){var l=this.renderSelectedItem(this.listBox.selectedIndex,k);if(l!=undefined){this.input[0].value=l}}this.input.attr("value",this.input.val());if(this.listBox&&this.listBox._activeElement){a.jqx.aria(this,"aria-activedescendant",this.listBox._activeElement.id)}},dataBind:function(){this.listBoxContainer.jqxListBox({source:this.source});this.renderSelection("mouse");if(this.source==null){this.clearSelection()}},clear:function(){this.listBoxContainer.jqxListBox({source:null});this.clearSelection()},clearSelection:function(b){this.selectedIndex=-1;this.listBox.clearSelection();this.input.val("");if(this.multiSelect){this.listBox.selectedValue="";this.selectedItems=new Array();this._selectedItems=new Array();this.doMultiSelect(false)}},unselectIndex:function(c,d){if(isNaN(c)){return}if(this.autoComplete){this._updateItemsVisibility("")}this.listBox.unselectIndex(c,d);this.renderSelection("mouse");if(this.multiSelect){if(c>=0){var b=this.getItem(c);var e=this.selectedItems.indexOf(b.value);if(e>=0){if(b.value===this.listBox.selectedValue){this.listBox.selectedValue=null}this.selectedItems.splice(e,1);this._selectedItems.splice(e,1)}}this.doMultiSelect(false)}},selectIndex:function(b,d,e,c){if(this.autoComplete){this._updateItemsVisibility("")}this.listBox.selectIndex(b,d,e,c);this.renderSelection("mouse");this.selectedIndex=b;if(this.multiSelect){this.doMultiSelect()}},selectItem:function(b){if(this.autoComplete){this._updateItemsVisibility("")}if(this.listBox!=undefined){this.listBox.selectedIndex=-1;this.listBox.selectItem(b);this.selectedIndex=this.listBox.selectedIndex;this.renderSelection("mouse");if(this.multiSelect){this.doMultiSelect(false)}}},unselectItem:function(d){if(this.autoComplete){this._updateItemsVisibility("")}if(this.listBox!=undefined){this.listBox.unselectItem(d);this.renderSelection("mouse");if(this.multiSelect){var b=this.getItemByValue(d);if(b){var c=this.selectedItems.indexOf(b.value);if(c>=0){if(b.value===this.listBox.selectedValue){this.listBox.selectedValue=null}this.selectedItems.splice(c,1);this._selectedItems.splice(c,1)}}this.doMultiSelect(false)}}},checkItem:function(b){if(this.autoComplete){this._updateItemsVisibility("")}if(this.listBox!=undefined){this.listBox.checkItem(b)}},uncheckItem:function(b){if(this.autoComplete){this._updateItemsVisibility("")}if(this.listBox!=undefined){this.listBox.uncheckItem(b)}},indeterminateItem:function(b){if(this.autoComplete){this._updateItemsVisibility("")}if(this.listBox!=undefined){this.listBox.indeterminateItem(b)}},getSelectedValue:function(){return this.listBox.selectedValue},getSelectedIndex:function(){if(!this.multiSelect){return this.listBox.selectedIndex}else{if(this.remoteAutoComplete&&this.multiSelect&&this._selectedItems.length>0){return this.getSelectedItems()[0].index}if(this._selectedItems&&this._selectedItems.length>0){return this.getSelectedItems()[0].index}}},getSelectedItem:function(){if(!this.multiSelect){return this.getVisibleItem(this.listBox.selectedIndex)}else{if(this.remoteAutoComplete&&this.multiSelect&&this._selectedItems.length>0){return this.getSelectedItems()[0]}if(this._selectedItems&&this._selectedItems.length>0){return this.getSelectedItems()[0]}return null}},getSelectedItems:function(){if(this.remoteAutoComplete&&this.multiSelect){return this._selectedItems}var c=new Array();var b=this;a.each(this.selectedItems,function(){var d=b.getItemByValue(this);if(d){c.push(d)}else{var d=b._selectedItems[this];if(d){c.push(d)}}});return c},getCheckedItems:function(){return this.listBox.getCheckedItems()},checkIndex:function(b){this.listBox.checkIndex(b)},uncheckIndex:function(b){this.listBox.uncheckIndex(b)},indeterminateIndex:function(b){this.listBox.indeterminateIndex(b)},checkAll:function(){this.listBox.checkAll();this.renderSelection("mouse")},uncheckAll:function(){this.listBox.uncheckAll();this.renderSelection("mouse")},insertAt:function(c,b){if(c==null){return false}return this.listBox.insertAt(c,b)},addItem:function(b){return this.listBox.addItem(b)},removeAt:function(c){var b=this.listBox.removeAt(c);this.renderSelection("mouse");return b},removeItem:function(c){var b=this.listBox.removeItem(c);this.renderSelection("mouse");return b},updateItem:function(c,d){var b=this.listBox.updateItem(c,d);this.renderSelection("mouse");return b},updateAt:function(d,c){var b=this.listBox.updateAt(d,c);this.renderSelection("mouse");return b},ensureVisible:function(b){return this.listBox.ensureVisible(b)},disableAt:function(b){var c=this.getVisibleItem(b);if(c){this._disabledItems.push(c.value)}return this.listBox.disableAt(b)},enableAt:function(b){var c=this.getVisibleItem(b);if(c){this._disabledItems.splice(this._disabledItems.indexOf(c.value),1)}return this.listBox.enableAt(b)},disableItem:function(b){var b=this.getVisibleItem(b);if(b){this._disabledItems.push(b.value)}return this.listBox.disableItem(b)},enableItem:function(b){var b=this.getVisibleItem(b);if(b){this._disabledItems.splice(this._disabledItems.indexOf(b.value),1)}return this.listBox.enableItem(b)},_findPos:function(c){while(c&&(c.type=="hidden"||c.nodeType!=1||a.expr.filters.hidden(c))){c=c.nextSibling}if(c){var b=a(c).coord(true);return[b.left,b.top]}},testOffset:function(h,f,c){var g=h.outerWidth();var j=h.outerHeight();var i=a(window).width()+a(window).scrollLeft();var e=a(window).height()+a(window).scrollTop();if(f.left+g>i){if(g>this.host.width()){var d=this.host.coord().left;var b=g-this.host.width();f.left=d-b+2}}if(f.left<0){f.left=parseInt(this.host.coord().left)+"px"}f.top-=Math.min(f.top,(f.top+j>e&&e>j)?Math.abs(j+c+23):0);return f},open:function(){if(!this.isOpened()&&!this.opening){this.showListBox("api")}},close:function(){if(this.isOpened()){this.hideListBox("api")}},_getBodyOffset:function(){var c=0;var b=0;if(a("body").css("border-top-width")!="0px"){c=parseInt(a("body").css("border-top-width"));if(isNaN(c)){c=0}}if(a("body").css("border-left-width")!="0px"){b=parseInt(a("body").css("border-left-width"));if(isNaN(b)){b=0}}return{left:b,top:c}},showListBox:function(n){if(this.listBox.items&&this.listBox.items.length==0){return}if(n=="search"&&!this.autoComplete&&!this.remoteAutoComplete){if(this.autoDropDownHeight){this.container.height(this.listBoxContainer.height()+25)}}this.element.setAttribute("opened",true);if(this.autoComplete||this.multiSelect&&!this.remoteAutoComplete){if(n!="search"){this._updateItemsVisibility("");if(this.multiSelect){var r=this.getVisibleItems();for(var x=0;x<r.length;x++){if(!r[x].disabled){this.ensureVisible(x);break}}}}}if(this.remoteAutoComplete){this.listBox.clearSelection()}if(n!="search"){this._oldvalue=this.listBox.selectedValue}a.jqx.aria(this,"aria-expanded",true);if(this.dropDownWidth=="auto"&&this.width!=null&&this.width.indexOf&&this.width.indexOf("%")!=-1){if(this.listBox.host.width()!=this.host.width()){var u=this.element.offsetWidth;this.listBoxContainer.jqxListBox({width:u});this.listBoxContainer[0].style.width=u+"px";this.container.width(parseInt(u)+25)}}if(this.dropDownWidth=="auto"&&this.host.css("border-left-width")==="0px"){var u=this.element.offsetWidth;this.listBoxContainer.jqxListBox({width:u+1});this.container.width(parseInt(u)+25)}var j=this;var h=this.listBoxContainer;var z=this.listBox;var e=a(window).scrollTop();var f=a(window).scrollLeft();var p=parseInt(this._findPos(this.host[0])[1])+parseInt(this.host.outerHeight())-1+"px";var d,s=parseInt(Math.round(this.host.coord(true).left));d=s+"px";if(this.dropDownContainer==="element"){p=parseInt(this.host.outerHeight())-1+"px";d=0}var y=a.jqx.mobile.isSafariMobileBrowser()||a.jqx.mobile.isWindowsPhone();this.ishiding=false;var g=a.jqx.utilities.hasTransform(this.host);if(g||(y!=null&&y)){d=a.jqx.mobile.getLeftPos(this.element);p=a.jqx.mobile.getTopPos(this.element)+parseInt(this.host.outerHeight());if(a("body").css("border-top-width")!="0px"){p=parseInt(p)-this._getBodyOffset().top+"px"}if(a("body").css("border-left-width")!="0px"){d=parseInt(d)-this._getBodyOffset().left+"px"}}this.host.addClass(this.toThemeProperty("jqx-combobox-state-selected"));if(this.dropDownVerticalAlignment=="top"){this.dropdownlistArrowIcon.addClass(this.toThemeProperty("jqx-icon-arrow-up-selected"))}else{this.dropdownlistArrowIcon.addClass(this.toThemeProperty("jqx-icon-arrow-down-selected"))}this.dropdownlistArrow.addClass(this.toThemeProperty("jqx-combobox-arrow-selected"));this.dropdownlistArrow.addClass(this.toThemeProperty("jqx-fill-state-pressed"));this.host.addClass(this.toThemeProperty("jqx-combobox-state-focus"));this.host.addClass(this.toThemeProperty("jqx-fill-state-focus"));this.dropdownlistContent.addClass(this.toThemeProperty("jqx-combobox-content-focus"));this.container.css("left",d);this.container.css("top",p);z._arrange();var c=true;var b=false;if(this.dropDownHorizontalAlignment=="right"||this.rtl){var l=this.container.outerWidth();var v=Math.abs(l-this.host.width());if(l>this.host.width()){this.container.css("left",25+parseInt(Math.round(s))-v+"px")}else{this.container.css("left",25+parseInt(Math.round(s))+v+"px")}}if(this.dropDownVerticalAlignment=="top"){var w=h.height();b=true;h.css("top",23);h.addClass(this.toThemeProperty("jqx-popup-up"));var o=parseInt(this.host.outerHeight());var m=parseInt(p)-Math.abs(w+o+23);this.container.css("top",m)}if(this.enableBrowserBoundsDetection){var k=this.testOffset(h,{left:parseInt(this.container.css("left")),top:parseInt(p)},parseInt(this.host.outerHeight()));if(parseInt(this.container.css("top"))!=k.top){b=true;h.css("top",23);h.addClass(this.toThemeProperty("jqx-popup-up"))}else{h.css("top",0)}this.container.css("top",k.top);this.container.css("top",k.top);if(parseInt(this.container.css("left"))!=k.left){this.container.css("left",k.left)}}if(this.animationType=="none"||this.animationType==="transform"){this.container.css("display","block");a.data(document.body,"openedCombojqxListBoxParent",j);a.data(document.body,"openedCombojqxListBox"+j.element.id,h);h.css("margin-top",0);h.css("opacity",1)}else{this.container.css("display","block");var q=h.outerHeight();h.stop();if(this.animationType=="fade"){h.css("margin-top",0);h.css("opacity",0);h.animate({opacity:1},this.openDelay,function(){j.isanimating=false;j.opening=false;a.data(document.body,"openedCombojqxListBoxParent",j);a.data(document.body,"openedCombojqxListBox"+j.element.id,h)})}else{h.css("opacity",1);if(b){h.css("margin-top",q)}else{h.css("margin-top",-q)}this.isanimating=true;this.opening=true;h.animate({"margin-top":0},this.openDelay,function(){j.isanimating=false;j.opening=false;a.data(document.body,"openedCombojqxListBoxParent",j);a.data(document.body,"openedCombojqxListBox"+j.element.id,h)})}}z._renderItems();if(!b){this.host.addClass(this.toThemeProperty("jqx-rc-b-expanded"));h.addClass(this.toThemeProperty("jqx-rc-t-expanded"));this.dropdownlistArrow.addClass(this.toThemeProperty("jqx-rc-b-expanded"))}else{this.host.addClass(this.toThemeProperty("jqx-rc-t-expanded"));h.addClass(this.toThemeProperty("jqx-rc-b-expanded"));this.dropdownlistArrow.addClass(this.toThemeProperty("jqx-rc-t-expanded"))}h.addClass(this.toThemeProperty("jqx-fill-state-focus"));this._raiseEvent("0",z);h.addClass(this.toThemeProperty("jqx-popup-show"))},doMultiSelect:function(c){if(this.checkboxes){this.multiSelect=false}var e=this;if(!this.multiSelect){var g=e.dropdownlistContent.find(".jqx-button");var d="mousedown";if(this.touch){d=a.jqx.mobile.getTouchEventName("touchstart")}this.removeHandler(g,d);this.removeHandler(g.find(".jqx-icon-close"),d);g.remove();var f=this.listBox.items;if(!f){return}for(var b=0;b<f.length;b++){f[b].disabled=false}this.listBox._renderItems();this.selectedItems=new Array();this._selectedItems=new Array();return}if(this.validateSelection){var k=this.validateSelection(this.listBox.selectedValue);if(!k){return}}var h=this.selectedItems;if(this.listBox.selectedValue){if(this.selectedItems.indexOf(this.listBox.selectedValue)===-1){var j=this.getItemByValue(this.listBox.selectedValue);if(j&&j.visible){this.selectedItems.push(this.listBox.selectedValue);this._selectedItems.push(j);this._raiseEvent("2",{index:j.index,item:j});this._raiseEvent("4",{index:j.index,item:j})}}this.listBox.selectedIndex=-1}var f=this.listBox.items;if(!f){return}for(var b=0;b<f.length;b++){f[b].disabled=false;if(this.selectedItems.indexOf(f[b].value)>=0||this._disabledItems.indexOf(this.value)>=0){f[b].disabled=true}}this.listBox._renderItems();this.searchString="";this.input.val("");var f="";var d="mousedown";var g=e.dropdownlistContent.find(".jqx-button");if(this.touch){d=a.jqx.mobile.getTouchEventName("touchstart")}this.removeHandler(g,d);this.removeHandler(g.find(".jqx-icon-close"),d);g.remove();e.input.detach();if(this.selectedItems.length>0){e.input.css("width","25px");if(this.isMaterialized()&&e.hint){e.label[0].innerHTML=this.placeHolder}else{e.input.attr("placeholder","")}}else{e.input.css("width","100%");if(e.isMaterialized()&&e.hint){e.label[0].innerHTML=this.placeHolder}else{e.input.attr("placeholder",this.placeHolder)}}if(e.isMaterialized()){if(e.hint){setTimeout(function(){if(e.selectedItems.length===0){e.element.removeAttribute("hint");e.label[0].innerHTML=e.placeHolder}else{if(e.hint){e.element.setAttribute("hint",true)}}})}}a.each(this.selectedItems,function(l){var n=e.getItemByValue(this);if(!n||e.remoteAutoComplete){n=e._selectedItems[l]}var p=a('<div style="overflow: hidden; float: left;"></div>');p.addClass(e.toThemeProperty("jqx-button"));p.addClass(e.toThemeProperty("jqx-combobox-multi-item"));p.addClass(e.toThemeProperty("jqx-fill-state-normal"));p.addClass(e.toThemeProperty("jqx-rc-all"));if(n){var q=n.label;if(e.renderSelectedItem){var i=e.renderSelectedItem(l,n);if(i){q=i}}if(p[0].innerHTML==""){p[0].innerHTML='<a data-value="'+n.value+'" style="float: left;" href="#">'+q+"</a>"}if(e.rtl){p[0].innerHTML='<a data-value="'+n.value+'" style="float: right;" href="#">'+q+"</a>"}var o=!e.rtl?"right":"left";if(e.showCloseButtons){var m='<div style="position: relative; overflow: hidden; float: '+o+'; min-height: 16px; min-width: 18px;"><div style="position: absolute; left: 100%; top: 50%; margin-left: -18px; margin-top: -7px; float: none; width: 16px; height: 16px;" class="'+e.toThemeProperty("jqx-icon-close")+'"></div></div>';if(a.jqx.browser.msie&&a.jqx.browser.version<8){m='<div style="position: relative; overflow: hidden; float: left; min-height: 16px; min-width: 18px;"><div style="position: absolute; left: 100%; top: 50%; margin-left: -18px; margin-top: -7px; float: none; width: 16px; height: 16px;" class="'+e.toThemeProperty("jqx-icon-close")+'"></div></div>'}if(e.rtl){var m='<div style="position: relative; overflow: hidden; float: '+o+'; min-height: 16px; min-width: 18px;"><div style="position: absolute; left: 0px; top: 50%; margin-top: -7px; float: none; width: 16px; height: 16px;" class="'+e.toThemeProperty("jqx-icon-close")+'"></div></div>';if(a.jqx.browser.msie&&a.jqx.browser.version<8){m='<div style="position: relative; overflow: hidden; float: left; min-height: 16px; min-width: 18px;"><div style="position: absolute; left: 0px; top: 50%; margin-top: -7px; float: none; width: 16px; height: 16px;" class="'+e.toThemeProperty("jqx-icon-close")+'"></div></div>'}}p[0].innerHTML+=m}}else{if(p[0].innerHTML==""){p[0].innerHTML='<a href="#"></a>'}}e.dropdownlistContent.append(p)});e.dropdownlistContent.append(e.input);e.input.val("");if(c!==false){e.input.focus();setTimeout(function(){e.input.focus()},10)}var g=e.dropdownlistContent.find(".jqx-button");if(this.touchMode===true){d="mousedown"}this.addHandler(g,d,function(l){if(l.target.className.indexOf("jqx-icon-close")>=0){return true}if(e.disabled){return true}var m=a(l.target).attr("data-value");var i=e.getItemByValue(m);if(i){e.listBox.selectedValue=null;e.listBox.clearSelection()}e.listBox.scrollTo(0,0);e.open();if(l.preventDefault){l.preventDefault()}if(l.stopPropagation){l.stopPropagation()}return false});this.addHandler(g.find(".jqx-icon-close"),d,function(p){if(e.disabled){return}var r=a(p.target).parent().parent().find("a").attr("data-value");var o=e.getItemByValue(r);if(o||(e.remoteAutoComplete&&!o&&e.selectedItems.indexOf(r)>=0)){e.listBox.selectedValue=null;var l=e.selectedItems.indexOf(r);var n=o&&o.index>=0?o.index:l;if(l>=0){e.selectedItems.splice(l,1);var q=e._selectedItems[l];if(!q){q=o}e._selectedItems.splice(l,1);e._raiseEvent("3",{index:n,type:"mouse",item:q});e._raiseEvent("4",{index:n,type:"mouse",item:q});e.doMultiSelect()}else{for(var m=0;m<e.selectedItems.length;m++){var q=e.selectedItems[m];if(q==r){e.selectedItems.splice(m,1);e._selectedItems.splice(m,1);e._raiseEvent("3",{index:n,type:"mouse",item:o});e._raiseEvent("4",{index:n,type:"mouse",item:o});e.doMultiSelect();break}}}}});if(this.isMaterialized()){this.host.height(this.dropdownlistContent.height())}this.bar.css("top",this.host.height());e.dropdownlistArrow.height(this.host.height());e._updateInputSelection()},hideListBox:function(h){var f=this.listBoxContainer;var g=this.listBox;var c=this.container;if(this.container[0].style.display=="none"){return}this.element.setAttribute("opened",false);a.jqx.aria(this,"aria-expanded",false);if(h=="keyboard"||h=="mouse"){this.listBox.searchString=""}f.removeClass("jqx-popup-show");if(h=="keyboard"||h=="mouse"&&this.multiSelect){this.doMultiSelect()}var d=this;a.data(document.body,"openedCombojqxListBox"+this.element.id,null);if(this.animationType=="none"){this.opening=false;this.container.css("display","none")}else{if(this.animationType==="transform"){setTimeout(function(){c.css("display","none")},this.closeDelay)}else{if(!this.ishiding){var b=f.outerHeight();f.css("margin-top",0);f.stop();this.opening=false;this.isanimating=true;var e=-b;if(parseInt(this.container.coord().top)<parseInt(this.host.coord().top)){e=b}if(this.animationType=="fade"){f.css({opacity:1});f.animate({opacity:0},this.closeDelay,function(){d.isanimating=false;c.css("display","none");d.ishiding=false})}else{f.animate({"margin-top":e},this.closeDelay,function(){d.isanimating=false;c.css("display","none");d.ishiding=false})}}}}this.ishiding=true;this.host.removeClass(this.toThemeProperty("jqx-combobox-state-selected"));this.dropdownlistArrowIcon.removeClass(this.toThemeProperty("jqx-icon-arrow-down-selected"));this.dropdownlistArrowIcon.removeClass(this.toThemeProperty("jqx-icon-arrow-up-selected"));this.dropdownlistArrow.removeClass(this.toThemeProperty("jqx-combobox-arrow-selected"));this.dropdownlistArrow.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));if(!this.focused){this.host.removeClass(this.toThemeProperty("jqx-combobox-state-focus"));this.host.removeClass(this.toThemeProperty("jqx-fill-state-focus"));this.dropdownlistContent.removeClass(this.toThemeProperty("jqx-combobox-content-focus"))}this.host.removeClass(this.toThemeProperty("jqx-rc-b-expanded"));f.removeClass(this.toThemeProperty("jqx-rc-t-expanded"));this.host.removeClass(this.toThemeProperty("jqx-rc-t-expanded"));f.removeClass(this.toThemeProperty("jqx-rc-b-expanded"));f.removeClass(this.toThemeProperty("jqx-fill-state-focus"));this.dropdownlistArrow.removeClass(this.toThemeProperty("jqx-rc-t-expanded"));this.dropdownlistArrow.removeClass(this.toThemeProperty("jqx-rc-b-expanded"));this._raiseEvent("1",g)},closeOpenedListBox:function(e){var d=e.data.that;var b=a(e.target);var c=e.data.listbox;if(c==null){return true}if(a(e.target).ischildof(d.host)){return}var f=d;var g=false;a.each(b.parents(),function(){if(this.className!="undefined"){if(this.className.indexOf){if(this.className.indexOf("jqx-listbox")!=-1){g=true;return false}if(this.className.indexOf("jqx-combobox")!=-1){if(d.element.id==this.id){g=true}return false}}}});if(c!=null&&!g){if(d.isOpened()){d.hideListBox("api");d.input.blur()}}return true},loadFromSelect:function(b){this.listBox.loadFromSelect(b);this.clearSelection()},refresh:function(b){this._setSize();this._arrange();if(this.listBox){this.renderSelection()}},resize:function(){this._setSize();this._arrange()},_arrange:function(){var d=parseInt(this.host.width());var j=parseInt(this.host.height());var e=this.arrowSize;var f=this.arrowSize;var h=1;if(!this.showArrow){f=0;e=0;this.dropdownlistArrow.hide();h=0;this.host.css("cursor","arrow");if(this.theme==="fluent"||this.theme==="tailwind"){h=1}}else{if(this.dropdownlistArrow[0].style.display==="none"){this.dropdownlistArrow.show()}}var b=d-f-1*h;if(b>0){this.dropdownlistContent[0].style.width=b+"px"}if(this.rtl){this.dropdownlistContent[0].style.width=(-1+b+"px")}this.dropdownlistContent[0].style.height=j+"px";this.dropdownlistContent[0].style.left="0px";this.dropdownlistContent[0].style.top="0px";this.dropdownlistArrow[0].style.width=f+"px";this.dropdownlistArrow[0].style.height=j+"px";this.dropdownlistArrow[0].style.left=1+b+"px";this.input[0].style.width="100%";if(!this.multiSelect){this.input.height(j)}var c=this.input.height();if(c==0){c=parseInt(this.input.css("font-size"))+3}if(this.input[0].className.indexOf("jqx-rc-all")==-1){this.input.addClass(this.toThemeProperty("jqx-rc-all"))}var i=parseInt(j)/2-parseInt(c)/2;if(i>0){}if(this.rtl){this.dropdownlistArrow.css("left","0px");this.dropdownlistContent.css("left",this.dropdownlistArrow.width());if(a.jqx.browser.msie&&a.jqx.browser.version<=8){this.dropdownlistContent.css("left",1+this.dropdownlistArrow.width())}}if(this.multiSelect){this.input.css("float","left");this.input.width(25);this.dropdownlistWrapper.parent().css("height","auto");this.dropdownlistContent.css("height","auto");this.dropdownlistWrapper.css("height","auto");this.dropdownlistContent.css("position","relative");this.dropdownlistContent.css("cursor","text");this.host.css("height","auto");this.host.css("min-height",this.height);this.dropdownlistContent.css("min-height",this.height);var j=parseInt(this.host.height());this.dropdownlistArrow.height(j);var g=parseInt(this.host.css("min-height"));var i=parseInt(g)/2-parseInt(c)/2;if(i>0){this.input.css("margin-top",i)}if(this.isMaterialized()){this.host.height(this.dropdownlistContent.height())}this.bar.css("top",this.host.height());this.dropdownlistArrow.height(this.host.height())}},destroy:function(){if(this.source&&this.source.unbindBindingUpdate){this.source.unbindBindingUpdate(this.element.id);this.source.unbindBindingUpdate(this.listBoxContainer[0].id);this.source.unbindDownloadComplete(this.element.id);this.source.unbindDownloadComplete(this.listBoxContainer[0].id)}a.jqx.utilities.resize(this.host,null,true);this.removeHandler(this.listBoxContainer,"select");this.removeHandler(this.listBoxContainer,"unselect");this.removeHandler(this.listBoxContainer,"change");this.removeHandler(this.listBoxContainer,"bindingComplete");this.removeHandler(this.dropdownlistWrapper,"selectstart");this.removeHandler(this.dropdownlistWrapper,"mousedown");this.removeHandler(this.host,"keydown");this.removeHandler(this.listBoxContainer,"select");this.removeHandler(this.listBox.content,"click");this.removeHandlers();this.removeHandler(this.input,"keyup.textchange");this.listBoxContainer.jqxListBox("destroy");this.listBoxContainer.remove();this.host.removeClass();this.removeHandler(a(document),"mousedown."+this.id,this.closeOpenedListBox);if(this.touch){this.removeHandler(a(document),a.jqx.mobile.getTouchEventName("touchstart")+"."+this.id)}this.cinput.remove();delete this.cinput;this.dropdownlistArrow.remove();delete this.dropdownlistArrow;this.dropdownlistArrowIcon.remove();delete this.dropdownlistArrowIcon;delete this.dropdownlistWrapper;delete this.listBoxContainer;delete this.input;delete this.dropdownlistContent;delete this.comboStructure;this.container.remove();delete this.listBox;delete this.container;var b=a.data(this.element,"jqxComboBox");if(b){delete b.instance}this.host.removeData();this.host.remove();delete this.host;delete this.set;delete this.get;delete this.call;delete this.element},_raiseEvent:function(g,c){if(c==undefined){c={owner:null}}var d=this.events[g];var e=c;e.owner=this;var f=new a.Event(d);f.owner=this;if(g==2||g==3||g==4||g==5||g==6||g==7||g==8||g==9){f.args=c}var b=this.host.trigger(f);return b},propertiesChangedHandler:function(b,c,e){if(e.width&&e.height&&Object.keys(e).length==2){b._setSize();if(c=="width"){if(b.dropDownWidth=="auto"){var d=b.host.width();b.listBoxContainer.jqxListBox({width:d});b.container.width(parseInt(d)+25)}}b._arrange();b.close()}},propertyChangedHandler:function(e,k,c,j){if(e.isInitialized==undefined||e.isInitialized==false){return}if(e.batchUpdate&&e.batchUpdate.width&&e.batchUpdate.height&&Object.keys(e.batchUpdate).length==2){return}if(k=="template"){e.listBoxContainer.removeClass(e.toThemeProperty("jqx-"+c+"-item"));e.listBoxContainer.addClass(e.toThemeProperty("jqx-"+e.template+"-item"));e.dropDownListArrow.removeClass(e.toThemeProperty("jqx-"+c+""));e.dropDownListArrow.addClass(e.toThemeProperty("jqx-"+e.template+""));var g=this;g.bar.removeClass(g.toThemeProperty("jqx-"+c));g.label.removeClass(g.toThemeProperty("jqx-"+c));g.bar.addClass(g.toThemeProperty("jqx-"+g.template));g.label.addClass(g.toThemeProperty("jqx-"+g.template))}if(k=="dropDownVerticalAlignment"){e.close();e.dropdownlistArrowIcon.removeClass(e.toThemeProperty("jqx-icon-arrow-up"));e.dropdownlistArrowIcon.removeClass(e.toThemeProperty("jqx-icon-arrow-down"));if(e.dropDownVerticalAlignment=="top"){e.dropdownlistArrowIcon.addClass(e.toThemeProperty("jqx-icon-arrow-up"))}else{e.dropdownlistArrowIcon.addClass(e.toThemeProperty("jqx-icon-arrow-down"))}e.listBoxContainer.css("top",0);e.listBoxContainer.removeClass(this.toThemeProperty("jqx-popup-up"))}if(k=="autoItemsHeight"){e.listBoxContainer.jqxListBox({autoItemsHeight:j})}if(k=="itemHeight"){e.listBoxContainer.jqxListBox({itemHeight:j})}if(k=="renderSelectedItem"){e.renderSelection("mouse")}if(k=="renderer"){e.listBoxContainer.jqxListBox({renderer:j})}if(k=="enableSelection"){e.listBoxContainer.jqxListBox({enableSelection:j})}if(k=="enableHover"){e.listBoxContainer.jqxListBox({enableHover:j})}if(k==="touchMode"){e.listBoxContainer.jqxListBox({touchMode:j});e.touch=a.jqx.mobile.isTouchDevice();if(e.touchMode===true){e.touch=true}e._updateHandlers()}if(k=="multiSelect"){if(j){e.doMultiSelect(false)}else{var h=e.listBox.items;var d=-1;for(var f=0;f<h.length;f++){h[f].disabled=false;if(e.selectedItems.indexOf(h[f].value)>=0||e._disabledItems.indexOf(e.value)>=0){h[f].disabled=true;d=h[f].index}}e.doMultiSelect(false);e.listBox._renderItems();if(!h){return}e.listBox.selectedIndex=d;e.renderSelection("mouse");e.dropdownlistWrapper.parent().css("height","100%");e.dropdownlistContent.css("height","100");e.dropdownlistWrapper.css("height","100");e.dropdownlistContent.css("position","relative");e.host.css("min-height",null);e._setSize();e._arrange()}}if(k=="showArrow"){e._arrange();if(e.multiSelect){e.doMultiSelect(false)}}if(k=="placeHolder"){if(e.isMaterialized()){e.label.innerHTML=e.placeHolder}else{e.input.attr("placeholder",e.placeHolder)}}if(k=="popupZIndex"){e.listBoxContainer.css({zIndex:e.popupZIndex})}if(k=="promptText"){e.placeHolder=j}if(k=="autoOpen"){e._updateHandlers()}if(k=="renderer"){e.listBox.renderer=e.renderer}if(k=="itemHeight"){e.listBox.itemHeight=j}if(k=="source"){e.input.val("");e.listBoxContainer.jqxListBox({source:e.source});e.renderSelection("mouse");if(e.source==null){e.clearSelection()}if(e.multiSelect){e.selectedItems=new Array();e._selectedItems=new Array();e.doMultiSelect(false)}}if(k=="rtl"){if(j){e.dropdownlistArrow.css("float","left");e.dropdownlistContent.css("float","right")}else{e.dropdownlistArrow.css("float","right");e.dropdownlistContent.css("float","left")}e.listBoxContainer.jqxListBox({rtl:e.rtl})}if(k=="displayMember"||k=="valueMember"){e.listBoxContainer.jqxListBox({displayMember:e.displayMember,valueMember:e.valueMember});e.renderSelection("mouse")}if(k=="autoDropDownHeight"){e.listBoxContainer.jqxListBox({autoHeight:e.autoDropDownHeight});if(e.autoDropDownHeight){e.container.height(e.listBoxContainer.height()+25)}else{e.listBoxContainer.jqxListBox({height:e.dropDownHeight});e.container.height(parseInt(e.dropDownHeight)+25)}e.listBox._arrange();e.listBox._updatescrollbars()}if(k=="dropDownHeight"){if(!e.autoDropDownHeight){e.listBoxContainer.jqxListBox({height:e.dropDownHeight});e.container.height(parseInt(e.dropDownHeight)+25)}}if(k=="dropDownWidth"||k=="scrollBarSize"){var b=e.width;if(e.dropDownWidth!="auto"){b=e.dropDownWidth}e.listBoxContainer.jqxListBox({width:b,scrollBarSize:e.scrollBarSize});e.container.width(parseInt(b)+25)}if(k=="autoComplete"){e._resetautocomplete()}if(k=="checkboxes"){e.listBoxContainer.jqxListBox({checkboxes:e.checkboxes});if(e.checkboxes){e.input.attr("readonly",true);a.jqx.aria(e,"aria-readonly",true)}else{a.jqx.aria(e,"aria-readonly",false)}}if(k=="theme"&&j!=null){e.listBoxContainer.jqxListBox({theme:j});e.listBoxContainer.addClass(e.toThemeProperty("jqx-popup"));if(a.jqx.browser.msie){e.listBoxContainer.addClass(e.toThemeProperty("jqx-noshadow"))}a.jqx.utilities.setTheme(c,j,e.host)}if(k=="rtl"){e.render();e.refresh()}if(k=="width"||k=="height"){e._setSize();if(k=="width"){if(e.dropDownWidth=="auto"){var b=e.host.width();e.listBoxContainer.jqxListBox({width:b});e.container.width(parseInt(b)+25)}}e._arrange();e.close()}if(k=="selectedIndex"){e.listBox.selectIndex(j);e.renderSelection("mouse")}}})})(jqxBaseFramework)})();
/***/ }),
/***/ 7944:
/***/ ((module, exports, __webpack_require__) => {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof document==="undefined"){return}var a=document.all&&!document.addEventListener;if(!a){(function(bf,I){var s,ap,am=bf.document,bq=bf.location,bv=bf.navigator,az=bf.JQXLite,Z=bf.$,aT=Array.prototype.push,aF=Array.prototype.slice,aC=Array.prototype.indexOf,A=Object.prototype.toString,d=Object.prototype.hasOwnProperty,ay=String.prototype.trim,E=function(bw,bx){return new E.fn.init(bw,bx,s)},aG=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,av=/\S/,ba=/\s+/,U=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,aH=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,g=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,l=/^[\],:{}\s]*$/,v=/(?:^|:|,)(?:\s*\[)+/g,a7=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,M=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,aw=/^-ms-/,aU=/-([\da-z])/gi,o=function(bw,bx){return(bx+"").toUpperCase()},a6=function(){if(am.addEventListener){am.removeEventListener("DOMContentLoaded",a6,false);E.ready()}else{if(am.readyState==="complete"){am.detachEvent("onreadystatechange",a6);E.ready()}}},a2={};E.fn=E.prototype={constructor:E,init:function(bw,bz,bA){var by,bB,bx,bC;if(!bw){return this}if(bw.nodeType){this.context=this[0]=bw;this.length=1;return this}if(typeof bw==="string"){if(bw.charAt(0)==="<"&&bw.charAt(bw.length-1)===">"&&bw.length>=3){by=[null,bw,null]}else{by=aH.exec(bw)}if(by&&(by[1]||!bz)){if(by[1]){bz=bz instanceof E?bz[0]:bz;bC=(bz&&bz.nodeType?bz.ownerDocument||bz:am);bw=E.parseHTML(by[1],bC,true);if(g.test(by[1])&&E.isPlainObject(bz)){this.attr.call(bw,bz,true)}return E.merge(this,bw)}else{bB=am.getElementById(by[2]);if(bB&&bB.parentNode){if(bB.id!==by[2]){return bA.find(bw)}this.length=1;this[0]=bB}this.context=am;this.selector=bw;return this}}else{if(!bz||bz.jqx){return(bz||bA).find(bw)}else{return this.constructor(bz).find(bw)}}}else{if(E.isFunction(bw)){return bA.ready(bw)}}if(bw.selector!==I){this.selector=bw.selector;this.context=bw.context}return E.makeArray(bw,this)},selector:"",jqx:"4.5.0",length:0,size:function(){return this.length},toArray:function(){return aF.call(this)},get:function(bw){return bw==null?this.toArray():(bw<0?this[this.length+bw]:this[bw])},pushStack:function(bx,bz,bw){var by=E.merge(this.constructor(),bx);by.prevObject=this;by.context=this.context;if(bz==="find"){by.selector=this.selector+(this.selector?" ":"")+bw}else{if(bz){by.selector=this.selector+"."+bz+"("+bw+")"}}return by},each:function(bx,bw){return E.each(this,bx,bw)},ready:function(bw){E.ready.promise().done(bw);return this},eq:function(bw){bw=+bw;return bw===-1?this.slice(bw):this.slice(bw,bw+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(aF.apply(this,arguments),"slice",aF.call(arguments).join(","))},map:function(bw){return this.pushStack(E.map(this,function(by,bx){return bw.call(by,bx,by)}))},end:function(){return this.prevObject||this.constructor(null)},push:aT,sort:[].sort,splice:[].splice};E.fn.init.prototype=E.fn;E.extend=E.fn.extend=function(){var bF,by,bw,bx,bC,bD,bB=arguments[0]||{},bA=1,bz=arguments.length,bE=false;if(typeof bB==="boolean"){bE=bB;bB=arguments[1]||{};bA=2}if(typeof bB!=="object"&&!E.isFunction(bB)){bB={}}if(bz===bA){bB=this;--bA}for(;bA<bz;bA++){if((bF=arguments[bA])!=null){for(by in bF){bw=bB[by];bx=bF[by];if(bB===bx){continue}if(bE&&bx&&(E.isPlainObject(bx)||(bC=E.isArray(bx)))){if(bC){bC=false;bD=bw&&E.isArray(bw)?bw:[]}else{bD=bw&&E.isPlainObject(bw)?bw:{}}bB[by]=E.extend(bE,bD,bx)}else{if(bx!==I){bB[by]=bx}}}}}return bB};E.extend({noConflict:function(bw){if(bf.$===E){bf.$=Z}if(bw&&bf.JQXLite===E){bf.JQXLite=az}return E},isReady:false,readyWait:1,holdReady:function(bw){if(bw){E.readyWait++}else{E.ready(true)}},ready:function(bw){if(bw===true?--E.readyWait:E.isReady){return}if(!am.body){return setTimeout(E.ready,1)}E.isReady=true;if(bw!==true&&--E.readyWait>0){return}ap.resolveWith(am,[E]);if(E.fn.trigger){E(am).trigger("ready").off("ready")}},isFunction:function(bw){return E.type(bw)==="function"},isArray:Array.isArray||function(bw){return E.type(bw)==="array"},isWindow:function(bw){return bw!=null&&bw==bw.window},isNumeric:function(bw){return !isNaN(parseFloat(bw))&&isFinite(bw)},type:function(bw){return bw==null?String(bw):a2[A.call(bw)]||"object"},isPlainObject:function(by){if(!by||E.type(by)!=="object"||by.nodeType||E.isWindow(by)){return false}try{if(by.constructor&&!d.call(by,"constructor")&&!d.call(by.constructor.prototype,"isPrototypeOf")){return false}}catch(bx){return false}var bw;for(bw in by){}return bw===I||d.call(by,bw)},isEmptyObject:function(bx){var bw;for(bw in bx){return false}return true},error:function(bw){throw new Error(bw)},parseHTML:function(bz,by,bw){var bx;if(!bz||typeof bz!=="string"){return null}if(typeof by==="boolean"){bw=by;by=0}by=by||am;if((bx=g.exec(bz))){return[by.createElement(bx[1])]}bx=E.buildFragment([bz],by,bw?null:[]);return E.merge([],(bx.cacheable?E.clone(bx.fragment):bx.fragment).childNodes)},parseJSON:function(bw){if(!bw||typeof bw!=="string"){return null}bw=E.trim(bw);if(bf.JSON&&bf.JSON.parse){return bf.JSON.parse(bw)}if(l.test(bw.replace(a7,"@").replace(M,"]").replace(v,""))){return(new Function("return "+bw))()}E.error("Invalid JSON: "+bw)},parseXML:function(by){var bw,bx;if(!by||typeof by!=="string"){return null}try{if(bf.DOMParser){bx=new DOMParser();bw=bx.parseFromString(by,"text/xml")}else{bw=new ActiveXObject("Microsoft.XMLDOM");bw.async="false";bw.loadXML(by)}}catch(bz){bw=I}if(!bw||!bw.documentElement||bw.getElementsByTagName("parsererror").length){E.error("Invalid XML: "+by)}return bw},noop:function(){},globalEval:function(bw){if(bw&&av.test(bw)){(bf.execScript||function(bx){bf["eval"].call(bf,bx)})(bw)}},camelCase:function(bw){return bw.replace(aw,"ms-").replace(aU,o)},nodeName:function(bx,bw){return bx.nodeName&&bx.nodeName.toLowerCase()===bw.toLowerCase()},each:function(bB,bC,by){var bx,bz=0,bA=bB.length,bw=bA===I||E.isFunction(bB);if(by){if(bw){for(bx in bB){if(bC.apply(bB[bx],by)===false){break}}}else{for(;bz<bA;){if(bC.apply(bB[bz++],by)===false){break}}}}else{if(bw){for(bx in bB){if(bC.call(bB[bx],bx,bB[bx])===false){break}}}else{for(;bz<bA;){if(bC.call(bB[bz],bz,bB[bz++])===false){break}}}}return bB},trim:ay&&!ay.call("\uFEFF\xA0")?function(bw){return bw==null?"":ay.call(bw)}:function(bw){return bw==null?"":(bw+"").replace(U,"")},makeArray:function(bw,by){var bz,bx=by||[];if(bw!=null){bz=E.type(bw);if(bw.length==null||bz==="string"||bz==="function"||bz==="regexp"||E.isWindow(bw)){aT.call(bx,bw)}else{E.merge(bx,bw)}}return bx},inArray:function(bz,bx,by){var bw;if(bx){if(aC){return aC.call(bx,bz,by)}bw=bx.length;by=by?by<0?Math.max(0,bw+by):by:0;for(;by<bw;by++){if(by in bx&&bx[by]===bz){return by}}}return -1},merge:function(bA,by){var bw=by.length,bz=bA.length,bx=0;if(typeof bw==="number"){for(;bx<bw;bx++){bA[bz++]=by[bx]}}else{while(by[bx]!==I){bA[bz++]=by[bx++]}}bA.length=bz;return bA},grep:function(bx,bC,bw){var bB,by=[],bz=0,bA=bx.length;bw=!!bw;for(;bz<bA;bz++){bB=!!bC(bx[bz],bz);if(bw!==bB){by.push(bx[bz])}}return by},map:function(bw,bD,bE){var bB,bC,bA=[],by=0,bx=bw.length,bz=bw instanceof E||bx!==I&&typeof bx==="number"&&((bx>0&&bw[0]&&bw[bx-1])||bx===0||E.isArray(bw));if(bz){for(;by<bx;by++){bB=bD(bw[by],by,bE);if(bB!=null){bA[bA.length]=bB}}}else{for(bC in bw){bB=bD(bw[bC],bC,bE);if(bB!=null){bA[bA.length]=bB}}}return bA.concat.apply([],bA)},guid:1,proxy:function(bA,bz){var by,bw,bx;if(typeof bz==="string"){by=bA[bz];bz=bA;bA=by}if(!E.isFunction(bA)){return I}bw=aF.call(arguments,2);bx=function(){return bA.apply(bz,bw.concat(aF.call(arguments)))};bx.guid=bA.guid=bA.guid||E.guid++;return bx},access:function(bw,bC,bF,bD,bA,bG,bE){var by,bB=bF==null,bz=0,bx=bw.length;if(bF&&typeof bF==="object"){for(bz in bF){E.access(bw,bC,bz,bF[bz],1,bG,bD)}bA=1}else{if(bD!==I){by=bE===I&&E.isFunction(bD);if(bB){if(by){by=bC;bC=function(bI,bH,bJ){return by.call(E(bI),bJ)}}else{bC.call(bw,bD);bC=null}}if(bC){for(;bz<bx;bz++){bC(bw[bz],bF,by?bD.call(bw[bz],bz,bC(bw[bz],bF)):bD,bE)}}bA=1}}return bA?bw:bB?bC.call(bw):bx?bC(bw[0],bF):bG},now:function(){return(new Date()).getTime()}});E.ready.promise=function(bz){if(!ap){ap=E.Deferred();if(am.readyState==="complete"){setTimeout(E.ready,1)}else{if(am.addEventListener){am.addEventListener("DOMContentLoaded",a6,false);bf.addEventListener("load",E.ready,false)}else{am.attachEvent("onreadystatechange",a6);bf.attachEvent("onload",E.ready);var by=false;try{by=bf.frameElement==null&&am.documentElement}catch(bx){}if(by&&by.doScroll){(function bw(){if(!E.isReady){try{by.doScroll("left")}catch(bA){return setTimeout(bw,50)}E.ready()}})()}}}}return ap.promise(bz)};E.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bx,bw){a2["[object "+bw+"]"]=bw.toLowerCase()});s=E(am);var aZ={};function D(bx){var bw=aZ[bx]={};E.each(bx.split(ba),function(bz,by){bw[by]=true});return bw}E.Callbacks=function(bG){bG=typeof bG==="string"?(aZ[bG]||D(bG)):E.extend({},bG);var bz,bw,bA,by,bB,bC,bD=[],bE=!bG.once&&[],bx=function(bH){bz=bG.memory&&bH;bw=true;bC=by||0;by=0;bB=bD.length;bA=true;for(;bD&&bC<bB;bC++){if(bD[bC].apply(bH[0],bH[1])===false&&bG.stopOnFalse){bz=false;break}}bA=false;if(bD){if(bE){if(bE.length){bx(bE.shift())}}else{if(bz){bD=[]}else{bF.disable()}}}},bF={add:function(){if(bD){var bI=bD.length;(function bH(bJ){E.each(bJ,function(bL,bK){var bM=E.type(bK);if(bM==="function"){if(!bG.unique||!bF.has(bK)){bD.push(bK)}}else{if(bK&&bK.length&&bM!=="string"){bH(bK)}}})})(arguments);if(bA){bB=bD.length}else{if(bz){by=bI;bx(bz)}}}return this},remove:function(){if(bD){E.each(arguments,function(bJ,bH){var bI;while((bI=E.inArray(bH,bD,bI))>-1){bD.splice(bI,1);if(bA){if(bI<=bB){bB--}if(bI<=bC){bC--}}}})}return this},has:function(bH){return E.inArray(bH,bD)>-1},empty:function(){bD=[];return this},disable:function(){bD=bE=bz=I;return this},disabled:function(){return !bD},lock:function(){bE=I;if(!bz){bF.disable()}return this},locked:function(){return !bE},fireWith:function(bI,bH){bH=bH||[];bH=[bI,bH.slice?bH.slice():bH];if(bD&&(!bw||bE)){if(bA){bE.push(bH)}else{bx(bH)}}return this},fire:function(){bF.fireWith(this,arguments);return this},fired:function(){return !!bw}};return bF};E.extend({Deferred:function(by){var bx=[["resolve","done",E.Callbacks("once memory"),"resolved"],["reject","fail",E.Callbacks("once memory"),"rejected"],["notify","progress",E.Callbacks("memory")]],bz="pending",bA={state:function(){return bz},always:function(){bw.done(arguments).fail(arguments);return this},then:function(){var bB=arguments;return E.Deferred(function(bC){E.each(bx,function(bE,bD){var bG=bD[0],bF=bB[bE];bw[bD[1]](E.isFunction(bF)?function(){var bH=bF.apply(this,arguments);if(bH&&E.isFunction(bH.promise)){bH.promise().done(bC.resolve).fail(bC.reject).progress(bC.notify)}else{bC[bG+"With"](this===bw?bC:this,[bH])}}:bC[bG])});bB=null}).promise()},promise:function(bB){return bB!=null?E.extend(bB,bA):bA}},bw={};bA.pipe=bA.then;E.each(bx,function(bC,bB){var bE=bB[2],bD=bB[3];bA[bB[1]]=bE.add;if(bD){bE.add(function(){bz=bD},bx[bC^1][2].disable,bx[2][2].lock)}bw[bB[0]]=bE.fire;bw[bB[0]+"With"]=bE.fireWith});bA.promise(bw);if(by){by.call(bw,bw)}return bw},when:function(bA){var by=0,bC=aF.call(arguments),bw=bC.length,bx=bw!==1||(bA&&E.isFunction(bA.promise))?bw:0,bF=bx===1?bA:E.Deferred(),bz=function(bH,bI,bG){return function(bJ){bI[bH]=this;bG[bH]=arguments.length>1?aF.call(arguments):bJ;if(bG===bE){bF.notifyWith(bI,bG)}else{if(!(--bx)){bF.resolveWith(bI,bG)}}}},bE,bB,bD;if(bw>1){bE=new Array(bw);bB=new Array(bw);bD=new Array(bw);for(;by<bw;by++){if(bC[by]&&E.isFunction(bC[by].promise)){bC[by].promise().done(bz(by,bD,bC)).fail(bF.reject).progress(bz(by,bB,bE))}else{--bx}}}if(!bx){bF.resolveWith(bD,bC)}return bF.promise()}});E.support=(function(){var bI,bH,bF,bG,bz,bE,bD,bB,bA,by,bw,bx=am.createElement("div");bx.setAttribute("className","t");bx.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";bH=bx.getElementsByTagName("*");bF=bx.getElementsByTagName("a")[0];if(!bH||!bF||!bH.length){return{}}bG=am.createElement("select");bz=bG.appendChild(am.createElement("option"));bE=bx.getElementsByTagName("input")[0];bF.style.cssText="top:1px;float:left;opacity:.5";bI={leadingWhitespace:(bx.firstChild.nodeType===3),tbody:!bx.getElementsByTagName("tbody").length,htmlSerialize:!!bx.getElementsByTagName("link").length,style:/top/.test(bF.getAttribute("style")),hrefNormalized:(bF.getAttribute("href")==="/a"),opacity:/^0.5/.test(bF.style.opacity),cssFloat:!!bF.style.cssFloat,checkOn:(bE.value==="on"),optSelected:bz.selected,getSetAttribute:bx.className!=="t",enctype:!!am.createElement("form").enctype,html5Clone:am.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",boxModel:(am.compatMode==="CSS1Compat"),submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,boxSizingReliable:true,pixelPosition:false};bE.checked=true;bI.noCloneChecked=bE.cloneNode(true).checked;bG.disabled=true;bI.optDisabled=!bz.disabled;try{delete bx.test}catch(bC){bI.deleteExpando=false}if(!bx.addEventListener&&bx.attachEvent&&bx.fireEvent){bx.attachEvent("onclick",bw=function(){bI.noCloneEvent=false});bx.cloneNode(true).fireEvent("onclick");bx.detachEvent("onclick",bw)}bE=am.createElement("input");bE.value="t";bE.setAttribute("type","radio");bI.radioValue=bE.value==="t";bE.setAttribute("checked","checked");bE.setAttribute("name","t");bx.appendChild(bE);bD=am.createDocumentFragment();bD.appendChild(bx.lastChild);bI.checkClone=bD.cloneNode(true).cloneNode(true).lastChild.checked;bI.appendChecked=bE.checked;bD.removeChild(bE);bD.appendChild(bx);if(bx.attachEvent){for(bA in {submit:true,change:true,focusin:true}){bB="on"+bA;by=(bB in bx);if(!by){bx.setAttribute(bB,"return;");by=(typeof bx[bB]==="function")}bI[bA+"Bubbles"]=by}}E(function(){var bK,bO,bM,bN,bL="padding:0;margin:0;border:0;display:block;overflow:hidden;",bJ=am.getElementsByTagName("body")[0];if(!bJ){return}bK=am.createElement("div");bK.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";bJ.insertBefore(bK,bJ.firstChild);bO=am.createElement("div");bK.appendChild(bO);bO.innerHTML="<table><tr><td></td><td>t</td></tr></table>";bM=bO.getElementsByTagName("td");bM[0].style.cssText="padding:0;margin:0;border:0;display:none";by=(bM[0].offsetHeight===0);bM[0].style.display="";bM[1].style.display="none";bI.reliableHiddenOffsets=by&&(bM[0].offsetHeight===0);bO.innerHTML="";bO.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";bI.boxSizing=(bO.offsetWidth===4);bI.doesNotIncludeMarginInBodyOffset=(bJ.offsetTop!==1);if(bf.getComputedStyle){bI.pixelPosition=(bf.getComputedStyle(bO,null)||{}).top!=="1%";bI.boxSizingReliable=(bf.getComputedStyle(bO,null)||{width:"4px"}).width==="4px";bN=am.createElement("div");bN.style.cssText=bO.style.cssText=bL;bN.style.marginRight=bN.style.width="0";bO.style.width="1px";bO.appendChild(bN);bI.reliableMarginRight=!parseFloat((bf.getComputedStyle(bN,null)||{}).marginRight)}if(typeof bO.style.zoom!=="undefined"){bO.innerHTML="";bO.style.cssText=bL+"width:1px;padding:1px;display:inline;zoom:1";bI.inlineBlockNeedsLayout=(bO.offsetWidth===3);bO.style.display="block";bO.style.overflow="visible";bO.innerHTML="<div></div>";bO.firstChild.style.width="5px";bI.shrinkWrapBlocks=(bO.offsetWidth!==3);bK.style.zoom=1}bJ.removeChild(bK);bK=bO=bM=bN=null});bD.removeChild(bx);bH=bF=bG=bz=bE=bD=bx=null;return bI})();var aM=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,at=/([A-Z])/g;E.extend({cache:{},deletedIds:[],uuid:0,expando:"JQXLite"+(E.fn.jqx+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(bw){bw=bw.nodeType?E.cache[bw[E.expando]]:bw[E.expando];return !!bw&&!O(bw)},data:function(bz,bx,bB,bA){if(!E.acceptData(bz)){return}var bC,bE,bF=E.expando,bD=typeof bx==="string",bG=bz.nodeType,bw=bG?E.cache:bz,by=bG?bz[bF]:bz[bF]&&bF;if((!by||!bw[by]||(!bA&&!bw[by].data))&&bD&&bB===I){return}if(!by){if(bG){bz[bF]=by=E.deletedIds.pop()||E.guid++}else{by=bF}}if(!bw[by]){bw[by]={};if(!bG){bw[by].toJSON=E.noop}}if(typeof bx==="object"||typeof bx==="function"){if(bA){bw[by]=E.extend(bw[by],bx)}else{bw[by].data=E.extend(bw[by].data,bx)}}bC=bw[by];if(!bA){if(!bC.data){bC.data={}}bC=bC.data}if(bB!==I){bC[E.camelCase(bx)]=bB}if(bD){bE=bC[bx];if(bE==null){bE=bC[E.camelCase(bx)]}}else{bE=bC}return bE},removeData:function(bz,bx,bA){if(!E.acceptData(bz)){return}var bD,bC,bB,bE=bz.nodeType,bw=bE?E.cache:bz,by=bE?bz[E.expando]:E.expando;if(!bw[by]){return}if(bx){bD=bA?bw[by]:bw[by].data;if(bD){if(!E.isArray(bx)){if(bx in bD){bx=[bx]}else{bx=E.camelCase(bx);if(bx in bD){bx=[bx]}else{bx=bx.split(" ")}}}for(bC=0,bB=bx.length;bC<bB;bC++){delete bD[bx[bC]]}if(!(bA?O:E.isEmptyObject)(bD)){return}}}if(!bA){delete bw[by].data;if(!O(bw[by])){return}}if(bE){E.cleanData([bz],true)}else{if(E.support.deleteExpando||bw!=bw.window){delete bw[by]}else{bw[by]=null}}},_data:function(bx,bw,by){return E.data(bx,bw,by,true)},acceptData:function(bx){var bw=bx.nodeName&&E.noData[bx.nodeName.toLowerCase()];return !bw||bw!==true&&bx.getAttribute("classid")===bw}});E.fn.extend({data:function(bF,bE){var bA,bx,bD,bw,bz,by=this[0],bC=0,bB=null;if(bF===I){if(this.length){bB=E.data(by);if(by.nodeType===1&&!E._data(by,"parsedAttrs")){bD=by.attributes;for(bz=bD.length;bC<bz;bC++){bw=bD[bC].name;if(!bw.indexOf("data-")){bw=E.camelCase(bw.substring(5));bb(by,bw,bB[bw])}}E._data(by,"parsedAttrs",true)}}return bB}if(typeof bF==="object"){return this.each(function(){E.data(this,bF)})}bA=bF.split(".",2);bA[1]=bA[1]?"."+bA[1]:"";bx=bA[1]+"!";return E.access(this,function(bG){if(bG===I){bB=this.triggerHandler("getData"+bx,[bA[0]]);if(bB===I&&by){bB=E.data(by,bF);bB=bb(by,bF,bB)}return bB===I&&bA[1]?this.data(bA[0]):bB}bA[1]=bG;this.each(function(){var bH=E(this);bH.triggerHandler("setData"+bx,bA);E.data(this,bF,bG);bH.triggerHandler("changeData"+bx,bA)})},null,bE,arguments.length>1,null,false)},removeData:function(bw){return this.each(function(){E.removeData(this,bw)})}});function bb(by,bx,bz){if(bz===I&&by.nodeType===1){var bw="data-"+bx.replace(at,"-$1").toLowerCase();bz=by.getAttribute(bw);if(typeof bz==="string"){try{bz=bz==="true"?true:bz==="false"?false:bz==="null"?null:+bz+""===bz?+bz:aM.test(bz)?E.parseJSON(bz):bz}catch(bA){}E.data(by,bx,bz)}else{bz=I}}return bz}function O(bx){var bw;for(bw in bx){if(bw==="data"&&E.isEmptyObject(bx[bw])){continue}if(bw!=="toJSON"){return false}}return true}E.extend({queue:function(by,bx,bz){var bw;if(by){bx=(bx||"fx")+"queue";bw=E._data(by,bx);if(bz){if(!bw||E.isArray(bz)){bw=E._data(by,bx,E.makeArray(bz))}else{bw.push(bz)}}return bw||[]}},dequeue:function(bB,bA){bA=bA||"fx";var bx=E.queue(bB,bA),bC=bx.length,bz=bx.shift(),bw=E._queueHooks(bB,bA),by=function(){E.dequeue(bB,bA)};if(bz==="inprogress"){bz=bx.shift();bC--}if(bz){if(bA==="fx"){bx.unshift("inprogress")}delete bw.stop;bz.call(bB,by,bw)}if(!bC&&bw){bw.empty.fire()}},_queueHooks:function(by,bx){var bw=bx+"queueHooks";return E._data(by,bw)||E._data(by,bw,{empty:E.Callbacks("once memory").add(function(){E.removeData(by,bx+"queue",true);E.removeData(by,bw,true)})})}});E.fn.extend({queue:function(bw,bx){var by=2;if(typeof bw!=="string"){bx=bw;bw="fx";by--}if(arguments.length<by){return E.queue(this[0],bw)}return bx===I?this:this.each(function(){var bz=E.queue(this,bw,bx);E._queueHooks(this,bw);if(bw==="fx"&&bz[0]!=="inprogress"){E.dequeue(this,bw)}})},dequeue:function(bw){return this.each(function(){E.dequeue(this,bw)})},delay:function(bx,bw){bx=E.fx?E.fx.speeds[bx]||bx:bx;bw=bw||"fx";return this.queue(bw,function(bz,by){var bA=setTimeout(bz,bx);by.stop=function(){clearTimeout(bA)}})},clearQueue:function(bw){return this.queue(bw||"fx",[])},promise:function(by,bC){var bx,bz=1,bD=E.Deferred(),bB=this,bw=this.length,bA=function(){if(!(--bz)){bD.resolveWith(bB,[bB])}};if(typeof by!=="string"){bC=by;by=I}by=by||"fx";while(bw--){bx=E._data(bB[bw],by+"queueHooks");if(bx&&bx.empty){bz++;bx.empty.add(bA)}}bA();return bD.promise(bC)}});var bj,aV,aA,aK=/[\t\r\n]/g,aR=/\r/g,f=/^(?:button|input)$/i,B=/^(?:button|input|object|select|textarea)$/i,j=/^a(?:rea|)$/i,ag=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,C=E.support.getSetAttribute;E.fn.extend({attr:function(bw,bx){return E.access(this,E.attr,bw,bx,arguments.length>1)},removeAttr:function(bw){return this.each(function(){E.removeAttr(this,bw)})},prop:function(bw,bx){return E.access(this,E.prop,bw,bx,arguments.length>1)},removeProp:function(bw){bw=E.propFix[bw]||bw;return this.each(function(){try{this[bw]=I;delete this[bw]}catch(bx){}})},addClass:function(bA){var bC,by,bx,bz,bB,bD,bw;if(E.isFunction(bA)){return this.each(function(bE){E(this).addClass(bA.call(this,bE,this.className))})}if(bA&&typeof bA==="string"){bC=bA.split(ba);for(by=0,bx=this.length;by<bx;by++){bz=this[by];if(bz.nodeType===1){if(!bz.className&&bC.length===1){bz.className=bA}else{bB=" "+bz.className+" ";for(bD=0,bw=bC.length;bD<bw;bD++){if(bB.indexOf(" "+bC[bD]+" ")<0){bB+=bC[bD]+" "}}bz.className=E.trim(bB)}}}}return this},removeClass:function(bC){var bz,bA,bB,bD,bx,by,bw;if(E.isFunction(bC)){return this.each(function(bE){E(this).removeClass(bC.call(this,bE,this.className))})}if((bC&&typeof bC==="string")||bC===I){bz=(bC||"").split(ba);for(by=0,bw=this.length;by<bw;by++){bB=this[by];if(bB.nodeType===1&&bB.className){bA=(" "+bB.className+" ").replace(aK," ");for(bD=0,bx=bz.length;bD<bx;bD++){while(bA.indexOf(" "+bz[bD]+" ")>=0){bA=bA.replace(" "+bz[bD]+" "," ")}}bB.className=bC?E.trim(bA):""}}}return this},toggleClass:function(bz,bx){var by=typeof bz,bw=typeof bx==="boolean";if(E.isFunction(bz)){return this.each(function(bA){E(this).toggleClass(bz.call(this,bA,this.className,bx),bx)})}return this.each(function(){if(by==="string"){var bC,bB=0,bA=E(this),bD=bx,bE=bz.split(ba);while((bC=bE[bB++])){bD=bw?bD:!bA.hasClass(bC);bA[bD?"addClass":"removeClass"](bC)}}else{if(by==="undefined"||by==="boolean"){if(this.className){E._data(this,"__className__",this.className)}this.className=this.className||bz===false?"":E._data(this,"__className__")||""}}})},hasClass:function(bw){var bz=" "+bw+" ",by=0,bx=this.length;for(;by<bx;by++){if(this[by].nodeType===1&&(" "+this[by].className+" ").replace(aK," ").indexOf(bz)>=0){return true}}return false},val:function(bz){var bw,bx,bA,by=this[0];if(!arguments.length){if(by){bw=E.valHooks[by.type]||E.valHooks[by.nodeName.toLowerCase()];if(bw&&"get" in bw&&(bx=bw.get(by,"value"))!==I){return bx}bx=by.value;return typeof bx==="string"?bx.replace(aR,""):bx==null?"":bx}return}bA=E.isFunction(bz);return this.each(function(bC){var bD,bB=E(this);if(this.nodeType!==1){return}if(bA){bD=bz.call(this,bC,bB.val())}else{bD=bz}if(bD==null){bD=""}else{if(typeof bD==="number"){bD+=""}else{if(E.isArray(bD)){bD=E.map(bD,function(bE){return bE==null?"":bE+""})}}}bw=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()];if(!bw||!("set" in bw)||bw.set(this,bD,"value")===I){this.value=bD}})}});E.extend({valHooks:{option:{get:function(bw){var bx=bw.attributes.value;return !bx||bx.specified?bw.value:bw.text}},select:{get:function(bw){var bC,by,bE=bw.options,bA=bw.selectedIndex,bz=bw.type==="select-one"||bA<0,bD=bz?null:[],bB=bz?bA+1:bE.length,bx=bA<0?bB:bz?bA:0;for(;bx<bB;bx++){by=bE[bx];if((by.selected||bx===bA)&&(E.support.optDisabled?!by.disabled:by.getAttribute("disabled")===null)&&(!by.parentNode.disabled||!E.nodeName(by.parentNode,"optgroup"))){bC=E(by).val();if(bz){return bC}bD.push(bC)}}return bD},set:function(bx,by){var bw=E.makeArray(by);E(bx).find("option").each(function(){this.selected=E.inArray(E(this).val(),bw)>=0});if(!bw.length){bx.selectedIndex=-1}return bw}}},attrFn:{},attr:function(bC,bz,bD,bB){var by,bw,bA,bx=bC.nodeType;if(!bC||bx===3||bx===8||bx===2){return}if(bB&&E.isFunction(E.fn[bz])){return E(bC)[bz](bD)}if(typeof bC.getAttribute==="undefined"){return E.prop(bC,bz,bD)}bA=bx!==1||!E.isXMLDoc(bC);if(bA){bz=bz.toLowerCase();bw=E.attrHooks[bz]||(ag.test(bz)?aV:bj)}if(bD!==I){if(bD===null){E.removeAttr(bC,bz);return}else{if(bw&&"set" in bw&&bA&&(by=bw.set(bC,bD,bz))!==I){return by}else{bC.setAttribute(bz,bD+"");return bD}}}else{if(bw&&"get" in bw&&bA&&(by=bw.get(bC,bz))!==null){return by}else{by=bC.getAttribute(bz);return by===null?I:by}}},removeAttr:function(bz,bB){var bA,bC,bx,bw,by=0;if(bB&&bz.nodeType===1){bC=bB.split(ba);for(;by<bC.length;by++){bx=bC[by];if(bx){bA=E.propFix[bx]||bx;bw=ag.test(bx);if(!bw){E.attr(bz,bx,"")}bz.removeAttribute(C?bx:bA);if(bw&&bA in bz){bz[bA]=false}}}}},attrHooks:{type:{set:function(bw,bx){if(f.test(bw.nodeName)&&bw.parentNode){E.error("type property can't be changed")}else{if(!E.support.radioValue&&bx==="radio"&&E.nodeName(bw,"input")){var by=bw.value;bw.setAttribute("type",bx);if(by){bw.value=by}return bx}}}},value:{get:function(bx,bw){if(bj&&E.nodeName(bx,"button")){return bj.get(bx,bw)}return bw in bx?bx.value:null},set:function(bx,by,bw){if(bj&&E.nodeName(bx,"button")){return bj.set(bx,by,bw)}bx.value=by}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(bB,bz,bC){var by,bw,bA,bx=bB.nodeType;if(!bB||bx===3||bx===8||bx===2){return}bA=bx!==1||!E.isXMLDoc(bB);if(bA){bz=E.propFix[bz]||bz;bw=E.propHooks[bz]}if(bC!==I){if(bw&&"set" in bw&&(by=bw.set(bB,bC,bz))!==I){return by}else{return(bB[bz]=bC)}}else{if(bw&&"get" in bw&&(by=bw.get(bB,bz))!==null){return by}else{return bB[bz]}}},propHooks:{tabIndex:{get:function(bx){var bw=bx.getAttributeNode("tabindex");return bw&&bw.specified?parseInt(bw.value,10):B.test(bx.nodeName)||j.test(bx.nodeName)&&bx.href?0:I}}}});aV={get:function(bx,bw){var bz,by=E.prop(bx,bw);return by===true||typeof by!=="boolean"&&(bz=bx.getAttributeNode(bw))&&bz.nodeValue!==false?bw.toLowerCase():I},set:function(bx,bz,bw){var by;if(bz===false){E.removeAttr(bx,bw)}else{by=E.propFix[bw]||bw;if(by in bx){bx[by]=true}bx.setAttribute(bw,bw.toLowerCase())}return bw}};if(!E.support.enctype){E.propFix.enctype="encoding"}var bh=/^(?:textarea|input|select)$/i,p=/^([^\.]*|)(?:\.(.+)|)$/,H=/(?:^|\s)hover(\.\S+|)\b/,aJ=/^key/,bk=/^(?:mouse|contextmenu)|click/,P=/^(?:focusinfocus|focusoutblur)$/,bu=function(bw){return E.event.special.hover?bw:bw.replace(H,"mouseenter$1 mouseleave$1")};E.event={add:function(bz,bD,bK,bB,bA){var bE,bC,bL,bJ,bI,bG,bw,bH,bx,by,bF;if(bz.nodeType===3||bz.nodeType===8||!bD||!bK||!(bE=E._data(bz))){return}if(bK.handler){bx=bK;bK=bx.handler;bA=bx.selector}if(!bK.guid){bK.guid=E.guid++}bL=bE.events;if(!bL){bE.events=bL={}}bC=bE.handle;if(!bC){bE.handle=bC=function(bM){return typeof E!=="undefined"&&(!bM||E.event.triggered!==bM.type)?E.event.dispatch.apply(bC.elem,arguments):I};bC.elem=bz}bD=E.trim(bu(bD)).split(" ");for(bJ=0;bJ<bD.length;bJ++){bI=p.exec(bD[bJ])||[];bG=bI[1];bw=(bI[2]||"").split(".").sort();bF=E.event.special[bG]||{};bG=(bA?bF.delegateType:bF.bindType)||bG;bF=E.event.special[bG]||{};bH=E.extend({type:bG,origType:bI[1],data:bB,handler:bK,guid:bK.guid,selector:bA,needsContext:bA&&E.expr.match.needsContext.test(bA),namespace:bw.join(".")},bx);by=bL[bG];if(!by){by=bL[bG]=[];by.delegateCount=0;if(!bF.setup||bF.setup.call(bz,bB,bw,bC)===false){if(bz.addEventListener){if(bB&&bB.passive!==I){bz.addEventListener(bG,bC,bB)}else{bz.addEventListener(bG,bC,false)}}else{if(bz.attachEvent){bz.attachEvent("on"+bG,bC)}}}}if(bF.add){bF.add.call(bz,bH);if(!bH.handler.guid){bH.handler.guid=bK.guid}}if(bA){by.splice(by.delegateCount++,0,bH)}else{by.push(bH)}E.event.global[bG]=true}bz=null},global:{},remove:function(bz,bE,bK,bA,bD){var bL,bM,bH,by,bx,bB,bC,bJ,bG,bw,bI,bF=E.hasData(bz)&&E._data(bz);if(!bF||!(bJ=bF.events)){return}bE=E.trim(bu(bE||"")).split(" ");for(bL=0;bL<bE.length;bL++){bM=p.exec(bE[bL])||[];bH=by=bM[1];bx=bM[2];if(!bH){for(bH in bJ){E.event.remove(bz,bH+bE[bL],bK,bA,true)}continue}bG=E.event.special[bH]||{};bH=(bA?bG.delegateType:bG.bindType)||bH;bw=bJ[bH]||[];bB=bw.length;bx=bx?new RegExp("(^|\\.)"+bx.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(bC=0;bC<bw.length;bC++){bI=bw[bC];if((bD||by===bI.origType)&&(!bK||bK.guid===bI.guid)&&(!bx||bx.test(bI.namespace))&&(!bA||bA===bI.selector||bA==="**"&&bI.selector)){bw.splice(bC--,1);if(bI.selector){bw.delegateCount--}if(bG.remove){bG.remove.call(bz,bI)}}}if(bw.length===0&&bB!==bw.length){if(!bG.teardown||bG.teardown.call(bz,bx,bF.handle)===false){E.removeEvent(bz,bH,bF.handle)}delete bJ[bH]}}if(E.isEmptyObject(bJ)){delete bF.handle;E.removeData(bz,"events",true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(bx,bE,bC,bL){if(bC&&(bC.nodeType===3||bC.nodeType===8)){return}var bw,bz,bF,bJ,bB,bA,bH,bG,bD,bK,bI=bx.type||bx,by=[];if(P.test(bI+E.event.triggered)){return}if(bI.indexOf("!")>=0){bI=bI.slice(0,-1);bz=true}if(bI.indexOf(".")>=0){by=bI.split(".");bI=by.shift();by.sort()}if((!bC||E.event.customEvent[bI])&&!E.event.global[bI]){return}bx=typeof bx==="object"?bx[E.expando]?bx:new E.Event(bI,bx):new E.Event(bI);bx.type=bI;bx.isTrigger=true;bx.exclusive=bz;bx.namespace=by.join(".");bx.namespace_re=bx.namespace?new RegExp("(^|\\.)"+by.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;bA=bI.indexOf(":")<0?"on"+bI:"";if(!bC){bw=E.cache;for(bF in bw){if(bw[bF].events&&bw[bF].events[bI]){E.event.trigger(bx,bE,bw[bF].handle.elem,true)}}return}bx.result=I;if(!bx.target){bx.target=bC}bE=bE!=null?E.makeArray(bE):[];bE.unshift(bx);bH=E.event.special[bI]||{};if(bH.trigger&&bH.trigger.apply(bC,bE)===false){return}bD=[[bC,bH.bindType||bI]];if(!bL&&!bH.noBubble&&!E.isWindow(bC)){bK=bH.delegateType||bI;bJ=P.test(bK+bI)?bC:bC.parentNode;for(bB=bC;bJ;bJ=bJ.parentNode){bD.push([bJ,bK]);bB=bJ}if(bB===(bC.ownerDocument||am)){bD.push([bB.defaultView||bB.parentWindow||bf,bK])}}for(bF=0;bF<bD.length&&!bx.isPropagationStopped();bF++){bJ=bD[bF][0];bx.type=bD[bF][1];bG=(E._data(bJ,"events")||{})[bx.type]&&E._data(bJ,"handle");if(bG){bG.apply(bJ,bE)}bG=bA&&bJ[bA];if(bG&&E.acceptData(bJ)&&bG.apply&&bG.apply(bJ,bE)===false){bx.preventDefault()}}bx.type=bI;if(!bL&&!bx.isDefaultPrevented()){if((!bH._default||bH._default.apply(bC.ownerDocument,bE)===false)&&!(bI==="click"&&E.nodeName(bC,"a"))&&E.acceptData(bC)){if(bA&&bC[bI]&&((bI!=="focus"&&bI!=="blur")||bx.target.offsetWidth!==0)&&!E.isWindow(bC)){bB=bC[bA];if(bB){bC[bA]=null}E.event.triggered=bI;bC[bI]();E.event.triggered=I;if(bB){bC[bA]=bB}}}}return bx.result},dispatch:function(bw){bw=E.event.fix(bw||bf.event);var bD,bC,bM,bG,bF,bx,bE,bK,bz,bL,bA=((E._data(this,"events")||{})[bw.type]||[]),bB=bA.delegateCount,bI=aF.call(arguments),by=!bw.exclusive&&!bw.namespace,bH=E.event.special[bw.type]||{},bJ=[];bI[0]=bw;bw.delegateTarget=this;if(bH.preDispatch&&bH.preDispatch.call(this,bw)===false){return}if(bB&&!(bw.button&&bw.type==="click")){for(bM=bw.target;bM!=this;bM=bM.parentNode||this){if(bM.disabled!==true||bw.type!=="click"){bF={};bE=[];for(bD=0;bD<bB;bD++){bK=bA[bD];bz=bK.selector;if(bF[bz]===I){bF[bz]=bK.needsContext?E(bz,this).index(bM)>=0:E.find(bz,this,null,[bM]).length}if(bF[bz]){bE.push(bK)}}if(bE.length){bJ.push({elem:bM,matches:bE})}}}}if(bA.length>bB){bJ.push({elem:this,matches:bA.slice(bB)})}for(bD=0;bD<bJ.length&&!bw.isPropagationStopped();bD++){bx=bJ[bD];bw.currentTarget=bx.elem;for(bC=0;bC<bx.matches.length&&!bw.isImmediatePropagationStopped();bC++){bK=bx.matches[bC];if(by||(!bw.namespace&&!bK.namespace)||bw.namespace_re&&bw.namespace_re.test(bK.namespace)){bw.data=bK.data;bw.handleObj=bK;bG=((E.event.special[bK.origType]||{}).handle||bK.handler).apply(bx.elem,bI);if(bG!==I){bw.result=bG;if(bG===false){bw.preventDefault();bw.stopPropagation()}}}}}if(bH.postDispatch){bH.postDispatch.call(this,bw)}return bw.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(bx,bw){if(bx.which==null){bx.which=bw.charCode!=null?bw.charCode:bw.keyCode}return bx}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(bz,by){var bA,bB,bw,bx=by.button,bC=by.fromElement;if(bz.pageX==null&&by.clientX!=null){bA=bz.target.ownerDocument||am;bB=bA.documentElement;bw=bA.body;bz.pageX=by.clientX+(bB&&bB.scrollLeft||bw&&bw.scrollLeft||0)-(bB&&bB.clientLeft||bw&&bw.clientLeft||0);bz.pageY=by.clientY+(bB&&bB.scrollTop||bw&&bw.scrollTop||0)-(bB&&bB.clientTop||bw&&bw.clientTop||0)}if(!bz.relatedTarget&&bC){bz.relatedTarget=bC===bz.target?by.toElement:bC}if(!bz.which&&bx!==I){bz.which=(bx&1?1:(bx&2?3:(bx&4?2:0)))}return bz}},fix:function(by){if(by[E.expando]){return by}var bx,bB,bw=by,bz=E.event.fixHooks[by.type]||{},bA=bz.props?this.props.concat(bz.props):this.props;by=E.Event(bw);for(bx=bA.length;bx;){bB=bA[--bx];by[bB]=bw[bB]}if(!by.target){by.target=bw.srcElement||am}if(by.target.nodeType===3){by.target=by.target.parentNode}by.metaKey=!!by.metaKey;return bz.filter?bz.filter(by,bw):by},special:{load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(by,bx,bw){if(E.isWindow(this)){this.onbeforeunload=bw}},teardown:function(bx,bw){if(this.onbeforeunload===bw){this.onbeforeunload=null}}}},simulate:function(bx,bz,by,bw){var bA=E.extend(new E.Event(),by,{type:bx,isSimulated:true,originalEvent:{}});if(bw){E.event.trigger(bA,null,bz)}else{E.event.dispatch.call(bz,bA)}if(bA.isDefaultPrevented()){by.preventDefault()}}};E.event.handle=E.event.dispatch;E.removeEvent=am.removeEventListener?function(bx,bw,by){if(bx.removeEventListener){bx.removeEventListener(bw,by,false)}}:function(by,bx,bz){var bw="on"+bx;if(by.detachEvent){if(typeof by[bw]==="undefined"){by[bw]=null}by.detachEvent(bw,bz)}};E.Event=function(bx,bw){if(!(this instanceof E.Event)){return new E.Event(bx,bw)}if(bx&&bx.type){this.originalEvent=bx;this.type=bx.type;this.isDefaultPrevented=(bx.defaultPrevented||bx.returnValue===false||bx.getPreventDefault&&bx.getPreventDefault())?h:bp}else{this.type=bx}if(bw){E.extend(this,bw)}this.timeStamp=bx&&bx.timeStamp||E.now();this[E.expando]=true};function bp(){return false}function h(){return true}E.Event.prototype={preventDefault:function(){this.isDefaultPrevented=h;var bw=this.originalEvent;if(!bw){return}if(bw.preventDefault){bw.preventDefault()}else{bw.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=h;var bw=this.originalEvent;if(!bw){return}if(bw.stopPropagation){bw.stopPropagation()}bw.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=h;this.stopPropagation()},isDefaultPrevented:bp,isPropagationStopped:bp,isImmediatePropagationStopped:bp};E.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bx,bw){E.event.special[bx]={delegateType:bw,bindType:bw,handle:function(bB){var bz,bD=this,bC=bB.relatedTarget,bA=bB.handleObj,by=bA.selector;if(!bC||(bC!==bD&&!E.contains(bD,bC))){bB.type=bA.origType;bz=bA.handler.apply(this,arguments);bB.type=bw}return bz}}});E.fn.extend({on:function(by,bw,bB,bA,bx){var bC,bz;if(typeof by==="object"){if(typeof bw!=="string"){bB=bB||bw;bw=I}for(bz in by){this.on(bz,bw,bB,by[bz],bx)}return this}if(bB==null&&bA==null){bA=bw;bB=bw=I}else{if(bA==null){if(typeof bw==="string"){bA=bB;bB=I}else{bA=bB;bB=bw;bw=I}}}if(bA===false){bA=bp}else{if(!bA){return this}}if(bx===1){bC=bA;bA=function(bD){E().off(bD);return bC.apply(this,arguments)};bA.guid=bC.guid||(bC.guid=E.guid++)}return this.each(function(){E.event.add(this,by,bA,bB,bw)})},off:function(by,bw,bA){var bx,bz;if(by&&by.preventDefault&&by.handleObj){bx=by.handleObj;E(by.delegateTarget).off(bx.namespace?bx.origType+"."+bx.namespace:bx.origType,bx.selector,bx.handler);return this}if(typeof by==="object"){for(bz in by){this.off(bz,bw,by[bz])}return this}if(bw===false||typeof bw==="function"){bA=bw;bw=I}if(bA===false){bA=bp}return this.each(function(){E.event.remove(this,by,bA,bw)})},delegate:function(bw,bx,bz,by){return this.on(bx,bw,bz,by)},undelegate:function(bw,bx,by){return arguments.length===1?this.off(bw,"**"):this.off(bx,bw||"**",by)},trigger:function(bw,bx){return this.each(function(){E.event.trigger(bw,bx,this)})},triggerHandler:function(bw,bx){if(this[0]){return E.event.trigger(bw,bx,this[0],true)}},toggle:function(bz){var bx=arguments,bw=bz.guid||E.guid++,by=0,bA=function(bB){var bC=(E._data(this,"lastToggle"+bz.guid)||0)%by;E._data(this,"lastToggle"+bz.guid,bC+1);bB.preventDefault();return bx[bC].apply(this,arguments)||false};bA.guid=bw;while(by<bx.length){bx[by++].guid=bw}return this.click(bA)},hover:function(bw,bx){return this.mouseenter(bw).mouseleave(bx||bw)}});E.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "),function(bx,bw){E.fn[bw]=function(bz,by){if(by==null){by=bz;bz=null}return arguments.length>0?this.on(bw,null,bz,by):this.trigger(bw)};if(aJ.test(bw)){E.event.fixHooks[bw]=E.event.keyHooks}if(bk.test(bw)){E.event.fixHooks[bw]=E.event.mouseHooks}});
/*!
* Sizzle CSS Selector Engine
* Copyright 2012 JQXLite Foundation and other contributors
* Released under the MIT license
* http://sizzlejs.com/
*/
(function(cp,bO){var cu,bH,ci,bx,bT,b7,bK,bN,bJ,cg,bG=true,b1="undefined",cw=("sizcache"+Math.random()).replace(".",""),bB=String,bF=cp.document,bI=bF.documentElement,bY=0,bM=0,cb=[].pop,ct=[].push,bS=[].slice,bV=[].indexOf||function(cG){var cF=0,cE=this.length;for(;cF<cE;cF++){if(this[cF]===cG){return cF}}return -1},cy=function(cE,cF){cE[cw]=cF==null||cF;return cE},cC=function(){var cE={},cF=[];return cy(function(cG,cH){if(cF.push(cG)>ci.cacheLength){delete cE[cF.shift()]}return(cE[cG+" "]=cH)},cE)},cr=cC(),cs=cC(),bU=cC(),b5="[\\x20\\t\\r\\n\\f]",bR="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",bP=bR.replace("w","w#"),cB="([*^$|!~]?=)",cm="\\["+b5+"*("+bR+")"+b5+"*(?:"+cB+b5+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+bP+")|)|)"+b5+"*\\]",cD=":("+bR+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+cm+")|[^:]|\\\\.)*|.*))\\)|)",b6=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+b5+"*((?:-\\d)?\\d*)"+b5+"*\\)|)(?=[^-]|$)",cq=new RegExp("^"+b5+"+|((?:^|[^\\\\])(?:\\\\.)*)"+b5+"+$","g"),bC=new RegExp("^"+b5+"*,"+b5+"*"),ce=new RegExp("^"+b5+"*([\\x20\\t\\r\\n\\f>+~])"+b5+"*"),cj=new RegExp(cD),cl=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,ca=/^:not/,co=/[\x20\t\r\n\f]*[+~]/,cx=/:not\($/,bZ=/h\d/i,ck=/input|select|textarea|button/i,b0=/\\(?!\\)/g,cd={ID:new RegExp("^#("+bR+")"),CLASS:new RegExp("^\\.("+bR+")"),NAME:new RegExp("^\\[name=['\"]?("+bR+")['\"]?\\]"),TAG:new RegExp("^("+bR.replace("w","w*")+")"),ATTR:new RegExp("^"+cm),PSEUDO:new RegExp("^"+cD),POS:new RegExp(b6,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+b5+"*(even|odd|(([+-]|)(\\d*)n|)"+b5+"*(?:([+-]|)"+b5+"*(\\d+)|))"+b5+"*\\)|)","i"),needsContext:new RegExp("^"+b5+"*[>+~]|"+b6,"i")},ch=function(cE){var cG=bF.createElement("div");try{return cE(cG)}catch(cF){return false}finally{cG=null}},bE=ch(function(cE){cE.appendChild(bF.createComment(""));return !cE.getElementsByTagName("*").length}),b9=ch(function(cE){cE.innerHTML="<a href='#'></a>";return cE.firstChild&&typeof cE.firstChild.getAttribute!==b1&&cE.firstChild.getAttribute("href")==="#"}),bX=ch(function(cF){cF.innerHTML="<select></select>";var cE=typeof cF.lastChild.getAttribute("multiple");return cE!=="boolean"&&cE!=="string"}),b8=ch(function(cE){cE.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!cE.getElementsByClassName||!cE.getElementsByClassName("e").length){return false}cE.lastChild.className="e";return cE.getElementsByClassName("e").length===2}),bw=ch(function(cF){cF.id=cw+0;cF.innerHTML="<a name='"+cw+"'></a><div name='"+cw+"'></div>";bI.insertBefore(cF,bI.firstChild);var cE=bF.getElementsByName&&bF.getElementsByName(cw).length===2+bF.getElementsByName(cw+0).length;bH=!bF.getElementById(cw);bI.removeChild(cF);return cE});try{bS.call(bI.childNodes,0)[0].nodeType}catch(cA){bS=function(cF){var cG,cE=[];for(;(cG=this[cF]);cF++){cE.push(cG)}return cE}}function cn(cH,cE,cJ,cM){cJ=cJ||[];cE=cE||bF;var cK,cF,cL,cG,cI=cE.nodeType;if(!cH||typeof cH!=="string"){return cJ}if(cI!==1&&cI!==9){return[]}cL=bT(cE);if(!cL&&!cM){if((cK=cl.exec(cH))){if((cG=cK[1])){if(cI===9){cF=cE.getElementById(cG);if(cF&&cF.parentNode){if(cF.id===cG){cJ.push(cF);return cJ}}else{return cJ}}else{if(cE.ownerDocument&&(cF=cE.ownerDocument.getElementById(cG))&&b7(cE,cF)&&cF.id===cG){cJ.push(cF);return cJ}}}else{if(cK[2]){ct.apply(cJ,bS.call(cE.getElementsByTagName(cH),0));return cJ}else{if((cG=cK[3])&&b8&&cE.getElementsByClassName){ct.apply(cJ,bS.call(cE.getElementsByClassName(cG),0));return cJ}}}}}return cv(cH.replace(cq,"$1"),cE,cJ,cM,cL)}cn.matches=function(cF,cE){return cn(cF,null,null,cE)};cn.matchesSelector=function(cE,cF){return cn(cF,null,null,[cE]).length>0};function cf(cE){return function(cG){var cF=cG.nodeName.toLowerCase();return cF==="input"&&cG.type===cE}}function bA(cE){return function(cG){var cF=cG.nodeName.toLowerCase();return(cF==="input"||cF==="button")&&cG.type===cE}}function cc(cE){return cy(function(cF){cF=+cF;return cy(function(cG,cK){var cI,cH=cE([],cG.length,cF),cJ=cH.length;while(cJ--){if(cG[(cI=cH[cJ])]){cG[cI]=!(cK[cI]=cG[cI])}}})})}bx=cn.getText=function(cI){var cH,cF="",cG=0,cE=cI.nodeType;if(cE){if(cE===1||cE===9||cE===11){if(typeof cI.textContent==="string"){return cI.textContent}else{for(cI=cI.firstChild;cI;cI=cI.nextSibling){cF+=bx(cI)}}}else{if(cE===3||cE===4){return cI.nodeValue}}}else{for(;(cH=cI[cG]);cG++){cF+=bx(cH)}}return cF};bT=cn.isXML=function(cE){var cF=cE&&(cE.ownerDocument||cE).documentElement;return cF?cF.nodeName!=="HTML":false};b7=cn.contains=bI.contains?function(cF,cE){var cH=cF.nodeType===9?cF.documentElement:cF,cG=cE&&cE.parentNode;return cF===cG||!!(cG&&cG.nodeType===1&&cH.contains&&cH.contains(cG))}:bI.compareDocumentPosition?function(cF,cE){return cE&&!!(cF.compareDocumentPosition(cE)&16)}:function(cF,cE){while((cE=cE.parentNode)){if(cE===cF){return true}}return false};cn.attr=function(cG,cF){var cH,cE=bT(cG);if(!cE){cF=cF.toLowerCase()}if((cH=ci.attrHandle[cF])){return cH(cG)}if(cE||bX){return cG.getAttribute(cF)}cH=cG.getAttributeNode(cF);return cH?typeof cG[cF]==="boolean"?cG[cF]?cF:null:cH.specified?cH.value:null:null};ci=cn.selectors={cacheLength:50,createPseudo:cy,match:cd,attrHandle:b9?{}:{href:function(cE){return cE.getAttribute("href",2)},type:function(cE){return cE.getAttribute("type")}},find:{ID:bH?function(cH,cG,cF){if(typeof cG.getElementById!==b1&&!cF){var cE=cG.getElementById(cH);return cE&&cE.parentNode?[cE]:[]}}:function(cH,cG,cF){if(typeof cG.getElementById!==b1&&!cF){var cE=cG.getElementById(cH);return cE?cE.id===cH||typeof cE.getAttributeNode!==b1&&cE.getAttributeNode("id").value===cH?[cE]:bO:[]}},TAG:bE?function(cE,cF){if(typeof cF.getElementsByTagName!==b1){return cF.getElementsByTagName(cE)}}:function(cE,cI){var cH=cI.getElementsByTagName(cE);if(cE==="*"){var cJ,cG=[],cF=0;for(;(cJ=cH[cF]);cF++){if(cJ.nodeType===1){cG.push(cJ)}}return cG}return cH},NAME:bw&&function(cE,cF){if(typeof cF.getElementsByName!==b1){return cF.getElementsByName(name)}},CLASS:b8&&function(cG,cF,cE){if(typeof cF.getElementsByClassName!==b1&&!cE){return cF.getElementsByClassName(cG)}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(cE){cE[1]=cE[1].replace(b0,"");cE[3]=(cE[4]||cE[5]||"").replace(b0,"");if(cE[2]==="~="){cE[3]=" "+cE[3]+" "}return cE.slice(0,4)},CHILD:function(cE){cE[1]=cE[1].toLowerCase();if(cE[1]==="nth"){if(!cE[2]){cn.error(cE[0])}cE[3]=+(cE[3]?cE[4]+(cE[5]||1):2*(cE[2]==="even"||cE[2]==="odd"));cE[4]=+((cE[6]+cE[7])||cE[2]==="odd")}else{if(cE[2]){cn.error(cE[0])}}return cE},PSEUDO:function(cF){var cG,cE;if(cd.CHILD.test(cF[0])){return null}if(cF[3]){cF[2]=cF[3]}else{if((cG=cF[4])){if(cj.test(cG)&&(cE=by(cG,true))&&(cE=cG.indexOf(")",cG.length-cE)-cG.length)){cG=cG.slice(0,cE);cF[0]=cF[0].slice(0,cE)}cF[2]=cG}}return cF.slice(0,3)}},filter:{ID:bH?function(cE){cE=cE.replace(b0,"");return function(cF){return cF.getAttribute("id")===cE}}:function(cE){cE=cE.replace(b0,"");return function(cG){var cF=typeof cG.getAttributeNode!==b1&&cG.getAttributeNode("id");return cF&&cF.value===cE}},TAG:function(cE){if(cE==="*"){return function(){return true}}cE=cE.replace(b0,"").toLowerCase();return function(cF){return cF.nodeName&&cF.nodeName.toLowerCase()===cE}},CLASS:function(cE){var cF=cr[cw][cE+" "];return cF||(cF=new RegExp("(^|"+b5+")"+cE+"("+b5+"|$)"))&&cr(cE,function(cG){return cF.test(cG.className||(typeof cG.getAttribute!==b1&&cG.getAttribute("class"))||"")})},ATTR:function(cG,cF,cE){return function(cJ,cI){var cH=cn.attr(cJ,cG);if(cH==null){return cF==="!="}if(!cF){return true}cH+="";return cF==="="?cH===cE:cF==="!="?cH!==cE:cF==="^="?cE&&cH.indexOf(cE)===0:cF==="*="?cE&&cH.indexOf(cE)>-1:cF==="$="?cE&&cH.substr(cH.length-cE.length)===cE:cF==="~="?(" "+cH+" ").indexOf(cE)>-1:cF==="|="?cH===cE||cH.substr(0,cE.length+1)===cE+"-":false}},CHILD:function(cE,cG,cH,cF){if(cE==="nth"){return function(cK){var cJ,cL,cI=cK.parentNode;if(cH===1&&cF===0){return true}if(cI){cL=0;for(cJ=cI.firstChild;cJ;cJ=cJ.nextSibling){if(cJ.nodeType===1){cL++;if(cK===cJ){break}}}}cL-=cF;return cL===cH||(cL%cH===0&&cL/cH>=0)}}return function(cJ){var cI=cJ;switch(cE){case"only":case"first":while((cI=cI.previousSibling)){if(cI.nodeType===1){return false}}if(cE==="first"){return true}cI=cJ;case"last":while((cI=cI.nextSibling)){if(cI.nodeType===1){return false}}return true}}},PSEUDO:function(cH,cG){var cE,cF=ci.pseudos[cH]||ci.setFilters[cH.toLowerCase()]||cn.error("unsupported pseudo: "+cH);if(cF[cw]){return cF(cG)}if(cF.length>1){cE=[cH,cH,"",cG];return ci.setFilters.hasOwnProperty(cH.toLowerCase())?cy(function(cK,cM){var cJ,cI=cF(cK,cG),cL=cI.length;while(cL--){cJ=bV.call(cK,cI[cL]);cK[cJ]=!(cM[cJ]=cI[cL])}}):function(cI){return cF(cI,0,cE)}}return cF}},pseudos:{not:cy(function(cE){var cF=[],cG=[],cH=bK(cE.replace(cq,"$1"));return cH[cw]?cy(function(cJ,cO,cM,cK){var cN,cI=cH(cJ,null,cK,[]),cL=cJ.length;while(cL--){if((cN=cI[cL])){cJ[cL]=!(cO[cL]=cN)}}}):function(cK,cJ,cI){cF[0]=cK;cH(cF,null,cI,cG);return !cG.pop()}}),has:cy(function(cE){return function(cF){return cn(cE,cF).length>0}}),contains:cy(function(cE){return function(cF){return(cF.textContent||cF.innerText||bx(cF)).indexOf(cE)>-1}}),enabled:function(cE){return cE.disabled===false},disabled:function(cE){return cE.disabled===true},checked:function(cE){var cF=cE.nodeName.toLowerCase();return(cF==="input"&&!!cE.checked)||(cF==="option"&&!!cE.selected)},selected:function(cE){if(cE.parentNode){cE.parentNode.selectedIndex}return cE.selected===true},parent:function(cE){return !ci.pseudos.empty(cE)},empty:function(cF){var cE;cF=cF.firstChild;while(cF){if(cF.nodeName>"@"||(cE=cF.nodeType)===3||cE===4){return false}cF=cF.nextSibling}return true},header:function(cE){return bZ.test(cE.nodeName)},text:function(cG){var cF,cE;return cG.nodeName.toLowerCase()==="input"&&(cF=cG.type)==="text"&&((cE=cG.getAttribute("type"))==null||cE.toLowerCase()===cF)},radio:cf("radio"),checkbox:cf("checkbox"),file:cf("file"),password:cf("password"),image:cf("image"),submit:bA("submit"),reset:bA("reset"),button:function(cF){var cE=cF.nodeName.toLowerCase();return cE==="input"&&cF.type==="button"||cE==="button"},input:function(cE){return ck.test(cE.nodeName)},focus:function(cE){var cF=cE.ownerDocument;return cE===cF.activeElement&&(!cF.hasFocus||cF.hasFocus())&&!!(cE.type||cE.href||~cE.tabIndex)},active:function(cE){return cE===cE.ownerDocument.activeElement},first:cc(function(){return[0]}),last:cc(function(cE,cF){return[cF-1]}),eq:cc(function(cE,cG,cF){return[cF<0?cF+cG:cF]}),even:cc(function(cE,cG){for(var cF=0;cF<cG;cF+=2){cE.push(cF)}return cE}),odd:cc(function(cE,cG){for(var cF=1;cF<cG;cF+=2){cE.push(cF)}return cE}),lt:cc(function(cE,cH,cG){for(var cF=cG<0?cG+cH:cG;--cF>=0;){cE.push(cF)}return cE}),gt:cc(function(cE,cH,cG){for(var cF=cG<0?cG+cH:cG;++cF<cH;){cE.push(cF)}return cE})}};function bz(cF,cE,cG){if(cF===cE){return cG}var cH=cF.nextSibling;while(cH){if(cH===cE){return -1}cH=cH.nextSibling}return 1}bN=bI.compareDocumentPosition?function(cF,cE){if(cF===cE){bJ=true;return 0}return(!cF.compareDocumentPosition||!cE.compareDocumentPosition?cF.compareDocumentPosition:cF.compareDocumentPosition(cE)&4)?-1:1}:function(cM,cL){if(cM===cL){bJ=true;return 0}else{if(cM.sourceIndex&&cL.sourceIndex){return cM.sourceIndex-cL.sourceIndex}}var cJ,cF,cG=[],cE=[],cI=cM.parentNode,cK=cL.parentNode,cN=cI;if(cI===cK){return bz(cM,cL)}else{if(!cI){return -1}else{if(!cK){return 1}}}while(cN){cG.unshift(cN);cN=cN.parentNode}cN=cK;while(cN){cE.unshift(cN);cN=cN.parentNode}cJ=cG.length;cF=cE.length;for(var cH=0;cH<cJ&&cH<cF;cH++){if(cG[cH]!==cE[cH]){return bz(cG[cH],cE[cH])}}return cH===cJ?bz(cM,cE[cH],-1):bz(cG[cH],cL,1)};[0,0].sort(bN);bG=!bJ;cn.uniqueSort=function(cG){var cH,cI=[],cF=1,cE=0;bJ=bG;cG.sort(bN);if(bJ){for(;(cH=cG[cF]);cF++){if(cH===cG[cF-1]){cE=cI.push(cF)}}while(cE--){cG.splice(cI[cE],1)}}return cG};cn.error=function(cE){throw new Error("Syntax error, unrecognized expression: "+cE)};function by(cI,cN){var cF,cJ,cL,cM,cK,cG,cE,cH=cs[cw][cI+" "];if(cH){return cN?0:cH.slice(0)}cK=cI;cG=[];cE=ci.preFilter;while(cK){if(!cF||(cJ=bC.exec(cK))){if(cJ){cK=cK.slice(cJ[0].length)||cK}cG.push(cL=[])}cF=false;if((cJ=ce.exec(cK))){cL.push(cF=new bB(cJ.shift()));cK=cK.slice(cF.length);cF.type=cJ[0].replace(cq," ")}for(cM in ci.filter){if((cJ=cd[cM].exec(cK))&&(!cE[cM]||(cJ=cE[cM](cJ)))){cL.push(cF=new bB(cJ.shift()));cK=cK.slice(cF.length);cF.type=cM;cF.matches=cJ}}if(!cF){break}}return cN?cK.length:cK?cn.error(cI):cs(cI,cG).slice(0)}function b3(cI,cG,cH){var cE=cG.dir,cJ=cH&&cG.dir==="parentNode",cF=bM++;return cG.first?function(cM,cL,cK){while((cM=cM[cE])){if(cJ||cM.nodeType===1){return cI(cM,cL,cK)}}}:function(cN,cM,cL){if(!cL){var cK,cO=bY+" "+cF+" ",cP=cO+cu;while((cN=cN[cE])){if(cJ||cN.nodeType===1){if((cK=cN[cw])===cP){return cN.sizset}else{if(typeof cK==="string"&&cK.indexOf(cO)===0){if(cN.sizset){return cN}}else{cN[cw]=cP;if(cI(cN,cM,cL)){cN.sizset=true;return cN}cN.sizset=false}}}}}else{while((cN=cN[cE])){if(cJ||cN.nodeType===1){if(cI(cN,cM,cL)){return cN}}}}}}function bL(cE){return cE.length>1?function(cI,cH,cF){var cG=cE.length;while(cG--){if(!cE[cG](cI,cH,cF)){return false}}return true}:cE[0]}function b2(cE,cF,cG,cH,cK){var cI,cN=[],cJ=0,cL=cE.length,cM=cF!=null;for(;cJ<cL;cJ++){if((cI=cE[cJ])){if(!cG||cG(cI,cH,cK)){cN.push(cI);if(cM){cF.push(cJ)}}}}return cN}function cz(cG,cF,cI,cH,cJ,cE){if(cH&&!cH[cw]){cH=cz(cH)}if(cJ&&!cJ[cw]){cJ=cz(cJ,cE)}return cy(function(cU,cR,cM,cT){var cW,cS,cO,cN=[],cV=[],cL=cR.length,cK=cU||bW(cF||"*",cM.nodeType?[cM]:cM,[]),cP=cG&&(cU||!cF)?b2(cK,cN,cG,cM,cT):cK,cQ=cI?cJ||(cU?cG:cL||cH)?[]:cR:cP;if(cI){cI(cP,cQ,cM,cT)}if(cH){cW=b2(cQ,cV);cH(cW,[],cM,cT);cS=cW.length;while(cS--){if((cO=cW[cS])){cQ[cV[cS]]=!(cP[cV[cS]]=cO)}}}if(cU){if(cJ||cG){if(cJ){cW=[];cS=cQ.length;while(cS--){if((cO=cQ[cS])){cW.push((cP[cS]=cO))}}cJ(null,(cQ=[]),cW,cT)}cS=cQ.length;while(cS--){if((cO=cQ[cS])&&(cW=cJ?bV.call(cU,cO):cN[cS])>-1){cU[cW]=!(cR[cW]=cO)}}}}else{cQ=b2(cQ===cR?cQ.splice(cL,cQ.length):cQ);if(cJ){cJ(null,cR,cQ,cT)}else{ct.apply(cR,cQ)}}})}function b4(cK){var cF,cI,cG,cJ=cK.length,cN=ci.relative[cK[0].type],cO=cN||ci.relative[" "],cH=cN?1:0,cL=b3(function(cP){return cP===cF},cO,true),cM=b3(function(cP){return bV.call(cF,cP)>-1},cO,true),cE=[function(cR,cQ,cP){return(!cN&&(cP||cQ!==cg))||((cF=cQ).nodeType?cL(cR,cQ,cP):cM(cR,cQ,cP))}];for(;cH<cJ;cH++){if((cI=ci.relative[cK[cH].type])){cE=[b3(bL(cE),cI)]}else{cI=ci.filter[cK[cH].type].apply(null,cK[cH].matches);if(cI[cw]){cG=++cH;for(;cG<cJ;cG++){if(ci.relative[cK[cG].type]){break}}return cz(cH>1&&bL(cE),cH>1&&cK.slice(0,cH-1).join("").replace(cq,"$1"),cI,cH<cG&&b4(cK.slice(cH,cG)),cG<cJ&&b4((cK=cK.slice(cG))),cG<cJ&&cK.join(""))}cE.push(cI)}}return bL(cE)}function bD(cH,cG){var cE=cG.length>0,cI=cH.length>0,cF=function(cS,cM,cR,cQ,cY){var cN,cO,cT,cX=[],cW=0,cP="0",cJ=cS&&[],cU=cY!=null,cV=cg,cL=cS||cI&&ci.find.TAG("*",cY&&cM.parentNode||cM),cK=(bY+=cV==null?1:Math.E);if(cU){cg=cM!==bF&&cM;cu=cF.el}for(;(cN=cL[cP])!=null;cP++){if(cI&&cN){for(cO=0;(cT=cH[cO]);cO++){if(cT(cN,cM,cR)){cQ.push(cN);break}}if(cU){bY=cK;cu=++cF.el}}if(cE){if((cN=!cT&&cN)){cW--}if(cS){cJ.push(cN)}}}cW+=cP;if(cE&&cP!==cW){for(cO=0;(cT=cG[cO]);cO++){cT(cJ,cX,cM,cR)}if(cS){if(cW>0){while(cP--){if(!(cJ[cP]||cX[cP])){cX[cP]=cb.call(cQ)}}}cX=b2(cX)}ct.apply(cQ,cX);if(cU&&!cS&&cX.length>0&&(cW+cG.length)>1){cn.uniqueSort(cQ)}}if(cU){bY=cK;cg=cV}return cJ};cF.el=0;return cE?cy(cF):cF}bK=cn.compile=function(cE,cJ){var cG,cF=[],cI=[],cH=bU[cw][cE+" "];if(!cH){if(!cJ){cJ=by(cE)}cG=cJ.length;while(cG--){cH=b4(cJ[cG]);if(cH[cw]){cF.push(cH)}else{cI.push(cH)}}cH=bU(cE,bD(cI,cF))}return cH};function bW(cF,cI,cH){var cG=0,cE=cI.length;for(;cG<cE;cG++){cn(cF,cI[cG],cH)}return cH}function cv(cG,cE,cI,cM,cL){var cJ,cP,cF,cO,cN,cK=by(cG),cH=cK.length;if(!cM){if(cK.length===1){cP=cK[0]=cK[0].slice(0);if(cP.length>2&&(cF=cP[0]).type==="ID"&&cE.nodeType===9&&!cL&&ci.relative[cP[1].type]){cE=ci.find.ID(cF.matches[0].replace(b0,""),cE,cL)[0];if(!cE){return cI}cG=cG.slice(cP.shift().length)}for(cJ=cd.POS.test(cG)?-1:cP.length-1;cJ>=0;cJ--){cF=cP[cJ];if(ci.relative[(cO=cF.type)]){break}if((cN=ci.find[cO])){if((cM=cN(cF.matches[0].replace(b0,""),co.test(cP[0].type)&&cE.parentNode||cE,cL))){cP.splice(cJ,1);cG=cM.length&&cP.join("");if(!cG){ct.apply(cI,bS.call(cM,0));return cI}break}}}}}bK(cG,cK)(cM,cE,cL,cI,co.test(cG));return cI}if(bF.querySelectorAll){(function(){var cJ,cK=cv,cI=/'|\\/g,cG=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,cF=[":focus"],cE=[":active"],cH=bI.matchesSelector||bI.mozMatchesSelector||bI.webkitMatchesSelector||bI.oMatchesSelector||bI.msMatchesSelector;ch(function(cL){cL.innerHTML="<select><option selected=''></option></select>";if(!cL.querySelectorAll("[selected]").length){cF.push("\\["+b5+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)")}if(!cL.querySelectorAll(":checked").length){cF.push(":checked")}});ch(function(cL){cL.innerHTML="<p test=''></p>";if(cL.querySelectorAll("[test^='']").length){cF.push("[*^$]="+b5+"*(?:\"\"|'')")}cL.innerHTML="<input type='hidden'/>";if(!cL.querySelectorAll(":enabled").length){cF.push(":enabled",":disabled")}});cF=new RegExp(cF.join("|"));cv=function(cR,cM,cT,cW,cV){if(!cW&&!cV&&!cF.test(cR)){var cP,cU,cO=true,cL=cw,cN=cM,cS=cM.nodeType===9&&cR;if(cM.nodeType===1&&cM.nodeName.toLowerCase()!=="object"){cP=by(cR);if((cO=cM.getAttribute("id"))){cL=cO.replace(cI,"\\$&")}else{cM.setAttribute("id",cL)}cL="[id='"+cL+"'] ";cU=cP.length;while(cU--){cP[cU]=cL+cP[cU].join("")}cN=co.test(cR)&&cM.parentNode||cM;cS=cP.join(",")}if(cS){try{ct.apply(cT,bS.call(cN.querySelectorAll(cS),0));return cT}catch(cQ){}finally{if(!cO){cM.removeAttribute("id")}}}}return cK(cR,cM,cT,cW,cV)};if(cH){ch(function(cM){cJ=cH.call(cM,"div");try{cH.call(cM,"[test!='']:sizzle");cE.push("!=",cD)}catch(cL){}});cE=new RegExp(cE.join("|"));cn.matchesSelector=function(cM,cO){cO=cO.replace(cG,"='$1']");if(!bT(cM)&&!cE.test(cO)&&!cF.test(cO)){try{var cL=cH.call(cM,cO);if(cL||cJ||cM.document&&cM.document.nodeType!==11){return cL}}catch(cN){}}return cn(cO,null,null,[cM]).length>0}}})()}ci.pseudos.nth=ci.pseudos.eq;function bQ(){}ci.filters=bQ.prototype=ci.pseudos;ci.setFilters=new bQ();cn.attr=E.attr;E.find=cn;E.expr=cn.selectors;E.expr[":"]=E.expr.pseudos;E.unique=cn.uniqueSort;E.text=cn.getText;E.isXMLDoc=cn.isXML;E.contains=cn.contains})(bf);var W=/Until$/,ai=/^(?:parents|prev(?:Until|All))/,bs=/^.[^:#\[\.,]*$/,aS=E.expr.match.needsContext,aq={children:true,contents:true,next:true,prev:true};E.fn.extend({find:function(bw){var bA,bx,bC,bD,bB,bz,by=this;if(typeof bw!=="string"){return E(bw).filter(function(){for(bA=0,bx=by.length;bA<bx;bA++){if(E.contains(by[bA],this)){return true}}})}bz=this.pushStack("","find",bw);for(bA=0,bx=this.length;bA<bx;bA++){bC=bz.length;E.find(bw,this[bA],bz);if(bA>0){for(bD=bC;bD<bz.length;bD++){for(bB=0;bB<bC;bB++){if(bz[bB]===bz[bD]){bz.splice(bD--,1);break}}}}}return bz},has:function(bz){var by,bx=E(bz,this),bw=bx.length;return this.filter(function(){for(by=0;by<bw;by++){if(E.contains(this,bx[by])){return true}}})},not:function(bw){return this.pushStack(aB(this,bw,false),"not",bw)},filter:function(bw){return this.pushStack(aB(this,bw,true),"filter",bw)},is:function(bw){return !!bw&&(typeof bw==="string"?aS.test(bw)?E(bw,this.context).index(this[0])>=0:E.filter(bw,this).length>0:this.filter(bw).length>0)},closest:function(bA,bz){var bB,by=0,bw=this.length,bx=[],bC=aS.test(bA)||typeof bA!=="string"?E(bA,bz||this.context):0;for(;by<bw;by++){bB=this[by];while(bB&&bB.ownerDocument&&bB!==bz&&bB.nodeType!==11){if(bC?bC.index(bB)>-1:E.find.matchesSelector(bB,bA)){bx.push(bB);break}bB=bB.parentNode}}bx=bx.length>1?E.unique(bx):bx;return this.pushStack(bx,"closest",bA)},index:function(bw){if(!bw){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof bw==="string"){return E.inArray(this[0],E(bw))}return E.inArray(bw.jqx?bw[0]:bw,this)},add:function(bw,bx){var bz=typeof bw==="string"?E(bw,bx):E.makeArray(bw&&bw.nodeType?[bw]:bw),by=E.merge(this.get(),bz);return this.pushStack(z(bz[0])||z(by[0])?by:E.unique(by))},addBack:function(bw){return this.add(bw==null?this.prevObject:this.prevObject.filter(bw))}});E.fn.andSelf=E.fn.addBack;function z(bw){return !bw||!bw.parentNode||bw.parentNode.nodeType===11}function aD(bx,bw){do{bx=bx[bw]}while(bx&&bx.nodeType!==1);return bx}E.each({parent:function(bx){var bw=bx.parentNode;return bw&&bw.nodeType!==11?bw:null},parents:function(bw){return E.dir(bw,"parentNode")},parentsUntil:function(bx,bw,by){return E.dir(bx,"parentNode",by)},next:function(bw){return aD(bw,"nextSibling")},prev:function(bw){return aD(bw,"previousSibling")},nextAll:function(bw){return E.dir(bw,"nextSibling")},prevAll:function(bw){return E.dir(bw,"previousSibling")},nextUntil:function(bx,bw,by){return E.dir(bx,"nextSibling",by)},prevUntil:function(bx,bw,by){return E.dir(bx,"previousSibling",by)},siblings:function(bw){return E.sibling((bw.parentNode||{}).firstChild,bw)},children:function(bw){return E.sibling(bw.firstChild)},contents:function(bw){return E.nodeName(bw,"iframe")?bw.contentDocument||bw.contentWindow.document:E.merge([],bw.childNodes)}},function(bw,bx){E.fn[bw]=function(bA,by){var bz=E.map(this,bx,bA);if(!W.test(bw)){by=bA}if(by&&typeof by==="string"){bz=E.filter(by,bz)}bz=this.length>1&&!aq[bw]?E.unique(bz):bz;if(this.length>1&&ai.test(bw)){bz=bz.reverse()}return this.pushStack(bz,bw,aF.call(arguments).join(","))}});E.extend({filter:function(by,bw,bx){if(bx){by=":not("+by+")"}return bw.length===1?E.find.matchesSelector(bw[0],by)?[bw[0]]:[]:E.find.matches(by,bw)},dir:function(by,bx,bA){var bw=[],bz=by[bx];while(bz&&bz.nodeType!==9&&(bA===I||bz.nodeType!==1||!E(bz).is(bA))){if(bz.nodeType===1){bw.push(bz)}bz=bz[bx]}return bw},sibling:function(by,bx){var bw=[];for(;by;by=by.nextSibling){if(by.nodeType===1&&by!==bx){bw.push(by)}}return bw}});function aB(bz,by,bw){by=by||0;if(E.isFunction(by)){return E.grep(bz,function(bB,bA){var bC=!!by.call(bB,bA,bB);return bC===bw})}else{if(by.nodeType){return E.grep(bz,function(bB,bA){return(bB===by)===bw})}else{if(typeof by==="string"){var bx=E.grep(bz,function(bA){return bA.nodeType===1});if(bs.test(by)){return E.filter(by,bx,!bw)}else{by=E.filter(by,bx)}}}}return E.grep(bz,function(bB,bA){return(E.inArray(bB,by)>=0)===bw})}function c(bw){var by=aL.split("|"),bx=bw.createDocumentFragment();if(bx.createElement){while(by.length){bx.createElement(by.pop())}}return bx}var aL="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ac=/ JQXLite\d+="(?:null|\d+)"/g,aj=/^\s+/,N=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,e=/<([\w:]+)/,x=/<tbody/i,R=/<|&#?\w+;/,Y=/<(?:script|style|link)/i,K=/<(?:script|object|embed|option|style)/i,ae=new RegExp("<(?:"+aL+")[\\s/>]","i"),T=/^(?:checkbox|radio)$/,q=/checked\s*(?:[^=]|=\s*.checked.)/i,br=/\/(java|ecma)script/i,aI=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,ao={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},V=c(am),bi=V.appendChild(am.createElement("div"));ao.optgroup=ao.option;ao.tbody=ao.tfoot=ao.colgroup=ao.caption=ao.thead;ao.th=ao.td;if(!E.support.htmlSerialize){ao._default=[1,"X<div>","</div>"]}E.fn.extend({text:function(bw){return E.access(this,function(bx){return bx===I?E.text(this):this.empty().append((this[0]&&this[0].ownerDocument||am).createTextNode(bx))},null,bw,arguments.length)},wrapAll:function(bw){if(E.isFunction(bw)){return this.each(function(by){E(this).wrapAll(bw.call(this,by))})}if(this[0]){var bx=E(bw,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bx.insertBefore(this[0])}bx.map(function(){var by=this;while(by.firstChild&&by.firstChild.nodeType===1){by=by.firstChild}return by}).append(this)}return this},wrapInner:function(bw){if(E.isFunction(bw)){return this.each(function(bx){E(this).wrapInner(bw.call(this,bx))})}return this.each(function(){var bx=E(this),by=bx.contents();if(by.length){by.wrapAll(bw)}else{bx.append(bw)}})},wrap:function(bw){var bx=E.isFunction(bw);return this.each(function(by){E(this).wrapAll(bx?bw.call(this,by):bw)})},unwrap:function(){return this.parent().each(function(){if(!E.nodeName(this,"body")){E(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(bw){if(this.nodeType===1||this.nodeType===11){this.appendChild(bw)}})},prepend:function(){return this.domManip(arguments,true,function(bw){if(this.nodeType===1||this.nodeType===11){this.insertBefore(bw,this.firstChild)}})},before:function(){if(!z(this[0])){return this.domManip(arguments,false,function(bx){this.parentNode.insertBefore(bx,this)})}if(arguments.length){var bw=E.clean(arguments);return this.pushStack(E.merge(bw,this),"before",this.selector)}},after:function(){if(!z(this[0])){return this.domManip(arguments,false,function(bx){this.parentNode.insertBefore(bx,this.nextSibling)})}if(arguments.length){var bw=E.clean(arguments);return this.pushStack(E.merge(this,bw),"after",this.selector)}},remove:function(bw,bz){var by,bx=0;for(;(by=this[bx])!=null;bx++){if(!bw||E.filter(bw,[by]).length){if(!bz&&by.nodeType===1){E.cleanData(by.getElementsByTagName("*"));E.cleanData([by])}if(by.parentNode){by.parentNode.removeChild(by)}}}return this},empty:function(){var bx,bw=0;for(;(bx=this[bw])!=null;bw++){if(bx.nodeType===1){E.cleanData(bx.getElementsByTagName("*"))}while(bx.firstChild){bx.removeChild(bx.firstChild)}}return this},clone:function(bx,bw){bx=bx==null?false:bx;bw=bw==null?bx:bw;return this.map(function(){return E.clone(this,bx,bw)})},html:function(bw){return E.access(this,function(bA){var bz=this[0]||{},by=0,bx=this.length;if(bA===I){return bz.nodeType===1?bz.innerHTML.replace(ac,""):I}if(typeof bA==="string"&&!Y.test(bA)&&(E.support.htmlSerialize||!ae.test(bA))&&(E.support.leadingWhitespace||!aj.test(bA))&&!ao[(e.exec(bA)||["",""])[1].toLowerCase()]){bA=bA.replace(N,"<$1></$2>");try{for(;by<bx;by++){bz=this[by]||{};if(bz.nodeType===1){E.cleanData(bz.getElementsByTagName("*"));bz.innerHTML=bA}}bz=0}catch(bB){}}if(bz){this.empty().append(bA)}},null,bw,arguments.length)},replaceWith:function(bw){if(!z(this[0])){if(E.isFunction(bw)){return this.each(function(bz){var by=E(this),bx=by.html();by.replaceWith(bw.call(this,bz,bx))})}if(typeof bw!=="string"){bw=E(bw).detach()}return this.each(function(){var by=this.nextSibling,bx=this.parentNode;E(this).remove();if(by){E(by).before(bw)}else{E(bx).append(bw)}})}return this.length?this.pushStack(E(E.isFunction(bw)?bw():bw),"replaceWith",bw):this},detach:function(bw){return this.remove(bw,true)},domManip:function(bC,bG,bF){bC=[].concat.apply([],bC);var by,bA,bB,bE,bz=0,bD=bC[0],bx=[],bw=this.length;if(!E.support.checkClone&&bw>1&&typeof bD==="string"&&q.test(bD)){return this.each(function(){E(this).domManip(bC,bG,bF)})}if(E.isFunction(bD)){return this.each(function(bI){var bH=E(this);bC[0]=bD.call(this,bI,bG?bH.html():I);bH.domManip(bC,bG,bF)})}if(this[0]){by=E.buildFragment(bC,this,bx);bB=by.fragment;bA=bB.firstChild;if(bB.childNodes.length===1){bB=bA}if(bA){bG=bG&&E.nodeName(bA,"tr");for(bE=by.cacheable||bw-1;bz<bw;bz++){bF.call(bG&&E.nodeName(this[bz],"table")?a5(this[bz],"tbody"):this[bz],bz===bE?bB:E.clone(bB,true,true))}}bB=bA=null;if(bx.length){E.each(bx,function(bH,bI){if(bI.src){if(E.ajax){E.ajax({url:bI.src,type:"GET",dataType:"script",async:false,global:false,"throws":true})}else{E.error("no ajax")}}else{E.globalEval((bI.text||bI.textContent||bI.innerHTML||"").replace(aI,""))}if(bI.parentNode){bI.parentNode.removeChild(bI)}})}}return this}});function a5(bx,bw){return bx.getElementsByTagName(bw)[0]||bx.appendChild(bx.ownerDocument.createElement(bw))}function t(bD,bx){if(bx.nodeType!==1||!E.hasData(bD)){return}var bA,bz,bw,bC=E._data(bD),bB=E._data(bx,bC),by=bC.events;if(by){delete bB.handle;bB.events={};for(bA in by){for(bz=0,bw=by[bA].length;bz<bw;bz++){E.event.add(bx,bA,by[bA][bz])}}}if(bB.data){bB.data=E.extend({},bB.data)}}function ad(bx,bw){var by;if(bw.nodeType!==1){return}if(bw.clearAttributes){bw.clearAttributes()}if(bw.mergeAttributes){bw.mergeAttributes(bx)}by=bw.nodeName.toLowerCase();if(by==="object"){if(bw.parentNode){bw.outerHTML=bx.outerHTML}if(E.support.html5Clone&&(bx.innerHTML&&!E.trim(bw.innerHTML))){bw.innerHTML=bx.innerHTML}}else{if(by==="input"&&T.test(bx.type)){bw.defaultChecked=bw.checked=bx.checked;if(bw.value!==bx.value){bw.value=bx.value}}else{if(by==="option"){bw.selected=bx.defaultSelected}else{if(by==="input"||by==="textarea"){bw.defaultValue=bx.defaultValue}else{if(by==="script"&&bw.text!==bx.text){bw.text=bx.text}}}}}bw.removeAttribute(E.expando)}E.buildFragment=function(bz,bA,bx){var by,bw,bB,bC=bz[0];bA=bA||am;bA=!bA.nodeType&&bA[0]||bA;bA=bA.ownerDocument||bA;if(bz.length===1&&typeof bC==="string"&&bC.length<512&&bA===am&&bC.charAt(0)==="<"&&!K.test(bC)&&(E.support.checkClone||!q.test(bC))&&(E.support.html5Clone||!ae.test(bC))){bw=true;by=E.fragments[bC];bB=by!==I}if(!by){by=bA.createDocumentFragment();E.clean(bz,bA,by,bx);if(bw){E.fragments[bC]=bB&&by}}return{fragment:by,cacheable:bw}};E.fragments={};E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(bw,bx){E.fn[bw]=function(by){var bA,bC=0,bB=[],bE=E(by),bz=bE.length,bD=this.length===1&&this[0].parentNode;if((bD==null||bD&&bD.nodeType===11&&bD.childNodes.length===1)&&bz===1){bE[bx](this[0]);return this}else{for(;bC<bz;bC++){bA=(bC>0?this.clone(true):this).get();E(bE[bC])[bx](bA);bB=bB.concat(bA)}return this.pushStack(bB,bw,bE.selector)}}});function bm(bw){if(typeof bw.getElementsByTagName!=="undefined"){return bw.getElementsByTagName("*")}else{if(typeof bw.querySelectorAll!=="undefined"){return bw.querySelectorAll("*")}else{return[]}}}function an(bw){if(T.test(bw.type)){bw.defaultChecked=bw.checked}}E.extend({clone:function(bA,bC,by){var bw,bx,bz,bB;if(E.support.html5Clone||E.isXMLDoc(bA)||!ae.test("<"+bA.nodeName+">")){bB=bA.cloneNode(true)}else{bi.innerHTML=bA.outerHTML;bi.removeChild(bB=bi.firstChild)}if((!E.support.noCloneEvent||!E.support.noCloneChecked)&&(bA.nodeType===1||bA.nodeType===11)&&!E.isXMLDoc(bA)){ad(bA,bB);bw=bm(bA);bx=bm(bB);for(bz=0;bw[bz];++bz){if(bx[bz]){ad(bw[bz],bx[bz])}}}if(bC){t(bA,bB);if(by){bw=bm(bA);bx=bm(bB);for(bz=0;bw[bz];++bz){t(bw[bz],bx[bz])}}}bw=bx=null;return bB},clean:function(bJ,by,bw,bz){var bG,bF,bI,bN,bC,bM,bD,bA,bx,bH,bL,bE,bB=by===am&&V,bK=[];if(!by||typeof by.createDocumentFragment==="undefined"){by=am}for(bG=0;(bI=bJ[bG])!=null;bG++){if(typeof bI==="number"){bI+=""}if(!bI){continue}if(typeof bI==="string"){if(!R.test(bI)){bI=by.createTextNode(bI)}else{bB=bB||c(by);bD=by.createElement("div");bB.appendChild(bD);bI=bI.replace(N,"<$1></$2>");bN=(e.exec(bI)||["",""])[1].toLowerCase();bC=ao[bN]||ao._default;bM=bC[0];bD.innerHTML=bC[1]+bI+bC[2];while(bM--){bD=bD.lastChild}if(!E.support.tbody){bA=x.test(bI);bx=bN==="table"&&!bA?bD.firstChild&&bD.firstChild.childNodes:bC[1]==="<table>"&&!bA?bD.childNodes:[];for(bF=bx.length-1;bF>=0;--bF){if(E.nodeName(bx[bF],"tbody")&&!bx[bF].childNodes.length){bx[bF].parentNode.removeChild(bx[bF])}}}if(!E.support.leadingWhitespace&&aj.test(bI)){bD.insertBefore(by.createTextNode(aj.exec(bI)[0]),bD.firstChild)}bI=bD.childNodes;bD.parentNode.removeChild(bD)}}if(bI.nodeType){bK.push(bI)}else{E.merge(bK,bI)}}if(bD){bI=bD=bB=null}if(!E.support.appendChecked){for(bG=0;(bI=bK[bG])!=null;bG++){if(E.nodeName(bI,"input")){an(bI)}else{if(typeof bI.getElementsByTagName!=="undefined"){E.grep(bI.getElementsByTagName("input"),an)}}}}if(bw){bL=function(bO){if(!bO.type||br.test(bO.type)){return bz?bz.push(bO.parentNode?bO.parentNode.removeChild(bO):bO):bw.appendChild(bO)}};for(bG=0;(bI=bK[bG])!=null;bG++){if(!(E.nodeName(bI,"script")&&bL(bI))){bw.appendChild(bI);if(typeof bI.getElementsByTagName!=="undefined"){bE=E.grep(E.merge([],bI.getElementsByTagName("script")),bL);bK.splice.apply(bK,[bG+1,0].concat(bE));bG+=bE.length}}}}return bK},cleanData:function(bx,bF){var bA,by,bz,bE,bB=0,bG=E.expando,bw=E.cache,bC=E.support.deleteExpando,bD=E.event.special;for(;(bz=bx[bB])!=null;bB++){if(bF||E.acceptData(bz)){by=bz[bG];bA=by&&bw[by];if(bA){if(bA.events){for(bE in bA.events){if(bD[bE]){E.event.remove(bz,bE)}else{E.removeEvent(bz,bE,bA.handle)}}}if(bw[by]){delete bw[by];if(bC){delete bz[bG]}else{if(bz.removeAttribute){bz.removeAttribute(bG)}else{bz[bG]=null}}E.deletedIds.push(by)}}}}}});(function(){var bw,bx;E.uaMatch=function(bz){bz=bz.toLowerCase();var by=/(chrome)[ \/]([\w.]+)/.exec(bz)||/(webkit)[ \/]([\w.]+)/.exec(bz)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(bz)||/(msie) ([\w.]+)/.exec(bz)||bz.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(bz)||[];return{browser:by[1]||"",version:by[2]||"0"}};bw=E.uaMatch(bv.userAgent);bx={};if(bw.browser){bx[bw.browser]=true;bx.version=bw.version}if(bx.chrome){bx.webkit=true}else{if(bx.webkit){bx.safari=true}}E.browser=bx;E.sub=function(){function bz(bB,bC){return new bz.fn.init(bB,bC)}E.extend(true,bz,this);bz.superclass=this;bz.fn=bz.prototype=this();bz.fn.constructor=bz;bz.sub=this.sub;bz.fn.init=function bA(bB,bC){if(bC&&bC instanceof E&&!(bC instanceof bz)){bC=bz(bC)}return E.fn.init.call(this,bB,bC,by)};bz.fn.init.prototype=bz.fn;var by=bz(am);return bz}})();var S,be,n,af=/alpha\([^)]*\)/i,al=/opacity=([^)]*)/,y=/^(top|right|bottom|left)$/,ak=/^(none|table(?!-c[ea]).+)/,ax=/^margin/,k=new RegExp("^("+aG+")(.*)$","i"),aX=new RegExp("^("+aG+")(?!px)[a-z%]+$","i"),G=new RegExp("^([-+])=("+aG+")","i"),L={BODY:"block"},bc={position:"absolute",visibility:"hidden",display:"block"},aN={letterSpacing:0,fontWeight:400},F=["Top","Right","Bottom","Left"],Q=["Webkit","O","Moz","ms"],bg=E.fn.toggle;function a4(bz,bx){if(bx in bz){return bx}var bA=bx.charAt(0).toUpperCase()+bx.slice(1),bw=bx,by=Q.length;while(by--){bx=Q[by]+bA;if(bx in bz){return bx}}return bw}function ar(bx,bw){bx=bw||bx;return E.css(bx,"display")==="none"||!E.contains(bx.ownerDocument,bx)}function bd(bB,bw){var bA,bC,bx=[],by=0,bz=bB.length;for(;by<bz;by++){bA=bB[by];if(!bA.style){continue}bx[by]=E._data(bA,"olddisplay");if(bw){if(!bx[by]&&bA.style.display==="none"){bA.style.display=""}if(bA.style.display===""&&ar(bA)){bx[by]=E._data(bA,"olddisplay",aP(bA.nodeName))}}else{bC=S(bA,"display");if(!bx[by]&&bC!=="none"){E._data(bA,"olddisplay",bC)}}}for(by=0;by<bz;by++){bA=bB[by];if(!bA.style){continue}if(!bw||bA.style.display==="none"||bA.style.display===""){bA.style.display=bw?bx[by]||"":"none"}}return bB}E.fn.extend({css:function(bw,bx){return E.access(this,function(bz,by,bA){return bA!==I?E.style(bz,by,bA):E.css(bz,by)},bw,bx,arguments.length>1)},show:function(){return bd(this,true)},hide:function(){return bd(this)},toggle:function(by,bx){var bw=typeof by==="boolean";if(E.isFunction(by)&&E.isFunction(bx)){return bg.apply(this,arguments)}return this.each(function(){if(bw?by:ar(this)){E(this).show()}else{E(this).hide()}})}});E.extend({cssHooks:{opacity:{get:function(by,bx){if(bx){var bw=S(by,"opacity");return bw===""?"1":bw}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":E.support.cssFloat?"cssFloat":"styleFloat"},style:function(by,bx,bE,bz){if(!by||by.nodeType===3||by.nodeType===8||!by.style){return}var bC,bD,bF,bA=E.camelCase(bx),bw=by.style;bx=E.cssProps[bA]||(E.cssProps[bA]=a4(bw,bA));bF=E.cssHooks[bx]||E.cssHooks[bA];if(bE!==I){bD=typeof bE;if(bD==="string"&&(bC=G.exec(bE))){bE=(bC[1]+1)*bC[2]+parseFloat(E.css(by,bx));bD="number"}if(bE==null||bD==="number"&&isNaN(bE)){return}if(bD==="number"&&!E.cssNumber[bA]){bE+="px"}if(!bF||!("set" in bF)||(bE=bF.set(by,bE,bz))!==I){try{bw[bx]=bE}catch(bB){}}}else{if(bF&&"get" in bF&&(bC=bF.get(by,false,bz))!==I){return bC}return bw[bx]}},css:function(bC,bA,bB,bx){var bD,bz,bw,by=E.camelCase(bA);bA=E.cssProps[by]||(E.cssProps[by]=a4(bC.style,by));bw=E.cssHooks[bA]||E.cssHooks[by];if(bw&&"get" in bw){bD=bw.get(bC,true,bx)}if(bD===I){bD=S(bC,bA)}if(bD==="normal"&&bA in aN){bD=aN[bA]}if(bB||bx!==I){bz=parseFloat(bD);return bB||E.isNumeric(bz)?bz||0:bD}return bD},swap:function(bA,bz,bB){var by,bx,bw={};for(bx in bz){bw[bx]=bA.style[bx];bA.style[bx]=bz[bx]}by=bB.call(bA);for(bx in bz){bA.style[bx]=bw[bx]}return by}});if(bf.getComputedStyle){S=function(bD,bx){var bw,bA,bz,bC,bB=bf.getComputedStyle(bD,null),by=bD.style;if(bB){bw=bB.getPropertyValue(bx)||bB[bx];if(bw===""&&!E.contains(bD.ownerDocument,bD)){bw=E.style(bD,bx)}if(aX.test(bw)&&ax.test(bx)){bA=by.width;bz=by.minWidth;bC=by.maxWidth;by.minWidth=by.maxWidth=by.width=bw;bw=bB.width;by.width=bA;by.minWidth=bz;by.maxWidth=bC}}return bw}}else{if(am.documentElement.currentStyle){S=function(bA,by){var bB,bw,bx=bA.currentStyle&&bA.currentStyle[by],bz=bA.style;if(bx==null&&bz&&bz[by]){bx=bz[by]}if(aX.test(bx)&&!y.test(by)){bB=bz.left;bw=bA.runtimeStyle&&bA.runtimeStyle.left;if(bw){bA.runtimeStyle.left=bA.currentStyle.left}bz.left=by==="fontSize"?"1em":bx;bx=bz.pixelLeft+"px";bz.left=bB;if(bw){bA.runtimeStyle.left=bw}}return bx===""?"auto":bx}}}function aQ(bw,by,bz){var bx=k.exec(by);return bx?Math.max(0,bx[1]-(bz||0))+(bx[2]||"px"):by}function a1(bz,bx,bw,bB){var by=bw===(bB?"border":"content")?4:bx==="width"?1:0,bA=0;for(;by<4;by+=2){if(bw==="margin"){bA+=E.css(bz,bw+F[by],true)}if(bB){if(bw==="content"){bA-=parseFloat(S(bz,"padding"+F[by]))||0}if(bw!=="margin"){bA-=parseFloat(S(bz,"border"+F[by]+"Width"))||0}}else{bA+=parseFloat(S(bz,"padding"+F[by]))||0;if(bw!=="padding"){bA+=parseFloat(S(bz,"border"+F[by]+"Width"))||0}}}return bA}function aa(bz,bx,bw){var bA=bx==="width"?bz.offsetWidth:bz.offsetHeight,by=true,bB=E.support.boxSizing&&E.css(bz,"boxSizing")==="border-box";if(bA<=0||bA==null){bA=S(bz,bx);if(bA<0||bA==null){bA=bz.style[bx]}if(aX.test(bA)){return bA}by=bB&&(E.support.boxSizingReliable||bA===bz.style[bx]);bA=parseFloat(bA)||0}return(bA+a1(bz,bx,bw||(bB?"border":"content"),by))+"px"}function aP(by){if(L[by]){return L[by]}var bw=E("<"+by+">").appendTo(am.body),bx=bw.css("display");bw.remove();if(bx==="none"||bx===""){be=am.body.appendChild(be||E.extend(am.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!n||!be.createElement){n=(be.contentWindow||be.contentDocument).document;n.write("<!doctype html><html><body>");n.close()}bw=n.body.appendChild(n.createElement(by));bx=S(bw,"display");am.body.removeChild(be)}L[by]=bx;return bx}E.each(["height","width"],function(bx,bw){E.cssHooks[bw]={get:function(bA,bz,by){if(bz){if(bA.offsetWidth===0&&ak.test(S(bA,"display"))){return E.swap(bA,bc,function(){return aa(bA,bw,by)})}else{return aa(bA,bw,by)}}},set:function(bz,bA,by){return aQ(bz,bA,by?a1(bz,bw,by,E.support.boxSizing&&E.css(bz,"boxSizing")==="border-box"):0)}}});if(!E.support.opacity){E.cssHooks.opacity={get:function(bx,bw){return al.test((bw&&bx.currentStyle?bx.currentStyle.filter:bx.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":bw?"1":""},set:function(bA,bB){var bz=bA.style,bx=bA.currentStyle,bw=E.isNumeric(bB)?"alpha(opacity="+bB*100+")":"",by=bx&&bx.filter||bz.filter||"";bz.zoom=1;if(bB>=1&&E.trim(by.replace(af,""))===""&&bz.removeAttribute){bz.removeAttribute("filter");if(bx&&!bx.filter){return}}bz.filter=af.test(by)?by.replace(af,bw):by+" "+bw}}}E(function(){if(!E.support.reliableMarginRight){E.cssHooks.marginRight={get:function(bx,bw){return E.swap(bx,{display:"inline-block"},function(){if(bw){return S(bx,"marginRight")}})}}}if(!E.support.pixelPosition&&E.fn.position){E.each(["top","left"],function(bw,bx){E.cssHooks[bx]={get:function(bA,bz){if(bz){var by=S(bA,bx);return aX.test(by)?E(bA).position()[bx]+"px":by}}}})}});if(E.expr&&E.expr.filters){E.expr.filters.hidden=function(bw){return(bw.offsetWidth===0&&bw.offsetHeight===0)||(!E.support.reliableHiddenOffsets&&((bw.style&&bw.style.display)||S(bw,"display"))==="none")};E.expr.filters.visible=function(bw){return !E.expr.filters.hidden(bw)}}E.each({margin:"",padding:"",border:"Width"},function(bw,bx){E.cssHooks[bw+bx]={expand:function(bA){var bz,bB=typeof bA==="string"?bA.split(" "):[bA],by={};for(bz=0;bz<4;bz++){by[bw+F[bz]+bx]=bB[bz]||bB[bz-2]||bB[0]}return by}};if(!ax.test(bw)){E.cssHooks[bw+bx].set=aQ}});var i=/%20/g,ah=/\[\]$/,bt=/\r?\n/g,aW=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,r=/^(?:select|textarea)/i;E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?E.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||r.test(this.nodeName)||aW.test(this.type))}).map(function(bw,bx){var by=E(this).val();return by==null?null:E.isArray(by)?E.map(by,function(bA,bz){return{name:bx.name,value:bA.replace(bt,"\r\n")}}):{name:bx.name,value:by.replace(bt,"\r\n")}}).get()}});E.param=function(bw,by){var bz,bx=[],bA=function(bB,bC){bC=E.isFunction(bC)?bC():(bC==null?"":bC);bx[bx.length]=encodeURIComponent(bB)+"="+encodeURIComponent(bC)};if(by===I){by=E.ajaxSettings&&E.ajaxSettings.traditional}if(E.isArray(bw)||(bw.jqx&&!E.isPlainObject(bw))){E.each(bw,function(){bA(this.name,this.value)})}else{for(bz in bw){u(bz,bw[bz],by,bA)}}return bx.join("&").replace(i,"+")};function u(by,bA,bx,bz){var bw;if(E.isArray(bA)){E.each(bA,function(bC,bB){if(bx||ah.test(by)){bz(by,bB)}else{u(by+"["+(typeof bB==="object"?bC:"")+"]",bB,bx,bz)}})}else{if(!bx&&E.type(bA)==="object"){for(bw in bA){u(by+"["+bw+"]",bA[bw],bx,bz)}}else{bz(by,bA)}}}if(E.support.ajax){E.ajaxTransport(function(bw){if(!bw.crossDomain||E.support.cors){var bx;return{send:function(bD,by){var bB,bA,bC=bw.xhr();if(bw.username){bC.open(bw.type,bw.url,bw.async,bw.username,bw.password)}else{bC.open(bw.type,bw.url,bw.async)}if(bw.xhrFields){for(bA in bw.xhrFields){bC[bA]=bw.xhrFields[bA]}}if(bw.mimeType&&bC.overrideMimeType){bC.overrideMimeType(bw.mimeType)}if(!bw.crossDomain&&!bD["X-Requested-With"]){bD["X-Requested-With"]="XMLHttpRequest"}try{for(bA in bD){bC.setRequestHeader(bA,bD[bA])}}catch(bz){}bC.send((bw.hasContent&&bw.data)||null);bx=function(bM,bG){var bH,bF,bE,bK,bJ;try{if(bx&&(bG||bC.readyState===4)){bx=I;if(bB){bC.onreadystatechange=E.noop;if(xhrOnUnloadAbort){delete xhrCallbacks[bB]}}if(bG){if(bC.readyState!==4){bC.abort()}}else{bH=bC.status;bE=bC.getAllResponseHeaders();bK={};bJ=bC.responseXML;if(bJ&&bJ.documentElement){bK.xml=bJ}try{bK.text=bC.responseText}catch(bL){}try{bF=bC.statusText}catch(bL){bF=""}if(!bH&&bw.isLocal&&!bw.crossDomain){bH=bK.text?200:404}else{if(bH===1223){bH=204}}}}}catch(bI){if(!bG){by(-1,bI)}}if(bK){by(bH,bF,bK,bE)}};if(!bw.async){bx()}else{if(bC.readyState===4){setTimeout(bx,0)}else{bB=++xhrId;if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};E(bf).unload(xhrOnUnloadAbort)}xhrCallbacks[bB]=bx}bC.onreadystatechange=bx}}},abort:function(){if(bx){bx(0,1)}}}}})}var a8,a3,au=/^(?:toggle|show|hide)$/,aO=new RegExp("^(?:([-+])=|)("+aG+")([a-z%]*)$","i"),a9=/queueHooks$/,m=[bo],J={"*":[function(bw,bD){var bz,bE,bF=this.createTween(bw,bD),bA=aO.exec(bD),bB=bF.cur(),bx=+bB||0,by=1,bC=20;if(bA){bz=+bA[2];bE=bA[3]||(E.cssNumber[bw]?"":"px");if(bE!=="px"&&bx){bx=E.css(bF.elem,bw,true)||bz||1;do{by=by||".5";bx=bx/by;E.style(bF.elem,bw,bx+bE)}while(by!==(by=bF.cur()/bB)&&by!==1&&--bC)}bF.unit=bE;bF.start=bx;bF.end=bA[1]?bx+(bA[1]+1)*bz:bz}return bF}]};function bn(){setTimeout(function(){a8=I},0);return(a8=E.now())}function ab(bx,bw){E.each(bw,function(bC,bA){var bB=(J[bC]||[]).concat(J["*"]),by=0,bz=bB.length;for(;by<bz;by++){if(bB[by].call(bx,bC,bA)){return}}})}function bl(by,bC,bF){var bG,bB=0,bw=0,bx=m.length,bE=E.Deferred().always(function(){delete bA.elem}),bA=function(){var bM=a8||bn(),bJ=Math.max(0,bz.startTime+bz.duration-bM),bH=bJ/bz.duration||0,bL=1-bH,bI=0,bK=bz.tweens.length;for(;bI<bK;bI++){bz.tweens[bI].run(bL)}bE.notifyWith(by,[bz,bL,bJ]);if(bL<1&&bK){return bJ}else{bE.resolveWith(by,[bz]);return false}},bz=bE.promise({elem:by,props:E.extend({},bC),opts:E.extend(true,{specialEasing:{}},bF),originalProperties:bC,originalOptions:bF,startTime:a8||bn(),duration:bF.duration,tweens:[],createTween:function(bK,bH,bJ){var bI=E.Tween(by,bz.opts,bK,bH,bz.opts.specialEasing[bK]||bz.opts.easing);bz.tweens.push(bI);return bI},stop:function(bI){var bH=0,bJ=bI?bz.tweens.length:0;for(;bH<bJ;bH++){bz.tweens[bH].run(1)}if(bI){bE.resolveWith(by,[bz,bI])}else{bE.rejectWith(by,[bz,bI])}return this}}),bD=bz.props;aY(bD,bz.opts.specialEasing);for(;bB<bx;bB++){bG=m[bB].call(bz,by,bD,bz.opts);if(bG){return bG}}ab(bz,bD);if(E.isFunction(bz.opts.start)){bz.opts.start.call(by,bz)}E.fx.timer(E.extend(bA,{anim:bz,queue:bz.opts.queue,elem:by}));return bz.progress(bz.opts.progress).done(bz.opts.done,bz.opts.complete).fail(bz.opts.fail).always(bz.opts.always)}function aY(bz,bB){var by,bx,bC,bA,bw;for(by in bz){bx=E.camelCase(by);bC=bB[bx];bA=bz[by];if(E.isArray(bA)){bC=bA[1];bA=bz[by]=bA[0]}if(by!==bx){bz[bx]=bA;delete bz[by]}bw=E.cssHooks[bx];if(bw&&"expand" in bw){bA=bw.expand(bA);delete bz[bx];for(by in bA){if(!(by in bz)){bz[by]=bA[by];bB[by]=bC}}}else{bB[bx]=bC}}}E.Animation=E.extend(bl,{tweener:function(bx,bA){if(E.isFunction(bx)){bA=bx;bx=["*"]}else{bx=bx.split(" ")}var bz,bw=0,by=bx.length;for(;bw<by;bw++){bz=bx[bw];J[bz]=J[bz]||[];J[bz].unshift(bA)}},prefilter:function(bx,bw){if(bw){m.unshift(bx)}else{m.push(bx)}}});function bo(bA,bG,bw){var bF,by,bI,bz,bM,bC,bL,bK,bJ,bB=this,bx=bA.style,bH={},bE=[],bD=bA.nodeType&&ar(bA);if(!bw.queue){bK=E._queueHooks(bA,"fx");if(bK.unqueued==null){bK.unqueued=0;bJ=bK.empty.fire;bK.empty.fire=function(){if(!bK.unqueued){bJ()}}}bK.unqueued++;bB.always(function(){bB.always(function(){bK.unqueued--;if(!E.queue(bA,"fx").length){bK.empty.fire()}})})}if(bA.nodeType===1&&("height" in bG||"width" in bG)){bw.overflow=[bx.overflow,bx.overflowX,bx.overflowY];if(E.css(bA,"display")==="inline"&&E.css(bA,"float")==="none"){if(!E.support.inlineBlockNeedsLayout||aP(bA.nodeName)==="inline"){bx.display="inline-block"}else{bx.zoom=1}}}if(bw.overflow){bx.overflow="hidden";if(!E.support.shrinkWrapBlocks){bB.done(function(){bx.overflow=bw.overflow[0];bx.overflowX=bw.overflow[1];bx.overflowY=bw.overflow[2]})}}for(bF in bG){bI=bG[bF];if(au.exec(bI)){delete bG[bF];bC=bC||bI==="toggle";if(bI===(bD?"hide":"show")){continue}bE.push(bF)}}bz=bE.length;if(bz){bM=E._data(bA,"fxshow")||E._data(bA,"fxshow",{});if("hidden" in bM){bD=bM.hidden}if(bC){bM.hidden=!bD}if(bD){E(bA).show()}else{bB.done(function(){E(bA).hide()})}bB.done(function(){var bN;E.removeData(bA,"fxshow",true);for(bN in bH){E.style(bA,bN,bH[bN])}});for(bF=0;bF<bz;bF++){by=bE[bF];bL=bB.createTween(by,bD?bM[by]:0);bH[by]=bM[by]||E.style(bA,by);if(!(by in bM)){bM[by]=bL.start;if(bD){bL.end=bL.start;bL.start=by==="width"||by==="height"?1:0}}}}}function w(by,bx,bA,bw,bz){return new w.prototype.init(by,bx,bA,bw,bz)}E.Tween=w;w.prototype={constructor:w,init:function(bz,bx,bB,bw,bA,by){this.elem=bz;this.prop=bB;this.easing=bA||"swing";this.options=bx;this.start=this.now=this.cur();this.end=bw;this.unit=by||(E.cssNumber[bB]?"":"px")},cur:function(){var bw=w.propHooks[this.prop];return bw&&bw.get?bw.get(this):w.propHooks._default.get(this)},run:function(by){var bx,bw=w.propHooks[this.prop];if(this.options.duration){this.pos=bx=E.easing[this.easing](by,this.options.duration*by,0,1,this.options.duration)}else{this.pos=bx=by}this.now=(this.end-this.start)*bx+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(bw&&bw.set){bw.set(this)}else{w.propHooks._default.set(this)}return this}};w.prototype.init.prototype=w.prototype;w.propHooks={_default:{get:function(bx){var bw;if(bx.elem[bx.prop]!=null&&(!bx.elem.style||bx.elem.style[bx.prop]==null)){return bx.elem[bx.prop]}bw=E.css(bx.elem,bx.prop,false,"");return !bw||bw==="auto"?0:bw},set:function(bw){if(E.fx.step[bw.prop]){E.fx.step[bw.prop](bw)}else{if(bw.elem.style&&(bw.elem.style[E.cssProps[bw.prop]]!=null||E.cssHooks[bw.prop])){E.style(bw.elem,bw.prop,bw.now+bw.unit)}else{bw.elem[bw.prop]=bw.now}}}}};w.propHooks.scrollTop=w.propHooks.scrollLeft={set:function(bw){if(bw.elem.nodeType&&bw.elem.parentNode){bw.elem[bw.prop]=bw.now}}};E.each(["toggle","show","hide"],function(bx,bw){var by=E.fn[bw];E.fn[bw]=function(bz,bB,bA){return bz==null||typeof bz==="boolean"||(!bx&&E.isFunction(bz)&&E.isFunction(bB))?by.apply(this,arguments):this.animate(a0(bw,true),bz,bB,bA)}});E.fn.extend({fadeTo:function(bw,bz,by,bx){return this.filter(ar).css("opacity",0).show().end().animate({opacity:bz},bw,by,bx)},animate:function(bC,bz,bB,bA){var by=E.isEmptyObject(bC),bw=E.speed(bz,bB,bA),bx=function(){var bD=bl(this,E.extend({},bC),bw);if(by){bD.stop(true)}};return by||bw.queue===false?this.each(bx):this.queue(bw.queue,bx)},stop:function(by,bx,bw){var bz=function(bA){var bB=bA.stop;delete bA.stop;bB(bw)};if(typeof by!=="string"){bw=bx;bx=by;by=I}if(bx&&by!==false){this.queue(by||"fx",[])}return this.each(function(){var bD=true,bA=by!=null&&by+"queueHooks",bC=E.timers,bB=E._data(this);if(bA){if(bB[bA]&&bB[bA].stop){bz(bB[bA])}}else{for(bA in bB){if(bB[bA]&&bB[bA].stop&&a9.test(bA)){bz(bB[bA])}}}for(bA=bC.length;bA--;){if(bC[bA].elem===this&&(by==null||bC[bA].queue===by)){bC[bA].anim.stop(bw);bD=false;bC.splice(bA,1)}}if(bD||!bw){E.dequeue(this,by)}})}});function a0(by,bA){var bz,bw={height:by},bx=0;bA=bA?1:0;for(;bx<4;bx+=2-bA){bz=F[bx];bw["margin"+bz]=bw["padding"+bz]=by}if(bA){bw.opacity=bw.width=by}return bw}E.each({slideDown:a0("show"),slideUp:a0("hide"),slideToggle:a0("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(bw,bx){E.fn[bw]=function(by,bA,bz){return this.animate(bx,by,bA,bz)}});E.speed=function(by,bz,bx){var bw=by&&typeof by==="object"?E.extend({},by):{complete:bx||!bx&&bz||E.isFunction(by)&&by,duration:by,easing:bx&&bz||bz&&!E.isFunction(bz)&&bz};bw.duration=E.fx.off?0:typeof bw.duration==="number"?bw.duration:bw.duration in E.fx.speeds?E.fx.speeds[bw.duration]:E.fx.speeds._default;if(bw.queue==null||bw.queue===true){bw.queue="fx"}bw.old=bw.complete;bw.complete=function(){if(E.isFunction(bw.old)){bw.old.call(this)}if(bw.queue){E.dequeue(this,bw.queue)}};return bw};E.easing={linear:function(bw){return bw},swing:function(bw){return 0.5-Math.cos(bw*Math.PI)/2}};E.timers=[];E.fx=w.prototype.init;E.fx.tick=function(){var by,bx=E.timers,bw=0;a8=E.now();for(;bw<bx.length;bw++){by=bx[bw];if(!by()&&bx[bw]===by){bx.splice(bw--,1)}}if(!bx.length){E.fx.stop()}a8=I};E.fx.timer=function(bw){if(bw()&&E.timers.push(bw)&&!a3){a3=setInterval(E.fx.tick,E.fx.interval)}};E.fx.interval=13;E.fx.stop=function(){clearInterval(a3);a3=null};E.fx.speeds={slow:600,fast:200,_default:400};E.fx.step={};if(E.expr&&E.expr.filters){E.expr.filters.animated=function(bw){return E.grep(E.timers,function(bx){return bw===bx.elem}).length}}var X=/^(?:body|html)$/i;E.fn.offset=function(bG){if(arguments.length){return bG===I?this:this.each(function(bH){E.offset.setOffset(this,bG,bH)})}var bx,bC,bD,bA,bE,bw,bz,bB={top:0,left:0},by=this[0],bF=by&&by.ownerDocument;if(!bF){return}if((bC=bF.body)===by){return E.offset.bodyOffset(by)}bx=bF.documentElement;if(!E.contains(bx,by)){return bB}if(typeof by.getBoundingClientRect!=="undefined"){bB=by.getBoundingClientRect()}bD=aE(bF);bA=bx.clientTop||bC.clientTop||0;bE=bx.clientLeft||bC.clientLeft||0;bw=bD.pageYOffset||bx.scrollTop;bz=bD.pageXOffset||bx.scrollLeft;return{top:bB.top+bw-bA,left:bB.left+bz-bE}};E.offset={bodyOffset:function(bw){var by=bw.offsetTop,bx=bw.offsetLeft;if(E.support.doesNotIncludeMarginInBodyOffset){by+=parseFloat(E.css(bw,"marginTop"))||0;bx+=parseFloat(E.css(bw,"marginLeft"))||0}return{top:by,left:bx}},setOffset:function(bz,bI,bC){var bD=E.css(bz,"position");if(bD==="static"){bz.style.position="relative"}var bB=E(bz),bx=bB.offset(),bw=E.css(bz,"top"),bG=E.css(bz,"left"),bH=(bD==="absolute"||bD==="fixed")&&E.inArray("auto",[bw,bG])>-1,bF={},bE={},by,bA;if(bH){bE=bB.position();by=bE.top;bA=bE.left}else{by=parseFloat(bw)||0;bA=parseFloat(bG)||0}if(E.isFunction(bI)){bI=bI.call(bz,bC,bx)}if(bI.top!=null){bF.top=(bI.top-bx.top)+by}if(bI.left!=null){bF.left=(bI.left-bx.left)+bA}if("using" in bI){bI.using.call(bz,bF)}else{bB.css(bF)}}};E.fn.extend({isRendered:function(){var bx=this;var bw=this[0];if(bw.parentNode==null||(bw.offsetWidth===0||bw.offsetHeight===0)){return false}return true},getSizeFromStyle:function(){var bA=this;var bz=null;var bw=null;var by=this[0];var bx;if(by.style.width){bz=by.style.width}if(by.style.height){bw=by.style.height}if(bf.getComputedStyle){bx=getComputedStyle(by,null)}else{bx=by.currentStyle}if(bx){if(bx.width){bz=bx.width}if(bx.height){bw=bx.height}}if(bz==="0px"){bz=0}if(bw==="0px"){bw=0}if(bz===null){bz=0}if(bw===null){bw=0}return{width:bz,height:bw}},initAnimate:function(){},sizeStyleChanged:function(bz){var by=this;var bA;var bw=function(bB){var bC=bA;if(bB&&bB[0]&&bB[0].attributeName==="style"&&bB[0].type==="attributes"){if(bC.element.offsetWidth!==bC.offsetWidth||bC.element.offsetHeight!==bC.offsetHeight){bC.offsetWidth=bC.element.offsetWidth;bC.offsetHeight=bC.element.offsetHeight;if(by.isRendered()){bC.callback()}}}};bA={element:by[0],offsetWidth:by[0].offsetWidth,offsetHeight:by[0].offsetHeight,callback:bz};try{if(!by.elementStyleObserver){by.elementStyleObserver=new MutationObserver(bw);by.elementStyleObserver.observe(by[0],{attributes:true,childList:false,characterData:false})}}catch(bx){}},position:function(){if(!this[0]){return}var by=this[0],bx=this.offsetParent(),bz=this.offset(),bw=X.test(bx[0].nodeName)?{top:0,left:0}:bx.offset();bz.top-=parseFloat(E.css(by,"marginTop"))||0;bz.left-=parseFloat(E.css(by,"marginLeft"))||0;bw.top+=parseFloat(E.css(bx[0],"borderTopWidth"))||0;bw.left+=parseFloat(E.css(bx[0],"borderLeftWidth"))||0;return{top:bz.top-bw.top,left:bz.left-bw.left}},offsetParent:function(){return this.map(function(){var bw=this.offsetParent||am.body;while(bw&&(!X.test(bw.nodeName)&&E.css(bw,"position")==="static")){bw=bw.offsetParent}return bw||am.body})}});E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(by,bx){var bw=/Y/.test(bx);E.fn[by]=function(bz){return E.access(this,function(bA,bD,bC){var bB=aE(bA);if(bC===I){return bB?(bx in bB)?bB[bx]:bB.document.documentElement[bD]:bA[bD]}if(bB){bB.scrollTo(!bw?bC:E(bB).scrollLeft(),bw?bC:E(bB).scrollTop())}else{bA[bD]=bC}},by,bz,arguments.length,null)}});function aE(bw){return E.isWindow(bw)?bw:bw.nodeType===9?bw.defaultView||bw.parentWindow:false}E.each({Height:"height",Width:"width"},function(bw,bx){E.each({padding:"inner"+bw,content:bx,"":"outer"+bw},function(by,bz){E.fn[bz]=function(bD,bC){var bB=arguments.length&&(by||typeof bD!=="boolean"),bA=by||(bD===true||bC===true?"margin":"border");return E.access(this,function(bF,bE,bG){var bH;if(E.isWindow(bF)){return bF.document.documentElement["client"+bw]}if(bF.nodeType===9){bH=bF.documentElement;return Math.max(bF.body["scroll"+bw],bH["scroll"+bw],bF.body["offset"+bw],bH["offset"+bw],bH["client"+bw])}return bG===I?E.css(bF,bE,bG,bA):E.style(bF,bE,bG,bA)},bx,bB?bD:I,bB,null)}})});bf.JQXLite=bf.jqxHelper=E;if( true&&__webpack_require__.amdO.JQXLite){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){return E}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))}})(window)}(function(c){if(c.jqxCore){c.$$=c.minQuery=c.JQXLite;if(!c.$){c.$=c.minQuery}return}if(c.jQuery){c.minQuery=c.JQXLite=c.jQuery;return}if(!c.$){c.$=c.minQuery=c.JQXLite}else{c.minQuery=c.JQXLite=c.$}})(window);JQXLite.generateID=function(){var c=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};var d="";do{d="jqx"+c()+c()+c()}while($("#"+d).length>0);return d};var b=window.jqxBaseFramework=window.minQuery||window.jQuery;(function(d){d.jqx=d.jqx||{};window.jqx=d.jqx;var c={createInstance:function(e,g,i){if(g=="jqxDataAdapter"){var h=i[0];var f=i[1]||{};return new d.jqx.dataAdapter(h,f)}d(e)[g](i||{});return d(e)[g]("getInstance")}};window.jqwidgets=c;d.jqx.define=function(e,f,g){e[f]=function(){if(this.baseType){this.base=new e[this.baseType]();this.base.defineInstance()}this.defineInstance();this.metaInfo()};e[f].prototype.defineInstance=function(){};e[f].prototype.metaInfo=function(){};e[f].prototype.base=null;e[f].prototype.baseType=undefined;if(g&&e[g]){e[f].prototype.baseType=g}};d.jqx.invoke=function(h,g){if(g.length==0){return}var i=typeof(g)==Array||g.length>0?g[0]:g;var f=typeof(g)==Array||g.length>1?Array.prototype.slice.call(g,1):d({}).toArray();while(h[i]==undefined&&h.base!=null){if(h[i]!=undefined&&d.isFunction(h[i])){return h[i].apply(h,f)}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]!=undefined&&d.isFunction(h[e])){return h[e].apply(h,f)}}h=h.base}if(h[i]!=undefined&&d.isFunction(h[i])){return h[i].apply(h,f)}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]!=undefined&&d.isFunction(h[e])){return h[e].apply(h,f)}}return};d.jqx.getByPriority=function(e){var g=undefined;for(var f=0;f<e.length&&g==undefined;f++){if(g==undefined&&e[f]!=undefined){g=e[f]}}return g};d.jqx.hasProperty=function(f,e){if(typeof(e)=="object"){for(var h in e){var g=f;while(g){if(g.hasOwnProperty(h)){return true}if(g.hasOwnProperty(h.toLowerCase())){return true}g=g.base}return false}}else{while(f){if(f.hasOwnProperty(e)){return true}if(f.hasOwnProperty(e.toLowerCase())){return true}f=f.base}}return false};d.jqx.hasFunction=function(h,g){if(g.length==0){return false}if(h==undefined){return false}var i=typeof(g)==Array||g.length>0?g[0]:g;var f=typeof(g)==Array||g.length>1?Array.prototype.slice.call(g,1):{};while(h[i]==undefined&&h.base!=null){if(h[i]&&d.isFunction(h[i])){return true}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]&&d.isFunction(h[e])){return true}}h=h.base}if(h[i]&&d.isFunction(h[i])){return true}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]&&d.isFunction(h[e])){return true}}return false};d.jqx.isPropertySetter=function(f,e){if(e.length==1&&typeof(e[0])=="object"){return true}if(e.length==2&&typeof(e[0])=="string"&&!d.jqx.hasFunction(f,e)){return true}return false};d.jqx.validatePropertySetter=function(j,g,e){if(!d.jqx.propertySetterValidation){return true}if(g.length==1&&typeof(g[0])=="object"){for(var h in g[0]){var k=j;while(!k.hasOwnProperty(h)&&k.base){k=k.base}if(!k||!k.hasOwnProperty(h)){if(!e){var f=k.hasOwnProperty(h.toString().toLowerCase());if(!f){throw"Invalid property: "+h}else{return true}}return false}}return true}if(g.length!=2){if(!e){throw"Invalid property: "+g.length>=0?g[0]:""}return false}while(!j.hasOwnProperty(g[0])&&j.base){j=j.base}if(!j||!j.hasOwnProperty(g[0])){if(!e){throw"Invalid property: "+g[0]}return false}return true};if(!Object.keys){Object.keys=(function(){var g=Object.prototype.hasOwnProperty,h=!({toString:null}).propertyIsEnumerable("toString"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e=f.length;return function(l){if(typeof l!=="object"&&(typeof l!=="function"||l===null)){throw new TypeError("Object.keys called on non-object")}var j=[],m,k;for(m in l){if(g.call(l,m)){j.push(m)}}if(h){for(k=0;k<e;k++){if(g.call(l,f[k])){j.push(f[k])}}}return j}}())}d.jqx.set=function(h,k){var f=0;if(k.length==1&&typeof(k[0])=="object"){if(h.isInitialized&&Object.keys&&Object.keys(k[0]).length>1){var i=!h.base?h.element:h.base.element;var e=d.data(i,h.widgetName).initArgs;if(e&&JSON&&JSON.stringify&&k[0]&&e[0]){try{if(JSON.stringify(k[0])==JSON.stringify(e[0])){var j=true;d.each(k[0],function(n,o){if(h[n]!=o){j=false;return false}});if(j){return}}}catch(g){}}h.batchUpdate=k[0];var l={};var m={};d.each(k[0],function(n,o){var p=h;while(!p.hasOwnProperty(n)&&p.base!=null){p=p.base}if(p.hasOwnProperty(n)){if(h[n]!=o){l[n]=h[n];m[n]=o;f++}}else{if(p.hasOwnProperty(n.toLowerCase())){if(h[n.toLowerCase()]!=o){l[n.toLowerCase()]=h[n.toLowerCase()];m[n.toLowerCase()]=o;f++}}}});if(f<2){h.batchUpdate=null}}d.each(k[0],function(n,o){var p=h;while(!p.hasOwnProperty(n)&&p.base!=null){p=p.base}if(p.hasOwnProperty(n)){d.jqx.setvalueraiseevent(p,n,o)}else{if(p.hasOwnProperty(n.toLowerCase())){d.jqx.setvalueraiseevent(p,n.toLowerCase(),o)}else{if(d.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+n+"'"}}}});if(h.batchUpdate!=null){h.batchUpdate=null;if(h.propertiesChangedHandler&&f>1){h.propertiesChangedHandler(h,l,m)}}}else{if(k.length==2){while(!h.hasOwnProperty(k[0])&&h.base){h=h.base}if(h.hasOwnProperty(k[0])){d.jqx.setvalueraiseevent(h,k[0],k[1])}else{if(h.hasOwnProperty(k[0].toLowerCase())){d.jqx.setvalueraiseevent(h,k[0].toLowerCase(),k[1])}else{if(d.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+k[0]+"'"}}}}}};d.jqx.setvalueraiseevent=function(f,g,h){var e=f[g];f[g]=h;if(!f.isInitialized){return}if(f.propertyChangedHandler!=undefined){f.propertyChangedHandler(f,g,e,h)}if(f.propertyChangeMap!=undefined&&f.propertyChangeMap[g]!=undefined){f.propertyChangeMap[g](f,g,e,h)}};d.jqx.get=function(h,g){if(g==undefined||g==null){return undefined}if(h.propertyMap){var f=h.propertyMap(g);if(f!=null){return f}}if(h.hasOwnProperty(g)){return h[g]}if(h.hasOwnProperty(g.toLowerCase())){return h[g.toLowerCase()]}var e=undefined;if(typeof(g)==Array){if(g.length!=1){return undefined}e=g[0]}else{if(typeof(g)=="string"){e=g}}while(!h.hasOwnProperty(e)&&h.base){h=h.base}if(h){return h[e]}return undefined};d.jqx.serialize=function(h){var e="";if(d.isArray(h)){e="[";for(var g=0;g<h.length;g++){if(g>0){e+=", "}e+=d.jqx.serialize(h[g])}e+="]"}else{if(typeof(h)=="object"){e="{";var f=0;for(var g in h){if(f++>0){e+=", "}e+=g+": "+d.jqx.serialize(h[g])}e+="}"}else{e=h.toString()}}return e};d.jqx.propertySetterValidation=true;d.jqx.jqxWidgetProxy=function(j,f,e){var g=d(f);var i=d.data(f,j);if(i==undefined){return undefined}var h=i.instance;if(d.jqx.hasFunction(h,e)){return d.jqx.invoke(h,e)}if(d.jqx.isPropertySetter(h,e)){if(d.jqx.validatePropertySetter(h,e)){d.jqx.set(h,e);return undefined}}else{if(typeof(e)=="object"&&e.length==0){return}else{if(typeof(e)=="object"&&e.length==1&&d.jqx.hasProperty(h,e[0])){return d.jqx.get(h,e[0])}else{if(typeof(e)=="string"&&d.jqx.hasProperty(h,e[0])){return d.jqx.get(h,e)}}}}throw"jqxCore: Invalid parameter '"+d.jqx.serialize(e)+"' does not exist."};d.jqx.applyWidget=function(g,h,n,o){var k=false;try{k=window.MSApp!=undefined}catch(j){}var p=d(g);if(!o){o=new d.jqx["_"+h]()}else{o.host=p;o.element=g}if(g.id==""){g.id=d.jqx.utilities.createId()}var m={host:p,element:g,instance:o,initArgs:n};o.widgetName=h;d.data(g,h,m);d.data(g,"jqxWidget",m.instance);var l=new Array();var o=m.instance;while(o){o.isInitialized=false;l.push(o);o=o.base}l.reverse();l[0].theme=d.jqx.theme||"";d.jqx.jqxWidgetProxy(h,g,n);for(var f in l){o=l[f];if(f==0){o.host=p;o.element=g;o.WinJS=k}if(o!=undefined){if(o.definedInstance){o.definedInstance()}if(o.createInstance!=null){if(k){MSApp.execUnsafeLocalFunction(function(){o.createInstance(n)})}else{o.createInstance(n)}}}}for(var f in l){if(l[f]!=undefined){l[f].isInitialized=true}}if(k){MSApp.execUnsafeLocalFunction(function(){m.instance.refresh(true)})}else{m.instance.refresh(true)}};d.jqx.jqxWidget=function(f,g,i){var l=false;try{var n=Array.prototype.slice.call(i,0)}catch(k){var n=""}try{l=window.MSApp!=undefined}catch(k){}var j=f;var o="";if(g){o="_"+g}d.jqx.define(d.jqx,"_"+j,o);var m=new Array();if(!window[j]){var h=function(p){if(p==null){return""}var e=d.type(p);switch(e){case"string":case"number":case"date":case"boolean":case"bool":if(p===null){return""}return p.toString()}var q="";d.each(p,function(s,t){var v=t;if(s>0){q+=", "}q+="[";var r=0;if(d.type(v)=="object"){for(var u in v){if(r>0){q+=", "}q+="{"+u+":"+v[u]+"}";r++}}else{if(r>0){q+=", "}q+="{"+s+":"+v+"}";r++}q+="]"});return q};c[j]=window[j]=function(e,u){var p=[];if(!u){u={}}p.push(u);var q=e;if(d.type(q)==="object"&&e[0]){q=e[0].id;if(q===""){q=e[0].id=d.jqx.utilities.createId()}}else{if(d.type(e)==="object"&&e&&e.nodeName){q=e.id;if(q===""){q=e.id=d.jqx.utilities.createId()}}}if(window.jqxWidgets&&window.jqxWidgets[q]){if(u){d.each(window.jqxWidgets[q],function(v){var w=d(this.element).data();if(w&&w.jqxWidget){d(this.element)[j](u)}})}if(window.jqxWidgets[q].length==1){var s=d(window.jqxWidgets[q][0].widgetInstance.element).data();if(s&&s.jqxWidget){return window.jqxWidgets[q][0]}}var s=d(window.jqxWidgets[q][0].widgetInstance.element).data();if(s&&s.jqxWidget){return window.jqxWidgets[q]}}var r=d(e);if(r.length===0){r=d("<div></div>");if(j==="jqxInput"||j==="jqxPasswordInput"||j==="jqxMaskedInput"){r=d("<input/>")}if(j==="jqxTextArea"){r=d("<textarea></textarea>")}if(j==="jqxButton"||j==="jqxRepeatButton"||j==="jqxToggleButton"){r=d("<button/>")}if(j==="jqxSplitter"){r=d("<div><div>Panel 1</div><div>Panel 2</div></div>")}if(j==="jqxTabs"){r=d("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div>Content 1</div><div>Content 2</div></div>")}if(j==="jqxRibbon"){r=d("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div><div>Content 1</div><div>Content 2</div></div></div>")}if(j==="jqxDocking"){r=d("<div><div><div><div>Title 1</div><div>Content 1</div></div></div></div>")}if(j==="jqxWindow"){r=d("<div><div>Title 1</div><div>Content 1</div></div>")}}var t=[];d.each(r,function(y){var A=r[y];d.jqx.applyWidget(A,j,p,undefined);if(!m[j]){var w=d.data(A,"jqxWidget");var z=d.jqx["_"+j].prototype.defineInstance();var x={};if(d.jqx["_"+j].prototype.metaInfo){x=d.jqx["_"+j].prototype.metaInfo()}if(j=="jqxDockingLayout"){z=d.extend(z,d.jqx._jqxLayout.prototype.defineInstance())}if(j=="jqxToggleButton"||j=="jqxRepeatButton"){z=d.extend(z,d.jqx._jqxButton.prototype.defineInstance())}if(j=="jqxTreeGrid"){z=d.extend(z,d.jqx._jqxDataTable.prototype.defineInstance())}var v=function(C){var B=d.data(C,"jqxWidget");this.widgetInstance=B;var D=d.extend(this,B);D.on=D.addEventListener=function(F,G){D.addHandler(!D.base?D.host:D.base.host,F,G)};D.off=D.removeEventListener=function(F){D.removeHandler(!D.base?D.host:D.base.host,F)};for(var E in B){if(d.type(B[E])=="function"){D[E]=d.proxy(B[E],B)}}return D};m[j]=v;d.each(z,function(C,B){Object.defineProperty(v.prototype,C,{get:function(){if(this.widgetInstance){return this.widgetInstance[C]}return B},set:function(J){if(this.widgetInstance&&(this.widgetInstance[C]!=J||C==="width"||C==="height")){var H=this.widgetInstance[C];var G=J;var F=d.type(H);var D=d.type(G);var I=false;if(F!=D||C==="source"||C==="width"||C==="height"){I=true}if(I||(h(H)!=h(G))){var E={};E[C]=J;if(this.widgetInstance.host){this.widgetInstance.host[j](E)}else{this.widgetInstance.base.host[j](E)}this.widgetInstance[C]=J;if(this.widgetInstance.propertyUpdated){this.widgetInstance.propertyUpdated(C,H,J)}}}}})})}var w=new m[j](A);t.push(w);if(!window.jqxWidgets){window.jqxWidgets=new Array()}if(!window.jqxWidgets[q]){window.jqxWidgets[q]=new Array()}window.jqxWidgets[q].push(w)});if(t.length===1){return t[0]}return t}}d.fn[j]=function(){var e=Array.prototype.slice.call(arguments,0);if(e.length==0||(e.length==1&&typeof(e[0])=="object")){if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}return this.each(function(){var s=d(this);var r=this;var t=d.data(r,j);if(t==null){d.jqx.applyWidget(r,j,e,undefined)}else{d.jqx.jqxWidgetProxy(j,this,e)}})}else{if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}var q=null;var p=0;this.each(function(){var r=d.jqx.jqxWidgetProxy(j,this,e);if(p==0){q=r;p++}else{if(p==1){var s=[];s.push(q);q=s}q.push(r)}})}return q};try{d.extend(d.jqx["_"+j].prototype,Array.prototype.slice.call(i,0)[0])}catch(k){}d.extend(d.jqx["_"+j].prototype,{toThemeProperty:function(e,p){return d.jqx.toThemeProperty(this,e,p)},isMaterialized:function(){if(!this.theme){return false}if(this.theme==="fluent"){return true}if(this.theme==="tailwind"||this.theme==="tailwind-dark"){return true}if(this.theme==="light"){return true}if(this.theme==="dark"){return true}if(this.theme==="deepblue"){return true}if(this.theme.indexOf("material")>=0){return true}},isModern:function(){if(!this.theme){return false}if(this.theme.indexOf("light")>=0){return true}if(this.theme==="dark"){return true}},_addBarAndLabel:function(r){var q=this;var e=d("<label></label");e[0].innerHTML=this.placeHolder;e.addClass(q.toThemeProperty("jqx-input-label"));r.after(e);q.label=e;var p=d("<span></span>");r.after(p);p.addClass(q.toThemeProperty("jqx-input-bar"));q.bar=p;q.bar.css("top",this.host.height())}});d.jqx["_"+j].prototype.refresh=function(){if(this.base){this.base.refresh(true)}};d.jqx["_"+j].prototype.createInstance=function(){};d.jqx.isPassiveSupported=function(){var q=this;if(q.supportsPassive!==undefined){return q.supportsPassive}q.supportsPassive=false;try{var p=Object.defineProperty({},"passive",{get:function(){q.supportsPassive=true}});window.addEventListener("testPassive",null,p);window.removeEventListener("testPassive",null,p)}catch(r){}return q.supportsPassive};d.jqx["_"+j].prototype.addEventHandler=function(p,e){if(this.base){this.base.host.on(p,e)}else{this.host.on(p,e)}};d.jqx["_"+j].prototype.removeEventHandler=function(p,e){if(this.base){this.base.host.off(p)}else{this.host.off(p)}};d.jqx["_"+j].prototype.applyTo=function(q,p){if(!(p instanceof Array)){var e=[];e.push(p);p=e}d.jqx.applyWidget(q,j,p,this)};d.jqx["_"+j].prototype.getInstance=function(){return this};d.jqx["_"+j].prototype.propertyChangeMap={};d.jqx["_"+j].prototype.addHandler=function(r,e,p,q){d.jqx.addHandler(d(r),e,p,q)};d.jqx["_"+j].prototype.removeHandler=function(q,e,p){d.jqx.removeHandler(d(q),e,p)};d.jqx["_"+j].prototype.setOptions=function(){if(!this.host||!this.host.length||this.host.length!=1){return}return d.jqx.jqxWidgetProxy(j,this.host[0],arguments)}};d.jqx.toThemeProperty=function(f,g,l){if(f.theme==""){return g}var k=g.split(" ");var e="";for(var j=0;j<k.length;j++){if(j>0){e+=" "}var h=k[j];if(l!=null&&l){e+=h+"-"+f.theme}else{e+=h+" "+h+"-"+f.theme}}return e};d.jqx.addHandler=function(k,l,h,j){var f=l.split(" ");for(var e=0;e<f.length;e++){var g=f[e];if(window.addEventListener&&k[0]){switch(g){case"mousewheel":if(d.jqx.browser.mozilla){k[0].addEventListener("DOMMouseScroll",h,d.jqx.isPassiveSupported()?{passive:false}:false)}else{k[0].addEventListener("mousewheel",h,d.jqx.isPassiveSupported()?{passive:false}:false)}continue;case"mousemove":if(!j){k[0].addEventListener("mousemove",h,false);continue}break;case"touchmove":if(!j){k[0].addEventListener("touchmove",h,false);continue}else{if(j&&j.passive){k[0].addEventListener("touchmove",h,j);continue}}break}}if(j==undefined||j==null){if(k.on){k.on(g,h)}else{k.bind(g,h)}}else{if(k.on){k.on(g,j,h)}else{k.bind(g,j,h)}}}};d.jqx.removeHandler=function(j,k,h){if(!k){if(j.off){j.off()}else{j.unbind()}return}var f=k.split(" ");for(var e=0;e<f.length;e++){var g=f[e];if(window.removeEventListener){switch(g){case"mousewheel":if(d.jqx.browser.mozilla){j[0].removeEventListener("DOMMouseScroll",h,false)}else{j[0].removeEventListener("mousewheel",h,false)}continue;case"mousemove":if(h){j[0].removeEventListener("mousemove",h,false);continue}break;case"touchmove":if(h){j[0].removeEventListener("touchmove",h,false);continue}break}}if(g==undefined){if(j.off){j.off()}else{j.unbind()}continue}if(h==undefined){if(j.off){j.off(g)}else{j.unbind(g)}}else{if(j.off){j.off(g,h)}else{j.unbind(g,h)}}}};d.jqx.credits=d.jqx.credits||"";d.jqx.theme=d.jqx.theme||"";d.jqx.scrollAnimation=d.jqx.scrollAnimation||false;d.jqx.resizeDelay=d.jqx.resizeDelay||10;d.jqx.ready=function(){d(window).trigger("jqxReady")};d.jqx.init=function(){d.each(arguments[0],function(e,f){if(e=="theme"){d.jqx.theme=f}if(e=="scrollBarSize"){d.jqx.utilities.scrollBarSize=f}if(e=="touchScrollBarSize"){d.jqx.utilities.touchScrollBarSize=f}if(e=="scrollBarButtonsVisibility"){d.jqx.utilities.scrollBarButtonsVisibility=f}})};d.jqx.utilities=d.jqx.utilities||{};d.extend(d.jqx.utilities,{scrollBarSize:13,touchScrollBarSize:8,scrollBarButtonsVisibility:"visible",createId:function(){var e=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return"jqxWidget"+e()+e()+e()},setTheme:function(j,k,h){if(typeof h==="undefined"){return}if(!h[0].className.split){return}if(j===undefined){j=""}if(k===undefined){k=""}var l=h[0].className.split(" "),e=[],m=[],g=h.children();for(var f=0;f<l.length;f+=1){if(l[f].indexOf(j)>=0){if(j.length>0){e.push(l[f]);m.push(l[f].replace(j,k))}else{m.push(l[f].replace("-"+k,"")+"-"+k)}}}this._removeOldClasses(e,h);this._addNewClasses(m,h);for(var f=0;f<g.length;f+=1){this.setTheme(j,k,d(g[f]))}},_removeOldClasses:function(g,f){for(var e=0;e<g.length;e+=1){f.removeClass(g[e])}},_addNewClasses:function(g,f){for(var e=0;e<g.length;e+=1){f.addClass(g[e])}},getOffset:function(e){var g=d.jqx.mobile.getLeftPos(e[0]);var f=d.jqx.mobile.getTopPos(e[0]);return{top:f,left:g}},resize:function(k,v,s,r){if(r===undefined){r=true}var o=-1;var n=this;var g=function(x){if(!n.hiddenWidgets){return -1}var y=-1;for(var w=0;w<n.hiddenWidgets.length;w++){if(x.id){if(n.hiddenWidgets[w].id==x.id){y=w;break}}else{if(n.hiddenWidgets[w].id==x[0].id){y=w;break}}}return y};if(this.resizeHandlers){for(var l=0;l<this.resizeHandlers.length;l++){if(k.id){if(this.resizeHandlers[l].id==k.id){o=l;break}}else{if(this.resizeHandlers[l].id==k[0].id){o=l;break}}}if(s===true){if(o!=-1){this.resizeHandlers.splice(o,1);if(this.watchedElementData&&this.watchedElementData.length>0){this.watchedElementData.splice(o,1)}}if(this.resizeHandlers.length==0){var q=d(window);if(q.off){q.off("resize.jqx");q.off("orientationchange.jqx");q.off("orientationchanged.jqx")}else{q.unbind("resize.jqx");q.unbind("orientationchange.jqx");q.unbind("orientationchanged.jqx")}this.resizeHandlers=null}var e=g(k);if(e!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(e,1)}return}}else{if(s===true){var e=g(k);if(e!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(e,1)}return}}var n=this;var p=function(y,H){if(!n.resizeHandlers){return}var I=function(L){var i=-1;var M=L.parentNode;while(M){i++;M=M.parentNode}return i};var x=function(N,L){if(!N.widget||!L.widget){return 0}var M=I(N.widget[0]);var i=I(L.widget[0]);try{if(M<i){return -1}if(M>i){return 1}}catch(O){var P=O}return 0};var z=function(L){if(n.hiddenWidgets.length>0){n.hiddenWidgets.sort(x);var i=function(){var N=false;var P=new Array();for(var O=0;O<n.hiddenWidgets.length;O++){var M=n.hiddenWidgets[O];if(d.jqx.isHidden(M.widget)){N=true;P.push(M)}else{if(M.callback){M.callback(H)}}}n.hiddenWidgets=P;if(!N){clearInterval(n.__resizeInterval)}};if(L==false){i();if(n.__resizeInterval){clearInterval(n.__resizeInterval)}return}if(n.__resizeInterval){clearInterval(n.__resizeInterval)}n.__resizeInterval=setInterval(function(){i()},100)}};if(n.hiddenWidgets&&n.hiddenWidgets.length>0){z(false)}n.hiddenWidgets=new Array();n.resizeHandlers.sort(x);for(var E=0;E<n.resizeHandlers.length;E++){var K=n.resizeHandlers[E];var G=K.widget;var D=K.data;if(!D){continue}if(!D.jqxWidget){continue}var w=D.jqxWidget.width;var J=D.jqxWidget.height;if(D.jqxWidget.base){if(w==undefined){w=D.jqxWidget.base.width}if(J==undefined){J=D.jqxWidget.base.height}}if(w===undefined&&J===undefined){w=D.jqxWidget.element.style.width;J=D.jqxWidget.element.style.height}var F=false;if(w!=null&&w.toString().indexOf("%")!=-1){F=true}if(J!=null&&J.toString().indexOf("%")!=-1){F=true}if(d.jqx.isHidden(G)){if(g(G)===-1){if(F||y===true){if(K.data.nestedWidget!==true){n.hiddenWidgets.push(K)}}}}else{if(y===undefined||y!==true){if(F){K.callback(H);if(n.watchedElementData){for(var B=0;B<n.watchedElementData.length;B++){if(n.watchedElementData[B].element==D.jqxWidget.element){n.watchedElementData[B].offsetWidth=D.jqxWidget.element.offsetWidth;n.watchedElementData[B].offsetHeight=D.jqxWidget.element.offsetHeight;break}}}if(n.hiddenWidgets.indexOf(K)>=0){n.hiddenWidgets.splice(n.hiddenWidgets.indexOf(K),1)}}if(D.jqxWidget.element){var A=D.jqxWidget.element.className;if(A.indexOf("dropdownlist")>=0||A.indexOf("datetimeinput")>=0||A.indexOf("combobox")>=0||A.indexOf("menu")>=0){if(D.jqxWidget.isOpened){var C=D.jqxWidget.isOpened();if(C){if(H&&H=="resize"&&d.jqx.mobile.isTouchDevice()){continue}D.jqxWidget.close()}}}}}}}z()};if(!this.resizeHandlers){this.resizeHandlers=new Array();var q=d(window);if(q.on){this._resizeTimer=null;this._initResize=null;q.on("resize.jqx",function(i){if(n._resizeTimer!=undefined){clearTimeout(n._resizeTimer)}if(!n._initResize){n._initResize=true;p(null,"resize")}else{n._resizeTimer=setTimeout(function(){p(null,"resize")},d.jqx.resizeDelay)}});q.on("orientationchange.jqx",function(i){p(null,"orientationchange")});q.on("orientationchanged.jqx",function(i){p(null,"orientationchange")})}else{q.bind("resize.jqx",function(i){p(null,"orientationchange")});q.bind("orientationchange.jqx",function(i){p(null,"orientationchange")});q.bind("orientationchanged.jqx",function(i){p(null,"orientationchange")})}}var h=k.data();if(r){if(o===-1){this.resizeHandlers.push({id:k[0].id,widget:k,callback:v,data:h})}}try{var f=h.jqxWidget.width;var u=h.jqxWidget.height;if(h.jqxWidget.base){if(f==undefined){f=h.jqxWidget.base.width}if(u==undefined){u=h.jqxWidget.base.height}}if(f===undefined&&u===undefined){f=h.jqxWidget.element.style.width;u=h.jqxWidget.element.style.height}var m=false;if(f!=null&&f.toString().indexOf("%")!=-1){m=true}if(u!=null&&u.toString().indexOf("%")!=-1){m=true}if(m){if(!this.watchedElementData){this.watchedElementData=[]}var n=this;var j=function(i){if(n.watchedElementData.forEach){n.watchedElementData.forEach(function(w){if(w.element.offsetWidth!==w.offsetWidth||w.element.offsetHeight!==w.offsetHeight){w.offsetWidth=w.element.offsetWidth;w.offsetHeight=w.element.offsetHeight;if(w.timer){clearTimeout(w.timer)}w.timer=setTimeout(function(){if(!d.jqx.isHidden(d(w.element))){w.callback()}else{w.timer=setInterval(function(){if(!d.jqx.isHidden(d(w.element))){clearInterval(w.timer);w.callback()}},100)}})}})}};n.watchedElementData.push({element:k[0],offsetWidth:k[0].offsetWidth,offsetHeight:k[0].offsetHeight,callback:v});if(!n.observer){n.observer=new MutationObserver(j);n.observer.observe(document.body,{attributes:true,childList:true,characterData:true})}}}catch(t){}if(d.jqx.isHidden(k)&&r===true){p(true)}d.jqx.resize=function(){p(null,"resize")}},parseJSON:function(g){if(!g||typeof g!=="string"){return null}var e=/^[\],:{}\s]*$/,i=/(?:^|:|,)(?:\s*\[)+/g,f=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,h=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g;g=d.trim(g);if(window.JSON&&window.JSON.parse){return window.JSON.parse(g)}if(e.test(g.replace(f,"@").replace(h,"]").replace(i,""))){return(new Function("return "+g))()}throw new Error("Invalid JSON: "+g)},html:function(f,g){if(!d(f).on||!d.access){return d(f).html(g)}try{return d.access(f,function(u){var h=f[0]||{},o=0,m=f.length;if(u===undefined){return h.nodeType===1?h.innerHTML.replace(rinlinejQuery,""):undefined}var t=/<(?:script|style|link)/i,p="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",k=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,r=/<([\w:]+)/,j=/<(?:script|object|embed|option|style)/i,n=new RegExp("<(?:"+p+")[\\s/>]","i"),s=/^\s+/,v={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};if(typeof u==="string"&&!t.test(u)&&(d.support.htmlSerialize||!n.test(u))&&(d.support.leadingWhitespace||!s.test(u))&&!v[(r.exec(u)||["",""])[1].toLowerCase()]){u=u.replace(k,"<$1></$2>");try{for(;o<m;o++){h=this[o]||{};if(h.nodeType===1){d.cleanData(h.getElementsByTagName("*"));h.innerHTML=u}}h=0}catch(q){}}if(h){f.empty().append(u)}},null,g,arguments.length)}catch(e){return d(f).html(g)}},hasTransform:function(g){var f="";f=g.css("transform");if(f==""||f=="none"){f=g.parents().css("transform");if(f==""||f=="none"){var e=d.jqx.utilities.getBrowser();if(e.browser=="msie"){f=g.css("-ms-transform");if(f==""||f=="none"){f=g.parents().css("-ms-transform")}}else{if(e.browser=="chrome"){f=g.css("-webkit-transform");if(f==""||f=="none"){f=g.parents().css("-webkit-transform")}}else{if(e.browser=="opera"){f=g.css("-o-transform");if(f==""||f=="none"){f=g.parents().css("-o-transform")}}else{if(e.browser=="mozilla"){f=g.css("-moz-transform");if(f==""||f=="none"){f=g.parents().css("-moz-transform")}}}}}}else{return f!=""&&f!="none"}}if(f==""||f=="none"){f=d(document.body).css("transform")}return f!=""&&f!="none"&&f!=null},getBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(f)||/(webkit)[ \/]([\w.]+)/.exec(f)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(f)||/(msie) ([\w.]+)/.exec(f)||f.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(f)||[];var g={browser:e[1]||"",version:e[2]||"0"};if(f.indexOf("rv:11.0")>=0&&f.indexOf(".net4.0c")>=0){g.browser="msie";g.version="11";e[1]="msie"}if(f.indexOf("edge")>=0){g.browser="msie";g.version="12";e[1]="msie"}g[e[1]]=e[1];return g}});d.jqx.browser=d.jqx.utilities.getBrowser();d.jqx.isHidden=function(f){if(!f||!f[0]){return false}var e=f[0].offsetWidth,g=f[0].offsetHeight;if(e===0||g===0){return true}else{return false}};d.jqx.ariaEnabled=true;d.jqx.aria=function(f,h,g){if(!d.jqx.ariaEnabled){return}if(h==undefined){d.each(f.aria,function(j,k){var m=!f.base?f.host.attr(j):f.base.host.attr(j);if(m!=undefined&&!d.isFunction(m)){var l=m;switch(k.type){case"number":l=new Number(m);if(isNaN(l)){l=m}break;case"boolean":l=m=="true"?true:false;break;case"date":l=new Date(m);if(l=="Invalid Date"||isNaN(l)){l=m}break}f[k.name]=l}else{var m=f[k.name];if(d.isFunction(m)){m=f[k.name]()}if(m==undefined){m=""}try{!f.base?f.host.attr(j,m.toString()):f.base.host.attr(j,m.toString())}catch(i){}}})}else{try{if(f.host){if(!f.base){if(f.host){if(f.element.setAttribute){f.element.setAttribute(h,g.toString())}else{f.host.attr(h,g.toString())}}else{f.attr(h,g.toString())}}else{if(f.base.host){f.base.host.attr(h,g.toString())}else{f.attr(h,g.toString())}}}else{if(f.setAttribute){f.setAttribute(h,g.toString())}}}catch(e){}}};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(f){var e=this.length;var g=Number(arguments[1])||0;g=(g<0)?Math.ceil(g):Math.floor(g);if(g<0){g+=e}for(;g<e;g++){if(g in this&&this[g]===f){return g}}return -1}}d.jqx.mobile=d.jqx.mobile||{};d.jqx.position=function(e){var h=parseInt(e.pageX);var g=parseInt(e.pageY);if(d.jqx.mobile.isTouchDevice()){var f=d.jqx.mobile.getTouches(e);var i=f[0];h=parseInt(i.pageX);g=parseInt(i.pageY)}return{left:h,top:g}};d.extend(d.jqx.mobile,{_touchListener:function(k,i){var f=function(l,n){var m=document.createEvent("MouseEvents");m.initMouseEvent(l,n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget);m._pageX=n.pageX;m._pageY=n.pageY;return m};var j={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var h=f(j[k.type],k);k.target.dispatchEvent(h);var g=k.target["on"+j[k.type]];if(typeof g==="function"){g(k)}},setMobileSimulator:function(f,h){if(this.isTouchDevice()){return}this.simulatetouches=true;if(h==false){this.simulatetouches=false}var g={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var e=this;if(window.addEventListener){var i=function(){for(var j in g){if(f.addEventListener){f.removeEventListener(j,e._touchListener);f.addEventListener(j,e._touchListener,false)}}};if(d.jqx.browser.msie){i()}else{i()}}},isTouchDevice:function(){if(this.touchDevice!=undefined){return this.touchDevice}var g="Browser CodeName: "+navigator.appCodeName+"";g+="Browser Name: "+navigator.appName+"";g+="Browser Version: "+navigator.appVersion+"";g+="Platform: "+navigator.platform+"";g+="User-agent header: "+navigator.userAgent+"";if(navigator.maxTouchPoints>1){}if(g.indexOf("Android")!=-1){return true}if(g.indexOf("IEMobile")!=-1){return true}if(g.indexOf("Windows Phone")!=-1){return true}if(g.indexOf("WPDesktop")!=-1){return true}if(g.indexOf("ZuneWP7")!=-1){return true}if(g.indexOf("BlackBerry")!=-1&&g.indexOf("Mobile Safari")!=-1){return true}if(g.indexOf("ipod")!=-1){return true}if(g.indexOf("nokia")!=-1||g.indexOf("Nokia")!=-1){return true}if(g.indexOf("Chrome/17")!=-1){return false}if(g.indexOf("CrOS")!=-1){return false}if(g.indexOf("Opera")!=-1&&g.indexOf("Mobi")==-1&&g.indexOf("Mini")==-1&&g.indexOf("Platform: Win")!=-1){return false}if(g.indexOf("HybridDeviceTouch")!=-1){return true}if(g.indexOf("HybridDeviceMouse")!=-1){return false}if(g.indexOf("Opera")!=-1&&g.indexOf("Mobi")!=-1&&g.indexOf("Opera Mobi")!=-1){return true}if(g.indexOf("Mozilla/5.0 (X11; Linux x86_64)")!=-1){return false}var h={ios:"i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ",android:"(Android |HTC_|Silk/)",blackberry:"BlackBerry(?:.*)Version/",rimTablet:"RIM Tablet OS ",webos:"(?:webOS|hpwOS)/",bada:"Bada/"};try{if(this.touchDevice!=undefined){return this.touchDevice}this.touchDevice=false;for(var k in h){if(h.hasOwnProperty(k)){var m=h[k];var j=g.match(new RegExp("(?:"+m+")([^\\s;]+)"));if(j){if(k.toString()=="blackberry"){this.touchDevice=false;return false}this.touchDevice=true;return true}}}var l=navigator.userAgent;if(navigator.platform.toLowerCase().indexOf("win")!=-1){if(l.indexOf("Windows Phone")>=0||l.indexOf("WPDesktop")>=0||l.indexOf("IEMobile")>=0||l.indexOf("ZuneWP7")>=0){this.touchDevice=true;return true}else{if(l.indexOf("Touch")>=0){var f=("MSPointerDown" in window)||("pointerdown" in window);if(f){this.touchDevice=true;return true}if(l.indexOf("ARM")>=0){this.touchDevice=true;return true}this.touchDevice=false;return false}}}if(navigator.platform.toLowerCase().indexOf("win")!=-1){this.touchDevice=false;return false}if(("ontouchstart" in window)||window.DocumentTouch&&document instanceof DocumentTouch){this.touchDevice=true}return this.touchDevice}catch(n){this.touchDevice=false;return false}},getLeftPos:function(e){var f=e.offsetLeft;while((e=e.offsetParent)!=null){if(e.tagName!="HTML"){f+=e.offsetLeft;if(document.all){f+=e.clientLeft}}}return f},getTopPos:function(f){var h=f.offsetTop;var e=d(f).coord();while((f=f.offsetParent)!=null){if(f.tagName!="HTML"){h+=(f.offsetTop-f.scrollTop);if(document.all){h+=f.clientTop}}}var g=navigator.userAgent.toLowerCase();var i=(g.indexOf("windows phone")!=-1||g.indexOf("WPDesktop")!=-1||g.indexOf("ZuneWP7")!=-1||g.indexOf("msie 9")!=-1||g.indexOf("msie 11")!=-1||g.indexOf("msie 10")!=-1)&&g.indexOf("touch")!=-1;if(i){return e.top}if(this.isSafariMobileBrowser()){if(this.isSafari4MobileBrowser()&&this.isIPadSafariMobileBrowser()){return h}if(g.indexOf("version/7")!=-1){return e.top}if(g.indexOf("version/6")!=-1||g.indexOf("version/5")!=-1){h=h+d(window).scrollTop()}if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return h}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return h}return e.top}return h},isChromeMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("android")!=-1;return e},isOperaMiniMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("opera mini")!=-1||f.indexOf("opera mobi")!=-1;return e},isOperaMiniBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("opera mini")!=-1;return e},isNewSafariMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("ipod")!=-1;e=e&&(f.indexOf("version/5")!=-1);return e},isSafari4MobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("ipod")!=-1;e=e&&(f.indexOf("version/4")!=-1);return e},isWindowsPhone:function(){var f=navigator.userAgent.toLowerCase();var e=(f.indexOf("windows phone")!=-1||f.indexOf("WPDesktop")!=-1||f.indexOf("ZuneWP7")!=-1||f.indexOf("msie 9")!=-1||f.indexOf("msie 11")!=-1||f.indexOf("msie 10")!=-1&&f.indexOf("touch")!=-1);return e},isSafariMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return true}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return true}var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("ipod")!=-1||f.indexOf("mobile safari")!=-1;return e},isIPadSafariMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1;return e},isMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("android")!=-1;return e},getTouches:function(f){if(f.originalEvent){if(f.originalEvent.touches&&f.originalEvent.touches.length){return f.originalEvent.touches}else{if(f.originalEvent.changedTouches&&f.originalEvent.changedTouches.length){return f.originalEvent.changedTouches}}}if(!f.touches){f.touches=new Array();f.touches[0]=f.originalEvent!=undefined?f.originalEvent:f;if(f.originalEvent!=undefined&&f.pageX){f.touches[0]=f}if(f.type=="mousemove"){f.touches[0]=f}}return f.touches},getTouchEventName:function(e){if(this.isWindowsPhone()){var f=navigator.userAgent.toLowerCase();if(f.indexOf("windows phone 7")!=-1){if(e.toLowerCase().indexOf("start")!=-1){return"MSPointerDown"}if(e.toLowerCase().indexOf("move")!=-1){return"MSPointerMove"}if(e.toLowerCase().indexOf("end")!=-1){return"MSPointerUp"}}if(e.toLowerCase().indexOf("start")!=-1){return"pointerdown"}if(e.toLowerCase().indexOf("move")!=-1){return"pointermove"}if(e.toLowerCase().indexOf("end")!=-1){return"pointerup"}}else{return e}},dispatchMouseEvent:function(f,i,h){if(this.simulatetouches){return}var g=document.createEvent("MouseEvent");g.initMouseEvent(f,true,true,i.view,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);if(h!=null){h.dispatchEvent(g)}},getRootNode:function(e){while(e.nodeType!==1){e=e.parentNode}return e},setTouchScroll:function(e,f){if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[f]=e},touchScroll:function(D,O,ab,J,z,p){if(D==null){return}var I=this;var h=0;var t=0;var i=0;var k=0;var v=0;var l=0;if(!this.scrolling){this.scrolling=[]}this.scrolling[J]=false;var m=false;var r=d(D);var T=["select","input","textarea"];var Z=0;var L=0;if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[J]=true;var J=J;var y=this.getTouchEventName("touchstart")+".touchScroll";var F=this.getTouchEventName("touchend")+".touchScroll";var ad=this.getTouchEventName("touchmove")+".touchScroll";var n,Y,B,aj,X,aa,al,S,ac,f,H,af,ah,Q,g,x,w,U,e,G,ai,q;S=O;var al=0;var ac=0;var j=0;var V=0;var ak=0;var aa=z.jqxScrollBar("max");var q=325;function C(ao){if(ao.targetTouches&&(ao.targetTouches.length>=1)){return ao.targetTouches[0].clientY}else{if(ao.originalEvent&&ao.originalEvent.clientY!==undefined){return ao.originalEvent.clientY}else{var an=I.getTouches(ao);return an[0].clientY}}}function ag(ao){if(ao.targetTouches&&(ao.targetTouches.length>=1)){return ao.targetTouches[0].clientX}else{if(ao.originalEvent&&ao.originalEvent.clientX!==undefined){return ao.originalEvent.clientX}else{var an=I.getTouches(ao);return an[0].clientX}}}var K=function(){var ar,ao,at,aq;ar=Date.now();ao=ar-x;x=ar;at=ac-g;var ap=j-aj;g=ac;aj=j;H=true;aq=1000*at/(1+ao);var an=1000*ap/(1+ao);ah=0.8*aq+0.2*ah;Q=0.8*an+0.2*Q};var E=false;var Z=function(ao){if(!I.enableScrolling[J]){return true}if(d.inArray(ao.target.tagName.toLowerCase(),T)!==-1){return}ac=p.jqxScrollBar("value");j=z.jqxScrollBar("value");var ap=I.getTouches(ao);var aq=ap[0];if(ap.length==1){I.dispatchMouseEvent("mousedown",aq,I.getRootNode(aq.target))}aa=z.jqxScrollBar("max");S=p.jqxScrollBar("max");function an(ar){E=false;H=true;f=C(ar);ai=ag(ar);ah=U=Q=0;g=ac;aj=j;x=Date.now();clearInterval(w);w=setInterval(K,100);V=ac;ak=j;if(ac>0&&ac<S&&p[0].style.visibility!="hidden"){}}an(ao);m=false;t=aq.pageY;v=aq.pageX;if(I.simulatetouches){if(aq._pageY!=undefined){t=aq._pageY;v=aq._pageX}}I.scrolling[J]=true;h=0;k=0;return true};if(r.on){r.on(y,Z)}else{r.bind(y,Z)}var ae=function(ao,an){ac=(ao>S)?S:(ao<al)?al:ao;ab(null,ao,0,0,an);return(ao>S)?"max":(ao<al)?"min":"value"};var o=function(ao,an){j=(ao>aa)?aa:(ao<al)?al:ao;ab(ao,null,0,0,an);return(ao>aa)?"max":(ao<al)?"min":"value"};function W(){var an,ao;if(U){an=Date.now()-x;ao=-U*Math.exp(-an/q);if(ao>0.5||ao<-0.5){ae(e+ao);requestAnimationFrame(W)}else{ae(e)}}}function P(){var an,ao;if(U){an=Date.now()-x;ao=-U*Math.exp(-an/q);if(ao>0.5||ao<-0.5){o(G+ao);requestAnimationFrame(P)}else{o(G)}}}var A=function(an){if(!I.enableScrolling[J]){return true}if(!I.scrolling[J]){return true}if(E){an.preventDefault();an.stopPropagation()}var at=I.getTouches(an);if(at.length>1){return true}var ao=at[0].pageY;var aq=at[0].pageX;if(I.simulatetouches){if(at[0]._pageY!=undefined){ao=at[0]._pageY;aq=at[0]._pageX}}var aw=ao-t;var ax=aq-v;L=ao;var av=aq;i=aw-h;l=ax-k;m=true;h=aw;k=ax;var ap=z!=null?z[0].style.visibility!="hidden":true;var au=p!=null?p[0].style.visibility!="hidden":true;function ar(aA){var aC,aB,az;if(H){aC=C(aA);az=ag(aA);aB=f-aC;X=ai-az;var ay="value";if(aB>2||aB<-2){f=aC;ay=ae(ac+aB,aA);K();if(ay=="min"&&V===0){return true}if(ay=="max"&&V===S){return true}if(!au){return true}aA.preventDefault();aA.stopPropagation();E=true;return false}else{if(X>2||X<-2){ai=az;ay=o(j+X,aA);K();if(ay=="min"&&ak===0){return true}if(ay=="max"&&ak===aa){return true}if(!ap){return true}E=true;aA.preventDefault();aA.stopPropagation();return false}}aA.preventDefault()}}if(ap||au){if((ap)||(au)){ar(an)}}};if(r.on){r.on(ad,A)}else{r.bind(ad,A)}var u=function(ao){if(!I.enableScrolling[J]){return true}var ap=I.getTouches(ao)[0];if(!I.scrolling[J]){return true}H=false;clearInterval(w);if(ah>10||ah<-10){U=0.8*ah;e=Math.round(ac+U);x=Date.now();requestAnimationFrame(W)}else{if(Q>10||Q<-10){U=0.8*Q;G=Math.round(j+U);x=Date.now();requestAnimationFrame(P)}else{}}I.scrolling[J]=false;if(m){I.dispatchMouseEvent("mouseup",ap,ao.target)}else{var ap=I.getTouches(ao)[0],an=I.getRootNode(ap.target);I.dispatchMouseEvent("mouseup",ap,an);I.dispatchMouseEvent("click",ap,an);return true}};if(this.simulatetouches){var s=d(window).on!=undefined||d(window).bind;var R=function(an){try{u(an)}catch(ao){}I.scrolling[J]=false};d(window).on!=undefined?d(document).on("mouseup.touchScroll",R):d(document).bind("mouseup.touchScroll",R);if(window.frameElement){if(window.top!=null){var N=function(an){try{u(an)}catch(ao){}I.scrolling[J]=false};if(window.top.document){d(window.top.document).on?d(window.top.document).on("mouseup",N):d(window.top.document).bind("mouseup",N)}}}var am=d(document).on!=undefined||d(document).bind;var M=function(an){if(!I.scrolling[J]){return true}I.scrolling[J]=false;var ap=I.getTouches(an)[0],ao=I.getRootNode(ap.target);I.dispatchMouseEvent("mouseup",ap,ao);I.dispatchMouseEvent("click",ap,ao)};d(document).on!=undefined?d(document).on("touchend",M):d(document).bind("touchend",M)}if(r.on){r.on("dragstart",function(an){an.preventDefault()});r.on("selectstart",function(an){an.preventDefault()})}r.on?r.on(F+" touchcancel.touchScroll",u):r.bind(F+" touchcancel.touchScroll",u)}});d.jqx.cookie=d.jqx.cookie||{};d.extend(d.jqx.cookie,{cookie:function(h,i,f){if(arguments.length>1&&String(i)!=="[object Object]"){f=d.extend({},f);if(i===null||i===undefined){f.expires=-1}if(typeof f.expires==="number"){var k=f.expires,g=f.expires=new Date();g.setDate(g.getDate()+k)}i=String(i);return(document.cookie=[encodeURIComponent(h),"=",f.raw?i:encodeURIComponent(i),f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join(""))}f=i||{};var e,j=f.raw?function(l){return l}:decodeURIComponent;return(e=new RegExp("(?:^|; )"+encodeURIComponent(h)+"=([^;]*)").exec(document.cookie))?j(e[1]):null}});d.jqx.string=d.jqx.string||{};d.extend(d.jqx.string,{replace:function(i,g,h){if(g===h){return this}var e=i;var f=e.indexOf(g);while(f!=-1){e=e.replace(g,h);f=e.indexOf(g)}return e},contains:function(e,f){if(e==null||f==null){return false}return e.indexOf(f)!=-1},containsIgnoreCase:function(e,f){if(e==null||f==null){return false}return e.toString().toUpperCase().indexOf(f.toString().toUpperCase())!=-1},equals:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);if(f.length==e.length){return e.slice(0,f.length)==f}return false},equalsIgnoreCase:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);if(f.length==e.length){return e.toUpperCase().slice(0,f.length)==f.toUpperCase()}return false},startsWith:function(e,f){if(e==null||f==null){return false}return e.slice(0,f.length)==f},startsWithIgnoreCase:function(e,f){if(e==null||f==null){return false}return e.toUpperCase().slice(0,f.length)==f.toUpperCase()},normalize:function(e){if(e.charCodeAt(e.length-1)==65279){e=e.substring(0,e.length-1)}return e},endsWith:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);return e.slice(-f.length)==f},endsWithIgnoreCase:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);return e.toUpperCase().slice(-f.length)==f.toUpperCase()}});d.extend(d.easing,{easeOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*((g=g/i-1)*g*((h+1)*g+h)+1)+e},easeInQuad:function(f,g,e,i,h){return i*(g/=h)*g+e},easeInOutCirc:function(f,g,e,i,h){if((g/=h/2)<1){return -i/2*(Math.sqrt(1-g*g)-1)+e}return i/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e},easeInCubic:function(f,g,e,i,h){return i*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,i,h){return i*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g+e}return i/2*((g-=2)*g*g+2)+e},easeInSine:function(f,g,e,i,h){return -i*Math.cos(g/h*(Math.PI/2))+i+e},easeOutSine:function(f,g,e,i,h){return i*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e}})})(b);(function(d){if(d.event&&d.event.special){d.extend(d.event.special,{close:{noBubble:true},open:{noBubble:true},cellclick:{noBubble:true},rowclick:{noBubble:true},tabclick:{noBubble:true},selected:{noBubble:true},expanded:{noBubble:true},collapsed:{noBubble:true},valuechanged:{noBubble:true},expandedItem:{noBubble:true},collapsedItem:{noBubble:true},expandingItem:{noBubble:true},collapsingItem:{noBubble:true}})}if(d.fn.extend){d.fn.extend({ischildof:function(i){if(!d(this).parents){var e=i.element.contains(this.element);return e}var g=d(this).parents().get();for(var f=0;f<g.length;f++){if(typeof i!="string"){var h=g[f];if(i!==undefined){if(h==i[0]){return true}}}else{if(i!==undefined){if(d(g[f]).is(i)){return true}}}}return false}})}d.fn.jqxProxy=function(){var g=d(this).data().jqxWidget;var e=Array.prototype.slice.call(arguments,0);var f=g.element;if(!f){f=g.base.element}return d.jqx.jqxWidgetProxy(g.widgetName,f,e)};var c=d.originalVal=d.fn.val;d.fn.val=function(f){if(typeof f=="undefined"){if(d(this).hasClass("jqx-widget")||d(this).hasClass("jqx-input-group")){var e=d(this).data().jqxWidget;if(e&&e.val){return e.val()}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var e=d(this).find(".jqx-widget").data().jqxWidget;if(e&&e.val){return e.val()}}return c.call(this)}else{if(d(this).hasClass("jqx-widget")||d(this).hasClass("jqx-input-group")){var e=d(this).data().jqxWidget;if(e&&e.val){if(arguments.length!=2){return e.val(f)}else{return e.val(f,arguments[1])}}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var e=d(this).find(".jqx-widget").data().jqxWidget;if(e&&e.val){if(arguments.length!=2){return e.val(f)}else{return e.val(f,arguments[1])}}}return c.call(this,f)}};if(d.fn.modal&&d.fn.modal.Constructor){d.fn.modal.Constructor.prototype.enforceFocus=function(){d(document).off("focusin.bs.modal").on("focusin.bs.modal",d.proxy(function(f){if(this.$element[0]!==f.target&&!this.$element.has(f.target).length){if(d(f.target).parents().hasClass("jqx-popup")){return true}this.$element.trigger("focus")}},this))}}d.fn.coord=function(p){var g,l,k={top:0,left:0},h=this[0],n=h&&h.ownerDocument;if(!n){return}g=n.documentElement;if(!d.contains(g,h)){return k}if(typeof h.getBoundingClientRect!==undefined){k=h.getBoundingClientRect()}var f=function(q){return d.isWindow(q)?q:q.nodeType===9?q.defaultView||q.parentWindow:false};l=f(n);var j=0;var e=0;var i=navigator.userAgent.toLowerCase();var o=i.indexOf("ipad")!=-1||i.indexOf("iphone")!=-1;if(o){j=2}if(true==p){if(document.body.style.position!="static"&&document.body.style.position!=""){var m=d(document.body).coord();j=-m.left;e=-m.top}}return{top:e+k.top+(l.pageYOffset||g.scrollTop)-(g.clientTop||0),left:j+k.left+(l.pageXOffset||g.scrollLeft)-(g.clientLeft||0)}};d.jqx.ripplers=[];d.jqx.ripple=function(g,f,p){if(!f){f=g}var j=d(g);var k=false;j.append("<span class='ink'></span>");var q=j.find(".ink");var e=false;for(var h=0;h<d.jqx.ripplers.length;h++){var l=d.jqx.ripplers[h];if(l.element[0]===g[0]){e=true;break}}if(!e){d.jqx.ripplers.push({ink:q,element:g,hostElement:f,hostElementType:p})}if(p==="checkbox"||p==="radiobutton"){var m=Math.max(j.outerWidth(),j.outerHeight());q.css({height:m,width:m});var o=j.width()/2-q.width()/2;var n=j.height()/2-q.height()/2;q.css({top:n+"px",left:o+"px"})}if(d.jqx.ripplers.length===1){d(document).on("mouseup",function(t){d.jqx.ripple.mouseCaptured=false;for(var s=0;s<d.jqx.ripplers.length;s++){var r=d.jqx.ripplers[s];r.ink.removeClass("active");r.element.removeClass("active");if(p!=="checkbox"&&p!=="radiobutton"){if(r.ink.hasClass("animate")){r.ink.removeClass("animate")}}}})}f.off("mousedown.ripple");f.on("mousedown.ripple",function(r){var i=d(g);d.jqx.ripple.mouseCaptured=true;setTimeout(function(){if(i.find(".ink").length==0){i.append("<span class='ink'></span>")}var t=i.find(".ink");t.removeClass("animate");if(!t.height()&&!t.width()){var u=Math.max(i.outerWidth(),i.outerHeight());t.css({height:u,width:u})}if(p==="checkbox"||p==="radiobutton"){if(p==="checkbox"){if(f.jqxCheckBox("disabled")){return}}if(p==="radiobutton"){if(f.jqxRadioButton("disabled")){return}}var s=i.width()/2-t.width()/2;var v=i.height()/2-t.height()/2;t.css({top:v+"px",left:s+"px"}).addClass("animate");t.on("animationend",function(){if(d.jqx.ripple.mouseCaptured){t.removeClass("animate");t.addClass("active");g.addClass("active")}});return}var s=r.pageX-i.offset().left-t.width()/2;var v=r.pageY-i.offset().top-t.height()/2;t.css({top:v+"px",left:s+"px"}).addClass("animate")})})}})(b)})();
/***/ }),
/***/ 471:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(d){var c=(function(){var e={},w,s,l,n,i,j,q,r;function f(E,D,z,C,A,x,y){var B=this;if(!B){B=window.jqx}B.hierarchy=A;B.exportFormat=x;B.filename=y;E.beginFile(y);p(E);m(E);E.endFile(y);return E.getFile()}function p(B){var z=true;d.each(s,function(){if(this.hidden){z=false;return false}});B.beginHeader(z);var y=0;for(var x in s){if(s[x].columnsDataFields){x=s[x].columnsDataFields[y].displayfield}var A=o(x,s[x]);B.appendHeaderCell(s[x],x,A,z,y);y++}B.endHeader(z)}function m(A){var z=this;if(!z){z=window.jqx}A.beginBody();if(z.hierarchy){var y=function(C){for(var B=0;B<C.length;B+=1){if(C[B]!==undefined){A.hierarchy=true;A.beginRow(C[B].level);g(A,C[B],B,true);if(C[B].records){A.beginRows(C[B].level);y(C[B].records);A.endRows(C[B].level)}A.endRow(C[B].level)}}};y(w);A.endBody();return}for(var x=0;x<w.length;x+=1){if(w[x]!==undefined){g(A,w[x],x)}}A.endBody()}function g(z,C,A,F){var E=this;if(!E){E=window.jqx}var y;if(F!=true){z.beginRow()}var D=0;for(var B in s){if(s[B].columnsDataFields){B=s[B].columnsDataFields[D].displayfield}y=u(A,B);if(y){if(y.level!=undefined){if(y.index-1>C.level&&y.index-1<y.maxLevel){D++;continue}}if(y.maxLevel!=undefined){if(y.index-1==y.maxLevel){y=d.extend({},y);y.merge=y.maxLevel-C.level-1}}}if(C.level!=undefined&&C.label!=undefined){if(E.exportFormat==="xml"||E.exportFormat==="json"){var x={};x.text="group";z.appendBodyCell(C.label,x,y,C,D,"group");break}}if(C.hasOwnProperty(B)){z.appendBodyCell(C[B],s[B],y,C,D)}else{z.appendBodyCell("",s[B],y,C,D)}D++}if(F!=true){z.endRow()}}function o(y,z){if(z.style){return l[z.style]}var x=v();if(x.length>0){return x[0].style}return null}function v(){if(!i){i=new Array();d.each(l,function(x,y){i[i.length]={name:x,style:y}})}return i}function u(C,B){var D=s[B];if(D){if(D.customCellStyles){var z=D.customCellStyles[C];if(z){return l[z]}}if(D.cellStyle){if(D.cellAltStyle){var y=C%2;if(y==0){return l[D.cellStyle]}return l[D.cellAltStyle]}return l[D.cellStyle]}else{var x=v();if(x.length>0){var y=C%(x.length-1);var A=x[y+1].style;return A}}}return null}function t(A,y,z){var x=document.createElement("input");x.name=y;x.value=A;x.type="hidden";z.appendChild(x);return x}function h(z,x,y){var A=document.createElement("textarea");A.name=x;A.value=z;y.appendChild(A);return A}function k(y,B,A,x,C){var z=document.createElement("form");t(y,"filename",z);t(B,"format",z);h(A,"content",z);if(x==undefined||x==""){if(window&&window.location.toString().indexOf("jqwidgets.com")>=0){x="https://jqwidgets.com/export_server/dataexport.php"}else{x="http://jquerygrid.net/export_server/dataexport.php"}}z.action=x;z.method="post";if(C){z.acceptCharset=C}document.body.appendChild(z);return z}n=function(C,A,z,y,B,x){if(!(this instanceof c)){return new c(C,A,z,B,x)}w=C;s=A;l=z;this.exportTo=function(M,J,I,D){M=M.toString().toLowerCase();var F=e[M];if(typeof F==="undefined"){throw"You can't export to "+M+" format."}if(M==="pdf"&&D==undefined){var O=this.exportTo(M,J,M,"pdf");if(!d.jqx.pdfExport){d.jqx.pdfExport={orientation:"portrait",paperSize:"a4"}}var N=new b(d.jqx.pdfExport.orientation,"pt",d.jqx.pdfExport.paperSize);N.cellInitialize();var L=d(O).find("th");var K=d(O).find("tr");var P=0;N.setFontSize(13*72/96);var H=595;switch(d.jqx.pdfExport.paperSize){case"legal":var H=612;if(d.jqx.pdfExport.orientation!=="portrait"){H=1008}break;case"letter":var H=612;if(d.jqx.pdfExport.orientation!=="portrait"){H=792}break;case"a3":var H=841;if(d.jqx.pdfExport.orientation!=="portrait"){H=1190}break;case"a4":var H=595;if(d.jqx.pdfExport.orientation!=="portrait"){H=842}break;case"a5":var H=420;if(d.jqx.pdfExport.orientation!=="portrait"){H=595}break}H-=20;var G=0;var E=[];d.each(L,function(Q){var R=parseInt(this.style.width);if(isNaN(R)){R=25}var S=R*72/96;E[Q]=S;G+=S});if(L.length===0){d.each(K[0].cells,function(Q){var R=parseInt(this.style.width);if(isNaN(R)){R=H/K[0].cells.length}var S=R*72/96;E[Q]=S;G+=S})}if(G>H){d.each(E,function(Q){E[Q]=(E[Q]/G)*100;E[Q]=E[Q]*H/100})}d.each(L,function(R){var V=E[R];var U=25*72/96;var T=N.getTextDimensions(d(this).html());var S=d(this).html();if(T.w+3>V){var Q=N.splitTextToSize(S,V-3);var W=Q[0];if(W.length>3){S=W.substring(0,W.length-3)+"..."}else{S=W.substring(0,1)+"..."}var Q=N.splitTextToSize(S,V-3);var W=Q[0];if(W!=S){S=W}}N.cell(10,10,V,U,S,P)});P++;d.each(K,function(X){if(X===0){return true}var R=d(this).children();var S=R.length>L.length&&L.length>0;if(S){var aa=R.length-L.length;var ab="";var Z=E[0];var W=25*72/96;for(var T=0;T<=aa;T++){var Q=R[T].innerHTML;if(Q==="+"||Q==="-"){Q=Q+" "}if(Q===" "){Q=" "}ab+=Q}var V=N.getTextDimensions(ab);if(V.w+3>Z){var Y=N.splitTextToSize(ab,Z-3);var U=Y[0];if(U.length>3){ab=U.substring(0,U.length-3)+"..."}else{ab=U.substring(0,1)+"..."}var Y=N.splitTextToSize(ab,Z-3);var U=Y[0];if(U!=ab){ab=U}}N.cell(10,10,Z,W,ab,P);for(var T=aa+1;T<R.length;T++){var X=T-aa;var Z=E[X];var W=25*72/96;var ab=d(R[T]).html();var V=N.getTextDimensions(d(R[T]).html());if(V.w+3>Z){var Y=N.splitTextToSize(ab,Z-3);var U=Y[0];if(U.length>3){ab=U.substring(0,U.length-3)+"..."}else{ab=U.substring(0,1)+"..."}var Y=N.splitTextToSize(ab,Z-3);var U=Y[0];if(U!=ab){ab=U}}N.cell(10,10,Z,W,ab,P)}P++;return true}d.each(R,function(ad){var ah=E[ad];var ag=25*72/96;var af=d(this).html();var ae=N.getTextDimensions(d(this).html());if(ae.w+3>ah){var ac=N.splitTextToSize(af,ah-3);var ai=ac[0];if(ai.length>3){af=ai.substring(0,ai.length-3)+"..."}else{af=ai.substring(0,1)+"..."}var ac=N.splitTextToSize(af,ah-3);var ai=ac[0];if(ai!=af){af=ai}}N.cell(10,10,ah,ag,af,P)});P++});if(d.jqx.browser.msie&&d.jqx.browser.version<10){throw new Error("PDF export requires a browser with HTML5 support");return}return N}return f(F,w,s,l,J,I,D)};this.exportToFile=function(N,D,Q,H,K){if(N==="pdf"){var P=this.exportTo(N,K,N,D);if(!d.jqx.pdfExport){d.jqx.pdfExport={orientation:"portrait",paperSize:"a4"}}var O=new b(d.jqx.pdfExport.orientation,"pt",d.jqx.pdfExport.paperSize);if(H=="utf-8"||H=="UTF-8"){O.setFont("courier","normal")}O.cellInitialize();var M=d(P).find("th");var L=d(P).find("tr");var R=0;O.setFontSize(13*72/96);var I=595;switch(d.jqx.pdfExport.paperSize){case"legal":var I=612;if(d.jqx.pdfExport.orientation!=="portrait"){I=1008}break;case"letter":var I=612;if(d.jqx.pdfExport.orientation!=="portrait"){I=792}break;case"a3":var I=841;if(d.jqx.pdfExport.orientation!=="portrait"){I=1190}break;case"a4":var I=595;if(d.jqx.pdfExport.orientation!=="portrait"){I=842}break;case"a5":var I=420;if(d.jqx.pdfExport.orientation!=="portrait"){I=595}break}I-=20;var G=0;var E=[];d.each(M,function(S){var T=parseInt(this.style.width);if(isNaN(T)){T=25}var U=T*72/96;E[S]=U;G+=U});if(M.length===0){d.each(L[0].cells,function(S){var T=parseInt(this.style.width);if(isNaN(T)){T=I/L[0].cells.length}var U=T*72/96;E[S]=U;G+=U})}if(G>I){d.each(E,function(S){E[S]=(E[S]/G)*100;E[S]=E[S]*I/100})}d.each(M,function(T){var X=E[T];var W=25*72/96;var V=O.getTextDimensions(d(this).html());var U=d(this).html();if(V.w+3>X){var S=O.splitTextToSize(U,X-3);var Y=S[0];if(Y.length>3){U=Y.substring(0,Y.length-3)+"..."}else{U=Y.substring(0,1)+"..."}var S=O.splitTextToSize(U,X-3);var Y=S[0];if(Y!=U){U=Y}}O.cell(10,10,X,W,U,R)});R++;d.each(L,function(Z){if(Z===0){return true}var T=d(this).children();var U=T.length>M.length&&M.length>0;if(U){var ac=T.length-M.length;var ad="";var ab=E[0];var Y=25*72/96;for(var V=0;V<=ac;V++){var S=T[V].innerHTML;if(S==="+"||S==="-"){S=S+" "}if(S===" "){S=" "}ad+=S}var X=O.getTextDimensions(ad);if(X.w+3>ab){var aa=O.splitTextToSize(ad,ab-3);var W=aa[0];if(W.length>3){ad=W.substring(0,W.length-3)+"..."}else{ad=W.substring(0,1)+"..."}var aa=O.splitTextToSize(ad,ab-3);var W=aa[0];if(W!=ad){ad=W}}O.cell(10,10,ab,Y,ad,R);for(var V=ac+1;V<T.length;V++){var Z=V-ac;var ab=E[Z];var Y=25*72/96;var ad=d(T[V]).html();if(ad===" "){ad=" "}var X=O.getTextDimensions(d(T[V]).html());if(X.w+3>ab){var aa=O.splitTextToSize(ad,ab-3);var W=aa[0];if(W.length>3){ad=W.substring(0,W.length-3)+"..."}else{ad=W.substring(0,1)+"..."}var aa=O.splitTextToSize(ad,ab-3);var W=aa[0];if(W!=ad){ad=W}}O.cell(10,10,ab,Y,ad,R)}R++;return true}d.each(T,function(af){var aj=E[af];var ai=25*72/96;var ah=d(this).html();if(ah===" "){ah=" "}var ag=O.getTextDimensions(d(this).html());if(ag.w+3>aj){var ae=O.splitTextToSize(ah,aj-3);var ak=ae[0];if(ak.length>3){ah=ak.substring(0,ak.length-3)+"..."}else{ah=ak.substring(0,1)+"..."}var ae=O.splitTextToSize(ah,aj-3);var ak=ae[0];if(ak!=ah){ah=ak}}O.cell(10,10,aj,ai,ah,R)});R++});if(d.jqx.browser.msie&&d.jqx.browser.version<10){throw new Error("PDF export requires a browser with HTML5 support");return}O.save(D+".pdf");return}var J=this.exportTo(N,K,N,D),F=k(D,N,J,Q,H);F.submit();document.body.removeChild(F)};this.exportToLocalFile=function(H,E,F,D){var G=this.exportTo(H,F,D);document.location.href="data:application/octet-stream;filename="+E+","+encodeURIComponent(G)}};n.extend=function(x,y){if(y instanceof d.jqx.dataAdapter.DataExportModuleBase){e[x]=y}else{throw"The module "+x+" is not instance of DataExportModuleBase."}};return n}());d.jqx.dataAdapter.ArrayExporter=c})(jqxBaseFramework);(function(d){var c=function(){this.formatData=function(h,g,e,j){if(g==="date"){var f="";if(typeof h==="string"){f=d.jqx.dataFormat.tryparsedate(h);h=f}if(h===""||h===null){return""}f=d.jqx.dataFormat.formatdate(h,e,j);if((f&&f.toString()=="NaN")||f==null){return""}h=f}else{if(g==="number"||g==="float"||g==="int"||g=="integer"){if(h===""||h===null){return""}if(!isNaN(new Number(h))){var i=d.jqx.dataFormat.formatnumber(h,e,j);if(i.toString()=="NaN"){return""}else{h=i}}}else{h=h}}if(h===null){return""}return h};this.getFormat=function(h){var e=h?h.formatString:"";var g=h?h.localization:"";var f="string";f=h?h.type:"string";if(f=="number"||f=="float"){if(!e){e="f2"}}if(f=="int"||f=="integer"){if(!e){e="n0"}}if(f=="date"){if(!e){e="d"}}return{type:f,formatString:e,localization:g}};this.beginFile=function(){throw"Not implemented!"};this.beginHeader=function(){throw"Not implemented!"};this.appendHeaderCell=function(){throw"Not implemented!"};this.endHeader=function(){throw"Not implemented!"};this.beginBody=function(){throw"Not implemented!"};this.beginRow=function(){throw"Not implemented!"};this.beginRows=function(){throw"Not implemented!"};this.endRows=function(){throw"Not implemented!"};this.appendBodyCell=function(){throw"Not implemented!"};this.endRow=function(){throw"Not implemented!"};this.endBody=function(){throw"Not implemented!"};this.endFile=function(){throw"Not implemented!"};this.getFile=function(){throw"Not implemented!"}};d.jqx.dataAdapter.DataExportModuleBase=c})(jqxBaseFramework);(function(f){var e=function(l){var g,j,i;var n=0;var k=this;this.beginFile=function(){g=""};this.beginHeader=function(){};this.appendHeaderCell=function(s,t,r,o,p){if(r){if(r.level!=undefined){if(p<r.maxLevel){return}else{if(p===r.maxLevel){if(o){m(s.text)}for(var q=0;q<r.maxLevel;q++){m("")}return}}}}i=o;if(o){m(s.text)}};this.endHeader=function(){this.endRow()};this.beginBody=function(){n=0};this.beginRow=function(){if((n>0)||(n==0&&i)){g+="\n"}n++};this.appendBodyCell=function(s,o,r,t,p){if(r){if(r.maxLevel!=undefined){if(p===r.maxLevel){m(s,o);for(var q=0;q<r.maxLevel-t.level-1;q++){m("",o)}return}}}m(s,o)};this.endRow=function(){g=g.substring(0,g.length-1)};this.endBody=function(){};this.endFile=function(){};this.getFile=function(){return g};function h(o,q){if(q){var p=k.getFormat(q);o=k.formatData(o,p.type,p.formatString,p.localization)}o='"'+o+'"';return o}function m(o,p){o=h(o,p);g+=o+l}};e.prototype=new f.jqx.dataAdapter.DataExportModuleBase();var c=function(){};c.prototype=new e(",");var d=function(){};d.prototype=new e("\t");f.jqx.dataAdapter.ArrayExporter.extend("csv",new c());f.jqx.dataAdapter.ArrayExporter.extend("tsv",new d())})(jqxBaseFramework);(function(f){var c=function(){var k=false;var i;var j;var l=0;this.setPDF=function(){k=true};this.beginFile=function(m){if(k||m==undefined){i='<table style="empty-cells: show;" cellspacing="0" cellpadding="2">'}else{i='<html>\n\t<head>\n\t\t<title></title>\n\t\t<meta http-equiv=Content-type content="text/html; charset=UTF-8">\n\t</head>\n\t<body>\n\t\t<table style="empty-cells: show;" cellspacing="0" cellpadding="2">'}};this.beginHeader=function(){if(k){i+="\n\t<thead><tr>"}else{i+="\n\t\t\t<thead>"}};this.appendHeaderCell=function(o,p,n,m){j=m;if(!m){return}if(k){i+='\n\t\t\t\t<th style="'+h(n)+'">'+o.text+"</th>"}else{if(n.disabled){return}if(n.merge){if(o.width){i+="\n\t\t\t\t<th colspan="+(1+n.merge)+' style="width: '+o.width+"px; "+h(n)+'">'+o.text+"</th>"}else{i+="\n\t\t\t\t<th colspan="+(1+n.merge)+' style="'+h(n)+'">'+o.text+"</th>"}}else{if(o.width){i+='\n\t\t\t\t<th style="width: '+o.width+"px; "+h(n)+'">'+o.text+"</th>"}else{i+='\n\t\t\t\t<th style="'+h(n)+'">'+o.text+"</th>"}}}};this.endHeader=function(){if(k){i+="\n\t</tr></thead>"}else{i+="\n\t\t\t</thead>"}};this.beginBody=function(){if(k){i+="\n\t<tbody>"}else{i+="\n\t\t\t<tbody>"}l=0};this.beginRow=function(){if(k){i+="\n\t<tr>"}else{i+="\n\t\t\t\t<tr>"}l++};this.appendBodyCell=function(n,p,m){var o=this.getFormat(p);if(n===""){n=" "}if(k){if(l==1&&!j){i+='\n\t\t\t\t\t<td style="'+h(m)+' border-top-width: 1px;">'+this.formatData(n,o.type,o.formatString,o.localization)+"</td>"}else{i+='\n\t\t\t\t\t<td style="'+h(m)+'">'+this.formatData(n,o.type,o.formatString,o.localization)+"</td>"}}else{if(m.merge){if(l==1&&!j){i+="\n\t\t\t\t\t<td colspan="+(1+m.merge)+' style="'+h(m)+' border-top-width: 1px;">'+this.formatData(n,o.type,o.formatString,o.localization)+"</td>"}else{i+="\n\t\t\t\t\t<td colspan="+(1+m.merge)+' style="'+h(m)+'">'+this.formatData(n,o.type,o.formatString,o.localization)+"</td>"}}else{if(l==1&&!j){i+='\n\t\t\t\t\t<td style="'+h(m)+' border-top-width: 1px;">'+this.formatData(n,o.type,o.formatString,o.localization)+"</td>"}else{i+='\n\t\t\t\t\t<td style="'+h(m)+'">'+this.formatData(n,o.type,o.formatString,o.localization)+"</td>"}}}};this.endRow=function(){if(k){i+="\n\t</tr>"}else{i+="\n\t\t\t\t</tr>"}};this.endBody=function(){if(k){i+="\n\t</tbody>"}else{i+="\n\t\t\t</tbody>"}};this.endFile=function(m){if(k||m==undefined){i+="\n</table>"}else{i+="\n\t\t</table>\n\t</body>\n</html>\n"}};this.getFile=function(){return i};function h(o){var m="";for(var n in o){if(o.hasOwnProperty(n)){if(k&&n=="font-size"){o[n]="100%"}m+=n+":"+o[n]+";"}}return m}};c.prototype=new f.jqx.dataAdapter.DataExportModuleBase();var g=function(){};g.prototype=new c();var e=function(){};e.prototype=new c();var d=new e();f.jqx.dataAdapter.ArrayExporter.extend("html",new g());f.jqx.dataAdapter.ArrayExporter.extend("pdf",d)})(jqxBaseFramework);(function(d){var c=function(){var j,n,f,k,e,l,o={style:"",stylesMap:{font:{color:"Color","font-family":"FontName","font-style":"Italic","font-weight":"Bold"},interior:{"background-color":"Color",background:"Color"},alignment:{left:"Left",center:"Center",right:"Right"}},startStyle:function(r){this.style+='\n\t\t<Style ss:ID="'+r+'" ss:Name="'+r+'">'},buildAlignment:function(s){if(s["text-align"]){var t=this.stylesMap.alignment[s["text-align"]];if(!t){t="Left"}var r='\n\t\t\t<Alignment ss:Vertical="Bottom" ss:Horizontal="'+t+'"/>';this.style+=r}},buildBorder:function(u){if(u["border-color"]){var t="\n\t\t\t<Borders>";var w='\n\t\t\t\t<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+u["border-color"]+'"/>';var r='\n\t\t\t\t<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+u["border-color"]+'"/>';var s='\n\t\t\t\t<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+u["border-color"]+'"/>';var v='\n\t\t\t\t<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+u["border-color"]+'"/>';t+=w;t+=r;t+=s;t+=v;t+="\n\t\t\t</Borders>";this.style+=t}},buildFont:function(s){var t=this.stylesMap.font,r="\n\t\t\t<Font ";for(var u in t){if(typeof s[u]!=="undefined"){if(u==="font-style"&&s[u].toString().toLowerCase()==="italic"){r+='ss:Italic="1" '}else{if(u==="font-weight"&&s[u].toString().toLowerCase()==="bold"){r+='ss:Bold="1" '}else{if(u==="color"){r+="ss:"+t[u]+'="'+s[u]+'" '}}}}}r+="/>";this.style+=r},buildInterior:function(s){var t=this.stylesMap.interior,v="\n\t\t\t<Interior ";var r=false;for(var u in t){if(typeof s[u]!=="undefined"){v+="ss:"+t[u]+'="'+s[u]+'" ';r=true}}if(r){v+='ss:Pattern="Solid"'}v+="/>";this.style+=v},buildFormat:function(s){if(s.dataType=="number"||s.dataType=="float"||s.dataType=="int"||s.dataType=="integer"){var r=s.formatString;if(r==""||r.indexOf("n")!=-1||r.indexOf("N")!=-1){this.style+='\n\t\t\t<NumberFormat ss:Format="0"/>'}else{if(r=="f"||r=="F"||r=="D"||r.indexOf("d")!=-1){this.style+='\n\t\t\t<NumberFormat ss:Format="#,##0.00_);[Red](#,##0.00)"/>'}else{if(r.indexOf("p")!=-1||r.indexOf("P")!=-1){this.style+='\n\t\t\t<NumberFormat ss:Format="Percent"/>'}else{if(r.indexOf("c")!=-1||r.indexOf("C")!=-1){if(s.currencysymbol&&parseInt(s.currencysymbol.charCodeAt(0))==8364){this.style+='\n\t\t\t<NumberFormat ss:Format="Euro Currency"/>'}else{this.style+='\n\t\t\t<NumberFormat ss:Format="Currency"/>'}}}}}}else{if(s.dataType=="date"){this.style+='\n\t\t\t<NumberFormat ss:Format="Short Date"/>'}}},closeStyle:function(){this.style+="\n\t\t</Style>"},toString:function(){var r=this.style;this.style="";return r}};this.beginFile=function(){e={};l=0;j='<?xml version="1.0"?>\n\t<?mso-application progid="Excel.Sheet"?> \n\t<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" \n\txmlns:o="urn:schemas-microsoft-com:office:office" \n\txmlns:x="urn:schemas-microsoft-com:office:excel" \n\txmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" \n\txmlns:html="http://www.w3.org/TR/REC-html40"> \n\t<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> \n\t<Version>12.00</Version> \n\t</DocumentProperties> \n\t<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> \n\t<WindowHeight>8130</WindowHeight> \n\t<WindowWidth>15135</WindowWidth> \n\t<WindowTopX>120</WindowTopX> \n\t<WindowTopY>45</WindowTopY> \n\t<ProtectStructure>False</ProtectStructure> \n\t<ProtectWindows>False</ProtectWindows> \n\t</ExcelWorkbook> \n\t<Styles>'};this.beginHeader=function(){n='\n\t<Worksheet ss:Name="Sheet1">\n\t\t<Table>';f=[];k=[]};this.appendHeaderCell=function(t,u,s){var r=t.width!=undefined?t.width:t.text.length*10;n+='\n\t\t\t<Column ss:Width="'+r+'"/>';f.push(t);k.push(s)};this.endHeader=function(r){if(r){this.beginRow();for(var s=0;s<f.length;s+=1){if(k[s].disabled){continue}i.call(this,f[s]["text"],null,k[s])}this.endRow()}};this.beginBody=function(){};this.beginRow=function(s){if(s!=undefined){n+="\n\t\t\t";for(var r=0;r<s;r++){n+="\t"}n+="<Row>";return}n+="\n\t\t\t<Row>"};this.beginRows=function(r){n+="\n\t\t\t\t<Rows>"};this.appendBodyCell=function(t,r,s,u){i.call(this,t,r,s,u)};this.endRow=function(s){if(s!=undefined){n+="\n\t\t\t";for(var r=0;r<s;r++){n+="\t"}n+="</Row>";return}n+="\n\t\t\t</Row>"};this.endRows=function(s){if(s!=undefined){n+="\n\t\t\t";for(var r=0;r<s;r++){n+="\t"}n+="</Rows>";return}};this.endBody=function(){n+="\n\t\t</Table>"};this.endFile=function(){n+="\n\t</Worksheet>\n</Workbook>";j+="\n\t</Styles>"};this.getFile=function(){return j+n};function i(v,y,u,x){var t="String";var w=this.getFormat(y);if(v!=null&&v.toString().substring(0,3)=="_AG"){v=v.toString().substring(3);t="String"}else{if(w.type=="date"){var s=v;v=this.formatData(v,w.type,w.formatString,w.localization);if(v===null||v===""){v="";t="String"}else{v=s.toISOString();t="DateTime"}}if(w.type=="string"){if(v===null||v===undefined){v=""}else{if(v.toString().indexOf("&")>=0){v=v.toString().replace(/&/g,"&")}if(v.toString().indexOf(">")>=0){v=v.toString().replace(/>/g,">")}if(v.toString().indexOf("<")>=0){v=v.toString().replace(/</g,"<")}if(v.toString().indexOf('"')>=0){v=v.toString().replace(/"/g,""")}if(v.toString().indexOf("'")>=0){v=v.toString().replace(/'/g,"'")}}}if(u.dataType=="number"||u.dataType=="float"||u.dataType=="int"||u.dataType=="integer"){t="Number";v=parseFloat(v);if(v===null||isNaN(v)||v===""){v="";t="String"}if(v&&t!="String"&&v!=""){if(y&&y.formatString&&y.formatString.indexOf("p")>=0){v=v/100}}u.currencysymbol=y.localization.currencysymbol}}var r=h(u);if(u.merge){n+='\n\t\t\t\t<Cell ss:MergeAcross="'+u.merge+'" ss:StyleID="'+r+'"><Data ss:Type="'+t+'">'+v+"</Data></Cell>"}else{n+='\n\t\t\t\t<Cell ss:StyleID="'+r+'"><Data ss:Type="'+t+'">'+v+"</Data></Cell>"}}function p(){l+=1;return"xls-style-"+l}function m(t){for(var r in e){if(q(t,e[r])&&q(e[r],t)){return r}}return undefined}function q(u,r){var t=true;for(var s in u){if(u[s]!==r[s]){t=false}}return t}function g(s,r){o.startStyle(s);o.buildAlignment(r);o.buildBorder(r);o.buildFont(r);o.buildInterior(r);o.buildFormat(r);o.closeStyle();j+=o.toString()}function h(r){if(!r){return""}var s=m(r);if(typeof s==="undefined"){s=p();e[s]=r;g(s,r)}return s}};c.prototype=new d.jqx.dataAdapter.DataExportModuleBase();d.jqx.dataAdapter.ArrayExporter.extend("xls",new c())})(jqxBaseFramework);(function(d){var c=function(){var g,e,f;this.beginFile=function(){g='<?xml version="1.0" encoding="UTF-8" ?>';g+="\n<table>"};this.beginHeader=function(){e=[]};this.appendHeaderCell=function(h,i){e.push(i)};this.endHeader=function(){};this.beginBody=function(i,h){};this.beginRow=function(k){var j=this;if(!j){j=window.jqx}if(k!=undefined){if(j.hierarchy){g+="\n\t";for(var h=0;h<k;h++){g+="\t\t"}g+="<row>";f=0;return}}g+="\n\t<row>";f=0};this.beginRows=function(j){if(j!=undefined){g+="\n\t\t";for(var h=0;h<j;h++){g+="\t\t"}g+="<rows>";f=0;return}g+="\n\t\t<rows>"};this.appendBodyCell=function(k,p,h,q,l,o){var m=this;if(!m){m=window.jqx}var n=this.getFormat(p);k=this.formatData(k,n.type,n.formatString,n.localization);if(n.type=="string"){if(k.toString().indexOf("&")>=0){k=k.toString().replace(/&/g,"&")}if(k.toString().indexOf(">")>=0){k=k.toString().replace(/>/g,">")}if(k.toString().indexOf("<")>=0){k=k.toString().replace(/</g,"<")}if(k.toString().indexOf('"')>=0){k=k.toString().replace(/"/g,""")}if(k.toString().indexOf("'")>=0){k=k.toString().replace(/'/g,"'")}}if(q.level!=undefined){if(m.hierarchy){g+="\n\t\t";for(var j=0;j<q.level;j++){g+="\t\t"}if(o===undefined){g+="<"+e[f]+">"+k+"</"+e[f]+">"}else{g+="<"+o+">"+k+"</"+o+">"}}else{if(o!=undefined){g+="\n\t\t<"+o+">"+k+"</"+o+">"}else{g+="\n\t\t<"+e[f]+">"+k+"</"+e[f]+">"}}}else{g+="\n\t\t<"+e[f]+">"+k+"</"+e[f]+">"}f++};this.endRow=function(k){var j=this;if(!j){j=window.jqx}if(k!=undefined){if(j.hierarchy){g+="\n\t";for(var h=0;h<k;h++){g+="\t\t"}g+="</row>";f=0;return}}g+="\n\t</row>";f=0};this.endRows=function(j){if(j!=undefined){g+="\n\t\t";for(var h=0;h<j;h++){g+="\t\t"}g+="</rows>";f=0;return}g+="\n\t\t</rows>"};this.endBody=function(){};this.endFile=function(){g+="\n</table>"};this.getFile=function(){return g}};c.prototype=new d.jqx.dataAdapter.DataExportModuleBase();d.jqx.dataAdapter.ArrayExporter.extend("xml",new c())})(jqxBaseFramework);(function(f){var l=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(p){return'"'+p.replace(l,function(q){var r=n[q];return typeof r==="string"?r:"\\u"+("0000"+q.charCodeAt(0).toString(16)).slice(-4)})+'"'}function d(p){return p<10?"0"+p:p}function g(q){var p;if(isFinite(q.valueOf())){p=q.getUTCFullYear()+"-"+d(q.getUTCMonth()+1)+"-"+d(q.getUTCDate())+"T"+d(q.getUTCHours())+":"+d(q.getUTCMinutes())+":"+d(q.getUTCSeconds())+'Z"'}else{p="null"}return p}function i(s){var p=s.length,q=[],r;for(r=0;r<p;r++){q.push(j(r,s)||"null")}return"["+q.join(",")+"]"}function o(s){var q=[],r,p;for(r in s){if(Object.prototype.hasOwnProperty.call(s,r)){p=j(r,s);if(p){q.push(c(r)+":"+p)}}}return"{"+q.join(",")+"}"}function k(p){switch(Object.prototype.toString.call(p)){case"[object Date]":return g(p);case"[object Array]":return i(p)}return o(p)}function m(q,p){switch(p){case"string":return c(q);case"number":case"float":case"integer":case"int":return isFinite(q)?q:"null";case"boolean":return q}return"null"}function j(q,p){var s=p[q],r=typeof s;if(s&&typeof s==="object"&&typeof s.toJSON==="function"){s=s.toJSON(q);r=typeof s}if(/(number|float|int|integer|string|boolean)/.test(r)||(!s&&r==="object")){return m(s,r)}else{return k(s)}}function h(p){if(window.JSON&&typeof window.JSON.stringify==="function"){return window.JSON.stringify(p)}return j("",{"":p})}var e=function(){var s=this;this.prepareData=function(v,x){if(x){var w=s.getFormat(x);v=s.formatData(v,w.type,w.formatString,w.localization)}return v};var p,r,t,q=[],u=0;this.beginFile=function(){r=[]};this.beginHeader=function(){};this.appendHeaderCell=function(v){};this.endHeader=function(){};this.beginBody=function(w,v){};this.beginRow=function(){var v=this;if(!v){v=window.jqx}if(v.hierarchy||window.jqx.hierarchy){q[u]={}}else{t={}}};this.beginRows=function(){q[u].rows=[];u++;q[u]={}};this.endRows=function(){u--};this.appendBodyCell=function(x,v){var w=this;if(!w){w=window.jqx}var y=this.prepareData(x,v);if(w.hierarchy||window.jqx.hierarchy){q[u][v.text]=y}else{t[v.text]=y}};this.endRow=function(){var v=this;if(!v){v=window.jqx}if(v.hierarchy||window.jqx.hierarchy){if(u==0){r.push(q[u])}else{q[u-1].rows.push(q[u])}}else{r.push(t)}};this.endBody=function(){};this.endFile=function(){p=h(r)};this.getFile=function(){return p}};e.prototype=new f.jqx.dataAdapter.DataExportModuleBase();f.jqx.dataAdapter.ArrayExporter.extend("json",new e())})(jqxBaseFramework);var b=window.jqxPdfDataExport=(function(){if(typeof btoa==="undefined"){window.btoa=function(o){var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=k.split(""),j,h,g,t,s,q,p,v,n=0,w=0,m="",l=[],f;do{j=o.charCodeAt(n++);h=o.charCodeAt(n++);g=o.charCodeAt(n++);v=j<<16|h<<8|g;t=v>>18&63;s=v>>12&63;q=v>>6&63;p=v&63;l[w++]=u[t]+u[s]+u[q]+u[p]}while(n<o.length);m=l.join("");f=o.length%3;return(f?m.slice(0,f-3):m)+"===".slice(f||3)}}if(typeof atob==="undefined"){window.atob=function(n){var j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h,g,f,r,q,p,o,s,m=0,t=0,k="",l=[];if(!n){return n}n+="";do{r=j.indexOf(n.charAt(m++));q=j.indexOf(n.charAt(m++));p=j.indexOf(n.charAt(m++));o=j.indexOf(n.charAt(m++));s=r<<18|q<<12|p<<6|o;h=s>>16&255;g=s>>8&255;f=s&255;if(p===64){l[t++]=String.fromCharCode(h)}else{if(o===64){l[t++]=String.fromCharCode(h,g)}else{l[t++]=String.fromCharCode(h,g,f)}}}while(m<n.length);k=l.join("");return k}}var e=typeof Object.keys==="function"?function(f){return Object.keys(f).length}:function(f){var g=0,h;for(h in f){if(f.hasOwnProperty(h)){g++}}return g},c=function(f){this.topics={};this.context=f;this.publish=function(k,o){if(this.topics[k]){var m=this.topics[k],q=[],p,j,g,h,n=function(){};o=Array.prototype.slice.call(arguments,1);for(j=0,g=m.length;j<g;j++){h=m[j];p=h[0];if(h[1]){h[0]=n;q.push(j)}p.apply(this.context,o)}for(j=0,g=q.length;j<g;j++){m.splice(q[j],1)}}};this.subscribe=function(g,i,h){if(!this.topics[g]){this.topics[g]=[[i,h]]}else{this.topics[g].push([i,h])}return{topic:g,callback:i}};this.unsubscribe=function(k){if(this.topics[k.topic]){var h=this.topics[k.topic],j,g;for(j=0,g=h.length;j<g;j++){if(h[j][0]===k.callback){h.splice(j,1)}}}}};function d(G,ag,O,X){if(typeof G==="undefined"){G="p"}else{G=G.toString().toLowerCase()}if(typeof ag==="undefined"){ag="mm"}if(typeof O==="undefined"){O="a4"}if(typeof X==="undefined"&&typeof zpipe==="undefined"){X=false}var av=O.toString().toLowerCase(),aq="0.9.0rc2",v=[],H=0,ax=X,W="1.3",P={a3:[841.89,1190.55],a4:[595.28,841.89],a5:[420.94,595.28],letter:[612,792],legal:[612,1008]},af="0 g",J="0 G",j=0,h=[],p=2,x=false,F=[],ak={},S={},al=16,f,B=0.200025,D,E,am,Q={title:"",subject:"",author:"",keywords:"",creator:""},T=0,V=0,R={},I=new c(R),ah,at,r=function(i){return i.toFixed(2)},q=function(i){return i.toFixed(3)},C=function(i){var k=(i).toFixed(0);if(i<10){return"0"+k}else{return k}},t=function(i){var k=(i).toFixed(0);if(k.length<10){return new Array(11-k.length).join("0")+k}else{return k}},ad=function(i){if(x){h[j].push(i)}else{v.push(i);H+=i.length+1}},y=function(){p++;F[p]=H;ad(p+" 0 obj");return p},M=function(i){ad("stream");ad(i);ad("endstream")},ao,U,ar,an,ac=function(){ao=E*am;U=D*am;var aD,aC,k,ay,az,aB,aA;for(aD=1;aD<=j;aD++){y();ad("<</Type /Page");ad("/Parent 1 0 R");ad("/Resources 2 0 R");ad("/Contents "+(p+1)+" 0 R>>");ad("endobj");aC=h[aD].join("\n");y();if(ax){k=[];for(az=0;az<aC.length;++az){k[az]=aC.charCodeAt(az)}aA=adler32cs.from(aC);aB=new Deflater(6);aB.append(new Uint8Array(k));aC=aB.flush();k=[new Uint8Array([120,156]),new Uint8Array(aC),new Uint8Array([aA&255,(aA>>8)&255,(aA>>16)&255,(aA>>24)&255])];aC="";for(az in k){if(k.hasOwnProperty(az)){aC+=String.fromCharCode.apply(null,k[az])}}ad("<</Length "+aC.length+" /Filter [/FlateDecode]>>")}else{ad("<</Length "+aC.length+">>")}M(aC);ad("endobj")}F[1]=H;ad("1 0 obj");ad("<</Type /Pages");ar="/Kids [";for(az=0;az<j;az++){ar+=(3+2*az)+" 0 R "}ad(ar+"]");ad("/Count "+j);ad("/MediaBox [0 0 "+r(ao)+" "+r(U)+"]");ad(">>");ad("endobj")},Z=function(i){i.objectNumber=y();ad("<</BaseFont/"+i.PostScriptName+"/Type/Font");if(typeof i.encoding==="string"){ad("/Encoding/"+i.encoding)}ad("/Subtype/Type1>>");ad("endobj")},L=function(){var i;for(i in ak){if(ak.hasOwnProperty(i)){Z(ak[i])}}},N=function(){I.publish("putXobjectDict")},z=function(){ad("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]");ad("/Font <<");var i;for(i in ak){if(ak.hasOwnProperty(i)){ad("/"+i+" "+ak[i].objectNumber+" 0 R")}}ad(">>");ad("/XObject <<");N();ad(">>")},l=function(){L();I.publish("putResources");F[2]=H;ad("2 0 obj");ad("<<");z();ad(">>");ad("endobj");I.publish("postPutResources")},o=function(ay,k,az){var i;if(S[k]===i){S[k]={}}S[k][az]=ay},aw={},w=function(i,az,aB,ay){var aA="F"+(e(ak)+1).toString(10),k=ak[aA]={id:aA,PostScriptName:i,fontName:az,fontStyle:aB,encoding:ay,metadata:{}};o(aA,az,aB);I.publish("addFont",k);return aA},g=function(){var k="helvetica",aI="times",aK="courier",aH="normal",aG="bold",aF="italic",aJ="bolditalic",az="StandardEncoding",aC=[["Helvetica",k,aH],["Helvetica-Bold",k,aG],["Helvetica-Oblique",k,aF],["Helvetica-BoldOblique",k,aJ],["Courier",aK,aH],["Courier-Bold",aK,aG],["Courier-Oblique",aK,aF],["Courier-BoldOblique",aK,aJ],["Times-Roman",aI,aH],["Times-Bold",aI,aG],["Times-Italic",aI,aF],["Times-BoldItalic",aI,aJ]],aE,aA,aD,aB;for(aE=0,aA=aC.length;aE<aA;aE++){var ay=az;aD=w(aC[aE][0],aC[aE][1],aC[aE][2],ay);aB=aC[aE][0].split("-");o(aD,aB[0],aB[1]||"")}I.publish("addFonts",{fonts:ak,dictionary:S})},u=function(aI,az){var aE,aC,aB,aA,aG,aF,ay,aH,k,aD;if(az===aB){az={}}aA=az.sourceEncoding?aA:"Unicode";aF=az.outputEncoding;if((az.autoencode||aF)&&ak[f].metadata&&ak[f].metadata[aA]&&ak[f].metadata[aA].encoding){aG=ak[f].metadata[aA].encoding;if(!aF&&ak[f].encoding){aF=ak[f].encoding}if(!aF&&aG.codePages){aF=aG.codePages[0]}if(typeof aF==="string"){aF=aG[aF]}if(aF){aH=false;ay=[];for(aE=0,aC=aI.length;aE<aC;aE++){k=aF[aI.charCodeAt(aE)];if(k){ay.push(String.fromCharCode(k))}else{ay.push(aI[aE])}if(ay[aE].charCodeAt(0)>>8){aH=true}}aI=ay.join("")}}aE=aI.length;while(aH===aB&&aE!==0){if(aI.charCodeAt(aE-1)>>8){aH=true}aE--}if(!aH){return aI}else{ay=az.noBOM?[]:[254,255];for(aE=0,aC=aI.length;aE<aC;aE++){k=aI.charCodeAt(aE);aD=k>>8;if(aD>>8){throw new Error("Character at position "+aE.toString(10)+" of string '"+aI+"' exceeds 16bits. Cannot be encoded into UCS-2 BE")}ay.push(aD);ay.push(k-(aD<<8))}return String.fromCharCode.apply(aB,ay)}},ab=function(k,i){return u(k,i).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},aa=function(){ad("/Producer (pdfDataExport "+aq+")");if(Q.title){ad("/Title ("+ab(Q.title)+")")}if(Q.subject){ad("/Subject ("+ab(Q.subject)+")")}if(Q.author){ad("/Author ("+ab(Q.author)+")")}if(Q.keywords){ad("/Keywords ("+ab(Q.keywords)+")")}if(Q.creator){ad("/Creator ("+ab(Q.creator)+")")}var i=new Date();ad("/CreationDate (D:"+[i.getFullYear(),C(i.getMonth()+1),C(i.getDate()),C(i.getHours()),C(i.getMinutes()),C(i.getSeconds())].join("")+")")},Y=function(){ad("/Type /Catalog");ad("/Pages 1 0 R");ad("/OpenAction [3 0 R /FitH null]");ad("/PageLayout /OneColumn");I.publish("putCatalog")},n=function(){ad("/Size "+(p+1));ad("/Root "+p+" 0 R");ad("/Info "+(p-1)+" 0 R")},au=function(){j++;x=true;h[j]=[]},aj=function(){au();ad(r(B*am)+" w");ad(J);if(T!==0){ad(T.toString(10)+" J")}if(V!==0){ad(V.toString(10)+" j")}I.publish("addPage",{pageNumber:j})},A=function(ay,aA){var i,k;if(ay===k){ay=ak[f].fontName}if(aA===k){aA=ak[f].fontStyle}try{i=S[ay][aA]}catch(az){i=k}if(!i){throw new Error("Unable to look up font label for font '"+ay+"', '"+aA+"'. Refer to getFontList() for available fonts.")}return i},s=function(){x=false;v=[];F=[];ad("%PDF-"+W);ac();l();y();ad("<<");aa();ad(">>");ad("endobj");y();ad("<<");Y();ad(">>");ad("endobj");var ay=H,k;ad("xref");ad("0 "+(p+1));ad("0000000000 65535 f ");for(k=1;k<=p;k++){ad(t(F[k])+" 00000 n ")}ad("trailer");ad("<<");n();ad(">>");ad("startxref");ad(ay);ad("%%EOF");x=true;return v.join("\n")},ae=function(i){var k="S";if(i==="F"){k="f"}else{if(i==="FD"||i==="DF"){k="B"}}return k},K=function(aB,ay){var aA,aD,aC,aE,az,k;switch(aB){case aA:return s();case"save":if(navigator.getUserMedia){if(window.URL===undefined){return R.output("dataurlnewwindow")}else{if(window.URL.createObjectURL===undefined){return R.output("dataurlnewwindow")}}}aD=s();aC=aD.length;aE=new Uint8Array(new ArrayBuffer(aC));for(az=0;az<aC;az++){aE[az]=aD.charCodeAt(az)}k=new Blob([aE],{type:"application/pdf"});a(k,ay);break;case"datauristring":case"dataurlstring":return"data:application/pdf;base64,"+btoa(s());case"datauri":case"dataurl":document.location.href="data:application/pdf;base64,"+btoa(s());break;case"dataurlnewwindow":window.open("data:application/pdf;base64,"+btoa(s()));break;default:throw new Error('Output type "'+aB+'" is not supported.')}};if(ag==="pt"){am=1}else{if(ag==="mm"){am=72/25.4}else{if(ag==="cm"){am=72/2.54}else{if(ag==="in"){am=72}else{throw ("Invalid unit: "+ag)}}}}if(P.hasOwnProperty(av)){D=P[av][1]/am;E=P[av][0]/am}else{try{D=O[1];E=O[0]}catch(ap){throw ("Invalid format: "+O)}}if(G==="p"||G==="portrait"){G="p";if(E>D){ah=E;E=D;D=ah}}else{if(G==="l"||G==="landscape"){G="l";if(D>E){ah=E;E=D;D=ah}}else{throw ("Invalid orientation: "+G)}}R.internal={pdfEscape:ab,getStyle:ae,getFont:function(){return ak[A.apply(R,arguments)]},getFontSize:function(){return al},btoa:btoa,write:function(i,az,ay,k){ad(arguments.length===1?i:Array.prototype.join.call(arguments," "))},getCoordinateString:function(i){return r(i*am)},getVerticalCoordinateString:function(i){return r((D-i)*am)},collections:{},newObject:y,putStream:M,events:I,scaleFactor:am,pageSize:{width:E,height:D},output:function(k,i){return K(k,i)}};R.addPage=function(){aj();return this};var ai=["","0","00","000","0000"];var m=function(aC,ay){var az=["FEFF"];for(var aB=0,k=aC.length,aA;aB<k;++aB){aA=aC.charCodeAt(aB).toString(16).toUpperCase();az.push(ai[4-aA.length],aA)}return az.join("")};R.text16=function(aH,aG,aE,ay){var az,aC,aB,aF,k,aD,aA;if(typeof aH==="number"){aC=aE;aB=aH;aF=aG;aH=aC;aG=aB;aE=aF}if(typeof aH==="string"&&aH.match(/[\n\r]/)){aH=aH.split(/\r\n|\r|\n/g)}if(typeof ay==="undefined"){ay={noBOM:true,autoencode:true}}else{if(ay.noBOM===az){ay.noBOM=true}if(ay.autoencode===az){ay.autoencode=true}}ay.autoencode=false;if(typeof aH==="string"){aD=m(aH,ay)}else{if(aH instanceof Array){k=aH.concat();for(aA=k.length-1;aA!==-1;aA--){k[aA]=m(k[aA],ay)}aD=k.join("> Tj\nT* <")}else{throw new Error('Type of text must be string or Array. "'+aH+'" is not recognized.')}}ad("BT\n/"+f+" "+al+" Tf\n"+al+" TL\n"+af+"\n"+r(aG*am)+" "+r((D-aE)*am)+" Td\n<"+aD+"> Tj\nET");return this};R.text=function(aH,aG,aE,ay){var az,aC,aB,aF,k,aD,aA;if(typeof aH==="number"){aC=aE;aB=aH;aF=aG;aH=aC;aG=aB;aE=aF}if(typeof aH==="string"&&aH.match(/[\n\r]/)){aH=aH.split(/\r\n|\r|\n/g)}if(typeof ay==="undefined"){ay={noBOM:true,autoencode:true}}else{if(ay.noBOM===az){ay.noBOM=true}if(ay.autoencode===az){ay.autoencode=true}}if(typeof aH==="string"){aD=ab(aH,ay)}else{if(aH instanceof Array){k=aH.concat();for(aA=k.length-1;aA!==-1;aA--){k[aA]=ab(k[aA],ay)}aD=k.join(") Tj\nT* (")}else{throw new Error('Type of text must be string or Array. "'+aH+'" is not recognized.')}}ad("BT\n/"+f+" "+al+" Tf\n"+al+" TL\n"+af+"\n"+r(aG*am)+" "+r((D-aE)*am)+" Td\n("+aD+") Tj\nET");return this};R.line=function(k,az,i,ay){ad(r(k*am)+" "+r((D-az)*am)+" m "+r(i*am)+" "+r((D-ay)*am)+" l S");return this};R.lines=function(k,aH,aG,aQ,aM){var aA,aO,aE,aF,aD,aC,aK,aI,aP,aN,aB,aL,az,aJ,ay;if(typeof k==="number"){aO=aG;aE=k;aF=aH;k=aO;aH=aE;aG=aF}aM=ae(aM);aQ=aQ===aA?[1,1]:aQ;ad(q(aH*am)+" "+q((D-aG)*am)+" m ");aD=aQ[0];aC=aQ[1];aI=k.length;aJ=aH;ay=aG;for(aK=0;aK<aI;aK++){aP=k[aK];if(aP.length===2){aJ=aP[0]*aD+aJ;ay=aP[1]*aC+ay;ad(q(aJ*am)+" "+q((D-ay)*am)+" l")}else{aN=aP[0]*aD+aJ;aB=aP[1]*aC+ay;aL=aP[2]*aD+aJ;az=aP[3]*aC+ay;aJ=aP[4]*aD+aJ;ay=aP[5]*aC+ay;ad(q(aN*am)+" "+q((D-aB)*am)+" "+q(aL*am)+" "+q((D-az)*am)+" "+q(aJ*am)+" "+q((D-ay)*am)+" c")}}ad(aM);return this};R.rect=function(i,aB,k,az,ay){var aA=ae(ay);ad([r(i*am),r((D-aB)*am),r(k*am),r(-az*am),"re",aA].join(" "));return this};R.triangle=function(az,aC,k,aA,i,ay,aB){this.lines([[k-az,aA-aC],[i-k,ay-aA],[az-i,aC-ay]],az,aC,[1,1],aB);return this};R.roundedRect=function(k,aD,ay,aA,aC,aB,az){var i=4/3*(Math.SQRT2-1);this.lines([[(ay-2*aC),0],[(aC*i),0,aC,aB-(aB*i),aC,aB],[0,(aA-2*aB)],[0,(aB*i),-(aC*i),aB,-aC,aB],[(-ay+2*aC),0],[-(aC*i),0,-aC,-(aB*i),-aC,-aB],[0,(-aA+2*aB)],[0,-(aB*i),(aC*i),-aB,aC,-aB]],k+aC,aD,[1,1],az);return this};R.ellipse=function(i,aD,aB,aA,k){var aC=ae(k),az=4/3*(Math.SQRT2-1)*aB,ay=4/3*(Math.SQRT2-1)*aA;ad([r((i+aB)*am),r((D-aD)*am),"m",r((i+aB)*am),r((D-(aD-ay))*am),r((i+az)*am),r((D-(aD-aA))*am),r(i*am),r((D-(aD-aA))*am),"c"].join(" "));ad([r((i-az)*am),r((D-(aD-aA))*am),r((i-aB)*am),r((D-(aD-ay))*am),r((i-aB)*am),r((D-aD)*am),"c"].join(" "));ad([r((i-aB)*am),r((D-(aD+ay))*am),r((i-az)*am),r((D-(aD+aA))*am),r(i*am),r((D-(aD+aA))*am),"c"].join(" "));ad([r((i+az)*am),r((D-(aD+aA))*am),r((i+aB)*am),r((D-(aD+ay))*am),r((i+aB)*am),r((D-aD)*am),"c",aC].join(" "));return this};R.circle=function(i,az,ay,k){return this.ellipse(i,az,ay,ay,k)};R.setProperties=function(i){var k;for(k in Q){if(Q.hasOwnProperty(k)&&i[k]){Q[k]=i[k]}}return this};R.setFontSize=function(i){al=i;return this};R.setFont=function(i,k){f=A(i,k);return this};R.setFontStyle=R.setFontType=function(k){var i;f=A(i,k);return this};R.getFontList=function(){var ay={},k,az,i;for(k in S){if(S.hasOwnProperty(k)){ay[k]=i=[];for(az in S[k]){if(S[k].hasOwnProperty(az)){i.push(az)}}}}return ay};R.setLineWidth=function(i){ad((i*am).toFixed(2)+" w");return this};R.setDrawColor=function(aA,az,ay,i){var k;if(az===undefined||(i===undefined&&aA===az===ay)){if(typeof aA==="string"){k=aA+" G"}else{k=r(aA/255)+" G"}}else{if(i===undefined){if(typeof aA==="string"){k=[aA,az,ay,"RG"].join(" ")}else{k=[r(aA/255),r(az/255),r(ay/255),"RG"].join(" ")}}else{if(typeof aA==="string"){k=[aA,az,ay,i,"K"].join(" ")}else{k=[r(aA),r(az),r(ay),r(i),"K"].join(" ")}}}ad(k);return this};R.setFillColor=function(aA,az,ay,i){var k;if(az===undefined||(i===undefined&&aA===az===ay)){if(typeof aA==="string"){k=aA+" g"}else{k=r(aA/255)+" g"}}else{if(i===undefined){if(typeof aA==="string"){k=[aA,az,ay,"rg"].join(" ")}else{k=[r(aA/255),r(az/255),r(ay/255),"rg"].join(" ")}}else{if(typeof aA==="string"){k=[aA,az,ay,i,"k"].join(" ")}else{k=[r(aA),r(az),r(ay),r(i),"k"].join(" ")}}}ad(k);return this};R.setTextColor=function(ay,k,i){if((ay===0&&k===0&&i===0)||(typeof k==="undefined")){af=q(ay/255)+" g"}else{af=[q(ay/255),q(k/255),q(i/255),"rg"].join(" ")}return this};R.CapJoinStyles={0:0,butt:0,but:0,bevel:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,milter:2};R.setLineCap=function(i){var k=this.CapJoinStyles[i];if(k===undefined){throw new Error("Line cap style of '"+i+"' is not recognized. See or extend .CapJoinStyles property for valid styles")}T=k;ad(k.toString(10)+" J");return this};R.setLineJoin=function(i){var k=this.CapJoinStyles[i];if(k===undefined){throw new Error("Line join style of '"+i+"' is not recognized. See or extend .CapJoinStyles property for valid styles")}V=k;ad(k.toString(10)+" j");return this};R.output=K;R.save=function(i){R.output("save",i)};for(at in d.API){if(d.API.hasOwnProperty(at)){if(at==="events"&&d.API.events.length){(function(az,aB){var aA,ay,k;for(k=aB.length-1;k!==-1;k--){aA=aB[k][0];ay=aB[k][1];az.subscribe.apply(az,[aA].concat(typeof ay==="function"?[ay]:ay))}}(I,d.API.events))}else{R[at]=d.API[at]}}}g();f="F1";aj();I.publish("initialized");return R}d.API={events:[]};return d}());(function(k){var d=0,o=0,c,q,j,e={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined},h=1,g=false,f=function(r,v,s,t,u){e={x:r,y:v,w:s,h:t,ln:u}},m=function(){return e},l=function(r){d=r},n=function(){return d},p=function(r){o=r},i=function(r){return o};k.getTextDimensions=function(r){c=this.internal.getFont().fontName;q=this.internal.getFontSize();j=this.internal.getFont().fontStyle;var u=0.264583*72/25.4,s,t;t=document.createElement("font");t.id="pdfDataExportCell";t.style.fontStyle=j;t.style.fontName=c;t.style.fontSize=q+"pt";t.innerHTML=r;document.body.appendChild(t);s={w:(t.offsetWidth+1)*u,h:(t.offsetHeight+1)*u};document.body.removeChild(t);return s};k.cellAddPage=function(){this.addPage();f(undefined,undefined,undefined,undefined,undefined);g=true;h+=1;p(1)};k.cellInitialize=function(){d=0;e={x:undefined,y:undefined,w:undefined,h:undefined,ln:undefined};h=1;g=false;p(0)};k.cell=function(B,A,C,u,r,z){this.lnMod=this.lnMod===undefined?0:this.lnMod;if(this.printingHeaderRow!==true&&this.lnMod!==0){z=z+this.lnMod}if((((z*u)+A+(u*2))/h)>=this.internal.pageSize.height&&h===1&&!g){this.cellAddPage();if(this.printHeaders&&this.tableHeaderRow){this.printHeaderRow(z);this.lnMod+=1;z+=1}if(n()===0){l(Math.round((this.internal.pageSize.height-(u*2))/u))}}else{if(g&&m().ln!==z&&i()===n()){this.cellAddPage();if(this.printHeaders&&this.tableHeaderRow){this.printHeaderRow(z);this.lnMod+=1;z+=1}}}var D=m(),t=this.getTextDimensions(r),v=1;if(D.x!==undefined&&D.ln===z){B=D.x+D.w}if(D.y!==undefined&&D.y===A){A=D.y}if(D.h!==undefined&&D.h===u){u=D.h}if(D.ln!==undefined&&D.ln===z){z=D.ln;v=0}if(g){A=u*(i()+v)}else{A=(A+(u*Math.abs(n()*h-z-n())))}this.rect(B,A,C,u);var s=/[а-яА-ЯЁё]/.test(r);if(s){this.text16(r,B+3,A+u-3)}else{this.text(r,B+3,A+u-3)}p(i()+v);f(B,A,C,u,z);return this};k.getKeys=(typeof Object.keys==="function")?function(r){if(!r){return[]}return Object.keys(r)}:function(r){var s=[],t;for(t in r){if(r.hasOwnProperty(t)){s.push(t)}}return s};k.arrayMax=function(w,v){var r=w[0],s,u,t;for(s=0,u=w.length;s<u;s+=1){t=w[s];if(v){if(v(r,t)===-1){r=t}}else{if(t>r){r=t}}}return r};k.table=function(L,t,K){var x=[],r=[],F,B,D,z,G,A,I={},C={},w,u,J=[],E,H=[],v,s,y;this.lnMod=0;if(K){B=K.autoSize||false;D=this.printHeaders=K.printHeaders||true;z=K.autoStretch||true}if(!L){throw"No data for PDF table"}if(t===undefined||(t===null)){x=this.getKeys(L[0])}else{if(t[0]&&(typeof t[0]!=="string")){for(G=0,A=t.length;G<A;G+=1){F=t[G];x.push(F.name);r.push(F.prompt)}}else{x=t}}if(K.autoSize){y=function(M){return M[F]};for(G=0,A=x.length;G<A;G+=1){F=x[G];I[F]=L.map(y);J.push(this.getTextDimensions(r[G]||F).w);u=I[F];for(E=0,A=u.length;E<A;E+=1){w=u[E];J.push(this.getTextDimensions(w).w)}C[F]=k.arrayMax(J)}}if(K.printHeaders){for(G=0,A=x.length;G<A;G+=1){F=x[G];H.push([10,10,C[F],25,String(r.length?r[G]:F)])}this.setTableHeaderRow(H);this.printHeaderRow(1)}for(G=0,A=L.length;G<A;G+=1){v=L[G];for(E=0,s=x.length;E<s;E+=1){F=x[E];this.cell(10,10,C[F],25,String(v[F]),G+2)}}return this};k.setTableHeaderRow=function(r){this.tableHeaderRow=r};k.printHeaderRow=function(r){if(!this.tableHeaderRow){throw"Property tableHeaderRow does not exist."}var s,u,t,v;this.printingHeaderRow=true;for(t=0,v=this.tableHeaderRow.length;t<v;t+=1){s=this.tableHeaderRow[t];u=[].concat(s);this.cell.apply(this,u.concat(r))}this.printingHeaderRow=false}}(b.API));(function(e){var d=e.getCharWidthsArray=function(u,w){if(!w){w={}}var k=w.widths?w.widths:this.internal.getFont().metadata.Unicode.widths,t=k.fof?k.fof:1,p=w.kerning?w.kerning:this.internal.getFont().metadata.Unicode.kerning,r=p.fof?p.fof:1;var o,m,q,n,s=0,v=k[0]||t,j=[];for(o=0,m=u.length;o<m;o++){q=u.charCodeAt(o);j.push((k[q]||v)/t+(p[q]&&p[q][s]||0)/r);s=q}return j};var g=function(l){var k=l.length,j=0;while(k){k--;j+=l[k]}return j};var c=e.getStringUnitWidth=function(j,i){return g(d.call(this,j,i))};var f=function(j,p,k,m){var s=[];var o=0,n=j.length,r=0;while(o!==n&&r+p[o]<k){r+=p[o];o++}s.push(j.slice(0,o));var q=o;r=0;while(o!==n){if(r+p[o]>m){s.push(j.slice(q,o));r=0;q=o}r+=p[o];o++}if(q!==o){s.push(j.slice(q,o))}return s};var h=function(u,n,x){if(!x){x={}}var v=d(" ",x)[0];var t=u.split(" ");var y=[],z=[y],k=x.textIndent||0,w=0,r=0,j,s;var q,o,p;for(q=0,o=t.length;q<o;q++){j=t[q];s=d(j,x);r=g(s);if(k+w+r>n){if(r>n){p=f(j,s,n-(k+w),n);y.push(p.shift());y=[p.pop()];while(p.length){z.push([p.shift()])}r=g(s.slice(j.length-y[0].length))}else{y=[j]}z.push(y);k=r;w=v}else{y.push(j);k+=w+r;w=v}}var m=[];for(q=0,o=z.length;q<o;q++){m.push(z[q].join(" "))}return m};e.splitTextToSize=function(s,o,t){if(!t){t={}}var k=t.fontSize||this.internal.getFontSize(),j=(function(l){var v={0:1},i={};if(!l.widths||!l.kerning){var w=this.internal.getFont(l.fontName,l.fontStyle),u="Unicode";if(w.metadata[u]){return{widths:w.metadata[u].widths||v,kerning:w.metadata[u].kerning||i}}}else{return{widths:l.widths,kerning:l.kerning}}return{widths:v,kerning:i}}).call(this,t);var r;if(s.match(/[\n\r]/)){r=s.split(/\r\n|\r|\n/g)}else{r=[s]}var m=1*this.internal.scaleFactor*o/k;j.textIndent=t.textIndent?t.textIndent*1*this.internal.scaleFactor/k:0;var q,p,n=[];for(q=0,p=r.length;q<p;q++){n=n.concat(h(r[q],m,j))}return n}})(b.API);(function(e){var f="addImage_";var h=function(o){var n,k;if(!o.charCodeAt(0)===255||!o.charCodeAt(1)===216||!o.charCodeAt(2)===255||!o.charCodeAt(3)===224||!o.charCodeAt(6)==="J".charCodeAt(0)||!o.charCodeAt(7)==="F".charCodeAt(0)||!o.charCodeAt(8)==="I".charCodeAt(0)||!o.charCodeAt(9)==="F".charCodeAt(0)||!o.charCodeAt(10)===0){throw new Error("getJpegSize requires a binary jpeg file")}var l=o.charCodeAt(4)*256+o.charCodeAt(5);var m=4,j=o.length;while(m<j){m+=l;if(o.charCodeAt(m)!==255){throw new Error("getJpegSize could not find the size of the image")}if(o.charCodeAt(m+1)===192){k=o.charCodeAt(m+5)*256+o.charCodeAt(m+6);n=o.charCodeAt(m+7)*256+o.charCodeAt(m+8);return[n,k]}else{m+=2;l=o.charCodeAt(m)*256+o.charCodeAt(m+1)}}},d=function(j){var o=this.internal.newObject(),k=this.internal.write,n=this.internal.putStream;j.n=o;k("<</Type /XObject");k("/Subtype /Image");k("/Width "+j.w);k("/Height "+j.h);if(j.cs==="Indexed"){k("/ColorSpace [/Indexed /DeviceRGB "+(j.pal.length/3-1)+" "+(o+1)+" 0 R]")}else{k("/ColorSpace /"+j.cs);if(j.cs==="DeviceCMYK"){k("/Decode [1 0 1 0 1 0 1 0]")}}k("/BitsPerComponent "+j.bpc);if("f" in j){k("/Filter /"+j.f)}if("dp" in j){k("/DecodeParms <<"+j.dp+">>")}if("trns" in j&&j.trns.constructor==Array){var m="";for(var l=0;l<j.trns.length;l++){m+=(j[m][l]+" "+j.trns[l]+" ");k("/Mask ["+m+"]")}}if("smask" in j){k("/SMask "+(o+1)+" 0 R")}k("/Length "+j.data.length+">>");n(j.data);k("endobj")},g=function(){var j=this.internal.collections[f+"images"];for(var k in j){d.call(this,j[k])}},c=function(){var j=this.internal.collections[f+"images"],k=this.internal.write,m;for(var l in j){m=j[l];k("/I"+m.i,m.n,"0","R")}};e.addImage=function(i,t,r,q,u,m){if(typeof i==="object"&&i.nodeType===1){var k=document.createElement("canvas");k.width=i.clientWidth;k.height=i.clientHeight;var v=k.getContext("2d");if(!v){throw ("addImage requires canvas to be supported by browser.")}v.drawImage(i,0,0,k.width,k.height);i=k.toDataURL("image/jpeg");t="JPEG"}if(t.toUpperCase()!=="JPEG"){throw new Error("addImage currently only supports format 'JPEG', not '"+t+"'")}var j,o=this.internal.collections[f+"images"],n=this.internal.getCoordinateString,p=this.internal.getVerticalCoordinateString;if(i.substring(0,23)==="data:image/jpeg;base64,"){i=atob(i.replace("data:image/jpeg;base64,",""))}if(o){j=Object.keys?Object.keys(o).length:(function(y){var w=0;for(var x in y){if(y.hasOwnProperty(x)){w++}}return w})(o)}else{j=0;this.internal.collections[f+"images"]=o={};this.internal.events.subscribe("putResources",g);this.internal.events.subscribe("putXobjectDict",c)}var s=h(i);var l={w:s[0],h:s[1],cs:"DeviceRGB",bpc:8,f:"DCTDecode",i:j,data:i};o[j]=l;if(!u&&!m){u=-96;m=-96}if(u<0){u=(-1)*l.w*72/u/this.internal.scaleFactor}if(m<0){m=(-1)*l.h*72/m/this.internal.scaleFactor}if(u===0){u=m*l.w/l.h}if(m===0){m=u*l.h/l.w}this.internal.write("q",n(u),"0 0",n(m),n(r),p(q+m),"cm /I"+l.i,"Do Q");return this}})(b.API);(function(c){var g=function(s){var y="0123456789abcdef",q="klmnopqrstuvwxyz",k={};for(var t=0;t<q.length;t++){k[q[t]]=y[t]}var r,o={},p=1,v,m=o,j=[],u,n="",w="",x,l=s.length-1,h;t=1;while(t!=l){h=s[t];t+=1;if(h=="'"){if(v){x=v.join("");v=r}else{v=[]}}else{if(v){v.push(h)}else{if(h=="{"){j.push([m,x]);m={};x=r}else{if(h=="}"){u=j.pop();u[0][u[1]]=m;x=r;m=u[0]}else{if(h=="-"){p=-1}else{if(x===r){if(k.hasOwnProperty(h)){n+=k[h];x=parseInt(n,16)*p;p=+1;n=""}else{n+=h}}else{if(k.hasOwnProperty(h)){w+=k[h];m[x]=parseInt(w,16)*p;p=+1;x=r;w=""}else{w+=h}}}}}}}}return o};var f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:g("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},e={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},d={Unicode:{"Courier-Oblique":g("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":g("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":g("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:g("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":g("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":g("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Helvetica:g("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":g("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),"Courier-Bold":g("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":g("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":g("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":g("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};c.events.push(["addFonts",function(k){var h,i,j,m,l="Unicode",n;for(i in k.fonts){if(k.fonts.hasOwnProperty(i)){h=k.fonts[i];j=d[l][h.PostScriptName];if(j){if(h.metadata[l]){m=h.metadata[l]}else{m=h.metadata[l]={}}m.widths=j.widths;m.kerning=j.kerning}n=e[l][h.PostScriptName];if(n){if(h.metadata[l]){m=h.metadata[l]}else{m=h.metadata[l]={}}m.encoding=n;if(n.codePages&&n.codePages.length){h.encoding=n.codePages[0]}}}}}])})(b.API);var a=window.jqxSaveAs=a||(navigator.msSaveBlob&&navigator.msSaveBlob.bind(navigator))||(function(j){var t=j.document,n=function(){return j.URL||j.webkitURL||j},g=j.URL||j.webkitURL||j,p=$("<a></a>")[0],i="download" in p,l=function(v){var u=t.createEvent("MouseEvents");u.initMouseEvent("click",true,false,j,0,0,0,0,0,false,false,false,false,0,null);return v.dispatchEvent(u)},q=j.webkitRequestFileSystem,r=j.requestFileSystem||q||j.mozRequestFileSystem,o=function(u){(j.setImmediate||j.setTimeout)(function(){throw u},0)},e="application/octet-stream",m=0,d=[],k=function(){var v=d.length;while(v--){var u=d[v];if(typeof u==="string"){g.revokeObjectURL(u)}else{u.remove()}}d.length=0},s=function(v,u,y){u=[].concat(u);var x=u.length;while(x--){var z=v["on"+u[x]];if(typeof z==="function"){try{z.call(v,y||v)}catch(w){o(w)}}}},h=function(v,w){var x=this,D=v.type,G=false,z,y,u=function(){var H=n().createObjectURL(v);d.push(H);return H},C=function(){s(x,"writestart progress write writeend".split(" "))},F=function(){if(G||!z){z=u(v)}if(y){y.location.href=z}x.readyState=x.DONE;C()},B=function(H){return function(){if(x.readyState!==x.DONE){return H.apply(this,arguments)}}},A={create:true,exclusive:false},E;x.readyState=x.INIT;if(!w){w="download"}if(i){z=u(v);p.href=z;p.download=w;if(l(p)){x.readyState=x.DONE;C();return}}if(j.chrome&&D&&D!==e){E=v.slice||v.webkitSlice;v=E.call(v,0,v.size,e);G=true}if(q&&w!=="download"){w+=".download"}if(D===e||q){y=j}else{y=j.open()}if(!r){F();return}m+=v.size;r(j.TEMPORARY,m,B(function(H){H.root.getDirectory("saved",A,B(function(I){var J=function(){I.getFile(w,A,B(function(K){K.createWriter(B(function(L){L.onwriteend=function(M){y.location.href=K.toURL();d.push(K);x.readyState=x.DONE;s(x,"writeend",M)};L.onerror=function(){var M=L.error;if(M.code!==M.ABORT_ERR){F()}};"writestart progress write abort".split(" ").forEach(function(M){L["on"+M]=x["on"+M]});L.write(v);x.abort=function(){L.abort();x.readyState=x.DONE};x.readyState=x.WRITING}),F)}),F)};I.getFile(w,{create:false},B(function(K){K.remove();J()}),B(function(K){if(K.code===K.NOT_FOUND_ERR){J()}else{F()}}))}),F)}),F)},f=h.prototype,c=function(u,v){return new h(u,v)};f.abort=function(){var u=this;u.readyState=u.DONE;s(u,"abort")};f.readyState=f.INIT=0;f.WRITING=1;f.DONE=2;f.error=f.onwritestart=f.onprogress=f.onwrite=f.onabort=f.onerror=f.onwriteend=null;if(j.addEventListener){j.addEventListener("unload",k,false)}return c}(self));(function(c){var d="pdfDataExport IE Below 9 Shim plugin";c.output=function(g,f){return this.internal.output(g,f);var e="Output.pdf";switch(g){case"datauristring":case"dataurlstring":case"datauri":case"dataurl":case"dataurlnewwindow":if(console){console.log(d+": Data URIs are not supported on IE6-9.")}break;case"save":e=f;break}}})(b.API)})();
/***/ }),
/***/ 2142:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(i){if(!Array.prototype.find){Object.defineProperty(Array.prototype,"find",{value:function(H){if(this==null){throw TypeError('"this" is null or not defined')}var L=Object(this);var e=L.length>>>0;if(typeof H!=="function"){throw TypeError("predicate must be a function")}var I=arguments[1];var J=0;while(J<e){var K=L[J];if(H.call(I,K,J,L)){return K}J++}return undefined},configurable:true,writable:true})}i.jqx.observableArray=function(e,J){if(typeof(e)=="string"){e=i.parseJSON(e)}if(!Object.defineProperty||!(function(){try{Object.defineProperty({},"x",{});return true}catch(M){return false}}())){var L=Object.defineProperty;Object.defineProperty=function(O,P,N){if(L){try{return L(O,P,N)}catch(M){}}if(O!==Object(O)){throw TypeError("Object.defineProperty called on non-object")}if(Object.prototype.__defineGetter__&&("get" in N)){Object.prototype.__defineGetter__.call(O,P,N.get)}if(Object.prototype.__defineSetter__&&("set" in N)){Object.prototype.__defineSetter__.call(O,P,N.set)}if("value" in N){O[P]=N.value}else{if(!O[P]){O[P]=N}}return O}}if(!Array.prototype.forEach){Array.prototype.forEach=function(N){if(this===void 0||this===null){throw TypeError()}var Q=Object(this);var M=Q.length>>>0;if(typeof N!=="function"){throw TypeError()}var P=arguments[1],O;for(O=0;O<M;O++){if(O in Q){N.call(P,Q[O],O,Q)}}}}if(typeof Object.getOwnPropertyNames!=="function"){Object.getOwnPropertyNames=function(O){if(O!==Object(O)){throw TypeError("Object.getOwnPropertyNames called on non-object")}var M=[],N;for(N in O){if(Object.prototype.hasOwnProperty.call(O,N)){M.push(N)}}return M}}var I=this,H,K=[];I.notifier=null;I.name="observableArray";I.observing=true;I.changes=new Array();var J=J;I.observe=function(){I.observing=true;if(arguments.length==1){J=arguments[0]}};I.unobserve=function(){I.observing=false};I.toArray=function(){return K.slice(0)};I.toJSON=function(X,O){var U=K;if(O){U=O}var T=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,W={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function M(Z){return'"'+Z.replace(T,function(aa){var ab=W[aa];return typeof ab==="string"?ab:"\\u"+("0000"+aa.charCodeAt(0).toString(16)).slice(-4)})+'"'}function N(Z){return Z<10?"0"+Z:Z}function P(aa){var Z;if(isFinite(aa.valueOf())){Z=aa.getUTCFullYear()+"-"+N(aa.getUTCMonth()+1)+"-"+N(aa.getUTCDate())+"T"+N(aa.getUTCHours())+":"+N(aa.getUTCMinutes())+":"+N(aa.getUTCSeconds())+'Z"'}else{Z="null"}return Z}function Q(ac){var Z=ac.length,aa=[],ab;for(ab=0;ab<Z;ab++){aa.push(R(ab,ac)||"null")}return"["+aa.join(",")+"]"}function Y(ac){var aa=[],ab,Z;for(ab in ac){if(Object.prototype.hasOwnProperty.call(ac,ab)){if(ab!=""&&X&&X.indexOf(ab)===-1){continue}Z=R(ab,ac);if(Z){aa.push(M(ab)+":"+Z)}}}return"{"+aa.join(",")+"}"}function S(Z){switch(Object.prototype.toString.call(Z)){case"[object Date]":return P(Z);case"[object Array]":return Q(Z)}return Y(Z)}function V(aa,Z){switch(Z){case"string":return M(aa);case"number":case"float":case"integer":case"int":return isFinite(aa)?aa:"null";case"boolean":return aa}return"null"}function R(aa,Z){var ac=Z[aa],ab=typeof ac;if(ac&&typeof ac==="object"&&typeof ac.toJSON==="function"){ac=ac.toJSON(aa);ab=typeof ac}if(/(number|float|int|integer|string|boolean)/.test(ab)||(!ac&&ab==="object")){return V(ac,ab)}else{return S(ac)}}if(!X&&window.JSON&&typeof window.JSON.stringify==="function"){return window.JSON.stringify(U)}return R("",{"":U})};I.defineIndexProperty=function(O){if(!(O in I)){var M=function(V,S,U,R){var T=V[S];var Q=T;var P=function(){return Q};var W=function(ab){T=ab;if(Q!==T){var aa=Q;Q=T;if(typeof H==="function"){var Y=K.indexOf(R);var Z="";var X=function(ad,ac){Object.getOwnPropertyNames(ad).forEach(function(ae){var af=i.type(ad[ae]);if(af=="array"||af=="object"){X(ad[ae],ac+"."+ae)}else{if(S===ae){Z=ac+"."+ae}}})};X(R,Y);H({object:I,type:"update",path:Z,index:Y,name:S,newValue:T,oldValue:aa})}}Q=T;return T};if(V[S]!=undefined&&S!="length"){if(Object.defineProperty){Object.defineProperty(V,S,{get:P,set:W})}else{if(Object.prototype.__defineGetter__&&Object.prototype.__defineSetter__){Object.prototype.__defineGetter__.call(V,S,P);Object.prototype.__defineSetter__.call(V,S,W)}}}};var N=function(S,R,P){var Q=i.type(S);if(/(number|float|int|integer|string|boolean)/.test(Q)){return}if(S===undefined){return}Object.getOwnPropertyNames(S).forEach(function(T){var U=i.type(S[T]);if(U=="array"||U=="object"){M(S,T,R+"."+T,P);N(S[T],R+"."+T,P)}else{M(S,T,R+"."+T,P)}})};Object.defineProperty(I,O,{configurable:true,enumerable:true,get:function(){return K[O]},set:function(Q){var P=K[O];if(I.toJSON(null,P)!=I.toJSON(null,Q)){K[O]=Q;if(typeof H==="function"){H({object:I,type:"update",path:O.toString(),index:O,name:"index",newValue:Q,oldValue:P})}N(Q,O,Q)}}});N(I[O],O,I[O])}};I.push=function(){var M;for(var N=0,O=arguments.length;N<O;N++){M=K.length;K.push(arguments[N]);I.defineIndexProperty(M);if(typeof H==="function"){H({object:I,type:"add",name:"length",index:M,newValue:K.length,oldValue:M})}}return K.length};I.pop=function(){if(~K.length){var M=K.length-1,N=K.pop();delete I[M];if(typeof H==="function"){H({object:I,type:"delete",name:"length",index:M,newValue:K.length,oldValue:M})}return N}};I.unshift=function(){var M=K.length;for(var N=0,O=arguments.length;N<O;N++){K.splice(N,0,arguments[N]);I.defineIndexProperty(K.length-1)}if(typeof H==="function"){H({object:I,type:"add",index:0,name:"length",newValue:K.length,oldValue:M})}return K.length};I.shift=function(){var M=K.length;if(~K.length){var N=K.shift();K.length===0&&delete I[M];if(typeof H==="function"){H({object:I,type:"delete",index:M,name:"length",newValue:K.length,oldValue:M})}return N}};I.slice=function(Q,N,P){var M=K.slice(Q,N);var O=new i.jqx.observableArray(M,P);return O};I.splice=function(Q,R,M){var P=[],U,T;Q=!~Q?K.length-Q:Q;R=(R==null?K.length-Q:R)||0;while(R--){U=K.splice(Q,1)[0];P.push(U);delete I[K.length];if(typeof H==="function"){H({object:I,type:"delete",index:Q,name:"length",newValue:-1,oldValue:Q})}}for(var N=2,S=arguments.length;N<S;N++){K.splice(Q,0,arguments[N]);this.defineIndexProperty(K.length-1);if(typeof H==="function"){H({object:I,type:"add",index:Q,name:"length",newValue:K.length-1,oldValue:Q})}Q++}var O=new i.jqx.observableArray(P,M);return O};Object.defineProperty(I,"length",{configurable:false,enumerable:true,get:function(){return K.length},set:function(M){var N=Number(M);if(N%1===0&&N>=0){if(N<K.length){I.splice(N)}else{if(N>K.length){I.push.apply(I,new Array(N-K.length))}}}else{throw new RangeError("Invalid array length")}return M}});i.jqx.observableArray.prototype.fromArray=function(O,N){var M=new i.jqx.observableArray(O,N);return M};i.jqx.observableArray.prototype.clone=function(){var M=new i.jqx.observableArray(K,J);M.observing=I.observing;M.changes=I.changes;M.notifier=I.notifier;return M};I.remove=function(N){if(N<0||N>=I.length){throw new Error("Invalid index : "+N)}if(I.hasOwnProperty(N)){var M=I[N];I[N]=undefined;K[N]=undefined;if(typeof H==="function"){H({object:I,type:"delete",index:N,name:"index",newValue:undefined,oldValue:M})}return true}return false};I.concat=function(N,P){var M=K.concat(N);var O=new i.jqx.observableArray(M,P);return O};Object.getOwnPropertyNames(Array.prototype).forEach(function(M){if(!(M in I)){var N=function(){var Q=I.observing;I.observing=false;var P=K[M];var O=P.apply(K,arguments);I.observing=Q;return O};Object.defineProperty(I,M,{configurable:false,enumerable:true,writeable:false,value:N})}});I.set=function(N,P){if(i.type(N)=="string"&&N.split(".").length>1){var M=N.split(".");var Q=I;for(var O=0;O<M.length;O++){if(O===0){if(M[O]>=I.length){throw new Error("Invalid Index: "+N)}}if(O<M.length-1){Q=Q[M[O]]}else{Q[M[O]]=P}}return true}if(N>=I.length){I.push(P)}else{I[N]=P}return true};I.get=function(M){return I[M]};if(e instanceof Array){I.push.apply(I,e)}H=function(){if(!I.observing){return}if(arguments&&arguments[0]){I.changes.push(arguments[0])}if(J){J.apply(I,arguments)}if(I.notifier){I.notifier.apply(I,arguments)}};return I};i.jqx.formatDate=function(H,J,I){var e=i.jqx.dataFormat.formatdate(H,J,I);return e};i.jqx.formatNumber=function(H,J,I){var e=i.jqx.dataFormat.formatnumber(H,J,I);return e};i.jqx.dataAdapter=function(J,e){if(J!=undefined){if(J.dataFields!==undefined){J.datafields=J.dataFields}if(J.dataType!==undefined){J.datatype=J.dataType}if(J.localData!==undefined){J.localdata=J.localData}if(J.sortColumn!==undefined){J.sortcolumn=J.sortColumn}if(J.sortDirection!==undefined){J.sortdirection=J.sortDirection}if(J.sortColumns!==undefined){J.sortcolumns=J.sortColumns}if(J.sortDirections!==undefined){J.sortdirections=J.sortDirections}if(J.sortOrder!==undefined){J.sortdirection=J.sortOrder}if(J.formatData!==undefined){J.formatdata=J.formatData}if(J.processData!==undefined){J.processdata=J.processData}if(J.pageSize!==undefined){J.pagesize=J.pageSize}if(J.pageNum!==undefined){J.pagenum=J.pageNum}if(J.updateRow!==undefined){J.updaterow=J.updateRow}if(J.addRow!==undefined){J.addrow=J.addRow}if(J.deleteRow!==undefined){J.deleterow=J.deleteRow}if(J.contentType!==undefined){J.contenttype=J.contentType}if(J.totalRecords!=undefined){J.totalrecords=J.totalRecords}if(J.loadError!=undefined){J.loadError=J.loadError}if(J.sortComparer!=undefined){J.sortcomparer=J.sortComparer}}this._source=J;this._options=e||{};if(J.beforeLoadComplete!=undefined){this._options.beforeLoadComplete=this._source.beforeLoadComplete}if(J.downloadComplete!=undefined){this._options.downloadComplete=this._source.downloadComplete}if(J.loadComplete!=undefined){this._options.loadComplete=this._source.loadComplete}if(J.autoBind!=undefined){this._options.downloadComplete=this._source.autoBind}if(J.formatData!=undefined){this._options.formatData=this._source.formatData}if(J.loadError!=undefined){this._options.loadError=this._source.loadError}if(J.beforeSend!=undefined){this._options.beforeSend=this._source.beforeSend}if(J.contentType!=undefined){this._options.contentType=this._source.contentType}if(J.async!=undefined){this._options.async=this._source.async}if(J.loadServerData!=undefined){this._options.loadServerData=this._source.loadServerData}if(J.uniqueDataFields!=undefined){this._options.uniqueDataFields=this._source.uniqueDataFields}this.records=new Array();this._downloadComplete=new Array();this._bindingUpdate=new Array();if(J!=undefined&&J.localdata!=null&&typeof J.localdata=="function"){var I=J.localdata();if(I!=null){J._localdata=J.localdata;var H=this;if(J._localdata.subscribe){H._oldlocaldata=[];J._localdata.subscribe(function(K){var L=function(M){if(i.isArray(M)){return i.makeArray(L(i(M)))}return i.extend(true,{},M)};if(H.suspendKO==false||H.suspendKO==undefined||H._oldlocaldata.length==0){H._oldlocaldata=L(K)}},J._localdata,"beforeChange");J._localdata.subscribe(function(L){if(H.suspendKO==false||H.suspendKO==undefined){var K="";H._oldrecords=H.records;if(H._oldlocaldata.length==0){J.localdata=J._localdata()}if(H._oldlocaldata.length==0){K="change"}else{if(L){if(H._oldlocaldata.length==L.length){K="update"}if(H._oldlocaldata.length>L.length){K="remove"}if(H._oldlocaldata.length<L.length){K="add"}}}H.dataBind(null,K)}},J._localdata,"change");H._knockoutdatasource=true}J.localdata=I}}if(this._options.autoBind==true){this.dataBind()}};i.jqx.dataAdapter.prototype={getrecords:function(){return this.records},beginUpdate:function(){this.isUpdating=true},endUpdate:function(e){this.isUpdating=false;if(e!=false){if(this._changedrecords&&this._changedrecords.length>0){this.callBindingUpdate("update");this._changedrecords=[]}else{this.dataBind(null,"")}}},formatDate:function(H,J,I){var e=i.jqx.dataFormat.formatdate(H,J,I);return e},formatNumber:function(H,J,I){var e=i.jqx.dataFormat.formatnumber(H,J,I);return e},dataBind:function(R,aa){if(this.isUpdating==true){return}var W=this._source;if(!W){return}if(W.generatedfields){W.datafields=null;W.generatedfields=null}i.jqx.dataFormat.datescache=new Array();if(W.dataFields!=null){W.datafields=W.dataFields}if(W.recordstartindex==undefined){W.recordstartindex=0}if(W.recordendindex==undefined){W.recordendindex=0}if(W.loadallrecords==undefined){W.loadallrecords=true}if(W.root==undefined){W.root=""}if(W.record==undefined){W.record=""}if(W.sort!=undefined){this.sort=W.sort}if(W.filter!=undefined){this.filter=W.filter}else{this.filter=null}if(W.sortcolumn!=undefined){this.sortcolumn=W.sortcolumn}if(W.sortdirection!=undefined){this.sortdirection=W.sortdirection}if(W.sortcolumns!=undefined){this.sortcolumns=W.sortcolumns}if(W.sortdirections!=undefined){this.sortdirections=W.sortdirections}if(W.sortcomparer!=undefined){this.sortcomparer=W.sortcomparer}this.records=new Array();var K=this._options||{};this.virtualmode=K.virtualmode!=undefined?K.virtualmode:false;this.totalrecords=K.totalrecords!=undefined?K.totalrecords:0;this.pageable=K.pageable!=undefined?K.pageable:false;this.pagesize=K.pagesize!=undefined?K.pagesize:0;this.pagenum=K.pagenum!=undefined?K.pagenum:0;this.cachedrecords=K.cachedrecords!=undefined?K.cachedrecords:new Array();this.originaldata=new Array();this.recordids=new Array();this.updaterow=K.updaterow!=undefined?K.updaterow:null;this.addrow=K.addrow!=undefined?K.addrow:null;this.deleterow=K.deleterow!=undefined?K.deleterow:null;this.cache=K.cache!=undefined?K.cache:false;this.unboundmode=false;if(W.formatdata!=undefined){K.formatData=W.formatdata}if(W.data!=undefined){if(K.data==undefined){K.data={}}i.extend(K.data,W.data)}if(W.mapChar!=undefined){W.mapchar=W.mapChar}if(W.mapchar!=undefined){this.mapChar=W.mapchar?W.mapchar:">"}else{this.mapChar=K.mapChar?K.mapChar:">"}if(K.unboundmode||W.unboundmode){this.unboundmode=K.unboundmode||W.unboundmode}if(W.cache!=undefined){this.cache=W.cache}if(this.koSubscriptions){for(var ac=0;ac<this.koSubscriptions.length;ac++){this.koSubscriptions[ac].dispose()}}this.koSubscriptions=new Array();if(this.pagenum<0){this.pagenum=0}var ah=this;var Q=W.datatype;if(W.datatype==="csv"||W.datatype==="tab"||W.datatype==="tsv"||W.datatype=="text"){Q="text"}var N=K.async!=undefined?K.async:true;if(W.async!=undefined){N=W.async}if(Q==="xlsx"&&W.url){W.localdata=[];Q="array";if(window.jqxDataSource){var ai=new window.jqxDataSource({dataSource:W.url,async:false,dataFields:W.datafields});ai.notify(function(){W.url=null;W.localdata=ai.boundSource;W.datatype="array";ah.dataBind()})}}switch(Q){case"local":case"array":case"observablearray":case"observableArray":default:if(W.localdata==undefined&&W.length){W.localdata=new Array();for(var Z=0;Z<W.length;Z++){W.localdata[W.localdata.length]=W[Z];W[Z].uid=Z}}if(W.beforeprocessing&&i.isFunction(W.beforeprocessing)){W.beforeprocessing(W.localdata)}var M=W.localdata.length;this.totalrecords=this.virtualmode?(W.totalrecords||M):M;if(this.unboundmode){this.totalrecords=this.unboundmode?(W.totalrecords||M):M;var ad=W.datafields?W.datafields.length:0;if(ad>0){for(var Z=0;Z<this.totalrecords;Z++){var I={};for(var Y=0;Y<ad;Y++){I[W.datafields[Y].name]=""}I.uid=Z;W.localdata[W.localdata.length]=I}}}if(this.totalrecords==undefined){this.totalrecords=0}var ad=W.datafields?W.datafields.length:0;var H=function(ao,aq){var ap={};for(var am=0;am<aq;am++){var al=W.datafields?W.datafields[am]:{};var ar="";if(undefined==al||al==null){continue}if(al.map){if(i.isFunction(al.map)){ar=al.map(ao)}else{var aj=al.map.split(ah.mapChar);if(aj.length>0){var an=ao;for(var ak=0;ak<aj.length;ak++){if(!an){continue}an=an[aj[ak]]}ar=an}else{ar=ao[al.map]}}if(ar!=undefined&&ar!=null){ar=ar.toString()}else{if(ar==undefined&&ar!=null){ar=""}}}var at=false;if(ar==""){at=true;ar=ao[al.name];if(ar!=undefined&&ar!=null){if(W._localdata&&ar.subscribe){ar=ar()}else{if(al.type!="array"){if(al.type==="date"){if(ar&&ar instanceof Date){ar=ar}}else{ar=ar.toString()}}}}}if(ar=="[object Object]"&&al.map&&at){ar=""}ar=ah.getvaluebytype(ar,al);if(al.displayname!=undefined){ap[al.displayname]=ar}else{ap[al.name]=ar}}return ap};if(W._localdata){this._changedrecords=[];this.records=new Array();var ag=W._localdata();i.each(ag,function(am,ap){if(typeof ap==="string"){ah.records.push(ap)}else{var ak={};var ao=0;var an=this;i.each(this,function(ay,aD){var at=null;var aE="string";var aC=ay;if(ad>0){var aG=false;var aB=false;for(var ax=0;ax<ad;ax++){var aw=W.datafields[ax];if(aw!=undefined&&(aw.name==ay)){aG=true;at=aw.map;aE=aw.type;aC=aw.name;break}else{if(aw!=undefined&&aw.map&&(aw.map.indexOf(ay)>=0)){aG=true;at=aw.map;aE=aw.type;aC=aw.name;aB=true;var aF=an[ay];if(at!=null){var ar=at.split(ah.mapChar);if(ar.length>0){var az=an;for(var au=0;au<ar.length;au++){az=az[ar[au]]}aF=az}else{aF=an[at]}}if(aE!="string"){aF=ah.getvaluebytype(aF,{type:aE})}ak[aC]=aF;if(ak[aC]!=undefined){ao+=ak[aC].toString().length+ak[aC].toString().substr(0,1)}}}}if(!aG){return true}if(aB){return true}}var av=i.isFunction(an[ay]);if(av){var aF=an[ay]();if(aE!="string"){aF=ah.getvaluebytype(aF,{type:aE})}ak[ay]=aF;if(an[ay].subscribe){var aA=am;ah.koSubscriptions[ah.koSubscriptions.length]=an[ay].subscribe(function(aI){var aH=aA;ak[ay]=aI;var aJ={index:aH,oldrecord:ak,record:ak};ah._changedrecords.push(aJ);if(ah.isUpdating){return}ah.callBindingUpdate("update");ah._changedrecords=[];return false})}}else{var aF=an[ay];if(at!=null){var ar=at.split(ah.mapChar);if(ar.length>0){var az=an;for(var au=0;au<ar.length;au++){az=az[ar[au]]}aF=az}else{aF=an[at]}}if(aE!="string"){aF=ah.getvaluebytype(aF,{type:aE})}ak[aC]=aF;if(ak[aC]!=undefined){ao+=ak[aC].toString().length+ak[aC].toString().substr(0,1)}}});var al=ah.getid(W.id,an,am);ak.uid=al;ah.records.push(ak);ak._koindex=ao;if(ah._oldrecords){var aj=ah.records.length-1;if(aa=="update"){if(ah._oldrecords[aj]._koindex!=ao){var aq={index:aj,oldrecord:ah._oldrecords[aj],record:ak};ah._changedrecords.push(aq)}}}}});if(aa=="add"){var M=ah.records.length;for(var Z=0;Z<M;Z++){var I=ah.records[Z];var L=false;for(var U=0;U<ah._oldrecords.length;U++){if(ah._oldrecords[U]._koindex===I._koindex){L=true;break}}if(!L){ah._changedrecords.push({index:Z,oldrecord:null,record:I,position:(Z!=0?"last":"first")})}}}else{if(aa=="remove"){var M=ah._oldrecords.length;for(var Z=0;Z<M;Z++){var P=ah._oldrecords[Z];if(!ah.records[Z]){ah._changedrecords.push({index:Z,oldrecord:P,record:null})}else{if(ah.records[Z]._koindex!=P._koindex){ah._changedrecords.push({index:Z,oldrecord:P,record:null})}}}}}}else{if(!i.isArray(W.localdata)){this.records=new Array();var V=0;var T=new Array();i.each(W.localdata,function(al){var ak=ah.getid(W.id,this,al);if(ad==0){if(!(typeof this==="string"||this instanceof String)){for(var an in this){V++;var ao=i.type(this[an]);T.push({name:an,type:ao})}ad=V;W.datafields=T;W.generatedfields=T}}if(ad>0){var aj=this;var am=H(aj,ad);am.uid=ak;ah.records[ah.records.length]=am}else{this.uid=ak;ah.records[ah.records.length]=this}})}else{if(ad==0){var V=0;var T=new Array();i.each(W.localdata,function(al,an){var aj=new Object(this);if(typeof an==="string"){ah.records=W.localdata;return false}else{var ak=ah.getid(W.id,aj,al);if(typeof(ak)==="object"){ak=al}aj.uid=ak;if(al==0){for(var ao in this){V++;var ap=i.type(this[ao]);T.push({name:ao,type:ap})}ad=V;W.datafields=T;W.generatedfields=T}if(ad>0){var am=H(aj,ad);am.uid=ak;ah.records[ah.records.length]=am}else{ah.records[ah.records.length]=aj}}})}else{i.each(W.localdata,function(al){var aj=this;var am=H(aj,ad);var ak=ah.getid(W.id,am,al);if(typeof(ak)==="object"){ak=al}var aj=new Object(am);aj.uid=ak;ah.records[ah.records.length]=aj})}}}this.originaldata=W.localdata;this.cachedrecords=this.records;this.addForeignValues(W);if(K.uniqueDataFields){var S=this.getUniqueRecords(this.records,K.uniqueDataFields);this.records=S;this.cachedrecords=S}if(K.beforeLoadComplete){var ae=K.beforeLoadComplete(ah.records,this.originaldata);if(ae!=undefined){ah.records=ae;ah.cachedrecords=ae}}if(K.autoSort&&K.autoSortField){var O=Object.prototype.toString;Object.prototype.toString=(typeof field=="function")?field:function(){return this[K.autoSortField]};ah.records.sort(function(ak,aj){if(ak===undefined){ak=null}if(aj===undefined){aj=null}if(ak===null&&aj===null){return 0}if(ak===null&&aj!==null){return 1}if(ak!==null&&aj===null){return -1}ak=ak.toString();aj=aj.toString();if(ak===null&&aj===null){return 0}if(ak===null&&aj!==null){return 1}if(ak!==null&&aj===null){return -1}if(i.jqx.dataFormat.isNumber(ak)&&i.jqx.dataFormat.isNumber(aj)){if(ak<aj){return -1}if(ak>aj){return 1}return 0}else{if(i.jqx.dataFormat.isDate(ak)&&i.jqx.dataFormat.isDate(aj)){if(ak<aj){return -1}if(ak>aj){return 1}return 0}else{if(!i.jqx.dataFormat.isNumber(ak)&&!i.jqx.dataFormat.isNumber(aj)){ak=String(ak).toLowerCase();aj=String(aj).toLowerCase()}}}try{if(ak<aj){return -1}if(ak>aj){return 1}}catch(al){var am=al}return 0});Object.prototype.toString=O}ah.loadedData=W.localdata;ah.buildHierarchy();if(i.isFunction(K.loadComplete)){K.loadComplete(W.localdata,ah.records)}break;case"json":case"jsonp":case"xml":case"xhtml":case"script":case"text":case"ics":if(W.localdata!=null&&!W.url){if(i.isFunction(W.beforeprocessing)){W.beforeprocessing(W.localdata)}if(W.datatype==="xml"){ah.loadxml(W.localdata,W.localdata,W)}else{if(Q==="text"){ah.loadtext(W.localdata,W)}else{if(Q==="ics"){ah.loadics(W.localdata,W)}else{ah.loadjson(W.localdata,W.localdata,W)}}}ah.addForeignValues(W);if(K.uniqueDataFields){var S=ah.getUniqueRecords(ah.records,K.uniqueDataFields);ah.records=S;ah.cachedrecords=S}if(K.beforeLoadComplete){var ae=K.beforeLoadComplete(ah.records,this.originaldata);if(ae!=undefined){ah.records=ae;ah.cachedrecords=ae}}ah.loadedData=W.localdata;ah.buildHierarchy.call(ah);if(i.isFunction(K.loadComplete)){K.loadComplete(W.localdata,ah.records)}ah.callBindingUpdate(aa);return}var af=K.data!=undefined?K.data:{};if(W.processdata){W.processdata(af)}if(i.isFunction(K.processData)){K.processData(af)}if(i.isFunction(K.formatData)){var e=K.formatData(af);if(e!=undefined){af=e}}var ab="application/x-www-form-urlencoded";if(K.contentType){ab=K.contentType}var J="GET";if(W.type){J=W.type}if(K.type){J=K.type}var X=Q;if(Q=="ics"){X="text"}if(W.url&&W.url.length>0){if(i.isFunction(K.loadServerData)){ah._requestData(af,W,K)}else{this.xhr=i.jqx.data.ajax({dataType:X,cache:this.cache,type:J,url:W.url,async:N,timeout:W.timeout,contentType:ab,data:af,success:function(am,aj,ap){if(i.isFunction(W.beforeprocessing)){var ao=W.beforeprocessing(am,aj,ap);if(ao!=undefined){am=ao}}if(i.isFunction(K.downloadComplete)){var ao=K.downloadComplete(am,aj,ap);if(ao!=undefined){am=ao}}if(am==null){ah.records=new Array();ah.cachedrecords=new Array();ah.originaldata=new Array();ah.callDownloadComplete();if(i.isFunction(K.loadComplete)){K.loadComplete(new Array())}return}var ak=am;if(am.records){ak=am.records}if(am.totalrecords!=undefined){W.totalrecords=am.totalrecords}else{if(am.totalRecords!=undefined){W.totalrecords=am.totalRecords}}if(W.datatype==="xml"){ah.loadxml(null,ak,W)}else{if(Q==="text"){ah.loadtext(ak,W)}else{if(Q==="ics"){ah.loadics(ak,W)}else{ah.loadjson(null,ak,W)}}}ah.addForeignValues(W);if(K.uniqueDataFields){var al=ah.getUniqueRecords(ah.records,K.uniqueDataFields);ah.records=al;ah.cachedrecords=al}if(K.beforeLoadComplete){var an=K.beforeLoadComplete(ah.records,am);if(an!=undefined){ah.records=an;ah.cachedrecords=an}}ah.loadedData=am;ah.buildHierarchy.call(ah);ah.callDownloadComplete();if(i.isFunction(K.loadComplete)){K.loadComplete(am,aj,ap,ah.records)}},error:function(al,aj,ak){if(i.isFunction(W.loaderror)){W.loaderror(al,aj,ak)}if(i.isFunction(K.loadError)){K.loadError(al,aj,ak)}al=null;ah.callDownloadComplete()},beforeSend:function(ak,aj){if(i.isFunction(K.beforeSend)){K.beforeSend(ak,aj)}if(i.isFunction(W.beforesend)){W.beforesend(ak,aj)}}})}}else{ah.buildHierarchy(new Array());ah.callDownloadComplete();if(i.isFunction(K.loadComplete)){if(!ai){var ai={}}K.loadComplete(ai)}}break}this.callBindingUpdate(aa)},buildHierarchy:function(K){var e=this._source;var P=new Array();if(!e.datafields){return}if(e.hierarchy&&!e.hierarchy.reservedNames){e.hierarchy.reservedNames={leaf:"leaf",parent:"parent",expanded:"expanded",checked:"checked",selected:"selected",level:"level",icon:"icon",data:"data"}}else{if(e.hierarchy){var O=e.hierarchy.reservedNames;if(!O.leaf){O.leaf="leaf"}if(!O.parent){O.parent="parent"}if(!O.expanded){O.expanded="expanded"}if(!O.checked){O.checked="checked"}if(!O.selected){O.selected="selected"}if(!O.level){O.level="level"}if(!O.data){O.data="data"}}}if(!e.hierarchy){return}var N=this;var O=e.hierarchy.reservedNames;if(e.hierarchy.root){if(e.dataType=="xml"){var P=this.getRecordsHierarchy("uid","parentuid","records",null,K);this.hierarchy=P;return P}else{this.hierarchy=this.records;var R=e.hierarchy.root;for(var L=0;L<this.records.length;L++){var M=this.records[L];if(!M){continue}var H=function(S){if(e.hierarchy.record){S.records=S[R][e.hierarchy.record]}else{var U=R.split(N.mapChar);var T=null;if(U.length>1){var W=S;for(var V=0;V<U.length;V++){if(W!=undefined){W=W[U[V]]}}T=W}else{T=S[R]}S.records=T}if(S.records==null||(S.records&&S.records.length==0)){S[O.leaf]=true}};H(M);M[O.level]=0;var I=this.getid(e.id,M,L);M.uid=I;M[O.parent]=null;M[O.data]=M;if(M[O.expanded]===undefined){M[O.expanded]=false}var Q=function(W,U){if(!U){W.records=new Array();return}for(var V=0;V<U.length;V++){var S=U[V];if(!S){continue}H(S);S[O.level]=W[O.level]+1;S[O.parent]=W;S[O.data]=S;var T=N.getid(e.id,S,V);if(T==V&&e.id==null){S.uid=W.uid+"_"+T}else{S.uid=T}if(S[O.expanded]===undefined){S[O.expanded]=false}Q(S,S.records)}};Q(M,M.records)}}return this.hierarchy}if(e.hierarchy.keyDataField&&e.hierarchy.parentDataField){var P=this.getRecordsHierarchy(e.hierarchy.keyDataField.name,e.hierarchy.parentDataField.name,"records",null,K);this.hierarchy=P;return P}if(e.hierarchy.groupingDataFields){var J=new Array();for(var L=0;L<e.hierarchy.groupingDataFields.length;L++){J.push(e.hierarchy.groupingDataFields[L].name)}var P=this.getGroupedRecords(J,"records","label",null,"data",null,"parent",K);this.hierarchy=P;return P}},addRecord:function(H,e,M,I){var J=this;var N=function(){return{leaf:"leaf",parent:"parent",expanded:"expanded",checked:"checked",selected:"selected",level:"level",icon:"icon",data:"data"}};if(H!=undefined){if(M!=undefined){if(this.hierarchy.length>0){var K=function(O){if(O){for(var P=0;P<O.length;P++){var Q=O[P];if(Q.uid==M){var R=(J._source&&J._source.hierarchy)?J._source.hierarchy.reservedNames:null;if(R==null){R=N()}H[R.parent]=Q;H[R.level]=Q[R.level]+1;if(!Q.records){Q.records=new Array();Q[R.leaf]=false}else{Q[R.leaf]=false}if(e=="last"){Q.records.push(H)}else{if(typeof e==="number"&&isFinite(e)){Q.records.splice(e,0,H)}else{Q.records.splice(0,0,H)}}return true}if(Q.records){K(Q.records)}}}};K(this.hierarchy)}}else{if(this.hierarchy&&this.hierarchy.length>=0&&(this._source.hierarchy||I)){var L=(J._source&&J._source.hierarchy)?J._source.hierarchy.reservedNames:null;if(L==null){L=N()}H[L.level]=0;if(e=="last"){this.hierarchy.push(H)}else{if(typeof e==="number"&&isFinite(e)){this.hierarchy.splice(e,0,H)}else{this.hierarchy.splice(0,0,H)}}}else{if(e=="last"){this.records.push(H)}else{if(typeof e==="number"&&isFinite(e)){this.records.splice(e,0,H)}else{this.records.splice(0,0,H)}}}return true}}return false},deleteRecord:function(H){var J=this;if(this.hierarchy.length>0){var K=function(L){if(L){for(var O=0;O<L.length;O++){var P=L[O];if(P.uid==H){L.splice(O,1);if(J.recordids[H]){delete J.recordids[H]}var N=function(T){for(var Q=0;Q<T.length;Q++){var S=T[Q].uid;for(var R=0;R<J.records.length;R++){var U=J.records[R];if(U.uid==S){J.records.splice(R,1);break}}if(T[Q].records){N(T[Q].records)}}};if(P.records){N(P.records)}for(var M=0;M<J.records.length;M++){var P=J.records[M];if(P.uid==H){J.records.splice(M,1);break}}return true}if(P.records){K(P.records)}}}};K(this.hierarchy)}else{for(var e=0;e<this.records.length;e++){var I=this.records[e];if(I.uid==H){this.records.splice(e,1);return true}}}return false},addForeignValues:function(H){var Q=this;var V=H.datafields?H.datafields.length:0;for(var N=0;N<V;N++){var L=H.datafields[N];if(L!=undefined){if(L.values!=undefined){if(L.value==undefined){L.value=L.name}if(L.values.value==undefined){L.values.value=L.value}var T=new Array();var K,M;if(Q.pageable&&Q.virtualmode){K=Q.pagenum*Q.pagesize;M=K+Q.pagesize;if(M>Q.totalrecords){M=Q.totalrecords}}else{if(Q.virtualmode){K=H.recordstartindex;M=H.recordendindex;if(M>Q.totalrecords){M=Q.totalrecords}}else{K=0;M=Q.records.length}}for(var O=K;O<M;O++){var P=Q.records[O];var I=L.name;var U=P[L.value];if(T[U]!=undefined){P[I]=T[U]}else{for(var J=0;J<L.values.source.length;J++){var S=L.values.source[J];var e=S[L.values.value];if(e==undefined){e=S.uid}if(e==U){var R=S[L.values.name];P[I]=R;T[U]=R;break}}}}}else{if(L.value!=undefined){for(var O=0;O<Q.records.length;O++){var P=Q.records[O];P[L.name]=P[L.value]}}}}}},abort:function(){if(this.xhr&&this.xhr.readyState!=4){this.xhr.abort();this.callDownloadComplete()}},_requestData:function(H,J,e){var I=this;var K=function(P){if(P.totalrecords){J.totalrecords=P.totalrecords;I.totalrecords=P.totalrecords}if(P.records){I.records=P.records;I.cachedrecords=P.records}I.addForeignValues(J);if(e.uniqueDataFields){var N=I.getUniqueRecords(I.records,e.uniqueDataFields);I.records=N;I.cachedrecords=N}if(e.beforeLoadComplete){var O=e.beforeLoadComplete(I.records,P);if(O!=undefined){I.records=O;I.cachedrecords=O}}for(var M=0;M<I.records.length;M++){var L=I.records[M];if(undefined==L){continue}if(undefined==L.uid){L.uid=I.getid(J.id,L,M)}}I.buildHierarchy.call(I);if(i.isFunction(e.loadComplete)){e.loadComplete(P)}I.callDownloadComplete()};e.loadServerData(H,J,K)},getUniqueRecords:function(I,L){if(I&&L){var e=I.length;var Q=L.length;var N=new Array();var O=new Array();for(var P=0;P<e;P++){var M=I[P];var J="";if(M==undefined){continue}for(var K=0;K<Q;K++){var H=L[K];if(M[H]!==undefined){J+=M[H]+"_"}}if(!O[J]&&J){N[N.length]=M}O[J]=true}}return N},getAggregatedData:function(S,P,M,H){var L=M;if(!L){L=this.records}var Q={};var K=new Array();var J=L.length;if(J==0){return}if(J==undefined){return}for(var O=0;O<J;O++){var R=L[O];for(var N=0;N<S.length;N++){var I=S[N];var U=R[I.name];if(I.aggregates){Q[I.name]=Q[I.name]||{};K[I.name]=K[I.name]||0;K[I.name]++;var e=function(W){for(var Y in W){var X=Q[I.name][Y];if(X==null){Q[I.name][Y]=0;X=0}if(i.isFunction(W[Y])){X=W[Y](X,U,I.name,R,H)}Q[I.name][Y]=X}};var T=parseFloat(U);if(isNaN(T)){T=false}else{T=true}if(T){U=parseFloat(U)}if(typeof U==="number"&&isFinite(U)){i.each(I.aggregates,function(){var W=Q[I.name][this];if(W==null){W=0;if(this=="min"){W=9999999999999}if(this=="max"){W=-9999999999999}}if(this=="sum"||this=="avg"||this=="stdev"||this=="stdevp"||this=="var"||this=="varp"){W+=parseFloat(U)}else{if(this=="product"){if(O==0){W=parseFloat(U)}else{W*=parseFloat(U)}}else{if(this=="min"){W=Math.min(W,parseFloat(U))}else{if(this=="max"){W=Math.max(W,parseFloat(U))}else{if(this=="count"){W++}else{if(typeof(this)=="object"){e(this);return}}}}}}Q[I.name][this]=W})}else{i.each(I.aggregates,function(){if(this=="min"||this=="max"||this=="count"||this=="product"||this=="sum"||this=="avg"||this=="stdev"||this=="stdevp"||this=="var"||this=="varp"){if(U===null){return true}var W=Q[I.name][this];if(W==null){W=0}Q[I.name][this]=W;return true}if(typeof(this)=="object"){e(this)}})}}}}for(var N=0;N<S.length;N++){var I=S[N];if(!Q[I.name]){Q[I.name]={};i.each(I.aggregates,function(W){Q[I.name][this]=0})}if(Q[I.name]["avg"]!=undefined){var U=Q[I.name]["avg"];var V=K[I.name];if(V===0||V==undefined){Q[I.name]["avg"]=0}else{Q[I.name]["avg"]=U/V}}else{if(Q[I.name]["count"]!=undefined){Q[I.name]["count"]=J}}if(Q[I.name]["stdev"]||Q[I.name]["stdevp"]||Q[I.name]["var"]||Q[I.name]["varp"]){i.each(I.aggregates,function(ac){if(this=="stdev"||this=="var"||this=="varp"||this=="stdevp"){var ad=Q[I.name][this];var ab=J;var W=(ad/J);var Y=0;for(var Z=0;Z<J;Z++){var aa=L[Z];var ae=aa[I.name];Y+=(ae-W)*(ae-W)}var X=(this=="stdevp"||this=="varp")?ab:ab-1;if(X==0){X=1}if(this=="var"||this=="varp"){Q[I.name][this]=Y/X}else{if(this=="stdevp"||this=="stdev"){Q[I.name][this]=Math.sqrt(Y/X)}}}})}if(I.formatStrings){i.each(I.aggregates,function(X){var W=I.formatStrings[X];if(W){if(this=="min"||this=="max"||this=="count"||this=="product"||this=="sum"||this=="avg"||this=="stdev"||this=="stdevp"||this=="var"||this=="varp"){var Y=Q[I.name][this];Q[I.name][this]=i.jqx.dataFormat.formatnumber(Y,W,P)}else{if(typeof this=="object"){for(var Z in this){var Y=Q[I.name][Z];Q[I.name][Z]=i.jqx.dataFormat.formatnumber(Y,W,P)}}}}})}}return Q},bindDownloadComplete:function(H,e){this._downloadComplete[this._downloadComplete.length]={id:H,func:e}},unbindDownloadComplete:function(H){for(var e=0;e<this._downloadComplete.length;e++){if(this._downloadComplete[e].id==H){this._downloadComplete[e].func=null;this._downloadComplete.splice(e,1);break}}},callDownloadComplete:function(){for(var e=0;e<this._downloadComplete.length;e++){var H=this._downloadComplete[e];if(H.func!=null){H.func()}}},setSource:function(e){this._source=e},generatekey:function(){var e=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return(e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e())},getGroupedRecords:function(ak,an,W,af,al,ac,ae,ao,K){var ah=0;var aa=this;if(!K){K=0}var I=new Array();for(var N=0;N<ak.length;N++){I[N]=aa.generatekey()}if(!an){an="items"}if(!W){W="group"}if(!al){al="record"}if(!ae){ae="parentItem"}if(undefined===ac){ac="value"}var S=new Array();var L=0;var J=new Array();var R=ak.length;var am=new Array();if(!ao){var ao=this.records}var P=ao.length;var ag=function(ap){var aq=ap;if(af){i.each(af,function(){if(this.name&&this.map){aq[this.map]=aq[this.name]}})}return aq};for(var V=0;V<P;V++){var aj=ag(ao[V]);var ab=aj[aa.uniqueId];var H=new Array();var X=0;for(N=0;N<R;N++){var Q=ak[N];var ad=aj[Q];if(null==ad){continue}H[X++]={value:ad,hash:I[N]}}if(H.length!=R){break}var Y=null;var T="";var e=-1;for(var Z=0;Z<H.length;Z++){e++;var ai=H[Z].value;var M=H[Z].hash;T=T+"_"+M+"_"+ai;if(J[T]!=undefined&&J[T]!=null){Y=J[T];continue}if(Y==null){Y={level:0};Y[ae]=null;Y[W]=ai;Y[al]=aj;if(aj.expanded!==undefined){Y.expanded=aj.expanded}else{Y.expanded=false}if(ac){Y[ac]=aj[ac]}Y[an]=new Array();var O=S.length+K;if(!this._source.id||typeof aj.uid==="number"||isFinite(aj.uid)){O="Row"+O}Y.uid=O;S[L++]=Y}else{var U={level:Y.level+1};U[ae]=Y;U[W]=ai;U[an]=new Array();U[al]=aj;if(aj.expanded!==undefined){U.expanded=aj.expanded}else{U.expanded=false}if(ac){U[ac]=aj[ac]}U.uid=Y.uid+"_"+Y[an].length;Y[an][Y[an].length]=U;Y=U}J[T]=Y}if(aj){aj.leaf=true}if(Y!=null){if(this._source.id==null){if(undefined==aj.uid){aj.uid=Y.uid+"_"+Y[an].length}else{if(aj.uid.toString().indexOf(Y.uid)==-1){aj.uid=Y.uid+"_"+aj.uid}}}aj[ae]=Y;aj.level=Y.level+1;Y[an][Y[an].length]=aj}else{if(undefined==aj.uid){aj.uid=this.generatekey()}}}return S},getRecordsHierarchy:function(L,J,aa,U,H){var e=new Array();var I=this.records;if(H){I=H}if(this.records.length==0){return null}var Y=aa!=null?aa:"items";var R=[];var ab=I;var O=ab.length;var P=(this._source&&this._source.hierarchy)?this._source.hierarchy.reservedNames:null;var W=function(ac){var ad=ac;if(U){i.each(U,function(){if(this.name&&this.map){ad[this.map]=ad[this.name]}})}return ad};for(var X=0;X<O;X++){var Z=i.extend({},ab[X]);var T=Z[J];var S=Z[L];R[S]={parentid:T,item:Z}}for(var X=0;X<O;X++){var Z=i.extend({},ab[X]);var T=Z[J];var S=Z[L];if(R[T]!=undefined){var Z={parentid:T,item:R[S].item};var Q=R[T].item;if(!Q[Y]){Q[Y]=[]}var M=Q[Y].length;var K=Z.item;if(!P){if(K.parent==undefined){K.parent=Q}}else{if(K[P.parent]==undefined){K[P.parent]=Q}}var N=W(K);Q[Y][M]=N;R[T].item=Q;R[S]=Z}else{var K=R[S].item;if(!P){if(K.parent==undefined){K.parent=null}}else{if(K[P.parent]==undefined){K[P.parent]=null}}var N=W(K);if(!P){N.level=0}else{N[P.level]=0}e[e.length]=N}}if(e.length!=0){var V=function(af,ac){for(var ad=0;ad<ac.length;ad++){if(!P){ac[ad].level=af}else{ac[ad][P.level]=af}var ae=ac[ad][Y];if(ae){if(ae.length>0){V(af+1,ae)}else{if(!P){ac[ad].leaf=true}else{ac[ad][P.leaf]=true}}}else{if(!P){ac[ad].leaf=true}else{ac[ad][P.leaf]=true}}}};V(0,e)}return e},bindBindingUpdate:function(H,e){this._bindingUpdate[this._bindingUpdate.length]={id:H,func:e}},unbindBindingUpdate:function(H){for(var e=0;e<this._bindingUpdate.length;e++){if(this._bindingUpdate[e].id==H){this._bindingUpdate[e].func=null;this._bindingUpdate.splice(e,1);break}}},callBindingUpdate:function(e){for(var I=0;I<this._bindingUpdate.length;I++){var H=this._bindingUpdate[I];if(H.func!=null){H.func(e)}}},getid:function(N,H,K){if(N!=null&&N.name!=undefined){if(N.name){var e=i(H).attr(N.name);if(e!=null&&e.toString().length>0){return e}else{if(N.map){try{var e=i(H).attr(N.map);if(e!=null&&e.toString().length>0){return e}else{if(i(N.map,H).length>0){return i(N.map,H).text()}else{if(i(N.name,H).length>0){return i(N.name,H).text()}}}}catch(J){return K}}}return}}if(i(N,H).length>0){return i(N,H).text()}if(N){if(N.toString().length>0){var e=i(H).attr(N);if(e!=null&&e.toString().length>0){return i.trim(e).split(" ").join("").replace(/([ #;?%&,.+*~\':"!^$[\]()=>|\/\\@])/g,"")}else{var I=N.split(this.mapChar);if(I.length>1){var M=H;for(var L=0;L<I.length;L++){if(M!=undefined){M=M[I[L]]}}if(M!=undefined){return M}}else{if(H[N]!=undefined){return H[N]}}}}}return K},loadjson:function(af,ag,S){if(typeof(af)=="string"){af=i.parseJSON(af)}if(S.root==undefined){S.root=""}if(S.record==undefined){S.record=""}var af=af||ag;if(!af){af=[]}var ae=this;if(S.root!=""){var K=S.root.split(ae.mapChar);if(K.length>1){var ab=af;for(var R=0;R<K.length;R++){if(ab!=undefined){ab=ab[K[R]]}}af=ab}else{if(af[S.root]!==undefined){af=af[S.root]}else{if(af[0]&&af[0][S.root]!==undefined){af=af[0][S.root]}else{i.each(af,function(ai){var ah=this;if(this==S.root){af=this;return false}else{if(this[S.root]!=undefined){af=this[S.root]}}})}}if(!af){var K=S.root.split(ae.mapChar);if(K.length>0){var ab=af;for(var R=0;R<K.length;R++){if(ab!=undefined){ab=ab[K[R]]}}af=ab}}}}else{if(!af.length){for(var O in af){if(i.isArray(af[O])){af=af[O];break}}}}if(af!=null&&af.length==undefined){af=i.makeArray(af)}if(af==null||af==undefined||af=="undefined"||af.length==undefined){throw new Error("jqxDataAdapter: JSON Parse error! Invalid JSON. Please, check your JSON or your jqxDataAdapter initialization!");return}if(af.length==0){this.totalrecords=0;return}var J=af.length;this.totalrecords=this.virtualmode?(S.totalrecords||J):J;this.records=new Array();this.originaldata=new Array();var X=this.records;var U=!this.pageable?S.recordstartindex:this.pagesize*this.pagenum;this.recordids=new Array();if(S.loadallrecords){U=0;J=this.totalrecords}var Q=0;if(this.virtualmode){U=!this.pageable?S.recordstartindex:this.pagesize*this.pagenum;Q=U;U=0;J=this.totalrecords}var Z=S.datafields?S.datafields.length:0;if(Z==0){var e=af[0];var ac=new Array();for(var O in e){var H=O;ac[ac.length]={name:H}}S.datafields=ac;S.generatedfields=S.datafields;Z=ac.length}var M=U;for(var W=U;W<J;W++){var I=af[W];if(I==undefined){break}if(S.record&&S.record!=""){I=I[S.record];if(I==undefined){continue}}var ad=this.getid(S.id,I,W);if(typeof(ad)==="object"){ad=W}if(!this.recordids[ad]){this.recordids[ad]=I;var L={};for(var V=0;V<Z;V++){var N=S.datafields[V];var T="";if(undefined==N||N==null){continue}if(N.map){if(i.isFunction(N.map)){T=N.map(I)}else{var K=N.map.split(ae.mapChar);if(K.length>0){var aa=I;for(var R=0;R<K.length;R++){if(aa!=undefined){aa=aa[K[R]]}}T=aa}else{T=I[N.map]}}if(T!=undefined&&T!=null){T=this.getvaluebytype(T,N)}else{if(T==undefined&&T!=null){T=""}}}if(T==""&&!N.map){T=I[N.name];if(T==undefined&&T!=null){T=""}if(N.value!=undefined){if(T!=undefined){var Y=T[N.value];if(Y!=undefined){T=Y}}}}T=this.getvaluebytype(T,N);if(N.displayname!=undefined){L[N.displayname]=T}else{L[N.name]=T}if(N.type==="array"){var P=function(ak){if(!ak){return}for(var aq=0;aq<ak.length;aq++){var an=ak[aq];if(!an){continue}for(var ao=0;ao<Z;ao++){var aj=S.datafields[ao];var ap="";if(undefined==aj||aj==null){continue}if(aj.map){if(i.isFunction(aj.map)){ap=aj.map(an)}else{var ah=aj.map.split(ae.mapChar);if(ah.length>0){var am=an;for(var ai=0;ai<ah.length;ai++){if(am!=undefined){am=am[ah[ai]]}}ap=am}else{ap=an[aj.map]}}if(ap!=undefined&&ap!=null){ap=this.getvaluebytype(ap,aj)}else{if(ap==undefined&&ap!=null){ap=""}}}if(ap==""&&!aj.map){ap=an[aj.name];if(ap==undefined&&ap!=null){ap=""}if(aj.value!=undefined){if(ap!=undefined){var al=ap[aj.value];if(al!=undefined){ap=al}}}}ap=this.getvaluebytype(ap,aj);if(aj.displayname!=undefined){an[aj.displayname]=ap}else{an[aj.name]=ap}if(aj.type==="array"){P.call(this,ap)}}}};P.call(this,T)}}if(S.recordendindex<=0||U<S.recordendindex){X[Q+M]=new Object(L);X[Q+M].uid=ad;this.originaldata[Q+M]=new Object(X[W]);M++}}}this.records=X;this.cachedrecords=this.records},loadxml:function(K,aj,V){if(typeof(K)=="string"){K=aj=i(i.parseXML(K));K=null}if(V.root==undefined){V.root=""}if(V.record==undefined){V.record=""}var K;if(i.jqx.browser.msie&&aj){if(aj.xml!=undefined){K=i(V.root+" "+V.record,i.parseXML(aj.xml))}else{K=K||i(V.root+" "+V.record,aj)}}else{K=K||i(V.root+" "+V.record,aj)}if(!K){K=[]}var J=K.length;if(K.length==0){return}this.totalrecords=this.virtualmode?(V.totalrecords||J):J;this.records=new Array();this.originaldata=new Array();var ab=this.records;var Y=!this.pageable?V.recordstartindex:this.pagesize*this.pagenum;this.recordids=new Array();if(V.loadallrecords){Y=0;J=this.totalrecords}var T=0;if(this.virtualmode){Y=!this.pageable?V.recordstartindex:this.pagesize*this.pagenum;T=Y;Y=0;J=this.totalrecords}var ad=V.datafields?V.datafields.length:0;if(ad==0){var e=K[0];var ag=new Array();for(var S in e){var H=S;ag[ag.length]={name:H}}V.datafields=ag;V.generatedfields=V.datafields;ad=ag.length}var U=Y;var af=false;for(var aa=Y;aa<J;aa++){var I=K[aa];if(I==undefined){break}var ai=this.getid(V.id,I,aa);if(!this.recordids[ai]){this.recordids[ai]=I;var L={};var P=false;if(V.hierarchy&&V.hierarchy.root){P=true}for(var Z=0;Z<ad;Z++){var Q=V.datafields[Z];var X="";if(undefined==Q||Q==null){continue}if(Q.map){if(i.isFunction(Q.map)){X=Q.map(I)}else{var M=Q.map.indexOf("[");if(M<0){X=i(Q.map,I);if(X.length==1){X=X.text()}else{af=true;var ah=new Array();for(var ac=0;ac<X.length;ac++){ah.push(i(X[ac]).text())}X=ah;if(P&&ah.length>0){X=ah[0]}}}else{var ae=Q.map.substring(0,M-1);var O=Q.map.indexOf("]");var R=Q.map.substring(M+1,O);X=i(ae,I).attr(R);if(X==undefined){X=i(I).attr(R)}if(X==undefined){X=""}}if(X==""){X=i(I).attr(Q.map);if(X==undefined){X=""}}}}if(X==""){X=i(Q.name,I);if(X.length==1){X=X.text()}else{var ah=new Array();for(var ac=0;ac<X.length;ac++){ah.push(i(X[ac]).text())}X=ah;if(P&&ah.length>0){X=ah[0]}}if(X==""){X=i(I).attr(Q.name);if(X==undefined){X=""}}if(X==""){if(I.nodeName&&I.nodeName==Q.name&&I.firstChild){X=i(I.firstChild).text()}}}var W=X;X=this.getvaluebytype(X,Q);if(Q.displayname!=undefined){L[Q.displayname]=X}else{L[Q.name]=X}}if(V.recordendindex<=0||Y<V.recordendindex){ab[T+U]=i.extend({},L);ab[T+U].uid=ai;this.originaldata[T+U]=i.extend({},ab[aa]);U++}}}if(V.hierarchy&&V.hierarchy.root){for(var aa=Y;aa<J;aa++){var I=K[aa];var N=ab[aa];if(i(I).parent().length>0){var ai=this.getid(V.id,i(I).parents(V.hierarchy.record+":first"));N.parentuid=ai}else{N.parentuid=null}}}this.records=ab;this.cachedrecords=this.records},loadics:function(N,H){if(N==null){return}var S=H.rowDelimiter||this.rowDelimiter||"\n";var R=N.split(S);var K=R.length;var Q=N.split("\r");if(K==1&&Q.length>1){R=Q;K=R.length}this.records=new Array();this.originaldata=new Array();var L=this.records;this.recordids=new Array();var I=0;var P=function(V){var T=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z)?$/;var U=T.exec(V);if(!U){throw new Error("Invalid UNTIL value: "+V)}return new Date(Date.UTC(U[1],U[2]-1,U[3],U[5]||0,U[6]||0,U[7]||0))};for(var M=0;M<K;M++){var O=R[M];if(O=="BEGIN:VEVENT"){var e={};continue}if(O.indexOf("SUMMARY")>=0){e.SUMMARY=O.substring(O.indexOf("SUMMARY")+8);continue}if(O.indexOf("LOCATION")>=0){e.LOCATION=O.substring(O.indexOf("LOCATION")+9);continue}if(O.indexOf("DESCRIPTION")>=0){e.DESCRIPTION=O.substring(O.indexOf("DESCRIPTION")+12);continue}if(O.indexOf("RRULE")>=0){e.RRULE=O.substring(O.indexOf("RRULE")+6);continue}if(O.indexOf("EXDATE")>=0){var J=O.substring(O.indexOf("EXDATE")+7);e.EXDATE=J;continue}if(O.indexOf("DTEND")>=0){e.DTEND=P(O.substring(O.indexOf("DTEND")+6));continue}if(O.indexOf("DTSTART")>=0){e.DTSTART=P(O.substring(O.indexOf("DTSTART")+8));continue}if(O.indexOf("UID")>=0){e.uid=e.UID=O.substring(O.indexOf("UID")+4);continue}if(O.indexOf("STATUS")>=0){e.STATUS=O.substring(O.indexOf("STATUS")+7);continue}if(O=="END:VEVENT"){L.push(e);continue}}this.records=L;this.cachedrecords=this.records},loadtext:function(Y,P){if(Y==null){return}var e=P.rowDelimiter||this.rowDelimiter||"\n";var L=Y.split(e);var J=L.length;var X=Y.split("\r");if(J==1&&X.length>1){L=X;J=L.length}this.totalrecords=this.virtualmode?(P.totalrecords||J):J;this.records=new Array();this.originaldata=new Array();var U=this.records;var R=!this.pageable?P.recordstartindex:this.pagesize*this.pagenum;this.recordids=new Array();if(P.loadallrecords){R=0;J=this.totalrecords}var N=0;if(this.virtualmode){R=!this.pageable?P.recordstartindex:this.pagesize*this.pagenum;N=R;R=0;J=this.totalrecords}var V=P.datafields.length;var O=P.columnDelimiter||this.columnDelimiter;if(!O){O=(P.datatype==="tab"||P.datatype==="tsv")?"\t":","}for(var T=R;T<J;T++){var I=L[T];var W=null;if(!this.recordids[W]){if(P.id==null){W=T;this.recordids[W]=I}var K={};var H=L[T].split(O);for(var S=0;S<V;S++){if(S>=H.length){continue}var M=P.datafields[S];var Q=H[S];if(M.map&&i.isFunction(M.map)){Q=M.map(I)}if(M.type){Q=this.getvaluebytype(Q,M)}var Z=M.map||M.name||S.toString();K[Z]=Q;if(P.id!=null){if(P.id===M.name){W=Q;this.recordids[W]=I}}}if(W==null){W=T}U[N+T]=i.extend({},K);U[N+T].uid=W;this.originaldata[N+T]=i.extend({},U[T])}}this.records=U;this.cachedrecords=this.records},getvaluebytype:function(L,H){var J=L;if(L==null){return L}if(i.isArray(L)&&H.type!="array"){for(var I=0;I<L.length;I++){L[I]=this.getvaluebytype(L[I],H)}return L}if(H.type=="date"){if(L=="NaN"){L=""}else{if(L&&L instanceof Date){return L}var K=new Date(L);if(typeof L=="string"){if(H.format){var e=i.jqx.dataFormat.parsedate(L,H.format);if(e!=null){K=e}}}if(K.toString()=="NaN"||K.toString()=="Invalid Date"){if(i.jqx.dataFormat){L=i.jqx.dataFormat.tryparsedate(L)}else{L=K}}else{L=K}if(L==null){L=J}}}else{if(H.type=="float"||H.type=="number"||H.type=="decimal"){if(L=="NaN"){L=""}else{var L=parseFloat(L);if(isNaN(L)){L=J}}}else{if(H.type=="int"||H.type=="integer"){var L=parseInt(L);if(isNaN(L)){L=J}}else{if(H.type=="bool"||H.type=="boolean"){if(L!=null){if(L.toLowerCase!=undefined){if(L.toLowerCase()=="false"){L=false}else{if(L.toLowerCase()=="true"){L=true}}}}if(L==1){L=true}else{if(L==0&&L!==""){L=false}else{L=""}}}}}}return L}};i.jqx.dataFormat={};i.extend(i.jqx.dataFormat,{regexTrim:/^\s+|\s+$/g,regexInfinity:/^[+-]?infinity$/i,regexHex:/^0x[a-f0-9]+$/i,regexParseFloat:/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/,toString:Object.prototype.toString,isBoolean:function(e){return typeof e==="boolean"},isObject:function(e){return(e&&(typeof e==="object"||i.isFunction(e)))||false},isDate:function(e){return e instanceof Date},arrayIndexOf:function(J,I){if(J.indexOf){return J.indexOf(I)}for(var e=0,H=J.length;e<H;e++){if(J[e]===I){return e}}return -1},isString:function(e){return typeof e==="string"},isNumber:function(e){return typeof e==="number"&&isFinite(e)},isNull:function(e){return e===null},isUndefined:function(e){return typeof e==="undefined"},isValue:function(e){return(this.isObject(e)||this.isString(e)||this.isNumber(e)||this.isBoolean(e))},isEmpty:function(e){if(!this.isString(e)&&this.isValue(e)){return false}else{if(!this.isValue(e)){return true}}e=i.trim(e).replace(/\ \;/ig,"").replace(/\ \;/ig,"");return e===""},startsWith:function(H,e){return H.indexOf(e)===0},endsWith:function(H,e){return H.substr(H.length-e.length)===e},trim:function(e){return(e+"").replace(this.regexTrim,"")},isArray:function(e){return this.toString.call(e)==="[object Array]"},defaultcalendar:function(){var e={"/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss",ISO:"yyyy-MM-dd hh:mm:ss",ISO2:"yyyy-MM-dd HH:mm:ss",d1:"dd.MM.yyyy",d2:"dd-MM-yyyy",d3:"MM-dd-yyyy",zone1:"yyyy-MM-ddTHH:mm:ss-HH:mm",zone2:"yyyy-MM-ddTHH:mm:ss+HH:mm",custom:"yyyy-MM-ddTHH:mm:ss.fff",custom2:"yyyy-MM-dd HH:mm:ss.fff"},percentsymbol:"%",currencysymbol:"$",currencysymbolposition:"before",decimalseparator:".",thousandsseparator:","};return e},expandFormat:function(K,J){J=J||"F";var I,H=K.patterns,e=J.length;if(e===1){I=H[J];if(!I){throw"Invalid date format string '"+J+"'."}J=I}else{if(e===2&&J.charAt(0)==="%"){J=J.charAt(1)}}return J},getEra:function(I,H){if(!H){return 0}if(typeof I==="string"){return 0}var L,K=I.getTime();for(var J=0,e=H.length;J<e;J++){L=H[J].start;if(L===null||K>=L){return J}}return 0},toUpper:function(e){return e.split("\u00A0").join(" ").toUpperCase()},toUpperArray:function(e){var J=[];for(var I=0,H=e.length;I<H;I++){J[I]=this.toUpper(e[I])}return J},getEraYear:function(H,J,e,K){var I=H.getFullYear();if(!K&&J.eras){I-=J.eras[e].offset}return I},toUpper:function(e){if(e){return e.toUpperCase()}return""},getDayIndex:function(K,J,H){var e,L=K.days,I=K._upperDays;if(!I){K._upperDays=I=[this.toUpperArray(L.names),this.toUpperArray(L.namesAbbr),this.toUpperArray(L.namesShort)]}J=J.toUpperCase();if(H){e=this.arrayIndexOf(I[1],J);if(e===-1){e=this.arrayIndexOf(I[2],J)}}else{e=this.arrayIndexOf(I[0],J)}return e},getMonthIndex:function(N,M,I){var e=N.months,H=N.monthsGenitive||N.months,K=N._upperMonths,L=N._upperMonthsGen;if(!K){N._upperMonths=K=[this.toUpperArray(e.names),this.toUpperArray(e.namesAbbr)];N._upperMonthsGen=L=[this.toUpperArray(H.names),this.toUpperArray(H.namesAbbr)]}M=this.toUpper(M);var J=this.arrayIndexOf(I?K[1]:K[0],M);if(J<0){J=this.arrayIndexOf(I?L[1]:L[0],M)}return J},appendPreOrPostMatch:function(J,e){var I=0,L=false;for(var K=0,H=J.length;K<H;K++){var M=J.charAt(K);switch(M){case"'":if(L){e.push("'")}else{I++}L=false;break;case"\\":if(L){e.push("\\")}L=!L;break;default:e.push(M);L=false;break}}return I},getTokenRegExp:function(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g},formatlink:function(e,I){var H="";if(I&&I.target){H="target="+I.target}if(H!=""){return"<a "+H+' href="'+e+'">'+e+"</a>"}return'<a href="'+e+'">'+e+"</a>"},formatemail:function(e){return'<a href="mailto:'+e+'">'+e+"</a>"},formatNumber:function(e,I,H){return this.formatnumber(e,I,H)},formatnumber:function(T,S,O){if(O==undefined||O==null||O==""){O=this.defaultcalendar()}if(S===""||S===null){return T}if(!this.isNumber(T)){T*=1}var P;if(S.length>1){P=parseInt(S.slice(1),10)}var V={};var Q=S.charAt(0).toUpperCase();V.thousandsSeparator=O.thousandsseparator;V.decimalSeparator=O.decimalseparator;switch(Q){case"D":case"d":case"F":case"f":V.decimalPlaces=P;break;case"N":case"n":V.decimalPlaces=0;break;case"C":case"c":V.decimalPlaces=P;if(O.currencysymbolposition=="before"){V.prefix=O.currencysymbol}else{V.suffix=O.currencysymbol}break;case"P":case"p":V.suffix=O.percentsymbol;V.decimalPlaces=P;break;default:throw"Bad number format specifier: "+Q}if(this.isNumber(T)){var K=(T<0);var I=T+"";var R=(V.decimalSeparator)?V.decimalSeparator:".";var e;if(this.isNumber(V.decimalPlaces)){var L=V.decimalPlaces;var N=Math.pow(10,L);I=(T*N).toFixed(0)/N+"";e=I.lastIndexOf(".");if(L>0){if(e<0){I+=R;e=I.length-1}else{if(R!=="."){I=I.replace(".",R)}}while((I.length-1-e)<L){I+="0"}}}else{var I=T+"";e=I.lastIndexOf(".");if(e>0&&L==undefined){if(R!=="."){I=I.replace(".",R)}}}if(V.thousandsSeparator){var U=V.thousandsSeparator;e=I.lastIndexOf(R);e=(e>-1)?e:I.length;var J=I.substring(e);var H=-1;for(var M=e;M>0;M--){H++;if((H%3===0)&&(M!==e)&&(!K||(M>1))){J=U+J}J=I.charAt(M-1)+J}I=J}I=(V.prefix)?V.prefix+I:I;I=(V.suffix)?I+V.suffix:I;return I}else{return T}},tryparsedate:function(ak,al){if(al==undefined||al==null){al=this.defaultcalendar()}var P=this;if(ak==""){return null}if(ak!=null&&!ak.substring){ak=ak.toString()}if(ak!=null&&ak.substring(0,6)=="/Date("){var au=/^\/Date\((-?\d+)(\+|-)?(\d+)?\)\/$/;var ar=new Date(+ak.replace(/\/Date\((\d+)\)\//,"$1"));if(ar=="Invalid Date"){var an=ak.match(/^\/Date\((\d+)([-+]\d\d)(\d\d)\)\/$/);var ar=null;if(an){ar=new Date(1*an[1]+3600000*an[2]+60000*an[3])}}if(ar==null||ar=="Invalid Date"||isNaN(ar)){var Q=au.exec(ak);if(Q){var T=new Date(parseInt(Q[1]));if(Q[2]){var Z=parseInt(Q[3]);if(Q[2]==="-"){Z=-Z}var V=T.getUTCMinutes();T.setUTCMinutes(V-Z)}if(!isNaN(T.valueOf())){return T}}}return ar}var N=al.patterns;for(var S in N){ar=P.parsedate(ak,N[S],al);if(ar){if(S=="ISO"){var ac=P.parsedate(ak,N.ISO2,al);if(ac){return ac}}return ar}}if(ak!=null){var ac=null;var L=[":","/","-"];var ap=true;for(var O=0;O<L.length;O++){if(ak.indexOf(L[O])!=-1){ap=false}}if(ap){var av=new Number(ak);if(!isNaN(av)){return new Date(av)}}}if(i.type(ak)==="string"){var ag=P;ak=ag.trim(ak);var am=[":","/","-"," ",","];var M=function(az,ax,ay){return ay.replace(new RegExp(az,"g"),ax)};ak=M(", ",",",ak);var I="";var Y=ak;if(ak.indexOf(":")>=0){I=ak.substring(ak.indexOf(":")-2);I=ag.trim(I);Y=ak.substring(0,ak.indexOf(":")-2)}else{if(ak.toUpperCase().indexOf("AM")>=0){I=ak.substring(ak.toUpperCase().indexOf("AM")-2);I=ag.trim(I);Y=ak.substring(0,ak.toUpperCase().indexOf("AM")-2)}else{if(ak.toUpperCase().indexOf("PM")>=0){I=ak.substring(ak.toUpperCase().indexOf("PM")-2);I=ag.trim(I);Y=ak.substring(0,ak.toUpperCase().indexOf("PM")-2)}}}var e=new Date();var aj=false;if(Y){for(var aq=0;aq<am.length;aq++){if(Y.indexOf(am[aq])>=0){L=Y.split(am[aq]);break}}var H=new Array();var W=new Array();var ae=new Array();var R=null;var aw=null;for(var aq=0;aq<L.length;aq++){var O=L[aq];var ad=ag.parsedate(O,"d",al)||ag.parsedate(O,"dd",al)||ag.parsedate(O,"ddd",al)||ag.parsedate(O,"dddd",al);if(ad){if(O.length<=2){R=aq;H.push(ad.getDate());break}}}for(var aq=0;aq<L.length;aq++){var O=L[aq];var U=ag.parsedate(O,"M",al)||ag.parsedate(O,"MM",al)||ag.parsedate(O,"MMM",al)||ag.parsedate(O,"MMMM",al);if(U){if(R!=undefined&&R==aq){continue}W.push(U.getMonth());if(O.length>2){aw=aq;break}}}for(var aq=0;aq<L.length;aq++){var O=L[aq];var af=ag.parsedate(O,"yyyy",al);if(af){if(R!=undefined&&R==aq){continue}if(aw!=undefined&&aw==aq){continue}ae.push(af.getFullYear())}}var ao=new Array();for(var at=0;at<H.length;at++){for(var an=0;an<W.length;an++){for(var ai=0;ai<ae.length;ai++){var T=new Date(ae[ai],W[an],H[at]);if(ae[ai]<1970){T.setFullYear(ae[ai])}if(T.getTime()!=NaN){ao.push(T)}}}}if(ao.length>0){e=ao[0];aj=true}}if(I){var ah=I.indexOf(":")>=0?I.split(":"):I;var K=ag.parsedate(I,"h:mm tt",al)||ag.parsedate(I,"h:mm:ss tt",al)||ag.parsedate(I,"HH:mm:ss.fff",al)||ag.parsedate(I,"HH:mm:ss.ff",al)||ag.parsedate(I,"HH:mm:ss.tttt",al)||ag.parsedate(I,"HH:mm:ss",al)||ag.parsedate(I,"HH:mm",al)||ag.parsedate(I,"HH",al);var X=0,J=0,aa=0,ab=0;if(K&&K.getTime()!=NaN){X=K.getHours();J=K.getMinutes();aa=K.getSeconds();ab=K.getMilliseconds()}else{if(ah.length==1){X=parseInt(ah[0])}if(ah.length==2){X=parseInt(ah[0]);J=parseInt(ah[1])}if(ah.length==3){X=parseInt(ah[0]);J=parseInt(ah[1]);if(ah[2].indexOf(".")>=0){aa=parseInt(ah[2].toString().split(".")[0]);ab=parseInt(ah[2].toString().split(".")[1])}else{aa=parseInt(ah[2])}}if(ah.length==4){X=parseInt(ah[0]);J=parseInt(ah[1]);aa=parseInt(ah[2]);ab=parseInt(ah[3])}}if(e&&!isNaN(X)&&!isNaN(J)&&!isNaN(aa)&&!isNaN(ab)){e.setHours(X,J,aa,ab);aj=true}}if(aj){return e}}return null},getparseregexp:function(e,R){var T=e._parseRegExp;if(!T){e._parseRegExp=T={}}else{var K=T[R];if(K){return K}}var Q=this.expandFormat(e,R).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),O=["^"],H=[],N=0,J=0,W=this.getTokenRegExp(),L;while((L=W.exec(Q))!==null){var V=Q.slice(N,L.index);N=W.lastIndex;J+=this.appendPreOrPostMatch(V,O);if(J%2){O.push(L[0]);continue}var I=L[0],M=I.length,S;switch(I){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":S="(\\D+)";break;case"tt":case"t":S="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":S="(\\d{"+M+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":S="(\\d\\d?)";break;case"zzz":S="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":S="([+-]?\\d\\d?)";break;case"/":S="(\\"+e["/"]+")";break;default:throw"Invalid date format pattern '"+I+"'.";break}if(S){O.push(S)}H.push(L[0])}this.appendPreOrPostMatch(Q.slice(N),O);O.push("$");var U=O.join("").replace(/\s+/g,"\\s+"),P={regExp:U,groups:H};return T[R]=P},outOfRange:function(I,e,H){return I<e||I>H},expandYear:function(L,J){var H=new Date(),e=this.getEra(H);if(J<100){var I=L.twoDigitYearMax;I=typeof I==="string"?new Date().getFullYear()%100+parseInt(I,10):I;var K=this.getEraYear(H,L,e);J+=K-(K%100);if(J>I){J-=100}}return J},parsedate:function(ab,ai,W){if(W==undefined||W==null){W=this.defaultcalendar()}ab=this.trim(ab);var T=W,an=this.getparseregexp(T,ai),N=new RegExp(an.regExp).exec(ab);if(N===null){return null}var aj=an.groups,Z=null,R=null,am=null,al=null,S=null,L=0,ae,ad=0,ak=0,e=0,I=null,U=false;for(var af=0,ah=aj.length;af<ah;af++){var H=N[af+1];if(H){var aa=aj[af],K=aa.length,M=parseInt(H,10);switch(aa){case"dd":case"d":al=M;if(this.outOfRange(al,1,31)){return null}break;case"MMM":case"MMMM":am=this.getMonthIndex(T,H,K===3);if(this.outOfRange(am,0,11)){return null}break;case"M":case"MM":am=M-1;if(this.outOfRange(am,0,11)){return null}break;case"y":case"yy":case"yyyy":R=K<4?this.expandYear(T,M):M;if(this.outOfRange(R,0,9999)){return null}break;case"h":case"hh":L=M;if(L===12){L=0}if(this.outOfRange(L,0,11)){return null}break;case"H":case"HH":L=M;if(this.outOfRange(L,0,23)){return null}break;case"m":case"mm":ad=M;if(this.outOfRange(ad,0,59)){return null}break;case"s":case"ss":ak=M;if(this.outOfRange(ak,0,59)){return null}break;case"tt":case"t":U=T.PM&&(H===T.PM[0]||H===T.PM[1]||H===T.PM[2]);if(!U&&(!T.AM||(H!==T.AM[0]&&H!==T.AM[1]&&H!==T.AM[2]))){return null}break;case"f":case"ff":case"fff":e=M*Math.pow(10,3-K);if(this.outOfRange(e,0,999)){return null}break;case"ddd":case"dddd":S=this.getDayIndex(T,H,K===3);if(this.outOfRange(S,0,6)){return null}break;case"zzz":var J=H.split(/:/);if(J.length!==2){return null}ae=parseInt(J[0],10);if(this.outOfRange(ae,-12,13)){return null}var P=parseInt(J[1],10);if(this.outOfRange(P,0,59)){return null}I=(ae*60)+(this.startsWith(H,"-")?-P:P);break;case"z":case"zz":ae=M;if(this.outOfRange(ae,-12,13)){return null}I=ae*60;break;case"g":case"gg":var V=H;if(!V||!T.eras){return null}V=this.trim(V.toLowerCase());for(var ag=0,ac=T.eras.length;ag<ac;ag++){if(V===T.eras[ag].name.toLowerCase()){Z=ag;break}}if(Z===null){return null}break}}}var Q=new Date(),Y,O=T.convert;Y=Q.getFullYear();if(R===null){R=Y}else{if(T.eras){R+=T.eras[(Z||0)].offset}}if(am===null){am=0}if(al===null){al=1}if(O){Q=O.toGregorian(R,am,al);if(Q===null){return null}}else{Q.setFullYear(R,am,al);if(Q.getDate()!==al){return null}if(S!==null&&Q.getDay()!==S){return null}}if(U&&L<12){L+=12}Q.setHours(L,ad,ak,e);if(I!==null){var X=Q.getMinutes()-(I+Q.getTimezoneOffset());Q.setHours(Q.getHours()+parseInt(X/60,10),X%60)}return Q},cleardatescache:function(){this.datescache=new Array()},formatDate:function(e,I,H){return this.formatdate(e,I,H)},formatdate:function(Z,ad,U){if(U==undefined||U==null){U=this.defaultcalendar()}if(typeof Z==="string"){return Z}var J=Z.toString()+"_"+ad;if(this.datescache&&this.datescache[J]){if(ad.indexOf("f")==-1){return this.datescache[J]}}if(!ad||!ad.length||ad==="i"){var af;af=this.formatDate(Z,U.patterns.F,U);return af}var aa=U.eras,H=ad==="s";ad=this.expandFormat(U,ad);af=[];var M,ab=["0","00","000"],Q,R,e=/([^d]|^)(d|dd)([^d]|$)/g,ae=0,W=this.getTokenRegExp(),I;function O(ag,aj){var ai,ah=ag+"";if(aj>1&&ah.length<aj){ai=(ab[aj-2]+ah);return ai.substr(ai.length-aj,aj)}else{ai=ah}return ai}function ac(){if(Q||R){return Q}Q=e.test(ad);R=true;return Q}function K(ah,ag){if(I){return I[ag]}if(ah.getMonth!=undefined){switch(ag){case 0:return ah.getFullYear();case 1:return ah.getMonth();case 2:return ah.getDate()}}}for(;;){var N=W.lastIndex,V=W.exec(ad);var S=ad.slice(N,V?V.index:ad.length);ae+=this.appendPreOrPostMatch(S,af);if(!V){break}if(ae%2){af.push(V[0]);continue}var X=V[0],L=X.length;switch(X){case"ddd":case"dddd":var T=(L===3)?U.days.namesAbbr:U.days.names;af.push(T[Z.getDay()]);break;case"d":case"dd":Q=true;af.push(O(K(Z,2),L));break;case"MMM":case"MMMM":var Y=K(Z,1);af.push(U.months[L===3?"namesAbbr":"names"][Y]);break;case"M":case"MM":af.push(O(K(Z,1)+1,L));break;case"y":case"yy":case"yyyy":Y=this.getEraYear(Z,U,this.getEra(Z,aa),H);if(L<4){Y=Y%100}af.push(O(Y,L));break;case"h":case"hh":M=Z.getHours()%12;if(M===0){M=12}af.push(O(M,L));break;case"H":case"HH":af.push(O(Z.getHours(),L));break;case"m":case"mm":af.push(O(Z.getMinutes(),L));break;case"s":case"ss":af.push(O(Z.getSeconds(),L));break;case"t":case"tt":Y=Z.getHours()<12?(U.AM?U.AM[0]:" "):(U.PM?U.PM[0]:" ");af.push(L===1?Y.charAt(0):Y);break;case"f":case"ff":case"fff":af.push(O(Z.getMilliseconds(),3).substr(0,L));break;case"z":case"zz":M=Z.getTimezoneOffset()/60;af.push((M<=0?"+":"-")+O(Math.floor(Math.abs(M)),L));break;case"zzz":M=Z.getTimezoneOffset()/60;af.push((M<=0?"+":"-")+O(Math.floor(Math.abs(M)),2)+":"+O(Math.abs(Z.getTimezoneOffset()%60),2));break;case"g":case"gg":if(U.eras){af.push(U.eras[this.getEra(Z,aa)].name)}break;case"/":af.push(U["/"]);break;default:throw"Invalid date format pattern '"+X+"'.";break}}var P=af.join("");if(!this.datescache){this.datescache=new Array()}this.datescache[J]=P;return P}});i.jqx.data={};var l,E,p=/#.*$/,a=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,f=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,j=/^(?:GET|HEAD)$/,o=/^\/\//,k=/\?/,b=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,d=/([?&])_=[^&]*/,h=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,t=/\s+/,F=i.fn.load,G={},C={},q=["*/"]+["*"];try{E=location.href}catch(A){E=document.createElement("a");E.href="";E=E.href}l=h.exec(E.toLowerCase())||[];function r(e){return function(K,M){if(typeof K!=="string"){M=K;K="*"}var H,N,O,J=K.toLowerCase().split(t),I=0,L=J.length;if(i.isFunction(M)){for(;I<L;I++){H=J[I];O=/^\+/.test(H);if(O){H=H.substr(1)||"*"}N=e[H]=e[H]||[];N[O?"unshift":"push"](M)}}}}function v(H,Q,L,O,N,J){N=N||Q.dataTypes[0];J=J||{};J[N]=true;var P,M=H[N],I=0,e=M?M.length:0,K=(H===G);for(;I<e&&(K||!P);I++){P=M[I](Q,L,O);if(typeof P==="string"){if(!K||J[P]){P=undefined}else{Q.dataTypes.unshift(P);P=v(H,Q,L,O,P,J)}}}if((K||!P)&&!J["*"]){P=v(H,Q,L,O,"*",J)}return P}function u(I,J){var H,e,K=i.jqx.data.ajaxSettings.flatOptions||{};for(H in J){if(J[H]!==undefined){(K[H]?I:(e||(e={})))[H]=J[H]}}if(e){i.extend(true,I,e)}}i.extend(i.jqx.data,{ajaxSetup:function(H,e){if(e){u(H,i.jqx.data.ajaxSettings)}else{e=H;H=i.jqx.data.ajaxSettings}u(H,e);return H},ajaxSettings:{url:E,isLocal:f.test(l[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":q},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":true,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:r(G),ajaxTransport:r(C),ajax:function(M,J){if(typeof M==="object"){J=M;M=undefined}J=J||{};var P,ad,K,Y,R,V,I,X,Q=i.jqx.data.ajaxSetup({},J),af=Q.context||Q,T=af!==Q&&(af.nodeType||af instanceof i)?i(af):i.event,ae=i.Deferred(),aa=i.Callbacks("once memory"),N=Q.statusCode||{},U={},ab={},L=0,O="canceled",W={readyState:0,setRequestHeader:function(ag,ah){if(!L){var e=ag.toLowerCase();ag=ab[e]=ab[e]||ag;U[ag]=ah}return this},getAllResponseHeaders:function(){return L===2?ad:null},getResponseHeader:function(ag){var e;if(L===2){if(!K){K={};while((e=a.exec(ad))){K[e[1].toLowerCase()]=e[2]}}e=K[ag.toLowerCase()]}return e===undefined?null:e},overrideMimeType:function(e){if(!L){Q.mimeType=e}return this},abort:function(e){e=e||O;if(Y){Y.abort(e)}S(0,e);return this}};function S(ak,ag,al,ai){var e,ao,am,aj,an,ah=ag;if(L===2){return}L=2;if(R){clearTimeout(R)}Y=undefined;ad=ai||"";W.readyState=ak>0?4:0;if(al){aj=B(Q,W,al)}if(ak>=200&&ak<300||ak===304){if(Q.ifModified){an=W.getResponseHeader("Last-Modified");if(an){i.lastModified[P]=an}an=W.getResponseHeader("Etag");if(an){i.etag[P]=an}}if(ak===304){ah="notmodified";e=true}else{e=c(Q,aj);ah=e.state;ao=e.data;am=e.error;e=!am}}else{am=ah;if(!ah||ak){ah="error";if(ak<0){ak=0}}}W.status=ak;W.statusText=(ag||ah)+"";if(e){ae.resolveWith(af,[ao,ah,W])}else{ae.rejectWith(af,[W,ah,am])}W.statusCode(N);N=undefined;if(I){T.trigger("ajax"+(e?"Success":"Error"),[W,Q,e?ao:am])}aa.fireWith(af,[W,ah]);if(I){T.trigger("ajaxComplete",[W,Q]);if(!(--i.active)){i.event.trigger("ajaxStop")}}}ae.promise(W);W.success=W.done;W.error=W.fail;W.complete=aa.add;W.statusCode=function(ag){if(ag){var e;if(L<2){for(e in ag){N[e]=[N[e],ag[e]]}}else{e=ag[W.status];W.always(e)}}return this};Q.url=((M||Q.url)+"").replace(p,"").replace(o,l[1]+"//");Q.dataTypes=i.trim(Q.dataType||"*").toLowerCase().split(t);if(Q.crossDomain==null){V=h.exec(Q.url.toLowerCase());Q.crossDomain=!!(V&&(V[1]!==l[1]||V[2]!==l[2]||(V[3]||(V[1]==="http:"?80:443))!=(l[3]||(l[1]==="http:"?80:443))))}if(Q.data&&Q.processData&&typeof Q.data!=="string"){Q.data=i.param(Q.data,Q.traditional)}v(G,Q,J,W);if(L===2){return W}I=Q.global;Q.type=Q.type.toUpperCase();Q.hasContent=!j.test(Q.type);if(I&&i.active++===0){i.event.trigger("ajaxStart")}if(!Q.hasContent){if(Q.data){Q.url+=(k.test(Q.url)?"&":"?")+Q.data;delete Q.data}P=Q.url;if(Q.cache===false){var H=(new Date()).getTime(),ac=Q.url.replace(d,"$1_="+H);Q.url=ac+((ac===Q.url)?(k.test(Q.url)?"&":"?")+"_="+H:"")}}if(Q.data&&Q.hasContent&&Q.contentType!==false||J.contentType){W.setRequestHeader("Content-Type",Q.contentType)}if(Q.ifModified){P=P||Q.url;if(i.lastModified[P]){W.setRequestHeader("If-Modified-Since",i.lastModified[P])}if(i.etag[P]){W.setRequestHeader("If-None-Match",i.etag[P])}}W.setRequestHeader("Accept",Q.dataTypes[0]&&Q.accepts[Q.dataTypes[0]]?Q.accepts[Q.dataTypes[0]]+(Q.dataTypes[0]!=="*"?", "+q+"; q=0.01":""):Q.accepts["*"]);for(X in Q.headers){W.setRequestHeader(X,Q.headers[X])}if(Q.beforeSend&&(Q.beforeSend.call(af,W,Q)===false||L===2)){return W.abort()}O="abort";for(X in {success:1,error:1,complete:1}){W[X](Q[X])}Y=v(C,Q,J,W);if(!Y){S(-1,"No Transport")}else{W.readyState=1;if(I){T.trigger("ajaxSend",[W,Q])}if(Q.async&&Q.timeout>0){R=setTimeout(function(){W.abort("timeout")},Q.timeout)}try{L=1;Y.send(U,S)}catch(Z){if(L<2){S(-1,Z)}else{throw Z}}}return W},active:0,lastModified:{},etag:{}});function B(P,O,L){var K,M,J,e,H=P.contents,N=P.dataTypes,I=P.responseFields;for(M in I){if(M in L){O[I[M]]=L[M]}}while(N[0]==="*"){N.shift();if(K===undefined){K=P.mimeType||O.getResponseHeader("content-type")}}if(K){for(M in H){if(H[M]&&H[M].test(K)){N.unshift(M);break}}}if(N[0] in L){J=N[0]}else{for(M in L){if(!N[0]||P.converters[M+" "+N[0]]){J=M;break}if(!e){e=M}}J=J||e}if(J){if(J!==N[0]){N.unshift(J)}return L[J]}}function c(R,J){var P,H,N,L,O=R.dataTypes.slice(),I=O[0],Q={},K=0;if(R.dataFilter){J=R.dataFilter(J,R.dataType)}if(O[1]){for(P in R.converters){Q[P.toLowerCase()]=R.converters[P]}}for(;(N=O[++K]);){if(N!=="*"){if(I!=="*"&&I!==N){P=Q[I+" "+N]||Q["* "+N];if(!P){for(H in Q){L=H.split(" ");if(L[1]===N){P=Q[I+" "+L[0]]||Q["* "+L[0]];if(P){if(P===true){P=Q[H]}else{if(Q[H]!==true){N=L[0];O.splice(K--,0,N)}}break}}}}if(P!==true){if(P&&R["throws"]){J=P(J)}else{try{J=P(J)}catch(M){return{state:"parsererror",error:P?M:"No conversion from "+I+" to "+N}}}}}I=N}}return{state:"success",data:J}}var y=[],n=/\?/,D=/(=)\?(?=&|$)|\?\?/,z=(new Date()).getTime();i.jqx.data.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=y.pop()||(i.expando+"_"+(z++));this[e]=true;return e}});i.jqx.data.ajaxPrefilter("json jsonp",function(Q,L,P){var O,e,N,J=Q.data,H=Q.url,I=Q.jsonp!==false,M=I&&D.test(H),K=I&&!M&&typeof J==="string"&&!(Q.contentType||"").indexOf("application/x-www-form-urlencoded")&&D.test(J);if(Q.dataTypes[0]==="jsonp"||M||K){O=Q.jsonpCallback=i.isFunction(Q.jsonpCallback)?Q.jsonpCallback():Q.jsonpCallback;e=window[O];if(M){Q.url=H.replace(D,"$1"+O)}else{if(K){Q.data=J.replace(D,"$1"+O)}else{if(I){Q.url+=(n.test(H)?"&":"?")+Q.jsonp+"="+O}}}Q.converters["script json"]=function(){if(!N){i.error(O+" was not called")}return N[0]};Q.dataTypes[0]="json";window[O]=function(){N=arguments};P.always(function(){window[O]=e;if(Q[O]){Q.jsonpCallback=L.jsonpCallback;y.push(O)}if(N&&i.isFunction(e)){e(N[0])}N=e=undefined});return"script"}});i.jqx.data.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){i.globalEval(e);return e}}});i.jqx.data.ajaxPrefilter("script",function(e){if(e.cache===undefined){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});i.jqx.data.ajaxTransport("script",function(I){if(I.crossDomain){var e,H=document.head||document.getElementsByTagName("head")[0]||document.documentElement;return{send:function(J,K){e=document.createElement("script");e.async="async";if(I.scriptCharset){e.charset=I.scriptCharset}e.src=I.url;e.onload=e.onreadystatechange=function(M,L){if(L||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(H&&e.parentNode){H.removeChild(e)}e=undefined;if(!L){K(200,"success")}}};H.insertBefore(e,H.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var w,x=window.ActiveXObject?function(){for(var e in w){w[e](0,1)}}:false,m=0;function g(){try{return new window.XMLHttpRequest()}catch(H){}}function s(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(H){}}i.jqx.data.ajaxSettings.xhr=window.ActiveXObject?function(){return !this.isLocal&&g()||s()}:g;(function(e){i.extend(i.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(i.jqx.data.ajaxSettings.xhr());if(!i.support){i.support={ajax:true}}if(i.support.ajax){i.jqx.data.ajaxTransport(function(e){if(!e.crossDomain||i.support.cors){var H;return{send:function(N,I){var L,K,M=e.xhr();if(e.username){M.open(e.type,e.url,e.async,e.username,e.password)}else{M.open(e.type,e.url,e.async)}if(e.xhrFields){for(K in e.xhrFields){M[K]=e.xhrFields[K]}}if(e.mimeType&&M.overrideMimeType){M.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!N["X-Requested-With"]){N["X-Requested-With"]="XMLHttpRequest"}try{for(K in N){M.setRequestHeader(K,N[K])}}catch(J){}M.send((e.hasContent&&e.data)||null);H=function(W,Q){var R,P,O,U,T;try{if(H&&(Q||M.readyState===4)){H=undefined;if(L){M.onreadystatechange=function(){};if(x){delete w[L]}}if(Q){if(M.readyState!==4){M.abort()}}else{R=M.status;O=M.getAllResponseHeaders();U={};T=M.responseXML;if(T&&T.documentElement){U.xml=T}try{U.text=M.responseText}catch(V){}try{P=M.statusText}catch(V){P=""}if(!R&&e.isLocal&&!e.crossDomain){R=U.text?200:404}else{if(R===1223){R=204}}}}}catch(S){if(!Q){I(-1,S)}}if(U){I(R,P,U,O)}};if(!e.async){H()}else{if(M.readyState===4){setTimeout(H,0)}else{L=++m;if(x){if(!w){w={};i(window).unload(x)}w[L]=H}M.onreadystatechange=H}}},abort:function(){if(H){H(0,1)}}}}})}i.jqx.filter=function(){this.operator="and";var M=0;var J=1;var P=["EMPTY","NOT_EMPTY","CONTAINS","CONTAINS_CASE_SENSITIVE","DOES_NOT_CONTAIN","DOES_NOT_CONTAIN_CASE_SENSITIVE","STARTS_WITH","STARTS_WITH_CASE_SENSITIVE","ENDS_WITH","ENDS_WITH_CASE_SENSITIVE","EQUAL","EQUAL_CASE_SENSITIVE","NULL","NOT_NULL"];var R=["EQUAL","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL","NULL","NOT_NULL"];var S=["EQUAL","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL","NULL","NOT_NULL"];var L=["EQUAL","NOT_EQUAL"];var K=new Array();var Q=new Array();this.evaluate=function(X){var V=true;for(var W=0;W<K.length;W++){var U=K[W].evaluate(X);if(W==0){V=U}else{if(Q[W]==J||Q[W]=="or"){V=V||U}else{V=V&&U}}}return V};this.getfilterscount=function(){return K.length};this.setoperatorsbyfiltertype=function(U,V){switch(U){case"numericfilter":R=V;break;case"stringfilter":P=V;break;case"datefilter":S=V;break;case"booleanfilter":L=V;break}};this.getoperatorsbyfiltertype=function(U){var V=new Array();switch(U){case"numericfilter":V=R.slice(0);break;case"stringfilter":V=P.slice(0);break;case"datefilter":V=S.slice(0);break;case"booleanfilter":V=L.slice(0);break}return V};var O=function(){var U=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return(U()+"-"+U()+"-"+U())};this.createfilter=function(Y,V,X,W,U,Z){if(Y==null||Y==undefined){return null}switch(Y){case"numericfilter":return new N(V,X.toUpperCase());case"stringfilter":return new T(V,X.toUpperCase());case"datefilter":return new H(V,X.toUpperCase(),U,Z);case"booleanfilter":return new I(V,X.toUpperCase());case"custom":return new e(V,X.toUpperCase(),W)}throw new Error("jqxGrid: There is no such filter type. The available filter types are: 'numericfilter', 'stringfilter', 'datefilter' and 'booleanfilter'");return null};this.getfilters=function(){var U=new Array();for(var V=0;V<K.length;V++){var W={value:K[V].filtervalue,condition:K[V].comparisonoperator,operator:Q[V],type:K[V].type};if(K[V].data){W.id=K[V].data}U[V]=W}return U};this.addfilter=function(U,V){K[K.length]=V;V.key=O();Q[Q.length]=U};this.removefilter=function(V){for(var U=0;U<K.length;U++){if(K[U].key==V.key){K.splice(U,1);Q.splice(U,1);break}}};this.getoperatorat=function(U){if(U==undefined||U==null){return null}if(U<0||U>K.length){return null}return Q[U]};this.setoperatorat=function(V,U){if(V==undefined||V==null){return null}if(V<0||V>K.length){return null}Q[U]=U};this.getfilterat=function(U){if(U==undefined||U==null){return null}if(U<0||U>K.length){return null}return K[U]};this.setfilterat=function(U,V){if(U==undefined||U==null){return null}if(U<0||U>K.length){return null}V.key=O();K[U]=V};this.clear=function(){K=new Array();Q=new Array()};var T=function(V,U){this.filtervalue=V;this.comparisonoperator=U;this.type="stringfilter";this.evaluate=function(af){var ae=this.filtervalue;var al=this.comparisonoperator;if(af==null||af==undefined||af==""){if(al=="NULL"){return true}if(al=="NOT_NULL"){return false}if(al=="EQUAL"&&af==ae){return true}if(al=="NOT_EQUAL"&&af!=ae){return true}if(al!="EMPTY"){return false}else{if(af==""){return true}}}var an="";try{an=af.toString()}catch(ag){return true}var am=function(ap,ao){switch(al){case"EQUAL":return i.jqx.string.equalsIgnoreCase(ap,ao);case"EQUAL_CASE_SENSITIVE":return i.jqx.string.equals(ap,ao);case"NOT_EQUAL":return !i.jqx.string.equalsIgnoreCase(ap,ao);case"NOT_EQUAL_CASE_SENSITIVE":return !i.jqx.string.equals(ap,ao);case"CONTAINS":return i.jqx.string.containsIgnoreCase(ap,ao);case"CONTAINS_CASE_SENSITIVE":return i.jqx.string.contains(ap,ao);case"DOES_NOT_CONTAIN":return !i.jqx.string.containsIgnoreCase(ap,ao);case"DOES_NOT_CONTAIN_CASE_SENSITIVE":return !i.jqx.string.contains(ap,ao);case"EMPTY":return ap=="";case"NOT_EMPTY":return ap!="";case"NOT_NULL":return ap!=null;case"STARTS_WITH":return i.jqx.string.startsWithIgnoreCase(ap,ao);case"ENDS_WITH":return i.jqx.string.endsWithIgnoreCase(ap,ao);case"ENDS_WITH_CASE_SENSITIVE":return i.jqx.string.endsWith(ap,ao);case"STARTS_WITH_CASE_SENSITIVE":return i.jqx.string.startsWith(ap,ao);default:return false}};var Z=new Array();if(ae&&ae.indexO&&al!=="NOT_EQUAL"){if(ae.indexOf("|")>=0||ae.indexOf(" AND ")>=0||ae.indexOf(" OR ")>=0||ae.indexOf(" and ")>=0||ae.indexOf(" or ")>=0){var aa=am(an,ae);if(aa){return aa}var ab=ae.indexOf(" AND ")>=0?ae.split(" AND "):new Array();var Y=ae.indexOf(" OR ")>=0?ae.split(" OR "):new Array();var X=ae.indexOf(" and ")>=0?ae.split(" and "):new Array();var ac=ae.indexOf(" or ")>=0?ae.split(" or "):new Array();var W=ae.indexOf("|")>=0?ae.split("|"):new Array();if(W.length>0){for(var ak=0;ak<W.length;ak++){W[ak]=i.trim(W[ak])}}var aj=ae.indexOf(" ")>=0?ae.split(" "):new Array();if(aj.length>0){for(var ak=0;ak<aj.length;ak++){aj[ak]=i.trim(aj[ak])}}ab=ab.concat(aj);ab=ab.concat(X);Y=Y.concat(W);Y=Y.concat(ac);if(ab.length>0){for(var ak=0;ak<ab.length;ak++){if(!ab[ak].indexOf(" OR ")>=0){Z.push(ab[ak])}}}if(Y.length>0){for(var ak=0;ak<Y.length;ak++){if(!Y[ak].indexOf(" AND ")>=0){Z.push(Y[ak])}}}var ai=undefined;for(var ah=0;ah<Z.length;ah++){var af=Z[ah];var aa=am(an,af);var ad=ah<ab.length?"and":"or";if(ai==undefined){ai=aa}else{if(ad=="or"){ai=ai||aa}else{ai=ai&&aa}}}return ai}}return am(an,ae)}};var I=function(V,U){this.filtervalue=V;this.comparisonoperator=U;this.type="booleanfilter";this.evaluate=function(Y){var X=this.filtervalue;var W=this.comparisonoperator;if(Y==null||Y==undefined){if(W=="NULL"){return true}return false}var Z=Y;switch(W){case"EQUAL":return Z==X||Z.toString()==X.toString();case"NOT_EQUAL":return Z!=X&&Z.toString()!=X.toString();default:return false}}};var N=function(V,U){this.filtervalue=V;this.comparisonoperator=U;this.type="numericfilter";this.evaluate=function(ag){var af=this.filtervalue;var al=this.comparisonoperator;if(ag===null||ag===undefined||ag===""){if(al=="NOT_NULL"){return false}if(al=="NULL"){return true}else{switch(al){case"EQUAL":return ag==af;case"NOT_EQUAL":return ag!=af}return false}}else{if(al=="NULL"){return false}if(al=="NOT_NULL"){return true}}var an=ag;try{an=parseFloat(an)}catch(ah){if(ag.toString()!=""){return false}}var am=function(ap,ao){switch(al){case"EQUAL":return ap==ao;case"NOT_EQUAL":return ap!=ao;case"GREATER_THAN":return ap>ao;case"GREATER_THAN_OR_EQUAL":return ap>=ao;case"LESS_THAN":return ap<ao;case"LESS_THAN_OR_EQUAL":return ap<=ao;case"STARTS_WITH":return i.jqx.string.startsWithIgnoreCase(ap.toString(),ao.toString());case"ENDS_WITH":return i.jqx.string.endsWithIgnoreCase(ap.toString(),ao.toString());case"ENDS_WITH_CASE_SENSITIVE":return i.jqx.string.endsWith(ap.toString(),ao.toString());case"STARTS_WITH_CASE_SENSITIVE":return i.jqx.string.startsWith(ap.toString(),ao.toString());case"CONTAINS":return i.jqx.string.containsIgnoreCase(ap.toString(),ao.toString());case"CONTAINS_CASE_SENSITIVE":return i.jqx.string.contains(ap.toString(),ao.toString());case"DOES_NOT_CONTAIN":return !i.jqx.string.containsIgnoreCase(ap.toString(),ao.toString());case"DOES_NOT_CONTAIN_CASE_SENSITIVE":return !i.jqx.string.contains(ap.toString(),ao.toString());default:return true}};var aa=new Array();if(af&&af.indexOf){af=af.replace("$","")}if(af&&af.indexOf&&(af.indexOf("|")>=0||af.indexOf(" AND ")>=0||af.indexOf(" OR ")>=0||af.indexOf(" and ")>=0||af.indexOf(" or ")>=0)){var ab=am(an,af);if(ab){return ab}af=af.toString();var ac=af.indexOf(" AND ")>=0?af.split(" AND "):new Array();var Z=af.indexOf(" OR ")>=0?af.split(" OR "):new Array();var Y=af.indexOf(" and ")>=0?af.split(" and "):new Array();var ad=af.indexOf(" or ")>=0?af.split(" or "):new Array();ac=ac.concat(Y);Z=Z.concat(ad);var X=af.indexOf("|")>=0?af.split("|"):new Array();if(X.length>0){for(var ak=0;ak<X.length;ak++){X[ak]=i.trim(X[ak])}}Z=Z.concat(X);if(ac.length>0){for(var ak=0;ak<ac.length;ak++){if(!ac[ak].indexOf(" OR ")>=0){aa.push(ac[ak])}}}if(Z.length>0){for(var ak=0;ak<Z.length;ak++){if(!Z[ak].indexOf(" AND ")>=0){aa.push(Z[ak])}}}var aj=undefined;for(var ai=0;ai<aa.length;ai++){var ag=aa[ai];if(ag&&ag.indexOf&&ag.indexOf("..")>=0){var W=ag.toString().split("..");if(W.length==2){ab=an>=W[0]&&an<=W[1]}}else{var ab=am(an,ag)}var ae=ai<ac.length?"and":"or";if(aj==undefined){aj=ab}else{if(ae=="or"){aj=aj||ab}else{aj=aj&&ab}}}return aj}if(af&&af.indexOf&&af.indexOf("..")>=0){aa=af.toString().split("..");if(aa.length==2){return an>=aa[0]&&an<=aa[1]}}return am(an,af)}};var H=function(X,V,W,ab){this.filtervalue=X;this.type="datefilter";var Z=this;if(W!=undefined&&ab!=undefined){var Y=i.jqx.dataFormat.parsedate(X,W,ab);if(Y!=null){this.filterdate=Y}else{var U=i.jqx.dataFormat.tryparsedate(X,ab);if(U!=null){this.filterdate=U}}}else{var aa=new Date(X);if(aa.toString()=="NaN"||aa.toString()=="Invalid Date"){this.filterdate=i.jqx.dataFormat.tryparsedate(X)}else{this.filterdate=aa}}if(!this.filterdate){var aa=new Date(X);if(aa.toString()=="NaN"||aa.toString()=="Invalid Date"){this.filterdate=i.jqx.dataFormat.tryparsedate(X)}else{this.filterdate=aa}}this.comparisonoperator=V;this.evaluate=function(ao){var an=this.filtervalue;var aw=this.comparisonoperator;if(ao==null||ao==undefined||ao==""){if(aw=="NOT_NULL"){return false}if(aw=="NULL"){return true}else{switch(aw){case"EQUAL":return ao==an;case"NOT_EQUAL":return ao!=an}return false}}else{if(aw=="NULL"){return false}if(aw=="NOT_NULL"){return true}}var ay=new Date();ay.setFullYear(1900,0,1);ay.setHours(12,0,0,0);try{var av=new Date(ao);if(av.toString()=="NaN"||av.toString()=="Invalid Date"){ao=i.jqx.dataFormat.tryparsedate(ao)}else{ao=av}ay=ao;var at=false;if(W!=undefined&&ab!=undefined){if(W.indexOf("t")>=0||W.indexOf("T")>=0||W.indexOf(":")>=0||W.indexOf("f")>=0){at=true;if(an&&an.toString().indexOf(":")==-1){var aj=i.jqx.dataFormat.tryparsedate(an.toString()+":00",ab);if(aj!=null){Z.filterdate=aj}}}}if(W!=undefined){if(W.indexOf("hh")>=0||W.indexOf("t")>=0){at=true}}if(!at){ay.setHours(0);ay.setMinutes(0);ay.setSeconds(0)}}catch(ap){if(ao&&ao.toString()!=""){return false}return false}if(Z.filterdate!=null){an=Z.filterdate}else{if(an&&an.indexOf){if(an.indexOf(":")!=-1||!isNaN(parseInt(an))){var ai=new Date(ay);ai.setHours(12,0,0,0);var ah=an.split(":");for(var au=0;au<ah.length;au++){if(au==0){ai.setHours(ah[au])}if(au==1){ai.setMinutes(ah[au])}if(au==2){ai.setSeconds(ah[au])}}an=ai}}}if(at){if(an&&an.setFullYear){if(ay&&ay.getFullYear){if(W.indexOf("d")==-1&&W.indexOf("M")==-1&&W.indexOf("y")==-1){an.setFullYear(ay.getFullYear(),ay.getMonth(),ay.getDate())}}}}var ax=function(aA,az){if(aA==null){aA=""}switch(aw){case"EQUAL":return aA.toString()==az.toString();case"NOT_EQUAL":return aA.toString()!=az.toString();case"GREATER_THAN":return aA>az;case"GREATER_THAN_OR_EQUAL":return aA>=az;case"LESS_THAN":return aA<az;case"LESS_THAN_OR_EQUAL":return aA<=az;case"STARTS_WITH":return i.jqx.string.startsWithIgnoreCase(aA.toString(),az.toString());case"ENDS_WITH":return i.jqx.string.endsWithIgnoreCase(aA.toString(),az.toString());case"ENDS_WITH_CASE_SENSITIVE":return i.jqx.string.endsWith(aA.toString(),az.toString());case"STARTS_WITH_CASE_SENSITIVE":return i.jqx.string.startsWith(aA.toString(),az.toString());case"CONTAINS":return i.jqx.string.containsIgnoreCase(aA.toString(),az.toString());case"CONTAINS_CASE_SENSITIVE":return i.jqx.string.contains(aA.toString(),az.toString());case"DOES_NOT_CONTAIN":return !i.jqx.string.containsIgnoreCase(aA.toString(),az.toString());case"DOES_NOT_CONTAIN_CASE_SENSITIVE":return !i.jqx.string.contains(aA.toString(),az.toString());default:return true}};var ag=new Array();if(an&&an.indexOf){if(an.indexOf("|")>=0||an.indexOf(" AND ")>=0||an.indexOf(" OR ")>=0||an.indexOf(" and ")>=0||an.indexOf(" or ")>=0){var aj=ax(ay,an);if(aj){return aj}var ak=an.indexOf(" AND ")>=0?an.split(" AND "):new Array();var af=an.indexOf(" OR ")>=0?an.split(" OR "):new Array();var ae=an.indexOf(" and ")>=0?an.split(" and "):new Array();var al=an.indexOf(" or ")>=0?an.split(" or "):new Array();ak=ak.concat(ae);af=af.concat(al);var ad=an.indexOf("|")>=0?an.split("|"):new Array();if(ad.length>0){for(var au=0;au<ad.length;au++){ad[au]=i.trim(ad[au])}}af=af.concat(ad);if(ak.length>0){for(var au=0;au<ak.length;au++){if(!ak[au].indexOf(" OR ")>=0){ag.push(ak[au])}}}if(af.length>0){for(var au=0;au<af.length;au++){if(!af[au].indexOf(" AND ")>=0){ag.push(af[au])}}}var ar=undefined;for(var aq=0;aq<ag.length;aq++){var ao=ag[aq];if(ao&&ao.indexOf&&ao.indexOf("..")>=0){var ac=ao.toString().split("..");if(ac.length==2){aj=ay>=ac[0]&&ay<=ac[1]}}else{var aj=ax(ay,ao)}var am=aq<ak.length?"and":"or";if(ar==undefined){ar=aj}else{if(am=="or"){ar=ar||aj}else{ar=ar&&aj}}}return ar}}if(an&&an.indexOf&&an.indexOf("..")>=0){ag=an.toString().split("..");if(ag.length==2){return ay>=ag[0]&&ay<=ag[1]}}return ax(ay,an)}};var e=function(V,U,W){this.filtervalue=V;this.comparisonoperator=U;this.evaluate=function(Y,X){return W(this.filtervalue,Y,this.comparisonoperator)}}}})(jqxBaseFramework)})();
/***/ }),
/***/ 5877:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxDateTimeInput","",{});a.extend(a.jqx._jqxDateTimeInput.prototype,{defineInstance:function(){var b={value:a.jqx._jqxDateTimeInput.getDateTime(new Date()),minDate:a.jqx._jqxDateTimeInput.getDateTime(new Date()),maxDate:a.jqx._jqxDateTimeInput.getDateTime(new Date()),min:new Date(1900,0,1),max:new Date(2100,0,1),rowHeaderWidth:25,enableViews:true,views:["month","year","decade"],selectableDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],change:null,changing:null,titleFormat:["MMMM yyyy","yyyy","yyyy","yyyy"],template:"default",columnHeaderHeight:20,titleHeight:30,firstDayOfWeek:0,showWeekNumbers:false,showTimeButton:false,cookies:false,cookieoptions:null,showFooter:false,formatString:"dd/MM/yyyy",width:200,height:25,dayNameFormat:"firstTwoLetters",textAlign:"left",readonly:false,culture:"default",activeEditor:null,showCalendarButton:true,showDeleteButton:false,openDelay:250,closeDelay:300,closeCalendarAfterSelection:true,isEditing:false,enableBrowserBoundsDetection:false,dropDownHorizontalAlignment:"left",dropDownVerticalAlignment:"bottom",enableAbsoluteSelection:false,disabled:false,buttonSize:21,animationType:"slide",dropDownWidth:"200px",restrictedDates:new Array(),dropDownHeight:"205px",dropDownContainer:"default",selectionMode:"default",renderMode:"full",rtl:false,timeRange:null,_editor:false,todayString:"Today",clearString:"Clear",popupZIndex:3001,allowNullDate:true,changeType:null,placeHolder:"",enableHover:true,hint:true,allowKeyboardDelete:true,yearCutoff:null,editMode:"default",localization:{backString:"Back",forwardString:"Forward",todayString:"Today",clearString:"Clear",calendar:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss",ISO:"yyyy-MM-dd hh:mm:ss"}}},events:["valueChanged","textchanged","mousedown","mouseup","keydown","keyup","keypress","open","close","change"],aria:{"aria-valuetext":{name:"getText",type:"string"},"aria-disabled":{name:"disabled",type:"boolean"}}};if(this===a.jqx._jqxDateTimeInput.prototype){return b}a.extend(true,this,b);this.value._setHours(0);this.value._setMinutes(0);this.value._setSeconds(0);this.value._setMilliseconds(0);this.minDate._setYear(1900);this.minDate._setMonth(1);this.minDate._setDay(1);this.minDate._setHours(1);this.minDate._setMinutes(1);this.minDate._setSeconds(1);this.minDate._setMilliseconds(1);this.maxDate._setYear(2100);this.maxDate._setMonth(1);this.maxDate._setDay(1);this.maxDate._setHours(1);this.maxDate._setMinutes(1);this.maxDate._setSeconds(1);this.maxDate._setMilliseconds(1);this.defaultMinDate=this.minDate;this.defaultMaxDate=this.maxDate;return b},createInstance:function(d){var m="";var k=this;if(!k.host.jqxCalendar){throw new Error("jqxDateTimeInput: Missing reference to jqxcalendar.js.")}if(k.isMaterialized()){var z=window.getComputedStyle(this.element);var t=z.getPropertyValue("--jqx-dropdown-animation");var q=z.getPropertyValue("--jqx-datetimeinput-dropdown-width")||280;var l=z.getPropertyValue("--jqx-datetimeinput-dropdown-height")||280;if(t&&this.animationType=="default"){this.animationType=t.trim()}if(q){this.dropDownWidth=q}if(l){this.dropDownHeight=l}}if(k.formatString!="dd/MM/yyyy"){var g=k.formatString.split(" ");if(g&&g.length>1){var c="";for(var s=0;s<g.length;s++){if(g[s].length=="1"){c+=k._getFormatValue(g[s])}else{c+=g[s]}if(s<g.length-1){c+=" "}}k.formatString=c}}if(k.element.nodeName.toLowerCase()=="input"){var n=k.element.getAttribute("type");if(n){if(k.formatString=="dd/MM/yyyy"){if(n=="date"){k.formatString="d"}if(n=="datetime"){var h=k._getFormatValue("d")+" "+k._getFormatValue("t");k.formatString=h;k.showTimeButton=true}if(n=="time"){k.formatString="t";k.showTimeButton=true;k.showCalendarButton=false}}}k.field=k.element;if(k.field.getAttribute("min")){var o=new Date(k.field.getAttribute("min"));if(k._isValidDate(o)){k.min=o}}if(k.field.getAttribute("max")){var r=new Date(k.field.getAttribute("max"));if(k._isValidDate(r)){k.max=r}}if(k.field.className){k._className=k.field.className}var j={title:k.field.title};if(k.field.value){j.value=k.field.value}if(k.field.id.length){j.id=k.field.id.replace(/[^\w]/g,"_")+"_jqxDateTimeInput"}else{j.id=a.jqx.utilities.createId()+"_jqxDateTimeInput"}var f=a("<div></div>",j);f[0].style.cssText=k.field.style.cssText;if(!k.width){k.width=a(k.field).width()}if(!k.height){k.height=a(k.field).outerHeight()}a(k.field).hide().after(f);var x=k.host.data();k.host=f;k.host.data(x);k.element=f[0];k.element.id=k.field.id;k.field.id=j.id;if(k._className){k.host.addClass(k._className);a(k.field).removeClass(k._className)}if(k.field.tabIndex){var e=k.field.tabIndex;k.field.tabIndex=-1;k.element.tabIndex=e}}if(k.host.attr("value")){m=true;var y=k.host.attr("value");if(k.selectionMode!="range"){var u=new Date(y);if(u!=undefined&&!isNaN(u)){k.value=a.jqx._jqxDateTimeInput.getDateTime(u)}}}if(k.value!=null&&k.value instanceof Date){k.value=a.jqx._jqxDateTimeInput.getDateTime(k.value)}else{if(k.value!=null&&typeof(k.value)=="string"){var u=new Date(k.value);if(u!=undefined&&!isNaN(u)){k.value=a.jqx._jqxDateTimeInput.getDateTime(u)}else{if(k.value.indexOf(",")>=0){k.value=k.value.replace(/\,/g,"/");var u=new Date(k.value);if(u!=undefined&&!isNaN(u)){k.value=a.jqx._jqxDateTimeInput.getDateTime(u)}}}}}this._initTimeRange();this._validateTimeRange();k.host.attr("data-role","input");k.render();a.jqx.aria(this);if(k.getDate()!=null){a.jqx.aria(this,"aria-label","Current focused date is "+k.getDate().toLocaleString())}else{a.jqx.aria(this,"aria-label","Current focused date is Null")}if(k.minDate!==k.defaultMinDate){k.min=k.minDate}if(k.maxDate!==k.defaultMaxDate){k.max=k.maxDate}k.setMaxDate(k.max,false);k.setMinDate(k.min,false);if(k.selectionMode!=="range"&&k.value&&k.value.dateTime&&k.min&&k.max&&(k.value.dateTime<k.min||k.value.dateTime>k.max)){if(k.value.dateTime<k.min){k.value.dateTime=k.min}if(k.value.dateTime>k.max){k.value.dateTime=k.max}k._updateText()}if(k.selectionMode=="range"){if(m){var y=k.host.attr("value");var w=y.substring(0,y.indexOf("-"));var v=y.substring(y.indexOf("-")+1);var p=new Date(w);var b=new Date(v);if(p!=undefined&&!isNaN(p)){if(b!=undefined&&!isNaN(b)){k.setRange(p,b)}}}else{if(k.getDate()!=null){k.setRange(k.getDate(),k.getDate())}}}k._getMask();if(k.editMode==="full"&&k.value===null&&k._mask[0]!==undefined){k.dateTimeInput[0].value=k._mask[0]}},_validateTimeRange:function(){if(this.timeRange){var b=this.value.dateTime.getHours();var c=this.value.dateTime.getMinutes();if(b<=this.timeRange.minHour){this.value._setHours(this.timeRange.minHour);if(c<this.timeRange.minMinute){this.value._setMinutes(this.timeRange.minMinute);this._updateEditorsValue()}else{this._updateEditorsValue()}}if(b>=this.timeRange.maxHour){this.value._setHours(this.timeRange.maxHour);if(c>this.timeRange.maxMinute){this.value._setMinutes(this.timeRange.maxMinute);this._updateEditorsValue()}else{this._updateEditorsValue()}}}},_initTimeRange:function(){if(this.timeRange){if(this.timeRange.min){var c=null;if(this.timeRange.min.indexOf("AM")>=0||this.timeRange.min.indexOf("PM")>=0){c=this.timeRange.min.indexOf("AM")>=0?"AM":"PM"}var d=this.timeRange.min.split(":");var b=parseInt(d[0]);var f=parseInt(d[1]);if(c){this.timeRange.minDefaultHour=b;this.timeRange.minMeridian=c}if(c&&c=="PM"){b+=12}this.timeRange.minHour=b;this.timeRange.minMinute=f}if(this.timeRange.max){var c=null;if(this.timeRange.max.indexOf("AM")>=0||this.timeRange.max.indexOf("PM")>=0){c=this.timeRange.max.indexOf("AM")>=0?"AM":"PM"}var e=this.timeRange.max.split(":");var b=parseInt(e[0]);var f=parseInt(e[1]);if(c){this.timeRange.maxDefaultHour=b;this.timeRange.maxMeridian=c}if(c&&c=="PM"){b+=12}this.timeRange.maxHour=b;this.timeRange.maxMinute=f}}},_format:function(d,e,b){var f=false;try{if(window.Globalize!=undefined){f=true}if(document.Globalize){window.Globalize=document.Globalize;f=true}}catch(c){if(document.Globalize){window.Globalize=document.Globalize;f=true}}if(document.Globalize){window.Globalize=document.Globalize;f=true}if(a.global){return a.global.format(d,e,this.culture)}else{if(f){try{var e=window.Globalize.format(d,e,this.culture);return e}catch(c){return window.Globalize.format(d,e)}}else{if(a.jqx.dataFormat){if(d instanceof Date){return a.jqx.dataFormat.formatdate(d,e,this.localization.calendar)}else{if(typeof d==="number"){return a.jqx.dataFormat.formatnumber(d,e,this.localization.calendar)}else{return a.jqx.dataFormat.formatdate(d,e,this.localization.calendar)}}}else{throw new Error("jqxDateTimeInput: Missing reference to globalize.js.")}}}},render:function(){var k=this;k._removeHandlers();k.element.innerHTML="";k.host.attr({role:"spinbutton"});k.id=a.jqx.utilities.createId();var f=a.jqx.utilities.createId();var j=a.jqx.utilities.createId();k._setSize();if(k.width==null){k.width=k.host.width();k.host.width(k.width)}k.touch=a.jqx.mobile.isTouchDevice();var c=a("<div>",{"class":"jqx-max-size jqx-position-relative"}).appendTo(k.host);k.dateTimeInput=k.dateTimeInput||a("<input>",{id:"input"+k.element.id,type:"text",autocomplete:"off",role:"textbox","aria-label":"dateinput","class":"jqx-position-absolute"}).appendTo(c);k.dateTimeInput.css({border:"none",paddingLeft:"3px",paddingRight:"3px"});k.dateTimeInput.addClass(k.toThemeProperty("jqx-reset"));k.dateTimeInput.addClass(k.toThemeProperty("jqx-clear"));k.dateTimeInput.addClass(k.toThemeProperty("jqx-input-content"));k.dateTimeInput.addClass(k.toThemeProperty("jqx-widget-content"));k.dateTimeInput.addClass(k.toThemeProperty("jqx-rc-all"));if(k.touch){k.dateTimeInput.attr("readonly",true);k.readonly=true}if(!k.isMaterialized()){k.dateTimeInput.attr("placeHolder",k.placeHolder)}if(k.renderMode!="full"){k.dateTimeInput.remove()}var d=k.host.attr("name");if(d){k.dateTimeInput.attr("name",d)}if(k.host.attr("tabindex")){k.dateTimeInput.attr("tabindex",k.host.attr("tabindex"));k.host.removeAttr("tabindex")}if(k.rtl){k.dateTimeInput.css("direction","rtl");k.dateTimeInput.addClass("jqx-rtl")}k.calendarButton=a("<div>",{"class":"jqx-position-absolute"}).css({height:"100%"}).appendTo(c);a("<div></div>").appendTo(k.calendarButton);if(!k.rtl){k.calendarButton.addClass(k.toThemeProperty("jqx-action-button"))}else{k.calendarButton.addClass(k.toThemeProperty("jqx-action-button-rtl"))}k.calendarButtonIcon=a(k.calendarButton.children()[0]);k.calendarButtonIcon.addClass(k.toThemeProperty("jqx-icon"));k.calendarButtonIcon.addClass(k.toThemeProperty("jqx-icon-calendar"));k.calendarButton.addClass(k.toThemeProperty("jqx-fill-state-normal"));if(!k.rtl){if(!k.showTimeButton){k.calendarButton.addClass(k.toThemeProperty("jqx-rc-r"))}}else{k.calendarButton.addClass(k.toThemeProperty("jqx-rc-l"))}k.timeButton=a("<div>",{"class":"jqx-position-absolute"}).css({height:"100%"}).appendTo(c);a("<div></div>").appendTo(k.timeButton);if(!k.rtl){k.timeButton.addClass(k.toThemeProperty("jqx-action-button"))}else{k.timeButton.addClass(k.toThemeProperty("jqx-action-button-rtl"))}k.timeButtonIcon=a(k.timeButton.children()[0]);k.timeButtonIcon.addClass(k.toThemeProperty("jqx-icon"));k.timeButtonIcon.addClass(k.toThemeProperty("jqx-icon-time"));k.timeButton.addClass(k.toThemeProperty("jqx-fill-state-normal"));if(!k.rtl){k.timeButton.addClass(k.toThemeProperty("jqx-rc-r"))}else{k.timeButton.addClass(k.toThemeProperty("jqx-rc-l"))}k.deleteButton=a("<div>",{"class":"jqx-datetimeinput-delete-button jqx-position-absolute"}).css({marginLeft:"2px",right:"0px",height:"100%"}).appendTo(c);a("<div></div>").appendTo(k.deleteButton);if(!k.rtl){k.deleteButton.addClass(k.toThemeProperty("jqx-action-button"))}else{k.deleteButton.addClass(k.toThemeProperty("jqx-action-button-rtl"))}k.deleteButton[0].onclick=function(){k.setDate(null)};k.deleteButtonIcon=a(k.deleteButton.children()[0]);k.deleteButtonIcon.addClass(k.toThemeProperty("jqx-icon"));k.deleteButtonIcon.addClass(k.toThemeProperty("jqx-icon-close"));k.deleteButton.addClass(k.toThemeProperty("jqx-fill-state-normal"));if(!k.rtl){k.deleteButton.addClass(k.toThemeProperty("jqx-rc-r"))}else{k.deleteButton.addClass(k.toThemeProperty("jqx-rc-l"))}var m=this;k._arrange();if(a.jqx._jqxCalendar!=null&&a.jqx._jqxCalendar!=undefined){try{var i="calendar"+k.id;var h=a(a.find("#"+i));if(h.length>0){h.remove()}a.jqx.aria(this,"aria-roledescription","Date Picker");a.jqx.aria(this,"aria-owns",i);a.jqx.aria(this,"aria-haspopup",true);a.jqx.aria(this,"aria-readonly",k.selectionMode=="range"?true:false);var b=a("<div>",{id:"calendar"+k.id,"class":"jqx-calendar-container"}).css({overflow:"hidden",background:"transparent",position:"absolute"});a("<div>",{id:"innerCalendar"+k.id}).appendTo(b);a("<div>",{id:"innerTime"+k.id}).appendTo(b);if(a.jqx.utilities.getBrowser().browser=="opera"){b.hide()}b.addClass(k.toThemeProperty("jqx-calendar-container"));if(k.dropDownContainer=="element"){b.appendTo(k.host)}else{b.appendTo(document.body)}k.container=b;k.calendarContainer=a(a.find("#innerCalendar"+k.id)).jqxCalendar({titleFormat:this.titleFormat,restrictedDates:this.restrictedDates,changing:k.changing,change:k.change,enableViews:k.enableViews,selectableDays:k.selectableDays,views:k.views,rowHeaderWidth:k.rowHeaderWidth,titleHeight:k.titleHeight,columnHeaderHeight:k.columnHeaderHeight,_checkForHiddenParent:false,enableAutoNavigation:false,canRender:false,localization:k.localization,todayString:k.todayString,clearString:k.clearString,dayNameFormat:k.dayNameFormat,rtl:k.rtl,culture:k.culture,showFooter:k.showFooter,selectionMode:k.selectionMode,firstDayOfWeek:k.firstDayOfWeek,showWeekNumbers:k.showWeekNumbers,width:k.dropDownWidth,height:k.dropDownHeight,theme:k.theme});if(k.dropDownContainer=="element"){k.calendarContainer.css({position:"absolute",top:0,left:0})}else{k.calendarContainer.css({position:"absolute",zIndex:k.popupZIndex,top:0,left:0})}k.calendarContainer.addClass(k.toThemeProperty("jqx-popup"));if(a.jqx.browser.msie){k.calendarContainer.addClass(k.toThemeProperty("jqx-noshadow"))}k.timeContainer=a(a.find("#innerTime"+k.id));k.timeContainer.css({position:"absolute",zIndex:k.popupZIndex,top:0,left:0});k.timeContainer.addClass(k.toThemeProperty("jqx-popup"));if(a.jqx.browser.msie){k.timeContainer.addClass(k.toThemeProperty("jqx-noshadow"))}k._calendar=a.data(k.calendarContainer[0],"jqxCalendar").instance;k._calendar.today=function(){m.today()};k._calendar.clear=function(){m.clear()};if(a.jqx.utilities.getBrowser().browser=="opera"){b.show()}b.height(parseInt(k.calendarContainer.height())+25);b.width(parseInt(k.calendarContainer.width())+25);if(k.selectionMode=="range"){k.readonly=true}if(k.animationType=="none"){k.container.css("display","none")}else{k.container.hide()}}catch(l){}}if(a.global){a.global.preferCulture(k.culture)}k.selectedText="";k._addHandlers();k.self=this;k.oldValue=k.getDate();k.items=new Array();k.editors=new Array();k._loadItems();k.editorText="";if(k.readonly==true){k.dateTimeInput.css("readonly",k.readonly)}k.dateTimeInput.css("text-align",k.textAlign);k.host.addClass(k.toThemeProperty("jqx-widget"));k.host.addClass(k.toThemeProperty("jqx-datetimeinput"));k.host.addClass(k.toThemeProperty("jqx-input"));k.host.addClass(k.toThemeProperty("jqx-overflow-hidden"));k.host.addClass(k.toThemeProperty("jqx-rc-all"));k.host.addClass(k.toThemeProperty("jqx-reset"));k.host.addClass(k.toThemeProperty("jqx-clear"));k.host.addClass(k.toThemeProperty("jqx-widget-content"));k.propertyChangeMap.disabled=function(e,p,o,q){if(q){e.host.addClass(m.toThemeProperty("jqx-input-disabled"));e.host.addClass(m.toThemeProperty("jqx-fill-state-disabled"))}else{e.host.removeClass(m.toThemeProperty("jqx-fill-state-disabled"));e.host.removeClass(m.toThemeProperty("jqx-input-disabled"))}a.jqx.aria(e,"aria-disabled",q)};if(k.disabled){k.host.addClass(k.toThemeProperty("jqx-input-disabled"));k.host.addClass(k.toThemeProperty("jqx-fill-state-disabled"));k.dateTimeInput.attr("disabled",true)}if(k.host.parents("form").length>0){k.addHandler(k.host.parents("form"),"reset",function(){setTimeout(function(){m.setDate(new Date())},10)})}if(k.cookies){var g=a.jqx.cookie.cookie("jqxDateTimeInput"+k.element.id);if(g!=null){k.setDate(new Date(g))}}if(a.jqx.browser.msie&&a.jqx.browser.version<8){if(k.host.parents(".jqx-window").length>0){var n=k.host.parents(".jqx-window").css("z-index");k.container.css("z-index",n+10);k.calendarContainer.css("z-index",n+10)}}if(k.culture!="default"){k._applyCulture()}if(k.value){if(k.calendarContainer.jqxCalendar("_isDisabled",k.value.dateTime)){k.dateTimeInput.addClass(k.toThemeProperty("jqx-input-invalid"))}else{k.dateTimeInput.removeClass(k.toThemeProperty("jqx-input-invalid"))}}this._addBarAndLabel(this.dateTimeInput);this._updateHint(true);if(k.template){k.bar.addClass(k.toThemeProperty("jqx-"+k.template));k.label.addClass(k.toThemeProperty("jqx-"+k.template));k.timeButton.addClass(k.toThemeProperty("jqx-"+k.template));k.calendarButton.addClass(k.toThemeProperty("jqx-"+k.template))}this._setSize();this._arrange()},val:function(c){var b=this;if(arguments.length!=0){if(c==null){b.setDate(null)}if(b.selectionMode=="range"){b.setRange(arguments[0],arguments[1]);return b.getText()}if(c instanceof Date){b.setDate(c)}if(typeof(c)=="string"){if(c=="date"){return b.getDate()}b.setDate(c)}if(b._calendar.getDate()!=b.getDate()){b._calendar.setDate(b.getDate())}}return b.getText()},_setSize:function(){var b=window.getComputedStyle(this.element);var c=parseInt(b.borderLeftWidth)*2;var h=b.boxSizing;if(this.element.offsetWidth===0){c=2}if(h==="border-box"||isNaN(c)){c=0}if(this.width!=null&&this.width.toString().indexOf("px")!=-1){this.element.style.width=parseInt(this.width)-c+"px"}else{if(this.width!=undefined&&!isNaN(this.width)){this.element.style.width=parseInt(this.width)-c+"px"}}if(this.height!=null&&this.height.toString().indexOf("px")!=-1){this.element.style.height=parseInt(this.height)-c+"px"}else{if(this.height!=undefined&&!isNaN(this.height)){this.element.style.height=parseInt(this.height)-c+"px"}}var g=false;if(this.width!=null&&this.width.toString().indexOf("%")!=-1){g=true;this.host.width(this.width);if(c>0){this.host.css("box-sizing","border-box")}}if(this.height!=null&&this.height.toString().indexOf("%")!=-1){g=true;this.host.height(this.height)}var e=this;var f=function(){if(e.calendarContainer){e._arrange()}};if(g){if(this.calendarContainer){this._arrange();var d=this.host.width();if(this.dropDownWidth!="auto"){d=this.dropDownWidth}this.calendarContainer.jqxCalendar({width:d});this.container.width(parseInt(d)+25)}}a.jqx.utilities.resize(this.host,function(){f()})},_arrange:function(){if(this.height==null){this.height=27;this.host.height(27)}var e=parseInt(this.host.width());var m=parseInt(this.host.height());var i=window.getComputedStyle(this.element);var g=parseInt(i.borderLeftWidth)*2;var f=i.boxSizing;if(f==="border-box"||isNaN(g)){g=0}var k=this.buttonSize;var h=2;if(!this.showCalendarButton&&!this.showTimeButton){k=0;var l=0;this.calendarButton.hide();h=0}if(!this.showCalendarButton){this.calendarButton.hide()}else{this.calendarButton.show()}if(!this.showTimeButton){this.timeButton.hide()}else{this.timeButton.show()}if(!this.showDeleteButton){this.deleteButton.hide()}else{this.deleteButton.show()}var b=e-k-1*h;if(this.showTimeButton&&this.showCalendarButton){var b=e-2*k-1*h}else{if(this.showTimeButton||this.showCalendarButton){var b=e-k-1*h}}if(this.showDeleteButton){b-=k-h}if(b>0){this.dateTimeInput[0].style.width=b+"px"}if(this.rtl){this.dateTimeInput[0].style.width=(-1+b+"px")}this.dateTimeInput[0].style.left="0px";this.dateTimeInput[0].style.top="0px";this.calendarButton[0].style.width=k+1+"px";this.calendarButton[0].style.left=1+b+"px";this.timeButton[0].style.width=k+1+"px";if(this.showCalendarButton){this.timeButton[0].style.left=1+this.calendarButton.width()+b+"px"}else{this.timeButton[0].style.left=1+b+"px"}if(this.renderMode!="full"){this.calendarButton[0].style.width="100%";this.calendarButton[0].style.left="0px";this.calendarButton.css("border","none");this.timeButton[0].style.width="100%";this.timeButton[0].style.left="0px";this.timeButton.css("border","none")}var d=this.dateTimeInput.height();if(d==0&&this.renderMode!="full"){d=parseInt(this.dateTimeInput.css("font-size"))+3;this.calendarButton.addClass(this.toThemeProperty("jqx-rc-all"));this.timeButton.addClass(this.toThemeProperty("jqx-rc-all"))}else{d=17}if(this.dateTimeInput[0].className.indexOf("jqx-rc-all")==-1){this.dateTimeInput.addClass(this.toThemeProperty("jqx-rc-all"))}var j=parseInt(m)/2-parseInt(d)/2;if(j>0){var n=this.dateTimeInput.css("font-size");if(""==n){n=13}var j=m-2-parseInt(n)-2;if(isNaN(j)){j=0}if(j<0){j=0}var c=j/2;if(a.jqx.browser.msie&&a.jqx.browser.version<8){c=j/4}this.dateTimeInput[0].style.paddingTop=Math.round(c)+"px";this.dateTimeInput[0].style.paddingBottom=Math.round(c)+"px"}if(this.rtl){this.calendarButton[0].style.width=k+"px";this.timeButton[0].style.width=k+"px";this.calendarButton.css("left","0px");if(this.showCalendarButton){this.timeButton.css("left",k+"px")}else{this.timeButton.css("left","0px")}this.dateTimeInput.css("left",this.calendarButton.width());if(this.showTimeButton&&this.showCalendarButton){this.dateTimeInput.css("left",this.timeButton.width()+this.calendarButton.width())}if(a.jqx.browser.msie&&a.jqx.browser.version<=8){this.dateTimeInput.css("left",1+this.calendarButton.width());if(this.showTimeButton&&this.showCalendarButton){this.dateTimeInput.css("left",1+this.timeButton.width()+this.calendarButton.width())}}}},_removeHandlers:function(){var b=this;this.removeHandler(a(document),"mousedown."+this.id);if(this.dateTimeInput){this.removeHandler(this.dateTimeInput,"keydown."+this.id);this.removeHandler(this.dateTimeInput,"blur");this.removeHandler(this.dateTimeInput,"focus");this.removeHandler(this.host,"focus");this.removeHandler(this.dateTimeInput,"mousedown");this.removeHandler(this.dateTimeInput,"mouseup");this.removeHandler(this.dateTimeInput,"keydown");this.removeHandler(this.dateTimeInput,"keyup");this.removeHandler(this.dateTimeInput,"keypress")}if(this.calendarButton!=null){this.removeHandler(this.calendarButton,"mousedown")}if(this.timeButton!=null){this.removeHandler(this.timeButton,"mousedown")}if(this.calendarContainer!=null){this.removeHandler(this.calendarContainer,"cellSelected");this.removeHandler(this.calendarContainer,"cellMouseDown")}this.removeHandler(a(window),"resize."+this.id)},isOpened:function(){var c=this;var b=a.data(document.body,"openedJQXCalendar"+this.id);if(b!=null&&b==c.calendarContainer){return true}return false},wheel:function(d,c){if(!c.isEditing){return}c.changeType="mouse";var e=0;if(!d){d=window.event}if(d.originalEvent&&d.originalEvent.wheelDelta){d.wheelDelta=d.originalEvent.wheelDelta}if(d.wheelDelta){e=d.wheelDelta/120}else{if(d.detail){e=-d.detail/3}}if(e){var b=c._handleDelta(e);if(!b){if(d.preventDefault){d.preventDefault()}d.returnValue=false;return b}else{return false}}if(d.preventDefault){d.preventDefault()}d.returnValue=false},_handleDelta:function(b){if(b<0){this.spinDown()}else{this.spinUp()}return false},focus:function(){try{var c=this;c._firstFocusDate=c.getDate();this._setSelectionStart(0);this._selectGroup(-1);this.dateTimeInput.focus();setTimeout(function(){c._setSelectionStart(0);c._selectGroup(-1);c.dateTimeInput.focus()},25)}catch(b){}},_addHandlers:function(){var e=this.element.id;var c=this.element;var d=this;if(this.host.parents()){this.addHandler(this.host.parents(),"scroll.datetimeinput"+this.element.id,function(f){var g=d.isOpened();if(g){d.close()}})}this.addHandler(this.host,"mouseenter",function(){if(!d.disabled&&d.enableHover){var f=true;d.calendarButtonIcon.addClass(d.toThemeProperty("jqx-icon-calendar-hover"));d.calendarButton.addClass(d.toThemeProperty("jqx-fill-state-hover"));if(d.showTimeButton){d.timeButtonIcon.addClass(d.toThemeProperty("jqx-icon-time-hover"));d.timeButton.addClass(d.toThemeProperty("jqx-fill-state-hover"))}}});this.addHandler(this.host,"mouseleave",function(){if(!d.disabled&&d.enableHover){d.calendarButtonIcon.removeClass(d.toThemeProperty("jqx-icon-calendar-hover"));d.calendarButton.removeClass(d.toThemeProperty("jqx-fill-state-hover"));if(d.showTimeButton){d.timeButtonIcon.removeClass(d.toThemeProperty("jqx-icon-time-hover"));d.timeButton.removeClass(d.toThemeProperty("jqx-fill-state-hover"))}}});this.addHandler(this.host,"mousewheel",function(f){d.wheel(f,d)});this.addHandler(a(document),"mousedown."+this.id,this._closeOpenedCalendar,{me:this});if(a.jqx.mobile.isTouchDevice()){this.addHandler(a(document),a.jqx.mobile.getTouchEventName("touchstart")+"."+this.id,this._closeOpenedCalendar,{me:this})}this.addHandler(this.dateTimeInput,"keydown."+this.id,function(h){var g=a.data(document.body,"openedJQXCalendar"+d.id);if(g!=null&&g==d.calendarContainer){var f=d.handleCalendarKey(h,d);return f}});if(this.calendarContainer!=null){this.addHandler(this.calendarContainer,"keydown",function(f){if(f.keyCode==13){if(d.isOpened()){if(!d._calendar._viewAnimating&&d._calendar.view=="month"){d.hideCalendar("selected","keyboard");d.dateTimeInput.focus();return false}}return true}else{if(f.keyCode==9){if(d.isOpened()){d.hideCalendar("selected","keyboard");return true}}else{if(f.keyCode==27){if(d.isOpened()){d.hideCalendar(null,"keyboard");d.dateTimeInput.focus();return false}return true}}}d.timePopup=false;if(f.keyCode==84){d.timePopup=true}if(f.keyCode==115){if(d.isOpened()){d.hideCalendar("keyboard","keyboard");d.dateTimeInput.focus();return false}else{if(!d.isOpened()){d.showCalendar("keyboard","keyboard");d.dateTimeInput.focus();return false}}}if(f.altKey){if(f.keyCode==38){if(d.isOpened()){d.hideCalendar("keyboard","keyboard");d.dateTimeInput.focus();return false}}else{if(f.keyCode==40){if(!d.isOpened()){d.showCalendar("keyboard","keyboard");d.dateTimeInput.focus();return false}}}}});this.addHandler(this.calendarContainer,"cellSelected",function(g){if(d.closeCalendarAfterSelection){var f=a.data(document.body,"openedJQXCalendarValue");if(g.args.selectionType=="mouse"){if(d.selectionMode!="range"){d.hideCalendar("selected","mouse")}else{if(d._calendar._clicks==0){d.hideCalendar("selected","mouse")}}}}});this.addHandler(this.calendarContainer,"cellMouseDown",function(f){if(d.closeCalendarAfterSelection){if(d._calendar.value){a.data(document.body,"openedJQXCalendarValue",new a.jqx._jqxDateTimeInput.getDateTime(d._calendar.value.dateTime))}}})}this.addHandler(this.dateTimeInput,"blur",function(h){d.bar.removeClass("focused");d.label.removeClass("focused");d._endFullEdit();if(d.value!=null){d.isEditing=false;var g=d.value.dateTime.getDay();var f=d._oldDT;d._validateValue(true);if(h.stopPropagation){h.stopPropagation()}d._updateText();d._raiseEvent(9,h)}if(!d.isOpened()){d.host.removeClass(d.toThemeProperty("jqx-fill-state-focus"))}});this.addHandler(this.host,"focus",function(f){d.focus()});this.addHandler(this.dateTimeInput,"focus",function(f){d._firstFocusDate=d.getDate();if(d.value!=null){if(d.selectionMode!="range"){d._oldDT=new Date(d.value.dateTime)}else{d._oldDT=d.getRange()}setTimeout(function(){var g=d._selection();d.isEditing=true;d._validateValue();d._updateText();d._setSelectionStart(0);d._selectGroup(-1,g);d.host.addClass(d.toThemeProperty("jqx-fill-state-focus"))})}else{d._setSelectionStart(0);d._selectGroup(-1);d.host.addClass(d.toThemeProperty("jqx-fill-state-focus"))}if(f.stopPropagation){f.stopPropagation()}d.bar.addClass("focused");d.label.addClass("focused");if(f.preventDefault){f.preventDefault();return false}});var b="mousedown";if(this.touch){b=a.jqx.mobile.getTouchEventName("touchstart")}this.addHandler(this.calendarButton,b,function(g){var h=d.container;var f=h.css("display")=="block";d.timePopup=false;d.calendarPopup=true;if(!d.disabled){if(!d.isanimating){if(f){d.hideCalendar();return false}else{d.showCalendar("mouse");g.preventDefault()}}}});this.addHandler(this.timeButton,b,function(g){var h=d.container;var f=h.css("display")=="block";d.timePopup=true;d.calendarPopup=false;if(!d.disabled){if(!d.isanimating){if(f){d.hideCalendar("mouse","mouse");return false}else{d.showCalendar("mouse");g.preventDefault()}}}});this.addHandler(this.dateTimeInput,"mousedown",function(f){if(d.touch){if(d.showTimeButton===true&&d.showCalendarButton===false){d.open("time")}else{d.open()}}return d._raiseEvent(2,f)});this.addHandler(this.dateTimeInput,"mouseup",function(f){return d._raiseEvent(3,f)});this.addHandler(this.dateTimeInput,"keydown",function(f){return d._raiseEvent(4,f)});this.addHandler(this.dateTimeInput,"keyup",function(f){var g=this.value;if(d._fullEditInProgress&&d._enteredValue&&d._mask[g.length]!==undefined){this.value=this.value+d._mask[g.length]}return d._raiseEvent(5,f)});this.addHandler(this.dateTimeInput,"keypress",function(f){return d._raiseEvent(6,f)})},createID:function(){var b=Math.random()+"";b=b.replace(".","");b="99"+b;b=b/1;return"dateTimeInput"+b},setMaxDate:function(b,c){if(b==null){return}if(b!=null&&typeof(b)=="string"){b=new Date(b);if(!this._isValidDate(b)){return}}this.maxDate=a.jqx._jqxDateTimeInput.getDateTime(b);if(this._calendar!=null){this._calendar.setMaxDate(b)}if(c!=false){if(this.getDate()!=null&&this.getDate()>b){this.setDate(b)}this._refreshValue();this._updateText()}},getMaxDate:function(){if(this.maxDate!=null&&this.maxDate!=undefined){return this.maxDate.dateTime}return null},setMinDate:function(b,c){if(b==null){return}if(b!=null&&typeof(b)=="string"){b=new Date(b);if(!this._isValidDate(b)){return}}this.minDate=a.jqx._jqxDateTimeInput.getDateTime(b);if(this._calendar!=null){this._calendar.setMinDate(b)}if(c!=false){if(this.getDate()!=null&&this.getDate()<b){this.setDate(b)}this._refreshValue();this._updateText()}},getMinDate:function(){if(this.minDate!=null&&this.minDate!=undefined){return this.minDate.dateTime}return null},_applyCulture:function(){var d=false;try{if(window.Globalize!=undefined){d=true}}catch(c){}try{if(a.global){a.global.preferCulture(this.culture);this.localization.calendar=a.global.culture.calendar}else{if(d){var b=Globalize.culture(this.culture);this.localization.calendar=b.calendar}}this._loadItems();if(this._calendar!=null){this._calendar.culture=this.culture;this._calendar.localization=this.localization;this._calendar.render()}}catch(c){}},propertyMap:function(b){if(b=="value"){if(this.selectionMode!="range"){return this.getDate()}else{return this.getRange()}}return null},propertiesChangedHandler:function(d,b,c){if(c&&c.width&&c.height&&Object.keys(c).length==2){d.refresh();d.close()}},propertyChangedHandler:function(c,d,f,e){if(c.isInitialized==undefined||c.isInitialized==false){return}if(c.batchUpdate&&c.batchUpdate.width&&c.batchUpdate.height&&Object.keys(c.batchUpdate).length==2){return}if(d=="dropDownVerticalAlignment"){c.close()}if(d=="template"){c.bar.removeClass(c.toThemeProperty("jqx-"+f));c.label.removeClass(c.toThemeProperty("jqx-"+f));c.timeButton.removeClass(c.toThemeProperty("jqx-"+f));c.calendarButton.removeClass(c.toThemeProperty("jqx-"+f));c.bar.addClass(c.toThemeProperty("jqx-"+c.template));c.label.addClass(c.toThemeProperty("jqx-"+c.template));c.timeButton.addClass(c.toThemeProperty("jqx-"+c.template));c.calendarButton.addClass(c.toThemeProperty("jqx-"+c.template))}if(d=="restrictedDates"){c.calendarContainer.css({restrictedDates:e})}if(d=="popupZIndex"){c.calendarContainer.css({zIndex:e})}if(d=="showCalendarButton"||d==="showDeleteButton"){c._arrange()}if(d=="showTimeButton"){c._arrange();if(c.timePopupElement){c.timePopupElement.remove();c.timePopupElement=null}}if(d=="selectionMode"){c._calendar.selectionMode=e;c.refreshValue()}if(d=="min"){if(typeof(e)=="string"){c.setMinDate(new Date(e))}else{c.setMinDate(e)}}if(d=="max"){if(typeof(e)=="string"){c.setMaxDate(new Date(e))}else{c.setMaxDate(e)}}if(d=="value"){if(e!=null&&e instanceof Date){if(isNaN(e.getFullYear())||isNaN(e.getMonth())||isNaN(e.getDate())){this.value=f;return}e=a.jqx._jqxDateTimeInput.getDateTime(e)}else{if(e!=null&&typeof(e)=="string"){var b=new Date(e);if(b!=undefined&&!isNaN(b)){this.value=a.jqx._jqxDateTimeInput.getDateTime(b)}}}}if(d=="views"){c.calendarContainer.jqxCalendar({views:e})}if(d=="enableViews"){c.calendarContainer.jqxCalendar({enableViews:e})}if(d=="selectableDays"){c.calendarContainer.jqxCalendar({selectableDays:e})}if(d=="showFooter"){c.calendarContainer.jqxCalendar({showFooter:e})}if(d=="rtl"){c.calendarContainer.jqxCalendar({rtl:e});if(e){c.dateTimeInput.css("direction","rtl");c.dateTimeInput.addClass("jqx-rtl")}else{c.dateTimeInput.css("direction","ltr");c.dateTimeInput.removeClass("jqx-rtl")}}if(d=="todayString"||d=="clearString"){c.calendarContainer.jqxCalendar({clearString:c.clearString,todayString:c.todayString})}if(d=="dayNameFormat"){c.calendarContainer.jqxCalendar({dayNameFormat:e})}if(d=="firstDayOfWeek"){c.calendarContainer.jqxCalendar({firstDayOfWeek:e})}if(d=="showWeekNumbers"){c.calendarContainer.jqxCalendar({showWeekNumbers:e})}if(d=="culture"||d=="localization"){c._applyCulture()}else{if(d=="formatString"||d==="yearCutoff"&&(e===null||f===null)){if(d==="formatString"){c._getMask()}c.items=new Array();c._loadItems()}}if(d=="theme"){a.jqx.utilities.setTheme(f,e,c.host);c.calendarContainer.jqxCalendar({theme:e})}if(d=="width"||d=="height"){c.close();c.refresh();return}c._setOption(d,e,f);if(d=="dropDownWidth"||d=="dropDownHeight"){c.calendarContainer.jqxCalendar({width:c.dropDownWidth,height:c.dropDownHeight});c._calendar.render();c.container.height(c.calendarContainer.height());c.container.width(c.calendarContainer.width())}},clear:function(){if(this.allowNullDate){if(this.selectionMode!="range"){this.setDate(null)}else{this._calendar._clicks=1;this.setRange(null,null)}this._calendar._clicks=0}else{if(this.selectionMode!="range"){this.setDate(this.getMinDate())}else{this._calendar._clicks=1;this.setRange(this.getMinDate(),this.getMinDate());this._calendar._clicks=0}}this.hideCalendar()},today:function(){var c=new Date();c.setHours(0,0,0,0);if(this.selectionMode!="range"){this.setDate(c)}else{this._calendar._clicks=0;var b=new Date();b.setHours(23,59,59,0);this.setRange(c,b);this._calendar._clicks=0}this.hideCalendar()},_isValidDate:function(b){if(b==null){return true}if(typeof(b)!=="object"){return false}if(b!==null&&b.getFullYear){return true}if(b=="Invalid Date"||b.valueOf()<0||isNaN(b.valueOf())){return false}return true},setDate:function(d){var e=this.getDate();if(d!=null&&typeof(d)=="string"){var f=d;if(d.toString().indexOf(",")>=0){d=d.replace(/\,/g,"/");d=new Date(d);if(!this._isValidDate(d)){d=f}}if(d.toString().indexOf("-")>=0){d=d.replace(/\-/g,"/");d=new Date(d);if(!this._isValidDate(d)){d=f}if(d.getFullYear&&isNaN(d.getFullYear())){d=f}}if(d!=""){var c=d;if(window.Globalize!=undefined){d=window.Globalize.parseDate(c,this.formatString,this.culture)}else{if(a.jqx.dataFormat){d=a.jqx.dataFormat.parsedate(c,this.formatString,this.localization.calendar)}else{d=new Date(d)}}if(d===null&&c!==null){if(this._isValidDate(c)){d=c}}if(!this._isValidDate(d)){return}}}if(d==null||d=="null"||d=="undefined"){if(!this.allowNullDate){d=this.min}}if(!this._isValidDate(d)){d=null}if(d==null||d=="null"||d=="undefined"||d===""){if(this.value!=null){this.value=null;this._calendar.setDate(null);this._refreshValue();if(this.cookies){if(this.value!=null){a.jqx.cookie.cookie("jqxDateTimeInput"+this.element.id,this.value.dateTime.toString(),this.cookieoptions)}}this._setSelectionStart(0);this._selectGroup(-1);this._raiseEvent("0",d,e);this._raiseEvent("9",d,e)}return}if(d<this.getMinDate()||d>this.getMaxDate()){return}if(this.value==null){this.value=new a.jqx._jqxDateTimeInput.getDateTime(new Date());this.value._setHours(0);this.value._setMinutes(0);this.value._setSeconds(0);this.value._setMilliseconds(0)}if(d.getFullYear){this.value._setYear(d.getFullYear());this.value._setDay(1);this.value._setMonth(d.getMonth()+1);this.value._setHours(d.getHours());this.value._setMinutes(d.getMinutes());this.value._setSeconds(d.getSeconds());this.value._setMilliseconds(d.getMilliseconds());this.value._setDay(d.getDate())}this._validateTimeRange();this._refreshValue();if(this.cookies){if(this.value!=null){a.jqx.cookie.cookie("jqxDateTimeInput"+this.element.id,this.value.dateTime.toString(),this.cookieoptions)}}var b=this.getDate();var g=(b-e);if(g!=0){this._raiseEvent("0",d,e);this._raiseEvent("9",d,e);return true}},getDate:function(){if(this.value==undefined){return null}return new Date(this.value.dateTime)},getText:function(){return this.dateTimeInput.val()},setRange:function(d,c){if(typeof(d)=="object"&&!this._isValidDate(d)){d=null}if(typeof(c)=="object"&&!this._isValidDate(c)){c=null}if(d!=null&&typeof(d)=="string"){d=new Date(d);if(!this._isValidDate(d)){return}}if(c!=null&&typeof(c)=="string"){c=new Date(c);if(!this._isValidDate(c)){return}}if(d&&isNaN(d)&&d.toString()=="NaN"&&typeof(d)!="string"){return}if(c&&isNaN(c)&&c.toString()=="NaN"&&typeof(c)!="string"){return}this._calendar.setRange(d,c);if(c&&d&&(c.valueOf()!=d.valueOf())){this._range={from:d,to:c}}else{this._range=this._calendar.getRange()}var b=d;if(b!=null&&b.getFullYear){if(this.value==null){this.value=new a.jqx._jqxDateTimeInput.getDateTime(new Date());this.value._setHours(0);this.value._setMinutes(0);this.value._setSeconds(0);this.value._setMilliseconds(0)}this.value._setYear(b.getFullYear());this.value._setMonth(b.getMonth()+1);this.value._setHours(b.getHours());this.value._setMinutes(b.getMinutes());this.value._setSeconds(b.getSeconds());this.value._setMilliseconds(b.getMilliseconds());this.value._setDay(b.getDate())}this._refreshValue();if(this.value){this._raiseEvent("0",this.value.dateTime)}else{this._raiseEvent("0",null)}},getRange:function(){var b=this._calendar.getRange();if(this._range){var d=this._range.from;var c=this._range.to;if(c&&d&&(c.valueOf()!=d.valueOf())){if(b.from){b.from.setHours(d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds())}if(b.to){b.to.setHours(c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds())}}}return b},_validateValue:function(e){var b=false;for(var d=0;d<this.items.length;d++){var c=this.editors[d].value;switch(this.items[d].type){case"FORMAT_AMPM":if(c<0){c=0}else{if(c>1){c=1}}break;case"Character":break;case"Day":if(c<1){c=1}else{if(c>31){c=31}}break;case"FORMAT_hh":if(c<1){c=1}else{if(c>12){c=12}}break;case"FORMAT_HH":if(c<0){c=0}else{if(c>23){c=23}}break;case"Millisecond":if(c<0){c=0}else{if(c>999){c=999}}break;case"Minute":if(c<0){c=0}else{if(c>59){c=59}}break;case"Month":if(c<1){c=1}else{if(c>12){c=12}}break;case"ReadOnly":break;case"Second":if(c<0){c=0}else{if(c>59){c=59}}break;case"Year":if(c<this.minDate.year){c=this.minDate.year}else{if(c>this.maxDate.year){c=this.maxDate.year}}break}if(this.editors[d].value!=c){this.editors[d].value=c;b=true}}this.updateValue(e);if(this.value!=null&&e===true){if(this.value.dateTime>this.maxDate.dateTime){this._internalSetValue(this.maxDate);this._updateEditorsValue()}else{if(this.value.dateTime<this.minDate.dateTime){this._internalSetValue(this.minDate);this._updateEditorsValue()}}this._updateText()}},spinUp:function(){var d=this.value;if(d==null){return}if(this.activeEditor!=null){var b=this.editors.indexOf(this.activeEditor);if(b==-1){return}if(this.items[b].type=="Day"){if(this.value!=null){this.activeEditor.maxValue=this.value._daysInMonth(this.value.year,this.value.month)}}var c=this.activeEditor.positions;this.activeEditor.increaseValue(this.enableAbsoluteSelection);this.activeEditor.positions=c}if(this.isEditing){this.isEditing=false}this.updateValue();this.isEditing=true;this._updateText();var e=this.editors.indexOf(this.activeEditor);if(e>=0){this._selectGroup(e)}},spinDown:function(){var d=this.value;if(d==null){return}if(this.activeEditor!=null){var b=this.editors.indexOf(this.activeEditor);if(b==-1){return}if(this.items[b].type=="Day"){if(this.value!=null){this.activeEditor.maxValue=this.value._daysInMonth(this.value.year,this.value.month)}}var c=this.activeEditor.positions;this.activeEditor.decreaseValue(this.enableAbsoluteSelection);this.activeEditor.positions=c}if(this.isEditing){this.isEditing=false}this.updateValue();this.isEditing=true;this._updateText();var e=this.editors.indexOf(this.activeEditor);if(e>=0){this._selectGroup(e)}},_passKeyToCalendar:function(c){if(c.keyCode==13||c.keyCode==9){this.hideCalendar("selected","keyboard");return true}else{if(c.keyCode==27){var e=this.calendarContainer;var d=this._calendar;var f=this.closeCalendarAfterSelection;this.closeCalendarAfterSelection=false;d.setDate(this.value.dateTime);this.closeCalendarAfterSelection=f;this.hideCalendar()}}var f=this.closeCalendarAfterSelection;this.closeCalendarAfterSelection=false;var b=this._calendar._handleKey(c);this.closeCalendarAfterSelection=f;return b},handleCalendarKey:function(f,e){var c=a(f.target);var d=a.data(document.body,"openedJQXCalendar"+this.id);if(d!=null){if(d.length>0){var b=e._passKeyToCalendar(f);return b}}return true},_findPos:function(c){if(c==null){return}while(c&&(c.type=="hidden"||c.nodeType!=1||a.expr.filters.hidden(c))){c=c.nextSibling}var b=a(c).coord(true);return[b.left,b.top]},testOffset:function(h,f,c){var g=h.outerWidth();var j=h.outerHeight();var i=a(window).width()+a(window).scrollLeft();var e=a(window).height()+a(window).scrollTop();if(f.left+g>i){if(g>this.host.width()){var d=this.host.coord().left;var b=g-this.host.width();f.left=d-b+2}}if(f.left<0){f.left=parseInt(this.host.coord().left)+"px"}f.top-=Math.min(f.top,(f.top+j>e&&e>j)?Math.abs(j+c+23):0);return f},open:function(b){if(b=="time"){this.timePopup=true}else{this.timePopup=false}this.showCalendar()},close:function(b){this.hideCalendar()},_getBodyOffset:function(){var c=0;var b=0;if(a("body").css("border-top-width")!="0px"){c=parseInt(a("body").css("border-top-width"));if(isNaN(c)){c=0}}if(a("body").css("border-left-width")!="0px"){b=parseInt(a("body").css("border-left-width"));if(isNaN(b)){b=0}}return{left:b,top:c}},initTimePopup:function(){this.timePopupElement=a("<div style='border-style: solid; border-width: 0px;'></div>").appendTo(this.timeContainer);this.timePopupElement.addClass(this.toThemeProperty("jqx-widget-content jqx-widget jqx-date-time-input-popup"));var s="";s+="<table><tbody><tr><td><a class='increment-hour-column' href='javascript:;' data-action='incrementHour'><div class='jqx-icon-up'></div></a></td><td class='separator'> </td><td><a class='increment-minute-column' href='javascript:;' data-action='incrementMinute'><div class='jqx-icon-up'></div></a></td><td class='separator'> </td><td><a class='increment-second-column' href='javascript:;' data-action='incrementSecond'><div class='jqx-icon-up'></div></a></td><td class='separator'> </td><td><a class='increment-millisecond-column' href='javascript:;' data-action='incrementMSSecond'><div class='jqx-icon-up'></div></a></td><td class='separator'> </td><td class='increment-meridian-column'><a href='javascript:;' data-action='toggleMeridian'><div class='jqx-icon-up'></div></a></td></tr><tr><td><input type='text' class='jqx-timepicker-hour' maxlength='2'></td><td class='separator'>:</td><td><input type='text' class='jqx-timepicker-minute' maxlength='2'></td><td class='separator'>:</td><td><input type='text' class='jqx-timepicker-second' maxlength='2'></td><td class='separator'>:</td><td><input type='text' class='jqx-timepicker-millisecond' maxlength='3'></td><td class='separator'> </td><td><input type='text' class='jqx-timepicker-meridian' maxlength='2'></td></tr><tr><td><a class='decrement-hour-column' href='javascript:;' data-action='decrementHour'><div class='jqx-icon-down'></div></a></td><td class='separator'></td><td><a class='decrement-minute-column' href='javascript:;' data-action='decrementMinute'><div class='jqx-icon-down'></div></a></td><td class='separator'></td><td><a class='decrement-second-column' href='javascript:;' data-action='decrementSecond'><div class='jqx-icon-down'></div></a></td><td class='separator'></td><td><a class='decrement-millisecond-column' href='javascript:;' data-action='decrementMillisecond'><div class='jqx-icon-down'></div></a></td><td class='separator'> </td><td><a class='decrement-meridian-column' href='javascript:;' data-action='toggleMeridian'><div class='jqx-icon-down'></div></a></td></tr></tbody></table>";var l=this._getFormatValue(this.formatString);if(this.selectionMode!="range"){this.timePopupElement[0].innerHTML=s}else{this.timePopupElement[0].innerHTML="<table><tr><td>"+s+"</td><td>-</td><td>"+s+"</td></tr></table>"}this.timePopupElement.find(".jqx-icon-down").addClass(this.toThemeProperty("jqx-icon jqx-icon-arrow-down"));this.timePopupElement.find(".jqx-icon-up").addClass(this.toThemeProperty("jqx-icon jqx-icon-arrow-up"));var g=this.timePopupElement.find("input");g.addClass(this.toThemeProperty("jqx-input"));g.addClass(this.toThemeProperty("jqx-rc-all"));this.addHandler(g,"mousedown",function(u){u.stopPropagation()});var e=function(u){if(u.target.className.indexOf("hour")>=0){m._decrementHour(a(u.target))}if(u.target.className.indexOf("minute")>=0){m._decrementMinuteSecond(a(u.target))}if(u.target.className.indexOf("second")>=0){m._decrementMinuteSecond(a(u.target))}if(u.target.className.indexOf("millisecond")>=0){m._decrementMillisecond(a(u.target))}if(u.target.className.indexOf("meridian")>=0){m._decrementMeridian(a(u.target))}};var k=function(u){if(u.target.className.indexOf("hour")>=0){m._incrementHour(a(u.target))}if(u.target.className.indexOf("minute")>=0){m._incrementMinuteSecond(a(u.target))}if(u.target.className.indexOf("second")>=0){m._incrementMinuteSecond(a(u.target))}if(u.target.className.indexOf("millisecond")>=0){m._incrementMillisecond(a(u.target))}if(u.target.className.indexOf("meridian")>=0){m._incrementMeridian(a(u.target))}};var r=function(v,u){if(!u.isEditing){return}var w=0;if(!v){v=window.event}if(v.originalEvent&&v.originalEvent.wheelDelta){v.wheelDelta=v.originalEvent.wheelDelta}if(v.originalEvent&&v.originalEvent.deltaY!=undefined){w=-v.originalEvent.deltaY}if(v.wheelDelta){w=v.wheelDelta/120}else{if(v.detail){w=-v.detail/3}}if(w){if(document.activeElement==v.target&&v.target.nodeName.toLowerCase()=="input"){if(w<0){e(v)}else{k(v)}}if(v.preventDefault){v.preventDefault()}v.returnValue=false}if(v.preventDefault){v.preventDefault()}v.returnValue=false};this.addHandler(g,"wheel",function(u){r(u,m)});this.addHandler(g,"keydown",function(v){var u=a(v.target);if(v.ctrlKey){if(v.keyCode==38){if(m.isOpened()){m.hideCalendar("keyboard","keyboard");m.dateTimeInput.focus();return false}}else{if(v.keyCode==40){if(!m.isOpened()){m.showCalendar("keyboard","keyboard");m.dateTimeInput.focus();return false}}}}if(v.keyCode==40){e(v);v.preventDefault()}else{if(v.keyCode==38){k(v);v.preventDefault()}else{if(v.keyCode==13){v.preventDefault();m.hideCalendar("keyboard","keyboard");m.dateTimeInput.focus()}else{if(v.keyCode==27){v.preventDefault();m.hideCalendar("cancel");m.dateTimeInput.focus()}}}}});this.hourInput=a(g[0]);this.minuteInput=a(g[1]);this.secondInput=a(g[2]);this.mssecondInput=a(g[3]);this.meridianInput=a(g[4]);this.hourInput2=a(g[5]);this.minuteInput2=a(g[6]);this.secondInput2=a(g[7]);this.mssecondInput2=a(g[8]);this.meridianInput2=a(g[9]);var m=this;var o=this.timePopupElement.find(".increment-hour-column");this.hourIncrement=a(o[0]);this.hourIncrement2=a(o[1]);this.addHandler(g,"change",function(v){var u=a(v.target);if(u.val().length<=1){u.val("0"+a(v.target).val())}if(v.target.className.indexOf("hour")>=0){var w=parseInt(a(v.target).val());if(l.indexOf("HH")>=0){while(w>24){w=w-24}}else{while(w>12){w=w-12}}if(w<10){w="0"+w}if(u.val()!=w){u.val(w)}}if(v.target.className.indexOf("minute")>=0||v.target.className.indexOf("second")>=0){var w=parseInt(a(v.target).val());while(w>59){w--}if(w<10){w="0"+w}if(u.val()!=w){u.val(w)}}});this._incrementHour=function(u){var v=parseInt(u.val());v++;if(l.indexOf("HH")>=0){if(v>23){v=0}}else{if(v>12){v=1}}if(v<10){v="0"+v}u.val(v)};this._incrementMinuteSecond=function(u){var v=parseInt(u.val());v++;if(v>59){v=0}if(v<10){v="0"+v}u.val(v)};this._incrementMillisecond=function(u){var v=parseInt(u.val());v++;if(v>999){v=0}if(v<10){v="0"+v}u.val(v)};this._incrementMeridian=function(u){var v=u.val();if(v.toLowerCase().indexOf("a")>=0){v="PM"}else{v="AM"}u.val(v)};this._decrementHour=function(u){var v=parseInt(u.val());v--;if(l.indexOf("HH")>=0){if(v<0){v=23}}else{if(v<1){v=12}}if(v<10){v="0"+v}u.val(v)};this._decrementMinuteSecond=function(u){var v=parseInt(u.val());v--;if(v<0){v=59}if(v<10){v="0"+v}u.val(v)};this._decrementMillisecond=function(u){var v=parseInt(u.val());v--;if(v<0){v=999}if(v<10){v="0"+v}u.val(v)};this._decrementMeridian=function(u){var v=u.val();if(v.toLowerCase().indexOf("a")>=0){v="PM"}else{v="AM"}u.val(v)};this.addHandler(this.hourIncrement,"mousedown",function(u){u.stopPropagation();m._incrementHour(m.hourInput)});this.addHandler(this.hourIncrement2,"mousedown",function(u){u.stopPropagation();m._incrementHour(m.hourInput2)});var p=this.timePopupElement.find(".increment-minute-column");this.minuteIncrement=a(p[0]);this.minuteIncrement2=a(p[1]);this.addHandler(this.minuteIncrement,"mousedown",function(u){u.stopPropagation();m._incrementMinuteSecond(m.minuteInput)});this.addHandler(this.minuteIncrement2,"mousedown",function(u){u.stopPropagation();m._incrementMinuteSecond(m.minuteInput2)});var c=this.timePopupElement.find(".increment-second-column");this.secondIncrement=a(c[0]);this.secondIncrement2=a(c[1]);this.addHandler(this.secondIncrement,"mousedown",function(u){u.stopPropagation();m._incrementMinuteSecond(m.secondInput)});this.addHandler(this.secondIncrement2,"mousedown",function(u){u.stopPropagation();m._incrementMinuteSecond(m.secondInput2)});var d=this.timePopupElement.find(".increment-millisecond-column");this.millisecondsIncrement=a(d[0]);this.millisecondsIncrement2=a(d[1]);this.addHandler(this.millisecondsIncrement,"mousedown",function(u){u.stopPropagation();m._incrementMillisecond(m.mssecondInput)});this.addHandler(this.millisecondsIncrement2,"mousedown",function(u){u.stopPropagation();m._incrementMillisecond(m.mssecondInput2)});var i=this.timePopupElement.find(".increment-meridian-column");this.meridianIncrement=a(i[0]);this.meridianIncrement2=a(i[1]);this.addHandler(this.meridianIncrement,"mousedown",function(u){u.stopPropagation();m._incrementMeridian(m.meridianInput)});this.addHandler(this.meridianIncrement2,"mousedown",function(u){u.stopPropagation();m._incrementMeridian(m.meridianInput2)});var n=this.timePopupElement.find(".decrement-hour-column");this.hourDecrement=a(n[0]);this.hourDecrement2=a(n[1]);this.addHandler(this.hourDecrement,"mousedown",function(u){u.stopPropagation();m._decrementHour(m.hourInput)});this.addHandler(this.hourDecrement2,"mousedown",function(u){u.stopPropagation();m._decrementHour(m.hourInput2)});var j=this.timePopupElement.find(".decrement-minute-column");this.minuteDecrement=a(j[0]);this.minuteDecrement2=a(j[1]);this.addHandler(this.minuteDecrement,"mousedown",function(u){u.stopPropagation();m._decrementMinuteSecond(m.minuteInput)});this.addHandler(this.minuteDecrement2,"mousedown",function(u){u.stopPropagation();m._decrementMinuteSecond(m.minuteInput2)});var t=this.timePopupElement.find(".decrement-second-column");this.secondDecrement=a(t[0]);this.secondDecrement2=a(t[1]);this.addHandler(this.secondDecrement,"mousedown",function(u){u.stopPropagation();m._decrementMinuteSecond(m.secondInput)});this.addHandler(this.secondDecrement2,"mousedown",function(u){u.stopPropagation();m._decrementMinuteSecond(m.secondInput2)});var b=this.timePopupElement.find(".decrement-millisecond-column");this.millisecondsDecrement=a(b[0]);this.millisecondsDecrement2=a(b[1]);this.addHandler(this.millisecondsDecrement,"mousedown",function(u){u.stopPropagation();m._decrementMillisecond(m.mssecondInput)});this.addHandler(this.millisecondsDecrement2,"mousedown",function(u){u.stopPropagation();m._decrementMillisecond(m.mssecondInput2)});var f=this.timePopupElement.find(".decrement-meridian-column");this.meridianDecrement=a(f[0]);this.meridianDecrement2=a(f[1]);this.addHandler(this.meridianDecrement,"mousedown",function(u){u.stopPropagation();m._decrementMeridian(m.meridianInput)});this.addHandler(this.meridianDecrement2,"mousedown",function(u){u.stopPropagation();m._decrementMeridian(m.meridianInput2)});var q=this.timePopupElement.find("table");this.addHandler(this.timePopupElement,"mousedown",function(u){u.stopPropagation()});var h=function(u){var v=u.find("tr");if(l.indexOf("mm")==-1){m.minuteInput.hide();m.minuteInput2.hide();a(a(v[0]).children()[1]).hide();a(a(v[0]).children()[2]).hide();a(a(v[1]).children()[1]).hide();a(a(v[1]).children()[2]).hide();a(a(v[2]).children()[1]).hide();a(a(v[2]).children()[2]).hide()}if(l.indexOf("ss")==-1){m.secondInput.hide();m.secondInput2.hide();a(a(v[0]).children()[3]).hide();a(a(v[0]).children()[4]).hide();a(a(v[1]).children()[3]).hide();a(a(v[1]).children()[4]).hide();a(a(v[2]).children()[3]).hide();a(a(v[2]).children()[4]).hide()}if(l.indexOf("tt")==-1&&l.indexOf("hh")==-1){m.meridianInput.hide();m.meridianInput2.hide();a(a(v[0]).children()[7]).hide();a(a(v[0]).children()[8]).hide();a(a(v[1]).children()[7]).hide();a(a(v[1]).children()[8]).hide();a(a(v[2]).children()[7]).hide();a(a(v[2]).children()[8]).hide()}if(l.indexOf("zz")==-1){m.mssecondInput.hide();m.mssecondInput2.hide();a(a(v[0]).children()[5]).hide();a(a(v[0]).children()[6]).hide();a(a(v[1]).children()[5]).hide();a(a(v[1]).children()[6]).hide();a(a(v[2]).children()[5]).hide();a(a(v[2]).children()[6]).hide()}};if(q.length==1){h(q)}else{h(a(a(q)[1]));h(a(a(q)[2]))}},updateTimePopup:function(){var b=this._getFormatValue(this.formatString);if(this.selectionMode!="range"){var f=this.getDate();if(this.hourInput){if(f){var c=f.getHours();var h=f.getMinutes();var g=f.getHours();var e=f.getSeconds();var d=f.getMilliseconds()}else{var c=0;var h=0;var g=0;var e=0;var d=0}if(c>=12){g="PM";if(b.indexOf("HH")==-1){c-=12;if(c==0){c=12}}}else{g="AM"}if(this.meridianInput.css("display")!="none"){if(c==0){c=12}}if(c<10){c="0"+c}if(h<10){h="0"+h}if(e<10){e="0"+e}if(d<10){d="0"+d}this.hourInput.val(c);this.minuteInput.val(h);this.secondInput.val(e);this.mssecondInput.val(d);this.meridianInput.val(g)}}else{var f=this.getRange().from;if(this.hourInput){if(f){var c=f.getHours();var h=f.getMinutes();var g=f.getHours();var e=f.getSeconds();var d=f.getMilliseconds()}else{var c=0;var h=0;var g=0;var e=0;var d=0}if(c>=12){g="PM";if(b.indexOf("HH")==-1){c-=12;if(c==0){c=12}}}else{g="AM"}if(this.meridianInput.css("display")!="none"){if(c==0){c=12}}if(c<10){c="0"+c}if(h<10){h="0"+h}if(e<10){e="0"+e}if(d<10){d="0"+d}this.hourInput.val(c);this.minuteInput.val(h);this.secondInput.val(e);this.mssecondInput.val(d);this.meridianInput.val(g)}var f=this.getRange().to;if(this.hourInput2){if(f){var c=f.getHours();var h=f.getMinutes();var g=f.getHours();var e=f.getSeconds();var d=f.getMilliseconds()}else{var c=0;var h=0;var g=0;var e=0;var d=0}if(c>=12){g="PM";if(b.indexOf("HH")==-1){c-=12;if(c==0){c=12}}}else{g="AM"}if(this.meridianInput.css("display")!="none"){if(c==0){c=12}}if(c<10){c="0"+c}if(h<10){h="0"+h}if(e<10){e="0"+e}if(d<10){d="0"+d}this.hourInput2.val(c);this.minuteInput2.val(h);this.secondInput2.val(e);this.mssecondInput2.val(d);this.meridianInput2.val(g)}}},showCalendar:function(){var o=this.calendarContainer;var s=this._calendar;if(this.showTimeButton){if(this.timePopup){if(!this.timePopupElement){this.initTimePopup()}this.calendarContainer.css("visibility","hidden");this.timeContainer.css("visibility","visible");this.updateTimePopup();var d=this.timeContainer.find("input");var v=0;for(var z=0;z<d.length;z++){if(d[z].style.display!="none"){v+=50}}this.container.width(parseInt(v));if(!this.touch){setTimeout(function(){d[0].focus();a(d[0]).select()},150+this.openDelay)}}else{this.container.width(parseInt(this.calendarContainer.width())+25);this.timeContainer.css("visibility","hidden");this.calendarContainer.css("visibility","visible")}}if(this.value!=null){if(this.selectionMode!="range"){this._oldDT=new Date(this.value.dateTime)}else{this._oldDT=this.getRange()}}else{this._oldDT=null}if(!s.canRender){s.canRender=true;s.render()}var l=this.container;var r=this;var g=a(window).scrollTop();var h=a(window).scrollLeft();var p=parseInt(this._findPos(this.host[0])[1])+parseInt(this.host.outerHeight())-1+"px";var e,u=parseInt(Math.round(this.host.coord(true).left));if(this.dropDownContainer==="element"){p=parseInt(this.host.outerHeight())-1+"px";e=0}e=u+"px";var A=false;if((A!=null&&A)){e=a.jqx.mobile.getLeftPos(this.element);p=a.jqx.mobile.getTopPos(this.element)+parseInt(this.host.outerHeight());if(a("body").css("border-top-width")!="0px"){p=parseInt(p)-this._getBodyOffset().top+"px"}if(a("body").css("border-left-width")!="0px"){e=parseInt(e)-this._getBodyOffset().left+"px"}}this.container.css("left",e);this.container.css("top",p);var c=this.closeCalendarAfterSelection;this.closeCalendarAfterSelection=false;this.isEditing=false;if(r.selectionMode=="default"){this._validateValue();this._updateText();var w=this.value!=null?this.value.dateTime:new Date();s.setDate(w)}this.closeCalendarAfterSelection=c;var b=false;if(this.dropDownHorizontalAlignment=="right"||this.rtl){var k=this.container.outerWidth();var x=Math.abs(k-this.host.outerWidth()+2);if(!this.rtl){x-=2}if(k>this.host.width()){var f=23;this.container.css("left",f+parseInt(Math.round(u))-x+"px")}else{this.container.css("left",25+parseInt(Math.round(u))+x+"px")}}if(this.dropDownVerticalAlignment=="top"){var y=o.height();if(this.timePopup){this.timeContainer.css("top",this.container.height()-75)}b=true;o.css("top",23);o.addClass(this.toThemeProperty("jqx-popup-up"));var n=parseInt(this.host.outerHeight());var m=parseInt(p)-Math.abs(y+n+23);this.container.css("top",m)}if(this.enableBrowserBoundsDetection){var j=this.testOffset(o,{left:parseInt(this.container.css("left")),top:parseInt(p)},parseInt(this.host.outerHeight()));if(parseInt(this.container.css("top"))!=j.top){b=true;o.css("top",23);o.addClass(this.toThemeProperty("jqx-popup-up"))}else{o.css("top",0)}this.container.css("top",j.top);if(parseInt(this.container.css("left"))!=j.left){this.container.css("left",j.left)}}this._raiseEvent(7,o);if(this.animationType!="none"&&this.animationType!="transform"){this.container.css("display","block");var q=parseInt(o.outerHeight());o.stop();this.isanimating=true;this.opening=true;if(this.animationType=="fade"){o.css("margin-top",0);o.css("opacity",0);o.animate({opacity:1},this.openDelay,function(){r.isanimating=false;r.opening=false;a.data(document.body,"openedJQXCalendar"+r.id,o);r.calendarContainer.focus()});if(this.timePopup){this.timeContainer.css("margin-top",0);this.timeContainer.css("opacity",0);this.timeContainer.animate({opacity:1},this.openDelay,function(){r.isanimating=false;r.opening=false;a.data(document.body,"openedJQXCalendar"+r.id,o);r.timeContainer.focus()})}}else{o.css("opacity",1);if(this.timePopup){this.timeContainer.css("opacity",1)}if(b){o.css("margin-top",q)}else{o.css("margin-top",-q)}if(this.timePopup){if(b){this.timeContainer.css("margin-top",q)}else{this.timeContainer.css("margin-top",-q)}this.timeContainer.animate({"margin-top":0},this.openDelay,function(){r.isanimating=false;r.opening=false;a.data(document.body,"openedJQXCalendar"+r.id,o);r.timeContainer.focus()})}o.animate({"margin-top":0},this.openDelay,function(){r.isanimating=false;r.opening=false;a.data(document.body,"openedJQXCalendar"+r.id,o);r.calendarContainer.focus()})}}else{o.stop();r.isanimating=false;r.opening=false;o.css("opacity",1);o.css("margin-top",0);this.container.css("display","block");a.data(document.body,"openedJQXCalendar"+r.id,o);this.calendarContainer.focus();if(this.timePopup){this.timeContainer.stop();this.timeContainer.css("opacity",1);this.timeContainer.css("margin-top",0);this.timeContainer.focus()}}if(this.value==null){if(this._calendar&&this._calendar._getSelectedCell()){this._calendar._getSelectedCell().isSelected=false}}if(this.timePopup){this.timeButtonIcon.addClass(this.toThemeProperty("jqx-icon-time-pressed"));this.timeButton.addClass(this.toThemeProperty("jqx-fill-state-hover"));this.timeButton.addClass(this.toThemeProperty("jqx-fill-state-pressed"));this.timeContainer.addClass(this.toThemeProperty("jqx-fill-state-focus"))}else{this.calendarButtonIcon.addClass(this.toThemeProperty("jqx-icon-calendar-pressed"));this.calendarButton.addClass(this.toThemeProperty("jqx-fill-state-hover"));this.calendarButton.addClass(this.toThemeProperty("jqx-fill-state-pressed"));this.calendarContainer.addClass(this.toThemeProperty("jqx-fill-state-focus"))}this.host.addClass(this.toThemeProperty("jqx-fill-state-focus"));this.calendarContainer.addClass(this.toThemeProperty("jqx-popup-show"));if(this.isMaterialized()){this._calendar.refresh()}},hideCalendar:function(j,o){if(o){this.changeType=o}var h=this.calendarContainer;var b=this.container;var p=this;if(this.showTimeButton){if(this.timeContainer.css("visibility")!="hidden"&&j!="cancel"){if(this.selectionMode!="range"&&this.hourInput){var e=this.getDate();var g=parseInt(this.hourInput.val());var f=parseInt(this.minuteInput.val());var c=parseInt(this.secondInput.val());var q=parseInt(this.mssecondInput.val());var d=this.meridianInput.val();if(isNaN(g)){g=0}if(isNaN(f)){f=0}if(isNaN(c)){c=0}if(isNaN(q)){q=0}if(this.meridianInput.css("display")!="none"){if(d.toLowerCase().indexOf("p")>=0){if(g<12){g+=12}}if(d.toLowerCase().indexOf("a")>=0){if(g>=12){g-=12}}}if(!e){e=new Date()}e.setHours(g,f,c,q);this.setDate(e)}else{if(this.hourInput&&j!="selected"){var i=this.getRange();var g=parseInt(this.hourInput.val());var f=parseInt(this.minuteInput.val());var c=parseInt(this.secondInput.val());var q=parseInt(this.mssecondInput.val());var d=this.meridianInput.val();if(isNaN(g)){g=0}if(isNaN(f)){f=0}if(isNaN(c)){c=0}if(isNaN(q)){q=0}if(this.meridianInput.css("display")!="none"){if(d.toLowerCase().indexOf("p")>=0){if(g<12){g+=12}}if(d.toLowerCase().indexOf("a")>=0){if(g>=12){g-=12}}}var l=i.from;if(!l){l=new Date()}l.setHours(g,f,c,q);var g=parseInt(this.hourInput2.val());var f=parseInt(this.minuteInput2.val());var c=parseInt(this.secondInput2.val());var q=parseInt(this.mssecondInput2.val());var d=this.meridianInput2.val();if(f==""){f=0}if(c==""){c=0}if(q==""){q=0}if(this.meridianInput2.css("display")!="none"){if(d.toLowerCase().indexOf("p")>=0){if(g<12){g+=12}}if(d.toLowerCase().indexOf("a")>=0){if(g>=12){g-=12}}}var k=i.to;if(!k){k=new Date()}k.setHours(g,f,c,q);if(k.valueOf()<l.valueOf()){return false}this.setRange(l,k)}else{if(j=="selected"){return}}}}}a.data(document.body,"openedJQXCalendar"+this.id,null);if(this.animationType!="none"&&this.animationType!="transform"){var n=h.outerHeight();h.css("margin-top",0);if(this.showTimeButton){this.timeContainer.css("margin-top",0)}this.isanimating=true;var m=-n;if(parseInt(this.container.coord().top)<parseInt(this.host.coord().top)){m=n}if(this.animationType=="fade"){h.animate({opacity:0},this.closeDelay,function(){b.css("display","none");p.isanimating=false})}else{h.animate({"margin-top":m},this.closeDelay,function(){b.css("display","none");p.isanimating=false})}if(this.showTimeButton){if(this.animationType=="fade"){this.timeContainer.animate({opacity:0},this.closeDelay,function(){b.css("display","none");p.isanimating=false})}else{this.timeContainer.animate({"margin-top":m},this.closeDelay,function(){b.css("display","none");p.isanimating=false})}}}else{if(this.animationType==="transform"){setTimeout(function(){b.css("display","none")},this.closeDelay)}else{b.css("display","none")}}if(j!=undefined){this._updateSelectedDate(j)}this.timeButtonIcon.removeClass(this.toThemeProperty("jqx-icon-time-pressed"));this.timeButton.removeClass(this.toThemeProperty("jqx-fill-state-hover"));this.timeButton.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));this.calendarButtonIcon.removeClass(this.toThemeProperty("jqx-icon-calendar-pressed"));this.calendarButton.removeClass(this.toThemeProperty("jqx-fill-state-hover"));this.calendarButton.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));this.host.removeClass(this.toThemeProperty("jqx-fill-state-focus"));this.timeContainer.removeClass(this.toThemeProperty("jqx-fill-state-focus"));this.calendarContainer.removeClass(this.toThemeProperty("jqx-fill-state-focus"));this._raiseEvent(8,h);this.calendarContainer.removeClass(this.toThemeProperty("jqx-popup-show"))},_updateSelectedDate:function(){var l=this.value;if(l==null){l=new a.jqx._jqxDateTimeInput.getDateTime(new Date());l._setHours(0);l._setMinutes(0);l._setSeconds(0);l._setMilliseconds(0)}var g=l.hour;var f=l.minute;var c=l.second;var b=l.millisecond;if(this.selectionMode=="range"&&this._calendar.getRange().from==null){this.setDate(null);return}var d=new a.jqx._jqxDateTimeInput.getDateTime(this._calendar.value.dateTime);d._setHours(g);d._setMinutes(f);d._setSeconds(c);d._setMilliseconds(b);var m=this.setDate(d.dateTime);if(this.selectionMode=="range"&&!m&&this._oldDT){var h=this.getRange();var i=this._oldDT;var k=false;var j=false;var e=this._oldDT.from;var d=h.from;if(d!=null&&e){if(!(d.getFullYear()!=e.getFullYear()||d.getMonth()!=e.getMonth()||d.getDate()!=e.getDate()||d.getHours()!=e.getHours()||d.getMinutes()!=e.getMinutes()||d.getSeconds()!=e.getSeconds())){k=true}}var d=h.to;if(d!=null){e=this._oldDT.to;if(e){if(!(d.getFullYear()!=e.getFullYear()||d.getMonth()!=e.getMonth()||d.getDate()!=e.getDate()||d.getHours()!=e.getHours()||d.getMinutes()!=e.getMinutes()||d.getSeconds()!=e.getSeconds())){j=true}}}if(k&&j){return true}this._raiseEvent(0,{});this._raiseEvent(9,{})}},_closeOpenedCalendar:function(b){var e=a(b.target);var j=a.data(document.body,"openedJQXCalendar"+b.data.me.id);var d=false;a.each(e.parents(),function(){if(this.className&&this.className.indexOf){if(this.className.indexOf("jqx-calendar")!=-1){d=true;return false}if(this.className.indexOf("jqx-date-time-input-popup")!=-1){d=true;return false}if(this.className.indexOf("jqx-input")!=-1){return false}}});if(a(b.target).ischildof(b.data.me.host)){return true}if(b.target!=null&&(b.target.tagName=="B"||b.target.tagName=="b")){var k=b.data.me.host.coord();var m=b.data.me.host.width();var c=b.data.me.host.height();var l=parseInt(k.top);var g=parseInt(k.left);if(l<=b.pageY&&b.pageY<=l+c){if(g<=b.pageX&&b.pageX<=g+m){return true}}}if(j!=null&&!d){if(j.length>0){var h=j[0].id.toString();var f=h.toString().substring(13);var i=a(document).find("#"+f);var n=b.data.me.hideCalendar();if(n!==false){a.data(document.body,"openedJQXCalendar"+b.data.me.id,null)}}}},_loadItems:function(){if(this.value!=null){this.items=new Array();var d=this._getFormatValue(this.formatString);this.items=this._parseFormatValue(d);this.editors=new Array();for(var b=0;b<this.items.length;b++){var c=this.items[b].getDateTimeEditorByItemType(this.value,this);this.editors[b]=c}}this._updateEditorsValue();this._updateText()},_updateText:function(){var d=this;var f="";if(d.items.length==0&&d.value!=null){d._loadItems()}if(d.value!=null){if(d.items.length>=1){f=d.format(d.value,0,d.items.length)}var b=d.dateTimeInput.val();if(b!=f){d._raiseEvent(1,d.value)}}if(d.selectionMode=="range"){var c=d.getRange();var i=d.format(d.value,0,d.items.length);if(c.to){var h=a.jqx._jqxDateTimeInput.getDateTime(c.from);i=d.format(h,0,d.items.length);var g=a.jqx._jqxDateTimeInput.getDateTime(c.to);var e=d.format(g,0,d.items.length);var f=i+" - "+e;if(f==" - "){f=""}}else{f=""}}d.dateTimeInput.val(f)},format:function(h,j,f){var b="";for(var e=j;e<f;++e){var g=this.items[e];var c=g.dateParser(h,this);if(this.isEditing&&g.type!="ReadOnly"){if(this.selectionMode!="range"){var d=g.type=="Day"&&g.format.length>2;if(g.type=="FORMAT_AMPM"){d=true;if(this.editors[e].value==0){c=this.editors[e].amString}else{c=this.editors[e].pmString}}if(!d){if(this.yearCutoff!==null&&g.type==="Year"&&g.format==="yy"){c=this.editors[e].value.toString().substring(2)}else{c=g.dateParserInEditMode(new Number(this.editors[e].value),"d"+this.editors[e].maxEditPositions,this);while(c.length<this.editors[e].maxEditPositions){c="0"+c}}}}}b+=c}return b},_getFormatValueGroupLength:function(c){for(var b=1;b<c.toString().length;++b){if(c.substring(b,b+1)!=c.substring(0,1)){return b}}return c.length},_parseFormatValue:function(h){var c=new Array();var f=h.toString();var e=0;while(f.length>0){var d=this._getFormatValueGroupLength(f);var g=null;switch(f.substring(0,1)){case":":case"/":d=1;g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,1),"ReadOnly",this.culture);break;case'"':case"'":var b=f.indexOf(f[0],1);g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(1,1+Math.max(1,b-1)),"ReadOnly",this.culture);d=Math.max(1,b+1);break;case"\\":if(f.length>=2){g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(1,1),"ReadOnly",this.culture);d=2}break;case"d":case"D":if(d>2){g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"Day",this.culture)}else{g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"Day",this.culture)}break;case"f":case"F":if(d>7){d=7}if(d>3){g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"ReadOnly",this.culture)}else{g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"Millisecond",this.culture)}break;case"g":g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"ReadOnly",this.culture);break;case"h":g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"FORMAT_hh",this.culture);break;case"H":g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"FORMAT_HH",this.culture);break;case"m":g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"Minute",this.culture);break;case"M":if(d>4){d=4}g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"Month",this.culture);break;case"s":case"S":g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"Second",this.culture);break;case"t":case"T":g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"FORMAT_AMPM",this.culture);break;case"y":case"Y":if(d>1){g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"Year",this.culture)}else{d=1;g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,1),null,"ReadOnly",this.culture)}break;case"z":g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,d),"ReadOnly",this.culture);break;default:d=1;g=a.jqx._jqxDateTimeInput.DateTimeFormatItem._create(f.substring(0,1),"ReadOnly",this.culture);break}c[e]=a.extend(true,{},g);f=f.substring(d);e++}return c},_getFormatValue:function(b){if(b==null||b.length==0){b="d"}if(b.length==1){switch(b.substring(0,1)){case"d":return this.localization.calendar.patterns.d;case"D":return this.localization.calendar.patterns.D;case"t":return this.localization.calendar.patterns.t;case"T":return this.localization.calendar.patterns.T;case"f":return this.localization.calendar.patterns.f;case"F":return this.localization.calendar.patterns.F;case"M":return this.localization.calendar.patterns.M;case"Y":return this.localization.calendar.patterns.Y;case"S":return this.localization.calendar.patterns.S}}if(b.length==2&&b.substring(0,1)=="%"){b=b.substring(1)}return b},_updateEditorsValue:function(){var j=this.value;if(j==null){return}var g=j.year;var h=j.day;var d=j.hour;var l=j.millisecond;var b=j.second;var c=j.minute;var f=j.month;if(this.items==null){return}for(var e=0;e<this.items.length;e++){switch(this.items[e].type){case"FORMAT_AMPM":var k=d%12;if(k==0){k=12}if(d>=0&&d<12){this.editors[e].value=0}else{this.editors[e].value=1}break;case"Day":this.editors[e].value=h;break;case"FORMAT_hh":var k=d%12;if(k==0){k=12}this.editors[e].value=k;break;case"FORMAT_HH":this.editors[e].value=d;break;case"Millisecond":this.editors[e].value=l;break;case"Minute":this.editors[e].value=c;break;case"Month":this.editors[e].value=f;break;case"Second":this.editors[e].value=b;break;case"Year":this.editors[e].value=g;break}}},updateValue:function(z){if(this.isEditing){return}if(this.items&&this.items.length==0){return}var o=0;var s=1;var C=1;var l=0;var d=0;var J=0;var u=0;var I=1;var h=0;var m=false;var r=false;var D=false;var c=false;var b=false;var q=false;var x=false;var t=new Array();var e=null;var y=0;for(var B=0;B<this.items.length;B++){switch(this.items[B].type){case"FORMAT_AMPM":h=this.editors[B].value;e=this.editors[B];break;case"Character":break;case"Day":if(this.items[B].format.length<3){C=this.editors[B].value;t[y++]=this.editors[B];if(C==0){C=1}D=true}break;case"FORMAT_hh":var F=this.editors[B];l=F.value;c=true;break;case"FORMAT_HH":l=this.editors[B].value;c=true;break;case"Millisecond":d=this.editors[B].value;x=true;break;case"Minute":u=this.editors[B].value;b=true;break;case"Month":I=this.editors[B].value;r=true;if(I==0){I=1}break;case"ReadOnly":break;case"Second":J=this.editors[B].value;q=true;break;case"Year":m=true;s=this.editors[B].value;var H=this.editors[B].getDateTimeItem().format;if(H.length<3){var w="1900";if(w.Length==4){var v=""+w[0]+w[1];var E;E=parseInt(v);s=s+(E*100)}}if(s==0){s=1}break}}var G=this.value!=null?new Date(this.value.dateTime):null;if(s>0&&I>0&&C>0&&u>=0&&l>=0&&J>=0&&d>=0){var K=this.value;if(K!=null){if(!m){s=K.year}if(!r){I=K.month}if(!D){C=K.day}}try{if(I>12){I=12}if(I<1){I=1}if(z&&K._daysInMonth(s,I)<=C){C=K._daysInMonth(s,I);if(t!=null&&t.length>0){for(B=0;B<t.length;B++){t[B].value=C}}}if(e!=null){if(e.value==0){if(l>=12){l-=12}}else{if(l+12<24){l+=12}}}var g=this.value.dateTime.getDate();this.value._setYear(parseInt(s));this.value._setDay(C);this.value._setMonth(I);if(c){this.value._setHours(l)}if(b){this.value._setMinutes(u)}if(q){this.value._setSeconds(J)}if(x){this.value._setMilliseconds(d)}this._validateTimeRange()}catch(j){this.value=K}if(G!=null){var A=this.value.dateTime.getFullYear()==G.getFullYear()&&this.value.dateTime.getDate()==G.getDate()&&this.value.dateTime.getMonth()==G.getMonth()&&this.value.dateTime.getHours()==G.getHours()&&this.value.dateTime.getMinutes()==G.getMinutes()&&this.value.dateTime.getSeconds()==G.getSeconds();if(!A){if(this.changing){var n=this.changing(G,this.value.dateTime);if(n){this.value=a.jqx._jqxDateTimeInput.getDateTime(n)}}this._raiseEvent("0",this.value.dateTime);if(this.cookies){if(this.value!=null){a.jqx.cookie.cookie("jqxDateTimeInput"+this.element.id,this.value.dateTime.toString(),this.cookieoptions)}}if(this.change){this.change(this.value.dateTime)}}}}var f=this.editors.indexOf(this.activeEditor);var p=this.items[f];if(this.value){if(this.calendarContainer.jqxCalendar("_isDisabled",this.value.dateTime)){this.dateTimeInput.addClass(this.toThemeProperty("jqx-input-invalid"))}else{this.dateTimeInput.removeClass(this.toThemeProperty("jqx-input-invalid"))}}},_internalSetValue:function(b){this.value._setYear(parseInt(b.year));this.value._setDay(b.day);this.value._setMonth(b.month);this.value._setHours(b.hour);this.value._setMinutes(b.minute);this.value._setSeconds(b.second);this.value._setMilliseconds(b.milisecond)},_raiseEvent:function(c,n,f){var m=this.events[c];var g={};g.owner=this;if(n==null){n={}}if(f==null){f=n}var l=n.charCode?n.charCode:n.keyCode?n.keyCode:0;var o=true;var k=this.readonly;var b=new a.Event(m);b.owner=this;b.args=g;b.args.date=this.getDate();if(c==9){b.args.type=this.changeType;this.changeType=null}this.element.value=this.dateTimeInput.val();if(c==9&&this.selectionMode!="range"){var d=b.args.date;if(this._oldDT){if(d!=null){if(!(d.getFullYear()!=this._oldDT.getFullYear()||d.getMonth()!=this._oldDT.getMonth()||d.getDate()!=this._oldDT.getDate()||d.getHours()!=this._oldDT.getHours()||d.getMinutes()!=this._oldDT.getMinutes()||d.getSeconds()!=this._oldDT.getSeconds())){return true}}a.jqx.aria(this,"aria-valuetext",this.getText());if(this.getDate()!=null){a.jqx.aria(this,"aria-label","Current focused date is "+this.getDate().toLocaleString())}else{a.jqx.aria(this,"aria-label","Current focused date is Null")}}b.args.oldValue=f;b.args.newValue=b.args.date;if(this._oldDT){b.args.oldValue=this._oldDT}}if(this.selectionMode=="range"){b.args.date=this.getRange();if(this._oldDT){var d=b.args.date.from;if(c==9){var j=false;var i=false;var e=this._oldDT.from;if(d!=null&&e){if(!(d.getFullYear()!=e.getFullYear()||d.getMonth()!=e.getMonth()||d.getDate()!=e.getDate()||d.getHours()!=e.getHours()||d.getMinutes()!=e.getMinutes()||d.getSeconds()!=e.getSeconds())){j=true}}var d=b.args.date.to;if(d!=null){e=this._oldDT.to;if(e){if(!(d.getFullYear()!=e.getFullYear()||d.getMonth()!=e.getMonth()||d.getDate()!=e.getDate()||d.getHours()!=e.getHours()||d.getMinutes()!=e.getMinutes()||d.getSeconds()!=e.getSeconds())){i=true}}}if(j&&i){return true}var j=b.args.date.from;if(j==null){j=""}else{j=j.toString()}var i=b.args.date.to;if(i==null){i=""}else{i=i.toString()}a.jqx.aria(this,"aria-valuetext",this.getText());if(j&&i){a.jqx.aria(this,"aria-label","Current focused range is "+j.toLocaleString()+"-"+i.toLocaleString())}}}b.args.oldValue=f;b.args.newValue=b.args.date;if(this._oldDT){b.args.oldValue=this._oldDT}}if(this.host.css("display")=="none"){return true}if(c!=2&&c!=3&&c!=4&&c!=5&&c!=6){o=this.host.trigger(b);if(b.stopPropagation){b.stopPropagation()}}var h=this;if(!k){if(c==2&&!this.disabled){setTimeout(function(){h.isEditing=true;if(this.selectionMode=="range"){h._selectGroup(-1)}else{h._selectGroup(-1)}},25)}}if(c==4){if(k||this.disabled){if(l==8||l==46){this.isEditing=false;if(this.allowKeyboardDelete){if(this.allowNullDate){this.setDate(null)}else{if(this.selectionMode!="range"){this.setDate(this.getMinDate())}else{this.setRange(this.getMinDate(),this.getMinDate())}}}}if(l==9){return true}if(!n.altKey){return false}}o=this._handleKeyDown(n,l)}else{if(c==5){if(l==9){return true}if(k||this.disabled){return false}}else{if(c==6){if(l==9){return true}if(k||this.disabled){return false}o=this._handleKeyPress(n,l)}}}return o},_doLeftKey:function(){if(this.activeEditor!=null){if(!this.isEditing){this.isEditing=true}var b=this.activeEditor;var d=false;var e=this.editors.indexOf(this.activeEditor);var c=e;if(this.enableAbsoluteSelection){if(e>=0&&this.activeEditor.positions>0){this.activeEditor.positions--;this._selectGroup(e);return}}while(e>0){this.activeEditor=this.editors[--e];this._selectGroup(e);if(this.items[e].type!="ReadOnly"){d=true;break}}if(!d){if(c>=0){this.activeEditor=this.editors[c]}}if(this.activeEditor!=null&&b!=this.activeEditor){if(this.items[e].type!="ReadOnly"){if(this.enableAbsoluteSelection){this.activeEditor.positions=this.activeEditor.maxEditPositions-1}else{this.activeEditor.positions=0}}}if(this.activeEditor!=b){this._validateValue();this._updateText();this._selectGroup(this.editors.indexOf(this.activeEditor));return true}else{return false}}},_doRightKey:function(){if(this.activeEditor!=null){if(!this.isEditing){this.isEditing=true}var b=this.activeEditor;var d=false;var e=this.editors.indexOf(this.activeEditor);var c=e;if(this.enableAbsoluteSelection){if(e>=0&&this.activeEditor.positions<this.activeEditor.maxEditPositions-1){this.activeEditor.positions++;this._selectGroup(e);return}}while(e<=this.editors.length-2){this.activeEditor=this.editors[++e];this._selectGroup(e);if(this.items[e].type!="ReadOnly"){if(this.items[e].type=="Day"&&this.items[e].format.length>2){break}d=true;break}}if(!d){if(c>=0){this.activeEditor=this.editors[c]}}if(this.activeEditor!=null&&this.activeEditor!=b){if(this.items[e].type!="ReadOnly"){this.activeEditor.positions=0}}if(this.activeEditor!=b){this._validateValue();this._updateText();this._selectGroup(this.editors.indexOf(this.activeEditor));return true}else{return false}}},_saveSelectedText:function(){var c=this._selection();var e="";var d=this.dateTimeInput.val();if(c.start>0||c.length>0){for(var b=c.start;b<c.end;b++){e+=d[b]}}if(window.clipboardData){window.clipboardData.setData("Text",e)}return e},_selectWithAdvancePattern:function(){var f=this.editors.indexOf(this.activeEditor);var g=false;if(this.items[f].type!="ReadOnly"){g=true}if(!g){return}var d=this.activeEditor;if(d!=null){var e=d.positions==d.maxEditPositions;if(e){this.editorText="";var c=d.value;var b=false;switch(this.items[f].type){case"FORMAT_AMPM":if(c<0){c=0}else{if(c>1){c=1}}break;case"Character":break;case"Day":if(c<1){c=1}else{if(c>31){c=31}}break;case"FORMAT_hh":if(c<1){c=1}else{if(c>12){c=12}}break;case"FORMAT_HH":if(c<0){c=0}else{if(c>23){c=23}}break;case"Millisecond":if(c<0){c=0}else{if(c>99){c=99}}break;case"Minute":if(c<0){c=0}else{if(c>59){c=59}}break;case"Month":if(c<1){c=1}else{if(c>12){c=12}}break;case"ReadOnly":break;case"Second":if(c<0){c=0}else{if(c>59){c=59}}break;case"Year":if(c<this.minDate.year){c=this.minDate.year}else{if(c>this.maxDate.year){c=this.maxDate.year}}break}if(d.value!=c){b=true}if(!b){this.isEditing=false;this._validateValue();this._updateText();this.isEditing=true;this._doRightKey();return true}return false}}},_handleKeyPress:function(j,n){if(this._fullEditInProgress){this._enteredValue=true;return}var m=this._selection();var b=this;var d=j.ctrlKey||j.metaKey;if((d&&n==97)||(d&&n==65)){return true}if(n==8){if(m.start>0){b._setSelectionStart(m.start)}return false}if(n==46){if(m.start<this.items.length){b._setSelectionStart(m.start)}return false}if(n===27){if(this._firstFocusDate){this.setDate(this._firstFocusDate);this._setSelectionStart(0);this._selectGroup(-1)}return false}if(m.start>=0){this.changeType="keyboard";var f=String.fromCharCode(n);var k=parseInt(f);if(f=="p"||f=="a"||f=="A"||f=="P"){if(this.activeEditor&&this.activeEditor.item.type=="FORMAT_AMPM"){if(this.activeEditor.value==0&&(f=="p"||f=="P")){this.spinUp()}else{if(this.activeEditor.value==1&&(f=="a"||f=="A")){this.spinDown()}}}}if(!isNaN(k)){if(this.container.css("display")=="block"){this.hideCalendar()}this.updateValue();this._updateText();var h=false;var i=this.editors.indexOf(this.activeEditor);var c=null;this.isEditing=true;if(i.type!="ReadOnly"){c=this.activeEditor}if(c!=null&&c.positions==0){this.editorText=""}if(this.activeEditor==null){this.activeEditor=this.editors[0]}if(this.activeEditor==null){return false}this.activeEditor.insert(f);if(c!=null&&this.editorText.length>=c.maxEditPositions){this.editorText=""}this.editorText+=f;var o=this._selectWithAdvancePattern();if(this.activeEditor.positions==this.activeEditor.maxEditPositions){var g=this._getLastEditableEditorIndex();if(this.editors.indexOf(this.activeEditor)==g&&o&&this.enableAbsoluteSelection){this.activeEditor.positions=this.activeEditor.maxEditPositions-1}else{this.activeEditor.positions=0}}h=true;this.updateValue();this._updateText();this._selectGroup(this.editors.indexOf(this.activeEditor));return false}}var l=this._isSpecialKey(n);return l},_getLastEditableEditorIndex:function(){var b=0;var d=this;for(var c=this.items.length-1;c>=0;c--){if(this.items[c].type!="ReadOnly"){return c}}return -1},_handleKeyDown:function(l,r){var k=this;this.timePopup=false;if(r==84){this.timePopup=true}if(l.keyCode==115){if(k.isOpened()){k.hideCalendar("keyboard","keyboard");return false}else{if(!k.isOpened()){k.showCalendar("keyboard","keyboard");return false}}}if(l.altKey){if(l.keyCode==38){if(k.isOpened()){if(k.showTimeButton&&!k.showCalendarButton){k.timePopup=true}k.hideCalendar("keyboard","keyboard");return false}}else{if(l.keyCode==40){if(!k.isOpened()){if(k.showTimeButton&&!k.showCalendarButton){k.timePopup=true}k.showCalendar("keyboard","keyboard");return false}}}}else{if(l.ctrlKey){this.timePopup=true;if(l.keyCode==38){if(k.isOpened()){k.hideCalendar("keyboard","keyboard");return false}}else{if(l.keyCode==40){if(!k.isOpened()){k.showCalendar("keyboard","keyboard");return false}}}}}if(k.isOpened()){if(l.keyCode==9){k.hideCalendar("selected","keyboard");return true}return}var p=k._selection();var b=l.ctrlKey||l.metaKey;if((b&&r==99)||(b&&r==67)){k._saveSelectedText(l);return true}if((b&&r==122)||(b&&r==90)){return false}if((b&&r==118)||(b&&r==86)||(l.shiftKey&&r==45)){var o=k.val();var m=this;var c=a('<textarea style="position: absolute; left: -1000px; top: -1000px;"/>');a("body").append(c);c.select();setTimeout(function(){var e=c.val();m.setDate(e);c.remove()},100);return true}if(k._fullEditInProgress||k.editMode==="full"&&k.value===null){if(r==13&&k._fullEditInProgress){k._endFullEdit();if(k.value!=null){k.isEditing=false;k._validateValue(true);k._updateText();k._raiseEvent(9,event);var h=k.editors.length-1,j=k.editors[h];while(j&&j.formatValueLength===undefined){h--;j=k.editors[h]}if(j&&j.formatValueLength!==undefined){k.activeEditor=j;k._selectGroup(h)}}}else{k._fullEditInProgress=true;delete k._enteredValue}return}if(r==8||r==46){if(!l.altKey&&!b&&r==46){k.isEditing=false;if(k.allowKeyboardDelete){k.changeType="keyboard";if(k.allowNullDate){k.setDate(null)}else{if(k.selectionMode!="range"){k.setDate(k.getMinDate())}else{k.setRange(k.getMinDate(),k.getMinDate())}}}}else{if(k.activeEditor!=null){var g=k.editors.indexOf(k.activeEditor);if(k.activeEditor.positions>=0){var f=k._format(Number(k.activeEditor.value),"d"+k.activeEditor.maxEditPositions,k.culture);var d=f;d=d.substring(0,k.activeEditor.positions)+"0"+d.substring(k.activeEditor.positions+1);if(parseInt(d)<k.activeEditor.minValue){d=k._format(Number(k.activeEditor.minValue),"d"+k.activeEditor.maxEditPositions,k.culture)}if(k.enableAbsoluteSelection){k.activeEditor.value=d}else{k.activeEditor.value=k.activeEditor.minValue}k._validateValue();k._updateText();k.changeType="keyboard";if(r==8){var q=this;if(k.enableAbsoluteSelection&&k.activeEditor.positions>0){setTimeout(function(){q.activeEditor.positions=q.activeEditor.positions-1;q._selectGroup(g)},10)}else{setTimeout(function(){q._doLeftKey()},10)}}else{k._selectGroup(g)}}else{k._doLeftKey()}}}return false}if(r==38){this.spinUp();k.changeType="keyboard";return false}else{if(r==40){this.spinDown();k.changeType="keyboard";return false}}if(r==9){if(k.value==null){return true}if(l.shiftKey){var s=this._doLeftKey()}else{var s=this._doRightKey()}if(!s){return true}else{return false}}if(r==37){if(this._editor){var s=this._doLeftKey();if(!s){this.isEditing=false;this._validateValue()}return !s}else{var s=this._doLeftKey();return false}}else{if(r==39||r==191){if(this._editor){var s=this._doRightKey();if(!s){this.isEditing=false;this._validateValue()}return !s}else{var s=this._doRightKey();return false}}}var n=this._isSpecialKey(r);if(this.value==null&&(r>=48&&r<=57||r>=96&&r<=105)){k.changeType="keyboard";if(new Date()>=this.getMinDate()&&new Date()<=this.getMaxDate()){this.setDate(new Date())}else{this.setDate(this.getMaxDate())}}if(!a.jqx.browser.mozilla){return true}if(a.jqx.browser.mozilla&&a.jqx.browser.version>24){return true}return n},_isSpecialKey:function(b){if(b!=8&&b!=9&&b!=13&&b!=35&&b!=36&&b!=37&&b!=39&&b!=27&&b!=46){return false}return true},_selection:function(){if("selectionStart" in this.dateTimeInput[0]){var f=this.dateTimeInput[0];var g=f.selectionEnd-f.selectionStart;return{start:f.selectionStart,end:f.selectionEnd,length:g,text:f.value}}else{var c=document.selection.createRange();if(c==null){return{start:0,end:f.value.length,length:0}}var b=this.dateTimeInput[0].createTextRange();var d=b.duplicate();b.moveToBookmark(c.getBookmark());d.setEndPoint("EndToStart",b);var g=c.text.length;return{start:d.text.length,end:d.text.length+c.text.length,length:g,text:c.text}}},_selectGroup:function(k,m){if(this.host.css("display")=="none"){return}if(this.readonly){return}if(!m){var m=this._selection()}var f="";var b="";var c=null;for(var d=0;d<this.items.length;d++){b=this.items[d].dateParser(this.value,this);if(this.isEditing&&this.items[d].type!="ReadOnly"){var j=this.items[d].type=="Day"&&this.items[d].format.length>2;if(!j&&this.items[d].type!="FORMAT_AMPM"){if(this.yearCutoff!==null&&this.items[d].type==="Year"&&this.items[d].format==="yy"){b=this.editors[d].value.toString().substring(2)}else{b=this.items[d].dateParserInEditMode(new Number(this.editors[d].value),"d"+this.editors[d].maxEditPositions,this);while(b.length<this.editors[d].maxEditPositions){b="0"+b}}}}f+=b;if(this.items[d].type=="ReadOnly"){continue}if(this.items[d].type=="Day"&&this.items[d].format.length>2){continue}if(k!=undefined&&k!=-1){if(d>=k){var l=f.length-b.length;var e=b.length;if(this.enableAbsoluteSelection){if(!isNaN(parseInt(b))&&this.isEditing&&k!=-1){e=1;l+=this.editors[d].positions}}if(l==this.dateTimeInput.val().length){l--}this._setSelection(l,l+e);c=this.editors[d];this.activeEditor=c;break}}else{if(f.length>=m.start){c=this.editors[d];this.activeEditor=c;var l=f.length-b.length;var e=1;if(this.enableAbsoluteSelection){if(!isNaN(parseInt(b))&&this.isEditing&&k!=-1){e=1;l+=this.editors[d].positions}}else{e=b.length}this._setSelection(l,l+e);break}}}if(d<this.items.length&&k==-1){if(this.items[d].type!="ReadOnly"){this.activeEditor.positions=0}}var h=this._selection();if(h.length==0){if(h.start>0){var g=this._getLastEditableEditorIndex();if(g>=0){}}}},_getLastEditableEditorIndex:function(){var c=-1;for(var b=0;b<this.editors.length;b++){if(this.items[b].type=="ReadOnly"){continue}if(this.items[b].type=="Day"&&this.items[b].format.length>2){continue}c=b}return c},_setSelection:function(e,b){try{if("selectionStart" in this.dateTimeInput[0]){this.dateTimeInput[0].setSelectionRange(e,b)}else{var c=this.dateTimeInput[0].createTextRange();c.collapse(true);c.moveEnd("character",b);c.moveStart("character",e);c.select()}}catch(d){}},_setSelectionStart:function(b){this._setSelection(b,b)},destroy:function(){a.jqx.utilities.resize(this.host,null,true);this.host.removeClass("jqx-rc-all");if(this.timePopupElement){this.timePopupElement.remove()}this._calendar.destroy();this.container.remove();this._removeHandlers();this.dateTimeInput.remove();this.host.remove()},refreshValue:function(){this._refreshValue()},refresh:function(b){if(b!=true){this._setSize();this._arrange()}},resize:function(c,b){this.width=c;this.height=b;this.refresh()},_setOption:function(b,c,d){if(b==="value"){if(this.selectionMode!="range"){this._oldDT=null}else{this._oldDT=null}this.value=c;this._refreshValue();this._raiseEvent(9,{type:null})}if(b=="maxDate"){this._calendar.maxDate=c;this._raiseEvent(9,{type:null})}if(b=="minDate"){this._calendar.minDate=c;this._raiseEvent(9,{type:null})}if(b=="showCalendarButton"){if(c){this.calendarButton.css("display","block")}else{this.calendarButton.css("display","none")}}if(b=="disabled"){this.dateTimeInput.attr("disabled",c)}if(b=="readonly"){this.readonly=c;this.dateTimeInput.css("readonly",c)}if(b=="textAlign"){this.dateTimeInput.css("text-align",c);this.textAlign=c}if(b=="width"){this.width=c;this.width=parseInt(this.width);this._arrange()}else{if(b=="height"){this.height=c;this.height=parseInt(this.height);this._arrange()}}},_updateHint:function(){var b=this;if(!b.hint){return}if(b.isMaterialized()){setTimeout(function(){if(b.dateTimeInput[0].value.length===0){b.element.removeAttribute("hint");b.label[0].innerHTML=b.placeHolder}else{b.label[0].innerHTML="";if(b.hint){b.element.setAttribute("hint",true)}}})}},_refreshValue:function(){this._updateEditorsValue();this.updateValue();this._validateValue();this._updateText();this._updateHint()},_getYearBasedOnCutoff:function(c){var d=this.yearCutoff.toString(),b=parseFloat(d.substring(2)),e=parseFloat(d.substring(0,2));if(parseFloat(c)<b){e++}return parseFloat(e+""+c)},_endFullEdit:function(){var g=this;if(!g._fullEditInProgress){return}var f=g.dateTimeInput[0].value;delete g._fullEditInProgress;delete g._enteredValue;if(f===""){g.value=null}else{var d=new Date(f);if(this._mask&&this.formatString){var b=Object.keys(this._mask);if(b.length===2){var k=[b[0],b[1]];var c=f.substring(0,k[0]);var j=f.substring(parseInt(k[0])+1,k[1]);var i=f.substring(parseInt(k[1])+1);if(this.formatString.substring(0,k[0])==="dd"){c=parseInt(c);j=parseInt(j);i=parseInt(i);d=new Date(i,j-1,c)}}}if(!isNaN(d.getTime())){g.items=[];if(g.yearCutoff){var e=d.getFullYear().toString();if(f.indexOf(e)===-1&&f.indexOf(e.slice(2))){var h=g._getYearBasedOnCutoff(e.slice(2));d.setFullYear(h)}}g.value=a.jqx._jqxDateTimeInput.getDateTime(d)}else{if(g.value===null){g._updateText()}}}},_getMask:function(){var g=this,k=g.formatString,b={d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss",ISO:"yyyy-MM-dd hh:mm:ss",ISO2:"yyyy-MM-dd HH:mm:ss",d1:"dd.MM.yyyy",d2:"dd-MM-yyyy",zone1:"yyyy-MM-ddTHH:mm:ss-HH:mm",zone2:"yyyy-MM-ddTHH:mm:ss+HH:mm",custom:"yyyy-MM-ddTHH:mm:ss.fff",custom2:"yyyy-MM-dd HH:mm:ss.fff"},p={};if(b[k]){k=b[k]}var j=k.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),i=["^"],h=0,d=0,o=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g,e;while((e=o.exec(j))!==null){var n=j.slice(h,e.index);if(n!==""){p[h]=n}h=o.lastIndex;d+=g._appendPreOrPostMatch(n,i);if(d%2){i.push(e[0]);continue}var c=e[0],f=c.length,l;switch(c){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":l="(\\D+)";break;case"tt":case"t":l="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":l="(\\d{"+f+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":l="(\\d\\d?)";break;case"zzz":l="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":l="([+-]?\\d\\d?)";break;case"/":l="(\\/)";p[h-1]="/";break;default:throw"Invalid date format pattern '"+c+"'.";break}if(l){i.push(l)}}g._appendPreOrPostMatch(j.slice(h),i);i.push("$");g._mask=p},_appendPreOrPostMatch:function(f,b){var e=0,h=false;for(var g=0,d=f.length;g<d;g++){var j=f.charAt(g);switch(j){case"'":if(h){b.push("'")}else{e++}h=false;break;case"\\":if(h){b.push("\\")}h=!h;break;default:b.push(j);h=false;break}}return e}})})(jqxBaseFramework);(function(a){a.jqx._jqxDateTimeInput.DateTimeFormatItem={};a.extend(a.jqx._jqxDateTimeInput.DateTimeFormatItem,{_create:function(d,c,b){this.format=d;this.type=c;this.culture=b;return this},_itemValue:function(){switch(this.format.length){case 1:return 9;case 2:return 99;case 3:default:return 999}},_maximumValue:function(){switch(this.format.length){case 1:return 9;case 2:return 99;case 3:default:return 999}},dateParser:function(b,c){if(b==null){return""}var d=c._format(b.dateTime,this.format.length==1?"%"+this.format:this.format,this.culture);return d},dateParserInEditMode:function(e,d,b){if(e==null){return""}var c=b._format(e.toString(),d.length==1?"%"+d:d,this.culture);return c},getDateTimeEditorByItemType:function(m,e){switch(this.type){case"FORMAT_AMPM":var f=a.jqx._jqxDateTimeInput.AmPmEditor._createAmPmEditor(this.format,m.hour/12,e.localization.calendar.AM[0],e.localization.calendar.PM[0],this,e);var d=a.extend({},f);return d;case"Character":return null;case"Day":var j=m.year;var r=m.month;var q;if(this.format.length==3){q=e.localization.calendar.days.namesAbbr}else{if(this.format.length>3){q=e.localization.calendar.days.names}else{q=null}}var s=m.day;if(q!=null){s=m.dayOfWeek+1}var g=a.jqx._jqxDateTimeInput.DateEditor._createDayEditor(m,m.day,1,m._daysInMonth(j,r),this.format.length==1?1:2,2,q,this,e);var d=a.extend({},g);return d;case"FORMAT_hh":var c=m.hour%12;if(c==0){c=12}var p=a.jqx._jqxDateTimeInput.NumberEditor._createNumberEditor(c,1,12,this.format.length==1?1:2,2,this,e);var d=a.extend({},p);return d;case"FORMAT_HH":var h=a.jqx._jqxDateTimeInput.NumberEditor._createNumberEditor(m.hour,0,23,this.format.length==1?1:2,2,this,e);var d=a.extend({},h);return d;case"Millisecond":var k=a.jqx._jqxDateTimeInput.NumberEditor._createNumberEditor(m.millisecond/this._itemValue(),0,this._maximumValue(),this.format.length,this.format.length,this,e);var d=a.extend({},k);return d;case"Minute":var n=a.jqx._jqxDateTimeInput.NumberEditor._createNumberEditor(m.minute,0,59,this.format.length==1?1:2,2,this,e);var d=a.extend({},n);return d;case"Month":var i;if(this.format.length==3){i=e.localization.calendar.months.namesAbbr}else{if(this.format.length>3){i=e.localization.calendar.months.names}else{i=null}}var l=a.jqx._jqxDateTimeInput.DateEditor._createMonthEditor(m.month,this.format.length==2?2:1,i,this,e);var d=a.extend({},l);return d;case"ReadOnly":return a.jqx._jqxDateTimeInput.DisabledEditor._create(this.format.length,m.day,this,e);case"Second":var b=a.jqx._jqxDateTimeInput.NumberEditor._createNumberEditor(m.second,0,59,this.format.length==1?1:2,2,this,e);var d=a.extend({},b);return d;case"Year":var o=a.jqx._jqxDateTimeInput.DateEditor._createYearEditor(m.year,(e.yearCutoff!==null&&this.format==="yy")?2:4,this,e);var d=a.extend({},o);return d}return null}})})(jqxBaseFramework);(function(a){a.jqx._jqxDateTimeInput.DateEditor=a.extend(a.jqx._jqxDateTimeInput.DateEditor,{formatValueLength:0,handleYears:false,handleDays:false,handleMonths:false,positions:0,value:0,minEditPositions:0,maxEditPositions:0,minValue:0,maxValue:0,item:null,dateTimeFormatInfo:null,days:null,dateTimeMonths:null,lastDayInput:null,minPositions:function(){if(this.handleYears){if(this.formatValueLength==4){if(this.positions<=1){return 1}else{if(this.positions>=4){return 4}}return this.positions}else{return this.minEditPositions}}return this.minEditPositions},initializeFields:function(e,f,b,d,c){this.minValue=e;this.maxValue=f;this.minEditPositions=b;this.maxEditPositions=d;this.updateActiveEditor(e);this.item=c},_createYearEditor:function(e,d,c,b){a.jqx._jqxDateTimeInput.DateEditor=a.extend(true,{},this);this.initializeFields(d<=4?0:0,d<4?99:9999,(d==2)?2:1,d>3?4:2,c);this.initializeYearEditor(e,d,c.culture);this.handleYears=true;this.that=b;return this},initializeYearEditor:function(d,c,e){this.formatValueLength=c;this.dateTimeFormatInfo=e;var b=d;b=Math.min(b,9999);b=Math.max(b,1);b=this.formatValueLength<4?b%100:b;this.updateActiveEditor(b);this.value=b},updateActiveEditor:function(b){this.value=b;this.positions=0},_createDayEditor:function(b,i,h,e,c,f,g,j,d){a.jqx._jqxDateTimeInput.DateEditor=a.extend(true,{},this);this.initializeFields(h,e,1,f,j);this.currentValue=b;this.value=i;this.days=g;this.handleDays=true;this.that=d;return this},getDayOfWeek:function(b){if(typeof this.currentValue==a.jqx._jqxDateTimeInput.DateTime){this.currentValue.dayOfWeek()}return b},defaultTextValue:function(){var d=this.value;var e=this.minEditPositions;var b=e;var c=this.that._format(this.value,"d"+b,"");return c},textValue:function(){if(this.handleDays){if(this.days==null){return this.defaultTextValue()}else{var b=(this.value%7)+1;b=this.getDayOfWeek(b);return this.days[b]}}else{if(this.handleMonths){if(this.dateTimeMonths==null||this.value<1||this.value>12){return this.defaultTextValue()}else{return this.dateTimeMonths[this.value-1]}}}return this.defaultTextValue()},defaultInsertString:function(c){if(c==null){return this.deleteValue()}if(c.length==0){return this.deleteValue()}var g=c.substring(0,1);if(isNaN(g)){return}var e=true;var d;var b=1;var f=this.that._format(Number(this.value),"d"+this.maxEditPositions,this.culture);d=f;if(this.positions>=this.maxEditPositions){this.positions=0}d=d.substring(0,this.positions)+g+d.substring(this.positions+1);d=this.setValueByString(d,b);return true},setValueByString:function(d,b){d=this.fixValueString(d);var c=new Number(d);this.value=c;this.positions+=b;return d},fixValueString:function(b){if(b.length>this.maxEditPositions){b=b.substring(b.length-this.maxEditPositions)}return b},initializeValueString:function(c){var b;b="";if(this.hasDigits()){b=c}return b},deleteValue:function(){if(this.value==this.minValue&&this.hasDigits()==false){return false}this.updateActiveEditor(this.minValue);return true},hasDigits:function(){return this.positions>0},insert:function(b){if(this.handleDays){if(this.days!=null){var d=false;d=this.insertLongString(b,d);if(d){return d}d=this.insertShortString(b,d);if(d){return d}}if(this.value==1&&this.lastDayInput!=null&&this.lastDayInput.toString().length>0&&this.lastDayInput.toString()=="0"){this.value=0}this.lastDayInput=b;return this.defaultInsertString(b)}else{if(this.handleMonths){if(this.dateTimeMonths!=null){var d=false;d=this.insertLongString2(b,d);if(d){return d}d=this.insertShortString2(b,d);if(d){return d}}}else{if(this.that.yearCutoff!==null&&this.handleYears&&this.formatValueLength===2){if(b==null||b.length==0){return this.deleteValue()}var e=b.substring(0,1);if(isNaN(e)){return}if(this.positions>=this.maxEditPositions){this.positions=0}var c=this.value.toString().substring(2);c=c.substring(0,this.positions)+e+c.substring(this.positions+1);this.value=this.that._getYearBasedOnCutoff(c);this.positions+=1;return true}}}return this.defaultInsertString(b)},insertShortString:function(d,f){if(d.length==1){for(var e=0;e<6;++e){var c=(this.value+e)%7+1;var b=this.days[c-1];if(b.substring(0,1)==d){this.updateActiveEditor(c);f=true;return f}}}return f},insertLongString:function(c,e){if(c.length>0){for(var d=0;d<6;++d){var b=(this.value+d)%7+1;if(this.days[b-1]==c){this.updateActiveEditor(b);e=true;return e}}}return e},_createMonthEditor:function(d,c,b,f,e){a.jqx._jqxDateTimeInput.DateEditor=a.extend(true,{},this);this.initializeFields(1,12,c,2,f);this.dateTimeMonths=b;this.value=d;if(this.dateTimeMonths!=null&&this.dateTimeMonths[12]!=null&&this.dateTimeMonths[12].length>0){this.dateTimeMonths=null}this.handleMonths=true;this.that=e;return this},insertLongString2:function(b,d){if(b.length>0){for(var c=0;c<11;++c){var e=(this.value+c)%12+1;if(this.dateTimeMonths[e-1]==b){this.updateActiveEditor(e);d=true;return d}}}return d},insertShortString2:function(c,e){if(c.length==1){for(var d=0;d<11;++d){var f=(this.value+d)%12+1;var b=this.dateTimeMonths[f-1];if(b.substring(0,1)==c){this.updateActiveEditor(f);e=true;return e}}}return e},correctMaximumValue:function(c){var b=this.maxValue;if(this.that.yearCutoff!==null&&this.item.type==="Year"&&this.item.format==="yy"){b=9999}if(c>b){c=this.minValue}return c},correctMinimumValue:function(b){if(b<this.minValue){b=this.maxValue}return b},increaseValue:function(e){var c=this.that._format(Number(this.value),"d"+this.maxEditPositions,this.culture);var f=c.toString()[this.positions];f=parseInt(f)+1;if(f>9){f=0}if(!e){var b=this.value+1;b=this.correctMaximumValue(b);this.updateActiveEditor(b);return true}var d=c.substring(0,this.positions)+f+c.substring(this.positions+1);if(d!=this.value||this.hasDigits()){this.updateActiveEditor(d);return true}else{return false}},decreaseValue:function(e){var c=this.that._format(Number(this.value),"d"+this.maxEditPositions,this.culture);var f=c.toString()[this.positions];f=parseInt(f)-1;if(f<0){f=9}if(!e){var b=this.value-1;b=this.correctMinimumValue(b);this.updateActiveEditor(b);return true}var d=c.substring(0,this.positions)+f+c.substring(this.positions+1);if(d!=this.value||this.hasDigits()){this.updateActiveEditor(d);return true}else{return false}},getDateTimeItem:function(){return this.item}})})(jqxBaseFramework);(function(a){a.jqx._jqxDateTimeInput.NumberEditor={};a.extend(a.jqx._jqxDateTimeInput.NumberEditor,{formatValueLength:0,positions:0,value:0,minEditPositions:0,maxEditPositions:0,minValue:0,maxValue:0,item:null,minPositions:function(){if(this.handleYears){if(this.formatValueLength==4){if(this.positions<=1){return 1}else{if(this.positions>=4){return 4}}return this.positions}else{return this.minEditPositions}}return this.minEditPositions},_createNumberEditor:function(g,f,h,b,e,d,c){a.jqx._jqxDateTimeInput.NumberEditor=a.extend(true,{},this);this.initializeFields(f,h,b,e,d);this.that=c;return this},initializeFields:function(e,f,b,d,c){this.minValue=e;this.maxValue=f;this.minEditPositions=b;this.maxEditPositions=d;this.updateActiveEditor(e);this.item=c},updateActiveEditor:function(b){this.value=b;this.positions=0},getDayOfWeek:function(b){if(typeof this.currentValue==a.jqx._jqxDateTimeInput.DateTime){this.currentValue.dayOfWeek()}return b},textValue:function(){var d=this.value;var e=this.minEditPositions;var b=e;var c=this.that._format(this.value,"d"+b,"");return c},insert:function(c){if(c==null){return this.deleteValue()}if(c.length==0){return this.deleteValue()}var g=c.substring(0,1);if(isNaN(g)){return}var e=true;var d;var b=1;var f=this.that._format(Number(this.value),"d"+this.maxEditPositions,this.culture);d=f;if(this.positions>=this.maxEditPositions){this.positions=0}d=d.substring(0,this.positions)+g+d.substring(this.positions+1);d=this.setValueByString(d,b);return true},setValueByString:function(d,b){d=this.fixValueString(d);var c=new Number(d);this.value=c;this.positions+=b;return d},fixValueString:function(b){if(b.length>this.maxEditPositions){b=b.substring(b.length-this.maxEditPositions)}return b},initializeValueString:function(c){var b;b="";if(this.hasDigits()){b=c}return b},deleteValue:function(){if(this.value==this.minValue&&this.hasDigits()==false){return false}this.updateActiveEditor(this.minValue);return true},hasDigits:function(){return this.positions>0},correctMaximumValue:function(b){if(b>this.maxValue){b=this.minValue}return b},correctMinimumValue:function(b){if(b<this.minValue){b=this.maxValue}return b},increaseValue:function(e){var c=this.that._format(Number(this.value),"d"+this.maxEditPositions,this.culture);var f=c.toString()[this.positions];f=parseInt(f)+1;if(f>9){f=0}if(!e){var b=this.value+1;b=this.correctMaximumValue(b);this.updateActiveEditor(b);return true}var d=c.substring(0,this.positions)+f+c.substring(this.positions+1);if(d!=this.value||this.hasDigits()){this.updateActiveEditor(d);return true}else{return false}},decreaseValue:function(e){var c=this.that._format(Number(this.value),"d"+this.maxEditPositions,this.culture);var f=c.toString()[this.positions];f=parseInt(f)-1;if(f<0){f=9}if(!e){var b=this.value-1;b=this.correctMinimumValue(b);this.updateActiveEditor(b);return true}var d=c.substring(0,this.positions)+f+c.substring(this.positions+1);if(d!=this.value||this.hasDigits()){this.updateActiveEditor(d);return true}else{return false}},getDateTimeItem:function(){return this.item}})})(jqxBaseFramework);(function(a){a.jqx._jqxDateTimeInput.DisabledEditor={};a.extend(a.jqx._jqxDateTimeInput.DisabledEditor,{_create:function(g,c,f,b,e,d){this.format=g;this.value=-1;this.item=e;this.that=d;return this},textValue:function(){return""},insert:function(b){return false},deleteValue:function(){return false},increaseValue:function(){return false},decreaseValue:function(){return false},getDateTimeItem:function(){return this.item}})})(jqxBaseFramework);(function(a){a.jqx._jqxDateTimeInput.AmPmEditor={};a.extend(a.jqx._jqxDateTimeInput.AmPmEditor,{_createAmPmEditor:function(g,c,f,b,e,d){this.format=g;this.value=c;this.minValue=0;this.amString=f;this.pmString=b;this.item=e;this.that=d;if(f==b){this.amString="<"+f;this.pmString=">"+b}return this},textValue:function(){var b=this.amString;if(this.value!=0){b=this.pmString}if(this.format.length==1&&b.length>1){b=b.substring(0,1)}return b},insert:function(f){var d=f.toString();if(d.Length==0){return this.deleteValue()}var c=false;if(this.amString.Length>0&&this.pmString.Length>0){var g=this.amString[0];var b=d[0];var e=this.pmString[0];if(g.toString()==b.toString()){this.value=0;c=true}else{if(e.toString()==b.toString()){this.value=1;c=true}}}else{if(this.pmString.Length>0){this.value=1;c=true}else{if(this.amString.Length>0){this.value=0;c=true}}}return c},deleteValue:function(){var b=true;if(this.amString.Length==0&&this.pmString.Length!=0){if(this.value==0){return false}this.value=0}else{if(this.value==1){return false}this.value=1}return b},increaseValue:function(){this.value=1-this.value;return true},decreaseValue:function(){this.increaseValue();return true},getDateTimeItem:function(){return this.item}})})(jqxBaseFramework);(function(a){a.jqx._jqxDateTimeInput.getDateTime=function(c){var b={dateTime:new Date(c),daysPer4Years:1461,daysPerYear:365,daysToMonth365:{0:0,1:31,2:59,3:90,4:120,5:151,6:181,7:212,8:243,9:273,10:304,11:334,12:365},daysToMonth366:{0:0,1:31,2:60,3:91,4:121,5:152,6:182,7:213,8:244,9:274,10:305,11:335,12:366},maxValue:3155378976000000000,millisPerDay:86400000,millisPerHour:3600000,millisPerMinute:60000,millisPerSecond:1000,minTicks:0,minValue:0,ticksPerDay:864000000000,ticksPerHour:36000000000,ticksPerMillisecond:10000,ticksPerMinute:600000000,ticksPerSecond:10000000,hour:c.getHours(),minute:c.getMinutes(),day:c.getDate(),second:c.getSeconds(),month:1+c.getMonth(),year:c.getFullYear(),millisecond:c.getMilliseconds(),dayOfWeek:c.getDay(),isWeekend:function(d){if(d==undefined||d==null){d=this.dateTime}var e=d.getDay()%6==0;return e},dayOfYear:function(e){if(e==undefined||e==null){e=this.dateTime}var d=new Date(e.getFullYear(),0,1);return Math.ceil((e-d)/86400000)},_setDay:function(d){if(d==undefined||d==null){d=0}this.dateTime.setDate(d);this.day=this.dateTime.getDate()},_setMonth:function(d){if(d==undefined||d==null){d=0}this.dateTime.setMonth(d-1);this.month=1+this.dateTime.getMonth()},_setYear:function(d){if(d==undefined||d==null){d=0}this.dateTime.setFullYear(d);this.year=this.dateTime.getFullYear()},_setHours:function(d){if(d==undefined||d==null){d=0}this.dateTime.setHours(d);this.hour=this.dateTime.getHours()},_setMinutes:function(d){if(d==undefined||d==null){d=0}this.dateTime.setMinutes(d);this.minute=this.dateTime.getMinutes()},_setSeconds:function(d){if(d==undefined||d==null){d=0}this.dateTime.setSeconds(d);this.second=this.dateTime.getSeconds()},_setMilliseconds:function(d){if(d==undefined||d==null){d=0}this.dateTime.setMilliseconds(d);this.millisecond=this.dateTime.getMilliseconds()},_addDays:function(f){var d=this.dateTime;var e=d.getDate();d.setDate(d.getDate()+f);if(e===d.getDate()){d.setHours(d.getHours()+d.getTimezoneOffset()/60)}return d},_addWeeks:function(e){var d=this.dateTime;d.setDate(d.getDate()+7*e);return d},_addMonths:function(e){var d=this.dateTime;d.setMonth(d.getMonth()+e);return d},_addYears:function(e){var d=this.dateTime;d.setFullYear(d.getFullYear()+e);return d},_addHours:function(e){var d=this.dateTime;d.setHours(d.getHours()+e);return d},_addMinutes:function(e){var d=this.dateTime;d.setMinutes(d.getMinutes()+e);return d},_addSeconds:function(e){var d=this.dateTime;d.setSeconds(d.getSeconds()+e);return d},_addMilliseconds:function(e){var d=this.dateTime;d.setMilliseconds(d.getMilliseconds()+e);return d},_isLeapYear:function(d){if((d<1)||(d>9999)){throw"invalid year"}if((d%4)!=0){return false}if((d%100)==0){return((d%400)==0)}return true},_dateToTicks:function(f,h,e){if(((f>=1)&&(f<=9999))&&((h>=1)&&(h<=12))){var d=this._isLeapYear(f)?this.daysToMonth366:this.daysToMonth365;if((e>=1)&&(e<=(d[h]-d[h-1]))){var f=f-1;var g=((((((f*365)+(f/4))-(f/100))+(f/400))+d[h-1])+e)-1;return(g*864000000000)}}},_daysInMonth:function(e,f){if((f<1)||(f>12)){throw ("Invalid month.")}var d=this._isLeapYear(e)?this.daysToMonth366:this.daysToMonth365;return(d[f]-d[f-1])},_timeToTicks:function(d,g,e){var f=((d*3600)+(g*60))+e;return(f*10000000)},_equalDate:function(d){if(this.year==d.getFullYear()&&this.day==d.getDate()&&this.month==d.getMonth()+1){return true}return false}};return b}})(jqxBaseFramework)})();
/***/ }),
/***/ 9311:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxDropDownList","",{});a.extend(a.jqx._jqxDropDownList.prototype,{defineInstance:function(){var b={disabled:false,width:null,height:null,items:new Array(),selectedIndex:-1,source:null,scrollBarSize:15,arrowSize:17,enableHover:true,enableSelection:true,autoItemsHeight:false,visualItems:new Array(),groups:new Array(),equalItemsWidth:true,itemHeight:-1,visibleItems:new Array(),emptyGroupText:"Group",checkboxes:false,openDelay:250,closeDelay:300,dropDownContainer:"default",animationType:"default",autoOpen:false,dropDownWidth:"auto",dropDownHeight:"200px",autoDropDownHeight:false,keyboardSelection:true,enableBrowserBoundsDetection:false,dropDownHorizontalAlignment:"left",dropDownVerticalAlignment:"bottom",displayMember:"",valueMember:"",groupMember:"",searchMember:"",searchMode:"startswithignorecase",incrementalSearch:true,incrementalSearchDelay:700,renderer:null,placeHolder:"",promptText:"Please Choose:",emptyString:"",rtl:false,selectionRenderer:null,listBox:null,popupZIndex:3001,renderMode:"default",touchMode:"auto",_checkForHiddenParent:true,autoBind:true,ready:null,focusable:true,filterable:false,filterHeight:27,filterPlaceHolder:"Looking for",filterDelay:100,hint:true,template:"default",aria:{"aria-disabled":{name:"disabled",type:"boolean"}},events:["open","close","select","unselect","change","checkChange","bindingComplete","itemAdd","itemRemove","itemUpdate"]};if(this===a.jqx._jqxDropDownList.prototype){return b}a.extend(true,this,b);return b},createInstance:function(b){var e=this;if(e.isMaterialized()){var g=window.getComputedStyle(this.element);var f=g.getPropertyValue("--jqx-dropdown-animation");var d=g.getPropertyValue("--jqx-list-item-height");var c=g.getPropertyValue("--jqx-action-button-size");if(c){this.arrowSize=parseInt(c)}else{this.arrowSize=25}if(f&&this.animationType=="default"){this.animationType=f.trim()}if(d&&this.itemHeight===-1){this.itemHeight=parseInt(d)}}this.render()},render:function(){var o=this;if(!o.width){o.width=200}if(!o.height){o.height=25}o.host.addClass(o.toThemeProperty("jqx-dropdownlist"));var b=o.element.nodeName.toLowerCase();if(b=="select"||b=="ul"||b=="ol"){o.field=o.element;if(o.field.className){o._className=o.field.className}var h={title:o.field.title};if(o.field.id.length){h.id=o.field.id.replace(/[^\w]/g,"_")+"_jqxDropDownList"}else{h.id=a.jqx.utilities.createId()+"_jqxDropDownList"}var f=a("<div></div>",h);if(!o.width){o.width=a(o.field).width()}if(!o.height){o.height=a(o.field).outerHeight()}f[0].style.cssText=o.field.style.cssText;a(o.field).hide().after(f);var u=o.host.data();o.host=f;o.host.data(u);o.element=f[0];o.element.id=o.field.id;o.field.id=h.id;if(o._className){o.host.addClass(o._className);a(o.field).removeClass(o._className)}if(o.field.tabIndex){var d=o.field.tabIndex;o.field.tabIndex=-1;o.element.tabIndex=d}var k=a.jqx.parseSourceTag(o.field);o.source=k.items;if(o.selectedIndex==-1){o.selectedIndex=k.index}}else{if(o.host.find("li").length>0||o.host.find("option").length>0){var k=a.jqx.parseSourceTag(o.element);o.source=k.items}}o.element.innerHTML="";o.isanimating=false;o.id=o.element.id||a.jqx.utilities.createId();o.host.attr("role","combobox");o.host.attr("aria-label","DropDownList");o.host.attr("aria-expanded","false");a.jqx.aria(o,"aria-autocomplete","both");a.jqx.aria(o,"aria-readonly",false);var m="<div class='jqx-ddl-structure-csp'><div id='dropdownlistWrapper' class='jqx-ddl-wrapper-csp'><div id='dropdownlistContent' unselectable='on' class='jqx-ddl-content-csp'></div><div id='dropdownlistArrow' unselectable='on' class='jqx-ddl-arrow-csp'><div unselectable='on' class='jqx-ddl-arrow-inner-csp'></div></div></div></div>";if(a.jqx._jqxListBox==null||a.jqx._jqxListBox==undefined){throw new Error("jqxDropDownList: Missing reference to jqxlistbox.js.")}if(o.host.attr("tabindex")){}else{o.host.attr("tabindex",0)}var t=o;o.touch=a.jqx.mobile.isTouchDevice();o.comboStructure=m;o.element.innerHTML=m;o.dropdownlistWrapper=a(o.element.firstChild.firstChild);o.dropdownlistArrow=a(o.dropdownlistWrapper[0].firstChild.nextSibling);o.arrow=a(o.dropdownlistArrow[0].firstChild);o.dropdownlistContent=a(o.dropdownlistWrapper[0].firstChild);o.dropdownlistContent.addClass(o.toThemeProperty("jqx-dropdownlist-content jqx-disableselect"));if(o.rtl){o.dropdownlistContent.addClass(o.toThemeProperty("jqx-rtl jqx-dropdownlist-content-rtl"))}o.addHandler(o.dropdownlistWrapper,"selectstart",function(){return false});o.dropdownlistWrapper[0].id="dropdownlistWrapper"+o.element.id;o.dropdownlistArrow[0].id="dropdownlistArrow"+o.element.id;o.dropdownlistContent[0].id="dropdownlistContent"+o.element.id;o._addInput();var j=a("<label></label");if(this.hint){j[0].innerHTML=this.placeHolder}j.addClass(o.toThemeProperty("jqx-input-label"));o.dropdownlistWrapper.append(j);o.label=j;var r=a("<span></span>");o.dropdownlistWrapper.append(r);r.addClass(o.toThemeProperty("jqx-input-bar"));o.bar=r;o.bar.css("top",this.host.height());var i=this;if(i.template){i.bar.addClass(i.toThemeProperty("jqx-"+i.template));i.label.addClass(i.toThemeProperty("jqx-"+i.template))}if(o.promptText!="Please Choose:"){o.placeHolder=o.promptText}var c=o.toThemeProperty("jqx-widget")+" "+o.toThemeProperty("jqx-dropdownlist-state-normal")+" "+o.toThemeProperty("jqx-rc-all")+" "+o.toThemeProperty("jqx-fill-state-normal");o.element.className+=" "+c;o._firstDiv=a(o.element.firstChild);try{var q="listBox"+o.id;var g=a(a.find("#"+q));if(g.length>0){g.remove()}a.jqx.aria(o,"aria-owns",q);a.jqx.aria(o,"aria-haspopup",true);var l=a("<div id='listBox"+o.id+"' class='jqx-listbox-container-csp'><div id='innerListBox"+o.id+"'></div></div>");l.hide();l.addClass(o.toThemeProperty("jqx-listbox-container"));if(o.dropDownContainer=="element"){l.appendTo(o.host)}else{l.appendTo(document.body)}o.container=l;o.listBoxContainer=a(a.find("#innerListBox"+o.id));var p=o.width;if(o.dropDownWidth!="auto"){p=o.dropDownWidth}if(p==null){p=o.host.width();if(p==0){p=o.dropDownWidth}}if(o.dropDownHeight==null){o.dropDownHeight=200}var t=o;o.container.width(parseInt(p)+25);o.container.height(parseInt(o.dropDownHeight)+25);o._ready=false;o.addHandler(o.listBoxContainer,"bindingComplete",function(e){if(!o.listBox){o.listBox=a.data(o.listBoxContainer[0],"jqxListBox").instance}if(o.selectedIndex!=o.listBoxContainer.jqxListBox("selectedIndex")){o.listBox=a.data(o.listBoxContainer[0],"jqxListBox").instance;o.listBoxContainer.jqxListBox({selectedIndex:o.selectedIndex});o.renderSelection("mouse")}else{o.renderSelection("mouse")}if(!o._ready){if(o.ready){o.ready()}o._ready=true}o._raiseEvent("6")});o.addHandler(o.listBoxContainer,"itemAdd",function(e){o._raiseEvent("7",e.args)});o.addHandler(o.listBoxContainer,"itemRemove",function(e){o._raiseEvent("8",e.args)});o.addHandler(o.listBoxContainer,"itemUpdate",function(e){o._raiseEvent("9",e.args)});o.listBoxContainer.jqxListBox({filterHeight:o.filterHeight,filterPlaceHolder:o.filterPlaceHolder,filterDelay:o.filterDelay,autoItemsHeight:o.autoItemsHeight,filterable:o.filterable,allowDrop:false,allowDrag:false,autoBind:o.autoBind,_checkForHiddenParent:false,focusable:o.focusable,touchMode:o.touchMode,checkboxes:o.checkboxes,rtl:o.rtl,_renderOnDemand:true,emptyString:o.emptyString,itemHeight:o.itemHeight,width:p,searchMode:o.searchMode,incrementalSearch:o.incrementalSearch,incrementalSearchDelay:o.incrementalSearchDelay,groupMember:o.groupMember,searchMember:o.searchMember,displayMember:o.displayMember,valueMember:o.valueMember,height:o.dropDownHeight,autoHeight:o.autoDropDownHeight,scrollBarSize:o.scrollBarSize,selectedIndex:o.selectedIndex,source:o.source,theme:o.theme,rendered:function(){if(o.selectedIndex!=o.listBoxContainer.jqxListBox("selectedIndex")){o.listBox=a.data(o.listBoxContainer[0],"jqxListBox").instance;o.listBoxContainer.jqxListBox({selectedIndex:o.selectedIndex});o.renderSelection("mouse")}else{o.renderSelection("mouse")}},renderer:o.renderer,filterChange:function(e){if(o.autoDropDownHeight){o.container.height(o.listBoxContainer.height()+25)}}});if(o.dropDownContainer==="element"){o.listBoxContainer.css({position:"absolute",top:0,left:0})}else{o.listBoxContainer.css({position:"absolute",zIndex:o.popupZIndex,top:0,left:0})}if(o.template){o.listBoxContainer.addClass(o.toThemeProperty("jqx-"+o.template+"-item"))}o.listBox=a.data(o.listBoxContainer[0],"jqxListBox").instance;o.listBox.enableSelection=o.enableSelection;o.listBox.enableHover=o.enableHover;o.listBox.equalItemsWidth=o.equalItemsWidth;o.listBox.selectIndex(o.selectedIndex);o.listBox._arrange();o.listBoxContainer.addClass(o.toThemeProperty("jqx-popup"));if(a.jqx.browser.msie){o.listBoxContainer.addClass(o.toThemeProperty("jqx-noshadow"))}o.addHandler(o.listBoxContainer,"unselect",function(e){o._raiseEvent("3",{index:e.args.index,type:e.args.type,item:e.args.item})});o.addHandler(o.listBoxContainer,"change",function(e){if(e.args){if(e.args.type!="keyboard"){o._raiseEvent("4",{index:e.args.index,type:e.args.type,item:e.args.item})}else{if(e.args.type=="keyboard"){if(!o.isOpened()){o._raiseEvent("4",{index:o.selectedIndex,type:"keyboard",item:o.getItem(o.selectedIndex)})}else{if(e.args.item&&e.args.oldItem&&e.args.item.label!==e.args.oldItem.label){o._raiseEvent("4",{index:o.selectedIndex,type:"keyboard",item:o.getItem(o.selectedIndex)})}}}}}});if(o.animationType=="none"){o.container.css("display","none")}else{o.container.hide()}}catch(s){if(console){console.log(s)}}var o=o;o.propertyChangeMap.disabled=function(e,w,v,x){if(x){e.host.addClass(o.toThemeProperty("jqx-dropdownlist-state-disabled"));e.host.addClass(o.toThemeProperty("jqx-fill-state-disabled"));e.dropdownlistContent.addClass(o.toThemeProperty("jqx-dropdownlist-content-disabled"))}else{e.host.removeClass(o.toThemeProperty("jqx-dropdownlist-state-disabled"));e.host.removeClass(o.toThemeProperty("jqx-fill-state-disabled"));e.dropdownlistContent.removeClass(o.toThemeProperty("jqx-dropdownlist-content-disabled"))}a.jqx.aria(e,"aria-disabled",e.disabled)};if(o.disabled){o.host.addClass(o.toThemeProperty("jqx-dropdownlist-state-disabled"));o.host.addClass(o.toThemeProperty("jqx-fill-state-disabled"));o.dropdownlistContent.addClass(o.toThemeProperty("jqx-dropdownlist-content-disabled"))}if(o.dropDownVerticalAlignment=="top"){o.arrow.addClass(o.toThemeProperty("jqx-icon-arrow-up"))}else{o.arrow.addClass(o.toThemeProperty("jqx-icon-arrow-down"))}o.arrow.addClass(o.toThemeProperty("jqx-icon"));if(o.renderMode==="simple"){o.arrow.remove();o.host.removeClass(o.toThemeProperty("jqx-fill-state-normal"));o.host.removeClass(o.toThemeProperty("jqx-rc-all"))}if(o.template){o.host.addClass(o.toThemeProperty("jqx-"+o.template))}o._updateHandlers();o._setSize();o._arrange();if(o.listBox){o.renderSelection()}if(a.jqx.browser.msie&&a.jqx.browser.version<8){if(o.host.parents(".jqx-window").length>0){var n=o.host.parents(".jqx-window").css("z-index");l.css("z-index",n+10);o.listBoxContainer.css("z-index",n+10)}}},resize:function(c,b){this.width=c;this.height=b;this._setSize();this._arrange()},val:function(c){if(!this.dropdownlistContent){return""}var d=function(f){for(var e in f){if(f.hasOwnProperty(e)){return false}}if(typeof c=="number"){return false}if(typeof c=="date"){return false}if(typeof c=="boolean"){return false}if(typeof c=="string"){return false}return true};if(this.input&&(d(c)||arguments.length==0)){return this.input.val()}var b=this.getItemByValue(c);if(b!=null){this.selectItem(b)}if(this.input){return this.input.val()}},focus:function(){try{var d=this;var c=function(){if(d.host){d.host.focus();if(d._firstDiv){d._firstDiv.focus()}}};c();setTimeout(function(){c()},10)}catch(b){}},_addInput:function(){var b=this.host.attr("name");this.input=a("<input type='hidden'/>");this.host.append(this.input);if(b){this.input.attr("name",b)}},getItems:function(){if(!this.listBox){return new Array()}return this.listBox.items},getVisibleItems:function(){return this.listBox.getVisibleItems()},_setSize:function(){var b=window.getComputedStyle(this.element);var c=parseInt(b.borderLeftWidth)*2;var h=b.boxSizing;if(this.element.offsetWidth===0){c=2}if(h==="border-box"||isNaN(c)){c=0}if(this.width!=null&&this.width.toString().indexOf("px")!=-1){this.element.style.width=parseInt(this.width)-c+"px"}else{if(this.width!=undefined&&!isNaN(this.width)){this.element.style.width=parseInt(this.width)-c+"px"}}if(this.height!=null&&this.height.toString().indexOf("px")!=-1){this.element.style.height=parseInt(this.height)-c+"px"}else{if(this.height!=undefined&&!isNaN(this.height)){this.element.style.height=parseInt(this.height)-c+"px"}}var g=false;if(this.width!=null&&this.width.toString().indexOf("%")!=-1){g=true;this.element.style.width=this.width;if(c>0){this.host.css("box-sizing","border-box");this.listBoxContainer.css("box-sizing","border-box")}}if(this.height!=null&&this.height.toString().indexOf("%")!=-1){g=true;this.element.style.height=this.height}var e=this;var f=function(){e._arrange();if(e.dropDownWidth=="auto"){var i=e.host.width()+2;e.listBoxContainer.jqxListBox({width:i});e.container.width(parseInt(i)+25)}};if(g){var d=this.host.width()+2;if(this.dropDownWidth!="auto"){d=this.dropDownWidth}this.listBoxContainer.jqxListBox({width:d});this.container.width(parseInt(d)+25)}a.jqx.utilities.resize(this.host,function(){f()},false,this._checkForHiddenParent)},isOpened:function(){var c=this;var b=a.data(document.body,"openedJQXListBox"+this.id);if(b!=null&&b==c.listBoxContainer){return true}return false},_updateHandlers:function(){var c=this;var d=false;this.removeHandlers();if(!this.touch){this.addHandler(this.host,"mouseenter",function(){if(!c.disabled&&c.enableHover&&c.renderMode!=="simple"){d=true;c.host.addClass(c.toThemeProperty("jqx-dropdownlist-state-hover"));if(c.dropDownVerticalAlignment=="top"){c.arrow.addClass(c.toThemeProperty("jqx-icon-arrow-up-hover"))}else{c.arrow.addClass(c.toThemeProperty("jqx-icon-arrow-down-hover"))}c.host.addClass(c.toThemeProperty("jqx-fill-state-hover"))}});this.addHandler(this.host,"mouseleave",function(){if(!c.disabled&&c.enableHover&&c.renderMode!=="simple"){c.host.removeClass(c.toThemeProperty("jqx-dropdownlist-state-hover"));c.host.removeClass(c.toThemeProperty("jqx-fill-state-hover"));c.arrow.removeClass(c.toThemeProperty("jqx-icon-arrow-down-hover"));c.arrow.removeClass(c.toThemeProperty("jqx-icon-arrow-up-hover"));d=false}})}if(this.host.parents()){this.addHandler(this.host.parents(),"scroll.dropdownlist"+this.element.id,function(e){var f=c.isOpened();if(f){c.close()}})}var b="mousedown";if(this.touch){b=a.jqx.mobile.getTouchEventName("touchstart")}this.addHandler(this.dropdownlistWrapper,b,function(f){if(!c.disabled){var e=c.container.css("display")=="block";if(!c.isanimating){if(e){c.hideListBox();return false}else{c.showListBox();if(!c.focusable){if(f.preventDefault){f.preventDefault()}}else{c.focus()}}}}});if(c.autoOpen){this.addHandler(this.host,"mouseenter",function(){var e=c.isOpened();if(!e&&c.autoOpen){c.open();c.host.focus()}});a(document).on("mousemove."+c.id,function(e){var l=c.isOpened();if(l&&c.autoOpen){var i=c.host.coord();var j=i.top;var h=i.left;var f=c.container.coord();var m=f.left;var k=f.top;var g=true;if(e.pageY>=j&&e.pageY<=j+c.host.height()){if(e.pageX>=h&&e.pageX<h+c.host.width()){g=false}}if(e.pageY>=k&&e.pageY<=k+c.container.height()){if(e.pageX>=m&&e.pageX<m+c.container.width()){g=false}}if(g){c.close()}}})}if(this.touch){this.addHandler(a(document),a.jqx.mobile.getTouchEventName("touchstart")+"."+this.id,c.closeOpenedListBox,{me:this,listbox:this.listBox,id:this.id})}else{this.addHandler(a(document),"mousedown."+this.id,c.closeOpenedListBox,{me:this,listbox:this.listBox,id:this.id})}this.addHandler(this.host,"keydown",function(f){var e=c.container.css("display")=="block";if(c.host.css("display")=="none"){return true}if(f.keyCode=="13"||f.keyCode=="9"){if(!c.isanimating){if(e){c.renderSelection();if(f.keyCode=="13"&&c.focusable){c._firstDiv.focus()}c.hideListBox();if(!c.keyboardSelection){c._raiseEvent("2",{index:c.selectedIndex,type:"keyboard",item:c.getItem(c.selectedIndex)})}if(f.keyCode=="13"){c._raiseEvent("4",{index:c.selectedIndex,type:"keyboard",item:c.getItem(c.selectedIndex)})}}if(e&&f.keyCode!="9"){return false}return true}}if(f.keyCode==115){if(!c.isanimating){if(!c.isOpened()){c.showListBox()}else{if(c.isOpened()){c.hideListBox()}}}return false}if(f.altKey){if(c.host.css("display")=="block"){if(f.keyCode==38){if(c.isOpened()){c.hideListBox();return true}}else{if(f.keyCode==40){if(!c.isOpened()){c.showListBox();return true}}}}}if(f.keyCode=="27"){if(!c.ishiding){if(c.isOpened()){c.hideListBox();if(c.tempSelectedIndex!=undefined){c.selectIndex(c.tempSelectedIndex)}}return true}}if(!c.disabled){c._kbnavigated=c.listBox._handleKeyDown(f);return c._kbnavigated}});this.addHandler(this.listBoxContainer,"checkChange",function(e){c.renderSelection();c._updateInputSelection();c._raiseEvent(5,{label:e.args.label,value:e.args.value,checked:e.args.checked,item:e.args.item})});this.addHandler(this.listBoxContainer,"select",function(e){if(!c.disabled){if(!e.args){return}if(e.args.type=="keyboard"&&!c.isOpened()){c.renderSelection()}if(e.args.type!="keyboard"||c.keyboardSelection){c.renderSelection();c._raiseEvent("2",{index:e.args.index,type:e.args.type,item:e.args.item,originalEvent:e.args.originalEvent});if(e.args.type=="mouse"){if(!c.checkboxes){c.hideListBox();if(c._firstDiv&&c.focusable){c._firstDiv.focus()}}}}}});if(this.listBox){if(this.listBox.content){this.addHandler(this.listBox.content,"click",function(e){if(!c.disabled){if(c.listBox.itemswrapper&&e.target===c.listBox.itemswrapper[0]){return true}c.renderSelection("mouse");if(!c.touch){if(!c.ishiding){if(!c.checkboxes){c.hideListBox();if(c._firstDiv&&c.focusable){c._firstDiv.focus()}}}}if(!c.keyboardSelection){if(c._kbnavigated===false){if(c.tempSelectedIndex!=c.selectedIndex){c._raiseEvent("4",{index:c.selectedIndex,type:"mouse",item:c.getItem(c.selectedIndex)})}c._kbnavigated=true}if(c._oldSelectedInd==undefined){c._oldSelectedIndx=c.selectedIndex}if(c.selectedIndex!=c._oldSelectedIndx){c._raiseEvent("2",{index:c.selectedIndex,type:"keyboard",item:c.getItem(c.selectedIndex)});c._oldSelectedIndx=c.selectedIndex}}}})}}this.addHandler(this.host,"focus",function(e){if(c.renderMode!=="simple"){c.host.addClass(c.toThemeProperty("jqx-dropdownlist-state-focus"));c.host.addClass(c.toThemeProperty("jqx-fill-state-focus"))}c.bar.addClass("focused");c.label.addClass("focused")});this.addHandler(this.host,"blur",function(){if(c.renderMode!=="simple"){c.host.removeClass(c.toThemeProperty("jqx-dropdownlist-state-focus"));c.host.removeClass(c.toThemeProperty("jqx-fill-state-focus"))}c.bar.removeClass("focused");c.label.removeClass("focused")});this.addHandler(this._firstDiv,"focus",function(e){if(c.renderMode!=="simple"){c.host.addClass(c.toThemeProperty("jqx-dropdownlist-state-focus"));c.host.addClass(c.toThemeProperty("jqx-fill-state-focus"))}c.bar.addClass("focused");c.label.addClass("focused")});this.addHandler(this._firstDiv,"blur",function(){if(c.renderMode!=="simple"){c.host.removeClass(c.toThemeProperty("jqx-dropdownlist-state-focus"));c.host.removeClass(c.toThemeProperty("jqx-fill-state-focus"))}c.bar.removeClass("focused");c.label.removeClass("focused")})},removeHandlers:function(){var c=this;var b="mousedown";if(this.touch){b=a.jqx.mobile.getTouchEventName("touchstart")}this.removeHandler(this.dropdownlistWrapper,b);if(this.listBox){if(this.listBox.content){this.removeHandler(this.listBox.content,"click")}}this.removeHandler(this.host,"loadContent");this.removeHandler(this.listBoxContainer,"checkChange");this.removeHandler(this.host,"keydown");this.removeHandler(this.host,"focus");this.removeHandler(this.host,"blur");this.removeHandler(this._firstDiv,"focus");this.removeHandler(this._firstDiv,"blur");this.removeHandler(this.host,"mouseenter");this.removeHandler(this.host,"mouseleave");this.removeHandler(a(document),"mousemove."+c.id)},getItem:function(b){var c=this.listBox.getItem(b);return c},getItemByValue:function(c){var b=this.listBox.getItemByValue(c);return b},selectItem:function(b){if(this.listBox!=undefined){this.listBox.selectItem(b);this.selectedIndex=this.listBox.selectedIndex;this.renderSelection("mouse")}},unselectItem:function(b){if(this.listBox!=undefined){this.listBox.unselectItem(b);this.renderSelection("mouse")}},checkItem:function(b){if(this.listBox!=undefined){this.listBox.checkItem(b)}},uncheckItem:function(b){if(this.listBox!=undefined){this.listBox.uncheckItem(b)}},indeterminateItem:function(b){if(this.listBox!=undefined){this.listBox.indeterminateItem(b)}},renderSelection:function(){if(this.listBox==null){return}if(this.height&&this.height.toString().indexOf("%")!=-1){this._arrange()}var s=this.listBox.visibleItems[this.listBox.selectedIndex];if(this.filterable){if(this.listBox.selectedIndex==-1){for(var e in this.listBox.selectedValues){var l=this.listBox.selectedValues[e];var b=this.listBox.getItemByValue(l);if(b){s=b}}}}var v=this;if(this.checkboxes){var x=this.getCheckedItems();if(x!=null&&x.length>0){s=x[0]}else{s=null}}if(this.hint){if(this.label){this.label[0].innerHTML=this.placeHolder}if(s!=null){this.element.setAttribute("hint",true)}else{this.element.removeAttribute("hint")}}this.bar.css("top",this.host.height());if(s==null){var j=a("<span unselectable='on'></span>");j.addClass("jqx-grid-span-csp");j.appendTo(a(document.body));j.addClass(this.toThemeProperty("jqx-widget"));j.addClass(this.toThemeProperty("jqx-listitem-state-normal"));j.addClass(this.toThemeProperty("jqx-item"));a.jqx.utilities.html(j,this.placeHolder);if(this.isMaterialized()&&!this.element.getAttribute("default-placeholder")&&this.hint){j[0].innerHTML="";if(this.label){this.label[0].innerHTML=this.placeHolder}}var t=this.dropdownlistContent.css("padding-top");var y=this.dropdownlistContent.css("padding-bottom");j.css("padding-top",t);j.css("padding-bottom",y);var r=j.outerHeight();j.remove();j.removeClass();a.jqx.utilities.html(this.dropdownlistContent,j);var h=this.host.height();if(this.height!=null&&this.height!=undefined){if(this.height.toString().indexOf("%")===-1){h=parseInt(this.height)}}var f=parseInt((parseInt(h)-parseInt(r))/2);if(this.host.css("box-sizing")==="border-box"){f=parseInt((parseInt(h-2)-parseInt(r))/2)}if(f>0){this.dropdownlistContent.css("margin-top",f+"px");this.dropdownlistContent.css("margin-bottom",f+"px")}if(this.selectionRenderer){var p=this.selectionRenderer(j,-1,"","");if(p.element&&p.css){a.jqx.utilities.html(this.dropdownlistContent,p.element);a(this.dropdownlistContent[0].firstElementChild).css(p.css)}else{a.jqx.utilities.html(this.dropdownlistContent,p)}this.dropdownlistContent.css("margin-top","0px");this.dropdownlistContent.css("margin-bottom","0px");this._updateInputSelection()}else{this._updateInputSelection()}this.selectedIndex=this.listBox.selectedIndex;if(this.width==="auto"){this._arrange()}if(this.focusable&&this.isOpened()){this.focus()}return}this.selectedIndex=this.listBox.selectedIndex;var j=a(document.createElement("span"));j[0].setAttribute("unselectable","on");try{j[0].style.color="inherit"}catch(u){}j[0].style.borderWidth="0px";j[0].style.backgroundColor="transparent";j.appendTo(a(document.body));j.addClass(this.toThemeProperty("jqx-widget jqx-listitem-state-normal jqx-item"));var q=false;try{if(s.html!=undefined&&s.html!=null&&s.html.toString().length>0){a.jqx.utilities.html(j,s.html)}else{if(s.label!=undefined&&s.label!=null&&s.label.toString().length>0){a.jqx.utilities.html(j,s.label)}else{if(s.label===null||s.label===""){q=true;a.jqx.utilities.html(j,"")}else{if(s.value!=undefined&&s.value!=null&&s.value.toString().length>0){a.jqx.utilities.html(j,s.value)}else{if(s.title!=undefined&&s.title!=null&&s.title.toString().length>0){a.jqx.utilities.html(j,s.title)}else{if(s.label==""||s.label==null){q=true;a.jqx.utilities.html(j,"")}}}}}}}catch(n){var m=n}var t=this.dropdownlistContent[0].style.paddingTop;var y=this.dropdownlistContent[0].style.paddingBottom;if(t===""){t="0px"}if(y===""){y="0px"}j[0].style.paddingTop=t;j[0].style.paddingBottom=y;var r=j.outerHeight();if(r===0){r=16}if((s.label==""||s.label==null)&&q){a.jqx.utilities.html(j,"")}var c=this.width&&this.width.toString().indexOf("%")<=0;j.remove();j.removeClass();if(this.selectionRenderer){var p=this.selectionRenderer(j,s.index,s.label,s.value);if(p.element&&p.css){a.jqx.utilities.html(this.dropdownlistContent,p.element);a(this.dropdownlistContent[0].firstElementChild).css(p.css)}else{a.jqx.utilities.html(this.dropdownlistContent,p)}if(this.focusable&&this.isOpened()){this.focus()}}else{if(this.checkboxes){var g=this.getCheckedItems();var k="";for(var o=0;o<g.length;o++){if(o==g.length-1){k+=g[o].label}else{k+=g[o].label+","}}j.text(k);if(c){j.css("max-width",this.host.width()-30)}j.css("overflow","hidden");j.css("display","block");if(!this.rtl){if(c){j.css("width",this.host.width()-30)}}j.css("text-overflow","ellipsis");j.css("padding-bottom",1+parseInt(y));this.dropdownlistContent.html(j);if(this.focusable&&this.isOpened()){this.focus()}}else{var d=this.host.width()-this.arrowSize-1;if(this.width&&this.width!=="auto"){if(c){if(!this.rtl){j.css("max-width",d+"px")}}j[0].style.overflow="hidden";j[0].style.display="block";j[0].style.paddingTop=(1+parseInt(y))+"px";if(!this.rtl){if(c){if(d<0){d=0}j[0].style.width=d+"px"}}j[0].style.textOverflow="ellipsis"}this.dropdownlistContent[0].innerHTML=j[0].innerHTML;if(this.focusable&&this.isOpened()){this.focus()}}}var h=this.host.height();if(this.height!=null&&this.height!=undefined){if(this.height.toString().indexOf("%")===-1){h=parseInt(this.height)}}var f=parseInt((parseInt(h)-parseInt(r))/2);if(this.host.css("box-sizing")==="border-box"){f=parseInt((parseInt(h-2)-parseInt(r))/2)}if(f>=0){this.dropdownlistContent[0].style.marginTop=f+"px";this.dropdownlistContent[0].style.marginBottom=f+"px"}if(this.selectionRenderer){this.dropdownlistContent[0].style.marginTop="0px";this.dropdownlistContent[0].style.marginBottom="0px"}if(this.dropdownlistContent&&this.input){this._updateInputSelection()}if(this.listBox&&this.listBox._activeElement){a.jqx.aria(this,"aria-activedescendant",this.listBox._activeElement.id)}if(this.width==="auto"){this._arrange()}},_updateInputSelection:function(){if(this.input){var c=new Array();if(this.selectedIndex==-1){this.input.val("")}else{var f=this.getSelectedItem();if(f!=null){this.input.val(f.value);c.push(f.value)}else{this.input.val(this.dropdownlistContent.text())}}if(this.checkboxes){var b=this.getCheckedItems();var g="";if(b!=null){for(var d=0;d<b.length;d++){var e=b[d].value;if(e==undefined){continue}if(d==b.length-1){g+=e}else{g+=e+","}c.push(e)}}this.input.val(g)}}if(this.field&&this.input){if(this.field.nodeName.toLowerCase()=="select"){a.each(this.field,function(h,i){a(this).removeAttr("selected");this.selected=c.indexOf(this.value)>=0;if(this.selected){a(this).attr("selected",true)}})}else{a.each(this.items,function(h,i){a(this.originalItem.originalItem).removeAttr("data-selected");this.selected=c.indexOf(this.value)>=0;if(this.selected){a(this.originalItem.originalItem).attr("data-selected",true)}})}}},setContent:function(b){a.jqx.utilities.html(this.dropdownlistContent,b);this._updateInputSelection()},dataBind:function(){this.listBoxContainer.jqxListBox({source:this.source});this.renderSelection("mouse");if(this.source==null){this.clearSelection()}},clear:function(){this.listBoxContainer.jqxListBox({source:null});this.clearSelection()},clearSelection:function(b){this.selectedIndex=-1;this._updateInputSelection();this.listBox.clearSelection();this.renderSelection();if(!this.selectionRenderer&&!this.hint&&!this.isMaterialized()){a.jqx.utilities.html(this.dropdownlistContent,this.placeHolder)}},unselectIndex:function(b,c){if(isNaN(b)){return}this.listBox.unselectIndex(b,c);this.renderSelection()},selectIndex:function(b,d,e,c){this.listBox.selectIndex(b,d,e,c,"api")},getSelectedIndex:function(){return this.selectedIndex},getSelectedItem:function(){return this.listBox.getVisibleItem(this.selectedIndex)},getCheckedItems:function(){return this.listBox.getCheckedItems()},checkIndex:function(b){this.listBox.checkIndex(b)},uncheckIndex:function(b){this.listBox.uncheckIndex(b)},indeterminateIndex:function(b){this.listBox.indeterminateIndex(b)},checkAll:function(){this.listBox.checkAll();this.renderSelection("mouse")},uncheckAll:function(){this.listBox.uncheckAll();this.renderSelection("mouse")},addItem:function(b){return this.listBox.addItem(b)},insertAt:function(c,b){if(c==null){return false}return this.listBox.insertAt(c,b)},removeAt:function(c){var b=this.listBox.removeAt(c);this.renderSelection("mouse");return b},removeItem:function(c){var b=this.listBox.removeItem(c);this.renderSelection("mouse");return b},updateItem:function(c,d){var b=this.listBox.updateItem(c,d);this.renderSelection("mouse");return b},updateAt:function(d,c){var b=this.listBox.updateAt(d,c);this.renderSelection("mouse");return b},ensureVisible:function(b){return this.listBox.ensureVisible(b)},disableAt:function(b){return this.listBox.disableAt(b)},enableAt:function(b){return this.listBox.enableAt(b)},disableItem:function(b){return this.listBox.disableItem(b)},enableItem:function(b){return this.listBox.enableItem(b)},_findPos:function(c){while(c&&(c.type=="hidden"||c.nodeType!=1||a.expr.filters.hidden(c))){c=c.nextSibling}var b=a(c).coord(true);return[b.left,b.top]},testOffset:function(h,f,c){var g=h.outerWidth();var j=h.outerHeight();var i=a(window).width()+a(window).scrollLeft();var e=a(window).height()+a(window).scrollTop();if(f.left+g>i){if(g>this.host.width()){var d=this.host.coord().left;var b=g-this.host.width();f.left=d-b+2}}if(f.left<0){f.left=parseInt(this.host.coord().left)+"px"}f.top-=Math.min(f.top,(f.top+j>e&&e>j)?Math.abs(j+c+22):0);return f},open:function(){this.showListBox()},close:function(){this.hideListBox()},_getBodyOffset:function(){var c=0;var b=0;if(a("body").css("border-top-width")!="0px"){c=parseInt(a("body").css("border-top-width"));if(isNaN(c)){c=0}}if(a("body").css("border-left-width")!="0px"){b=parseInt(a("body").css("border-left-width"));if(isNaN(b)){b=0}}return{left:b,top:c}},showListBox:function(){a.jqx.aria(this,"aria-expanded",true);if(this.listBox._renderOnDemand){this.listBoxContainer.jqxListBox({_renderOnDemand:false})}if(this.dropDownWidth=="auto"&&this.width!=null&&this.width.indexOf&&(this.width.indexOf("%")!=-1||this.width.indexOf("auto")!=-1)){if(this.listBox.host.width()!=this.host.width()){var p=this.element.offsetWidth;this.listBoxContainer.jqxListBox({width:p});this.container.width(parseInt(p)+25)}}if(this.dropDownWidth=="auto"&&this.host.css("border-left-width")==="0px"){var p=this.element.offsetWidth;this.listBoxContainer.jqxListBox({width:p+1});this.container.width(parseInt(p)+25)}var n=this;var g=this.listBoxContainer;var u=this.listBox;var e=a(window).scrollTop();var f=a(window).scrollLeft();var l=parseInt(this._findPos(this.host[0])[1])+parseInt(this.host.outerHeight())-1+"px";var d,o=parseInt(Math.round(this.host.coord(true).left));d=o+"px";if(this.dropDownContainer==="element"){l=parseInt(this.host.outerHeight())-1+"px";d=0}var s=false;if(this.listBox==null){return}this.ishiding=false;if(!this.keyboardSelection){this.listBox.selectIndex(this.selectedIndex);this.listBox.ensureVisible(this.selectedIndex)}this.tempSelectedIndex=this.selectedIndex;if(this.autoDropDownHeight){this.container.height(this.listBoxContainer.height()+25)}if((s!=null&&s)){d=a.jqx.mobile.getLeftPos(this.element);l=a.jqx.mobile.getTopPos(this.element)+parseInt(this.host.outerHeight());if(a("body").css("border-top-width")!="0px"){l=parseInt(l)-this._getBodyOffset().top+"px"}if(a("body").css("border-left-width")!="0px"){d=parseInt(d)-this._getBodyOffset().left+"px"}}g.stop();if(this.renderMode!=="simple"){this.host.addClass(this.toThemeProperty("jqx-dropdownlist-state-selected"));this.host.addClass(this.toThemeProperty("jqx-fill-state-pressed"));if(this.dropDownVerticalAlignment=="top"){this.arrow.addClass(this.toThemeProperty("jqx-icon-arrow-up-selected"))}else{this.arrow.addClass(this.toThemeProperty("jqx-icon-arrow-down-selected"))}}this.container.css("left",d);this.container.css("top",l);u._arrange();var c=true;var b=false;if(this.dropDownHorizontalAlignment=="right"||this.rtl){var i=this.container.outerWidth();var q=-2+Math.abs(i-this.host.width());if(i>this.host.width()){this.container.css("left",25+parseInt(Math.round(o))-q+"px")}else{this.container.css("left",25+parseInt(Math.round(o))+q+"px")}}if(this.dropDownVerticalAlignment=="top"){var r=g.height();b=true;g.css("top",23);g.addClass(this.toThemeProperty("jqx-popup-up"));var k=parseInt(this.host.outerHeight());var j=parseInt(l)-Math.abs(r+k+23);this.container.css("top",j)}if(this.enableBrowserBoundsDetection){var h=this.testOffset(g,{left:parseInt(this.container.css("left")),top:parseInt(l)},parseInt(this.host.outerHeight()));if(parseInt(this.container.css("top"))!=h.top){b=true;g.css("top",23);g.addClass(this.toThemeProperty("jqx-popup-up"))}else{g.css("top",0)}this.container.css("top",h.top);if(parseInt(this.container.css("left"))!=h.left){this.container.css("left",h.left)}}if(this.animationType=="none"||this.animationType==="transform"){this.container.css("display","block");a.data(document.body,"openedJQXListBoxParent",n);a.data(document.body,"openedJQXListBox"+this.id,g);g.css("margin-top",0);g.css("opacity",1);u._renderItems();n._raiseEvent("0",u)}else{this.container.css("display","block");n.isanimating=true;if(this.animationType=="fade"){g.css("margin-top",0);g.css("opacity",0);g.animate({opacity:1},this.openDelay,function(){a.data(document.body,"openedJQXListBoxParent",n);a.data(document.body,"openedJQXListBox"+n.id,g);n.ishiding=false;n.isanimating=false;u._renderItems();n._raiseEvent("0",u)})}else{g.css("opacity",1);var m=g.outerHeight();if(b){g.css("margin-top",m)}else{g.css("margin-top",-m)}g.animate({"margin-top":0},this.openDelay,function(){a.data(document.body,"openedJQXListBoxParent",n);a.data(document.body,"openedJQXListBox"+n.id,g);n.ishiding=false;n.isanimating=false;u._renderItems();n._raiseEvent("0",u)})}}if(!b){this.host.addClass(this.toThemeProperty("jqx-rc-b-expanded"));g.addClass(this.toThemeProperty("jqx-rc-t-expanded"))}else{this.host.addClass(this.toThemeProperty("jqx-rc-t-expanded"));g.addClass(this.toThemeProperty("jqx-rc-b-expanded"))}if(this.renderMode!=="simple"){g.addClass(this.toThemeProperty("jqx-fill-state-focus"));this.host.addClass(this.toThemeProperty("jqx-dropdownlist-state-focus"));this.host.addClass(this.toThemeProperty("jqx-fill-state-focus"))}this.element.setAttribute("opened",true);g.addClass(this.toThemeProperty("jqx-popup-show"))},hideListBox:function(){a.jqx.aria(this,"aria-expanded",false);var f=this.listBoxContainer;var g=this.listBox;var c=this.container;var d=this;this.element.removeAttribute("opened");f.removeClass("jqx-popup-show");a.data(document.body,"openedJQXListBox"+this.id,null);if(this.animationType=="none"){this.container.css("display","none")}else{if(this.animationType==="transform"){setTimeout(function(){c.css("display","none")},this.closeDelay)}else{if(!d.ishiding){f.stop();var b=f.outerHeight();f.css("margin-top",0);d.isanimating=true;var e=-b;if(parseInt(this.container.coord().top)<parseInt(this.host.coord().top)){e=b}if(this.animationType=="fade"){f.css({opacity:1});f.animate({opacity:0},this.closeDelay,function(){c.css("display","none");d.isanimating=false;d.ishiding=false})}else{f.animate({"margin-top":e},this.closeDelay,function(){c.css("display","none");d.isanimating=false;d.ishiding=false})}}}}this.ishiding=true;this.host.removeClass(this.toThemeProperty("jqx-dropdownlist-state-selected"));this.host.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));this.arrow.removeClass(this.toThemeProperty("jqx-icon-arrow-down-selected"));this.arrow.removeClass(this.toThemeProperty("jqx-icon-arrow-up-selected"));this.host.removeClass(this.toThemeProperty("jqx-rc-b-expanded"));f.removeClass(this.toThemeProperty("jqx-rc-t-expanded"));this.host.removeClass(this.toThemeProperty("jqx-rc-t-expanded"));f.removeClass(this.toThemeProperty("jqx-rc-b-expanded"));f.removeClass(this.toThemeProperty("jqx-fill-state-focus"));this.host.removeClass(this.toThemeProperty("jqx-dropdownlist-state-focus"));this.host.removeClass(this.toThemeProperty("jqx-fill-state-focus"));this._raiseEvent("1",g)},closeOpenedListBox:function(e){var d=e.data.me;var b=a(e.target);var c=e.data.listbox;if(c==null){return true}if(a(e.target).ischildof(e.data.me.host)){return true}if(!d.isOpened()){return true}if(a(e.target).ischildof(d.listBoxContainer)){return true}var f=d;var g=false;a.each(b.parents(),function(){if(this.className!="undefined"){if(this.className.indexOf){if(this.className.indexOf("jqx-listbox")!=-1){g=true;return false}if(this.className.indexOf("jqx-dropdownlist")!=-1){if(d.element.id==this.id){g=true}return false}}}});if(c!=null&&!g&&d.isOpened()){d.hideListBox()}return true},clearFilter:function(){this.listBox.clearFilter()},loadFromSelect:function(b){this.listBox.loadFromSelect(b)},refresh:function(b){if(b!==true){this._setSize();this._arrange();if(this.listBox){this.renderSelection()}}},_arrange:function(){var h=this;var d=parseInt(h.host.width());var j=parseInt(h.host.height());var f=h.arrowSize;var g=h.arrowSize;var i=3;var b=d-g-2*i;if(b>0&&h.width!=="auto"){h.dropdownlistContent[0].style.width=b+"px"}else{if(b<=0){h.dropdownlistContent[0].style.width="0px"}}if(h.width==="auto"){h.dropdownlistContent.css("width","auto");d=2+h.dropdownlistContent.width()+g+2*i;if(d<47){d=47}h.host.width(d)}h.dropdownlistContent[0].style.height=j+"px";h.dropdownlistContent[0].style.left="0px";h.dropdownlistContent[0].style.top="0px";h.dropdownlistArrow[0].style.width=g+"px";if(h.width&&h.width.toString().indexOf("%")>=0){var e=(g*100)/d;var c=(b*100)/d;h.dropdownlistArrow[0].style.width=e+"%";h.dropdownlistContent[0].style.width=c+"%"}h.dropdownlistArrow[0].style.height=j+"px";if(h.rtl){h.dropdownlistArrow.css("float","left");h.dropdownlistContent.css("float","right")}},destroy:function(){a.jqx.utilities.resize(this.host,null,true);this.removeHandler(this.listBoxContainer,"select");this.removeHandler(this.listBoxContainer,"unselect");this.removeHandler(this.listBoxContainer,"change");this.removeHandler(this.dropdownlistWrapper,"selectstart");this.removeHandler(this.dropdownlistWrapper,"mousedown");this.removeHandler(this.host,"keydown");this.removeHandler(this.listBoxContainer,"select");this.removeHandler(this.listBox.content,"click");this.removeHandler(this.listBoxContainer,"bindingComplete");if(this.host.parents()){this.removeHandler(this.host.parents(),"scroll.dropdownlist"+this.element.id)}this.removeHandlers();this.listBoxContainer.jqxListBox("destroy");this.listBoxContainer.remove();this.host.removeClass();this.removeHandler(a(document),"mousedown."+this.id,this.closeOpenedListBox);if(this.touch){this.removeHandler(a(document),a.jqx.mobile.getTouchEventName("touchstart")+"."+this.id)}this.dropdownlistArrow.remove();delete this.dropdownlistArrow;delete this.dropdownlistWrapper;delete this.listBoxContainer;delete this.input;delete this.arrow;delete this.dropdownlistContent;delete this.listBox;delete this._firstDiv;this.container.remove();delete this.container;var b=a.data(this.element,"jqxDropDownList");if(b){delete b.instance}this.host.removeData();this.host.remove();delete this.comboStructure;delete this.host;delete this.element},_raiseEvent:function(g,c){if(c==undefined){c={owner:null}}var d=this.events[g];var e=c;e.owner=this;var f=new a.Event(d);f.owner=this;if(g==2||g==3||g==4||g==5||g==6||g==7||g==8||g==9){f.args=c}var b=this.host.trigger(f);return b},propertiesChangedHandler:function(b,c,e){if(e.width&&e.height&&Object.keys(e).length==2){b._setSize();if(c=="width"){if(b.dropDownWidth=="auto"){var d=b.host.width();b.listBoxContainer.jqxListBox({width:d});b.container.width(parseInt(d)+25)}}b._arrange();b.close()}},propertyChangedHandler:function(b,c,f,e){if(b.isInitialized==undefined||b.isInitialized==false){return}if(b.batchUpdate&&b.batchUpdate.width&&b.batchUpdate.height&&Object.keys(b.batchUpdate).length==2){return}if(c=="template"){b.listBoxContainer.removeClass(b.toThemeProperty("jqx-"+f+"-item"));b.listBoxContainer.addClass(b.toThemeProperty("jqx-"+b.template+"-item"));b.host.removeClass(b.toThemeProperty("jqx-"+f+""));b.host.addClass(b.toThemeProperty("jqx-"+b.template+""))}if(c=="dropDownVerticalAlignment"){b.close();b.arrow.removeClass(b.toThemeProperty("jqx-icon-arrow-up"));b.arrow.removeClass(b.toThemeProperty("jqx-icon-arrow-down"));if(b.dropDownVerticalAlignment=="top"){b.arrow.addClass(b.toThemeProperty("jqx-icon-arrow-up"))}else{b.arrow.addClass(b.toThemeProperty("jqx-icon-arrow-down"))}b.listBoxContainer.css("top",0);b.listBoxContainer.removeClass(this.toThemeProperty("jqx-popup-up"))}if(c=="autoItemsHeight"){b.listBoxContainer.jqxListBox({autoItemsHeight:e})}if(c=="filterable"){b.listBoxContainer.jqxListBox({filterable:e})}if(c=="filterHeight"){b.listBoxContainer.jqxListBox({filterHeight:e})}if(c=="filterPlaceHolder"){b.listBoxContainer.jqxListBox({filterPlaceHolder:e})}if(c=="filterDelay"){b.listBoxContainer.jqxListBox({filterDelay:e})}if(c=="enableSelection"){b.listBoxContainer.jqxListBox({enableSelection:e})}if(c=="enableHover"){b.listBoxContainer.jqxListBox({enableHover:e})}if(c=="autoOpen"){b._updateHandlers()}if(c=="emptyString"){b.listBox.emptyString=b.emptyString}if(c=="itemHeight"){b.listBoxContainer.jqxListBox({itemHeight:e})}if(c=="renderer"){b.listBoxContainer.jqxListBox({renderer:e})}if(c=="rtl"){if(e){b.dropdownlistArrow.css("float","left");b.dropdownlistContent.css("float","right")}else{b.dropdownlistArrow.css("float","right");b.dropdownlistContent.css("float","left")}b.listBoxContainer.jqxListBox({rtl:b.rtl})}if(c=="source"){b.listBoxContainer.jqxListBox({source:b.source});b.listBox.selectedIndex=-1;b.listBox.selectIndex(this.selectedIndex);b.renderSelection();if(e==null){b.clear()}}if(c=="displayMember"||c=="valueMember"){b.listBoxContainer.jqxListBox({displayMember:b.displayMember,valueMember:b.valueMember});b.renderSelection()}if(c=="placeHolder"){b.renderSelection()}if(c=="theme"&&e!=null){b.listBoxContainer.jqxListBox({theme:e});b.listBoxContainer.addClass(b.toThemeProperty("jqx-popup"));a.jqx.utilities.setTheme(f,e,b.host)}if(c=="autoDropDownHeight"){b.listBoxContainer.jqxListBox({autoHeight:b.autoDropDownHeight});if(b.autoDropDownHeight){b.container.height(b.listBoxContainer.height()+25)}else{b.listBoxContainer.jqxListBox({height:b.dropDownHeight});b.container.height(parseInt(b.dropDownHeight)+25)}b.listBox._arrange();b.listBox._updatescrollbars()}if(c=="searchMode"){b.listBoxContainer.jqxListBox({searchMode:b.searchMode})}if(c=="incrementalSearch"){b.listBoxContainer.jqxListBox({incrementalSearch:b.incrementalSearch})}if(c=="incrementalSearchDelay"){b.listBoxContainer.jqxListBox({incrementalSearchDelay:b.incrementalSearchDelay})}if(c=="dropDownHeight"){if(!b.autoDropDownHeight){b.listBoxContainer.jqxListBox({height:b.dropDownHeight});b.container.height(parseInt(b.dropDownHeight)+25)}}if(c=="dropDownWidth"||c=="scrollBarSize"){var d=b.width;if(b.dropDownWidth!="auto"){d=b.dropDownWidth}b.listBoxContainer.jqxListBox({width:d,scrollBarSize:b.scrollBarSize});b.container.width(parseInt(d)+25)}if(c=="width"||c=="height"){if(e!=f){this.refresh();if(c=="width"){if(b.dropDownWidth=="auto"){var d=2+b.host.width();b.listBoxContainer.jqxListBox({width:d});b.container.width(parseInt(d)+25)}}b.close()}}if(c=="checkboxes"){b.listBoxContainer.jqxListBox({checkboxes:b.checkboxes})}if(c=="selectedIndex"){if(b.listBox!=null){b.listBox.selectIndex(parseInt(e));b.renderSelection()}}}})})(jqxBaseFramework)})();
/***/ }),
/***/ 7749:
/***/ (() => {
/* tslint:disable */
/* eslint-disable */
(function () {
if (typeof document === 'undefined') {
return;
}
(function ($) {
window.jqxToDash = function (value) {
return value.split(/(?=[A-Z])/).join('-').toLowerCase();
}
var LINE_SEPARATOR2 = "\r\n";
function returnAttributeIfPopulated(key, value, booleanTransformer) {
if (!value && value !== "" && value !== 0) {
return "";
}
let xmlValue = value;
if (typeof value === "boolean") {
if (booleanTransformer) {
xmlValue = booleanTransformer(value);
}
}
return ` ${key}="${xmlValue}"`;
}
var XmlFactory = class {
static createHeader(headerElement = {}) {
const headerStart = "<?";
const headerEnd = "?>";
const keys = ["version"];
if (!headerElement.version) {
headerElement.version = "1.0";
}
if (headerElement.encoding) {
keys.push("encoding");
}
if (headerElement.standalone) {
keys.push("standalone");
}
const att = keys.map((key) => `${key}="${headerElement[key]}"`).join(" ");
return `${headerStart}xml ${att} ${headerEnd}`;
}
static createXml(xmlElement, booleanTransformer) {
let props = "";
if (xmlElement.properties) {
if (xmlElement.properties.prefixedAttributes) {
xmlElement.properties.prefixedAttributes.forEach((prefixedSet) => {
Object.keys(prefixedSet.map).forEach((key) => {
props += returnAttributeIfPopulated(
prefixedSet.prefix + key,
prefixedSet.map[key],
booleanTransformer
);
});
});
}
if (xmlElement.properties.rawMap) {
Object.keys(xmlElement.properties.rawMap).forEach((key) => {
props += returnAttributeIfPopulated(key, xmlElement.properties.rawMap[key], booleanTransformer);
});
}
}
let result = "<" + xmlElement.name + props;
if (!xmlElement.children && xmlElement.textNode == null) {
return result + "/>" + LINE_SEPARATOR2;
}
if (xmlElement.textNode != null) {
return result + ">" + xmlElement.textNode + "</" + xmlElement.name + ">" + LINE_SEPARATOR2;
}
result += ">" + LINE_SEPARATOR2;
if (xmlElement.children) {
xmlElement.children.forEach((it) => {
result += this.createXml(it, booleanTransformer);
});
}
return result + "</" + xmlElement.name + ">" + LINE_SEPARATOR2;
}
};
class DataExporter {
constructor(exportDetails, groupBy, filterBy, conditionalFormatting) {
const that = this;
if (!exportDetails) {
exportDetails = {};
}
/*
* "style" object definition (all properties are optional):
*
* «any valid CSS property» - applied to whole table
* header (Object)
* «any valid CSS property» - applied to header cells
* «any column name» (Object)
* «any valid CSS property» - applied to particular column header cell
* columns (Object)
* «any valid CSS property» - applied to column cells
* «any column name» (Object)
* «any valid CSS property» - applied to the cells of particular column
* format - applicable to numeric and date columns
* «n» (Object), where «n» is a row index (related to use of "ConditionalFormatting" object)
* background
* border
* color
* rows (Object)
* «any valid CSS property» - applied to rows
* alternationCount
* alternationStart
* alternationEnd
* alternationIndex«n»Color, where «n» is an integer
* alternationIndex«n»BorderColor, where «n» is an integer
* alternationIndex«n»BackgroundColor, where «n» is an integer
* «n» (Object), where «n» is a row index
* «any valid CSS property» - applied to particular row
*/
that.style = exportDetails.style;
that.header = exportDetails.header;
that.exportHeader = exportDetails.exportHeader !== undefined ? exportDetails.exportHeader : true;
that.hierarchical = exportDetails.hierarchical;
that.expandChar = exportDetails.expandChar || '+';
that.collapseChar = exportDetails.collapseChar || '-';
that.pageOrientation = exportDetails.pageOrientation;
that.allowNull = exportDetails.allowNull || false;
that.spreadsheets = exportDetails.spreadsheets || null;
that._media = [];
if (!that.hierarchical && groupBy && groupBy.length > 0) {
that.groupBy = groupBy;
}
else {
that.mergedCells = exportDetails.mergedCells;
}
if (!that.groupBy && filterBy && Object.keys(filterBy).length > 0) {
that.filterBy = filterBy;
}
if (conditionalFormatting) {
that.conditionalFormatting = conditionalFormatting;
}
that.timeBetween1900And1970 = new Date(1970, 0, 1, 0, 0, 0).getTime() - new Date(1900, 0, 1, 0, 0, 0).getTime();
}
/**
* Generates and downloads a file.
*/
downloadFile(data, type, fileName) {
let file;
if (!fileName) {
return data;
}
if (data instanceof Blob) {
file = data;
}
else {
file = new Blob([data], { type: type });
}
if (window.navigator.msSaveOrOpenBlob) { // Edge
window.navigator.msSaveOrOpenBlob(file, fileName);
}
else { // Chrome, Firefox, Safari
const a = document.createElement('a'),
url = URL.createObjectURL(file);
a.href = url;
a.download = fileName;
a.style.position = 'absolute';
a.style.visibility = 'hidden';
document.body.appendChild(a);
a.click();
setTimeout(function () {
document.body.removeChild(a);
window.URL.revokeObjectURL(url);
}, 100);
}
}
/**
* Exports data.
*/
exportData(data, format, fileName, callback) {
const that = this;
that.actualHierarchy = that.hierarchical;
format = format.toLowerCase();
if (that.exportHeader) {
if (that.header) {
data = data.slice(0);
if (data.length === 0) {
that.actualHierarchy = false;
}
that.processComplexHeader(that.header, data, format);
}
else if (data.length === 1) {
that.actualHierarchy = false;
}
}
if (data.length === 0) {
// eslint-disable-next-line
console.warn('No data to export.');
return;
}
if (format === 'xlsx') {
that.xlsxStartIndex = that.complexHeader ? that.complexHeader.length : +that.exportHeader;
const offset = that.headerContent ? that.headerContent.length : 0;
that.xlsxStartIndex = that.xlsxStartIndex + offset;
}
if (that.actualHierarchy) {
data = that.processHierarchicalData(data, format);
}
that.getDatafields(data);
if (fileName && fileName.slice(fileName.length - format.length - 1, fileName.length) !== '.' + format) {
fileName += '.' + format;
}
let output = null;
switch (format) {
case 'csv':
output = that.exportToCSVAndTSV(data, { delimiter: ', ', MIME: 'text/csv;charset=utf-8;', toRemove: 2 }, fileName);
break;
case 'html':
output = that.exportToHTML(data, fileName);
break;
case 'jpeg':
case 'png':
that.exportToImage(data, fileName, format, callback);
break;
case 'json':
output = that.exportToJSON(data, fileName);
break;
case 'pdf':
output = that.exportToPDF(data, fileName);
break;
case 'tsv':
output = that.exportToCSVAndTSV(data, { delimiter: '\t', MIME: 'text/tab-separated-values', toRemove: 1 }, fileName);
break;
case 'xlsx':
output = that.exportToXLSX(data, fileName, callback);
break;
case 'xml':
output = that.exportToXML(data, fileName);
break;
case 'md':
output = that.exportToMD(data, fileName);
break;
}
if (callback && output) {
callback(output);
}
delete that.complexHeader;
return output;
}
/**
* Exports to CSV and TSV.
*/
exportToCSVAndTSV(data, formatOptions, fileName) {
const that = this,
datafields = that.datafields;
let stringResult = '';
for (let i = 0; i < data.length; i++) {
const currentRecord = data[i];
let stringifiedCurrentRecord = '';
for (let j = 0; j < datafields.length; j++) {
if (that.actualHierarchy && j === 0) {
stringifiedCurrentRecord += ('""' + formatOptions.delimiter).repeat(currentRecord._level - 1) +
'"' + currentRecord[datafields[j]] + '"' + formatOptions.delimiter +
('""' + formatOptions.delimiter).repeat(that.maxLevel - currentRecord._level);
continue;
}
stringifiedCurrentRecord += '"' + currentRecord[datafields[j]] + '"' + formatOptions.delimiter;
}
stringifiedCurrentRecord = stringifiedCurrentRecord.slice(0, stringifiedCurrentRecord.length - formatOptions.toRemove) + '\n';
stringResult += stringifiedCurrentRecord;
}
if (!fileName) {
return stringResult;
}
const bom = '\uFEFF';
const csvContent = bom + stringResult;
return this.downloadFile(csvContent, formatOptions.MIME, fileName);
}
/**
* Exports to HTML.
*/
exportToHTML(data, fileName) {
const that = this,
datafields = that.datafields,
style = that.style;
let header = '',
startIndex = 0,
html2canvas = '';
data = that.processGroupingInformation(data);
that.data = data;
if (that.exportHeader) {
header = that.getHTMLHeader(datafields, data);
startIndex = 1;
}
if (arguments[2]) {
const scripts = Array.from(document.getElementsByTagName('script')),
html2canvasScript = scripts.find(script => script.src.indexOf('html2canvas') !== -1);
html2canvas = `<script type="text/javascript" src="${html2canvasScript.src}"></script>`;
}
let htmlContent = `<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
${that.getRowStyle()}${that.getColumnStyle()}
</style>${html2canvas}${that.toggleableFunctionality()}
</head>
<body>
<table${that.getTableStyle()}>${header}
<tbody>\n`;
const mergedMainCells = {},
mergedSecondaryCells = {},
groupsHandled = [];
that.getMergedCellsInfo(mergedMainCells, mergedSecondaryCells);
mainLoop:
for (let i = startIndex; i < data.length; i++) {
const currentRecord = data[i],
row = i - startIndex;
let n = that.getAlternationIndex(row, ' rowN'),
toCollapse = '',
level = '',
groupId = '',
outlineLevel = 0;
if (that.actualHierarchy) {
if (currentRecord._collapsed) {
toCollapse = ' collapsed';
}
level = ` level="${currentRecord._level}"`;
}
else if (that.groupBy) {
for (let k = 0; k < that.groupBy.length; k++) {
const datafield = that.groupBy[k],
currentGroup = currentRecord[datafield],
currentGroupLabel = that.groups[datafield][currentGroup];
groupId += currentGroup;
if (groupsHandled.indexOf(groupId) === -1) {
htmlContent += ` <tr class="row">
<td class="column group" style="padding-left: ${outlineLevel * 25}px;" colspan="${that.datafields.length}">${currentGroupLabel}</td>
</tr>`;
groupsHandled.push(groupId);
i--;
continue mainLoop;
}
outlineLevel++;
}
}
let currentContent = ` <tr class="row row${row}${n}${toCollapse}"${level}`;
if (!fileName) {
currentContent += ' style="page-break-inside: avoid;"'
}
currentContent += '>\n';
for (let j = 0; j < datafields.length; j++) {
const cellCode = j + ',' + (row);
let colspan = 1, rowspan = 1;
if (mergedMainCells[cellCode]) {
colspan = mergedMainCells[cellCode].colspan;
rowspan = mergedMainCells[cellCode].rowspan;
}
else if (mergedSecondaryCells[cellCode]) {
continue;
}
const datafield = datafields[j];
let value = currentRecord[datafield],
indent = '';
if (that.actualHierarchy && j === 0) {
let sign = '';
if (currentRecord._expanded) {
sign = that.collapseChar;
}
else if (currentRecord._expanded === false) {
sign = that.expandChar;
}
indent = `<div class="toggle-element" style="margin-left: ${25 * (currentRecord._level - 1) + 5}px;" expanded>${sign}</div>`;
}
value = that.getFormattedValue(value, datafield);
if (typeof value === 'string' && (value.indexOf('base64') >= 0 || value.indexOf('.svg') >= 0 || value.indexOf('.png') >= 0 || value.indexOf('.jpeg') >= 0)) {
value = `<img height="30" src="${value}"/>`;
}
let css = '';
if (style && style.columns && style.columns[datafield] && style.columns[datafield][row]) {
const uniqueStyle = style.columns[datafield][row];
css += `border-color: ${uniqueStyle.border}; background-color: ${uniqueStyle.background}; color: ${uniqueStyle.color};"`;
}
if (j === 0 && outlineLevel > 1) {
css += `padding-left: ${(outlineLevel - 1) * 25}px;"`;
}
if (css) {
css = ` style="${css}"`;
}
currentContent += ` <td class="column column${datafield}"${css} colspan="${colspan}" rowspan="${rowspan}">${indent + value}</td>\n`;
}
htmlContent += currentContent + ' </tr>\n';
}
htmlContent += ` </tbody>
</table>
</body>
</html>`;
if (arguments[2]) {
return htmlContent;
}
return this.downloadFile(htmlContent, 'text/html', fileName);
}
/**
* Exports to an image (PNG/JPEG).
*/
exportToImage(data, fileName, fileExtension, callback) {
const that = this;
try {
html2canvas;
}
catch (error) {
throw new Error('jqx-grid: Missing reference to \'html2canvas.min.js\'.');
}
let imageData = null;
const htmlContent = that.exportToHTML(data, fileName, true),
iframe = document.createElement('iframe');
iframe.style.position = 'absolute';
iframe.style.top = 0;
iframe.style.left = 0;
iframe.style.border = 'none';
iframe.style.width = '100%';
iframe.style.height = '100%';
iframe.style.opacity = 0;
iframe.style.pointerEvents = 'none';
document.body.appendChild(iframe);
iframe.contentDocument.write(htmlContent);
function checkIframePopulated() {
if (!iframe.contentDocument.body || !iframe.contentDocument.body.firstElementChild) {
requestAnimationFrame(checkIframePopulated);
}
else {
iframe.contentWindow.html2canvas(iframe.contentDocument.body.firstElementChild).then(canvas => {
const draw = new JQX.Utilities.Draw(document.createElement('div'));
imageData = canvas.toDataURL('image/png');
if (callback) {
callback(imageData);
}
else {
document.body.appendChild(canvas);
draw.exportImage(undefined, canvas, fileExtension, fileName);
}
iframe.remove();
canvas.remove();
});
}
}
checkIframePopulated();
return imageData;
}
/**
* Gets merged cells information (for use in HTML and PDF export).
*/
getMergedCellsInfo(mergedMainCells, mergedSecondaryCells, mapping) {
const that = this;
if (!that.mergedCells) {
return;
}
const multipleTables = mapping && mapping[that.datafields.length - 1] !== 0;
that.mergedCellsPDF = that.mergedCells.slice(0);
for (let i = 0; i < that.mergedCellsPDF.length; i++) {
const cellDefinition = that.mergedCellsPDF[i];
let colspan = cellDefinition.colspan,
rowspan = cellDefinition.rowspan;
if (rowspan < 2 && colspan < 2) {
continue;
}
const row = cellDefinition.cell[1];
let col = cellDefinition.cell[0];
if (multipleTables && colspan > 1) {
const startTable = mapping[col],
endTable = mapping[col + colspan - 1],
splitCells = [];
if (endTable > startTable) {
let currentTable = startTable,
currentColumn = col,
overal = 0;
mainLoop:
for (let i = startTable; i <= endTable; i++) {
let start = currentColumn,
span = 0;
while (mapping[currentColumn] === currentTable) {
currentColumn++;
overal++;
span++;
if (overal === colspan) {
splitCells.push({ start: start, span: span });
break mainLoop;
}
}
splitCells.push({ start: start, span: span });
currentTable = mapping[currentColumn];
}
colspan = splitCells[0].span;
for (let i = 1; i < splitCells.length; i++) {
that.mergedCellsPDF.push({ cell: [splitCells[i].start, row], colspan: splitCells[i].span, rowspan: rowspan, originalCell: col });
}
}
}
for (let j = col; j < col + colspan; j++) {
for (let k = row; k < row + rowspan; k++) {
const code = j + ',' + k;
if (j === col && k === row) {
mergedMainCells[code] = { colspan: colspan, rowspan: rowspan, originalCell: cellDefinition.originalCell };
continue;
}
mergedSecondaryCells[code] = true;
}
}
}
}
/**
* Gets alternation index.
*/
getAlternationIndex(row, prefix) {
const that = this;
if (!that.style) {
return '';
}
const rowsDefinition = that.style.rows,
alternationCount = rowsDefinition && rowsDefinition.alternationCount;
if (alternationCount &&
(((rowsDefinition.alternationStart === undefined || row >= rowsDefinition.alternationStart) &&
(rowsDefinition.alternationEnd === undefined || row <= rowsDefinition.alternationEnd)) ||
rowsDefinition.alternationStart === rowsDefinition.alternationEnd)) {
return prefix + (row % rowsDefinition.alternationCount);
}
return '';
}
/**
* Gets formatted numeric or date value (for use in HTML and PDF export).
*/
getFormattedValue(value, datafield) {
const that = this,
style = that.style;
if (value === null) {
return that.allowNull ? 'null' : '';
}
if (datafield && style && style.columns &&
style.columns[datafield] && style.columns[datafield].format) {
if (typeof value === 'number') {
return that.formatNumber(value, style.columns[datafield].format);
}
else if (value instanceof Date) {
return that.formatDate(value, style.columns[datafield].format);
}
}
else if (value instanceof Date) {
return that.formatDate(value, 'd');
}
return value;
}
/**
* Exports to JSON.
*/
exportToJSON(data, fileName) {
return this.downloadFile(JSON.stringify(data, this.datafields.concat('rows')), 'application/json', fileName);
}
/**
* Export to Markdown(MD)
* @param {string} data - the data to export
* @param {string} fileName - the name of the file
* @returns
*/
exportToMD(data, fileName) {
const that = this,
dataFields = that.datafields;
let text = '';
for (let i = 0, max = data.length; i < max; i += 1) {
for (let j = 0, max = dataFields.length; j < max; j += 1) {
const dataField = data[i][dataFields[j]];
if (typeof dataField === 'string') {
text += dataField;
}
}
}
return that.downloadFile(text, 'application/text', fileName);
}
/**
* Exports to PDF.
*/
exportToPDF(data, fileName) {
try {
pdfMake;
}
catch (error) {
throw new Error('Missing reference to \'pdfmake.min.js\'.');
}
const that = this,
datafields = that.datafields,
startIndex = +that.exportHeader,
groupsHandled = [],
mergedMainCells = {},
mergedSecondaryCells = {},
mapping = {},
headerRows = startIndex ? that.complexHeader ? that.complexHeader.length : 1 : 0,
docDefinition = {
pageOrientation: that.pageOrientation || 'portrait'
};
let header = [], content = [], tables;
function createTableRow() {
let tableRow = [];
for (let i = 0; i < tables.length; i++) {
tableRow.push([]);
}
return tableRow;
}
data = that.processGroupingInformation(data);
that.data = data;
that.headerRows = headerRows;
that.getPDFStyle();
const styleInfo = that.styleInfo;
tables = styleInfo ? that.wrapPDFColumns(docDefinition, mapping) : [{ body: header, datafields: datafields }];
if (startIndex) {
header = that.getPDFHeader(datafields, tables, mapping);
}
that.getMergedCellsInfo(mergedMainCells, mergedSecondaryCells, mapping);
mainLoop:
for (let i = startIndex; i < data.length; i++) {
const currentRecord = data[i];
let groupId = '',
outlineLevel = 0;
if (that.groupBy) {
for (let k = 0; k < that.groupBy.length; k++) {
const datafield = that.groupBy[k],
currentGroup = currentRecord[datafield],
currentGroupLabel = that.groups[datafield][currentGroup];
groupId += currentGroup;
if (groupsHandled.indexOf(groupId) === -1) {
that.createGroupHeaderRow(tables, { text: currentGroupLabel, style: ['row', 'cell', 'group'], marginLeft: outlineLevel * 7.5 });
groupsHandled.push(groupId);
i--;
continue mainLoop;
}
outlineLevel++;
}
}
const tableRow = createTableRow(),
row = i - startIndex;
let n = that.getAlternationIndex(row, '');
for (let j = 0; j < datafields.length; j++) {
const datafield = datafields[j],
entry = { style: ['row', 'row' + row, 'cell', 'cell' + datafield] },
tableIndex = mapping[j] || 0;
if (n !== undefined) {
entry.style.splice(1, 0, 'rowN' + n);
}
if (that.mergedCellsPDF) {
const cellCode = j + ',' + row,
mergeInfo = mergedMainCells[cellCode];
if (mergeInfo) {
entry.colSpan = mergeInfo.colspan;
entry.rowSpan = mergeInfo.rowspan;
if (mergeInfo.originalCell !== undefined) {
entry.text = '';
entry.style[entry.style.length - 1] = 'cell' + datafields[mergeInfo.originalCell];
tableRow[tableIndex].push(entry);
continue;
}
}
else if (mergedSecondaryCells[cellCode]) {
tableRow[tableIndex].push({});
continue;
}
}
const value = that.getFormattedValue(currentRecord[datafield], datafield);
entry.text = value.toString();
that.getUniqueStylePDF(entry, datafield, row);
that.setIndentation(entry, { j: j, currentRecord: currentRecord, value: value, outlineLevel: outlineLevel });
tableRow[tableIndex].push(entry);
}
for (let k = 0; k < tables.length; k++) {
tables[k].body.push(tableRow[k]);
}
}
if (styleInfo) {
for (let i = 0; i < tables.length; i++) {
const body = tables[i].body;
for (let j = headerRows - 1; j >= 0; j--) {
body.unshift(header[i][j]);
}
content.push({
table: {
headerRows: headerRows,
widths: tables[i].widths,
heights: function (row) {
if (styleInfo.heights[row]) {
return styleInfo.heights[row];
}
if (styleInfo.defaultHeight) {
return styleInfo.defaultHeight;
}
},
body: body
},
pageBreak: 'after'
});
}
delete content[tables.length - 1].pageBreak;
docDefinition.styles = styleInfo.styles;
}
else {
const body = tables[0].body;
for (let j = headerRows - 1; j >= 0; j--) {
body.unshift(header[0][j]);
}
content = [{ table: { headerRows: headerRows, body: body } }];
docDefinition.styles = { header: { bold: true }, group: { bold: true } };
}
docDefinition.content = content;
if (!fileName) {
const output = pdfMake.createPdf(docDefinition);
delete that.mergedCellsPDF;
delete that.styleInfo;
return output;
}
pdfMake.createPdf(docDefinition).download(fileName);
delete that.mergedCellsPDF;
delete that.styleInfo;
}
/**
* Gets the header content when exporting to PDF.
*/
getPDFStyle() {
const that = this,
style = that.style;
if (!style) {
return '';
}
const sampleRecord = that.data[0],
headerDefinition = style.header,
columnsDefinition = style.columns,
rowsDefinition = style.rows,
styleInfo = {
heights: [],
widths: Array(that.datafields.length).fill('*'),
styles: {
header: {},
row: {},
cell: {},
group: { fillColor: '#FFFFFF', color: '#000000', bold: true }
}
};
that.styleInfo = styleInfo;
function processStyleDefinition(definition, type) {
if (!definition) {
return;
}
for (let prop in definition) {
if (!Object.prototype.hasOwnProperty.call(definition, prop)) {
continue;
}
if (sampleRecord[prop] === undefined) {
if (prop === 'height' && type === 'header') {
for (let i = 0; i < that.headerRows; i++) {
styleInfo.heights[i] = (parseInt(definition[prop], 10) / that.headerRows) / 1.4;
}
}
else {
that.storePDFStyle({ prop: prop, value: definition[prop], toUpdate: type });
}
}
else {
for (let columnProp in definition[prop]) {
if (!isNaN(columnProp) || !Object.prototype.hasOwnProperty.call(definition[prop], columnProp)) {
continue;
}
const value = definition[prop][columnProp],
index = that.datafields.indexOf(prop);
if (columnProp === 'width' && styleInfo.widths[index] === '*') {
styleInfo.widths[index] = value;
}
else {
that.storePDFStyle({ prop: columnProp, value: value, toUpdate: type + prop });
}
}
}
}
}
processStyleDefinition(headerDefinition, 'header');
processStyleDefinition(columnsDefinition, 'cell');
if (!rowsDefinition) {
return;
}
for (let prop in rowsDefinition) {
if (!Object.prototype.hasOwnProperty.call(rowsDefinition, prop) || prop.indexOf('alt') !== -1) {
continue;
}
const value = rowsDefinition[prop];
if (!isNaN(prop)) {
for (let rowProp in value) {
if (Object.prototype.hasOwnProperty.call(value, rowProp)) {
if (rowProp === 'height') {
styleInfo.heights[parseFloat(prop) + that.headerRows] = parseFloat(value[rowProp]) / 1.4;
}
else {
that.storePDFStyle({ prop: rowProp, value: value[rowProp], toUpdate: 'row' + prop });
}
}
}
continue;
}
if (prop === 'height') {
styleInfo.defaultHeight = parseFloat(value) / 1.4;
}
else {
that.storePDFStyle({ prop: prop, value: value, toUpdate: 'row' });
}
}
if (!rowsDefinition.alternationCount) {
return;
}
for (let i = 0; i < rowsDefinition.alternationCount; i++) {
const styleN = {};
if (rowsDefinition[`alternationIndex${i}Color`]) {
styleN.color = rowsDefinition[`alternationIndex${i}Color`];
}
if (rowsDefinition[`alternationIndex${i}BackgroundColor`]) {
styleN.fillColor = rowsDefinition[`alternationIndex${i}BackgroundColor`];
}
styleInfo.styles['rowN' + i] = styleN;
}
}
/**
* Stores style in object to be applied to generated PDF.
*/
storePDFStyle(details) {
const that = this;
let objectToUpdate = that.styleInfo.styles[details.toUpdate];
if (!objectToUpdate) {
objectToUpdate = {};
that.styleInfo.styles[details.toUpdate] = objectToUpdate;
}
let value = details.value;
switch (details.prop) {
case 'backgroundColor':
objectToUpdate.fillColor = value;
break;
case 'color':
objectToUpdate.color = value;
break;
case 'fontSize':
objectToUpdate.fontSize = parseFloat(value);
break;
case 'fontStyle':
if (value === 'italic') {
objectToUpdate.italics = true;
}
break;
case 'fontWeight':
if (value === 'bold') {
objectToUpdate.bold = true;
}
break;
case 'textAlign':
objectToUpdate.alignment = value;
break;
}
}
/**
* Enables column wrapping when exporting to PDF.
*/
wrapPDFColumns(docDefinition, mapping) {
const that = this,
styleInfo = this.styleInfo,
maxPerPage = docDefinition.pageOrientation === 'portrait' ? 655 : 1155, // maximum of 655px (portrait) or 1155px (landscape) per A4 page
tables = [];
let currentPage = 0;
for (let i = 0; i < styleInfo.widths.length; i++) {
let currentWidth = styleInfo.widths[i],
numericWidth;
if (currentWidth === '*') {
numericWidth = maxPerPage / 6;
}
else if (typeof currentWidth === 'string' && currentWidth.indexOf('%') !== -1) {
numericWidth = Math.min(maxPerPage, Math.floor((parseFloat(currentWidth) / 100) * maxPerPage));
if (numericWidth === maxPerPage) {
currentWidth = '*';
}
}
else {
currentWidth = parseFloat(currentWidth);
if (currentWidth >= maxPerPage) {
numericWidth = maxPerPage
currentWidth = '*';
}
else {
numericWidth = currentWidth;
currentWidth /= 1.4;
}
}
if (tables[currentPage] === undefined) {
const body = [];
tables[currentPage] = {
body: body,
width: numericWidth,
widths: [currentWidth],
datafields: [that.datafields[i]]
};
mapping[i] = currentPage;
continue;
}
const table = tables[currentPage];
if (table.width + numericWidth > maxPerPage) {
currentPage++;
i--;
continue;
}
mapping[i] = currentPage;
table.width += numericWidth;
table.widths.push(currentWidth);
table.datafields.push(that.datafields[i]);
}
return tables;
}
/**
* Gets the header content when exporting to PDF.
*/
getPDFHeader(datafields, tables, mapping) {
const that = this,
headerArray = [],
headerRows = that.headerRows,
headers = [],
headerDataFields = [];
let result = [],
headerStructure, headerDataFieldStructure;
if (that.complexHeader) {
headerStructure = that.complexHeader;
headerDataFieldStructure = that.complexDataFieldsHeader;
}
else {
headerStructure = [Object.values(that.data[0])];
headerDataFieldStructure = headerStructure;
}
for (let i = 0; i < headerRows; i++) {
const row = headerStructure[i],
rowDataField = headerDataFieldStructure[i];
for (let k = 0; k < row.length; k++) {
let tableIndex = mapping[k] || 0;
if (!headers[tableIndex]) {
headers[tableIndex] = [];
headerDataFields[tableIndex] = [];
}
if (!headers[tableIndex][i]) {
headers[tableIndex][i] = [];
headerDataFields[tableIndex][i] = [];
}
headers[tableIndex][i].push(row[k]);
headerDataFields[tableIndex][i].push(rowDataField[k]);
}
}
function processHeader(header, headerDataField, result, table) {
for (let j = 0; j < headerRows; j++) {
const row = header[j],
rowDataField = headerDataField[j];
const tableRow = [];
for (let k = 0; k < row.length; k++) {
const currentDataField = rowDataField[k];
let colspan = 1, rowspan = 1;
if ((rowDataField[k - 1] && rowDataField[k - 1] === currentDataField) ||
(headerDataField[j - 1] && (headerDataField[j - 1][k] === currentDataField))) {
tableRow.push({});
continue;
}
let iterator = k + 1;
while (rowDataField[iterator] && rowDataField[iterator] === rowDataField[iterator - 1]) {
colspan++;
iterator++;
}
iterator = j + 1;
while (headerDataField[iterator] && headerDataField[iterator][k] === currentDataField) {
rowspan++;
iterator++;
}
const datafield = j === headerRows - 1 || rowspan + j === headerRows ?
table.datafields[k] : null,
entry = {
text: row[k], colSpan: colspan, rowSpan: rowspan
};
if (!datafield) {
entry.alignment = 'center';
entry.style = 'header';
}
else {
entry.style = ['header', 'header' + datafield];
}
tableRow.push(entry);
}
result.push(tableRow);
}
}
for (let i = 0; i < tables.length; i++) {
result = [];
processHeader(headers[i], headerDataFields[i], result, tables[i]);
headerArray.push(result);
}
return headerArray;
}
/**
* Creates group header rows when exporting to PDF.
*/
createGroupHeaderRow(tables, entryTemplate) {
for (let i = 0; i < tables.length; i++) {
const entry = Object.assign({}, entryTemplate),
colspan = tables[i].datafields.length,
tableRow = [entry];
entry.colSpan = colspan;
tableRow.length = colspan;
tableRow.fill({}, 1, colspan - 1);
tables[i].body.push(tableRow);
}
}
/**
* Gets unique cell style when exporting to PDF.
*/
getUniqueStylePDF(entry, datafield, row) {
const style = this.style;
function toHex(background) {
const parts = /rgba\((\d+),(\d+),(\d+)\,(\d*.\d+|\d+)\)/gi.exec(background.replace(/\s/g, ''));
if (parts === null) {
return background;
}
const r = parseFloat(parts[1]).toString(16).toUpperCase(),
g = parseFloat(parts[2]).toString(16).toUpperCase(),
b = parseFloat(parts[3]).toString(16).toUpperCase();
return '#' + ('0').repeat(2 - r.length) + r +
('0').repeat(2 - g.length) + g +
('0').repeat(2 - b.length) + b;
}
if (!style || !style.columns || !style.columns[datafield]) {
return;
}
const uniqueStyle = style.columns[datafield][row];
if (!uniqueStyle) {
return;
}
entry.fillColor = toHex(uniqueStyle.background);
entry.color = uniqueStyle.color.toLowerCase();
}
/**
* Sets the indentation of a PDF cell.
*/
setIndentation(entry, details) {
if (details.j !== 0) {
return;
}
const that = this;
if (that.actualHierarchy) {
const currentRecord = details.currentRecord;
if (currentRecord._expanded !== undefined) {
entry.marginLeft = 25 * (currentRecord._level - 1);
entry.text = that.collapseChar + ' ' + details.value;
}
else {
entry.marginLeft = 25 * (currentRecord._level - 1) + 6;
}
}
else if (details.outlineLevel > 1) {
entry.marginLeft = (details.outlineLevel - 1) * 7.5;
}
}
addBodyImageToMap(image, rowIndex, col, columnsToExport) {
const sheetIndex = 1;
const { row, column } = image.position || {};
const calculatedImage = image;
if (columnsToExport) {
if (rowIndex !== null && col !== null && (!row || !column)) {
if (!image.position) {
image.position = {};
}
image.position = Object.assign({}, image.position, {
row: rowIndex,
column: columnsToExport.indexOf(col) + 1
});
}
calculatedImage.totalWidth = calculatedImage.width;
calculatedImage.totalHeight = calculatedImage.height;
}
this.buildImageMap({ imageToAdd: calculatedImage, idx: sheetIndex });
let worksheetImageIdMap = this.worksheetImageIds.get(sheetIndex);
if (!worksheetImageIdMap) {
worksheetImageIdMap = new Map();
this.worksheetImageIds.set(sheetIndex, worksheetImageIdMap);
}
const sheetImages = this.worksheetImages.get(sheetIndex);
if (!sheetImages) {
this.worksheetImages.set(sheetIndex, [calculatedImage]);
} else {
sheetImages.push(calculatedImage);
}
if (!worksheetImageIdMap.get(image.id)) {
worksheetImageIdMap.set(image.id, { index: worksheetImageIdMap.size, type: image.imageType });
}
}
buildImageMap(params) {
const { imageToAdd, idx } = params;
const mappedImagesToSheet = this.images.get(imageToAdd.id);
if (mappedImagesToSheet) {
const currentSheetImages = mappedImagesToSheet.find((currentImage) => currentImage.sheetId === idx);
if (currentSheetImages) {
currentSheetImages.image.push(imageToAdd);
} else {
mappedImagesToSheet.push({
sheetId: idx,
image: [imageToAdd]
});
}
} else {
this.images.set(imageToAdd.id, [{ sheetId: idx, image: [imageToAdd] }]);
this.workbookImageIds.set(imageToAdd.id, { type: imageToAdd.imageType, index: this.workbookImageIds.size });
}
}
createXmlPart(body, skipHeader) {
const header = XmlFactory.createHeader({
encoding: "UTF-8",
standalone: "yes"
});
const xmlBody = XmlFactory.createXml(body);
if (skipHeader) {
return xmlBody;
}
return `${header}${xmlBody}`;
}
generateWorksheetImages(zip, xl, data) {
const that = this;
this.images = new Map();
this.worksheetImages = new Map();
this.worksheetHeaderFooterImages = new Map();
this.workbookImageIds = new Map();
this.worksheetImageIds = new Map();
let drawingIndex = 0;
let imgCounter = 0;
let imgIndex = 0;
if (that.addImageToCell) {
let offset = that.headerContent ? that.headerContent.length : 0;
if (that.complexHeader) {
offset += that.complexHeader.length - 1;
}
for (let i = 1 + offset; i < data.length; i++) {
const row = data[i];
for (let j = 0; j < that.datafields.length; j++) {
const dataField = that.datafields[j];
let value = row[dataField];
if (value && Array.isArray(value)) {
for (let m = 0; m < value.length; m++) {
const addedImage = that.addImageToCell(i + imgIndex++, dataField, value[m], value, row, m);
if (addedImage) {
row[dataField] = '';
this.addBodyImageToMap(
addedImage.image,
1 + i,
dataField,
that.datafields
);
}
}
continue;
}
const addedImage = that.addImageToCell(i + imgIndex++, dataField, value, value, row, 0);
if (addedImage) {
row[dataField] = '';
if (addedImage.value && addedImage.value !== value) {
row[dataField] = addedImage.value;
}
this.addBodyImageToMap(
addedImage.image,
1 + i,
dataField,
that.datafields
);
}
}
}
if (that.headerContent) {
for (let m = 0; m < that.headerContent.length; m++) {
const row = data[m];
for (let j = 0; j < that.datafields.length; j++) {
const dataField = that.datafields[j];
const value = row[dataField];
const addedImage = that.addImageToCell(m + 1, dataField, value, value, row, 0);
if (addedImage) {
row[dataField] = '';
this.addBodyImageToMap(
addedImage.image,
1 + m,
dataField,
that.datafields
);
}
}
}
}
this.images.forEach((value) => {
const firstImage = value[0].image[0];
const { base64, imageType } = firstImage;
const ext = imageType === 'jpg' ? 'jpeg' : imageType;
// Function to convert a base64 string to a Blob
const base64ToBlob = (base64, mimeType) => {
if (!base64) {
base64 = '';
}
const byteCharacters = atob(base64);
const byteNumbers = new Array(byteCharacters.length);
for (let i = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i);
}
const byteArray = new Uint8Array(byteNumbers);
return new Blob([byteArray], { type: mimeType });
}
let imageBlob;
// Convert the Base64 string to a PNG Blob
if (base64 && Array.isArray(base64)) {
imageBlob = base64ToBlob(base64[0].split(',')[1], 'image/' + ext);
}
else {
imageBlob = base64ToBlob(base64.split(',')[1], 'image/' + ext);
}
zip.file(`xl/media/image${++imgCounter}.${ext}`, imageBlob, true);
});
}
let imageRelationCounter = 0;
var INCH_TO_EMU = 9525;
var pixelsToEMU = (value) => {
return Math.ceil(value * INCH_TO_EMU);
};
var getImageBoxSize = (image) => {
image.fitCell = !!image.fitCell || !image.width || !image.height;
const { position = {}, fitCell, width = 0, height = 0, totalHeight, totalWidth } = image;
const { offsetX = 0, offsetY = 0, row = 1, rowSpan = 1, column = 1, colSpan = 1 } = position;
return {
from: {
row: row - 1,
col: column - 1,
offsetX: pixelsToEMU(offsetX),
offsetY: pixelsToEMU(offsetY)
},
to: {
row: row - 1 + (fitCell ? 1 : rowSpan - 1),
col: column - 1 + (fitCell ? 1 : colSpan - 1),
offsetX: pixelsToEMU(width + offsetX),
offsetY: pixelsToEMU(height + offsetY)
},
height: pixelsToEMU(totalHeight || height),
width: pixelsToEMU(totalWidth || width)
};
};
var getPicture = (image, currentIndex, worksheetImageIndex, imageBoxSize) => {
return {
name: "xdr:pic",
children: [
getNvPicPr(image, currentIndex + 1),
getBlipFill(image, worksheetImageIndex + 1),
getSpPr(image, imageBoxSize)
]
};
};
var getBlipFill = (image, index) => {
let blipChildren;
if (image.transparency) {
const transparency = Math.min(Math.max(image.transparency, 0), 100);
blipChildren = [
{
name: "a:alphaModFix",
properties: {
rawMap: {
amt: 1e5 - Math.round(transparency * 1e3)
}
}
}
];
}
if (image.recolor) {
if (!blipChildren) {
blipChildren = [];
}
switch (image.recolor.toLocaleLowerCase()) {
case "grayscale":
blipChildren.push({ name: "a:grayscl" });
break;
case "sepia":
blipChildren.push(getDuoTone({ color: "black" }, { color: "D9C3A5", tint: 50, saturation: 180 }));
break;
case "washout":
blipChildren.push({
name: "a:lum",
properties: {
rawMap: {
bright: "70000",
contrast: "-70000"
}
}
});
break;
default:
}
}
return {
name: "xdr:blipFill",
children: [
{
name: "a:blip",
properties: {
rawMap: {
cstate: "print",
"r:embed": `rId${index}`,
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
}
},
children: blipChildren
},
{
name: "a:stretch",
children: [
{
name: "a:fillRect"
}
]
}
]
};
};
var getSpPr = (image, imageBoxSize) => {
const xfrm = {
name: "a:xfrm",
children: [
{
name: "a:off",
properties: {
rawMap: {
x: 0,
y: 0
}
}
},
{
name: "a:ext",
properties: {
rawMap: {
cx: imageBoxSize.width,
cy: imageBoxSize.height
}
}
}
]
};
if (image.rotation) {
const rotation = image.rotation;
xfrm.properties = {
rawMap: {
rot: Math.min(Math.max(rotation, 0), 360) * 6e4
}
};
}
const prstGeom = {
name: "a:prstGeom",
properties: {
rawMap: {
prst: "rect"
}
},
children: [{ name: "a:avLst" }]
};
const ret = {
name: "xdr:spPr",
children: [xfrm, prstGeom]
};
return ret;
};
var getExt = (image) => {
const children = [
{
name: "a:ext",
properties: {
rawMap: {
uri: "{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"
}
},
children: [
{
name: "a16:creationId",
properties: {
rawMap: {
id: "{822E6D20-D7BC-2841-A643-D49A6EF008A2}",
"xmlns:a16": "http://schemas.microsoft.com/office/drawing/2014/main"
}
}
}
]
}
];
const recolor = image.recolor && image.recolor.toLowerCase();
switch (recolor) {
case "grayscale":
case "sepia":
case "washout":
children.push({
name: "a:ext",
properties: {
rawMap: {
uri: "{C183D7F6-B498-43B3-948B-1728B52AA6E4}"
}
},
children: [
{
name: "adec:decorative",
properties: {
rawMap: {
val: "0",
"xmlns:adec": "http://schemas.microsoft.com/office/drawing/2017/decorative"
}
}
}
]
});
}
return {
name: "a:extLst",
children
};
};
var getNvPicPr = (image, index) => ({
name: "xdr:nvPicPr",
children: [
{
name: "xdr:cNvPr",
properties: {
rawMap: {
id: index,
name: image.id,
descr: image.altText != null ? image.altText : void 0
}
},
children: [getExt(image)]
},
{
name: "xdr:cNvPicPr",
properties: {
rawMap: {
preferRelativeResize: "0"
}
},
children: [
{
name: "a:picLocks"
}
]
}
]
});
var getAnchor = (name, imageAnchor) => ({
name: `xdr:${name}`,
children: [
{
name: "xdr:col",
textNode: imageAnchor.col.toString()
},
{
name: "xdr:colOff",
textNode: imageAnchor.offsetX.toString()
},
{
name: "xdr:row",
textNode: imageAnchor.row.toString()
},
{
name: "xdr:rowOff",
textNode: imageAnchor.offsetY.toString()
}
]
});
var drawingFactory = {
getTemplate(config) {
const { sheetIndex } = config;
const sheetImages = that.worksheetImages.get(sheetIndex);
const sheetImageIds = that.worksheetImageIds.get(sheetIndex);
const children = sheetImages.map((image, idx) => {
const boxSize = getImageBoxSize(image);
return {
name: "xdr:twoCellAnchor",
properties: {
rawMap: {
editAs: "absolute"
}
},
children: [
getAnchor("from", boxSize.from),
getAnchor("to", boxSize.to),
getPicture(image, idx, sheetImageIds.get(image.id).index, boxSize),
{ name: "xdr:clientData" }
]
};
});
return {
name: "xdr:wsDr",
properties: {
rawMap: {
"xmlns:xdr": "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
}
},
children
};
}
};
const createDrawing = (sheetIndex) => {
return this.createXmlPart(drawingFactory.getTemplate({ sheetIndex }));
}
// enterprise-modules/excel-export/src/excelExport/files/ooxml/relationship.ts
var relationshipFactory = {
getTemplate(config) {
const { Id, Type, Target } = config;
return {
name: "Relationship",
properties: {
rawMap: {
Id,
Type,
Target
}
}
};
}
};
var relationship_default = relationshipFactory;
// enterprise-modules/excel-export/src/excelExport/files/ooxml/relationships.ts
var relationshipsFactory = {
getTemplate(c) {
const children = c.map((relationship) => relationship_default.getTemplate(relationship));
return {
name: "Relationships",
properties: {
rawMap: {
xmlns: "http://schemas.openxmlformats.org/package/2006/relationships"
}
},
children
};
}
};
var relationships_default = relationshipsFactory;
const createDrawingRel = (sheetIndex) => {
const worksheetImageIds = this.worksheetImageIds.get(sheetIndex) || [];
const XMLArr = [];
for (const [key, value] of worksheetImageIds) {
XMLArr.push({
Id: `rId${value.index + 1}`,
Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
Target: `../media/image${this.workbookImageIds.get(key).index + 1}.${value.type}`
});
}
return this.createXmlPart(relationshipsFactory.getTemplate(XMLArr));
}
var createExcelXmlDrawings = (sheetIndex, drawingIndex) => {
const drawingFolder = 'xl/drawings';
const drawingFileName = `${drawingFolder}/drawing${drawingIndex + 1}.xml`;
const relFileName = `${drawingFolder}/_rels/drawing${drawingIndex + 1}.xml.rels`;
zip.file(relFileName, createDrawingRel(sheetIndex));
zip.file(drawingFileName, createDrawing(sheetIndex));
};
for (let i = 1; i < data.length; i++) {
const hasImages = this.worksheetImages.has(i);
if (hasImages) {
createExcelXmlDrawings(i, imageRelationCounter);
drawingIndex = imageRelationCounter;
imageRelationCounter++;
}
}
const createRelationships = ({
drawingIndex,
tableIndex
} = {}) => {
if (drawingIndex === void 0 && tableIndex === void 0) {
return '';
}
const config = [];
if (drawingIndex !== null && imgCounter > 0) {
config.push({
Id: `rId${config.length + 1}`,
Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",
Target: `../drawings/drawing${drawingIndex + 1}.xml`
});
}
if (tableIndex !== null) {
config.push({
Id: `rId${config.length + 1}`,
Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",
Target: `../tables/table1.xml`
});
}
const rs = relationships_default.getTemplate(config);
return this.createXmlPart(rs);
}
var tableIndex = this.exportAsTable ? 1 : 0;
const worksheetRelFile = `xl/worksheets/_rels/sheet1.xml.rels`;
zip.file(
worksheetRelFile,
createRelationships({
tableIndex,
drawingIndex
})
);
}
/**
* Exports to XLSX.
*/
exportToXLSX(data, fileName, callback) {
try {
JSZip;
}
catch (error) {
throw new Error('Missing reference to \'jszip.min.js\'.');
}
const that = this;
let style = that.style;
data = that.processGroupingInformation(data, true);
that.data = data;
that.getColumnsArray();
that.complexHeaderMergedCells = [];
if (that.complexHeaderMergeInfo) {
for (let cell in that.complexHeaderMergeInfo) {
if (Object.prototype.hasOwnProperty.call(that.complexHeaderMergeInfo, cell)) {
const currentEntry = that.complexHeaderMergeInfo[cell];
if (currentEntry.from[0] === currentEntry.to[0] &&
currentEntry.from[1] === currentEntry.to[1]) {
continue;
}
that.complexHeaderMergedCells.push({
from: that.columnsArray[currentEntry.from[1]] + (currentEntry.from[0] + 1),
to: that.columnsArray[currentEntry.to[1]] + (currentEntry.to[0] + 1)
});
}
}
}
that.getConditionalFormatting();
if (!style) {
style = that.generateDefaultStyle(data);
}
// eslint-disable-next-line
const zip = new JSZip(),
_rels = zip.folder('_rels'),
docProps = zip.folder('docProps'),
xl = zip.folder('xl');
if (that.headerContent) {
const rows = that.headerContent;
const customRows = [];
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
const cells = row.cells;
let customRow = {};
for (let j = 0; j < that.datafields.length; j++) {
const dataField = that.datafields[j];
if (cells[dataField]) {
customRow[dataField] = cells[dataField];
}
else {
customRow[dataField] = null;
}
}
customRows.push(customRow);
}
data = [...customRows, ...data];
}
if (that.footerContent) {
const rows = that.footerContent;
const customRows = [];
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
const cells = row.cells;
let customRow = {};
for (let j = 0; j < that.datafields.length; j++) {
const dataField = that.datafields[j];
if (cells[dataField]) {
customRow[dataField] = cells[dataField];
}
else {
customRow[dataField] = null;
}
}
customRows.push(customRow);
}
data = [...data, ...customRows];
}
this.generateWorksheetImages(zip, xl, data);
const sharedStrings = that.generateSharedStrings(data),
sharedStringsCollection = sharedStrings.collection,
sharedStringsXML = sharedStrings.xml,
stylesXML = that.generateStyles(style),
sheet1XML = that.groupBy ? that.generateSheet1WithGrouping(data, sharedStringsCollection) :
that.generateSheet1(data, sharedStringsCollection, that.datafields, that.columnsArray),
auxiliaryFiles = that.generateAuxiliaryFiles();
let hasImages = false;
const worksheetImages = this.worksheetImages.get(1);
if (worksheetImages && worksheetImages.length) {
hasImages = true;
}
const xl_rels = xl.folder('_rels'),
theme = xl.folder('theme'),
worksheets = xl.folder('worksheets');
if (hasImages) {
const media = xl.folder('media'),
drawings = xl.folder('drawings'),
drawingsRels = xl.folder('drawings/_rels');
}
_rels.file('.rels', auxiliaryFiles._relsRels);
docProps.file('app.xml', auxiliaryFiles.docPropsAppXml);
docProps.file('core.xml', auxiliaryFiles.docPropsCoreXml);
xl_rels.file('workbook.xml.rels', auxiliaryFiles.xl_relsWorkbookXmlRels);
theme.file('theme1.xml', auxiliaryFiles.xlThemeTheme1Xml);
worksheets.file('sheet1.xml', sheet1XML);
xl.file('sharedStrings.xml', sharedStringsXML);
xl.file('styles.xml', stylesXML);
xl.file('workbook.xml', auxiliaryFiles.xlWorkbookXml);
zip.file('[Content_Types].xml', auxiliaryFiles.Content_TypesXml);
if (this.spreadsheets) {
let sheetIndex = 2;
for (let s = 0; s < this.spreadsheets.length; s++) {
const sheet = this.spreadsheets[s];
const dataFields = sheet.dataFields;
let data = [...sheet.dataSource];
let header = [];
for (let i = 0; i < sheet.columns.length; i++) {
const column = sheet.columns[i];
if (typeof column === 'string') {
header[column] = column;
}
else {
header[column.dataField] = column.label || column.text;
}
}
data.splice(0, 0, header);
const sheet1XML = that.generateSheet1(data, sharedStringsCollection, dataFields, that.getColumnsArrayFromDataFields(dataFields), sheetIndex);
worksheets.file('sheet' + sheetIndex++ + '.xml', sheet1XML);
}
}
if (this.exportAsTable) {
const columnNames = Object.values(that.data[0]);
const createGUID = () => {
function part() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return part() + part() + '-' + part() + '-' + part() + '-' + part() + '-' + part() + part() + part();
}
const dimensionEnd = (that.groupBy && that.groupBy.length) ? that.groupDimensionEnd : that.columnsArray[that.columnsArray.length - 1] + (data.length - 1);
let table = `<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" mc:Ignorable="xr xr3" id="1" name="Table1" displayName="Table1" ref="A${this.xlsxStartIndex}:${dimensionEnd}" totalsRowShown="0">
<autoFilter ref="A${this.xlsxStartIndex}:${dimensionEnd}">`;
for (let i = 0; i < columnNames.length; i++) {
table += `<filterColumn colId="${i}" hiddenButton="0"/>
`;
}
table += '</autoFilter>';
let tableColumns = `
<tableColumns count="${columnNames.length}">`;
for (let i = 0; i < columnNames.length; i++) {
const column = columnNames[i];
tableColumns += `<tableColumn id="${i + 1}" name="${column}" dataCellStyle="Normal"/>
`;
}
tableColumns += `
</tableColumns>`;
table += tableColumns;
table += `
<tableStyleInfo name="TableStyleLight1" showFirstColumn="0" showLastColumn="0" showRowStripes="1" showColumnStripes="0"/>
</table>`;
const tables = xl.folder('tables');
tables.file('table1.xml', table);
}
zip.generateAsync({
type: 'blob',
mimeType:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
})
.then(function (content) {
if (!fileName && callback) {
callback(content);
}
return that.downloadFile(content, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', fileName);
});
delete that.conditionalFormattingXLSX;
delete that.complexHeaderMergeInfo;
delete that.defaultRowHeight;
delete that.rowHeight;
}
/**
* Processes grouping information.
*/
processGroupingInformation(data, xlsx) {
const that = this;
if (!that.groupBy) {
return data;
}
let header;
data = data.slice(0);
if (that.exportHeader) {
if (xlsx && that.complexHeader) {
header = data.slice(0, that.complexHeader.length);
data.splice(0, that.complexHeader.length);
}
else {
header = [data[0]];
data.splice(0, 1);
}
}
if (data.length > 1) {
const getCompareFunction = function (a, knownDataType) {
// gets data type of column (not necessary if the Grid provides this information)
const dataType = knownDataType || typeof a;
let compareFunction;
switch (dataType) {
case 'string':
compareFunction = new Intl.Collator().compare;
break;
case 'number':
compareFunction = function (a, b) {
return a - b;
};
break;
case 'boolean':
case 'bool':
compareFunction = function (a, b) {
if (a === b) {
return 0;
}
else if (a === false) {
return -1;
}
else {
return 1;
}
};
break;
case 'date':
case 'time':
case 'dateTime':
if (a instanceof Date) {
compareFunction = function (a, b) {
return a.getTime() - b.getTime();
};
}
break;
case 'object':
if (a instanceof Date) {
compareFunction = function (a, b) {
return a.getTime() - b.getTime();
};
}
break;
}
return compareFunction;
}
const sortByMultipleColumns = function (dataSource, sortColumns, directions, customSortingCallback) {
if (!dataSource || !(Array.isArray(dataSource)) || dataSource.length === 0 ||
!sortColumns || Array.isArray(sortColumns) && sortColumns.length === 0) {
return;
}
if (typeof sortColumns === 'string') {
sortColumns = [sortColumns];
}
const directionCoefficients = [],
compareFunctions = [];
if (directions === undefined) {
directions = [];
}
for (let i = 0; i < sortColumns.length; i++) {
if (directions[i] === undefined || directions[i] === 'asc' || directions[i] === 'ascending') {
directionCoefficients[i] = 1;
}
else {
directionCoefficients[i] = -1;
}
compareFunctions[i] = getCompareFunction(dataSource[0][sortColumns[i]]);
}
if (customSortingCallback) {
customSortingCallback(dataSource, sortColumns, directions, compareFunctions);
return;
}
dataSource.sort(function (a, b) {
for (let i = 0; i < sortColumns.length; i++) {
const result = compareFunctions[i](a[sortColumns[i]], b[sortColumns[i]]);
if (result === 0) {
if (sortColumns[i + 1]) {
continue;
}
else if (a._index !== undefined) {
// makes sorting stable
return (a._index - b._index) * directionCoefficients[i];
}
return 0;
}
return result * directionCoefficients[i];
}
});
}
sortByMultipleColumns(data, that.groupBy);
}
if (header) {
data = header.concat(data);
}
that.getGroupLabels(data);
return data;
}
/**
* Exports to XML.
*/
exportToXML(data, fileName) {
const datafields = this.datafields.slice(0);
let xmlContent = '<?xml version="1.0" encoding="UTF-8" ?>\n<table>\n';
if (datafields.indexOf('rows') === -1) {
datafields.push('rows');
}
function recursion(records, indent) {
let content = '';
for (let i = 0; i < records.length; i++) {
const currentRecord = records[i];
content += indent + '<row>\n';
for (let j = 0; j < datafields.length; j++) {
const datafield = datafields[j];
if (datafield === 'rows') {
if (!currentRecord.rows) {
continue;
}
content += `${indent} <rows>\n${recursion(currentRecord.rows, indent + ' ')}${indent} </rows>\n`;
continue;
}
content += indent + ` <${datafield}>${currentRecord[datafield]}</${datafield}>\n`;
}
content += indent + '</row>\n';
}
return content;
}
xmlContent += recursion(data, ' ') + '</table>';
if (!fileName) {
return xmlContent;
}
return this.downloadFile(xmlContent, 'application/xml', fileName);
}
/**
* Formats a date.
*/
formatDate(value, format) {
return value;
}
/**
* Formats a number.
*/
formatNumber(value, format) {
return value;
}
/**
* Generates auxiliary files necessary for XLSX.
*/
generateAuxiliaryFiles() {
// _rels\.rels
const _relsRels = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>`;
// docProps\app.xml
const docPropsAppXml = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>`;
// docProps\core.xml
const now = new Date().toISOString(),
docPropsCoreXml = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>Smart HTML Elements</dc:creator><cp:lastModifiedBy>Smart HTML Elements</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">${now}</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">${now}</dcterms:modified></cp:coreProperties>`;
// xl\_rels\workbook.xml.rels
let relationShips = `<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/>`;
let relationShipId = 1;
if (this.spreadsheets) {
for (let s = 0; s < this.spreadsheets.length; s++) {
const sheetId = 2 + s;
relationShipId++;
relationShips += `<Relationship Id="rId${sheetId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet${sheetId}.xml"/>`;
}
}
const xl_relsWorkbookXmlRels = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">${relationShips}<Relationship Id="rId${++relationShipId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId${++relationShipId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId${++relationShipId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`;
// xl\theme\theme1.xml
const xlThemeTheme1Xml = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>`;
// xl\workbook.xml
let sheets = '<sheet name="Sheet1" sheetId="1" r:id="rId1"/>';
if (this.spreadsheets) {
for (let s = 0; s < this.spreadsheets.length; s++) {
const sheetId = 2 + s;
const sheet = this.spreadsheets[s];
sheets += `<sheet name="${sheet.label}" sheetId="${sheetId}" r:id="rId${sheetId}"/>`;
}
}
const xlWorkbookXml = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="20325"/><workbookPr defaultThemeVersion="166925"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="C:\Users\jqwidgets\Desktop\" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="13_ncr:1_{0DEDCB6D-5403-4CD8-AAA5-59B6D238A8B6}" xr6:coauthVersionLast="34" xr6:coauthVersionMax="34" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="19200" windowHeight="6950" xr2:uid="{0CB664E6-3800-4A88-B158-B46A682E7484}"/></bookViews><sheets>${sheets}</sheets><calcPr calcId="179021"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext></extLst></workbook>`;
const worksheetImages = this.worksheetImages.get(1);
let drawings = '';
if (worksheetImages && worksheetImages.length) {
drawings = '<Override PartName="/xl/drawings/drawing1.xml" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml"/>';
}
let tables = '';
if (this.exportAsTable) {
tables = '<Override PartName="/xl/tables/table1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"/>';
}
// [Content_Types].xml
let sheetOverrides = `<Override PartName = "/xl/worksheets/sheet1.xml" ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />`;
if (this.spreadsheets) {
for (let i = 0; i < this.spreadsheets.length; i++) {
sheetOverrides += `<Override PartName = "/xl/worksheets/sheet${i + 2}.xml" ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />`;
}
}
const Content_TypesXml = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="bin" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings"/><Default Extension="jpeg" ContentType="image/jpeg"/><Default Extension="png" ContentType="image/png"/><Default Extension="svg" ContentType="image/svg"/><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>${sheetOverrides}<Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>${tables}${drawings}<Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>`;
return {
_relsRels: _relsRels,
docPropsAppXml: docPropsAppXml,
docPropsCoreXml: docPropsCoreXml,
xl_relsWorkbookXmlRels: xl_relsWorkbookXmlRels,
xlThemeTheme1Xml: xlThemeTheme1Xml,
xlWorkbookXml: xlWorkbookXml,
Content_TypesXml: Content_TypesXml
};
}
/**
* Generates default style object (for use in XLSX export).
*/
generateDefaultStyle(data) {
const that = this,
defaultStyle = {},
datafields = that.datafields,
firstRecord = that.complexHeader ? data[that.complexHeader.length] : data[+that.exportHeader];
if (!firstRecord) {
return defaultStyle;
}
for (let i = 0; i < datafields.length; i++) {
const sampleValue = firstRecord[datafields[i]];
if (sampleValue instanceof Date) {
if (!defaultStyle.columns) {
defaultStyle.columns = [];
}
defaultStyle.columns[datafields[i]] = { format: 'd' };
}
}
return defaultStyle;
}
/**
* Generates group row.
*/
generateGroupRow(details) {
const rowNumber = details.rowNumber,
from = 'A' + rowNumber,
recordXML = ` <row r="${rowNumber}" outlineLevel="${details.outlineLevel}" spans="1:${details.numberOfColumns}"${this.getCustomRowHeight(rowNumber - 1)} x14ac:dyDescent="0.45">
<c r="${from}" t="s" s="0">
<v>${details.sharedStringIndex}</v>
</c>
</row>\n`;
details.mergedCells.push({ from: from, to: this.columnsArray[details.numberOfColumns - 1] + rowNumber });
return recordXML;
}
/**
* Generates sharedStrings.xml.
*/
generateSharedStrings(data) {
const that = this,
datafields = that.datafields,
collection = [];
let xml = '',
count = 0,
uniqueCount = 0;
function addSharedString(currentValue) {
count++;
if (collection.indexOf(currentValue) === -1) {
uniqueCount++;
collection.push(currentValue);
currentValue = currentValue.replace(/&(?!amp;)/g, '&');
currentValue = currentValue.replace(/'/g, ''');
currentValue = currentValue.replace(/"/g, '"');
currentValue = currentValue.replace(/>/g, '>');
currentValue = currentValue.replace(/</g, '<');
xml += `<si><t>${currentValue}</t></si>`;
}
}
const addSharedStrings = (data, datafields) => {
for (let i = 0; i < data.length; i++) {
const currentRecord = data[i];
for (let j = 0; j < datafields.length; j++) {
let currentValue = currentRecord[datafields[j]];
if (currentValue === null && !that.allowNull) {
currentValue = '';
}
if (typeof currentValue !== 'string') {
continue;
}
addSharedString(currentValue);
}
}
}
addSharedStrings(data, datafields);
if (that.spreadsheets) {
for (let i = 0; i < that.spreadsheets.length; i++) {
const sheet = that.spreadsheets[i];
const datafields = sheet.dataFields;
let data = [...sheet.dataSource];
let header = [];
for (let i = 0; i < sheet.columns.length; i++) {
const column = sheet.columns[i];
if (typeof column === 'string') {
header[column] = column;
}
else {
header[column.dataField] = column.label;
}
}
data.splice(0, 0, header);
addSharedStrings(data, datafields);
}
}
if (that.groupLabels) {
for (let i = 0; i < that.groupLabels.length; i++) {
addSharedString(that.groupLabels[i]);
}
}
xml = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${count}" uniqueCount="${uniqueCount}">${xml}</sst>`;
return { collection: collection, xml: xml };
}
/**
* Generates sheet1.xml.
*/
generateSheet1(data, sharedStrings, datafields, columnsArray, sheetIndex) {
const that = this,
numberOfColumns = columnsArray.length,
numberOfRows = data.length,
dimensionEnd = columnsArray[numberOfColumns - 1] + numberOfRows,
autoFilter = that.getFilters(),
mergedCells = [].concat(that.complexHeaderMergedCells);
let rIdCounter = 0;
const addDrawingRel = (currentSheet2) => {
let xmlContent = '';
const worksheetImages = this.worksheetImages.get(currentSheet2);
if (worksheetImages && worksheetImages.length) {
xmlContent += `<drawing r:id="rId${++rIdCounter}"/>`;
}
return xmlContent;
};
const addTableRel = () => {
if (!that.exportAsTable) {
return '';
}
let xmlContent = `<tableParts count="1">
<tablePart r:id="rId${++rIdCounter}"/>
</tableParts>`;
return xmlContent;
};
const freezeHeader = that.freezeHeader ? `<sheetView rightToLeft="0" workbookViewId="0">
<pane state="frozen" topLeftCell="A${that.xlsxStartIndex + 1}" ySplit="${that.xlsxStartIndex}"/>
</sheetView>` : '';
let cols = that.getCustomColumnWidths(columnsArray);
if (sheetIndex > 1) {
let colsString = '<cols>';
for (let i = 0; i < columnsArray.length; i++) {
colsString += '<col min="1" max="1" width="25" hidden="0" bestFit="0" customWidth="1"/>';
}
colsString += '</cols>';
cols = colsString;
}
const tabSelected = sheetIndex <= 1 ? 'tabSelected="1"' : '';
let xmlContent = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac xr xr2 xr3" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{7F25248B-C640-4C64-AD47-C0EA0E5D90D0}">
<sheetPr filterMode="${autoFilter !== ''}" />
<dimension ref="A1:${dimensionEnd}" />
<sheetViews>
<sheetView ${tabSelected} workbookViewId="0" />
${freezeHeader}
</sheetViews>
<sheetFormatPr defaultRowHeight="14.5" x14ac:dyDescent="0.35" />${cols}
<sheetData>\n`;
function r(col, row) {
return columnsArray[col] + row;
}
for (let i = 0; i <= data.length; i++) {
const currentRecord = data[i],
rowNumber = i + 1;
let collapsed = '';
if (that.actualHierarchy) {
const previousRecord = data[i - 1];
if (previousRecord && previousRecord._collapsed &&
(!currentRecord || previousRecord._level > currentRecord._level)) {
collapsed = ' collapsed="true"';
}
}
if (i === data.length) {
if (collapsed) {
xmlContent += ` <row r="${rowNumber}" outlineLevel="${Math.max(data[i - 1]._level - 2, 0)}" hidden="false" collapsed="true" />\n`;
}
break;
}
let recordXML = ` <row r="${rowNumber}"${that.getOutlineLevel(currentRecord)} hidden="${currentRecord._hidden || currentRecord._collapsed || false}"${collapsed} spans="1:${numberOfColumns}"${that.getCustomRowHeight(rowNumber - 1)} customHeight="1" x14ac:dyDescent="0.45">\n`;
for (let j = 0; j < datafields.length; j++) {
const s = that.getXLSXCellStyle(r(j, rowNumber));
recordXML += that.getActualCellData(currentRecord[datafields[j]], { r: r(j, rowNumber), s: s }, sharedStrings, rowNumber, datafields[j]);
}
recordXML += ' </row>\n';
xmlContent += recordXML;
}
if (that.headerContent) {
for (let m = 0; m < that.headerContent.length; m++) {
const row = that.headerContent[m];
if (row.style && row.style.mergeAcross) {
mergedCells.push({
from: 'A' + (m + 1),
to: columnsArray[numberOfColumns - 1] + (m + 1)
});
}
}
}
if (that.footerContent) {
for (let m = 0; m < that.footerContent.length; m++) {
const row = that.footerContent[m];
if (row.style && row.style.mergeAcross) {
mergedCells.push({
from: 'A' + (data.length - m),
to: columnsArray[numberOfColumns - 1] + (data.length - m)
});
}
}
}
xmlContent += ` </sheetData>${that.conditionalFormattingXLSX.conditions}${autoFilter}${that.getMergedCells(mergedCells)}
<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />
<pageSetup paperSize="9" orientation="portrait" r:id="rId1" />
${addDrawingRel(sheetIndex ? sheetIndex : 1)}
${addTableRel()}
</worksheet>`;
return xmlContent;
}
/**
* Generates sheet1.xml with grouping.
*/
generateSheet1WithGrouping(data, sharedStrings) {
const that = this,
numberOfColumns = that.columnsArray.length,
numberOfRows = data.length,
dimensionEnd = that.columnsArray[numberOfColumns - 1] + numberOfRows,
datafields = that.datafields,
mergedCells = [].concat(that.complexHeaderMergedCells);
let rIdCounter = 0;
const addDrawingRel = (currentSheet2) => {
let xmlContent = '';
const worksheetImages = this.worksheetImages.get(currentSheet2);
if (worksheetImages && worksheetImages.length) {
xmlContent += `<drawing r:id="rId${++rIdCounter}"/>`;
}
return xmlContent;
};
const addTableRel = () => {
if (!that.exportAsTable) {
return '';
}
let xmlContent = `<tableParts count="1">
<tablePart r:id="rId${++rIdCounter}"/>
</tableParts>`;
return xmlContent;
};
const freezeHeader = that.freezeHeader ? `<sheetView rightToLeft="0" workbookViewId="0">
<pane state="frozen" topLeftCell="A${that.xlsxStartIndex + 1}" ySplit="${that.xlsxStartIndex}"/>
</sheetView>` : '';
let xmlContent = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac xr xr2 xr3" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{7F25248B-C640-4C64-AD47-C0EA0E5D90D0}">
<dimension ref="A1:${dimensionEnd}" />
<sheetViews>
<sheetView tabSelected="1" workbookViewId="0" />
${freezeHeader}
</sheetViews>
<sheetFormatPr defaultRowHeight="14.5" x14ac:dyDescent="0.35" />${that.getCustomColumnWidths()}
<sheetData>\n`,
rowNumberCorrection = 0,
groupsHandled = [];
function r(col, row) {
return that.columnsArray[col] + row;
}
mainLoop:
for (let i = 0; i < data.length; i++) {
const currentRecord = data[i],
rowNumber = i + 1 + rowNumberCorrection;
let outlineLevel = 0,
outlineXML = '';
if (!that.exportHeader ||
(!that.complexHeader && i !== 0) ||
(that.complexHeader && i >= that.complexHeader.length)) {
let groupId = '';
for (let k = 0; k < that.groupBy.length; k++) {
const datafield = that.groupBy[k],
currentGroup = currentRecord[datafield],
currentGroupLabel = that.groups[datafield][currentGroup];
groupId += currentGroup;
if (groupsHandled.indexOf(groupId) === -1) {
let sharedStringIndex = sharedStrings.indexOf(currentGroupLabel);
xmlContent += that.generateGroupRow({
rowNumber: rowNumber,
outlineLevel: outlineLevel,
numberOfColumns: numberOfColumns,
sharedStringIndex: sharedStringIndex,
mergedCells: mergedCells
});
groupsHandled.push(groupId);
i--;
rowNumberCorrection++;
continue mainLoop;
}
outlineLevel++;
}
outlineXML = ` outlineLevel="${outlineLevel}"`;
}
let recordXML = ` <row r="${rowNumber}"${outlineXML} spans="1:${numberOfColumns}"${that.getCustomRowHeight(rowNumber - 1)} customHeight="1" x14ac:dyDescent="0.45">\n`;
for (let j = 0; j < datafields.length; j++) {
const s = that.getXLSXCellStyle(r(j, i + 1));
recordXML += that.getActualCellData(currentRecord[datafields[j]], { r: r(j, rowNumber), s: s }, sharedStrings, rowNumber, datafields[j]);
}
recordXML += ' </row>\n';
xmlContent += recordXML;
}
xmlContent += ` </sheetData>${!that.exportAsTable ? that.getMergedCells(mergedCells) : ''}
<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />
<pageSetup paperSize="9" orientation="portrait" r:id="rId1" />
${addDrawingRel(1)}
${addTableRel()}
</worksheet>`;
that.groupDimensionEnd = that.columnsArray[numberOfColumns - 1] + (numberOfRows + rowNumberCorrection);
that.groupRowsCount = numberOfRows + rowNumberCorrection;
return xmlContent;
}
isFormula(value) {
if (value === null) {
return false;
}
return this.autoConvertFormulas && value.toString().startsWith('=');
}
/**
* Gets actual spreadsheet cell data.
*/
getActualCellData(currentValue, details, sharedStrings) {
const r = details.r,
s = details.s || ' s="0"';
if (currentValue === null && !this.allowNull) {
currentValue = '';
}
if (currentValue && this.isFormula(currentValue)) {
return ` <c r="${r}" t="s"${s}>
<f>${currentValue.slice(1)}</f>
</c>\n`;
}
if (typeof currentValue === 'string') {
return ` <c r="${r}" t="s"${s}>
<v>${sharedStrings.indexOf(currentValue)}</v>
</c>\n`;
}
if (typeof currentValue === 'boolean') {
return ` <c r="${r}" t="b"${s}>
<v>${+currentValue}</v>
</c>\n`;
}
if (currentValue instanceof Date) {
// const timeZoneOffset = currentValue.getTimezoneOffset() * 1000 * 60;
// const excelDate = (currentValue.getTime() + this.timeBetween1900And1970 - timeZoneOffset) / (1000 * 60 * 60 * 24) + 3;
const timeBetweenJSandExcel = 2 + Math.round(this.timeBetween1900And1970 / (1000 * 60 * 60 * 24));
const excelDateTime = timeBetweenJSandExcel + ((currentValue.getTime() - (currentValue.getTimezoneOffset() * 60 * 1000)) / (1000 * 60 * 60 * 24));
return ` <c r="${r}"${s}>
<v>${excelDateTime}</v>
</c>\n`;
}
// numeric cells
return ` <c r="${r}"${s}>
<v>${currentValue}</v>
</c>\n`;
}
/**
* Gets column labels.
*/
getColumnsArray() {
const that = this,
numberOfColumns = that.datafields.length,
columnsCollection = [];
function getIterator(i) {
if (i < 26) {
return '';
}
return String.fromCharCode(64 + Math.floor(i / 26));
}
for (let i = 0; i < numberOfColumns; i++) {
columnsCollection.push(getIterator(i) + String.fromCharCode(65 + (i < 26 ? i : i % 26)));
}
that.columnsArray = columnsCollection;
}
/**
* Gets column labels.
*/
getColumnsArrayFromDataFields(datafields) {
const that = this,
numberOfColumns = datafields.length,
columnsCollection = [];
function getIterator(i) {
if (i < 26) {
return '';
}
return String.fromCharCode(64 + Math.floor(i / 26));
}
for (let i = 0; i < numberOfColumns; i++) {
columnsCollection.push(getIterator(i) + String.fromCharCode(65 + (i < 26 ? i : i % 26)));
}
return columnsCollection;
}
/**
* Gets column style.
*/
getColumnStyle() {
const that = this,
style = that.style;
if (!style) {
return ` .header { border: 1px solid black; padding: 5px; }
.column { border: 1px solid black; padding: 5px; }
.group { background-color: #FFFFFF; color: #000000; font-weight: bold; }`;
}
let styles;
if (style.removeDefault) {
styles = {
header: '',
column: '',
group: ''
};
}
else {
styles = {
header: 'border: 1px solid black; padding: 5px; ',
column: 'white-space: nowrap; overflow: hidden; border: 1px solid black; padding: 5px; ',
group: 'background-color: #FFFFFF; color: #000000; font-weight: bold; '
};
}
const sampleRecord = that.data[0];
let generatedStyle = '';
const headerDefinition = style.header || {};
for (let prop in headerDefinition) {
if (!Object.prototype.hasOwnProperty.call(headerDefinition, prop)) {
continue;
}
const value = headerDefinition[prop];
if (sampleRecord[prop]) {
if (!styles['header' + prop]) {
styles['header' + prop] = '';
}
for (let columnProp in value) {
if (Object.prototype.hasOwnProperty.call(value, columnProp)) {
const css = window.jqxToDash(columnProp) + ': ' + value[columnProp] + '; ';
styles['header' + prop] += css;
if (columnProp === 'width') {
if (!styles['column' + prop]) {
styles['column' + prop] = '';
}
styles['column' + prop] += css;
}
}
}
continue;
}
if (prop === 'height' && that.complexHeader) {
styles.header += 'height: ' + parseInt(headerDefinition[prop], 10) / that.complexHeader.length + 'px; ';
}
else {
styles.header += window.jqxToDash(prop) + ': ' + headerDefinition[prop] + '; ';
}
}
const columnsDefinition = style.columns || {};
for (let prop in columnsDefinition) {
if (!Object.prototype.hasOwnProperty.call(columnsDefinition, prop)) {
continue;
}
const value = columnsDefinition[prop];
if (sampleRecord[prop]) {
if (!styles['column' + prop]) {
styles['column' + prop] = '';
}
for (let columnProp in value) {
if (isNaN(columnProp) && Object.prototype.hasOwnProperty.call(value, columnProp) && columnProp !== 'format') {
styles['column' + prop] += window.jqxToDash(columnProp) + ': ' + value[columnProp] + '; ';
}
}
continue;
}
styles.column += window.jqxToDash(prop) + ': ' + value + '; ';
}
for (let prop in styles) {
if (Object.prototype.hasOwnProperty.call(styles, prop)) {
generatedStyle += ` .${prop} { ${styles[prop]}}\n`;
}
}
if (style.custom) {
generatedStyle += `${style.custom}\n`;
}
return generatedStyle;
}
/**
* Gets custom column widths.
*/
getCustomColumnWidths(columnsArray) {
const that = this;
if (columnsArray !== that.columnsArray) {
return '';
}
if (!that.style || !that.columnWidth || that.columnWidth.length === 0) {
return '';
}
let xml = '\n <cols>\n';
for (let i = 0; i < that.columnWidth.length; i++) {
let width = that.columnWidth[i];
if (width !== undefined) {
width = Math.round(parseFloat(width)) / 7;
xml += ` <col min="${i + 1}" max="${i + 1}" width="${width}" customWidth="1" />\n`;
}
}
xml += ' </cols>';
return xml;
}
/**
* Returns customFilter tag.
*/
getCustomFilter(value, condition) {
let operator = 'equal',
val;
if (value instanceof Date) {
value = (value.getTime() + this.timeBetween1900And1970) / 86400000 + 2;
}
condition = condition.toUpperCase();
switch (condition) {
case 'EMPTY':
val = '';
break;
case 'NOT_EMPTY':
val = '';
operator = 'notEqual';
break;
case 'CONTAINS':
case 'CONTAINS_CASE_SENSITIVE':
val = `*${value}*`;
break;
case 'DOES_NOT_CONTAIN':
case 'DOES_NOT_CONTAIN_CASE_SENSITIVE':
val = `*${value}*`;
operator = 'notEqual';
break;
case 'STARTS_WITH':
case 'STARTS_WITH_CASE_SENSITIVE':
val = `${value}*`;
break;
case 'ENDS_WITH':
case 'ENDS_WITH_CASE_SENSITIVE':
val = `*${value}`;
break;
case 'EQUAL':
case 'EQUAL_CASE_SENSITIVE':
val = value;
break;
case 'NULL':
val = null;
break;
case 'NOT_NULL':
val = null;
operator = 'notEqual';
break;
case 'NOT_EQUAL':
val = value;
operator = 'notEqual';
break;
case 'LESS_THAN':
val = value;
operator = 'lessThan';
break;
case 'LESS_THAN_OR_EQUAL':
val = value;
operator = 'lessThanOrEqual';
break;
case 'GREATER_THAN':
val = value;
operator = 'greaterThan';
break;
case 'GREATER_THAN_OR_EQUAL':
val = value;
operator = 'greaterThanOrEqual';
break;
}
return ` <customFilter val="${val}" operator="${operator}"/>\n`;
}
/**
* Gets custom row height.
*/
getCustomRowHeight(row) {
const that = this;
if (that.style) {
return that.rowHeight[row] || that.defaultRowHeight || '';
}
return '';
}
/**
* Gets datafields.
*/
getDatafields(data) {
const that = this,
sampleRecord = data[0],
datafields = [];
for (let prop in sampleRecord) {
if (Object.prototype.hasOwnProperty.call(sampleRecord, prop) && prop.charAt(0) !== '_') {
datafields.push(prop);
}
}
that.datafields = datafields;
}
/**
* Returns autoFilter XML.
*/
getFilters() {
const that = this,
filterBy = that.filterBy;
if (!filterBy) {
return '';
}
let xml = '';
for (let datafield in filterBy) {
if (Object.prototype.hasOwnProperty.call(filterBy, datafield)) {
const colId = that.datafields.indexOf(datafield);
if (colId === -1) {
continue;
}
const filterDetails = filterBy[datafield],
filters = filterDetails.filters;
xml += ` <filterColumn colId="${colId}">
<customFilters and="${!filterDetails.operator}">\n`;
for (let i = 0; i < filters.length; i++) {
xml += that.getCustomFilter(filters[i].value, filters[i].condition);
}
xml += ` </customFilters>
</filterColumn>`;
}
}
if (!xml) {
return '';
}
xml = `\n <autoFilter ref="A1:${that.columnsArray[that.columnsArray.length - 1] + that.data.length}">\n${xml}\n </autoFilter>`;
return xml;
}
/**
* Gets group labels based on data.
*/
getGroupLabels(data) {
const that = this,
startIndex = that.xlsxStartIndex !== undefined ? that.xlsxStartIndex : +that.exportHeader,
groups = {},
groupLabels = [];
for (let i = startIndex; i < data.length; i++) {
const currentRecord = data[i];
for (let j = 0; j < that.groupBy.length; j++) {
const datafield = that.groupBy[j],
currentValue = currentRecord[datafield];
let group = groups[datafield];
if (group === undefined) {
groups[datafield] = {};
group = groups[datafield];
}
if (group[currentValue] === undefined) {
group[currentValue] = (that.exportHeader ? data[startIndex - 1][datafield] : datafield) + ': ' + currentValue;
groupLabels.push(group[currentValue]);
}
}
}
that.groups = groups;
that.groupLabels = groupLabels;
}
/**
* Gets the header content when exporting to HTML.
*/
getHTMLHeader(datafields, data) {
const that = this;
let header = '\n <thead>\n';
if (!that.complexHeader) {
header += ' <tr>\n';
for (let j = 0; j < datafields.length; j++) {
const datafield = datafields[j];
header += ` <th class="header header${datafield}">${data[0][datafield]}</th>\n`;
}
header += ' </tr>\n </thead>';
return header;
}
for (let j = 0; j < that.complexDataFieldsHeader.length; j++) {
const row = that.complexDataFieldsHeader[j];
header += ' <tr>\n';
for (let k = 0; k < row.length; k++) {
const currentLabel = row[k];
let colspan = 1, rowspan = 1;
if ((row[k - 1] && row[k - 1] === currentLabel) ||
(that.complexDataFieldsHeader[j - 1] && (that.complexDataFieldsHeader[j - 1][k] === currentLabel))) {
continue;
}
let iterator = k + 1;
while (row[iterator] && row[iterator] === row[iterator - 1]) {
colspan++;
iterator++;
}
iterator = j + 1;
while (that.complexDataFieldsHeader[iterator] && that.complexDataFieldsHeader[iterator][k] === currentLabel) {
rowspan++;
iterator++;
}
const datafield = j === that.complexHeader.length - 1 || rowspan + j === that.complexHeader.length ?
' header' + datafields[k] : '';
header += ` <th class="header${datafield}" colspan="${colspan}" rowspan="${rowspan}">${that.complexHeader[j][k]}</th>\n`;
}
header += ' </tr>\n';
}
header += ' </thead>';
return header;
}
/**
* Gets conditional formatting XML.
*/
getConditionalFormatting() {
const that = this,
conditionalFormatting = that.conditionalFormatting;
if (!conditionalFormatting) {
that.conditionalFormattingXLSX = { conditions: '', styles: '' };
return;
}
const dxfCodes = [];
let conditionsXml = '',
stylesXml = '';
for (let i = conditionalFormatting.length - 1; i >= 0; i--) {
const columnFormat = conditionalFormatting[i],
columnLetter = that.columnsArray[that.datafields.indexOf(columnFormat.column)],
startCell = columnLetter + (that.xlsxStartIndex + 1),
sqref = startCell + ':' + columnLetter + (that.data.length),
dxfCode = columnFormat.background + columnFormat.color,
attr = that.getConditionalAttributes(columnFormat, startCell);
let dxfId = dxfCodes.indexOf(dxfCode);
if (dxfId === -1) {
const newDxf = ` <dxf>
<font>
<b val="0"/>
<i val="0"/>
<color rgb="${columnFormat.color === 'White' ? 'FFFFFFFF' : 'FF000000'}"/>
<sz val="10"/>
</font>
<fill>
<patternFill>
<bgColor rgb="${that.toARGB(columnFormat.background)}"/>
</patternFill>
</fill>
</dxf>\n`;
stylesXml += newDxf;
dxfId = dxfCodes.length;
dxfCodes.push(dxfCode);
}
conditionsXml += ` <conditionalFormatting sqref="${sqref}">
<cfRule dxfId="${dxfId}" text="${attr.text}" rank="${attr.rank}" percent="${attr.percent}" bottom="${attr.bottom}" equalAverage="${attr.equalAverage}" aboveAverage="${attr.aboveAverage}"${attr.operator}${attr.timePeriod} priority="${i + 2}" type="${attr.type}">
${attr.formula} </cfRule>
</conditionalFormatting>\n`;
}
stylesXml = ` <dxfs count="${dxfCodes.length}">\n${stylesXml} </dxfs>`;
that.conditionalFormattingXLSX = { conditions: conditionsXml, styles: stylesXml };
}
/**
* Gets conditional formatting XML attributes.
*/
getConditionalAttributes(columnFormat, startCell) {
let condition = columnFormat.condition,
comparator = columnFormat.comparator,
text = '',
rank = 0,
percent = 0,
bottom = 0,
equalAverage = 0,
aboveAverage = 0,
operator = '',
timePeriod = '',
type = '',
formula = '';
switch (condition) {
case 'equal':
operator = 'equal';
type = 'cellIs';
formula = ` <formula>${comparator}</formula>\n`;
break;
case 'lessThan':
operator = 'lessThan';
type = 'cellIs';
formula = ` <formula>${comparator}</formula>\n`;
break;
case 'greaterThan':
operator = 'greaterThan';
type = 'cellIs';
formula = ` <formula>${comparator}</formula>\n`;
break;
case 'notEqual':
operator = 'notEqual';
type = 'cellIs';
formula = ` <formula>${comparator}</formula>\n`;
break;
case 'between':
operator = 'between';
type = 'cellIs';
formula = ` <formula>${columnFormat.min}</formula>
<formula>${columnFormat.max}</formula>\n`;
break;
case 'duplicate':
type = 'duplicateValues';
formula = ' <formula>0</formula>\n';
break;
case 'topNItems':
rank = comparator;
type = 'top10';
break;
case 'bottomNItems':
rank = comparator;
bottom = 1;
type = 'top10';
break;
case 'topNPercent':
rank = comparator;
percent = 1;
type = 'top10';
break;
case 'bottomNPercent':
rank = comparator;
percent = 1;
bottom = 1;
type = 'top10';
break;
case 'aboveAverage':
aboveAverage = 1;
type = 'aboveAverage';
formula = ' <formula>0</formula>\n';
break;
case 'belowAverage':
type = 'aboveAverage';
formula = ' <formula>0</formula>\n';
break;
case 'contains':
text = comparator;
operator = 'containsText';
type = 'containsText';
formula = ` <formula>NOT(ISERROR(SEARCH("${comparator}",${startCell})))</formula>\n`;
break;
case 'doesNotContain':
text = comparator;
operator = 'notContains';
type = 'notContainsText';
formula = ` <formula>ISERROR(SEARCH("${comparator}",${startCell}))</formula>\n`;
break;
case 'dateOccur':
timePeriod = ` timePeriod="${comparator}"`;
type = 'timePeriod';
break;
}
if (operator) {
operator = ` operator="${operator}" `;
}
return {
text: text,
rank: rank,
percent: percent,
bottom: bottom,
equalAverage: equalAverage,
aboveAverage: aboveAverage,
operator: operator,
timePeriod: timePeriod,
type: type,
formula: formula
}
}
/**
* Gets merged cells XML.
*/
getMergedCells(mergedCells) {
const that = this;
let mergeCellsXml = '';
for (let i = 0; i < mergedCells.length; i++) {
if (mergedCells[i].from === mergedCells[i].to) {
continue;
}
mergeCellsXml += `\n <mergeCell ref="${mergedCells[i].from}:${mergedCells[i].to}" />\n`;
}
if (that.mergedCells) {
for (let i = 0; i < that.mergedCells.length; i++) {
const cellDefinition = that.mergedCells[i];
if (cellDefinition.rowspan < 2 && cellDefinition.colspan < 2) {
continue;
}
const from = that.columnsArray[cellDefinition.cell[0]] + (cellDefinition.cell[1] + that.xlsxStartIndex + 1),
to = that.columnsArray[cellDefinition.cell[0] + cellDefinition.colspan - 1] + (cellDefinition.cell[1] + that.xlsxStartIndex + cellDefinition.rowspan);
mergeCellsXml += `\n <mergeCell ref="${from}:${to}" />\n`;
}
}
if (mergeCellsXml) {
mergeCellsXml = `\n <mergeCells count="${mergedCells.length}">${mergeCellsXml} </mergeCells>`;
}
return mergeCellsXml;
}
/**
* Gets numFmt index.
*/
getNumFmtIndex(format, numFmts) {
let index = numFmts.collection.indexOf(format);
if (index === -1) {
index = numFmts.collection.length + 100;
numFmts.collection.push(format);
numFmts.xml += `<numFmt numFmtId="${index}" formatCode="${format}"/>`;
}
else {
index += 100;
}
return index;
}
/**
* Returns outlineLevel.
*/
getOutlineLevel(record) {
if (!this.actualHierarchy || record._level === 1) {
return '';
}
return ` outlineLevel="${record._level - 1}"`;
}
/**
* Gets row style.
*/
getRowStyle() {
const that = this,
style = that.style;
if (!style) {
return '';
}
const rowsDefinition = style.rows;
if (!rowsDefinition) {
return '';
}
const styles = {
row: ''
};
let generatedStyle = '';
for (let prop in rowsDefinition) {
if (!Object.prototype.hasOwnProperty.call(rowsDefinition, prop) ||
prop === 'alternationCount' ||
prop === 'alternationStart' ||
prop === 'alternationEnd') {
continue;
}
const value = rowsDefinition[prop];
if (prop.indexOf('alt') !== -1) {
const i = prop.slice(16, 17),
property = prop.slice(17);
if (!styles['rowN' + i]) {
styles['rowN' + i] = '';
}
if (property === 'Color') {
styles['rowN' + i] += 'color : ' + value + '; ';
}
else if (property === 'BorderColor') {
styles['rowN' + i] += 'border-color : ' + value + '; ';
}
else {
styles['rowN' + i] += 'background-color : ' + value + '; ';
}
continue;
}
if (!isNaN(prop)) {
if (!styles['row' + prop]) {
styles['row' + prop] = '';
}
for (let rowProp in value) {
if (Object.prototype.hasOwnProperty.call(value, rowProp)) {
styles['row' + prop] += window.jqxToDash(rowProp) + ': ' + value[rowProp] + '; ';
}
}
continue;
}
styles.row += window.jqxToDash(prop) + ': ' + rowsDefinition[prop] + '; ';
}
let keys = Object.keys(styles);
keys.sort(function (a, b) {
if (a === 'row') {
return -1;
}
if (b === 'row') {
return 1;
}
const aIsNum = !isNaN(a.slice(3)),
bIsNum = !isNaN(b.slice(3));
if (aIsNum && !bIsNum) {
return 1;
}
if (!aIsNum && bIsNum) {
return -1;
}
return +(a < b);
});
for (let i = 0; i < keys.length; i++) {
generatedStyle += ` .${keys[i]} { ${styles[keys[i]]}}\n`;
}
return generatedStyle;
}
/**
* Gets table style.
*/
getTableStyle() {
const that = this,
style = that.style;
if (!style) {
return ' style="table-layout: fixed; border: 1px solid black; border-collapse: collapse;"';
}
let generatedStyle = 'table-layout: fixed; ';
for (let prop in style) {
if (Object.prototype.hasOwnProperty.call(style, prop) &&
['header', 'columns', 'rows', 'removeDefault', 'custom'].indexOf(prop) === -1) {
generatedStyle += window.jqxToDash(prop) + ': ' + style[prop] + '; ';
}
}
if (generatedStyle) {
generatedStyle = ' style="' + generatedStyle + '"';
}
return generatedStyle;
}
/**
* Gets the "s" (style) attribute of an XLSX cell.
*/
getXLSXCellStyle(r) {
const that = this;
if (that.cellStyleMapping[r] !== undefined) {
return ` s="${that.cellStyleMapping[r]}"`;
}
return '';
}
/**
* Gets the "s" (style) attribute of an XLSX cell.
*/
getXLSXFormat(format, cellValue) {
if (typeof cellValue === 'number') {
let currencySign = '$';
if (format && typeof (format) === 'string' && format.indexOf('c') >= 0 && format.indexOf('x') >= 0) {
currencySign = format.substring(0, format.indexOf('x'));
format = format.substring(1 + format.indexOf('x'));
}
if (!/^([a-zA-Z]\d*)$/g.test(format)) {
return format;
}
let precision = parseFloat(format.slice(1)) || 0,
precisionCode = precision > 0 ? '.' + ('0').repeat(precision) : '';
format = format.slice(0, 1);
switch (format) {
case 'C':
case 'c':
if (currencySign !== '$') {
return '\#,0' + precisionCode + ' ' + currencySign;
}
return currencySign + '\#,0' + precisionCode;
case 'D':
case 'd':
if (precision) {
return '\#,0' + precisionCode;
}
return '0';
case 'E':
case 'e':
return '0' + precisionCode + format + '000';
case 'F':
case 'f':
return '0' + precisionCode;
case 'N':
case 'n':
return '#,0' + precisionCode;
case 'P':
case 'p':
return '#,0' + precisionCode + ' %';
default:
return;
}
}
else if (cellValue instanceof Date) {
switch (format) {
case 'd':
return 'm/d/yyyy';
case 'D':
return 'nnnnmmmm dd, yyyy';
case 't':
return 'h:m AM/PM';
case 'T':
return 'h:mm:ss AM/PM';
case 'f':
return 'nnnnmmmm dd, yyyy h:m AM/PM';
case 'F':
return 'nnnnmmmm dd, yyyy h:mm:ss AM/PM';
case 'M':
return 'mmmm d';
case 'Y':
return 'yyyy mmmm';
case 'FP':
case 'PP':
return 'yyyy-mm-dd hh:mm:ss';
case 'FT':
case 'PT':
return 'hh:mm:ss';
}
format = format.replace(/f|u|n|p|e|a|x|o/gi, '');
format = format.replace(/tt/gi, 'AM/PM');
format = format.replace(/:{2,}|:\s|:$|\.$/g, '');
format = format.trim();
return format;
}
}
/**
* Processes column styles.
*/
processColumnStyle(style) {
const that = this,
headerDefinition = style.header,
columnsDefinition = style.columns,
sampleRecord = that.data[0],
startIndex = that.xlsxStartIndex;
that.columnWidth = [];
if (startIndex && headerDefinition) {
for (let i = 0; i < that.columnsArray.length; i++) {
const columnLetter = that.columnsArray[i],
cell = columnLetter + startIndex,
columnSpecific = headerDefinition[that.datafields[i]];
for (let prop in headerDefinition) {
if (Object.prototype.hasOwnProperty.call(headerDefinition, prop) && sampleRecord[prop] === undefined) {
if (that.complexHeader) {
for (let j = 0; j < that.complexHeader.length; j++) {
if (prop === 'height') {
that.rowHeight[j] = ` ht="${(parseFloat(headerDefinition.height) / 1) / 2}"`;
continue;
}
else {
that.storeCellStyle(columnLetter + (j + 1), prop, headerDefinition[prop]);
}
}
}
else {
if (prop === 'height') {
that.rowHeight[startIndex - 1] = ` ht="${parseFloat(headerDefinition.height) / 2}"`;
continue;
}
that.storeCellStyle(cell, prop, headerDefinition[prop]);
}
}
}
if (!columnSpecific) {
continue;
}
for (let prop in columnSpecific) {
if (Object.prototype.hasOwnProperty.call(columnSpecific, prop)) {
if (prop === 'width') {
that.columnWidth[i] = columnSpecific.width;
continue;
}
that.storeCellStyle(cell, prop, columnSpecific[prop]);
}
}
}
}
else if (headerDefinition) {
for (let i = 0; i < that.columnsArray.length; i++) {
const columnSpecific = headerDefinition[that.datafields[i]];
if (columnSpecific && columnSpecific.width !== undefined) {
that.columnWidth[i] = columnSpecific.width;
}
}
}
if (!columnsDefinition) {
return '';
}
for (let i = startIndex; i < that.data.length; i++) {
for (let j = 0; j < that.columnsArray.length; j++) {
const columnLetter = that.columnsArray[j],
cell = columnLetter + (i + 1),
datafield = that.datafields[j],
columnSpecific = columnsDefinition[datafield];
for (let prop in columnsDefinition) {
if (Object.prototype.hasOwnProperty.call(columnsDefinition, prop) && sampleRecord[prop] === undefined) {
that.storeCellStyle(cell, prop, columnsDefinition[prop]);
}
}
if (!columnSpecific) {
continue;
}
for (let prop in columnSpecific) {
if (!isNaN(prop) || !Object.prototype.hasOwnProperty.call(columnSpecific, prop)) {
continue;
}
that.storeCellStyle(cell, prop, columnSpecific[prop], that.data[i][datafield]);
}
if (columnSpecific[i]) {
const cellProperties = columnSpecific[i];
for (let prop in cellProperties) {
if (!isNaN(prop) || !Object.prototype.hasOwnProperty.call(cellProperties, prop)) {
continue;
}
if (!cellProperties[prop]) {
continue;
}
that.storeCellStyle(cell, prop, cellProperties[prop], that.data[i][datafield]);
}
}
}
}
// prepend
if (that.headerContent && that.headerContent.length) {
for (let m = 0; m < that.headerContent.length; m++) {
const applyToRowCells = (row, prop, value) => {
for (let j = 0; j < that.columnsArray.length; j++) {
const currentCell = that.columnsArray[j] + (row);
that.storeCellStyle(currentCell, prop, value);
}
}
const row = m + 1;
if (that.headerContent[m].style) {
const contentStyle = that.headerContent[m].style;
const hexDigits = new Array
('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
const hex = (x) => {
return isNaN(x) ? '00' : hexDigits[(x - x % 16) / 16] + hexDigits[x % 16];
}
//Function to convert rgb color to hex format
const toHex = (rgb) => {
if (!rgb.startsWith('#')) {
rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
if (!rgb) {
return null;
}
}
else {
return rgb.toUpperCase();
}
return '#' + hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]).toUpperCase();
}
for (let prop in contentStyle) {
let value = contentStyle[prop];
if (prop === 'height') {
that.rowHeight[row - 1] = ` ht="${parseFloat(value)}"`;
continue;
}
if (prop === 'color' || prop === 'backgroundColor') {
value = toHex(value);
}
applyToRowCells(row, prop, value);
}
}
}
}
// append
if (that.footerContent && that.footerContent.length) {
for (let m = 0; m < that.footerContent.length; m++) {
const applyToRowCells = (row, prop, value) => {
for (let j = 0; j < that.columnsArray.length; j++) {
const currentCell = that.columnsArray[j] + (row);
that.storeCellStyle(currentCell, prop, value);
}
}
let prefix = (that.headerContent && that.headerContent.length) ? that.headerContent.length : 0;
const row = 1 + that.data.length + m + prefix;
if (that.footerContent[m].style) {
const contentStyle = that.footerContent[m].style;
const hexDigits = new Array
('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
const hex = (x) => {
return isNaN(x) ? '00' : hexDigits[(x - x % 16) / 16] + hexDigits[x % 16];
}
//Function to convert rgb color to hex format
const toHex = (rgb) => {
if (!rgb.startsWith('#')) {
rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
if (!rgb) {
return null;
}
}
else {
return rgb.toUpperCase();
}
return '#' + hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]).toUpperCase();
}
for (let prop in contentStyle) {
let value = contentStyle[prop];
if (prop === 'height') {
that.rowHeight[row - 1] = ` ht="${parseFloat(value)}"`;
continue;
}
if (prop === 'color' || prop === 'backgroundColor') {
value = toHex(value);
}
applyToRowCells(row, prop, value);
}
}
}
}
}
/**
* Processes complex header object.
*/
processComplexHeader(header, data, format) {
const that = this,
flatHeader = {},
processGrouping = ['html', 'jpeg', 'pdf', 'png', 'xlsx'].indexOf(format) !== -1 && header.columngroups,
datafieldMapping = [],
columnGroupHierarchy = {},
columnGroupNameHierarchy = {},
complexHeader = [],
complexDataFieldsHeader = [];
let headerDepth = 0;
function getColumnGroup(columnGroup) {
for (let i = 0; i < header.columngroups.length; i++) {
const currentGroupDefinition = header.columngroups[i];
if (currentGroupDefinition.name === columnGroup) {
return currentGroupDefinition;
}
}
}
function getColumnGroupHierarchy(groupDefinition, property) {
const columnGroups = [];
while (groupDefinition) {
columnGroups.unshift(groupDefinition[property]);
if (groupDefinition.parentGroup) {
groupDefinition = getColumnGroup(groupDefinition.parentGroup);
}
else {
return columnGroups;
}
}
}
if (processGrouping) {
for (let i = 0; i < header.columngroups.length; i++) {
const currentGroupDefinition = header.columngroups[i],
groupHierarchy = getColumnGroupHierarchy(currentGroupDefinition, 'label');
columnGroupHierarchy[currentGroupDefinition.name] = groupHierarchy;
columnGroupNameHierarchy[currentGroupDefinition.name] = getColumnGroupHierarchy(currentGroupDefinition, 'name');
headerDepth = Math.max(headerDepth, groupHierarchy.length);
}
headerDepth++;
for (let i = 0; i < headerDepth; i++) {
complexHeader[i] = [];
complexDataFieldsHeader[i] = [];
}
}
for (let i = 0; i < header.columns.length; i++) {
const currentColumn = header.columns[i];
flatHeader[currentColumn.dataField] = currentColumn.label;
if (!processGrouping) {
continue;
}
datafieldMapping[i] = currentColumn.dataField;
complexHeader[headerDepth - 1][i] = currentColumn.label;
complexDataFieldsHeader[headerDepth - 1][i] = currentColumn.dataField;
if (!currentColumn.columnGroup) {
continue;
}
const columnGroups = columnGroupHierarchy[currentColumn.columnGroup],
columnGroupNames = columnGroupNameHierarchy[currentColumn.columnGroup];
if (columnGroups) {
for (let j = 0; j < columnGroups.length; j++) {
complexHeader[j][i] = columnGroups[j];
complexDataFieldsHeader[j][i] = columnGroupNames[j];
}
}
}
if (complexHeader.length > 1) {
const numberOfDatafields = Object.keys(flatHeader).length;
for (let i = 0; i < headerDepth - 1; i++) {
const entry = {};
for (let j = 0; j < numberOfDatafields; j++) {
if (complexHeader[i][j] === undefined) {
let iterator = i + 1;
while (complexHeader[iterator][j] === undefined) {
iterator++;
}
complexHeader[i][j] = complexHeader[iterator][j];
complexDataFieldsHeader[i][j] = complexDataFieldsHeader[iterator][j];
}
entry[datafieldMapping[j]] = complexHeader[i][j];
}
if (format === 'xlsx') {
data.splice(i, 0, entry);
}
}
that.complexHeader = complexHeader;
that.complexDataFieldsHeader = complexDataFieldsHeader;
if (format !== 'xlsx') {
data.unshift(flatHeader);
}
else {
data.splice(headerDepth - 1, 0, flatHeader);
const toMerge = {};
for (let i = 0; i < headerDepth; i++) {
for (let j = 0; j < numberOfDatafields; j++) {
const dataField = complexDataFieldsHeader[i][j];
if (!toMerge[dataField]) {
toMerge[dataField] = { from: [i, j] };
toMerge[dataField].to = toMerge[dataField].from;
}
else {
const oldMergeTo = toMerge[dataField].to;
if (i - oldMergeTo[0] > 1 || j - oldMergeTo[1] > 1) {
toMerge[dataField + Math.random().toString(36)] = toMerge[dataField];
toMerge[dataField] = { from: [i, j], to: [i, j] };
continue;
}
toMerge[dataField].to = [i, j];
}
}
}
that.complexHeaderMergeInfo = toMerge;
}
}
else {
data.unshift(flatHeader);
}
}
/**
* Processes hierarchical data.
*/
processHierarchicalData(data, format) {
const that = this,
startIndex = format !== 'xlsx' ? +that.exportHeader : that.xlsxStartIndex,
siblingGroups = {},
processedData = [];
let maxLevel = 0,
actualHierarchy = false;
function process(parentKey, level, collapsed) {
const group = siblingGroups[parentKey];
maxLevel = Math.max(maxLevel, level);
if (group === undefined) {
return;
}
for (let i = 0; i < group.length; i++) {
const currentRecord = group[i],
keyDataField = currentRecord._keyDataField;
currentRecord._collapsed = collapsed;
currentRecord._level = level;
processedData.push(currentRecord);
if (siblingGroups[keyDataField]) {
actualHierarchy = true;
currentRecord._expanded = currentRecord._expanded !== undefined ? currentRecord._expanded : true;
process(keyDataField, level + 1, collapsed || !currentRecord._expanded);
}
}
}
function processJSONXML(parentKey, level, parent) {
const group = siblingGroups[parentKey];
maxLevel = Math.max(maxLevel, level);
if (group === undefined) {
return;
}
for (let i = 0; i < group.length; i++) {
const currentRecord = group[i],
keyDataField = currentRecord._keyDataField;
let cleanedRecord;
if (format === 'json') {
cleanedRecord = {};
for (let prop in currentRecord) {
if (Object.prototype.hasOwnProperty.call(currentRecord, prop) && prop.charAt(0) !== '_') {
cleanedRecord[prop] = currentRecord[prop];
}
}
}
else {
cleanedRecord = Object.assign({}, currentRecord);
}
parent.push(cleanedRecord);
if (siblingGroups[keyDataField]) {
actualHierarchy = true;
cleanedRecord.rows = [];
processJSONXML(keyDataField, level + 1, cleanedRecord.rows);
}
}
}
if (data[startIndex]._keyDataField === undefined) {
return that.processNestedData(data, format, startIndex);
}
for (let i = startIndex; i < data.length; i++) {
const currentRecord = Object.assign({}, data[i]);
let parentKey = currentRecord._parentDataField;
if (parentKey === undefined) {
parentKey = null;
}
if (siblingGroups[parentKey] === undefined) {
siblingGroups[parentKey] = [currentRecord];
}
else {
siblingGroups[parentKey].push(currentRecord);
}
}
if (startIndex) {
for (let i = 0; i < startIndex; i++) {
processedData.push(Object.assign({}, data[i]));
if (['json', 'pdf', 'xml'].indexOf(format) === -1) {
processedData[i]._level = 1;
}
}
}
if (format !== 'json' && format !== 'xml') {
process(null, 1, false);
}
else {
processJSONXML(null, 1, processedData);
}
if (!actualHierarchy) {
that.actualHierarchy = false;
}
that.maxLevel = maxLevel;
return processedData;
}
/**
* Processes nested hierarchical data.
*/
processNestedData(data, format, startIndex) {
const that = this,
processedData = [];
let maxLevel = 0,
actualHierarchy = false;
function process(start, children, level, collapsed) {
maxLevel = Math.max(maxLevel, level);
for (let i = start; i < children.length; i++) {
const currentRecord = Object.assign({}, children[i]);
currentRecord._collapsed = collapsed;
currentRecord._level = level;
processedData.push(currentRecord);
if (currentRecord.children && currentRecord.children.length > 0) {
actualHierarchy = true;
currentRecord._expanded = currentRecord._expanded !== undefined ? currentRecord._expanded : true;
process(0, currentRecord.children, level + 1, collapsed || !currentRecord._expanded);
}
delete currentRecord.children;
}
}
function processJSONXML(start, children, rows, level) {
maxLevel = Math.max(maxLevel, level);
for (let i = start; i < children.length; i++) {
const currentRecord = Object.assign({}, children[i]);
if (level === 1) {
processedData[i] = currentRecord;
}
else {
rows[i] = currentRecord;
}
if (currentRecord.children && currentRecord.children.length > 0) {
actualHierarchy = true;
currentRecord.rows = [];
processJSONXML(0, currentRecord.children, currentRecord.rows, level + 1);
}
delete currentRecord.children;
}
}
if (startIndex) {
for (let i = 0; i < startIndex; i++) {
processedData.push(Object.assign({}, data[i]));
if (['json', 'pdf', 'xml'].indexOf(format) === -1) {
processedData[i]._level = 1;
}
}
}
if (format !== 'json' && format !== 'xml') {
process(startIndex, data, 1, false);
}
else {
processJSONXML(startIndex, data, undefined, 1);
}
if (!actualHierarchy) {
that.actualHierarchy = false;
}
that.maxLevel = maxLevel;
return processedData;
}
/**
* Processes row styles.
*/
processRowStyle(style) {
const that = this,
rowsDefinition = style.rows;
that.rowHeight = [];
if (!rowsDefinition) {
return;
}
const startIndex = that.xlsxStartIndex;
function applyToRowCells(row, prop, value) {
for (let j = 0; j < that.columnsArray.length; j++) {
const currentCell = that.columnsArray[j] + (row + 1 + startIndex);
that.storeCellStyle(currentCell, prop, value);
}
}
if (rowsDefinition.height) {
if (!rowsDefinition.height) {
rowsDefinition.height = 15;
}
that.defaultRowHeight = ` ht="${parseFloat(rowsDefinition.height) / 2}"`;
}
for (let i = startIndex; i < that.data.length; i++) {
const row = i - startIndex;
for (let prop in rowsDefinition) {
if (Object.prototype.hasOwnProperty.call(rowsDefinition, prop) &&
prop.indexOf('alt') === -1 &&
isNaN(prop) &&
prop !== 'height') {
applyToRowCells(row, prop, rowsDefinition[prop]);
}
}
if (rowsDefinition.alternationCount &&
(((rowsDefinition.alternationStart === undefined || row >= rowsDefinition.alternationStart) &&
(rowsDefinition.alternationEnd === undefined || row <= rowsDefinition.alternationEnd)) ||
rowsDefinition.alternationStart === rowsDefinition.alternationEnd)) {
const start = rowsDefinition.alternationStart || 0,
i = (row - start) % rowsDefinition.alternationCount;
if (rowsDefinition[`alternationIndex${i}Color`]) {
applyToRowCells(row, 'color', rowsDefinition[`alternationIndex${i}Color`]);
}
if (rowsDefinition[`alternationIndex${i}BorderColor`]) {
applyToRowCells(row, 'borderColor', rowsDefinition[`alternationIndex${i}BorderColor`]);
}
if (rowsDefinition[`alternationIndex${i}BackgroundColor`]) {
applyToRowCells(row, 'backgroundColor', rowsDefinition[`alternationIndex${i}BackgroundColor`]);
}
}
if (that.setRowHeight) {
const rowHeight = that.setRowHeight(row);
if (rowHeight) {
that.rowHeight[i] = ` ht="${parseFloat(rowHeight)}"`;
continue;
}
}
if (rowsDefinition[row]) {
for (let prop in rowsDefinition[row]) {
if (Object.prototype.hasOwnProperty.call(rowsDefinition[row], prop)) {
if (prop === 'height') {
that.rowHeight[i] = ` ht="${parseFloat(rowsDefinition[row].height) / 2}"`;
continue;
}
if (that.data[i] && that.data[i][prop]) {
function applyToRowCell(row, prop, value, dataField) {
const j = that.datafields ? that.datafields.indexOf(dataField) : -1;
if (j >= 0) {
const currentCell = that.columnsArray[j] + (row + 1 + startIndex);
that.storeCellStyle(currentCell, prop, value);
}
}
for (let styleProp in rowsDefinition[row][prop]) {
applyToRowCell(row, styleProp, rowsDefinition[row][prop][styleProp], prop);
}
continue;
}
applyToRowCells(row, prop, rowsDefinition[row][prop]);
}
}
}
}
}
/**
* Stores cell style in "styleMap" object.
*/
storeCellStyle(cell, prop, value) {
const that = this,
cellMap = that.styleMap[cell];
switch (prop) {
case 'backgroundColor':
cellMap.fills.fgColor = value;
break;
case 'color':
cellMap.fonts.color = value;
break;
case 'fontFamily':
cellMap.fonts.name = value.replace(/"/g, '\'');
break;
case 'fontSize':
cellMap.fonts.sz = Math.round(parseFloat(value) / (96 / 72));
break;
case 'fontStyle':
if (value === 'italic') {
cellMap.fonts.i = true;
}
else {
delete cellMap.fonts.i;
}
break;
case 'fontWeight':
if (value === 'bold') {
cellMap.fonts.b = true;
}
else {
delete cellMap.fonts.b;
}
break;
case 'numFmt': {
cellMap.numFmt = value;
break;
}
case 'textAlign':
cellMap.alignment.horizontal = value;
break;
case 'textDecoration':
if (value === 'underline') {
cellMap.fonts.u = true;
}
else {
delete cellMap.fonts.u;
}
break;
case 'verticalAlign':
if (value === 'middle') {
value = 'center';
}
cellMap.alignment.vertical = value;
break;
}
}
/**
* Returns an Alpha Red Green Blue color value.
*/
toARGB(color) {
color = color.replace(/\s/g, '');
const rgbResult = /rgb\((\d+),(\d+),(\d+)\)/gi.exec(color);
if (rgbResult !== null) {
const r = parseFloat(rgbResult[1]).toString(16).toUpperCase(),
g = parseFloat(rgbResult[2]).toString(16).toUpperCase(),
b = parseFloat(rgbResult[3]).toString(16).toUpperCase();
return 'FF' + ('0').repeat(2 - r.length) + r +
('0').repeat(2 - g.length) + g +
('0').repeat(2 - b.length) + b;
}
const rgbaResult = /rgba\((\d+),(\d+),(\d+)\,(\d*.\d+|\d+)\)/gi.exec(color);
if (rgbaResult !== null) {
const a = Math.round(parseFloat(rgbaResult[4]) * 255).toString(16).toUpperCase(),
r = parseFloat(rgbaResult[1]).toString(16).toUpperCase(),
g = parseFloat(rgbaResult[2]).toString(16).toUpperCase(),
b = parseFloat(rgbaResult[3]).toString(16).toUpperCase();
return ('0').repeat(2 - a.length) + a +
('0').repeat(2 - r.length) + r +
('0').repeat(2 - g.length) + g +
('0').repeat(2 - b.length) + b;
}
const shortHexResult = /^#(.)(.)(.)$/gi.exec(color);
if (shortHexResult !== null) {
const r = shortHexResult[1].toUpperCase(),
g = shortHexResult[2].toUpperCase(),
b = shortHexResult[3].toUpperCase();
return 'FF' + r + r + g + g + b + b;
}
return 'FF' + color.toUpperCase().slice(1);
}
/**
* Adds toggleable functionality.
*/
toggleableFunctionality() {
const that = this;
if (!that.actualHierarchy) {
return '';
}
return `\n <style type="text/css">
.toggle-element {
width: 5px;
height: 1px;
padding-right: 5px;
float: left;
text-align: right;
cursor: pointer;
user-select: none;
}
.collapsed {
display: none;
}
</style>
<script type="text/javascript">
window.onload = function () {
var expandChar = '${that.expandChar}',
collapseChar = '${that.collapseChar}',
toggleElements = document.getElementsByClassName('toggle-element');
function getParent(child) {
var prevSibling = child.previousElementSibling;
while (prevSibling) {
if (child.getAttribute('level') > prevSibling.getAttribute('level')) {
return prevSibling;
}
prevSibling = prevSibling.previousElementSibling;
}
}
function getFirstCollapsedAncestor(child) {
var parent = getParent(child);
while (parent) {
if (parent.firstElementChild.firstElementChild.innerHTML === expandChar) {
return parent;
}
parent = getParent(parent);
}
}
for (var i = 0; i < toggleElements.length; i++) {
toggleElements[i].addEventListener('click', function (event) {
var expanded = this.innerHTML === collapseChar,
row = this.parentElement.parentElement,
sibling = row.nextElementSibling;
if (expanded) {
this.innerHTML = expandChar;
}
else {
this.innerHTML = collapseChar;
}
while (sibling && row.getAttribute('level') < sibling.getAttribute('level')) {
if (expanded) {
sibling.style.display = 'none';
}
else {
var firstCollapsedAncestor = getFirstCollapsedAncestor(sibling);
if (!firstCollapsedAncestor || firstCollapsedAncestor === row) {
sibling.classList.remove('collapsed');
sibling.style.display = null;
}
}
sibling = sibling.nextElementSibling;
}
});
}
}
</script>`;
}
/**
* Generates styles.xml.
*/
generateStyles(style) {
const that = this;
that.cellStyleMapping = {};
if (Object.keys(style).length === 0 && !that.complexHeader) {
// default style
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"><fonts count="1" x14ac:knownFonts="1"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><charset val="204"/><scheme val="minor"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>${that.conditionalFormattingXLSX.styles || '<dxfs count="0"/>'}<tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`;
}
that.styleMap = {};
let offset = that.headerContent ? that.headerContent.length : 0;
offset += that.footerContent ? that.footerContent.length : 0;
let count = that.data.length + offset;
if (that.groupBy && that.groupBy.length) {
count += 50;
}
for (let i = 0; i < count; i++) {
for (let j = 0; j < that.columnsArray.length; j++) {
that.styleMap[that.columnsArray[j] + (i + 1)] = {
numFmts: {}, fonts: {}, fills: {}, borders: {}, alignment: {}
}
}
}
if (style && style.columns) {
for (let i = 0; i < that.columnsArray.length; i++) {
const datafield = that.datafields[i];
if (!style.columns[datafield] || !style.columns[datafield].format) {
continue;
}
const XLSXFormatFirst = that.getXLSXFormat(style.columns[datafield].format, that.data[1][datafield]);
const XLSXFormat = that.getXLSXFormat(style.columns[datafield].format, that.data[that.data.length - 1][datafield]);
if (XLSXFormat) {
style.columns[datafield].numFmt = XLSXFormat;
}
else if (XLSXFormatFirst) {
style.columns[datafield].numFmt = XLSXFormatFirst;
}
else if (style.columns[datafield].format && (datafield.toLowerCase().indexOf('date') >= 0 || style.columns[datafield].format.indexOf('d/') >= 0)) {
let format = style.columns[datafield].format;
switch (format) {
case 'd':
format = 'm/d/yyyy';
break;
case 'D':
format = 'nnnnmmmm dd, yyyy';
break;
case 't':
format = 'h:m AM/PM';
break;
case 'T':
format = 'h:mm:ss AM/PM';
break;
case 'f':
format = 'nnnnmmmm dd, yyyy h:m AM/PM';
break;
case 'F':
format = 'nnnnmmmm dd, yyyy h:mm:ss AM/PM';
break;
case 'M':
format = 'mmmm d';
break;
case 'Y':
format = 'yyyy mmmm';
break;
case 'FP':
case 'PP':
format = 'yyyy-mm-dd hh:mm:ss';
break;
case 'FT':
case 'PT':
format = 'hh:mm:ss';
break;
}
format = format.replace(/f|u|n|p|e|a|x|o/gi, '');
format = format.replace(/tt/gi, 'AM/PM');
format = format.replace(/:{2,}|:\s|:$|\.$/g, '');
format = format.trim();
style.columns[datafield].numFmt = format;
}
}
}
that.processRowStyle(style);
that.processColumnStyle(style);
const cellAliases = {};
for (let i = 0; i < that.complexHeaderMergedCells.length; i++) {
const currentCell = that.complexHeaderMergedCells[i];
if (parseFloat(currentCell.to[1]) === that.complexHeader.length) {
cellAliases[currentCell.to] = currentCell.from;
continue;
}
that.styleMap[currentCell.from].alignment.horizontal = 'center';
that.styleMap[currentCell.from].alignment.vertical = 'center';
}
const fonts = {
xml: '<font><sz val="11" /><color theme="1" /><name val="Calibri" /><family val="2" /><charset val="204" /><scheme val="minor" /></font>',
collection: ['default']
},
fills = {
xml: '<fill><patternFill patternType="none" /></fill><fill><patternFill patternType="gray125" /></fill>',
collection: ['default', 'gray125']
},
numFmts = {
xml: '',
collection: []
},
cellXfs = {
xml: '<xf fontId="0" fillId="0" borderId="1"/>',
collection: ['default']
};
for (let i = 0; i < count; i++) { // iterate rows
for (let j = 0; j < that.columnsArray.length; j++) { // iterate columns
const currentCell = that.columnsArray[j] + (i + 1),
currentCellStyle = that.styleMap[currentCell];
let currentFont = '', currentFill = '', currentAlignment = '',
currentFontCode = [], currentFillCode = [], currentAlignmentCode = [], xf = [];
for (let prop in currentCellStyle.fonts) {
if (Object.prototype.hasOwnProperty.call(currentCellStyle.fonts, prop)) {
const value = currentCellStyle.fonts[prop];
switch (prop) {
case 'color':
currentFontCode[0] = value;
currentFont += `<color rgb="${that.toARGB(value)}" />`;
break;
case 'name':
currentFontCode[1] = value;
currentFont += `<name val="${value}" />`;
break;
case 'sz':
currentFontCode[2] = value;
currentFont += `<sz val="${value}" />`;
break;
case 'i':
currentFontCode[3] = value;
currentFont += '<i />';
break;
case 'b':
currentFontCode[4] = value;
currentFont += '<b />';
break;
case 'u':
currentFontCode[5] = value;
currentFont += '<u />';
break;
}
}
}
for (let prop in currentCellStyle.fills) {
if (Object.prototype.hasOwnProperty.call(currentCellStyle.fills, prop)) {
const value = currentCellStyle.fills[prop];
switch (prop) {
case 'fgColor':
currentFillCode[0] = value;
currentFill += `<fgColor rgb="${that.toARGB(value)}" />`;
break;
}
}
}
for (let prop in currentCellStyle.alignment) {
if (Object.prototype.hasOwnProperty.call(currentCellStyle.alignment, prop)) {
const value = currentCellStyle.alignment[prop];
switch (prop) {
case 'horizontal':
currentAlignmentCode[0] = value;
currentAlignment += `horizontal="${value}" `;
break;
case 'vertical':
currentAlignmentCode[1] = value;
currentAlignment += `vertical="${value}" `;
break;
}
}
}
currentFontCode = currentFontCode.toString();
currentFillCode = currentFillCode.toString();
if (currentFont !== '') {
let fontIndex = fonts.collection.indexOf(currentFontCode);
if (fontIndex === -1) {
fontIndex = fonts.collection.length;
fonts.xml += '<font>' + currentFont + '</font>';
fonts.collection.push(currentFontCode);
}
xf[0] = fontIndex;
}
if (currentFill !== '') {
let fillIndex = fills.collection.indexOf(currentFillCode);
if (fillIndex === -1) {
fillIndex = fills.collection.length;
fills.xml += '<fill><patternFill patternType="solid">' + currentFill + '</patternFill></fill>';
fills.collection.push(currentFillCode);
}
xf[1] = fillIndex;
}
if (currentAlignmentCode.length > 0) {
xf[2] = currentAlignment;
}
if (currentCellStyle.numFmt !== undefined) {
xf[3] = that.getNumFmtIndex(currentCellStyle.numFmt, numFmts);
}
const xfCode = xf.toString();
if (xfCode !== '') {
let xfIndex = cellXfs.collection.indexOf(xfCode);
if (xfIndex === -1) {
let newXfXML = '<xf ';
xfIndex = cellXfs.collection.length;
if (xf[0] !== undefined) {
newXfXML += `fontId="${xf[0]}" `;
}
if (xf[1] !== undefined) {
newXfXML += `fillId="${xf[1]}" `;
}
if (xf[3] !== undefined) {
newXfXML += `numFmtId="${xf[3]}" `;
}
if (xf[2] !== undefined) {
newXfXML += `applyAlignment="1" borderId="1"><alignment ${currentAlignment}/></xf>`;
}
else {
newXfXML += ' borderId="1"/>';
}
cellXfs.xml += newXfXML;
cellXfs.collection.push(xfCode);
}
that.cellStyleMapping[cellAliases[currentCell] || currentCell] = xfIndex;
}
}
}
if (numFmts.collection.length) {
numFmts.xml = `<numFmts count="${numFmts.collection.length}">${numFmts.xml}</numFmts>`;
}
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision">${numFmts.xml}<fonts count="${fonts.collection.length}" x14ac:knownFonts="1">${fonts.xml}</fonts><fills count="${fills.collection.length}">${fills.xml}</fills><borders count="2"><border><left/><right/><top/><bottom/></border><border><left style="hair"/><right style="hair"/><top style="hair"/><bottom style="hair"/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="${cellXfs.collection.length}">${cellXfs.xml}</cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>${that.conditionalFormattingXLSX.styles}<dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`;
}
}
if ($.jqx && $.jqx.dataAdapter) {
$.jqx.dataAdapter.DataExporter = DataExporter;
}
})(jqxBaseFramework);
})();
/***/ }),
/***/ 8570:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxKanban","",{});a.extend(a.jqx._jqxKanban.prototype,{defineInstance:function(){var b={animationDelay:100,columnRenderer:null,columns:null,connectWith:null,headerWidth:30,headerHeight:30,height:400,handle:null,itemRenderer:null,ready:null,resources:null,rtl:false,source:null,template:"<div class='jqx-kanban-item' id=''><div class='jqx-kanban-item-color-status'></div><div class='jqx-kanban-item-avatar'></div><div class='jqx-kanban-item-text'></div><div class='jqx-kanban-item-footer'></div></div>",templateContent:{id:0,status:"work",text:"New text",content:"New content",tags:"New, tags",color:"green",resourceId:0,className:""},width:600,verticalTextOrientation:"topToBottom",_kanbanId:null,_dropKanbanId:null,_connectWith:null,_kanbanColumns:null,_selectedItemId:null,_selectedItemValues:null,_draggedItemId:null,_draggedItemValues:null,_selectedColumn:null,_source:null,_resourcesLength:null,_items:[],_ie8:(a.jqx.browser.msie&&a.jqx.browser.version==8),_ie7:(a.jqx.browser.msie&&a.jqx.browser.version<8),_parentsTag:null,_columns:[],_collapsedColumns:0,_expandedColumns:null,_columnBorders:[1,1,1,1],_css_color_names:["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","Darkorange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],_clearing:"<div class='jqx-kanban-clearing'></div>",_commonItem:{id:null,name:"no name",image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURZSUlJWVlZaWlpeXl5iYmJmZmZubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5ubq6uru7u7y8vL29vb+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zMzM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3uDg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACvUOQQAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNvyMY98AABbSSURBVHherVsHQ9tIE+XO2NimF9N7KAklhN6SkARS6IRqwGBblsn//wffe29Wsh1M4L67t9JqJa/mzcyuGjPU/HoOD8VikWvBf3goPjz88h6KaGHBns8jWIAC+6Djwy8cKWDVYdROzFN4VoGHX6Goou9THEiKRb/gefl8LpfL5nJ5wPO8gu+THuRAAf0Ek/I0nlPASTEvQA3foxp+/j7z4/uryXhdJBL/O9Y7NvPlayabL1gv6FFgL3fun/ECBegAktPxHjTxvfzJfFcsEklEk3/V1UaidbFoNBaNdy4e5TyQFwvUgSMmOEFP4QVDIC/8gmex+L6XvVptjcYT8URdtLY2Fk0kY7V1ddF4XTISaWidvcxDBSyeKf3vh4BTinI0sQoFL3v0irTxZF0ykUhgE48kkpFEYzQWT2InmRw8y3uYDBqv/0IB2GHCfEyronc4HI/X1ycbkrAaCiTjiWR9MpHEUl9fF4MKiYbY6Ak0kNK8Iv79EACmgV+4mydVUpyNdfVJq7TfUJ+ob0jWNzYkmpOJdxnOhZe54EWTsFjEtpD/0d6UbKivr29oaMBar6ZqHWpobKhvbGzEtrG+70uOGnBGOjlP4lkF8rjt4LIqFLJTTU3JDogXmpqaWKOw1gbHUDU3NjfXJ7teZ3VB/AdzgMOJCeinO5ubm5uSEC80NUMFoLmlGQsrAa2m5ra2pobmvhsPV+1/Mwlx4/Ev+9oaG1NNrY3iaW1tBZkjNegQNm0tLW1trW3tjf3pAhT490NQ9DH+3m1/S3tbcyuMA1GINsA10W5Fu72tvaOjDaq0drX13PCu7OQ8iWcVKBR/+d5NT3tbR3t7a6q9pb0dFGi3ocYmgPa439aR6kh1ptqbO7p6b3FPdHKexLMKAN7NUHtXZ2tHV0dXW1cHCIAUoGYq1WlgAwfZ7OruTHX3tHeOXnv/TgGy4zmcfd3ek+rshWDI78IGS5e2bseOiFrAtrsr1d2bms1Kg2Akqg1IFQXQDR1Jzgup6N8vdPa19kFkd7fJ7+7pwQ4qrKgq0dvTo6W7p7ert2f2vmBmsOINzXGUUFUBquBOwLNvt6e/fQhUBpJWolelr9eKVURfd3/X6DdP7wf/WAGBV6BfyIz3dPf3dzuhWPr6y8oj9OsYfuof6O3v6568xqsSZZlR9G0lHisgZj79UeMlJ7/eNzgAof0D/QMDA/2PgIPlCPcHuQ73DX7Am5IEOjiWEI8UYB/effmCVfSK3uXAcB/kDEHgIIUSEv4bhhysOTg4PDg8NDQyPDR2AXY9muAFSHc0IaoqgNsv3Y8B8PML/cMDgyMDFDoEkUODwy/DyPDw6PDQyMjwEsaAxjg3OJoQ1eYAX0PdHbhwChkD46OwBxgdhcCRCoz+XoBXXInR4dGRV69OYQrZ5YAXKUB20mMK5LfHXg2NjA+PjjmhJvnPGBvDMjrO1sTY+OSWx7dJWk84khBVFLAJAx1wD8y9GpNEiiTGx8afx8TE+IQ1uI5NZPG2/NQIVFHA2OWFh8IJiSWMMLGVmKjE5OSka3BhNTlxjFd5J9BxlKHaJDQFOAbemokIxGrvCbxWUQtgrZ3Jqcn3VEAavOQ+4MyHAije9JSEBSjbIYvhTUWxA4YprK+nX7/FW9XLFbCOTodrKUAxwhQlPgP0mSKmCTbeTM1e6z1dCjzC7wqIHSsc8eAX9mcljJAw1CrTM08VABtt1ZqZfTMzu89vNpr0vAJmvl4nMQTethOJGvbMzsxgwVq1PIF3+OWLJ6tkmCMK8UgBeZ89cRv0PpXLrc7xtgp4dA5Ac25udn72k2YhhT6jADuYAtzCA0vlDJVklO5ArhDvKjA3Nz//7t1KXp9KlPvoJbWKAqSnvlBgYW72N4kh5p/CAgt+1nZ+YWFhfn6RX6xOsqMK8UgBMsMLbPieJFUHJAuLlWWxrK0CLC2UPPAyBZwPfO/dMmUslaQuLi0tVpTHWLbiOrDH2pJ9rUquowrxeAgcpMA8TjeSkMzJd2XlEZYd3C4PrGEOmE+fUcCYHaTACgiXVyqKbVZWXXkEHlxbDcva+trKyga+E82pEOzIAjxSQJ1s63tbK6slWVZss762LuHrADeVZX1jfcO11zbX11c/u691k+3YHKoqoBUPI+8bRBkJwC2bku/KJrFBqFUV7zd2TQFnnGNzKFOAP5YU0F9kvm+8d1Kq4f1T+PABq2u+f7/5cV/PY8nFxtE5PKGAKt+/oIxNFYhiCfYCfCjHR8A1Q3z88HHrouDuhNTixQrgxdTPQaYTFAISWUJslZVPW8CnCuDA53s+2v+BAuwmnxW97VAcRROfysunz4/gun9yjS+fP2/t4O3e5P5DBfBdekiRKp+/qLg9dwz4UgXbXLdRo9re/nxUKPIvyf9EAfoLc+DBvwGpQbIAii8rPBKUnW0WVWHhknYKQDgZHJ3DIwUAU4DfJUXvGyRWYucP+IqiqlR2vu7m+IdbKSA4OodqCtANcD/eyh8KxxCx89UqbSrAY1+/VRRWxPfvbGPz/di+C9wA/EGBcg3MY7gVeDu7Oz92vv6QVAilREEsxPey8gPHUX4Qu1i+f9v7tntvf7eWQIh1ZAGeUsCh6J/u/IBAMGol0HIFJLsBsFMV30/dHwzh1H+qAHUuZkGy95R0w164DVoAdrAc/jjI0QFYnAKOK8QfPYBTioX0t30JlPg9bIS9vX2Vx3DH9ncP9nf3D/Yv8Z0vQf9UAZrPyveOacze/sEBxO1rrcQB4JrA4cEhDxxgc3iwd4ABwAhoCkqB30fgGQW4LWT3Dg/3Dg4ByTUccT1i/Rh2+Pjw6OTgOIOXaz5Z+X0qkY4rxDOTECj4V8cQeQwcoYGFYPv4+OTkREfVdgUHsMffjo9Prz1ezu597P9UAB9IJ4dnhySjdG6Inz9PqhUc/3l6eopfj36eHl5gAHA/1Ri8QIHqGuDE/MXPsxPIlewQP1VOzyoKcHaGxjlbab4Nk5mjr/r/UgD35FzaRJ5DtlGUcF5ZABw7v7g4O7/Wq6AtpgC2jirEswrYifmrSwiG3LOLcxTC6hAgDloXF5eXWDH+YtZioh7Rv0AB3kJ4MaahwmUVXFWWK/S7Ai4ubmB/QdTGL20cURme9wBWKpG/T19epdNpMARFSF9XFBy/xpq+us3zA9tJsEVwVCGenwN2Kp6O95B8fXN9nb5BHRSgbBfQ5jqTUfhU5/Nk1wAcVYgXTEJTAHek3H2GFDc3t4C1rP0bMnc5D+NvHyN0vUQ4JRxViMcKWHe3UU0JOuZ7mdu735DJuAaB9j2WHMzXS6VC/oEMSnhGAUIqoyNrO5dt90LjF7z7u/v7bNbWEFnsAmzCev1Z0E4OHKBKcDQhqihAZ9lZ7my3Z7uelyORCImcIR+0vNLFr1O1DS1wJGV4pMAv/WXZEP5xC1LQ5G0VXvA9L5/Lo0Ih2GQKA7YFzyMNTxWfzsZp2nGzwNEEeKQAGQINeKJr0qRQEEaiAIgerNoDuW+PfhrNru4UnQtainqBApSv09gXF5I7n7tqqY0GtPSpBGAtOwvXHjZODTvFJD3wD3DWqEQ1BSBEJ0uMhAQnB4pQCWyphX7W72y539VyW51px6mG4wlRZQjcuTzJ9HH7rFHxO48m8hf9oJ7sg0WDpGNC2BDUdjQhqiig00ys5HKY7ZDA4XEPePWlVAIN6wCoj41kIDSA9svwaAicQH6XkQVfJ5kPt1m1ZXdoI0fKepJMB90uUWCez3tdNcEvJH+BAvQ7hfMvFLrqb2ORpvnzPGZ6mSiRYIcBcu48wEk6zvcfTg0vd77wOp2TiuoQwPGEqOIBE42HGb7MsteRWCReWxefPc4w/gboZ5+DwqmvncAVhQKVx3Hv7mguVlvXeKw/j/maSzYOjqaExwrQhRxkDH3uriYajUf+jkUisWjr7HE2n+dFpx4aAH5zQg3coiUd7PB8Pns81xKJRCPxRO18Fq5hFgQmg3VxPCGqTUKzMnN5E4kk/o7ESF8XrY3WRlqmdzOWtEUVlatEbeAO44bp+czuTHMkGmemUSxaVzd8gy8jGx6T7WhCVFMAKhfxCtRTlwQ9mOsSNbHa2ggGIhqJ9s9sX9zhvq9boO6GVuP2fHe6/XYkFovXJ2LxeCKSrE8k6+PxH9m8/+DZJKB0xxOgqgIwLH/2Ohb5K1obgwNq/05gHOLxv/6CDnUxNDvHpnc+795kbvF0zmQy14c729PjPY0gZ1ZPrK6hsS7RHE/U1yeTTYkZvJyR3c1ExxOgxu5NFVME/s9dDCfgfHgeczAK+zkEcGwkCrdGY3GscHEdM5fizKiKJ0nNrCaY3diYTDY0JBsakw3NjcnWZPc3TB13rYqFK00lWQ3t1UH9rrVY8A5fJepitVEBTqhziAvgI6tymgz1sFX5RJZR1MAsnybm2qBqaGlrXsnaF4r9uQ4M/EZV9VAjckBewk/M18sfjiaT8TiYwW2kpAUnrCQcLUiZycS0JuMFcZDhA/qWltaW1lRLR1N7U9ctnpW8i+lVnQowQGweAKCBTKcSuPxzOwPNyQaqANCxJVOFEiXTlwCwKZWHGUVM5cFiiTVtbe3NqbauVHtvyxbuprixkY4kwZA/1EAbkEMbbHllw/6dwfpkSxM0IJQsliRh4GD5l5aanTLVUZJTSTUCk1062npT7V2pVFfn4p2H26YuYHO66QAPuMkhRXBd574OtrQ3NjZDAxK6UZV7yUda8ZI1IBYt6QJil1vDdJb2/s5UP3a7R/bg/zxpjAqDANYapwht5zzwM9u9za1NHXBjo0iZLyZOy9kSZwuTltrarRgl03pIya3LqmG6C7NaUr297b39fT29vUt8W4cHoABVcAoYOCkxTQrXWz1t3alUawoqmJnK0FKmltE6yEzHSi6QdncpzYaslt2ihJa+np7+oYGege6Rvv6RSyV0BBoAUsCaROFqa6i3o7Mr1dWR6mgjL1O1zEzn3hR5O62InLRBMo/xWkaN0D8w2M/Mk4GhgeGhoeGRoa/ZIIhpjM4DOoD5d74x0NMNaXRhpwhhqYzVqMpOS1iStWWkzLAJsmost2WQpZRboqyO0dHRd3d8inEkRGoK8PaA6Vm4WR0c7IPLaFBPV6cZG8JIy33c4yxVOg1I+2muslxAPExOB8vsAEZHxxdwo9FjVD4o4jI0D+D5e7421NsHh8mMvh7aSzrnYBE6WA8jpqVDMDQw1hG7FBNjtjQMpV+8erXL70ZRstJ9AMCr1znsH++H8nQfzAmTpoyRqxiJ0FDZ6mCcI5VpJuCdYE4Hkx+Y/jA+NYOnIx1gs6DGmrj/369MDI2OjA5zssAiZi9VmCq6gLfkXuN0Hg6g1I5SfofLeVCKxZvJN2f801mgAYdAE8Lbn4B7JGpkFDKhBGevkpbETd9aIdivRDr2apykgCWc0F5HKij9wXIbZqam19yrImjpAb4uYVDySxOTo2OTTFmB2yB7ZNhGVXwAc4bKs3iYWCM2g5kq2rI0jzevlfdg+RTKa5iam569LuANRTAFOAreLU57MzHGkRqfYMbO6EjAG1gKShWa6fJ0SGpctkGDiSS0NczkmJmZZqJBkH4wMzO7yRuy6HUV4LrEQ/jL9OS0k8GUmcmJMVwzXJytobUkDXkJ+ZeWGiUhVuZegE2wPAPV7+ZmF6703MWHOK4CPn+gwP3y5GsMz9RriIE4yJWNmMIl0sDB+NVImbIS2howlidavH0rauY1qMzPzy+9fbe08EHviLj760bETeFkdmpmdnp2xjJfIPYNrhixGqiSIy1LlTFbmVgS0BqjwRIq5lmClIPFxeXFhaV3eDTzdQRK+LwK4IH8NhyE8yWM04XOECUqx1kCWN2UErHjI+bmAtoAYmUCglIJgNWlhaW1Hwzm8oUIHuBl6N+szs1zkObmNVC0ZWa6RCo6o+RPhPGpdrY6RsA4DSJl0N8lFSyvrqxtrC5nefHxpcSeht7RMrM1FuagAMZKQjkczATCuDhOkpZ8PIfpxFE1DzNVQ0kWSpsALdMbQEzS1ZVVlwWwpjj8xubq2h6zDMFtb0RFbwf9ca7ljEAktXCsNpVIy6kkBWWtIw5JXXIFF0fLmL/LNgB1GOF/v7b5/uPGHR5+tL2Gr6p+7sPq0vLi8tLCCkQt0YSFBRsM8VaOajCsQVoHKeVhJVDATNLJ1PW1UmYBQ+2bjOlvfvwA/q1T3IwwB3EfgBaF0+V1eImughQaAiwwV6dEKweTUKSECFWB11gtaYKpDUZLVsKF3V3MfesTI9+KZ/t4Lce3q/d1A7oyN0Ies8yQpcUF0MLH5pSAldbqdzlZw2ooS6MwUhaF/0XKwLui3YYvXy7wSY0LAQoU/ZuNDxtKTYAMJ251bWW5ZKu5lw7mbJKhASpMtSSHUnaBaMMg/5fPDHF/UfR5e+c7vhh9fZh4/sF7dJaboAQBPTbWmTETYLXE6CgBx7opD0OAkdLDInXMQejdMRsYh77iU5AK4BpAZypLJSDB0j82NaxlxBWsNq7GCJRMNfLPLtwPLkerwDdD3Yo3M/aMzwReBZgKV9vUgOdRDvTYomgNyKbMDShJKlcFrDzr0xaTGZTeYLkFNLUiyB+G01kz5KxA8N6Pa94IoIB/CDWVbrC9LRM+y5iPdK7Rvi8ljdBSOjaAS3BQ9kIFFMZnmN0RB7ykdiHgY34p4n3A22N/O83UwIBBNvxgxPRKkDDySYkcMJSdpHY5lEIQ8AJlQW8XdFZceY8x3r29g1vdiPz0992vSgzAxFCmghyiUSFhANCKtIzW+mNkQesYLcIfhvVlKWpGmMm6v6/YroV2j08xDWuKhTN0wYlYJeXbN5O6Y+kijpae4eGAEtzOs0ZclklgZsLRiq8HYNQ5iPoqtHt8dHKa42v5/cG+xf3NR7u7MIJq2Pwtt9XSM4zQchoeuZju3WOYHUUISAMounvK+C4255e+X+Nf7R26mLwUdwABbQWxsxQ6ycMsro/4oLeNqVDG6cCAtiLK4FR9dspoK5aLs4vTgl/jnaLTgUZFCQKBEnu7JKUrUJWRUkvB3CszAZ7vKAHZarQw2WLMYcyX0V2GWdPnl5c3fk3u9PT4VLF2nEgxTBOAZOgBUvI6biMNjWWCAsHIPikZwHcQJRCEuh2ti+xeWMT1Ip2+vLq59GtuzxmVPkF3nAjFIeiIUg/24Ql6w1I1xElLSSsrCWUMkFKxewbXFd0W45mFmY3XSBlovUpfX6cJBj1vr72aNPr8vDzheZIAWcoTOD4Eq8vaIEQo/UqDKm7wkTE0lS6+vGARr+LJCvUCDLReX9/cMOyZubm7Td/f11xdoRf6alw0PSwL4PRY7t2nLoRjJq+NqWjZ2zhRXRix2Zq+Ilf6RqSkVKzVAqsMcLJiDLKGsWbogIWuohoSC1fQ4hNcrY7WnPzbfDqDlYGDL+XeAOZmchpvJpNhXBNQ5DOrWGcu79Wwz42C0NQk8AcHD4RkMkKXm+CmkhHKUNR0ryglBaBEEBJgIxNjq2zd3+f479L5vAduNDy/JpOhcgxG394y7i3NKRZzE56gr0ktWlZUUi4jQGlmilN2olIYWZDFBDkJRVj5D9v5HEOwOa9YI5dgRXenCAAVrkGHgTQiMGKVarSQtWP8jc/ixwzjOsKQ2OKssNyAX7I45j/U0D82JjifUgJ/UAPzsjTAXJFu4kRN9zqQ07ZGf5/lf6T/BlIQbpcHMAB4HMMpaOeDDk7W3R1pMDWclSIUSGGdUHNMaY3+Dd7BTKaFFFsBdLQGfvJkPxRQ30ACXWe/Z+8ZHlJctjrsC/9P4HePPnsE2yvtU8TDw0Pxf9HojR+SZp5gAAAAAElFTkSuQmCC"},_touchEvents:{mousedown:a.jqx.mobile.getTouchEventName("touchstart"),click:a.jqx.mobile.getTouchEventName("touchstart"),mouseup:a.jqx.mobile.getTouchEventName("touchend"),mousemove:a.jqx.mobile.getTouchEventName("touchmove"),mouseenter:"mouseenter",mouseleave:"mouseleave"},_events:["initialized","itemSelected","itemCreated","itemMoved","itemReceived","columnSelected","columnUnselected","columnCollapsed","columnExpanded","itemAttrClicked","columnAttrClicked"]};if(this===a.jqx._jqxKanban.prototype){return b}a.extend(true,this,b);return b},createInstance:function(){var b=this;a("#"+b.element.id).empty();b._createKanban()},_createKanban:function(){var c=this;c._ie8Plugin();c._kanbanId=c.element.id;var b=function(){c._getParent();c._createKanbanField();c._createKanbanLayout();c._addCSS();var d=function(){c._setKanbanConnections();c._transformToSortable();c._addEventHandlers();c._rtlCheck();c._refreshEventHandlers();c._recalculateContainersHeight();c._handlerExpandCollapse();c._raiseEvent("0");c._ready()};c._populateKanban(d)};c._serializeSource(b)},propertyChangedHandler:function(b,c,e,d){if(c==="width"){b.host.width(d-4);b._recalculateContainersHeight();b._calculateExpandedColumnsWidth();return}if(c==="height"){b.host.height(d);return}b._resources=[];b._items=[];b._source=[];b._sourceKeys=[];b._columns=[];a("#"+b.element.id).empty();b._createKanban()},_getParent:function(){var b=this;b._parentsTag=b.host.parent().get(0).tagName.toLowerCase()},_createKanbanField:function(){var c=this;var b=c.columns.length;if(c.width==null&&c.height==null){if(c._parentsTag=="body"){c.width=a(window).innerWidth();c.height=a(window).innerHeight();if(c._ie7||c._ie8){c.host.height(c.height)}c.host.addClass(this.toThemeProperty("jqx-kanban-full-frame"))}else{c.width=c.host.parent().width();c.height=c.host.parent().height();c.host.addClass(this.toThemeProperty("jqx-kanban-in-frame"))}}else{if(c.width!=null&&c.height==null){if(c.width<=c.headerWidth*b){throw new Error("jqxKanban: Insert valid Kanban dimensions. Width must be greather than sum of the collapsed header's width")}c.host.width(c.width)}else{if(c.heigth!=null&&c.width==null){if(c.height<=c.headerHeight){throw new Error("jqxKanban: Insert valid Kanban dimensions. Height must be greather than headerHeight")}c.host.heigth(c.heigth)}else{if(c.width<=c.headerWidth*b){throw new Error("jqxKanban: Insert valid Kanban dimensions. Width must be greather than sum of the collapsed header's width")}if(c.height<=c.headerHeight){throw new Error("jqxKanban: Insert valid Kanban dimensions. Height must be greather than headerHeight")}c.host.width(c.width);c.host.height(c.height)}}}c.host.addClass(this.toThemeProperty("jqx-widget"))},escapeHTML:function(c){var b={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(c).replace(/[&<>"'`=\/]/g,function(d){return b[d]})},sanitizeHTML:function(e){var d=this;var c=new RegExp("<s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)[^>]*>(.*?)<s*/s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)>","ig");var b=String(e).replace(c,function(f){return d.escapeHTML(f)});return b},escape_HTML:function(b){if(b&&(b.indexOf("onclick")>=0||b.indexOf("onload")>=0||b.indexOf("onerror")>=0)){return this.escapeHTML(b)}var c=this.sanitizeHTML(b);return c},_createKanbanLayout:function(){var h=this;var n=h.columns.length;h._expandedColumns=n;var f=h._calculateColumnDimensions(n);var b=h._calculateContainerDimensions(n);for(var r=0;r<n;r++){var g=a("<div></div>").attr("id",h._kanbanId+"-column-"+r).addClass("jqx-kanban-column").attr("data-column-data-field",h.columns[r].dataField).css({width:f[0],height:f[1]});if(h.columns[r].maxItems===undefined){h.columns[r].maxItems=9999}h._columns.push(g);h.host.append(g);var m="jqx-kanban-column-vertical-container";var s=h.columns[r].collapseDirection;if(!s){s="left"}if(s=="right"){m="jqx-kanban-column-vertical-container-inverse"}var p=h.columns[r].iconClassName?h.toThemeProperty(h.columns[r].iconClassName):"";var k,j;if(p){k=a("<div></div>").addClass(h.toThemeProperty("jqx-window-collapse-button-background jqx-kanban-column-header-custom-button")).append(a("<div></div>").addClass(p).css({width:"100%",height:"100%"}));j=a("<div></div>").addClass(h.toThemeProperty("jqx-window-collapse-button-background jqx-kanban-column-header-custom-button")).append(a("<div></div>").addClass(p).css({width:"100%",height:"100%"}))}else{k=null;j=null}var u=a("<div></div>").attr("id",h._kanbanId+"-column-header-collapsed-"+r).attr("data-kanban-column-header-collapsed",r).addClass(h.toThemeProperty("jqx-kanban-column-header-collapsed"));var v=a("<div></div>").addClass(m);var q=a("<span></span>").addClass(h.toThemeProperty("jqx-kanban-column-header-title")).text(h.columns[r].text);var c=a("<span></span>").addClass(h.toThemeProperty("jqx-kanban-column-header-status"));v.append(q).append(c);var e=a("<div></div>").addClass(h.toThemeProperty("jqx-window-collapse-button-background jqx-kanban-column-header-button"));var o=a("<div></div>").addClass(h.toThemeProperty("jqx-window-collapse-button "+(s==="right"?"jqx-icon-arrow-left":"jqx-icon-arrow-right"))).css({width:"100%",height:"100%"});e.append(o);u.append(v).append(k).append(e);g.append(u);var d=a("<div></div>").attr("id",h._kanbanId+"-column-header-"+r).attr("data-kanban-column-header",r).addClass(h.toThemeProperty("jqx-kanban-column-header"));var q=a("<span></span>").addClass(h.toThemeProperty("jqx-kanban-column-header-title")).text(h.columns[r].text);var c=a("<span></span>").addClass(h.toThemeProperty("jqx-kanban-column-header-status"));var e=a("<div></div>").addClass(h.toThemeProperty("jqx-window-collapse-button-background jqx-kanban-column-header-button"));var o=a("<div></div>").addClass(h.toThemeProperty("jqx-window-collapse-button "+(s==="right"?"jqx-icon-arrow-right":"jqx-icon-arrow-left"))).css({width:"100%",height:"100%"});e.append(o);d.append(q).append(c).append(j).append(e);if(h.rtl){d.find(".jqx-kanban-column-header-button").addClass("jqx-kanban-column-header-button-rtl");d.find(".jqx-kanban-column-header-custom-button").addClass("jqx-kanban-column-header-custom-button-rtl")}d.outerHeight(h.headerHeight);d.css("line-height",h.headerHeight+"px");g.append(d);var t=a("<div></div>").attr("id",h._kanbanId+"-column-container-"+r).attr("data-kanban-column-container",h.columns[r].dataField).addClass("jqx-kanban-column-container").css({height:b[1],overflowY:"auto"});g.append(t);g.data("kanban-column-collapsed",false);h.columns[r].headerElement=d;h.columns[r].collapsedHeaderElement=u;if(h.columnRenderer){h.columnRenderer(d,u,h.columns[r])}if(s=="left"){var l=d.find(".jqx-kanban-column-header-title").width();l+=d.find(".jqx-kanban-column-header-status").width();l-=10;g.find(".jqx-kanban-column-header-title").css("left",-l+"px");g.find(".jqx-kanban-column-header-status").css("left",-l+"px")}if(h.columns[r].collapsible===false){g.find(".jqx-kanban-column-header-button").hide()}}if(n==1){h.host.find(".jqx-kanban-column-header-button").hide()}},_calculateColumnDimensions:function(c){var g=this;var f=[];var d=100/c;var b=100;var e=100;if(this.host.height()==0){this.host.height(400)}if(this.host.width()==0){this.host.width(600)}if(g._ie7){d=this.host.width()/c-(this._columnBorders[1]+this._columnBorders[3]);b=this.host.height()-(this._columnBorders[0]+this._columnBorders[2]);e=b-this.headerHeight;d=d+"px";b=b+"px";e=e+"px"}else{e=this.host.height()-a("#"+g._kanbanId+" div.jqx-kanban-column-header").outerHeight();d=d+"%";b=b+"%";e=e+"px"}f.push(d);f.push(b);f.push(e);return f},_calculateContainerDimensions:function(c){var f=this;var e=[];var d=100;var b=100;if(f._ie7){d=this.host.width()/c-20;b=this.host.height()-this.headerHeight;d=d+"px";b=b+"px"}else{b=this.host.height()-this.headerHeight;d=d+"%";b=b+"px"}e.push(d);e.push(b);return e},_recalculateContainersHeight:function(){var h=this;var f=document.getElementById(h._kanbanId+"-column-header-0");var g=0;for(var e=0;e<h.columns.length;e++){if(!h.columns[e].collapsed){g=e;f=h.columns[e].headerElement[0];break}}var j=parseInt(getComputedStyle(f).getPropertyValue("margin-top"));var d=parseInt(getComputedStyle(f).getPropertyValue("margin-Bottom"));var n=document.getElementById(h._kanbanId+"-column-container-"+g);var k=parseInt(getComputedStyle(n).getPropertyValue("margin-top"));var b=parseInt(getComputedStyle(n).getPropertyValue("margin-Bottom"));var m=f.offsetHeight+j+d;var l=k+b;var c=this.host.height()-m-l;a("#"+h._kanbanId+" div.jqx-kanban-column-container").outerHeight(c)},_addCSS:function(){var c=this;a(c.host).addClass(c.toThemeProperty("jqx-kanban"));a("#"+c._kanbanId+" div.jqx-kanban-column").addClass(c.toThemeProperty("jqx-widget-content"));a("#"+c._kanbanId+" div.jqx-kanban-column-header").addClass(c.toThemeProperty("jqx-widget-header"));a("#"+c._kanbanId+" div.jqx-kanban-column-header-collapsed").addClass(c.toThemeProperty("jqx-widget-header"));a("#"+c._kanbanId+" div.jqx-kanban-column-container").addClass(c.toThemeProperty("jqx-widget-content"));if(c._ie8||c._ie7){a("#"+c._kanbanId+"-column-0").addClass(c.toThemeProperty("jqx-kanban-column-first"))}else{c._columnBorders[0]=a("#"+c._kanbanId+" div.jqx-kanban-column:first-of-type").css("border-top-width").slice(0,-2);c._columnBorders[1]=a("#"+c._kanbanId+" div.jqx-kanban-column:first-of-type").css("border-right-width").slice(0,-2);c._columnBorders[2]=a("#"+c._kanbanId+" div.jqx-kanban-column:first-of-type").css("border-bottom-width").slice(0,-2);c._columnBorders[3]=a("#"+c._kanbanId+" div.jqx-kanban-column:first-of-type").css("border-top-width").slice(0,-2)}if(c.verticalTextOrientation=="bottomToTop"){var b=a("#"+c._kanbanId).find(".jqx-kanban-column-vertical-container");b.removeClass("jqx-kanban-column-vertical-container");b.addClass("jqx-kanban-column-vertical-container-inverse")}},_rtlCheck:function(){var b=this;if(b.rtl==true){a(b.host).addClass(b.toThemeProperty("jqx-kanban-rtl"));a("#"+b._kanbanId+" div.jqx-kanban-column-container").addClass(b.toThemeProperty("jqx-kanban-rtl"));a("#"+b._kanbanId+" div.jqx-kanban-item-keyword").addClass(b.toThemeProperty("jqx-kanban-item-keyword-rtl"))}},_serializeSource:function(f){var g=this;g._source=[];g._sourceKeys=[];var b=function(k){if(!k){return}for(var h=0;h<k.length;h++){var j={};j.id=k[h].id!=undefined?k[h].id:g.element.id+"_"+h;j.status=k[h].status||g.templateContent.status;j.text=k[h].text||g.templateContent.text;j.content=k[h].content||g.templateContent.content;j.tags=k[h].tags||g.templateContent.tags;j.color=k[h].color||g.templateContent.color;j.resourceId=k[h].resourceId||g.templateContent.resourceId;j.className=k[h].className||g.templateContent.className;g._source.push(j);g._sourceKeys[j.id]=j}f()};var e=g.source&&g.source.dataBind;if(e){var d=g.element.id;g.source.unbindBindingUpdate(d);g.source.dataBind();if(g.source.records.length==0){var c=function(){b(g.source.records)};g.source.unbindDownloadComplete(d);g.source.bindDownloadComplete(d,c)}else{b(g.source.records)}g.source.unbindBindingUpdate(d);g.source.bindBindingUpdate(d,function(){b(g.source.records)});return}b(g.source)},_populateKanban:function(g){var h=this;var e=0;if(h._source!==null){e=h._source.length||0}h._resources=new Array();var d=function(k){h._resources=k;if(k!==null&&k!==undefined){h._resourcesLength=k.length;for(var n=0;n<h._resourcesLength;n++){if(k[n].common==true){h._commonItem=k[n]}}}for(var n=0;n<e;n++){var q=a(h.template);q.data("kanban-item-id",h._source[n].id);var o=h._commonItem;for(var m=0;m<h._resourcesLength;m++){if(k[m].id==h._source[n].resourceId){o=k[m]}}var s="<img class='jqx-kanban-item-avatar-image' alt='"+o.name+"' title='"+o.name+"' src='"+o.image+"' />";q.addClass(h.toThemeProperty("jqx-rc-all"));q.find(".jqx-kanban-item-avatar").append(s);if(h.theme!=""){q.addClass(h.toThemeProperty("jqx-kanban-item"))}var p=h.host.find("[data-kanban-column-container='"+h._source[n].status+"']");q.find(".jqx-kanban-item-color-status").css({"background-color":h._source[n].color});if(h.rtl){q.find(".jqx-kanban-item-color-status").addClass("jqx-kanban-item-color-status-rtl");q.find(".jqx-kanban-item-avatar").addClass("jqx-kanban-item-avatar-rtl")}q.find(".jqx-kanban-item-text").append(h._source[n].text);q.find(".jqx-kanban-item-content").append(h._source[n].content);var l="";var r=[];if((h._source[n].tags!==null)&&(h._source[n].tags!==undefined)){r=h._source[n].tags.replace(/\,\s/g,",").split(",")}r.forEach(function(i){l=l+"<div class='"+h.toThemeProperty("jqx-kanban-item-keyword jqx-fill-state-normal jqx-rc-all")+"'>"+i+"</div>"});l=l+h._clearing;q.find(".jqx-kanban-item-footer").append(l);q.append(h._clearing);q.attr("id",h._kanbanId+"_"+h._source[n].id);if((h._source[n].className!==null)&&(h._source[n].className!==undefined)){q.addClass(h.toThemeProperty(h._source[n].className))}if(h.itemRenderer){h.itemRenderer(q,h._source[n],o)}p.append(q);h._items[h._source[n].id]=q}g()};var f=h.resources&&h.resources.dataBind;if(f){var c=h.element.id;h.resources.unbindBindingUpdate(c);h.resources.dataBind();if(h.resources.records.length==0){var b=function(){d(h.resources.records)};h.resources.unbindDownloadComplete(c);h.resources.bindDownloadComplete(c,b)}else{d(h.resources.records)}h.resources.bindBindingUpdate(c,function(){d(h.resources.records)});return}else{h._resources=h.resources;d(h.resources)}a("#"+h._kanbanId+" div.jqx-kanban-item").addClass(this.toThemeProperty("jqx-widget-content"))},_ready:function(){var b=this;if((b.ready!=null)&&(typeof b.ready==="function")){b.ready()}},collapseColumn:function(c){for(var b=0;b<this.columns.length;b++){if(this.columns[b].dataField==c){this._collapseColumn(b);return true}}return false},expandColumn:function(c){for(var b=0;b<this.columns.length;b++){if(this.columns[b].dataField==c){this._expand(b);return true}}return false},_collapseColumn:function(b){var d=this;var c=b||0;a("#"+d._kanbanId+"-column-header-collapsed-"+c).addClass(d.toThemeProperty("jqx-kanban-column-header-collapsed-show"));a("#"+d._kanbanId+"-column-header-"+c).addClass(d.toThemeProperty("jqx-kanban-column-hide"));a("#"+d._kanbanId+"-column-container-"+c).addClass(d.toThemeProperty("jqx-kanban-column-hide"));if(d._ie8||d._ie7){a("#"+d._kanbanId+" .jqx-kanban-column-vertical-container").addClass(d.toThemeProperty("jqx-kanban-column-vertical-container-ie8-fix"));a("#"+d._kanbanId+" .jqx-kanban-column-vertical-container-inverse").addClass(d.toThemeProperty("jqx-kanban-column-vertical-container-inverse-ie8-fix"))}d._columns[c].data("kanban-column-collapsed",true);d.columns[c].collapsed=true;d._calculateExpandedColumnsWidth();d._raiseEvent("7",{column:d.columns[c]})},_expandColumn:function(b){var d=this;var c=b||0;a("#"+d._kanbanId+"-column-header-collapsed-"+c).removeClass(d.toThemeProperty("jqx-kanban-column-header-collapsed-show"));a("#"+d._kanbanId+"-column-header-"+c).removeClass(d.toThemeProperty("jqx-kanban-column-hide"));a("#"+d._kanbanId+"-column-container-"+c).removeClass(d.toThemeProperty("jqx-kanban-column-hide"));d.columns[c].collapsed=false;d._columns[c].data("kanban-column-collapsed",false);d._calculateExpandedColumnsWidth();d._raiseEvent("8",{column:d.columns[c]})},_calculateExpandedColumnsWidth:function(){var g=this;var h=g._columns.length;g._collapsedColumns=0;g._expandedColumns=0;var d=0;var k=g.headerWidth;for(var e=0;e<h;e++){if(g._columns[e].data("kanban-column-collapsed")==true){g._collapsedColumns++}else{g._expandedColumns++}}d=(g.host.width()-g.headerWidth*g._collapsedColumns)/g._expandedColumns;var b=d-(this._columnBorders[1]+this._columnBorders[3]);if(g._ie7){d=b;k=g.headerWidth-2}if(g.width&&g.width.toString().indexOf("%")>=0){var c=(g.host.width()+2)/100;var f=1/c;var j=k*f;for(var e=0;e<h;e++){if(g._columns[e].data("kanban-column-collapsed")==true){g._columns[e][0].style.width=j+"%"}else{g._columns[e][0].style.width=(d*f+"%")}}return}for(var e=0;e<h;e++){if(g._columns[e].data("kanban-column-collapsed")==true){g._columns[e].outerWidth(k)}else{g._columns[e].outerWidth(d)}}},_handlerExpandCollapse:function(){var c=this;var b=0;c.addHandler(a("#"+c._kanbanId+" .jqx-kanban-column-header"),this._getEvent("click"),function(g){var e=a(this).parent().index();var f=c.columns[e];var d={attribute:"title",column:f,cancelToggle:false};if(a(g.target).parent()[0].className.indexOf("jqx-kanban-column-header-custom-button")>=0){var d={attribute:"button",column:f,cancelToggle:false}}c._raiseEvent("10",d);if(!d.cancelToggle){if(c._expandedColumns>1){if(f.collapsible===false){return}c._collapseColumn(e)}}});c.addHandler(a("#"+c._kanbanId+" .jqx-kanban-column-header-collapsed"),"click",function(g){var e=a(this).parent().index();var e=a(this).parent().index();var f=c.columns[e];var d={attribute:"title",cancelToggle:false,column:f};if(a(g.target).parent()[0].className.indexOf("jqx-kanban-column-header-custom-button")>=0){var d={attribute:"button",cancelToggle:false,column:f}}c._raiseEvent("10",d);if(!d.cancelToggle){c._expandColumn(e)}})},_setKanbanConnections:function(){var b=this;b._kanbanColumns="#"+b._kanbanId+" div.jqx-kanban-column-container";b._connectWith=b._kanbanColumns;if(b.connectWith!=null){var c=b.connectWith.replace(/\,\s/g,",").split(",");c.forEach(function(d){b._connectWith=b._connectWith+", "+d+" div.jqx-kanban-column-container"})}},_transformToSortable:function(){var c=this;for(var b=0;b<a(c._kanbanColumns).length;b++){a(a(c._kanbanColumns)[b]).jqxSortable({connectWith:c._connectWith,maxItems:c.columns[b].maxItems||9999,cancel:".jqx-kanban-column-container-cancel",placeholderShow:"jqx-kanban-item-placeholder",revert:c.animationDelay,cursor:"move",tolerance:"pointer",containment:"window"})}a.jqx.utilities.resize(c.host,null,true);a.jqx.utilities.resize(c.host,function(){for(var d=0;d<a(c._kanbanColumns).length;d++){a(a(c._kanbanColumns)[d]).jqxSortable({containment:"window"})}});if(c.handle!==null){a(c._kanbanColumns).jqxSortable({handle:"."+c.handle});a("#"+c._kanbanId+" ."+c.handle).addClass("jqx-kanban-handle")}},_calculateItemsPerColumn:function(b){var c=this},_calculateRestrictions:function(){var b=this},_redrawColumnHeader:function(b,d){var c=this},addItem:function(l){var n=this;var b=l.id;var e=(n._source!=null)?n._source.length:0;if(b==undefined){b=e}var p=n._kanbanId+"_"+b;if(n._sourceKeys[p]!==undefined){p+="_"+Math.round(100*Math.random(Math.floor(9999)))}b=p;n._source=(n._source!=null)?n._source:[];var f=null;if(n._css_color_names.indexOf(l.color)>-1){f=l.color}else{if(/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(l.color)){f=l.color}else{if(/(^[0-9A-F]{6}$)|(^[0-9A-F]{3}$)/i.test(l.color)){f="#"+l.color}}}var c={id:b,status:l.status||n.templateContent.status,text:l.text||n.templateContent.text,content:l.content||n.templateContent.content,tags:l.tags||n.templateContent.tags,color:f||n.templateContent.color,resourceId:l.resourceId||n.templateContent.resourceId,className:l.className||n.templateContent.className};var d=this.getColumn(c.status);if(!d.maxItems){d.maxItems=9999}if(d.maxItems<this.getColumnItems(d.dataField).length+1){return}var i=n._commonItem;for(var h=0;h<n._resources.length;h++){if(n._resources[h].id==c.resourceId){i=n._resources[h]}}var k=n.host.find("[data-kanban-column-container='"+c.status+"']");var l=a(n.template);if(n.theme!=""){l.addClass(n.toThemeProperty("jqx-kanban-item"))}l.find(".jqx-kanban-item-color-status").css({"background-color":c.color});var o="<img class='jqx-kanban-item-avatar-image' alt='"+i.name+"' title='"+i.name+"' src='"+i.image+"' />";l.find(".jqx-kanban-item-avatar").append(o);l.find(".jqx-kanban-item-text").append(c.text);l.find(".jqx-kanban-item-content").append(c.content);var m=c.tags?c.tags.replace(/\,\s/g,",").split(","):[];var g="";m.forEach(function(j){g=g+"<div class='"+n.toThemeProperty("jqx-kanban-item-keyword jqx-fill-state-normal jqx-rc-all")+"'>"+j+"</div>"});g=g+"<div style='clear:both'></div>";l.find(".jqx-kanban-item-footer").append(g);k.append(l);a("#"+n._kanbanId+" .jqx-kanban-item").removeClass(this.toThemeProperty("jqx-widget-content jqx-rc-all"));a("#"+n._kanbanId+" .jqx-kanban-item").addClass(this.toThemeProperty("jqx-widget-content jqx-rc-all"));l.attr("id",p);n._source[e]=c;n._sourceKeys[b]=c;l.data("kanban-item-id",p);if((c.className!==null)&&(c.className!==undefined)){l.addClass(this.toThemeProperty(c.className))}if(n.itemRenderer){n.itemRenderer(l,c,i)}var d=this.getColumn(c.status);if(d){if(n.columnRenderer){n.columnRenderer(d.headerElement,d.collapsedHeaderElement,d);n._updateColumnTitle(d)}}n._raiseEvent("2",{itemId:p});n._refreshEventHandlers()},_updateColumnTitle:function(c){if(c.collapseDirection=="left"){var b=c.headerElement.find(".jqx-kanban-column-header-title").width();b+=c.headerElement.find(".jqx-kanban-column-header-status").width();b-=10;c.headerElement.find(".jqx-kanban-column-header-title").css("left",-b+"px");c.headerElement.find(".jqx-kanban-column-header-status").css("left",-b+"px")}},_selectItem:function(d){var c=this;var b=d.data.self;b._selectedItemId=a(c).attr("id");a("#"+b._kanbanId+" .jqx-kanban-item").removeClass(b.toThemeProperty("jqx-kanban-item-selected"));a(c).addClass(b.toThemeProperty("jqx-kanban-item-selected"));var e=a(this).data().kanbanItemId;b._selectedId=e;b._raiseEvent("1",{item:b._sourceKeys[e]});b._refreshEventHandlers()},selectItem:function(d){var b=this;var c=a("#"+b._kanbanId+"_"+d);if(c.length==0){return}a("#"+self._kanbanId+" .jqx-kanban-item").removeClass(self.toThemeProperty("jqx-kanban-item-selected"));a(c).addClass(b.toThemeProperty("jqx-kanban-item-selected"));b._selectedId=d},_selectColumn:function(e){var d=this;var b=e.data.self;var h=a(d).attr("data-column-data-field");var g,f;var j=b.columns.length;for(var c=0;c<j;c++){if(b.columns[c].dataField==h){f=c}if(b.columns[c].dataField==b._selectedColumn){g=c}}a("#"+b._kanbanId+" .jqx-kanban-column").removeClass(b.toThemeProperty("jqx-kanban-column-selected"));a(d).addClass(b.toThemeProperty("jqx-kanban-column-selected"));if((b._selectedColumn!=null)&&(b._selectedColumn!=h)){b._raiseEvent("6",{column:b._selectedColumn,dataField:g})}b._selectedColumn=h;b._raiseEvent("5",{column:b._selectedColumn,dataField:f})},getSelectedColumn:function(){var b=this;return b._selectedColumn},_removeSourceIndexById:function(d){var c=this;var b=-1;a.each(c._source,function(e,f){if(this&&this.id==d){b=e;return false}});if(b!=-1){c._source.splice(b,1)}c._sourceKeys[d]=null;delete c._sourceKeys[d]},removeItem:function(f){var c=this;var e="#"+c._kanbanId+"_"+f;var d=f.toString().replace(c._kanbanId+"_","");if(a(e).length!==0){a(e).remove()}else{var e="#"+f;if(a(e).length!==0){a(e).remove()}}var b=this.getColumn(c._sourceKeys[f].status);c._items[d]=null;c._removeSourceIndexById(f);c._sourceKeys[f]=null;if(b){if(c.columnRenderer){c.columnRenderer(b.headerElement,b.collapsedHeaderElement,b);c._updateColumnTitle(b)}}c._selectedItemId=null},updateItem:function(e,q){var p=this;var i=a("#"+p._kanbanId+"_"+e);if(i.length==0){return}var c=i.data("kanban-item-id");var d=p._sourceKeys[e];if(!d){d=p._sourceKeys[c]}var f=d.className||"";var k=null;if(p._css_color_names.indexOf(q.color)>-1){k=q.color}else{if(/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(q.color)){k=q.color}else{if(/(^[0-9A-F]{6}$)|(^[0-9A-F]{3}$)/i.test(q.color)){k="#"+q.color}else{if(q.color){k=q.color}}}}var h={id:d.id,status:d.status,text:q.text||d.text,content:q.content||d.content,tags:q.tags||d.tags,color:k||d.color,status:q.status||d.status,resourceId:q.resourceId||d.resourceId,className:q.className||d.className};var b=p._source.findIndex(function(j){return j.id===c});if(b>=0){p._source[b]=h}p._sourceKeys[c]=h;var n=p._commonItem;for(var m=0;m<p._resources.length;m++){if(p._resources[m].id==h.resourceId){n=p._resources[m]}}var r="<img class='jqx-kanban-item-avatar-image' alt='"+n.name+"' title='"+n.name+"' src='"+n.image+"' />";i.find(".jqx-kanban-item-avatar").html(r);i.find(".jqx-kanban-item-color-status").css({"background-color":h.color});i.find(".jqx-kanban-item-text").html(h.text);i.find(".jqx-kanban-item-content").html(h.content);var o=h.tags?h.tags.replace(/\,\s/g,",").split(","):[];var l="";o.forEach(function(j){l=l+"<div class='"+p.toThemeProperty("jqx-kanban-item-keyword jqx-fill-state-normal jqx-rc-all")+"'>"+j+"</div>"});l=l+"<div style='clear:both'></div>";i.find(".jqx-kanban-item-footer").html(l);if((h.className!==null)&&(h.className!==undefined)){i.removeClass(this.toThemeProperty(f));i.addClass(this.toThemeProperty(h.className))}if(h.status!==d.status){a("#"+this.element.id).empty();p._getParent();p._createKanbanField();p._createKanbanLayout();p._addCSS();var s=function(){p._setKanbanConnections();p._transformToSortable();p._addEventHandlers();p._rtlCheck();p._refreshEventHandlers();p._recalculateContainersHeight();p._handlerExpandCollapse();p._raiseEvent("0");p._ready()};p._populateKanban(s);return}if(p.itemRenderer){p.itemRenderer(i,h,n)}var g=this.getColumn(h.status);if(g){if(p.columnRenderer){p.columnRenderer(g.headerElement,g.collapsedHeaderElement,g);p._updateColumnTitle(g)}}},getSelectedItem:function(){var b=this;var c=b._sourceKeys[b._selectedId];return c},getColumn:function(c){for(var b=0;b<this.columns.length;b++){if(this.columns[b].dataField==c){return this.columns[b]}}return null},getColumnItems:function(f){var e=this;var d=[];var b=e._source.length;for(var c=0;c<b;c++){if(e._source[c]!=null&&e._source[c].status==f){d.push(e._source[c])}}return d},getItems:function(){var b=this;if(b._source!==null){return b._source.filter(function(c){return(c!=null)})}else{return null}},_ie8Plugin:function(){if(typeof Array.prototype.forEach!="function"){Array.prototype.forEach=function(c){for(var b=0;b<this.length;b++){c.apply(this,[this[b],b,this])}}}if(!window.getComputedStyle){window.getComputedStyle=function(b,c){this.el=b;this.getPropertyValue=function(e){var d=/(\-([a-z]){1})/g;if(e=="float"){e="styleFloat"}if(d.test(e)){e=e.replace(d,function(){return arguments[2].toUpperCase()})}return b.currentStyle[e]?b.currentStyle[e]:null};return this}}},_addEventHandlers:function(){var b=this;b.addHandler(a(window),"resize.kanban"+b.element.id,function(d){b._recalculateContainersHeight();b._calculateExpandedColumnsWidth()});b.addHandler(a(b._kanbanColumns),"start",function(e){b._selectedItemId=e.args.item[0].id;b._draggedItemId=b._selectedItemId;b._draggedItemDataId=a("#"+b._draggedItemId).data().kanbanItemId;b._draggedItemValues=b._sourceKeys[b._draggedItemDataId];b._selectedItemValues=b._draggedItemValues;var d=a("#"+b._draggedItemId).height();a(".jqx-kanban-item-placeholder").height(d)});b.addHandler(a(b._kanbanColumns),"stop",function(d){var l=a("#"+b._draggedItemId).parent().attr("data-kanban-column-container");var k=l;var f=null;for(var j=0;j<b.columns.length;j++){if(b.columns[j].dataField==k){f=b.columns[j];break}}if(b._sourceKeys[b._draggedItemDataId]){var g=null;var n=a("#"+b._kanbanId).jqxKanban("columns");var h=b._sourceKeys[b._draggedItemDataId].status;for(var j=0;j<n.length;j++){if(n[j].dataField==h){g=n[j];break}}if(b._kanbanId!==b._dropKanbanId){if(f===null){var f=null;var e=a("#"+b._dropKanbanId).jqxKanban("columns");for(var j=0;j<e.length;j++){if(e[j].dataField==k){f=e[j];break}}}b._raiseEvent("3",{oldParentId:b._kanbanId,newParentId:b._dropKanbanId,itemId:b._selectedId,newColumn:f,oldColumn:g,itemData:b._draggedItemValues});var m=b._source.length;b._draggedItemValues.status=l;a("#"+b._dropKanbanId).trigger("_itemReceived",[b._selectedItemId,b._kanbanId,b._dropKanbanId,b._draggedItemValues,b._selectedId,f,g]);b._sourceKeys[b._draggedItemDataId]=null}else{b._raiseEvent("3",{newColumn:f,oldColumn:g,oldParentId:b._kanbanId,newParentId:b._dropKanbanId,itemId:b._selectedId,itemData:b._draggedItemValues});b._raiseEvent("4",{newColumn:f,oldColumn:g,oldParentId:b._kanbanId,newParentId:b._dropKanbanId,itemId:b._selectedId,itemData:b._draggedItemValues});b._sourceKeys[b._draggedItemDataId].status=l}if(b.columnRenderer){for(var j=0;j<b.columns.length;j++){if(b.columns[j].dataField==k){b.columnRenderer(b.columns[j].headerElement,b.columns[j].collapsedHeaderElement,b.columns[j]);b._updateColumnTitle(b.columns[j])}if(b.columns[j].dataField==h){b.columnRenderer(b.columns[j].headerElement,b.columns[j].collapsedHeaderElement,b.columns[j]);b._updateColumnTitle(b.columns[j])}}}}b._draggedItemDataId=null;b._draggedItemId=null;b._draggedItemValues=null});b.addHandler(a(b._kanbanColumns),"sort",function(d){b._dropKanbanId=a(".jqx-kanban-item-placeholder").parent().parent().parent().attr("id")});b.addHandler(a(b.host),"_itemReceived",function(d,q,r,n,g){b._raiseEvent("4",{itemId:q,oldParentId:r,newParentId:n,itemData:g});var t=a("#"+q);var o=a(b.template);if(b.theme!=""){o.addClass(b.toThemeProperty("jqx-kanban-item"))}o.data("kanban-item-id",g.id);var m=b._commonItem;if(b._resources){for(var k=0;k<b._resources.length;k++){if(b._resources[k].id==g.resourceId){m=b._resources[k]}}}var s="<img class='jqx-kanban-item-avatar-image' alt='"+m.name+"' title='"+m.name+"' src='"+m.image+"' />";o.find(".jqx-kanban-item-avatar").append(s);o.find(".jqx-kanban-item-text").append(g.text);o.find(".jqx-kanban-item-color-status").css({"background-color":g.color});o.find(".jqx-kanban-item-content").append(g.content);var p=g.tags.replace(/\,\s/g,",").split(",");var h="";p.forEach(function(i){h=h+"<div class='"+b.toThemeProperty("jqx-kanban-item-keyword jqx-fill-state-normal jqx-rc-all")+"'>"+i+"</div>"});h=h+"<div style='clear:both'></div>";o.find(".jqx-kanban-item-footer").append(h);o.attr("id",b._kanbanId+"_"+g.id);t.replaceWith(o);a("#"+n+" div.jqx-kanban-item").addClass(b.toThemeProperty("jqx-widget-content"));if((g.className!==null)&&(g.className!==undefined)){o.addClass(b.toThemeProperty(g.className))}a("#"+n+" div.jqx-kanban-item").removeClass(b.toThemeProperty("jqx-kanban-item-selected"));a("#"+q).addClass(b.toThemeProperty("jqx-kanban-item-selected"));a("#"+n).jqxKanban("_refreshEventHandlers");b._source.push(g);var f=a("#"+n).jqxKanban("getInstance");var e=a("#"+r).jqxKanban("getInstance");f._sourceKeys[g.id]=g;e._removeSourceIndexById(g.id);if(f.columnRenderer){for(var l=0;l<f.columns.length;l++){f.columnRenderer(f.columns[l].headerElement,f.columns[l].collapsedHeaderElement,f.columns[l])}}if(e.columnRenderer){for(var l=0;l<e.columns.length;l++){e.columnRenderer(e.columns[l].headerElement,e.columns[l].collapsedHeaderElement,e.columns[l])}}if(f.itemRenderer){f.itemRenderer(o,g,m)}});b.addHandler(a("#"+b._kanbanId+" .jqx-kanban-item"),"click",b._selectItem,{self:this});b.addHandler(a("#"+b._kanbanId+" .jqx-kanban-column"),"click",b._selectColumn,{self:this});var c=function(){var g="jqx-kanban-item-color-status jqx-kanban-item-avatar jqx-kanban-item-text jqx-kanban-item-content jqx-kanban-item-keyword jqx-kanban-item-template-content".split(" ");var h=a(this).attr("class").split(" ");var f=h.length;var k=null;var j=a(this).parents(".jqx-kanban-item").data().kanbanItemId;var d={attribute:null,item:b._sourceKeys[j],itemId:j};for(var e=0;e<f;e++){if(g.indexOf(h[e])>-1){k=h[e]}}switch(k){case"jqx-kanban-item-color-status":d.attribute="colorStatus";break;case"jqx-kanban-item-avatar":d.attribute="avatar";break;case"jqx-kanban-item-text":d.attribute="text";break;case"jqx-kanban-item-content":d.attribute="content";break;case"jqx-kanban-item-keyword":d.attribute="keyword";break;case"jqx-kanban-item-template-content":d.attribute="template";break;default:break}b._raiseEvent("9",d)};b.addHandler(a("#"+b._kanbanId+" .jqx-kanban-item-color-status"),this._getEvent("click"),c,{self:this});b.addHandler(a("#"+b._kanbanId+" .jqx-kanban-item-avatar"),this._getEvent("click"),c,{self:this});b.addHandler(a("#"+b._kanbanId+" .jqx-kanban-item-text"),this._getEvent("click"),c,{self:this});b.addHandler(a("#"+b._kanbanId+" .jqx-kanban-item-content"),this._getEvent("click"),c,{self:this});b.addHandler(a("#"+b._kanbanId+" .jqx-kanban-item-keyword"),this._getEvent("click"),c,{self:this});b.addHandler(a("#"+b._kanbanId+" .jqx-kanban-item-template-content"),this._getEvent("click"),c,{self:this})},destroy:function(){var b=this;a.jqx.utilities.resize(b.host,null,true);b._removeEventHandlers();b.host.remove()},_removeEventHandlers:function(){var b=this;b.removeHandler(a(window),"resize.kanban"+b.element.id);b.removeHandler(a(b._kanbanColumns),"start");b.removeHandler(a(b._kanbanColumns),"stop");b.removeHandler(a(b._kanbanColumns),"sort");b.removeHandler(a(b.host),"_itemReceived");b.removeHandler(a("#"+b._kanbanId+" .jqx-kanban-item"),"click");b.removeHandler(a("#"+b._kanbanId+" .jqx-kanban-column"),"click");b.removeHandler(a("#"+b._kanbanId+" .jqx-kanban-item-color-status"),"click");b.removeHandler(a("#"+b._kanbanId+" .jqx-kanban-item-avatar"),"click");b.removeHandler(a("#"+b._kanbanId+" .jqx-kanban-item-text"),"click");b.removeHandler(a("#"+b._kanbanId+" .jqx-kanban-item-content"),"click");b.removeHandler(a("#"+b._kanbanId+" .jqx-kanban-item-keyword"),"click");b.removeHandler(a("#"+b._kanbanId+" .jqx-kanban-item-template-content"),"click")},_refreshEventHandlers:function(){var b=this;b._removeEventHandlers();b._addEventHandlers()},_raiseEvent:function(b,e){var d=this;var c=a.Event(d._events[b]);c.args=e;return d.host.trigger(c)},_getEvent:function(c){var b=this;if(b._isTouchDevice){return b._touchEvents[c]}else{return c}}})})(jqxBaseFramework)})();
/***/ }),
/***/ 8544:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxListBox","",{});a.extend(a.jqx._jqxListBox.prototype,{defineInstance:function(){var b={disabled:false,checkboxSize:16,checkboxes:false,width:null,height:null,items:new Array(),multiple:false,selectedIndex:-1,selectedIndexes:new Array(),source:null,scrollBarSize:a.jqx.utilities.scrollBarSize,enableHover:true,enableSelection:true,visualItems:new Array(),groups:new Array(),equalItemsWidth:true,itemHeight:-1,visibleItems:new Array(),emptyGroupText:"Group",hasThreeStates:false,autoHeight:false,autoItemsHeight:false,roundedcorners:true,touchMode:"auto",displayMember:"",groupMember:"",valueMember:"",searchMember:"",searchMode:"startswithignorecase",incrementalSearch:true,incrementalSearchDelay:1000,incrementalSearchKeyDownDelay:300,allowDrag:false,allowDrop:true,dropAction:"default",touchModeStyle:"auto",keyboardNavigation:true,enableMouseWheel:true,multipleextended:false,selectedValues:new Array(),emptyString:"",rtl:false,rendered:null,renderer:null,dragStart:null,dragEnd:null,focusable:true,ready:null,_checkForHiddenParent:true,autoBind:true,_renderOnDemand:false,filterable:false,filterHeight:30,filterPlaceHolder:"Looking for",filterDelay:100,filterChange:null,aria:{"aria-disabled":{name:"disabled",type:"boolean"}},events:["select","unselect","change","checkChange","dragStart","dragEnd","bindingComplete","itemAdd","itemRemove","itemUpdate"]};if(this===a.jqx._jqxListBox.prototype){return b}a.extend(true,this,b);return b},createInstance:function(c){var b=this;if(a.jqx.utilities.scrollBarSize!=15){b.scrollBarSize=a.jqx.utilities.scrollBarSize}if(b.width==null){b.width=200}if(b.height==null){b.height=200}if(b.isMaterialized()){var f=window.getComputedStyle(b.element);var e=f.getPropertyValue("--jqx-list-item-height");if(e&&this.itemHeight===-1){this.itemHeight=parseInt(e)}}b.renderListBox();var d=b;a.jqx.utilities.resize(b.host,function(){d._updateSize()},false,b._checkForHiddenParent)},resize:function(c,b){this.width=c;this.height=b;this._updateSize()},render:function(){this.renderListBox();this.refresh()},renderListBox:function(){var r=this;var b=r.element.nodeName.toLowerCase();if(b=="select"||b=="ul"||b=="ol"){r.field=r.element;if(r.field.className){r._className=r.field.className}var l={title:r.field.title};if(r.field.id.length){l.id=r.field.id.replace(/[^\w]/g,"_")+"_jqxListBox"}else{l.id=a.jqx.utilities.createId()+"_jqxListBox"}var i=a("<div></div>",l);if(!r.width){r.width=a(r.field).width()}if(!r.height){r.height=a(r.field).outerHeight()}r.element.style.cssText=r.field.style.cssText;a(r.field).hide().after(i);var w=r.host.data();r.host=i;r.host.data(w);r.element=i[0];r.element.id=r.field.id;r.field.id=l.id;if(r._className){r.host.addClass(r._className);a(r.field).removeClass(r._className)}if(r.field.tabIndex){var f=r.field.tabIndex;r.field.tabIndex=-1;r.element.tabIndex=f}}else{if(r.host.find("li").length>0||r.host.find("option").length>0){var p=a.jqx.parseSourceTag(r.element);r.source=p.items}}r.element.innerHTML="";var r=r;var c=r.element.className;c+=" "+r.toThemeProperty("jqx-listbox");c+=" "+r.toThemeProperty("jqx-reset");c+=" "+r.toThemeProperty("jqx-rc-all");c+=" "+r.toThemeProperty("jqx-widget");c+=" "+r.toThemeProperty("jqx-widget-content");r.element.className=c;var v=false;var j=window.getComputedStyle(this.element);var q=parseInt(j.borderLeftWidth)*2;var d=j.boxSizing;if(this.element.offsetWidth===0){q=2}if(d==="border-box"||isNaN(q)){q=0}if(r.width!=null&&r.width.toString().indexOf("%")!=-1){r.host.width(r.width);if(q>0){this.host.css("box-sizing","border-box")}v=true}if(r.height!=null&&r.height.toString().indexOf("%")!=-1){r.host.height(r.height);if(r.host.height()==0){r.host.height(200)}v=true}if(r.width!=null&&r.width.toString().indexOf("px")!=-1){r.element.style.width=parseInt(r.width)-q+"px"}else{if(r.width!=undefined&&!isNaN(r.width)){r.element.style.width=parseInt(r.width)-q+"px"}}if(r.height!=null&&r.height.toString().indexOf("px")!=-1){r.element.style.height=parseInt(r.height)-q+"px"}else{if(r.height!=undefined&&!isNaN(r.height)){r.element.style.height=parseInt(r.height)-q+"px"}}if(r.multiple||r.multipleextended||r.checkboxes){a.jqx.aria(r,"aria-multiselectable",true)}else{a.jqx.aria(r,"aria-multiselectable",false)}var h=a("<div></div>").css({"-webkit-appearance":"none",background:"transparent",outline:"none",width:"100%",height:"100%",position:"relative",left:"0",top:"0",margin:"0",padding:"0",border:"0"});var u=a("<div></div>").css({"-webkit-appearance":"none",background:"transparent",outline:"none",width:"100%",height:"100%",position:"relative",left:"0",top:"0",margin:"0",padding:"0",border:"0"});var o=a("<div></div>").attr("id","filter"+r.element.id).css({display:"none",visibility:"inherit",position:"absolute",left:"0",top:"0"});var t=a("<input>").css({position:"absolute"});o.append(t);var k=a("<div></div>").attr("id","listBoxContent").css({"-webkit-appearance":"none",background:"transparent",outline:"none",border:"none",padding:"0",margin:"0",overflow:"hidden",position:"absolute",left:"0",top:"0"});var s=a("<div></div>").attr("id","verticalScrollBar"+r.element.id).css({visibility:"inherit",position:"absolute",left:"0",top:"0"});var e=a("<div></div>").attr("id","horizontalScrollBar"+r.element.id).css({visibility:"inherit",position:"absolute",left:"0",top:"0"});var n=a("<div></div>").attr("id","bottomRight").css({position:"absolute",left:"0",top:"0",border:"none"});u.append(o,k,s,e,n);h.append(u);r.host.attr("role","listbox");a(r.element).empty().append(h);if(r._checkForHiddenParent){r._addInput();if(!r.host.attr("tabIndex")){r.host.attr("tabIndex",1)}}r.filter=a(r.element.firstChild.firstChild.firstChild);r.filterInput=a(r.filter[0].firstChild);r.filterInput.attr("placeholder",r.filterPlaceHolder);r.filterInput.addClass(r.toThemeProperty("jqx-widget jqx-listbox-filter-input jqx-input jqx-rc-all"));r.addHandler(r.filterInput,"keyup.textchange",function(x){if(x.keyCode==13){r._search(x)}else{if(r.filterDelay>0){if(r._filterTimer){clearTimeout(r._filterTimer)}r._filterTimer=setTimeout(function(){r._search(x)},r.filterDelay)}}x.stopPropagation()});var s=a(r.element.firstChild.firstChild.firstChild.nextSibling.nextSibling);if(!r.host.jqxButton){throw new Error("jqxListBox: Missing reference to jqxbuttons.js.");return}if(!s.jqxScrollBar){throw new Error("jqxListBox: Missing reference to jqxscrollbar.js.");return}var g=parseInt(r.host.height())/2;if(g==0){g=10}r.vScrollBar=s.jqxScrollBar({_initialLayout:true,vertical:true,rtl:r.rtl,theme:r.theme,touchMode:r.touchMode,largestep:g});var e=a(r.element.firstChild.firstChild.firstChild.nextSibling.nextSibling.nextSibling);r.hScrollBar=e.jqxScrollBar({_initialLayout:true,vertical:false,rtl:r.rtl,touchMode:r.touchMode,theme:r.theme});r.content=a(r.element.firstChild.firstChild.firstChild.nextSibling);r.content.addClass(r.toThemeProperty("jqx-listbox-content-element"));r.content[0].id="listBoxContent"+r.element.id;r.bottomRight=a(r.element.firstChild.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling).addClass(r.toThemeProperty("jqx-listbox-bottomright")).addClass(r.toThemeProperty("jqx-scrollbar-state-normal"));r.bottomRight[0].id="bottomRight"+r.element.id;r.vScrollInstance=a.data(r.vScrollBar[0],"jqxScrollBar").instance;r.hScrollInstance=a.data(r.hScrollBar[0],"jqxScrollBar").instance;if(r.isTouchDevice()){if(!(a.jqx.browser.msie&&a.jqx.browser.version<9)){var m=a("<div class='overlay' unselectable='on' style='z-index: 99; -webkit-appearance: none; border: none; background: black; opacity: 0.01; outline: none; border: none; padding: 0px; overflow: hidden; margin: 0px; align:left; valign:top; left: 0px; top: 0px; position: absolute;'></div>");r.content.parent().append(m);r.overlayContent=r.host.find(".overlay");if(r.filterable){r.overlayContent.css("top","30px")}}}r._updateTouchScrolling();r.host.addClass("jqx-disableselect");if(r.host.jqxDragDrop){window.jqxListBoxDragDrop()}},_highlight:function(b,c){var d=c.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return b.replace(new RegExp("("+d+")","ig"),function(e,f){return"<b>"+f+"</b>"})},_addInput:function(){var b=this.host.attr("name");if(b){this.host.attr("name","")}this.input=a("<input type='hidden'/>");this.host.append(this.input);this.input.attr("name",b)},_updateTouchScrolling:function(){var b=this;if(this.isTouchDevice()){b.enableHover=false;var c=this.overlayContent?this.overlayContent:this.content;this.removeHandler(a(c),a.jqx.mobile.getTouchEventName("touchstart")+".touchScroll");this.removeHandler(a(c),a.jqx.mobile.getTouchEventName("touchmove")+".touchScroll");this.removeHandler(a(c),a.jqx.mobile.getTouchEventName("touchend")+".touchScroll");this.removeHandler(a(c),"touchcancel.touchScroll");a.jqx.mobile.touchScroll(c,b.vScrollInstance.max,function(f,e){if(e!=null&&b.vScrollBar.css("visibility")!="hidden"){var d=b.vScrollInstance.value;b.vScrollInstance.setPosition(e);b._lastScroll=new Date()}if(f!=null&&b.hScrollBar.css("visibility")!="hidden"){var d=b.hScrollInstance.value;b.hScrollInstance.setPosition(f);b._lastScroll=new Date()}},this.element.id,this.hScrollBar,this.vScrollBar);if(b.vScrollBar.css("visibility")!="visible"&&b.hScrollBar.css("visibility")!="visible"){a.jqx.mobile.setTouchScroll(false,this.element.id)}else{a.jqx.mobile.setTouchScroll(true,this.element.id)}this._arrange()}},isTouchDevice:function(){var b=a.jqx.mobile.isTouchDevice();if(this.touchMode==true){if(this.touchDevice){return true}if(a.jqx.browser.msie&&a.jqx.browser.version<9){return false}this.touchDevice=true;b=true;a.jqx.mobile.setMobileSimulator(this.element)}else{if(this.touchMode==false){b=false}}if(b&&this.touchModeStyle!=false){this.scrollBarSize=a.jqx.utilities.touchScrollBarSize}if(b){this.host.addClass(this.toThemeProperty("jqx-touch"))}return b},beginUpdate:function(){this.updatingListBox=true},endUpdate:function(){this.updatingListBox=false;if((this.allowDrag&&this._enableDragDrop)||(this.virtualSize&&this.virtualSize.height<10+this.host.height())){this._addItems(true)}else{this._addItems(false)}this._renderItems();if(this.allowDrag&&this._enableDragDrop){this._enableDragDrop()}},beginUpdateLayout:function(){this.updating=true},resumeUpdateLayout:function(){this.updating=false;this.vScrollInstance.value=0;this._render(false)},propertiesChangedHandler:function(b,c,d){if(d.width&&d.height&&Object.keys(d).length==2){b._cachedItemHtml=new Array();b.refresh()}},propertyChangedHandler:function(b,c,e,d){if(this.isInitialized==undefined||this.isInitialized==false){return}if(e==d){return}if(b.batchUpdate&&b.batchUpdate.width&&b.batchUpdate.height&&Object.keys(b.batchUpdate).length==2){return}if(c=="_renderOnDemand"){b._render(false,true);if(b.selectedIndex!=-1){var f=b.selectedIndex;b.selectedIndex=-1;b._stopEvents=true;b.selectIndex(f,false,true);if(b.selectedIndex==-1){b.selectedIndex=f}b._stopEvents=false}}if(c=="filterable"){b.refresh()}if(c=="filterHeight"){b._arrange()}if(c=="filterPlaceHolder"){b.filterInput.attr("placeholder",d)}if(c=="renderer"){b._cachedItemHtml=new Array();b.refresh()}if(c=="itemHeight"||c==="checkboxSize"){b.refresh()}if(c=="source"||c=="checkboxes"){if(d==null&&e&&e.unbindBindingUpdate){e.unbindBindingUpdate(b.element.id);e.unbindDownloadComplete(b.element.id)}b.clearSelection();b.refresh()}if(c=="scrollBarSize"||c=="equalItemsWidth"){if(d!=e){b._updatescrollbars()}}if(c=="disabled"){b._renderItems();b.vScrollBar.jqxScrollBar({disabled:d});b.hScrollBar.jqxScrollBar({disabled:d})}if(c=="touchMode"||c=="rtl"){b._removeHandlers();b.vScrollBar.jqxScrollBar({touchMode:d});b.hScrollBar.jqxScrollBar({touchMode:d});if(c=="touchMode"){if(!(a.jqx.browser.msie&&a.jqx.browser.version<9)){var h=a("<div class='overlay' unselectable='on' style='z-index: 99; -webkit-appearance: none; border: none; background: black; opacity: 0.01; outline: none; border: none; padding: 0px; overflow: hidden; margin: 0px; align:left; valign:top; left: 0px; top: 0px; position: absolute;'></div>");b.content.parent().append(h);b.overlayContent=b.host.find(".overlay")}}if(b.filterable&&b.filterInput){if(c=="rtl"&&d){b.filterInput.addClass(b.toThemeProperty("jqx-rtl"))}else{if(c=="rtl"&&!d){b.filterInput.removeClass(b.toThemeProperty("jqx-rtl"))}}b._arrange()}b._updateTouchScrolling();b._addHandlers();b._render(false)}if(!this.updating){if(c=="width"||c=="height"){b._updateSize()}}if(c=="theme"){if(e!=d){b.hScrollBar.jqxScrollBar({theme:b.theme});b.vScrollBar.jqxScrollBar({theme:b.theme});b.host.removeClass();b.host.addClass(b.toThemeProperty("jqx-listbox"));b.host.addClass(b.toThemeProperty("jqx-widget"));b.host.addClass(b.toThemeProperty("jqx-widget-content"));b.host.addClass(b.toThemeProperty("jqx-reset"));b.host.addClass(b.toThemeProperty("jqx-rc-all"));b.refresh()}}if(c=="selectedIndex"){b.clearSelection();b.selectIndex(d,true)}if(c=="displayMember"||c=="valueMember"){if(e!=d){var g=b.selectedIndex;b.refresh();b.selectedIndex=g;b.selectedIndexes[g]=g}b._renderItems()}if(c=="autoHeight"){if(e!=d){b._render(false)}else{b._updatescrollbars();b._renderItems()}}if(b._checkForHiddenParent&&a.jqx.isHidden(b.host)){a.jqx.utilities.resize(this.host,function(){b._updateSize()},false,b._checkForHiddenParent)}},loadFromSelect:function(g){if(g==null){return}var c="#"+g;var d=a(c);if(d.length>0){var b=a.jqx.parseSourceTag(d[0]);var f=b.items;var e=b.index;this.source=f;this.fromSelect=true;this.clearSelection();this.selectedIndex=e;this.selectedIndexes[this.selectedIndex]=this.selectedIndex;this.refresh()}},invalidate:function(){this._cachedItemHtml=[];this._renderItems();this.virtualSize=null;this._updateSize()},refresh:function(c){var b=this;if(this.vScrollBar==undefined){return}this.itemHeight=parseInt(this.itemHeight);this._cachedItemHtml=[];this.visibleItems=new Array();var d=function(e){if(e==true){if(b.selectedIndex!=-1){var f=b.selectedIndex;b.selectedIndex=-1;b._stopEvents=true;b.selectIndex(f,false,true);if(b.selectedIndex==-1){b.selectedIndex=f}b._stopEvents=false}}};if(this.itemswrapper!=null){this.itemswrapper.remove();this.itemswrapper=null}if(a.jqx.dataAdapter&&this.source!=null&&this.source._source){this.databind(this.source,c);d(c);return}if(this.autoBind||(!this.autoBind&&!c)){if(this.field){this.loadSelectTag()}this.items=this.loadItems(this.source)}this._render(false,c==true);d(c);this._raiseEvent("6")},loadSelectTag:function(){var b=a.jqx.parseSourceTag(this.field);this.source=b.items;if(this.selectedIndex==-1){this.selectedIndex=b.index}},_render:function(c,b){if(this._renderOnDemand){this.visibleItems=new Array();this.renderedVisibleItems=new Array();this._renderItems();return}this._addItems();this._renderItems();this.vScrollInstance.setPosition(0);this._cachedItemHtml=new Array();if(c==undefined||c){if(this.items!=undefined&&this.items!=null){if(this.selectedIndex>=0&&this.selectedIndex<this.items.length){this.selectIndex(this.selectedIndex,true,true,true)}}}if(this.allowDrag&&this._enableDragDrop){this._enableDragDrop();if(this.isTouchDevice()){this._removeHandlers();if(this.overlayContent){this.overlayContent.remove();this.overlayContent=null}this._updateTouchScrolling();this._addHandlers();return}}this._updateTouchScrolling();if(this.rendered){this.rendered()}if(this.ready){this.ready()}},_hitTest:function(c,f){if(this.filterable){f-=this.filterHeight;if(f<0){f=0}}var e=parseInt(this.vScrollInstance.value);var b=this._searchFirstVisibleIndex(f+e,this.renderedVisibleItems);if(this.renderedVisibleItems[b]!=undefined&&this.renderedVisibleItems[b].isGroup){return null}if(this.renderedVisibleItems.length>0){var d=this.renderedVisibleItems[this.renderedVisibleItems.length-1];if(d.height+d.top<f+e){return null}}b=this._searchFirstVisibleIndex(f+e);return this.visibleItems[b];return null},_searchFirstVisibleIndex:function(f,g){if(f==undefined){f=parseInt(this.vScrollInstance.value)}var d=0;if(g==undefined||g==null){g=this.visibleItems}var b=g.length;while(d<=b){var c=parseInt((d+b)/2);var e=g[c];if(e==undefined){break}if(e.initialTop>f&&e.initialTop+e.height>f){b=c-1}else{if(e.initialTop<f&&e.initialTop+e.height<=f){d=c+1}else{return c;break}}}return 0},_renderItems:function(){if(this.items==undefined||this.items.length==0){this.visibleItems=new Array();return}if(this.updatingListBox==true){return}var O=this.isTouchDevice();var H=this.vScrollInstance;var h=this.hScrollInstance;var g=parseInt(H.value);var f=parseInt(h.value);if(this.rtl){if(this.hScrollBar[0].style.visibility!="hidden"){f=h.max-f}}var C=this.items.length;var N=this.host.width();var L=parseInt(this.content[0].style.width);var b=L+parseInt(h.max);var r=parseInt(this.vScrollBar[0].style.width)+2;if(this.vScrollBar[0].style.visibility=="hidden"){r=0}if(this.hScrollBar[0].style.visibility!="visible"){b=L}var l=this._getVirtualItemsCount();var M=new Array();var G=0;var F=parseInt(this.element.style.height)+2;if(this.element.style.height.indexOf("%")!=-1){F=this.host.outerHeight()}if(isNaN(F)){F=0}var u=0;var t=0;var R=0;if(H.value==0||this.visibleItems.length==0){for(var s=0;s<this.items.length;s++){var z=this.items[s];if(z.visible){z.top=-g;z.initialTop=-g;if(!z.isGroup&&z.visible){this.visibleItems[t++]=z;z.visibleIndex=t-1}this.renderedVisibleItems[R++]=z;z.left=-f;var c=z.top+z.height;if(c>=0&&z.top-z.height<=F){M[G++]={index:s,item:z}}g-=z.height;g--}}}var m=g>0?this._searchFirstVisibleIndex(this.vScrollInstance.value,this.renderedVisibleItems):0;var P=0;G=0;var A=this.vScrollInstance.value;var K=0;while(P<100+F){var z=this.renderedVisibleItems[m];if(z==undefined){break}if(z.visible){z.left=-f;var c=z.top+z.height-A;if(c>=0&&z.initialTop-A-z.height<=2*F){M[G++]={index:m,item:z}}}m++;if(z.visible){P+=z.initialTop-A+z.height-P}K++;if(K>this.items.length-1){break}}if(this._renderOnDemand){return}var p=this.toThemeProperty("jqx-listitem-state-normal")+" "+this.toThemeProperty("jqx-item");var i=this.toThemeProperty("jqx-listitem-state-group");var Q=this.toThemeProperty("jqx-listitem-state-disabled")+" "+this.toThemeProperty("jqx-fill-state-disabled");if(this.checkboxes){p+=" checkboxes"}var D=0;var n=this;for(var s=0;s<this.visualItems.length;s++){var E=this.visualItems[s];var J=function(){var y=E[0].firstChild;if(n.checkboxes){y=E[0].lastChild}if(y!=null){y.style.visibility="hidden";y.className=""}if(n.checkboxes){var S=E[0].firstChild;S.style.visibility="hidden"}};if(s<M.length){var z=M[s].item;if(z.initialTop-A>=F){J();continue}var B=a(E[0].firstChild);if(this.checkboxes){B=a(E[0].lastChild)}if(B.length==0){continue}if(B[0]==null){continue}B[0].className="";B[0].style.display="block";B[0].style.visibility="inherit";var q="";if(!z.isGroup&&!this.selectedIndexes[z.index]>=0){q=p}else{q=i}if(z.disabled||this.disabled){q+=" "+Q}if(this.roundedcorners){q+=" "+this.toThemeProperty("jqx-rc-all")}if(O){q+=" "+this.toThemeProperty("jqx-listitem-state-normal-touch")}B[0].className=q;if(this.renderer){if(!z.key){z.key=this.generatekey()}if(!this._cachedItemHtml){this._cachedItemHtml=new Array()}if(this._cachedItemHtml[z.key]){if(B[0].innerHTML!=this._cachedItemHtml[z.key]){B[0].innerHTML=this._cachedItemHtml[z.key]}}else{var x=this.renderer(z.index,z.label,z.value);if(x.element){B[0].innerHTML=x.element;a(B[0].firstElementChild).css(x.css)}else{B[0].innerHTML=x;this._cachedItemHtml[z.key]=B[0].innerHTML}}}else{if(this.itemHeight!==-1){var k=2+2*parseInt(B.css("padding-top"));B[0].style.lineHeight=(z.height-k)+"px";B.css("vertical-align","middle")}if(z.html!=null&&z.html.toString().length>0){B[0].innerHTML=z.html}else{if(z.label!=null||z.value!=null){if(z.label!=null){if(B[0].innerHTML!==z.label){B[0].innerHTML=z.label}if(a.trim(z.label)==""){B[0].innerHTML=this.emptyString;if(this.emptyString==""){B[0].style.height=(z.height-8)+"px"}}if(!this.incrementalSearch&&!z.disabled){if(this.searchString!=undefined&&this.searchString!=""){B[0].innerHTML=this._highlight(z.label.toString(),this.searchString)}}}else{if(z.label===null){B[0].innerHTML=this.emptyString;if(this.emptyString==""){B[0].style.height=(z.height-8)+"px"}}else{if(B[0].innerHTML!==z.value){B[0].innerHTML=z.value}else{if(z.label==""){B[0].innerHTML=" "}}}}}else{if(z.label==""||z.label==null){B[0].innerHTML="";B[0].style.height=(z.height-8)+"px"}}}}E[0].style.left=z.left+"px";E[0].style.top=z.initialTop-A+"px";z.element=B[0];if(this.isMaterialized()&&!this.renderer){if(this._checkForHiddenParent){a(z.element).addClass("ripple");a.jqx.ripple(a(z.element))}}if(z.title){B[0].title=z.title}if(this.equalItemsWidth&&!z.isGroup){if(u==0){var d=parseInt(b);var w=parseInt(B.outerWidth())-parseInt(B.width());d-=w;var I=1;if(I!=null){I=parseInt(I)}else{I=0}if(this.host.css("box-sizing")==="border-box"){d-=2}u=d;if(this.checkboxes&&this.hScrollBar[0].style.visibility=="hidden"){u-=this.checkboxSize+13}}if(L>this.virtualSize.width){B[0].style.width=u+"px";z.width=u}else{B[0].style.width=-4+this.virtualSize.width+"px";z.width=this.virtualSize.width-4}}else{if(B.width()<this.host.width()){B.width(this.host.width()-2)}}if(this.rtl){B[0].style.textAlign="right"}if(this.autoItemsHeight){B[0].style.whiteSpace="pre-line";B.width(u);z.width=u}D=0;if(this.checkboxes&&!z.isGroup){if(D==0){D=(z.height-this.checkboxSize-3)/2;D=parseInt(D);D++}var e=a(E.children()[0]);e[0].item=z;if(!this.rtl){var o=(this.checkboxSize+9);if(B[0].style.left!=o+"px"){B[0].style.left=o+"px"}}else{if(B[0].style.left!="0px"){B[0].style.left="0px"}}if(this.rtl){e.css("left",8+z.width+"px")}e[0].style.top=D+"px";e[0].style.display="block";e[0].style.visibility="inherit";var v=z.checked;var j=z.checked?" "+this.toThemeProperty("jqx-checkbox-check-checked"):"";e[0].setAttribute("checked",z.checked);if(e[0].firstChild&&e[0].firstChild.firstChild&&e[0].firstChild.firstChild.firstChild){if(e[0].firstChild.firstChild){if(v){e[0].firstChild.firstChild.firstChild.className=j}else{if(v===false){e[0].firstChild.firstChild.firstChild.className=""}else{if(v===null){e[0].firstChild.firstChild.firstChild.className=this.toThemeProperty("jqx-checkbox-check-indeterminate")}}}}}if(a.jqx.ariaEnabled){if(v){E[0].setAttribute("aria-selected",true)}else{E[0].removeAttribute("aria-selected")}}}else{if(this.checkboxes){var e=a(E.children()[0]);e.css({display:"none",visibility:"inherit"})}}if(!z.disabled&&((!this.filterable&&this.selectedIndexes[z.visibleIndex]>=0)||(z.selected&&this.filterable))){B.addClass(this.toThemeProperty("jqx-listitem-state-selected"));B.addClass(this.toThemeProperty("jqx-fill-state-pressed"));if(a.jqx.ariaEnabled){E[0].setAttribute("aria-selected",true);this._activeElement=E[0]}}else{if(!this.checkboxes){if(a.jqx.ariaEnabled){E[0].removeAttribute("aria-selected")}}}}else{J()}}},escapeHTML:function(c){var b={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(c).replace(/[&<>"'`=\/]/g,function(d){return b[d]})},sanitizeHTML:function(e){var d=this;var c=new RegExp("<s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)[^>]*>(.*?)<s*/s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)>","ig");var b=String(e).replace(c,function(f){return d.escapeHTML(f)});return b},escape_HTML:function(b){b=""+b;if(b&&(b.indexOf("onclick")>=0||b.indexOf("onload")>=0||b.indexOf("onerror")>=0)){return this.escapeHTML(b)}var c=this.sanitizeHTML(b);return c},generatekey:function(){var b=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return(b()+b()+"-"+b()+"-"+b()+"-"+b()+"-"+b()+b()+b())},_calculateVirtualSize:function(l){if(this._renderOnDemand){return}var p=0;var n=2;var g=0;var o=document.createElement("span");if(this.equalItemsWidth){a(o).css("float","left")}o.style.whiteSpace="pre";var h=0;var i=undefined===l?this.host.outerHeight():l+2;document.body.appendChild(o);var e=this.items.length;var j=this.host.width();if(this.autoItemsHeight){j-=10;if(this.vScrollBar.css("visibility")!="hidden"){j-=20}}if(this.autoItemsHeight||this.renderer||this.groups.length>=1||(e>0&&this.items[0].html!=null&&this.items[0].html!="")){for(var g=0;g<e;g++){var s=this.items[g];if(s.isGroup&&(s.label==""&&s.html=="")){continue}if(!s.visible){continue}var d="";if(!s.isGroup){d+=this.toThemeProperty("jqx-widget jqx-listitem-state-normal jqx-rc-all")}else{d+=this.toThemeProperty("jqx-listitem-state-group jqx-rc-all")}d+=" "+this.toThemeProperty("jqx-fill-state-normal");if(this.isTouchDevice()){d+=" "+this.toThemeProperty("jqx-touch")}o.className=d;if(this.autoItemsHeight){o.style.whiteSpace="pre-line";var u=(this.checkboxSize+9);var c=this.checkboxes?-u:0;o.style.width=(c+j)+"px"}if(this.renderer){var k=this.renderer(s.index,s.label,s.value);if(k.element&&k.css){o.innerHTML=k.element;a(o.firstElementChild).css(k.css)}else{o.innerHTML=k}}else{if(s.html!=null&&s.html.toString().length>0){o.innerHTML=s.html}else{if(s.label!=null||s.value!=null){if(s.label!=null){o.innerHTML=this.escape_HTML(s.label);if(s.label==""){o.innerHTML="Empty"}}else{o.innerHTML=this.escape_HTML(s.value)}}}}var r=o.offsetHeight;var t=o.offsetWidth;if(this.itemHeight>-1){r=this.itemHeight}s.height=r;s.width=t;r++;n+=r;p=Math.max(p,t);if(n<=i){h++}}}else{var n=0;var m=0;var b="";var v=0;var f=0;var q=-1;for(var g=0;g<e;g++){var s=this.items[g];if(s.isGroup&&(s.label==""&&s.html=="")){continue}if(!s.visible){continue}q++;var d="";if(q==0){d+=this.toThemeProperty("jqx-listitem-state-normal jqx-rc-all");d+=" "+this.toThemeProperty("jqx-fill-state-normal");d+=" "+this.toThemeProperty("jqx-widget");d+=" "+this.toThemeProperty("jqx-listbox");d+=" "+this.toThemeProperty("jqx-widget-content");if(this.isTouchDevice()){d+=" "+this.toThemeProperty("jqx-touch");d+=" "+this.toThemeProperty("jqx-listitem-state-normal-touch")}o.className=d;if(this.autoItemsHeight){o.style.whiteSpace="pre-line";var u=(this.checkboxSize+9);var c=this.checkboxes?-u:0;o.style.width=(c+j)+"px"}if(s.html==null||(s.label==""||s.label==null)){o.innerHTML="Item"}else{if(s.html!=null&&s.html.toString().length>0){o.innerHTML=s.html}else{if(s.label!=null||s.value!=null){if(s.label!=null){if(s.label.toString().match(new RegExp("\\w"))!=null||s.label.toString().match(new RegExp("\\d"))!=null){o.innerHTML=s.label}else{o.innerHTML="Item"}}else{o.innerHTML=s.value}}}}var r=1+o.offsetHeight;if(this.itemHeight>-1){r=this.itemHeight}m=r}if(v!=undefined){f=v}if(s.html!=null&&s.html.toString().length>0){v=Math.max(v,s.html.toString().length);if(f!=v){b=s.html}}else{if(s.label!=null){v=Math.max(v,s.label.length);if(f!=v){b=s.label}}else{if(s.value!=null){v=Math.max(v,s.value.length);if(f!=v){b=s.value}}}}s.height=m;n+=m;n++;if(n<=i){h++}}o.innerHTML=b;p=o.offsetWidth}n+=2;if(h<10){h=10}if(this.filterable){n+=this.filterHeight}n-=4;o.parentNode.removeChild(o);return{width:p,height:n,itemsPerPage:h}},_getVirtualItemsCount:function(){if(this.virtualItemsCount==0){var b=parseInt(this.host.height())/5;if(b>this.items.length){b=this.items.length}return b}else{return this.virtualItemsCount}},applyDataStyles:function(o,p){o=o||document;p=p||"[data-style]";var n;try{if(o.jquery&&o.length){o=o[0]}n=o.querySelectorAll(p)}catch(r){return}for(var q=0;q<n.length;q++){var b=n[q];var j=b.getAttribute("data-style");if(!j){continue}var m=j.split(";");for(var s=0;s<m.length;s++){var f=m[s];if(!f){continue}var k=f.indexOf(":");if(k===-1){continue}var c=f.slice(0,k).trim();var v=f.slice(k+1).trim();if(!c||!v){continue}var t="";var h=v.match(/\s*!important\s*$/i);if(h){t="important";v=v.replace(/\s*!important\s*$/i,"").trim()}try{b.style.setProperty(c,v,t)}catch(g){try{var u=c.replace(/-([a-z])/g,function(d,e){return e.toUpperCase()});b.style[u]=v}catch(l){}}}b.removeAttribute("data-style")}},_addItems:function(r){if(this._renderOnDemand){return}var v=this;if(v.updatingListBox==true){return}if(v.items==undefined||v.items.length==0){v.virtualSize={width:0,height:0,itemsPerPage:0};v._updatescrollbars();v.renderedVisibleItems=new Array();if(v.itemswrapper){v.itemswrapper.children().remove()}return}var h=v.host.height();if(r==false){var b=v._calculateVirtualSize(h);var g=b.itemsPerPage*2;if(v.autoHeight){g=v.items.length}v.virtualItemsCount=Math.min(g,v.items.length);var q=b.width;v.virtualSize=b;v._updatescrollbars();return}var n=this;var l=0;v.visibleItems=new Array();v.renderedVisibleItems=new Array();v._removeHandlers();if(v.allowDrag&&v._enableDragDrop){v.itemswrapper=null}if(v.itemswrapper==null){v.content[0].innerHTML="";v.itemswrapper=a("<div></div>").css({outline:"0 none",overflow:"hidden",width:"100%",position:"relative"});v.itemswrapper[0].style.height=(2*h)+"px";v.content[0].appendChild(v.itemswrapper[0])}var b=v._calculateVirtualSize(h);var g=b.itemsPerPage*2;if(v.autoHeight){g=v.items.length}v.virtualItemsCount=Math.min(g,v.items.length);var v=this;var q=b.width;v.virtualSize=b;var c=Math.max(v.host.width(),17+b.width);v.itemswrapper[0].style.width=c+"px";var e=0;var i="";var f=a.jqx.browser.msie&&a.jqx.browser.version<9;var s=f?' unselectable="on"':"";for(var j=e;j<v.virtualItemsCount;j++){var u=v.items[j];var p="listitem"+j+v.element.id;if(v.theme!=""){i+="<div"+s+" role='option' id='"+p+"' class='jqx-listitem-element jqx-listitem-element-"+v.theme+"'>"}else{i+="<div"+s+" role='option' id='"+p+"' class='jqx-listitem-element'>"}if(v.checkboxes){var w=this.checkboxSize+8;i+='<div data-style="background-color: transparent; padding: 0; margin: 0; overflow:hidden; position: absolute; float: left; width: '+w+"px; height: "+w+'px;" class="'+v.toThemeProperty("jqx-checkbox")+' chkbox">';var o='<div class="'+v.toThemeProperty("jqx-checkbox-default")+" "+v.toThemeProperty("jqx-fill-state-normal")+" "+v.toThemeProperty("jqx-rc-all")+'"><div data-style="cursor: pointer; width: '+this.checkboxSize+"px; height: "+this.checkboxSize+'px;">';var x=u.checked?" "+v.toThemeProperty("jqx-checkbox-check-checked"):"";o+='<span data-style="width: '+this.checkboxSize+"px; height: "+this.checkboxSize+'px;" class="checkBoxCheck'+x+'"></span>';o+="</div></div>";i+=o;i+="</div>"}i+="<span"+s+" data-style='white-space: pre; -ms-touch-action: none;'></span></div>"}if(n.WinJS){v.itemswrapper.html(i)}else{v.itemswrapper[0].innerHTML=i}v.applyDataStyles(v.itemswrapper[0]);var d=v.itemswrapper.children();for(var j=e;j<v.virtualItemsCount;j++){var u=v.items[j];var t=a(d[j]);if(v.allowDrag&&v._enableDragDrop){t.addClass("draggable")}if(v.checkboxes){var k=a(t.children()[0]);t.css("float","left");var m=a(t[0].firstChild);m.css("float","left")}t[0].style.height=u.height+"px";t[0].style.top=l+"px";l+=u.height+1;v.visualItems[j]=t}v._addHandlers();v._updatescrollbars();if(v.autoItemsHeight){var b=v._calculateVirtualSize(h);var g=b.itemsPerPage*2;if(v.autoHeight){g=v.items.length}v.virtualItemsCount=Math.min(g,v.items.length);var v=this;var q=b.width;v.virtualSize=b;v._updatescrollbars()}if(a.jqx.browser.msie&&a.jqx.browser.version<8){v.host.attr("hideFocus",true);v.host.find("div").attr("hideFocus",true)}},_updatescrollbars:function(){var l=this;if(!l.virtualSize){return}var o=l.virtualSize.height;var k=l.virtualSize.width;var g=l.vScrollInstance;var f=l.hScrollInstance;l._arrange(false);var m=false;var p=l.host.outerWidth();var n=l.host.outerHeight();var b=0;if(k>p){b=l.hScrollBar.outerHeight()+2}if(o+b>n){var e=g.max;g.max=2+parseInt(o)+b-parseInt(n-2);if(l.vScrollBar[0].style.visibility!="inherit"){l.vScrollBar[0].style.visibility="inherit";m=true}if(e!=g.max){g._arrange()}}else{if(l.vScrollBar[0].style.visibility!="hidden"){l.vScrollBar[0].style.visibility="hidden";m=true;g.setPosition(0)}}var i=0;if(l.vScrollBar[0].style.visibility!="hidden"){i=l.scrollBarSize+6}var h=l.checkboxes?(this.checkboxSize+6):0;if(l.autoItemsHeight){l.hScrollBar[0].style.visibility="hidden"}else{if(k>=p-i-h){var j=f.max;if(l.vScrollBar[0].style.visibility=="inherit"){f.max=h+i+parseInt(k)-l.host.width()+2}else{f.max=h+parseInt(k)-l.host.width()+4}if(l.hScrollBar[0].style.visibility!="inherit"){l.hScrollBar[0].style.visibility="inherit";m=true}if(j!=f.max){f._arrange()}if(l.vScrollBar[0].style.visibility=="inherit"){g.max=2+parseInt(o)+l.hScrollBar.outerHeight()+2-parseInt(l.host.height())}}else{if(l.hScrollBar[0].style.visibility!="hidden"){l.hScrollBar[0].style.visibility="hidden";m=true}}}f.setPosition(0);if(m){l._arrange()}if(l.itemswrapper){l.itemswrapper[0].style.width=Math.max(0,Math.max(p-2,17+k))+"px";var d=Math.max(l.content.width(),17+l.virtualSize.width);l.itemswrapper[0].style.width=d+"px";l.itemswrapper[0].style.height=Math.max(0,2*n)+"px"}var c=l.isTouchDevice();if(c){if(l.vScrollBar.css("visibility")!="visible"&&l.hScrollBar.css("visibility")!="visible"){a.jqx.mobile.setTouchScroll(false,l.element.id)}else{a.jqx.mobile.setTouchScroll(true,l.element.id)}}},clear:function(){this.source=null;this.visibleItems=new Array();this.renderedVisibleItems=new Array();this.itemsByValue=new Array();this.clearSelection();this.refresh()},clearSelection:function(b){for(var c=0;c<this.selectedIndexes.length;c++){if(this.selectedIndexes[c]!==undefined&&this.selectedIndexes[c]!=-1){this._raiseEvent("1",{index:c,type:"api",item:this.getVisibleItem(c),originalEvent:null})}this.selectedIndexes[c]=-1}this.selectedIndex=-1;this.selectedValue=null;this.selectedValues=new Array();if(b!=false){this._renderItems()}},unselectIndex:function(c,d){if(isNaN(c)){return}this.selectedIndexes[c]=-1;var g=false;for(var e=0;e<this.selectedIndexes.length;e++){var b=this.selectedIndexes[e];if(b!=-1&&b!=undefined){g=true}}if(!g){this.selectedValue=null;this.selectedIndex=-1;var f=this.getVisibleItem(c);if(f){if(this.selectedValues[f.value]){this.selectedValues[f.value]=null}}}if(d==undefined||d==true){this._renderItems();this._raiseEvent("1",{index:c,type:"api",item:this.getVisibleItem(c),originalEvent:null})}this._updateInputSelection();this._raiseEvent("2",{index:c,type:"api",item:this.getItem(c)})},getInfo:function(){var d=this;var c=this.getItems();var b=this.getVisibleItems();var e=function(){var h=d.vScrollInstance.value;if(d.filterable){h-=d.filterHeight}var m=new Array();for(var g=0;g<b.length;g++){var j=b[g];if(j){var f=j.initialTop;var l=j.height;var k=true;if(f+l-h<0||f-h>=d.host.height()){k=false}if(k){m.push(j)}}}return m}();return{items:c,visibleItems:b,viewItems:e}},getItem:function(c){if(c==-1||isNaN(c)||typeof(c)==="string"){if(c===-1){return null}return this.getItemByValue(c)}var b=null;var d=a.each(this.items,function(){if(this.index==c){b=this;return false}});return b},getVisibleItem:function(b){if(b==-1||isNaN(b)||typeof(b)==="string"){if(b===-1){return null}return this.getItemByValue(b)}return this.visibleItems[b]},getVisibleItems:function(){return this.visibleItems},checkIndex:function(b,c,e){if(!this.checkboxes){return}if(isNaN(b)){return}if(b<0||b>=this.visibleItems.length){return}if(this.visibleItems[b]!=null&&this.visibleItems[b].disabled){return}if(this.disabled){return}var d=this.getItem(b);if(this.groups.length>0||this.filterable){var d=this.getVisibleItem(b)}if(d!=null){var f=a(d.checkBoxElement);d.checked=true;if(c==undefined||c==true){this._updateCheckedItems()}}if(e==undefined||e==true){this._raiseEvent(3,{label:d.label,value:d.value,checked:true,item:d})}},getCheckedItems:function(){if(!this.checkboxes){return null}var b=new Array();if(this.items==undefined){return}a.each(this.items,function(){if(this.checked){b[b.length]=this}});return b},checkAll:function(b){if(!this.checkboxes){return}if(this.disabled){return}var c=this;a.each(this.items,function(){var d=this;var e=d.checked;this.checked=true;if(b!==false&&e!==true){c._raiseEvent(3,{label:d.label,value:d.value,checked:true,item:d})}});this._updateCheckedItems()},uncheckAll:function(b){if(!this.checkboxes){return}if(this.disabled){return}var c=this;a.each(this.items,function(){var d=this;var e=d.checked;this.checked=false;if(b!==false&&e!==false){this.checked=false;c._raiseEvent(3,{label:d.label,value:d.value,checked:false,item:d})}});this._updateCheckedItems()},uncheckIndex:function(b,c,e){if(!this.checkboxes){return}if(isNaN(b)){return}if(b<0||b>=this.visibleItems.length){return}if(this.visibleItems[b]!=null&&this.visibleItems[b].disabled){return}if(this.disabled){return}var d=this.getItem(b);if(this.groups.length>0||this.filterable){var d=this.getVisibleItem(b)}if(d!=null){var f=a(d.checkBoxElement);d.checked=false;if(c==undefined||c==true){this._updateCheckedItems()}}if(e==undefined||e==true){this._raiseEvent(3,{label:d.label,value:d.value,checked:false,item:d})}},indeterminateIndex:function(b,c,e){if(!this.checkboxes){return}if(isNaN(b)){return}if(b<0||b>=this.visibleItems.length){return}if(this.visibleItems[b]!=null&&this.visibleItems[b].disabled){return}if(this.disabled){return}var d=this.getItem(b);if(this.groups.length>0||this.filterable){var d=this.getVisibleItem(b)}if(d!=null){var f=a(d.checkBoxElement);d.checked=null;if(c==undefined||c==true){this._updateCheckedItems()}}if(e==undefined||e==true){this._raiseEvent(3,{checked:null})}},getSelectedIndex:function(){return this.selectedIndex},getSelectedItems:function(){var d=this.getVisibleItems();var b=this.getItems();if(d&&d.length!==b.length){b=d}var f=this.selectedIndexes;var e=[];for(var c in f){if(f[c]!=-1){e[e.length]=b[c]}}return e},getSelectedItem:function(){var b=this.getSelectedItems();if(b&&b.length>0){return b[0]}return null},_updateCheckedItems:function(){var b=this.selectedIndex;this.clearSelection(false);var c=this.getCheckedItems();this.selectedIndex=b;this._renderItems();var d=a.data(this.element,"hoveredItem");if(d!=null){a(d).addClass(this.toThemeProperty("jqx-listitem-state-hover"));a(d).addClass(this.toThemeProperty("jqx-fill-state-hover"))}this._updateInputSelection()},getItemByValue:function(d){if(this.visibleItems==null){return}if(d&&d.value){d=d.value}if(this.itemsByValue){return this.itemsByValue[a.trim(d).split(" ").join("?")]}var b=this.visibleItems;for(var c=0;c<b.length;c++){if(b[c].value==d){return b[c];break}}},checkItem:function(c){if(c!=null){var b=this._getItemByParam(c);return this.checkIndex(b.visibleIndex,true)}return false},uncheckItem:function(c){if(c!=null){var b=this._getItemByParam(c);return this.uncheckIndex(b.visibleIndex,true)}return false},indeterminateItem:function(c){if(c!=null){var b=this._getItemByParam(c);return this.indeterminateIndex(b.visibleIndex,true)}return false},val:function(c){if(!this.input){return}var d=function(f){for(var e in f){if(f.hasOwnProperty(e)){return false}}if(typeof c=="number"){return false}if(typeof c=="date"){return false}if(typeof c=="boolean"){return false}if(typeof c=="string"){return false}return true};if(d(c)||arguments.length==0){return this.input.val()}var b=this.getItemByValue(c);if(b!=null){this.selectItem(b)}if(this.input){return this.input.val()}},selectItem:function(c){if(c!=null){if(c.index==undefined){var b=this.getItemByValue(c);if(b){c=b}}return this.selectIndex(c.visibleIndex,true)}else{this.clearSelection()}return false},unselectItem:function(c){if(c!=null){if(c.index==undefined){var b=this.getItemByValue(c);if(b){c=b}}return this.unselectIndex(c.visibleIndex,true)}return false},selectIndex:function(j,r,c,d,m,b){if(isNaN(j)){return}var q=this.selectedIndex;if(this.filterable){this.selectedIndex=-1}if(j<-1||j>=this.visibleItems.length){return}if(this.visibleItems[j]!=null&&this.visibleItems[j].disabled){return}if(this.disabled){return}if(!this.multiple&&!this.multipleextended&&this.selectedIndex==j&&!d&&!this.checkboxes){if(this.visibleItems&&this.items&&this.visibleItems.length!=this.items.length){h=this.getVisibleItem(j);if(h){this.selectedValue=h.value;this.selectedValues[h.value]=h.value}}return}if(this.checkboxes){this._updateCheckedItems();var p=q;if(this.selectedIndex==j&&!this.multiple){p=-1}if(m==undefined){m="none"}var h=this.getItem(j);var s=this.getItem(p);if(this.visibleItems&&this.items&&this.visibleItems.length!=this.items.length){h=this.getVisibleItem(j);s=this.getVisibleItem(p)}this._raiseEvent("1",{index:p,type:m,item:s,originalEvent:b});this.selectedIndex=j;this.selectedIndexes[p]=-1;this.selectedIndexes[j]=j;if(h){this.selectedValue=h.value;this.selectedValues[h.value]=h.value}this._raiseEvent("0",{index:j,type:m,item:h,originalEvent:b});this._renderItems();return}this.focused=true;var o=false;if(this.selectedIndex!=j){o=true}var p=q;if(this.selectedIndex==j&&!this.multiple){p=-1}if(m==undefined){m="none"}var h=this.getItem(j);var s=this.getItem(p);if(this.visibleItems&&this.items&&this.visibleItems.length!=this.items.length){h=this.getVisibleItem(j);s=this.getVisibleItem(p)}if(d!=undefined&&d){this._raiseEvent("1",{index:p,type:m,item:s,originalEvent:b});this.selectedIndex=j;this.selectedIndexes[p]=-1;this.selectedIndexes[j]=j;if(h){this.selectedValue=h.value;this.selectedValues[h.value]=h.value}this._raiseEvent("0",{index:j,type:m,item:h,originalEvent:b})}else{var l=this;var e=function(t,x,v,w,u,i){l._raiseEvent("1",{index:x,type:v,item:w,originalEvent:i});l.selectedIndex=t;l.selectedIndexes=[];x=t;l.selectedIndexes[t]=t;l.selectedValues=new Array();if(u){l.selectedValues[u.value]=u.value}l._raiseEvent("0",{index:t,type:v,item:u,originalEvent:i})};var k=function(t,x,v,w,u,i){if(l.selectedIndexes[t]==undefined||l.selectedIndexes[t]==-1){l.selectedIndexes[t]=t;l.selectedIndex=t;if(u){l.selectedValues[u.value]=u.value;l._raiseEvent("0",{index:t,type:v,item:u,originalEvent:i})}}else{x=l.selectedIndexes[t];w=l.getVisibleItem(x);if(w){l.selectedValues[w.value]=null}l.selectedIndexes[t]=-1;l.selectedIndex=-1;l._raiseEvent("1",{index:x,type:v,item:w,originalEvent:i})}};if(this.multipleextended){if(!this._shiftKey&&!this._ctrlKey){if(m!="keyboard"&&m!="mouse"){k(j,p,m,s,h,b);l._clickedIndex=j}else{this.clearSelection(false);l._clickedIndex=j;e(j,p,m,s,h,b)}}else{if(this._ctrlKey){if(m=="keyboard"){this.clearSelection(false);l._clickedIndex=j}k(j,p,m,s,h,b)}else{if(this._shiftKey){if(l._clickedIndex==undefined){l._clickedIndex=p}var f=Math.min(l._clickedIndex,j);var n=Math.max(l._clickedIndex,j);this.clearSelection(false);for(var g=f;g<=n;g++){l.selectedIndexes[g]=g;l.selectedValues[l.getVisibleItem(g).value]=l.getVisibleItem(g).value;l._raiseEvent("0",{index:g,type:m,item:this.getVisibleItem(g),originalEvent:b})}if(m!="keyboard"){l.selectedIndex=l._clickedIndex}else{l.selectedIndex=j}}}}}else{if(this.multiple){k(j,p,m,s,h,b)}else{if(h){this.selectedValue=h.value}e(j,p,m,s,h,b)}}}if(c==undefined||c==true){this._renderItems()}if(r!=undefined&&r!=null&&r==true){this.ensureVisible(j)}this._raiseEvent("2",{index:j,item:h,oldItem:s,type:m,originalEvent:b});this._updateInputSelection();return o},_updateInputSelection:function(){this._syncSelection();var c=new Array();if(this.input){if(this.selectedIndex==-1){this.input.val("")}else{if(this.items){if(this.items[this.selectedIndex]!=undefined){this.input.val(this.items[this.selectedIndex].value);c.push(this.items[this.selectedIndex].value)}}}if(this.multiple||this.multipleextended||this.checkboxes){var b=!this.checkboxes?this.getSelectedItems():this.getCheckedItems();var e="";if(b){for(var d=0;d<b.length;d++){if(undefined!=b[d]){if(d==b.length-1){e+=b[d].value}else{e+=b[d].value+","}c.push(b[d].value)}}this.input.val(e)}}}if(this.field&&this.input){if(this.field.nodeName.toLowerCase()=="select"){a.each(this.field,function(f,g){a(this).removeAttr("selected");this.selected=c.indexOf(this.value)>=0;if(this.selected){a(this).attr("selected",true)}})}else{a.each(this.items,function(f,g){a(this.originalItem.originalItem).removeAttr("data-selected");this.selected=c.indexOf(this.value)>=0;if(this.selected){a(this.originalItem.originalItem).attr("data-selected",true)}})}}},isIndexInView:function(c){if(isNaN(c)){return false}if(!this.items){return false}if(c<0||c>=this.items.length){return false}var e=this.vScrollInstance.value;var d=0;if(this.filterable){d=this.filterHeight}var f=this.visibleItems[c];if(f==undefined){return true}var b=f.initialTop;var g=f.height;if(b-e<d||b-e+d+g>=this.host.outerHeight()){return false}return true},_itemsInPage:function(){var b=0;var c=this;if(this.items){a.each(this.items,function(){if((this.initialTop+this.height)>=c.content.height()){return false}b++})}return b},_firstItemIndex:function(){if(this.visibleItems!=null){if(this.visibleItems[0]){if(this.visibleItems[0].isGroup){return this._nextItemIndex(0)}else{return 0}}else{return 0}}return -1},_lastItemIndex:function(){if(this.visibleItems!=null){if(this.visibleItems[this.visibleItems.length-1]){if(this.visibleItems[this.visibleItems.length-1].isGroup){return this._prevItemIndex(this.visibleItems.length-1)}else{return this.visibleItems.length-1}}else{return this.visibleItems.length-1}}return -1},_nextItemIndex:function(b){for(var c=b+1;c<this.visibleItems.length;c++){if(this.visibleItems[c]){if(!this.visibleItems[c].disabled&&!this.visibleItems[c].isGroup){return c}}}return -1},_prevItemIndex:function(b){for(var c=b-1;c>=0;c--){if(this.visibleItems[c]){if(!this.visibleItems[c].disabled&&!this.visibleItems[c].isGroup){return c}}}return -1},clearFilter:function(){this.filterInput.val("");this._updateItemsVisibility("")},_search:function(c){var b=this;var d=b.filterInput.val();if(c.keyCode==9){return}if(b.searchMode=="none"||b.searchMode==null||b.searchMode=="undefined"){return}if(c.keyCode==16||c.keyCode==17||c.keyCode==20){return}if(c.keyCode==37||c.keyCode==39){return false}if(c.altKey||c.keyCode==18){return}if(c.keyCode>=33&&c.keyCode<=40){return}if(c.ctrlKey||c.metaKey||b.ctrlKey){if(c.keyCode!=88&&c.keyCode!=86){return}}if(d===b.searchString){return}b._updateItemsVisibility(d)},_updateItemsVisibility:function(h){var e=this.getItems();if(e==undefined){return{index:-1,matchItem:new Array()}}var f=this;var d=-1;var i=new Array();var g=0;a.each(e,function(k){var m="";if(!this.isGroup){if(this.searchLabel){m=this.searchLabel}else{if(this.label){m=this.label}else{if(this.value){m=this.value}else{if(this.title){m=this.title}else{m="jqxItem"}}}}m=m.toString();var l=false;switch(f.searchMode){case"containsignorecase":l=a.jqx.string.containsIgnoreCase(m,h);break;case"contains":l=a.jqx.string.contains(m,h);break;case"equals":l=a.jqx.string.equals(m,h);break;case"equalsignorecase":l=a.jqx.string.equalsIgnoreCase(m,h);break;case"startswith":l=a.jqx.string.startsWith(m,h);break;case"startswithignorecase":l=a.jqx.string.startsWithIgnoreCase(m,h);break;case"endswith":l=a.jqx.string.endsWith(m,h);break;case"endswithignorecase":l=a.jqx.string.endsWithIgnoreCase(m,h);break}if(!l){this.visible=false}if(l){i[g++]=this;this.visible=true;d=this.visibleIndex}if(h==""){this.visible=true;l=false}}});f.renderedVisibleItems=new Array();f.visibleItems=new Array();f.vScrollInstance.setPosition(0,true);f._addItems(false);f._renderItems();for(var b=0;b<f.items.length;b++){f.selectedIndexes[b]=-1}f.selectedIndex=-1;for(var c in f.selectedValues){var h=f.selectedValues[c];var j=f.getItemByValue(h);if(j){if(j.visible){f.selectedIndex=j.visibleIndex;f.selectedIndexes[j.visibleIndex]=j.visibleIndex}}}f._syncSelection();if(f.filterChange){f.filterChange(h)}},_getMatches:function(g,d){if(g==undefined||g.length==0){return -1}if(d==undefined){d=0}var b=this.getItems();var f=this;var c=-1;var e=0;a.each(b,function(h){var k="";if(!this.isGroup){if(this.searchLabel){k=this.searchLabel.toString()}else{if(this.label){k=this.label.toString()}else{if(this.value){k=this.value.toString()}else{if(this.title){k=this.title.toString()}else{k="jqxItem"}}}}var j=false;switch(f.searchMode){case"containsignorecase":j=a.jqx.string.containsIgnoreCase(k,g);break;case"contains":j=a.jqx.string.contains(k,g);break;case"equals":j=a.jqx.string.equals(k,g);break;case"equalsignorecase":j=a.jqx.string.equalsIgnoreCase(k,g);break;case"startswith":j=a.jqx.string.startsWith(k,g);break;case"startswithignorecase":j=a.jqx.string.startsWithIgnoreCase(k,g);break;case"endswith":j=a.jqx.string.endsWith(k,g);break;case"endswithignorecase":j=a.jqx.string.endsWithIgnoreCase(k,g);break}if(j&&this.visibleIndex>=d){c=this.visibleIndex;return false}}});return c},findItems:function(e){var b=this.getItems();var d=this;var c=0;var f=new Array();a.each(b,function(g){var j="";if(!this.isGroup){if(this.label){j=this.label}else{if(this.value){j=this.value}else{if(this.title){j=this.title}else{j="jqxItem"}}}var h=false;switch(d.searchMode){case"containsignorecase":h=a.jqx.string.containsIgnoreCase(j,e);break;case"contains":h=a.jqx.string.contains(j,e);break;case"equals":h=a.jqx.string.equals(j,e);break;case"equalsignorecase":h=a.jqx.string.equalsIgnoreCase(j,e);break;case"startswith":h=a.jqx.string.startsWith(j,e);break;case"startswithignorecase":h=a.jqx.string.startsWithIgnoreCase(j,e);break;case"endswith":h=a.jqx.string.endsWith(j,e);break;case"endswithignorecase":h=a.jqx.string.endsWithIgnoreCase(j,e);break}if(h){f[c++]=this}}});return f},_syncSelection:function(){var d=this;if(d.filterable){if(d.items){for(var b=0;b<d.items.length;b++){var c=d.items[b];c.selected=false}}for(var b=0;b<d.visibleItems.length;b++){var c=d.visibleItems[b];if(d.selectedIndexes&&d.selectedIndexes[b]==c.visibleIndex){c.selected=true}}if(d.itemswrapper){d._renderItems()}}},_handleKeyDown:function(n){var s=n.keyCode;var k=this;var g=k.selectedIndex;var d=k.selectedIndex;var l=false;if(!this.keyboardNavigation||!this.enableSelection){return}if(this.filterInput&&n.target==this.filterInput[0]){return}if(n.target instanceof HTMLInputElement&&a(n.target).ischildof(this.host)){return}var j=function(){if(k.multiple||k.checkboxes){k.clearSelection(false)}};if(n.altKey){s=-1}if(s==32&&this.checkboxes){var f=this.getItem(g);if(f!=null){k._updateItemCheck(f,g);n.preventDefault()}k._searchString="";k.selectIndex(f.visibleIndex,false,true,true,"keyboard",n);k._renderItems();return}if(k.incrementalSearch){var o=-1;if(!k._searchString){k._searchString=""}if((s==8||s==46)&&k._searchString.length>=1){k._searchString=k._searchString.substr(0,k._searchString.length-1)}var r=String.fromCharCode(s);if(n.key){r=n.key}var m=(!isNaN(parseInt(r)));var i=false;if((s>=65&&s<=97)||m||s==8||s==32||s==46){if(!n.shiftKey){r=r.toLocaleLowerCase()}var e=1+k.selectedIndex;if(s!=8&&s!=32&&s!=46){if(k._searchString.length>0&&k._searchString.substr(0,1)==r){e=1+k.selectedIndex;k._searchString+=r}else{k._searchString+=r}}if(s==32){k._searchString+=" "}var b=this._getMatches(k._searchString,e);o=b;if(o==k._lastMatchIndex||o==-1){var b=this._getMatches(k._searchString,0);o=b}k._lastMatchIndex=o;if(o>=0){var h=function(){j();k.selectIndex(o,false,false,false,"keyboard",n);var t=k.isIndexInView(o);if(!t){k.ensureVisible(o)}else{k._renderItems()}};if(k._toSelectTimer){clearTimeout(k._toSelectTimer)}k._toSelectTimer=setTimeout(function(){h()},k.incrementalSearchKeyDownDelay)}i=true}if(k._searchTimer!=undefined){clearTimeout(k._searchTimer)}if(s==27||s==13){k._searchString=""}k._searchTimer=setTimeout(function(){k._searchString="";k._renderItems()},k.incrementalSearchDelay);if(o>=0){return}if(i){return false}}if(s==33){var p=k._itemsInPage();if(k.selectedIndex-p>=0){j();k.selectIndex(d-p,false,false,false,"keyboard",n)}else{j();k.selectIndex(k._firstItemIndex(),false,false,false,"keyboard",n)}k._searchString=""}if(s==32&&this.checkboxes){var f=this.getItem(g);if(f!=null){k._updateItemCheck(f,g);n.preventDefault()}k._searchString=""}if(s==36){j();k.selectIndex(k._firstItemIndex(),false,false,false,"keyboard",n);k._searchString=""}if(s==35){j();k.selectIndex(k._lastItemIndex(),false,false,false,"keyboard",n);k._searchString=""}if(s==34){var p=k._itemsInPage();if(k.selectedIndex+p<k.visibleItems.length){j();k.selectIndex(d+p,false,false,false,"keyboard",n)}else{j();k.selectIndex(k._lastItemIndex(),false,false,false,"keyboard",n)}k._searchString=""}if(s==38){k._searchString="";if(k.selectedIndex>0){var c=k._prevItemIndex(k.selectedIndex);if(c!=k.selectedIndex&&c!=-1){j();k.selectIndex(c,false,false,false,"keyboard",n)}else{return true}}else{return false}}else{if(s==40){k._searchString="";if(k.selectedIndex+1<k.visibleItems.length){var c=k._nextItemIndex(k.selectedIndex);if(c!=k.selectedIndex&&c!=-1){j();k.selectIndex(c,false,false,false,"keyboard",n)}else{return true}}else{return false}}}if(s==35||s==36||s==38||s==40||s==34||s==33){var q=k.isIndexInView(k.selectedIndex);if(!q){k.ensureVisible(k.selectedIndex)}else{k._renderItems()}return false}return true},_updateItemCheck:function(b,c){if(this.disabled){return}if(b.checked==true){b.checked=(b.hasThreeStates&&this.hasThreeStates)?null:false}else{b.checked=b.checked!=null}switch(b.checked){case true:this.checkIndex(c);break;case false:this.uncheckIndex(c);break;default:this.indeterminateIndex(c);break}},wheel:function(d,c){if(c.autoHeight||!c.enableMouseWheel){d.returnValue=true;return true}if(c.disabled){return true}var e=0;if(!d){d=window.event}if(d.originalEvent&&d.originalEvent.wheelDelta){d.wheelDelta=d.originalEvent.wheelDelta}if(d.wheelDelta){e=d.wheelDelta/120}else{if(d.detail){e=-d.detail/3}}if(e){var b=c._handleDelta(e);if(b){if(d.preventDefault){d.preventDefault()}if(d.originalEvent!=null){d.originalEvent.mouseHandled=true}if(d.stopPropagation!=undefined){d.stopPropagation()}}if(b){b=false;d.returnValue=b;return b}else{return false}}if(d.preventDefault){d.preventDefault()}d.returnValue=false},_handleDelta:function(d){var c=this.vScrollInstance.value;if(d<0){this.scrollDown()}else{this.scrollUp()}var b=this.vScrollInstance.value;if(c!=b){return true}return false},focus:function(){try{this.focused=true;this.host.focus();var c=this;setTimeout(function(){c.host.focus()},25)}catch(b){}},_removeHandlers:function(){var b=this;this.removeHandler(a(document),"keydown.listbox"+this.element.id);this.removeHandler(a(document),"keyup.listbox"+this.element.id);this.removeHandler(this.vScrollBar,"valueChanged");this.removeHandler(this.hScrollBar,"valueChanged");if(this._mousewheelfunc){this.removeHandler(this.host,"mousewheel",this._mousewheelfunc)}else{this.removeHandler(this.host,"mousewheel")}this.removeHandler(this.host,"keydown");this.removeHandler(this.content,"mouseleave");this.removeHandler(this.content,"focus");this.removeHandler(this.content,"blur");this.removeHandler(this.host,"focus");this.removeHandler(this.host,"blur");this.removeHandler(this.content,"mouseenter");this.removeHandler(this.content,"mouseup");this.removeHandler(this.content,"mousedown");this.removeHandler(this.content,"touchend");if(this._mousemovefunc){this.removeHandler(this.content,"mousemove",this._mousemovefunc)}else{this.removeHandler(this.content,"mousemove")}this.removeHandler(this.content,"selectstart");if(this.overlayContent){this.removeHandler(this.overlayContent,a.jqx.mobile.getTouchEventName("touchend"))}},_updateSize:function(){if(!this.virtualSize){this._oldheight=null;this.virtualSize=this._calculateVirtualSize()}var b=this;b._arrange();if(b.host.height()!=b._oldheight||b.host.width()!=b._oldwidth){var c=b.host.width()!=b._oldwidth;if(b.autoItemsHeight){b._render(false)}else{if(b.items){if(b.items.length>0&&b.virtualItemsCount*b.items[0].height<b._oldheight-2){b._render(false)}else{var d=b.vScrollInstance.value;b._updatescrollbars();b._renderItems();if(d<b.vScrollInstance.max){b.vScrollInstance.setPosition(d)}else{b.vScrollInstance.setPosition(b.vScrollInstance.max)}}}}b._oldwidth=b.host.width();b._oldheight=b.host.height()}},_addHandlers:function(){var l=this;this.focused=false;var m=false;var j=0;var g=null;var j=0;var b=0;var h=new Date();var e=this.isTouchDevice();this.addHandler(this.vScrollBar,"valueChanged",function(n){if(a.jqx.browser.msie&&a.jqx.browser.version>9){setTimeout(function(){l._renderItems()},1)}else{l._renderItems()}});this.addHandler(this.hScrollBar,"valueChanged",function(){l._renderItems()});if(this._mousewheelfunc){this.removeHandler(this.host,"mousewheel",this._mousewheelfunc)}this._mousewheelfunc=function(n){l.wheel(n,l)};this.addHandler(this.host,"mousewheel",this._mousewheelfunc);this.addHandler(a(document),"keydown.listbox"+this.element.id,function(n){l._ctrlKey=n.ctrlKey||n.metaKey;l._shiftKey=n.shiftKey});this.addHandler(a(document),"keyup.listbox"+this.element.id,function(n){l._ctrlKey=n.ctrlKey||n.metaKey;l._shiftKey=n.shiftKey});this.addHandler(this.host,"keydown",function(n){return l._handleKeyDown(n)});this.addHandler(this.content,"mouseleave",function(n){l.focused=false;var o=a.data(l.element,"hoveredItem");if(o!=null){a(o).removeClass(l.toThemeProperty("jqx-listitem-state-hover"));a(o).removeClass(l.toThemeProperty("jqx-fill-state-hover"));a.data(l.element,"hoveredItem",null)}});this.addHandler(this.content,"focus",function(n){if(!l.disabled){l.host.addClass(l.toThemeProperty("jqx-fill-state-focus"));l.focused=true}});this.addHandler(this.content,"blur",function(n){l.focused=false;l.host.removeClass(l.toThemeProperty("jqx-fill-state-focus"))});this.addHandler(this.host,"focus",function(n){if(!l.disabled){l.host.addClass(l.toThemeProperty("jqx-fill-state-focus"));l.focused=true}});this.addHandler(this.host,"blur",function(n){if(a.jqx.browser.msie&&a.jqx.browser.version<9&&l.focused){return}l.host.removeClass(l.toThemeProperty("jqx-fill-state-focus"));l.focused=false});this.addHandler(this.content,"mouseenter",function(n){l.focused=true});var c=a.jqx.utilities.hasTransform(this.host);var f=l.isTouchDevice()&&this.touchMode!==true;var i=!f?"mousedown":"touchend";var k=!f?"mouseup":"touchend";if(this.overlayContent){this.addHandler(this.overlayContent,a.jqx.mobile.getTouchEventName("touchend"),function(p){if(!l.enableSelection){return true}if(f){l._newScroll=new Date();if(l._newScroll-l._lastScroll<500){return true}}var s=a.jqx.mobile.getTouches(p);var t=s[0];if(t!=undefined){var n=l.host.offset();var r=parseInt(t.pageX);var q=parseInt(t.pageY);if(l.touchMode==true){if(t._pageX!=undefined){r=parseInt(t._pageX);q=parseInt(t._pageY)}}r=r-n.left;q=q-n.top;var o=l._hitTest(r,q);if(o!=null&&!o.isGroup){l._newScroll=new Date();if(l._newScroll-l._lastScroll<500){return false}if(l.checkboxes){l._updateItemCheck(o,o.visibleIndex);l.selectIndex(o.visibleIndex,false,true,false,"mouse",p);return}if(o.html.indexOf("href")!=-1){setTimeout(function(){l.selectIndex(o.visibleIndex,false,true,false,"mouse",p);l.content.trigger("click");return false},100)}else{l.selectIndex(o.visibleIndex,false,true,false,"mouse",p);if(p.preventDefault){p.preventDefault()}l.content.trigger("click");return false}}}})}else{var d=false;this.addHandler(this.content,i,function(n){if(!l.enableSelection){return true}d=true;if(f){l._newScroll=new Date();if(l._newScroll-l._lastScroll<500){return false}}l.focused=true;if(!l.isTouchDevice()&&l.focusable){l.host.focus()}if(n.target.id!=("listBoxContent"+l.element.id)&&l.itemswrapper[0]!=n.target){var r=n.target;var z=a(r).offset();var q=l.host.offset();if(c){var o=a.jqx.mobile.getLeftPos(r);var t=a.jqx.mobile.getTopPos(r);z.left=o;z.top=t;o=a.jqx.mobile.getLeftPos(l.element);t=a.jqx.mobile.getTopPos(l.element);q.left=o;q.top=t}var s=parseInt(z.top)-parseInt(q.top);var v=parseInt(z.left)-parseInt(q.left);var w=l._hitTest(v,s);if(w!=null&&!w.isGroup){var p=function(y,x){if(!l._shiftKey){l._clickedIndex=y.visibleIndex}if(!l.checkboxes){l.selectIndex(y.visibleIndex,false,true,false,"mouse",x)}else{v=20+x.pageX-z.left;if(l.rtl){var A=l.hScrollBar.css("visibility")!="hidden"?l.hScrollInstance.max:l.host.width();if(v<=l.host.width()-20){if(!l.allowDrag){l._updateItemCheck(y,y.visibleIndex);l.selectIndex(y.visibleIndex,false,true,false,"mouse",x)}else{setTimeout(function(){if(!l._dragItem){if(!d){l._updateItemCheck(y,y.visibleIndex);l.selectIndex(y.visibleIndex,false,true,false,"mouse",x)}}},200)}}}else{if(v+l.hScrollInstance.value>=20){if(!l.allowDrag){l._updateItemCheck(y,y.visibleIndex);l.selectIndex(y.visibleIndex,false,true,false,"mouse",x)}else{setTimeout(function(){if(!l._dragItem){if(!d){l._updateItemCheck(y,y.visibleIndex);l.selectIndex(y.visibleIndex,false,true,false,"mouse",x)}}},200)}}}}};if(!w.disabled){if(w.html.indexOf("href")!=-1){setTimeout(function(){p(w,n)},100)}else{p(w,n)}}}if(i=="mousedown"){var u=false;if(n.which){u=(n.which==3)}else{if(n.button){u=(n.button==2)}}if(u){return true}}}return true})}this.addHandler(this.content,"mouseup",function(n){l.vScrollInstance.handlemouseup(l,n);d=false});if(a.jqx.browser.msie){this.addHandler(this.content,"selectstart",function(n){return false})}var e=this.isTouchDevice();if(this.enableHover&&!e){this._mousemovefunc=function(n){if(e){return true}if(!l.enableHover){return true}var p=a.jqx.browser.msie==true&&a.jqx.browser.version<9?0:1;if(n.target==null){return true}if(l.disabled){return true}l.focused=true;var r=l.vScrollInstance.isScrolling();if(!r&&n.target.id!=("listBoxContent"+l.element.id)){if(l.itemswrapper[0]!=n.target){var t=n.target;var B=a(t).offset();var s=l.host.offset();if(c){var o=a.jqx.mobile.getLeftPos(t);var v=a.jqx.mobile.getTopPos(t);B.left=o;B.top=v;o=a.jqx.mobile.getLeftPos(l.element);v=a.jqx.mobile.getTopPos(l.element);s.left=o;s.top=v}var u=parseInt(B.top)-parseInt(s.top);var w=parseInt(B.left)-parseInt(s.left);var A=l._hitTest(w,u);if(A!=null&&!A.isGroup&&!A.disabled){var q=a.data(l.element,"hoveredItem");if(q!=null){a(q).removeClass(l.toThemeProperty("jqx-listitem-state-hover"));a(q).removeClass(l.toThemeProperty("jqx-fill-state-hover"))}a.data(l.element,"hoveredItem",A.element);var z=a(A.element);z.addClass(l.toThemeProperty("jqx-listitem-state-hover"));z.addClass(l.toThemeProperty("jqx-fill-state-hover"))}}}};this.addHandler(this.content,"mousemove",this._mousemovefunc)}},_arrange:function(y){if(y==undefined){y=true}var x=this;var s=null;var q=null;var j=x.filterable?x.filterHeight:0;var i=window.getComputedStyle(this.element);var n=parseInt(i.borderLeftWidth)*2;var d=i.boxSizing;if(this.element.offsetWidth===0){n=2}if(d==="border-box"||isNaN(n)){n=0}var m=function(h){h=x.host.height()-n;if(h==0){h=200;x.host.height(h)}return h};if(x.width!=null&&x.width.toString().indexOf("px")!=-1){s=x.width}else{if(x.width!=undefined&&!isNaN(x.width)){s=x.width}}if(x.height!=null&&x.height.toString().indexOf("px")!=-1){q=x.height}else{if(x.height!=undefined&&!isNaN(x.height)){q=x.height}}if(x.width!=null&&x.width.toString().indexOf("%")!=-1){x.host.css("width",x.width);s=x.host.width()}if(x.height!=null&&x.height.toString().indexOf("%")!=-1){x.host.css("height",x.height);q=m(q)}if(s!=null){s=parseInt(s)-n;if(parseInt(x.element.style.width)!=parseInt(x.width)){x.element.style.width=parseInt(s)+"px"}}if(!x.autoHeight){if(q!=null){q=parseInt(q);if(parseInt(x.element.style.height)!=parseInt(x.height)){x.host.height(x.height);m(q)}}}else{if(x.virtualSize){if(x.hScrollBar.css("visibility")!="hidden"){x.host.height(x.virtualSize.height+parseInt(x.scrollBarSize)+3);x.height=x.virtualSize.height+parseInt(x.scrollBarSize)+3;q=x.height}else{x.host.height(x.virtualSize.height);x.height=x.virtualSize.height;q=x.virtualSize.height}}}var c=x.scrollBarSize;if(isNaN(c)){c=parseInt(c);if(isNaN(c)){c="17px"}else{c=c+"px"}}c=parseInt(c);var p=4;var f=2;var g=1;if(x.vScrollBar){if(x.vScrollBar[0].style.visibility!="hidden"){g=c+p}else{g=0;x.vScrollInstance.setPosition(0)}}else{return}if(c==0){g=0;f=0}if(x.hScrollBar){if(x.hScrollBar[0].style.visibility!="hidden"){f=c+p}else{x.hScrollInstance.setPosition(0);f=0}}else{return}if(x.autoItemsHeight){x.hScrollBar[0].style.visibility="hidden";f=0}if(q==null){q=0}var t=parseInt(q)-p-c;if(t<0){t=0}if(parseInt(x.hScrollBar[0].style.height)!=c){if(parseInt(c)<0){c=0}x.hScrollBar[0].style.height=parseInt(c)+"px"}if(x.hScrollBar[0].style.top!=t+"px"){x.hScrollBar[0].style.top=t+"px";x.hScrollBar[0].style.left="0px"}var b=s-c-p;if(b<0){b=0}var o=b+"px";if(x.hScrollBar[0].style.width!=o){x.hScrollBar[0].style.width=o}if(g<=1){if(s>=2){x.hScrollBar[0].style.width=parseInt(s-2)+"px"}}if(c!=parseInt(x.vScrollBar[0].style.width)){x.vScrollBar[0].style.width=parseInt(c)+"px"}if((parseInt(q)-f)!=parseInt(x.vScrollBar[0].style.height)){var v=parseInt(q)-f;if(v<0){v=0}x.vScrollBar[0].style.height=v+"px"}if(s==null){s=0}var e=parseInt(s)-parseInt(c)-p+"px";if(this.host.css("box-sizing")==="border-box"){e=parseInt(e)-2+"px"}if(e!=x.vScrollBar[0].style.left){if(parseInt(e)>=0){x.vScrollBar[0].style.left=e}x.vScrollBar[0].style.top="0px"}var l=x.vScrollInstance;l.disabled=x.disabled;if(y){l._arrange()}var r=x.hScrollInstance;r.disabled=x.disabled;if(y){r._arrange()}if((x.vScrollBar[0].style.visibility!="hidden")&&(x.hScrollBar[0].style.visibility!="hidden")){x.bottomRight[0].style.visibility="inherit";x.bottomRight[0].style.left=1+parseInt(x.vScrollBar[0].style.left)+"px";x.bottomRight[0].style.top=1+parseInt(x.hScrollBar[0].style.top)+"px";if(x.rtl){x.bottomRight.css({left:0})}x.bottomRight[0].style.width=parseInt(c)+3+"px";x.bottomRight[0].style.height=parseInt(c)+3+"px"}else{x.bottomRight[0].style.visibility="hidden"}if(parseInt(x.content[0].style.width)!=(parseInt(s)-g)){var k=parseInt(s)-g;if(k<0){k=0}x.content[0].style.width=k+"px"}if(x.rtl){x.vScrollBar.css({left:0+"px",top:"0px"});x.hScrollBar.css({left:x.vScrollBar.width()+2+"px"});if(x.vScrollBar[0].style.visibility!="hidden"){x.content.css("margin-left",4+x.vScrollBar.width())}else{x.content.css("margin-left",0);x.hScrollBar.css({left:"0px"})}if(x.filterable&&x.filterInput){x.filterInput.css({left:x.vScrollBar.width()+6+"px"})}}if(parseInt(x.content[0].style.height)!=(parseInt(q)-f)){var u=parseInt(q)-f;if(u<0){u=0}x.content[0].style.height=u+"px";x.content[0].style.top="0px"}if(j>0){x.content[0].style.top=j+"px";x.content[0].style.height=parseInt(x.content[0].style.height)-j+"px"}if(x.filterable){x.filterInput[0].style.height=(j-6)+"px";x.filterInput[0].style.top="3px";if(!x.rtl){x.filterInput[0].style.left=parseInt(x.content.css("left"))+3+"px"}x.filterInput[0].style.width=parseInt(x.content.css("width"))-7+"px";x.filter[0].style.display="block"}else{x.filter[0].style.display="none"}if(x.overlayContent){x.overlayContent.width(parseInt(s)-g);x.overlayContent.height(parseInt(q)-f)}},ensureVisible:function(i,j){if(isNaN(i)){var m=this.getItemByValue(i);if(m){i=m.index}}var f=this.isIndexInView(i);if(!f){if(i<0){return}if(this.autoHeight){var g=a.data(this.vScrollBar[0],"jqxScrollBar").instance;g.setPosition(0)}else{for(var h=0;h<this.visibleItems.length;h++){var m=this.visibleItems[h];if(m.visibleIndex==i&&!m.isGroup){var g=a.data(this.vScrollBar[0],"jqxScrollBar").instance;var l=g.value;var b=!this.filterable?0:this.filterHeight+2;var e=this.hScrollBar.css("visibility")==="hidden";var d=e?0:this.scrollBarSize+4;if(m.initialTop<l){g.setPosition(m.initialTop);if(h==0){g.setPosition(0)}}else{if(m.initialTop+m.height>l+this.host.height()-b){var c=this.host.height();if(this.filterable){g.setPosition(this.filterHeight+2+m.initialTop+m.height+2-c+d)}else{g.setPosition(m.initialTop+m.height+2-c+d);if(h===this.visibleItems.length-1){g.setPosition(g.max)}}if(j){var l=g.value;var k=m.initialTop;if(this.filterable){k=this.filterHeight+2+m.initialTop}if(l+c<g.max){g.setPosition(k)}}}}break}}}}else{if(j){for(var h=0;h<this.visibleItems.length;h++){var m=this.visibleItems[h];if(m.visibleIndex==i&&!m.isGroup){var l=this.vScrollInstance.value;var k=m.initialTop;if(this.filterable){k=this.filterHeight+2+m.initialTop}if(l+this.host.height()<this.vScrollInstance.max){this.vScrollInstance.setPosition(k)}}}}}this._renderItems()},scrollTo:function(c,b){if(this.vScrollBar.css("visibility")!="hidden"){this.vScrollInstance.setPosition(b)}if(this.hScrollBar.css("visibility")!="hidden"){this.hScrollInstance.setPosition(c)}},scrollDown:function(){if(this.vScrollBar.css("visibility")=="hidden"){return false}var b=this.vScrollInstance;if(b.value+b.largestep<=b.max){b.setPosition(b.value+b.largestep);return true}else{b.setPosition(b.max);return true}return false},scrollUp:function(){if(this.vScrollBar.css("visibility")=="hidden"){return false}var b=this.vScrollInstance;if(b.value-b.largestep>=b.min){b.setPosition(b.value-b.largestep);return true}else{if(b.value!=b.min){b.setPosition(b.min);return true}}return false},databind:function(b,d){this.records=new Array();var f=b._source?true:false;var c=new a.jqx.dataAdapter(b,{autoBind:false});if(f){c=b;b=b._source}var e=function(k){if(b.type!=undefined){c._options.type=b.type}if(b.formatdata!=undefined){c._options.formatData=b.formatdata}if(b.contenttype!=undefined){c._options.contentType=b.contenttype}if(b.async!=undefined){c._options.async=b.async}};var h=function(q,r){var s=function(w){var D=null;if(typeof w==="string"){var z=w;var A=w;var C=""}else{if(q.displayMember!=undefined&&q.displayMember!=""){var A=w[q.valueMember];var z=w[q.displayMember]}}var C="";if(q.groupMember){C=w[q.groupMember]}else{if(w&&w.group!=undefined){C=w.group}}if(q.searchMember){D=w[q.searchMember]}else{if(w&&w.searchLabel!=undefined){D=w.searchLabel}}if(!q.valueMember&&!q.displayMember){if(a.type(w)=="string"){z=A=w.toString()}}if(w&&w.label!=undefined){var z=w.label}if(w&&w.value!=undefined){var A=w.value}var B=false;if(w&&w.checked!=undefined){B=w.checked}var v="";if(w&&w.html!=undefined){v=w.html}var t=true;if(w&&w.visible!=undefined){t=w.visible}var u=false;if(w&&w.disabled!=undefined){u=w.disabled}var y=false;if(w&&w.hasThreeStates!=undefined){y=w.hasThreeStates}var x={};x.label=z;x.value=A;x.searchLabel=D;x.html=v;x.visible=t;x.originalItem=w;x.group=C;x.groupHtml="";x.disabled=u;x.checked=B;x.hasThreeStates=y;return x};if(r!=undefined){var k=c._changedrecords[0];if(k){a.each(c._changedrecords,function(){var t=this.index;var u=this.record;if(r!="remove"){var v=s(u)}switch(r){case"update":q.updateAt(v,t);break;case"add":q.insertAt(v,t);break;case"remove":q.removeAt(t);break}});return}}q.records=c.records;var m=q.records.length;var p=new Array();for(var l=0;l<m;l++){var n=q.records[l];var o=s(n);o.index=l;p[l]=o}q.items=q.loadItems(p,true);q._render();q._raiseEvent("6")};e(this);var i=this;switch(b.datatype){case"local":case"array":default:if(b.localdata!=null||a.isArray(b)){c.unbindBindingUpdate(this.element.id);if(this.autoBind||(!this.autoBind&&!d)){c.dataBind()}h(this);c.bindBindingUpdate(this.element.id,function(k){h(i,k)})}break;case"json":case"jsonp":case"xml":case"xhtml":case"script":case"text":case"csv":case"tab":if(b.localdata!=null){c.unbindBindingUpdate(this.element.id);if(this.autoBind||(!this.autoBind&&!d)){c.dataBind()}h(this);c.bindBindingUpdate(this.element.id,function(){h(i)});return}var j={};if(c._options.data){a.extend(c._options.data,j)}else{if(b.data){a.extend(j,b.data)}c._options.data=j}var g=function(){h(i)};c.unbindDownloadComplete(i.element.id);c.bindDownloadComplete(i.element.id,g);if(this.autoBind||(!this.autoBind&&!d)){c.dataBind()}}},loadItems:function(m,o){if(m==null){this.groups=new Array();this.items=new Array();this.visualItems=new Array();return}var t=this;var k=0;var d=0;var b=0;this.groups=new Array();this.items=new Array();this.visualItems=new Array();var e=new Array();this.itemsByValue=new Array();a.map(m,function(x){if(x==undefined){return null}var j=new a.jqx._jqxListBox.item();var y=x.group;var i=x.groupHtml;var z=x.title;var v=null;if(t.searchMember){v=x[t.searchMember]}else{if(x&&x.searchLabel!=undefined){v=x.searchLabel}}if(z==null||z==undefined){z=""}if(y==null||y==undefined){y=""}if(t.groupMember){y=x[t.groupMember]}if(i==null||i==undefined){i=""}if(!t.groups[y]){t.groups[y]={items:new Array(),index:-1,caption:y,captionHtml:i};k++;var u=k+"jqxGroup";t.groups[u]=t.groups[y];d++;t.groups.length=d}var w=t.groups[y];w.index++;w.items[w.index]=j;if(typeof x==="string"){j.label=x;j.value=x;if(arguments.length>1&&arguments[1]&&a.type(arguments[1])=="string"){j.label=x;j.value=arguments[1]}}else{if(x.label==null&&x.value==null&&x.html==null&&x.group==null&&x.groupHtml==null){j.label=x.toString();j.value=x.toString()}else{j.label=x.label;j.value=x.value;if(j.label===undefined){j.label=x.value}if(j.value===undefined){j.value=x.label}}}if(typeof x!="string"){if(x.label===undefined){if(t.displayMember!=""){if(x[t.displayMember]!=undefined){j.label=x[t.displayMember]}else{j.label=""}}}if(x.value===undefined){if(t.valueMember!=""){j.value=x[t.valueMember]}}}j.hasThreeStates=x.hasThreeStates!=undefined?x.hasThreeStates:true;j.originalItem=x;if(o){j.originalItem=x.originalItem}j.title=z;if(z&&j.value===undefined&&j.label===undefined){j.value=j.label=z}j.html=x.html||"";if(x.html&&x.html!=""){if(z&&z!=""){}}if(typeof j.label==="string"){}j.group=y;j.checked=x.checked||false;j.groupHtml=x.groupHtml||"";j.disabled=x.disabled||false;j.visible=x.visible!=undefined?x.visible:true;j.searchLabel=v;j.index=b;e[b]=j;b++;return j});var c=new Array();var p=0;if(this.fromSelect==undefined||this.fromSelect==false){for(var h=0;h<d;h++){var k=h+1;var n=k+"jqxGroup";var r=this.groups[n];if(r==undefined||r==null){break}if(h==0&&r.caption==""&&r.captionHtml==""&&d<=1){for(var g=0;g<r.items.length;g++){var q=r.items[g].value;if(r.items[g].value==undefined||r.items[g].value==null){q=g}this.itemsByValue[a.trim(q).split(" ").join("?")]=r.items[g]}return r.items}else{var l=new a.jqx._jqxListBox.item();l.isGroup=true;l.label=r.caption;if(r.caption==""&&r.captionHtml==""){r.caption=this.emptyGroupText;l.label=r.caption}l.html=r.captionHtml;c[p]=l;p++}for(var f=0;f<r.items.length;f++){c[p]=r.items[f];var q=r.items[f].value;if(r.items[f].value==""||r.items[f].value==null){q=p}t.itemsByValue[a.trim(q).split(" ").join("?")]=r.items[f];p++}}}else{var p=0;var s=new Array();a.each(e,function(){if(!s[this.group]){if(this.group!=""){var i=new a.jqx._jqxListBox.item();i.isGroup=true;i.label=this.group;c[p]=i;p++;s[this.group]=true}}c[p]=this;var j=this.value;if(this.value==""||this.value==null){j=p-1}t.itemsByValue[a.trim(j).split(" ").join("?")]=this;p++})}return c},_mapItem:function(c){var b=new a.jqx._jqxListBox.item();if(this.displayMember){if(c.label==undefined){c.label=c[this.displayMember]}if(c.value==undefined){c.value=c[this.valueMember]}}if(typeof c==="string"){b.label=c;b.value=c}else{if(typeof c==="number"){b.label=c.toString();b.value=c.toString()}else{b.label=c.label!==undefined?c.label:c.value;b.value=c.value!==undefined?c.value:c.label}}if(b.label==undefined&&b.value==undefined&&b.html==undefined){b.label=b.value=c}b.html=c.html||"";b.group=c.group||"";b.checked=c.checked||false;b.title=c.title||"";b.groupHtml=c.groupHtml||"";b.disabled=c.disabled||false;b.visible=c.visible||true;return b},addItem:function(b){return this.insertAt(b,this.items?this.items.length:0)},_getItemByParam:function(c){if(c!=null){if(c.index==undefined){var b=this.getItemByValue(c);if(b){c=b}}}return c},insertItem:function(d,b){var c=this._getItemByParam(d);return this.insertAt(c,b)},updateItem:function(c,d){var b=this._getItemByParam(d);if(b&&b.index!=undefined){return this.updateAt(c,b.index)}return false},updateAt:function(d,c){if(d!=null){var b=this._mapItem(d);this.itemsByValue[a.trim(b.value).split(" ").join("?")]=this.items[c];this.items[c].value=b.value;this.items[c].label=b.label;this.items[c].html=b.html;this.items[c].disabled=b.disabled;this._raiseEvent("9",{item:this.items[c]})}this._cachedItemHtml=[];this._renderItems();if(this.rendered){this.rendered()}},insertAt:function(l,f){if(l==null){return false}this._cachedItemHtml=[];if(this.items==undefined||this.items.length==0){this.source=new Array();this.refresh();var g=this._mapItem(l);g.index=0;this.items[this.items.length]=g;this._addItems(true);this._renderItems();if(this.rendered){this.rendered()}if(this.allowDrag&&this._enableDragDrop){this._enableDragDrop()}var k=g.value;if(g.value==""||g.value==null){k=f}this.itemsByValue[a.trim(k).split(" ").join("?")]=g;return false}var g=this._mapItem(l);if(f==-1||f==undefined||f==null||f>=this.items.length){g.index=this.items.length;this.items[this.items.length]=g}else{var c=new Array();var j=0;var e=false;var h=0;for(var b=0;b<this.items.length;b++){if(this.items[b].isGroup==false){if(h>=f&&!e){c[j++]=g;g.index=f;h++;e=true}}c[j]=this.items[b];if(!this.items[b].isGroup){c[j].index=h;h++}j++}this.items=c}var k=g.value;if(g.value==""||g.value==null){k=f}this.itemsByValue[a.trim(k).split(" ").join("?")]=g;this.visibleItems=new Array();this.renderedVisibleItems=new Array();var d=a.data(this.vScrollBar[0],"jqxScrollBar").instance;var i=d.value;d.setPosition(0);if((this.allowDrag&&this._enableDragDrop)||(this.virtualSize&&this.virtualSize.height<10+this.host.height())){this._addItems(true)}else{this._addItems(false)}if(this.groups.length>1){}this._renderItems();if(this.allowDrag&&this._enableDragDrop){this._enableDragDrop()}d.setPosition(i);this._raiseEvent("7",{item:g});if(this.rendered){this.rendered()}return true},removeAt:function(j){if(j<0||j>this.items.length-1){return false}if(j==undefined){return false}var d=this.items[j].height;var q=this.items[j].value;if(q==""||q==null){q=j}this.itemsByValue[a.trim(q).split(" ").join("?")]=null;var k=this.items[j];if(this.groups.length>1){var h=new Array();for(var c=0;c<this.items.length;c++){if(!this.items[c].isGroup){h.push({item:this.items[c],key:c})}}if(h[j]){this.items.splice(h[j].key,1)}else{return false}}else{this.items.splice(j,1)}var l=0;var p=-1;for(var g=0;g<this.items.length;g++){var s=this.items[g];if(s.isGroup){l=0;p=g}else{if(p>=0){l++}}}if(l===0&&p>=0){this.items.splice(p,1)}var b=new Array();var o=0;var f=false;var m=0;for(var c=0;c<this.items.length;c++){b[o]=this.items[c];if(!this.items[c].isGroup){b[o].index=m;m++}o++}this.items=b;var e=a.data(this.vScrollBar[0],"jqxScrollBar").instance;var e=a.data(this.vScrollBar[0],"jqxScrollBar").instance;var n=e.value;e.setPosition(0);this.visibleItems=new Array();this.renderedVisibleItems=new Array();if(this.items.length>0){if(this.virtualSize){this.virtualSize.height-=d;var r=this.virtualSize.itemsPerPage*2;if(this.autoHeight){r=this.items.length}this.virtualItemsCount=Math.min(r,this.items.length)}this._updatescrollbars()}else{this._addItems()}this._renderItems();if(this.allowDrag&&this._enableDragDrop){this._enableDragDrop()}if(this.vScrollBar.css("visibility")!="hidden"){e.setPosition(n)}else{e.setPosition(0)}this.itemsByValue=new Array();for(var g=0;g<this.items.length;g++){var q=this.items[g].value;if(this.items[g].value==""||this.items[g].value==null){q=g}this.itemsByValue[a.trim(q).split(" ").join("?")]=this.items[g]}this._raiseEvent("8",{item:k});if(this.items.length===0){this.selectedIndex=-1;this.selectedValue=null;this._updateInputSelection()}if(this.rendered){this.rendered()}return true},removeItem:function(e,f){var d=this._getItemByParam(e);var b=-1;if(d&&d.index!=undefined&&f!==true){for(var c=0;c<this.items.length;c++){if(this.items[c].label==d.label&&this.items[c].value==d.value){b=c;break}}if(b!=-1){return this.removeAt(b)}}if(b==-1){return this.removeAt(d.index)}},getItems:function(){return this.items},disableItem:function(c){var b=this._getItemByParam(c);this.disableAt(b.index)},enableItem:function(c){var b=this._getItemByParam(c);this.enableAt(b.index)},disableAt:function(b){if(!this.items){return false}if(b<0||b>this.items.length-1){return false}this.items[b].disabled=true;this._renderItems();return true},enableAt:function(b){if(!this.items){return false}if(b<0||b>this.items.length-1){return false}this.items[b].disabled=false;this._renderItems();return true},destroy:function(){if(this.source&&this.source.unbindBindingUpdate){this.source.unbindBindingUpdate(this.element.id)}this._removeHandlers();this.vScrollBar.jqxScrollBar("destroy");this.hScrollBar.jqxScrollBar("destroy");this.vScrollBar.remove();this.hScrollBar.remove();this.content.remove();a.jqx.utilities.resize(this.host,null,true);var b=a.data(this.element,"jqxListBox");delete this.hScrollInstance;delete this.vScrollInstance;delete this.vScrollBar;delete this.hScrollBar;delete this.content;delete this.bottomRight;delete this.itemswrapper;delete this.visualItems;delete this.visibleItems;delete this.items;delete this.groups;delete this.renderedVisibleItems;delete this._mousewheelfunc;delete this._mousemovefunc;delete this._cachedItemHtml;delete this.itemsByValue;delete this._activeElement;delete this.source;delete this.events;if(this.input){this.input.remove();delete this.input}if(b){delete b.instance}this.host.removeData();this.host.removeClass();this.host.remove();this.element=null;delete this.element;this.host=null;delete this.set;delete this.get;delete this.call;delete this.host},_raiseEvent:function(g,c){if(this._stopEvents==true){return true}if(c==undefined){c={owner:null}}var d=this.events[g];var e=c;e.owner=this;this._updateInputSelection();var f=new a.Event(d);f.owner=this;f.args=e;if(this.host!=null){var b=this.host.trigger(f)}return b}})})(jqxBaseFramework);(function(a){a.jqx.parseSourceTag=function(c){var t=new Array();var f=a(c).find("option");var C=a(c).find("optgroup");var s=false;if(f.length===0){f=a(c).find("li");if(f.length>0){s=true}}if(f.length===0){var D=[];var q=a(c).find("tr");var d=a(c).find("th");var A=0;if(d.length===0&&q.length>0){d=a(q[0]).find("td");A=1}var v=[];var B=[];var D=[];for(var x=0;x<q.length;x++){var m=q[x];var h={};if(x===A+1){B=[]}for(var w=0;w<d.length;w++){var g=a.trim(a(d[w]).text());var b=a(m).find("td:eq("+w+")");h[g]=a.trim(b.text());if(x===A){v.push({text:g,dataField:g});B.push({name:g})}if(x===A+1){var e=typeof h[g];var z="";if(e==="string"){if(h[g]==="true"||h[g]==="false"){e="bool"}else{if(!isNaN(parseFloat(h[g]))&&h[g].indexOf("-")===-1&&h[g].indexOf("/")===-1){e="number";if(h[g].indexOf(".")>=0){z="f"}else{z="n"}}else{if(h[g].indexOf("$")>=0||h[g].indexOf("%")>=0){e="number";if(h[g].indexOf("$")>=0){z="c"}if(h[g].indexOf("%")>=0){z="p"}h[g]=h[g].replace("%","").replace("$","")}else{if(new Date(h[g]).toString()!=="Invalid Date"){e="date";z="d"}}}}}v[w].cellsformat=z;if(e==="number"){v[w].cellsalign="right";v[w].align="right"}B.push({name:g,type:e})}}if(x>=1){D[D.length]=h}}var u={localdata:D,datatype:"array",datafields:B};return{source:new a.jqx.dataAdapter(u),columns:v}}var o=null;var l=0;var o=-1;var n=this;var y=new Array();a.each(f,function(j){var E=C.find(this).length>0;var G=null;if(this.text!=null&&(this.label==null||this.label=="")){this.label=this.text}if(s===true){this.label=a(this).text().trim();this.selected=a(this).attr("data-selected");this.checked=this.selected;this.value=a(this).attr("data-value")||j;this.disabled=a(this).attr("disabled")}var F={style:this.style.cssText,selected:this.selected,html:this.innerHTML.trim(),classes:this.className,disabled:this.disabled,value:this.value,label:this.label,title:this.title,originalItem:this};var i=a.jqx.browser.msie&&a.jqx.browser.version<8;if(i&&!s){if(F.value==""&&this.text!=null&&this.text.length>0){F.value=this.text}}if(E){G=C.find(this).parent()[0].label;F.group=G;if(!y[G]){y[G]=new Array();y.length++}y[G].push(F)}if(this.selected){o=j}F.checked=this.selected;if(F.label!==undefined){t.push(F)}});if(y.length>0){var p=new Array();for(var r in y){if(r==="indexOf"){continue}var k=null;for(var x=0;x<C.length;x++){if(r===C[x].label||C[x].text){k=C[x];break}}a.each(y[r],function(i,j){if(this.label!==undefined){p.push(this)}})}}if(p&&p.length>0){return{items:p,index:o}}else{return{items:t,index:o}}};a.jqx._jqxListBox.item=function(){var b={group:"",groupHtml:"",selected:false,isGroup:false,highlighted:false,value:null,label:"",html:null,visible:true,disabled:false,element:null,width:null,height:null,initialTop:null,top:null,left:null,title:"",index:-1,checkBoxElement:null,originalItem:null,checked:false,visibleIndex:-1};return b}})(jqxBaseFramework)})();
/***/ }),
/***/ 7908:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxMenu","",{});a.extend(a.jqx._jqxMenu.prototype,{defineInstance:function(){var b={items:new Array(),mode:"horizontal",width:null,height:null,minimizeWidth:"auto",easing:"easeInOutSine",animationShowDuration:200,animationHideDuration:200,autoCloseInterval:0,animationHideDelay:100,animationShowDelay:10,menuElements:new Array(),autoSizeMainItems:false,autoCloseOnClick:true,autoCloseOnMouseLeave:true,enableRoundedCorners:true,disabled:false,autoOpenPopup:true,enableHover:true,autoOpen:true,autoGenerate:true,clickToOpen:false,showTopLevelArrows:false,touchMode:"auto",source:null,popupZIndex:1000,rtl:false,keyboardNavigation:false,lockFocus:false,title:"",events:["shown","closed","itemclick","initialized","open","close"]};if(this===a.jqx._jqxMenu.prototype){return b}a.extend(true,this,b);return b},createInstance:function(c){var b=this;this.host.attr("role","menubar");a.jqx.utilities.resize(this.host,function(){b.refresh()},false,this.mode!="popup");if(this.minimizeWidth!="auto"&&this.minimizeWidth!=null&&this.width&&this.width.toString().indexOf("%")==-1){a(window).resize(function(){b.refresh()})}if(b.isMaterialized()){var g=window.getComputedStyle(this.element);var f=g.getPropertyValue("--jqx-dropdown-animation");if(f){this.animationType=f.trim();if(this.animationType==="transform"){this.animationShowDuration=0;this.animationHideDuration=0;this.animationShowDelay=0}}}this.host.css("outline","none");if(this.source){if(this.source!=null){var d=this.loadItems(this.source);this.element.innerHTML=d}}this._tmpHTML=this.element.innerHTML;if(this.element.innerHTML.indexOf("UL")){var e=this.host.find("ul:first");if(e.length>0){this._createMenu(e[0])}}this.host.data("autoclose",{});this._render();this._setSize();if(a.jqx.browser.msie&&a.jqx.browser.version<8){this.host.attr("hideFocus",true)}},focus:function(){try{if(this.mode==="popup"&&this.keyboardNavigation){var d=this.host.closest("div.jqx-menu-wrapper");d.focus()}if(this.keyboardNavigation){this.host.focus();var c=this;var e=function(){if(!a.jqx.isHidden(a(c.items[0].element))){a(c.items[0].element).addClass(c.toThemeProperty("jqx-fill-state-focus"));c.activeItem=c.items[0]}else{var f=c._nextVisibleItem(c.items[0],0);if(f){a(f.element).addClass(c.toThemeProperty("jqx-fill-state-focus"));c.activeItem=f}}};if(!this.activeItem){e()}else{if(!a.jqx.isHidden(a(this.activeItem.element))){a(this.activeItem.element).addClass(this.toThemeProperty("jqx-fill-state-focus"))}else{a(this.activeItem.element).removeClass(this.toThemeProperty("jqx-fill-state-focus"));e()}}}}catch(b){}},loadItems:function(c,e){if(c==null){return}if(c.length==0){return""}var b=this;this.items=new Array();var d='<ul class="jqx-menu-ul">';if(e){d='<ul class="jqx-menu-ul" style="width:'+e+';">'}a.map(c,function(f){if(f==undefined){return null}d+=b._parseItem(f)});d+="</ul>";return d},_parseItem:function(f){var c="";if(f==undefined){return null}var b=f.label;if(!f.label&&f.html){b=f.html}if(!b){b="Item"}if(typeof f==="string"){b=f}var e=false;if(f.selected!=undefined&&f.selected){e=true}var d=false;if(f.disabled!=undefined&&f.disabled){d=true}c+="<li";if(d){c+=' item-disabled="true" '}if(f.label&&!f.html){c+=' item-label="'+b+'" '}if(f.value!=null){c+=' item-value="'+f.value+'" '}if(f.id!=undefined){c+=' id="'+f.id+'" '}c+=">"+b;if(f.items){if(f.subMenuWidth){c+=this.loadItems(f.items,f.subMenuWidth)}else{c+=this.loadItems(f.items)}}c+="</li>";return c},_setSize:function(){if(this.width!=null&&this.width.toString().indexOf("%")!=-1){this.host.width(this.width)}else{if(this.width!=null&&this.width.toString().indexOf("px")!=-1){this.host.width(this.width)}else{if(this.width!=undefined&&!isNaN(this.width)){this.host.width(this.width)}}}if(this.height!=null&&this.height.toString().indexOf("%")!=-1){this.host.height(this.height)}else{if(this.height!=null&&this.height.toString().indexOf("px")!=-1){this.host.height(this.height)}else{if(this.height!=undefined&&!isNaN(this.height)){this.host.height(this.height)}}}if(this.height===null){this.host.height("auto")}var g=this;if(this.minimizeWidth!=null&&this.mode!="popup"){var f=a(window).width();if(!a.jqx.response){var e=false;if(navigator.userAgent.match(/Windows|Linux|MacOS/)){var b=navigator.userAgent.indexOf("Windows Phone")>=0||navigator.userAgent.indexOf("WPDesktop")>=0||navigator.userAgent.indexOf("IEMobile")>=0||navigator.userAgent.indexOf("ZuneWP7")>=0;if(!b){e=true}}var c=this.minimizeWidth;if(e&&this.minimizeWidth=="auto"){return}}if(this.minimizeWidth=="auto"&&a.jqx.response){var d=new a.jqx.response();if(d.device.type=="Phone"||d.device.type=="Tablet"){if(!this.minimized){this.minimize()}}}else{if((f<c)&&!this.minimized){this.minimize()}else{if(this.minimized&&f>=c){this.restore()}}}}},minimize:function(){if(this.minimized){return}var e=this;this.host.addClass(this.toThemeProperty("jqx-menu-minimized"));this.minimized=true;this._tmpMode=this.mode;this.mode="simple";var h=this.host.closest("div.jqx-menu-wrapper");h.remove();a("#menuWrapper"+this.element.id).remove();a.each(this.items,function(){var k=this;var j=a(k.element);var i=a(k.subMenuElement);var l=i.closest("div.jqx-menu-popup");l.remove()});if(this.source){var d=this.loadItems(this.source);this.element.innerHTML=d;this._tmpHTML=this.element.innerHTML}this.element.innerHTML=this._tmpHTML;if(this.element.innerHTML.indexOf("UL")){var g=this.host.find("ul:first");if(g.length>0){this._createMenu(g[0])}}this._render();var c=this.host.find("ul:first");c.wrap('<div class="jqx-menu-wrapper" style="z-index:'+this.popupZIndex+'; padding: 0px; display: none; margin: 0px; height: auto; width: auto; position: absolute; top: 0; left: 0; display: block; visibility: visible;"></div>');var h=c.closest("div.jqx-menu-wrapper");h[0].id="menuWrapper"+this.element.id;h.detach();h.appendTo(a(document.body));h.addClass(this.toThemeProperty("jqx-widget"));h.addClass(this.toThemeProperty("jqx-menu"));h.addClass(this.toThemeProperty("jqx-menu-minimized"));h.addClass(this.toThemeProperty("jqx-widget-header"));c.children().hide();h.hide();h.find("ul").addClass(this.toThemeProperty("jqx-menu-ul-minimized"));this.minimizedItem=a("<div></div>");this.minimizedItem.addClass(this.toThemeProperty("jqx-item"));this.minimizedItem.addClass(this.toThemeProperty("jqx-menu-item-top"));this.addHandler(h,"keydown",function(i){return e.handleKeyDown(i)});this.minimizedItem.addClass(this.toThemeProperty("jqx-menu-minimized-button"));this.minimizedItem.prependTo(this.host);this.titleElement=a("<div>"+this.title+"</div>");this.titleElement.addClass(this.toThemeProperty("jqx-item"));this.titleElement.addClass(this.toThemeProperty("jqx-menu-title"));this.titleElement.prependTo(this.host);a("<div style='clear:both;'></div>").insertAfter(this.minimizedItem);e.minimizedHidden=true;var b=function(j){e.minimizedHidden=true;e.minimizedItem.show();var i=false;if(e.minimizedItem.css("float")=="right"){i=true}h.animate({left:!i?-h.outerWidth():e.host.coord().left+e.host.width()+h.width(),opacity:0},e.animationHideDuration,function(){h.find("ul:first").children().hide();h.hide()})};var f=function(k){if(e.minimizedHidden){h.find("ul:first").children().show();e.minimizedHidden=false;h.show();h.css("opacity",0);h.css("left",-h.outerWidth());var j=false;var i=h.width();if(e.minimizedItem.css("float")=="right"){h.css("left",e.host.coord().left+e.host.width()+i);j=true}h.css("top",e.host.coord().top+e.host.height());h.animate({left:!j?e.host.coord().left:e.host.coord().left+e.host.width()-i,opacity:0.95},e.animationShowDuration,function(){})}else{b(k)}e._raiseEvent("2",{type:"mouse",item:e.minimizedItem[0],event:k});e._setSize()};this.addHandler(a(window),"orientationchange.jqxmenu"+this.element.id,function(i){setTimeout(function(){if(!e.minimizedHidden){var j=h.width();var k=false;var j=h.width();if(e.minimizedItem.css("float")=="right"){k=true}h.css("top",e.host.coord().top+e.host.height());h.css({left:!k?e.host.coord().left:e.host.coord().left+e.host.width()-j})}},25)});this.addHandler(this.minimizedItem,"click",function(i){f(i)})},restore:function(){if(!this.minimized){return}this.host.find("ul").removeClass(this.toThemeProperty("jqx-menu-ul-minimized"));this.host.removeClass(this.toThemeProperty("jqx-menu-minimized"));this.minimized=false;this.mode=this._tmpMode;if(this.minimizedItem){this.minimizedItem.remove()}var d=a("#menuWrapper"+this.element.id);d.remove();if(this.source){var b=this.loadItems(this.source);this.element.innerHTML=b;this._tmpHTML=b}this.element.innerHTML=this._tmpHTML;if(this.element.innerHTML.indexOf("UL")){var c=this.host.find("ul:first");if(c.length>0){this._createMenu(c[0])}}this._setSize();this._render()},isTouchDevice:function(){if(this._isTouchDevice!=undefined){return this._isTouchDevice}var b=a.jqx.mobile.isTouchDevice();if(this.touchMode==true){b=true}else{if(this.touchMode==false){b=false}}if(b){this.host.addClass(this.toThemeProperty("jqx-touch"));a(".jqx-menu-item").addClass(this.toThemeProperty("jqx-touch"))}this._isTouchDevice=b;return b},refresh:function(b){if(!b){this._setSize()}},resize:function(c,b){this.width=c;this.height=b;this.refresh()},_closeAll:function(f){var d=f!=null?f.data:this;var b=d.items;a.each(b,function(){var e=this;if(e.hasItems==true){if(e.isOpen){d._closeItem(d,e)}}});if(d.mode=="popup"){if(f!=null){var c=d._isRightClick(f);if(!c){d.close()}}}},closeItem:function(e){if(e==null){return false}var b=e;var c=document.getElementById(b);var d=this;a.each(d.items,function(){var f=this;if(f.isOpen==true&&f.element==c){d._closeItem(d,f);if(f.parentId){}}});return true},openItem:function(e){if(e==null){return false}var b=e;var c=document.getElementById(b);var d=this;a.each(d.items,function(){var f=this;if(f.isOpen==false&&f.element==c){d._openItem(d,f);if(f.parentId){d.openItem(f.parentId)}}});return true},_getClosedSubMenuOffset:function(c){var b=a(c.subMenuElement);var f=-b.outerHeight();var e=-b.outerWidth();var d=c.level==0&&this.mode=="horizontal";if(d){e=0}else{f=0}switch(c.openVerticalDirection){case"up":case"center":f=b.outerHeight();break}switch(c.openHorizontalDirection){case this._getDir("left"):if(d){e=0}else{e=b.outerWidth()}break;case"center":if(d){e=0}else{e=b.outerWidth()}break}return{left:e,top:f}},_closeItem:function(l,o,g,c){if(l==null||o==null){return false}var j=a(o.subMenuElement);var b=o.level==0&&this.mode=="horizontal";var f=this._getClosedSubMenuOffset(o);var m=f.top;var e=f.left;var i=a(o.element);var k=j.closest("div.jqx-menu-popup");if(k!=null){k.removeClass("show");var h=l.animationHideDelay;if(c==true){h=0}if(j.data("timer")&&j.data("timer").show!=null){clearTimeout(j.data("timer").show);j.data("timer").show=null}var n=function(){o.isOpen=false;if(b){j.stop().animate({top:m},l.animationHideDuration,function(){a(o.element).removeClass(l.toThemeProperty("jqx-fill-state-pressed"));a(o.element).removeClass(l.toThemeProperty("jqx-menu-item-top-selected"));a(o.element).removeClass(l.toThemeProperty("jqx-rc-b-expanded"));k.removeClass(l.toThemeProperty("jqx-rc-t-expanded"));var p=a(o.arrow);if(p.length>0&&l.showTopLevelArrows){p.removeClass();if(o.openVerticalDirection=="down"){p.addClass(l.toThemeProperty("jqx-menu-item-arrow-down"));p.addClass(l.toThemeProperty("jqx-icon-arrow-down"))}else{p.addClass(l.toThemeProperty("jqx-menu-item-arrow-up"));p.addClass(l.toThemeProperty("jqx-icon-arrow-up"))}}a.jqx.aria(a(o.element),"aria-expanded",false);k.css({display:"none"});if(l.animationHideDuration==0){j.css({top:m})}l._raiseEvent("1",o)})}else{if(!a.jqx.browser.msie){}j.stop().animate({left:e},l.animationHideDuration,function(){if(l.animationHideDuration==0){j.css({left:e})}if(o.level>0){a(o.element).removeClass(l.toThemeProperty("jqx-fill-state-pressed"));a(o.element).removeClass(l.toThemeProperty("jqx-menu-item-selected"));var p=a(o.arrow);if(p.length>0){p.removeClass();if(o.openHorizontalDirection!="left"){p.addClass(l.toThemeProperty("jqx-menu-item-arrow-"+l._getDir("right")));p.addClass(l.toThemeProperty("jqx-icon-arrow-"+l._getDir("right")))}else{p.addClass(l.toThemeProperty("jqx-menu-item-arrow-"+l._getDir("left")));p.addClass(l.toThemeProperty("jqx-icon-arrow-"+l._getDir("left")))}}}else{a(o.element).removeClass(l.toThemeProperty("jqx-fill-state-pressed"));a(o.element).removeClass(l.toThemeProperty("jqx-menu-item-top-selected"));var p=a(o.arrow);if(p.length>0){p.removeClass();if(o.openHorizontalDirection!="left"){p.addClass(l.toThemeProperty("jqx-menu-item-arrow-top-"+l._getDir("right")));p.addClass(l.toThemeProperty("jqx-icon-arrow-"+l._getDir("right")))}else{p.addClass(l.toThemeProperty("jqx-menu-item-arrow-top-"+l._getDir("left")));p.addClass(l.toThemeProperty("jqx-icon-arrow-"+l._getDir("left")))}}}a.jqx.aria(a(o.element),"aria-expanded",false);k.css({display:"none"});l._raiseEvent("1",o)})}};if(h>0){if(j.data("timer")){j.data("timer").hide=setTimeout(function(){n()},h)}}else{n()}if(g!=undefined&&g){var d=j.children();a.each(d,function(){if(l.menuElements[this.id]&&l.menuElements[this.id].isOpen){var p=a(l.menuElements[this.id].subMenuElement);l._closeItem(l,l.menuElements[this.id],true,true)}})}}},getSubItems:function(i,h){if(i==null){return false}var g=this;var c=new Array();if(h!=null){a.extend(c,h)}var d=i;var f=this.menuElements[d];var b=a(f.subMenuElement);var e=b.find(".jqx-menu-item");a.each(e,function(){c[this.id]=g.menuElements[this.id];var j=g.getSubItems(this.id,c);a.extend(c,j)});return c},disable:function(g,d){if(g==null){return}var c=g;var f=this;if(this.menuElements[c]){var e=this.menuElements[c];e.disabled=d;var b=a(e.element);e.element.disabled=d;a.each(b.children(),function(){this.disabled=d});if(d){b.addClass(f.toThemeProperty("jqx-menu-item-disabled"));b.addClass(f.toThemeProperty("jqx-fill-state-disabled"))}else{b.removeClass(f.toThemeProperty("jqx-menu-item-disabled"));b.removeClass(f.toThemeProperty("jqx-fill-state-disabled"))}}},getItem:function(c){if(this.menuElements[c]){var b=this.menuElements[c];return b}return null},disableItem:function(b){this.disable(b,true)},hideItem:function(c){if(this.menuElements[c]){var b=this.menuElements[c];a(b.element).hide()}},showItem:function(c){if(this.menuElements[c]){var b=this.menuElements[c];a(b.element).show()}},enableItem:function(b){this.disable(b,false)},_setItemProperty:function(g,c,f){if(g==null){return}var b=g;var e=this;if(this.menuElements[b]){var d=this.menuElements[b];if(d[c]){d[c]=f}}},setItemOpenDirection:function(d,c,e){if(d==null){return}var j=d;var g=this;var f=a.jqx.browser.msie&&a.jqx.browser.version<8;if(this.menuElements[j]){var i=this.menuElements[j];if(c!=null){i.openHorizontalDirection=c;if(i.hasItems&&i.level>0){var h=a(i.element);if(h!=undefined){var b=a(i.arrow);if(i.arrow==null){b=a('<span id="arrow'+h[0].id+'"></span>');if(!f){b.prependTo(h)}else{b.appendTo(h)}i.arrow=b[0]}b.removeClass();if(i.openHorizontalDirection=="left"){b.addClass(g.toThemeProperty("jqx-menu-item-arrow-"+g._getDir("left")));b.addClass(g.toThemeProperty("jqx-icon-arrow-"+g._getDir("left")))}else{b.addClass(g.toThemeProperty("jqx-menu-item-arrow-"+g._getDir("right")));b.addClass(g.toThemeProperty("jqx-icon-arrow-"+g._getDir("right")))}b.css("visibility","inherit");if(!f){b.css("display","block");b.css("float","right")}else{b.css("display","inline-block");b.css("float","none")}}}}if(e!=null){i.openVerticalDirection=e;var b=a(i.arrow);var h=a(i.element);if(!g.showTopLevelArrows){return}if(h!=undefined){if(i.arrow==null){b=a('<span id="arrow'+h[0].id+'"></span>');if(!f){b.prependTo(h)}else{b.appendTo(h)}i.arrow=b[0]}b.removeClass();if(i.openVerticalDirection=="down"){b.addClass(g.toThemeProperty("jqx-menu-item-arrow-down"));b.addClass(g.toThemeProperty("jqx-icon-arrow-down"))}else{b.addClass(g.toThemeProperty("jqx-menu-item-arrow-up"));b.addClass(g.toThemeProperty("jqx-icon-arrow-up"))}b.css("visibility","inherit");if(!f){b.css("display","block");b.css("float","right")}else{b.css("display","inline-block");b.css("float","none")}}}}},_getSiblings:function(d){var e=new Array();var b=0;for(var c=0;c<this.items.length;c++){if(this.items[c]==d){continue}if(this.items[c].parentId==d.parentId&&this.items[c].hasItems){e[b++]=this.items[c]}}return e},_openItem:function(s,r,q){if(s==null||r==null){return false}if(r.isOpen){return false}if(r.disabled){return false}if(s.disabled){return false}var l=s.popupZIndex;if(q!=undefined){l=q}var e=s.animationHideDuration;s.animationHideDuration=0;s._closeItem(s,r,true,true);s.animationHideDuration=e;a(r.element).focus();var f=[5,5];var t=a(r.subMenuElement);if(t!=null){t.stop()}if(t.data("timer")&&t.data("timer").hide!=null){clearTimeout(t.data("timer").hide)}var o=t.closest("div.jqx-menu-popup");var h=a(r.element);var i=r.level==0?this._getOffset(r.element):h.position();if(r.level>0&&this.hasTransform){var p=parseInt(h.coord().top)-parseInt(this._getOffset(r.element).top);i.top+=p}if(r.level==0&&this.mode=="popup"){i=h.coord()}var j=r.level==0&&this.mode=="horizontal";var b=j?i.left:this.menuElements[r.parentId]!=null&&this.menuElements[r.parentId].subMenuElement!=null?parseInt(a(a(this.menuElements[r.parentId].subMenuElement).closest("div.jqx-menu-popup")).outerWidth())-f[0]:parseInt(t.outerWidth());o.css({visibility:"visible",display:"block",left:b,top:j?i.top+h.outerHeight():i.top,zIndex:l});t.css("display","block");if(this.mode!="horizontal"&&r.level==0){var d=this._getOffset(this.element);o.css("left",-1+d.left+this.host.outerWidth());t.css("left",-t.outerWidth())}else{var c=this._getClosedSubMenuOffset(r);t.css("left",c.left);t.css("top",c.top)}o.css({height:parseInt(t.outerHeight())+parseInt(f[1])+"px"});var n=0;var g=0;switch(r.openVerticalDirection){case"up":if(j){t.css("top",t.outerHeight());n=f[1];var k=parseInt(t.parent().css("padding-bottom"));if(isNaN(k)){k=0}if(k>0){o.addClass(this.toThemeProperty("jqx-menu-popup-clear"))}t.css("top",t.outerHeight()-k);o.css({display:"block",top:i.top-o.outerHeight(),zIndex:l})}else{n=f[1];t.css("top",t.outerHeight());o.css({display:"block",top:i.top-o.outerHeight()+f[1]+h.outerHeight(),zIndex:l})}break;case"center":if(j){t.css("top",0);o.css({display:"block",top:i.top-o.outerHeight()/2+f[1],zIndex:l})}else{t.css("top",0);o.css({display:"block",top:i.top+h.outerHeight()/2-o.outerHeight()/2+f[1],zIndex:l})}break}switch(r.openHorizontalDirection){case this._getDir("left"):if(j){o.css({left:i.left-(o.outerWidth()-h.outerWidth()-f[0])})}else{g=0;t.css("left",o.outerWidth());o.css({left:i.left-(o.outerWidth())+2*r.level})}break;case"center":if(j){o.css({left:i.left-(o.outerWidth()/2-h.outerWidth()/2-f[0]/2)})}else{o.css({left:i.left-(o.outerWidth()/2-h.outerWidth()/2-f[0]/2)});t.css("left",o.outerWidth())}break}if(j){if(parseInt(t.css("top"))==n){r.isOpen=true;return}}else{if(parseInt(t.css("left"))==g){r.isOpen==true;return}}a.each(s._getSiblings(r),function(){s._closeItem(s,this,true,true)});var m=a.data(s.element,"animationHideDelay");s.animationHideDelay=m;if(this.autoCloseInterval>0){if(this.host.data("autoclose")!=null&&this.host.data("autoclose").close!=null){clearTimeout(this.host.data("autoclose").close)}if(this.host.data("autoclose")!=null){this.host.data("autoclose").close=setTimeout(function(){s._closeAll()},this.autoCloseInterval)}}if(t.data("timer")){t.data("timer").show=setTimeout(function(){if(o!=null){if(j){t.stop();t.css("left",g);if(!a.jqx.browser.msie){}h.addClass(s.toThemeProperty("jqx-fill-state-pressed"));h.addClass(s.toThemeProperty("jqx-menu-item-top-selected"));if(r.openVerticalDirection=="down"){a(r.element).addClass(s.toThemeProperty("jqx-rc-b-expanded"));o.addClass(s.toThemeProperty("jqx-rc-t-expanded"));o.addClass(s.toThemeProperty("show"))}else{a(r.element).addClass(s.toThemeProperty("jqx-rc-t-expanded"));o.addClass(s.toThemeProperty("jqx-rc-b-expanded"));o.addClass(s.toThemeProperty("show"))}var u=a(r.arrow);if(u.length>0&&s.showTopLevelArrows){u.removeClass();if(r.openVerticalDirection=="down"){u.addClass(s.toThemeProperty("jqx-menu-item-arrow-down-selected"));u.addClass(s.toThemeProperty("jqx-icon-arrow-down"))}else{u.addClass(s.toThemeProperty("jqx-menu-item-arrow-up-selected"));u.addClass(s.toThemeProperty("jqx-icon-arrow-up"))}}if(s.animationShowDuration==0){t.css({top:n});r.isOpen=true;s._raiseEvent("0",r);a.jqx.aria(a(r.element),"aria-expanded",true)}else{t.animate({top:n},s.animationShowDuration,s.easing,function(){r.isOpen=true;a.jqx.aria(a(r.element),"aria-expanded",true);s._raiseEvent("0",r)})}}else{t.stop();t.css("top",n);o.addClass(s.toThemeProperty("show"));if(!a.jqx.browser.msie){}if(r.level>0){h.addClass(s.toThemeProperty("jqx-fill-state-pressed"));h.addClass(s.toThemeProperty("jqx-menu-item-selected"));var u=a(r.arrow);if(u.length>0){u.removeClass();if(r.openHorizontalDirection!="left"){u.addClass(s.toThemeProperty("jqx-menu-item-arrow-"+s._getDir("right")+"-selected"));u.addClass(s.toThemeProperty("jqx-icon-arrow-"+s._getDir("right")))}else{u.addClass(s.toThemeProperty("jqx-menu-item-arrow-"+s._getDir("left")+"-selected"));u.addClass(s.toThemeProperty("jqx-icon-arrow-"+s._getDir("left")))}}}else{h.addClass(s.toThemeProperty("jqx-fill-state-pressed"));h.addClass(s.toThemeProperty("jqx-menu-item-top-selected"));var u=a(r.arrow);if(u.length>0){u.removeClass();if(r.openHorizontalDirection!="left"){u.addClass(s.toThemeProperty("jqx-menu-item-arrow-"+s._getDir("right")+"-selected"));u.addClass(s.toThemeProperty("jqx-icon-arrow-"+s._getDir("right")))}else{u.addClass(s.toThemeProperty("jqx-menu-item-arrow-"+s._getDir("left")+"-selected"));u.addClass(s.toThemeProperty("jqx-icon-arrow-"+s._getDir("left")))}}}if(!a.jqx.browser.msie){}if(s.animationShowDuration==0){t.css({left:g});s._raiseEvent("0",r);r.isOpen=true;a.jqx.aria(a(r.element),"aria-expanded",true)}else{t.animate({left:g},s.animationShowDuration,s.easing,function(){s._raiseEvent("0",r);r.isOpen=true;a.jqx.aria(a(r.element),"aria-expanded",true)})}}}},this.animationShowDelay)}},_getDir:function(b){switch(b){case"left":return !this.rtl?"left":"right";case"right":return this.rtl?"left":"right"}return"left"},_applyOrientation:function(i,d){var g=this;var f=0;g.host.removeClass(g.toThemeProperty("jqx-menu-horizontal"));g.host.removeClass(g.toThemeProperty("jqx-menu-vertical"));g.host.removeClass(g.toThemeProperty("jqx-menu"));g.host.removeClass(g.toThemeProperty("jqx-widget"));g.host.addClass(g.toThemeProperty("jqx-widget"));g.host.addClass(g.toThemeProperty("jqx-menu"));if(i!=undefined&&d!=undefined&&d=="popup"){if(g.host.parent().length>0&&g.host.parent().parent().length>0&&g.host.parent().parent()[0]==document.body){var h=a.data(document.body,"jqxMenuOldHost"+g.element.id);if(h!=null){var e=g.host.closest("div.jqx-menu-wrapper");e.remove();e.appendTo(h);g.host.css("display","block");g.host.css("visibility","visible");e.css("display","block");e.css("visibility","visible")}}}else{if(i==undefined&&d==undefined){a.data(document.body,"jqxMenuOldHost"+g.element.id,g.host.parent()[0])}}if(g.autoOpenPopup){if(g.mode=="popup"){g.addHandler(a(document),"contextmenu."+g.element.id,function(j){return false});g.addHandler(a(document),"mousedown.menu"+g.element.id,function(j){g._openContextMenu(j)})}else{g.removeHandler(a(document),"contextmenu."+g.element.id);g.removeHandler(a(document),"mousedown.menu"+g.element.id)}}else{g.removeHandler(a(document),"contextmenu."+g.element.id);g.removeHandler(a(document),"mousedown.menu"+g.element.id);g.addHandler(a(document),"contextmenu."+g.element.id,function(j){if(j.target&&j.target.className.indexOf&&j.target.className.indexOf("jqx-menu")>=0){return false}})}if(g.rtl){g.host.addClass(g.toThemeProperty("jqx-rtl"))}switch(g.mode){case"horizontal":g.host.addClass(g.toThemeProperty("jqx-widget-header"));g.host.addClass(g.toThemeProperty("jqx-menu-horizontal"));a.each(g.items,function(){var m=this;var k=a(m.element);var l=a(m.arrow);l.removeClass();if(m.hasItems&&m.level>0){var l=a("<span></span>").attr("id","arrow"+k[0].id).css({border:"none",backgroundColor:"transparent"});l.prependTo(k);l.css("float",g._getDir("right"));l.addClass(g.toThemeProperty("jqx-menu-item-arrow-"+g._getDir("right")));l.addClass(g.toThemeProperty("jqx-icon-arrow-"+g._getDir("right")));m.arrow=l[0]}if(m.level==0){a(m.element).css("float",g._getDir("left"));if(!m.ignoretheme&&m.hasItems&&g.showTopLevelArrows){var l=a("<span></span>").attr("id","arrow"+k[0].id).css({border:"none",backgroundColor:"transparent"});var j=a.jqx.browser.msie&&a.jqx.browser.version<8;if(m.arrow==null){if(!j){l.prependTo(k)}else{l.appendTo(k)}}else{l=a(m.arrow)}if(m.openVerticalDirection=="down"){l.addClass(g.toThemeProperty("jqx-menu-item-arrow-down"));l.addClass(g.toThemeProperty("jqx-icon-arrow-down"))}else{l.addClass(g.toThemeProperty("jqx-menu-item-arrow-up"));l.addClass(g.toThemeProperty("jqx-icon-arrow-up"))}l.css("visibility","inherit");if(!j){l.css("display","block");l.css("float","right")}else{l.css("display","inline-block")}m.arrow=l[0]}else{if(!m.ignoretheme&&m.hasItems&&!g.showTopLevelArrows){if(m.arrow!=null){var l=a(m.arrow);l.remove();m.arrow=null}}}f=Math.max(f,k.height())}});break;case"vertical":case"popup":case"simple":g.host.addClass(g.toThemeProperty("jqx-menu-vertical"));a.each(g.items,function(){var l=this;var j=a(l.element);if(l.hasItems&&!l.ignoretheme){if(l.arrow){a(l.arrow).remove()}if(g.mode=="simple"){return true}var k=a('<span style="border: none; background-color: transparent;" id="arrow'+j[0].id+'"></span>');k.prependTo(j);k.css("float","right");if(l.level==0){k.addClass(g.toThemeProperty("jqx-menu-item-arrow-top-"+g._getDir("right")));k.addClass(g.toThemeProperty("jqx-icon-arrow-"+g._getDir("right")))}else{k.addClass(g.toThemeProperty("jqx-menu-item-arrow-"+g._getDir("right")));k.addClass(g.toThemeProperty("jqx-icon-arrow-"+g._getDir("right")))}l.arrow=k[0]}j.css("float","none")});if(g.mode=="popup"){g.host.addClass(g.toThemeProperty("jqx-widget-content"));g.host.wrap("<div tabindex='0' class='jqx-menu-wrapper jqx-menu-wrapper-csp'></div>");g.host.parent().css("zIndex",g.popupZIndex);var e=g.host.closest("div.jqx-menu-wrapper");g.host.addClass(g.toThemeProperty("jqx-popup"));e[0].id="menuWrapper"+g.element.id;e.appendTo(a(document.body));g.addHandler(e,"keydown",function(j){return g.handleKeyDown(j)})}else{g.host.addClass(g.toThemeProperty("jqx-widget-header"))}if(g.mode=="popup"){var b=g.host.height();g.host.css("position","absolute");g.host.css("top","0");g.host.css("left","0");if(g.mode!="simple"){g.host.height(b);g.host.css("display","none")}}break}var c=g.isTouchDevice();if(g.autoCloseOnClick){g.removeHandler(a(document),"mousedown.menu"+g.element.id,g._closeAfterClick);g.addHandler(a(document),"mousedown.menu"+g.element.id,g._closeAfterClick,g);if(c){g.removeHandler(a(document),a.jqx.mobile.getTouchEventName("touchstart")+".menu"+g.element.id,g._closeAfterClick,g);g.addHandler(a(document),a.jqx.mobile.getTouchEventName("touchstart")+".menu"+g.element.id,g._closeAfterClick,g)}}},_getBodyOffset:function(){var c=0;var b=0;if(a("body").css("border-top-width")!="0px"){c=parseInt(a("body").css("border-top-width"));if(isNaN(c)){c=0}}if(a("body").css("border-left-width")!="0px"){b=parseInt(a("body").css("border-left-width"));if(isNaN(b)){b=0}}return{left:b,top:c}},_getOffset:function(c){var e=a.jqx.mobile.isSafariMobileBrowser();var i=a(c).coord(true);var h=i.top;var g=i.left;if(a("body").css("border-top-width")!="0px"){h=parseInt(h)+this._getBodyOffset().top}if(a("body").css("border-left-width")!="0px"){g=parseInt(g)+this._getBodyOffset().left}var d=a.jqx.mobile.isWindowsPhone();var f=a.jqx.mobile.isTouchDevice();if(this.hasTransform||(e!=null&&e)||d||f){var b={left:a.jqx.mobile.getLeftPos(c),top:a.jqx.mobile.getTopPos(c)};return b}else{return{left:g,top:h}}},_isRightClick:function(c){var b;if(!c){var c=window.event}if(c.which){b=(c.which==3)}else{if(c.button){b=(c.button==2)}}return b},_openContextMenu:function(d){var c=this;var b=c._isRightClick(d);if(b){c.open(parseInt(d.clientX)+5,parseInt(d.clientY)+5)}},close:function(){var c=this;if(!this.element){return}var d=a.data(this.element,"contextMenuOpened"+this.element.id);if(d){var b=this.host;c.host.removeClass("jqx-popup-show");a.each(c.items,function(){var e=this;if(e.hasItems){c._closeItem(c,e)}});a.each(c.items,function(){var f=this;if(f.isOpen==true){var e=a(f.subMenuElement);var g=e.closest("div.jqx-menu-popup");g.hide(this.animationHideDuration)}});this.host.hide(this.animationHideDuration);a.data(c.element,"contextMenuOpened"+this.element.id,false);c._raiseEvent("1",c);c._raiseEvent("5")}},open:function(e,d){if(this.mode=="popup"){var c=0;if(this.host.css("display")=="block"){this.close();c=this.animationHideDuration}var b=this;if(e==undefined||e==null){e=0}if(d==undefined||d==null){d=0}setTimeout(function(){b.host.show(b.animationShowDuration);b.host.css("visibility","visible");b.host.addClass("jqx-popup-show");a.data(b.element,"contextMenuOpened"+b.element.id,true);b._raiseEvent("0",b);b._raiseEvent("4",{left:e,top:d});b.host.css("z-index",b.popupZIndex);if(e!=undefined&&d!=undefined){b.host.css({left:e,top:d})}b.focus()},c)}},_renderHover:function(c,e,b){var d=this;if(!e.ignoretheme){this.addHandler(c,"mouseenter",function(){d.hoveredItem=e;if(!e.disabled&&!e.separator&&d.enableHover&&!d.disabled){if(e.level>0){c.addClass(d.toThemeProperty("jqx-fill-state-hover"));c.addClass(d.toThemeProperty("jqx-menu-item-hover"))}else{c.addClass(d.toThemeProperty("jqx-fill-state-hover"));c.addClass(d.toThemeProperty("jqx-menu-item-top-hover"))}}});this.addHandler(c,"mouseleave",function(){if(!e.disabled&&!e.separator&&d.enableHover&&!d.disabled){if(e.level>0){c.removeClass(d.toThemeProperty("jqx-fill-state-hover"));c.removeClass(d.toThemeProperty("jqx-menu-item-hover"))}else{c.removeClass(d.toThemeProperty("jqx-fill-state-hover"));c.removeClass(d.toThemeProperty("jqx-menu-item-top-hover"))}}})}},_closeAfterClick:function(c){var b=c!=null?c.data:this;var d=false;if(b.autoCloseOnClick){a.each(a(c.target).parents(),function(){if(this.className.indexOf){if(this.className.indexOf("jqx-menu")!=-1){d=true;return false}}});if(!d){c.data=b;b._closeAll(c)}}},_autoSizeHorizontalMenuItems:function(){var c=this;if(c.autoSizeMainItems&&this.mode=="horizontal"){var b=this.maxHeight;if(parseInt(b)>parseInt(this.host.height())){b=parseInt(this.host.height())}b=parseInt(this.host.height());a.each(this.items,function(){var m=this;var j=a(m.element);if(m.level==0&&b>0){var d=j.children().length>0?parseInt(j.children().height()):j.height();var g=c.host.find("ul:first");var h=parseInt(g.css("padding-top"));var n=parseInt(g.css("margin-top"));var k=b-2*(n+h);var i=parseInt(k)/2-d/2;var e=parseInt(i);var l=parseInt(i);j.css("padding-top",e);j.css("padding-bottom",l);if(parseInt(j.outerHeight())>k){var f=1;j.css("padding-top",e-f);e=e-f}}})}a.each(this.items,function(){var g=this;var e=a(g.element);if(g.hasItems&&g.level>0){if(g.arrow){var f=a(g.arrow);var d=a(g.element).height();if(d>15){f.css("margin-top",(d-15)/2)}}}})},_nextVisibleItem:function(c,d){if(c==null||c==undefined){return null}var b=c;while(b!=null){b=b.nextItem;if(this._isVisible(b)&&!b.disabled&&b.type!=="separator"){if(this.minimized){return b}if(d!=undefined){if(b&&b.level!=d){continue}}return b}}return null},_prevVisibleItem:function(c,d){if(c==null||c==undefined){return null}var b=c;while(b!=null){b=b.prevItem;if(this._isVisible(b)&&!b.disabled&&b.type!=="separator"){if(this.minimized){return b}if(d!=undefined){if(b&&b.level!=d){continue}}return b}}return null},_parentItem:function(d){if(d==null||d==undefined){return null}var c=d.parentElement;if(!c){return null}var b=null;a.each(this.items,function(){if(this.element==c){b=this;return false}});return b},_isElementVisible:function(b){if(b==null){return false}if(a(b).css("display")!="none"&&a(b).css("visibility")!="hidden"){return true}return false},_isVisible:function(c){if(c==null||c==undefined){return false}if(!this._isElementVisible(c.element)){return false}var b=this._parentItem(c);if(b==null){return true}if(this.minimized){return true}if(b!=null){if(!this._isElementVisible(b.element)){return false}if(b.isOpen||this.minimized){while(b!=null){b=this._parentItem(b);if(b!=null&&!this._isElementVisible(b.element)){return false}if(b!=null&&!b.isOpen){return false}}}else{return false}}return true},_render:function(f,g){if(this.disabled){this.host.addClass(this.toThemeProperty("jqx-fill-state-disabled"));this.host.addClass(this.toThemeProperty("jqx-menu-disabled"))}if(this.host.attr("tabindex")==undefined){this.host.attr("tabindex",0)}var i=this.popupZIndex;var d=[5,5];var h=this;a.data(h.element,"animationHideDelay",h.animationHideDelay);var e=this.isTouchDevice();var c=e&&(a.jqx.mobile.isWindowsPhone()||navigator.userAgent.indexOf("Touch")>=0);var j=false;if(navigator.platform.toLowerCase().indexOf("win")!=-1){if(navigator.userAgent.indexOf("Windows Phone")>=0||navigator.userAgent.indexOf("WPDesktop")>=0||navigator.userAgent.indexOf("IEMobile")>=0||navigator.userAgent.indexOf("ZuneWP7")>=0){this.touchDevice=true}else{if(navigator.userAgent.indexOf("Touch")>=0){var b=("MSPointerDown" in window);if(b||a.jqx.mobile.isWindowsPhone()||navigator.userAgent.indexOf("ARM")>=0){j=true;c=true;h.clickToOpen=true;h.autoCloseOnClick=false;h.enableHover=false}}}}a.data(document.body,"menuel",this);this.hasTransform=a.jqx.utilities.hasTransform(this.host);this._applyOrientation(f,g);this.removeHandler(this.host,"blur");this.removeHandler(this.host,"focus");this.addHandler(this.host,"blur",function(k){if(h.keyboardNavigation){if(h.activeItem){if(h.mode==="popup"){if(document.activeElement&&document.activeElement.className.indexOf("jqx-menu-wrapper")>=0){return}}a(h.activeItem.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=null}}});this.addHandler(this.host,"focus",function(k){if(h.keyboardNavigation){if(!h.activeItem){if(h.hoveredItem){a(h.hoveredItem.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=h.hoveredItem}else{var l=function(){if(!a.jqx.isHidden(a(h.items[0].element))){a(h.items[0].element).addClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=h.items[0]}else{var m=h._nextVisibleItem(h.items[0],0);if(m){a(m.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=m}}};if(!h.activeItem){l()}else{if(!a.jqx.isHidden(a(h.activeItem.element))){a(h.activeItem.element).addClass(h.toThemeProperty("jqx-fill-state-focus"))}else{a(h.activeItem.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));l()}}}}}});this.removeHandler(this.host,"keydown.menu"+this.element.id);h.handleKeyDown=function(k){if(h.keyboardNavigation){if(k.target.nodeName.toLowerCase()==="input"){return true}var q=null;var o=null;a.each(h.items,function(){var A=this;if(this.disabled){return true}if(this.element.className.indexOf("pressed")>=0){o=this}if(this.element.className.indexOf("focus")>=0){q=this;return false}});if(!q&&o){q=o;return false}if(!q){a(h.items[0].element).addClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=h.items[0];q=h.activeItem;return false}var t=false;if(k.keyCode==27){k.data=h;h._closeAll(k);if(q){var z=q;while(z!=null){if(z.parentItem){z=z.parentItem}else{a(h.activeItem.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=z;a(h.activeItem.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));z=z.parentItem}}}t=true}if(k.keyCode==13){if(q){t=true;h._raiseEvent("2",{item:q.element,event:k,type:"keyboard"});var r=q.anchor!=null?a(q.anchor):null;if(r!=null&&r.length>0){var l=r.attr("href");var u=r.attr("target");if(l!=null){if(u!=null){window.open(l,u)}else{window.location=l}}}k.preventDefault();k.stopPropagation();a(q.element).focus()}}var n=function(D){if(D==null){return new Array()}var C=new Array();var A=0;for(var B=0;B<h.items.length;B++){if(h.items[B].parentId==D.parentId){C[A++]=h.items[B]}}return C};var v="";switch(k.keyCode){case 40:v="down";break;case 38:v="up";break;case 39:v="right";break;case 37:v="left";break}if(q&&q.openHorizontalDirection==="left"&&v==="left"){v="right"}if(q&&q.openHorizontalDirection==="left"&&v==="right"){v="left"}if(q&&q.openVerticalDirection==="top"&&v==="top"){v="bottom"}if(q&&q.openVerticalDirection==="top"&&v==="bottom"){v="top"}if(h.rtl){if(v==="right"){v="left"}else{if(v==="left"){v="right"}}}if(v==="right"&&!h.minimized){if(k.altKey&&(q.level!=0&&q.hasItems||h.mode!="horizontal")){h._openItem(h,q)}else{var x=h._nextVisibleItem(q,0);var m=h._nextVisibleItem(q);var w=n(m);if(!x){x=m}if(x&&((x.parentId===q.parentId&&x.level==0&&h.mode=="horizontal")||(m.id==w[0].id&&m.level!=0))){if(m.id==w[0].id&&((q.level!=0)||(q.level==0&&h.mode!="horizontal"))){x=m}a(x.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=x}}k.preventDefault();k.stopPropagation()}if(v==="left"&&!h.minimized){if(k.altKey&&((q.level!=0&&h.mode!=="horizontal")||(q.level>1&&h.mode==="horizontal")||(q.level==1&&q.hasItems&&h.mode==="horizontal"))){if(q.hasItems){h._closeItem(h,q)}else{if(q.parentItem){h._closeItem(h,q.parentItem);a(q.parentItem.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=q.parentItem}}}else{var x=h._prevVisibleItem(q,0);var y=q.parentItem;if(x&&(x.parentId===q.parentId&&x.level==0&&h.mode=="horizontal")){a(x.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=x}else{if(!(y&&y.level==0&&h.mode=="horizontal")&&y&&y.level==q.level-1){a(y.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=y}}}k.preventDefault();k.stopPropagation()}if(v==="down"){if(k.altKey){if(q.level==0&&q.hasItems){h._openItem(h,q)}if(h.minimized){if(h.minimizedHidden){h.minimizedItem.trigger("click")}}}else{var x=h._nextVisibleItem(q,q.level);var w=n(x);if(h.minimized&&x){a(x.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=x}else{if(x&&(x.parentId===q.parentId||(x.id==w[0].id&&h.mode=="horizontal"))){if(!(x.level==0&&h.mode=="horizontal")){a(x.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=x}}if(h.mode==="horizontal"&&q.level===0&&q.isOpen&&q.hasItems){var x=h._nextVisibleItem(q);a(x.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=x}}}k.preventDefault();k.stopPropagation()}else{if(v==="up"){if(k.altKey){if(q.parentItem&&q.parentItem.level==0){h._closeItem(h,q.parentItem);a(q.parentItem.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=q.parentItem}else{if(q.parentItem===null&&q.level===0&&h.mode==="horizontal"){h._closeItem(h,q)}}if(h.minimized){if(!h.minimizedHidden){h.minimizedItem.trigger("click")}}}else{var x=h._prevVisibleItem(q,q.level);var w=n(q);if(h.minimized&&x){a(x.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=x}else{if(x&&(x.parentId===q.parentId||(x.id==q.parentId&&x.level==0&&h.mode=="horizontal"))){if(!(x.level==0&&h.mode==="horizontal"&&q.level===0)){a(x.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=x}}else{if(q&&q.id==w[0].id&&q.parentItem&&q.parentItem.level===0&&h.mode==="horizontal"){var x=q.parentItem;a(x.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=x}}}}k.preventDefault();k.stopPropagation()}}if(k.keyCode==9){var x=k.shiftKey?h._prevVisibleItem(q):h._nextVisibleItem(q);if(x){a(x.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=x;k.preventDefault();k.stopPropagation()}else{if(h.lockFocus){var w=new Array();var s=0;for(var p=0;p<h.items.length;p++){if(h.items[p]==q){continue}if(h.items[p].parentId==q.parentId){w[s++]=h.items[p]}}if(w.length>0){if(k.shiftKey){a(w[w.length-1].element).addClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=w[w.length-1]}else{a(w[0].element).addClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=w[0]}a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"))}k.preventDefault();k.stopPropagation()}else{if(q){a(q.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"));h.activeItem=null}}}}}else{return true}};this.addHandler(this.host,"keydown.menu"+this.element.id,function(k){h.handleKeyDown(k)});if(h.enableRoundedCorners){this.host.addClass(h.toThemeProperty("jqx-rc-all"))}a.each(this.items,function(){var t=this;var p=a(t.element);p.attr("role","menuitem");if(h.enableRoundedCorners){p.addClass(h.toThemeProperty("jqx-rc-all"))}h.removeHandler(p,"click");h.addHandler(p,"click",function(y){if(t.disabled){return}if(h.disabled){return}if(h.keyboardNavigation){if(h.activeItem){a(h.activeItem.element).removeClass(h.toThemeProperty("jqx-fill-state-focus"))}h.activeItem=t;a(t.element).addClass(h.toThemeProperty("jqx-fill-state-focus"));if(h.minimized){y.stopPropagation()}}h._raiseEvent("2",{type:"mouse",item:t.element,event:y});if(!h.autoOpen){if(t.level>0){if(h.autoCloseOnClick&&!e&&!h.clickToOpen){y.data=h;h._closeAll(y)}}}else{if(h.autoCloseOnClick&&!e&&!h.clickToOpen){if(t.closeOnClick){y.data=h;h._closeAll(y)}}}if(e&&h.autoCloseOnClick){y.data=h;if(!t.hasItems){h._closeAll(y)}}if(y.target.tagName!="A"&&y.target.tagName!="a"){var w=t.anchor!=null?a(t.anchor):null;if(w!=null&&w.length>0){var v=w.attr("href");var x=w.attr("target");if(v!=null){if(x!=null){window.open(v,x)}else{window.location=v}}}}});h.removeHandler(p,"mouseenter");h.removeHandler(p,"mouseleave");if(!c&&h.mode!="simple"){h._renderHover(p,t,e)}if(t.subMenuElement!=null){var q=a(t.subMenuElement);if(h.mode=="simple"){q.show();return true}var m=a("<div></div>").addClass("jqx-menu-popup "+h.toThemeProperty("jqx-menu-popup")).css({border:"none",backgroundColor:"transparent",zIndex:i,padding:0,margin:0,position:"absolute",top:0,left:0,display:"block",visibility:"hidden"});var n=a("<div></div>").css({backgroundColor:"transparent",border:"none",position:"absolute",overflow:"hidden",left:0,top:0,right:0,width:"100%",height:"100%"});m.append(n);q.wrap(m);q.css({overflow:"hidden",position:"absolute",left:0,display:"inherit",top:-q.outerHeight()});q.data("timer",{});if(t.level>0){q.css("left",-q.outerWidth())}else{if(h.mode=="horizontal"){q.css("left",0)}}i++;var s=a(t.subMenuElement).closest("div.jqx-menu-popup").css({width:parseInt(a(t.subMenuElement).outerWidth())+parseInt(d[0])+"px",height:parseInt(a(t.subMenuElement).outerHeight())+parseInt(d[1])+"px"});var u=p.closest("div.jqx-menu-popup");if(u.length>0){var k=q.css("margin-left");var o=q.css("margin-right");var l=q.css("padding-left");var r=q.css("padding-right");s.addClass("horizontal");s.appendTo(u);q.css("margin-left",k);q.css("margin-right",o);q.css("padding-left",l);q.css("padding-right",r)}else{var k=q.css("margin-left");var o=q.css("margin-right");var l=q.css("padding-left");var r=q.css("padding-right");if(h.mode==="horizontal"){s.addClass("top")}else{s.addClass("horizontal")}s.appendTo(a(document.body));q.css("margin-left",k);q.css("margin-right",o);q.css("padding-left",l);q.css("padding-right",r)}if(!h.clickToOpen){if(e||c){h.removeHandler(p,a.jqx.mobile.getTouchEventName("touchstart"));h.addHandler(p,a.jqx.mobile.getTouchEventName("touchstart"),function(v){clearTimeout(q.data("timer").hide);if(q!=null){q.stop()}if(t.level==0&&!t.isOpen&&h.mode!="popup"){v.data=h;h._closeAll(v)}if(!t.isOpen){h._openItem(h,t)}else{h._closeItem(h,t,true)}return false})}if(!c){h.addHandler(p,"mouseenter",function(){if(h.autoOpen||(t.level>0&&!h.autoOpen)){clearTimeout(q.data("timer").hide)}if(t.parentId&&t.parentId!=0){if(h.menuElements[t.parentId]){var v=h.menuElements[t.parentId].isOpen;if(!v){return}}}if(h.autoOpen||(t.level>0&&!h.autoOpen)){h._openItem(h,t)}return false});h.addHandler(p,"mousedown",function(){if(!h.autoOpen&&t.level==0){clearTimeout(q.data("timer").hide);if(q!=null){q.stop()}if(!t.isOpen){h._openItem(h,t)}else{h._closeItem(h,t,true)}}});h.addHandler(p,"mouseleave",function(w){if(h.autoCloseOnMouseLeave){clearTimeout(q.data("timer").hide);var z=a(t.subMenuElement);var v={left:parseInt(w.pageX),top:parseInt(w.pageY)};var y={left:parseInt(z.coord().left),top:parseInt(z.coord().top),width:parseInt(z.outerWidth()),height:parseInt(z.outerHeight())};var x=true;if(y.left-5<=v.left&&v.left<=y.left+y.width+5){if(y.top<=v.top&&v.top<=y.top+y.height){x=false}}if(x){h._closeItem(h,t,true)}}});h.removeHandler(s,"mouseenter");h.addHandler(s,"mouseenter",function(){clearTimeout(q.data("timer").hide)});h.removeHandler(s,"mouseleave");h.addHandler(s,"mouseleave",function(v){if(h.autoCloseOnMouseLeave){clearTimeout(q.data("timer").hide);clearTimeout(q.data("timer").show);if(q!=null){q.stop()}h._closeItem(h,t,true)}})}}else{h.removeHandler(p,"mousedown");h.addHandler(p,"mousedown",function(v){clearTimeout(q.data("timer").hide);if(q!=null){q.stop()}if(t.level==0&&!t.isOpen){v.data=h;h._closeAll(v)}if(!t.isOpen){h._openItem(h,t)}else{h._closeItem(h,t,true)}})}}});if(this.mode=="simple"){this._renderSimpleMode()}this._autoSizeHorizontalMenuItems();this._raiseEvent("3",this)},_renderSimpleMode:function(){this.host.show()},createID:function(){var b=Math.random()+"";b=b.replace(".","");b="99"+b;b=b/1;while(this.items[b]){b=Math.random()+"";b=b.replace(".","");b=b/1}return"menuItem"+b},_createMenu:function(c,f){if(c==null){return}if(f==undefined){f=true}if(f==null){f=true}var o=this;a(c).addClass("jqx-menu-ul");var u=a(c).find("li");var q=0;this.itemMapping=new Array();for(var j=0;j<u.length;j++){var m=u[j];var s=a(m);if(m.className.indexOf("jqx-menu")==-1&&this.autoGenerate==false){continue}var p=m.id;if(!p){p=this.createID()}if(f){m.id=p;this.items[q]=new a.jqx._jqxMenu.jqxMenuItem();this.menuElements[p]=this.items[q]}q+=1;var t=0;var x=this;var h=s.children();h.each(function(){if(!f){this.className="";if(x.autoGenerate){a(x.items[q-1].subMenuElement)[0].className="";if(!x.minimized){a(x.items[q-1].subMenuElement).addClass(x.toThemeProperty("jqx-widget-content"))}a(x.items[q-1].subMenuElement).addClass(x.toThemeProperty("jqx-menu-dropdown"));a(x.items[q-1].subMenuElement).addClass(x.toThemeProperty("jqx-popup"))}}if(this.className.indexOf("jqx-menu-dropdown")!=-1){if(f){x.items[q-1].subMenuElement=this}return false}else{if(x.autoGenerate&&(this.tagName=="ul"||this.tagName=="UL")){if(f){x.items[q-1].subMenuElement=this}this.className="";if(!x.minimized){a(this).addClass(x.toThemeProperty("jqx-widget-content"))}a(this).addClass(x.toThemeProperty("jqx-menu-dropdown"));a(this).addClass(x.toThemeProperty("jqx-popup"));a(this).attr("role","menu");if(x.rtl){a(this).addClass(x.toThemeProperty("jqx-rc-l"))}else{a(this).addClass(x.toThemeProperty("jqx-rc-r"))}a(this).addClass(x.toThemeProperty("jqx-rc-b"));return false}}});var w=s.parents();w.each(function(){if(this.className.indexOf("jqx-menu-item")!=-1){t=this.id;return false}else{if(x.autoGenerate&&(this.tagName=="li"||this.tagName=="LI")){t=this.id;return false}}});var e=false;var d=m.getAttribute("type");var b=m.getAttribute("ignoretheme")||m.getAttribute("data-ignoretheme");if(b){if(b=="true"||b==true){b=true}}else{b=false}if(!d){d=m.type}else{if(d=="separator"){var e=true}}if(!e){if(t){d="sub"}else{d="top"}}var g=this.items[q-1];if(f){g.id=p;g.parentId=t;g.type=d;g.separator=e;g.element=u[j];var l=s.children("a");g.disabled=m.getAttribute("item-disabled")=="true"?true:false;g.level=s.parents("li").length;g.anchor=l.length>0?l:null;if(g.anchor){a(g.anchor).attr("tabindex",-1)}}g.ignoretheme=b;var n=this.menuElements[t];if(n!=null){if(n.ignoretheme){g.ignoretheme=n.ignoretheme;b=n.ignoretheme}g.parentItem=n;g.parentElement=n.element}if(this.autoGenerate){if(d=="separator"){s.removeClass();s.addClass(this.toThemeProperty("jqx-menu-item-separator"));s.attr("role","separator")}else{if(!b){if(s[0].className.indexOf("jqx-grid-menu-item-touch")>=0){s[0].className=this.toThemeProperty("jqx-grid-menu-item-touch")}else{s[0].className=""}if(this.rtl){s.addClass(this.toThemeProperty("jqx-rtl"))}if(g.level>0&&!x.minimized){s.addClass(this.toThemeProperty("jqx-item"));s.addClass(this.toThemeProperty("jqx-menu-item"))}else{s.addClass(this.toThemeProperty("jqx-item"));s.addClass(this.toThemeProperty("jqx-menu-item-top"))}}}}if(g.disabled){s.addClass(x.toThemeProperty("jqx-menu-item-disabled"));s.addClass(x.toThemeProperty("jqx-fill-state-disabled"))}this.itemMapping[j]={element:u[j],item:g};this.itemMapping["id"+u[j].id]=this.itemMapping[j];if(f&&!b){g.hasItems=s.find("li").length>0;if(g.hasItems){if(g.element){a.jqx.aria(a(g.element),"aria-haspopup",true);if(!g.subMenuElement.id){g.subMenuElement.id=a.jqx.utilities.createId()}a.jqx.aria(a(g.element),"aria-owns",g.subMenuElement.id)}}}}for(var r=0;r<u.length;r++){var v=u[r];if(this.itemMapping["id"+v.id]){var g=this.itemMapping["id"+v.id].item;if(!g){continue}g.prevItem=null;g.nextItem=null;if(r>0){if(this.itemMapping["id"+u[r-1].id]){g.prevItem=this.itemMapping["id"+u[r-1].id].item}}if(r<u.length-1){if(this.itemMapping["id"+u[r+1].id]){g.nextItem=this.itemMapping["id"+u[r+1].id].item}}}}},destroy:function(){var b=this;a.jqx.utilities.resize(b.host,null,true);var d=b.host.closest("div.jqx-menu-wrapper");b.removeHandler(d,"keydown");d.remove();b.removeHandler(a("#menuWrapper"+b.element.id),"keydown");a("#menuWrapper"+b.element.id).remove();b.removeHandler(b.host,"keydown");b.removeHandler(b.host,"focus");b.removeHandler(b.host,"blur");b.removeHandler(a(document),"mousedown.menu"+b.element.id,b._closeAfterClick);b.removeHandler(a(document),"mouseup.menu"+b.element.id,b._closeAfterClick);b.removeHandler(a(document),"contextmenu."+b.element.id);b.removeHandler(b.host,"contextmenu."+b.element.id);a.data(document.body,"jqxMenuOldHost"+b.element.id,null);if(b.isTouchDevice()){b.removeHandler(a(document),a.jqx.mobile.getTouchEventName("touchstart")+".menu"+b.element.id,b._closeAfterClick,this)}if(a(window).off){a(window).off("resize.menu"+b.element.id)}a.each(b.items,function(){var g=this;var f=a(g.element);b.removeHandler(f,"click");b.removeHandler(f,"selectstart");b.removeHandler(f,"mouseenter");b.removeHandler(f,"mouseleave");b.removeHandler(f,"mousedown");b.removeHandler(f,"mouseleave");var e=a(g.subMenuElement);var h=e.closest("div.jqx-menu-popup");h.remove();delete this.subMenuElement;delete this.element});a.data(document.body,"menuel",null);delete b.menuElements;b.items=new Array();delete b.items;var c=a.data(b.element,"jqxMenu");if(c){delete c.instance}b.host.removeClass();b.host.remove();delete b.host;delete b.element},_raiseEvent:function(g,c){if(c==undefined){c={owner:null}}var d=this.events[g];var e=c;e.owner=this;var f=new a.Event(d);if(g=="2"){e=c.item;e.owner=this;e.clickType=c.type;a.extend(f,c.event);f.type="itemclick"}f.owner=this;f.args=e;var b=this.host.trigger(f);return b},propertiesChangedHandler:function(b,c,e){if(e.width&&e.height&&Object.keys(e).length==2){b._setSize();if(b.mode==="popup"){var d=this.host.closest("div.jqx-menu-wrapper");d[c](e);var f=this.host[0].id;a("#"+f)[c](e)}}},propertyChangedHandler:function(b,d,h,g){if(this.isInitialized==undefined||this.isInitialized==false){return}if(b.batchUpdate&&b.batchUpdate.width&&b.batchUpdate.height&&Object.keys(b.batchUpdate).length==2){return}if(d=="disabled"){if(b.disabled){b.host.addClass(b.toThemeProperty("jqx-fill-state-disabled"));b.host.addClass(b.toThemeProperty("jqx-menu-disabled"))}else{b.host.removeClass(b.toThemeProperty("jqx-fill-state-disabled"));b.host.removeClass(b.toThemeProperty("jqx-menu-disabled"))}}if(g==h){return}if(d=="touchMode"){this._isTouchDevice=null;b._render(g,h)}if(d==="width"||d==="height"){b._setSize();if(b.mode==="popup"){var e=this.host.closest("div.jqx-menu-wrapper");e[d](g);var i=this.host[0].id;a("#"+i)[d](g)}return}if(d=="source"){if(b.source!=null){var c=b.loadItems(b.source);b.element.innerHTML=c;var f=b.host.find("ul:first");if(f.length>0){b.refresh();b._createMenu(f[0]);b._render()}}}if(d=="autoCloseOnClick"){if(g==false){b.removeHandler(a(document),"mousedown.menu"+this.element.id,b._closeAll)}else{b.addHandler(a(document),"mousedown.menu"+this.element.id,b,b._closeAll)}}else{if(d=="mode"||d=="width"||d=="height"||d=="showTopLevelArrows"){b.refresh();if(d=="mode"){b._render(g,h)}else{b._applyOrientation()}}else{if(d=="theme"){a.jqx.utilities.setTheme(h,g,b.host)}}}}})})(jqxBaseFramework);(function(a){a.jqx._jqxMenu.jqxMenuItem=function(e,d,c){var b={id:e,parentId:d,parentItem:null,anchor:null,type:c,disabled:false,level:0,isOpen:false,hasItems:false,element:null,subMenuElement:null,arrow:null,openHorizontalDirection:"right",openVerticalDirection:"down",closeOnClick:true};return b}})(jqxBaseFramework)})();
/***/ }),
/***/ 3192:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxNumberInput","",{});a.extend(a.jqx._jqxNumberInput.prototype,{defineInstance:function(){var b={value:0,decimal:0,min:-99999999,max:99999999,width:200,validationMessage:"Invalid value",height:25,textAlign:"right",readOnly:false,promptChar:"_",decimalDigits:2,decimalSeparator:".",groupSeparator:",",groupSize:3,symbol:"",symbolPosition:"left",digits:8,negative:false,negativeSymbol:"-",disabled:false,inputMode:"advanced",spinButtons:false,spinButtonsWidth:18,spinButtonsStep:1,autoValidate:true,spinMode:"advanced",enableMouseWheel:true,touchMode:"auto",allowNull:true,placeHolder:"",changeType:null,template:"",autoHidePromptChar:false,rtl:false,hint:true,events:["valueChanged","textchanged","mousedown","mouseup","keydown","keyup","keypress","change"],aria:{"aria-valuenow":{name:"decimal",type:"number"},"aria-valuemin":{name:"min",type:"number"},"aria-valuemax":{name:"max",type:"number"},"aria-disabled":{name:"disabled",type:"boolean"}},invalidArgumentExceptions:["invalid argument exception"]};if(this===a.jqx._jqxNumberInput.prototype){return b}a.extend(true,this,b);return b},createInstance:function(b){if(this.promptChar===""){this.promptChar=" "}var d=this.host.attr("value");if(d!=undefined){this.decimal=d}if(this.decimal===0){if(this.value!=null){this.decimal=this.value}else{if(this.value===null&&this.decimal!==0){this.value=this.decimal}}}var c=this;c._createFromInput("jqxNumberInput");this.render()},_updateHint:function(){var b=this;if(!b.hint){return}if(b.isMaterialized()){setTimeout(function(){if(b.numberInput[0].value.length===0){b.element.removeAttribute("hint");if(b.label&&b.label[0]){b.label[0].innerHTML=b.placeHolder}}else{b.element.setAttribute("hint",true)}})}},_createFromInput:function(c){var h=this;if(h.element.nodeName.toLowerCase()=="input"){h.field=h.element;if(h.field.className){h._className=h.field.className}var i={title:h.field.title};if(h.field.value){h.decimal=parseFloat(h.field.value)}if(h.field.getAttribute("min")){var f=(h.field.getAttribute("min"));h.min=parseFloat(f)}if(h.field.getAttribute("step")){var e=(h.field.getAttribute("step"));h.spinButtonsStep=parseFloat(e)}if(h.field.getAttribute("max")){var j=(h.field.getAttribute("max"));h.max=parseFloat(j)}if(h.field.id.length){i.id=h.field.id.replace(/[^\w]/g,"_")+"_"+c}else{i.id=a.jqx.utilities.createId()+"_"+c}var b=a("<div></div>",i);b[0].style.cssText=h.field.style.cssText;if(!h.width){h.width=a(h.field).width()}if(!h.height){h.height=a(h.field).outerHeight()}a(h.field).hide().after(b);var g=h.host.data();h.host=b;h.host.data(g);h.element=b[0];h.element.id=h.field.id;h.field.id=i.id;if(h._className){h.host.addClass(h._className);a(h.field).removeClass(h._className)}if(h.field.tabIndex){var d=h.field.tabIndex;h.field.tabIndex=-1;h.element.tabIndex=d}}},_doTouchHandling:function(){var e=this;var g=e.savedValue;if(!e.parsing){e.parsing=true}if(e.parsing){if(e.numberInput.val()&&e.numberInput.val().indexOf("-")==0){e.setvalue("negative",true)}else{e.setvalue("negative",false)}var f=e.numberInput.val();for(var c=0;c<f.length-1;c++){var d=f.substring(c,c+1);if(isNaN(parseFloat(d))&&e.symbol.toString().indexOf(d)===-1&&d!="%"&&d!="$"&&d!="."&&d!=","&&d!="-"){e.numberInput[0].value=g;e.parsing=false;return}}e.ValueString=e.GetValueString(e.numberInput.val(),e.decimalSeparator,e.decimalSeparator!="");e._parseDecimalInSimpleMode();e.decimal=e.ValueString;var b=e.getvalue("negative");if(b){e.decimal="-"+e.ValueString}e.parsing=false}},render:function(){this.host.attr({role:"spinbutton"});this.host.attr("data-role","input");a.jqx.aria(this);a.jqx.aria(this,"aria-multiline",false);var f=this;if(this.officeMode||(this.theme&&this.theme.indexOf("office")!=-1)){if(this.spinButtonsWidth==18){this.spinButtonsWidth=15}}if(a.jqx.mobile.isTouchDevice()||this.touchMode===true){this.inputMode="textbox";this.spinMode="simple"}if(this.decimalSeparator==""){this.decimalSeparator=" "}this.host.addClass(this.toThemeProperty("jqx-input"));this.host.addClass(this.toThemeProperty("jqx-rc-all"));this.host.addClass(this.toThemeProperty("jqx-widget"));this.host.addClass(this.toThemeProperty("jqx-widget-content"));this.host.addClass(this.toThemeProperty("jqx-numberinput"));if(this.spinButtons){this._spinButtons()}else{this.numberInput=a("<input style='border:none;' autocomplete='off' type='textarea'/>").appendTo(this.host);this.numberInput.addClass(this.toThemeProperty("jqx-input-content"));this.numberInput.addClass(this.toThemeProperty("jqx-widget-content"))}if(a.jqx.mobile.isTouchDevice()||this.touchMode===true){this.numberInput.attr("inputmode","decimal")}if(!this.isMaterialized()){this.numberInput.attr("placeholder",this.placeHolder)}var d=this.host.attr("name");if(d){this.numberInput.attr("name",d)}if(this.host.attr("tabindex")){this.numberInput.attr("tabindex",this.host.attr("tabindex"));this.host.removeAttr("tabindex")}if(a.jqx.mobile.isTouchDevice()||this.touchMode===true||this.inputMode=="textbox"){var f=this;f.savedValue="";this.addHandler(this.numberInput,"focus",function(){f.savedValue=f.numberInput[0].value});this.addHandler(this.numberInput,"change",function(){f._doTouchHandling()})}var h=a.data(this.host[0],"jqxNumberInput");h.jqxNumberInput=this;var f=this;if(this.host.parents("form").length>0){this.addHandler(this.host.parents("form"),"reset",function(){setTimeout(function(){f.setDecimal(0)},10)})}this.propertyChangeMap.disabled=function(j,l,k,m){if(m){j.numberInput.addClass(c.toThemeProperty("jqx-input-disabled"));j.numberInput.attr("disabled",true)}else{j.host.removeClass(c.toThemeProperty("jqx-input-disabled"));j.numberInput.attr("disabled",false)}if(j.spinButtons&&j.host.jqxRepeatButton){j.upbutton.jqxRepeatButton({disabled:m});j.downbutton.jqxRepeatButton({disabled:m})}};if(this.disabled){this.numberInput.addClass(this.toThemeProperty("jqx-input-disabled"));this.numberInput.attr("disabled",true);this.host.addClass(this.toThemeProperty("jqx-fill-state-disabled"))}this.selectedText="";this.decimalSeparatorPosition=-1;var i=this.element.id;var e=this.element;var c=this;this.oldValue=this._value();this.items=new Array();var g=this.value;var b=this.decimal;this._initializeLiterals();this._render();this.setDecimal(g!==null?b:null);var f=this;setTimeout(function(){},100);this._addHandlers();a.jqx.utilities.resize(this.host,function(){f._render()})},refresh:function(b){if(!b){this._render()}},wheel:function(d,c){if(!c.enableMouseWheel){return}c.changeType="mouse";var e=0;if(!d){d=window.event}if(d.originalEvent&&d.originalEvent.wheelDelta){d.wheelDelta=d.originalEvent.wheelDelta}if(d.wheelDelta){e=d.wheelDelta/120}else{if(d.detail){e=-d.detail/3}}if(e){var b=c._handleDelta(e);if(d.preventDefault){d.preventDefault()}if(d.originalEvent!=null){d.originalEvent.mouseHandled=true}if(d.stopPropagation!=undefined){d.stopPropagation()}if(b){b=false;d.returnValue=b;return b}else{return false}}if(d.preventDefault){d.preventDefault()}d.returnValue=false},_handleDelta:function(b){if(b<0){this.spinDown()}else{this.spinUp()}return true},_addHandlers:function(){var b=this;this.addHandler(this.numberInput,"paste",function(g){var d=b._selection();g.preventDefault();if(g.originalEvent.clipboardData){var f=(g.originalEvent||g).clipboardData.getData("text/plain")}else{if(window.clipboardData){var f=window.clipboardData.getData("Text")}}this.selectedText=f;a.data(document.body,"jqxSelection",this.selectedText);if(b.inputMode!="simple"){b._pasteSelectedText()}else{b.val(f)}setTimeout(function(){b._setSelectionStart(d.start)})});this.addHandler(this.numberInput,"mousedown",function(d){return b._raiseEvent(2,d)});this._mousewheelfunc=this._mousewheelfunc||function(d){if(!b.editcell){b.wheel(d,b);return false}};this.removeHandler(this.host,"mousewheel",this._mousewheelfunc);this.addHandler(this.host,"mousewheel",this._mousewheelfunc);var c="";this.addHandler(this.numberInput,"focus",function(d){a.data(b.numberInput,"selectionstart",b._selection().start);b.host.addClass(b.toThemeProperty("jqx-fill-state-focus"));if(b.autoHidePromptChar&&b.inputMode==="advanced"){b._refreshValue()}if(b.spincontainer){b.spincontainer.addClass(b.toThemeProperty("jqx-numberinput-focus"))}c=b.numberInput.val();b._savedValue=b.decimal});this.addHandler(this.numberInput,"blur",function(e){if(b.inputMode=="simple"){b._exitSimpleInputMode(e,b,false,c)}if(b.autoValidate){var f=parseFloat(b.decimal);var d=b.getvalue("negative");if(d&&b.decimal>0){f=-parseFloat(b.decimal)}if(f>b.max){b._disableSetSelection=true;b.setDecimal(b.max);b._disableSetSelection=false}if(f<b.min){b._disableSetSelection=true;b.setDecimal(b.min);b._disableSetSelection=false}}b.host.removeClass(b.toThemeProperty("jqx-fill-state-focus"));if(b.spincontainer){b.spincontainer.removeClass(b.toThemeProperty("jqx-numberinput-focus"))}if(b.numberInput.val()!=c){b._raiseEvent(7,e);a.jqx.aria(b,"aria-valuenow",b.decimal);b.element.value=b.decimal}if(b.autoHidePromptChar){b.numberInput[0].value=b.numberInput[0].value.replace(new RegExp(b.promptChar,"g")," ").replace(new RegExp(b.groupSeparator,"g")," ")}return true});this.addHandler(this.numberInput,"mouseup",function(d){return b._raiseEvent(3,d)});this.addHandler(this.numberInput,"keydown",function(d){b.changeType="keyboard";return b._raiseEvent(4,d)});this.addHandler(this.numberInput,"keyup",function(d){return b._raiseEvent(5,d)});this.addHandler(this.numberInput,"keypress",function(d){return b._raiseEvent(6,d)})},focus:function(){try{this.numberInput.focus()}catch(b){}},blur:function(){try{this.numberInput.blur()}catch(b){}},_removeHandlers:function(){var b=this;this.removeHandler(this.numberInput,"mousedown");var c=a.jqx.mobile.isOperaMiniMobileBrowser();if(c){this.removeHandler(a(document),"click."+this.element.id,b._exitSimpleInputMode,b)}this.removeHandler(this.numberInput,"paste");this.removeHandler(this.numberInput,"focus");this.removeHandler(this.numberInput,"blur");this.removeHandler(this.numberInput,"mouseup");this.removeHandler(this.numberInput,"keydown");this.removeHandler(this.numberInput,"keyup");this.removeHandler(this.numberInput,"keypress")},_spinButtons:function(){if(this.host.jqxRepeatButton){if(!this.numberInput){this.numberInput=a("<input autocomplete='off' type='textarea'/>");this.numberInput.appendTo(this.host);this.numberInput.addClass(this.toThemeProperty("jqx-input-content"));this.numberInput.addClass(this.toThemeProperty("jqx-widget-content"));this.numberInput.css({border:"none",position:"relative"});this.numberInput.css("float","left")}else{this.numberInput.css("float","left")}if(this.spincontainer){if(this.upbutton){this.upbutton.jqxRepeatButton("destroy")}if(this.downbutton){this.downbutton.jqxRepeatButton("destroy")}this.spincontainer.remove()}this.spincontainer=a("<div></div>");this.spincontainer.css({height:"100%",overflow:"hidden",position:"relative"});this.spincontainer.css("float","right");if(this.rtl){this.spincontainer.css({left:"-1px"});this.spincontainer.css("float","left");this.numberInput.css("float","right")}this.host.append(this.spincontainer);this.upbutton=a("<div><div></div></div>");this.upbutton.css({overflow:"hidden",padding:"0px",marginLeft:"-1px",position:"relative"});this.spincontainer.append(this.upbutton);this.upbutton.jqxRepeatButton({overrideTheme:true,disabled:this.disabled,roundedCorners:"top-right"});this.downbutton=a("<div><div></div></div>");this.downbutton.css({overflow:"hidden",padding:"0px",marginLeft:"-1px",position:"relative"});this.spincontainer.append(this.downbutton);this.downbutton.jqxRepeatButton({overrideTheme:true,disabled:this.disabled,roundedCorners:"bottom-right"});if(this.template){this.upbutton.addClass(this.toThemeProperty("jqx-"+this.template));this.downbutton.addClass(this.toThemeProperty("jqx-"+this.template))}var d=this;this.downbutton.addClass(this.toThemeProperty("jqx-fill-state-normal jqx-action-button"));this.upbutton.addClass(this.toThemeProperty("jqx-fill-state-normal jqx-action-button"));this.upbutton.addClass(this.toThemeProperty("jqx-rc-tr"));this.downbutton.addClass(this.toThemeProperty("jqx-rc-br"));this.addHandler(this.downbutton,"mouseup",function(e){if(!d.disabled){d.downbutton.removeClass(d.toThemeProperty("jqx-fill-state-pressed"));d._downArrow.removeClass(d.toThemeProperty("jqx-icon-arrow-down-selected"))}});this.addHandler(this.upbutton,"mouseup",function(e){if(!d.disabled){d.upbutton.removeClass(d.toThemeProperty("jqx-fill-state-pressed"));d._upArrow.removeClass(d.toThemeProperty("jqx-icon-arrow-up-selected"))}});this.removeHandler(a(document),"mouseup."+this.element.id);this.addHandler(a(document),"mouseup."+this.element.id,function(e){d.upbutton.removeClass(d.toThemeProperty("jqx-fill-state-pressed"));d._upArrow.removeClass(d.toThemeProperty("jqx-icon-arrow-up-selected"));d.downbutton.removeClass(d.toThemeProperty("jqx-fill-state-pressed"));d._downArrow.removeClass(d.toThemeProperty("jqx-icon-arrow-down-selected"))});this.addHandler(this.downbutton,"mousedown",function(e){if(!d.disabled){if(a.jqx.browser.msie&&a.jqx.browser.version<9){d._inputSelection=d._selection()}d.downbutton.addClass(d.toThemeProperty("jqx-fill-state-pressed"));d._downArrow.addClass(d.toThemeProperty("jqx-icon-arrow-down-selected"));e.preventDefault();e.stopPropagation();return false}});this.addHandler(this.upbutton,"mousedown",function(e){if(!d.disabled){if(a.jqx.browser.msie&&a.jqx.browser.version<9){d._inputSelection=d._selection()}d.upbutton.addClass(d.toThemeProperty("jqx-fill-state-pressed"));d._upArrow.addClass(d.toThemeProperty("jqx-icon-arrow-up-selected"));e.preventDefault();e.stopPropagation();return false}});this.addHandler(this.upbutton,"mouseenter",function(e){d.upbutton.addClass(d.toThemeProperty("jqx-fill-state-hover"));d._upArrow.addClass(d.toThemeProperty("jqx-icon-arrow-up-hover"))});this.addHandler(this.upbutton,"mouseleave",function(e){d.upbutton.removeClass(d.toThemeProperty("jqx-fill-state-hover"));d._upArrow.removeClass(d.toThemeProperty("jqx-icon-arrow-up-hover"))});this.addHandler(this.downbutton,"mouseenter",function(e){d.downbutton.addClass(d.toThemeProperty("jqx-fill-state-hover"));d._downArrow.addClass(d.toThemeProperty("jqx-icon-arrow-down-hover"))});this.addHandler(this.downbutton,"mouseleave",function(e){d.downbutton.removeClass(d.toThemeProperty("jqx-fill-state-hover"));d._downArrow.removeClass(d.toThemeProperty("jqx-icon-arrow-down-hover"))});this.upbutton.css("border-width","0px");this.downbutton.css("border-width","0px");if(this.disabled){this.upbutton[0].disabled=true;this.downbutton[0].disabled=true}else{this.upbutton[0].disabled=false;this.downbutton[0].disabled=false}this.spincontainer.addClass(this.toThemeProperty("jqx-input"));this.spincontainer.addClass(this.toThemeProperty("jqx-rc-r"));this.spincontainer.css("border-width","0px");if(!this.rtl){this.spincontainer.css("border-left-width","1px")}else{this.spincontainer.css("border-right-width","1px")}this._upArrow=this.upbutton.find("div");this._downArrow=this.downbutton.find("div");this._upArrow.addClass(this.toThemeProperty("jqx-icon-arrow-up"));this._downArrow.addClass(this.toThemeProperty("jqx-icon-arrow-down"));this._upArrow.addClass(this.toThemeProperty("jqx-input-icon"));this._downArrow.addClass(this.toThemeProperty("jqx-input-icon"));var d=this;this._upArrow.hover(function(){if(!d.disabled){d._upArrow.addClass(d.toThemeProperty("jqx-icon-arrow-up-hover"))}},function(){d._upArrow.removeClass(d.toThemeProperty("jqx-icon-arrow-up-hover"))});this._downArrow.hover(function(){if(!d.disabled){d._downArrow.addClass(d.toThemeProperty("jqx-icon-arrow-down-hover"))}},function(){d._downArrow.removeClass(d.toThemeProperty("jqx-icon-arrow-down-hover"))});var b=a.jqx.mobile.isTouchDevice();var c="click";if(b){c=a.jqx.mobile.getTouchEventName("touchstart")}if(b){this.addHandler(this.downbutton,"click",function(e){d.spinDown()});this.addHandler(this.upbutton,"click",function(e){d.spinUp()})}this.addHandler(this.downbutton,c,function(e){if(!b){if(d._selection().start==0){d._setSelectionStart(d.numberInput.val().length)}if(a.jqx.browser.msie&&a.jqx.browser.version<9){d._setSelectionStart(d._inputSelection.start)}}else{e.preventDefault();e.stopPropagation()}d.spinDown();return false});this.addHandler(this.upbutton,c,function(e){if(!b){if(d._selection().start==0){d._setSelectionStart(d.numberInput.val().length)}if(a.jqx.browser.msie&&a.jqx.browser.version<9){d._setSelectionStart(d._inputSelection.start)}}else{e.preventDefault();e.stopPropagation()}d.spinUp();return false});this.upbutton.css("border-width","0px");this.downbutton.css("border-width","0px");if(this.disabled){this.upbutton[0].disabled=true;this.downbutton[0].disabled=true}else{this.upbutton[0].disabled=false;this.downbutton[0].disabled=false}this.spincontainer.addClass(this.toThemeProperty("jqx-input jqx-rc-r"));this.spincontainer.css("border-width","0px");if(!this.rtl){this.spincontainer.css("border-left-width","1px")}else{this.spincontainer.css("border-right-width","1px")}this._upArrow=this.upbutton.find("div");this._downArrow=this.downbutton.find("div");this._upArrow.addClass(this.toThemeProperty("jqx-icon-arrow-up jqx-input-icon"));this._downArrow.addClass(this.toThemeProperty("jqx-icon-arrow-down jqx-input-icon"))}else{throw new Error("jqxNumberInput: Missing reference to jqxbuttons.js.")}},spinDown:function(){var m=this;var l=this.decimal;if(m.spinMode=="none"){return}if(this.decimal==null){this.setDecimal(0);return}var b=this.getvalue("negative");var q=b?-1:0;if(a.jqx.mobile.isTouchDevice()||this.inputMode=="textbox"){m._doTouchHandling()}if(!m.disabled){var o=this._selection();var n=this.decimal;var j=this.getDecimal();if(j<this.min){j=this.min;this.setDecimal(this.min);this._setSelectionStart(o.start);this.spinDown();return}else{if(j>this.max){j=this.max;this.setDecimal(this.max);this._setSelectionStart(o.start);this.spinDown();return}}if(m.spinButtonsStep<0){m.spinButtonsStep=1}var d=parseInt(m.decimal)-m.spinButtonsStep;d=d.toString().length;var f=q+d<=m.digits+m.decimalDigits;if(m.spinMode!="advanced"||m.decimalDigits===0){if(j-m.spinButtonsStep>=m.min&&f){var s=1;for(g=0;g<m.decimalDigits;g++){s=s*10}var e=(s*j)-(s*m.spinButtonsStep);e=e/s;e=this._parseDecimalValueToEditorValue(e);m.setDecimal(e)}}else{var p=this._getspindecimal();var k=this._getSeparatorPosition();var j=parseFloat(p.decimal);if(m.spinButtonsStep<0){m.spinButtonsStep=1}var d=parseInt(j)-m.spinButtonsStep;d=d.toString().length;var f=q+d<=m.digits;var s=1;var c=p.decimal.indexOf(".");if(c!=-1){var h=p.decimal.length-c-1;var s=1;for(var g=0;g<h;g++){s=s*10}j-=new Number(m.spinButtonsStep/s);j=j.toFixed(h);var c=j.toString().indexOf(".");if(c==-1){j=j.toString()+"."}var r=j.toString()+p.afterdecimal;r=new Number(r);r=r.toFixed(m.decimalDigits);if(r>=m.min){r=this._parseDecimalValueToEditorValue(r);m.setDecimal(r)}}else{if(j-m.spinButtonsStep>=m.min&&f){var e=(s*j)-(s*m.spinButtonsStep);e=e/s;var r=e.toString()+p.afterdecimal;if(r>=m.min){r=this._parseDecimalValueToEditorValue(r);m.setDecimal(r)}}}}if(r==undefined||this.inputMode!="simple"){var b=this.getvalue("negative");if(q==0&&b){this._setSelectionStart(o.start+1)}else{this._setSelectionStart(o.start)}m.savedValue=m.numberInput[0].value;if(l!=this.decimal){if(a.jqx.mobile.isTouchDevice()){this._raiseEvent(0,{})}this._raiseEvent(7,{})}a.jqx.aria(this,"aria-valuenow",this.decimal);return}r=this.decimal.toString();var b=this.getvalue("negative");if(q==0&&b){this._setSelectionStart(o.start+1)}else{if((r!=undefined&&(n==undefined||n.toString().length==r.length))){this._setSelectionStart(o.start)}else{if(b){this._setSelectionStart(o.start+1)}else{this._setSelectionStart(o.start-1)}}}if(l!=this.decimal){if(a.jqx.mobile.isTouchDevice()){this._raiseEvent(0,{})}this._raiseEvent(7,{})}a.jqx.aria(this,"aria-valuenow",this.decimal)}},_getspindecimal:function(){var n=this._selection();var o="";var k=this._getSeparatorPosition();var q=this._getVisibleItems();var e=this._getHiddenPrefixCount();var p=this.numberInput.val();if(this.numberInput.val().length==n.start&&n.length==0){this._setSelection(n.start,n.start+1);n=this._selection()}var j=this.inputMode!="advanced";var m=n.start;if(m===0){m++}if(m===1&&this.symbolPosition==="left"&&this.symbol!==""){m+=this.symbol.length}for(var c=0;c<m;c++){if(j){var l=p.substring(c,c+1);var h=(!isNaN(parseInt(l)));if(h){o+=l}if(l==this.decimalSeparator){o+=l}continue}if(q[c].canEdit&&q[c].character!=this.promptChar){o+=q[c].character}else{if(!q[c].canEdit&&this.decimalSeparatorPosition!=-1&&q[c]==q[this.decimalSeparatorPosition-e]){if(o.length==0){o="0"}o+=q[c].character}}}var g="";for(var c=m;c<q.length;c++){if(j){var l=p.substring(c,c+1);var h=(!isNaN(parseInt(l)));if(h){g+=l}if(l==this.decimalSeparator){g+=l}continue}if(q[c].canEdit&&q[c].character!=this.promptChar){g+=q[c].character}else{if(!q[c].canEdit&&this.decimalSeparatorPosition!=-1&&q[c]==q[this.decimalSeparatorPosition-e]){g+=q[c].character}}}var b=this.getvalue("negative");var f=b?"-"+this._parseDecimalValue(o).toString():this._parseDecimalValue(o).toString();return{decimal:f,afterdecimal:this._parseDecimalValue(g)}},_parseDecimalValue:function(c){if(this.decimalSeparator!="."){var d=c.toString().indexOf(this.decimalSeparator);if(d>=0){var b=c.toString().substring(0,d)+"."+c.toString().substring(d+1);return b}}return c},_parseDecimalValueToEditorValue:function(c){if(this.decimalSeparator!="."){var d=c.toString().indexOf(".");if(d>=0){var b=c.toString().substring(0,d)+this.decimalSeparator+c.toString().substring(d+1);return b}}return c},spinUp:function(){var r=this;var t=this.decimal;if(r.spinMode=="none"){return}if(this.decimal==null){this.setDecimal(0);return}if(a.jqx.mobile.isTouchDevice()||this.inputMode=="textbox"){r._doTouchHandling()}var l=this.getvalue("negative");var e=l?-1:0;if(!r.disabled){var s=this._selection();var h=r.decimal;var d=r.getDecimal();if(d<this.min){d=this.min;this.setDecimal(this.min);this._setSelectionStart(s.start);this.spinUp();return}else{if(d>this.max){d=this.max;this.setDecimal(this.max);this._setSelectionStart(s.start);this.spinUp();return}}if(r.spinButtonsStep<0){r.spinButtonsStep=1}var n=parseInt(r.decimal)+r.spinButtonsStep;n=n.toString().length;var k=e+n<=r.digits+r.decimalDigits;if(r.spinMode!="advanced"||r.decimalDigits===0){if(d+r.spinButtonsStep<=r.max&&k){var p=1;for(var o=0;o<r.decimalDigits;o++){p=p*10}var g=(p*d)+(p*r.spinButtonsStep);g=g/p;g=this._parseDecimalValueToEditorValue(g);r.setDecimal(g)}}else{var c=this._getspindecimal();var f=this._getSeparatorPosition();var d=parseFloat(c.decimal);if(r.spinButtonsStep<0){r.spinButtonsStep=1}var n=parseInt(d)+r.spinButtonsStep;n=n.toString().length;var k=e+n<=r.digits;var p=1;var q=c.decimal.indexOf(".");if(q!=-1){var m=c.decimal.length-q-1;var p=1;for(var o=0;o<m;o++){p=p*10}d+=new Number(r.spinButtonsStep/p);d=d.toFixed(m);var q=d.toString().indexOf(".");if(q==-1){d=d.toString()+"."}var j=d.toString()+c.afterdecimal;j=new Number(j);j=j.toFixed(r.decimalDigits);var b=new Number(j).toFixed(r.decimalDigits);if(b<=r.max){j=this._parseDecimalValueToEditorValue(j);r.setDecimal(j)}else{j=undefined}}else{if(d+r.spinButtonsStep<=r.max&&k){var g=(p*d)+(p*r.spinButtonsStep);g=g/p;var j=g.toString()+c.afterdecimal;var b=new Number(j).toFixed(r.decimalDigits);if(b<=r.max){j=this._parseDecimalValueToEditorValue(j);if(l&&j.indexOf("-")==-1){if(c.decimal!="-0"){j="-"+j}}r.setDecimal(j)}else{j=undefined}}}}if(j==undefined||this.inputMode!="simple"){this._setSelectionStart(s.start);r.savedValue=r.numberInput[0].value;if(t!=this.decimal){if(a.jqx.mobile.isTouchDevice()){this._raiseEvent(0,{})}this._raiseEvent(7,{})}a.jqx.aria(this,"aria-valuenow",this.decimal);return}j=this.decimal.toString();var l=this.getvalue("negative");if(e==-1&&!l){this._setSelectionStart(-1+s.start)}else{if((j!=undefined&&(h==undefined||h.toString().length==j.length))){this._setSelectionStart(s.start)}else{if(l){this._setSelectionStart(s.start)}else{this._setSelectionStart(1+s.start)}}}if(t!=this.decimal){if(a.jqx.mobile.isTouchDevice()){this._raiseEvent(0,{})}this._raiseEvent(7,{})}a.jqx.aria(this,"aria-valuenow",this.decimal)}},_exitSimpleInputMode:function(b,k,h,d){if(k==undefined){k=b.data}if(k==null){return}if(h==undefined){if(b.target!=null&&k.element!=null){if((b.target.id!=undefined&&b.target.id.toString().length>0&&k.host.find("#"+b.target.id).length>0)||b.target==k.element){return}}var f=k.host.offset();var e=f.left;var g=f.top;var c=k.host.width();var j=k.host.height();var l=a(b.target).offset();if(l.left>=e&&l.left<=e+c){if(l.top>=g&&l.top<=g+j){return}}}if(a.jqx.mobile.isOperaMiniBrowser()){k.numberInput.attr("readonly",true)}if(k.disabled||k.readOnly){return}var i=a.data(k.numberInput,"simpleInputMode");if(i==null){return}a.data(k.numberInput,"simpleInputMode",null);this._parseDecimalInSimpleMode();return false},_getDecimalInSimpleMode:function(){var d=this.decimal;if(this.decimalSeparator!="."){var b=d.toString().indexOf(this.decimalSeparator);if(b>0){var c=d.toString().substring(0,b);var d=c+"."+d.toString().substring(b+1)}}return d},_parseDecimalInSimpleMode:function(d){var k=this;var b=k.getvalue("negative");var e=this.ValueString;if(e==undefined){e=this.GetValueString(this.numberInput.val(),this.decimalSeparator,this.decimalSeparator!="")}if(this.decimalSeparator!="."){var g=e.toString().indexOf(".");if(g>0){var f=e.toString().substring(0,g);var c=f+this.decimalSeparator+e.toString().substring(g+1);e=c}}var h=b?"-":"";if(this.symbolPosition=="left"){h+=this.symbol}var i=this.digits%this.groupSize;if(i==0){i=this.groupSize}var j=e.toString();if(j.indexOf("-")>=0){j=j.substring(j.indexOf("-")+1)}h+=j;if(this.symbolPosition=="right"){h+=this.symbol}if(d!=false){k.numberInput.val(h)}},_enterSimpleInputMode:function(f,d){if(d==undefined){d=f.data}var e=this._selection();if(d==null){return}var c=d.getvalue("negative");var b=d.decimal;if(c){if(b>0){b=-b}}d.numberInput.val(b);a.data(d.numberInput,"simpleInputMode",true);if(a.jqx.mobile.isOperaMiniBrowser()){d.numberInput.attr("readonly",false)}this._parseDecimalInSimpleMode();this._setSelectionStart(e.start)},setvalue:function(b,c){if(this[b]!==undefined){if(b=="decimal"){this._setDecimal(c)}else{this[b]=c;this.propertyChangedHandler(this,b,c,c)}}},getvalue:function(b){if(b=="decimal"){if(this.negative!=undefined&&this.negative==true){if(this.decimal.toString().indexOf(",")){return -Math.abs(this.decimal.toString().replace(/,/,"."))}return -Math.abs(this[b])}}if(b in this){return this[b]}return null},_getString:function(){var c="";for(var b=0;b<this.items.length;b++){var d=this.items[b].character;c+=d}return c},_literal:function(d,b,c,e){return{character:d,regex:b,canEdit:c,isSeparator:e}},_initializeLiterals:function(){if(this.inputMode=="textbox"){return}var h=0;var e=this.negativeSymbol.length;for(var d=0;d<e;d++){var g=this.negativeSymbol.substring(d,d+1);var k="";var b=false;var l=null;if(this.negative){l=this._literal(g,k,b,false)}else{l=this._literal("",k,b,false)}this.items[h]=l;h++}var c=this.symbol.length;if(this.symbolPosition=="left"){for(d=0;d<c;d++){var g=this.symbol.substring(d,d+1);var k="";var b=false;var l=this._literal(g,k,b,false);this.items[h]=l;h++}}var f=this.digits%this.groupSize;if(f==0){f=this.groupSize}for(var d=0;d<this.digits;d++){var g=this.promptChar;var k="\\d";var b=true;var l=this._literal(g,k,b,false);this.items[h]=l;h++;if(d<this.digits-1&&this.groupSeparator!=undefined&&this.groupSeparator.length>0){f--;if(f==0){f=this.groupSize;var j=this._literal(this.groupSeparator,"",false,false);this.items[h]=j;h++}}else{if(d==this.digits-1){l.character=0}}}this.decimalSeparatorPosition=-1;if(this.decimalDigits!=undefined&&this.decimalDigits>0){var g=this.decimalSeparator;if(g.length==0){g="."}var l=this._literal(g,"",false,true);this.items[h]=l;this.decimalSeparatorPosition=h;h++;for(var d=0;d<this.decimalDigits;d++){var n=0;var k="\\d";var m=this._literal(n,k,true,false);this.items[h]=m;h++}}if(this.symbolPosition=="right"){for(var d=0;d<c;d++){var g=this.symbol.substring(d,d+1);var k="";var b=false;var l=this._literal(g,k,b);this.items[h]=l;h++}}},_match:function(c,b){var d=new RegExp(b,"i");return d.test(c)},_raiseEvent:function(m,d){var k=this.events[m];var c={};c.owner=this;if(this.host.css("display")=="none"){return true}var s=d.charCode?d.charCode:d.keyCode?d.keyCode:0;var f=true;var h=this.readOnly;var q=this;if(m==3||m==2){if(!this.disabled){if(this.inputMode!="simple"&&this.inputMode!="textbox"){this._handleMouse(d)}else{return true}}}if(m==0){var g=this.getvalue("decimal");if((this.max<g)||(this.min>g)){this.host.addClass(this.toThemeProperty("jqx-input-invalid"))}else{this.host.removeClass(this.toThemeProperty("jqx-input-invalid"));this.host.addClass(this.toThemeProperty("jqx-input"));this.host.addClass(this.toThemeProperty("jqx-rc-all"))}}var n=new a.Event(k);n.owner=this;c.value=this.getvalue("decimal");c.text=this.numberInput.val();n.args=c;if(m==7){c.type=this.changeType;this.changeType=null}if(k!=undefined){if(m!=4&&m!=5&&m!=6){f=this.host.trigger(n)}}var q=this;if(this.inputMode=="textbox"){return f}if(this.inputMode!="simple"){if(m==4){if(h||this.disabled){return false}f=q._handleKeyDown(d,s)}else{if(m==5){if(h||this.disabled){f=false}}else{if(m==6){if(h||this.disabled){return false}f=q._handleKeyPress(d,s)}}}}else{if(m==4||m==5||m==6){if(a.jqx.mobile.isTouchDevice()||this.touchMode===true){return true}if(h||this.disabled){return false}var r=String.fromCharCode(s);var l=parseInt(r);var o=true;if(!d.ctrlKey&&!d.shiftKey&&!d.metaKey){if(s>=65&&s<=90){o=false}}if(m==6&&a.jqx.browser.opera!=undefined){if(s==8){return false}}if(o){if(m==4){o=q._handleSimpleKeyDown(d,s)}if(s==107){var i=q.getvalue("negative");if(i){q.setvalue("negative",false);q.decimal=q.ValueString;q._parseDecimalInSimpleMode();q._setSelectionStart(t.start+1);q._raiseEvent(0,q.value);q._raiseEvent(1,q.numberInput.val())}}if(s==189||s==45||s==109||s==173){var t=q._selection();if(m==4){var i=q.getvalue("negative");if(i==false){q.setvalue("negative",true)}else{q.setvalue("negative",false)}q.decimal=q.ValueString;q._parseDecimalInSimpleMode();if(!i){q._setSelectionStart(t.start+1)}else{q._setSelectionStart(t.start-1)}o=false;q._raiseEvent(0,q.value);q._raiseEvent(1,q.numberInput.val())}}var b=c.ctrlKey||c.metaKey;if(!a.jqx.browser.msie){var p=d;if((b&&s==99)||(b&&s==67)||(b&&s==122)||(b&&s==90)||(b&&s==118)||(b&&s==86)||(p.shiftKey&&s==45)){if(a.jqx.browser.webkit||a.jqx.browser.chrome){q._handleSimpleKeyDown(d,s)}if(s==67){return true}return false}}if((b&&s==97)||(b&&s==65)){return true}if(m==6&&o){var j=this._isSpecialKey(s);return j}}return o}}return f},GetSelectionInValue:function(j,h,g,f){var c=0;for(var d=0;d<h.length;d++){if(d>=j){break}var e=h.substring(d,d+1);var b=(!isNaN(parseInt(e)));if(b||(f&&h.substring(d,d+1)==g)){c++}}return c},GetSelectionLengthInValue:function(h,j,g,f){var c=0;for(var d=0;d<g.length;d++){if(d>=h+j){break}var e=g.substring(d,d+1);var b=(!isNaN(parseInt(e)));if(j>0&&d>=h&&b||(d>=h&&g[d].toString()==f)){c++}}return c},GetInsertTypeByPositionInValue:function(e,g,h,f){var c="before";var b=this.GetValueString(h,g,f);var d=this.GetDigitsToSeparator(0,b,g);if(e>d){c="after"}return c},RemoveRange:function(f,e,m,g,s,b){var h=this.digits;var n=f;var t=e;var c=0;var o=this.decimal;var x=this._selection();var g=this.decimalSeparator;var j=g!="";if(t==0&&this.ValueString.length<this.decimalPossibleChars-1){return c}var u=this.GetSeparatorPositionInText(g,m);if(!s){u=this.GetSeparatorPositionInText(g,m)}if(u<0&&!j&&m.length>1){u=m.length}if(u==-1){u=m.length}var d=j?1:0;if(e<2&&b==true){var w=this.ValueString.length-this.decimalDigits-d;if((w)==h&&f+e<u){t++}}var k="";for(var r=0;r<m.length;r++){if(r<n||r>=n+t){k+=m.substring(r,r+1);continue}else{var q=m.substring(r,r+1);if(q==g){k+=g;continue}else{var q=m.substring(r,r+1);if(this.symbol&&this.symbol!=""&&this.symbol.indexOf(q)>=0){continue}if(r>u){k+="0";continue}}}var q=m.substring(r,r+1);var p=(!isNaN(parseInt(q)));if(p){c++}}if(k.length==0){k="0"}if(s){this.numberInput.val(k)}else{this.ValueString=k}var l=k.substring(0,1);if(l==g&&isNaN(parseInt(l))){var v="0"+k;k=v}this.ValueString=this.GetValueString(k,g,j);this.decimal=this.ValueString;this._parseDecimalInSimpleMode();this._setSelectionStart(n);return c},InsertDigit:function(q,w){if(typeof this.digits!="number"){this.digits=parseInt(this.digits)}if(typeof this.decimalDigits!="number"){this.decimalDigits=parseInt(this.decimalDigits)}var i=1+this.digits;var x=this._selection();var l=this.getvalue("negative");var d=false;if(x.start==0&&this.symbol!=""&&this.symbolPosition=="left"){this._setSelectionStart(x.start+1);x=this._selection();d=true}if((l&&d)||(l&&!d&&x.start==0)){this._setSelectionStart(x.start+1);x=this._selection()}var u=this.numberInput.val().substring(x.start,x.start+1);var n=this.numberInput.val();var g=this.decimalSeparator;var j=g!=""&&this.decimalDigits>0;if(u==this.symbol&&this.symbolPosition=="right"){if(this.decimalDigits==0){this.ValueString=this.GetValueString(n,g,j);if(this.ValueString.length>=i){return}}else{return}}this.ValueString=this.GetValueString(n,g,j);if(this.ValueString==""){this.ValueString=new Number(0).toFixed(this.decimalDigits)}var t=this.ValueString;if(this.decimalDigits>0&&w>=t.length){w=t.length-1}var o="";if(w<t.length){o=t.substring(w,w+1)}var h=false;var v=false;var e=this.GetInsertTypeByPositionInValue(w,g,n,j);if(e=="after"){h=true}var b=j?1:0;if(o!=g&&(this.ValueString.length-this.decimalDigits-b)>=i-1){h=true}if(o==="0"&&this.ValueString.length===1&&this.decimalDigits===0){h=true}var p=false;var r=j?1:0;if(!h&&this.ValueString&&this.ValueString.length>=this.digits+this.decimalDigits+r){return}if(h&&o!=g){if(p){w++}var m=t.substring(0,w);if(m.length==t.length){if(this.ValueString.length>=this.digits+this.decimalDigits+r){return}}var s=q;var c="";if(w+1<t.length){c=t.substring(w+1)}var k=m+s+c;this.ValueString=k}else{var m=t.substring(0,w);var s=q;var c=t.substring(w);var k=m+s+c;if(t.substring(0,1)=="0"&&t.substring(1,2)==g){k=s+t.substring(1);if(o==g){this._setSelectionStart(x.start-1);x=this._selection()}}this.ValueString=k}if(l){this.decimal="-"+this.ValueString}else{this.decimal=this.ValueString}this._parseDecimalInSimpleMode();var f=x.start;f+=1;this._setSelectionStart(f);this.value=this.decimal;this._raiseEvent(0,this.value);this._raiseEvent(1,this.numberInput.val())},GetStringToSeparator:function(h,f,e){var d="";var b=f;var g=this.GetSeparatorPositionInText(f,h);var c=h.subString(0,g);d=this.GetValueString(c,f,e);return d},GetSeparatorPositionInText:function(d,e){var c=-1;for(var b=0;b<e.length;b++){if(e.substring(b,b+1)==d){c=b;break}}return c},GetValueString:function(h,g,f){var d="";for(var c=0;c<h.length;c++){var e=h.substring(c,c+1);var b=(!isNaN(parseInt(e)));if(b){d+=e}if(e==g){d+=g}}return d},Backspace:function(){var d=this._selection();var e=this._selection();var f=this.numberInput.val();if(d.start==0&&d.length==0){return}this.isBackSpace=true;var c=f.substring[d.start,d.start+1];var b=(!isNaN(parseInt(c)));if(d.start>0&&d.length==0){this._setSelectionStart(d.start-1);var d=this._selection()}this.Delete();this._setSelectionStart(e.start-1);this.isBackSpace=false},Delete:function(c){var e=this._selection();var h=this.numberInput.val();if(e.start===0&&h.substring(0,1)=="-"){this.setvalue("negative",false);var e=this._selection();var h=this.numberInput.val()}var f=e.start;if(e.start>0&&h.substring(0,1)=="-"){f--;e.start=f}var i=e.length;i=Math.max(i,1);this.ValueString=this.GetValueString(h,this.decimalSeparator,this.decimalSeparator!="");if(f>this.ValueString.indexOf(this.decimalSeparator)&&this.decimalDigits>0){f++}var g=0;if(this.symbol){if(this.symbolPosition=="left"){g--}if(this.negative){g--}}this.RemoveRange(e.start+g,i,this.ValueString,".",false);var d=this.ValueString.substring(0,1);var b=(!isNaN(parseInt(d)));if(!b){this.ValueString="0"+this.ValueString}this.decimal=this.ValueString;this._parseDecimalInSimpleMode();this._setSelectionStart(f);this.value=this.decimal;this._raiseEvent(0,this.value);this._raiseEvent(1,this.numberInput.val())},insertsimple:function(d){var i=this._selection();var j=this.numberInput.val();if(i.start==j.length&&this.decimal!=null&&this.decimalDigits>0){return}var b=this.decimal;var g=this.decimalSeparator;this.ValueString=this.GetValueString(j,g,g!="");var h=this.GetSelectionInValue(i.start,j,g,g!="");var e=this.GetSelectionLengthInValue(i.start,i.length,j,g);var f=this.GetDigitsToSeparator(0,this.ValueString,g);var c=false;if(this.decimalDigits>0&&h>=this.ValueString.length){h--}if(this.ValueString==""){this.ValueString=new Number(0).toFixed(this.decimalDigits);this.ValueString=this.ValueString.replace(".",g);this.RemoveRange(i.start,e,this.ValueString,g,false,true);this.InsertDigit(d,0,i);return}this.RemoveRange(i.start,e,this.ValueString,g,false,true);this.InsertDigit(d,h,i)},GetDigitsToSeparator:function(d,b,e){if(e==undefined){e="."}if(b.indexOf(e)<0){return b.length}for(var c=0;c<b.length;c++){if(b.substring(c,c+1)==e){d=c;break}}return d},_handleSimpleKeyDown:function(p,t){var u=this._selection();var b=p.ctrlKey||p.metaKey;if((t==8||t==46)&&b){this.setDecimal(null);return false}if(u.start>=0&&u.start<this.items.length){var r=String.fromCharCode(t)}if(t===27){this.setDecimal(this._savedValue);var s=this.GetSeparatorPositionInText(this.decimalSeparator,this.numberInput.val());if(s!=-1){this._setSelectionStart(s)}p.preventDefault()}if(this.rtl&&t==37){var o=p.shiftKey;var d=o?1:0;if(o){this._setSelection(u.start+1-d,u.start+u.length+1)}else{this._setSelection(u.start+1-d,u.start+1)}return false}else{if(this.rtl&&t==39){var o=p.shiftKey;var d=o?1:0;if(o){this._setSelection(u.start-1,u.length+d+u.start-1)}else{this._setSelection(u.start-1,u.start-1)}return false}}if(t==8){this.Backspace();return false}if(t==190||t==110){var s=this.GetSeparatorPositionInText(this.decimalSeparator,this.numberInput.val());if(s!=-1){this._setSelectionStart(s+1)}return false}if(t==188&&this.groupSeparator===","){var m=this.numberInput.val();for(n=u.start;n<m.length;n++){if(m[n]==this.groupSeparator){this._setSelectionStart(1+n);break}}return false}var b=p.ctrlKey||p.metaKey;if((b&&t==99)||(b&&t==67)){var u=this._selection();var h="";var g=this.numberInput.val();if(u.start>0||u.length>0){for(var n=u.start;n<u.end;n++){h+=g.substring(n,n+1)}}a.data(document.body,"jqxSelection",h);if(a.jqx.browser.msie){window.clipboardData.setData("Text",h)}else{var q=this;var c=a('<textarea style="position: absolute; left: -1000px; top: -1000px;"/>');c.val(h);a("body").append(c);c.select();setTimeout(function(){document.designMode="off";c.select();c.remove();q.focus()},100)}this.savedText=h;return true}if((b&&t==122)||(b&&t==90)){return false}if((b&&t==118)||(b&&t==86)||(p.shiftKey&&t==45)){if(a.jqx.browser.msie&&!this.savedText){this.savedText=window.clipboardData.getData("Text")}else{var q=this;var l=function f(e){var i=a('<textarea style="position: absolute; left: -1000px; top: -1000px;"/>');a("body").append(i);i.focus();setTimeout(function(){var v=i.val();i.remove();q.numberInput[0].focus();e(v)},100)};l(function(e){this.savedText=e;this.val(this.savedText)}.bind(this));return}if(this.savedText!=null&&this.savedText.length>0){this.val(this.savedText)}else{this.val(a.data(document.body,"jqxSelection"))}return false}var r=String.fromCharCode(t);var k=parseInt(r);if(t>=96&&t<=105){k=t-96;t=t-48}if(!isNaN(k)){var q=this;this.insertsimple(k);return false}if(t==46){this.Delete();return false}if(t==38){this.spinUp();return false}else{if(t==40){this.spinDown();return false}}var j=this._isSpecialKey(t);if(!a.jqx.browser.mozilla){return true}return j},_getEditRange:function(){var d=0;var b=0;for(var c=0;c<this.items.length;c++){if(this.items[c].canEdit){d=c;break}}for(c=this.items.length-1;c>=0;c--){if(this.items[c].canEdit){b=c;break}}return{start:d,end:b}},_getVisibleItems:function(){var b=new Array();var c=0;for(var d=0;d<this.items.length;d++){if(this.items[d].character.toString().length>0){b[c]=this.items[d];c++}}return b},_hasEmptyVisibleItems:function(){var b=this._getVisibleItems();for(var c=0;c<b.length;c++){if(b[c].canEdit&&b[c].character==this.promptChar){return true}}return false},_getFirstVisibleNonEmptyIndex:function(){var b=this._getVisibleItems();for(var c=0;c<b.length;c++){if(b[c].canEdit&&b[c].character!=this.promptChar){return c}}},_handleMouse:function(f,b){var d=this._selection();if(d.length<=1){var c=this._getFirstVisibleNonEmptyIndex();if(d.start<c){this._setSelectionStart(c)}}},_insertKey:function(k){this.numberInput[0].focus();var d=String.fromCharCode(k);var e=parseInt(d);if(isNaN(e)){return}var n=0;for(var f=0;f<this.items.length;f++){if(this.items[f].character.length==0){n++}}var j=this._selection();var b=this;if(j.start>=0&&j.start<=this.items.length){var g=false;var h=this._getFirstVisibleNonEmptyIndex();if(j.start<h&&j.length==0){if(!isNaN(d)||d==" "){this._setSelectionStart(h);j=this._selection()}}var c=this._getFirstEditableItemIndex();var m=this._getLastEditableItemIndex();if(this.value===null){c=m=0}var l=this._getVisibleItems();a.each(l,function(x,B){if(j.start>x&&x!=l.length-1){return}var E=l[x];if(x>m){E=l[m]}if(isNaN(d)||d==" "||d==""||!E){return}if(!E.canEdit){return}var A=b._getSeparatorPosition();if(b._match(d,E.regex)){if(!g&&j.length>0){for(var w=j.start+n;w<j.end+n;w++){if(b.items[w].canEdit){if(w>A){b.items[w].character="0"}else{b.items[w].character=b.promptChar}}}var D=b._getString();g=true}var A=b._getSeparatorPosition();var y=b._hasEmptyVisibleItems();if(b.decimal==null){j.start=A-1;if(j.start<0){j.start=0}j.end=j.start}if(j.start<=A&&y){var u=x;if(b.decimalSeparatorPosition==-1&&j.start==A){u=x+1}if(b.decimal==null){u=j.start}var t="";for(var r=0;r<u;r++){if(l[r].canEdit&&l[r].character!=b.promptChar){t+=l[r].character}}t+=d;var v=b.decimal<1?1:0;if(j.start==A&&b.decimalSeparatorPosition!=-1){t+=b.decimalSeparator;v=0}for(var r=u+v;r<l.length;r++){if(l[r].character==b.decimalSeparator&&l[r].isSeparator){t+=l[r].character}else{if(l[r].canEdit&&l[r].character!=b.promptChar){t+=l[r].character}}}if(b.decimalSeparator!="."){t=b._parseDecimalValue(t)}t=parseFloat(t).toString();t=new Number(t);t=t.toFixed(b.decimalDigits);if(b.decimalSeparator!="."){t=b._parseDecimalValueToEditorValue(t)}b.setvalue("decimal",t);var D=b._getString();if(j.end<A){b._setSelectionStart(j.end+v)}else{b._setSelectionStart(j.end)}if(j.length>=1){b._setSelectionStart(j.end)}if(j.length==b.numberInput.val().length){var o=b._moveCaretToDecimalSeparator();var C=b.decimalSeparatorPosition>=0?1:0;b._setSelectionStart(o-C)}}else{if(j.start<A||j.start>A){if(b.numberInput.val().length==j.start&&b.decimalSeparatorPosition!=-1){return false}else{if(b.numberInput.val().length==j.start&&b.decimalSeparatorPosition==-1&&!y){return false}}var t="";var q=false;for(var r=0;r<x;r++){if(l[r].canEdit&&l[r].character!=b.promptChar){t+=l[r].character}if(l[r].character==b.decimalSeparator&&l[r].isSeparator){t+=l[r].character;q=true}}t+=d;var v=b.decimal<1?1:0;if(!q&&j.start==A-1){t+=b.decimalSeparator;q=true}for(var r=x+1;r<l.length;r++){if(!q&&l[r].character==b.decimalSeparator&&l[r].isSeparator){t+=l[r].character}else{if(l[r].canEdit&&l[r].character!=b.promptChar){t+=l[r].character}}}b.setvalue("decimal",t);var D=b._getString();if(b.decimalSeparatorPosition<0&&E==l[m]){b._setSelectionStart(x);return false}var z=D.indexOf(b.symbol);var s=!b.getvalue("negative")?0:1;if(z<=s){z=D.length}if(j.start<z){b._setSelectionStart(x+1)}else{b._setSelectionStart(x)}if(j.length>=1){}if(j.length==b.numberInput.val().length){var o=b._moveCaretToDecimalSeparator();b._setSelectionStart(o-1)}}}return false}})}},_handleKeyPress:function(h,d){var f=this._selection();var b=this;var i=h.ctrlKey||h.metaKey;if((i&&d==97)||(i&&d==65)){return true}if(d==8){if(f.start>0){b._setSelectionStart(f.start)}return false}if(d==46){if(f.start<this.items.length){b._setSelectionStart(f.start)}return false}if(!a.jqx.browser.mozilla){if(d==45||d==173||d==109||d==189){var c=this.getvalue("negative");if(c==false){this.setvalue("negative",true)}else{this.setvalue("negative",false)}}}if(a.jqx.browser.msie){this._insertKey(d)}var g=this._isSpecialKey(d);return g},_deleteSelectedText:function(){var e=this._selection();var d="";var g=this._getSeparatorPosition();var b=this._getVisibleItems();var f=this._getHiddenPrefixCount();if(this.numberInput.val().length==e.start&&e.length==0){this._setSelection(e.start,e.start+1);e=this._selection()}for(var c=0;c<e.start;c++){if(b[c].canEdit&&b[c].character!=this.promptChar){d+=b[c].character}else{if(!b[c].canEdit&&this.decimalSeparatorPosition!=-1&&b[c]==b[this.decimalSeparatorPosition-f]){if(d.length==0){d="0"}d+=b[c].character}}}for(var c=e.start;c<e.end;c++){if(c>g&&this.decimalSeparatorPosition!=-1){if(b[c].canEdit&&b[c].character!=this.promptChar){d+="0"}}else{if(!b[c].canEdit&&this.decimalSeparatorPosition!=-1&&b[c]==b[this.decimalSeparatorPosition-f]){if(d.length==0){d="0"}d+=b[c].character}}}for(var c=e.end;c<b.length;c++){if(b[c].canEdit&&b[c].character!=this.promptChar){d+=b[c].character}else{if(!b[c].canEdit&&this.decimalSeparatorPosition!=-1&&b[c]==b[this.decimalSeparatorPosition-f]){if(d.length==0){d="0"}d+=b[c].character}}}this.setvalue("decimal",d);return e.length>0},_restoreInitialState:function(){var c=parseInt(this.decimalDigits);if(c>0){c+=2}for(var b=this.items.length-1;b>this.items.length-1-c;b--){if(!this.items[b]){break}if(this.items[b].canEdit&&this.items[b].character==this.promptChar){this.items[b].character=0}}},clear:function(){this.setDecimal(0)},clearDecimal:function(){if(this.inputMode=="textbox"){this.numberInput.val();return}for(var b=0;b<this.items.length;b++){if(this.items[b].canEdit){this.items[b].character=this.promptChar}}this._restoreInitialState()},_saveSelectedText:function(){var d=this._selection();var e="";var b=this._getVisibleItems();if(d.start>0||d.length>0){for(var c=d.start;c<d.end;c++){if(b[c].canEdit&&b[c].character!=this.promptChar){e+=b[c].character}else{if(b[c].isSeparator){e+=b[c].character}}}}if(a.jqx.browser.msie){window.clipboardData.setData("Text",e)}return e},_pasteSelectedText:function(){var f=this._selection();var h="";var c=0;this.selectedText=a.data(document.body,"jqxSelection");if(window.clipboardData){var d=window.clipboardData.getData("Text");if(d!=this.selectedText&&d.length>0){this.selectedText=window.clipboardData.getData("Text");if(this.selectedText==null||this.selectedText==undefined){return}}}var e=f.start;var j=this._getVisibleItems();if(this.selectedText!=null){for(var i=0;i<this.selectedText.length;i++){var b=parseInt(this.selectedText[i]);if(!isNaN(b)){var g=48+b;this._insertKey(g)}}}},_getHiddenPrefixCount:function(){var c=0;if(!this.negative){c++}if(this.symbolPosition=="left"){for(var b=0;b<this.symbol.length;b++){if(this.symbol.substring(b,b+1)==""){c++}}}return c},_getEditableItem:function(){var c=this._selection();for(var b=0;b<this.items.length;b++){if(b<c.start){if(this.items[b].canEdit&&this.items[b].character!=this.promptChar){return this.items[b]}}}return null},_getEditableItems:function(){var d=new Array();var b=0;for(var c=0;c<this.items.length;c++){if(this.items[c].canEdit){d[b]=this.items[c];b++}}return d},_getValidSelectionStart:function(c){for(var b=this.items.length-1;b>=0;b--){if(this.items[b].canEdit&&this.items[b].character!=this.promptChar){return b}}return -1},_getEditableItemIndex:function(c){var f=this._selection();var g=this._getHiddenPrefixCount();var b=this._getVisibleItems();var d=f.start;var h=-1;for(var e=0;e<d;e++){if(e<b.length&&b[e].canEdit){h=e+g}}if(h==-1&&f.length>0){d=f.end;for(e=0;e<d;e++){if(e<b.length&&b[e].canEdit){h=e+g;break}}}return h},_getEditableItemByIndex:function(c){for(var b=0;b<this.items.length;b++){if(b>c){if(this.items[b].canEdit&&this.items[b].character!=this.promptChar){return b}}}return -1},_getFirstEditableItemIndex:function(){var c=this._getVisibleItems();for(var b=0;b<c.length;b++){if(c[b].character!=this.promptChar&&c[b].canEdit&&c[b].character!="0"){return b}}return -1},_getLastEditableItemIndex:function(){var c=this._getVisibleItems();for(var b=c.length-1;b>=0;b--){if(c[b].character!=this.promptChar&&c[b].canEdit){return b}}return -1},_moveCaretToDecimalSeparator:function(){for(var b=this.items.length-1;b>=0;b--){if(this.items[b].character==this.decimalSeparator&&this.items[b].isSeparator){if(!this.negative){this._setSelectionStart(b);return b}else{this._setSelectionStart(b+1);return b}break}}return this.numberInput.val().length},_handleBackspace:function(){var g=this._selection();var h=this._getHiddenPrefixCount();var b=this._getEditableItemIndex()-h;var f=this._getFirstVisibleNonEmptyIndex();var c=false;if(this.negative){c=true;if(f>=b+1||g.start==0){this.setvalue("negative",false);if(g.length==0){this._setSelectionStart(g.start-1);var g=this._selection()}}}if(b>=0){if(g.length==0&&b!=-1){this._setSelection(b,b+1)}var i=g.start>this._getSeparatorPosition()+1&&this.decimalSeparatorPosition>0;if(i){g=this._selection()}var e=this._deleteSelectedText();if(g.length<1||i){this._setSelectionStart(g.start)}else{if(g.length>=1){this._setSelectionStart(g.end)}}if(g.length==this.numberInput.val().length||c){var d=this._moveCaretToDecimalSeparator();this._setSelectionStart(d-1);if(c){this._setSelectionStart(g.start)}}}else{this._setSelectionStart(g.start)}},_handleKeyDown:function(j,p){var o=this._selection();var c=j.ctrlKey||j.metaKey;if((p==8||p==46)&&c){this.setDecimal(null);return false}if(this.rtl&&p==37){var d=j.shiftKey;var g=d?1:0;if(d){this._setSelection(o.start+1-g,o.start+o.length+1)}else{this._setSelection(o.start+1-g,o.start+1)}return false}else{if(this.rtl&&p==39){var d=j.shiftKey;var g=d?1:0;if(d){this._setSelection(o.start-1,o.length+g+o.start-1)}else{this._setSelection(o.start-1,o.start-1)}return false}}if((c&&p==97)||(c&&p==65)){return true}if((c&&p==120)||(c&&p==88)){this.selectedText=this._saveSelectedText(j);a.data(document.body,"jqxSelection",this.selectedText);this._handleBackspace();return false}if((c&&p==99)||(c&&p==67)){this.selectedText=this._saveSelectedText(j);a.data(document.body,"jqxSelection",this.selectedText);return false}if((c&&p==122)||(c&&p==90)){return false}if((c&&p==118)||(c&&p==86)||(j.shiftKey&&p==45)){this._pasteSelectedText();return false}if(o.start>=0&&o.start<this.items.length){var f=String.fromCharCode(p);var r=this.items[o.start]}if(p==8){this._handleBackspace();return false}if(p==190||p==110){this._moveCaretToDecimalSeparator();return false}if(p===188&&this.decimalSeparator===","){this._moveCaretToDecimalSeparator();return false}if(p==188&&this.groupSeparator===","){var n=this.numberInput.val();for(var h=o.start;h<n.length;h++){if(n[h]==this.groupSeparator){this._setSelectionStart(1+h);break}}return false}if(a.jqx.browser.msie==null){var f=String.fromCharCode(p);var l=parseInt(f);if(p>=96&&p<=105){l=p-96;p=p-48}if(!isNaN(l)){var k=this;k._insertKey(p);return false}}if(p==46){var q=this._getVisibleItems();if(o.start<q.length){var g=q[o.start].canEdit==false?2:1;if(o.start==0){if(this.negative){this.setvalue("negative",false);if(o.length==0){this._setSelectionStart(0)}var o=this._selection();if(o.length==0){return false}}}if(o.length==0){this._setSelection(o.start+g,o.start+g+o.length)}this._handleBackspace();if(new Number(this.decimal)<1||o.start>this._getSeparatorPosition()){this._setSelectionStart(o.end+g)}else{if(o.start+1<this.decimalSeparatorPosition){this._setSelectionStart(o.end+g)}}}return false}if(p==38){this.spinUp();return false}else{if(p==40){this.spinDown();return false}}if(p===27){this.setDecimal(this._savedValue);this._setSelectionStart(o.end);j.preventDefault()}var m=this._isSpecialKey(p);if(a.jqx.browser.mozilla){if(p==45||p==173||p==109||p==189){var b=this.getvalue("negative");if(b==false){this.setvalue("negative",true)}else{this.setvalue("negative",false)}}}if(!a.jqx.browser.mozilla){return true}return m},_isSpecialKey:function(b){if(b!=8&&b!=9&&b!=13&&b!=35&&b!=36&&b!=37&&b!=39&&b!=27&&b!=46){return false}return true},_selection:function(){try{if("selectionStart" in this.numberInput[0]){var g=this.numberInput[0];var h=g.selectionEnd-g.selectionStart;return{start:g.selectionStart,end:g.selectionEnd,length:h,text:g.value}}else{var d=document.selection.createRange();if(d==null){return{start:0,end:g.value.length,length:0}}var c=this.numberInput[0].createTextRange();var f=c.duplicate();c.moveToBookmark(d.getBookmark());f.setEndPoint("EndToStart",c);var h=d.text.length;return{start:f.text.length,end:f.text.length+d.text.length,length:h,text:d.text}}}catch(b){return{start:0,end:0,length:0}}},selectAll:function(){var b=this.numberInput;setTimeout(function(){if("selectionStart" in b[0]){b[0].focus();b[0].setSelectionRange(0,b[0].value.length)}else{var c=b[0].createTextRange();c.collapse(true);c.moveEnd("character",b[0].value.length);c.moveStart("character",0);c.select()}},10)},_setSelection:function(f,b){if(this._disableSetSelection==true){return}var e=a.jqx.mobile.isTouchDevice();if(e||this.touchMode==true){return}try{if("selectionStart" in this.numberInput[0]){this.numberInput[0].focus();this.numberInput[0].setSelectionRange(f,b)}else{var c=this.numberInput[0].createTextRange();c.collapse(true);c.moveEnd("character",b);c.moveStart("character",f);c.select()}}catch(d){}},_setSelectionStart:function(b){this._setSelection(b,b);a.data(this.numberInput,"selectionstart",b)},resize:function(c,b){this.width=c;this.height=b;this._render(false)},_render:function(g){var c=parseInt(this.host.css("border-left-width"));var j=parseInt(this.host.css("border-left-width"));var i=parseInt(this.host.css("border-left-width"));var e=parseInt(this.host.css("border-left-width"));this.numberInput.css("padding-top","0px");this.numberInput.css("padding-bottom","0px");var k=window.getComputedStyle(this.element);var h=parseInt(k.borderLeftWidth)*2;var f=k.boxSizing;if(f==="border-box"||isNaN(h)){h=0}if(this.width!=null&&this.width.toString().indexOf("px")!=-1){this.element.style.width=parseInt(this.width)-h+"px"}else{if(this.width!=undefined&&!isNaN(this.width)){this.element.style.width=parseInt(this.width)-h+"px"}}if(this.height!=null&&this.height.toString().indexOf("px")!=-1){this.element.style.height=parseInt(this.height)-h+"px"}else{if(this.height!=undefined&&!isNaN(this.height)){this.element.style.height=parseInt(this.height)-h+"px"}}var d=this.host.width();var n=this.host.height();this.numberInput.css({"border-left-width":0,"border-right-width":0,"border-bottom-width":0,"border-top-width":0});if(isNaN(i)){i=1}if(isNaN(j)){j=1}if(isNaN(e)){e=1}if(isNaN(c)){c=1}this.numberInput.css("text-align",this.textAlign);var o=this.numberInput.css("font-size");if(""==o){o=13}this.numberInput.css("height",parseInt(o)+4+"px");this.numberInput.css("width",d-2);var m=n-2*i-parseInt(o)-2;if(isNaN(m)){m=0}if(m<0){m=0}if(this.spinButtons&&this.spincontainer){d-=parseInt(this.spinButtonsWidth-2);var l=a.jqx.mobile.isTouchDevice();if(!l&&this.touchMode!==true){this.spincontainer.width(this.spinButtonsWidth);this.upbutton.width(this.spinButtonsWidth+2);this.downbutton.width(this.spinButtonsWidth+2);this.upbutton.height("50%");this.downbutton.height("50%");this.spincontainer.width(this.spinButtonsWidth)}else{this.spincontainer.width(2*(this.spinButtonsWidth));d-=this.spinButtonsWidth;this.upbutton.height("100%");this.downbutton.height("100%");this.downbutton.css("float","left");this.upbutton.css("float","right");this.upbutton.width(this.spinButtonsWidth);this.downbutton.width(1+this.spinButtonsWidth)}this._upArrow.height("100%");this._downArrow.height("100%");this.numberInput.css("width",d-6);this.numberInput.css("margin-right","2px")}var b=m/2;if(a.jqx.browser.msie&&a.jqx.browser.version<8){b=m/4}this.numberInput.css("padding-left","0px");this.numberInput.css("padding-right","0px");this.numberInput.css("padding-top",Math.round(b)+"px");this.numberInput.css("padding-bottom",Math.round(b)+"px");if(g==undefined||g==true){this.numberInput.val(this._getString());if(this.inputMode!="advanced"){this._parseDecimalInSimpleMode()}}this._addBarAndLabel(this.numberInput);this._updateHint()},_addBarAndLabel:function(e){var d=this;if(d.bar!==null||d.label!==null){return}var b=a("<label></label");if(this.hint){b[0].innerHTML=this.placeHolder}b.addClass(d.toThemeProperty("jqx-input-label"));e.after(b);d.label=b;var c=a("<span></span>");e.after(c);c.addClass(d.toThemeProperty("jqx-input-bar"));if(d.spinButtons){c.css("top",d.host.height())}else{c.css("top","0px")}d.bar=c;if(d.template){d.bar.addClass(d.toThemeProperty("jqx-"+d.template));d.label.addClass(d.toThemeProperty("jqx-"+d.template))}},destroy:function(){this._removeHandlers();this.host.remove()},inputValue:function(b){if(b===undefined){return this._value()}this.propertyChangedHandler(this,"value",this._value,b);this._refreshValue();return this},_value:function(){var b=this.numberInput.val();return b},val:function(c){if(c!==undefined&&typeof c!="object"||c===null){if(c===null){this.setDecimal(null);return}else{var f=c;if(f<0){this.setDecimal(f);return}else{this.setvalue("negative",false)}f=f.toString();if(f.indexOf(this.symbol)>-1){f=f.replace(this.symbol,"")}var b=function(l,j,k){var h=l;if(j==k){return l}var i=h.indexOf(j);while(i!=-1){h=h.replace(j,k);i=h.indexOf(j)}return h};f=f.replace(this.decimalSeparator,".");f=b(f,this.groupSeparator,"");var g="";for(var d=0;d<f.length;d++){var e=f.substring(d,d+1);if(e==="-"){g+="-"}if(e==="."){g+="."}if(e.match(/^[0-9]+$/)!=null){g+=e}}f=g;f=f.replace(/ /g,"");f=f.replace(".",this.decimalSeparator);this._setDecimal(f)}}else{return this.getDecimal()}},getDecimal:function(){if(this.decimal==null){return null}if(this.inputMode=="simple"){this._parseDecimalInSimpleMode(false);this.decimal=this._getDecimalInSimpleMode(this.decimal)}if(this.decimal==""){return 0}var b=this.getvalue("negative");if(b&&this.decimal>0){return -parseFloat(this.decimal)}return parseFloat(this.decimal)},setDecimal:function(e){var b=e;if(this.decimalSeparator!="."){if(e===null){this._setDecimal(e)}else{var d=e;if(typeof(e)!="number"){e=e.toString();var g=e.indexOf(".");if(g!=-1){var c=e.substring(0,g);var f=e.substring(g+1);d=c+"."+f;if(c.indexOf("-")!=-1){c=c.substring(1)}if(this.inputMode!="advanced"){e=c+"."+f}else{e=c+this.decimalSeparator+f}}else{var g=e.indexOf(this.decimalSeparator);if(g!=-1){var c=e.substring(0,g);var f=e.substring(g+1);d=c+"."+f;if(c.indexOf("-")!=-1){c=c.substring(1)}if(this.inputMode!="advanced"){e=c+"."+f}else{e=c+this.decimalSeparator+f}}}}if(d<0){this.setvalue("negative",true)}else{this.setvalue("negative",false)}if(e===null){this._setDecimal(e)}else{this._setDecimal(Math.abs(e))}}}else{if(e<0){this.setvalue("negative",true)}else{this.setvalue("negative",false)}if(e===null){this._setDecimal(e)}else{this._setDecimal(Math.abs(e))}}if(b==null){this.numberInput.val("")}this._updateHint()},_setDecimal:function(o){if(!this.allowNull&&o==null){this.decimal=0;o=0}if(o==null){this.decimal=null;this.value=null;this.clearDecimal();this._refreshValue();this.decimal=null;this.value=null;this.ValueString="";return}if(o.toString().indexOf("e")!=-1){o=new Number(o).toFixed(this.decimalDigits).toString()}this.clearDecimal();var p=o.toString();var q="";var b="";var d=true;if(p.length==0){p="0"}for(var g=0;g<p.length;g++){if(typeof(o)=="number"){if(p.substring(g,g+1)=="."){d=false;continue}}else{if(p.substring(g,g+1)==this.decimalSeparator){d=false;continue}}if(d){q+=p.substring(g,g+1)}else{b+=p.substring(g,g+1)}}if(q.length>0){q=parseFloat(q).toString()}var m=this.digits;if(m<q.length){q=q.substr(0,m)}var f=0;var n=this._getSeparatorPosition();var l=this._getHiddenPrefixCount();n=n+l;for(var g=n;g>=0;g--){if(g<this.items.length&&this.items[g].canEdit){if(f<q.length){this.items[g].character=q.substring(q.length-f-1,q.length-f);f++}}}f=0;for(var g=n;g<this.items.length;g++){if(this.items[g].canEdit){if(f<b.length){this.items[g].character=b.substring(f,f+1);f++}}}this._refreshValue();if(this.decimalSeparator=="."){this.ValueString=new Number(o).toFixed(this.decimalDigits)}else{var j=o.toString().indexOf(this.decimalSeparator);if(j>0){var h=o.toString().substring(0,j);var e=h+"."+o.toString().substring(j+1);this.ValueString=new Number(e).toFixed(this.decimalDigits)}else{this.ValueString=new Number(o).toFixed(this.decimalDigits)}}if(this.inputMode!="advanced"){this._parseDecimalInSimpleMode();this._raiseEvent(1,this.ValueString)}if(this.inputMode=="textbox"){this.decimal=this.ValueString;var c=this.getvalue("negative");if(c){this.decimal="-"+this.ValueString}}var o=this.val();if(o<this.min||o>this.max){this.host.addClass("jqx-input-invalid")}else{this.host.removeClass("jqx-input-invalid")}this._updateHint()},_getSeparatorPosition:function(){var b=this._getHiddenPrefixCount();if(this.decimalSeparatorPosition>0){return this.decimalSeparatorPosition-b}return this.items.length-b},_setTheme:function(){this.host.removeClass();this.host.addClass(this.toThemeProperty("jqx-input"));this.host.addClass(this.toThemeProperty("jqx-rc-all"));this.host.addClass(this.toThemeProperty("jqx-widget"));this.host.addClass(this.toThemeProperty("jqx-widget-content"));this.host.addClass(this.toThemeProperty("jqx-numberinput"));if(this.spinButtons){this.downbutton.removeClass();this.upbutton.removeClass();this.downbutton.addClass(this.toThemeProperty("jqx-scrollbar-button-state-normal"));this.upbutton.addClass(this.toThemeProperty("jqx-scrollbar-button-state-normal"));this._upArrow.removeClass();this._downArrow.removeClass();this._upArrow.addClass(this.toThemeProperty("jqx-icon-arrow-up"));this._downArrow.addClass(this.toThemeProperty("jqx-icon-arrow-down"))}this.numberInput.removeClass();this.numberInput.addClass(this.toThemeProperty("jqx-input-content"))},propertiesChangedHandler:function(d,b,c){if(c&&c.width&&c.height&&Object.keys(c).length==2){d._render()}},propertyChangedHandler:function(c,e,h,g){if(c.batchUpdate&&c.batchUpdate.width&&c.batchUpdate.height&&Object.keys(c.batchUpdate).length==2){return}if(e=="template"){c.upbutton.removeClass(c.toThemeProperty("jqx-"+c.template));c.downbutton.removeClass(c.toThemeProperty("jqx-"+c.template));c.upbutton.addClass(c.toThemeProperty("jqx-"+c.template));c.downbutton.addClass(c.toThemeProperty("jqx-"+c.template))}if(e=="digits"||e=="groupSize"||e=="decimalDigits"){if(g<0){throw new Exception(this.invalidArgumentExceptions[0])}}if(e=="placeHolder"){if(!c.isMaterialized()){c.numberInput.attr("placeholder",c.placeHolder)}else{if(c.hint){c.label[0].innerHTML=c.placeHolder}}}if(e==="theme"){a.jqx.utilities.setTheme(h,g,c.host)}if(e=="digits"){if(g!=h){c.digits=parseInt(g)}}if(e=="min"||e=="max"){a.jqx.aria(c,"aria-value"+e,g.toString());c._refreshValue()}if(e=="decimalDigits"){if(g!=h){c.decimalDigits=parseInt(g)}}if(e=="decimalSeparator"||e=="digits"||e=="symbol"||e=="symbolPosition"||e=="groupSize"||e=="groupSeparator"||e=="decimalDigits"||e=="negativeSymbol"){var b=c.decimal;if(e=="decimalSeparator"&&g==""){g=" "}if(h!=g){var f=c._selection();c.items=new Array();c._initializeLiterals();c.value=c._getString();c._refreshValue();c._setDecimal(b)}}if(e=="rtl"){if(c.rtl){if(c.spincontainer){c.spincontainer.css("float","right");c.spincontainer.css("border-right-width","1px")}c.numberInput.css("float","right")}else{if(c.spincontainer){c.spincontainer.css("float","right");c.spincontainer.css("border-right-width","1px")}c.numberInput.css("float","left")}}if(e=="spinButtons"){if(c.spincontainer){if(!g){c.spincontainer.css("display","none")}else{c.spincontainer.css("display","block")}c._render()}else{c._spinButtons()}}if(e==="touchMode"){c.inputMode="textbox";c.spinMode="simple";c.render()}if(e=="negative"&&c.inputMode=="advanced"){var f=c._selection();var j=0;if(g){c.items[0].character=c.negativeSymbol[0];j=1}else{c.items[0].character="";j=-1}c._refreshValue();if(c.isInitialized){c._setSelection(f.start+j,f.end+j)}}if(e=="decimal"){c.value=g;c.setDecimal(g)}if(e==="value"){c.value=g;c.setDecimal(g);c._raiseEvent(1,g)}if(e=="textAlign"){c.textAlign=g;c._render()}if(e=="disabled"){c.numberInput.attr("disabled",g);if(c.disabled){c.host.addClass(c.toThemeProperty("jqx-fill-state-disabled"))}else{c.host.removeClass(c.toThemeProperty("jqx-fill-state-disabled"))}a.jqx.aria(c,"aria-disabled",g.toString())}if(e=="readOnly"){c.readOnly=g}if(e=="promptChar"){for(var d=0;d<c.items.length;d++){if(c.items[d].character==c.promptChar){c.items[d].character=g}}c.promptChar=g}if(e=="width"){c.width=g;c._render()}else{if(e=="height"){c.height=g;c._render()}}},_value:function(){var b=this.value;return b},_refreshValue:function(){var h=this.value;var c=0;if(this.inputMode==="textbox"){return}this.value=this._getString();h=this.value;var g="";for(var d=0;d<this.items.length;d++){var f=this.items[d];if(f.canEdit&&f.character!=this.promptChar){g+=f.character}if(d==this.decimalSeparatorPosition){g+="."}}this.decimal=g;var e=false;if(this.oldValue!==h){this.oldValue=h;this._raiseEvent(0,h);e=true}if(this.inputMode!="simple"){this.numberInput.val(h);if(e){this._raiseEvent(1,h)}}if(h==null){this.numberInput.val("")}if(this.inputMode==="advanced"){var b=this;var j=b.element.className.indexOf("jqx-fill-state-focus")>=0;if(j){return}if(b.autoHidePromptChar){b.numberInput[0].value=b.numberInput[0].value.replace(new RegExp(b.promptChar,"g")," ").replace(new RegExp(b.groupSeparator,"g")," ")}}}})})(jqxBaseFramework)})();
/***/ }),
/***/ 5349:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxScrollBar","",{});a.extend(a.jqx._jqxScrollBar.prototype,{defineInstance:function(){var b={height:null,width:null,vertical:false,min:0,max:1000,value:0,step:10,largestep:50,thumbMinSize:10,thumbSize:0,thumbStep:"auto",roundedCorners:"all",showButtons:true,disabled:false,touchMode:"auto",touchModeStyle:"auto",thumbTouchSize:0,_triggervaluechanged:true,rtl:false,areaDownCapture:false,areaUpCapture:false,_initialLayout:false,offset:0,reference:0,velocity:0,frame:0,timestamp:0,ticker:null,amplitude:0,target:0};if(this===a.jqx._jqxScrollBar.prototype){return b}a.extend(true,this,b);return b},createInstance:function(b){this.render()},render:function(){this._mouseup=new Date();var c=this;function f(l){const o=document.createElement("div");o.id="jqxScrollOuterWrap";o.className="jqx-scroll-outer";const h=document.createElement("div");h.id="jqxScrollWrap";h.className="jqx-scroll-wrap";const n=document.createElement("div");n.id="jqxScrollBtnUp";n.className="jqx-scroll-item";const p=document.createElement("div");p.className="jqx-scroll-btn-inner";n.appendChild(p);const i=document.createElement("div");i.id="jqxScrollAreaUp";i.className="jqx-scroll-item";const g=document.createElement("div");g.id="jqxScrollThumb";g.className="jqx-scroll-item";const k=document.createElement("div");k.id="jqxScrollAreaDown";k.className="jqx-scroll-item";const m=document.createElement("div");m.id="jqxScrollBtnDown";m.className="jqx-scroll-item";const j=document.createElement("div");j.className="jqx-scroll-btn-inner";m.appendChild(j);h.appendChild(n);h.appendChild(i);h.appendChild(g);h.appendChild(k);h.appendChild(m);o.appendChild(h);while(l.firstChild){l.removeChild(l.firstChild)}l.appendChild(o)}var e=c.host?c.host[0]:this.element;f(e);if(this.width!=undefined&&parseInt(this.width)>0){this.host.width(parseInt(this.width))}if(this.height!=undefined&&parseInt(this.height)>0){this.host.height(parseInt(this.height))}this.isPercentage=false;if(this.width!=null&&this.width.toString().indexOf("%")!=-1){this.host.width(this.width);this.isPercentage=true}if(this.height!=null&&this.height.toString().indexOf("%")!=-1){this.host.height(this.height);this.isPercentage=true}if(this.isPercentage){var d=this;a.jqx.utilities.resize(this.host,function(){d._arrange()},false)}this.thumbCapture=false;this.scrollOuterWrap=a(this.element.firstChild);this.scrollWrap=a(this.scrollOuterWrap[0].firstChild);this.btnUp=a(this.scrollWrap[0].firstChild);this.areaUp=a(this.btnUp[0].nextSibling);this.btnThumb=a(this.areaUp[0].nextSibling);this.arrowUp=a(this.btnUp[0].firstChild);this.areaDown=a(this.btnThumb[0].nextSibling);this.btnDown=a(this.areaDown[0].nextSibling);this.arrowDown=a(this.btnDown[0].firstChild);var b=this.element.id;this.btnUp[0].id="jqxScrollBtnUp"+b;this.btnDown[0].id="jqxScrollBtnDown"+b;this.btnThumb[0].id="jqxScrollThumb"+b;this.areaUp[0].id="jqxScrollAreaUp"+b;this.areaDown[0].id="jqxScrollAreaDown"+b;this.scrollWrap[0].id="jqxScrollWrap"+b;this.scrollOuterWrap[0].id="jqxScrollOuterWrap"+b;if(!this.host.jqxRepeatButton){throw new Error("jqxScrollBar: Missing reference to jqxbuttons.js.");return}this.btnUp.jqxRepeatButton({_ariaDisabled:true,overrideTheme:true,disabled:this.disabled});this.btnDown.jqxRepeatButton({_ariaDisabled:true,overrideTheme:true,disabled:this.disabled});this.btnDownInstance=a.data(this.btnDown[0],"jqxRepeatButton").instance;this.btnUpInstance=a.data(this.btnUp[0],"jqxRepeatButton").instance;this.areaUp.jqxRepeatButton({_scrollAreaButton:true,_ariaDisabled:true,overrideTheme:true});this.areaDown.jqxRepeatButton({_scrollAreaButton:true,_ariaDisabled:true,overrideTheme:true});this.btnThumb.jqxButton({_ariaDisabled:true,overrideTheme:true,disabled:this.disabled});this.propertyChangeMap.value=function(g,i,h,j){if(!(isNaN(j))){if(h!=j){g.setPosition(parseFloat(j),true)}}};this.propertyChangeMap.width=function(g,i,h,j){if(g.width!=undefined&&parseInt(g.width)>0){g.host.width(parseInt(g.width));g._arrange()}};this.propertyChangeMap.height=function(g,i,h,j){if(g.height!=undefined&&parseInt(g.height)>0){g.host.height(parseInt(g.height));g._arrange()}};this.propertyChangeMap.theme=function(g,i,h,j){g.setTheme()};this.propertyChangeMap.max=function(g,i,h,j){if(!(isNaN(j))){if(h!=j){g.max=parseInt(j);if(g.min>g.max){g.max=g.min+1}g._arrange();g.setPosition(g.value)}}};this.propertyChangeMap.min=function(g,i,h,j){if(!(isNaN(j))){if(h!=j){g.min=parseInt(j);if(g.min>g.max){g.max=g.min+1}g._arrange();g.setPosition(g.value)}}};this.propertyChangeMap.disabled=function(g,i,h,j){if(h!=j){if(j){g.host.addClass(g.toThemeProperty("jqx-fill-state-disabled"))}else{g.host.removeClass(g.toThemeProperty("jqx-fill-state-disabled"))}g.btnUp.jqxRepeatButton("disabled",g.disabled);g.btnDown.jqxRepeatButton("disabled",g.disabled);g.btnThumb.jqxButton("disabled",g.disabled)}};this.propertyChangeMap.touchMode=function(g,i,h,j){if(h!=j){g._updateTouchBehavior();if(j===true){g.showButtons=false;g.refresh()}else{if(j===false){g.showButtons=true;g.refresh()}}}};this.propertyChangeMap.rtl=function(g,i,h,j){if(h!=j){g.refresh()}};this.buttonUpCapture=false;this.buttonDownCapture=false;this._updateTouchBehavior();this.setPosition(this.value);this._addHandlers();this.setTheme()},resize:function(c,b){this.width=c;this.height=b;this._arrange()},_updateTouchBehavior:function(){this.isTouchDevice=a.jqx.mobile.isTouchDevice();if(this.touchMode==true){if(a.jqx.browser.msie&&a.jqx.browser.version<9){this.setTheme();return}this.isTouchDevice=true;a.jqx.mobile.setMobileSimulator(this.btnThumb[0]);this._removeHandlers();this._addHandlers();this.setTheme()}else{if(this.touchMode==false){this.isTouchDevice=false}}},_addHandlers:function(){var j=this;var e=false;try{if(("ontouchstart" in window)||window.DocumentTouch&&document instanceof DocumentTouch){e=true;this._touchSupport=true}}catch(f){}if(j.isTouchDevice||e){this.addHandler(this.btnThumb,a.jqx.mobile.getTouchEventName("touchend"),function(k){var l=j.vertical?j.toThemeProperty("jqx-scrollbar-thumb-state-pressed"):j.toThemeProperty("jqx-scrollbar-thumb-state-pressed-horizontal");var m=j.toThemeProperty("jqx-fill-state-pressed");j.btnThumb.removeClass(l);j.btnThumb.removeClass(m);if(!j.disabled){j.handlemouseup(j,k)}return false});this.addHandler(this.btnThumb,a.jqx.mobile.getTouchEventName("touchstart"),function(k){if(!j.disabled){if(j.touchMode==true){k.clientX=k.originalEvent.clientX;k.clientY=k.originalEvent.clientY}else{var l=k;if(l.originalEvent.touches&&l.originalEvent.touches.length){k.clientX=l.originalEvent.touches[0].clientX;k.clientY=l.originalEvent.touches[0].clientY}else{k.clientX=k.originalEvent.clientX;k.clientY=k.originalEvent.clientY}}j.handlemousedown(k);if(k.preventDefault){k.preventDefault()}}});a.jqx.mobile.touchScroll(this.element,j.max,function(q,p,l,k,m){if(j.host.css("visibility")=="visible"){if(m){if(j.touchMode==true){m.clientX=m.originalEvent.clientX;m.clientY=m.originalEvent.clientY}else{var o=m;if(o.originalEvent.touches&&o.originalEvent.touches.length){m.clientX=o.originalEvent.touches[0].clientX;m.clientY=o.originalEvent.touches[0].clientY}else{m.clientX=m.originalEvent.clientX;m.clientY=m.originalEvent.clientY}}}var n=j.vertical?j.toThemeProperty("jqx-scrollbar-thumb-state-pressed"):j.toThemeProperty("jqx-scrollbar-thumb-state-pressed-horizontal");j.btnThumb.addClass(n);j.btnThumb.addClass(j.toThemeProperty("jqx-fill-state-pressed"));j.thumbCapture=true;j.element.setAttribute("touched","");j.handlemousemove(m)}},j.element.id,j.host,j.host)}if(!this.isTouchDevice){try{if(document.referrer!=""||window.frameElement){if(window.top!=null&&window.top!=window.self){var b=null;if(window.parent&&document.referrer){b=document.referrer}if(b&&b.indexOf(document.location.host)!=-1){var g=function(k){if(!j.disabled){j.handlemouseup(j,k)}};if(window.top.document.addEventListener){window.top.document.addEventListener("mouseup",g,false)}else{if(window.top.document.attachEvent){window.top.document.attachEvent("onmouseup",g)}}}}}}catch(i){}var c="click mouseup mousedown";this.addHandler(this.btnDown,c,function(l){var k=j.step;if(Math.abs(j.max-j.min)<=k){k=1}if(j.rtl&&!j.vertical){k=-j.step}switch(l.type){case"click":if(j.buttonDownCapture&&!j.isTouchDevice){if(!j.disabled){j.setPosition(j.value+k)}}else{if(!j.disabled&&j.isTouchDevice){j.setPosition(j.value+k)}}break;case"mouseup":if(!j.btnDownInstance.base.disabled&&j.buttonDownCapture){j.buttonDownCapture=false;j.btnDown.removeClass(j.toThemeProperty("jqx-scrollbar-button-state-pressed"));j.btnDown.removeClass(j.toThemeProperty("jqx-fill-state-pressed"));j._removeArrowClasses("pressed","down");j.handlemouseup(j,l);j.setPosition(j.value+k);return false}break;case"mousedown":if(!j.btnDownInstance.base.disabled){j.buttonDownCapture=true;j.btnDown.addClass(j.toThemeProperty("jqx-fill-state-pressed"));j.btnDown.addClass(j.toThemeProperty("jqx-scrollbar-button-state-pressed"));j._addArrowClasses("pressed","down");return false}break}});this.addHandler(this.btnUp,c,function(l){var k=j.step;if(Math.abs(j.max-j.min)<=k){k=1}if(j.rtl&&!j.vertical){k=-j.step}switch(l.type){case"click":if(j.buttonUpCapture&&!j.isTouchDevice){if(!j.disabled){j.setPosition(j.value-k)}}else{if(!j.disabled&&j.isTouchDevice){j.setPosition(j.value-k)}}break;case"mouseup":if(!j.btnUpInstance.base.disabled&&j.buttonUpCapture){j.buttonUpCapture=false;j.btnUp.removeClass(j.toThemeProperty("jqx-scrollbar-button-state-pressed"));j.btnUp.removeClass(j.toThemeProperty("jqx-fill-state-pressed"));j._removeArrowClasses("pressed","up");j.handlemouseup(j,l);j.setPosition(j.value-k);return false}break;case"mousedown":if(!j.btnUpInstance.base.disabled){j.buttonUpCapture=true;j.btnUp.addClass(j.toThemeProperty("jqx-fill-state-pressed"));j.btnUp.addClass(j.toThemeProperty("jqx-scrollbar-button-state-pressed"));j._addArrowClasses("pressed","up");return false}break}})}var h="click";if(this.isTouchDevice){h=a.jqx.mobile.getTouchEventName("touchend")}this.addHandler(this.areaUp,h,function(l){if(!j.disabled){var k=j.largestep;if(j.rtl&&!j.vertical){k=-j.largestep}var n=true;var m=j.btnThumb.offset();if(!j.vertical){if(j.areaClickOffset.x>=m.left){n=false}}else{if(j.areaClickOffset.y>=m.top){n=false}}if(n){j.setPosition(j.value-k)}return false}});this.addHandler(this.areaDown,h,function(l){if(!j.disabled){var k=j.largestep;if(j.rtl&&!j.vertical){k=-j.largestep}var n=true;var m=j.btnThumb.offset();if(!j.vertical){if(j.areaClickOffset.x<=m.left){n=false}}else{if(j.areaClickOffset.y<=m.top){n=false}}if(n){j.setPosition(j.value+k)}return false}});this.addHandler(this.areaUp,"mousedown",function(k){if(!j.disabled){j.areaUpCapture=true;j.areaClickOffset={x:k.pageX,y:k.pageY};return false}});this.addHandler(this.areaDown,"mousedown",function(k){if(!j.disabled){j.areaDownCapture=true;j.areaClickOffset={x:k.pageX,y:k.pageY};return false}});this.addHandler(this.btnThumb,"mousedown dragstart",function(k){if(k.type==="dragstart"){return false}if(!j.disabled){j.handlemousedown(k)}if(k.preventDefault){k.preventDefault()}});this.addHandler(a(document),"mouseup."+this.element.id,function(k){if(!j.disabled){j.handlemouseup(j,k)}});if(!this.isTouchDevice){this.mousemoveFunc=function(k){if(!j.disabled){j.handlemousemove(k)}};this.addHandler(a(document),"mousemove."+this.element.id,this.mousemoveFunc);this.addHandler(a(document),"mouseleave."+this.element.id,function(k){if(!j.disabled){j.handlemouseleave(k)}});this.addHandler(a(document),"mouseenter."+this.element.id,function(k){if(!j.disabled){j.handlemouseenter(k)}});if(!j.disabled){this.addHandler(this.btnUp,"mouseenter mouseleave",function(k){if(k.type==="mouseenter"){if(!j.disabled&&!j.btnUpInstance.base.disabled&&j.touchMode!=true){j.btnUp.addClass(j.toThemeProperty("jqx-scrollbar-button-state-hover"));j.btnUp.addClass(j.toThemeProperty("jqx-fill-state-hover"));j._addArrowClasses("hover","up")}}else{if(!j.disabled&&!j.btnUpInstance.base.disabled&&j.touchMode!=true){j.btnUp.removeClass(j.toThemeProperty("jqx-scrollbar-button-state-hover"));j.btnUp.removeClass(j.toThemeProperty("jqx-fill-state-hover"));j._removeArrowClasses("hover","up")}}});var d=j.toThemeProperty("jqx-scrollbar-thumb-state-hover");if(!j.vertical){d=j.toThemeProperty("jqx-scrollbar-thumb-state-hover-horizontal")}this.addHandler(this.btnThumb,"mouseenter mouseleave",function(k){if(k.type==="mouseenter"){if(!j.disabled&&j.touchMode!=true){j.btnThumb.addClass(d);j.btnThumb.addClass(j.toThemeProperty("jqx-fill-state-hover"))}}else{if(!j.disabled&&j.touchMode!=true){j.btnThumb.removeClass(d);j.btnThumb.removeClass(j.toThemeProperty("jqx-fill-state-hover"))}}});this.addHandler(this.btnDown,"mouseenter mouseleave",function(k){if(k.type==="mouseenter"){if(!j.disabled&&!j.btnDownInstance.base.disabled&&j.touchMode!=true){j.btnDown.addClass(j.toThemeProperty("jqx-scrollbar-button-state-hover"));j.btnDown.addClass(j.toThemeProperty("jqx-fill-state-hover"));j._addArrowClasses("hover","down")}}else{if(!j.disabled&&!j.btnDownInstance.base.disabled&&j.touchMode!=true){j.btnDown.removeClass(j.toThemeProperty("jqx-scrollbar-button-state-hover"));j.btnDown.removeClass(j.toThemeProperty("jqx-fill-state-hover"));j._removeArrowClasses("hover","down")}}})}}},destroy:function(){var b=this.btnUp;var f=this.btnDown;var d=this.btnThumb;var c=this.scrollWrap;var h=this.areaUp;var e=this.areaDown;this.arrowUp.remove();delete this.arrowUp;this.arrowDown.remove();delete this.arrowDown;e.removeClass();h.removeClass();f.removeClass();b.removeClass();d.removeClass();b.jqxRepeatButton("destroy");f.jqxRepeatButton("destroy");h.jqxRepeatButton("destroy");e.jqxRepeatButton("destroy");d.jqxButton("destroy");var g=a.data(this.element,"jqxScrollBar");this._removeHandlers();this.btnUp=null;this.btnDown=null;this.scrollWrap=null;this.areaUp=null;this.areaDown=null;this.scrollOuterWrap=null;delete this.mousemoveFunc;delete this.btnDownInstance;delete this.btnUpInstance;delete this.scrollOuterWrap;delete this.scrollWrap;delete this.btnDown;delete this.areaDown;delete this.areaUp;delete this.btnDown;delete this.btnUp;delete this.btnThumb;delete this.propertyChangeMap.value;delete this.propertyChangeMap.min;delete this.propertyChangeMap.max;delete this.propertyChangeMap.touchMode;delete this.propertyChangeMap.disabled;delete this.propertyChangeMap.theme;delete this.propertyChangeMap;if(g){delete g.instance}this.host.removeData();this.host.remove();delete this.host;delete this.set;delete this.get;delete this.call;delete this.element},_removeHandlers:function(){this.removeHandler(this.btnUp,"mouseenter");this.removeHandler(this.btnDown,"mouseenter");this.removeHandler(this.btnThumb,"mouseenter");this.removeHandler(this.btnUp,"mouseleave");this.removeHandler(this.btnDown,"mouseleave");this.removeHandler(this.btnThumb,"mouseleave");this.removeHandler(this.btnUp,"click");this.removeHandler(this.btnDown,"click");this.removeHandler(this.btnDown,"mouseup");this.removeHandler(this.btnUp,"mouseup");this.removeHandler(this.btnDown,"mousedown");this.removeHandler(this.btnUp,"mousedown");this.removeHandler(this.areaUp,"mousedown");this.removeHandler(this.areaDown,"mousedown");this.removeHandler(this.areaUp,"click");this.removeHandler(this.areaDown,"click");this.removeHandler(this.btnThumb,"mousedown");this.removeHandler(this.btnThumb,"dragstart");this.removeHandler(a(document),"mouseup."+this.element.id);if(!this.mousemoveFunc){this.removeHandler(a(document),"mousemove."+this.element.id)}else{this.removeHandler(a(document),"mousemove."+this.element.id,this.mousemoveFunc)}this.removeHandler(a(document),"mouseleave."+this.element.id);this.removeHandler(a(document),"mouseenter."+this.element.id);var b=this},_addArrowClasses:function(c,b){if(c=="pressed"){c="selected"}if(c!=""){c="-"+c}if(this.vertical){if(b=="up"||b==undefined){this.arrowUp.addClass(this.toThemeProperty("jqx-icon-arrow-up"+c))}if(b=="down"||b==undefined){this.arrowDown.addClass(this.toThemeProperty("jqx-icon-arrow-down"+c))}}else{if(b=="up"||b==undefined){this.arrowUp.addClass(this.toThemeProperty("jqx-icon-arrow-left"+c))}if(b=="down"||b==undefined){this.arrowDown.addClass(this.toThemeProperty("jqx-icon-arrow-right"+c))}}},_removeArrowClasses:function(c,b){if(c=="pressed"){c="selected"}if(c!=""){c="-"+c}if(this.vertical){if(b=="up"||b==undefined){this.arrowUp.removeClass(this.toThemeProperty("jqx-icon-arrow-up"+c))}if(b=="down"||b==undefined){this.arrowDown.removeClass(this.toThemeProperty("jqx-icon-arrow-down"+c))}}else{if(b=="up"||b==undefined){this.arrowUp.removeClass(this.toThemeProperty("jqx-icon-arrow-left"+c))}if(b=="down"||b==undefined){this.arrowDown.removeClass(this.toThemeProperty("jqx-icon-arrow-right"+c))}}},setTheme:function(){var d=this.btnUp;var t=this.btnDown;var l=this.btnThumb;var o=this.scrollWrap;var h=this.areaUp;var k=this.areaDown;var u=this.arrowUp;var j=this.arrowDown;this.scrollWrap[0].className=this.toThemeProperty("jqx-reset");this.scrollOuterWrap[0].className=this.toThemeProperty("jqx-reset");var n=this.toThemeProperty("jqx-reset");this.areaDown[0].className=n;this.areaUp[0].className=n;var m=this.toThemeProperty("jqx-scrollbar")+" "+this.toThemeProperty("jqx-widget")+" "+this.toThemeProperty("jqx-widget-content");this.host.addClass(m);if(this.isTouchDevice){this.host.addClass(this.toThemeProperty("jqx-scrollbar-mobile"))}t[0].className=this.toThemeProperty("jqx-scrollbar-button-state-normal");d[0].className=this.toThemeProperty("jqx-scrollbar-button-state-normal");var c="";if(this.vertical){u[0].className=n+" "+this.toThemeProperty("jqx-icon-arrow-up");j[0].className=n+" "+this.toThemeProperty("jqx-icon-arrow-down");c=this.toThemeProperty("jqx-scrollbar-thumb-state-normal")}else{u[0].className=n+" "+this.toThemeProperty("jqx-icon-arrow-left");j[0].className=n+" "+this.toThemeProperty("jqx-icon-arrow-right");c=this.toThemeProperty("jqx-scrollbar-thumb-state-normal-horizontal")}c+=" "+this.toThemeProperty("jqx-fill-state-normal");l[0].className=c;if(this.disabled){o.addClass(this.toThemeProperty("jqx-fill-state-disabled"));o.removeClass(this.toThemeProperty("jqx-scrollbar-state-normal"))}else{o.addClass(this.toThemeProperty("jqx-scrollbar-state-normal"));o.removeClass(this.toThemeProperty("jqx-fill-state-disabled"))}if(this.roundedCorners=="all"){this.host.addClass(this.toThemeProperty("jqx-rc-all"));if(this.vertical){var e=a.jqx.cssroundedcorners("top");e=this.toThemeProperty(e);d.addClass(e);var p=a.jqx.cssroundedcorners("bottom");p=this.toThemeProperty(p);t.addClass(p)}else{var i=a.jqx.cssroundedcorners("left");i=this.toThemeProperty(i);d.addClass(i);var f=a.jqx.cssroundedcorners("right");f=this.toThemeProperty(f);t.addClass(f)}}else{var q=a.jqx.cssroundedcorners(this.roundedCorners);q=this.toThemeProperty(q);d.addClass(q);t.addClass(q)}var q=a.jqx.cssroundedcorners(this.roundedCorners);q=this.toThemeProperty(q);if(!l.hasClass(q)){l.addClass(q)}if(d.css("display")==="none"){this.showButtons=false;this.touchModeStyle=true;l.addClass(this.toThemeProperty("jqx-scrollbar-thumb-state-normal-touch"))}if(this.isTouchDevice&&this.touchModeStyle!=false){this.showButtons=false;l.addClass(this.toThemeProperty("jqx-scrollbar-thumb-state-normal-touch"))}var b=this.scrollOuterWrap[0];b.className+=" jqx-scroll-outer";var g=o;g.className+=" jqx-scroll-wrap";d[0].className+=" jqx-scroll-item";btnUpInner=d[0].firstChild;btnUpInner.className+=" jqx-scroll-btn-inner";h[0].className+=" jqx-scroll-item";var s=l[0];s.className+=" jqx-scroll-item";k[0].className+=" jqx-scroll-item";t[0].className+=" jqx-scroll-item";var r=t[0].firstChild;r.className+="jqx-scroll-btn-inner"},isScrolling:function(){if(this.thumbCapture==undefined||this.buttonDownCapture==undefined||this.buttonUpCapture==undefined||this.areaDownCapture==undefined||this.areaUpCapture==undefined){return false}return this.thumbCapture||this.buttonDownCapture||this.buttonUpCapture||this.areaDownCapture||this.areaUpCapture},track:function(){var d,b,e,c;d=Date.now();b=d-this.timestamp;this.timestamp=d;e=this.offset-this.frame;this.frame=this.offset;c=1000*e/(1+b);this.velocity=0.2*c+0.2*this.velocity},handlemousedown:function(e){if(this.thumbCapture==undefined||this.thumbCapture==false){this.thumbCapture=true;var c=this.btnThumb;if(c!=null){c.addClass(this.toThemeProperty("jqx-fill-state-pressed"));if(this.vertical){c.addClass(this.toThemeProperty("jqx-scrollbar-thumb-state-pressed"))}else{c.addClass(this.toThemeProperty("jqx-scrollbar-thumb-state-pressed-horizontal"))}this.element.setAttribute("touched","")}}var d=this;function b(f){d.reference=parseInt(d.btnThumb[0].style.top);d.offset=parseInt(d.btnThumb[0].style.top);if(!d.vertical){d.reference=parseInt(d.btnThumb[0].style.left);d.offset=parseInt(d.btnThumb[0].style.left)}d.velocity=d.amplitude=0;d.frame=d.offset;d.timestamp=Date.now();clearInterval(d.ticker);d.ticker=setInterval(function(){d.track()},100)}if(this.thumbCapture&&a.jqx.scrollAnimation){b(e)}this.dragStartX=e.clientX;this.dragStartY=e.clientY;this.dragStartValue=this.value},toggleHover:function(c,b){},refresh:function(){this._arrange()},_setElementPosition:function(c,b,d){if(!isNaN(b)){if(parseInt(c[0].style.left)!=parseInt(b)){c[0].style.left=b+"px"}}if(!isNaN(d)){if(parseInt(c[0].style.top)!=parseInt(d)){c[0].style.top=d+"px"}}},_setElementTopPosition:function(b,c){if(!isNaN(c)){b[0].style.top=c+"px"}},_setElementLeftPosition:function(c,b){if(!isNaN(b)){c[0].style.left=b+"px"}},handlemouseleave:function(e){var b=this.btnUp;var d=this.btnDown;if(this.buttonDownCapture||this.buttonUpCapture){b.removeClass(this.toThemeProperty("jqx-scrollbar-button-state-pressed"));d.removeClass(this.toThemeProperty("jqx-scrollbar-button-state-pressed"));this._removeArrowClasses("pressed")}if(this.thumbCapture!=true){return}var c=this.btnThumb;var f=this.vertical?this.toThemeProperty("jqx-scrollbar-thumb-state-pressed"):this.toThemeProperty("jqx-scrollbar-thumb-state-pressed-horizontal");c.removeClass(f);c.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));this.element.removeAttribute("touched")},handlemouseenter:function(e){var b=this.btnUp;var d=this.btnDown;if(this.buttonUpCapture){b.addClass(this.toThemeProperty("jqx-scrollbar-button-state-pressed"));b.addClass(this.toThemeProperty("jqx-fill-state-pressed"));this._addArrowClasses("pressed","up");this.element.setAttribute("touched","")}if(this.buttonDownCapture){d.addClass(this.toThemeProperty("jqx-scrollbar-button-state-pressed"));d.addClass(this.toThemeProperty("jqx-fill-state-pressed"));this._addArrowClasses("pressed","down");this.element.setAttribute("touched","")}if(this.thumbCapture!=true){return}var c=this.btnThumb;if(this.vertical){c.addClass(this.toThemeProperty("jqx-scrollbar-thumb-state-pressed"))}else{c.addClass(this.toThemeProperty("jqx-scrollbar-thumb-state-pressed-horizontal"))}c.addClass(this.toThemeProperty("jqx-fill-state-pressed"));this.element.setAttribute("touched","")},handlemousemove:function(b){var i=this.btnUp;var e=this.btnDown;var d=0;if(e==null||i==null){return}if(i!=null&&e!=null&&this.buttonDownCapture!=undefined&&this.buttonUpCapture!=undefined){if(this.buttonDownCapture&&b.which==d){e.removeClass(this.toThemeProperty("jqx-scrollbar-button-state-pressed"));e.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));this._removeArrowClasses("pressed","down");this.buttonDownCapture=false}else{if(this.buttonUpCapture&&b.which==d){i.removeClass(this.toThemeProperty("jqx-scrollbar-button-state-pressed"));i.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));this._removeArrowClasses("pressed","up");this.buttonUpCapture=false}}}if(this.thumbCapture!=true){return false}var k=this.btnThumb;if(b.which==d&&!this.isTouchDevice&&!this._touchSupport){this.thumbCapture=false;this._arrange();var j=this.vertical?this.toThemeProperty("jqx-scrollbar-thumb-state-pressed"):this.toThemeProperty("jqx-scrollbar-thumb-state-pressed-horizontal");k.removeClass(j);k.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));return true}if(b.preventDefault!=undefined){b.preventDefault()}if(b.originalEvent!=null){b.originalEvent.mouseHandled=true}if(b.stopPropagation!=undefined){b.stopPropagation()}var l=0;try{if(!this.vertical){l=b.clientX-this.dragStartX}else{l=b.clientY-this.dragStartY}var f=this._btnAndThumbSize;if(!this._btnAndThumbSize){f=(this.vertical)?i.height()+e.height()+k.height():i.width()+e.width()+k.width()}var g=(this.max-this.min)/(this.scrollBarSize-f);if(this.thumbStep=="auto"){l*=g}else{l*=g;if(Math.abs(this.dragStartValue+l-this.value)>=parseInt(this.thumbStep)){var c=Math.round(parseInt(l)/this.thumbStep)*this.thumbStep;if(this.rtl&&!this.vertical){this.setPosition(this.dragStartValue-c)}else{this.setPosition(this.dragStartValue+c)}return false}else{return false}}var c=l;if(this.rtl&&!this.vertical){c=-l}this.setPosition(this.dragStartValue+c);this.offset=parseInt(k[0].style.left);if(this.vertical){this.offset=parseInt(k[0].style.top)}}catch(h){alert(h)}return false},handlemouseup:function(j,b){var g=false;if(this.thumbCapture){this.thumbCapture=false;var i=this.btnThumb;var h=this.vertical?this.toThemeProperty("jqx-scrollbar-thumb-state-pressed"):this.toThemeProperty("jqx-scrollbar-thumb-state-pressed-horizontal");i.removeClass(h);i.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));this.element.removeAttribute("touched");g=true;this._mouseup=new Date();if(a.jqx.scrollAnimation){var d=this;function f(){var k,o;if(d.amplitude){k=Date.now()-d.timestamp;o=-d.amplitude*Math.exp(-k/325);if(o>0.5||o<-0.5){var l=(d.max-d.min)/(d.scrollBarSize-d._btnAndThumbSize);var n=l*(d.target+o);var m=n;if(d.rtl&&!d.vertical){m=-n}d.setPosition(d.dragStartValue+m);requestAnimationFrame(f)}else{var l=(d.max-d.min)/(d.scrollBarSize-d._btnAndThumbSize);var n=l*(d.target+o);var m=n;if(d.rtl&&!d.vertical){m=-n}d.setPosition(d.dragStartValue+m)}}}clearInterval(this.ticker);if(this.velocity>25||this.velocity<-25){this.amplitude=0.8*this.velocity;this.target=Math.round(this.offset+this.amplitude);if(!this.vertical){this.target-=this.reference}else{this.target-=this.reference}this.timestamp=Date.now();requestAnimationFrame(f)}}}this.areaDownCapture=this.areaUpCapture=false;if(this.buttonUpCapture||this.buttonDownCapture){var e=this.btnUp;var c=this.btnDown;this.buttonUpCapture=false;this.buttonDownCapture=false;e.removeClass(this.toThemeProperty("jqx-scrollbar-button-state-pressed"));c.removeClass(this.toThemeProperty("jqx-scrollbar-button-state-pressed"));e.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));c.removeClass(this.toThemeProperty("jqx-fill-state-pressed"));this._removeArrowClasses("pressed");this.element.removeAttribute("touched");g=true;this._mouseup=new Date()}if(g){if(b.preventDefault!=undefined){b.preventDefault()}if(b.originalEvent!=null){b.originalEvent.mouseHandled=true}if(b.stopPropagation!=undefined){b.stopPropagation()}}},setPosition:function(b,g){var d=this.element;if(b==undefined||b==NaN){b=this.min}if(b>=this.max){b=this.max}if(b<this.min){b=this.min}if(this.value!==b||g==true){if(b==this.max){var c=new a.Event("complete");this.host.trigger(c)}var f=this.value;if(this._triggervaluechanged){var e=new a.Event("valueChanged");e.previousValue=this.value;e.currentValue=b}this.value=b;this._positionelements();if(this._triggervaluechanged){this.host.trigger(e)}if(this.valueChanged){this.valueChanged({currentValue:this.value,previousvalue:f})}}return b},val:function(b){var c=function(e){for(var d in e){if(e.hasOwnProperty(d)){return false}}if(typeof b=="number"){return false}if(typeof b=="date"){return false}if(typeof b=="boolean"){return false}if(typeof b=="string"){return false}return true};if(c(b)||arguments.length==0){return this.value}else{this.setPosition(b);return b}},_getThumbSize:function(c){var b=this.max-this.min;var d=0;if(b>1){d=(c/(b+c)*c)}else{if(b==1){d=c-1}else{if(b==0){d=c}}}if(this.thumbSize>0){d=this.thumbSize}if(d<this.thumbMinSize){d=this.thumbMinSize}return Math.min(d,c)},_positionelements:function(){var g=this.element;var n=this.areaUp;var e=this.areaDown;var h=this.btnUp;var f=this.btnDown;var o=this.btnThumb;var b=this.scrollWrap;var p=this._height?this._height:this.host.height();var c=this._width?this._width:this.host.width();var l=(!this.vertical)?p:c;if(!this.showButtons){l=0}var m=(!this.vertical)?c:p;this.scrollBarSize=m;var d=this._getThumbSize(m-2*l);d=Math.floor(d);if(d<this.thumbMinSize){d=this.thumbMinSize}if(p==NaN||p<10){p=10}if(c==NaN||c<10){c=10}l+=2;this.btnSize=l;var i=this._btnAndThumbSize;if(!this._btnAndThumbSize){var i=(this.vertical)?2*this.btnSize+o.outerHeight():2*this.btnSize+o.outerWidth();i=Math.round(i)}var k=(m-i)/(this.max-this.min)*(this.value-this.min);if(this.rtl&&!this.vertical){k=(m-i)/(this.max-this.min)*(this.max-this.value-this.min)}k=Math.round(k);if(k<0){k=0}if(this.vertical){var j=m-k-i;if(j<0){j=0}e[0].style.height=j+"px";n[0].style.height=k+"px";this._setElementTopPosition(n,l);this._setElementTopPosition(o,l+k);this._setElementTopPosition(e,l+k+d)}else{n[0].style.width=k+"px";if(m-k-i>=0){e[0].style.width=m-k-i+"px"}else{e[0].style.width="0px"}this._setElementLeftPosition(n,l);this._setElementLeftPosition(o,l+k);this._setElementLeftPosition(e,2+l+k+d)}},_arrange:function(){var m=this;if(m._initialLayout){m._initialLayout=false;return}if(m.min>m.max){var x=m.min;m.min=m.max;m.max=x}if(m.min<0){var k=m.max-m.min;m.min=0;m.max=k}var d=m.element;var g=m.areaUp;var t=m.areaDown;var c=m.btnUp;var l=m.btnDown;var u=m.btnThumb;var p=m.scrollWrap;var n=parseInt(m.element.style.height);var q=parseInt(m.element.style.width);if(m.isPercentage){var n=m.host.height();var q=m.host.width()}if(isNaN(n)){n=0}if(isNaN(q)){q=0}m._width=q;m._height=n;var b=(!m.vertical)?n:q;if(!m.showButtons){b=0}c[0].style.width=b+"px";c[0].style.height=b+"px";l[0].style.width=b+"px";l[0].style.height=b+"px";if(m.vertical){p[0].style.width=q+2+"px";p[0].style.height="100%"}else{p[0].style.height=n+2+"px"}m._setElementPosition(c,1,1);var s=b+2;if(m.vertical){m._setElementPosition(l,1,n-s)}else{m._setElementPosition(l,q-s,1)}var f=(!m.vertical)?q:n;m.scrollBarSize=f;var h=m._getThumbSize(f-2*s);h=Math.floor(h-2);if(h<m.thumbMinSize){h=m.thumbMinSize}var o=false;if(m.isTouchDevice&&m.touchModeStyle!=false){o=true}if(!m.vertical){u[0].style.width=h+"px";u[0].style.height=n+"px";if(o&&m.thumbTouchSize!==0){u.css({height:m.thumbTouchSize+"px"});u.css("margin-top",(m.host.height()-m.thumbTouchSize)/2)}}else{u[0].style.width=q+"px";u[0].style.height=h+"px";if(o&&m.thumbTouchSize!==0){u.css({width:m.thumbTouchSize+"px"});u.css("margin-left",(m.host.width()-m.thumbTouchSize)/2)}}if(n==NaN||n<10){n=10}if(q==NaN||q<10){q=10}m.btnSize=b;var e=(m.vertical)?2*s+(2+parseInt(u[0].style.height)):2*s+(2+parseInt(u[0].style.width));e=Math.round(e);m._btnAndThumbSize=e;var w=(f-e)/(m.max-m.min)*(m.value-m.min);if(m.rtl&&!m.vertical){w=(f-e)/(m.max-m.min)*(m.max-m.value-m.min)}w=Math.round(w);if(isNaN(w)||w<0||w===-Infinity||w===Infinity){w=0}if(m.vertical){var v=(f-w-e);if(v<0){v=0}t[0].style.height=v+"px";t[0].style.width=q+"px";g[0].style.height=w+"px";g[0].style.width=q+"px";var i=parseInt(m.element.style.height);if(m.isPercentage){i=m.host.height()}u[0].style.visibility="inherit";if(i-3*parseInt(b)<0||i<e){u[0].style.visibility="hidden"}m._setElementPosition(g,1,s);m._setElementPosition(u,1,s+w);m._setElementPosition(t,1,s+w+h)}else{if(w>0){g[0].style.width=w+"px"}if(n>0){g[0].style.height=n+"px"}var j=(f-w-e);if(j<0){j=0}t[0].style.width=j+"px";t[0].style.height=n+"px";var r=parseInt(m.element.style.width);if(m.isPercentage){r=m.host.width()}u[0].style.visibility="inherit";if((r-3*parseInt(b)<0)||(r<e)){u[0].style.visibility="hidden"}m._setElementPosition(g,s,1);m._setElementPosition(u,s+w,1);m._setElementPosition(t,s+w+h,1)}}})})(jqxBaseFramework)})();
/***/ }),
/***/ 1526:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return !!a.data(c,b)}}):function(d,c,b){return !!a.data(d,b[3])}});a.jqx.jqxWidget("jqxSortable","",{});a.extend(a.jqx._jqxSortable.prototype,{defineInstance:function(){var b={appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,maxItems:9999,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholderShow:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:999999,element:null,defaultElement:"<div>",mouseHandled:false,cancel:"input,textarea,button,select,option",distance:1,delay:0,widgetName:"widget",widgetEventPrefix:"",disabled:false,create:null,_touchEvents:{mousedown:a.jqx.mobile.getTouchEventName("touchstart"),click:a.jqx.mobile.getTouchEventName("touchstart"),mouseup:a.jqx.mobile.getTouchEventName("touchend"),mousemove:a.jqx.mobile.getTouchEventName("touchmove"),mouseenter:"mouseenter",mouseleave:"mouseleave"},_events:["activate","beforeStop","change","deactivate","out","over","receive","removeItem","sort","start","stop","update","create"]};if(this===a.jqx._jqxSortable.prototype){return b}a.extend(true,this,b);return b},createInstance:function(){this._render()},_render:function(){var c=this;this._isTouchDevice=a.jqx.mobile.isTouchDevice();this.containerCache={};var b=a(b||c.defaultElement||this)[0];c.document=a(b.style?b.ownerDocument:b.document||b);c.window=a(c.document[0].defaultView||c.document[0].parentWindow);c.host.addClass(c.toThemeProperty("jqx-widget jqx-sortable"));c.refresh();c.floating=c.itemsArray.length?c.axis==="x"||c._isFloating(c.itemsArray[0].item):false;c.offset=c.host.offset();c._handleMouse();c._cancelSelect();c.ready=true},_isOverAxis:function(c,b,d){return(c>=b)&&(c<(b+d))},_isFloating:function(b){return(/left|right/).test(b.css("float"))||(/inline|table-cell/).test(b.css("display"))},_getEvent:function(b){if(this._isTouchDevice){return this._touchEvents[b]+".jqxSortable"+this.element.id}else{return b+".jqxSortable"+this.element.id}},_handleMouse:function(){var b=this;b.addHandler(this.host,this._getEvent("mousedown"),function(c){return b._mouseDown(c)});b.addHandler(b.host,this._getEvent("click"),function(c){if(true===a.data(c.target,b.widgetName+".preventClickEvent")){a.removeData(c.target,b.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});b.started=false},widget:function(){return this.host},_mouseDestroy:function(){var b=this;b.host.off("."+this.widgetName);if(b._mouseMoveDelegate){b.removeHandler(a(document),this._getEvent("mousemove"));b.removeHandler(a(document),this._getEvent("mouseup"))}},_mouseDown:function(b){var g=this;if(g.mouseHandled){return}g._mouseMoved=false;if(g._isTouchDevice){var j=a.jqx.position(b);b.pageX=j.left;b.pageY=j.top}(g._mouseStarted&&g._mouseUp(b));g._mouseDownEvent=b;if(this._isTouchDevice){b.which=1}var d=(b.which===1),h=(typeof this.cancel==="string"&&b.target.nodeName?a(b.target).closest(this.cancel).length:false);if(this._isTouchDevice){d=true}if(!d||h||!this._mouseCapture(b)){return true}g.mouseDelayMet=!g.delay;if(!g.mouseDelayMet){g._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=true},g.delay)}if(g._mouseDistanceMet(b)&&g._mouseDelayMet(b)){g._mouseStarted=(g._mouseStart(b)!==false);if(!g._mouseStarted){b.preventDefault();return true}}if(true===a.data(b.target,this.widgetName+".preventClickEvent")){a.removeData(b.target,this.widgetName+".preventClickEvent")}g._mouseMoveDelegate=function(k){return g._mouseMove(k)};g._mouseUpDelegate=function(l){var k=g._mouseUp(l);if(g._isTouchDevice){return true}return k};g.addHandler(a(document),this._getEvent("mousemove"),g._mouseMoveDelegate);g.addHandler(a(document),this._getEvent("mouseup"),g._mouseUpDelegate);try{if(document.referrer!=""||window.frameElement){if(window.top!=null&&window.top!=window.self){var f=function(k){g._mouseUp(k)};var c=null;if(window.parent&&document.referrer){c=document.referrer}if(c&&c.indexOf(document.location.host)!=-1){if(window.top.document){if(window.top.document.addEventListener){window.top.document.addEventListener("mouseup",f,false)}else{if(window.top.document.attachEvent){window.top.document.attachEvent("onmouseup",f)}}}}}}}catch(i){}if(this._isTouchDevice){return true}b.preventDefault();var e=true;return true},_mouseMove:function(c){var b=this;if(this._isTouchDevice){c.which=1;var d=a.jqx.position(c);c.pageX=d.left;c.pageY=d.top}if(b._mouseMoved){if(a.jqx.browser.msie&&a.jqx.browser.version>11){if(!c.which){return b._mouseUp(c)}}else{if(a.jqx.browser.msie&&(!document.documentMode||document.documentMode<9)&&!c.button){return b._mouseUp(c)}else{if(!c.which){return b._mouseUp(c)}}}}if(c.which||c.button){b._mouseMoved=true}if(b._mouseStarted){b._mouseDrag(c);return c.preventDefault()}if(b._mouseDistanceMet(c)&&b._mouseDelayMet(c)){b._mouseStarted=(b._mouseStart(b._mouseDownEvent,c)!==false);(b._mouseStarted?b._mouseDrag(c):b._mouseUp(c))}return !b._mouseStarted},_mouseUp:function(e){var d=this;try{d.removeHandler(a(document),this._getEvent("mousemove"));d.removeHandler(a(document),this._getEvent("mouseup"));if(d._mouseStarted){d._mouseStarted=false;if(e.target===d._mouseDownEvent.target){a.data(e.target,d.widgetName+".preventClickEvent",true)}d._mouseStop(e)}var b=false}catch(c){}return false},_mouseDistanceMet:function(b){return(Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},scrollParent:function(d){var c=this.css("position"),b=c==="absolute",e=d?/(auto|scroll|hidden)/:/(auto|scroll)/,f=this.parents().filter(function(){var g=a(this);if(b&&g.css("position")==="static"){return false}return e.test(g.css("overflow")+g.css("overflow-y")+g.css("overflow-x"))}).eq(0);return c==="fixed"||!f.length?a(this[0].ownerDocument||document):f},destroy:function(){this.host.removeClass("jqx-sortable jqx-sortable-disabled").find(".jqx-sortable-handle").removeClass("jqx-sortable-handle");this._mouseDestroy();for(var b=this.itemsArray.length-1;b>=0;b--){this.itemsArray[b].item.removeData(this.widgetName+"-item")}return this},_mouseCapture:function(d,e){var b=null,f=false,c=this;if(c.reverting){return false}if(c.disabled||c.type==="static"){return false}c._refreshItems(d);a(d.target).parents().each(function(){if(a.data(this,c.widgetName+"-item")===c){b=a(this);return false}});if(a.data(d.target,c.widgetName+"-item")===c){b=a(d.target)}if(!b){return false}if(c.handle&&!e){a(c.handle,b).find("*").addBack().each(function(){if(this===d.target){f=true}});if(!f){return false}}c.currentItem=b;c._removeCurrentsFromItems();return true},_mouseStart:function(f,g,c){var d,b,e=this;e.currentContainer=this;e._currentContainer=this;e.refreshPositions();e.helper=e._utility(f);e._cacheHelperProportions();e._storeMargins();e.scrollParent=e.helper.scrollParent();e.offset=e.currentItem.offset();e.offset={top:e.offset.top-e.margins.top,left:e.offset.left-e.margins.left};a.extend(e.offset,{click:{left:f.pageX-e.offset.left,top:f.pageY-e.offset.top},parent:e._getParentOffset(),relative:e._getRelativeOffset()});e.helper.css("position","absolute");e.cssPosition=e.helper.css("position");e.originalPosition=e._generatePosition(f);e.originalPageX=f.pageX;e.originalPageY=f.pageY;(e.cursorAt&&e._adjustOffsetFromHelper(e.cursorAt));e.domPosition={prev:e.currentItem.prev()[0],parent:e.currentItem.parent()[0]};if(e.helper[0]!==e.currentItem[0]){e.currentItem.hide()}e._createPlaceholder();if(e.containment){e._setContainment()}if(e.cursor&&e.cursor!=="auto"){b=e.document.find("body");e.storedCursor=b.css("cursor");b.css("cursor",e.cursor);e.storedStylesheet=a("<style>*{ cursor: "+e.cursor+" !important; }</style>").appendTo(b)}if(e.opacity){if(e.helper.css("opacity")){e._storedOpacity=e.helper.css("opacity")}e.helper.css("opacity",e.opacity)}if(e.zIndex){if(e.helper.css("zIndex")){e._storedZIndex=e.helper.css("zIndex")}e.helper.css("zIndex",e.zIndex)}if(e.scrollParent[0]!==e.document[0]&&e.scrollParent[0].tagName!=="HTML"){e.overflowOffset=e.scrollParent.offset()}e._raiseEvent("9",e._uiHash());if(!e._preserveHelperProportions){e._cacheHelperProportions()}if(!c){for(d=e.owners.length-1;d>=0;d--){e.owners[d]._raiseEvent("0",e._uiHash(this))}}if(a.jqx.ddmanager){a.jqx.ddmanager.current=this}if(a.jqx.ddmanager&&!e.dropBehaviour){a.jqx.ddmanager.prepareOffsets(this,f)}e.dragging=true;e.helper.addClass("jqx-sortable-helper");e._mouseDrag(f);return true},_mouseDrag:function(g){var d,f,c,j,h=this,b=false;var e=this;e.position=e._generatePosition(g);e.positionAbs=e._convertPositionTo("absolute");if(!e.lastPositionAbs){e.lastPositionAbs=e.positionAbs}if(e.scroll){if(e.scrollParent[0]!==e.document[0]&&e.scrollParent[0].tagName!=="HTML"){if((e.overflowOffset.top+e.scrollParent[0].offsetHeight)-g.pageY<h.scrollSensitivity){e.scrollParent[0].scrollTop=b=e.scrollParent[0].scrollTop+h.scrollSpeed}else{if(g.pageY-e.overflowOffset.top<h.scrollSensitivity){e.scrollParent[0].scrollTop=b=e.scrollParent[0].scrollTop-h.scrollSpeed}}if((e.overflowOffset.left+e.scrollParent[0].offsetWidth)-g.pageX<h.scrollSensitivity){e.scrollParent[0].scrollLeft=b=e.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(g.pageX-e.overflowOffset.left<h.scrollSensitivity){e.scrollParent[0].scrollLeft=b=e.scrollParent[0].scrollLeft-h.scrollSpeed}}}else{if(g.pageY-e.document.scrollTop()<h.scrollSensitivity){b=e.document.scrollTop(e.document.scrollTop()-h.scrollSpeed)}else{if(e.window.height()-(g.pageY-e.document.scrollTop())<h.scrollSensitivity){b=e.document.scrollTop(e.document.scrollTop()+h.scrollSpeed)}}if(g.pageX-e.document.scrollLeft()<h.scrollSensitivity){b=e.document.scrollLeft(e.document.scrollLeft()-h.scrollSpeed)}else{if(e.window.width()-(g.pageX-e.document.scrollLeft())<h.scrollSensitivity){b=e.document.scrollLeft(e.document.scrollLeft()+h.scrollSpeed)}}}if(b!==false&&a.jqx.ddmanager&&!h.dropBehaviour){a.jqx.ddmanager.prepareOffsets(this,g)}}e.positionAbs=e._convertPositionTo("absolute");if(!e.axis||e.axis!=="y"){e.helper[0].style.left=e.position.left+"px"}if(!e.axis||e.axis!=="x"){e.helper[0].style.top=e.position.top+"px"}for(d=e.itemsArray.length-1;d>=0;d--){f=e.itemsArray[d];c=f.item[0];j=e._intersectsWithPointer(f);if(!j){continue}if(f.instance!==e.currentContainer){continue}if(c!==e.currentItem[0]&&e.placeholder[j===1?"next":"prev"]()[0]!==c&&!a.contains(e.placeholder[0],c)&&(e.type==="semi-dynamic"?!a.contains(e.host[0],c):true)){e.direction=j===1?"down":"up";if(e.tolerance==="pointer"||e._intersectsWithSides(f)){e._rearrange(g,f)}else{break}e._raiseEvent("2",e._uiHash());break}}e._contactOwners(g);if(a.jqx.ddmanager){a.jqx.ddmanager.drag(this,g)}e._raiseEvent("8",e._uiHash());e.lastPositionAbs=e.positionAbs;return false},_mouseStop:function(d,f){var c=this;if(!d){return}if(a.jqx.ddmanager&&!this.dropBehaviour){a.jqx.ddmanager.drop(this,d)}if(c.revert){var c=this,g=c.placeholder.offset(),b=c.axis,e={};if(!b||b==="x"){e.left=g.left-c.offset.parent.left-c.margins.left+(c.offsetParent[0]===c.document[0].body?0:c.offsetParent[0].scrollLeft)}if(!b||b==="y"){e.top=g.top-c.offset.parent.top-c.margins.top+(c.offsetParent[0]===c.document[0].body?0:c.offsetParent[0].scrollTop)}c.reverting=true;a(this.helper).animate(e,parseInt(this.revert,10)||500,function(){c._clear(d)})}else{c._clear(d,f)}return false},cancelSort:function(){var c=this;if(c.dragging){c._mouseUp({target:null});if(c.helper==="original"){c.currentItem.css(c._storedCSS).removeClass("jqx-sortable-helper")}else{c.currentItem.show()}for(var b=c.owners.length-1;b>=0;b--){c.owners[b]._raiseEvent("3",c._uiHash(this));if(c.owners[b].containerCache.over){c.owners[b]._raiseEvent("4",c._uiHash(this));c.owners[b].containerCache.over=0}}}if(c.placeholder){if(c.placeholder[0].parentNode){c.placeholder[0].parentNode.removeChild(c.placeholder[0])}if(c.helper!=="original"&&c.helper&&c.helper[0].parentNode){c.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(c.domPosition.prev){a(c.domPosition.prev).after(c.currentItem)}else{a(c.domPosition.parent).prepend(c.currentItem)}}return this},serialize:function(d){var b=this._getItemsAsjQuery(d&&d.connected),c=[];d=d||{};a(b).each(function(){var e=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||(/(.+)[\-=_](.+)/));if(e){c.push((d.key||e[1]+"[]")+"="+(d.key&&d.expression?e[1]:e[2]))}});if(!c.length&&d.key){c.push(d.key+"=")}return c.join("&")},toArray:function(d){var b=this._getItemsAsjQuery(d&&d.connected),c=[];d=d||{};b.each(function(){c.push(a(d.item||this).attr(d.attribute||"id")||"")});return c},_intersectsWith:function(o){var e=this.positionAbs.left,d=e+this.helperProportions.width,m=this.positionAbs.top,k=m+this.helperProportions.height,f=o.left,c=f+o.width,p=o.top,j=p+o.height,q=this.offset.click.top,i=this.offset.click.left,h=(this.axis==="x")||((m+q)>p&&(m+q)<j),n=(this.axis==="y")||((e+i)>f&&(e+i)<c),g=h&&n;if(this.tolerance==="pointer"||this.forcePointerForowners||(this.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>o[this.floating?"width":"height"])){return g}else{return(f<e+(this.helperProportions.width/2)&&d-(this.helperProportions.width/2)<c&&p<m+(this.helperProportions.height/2)&&k-(this.helperProportions.height/2)<j)}},_intersectsWithPointer:function(d){var e=(this.axis==="x")||this._isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height),c=(this.axis==="y")||this._isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width),g=e&&c,b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(!g){return false}return this.floating?(((f&&f==="right")||b==="down")?2:1):(b&&(b==="down"?2:1))},_intersectsWithSides:function(e){var c=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+(e.height/2),e.height),d=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+(e.width/2),e.width),b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(this.floating&&f){return((f==="right"&&d)||(f==="left"&&!d))}else{return b&&((b==="down"&&c)||(b==="up"&&!c))}},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!==0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!==0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this;return b.connectWith.constructor===String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var d,c,k,f,g=[],e=[],h=this._connectWith();if(h&&b){for(d=h.length-1;d>=0;d--){k=a(h[d],this.document[0]);for(c=k.length-1;c>=0;c--){f=a.data(k[c],this.widgetFullName).instance;if(f&&f!==this&&!f.disabled){e.push([a.isFunction(f.items)?f.items.call(f.host):a(f.items,f.host).not(".jqx-sortable-helper").not(".jqx-sortable-placeholder"),f])}}}}e.push([a.isFunction(this.items)?this.items.call(this.host,null,{options:this,item:this.currentItem}):a(this.items,this.host).not(".jqx-sortable-helper").not(".jqx-sortable-placeholder"),this]);function l(){g.push(this)}for(d=e.length-1;d>=0;d--){e[d][0].each(l)}return a(g)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.itemsArray=a.grep(this.itemsArray,function(d){for(var c=0;c<b.length;c++){if(b[c]===d.item[0]){return false}}return true})},_refreshItems:function(b){this.itemsArray=[];this.owners=[this];var f,d,m,g,l,c,o,n,h=this.itemsArray,e=[[a.isFunction(this.items)?this.items.call(this.host[0],b,{item:this.currentItem}):a(this.items,this.host),this]],k=this._connectWith();if(k&&this.ready){for(f=k.length-1;f>=0;f--){m=a(k[f],this.document[0]);for(d=m.length-1;d>=0;d--){g=a.data(m[d],this.widgetName);if(g&&g!==this&&!g.instance.disabled){e.push([a.isFunction(g.instance.items)?g.items.call(g.instance.host[0],b,{item:this.currentItem}):a(g.instance.items,g.instance.host),g.instance]);this.owners.push(g.instance)}}}}for(f=e.length-1;f>=0;f--){l=e[f][1];c=e[f][0];for(d=0,n=c.length;d<n;d++){o=a(c[d]);o.data(this.widgetName+"-item",l);h.push({item:o,instance:l,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}var d,e,c,f;for(d=this.itemsArray.length-1;d>=0;d--){e=this.itemsArray[d];if(e.instance!==this.currentContainer&&this.currentContainer&&e.item[0]!==this.currentItem[0]){continue}c=this.toleranceElement?a(this.toleranceElement,e.item):e.item;if(!b){e.width=c.outerWidth();e.height=c.outerHeight()}f=c.offset();e.left=f.left;e.top=f.top}if(this.custom&&this.custom.refreshowners){this.custom.refreshowners.call(this)}else{for(d=this.owners.length-1;d>=0;d--){f=this.owners[d].host.offset();this.owners[d].containerCache.left=f.left;this.owners[d].containerCache.top=f.top;this.owners[d].containerCache.width=this.owners[d].host.outerWidth();this.owners[d].containerCache.height=this.owners[d].host.outerHeight()}}return this},_cancelSelect:function(){var b=this;b.host.addClass("jqx-disableselect")},_createPlaceholder:function(c){var c=c||this;var b,d=c;if(!d.placeholderShow||d.placeholderShow.constructor===String){b=d.placeholderShow;d.placeholderShow={element:function(){var f=c.currentItem[0].nodeName.toLowerCase(),e=a("<"+f+">",c.document[0]).addClass(b||c.currentItem[0].className+" jqx-sortable-placeholder").removeClass("jqx-sortable-helper");if(f==="tr"){c.currentItem.children().each(function(){a("<td> </td>",c.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(e)})}else{if(f==="img"){e.attr("src",c.currentItem.attr("src"))}}if(!b){e.css("visibility","hidden")}return e},update:function(e,f){if(b&&!d.forcePlaceholderSize){return}if(!f.height()){f.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10))}if(!f.width()){f.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}}c.placeholder=a(d.placeholderShow.element.call(c.host,c.currentItem));c.currentItem.after(c.placeholder);c.placeholderShow.update(c,c.placeholder)},_contactOwners:function(b){var g,e,n,h,k,p,q,f,l,d,c=null,o=null;for(g=this.owners.length-1;g>=0;g--){if(a.contains(this.currentItem[0],this.owners[g].host[0])){continue}if(this._intersectsWith(this.owners[g].containerCache)){if(c&&a.contains(this.owners[g].host[0],c.host[0])){continue}c=this.owners[g];o=g}else{if(this.owners[g].containerCache.over){this.owners[g]._raiseEvent("4",this._uiHash(this));this.owners[g].containerCache.over=0}}}if(!c){return}if(this.owners.length===1){if(!this.owners[o].containerCache.over){this.owners[o]._raiseEvent("5",this._uiHash(this));this.owners[o].containerCache.over=1}}else{n=10000;h=null;l=c.floating||this._isFloating(this.currentItem);k=l?"left":"top";p=l?"width":"height";d=l?"clientX":"clientY";var m=this.itemsArray;for(e=m.length-1;e>=0;e--){if(!a.contains(this.owners[o].host[0],m[e].item[0])){continue}if(m[e].item[0]===this.currentItem[0]){continue}q=m[e].item.offset()[k];f=false;if(b[d]-q>m[e][p]/2){f=true}if(Math.abs(b[d]-q)<n){n=Math.abs(b[d]-q);h=m[e];this.direction=f?"up":"down"}}if(!h&&!this.dropOnEmpty){return}if(this.currentContainer===this.owners[o]){if(!this.currentContainer.containerCache.over){this.owners[o]._raiseEvent("5",this._uiHash());this.currentContainer.containerCache.over=1}return}if(this.owners[o].host.children().length+1>this.owners[o].maxItems){this.currentContainer=this._currentContainer;h=this._rearrange(b,null,this.currentContainer.host,true);this._currentContainer.containerCache.over=1;this.placeholderShow.update(this.currentContainer,this.placeholder);return}h?this._rearrange(b,h,null,true):this._rearrange(b,null,this.owners[o].host,true);this._raiseEvent("2",this._uiHash());this.owners[o]._raiseEvent("2",this._uiHash(this));this.currentContainer=this.owners[o];this.placeholderShow.update(this.currentContainer,this.placeholder);this.owners[o]._raiseEvent("5",this._uiHash(this));this.owners[o].containerCache.over=1}},_utility:function(c){var d=this,b=a.isFunction(d.helper)?a(d.helper.apply(this.host[0],[c,this.currentItem])):(d.helper==="clone"?this.currentItem.clone():this.currentItem);if(!b.parents("body").length){a(d.appendTo!=="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0])}if(b[0]===this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(!b[0].style.width||d.forceHelperSize){b.width(this.currentItem.width())}if(!b[0].style.height||d.forceHelperSize){b.height(this.currentItem.height())}b.scrollParent=function(g){var f=this.css("position"),e=f==="absolute",h=g?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){var j=a(this);if(e&&j.css("position")==="static"){return false}return h.test(j.css("overflow")+j.css("overflow-y")+j.css("overflow-x"))}).eq(0);return f==="fixed"||!i.length?a(this[0].ownerDocument||document):i};return b},_adjustOffsetFromHelper:function(b){if(typeof b==="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&a.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]===this.document[0].body||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&a.jqx.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_storeMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c,e,b,d=this;if(d.containment==="parent"){d.containment=this.helper[0].parentNode}if(d.containment==="document"||d.containment==="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(d.containment==="document"?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,g){if(!g){g=this.position}var c=e==="absolute"?1:-1,b=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&a.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=(/(html|body)/i).test(b[0].tagName);return{top:(g.top+this.offset.relative.top*c+this.offset.parent.top*c-((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(f?0:b.scrollTop()))*c)),left:(g.left+this.offset.relative.left*c+this.offset.parent.left*c-((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():f?0:b.scrollLeft())*c))}},_generatePosition:function(e){var g,f,h=this,d=e.pageX,c=e.pageY,b=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&a.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition==="relative"&&!(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?((g-this.offset.click.top>=this.containment[1]&&g-this.offset.click.top<=this.containment[3])?g:((g-this.offset.click.top>=this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?((f-this.offset.click.left>=this.containment[0]&&f-this.offset.click.left<=this.containment[2])?f:((f-this.offset.click.left>=this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_rearrange:function(f,e,c,d){c?c[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==="down"?e.item[0]:e.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var b=this.counter;this._delay(function(){if(b===this.counter){this.refreshPositions(!d)}})},_delay:function(e,d){function c(){return(typeof e==="string"?b[e]:e).apply(b,arguments)}var b=this;return setTimeout(c,d||0)},_clear:function(c,e){this.reverting=false;var b,f=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(b in this._storedCSS){if(this._storedCSS[b]==="auto"||this._storedCSS[b]==="static"){this._storedCSS[b]=""}}this.currentItem.css(this._storedCSS).removeClass("jqx-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!e){f.push(function(g){this._raiseEvent("6",this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".jqx-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!e){f.push(function(g){this._raiseEvent("11",this._uiHash())})}if(this!==this.currentContainer){if(!e){f.push(function(g){this._raiseEvent("7",this._uiHash())});f.push((function(g){return function(h){g._raiseEvent("6",this._uiHash(this))}}).call(this,this.currentContainer));f.push((function(g){return function(h){g._raiseEvent("11",this._uiHash(this))}}).call(this,this.currentContainer))}}function d(i,g,h){return function(k){var j=this._events.indexOf(i);h._raiseEvent(j,g._uiHash(g))}}for(b=this.owners.length-1;b>=0;b--){if(!e){f.push(d("deactivate",this,this.owners[b]))}if(this.owners[b].containerCache.over){f.push(d("out",this,this.owners[b]));this.owners[b].containerCache.over=0}}if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex)}this.dragging=false;if(!e){this._raiseEvent("1",this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(!this.cancelHelperRemoval){if(this.helper[0]!==this.currentItem[0]){this.helper.remove()}this.helper=null}if(!e){for(b=0;b<f.length;b++){f[b].call(this,c)}this._raiseEvent("10",this._uiHash())}this.fromOutside=false;return !this.cancelHelperRemoval},disable:function(){var b=this;b.disabled=true},enable:function(){var b=this;b.disabled=false},instance:function(){var b=this;return b},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.host:null}},_raiseEvent:function(b,e){var d=this;var c=a.Event(d._events[b]);c.args=e;return d.host.trigger(c)},propertyChangedHandler:function(b,c,f,e){var d=this;if(e!==f){switch(c){case"disabled":d.disabled=e;break}}}})})(jqxBaseFramework)})();
/***/ }),
/***/ 9052:
/***/ (() => {
(function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxSplitter","",{});a.extend(a.jqx._jqxSplitter.prototype,{defineInstance:function(){var b={width:300,height:300,panels:[],orientation:"vertical",disabled:false,splitBarSize:5,touchSplitBarSize:15,panel1:null,panel2:null,_eventsMap:{mousedown:a.jqx.mobile.getTouchEventName("touchstart"),mouseup:a.jqx.mobile.getTouchEventName("touchend"),mousemove:a.jqx.mobile.getTouchEventName("touchmove"),mouseenter:"mouseenter",mouseleave:"mouseleave"},_isTouchDevice:false,_isNested:false,resizable:true,touchMode:"auto",showSplitBar:true,initContent:null,_events:["resize","expanded","collapsed","resizeStart","layout"]};if(this===a.jqx._jqxSplitter.prototype){return b}a.extend(true,this,b);return b},createInstance:function(){this.render()},_initOverlay:function(b){if(this.overlay||b=="undefined"){this.overlay.remove();this.overlay=null}else{if(b==true){this.overlay=a("<div></div>").css({zIndex:100,background:"#fff"});this.overlay.css("opacity",0.01);this.overlay.css("position","absolute");this.overlay.appendTo(a(document.body));var c=this.host.coord();this.overlay.css("left","0px");this.overlay.css("top","0px");this.overlay.width(a(window).width());this.overlay.height(a(window).height());this.overlay.addClass("jqx-disableselect");if(this.orientation=="horizontal"){this.overlay.css("cursor","row-resize")}else{this.overlay.css("cursor","col-resize")}}}},_startDrag:function(b){if(b.target==this.splitBarButton[0]||this.disabled){return true}if(this.panels[0].collapsed||this.panels[1].collapsed||!this.resizable){return true}if(this.overlay==null){this._dragging=true;this._initOverlay(true);this._dragStart=a.jqx.position(b);return false}return true},_drag:function(b){if(this.panels[0].collapsed||this.panels[1].collapsed||this.disabled){return true}if(!this._dragging){return true}var i=this.orientation=="horizontal"?"top":"left";var k=this.orientation=="vertical"?"width":"height";this._position=a.jqx.position(b);if(this.overlay&&!this._splitBarClone){if(Math.abs(this._position[i]-this._dragStart[i])>=3){var m=this.splitBar.coord();this._cloneStart={left:m.left,top:m.top};this._splitBarClone=this._createSplitBarClone();this._raiseEvent(3,{panels:this.panels});return}}if(this._splitBarClone){var j,c;var n=this.host[k]();var d=n/100;var f=1/d;var h=0;var l=this._splitBarClone[k]()+2;var g=parseInt(this.host.coord()[i]);var e=this._position[i]-this._dragStart[i]+this._cloneStart[i]-g;if(h>e){e=h}if(e>n+h-l){e=n+h-l}j=this.panels[0].min;c=this.panels[1].min;if(c.toString().indexOf("%")!=-1){c=parseFloat(c)*d}if(j.toString().indexOf("%")!=-1){j=parseFloat(j)*d}this._splitBarClone.removeClass(this.toThemeProperty("jqx-splitter-splitbar-invalid"));if(e<j){this._splitBarClone.addClass(this.toThemeProperty("jqx-splitter-splitbar-invalid"));e=j}if(e>n+h-l-c){this._splitBarClone.addClass(this.toThemeProperty("jqx-splitter-splitbar-invalid"));e=n+h-l-c}this._splitBarClone.css(i,e);if(a.jqx.isPassiveSupported()){if(this._isTouchDevice){return false}}if(b.preventDefault){b.preventDefault()}if(b.stopPropagation){b.stopPropagation()}return false}return true},resize:function(c,b){this.width=c;this.height=b;this._arrange()},_resize:function(){var h=this.orientation=="horizontal"?"height":"width";var f=this.orientation=="horizontal"?"top":"left";var c=this._splitBarClone.css(f);var b=this.host[h]();var e=b/100;var d=1/e;var g=this.panels[0].size;if(g.toString().indexOf("%")!=-1){this.panels[0].size=parseFloat(c)*d+"%";this.panels[1].size=100-(parseFloat(c)*d)+"%"}else{this.panels[0].size=parseFloat(c);this.panels[1].size=b-parseFloat(c)}this._layoutPanels();this._raiseEvent(0,{panels:this.panels})},_stopDrag:function(){if(this._dragging){this._initOverlay()}this._dragging=false;if(this._splitBarClone){if(this.panels[0].collapsed||this.panels[1].collapsed||this.disabled){return true}this._resize();this._splitBarClone.remove();this._splitBarClone=null}},_createSplitBarClone:function(){var b=this.splitBar.clone();b.fadeTo(0,0.7);b.css("z-index",99999);if(this.orientation=="vertical"){b.css("cursor","col-resize")}else{b.css("cursor","row-resize")}this.host.append(b);return b},_eventName:function(b){if(this._isTouchDevice){return this._eventsMap[b]}else{return b}},_addHandlers:function(){var c=this;a.jqx.utilities.resize(this.host,function(){c._layoutPanels()});this.addHandler(this.splitBar,"dragstart."+this.element.id,function(e){return false});if(this.splitBarButton){this.addHandler(this.splitBarButton,"click."+this.element.id,function(){var e=function(f){if(!f.collapsed){c.collapse()}else{c.expand()}};if(c.panels[0].collapsible){e(c.panels[0])}else{if(c.panels[1].collapsible){e(c.panels[1])}}});this.addHandler(this.splitBarButton,this._eventName("mouseenter"),function(){c.splitBarButton.addClass(c.toThemeProperty("jqx-splitter-collapse-button-hover"));c.splitBarButton.addClass(c.toThemeProperty("jqx-fill-state-hover"))});this.addHandler(this.splitBarButton,this._eventName("mouseleave"),function(){c.splitBarButton.removeClass(c.toThemeProperty("jqx-splitter-collapse-button-hover"));c.splitBarButton.removeClass(c.toThemeProperty("jqx-fill-state-hover"))})}this.addHandler(a(document),this._eventName("mousemove")+"."+this.element.id,function(f){var e=c._drag(f);if(!c._isTouchDevice){return e}});this.addHandler(a(document),this._eventName("mouseup")+"."+this.element.id,function(){return c._stopDrag()});this.addHandler(this.splitBar,this._eventName("mousedown"),function(e){return c._startDrag(e)});this.addHandler(this.splitBar,this._eventName("mouseenter"),function(){if(c.resizable&&!c.disabled){c.splitBar.addClass(c.toThemeProperty("jqx-splitter-splitbar-hover"));c.splitBar.addClass(c.toThemeProperty("jqx-fill-state-hover"))}});this.addHandler(this.splitBar,this._eventName("mouseleave"),function(){if(c.resizable&&!c.disabled){c.splitBar.removeClass(c.toThemeProperty("jqx-splitter-splitbar-hover"));c.splitBar.removeClass(c.toThemeProperty("jqx-fill-state-hover"))}});if(document.referrer!=""||window.frameElement){if(window.top!=null&&window.top!=window.self){var d=null;if(window.parent&&document.referrer){d=document.referrer}if(d&&d.indexOf(document.location.host)!=-1){var b=function(e){c._stopDrag()};if(window.top.document.addEventListener){window.top.document.addEventListener("mouseup",b,false)}else{if(window.top.document.attachEvent){window.top.document.attachEvent("onmouseup",b)}}}}}},_removeHandlers:function(){this.removeHandler(a(window),"resize."+this.element.id);if(this.splitBarButton){this.removeHandler(this.splitBarButton,"click."+this.element.id);this.removeHandler(this.splitBarButton,this._eventName("mouseenter"));this.removeHandler(this.splitBarButton,this._eventName("mouseleave"))}this.removeHandler(a(document),this._eventName("mousemove")+"."+this.element.id);this.removeHandler(a(document),this._eventName("mouseup")+"."+this.element.id);if(this.splitBar){this.removeHandler(this.splitBar,"dragstart."+this.element.id);this.removeHandler(this.splitBar,this._eventName("mousedown"));this.removeHandler(this.splitBar,this._eventName("mouseenter"));this.removeHandler(this.splitBar,this._eventName("mouseleave"))}},render:function(){if(this.splitBar){this.splitBar.remove()}var c=this.host.children();if(c.length!=2){throw"Invalid HTML Structure! jqxSplitter requires 1 container DIV tag and 2 nested DIV tags."}if(c.length==2){var e=c[0].className.split(" ");var b=c[1].className.split(" ");if(e.indexOf("jqx-reset")!=-1&&e.indexOf("jqx-splitter")!=-1&&e.indexOf("jqx-widget")!=-1){throw"Invalid HTML Structure! Nested jqxSplitter cannot be initialized from a Splitter Panel. You need to add a new DIV tag inside the Splitter Panel and initialize the nested jqxSplitter from it!"}if(b.indexOf("jqx-reset")!=-1&&b.indexOf("jqx-splitter")!=-1&&b.indexOf("jqx-widget")!=-1){throw"Invalid HTML Structure! Nested jqxSplitter cannot be initialized from a Splitter Panel. You need to add a new DIV tag inside the Splitter Panel and initialize the nested jqxSplitter from it!"}}if(this.host.parent().length>0&&this.host.parent()[0].className.indexOf("jqx-splitter")!=-1){if(this.element.className.indexOf("jqx-splitter-panel")!=-1){throw"Invalid HTML Structure! Nested jqxSplitter cannot be initialized from a Splitter Panel. You need to add a new DIV tag inside the Splitter Panel and initialize the nested jqxSplitter from it!"}this._isNested=true;if(this.width==300){this.width="100%"}if(this.height==300){this.height="100%"}if(this.width=="100%"&&this.height=="100%"){this.host.addClass("jqx-splitter-nested");if(this.host.parent()[0].className.indexOf("jqx-splitter-panel")!=-1){this.host.parent().addClass("jqx-splitter-panel-nested")}}}this._hasBorder=(this.host.hasClass("jqx-hideborder")==false)||this.element.style.borderTopWidth!="";this._removeHandlers();this._isTouchDevice=a.jqx.mobile.isTouchDevice();this._validate();this.panel1.css("left","0px");this.panel1.css("top","0px");this.panel2.css("left","0px");this.panel2.css("top","0px");this.splitBar=a("<div><div></div></div>");if(!this.resizable){this.splitBar.css("cursor","default")}this.splitBarButton=this.splitBar.find("div:last");this._setTheme();this.splitBar.insertAfter(this.panel1);this._arrange();if(this.panels[0].collapsible==false&&this.panels[1].collapsible==false){this.splitBarButton.hide()}var d=this;this._addHandlers();if(this.initContent){this.initContent()}if(this.disabled){this.disable()}},_hiddenParent:function(){return a.jqx.isHidden(this.host)},_setTheme:function(){this.panel1.addClass(this.toThemeProperty("jqx-widget-content"));this.panel2.addClass(this.toThemeProperty("jqx-widget-content"));this.panel1.addClass(this.toThemeProperty("jqx-splitter-panel"));this.panel2.addClass(this.toThemeProperty("jqx-splitter-panel"));this.panel1.addClass(this.toThemeProperty("jqx-reset"));this.panel2.addClass(this.toThemeProperty("jqx-reset"));this.host.addClass(this.toThemeProperty("jqx-reset"));this.host.addClass(this.toThemeProperty("jqx-splitter"));this.host.addClass(this.toThemeProperty("jqx-widget"));this.host.addClass(this.toThemeProperty("jqx-widget-content"));this.splitBar.addClass(this.toThemeProperty("jqx-splitter-splitbar-"+this.orientation));this.splitBar.addClass(this.toThemeProperty("jqx-fill-state-normal"));this.splitBarButton.addClass(this.toThemeProperty("jqx-splitter-collapse-button-"+this.orientation));this.splitBarButton.addClass(this.toThemeProperty("jqx-fill-state-pressed"))},_validate:function(){var b=this.host.children();if(b.length!=2){throw"Invalid HTML Structure! jqxSplitter requires two nested DIV tags!"}if(this.panels&&!this.panels[1]){if(!this.panels[0]){this.panels=[{size:"50%"},{size:"50%"}]}else{this.panels[1]={}}}else{if(this.panels==undefined){this.panels=[{size:"50%"},{size:"50%"}]}}var b=this.host.children();this.panel1=this.panels[0].element=a(b[0]);this.panel2=this.panels[1].element=a(b[1]);this.panel1[0].style.minWidth="";this.panel1[0].style.maxWidth="";this.panel2[0].style.minWidth="";this.panel2[0].style.maxWidth="";a.each(this.panels,function(){if(this.min==undefined){this.min=0}if(this.size==undefined){this.size=0}if(this.size<0){this.size=0}if(this.min<0){this.min=0}if(this.collapsible==undefined){this.collapsible=true}if(this.collapsed==undefined){this.collapsed=false}if(this.size!=0){if(this.size.toString().indexOf("px")!=-1){this.size=parseInt(this.size)}if(this.size.toString().indexOf("%")==-1){if(parseInt(this.min)>parseInt(this.size)){this.min=this.size}}else{if(this.min.toString().indexOf("%")!=-1){if(parseInt(this.min)>parseInt(this.size)){this.min=this.size}}}}})},_arrange:function(){if(this.width!=null){var d=this.width;if(typeof d!="string"){d=parseInt(this.width)+"px"}this.host.css("width",d)}if(this.height!=null){var b=this.height;if(typeof b!="string"){b=parseInt(this.height)+"px"}this.host.css("height",b)}this._splitBarSize=!this._isTouchDevice?this.splitBarSize:this.touchSplitBarSize;if(!this.showSplitBar){this._splitBarSize=0;this.splitBar.hide()}var c=this.orientation=="horizontal"?"width":"height";this.splitBar.css(c,"100%");this.panel1.css(c,"100%");this.panel2.css(c,"100%");if(this.orientation=="horizontal"){this.splitBar.height(this._splitBarSize)}else{this.splitBar.width(this._splitBarSize)}if(this.orientation==="vertical"){this.splitBarButton.width(this._splitBarSize);this.splitBarButton.height(45)}else{this.splitBarButton.height(this._splitBarSize);this.splitBarButton.width(45)}this.splitBarButton.css("position","relative");if(this.orientation==="vertical"){this.splitBarButton.css("top","50%");this.splitBarButton.css("left","0");this.splitBarButton.css("margin-top","-23px");this.splitBarButton.css("margin-left","-0px")}else{this.splitBarButton.css("left","50%");this.splitBarButton.css("top","0");this.splitBarButton.css("margin-left","-23px");this.splitBarButton.css("margin-top","-0px")}this._layoutPanels()},collapse:function(){if(this.disabled){return}var b=-1;this.panels[0].collapsed=this.panels[1].collapsed=false;this.panels[0].element[0].style.visibility="inherit";this.panels[1].element[0].style.visibility="inherit";if(this.panels[0].collapsible){b=0}else{if(this.panels[1].collapsible){b=1}}if(b!=-1){this.panels[b].collapsed=true;this.panels[b].element[0].style.visibility="hidden";this.splitBar.addClass(this.toThemeProperty("jqx-splitter-splitbar-collapsed"));this._layoutPanels();this._raiseEvent(2,{index:b,panels:this.panels});this._raiseEvent(0,{panels:this.panels})}},expand:function(){if(this.disabled){return}var b=-1;this.panels[0].collapsed=this.panels[1].collapsed=false;this.panels[0].element[0].style.visibility="inherit";this.panels[1].element[0].style.visibility="inherit";if(this.panels[0].collapsible){b=0}else{if(this.panels[1].collapsible){b=1}}if(b!=-1){this.panels[b].collapsed=false;this.panels[b].element[0].style.visibility="inherit";this.splitBar.removeClass(this.toThemeProperty("jqx-splitter-splitbar-collapsed"));this._layoutPanels();this._raiseEvent(1,{index:b,panels:this.panels});this._raiseEvent(0,{panels:this.panels})}},disable:function(){this.disabled=true;this.host.addClass(this.toThemeProperty("jqx-fill-state-disabled"));this.splitBar.addClass(this.toThemeProperty("jqx-splitter-splitbar-collapsed"));this.splitBarButton.addClass(this.toThemeProperty("jqx-splitter-splitbar-collapsed"))},enable:function(){this.disabled=false;this.host.removeClass(this.toThemeProperty("jqx-fill-state-disabled"));this.splitBar.removeClass(this.toThemeProperty("jqx-splitter-splitbar-collapsed"));this.splitBarButton.removeClass(this.toThemeProperty("jqx-splitter-splitbar-collapsed"))},refresh:function(b){if(b!=true){this._arrange()}},propertyChangedHandler:function(b,c,e,d){if(c==="panels"||c==="orientation"||c==="showSplitBar"){b.render();return}if(c==="touchMode"){b._isTouchDevice=d}if(c==="disabled"){if(d){b.disable()}else{b.enable()}}else{if(c==="theme"){a.jqx.utilities.setTheme(e,d,b.host)}else{b.refresh()}}},_layoutPanels:function(){var j=this;var q=this.orientation=="horizontal"?"height":"width";var t=this.orientation=="horizontal"?"top":"left";var l,r,e,u;var m=parseInt(this._splitBarSize)+2;if(!this.showSplitBar){m=0}var i=this.host[q]();var k=i/100;var s=1/k;var p=s*m;var h=this.panel1;var g=this.panel2;var n=this.panels[0].size;if(this.panels[0].collapsed){e=true}if(this.panels[1].collapsed){u=true}l=this.panels[0].min;r=this.panels[1].min;if(r.toString().indexOf("%")!=-1){r=parseFloat(r)*k}if(l.toString().indexOf("%")!=-1){l=parseFloat(l)*k}if(this._isNested&&this._isTouchDevice){if(this.orientation=="horizontal"){h.width(this.host.width());g.width(this.host.width())}else{h.height(this.host.height());g.height(this.host.height())}}var f=function(){var w=j.panel1[q]();if(j.splitBar[0].style[t]!=w+"px"){var x=w;if(j.orientation=="vertical"){j.splitBar[0].style.borderLeftColor="";j.splitBar[0].style.borderRightColor="";j.splitBarButton[0].style.width=parseInt(j._splitBarSize)+"px";j.splitBarButton[0].style.left="0px"}else{j.splitBar[0].style.borderTopColor="";j.splitBar[0].style.borderBottomColor="";j.splitBarButton[0].style.height=parseInt(j._splitBarSize)+"px";j.splitBarButton[0].style.top="0px"}if(j._hasBorder){if(i-m==w){if(j.orientation=="vertical"){j.splitBar[0].style.borderRightColor="transparent";j.splitBarButton[0].style.width=parseInt(j._splitBarSize+1)+"px"}else{j.splitBar[0].style.borderBottomColor="transparent";j.splitBarButton[0].style.height=parseInt(j._splitBarSize+1)+"px"}}else{if(w==0){if(j.orientation=="vertical"){j.splitBar[0].style.borderLeftColor="transparent";j.splitBarButton[0].style.width=parseInt(j._splitBarSize+1)+"px";j.splitBarButton[0].style.left="-1px"}else{j.splitBar[0].style.borderTopColor="transparent";j.splitBarButton[0].style.height=parseInt(j._splitBarSize+1)+"px";j.splitBarButton[0].style.top="-1px"}}}}j.splitBar[0].style[t]=x+"px"}if(j.panel2[0].style[t]!=w+m+"px"){j.panel2[0].style[t]=w+m+"px"}};if(e){var b=Math.max(r,i-m);h[q](0);g[q](b)}else{if(u){var b=Math.max(l,i-m);g[q](0);h[q](b)}else{if(n.toString().indexOf("%")!=-1){var c=100-parseFloat(n);h.css(q,parseFloat(n)+"%");c-=p;g.css(q,c+"%");var d=g[q]();if(d<r){var b=d-r;var o=b*s;n=parseFloat(n)+parseFloat(o);var c=100-parseFloat(n);h.css(q,parseFloat(n)+"%");c-=p;g.css(q,c+"%")}var v=h[q]();if(v<l){var o=l*s;h.css(q,parseFloat(o)+"%")}}else{var d=i-n-m;if(h[0].style[q]!=n+"px"){h[q](n)}if(g[0].style[q]!=d+"px"){g[q](d)}if(d<r){n+=d-r;g[q](r);h[q](n)}if(n<l){h[q](l)}}}}f();this._raiseEvent(4,{panels:this.panels})},destroy:function(){this._removeHandlers();a.jqx.utilities.resize(this.host,null,true);this.host.remove()},_raiseEvent:function(d,f){var e=new a.Event(this._events[d]);e.owner=this;e.args=f;var c=this.orientation=="vertical"?"width":"height";var b=new Array();b[0]={};b[1]={};b[0].size=this.orientation=="vertical"?this.panel1[0].offsetWidth:this.panel1[0].offsetHeight;b[1].size=this.orientation=="vertical"?this.panel2[0].offsetWidth:this.panel2[0].offsetHeight;b[0].min=this.panels[0].min;b[1].min=this.panels[1].min;b[0].collapsible=this.panels[0].collapsible;b[1].collapsible=this.panels[1].collapsible;b[0].collapsed=this.panels[0].collapsed;b[1].collapsed=this.panels[1].collapsed;e.args.panels=b;return this.host.trigger(e)}})}(jqxBaseFramework))})();
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/amd options */
/******/ (() => {
/******/ __webpack_require__.amdO = {};
/******/ })();
/******/
/******/ /* webpack/runtime/compat get default export */
/******/ (() => {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = (module) => {
/******/ var getter = module && module.__esModule ?
/******/ () => (module['default']) :
/******/ () => (module);
/******/ __webpack_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
(() => {
"use strict";
/* harmony import */ var _jqxcore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7944);
/* harmony import */ var _jqxcore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_jqxcore__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _jqxdata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2142);
/* harmony import */ var _jqxdata__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_jqxdata__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _jqxdata_export__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(471);
/* harmony import */ var _jqxdata_export__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_jqxdata_export__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _jqxexport__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7749);
/* harmony import */ var _jqxexport__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_jqxexport__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _jqxbuttons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1528);
/* harmony import */ var _jqxbuttons__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_jqxbuttons__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _jqxbuttongroup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3475);
/* harmony import */ var _jqxbuttongroup__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_jqxbuttongroup__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _jqxscrollbar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5349);
/* harmony import */ var _jqxscrollbar__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_jqxscrollbar__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _jqxmenu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7908);
/* harmony import */ var _jqxmenu__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_jqxmenu__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _jqxlistbox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8544);
/* harmony import */ var _jqxlistbox__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_jqxlistbox__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _jqxdropdownlist__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9311);
/* harmony import */ var _jqxdropdownlist__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_jqxdropdownlist__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _jqxcombobox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(6294);
/* harmony import */ var _jqxcombobox__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_jqxcombobox__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _jqxnumberinput__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3192);
/* harmony import */ var _jqxnumberinput__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_jqxnumberinput__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _jqxcheckbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(5281);
/* harmony import */ var _jqxcheckbox__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_jqxcheckbox__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var _globalization_globalize__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(7662);
/* harmony import */ var _globalization_globalize__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_globalization_globalize__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var _jqxcalendar__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(1828);
/* harmony import */ var _jqxcalendar__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_jqxcalendar__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _jqxdatetimeinput__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(5877);
/* harmony import */ var _jqxdatetimeinput__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_jqxdatetimeinput__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _jqxsplitter__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(9052);
/* harmony import */ var _jqxsplitter__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_jqxsplitter__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _jqxsortable__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(1526);
/* harmony import */ var _jqxsortable__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_jqxsortable__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _jqxkanban__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8570);
/* harmony import */ var _jqxkanban__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_jqxkanban__WEBPACK_IMPORTED_MODULE_18__);
})();
/******/ })()
;