if(function(n,t){function it(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}function lt(n){if(!ht[n]){var e=r.body,t=i("<"+n+">").appendTo(e),u=t.css("display");t.remove();(u==="none"||u==="")&&(f||(f=r.createElement("iframe"),f.frameBorder=f.width=f.height=0),e.appendChild(f),v&&f.createElement||(v=(f.contentWindow||f.contentDocument).document,v.write((r.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),v.close()),t=v.createElement(n),v.body.appendChild(t),u=i.css(t,"display"),e.removeChild(f));ht[n]=u}return ht[n]}function h(n,t){var r={};return i.each(yr.concat.apply([],yr.slice(0,t)),function(){r[this]=n}),r}function wr(){tt=t}function at(){return setTimeout(wr,0),tt=i.now()}function br(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function vt(){try{return new n.XMLHttpRequest}catch(t){}}function kr(n,r){n.dataFilter&&(r=n.dataFilter(r,n.dataType));for(var v=n.dataTypes,s={},l,p=v.length,a,u=v[0],h,y,f,e,o,c=1;c<p;c++){if(c===1)for(l in n.converters)typeof l=="string"&&(s[l.toLowerCase()]=n.converters[l]);if(h=u,u=v[c],u==="*")u=h;else if(h!=="*"&&h!==u){if(y=h+" "+u,f=s[y]||s["* "+u],!f){o=t;for(e in s)if(a=e.split(" "),(a[0]===h||a[0]==="*")&&(o=s[a[1]+" "+u],o)){e=s[e];e===!0?f=o:o===!0&&(f=e);break}}f||o||i.error("No conversion from "+y.replace(" "," to "));f!==!0&&(r=f?f(r):o(e(r)))}}return r}function dr(n,i,r){var s=n.contents,f=n.dataTypes,c=n.responseFields,o,u,e,h;for(u in c)u in r&&(i[c[u]]=r[u]);while(f[0]==="*")f.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("content-type"));if(o)for(u in s)if(s[u]&&s[u].test(o)){f.unshift(u);break}if(f[0]in r)e=f[0];else{for(u in r){if(!f[0]||n.converters[u+" "+f[0]]){e=u;break}h||(h=u)}e=e||h}if(e)return e!==f[0]&&f.unshift(e),r[e]}function rt(n,t,r,u){if(i.isArray(t))i.each(t,function(t,f){r||wf.test(n)?u(n,f):rt(n+"["+(typeof f=="object"||i.isArray(f)?t:"")+"]",f,r,u)});else if(r||t==null||typeof t!="object")u(n,t);else for(var f in t)rt(n+"["+f+"]",t[f],r,u)}function yt(n,r){var u,f,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);f&&i.extend(!0,n,f)}function p(n,i,r,u,f,e){f=f||i.dataTypes[0];e=e||{};e[f]=!0;for(var s=n[f],h=0,l=s?s.length:0,c=n===st,o;h<l&&(c||!o);h++)o=s[h](i,r,u),typeof o=="string"&&(!c||e[o]?o=t:(i.dataTypes.unshift(o),o=p(n,i,r,u,o,e)));return!c&&o||e["*"]||(o=p(n,i,r,u,"*",e)),o}function pt(n){return function(t,r){if(typeof t!="string"&&(r=t,t="*"),i.isFunction(r))for(var o=t.toLowerCase().split(or),f=0,h=o.length,u,s,e;f<h;f++)u=o[f],e=/^\+/.test(u),e&&(u=u.substr(1)||"*"),s=n[u]=n[u]||[],s[e?"unshift":"push"](r)}}function wt(n,t,r){var u=t==="width"?n.offsetWidth:n.offsetHeight,e=t==="width"?vf:yf,f=0,o=e.length;if(u>0){if(r!=="border")for(;f<o;f++)r||(u-=parseFloat(i.css(n,"padding"+e[f]))||0),r==="margin"?u+=parseFloat(i.css(n,r+e[f]))||0:u-=parseFloat(i.css(n,"border"+e[f]+"Width"))||0;return u+"px"}if(u=l(n,t,t),(u<0||u==null)&&(u=n.style[t]||0),u=parseFloat(u)||0,r)for(;f<o;f++)u+=parseFloat(i.css(n,"padding"+e[f]))||0,r!=="padding"&&(u+=parseFloat(i.css(n,"border"+e[f]+"Width"))||0),r==="margin"&&(u+=parseFloat(i.css(n,r+e[f]))||0);return u+"px"}function gr(n,t){t.src?i.ajax({url:t.src,async:!1,dataType:"script"}):i.globalEval((t.text||t.textContent||t.innerHTML||"").replace(of,"/*$0*/"));t.parentNode&&t.parentNode.removeChild(t)}function nu(n){var t=r.createElement("div");return tr.appendChild(t),t.innerHTML=n.outerHTML,t.firstChild}function bt(n){var t=(n.nodeName||"").toLowerCase();t==="input"?kt(n):t!=="script"&&typeof n.getElementsByTagName!="undefined"&&i.grep(n.getElementsByTagName("input"),kt)}function kt(n){(n.type==="checkbox"||n.type==="radio")&&(n.defaultChecked=n.checked)}function w(n){return typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName("*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll("*"):[]}function dt(n,t){var r;t.nodeType===1&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(n),r=t.nodeName.toLowerCase(),r==="object"?t.outerHTML=n.outerHTML:r!=="input"||n.type!=="checkbox"&&n.type!=="radio"?r==="option"?t.selected=n.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=n.defaultValue):(n.checked&&(t.defaultChecked=t.checked=n.checked),t.value!==n.value&&(t.value=n.value)),t.removeAttribute(i.expando))}function gt(n,t){if(t.nodeType===1&&!!i.hasData(n)){var r,u,o,s=i._data(n),e=i._data(t,s),f=s.events;if(f){delete e.handle;e.events={};for(r in f)for(u=0,o=f[r].length;u<o;u++)i.event.add(t,r+(f[r][u].namespace?".":"")+f[r][u].namespace,f[r][u],f[r][u].data)}e.data&&(e.data=i.extend({},e.data))}}function tu(n){return i.nodeName(n,"table")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function ni(n){var i=bi.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function ti(n,t,r){if(t=t||0,i.isFunction(t))return i.grep(n,function(n,i){var u=!!t.call(n,i,n);return u===r});if(t.nodeType)return i.grep(n,function(n){return n===t===r});if(typeof t=="string"){var u=i.grep(n,function(n){return n.nodeType===1});if(ku.test(t))return i.filter(t,u,!r);t=i.filter(t,u)}return i.grep(n,function(n){return i.inArray(n,t)>=0===r})}function ii(n){return!n||!n.parentNode||n.parentNode.nodeType===11}function b(){return!0}function c(){return!1}function ri(n,t,r){var u=t+"defer",f=t+"queue",e=t+"mark",o=i._data(n,u);!o||r!=="queue"&&i._data(n,f)||r!=="mark"&&i._data(n,e)||setTimeout(function(){i._data(n,f)||i._data(n,e)||(i.removeData(n,u,!0),o.fire())},0)}function ut(n){for(var t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function ui(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(oi,"-$1").toLowerCase();if(u=n.getAttribute(f),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:i.isNumeric(u)?parseFloat(u):ei.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function iu(n){var i=fi[n]={},t,r;for(n=n.split(/\s+/),t=0,r=n.length;t<r;t++)i[n[t]]=!0;return i}var r=n.document,ru=n.navigator,uu=n.location,i=function(){function c(){if(!i.isReady){try{r.documentElement.doScroll("left")}catch(n){setTimeout(c,1);return}i.ready()}}var i=function(n,t){return new i.fn.init(n,t,l)},k=n.jQuery,d=n.$,l,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,a=/\S/,v=/^\s+/,y=/\s+$/,nt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,tt=/^[\],:{}\s]*$/,it=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rt=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ut=/(?:^|:|,)(?:\s*\[)+/g,ft=/(webkit)[ \/]([\w.]+)/,et=/(opera)(?:.*version)?[ \/]([\w.]+)/,ot=/(msie) ([\w.]+)/,st=/(mozilla)(?:.*? rv:([\w.]+))?/,ht=/-([a-z]|[0-9])/ig,ct=/^-ms-/,lt=function(n,t){return(t+"").toUpperCase()},at=ru.userAgent,e,o,u,vt=Object.prototype.toString,s=Object.prototype.hasOwnProperty,h=Array.prototype.push,f=Array.prototype.slice,p=String.prototype.trim,w=Array.prototype.indexOf,b={};return i.fn=i.prototype={constructor:i,init:function(n,u,f){var o,s,e,h;if(!n)return this;if(n.nodeType)return this.context=this[0]=n,this.length=1,this;if(n==="body"&&!u&&r.body)return this.context=r,this[0]=r.body,this.selector=n,this.length=1,this;if(typeof n=="string"){if(o=n.charAt(0)!=="<"||n.charAt(n.length-1)!==">"||n.length<3?g.exec(n):[null,n,null],o&&(o[1]||!u)){if(o[1])return u=u instanceof i?u[0]:u,h=u?u.ownerDocument||u:r,e=nt.exec(n),e?i.isPlainObject(u)?(n=[r.createElement(e[1])],i.fn.attr.call(n,u,!0)):n=[h.createElement(e[1])]:(e=i.buildFragment([o[1]],[h]),n=(e.cacheable?i.clone(e.fragment):e.fragment).childNodes),i.merge(this,n);if(s=r.getElementById(o[2]),s&&s.parentNode){if(s.id!==o[2])return f.find(n);this.length=1;this[0]=s}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n,t,r){var u=this.constructor();return i.isArray(n)?h.apply(u,n):i.merge(u,n),u.prevObject=this,u.context=this.context,t==="find"?u.selector=this.selector+(this.selector?" ":"")+r:t&&(u.selector=this.selector+"."+t+"("+r+")"),u},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.bindReady(),o.add(n),this},eq:function(n){return n=+n,n===-1?this.slice(n):this.slice(n,n+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var o,e,u,r,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[1]||{},f=2),typeof n!="object"&&!i.isFunction(n)&&(n={}),l===f&&(n=this,--f);f<l;f++)if((o=arguments[f])!=null)for(e in o)(u=n[e],r=o[e],n!==r)&&(c&&r&&(i.isPlainObject(r)||(s=i.isArray(r)))?(s?(s=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n},i.extend({noConflict:function(t){return n.$===i&&(n.$=d),t&&n.jQuery===i&&(n.jQuery=k),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0&&!--i.readyWait||n!==!0&&!i.isReady){if(!r.body)return setTimeout(i.ready,1);if(i.isReady=!0,n!==!0&&--i.readyWait>0)return;o.fireWith(r,[i]);i.fn.trigger&&i(r).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=i.Callbacks("once memory"),r.readyState==="complete")return setTimeout(i.ready,1);if(r.addEventListener)r.addEventListener("DOMContentLoaded",u,!1),n.addEventListener("load",i.ready,!1);else if(r.attachEvent){r.attachEvent("onreadystatechange",u);n.attachEvent("onload",i.ready);var t=!1;try{t=n.frameElement==null}catch(f){}r.documentElement.doScroll&&t&&c()}}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n&&typeof n=="object"&&"setInterval"in n},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):b[vt.call(n)]||"object"},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!s.call(n,"constructor")&&!s.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}for(var r in n);return r===t||s.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw new Error(n);},parseJSON:function(t){if(typeof t!="string"||!t)return null;if(t=i.trim(t),n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(tt.test(t.replace(it,"@").replace(rt,"]").replace(ut,"")))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&a.test(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(ct,"ms-").replace(ht,lt)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toUpperCase()===t.toUpperCase()},each:function(n,r,u){var f,e=0,o=n.length,s=o===t||i.isFunction(n);if(u){if(s){for(f in n)if(r.apply(n[f],u)===!1)break}else for(;e<o;)if(r.apply(n[e++],u)===!1)break}else if(s){for(f in n)if(r.call(n[f],f,n[f])===!1)break}else for(;e<o;)if(r.call(n[e],e,n[e++])===!1)break;return n},trim:p?function(n){return n==null?"":p.call(n)}:function(n){return n==null?"":(n+"").replace(v,"").replace(y,"")},makeArray:function(n,t){var u=t||[],r;return n!=null&&(r=i.type(n),n.length==null||r==="string"||r==="function"||r==="regexp"||i.isWindow(n)?h.call(u,n):i.merge(u,n)),u},inArray:function(n,t,i){var r;if(t){if(w)return w.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var u=n.length,r=0,f;if(typeof i.length=="number")for(f=i.length;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u=[],f,r,e;for(i=!!i,r=0,e=n.length;r<e;r++)f=!!t(n[r],r),i!==f&&u.push(n[r]);return u},map:function(n,r,u){var f,h,e=[],s=0,o=n.length,c=n instanceof i||o!==t&&typeof o=="number"&&(o>0&&n[0]&&n[o-1]||o===0||i.isArray(n));if(c)for(;s<o;s++)f=r(n[s],s,u),f!=null&&(e[e.length]=f);else for(h in n)f=r(n[h],h,u),f!=null&&(e[e.length]=f);return e.concat.apply([],e)},guid:1,proxy:function(n,r){var e,o,u;return(typeof r=="string"&&(e=n[r],r=n,n=e),!i.isFunction(n))?t:(o=f.call(arguments,2),u=function(){return n.apply(r,o.concat(f.call(arguments)))},u.guid=n.guid=n.guid||u.guid||i.guid++,u)},access:function(n,r,u,f,e,o){var c=n.length,h,s;if(typeof r=="object"){for(h in r)i.access(n,h,r[h],f,e,u);return n}if(u!==t){for(f=!o&&f&&i.isFunction(u),s=0;s<c;s++)e(n[s],r,f?u.call(n[s],s,e(n[s],r)):u,o);return n}return c?e(n[0],r):t},now:function(){return(new Date).getTime()},uaMatch:function(n){n=n.toLowerCase();var t=ft.exec(n)||et.exec(n)||ot.exec(n)||n.indexOf("compatible")<0&&st.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function n(t,i){return new n.fn.init(t,i)}i.extend(!0,n,this);n.superclass=this;n.fn=n.prototype=this();n.fn.constructor=n;n.sub=this.sub;n.fn.init=function(r,u){return u&&u instanceof i&&!(u instanceof n)&&(u=n(u)),i.fn.init.call(this,r,u,t)};n.fn.init.prototype=n.fn;var t=n(r);return n},browser:{}}),i.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(n,t){b["[object "+t+"]"]=t.toLowerCase()}),e=i.uaMatch(at),e.browser&&(i.browser[e.browser]=!0,i.browser.version=e.version),i.browser.webkit&&(i.browser.safari=!0),a.test(" ")&&(v=/^[\s\xA0]+/,y=/[\s\xA0]+$/),l=i(r),r.addEventListener?u=function(){r.removeEventListener("DOMContentLoaded",u,!1);i.ready()}:r.attachEvent&&(u=function(){r.readyState==="complete"&&(r.detachEvent("onreadystatechange",u),i.ready())}),i}(),fi={},k,ei,oi,ar,y,g,vr,a,pr,ct;i.Callbacks=function(n){n=n?fi[n]||iu(n):{};var r=[],f=[],u,s,c,h,e,l=function(t){for(var u,e,f=0,s=t.length;f<s;f++)u=t[f],e=i.type(u),e==="array"?l(u):e==="function"&&(!n.unique||!o.has(u))&&r.push(u)},a=function(t,i){for(i=i||[],u=!n.memory||[t,i],s=!0,e=c||0,c=0,h=r.length;r&&e<h;e++)if(r[e].apply(t,i)===!1&&n.stopOnFalse){u=!0;break}s=!1;r&&(n.once?u===!0?o.disable():r=[]:f&&f.length&&(u=f.shift(),o.fireWith(u[0],u[1])))},o={add:function(){if(r){var n=r.length;l(arguments);s?h=r.length:u&&u!==!0&&(c=n,a(u[0],u[1]))}return this},remove:function(){var t;if(r)for(var u=arguments,i=0,f=u.length;i<f;i++)for(t=0;t<r.length;t++)if(u[i]===r[t]&&(s&&t<=h&&(h--,t<=e&&e--),r.splice(t--,1),n.unique))break;return this},has:function(n){if(r)for(var t=0,i=r.length;t<i;t++)if(n===r[t])return!0;return!1},empty:function(){return r=[],this},disable:function(){return r=f=u=t,this},disabled:function(){return!r},lock:function(){return f=t,u&&u!==!0||o.disable(),this},locked:function(){return!f},fireWith:function(t,i){return f&&(s?n.once||f.push([t,i]):(!n.once||!u)&&a(t,i)),this},fire:function(){return o.fireWith(this,arguments),this},fired:function(){return!!u}};return o};k=[].slice;i.extend({Deferred:function(n){var r=i.Callbacks("once memory"),u=i.Callbacks("once memory"),f=i.Callbacks("memory"),s="pending",h={resolve:r,reject:u,notify:f},e={done:r.add,fail:u.add,progress:f.add,state:function(){return s},isResolved:r.fired,isRejected:u.fired,then:function(n,i,r){return t.done(n).fail(i).progress(r),this},always:function(){return t.done.apply(t,arguments).fail.apply(t,arguments),this},pipe:function(n,r,u){return i.Deferred(function(f){i.each({done:[n,"resolve"],fail:[r,"reject"],progress:[u,"notify"]},function(n,r){var e=r[0],o=r[1],u;i.isFunction(e)?t[n](function(){u=e.apply(this,arguments);u&&i.isFunction(u.promise)?u.promise().then(f.resolve,f.reject,f.notify):f[o+"With"](this===t?f:this,[u])}):t[n](f[o])})}).promise()},promise:function(n){if(n==null)n=e;else for(var t in e)n[t]=e[t];return n}},t=e.promise({});for(var o in h)t[o]=h[o].fire,t[o+"With"]=h[o].fireWith;return t.done(function(){s="resolved"},u.disable,f.lock).fail(function(){s="rejected"},r.disable,f.lock),n&&n.call(t,t),t},when:function(n){function h(n){return function(i){o[n]=arguments.length>1?k.call(arguments,0):i;t.notifyWith(s,o)}}function c(n){return function(i){r[n]=arguments.length>1?k.call(arguments,0):i;--e||t.resolveWith(t,r)}}var r=k.call(arguments,0),u=0,f=r.length,o=Array(f),e=f,l=f,t=f<=1&&n&&i.isFunction(n.promise)?n:i.Deferred(),s=t.promise();if(f>1){for(;u<f;u++)r[u]&&r[u].promise&&i.isFunction(r[u].promise)?r[u].promise().then(c(u),t.reject,h(u)):--e;e||t.resolveWith(t,r)}else t!==n&&t.resolveWith(t,f?[n]:[]);return s}});i.support=function(){var u,y,o,l,a,f,s,e,c,v,p,h,t=r.createElement("div"),w=r.documentElement;if(t.setAttribute("className","t"),t.innerHTML="   <link/><table><\/table><a href='/a' style='top:1px;float:left;opacity:.55;'>a<\/a><input type='checkbox'/>",y=t.getElementsByTagName("*"),o=t.getElementsByTagName("a")[0],!y||!y.length||!o)return{};l=r.createElement("select");a=l.appendChild(r.createElement("option"));f=t.getElementsByTagName("input")[0];u={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(o.getAttribute("style")),hrefNormalized:o.getAttribute("href")==="/a",opacity:/^0.55/.test(o.style.opacity),cssFloat:!!o.style.cssFloat,checkOn:f.value==="on",optSelected:a.selected,getSetAttribute:t.className!=="t",enctype:!!r.createElement("form").enctype,html5Clone:r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav><\/:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};f.checked=!0;u.noCloneChecked=f.cloneNode(!0).checked;l.disabled=!0;u.optDisabled=!a.disabled;try{delete t.test}catch(b){u.deleteExpando=!1}if(!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){u.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),f=r.createElement("input"),f.value="t",f.setAttribute("type","radio"),u.radioValue=f.value==="t",f.setAttribute("checked","checked"),t.appendChild(f),e=r.createDocumentFragment(),e.appendChild(t.lastChild),u.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,u.appendChecked=f.checked,e.removeChild(f),e.appendChild(t),t.innerHTML="",n.getComputedStyle&&(s=r.createElement("div"),s.style.width="0",s.style.marginRight="0",t.style.width="2px",t.appendChild(s),u.reliableMarginRight=(parseInt((n.getComputedStyle(s,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(p in{submit:1,change:1,focusin:1})v="on"+p,h=v in t,h||(t.setAttribute(v,"return;"),h=typeof t[v]=="function"),u[p+"Bubbles"]=h;return e.removeChild(t),e=l=a=s=t=f=null,i(function(){var f,e,n,p,o,l,a,v,y,w,s=r.getElementsByTagName("body")[0];s&&(l=1,a="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",v="visibility:hidden;border:0;",y="style='"+a+"border:5px solid #000;padding:0;'",w="<div "+y+"><div><\/div><\/div><table "+y+" cellpadding='0' cellspacing='0'><tr><td><\/td><\/tr><\/table>",f=r.createElement("div"),f.style.cssText=v+"width:0;height:0;position:static;top:0;margin-top:"+l+"px",s.insertBefore(f,s.firstChild),t=r.createElement("div"),f.appendChild(t),t.innerHTML="<table><tr><td style='padding:0;border:0;display:none'><\/td><td>t<\/td><\/tr><\/table>",c=t.getElementsByTagName("td"),h=c[0].offsetHeight===0,c[0].style.display="",c[1].style.display="none",u.reliableHiddenOffsets=h&&c[0].offsetHeight===0,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",i.boxModel=u.boxModel=t.offsetWidth===2,typeof t.style.zoom!="undefined"&&(t.style.display="inline",t.style.zoom=1,u.inlineBlockNeedsLayout=t.offsetWidth===2,t.style.display="",t.innerHTML="<div style='width:4px;'><\/div>",u.shrinkWrapBlocks=t.offsetWidth!==2),t.style.cssText=a+v,t.innerHTML=w,e=t.firstChild,n=e.firstChild,p=e.nextSibling.firstChild.firstChild,o={doesNotAddBorder:n.offsetTop!==5,doesAddBorderForTableAndCells:p.offsetTop===5},n.style.position="fixed",n.style.top="20px",o.fixedPosition=n.offsetTop===20||n.offsetTop===15,n.style.position=n.style.top="",e.style.overflow="hidden",e.style.position="relative",o.subtractsBorderForOverflowNotVisible=n.offsetTop===-5,o.doesNotIncludeMarginInBodyOffset=s.offsetTop!==l,s.removeChild(f),t=f=null,i.extend(u,o))}),u}();ei=/^(?:\{.*\}|\[.*\])$/;oi=/([A-Z])/g;i.extend({cache:{},uuid:0,expando:"jQuery"+(i.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ut(n)},data:function(n,r,u,f){if(!!i.acceptData(n)){var a,o,h,c=i.expando,v=typeof r=="string",l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c,y=r==="events";return(!e||!s[e]||!y&&!f&&!s[e].data)&&v&&u===t?void 0:(e||(l?n[c]=e=++i.uuid:e=c),s[e]||(s[e]={},l||(s[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),a=o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),y&&!o[r])?a.events:(v?(h=o[r],h==null&&(h=o[i.camelCase(r)])):h=o,h)}},removeData:function(n,t,r){if(!!i.acceptData(n)){var e,s,c,o=i.expando,h=n.nodeType,u=h?i.cache:n,f=h?n[o]:o;if(!u[f])return;if(t&&(e=r?u[f]:u[f].data,e)){for(i.isArray(t)||((t in e)?t=[t]:(t=i.camelCase(t),t=(t in e)?[t]:t.split(" "))),s=0,c=t.length;s<c;s++)delete e[t[s]];if(!(r?ut:i.isEmptyObject)(e))return}if(!r&&(delete u[f].data,!ut(u[f])))return;i.support.deleteExpando||!u.setInterval?delete u[f]:u[f]=null;h&&(i.support.deleteExpando?delete n[o]:n.removeAttribute?n.removeAttribute(o):n[o]=null)}},_data:function(n,t,r){return i.data(n,t,r,!0)},acceptData:function(n){if(n.nodeName){var t=i.noData[n.nodeName.toLowerCase()];if(t)return t!==!0&&n.getAttribute("classid")===t}return!0}});i.fn.extend({data:function(n,r){var u,s,e,f=null,o,h;if(typeof n=="undefined"){if(this.length&&(f=i.data(this[0]),this[0].nodeType===1&&!i._data(this[0],"parsedAttrs"))){for(s=this[0].attributes,o=0,h=s.length;o<h;o++)e=s[o].name,e.indexOf("data-")===0&&(e=i.camelCase(e.substring(5)),ui(this[0],e,f[e]));i._data(this[0],"parsedAttrs",!0)}return f}return typeof n=="object"?this.each(function(){i.data(this,n)}):(u=n.split("."),u[1]=u[1]?"."+u[1]:"",r===t)?(f=this.triggerHandler("getData"+u[1]+"!",[u[0]]),f===t&&this.length&&(f=i.data(this[0],n),f=ui(this[0],n,f)),f===t&&u[1]?this.data(u[0]):f):this.each(function(){var t=i(this),f=[u[0],r];t.triggerHandler("setData"+u[1]+"!",f);i.data(this,n,r);t.triggerHandler("changeData"+u[1]+"!",f)})},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({_mark:function(n,t){n&&(t=(t||"fx")+"mark",i._data(n,t,(i._data(n,t)||0)+1))},_unmark:function(n,t,r){if(n!==!0&&(r=t,t=n,n=!1),t){r=r||"fx";var u=r+"mark",f=n?0:(i._data(t,u)||1)-1;f?i._data(t,u,f):(i.removeData(t,u,!0),ri(t,r,"mark"))}},queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),u=r.shift(),f={};u==="inprogress"&&(u=r.shift());u&&(t==="fx"&&r.unshift("inprogress"),i._data(n,t+".run",f),u.call(n,function(){i.dequeue(n,t)},f));r.length||(i.removeData(n,t+"queue "+t+".run",!0),ri(n,t,"queue"))}});i.fn.extend({queue:function(n,r){return(typeof n!="string"&&(r=n,n="fx"),r===t)?i.queue(this[0],n):this.each(function(){var t=i.queue(this,n,r);n==="fx"&&t[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){function e(){--s||o.resolveWith(u,[u])}typeof n!="string"&&(r=n,n=t);n=n||"fx";for(var o=i.Deferred(),u=this,f=u.length,s=1,h=n+"defer",l=n+"queue",a=n+"mark",c;f--;)(c=i.data(u[f],h,t,!0)||(i.data(u[f],l,t,!0)||i.data(u[f],a,t,!0))&&i.data(u[f],h,i.Callbacks("once memory"),!0))&&(s++,c.add(e));return e(),o.promise()}});var si=/[\n\t\r]/g,d=/\s+/,fu=/\r/g,eu=/^(?:button|input)$/i,ou=/^(?:button|input|object|select|textarea)$/i,su=/^a(?:rea)?$/i,hi=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ci=i.support.getSetAttribute,e,li,ai;i.fn.extend({attr:function(n,t){return i.access(this,n,t,!0,i.attr)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,n,t,!0,i.prop)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var r,f,o,t,e,u,s;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(n&&typeof n=="string")for(r=n.split(d),f=0,o=this.length;f<o;f++)if(t=this[f],t.nodeType===1)if(t.className||r.length!==1){for(e=" "+t.className+" ",u=0,s=r.length;u<s;u++)~e.indexOf(" "+r[u]+" ")||(e+=r[u]+" ");t.className=i.trim(e)}else t.className=n;return this},removeClass:function(n){var o,u,s,r,f,e,h;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(n&&typeof n=="string"||n===t)for(o=(n||"").split(d),u=0,s=this.length;u<s;u++)if(r=this[u],r.nodeType===1&&r.className)if(n){for(f=(" "+r.className+" ").replace(si," "),e=0,h=o.length;e<h;e++)f=f.replace(" "+o[e]+" "," ");r.className=i.trim(f)}else r.className="";return this},toggleClass:function(n,t){var r=typeof n,u=typeof t=="boolean";return i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var f,s=0,o=i(this),e=t,h=n.split(d);f=h[s++];)e=u?e:!o.hasClass(f),o[e?"addClass":"removeClass"](f);else(r==="undefined"||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(si," ").indexOf(i)>-1)return!0;return!1},val:function(n){var r,u,e,f=this[0];return!arguments.length?f?(r=i.valHooks[f.nodeName.toLowerCase()]||i.valHooks[f.type],r&&"get"in r&&(u=r.get(f,"value"))!==t)?u:(u=f.value,typeof u=="string"?u.replace(fu,""):u==null?"":u):void 0:(e=i.isFunction(n),this.each(function(u){var o=i(this),f;this.nodeType===1&&(f=e?n.call(this,u,o.val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.nodeName.toLowerCase()]||i.valHooks[this.type],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))}))}});i.extend({valHooks:{option:{get:function(n){var t=n.attributes.value;return!t||t.specified?n.value:n.text}},select:{get:function(n){var o,r,h,t,u=n.selectedIndex,s=[],f=n.options,e=n.type==="select-one";if(u<0)return null;for(r=e?u:0,h=e?u+1:f.length;r<h;r++)if(t=f[r],t.selected&&(i.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),e)return o;s.push(o)}return e&&!s.length&&f.length?i(f[u]).val():s},set:function(n,t){var r=i.makeArray(t);return i(n).find("option").each(function(){this.selected=i.inArray(i(this).val(),r)>=0}),r.length||(n.selectedIndex=-1),r}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(n,r,u,f){var o,s,h,c=n.nodeType;if(!!n&&c!==3&&c!==8&&c!==2){if(f&&r in i.attrFn)return i(n)[r](u);if(typeof n.getAttribute=="undefined")return i.prop(n,r,u);if(h=c!==1||!i.isXMLDoc(n),h&&(r=r.toLowerCase(),s=i.attrHooks[r]||(hi.test(r)?li:e)),u!==t){if(u===null){i.removeAttr(n,r);return}return s&&"set"in s&&h&&(o=s.set(n,u,r))!==t?o:(n.setAttribute(r,""+u),u)}return s&&"get"in s&&h&&(o=s.get(n,r))!==null?o:(o=n.getAttribute(r),o===null?t:o)}},removeAttr:function(n,t){var u,f,r,o,e=0;if(t&&n.nodeType===1)for(f=t.toLowerCase().split(d),o=f.length;e<o;e++)r=f[e],r&&(u=i.propFix[r]||r,i.attr(n,r,""),n.removeAttribute(ci?r:u),hi.test(r)&&u in n&&(n[u]=!1))},attrHooks:{type:{set:function(n,t){if(eu.test(n.nodeName)&&n.parentNode)i.error("type property can't be changed");else if(!i.support.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}},value:{get:function(n,t){return e&&i.nodeName(n,"button")?e.get(n,t):t in n?n.value:null},set:function(n,t,r){if(e&&i.nodeName(n,"button"))return e.set(n,t,r);n.value=t}}},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(n,r,u){var e,f,s,o=n.nodeType;if(!!n&&o!==3&&o!==8&&o!==2)return s=o!==1||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&(e=f.get(n,r))!==null?e:n[r]},propHooks:{tabIndex:{get:function(n){var i=n.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):ou.test(n.nodeName)||su.test(n.nodeName)&&n.href?0:t}}}});i.attrHooks.tabindex=i.propHooks.tabIndex;li={get:function(n,r){var u,f=i.prop(n,r);return f===!0||typeof f!="boolean"&&(u=n.getAttributeNode(r))&&u.nodeValue!==!1?r.toLowerCase():t},set:function(n,t,r){var u;return t===!1?i.removeAttr(n,r):(u=i.propFix[r]||r,u in n&&(n[u]=!0),n.setAttribute(r,r.toLowerCase())),r}};ci||(ai={name:!0,id:!0},e=i.valHooks.button={get:function(n,i){var r;return r=n.getAttributeNode(i),r&&(ai[i]?r.nodeValue!=="":r.specified)?r.nodeValue:t},set:function(n,t,i){var u=n.getAttributeNode(i);return u||(u=r.createAttribute(i),n.setAttributeNode(u)),u.nodeValue=t+""}},i.attrHooks.tabindex.set=e.set,i.each(["width","height"],function(n,t){i.attrHooks[t]=i.extend(i.attrHooks[t],{set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}})}),i.attrHooks.contenteditable={get:e.get,set:function(n,t,i){t===""&&(t="false");e.set(n,t,i)}});i.support.hrefNormalized||i.each(["href","src","width","height"],function(n,r){i.attrHooks[r]=i.extend(i.attrHooks[r],{get:function(n){var i=n.getAttribute(r,2);return i===null?t:i}})});i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText.toLowerCase()||t},set:function(n,t){return n.style.cssText=""+t}});i.support.optSelected||(i.propHooks.selected=i.extend(i.propHooks.selected,{get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}));i.support.enctype||(i.propFix.enctype="encoding");i.support.checkOn||i.each(["radio","checkbox"],function(){i.valHooks[this]={get:function(n){return n.getAttribute("value")===null?"on":n.value}}});i.each(["radio","checkbox"],function(){i.valHooks[this]=i.extend(i.valHooks[this],{set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}})});var ft=/^(?:textarea|input|select)$/i,vi=/^([^\.]*)?(?:\.(.+))?$/,hu=/\bhover(\.\S+)?\b/,cu=/^key/,lu=/^(?:mouse|contextmenu)|click/,yi=/^(?:focusinfocus|focusoutblur)$/,au=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,vu=function(n){var t=au.exec(n);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},yu=function(n,t){var i=n.attributes||{};return(!t[1]||n.nodeName.toLowerCase()===t[1])&&(!t[2]||(i.id||{}).value===t[2])&&(!t[3]||t[3].test((i["class"]||{}).value))},pi=function(n){return i.event.special.hover?n:n.replace(hu,"mouseenter$1 mouseleave$1")};i.event={add:function(n,r,u,f,e){var a,s,v,y,p,o,w,l,b,c,h;if(!(n.nodeType===3||n.nodeType===8||!r||!u||!(a=i._data(n)))){for(u.handler&&(b=u,u=b.handler),u.guid||(u.guid=i.guid++),v=a.events,v||(a.events=v={}),s=a.handle,s||(a.handle=s=function(n){return typeof i!="undefined"&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(s.elem,arguments):t},s.elem=n),r=i.trim(pi(r)).split(" "),y=0;y<r.length;y++)p=vi.exec(r[y])||[],o=p[1],w=(p[2]||"").split(".").sort(),h=i.event.special[o]||{},o=(e?h.delegateType:h.bindType)||o,h=i.event.special[o]||{},l=i.extend({type:o,origType:p[1],data:f,handler:u,guid:u.guid,selector:e,quick:vu(e),namespace:w.join(".")},b),c=v[o],c||(c=v[o]=[],c.delegateCount=0,h.setup&&h.setup.call(n,f,w,s)!==!1||(n.addEventListener?n.addEventListener(o,s,!1):n.attachEvent&&n.attachEvent("on"+o,s))),h.add&&(h.add.call(n,l),l.handler.guid||(l.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,l):c.push(l),i.event.global[o]=!0;n=null}},global:{},remove:function(n,t,r,u,f){var y=i.hasData(n)&&i._data(n),l,p,e,b,h,k,a,v,c,w,o,s;if(!!y&&!!(v=y.events)){for(t=i.trim(pi(t||"")).split(" "),l=0;l<t.length;l++){if(p=vi.exec(t[l])||[],e=b=p[1],h=p[2],!e){for(e in v)i.event.remove(n,e+t[l],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,o=v[e]||[],k=o.length,h=h?new RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,a=0;a<o.length;a++)s=o[a],(f||b===s.origType)&&(!r||r.guid===s.guid)&&(!h||h.test(s.namespace))&&(!u||u===s.selector||u==="**"&&s.selector)&&(o.splice(a--,1),s.selector&&o.delegateCount--,c.remove&&c.remove.call(n,s));o.length===0&&k!==o.length&&((!c.teardown||c.teardown.call(n,h)===!1)&&i.removeEvent(n,e,y.handle),delete v[e])}i.isEmptyObject(v)&&(w=y.handle,w&&(w.elem=null),i.removeData(n,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(r,u,f,e){if(!f||f.nodeType!==3&&f.nodeType!==8){var o=r.type||r,p=[],w,k,c,s,h,a,l,v,y,b;if(yi.test(o+i.event.triggered))return;if(o.indexOf("!")>=0&&(o=o.slice(0,-1),k=!0),o.indexOf(".")>=0&&(p=o.split("."),o=p.shift(),p.sort()),(!f||i.event.customEvent[o])&&!i.event.global[o])return;if(r=typeof r=="object"?r[i.expando]?r:new i.Event(o,r):new i.Event(o),r.type=o,r.isTrigger=!0,r.exclusive=k,r.namespace=p.join("."),r.namespace_re=r.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,a=o.indexOf(":")<0?"on"+o:"",!f){w=i.cache;for(c in w)w[c].events&&w[c].events[o]&&i.event.trigger(r,u,w[c].handle.elem,!0);return}if(r.result=t,r.target||(r.target=f),u=u!=null?i.makeArray(u):[],u.unshift(r),l=i.event.special[o]||{},l.trigger&&l.trigger.apply(f,u)===!1)return;if(y=[[f,l.bindType||o]],!e&&!l.noBubble&&!i.isWindow(f)){for(b=l.delegateType||o,s=yi.test(b+o)?f:f.parentNode,h=null;s;s=s.parentNode)y.push([s,b]),h=s;h&&h===f.ownerDocument&&y.push([h.defaultView||h.parentWindow||n,b])}for(c=0;c<y.length&&!r.isPropagationStopped();c++)s=y[c][0],r.type=y[c][1],v=(i._data(s,"events")||{})[r.type]&&i._data(s,"handle"),v&&v.apply(s,u),v=a&&s[a],v&&i.acceptData(s)&&v.apply(s,u)===!1&&r.preventDefault();return r.type=o,e||r.isDefaultPrevented()||l._default&&l._default.apply(f.ownerDocument,u)!==!1||o==="click"&&i.nodeName(f,"a")||!i.acceptData(f)||!a||!f[o]||(o==="focus"||o==="blur")&&r.target.offsetWidth===0||i.isWindow(f)||(h=f[a],h&&(f[a]=null),i.event.triggered=o,f[o](),i.event.triggered=t,h&&(f[a]=h)),r.result}},dispatch:function(r){r=i.event.fix(r||n.event);var h=(i._data(this,"events")||{})[r.type]||[],c=h.delegateCount,b=[].slice.call(arguments,0),k=!r.exclusive&&!r.namespace,l=[],f,a,e,v,y,p,o,w,u,s;if(b[0]=r,r.delegateTarget=this,c&&!r.target.disabled&&(!r.button||r.type!=="click"))for(v=i(this),v.context=this.ownerDocument||this,e=r.target;e!=this;e=e.parentNode||this){for(p={},w=[],v[0]=e,f=0;f<c;f++)u=h[f],s=u.selector,p[s]===t&&(p[s]=u.quick?yu(e,u.quick):v.is(s)),p[s]&&w.push(u);w.length&&l.push({elem:e,matches:w})}for(h.length>c&&l.push({elem:this,matches:h.slice(c)}),f=0;f<l.length&&!r.isPropagationStopped();f++)for(o=l[f],r.currentTarget=o.elem,a=0;a<o.matches.length&&!r.isImmediatePropagationStopped();a++)u=o.matches[a],(k||!r.namespace&&!u.namespace||r.namespace_re&&r.namespace_re.test(u.namespace))&&(r.data=u.data,r.handleObj=u,y=((i.event.special[u.origType]||{}).handle||u.handler).apply(o.elem,b),y!==t&&(r.result=y,y===!1&&(r.preventDefault(),r.stopPropagation())));return r.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(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var o,u,f,e=i.button,s=i.fromElement;return n.pageX==null&&i.clientX!=null&&(o=n.target.ownerDocument||r,u=o.documentElement,f=o.body,n.pageX=i.clientX+(u&&u.scrollLeft||f&&f.scrollLeft||0)-(u&&u.clientLeft||f&&f.clientLeft||0),n.pageY=i.clientY+(u&&u.scrollTop||f&&f.scrollTop||0)-(u&&u.clientTop||f&&f.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),!n.which&&e!==t&&(n.which=e&1?1:e&2?3:e&4?2:0),n}},fix:function(n){if(n[i.expando])return n;var e,o,u=n,f=i.event.fixHooks[n.type]||{},s=f.props?this.props.concat(f.props):this.props;for(n=i.Event(u),e=s.length;e;)o=s[--e],n[o]=u[o];return n.target||(n.target=u.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey===t&&(n.metaKey=n.ctrlKey),f.filter?f.filter(n,u):n},special:{ready:{setup:i.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(n,t,r){i.isWindow(this)&&(this.onbeforeunload=r)},teardown:function(n,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.event.handle=i.event.dispatch;i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent&&n.detachEvent("on"+t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?b:c):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={preventDefault:function(){this.isDefaultPrevented=b;var n=this.originalEvent;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=b;var n=this.originalEvent;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=b;this.stopPropagation()},isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var f=this,r=n.relatedTarget,u=n.handleObj,o=u.selector,e;return r&&(r===f||i.contains(f,r))||(n.type=u.origType,e=u.handler.apply(this,arguments),n.type=t),e}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!r._submit_attached&&(i.event.add(r,"submit._submit",function(n){this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0)}),r._submit_attached=!0)})},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}});i.support.changeBubbles||(i.event.special.change={setup:function(){if(ft.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1,i.event.simulate("change",this,n,!0))})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ft.test(t.nodeName)&&!t._change_attached&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),t._change_attached=!0)})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),ft.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){u++==0&&r.addEventListener(n,f,!0)},teardown:function(){--u==0&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var o,s;if(typeof n=="object"){typeof r!="string"&&(u=r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(u==null&&f==null?(f=r,u=r=t):f==null&&(typeof r=="string"?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=c;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on.call(this,n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.type+"."+f.namespace:f.type,f.selector,f.handler),this;if(typeof n=="object"){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||typeof r=="function")&&(u=r,r=t),u===!1&&(u=c),this.each(function(){i.event.remove(this,n,u,r)})},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},live:function(n,t,r){i(this.context).on(n,this.selector,t,r);return this},die:function(n,t){return i(this.context).off(n,this.selector||"**",t),this},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length==1?this.off(n,"**"):this.off(t,n,i)},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){if(this[0])return i.event.trigger(n,t,this[0],!0)},toggle:function(n){var t=arguments,u=n.guid||i.guid++,r=0,f=function(u){var f=(i._data(this,"lastToggle"+n.guid)||0)%r;return i._data(this,"lastToggle"+n.guid,f+1),u.preventDefault(),t[f].apply(this,arguments)||!1};for(f.guid=u;r<t.length;)t[r++].guid=u;return this.click(f)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});i.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(n,t){i.fn[t]=function(n,i){return i==null&&(i=n,n=null),arguments.length>0?this.on(t,null,n,i):this.trigger(t)};i.attrFn&&(i.attrFn[t]=!0);cu.test(t)&&(i.event.fixHooks[t]=i.event.keyHooks);lu.test(t)&&(i.event.fixHooks[t]=i.event.mouseHooks)}),function(){function b(t,i,r,u,f,o){for(var s,c,h=0,l=u.length;h<l;h++)if(s=u[h],s){for(c=!1,s=s[t];s;){if(s[e]===r){c=u[s.sizset];break}if(s.nodeType===1)if(o||(s[e]=r,s.sizset=h),typeof i!="string"){if(s===i){c=!0;break}}else if(n.filter(i,[s]).length>0){c=s;break}s=s[t]}u[h]=c}}function k(n,t,i,r,u,f){for(var o,h,s=0,c=r.length;s<c;s++)if(o=r[s],o){for(h=!1,o=o[n];o;){if(o[e]===i){h=r[o.sizset];break}if(o.nodeType!==1||f||(o[e]=i,o.sizset=s),o.nodeName.toLowerCase()===t){h=o;break}o=o[n]}r[s]=h}}var v=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),y=0,d=Object.prototype.toString,c=!1,g=!0,o=/\\/g,nt=/\r\n/g,l=/\W/,n,s,f,a,h,w;[0,0].sort(function(){return g=!1,0});n=function(t,i,e,o){var nt;if(e=e||[],i=i||r,nt=i,i.nodeType!==1&&i.nodeType!==9)return[];if(!t||typeof t!="string")return e;var y,a,h,g,l,p,b,c,it=!0,k=n.isXML(i),s=[],rt=t;do if(v.exec(""),y=v.exec(rt),y&&(rt=y[3],s.push(y[1]),y[2])){g=y[3];break}while(y);if(s.length>1&&tt.exec(t))if(s.length===2&&u.relative[s[0]])a=w(s[0]+s[1],i,o);else for(a=u.relative[s[0]]?[i]:n(s.shift(),i);s.length;)t=s.shift(),u.relative[t]&&(t+=s.shift()),a=w(t,a,o);else if(!o&&s.length>1&&i.nodeType===9&&!k&&u.match.ID.test(s[0])&&!u.match.ID.test(s[s.length-1])&&(l=n.find(s.shift(),i,k),i=l.expr?n.filter(l.expr,l.set)[0]:l.set[0]),i)for(l=o?{expr:s.pop(),set:f(o)}:n.find(s.pop(),s.length===1&&(s[0]==="~"||s[0]==="+")&&i.parentNode?i.parentNode:i,k),a=l.expr?n.filter(l.expr,l.set):l.set,s.length>0?h=f(a):it=!1;s.length;)p=s.pop(),b=p,u.relative[p]?b=s.pop():p="",b==null&&(b=i),u.relative[p](h,b,k);else h=s=[];if(h||(h=a),h||n.error(p||t),d.call(h)==="[object Array]")if(it)if(i&&i.nodeType===1)for(c=0;h[c]!=null;c++)h[c]&&(h[c]===!0||h[c].nodeType===1&&n.contains(i,h[c]))&&e.push(a[c]);else for(c=0;h[c]!=null;c++)h[c]&&h[c].nodeType===1&&e.push(a[c]);else e.push.apply(e,h);else f(h,e);return g&&(n(g,nt,e,o),n.uniqueSort(e)),e};n.uniqueSort=function(n){if(a&&(c=g,n.sort(a),c))for(var t=1;t<n.length;t++)n[t]===n[t-1]&&n.splice(t--,1);return n};n.matches=function(t,i){return n(t,null,null,i)};n.matchesSelector=function(t,i){return n(i,null,null,[t]).length>0};n.find=function(n,t,i){var f,e,c,r,s,h;if(!n)return[];for(e=0,c=u.order.length;e<c;e++)if(s=u.order[e],(r=u.leftMatch[s].exec(n))&&(h=r[1],r.splice(1,1),h.substr(h.length-1)!=="\\"&&(r[1]=(r[1]||"").replace(o,""),f=u.find[s](r,t,i),f!=null))){n=n.replace(u.match[s],"");break}return f||(f=typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName("*"):[]),{set:f,expr:n}};n.filter=function(i,r,f,e){for(var o,h,c,l,y,b,p,a,w,k=i,v=[],s=r,d=r&&r[0]&&n.isXML(r[0]);i&&r.length;){for(c in u.filter)if((o=u.leftMatch[c].exec(i))!=null&&o[2]){if(b=u.filter[c],p=o[1],h=!1,o.splice(1,1),p.substr(p.length-1)==="\\")continue;if(s===v&&(v=[]),u.preFilter[c])if(o=u.preFilter[c](o,s,f,v,e,d),o){if(o===!0)continue}else h=l=!0;if(o)for(a=0;(y=s[a])!=null;a++)y&&(l=b(y,o,a,s),w=e^l,f&&l!=null?w?h=!0:s[a]=!1:w&&(v.push(y),h=!0));if(l!==t){if(f||(s=v),i=i.replace(u.match[c],""),!h)return[];break}}if(i===k)if(h==null)n.error(i);else break;k=i}return s};n.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};var p=n.getText=function(n){var i,r,t=n.nodeType,u="";if(t){if(t===1||t===9){if(typeof n.textContent=="string")return n.textContent;if(typeof n.innerText=="string")return n.innerText.replace(nt,"");for(n=n.firstChild;n;n=n.nextSibling)u+=p(n)}else if(t===3||t===4)return n.nodeValue}else for(i=0;r=n[i];i++)r.nodeType!==8&&(u+=p(r));return u},u=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(n){return n.getAttribute("href")},type:function(n){return n.getAttribute("type")}},relative:{"+":function(t,i){var f=typeof i=="string",e=f&&!l.test(i),o=f&&!e,u,s,r;for(e&&(i=i.toLowerCase()),u=0,s=t.length;u<s;u++)if(r=t[u]){while((r=r.previousSibling)&&r.nodeType!==1);t[u]=o||r&&r.nodeName.toLowerCase()===i?r||!1:r===i}o&&n.filter(i,t,!0)},">":function(t,i){var u,f=typeof i=="string",r=0,o=t.length,e;if(f&&!l.test(i))for(i=i.toLowerCase();r<o;r++)u=t[r],u&&(e=u.parentNode,t[r]=e.nodeName.toLowerCase()===i?e:!1);else{for(;r<o;r++)u=t[r],u&&(t[r]=f?u.parentNode:u.parentNode===i);f&&n.filter(i,t,!0)}},"":function(n,t,i){var r,f=y++,u=b;typeof t!="string"||l.test(t)||(t=t.toLowerCase(),r=t,u=k);u("parentNode",t,f,n,r,i)},"~":function(n,t,i){var r,f=y++,u=b;typeof t!="string"||l.test(t)||(t=t.toLowerCase(),r=t,u=k);u("previousSibling",t,f,n,r,i)}},find:{ID:function(n,t,i){if(typeof t.getElementById!="undefined"&&!i){var r=t.getElementById(n[1]);return r&&r.parentNode?[r]:[]}},NAME:function(n,t){var r,u,i,f;if(typeof t.getElementsByName!="undefined"){for(r=[],u=t.getElementsByName(n[1]),i=0,f=u.length;i<f;i++)u[i].getAttribute("name")===n[1]&&r.push(u[i]);return r.length===0?null:r}},TAG:function(n,t){if(typeof t.getElementsByTagName!="undefined")return t.getElementsByTagName(n[1])}},preFilter:{CLASS:function(n,t,i,r,u,f){if(n=" "+n[1].replace(o,"")+" ",f)return n;for(var s=0,e;(e=t[s])!=null;s++)e&&(u^(e.className&&(" "+e.className+" ").replace(/[\t\n\r]/g," ").indexOf(n)>=0)?i||r.push(e):i&&(t[s]=!1));return!1},ID:function(n){return n[1].replace(o,"")},TAG:function(n){return n[1].replace(o,"").toLowerCase()},CHILD:function(t){if(t[1]==="nth"){t[2]||n.error(t[0]);t[2]=t[2].replace(/^\+|\s*/g,"");var i=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=i[1]+(i[2]||1)-0;t[3]=i[3]-0}else t[2]&&n.error(t[0]);return t[0]=y++,t},ATTR:function(n,t,i,r,f,e){var s=n[1]=n[1].replace(o,"");return!e&&u.attrMap[s]&&(n[1]=u.attrMap[s]),n[4]=(n[4]||n[5]||"").replace(o,""),n[2]==="~="&&(n[4]=" "+n[4]+" "),n},PSEUDO:function(t,i,r,f,e){if(t[1]==="not")if((v.exec(t[3])||"").length>1||/^\w/.test(t[3]))t[3]=n(t[3],null,null,i);else{var o=n.filter(t[3],i,r,!0^e);return r||f.push.apply(f,o),!1}else if(u.match.POS.test(t[0])||u.match.CHILD.test(t[0]))return!0;return t},POS:function(n){return n.unshift(!0),n}},filters:{enabled:function(n){return n.disabled===!1&&n.type!=="hidden"},disabled:function(n){return n.disabled===!0},checked:function(n){return n.checked===!0},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},parent:function(n){return!!n.firstChild},empty:function(n){return!n.firstChild},has:function(t,i,r){return!!n(r[3],t).length},header:function(n){return/h\d/i.test(n.nodeName)},text:function(n){var t=n.getAttribute("type"),i=n.type;return n.nodeName.toLowerCase()==="input"&&"text"===i&&(t===i||t===null)},radio:function(n){return n.nodeName.toLowerCase()==="input"&&"radio"===n.type},checkbox:function(n){return n.nodeName.toLowerCase()==="input"&&"checkbox"===n.type},file:function(n){return n.nodeName.toLowerCase()==="input"&&"file"===n.type},password:function(n){return n.nodeName.toLowerCase()==="input"&&"password"===n.type},submit:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"submit"===n.type},image:function(n){return n.nodeName.toLowerCase()==="input"&&"image"===n.type},reset:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"reset"===n.type},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&"button"===n.type||t==="button"},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)},focus:function(n){return n===n.ownerDocument.activeElement}},setFilters:{first:function(n,t){return t===0},last:function(n,t,i,r){return t===r.length-1},even:function(n,t){return t%2==0},odd:function(n,t){return t%2==1},lt:function(n,t,i){return t<i[3]-0},gt:function(n,t,i){return t>i[3]-0},nth:function(n,t,i){return i[3]-0===t},eq:function(n,t,i){return i[3]-0===t}},filter:{PSEUDO:function(t,i,r,f){var e=i[1],h=u.filters[e],s,o,c;if(h)return h(t,r,i,f);if(e==="contains")return(t.textContent||t.innerText||p([t])||"").indexOf(i[3])>=0;if(e==="not"){for(s=i[3],o=0,c=s.length;o<c;o++)if(s[o]===t)return!1;return!0}n.error(e)},CHILD:function(n,t){var r,o,s,u,h,f,c=t[1],i=n;switch(c){case"only":case"first":while(i=i.previousSibling)if(i.nodeType===1)return!1;if(c==="first")return!0;i=n;case"last":while(i=i.nextSibling)if(i.nodeType===1)return!1;return!0;case"nth":if(r=t[2],o=t[3],r===1&&o===0)return!0;if(s=t[0],u=n.parentNode,u&&(u[e]!==s||!n.nodeIndex)){for(h=0,i=u.firstChild;i;i=i.nextSibling)i.nodeType===1&&(i.nodeIndex=++h);u[e]=s}return f=n.nodeIndex-o,r===0?f===0:f%r==0&&f/r>=0}},ID:function(n,t){return n.nodeType===1&&n.getAttribute("id")===t},TAG:function(n,t){return t==="*"&&n.nodeType===1||!!n.nodeName&&n.nodeName.toLowerCase()===t},CLASS:function(n,t){return(" "+(n.className||n.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(t,i){var o=i[1],s=n.attr?n.attr(t,o):u.attrHandle[o]?u.attrHandle[o](t):t[o]!=null?t[o]:t.getAttribute(o),f=s+"",e=i[2],r=i[4];return s==null?e==="!=":!e&&n.attr?s!=null:e==="="?f===r:e==="*="?f.indexOf(r)>=0:e==="~="?(" "+f+" ").indexOf(r)>=0:r?e==="!="?f!==r:e==="^="?f.indexOf(r)===0:e==="$="?f.substr(f.length-r.length)===r:e==="|="?f===r||f.substr(0,r.length+1)===r+"-":!1:f&&s!==!1},POS:function(n,t,i,r){var e=t[2],f=u.setFilters[e];if(f)return f(n,i,t,r)}}},tt=u.match.POS,it=function(n,t){return"\\"+(+t+1)};for(s in u.match)u.match[s]=new RegExp(u.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source),u.leftMatch[s]=new RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[s].source.replace(/\\(\d+)/g,it));f=function(n,t){return(n=Array.prototype.slice.call(n,0),t)?(t.push.apply(t,n),t):n};try{Array.prototype.slice.call(r.documentElement.childNodes,0)[0].nodeType}catch(rt){f=function(n,t){var i=0,r=t||[],u;if(d.call(n)==="[object Array]")Array.prototype.push.apply(r,n);else if(typeof n.length=="number")for(u=n.length;i<u;i++)r.push(n[i]);else for(;n[i];i++)r.push(n[i]);return r}}r.documentElement.compareDocumentPosition?a=function(n,t){return n===t?(c=!0,0):!n.compareDocumentPosition||!t.compareDocumentPosition?n.compareDocumentPosition?-1:1:n.compareDocumentPosition(t)&4?-1:1}:(a=function(n,t){var i;if(n===t)return c=!0,0;if(n.sourceIndex&&t.sourceIndex)return n.sourceIndex-t.sourceIndex;var e,l,u=[],f=[],o=n.parentNode,s=t.parentNode,r=o;if(o===s)return h(n,t);if(!o)return-1;if(!s)return 1;while(r)u.unshift(r),r=r.parentNode;for(r=s;r;)f.unshift(r),r=r.parentNode;for(e=u.length,l=f.length,i=0;i<e&&i<l;i++)if(u[i]!==f[i])return h(u[i],f[i]);return i===e?h(n,f[i],-1):h(u[i],t,1)},h=function(n,t,i){if(n===t)return i;for(var r=n.nextSibling;r;){if(r===t)return-1;r=r.nextSibling}return 1}),function(){var n=r.createElement("div"),f="script"+(new Date).getTime(),i=r.documentElement;n.innerHTML="<a name='"+f+"'/>";i.insertBefore(n,i.firstChild);r.getElementById(f)&&(u.find.ID=function(n,i,r){if(typeof i.getElementById!="undefined"&&!r){var u=i.getElementById(n[1]);return u?u.id===n[1]||typeof u.getAttributeNode!="undefined"&&u.getAttributeNode("id").nodeValue===n[1]?[u]:t:[]}},u.filter.ID=function(n,t){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&i&&i.nodeValue===t});i.removeChild(n);i=n=null}(),function(){var n=r.createElement("div");n.appendChild(r.createComment(""));n.getElementsByTagName("*").length>0&&(u.find.TAG=function(n,t){var i=t.getElementsByTagName(n[1]),u,r;if(n[1]==="*"){for(u=[],r=0;i[r];r++)i[r].nodeType===1&&u.push(i[r]);i=u}return i});n.innerHTML="<a href='#'><\/a>";n.firstChild&&typeof n.firstChild.getAttribute!="undefined"&&n.firstChild.getAttribute("href")!=="#"&&(u.attrHandle.href=function(n){return n.getAttribute("href",2)});n=null}();r.querySelectorAll&&function(){var i=n,t=r.createElement("div"),o="__sizzle__",e;if(t.innerHTML="<p class='TEST'><\/p>",!t.querySelectorAll||t.querySelectorAll(".TEST").length!==0){n=function(t,e,s,h){var c,l;if(e=e||r,!h&&!n.isXML(e)){if(c=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t),c&&(e.nodeType===1||e.nodeType===9)){if(c[1])return f(e.getElementsByTagName(t),s);if(c[2]&&u.find.CLASS&&e.getElementsByClassName)return f(e.getElementsByClassName(c[2]),s)}if(e.nodeType===9){if(t==="body"&&e.body)return f([e.body],s);if(c&&c[3]){if(l=e.getElementById(c[3]),!l||!l.parentNode)return f([],s);if(l.id===c[3])return f([l],s)}try{return f(e.querySelectorAll(t),s)}catch(b){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var w=e,v=e.getAttribute("id"),a=v||o,y=e.parentNode,p=/^\s*[+~]/.test(t);v?a=a.replace(/'/g,"\\$&"):e.setAttribute("id",a);p&&y&&(e=e.parentNode);try{if(!p||y)return f(e.querySelectorAll("[id='"+a+"'] "+t),s)}catch(k){}finally{v||w.removeAttribute("id")}}}return i(t,e,s,h)};for(e in i)n[e]=i[e];t=null}}(),function(){var t=r.documentElement,i=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector,e,f;if(i){e=!i.call(r.createElement("div"),"div");f=!1;try{i.call(r.documentElement,"[test!='']:sizzle")}catch(o){f=!0}n.matchesSelector=function(t,r){if(r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!n.isXML(t))try{if(f||!u.match.PSEUDO.test(r)&&!/!=/.test(r)){var o=i.call(t,r);if(o||!e||t.document&&t.document.nodeType!==11)return o}}catch(s){}return n(r,null,null,[t]).length>0}}}(),function(){var n=r.createElement("div");if(n.innerHTML="<div class='test e'><\/div><div class='test'><\/div>",!!n.getElementsByClassName&&n.getElementsByClassName("e").length!==0){if(n.lastChild.className="e",n.getElementsByClassName("e").length===1)return;u.order.splice(1,0,"CLASS");u.find.CLASS=function(n,t,i){if(typeof t.getElementsByClassName!="undefined"&&!i)return t.getElementsByClassName(n[1])};n=null}}();n.contains=r.documentElement.contains?function(n,t){return n!==t&&(n.contains?n.contains(t):!0)}:r.documentElement.compareDocumentPosition?function(n,t){return!!(n.compareDocumentPosition(t)&16)}:function(){return!1};n.isXML=function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1};w=function(t,i,r){for(var e,o=[],s="",h=i.nodeType?[i]:i,f,c;e=u.match.PSEUDO.exec(t);)s+=e[0],t=t.replace(u.match.PSEUDO,"");for(t=u.relative[t]?t+"*":t,f=0,c=h.length;f<c;f++)n(t,h[f],o,r);return n.filter(s,o)};n.attr=i.attr;n.selectors.attrMap={};i.find=n;i.expr=n.selectors;i.expr[":"]=i.expr.filters;i.unique=n.uniqueSort;i.text=n.getText;i.isXMLDoc=n.isXML;i.contains=n.contains}();var pu=/Until$/,wu=/^(?:parents|prevUntil|prevAll)/,bu=/,/,ku=/^.[^:#\[\.,]*$/,du=Array.prototype.slice,wi=i.expr.match.POS,gu={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var s=this,t,f,r,o,u,e;if(typeof n!="string")return i(n).filter(function(){for(t=0,f=s.length;t<f;t++)if(i.contains(s[t],this))return!0});for(r=this.pushStack("","find",n),t=0,f=this.length;t<f;t++)if(o=r.length,i.find(n,this[t],r),t>0)for(u=o;u<r.length;u++)for(e=0;e<o;e++)if(r[e]===r[u]){r.splice(u--,1);break}return r},has:function(n){var t=i(n);return this.filter(function(){for(var n=0,r=t.length;n<r;n++)if(i.contains(this,t[n]))return!0})},not:function(n){return this.pushStack(ti(this,n,!1),"not",n)},filter:function(n){return this.pushStack(ti(this,n,!0),"filter",n)},is:function(n){return!!n&&(typeof n=="string"?wi.test(n)?i(n,this.context).index(this[0])>=0:i.filter(n,this).length>0:this.filter(n).length>0)},closest:function(n,t){var f=[],u,s,r=this[0],e,o;if(i.isArray(n)){for(e=1;r&&r.ownerDocument&&r!==t;){for(u=0;u<n.length;u++)i(r).is(n[u])&&f.push({selector:n[u],elem:r,level:e});r=r.parentNode;e++}return f}for(o=wi.test(n)||typeof n!="string"?i(n,t||this.context):0,u=0,s=this.length;u<s;u++)for(r=this[u];r;){if(o?o.index(r)>-1:i.find.matchesSelector(r,n)){f.push(r);break}if(r=r.parentNode,!r||!r.ownerDocument||r===t||r.nodeType===11)break}return f=f.length>1?i.unique(f):f,this.pushStack(f,"closest",n)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(n,t){var u=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),r=i.merge(this.get(),u);return this.pushStack(ii(u[0])||ii(r[0])?r:i.unique(r))},andSelf:function(){return this.add(this.prevObject)}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return i.nth(n,2,"nextSibling")},prev:function(n){return i.nth(n,2,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling(n.parentNode.firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.makeArray(n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return pu.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!gu[n]?i.unique(f):f,(this.length>1||bu.test(u))&&wu.test(n)&&(f=f.reverse()),this.pushStack(f,n,du.call(arguments).join(","))}});i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},nth:function(n,t,i){t=t||1;for(var r=0;n;n=n[i])if(n.nodeType===1&&++r===t)break;return n},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var bi="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",nf=/ jQuery\d+="(?:\d+|null)"/g,et=/^\s+/,ki=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,di=/<([\w:]+)/,tf=/<tbody/i,rf=/<|&#?\w+;/,uf=/<(?:script|style)/i,ff=/<(?:script|object|embed|option|style)/i,gi=new RegExp("<(?:"+bi+")","i"),nr=/checked\s*(?:[^=]|=\s*.checked.)/i,ef=/\/(java|ecma)script/i,of=/^\s*<!(?:\[CDATA\[|\-\-)/,u={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,"",""]},tr=ni(r);u.optgroup=u.option;u.tbody=u.tfoot=u.colgroup=u.caption=u.thead;u.th=u.td;i.support.htmlSerialize||(u._default=[1,"div<div>","<\/div>"]);i.fn.extend({text:function(n){return i.isFunction(n)?this.each(function(t){var r=i(this);r.text(n.call(this,t,r.text()))}):typeof n!="object"&&n!==t?this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n)):i.text(this)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.insertBefore(n,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var n=i.clean(arguments);return n.push.apply(n,this.toArray()),this.pushStack(n,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this.nextSibling)});if(arguments.length){var n=this.pushStack(this,"after",arguments);return n.push.apply(n,i.clean(arguments)),n}},remove:function(n,t){for(var u=0,r;(r=this[u])!=null;u++)(!n||i.filter(n,[r]).length)&&(t||r.nodeType!==1||(i.cleanData(r.getElementsByTagName("*")),i.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r));return this},empty:function(){for(var t=0,n;(n=this[t])!=null;t++)for(n.nodeType===1&&i.cleanData(n.getElementsByTagName("*"));n.firstChild;)n.removeChild(n.firstChild);return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){if(n===t)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(nf,""):null;if(typeof n!="string"||uf.test(n)||!i.support.leadingWhitespace&&et.test(n)||u[(di.exec(n)||["",""])[1].toLowerCase()])i.isFunction(n)?this.each(function(t){var r=i(this);r.html(n.call(this,t,r.html()))}):this.empty().append(n);else{n=n.replace(ki,"<$1><\/$2>");try{for(var r=0,f=this.length;r<f;r++)this[r].nodeType===1&&(i.cleanData(this[r].getElementsByTagName("*")),this[r].innerHTML=n)}catch(e){this.empty().append(n)}}return this},replaceWith:function(n){return this[0]&&this[0].parentNode?i.isFunction(n)?this.each(function(t){var r=i(this),u=r.html();r.replaceWith(n.call(this,t,u))}):(typeof n!="string"&&(n=i(n).detach()),this.each(function(){var t=this.nextSibling,r=this.parentNode;i(this).remove();t?i(t).before(n):i(r).append(n)})):this.length?this.pushStack(i(i.isFunction(n)?n():n),"replaceWith",n):this},detach:function(n){return this.remove(n,!0)},domManip:function(n,r,u){var c,h,f,o,e=n[0],l=[];if(!i.support.checkClone&&arguments.length===3&&typeof e=="string"&&nr.test(e))return this.each(function(){i(this).domManip(n,r,u,!0)});if(i.isFunction(e))return this.each(function(f){var o=i(this);n[0]=e.call(this,f,r?o.html():t);o.domManip(n,r,u)});if(this[0]){if(o=e&&e.parentNode,c=i.support.parentNode&&o&&o.nodeType===11&&o.childNodes.length===this.length?{fragment:o}:i.buildFragment(n,this,l),f=c.fragment,h=f.childNodes.length===1?f=f.firstChild:f.firstChild,h){r=r&&i.nodeName(h,"tr");for(var s=0,a=this.length,v=a-1;s<a;s++)u.call(r?tu(this[s],h):this[s],c.cacheable||a>1&&s<v?i.clone(f,!0,!0):f)}l.length&&i.each(l,gr)}return this}});i.buildFragment=function(n,t,u){var e,h,s,o,f=n[0];return t&&t[0]&&(o=t[0].ownerDocument||t[0]),o.createDocumentFragment||(o=r),n.length===1&&typeof f=="string"&&f.length<512&&o===r&&f.charAt(0)==="<"&&!ff.test(f)&&(i.support.checkClone||!nr.test(f))&&(i.support.html5Clone||!gi.test(f))&&(h=!0,s=i.fragments[f],s&&s!==1&&(e=s)),e||(e=o.createDocumentFragment(),i.clean(n,o,e,u)),h&&(i.fragments[f]=s?e:1),{fragment:e,cacheable:h}};i.fragments={};i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(r){var e=[],u=i(r),o=this.length===1&&this[0].parentNode,f,h,s;if(o&&o.nodeType===11&&o.childNodes.length===1&&u.length===1)return u[t](this[0]),this;for(f=0,h=u.length;f<h;f++)s=(f>0?this.clone(!0):this).get(),i(u[f])[t](s),e=e.concat(s);return this.pushStack(e,n,u.selector)}});i.extend({clone:function(n,t,r){var f,e,u,o=i.support.html5Clone||!gi.test("<"+n.nodeName)?n.cloneNode(!0):nu(n);if((!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(dt(n,o),f=w(n),e=w(o),u=0;f[u];++u)e[u]&&dt(f[u],e[u]);if(t&&(gt(n,o),r))for(f=w(n),e=w(o),u=0;f[u];++u)gt(f[u],e[u]);return f=e=null,o},clean:function(n,t,f,e){var p,s,c,h,o,y,a,b,k;for(t=t||r,typeof t.createElement=="undefined"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||r),s=[],h=0;(o=n[h])!=null;h++)if(typeof o=="number"&&(o+=""),o){if(typeof o=="string")if(rf.test(o)){o=o.replace(ki,"<$1><\/$2>");var w=(di.exec(o)||["",""])[1].toLowerCase(),v=u[w]||u._default,d=v[0],l=t.createElement("div");for(t===r?tr.appendChild(l):ni(t).appendChild(l),l.innerHTML=v[1]+o+v[2];d--;)l=l.lastChild;if(!i.support.tbody)for(y=tf.test(o),a=w==="table"&&!y?l.firstChild&&l.firstChild.childNodes:v[1]==="<table>"&&!y?l.childNodes:[],c=a.length-1;c>=0;--c)i.nodeName(a[c],"tbody")&&!a[c].childNodes.length&&a[c].parentNode.removeChild(a[c]);!i.support.leadingWhitespace&&et.test(o)&&l.insertBefore(t.createTextNode(et.exec(o)[0]),l.firstChild);o=l.childNodes}else o=t.createTextNode(o);if(!i.support.appendChecked)if(o[0]&&typeof(b=o.length)=="number")for(c=0;c<b;c++)bt(o[c]);else bt(o);o.nodeType?s.push(o):s=i.merge(s,o)}if(f)for(p=function(n){return!n.type||ef.test(n.type)},h=0;s[h];h++)e&&i.nodeName(s[h],"script")&&(!s[h].type||s[h].type.toLowerCase()==="text/javascript")?e.push(s[h].parentNode?s[h].parentNode.removeChild(s[h]):s[h]):(s[h].nodeType===1&&(k=i.grep(s[h].getElementsByTagName("script"),p),s.splice.apply(s,[h+1,0].concat(k))),f.appendChild(s[h]));return s},cleanData:function(n){for(var f,r,u,e=i.cache,s=i.event.special,h=i.support.deleteExpando,o=0,t;(t=n[o])!=null;o++)if((!t.nodeName||!i.noData[t.nodeName.toLowerCase()])&&(u=t[i.expando],u)){if(r=e[u],r&&r.events){for(f in r.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,r.handle);r.handle&&(r.handle.elem=null)}h?delete t[i.expando]:t.removeAttribute&&t.removeAttribute(i.expando);delete e[u]}}});var ot=/alpha\([^)]*\)/i,sf=/opacity=([^)]*)/,hf=/([A-Z]|^ms)/g,ir=/^-?\d+(?:px)?$/i,cf=/^-?\d/,lf=/^([\-+])=([\-+.\de]+)/,af={position:"absolute",visibility:"hidden",display:"block"},vf=["Left","Right"],yf=["Top","Bottom"],l,rr,ur;i.fn.css=function(n,r){return arguments.length===2&&r===t?this:i.access(this,n,r,!0,function(n,r,u){return u!==t?i.style(n,r,u):i.css(n,r)})};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=l(n,"opacity","opacity");return i===""?"1":i}return n.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(!!n&&n.nodeType!==3&&n.nodeType!==8&&!!n.style){var o,s,h=i.camelCase(r),c=n.style,e=i.cssHooks[h];if(r=i.cssProps[h]||h,u===t)return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r];if(s=typeof u,s==="string"&&(o=lf.exec(u))&&(u=+(o[1]+1)*+o[2]+parseFloat(i.css(n,r)),s="number"),u==null||s==="number"&&isNaN(u))return;if(s!=="number"||i.cssNumber[h]||(u+="px"),!e||!("set"in e)||(u=e.set(n,u))!==t)try{c[r]=u}catch(l){}}},css:function(n,r,u){var e,f;return(r=i.camelCase(r),f=i.cssHooks[r],r=i.cssProps[r]||r,r==="cssFloat"&&(r="float"),f&&"get"in f&&(e=f.get(n,!0,u))!==t)?e:l?l(n,r):void 0},swap:function(n,t,i){var u={};for(var r in t)u[r]=n.style[r],n.style[r]=t[r];i.call(n);for(r in t)n.style[r]=u[r]}});i.curCSS=i.css;i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){var f;if(r)return n.offsetWidth!==0?wt(n,t,u):(i.swap(n,af,function(){f=wt(n,t,u)}),f)},set:function(n,t){return ir.test(t)?(t=parseFloat(t),t>=0?t+"px":void 0):t}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return sf.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",f=u&&u.filter||r.filter||"";(r.zoom=1,t>=1&&i.trim(f.replace(ot,""))===""&&(r.removeAttribute("filter"),u&&!u.filter))||(r.filter=ot.test(f)?f.replace(ot,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){var r;return i.swap(n,{display:"inline-block"},function(){r=t?l(n,"margin-right","marginRight"):n.style.marginRight}),r}})});r.defaultView&&r.defaultView.getComputedStyle&&(rr=function(n,t){var r,u,f;return t=t.replace(hf,"-$1").toLowerCase(),(u=n.ownerDocument.defaultView)&&(f=u.getComputedStyle(n,null))&&(r=f.getPropertyValue(t),r===""&&!i.contains(n.ownerDocument.documentElement,n)&&(r=i.style(n,t))),r});r.documentElement.currentStyle&&(ur=function(n,t){var f,u,e,i=n.currentStyle&&n.currentStyle[t],r=n.style;return i===null&&r&&(e=r[t])&&(i=e),!ir.test(i)&&cf.test(i)&&(f=r.left,u=n.runtimeStyle&&n.runtimeStyle.left,u&&(n.runtimeStyle.left=n.currentStyle.left),r.left=t==="fontSize"?"1em":i||0,i=r.pixelLeft+"px",r.left=f,u&&(n.runtimeStyle.left=u)),i===""?"auto":i});l=rr||ur;i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){var t=n.offsetWidth,r=n.offsetHeight;return t===0&&r===0||!i.support.reliableHiddenOffsets&&(n.style&&n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});var pf=/%20/g,wf=/\[\]$/,fr=/\r?\n/g,bf=/#.*$/,kf=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,df=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,gf=/^(?:GET|HEAD)$/,ne=/^\/\//,er=/\?/,te=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ie=/^(?:select|textarea)/i,or=/\s+/,re=/([?&])_=[^&]*/,sr=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,hr=i.fn.load,st={},cr={},o,s,lr=["*/"]+["*"];try{o=uu.href}catch(ee){o=r.createElement("a");o.href="";o=o.href}s=sr.exec(o.toLowerCase())||[];i.fn.extend({load:function(n,r,u){var f,e,o,s;return typeof n!="string"&&hr?hr.apply(this,arguments):this.length?(f=n.indexOf(" "),f>=0&&(e=n.slice(f,n.length),n=n.slice(0,f)),o="GET",r&&(i.isFunction(r)?(u=r,r=t):typeof r=="object"&&(r=i.param(r,i.ajaxSettings.traditional),o="POST")),s=this,i.ajax({url:n,type:o,dataType:"html",data:r,complete:function(n,t,r){r=n.responseText;n.isResolved()&&(n.done(function(n){r=n}),s.html(e?i("<div>").append(r.replace(te,"")).find(e):r));u&&s.each(u,[r,t,n])}}),this):this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?i.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ie.test(this.nodeName)||df.test(this.type))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(fr,"\r\n")}}):{name:t.name,value:r.replace(fr,"\r\n")}}).get()}});i.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({type:r,url:n,data:u,success:f,dataType:e})}});i.extend({getScript:function(n,r){return i.get(n,t,r,"script")},getJSON:function(n,t,r){return i.get(n,t,r,"json")},ajaxSetup:function(n,t){return t?yt(n,i.ajaxSettings):(t=n,n=i.ajaxSettings),yt(n,t),n},ajaxSettings:{url:o,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(s[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":lr},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:pt(st),ajaxTransport:pt(cr),ajax:function(n,r){function y(n,r,s,l){if(e!==2){e=2;nt&&clearTimeout(nt);c=t;g=l||"";f.readyState=n>0?4:0;var y,b,p,a=r,ut=s?dr(u,f,s):t,tt,it;if(n>=200&&n<300||n===304)if(u.ifModified&&((tt=f.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=tt),(it=f.getResponseHeader("Etag"))&&(i.etag[o]=it)),n===304)a="notmodified",y=!0;else try{b=kr(u,ut);a="success";y=!0}catch(ft){a="parsererror";p=ft}else p=a,(!a||n)&&(a="error",n<0&&(n=0));f.status=n;f.statusText=""+(r||a);y?d.resolveWith(h,[b,a,f]):d.rejectWith(h,[f,a,p]);f.statusCode(w);w=t;v&&k.trigger("ajax"+(y?"Success":"Error"),[f,u,y?b:p]);rt.fireWith(h,[f,a]);v&&(k.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop"))}}var tt,it;typeof n=="object"&&(r=n,n=t);r=r||{};var u=i.ajaxSetup({},r),h=u.context||u,k=h!==u&&(h.nodeType||h instanceof i)?i(h):i.event,d=i.Deferred(),rt=i.Callbacks("once memory"),w=u.statusCode||{},o,ut={},ft={},g,b,c,nt,l,e=0,v,a,f={readyState:0,setRequestHeader:function(n,t){if(!e){var i=n.toLowerCase();n=ft[i]=ft[i]||n;ut[n]=t}return this},getAllResponseHeaders:function(){return e===2?g:null},getResponseHeader:function(n){var i;if(e===2){if(!b)for(b={};i=kf.exec(g);)b[i[1].toLowerCase()]=i[2];i=b[n.toLowerCase()]}return i===t?null:i},overrideMimeType:function(n){return e||(u.mimeType=n),this},abort:function(n){return n=n||"abort",c&&c.abort(n),y(0,n),this}};if(d.promise(f),f.success=f.done,f.error=f.fail,f.complete=rt.add,f.statusCode=function(n){if(n){var t;if(e<2)for(t in n)w[t]=[w[t],n[t]];else t=n[f.status],f.then(t,t)}return this},u.url=((n||u.url)+"").replace(bf,"").replace(ne,s[1]+"//"),u.dataTypes=i.trim(u.dataType||"*").toLowerCase().split(or),u.crossDomain==null&&(l=sr.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]==s[1]&&l[2]==s[2]&&(l[3]||(l[1]==="http:"?80:443))==(s[3]||(s[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),p(st,u,r,f),e===2)return!1;v=u.global;u.type=u.type.toUpperCase();u.hasContent=!gf.test(u.type);v&&i.active++==0&&i.event.trigger("ajaxStart");u.hasContent||(u.data&&(u.url+=(er.test(u.url)?"&":"?")+u.data,delete u.data),o=u.url,u.cache===!1&&(tt=i.now(),it=u.url.replace(re,"$1_="+tt),u.url=it+(it===u.url?(er.test(u.url)?"&":"?")+"_="+tt:"")));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);u.ifModified&&(o=o||u.url,i.lastModified[o]&&f.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&f.setRequestHeader("If-None-Match",i.etag[o]));f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+lr+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||e===2))return f.abort(),!1;for(a in{success:1,error:1,complete:1})f[a](u[a]);if(c=p(cr,u,r,f),c){f.readyState=1;v&&k.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(nt=setTimeout(function(){f.abort("timeout")},u.timeout));try{e=1;c.send(ut,y)}catch(et){if(e<2)y(-1,et);else throw et;}}else y(-1,"No Transport");return f},param:function(n,r){var u=[],e=function(n,t){t=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)},f;if(r===t&&(r=i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(f in n)rt(f,n[f],r,e);return u.join("&").replace(pf,"+")}});i.extend({active:0,lastModified:{},etag:{}});ar=i.now();y=/(\=)\?(&|$)|\?\?/i;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return i.expando+"_"+ar++}});i.ajaxPrefilter("json jsonp",function(t,r,u){var h=t.contentType==="application/x-www-form-urlencoded"&&typeof t.data=="string";if(t.dataTypes[0]==="jsonp"||t.jsonp!==!1&&(y.test(t.url)||h&&y.test(t.data))){var o,f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,c=n[f],e=t.url,s=t.data,l="$1"+f+"$2";return t.jsonp!==!1&&(e=e.replace(y,l),t.url===e&&(h&&(s=s.replace(y,l)),t.data===s&&(e+=(/\?/.test(e)?"&":"?")+t.jsonp+"="+f))),t.url=e,t.data=s,n[f]=function(n){o=[n]},u.always(function(){n[f]=c;o&&i.isFunction(c)&&n[f](o[0])}),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json","script"}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var i,u=r.head||r.getElementsByTagName("head")[0]||r.documentElement;return{send:function(f,e){i=r.createElement("script");i.async="async";n.scriptCharset&&(i.charset=n.scriptCharset);i.src=n.url;i.onload=i.onreadystatechange=function(n,r){(r||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,u&&i.parentNode&&u.removeChild(i),i=t,r||e(200,"success"))};u.insertBefore(i,u.firstChild)},abort:function(){i&&i.onload(0,1)}}}});g=n.ActiveXObject?function(){for(var n in a)a[n](0,1)}:!1;vr=0;i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&vt()||br()}:vt,function(n){i.extend(i.support,{ajax:!!n,cors:!!n&&"withCredentials"in n})}(i.ajaxSettings.xhr());i.support.ajax&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var o=r.xhr(),h,s;if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,v,y,c,l;try{if(u&&(f||o.readyState===4))if(u=t,h&&(o.onreadystatechange=i.noop,g&&delete a[h]),f)o.readyState!==4&&o.abort();else{s=o.status;y=o.getAllResponseHeaders();c={};l=o.responseXML;l&&l.documentElement&&(c.xml=l);c.text=o.responseText;try{v=o.statusText}catch(w){v=""}!s&&r.isLocal&&!r.crossDomain?s=c.text?200:404:s===1223&&(s=204)}}catch(p){f||e(-1,p)}c&&e(s,v,c,y)};!r.async||o.readyState===4?u():(h=++vr,g&&(a||(a={},i(n).unload(g)),a[h]=u),o.onreadystatechange=u)},abort:function(){u&&u(0,1)}}}});var ht={},f,v,ue=/^(?:toggle|show|hide)$/,fe=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,nt,yr=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],tt;i.fn.extend({show:function(n,t,r){var u,e,f,o;if(n||n===0)return this.animate(h("show",3),n,t,r);for(f=0,o=this.length;f<o;f++)u=this[f],u.style&&(e=u.style.display,!i._data(u,"olddisplay")&&e==="none"&&(e=u.style.display=""),e===""&&i.css(u,"display")==="none"&&i._data(u,"olddisplay",lt(u.nodeName)));for(f=0;f<o;f++)u=this[f],u.style&&(e=u.style.display,(e===""||e==="none")&&(u.style.display=i._data(u,"olddisplay")||""));return this},hide:function(n,t,r){if(n||n===0)return this.animate(h("hide",3),n,t,r);for(var f,e,u=0,o=this.length;u<o;u++)f=this[u],f.style&&(e=i.css(f,"display"),e!=="none"&&!i._data(f,"olddisplay")&&i._data(f,"olddisplay",e));for(u=0;u<o;u++)this[u].style&&(this[u].style.display="none");return this},_toggle:i.fn.toggle,toggle:function(n,t,r){var u=typeof n=="boolean";return i.isFunction(n)&&i.isFunction(t)?this._toggle.apply(this,arguments):n==null||u?this.each(function(){var t=u?n:i(this).is(":hidden");i(this)[t?"show":"hide"]()}):this.animate(h("toggle",3),n,t,r),this},fadeTo:function(n,t,i,r){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){function e(){f.queue===!1&&i._mark(this);var u=i.extend({},f),y=this.nodeType===1,v=y&&i(this).is(":hidden"),e,t,r,o,h,s,c,l,a;u.animatedProperties={};for(r in n){if(e=i.camelCase(r),r!==e&&(n[e]=n[r],delete n[r]),t=n[e],i.isArray(t)?(u.animatedProperties[e]=t[1],t=n[e]=t[0]):u.animatedProperties[e]=u.specialEasing&&u.specialEasing[e]||u.easing||"swing",t==="hide"&&v||t==="show"&&!v)return u.complete.call(this);y&&(e==="height"||e==="width")&&(u.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],i.css(this,"display")==="inline"&&i.css(this,"float")==="none"&&(!i.support.inlineBlockNeedsLayout||lt(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}u.overflow!=null&&(this.style.overflow="hidden");for(r in n)o=new i.fx(this,u,r),t=n[r],ue.test(t)?(a=i._data(this,"toggle"+r)||(t==="toggle"?v?"show":"hide":0),a?(i._data(this,"toggle"+r,a==="show"?"hide":"show"),o[a]()):o[t]()):(h=fe.exec(t),s=o.cur(),h?(c=parseFloat(h[2]),l=h[3]||(i.cssNumber[r]?"":"px"),l!=="px"&&(i.style(this,r,(c||1)+l),s=(c||1)/o.cur()*s,i.style(this,r,s+l)),h[1]&&(c=(h[1]==="-="?-1:1)*c+s),o.custom(s,c,l)):o.custom(s,t,""));return!0}var f=i.speed(t,r,u);return i.isEmptyObject(n)?this.each(f.complete,[!1]):(n=i.extend({},n),f.queue===!1?this.each(e):this.queue(f.queue,e))},stop:function(n,r,u){return typeof n!="string"&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){function e(n,t,r){var f=t[r];i.removeData(n,r,!0);f.stop(u)}var t,o=!1,f=i.timers,r=i._data(this);if(u||i._unmark(!0,this),n==null)for(t in r)r[t]&&r[t].stop&&t.indexOf(".run")===t.length-4&&e(this,r,t);else r[t=n+".run"]&&r[t].stop&&e(this,r,t);for(t=f.length;t--;)f[t].elem===this&&(n==null||f[t].queue===n)&&(u?f[t](!0):f[t].saveState(),o=!0,f.splice(t,1));u&&o||i.dequeue(this,n)})}});i.each({slideDown:h("show",1),slideUp:h("hide",1),slideToggle:h("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.extend({speed:function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(n){i.isFunction(u.old)&&u.old.call(this);u.queue?i.dequeue(this,u.queue):n!==!1&&i._unmark(this)},u},easing:{linear:function(n,t,i,r){return i+r*n},swing:function(n,t,i,r){return(-Math.cos(n*Math.PI)/2+.5)*r+i}},timers:[],fx:function(n,t,i){this.options=t;this.elem=n;this.prop=i;t.orig=t.orig||{}}});i.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(i.fx.step[this.prop]||i.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var t,n=i.css(this.elem,this.prop);return isNaN(t=parseFloat(n))?!n||n==="auto"?0:n:t},custom:function(n,r,u){function e(n){return f.step(n)}var f=this,o=i.fx;this.startTime=tt||at();this.end=r;this.now=this.start=n;this.pos=this.state=0;this.unit=u||this.unit||(i.cssNumber[this.prop]?"":"px");e.queue=this.options.queue;e.elem=this.elem;e.saveState=function(){f.options.hide&&i._data(f.elem,"fxshow"+f.prop)===t&&i._data(f.elem,"fxshow"+f.prop,f.start)};e()&&i.timers.push(e)&&!nt&&(nt=setInterval(o.tick,o.interval))},show:function(){var n=i._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=n||i.style(this.elem,this.prop);this.options.show=!0;n!==t?this.custom(this.cur(),n):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());i(this.elem).show()},hide:function(){this.options.orig[this.prop]=i._data(this.elem,"fxshow"+this.prop)||i.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(n){var r,f,e,o=tt||at(),s=!0,u=this.elem,t=this.options;if(n||o>=t.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();t.animatedProperties[this.prop]=!0;for(r in t.animatedProperties)t.animatedProperties[r]!==!0&&(s=!1);if(s){if(t.overflow==null||i.support.shrinkWrapBlocks||i.each(["","X","Y"],function(n,i){u.style["overflow"+i]=t.overflow[n]}),t.hide&&i(u).hide(),t.hide||t.show)for(r in t.animatedProperties)i.style(u,r,t.orig[r]),i.removeData(u,"fxshow"+r,!0),i.removeData(u,"toggle"+r,!0);e=t.complete;e&&(t.complete=!1,e.call(u))}return!1}return t.duration==Infinity?this.now=o:(f=o-this.startTime,this.state=f/t.duration,this.pos=i.easing[t.animatedProperties[this.prop]](this.state,f,0,1,t.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}};i.extend(i.fx,{tick:function(){for(var r,n=i.timers,t=0;t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop()},interval:13,stop:function(){clearInterval(nt);nt=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(n){i.style(n.elem,"opacity",n.now)},_default:function(n){n.elem.style&&n.elem.style[n.prop]!=null?n.elem.style[n.prop]=n.now+n.unit:n.elem[n.prop]=n.now}}});i.each(["width","height"],function(n,t){i.fx.step[t]=function(n){i.style(n.elem,t,Math.max(0,n.now)+n.unit)}});i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});pr=/^t(?:able|d|h)$/i;ct=/^(?:body|html)$/i;i.fn.offset="getBoundingClientRect"in r.documentElement?function(n){var t=this[0],r,f,u;if(n)return this.each(function(t){i.offset.setOffset(this,n,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return i.offset.bodyOffset(t);try{r=t.getBoundingClientRect()}catch(y){}if(f=t.ownerDocument,u=f.documentElement,!r||!i.contains(u,t))return r?{top:r.top,left:r.left}:{top:0,left:0};var e=f.body,o=it(f),s=u.clientTop||e.clientTop||0,h=u.clientLeft||e.clientLeft||0,c=o.pageYOffset||i.support.boxModel&&u.scrollTop||e.scrollTop,l=o.pageXOffset||i.support.boxModel&&u.scrollLeft||e.scrollLeft,a=r.top+c-s,v=r.left+l-h;return{top:a,left:v}}:function(n){var t=this[0];if(n)return this.each(function(t){i.offset.setOffset(this,n,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return i.offset.bodyOffset(t);for(var r,h=t.offsetParent,a=t,c=t.ownerDocument,l=c.documentElement,e=c.body,s=c.defaultView,o=s?s.getComputedStyle(t,null):t.currentStyle,u=t.offsetTop,f=t.offsetLeft;(t=t.parentNode)&&t!==e&&t!==l;){if(i.support.fixedPosition&&o.position==="fixed")break;r=s?s.getComputedStyle(t,null):t.currentStyle;u-=t.scrollTop;f-=t.scrollLeft;t===h&&(u+=t.offsetTop,f+=t.offsetLeft,i.support.doesNotAddBorder&&(!i.support.doesAddBorderForTableAndCells||!pr.test(t.nodeName))&&(u+=parseFloat(r.borderTopWidth)||0,f+=parseFloat(r.borderLeftWidth)||0),a=h,h=t.offsetParent);i.support.subtractsBorderForOverflowNotVisible&&r.overflow!=="visible"&&(u+=parseFloat(r.borderTopWidth)||0,f+=parseFloat(r.borderLeftWidth)||0);o=r}return(o.position==="relative"||o.position==="static")&&(u+=e.offsetTop,f+=e.offsetLeft),i.support.fixedPosition&&o.position==="fixed"&&(u+=Math.max(l.scrollTop,e.scrollTop),f+=Math.max(l.scrollLeft,e.scrollLeft)),{top:u,left:f}};i.offset={bodyOffset:function(n){var t=n.offsetTop,r=n.offsetLeft;return i.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(i.css(n,"marginTop"))||0,r+=parseFloat(i.css(n,"marginLeft"))||0),{top:t,left:r}},setOffset:function(n,t,r){var f=i.css(n,"position");f==="static"&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=(f==="absolute"||f==="fixed")&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));t.top!=null&&(u.top=t.top-o.top+h);t.left!=null&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(!this[0])return null;var u=this[0],n=this.offsetParent(),t=this.offset(),r=ct.test(n[0].nodeName)?{top:0,left:0}:n.offset();return t.top-=parseFloat(i.css(u,"marginTop"))||0,t.left-=parseFloat(i.css(u,"marginLeft"))||0,r.top+=parseFloat(i.css(n[0],"borderTopWidth"))||0,r.left+=parseFloat(i.css(n[0],"borderLeftWidth"))||0,{top:t.top-r.top,left:t.left-r.left}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||r.body;n&&!ct.test(n.nodeName)&&i.css(n,"position")==="static";)n=n.offsetParent;return n})}});i.each(["Left","Top"],function(n,r){var u="scroll"+r;i.fn[u]=function(r){var e,f;return r===t?(e=this[0],!e)?null:(f=it(e),f?"pageXOffset"in f?f[n?"pageYOffset":"pageXOffset"]:i.support.boxModel&&f.document.documentElement[u]||f.document.body[u]:e[u]):this.each(function(){f=it(this);f?f.scrollTo(n?i(f).scrollLeft():r,n?r:i(f).scrollTop()):this[u]=r})}});i.each(["Height","Width"],function(n,r){var u=r.toLowerCase();i.fn["inner"+r]=function(){var n=this[0];return n?n.style?parseFloat(i.css(n,u,"padding")):this[u]():null};i.fn["outer"+r]=function(n){var t=this[0];return t?t.style?parseFloat(i.css(t,u,n?"margin":"border")):this[u]():null};i.fn[u]=function(n){var f=this[0],e,o,s,h;return f?i.isFunction(n)?this.each(function(t){var r=i(this);r[u](n.call(this,t,r[u]()))}):i.isWindow(f)?(e=f.document.documentElement["client"+r],o=f.document.body,f.document.compatMode==="CSS1Compat"&&e||o&&o["client"+r]||e):f.nodeType===9?Math.max(f.documentElement["client"+r],f.body["scroll"+r],f.documentElement["scroll"+r],f.body["offset"+r],f.documentElement["offset"+r]):n===t?(s=i.css(f,u),h=parseFloat(s),i.isNumeric(h)?h:s):this.css(u,typeof n=="string"?n:n+"px"):n==null?null:this}});n.jQuery=n.$=i;typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return i})}(window),function(n,t){function i(t,i){var u=t.nodeName.toLowerCase(),f,e,o;return"area"===u?(f=t.parentNode,e=f.name,!t.href||!e||f.nodeName.toLowerCase()!=="map"?!1:(o=n("img[usemap=#"+e+"]")[0],!!o&&r(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"==u?t.href||i:i)&&r(t)}function r(t){return!n(t).parents().andSelf().filter(function(){return n.curCSS(this,"visibility")==="hidden"||n.expr.filters.hidden(this)}).length}(n.ui=n.ui||{},n.ui.version)||(n.extend(n.ui,{version:"1.8.21",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),n.fn.extend({propAttr:n.fn.prop||n.fn.attr,_focus:n.fn.focus,focus:function(t,i){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){n(r).focus();i&&i.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return t=n.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(n.curCSS(this,"position",1))&&/(auto|scroll)/.test(n.curCSS(this,"overflow",1)+n.curCSS(this,"overflow-y",1)+n.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(n.curCSS(this,"overflow",1)+n.curCSS(this,"overflow-y",1)+n.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!t.length?n(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var r=n(this[0]),u,f;r.length&&r[0]!==document;){if(u=r.css("position"),(u==="absolute"||u==="relative"||u==="fixed")&&(f=parseInt(r.css("zIndex"),10),!isNaN(f)&&f!==0))return f;r=r.parent()}return 0},disableSelection:function(){return this.bind((n.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(n){n.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),n.each(["Width","Height"],function(i,r){function u(t,i,r,u){return n.each(o,function(){i-=parseFloat(n.curCSS(t,"padding"+this,!0))||0;r&&(i-=parseFloat(n.curCSS(t,"border"+this+"Width",!0))||0);u&&(i-=parseFloat(n.curCSS(t,"margin"+this,!0))||0)}),i}var o=r==="Width"?["Left","Right"]:["Top","Bottom"],f=r.toLowerCase(),e={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+r]=function(i){return i===t?e["inner"+r].call(this):this.each(function(){n(this).css(f,u(this,i)+"px")})};n.fn["outer"+r]=function(t,i){return typeof t!="number"?e["outer"+r].call(this,t):this.each(function(){n(this).css(f,u(this,t,!0,i)+"px")})}}),n.extend(n.expr[":"],{data:function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return i(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var r=n.attr(t,"tabindex"),u=isNaN(r);return(u||r>=0)&&i(t,!u)}}),n(function(){var i=document.body,t=i.appendChild(t=document.createElement("div"));t.offsetHeight;n.extend(t.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});n.support.minHeight=t.offsetHeight===100;n.support.selectstart="onselectstart"in t;i.removeChild(t).style.display="none"}),n.extend(n.ui,{plugin:{add:function(t,i,r){var f=n.ui[t].prototype;for(var u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i){var u=n.plugins[t],r;if(u&&n.element[0].parentNode)for(r=0;r<u.length;r++)n.options[u[r][0]]&&u[r][1].apply(n.element,i)}},contains:function(n,t){return document.compareDocumentPosition?n.compareDocumentPosition(t)&16:n!==t&&n.contains(t)},hasScroll:function(t,i){if(n(t).css("overflow")==="hidden")return!1;var r=i&&i==="left"?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)},isOverAxis:function(n,t,i){return n>t&&n<t+i},isOver:function(t,i,r,u,f,e){return n.ui.isOverAxis(t,r,f)&&n.ui.isOverAxis(i,u,e)}}))}(jQuery),function(n,t){var i,r;n.cleanData?(i=n.cleanData,n.cleanData=function(t){for(var r=0,u;(u=t[r])!=null;r++)try{n(u).triggerHandler("remove")}catch(f){}i(t)}):(r=n.fn.remove,n.fn.remove=function(t,i){return this.each(function(){return i||(!t||n.filter(t,[this]).length)&&n("*",this).add([this]).each(function(){try{n(this).triggerHandler("remove")}catch(t){}}),r.call(n(this),t,i)})});n.widget=function(t,i,r){var u=t.split(".")[0],e,f;t=t.split(".")[1];e=u+"-"+t;r||(r=i,i=n.Widget);n.expr[":"][e]=function(i){return!!n.data(i,t)};n[u]=n[u]||{};n[u][t]=function(n,t){arguments.length&&this._createWidget(n,t)};f=new i;f.options=n.extend(!0,{},f.options);n[u][t].prototype=n.extend(!0,f,{namespace:u,widgetName:t,widgetEventPrefix:n[u][t].prototype.widgetEventPrefix||t,widgetBaseClass:e},r);n.widget.bridge(t,n[u][t])};n.widget.bridge=function(i,r){n.fn[i]=function(u){var f=typeof u=="string",e=Array.prototype.slice.call(arguments,1),o=this;return u=!f&&e.length?n.extend.apply(null,[!0,u].concat(e)):u,f&&u.charAt(0)==="_"?o:(f?this.each(function(){var r=n.data(this,i),f=r&&n.isFunction(r[u])?r[u].apply(r,e):r;if(f!==r&&f!==t)return o=f,!1}):this.each(function(){var t=n.data(this,i);t?t.option(u||{})._init():n.data(this,i,new r(u,this))}),o)}};n.Widget=function(n,t){arguments.length&&this._createWidget(n,t)};n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(t,i){n.data(i,this.widgetName,this);this.element=n(i);this.options=n.extend(!0,{},this.options,this._getCreateOptions(),t);var r=this;this.element.bind("remove."+this.widgetName,function(){r.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return n.metadata&&n.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(i,r){var u=i;if(arguments.length===0)return n.extend({},this.options);if(typeof i=="string"){if(r===t)return this.options[i];u={};u[i]=r}return this._setOptions(u),this},_setOptions:function(t){var i=this;return n.each(t,function(n,t){i._setOption(n,t)}),this},_setOption:function(n,t){return this.options[n]=t,n==="disabled"&&this.widget()[t?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",t),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.call(this.element[0],i,r)===!1||i.isDefaultPrevented())}}}(jQuery),function(n){var t=!1;n(document).mouseup(function(){t=!1});n.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).bind("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i);this._mouseDownEvent=i;var r=this,u=i.which==1,f=typeof this.options.cancel=="string"&&i.target.nodeName?n(i.target).closest(this.options.cancel).length:!1;return!u||f||!this._mouseCapture(i)?!0:(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted))?(i.preventDefault(),!0):(!0===n.data(i.target,this.widgetName+".preventClickEvent")&&n.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return r._mouseMove(n)},this._mouseUpDelegate=function(n){return r._mouseUp(n)},n(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)}},_mouseMove:function(t){return!n.browser.msie||document.documentMode>=9||!!t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target==this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(n){n.ui=n.ui||{};var i=/left|center|right/,r=/top|center|bottom/,t="center",u={},f=n.fn.position,e=n.fn.offset;n.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=n.extend({},e);var s=n(e.of),v=s[0],a=(e.collision||"flip").split(" "),h=e.offset?e.offset.split(" "):[0,0],c,l,o;return v.nodeType===9?(c=s.width(),l=s.height(),o={top:0,left:0}):v.setTimeout?(c=s.width(),l=s.height(),o={top:s.scrollTop(),left:s.scrollLeft()}):v.preventDefault?(e.at="left top",c=l=0,o={top:e.of.pageY,left:e.of.pageX}):(c=s.outerWidth(),l=s.outerHeight(),o=s.offset()),n.each(["my","at"],function(){var n=(e[this]||"").split(" ");n.length===1&&(n=i.test(n[0])?n.concat([t]):r.test(n[0])?[t].concat(n):[t,t]);n[0]=i.test(n[0])?n[0]:t;n[1]=r.test(n[1])?n[1]:t;e[this]=n}),a.length===1&&(a[1]=a[0]),h[0]=parseInt(h[0],10)||0,h.length===1&&(h[1]=h[0]),h[1]=parseInt(h[1],10)||0,e.at[0]==="right"?o.left+=c:e.at[0]===t&&(o.left+=c/2),e.at[1]==="bottom"?o.top+=l:e.at[1]===t&&(o.top+=l/2),o.left+=h[0],o.top+=h[1],this.each(function(){var r=n(this),f=r.outerWidth(),s=r.outerHeight(),v=parseInt(n.curCSS(this,"marginLeft",!0))||0,y=parseInt(n.curCSS(this,"marginTop",!0))||0,w=f+v+(parseInt(n.curCSS(this,"marginRight",!0))||0),b=s+y+(parseInt(n.curCSS(this,"marginBottom",!0))||0),i=n.extend({},o),p;e.my[0]==="right"?i.left-=f:e.my[0]===t&&(i.left-=f/2);e.my[1]==="bottom"?i.top-=s:e.my[1]===t&&(i.top-=s/2);u.fractions||(i.left=Math.round(i.left),i.top=Math.round(i.top));p={left:i.left-v,top:i.top-y};n.each(["left","top"],function(t,r){n.ui.position[a[t]]&&n.ui.position[a[t]][r](i,{targetWidth:c,targetHeight:l,elemWidth:f,elemHeight:s,collisionPosition:p,collisionWidth:w,collisionHeight:b,offset:h,my:e.my,at:e.at})});n.fn.bgiframe&&r.bgiframe();r.offset(n.extend(i,{using:e.using}))})};n.ui.position={fit:{left:function(t,i){var r=n(window),u=i.collisionPosition.left+i.collisionWidth-r.width()-r.scrollLeft();t.left=u>0?t.left-u:Math.max(t.left-i.collisionPosition.left,t.left)},top:function(t,i){var r=n(window),u=i.collisionPosition.top+i.collisionHeight-r.height()-r.scrollTop();t.top=u>0?t.top-u:Math.max(t.top-i.collisionPosition.top,t.top)}},flip:{left:function(i,r){if(r.at[0]!==t){var u=n(window),s=r.collisionPosition.left+r.collisionWidth-u.width()-u.scrollLeft(),f=r.my[0]==="left"?-r.elemWidth:r.my[0]==="right"?r.elemWidth:0,e=r.at[0]==="left"?r.targetWidth:-r.targetWidth,o=-2*r.offset[0];i.left+=r.collisionPosition.left<0?f+e+o:s>0?f+e+o:0}},top:function(i,r){if(r.at[1]!==t){var u=n(window),s=r.collisionPosition.top+r.collisionHeight-u.height()-u.scrollTop(),f=r.my[1]==="top"?-r.elemHeight:r.my[1]==="bottom"?r.elemHeight:0,e=r.at[1]==="top"?r.targetHeight:-r.targetHeight,o=-2*r.offset[1];i.top+=r.collisionPosition.top<0?f+e+o:s>0?f+e+o:0}}}};n.offset.setOffset||(n.offset.setOffset=function(t,i){/static/.test(n.curCSS(t,"position"))&&(t.style.position="relative");var r=n(t),u=r.offset(),e=parseInt(n.curCSS(t,"top",!0),10)||0,o=parseInt(n.curCSS(t,"left",!0),10)||0,f={top:i.top-u.top+e,left:i.left-u.left+o};"using"in i?i.using.call(t,f):r.css(f)},n.fn.offset=function(t){var i=this[0];return!i||!i.ownerDocument?null:t?n.isFunction(t)?this.each(function(i){n(this).offset(t.call(this,i,n(this).offset()))}):this.each(function(){n.offset.setOffset(this,t)}):e.call(this)}),function(){var i=document.getElementsByTagName("body")[0],e=document.createElement("div"),t,r,f,o,s,h;t=document.createElement(i?"div":"body");f={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};i&&n.extend(f,{position:"absolute",left:"-1000px",top:"-1000px"});for(h in f)t.style[h]=f[h];t.appendChild(e);r=i||document.documentElement;r.insertBefore(t,r.firstChild);e.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;";o=n(e).offset(function(n,t){return t}).offset();t.innerHTML="";r.removeChild(t);s=o.top+o.left+(i?2e3:0);u.fractions=s>21&&s<22}()}(jQuery),function(n){n.widget("ui.draggable",n.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){this.options.helper!="original"||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative");this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||n(t.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(t),this.handle?(i.iframeFix&&n(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){n('<div class="ui-draggable-iframeFix" style="background: #fff;"><\/div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(n(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp({}),!1;this.position=r.position}return this.options.axis&&this.options.axis=="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis=="x"||(this.helper[0].style.top=this.position.top+"px"),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=!1,r,u,f;for(n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),r=this.element[0],u=!1;r&&(r=r.parentNode);)r==document&&(u=!0);return!u&&this.options.helper==="original"?!1:(this.options.revert=="invalid"&&!i||this.options.revert=="valid"&&i||this.options.revert===!0||n.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?(f=this,n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",t)!==!1&&f._clear()})):this._trigger("stop",t)!==!1&&this._clear(),!1)},_mouseUp:function(t){return this.options.iframeFix===!0&&n("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var i=!this.options.handle||!n(this.options.handle,this.element).length?!0:!1;return n(this.options.handle,this.element).find("*").andSelf().each(function(){this==t.target&&(i=!0)}),i},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t])):r.helper=="clone"?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo(r.appendTo=="parent"?this.element[0].parentNode:r.appendTo),i[0]!=this.element[0]&&!/(fixed|absolute)/.test(i.css("position"))&&i.css("position","absolute"),i},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&n.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&n.browser.msie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var n=this.element.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var i=this.options,r,t,f,u;if(i.containment=="parent"&&(i.containment=this.helper[0].parentNode),(i.containment=="document"||i.containment=="window")&&(this.containment=[i.containment=="document"?0:n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,i.containment=="document"?0:n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(i.containment=="document"?0:n(window).scrollLeft())+n(i.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(i.containment=="document"?0:n(window).scrollTop())+(n(i.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||i.containment.constructor==Array)i.containment.constructor==Array&&(this.containment=i.containment);else{if(r=n(i.containment),t=r[0],!t)return;f=r.offset();u=n(t).css("overflow")!="hidden";this.containment=[(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0),(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0),(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=r}},_convertPositionTo:function(t,i){i||(i=this.position);var r=t=="absolute"?1:-1,e=this.options,u=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!n.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(n.browser.safari&&n.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r),left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(n.browser.safari&&n.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r)}},_generatePosition:function(t){var r=this.options,h=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!n.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(h[0].tagName),e=t.pageX,o=t.pageY,i,s,u,f;return this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(e=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(o=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(e=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)),r.grid&&(u=r.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,o=i?u-this.offset.click.top<i[1]||u-this.offset.click.top>i[3]?u-this.offset.click.top<i[1]?u+r.grid[1]:u-r.grid[1]:u:u,f=r.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,e=i?f-this.offset.click.left<i[0]||f-this.offset.click.left>i[2]?f-this.offset.click.left<i[0]?f+r.grid[0]:f-r.grid[0]:f:f)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(n.browser.safari&&n.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:h.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(n.browser.safari&&n.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():c?0:h.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1},_trigger:function(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r]),t=="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});n.extend(n.ui.draggable,{version:"1.8.21"});n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i){var r=n(this).data("draggable"),u=r.options,f=n.extend({},i,{item:r.element});r.sortables=[];n(u.connectToSortable).each(function(){var i=n.data(this,"sortable");i&&!i.options.disabled&&(r.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,f))})},stop:function(t,i){var r=n(this).data("draggable"),u=n.extend({},i,{item:r.element});n.each(r.sortables,function(){this.instance.isOver?(this.instance.isOver=0,r.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,r.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,u))})},drag:function(t,i){var r=n(this).data("draggable"),u=this,f=function(t){var i=this.offset.click.top,r=this.offset.click.left,u=this.positionAbs.top,f=this.positionAbs.left,e=t.height,o=t.width,s=t.top,h=t.left;return n.ui.isOver(u+i,f+r,s,h,e,o)};n.each(r.sortables,function(){this.instance.positionAbs=r.positionAbs;this.instance.helperProportions=r.helperProportions;this.instance.offset.click=r.offset.click;this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=n(u).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=r.offset.click.top,this.instance.offset.click.left=r.offset.click.left,this.instance.offset.parent.left-=r.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=r.offset.parent.top-this.instance.offset.parent.top,r._trigger("toSortable",t),r.dropped=this.instance.element,r.currentItem=r.element,this.instance.fromOutside=r),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),r._trigger("fromSortable",t),r.dropped=!1)})}});n.ui.plugin.add("draggable","cursor",{start:function(){var t=n("body"),i=n(this).data("draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor"));t.css("cursor",i.cursor)},stop:function(){var t=n(this).data("draggable").options;t._cursor&&n("body").css("cursor",t._cursor)}});n.ui.plugin.add("draggable","opacity",{start:function(t,i){var r=n(i.helper),u=n(this).data("draggable").options;r.css("opacity")&&(u._opacity=r.css("opacity"));r.css("opacity",u.opacity)},stop:function(t,i){var r=n(this).data("draggable").options;r._opacity&&n(i.helper).css("opacity",r._opacity)}});n.ui.plugin.add("draggable","scroll",{start:function(){var t=n(this).data("draggable");t.scrollParent[0]!=document&&t.scrollParent[0].tagName!="HTML"&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var r=n(this).data("draggable"),i=r.options,u=!1;r.scrollParent[0]!=document&&r.scrollParent[0].tagName!="HTML"?(i.axis&&i.axis=="x"||(r.overflowOffset.top+r.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?r.scrollParent[0].scrollTop=u=r.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-r.overflowOffset.top<i.scrollSensitivity&&(r.scrollParent[0].scrollTop=u=r.scrollParent[0].scrollTop-i.scrollSpeed)),i.axis&&i.axis=="y"||(r.overflowOffset.left+r.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?r.scrollParent[0].scrollLeft=u=r.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-r.overflowOffset.left<i.scrollSensitivity&&(r.scrollParent[0].scrollLeft=u=r.scrollParent[0].scrollLeft-i.scrollSpeed))):(i.axis&&i.axis=="x"||(t.pageY-n(document).scrollTop()<i.scrollSensitivity?u=n(document).scrollTop(n(document).scrollTop()-i.scrollSpeed):n(window).height()-(t.pageY-n(document).scrollTop())<i.scrollSensitivity&&(u=n(document).scrollTop(n(document).scrollTop()+i.scrollSpeed))),i.axis&&i.axis=="y"||(t.pageX-n(document).scrollLeft()<i.scrollSensitivity?u=n(document).scrollLeft(n(document).scrollLeft()-i.scrollSpeed):n(window).width()-(t.pageX-n(document).scrollLeft())<i.scrollSensitivity&&(u=n(document).scrollLeft(n(document).scrollLeft()+i.scrollSpeed))));u!==!1&&n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}});n.ui.plugin.add("draggable","snap",{start:function(){var t=n(this).data("draggable"),i=t.options;t.snapElements=[];n(i.snap.constructor!=String?i.snap.items||":data(draggable)":i.snap).each(function(){var i=n(this),r=i.offset();this!=t.element[0]&&t.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:r.top,left:r.left})})},drag:function(t,i){for(var d,r=n(this).data("draggable"),k=r.options,u=k.snapTolerance,c=i.offset.left,a=c+r.helperProportions.width,l=i.offset.top,v=l+r.helperProportions.height,f=r.snapElements.length-1;f>=0;f--){var e=r.snapElements[f].left,s=e+r.snapElements[f].width,o=r.snapElements[f].top,h=o+r.snapElements[f].height;if(!(e-u<c&&c<s+u&&o-u<l&&l<h+u||e-u<c&&c<s+u&&o-u<v&&v<h+u||e-u<a&&a<s+u&&o-u<l&&l<h+u||e-u<a&&a<s+u&&o-u<v&&v<h+u)){r.snapElements[f].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[f].item}));r.snapElements[f].snapping=!1;continue}if(k.snapMode!="inner"){var y=Math.abs(o-v)<=u,p=Math.abs(h-l)<=u,w=Math.abs(e-a)<=u,b=Math.abs(s-c)<=u;y&&(i.position.top=r._convertPositionTo("relative",{top:o-r.helperProportions.height,left:0}).top-r.margins.top);p&&(i.position.top=r._convertPositionTo("relative",{top:h,left:0}).top-r.margins.top);w&&(i.position.left=r._convertPositionTo("relative",{top:0,left:e-r.helperProportions.width}).left-r.margins.left);b&&(i.position.left=r._convertPositionTo("relative",{top:0,left:s}).left-r.margins.left)}if(d=y||p||w||b,k.snapMode!="outer"){var y=Math.abs(o-l)<=u,p=Math.abs(h-v)<=u,w=Math.abs(e-c)<=u,b=Math.abs(s-a)<=u;y&&(i.position.top=r._convertPositionTo("relative",{top:o,left:0}).top-r.margins.top);p&&(i.position.top=r._convertPositionTo("relative",{top:h-r.helperProportions.height,left:0}).top-r.margins.top);w&&(i.position.left=r._convertPositionTo("relative",{top:0,left:e}).left-r.margins.left);b&&(i.position.left=r._convertPositionTo("relative",{top:0,left:s-r.helperProportions.width}).left-r.margins.left)}!r.snapElements[f].snapping&&(y||p||w||b||d)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[f].item}));r.snapElements[f].snapping=y||p||w||b||d}}});n.ui.plugin.add("draggable","stack",{start:function(){var r=n(this).data("draggable").options,t=n.makeArray(n(r.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)}),i;t.length&&(i=parseInt(t[0].style.zIndex)||0,n(t).each(function(n){this.style.zIndex=i+n}),this[0].style.zIndex=i+t.length)}});n.ui.plugin.add("draggable","zIndex",{start:function(t,i){var r=n(i.helper),u=n(this).data("draggable").options;r.css("zIndex")&&(u._zIndex=r.css("zIndex"));r.css("zIndex",u.zIndex)},stop:function(t,i){var r=n(this).data("draggable").options;r._zIndex&&n(i.helper).css("zIndex",r._zIndex)}})}(jQuery),function(n){n.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var t=this.options,i=t.accept;this.isover=0;this.isout=1;this.accept=n.isFunction(i)?i:function(n){return n.is(i)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};n.ui.ddmanager.droppables[t.scope]=n.ui.ddmanager.droppables[t.scope]||[];n.ui.ddmanager.droppables[t.scope].push(this);t.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var i=n.ui.ddmanager.droppables[this.options.scope],t=0;t<i.length;t++)i[t]==this&&i.splice(t,1);return this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable"),this},_setOption:function(t,i){t=="accept"&&(this.accept=n.isFunction(i)?i:function(n){return n.is(i)});n.Widget.prototype._setOption.apply(this,arguments)},_activate:function(t){var i=n.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u;return!r||(r.currentItem||r.element)[0]==this.element[0]?!1:(u=!1,this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var t=n.data(this,"droppable");if(t.options.greedy&&!t.options.disabled&&t.options.scope==r.options.scope&&t.accept.call(t.element[0],r.currentItem||r.element)&&n.ui.intersect(r,n.extend(t,{offset:t.element.offset()}),t.options.tolerance))return u=!0,!1}),u?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(r)),this.element):!1)},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}}});n.extend(n.ui.droppable,{version:"1.8.21"});n.ui.intersect=function(t,i,r){if(!i.offset)return!1;var e=(t.positionAbs||t.position.absolute).left,s=e+t.helperProportions.width,o=(t.positionAbs||t.position.absolute).top,h=o+t.helperProportions.height,u=i.offset.left,c=u+i.proportions.width,f=i.offset.top,l=f+i.proportions.height;switch(r){case"fit":return u<=e&&s<=c&&f<=o&&h<=l;case"intersect":return u<e+t.helperProportions.width/2&&s-t.helperProportions.width/2<c&&f<o+t.helperProportions.height/2&&h-t.helperProportions.height/2<l;case"pointer":var a=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,v=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top;return n.ui.isOver(v,a,f,u,i.proportions.height,i.proportions.width);case"touch":return(o>=f&&o<=l||h>=f&&h<=l||o<f&&h>l)&&(e>=u&&e<=c||s>=u&&s<=c||e<u&&s>c);default:return!1}};n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(droppable)").andSelf(),r,f;n:for(r=0;r<u.length;r++)if(!u[r].options.disabled&&(!t||u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;f<e.length;f++)if(e[f]==u[r].element[0]){u[r].proportions.height=0;continue n}(u[r].visible=u[r].element.css("display")!="none",u[r].visible)&&(o=="mousedown"&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions={width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight})}},drop:function(t,i){var r=!1;return n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&n.ui.intersect(t,this,this.options.tolerance)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parents(":not(body,html)").bind("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i);n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){var f,u,r,e;this.options.disabled||this.greedyChild||!this.visible||(f=n.ui.intersect(t,this,this.options.tolerance),u=!f&&this.isover==1?"isout":f&&this.isover==0?"isover":null,u)&&(this.options.greedy&&(e=this.element.parents(":data(droppable):eq(0)"),e.length&&(r=n.data(e[0],"droppable"),r.greedyChild=u=="isover"?1:0)),r&&u=="isover"&&(r.isover=0,r.isout=1,r._out.call(r,i)),this[u]=1,this[u=="isout"?"isover":"isout"]=0,this[u=="isover"?"_over":"_out"].call(this,i),r&&u=="isout"&&(r.isout=0,r.isover=1,r._over.call(r,i)))})},dragStop:function(t,i){t.element.parents(":not(body,html)").unbind("scroll.droppable");t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}}}(jQuery),function(n){n.widget("ui.resizable",n.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var i=this,t=this.options,f,r;if(this.element.addClass("ui-resizable"),n.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(n('<div class="ui-wrapper" style="overflow: hidden;"><\/div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=t.handles||(n(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor==String)for(this.handles=="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),f=this.handles.split(","),this.handles={},r=0;r<f.length;r++){var u=n.trim(f[r]),o="ui-resizable-"+u,e=n('<div class="ui-resizable-handle '+o+'"><\/div>');e.css({zIndex:t.zIndex});"se"==u&&e.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[u]=".ui-resizable-"+u;this.element.append(e)}this._renderAxis=function(t){var i,r,u,f;t=t||this.element;for(i in this.handles)this.handles[i].constructor==String&&(this.handles[i]=n(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(r=n(this.handles[i],this.element),u=0,u=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),f=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(f,u),this._proportionallyResize()),!n(this.handles[i]).length};this._renderAxis(this.element);this._handles=n(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!i.resizing){if(this.className)var n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);i.axis=n&&n[1]?n[1]:"se"}});t.autoHide&&(this._handles.hide(),n(this.element).addClass("ui-resizable-autohide").hover(function(){t.disabled||(n(this).removeClass("ui-resizable-autohide"),i._handles.show())},function(){t.disabled||i.resizing||(n(this).addClass("ui-resizable-autohide"),i._handles.hide())}));this._mouseInit()},destroy:function(){var i,t;return this._mouseDestroy(),i=function(t){n(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()},this.elementIsWrapper&&(i(this.element),t=this.element,t.after(this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")})).remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(t){var i=!1;for(var r in this.handles)n(this.handles[r])[0]==t.target&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(t){var u=this.options,s=this.element.position(),r=this.element,f,e,o;return this.resizing=!0,this.documentScroll={top:n(document).scrollTop(),left:n(document).scrollLeft()},(r.is(".ui-draggable")||/absolute/.test(r.css("position")))&&r.css({position:"absolute",top:s.top,left:s.left}),this._renderProxy(),f=i(this.helper.css("left")),e=i(this.helper.css("top")),u.containment&&(f+=n(u.containment).scrollLeft()||0,e+=n(u.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:f,top:e},this.size=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.originalPosition={left:f,top:e},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof u.aspectRatio=="number"?u.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor",o=="auto"?this.axis+"-resize":o),r.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var f=this.helper,h=this.options,c=this,r=this.originalMousePosition,e=this.axis,o=t.pageX-r.left||0,s=t.pageY-r.top||0,u=this._change[e];if(!u)return!1;var i=u.apply(this,[t,o,s]),l=n.browser.msie&&n.browser.version<7,a=this.sizeDiff;return this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._propagate("resize",t),f.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(i),this._trigger("resize",t,this.ui()),!1},_mouseStop:function(t){var r,i;if(this.resizing=!1,r=this.options,i=this,this._helper){var u=this._proportionallyResizeElements,f=u.length&&/textarea/i.test(u[0].nodeName),e=f&&n.ui.hasScroll(u[0],"left")?0:i.sizeDiff.height,o=f?0:i.sizeDiff.width,s={width:i.helper.width()-o,height:i.helper.height()-e},h=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;r.animate||this.element.css(n.extend(s,{top:c,left:h}));i.helper.height(i.size.height);i.helper.width(i.size.width);this._helper&&!r.animate&&this._proportionallyResize()}return n("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(n){var r=this.options,u,f,e,o,i;i={minWidth:t(r.minWidth)?r.minWidth:0,maxWidth:t(r.maxWidth)?r.maxWidth:Infinity,minHeight:t(r.minHeight)?r.minHeight:0,maxHeight:t(r.maxHeight)?r.maxHeight:Infinity};(this._aspectRatio||n)&&(u=i.minHeight*this.aspectRatio,e=i.minWidth/this.aspectRatio,f=i.maxHeight*this.aspectRatio,o=i.maxWidth/this.aspectRatio,u>i.minWidth&&(i.minWidth=u),e>i.minHeight&&(i.minHeight=e),f<i.maxWidth&&(i.maxWidth=f),o<i.maxHeight&&(i.maxHeight=o));this._vBoundaries=i},_updateCache:function(n){var i=this.options;this.offset=this.helper.offset();t(n.left)&&(this.position.left=n.left);t(n.top)&&(this.position.top=n.top);t(n.height)&&(this.size.height=n.height);t(n.width)&&(this.size.width=n.width)},_updateRatio:function(n){var f=this.options,i=this.position,r=this.size,u=this.axis;return t(n.height)?n.width=n.height*this.aspectRatio:t(n.width)&&(n.height=n.width/this.aspectRatio),u=="sw"&&(n.left=i.left+(r.width-n.width),n.top=null),u=="nw"&&(n.top=i.top+(r.height-n.height),n.left=i.left+(r.width-n.width)),n},_respectSize:function(n,i){var y=this.helper,r=this._vBoundaries,p=this._aspectRatio||i.shiftKey,f=this.axis,e=t(n.width)&&r.maxWidth&&r.maxWidth<n.width,o=t(n.height)&&r.maxHeight&&r.maxHeight<n.height,s=t(n.width)&&r.minWidth&&r.minWidth>n.width,h=t(n.height)&&r.minHeight&&r.minHeight>n.height,u;s&&(n.width=r.minWidth);h&&(n.height=r.minHeight);e&&(n.width=r.maxWidth);o&&(n.height=r.maxHeight);var c=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,a=/sw|nw|w/.test(f),v=/nw|ne|n/.test(f);return s&&a&&(n.left=c-r.minWidth),e&&a&&(n.left=c-r.maxWidth),h&&v&&(n.top=l-r.minHeight),o&&v&&(n.top=l-r.maxHeight),u=!n.width&&!n.height,u&&!n.left&&n.top?n.top=null:u&&!n.top&&n.left&&(n.left=null),n},_proportionallyResize:function(){var e=this.options,i,r,t,u,f;if(this._proportionallyResizeElements.length)for(i=this.helper||this.element,r=0;r<this._proportionallyResizeElements.length;r++)if(t=this._proportionallyResizeElements[r],this.borderDif||(u=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],f=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")],this.borderDif=n.map(u,function(n,t){var i=parseInt(n,10)||0,r=parseInt(f[t],10)||0;return i+r})),n.browser.msie&&(n(i).is(":hidden")||n(i).parents(":hidden").length))continue;else t.css({height:i.height()-this.borderDif[0]-this.borderDif[2]||0,width:i.width()-this.borderDif[1]-this.borderDif[3]||0})},_renderProxy:function(){var u=this.element,f=this.options;if(this.elementOffset=u.offset(),this._helper){this.helper=this.helper||n('<div style="overflow:hidden;"><\/div>');var t=n.browser.msie&&n.browser.version<7,i=t?1:0,r=t?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+r,height:this.element.outerHeight()+r,position:"absolute",left:this.elementOffset.left-i+"px",top:this.elementOffset.top-i+"px",zIndex:++f.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(n,t){return{width:this.originalSize.width+t}},w:function(n,t){var u=this.options,i=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:i.width-t}},n:function(n,t,i){var f=this.options,r=this.originalSize,u=this.originalPosition;return{top:u.top+i,height:r.height-i}},s:function(n,t,i){return{height:this.originalSize.height+i}},se:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},sw:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,r]))},ne:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},nw:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,r]))}},_propagate:function(t,i){n.ui.plugin.call(this,t,[i,this.ui()]);t!="resize"&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});n.extend(n.ui.resizable,{version:"1.8.21"});n.ui.plugin.add("resizable","alsoResize",{start:function(){var r=n(this).data("resizable"),t=r.options,i=function(t){n(t).each(function(){var t=n(this);t.data("resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};typeof t.alsoResize=="object"&&!t.alsoResize.parentNode?t.alsoResize.length?(t.alsoResize=t.alsoResize[0],i(t.alsoResize)):n.each(t.alsoResize,function(n){i(n)}):i(t.alsoResize)},resize:function(t,i){var r=n(this).data("resizable"),u=r.options,f=r.originalSize,e=r.originalPosition,s={height:r.size.height-f.height||0,width:r.size.width-f.width||0,top:r.position.top-e.top||0,left:r.position.left-e.left||0},o=function(t,r){n(t).each(function(){var t=n(this),f=n(this).data("resizable-alsoresize"),u={},e=r&&r.length?r:t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(e,function(n,t){var i=(f[t]||0)+(s[t]||0);i&&i>=0&&(u[t]=i||null)});t.css(u)})};typeof u.alsoResize=="object"&&!u.alsoResize.nodeType?n.each(u.alsoResize,function(n,t){o(n,t)}):o(u.alsoResize)},stop:function(){n(this).removeData("resizable-alsoresize")}});n.ui.plugin.add("resizable","animate",{stop:function(t){var i=n(this).data("resizable"),u=i.options,r=i._proportionallyResizeElements,f=r.length&&/textarea/i.test(r[0].nodeName),s=f&&n.ui.hasScroll(r[0],"left")?0:i.sizeDiff.height,h=f?0:i.sizeDiff.width,c={width:i.size.width-h,height:i.size.height-s},e=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,o=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(n.extend(c,o&&e?{top:o,left:e}:{}),{duration:u.animateDuration,easing:u.animateEasing,step:function(){var u={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};r&&r.length&&n(r[0]).css({width:u.width,height:u.height});i._updateCache(u);i._propagate("resize",t)}})}});n.ui.plugin.add("resizable","containment",{start:function(){var t=n(this).data("resizable"),s=t.options,h=t.element,u=s.containment,r=u instanceof n?u.get(0):/parent/.test(u)?h.parent().get(0):u,f,e;if(r)if(t.containerElement=n(r),/document/.test(u)||u==document)t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight};else{f=n(r);e=[];n(["Top","Right","Left","Bottom"]).each(function(n,t){e[n]=i(f.css("padding"+t))});t.containerOffset=f.offset();t.containerPosition=f.position();t.containerSize={height:f.innerHeight()-e[3],width:f.innerWidth()-e[1]};var o=t.containerOffset,c=t.containerSize.height,l=t.containerSize.width,a=n.ui.hasScroll(r,"left")?r.scrollWidth:l,v=n.ui.hasScroll(r)?r.scrollHeight:c;t.parentData={element:r,left:o.left,top:o.top,width:a,height:v}}},resize:function(t){var i=n(this).data("resizable"),c=i.options,v=i.containerSize,r=i.containerOffset,y=i.size,o=i.position,f=i._aspectRatio||t.shiftKey,u={top:0,left:0},s=i.containerElement;s[0]!=document&&/static/.test(s.css("position"))&&(u=r);o.left<(i._helper?r.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-r.left:i.position.left-u.left),f&&(i.size.height=i.size.width/i.aspectRatio),i.position.left=c.helper?r.left:0);o.top<(i._helper?r.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-r.top:i.position.top),f&&(i.size.width=i.size.height*i.aspectRatio),i.position.top=i._helper?r.top:0);i.offset.left=i.parentData.left+i.position.left;i.offset.top=i.parentData.top+i.position.top;var e=Math.abs((i._helper?i.offset.left-u.left:i.offset.left-u.left)+i.sizeDiff.width),h=Math.abs((i._helper?i.offset.top-u.top:i.offset.top-r.top)+i.sizeDiff.height),l=i.containerElement.get(0)==i.element.parent().get(0),a=/relative|absolute/.test(i.containerElement.css("position"));l&&a&&(e-=i.parentData.left);e+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-e,f&&(i.size.height=i.size.width/i.aspectRatio));h+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-h,f&&(i.size.width=i.size.height*i.aspectRatio))},stop:function(){var t=n(this).data("resizable"),r=t.options,c=t.position,u=t.containerOffset,f=t.containerPosition,e=t.containerElement,i=n(t.helper),o=i.offset(),s=i.outerWidth()-t.sizeDiff.width,h=i.outerHeight()-t.sizeDiff.height;t._helper&&!r.animate&&/relative/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h});t._helper&&!r.animate&&/static/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h})}});n.ui.plugin.add("resizable","ghost",{start:function(){var t=n(this).data("resizable"),i=t.options,r=t.size;t.ghost=t.originalElement.clone();t.ghost.css({opacity:.25,display:"block",position:"relative",height:r.height,width:r.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof i.ghost=="string"?i.ghost:"");t.ghost.appendTo(t.helper)},resize:function(){var t=n(this).data("resizable"),i=t.options;t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=n(this).data("resizable"),i=t.options;t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}});n.ui.plugin.add("resizable","grid",{resize:function(t){var i=n(this).data("resizable"),r=i.options,h=i.size,u=i.originalSize,o=i.originalPosition,s=i.axis,c=r._aspectRatio||t.shiftKey,f,e;r.grid=typeof r.grid=="number"?[r.grid,r.grid]:r.grid;f=Math.round((h.width-u.width)/(r.grid[0]||1))*(r.grid[0]||1);e=Math.round((h.height-u.height)/(r.grid[1]||1))*(r.grid[1]||1);/^(se|s|e)$/.test(s)?(i.size.width=u.width+f,i.size.height=u.height+e):/^(ne)$/.test(s)?(i.size.width=u.width+f,i.size.height=u.height+e,i.position.top=o.top-e):/^(sw)$/.test(s)?(i.size.width=u.width+f,i.size.height=u.height+e,i.position.left=o.left-f):(i.size.width=u.width+f,i.size.height=u.height+e,i.position.top=o.top-e,i.position.left=o.left-f)}});var i=function(n){return parseInt(n,10)||0},t=function(n){return!isNaN(parseInt(n,10))}}(jQuery),function(n){n.widget("ui.selectable",n.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var i=this,t;this.element.addClass("ui-selectable");this.dragged=!1;this.refresh=function(){t=n(i.options.filter,i.element[0]);t.addClass("ui-selectee");t.each(function(){var t=n(this),i=t.offset();n.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})};this.refresh();this.selectees=t.addClass("ui-selectee");this._mouseInit();this.helper=n("<div class='ui-selectable-helper'><\/div>")},destroy:function(){return this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy(),this},_mouseStart:function(t){var r=this,i;(this.opos=[t.pageX,t.pageY],this.options.disabled)||(i=this.options,this.selectees=n(i.filter,this.element[0]),this._trigger("start",t),n(i.appendTo).append(this.helper),this.helper.css({left:t.clientX,top:t.clientY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var i=n.data(this,"selectable-item");i.startselected=!0;t.metaKey||t.ctrlKey||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,r._trigger("unselecting",t,{unselecting:i.element}))}),n(t.target).parents().andSelf().each(function(){var i=n.data(this,"selectable-item"),u;if(i)return u=!t.metaKey&&!t.ctrlKey||!i.$element.hasClass("ui-selected"),i.$element.removeClass(u?"ui-unselecting":"ui-selected").addClass(u?"ui-selecting":"ui-unselecting"),i.unselecting=!u,i.selecting=u,i.selected=u,u?r._trigger("selecting",t,{selecting:i.element}):r._trigger("unselecting",t,{unselecting:i.element}),!1}))},_mouseDrag:function(t){var e=this,o;if(this.dragged=!0,!this.options.disabled){var s=this.options,i=this.opos[0],r=this.opos[1],u=t.pageX,f=t.pageY;return i>u&&(o=u,u=i,i=o),r>f&&(o=f,f=r,r=o),this.helper.css({left:i,top:r,width:u-i,height:f-r}),this.selectees.each(function(){var o=n.data(this,"selectable-item"),h;o&&o.element!=e.element[0]&&(h=!1,s.tolerance=="touch"?h=!(o.left>u||o.right<i||o.top>f||o.bottom<r):s.tolerance=="fit"&&(h=o.left>i&&o.right<u&&o.top>r&&o.bottom<f),h?(o.selected&&(o.$element.removeClass("ui-selected"),o.selected=!1),o.unselecting&&(o.$element.removeClass("ui-unselecting"),o.unselecting=!1),o.selecting||(o.$element.addClass("ui-selecting"),o.selecting=!0,e._trigger("selecting",t,{selecting:o.element}))):(o.selecting&&((t.metaKey||t.ctrlKey)&&o.startselected?(o.$element.removeClass("ui-selecting"),o.selecting=!1,o.$element.addClass("ui-selected"),o.selected=!0):(o.$element.removeClass("ui-selecting"),o.selecting=!1,o.startselected&&(o.$element.addClass("ui-unselecting"),o.unselecting=!0),e._trigger("unselecting",t,{unselecting:o.element}))),o.selected&&!t.metaKey&&!t.ctrlKey&&!o.startselected&&(o.$element.removeClass("ui-selected"),o.selected=!1,o.$element.addClass("ui-unselecting"),o.unselecting=!0,e._trigger("unselecting",t,{unselecting:o.element}))))}),!1}},_mouseStop:function(t){var i=this,r;return this.dragged=!1,r=this.options,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");r.$element.removeClass("ui-unselecting");r.unselecting=!1;r.startselected=!1;i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");r.$element.removeClass("ui-selecting").addClass("ui-selected");r.selecting=!1;r.selected=!0;r.startselected=!0;i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}});n.extend(n.ui.selectable,{version:"1.8.21"})}(jQuery),function(n){n.widget("ui.sortable",n.ui.mouse,{widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var n=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?n.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1;this.offset=this.element.offset();this._mouseInit();this.ready=!0},destroy:function(){n.Widget.prototype.destroy.call(this);this.element.removeClass("ui-sortable ui-sortable-disabled");this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,i){t==="disabled"?(this.options[t]=i,this.widget()[i?"addClass":"removeClass"]("ui-sortable-disabled")):n.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,i){var f=this,u;if(this.reverting||this.options.disabled||this.options.type=="static")return!1;this._refreshItems(t);var r=null,e=this,o=n(t.target).parents().each(function(){if(n.data(this,f.widgetName+"-item")==e)return r=n(this),!1});return(n.data(t.target,f.widgetName+"-item")==e&&(r=n(t.target)),!r)?!1:this.options.handle&&!i&&(u=!1,n(this.options.handle,r).find("*").andSelf().each(function(){this==t.target&&(u=!0)}),!u)?!1:(this.currentItem=r,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,i,r){var u=this.options,e=this,f;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,u.cursorAt&&this._adjustOffsetFromHelper(u.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),u.containment&&this._setContainment(),u.cursor&&(n("body").css("cursor")&&(this._storedCursor=n("body").css("cursor")),n("body").css("cursor",u.cursor)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",t,e._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var i,r,u;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(i=this.options,r=!1,this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(t.pageY-n(document).scrollTop()<i.scrollSensitivity?r=n(document).scrollTop(n(document).scrollTop()-i.scrollSpeed):n(window).height()-(t.pageY-n(document).scrollTop())<i.scrollSensitivity&&(r=n(document).scrollTop(n(document).scrollTop()+i.scrollSpeed)),t.pageX-n(document).scrollLeft()<i.scrollSensitivity?r=n(document).scrollLeft(n(document).scrollLeft()-i.scrollSpeed):n(window).width()-(t.pageX-n(document).scrollLeft())<i.scrollSensitivity&&(r=n(document).scrollLeft(n(document).scrollLeft()+i.scrollSpeed))),r!==!1&&n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&this.options.axis=="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis=="x"||(this.helper[0].style.top=this.position.top+"px"),u=this.items.length-1;u>=0;u--){var f=this.items[u],e=f.item[0],o=this._intersectsWithPointer(f);if(o&&e!=this.currentItem[0]&&this.placeholder[o==1?"next":"prev"]()[0]!=e&&!n.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!n.ui.contains(this.element[0],e):!0)){if(this.direction=o==1?"down":"up",this.options.tolerance=="pointer"||this._intersectsWithSides(f))this._rearrange(t,f);else break;this._trigger("change",t,this._uiHash());break}}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert){var r=this,u=r.placeholder.offset();r.reverting=!0;n(this.helper).animate({left:u.left-this.offset.parent.left-r.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:u.top-this.offset.parent.top-r.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){r._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){var i=this,t;if(this.dragging)for(this._mouseUp({target:null}),this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show(),t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,i._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,i._uiHash(this)),this.containers[t].containerCache.over=0);return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,r=n.left,f=r+n.width,u=n.top,e=u+n.height,o=this.offset.click.top,s=this.offset.click.left,l=i+o>u&&i+o<e&&t+s>r&&t+s<f;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?l:r<t+this.helperProportions.width/2&&h-this.helperProportions.width/2<f&&u<i+this.helperProportions.height/2&&c-this.helperProportions.height/2<e},_intersectsWithPointer:function(t){var u=this.options.axis==="x"||n.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),f=this.options.axis==="y"||n.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),e=u&&f,i=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return e?this.floating?r&&r=="right"||i=="down"?2:1:i&&(i=="down"?2:1):!1},_intersectsWithSides:function(t){var u=n.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),f=n.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?r=="right"&&f||r=="left"&&!f:i&&(i=="down"&&u||i=="up"&&!u)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return n!=0&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return n!=0&&(n>0?"right":"left")},refresh:function(n){return this._refreshItems(n),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor==String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){var h=this,s=[],u=[],e=this._connectWith(),o,f,i,r;if(e&&t)for(r=e.length-1;r>=0;r--)for(o=n(e[r]),f=o.length-1;f>=0;f--)i=n.data(o[f],this.widgetName),i&&i!=this&&!i.options.disabled&&u.push([n.isFunction(i.options.items)?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(u.push([n.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=u.length-1;r>=0;r--)u[r][0].each(function(){s.push(this)});return n(s)},_removeCurrentsFromItems:function(){for(var t,i=this.currentItem.find(":data("+this.widgetName+"-item)"),n=0;n<this.items.length;n++)for(t=0;t<i.length;t++)i[t]==this.items[n].item[0]&&this.items.splice(n,1)},_refreshItems:function(t){var o,i,r,s,h,u,l,c;this.items=[];this.containers=[this];var a=this.items,v=this,f=[[n.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],e=this._connectWith();if(e&&this.ready)for(r=e.length-1;r>=0;r--)for(o=n(e[r]),u=o.length-1;u>=0;u--)i=n.data(o[u],this.widgetName),i&&i!=this&&!i.options.disabled&&(f.push([n.isFunction(i.options.items)?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;r>=0;r--)for(s=f[r][1],h=f[r][0],u=0,l=h.length;u<l;u++)c=n(h[u]),c.data(this.widgetName+"-item",s),a.push({item:c,instance:s,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var r,f,i,u;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(r=this.items[i],r.instance!=this.currentContainer&&this.currentContainer&&r.item[0]!=this.currentItem[0])||(f=this.options.toleranceElement?n(this.options.toleranceElement,r.item):r.item,t||(r.width=f.outerWidth(),r.height=f.outerHeight()),u=f.offset(),r.left=u.left,r.top=u.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)u=this.containers[i].element.offset(),this.containers[i].containerCache.left=u.left,this.containers[i].containerCache.top=u.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){var i=t||this,r=i.options,u;r.placeholder&&r.placeholder.constructor!=String||(u=r.placeholder,r.placeholder={element:function(){var t=n(document.createElement(i.currentItem[0].nodeName)).addClass(u||i.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return u||(t.style.visibility="hidden"),t},update:function(n,t){(!u||r.forcePlaceholderSize)&&(t.height()||t.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),t.width()||t.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}});i.placeholder=n(r.placeholder.element.call(i.element,i.currentItem));i.currentItem.after(i.placeholder);r.placeholder.update(i,i.placeholder)},_contactContainers:function(t){for(var u,o,f=null,i=null,r=this.containers.length-1;r>=0;r--)if(!n.ui.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(f&&n.ui.contains(this.containers[r].element[0],f.element[0]))continue;f=this.containers[r];i=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",t,this._uiHash(this)),this.containers[r].containerCache.over=0);if(f)if(this.containers.length===1)this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1;else if(this.currentContainer!=this.containers[i]){var h=1e4,e=null,s=this.positionAbs[this.containers[i].floating?"left":"top"];for(u=this.items.length-1;u>=0;u--)n.ui.contains(this.containers[i].element[0],this.items[u].item[0])&&(o=this.containers[i].floating?this.items[u].item.offset().left:this.items[u].item.offset().top,Math.abs(o-s)<h&&(h=Math.abs(o-s),e=this.items[u],this.direction=o-s>0?"down":"up"));if(!e&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[i];e?this._rearrange(t,e,null,!0):this._rearrange(t,null,this.containers[i].element,!0);this._trigger("change",t,this._uiHash());this.containers[i]._trigger("change",t,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[i]._trigger("over",t,this._uiHash(this));this.containers[i].containerCache.over=1}},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t,this.currentItem])):r.helper=="clone"?this.currentItem.clone():this.currentItem;return i.parents("body").length||n(r.appendTo!="parent"?r.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[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")}),(i[0].style.width==""||r.forceHelperSize)&&i.width(this.currentItem.width()),(i[0].style.height==""||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&n.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&n.browser.msie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins: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 i=this.options;if(i.containment=="parent"&&(i.containment=this.helper[0].parentNode),(i.containment=="document"||i.containment=="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,n(i.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(n(i.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),!/^(document|window|parent)$/.test(i.containment)){var t=n(i.containment)[0],r=n(i.containment).offset(),u=n(t).css("overflow")!="hidden";this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(t,i){i||(i=this.position);var r=t=="absolute"?1:-1,e=this.options,u=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!n.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(n.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r),left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(n.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r)}},_generatePosition:function(t){var i=this.options,o=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!n.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,s=/(html|body)/i.test(o[0].tagName),f,e,r,u;return this.cssPosition=="relative"&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),f=t.pageX,e=t.pageY,this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(e=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),i.grid&&(r=this.originalPageY+Math.round((e-this.originalPageY)/i.grid[1])*i.grid[1],e=this.containment?r-this.offset.click.top<this.containment[1]||r-this.offset.click.top>this.containment[3]?r-this.offset.click.top<this.containment[1]?r+i.grid[1]:r-i.grid[1]:r:r,u=this.originalPageX+Math.round((f-this.originalPageX)/i.grid[0])*i.grid[0],f=this.containment?u-this.offset.click.left<this.containment[0]||u-this.offset.click.left>this.containment[2]?u-this.offset.click.left<this.containment[0]?u+i.grid[0]:u-i.grid[0]:u:u)),{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(n.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(n.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var u=this,f=this.counter;window.setTimeout(function(){f==u.counter&&u.refreshPositions(!r)},0)},_clear:function(t,i){var u,f,r;if(this.reverting=!1,u=[],f=this,!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]==this.currentItem[0]){for(r in this._storedCSS)(this._storedCSS[r]=="auto"||this._storedCSS[r]=="static")&&(this._storedCSS[r]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();if(this.fromOutside&&!i&&u.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!i&&u.push(function(n){this._trigger("update",n,this._uiHash())}),!n.ui.contains(this.element[0],this.currentItem[0]))for(i||u.push(function(n){this._trigger("remove",n,this._uiHash())}),r=this.containers.length-1;r>=0;r--)n.ui.contains(this.containers[r].element[0],this.currentItem[0])&&!i&&(u.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.containers[r])),u.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.containers[r])));for(r=this.containers.length-1;r>=0;r--)i||u.push(function(n){return function(t){n._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[r])),this.containers[r].containerCache.over&&(u.push(function(n){return function(t){n._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[r])),this.containers[r].containerCache.over=0);if(this._storedCursor&&n("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!i){for(this._trigger("beforeStop",t,this._uiHash()),r=0;r<u.length;r++)u[r].call(this,t);this._trigger("stop",t,this._uiHash())}return!1}if(i||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null,!i){for(r=0;r<u.length;r++)u[r].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}});n.extend(n.ui.sortable,{version:"1.8.21"})}(jQuery),function(n){n.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:!0,clearStyle:!1,collapsible:!1,event:"click",fillSpace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var t=this,i=t.options,r,u;t.running=0;t.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");t.headers=t.element.find(i.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){i.disabled||n(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){i.disabled||n(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){i.disabled||n(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){i.disabled||n(this).removeClass("ui-state-focus")});t.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");i.navigation&&(r=t.element.find("a").filter(i.navigationFilter).eq(0),r.length&&(u=r.closest(".ui-accordion-header"),t.active=u.length?u:r.closest(".ui-accordion-content").prev()));t.active=t._findActive(t.active||i.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");t.active.next().addClass("ui-accordion-content-active");t._createIcons();t.resize();t.element.attr("role","tablist");t.headers.attr("role","tab").bind("keydown.accordion",function(n){return t._keydown(n)}).next().attr("role","tabpanel");t.headers.not(t.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();t.active.length?t.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):t.headers.eq(0).attr("tabIndex",0);n.browser.safari||t.headers.find("a").attr("tabIndex",-1);i.event&&t.headers.bind(i.event.split(" ").join(".accordion ")+".accordion",function(n){t._clickHandler.call(t,n,this);n.preventDefault()})},_createIcons:function(){var t=this.options;t.icons&&(n("<span><\/span>").addClass("ui-icon "+t.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(t.icons.header).toggleClass(t.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var t=this.options,i;return this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons(),i=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled"),(t.autoHeight||t.fillHeight)&&i.css("height",""),n.Widget.prototype.destroy.call(this)},_setOption:function(t,i){n.Widget.prototype._setOption.apply(this,arguments);t=="active"&&this.activate(i);t=="icons"&&(this._destroyIcons(),i&&this._createIcons());t=="disabled"&&this.headers.add(this.headers.next())[i?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(t){if(!this.options.disabled&&!t.altKey&&!t.ctrlKey){var i=n.ui.keyCode,u=this.headers.length,f=this.headers.index(t.target),r=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(f+1)%u];break;case i.LEFT:case i.UP:r=this.headers[(f-1+u)%u];break;case i.SPACE:case i.ENTER:this._clickHandler({target:t.target},t.target);t.preventDefault()}return r?(n(t.target).attr("tabIndex",-1),n(r).attr("tabIndex",0),r.focus(),!1):!0}},resize:function(){var i=this.options,t,r;return i.fillSpace?(n.browser.msie&&(r=this.element.parent().css("overflow"),this.element.parent().css("overflow","hidden")),t=this.element.parent().height(),n.browser.msie&&this.element.parent().css("overflow",r),this.headers.each(function(){t-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,t-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):i.autoHeight&&(t=0,this.headers.next().each(function(){t=Math.max(t,n(this).height("").height())}).height(t)),this},activate:function(n){this.options.active=n;var t=this._findActive(n)[0];return this._clickHandler({target:t},t),this},_findActive:function(t){return t?typeof t=="number"?this.headers.filter(":eq("+t+")"):this.headers.not(this.headers.not(t)):t===!1?n([]):this.headers.filter(":eq(0)")},_clickHandler:function(t,i){var r=this.options,u,f;if(!r.disabled){if(!t.target){if(!r.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(r.icons.headerSelected).addClass(r.icons.header);this.active.next().addClass("ui-accordion-content-active");var e=this.active.next(),s={options:r,newHeader:n([]),oldHeader:r.active,newContent:n([]),oldContent:e},o=this.active=n([]);this._toggle(o,e,s);return}if(u=n(t.currentTarget||i),f=u[0]===this.active[0],r.active=r.collapsible&&f?!1:this.headers.index(u),!this.running&&(r.collapsible||!f)){var h=this.active,o=u.next(),e=this.active.next(),s={options:r,newHeader:f&&r.collapsible?n([]):u,oldHeader:this.active,newContent:f&&r.collapsible?n([]):o,oldContent:e},c=this.headers.index(this.active[0])>this.headers.index(u[0]);this.active=f?n([]):u;this._toggle(o,e,s,f,c);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(r.icons.headerSelected).addClass(r.icons.header);f||(u.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(r.icons.header).addClass(r.icons.headerSelected),u.next().addClass("ui-accordion-content-active"));return}}},_toggle:function(t,i,r,u,f){var o=this,e=o.options,c,h;if(o.toShow=t,o.toHide=i,o.data=r,c=function(){if(o)return o._completed.apply(o,arguments)},o._trigger("changestart",null,o.data),o.running=i.size()===0?t.size():i.size(),e.animated){h={};h=e.collapsible&&u?{toShow:n([]),toHide:i,complete:c,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:t,toHide:i,complete:c,down:f,autoHeight:e.autoHeight||e.fillSpace};e.proxied||(e.proxied=e.animated);e.proxiedDuration||(e.proxiedDuration=e.duration);e.animated=n.isFunction(e.proxied)?e.proxied(h):e.proxied;e.duration=n.isFunction(e.proxiedDuration)?e.proxiedDuration(h):e.proxiedDuration;var l=n.ui.accordion.animations,a=e.duration,s=e.animated;!s||l[s]||n.easing[s]||(s="slide");l[s]||(l[s]=function(n){this.slide(n,{easing:s,duration:a||700})});l[s](h)}else e.collapsible&&u?t.toggle():(i.hide(),t.show()),c(!0);i.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();t.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(n){(this.running=n?0:--this.running,this.running)||(this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data))}});n.extend(n.ui.accordion,{version:"1.8.21",animations:{slide:function(t,i){if(t=n.extend({easing:"swing",duration:300},t,i),!t.toHide.size()){t.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},t);return}if(!t.toShow.size()){t.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},t);return}var s=t.toShow.css("overflow"),f=0,u={},e={},o,r=t.toShow;o=r[0].style.width;r.width(r.parent().width()-parseFloat(r.css("paddingLeft"))-parseFloat(r.css("paddingRight"))-(parseFloat(r.css("borderLeftWidth"))||0)-(parseFloat(r.css("borderRightWidth"))||0));n.each(["height","paddingTop","paddingBottom"],function(i,r){e[r]="hide";var f=(""+n.css(t.toShow[0],r)).match(/^([\d+-.]+)(.*)$/);u[r]={value:f[1],unit:f[2]||"px"}});t.toShow.css({height:0,overflow:"hidden"}).show();t.toHide.filter(":hidden").each(t.complete).end().filter(":visible").animate(e,{step:function(n,i){i.prop=="height"&&(f=i.end-i.start==0?0:(i.now-i.start)/(i.end-i.start));t.toShow[0].style[i.prop]=f*u[i.prop].value+u[i.prop].unit},duration:t.duration,easing:t.easing,complete:function(){t.autoHeight||t.toShow.css("height","");t.toShow.css({width:o,overflow:s});t.complete()}})},bounceslide:function(n){this.slide(n,{easing:n.down?"easeOutBounce":"swing",duration:n.down?1e3:200})}}})}(jQuery),function(n){var t=0;n.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var t=this,r=this.element[0].ownerDocument,i;this.isMultiLine=this.element.is("textarea");this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(r){if(!t.options.disabled&&!t.element.propAttr("readOnly")){i=!1;var u=n.ui.keyCode;switch(r.keyCode){case u.PAGE_UP:t._move("previousPage",r);break;case u.PAGE_DOWN:t._move("nextPage",r);break;case u.UP:t._keyEvent("previous",r);break;case u.DOWN:t._keyEvent("next",r);break;case u.ENTER:case u.NUMPAD_ENTER:t.menu.active&&(i=!0,r.preventDefault());case u.TAB:if(!t.menu.active)return;t.menu.select(r);break;case u.ESCAPE:t.element.val(t.term);t.close(r);break;default:clearTimeout(t.searching);t.searching=setTimeout(function(){t.term!=t.element.val()&&(t.selectedItem=null,t.search(null,r))},t.options.delay)}}}).bind("keypress.autocomplete",function(n){i&&(i=!1,n.preventDefault())}).bind("focus.autocomplete",function(){t.options.disabled||(t.selectedItem=null,t.previous=t.element.val())}).bind("blur.autocomplete",function(n){t.options.disabled||(clearTimeout(t.searching),t.closing=setTimeout(function(){t.close(n);t._change(n)},150))});this._initSource();this.menu=n("<ul><\/ul>").addClass("ui-autocomplete").appendTo(n(this.options.appendTo||"body",r)[0]).mousedown(function(i){var r=t.menu.element[0];n(i.target).closest(".ui-menu-item").length||setTimeout(function(){n(document).one("mousedown",function(i){i.target===t.element[0]||i.target===r||n.ui.contains(r,i.target)||t.close()})},1);setTimeout(function(){clearTimeout(t.closing)},13)}).menu({focus:function(n,i){var r=i.item.data("item.autocomplete");!1!==t._trigger("focus",n,{item:r})&&/^key/.test(n.originalEvent.type)&&t.element.val(r.value)},selected:function(n,i){var u=i.item.data("item.autocomplete"),f=t.previous;t.element[0]!==r.activeElement&&(t.element.focus(),t.previous=f,setTimeout(function(){t.previous=f;t.selectedItem=u},1));!1!==t._trigger("select",n,{item:u})&&t.element.val(u.value);t.term=t.element.val();t.close(n);t.selectedItem=u},blur:function(){t.menu.element.is(":visible")&&t.element.val()!==t.term&&t.element.val(t.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");n.fn.bgiframe&&this.menu.element.bgiframe();t.beforeunloadHandler=function(){t.element.removeAttr("autocomplete")};n(window).bind("beforeunload",t.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();n(window).unbind("beforeunload",this.beforeunloadHandler);n.Widget.prototype.destroy.call(this)},_setOption:function(t,i){n.Widget.prototype._setOption.apply(this,arguments);t==="source"&&this._initSource();t==="appendTo"&&this.menu.element.appendTo(n(i||"body",this.element[0].ownerDocument)[0]);t==="disabled"&&i&&this.xhr&&this.xhr.abort()},_initSource:function(){var t=this,i,r;n.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):typeof this.options.source=="string"?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort();t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},search:function(n,t){return(n=n!=null?n:this.element.val(),this.term=this.element.val(),n.length<this.options.minLength)?this.close(t):(clearTimeout(this.closing),this._trigger("search",t)===!1)?void 0:this._search(n)},_search:function(n){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:n},this._response())},_response:function(){var n=this,i=++t;return function(r){i===t&&n.__response(r);n.pending--;n.pending||n.element.removeClass("ui-autocomplete-loading")}},__response:function(n){!this.options.disabled&&n&&n.length?(n=this._normalize(n),this._suggest(n),this._trigger("open")):this.close()},close:function(n){clearTimeout(this.closing);this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",n))},_change:function(n){this.previous!==this.element.val()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return typeof t=="string"?{label:t,value:t}:n.extend({label:t.label||t.value,value:t.value||t.label},t)})},_suggest:function(t){var i=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(i,t);this.menu.deactivate();this.menu.refresh();i.show();this._resizeMenu();i.position(n.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new n.Event("mouseover"))},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItem(t,i)})},_renderItem:function(t,i){return n("<li><\/li>").data("item.autocomplete",i).append(n("<a><\/a>").text(i.label)).appendTo(t)},_move:function(n,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.first()&&/^previous/.test(n)||this.menu.last()&&/^next/.test(n)){this.element.val(this.term);this.menu.deactivate();return}this.menu[n](t)},widget:function(){return this.menu.element},_keyEvent:function(n,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(n,t),t.preventDefault())}});n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=new RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}})}(jQuery),function(n){n.widget("ui.menu",{_create:function(){var t=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(i){n(i.target).closest(".ui-menu-item a").length&&(i.preventDefault(),t.select(i))});this.refresh()},refresh:function(){var t=this,i=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");i.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(i){t.activate(i,n(this).parent())}).mouseleave(function(){t.deactivate()})},activate:function(n,t){if(this.deactivate(),this.hasScroll()){var i=t.offset().top-this.element.offset().top,r=this.element.scrollTop(),u=this.element.height();i<0?this.element.scrollTop(r+i):i>=u&&this.element.scrollTop(r+i-u+t.height())}this.active=t.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",n,{item:t})},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(n){this.move("next",".ui-menu-item:first",n)},previous:function(n){this.move("prev",".ui-menu-item:last",n)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(n,t,i){if(!this.active){this.activate(i,this.element.children(t));return}var r=this.active[n+"All"](".ui-menu-item").eq(0);r.length?this.activate(i,r):this.activate(i,this.element.children(t))},nextPage:function(t){if(this.hasScroll()){if(!this.active||this.last()){this.activate(t,this.element.children(".ui-menu-item:first"));return}var r=this.active.offset().top,u=this.element.height(),i=this.element.children(".ui-menu-item").filter(function(){var t=n(this).offset().top-r-u+n(this).height();return t<10&&t>-10});i.length||(i=this.element.children(".ui-menu-item:last"));this.activate(t,i)}else this.activate(t,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(t){if(this.hasScroll()){if(!this.active||this.first()){this.activate(t,this.element.children(".ui-menu-item:last"));return}var r=this.active.offset().top,u=this.element.height(),i=this.element.children(".ui-menu-item").filter(function(){var t=n(this).offset().top-r+u-n(this).height();return t<10&&t>-10});i.length||(i=this.element.children(".ui-menu-item:first"));this.activate(t,i)}else this.activate(t,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[n.fn.prop?"prop":"attr"]("scrollHeight")},select:function(n){this._trigger("selected",n,{item:this.active})}})}(jQuery),function(n){var i,r,u,t,f="ui-button ui-widget ui-state-default ui-corner-all",s="ui-state-hover ui-state-active ",e="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",h=function(){var t=n(this).find(":ui-button");setTimeout(function(){t.button("refresh")},1)},o=function(t){var i=t.name,r=t.form,u=n([]);return i&&(u=r?n(r).find("[name='"+i+"']"):n("[name='"+i+"']",t.ownerDocument).filter(function(){return!this.form})),u};n.widget("ui.button",{options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",h);typeof this.options.disabled!="boolean"?this.options.disabled=!!this.element.propAttr("disabled"):this.element.propAttr("disabled",this.options.disabled);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var s=this,e=this.options,c=this.type==="checkbox"||this.type==="radio",a="ui-state-hover"+(c?"":" ui-state-active"),l="ui-state-focus";e.label===null&&(e.label=this.buttonElement.html());this.buttonElement.addClass(f).attr("role","button").bind("mouseenter.button",function(){e.disabled||(n(this).addClass("ui-state-hover"),this===i&&n(this).addClass("ui-state-active"))}).bind("mouseleave.button",function(){e.disabled||n(this).removeClass(a)}).bind("click.button",function(n){e.disabled&&(n.preventDefault(),n.stopImmediatePropagation())});this.element.bind("focus.button",function(){s.buttonElement.addClass(l)}).bind("blur.button",function(){s.buttonElement.removeClass(l)});c&&(this.element.bind("change.button",function(){t||s.refresh()}),this.buttonElement.bind("mousedown.button",function(n){e.disabled||(t=!1,r=n.pageX,u=n.pageY)}).bind("mouseup.button",function(n){e.disabled||(r!==n.pageX||u!==n.pageY)&&(t=!0)}));this.type==="checkbox"?this.buttonElement.bind("click.button",function(){if(e.disabled||t)return!1;n(this).toggleClass("ui-state-active");s.buttonElement.attr("aria-pressed",s.element[0].checked)}):this.type==="radio"?this.buttonElement.bind("click.button",function(){if(e.disabled||t)return!1;n(this).addClass("ui-state-active");s.buttonElement.attr("aria-pressed","true");var i=s.element[0];o(i).not(i).map(function(){return n(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){if(e.disabled)return!1;n(this).addClass("ui-state-active");i=this;n(document).one("mouseup",function(){i=null})}).bind("mouseup.button",function(){if(e.disabled)return!1;n(this).removeClass("ui-state-active")}).bind("keydown.button",function(t){if(e.disabled)return!1;(t.keyCode==n.ui.keyCode.SPACE||t.keyCode==n.ui.keyCode.ENTER)&&n(this).addClass("ui-state-active")}).bind("keyup.button",function(){n(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(t){t.keyCode===n.ui.keyCode.SPACE&&n(this).click()}));this._setOption("disabled",e.disabled);this._resetButton()},_determineButtonType:function(){var n,t,i;this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";this.type==="checkbox"||this.type==="radio"?(n=this.element.parents().filter(":last"),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=n.find(t),this.buttonElement.length||(n=n.length?n.siblings():this.element.siblings(),this.buttonElement=n.filter(t),this.buttonElement.length||(this.buttonElement=n.find(t))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.attr("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(f+" "+s+" "+e).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title");n.Widget.prototype.destroy.call(this)},_setOption:function(t,i){if(n.Widget.prototype._setOption.apply(this,arguments),t==="disabled"){i?this.element.propAttr("disabled",!0):this.element.propAttr("disabled",!1);return}this._resetButton()},refresh:function(){var t=this.element.is(":disabled");t!==this.options.disabled&&this._setOption("disabled",t);this.type==="radio"?o(this.element[0]).each(function(){n(this).is(":checked")?n(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):n(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):this.type==="checkbox"&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label);return}var i=this.buttonElement.removeClass(e),f=n("<span><\/span>",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(i.empty()).text(),t=this.options.icons,u=t.primary&&t.secondary,r=[];t.primary||t.secondary?(this.options.text&&r.push("ui-button-text-icon"+(u?"s":t.primary?"-primary":"-secondary")),t.primary&&i.prepend("<span class='ui-button-icon-primary ui-icon "+t.primary+"'><\/span>"),t.secondary&&i.append("<span class='ui-button-icon-secondary ui-icon "+t.secondary+"'><\/span>"),this.options.text||(r.push(u?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||i.attr("title",f))):r.push("ui-button-text-only");i.addClass(r.join(" "))}});n.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,i){t==="disabled"&&this.buttons.button("option",t,i);n.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var t=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return n(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return n(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");n.Widget.prototype.destroy.call(this)}})}(jQuery),function(n,t){var i="ui-dialog ui-widget ui-widget-content ui-corner-all ",r={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},u={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},f=n.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};n.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(t){var i=n(this).css(t).offset().top;i<0&&n(this).css("top",t.top-i)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title");typeof this.originalTitle!="string"&&(this.originalTitle="");this.options.title=this.options.title||this.originalTitle;var t=this,r=t.options,s=r.title||"&#160;",o=n.ui.dialog.getTitleId(t.element),e=(t.uiDialog=n("<div><\/div>")).appendTo(document.body).hide().addClass(i+r.dialogClass).css({zIndex:r.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){r.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===n.ui.keyCode.ESCAPE&&(t.close(i),i.preventDefault())}).attr({role:"dialog","aria-labelledby":o}).mousedown(function(n){t.moveToTop(!1,n)}),h=t.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(e),f=(t.uiDialogTitlebar=n("<div><\/div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(e),u=n('<a href="#"><\/a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){u.addClass("ui-state-hover")},function(){u.removeClass("ui-state-hover")}).focus(function(){u.addClass("ui-state-focus")}).blur(function(){u.removeClass("ui-state-focus")}).click(function(n){return t.close(n),!1}).appendTo(f),c=(t.uiDialogTitlebarCloseText=n("<span><\/span>")).addClass("ui-icon ui-icon-closethick").text(r.closeText).appendTo(u),l=n("<span><\/span>").addClass("ui-dialog-title").attr("id",o).html(s).prependTo(f);n.isFunction(r.beforeclose)&&!n.isFunction(r.beforeClose)&&(r.beforeClose=r.beforeclose);f.find("*").add(f).disableSelection();r.draggable&&n.fn.draggable&&t._makeDraggable();r.resizable&&n.fn.resizable&&t._makeResizable();t._createButtons(r.buttons);t._isOpen=!1;n.fn.bgiframe&&e.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var n=this;return n.overlay&&n.overlay.destroy(),n.uiDialog.hide(),n.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),n.uiDialog.remove(),n.originalTitle&&n.element.attr("title",n.originalTitle),n},widget:function(){return this.uiDialog},close:function(t){var i=this,r,u;if(!1!==i._trigger("beforeClose",t))return i.overlay&&i.overlay.destroy(),i.uiDialog.unbind("keypress.ui-dialog"),i._isOpen=!1,i.options.hide?i.uiDialog.hide(i.options.hide,function(){i._trigger("close",t)}):(i.uiDialog.hide(),i._trigger("close",t)),n.ui.dialog.overlay.resize(),i.options.modal&&(r=0,n(".ui-dialog").each(function(){this!==i.uiDialog[0]&&(u=n(this).css("z-index"),isNaN(u)||(r=Math.max(r,u)))}),n.ui.dialog.maxZ=r),i},isOpen:function(){return this._isOpen},moveToTop:function(t,i){var r=this,u=r.options,f;return u.modal&&!t||!u.stack&&!u.modal?r._trigger("focus",i):(u.zIndex>n.ui.dialog.maxZ&&(n.ui.dialog.maxZ=u.zIndex),r.overlay&&(n.ui.dialog.maxZ+=1,r.overlay.$el.css("z-index",n.ui.dialog.overlay.maxZ=n.ui.dialog.maxZ)),f={scrollTop:r.element.scrollTop(),scrollLeft:r.element.scrollLeft()},n.ui.dialog.maxZ+=1,r.uiDialog.css("z-index",n.ui.dialog.maxZ),r.element.attr(f),r._trigger("focus",i),r)},open:function(){if(!this._isOpen){var t=this,i=t.options,r=t.uiDialog;return t.overlay=i.modal?new n.ui.dialog.overlay(t):null,t._size(),t._position(i.position),r.show(i.show),t.moveToTop(!0),i.modal&&r.bind("keydown.ui-dialog",function(t){if(t.keyCode===n.ui.keyCode.TAB){var i=n(":tabbable",this),r=i.filter(":first"),u=i.filter(":last");return t.target===u[0]&&!t.shiftKey?(r.focus(1),!1):t.target===r[0]&&t.shiftKey?(u.focus(1),!1):void 0}}),n(t.element.find(":tabbable").get().concat(r.find(".ui-dialog-buttonpane :tabbable").get().concat(r.get()))).eq(0).focus(),t._isOpen=!0,t._trigger("open"),t}},_createButtons:function(t){var i=this,r=!1,u=n("<div><\/div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),e=n("<div><\/div>").addClass("ui-dialog-buttonset").appendTo(u);i.uiDialog.find(".ui-dialog-buttonpane").remove();typeof t=="object"&&t!==null&&n.each(t,function(){return!(r=!0)});r&&(n.each(t,function(t,r){r=n.isFunction(r)?{click:r,text:t}:r;var u=n('<button type="button"><\/button>').click(function(){r.click.apply(i.element[0],arguments)}).appendTo(e);n.each(r,function(n,t){n!=="click"&&(n in f?u[n](t):u.attr(n,t))});n.fn.button&&u.button()}),u.appendTo(i.uiDialog))},_makeDraggable:function(){function i(n){return{position:n.position,offset:n.offset}}var t=this,r=t.options,u=n(document),f;t.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(u,e){f=r.height==="auto"?"auto":n(this).height();n(this).height(n(this).height()).addClass("ui-dialog-dragging");t._trigger("dragStart",u,i(e))},drag:function(n,r){t._trigger("drag",n,i(r))},stop:function(e,o){r.position=[o.position.left-u.scrollLeft(),o.position.top-u.scrollTop()];n(this).removeClass("ui-dialog-dragging").height(f);t._trigger("dragStop",e,i(o));n.ui.dialog.overlay.resize()}})},_makeResizable:function(i){function f(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}i=i===t?this.options.resizable:i;var r=this,u=r.options,e=r.uiDialog.css("position"),o=typeof i=="string"?i:"n,e,s,w,se,sw,ne,nw";r.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:r.element,maxWidth:u.maxWidth,maxHeight:u.maxHeight,minWidth:u.minWidth,minHeight:r._minHeight(),handles:o,start:function(t,i){n(this).addClass("ui-dialog-resizing");r._trigger("resizeStart",t,f(i))},resize:function(n,t){r._trigger("resize",n,f(t))},stop:function(t,i){n(this).removeClass("ui-dialog-resizing");u.height=n(this).height();u.width=n(this).width();r._trigger("resizeStop",t,f(i));n.ui.dialog.overlay.resize()}}).css("position",e).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var n=this.options;return n.height==="auto"?n.minHeight:Math.min(n.minHeight,n.height)},_position:function(t){var i=[],u=[0,0],r;t?((typeof t=="string"||typeof t=="object"&&"0"in t)&&(i=t.split?t.split(" "):[t[0],t[1]],i.length===1&&(i[1]=i[0]),n.each(["left","top"],function(n,t){+i[n]===i[n]&&(u[n]=i[n],i[n]=t)}),t={my:i.join(" "),at:i.join(" "),offset:u.join(" ")}),t=n.extend({},n.ui.dialog.prototype.options.position,t)):t=n.ui.dialog.prototype.options.position;r=this.uiDialog.is(":visible");r||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(n.extend({of:window},t));r||this.uiDialog.hide()},_setOptions:function(t){var e=this,i={},f=!1;n.each(t,function(n,t){e._setOption(n,t);n in r&&(f=!0);n in u&&(i[n]=t)});f&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",i)},_setOption:function(t,r){var u=this,f=u.uiDialog,o,e;switch(t){case"beforeclose":t="beforeClose";break;case"buttons":u._createButtons(r);break;case"closeText":u.uiDialogTitlebarCloseText.text(""+r);break;case"dialogClass":f.removeClass(u.options.dialogClass).addClass(i+r);break;case"disabled":r?f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case"draggable":o=f.is(":data(draggable)");o&&!r&&f.draggable("destroy");!o&&r&&u._makeDraggable();break;case"position":u._position(r);break;case"resizable":e=f.is(":data(resizable)");e&&!r&&f.resizable("destroy");e&&typeof r=="string"&&f.resizable("option","handles",r);!e&&r!==!1&&u._makeResizable(r);break;case"title":n(".ui-dialog-title",u.uiDialogTitlebar).html(""+(r||"&#160;"))}n.Widget.prototype._setOption.apply(u,arguments)},_size:function(){var t=this.options,i,r,f=this.uiDialog.is(":visible"),u;this.element.show().css({width:"auto",minHeight:0,height:0});t.minWidth>t.width&&(t.width=t.minWidth);i=this.uiDialog.css({height:"auto",width:t.width}).height();r=Math.max(0,t.minHeight-i);t.height==="auto"?n.support.minHeight?this.element.css({minHeight:r,height:"auto"}):(this.uiDialog.show(),u=this.element.css("height","auto").height(),f||this.uiDialog.hide(),this.element.height(Math.max(u,r))):this.element.height(Math.max(t.height-i,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});n.extend(n.ui.dialog,{version:"1.8.21",uuid:0,maxZ:0,getTitleId:function(n){var t=n.attr("id");return t||(this.uuid+=1,t=this.uuid),"ui-dialog-title-"+t},overlay:function(t){this.$el=n.ui.dialog.overlay.create(t)}});n.extend(n.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:n.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(n){return n+".dialog-overlay"}).join(" "),create:function(t){this.instances.length===0&&(setTimeout(function(){n.ui.dialog.overlay.instances.length&&n(document).bind(n.ui.dialog.overlay.events,function(t){if(n(t.target).zIndex()<n.ui.dialog.overlay.maxZ)return!1})},1),n(document).bind("keydown.dialog-overlay",function(i){t.options.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===n.ui.keyCode.ESCAPE&&(t.close(i),i.preventDefault())}),n(window).bind("resize.dialog-overlay",n.ui.dialog.overlay.resize));var i=(this.oldInstances.pop()||n("<div><\/div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});return n.fn.bgiframe&&i.bgiframe(),this.instances.push(i),i},destroy:function(t){var r=n.inArray(t,this.instances),i;r!=-1&&this.oldInstances.push(this.instances.splice(r,1)[0]);this.instances.length===0&&n([document,window]).unbind(".dialog-overlay");t.remove();i=0;n.each(this.instances,function(){i=Math.max(i,this.css("z-index"))});this.maxZ=i},height:function(){var t,i;return n.browser.msie&&n.browser.version<7?(t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),i=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),t<i?n(window).height()+"px":t+"px"):n(document).height()+"px"},width:function(){var t,i;return n.browser.msie?(t=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),t<i?n(window).width()+"px":t+"px"):n(document).width()+"px"},resize:function(){var t=n([]);n.each(n.ui.dialog.overlay.instances,function(){t=t.add(this)});t.css({width:0,height:0}).css({width:n.ui.dialog.overlay.width(),height:n.ui.dialog.overlay.height()})}});n.extend(n.ui.dialog.overlay.prototype,{destroy:function(){n.ui.dialog.overlay.destroy(this.$el)}})}(jQuery),function(n){var t=5;n.widget("ui.slider",n.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var i=this,r=this.options,f=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o=r.values&&r.values.length||1,e=[],u;for(this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(r.disabled?" ui-slider-disabled ui-disabled":"")),this.range=n([]),r.range&&(r.range===!0&&(r.values||(r.values=[this._valueMin(),this._valueMin()]),r.values.length&&r.values.length!==2&&(r.values=[r.values[0],r.values[0]])),this.range=n("<div><\/div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(r.range==="min"||r.range==="max"?" ui-slider-range-"+r.range:""))),u=f.length;u<o;u+=1)e.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'><\/a>");this.handles=f.add(n(e.join("")).appendTo(i.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(n){n.preventDefault()}).hover(function(){r.disabled||n(this).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover")}).focus(function(){r.disabled?n(this).blur():(n(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),n(this).addClass("ui-state-focus"))}).blur(function(){n(this).removeClass("ui-state-focus")});this.handles.each(function(t){n(this).data("index.ui-slider-handle",t)});this.handles.keydown(function(r){var e=n(this).data("index.ui-slider-handle"),s,f,u,o;if(!i.options.disabled){switch(r.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r.preventDefault(),!i._keySliding&&(i._keySliding=!0,n(this).addClass("ui-state-active"),s=i._start(r,e),s===!1))return}o=i.options.step;f=i.options.values&&i.options.values.length?u=i.values(e):u=i.value();switch(r.keyCode){case n.ui.keyCode.HOME:u=i._valueMin();break;case n.ui.keyCode.END:u=i._valueMax();break;case n.ui.keyCode.PAGE_UP:u=i._trimAlignValue(f+(i._valueMax()-i._valueMin())/t);break;case n.ui.keyCode.PAGE_DOWN:u=i._trimAlignValue(f-(i._valueMax()-i._valueMin())/t);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(f===i._valueMax())return;u=i._trimAlignValue(f+o);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(f===i._valueMin())return;u=i._trimAlignValue(f-o)}i._slide(r,e,u)}}).keyup(function(t){var r=n(this).data("index.ui-slider-handle");i._keySliding&&(i._keySliding=!1,i._stop(t,r),i._change(t,r),n(this).removeClass("ui-state-active"))});this._refreshValue();this._animateOff=!1},destroy:function(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_mouseCapture:function(t){var u=this.options,h,f,e,i,o,r,c,s,l;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),h={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(h),e=this._valueMax()-this._valueMin()+1,o=this,this.handles.each(function(t){var u=Math.abs(f-o.values(t));e>u&&(e=u,i=n(this),r=t)}),u.range===!0&&this.values(1)===u.min&&(r+=1,i=n(this.handles[r])),c=this._start(t,r),c===!1?!1:(this._mouseSliding=!0,o._handleIndex=r,i.addClass("ui-state-active").focus(),s=i.offset(),l=!n(t.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-s.left-i.width()/2,top:t.pageY-s.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,f),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return this.orientation==="horizontal"?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),t<0&&(t=0),this.orientation==="vertical"&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_start:function(n,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",n,i)},_slide:function(n,t,i){var r,f,u;this.options.values&&this.options.values.length?(r=this.values(t?0:1),this.options.values.length===2&&this.options.range===!0&&(t===0&&i>r||t===1&&i<r)&&(i=r),i!==this.values(t)&&(f=this.values(),f[t]=i,u=this._trigger("slide",n,{handle:this.handles[t],value:i,values:f}),r=this.values(t?0:1),u!==!1&&this.values(t,i,!0))):i!==this.value()&&(u=this._trigger("slide",n,{handle:this.handles[t],value:i}),u!==!1&&this.value(i))},_stop:function(n,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values());this._trigger("stop",n,i)},_change:function(n,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values());this._trigger("change",n,i)}},value:function(n){if(arguments.length){this.options.value=this._trimAlignValue(n);this._refreshValue();this._change(null,0);return}return this._value()},values:function(t,i){var u,f,r;if(arguments.length>1){this.options.values[t]=this._trimAlignValue(i);this._refreshValue();this._change(null,t);return}if(!arguments.length)return this._values();if(!n.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();for(u=this.options.values,f=arguments[0],r=0;r<u.length;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()},_setOption:function(t,i){var r,u=0;n.isArray(this.options.values)&&(u=this.options.values.length);n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"disabled":i?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=0;r<u;r+=1)this._change(null,r);this._animateOff=!1}},_value:function(){var n=this.options.value;return n=this._trimAlignValue(n),n},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],r=this._trimAlignValue(r),r;for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t},_trimAlignValue:function(n){if(n<=this._valueMin())return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return Math.abs(i)*2>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var f=this.options.range,r=this.options,i=this,u=this._animateOff?!1:r.animate,t,e={},s,c,o,h;this.options.values&&this.options.values.length?this.handles.each(function(f){t=(i.values(f)-i._valueMin())/(i._valueMax()-i._valueMin())*100;e[i.orientation==="horizontal"?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](e,r.animate);i.options.range===!0&&(i.orientation==="horizontal"?(f===0&&i.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},r.animate),f===1&&i.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:r.animate})):(f===0&&i.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},r.animate),f===1&&i.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:r.animate})));s=t}):(c=this.value(),o=this._valueMin(),h=this._valueMax(),t=h!==o?(c-o)/(h-o)*100:0,e[i.orientation==="horizontal"?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](e,r.animate),f==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},r.animate),f==="max"&&this.orientation==="horizontal"&&this.range[u?"animate":"css"]({width:100-t+"%"},{queue:!1,duration:r.animate}),f==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},r.animate),f==="max"&&this.orientation==="vertical"&&this.range[u?"animate":"css"]({height:100-t+"%"},{queue:!1,duration:r.animate}))}});n.extend(n.ui.slider,{version:"1.8.21"})}(jQuery),function(n,t){function i(){return++u}function r(){return++f}var u=0,f=0;n.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div><\/div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;<\/em>",tabTemplate:"<li><a href='#{href}'><span>#{label}<\/span><\/a><\/li>"},_create:function(){this._tabify(!0)},_setOption:function(n,t){if(n=="selected"){if(this.options.collapsible&&t==this.options.selected)return;this.select(t)}else this.options[n]=t,this._tabify()},_tabId:function(n){return n.title&&n.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+i()},_sanitizeSelector:function(n){return n.replace(/:/g,"\\:")},_cookie:function(){var t=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+r());return n.cookie.apply(null,[t].concat(n.makeArray(arguments)))},_ui:function(n,t){return{tab:n,panel:t,index:this.anchors.index(n)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var t=n(this);t.html(t.data("label.tabs")).removeData("label.tabs")})},_tabify:function(i){function v(t,i){t.css("display","");!n.support.opacity&&i.opacity&&t[0].style.removeAttribute("filter")}var u=this,r=this.options,y=/^#.+/,o,s,h,c,f,e,l,a;for(this.list=this.element.find("ol,ul").eq(0),this.lis=n(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return n("a",this)[0]}),this.panels=n([]),this.anchors.each(function(t,i){var f=n(i).attr("href"),s=f.split("#")[0],h,o,e;s&&(s===location.toString().split("#")[0]||(h=n("base")[0])&&s===h.href)&&(f=i.hash,i.href=f);y.test(f)?u.panels=u.panels.add(u.element.find(u._sanitizeSelector(f))):f&&f!=="#"?(n.data(i,"href.tabs",f),n.data(i,"load.tabs",f.replace(/#.*$/,"")),o=u._tabId(i),i.href="#"+o,e=u.element.find("#"+o),e.length||(e=n(r.panelTemplate).attr("id",o).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(u.panels[t-1]||u.list),e.data("destroy.tabs",!0)),u.panels=u.panels.add(e)):r.disabled.push(t)}),i?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),r.selected===t?(location.hash&&this.anchors.each(function(n,t){if(t.hash==location.hash)return r.selected=n,!1}),typeof r.selected!="number"&&r.cookie&&(r.selected=parseInt(u._cookie(),10)),typeof r.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(r.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),r.selected=r.selected||(this.lis.length?0:-1)):r.selected===null&&(r.selected=-1),r.selected=r.selected>=0&&this.anchors[r.selected]||r.selected<0?r.selected:0,r.disabled=n.unique(r.disabled.concat(n.map(this.lis.filter(".ui-state-disabled"),function(n){return u.lis.index(n)}))).sort(),n.inArray(r.selected,r.disabled)!=-1&&r.disabled.splice(n.inArray(r.selected,r.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),r.selected>=0&&this.anchors.length&&(u.element.find(u._sanitizeSelector(u.anchors[r.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(r.selected).addClass("ui-tabs-selected ui-state-active"),u.element.queue("tabs",function(){u._trigger("show",null,u._ui(u.anchors[r.selected],u.element.find(u._sanitizeSelector(u.anchors[r.selected].hash))[0]))}),this.load(r.selected)),n(window).bind("unload",function(){u.lis.add(u.anchors).unbind(".tabs");u.lis=u.anchors=u.panels=null})):r.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[r.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),r.cookie&&this._cookie(r.selected,r.cookie),o=0;s=this.lis[o];o++)n(s)[n.inArray(o,r.disabled)!=-1&&!n(s).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");r.cache===!1&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");r.event!=="mouseover"&&(h=function(n,t){t.is(":not(.ui-state-disabled)")&&t.addClass("ui-state-"+n)},c=function(n,t){t.removeClass("ui-state-"+n)},this.lis.bind("mouseover.tabs",function(){h("hover",n(this))}),this.lis.bind("mouseout.tabs",function(){c("hover",n(this))}),this.anchors.bind("focus.tabs",function(){h("focus",n(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){c("focus",n(this).closest("li"))}));r.fx&&(n.isArray(r.fx)?(f=r.fx[0],e=r.fx[1]):f=e=r.fx);l=e?function(t,i){n(t).closest("li").addClass("ui-tabs-selected ui-state-active");i.hide().removeClass("ui-tabs-hide").animate(e,e.duration||"normal",function(){v(i,e);u._trigger("show",null,u._ui(t,i[0]))})}:function(t,i){n(t).closest("li").addClass("ui-tabs-selected ui-state-active");i.removeClass("ui-tabs-hide");u._trigger("show",null,u._ui(t,i[0]))};a=f?function(n,t){t.animate(f,f.duration||"normal",function(){u.lis.removeClass("ui-tabs-selected ui-state-active");t.addClass("ui-tabs-hide");v(t,f);u.element.dequeue("tabs")})}:function(n,t){u.lis.removeClass("ui-tabs-selected ui-state-active");t.addClass("ui-tabs-hide");u.element.dequeue("tabs")};this.anchors.bind(r.event+".tabs",function(){var t=this,i=n(t).closest("li"),f=u.panels.filter(":not(.ui-tabs-hide)"),e=u.element.find(u._sanitizeSelector(t.hash));if(i.hasClass("ui-tabs-selected")&&!r.collapsible||i.hasClass("ui-state-disabled")||i.hasClass("ui-state-processing")||u.panels.filter(":animated").length||u._trigger("select",null,u._ui(this,e[0]))===!1)return this.blur(),!1;if(r.selected=u.anchors.index(this),u.abort(),r.collapsible){if(i.hasClass("ui-tabs-selected"))return r.selected=-1,r.cookie&&u._cookie(r.selected,r.cookie),u.element.queue("tabs",function(){a(t,f)}).dequeue("tabs"),this.blur(),!1;if(!f.length)return r.cookie&&u._cookie(r.selected,r.cookie),u.element.queue("tabs",function(){l(t,e)}),u.load(u.anchors.index(this)),this.blur(),!1}if(r.cookie&&u._cookie(r.selected,r.cookie),e.length)f.length&&u.element.queue("tabs",function(){a(t,f)}),u.element.queue("tabs",function(){l(t,e)}),u.load(u.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";n.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(n){return typeof n=="string"&&(n=this.anchors.index(this.anchors.filter("[href$='"+n+"']"))),n},destroy:function(){var t=this.options;return this.abort(),this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"),this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var t=n.data(this,"href.tabs"),i;t&&(this.href=t);i=n(this).unbind(".tabs");n.each(["href","load","cache"],function(n,t){i.removeData(t+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){n.data(this,"destroy.tabs")?n(this).remove():n(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")}),t.cookie&&this._cookie(null,t.cookie),this},add:function(i,r,u){var f;u===t&&(u=this.anchors.length);var e=this,o=this.options,s=n(o.tabTemplate.replace(/#\{href\}/g,i).replace(/#\{label\}/g,r)),h=i.indexOf("#")?this._tabId(n("a",s)[0]):i.replace("#","");return s.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0),f=e.element.find("#"+h),f.length||(f=n(o.panelTemplate).attr("id",h).data("destroy.tabs",!0)),f.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),u>=this.lis.length?(s.appendTo(this.list),f.appendTo(this.list[0].parentNode)):(s.insertBefore(this.lis[u]),f.insertBefore(this.panels[u])),o.disabled=n.map(o.disabled,function(n){return n>=u?++n:n}),this._tabify(),this.anchors.length==1&&(o.selected=0,s.addClass("ui-tabs-selected ui-state-active"),f.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){e._trigger("show",null,e._ui(e.anchors[0],e.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[u],this.panels[u])),this},remove:function(t){t=this._getIndex(t);var i=this.options,r=this.lis.eq(t).remove(),u=this.panels.eq(t).remove();return r.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(t+(t+1<this.anchors.length?1:-1)),i.disabled=n.map(n.grep(i.disabled,function(n){return n!=t}),function(n){return n>=t?--n:n}),this._tabify(),this._trigger("remove",null,this._ui(r.find("a")[0],u[0])),this},enable:function(t){t=this._getIndex(t);var i=this.options;if(n.inArray(t,i.disabled)!=-1)return this.lis.eq(t).removeClass("ui-state-disabled"),i.disabled=n.grep(i.disabled,function(n){return n!=t}),this._trigger("enable",null,this._ui(this.anchors[t],this.panels[t])),this},disable:function(n){n=this._getIndex(n);var i=this,t=this.options;return n!=t.selected&&(this.lis.eq(n).addClass("ui-state-disabled"),t.disabled.push(n),t.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[n],this.panels[n]))),this},select:function(n){if(n=this._getIndex(n),n==-1)if(this.options.collapsible&&this.options.selected!=-1)n=this.options.selected;else return this;return this.anchors.eq(n).trigger(this.options.event+".tabs"),this},load:function(t){var f;t=this._getIndex(t);var i=this,r=this.options,u=this.anchors.eq(t)[0],e=n.data(u,"load.tabs");if(this.abort(),!e||this.element.queue("tabs").length!==0&&n.data(u,"cache.tabs")){this.element.dequeue("tabs");return}return this.lis.eq(t).addClass("ui-state-processing"),r.spinner&&(f=n("span",u),f.data("label.tabs",f.html()).html(r.spinner)),this.xhr=n.ajax(n.extend({},r.ajaxOptions,{url:e,success:function(f,e){i.element.find(i._sanitizeSelector(u.hash)).html(f);i._cleanup();r.cache&&n.data(u,"cache.tabs",!0);i._trigger("load",null,i._ui(i.anchors[t],i.panels[t]));try{r.ajaxOptions.success(f,e)}catch(o){}},error:function(n,f){i._cleanup();i._trigger("load",null,i._ui(i.anchors[t],i.panels[t]));try{r.ajaxOptions.error(n,f,t,u)}catch(g){}}})),i.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(n,t){return this.anchors.eq(n).removeData("cache.tabs").data("load.tabs",t),this},length:function(){return this.anchors.length}});n.extend(n.ui.tabs,{version:"1.8.21"});n.extend(n.ui.tabs.prototype,{rotation:null,rotate:function(n,t){var i=this,u=this.options,r=i._rotate||(i._rotate=function(t){clearTimeout(i.rotation);i.rotation=setTimeout(function(){var n=u.selected;i.select(++n<i.anchors.length?n:0)},n);t&&t.stopPropagation()}),f=i._unrotate||(i._unrotate=t?function(){r()}:function(n){n.clientX&&i.rotate(null)});return n?(this.element.bind("tabsshow",r),this.anchors.bind(u.event+".tabs",f),r()):(clearTimeout(i.rotation),this.element.unbind("tabsshow",r),this.anchors.unbind(u.event+".tabs",f),delete this._rotate,delete this._unrotate),this}})}(jQuery),function(n,t){function e(){this.debug=!1;this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._datepickerShowing=!1;this._inDialog=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};n.extend(this._defaults,this.regional[""]);this.dpDiv=o(n('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"><\/div>'))}function o(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.bind("mouseout",function(t){var r=n(t.target).closest(i);r.length&&r.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(r){var u=n(r.target).closest(i);!n.datepicker._isDisabledDatepicker(f.inline?t.parent()[0]:f.input[0])&&u.length&&(u.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),u.addClass("ui-state-hover"),u.hasClass("ui-datepicker-prev")&&u.addClass("ui-datepicker-prev-hover"),u.hasClass("ui-datepicker-next")&&u.addClass("ui-datepicker-next-hover"))})}function u(i,r){n.extend(i,r);for(var u in r)(r[u]==null||r[u]==t)&&(i[u]=r[u]);return i}n.extend(n.ui,{datepicker:{version:"1.8.21"}});var i="datepicker",r=(new Date).getTime(),f;n.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return u(this._defaults,n||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null,attrName,attrValue,nodeName,inline,inst;for(attrName in this._defaults)if(attrValue=target.getAttribute("date:"+attrName),attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}nodeName=target.nodeName.toLowerCase();inline=nodeName=="div"||nodeName=="span";target.id||(this.uuid+=1,target.id="dp"+this.uuid);inst=this._newInst(n(target),inline);inst.settings=n.extend({},settings||{},inlineSettings||{});nodeName=="input"?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?o(n('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"><\/div>')):this.dpDiv}},_connectDatepicker:function(t,r){var u=n(t);(r.append=n([]),r.trigger=n([]),u.hasClass(this.markerClassName))||(this._attachments(u,r),u.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(n,t,i){r.settings[t]=i}).bind("getData.datepicker",function(n,t){return this._get(r,t)}),this._autoSize(r),n.data(t,i,r),r.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var e=this._get(i,"appendText"),o=this._get(i,"isRTL"),u,r,f;i.append&&i.append.remove();e&&(i.append=n('<span class="'+this._appendClass+'">'+e+"<\/span>"),t[o?"before":"after"](i.append));t.unbind("focus",this._showDatepicker);i.trigger&&i.trigger.remove();u=this._get(i,"showOn");(u=="focus"||u=="both")&&t.focus(this._showDatepicker);(u=="button"||u=="both")&&(r=this._get(i,"buttonText"),f=this._get(i,"buttonImage"),i.trigger=n(this._get(i,"buttonImageOnly")?n("<img/>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):n('<button type="button"><\/button>').addClass(this._triggerClass).html(f==""?r:n("<img/>").attr({src:f,alt:r,title:r}))),t[o?"before":"after"](i.trigger),i.trigger.click(function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput==t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!=t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(n){var t,i,r;this._get(n,"autoSize")&&!n.inline&&(t=new Date(2009,11,20),i=this._get(n,"dateFormat"),i.match(/[DM]/)&&(r=function(n){for(var i=0,r=0,t=0;t<n.length;t++)n[t].length>i&&(i=n[t].length,r=t);return r},t.setMonth(r(this._get(n,i.match(/MM/)?"monthNames":"monthNamesShort"))),t.setDate(r(this._get(n,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-t.getDay())),n.input.attr("size",this._formatDate(n,t).length))},_inlineDatepicker:function(t,r){var u=n(t);u.hasClass(this.markerClassName)||(u.addClass(this.markerClassName).append(r.dpDiv).bind("setData.datepicker",function(n,t,i){r.settings[t]=i}).bind("getData.datepicker",function(n,t){return this._get(r,t)}),n.data(t,i,r),this._setDate(r,this._getDefaultDate(r),!0),this._updateDatepicker(r),this._updateAlternate(r),r.settings.disabled&&this._disableDatepicker(t),r.dpDiv.css("display","block"))},_dialogDatepicker:function(t,r,f,e,o){var s=this._dialogInst,h;if(s||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=n('<input type="text" id="'+h+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'),this._dialogInput.keydown(this._doKeyDown),n("body").append(this._dialogInput),s=this._dialogInst=this._newInst(this._dialogInput,!1),s.settings={},n.data(this._dialogInput[0],i,s)),u(s.settings,e||{}),r=r&&r.constructor==Date?this._formatDate(s,r):r,this._dialogInput.val(r),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,!this._pos){var c=document.documentElement.clientWidth,l=document.documentElement.clientHeight,a=document.documentElement.scrollLeft||document.body.scrollLeft,v=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[c/2-100+a,l/2-150+v]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),s.settings.onSelect=f,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],i,s),this},_destroyDatepicker:function(t){var u=n(t),f=n.data(t,i),r;u.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),n.removeData(t,i),r=="input"?(f.append.remove(),f.trigger.remove(),u.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(r=="div"||r=="span")&&u.removeClass(this.markerClassName).empty())},_enableDatepicker:function(t){var f=n(t),e=n.data(t,i),r,u;f.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),r=="input"?(t.disabled=!1,e.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(r=="div"||r=="span")&&(u=f.children("."+this._inlineClass),u.children().removeClass("ui-state-disabled"),u.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")),this._disabledInputs=n.map(this._disabledInputs,function(n){return n==t?null:n}))},_disableDatepicker:function(t){var f=n(t),e=n.data(t,i),r,u;f.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),r=="input"?(t.disabled=!0,e.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(r=="div"||r=="span")&&(u=f.children("."+this._inlineClass),u.children().addClass("ui-state-disabled"),u.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")),this._disabledInputs=n.map(this._disabledInputs,function(n){return n==t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]==n)return!0;return!1},_getInst:function(t){try{return n.data(t,i)}catch(r){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(i,r,f){var e=this._getInst(i),o;if(arguments.length==2&&typeof r=="string")return r=="defaults"?n.extend({},n.datepicker._defaults):e?r=="all"?n.extend({},e.settings):this._get(e,r):null;if(o=r||{},typeof r=="string"&&(o={},o[r]=f),e){this._curInst==e&&this._hideDatepicker();var c=this._getDateDatepicker(i,!0),s=this._getMinMaxDate(e,"min"),h=this._getMinMaxDate(e,"max");u(e.settings,o);s!==null&&o.dateFormat!==t&&o.minDate===t&&(e.settings.minDate=this._formatDate(e,s));h!==null&&o.dateFormat!==t&&o.maxDate===t&&(e.settings.maxDate=this._formatDate(e,h));this._attachments(n(i),e);this._autoSize(e);this._setDate(e,c);this._updateAlternate(e);this._updateDatepicker(e)}},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i=n.datepicker._getInst(t.target),r=!0,e=i.dpDiv.is(".ui-datepicker-rtl"),u,f,o;if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker();r=!1;break;case 13:return u=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),u[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,u[0]),f=n.datepicker._get(i,"onSelect"),f?(o=n.datepicker._formatDate(i),f.apply(i.input?i.input[0]:null,[o,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target);r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target);r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,e?1:-1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D");r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,e?-1:1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D");r=t.ctrlKey||t.metaKey;break;default:r=!1}else t.keyCode==36&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(i){var f=n.datepicker._getInst(i.target),r,u;if(n.datepicker._get(f,"constrainInput"))return r=n.datepicker._possibleChars(n.datepicker._get(f,"dateFormat")),u=String.fromCharCode(i.charCode==t?i.keyCode:i.charCode),i.ctrlKey||i.metaKey||u<" "||!r||r.indexOf(u)>-1},_doKeyUp:function(t){var i=n.datepicker._getInst(t.target),r;if(i.input.val()!=i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i));r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){n.datepicker.log(u)}return!0},_showDatepicker:function(t){var i,o,s,r,f;if((t=t.target||t,t.nodeName.toLowerCase()!="input"&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!=t)&&(i=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!=i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),o=n.datepicker._get(i,"beforeShow"),s=o?o.apply(t,[t,i]):{},s!==!1)&&(u(i.settings,s),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),r=!1,n(t).parents().each(function(){return r|=n(this).css("position")=="fixed",!r}),r&&n.browser.opera&&(n.datepicker._pos[0]-=document.documentElement.scrollLeft,n.datepicker._pos[1]-=document.documentElement.scrollTop),f={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),f=n.datepicker._checkOffset(i,f,r),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":r?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"}),!i.inline)){var e=n.datepicker._get(i,"showAnim"),h=n.datepicker._get(i,"duration"),c=function(){var r=i.dpDiv.find("iframe.ui-datepicker-cover"),t;!r.length||(t=n.datepicker._getBorders(i.dpDiv),r.css({left:-t[0],top:-t[1],width:i.dpDiv.outerWidth(),height:i.dpDiv.outerHeight()}))};i.dpDiv.zIndex(n(t).zIndex()+1);n.datepicker._datepickerShowing=!0;n.effects&&n.effects[e]?i.dpDiv.show(e,n.datepicker._get(i,"showOptions"),h,c):i.dpDiv[e||"show"](e?h:null,c);(!e||!h)&&c();i.input.is(":visible")&&!i.input.is(":disabled")&&i.input.focus();n.datepicker._curInst=i}},_updateDatepicker:function(t){var s=this,i,r,o;s.maxRows=4;i=n.datepicker._getBorders(t.dpDiv);f=t;t.dpDiv.empty().append(this._generateHTML(t));r=t.dpDiv.find("iframe.ui-datepicker-cover");r.length&&r.css({left:-i[0],top:-i[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()});t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var u=this._getNumberOfMonths(t),e=u[1];t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");e>1&&t.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em");t.dpDiv[(u[0]!=1||u[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");t==n.datepicker._curInst&&n.datepicker._datepickerShowing&&t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&t.input[0]!=document.activeElement&&t.input.focus();t.yearshtml&&(o=t.yearshtml,setTimeout(function(){o===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml);o=t.yearshtml=null},0))},_getBorders:function(n){var t=function(n){return{thin:1,medium:2,thick:3}[n]||n};return[parseFloat(t(n.css("border-left-width"))),parseFloat(t(n.css("border-top-width")))]},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+n(document).scrollLeft(),s=document.documentElement.clientHeight+n(document).scrollTop();return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left==t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top==t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var r=this._getInst(t),u=this._get(r,"isRTL"),i;t&&(t.type=="hidden"||t.nodeType!=1||n.expr.filters.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var r=this._curInst,e;if(r&&(!t||r==n.data(t,i))&&this._datepickerShowing){var u=this._get(r,"showAnim"),o=this._get(r,"duration"),f=function(){n.datepicker._tidyDialog(r)};n.effects&&n.effects[u]?r.dpDiv.hide(u,n.datepicker._get(r,"showOptions"),o,f):r.dpDiv[u=="slideDown"?"slideUp":u=="fadeIn"?"fadeOut":"hide"](u?o:null,f);u||f();this._datepickerShowing=!1;e=this._get(r,"onClose");e&&e.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]);this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv)));this._inDialog=!1}},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id==n.datepicker._mainDivId||i.parents("#"+n.datepicker._mainDivId).length!=0||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst==r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var f=n(t),u=this._getInst(f[0]);this._isDisabledDatepicker(f[0])||(this._adjustInstDate(u,i+(r=="M"?this._get(u,"showCurrentAtPos"):0),r),this._updateDatepicker(u))},_gotoToday:function(t){var u=n(t),i=this._getInst(u[0]),r;this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear());this._notifyChange(i);this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+(r=="M"?"Month":"Year")]=u["draw"+(r=="M"?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(u);this._adjustDate(f)},_selectDay:function(t,i,r,u){var e=n(t),f;n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=n("a",u).html(),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t),r=this._getInst(i[0]);this._selectDate(i,"")},_selectDate:function(t,i){var f=n(t),r=this._getInst(f[0]),u;i=i!=null?i:this._formatDate(r);r.input&&r.input.val(i);this._updateAlternate(r);u=this._get(r,"onSelect");u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change");r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var i=this._get(t,"altField");if(i){var r=this._get(t,"altFormat")||this._get(t,"dateFormat"),u=this._getDate(t),f=this.formatDate(r,u,this._getFormatConfig(t));n(i).each(function(){n(this).val(f)})}},noWeekends:function(n){var t=n.getDay();return[t>0&&t<6,""]},iso8601Week:function(n){var t=new Date(n.getTime()),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){var c,s,w,u;if(t==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i=="")return null;c=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff;c=typeof c!="string"?c:(new Date).getFullYear()%100+parseInt(c,10);var k=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,d=(r?r.dayNames:null)||this._defaults.dayNames,g=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,nt=(r?r.monthNames:null)||this._defaults.monthNames,f=-1,o=-1,h=-1,v=-1,y=!1,a=function(n){var i=s+1<t.length&&t.charAt(s+1)==n;return i&&s++,i},l=function(n){var r=a(n),u=n=="@"?14:n=="!"?20:n=="y"&&r?4:n=="o"?3:2,f=new RegExp("^\\d{1,"+u+"}"),t=i.substring(e).match(f);if(!t)throw"Missing number at position "+e;return e+=t[0].length,parseInt(t[0],10)},b=function(t,r,u){var o=n.map(a(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)}),f=-1;if(n.each(o,function(n,t){var r=t[1];if(i.substr(e,r.length).toLowerCase()==r.toLowerCase())return f=t[0],e+=r.length,!1}),f!=-1)return f+1;throw"Unknown name at position "+e;},p=function(){if(i.charAt(e)!=t.charAt(s))throw"Unexpected literal at position "+e;e++},e=0;for(s=0;s<t.length;s++)if(y)t.charAt(s)=="'"&&!a("'")?y=!1:p();else switch(t.charAt(s)){case"d":h=l("d");break;case"D":b("D",k,d);break;case"o":v=l("o");break;case"m":o=l("m");break;case"M":o=b("M",g,nt);break;case"y":f=l("y");break;case"@":u=new Date(l("@"));f=u.getFullYear();o=u.getMonth()+1;h=u.getDate();break;case"!":u=new Date((l("!")-this._ticksTo1970)/1e4);f=u.getFullYear();o=u.getMonth()+1;h=u.getDate();break;case"'":a("'")?p():y=!0;break;default:p()}if(e<i.length)throw"Extra/unparsed characters found in date: "+i.substring(e);if(f==-1?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=c?0:-100)),v>-1){o=1;h=v;do{if(w=this._getDaysInMonth(f,o-1),h<=w)break;o++;h-=w}while(1)}if(u=this._daylightSavingAdjust(new Date(f,o-1,h)),u.getFullYear()!=f||u.getMonth()+1!=o||u.getDate()!=h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864e9,formatDate:function(n,t,i){var u;if(!t)return"";var h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=u+1<n.length&&n.charAt(u+1)==t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))while(r.length<i)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;u<n.length;u++)if(o)n.charAt(u)=="'"&&!f("'")?o=!1:r+=n.charAt(u);else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=t.getTime()*1e4+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=t+1<n.length&&n.charAt(t+1)==i;return r&&t++,r},t=0;t<n.length;t++)if(r)n.charAt(t)=="'"&&!u("'")?r=!1:i+=n.charAt(t);else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,i){return n.settings[i]!==t?n.settings[i]:this._defaults[i]},_setDateFromField:function(n,t){var u,r,i,f,e;if(n.input.val()!=n.lastVal){u=this._get(n,"dateFormat");r=n.lastVal=n.input?n.input.val():null;i=f=this._getDefaultDate(n);e=this._getFormatConfig(n);try{i=this.parseDate(u,r,e)||f}catch(o){this.log(o);r=t?"":r}n.selectedDay=i.getDate();n.drawMonth=n.selectedMonth=i.getMonth();n.drawYear=n.selectedYear=i.getFullYear();n.currentDay=r?i.getDate():0;n.currentMonth=r?i.getMonth():0;n.currentYear=r?i.getFullYear():0;this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=parseInt(u[1],10)*7;break;case"m":case"M":e+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=i==null||i===""?r:typeof i=="string"?e(i):typeof i=="number"?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&u.toString()=="Invalid Date"?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate();n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth();n.drawYear=n.selectedYear=n.currentYear=r.getFullYear();(f!=n.selectedMonth||e!=n.selectedYear)&&!i&&this._notifyChange(n);this._adjustInstDate(n);n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&n.input.val()==""?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_generateHTML:function(t){var a=new Date,g,c,et,l,w,ht,b,ct,lt,at,u,yt,pt,h;a=this._daylightSavingAdjust(new Date(a.getFullYear(),a.getMonth(),a.getDate()));var o=this._get(t,"isRTL"),ei=this._get(t,"showButtonPanel"),bt=this._get(t,"hideIfNoPrevNext"),rt=this._get(t,"navigationAsDateFormat"),s=this._getNumberOfMonths(t),oi=this._get(t,"showCurrentAtPos"),nt=this._get(t,"stepMonths"),ut=s[0]!=1||s[1]!=1,ft=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),p=this._getMinMaxDate(t,"min"),v=this._getMinMaxDate(t,"max"),i=t.drawMonth-oi,f=t.drawYear;if(i<0&&(i+=12,f--),v)for(g=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-s[0]*s[1]+1,v.getDate())),g=p&&g<p?p:g;this._daylightSavingAdjust(new Date(f,i,1))>g;)i--,i<0&&(i=11,f--);t.drawMonth=i;t.drawYear=f;c=this._get(t,"prevText");c=rt?this.formatDate(c,this._daylightSavingAdjust(new Date(f,i-nt,1)),this._getFormatConfig(t)):c;et=this._canAdjustMonth(t,-1,f,i)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+r+".datepicker._adjustDate('#"+t.id+"', -"+nt+", 'M');\" title=\""+c+'"><span class="ui-icon ui-icon-circle-triangle-'+(o?"e":"w")+'">'+c+"<\/span><\/a>":bt?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+c+'"><span class="ui-icon ui-icon-circle-triangle-'+(o?"e":"w")+'">'+c+"<\/span><\/a>";l=this._get(t,"nextText");l=rt?this.formatDate(l,this._daylightSavingAdjust(new Date(f,i+nt,1)),this._getFormatConfig(t)):l;var kt=this._canAdjustMonth(t,1,f,i)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+r+".datepicker._adjustDate('#"+t.id+"', +"+nt+", 'M');\" title=\""+l+'"><span class="ui-icon ui-icon-circle-triangle-'+(o?"w":"e")+'">'+l+"<\/span><\/a>":bt?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+l+'"><span class="ui-icon ui-icon-circle-triangle-'+(o?"w":"e")+'">'+l+"<\/span><\/a>",tt=this._get(t,"currentText"),dt=this._get(t,"gotoCurrent")&&t.currentDay?ft:a;tt=rt?this.formatDate(tt,dt,this._getFormatConfig(t)):tt;var gt=t.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+r+'.datepicker._hideDatepicker();">'+this._get(t,"closeText")+"<\/button>",si=ei?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(o?gt:"")+(this._isInRange(t,dt)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+r+".datepicker._gotoToday('#"+t.id+"');\">"+tt+"<\/button>":"")+(o?"":gt)+"<\/div>":"",y=parseInt(this._get(t,"firstDay"),10);y=isNaN(y)?0:y;var ni=this._get(t,"showWeek"),hi=this._get(t,"dayNames"),yi=this._get(t,"dayNamesShort"),ci=this._get(t,"dayNamesMin"),li=this._get(t,"monthNames"),ai=this._get(t,"monthNamesShort"),ti=this._get(t,"beforeShowDay"),ot=this._get(t,"showOtherMonths"),vi=this._get(t,"selectOtherMonths"),pi=this._get(t,"calculateWeek")||this.iso8601Week,ii=this._getDefaultDate(t),st="";for(w=0;w<s[0];w++){for(ht="",this.maxRows=4,b=0;b<s[1];b++){var ri=this._daylightSavingAdjust(new Date(f,i,t.selectedDay)),k=" ui-corner-all",e="";if(ut){if(e+='<div class="ui-datepicker-group',s[1]>1)switch(b){case 0:e+=" ui-datepicker-group-first";k=" ui-corner-"+(o?"right":"left");break;case s[1]-1:e+=" ui-datepicker-group-last";k=" ui-corner-"+(o?"left":"right");break;default:e+=" ui-datepicker-group-middle";k=""}e+='">'}for(e+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+k+'">'+(/all|left/.test(k)&&w==0?o?kt:et:"")+(/all|right/.test(k)&&w==0?o?et:kt:"")+this._generateMonthYearHeader(t,i,f,p,v,w>0||b>0,li,ai)+'<\/div><table class="ui-datepicker-calendar"><thead><tr>',ct=ni?'<th class="ui-datepicker-week-col">'+this._get(t,"weekHeader")+"<\/th>":"",h=0;h<7;h++)lt=(h+y)%7,ct+="<th"+((h+y+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+hi[lt]+'">'+ci[lt]+"<\/span><\/th>";e+=ct+"<\/tr><\/thead><tbody>";at=this._getDaysInMonth(f,i);f==t.selectedYear&&i==t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,at));var ui=(this._getFirstDayOfMonth(f,i)-y+7)%7,vt=Math.ceil((ui+at)/7),fi=ut?this.maxRows>vt?this.maxRows:vt:vt;for(this.maxRows=fi,u=this._daylightSavingAdjust(new Date(f,i,1-ui)),yt=0;yt<fi;yt++){for(e+="<tr>",pt=ni?'<td class="ui-datepicker-week-col">'+this._get(t,"calculateWeek")(u)+"<\/td>":"",h=0;h<7;h++){var it=ti?ti.apply(t.input?t.input[0]:null,[u]):[!0,""],d=u.getMonth()!=i,wt=d&&!vi||!it[0]||p&&u<p||v&&u>v;pt+='<td class="'+((h+y+6)%7>=5?" ui-datepicker-week-end":"")+(d?" ui-datepicker-other-month":"")+(u.getTime()==ri.getTime()&&i==t.selectedMonth&&t._keyEvent||ii.getTime()==u.getTime()&&ii.getTime()==ri.getTime()?" "+this._dayOverClass:"")+(wt?" "+this._unselectableClass+" ui-state-disabled":"")+(d&&!ot?"":" "+it[1]+(u.getTime()==ft.getTime()?" "+this._currentClass:"")+(u.getTime()==a.getTime()?" ui-datepicker-today":""))+'"'+((!d||ot)&&it[2]?' title="'+it[2]+'"':"")+(wt?"":' onclick="DP_jQuery_'+r+".datepicker._selectDay('#"+t.id+"',"+u.getMonth()+","+u.getFullYear()+', this);return false;"')+">"+(d&&!ot?"&#xa0;":wt?'<span class="ui-state-default">'+u.getDate()+"<\/span>":'<a class="ui-state-default'+(u.getTime()==a.getTime()?" ui-state-highlight":"")+(u.getTime()==ft.getTime()?" ui-state-active":"")+(d?" ui-priority-secondary":"")+'" href="#">'+u.getDate()+"<\/a>")+"<\/td>";u.setDate(u.getDate()+1);u=this._daylightSavingAdjust(u)}e+=pt+"<\/tr>"}i++;i>11&&(i=0,f++);e+="<\/tbody><\/table>"+(ut?"<\/div>"+(s[0]>0&&b==s[1]-1?'<div class="ui-datepicker-row-break"><\/div>':""):"");ht+=e}st+=ht}return st+=si+(n.browser.msie&&parseInt(n.browser.version,10)<7&&!t.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"><\/iframe>':""),t._keyEvent=!1,st},_generateMonthYearHeader:function(n,t,i,u,f,e,o,s){var y=this._get(n,"changeMonth"),p=this._get(n,"changeYear"),w=this._get(n,"showMonthAfterYear"),l='<div class="ui-datepicker-title">',a="",b,k,c;if(e||!y)a+='<span class="ui-datepicker-month">'+o[t]+"<\/span>";else{for(b=u&&u.getFullYear()==i,k=f&&f.getFullYear()==i,a+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+r+".datepicker._selectMonthYear('#"+n.id+"', this, 'M');\" >",c=0;c<12;c++)(!b||c>=u.getMonth())&&(!k||c<=f.getMonth())&&(a+='<option value="'+c+'"'+(c==t?' selected="selected"':"")+">"+s[c]+"<\/option>");a+="<\/select>"}if(w||(l+=a+(e||!y||!p?"&#xa0;":"")),!n.yearshtml)if(n.yearshtml="",e||!p)l+='<span class="ui-datepicker-year">'+i+"<\/span>";else{var d=this._get(n,"yearRange").split(":"),g=(new Date).getFullYear(),nt=function(n){var t=n.match(/c[+-].*/)?i+parseInt(n.substring(1),10):n.match(/[+-].*/)?g+parseInt(n,10):parseInt(n,10);return isNaN(t)?g:t},h=nt(d[0]),v=Math.max(h,nt(d[1]||""));for(h=u?Math.max(h,u.getFullYear()):h,v=f?Math.min(v,f.getFullYear()):v,n.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+r+".datepicker._selectMonthYear('#"+n.id+"', this, 'Y');\" >";h<=v;h++)n.yearshtml+='<option value="'+h+'"'+(h==i?' selected="selected"':"")+">"+h+"<\/option>";n.yearshtml+="<\/select>";l+=n.yearshtml;n.yearshtml=null}return l+=this._get(n,"yearSuffix"),w&&(l+=(e||!y||!p?"&#xa0;":"")+a),l+="<\/div>",l},_adjustInstDate:function(n,t,i){var u=n.drawYear+(i=="Y"?t:0),f=n.drawMonth+(i=="M"?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+(i=="D"?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate();n.drawMonth=n.selectedMonth=r.getMonth();n.drawYear=n.selectedYear=r.getFullYear();(i=="M"||i=="Y")&&this._notifyChange(n)},_restrictMinMax:function(n,t){var r=this._getMinMaxDate(n,"min"),u=this._getMinMaxDate(n,"max"),i=r&&t<r?r:t;return i=u&&i>u?u:i,i},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(t<0?t:f[0]*f[1]),1));return t<0&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max");return(!i||t.getTime()>=i.getTime())&&(!r||t.getTime()<=r.getTime())},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}});n.fn.datepicker=function(t){if(!this.length)return this;n.datepicker.initialized||(n(document).mousedown(n.datepicker._checkExternalClick).find("body").append(n.datepicker.dpDiv),n.datepicker.initialized=!0);var i=Array.prototype.slice.call(arguments,1);return typeof t!="string"||t!="isDisabled"&&t!="getDate"&&t!="widget"?t=="option"&&arguments.length==2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)}):n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i))};n.datepicker=new e;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.8.21";window["DP_jQuery_"+r]=n}(jQuery),function(n,t){n.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=n("<div class='ui-progressbar-value ui-widget-header ui-corner-left'><\/div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();n.Widget.prototype.destroy.apply(this,arguments)},value:function(n){return n===t?this._value():(this._setOption("value",n),this)},_setOption:function(t,i){t==="value"&&(this.options.value=i,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete"));n.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var n=this.options.value;return typeof n!="number"&&(n=0),Math.min(this.options.max,Math.max(this.min,n))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var n=this.value(),t=this._percentage();this.oldValue!==n&&(this.oldValue=n,this._trigger("change"));this.valueDiv.toggle(n>this.min).toggleClass("ui-corner-right",n===this.options.max).width(t.toFixed(0)+"%");this.element.attr("aria-valuenow",n)}});n.extend(n.ui.progressbar,{version:"1.8.21"})}(jQuery),jQuery.effects||function(n,t){function u(t){var i;return t&&t.constructor==Array&&t.length==3?t:(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10)]:(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(t))?[parseFloat(i[1])*2.55,parseFloat(i[2])*2.55,parseFloat(i[3])*2.55]:(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)]:(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))?[parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16)]:(i=/rgba\(0, 0, 0, 0\)/.exec(t))?o.transparent:o[n.trim(t).toLowerCase()]}function h(t,i){var r;do{if(r=n.curCSS(t,i),r!=""&&r!="transparent"||n.nodeName(t,"body"))break;i="backgroundColor"}while(t=t.parentNode);return u(r)}function f(){var n=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,i={},t,u,r;if(n&&n.length&&n[0]&&n[n[0]])for(r=n.length;r--;)t=n[r],typeof n[t]=="string"&&(u=t.replace(/\-(\w)/g,function(n,t){return t.toUpperCase()}),i[u]=n[t]);else for(t in n)typeof n[t]=="string"&&(i[t]=n[t]);return i}function e(t){var i,r;for(i in t)r=t[i],(r==null||n.isFunction(r)||i in l||/scrollbar/.test(i)||!/color/i.test(i)&&isNaN(parseFloat(r)))&&delete t[i];return t}function c(n,t){var r={_:0};for(var i in t)n[i]!=t[i]&&(r[i]=t[i]);return r}function i(t,i,r,u){return typeof t=="object"&&(u=i,r=null,i=t,t=i.effect),n.isFunction(i)&&(u=i,r=null,i={}),(typeof i=="number"||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i=i||{},r=r||i.duration,r=n.fx.off?0:typeof r=="number"?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,u=u||i.complete,[t,i,r,u]}function r(t){return!t||typeof t=="number"||n.fx.speeds[t]?!0:typeof t=="string"&&!n.effects[t]?!0:!1}n.effects={};n.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(t,i){n.fx.step[i]=function(n){n.colorInit||(n.start=h(n.elem,i),n.end=u(n.end),n.colorInit=!0);n.elem.style[i]="rgb("+Math.max(Math.min(parseInt(n.pos*(n.end[0]-n.start[0])+n.start[0],10),255),0)+","+Math.max(Math.min(parseInt(n.pos*(n.end[1]-n.start[1])+n.start[1],10),255),0)+","+Math.max(Math.min(parseInt(n.pos*(n.end[2]-n.start[2])+n.start[2],10),255),0)+")"}});var o={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},s=["add","remove","toggle"],l={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.effects.animateClass=function(t,i,r,u){return n.isFunction(r)&&(u=r,r=null),this.queue(function(){var o=n(this),h=o.attr("style")||" ",a=e(f.call(this)),l,v=o.attr("class")||"";n.each(s,function(n,i){t[i]&&o[i+"Class"](t[i])});l=e(f.call(this));o.attr("class",v);o.animate(c(a,l),{queue:!1,duration:i,easing:r,complete:function(){n.each(s,function(n,i){t[i]&&o[i+"Class"](t[i])});typeof o.attr("style")=="object"?(o.attr("style").cssText="",o.attr("style").cssText=h):o.attr("style",h);u&&u.apply(this,arguments);n.dequeue(this)}})})};n.fn.extend({_addClass:n.fn.addClass,addClass:function(t,i,r,u){return i?n.effects.animateClass.apply(this,[{add:t},i,r,u]):this._addClass(t)},_removeClass:n.fn.removeClass,removeClass:function(t,i,r,u){return i?n.effects.animateClass.apply(this,[{remove:t},i,r,u]):this._removeClass(t)},_toggleClass:n.fn.toggleClass,toggleClass:function(i,r,u,f,e){return typeof r=="boolean"||r===t?u?n.effects.animateClass.apply(this,[r?{add:i}:{remove:i},u,f,e]):this._toggleClass(i,r):n.effects.animateClass.apply(this,[{toggle:i},r,u,f])},switchClass:function(t,i,r,u,f){return n.effects.animateClass.apply(this,[{add:i,remove:t},r,u,f])}});n.extend(n.effects,{version:"1.8.21",save:function(n,t){for(var i=0;i<t.length;i++)t[i]!==null&&n.data("ec.storage."+t[i],n[0].style[t[i]])},restore:function(n,t){for(var i=0;i<t.length;i++)t[i]!==null&&n.css(t[i],n.data("ec.storage."+t[i]))},setMode:function(n,t){return t=="toggle"&&(t=n.is(":hidden")?"show":"hide"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r=document.activeElement;try{r.id}catch(f){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).focus(),u=t.parent(),t.css("position")=="static"?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),u.css(i).show()},removeWrapper:function(t){var r,i=document.activeElement;return t.parent().is(".ui-effects-wrapper")?(r=t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).focus(),r):t},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(t){var u=i.apply(this,arguments),r={options:u[1],duration:u[2],callback:u[3]},f=r.options.mode,e=n.effects[t];return n.fx.off||!e?f?this[f](r.duration,r.callback):this.each(function(){r.callback&&r.callback.call(this)}):e.call(this,r)},_show:n.fn.show,show:function(n){if(r(n))return this._show.apply(this,arguments);var t=i.apply(this,arguments);return t[1].mode="show",this.effect.apply(this,t)},_hide:n.fn.hide,hide:function(n){if(r(n))return this._hide.apply(this,arguments);var t=i.apply(this,arguments);return t[1].mode="hide",this.effect.apply(this,t)},__toggle:n.fn.toggle,toggle:function(t){if(r(t)||typeof t=="boolean"||n.isFunction(t))return this.__toggle.apply(this,arguments);var u=i.apply(this,arguments);return u[1].mode="toggle",this.effect.apply(this,u)},cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r}});n.easing.jswing=n.easing.swing;n.extend(n.easing,{def:"easeOutQuad",swing:function(t,i,r,u,f){return n.easing[n.easing.def](t,i,r,u,f)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i)},easeInBack:function(n,i,r,u,f,e){return e==t&&(e=1.70158),u*(i/=f)*i*((e+1)*i-e)+r},easeOutBack:function(n,i,r,u,f,e){return e==t&&(e=1.70158),u*((i=i/f-1)*i*((e+1)*i+e)+1)+r},easeInOutBack:function(n,i,r,u,f,e){return e==t&&(e=1.70158),(i/=f/2)<1?u/2*i*i*(((e*=1.525)+1)*i-e)+r:u/2*((i-=2)*i*(((e*=1.525)+1)*i+e)+2)+r},easeInBounce:function(t,i,r,u,f){return u-n.easing.easeOutBounce(t,f-i,0,u,f)+r},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(t,i,r,u,f){return i<f/2?n.easing.easeInBounce(t,i*2,0,u,f)*.5+r:n.easing.easeOutBounce(t,i*2-f,0,u,f)*.5+u*.5+r}})}(jQuery),function(n){n.effects.blind=function(t){return this.queue(function(){var i=n(this),e=["position","top","bottom","left","right"],u=n.effects.setMode(i,t.options.mode||"hide"),o=t.options.direction||"vertical",f;n.effects.save(i,e);i.show();var r=n.effects.createWrapper(i).css({overflow:"hidden"}),s=o=="vertical"?"height":"width",h=o=="vertical"?r.height():r.width();u=="show"&&r.css(s,0);f={};f[s]=u=="show"?h:0;r.animate(f,t.duration,t.options.easing,function(){u=="hide"&&i.hide();n.effects.restore(i,e);n.effects.removeWrapper(i);t.callback&&t.callback.apply(i[0],arguments);i.dequeue()})})}}(jQuery),function(n){n.effects.bounce=function(t){return this.queue(function(){var i=n(this),l=["position","top","bottom","left","right"],f=n.effects.setMode(i,t.options.mode||"effect"),a=t.options.direction||"up",r=t.options.distance||20,v=t.options.times||5,o=t.duration||250,y,s,h,c;/show|hide/.test(f)&&l.push("opacity");n.effects.save(i,l);i.show();n.effects.createWrapper(i);var u=a=="up"||a=="down"?"top":"left",e=a=="up"||a=="left"?"pos":"neg",r=t.options.distance||(u=="top"?i.outerHeight({margin:!0})/3:i.outerWidth({margin:!0})/3);for(f=="show"&&i.css("opacity",0).css(u,e=="pos"?-r:r),f=="hide"&&(r=r/(v*2)),f!="hide"&&v--,f=="show"&&(s={opacity:1},s[u]=(e=="pos"?"+=":"-=")+r,i.animate(s,o/2,t.options.easing),r=r/2,v--),y=0;y<v;y++)h={},c={},h[u]=(e=="pos"?"-=":"+=")+r,c[u]=(e=="pos"?"+=":"-=")+r,i.animate(h,o/2,t.options.easing).animate(c,o/2,t.options.easing),r=f=="hide"?r*2:r/2;f=="hide"?(s={opacity:0},s[u]=(e=="pos"?"-=":"+=")+r,i.animate(s,o/2,t.options.easing,function(){i.hide();n.effects.restore(i,l);n.effects.removeWrapper(i);t.callback&&t.callback.apply(this,arguments)})):(h={},c={},h[u]=(e=="pos"?"-=":"+=")+r,c[u]=(e=="pos"?"+=":"-=")+r,i.animate(h,o/2,t.options.easing).animate(c,o/2,t.options.easing,function(){n.effects.restore(i,l);n.effects.removeWrapper(i);t.callback&&t.callback.apply(this,arguments)}));i.queue("fx",function(){i.dequeue()});i.dequeue()})}}(jQuery),function(n){n.effects.clip=function(t){return this.queue(function(){var i=n(this),h=["position","top","bottom","left","right","height","width"],u=n.effects.setMode(i,t.options.mode||"hide"),o=t.options.direction||"vertical",e;n.effects.save(i,h);i.show();var c=n.effects.createWrapper(i).css({overflow:"hidden"}),r=i[0].tagName=="IMG"?c:i,f={size:o=="vertical"?"height":"width",position:o=="vertical"?"top":"left"},s=o=="vertical"?r.height():r.width();u=="show"&&(r.css(f.size,0),r.css(f.position,s/2));e={};e[f.size]=u=="show"?s:0;e[f.position]=u=="show"?0:s/2;r.animate(e,{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){u=="hide"&&i.hide();n.effects.restore(i,h);n.effects.removeWrapper(i);t.callback&&t.callback.apply(i[0],arguments);i.dequeue()}})})}}(jQuery),function(n){n.effects.drop=function(t){return this.queue(function(){var i=n(this),h=["position","top","bottom","left","right","opacity"],r=n.effects.setMode(i,t.options.mode||"hide"),u=t.options.direction||"left",s;n.effects.save(i,h);i.show();n.effects.createWrapper(i);var f=u=="up"||u=="down"?"top":"left",e=u=="up"||u=="left"?"pos":"neg",o=t.options.distance||(f=="top"?i.outerHeight({margin:!0})/2:i.outerWidth({margin:!0})/2);r=="show"&&i.css("opacity",0).css(f,e=="pos"?-o:o);s={opacity:r=="show"?1:0};s[f]=(r=="show"?e=="pos"?"+=":"-=":e=="pos"?"-=":"+=")+o;i.animate(s,{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){r=="hide"&&i.hide();n.effects.restore(i,h);n.effects.removeWrapper(i);t.callback&&t.callback.apply(this,arguments);i.dequeue()}})})}}(jQuery),function(n){n.effects.explode=function(t){return this.queue(function(){var r=t.options.pieces?Math.round(Math.sqrt(t.options.pieces)):3,u=t.options.pieces?Math.round(Math.sqrt(t.options.pieces)):3,i,o,s,h,f,e;for(t.options.mode=t.options.mode=="toggle"?n(this).is(":visible")?"hide":"show":t.options.mode,i=n(this).show().css("visibility","hidden"),o=i.offset(),o.top-=parseInt(i.css("marginTop"),10)||0,o.left-=parseInt(i.css("marginLeft"),10)||0,s=i.outerWidth(!0),h=i.outerHeight(!0),f=0;f<r;f++)for(e=0;e<u;e++)i.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-e*(s/u),top:-f*(h/r)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s/u,height:h/r,left:o.left+e*(s/u)+(t.options.mode=="show"?(e-Math.floor(u/2))*(s/u):0),top:o.top+f*(h/r)+(t.options.mode=="show"?(f-Math.floor(r/2))*(h/r):0),opacity:t.options.mode=="show"?0:1}).animate({left:o.left+e*(s/u)+(t.options.mode=="show"?0:(e-Math.floor(u/2))*(s/u)),top:o.top+f*(h/r)+(t.options.mode=="show"?0:(f-Math.floor(r/2))*(h/r)),opacity:t.options.mode=="show"?1:0},t.duration||500);setTimeout(function(){t.options.mode=="show"?i.css({visibility:"visible"}):i.css({visibility:"visible"}).hide();t.callback&&t.callback.apply(i[0]);i.dequeue();n("div.ui-effects-explode").remove()},t.duration||500)})}}(jQuery),function(n){n.effects.fade=function(t){return this.queue(function(){var i=n(this),r=n.effects.setMode(i,t.options.mode||"hide");i.animate({opacity:r},{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){t.callback&&t.callback.apply(this,arguments);i.dequeue()}})})}}(jQuery),function(n){n.effects.fold=function(t){return this.queue(function(){var i=n(this),h=["position","top","bottom","left","right"],r=n.effects.setMode(i,t.options.mode||"hide"),f=t.options.size||15,c=!!t.options.horizFirst,l=t.duration?t.duration/2:n.fx.speeds._default/2,o,s;n.effects.save(i,h);i.show();var u=n.effects.createWrapper(i).css({overflow:"hidden"}),a=r=="show"!=c,v=a?["width","height"]:["height","width"],e=a?[u.width(),u.height()]:[u.height(),u.width()],y=/([0-9]+)%/.exec(f);y&&(f=parseInt(y[1],10)/100*e[r=="hide"?0:1]);r=="show"&&u.css(c?{height:0,width:f}:{height:f,width:0});o={};s={};o[v[0]]=r=="show"?e[0]:f;s[v[1]]=r=="show"?e[1]:0;u.animate(o,l,t.options.easing).animate(s,l,t.options.easing,function(){r=="hide"&&i.hide();n.effects.restore(i,h);n.effects.removeWrapper(i);t.callback&&t.callback.apply(i[0],arguments);i.dequeue()})})}}(jQuery),function(n){n.effects.highlight=function(t){return this.queue(function(){var i=n(this),u=["backgroundImage","backgroundColor","opacity"],r=n.effects.setMode(i,t.options.mode||"show"),f={backgroundColor:i.css("backgroundColor")};r=="hide"&&(f.opacity=0);n.effects.save(i,u);i.show().css({backgroundImage:"none",backgroundColor:t.options.color||"#ffff99"}).animate(f,{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){r=="hide"&&i.hide();n.effects.restore(i,u);r=="show"&&!n.support.opacity&&this.style.removeAttribute("filter");t.callback&&t.callback.apply(this,arguments);i.dequeue()}})})}}(jQuery),function(n){n.effects.pulsate=function(t){return this.queue(function(){var i=n(this),e=n.effects.setMode(i,t.options.mode||"show"),o=(t.options.times||5)*2-1,s=t.duration?t.duration/2:n.fx.speeds._default/2,u=i.is(":visible"),r=0,f;for(u||(i.css("opacity",0).show(),r=1),(e=="hide"&&u||e=="show"&&!u)&&o--,f=0;f<o;f++)i.animate({opacity:r},s,t.options.easing),r=(r+1)%2;i.animate({opacity:r},s,t.options.easing,function(){r==0&&i.hide();t.callback&&t.callback.apply(this,arguments)});i.queue("fx",function(){i.dequeue()}).dequeue()})}}(jQuery),function(n){n.effects.puff=function(t){return this.queue(function(){var i=n(this),r=n.effects.setMode(i,t.options.mode||"hide"),f=parseInt(t.options.percent,10)||150,e=f/100,u={height:i.height(),width:i.width()};n.extend(t.options,{fade:!0,mode:r,percent:r=="hide"?f:100,from:r=="hide"?u:{height:u.height*e,width:u.width*e}});i.effect("scale",t.options,t.duration,t.callback);i.dequeue()})};n.effects.scale=function(t){return this.queue(function(){var i=n(this),r=n.extend(!0,{},t.options),u=n.effects.setMode(i,t.options.mode||"effect"),o=parseInt(t.options.percent,10)||(parseInt(t.options.percent,10)==0?0:u=="hide"?0:100),s=t.options.direction||"both",h=t.options.origin,f,e;u!="effect"&&(r.origin=h||["middle","center"],r.restore=!0);f={height:i.height(),width:i.width()};i.from=t.options.from||(u=="show"?{height:0,width:0}:f);e={y:s!="horizontal"?o/100:1,x:s!="vertical"?o/100:1};i.to={height:f.height*e.y,width:f.width*e.x};t.options.fade&&(u=="show"&&(i.from.opacity=0,i.to.opacity=1),u=="hide"&&(i.from.opacity=1,i.to.opacity=0));r.from=i.from;r.to=i.to;r.mode=u;i.effect("size",r,t.duration,t.callback);i.dequeue()})};n.effects.size=function(t){return this.queue(function(){var i=n(this),f=["position","top","bottom","left","right","width","height","overflow","opacity"],v=["position","top","bottom","left","right","overflow","opacity"],a=["width","height","overflow"],c=["fontSize"],e=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=n.effects.setMode(i,t.options.mode||"effect"),l=t.options.restore||!1,s=t.options.scale||"both",y=t.options.origin,u={height:i.height(),width:i.width()},h,r;i.from=t.options.from||u;i.to=t.options.to||u;y&&(h=n.effects.getBaseline(y,u),i.from.top=(u.height-i.from.height)*h.y,i.from.left=(u.width-i.from.width)*h.x,i.to.top=(u.height-i.to.height)*h.y,i.to.left=(u.width-i.to.width)*h.x);r={from:{y:i.from.height/u.height,x:i.from.width/u.width},to:{y:i.to.height/u.height,x:i.to.width/u.width}};(s=="box"||s=="both")&&(r.from.y!=r.to.y&&(f=f.concat(e),i.from=n.effects.setTransition(i,e,r.from.y,i.from),i.to=n.effects.setTransition(i,e,r.to.y,i.to)),r.from.x!=r.to.x&&(f=f.concat(o),i.from=n.effects.setTransition(i,o,r.from.x,i.from),i.to=n.effects.setTransition(i,o,r.to.x,i.to)));(s=="content"||s=="both")&&r.from.y!=r.to.y&&(f=f.concat(c),i.from=n.effects.setTransition(i,c,r.from.y,i.from),i.to=n.effects.setTransition(i,c,r.to.y,i.to));n.effects.save(i,l?f:v);i.show();n.effects.createWrapper(i);i.css("overflow","hidden").css(i.from);(s=="content"||s=="both")&&(e=e.concat(["marginTop","marginBottom"]).concat(c),o=o.concat(["marginLeft","marginRight"]),a=f.concat(e).concat(o),i.find("*[width]").each(function(){var i=n(this),u;l&&n.effects.save(i,a);u={height:i.height(),width:i.width()};i.from={height:u.height*r.from.y,width:u.width*r.from.x};i.to={height:u.height*r.to.y,width:u.width*r.to.x};r.from.y!=r.to.y&&(i.from=n.effects.setTransition(i,e,r.from.y,i.from),i.to=n.effects.setTransition(i,e,r.to.y,i.to));r.from.x!=r.to.x&&(i.from=n.effects.setTransition(i,o,r.from.x,i.from),i.to=n.effects.setTransition(i,o,r.to.x,i.to));i.css(i.from);i.animate(i.to,t.duration,t.options.easing,function(){l&&n.effects.restore(i,a)})}));i.animate(i.to,{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){i.to.opacity===0&&i.css("opacity",i.from.opacity);p=="hide"&&i.hide();n.effects.restore(i,l?f:v);n.effects.removeWrapper(i);t.callback&&t.callback.apply(this,arguments);i.dequeue()}})})}}(jQuery),function(n){n.effects.shake=function(t){return this.queue(function(){var i=n(this),l=["position","top","bottom","left","right"],y=n.effects.setMode(i,t.options.mode||"effect"),u=t.options.direction||"left",f=t.options.distance||20,v=t.options.times||3,r=t.duration||t.options.duration||140,c;n.effects.save(i,l);i.show();n.effects.createWrapper(i);var e=u=="up"||u=="down"?"top":"left",o=u=="up"||u=="left"?"pos":"neg",s={},h={},a={};for(s[e]=(o=="pos"?"-=":"+=")+f,h[e]=(o=="pos"?"+=":"-=")+f*2,a[e]=(o=="pos"?"-=":"+=")+f*2,i.animate(s,r,t.options.easing),c=1;c<v;c++)i.animate(h,r,t.options.easing).animate(a,r,t.options.easing);i.animate(h,r,t.options.easing).animate(s,r/2,t.options.easing,function(){n.effects.restore(i,l);n.effects.removeWrapper(i);t.callback&&t.callback.apply(this,arguments)});i.queue("fx",function(){i.dequeue()});i.dequeue()})}}(jQuery),function(n){n.effects.slide=function(t){return this.queue(function(){var i=n(this),h=["position","top","bottom","left","right"],f=n.effects.setMode(i,t.options.mode||"show"),u=t.options.direction||"left",s;n.effects.save(i,h);i.show();n.effects.createWrapper(i).css({overflow:"hidden"});var e=u=="up"||u=="down"?"top":"left",o=u=="up"||u=="left"?"pos":"neg",r=t.options.distance||(e=="top"?i.outerHeight({margin:!0}):i.outerWidth({margin:!0}));f=="show"&&i.css(e,o=="pos"?isNaN(r)?"-"+r:-r:r);s={};s[e]=(f=="show"?o=="pos"?"+=":"-=":o=="pos"?"-=":"+=")+r;i.animate(s,{queue:!1,duration:t.duration,easing:t.options.easing,complete:function(){f=="hide"&&i.hide();n.effects.restore(i,h);n.effects.removeWrapper(i);t.callback&&t.callback.apply(this,arguments);i.dequeue()}})})}}(jQuery),function(n){n.effects.transfer=function(t){return this.queue(function(){var i=n(this),r=n(t.options.to),u=r.offset(),e={top:u.top,left:u.left,height:r.innerHeight(),width:r.innerWidth()},f=i.offset(),o=n('<div class="ui-effects-transfer"><\/div>').appendTo(document.body).addClass(t.options.className).css({top:f.top,left:f.left,height:i.innerHeight(),width:i.innerWidth(),position:"absolute"}).animate(e,t.duration,t.options.easing,function(){o.remove();t.callback&&t.callback.apply(i[0],arguments);i.dequeue()})})}}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.ig=n.ig||{};n.ig.loaderClass=n.ig.loaderClass||{};n.ig.loaderClass.locale={dvGroup:"Data Visualization",editorsGroup:"Editors",frameworkGroup:"Framework",gridGroup:"Grid",layoutGroup:"Layout",interactionsGroup:"Interactions",pivotGroup:"Olap Pivot",miscGroup:"Miscellaneous"};n.ig.dependencies=[{widget:"theme",scripts:[],internal:!0,css:["$path$/themes/$theme$/infragistics.theme.css"]},{widget:"regional",scripts:[],css:[],internal:!0,regional:["$localePath$/regional/infragistics.ui.regional-$regional$.js"]},{widget:"igDataSource",dependency:[{name:"igUtil"}],priority:!0,scripts:["$path$/modules/infragistics.datasource.js"],locale:["$localePath$/infragistics.datasource-$locale$.js"],group:n.ig.loaderClass.locale.frameworkGroup,css:[]},{widget:"igOlapXmlaDataSource",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.olapxmladatasource.js"],group:n.ig.loaderClass.locale.frameworkGroup,css:[]},{widget:"igOlapFlatDataSource",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.olapflatdatasource.js"],group:n.ig.loaderClass.locale.frameworkGroup,css:[]},{widget:"igTemplating",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.templating.js"],group:n.ig.loaderClass.locale.miscGroup,css:[]},{widget:"igDVCore",priority:!0,scripts:["$path$/modules/infragistics.dv.core.js","$path$/modules/infragistics.dvcommonwidget.js"],group:n.ig.loaderClass.locale.dvGroup,locale:["$localePath$/infragistics.dvcommonwidget-$locale$.js"]},{widget:"igDVMapCore",priority:!0,group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.geographicmap_core.js"]},{widget:"igDVSimpleCore",priority:!0,group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.dv.simple.core.js"]},{widget:"igChartLegend",group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.ui.chartlegend.js"]},{widget:"igDataChart",dependency:[{name:"igUtil"},{name:"igDataSource"},{name:"igDVCore"},{name:"igTemplating"},{name:"igChartLegend"}],scripts:["$path$/modules/infragistics.ui.chart.js"],group:n.ig.loaderClass.locale.dvGroup,css:["$path$/structure/modules/infragistics.ui.shared.css","$path$/structure/modules/infragistics.ui.chart.css","$path$/structure/modules/infragistics.ui.html5.css"]},{widget:"igSimpleDataChart",dependency:[{name:"igUtil"},{name:"igDataSource"},{name:"igDVSimpleCore"},{name:"igTemplating"}],scripts:["$path$/modules/infragistics.ui.basechart.js"],group:n.ig.loaderClass.locale.dvGroup,css:["$path$/structure/modules/infragistics.ui.shared.css","$path$/structure/modules/infragistics.ui.html5.css"]},{widget:"Category",parentWidget:"igDataChart",dependency:[{name:"igDataChart"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.chart_categorychart.js"]},{widget:"Financial",parentWidget:"igDataChart",dependency:[{name:"igDataChart"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.chart_financialchart.js"]},{widget:"Polar",parentWidget:"igDataChart",dependency:[{name:"igDataChart"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.chart_polarchart.js"]},{widget:"Radial",parentWidget:"igDataChart",dependency:[{name:"igDataChart"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.chart_radialchart.js"]},{widget:"RangeCategory",parentWidget:"igDataChart",dependency:[{name:"igDataChart"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.chart_rangecategorychart.js"]},{widget:"Scatter",parentWidget:"igDataChart",dependency:[{name:"igDataChart"}],scripts:["$path$/modules/infragistics.chart_scatterchart.js"],group:n.ig.loaderClass.locale.dvGroup,css:["$path$/structure/modules/infragistics.ui.chart.css"]},{widget:"Stacked",parentWidget:"igDataChart",dependency:[{name:"igDataChart"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.chart_stackedchart.js"]},{widget:"Annotation",parentWidget:"igDataChart",dependency:[{name:"igDataChart"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.chart_annotationchart.js"]},{widget:"igDataChart.*",dependency:[{name:"Category"},{name:"Financial"},{name:"Polar"},{name:"Radial"},{name:"RangeCategory"},{name:"Scatter"},{name:"Stacked"},{name:"Annotation"},{name:"igPieChart"}]},{widget:"igPieChart",dependency:[{name:"igDataChart"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/infragistics.chart_piechart.js"]},{widget:"igDoughnutChart",dependency:[{name:"igUtil"},{name:"igDataSource"},{name:"igDVCore"},{name:"igTemplating"},{name:"igChartLegend"}],scripts:["$path$/modules/infragistics.ui.basechart.js","$path$/modules/infragistics.chart_piechart.js","$path$/modules/infragistics.ui.doughnutchart.js"],locale:["$localePath$/infragistics.ui.doughnutchart-$locale$.js"],group:n.ig.loaderClass.locale.dvGroup,css:["$path$/structure/modules/infragistics.ui.chart.css"]},{widget:"igFunnelChart",dependency:[{name:"igSimpleDataChart"},{name:"igChartLegend"}],scripts:["$path$/modules/infragistics.chart_funnelchart.js","$path$/modules/infragistics.ui.funnelchart.js"],group:n.ig.loaderClass.locale.dvGroup,css:["$path$/structure/modules/infragistics.ui.chart.css"]},{widget:"igSparkline",dependency:[{name:"igSimpleDataChart"}],scripts:["$path$/modules/infragistics.ui.sparkline.js","$path$/modules/infragistics.chart_sparkline.js"],group:n.ig.loaderClass.locale.dvGroup,css:["$path$/structure/modules/infragistics.ui.sparkline.css"]},{widget:"igRadialGauge",dependency:[{name:"igUtil"},{name:"igTemplating"},{name:"igDVSimpleCore"}],scripts:["$path$/modules/infragistics.ui.radialgauge.js","$path$/modules/infragistics.gauge_radialgauge.js"],group:n.ig.loaderClass.locale.dvGroup,css:["$path$/structure/modules/infragistics.ui.radialgauge.css"]},{widget:"igBulletGraph",dependency:[{name:"igUtil"},{name:"igTemplating"},{name:"igDVSimpleCore"}],scripts:["$path$/modules/infragistics.ui.bulletgraph.js","$path$/modules/infragistics.gauge_bulletgraph.js"],group:n.ig.loaderClass.locale.dvGroup,css:["$path$/structure/modules/infragistics.ui.bulletgraph.css"]},{widget:"igLinearGauge",dependency:[{name:"igUtil"},{name:"igTemplating"},{name:"igDVSimpleCore"}],scripts:["$path$/modules/infragistics.ui.lineargauge.js","$path$/modules/infragistics.gauge_lineargauge.js"],group:n.ig.loaderClass.locale.dvGroup},{widget:"igRadialMenu",dependency:[{name:"igUtil"},{name:"igTemplating"},{name:"igDVSimpleCore"}],scripts:["$path$/modules/infragistics.ui.radialmenu.js","$path$/modules/infragistics.radialmenu_core.js"],group:n.ig.loaderClass.locale.interactionsGroup,css:["$path$/structure/modules/infragistics.ui.radialmenu.css"]},{widget:"igQRCodeBarcode",dependency:[{name:"igUtil"},{name:"igDVSimpleCore"}],scripts:["$path$/modules/infragistics.barcode_qrcodebarcode.js","$path$/modules/infragistics.ui.barcode.js"],locale:["$localePath$/infragistics.ui.barcode-$locale$.js"],group:n.ig.loaderClass.locale.dvGroup},{widget:"igQRCodeBarcode.*",dependency:[{name:"igQRCodeBarcode"}],scripts:["$path$/modules/encoding/infragistics.encoding.js"]},{widget:"Big5",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_big5.js"]},{widget:"CP437",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_cp437.js"]},{widget:"GB2312",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_gb2312.js"]},{widget:"ISO646-US",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso646-us.js"]},{widget:"ISO-8859-1",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-1.js"]},{widget:"ISO-8859-2",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-2.js"]},{widget:"ISO-8859-3",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-3.js"]},{widget:"ISO-8859-4",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-4.js"]},{widget:"ISO-8859-5",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-5.js"]},{widget:"ISO-8859-6",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-6.js"]},{widget:"ISO-8859-7",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-7.js"]},{widget:"ISO-8859-8",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-8.js"]},{widget:"ISO-8859-9",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-9.js"]},{widget:"ISO-8859-11",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-11.js"]},{widget:"ISO-8859-13",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-13.js"]},{widget:"ISO-8859-15",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_iso-8859-15.js"]},{widget:"KSC5601",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_ksc5601.js"]},{widget:"Shift_JIS",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_shift_jis.js"]},{widget:"Windows-1250",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_windows-1250.js"]},{widget:"Windows-1251",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_windows-1251.js"]},{widget:"Windows-1252",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_windows-1252.js"]},{widget:"Windows-1256",parentWidget:"igQRCodeBarcode",dependency:[{name:"igQRCodeBarcode"}],group:n.ig.loaderClass.locale.dvGroup,scripts:["$path$/modules/encoding/infragistics.encoding.core.js","$path$/modules/encoding/infragistics.encoding_windows-1256.js"]},{widget:"igCombo",dependency:[{name:"igUtil"},{name:"igDataSource"},{name:"igTemplating"},{name:"igScroll"},{name:"igValidator"}],scripts:["$path$/modules/infragistics.ui.combo.js"],locale:["$localePath$/infragistics.ui.combo-$locale$.js"],group:n.ig.loaderClass.locale.editorsGroup,css:["$path$/structure/modules/infragistics.ui.shared.css","$path$/structure/modules/infragistics.ui.combo.css"]},{widget:"igDialog",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.ui.dialog.js"],locale:["$localePath$/infragistics.ui.dialog-$locale$.js"],group:n.ig.loaderClass.locale.layoutGroup,css:["$path$/structure/modules/infragistics.ui.dialog.css"]},{widget:"igEditors",dependency:[{name:"igUtil"},{name:"regional"},{name:"igScroll"},{name:"igValidator"}],scripts:["$path$/modules/infragistics.ui.editors.js"],locale:["$localePath$/infragistics.ui.editors-$locale$.js"],group:n.ig.loaderClass.locale.editorsGroup,css:["$path$/structure/modules/infragistics.ui.shared.css","$path$/structure/modules/infragistics.ui.editors.css"]},{widget:"igZoombar",dependency:[{name:"igUtil"},{name:"igShared"}],scripts:["$path$/modules/infragistics.ui.zoombar.js"],css:["$path$/structure/modules/infragistics.ui.shared.css","$path$/structure/modules/infragistics.ui.zoombar.css"]},{widget:"igGrid",dependency:[{name:"igUtil"},{name:"regional"},{name:"igDataSource"},{name:"igTemplating"},{name:"igShared"},{name:"igScroll"}],scripts:["$path$/modules/infragistics.ui.grid.framework.js"],locale:["$localePath$/infragistics.ui.grid-$locale$.js"],group:n.ig.loaderClass.locale.gridGroup,css:["$path$/structure/modules/infragistics.ui.grid.css"]},{widget:"ColumnMoving",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"FeatureChooser"},{name:"igTree"}],scripts:["$path$/modules/infragistics.ui.grid.columnmoving.js"],css:[]},{widget:"Responsive",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"}],scripts:["$path$/modules/infragistics.ui.grid.responsive.js"],css:[]},{widget:"FeatureChooser",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"igPopover"}],scripts:["$path$/modules/infragistics.ui.grid.featurechooser.js"],css:[]},{widget:"Filtering",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"igEditors"},{name:"FeatureChooser"}],scripts:["$path$/modules/infragistics.ui.grid.filtering.js"],css:[]},{widget:"GroupBy",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"FeatureChooser"},{name:"igTree"}],scripts:["$path$/modules/infragistics.ui.grid.groupby.js"],css:[]},{widget:"Hiding",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"FeatureChooser"}],scripts:["$path$/modules/infragistics.ui.grid.hiding.js"],css:[]},{widget:"CellMerging",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"}],scripts:["$path$/modules/infragistics.ui.grid.cellmerging.js"],css:[]},{widget:"Paging",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"igEditors"}],scripts:["$path$/modules/infragistics.ui.grid.paging.js"],css:[]},{widget:"Resizing",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"FeatureChooser"}],scripts:["$path$/modules/infragistics.ui.grid.resizing.js"],css:[]},{widget:"RowSelectors",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"}],scripts:["$path$/modules/infragistics.ui.grid.rowselectors.js"],css:[]},{widget:"Selection",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"}],scripts:["$path$/modules/infragistics.ui.grid.selection.js"],css:[]},{widget:"Sorting",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"FeatureChooser"}],scripts:["$path$/modules/infragistics.ui.grid.sorting.js"],css:[]},{widget:"Summaries",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"FeatureChooser"}],scripts:["$path$/modules/infragistics.ui.grid.summaries.js"],css:[]},{widget:"MultiColumnHeaders",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"}],scripts:["$path$/modules/infragistics.ui.grid.multicolumnheaders.js"],css:[]},{widget:"Tooltips",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"igPopover"}],scripts:["$path$/modules/infragistics.ui.grid.tooltips.js"],css:[]},{widget:"ColumnFixing",parentWidget:"igGrid",dependency:[{name:"igGrid"}],scripts:["$path$/modules/infragistics.ui.grid.columnfixing.js"],css:[]},{widget:"Updating",parentWidget:"igGrid,igHierarchicalGrid",dependency:[{name:"igGrid"},{name:"igEditors"},{name:"igValidator"}],scripts:["$path$/modules/infragistics.ui.grid.updating.js"],css:[]},{widget:"LoadOnDemand",parentWidget:"igGrid",dependency:[{name:"igGrid"}],scripts:["$path$/modules/infragistics.ui.grid.loadondemand.js"],css:[]},{widget:"igGrid.*",dependency:[{name:"FeatureChooser"},{name:"Filtering"},{name:"GroupBy"},{name:"Hiding"},{name:"CellMerging"},{name:"Paging"},{name:"Resizing"},{name:"RowSelectors"},{name:"Selection"},{name:"Sorting"},{name:"Summaries"},{name:"Tooltips"},{name:"ColumnFixing"},{name:"MultiColumnHeaders"},{name:"ColumnMoving"},{name:"Updating"},{name:"Responsive"},{name:"LoadOnDemand"}],scripts:[],css:[]},{widget:"igHierarchicalGrid",dependency:[{name:"igGrid"}],scripts:["$path$/modules/infragistics.ui.grid.hierarchical.js"],group:n.ig.loaderClass.locale.gridGroup,css:[]},{widget:"igHierarchicalGrid.*",dependency:[{name:"igHierarchicalGrid"},{name:"FeatureChooser"},{name:"Filtering"},{name:"GroupBy"},{name:"Hiding"},{name:"CellMerging"},{name:"Paging"},{name:"Resizing"},{name:"RowSelectors"},{name:"Selection"},{name:"Sorting"},{name:"Summaries"},{name:"MultiColumnHeaders"},{name:"ColumnMoving"},{name:"Tooltips"},{name:"Updating"},{name:"Responsive"}],scripts:[],css:[]},{widget:"igHtmlEditor",dependency:[{name:"igUtil"},{name:"igPopover"},{name:"igSplitButton"},{name:"igColorPicker"},{name:"igColorPickerSplitButton"},{name:"igCombo"},{name:"igEditors"},{name:"igToolbarButton"},{name:"igToolbar"}],scripts:["$path$/modules/infragistics.ui.htmleditor.js"],locale:["$localePath$/infragistics.ui.htmleditor-$locale$.js"],group:n.ig.loaderClass.locale.editorsGroup,css:["$path$/structure/modules/infragistics.ui.htmleditor.css"]},{widget:"igMap",dependency:[{name:"igUtil"},{name:"igTemplating"},{name:"igDataSource"},{name:"igDVCore"},{name:"igDVMapCore"}],scripts:["$path$/modules/infragistics.ui.map.js"],group:n.ig.loaderClass.locale.dvGroup,css:["$path$/structure/modules/infragistics.ui.shared.css","$path$/structure/modules/infragistics.ui.map.css"]},{widget:"igPivotShared",dependency:[{name:"igScroll"},{name:"igTree"}],scripts:["$path$/modules/infragistics.ui.pivot.shared.js"],locale:["$localePath$/infragistics.ui.pivot.shared-$locale$.js"],group:n.ig.loaderClass.locale.pivotGroup,css:["$path$/structure/modules/infragistics.ui.pivot.css"]},{widget:"igPivotGrid",dependency:[{name:"igPivotShared"},{name:"MultiColumnHeaders"}],scripts:["$path$/modules/infragistics.ui.pivotgrid.js"],locale:["$localePath$/infragistics.ui.pivotgrid-$locale$.js"],group:n.ig.loaderClass.locale.pivotGroup,css:[]},{widget:"igPivotDataSelector",dependency:[{name:"igPivotShared"},{name:"igCombo"},{name:"igTree"}],scripts:["$path$/modules/infragistics.ui.pivotdataselector.js"],locale:["$localePath$/infragistics.ui.pivotdataselector-$locale$.js"],group:n.ig.loaderClass.locale.pivotGroup,css:[]},{widget:"igPivotView",dependency:[{name:"igSplitter"},{name:"igPivotGrid"},{name:"igPivotDataSelector"}],scripts:["$path$/modules/infragistics.ui.pivotview.js"],locale:[],group:n.ig.loaderClass.locale.pivotGroup,css:[]},{widget:"igRating",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.ui.rating.js"],group:n.ig.loaderClass.locale.editorsGroup,css:["$path$/structure/modules/infragistics.ui.shared.css","$path$/structure/modules/infragistics.ui.rating.css"]},{widget:"igReportViewer",dependency:[{name:"Category"},{name:"Financial"}],scripts:["$path$/modules/infragistics.ui.reportviewer.js"],locale:["$localePath$/infragistics.ui.reportviewer-$locale$.js"],group:n.ig.loaderClass.locale.miscGroup,css:["$path$/structure/modules/infragistics.ui.reportviewer.css"]},{widget:"igScroll",scripts:["$path$/modules/infragistics.ui.scroll.js"],group:n.ig.loaderClass.locale.miscGroup,css:[]},{widget:"igShared",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.ui.shared.js"],group:n.ig.loaderClass.locale.miscGroup,css:["$path$/structure/modules/infragistics.ui.shared.css"]},{widget:"igTree",dependency:[{name:"igUtil"},{name:"igShared"},{name:"igTemplating"},{name:"igDataSource"}],scripts:["$path$/modules/infragistics.ui.tree.js"],locale:["$localePath$/infragistics.ui.tree-$locale$.js"],group:n.ig.loaderClass.locale.interactionsGroup,css:["$path$/structure/modules/infragistics.ui.tree.css"]},{widget:"igPopover",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.ui.popover.js"],locale:["$localePath$/infragistics.ui.popover-$locale$.js"],css:["$path$/structure/modules/infragistics.ui.popover.css"]},{widget:"igSplitButton",dependency:[{name:"igToolbarButton"}],scripts:["$path$/modules/infragistics.ui.splitbutton.js"],locale:[],css:["$path$/structure/modules/infragistics.ui.splitbutton.css"]},{widget:"igColorPicker",dependency:[],scripts:["$path$/modules/infragistics.ui.colorpicker.js"],locale:[],css:["$path$/structure/modules/infragistics.ui.colorpicker.css"]},{widget:"igColorPickerSplitButton",dependency:[{name:"igPopover"},{name:"igColorPicker"},{name:"igSplitButton"}],scripts:["$path$/modules/infragistics.ui.colorpickersplitbutton.js"],locale:[],css:[]},{widget:"igLayoutManager",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.ui.layoutmanager.js"],group:n.ig.loaderClass.locale.layoutGroup,css:["$path$/structure/modules/infragistics.ui.layout.css"]},{widget:"igTileManager",dependency:[{name:"igDataSource"},{name:"igTemplating"},{name:"igLayoutManager"},{name:"igSplitter"}],scripts:["$path$/modules/infragistics.ui.tilemanager.js"],group:n.ig.loaderClass.locale.layoutGroup,css:["$path$/structure/modules/infragistics.ui.tilemanager.css"]},{widget:"igUpload",dependency:[{name:"igUtil"},{name:"igShared"}],scripts:["$path$/modules/infragistics.ui.upload.js"],locale:["$localePath$/infragistics.ui.upload-$locale$.js"],group:n.ig.loaderClass.locale.interactionsGroup,css:["$path$/structure/modules/infragistics.ui.upload.css"]},{widget:"igUtil",priority:!0,scripts:["$path$/modules/infragistics.util.js"],locale:["$localePath$/infragistics.util-$locale$.js"],group:n.ig.loaderClass.locale.miscGroup,css:[]},{widget:"igValidator",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.ui.validator.js"],locale:["$localePath$/infragistics.ui.validator-$locale$.js"],group:n.ig.loaderClass.locale.miscGroup,css:["$path$/structure/modules/infragistics.ui.shared.css","$path$/structure/modules/infragistics.ui.validator.css"]},{widget:"igVideoPlayer",dependency:[{name:"igUtil"},{name:"igShared"}],scripts:["$path$/modules/infragistics.ui.videoplayer.js"],locale:["$localePath$/infragistics.ui.videoplayer-$locale$.js"],group:n.ig.loaderClass.locale.interactionsGroup,css:["$path$/structure/modules/infragistics.ui.videoplayer.css","$path$/structure/modules/infragistics.ui.html5.css"]},{widget:"igSplitter",dependency:[{name:"igUtil"}],scripts:["$path$/modules/infragistics.ui.splitter.js"],locale:["$localePath$/infragistics.ui.splitter-$locale$.js"],group:n.ig.loaderClass.locale.layoutGroup,css:["$path$/structure/modules/infragistics.ui.splitter.css"]},{widget:"igToolbarButton",dependency:[{name:"igUtil"},{name:"igShared"}],scripts:["$path$/modules/infragistics.ui.toolbarbutton.js"],locale:[],css:["$path$/structure/modules/infragistics.ui.toolbarbutton.css"]},{widget:"igToolbar",dependency:[{name:"igUtil"},{name:"igToolbarButton"}],scripts:["$path$/modules/infragistics.ui.toolbar.js"],locale:["$localePath$/infragistics.ui.toolbar-$locale$.js"],css:["$path$/structure/modules/infragistics.ui.toolbar.css"]}];n.ig.theme="infragistics";n.ig.isDocumentReady=!1;n(function(){n.ig.isDocumentReady=!0;n.ig._loader&&n.ig.loader()._notifyLoaded()});n.extend(n.ig,{loader:function(t,i,r){function o(n){typeof n=="object"&&(u=n);typeof n=="function"&&(f=n);typeof n=="string"&&(e=n)}var u,f,e;return arguments.length>0&&o(t),arguments.length>1&&o(i),arguments.length>2&&o(r),u&&(e&&(u.resources=e),f&&(u.ready=f)),n.ig._loader=n.ig.loaderClass,n.ig._loader._init(u),u||n.ig._loader.load(e,f),n.ig._loader}});n.extend(n.ig.loaderClass,{settings:{resources:null,scriptPath:"js",cssPath:"css",theme:n.ig.theme,localePath:"$path$/modules/i18n",autoDetectLocale:!1,locale:null,regional:null,preinit:null,ready:null},load:function(t,i,r){if(t||!this._themeLoaded&&this.settings.theme){!this._themeLoaded&&this.settings.theme&&(this._themeLoaded=!0,t="theme"+(t?","+t:""));this.settings.ready=i;var e=t.split(","),u={},f;for(u.callback=this._proxy(u,this._callback,[]),u.waitFireCallback=this._proxy(u,this._waitFireCallback,[]),u._noWdgtLoaded=e.length,u.loader=this,u.ready=this._proxy(this,this._notifyLoaded,[]),i&&this._callbackArray.push(i),r&&this._preinitArray.push(r),this._loadBatches.push(u),f=0;f<e.length;f++)new n.ig._loadWorkItem(this).loadWidgetResources(n.trim(e[f]),u.callback)}else{if(!i&&!r)return this;i&&this._callbackArray.push(i);r&&this._preinitArray.push(r);this._waitBatches(this._proxy(this,this._notifyLoaded,[]))}return this},preinit:function(n){return n&&this._preinitArray.push(n),this._notifyLoaded(),this},_themeLoaded:!1,_dataLog:"",_loadBatches:[],_resources:n.ig.dependencies,_init:function(n){if(n){var i=n.scriptPath,r=n.localePath,u=n.cssPath,t=n.regional,f=n.locale,e;i&&i.length>0&&(i.lastIndexOf("/")===i.length-1&&(i=i.slice(0,i.length-1)),this.settings.scriptPath=i);u&&u.length>0&&(u.lastIndexOf("/")===u.length-1&&(u=u.slice(0,u.length-1)),this.settings.cssPath=u);r&&r.length>0&&(r.lastIndexOf("/")===r.length-1&&(r=r.slice(0,r.length-1)),this.settings.localePath=r);n.theme!==undefined&&(this.settings.theme=n.theme);n.resources&&(this.settings.resources=n.resources);n.ready&&(this.settings.ready=n.ready);n.preinit&&(this.settings.preinit=n.preinit);n.autoDetectLocale!==undefined&&(this.settings.autoDetectLocale=n.autoDetectLocale);!f&&this.settings.autoDetectLocale&&(e=navigator.language||navigator.userLanguage,f=e.split("-")[0],t||(t=f));f===this._defaultLocale&&(f="");this.settings.locale=!f&&this._defaultLocale?"":f?f:"en";t||(t=n.locale);t||this._defaultLocale!=="ja"||(t="ja");t==="en"&&(t=null);this.settings.regional=t;this._initializePaths("script");this._initializePaths("css");this.settings.resources&&this.load(this.settings.resources,this.settings.ready,this.settings.preinit)}},_defaultLocale:"en",_proxy:function(n,t,i){return function(){return t.apply(n,i)}},_initializePaths:function(n){for(var r,e=this._resources.length,o=n==="script"?this.settings.scriptPath:this.settings.cssPath,s=this.settings.localePath,h=this.settings.theme,t,c=n==="script"&&this.settings.locale,l=n==="script"&&this.settings.regional,u,f,i=0;i<e;i++){if(t=n==="script"?this._resources[i].scripts:this._resources[i].css,t=t||[],c&&(u=this._resources[i].locale,u))while(u.length>0)t.unshift(u.pop().replace("$locale$",this.settings.locale));if(l&&(f=this._resources[i].regional,f))while(f.length>0)t.unshift(f.pop().replace("$regional$",this.settings.regional));for(r=0;r<t.length;r++)t[r]=t[r].replace("$localePath$",s).replace("$path$",o).replace("$theme$",h)}},_log:function(n){this._dataLog+=n.toString()+"<br/>"},log:function(){return this._dataLog},_callback:function(){this._noWdgtLoaded--;this._noWdgtLoaded<=0&&(this.ready?this.waitFireCallback():this.loader._loadBatches.pop(this))},_waitFireCallback:function(){n.ig.isDocumentReady?(this.loader._loadBatches.pop(this),this.ready()):window.setTimeout(this.loader._proxy(this,this.waitFireCallback,[]),25)},_waitBatches:function(t){this._loadBatches.length===0&&n.ig.isDocumentReady?t():window.setTimeout(this._proxy(this,this._waitBatches,[t]),25)},_preinitArray:[],_callbackArray:[],_notifyLoaded:function(){if(!(this._loadBatches.length>0)){var t=this._preinitArray,i=this._callbackArray;for(this._preinitArray.length&&(this._preinitArray=[]),this._callbackArray.length&&(this._callbackArray=[]),this.settings.regional&&typeof n.ig.setRegionalDefault=="function"&&n.ig.setRegionalDefault(this.settings.regional);t.length>0;)t.shift()();while(i.length>0)i.shift()()}},_findWidgetScriptData:function(n){var t,r=this._resources.length,i;if(n.length>3&&n.indexOf(".js")===n.length-3)return{widget:n,scripts:[this.settings.scriptPath+"/"+n],css:[]};if(n.length>4&&n.indexOf(".css")===n.length-4)return{widget:n,scripts:[],css:[this.settings.cssPath+"/"+n]};for(t=0;t<r;t++)if(i=this._resources[t],i.widget===n)return i;return null}});n.ig._loadWorkItem=function(n){this._loader=n;this._loadedCssDependencies=[];this._loadedScriptDependencies=[]};n.ig._loadWorkItem.prototype={_loadingEntities:[],_inArray:function(n,t){for(var r=t&&n?t.length:0,i=0;i<r;i++)if(n===t[i])return!0;return!1},_loadDependency:function(n,t,i){for(var f=n.dependency?n.dependency.length:0,r,u=0;u<f;u++)r=n.dependency[u].name,this._inArray(r,i==="script"?this._loadedScriptDependencies:this._loadedCssDependencies)||(this._loadFeatureItem(r,i,t),i==="script"?this._loadedScriptDependencies.push(r):this._loadedCssDependencies.push(r))},_loadFeatureItem:function(n,t,i){var r=this._loader._findWidgetScriptData(n),f,u,e,o;if(!r)throw"Resource '{0}' cannot be found. Please check that the resource name is correct.".replace("{0}",n);for(u=t==="script"?r.scripts:r.css,u=u||[],e=u.length,this._loadDependency(r,i,t),f=0;f<e;f++)o=u[f],this._queueItem(o,i,t,r.priority)},_loadFeatures:function(n,t){var r,i,u;for(r=t.indexOf("*")===t.length-1||t.length>3&&t.indexOf(".js")===t.length-3||t.length>4&&t.indexOf(".css")===t.length-4?[t]:t.split("."),u=r.length,i=0;i<u;i++)this._loadFeatureItem(r[i],n,t)},_loadAllFeatures:function(n){for(var u,s=this._loader._resources.length,f=0,t,e,o="ALL",i,r=0;r<s;r++)for(t=this._loader._resources[r],this._loadDependency(t,o,n),i=n==="script"?t.scripts:t.css,i=i||[],f=i.length,u=0;u<f;u++)e=i[u],this._queueItem(e,o,n,t.priority)},loadWidgetResources:function(n,t){this._loadingEntities[n]!==undefined?this._loadingEntities[n].call.push(t):this._loadingEntities[n]={name:n,call:[t],queue:[]};this._loadFeatures("css",n,t);this._loadFeatures("script",n,t);this._loadMonitor()},loadWidgetCss:function(n,t){this._loadFeatures("css",n,t)},loadWidgetScripts:function(n,t){this._loadFeatures("script",n,t)},loadAllScripts:function(n){this._loadAllFeatures("script",n)},loadAllCss:function(n){this._loadAllFeatures("css",n)},loadAllResources:function(n){var t="ALL";this._loadingEntities[t]={name:t,call:[n],queue:[]};this._loadAllFeatures("css",n);this._loadAllFeatures("script",n);this._loadMonitor()},_queueItem:function(n,t,i,r){this._loadingEntities[t].queue[n]||(this._loadingEntities[t].queue[n]={type:i,loaded:!1,priority:r},this._loader._log("Enqueue: "+n))},_loadScript:function(n,t){var f=this._loadingEntities[t].queue[n],i,r,u,s,h=this,e,o=!1;if(this.isLoadedScript(n))f.loading||(f.loaded=!0,this._loadMonitor());else{if(f.loading=!0,i=document.createElement("script"),r=document.documentElement,s=r.childNodes.length,i.type="text/javascript",i.src=n,e=window.navigator.userAgent.indexOf("MSIE "),e>=0&&(o=parseInt(window.navigator.userAgent.substr(e+4),10)>=10),i.async=o,i.loadingEntity=t,i.fileName=n,i.onreadystatechange=i.onload=function(){i.readyState!==undefined&&i.readyState!=="complete"&&(o||i.readyState!=="loaded")||(f.loading=!1,h._scriptLoaded(this))},r.nodeName!=="HEAD")for(u=0;u<s;u++)if(r.childNodes[u].nodeName==="HEAD"){r=r.childNodes[u];break}r.appendChild(i)}},_loadCss:function(n,t){if(!this.isLoadedCss(n)){var i=document.createElement("link"),r=document.documentElement,u,f=r.childNodes.length;if(i.type="text/css",i.rel="stylesheet",i.href=n,i.media="screen",i.loadingEntity=t,i.fileName=n,r.nodeName!=="HEAD")for(u=0;u<f;u++)if(r.childNodes[u].nodeName==="HEAD"){r=r.childNodes[u];break}r.appendChild(i)}this._loadingEntities[t].queue[n].loaded=!0;this._loadMonitor()},_scriptLoaded:function(n){var i=n.readyState,r=this._loadingEntities[n.loadingEntity],t;r&&(t=r.queue[n.fileName],t&&!t.loaded&&(!i||/loaded|complete/.test(i))&&(t.loaded=!0,this._loader._log("Loaded: "+n.fileName),this._loadMonitor()))},_isLoadedHeadElem:function(n,t){var r=document.documentElement,i,e=r.childNodes.length,u,f;if(r.nodeName!=="HEAD"){for(i=0;i<e;i++)if(r.childNodes[i].nodeName==="HEAD"){r=r.childNodes[i];break}e=r.childNodes.length}for(i=0;i<e;i++)if(u=r.childNodes[i],t==="LINK"?f=u.href:t==="SCRIPT"&&(f=u.src),f&&u.nodeName===t&&f.lastIndexOf(n)!==-1)return!0;return!1},isLoadedScript:function(n){return n&&n.length>0?this._isLoadedHeadElem(n.substring(n.lastIndexOf("/")),"SCRIPT"):!1},isLoadedCss:function(n){return n&&n.length>0?this._isLoadedHeadElem(n.substring(n.lastIndexOf("/")),"LINK"):!1},_loadMonitor:function(){var t,i,n,r,f,e,o,u;for(t in this._loadingEntities)if(this._loadingEntities.hasOwnProperty(t)){n=this._loadingEntities[t];r=!0;e=!1;o=!1;for(i in n.queue)if(n.queue.hasOwnProperty(i)&&(e=!0,f=n.queue[i],r=r&&f.loaded,!r)){f.type==="script"?this._loadScript(i,t):this._loadCss(i,t);o=f.priority;break}if(r&&e&&n.call){for(u=0;u<n.call.length;u++)n.call[u]&&n.call[u]();delete this._loadingEntities[n.name]}else if(e&&o)break}}}}(jQuery),function(n){n.ig=n.ig||{};n.ig.DataSourceLocale||(n.ig.DataSourceLocale={},n.extend(n.ig.DataSourceLocale,{locale:{invalidDataSource:"The supplied data source is invalid. It happens to be a scalar.",unknownDataSource:"Cannot determine the data source type. Please specify if it is JSON or XML data.",errorParsingArrays:"There was an error parsing the array data and applying the defined data schema: ",errorParsingJson:"There was an error parsing the JSON data and applying the defined data schema: ",errorParsingXml:"There was an error parsing the XML data and applying the defined data schema: ",errorParsingHtmlTable:"There was an error extracting the data from the HTML Table and applying the schema : ",errorExpectedTbodyParameter:"Expected a tbody or a table as a parameter.",errorTableWithIdNotFound:"The HTML Table with the following ID was not found: ",errorParsingHtmlTableNoSchema:"There was an error parsing the Table DOM: ",errorParsingJsonNoSchema:"There was an error parsing/evaluating the JSON string: ",errorParsingXmlNoSchema:"There was an error parsing the XML string: ",errorXmlSourceWithoutSchema:"The supplied data source is an xml document, but there is no defined data schema ($.IgDataSchema) ",errorUnrecognizedFilterCondition:" The filter condition that was passed was not recognized: ",errorRemoteRequest:"The remote request to fetch data has failed: ",errorSchemaMismatch:"The input data doesn't match the schema, the following field couldn't be mapped: ",errorSchemaFieldCountMismatch:"The input data doesn't match the schema in terms of number of fields. ",errorUnrecognizedResponseType:"The response type was either not set correctly, or it was not possible to detect it automatically. Please set settings.responseDataType and/or settings.responseContentType.",hierarchicalTablesNotSupported:"Tables are not supported for HierarchicalSchema",cannotBuildTemplate:"The jQuery template could not be built. There are no records present in the data source, and no columns defined.",unrecognizedCondition:"Unrecognized filtering condition in the following expression: ",fieldMismatch:"The following expression contains an invalid field or filtering condition: ",noSortingFields:"There are no fields specified. You need to specify at least one field to sort by, when calling sort().",filteringNoSchema:"There is no schema / fields specified. You need to specify a schema with field definitions and types to be able to filter the data source."}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Chart||(n.ig.Chart={},n.extend(n.ig.Chart,{locale:{seriesName:"must specify series name option when setting options.",axisName:"must specify axis name option when setting options.",invalidLabelBinding:"There is no such value for the labels to bind.",close:"Close",overview:"Overview",zoomOut:"Zoom Out",zoomIn:"Zoom In",resetZoom:"Reset Zoom"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.SharedLocale||(n.ig.SharedLocale={},n.extend(n.ig.SharedLocale,{locale:{}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Templating||(n.ig.Templating={},n.extend(n.ig.Templating,{locale:{undefinedArgument:"An error has occurred while trying to retrieve data source property: "}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Barcode||(n.ig.Barcode={locale:{aILength:"The AI should have at least 2 digits.",badFormedUCCValue:"The Data property value of the UCC barcode is not well formed. It should look like (AI)GTIN.",code39_NonNumericError:"The character '{0}' is invalid for CODE39 Data property value. The valid ones are: {1}",countryError:"Error converting Country property value code. It should be a numeric value.",emptyValueMsg:"The Data property value is empty.",encodingError:"Error in the convertion. Refer to the documentation for the valid property values.",errorMessageText:"Invalid value! Reference the documentation for the valid barcode Data property value structure.",gS1ExMaxAlphanumNumber:"The GS1 DataBar Expanded family can encode up to 41 alphanumeric characters.",gS1ExMaxNumericNumber:"The GS1 DataBar Expanded family can encode up to 74 numeric characters.",gS1Length:"The GS1 DataBar Data property value is used for GTIN - 8, 12, 13, 14 and its length should be 7, 11, 12 or 13. The last digit is reserved for a check sum.",gS1LimitedFirstChar:"GS1 DataBar Limited barcode should have 0 or 1 in the first digit. When encoding GTIN-14 data with an Indicator value greater than 1, Omnidirectional, Stacked, Stacked Omnidirectional or Truncated barcode type must be used.",i25Length:"The Interleaved2of5 barcode should have even number of digits. You can put 0 in the front of it if they are odd number.",intelligentMailLength:"The length of the Intelligent Mail barcode Data property value should be 20, 25, 29 or 31 characters - 20 digits track code (2 for barcode identifier, 3 for service type identifier, 6 or 9 for mailer identifier and 9 or 6 for serial number) and 0, 5, 9 or 11 zip code symbols.",intelligentMailSecondDigit:"The second digit should be in the range of 0-4.",invalidAI:"Invalid Application Identifier element strings. Please, ensure that the AI string in the Data property value is well formed.",invalidCharacter:"The character '{0}' is invalid for the current barcode type. The valid ones are: {1}",invalidDimension:"The barcode dimension cannot be determined because of an incorrect combination of Stretch, BarsFillMode and XDimension property values.",invalidHeight:"This number of barcode grid rows ({0}) cannot fit in such a height ({1} pixel(s)).",invalidLength:"The barcode Data property value should have {0} digit(s).",invalidPostalCode:"Invalid PostalCode value - Mode 2 encodes up to 9 digits postal code (U.S. zip code) while Mode 3 encodes up to 6 characters alpha-numeric code.",invalidPropertyValue:"The {0} property value should be in the range of {1}-{2}.",invalidVersion:"The SizeVersion propery value number does not generate enough cells to encode the data with the current encoding mode and error correction level.",invalidWidth:"This number of barcode grid columns ({0}) cannot fit in such a width ({1} pixel(s)). Check the XDimension or/and the WidthToHeightRatio property values.",invalidXDimensionValue:"The XDimension property value should be in the range of {0} to {1} for the current barcode type.",maxLength:"The length {0} of the text exceeds the maximum encodable for the current type of barcode. It could encode max {1} characters.",notSupportedEncoding:"The encoding corresponding under the {0} {1} is not supported.",pDF417InvalidRowsColumnsCombination:"The codewords (data & error correction) are more than can be encoded in symbol with a matrix {0}x{1}.",primaryMessageError:"Cannot extract the primary message from the Data property value. Refer to the documentation for its structure.",serviceClassError:"Error converting service class. It should be a numeric value.",smallSize:"Cannot fit the grid in Size({0}, {1}) with the defined Stretch settings.",unencodableCharacter:"The character '{0}' cannot be encoded.",uPCEFirstDigit:"The first UPCE digit shall always be zero by specification.",warningString:"Barcode warning: ",wrongCompactionMode:"The Data property value cannot be compacted with {0} mode.",notLoadedEncoding:"The {0} encoding is not loaded."}})}(jQuery),function(n){n.ig=n.ig||{};n.ig.Combo||(n.ig.Combo={locale:{noMatchFoundText:"No Results",dropDownButtonTitle:"Show drop-down",clearButtonTitle:"Clear value"}})}(jQuery),function(n){n.ig=n.ig||{};n.ig.Dialog||(n.ig.Dialog={locale:{closeButtonTitle:"Close",minimizeButtonTitle:"Minimize",maximizeButtonTitle:"Maximize",pinButtonTitle:"Pin",unpinButtonTitle:"Unpin",restoreButtonTitle:"Restore"}})}(jQuery),function(n){n.ig=n.ig||{};n.ig.igDoughnutChart||(n.ig.igDoughnutChart={},n.extend(n.ig.igDoughnutChart,{locale:{invalidBaseElement:" is not supported as base element. Use DIV instead."}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Editor||(n.ig.Editor={locale:{spinUpperTitle:"Increment",spinLowerTitle:"Decrement",buttonTitle:"Show list",clearTitle:"Clear value",datePickerButtonTitle:"Show calendar",updateModeUnsupportedValue:'The updateMode option supports two possible values - "onChange" and "immediate"'}})}(jQuery),function(n){n.ig=n.ig||{};n.ig.Grid||(n.ig.Grid={},n.extend(n.ig.Grid,{locale:{noSuchWidget:"No such widget loaded: ",autoGenerateColumnsNoRecords:"autoGenerateColumns is enabled, but there are no records in the data source in order to determine the columns",optionChangeNotSupported:"Changing the following option after the igGrid has been created is not supported:",optionChangeNotScrollingGrid:"The following option cannot be changed after the grid is created because your initial grid is not scrolling and full re-rendering is required:",noPrimaryKeyDefined:"There is no primary key defined for the grid. In order to use features such as Grid Editing, you will need to define a primary key.",indexOutOfRange:"The row index you have specified is out of range.",noSuchColumnDefined:"The specified column key does not match any of the defined grid columns.",columnIndexOutOfRange:"The specified column index is out of range.",recordNotFound:"The record with the specified id could not be found in the data view:",columnNotFound:"No column was found matching key:",colPrefix:"Column ",columnVirtualizationRequiresWidth:"You have virtualization / columnVirtualization set to true, but no width could be inferred for grid columns. You should set one of a) grid width, b) defaultColumnWidth, c) define width for each column",virtualizationRequiresHeight:"You have virtualization set to true which requires grid height to be set too.",colVirtualizationDenied:"columnVirtualization is applicable for fixed virtualization only",noColumnsButAutoGenerateTrue:"You have autoGenerateColumns set to false, but there are no columns defined in the grid. Please set autoGenerateColumns to true, or specify columns manually",noPrimaryKey:"the igHierarchicalGrid widget requires a primary key to be defined.",templatingEnabledButNoTemplate:"You have jQueryTemplating set to true, but there is no rowTemplate defined.",expandTooltip:"Expand Row",collapseTooltip:"Collapse Row",movingNotAllowedOrIncompatible:"Moving of the requested column could not be completed. The column was not found or the result was not compatible with the column layout."}}),n.ig.GridFiltering=n.ig.GridFiltering||{},n.extend(n.ig.GridFiltering,{locale:{startsWithNullText:"Starts with...",endsWithNullText:"Ends with...",containsNullText:"Contains...",doesNotContainNullText:"Does not contain...",equalsNullText:"Equals...",doesNotEqualNullText:"Does not equal...",greaterThanNullText:"Greater than...",lessThanNullText:"Less than...",greaterThanOrEqualToNullText:"Greater than or equal to...",lessThanOrEqualToNullText:"Less than or equal to...",onNullText:"On...",notOnNullText:"Not on...",afterNullText:"After",beforeNullText:"Before",emptyNullText:"Empty",notEmptyNullText:"Not empty",nullNullText:"Null",notNullNullText:"Not null",startsWithLabel:"Starts with",endsWithLabel:"Ends with",containsLabel:"Contains",doesNotContainLabel:"Does not contain",equalsLabel:"Equals",doesNotEqualLabel:"Does not equal",greaterThanLabel:"Greater than",lessThanLabel:"Less than",greaterThanOrEqualToLabel:"Greater than or equal to",lessThanOrEqualToLabel:"Less than or equal to",trueLabel:"True",falseLabel:"False",afterLabel:"After",beforeLabel:"Before",todayLabel:"Today",yesterdayLabel:"Yesterday",thisMonthLabel:"This month",lastMonthLabel:"Last month",nextMonthLabel:"Next month",thisYearLabel:"This year",lastYearLabel:"Last year",nextYearLabel:"Next year",clearLabel:"Clear Filter",noFilterLabel:"No",onLabel:"On",notOnLabel:"Not on",advancedButtonLabel:"Advanced",filterDialogCaptionLabel:"ADVANCED SEARCH",filterDialogConditionLabel1:"Show records matching ",filterDialogConditionLabel2:" of the following criteria",filterDialogOkLabel:"Search",filterDialogCancelLabel:"Cancel",filterDialogAnyLabel:"ANY",filterDialogAllLabel:"ALL",filterDialogAddLabel:"Add",filterDialogErrorLabel:"Maximum filters count exceeded.",filterSummaryTitleLabel:"Search results",filterSummaryTemplate:"${matches} matching records",filterDialogClearAllLabel:"Clear ALL",tooltipTemplate:"${condition} filter applied",featureChooserText:"Hide Filter",featureChooserTextHide:"Show Filter",featureChooserTextAdvancedFilter:"Advanced Filter",virtualizationSimpleFilteringNotAllowed:"When horizontal virtualization is enabled, simple filtering (filter row) is not supported. Please set mode to 'advanced' and/or do not enable advancedModeEditorsVisible",featureChooserNotReferenced:"Feature Chooser script is not referenced. To avoid receiving this error message please include the file ig.ui.grid.featurechooser.js or use loader or use one of the combined script files."}}),n.ig.GridGroupBy=n.ig.GridGroupBy||{},n.extend(n.ig.GridGroupBy,{locale:{emptyGroupByAreaContent:"Drag a column here or {0} to Group By",emptyGroupByAreaContentSelectColumns:"select columns",emptyGroupByAreaContentSelectColumnsCaption:"select columns",expandTooltip:"Expand Grouped Row",collapseTooltip:"Collapse Grouped Row",removeButtonTooltip:"Remove Grouped Column",featureChooserText:"Ungroup By",featureChooserTextHide:"Group By",modalDialogCaptionButtonDesc:"Click to sort ascending",modalDialogCaptionButtonAsc:"Click to sort descending",modalDialogCaptionButtonUngroup:"Click to ungroup",modalDialogGroupByButtonText:"Group By",modalDialogCaptionText:"Add to Group By",modalDialogDropDownLabel:"Showing:",modalDialogClearAllButtonLabel:"clear all",modalDialogRootLevelHierarchicalGrid:"root",modalDialogDropDownButtonCaption:"Click to show/hide",modalDialogButtonApplyText:"Apply",modalDialogButtonCancelText:"Cancel"}}),n.ig.GridHiding=n.ig.GridHiding||{},n.extend(n.ig.GridHiding,{locale:{columnChooserDisplayText:"Column Chooser",hiddenColumnIndicatorTooltipText:"Hidden Column(s)",columnHideText:"Hide",columnChooserCaptionLabel:"Column Chooser",columnChooserCheckboxesHeader:"view",columnChooserColumnsHeader:"column",columnChooserCloseButtonTooltip:"Close",hideColumnIconTooltip:"Hide",featureChooserNotReferenced:"Feature Chooser script is not referenced. To avoid receiving this error message please include the file ig.ui.grid.featurechooser.js or use one of the combined script files.",columnChooserShowText:"Show",columnChooserHideText:"Hide",columnChooserResetButtonLabel:"reset",columnChooserButtonApplyText:"Apply",columnChooserButtonCancelText:"Cancel"}}),n.ig.GridPaging=n.ig.GridPaging||{},n.extend(n.ig.GridPaging,{locale:{pageSizeDropDownLabel:"Show ",pageSizeDropDownTrailingLabel:"records",nextPageLabelText:"next",prevPageLabelText:"prev",firstPageLabelText:"",lastPageLabelText:"",currentPageDropDownLeadingLabel:"Pg",currentPageDropDownTrailingLabel:"of ${count}",currentPageDropDownTooltip:"Choose page index",pageSizeDropDownTooltip:"Choose number of records per page",pagerRecordsLabelTooltip:"Current records range",prevPageTooltip:"go to the previous page",nextPageTooltip:"go to the next page",firstPageTooltip:"go to the first page",lastPageTooltip:"go to the last page",pageTooltipFormat:"page ${index}",pagerRecordsLabelTemplate:"${startRecord} - ${endRecord} of ${recordCount} records"}}),n.ig.GridSelection=n.ig.GridSelection||{},n.extend(n.ig.GridSelection,{locale:{persistenceImpossible:"Persisting selection between states requires igGrid's primaryKey option to be set. To avoid receiving this error please define a primary key or disable persistence."}}),n.ig.GridRowSelectors=n.ig.GridRowSelectors||{},n.extend(n.ig.GridRowSelectors,{locale:{selectionNotLoaded:"igGridSelection is not initialized. To avoid receiving this error message please enable the Selection feature for the grid or set the requireSelection property of the Row Selectors feature to false."}}),n.ig.GridSorting=n.ig.GridSorting||{},n.extend(n.ig.GridSorting,{locale:{sortedColumnTooltipFormat:"sorted ${direction}",unsortedColumnTooltip:"click to sort column",ascending:"ascending",descending:"descending",modalDialogSortByButtonText:"sort by",modalDialogResetButton:"reset",modalDialogCaptionButtonDesc:"Click to sort descending",modalDialogCaptionButtonAsc:"Click to sort ascending",modalDialogCaptionButtonUnsort:"Click to remove sorting",featureChooserText:"Sort on Multiple",modalDialogCaptionText:"Sort Multiple",modalDialogButtonApplyText:"Apply",modalDialogButtonCancelText:"Cancel",sortingHiddenColumnNotSupport:"Sorting hidden column is not supported",featureChooserSortAsc:"Sort A to Z",featureChooserSortDesc:"Sort Z to A"}}),n.ig.GridSummaries=n.ig.GridSummaries||{},n.extend(n.ig.GridSummaries,{locale:{featureChooserText:"Hide Summaries",featureChooserTextHide:"Show Summaries",dialogButtonOKText:"OK",dialogButtonCancelText:"Cancel",emptyCellText:"",summariesHeaderButtonTooltip:"Show/hide summaries",defaultSummaryRowDisplayLabelCount:"Count",defaultSummaryRowDisplayLabelMin:"Min",defaultSummaryRowDisplayLabelMax:"Max",defaultSummaryRowDisplayLabelSum:"Sum",defaultSummaryRowDisplayLabelAvg:"Avg",defaultSummaryRowDisplayLabelCustom:"Custom",calculateSummaryColumnKeyNotSpecified:"Please specify column key to calculate summary",featureChooserNotReferenced:"Feature Chooser script is not referenced. To avoid receiving this error message please include the file ig.ui.grid.featurechooser.js or use one of the combined script files."}}),n.ig.GridUpdating=n.ig.GridUpdating||{},n.extend(n.ig.GridUpdating,{locale:{doneLabel:"Done",doneTooltip:"Stop editing and update",cancelLabel:"Cancel",cancelTooltip:"Stop editing and do not update",addRowLabel:"Add new row",addRowTooltip:"Click to start adding new row",deleteRowLabel:"",deleteRowTooltip:"Delete row",igEditorException:"The updating for ui.igGrid requires ui.igEditor to be loaded",igComboException:"In order to use the combo type for ui.igGrid, the ui.igCombo should be loaded",igRatingException:"In order to use the igRating as editor for ui.igGrid, the ui.igRating should be loaded",igValidatorException:"Validation options defined in igGridUpdating require ui.igValidator to be loaded",noPrimaryKeyException:'In order to support update operations after a row was deleted, application should define "primaryKey" in options of igGrid.',hiddenColumnValidationException:"Cannot edit row which has a hidden column with enabled validation.",dataDirtyException:'Grid has pending transactions which may affect rendering of data. To prevent exception, application may enable "autoCommit" option of igGrid, or it should process "dataDirty" event of igGridUpdating and return false. While processing that event, application also may do "commit()" data in igGrid.',rowEditDialogCaptionLabel:"Edit row data"}}),n.ig.ColumnMoving=n.ig.ColumnMoving||{},n.extend(n.ig.ColumnMoving,{locale:{movingDialogButtonApplyText:"Apply",movingDialogButtonCancelText:"Cancel",movingDialogCaptionButtonDesc:"Move Down",movingDialogCaptionButtonAsc:"Move Up",movingDialogCaptionText:"Move Columns",movingDialogDisplayText:"Move Columns",dropDownMoveLeftText:"Move Left",dropDownMoveRightText:"Move Right",dropDownMoveFirstText:"Move First",dropDownMoveLastText:"Move Last",featureChooserNotReferenced:"Feature Chooser script is not referenced. To avoid receiving this error message please include the file ig.ui.grid.featurechooser.js or use one of the combined script files.",movingToolTipMove:"Move",featureChooserSubmenuText:"Move To"}}),n.ig.ColumnFixing=n.ig.ColumnFixing||{},n.extend(n.ig.ColumnFixing,{locale:{headerFixButtonText:"Click to fix this column",headerUnfixButtonText:"Click to unfix this column",featureChooserTextFixedColumn:"Fix column",featureChooserTextUnfixedColumn:"Unfix column",groupByNotSupported:"igGridGroupBy is not supported with ColumnFixing",virtualizationNotSupported:"Virtualization is not supported with ColumnFixing",columnMovingNotSupported:"igGridColumnMoving is not supported with ColumnFixing",hidingNotSupported:"igGridHiding is not supported with ColumnFixing",hierarchicalGridNotSupported:"igHierarchicalGrid is not supported with ColumnFixing",responsiveNotSupported:"igGridResponsive is not supported with ColumnFixing",noGridWidthHeightNotSupported:"When grid hasn't width and height Column Fixing is not supported"}}),n.ig.GridLoadOnDemand=n.ig.GridLoadOnDemand||{},n.extend(n.ig.GridLoadOnDemand,{locale:{loadMoreDataButtonText:"Load more data",loadOnDemandRequiresHeight:"Load On Demand feature requires height",groupByNotSupported:"igGridGroupBy is not supported with LoadOnDemand",pagingNotSupported:"igGridPaging is not supported with LoadOnDemand",cellMergingNotSupported:"igGridCellMerging is not supported with LoadOnDemand",virtualizationNotSupported:"virtualization is not supported with LoadOnDemand"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.HtmlEditor||(n.ig.HtmlEditor={},n.extend(n.ig.HtmlEditor,{locale:{boldButtonTitle:"Bold",italicButtonTitle:"Italic",underlineButtonTitle:"Underline",strikethroughButtonTitle:"Strikethrough",increaseFontSizeButtonTitle:"Increase Font Size",decreaseFontSizeButtonTitle:"Decrease Font Size",alignTextLeftButtonTitle:"Align Text Left",alignTextRightButtonTitle:"Align Text Right",alignTextCenterButtonTitle:"Center",justifyButtonTitle:"Justify",bulletsButtonTitle:"Bullets",numberingButtonTitle:"Numbering",decreaseIndentButtonTitle:"Decrease Indent",increaseIndentButtonTitle:"Increase Indent",insertPictureButtonTitle:"Insert Picture",fontColorButtonTitle:"Font Color",textHighlightButtonTitle:"Text Highlight Color",insertLinkButtonTitle:"Insert Hyperlink",insertTableButtonTitle:"Table",addRowButtonTitle:"Add Row",removeRowButtonTitle:"Remove Row",addColumnButtonTitle:"Add Column",removeColumnButtonTitle:"Remove Column",inserHRButtonTitle:"Insert Horizontal Rule",viewSourceButtonTitle:"View Source",cutButtonTitle:"Cut",copyButtonTitle:"Copy",pasteButtonTitle:"Paste",undoButtonTitle:"Undo",redoButtonTitle:"Redo",imageUrlDialogText:"Image URL:",imageAlternativeTextDialogText:"Alternative Text:",imageWidthDialogText:"Image Width:",imageHeihgtDialogText:"Image Height:",linkNavigateToUrlDialogText:"Navigate to URL:",linkDisplayTextDialogText:"Display Text:",linkOpenInDialogText:"Open In:",linkTargetNewWindowDialogText:"New Window",linkTargetSameWindowDialogText:"Same Window",linkTargetParentWindowDialogText:"Parent Window",linkTargetTopmostWindowDialogText:"Topmost Window",applyButtonTitle:"Apply",cancelButtonTitle:"Cancel",defaultToolbars:{textToolbar:"text manipulation toolbar",formattingToolbar:"text formatting toolbar",insertObjectToolbar:"objects insertion toolbar",copyPasteToolbar:"copy/paste toolbar"},fontNames:{win:[{text:"Times New Roman",value:"Times New Roman"},{text:"Arial",value:"Arial"},{text:"Arial Black",value:"Arial Black"},{text:"Helvetica",value:"Helvetica"},{text:"Comic Sans MS",value:"Comic Sans MS"},{text:"Courier New",value:"Courier New"},{text:"Georgia",value:"Georgia"},{text:"Impact",value:"Impact"},{text:"Lucida Console",value:"Lucida Console"},{text:"Lucida Sans Unicode",value:"Lucida Sans Unicode"},{text:"Palatino Linotype",value:"Palatino Linotype"},{text:"Tahoma",value:"Tahoma"},{text:"Trebuchet MS",value:"Trebuchet MS"},{text:"Verdana",value:"Verdana"},{text:"Symbol",value:"Symbol"},{text:"Webdings",value:"Webdings"},{text:"Wingdings",value:"Wingdings"},{text:"MS Sans Serif",value:"MS Sans Serif"},{text:"MS Serif",value:"MS Serif"}],mac:[{text:"Times New Roman",value:"Times New Roman"},{text:"Arial",value:"Arial"},{text:"Arial Black",value:"Arial Black"},{text:"Helvetica",value:"Helvetica"},{text:"Comic Sans MS",value:"Comic Sans MS"},{text:"Courier New",value:"Courier New"},{text:"Georgia",value:"Georgia"},{text:"Impact",value:"Impact"},{text:"Monaco",value:"Monaco"},{text:"Lucida Grande",value:"Lucida Grande"},{text:"Book Antiqua",value:"Book Antiqua"},{text:"Geneva",value:"Geneva"},{text:"Trebuchet MS",value:"Trebuchet"},{text:"Verdana",value:"Verdana"},{text:"Symbol",value:"Symbol"},{text:"Webdings",value:"Webdings"},{text:"Zapf Dingbats",value:"Zapf Dingbats"},{text:"New York",value:"New York"}]},fontSizes:[{text:"1",value:"7.5 pt"},{text:"2",value:"10 pt"},{text:"3",value:"12 pt"},{text:"4",value:"13.5 pt"},{text:"5",value:"18 pt"},{text:"6",value:"24 pt"},{text:"7",value:"36 pt"}],formatsList:[{text:"h1",value:"Heading 1"},{text:"h2",value:"Heading 2"},{text:"h3",value:"Heading 3"},{text:"h4",value:"Heading 4"},{text:"h5",value:"Heading 5"},{text:"h6",value:"Heading 6"},{text:"p",value:"Normal"}]}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.PivotShared||(n.ig.PivotShared={},n.extend(n.ig.PivotShared,{locale:{invalidDataSource:"The passed data source either null or not supported.",measureList:"Measures",ok:"OK",cancel:"Cancel",addToMeasures:"Add to Measures",addToFilters:"Add to Filters",addToColumns:"Add to Columns",addToRows:"Add to Rows"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.PivotDataSelector||(n.ig.PivotDataSelector={},n.extend(n.ig.PivotDataSelector,{locale:{invalidBaseElement:" is not supported as base element. Use DIV instead.",catalog:"Catalog",cube:"Cube",measureGroup:"Measure Group",measureGroupAll:"(All)",rows:"Rows",columns:"Columns",measures:"Measures",filters:"Filters",deferUpdate:"Defer Update",updateLayout:"Update Layout",selectAll:"Select All"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.PivotGrid||(n.ig.PivotGrid={},n.extend(n.ig.PivotGrid,{locale:{filtersHeader:"Drop Filter Fields Here",measuresHeader:"Drop Data Items Here",rowsHeader:"Drop Row Fields Here",columnsHeader:"Drop Column Fields Here",disabledFiltersHeader:"Filter Fields",disabledMeasuresHeader:"Data Items",disabledRowsHeader:"Row Fields",disabledColumnsHeader:"Column Fields",noSuchAxis:"No such axis"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Popover||(n.ig.Popover={},n.extend(n.ig.Popover,{locale:{popoverOptionChangeNotSupported:"Changing the following option after igPopover has been initialized is not supported:",popoverShowMethodWithoutTarget:"The target parameter of the show function is mandatory when the selectors option is used"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Splitter||(n.ig.Splitter={},n.extend(n.ig.Splitter,{locale:{errorPanels:"The number of panels have to be no more than two.",errorSettingOption:"Error setting option."}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.TileManager||(n.ig.TileManager={},n.extend(n.ig.TileManager,{locale:{renderDataError:"Data was not successfully retrieved or parsed.",setOptionItemsLengthError:"The length of the items configurations does not match the number of the tiles."}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Toolbar||(n.ig.Toolbar={},n.extend(n.ig.Toolbar,{locale:{collapseButtonTitle:"Collapse",expandButtonTitle:"Expand"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Tree||(n.ig.Tree={},n.extend(n.ig.Tree,{locale:{invalidArgumentType:"Invalid argument type provided.",errorOnRequest:"An error has occurred while retrieving data: ",noDataSourceUrl:"The igTree control requires a dataSourceUrl provided in order to initiate a request for data to that URL.",incorrectPath:"A node was not found at the provided path: ",incorrectNodeObject:"The provided argument is not a jQuery node element.",setOptionError:"Runtime changes are not allowed for the following option: ",moveTo:"<strong>Move to<\/strong> {0}",moveBetween:"<strong>Move between<\/strong> {0} and {1}",moveAfter:"<strong>Move after<\/strong> {0}",moveBefore:"<strong>Move before<\/strong> {0}",copyTo:"<strong>Copy to<\/strong> {0}",copyBetween:"<strong>Copy between<\/strong> {0} and {1}",copyAfter:"<strong>Copy after<\/strong> {0}",copyBefore:"<strong>Copy before<\/strong> {0}",and:"and"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Upload||(n.ig.Upload={},n.extend(n.ig.Upload,{locale:{labelUploadButton:"Upload File",labelAddButton:"Add",labelClearAllButton:"Clear Uploaded",labelSummaryTemplate:"{0} of {1} uploaded",labelSummaryProgressBarTemplate:"{0}/{1}",labelShowDetails:"Show Details",labelHideDetails:"Hide Details",labelSummaryProgressButtonCancel:"Cancel",labelSummaryProgressButtonContinue:"Upload",labelSummaryProgressButtonDone:"Done",labelProgressBarFileNameContinue:"...",errorMessageFileSizeExceeded:"Max file size exceeded.",errorMessageGetFileStatus:"Could not get your current file status! Probably connection dropped.",errorMessageCancelUpload:"Could not send to server command to cancel upload! Probably connection dropped.",errorMessageNoSuchFile:"The file you requested could not be found. Probably this file is too big.",errorMessageOther:"There is internal error uploading file. Error code: {0}.",errorMessageValidatingFileExtension:"File extension validation failed.",errorMessageAJAXRequestFileSize:"AJAX error while trying to get file size.",errorMessageMaxUploadedFiles:"Maximum count of uploading files exceeded.",errorMessageMaxSimultaneousFiles:"Value of maxSimultaneousFilesUploads is incorrect. It should be more than 0 or null.",errorMessageTryToRemoveNonExistingFile:"You are trying to remove non-existing file with id {0}.",errorMessageTryToStartNonExistingFile:"You are trying to start non-existing file with id {0}.",titleUploadFileButtonInit:"Upload File",titleAddFileButton:"Add",titleCancelUploadButton:"Cancel",titleSummaryProgressButtonContinue:"Upload",titleClearUploaded:"Clear Uploaded",titleShowDetailsButton:"Show Details",titleHideDetailsButton:"Hide Details",titleSummaryProgressButtonCancel:"Cancel",titleSummaryProgressButtonDone:"Done",titleSingleUploadButtonContinue:"Upload",titleClearAllButton:"Clear Uploaded"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Validator||(n.ig.Validator={locale:{defaultMessage:"Please fix this field",selectMessage:"Please select a value",rangeSelectMessage:"Please select no more than {0} and not less than {1} items",minSelectMessage:"Please select at least {0} items",maxSelectMessage:"Please select no more than {0} items",rangeLengthMessage:"Please enter a value between {0} and {1} characters long",minLengthMessage:"Please enter at least {0} characters",maxLengthMessage:"Please enter no more than {0} characters",requiredMessage:"This field is required",maskMessage:"Please fill all required positions",dateFieldsMessage:"Please enter values in date fields",invalidDayMessage:"Invalid day of month. Please enter correct day",dateMessage:"Please enter a valid date",numberMessage:"Please enter a valid number",rangeMessage:"Please enter a value between {0} and {1}",minMessage:"Please enter a value greater than or equal to {0}",maxMessage:"Please enter a value less than or equal to {0}"}})}(jQuery),function(n){n.ig=n.ig||{};n.ig.VideoPlayer||(n.ig.VideoPlayer={},n.extend(n.ig.VideoPlayer,{locale:{liveStream:"Live video",live:"Live",paused:"Paused",playing:"Playing",play:"Play",volume:"Volume",unsupportedVideoSource:"The current video sources does not contain a format that is supported by your browser.",missingVideoSource:"No compatible video source.",progressLabelLongFormat:"$currentTime$ / $duration$",progressLabelShortFormat:"$currentTime$",enterFullscreen:"Go Fullscreen",exitFullscreen:"Exit Fullscreen",skipTo:"SKIP TO",unsupportedBrowser:"The current browser does not support HTML5 video. <br/>Try upgrading to any of the following versions:",currentBrowser:"Current browser: {0}",ie9:"Microsoft Internet Explorer V 9+",chrome8:"Google Chrome V 8+",firefox36:"Mozilla Firefox V 3.6+",safari5:"Apple Safari V 5+",opera11:"Opera V 11+",ieDownload:"http://www.microsoft.com/windows/internet-explorer/default.aspx",operaDownload:"http://www.opera.com/download/",chromeDownload:"http://www.google.com/chrome",firefoxDownload:"http://www.mozilla.com/",safariDownload:"http://www.apple.com/safari/download/",buffering:"Buffering...",adMessage:"Ad: Video will resume in $duration$ seconds.",adMessageLong:"Ad: Video will resume in $duration$.",adMessageNoDuration:"Ad: Video will resume after the commercial.",adNewWindowTip:"Ad: Click to open ad content in a new window.",nonDivException:"The Infragistics HTML5 Video Player can be instantiated only on a DIV tag.",relatedVideos:"RELATED VIDEOS",replayButton:"Replay",replayTooltip:"Click to replay last video."}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.Zoombar||(n.ig.Zoombar={},n.extend(n.ig.Zoombar,{locale:{zoombarTargetNotSpecified:"igZoombar requires a valid target to attach to!",zoombarTypeNotSupported:"The type of widget the Zoombar is trying to attach to is not supported!",optionChangeNotSupported:"Changing the following option after the igZoombar has been created is not supported:"}}))}(jQuery),function(n){n.ig=n.ig||{};n.ig.util||(n.ig.util={},n.extend(n.ig.util,{locale:{unsupportedBrowser:"The current browser does not support HTML5 canvas element. <br/>Try upgrading to any of the following versions:",currentBrowser:"Current browser: {0}",ie9:"Microsoft Internet Explorer V 9+",chrome8:"Google Chrome V 8+",firefox36:"Mozilla Firefox V 3.6+",safari5:"Apple Safari V 5+",opera11:"Opera V 11+",ieDownload:"http://www.microsoft.com/windows/internet-explorer/default.aspx",operaDownload:"http://www.opera.com/download/",chromeDownload:"http://www.google.com/chrome",firefoxDownload:"http://www.mozilla.com/",safariDownload:"http://www.apple.com/safari/download/"}}))}(jQuery),function(){var n=!1,t=/xyz/.test(function(){xyz()})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(i,r){function h(n,t){return function(){var r=this._super,i;return this._super=s[n],i=t.apply(this,arguments),this._super=r,i}}function f(){!n&&this.init&&this.init.apply(this,arguments)}var o=!0,s=this.prototype,e,u;r&&(o=!1);n=!0;e=new this;n=!1;for(u in i)i.hasOwnProperty(u)&&(e[u]=o&&typeof i[u]=="function"&&typeof s[u]=="function"&&t.test(i[u])?h(u,i[u]):i[u]);return f.prototype=e,f.constructor=f,f.extend=arguments.callee,r&&(f.typeName=function(){return this.prototype.$type},f.baseType=function(){return this.$type.baseType},f.prototype.getType=function(){return this.$type},f.prototype.getHashCode=function(){return this.$hashCode!==undefined?this.$hashCode:(this.$hashCode=$.ig.nextHashCode++,this.$hashCode)}),f};typeof define=="function"&&define.amd&&define.amd.jQuery&&define("ig.util",[],function(){return Class})}(),function(n){var t;n.fn.startsWith=function(n){return this[0].innerHTML.indexOf(n)===0};n.ig=n.ig||{};n.ig.util=n.ig.util||{};n.ig.util.browserVersion="";n.ig.util.isIE=window.navigator.userAgent.indexOf("MSIE")>-1||!!window.navigator.userAgent.match(/trident/i);n.ig.util.isIEOld=n.ig.util.isIE&&!window.HTMLElement?!0:!1;n.ig.util.isIE&&(navigator.appName==="Microsoft Internet Explorer"?(t=new RegExp("MSIE ([0-9]{1,})"),t.exec(navigator.userAgent)&&(n.ig.util.browserVersion=parseInt(RegExp.$1,10))):navigator.appName==="Netscape"&&(t=new RegExp("rv:([0-9]{1,})"),t.exec(navigator.userAgent)&&(n.ig.util.browserVersion=parseInt(RegExp.$1,10))),n.ig.util.isIE7=n.ig.util.browserVersion<=7,n.ig.util.isIE8=n.ig.util.browserVersion===8,n.ig.util.isIE9=n.ig.util.browserVersion===9,n.ig.util.isIE10=n.ig.util.browserVersion===10,n.ig.util.isIE11=n.ig.util.browserVersion>=11);n.ig.util.isChrome=window.chrome;n.ig.util.isFF=window.mozInnerScreenX!==undefined;n.ig.util.isOpera=!!window.opera;n.ig.util.isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0?!0:!1;n.ig.util.isWebKit=!!window.webkitURL;n.ajaxQueue=function(t,i){var r;(typeof document.ajaxQueue=="undefined"&&(document.ajaxQueue={queue:{}}),typeof document.ajaxQueue.queue[t]=="undefined"&&(document.ajaxQueue.queue[t]=[]),typeof i!="undefined")&&(r=i.complete,i.complete=function(i,u){document.ajaxQueue.queue[t].shift();typeof r!="undefined"&&r(i,u);document.ajaxQueue.queue[t].length>0&&n.ajax(document.ajaxQueue.queue[t][0])},document.ajaxQueue.queue[t].push(i),document.ajaxQueue.queue[t].length===1&&n.ajax(document.ajaxQueue.queue[t][0]))};typeof n.ig.useDefineProperty=="undefined"&&(n.ig.useDefineProperty=!0);n.ig.extendNativePrototype=function(t,i,r){if(n.ig.useDefineProperty)try{Object.defineProperty(t,i,{value:r,enumerable:!1,configurable:!0,writable:!0})}catch(u){t[i]=r}else t[i]=r};Date.prototype.stdTimezoneOffset=function(){var i,r,n,t;return i=new Date(this.getFullYear(),0,1),r=new Date(this.getFullYear(),6,1),t=r.getTimezoneOffset(),n=i.getTimezoneOffset(),n>0&&t>0?Math.max(n,t):Math.min(n,t)};Date.prototype.dst=function(){return this.getTimezoneOffset()<this.stdTimezoneOffset()};n.ig.findPath=function(n,t){var r,u=n;if(r=t.split("."),r.length>0)for(i=0;i<r.length;i++)if(u)u=u[r[i]];else break;return u};n.ig.formatter=function(t,i,r,u,f,e){var k,a,w,h,s,v,nt,ut,o,y,ft,b,d,et,tt,st,ht,it,rt,g,l,p=t&&t.getTime,c=n.ig.regional.defaults,ot,ct=e||"inline-block";if(r==="checkbox"&&u)return s='<span style="width:100%;display:'+ct+';overflow:hidden;text-align:center;">',s+='<span class="ui-state-default ui-corner-all ui-igcheckbox-small" style="display:inline-block">',s+='<span style="display:block" class="'+(t?"":"ui-igcheckbox-small-off "),s+'ui-icon ui-icon-check ui-igcheckbox-small-on"><\/span><\/span><\/span>';if(!t&&t!==0&&t!==!1)return"&nbsp;";if(i==="date"||p)return t?p?(o=c[r&&r!=="null"&&r!=="undefined"?r+"Pattern":"datePattern"]||r,f?(a=t.getUTCFullYear(),h=t.getUTCMonth()+1,p=t.getUTCDate(),w=t.getUTCHours(),k=t.getUTCMinutes(),s=t.getUTCSeconds(),v=t.getUTCMilliseconds()):(a=t.getFullYear(),h=t.getMonth()+1,p=t.getDate(),w=t.getHours(),k=t.getMinutes(),s=t.getSeconds(),v=t.getMilliseconds()),o=o.replace("MMMM","\x01").replace("MMM","\x02").replace("dddd","\x03").replace("ddd","\x04"),o.indexOf("t")>=0&&(nt=w>=12?c.pm:c.am,nt=nt||" ",o.indexOf("tt")>=0?o=o.replace("tt","t"):nt.length>1&&(nt=nt.substring(0,1)),o=o.replace("t","\x05")),o.indexOf("h")>=0&&(w>12&&(w-=12),w===0&&(w=12)),o=o.replace(/H/g,"h"),o=o.replace("yyyy",a<10?"000"+a:a<100?"00"+a:a<1e3?"0"+a:a).replace("yy",(a=a%100)<10?"0"+a:a).replace("y",a%100).replace("MM",h<10?"0"+h:h).replace("M",h),o=o.replace("dd",p<10?"0"+p:p).replace("d",p),o=o.replace("hh",w<10?"0"+w:w).replace("h",w).replace("mm",k<10?"0"+k:k).replace("m",k).replace("ss",s<10?"0"+s:s).replace("s",s),o=o.replace("fff",v<10?"00"+v:v<100?"0"+v:v).replace("ff",(v=Math.round(v/10))<10?"0"+v:v).replace("f",Math.round(v/100)),o=o.replace("\x01",c.monthNames[h-1]).replace("\x02",c.monthNamesShort[h-1]).replace("\x05",nt),o.replace("\x03",c.dayNames[t.getDay()]).replace("\x04",c.dayNamesShort[t.getDay()])):t:"&nbsp;";if(p=r==="double",p||(it=r===(st="currency"),it||(rt=r===(ht="percent"),rt||(l=r==="int"))),ft=typeof t=="number",p||ft||l||it||rt||i==="number"){if(ft||(t=parseFloat(t.replace("(","-").replace(new RegExp("[^0-9\\-eE\\"+c.numericDecimalSeparator+"\\+]","gm"),"").replace(c.numericDecimalSeparator,"."))),isNaN(t))return"&nbsp;";if(g=it?st:rt?ht:"numeric",o=c[g+(t<0?"Negative":"Positive")+"Pattern"]||"n",y=r?r.length:0,y>0&&((s=r.charAt(0))==="0"||s==="#")){if(k=h=0,b=r.indexOf("."),b>0)for(h=y-1-b;++b<y;){if(r.charAt(b)!=="0")break;k++}}else k=c[g+"MinDecimals"]||0,p?h=999:(h=c[g+"MaxDecimals"],h=h&&!l?h:0);for(t<0&&(t=-t),h===999?t=t.toString(10):n.ig.util.isIE&&n.ig.util.browserVersion<=8?(ot=Math.pow(10,h),t=(Math.round(ot*t)/ot).toFixed(h)):t=t.toFixed(h),(l=t.indexOf("E"))<0&&(l=t.indexOf("e")),ut="",l>0&&(ut=t.substring(l),t=t.substring(0,l)),b=t.indexOf("."),y=t.length,l=0;b>0&&h>k+l&&t.charAt(y-1-l)==="0";)l++;for(l>0&&(t=t.substring(0,y-=l)),b===y-1&&(t=t.substring(0,b)),b>0&&(y=b),s=c[g+"DecimalSeparator"],s&&(t=t.replace(".",s)),s=c[g+"GroupSeparator"],tt=s?c[g+"Groups"]:"",d=et=tt.length>0?tt[l=0]:0;d>0&&--y>0;)--d==0&&(t=t.substring(0,y)+s+t.substring(y),d=tt[++l],!d||d<1?d=et:et=d);return s=c[g+"Symbol"]||"",o.replace("-",c.negativeSign).replace("n",t+ut).replace("$",s)}return r&&(r.indexOf(s="{0}")>=0||r.indexOf(s="[0]")>=0)?r.replace(s,t):t||t===0?t:"&nbsp;"};n.ig._regional={monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],am:"AM",pm:"PM",datePattern:"M/d/yyyy",dateLongPattern:"dddd, MMMM dd, yyyy",dateTimePattern:"M/d/yyyy h:mm tt",timePattern:"h:mm tt",timeLongPattern:"h:mm:ss tt",negativeSign:"-",numericNegativePattern:"-$n",numericDecimalSeparator:".",numericGroupSeparator:",",numericGroups:[3],numericMaxDecimals:2,numericMinDecimals:0,currencyPositivePattern:"$n",currencyNegativePattern:"$(n)",currencySymbol:"$",currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroups:[3],currencyMaxDecimals:2,currencyMinDecimals:2,percentPositivePattern:"n$",percentNegativePattern:"-n$",percentSymbol:"%",percentDecimalSeparator:".",percentGroupSeparator:",",percentGroups:[3],percentDisplayFactor:100,percentMaxDecimals:2,percentMinDecimals:2};n.ig.regional=n.ig.regional||{};n.ig.regional.defaults=n.ig._regional;n.ig.setRegionalDefault=function(t){n.ui&&n.ui.igEditor?n.ui.igEditor.setDefaultCulture(t):n.ig.regional.defaults=n.extend(n.ig._regional,typeof t=="string"?n.ig.regional[t]:t)};n.ig.calcSummaries=function(summaryFunction,data,caller,dataType){var sum=function(n){for(var i=0,t=0;t<n.length;t++)i+=n[t];return i};summaryFunction=summaryFunction.toLowerCase();summaryFunction.startsWith("custom")&&(summaryFunction="custom");switch(summaryFunction){case"min":return data.length===0?dataType==="date"?null:0:Math.min.apply(Math,data);case"max":return data.length===0?dataType==="date"?null:0:Math.max.apply(Math,data);case"sum":return sum(data);case"avg":return data.length===0?0:sum(data)/data.length;case"count":return data.length;case"custom":if(caller!==undefined&&caller!==null){if(n.type(caller)==="function")return caller(data);if(n.type(caller)==="string")return caller=eval(caller),caller(data)}else return null}};n.ig.getMaxZIndex=function(t){var i=1e4,r;return n(".ui-dialog").each(function(){t&&n(this)[0].id===t||(r=n(this).css("z-index"),isNaN(r)||(i=Math.max(i,r)))}),i};n.ig.uid=function(){return((1+Math.random())*parseInt("10000",16)).toString(16).substring(1,5)};n.ig.nextHashCode=0;n.ig.util.ensureUniqueId=function(t){if(!t.getHashCode){var i=n.ig.nextHashCode++;t.getHashCode=function(){return i}}};n.ig.getColType=function(n){var t=typeof n;return t==="undefined"?"string":n&&n.getTime&&!isNaN(n.getTime())&&Object.prototype.toString.call(n)==="[object Date]"?"date":t==="boolean"?"bool":t==="number"?t:t==="object"?"object":"string"};n.ig.typeIdentifierCache={};n.ig.nextTypeIdentifier=0;n.ig.Type=Class.extend({init:function(t,i,r){this.specializationCache={};this.name=t;this.typeArguments=null;this.baseType=null;this.interfaces=null;i&&(this.baseType=i);r&&(this.interfaces=r);n.ig.typeIdentifierCache[t]?this.identifier=n.ig.typeIdentifierCache[t]:(this.identifier=n.ig.nextTypeIdentifier++,n.ig.typeIdentifierCache[t]=this.identifier)},typeName:function(){return this.name},getSpecId:function(n){var i,t,r;if(n.length===1)return n[0]?n[0].typeName?n[0].stringId?n[0].stringId:n[0].identifier.toString():n[0].toString():"undef";for(i="",t=0;t<n.length;t++)r=n[t],i+=n[0]?n[0].typeName?n[0].stringId?n[0].stringId:n[0].identifier.toString():n[0].toString():"undef";return i},_isGenericType:null,isGenericType:function(){return this._isGenericType===null&&(this._isGenericType=this.name.indexOf("$")>=0),this._isGenericType},isGenericTypeDefinition:function(){return this.typeArguments===null&&this.isGenericType()},genericTypeArguments:function(){return this.typeArguments},specializationCache:null,specialize:function(){var t,u,i,r,f;if(!this.isGenericType())return this;if(u=this.getSpecId(arguments),i=this.specializationCache[u],i)return i;if(i=new n.ig.Type(this.name,this.baseType,this.interfaces),r=this.typeArguments,f=!1,r&&(f=!0),i.typeArguments=[],f)for(t=0;t<r.length;t++)i.typeArguments[t]=arguments[r[t]];else for(t=0;t<arguments.length;t++)i.typeArguments[t]=arguments[t];if(this.baseType&&this.baseType.typeArguments&&(i.baseType=this.baseType.specialize(arguments)),this.interfaces)for(i.interfaces=[],t=0;t<this.interfaces.length;t++)i.interfaces[t]=this.interfaces[t].specialize(arguments);return this.specializationCache[u]=i,i.stringId=i.generateString(),i},equals:function(t){if(!(t instanceof n.ig.Type)||this.identifier!==t.identifier)return!1;if(this.typeArguments===null&&t.typeArguments===null)return!0;if(this.typeArguments===null&&t.typeArguments!==null||this.typeArguments!==null&&t.typeArguments===null||this.typeArguments.length!==t.typeArguments.length)return!1;for(var i=0;i<this.typeArguments.Length;i++)if(!this.typeArguments[i].equals(t.typeArguements[i]))return!1;return!0},checkEquals:function(t,i){return t instanceof n.ig.Type?t.equals(i):i instanceof n.ig.Type?i.equals(t):t==i},op_Equality:function(n){return n.equals(other)},op_Inequality:function(n,t){return!n.equals(t)},generateString:function(){var n,i,t;if(this.typeArguments&&this.typeArguments.length){for(n=this.identifier.toString()+"[",i=!0,t=0;t<this.typeArguments.count;t++)i?i=!1:n+=",",n+=this.typeArguments[t].toString();return n+"]"}return this.identifier.toString()}},!0);n.ig.Object=Class.extend({init:function(){},$type:new n.ig.Type("Object")},!0);n.ig.$o=n.ig.Object;n.ig.$op=n.ig.Object.prototype;n.ig.$ot=n.ig.Object.prototype.$type;n.ig.Enum=Class.extend({parse:function(t,i,r){var u,e,f;if(n.ig.util.canAssign(this.$type,t)){if(u=n.ig[t.name].prototype,u.hasOwnProperty(i))return u[i];if(r){e=i.toUpperCase();for(f in u)if(f.toUpperCase()===e)return u[f]}}},$type:new n.ig.Type("Enum",n.ig.Object.prototype.$type)},!0);n.ig.$e=n.ig.Enum;n.ig.$ep=n.ig.Enum.prototype;n.ig.$et=n.ig.Enum.prototype.$type;n.ig.ValueType=Class.extend({init:function(){},$type:new n.ig.Type("ValueType",n.ig.Object.prototype.$type)},!0);n.ig.INotifyPropertyChanged=Class.extend({init:function(){},_PropertyChanged:function(){},$type:new n.ig.Type("INotifyPropertyChanged")},!0);n.ig.PropertyChangedEventArgs=n.ig.Object.extend({init:function(n){this._propertyName=n},_propertyName:null,propertyName:function(n){if(arguments.length===0)return this._propertyName;this._propertyName=n},$type:new n.ig.Type("PropertyChangedEventArgs",n.ig.Object.$type)},!0);n.ig.XmlNodeType=Class.extend({_Attribute:2,_CDATA:4,_Comment:8,_Document:9,_DocumentFragment:11,_DocumentType:10,_Element:1,_Entity:6,_EntityReference:5,_Notation:12,_ProcessingInstruction:7,_Text:3,element:1,attribute:2,text:3,cDATA:4,entityReference:5,entity:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},!0);n.ig.XmlDocumentParser=Class.extend({parse:function(n){var r,i,t,u;if(window.DOMParser)try{return u=new DOMParser,u.parseFromString(n,"text/xml")}catch(f){}else for(r=["Msxml2.DOMDocument.3.0","Msxml2.DOMDocument"],i=0;i<r.length;i++)try{return t=new ActiveXObject(progIDs[i]),t.async=!1,t.loadXML(n),t.setProperty("SelectionLanguage","XPath"),t}catch(f){}return null}},!0);n.ig.Array=Array;n.ig.extendNativePrototype(Array.prototype,"add",function(n){this[this.length]=n});n.ig.addToArray=function(n,t){n[n.length]=t};n.ig.indexInArray=function(n,t){for(var i=0;i<n.length;i++)if(n[i]==t)return i;return-1};n.ig.arrayContains=function(n,t){var i=n.indexOf(t);return i>=0};n.ig.extendNativePrototype(Array.prototype,"indexOf",function(n){for(var t=0;t<this.length;t++)if(this[t]==n)return t;return-1});n.ig.extendNativePrototype(Array.prototype,"copy",function(n,t,r,u,f){for(i=0;i<f;i++)r[u+i]=n[t+i]});n.ig.removeFromArray=function(n,t,i){var r=n.slice((i||t)+1||n.length);return n.length=t<0?n.length+t:t,n.push.apply(n,r)};n.ig.extendNativePrototype(Array.prototype,"contains",function(n){var t=this.indexOf(n);return t>=0});n.ig.extendNativePrototype(Array.prototype,"insert",function(n,t){this.splice(n,0,t)});n.ig.extendNativePrototype(Array.prototype,"removeAt",function(n){this.splice(n,1)});n.ig.extendNativePrototype(Array.prototype,"removeItem",function(n){var t=this.indexOf(n);return t>=0?(this.splice(t,1),!0):!1});n.ig.extendNativePrototype(Array.prototype,"getEnumerator",function(){return new n.ig.ArrayEnumerator(this)});n.ig.extendNativePrototype(Array.prototype,"count",function(){return this.length});n.ig.extendNativePrototype(Array.prototype,"item",function(n,t){return arguments.length===2?(this[n]=t,t):this[n]});n.ig.extendNativePrototype(Array.prototype,"getLength",function(n){return n===0?this.length:this.dimensionLength[n-1]});n.ig.extendNativePrototype(Array.prototype,"clear",function(){this.length=0});n.ig.extendNativePrototype(Array.prototype,"resize",function(){this.length=0});n.ig.ArrayEnumerator=Class.extend({init:function(n){this._array=n;this._index=-1},current:function(){return this._array[this._index]},moveNext:function(){return this._index++,this._index<this._array.length},reset:function(){this._index=-1}},!0);n.ig.Date=Class.extend({init:function(){},$type:new n.ig.Type("Date",n.ig.Object.$type)},!0);n.ig.Date.prototype.now=function(){return new Date};n.ig.Date.prototype.minValue=function(){return new Date(1,1,1,0,0,0,0)};n.ig.Date.prototype.maxValue=function(){return new Date(9999,12,31,23,59,59,.9999999)};n.ig.Date.prototype.fromMilliseconds=function(n){return n};n.ig.util.canAssign=function(t,i){if(n.ig.Type.prototype.checkEquals(t,i))return!0;if(i.interfaces)for(var r=0;r<i.interfaces.length;r++)if(n.ig.util.canAssign(t,i.interfaces[r]))return!0;return i.baseType?n.ig.util.canAssign(t,i.baseType):!1};n.ig.util.cast=function(t,i){if(i===undefined||i===null)return null;var r=i;return i.$type&&(r=i.$type),n.ig.util.canAssign(t,r)?i:null};n.ig.Dictionary=Class.extend({init:function(){this.proxy={};this.keysHolder=this.proxy;this._count=0},$type:new n.ig.Type("Dictionary",n.ig.Object.prototype.$type),proxy:null},!0);n.ig.Dictionary.prototype.getDictionary=function(t){var i=new n.ig.Dictionary;return i.proxy=t,i.keysHolder=t,i};n.ig.Dictionary.prototype.containsKey=function(n){return this.proxy[n]!==undefined};n.ig.Dictionary.prototype.count=function(){return this._count};n.ig.Dictionary.prototype.item=function(n,t){if(arguments.length===1)return this.proxy[n];this.proxy[n]||this._count++;this.proxy[n]=t};n.ig.Dictionary.prototype.add=function(n,t){this.proxy[n]||this._count++;this.proxy[n]=t};n.ig.Dictionary.prototype.remove=function(n){delete this.proxy[n];this._count--};n.ig.Dictionary.prototype.keys=function(){return new n.ig.KeyEnumerator(this)};n.ig.Dictionary.prototype.values=function(){return new n.ig.ValueEnumerator(this)};n.ig.Dictionary.prototype.clear=function(){this.proxy={};this.keysHolder=this.proxy;this._count=0};n.ig.EventArgs=n.ig.Object.extend({init:function(){}},!0);n.ig.String=Class.extend({$type:new n.ig.Type("String",n.ig.Object.prototype.$type)},!0);n.ig.String.prototype.isDigit=function(n,t){t=t||0;var i=n.charAt(t);return i>="0"&&i<="9"?!0:!1};n.ig.Number=Class.extend({$type:new n.ig.Type("Number",n.ig.Object.prototype.$type)},!0);n.ig.Number.prototype.parseInt=function(n,t){return parseInt(n,t)};n.ig.Number.prototype.log10=function(n){return Math.log(n)/Math.log(10)};n.ig.Single=Class.extend({},!0);n.ig.Single.prototype.parseFloat=function(n){return parseFloat(n)};n.ig.Single.prototype.isInfinity=function(n){return n===Infinity||n===-Infinity};n.ig.Int32=Class.extend({$type:new n.ig.Type("Int32",n.ig.Object.prototype.$type)},!0);n.ig.Double=Class.extend({$type:new n.ig.Type("Double",n.ig.Object.prototype.$type)},!0);n.ig.Delegate=Class.extend({$type:new n.ig.Type("Delegate",n.ig.Object.prototype.$type)},!0);n.ig.Delegate.prototype.combine=function(n,t){if(!n)return t;if(!t)return n;var i=function(){return n.apply(null,arguments),t.apply(null,arguments)};return i.enumerate=function(i){n&&(n.enumerate?n.enumerate(i):i.push(n));t&&(t.enumerate?t.enumerate(i):i.push(t))},i};n.ig.Delegate.prototype.remove=function(t,i){var r,f,u;if(!t)return null;if(!i)return t;for(r=[],f=null,t.enumerate?t.enumerate(r):r.push(t),u=0;u<r.length;u++)i.original&&r[u].original==i.original&&r[u].target==i.target||r[u]!=i&&(f=n.ig.Delegate.prototype.combine(f,r[u]));return f};n.ig.ReflectionUtil=Class.extend({$type:new n.ig.Type("ReflectionUtil",n.ig.Object.prototype.$type)},!0);n.ig.ReflectionUtil.prototype.getPropertyGetter=function(n,t){return typeof n.prototype[t]=="function"?function(i){return n.prototype[t].apply(i,arguments)}:function(n){return n[t]}};n.ig.IEnumerable=Class.extend({$type:new n.ig.Type("IEnumerable",null)},!0);n.ig.IEnumerator=Class.extend({$type:new n.ig.Type("IEnumerator",null)},!0);n.ig.IEqualityComparer$1=Class.extend({$type:new n.ig.Type("IEqualityComparer",n.ig.Object.prototype.$type)},!0);n.ig.IList=Class.extend({$type:new n.ig.Type("IList",null,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.Error=Class.extend({init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.__message=null;this.__innerException=null},init1:function(n,t){this.__message=t},init2:function(n,t,i){this.__message=t;this.__innerException=i},$type:new n.ig.Type("Error",n.ig.Object.prototype.$type)},!0);n.ig.Error.prototype.message=function(){return this.__message};n.ig.Error.prototype.innerException=function(){return this.__innerException};n.ig.IDictionary=Class.extend({$type:new n.ig.Type("IDictionary",null)},!0);n.ig.ValueEnumerator=Class.extend({init:function(n){this._dict=n;this._index=-1;this._count=0;this._values=[];for(var t in this._dict.proxy)this._values[this._count]=this._dict.proxy[t],this._count++},current:function(){return this._values[this._index]},moveNext:function(){return this._index++,this._index<this._count},reset:function(){this._index=-1},getEnumerator:function(){return this.reset(),this},$type:new n.ig.Type("ValueEnumerator",n.ig.Object.prototype.$type,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.KeyEnumerator=Class.extend({init:function(n){this._dict=n;this._index=-1;this._count=0;this._keys=[];for(var t in this._dict.proxy)this._keys[this._count]=t,this._count++},current:function(){return this._keys[this._index]},moveNext:function(){return this._index++,this._index<this._count},reset:function(){this._index=-1},getEnumerator:function(){return this.reset(),this},$type:new n.ig.Type("KeyEnumerator",n.ig.Object.prototype.$type,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.intDivide=function(n,t){var i=n/t;return i>=0?Math.floor(i):Math.ceil(i)};n.ig.Nullable=Class.extend({getUnderlyingType:function(t){return t.isGenericType!==undefined&&t.isGenericType()&&!t.isGenericTypeDefinition()&&n.ig.Nullable$1.prototype.$type.typeName()==t.typeName()?t.genericTypeArguments()[0]:null},$type:new n.ig.Type("Nullable",n.ig.Object.prototype.$type)},!0);n.ig.Nullable$1=Class.extend({$t:null,init:function(t,i){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.Object.prototype.init.call(this);i!==undefined&&(this._value=i)},hasValue:function(){return this._value!==null},_value:null,value:function(n){if(arguments.length===1)this._value=n;else return this._value},getValueOrDefault:function(){return this.hasValue()?this._value:getDefaultValue()},getDefaultValue:function(){return n.ig.util.canAssign(n.ig.Number.prototype.$type,$t)?0:n.ig.util.canAssign(n.ig.Boolean.prototype.$type,$t)?!1:null},getValueOrDefault1:function(n){return this.hasValue()?this._value:n},isNullable:!0,$type:new n.ig.Type("Nullable$1",n.ig.Object.prototype.$type)},!0);n.ig.util.toNullable=function(t,i){if(i&&i.isNullable)return i;return new n.ig.Nullable$1(t,i)};n.ig.util.nullableAdd=function(t,i){if(t.isNullable&&!t.hasValue()||i.isNullable&&!i.hasValue())return null;var r=t,u=i;return t.isNullable&&(r=t.value()),i.isNullable&&(u=i.value()),n.ig.util.toNullable(n.ig.Number.prototype.$type,r+u)};n.ig.util.nullableSubtract=function(t,i){if(t.isNullable&&!t.hasValue()||i.isNullable&&!i.hasValue())return null;var r=t,u=i;return t.isNullable&&(r=t.value()),i.isNullable&&(u=i.value()),n.ig.util.toNullable(n.ig.Number.prototype.$type,r-u)};n.ig.util.nullableMultiply=function(t,i){if(t.isNullable&&!t.hasValue()||i.isNullable&&!i.hasValue())return null;var r=t,u=i;return t.isNullable&&(r=t.value()),i.isNullable&&(u=i.value()),n.ig.util.toNullable(n.ig.Number.prototype.$type,r*u)};n.ig.util.nullableDivide=function(t,i){if(t.isNullable&&!t.hasValue()||i.isNullable&&!i.hasValue())return null;var r=t,u=i;return t.isNullable&&(r=t.value()),i.isNullable&&(u=i.value()),n.ig.util.toNullable(n.ig.Number.prototype.$type,r/u)};n.ig.util.nullableModulus=function(t,i){if(t.isNullable&&!t.hasValue()||i.isNullable&&!i.hasValue())return null;var r=t,u=i;return t.isNullable&&(r=t.value()),i.isNullable&&(u=i.value()),n.ig.util.toNullable(n.ig.Number.prototype.$type,r%u)};n.ig.util.nullableGreaterThan=function(n,t){if(n.isNullable&&!n.hasValue()||t.isNullable&&!t.hasValue())return!1;var i=n,r=t;return n.isNullable&&(i=n.value()),t.isNullable&&(r=t.value()),i>r};n.ig.util.nullableGreaterThanOrEqual=function(n,t){if(n.isNullable&&!n.hasValue()||t.isNullable&&!t.hasValue())return!1;var i=n,r=t;return n.isNullable&&(i=n.value()),t.isNullable&&(r=t.value()),i>=r};n.ig.util.nullableLessThan=function(n,t){if(n.isNullable&&!n.hasValue()||t.isNullable&&!t.hasValue())return!1;var i=n,r=t;return n.isNullable&&(i=n.value()),t.isNullable&&(r=t.value()),i<r};n.ig.util.nullableLessThanOrEqual=function(n,t){if(n.isNullable&&!n.hasValue()||t.isNullable&&!t.hasValue())return!1;var i=n,r=t;return n.isNullable&&(i=n.value()),t.isNullable&&(r=t.value()),i<=r};n.ig.util.nullableEquals=function(n,t){var u=n===undefined||n===null||n.IsNullable&&!n.hasValue(),f=t===undefined||t===null||t.IsNullable&&!t.hasValue(),i,r;return u&&f?!0:u!=f?!1:(i=n,r=t,n.isNullable&&(i=n.value()),t.isNullable&&(r=t.value()),i==r)};n.ig.util.nullableNotEquals=function(t,i){return!n.ig.util.nullableEquals(t,i)};n.ig.util.wellKnownColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};n.ig.util.stringToColor=function(t){var i={a:255,r:0,g:0,b:0},u=t.replace(" ","").toLowerCase(),r;return u==="transparent"?{a:0,r:0,g:0,b:0}:(n.ig.util.wellKnownColors[u]!==undefined&&(t=n.ig.util.wellKnownColors[u]),t.lastIndexOf("rgba",0)===0?(t=t.replace("rgba","").replace(" ","").replace("(","").replace(")",""),r=t.split(","),i.r=parseInt(r[0],10),i.g=parseInt(r[1],10),i.b=parseInt(r[2],10),i.a=parseFloat(r[3])*255):t.lastIndexOf("rgb",0)===0?(t=t.replace("rgb","").replace(" ","").replace("(","").replace(")",""),r=t.split(","),i.r=parseInt(r[0],10),i.g=parseInt(r[1],10),i.b=parseInt(r[2],10)):(t=t.replace("#","").replace(" ",""),t.length===6?(i.r=parseInt(t.substr(0,2),16),i.g=parseInt(t.substr(2,2),16),i.b=parseInt(t.substr(4,2),16)):t.length===3&&(i.r=parseInt(t.substr(0,1)+t.substr(0,1),16),i.g=parseInt(t.substr(1,1)+t.substr(1,1),16),i.b=parseInt(t.substr(2,1)+t.substr(2,1),16))),i)};n.ig.util.isResponseTypeSupported=function(n){var t=null;try{t=new XMLHttpRequest;t.open("GET","/");t.responseType=n}catch(i){return!1}return t===null?!1:t.responseType===n};n.ig.util.getBinary=function(t,i,r){var f,o,u,s=!1,e=n.ig.util.isResponseTypeSupported("arraybuffer")&&typeof Uint8Array!="undefined";if(typeof XMLHttpRequest=="undefined"){try{u=ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(h){}try{u=ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(h){}u=new ActiveXObject("Microsoft.XMLHTTP")}else u=new XMLHttpRequest;e||(u.overrideMimeType?u.overrideMimeType("text/plain; charset=x-user-defined"):typeof VBArray!="undefined"&&(s=!0));u.onreadystatechange=function(){if(u.readyState==4)if(u.status==200)if(e)i(new Uint8Array(this.response));else if(s){f=new VBArray(u.responseBody).toArray();for(var n=0;n<f.length;n++)f[n]=String.fromCharCode(f[n]);o=f.join("");i(o)}else i(u.responseText);else r(u.error)};u.open("GET",t,!0);e&&(u.responseType="arraybuffer");u.send(null)};n.ig.util.extCopy=function(t,i){var r,e,u,o,f;if(typeof t!="undefined"&&t)for(e=0;e<i.length;e++)for(o=i[e][0],f=i[e][1],u=0;u<o.length;u++)for(r=0;r<f.length;r++)typeof o[u]!="undefined"&&o[u]&&typeof f[r]!="undefined"&&f[r]&&n.ig.extendNativePrototype(o[u].prototype,f[r],t.prototype[f[r]])};n.ig.$currDefinitions=null;n.ig.$allDefinitions=[];n.ig.util.bulkDefine=function(t){for(var u=0,i=null,r=null,u=0;u<t.length;u++)i=t[u],r=i.split(":"),i=r[0],n.ig[i]=n.ig[i]||Class.extend({$type:new n.ig.Type(i,n.ig.Object.prototype.$type),$placeholder:!0},!0),r.length>1&&n.ig.$currDefinitions&&(n.ig.$currDefinitions[r[1]]=n.ig[i],n.ig.$currDefinitions["$"+r[1]]=n.ig[i].prototype,n.ig.$currDefinitions["$_"+i]=r[1]),n.ig.$allDefinitions&&n.ig.$allDefinitions.indexOf(n.ig.$currDefinitions)<0&&n.ig.$allDefinitions.push(n.ig.$currDefinitions)};n.ig.util.defType=function(t,i,r){var s=!0,u=null,e,f,o;if(u=t.split(":"),t=u[0],n.ig[t]&&!n.ig[t].prototype.$placeholder&&(s=!1),s&&(n.ig[t]=n.ig[i].extend(r)),u.length>1&&n.ig.$currDefinitions&&(n.ig.$currDefinitions[u[1]]=n.ig[t],n.ig.$currDefinitions["$"+u[1]]=n.ig[t].prototype,n.ig.$currDefinitions["$_"+t]=u[1],n.ig.$allDefinitions))for(e=0;e<n.ig.$allDefinitions.length;e++)f=n.ig.$allDefinitions[e],f["$_"+t]!==undefined&&(o=f["$_"+t],f[o]=n.ig[t],f["$"+o]=n.ig[t].prototype)};n.ig.util.getClassCount=function(n,t){var s=document.styleSheets,r=0,c=0,u,f,i,h,e,o;if(n=n.toLowerCase(),!s)return 0;for(e=0;e<s.length;e++)try{if(u=s[e],f=u.rules?u.rules:u.cssRules,!f)continue;for(o=0;o<f.length;o++)i=f[o].selectorText,i&&(i=i.toLowerCase(),t?i.indexOf(n)===0&&(h=parseInt(i.replace(n,""),10),isNaN(h)?c++:r=Math.max(r,h)):i==n&&r++)}catch(l){}return Math.max(r,c)};n.ig.util._isCanvasSupported=function(){var n=document.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};n.ig.util._renderUnsupportedBrowser=function(t,i){if(!t.events||!t.events.browserNotSupported||t._trigger(t.events.browserNotSupported)){var u=t.element,f=t.options,e=n("<div><\/div>").css("overflow","auto").addClass(t.css.unsupportedBrowserClass).appendTo(u),r,o;i=i||n.ig.util.locale;o=n.ig.util.isIE?"Internet Explorer "+n.ig.util.browserVersion:n.ig.util.isOpera?"Opera "+n.ig.util.browserVersion:n.ig.util.isWebKit?"Webkit "+n.ig.util.browserVersion:n.ig.util.isFF?"Mozilla Firefox "+n.ig.util.browserVersion:n.ig.util.browserVersion;n("<div><\/div>").addClass("ui-html5-current-browser-label").html(i.currentBrowser.replace("{0}",o)).appendTo(e);n("<div><\/div>").addClass("ui-html5-non-html5-text").html(i.unsupportedBrowser).appendTo(e);r=n("<ul><\/ul>").addClass("ui-html5-browsers-list").appendTo(e);n("<a><\/a>").attr("href",i.chromeDownload).attr("target","_blank").addClass("ui-html5-chrome-icon").html(i.chrome8).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(r));n("<a><\/a>").attr("href",i.firefoxDownload).attr("target","_blank").addClass("ui-html5-firefox-icon").html(i.firefox36).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(r));n("<a><\/a>").attr("href",i.operaDownload).attr("target","_blank").addClass("ui-html5-Opera-icon").html(i.opera11).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(r));n("<a><\/a>").attr("href",i.safariDownload).attr("target","_blank").addClass("ui-html5-safari-icon").html(i.safari5).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(r));n("<a><\/a>").attr("href",i.ieDownload).attr("target","_blank").addClass("ui-html5-ie-icon").html(i.ie9).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(r));t.css.unsupportedBrowserClass.indexOf(" ui-html5-non-html5")===-1&&u.addClass("ui-html5-non-html5");f.width&&u.css("width",f.width);f.height&&u.css("height",f.height)}},function(n){n.ig.util.profiler={};var t={};n.ig.util.profiler.recordTime=function(n,i){var r="meth: "+n;t[r]||(t[r]=[]);t[r][t[r].length]=i};n.ig.util.profiler.reset=function(){t={}};n.ig.util.profiler.logReport=function(){var i=[],o=0,f=0,s=0,n,u,e,r;for(n in t)if(n.indexOf("meth:")===0){for(u={},u.name=n.substr(5),f=0,e=0;e<t[n].length;e++)f=f+t[n][e];s=f/t[n].length;u.avg=s;u.callCount=t[n].length;i[o]=u;o++}for(i.sort(function(n,t){return n.avg<t.avg?1:n.avg>t.avg?-1:n.avg==t.avg?0:void 0}),r=0;r<Math.min(200,i.length);r++)console.log(i[r].name+" avg: "+i[r].avg+" callCount: "+i[r].callCount)}}(jQuery);n.ig.extendNativePrototype(Function.prototype,"invoke",function(){return this.apply(null,arguments)});n.ig.extendNativePrototype(Function.prototype,"runOn",function(n){var i=this,t=function(){return i.apply(n,arguments)};return t.original=this,t.target=n,t});String.prototype.startsWith=function(n){return this.indexOf(n)===0};String.prototype.endsWith=function(n){var t=this.length-n.length;return t>=0&&this.lastIndexOf(n)===t};String.prototype.remove=function(n,t){return!t||n+t>this.length?this.substr(0,n):this.substr(0,n)+this.substr(n+t)};String.prototype.compareTo=function(n){return this==n?0:this<n?-1:1};String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")});String.prototype.fullTrim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")};String.prototype.trimStart=function(){var t=[" "],n;if(arguments.length>0&&(t=Array.prototype.slice.call(arguments)),this.length===0)return this;for(n=0;t.indexOf(this.charAt(n))>-1&&n<this.length;n++);return this.substring(n)};String.prototype.trimEnd=function(){var t=[" "],n;for(arguments.length>0&&(t=Array.prototype.slice.call(arguments)),n=this.length-1;n>=0&&t.indexOf(this.charAt(n))>-1;n--);return this.substring(0,n+1)};String.getHashCode=function(){return this};String.isNullOrEmpty=function(n){return!n||n.length<1};String.empty=function(){return""};String.concat=function(){return[].join.call(arguments,"")};String.concat1=function(){return[].join.call(arguments,"")};String.concat2=function(){return[].join.call(arguments,"")};String.concat3=function(){return[].join.call(arguments,"")};String.concat4=function(){return[].join.call(arguments,"")};String.concat5=function(){return[].join.call(arguments,"")};String.concat6=function(){return[].join.call(arguments,"")};String.concat7=function(){return[].join.call(arguments,"")};String.prototype.equals=function(n){return this==n};String.prototype.contains=function(n){return this.indexOf(n)>-1};String.prototype.padLeft=function(n,t){var i=this;for(t=t||" ";i.length<n;)i=t+i;return i};String.prototype.padRight=function(n,t){var i=this;for(t=t||" ";i.length<n;)i+=t;return i};String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)};Array.prototype.filter||(Array.prototype.filter=function(n){var i,f,r,e,u,t;if(this===undefined||this===null)throw new TypeError;if(i=Object(this),f=i.length>>>0,typeof n!="function")throw new TypeError;for(r=[],e=arguments[1],t=0;t<f;t++)t in i&&(u=i[t],n.call(e,u,t,i)&&r.push(u));return r});n.ig.extendNativePrototype(Array.prototype,"insertRange",function(n,t){var i=0;if(this.length===0)for(i=0;i<t.length;i++)this[n++]=t[i];else for(i=0;i<t.length;i++)this.splice(n++,0,t[i])});n.ig.extendNativePrototype(Array.prototype,"insertRange1",function(n,t){var i=0;if(this.length===0)for(i=0;i<t.length;i++)this[n++]=t[i];else for(i=0;i<t.length;i++)this.splice(n++,0,t[i])});n.ig.extendNativePrototype(Array.prototype,"clone",function(){return n.extend(!0,[],this)});n.ig.extendNativePrototype(Array.prototype,"clear",function(){this.length=0});Math.log10=function(n){return Math.log(n)/Math.log(10)};Math.logBase=function(n,t){return Math.log(n)/Math.log(t)};Math.sign=function(n){return n<0?-1:n>0?1:0};Number.getHashCode=function(){return this};Number.isInfinity=function(n){return n===Infinity||n===-Infinity};window.toStaticHTML=window.toStaticHTML||function(n){return n};window.MSApp=window.MSApp||{};window.MSApp.execUnsafeLocalFunction=window.MSApp.execUnsafeLocalFunction||function(n){n.apply()};n.ig.util.jQueryUIMainVersion=n.ui&&n.ui.version&&n.ui.version.length>0?parseInt(n.ui.version.split(".",1)[0],10):null;n.ig.util.jQueryUISubVersion=n.ui&&n.ui.version&&n.ui.version.length>0?parseInt(n.ui.version.split(".",2)[1],10):null;n.ig.util.jqueryFlagsCache={};n.ig.util.jqueryCreateFlags=function(t){var r=n.ig.util.jqueryFlagsCache[t]={},i,u;for(t=t.split(/\s+/),i=0,u=t.length;i<u;i++)r[t[i]]=!0;return r};n.ig.util.jqueryCallbacks=function(t){t=t?n.ig.util.jqueryFlagsCache[t]||n.ig.util.jqueryCreateFlags(t):{};var i=[],u=[],r,c,o,h,s,f,l=function(n){for(var r,f,u=0,o=n.length;u<o;u++)r=n[u],f=jQuery.type(r),f==="array"?l(r):f==="function"&&(t.unique&&e.has(r)||i.push(r))},a=function(n,l){for(l=l||[],r=!t.memory||[n,l],c=!0,o=!0,f=h||0,h=0,s=i.length;i&&f<s;f++)if(i[f].apply(n,l)===!1&&t.stopOnFalse){r=!0;break}o=!1;i&&(t.once?r===!0?e.disable():i=[]:u&&u.length&&(r=u.shift(),e.fireWith(r[0],r[1])))},e={add:function(){if(i){var n=i.length;l(arguments);o?s=i.length:r&&r!==!0&&(h=n,a(r[0],r[1]))}return this},remove:function(){var n;if(i)for(var u=arguments,r=0,e=u.length;r<e;r++)for(n=0;n<i.length;n++)if(u[r]===i[n]&&(o&&n<=s&&(s--,n<=f&&f--),i.splice(n--,1),t.unique))break;return this},has:function(n){if(i)for(var t=0,r=i.length;t<r;t++)if(n===i[t])return!0;return!1},empty:function(){return i=[],this},disable:function(){return i=u=r=undefined,this},disabled:function(){return!i},lock:function(){return u=undefined,r&&r!==!0||e.disable(),this},locked:function(){return!u},fireWith:function(n,i){return u&&(o?t.once||u.push([n,i]):t.once&&r||a(n,i)),this},fire:function(){return e.fireWith(this,arguments),this},fired:function(){return!!c}};return e};n.ig.util.jqueryDeferred=function(t){var r=n.ig.util.jqueryCallbacks("once memory"),u=n.ig.util.jqueryCallbacks("once memory"),f=n.ig.util.jqueryCallbacks("memory"),s="pending",h={resolve:r,reject:u,notify:f},e={done:r.add,fail:u.add,progress:f.add,state:function(){return s},isResolved:r.fired,isRejected:u.fired,then:function(n,t,r){return i.done(n).fail(t).progress(r),this},always:function(){return i.done.apply(i,arguments).fail.apply(i,arguments),this},pipe:function(t,r,u){return n.ig.util.jqueryDeferred(function(n){jQuery.each({done:[t,"resolve"],fail:[r,"reject"],progress:[u,"notify"]},function(t,r){var f=r[0],e=r[1],u;jQuery.isFunction(f)?i[t](function(){u=f.apply(this,arguments);u&&jQuery.isFunction(u.promise)?u.promise().then(n.resolve,n.reject,n.notify):n[e+"With"](this===i?n:this,[u])}):i[t](n[e])})}).promise()},promise:function(n){if(n===undefined||n===null)n=e;else for(var t in e)n[t]=e[t];return n}},i=e.promise({});for(var o in h)i[o]=h[o].fire,i[o+"With"]=h[o].fireWith;return i.done(function(){s="resolved"},u.disable,f.lock).fail(function(){s="rejected"},r.disable,f.lock),t&&t.call(i,i),i};n.ig.util.checkDeferred=function(){n.ig.util.deferredDefined=!!(n.Deferred!==undefined&&n.Deferred().state)};n.ig.util.deferred=function(){return n.ig.util.deferredDefined===undefined&&n.ig.util.checkDeferred(),n.ig.util.deferredDefined?n.Deferred():n.ig.util.jqueryDeferred()};n.ig.util.ajax=function(t,i,r,u,f){var e=n.ig.util.deferred(),o,s,h,c;return o=f&&"isCrossDomain"in f?f.isCrossDomain:n.support.cors,s=function(n){var t=new XMLHttpRequest;return!o||"withCredentials"in t||n&&"withCredentials"in n&&n.withCredentials||typeof XDomainRequest=="undefined"||(t=new XDomainRequest,t.getResponseHeader=function(){return null},t.setRequestHeader=function(){t.status=200},t.getAllResponseHeaders=function(){return null},t.onload=function(){t.readyState=4;t.status=200;t.statusText="success";t.getAllResponseHeaders=function(){};t.onreadystatechange()},t.onerror=function(){t.readyState=4;t.status=0;t.statusText="error";t.getAllResponseHeaders=function(){};t.onreadystatechange()},t.ontimeout=function(){t.readyState=4;t.status=0;t.statusText="timeout";t.getAllResponseHeaders=function(){};t.onreadystatechange()},t.onprogress=function(){}),t}(f),"withCredentials"in s&&f&&"withCredentials"in f&&f.withCredentials&&(h={withCredentials:!0}),c=function(t,r){f&&n.isFunction(f.beforeSend)&&(t.setRequestHeader("Content-Type",i),f.beforeSend.call(this,t,r,f))},n.ajax({crossDomain:o?!0:!1,isLocal:!1,url:t,contentType:i,data:r,type:u,dataType:"text",xhrFields:h,beforeSend:c,xhr:function(){return s},success:function(n){e.resolve(n)},error:function(n,t,i){e.reject(i)}}),e.promise()};n.ig.util.offset=function(n,t){t=t||n.offset();n=n?n[0].ownerDocument:document;n=n?n.documentElement:null;var i=n?n.msContentZoomFactor:null;return i&&i>1&&(t.left+=n.scrollLeft-window.pageXOffset,t.top+=n.scrollTop-window.pageYOffset),t};n.ig.util.getRelativeOffset=function(n){for(var t=n.parent(),i={left:0,top:0},r;t[0]!==null&&t[0]!==undefined&&t[0].nodeName!=="#document";){if(r=t.css("position"),r!=="static"&&r!==""){i.left=t.offset().left-t.scrollLeft();i.top=t.offset().top-t.scrollTop();break}t=t.parent()}return i};n.ig.util.setSize=function(n,t,i,r,u){if(n&&n[0]){var s,o,f=n[0]._w_s_f=n[0]._w_s_f||{},e=f.perc;if(!t){if(f.tickID)f.onTick(!0);delete f.elem;delete f.chart;n[0]._w_s_f=null;return}i||(i=n[t]());e&&e.indexOf(t)>=0&&(e=e.replace(t,""));i&&(n[t](i),typeof i!="number"&&(i=i.toString(),i.indexOf("%")>0&&(e=e||"",e.indexOf(t)<0&&(s=e+=t)),o=i.indexOf("px"),o>0&&(i=i.substring(0,o)),o=parseFloat(i),o.toString()===i?i=o:(i=n[t](),i||(f.wait=f.wait||"",f.wait.indexOf(t)<0&&(f.wait+=t),s=t))),f.perc=e,i&&r&&(r[t]&&r[t](i),u&&r[u]()));s||n[0].offsetWidth||(s=f.wait="width");s&&(f.elem=n,f.chart=r,f.notify=u,f.onTick=f.onTick||function(n){var e,t=this,i=t.chart,s=t.elem,f=t.perc||"",o=t.wait||"",r=n||s[0].offsetWidth,u=n||s[0].offsetHeight,h=t.oldWidth||0,c=t.oldHeight||0;if(n=n===!0||!f&&!o,n){t.tickID&&clearInterval(t.tickID);delete t.tickID;return}(t.tickID||r&&u&&!f||(t.tickID=setInterval(function(){t.onTick()},200)),r&&u)&&(delete t.wait,t.oldWidth=r,t.oldHeight=u,i)&&(i.width&&(f.indexOf("width")>=0&&r!==h||o.indexOf("width")>=0)&&i.width(e=r),i.height&&(f.indexOf("height")>=0&&u!==c||o.indexOf("height")>=0)&&i.height(e=u),e&&t.notify&&i[t.notify]())},f.onTick())}};n.ig.util.getEasingFunction=function(t){if(t===null||t=="null"||t=="linear")return null;switch(t){case"cubic":return n.ig.EasingFunctions.prototype.cubicEase}return t};n.ig.util.hasVerticalScroll=function(t){var i=n(t).css("overflow-y");return i==="scroll"||i==="auto"&&t[0].scrollHeight>t[0].clientHeight};n.ig.util.hasHorizontalScroll=function(t){var i=n(t).css("overflow-x");return i==="scroll"||i==="auto"&&t[0].scrollWidth>t[0].clientWidth};n.ig.util.getScrollWidth=function(){var t=n('<div style="width: 100px; height: 100px; position: absolute; top: -10000px; left: -10000px; overflow: scroll"><\/div>').appendTo(n(document.body)),i;return i=t[0].offsetWidth-t[0].clientWidth,t.remove(),i};n.ig.util.getScrollHeight=function(){var t=n('<div style="width: 100px; height: 100px; position: absolute; top: -10000px; left: -10000px; overflow: scroll"><\/div>').appendTo(n(document.body));return scrollHeight=t[0].offsetHeight-t[0].clientHeight,t.remove(),scrollHeight};n.ig.util.isDomElement=function(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"};n.ig.util.isJsonpUrl=function(n){return/(=)\?(?=&|$)|\?\?/.test(n)};n.ig.util.evtButton=function(n){if(n=n?n.button:null,n===1){if(n=this._ie_8,!n){var t;n=window.navigator.userAgent;n&&(t=n.toLowerCase().indexOf("msie "),t>0&&(t=parseFloat(n.substring(t+5)),t>8&&(t=parseFloat(document.documentMode))));this._ie_8=n=t&&!isNaN(t)&&t>5&&t<9?1:-1}n=n<0?1:0}return n===2?2:n?1:0};n.ig.util.isTouchDevice=function(){return"ontouchstart"in window||window.navigator.msMaxTouchPoints>0};n.fn.animateRotate=function(t,i,r,u,f){return this.each(function(){var e=n(this);n({deg:t}).animate({deg:i},{duration:r,easing:u,step:function(n){e.css({"-moz-transform":"rotate("+n+"deg)","-webkit-transform":"rotate("+n+"deg)","-o-transform":"rotate("+n+"deg)","-ms-transform":"rotate("+n+"deg)",transform:"rotate("+n+"deg)"})},complete:f||n.noop})})};n.ig.util.makeCRCTable=function(){for(var n,i,r=[],t=0;t<256;t++){for(n=t,i=0;i<8;i++)n=n&1?3988292384^n>>>1:n>>>1;r[t]=n}return r};n.ig.util.crc32=function(t){var u=n.ig.util.crcTable||(n.ig.util.crcTable=n.ig.util.makeCRCTable()),i=-1,r;for(t=unescape(encodeURIComponent(t)),r=0;r<t.length;r++)i=i>>>8^u[(i^t.charCodeAt(r))&255];return(i^-1)>>>0};n.ig.util.getCheckSumForObject=function(t){var r="";for(var i in t)t.hasOwnProperty(i)&&typeof t[i]!="object"&&(r+=t[i]);return n.ig.util.crc32(r)};n.Widget&&function(t){n.Widget.prototype._createWidget=function(i,r){var u=n(r||this.defaultElement||this)[0];return u!==this&&n.data(u,this.widgetName,this),t.apply(this,arguments)}}(n.Widget.prototype._createWidget)}(jQuery),function(n){n.ig=n.ig||{};n.ig.DataSource=n.ig.DataSource||Class.extend({settings:{id:"ds",outputResultsName:null,callback:null,callee:null,data:[],dataSource:null,dataBinding:null,dataBound:null,requestType:"GET",type:"unknown",schema:null,primaryKey:null,responseTotalRecCountKey:null,responseDataKey:null,responseDataType:null,responseContentType:null,localSchemaTransform:!0,urlParamsEncoding:null,urlParamsEncoded:null,paging:{enabled:!1,type:"remote",pageSize:5,pageSizeUrlKey:null,pageIndexUrlKey:null,pageIndex:0,appendPage:!1},filtering:{type:"remote",caseSensitive:!1,applyToAllData:!0,customFunc:null,filterExprUrlKey:null,filterLogicUrlKey:"filterLogic",defaultFields:[],expressions:[],exprString:""},sorting:{defaultDirection:"none",defaultFields:[],applyToAllData:!0,customFunc:null,compareFunc:null,customConvertFunc:null,type:"remote",caseSensitive:!1,sortUrlKey:null,sortUrlAscValueKey:null,sortUrlDescValueKey:null,expressions:[],exprString:""},summaries:{type:"remote",summaryExprUrlKey:"summaries",summariesResponseKey:"summaries",summaryExecution:"afterfilteringandpaging",columnSettings:[]},fields:[],serializeTransactionLog:!0,aggregateTransactions:!1,autoCommit:!1,updateUrl:null,rowAdded:null,rowUpdated:null,rowInserted:null,rowDeleted:null},init:function(t){var i,r,f=!1,u;return t&&(i=t.dataSource,i&&(n.type(i)==="array"||n.type(i)==="object")&&(n.type(i)==="object"&&t.responseDataKey&&t.type!=="json"?(u=i.Metadata,t.dataSource=n.ig.findPath(i,t.responseDataKey),u&&t.dataSource.Metadata===undefined&&(t.dataSource.Metadata=u),f=!0):t.dataSource=null),t.callee&&(r=t.callee,t.callee=null),this.settings=n.extend(!0,{},n.ig.DataSource.prototype.settings,t),f?this.settings.type="array":i&&(n.type(i)==="array"||n.type(i)==="object")&&(t.dataSource=i,this.settings.dataSource=i),r&&(this.settings.callee=r,r=null)),this.settings.paging.pageIndex=0,this._isBound=!1,this._url=null,this._dsCallback=null,this._data=[],this._dataView=[],this._runtimeType=this.settings.type==="unknown"?this.analyzeDataSource():this.settings.type,this._parser=new n.ig.TypeParser,this._schema=null,this._isSortingReq=!1,this._isFilteringReq=!1,this._isPagingReq=!1,this._isSummariesReq=!1,this._dataSummaries=[],this._recCount=0,this._hasCount=!1,this._initSchema(),this._filteredDataView=[],this._transactionLog=[],this._accumulatedTransactionLog=[],this},_initSchema:function(){this.settings.schema&&(this.settings.schema instanceof n.ig.DataSchema?this._schema=this.settings.schema:(this._schema=this.settings.type!=="unknown"?new n.ig.DataSchema(this.settings.type,this.settings.schema):new n.ig.DataSchema(this._runtimeType,this.settings.schema),this._schema._pk=this.settings.primaryKey))},fields:function(n){return n===undefined||n===null?this.settings.fields:(this.settings.fields=n,this)},analyzeDataSource:function(){var t=this.dataSource(),i;return t===undefined||t===null?"empty":n.type(t)==="function"?"function":n.type(t)==="array"?"array":n.type(t)==="number"||n.type(t)==="boolean"||n.type(t)==="date"?"invalid":n.type(t)==="string"?(t=n.trim(t),t.startsWith("/"))?"remoteUrl":n("#"+this.settings.id).length>0&&t.toLowerCase().startsWith("<table")?"htmlTableString":t.toLowerCase().startsWith("<table")?(i="<div id='"+this.settings.id+"' style='display:none;visibility:hidden;'>"+t+"<\/div>",n(i).appendTo(n("body")),"htmlTableString"):!t.startsWith("[")&&!t.startsWith("{")&&!t.startsWith("<")?!t.startsWith("http://")&&!t.startsWith("https://")&&n("#"+t).length>0&&n("#"+t)[0].nodeName.toLowerCase()==="table"?"htmlTableId":(this._url=t,"remoteUrl"):"unknown":t.nodeName&&t.nodeName.toLowerCase()==="table"?"htmlTableDom":t.nodeName&&(t.nodeName.toLowerCase()==="ul"||t.nodeName.toLowerCase()==="ol")?"htmlListDom":"unknown"},dataView:function(){return this._dataView},data:function(){return this._data},transformedData:function(n){switch(n){case"priortofilteringandpaging":this._transformedData=this._data;break;case"afterfilteringbeforepaging":break;case"afterfilteringandpaging":this._transformedData=this.dataView();break;default:this._transformedData=this._dataView}return this._transformedData},dataSummaries:function(){var n=this.settings.summaries,t=n.type;return t==="local"&&(this._dataSummaries=this.transformedData(n.summaryExecution)),this._dataSummaries},schema:function(t,i){return t===undefined||t===null?this._schema:(t instanceof n.ig.DataSchema?this._schema=t:(this._schema=i===null||i===undefined?new n.ig.DataSchema(t.type,t):new n.ig.DataSchema(i,t),this._schema._pk=this.settings.primaryKey),this)},pagingSettings:function(n){return n===undefined||n===null?this.settings.paging:(this.settings.paging=n,this)},filterSettings:function(n){return n===undefined||n===null?this.settings.filtering:(this.settings.filtering=n,this)},sortSettings:function(n){return n===undefined||n===null?this.settings.sorting:(this.settings.sorting=n,this)},summariesSettings:function(n){return n===undefined||n===null?this.settings.summaries:(this.settings.summaries=n,this)},dataSource:function(n){return n===undefined||n===null?this.settings.dataSource:(this.settings.dataSource=n,this.analyzeDataSource(),this)},type:function(n){return n===undefined||n===null?this._runtimeType:(this.settings.type=n,this)},findRecordByKey:function(t,i){for(var u=i||this._data,f=u?u.length:0,e=f>0&&n.isArray(u[0])?this._lookupPkIndex():this.settings.primaryKey,r=0;r<f;r++)if(u[r][e]===t)return u[r];return null},removeRecordByKey:function(t,i){for(var u,e,r,f=0,o=[this._data,this._dataView,this._filteredData,i],h=this.settings.primaryKey,c=this._lookupPkIndex(),s;f<4;){for(r=o[f++],e=r?r.length:0,s=e>0&&n.isArray(r[0])?c:h,u=0;u<e;u++)if(r[u]&&r[u][s]===t){n.ig.removeFromArray(r,u);break}r===o[f]&&f++}},removeRecordByIndex:function(t,i){var u,o,f,r=this._data,s=this._dataView,e=this._filteredData;if(r&&!isNaN(t)&&!(t<0)&&!(t>=r.length))for(f=r[t],n.ig.removeFromArray(r,t),i&&n.ig.removeFromArray(i,t),r=r===s?e:s;f;){for(o=r?r.length:0,u=0;u<o;u++)if(r[u]===f){n.ig.removeFromArray(r,u);break}if(r===e)return;r=e}},setCellValue:function(n,t,i,r){var u=this._createCellTransaction(n,t,i);return this._addTransaction(u),r===!0&&this.commit(n),u},updateRow:function(t,i,r){var f=this._createRowTransaction(t,i),u=this.settings.primaryKey===null?this._data[parseInt(t,10)]:this.findRecordByKey(t),e=this.settings.primaryKey===null?t:n.ig.indexInArray(this._data,u);return this._addTransaction(f),r===!0&&this.commit(t),n.type(this.settings.rowUpdated)==="function"&&(this.settings.callee?this.settings.rowUpdated.apply(this.settings.callee,[{rowIndex:e,newRow:i,oldRow:u},this]):this.settings.rowUpdated({rowIndex:e,newRow:i,oldRow:u},this)),f},addRow:function(t,i,r){var u=this._createNewRowTransaction(t,i);return this._addTransaction(u),r===!0&&this.commit(t),n.type(this.settings.rowAdded)==="function"&&(this.settings.callee?this.settings.rowAdded.apply(this.settings.callee,[{rowId:t,row:i},this]):this.settings.rowAdded({rowId:t,row:i},this)),u},insertRow:function(t,i,r,u){var f=this._createInsertRowTransaction(t,i,r);return this._addTransaction(f),u===!0&&this.commit(t),n.type(this.settings.rowInserted)==="function"&&(this.settings.callee?this.settings.rowInserted.apply(this.settings.callee,[{rowId:t,row:i,rowIndex:r},this]):this.settings.rowInserted({rowId:t,row:i,rowIndex:r},this)),f},deleteRow:function(t,i){for(var s=this._createDeleteRowTransaction(t),f=this.settings.primaryKey===null?this._data[parseInt(t,10)]:this.findRecordByKey(t),e=this.settings.primaryKey===null?t:n.ig.indexInArray(this._data,f),o=!1,u,r=0;this.settings.aggregateTransactions&&r<this._transactionLog.length;r++)if(this._transactionLog[r].type==="newrow"&&this._transactionLog[r].rowId===t){for(o=!0,t=this._transactionLog[r].rowId,this._removeTransactionByTransactionId(this._transactionLog[r].tid),u=0;u<this._accumulatedTransactionLog.length;u++)this._accumulatedTransactionLog[u].rowId===t&&n.ig.removeFromArray(this._accumulatedTransactionLog,u);break}this.settings.aggregateTransactions&&o||(this._addTransaction(s),i===!0&&this.commit(t),n.type(this.settings.rowDeleted)==="function"&&(this.settings.callee?this.settings.rowDeleted.apply(this.settings.callee,[{rowId:t,row:f,rowIndex:e},this]):this.settings.rowDeleted({rowId:t,row:f,rowIndex:e},this)))},addNode:function(n){var t=this._createAddNodeTransaction(n);this._addTransaction(t)},removeNode:function(n){var t=this._createRemoveNodeTransaction(n);this._addTransaction(t)},getDetachedRecord:function(t){var r=n.type(this._data[0])==="array"?[]:{},i,u;if(u=this.settings.primaryKey===null?this._data[parseInt(t.rowId,10)]:this.findRecordByKey(t.rowId),this._data[0]!=="array")for(i in u)u.hasOwnProperty(i)&&(r[i]=u[i]);else for(i=0;i<u.length;i++)r[i]=u[i];if(t.type==="cell")return r[t.col]=t.value,r;if(r!=="array")for(i in t.row)t.row.hasOwnProperty(i)&&(r[i]=t.row[i]);else for(i=0;i<t.row.length;i++)r[i]=t.row[i];return r},commit:function(n){if(n!==null&&n!==undefined)this._commitTransactionsByRowId(n);else for(this._transactionLog.reverse();this._transactionLog.length>0;)this._commitTransaction(this._transactionLog.pop())},rollback:function(n){var t;if(n!==null&&n!==undefined)this._rollbackTransactionsByRowId(n);else for(t=this._transactionLog.length;t-->0;)this._rollbackTransaction(this._transactionLog[t])},pendingTransactions:function(){return this._transactionLog},allTransactions:function(){return this._accumulatedTransactionLog},_createCellTransaction:function(n,t,i){return{type:"cell",rowId:n,tid:this._generateTransactionId(),col:t,value:i}},_createRowTransaction:function(n,t){return{type:"row",tid:this._generateTransactionId(),row:t,rowId:n}},_createNewRowTransaction:function(n,t){return{type:"newrow",tid:this._generateTransactionId(),row:t,rowId:n}},_createInsertRowTransaction:function(n,t,i){return{type:"insertrow",tid:this._generateTransactionId(),row:t,rowId:n,rowIndex:i}},_createDeleteRowTransaction:function(n){return{type:"deleterow",tid:this._generateTransactionId(),rowId:n}},_createAddNodeTransaction:function(n){return{type:"addnode",tid:this._generateTransactionId(),tdata:n}},_createRemoveNodeTransaction:function(n){return{type:"removenode",tid:this._generateTransactionId(),tdata:n}},_addTransaction:function(t){var s=!1,r=0,e,u,i,o=!0,f;if(t.type==="cell"){for(r=0;r<this._transactionLog.length;r++)if(this._transactionLog[r].rowId===t.rowId&&this._transactionLog[r].col===t.col){if(s=!0,this.settings.autoCommit===!1&&this.settings.aggregateTransactions===!0)for(i=0;i<this.dataView().length;i++)if(this.dataView()[i][this.settings.primaryKey]===t.rowId&&this.dataView()[i][t.col]===t.value){for(f=0;f<this._accumulatedTransactionLog.length;f++)this._accumulatedTransactionLog[f].rowId===this._transactionLog[r].rowId&&n.ig.removeFromArray(this._accumulatedTransactionLog,f);this._removeTransactionByTransactionId(this._transactionLog[r].tid);o=!1}o&&(this._transactionLog[r].value=t.value,this._syncGlobalTransaction(this._transactionLog[r]))}for(i=0;i<this._transactionLog.length;i++)if(this._transactionLog[i].type==="newrow"&&this._transactionLog[i].rowId===t.rowId){t.type==="row"?this._transactionLog[i].value=t.value:this._transactionLog[i].row[t.col]=t.value;this._syncGlobalTransaction(this._transactionLog[i]);return}}else if(t.type==="row"){for(r=0;r<this._transactionLog.length;r++)if(this._transactionLog[r].rowId===t.rowId&&this._transactionLog[r].type!=="cell"){if(s=!0,this.settings.autoCommit===!1&&this.settings.aggregateTransactions===!0){for(o=!1,i=0;i<this.dataView().length;i++)if(this.dataView()[i][this.settings.primaryKey]===t.rowId){for(e in t.row)if(t.row.hasOwnProperty(e)&&t.row[e]!==this.dataView()[i][e]){o=!0;break}break}for(i=0,!o;i<this._transactionLog.length;i++)if(this._transactionLog[i].type==="newrow"&&this._transactionLog[i].rowId===t.rowId){this._transactionLog[i].row=t.row;this._syncGlobalTransaction(this._transactionLog[i]);return}}if(o)this._transactionLog[r].row=t.row,this._syncGlobalTransaction(this._transactionLog[r]);else{for(f=0;f<this._accumulatedTransactionLog.length;f++)this._accumulatedTransactionLog[f].rowId===this._transactionLog[r].rowId&&n.ig.removeFromArray(this._accumulatedTransactionLog,f);this._removeTransactionByTransactionId(this._transactionLog[r].tid)}}}else if(t.type==="addnode"||t.type==="removenode"){this._transactionLog.push(t);return}if(!s){if(this._transactionLog.push(t),u=n.extend(!0,{},t),u.type==="cell"&&n.type(u.value)==="date")u.value="/Date("+u.value.getTime()+")/";else if(u.type==="row"||u.type==="insertrow"||u.type==="newrow")for(e in u.row)u.row.hasOwnProperty(e)&&n.type(u.row[e])==="date"&&(u.row[e]="/Date("+u.row[e].getTime()+")/");this._accumulatedTransactionLog.push(u)}},_syncGlobalTransaction:function(t){var i,r;if(t)if(t.type==="cell"){for(i=0;i<this._accumulatedTransactionLog.length;i++)if(this._accumulatedTransactionLog[i].rowId===t.rowId){this._accumulatedTransactionLog[i].value=n.type(t.value)==="date"?"/Date("+t.value.getTime()+")/":t.value;break}}else if(t.type==="row"||t.type==="insertrow"||t.type==="newrow")for(i=0;i<this._accumulatedTransactionLog.length;i++)if(this._accumulatedTransactionLog[i].rowId===t.rowId&&this._accumulatedTransactionLog[i].type!=="cell")for(r in t.row)t.row.hasOwnProperty(r)&&(this._accumulatedTransactionLog[i].row[r]=n.type(t.row[r])==="date"?"/Date("+t.row[r].getTime()+")/":t.row[r])},_removeTransactionByTransactionId:function(t,i){for(var r=0;r<this._transactionLog.length;r++)if(this._transactionLog[r].tid===t){n.ig.removeFromArray(this._transactionLog,r);break}if(i===!0)for(r=0;r<this._accumulatedTransactionLog.length;r++)if(this._accumulatedTransactionLog[r].tid===t){n.ig.removeFromArray(this._accumulatedTransactionLog,r);break}},_removeTransactionsByRecordId:function(t){for(var i=0;i<this._transactionLog.length;i++)if(this._transactionLog[i].rowId===t){n.ig.removeFromArray(this._transactionLog,i);break}},_addRow:function(n,t,i){var f,r,e=0,s=this.settings.schema,u=s?s.layouts:null,o,h=[this._data,this._dataView,i];if(u)for(r in u)(r.match(/\//g)||[]).length===1&&u.hasOwnProperty(r)&&u[r].key&&!n.hasOwnProperty(u[r].key)&&(u[r].responseDataKey?(o={},o[u[r].responseDataKey]=[]):o=[],n[u[r].key]=o);while(e<4)f=h[e++],f&&(t>=0&&t<f.length?f.splice(t,0,n):f.push(n)),f===h[e]&&e++},_commitTransaction:function(t){var u,f,e,r,i=this.settings.localSchemaTransform?this._origDs:null;if(i===this._data&&(i=null),this.settings.primaryKey===null?(e=this._data[parseInt(t.rowId,10)],i&&(r=i[parseInt(t.rowId,10)])):(e=this.findRecordByKey(t.rowId),i&&(r=this.findRecordByKey(t.rowId,i))),t.type==="cell")e[t.col]=t.value,r&&(r[t.col]=t.value);else if(t.type==="row")if(n.type(t.row)==="array")for(u=0;u<t.row.length;u++)e[u]=t.row[u],r&&(r[u]=t.row[u]);else for(f in t.row)t.row.hasOwnProperty(f)&&(e[f]=t.row[f],r&&(r[f]=t.row[f]));else t.type==="deleterow"?this.settings.primaryKey===null?this.removeRecordByIndex(parseInt(t.rowId,10),i):this.removeRecordByKey(t.rowId,i):t.type==="newrow"?this._addRow(t.row,-1,i):t.type==="insertrow"&&this._addRow(t.row,t.rowIndex,i);this._removeTransactionByTransactionId(t.tid)},_rollbackTransaction:function(n){this._removeTransactionByTransactionId(n.tid,!0)},_commitTransactionsByRowId:function(n){for(var t=0;t<this._transactionLog.length;t++)this._transactionLog[t].rowId===n&&this._commitTransaction(this._transactionLog[t])},_rollbackTransactionsByRowId:function(n){for(var t=0;t<this._transactionLog.length;t++)this._transactionLog[t].rowId===n&&this._rollbackTransaction(this._transactionLog[t])},transactionsAsString:function(){return JSON.stringify(this._accumulatedTransactionLog)},_generateTransactionId:function(){return((1+Math.random())*parseInt("10000",16)).toString(16).substring(1,5)},_lookupPkIndex:function(){var n;if(this._pkIndex!==undefined)return this._pkIndex;if(typeof this.settings.primaryKey=="string"&&this.schema()&&this.schema().fields()&&this.schema().fields().length>0)for(n=0;n<this.schema().fields().length;n++)if(this.schema().fields()[n].name===this.settings.primaryKey)return this._pkIndex=n,n;return this._pkIndex=this.settings.primaryKey,this.settings.primaryKey},saveChanges:function(t,i){if(this.settings.updateUrl!==null){var r=this,u;u={type:"POST",url:this.settings.updateUrl,data:{ig_transactions:JSON.stringify(this._accumulatedTransactionLog)},success:function(n,i,u){r._saveChangesSuccess(n,i,u);t&&t(n,i,u)},error:function(n,t,u){r._saveChangesError(n,t,u);i&&i(n,t,u)}};n.ajax(u)}},_saveChangesSuccess:function(n,t,i){n.Success&&(this.commit(),this._transactionLog=[],this._accumulatedTransactionLog=[]);for(var r=this._saveChangesHandlers,u=r?r.length:0;u-->0;)r[u](n,t,i)},_saveChangesError:function(n,t,i){for(var r=this._saveChangesErrorHandlers,u=r?r.length:0;u-->0;)r[u](n,t,i)},_addChangesSuccessHandler:function(n){this._saveChangesHandlers===undefined&&(this._saveChangesHandlers=[]);this._saveChangesHandlers[this._saveChangesHandlers.length]=n},_removeChangesSuccessHandler:function(t){if(this._saveChangesHandlers!==undefined){var i=n.ig.indexInArray(this._saveChangesHandlers,t);i>-1&&(this._saveChangesHandlers=this._saveChangesHandlers.slice(0,i).concat(this._saveChangesHandlers.slice(i+1,this._saveChangesHandlers.length)))}},_addChangesErrorHandler:function(n){this._saveChangesErrorHandlers===undefined&&(this._saveChangesErrorHandlers=[]);this._saveChangesErrorHandlers[this._saveChangesErrorHandlers.length]=n},_removeChangesErrorHandler:function(t){if(this._saveChangesErrorHandlers!==undefined){var i=n.ig.indexInArray(this._saveChangesErrorHandlers,t);i>-1&&(this._saveChangesErrorHandlers=this._saveChangesErrorHandlers.slice(0,i).concat(this._saveChangesErrorHandlers.slice(i+1,this._saveChangesErrorHandlers.length)))}},dataBind:function(t,i){var s,c,u,e,h,r=this.settings,a,o,l=!0;if(this._transactionLog=[],this._accumulatedTransactionLog=[],t||(t=r.callback),a={cancel:!1},n.isFunction(r.dataBinding)&&(l=r.dataBinding(this,a),l===undefined&&(l=!0)),l){this.settings.type==="unknown"&&(this._runtimeType===null||this._runtimeType===undefined)?this._runtimeType=this.analyzeDataSource():this._runtimeType=="json"&&(e=this.dataSource(),n.type(e)==="string"&&(e=n.trim(e),(e.startsWith("/")||e.startsWith("http://")||e.startsWith("https://"))&&(this._runtimeType="remoteUrl")));switch(this._runtimeType){case"function":this._data=r.dataSource();this.schema()&&(this._data=this.schema().transform(this._data));break;case"array":this.schema()&&this.settings.localSchemaTransform?(this._data=this.schema().transform(this.dataSource()),this.dataSource().Metadata&&(this._metadata=this.dataSource().Metadata,this.summariesResponse(this.settings.summaries.summariesResponseKey,this.dataSource())),this._origDs=this.dataSource()):this._data=this.dataSource();break;case"htmlTableDom":case"htmlTableId":case"htmlTableString":if(this._tableBound)break;this._runtimeType=this.analyzeDataSource();this._runtimeType==="htmlTableId"?(c=n("#"+this.dataSource()),s=this._validateTable(c)):this._runtimeType==="htmlTableString"?(c=n("#"+this.settings.id+" > table"),s=this._validateTable(c)):s=this.dataSource();this._data=this.schema()&&this.settings.localSchemaTransform?this.schema().transform(s):this.tableToObject(s);this._tableBound=!0;break;case"htmlListDom":this._data=this.schema().transform(this.dataSource());break;case"invalid":throw new Error(n.ig.DataSourceLocale.locale.invalidDataSource);case"unknown":case"json":case"xml":if(this.settings.type!=="json"&&r.type!=="xml")throw new Error(n.ig.DataSourceLocale.locale.unknownDataSource);else{if(o=this.settings.responseDataKey,u=n.type(this.dataSource())==="string"?r.type==="json"?this.stringToJSONObject(this.dataSource()):this.stringToXmlObject(this.dataSource()):this.dataSource(),this.schema()&&this.settings.localSchemaTransform===!0)this._data=this.schema().transform(u),this._origDs=o!==null&&o!==undefined?n.ig.findPath(u,o):u;else if(this.schema()&&this.settings.localSchemaTransform!==!1||r.type!=="json"){if(!this.schema()&&r.type==="xml")throw new Error(n.ig.DataSourceLocale.locale.errorXmlSourceWithoutSchema);}else this._data=o!==null&&o!==undefined?this._origDs=n.ig.findPath(u,o):u,this._origDs=u;this.totalRecordsCount(null,this.settings.responseTotalRecCountKey,u,this);u.Metadata&&(this._metadata=u.Metadata);this.summariesResponse(this.settings.summaries.summariesResponseKey,u)}break;case"remoteUrl":this._remoteData(t,i);break;case"empty":this._data=[];this._dataView=[];this._dataSummaries=[]}this._dataView=this._data;this._filter=!1;h=r.sorting;h.type==="local"&&this._runtimeType!=="remoteUrl"&&h.defaultFields.length>0&&this.sort(h.defaultFields,h.defaultDirection,!1);f=r.filtering;f.type==="local"&&this._runtimeType!=="remoteUrl"&&f.defaultFields.length>0&&this.filter(f.defaultFields);r.paging.enabled&&r.paging.type==="local"&&this._runtimeType!=="remoteUrl"&&this._page();this._filter&&this._transformedData||this._populateTransformedData();this._runtimeType!=="remoteUrl"&&this._invokeCallback(i,t);n.isFunction(r.dataBound)&&!a.cancel&&r.dataBound(this)}return this},summariesResponse:function(t,i){var f,h,r,u,o,e,c,s;if(t!==null&&t!==""){if(f=i,h=t.split("."),t.length>0){for(r=0;r<h.length;r++){if(f===null||f===undefined)break;f=f[h[r]]}this._dataSummaries=f}else this._dataSummaries=i;if((this._dataSummaries===undefined||this._dataSummaries===null)&&(this._dataSummaries=[]),this.settings.localSchemaTransform===!0&&this.schema()&&i&&i.Metadata&&i.Metadata.timezoneOffsetsSummaries&&(e=i.Metadata.timezoneOffsetsSummaries,this._dataSummaries._serverOffsetsSummaries=e,u=this.schema().schema,u&&u.fields))for(r=0;r<u.fields.length;r++)if(u.fields[r].type==="date"&&e[u.fields[r].name]!==undefined){t=u.fields[r].name;for(o in e[t])c=e[t][o],s=this._dataSummaries[t][o],n.type(s)==="string"&&s.indexOf("/Date(")!==-1&&(this._dataSummaries[t][o]=new Date(parseInt(s.replace("/Date(","").replace(")/",""),10)+c))}}},_populateTransformedData:function(n){this._transformedData=n!==null&&n!==undefined?n:this._data},_invokeCallback:function(n,t){var i,r;i=t||this.settings.callback;r=n||this.settings.callee;i&&(r?i.apply(r,[!0,"",this]):i(!0,"",this))},_remoteData:function(n,t){var i,f=this.settings.dataSource,e=this.settings.responseDataType,o=this.settings.responseContentType,r,u=this.settings.requestType;i=this._encodeUrl();this._customCallback=n?n:null;this._callee=t;r={url:f,data:u==="GET"?i:JSON.stringify(i),type:u,dataType:e,async:!0,context:this,contentType:o,cache:!1,dataFilter:this._dataFilter,success:this._successCallback,complete:this._completeCallback,converters:{"text json":function(n){return n}},error:this._errorCallback};this._processRequest(r)},_dataFilter:function(t,i){var u,r=this.context.schema(),s,e=this.context.settings.type,f,o=!1;if((i===undefined||i===null)&&(i=typeof t=="object"&&t&&typeof t.charAt!="function"?n.isXMLDoc(t)?"xml":"json":"text"),i==="xml")r._type="xml",u=this.context._processXmlResponse(t,!0,this.context);else if(i==="json")r&&(r._type="json"),s=n.type(t)==="string"?JSON.parse(t):t,o=!0,u=this.context._processJsonResponse(s,this.context);else if(jQuery.fn.jquery&&(f=jQuery.fn.jquery.split(".")),f&&f.length>=2&&(parseInt(f[1],10)>4||parseInt(f[0],10)>1)&&(this.dataTypes=[],this.dataTypes.push("text"),o=!0),t=n.type(t)==="string"?n.trim(t):t,t&&n.type(t)==="string"&&(t.startsWith("<?xml")||t.startsWith("<"))||e==="xml")r&&(r._type="xml"),u=this.context._processXmlResponse(this.context.stringToXmlObject(t),!1,this.context);else if(t&&n.type(t)==="string"&&t.startsWith("[")||e==="json"||e==="array")r&&(r._type="json"),u=this.context._processJsonResponse(JSON.parse(t),this.context);else if(t&&n.type(t)==="string"&&t.startsWith("{")||e==="json")r&&(r._type="json"),u=this.context._processJsonResponse(JSON.parse(t),this.context);else if(n.isXMLDoc(t))r&&(r._type="xml"),u=this.context._processXmlResponse(t,!0,this.context);else if(t!==""&&t!==null)throw new Error(n.ig.DataSourceLocale.locale.errorUnrecognizedResponseType);return o&&(this.context.settings.paging&&this.context.settings.paging.enabled&&this.context.settings.paging.appendPage||(this.context._data=u),this.context._alreadySet=!0),u},_successCallback:function(n){var t,i=n?n.length:0;if(n!==undefined&&n!==null||this._alreadySet)if(this._data.length>=0&&this.settings.paging&&this.settings.paging.enabled&&this.settings.paging.appendPage)for(t=0;t<i;++t)this._data[this._data.length]=n[t];else this._alreadySet?this._dataView=this._data:(this._data=n,this._dataView=n);else this._data=[],this._dataView=[];this._alreadySet=!1;this._populateTransformedData();this._isPagingReq=!1;this._isFilteringReq=!1;this._isSortingReq=!1;this._isSummariesReq=!1},_errorCallback:function(t,i,r){var u=this._customCallback||this.settings.callback,f,e;this._isPagingReq=!1;this._isFilteringReq=!1;this._isSortingReq=!1;this._isSummariesReq=!1;e=i===null?" ":" ("+i+") ";f=n.ig.DataSourceLocale.locale.errorRemoteRequest+e+(r!==undefined?r.message:t&&t.statusText?t.statusText:"");u&&this._callee?u.apply(this._callee,[!1,f,this]):u&&u(!1,f,this)},_completeCallback:function(){var n,i,t=this.settings.sorting,r=this.settings.paging;t.type==="local"&&t.defaultFields.length>0&&this.sort(t.defaultFields,t.defaultDirection,!1);r.enabled&&r.type==="local"&&this._page();n=this._customCallback||this.settings.callback;i=this._callee||this.settings.callee;n&&i?n.apply(i,[!0,"",this]):n&&n(!0,"",this)},_processRequest:function(t){var r,i;this.settings.responseDataType==="jsonp"?(r={dataType:"jsonp",type:"GET",url:t.url,data:t.data,success:n.proxy(this._jsonpFilter,this)},i=this.settings,i.jsonp!==undefined&&i.jsonp!==null&&(r.jsonp=this.settings.jsonp),i.jsonpCallback!==undefined&&i.jsonpCallback!==undefined&&(r.jsonpCallback=this.settings.jsonpCallback),n.ajax(r)):n.ajax(t)},_jsonpFilter:function(t){var i,r;if(this.context=this,i=this._dataFilter(t,"json"),i.length||n.type(i)!=="object"||(i=[i]),this._data.length>=0&&this.settings.paging&&this.settings.paging.enabled&&this.settings.paging.appendPage)for(r=0;r<i.length;++r)this._data[this._data.length]=i[r];else this._data=i,this._dataView=i;this._populateTransformedData();this._completeCallback()},_processJsonResponse:function(n,t){var i,r=t.schema(),u,f,e;if(this._response_data&&this._response_data(n),r&&r.fields&&r.fields().length>0&&this.settings.localSchemaTransform)i=r.transform(n);else if(u=t.settings.responseDataKey,u!==null&&u!==undefined)if(f=u.split("."),f.length>0){for(i=n,e=0;e<f.length;e++)i=i[f[e]];typeof i=="string"&&(i=JSON.parse(i))}else i=n;else i=n;return(t._isPagingReq||t._isFilteringReq)&&this.totalRecordsCount(null,this.settings.responseTotalRecCountKey,n,t),n.Metadata&&(this._metadata=n.Metadata),this.summariesResponse(this.settings.summaries.summariesResponseKey,n),i},_processXmlResponse:function(t,i,r){var u,f=r.schema(),o,e;return f&&f.fields&&f.fields().length>0?u=this.settings.localSchemaTransform?f.transform(t):t:(e=r.settings.responseDataKey,e&&e!==""?(o=new n.ig.DataSchema,u=r._xmlToArray(o._findXmlRecordsRoot(t,e))):u=r._xmlToArray(t)),u},_xmlToArray:function(n){var u=[],f=n,i,r,t,o,s,e;for(e=window.ActiveXObject,n&&n.childNodes&&n.childNodes.length===1&&(f=n.childNodes[0]),i=0;i<f.childNodes.length;i++)for(r=f.childNodes[i],u[i]=[],t=0;t<r.childNodes.length;t++)o=e===undefined?r.childNodes[t].localName:r.childNodes[t].baseName,s=e===undefined?r.childNodes[t].textContent:r.childNodes[t].text,u[i][o]=s;return u},_encodeUrl:function(){var i=this.settings,t,r=!0;return t={sortingParams:{},filteringParams:{},pagingParams:{},selectParams:{},summariesParams:{},extraParams:{},pkParams:{}},n.isFunction(i.urlParamsEncoding)&&(r=i.urlParamsEncoding(this,t)),r&&(this._encodeSelectParams(t),this._encodeSortingParams(t),this._encodeFilteringParams(t),this._encodePagingParams(t),this._encodeSummariesParams(t),this._encodePkParams(t),n.isFunction(this.settings.encodeExtraParams)&&this.settings.encodeExtraParams(this,t),n.isFunction(i.urlParamsEncoded)&&i.urlParamsEncoded(this,t)),n.extend(!0,{},t.sortingParams,t.filteringParams,t.pagingParams,t.selectParams,t.summariesParams,t.extraParams,t.pkParams)},_encodePkParams:function(n){var t=this.settings.paging,r=this.settings.sorting,u=this.settings.filtering,f=this.settings.summaries,i=this._schema?this._schema._pk:null;i&&(t.enabled&&t.type==="remote"||r.type==="remote"||u.type==="remote"||f.type==="remote")&&(n.pkParams.pk=i)},_encodeSelectParams:function(n){var i=n.selectParams,t;if(!this.settings.localSchemaTransform&&this.schema()&&this.schema().fields().length>0)for(i.$select="",t=0;t<this.schema().fields().length;t++)t!==0&&(i.$select+=","),i.$select+=this.schema().fields()[t].name;else!this.settings.localSchemaTransform&&this.schema()&&this.schema().fields().length===0&&(i.$select="*")},_encodePagingParams:function(n){var t=this.settings.paging;t.enabled&&t.type==="remote"&&(this._isPagingReq=!0,t.pageIndexUrlKey!==null&&t.pageSizeUrlKey!==null?(n.pagingParams[t.pageIndexUrlKey]=this.pageIndex(),n.pagingParams[t.pageSizeUrlKey]=this.pageSize()):(n.pagingParams.$skip=this.pageIndex()*this.pageSize(),n.pagingParams.$top=this.pageSize(),n.pagingParams.$inlinecount="allpages",this.settings.responseTotalRecCountKey===null&&(this.settings.responseTotalRecCountKey="d.__count")))},_encodeSortingParams:function(t){var r=this.settings.sorting,s,i,u,f,o,e=null;if(r.type==="remote"){for(u=r.exprString?this._parseSortExpressions(r.exprString):r.expressions,this._isSortingReq=!0,i=0;i<u.length;i++)u[i].layout&&(e=u[i].layout),r.sortUrlAscValueKey!==null&&r.sortUrlDescValueKey!==null&&r.sortUrlKey!==null?(s=u[i].dir&&u[i].dir.toLowerCase().startsWith("asc")?r.sortUrlAscValueKey:r.sortUrlDescValueKey,t.sortingParams[r.sortUrlKey+"("+u[i].fieldName+")"]=s):(t.sortingParams.$orderby===undefined&&(t.sortingParams.$orderby=""),t.sortingParams.$orderby=t.sortingParams.$orderby+u[i].fieldName+" "+u[i].dir.toLowerCase(),i<u.length-1&&(t.sortingParams.$orderby+=","));if(e){if(f=this.settings.dataSource,f&&n.type(f)==="string"&&f.indexOf("layout="+e)>=0)for(f=f.substr(f.indexOf("?")+1),o=f.split("&"),i=0;i<o.length;i++)if(o[i].indexOf("layout=")>=0){o[i].replace("layout=","")===e&&(e=null);break}e&&(t.sortingParams.layout=e)}}},_encodeFilteringParams:function(t){var h=this.settings.filtering,i,r,a,v,o,y,l,e,f,s,u,c;if(h.type==="remote"){for(i=h.exprString?this._parseFilterExprString(h.exprString):h.expressions,r=0;r<i.length;r++)this._isFilteringReq=!0,o=i[r].cond,v=o==="false"||o==="true"||o==="today"||o==="yesterday"||o==="thisMonth"||o==="lastMonth"||o==="nextMonth"||o==="thisYear"||o==="lastYear"||o==="nextYear"||o==="null"||o==="notNull"||o==="empty"||o==="notEmpty",h.filterExprUrlKey!==null?(a=h.filterExprUrlKey+"("+i[r].fieldName+")",y=n.type(i[r].expr)==="date"?Date.UTC(i[r].expr.getFullYear(),i[r].expr.getMonth(),i[r].expr.getDate(),i[r].expr.getHours(),i[r].expr.getMinutes()):i[r].expr,t.filteringParams[a]=t.filteringParams[a]===undefined?i[r].cond+"("+(v?"":y)+")":t.filteringParams[a]+","+i[r].cond+"("+(v?"":y)+")"):(t.filteringParams.$filter===undefined&&(t.filteringParams.$filter=""),c=i[r].fieldName,u=i[r].expr,n.type(u)==="string"&&(h.caseSensitive||(c="tolower("+c+")",u=u.toLowerCase()),u=u.replace(/\'/g,"''")),i[r].cond==="startsWith"?t.filteringParams.$filter+="startswith("+c+",'"+u+"') eq true":i[r].cond==="endsWith"?t.filteringParams.$filter+="endswith("+c+",'"+u+"') eq true":i[r].cond==="contains"?t.filteringParams.$filter+="indexof("+c+",'"+u+"') ge 0":i[r].cond==="doesNotContain"?t.filteringParams.$filter+="indexof("+c+",'"+u+"') eq -1":i[r].cond==="equals"?t.filteringParams.$filter+=n.type(i[r].expr)==="string"?c+" eq '"+u+"'":i[r].fieldName+" eq "+i[r].expr:i[r].cond==="true"?t.filteringParams.$filter+=i[r].fieldName+" eq true":i[r].cond==="false"?t.filteringParams.$filter+=i[r].fieldName+" eq false":i[r].cond==="doesNotEqual"?t.filteringParams.$filter+=n.type(i[r].expr)==="string"?c+" ne '"+u+"'":i[r].fieldName+" ne "+i[r].expr:i[r].cond==="greaterThan"?t.filteringParams.$filter+=i[r].fieldName+" gt "+i[r].expr:i[r].cond==="lessThan"?t.filteringParams.$filter+=i[r].fieldName+" lt "+i[r].expr:i[r].cond==="greaterThanOrEqualTo"?t.filteringParams.$filter+=i[r].fieldName+" ge "+i[r].expr:i[r].cond==="lessThanOrEqualTo"?t.filteringParams.$filter+=i[r].fieldName+" le "+i[r].expr:i[r].cond==="null"?t.filteringParams.$filter+=i[r].fieldName+" eq null":i[r].cond==="notNull"?t.filteringParams.$filter+=i[r].fieldName+" ne null":i[r].cond==="empty"?t.filteringParams.$filter+="length("+i[r].fieldName+") eq 0":i[r].cond==="notEmpty"?t.filteringParams.$filter+="length("+i[r].fieldName+") gt 0":i[r].cond==="on"?(u=this._parser.toDate(i[r].expr),f=u.getFullYear(),e=u.getMonth()+1,l=u.getDate(),t.filteringParams.$filter+="day("+i[r].fieldName+") eq "+l+" and ",t.filteringParams.$filter+="month("+i[r].fieldName+") eq "+e+" and ",t.filteringParams.$filter+="year("+i[r].fieldName+") eq "+f):i[r].cond==="notOn"?(u=this._parser.toDate(i[r].expr),t.filteringParams.$filter+=i[r].fieldName+" ne DateTime'"+n.ig.formatter(u,"date","yyyy-MM-dd")+"'"):i[r].cond==="after"?(u=this._parser.toDate(i[r].expr),t.filteringParams.$filter+=i[r].fieldName+" gt DateTime'"+n.ig.formatter(u,"date","yyyy-MM-dd")+"'"):i[r].cond==="before"?(u=this._parser.toDate(i[r].expr),t.filteringParams.$filter+=i[r].fieldName+" lt DateTime'"+n.ig.formatter(u,"date","yyyy-MM-dd")+"'"):i[r].cond==="today"?(u=this._parser.toDate(i[r].expr),f=u.getFullYear(),e=u.getMonth()+1,l=u.getDate(),t.filteringParams.$filter+="day("+i[r].fieldName+") eq "+l+" and ",t.filteringParams.$filter+="month("+i[r].fieldName+") eq "+e+" and ",t.filteringParams.$filter+="year("+i[r].fieldName+") eq "+f):i[r].cond==="yesterday"?(u=this._parser.toDate(i[r].expr),f=u.getFullYear(),e=u.getMonth()+1,l=u.getDate(),t.filteringParams.$filter+="day("+i[r].fieldName+") eq "+l+" and ",t.filteringParams.$filter+="month("+i[r].fieldName+") eq "+e+" and ",t.filteringParams.$filter+="year("+i[r].fieldName+") eq "+f):i[r].cond==="thisMonth"?(s=new Date,e=s.getMonth()+1,f=s.getFullYear(),t.filteringParams.$filter+="month("+i[r].fieldName+") eq "+e+" and ",t.filteringParams.$filter+="year("+i[r].fieldName+") eq "+f):i[r].cond==="lastMonth"?(s=new Date,e=s.getMonth()+1,f=s.getFullYear(),e===1?(e=12,f--):e--,t.filteringParams.$filter+="month("+i[r].fieldName+") eq "+e+" and ",t.filteringParams.$filter+="year("+i[r].fieldName+") eq "+f):i[r].cond==="nextMonth"?(s=new Date,e=s.getMonth()+1,f=s.getFullYear(),e===12?(e=1,f++):e++,t.filteringParams.$filter+="month("+i[r].fieldName+") eq "+e+" and ",t.filteringParams.$filter+="year("+i[r].fieldName+") eq "+f):i[r].cond==="thisYear"?(s=new Date,f=s.getFullYear(),t.filteringParams.$filter+="year("+i[r].fieldName+") eq "+f):i[r].cond==="lastYear"?(s=new Date,f=s.getFullYear()-1,t.filteringParams.$filter+="year("+i[r].fieldName+") eq "+f):i[r].cond==="nextYear"&&(s=new Date,f=s.getFullYear()+1,t.filteringParams.$filter+="year("+i[r].fieldName+") eq "+f),r<i.length-1&&(t.filteringParams.$filter+=" and "));h.filterLogicUrlKey!==null&&i.length>0&&(t.filteringParams[h.filterLogicUrlKey]=i[0].logic)}},_encodeSummariesParams:function(n){var t,r,f=this.settings.summaries,i=f.columnSettings,u,e=i.length;if(f.type==="remote")for(t=0;t<e;t++)if(u="",i[t].summaryOperands!==undefined&&i[t].summaryOperands!==null){for(r=0;r<i[t].summaryOperands.length;r++)(i[t].summaryOperands[r].active===!0||i[t].summaryOperands[r].active===1)&&(u+=i[t].summaryOperands[r].type+",");u!==""&&(n.summariesParams[f.summaryExprUrlKey+"("+i[t].columnKey+")"]=u.slice(0,-1))}},_page:function(n){var u=0,t,r,i=0;if(n===undefined&&(n=!1),n?u=this._dataView.length:this._dataView=[],this._filter)for(t=this.pageIndex()*this.pageSize(),r=t+this.pageSize()>=this._filteredData.length?this._filteredData.length:t+this.pageSize(),i=t;i<r;i++)this._dataView[u++]=this._filteredData[i];else for(t=this.pageIndex()*this.pageSize(),r=t+this.pageSize()>=this._data.length?this._data.length:t+this.pageSize(),i=t;i<r;i++)this._dataView[u++]=this._data[i]},sort:function(t,i){var u=this.settings.sorting,s,e,h,f=this.settings.paging,r,c=!1,o=this.settings;if(t===undefined||t===null)throw new Error(n.ig.DataSourceLocale.locale.noSortingFields);return e=function(t,r,f,e,s){function h(t,i,r,u,f){return(t&&n.type(u)==="date"&&n.type(f)==="date"&&(t==="time"||t==="timeLong"||t==="h:mm:ss tt")&&(u=new Date("January 01, 2000 "+n.ig.formatter(u,"date",t,r,i)),f=new Date("January 01, 2000 "+n.ig.formatter(f,"date",t,r,i))),(u===null||u===undefined)&&(f===null||f===undefined))?0:(u===null||u===undefined)&&f!==null&&f!==undefined?-1:u!==null&&u!==undefined&&(f===null||f===undefined)?1:u>f?1:u<f?-1:0}return e=e?-1:1,function(n,f){var v,a,b=[],k=[],c,l,nt,d,y,g,p,w;for(t&&(g=t.options,p=g.enableUTCDates,w=!g.rowTemplate||g.rowTemplate.length<=0),v=0;v<r.length;v++)(nt=r[v].fieldName,t&&t.columnByKey&&(d=t.columnByKey(nt),d!==undefined&&d!==null&&(y=d.format)),r[v].layout&&(o.key&&o.key!==r[v].layout||!o.key))||(a=r[v],a.fieldIndex>=0&&(a.fieldName=a.fieldIndex),c=n[a.fieldName],l=f[a.fieldName],s!==undefined&&(c=s(c,a.fieldName),l=s(l,a.fieldName)),u.caseSensitive===!1&&(c!==undefined&&c!==null&&c.toLowerCase&&(c=c.toLowerCase()),l!==undefined&&l!==null&&l.toLowerCase&&(l=l.toLowerCase())),a.dir!==undefined&&a.dir!==null?(e=a.dir.toLowerCase().startsWith("desc"),e=e?-1:1):i!==undefined&&i!==null&&i!==""&&(e=i.toLowerCase().startsWith("desc"),e=e?-1:1),r.length===1?(b=e*h(y,p,w,c,l),k=e*h(y,p,w,l,c)):e===-1?(b.push(-h(y,p,w,c,l)),k.push(-h(y,p,w,l,c))):(b.push(h(y,p,w,c,l)),k.push(h(y,p,w,l,c))));return b<k?-1:b>k?1:0}},u.applyToAllData&&u.type==="local"?(r=this._filter&&(f.type==="local"&&f.enabled===!0||f.enabled===!1||f.type==="remote"&&f.enabled===!0&&this.settings.filtering.type==="local")?this._filteredData:this.data(),c=!0):r=this.dataView(),n.type(u.customFunc)==="function"?r=u.customFunc(r,t,i):(s=this.settings.schema,i||(i=""),n.type(u.compareFunc)==="function"&&(e=u.compareFunc),n.isFunction(u.customConvertFunc)&&(h=u.customConvertFunc),n.type(t)==="string"&&(t=this._parseSortExpressions(t)),t.length>0&&(r=r.sort(e(this.settings.callee,t,s,i.toLowerCase().startsWith("asc")?!1:!0,h)),this._allDataSorted=r===this.data())),c&&f.type==="local"?(this._filter?this._filteredData=r:this._data=r,this._page()):this._dataView=r,this._populateTransformedData(r),this},clearLocalSorting:function(){var i=this.settings.sorting,t=this.settings.paging,n,r=!1;return i.applyToAllData&&i.type==="local"?(n=this._filter&&(t.type==="local"&&t.enabled===!0||t.enabled===!1)?this._filteredData:this.data(),r=!0):n=this.dataView(),r&&t.type==="local"?(this._filter?this._filteredData=n:this._data=n,this._page()):this._dataView=n,this._populateTransformedData(),this},_parseSortExpressions:function(t){for(var r=[],f,u=t.split(","),i=0;i<u.length;i++)r[i]={},f=n.trim(u[i]).split(" "),r[i].fieldName=f[0],r[i].dir=f[1];return r},filter:function(t,i,r,u){var e,f,w=null,g=0,c=!1,a=this.settings.filtering,k=this.settings.paging,o,v,l,y,h,s,d,b,p;if(y=this.schema(),y===null||y===undefined)throw new Error(n.ig.DataSourceLocale.locale.filteringNoSchema);if(n.type(t)==="string"&&(w=t),n.type(u)==="string"?b=u:n.type(u)==="undefined"&&(u=[]),n.type(t)!=="array"||t.length!==0||n.type(u)!=="array"||u.length!==0){if(a.applyToAllData&&a.type==="local"?(o=this.data(),d=!0):this._cachedDataView&&this._cachedDataView.length>0?o=this._cachedDataView:(this._cachedDataView=n.merge([],this.dataView()),o=this._cachedDataView),n.type(a.customFunc)==="function")o=a.customFunc(t,o),this._filteredData=o,this._dataView=[];else for(this._dataView=[],this._filteredData=[],e=0;e<o.length;e++){for(c=!1,w&&(t=this._parseFilterExprString(w)),b&&(u=this._parseFilterExprString(b)),f=0;f<t.length;f++){if(h=y.fields(),t[f].fieldIndex)t[f].fieldIndex<h.length&&(v=h[t[f].fieldIndex].type),c=!this._findMatch(o[e][t[f].fieldIndex],t[f].expr,v,!a.caseSensitive,t[f].cond);else{if(t[f].dataType!==undefined&&t[f].dataType!==null)v=t[f].dataType;else for(l=0;l<h.length;l++)if(h[l].name===t[f].fieldName){v=h[l].type;break}c=!this._findMatch(o[e][t[f].fieldName],t[f].expr,v,!a.caseSensitive,t[f].cond)}if(s=t[f].logic!==null&&t[f].logic!==undefined&&(t[f].logic.toLowerCase()==="or"||t[f].logic.toLowerCase()==="and")?t[f].logic:i,(s===undefined||s===null||n.type(s)!=="string")&&(s="and"),c&&s.toLowerCase()==="and")break;else if(!c&&s.toLowerCase()==="or")break}if(!c)for(f=0;f<u.length;f++){if(h=y.fields(),u[f].fieldIndex)u[f].fieldIndex<h.length&&(v=h[u[f].fieldIndex].type),p=o[e][u[f].fieldIndex]?o[e][u[f].fieldIndex].toString():"",c=!this._findMatch(p,u[f].expr,"string",!a.caseSensitive,u[f].cond);else{for(l=0;l<h.length;l++)if(h[l].name===u[f].fieldName){v=h[l].type;break}p=o[e][u[f].fieldName]!==null&&o[e][u[f].fieldName]!==undefined?o[e][u[f].fieldName].toString():"";c=!this._findMatch(p,u[f].expr,"string",!a.caseSensitive,u[f].cond)}if(s=u[f].logic!==null&&u[f].logic!==undefined&&(u[f].logic.toLowerCase()==="or"||u[f].logic.toLowerCase()==="and")?u[f].logic:i,(s===undefined||s===null||n.type(s)!=="string")&&(s="and"),c&&s.toLowerCase()==="and")break;else if(!c&&s.toLowerCase()==="or")break}c||(this._filteredData[g++]=o[e])}if(this._filter=!0,d&&k.type==="local"&&k.enabled===!0)this.settings.paging.pageIndex=0,this.pageSizeDirty(!0),this._page();else for(e=0;e<this._filteredData.length;e++)this._dataView[e]=this._filteredData[e];return this._populateTransformedData(this._filteredData),this}},clearLocalFilter:function(){var t,u=this.settings.filtering,r=this.settings.paging,i,f;if(u.applyToAllData&&u.type==="local"?(i=this.data(),f=!0):this._cachedDataView&&this._cachedDataView.length>0?i=this._cachedDataView:(this._cachedDataView=n.merge([],this.dataView()),i=this._cachedDataView),this._dataView=[],this._filteredData=i,f&&r.type==="local"&&r.enabled===!0)this._filter=!0,this.settings.paging.pageIndex=0,this.pageSizeDirty(!0),this._page();else for(r.enabled===!1&&(this._filter=!0),t=0;t<this._filteredData.length;t++)this._dataView[t]=this._filteredData[t];return this._populateTransformedData(this._filteredData),this},_parseFilterExprString:function(t){for(var o=n.trim(t).split(/(?=AND+)|(?=OR+)/i),e,r=[],f,u,s=!0,i=0;i<o.length;i++){if(r[i]={},f=n.trim(o[i]).split(/(?= \=+)|(?=<>+)|(?=>+)|(?=<+)|(?=LIKE+)|(?=NOT\WLIKE)+|(?=>\=+)|(?=<\=+)/),n.trim(o[i]).toLowerCase().startsWith("and")?r[i].logic="AND":n.trim(o[i]).toLowerCase().startsWith("or")&&(r[i].logic="OR"),i>0&&(r[i].logic==="AND"||r[i].logic==="OR")&&(r[i-1].logic=r[i].logic),r[i].fieldName=f[0].toLowerCase().startsWith("and")||f[0].toLowerCase().startsWith("or")?n.trim(f[0].split(" ")[1]):n.trim(f[0]),u=n.trim(f[1]).split(" "),o[i].indexOf("<>")!==-1&&(u[0]="<>",u[1]=f[2].replace(">","")),u.length>2){for(e=2;e<u.length;e++)u[1]=u[1]+" "+u[e];u=[u[0],u[1]]}for(r[i].expr=f[1].startsWith("NOT")?n.trim(f[2].replace("LIKE","")):u[1],e=0;e<this.schema().schema.fields.length;e++)if(this.schema().schema.fields[e].name===r[i].fieldName){s=!1;break}if(s)throw new Error(n.ig.DataSourceLocale.locale.fieldMismatch+r[i].fieldName);if(s=!0,u[0]===">")r[i].cond="greaterThan";else if(u[0]==="LIKE")r[i].cond=r[i].expr.startsWith("%")&&r[i].expr.endsWith("%")?"contains":r[i].expr.endsWith("%")?"startsWith":r[i].expr.startsWith("%")?"endsWith":"equals",r[i].expr=r[i].expr.replace(/%/g,"");else if(u[0]==="NOT LIKE"||u[0]==="NOT")r[i].cond=r[i].expr.startsWith("%")&&r[i].expr.endsWith("%")?"doesNotContain":"doesNotEqual",r[i].expr=r[i].expr.replace(/%/g,"");else if(u[0]==="=")r[i].cond="equals";else if(u[0]==="<>")r[i].cond="doesNotEqual";else if(u[0]==="<")r[i].cond="lessThan";else if(u[0]==="<=")r[i].cond="lessThanOrEqualTo";else if(u[0]===">=")r[i].cond="greaterThanOrEqualTo";else throw new Error(n.ig.DataSourceLocale.locale.unrecognizedCondition+t);}return r},_findMatch:function(t,i,r,u,f){var e,o=f==="false"||f==="true"||f==="today"||f==="yesterday"||f==="thisMonth"||f==="lastMonth"||f==="nextMonth"||f==="thisYear"||f==="lastYear"||f==="nextYear"||f==="null"||f==="notNull"||f==="empty"||f==="notEmpty";if(i===""&&!o)return!0;if(e=n.trim(i),r==="regexp"||r==="string"&&e.startsWith("/")&&e.endsWith("/"))return r==="regexp"?this._findRegExpMatch(t,i,!1):this._findRegExpMatch(t,e.substring(1,e.length-1),!0);if(n.type(t)==="date"&&(r===undefined||r===null)||r==="date"){try{i=this._parser.toDate(i)}catch(s){}return this._findDateMatch(t,i,f)}return n.type(t)==="boolean"&&(r===undefined||r===null)||r==="boolean"||r==="bool"?this._findBoolMatch(t,f):n.type(t)==="number"&&(r===undefined||r===null)||r==="number"?this._findNumericMatch(t,i,f):this._findStringMatch(t,i,u,f)},_findStringMatch:function(t,i,r,u){var f;if(f=t!==null&&t!==undefined?r?t.toString().toLowerCase():t||"":t,i!==null&&i!==undefined&&(i=r?i.toString().toLowerCase():i.toString()),u==="startsWith")return f!==null&&f!==undefined&&f.startsWith(i);if(u==="endsWith")return f!==null&&f!==undefined&&f.endsWith(i);if(u==="contains")return f!==null&&f!==undefined&&f.indexOf(i)!==-1;if(u==="doesNotContain")return f!==null&&f!==undefined&&f.indexOf(i)===-1;if(u==="equals")return f!==null&&f!==undefined&&f===i;if(u==="doesNotEqual")return f!==null&&f!==undefined&&f!==i;if(u==="null")return f===null;if(u==="notNull")return f!==null;if(u==="empty")return f===null||f===undefined||f.length===0;if(u==="notEmpty")return f===null||f===undefined||f.length!==0;throw new Error(n.ig.DataSourceLocale.locale.errorUnrecognizedFilterCondition+u);},_findRegExpMatch:function(n,t,i){return i?new RegExp(t).test(n):n.match(t)},_findNumericMatch:function(t,i,r){if(n.type(i)!=="number"&&(i=this._parser.toNumber(i)),r==="equals")return t===i;if(r==="doesNotEqual")return t!==i;if(r==="greaterThan")return t>i;if(r==="lessThan")return t<i;if(r==="greaterThanOrEqualTo")return t>=i;if(r==="lessThanOrEqualTo")return t<=i;if(r==="null")return t===null;if(r==="notNull")return t!==null;if(r==="empty")return t===null||t===undefined||isNaN(t);if(r==="notEmpty")return t!==null&&t!==undefined&&!isNaN(t);throw new Error(n.ig.DataSourceLocale.locale.errorUnrecognizedFilterCondition+r);},_findBoolMatch:function(t,i){if(i==="true")return t;if(i==="false")return!t;if(i==="null")return t===null;if(i==="notNull")return t!==null;if(i==="empty")return t===null||t===undefined;if(i==="notEmpty")return t!==null&&t!==undefined;throw new Error(n.ig.DataSourceLocale.locale.errorUnrecognizedFilterCondition+i);},_findDateMatch:function(t,i,r){var p,w,b,u,k,d,g,c,f,l,v,h,e,o,a,y,nt,s;if(t!==null&&t!==undefined&&(p=t.getDay(),a=t.getDate(),w=t.getMinutes(),b=t.getHours(),u=t.getYear(),f=t.getMonth()),n.type(i)==="date"?(k=i.getDay(),y=i.getDate(),d=i.getMinutes(),g=i.getHours(),c=i.getYear(),l=i.getMonth()):i=new Date(i),h=new Date,s=new Date(h.getTime()),s.setDate(s.getDate()-1),nt=h.getDate(),e=h.getYear(),o=h.getMonth(),v=p===k&&w===d&&b===g&&u===c&&f===l,r==="equals")return v;if(r==="doesNotEqual")return!v;if(r==="before")return t<i;if(r==="after")return t>i;if(r==="today")return a===nt&&f===o&&u===e;if(r==="yesterday")return s.getDay()===t.getDay()&&s.getMonth()===t.getMonth()&&s.getFullYear()===t.getFullYear();if(r==="thisMonth")return f===o&&u===e;if(r==="lastMonth")return o===0?f===11&&u===e-1:f===o-1&&u===e;if(r==="nextMonth")return o===11?f===0&&u===e+1:f===o+1&&u===e;if(r==="thisYear")return u===e;if(r==="lastYear")return u===e-1;if(r==="nextYear")return u===e+1;if(r==="on")return u===c&&f===l&&a===y;if(r==="notOn")return!(u===c&&f===l&&a===y);if(r==="null")return t===null;if(r==="notNull")return t!==null;if(r==="empty")return t===null||t===undefined;if(r==="notEmpty")return t!==null&&t!==undefined;throw new Error(n.ig.DataSourceLocale.locale.errorUnrecognizedFilterCondition+r);},totalRecordsCount:function(t,i,r,u){var f,o,e;if(u!==undefined&&u!==null)if(i){if(f=r,f.hasOwnProperty(i))f=f[i];else for(o=i.split("."),e=0;e<o.length;e++)f=f[o[e]];r&&f!==undefined&&f!==null?(this._recCount=n.type(f)==="number"?f:parseInt(f,10),this.hasTotalRecordsCount(!0)):this.hasTotalRecordsCount(!1)}else this.hasTotalRecordsCount(!1);else t!==undefined&&t!==null&&(this._recCount=t);return this._recCount},hasTotalRecordsCount:function(n){if(n===undefined||n===null)return this._hasCount;this._hasCount=n},metadata:function(n){return n===null||n===undefined||n===""||this._metadata===null||this._metadata===undefined?this._metadata:this._metadata[n]},totalLocalRecordsCount:function(){return this._filter?this._dataView.length:this._data.length},pageCount:function(){var n,t;return t=this._filter?this.totalRecordsCount()>0?this.totalRecordsCount():this._filteredData.length:this.totalRecordsCount()>0?this.totalRecordsCount():this._data.length,n=Math.ceil(t/this.settings.paging.pageSize),n===0?1:n},pageIndex:function(n){return n===undefined||n===null?this.settings.paging.pageIndex===undefined?0:this.settings.paging.pageIndex:(this.settings.paging.pageIndex=parseInt(n,10),this._cachedDataView=null,this.settings.paging.type==="local"?(this._page(this.settings.paging.appendPage),this._invokeCallback()):this.dataBind(),this)},prevPage:function(){return this.pageIndex(this.pageIndex()===0?0:this.pageIndex()-1),this},nextPage:function(){return this.pageIndex()>=this.pageCount()-1?this:(this.pageIndex(this.pageIndex()+1),this)},pageSize:function(n){return n===undefined||n===null?this.settings.paging.pageSize:(this.settings.paging.pageSize=parseInt(n,10),this.settings.paging.appendPage&&(this.settings.paging.pageIndex=0,this._cachedDataView=null),this.settings.paging.type==="local"?(this._page(),this._invokeCallback()):this.dataBind(),this)},pageSizeDirty:function(n){if(n===undefined||n===null)return this._dirty;this._dirty=n},recordsForPage:function(n){var u=[],t,i,f,r,e=0;for(i=this.pageSize(),t=n*i,f=t+i>=this._data.length?this._data.length:t+i,r=t;r<f;r++)u[e++]=this._data[r];return u},tableToObject:function(t){try{var u=n(t).children("tbody").children(),e,f,i,r;for(e=u.length>0?u[0].cells.length:0,f=[],i=0;i<u.length;i++)for(f[i]=[],r=0;r<e;r++)f[i][r]=u[i].cells[r].innerHTML;return f}catch(o){throw new Error(n.ig.DataSourceLocale.locale.errorParsingHtmlTableNoSchema+o.message);}},_validateTable:function(t){if(t.length===0)throw new Error(n.ig.DataSourceLocale.locale.errorTableWithIdNotFound+this.dataSource());else return t[0]},stringToJSONObject:function(t){var i={};try{i=JSON.parse(t)}catch(r){throw new Error(n.ig.DataSourceLocale.locale.errorParsingJsonNoSchema+r.message);}return i},stringToXmlObject:function(t){var i,r;try{window.ActiveXObject?(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(t)):(r=new DOMParser,i=r.parseFromString(t,"text/xml"))}catch(u){throw new Error(n.ig.DataSourceLocale.locale.errorParsingXmlNoSchema+u.message);}return i}});n.ig.TypeParser=n.ig.TypeParser||Class.extend({toStr:function(n){return this.isNullOrUndefined(n)?"":n+this.empty()},toDate:function(t,i,r){return this.isNullOrUndefined(t)||t===""||n.type(t)==="function"?null:n.type(t)==="date"?t:t.length&&t.indexOf("/Date(")!==-1?this._serverOffsets===undefined||this._serverOffsets[i]===undefined?new Date(parseInt(t.replace("/Date(","").replace(")/",""),10)+this._serverOffset):this._serverOffsets[i][r]!==undefined&&this._serverOffsets[i][r]!==null?new Date(parseInt(t.replace("/Date(","").replace(")/",""),10)+this._serverOffsets[i][r]):new Date(parseInt(t.replace("/Date(","").replace(")/",""),10)):new Date(t)},toNumber:function(t){return this.isNullOrUndefined(t)||n.type(t)==="function"?null:t*this.num()},toBool:function(t){var i=n.type(t);return i==="boolean"?t:this.isNullOrUndefined(t)||i==="function"?!1:t==="1"||t===1||i==="string"&&t.toLowerCase()==="true"?!0:!1},isNullOrUndefined:function(n){return n===null||n===undefined},empty:function(){return""},num:function(){return 1}});n.ig.DataSchema=n.ig.DataSchema||Class.extend({schema:{fields:[],searchField:null,outputResultsName:null},init:function(t,i){i&&(this.schema=n.extend(!0,{},n.ig.DataSchema.prototype.schema,i));this._type=t;this._parser=new n.ig.TypeParser;this._parser._serverOffset=0},transform:function(n){var t=[];switch(this._type){case"array":t=this._arrays(n);break;case"json":t=this._json(n);break;case"xml":t=this._xml(n);break;case"htmlTableDom":t=this._table(n);break;case"htmlListDom":t=this._list(n);break;default:throw new Error("unknown data source type: "+this._type);}return t},_setResKey:function(n,t){return this.isEmpty(n)?t:(t[n]=[],t[n])},_convertType:function(n,t,i,r){return n==="string"?this._parser.toStr(t):n==="date"?this._parser.toDate(t,i,r):n==="number"?this._parser.toNumber(t):n==="boolean"||n==="bool"?this._parser.toBool(t):t},_val:function(n,t,i,r,u){var f=n.type,e=null;this.isEmpty(f)?this.isEmpty(n.name)?i[r][e]=u?u[r][e]:t:i[r][n.name]=u?u[r][n.name]:t:this.isEmpty(n.name)?i[r][e]=this._convertType(f,t,this._pk?i[r][this._pk]:r,n.name):i[r][n.name]=this._convertType(f,t,this._pk?i[r][this._pk]:r,n.name)},isEmpty:function(n){return n===undefined||n===null||n===""},_arrays:function(t){var r,u,e,o,s=this.schema.outputResultsName,f={},i;i=this._setResKey(s,f);this.isObjEmpty(i)&&n.type(i)!=="array"&&(i=[],f=i);try{for(t.length>0&&(o=n.type(t[0])==="array"),r=0;r<t.length;r++)if(t[r]!==undefined)for(i.push({}),u=0;u<this.schema.fields.length;u++)e=o?t[r][u]:t[r][this.schema.fields[u].name],this._val(this.schema.fields[u],e,i,i.length-1)}catch(h){throw new Error(n.ig.DataSourceLocale.locale.errorParsingArrays+h.message);}return f},_json:function(t){var u,r,i,o=this.schema.outputResultsName,e={},f;f=this._setResKey(o,e);this.isObjEmpty(f)&&(f=[],e=f);try{if(t.Metadata&&t.Metadata.timezoneOffset!==undefined&&!isNaN(t.Metadata.timezoneOffset)?(this._serverOffset=t.Metadata.timezoneOffset,this._parser._serverOffset=this._serverOffset,t.Metadata.timezoneOffsets&&(this._serverOffsets=t.Metadata.timezoneOffsets,this._parser._serverOffsets=t.Metadata.timezoneOffsets)):this._parser._serverOffset=0,!this.isEmpty(this.schema.searchField)){for(searchPath=this.schema.searchField.split(/[\[.\]]/),u=0;u<searchPath.length;u++)if((token=searchPath[u],token.length!==0)&&(token=/^(0|[1-9]\d*)$/.test(token)?parseInt(token,10):token.replace(/^('|")|('|")$/g,""),i=i?i[token]:t[token],i===undefined||i===null))break;i||n.type(t)!=="array"||(i=t)}if((i===undefined||this.isEmpty(this.schema.searchField))&&(i=t),i.length||n.type(i)!=="object"||(i=[i]),i&&i.length&&i.length>0)for(u=0;u<i.length;u++){if(f[u]={},this._pk&&this._pk!=="ig_pk"){for(r=0;r<this.schema.fields.length;r++)if(this.schema.fields[r].name===this._pk)break;if(i[u][this._pk]===undefined&&r>=this.schema.fields.length)throw new Error(n.ig.DataSourceLocale.locale.errorSchemaMismatch+this._pk);this._val(this.schema.fields[r],i[u][this.schema.fields[r].name],f,u,i)}for(r=0;r<this.schema.fields.length;r++)if(this.schema.fields[r].name!=="ig_pk"&&this.schema.fields[r].name!==this._pk){if(i[u][this.schema.fields[r].name]===undefined)throw new Error(n.ig.DataSourceLocale.locale.errorSchemaMismatch+this.schema.fields[r].name);this._val(this.schema.fields[r],i[u][this.schema.fields[r].name],f,u,i)}}}catch(s){throw new Error(n.ig.DataSourceLocale.locale.errorParsingJson+s.message);}return e},_xml:function(t,i){var r,u,e,o,s,nt=this.schema.outputResultsName,a={},f,v,w,c,y,h,b,k,p,d,l=0,g;p=window.ActiveXObject;f=this._setResKey(nt,a);this.isObjEmpty(f)&&(f=[],a=f);try{if(this.isEmpty(this.schema.searchField)?e=t:(v=this._xmlHasNamespaces(t),v?(w=this.schema.searchField.startsWith("//")?this.schema.searchField.substring(2,this.schema.searchField.length):this.schema.searchField,e=this._findXmlRecordsRoot(t,w)):window.ActiveXObject===undefined?e=!i||i.length<=0?t.evaluate(this.schema.searchField,t,null,XPathResult.ANY_TYPE,null):t.evaluate(i,t,null,XPathResult.ANY_TYPE,null):(t instanceof ActiveXObject||(g=(new XMLSerializer).serializeToString(t),t=new window.ActiveXObject("Microsoft.XMLDOM"),t.async=!1,t.loadXML(g)),e=t.selectNodes(this.schema.searchField))),v)for(b=e.childNodes.length,l=0,r=0;r<b;r++){for(y=e.childNodes[r],f.push({}),u=0;u<this.schema.fields.length;u++)for(k=y.childNodes.length,c=0;c<k;c++)if(h=y.childNodes[c],this.schema.fields[u].name===(p===undefined?h.localName:h.baseName)){this._val(this.schema.fields[u],p===undefined?h.textContent:h.text,f,l);break}n.isEmptyObject(f[l])?f.pop():l++}else if(e&&window.ActiveXObject!==undefined)for(r=0;r<e.length;r++)for(s=e.item(r),f[r]={},u=0;u<this.schema.fields.length;u++)o=s.selectSingleNode(this.schema.fields[u].xpath),o?o.nodeType===1&&this.schema.childDataProperty&&o.nodeName===this.schema.childDataProperty?(this.schema.searchField=this.schema.childDataProperty,f[r][o.nodeName]=this._xml(s)):this._val(this.schema.fields[u],o.text,f,r):f[r][this.schema.fields[u].name]="";else if(e)for(r=0,s=e.iterateNext();s;){for(f[r]={},u=0;u<this.schema.fields.length;u++)o=t.evaluate(this.schema.fields[u].xpath,s,null,XPathResult.ANY_TYPE,null).iterateNext(),o?o.nodeType===1&&this.schema.childDataProperty&&(o.nodeName===this.schema.childDataProperty||o.nodeName===this.schema.seachField)?(d=!i||i.length<=0?this.schema.searchField+"["+(r+1)+"]/"+this.schema.childDataProperty:i+"["+(r+1)+"]/"+this.schema.childDataProperty,f[r][this.schema.childDataProperty]=this._xml(t,d)):this._val(this.schema.fields[u],o.textContent,f,r):f[r][this.schema.fields[u].name]="";r++;s=e.iterateNext()}}catch(tt){throw new Error(n.ig.DataSourceLocale.locale.errorParsingXml+tt.message);}return a},_findXmlRecordsRoot:function(n,t){var i,f,r,e,u;if(e=window.ActiveXObject,(e===undefined?n.localName:n.baseName)===t)u=n.parentNode;else if(n&&n.childNodes&&n.childNodes.length>0)for(f=n.childNodes.length,i=0;i<f;i++)r=n.childNodes[i],r.childNodes&&r.childNodes.length>0&&(u=this._findXmlRecordsRoot(r,t));return u},_xmlHasNamespaces:function(n){var r,t,i,f,u;if(n.childNodes&&n.childNodes.length&&n.childNodes.length>0){for(f=n.childNodes.length,r=0;r<f;r++){if(i=n.childNodes[r],!i)return!1;if(t=i.namespaceURI,t!==""&&t!==undefined&&t!==null)return!0}if(i&&i.childNodes&&i.childNodes.length>0)return(u=i.childNodes[0],!u)?!1:(t=u.namespaceURI,t!==""&&t!==undefined&&t!==null)}return!1},_table:function(t){var i,u,s,f,e,h=this.schema.outputResultsName,o={},r;f=n(t).find("tbody")[0];r=this._setResKey(h,o);this.isObjEmpty(r)&&(r=[],o=r);try{if(f&&f.nodeName&&f.nodeName==="TBODY")for(e=f.rows,i=0;i<e.length;i++)for(s=e[i],r[i]={},u=0;u<this.schema.fields.length;u++)this._val(this.schema.fields[u],s.cells[u].innerHTML,r,i);else throw new Error(n.ig.DataSourceLocale.locale.errorExpectedTbodyParameter);}catch(c){throw new Error(n.ig.DataSourceLocale.locale.errorParsingHtmlTable+c.message);}return o},_list:function(t){var u,o,f,y,e,p,i=this,a=n(t),r,s,h,c,l,v="data-";return n.mobile&&n.mobile.ns&&(v+=n.mobile.ns),u=[],a&&(a.is("ul")||a.is("ol"))&&a.children().length>0&&a.children("li:not(["+v+'role="itemTemplate"], ['+v+'role="detailsTemplate"], ['+v+'role="dividerTemplate"])').each(function(t){if(e=n(this),o=e.children("img"),u[t]={},i.schema.hasOwnProperty("primaryKey")&&i._val(i.schema.primaryKey,e.index(),u,t),i.schema.hasOwnProperty("isDivider")&&i._val(i.schema.isDivider,e.attr(v+"role")==="list-divider",u,t),o.length>0&&o.attr("src")&&i.schema.hasOwnProperty("imageUrl")&&i._val(i.schema.imageUrl,o.attr("src"),u,t),f=e.children("a"),f.length>0)r=f.html(),f.attr("href")&&i.schema.hasOwnProperty("navigateUrl")&&i._val(i.schema.navigateUrl,f.attr("href"),u,t),f.attr("target")&&i.schema.hasOwnProperty("target")&&i._val(i.schema.target,f.attr("target"),u,t),o.length===0&&(o=f.children("img"),o.length>0&&o.each(function(){r=this.outerHTML?r.replace(this.outerHTML,""):r.replace(n("<div>").append(this).html(),"")}),o.length>0&&o.attr("src")&&i.schema.hasOwnProperty("imageUrl")&&i._val(i.schema.imageUrl,o.attr("src"),u,t));else for(r="",s=0;s<e[0].childNodes.length;s++)e[0].childNodes[s].nodeType===3&&e[0].childNodes[s].data&&(r+=n.trim(e[0].childNodes[s].data));i.schema.hasOwnProperty("header")&&(h=e.children("h1, h2, h3, h4, h5, h6"),h.length===0&&f.length>0&&(h=f.children("h1, h2, h3, h4, h5, h6")),h.length>0&&(i._val(i.schema.header,h.text(),u,t),h.each(function(){r=this.outerHTML?r.replace(this.outerHTML,""):r.replace(n("<div>").append(this).html(),"")})));i.schema.hasOwnProperty("description")&&(c=e.children("p, dd"),c.length===0&&f.length>0&&(c=f.children("p, dd")),c.length>0&&(i._val(i.schema.description,c.text(),u,t),c.each(function(){r=this.outerHTML?r.replace(this.outerHTML,""):r.replace(n("<div>").append(this).html(),"")})));i.schema.hasOwnProperty("count")&&(l=e.children("span.ui-li-count"),l.length===0&&f.length>0&&(l=f.children("span.ui-li-count")),l.length>0&&(i._val(i.schema.count,parseInt(l.text(),10),u,t),l.each(function(){r=this.outerHTML?r.replace(this.outerHTML,""):r.replace(n("<div>").append(this).html(),"")})));i.schema.hasOwnProperty("text")&&i._val(i.schema.text,r,u,t);y=e.attr("id");y&&i.schema.hasOwnProperty("value")&&i._val(i.schema.value,y,u,t);p=e.children("ul, ol");p.length>0&&i.schema.hasOwnProperty("childData")&&i.schema.childData.hasOwnProperty("name")&&(u[t][i.schema.childData.name]=i._list(p))}),u},isObjEmpty:function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},fields:function(){return this.schema.fields}});n.ig.RemoteDataSource=n.ig.RemoteDataSource||n.ig.DataSource.extend({init:function(n){return n||(n={}),n.type="remoteUrl",this._super(n),this}});n.ig.JSONDataSource=n.ig.JSONDataSource||n.ig.DataSource.extend({init:function(n){return n||(n={}),n.type="json",this._super(n),this}});n.ig.RESTDataSource=n.ig.RESTDataSource||n.ig.DataSource.extend({settings:{restSettings:{create:{url:null,template:null,batch:!1},update:{url:null,template:null,batch:!1},remove:{url:null,template:null,batch:!1},encodeRemoveInRequestUri:!0,contentSerializer:null,contentType:"application/json; charset=utf-8"}},init:function(t){return t||(t={}),t.restSettings=n.extend(!0,this.settings.restSettings,t.restSettings),this._createHttpHandlers(),this._createLogVerbMapping(),this._setLazyUrls(),this._super(t),this},saveChanges:function(n,t){var r,u,i={POST:[],PUT:[],DELETE:[],CELL:[]},f;for(this._asyncCallbackCount=0,this._isc=n&&typeof n=="function"?n:null,this._iec=t&&typeof t=="function"?t:null,f=0;f<this._accumulatedTransactionLog.length;f++)r=this._accumulatedTransactionLog[f],u=this._logVerbMap[r.type],r.type==="cell"?i.CELL.push(r):this._isBatch(u)===!0?i[u].push(r):(this._asyncCallbackCount++,this._saveSingleChange(u,r));i.CELL.length>0&&this._saveAllCellChanges(i.CELL);i.POST.length>0&&(this._asyncCallbackCount++,this._saveAllCreateChanges(i.POST));i.PUT.length>0&&(this._asyncCallbackCount++,this._saveAllUpdateChanges(i.PUT));i.DELETE.length>0&&(this._asyncCallbackCount++,this._saveAllDeleteChanges(i.DELETE))},_saveSingleChange:function(n,t){var i,r;i=n==="POST"||n==="PUT"?t.row:null;r=this._getProperUrl(n,!1,n==="DELETE"||n==="PUT"?t.rowId:undefined);this._call(n,r,i)},_saveAllCellChanges:function(t){for(var u={},f=[],r,i=0;i<t.length;i++)r=t[i],u[r.rowId]===undefined&&(u[r.rowId]={},u[r.rowId].row=this.findRecordByKey(r.rowId)),u[r.rowId].row[r.col]=r.value;if(n.each(u,function(n,t){t.rowId=n;f.push(t)}),this._isBatch("PUT")===!0)this._asyncCallbackCount++,this._saveAllUpdateChanges(f);else for(i=0;i<f.length;i++)this._asyncCallbackCount++,this._saveSingleChange("PUT",f[i])},_saveAllCreateChanges:function(n){for(var i=[],t=0;t<n.length;t++)i.push(n[t].row);this._call("POST",this._getProperUrl("POST",!0),i)},_saveAllUpdateChanges:function(n){for(var i=[],r="?",t=0;t<n.length;t++)i.push(n[t].row),r+="index="+n[t].rowId+(t!==n.length-1?"&":"");this._call("PUT",this._getProperUrl("PUT",!0)+r,i)},_saveAllDeleteChanges:function(n){var i="",t,r=null;if(this.settings.restSettings.encodeRemoveInRequestUri===!0)for(i="?",t=0;t<n.length;t++)i+="index="+n[t].rowId+(t!==n.length-1?"&":"");else for(r=[],t=0;t<n.length;t++)r.push(n[t].rowId);this._call("DELETE",this._getProperUrl("DELETE",!0)+i,r)},_createHttpHandlers:function(){this._okHandler=n.proxy(this._responseOk,this);this._createdHandler=n.proxy(this._responseCreated,this);this._noContentHandler=n.proxy(this._responseNoContent,this);this._httpHandlers={POST:{201:this._createdHandler},PUT:{200:this._okHandler,201:this._createdHandler,204:this._noContentHandler},DELETE:{200:this._okHandler,204:this._noContentHandler}}},_createLogVerbMapping:function(){this._logVerbMap={newrow:"POST",row:"PUT",deleterow:"DELETE",cell:"PUT"}},_setLazyUrls:function(){var t=this.settings.restSettings,i=null,r=null;n.each(t,function(n,t){t&&(t.url&&(i=t.url),t.template&&(r=t.template))});n.each(t,function(n,t){t&&(t.url!==undefined&&t.url===null&&(t.url=i),t.template!==undefined&&t.template===null&&(t.template=r))});this._putUrl=t.update.url;this._putTmpl=t.update.template;this._postUrl=t.create.url;this._postTmpl=t.create.template;this._deleteUrl=t.remove.url;this._deleteTmpl=t.remove.template},_getProperUrl:function(n,t,i){var u=n.toLowerCase(),r=this["_"+u+"Url"];return r&&r.length>0&&r.substr(r.length-1)!=="/"&&(r+="/"),t&&t!==!1||(this["_"+u+"Tmpl"]!==null?(r=this["_"+u+"Tmpl"],i&&(r=r.replace("${id}",i))):i&&(r+=i)),r},_responseOk:function(n,t,i){this._asyncCallbackCount--;this._asyncCallbackCount===0&&this._saveChangesSuccess({Success:t==="success"},t,i)},_responseCreated:function(n,t,i){this._asyncCallbackCount--;this._asyncCallbackCount===0&&this._saveChangesSuccess({Success:t==="success"},t,i)},_responseNoContent:function(n,t,i){this._asyncCallbackCount--;this._asyncCallbackCount===0&&this._saveChangesSuccess({Success:t==="success"||t==="nocontent"},t,i)},_isBatch:function(n){switch(n){case"POST":return this.settings.restSettings.create.batch;case"PUT":return this.settings.restSettings.update.batch;case"DELETE":return this.settings.restSettings.remove.batch;default:return!1}},_call:function(t,i,r){var e,o=this.settings.restSettings.contentType,u=this.settings.restSettings.contentSerializer,f=this;u!==null&&typeof u=="string"&&(u=window[u]);r!==null?e=u!==null?u(r):JSON.stringify(r):(o="text/plain",e="");n.ajax({type:t,url:i,data:e,statusCode:this._httpHandlers[t],contentType:o,cache:!1,success:function(n,t,i){f._isc&&f._isc(n,t,i)},error:function(n,t,i){f._iec&&f._iec(n,t,i)},processData:!0})}});n.ig.JSONPDataSource=n.ig.JSONPDataSource||n.ig.DataSource.extend({settings:{jsonp:null,jsonpCallback:null},init:function(n){return n||(n={}),n.responseDataType="jsonp",this._super(n),this}});n.ig.XmlDataSource=n.ig.XmlDataSource||n.ig.DataSource.extend({init:function(n){return n||(n={}),n.type="xml",this._super(n),this}});n.ig.FunctionDataSource=n.ig.FunctionDataSource||n.ig.DataSource.extend({init:function(n){return n||(n={}),n.type="function",this._super(n),this}});n.ig.HtmlTableDataSource=n.ig.HtmlTableDataSource||n.ig.DataSource.extend({init:function(n){return n||(n={}),n.type="htmlTableDom",this._super(n),this}});n.ig.ArrayDataSource=n.ig.ArrayDataSource||n.ig.DataSource.extend({init:function(n){return n||(n={}),n.type="array",this._super(n),this}});n.ig.MashupDataSource=n.ig.MashupDataSource||n.ig.DataSource.extend({mashupSettings:{ignorePartialRecords:!1,dataSource:[]},init:function(t){return this._super(t),t&&(this.settings=n.extend(!0,{},n.ig.DataSource.prototype.settings,t),this.settings=n.extend(!0,{},n.ig.MashupDataSource.prototype.mashupSettings,this.settings)),this._sources=[],this._dataBindingComplete=!1,this._sourcesStatus=[],this._hashedDataViews=[],this},_checkDataBindingComplete:function(t,i,r){var u,e,h,p=!0,c=0,o=[],a=[],f,y,s,v,l;for(this._dataBindingComplete=!0,u=0;u<this._sources.length;u++)this._sources[u]===r&&(this._sourcesStatus[u]=1),this._sourcesStatus[u]===0&&(this._dataBindingComplete=!1);if(this._dataBindingComplete){for(u=0;u<this._sources.length;u++)if(this._sources[u].settings.primaryKey===""||this._sources[u].settings.primaryKey===null||this._sources[u].settings.primaryKey===undefined){p=!1;break}for(c=this._sources[0].dataView().length,u=0;u<this._sources.length;u++)c=this.settings.ignorePartialRecords?this._sources[u].dataView().length<c?this._sources[u].dataView().length:c:this._sources[u].dataView().length>c?this._sources[u].dataView().length:c;if(p){for(u=0;u<this._sources.length;u++)for(this._hashedDataViews[u]={},e=0;e<this._sources[u].dataView().length;e++)this._hashedDataViews[u][this._sources[u].dataView()[e][this._sources[u].settings.primaryKey]]=this._sources[u].dataView()[e];for(l={},e=0,u=0;u<this._hashedDataViews.length;u++)for(s in this._hashedDataViews[u])this._hashedDataViews[u].hasOwnProperty(s)&&(l.hasOwnProperty(s)?(o[l[s]]=n.extend(!0,{},o[l[s]],this._hashedDataViews[u][s]),a[l[s]]++):(o.push({}),a.push(1),o[e]=n.extend(!0,{},o[e],this._hashedDataViews[u][s]),l[s]=e,e++));if(this.settings.ignorePartialRecords)for(u=a.length-1;u>=0;u--)a[u]<this._sources.length&&o.splice(u,1)}else for(u=0;u<c;u++){for(o[u]={},e=0;e<this._sources.length;e++)if(f=this._sources[e],f.dataView()[0].length)for(h=0;h<f.dataView()[0].length;h++)y+=h,f.schema()&&f.schema().fields().length>0?o[u][f.schema().fields()[h]]=u>=f.dataView().length?"":f.dataView()[u][f.schema().fields()[h]]:o[u][y]=u>=f.dataView().length?"":f.dataView()[u][h];else for(v in f.dataView()[u])f.dataView()[u].hasOwnProperty(v)&&(o[u][v]=u>=f.dataView().length?"":f.dataView()[u][v]);y=0}this.settings.dataSource=o;this.settings.type="array";this._runtimeType=this.analyzeDataSource();this.dataBind()}},dataBind:function(){var t,i=this.settings.dataSource;if(this._dataBindingComplete)this._dataBindingComplete=!1,this._super();else{for(this._dataBindingComplete=!1,t=0;t<i.length;t++)this._sources[t]=i[t]instanceof n.ig.DataSource?i[t]:i[t].hasOwnProperty("dataSource")&&i[t].dataSource instanceof n.ig.DataSource?i[t].dataSource:new n.ig.DataSource(i[t]),this._sources[t].settings.callee=this,this._sources[t].settings.callback=this._checkDataBindingComplete,this._sourcesStatus[t]=0;for(t=0;t<i.length;t++)this._sources[t].dataBind()}return this}});n.ig.HierarchicalDataSource=n.ig.HierarchicalDataSource||Class.extend({settings:{autogenerate:!1,initialDataBindDepth:0,maxDataBindDepth:-1,defaultChildrenDataProperty:"children",callback:null,callee:null,data:[],dataSource:null,dataBinding:null,dataBound:null,type:"unknown",responseDataType:null,responseContentType:null,localSchemaTransform:!0,urlParamsEncoding:null,urlParamsEncoded:null,requestType:"GET",odata:!1,paging:{},sorting:{},filtering:{},schema:[]},init:function(t){t&&(this.__ds=t.dataSource,t.dataSource=null,this.settings=n.extend(!0,{},n.ig.HierarchicalDataSource.prototype.settings,t),this.settings.dataSource=this.__ds);this._rootopts=this.settings;this._rootopts.urlParamsEncoded=n.proxy(this._encodeHierarchicalUrlParams,this);this._rootopts.dataSource instanceof n.ig.DataSource?(this._rootds=this._rootopts.dataSource,this._rootds.settings.urlParamsEncoded=this.settings.urlParamsEncoded,this._rootds.settings.odata=this.settings.odata,this._rootds.settings.schema||(this._rootds.settings.schema={}),this._rootds.settings.schema.layouts=this.settings.schema.layouts):this._rootds=n.type(this._rootopts.dataSource)==="string"&&this._rootopts.dataSource.indexOf("$callback=?")!==-1?new n.ig.JSONPDataSource(this._rootopts):this._rootopts.restSettings&&(this._rootopts.restSettings.update.url!==null||this._rootopts.restSettings.update.template!==null||this._rootopts.restSettings.create.url!==null||this._rootopts.restSettings.create.template!==null||this._rootopts.restSettings.remove.url!==null||this._rootopts.restSettings.remove.template!==null)?new n.ig.RESTDataSource(this._rootopts):new n.ig.DataSource(this._rootopts)},dataBind:function(n,t){this._rootds.dataBind(n,t)},root:function(){return this._rootds||(this._rootds=new n.ig.DataSource(this._rootopts)),this._rootds},dataAt:function(t,i){for(var r=this.root().data(),h=t.split("/"),p=i.split("/"),u,a="Records",f,o=null,s=this.settings.primaryKey,c="",v=[],l=[],y=!1,e=0;e<h.length;e++)if(s=h[e].split(":")[0],c=h[e].split(":")[1],h[e]!==""){for(f=0;r&&f<r.length;f++){if(s&&s.indexOf(",")!==-1){for(v=s.split(","),l=c.split(","),u=0;u<v.length;u++)if(!r[f][v[u]].charAt&&l[u].charAt&&(l[u]=parseInt(l[u],10)),y=r[f][v[u]]===l[u],!y)break}else r[f][s]!==undefined&&!r[f][s].charAt&&c.charAt&&(c=parseInt(c,10)),y=r[f][s]===c;if(y){o=r[f][p[e]];a=this.root().schema&&this.root().schema()&&this.root().schema().schema?this.root().schema().schema.searchField:a;o&&h.length>1&&e<h.length-1&&n.type(o)!=="array"&&o[a]&&(o=o[a]);break}}r=o}return o},_encodeUrlPath:function(n,t){return"path="+n+"&layout="+t},_encodeHierarchicalUrlParams:function(t,i){var s="",e=this.settings.schema.layouts,f,o,u,r,h=0;if(this.settings.odata&&this.settings.initialDataBindDepth!==0){f=o=0;for(r in e)e.hasOwnProperty(r)&&h++;h++;for(r in e)if(e.hasOwnProperty(r)&&n.type(e[r])!=="function"){for(r.startsWith("/")&&(r=r.substring(1,r.length-1)),u=r.split("/"),f=0;f<u.length;f++)u[f]=u[f].substring(0,u[f].indexOf(":"));u=u.join("/");o!==0&&o!==h-1&&(s+=",");s+=u;o++}i.selectParams.$expand=s}else i.selectParams.dbdepth=this.settings.initialDataBindDepth}});typeof define=="function"&&define.amd&&define.amd.jQuery&&define("ig.datasource",["ig.util"],function(){return n.ig.DataSource})}(jQuery),function(n){n.ig=n.ig||{};n.extend(n.ig,{tmpl:function(n,t,i){var r=n,u;if(r){if(r=r.replace(this.regExp.lineBreak,""),r=r.replace(this.regExp.comment,""),typeof t=="function"&&(t=i?t.apply(this,i):t.call()),this._internalTmplCache&&this._internalTmplCache.hasOwnProperty(r)?(this.tokens=this._internalTmplCache[r].tokens,this.args=this._internalTmplCache[r].args,this.i=this._internalTmplCache[r].i,this._hasBlock=this._internalTmplCache[r]._hasBlock,r=this._internalTmplCache[r].tmpl):(this.tokens=[],this.args=[],this.i=0,this._tokenizeTemplate(r),u=r,this._internalTmplCache[u]={},this._internalTmplCache[u].tokens=this.tokens,this.regExp.block.test(r)?(this._hasBlock=!0,r=this._tokenizeDirectives(r)):this._hasBlock=!1,this._internalTmplCache[u].args=this.args,this._internalTmplCache[u].i=this.i,this._internalTmplCache[u]._hasBlock=this._hasBlock,this._internalTmplCache[u].tmpl=r),!this.tokens)return r;r=this._hasBlock?this._compileTemplate(r,t):this._populateTemplate(r,t);delete this.args;delete this.tokens;delete this._hasBlock;delete this.i}return r},clearTmplCache:function(){delete this._internalTmplCache;this._internalTmplCache={}},encode:function(n){return n!==null&&n!==undefined?n.toString().replace(this.regExp.lt,"&lt;").replace(this.regExp.gt,"&gt;").replace(this.regExp.ap,"&#39;").replace(this.regExp.ic,"&#34;"):""},regExp:{comment:/\s#[^#]*#/g,sub:/\$\{(([\w\$]+(\.|\s)?[\w\$]*)+)\}/,nonEncodeSub:/\{\{html\s+([\w\$]+(\.|\s)?[\w\$]*)+\}\}/,forSub:/\$\{(([\w\$]+\.[\w\$]*)+)\}/,arg:/args\[\d+\](?!.*\+)/,block:/\{\{(\w+).*?\}\}+(.*)(\{\{\/\1\}\})/,blockCont:/\{\{(?!\/)(\S+)(.*)\}\}(.*)/,blockDirective:/\{\{\S+.*?\}\}/,index:/\$i/g,lineBreak:/(\r\n|\n|\r)/gm,lt:/</g,gt:/>/g,ap:/'/g,ic:/"/g},_directives:{"if":{start:"if (",close:") {",end:" }"},elseif:{start:" } else if (",close:") {",end:""},"else":{start:" } else {",close:"",end:""},each:{start:"for (var i = 0; i < $data.length; i++) {",close:"",end:" }"}},_internalTmplCache:{},_tokenizeTemplate:function(n){var t,i;if(this.regExp.sub.test(n))for(t=this.regExp.sub.exec(n);t!==null;)i=t[1].split("."),n=n.replace(new RegExp("\\$\\{"+t[1].replace(/\$/g,"\\$")+"\\}","g"),""),t[3]=new RegExp("\\$\\{"+t[1].replace(/\$/g,"\\$")+"\\}","g"),t[1]=i,t[2]=!0,this.tokens.push(t),t=this.regExp.sub.exec(n);if(this.regExp.nonEncodeSub.test(n))for(t=this.regExp.nonEncodeSub.exec(n);t!==null;)i=t[1].split("."),n=n.replace(new RegExp("\\{\\{html\\s+"+t[1].replace(/\$/g,"\\$")+"\\}\\}","g"),""),t[3]=new RegExp("\\{\\{html\\s+"+t[1].replace(/\$/g,"\\$")+"\\}\\}","g"),t[1]=i,t[2]=!1,this.tokens.push(t),t=this.regExp.nonEncodeSub.exec(n)},_tokenizeDirectives:function(n){var i='var result = "";',r=this.regExp.block.exec(n),t;return(n.indexOf(r[0])>0||n.length!==r[0].length)&&(t=n.split(r[0]),t[0]&&t[0].length>0&&(this.args.push(t[0]),i+="result += args["+this.i+++"];")),i+=this._handleCompleteBlock(r),t&&t.length>0&&t[1].length>0&&(this.args.push(t[1]),i+="result += args["+this.i+++"];"),i+"return result;"},_handleCompleteBlock:function(n){var f=n[0],u="",t=[],i,r;if(f=f.replace("{{"+n[1],this._directives[n[1]].start),n[1]==="each")for(t.push(n[0].split(n[3])),t.push(n[2].split(n[3])),i=0;i<t[1].length;i++)t[0][i].indexOf("{{each")>0&&(r=t[0][i].split("{{each")[0],this.args.push(r),u+="result += args["+this.i+++"];",t[0][i]=t[0][i].substr(t[0][i].indexOf("{{each")),r=this.regExp.blockDirective.exec(t[1][i]),t[1][i]=t[1][i].substr(t[1][i].indexOf(r[0])+r[0].length)),t[0][i]=t[0][i].replace("{{"+n[1],this._directives[n[1]].start),u+=this._handleEach(t[0][i]+"{{/each}}",[t[0][i]+"{{/each}}","each",t[1][i],"{{/each}}"]);else n[1]==="if"&&(u+=this._handleIfElse(f,n));return u},_handleEach:function(n,t){var i=n,u,r,f,e,s,o;for(u=this.regExp.sub.exec(i),i=i.replace(u[0],""),i=i.replace("$data",u[0]),r=t[2],/\$data/.test(r)&&(r=r.replace(/\$data/g,'" + '+u[0]+'[i] + "'),this.args.push(u[0]),this.i++),f=this.regExp.forSub.exec(r);f;)r=r.replace(new RegExp("\\$\\{"+f[1]+"\\}","g"),'" + '+u[0]+"[i]"+f[1].substr(f[1].indexOf("."))+' + "'),f=this.regExp.forSub.exec(r);for(r=r.replace(/\$index/g,'" + i + "'),i=i.replace(t[2],'result += "'+r+'"'),i=i.replace(/\}\}/,this._directives[t[1]].close),i=i.replace(t[3],this._directives[t[1]].end),this.regExp.block.test(i)&&(o=this.regExp.block.exec(i),i=i.replace(o[0],this._handleCompleteBlock(o))),e=this.regExp.sub.exec(i);e;)s=new RegExp("\\$\\{"+e[1]+"\\}","g"),i=i.replace(s,"args["+this.i+++"]"),this.args.push(e[0]),e=this.regExp.sub.exec(i);return i},_handleIfElse:function(n,t){var i=n,r=0,u,f,o,s,e=[];for(i=i.replace(/\}\}/,this._directives[t[1]].close),s=i.lastIndexOf(t[3]),i=i.substr(0,s)+i.slice(s+t[3].length-1),this.regExp.block.test(i)&&(o=this.regExp.block.exec(i),i=i.replace(o[0],this._handleCompleteBlock(o))),u=t[2].split(this.regExp.blockDirective),e.push(i.slice(0,i.indexOf(") {")+3)),e.push(i.slice(i.indexOf(") {")+3)),r;r<u.length;r++)u[r]&&u[r].length&&u[r].length>0&&(e[1]=e[1].replace(u[r],"result += args["+this.i+++"];"),this.args.push(u[r]));for(i=e.join(""),t=this.regExp.blockCont.exec(i);t;)i=i.replace("{{"+t[1],this._directives[t[1]].start),i=i.replace(/\}\}/,this._directives[t[1]].close),t=this.regExp.blockCont.exec(i);for(f=this.regExp.sub.exec(i);f;)i=i.replace(new RegExp("\\$\\{"+f[1]+"\\}","g"),"args["+this.i+++"]"),this.args.push(f[0]),f=this.regExp.sub.exec(i);return i},_populateTemplate:function(n,t){var i,u,f="",r;if(t.length){if(t.length)for(u=0;u<t.length;u++){for(r=n,i=0;i<this.tokens.length;i++)r=this._populateArgumentValue(t[u],this.tokens[i],r);r=r.replace(this.regExp.index,u);f+=r}}else{for(i=0;i<this.tokens.length;i++)n=this._populateArgumentValue(t,this.tokens[i],n);f=n}return f},_compileTemplate:function(t,i){var u,f,o,s="",h,e=[],r="",c;if(i.length){if(i.length)for(h=t.replace(this.regExp.index,"args["+this.args.length+"]"),c=new Function("args",h),f=0;f<i.length;f++){for(e=[],o=0;o<this.args.length;o++){for(r=this.args[o],u=0;u<this.tokens.length;u++)if(r===this.tokens[u][0]){r=this._getArgumentValue(i[f],this.tokens[u],r);break}else typeof r=="string"&&(r=this._populateArgumentValue(i[f],this.tokens[u],r));if(r===undefined)throw new Error(n.ig.Templating.locale.undefinedArgument+this.tokens[u][0]);typeof r=="string"&&(r=r.replace(this.regExp.index,f));e.push(r)}e.push(f);s+=c.call(this,e)||""}}else{for(f=0;f<this.args.length;f++){for(r=this.args[f],u=0;u<this.tokens.length;u++)if(r===this.tokens[u][0]){r=this._getArgumentValue(i,this.tokens[u],r);break}else typeof r=="string"&&(r=this._populateArgumentValue(i,this.tokens[u],r));if(r===undefined)throw new Error(n.ig.Templating.locale.undefinedArgument+this.tokens[u][0]);typeof r=="string"&&(r=r.replace(this.regExp.index,0));e.push(r)}t=t.replace(/\$i/g,0);s=new Function("args",t).call(this,e)||""}return s},_getArgumentValue:function(n,t,i){var r,u;if(t[1].length&&t[1].length>1){for(r=n,u=0;u<t[1].length;u++)if(r&&r.hasOwnProperty(t[1][u]))r=r[t[1][u]];else{r="";break}i=t[2]&&typeof r=="string"?this.encode(r):r}else i=t[2]&&typeof n[t[1]]=="string"?this.encode(n[t[1]]):n[t[1]];return i},_populateArgumentValue:function(n,t,i){var r,u,f=this;if(t[1].length&&t[1].length>1){for(r=n,u=0;u<t[1].length;u++)if(r&&r.hasOwnProperty(t[1][u]))r=r[t[1][u]];else{r="";break}i=t[2]&&typeof r=="string"?i.replace(t[3],function(){return f.encode(r)}):i.replace(t[3],function(){return r===null?"":r})}else i=t[2]?i.replace(t[3],function(){return f.encode(n[t[1]])}):i.replace(t[3],function(){return n[t[1]]===null?"":n[t[1]]});return i}})}(jQuery),function(n){n.widget("ui.igLoading",{options:{cssClass:null,includeVerticalOffset:!0},_indicator:null,_create:function(){var i,t;t=this.options.cssClass===null?"ui-igloadingmsg":this.options.cssClass;this._hgrid=this.element.closest(".ui-iggrid-root").closest(".ui-iggrid");this.element.children("."+t).length===0&&(this._indicator=n("<span><\/span>").appendTo(this.element).attr("id",this.element[0].id+"_loading").addClass(t),i=this.element.offset(),this.refreshPos());this._yShift=this._indicator?Math.round(this._indicator.height()/2):0},indicatorElement:function(){return this._indicator},indicator:function(){return this},show:function(t){t!==!1&&this.refreshPos();this._resId&&clearInterval(this._resId);this._resId=setInterval(n.proxy(this._resizeContainer,this),300);this._indicator.css("display","").css("visibility","visible")},hide:function(){this._indicator.css("display","none").css("visibility","hidden");clearInterval(this._resId);this._resId=null},_resizeContainer:function(){var n=this.element.offset();n.top+this.element.innerHeight()/2-this._yShift!==this._indicator.css("top")&&this.refreshPos()},refreshPos:function(){var t=this.element.offset(),i=t.top+this.element.innerHeight()/2-this._yShift,u=t.left+this.element.innerWidth()/2,r,f;this._hgrid.length>0&&i>this._hgrid.offset().top+this._hgrid.height()||this._hgrid.length>0&&u>this._hgrid.offset().left+this._hgrid.width()||(this.options.includeVerticalOffset&&i>n(window).height()&&(r=(n(window).height()-t.top-n(window).scrollTop())/2,i=n(window).height()-r<t.top?t.top+r:n(window).height()-r),f=n.ig.util.getRelativeOffset(this._indicator),i-=f.top,u-=f.left,this._indicator.css("left",u).css("top",i))},destroy:function(){clearInterval(this._resId);this._indicator.remove()}});n.extend(n.ui.igLoading,{version:"14.1.20141.2031"});n.widget("ui.igSlider",n.ui.mouse,{options:{animate:!1,max:100,min:0,orientation:"horizontal",step:1,value:0,bookmarks:[{value:0,title:"",disabled:!1,css:""}],showBookmarkTitle:!0,syncHandleWithBookmark:!0},css:{baseClasses:"ui-igslider ui-widget ui-widget-content ui-corner-all",horizontalOrientationClass:"ui-igslider-horizontal",verticalOrientationClass:"ui-igslider-vertical",sliderDisabledClass:"ui-igslider-disabled ui-disabled",handleClass:"ui-igslider-handle",bookmarkClass:"ui-igslider-bookmark",bookmarkDisabledClass:"ui-igslider-bookmark-disabled",bookmarkTooltipClass:"ui-igslider-bookmark-tooltip"},events:{start:"start",slide:"slide",stop:"stop",change:"change",bookmarkHit:"bookmarkhit",bookmarkClick:"bookmarkclick"},_numpages:5,widget:function(){return this.element},_createWidget:function(){this.options.bookmarks=[];n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){var i=this.options,t=this,r=this.css;this._keySliding=!1;this._mouseSliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass(r.baseClasses);i.disabled&&this.element.addClass(r.sliderDisabledClass);n(".ui-igslider-handle",this.element).length===0&&n("<a href='#'><\/a>").appendTo(this.element).addClass(r.handleClass);this.handles=n(".ui-igslider-handle",this.element).addClass("ui-state-default ui-corner-all").bind({click:function(n){n.preventDefault()},mouseover:function(){i.disabled||n(this).addClass("ui-state-hover")},mouseout:function(){n(this).removeClass("ui-state-hover")},focus:function(){i.disabled?n(this).blur():(n(".ui-igslider .ui-state-focus").removeClass("ui-state-focus"),n(this).addClass("ui-state-focus"))},blur:function(){n(this).removeClass("ui-state-focus")},keydown:function(i){var e=!0,o=n(this).data("index.ui-igslider-handle"),s,u,r,f;if(!t.options.disabled){switch(i.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(e=!1,!t._keySliding&&(t._keySliding=!0,n(this).addClass("ui-state-active"),s=t._start(i,o),s===!1))return}f=t.options.step;u=r=t.value();switch(i.keyCode){case n.ui.keyCode.HOME:r=t.options.min;break;case n.ui.keyCode.END:r=t.options.max;break;case n.ui.keyCode.PAGE_UP:r=t._trimValue(u+(t.options.max-t.options.min)/this._numpages);break;case n.ui.keyCode.PAGE_DOWN:r=t._trimValue(u-(t.options.max-t.options.min)/this._numpages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(u===t.options.max)return;r=t._trimValue(u+f);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(u===t.options.min)return;r=t._trimValue(u-f)}return t._slide(i,o,r),e}},keyup:function(i){var r=n(this).data("index.ui-igslider-handle");t._keySliding&&(t._keySliding=!1,t._stop(i,r),t._change(i,r),n(this).removeClass("ui-state-active"))}}).each(function(t){n(this).data("index.ui-igslider-handle",t)});this.handle=this.handles.eq(0);this._renderBookmarks();this._refreshValue();this._animateOff=!1},_renderBookmarks:function(){if(this.options.bookmarks&&this.options.bookmarks.length>0){var e=this.options.bookmarks.length,u=0,t=this.options,f=this.css,r,i=this;for(u;u<e;u++)r=t.bookmarks[u],n("<a href='#'><\/a>").appendTo(this.element).data("index.ui-igslider-bookmark",u).addClass(r.disabled?f.bookmarkDisabledClass:f.bookmarkClass).addClass(r.css&&r.css.length>0?r.css:"").css("left",t.min!==t.max?(r.value-t.min)/(t.max-t.min)*100+"%":"0%");this.bookmarks=n(".ui-igslider-bookmark",this.element).addClass("ui-state-default").bind({mousedown:function(t){var r=!0,u=n(this).data("index.ui-igslider-bookmark");t.preventDefault();t.stopPropagation();r=i._bookmarkClicked(t,u);i.options.syncHandleWithBookmark&&r&&i._slide(t,0,i.options.bookmarks[u].value)},mouseover:function(r){t.disabled||(n(this).addClass("ui-state-hover"),i.options.showBookmarkTitle&&i._showBookmarkTitle(n(this),r))},mouseout:function(){t.disabled||(n(this).removeClass("ui-state-hover"),i.options.showBookmarkTitle&&i._hideBookmarkTitle(n(this)))},click:function(n){n.preventDefault()}});this._createBookmarkTooltip();this._buildBookmarkHit()}},destroy:function(){return this.handles.remove(),this.clearBookmarks(),this.element.removeClass(this.css.baseClasses+" ui-igslider-horizontal ui-igslider-vertical ui-igslider-disabled").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_id:function(n){return this.element[0].id+n},_showBookmarkTitle:function(t,i){var r=n("#"+this._id("_tooltip")),u=this.options.bookmarks[t.data("index.ui-igslider-bookmark")].title;u&&u.length>0&&(r.igTooltip("option","text",u),r.css("top",i.pageY-r.outerHeight()-5).css("left",i.pageX-r.width()/2+t.width()/2).show())},_hideBookmarkTitle:function(){n("#"+this._id("_tooltip")).hide()},_createBookmarkTooltip:function(){var t='<div id="'+this._id("_tooltip")+'" class="'+this.css.bookmarkTooltipClass+'"><\/div>';n(t).appendTo(n(document.body)).igTooltip({arrowLocation:"bottom"}).hide()},clearBookmarks:function(){this.bookmarks&&this.bookmarks.remove()},_mouseCapture:function(t){var h=this.options,f,e,r=0,i=this.handles.eq(r),o=this,u,s;return h.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),f={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(f),this._mouseSliding=!0,o._handleIndex=r,i.addClass("ui-state-active"),n.ig.util.isOpera||i.focus(),u=i.offset(),s=!n(t.target).parents().andSelf().is(".ui-igslider-handle"),this._clickOffset=s?{left:0,top:0}:{left:t.pageX-u.left-i.width()/2,top:t.pageY-u.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this._slide(t,r,e),this._animateOff=!0,this._mouseUpHandler=function(n){return o._mouseStop(n)},n(document).bind("mouseup."+this.widgetName,this._mouseUpHandler),!0)},_mouseStart:function(t){return n(document).unbind("mouseup."+this.widgetName,this._mouseUpHandler),this._start(t,this._handleIndex)},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){var t=this;return this.handles.removeClass("ui-state-active"),setTimeout(function(){t._mouseSliding=!1},1e3),this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){var t=this.options,n=this.css;t.orientation==="vertical"?(this.orientation="vertical",this.element.removeClass(n.horizontalOrientationClass).addClass(n.verticalOrientationClass)):(this.orientation="horizontal",this.element.removeClass(n.verticalOrientationClass).addClass(n.horizontalOrientationClass))},_normValueFromMouse:function(n){var i,r,t,u,f;return this.orientation==="horizontal"?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),t<0&&(t=0),this.orientation==="vertical"&&(t=1-t),u=this.options.max-this.options.min,f=this.options.min+t*u,this._trimValue(f)},_start:function(n,t){var i={handle:this.handles[t],value:this.value()};return this._trigger(this.events.start,n,i)},_slide:function(n,t,i){var r;i!==this.value()&&(r=this._trigger(this.events.slide,n,{handle:this.handles[t],value:i}),r!==!1&&this.value(i))},_stop:function(n,t){var i={handle:this.handles[t],value:this.value()};this._trigger(this.events.stop,n,i)},_change:function(n,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this._trigger(this.events.change,n,i);this._checkBookmarkHit(i.value,n);i.value===this.options.max&&this._marksHit&&this._marksHit.length===0&&this._buildBookmarkHit()}},_checkBookmarkHit:function(n,t){if(this._marksHit&&this._marksHit.length>0&&n>=this._marksHit[0].value){var i=this._marksHit[0].index;this._marksHit.shift();this._bookmarkHit(t,i)}},_buildBookmarkHit:function(){var i=this.options.bookmarks||[],t=i.length-1;for(this._marksHit=[],t;t>=0;t--)i[t].disabled||this._marksHit.push({value:i[t].value,index:t});this._marksHit.sort(this._sortBookmarksJSON);this._marksHit=n.extend(!0,[],this._marksHit)},_sortBookmarksJSON:function(n,t){return n.value-t.value},_bookmarkClicked:function(n,t){var i={bookmarkElement:this.bookmarks[t],bookmark:this.options.bookmarks[t]};return this._trigger(this.events.bookmarkClick,n,i)},_bookmarkHit:function(n,t){var i={bookmarkElement:this.bookmarks[t],bookmark:this.options.bookmarks[t]};i.bookmarkElement&&this._trigger(this.events.bookmarkHit,n,i)},value:function(n){return arguments.length&&(this.options.value=this._trimValue(n),this._refreshValue(),this._change(null,0)),this._value()},_setOption:function(t,i){n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"disabled":i?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.attr("disabled","disabled"),this.element.addClass("ui-disabled")):(this.handles.removeAttr("disabled"),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation();this._refreshValue();break;case"value":if(this._mouseSliding===!0)return;this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"bookmarks":this.clearBookmarks();this._renderBookmarks()}},_value:function(){return this._trimValue(this.options.value)},_trimValue:function(n){if(n<this.options.min)return this.options.min;if(n>this.options.max)return this.options.max;var t=this.options.step>0?this.options.step:1,i=n%t,r=n-i;return Math.abs(i)*2>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_normPercentValue:function(n){var t=0,i=n;return this.orientation==="vertical"&&(t=(this.handle.outerHeight()/this.element.outerHeight()).toFixed(2)*100),n-t>0&&(i=n-t),i},_refreshValue:function(){var t=this.options,u=this,f=this._animateOff?!1:t.animate,i={},e=this.value(),n=this.options.min,r=this.options.max,o=r!==n?(e-n)/(r-n)*100:0;i[u.orientation==="horizontal"?"left":"bottom"]=this._normPercentValue(o)+"%";this.handle.stop(1,1)[f?"animate":"css"](i,t.animate)}});n.extend(n.ui.igSlider,{version:"14.1.20141.2031"});n.widget("ui.igProgressBar",{options:{animate:!1,animateTimeout:100,max:100,min:0,orientation:"horizontal",value:0,width:"0px",height:"0px",range:!1,endValue:100},css:{baseClasses:"ui-igprogressbar ui-widget ui-widget-content ui-corner-all",horizontalOrientationClass:"ui-igprogressbar-horizontal",verticalOrientationClass:"ui-igprogressbar-vertical",disabledClass:"ui-igprogressbar-disabled ui-disabled",progressRangeClass:"ui-igprogressbar-range ui-widget-header ui-corner-all"},events:{change:"change"},_animationOff:!0,widget:function(){return this.element},_detectOrientation:function(){var n=this.css;this.options.orientation==="vertical"?(this.orientation="vertical",this.element.removeClass(n.horizontalOrientationClass).addClass(n.verticalOrientationClass)):(this.orientation="horizontal",this.element.removeClass(n.verticalOrientationClass).addClass(n.horizontalOrientationClass))},_id:function(n){return this.element[0].id+n},_create:function(){var t=this.options,i=this.css;this._detectOrientation();this.element.addClass(i.baseClasses);t.disabled&&this.element.addClass(i.disabledClass);t.width!=="0px"&&this.element.css("width",t.width);t.height!=="0px"&&this.element.css("height",t.height);t.orientation==="horizontal"?n('<div id="'+this._id("_progress")+'" class="'+i.progressRangeClass+'" style="height:100%; top:0px; left:0%; width:0%;"><\/div>').appendTo(this.element):n('<div id="'+this._id("_progress")+'" class="'+i.progressRangeClass+'" style="height:0%; bottom:0%; left:0px; width:100%;"><\/div>').appendTo(this.element);this._refreshValue()},destroy:function(){return this.element.removeClass("ui-igprogressbar ui-igprogressbar-horizontal ui-igprogressbar-vertical ui-igprogressbar-disabled ui-widget ui-widget-content ui-corner-all").removeData("igProgressBar").unbind(".igProgressBar"),n("#"+this._id("_progress")).remove(),this},_change:function(n){var t={value:this.value()};this._trigger(this.events.change,n,t)},value:function(n){return arguments.length&&(this.options.value=this._trimValue(n),this._refreshValue(),this._change(null)),this.options.value},_setOption:function(t,i){n.Widget.prototype._setOption.apply(this,arguments);var r=this.options;switch(t){case"disabled":i?this.element.addClass(this.css.disabledClass):this.element.removeClass(this.css.disabledClass);break;case"orientation":this._detectOrientation();this._refreshValue();break;case"value":this._animationOff=!0;r.value=this._trimValue(i);this._refreshValue();this._change(null);this._animationOff=!1;break;case"endValue":r.endValue=this._trimValue(i);this._refreshValue();break;case"max":r.endValue>r.max&&(r.endValue=r.max,this._refreshValue());break;case"width":this.element.css("width",i);break;case"height":this.element.css("height",i);break;case"animate":r.animate=i;break;case"animateTimeout":r.animateTimeout=i}},_trimValue:function(n){return n<this.options.min?this.options.min:n>this.options.max?this.options.max:parseInt(n,10)},_refreshValue:function(){var i=this.options,f=i.value,u=i.min,e=i.max,o=i.endValue,r=e!==u?(f-u)/(e-u)*100:0,s=f!==o?(o-f)/(e-u)*100:0,t=n("#"+this._id("_progress"));i.range?i.orientation==="horizontal"?t.css("left",r+"%").css("width",s+"%"):t.css("bottom",r+"%").css("height",s+"%"):i.animate===!0?i.orientation==="horizontal"?(t[0].style.width==="0%"&&t.css({width:"0px"}),t.is(":hidden")===!1?t.animate({width:r+"%"},i.animateTimeout):t.css("width",r+"%")):(t[0].style.height==="0%"&&t.css({height:"0px"}),t.is(":hidden")===!1?t.animate({height:r+"%"},i.animateTimeout):t.animate({height:r+"%"},i.animateTimeout)):i.orientation==="horizontal"?t.css("width",r+"%"):t.css("height",r+"%")}});n.extend(n.ui.igProgressBar,{version:"14.1.20141.2031"});n.widget("ui.igButton",{options:{width:null,height:null,link:{href:null,target:null,title:null},labelText:"",centerLabel:!1,css:null,onlyIcons:!1,icons:{primary:null,secondary:null},title:!1},_id:function(n){return this.element[0].id+n},_create:function(){var t=this,i=t.options,r=this.element,u;if(this._attached=!1,i.css=n.extend({buttonClassIE6:"ui-ie6",buttonClasses:"ui-button ui-igbutton ui-widget ui-widget-content ui-corner-all ui-state-default",buttonHoverClasses:"ui-state-hover",buttonActiveClasses:"ui-state-active",buttonFocusClasses:"ui-state-focus",buttonLabelClass:"ui-button-text",buttonDisabledClass:"ui-state-disabled",buttonPrimaryIconClass:"ui-button-icon-primary ui-icon",buttonMainElementPrimaryIconClass:" ui-button-text-icon-primary",buttonMainElementSecondaryIconClass:" ui-button-text-icon-secondary",buttonSecondaryIconClass:"ui-button-icon-secondary ui-icon",buttonIconsOnly:"ui-button-icons-only",buttonIconOnly:"ui-button-icon-only",buttonIcons:"ui-button-text-icons",buttonTextOnlyClass:"ui-button-text-only"},i.css),t._getInitValues(),r.is("div"))t._renderDivButton();else if(r.is("a"))t._renderAHref();else if(r.is("input"))if(u=r.attr("type").toUpperCase(),u==="BUTTON"||u==="SUBMIT"||u==="RESET")t._renderInput();else return;else if(r.is("button"))t._renderButton();else return;return i.width!==null&&t._setWidth(i.width),i.height!==null&&t._setHeight(i.height),r.addClass(i.css.buttonClasses).addClass(i.css.buttonDefaultClasses),i.centerLabel===!0&&t._centerLabel(),i.disabled?t._disableButton():t._enableButton(),t._setOnlyIcons(),r.attr("role","button"),r.attr("aria-disabled","false"),t._attachButtonEvents(),t.setTitle(i.title),this},setTitle:function(n){var t=this.element;n===!1?t.removeAttr("title"):t.attr("title",n)},widget:function(){return this.element},_isRedirect:function(){return this.options.link.href!==null},_renderDivButton:function(){this._setLabel()},_renderAHref:function(){this._setLinkOptions(!0);this._setLabel()},_renderInput:function(){var n=this.element;n.attr("value",this.options.labelText)},_renderButton:function(){this._setLabel()},_disableButton:function(){var t=this,n=t.element;n.addClass(t.options.css.buttonDisabledClass);n.is("a")===!0?(n.removeAttr("href"),n.removeAttr("target"),n.removeAttr("title")):n.attr("disabled","true")},_enableButton:function(){var t=this,n=t.element,i=this.options;n.hasClass(i.css.buttonDisabledClass)&&n.removeClass(i.css.buttonDisabledClass);n.removeAttr("disabled");n.is("a")===!0&&t._setLinkOptions(!0)},_setLabel:function(){var t=this.element,n=this.options,e=n.icons,i=n.css,r="",u=this._isSetPrimaryIcon(),f=this._isSetSecondaryIcon(),o=n.labelText===null||n.labelText===""?t.text():n.labelText;if(t.attr("title",n.labelText),t.is("input")){t.attr("value",n.labelText);return}u&&(r+='<span class="'+i.buttonPrimaryIconClass+" "+e.primary+'" id="'+this._id("_picn")+'"><\/span>');r+='<span class="'+n.css.buttonLabelClass+'" id="'+this._id("_lbl")+'">'+o+"<\/span>";f&&(r+='<span class="'+i.buttonSecondaryIconClass+" "+e.secondary+'" id="'+this._id("_sicn")+'"><\/span>');u&&f&&!n.onlyIcons?t.addClass(i.buttonIcons):n.onlyIcons?this._setOnlyIcons():u?t.addClass(i.buttonMainElementPrimaryIconClass):f?t.addClass(i.buttonMainElementSecondaryIconClass):t.addClass(i.buttonTextOnlyClass);t.html(r)},_setOnlyIcons:function(){var n=this.element,t=this.options.css;this.options.onlyIcons===!1?(n.hasClass(t.buttonIconsOnly)&&n.removeClass(t.buttonIconsOnly),n.hasClass(t.buttonIconOnly)&&n.removeClass(t.buttonIconOnly),this._isSetPrimaryIcon()&&this._isSetSecondaryIcon()&&n.addClass(t.buttonIcons)):this._isSetPrimaryIcon()&&this._isSetSecondaryIcon()?n.addClass(t.buttonIconsOnly):n.addClass(t.buttonIconOnly)},_setLinkOptions:function(n){var r=this,i=r.element,t=this.options;n&&(t.link!==null&&t.link.href!==null?i.attr("href",t.link.href):i.removeAttr("href"),t.link!==null&&t.link.target!==null?i.attr("target",t.link.target):i.removeAttr("target"),t.link!==null&&t.link.title!==null?i.attr("title",t.link.title):i.removeAttr("title"))},_setWidth:function(n){var t=this.element;n===null?t.css("width",""):t.css("width",n)},_setHeight:function(n){var t=this.element;n===null?t.css("height",""):t.css("height",n)},_setOption:function(t,i){var u=this.element,r=this;n.Widget.prototype._setOption.apply(this,[t,i]);switch(t){case"width":r._setWidth(i);break;case"height":r._setHeight(i);break;case"link":r._setLinkOptions(u.is("a")===!0);break;case"disabled":i=Boolean(i);i===!0?r._disableButton():r._enableButton();break;case"labelText":r._setLabel();break;case"centerLabel":i=Boolean(i);i?r._centerLabel():r._removeCenterLabel();break;case"onlyIcons":i=Boolean(i);r._setOnlyIcons();break;case"icons":r._setLabel();break;case"title":r.setTitle(i)}},_centerLabel:function(){var i=this,r=i.element,t=n("#"+i._id("_lbl")),u=(r.width()-t.width())/2,f=(r.height()-t.height())/2;t.css({position:"relative",top:f+"px",left:u+"px"})},_removeCenterLabel:function(){var i=this,t=n("#"+i._id("_lbl"));t.length>0&&t.css({position:"",top:"",left:""})},_dettachEvents:function(){var n=this,t=n.element;this._attached=!1;t.unbind(this._events);return},_onMouseOver:function(n){var t;this.options.disabled!==!0&&(t=this._trigger("mouseover",n),t&&this.element.addClass(this.options.css.buttonHoverClasses))},_onMouseOut:function(n){var t=this,u=t.element,i=this.options,r;i.disabled!==!0&&(r=t._trigger("mouseout",n),r&&u.removeClass(i.css.buttonHoverClasses))},_onClick:function(n){var u=this.element,i=this,t=this.options,r;t.disabled!==!0&&(r=i._trigger("click",n),r&&(this.element.removeClass(t.css.buttonHoverClasses),i._isRedirect()===!0&&u.is("a")===!1&&(t.link.target==="_blank"?window.open(t.link.href):window.location=t.link.href)))},_onMouseDown:function(n){var i=this.element,t=this.options,r;t.disabled!==!0&&(r=this._trigger("mousedown",n),r&&(i.removeClass(t.css.buttonHoverClasses),i.addClass(t.css.buttonActiveClasses)))},_onMouseUp:function(n){var t=this.options,i;t.disabled!==!0&&(i=this._trigger("mouseup",n),i&&(this.element.removeClass(t.css.buttonHoverClasses),this.element.removeClass(t.css.buttonActiveClasses)))},_onFocus:function(n){var t=this.options,i;t.disabled!==!0&&(i=this._trigger("focus",n),i&&this.element.addClass(t.css.buttonFocusClasses))},_onBlur:function(n){var t=this.options,i;t.disabled!==!0&&(i=this._trigger("blur",n),i&&(this.element.removeClass(t.css.buttonActiveClasses),this.element.removeClass(t.css.buttonFocusClasses)))},_onKeyDown:function(n){var t=this.options;t.disabled!==!0&&this._trigger("keydown",n)},_attachButtonEvents:function(){var n=this,t=n.element;this._attached!==!0&&(this._attached=!0,this._events={mouseover:function(t){n._onMouseOver(t,n)},click:function(t){n._onClick(t)},mouseout:function(t){n._onMouseOut(t)},mousedown:function(t){n._onMouseDown(t)},mouseup:function(t){n._onMouseUp(t)},focus:function(t){n._onFocus(t)},blur:function(t){n._onBlur(t)},keydown:function(t){n._onKeyDown(t)}},t.bind(this._events))},_isSetPrimaryIcon:function(){var n=this.options.icons.primary,t=!1;return n!==undefined&&n!==null&&(t=!0),t},_isSetSecondaryIcon:function(){var n=this.options.icons.secondary,t=!1;return n!==undefined&&n!==null&&(t=!0),t},_setAttribute:function(n,t,i){t!==undefined&&t!==""&&t!==null?n.attr(i,t):n.removeAttr(i)},destroy:function(){this._dettachEvents();this._rollbackInitValues();this._events=null;n.Widget.prototype.destroy.apply(this,arguments)},_getInitValues:function(){var n=this.element;this._innerHTML=n.html();this._cssClasses=n.attr("class");this._role=n.attr("role");this._href=n.attr("href");this._title=n.attr("title");this._target=n.attr("target");this._width=n.attr("width");this._height=n.attr("height");this._disabled=n.attr("disabled");this._value=n.val()},_rollbackInitValues:function(){var n=this.element;n.html(this._innerHTML);n.is("a")?(this._setAttribute(n,this._href,"href"),this._setAttribute(n,this._target,"target")):n.is("input")&&n.val(this._value);this._setAttribute(n,this._title,"title");this._setAttribute(n,this._width,"width");this._setAttribute(n,this._height,"height");this._setAttribute(n,this._cssClasses,"class");this._setAttribute(n,this._role,"role");this._setAttribute(n,this._disabled,"disabled")}});n.extend(n.ui.igButton,{version:"14.1.20141.2031"});n.widget("ui.igTooltip",{css:{baseClasses:"ui-widget ui-igpopover ui-igplayer-tooltip",arrowImageBaseClass:"ui-igpopover-arrow-"},options:{text:"",arrowLocation:"top"},_setOption:function(t,i){n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"text":n("div.ui-widget-content",this.element).html(i);break;case"arrowLocation":n("div",this.element).remove();this._renderTooltip()}},_create:function(){this.element.is("div")&&(this._renderTooltip(),this.element.addClass(this.css.baseClasses))},_renderTooltip:function(){switch(this.options.arrowLocation){case"top":this._createArrowDiv();this._createContentDiv();break;case"bottom":this._createContentDiv();this._createArrowDiv()}},_createContentDiv:function(){var t=this.options.text&&this.options.text.length>0?this.options.text:"";n('<div class="ui-widget-content ui-corner-all">'+t+"<\/div>").appendTo(this.element)},_createArrowDiv:function(){n('<div class="'+this.css.arrowImageBaseClass+this.options.arrowLocation+'"><\/div>').appendTo(this.element)},destroy:function(){this.element.children().remove();this.element.removeClass(this.css.baseClasses)}});n.extend(n.ui.igTooltip,{version:"14.1.20141.2031"});n.widget("ui.mouseWrapper",n.ui.mouse,{options:{cancel:":input,option",distance:1,delay:0},events:{start:"start",drag:"drag",stop:"stop",capture:"capture"},_create:function(){var t=this,i=this._mouseDown;n.ig.util.isIE9&&(this._mouseDown=function(n){var u=n.preventDefault,r;return n.preventDefault=function(){},r=i.apply(t,[n]),n.preventDefault=u,r});this._mouseInit()},destroy:function(){return this._mouseDestroy(),this},_mouseStart:function(n){return this._trigger(this.events.start,n)},_mouseDrag:function(n){return this._trigger(this.events.drag,n)},_mouseStop:function(n){return this._trigger(this.events.stop,n)},_mouseCapture:function(n){return this._trigger(this.events.capture,n)}});n.widget("ui.igResponsiveContainer",{options:{pollingInterval:500},_createWidget:function(t,i){this._callbacks=[];this._element=i;this._pollerHandler=n.proxy(this._pollerTick,this);this._startPoller();this._width=this._getCurrentWidth();this._height=this._getCurrentHeight();n.Widget.prototype._createWidget.apply(this,arguments)},destroy:function(){return this._stopPoller(),this._callbacks=[],n.Widget.prototype.destroy.call(this),this},startPoller:function(){this._startPoller()},stopPoller:function(){this._stopPoller()},removeCallback:function(n){n>=0&&n<this._callbacks.length&&this._callbacks.splice(n,1)},addCallback:function(n,t,i,r){return this._callbacks.push({callback:n,owner:t,step:i,left:r==="xy"||r==="x",top:r==="xy"||r==="y",cWidth:this._getCurrentWidth(),cHeight:this._getCurrentHeight()})-1},_startPoller:function(){this._intervalId=setInterval(this._pollerHandler,this.options.pollingInterval)},_stopPoller:function(){this._intervalId&&(clearInterval(this._intervalId),delete this._intervalId)},_pollerTick:function(){for(var t=this._getCurrentWidth(),i=this._getCurrentHeight(),n,u=!1,r=0;r<this._callbacks.length;r++)n=this._callbacks[r],n.left===!0&&Math.abs(n.cWidth-t)>n.step&&(n.callback.apply(n.owner,[t,i]),n.cWidth=t,n.cHeight=i,u=!0),n.top===!0&&u===!1&&Math.abs(n.cHeight-i)>n.step&&(n.callback.apply(n.owner,[t,i]),n.cWidth=t,n.cHeight=i);this._width=t;this._height=i},_getCurrentWidth:function(){return this._element.offsetWidth},_getCurrentHeight:function(){return this._element.offsetHeight}});n.extend(n.ui.igResponsiveContainer,{version:"14.1.20141.2031"});typeof define=="function"&&define.amd&&define.amd.jQuery&&define("ig.ui.shared",["ig.util","jquery.ui.core","jquery.ui.widget"],function(){return n.ui.igLoading})}(jQuery),function(n){var s="data-scroll",h=function(n){try{n.preventDefault();n.stopPropagation()}catch(t){}},t=function(n){return n===null||n===undefined||typeof n=="number"&&isNaN(n)},r=function(n){return isNaN(n=parseInt(n,10))?0:n},u=function(n,t){return r(n.css(t))},f=function(n){return n==="draggable"},c=function(n){return n==="show"},o=function(n){return isNaN(n)||n<5},l=function(n){return n=n.originalEvent,n=n?n.touches:null,n&&n.length===1?n[0]:null},a=function(n){return n=n.target,n.nodeName==="#text"?n.parentNode:n},v=function(n,t){return n&&(n.has(t).length>0||n[0]===t)},i=function(n){return n&&n[0].parentNode?n:null},e=function(n){i(n)&&n.remove()},y=function(t){setTimeout(function(){var t=window.Modernizr;(!t||t.touch)&&n("body").find("["+s+"]").each(function(){var t=n(this),i=t.data("igScroll");i&&i.evts||t.data("igScroll")||t.data("scrollview")||t.igScroll({_find:!0})})},t===!0?1e3:100)};n.widget("ui.igScroll",{options:{thumbOpacityDrag:null,thumbOpacity:null,cancelStart:null,oneDirection:null,direction:null,animateShowDuration:null,animateHideDuration:null,hideThumbsDelay:null,hideDragThumbsDelay:null,xInertia:null,yInertia:null,xThumb:null,yThumb:null,xLabel:null,yLabel:null,marginLeft:null,marginRight:null,marginTop:null,marginBottom:null,xScroller:null,yScroller:null},events:{starting:null,started:null,scrolling:null,scrolled:null,stopped:null},scrollLeft:function(n){return t(n)?this._getScroll(!0):(this._scroll(n),this)},scrollTop:function(n){return t(n)?this._getScroll():(this._scroll(null,n),this)},scrollWidth:function(){return this._getScroll(!0,!0)},scrollHeight:function(){return this._getScroll(!1,!0)},_create:function(){var u,f,i=this,e=i.element,r=i.options;if(r._find){for(f in r)r.hasOwnProperty(f)&&t(r[f])&&(t(u=e.attr("data-"+f))&&(u=e.attr("data-"+f.replace("S","-s").replace("D","-d").replace("O","-o").replace("R","-r").replace("T","-t").replace("I","-i").replace("B","-b").replace("L","-l").replace("H","-h").replace("D","-d"))),t(u)||(r[f]=u));r.direction=r.direction||e.attr(s)}u=n.ui.igScroll.defaults;for(f in u)u.hasOwnProperty(f)&&r[f]===null&&(r[f]=u[f]);u=r.direction;i.dir=r.oneDirection&&u!=="x"&&u!=="y";i.evts={MSPointerDown:function(n){var t=n.originalEvent;t&&t.pointerType===2&&(n.target.msSetPointerCapture(i._pointer=t.pointerId),i.evts.touchstart(n))},MSPointerMove:function(n){i._pointer&&i._move(n)},MSPointerUp:function(n){i._pointer&&(n.target.msReleasePointerCapture(i._pointer),i.evts.touchend(n),delete i._pointer)},touchstart:function(n){delete i.skip;var t=i._pointer?n.originalEvent:l(n);t?(i.x=t.pageX,i.y=t.pageY,i.click=!0,i._isCancel(r)&&h(n)):i._move(n,"start")},touchmove:function(n){i._move(n)},touchend:function(t){i.click?i._isCancel(r)&&n(a(t)).trigger("mousedown").trigger("mouseup").trigger("click"):i._move(t,"end")}};e.bind(i.evts)},_isCancel:function(n){return n=n.cancelStart,n===!0||n==="ms"&&this._pointer},_createBar:function(t,i,r){var h,e,v,o,s,y,p=17,w=c(r),b=i?"inline-block":"block",a="margin"+(i?"Top":"Left"),l=i?"height":"width";(w||f(r))&&(h=n("<span />").css({position:"absolute",zIndex:u(t,"zIndex")+2,background:"transparent",border:"0px",opacity:0,display:"block"}).addClass("ui-widget").css(l,"1px").insertAfter(t),o=w?5:30,e=n("<span />").css("position","relative").css(l,o).css("display","block").appendTo(h),w?e.css("background","#101010"):(h.css("msTouchAction","none"),e.addClass("ui-corner-all ui-state-hover"),v=e.css("borderTopColor"),o=i?e[0].offsetHeight:e[0].offsetWidth,s=n("<span />").css({display:b,borderStyle:"solid",borderColor:v,borderWidth:i?"0px 1px 0px 0px":"0px 0px 1px 0px"}).addClass("ui-corner-"+(i?"left":"top")).css(l,"100%").appendTo(e),y=n("<span />").css("display","block").css(a,Math.floor((o-p)/2)+"px").addClass("ui-icon ui-icon-carat-1-"+(i?"w":"n")).appendTo(s),s=n("<span />").css("display",b).css(l,"100%").appendTo(e),y=n("<span />").css("display","block").css(a,Math.floor((o-p)/2)+"px").addClass("ui-icon ui-icon-grip-dotted-"+(i?"vertical":"horizontal")).appendTo(s),s=n("<span />").css({display:b,borderStyle:"solid",borderColor:v,borderWidth:i?"0px 0px 0px 1px":"1px 0px 0px 0px"}).addClass("ui-corner-"+(i?"right":"bottom")).css(l,"100%").appendTo(e),y=n("<span />").css("display","block").css(a,Math.floor((o-p)/2)+"px").addClass("ui-icon ui-icon-carat-1-"+(i?"e":"s")).appendTo(s)),e.css(a,-(o+1)+"px"));i?(this.barX=h,this.thumbX=e):(this.barY=h,this.thumbY=e)},_bar:function(n,t){var v,y,p,s,w,b,l,k,d,it,h=this.options,rt=2,o=r(t?h.marginLeft:h.marginTop),g=r(t?h.marginRight:h.marginBottom),ut=4,e=t?this.barX:this.barY,nt=t?h.xThumb:h.yThumb,a=t?n[0].offsetWidth:n[0].offsetHeight,ft=Math.max(a-o-g,ut),tt=Math.max(this._getScroll(t,!0),ut+o+g);if(!a||tt-a<1){e&&(e.remove(),delete this.bar);return}if(e){if(i(e))return e;e.insertAfter(n)}if(e||this._createBar(n,t,nt),e=t?this.barX:this.barY,e)return s=t?this.thumbX:this.thumbY,f(nt)&&s&&s.bind(this.evts),l=(t?n[0].offsetHeight:n[0].offsetWidth)-rt,y=u(n,"marginLeft")+(t?o:l),p=u(n,"marginTop")+(t?l:o),e.css({left:n.css("left"),top:n.css("top"),marginLeft:y+"px",marginTop:p+"px"}),c(nt)&&s.css(t?"width":"height",Math.floor(Math.max(a*a/tt,15))+"px"),it=t?s[0].offsetWidth:s[0].offsetHeight,v=(tt-ft-o-g+rt)/(ft-it),t?this.ratioX=v:this.ratioY=v,w=n.offset(),b=e.offset(),d=b.top-w.top-(t?l:o),k=b.left-w.left-(t?o:l),Math.abs(d)>0&&e.css("marginTop",p-d+u(n,"borderTopWidth")+"px"),Math.abs(k)>0&&e.css("marginLeft",y-k+u(n,"borderLeftWidth")+"px"),e},_scroller:function(t){var r=this.options,i=r.direction;if(this.evts&&(!t||i!=="y")&&(t||i!=="x"))return i=t?r.xScroller:r.yScroller,i&&typeof i=="string"&&(i=n(i)[0],t?r.xScroller=i:r.yScroller=i),i&&i.length&&(i=i[0]),i||this.element[0]},_getScroll:function(n,t){var i=this._scroller(n);return i?n?t?i.scrollWidth:i.scrollLeft:t?i.scrollHeight:i.scrollTop:0},_scroll:function(n,i){var r=this._scroller(!0);!r||this.inBarY||this.dir==="y"||t(n)||(r.scrollLeft=n,this.thumbX&&this.thumbX.css("marginLeft",Math.floor(r.scrollLeft/this.ratioX)+"px"));r=this._scroller();!r||this.inBarX||this.dir==="x"||t(i)||(r.scrollTop=i,this.thumbY&&this.thumbY.css("marginTop",Math.floor(r.scrollTop/this.ratioY)+"px"))},_vis:function(){return this.evts&&this.element[0].offsetWidth},_inertia:function(){var n=this,t={owner:n},h=.97,c=.8,i=n.speedX,r=n.speedY,l=n.options,u=17,v=Math.max(Math.min(parseFloat(l.xInertia),h),0),y=Math.max(Math.min(parseFloat(l.yInertia),h),0),f=(i?i[0]+i[1]+i[2]:0)*u,e=(r?r[0]+r[1]+r[2]:0)*u,o=n._getScroll(!0),s=n._getScroll(),a=function(){n.timer=setTimeout(function(){if(delete n.timer,t.deltaX=-Math.floor(f),t.deltaY=-Math.floor(e),!n._vis()||!n._trigger("scrolling",null,t)){n._end();return}o+=t.deltaX;s+=t.deltaY;n._scroll(Math.floor(o),Math.floor(s));n._trigger("scrolled",null,t);e*=y;f*=v;Math.abs(e)>c&&s>0||Math.abs(f)>c&&o>0?a():n._end()},u*3)};a()},_show:function(n){var e,t=this,s=t.options,h=parseFloat(s.thumbOpacity),c=parseFloat(s.thumbOpacityDrag),l=n?0:r(s.animateShowDuration),f=i(t.barX),u=i(t.barY);if(t.hiding&&(t.hiding.stop(!0),delete t.hiding),o(l)){f&&f.css("opacity",t.inBarX?c:h);u&&u.css("opacity",t.inBarY?c:h);return}e=f||u;e&&(t.showing=e.animate({opacity:h},{duration:l,complete:function(){delete t.showing},step:function(n){f&&u&&u.css("opacity",n)}}))},_hide:function(n){var t=this;t.time&&(t.showing&&(t.showing.stop(!0),delete t.showing),setTimeout(function(){(t.hiding||n)&&(e(t.barX),e(t.barY),delete t.hiding,t._fixSB())},0))},_end:function(){var n=this,t=n.options,u=n.thumbX&&f(t.xThumb)||n.thumbY&&f(t.yThumb),e=r(t.animateHideDuration);if(n._trigger("stopped",null,{owner:n}),n.skip||!n._vis())return n._hide(!0);u=r(u?t.hideDragThumbsDelay:t.hideThumbsDelay);n.timerEnd=setTimeout(function(){if(!n.timer&&n.timerEnd)if(o(e))n._hide(!0);else{var t=i(n.barX),r=i(n.barY);t||(t=r,r=null);t&&(n.hiding=t.animate({opacity:0},{duration:e,complete:function(){n._hide()},step:function(t){r&&r.css("opacity",t);n.skip&&n.hiding&&n.hiding.stop()}}))}delete n.timerEnd},o(u)?5:u)},_clear:function(){this.timer&&(clearTimeout(this.timer),delete this.timer);this.timerEnd&&(clearTimeout(this.timerEnd),delete this.timerEnd)},_fire:function(n,t,i,r){return this._trigger(n,t,{owner:this,left:i,top:r})},_skip:function(n,t){var u=this.options.direction,i=this._scroller(!0)||0,r=this._scroller()||0,f=0,e=0,o=0,s=0;return(i&&(e=i.clientWidth,s=i.scrollWidth,i=i.scrollLeft),r&&(f=r.clientHeight,o=r.scrollHeight,r=r.scrollTop),(u==="y"||e>=s)&&(u==="x"||f>=o))?!0:(Math.abs(t)>Math.abs(n)||u==="y")&&u!=="x"?t>0&&!r||t<0&&r+f>=o:n>0&&!i||n<0&&i+e>=s},_fixSB:function(i){var u,f,r=this._on;if((!i||!r)&&(r||i)){if(u=this._scroller(),f=this._scroller(!0),r){u&&!t(r.y)&&(u.style.overflowY=r.y);f&&!t(r.x)&&(f.style.overflowX=r.x);delete this._on;return}r=this._on={};u&&(r.y=n(u).css("overflowY"),u.style.overflowY="hidden");f&&(r.x=n(f).css("overflowX"),f.style.overflowX="hidden")}},_move:function(n,t){if(this.evts){var u,y={owner:this},b=(new Date).getTime(),r=this,s=3,k=r.x0,d=r.y0,c=r.speedX,o=r.speedY,g=r.top,nt=r.left,tt=r.inBarY,it=r.inBarX,rt=r.barX,ut=r.barY,p=!r.drag,ft=r.element,w=r._pointer?n.originalEvent:l(n),f=w?w.pageX:0,e=w?w.pageY:0,et=a(n);if((!r.click||!r._pointer||!(Math.abs(r.x-f)<3)||!(Math.abs(r.y-e)<3))&&(delete r.click,!r.skip)){if(r._fixSB(!0),r._clear(),t||!w){r.skip||t!=="end"||p||(r.inBarX||r.inBarY?r._end():r._inertia());delete r.drag;return}(p?(r.skip=r._skip(f-r.x,e-r.y),r.skip&&r._end()):(y.deltaX=r.x-f,y.deltaY=r.y-e),!r.skip&&this._trigger(p?"starting":"scrolling",n,y))&&(p?(u=i(rt)||i(ut),k=r.x0=f,nt=r.left=r._getScroll(!0),delete r.speedX,rt=r._bar(ft,!0),it=r.inBarX=v(rt,et),d=r.y0=e,g=r.top=r._getScroll(),delete r.speedY,ut=r._bar(ft),tt=r.inBarY=v(ut,et),r._show(u||it||tt)):(f=r.x-y.deltaX,u=(f-r.x)/(b-r.time),Math.abs(u)>s&&(u=u>0?s:-s),c?(c[0]=c[1],c[1]=c[2],c[2]=u):r.speedX=[0,0,u],e=r.y-y.deltaY,u=(e-r.y)/(b-r.time),Math.abs(u)>s&&(u=u>0?s:-s),o?(o=r.speedY=[0,0,u],o[0]=o[1],o[1]=o[2],o[2]=u):(r.speedY=[0,0,u],r.dir&&(r.dir=Math.abs(u)>=Math.abs(r.speedX[2])?"y":"x"))),r.drag=!0,r.x=f,r.y=e,r.time=b,h(n),f=it?nt+Math.floor((f-k)*r.ratioX):nt-f+k,e=tt?g+Math.floor((e-d)*r.ratioY):g-e+d,r._scroll(f,e),this._trigger(p?"started":"scrolled",n))}}},destroy:function(){return this.evts&&(this.element.unbind(this.evts),delete this.evts,this.showing&&this.showing.stop(!0),this.hiding&&this.hiding.stop(!0),this._clear(),e(this.barX),e(this.barY),n.Widget.prototype.destroy.apply(this,arguments)),this}});n.extend(n.ui.igScroll,{version:"14.1.20141.2031"});n.ui.igScroll.defaults={thumbOpacityDrag:1,thumbOpacity:.5,animateShowDuration:300,animateHideDuration:500,hideThumbsDelay:200,hideDragThumbsDelay:1e3,xInertia:.8,yInertia:.85,marginLeft:2,marginRight:2,marginTop:2,marginBottom:2,xThumb:"show",yThumb:"show"};try{n(":jqmData(role='page')").live("pageshow",y)}catch(p){y(!0);n(document).bind("igcontrolcreated",function(n,t){var i=t.owner.scrollContainer();i.length===0&&t.owner.container&&(i=t.owner.container().find("[data-scroll]").eq(0));i.igScroll({_find:!0})})}}(jQuery),function(n){var t=function(n,t){return n===null||n===undefined||t&&typeof n=="number"&&isNaN(n)},s=function(n){return n?typeof n=="number"?n:(n=n.toString(),n=n.match(/[e%mitc]/i)?0:parseFloat(n),isNaN(n)?0:Math.floor(n+.5)):0},r=function(n,t){return s(n.css(t))},f=function(n){return n.attr("tabIndex",-1).css("outline",0).attr("unselectable","on")},e=function(n){try{n.preventDefault();n.stopPropagation()}catch(t){}},c=function(n,t){return n===t||n&&t&&n.getTime&&t.getTime&&n.getTime()===t.getTime()},o=function(){return(new Date).getTime()},h=function(t,i){return n.ig.util?n.ig.util.offset(t,i):i||(t?t.offset():null)},i=100,u;n.widget("ui.igCombo",{options:{height:null,width:null,tabIndex:null,animationShowDuration:100,animationHideDuration:50,enableDisplayBlock:!1,mode:"editable",dropDownOnFocus:!1,renderMatchItems:"multi",caseSensitive:!1,filteringCondition:"contains",filteringType:null,filterExprUrlKey:null,autoComplete:!1,format:!0,selectedItems:[{index:-1,value:null,text:null}],multiSelection:"off",enableActiveItem:!0,allowCustomValue:!1,clearSelectionOnBlur:!1,selectItemBySpaceKey:!1,itemSeparator:", ",dropDownWidth:0,dropDownMaxHeight:300,dropDownMinHeight:0,dropDownAsChild:!1,virtualization:!1,showDropDownButton:!0,enableClearButton:!0,noMatchFoundText:null,dropDownButtonTitle:null,clearButtonTitle:null,text:null,itemTemplate:null,headerTemplate:null,footerTemplate:null,nullText:null,dataSource:null,dataSourceType:null,dataSourceUrl:null,responseTotalRecCountKey:null,responseDataKey:null,responseContentType:null,requestType:"GET",validatorOptions:null,inputName:null,loadOnDemandSettings:{enabled:!1,pageSize:null},dataBindOnOpen:!1,closeDropDownOnSelect:!0,closeDropDownOnBlur:!0,valueKeyType:null,textKeyType:null,valueKey:null,textKey:null,parentCombo:null,cascadingDataSources:null,parentComboKey:null},events:{dropDownOpening:null,dropDownOpened:null,dropDownClosing:null,dropDownClosed:null,dataBinding:null,dataBound:null,textChanged:null,selectionChanging:null,selectionChanged:null,activeItemChanging:null,activeItemChanged:null,noMatchFound:null,filtering:null,filtered:null},css:{combo:"ui-igcombo ui-state-default ui-widget ui-corner-all",field:"ui-igcombo-field ui-corner-all",fieldHolder:"ui-igcombo-fieldholder",fieldHolderRTL:"ui-igcombo-fieldholder-rtl ui-corner-right",fieldHolderLTR:"ui-igcombo-fieldholder-ltr ui-corner-left",hover:"ui-igcombo-hover ui-state-hover",focus:"ui-igcombo-focus ui-state-focus",fieldHover:"ui-igcombo-field-hover",fieldFocus:"ui-igcombo-field-focus",disabled:"ui-igcombo-disabled ui-state-disabled",waitFiltering:"ui-igcombo-waitfiltering",nullText:"ui-igcombo-nulltext",button:"ui-igcombo-button ui-state-default",buttonRTL:"ui-igcombo-button-rtl ui-corner-left",buttonLTR:"ui-igcombo-button-ltr ui-corner-right",buttonFocus:"ui-igcombo-button-focus",buttonHover:"ui-igcombo-button-hover ui-state-hover",buttonPressed:"ui-igcombo-button-pressed ui-state-highlight",buttonIcon:"ui-igcombo-buttonicon ui-icon-triangle-1-s ui-icon",clear:"ui-igcombo-clear",clearHover:"ui-igcombo-clear-hover ui-state-hover",clearPressed:"ui-igcombo-clear-pressed ui-state-highlight",clearFocus:"ui-igcombo-clear-focus",clearIcon:"ui-igcombo-clearicon ui-icon-circle-close ui-icon",checkbox:"ui-state-default ui-corner-all ui-igcombo-checkbox ui-igcheckbox-small",checkboxHover:"ui-state-hover ui-igcombo-checkbox-hover",checkboxIconHover:"ui-state-hover ui-igcombo-checkboxicon-hover",checkboxOff:"ui-icon ui-igcombo-checkbox-off ui-igcheckbox-small-off",checkboxOn:"ui-icon ui-icon-check ui-igcombo-checkbox-on ui-igcheckbox-small-on",list:"ui-igcombo-list ui-widget ui-widget-content ui-corner-all",listItemHolder:"ui-igcombo-listitemholder",listItem:"ui-igcombo-listitem ui-state-default",listItemHover:"ui-igcombo-listitem-hover ui-state-hover",listItemActive:"ui-igcombo-listitem-active ui-state-active",listItemSelected:"ui-igcombo-listitem-selected ui-state-highlight",listItemMatch:"ui-igcombo-listitem-match",listItemTextWithCheckbox:"ui-igcombo-listitemtextwithcheckbox",noTopCorners:"ui-igcombo-no-top-corners",noBottomCorners:"ui-igcombo-no-bottom-corners"},RECORDS_VIEW:"{0}",RECORDS_DATA:"{1}",RECORDS_SERVER:"{2}",RECORDS_SERVER_TOTAL:"{3}",_create:function(){var w,nt,d,r,it,g,rt,a,h,tt,k,i=this,o=i.options,v=i.css,s=i.element,y=o.selectedItems,p=s,b=s.css("direction")==="rtl",c={display:0,visibility:0,position:0},l={title:0};if(i._data=[],i._rtl=b,i._lastScroll=i._virtualTop=i._topID=0,i._changeID=i._activeID=i._scrollTo=-1,r=i._noMouse()?null:o.renderMatchItems,i._matchFlag=r&&r!=="none"?r:null,o.id!==undefined&&o.id!==null&&o.id!==""&&(s.attr("id")===undefined||s.attr("id").toString()==="")&&s.attr("id",o.id),y&&y.length===1&&y[0].index===-1&&y[0].value===null&&(o.selectedItems=y=null),w=s[0].nodeName,w&&(w=w.toUpperCase()),d=w==="INPUT",i._SELECT=a=w==="SELECT",o.inputName||(i._oldCss=c,i._oldAttr=l),d)l.value=l.disabled=l.readOnly=l.alt=l.tabIndex=c.textAlign=c.position=c.overflow=c["float"]=0;else if(a){if(!o.dataSource)for(a=s[0].options,it=a.length,y&&y.length!==0||(g=y=o.selectedItems=[]),o.dataSource=[],o.valueKey="value",o.textKey="text",r=0;r<it;r+=1)h=a[r].text||a[r].innerHTML,o.dataSource[r]={value:a[r].value||h,text:h},g&&(r===s[0].selectedIndex||a[r].selected)&&y.push({index:r})}else{if(w!=="DIV"&&w!=="SPAN")throw new Error(w+" is not supported as base element");l.innerHTML=0}for(r in c)c.hasOwnProperty(r)&&(c[r]=s.css(r));for(r in l)l.hasOwnProperty(r)&&(l[r]=s[0][r]);if(c.width=s[0].style.width,o.width=o.width||c.width,c.height=s[0].style.height,o.height=o.height||c.height,y&&y.length>0)h="";else if(t(h=o.text))for(s[0].multiple||(h=o.inputName?"":d?l.value:a?s.val():l.innerHTML),h=h?h.replace(/[\x09\x0a]/g,""):"",r=h.length;(r-=1)>=0;)if(h.charCodeAt(r)===32)h=h.substring(0,r);else break;d||a?(i._swap=!0,s=n("<span />").css({position:p.css("position"),left:p.css("left"),top:p.css("top")}).insertBefore(p),b&&s.css("direction","rtl"),a&&(p.css("display","none"),p=n("<input />"))):(p=n("<input />"),o.inputName||s.html(""));i._oldTxt="";i.mainElem=s;r=s.css("position");i._static=!r||r==="static";s.css("overflow","hidden");i._fieldHolder=tt=n("<span />").addClass(v.fieldHolder).addClass(b?v.fieldHolderRTL:v.fieldHolderLTR).css("float",b?"right":"left").appendTo(s);i.fieldElem=p.appendTo(tt).addClass(v.field).css("float",b?"right":"left").bind(i._evts={keydown:function(n){i._onKey(n,0)},keypress:function(n){i._onKey(n,1)},keyup:function(n){i._onKey(n,2)},focus:function(n){i._onEvt(this,8,n)},blur:function(n){i._onEvt(this,9,n)},paste:function(n){i._onChange(n)},beforecut:function(n){i._onChange(n)},cut:function(n){i._onChange(n)},drop:function(n){i._onChange(n)}});t(r=o.tabIndex)||p.attr("tabIndex",r);p[0].disabled=o.disabled;p[0].readOnly=this._mode(o)>0?"readonly":"";s.addClass(v.combo).css("display","inline-block").bind(i._elemEvts={MSPointerOver:function(n){i._onEvt(this,26,n)},pointerover:function(n){i._onEvt(this,26,n)},mouseover:function(n){i._onEvt(null,6,n)},mouseleave:function(n){i._onEvt(null,7,n)}});i._mEvts=nt={mousedown:function(n){i._onEvt(this,3,n)},mouseup:function(n){i._onEvt(this,4,n)},MSPointerOver:function(n){i._onEvt(this,26,n)},pointerover:function(n){i._onEvt(this,26,n)},mouseover:function(n){i._onEvt(this,6,n)},mouseleave:function(n){i._onEvt(this,7,n)}};i._tEvts=k={touchstart:function(n){e(n)},touchmove:function(n){e(n)},touchend:function(t){e(t);var i=n(this);setTimeout(function(){i.trigger("mousedown").trigger("mouseup")},350)}};i.buttonElem=rt=f(n("<span />").addClass(v.button).addClass(b?v.buttonRTL:v.buttonLTR).css("float",b?"left":"right").attr("data-id",1).appendTo(s).bind(nt).bind(k));f(n("<span />").addClass(v.buttonIcon).appendTo(rt).bind(k));i.clearElem=g=f(n("<span />").addClass(v.clear).css("float",b?"left":"right").attr("data-id",2).appendTo(tt).bind(nt).bind(k));f(n("<span />").addClass(v.clearIcon).appendTo(g).bind(k));i._titles();i.validator();i._clearOn=!1;i._doSize();r=i._cascade();r?r!==!0&&(typeof r=="string"&&(r=r.replace("#","")),u=u||{},u[r]?u[r].push(i):u[r]=[i]):o.dataBindOnOpen||i.dataBind();h&&i.text(h);i._canFire=!0},dropDownVisible:function(n,t){return arguments.length?(this._canFire=t,this._doDrop(n?2:0),this._canFire=!0,this):!!this._ddOn},remove:function(){var t,i=this._validator,n=this.mainElem;if(n&&n[0])return i&&i.hide(),this._fcs&&this._onEvt(null,9),this.fieldElem.removeClass(this.css.fieldHover),n.removeClass(this.css.hover),t=n[0].parentNode,t&&t.tagName&&(this._doDrop(0),this._fcs=0,t.removeChild(n[0])),this},validator:function(n){var t=this.options.validatorOptions,r=this.fieldElem,i=this._validator;return i&&(n||!t)?(i.destroy(),delete this._validator):!i&&!n&&t&&r.igValidator&&(t.combo=t.element=this.mainElem,this._validator=r.igValidator(t).data("igValidator")),this._validator},validate:function(){return this._validator?this._validator.validate():null},setFocus:function(n){var t=this;if(t.fieldElem&&!t._fcs)if(n===-1)try{t.fieldElem[0].focus()}catch(i){}else setTimeout(function(){t.setFocus(-1)},n||0);return this},hasFocus:function(){return this._fcs===1},isSelected:function(n){for(var t=this.options.selectedItems,i=t?t.length:0;(i-=1)>=0;)if(t[i].index===n)return!0;return!1},selectedIndex:function(n,t){if(n===undefined){var i,r=this.options.selectedItems,u=r?r.length:0;for(n=-1;(u-=1)>=0;)i=r[u].index,n=n<0?i:Math.min(i,n);return n}return this._canFire=t!==!1&&(t||this._cascFire),this._select(n),this._updateFromList(null,1),this._fixNull(),this._canFire=!0,this},activeIndex:function(n,t){return n===undefined?this._activeID:(this._canFire=t,this._activate(n),this._canFire=!0,this)},value:function(n,t){return this._noMouse()?this.text(n,t):n===undefined?(n=this.options.selectedItems,n&&n[0]?n[0].value:null):(this._canFire=t!==!1&&(t||this._cascFire),this._valTime=o(),this._valLast=n,this._select(null,n),this._updateFromList(null,1),this._canFire=!0,this)},text:function(n,t){return n===undefined?(n=this.fieldElem.val(),this._nullT&&(!n||n===this.options.nullText)?"":n):(this._canFire=t!==!1&&(t||this._cascFire),this._select(null,n,2),this._updateFromList(null,1),this._custom()&&this._onChange(null,null,n),this._canFire=!0,this)},values:function(n){var r=this.options,i=r.selectedItems,t=i?i.length:0;if(n===undefined){for(n=[];(t-=1)>=0;)n[t]=i[t].value;return n}for(t=n?n.length:0,i=[];(t-=1)>=0;)i[t]={value:n[t]};return r.selectedItems=i,this._initSel(r),this},itemByIndex:function(n){return n<0?null:{element:this._findItem(n),index:n,value:this._item(n),text:this._item(n,2)}},itemByValue:function(n){for(var t=-1;++t<this._count;)if(c(n,this._item(t)))return this.itemByIndex(t)},getFooter:function(){return this.listElem?this.listElem.find("[data-footer]"):null},getDataSource:function(){return this._dataSource},getData:function(){return this._data},getRecordsCount:function(n){var t=this._count,i=this._dataSource;if(n===this.RECORDS_VIEW||n===0)return t;if(i){if((t=i._data.length,n===this.RECORDS_DATA||n===1)||(t=Math.max(i.totalRecordsCount(),t),n===this.RECORDS_SERVER||n===2))return t;(n===this.RECORDS_SERVER_TOTAL||n===3)&&(t=Math.max(Math.max(t,this._totalAll||0),parseInt(this.options._totalAll||0,10)))}return t},listScrollTop:function(n){n===undefined||this._ddOn||this.dropDownVisible(!0);var t=this._ddScroll||this._ddCont;return n===undefined?t?t[0].scrollTop:0:(t&&(t[0].scrollTop=n||0),this)},_cascade:function(i,r,u){var h,a,v,f=this,e=f._parentCombo,s=f.options,c=s.cascadingDataSources,l=f._cascOpt,y=u||s.parentCombo;if(u=i?e:y,e&&!i){for(h=e._cascFire,a=h?h.length:0;a-->0;)if(h[a]===f){h.splice(a,1);h.length===0&&delete e._cascFire;break}if(delete f._parentCombo,delete f._cascFilter,r)return;l&&(s.valueKey=l.value,s.textKey=l.text,s.dataSource=l.ds,s.dataSourceUrl=l.url,u||f.dataBind())}if(u&&!r){if(i)delete f._cascSel,f.selectedIndex(-1),f.activeIndex(-1);else{if(!c){if(h=s.parentComboKey,!h)return;s.filteringType==="remote"?f._cascFilter=-1:(s.filteringType="local",f._cascFilter=1);f._cascKey=h;v=s.dataSource?null:s.dataSourceUrl}if((typeof u=="string"||u.nodeName)&&(u=n(y),u.length!==1&&(u=n("#"+y),u.length!==1))||(u&&u[0]&&typeof u.data=="function"&&(y=u[0],u=u.data("igCombo")),!u||u.widgetName!=="igCombo"||u===f||!u._hasData))return y;for(h=u._cascFire,a=h?h.length:0;a-->0;)if(h[a]===f)break;a<0&&(u._cascFire=h=h||[],h.push(f));f._parentCombo=u;!l&&c&&(l=f._cascOpt={value:s.valueKey,text:s.textKey,ds:s.dataSource,url:s.dataSourceUrl})}return e=u.options.selectedItems,e=e&&e.length>0?e[0].value:null,f._valTime&&o()-f._valTime<200&&(f._valTime=1),c?(c=e===null?null:c[e],e=c?c.valueKey:null,s.valueKey=e||l.value,e=c?c.textKey:null,s.textKey=e||l.text,s.dataSourceUrl=v=c?c.dataSourceUrl:null,s.dataSource=c?c.dataSource||(c.length&&!v?c:null):null,f._hasData=!1,f._urlBind=f._lod=f._totalAll=s._totalAll=f._count=0,f._cascUrl=v,v&&(e=s.selectedItems,f._cascSel=e?e[0]?e[0].value:null:null),f.dataBind(),delete f._cascUrl):(f._cascVal=e,f._hasData?t(e,!0)||e===""?f._dataChange():f.filter():(f._cascUrl=v,f.dataBind(),delete f._cascUrl)),!0}},_noMouse:function(){var n=this.options,t=n.dataSource;return n=n.itemTemplate,n&&t&&t.length===1&&n.indexOf("{")<0&&n.indexOf("}")<0},_custom:function(){return this.options.allowCustomValue||this._noMouse()},_multi:function(n){return n=n.multiSelection,n&&n!=="off"},_checkBox:function(n){return n=n.multiSelection,n===2||n&&n.toLowerCase&&n.toLowerCase()==="onwithcheckboxes"},_mode:function(n){return n=n.mode,n===1||n==="dropdown"?1:n===2||n==="readonlylist"?2:n===3||n==="readonly"?3:0},_fixSelElem:function(n,t){var r=this.css,i=r.listItemSelected,u=r.checkboxOff;t?n.addClass(i):n.removeClass(i);n.attr("data-check")&&(n[0]._check=t,i=r.checkboxOn,n.find("[data-icon]").removeClass(t?u:i).addClass(t?i:u))},_copyA:function(n){for(var t=n?n.length:0,i=t?[]:null;(t-=1)>=0;)i[t]=n[t];return i},_clearSel:function(){for(var n=this._selElems,t=n?n.length:0;(t-=1)>=0;)this._fixSelElem(n[t]);this._selElems=null},_selChanged:function(n){if(this._selArg){for(var i,r,u,f=this._cascFire,t=f?f.length:0;t-->0;)f[t]._cascade(!0);this._fire("selectionChanged",n,this._selArg);this._SELECT&&(i=this.element[0],r=i.options,u=this.options.selectedItems,t=u?u[0]:null,t=t?t.index:-1,i.selectedIndex=t,r&&t>=0&&t<r.length&&(r[t].selected=!0),i.onchange&&i.onchange());delete this._selArg}},_selChange:function(n,t,i,r){var f,u=this.options.selectedItems,e=u?u.length:0,s=n?n.length:0;if(s||(n=null),e===s)while(e-->0){for(f=0;f<s;f+=1)if(r){if(u[e].value===n[f].value&&u[e].text===n[f].text)break}else if(u[e].index===n[f].index)break;if(f===s)break}if(u=e>=0&&this._hasData&&!this._waitFilter?{owner:this,oldItems:u,items:n}:null,delete this._selArg,!u||this._fire("selectionChanging",t,u)||r)return this._selTime=t&&this.options.focusOnSelect===!1?o():0,this._selArg=u,(i||!s)&&this._clearSel(),this.options.selectedItems=n,this._noFilter=n&&n.length,1},_addSel:function(n,t){if(n>=0&&!this.isSelected(n)){var i=this._copyA(this.options.selectedItems);n=this._createSelItem(n);i?i.push(n):i=[n];this._selChange(i,t)&&this._selChanged(t)}return this.options.selectedItems},_sepEnd:function(n){var t=this._sep(),i=n.length;return i>1&&n.lastIndexOf(t)===i-t.length},_select:function(n,i,r,u,f){var o,h,a,s,p,d,c=null,v=-1,w=-1,e=-1,y=this.options,b=1,g=this._count,l=u?y.allowCustomValue?2:1:null,k=!1,nt=!y.caseSensitive&&typeof i=="string";if(f&&u&&!this._ddOn&&f.type!=="mouseup"&&this._doDrop(1,f),!this._noMouse()){if(l&&(this._changeID=-1),t(i)||i==="")typeof n=="number"&&n>=0&&n<g&&(c=[this._createSelItem(v=n)]);else{if(r===2&&(i=i.toString()),o=typeof i=="string"?this._texts(i):i.length?i:[i],(h=o.length)>0&&(s=o[h-1],!s&&(r===2||t(s))&&(l===1&&(k=this._sepEnd(i)),o.splice(h-=1,1))),h===0){this._selChange(c,f,1,1);this._selChanged(f);return}while((e+=1)<h)o[e]={val:o[e],id:-1,done:null};for(this._isStrCond(p=this._cond(y))||(p="startsWith"),d=this._dataSource,n=-1;(n+=1)<g&&b;)if(!t(a=this._item(n,r)))for(nt&&(a=a.toString().toLowerCase()),b=null,e=0;e<h;e+=1)if(!o[e].done&&(b=1,i=o[e].val,i===a||u&&d._findMatch(a,i,"string",!1,p))){for(s=e;(s-=1)>=0;)if(o[s].id===n)break;if(l&&s>=0)continue;l&&e+1===h&&!k?w<0&&(this._changeID=v=w=n,l!==1||y.enableActiveItem||(o[e].id=n)):o[e].id<0&&(o[e].id=n);l===1||i!==a&&u||(o[e].id=n,o[e].done=1)}for(c=[],e=0;e<h;e+=1)if((n=o[e].id)>=0&&l!==2){for(v<0&&(v=n),s=c.length;(s-=1)>=0;)if(c[s].index===n)break;s<0&&(this._multi(y)||c.length===0)&&c.push(this._createSelItem(n))}}this._selChange(c,f,1)&&(v>=0&&(this._fixSelScroll(this._scrollTo=v),k&&this._updateFromList(f,1,1)),this._selChanged(f));l&&this._activate(w,f)}},_createSelItem:function(n,t,i){return{index:n,value:i||this._item(n),text:t||this._item(n,2)}},_item:function(i,r){var u,a,f,y,e,s,h,c=this.options,v=this._keyVal,o=this._data[i],l=this._matchFlag;if(r&&(v=this._key),!o)return r?"":null;if((u=o[v],!r)||(e=e||c.format,e?t(y=o[f=v+"_"])?(u=t(u)?"":n.ig&&n.ig.formatter&&(typeof u=="number"||u&&u.getMonth)?n.ig.formatter(u,null,e==="auto"||e===!0?null:e):u.toString(),o[f]=u):u=y:u=t(u)?"":u.toString(),r!==1))return u;if(a=u,f=c.itemTemplate,f&&n.ig.tmpl){if(!this._it){if(n.ig.util.isIE&&f.indexOf("unselectable")<0)for(s=["<div","<span","<img","<a","<td","<li"],h=s.length;h-->0;)f=f.replace(new RegExp(s[h],"gi"),s[h]+' unselectable="on"');this._it=f}return u=n.ig.tmpl(this._it,o),l&&(u=this._replaceTextInTemplate(u,a,this._renderMatches(a,c,l))),u}return u===""?"&nbsp;":l?this._renderMatches(u,c,l):u},_replaceTextInTemplate:function(t,i,r){var u;return i!==r?(u=n(t),u=this._replaceTextInNode(u,i,r),u=n("<div>").append(u),u.html()):t},_replaceTextInNode:function(t,i,r){var e=t.children(),u=t.clone().children().remove().end(),f;for(u.html(u.text().replace(i,r)),f=0;f<e.length;f++)u=u.append(this._replaceTextInNode(n(e[f]),i,r));return u},_renderMatches:function(n,t,i){for(var r,u,o,e,s,h=t.caseSensitive?n:n.toLowerCase(),f=0,l=0,c=[],a=this._textsTemp||this._texts(1),v=a.length;f<99999;){for(u=-1,f=99999,e=h.length;(u+=1)<v;)r=h.indexOf(a[u]),o=a[u].length,r>=0&&r<f&&(r===0||i!=="startsWith")&&!(i==="full"&&e!==o)&&o&&(f=r,s=o);if(f<99999&&(c.push({index:l+=f,len:s}),h=h.substring(f+s),l+=s),i!=="multi"||l>=e)break}for(u=c.length-1;u>=0;u-=1)r=c[u].index,e=c[u].len,n=n.substring(0,r)+'<span unselectable="on" class="'+this.css.listItemMatch+'">'+n.substring(r,r+e)+"<\/span>"+n.substring(r+e);return n},_renderRow:function(r,u){var h,e,c,l,a,s,f=this,w=f._itemWidth,y=f.options,p=f._checkBox(y),v=f._cbWidth||0,o=f._html,b=f._lodWait&&!o;if(b){if(f._findItem(r+f._virtualTop))return;u=!1}if(o){if(u=!1,!f._data[r])return;o+='<li tabIndex="-1" class="'+f.css.listItem+'" style="width:';o+=w+"px;height:"+f._itemHeight+'px" unselectable="on" data-id="'+(r+i)+'"'}else u||(e=n("<li />").addClass(f.css.listItem).css({width:w,height:f._itemHeight}).attr("data-id",r+i).attr("tabIndex",-1).attr("unselectable","on").appendTo(f._itemsHolder),p?(c=n("<span />").attr("data-box","x").attr("unselectable","on").css("top",(f._cbTop||0)+"px").addClass(f.css.checkbox).appendTo(e.attr("data-check","x")),n("<span />").attr("data-icon","x").attr("unselectable","on").addClass(f.css.checkboxOff).appendTo(c),v||(f._cbWidth=v=c[0].offsetWidth),s=n("<span />").attr("data-txt","x").attr("unselectable","on").addClass(f.css.listItemTextWithCheckbox).css(f._rtl?"marginRight":"marginLeft",Math.max(v,14)+3+"px").prependTo(e)):e.attr("data-txt","x"));if(r+=f._virtualTop,u){if(e=this._findItem(r),!e)return;if(!y.virtualization&&!f._matchFlag)return e}return h=f._item(r,1),o?(p?(o+=' data-check="x"><span unselectable="on" data-txt="x" style="'+(f._rtl?"margin-right:":"margin-left:")+(Math.max(v,14)+3)+'px;" class="'+f.css.listItemTextWithCheckbox+'">'+h+"<\/span>",o+='<span unselectable="on" data-box="x" style="top:'+(f._cbTop||0)+'px" class="'+f.css.checkbox,o+='"><span unselectable="on" data-icon="x" class="'+f.css.checkboxOff+'"><\/span><\/span>'):o+=' data-txt="x">'+h,f._html=o+"<\/li>"):f._data[r]?e[0]._old!==h&&(e[0]._old=h,s=e.find("[data-txt]"),s.length===0&&(s=e),h!==s[0].innerHTML&&s.html(h),p&&t(f._cbTop)&&(c=e.find("[data-box]"),c[0]&&(a=e[0].clientHeight)>0&&(l=c[0].offsetHeight)>0&&(l>=a&&e.css("height",a=l+1),f._cbTop=Math.max((a-l-1)/2,0))),e.show()):(e.hide(),s=f._findItem(r+1),s&&s.hide()),b&&f._bindLIs(y,e),e},_isCheckBox:function(n){return n&&(n.getAttribute("data-box")||n.parentNode.getAttribute("data-box"))},_fixNull:function(n){var t,i=this.options.nullText;(i||this._nullT)&&(t=this.text(),n||t!==""||!i||this._fcs?this._nullT&&(this._nullT=null,this.fieldElem.removeClass(this.css.nullText).val(t||"")):(this._nullT=!0,this.fieldElem.addClass(this.css.nullText).val(i)))},_onScroll:function(n){var u,e,f,s,l,i,o,t=this,r=t._count,h=t._itemHeightOuter,c=t._ddScroll||t._ddCont;if(c&&t._ddOn&&!(r<2)&&!t._lodWait){if(l=Math.floor((i=c[0].scrollTop)/h),n&&(t._lastScroll=i),i=Math.floor(t._lastScroll/h+.4),t._lod&&i>r-t._page*1.5){if(o=t._dataSource,i=o.pageIndex(),i+1<o.pageCount()){t._wait(t._lodWait=!0);o.pageIndex(i+1);return}i=l}if(t._topID=i=Math.max(0,Math.min(i,r-Math.floor(c[0].offsetHeight/h))),t._ddScroll){for(t._fixActive(t._activeID),r=t._page+1,t._virtualTop=i,e=t.options.selectedItems,s=e?e.length:0,t._selElems=[];(r-=1)>=0;)if(u=t._renderRow(r,1),u){for(f=0;f<s;f+=1)if(e[f].index===r+i){t._selElems.push(u);t._fixSelElem(u,1);break}f>=s&&t._fixSelElem(u)}t._fixActive(t._activeID,1)}}},_lodLbl:function(){for(var n=-1,t=this.listElem;n++<3&&this._lodFoot&&t;)t.find("[data-lod"+n+"]").html(this.getRecordsCount(n))},_touch:function(n){var t,i=this._ddCont;if(i&&i.igScroll){if(t=i.data("igScroll"),!n)return t?t.barY:i.igScroll({direction:"y",yThumb:"draggable",yScroller:this._ddScroll,cancelStart:"ms"}).attr("data-scroll","y");t&&t[n](!0)}},_xyCheck:function(n){var i=this._xy,t=this.mainElem;i&&(t&&(t=h(t),(Math.abs(t.left-i.x)>2||Math.abs(t.top-i.y)>2)&&(n=!0)),(n||!t)&&(delete this._xy,clearInterval(i.i),this._doDrop()))},_vAct:function(t){return n.ui.igValidator&&n.ui.igValidator._act(this,t)},_doDrop:function(t,u,e){var a,at,vt,yt,wt,d,ni,g,ut,bt,kt,y,ft,v,et,l,p,dt,pt,st,s=this,ti=s._lod,ii=s._lodWait,b=s._listUp,ot=s._extraHeight||0,nt=s._ddCont,w=s.options,ri=s._rtl,gt=w.virtualization,c=s.listElem,ht=s._itemsHolder,rt=s._ddScroll,k=s.mainElem,tt=s._ddItemBorderFix,ct=s._ddOn,lt=s._count,it=s._itemHeightOuter;if((e=e||s._listChanged,s._mode(w)>2&&(t=0),k&&(t||ct)&&(t!==2||!ct))&&(e||!ct||!t||!(o()-ct<100))&&(t=t?e||!ct:!1,!s._vAct(t?"drop":"hide"))){if(!it&&lt&&t&&(e=!0),!s._hasData){t&&w.dataBindOnOpen&&!s._dataSource&&(s.dataBind(),setTimeout(function(){s._doDrop(2,u)},0));return}if(lt<1&&s._filtering&&(d=s._noResults,d||(s._noResults=d=f(n("<li />").css({width:"100%",textAlign:"center"}).addClass(s.css.listItem).html(s._locale("noMatchFoundText")||"&nbsp;")))),t&&(!t||ct)||s._fire(t?"dropDownOpening":"dropDownClosing",u,dt={owner:s,element:c||n("<div/>")})){if(!ii&&t&&s._activeID>=0&&!s.isSelected(s._activeID)&&(l=s.selectedIndex())>=0&&s._activate(s._scrollTo=l,u,1),et=!w.dropDownAsChild,c||(e=!1),(!c||e)&&(delete s._listChanged,((v=parseInt(w.dropDownWidth,10))<5||isNaN(v))&&(v=k[0].offsetWidth)<5&&(v=100),c||(c=s.listElem=rt=nt=f(dt.element.attr("data-id",i-1).css("position","absolute").addClass(s.css.list).bind(s._mEvts).bind({DOMMouseScroll:function(n){s._onEvt(this,10,n)},mousewheel:function(n){s._onEvt(this,10,n)}})),st=w.footerTemplate,(w.headerTemplate||st)&&(c.css("overflow","hidden"),w.headerTemplate&&f(n("<div/>").attr("data-id",i-1).css({overflow:"hidden",position:"relative"}).html(w.headerTemplate).appendTo(c)),rt=nt=f(n("<div/>").attr("data-id",i-1).css("position","relative").appendTo(c)),st&&(l=st,st=st.replace(this.RECORDS_VIEW,'<span data-lod0="x"><\/span>').replace(this.RECORDS_DATA,'<span data-lod1="x"><\/span>').replace(this.RECORDS_SERVER,'<span data-lod2="x"><\/span>').replace(this.RECORDS_SERVER_TOTAL,'<span data-lod3="x"><\/span>'),s._lodFoot=l!==st,f(n("<div/>").attr("data-footer","x").attr("data-id",i-1).css({overflow:"hidden",position:"relative"}).html(st).appendTo(c))),ot=1),s._ddCont=nt,s._itemsHolder=ht=f(n("<ul/>").attr("data-id",i-1).addClass(s.css.listItemHolder).appendTo(nt)),gt&&(nt.css({overflow:"hidden"}),s._ddScroll=rt=f(n("<div/>").attr("data-id",i-1).css({width:"30px",height:"100%",overflowY:"scroll",overflowX:"hidden",float:ri?"left":"right"}).appendTo(nt)),s._ddScrollChild=f(n("<div/>").attr("data-id",i-1).css({width:"1px",height:"1px"}).appendTo(rt))),rt.scroll(function(n){s._onScroll(n)}),s._rtl&&c.css("direction","rtl"),et?c.css({left:"0px",top:"0px"}).appendTo(n("body")):c.prependTo(k),s._ddBorderFix=c.outerWidth()-c.width(),ot&&(nt.hide(),c.css("width",v-s._ddBorderFix),s._extraHeight=ot=c[0].clientHeight,c.css("width","auto"),nt.show())),c.css({display:"block"}),pt=v-=s._ddBorderFix,d?(ht.has(d).length===0&&d.appendTo(ht),it=Math.max(10,d.outerHeight()),tt=0):ii||(gt?(rt.hide(),ht.css({width:"auto",height:"auto",overflow:"visible",float:"left"})):s._keyFixed=1),!it&&lt>0&&(s._itemWidth=v=Math.ceil(v-1),s._itemHeight="auto",d=s._renderRow(0),(a=d.height())<5&&(a=16),d.css({height:s._itemHeight=a}),s._ddItemBorderFix=tt=Math.max(0,Math.floor(d.outerWidth()-d.width()+.4)),tt>0&&(s._itemWidth=v-=tt),s._itemHeightOuter=it=d.outerHeight()+Math.max(0,ht[0].offsetHeight-d[0].offsetHeight),s._sameBC(d,c)),it=it||0,s._listHeight=Math.max(10,Math.max((g=w.dropDownMinHeight)-ot,it*(lt||1))),g=Math.min(Math.max(0,Math.max(g,w.dropDownMaxHeight)-ot),s._listHeight),ti&&(g=Math.min((ti-1)*it,g)),a=nt.css("height"),a=e&&a&&a.indexOf("px")>0?parseFloat(a):g,c.css("width",pt),at=s._listHeight>g,gt?(s._ddScrollChild.css("height",s._listHeight+it),nt.css("height",s._listHeight=g),c.css("height",g+ot),at?(rt.show(),rt.css("width",v=rt[0].offsetWidth-rt[0].clientWidth+1),v=pt-v,ht.css({width:v,height:"100%",overflow:"hidden",float:ri?"right":"left"}),v-=tt,lt=Math.ceil(g/it+1)):(rt.hide(),ht.css("width","100%"))):(nt.css({overflow:at?"auto":"hidden",width:pt,height:s._listHeight=g}).css("overflowX","hidden"),c.css("height",g+ot),at&&(ni=n("<div/>").css({position:"absolute",top:g+100+"px",width:9,height:9}).appendTo(nt),v=nt[0].clientWidth,v=nt[0].clientWidth-tt,ni.remove())),at||(v=pt-tt),s._itemWidth=v,this._repaintList(0,lt),s._page=it?Math.max(2,Math.floor(g/it)):1,e&&ct)){s._needsSel&&(s._fixSelScroll(-1),delete s._needsSel);l=s._listHeightLast;a=s._listHeight+ot;tt=l-a;b&&(ut=s._listTop,s._listTop+=tt);s._listHeightLast=a;tt&&((p=tt<0?w.animationShowDuration:w.animationHideDuration)>5?c.css("height",l).animate({height:a},{duration:p,step:function(n){b&&c.css(et?"top":"marginTop",ut+tt*(l-n)/(l-a))}}):b&&c.css(et?"top":"marginTop",ut+tt));return}return a=s._listHeightLast=s._listHeight+ot,s._ddOn=t?o():null,p=t?w.animationShowDuration:w.animationHideDuration,!p||typeof p=="number"&&p<5?p=null:(ft=t?w.animationShowEffect:w.animationHideEffect,n.effects&&n.effects[ft]||(t||typeof p=="number"||(p=450),ft=null)),s._listHeightEnd=p&&!ft?0:a,ut=function(){t?(c.css("filter",""),s._fixSelScroll(s._scrollTo),s._touch()):(c.css({display:"none"}),s._touch("_hide"));s._fire(t?"dropDownOpened":"dropDownClosed",u,dt)},bt=function(n,t){s._listUp&&t&&t.prop==="height"&&c.css(et?"top":"marginTop",s._listTop+a-n)},t?(s._lodLbl(),s.setFocus(),s._needsPaint&&s._repaintList(),et||s._static&&!s._relative||k.css("overflow","visible"),s._needsSel&&(s._fixSelScroll(-1),delete s._needsSel),vt=999,wt=document.body,kt=document.documentElement,(l=window.innerHeight)>50&&l?vt=l:(l=kt.clientHeight)>50&&l?vt=l:(l=wt.clientHeight)>50&&l&&(vt=l),yt=Math.max(window.pageYOffset||0,Math.max(wt.scrollTop,kt.scrollTop)),y=h(k),s._xy=et?{x:y.left,y:y.top}:null,y.height=k[0].offsetHeight,s._listUp=null,(b=y.top+y.height+a-yt-vt)>0&&yt-y.top+a<b?(s._listUp=b,y.top-(b=a+2)<yt&&!s._filtering&&(b=Math.max(y.top-yt,2)),y.top+=(y.height=-b)+r(k,"borderTopWidth"),k.addClass(s.css.noTopCorners),c.addClass(s.css.noBottomCorners)):(y.top+=y.height-r(k,"borderBottomWidth"),k.addClass(s.css.noBottomCorners),c.addClass(s.css.noTopCorners)),c.css({opacity:p&&!ft?0:1,height:s._listHeightEnd,display:""}),et?(c.css({left:y.left,top:s._listTop=y.top}),s._xy.i=setInterval(function(){s._xyCheck()},300)):(l=s._rtl?"Right":"Left",c.css("margin"+l,-r(k,"border"+l+"Width")+"px"),b=s._listUp?0:r(k,"borderTopWidth")+r(k,"borderBottomWidth"),c.css("marginTop",s._listTop=y.height-b),b=h(c),(b=b.left-y.left)>30&&b<k[0].offsetWidth+10&&c.css("marginLeft",-b+"px")),p?ft?c.show(ft,{},p,ut):c.animate({opacity:1,height:a},{duration:p,complete:function(){ut()},step:function(n,t){bt(n,t)}}):ut()):(et||s._static&&!s._relative||k.css("overflow","hidden"),s._xyCheck(!0),k.removeClass(s.css.noTopCorners).removeClass(s.css.noBottomCorners),c.removeClass(s.css.noBottomCorners).removeClass(s.css.noTopCorners),p?ft?c.hide(ft,{},p,ut):c.animate({opacity:0,height:s._listHeightEnd},{duration:p,complete:function(){ut()},step:function(n,t){bt(n,t)}}):ut()),!0}}},_repaintList:function(n,t){if(!this._noMouse()){var r=this,i=!t;for(i&&(n=Math.max(0,this._topID-1),t=n+(this._page&&(this._ddScroll||this._matchFlag)?this._page+3:-1)),t=Math.min(t,this._count),delete this._needsPaint,this._textsTemp=this._texts(1),i||this._lodWait&&(!this._lod||this._filtering!==-1)||(this._html=" ");n<t;)this._renderRow(n,i),n+=1;this._html&&(this._itemsHolder.html(this._html.substring(this._bindLI=1)),delete this._html,setTimeout(function(){r._bindLIs()},600));this._paintAct&&this._fixActive(this._activeID,1);delete this._textsTemp}},_startOfSelTrail:function(n,t,i){var f,e,o=0,r=0,u=this._tr();if(u===1)r=n.selectionStart,o=n.selectionEnd;else if(u)try{f=document.selection.createRange();u=f.duplicate();u.move("textedit",-1);try{while(u.compareEndPoints("StartToStart",f)<0)if(u.moveStart("character",1),(r+=1)>i)break}catch(s){}o=r+f.text.length}catch(h){}return r===i&&i>2&&(e=this._sep(),e.length>1&&t.charAt(i-1)===e.charAt(1)&&t.charAt(i-2)===e.charAt(0))?r-1:r<o&&o===i?r:0},_tr:function(){var r=this.fieldElem[0],i=this._trVar;if(!i){try{n.ig.util.isIE&&!n.ig.util.isIE11||t(r.selectionStart)||(i=1)}catch(u){}if(i!==1)try{i=r.createTextRange?r.createTextRange():null}catch(f){}this._trVar=i}return i},_setCaret:function(n,t){var i=this._tr();if(t=t||n,i)try{if(i===1){i=this.fieldElem[0];i.selectionStart=n;i.selectionEnd=t;return}if(this._selTime&&o()-this._selTime<50)return;t-=n;i.move("textedit",-1);i.move("character",n);t>0&&i.moveEnd("character",t);i.select()}catch(r){}},_autoComplete:function(t){var s,u,f,h,p,r,nt,l,o,k,e=-1,a=this._filtering?this._activeID:this._changeID,d=this.fieldElem,v=this._acArgs,i="",w=0,b=this.options,c=b.selectedItems,g=c?c.length:0,y=this._sep();if(v&&!this._noMouse()&&(delete this._acArgs,u=v.txt,f=v.len,h=v.e,!h||h.keyCode!==n.ui.keyCode.DELETE||!this._custom())){if(p=v.backKey,s=u.length,g>0){for(t&&(a=-1),l=u.split(y),nt=c,c=[],t=d.val();(e+=1)<g;){for(r=nt[e].text,o=0;o<l.length;o+=1)if(l[o]===(b.caseSensitive?r:r.toLowerCase())){c[o]=r;t===l[o]&&t!==r&&d.val(r);break}o!==l.length||k||(k=r)}while(e>=0)r=e<g?c[e]:k,r&&(i.length>0&&(i=y+i),i=r+i),e-=1}if(t=null,r=a>=0?this._item(a,2):null,r&&(!i||i!==r)&&(i&&(i+=y),i+=r),i&&s>1&&f===s&&this._multi(b)&&!p&&u.charAt(s-1)===y.charAt(0)&&(a>=0&&(this._addSel(a,h),this._fixSelScroll(-1)),u=i+=y,t=f=e=i.length),this._userTxt=u,i)if(f<(w=i.length)||e>0)d.val(this._oldTxt=i);else if(p)w=f=s;else return;else if(s>0&&!this._filtering&&this._fire("noMatchFound",h,{owner:this,text:u}),!p)return;this._setCaret(f,w);this._userTxt=u.substring(0,f);this._selLen=w-f;t&&this._multi(b)&&this._filtering&&this.filter(h,null,this._noFilter)}},_onChange:function(n,i,r,u){var v,s,o,a,f=this,c=f.fieldElem,h=f._oldTxt,l=f.options;if(c&&c[0]){if(o=n?n.type:null,o&&n.keyCode!==13&&o.indexOf("blur")<0&&o.indexOf("mouse")<0&&f._userTxt!==r&&delete f._noFilter,f._hasData&&f._nullT&&i===undefined&&!f._fcs&&f._fixNull(1),t(r)||(c.val(f._userTxt=r),r=1),o=f.text(),s=o.length,n&&n.type!=="blur"&&(r||i===2)&&f._setCaret(s),!f._expr&&u===!0&&l.autoComplete&&s>0&&(v=f._startOfSelTrail(c[0],o,s))>0)return e(n),f._onChange(n,1,o.substring(0,v-1),2);if(o!==h||f._selLen===1&&!i&&f._userTxt&&h.length-f._userTxt.length==1){if(o===h&&(f._userTxt=h),delete f._filterTxt,f._oldTxt=o,f._fixClear(),f._needsPaint=1,n&&(f._fire("textChanged",n,{owner:f,oldText:h,text:o}),f._validator&&f._validator._evt(n)),a=l.autoComplete&&(s>0||u),f._filtering){if(i===2&&f._multi(l)){f._repaintList();return}f._userTxt=o;f.filter(n,null,f._noFilter)}else i!==2&&f._select(null,o,2,1,n),a||(f._userTxt=o,f._repaintList());a&&(f._acArgs={txt:o,len:s,e:n,backKey:u},f._filtering>=0&&setTimeout(function(){f._jpn||f._autoComplete();f._repaintList()},0))}i?(f._save(l),n&&!f._ddOn&&f._fcs&&f._doDrop(1,n)):setTimeout(function(){f._onChange(n,1)},10)}},_save:function(t){var i,r,u,e,o=-1,f="",s=t.inputName;if(s&&this._hasData&&!this._waitFilter&&(r=n('input[name="'+s+'"]'),r[0]!==this.element[0])){for(r.length===0&&(r=n('select[name="'+s+'"]'),u=r.length,u?r.empty():r=n('<input type="hidden" name="'+s+'" />').appendTo(this.element.parent())),e=t.selectedItems;e&&(o+=1)<e.length;)i=this._item(e[o].index),i&&i.getTime&&(i=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate()+" "+i.getHours()+":"+i.getMinutes()+":"+i.getSeconds()+"."+i.getMilliseconds()),u?n('<option value="'+i+'" selected="selected" >').appendTo(r):(o>0&&(f+=","),f+=i);o<1&&this._custom()&&(f=this.text(),u&&n('<option value="'+f+'" selected="selected" >').appendTo(r));u||r.val(f)}},_onKey:function(t,i){var f=t?t.keyCode||t.which:null,r=this,s=r._ddOn,u=r._activeID,h=r.options,o=n.ui.keyCode,v=h.selectedItems,c=f===o.BACKSPACE,l=r._count-1,a=r._mode(h);if(i<2&&!r._fire(i===0?"keydown":"keypress",t,{owner:r,keyCode:f}))return e(t);if(i<2&&f===o.SPACE&&(a>0||h.selectItemBySpaceKey&&u>=0&&h.enableActiveItem&&s)){e(t);a<2&&u>=0&&i===0&&r._fixSelScroll(u,t,null,null,1);return}if(f===46&&t.stopPropagation(),i<2&&(c||f>40||f===o.SPACE)&&a===0&&(r._jpn=f===229,r._onChange(t,null,null,c)),i===0){if(t.shiftKey)return;if(f===o.ESCAPE&&(s?(e(t),r._doDrop(0,t)):setTimeout(function(){r._onChange(t,null,r._focTxt)},0)),(s||u>=0)&&(f===o.ENTER||f===o.NUMPAD_ENTER)&&(e(t),a<2&&(u>=0&&h.enableActiveItem&&!r.isSelected(u)&&r._fixSelScroll(u,t,null,null,1),r._updateFromList(t)),r._doDrop(0,t)),f<33||f>40)return;if(t.ctrlKey)return;if(t.altKey||t.metaKey){if(f===o.DOWN&&!s||f===o.UP&&s)return r._doDrop(s?0:1,t)}else{if(r._count<1)return;if(u<0){if(!s&&f!==o.DOWN&&f!==o.UP)return;for(u=l+1,c=v?v.length:0;(c-=1)>=0;)u=Math.min(v[c].index,u);u>l&&(u=0)}else if(f===o.DOWN)u+=1;else if(f===o.UP)u-=1;else if(f===o.HOME&&s)u=0;else if(f===o.END&&s)u=l;else if(f===o.PAGE_DOWN&&s)u+=r._page;else if(f===o.PAGE_UP&&s)u-=r._page;else return;e(t);(u=Math.max(Math.min(u,l),0))!==r._activeID&&r._activate(u,t)&&(s?r._fixSelScroll(u,t,null,1):r.selectedIndex(u,!0))}}},_sep:function(){var n=this.options.itemSeparator||",";return n.length>2?n.substring(0,2):n},_updateFromList:function(n,t,i){var o=this._changeID,r="",s=this.options,f=-1,h=this._sep(),e=this._addSel(o===this._activeID?o:-1,n),u=e?e.length:0;if(delete this._jpn,!this._noMouse()){for(this._changeID=-1,!this._multi(s)&&u>1&&(u=1);(f+=1)<u;)r+=this._item(e[f].index,2),(f+1<u||i)&&(r+=h);(r.length>0||t)&&this._onChange(n,2,r)}},_findItem:function(n){var t=this._itemsHolder;if(t&&(n-=this._virtualTop,t=t.find('[data-id="'+(n+i)+'"]'),t.length===1))return t},_fixSelScroll:function(n,t,i,r,u){this._fixSel(n,t,i,r,u)||(t&&(this._updateFromList(t,u),u||r||!this.options.closeDropDownOnSelect||this._doDrop(0,t)),(r||!t)&&this._fixScroll(n))},_fixActive:function(n,t){var r=this.css.listItemActive,i=n>=0&&this.options.enableActiveItem?this._findItem(n):null;i?(t?i.addClass(r):i.removeClass(r),delete this._paintAct):t&&(this._paintAct=1)},_activate:function(n,t,i){if(!this.options.enableActiveItem||this._noMouse())return this._activeID=n,1;var r,u=this._activeID;u!==n&&this._fire("activeItemChanging",t,r={owner:this,oldIndex:u,index:n})&&(this._fixActive(u),this._fixActive(this._activeID=n=r.index,1),n>=0&&!i&&(!t||t.type!=="mousedown")&&this._fixScroll(n),this._fire("activeItemChanged",t,r))},_fixSel:function(n,t,i,r,u){var s,v=0,f=n,h=this.options,o=this._copyA(h.selectedItems),c=o?o.length:0,l=this._selElems,a=this._ddScroll,e=a&&n<0?null:this._selElems;if(!this._ddOn||this._noMouse())return 1;if(n>=0&&!i){if(i=this._findItem(n),!i)for(e=null;a&&!i&&f>=0&&f<=this._count&&(v+=1)<4;)this._fixScroll(f),this._onScroll(t),i=this._findItem(n),f-=1;if(!i)return 1}for(f=0;f<c;f+=1)if(s=e?e[f]:null,s||(s=this._findItem(o[f].index),s&&(e||(this._selElems=e=[]),this._fixSelElem(e[f]=s,1))),!(n<0)&&s&&t)if(s[0]===i[0]){if(u){o.splice(f,1);this._selChange(o,t)?(this._fixSelElem(i),e.splice(f,1),this._selChanged(t)):this._selElems=l;return}if(c===1)return}else u||this._fixSelElem(s);if(i&&t)if(f=null,u&&o&&this._multi(h)||(f=o=[],e=[]),o.push(this._createSelItem(n)),this._selChange(o,t,f))this._activate(n,t),e=e||[],e.push(i),this._selElems=e,this._fixSelElem(i,1),this._selChanged(t);else{for(this._selElems=l,f=0;f<this._selElems.length;f++)this._fixSelElem(this._selElems[f],!0);return 1}},_fixScroll:function(t){var f,i,u=this._lastScroll,r=this._ddScroll||this._ddCont,e=this._itemHeightOuter;if(r&&!this._lodWait){if(i=f=r[0].scrollTop,this._scrollTo=-1,t<0)u&&u!==i&&(r[0].scrollTop=u,i=r[0].scrollTop),n.ig.util.isSafari&&i>20&&(r[0].scrollTop=i-1);else if((i=t*e)>f&&(i+=e-this._listHeight)<f)return;i!==u&&(this._ddScroll&&i>u&&(i+=e-1),r[0].scrollTop=i)}},_bindLIs:function(n,t){var i=this,u=i._itemsHolder,r=t;if(i.mainElem){if(!t){if(!this._bindLI||!u)return;delete this._bindLI;r=u.find("li[data-id]")}r.bind(i._mEvts);i._checkBox(n||this.options)&&(i._evtHov||(i._evtHov={MSPointerOver:function(n){i._onEvt(this,26,n)},pointerover:function(n){i._onEvt(this,26,n)},mouseover:function(n){i._onEvt(this,16,n)},mouseleave:function(n){i._onEvt(this,17,n)}}),r=t||u,r.find("span[data-box]").bind(i._evtHov).bind(i._tEvts).find("span[data-icon]").bind(i._tEvts))}},_onEvt:function(r,u,f){var y,w,p,o=this,b=o._msOver,l=o.options,h=o.css,a=o.fieldElem,c=!r||r===a[0]||f&&f.target===a[0]?a:n(r),s=c.attr("data-id"),v=o.mainElem,k=o._mode(l);if(!l.disabled){if(u===8){o._focTxt=o.text();o._fcs=1;v.addClass(h.focus);a.addClass(h.fieldFocus);o._fixNull();k<3&&(o.buttonElem.addClass(h.buttonFocus),o.clearElem.addClass(h.clearFocus));!o._ddOn&&l.dropDownOnFocus&&setTimeout(function(){o._fcs&&o._doDrop(1,f)},50);return}if(u===9){if(y=o.text(),f&&o._jpn&&n.ig.util.isFF&&o._userTxt!==y&&o._onChange(f,null,y),o._jpn=o._fcs=0,v.removeClass(h.focus),a.removeClass(h.fieldFocus),o.buttonElem.removeClass(h.buttonFocus),o.clearElem.removeClass(h.clearFocus),!f)return;l.closeDropDownOnBlur&&o._doDrop(0,f);o._custom()||o._updateFromList(f,1);(l.clearSelectionOnBlur||!l.allowCustomValue)&&(o._changeID=-1,o._onChange(f,null));o._fixNull();o._validator&&o._validator._evt(f,null,1);return}if(u===10){v=o._ddScroll||o._ddCont;l=f.originalEvent||f;y=f.wheelDelta||l.wheelDelta||-(f.detail||l.detail);!t(y,!0)&&v&&(e(f),v[0].scrollTop+=y>0?-o._itemHeightOuter:o._itemHeightOuter);return}if(!n.ig.util||!n.ig.util.evtButton(f)){if(u===26){o._msOver=f.originalEvent.pointerType;return}if(b===2&&(u===6||u===16)){delete o._msOver;return}if((!s&&u>15&&(s=c.parent().attr("data-id")),s=c===a?0:isNaN(s=s?parseInt(s,10):-1)?-1:s,s>90&&o._bindLIs(l),!(s<0)&&(!(s>98)||!o._noMouse()))&&(u===3&&e(f),!(k>1)||!(u>7||s>3))){if(u===16)return c.addClass(h.checkboxHover);if(u===17)return c.removeClass(h.checkboxHover);if(w=s>=i?o._touch()&&!(b&&b!==2)?"":h.listItemHover:s===1?h.buttonHover:h.clearHover,p=s>=i?"":s===1?h.buttonPressed:h.clearPressed,u===3){s<3&&c.addClass(p);return}if(s!==i-1){if(u===4){if(s>=i)delete o._jpn,o._fixSelScroll(s-i+o._virtualTop,f,c,null,f.ctrlKey||f.metaKey||o._isCheckBox(f.target));else if(c.hasClass(p)){if(s===1){if(o._vAct("drop"))return;o.setFocus();o._doDrop(1,f)}s===2&&(o._filtering&&o._select(-1),o._onChange(f,null,""));c.removeClass(p)}return}u===6&&(s===0?(a.addClass(h.fieldHover),v.addClass(h.hover)):c.addClass(w));u===7&&(s===0?(v.removeClass(h.hover),a.removeClass(h.fieldHover),o._fcs===1&&v.addClass(h.focus)):c.removeClass(w).removeClass(p))}}}}},_fixClear:function(t){var i=this.options,r=i.enableClearButton&&this._oldTxt.length>0&&this._mode(i)<2&&!i.disabled;this._jpn&&n.ig.util.isFF||(this._clearOn!==r&&(this._clearOn=r,t=1),t&&this._doSize())},_doTimer:function(n){var t=this,i=t._timer;if(n===2){i&&(clearInterval(i),delete t._timer);return}(i||(t._timer=setInterval(function(){t._doTimer()},200)),n!==1)&&(!t._doSize(1)||t._percWidth||t._percHeight||t._doTimer(2))},_doButHeight:function(n,t){var i,r,f=this._butMinHeight,u=n,e=this._minHolderHeight;this.clearElem.css("height",t?"100%":n-e);n=Math.max(n-f,0);this.buttonElem.css("height",t?n/u*100+"%":n);i=this.buttonElem.children(0);r=i[0].offsetHeight||16;i.css("marginTop",Math.floor((u-(f||0)-r)/2+.5)+"px");i=this.clearElem.children(0);i.css("marginTop",Math.floor((u-e-(i[0].offsetHeight||r))/2+.5)+"px")},_outerWidth:function(n){return n[0].offsetWidth+r(n,"marginLeft")+r(n,"marginRight")},_outerHeight:function(n){return n[0].offsetHeight+r(n,"marginTop")+r(n,"marginBottom")},_sameBC:function(n,t){var i=n.css("backgroundColor");t.css("background",!i||i==="transparent"||i.replace(/ /g,"").indexOf("(0,0,0,0")>0?"white":i)},_doSize:function(t){if(this.mainElem){var k,f,p,d,ut,c,ht,i=this,v=i.options,u=v.width,e=v.height,w=i._relative,y=i.buttonElem,ft=i.css,l=i.mainElem,b=l[0],h=i.fieldElem,o=i._fieldHolder,ot=i._clearOn,tt=i._minFieldHeight,ct=i._minFieldWidth,lt=i._minHolderWidth,g=i._minHolderHeight,nt=i._butWidth,et=i._clearWidth,st=i._lastHeight,it=i.clearElem,a=b.offsetWidth,rt=b.offsetHeight;if(!a||i._offsetWidth||u&&e||(f=n("<span />").css({display:"inline-block",position:"absolute"}).addClass("ui-igcombo").appendTo(i.element.parent()),u||(u=f[0].offsetWidth,u>10?v.width=u:u=0),e||(e=f[0].offsetHeight,e>10&&e!==f.removeClass("ui-igcombo")[0].offsetHeight?v.height=e:e=0),f.remove()),u=u||150,e=e||"auto",f=i._offsetWidth!==a||u!==i._lastWidth||i._offsetHeight!==rt||e!==st,!a||t&&!f){a||i._doTimer(1);return}if(f&&i._listRemove(),i._lastWidth=u,i._lastHeight=e,i._percWidth=p=typeof u=="string"&&u.indexOf("%")>0,i._percHeight=d=typeof e=="string"&&e.indexOf("%")>0,(p||d)&&i._doTimer(1),st||(i._sameBC(h,o),w=l.css("position")!=="static",!w&&(p||d)&&(l.css("position","relative"),w=!0),i._relative=w,h.css("position",w?"absolute":"static")),o.css({position:"absolute",width:"auto",height:"auto"}),it.hide(),h.css({width:0,height:0}),st||(f=i._rtl?ft.fieldHolderRTL:ft.fieldHolderLTR,v.showDropDownButton?o.addClass(f):o.removeClass(f),f=i._rtl?ft.buttonRTL:ft.buttonLTR,v.showDropDownButton?y.addClass(f):y.removeClass(f),nt=0,v.showDropDownButton?(y.show(),nt=i._outerWidth(y),f=y.css("height"),y.css("height",0),i._butMinHeight=i._outerHeight(y),y.css("height",f)):y.hide(),i._butWidth=nt,i._minFieldWidth=ct=i._outerWidth(h),i._minFieldHeight=tt=i._outerHeight(h),i._minWidth=nt+i._outerWidth(h),v.enableClearButton&&(it.show(),i._clearWidth=et=i._outerWidth(it),it.hide()),h.hide(),i._minHolderHeight=g=o[0].offsetHeight,i._minHolderWidth=lt=o[0].offsetWidth,h.show()),f=s(u),f&&(u=f-r(l,"borderLeftWidth")-r(l,"borderRightWidth"),u<1&&(u=1)),f=s(e),f&&(e=f-r(l,"borderTopWidth")-r(l,"borderBottomWidth"),e<1&&(e=1)),l.css({width:u,height:e,display:"inline-block",minWidth:0,minHeight:0}),a=b.clientWidth,rt=b.clientHeight,o.css("height","auto"),ut=v.showDropDownButton?i._outerHeight(y):0,w||o.css("position","static"),h.css({height:"auto",position:"static"}),c=i._outerHeight(o),w&&h.css("position","absolute"),ot&&it.show(),v.height?(c=Math.max(rt-g,0),o.css("height",d?c/rt*100+"%":c),h.css("height",d?(c-tt)/c*100+"%":c-g-tt),i._doButHeight(rt,d)):c<ut?(o.css("height",ut-g),h.css("height",ut-g-tt)):(i._doButHeight(c,d),h.css("height",c-g-tt),w&&o.css("height",c-g),l.css("height",e=c)),l.css({display:v.enableDisplayBlock?"block":"inline-block",minWidth:i._minWidth+et+2}),u=Math.max(a-nt-lt,0),o.css("width",p?u/a*100+"%":u),a=b.clientWidth,ht=o[0].offsetWidth,(f=a-ht-nt)!=0&&(u+=f,o.css("width",p?u/a*100+"%":u)),k=u-ct-1,ot&&(k-=et),h.css("width",p?k/u*100+"%":k),(f=o[0].clientWidth-i._outerWidth(h)-(ot?et:0)-1)!=0&&(k+=f,h.css("width",p?k/u*100+"%":k)),!w){for(c=o[0].offsetHeight+5,l.css("height","auto"),f=0;f<4&&u>0;f+=1){if(b.offsetHeight<c)break;u-=.5;o.css("width",p?u/a*100+"%":u)}o.css("width",p?--u/a*100+"%":--u);l.css("height",e)}return i._offsetWidth=b.offsetWidth,i._offsetHeight=b.offsetHeight,1}},_listRemove:function(){var n=this;n.listElem&&(n._touch("destroy"),n.mainElem.removeClass(n.css.noTopCorners).removeClass(n.css.noBottomCorners),n.listElem.remove(),n._selElems=n.listElem=n._itemsHolder=n._ddCont=n._ddScroll=n._noResults=n._q=n._ddOn=n._extraHeight=n._listChanged=n._ddItemBorderFix=n._itemHeightOuter=n._bindLI=null,n._lastScroll=n._virtualTop=n._topID=0,n._activeID=n._scrollTo=-1)},destroy:function(){var t,o,u=this.mainElem,i=this.css,r=this._oldCss,f=this.fieldElem,e=this.element;if(o=u?u[0]:null,!o)return this;if(this._loadInd&&this._loadInd.destroy(),this._doTimer(2),this._listRemove(),this.validator(1),this._SELECT)u.remove(),e.css("display",r.display);else{f.removeClass(i.nullText).removeClass(i.fieldFocus).removeClass(i.fieldHolder).unbind(this._evts);this._swap?(f.removeClass(i.field),f.insertBefore(u),u.remove()):(this.buttonElem.remove(),this.clearElem.remove(),u.unbind(this._elemEvts).removeClass(i.combo).removeClass(i.hover).removeClass(i.focus).removeClass(i.disabled),f.remove());for(t in r)r.hasOwnProperty(t)&&e.css(t,r[t]);r=this._oldAttr;for(t in r)r.hasOwnProperty(t)&&(e[0][t]=r[t])}return this._cascade(!1,!0),delete this.mainElem,n.Widget.prototype.destroy.apply(this,arguments),this},_getType:function(n){return n===!0||n===!1?"bool":n&&n.getTime?"date":typeof n=="number"?"number":"string"},dataBind:function(){var u,f,a,o,k,r=this.options,w=r.dataSourceUrl,h=r.parentComboKey&&r.parentCombo?null:r.loadOnDemandSettings,p=r.responseDataKey,v=r.textKey||r.valueKey,d=r.dataSourceType,c=r.valueKeyType,y=r.textKeyType,nt=r.requestType,tt=r.responseContentType,s={fields:[]},i=r.dataSource,g=typeof i=="string",l=p?p.split("."):null,b=l?l.length-1:-1,e=-1;for(c=c==="auto"?null:c,g&&!d&&(i=n.ig.util.isJsonpUrl(i)?new n.ig.JSONPDataSource({dataSource:i}):new n.ig.DataSource({dataSource:i})),f=i;f&&e++<b;)f=f[l[e]];if(f?l&&(s.searchField=p):(f=i,l=null),u=f?f[0]:null,typeof u=="string"||typeof u=="number"||u&&u.getTime){for(e=f.length,u=f,f=[],v=v||"x";e-->0;)f[e]={},f[e][v]=u[e];if(l){for(u=i,e=-1;++e<b;)u=u[l[e]];u[l[b]]=f}else i=f}if(a={callback:this._dataChange,dataSource:i,requestType:nt,responseContentType:tt,type:d||undefined,responseDataKey:p,responseTotalRecCountKey:r.responseTotalRecCountKey},u=this._noMouse()||this._cascFilter?null:r.filteringType,this._filtering=u==="local"?1:u==="remote"?-1:0,f){f=f[0];for(u in f)f.hasOwnProperty(u)&&(v||(v=r.valueKey=r.textKey=u),e=this._getType(f[u]),c||u!==r.valueKey||(r.valueKeyType=c=e),s.fields.push({name:u,type:e}),v!==u&&r.valueKey!==u&&(r._all=1))}for((!(i instanceof n.ig.DataSource)||i.settings.schema)&&i instanceof n.ig.DataSource||(a=n.extend(a,{schema:s})),i instanceof n.ig.DataSource?(k=i._data&&i._data.length,a.dataSource=i.settings.dataSource,i.settings=n.extend(!0,{},i.settings,a),i.settings.callee=this,a.schema&&i._initSchema()):(i=new n.ig.DataSource(a),i.settings.callee=this),y=y==="auto"?null:y,s=c||y?i.schema():null,s=s?s.fields():null,e=s?s.length:0;(e-=1)>=0;)u=s[e],c&&u.name===r.valueKey&&(u.type=c),y&&u.name===r.textKey&&(u.type=y);i._response_data=function(n){var u=n?n.length:0,f=u>0?n[u-1][":totals:"]:null;f&&(n.pop(),f=f.split(":"),i.totalRecordsCount(t(u=parseInt(f[0],10),!0)?0:u),u=t(u=parseInt(f[1],10),!0)?0:u,u&&(r._totalAll=u))};delete this._lod;h&&h.enabled&&(w||g)&&(o=i.settings.paging,o.type="remote",o.appendPage=o.enabled=!0,o.pageSizeUrlKey=h.pageSizeUrlKey||null,o.pageIndexUrlKey=h.pageIndexUrlKey||null,t(e=parseInt(r._total,10),!0)||i.totalRecordsCount(e),h=parseInt(h.pageSize||30,10),o.pageSize=this._lod=t(h,!0)?30:Math.max(h,5),o.pageIndex=0);this._fire("dataBinding",null,{owner:this,dataSource:i},1)&&(this._dataSource=i,this._keyVal=this._hasData=this._key_=null,this._listRemove(),k?this._dataChange():i.dataBind());w&&!this._urlBind&&(o=i.settings,o.dataSource=w,o.type="remoteUrl",i._runtimeType=i.analyzeDataSource(),o.urlParamsEncoded=n.proxy(function(n,t){t=t?t.filteringParams:null;t&&(t.textKey=r.textKey||r.valueKey,t.valueKey=r.valueKey,r.caseSensitive||(t.toLower="1"),r._all||(t.compact="1"),r.parentComboKey&&(t.cascade=r.parentComboKey))},this),this._urlBind=1,r.dataSource||i.dataBind())},_cond:function(n,t){return n.autoComplete?"startsWith":t||!this._filtering?n.renderMatchItems:n.filteringCondition},_isStrCond:function(n){return n==="startsWith"||n==="endsWith"||n==="contains"||n==="doesNotContain"||n==="empty"||n==="notEmpty"},_texts:function(n){var r,u,f,e=n===1,o=this.options,i=this._multi(o)?this._sep():null;if(e||t(n))n=this._userTxt||this._oldTxt;else if(typeof n!="string")return[n];if(o.caseSensitive||(n=n.toLowerCase()),!i)return n?[n]:[];while(n.indexOf(i+i)>0)n=n.replace(i+i,i);return f=i.length,u=n.length,e?((r=n.lastIndexOf(i.charAt(0)))>0&&r===u-1&&(n=n.substring(0,u-=1)),(r=n.lastIndexOf(i))>0&&r===(u-=f)&&(n=n.substring(0,u))):(r=n.lastIndexOf(i.charAt(0)))>0&&r===u-1&&f>1&&(n+=i.charAt(1)),n.indexOf(i)===0&&(n=n.substring(f)),n?n.split(i):[]},_fillKeys:function(n){if((n||!this._keyFixed)&&this._key!==this._key_)for(var t=this._count;(t-=1)>=0;)this._item(t,2);this._keyFixed=1},_wait:function(n){var r=this.css.waitFiltering,t=this._loadInd,i=this.mainElem,u=this._itemsHolder;n?(i.addClass(r),u&&u.addClass(r),!t&&i.igLoading&&(t=i.igLoading().data("igLoading"),t&&(this._loadInd=t=t.indicator())),t&&t.show()):i&&(i.removeClass(r),u&&u.removeClass(r),t&&t.hide())},filter:function(n,t,i){var h,e,v=-1,s=this._cascFilter,u=s?this._cascVal:typeof t=="string"?[t]:t instanceof Array?t:this._texts(),c=s?0:u.length,f=c?u.toString():null,r=this._dataSource,l=this.options,o=[],a=s===-1||this._filtering<0;if(!i&&(!this._hasData||!f||this._filterTxt!==f)){if(this._expr){this._filterNew={txt:u,e:n};return}if(this._filterTxt=f,delete this._filterNew,a&&c>1&&!u[c-1]&&(c=0),s)f="equals",e=this._cascKey,o.push({fieldName:e,cond:f,expr:u});else for(f=this._cond(l),e=a||!this._isStrCond(f)?this._key:this._key_;(v+=1)<c;)o.push({fieldName:e,cond:f,expr:u[v]});if(o.length!==0||n){if(!this._fire("filtering",n,this._expr={owner:this,expression:o},1)){delete this._expr;return}if(a&&this._hasData&&!this._fire("dataBinding",null,{owner:this,dataSource:r},1)){delete this._expr;return}if(s||(this._needsSel=u,this._needsSelEnd=this._multi(l)&&this._sepEnd(this.text())),h=r.settings.filtering,h.caseSensitive=l.caseSensitive,h.type=l.filteringType,a){this._wait(!0);e=l.filterExprUrlKey;e&&(h.filterExprUrlKey=e);h.expressions=o;this._waitFilter=!this._hasData;this._lod&&(u=t!==null&&t!==undefined?t:this.text(),this._lodTxt!==u&&(this._lodTxt=u,r._data=[],r._dataView=[],r._filteredDataView=[],r._cachedDataView=null,r.settings.paging.pageIndex=0,r.pageSizeDirty(!0)));r.dataBind();return}o.length!==0&&(this._hasData||s)?(this._fillKeys(),r.filter(o,"OR",this._noFilter)):r.clearLocalFilter();this._dataChange(n,!0)}}},_checkExpr:function(){var i,n=this._filterNew,t=this._expr,r=n&&n.txt?n.txt.length||0:0;if(n){for(t&&(t=t.expression),r!==(t?t.length:0)&&(i=1);!i&&(r-=1)>=0;)i=n.txt[r]!==t[r].expr;if(i)return delete this._expr,this.filter(n.e,n.txt,this._noFilter),1;delete this._filterNew}},_fixType:function(n){var i,r=this.options.valueKeyType;if(!t(n)){if(r==="number")return typeof n=="number"?n:parseFloat(n);if(r==="bool")return n==="true"||n===!0;if(r==="date"&&!n.getTime)return n=n.toString(),i=n.replace(/[\. :]/g,"-").split("-"),i.length===7?new Date(parseInt(i[0],10),parseInt(i[1],10)-1,parseInt(i[2],10),parseInt(i[3],10),parseInt(i[4],10),parseInt(i[5],10),parseInt(i[6],10)):Date.parse(n)}return n},_initSel:function(n){for(var i,o,u,s,h,l=1,r=n.selectedItems,f=r?r.length:0,e=-1;!this._multi(n)&&f>1;)r.splice(f-=1,1);for(u=f;u-->0;)i=r[u],i.value=this._fixType(o=i.value);for(h=n.text||(f===1&&this._custom(n)?o:null),n.text=null;(e+=1)<this._count&&l;)for(o=this._item(e),l=null,u=f;(u-=1)>=0;)i=r[u],t(s=i.index)||s<0?c(i.value,o)?this.isSelected(e)?(r.splice(u,1),f-=1):(i.index=e,i.text=this._item(e,2)):(l=1,e===this._count-1&&r.splice(u,1)):(i.value=i.value||this._item(s),i.text=i.text||this._item(s,2));!h||r&&r.length?this.text()&&this._custom(n)||this._updateFromList(null,1):this.text(h)},_dataChange:function(i,r){var a,h,d,s,p,w,ft,tt,et,e,it,rt=this._lodWait,f=this._cascFilter,y=!f,c=-1,k=-1,v=this._needsSel,l=-1,b=this._keyVal,g=this._key,ot=this._itemsHolder,nt=this._dataSource,ut=f||this._filtering,o=this.options;if(o&&this._multi&&!this._cascUrl){if(s=o.selectedItems,f&&(t(this._cascVal,!0)||this._cascVal==="")?ut=!1:p=nt.dataView(),this._data=p=p||[],this._count=a=w=p.length,!this._hasData&&!a&&o.dataSourceUrl&&o.selectedItems&&(this._urlSel=1),!b){if(b=o.valueKey,!b&&p[0])for(b in p[0])if(p[0].hasOwnProperty(b))break;this._keyVal=b;g=o.textKey||b;this._key_=this._key=g;this._keyFixed=!o.format;this._keyFixed||(this._key_+="_")}if(a&&!o.valueKeyType){while(++c<a)if(!t(e=this._item(c))){o.valueKeyType=e===!0||e===!1?"bool":typeof e=="number"?"number":e.getTime?"date":"string";break}for(c=s?s.length:0;c-->0;)s[c].value=this._fixType(s[c].value);this._cascSel=this._fixType(this._cascSel)}if(this._hasData){if(this._checkExpr())return;this._urlSel===1?(this._initSel(o),this._urlSel=2):((this._urlSel||rt&&this.selectedIndex()<0&&!o.autoComplete)&&(h=this.text()),rt||(this._activate(-1,i),this._clearSel(),this._lastScroll=this._virtualTop=this._topID=0,this._scrollTo=-1),ot&&(rt||ot.empty(),this._listChanged=1),h&&this._select(null,h,2))}if(this._expr){if(ut<0&&this._fire("dataBound",null,{owner:this,dataSource:nt},1),this._isStrCond(it=this._cond(o))||(it="startsWith"),(this._ddOn||i&&i.type==="keydown")&&this._doDrop(1,i),this._fillKeys(1),d=v&&!f?v.length:0,f&&(this._initSel(o),e=s?s[0]:null,e)){while(++l<a)if(e.value===this._item(l)){e.index=l;break}l===a&&(o.selectedItems=null,this.fieldElem.val(""))}for(s=[];(l+=1)<a&&y;)for(h=this._item(l,2),c=-1,y=null;(c+=1)<d;)if(v[c]&&(y=1,h&&nt._findMatch(h,v[c],"string",!o.caseSensitive,it)&&(e=null,s[c]||(s[c]=e=this._createSelItem(l,h)),tt=h.length===v[c].length,(!ft||tt)&&(ft=1,w=Math.min(w,l),tt)))){et||(w=l);et=1;s[c]=e||this._createSelItem(l,h);v[c]=null;this._multi(o)||(l=a+1);break}for(s[0]&&(h=s[0].text);(d-=1)>=0;)e=s[d],(!e||k<0&&!this._needsSelEnd)&&(e&&(k=e.index),e&&e.text===h||s.splice(d,1));f||this._selChange(s,i)&&(this._selChanged(i),this._needsSelEnd&&this._updateFromList(i,1,1));k<0&&a&&(e=this._item(0,2),h=this.text(),e&&h&&(o.caseSensitive||(e=e.toLowerCase(),h=h.toLowerCase()),e.indexOf(h)===0&&(k=0)));k>=0&&this._activate(w=k,i,1);this._fixSelScroll(this._scrollTo=w===a?0:w);this._fire("filtered",i,this._expr,1);this._autoComplete(1);this._wait();delete this._waitFilter;delete this._expr}else{if(this._urlSel!==2)if(h=this.text(),v=this.selectedIndex(),h&&!this._custom(o)&&v<0)this._hasData&&o.autoComplete||this._select(null,h,2);else{if(i===!0&&!t(v=v<0?this._cascSel:null)){for(s=null;!s&&++l<a;)this._item(l)===v&&(s=[this._createSelItem(l,null,v)]);o.selectedItems=s;s||this.fieldElem.val("");delete this._cascSel}f||this._initSel(o)}this._fire("dataBound",null,{owner:this,dataSource:nt},1);this._urlSel!==2||f?ut&&this.filter(null,null,this._noFilter):(this._noFilter=1,this._updateFromList(null,1),delete this._noFilter,delete this._urlSel);this._ddOn&&this._doDrop(1,i,1)}if(this._mode(o)>1&&this.selectedIndex()<0&&this.value()===null&&this.selectedIndex(0),p.length<1&&this._fire("noMatchFound",i,{owner:this,text:this.text()}),this._hasData=1,this._fixClear(),this._fixNull(),this._save(o),this._lodWait&&!r&&(this._wait(),this._fixSel(),delete this._lodWait),this._lodLbl(),u)for(y=u[l=i=this.element[0]],y||(y=u[l=i.id]),a=y?y.length:0;a-->0;)if(e=y[a],c=f=e.options.parentCombo,c===l||c==="#"+l?f=i:(f&&typeof f=="string"&&(f=n(f),f.length!==1&&(f=n("#"+c))),f&&f.element?f=f.element[0]:f&&f.length===1&&(f=f[0])),f===i){if(u){delete u[l];for(g in u)if(u.hasOwnProperty(g)){f=null;break}f&&(u=undefined)}e._cascade(!1,!1,this)}this._valTime===1&&(delete this._valTime,this.value(this._valLast,!0))}},_locale:function(i){var r=this.options[i];return t(r)&&(r=n.ig.Combo&&n.ig.Combo.locale?n.ig.Combo.locale[i]:null),r||""},_titles:function(){var n=this._locale("clearButtonTitle");this.clearElem.attr("title",n).attr("longdesc",n);n=this._locale("dropDownButtonTitle");this.buttonElem.attr("title",n).attr("longdesc",n)},_fire:function(n,t,i,r){return this._canFire||r?this._trigger(n,t,i):!0},_same:function(n,i){if(n===i)return!0;if(n&&i&&typeof i!="string"){var u,f,e,o,r=i.length;if(r===n.length&&!t(r)){while(r-->0){if(e=i[r],e&&!n[r]||!e&&n[r])return;for(o in e)if(e.hasOwnProperty(o)&&(u=e[o],f=n[r][o],u!==f&&(u&&!f||!u&&f||!u.getTime||!f.getTime||u.getTime()!==f.getTime())))return}return!0}}},_setOption:function(t,i){var r=this.options,u=this.fieldElem,f=this.mainElem;return this._same(r[t],i)?this:(t==="selectedItems"&&this._clearSel(),(t.indexOf("virt")===0||t.indexOf("Match")>0||t.indexOf("empl")>0||t.indexOf("drop")===0||t==="caseSensitive"||t==="format"||t==="enableActiveItem")&&(r=null,delete this._it),t!=="multiSelection"&&r||this._listRemove(),n.Widget.prototype._setOption.apply(this,arguments),t.indexOf("par")===0||t.indexOf("casc")===0||t.indexOf("useT")===0)?(this._cascade(),this):typeof i=="function"||!r?this:(t==="width"||t==="height"||t==="showDropDownButton"?(this._lastHeight=null,this._doSize()):t==="selectedItems"||t==="multiSelection"?(this._initSel(r),this._updateFromList(null,1),this._fixNull()):t.indexOf("Title")>0?this._titles():t.indexOf("dataS")===0||t.indexOf("fil")===0||t.indexOf("Key")>0||t.indexOf("OnDem")>0?(this._hasData=!1,this._lod=this._totalAll=r._totalAll=this._count=0,this.selectedIndex(-1),this.activeIndex(-1),this.dataBind()):t==="enableClearButton"?this._fixClear(1):t==="tabIndex"||t==="disabled"?(u.attr(t,i),this._fixClear()):t==="mode"?(u.attr("readOnly",this._mode(r)>0),this._fixClear()):t==="enableDisplayBlock"?f.css("display",i?"block":"inline-block"):t==="itemSeparator"?this._updateFromList():t==="text"?this.text(i):t==="nullText"?this._fixNull():t==="validatorOptions"&&this.validator(),this)}});n.extend(n.ui.igCombo,{version:"14.1.20141.2031"})}(jQuery),function(n){var r,f,c=0,t=[],a=0,i=0,w=0,d=1,s=2,h=3,v=4,b=5,y=6,p={my:"center",at:"center",collision:"fit",of:window,using:function(t){t.top<0&&(t.top=0);t.left<0&&(t.left=0);var i=n(this).css(t).offset();i.top<0&&n(this).css("top",t.top-i.top);i.left<0&&n(this).css("left",t.left-i.left)}},k=function(n,t){return n&&t&&(n.has(t).length>0||n[0]===t)},l=function(n){return n.attr("zIndex",-1).css("outline",0).attr("unselectable","on")},e=function(n,t){var i=n.css(t);if(!i)return 0;if(t=parseFloat(i),i.indexOf("px")>0)t+=.7;else if(i.indexOf("em")>0)t*=12;else return 0;return Math.floor(t)},o=function(n,t,i){return e(n,(i||"padding")+(t?"Top":"Left"))+e(n,(i||"padding")+(t?"Bottom":"Right"))+e(n,"border"+(t?"Top":"Left")+"Width")+e(n,"border"+(t?"Bottom":"Right")+"Width")},u=function(n){try{n.preventDefault();n.stopPropagation()}catch(t){}};n.widget("ui.igDialog",{options:{mainElement:null,state:"opened",pinned:!1,closeOnEscape:!0,showCloseButton:!0,showMaximizeButton:!1,showMinimizeButton:!1,showPinButton:!1,pinOnMinimized:!1,imageClass:null,headerText:null,showHeader:!0,showFooter:!1,footerText:null,dialogClass:null,container:null,height:null,width:300,minHeight:100,minWidth:150,maxHeight:null,maxWidth:null,draggable:!0,position:null,resizable:!0,tabIndex:0,openAnimation:null,closeAnimation:null,zIndex:null,modal:!1,trackFocus:!0,closeButtonTitle:null,minimizeButtonTitle:null,maximizeButtonTitle:null,pinButtonTitle:null,unpinButtonTitle:null,restoreButtonTitle:null,temporaryUrl:null,enableHeaderFocus:!0,enableDblclick:"auto"},events:{stateChanging:null,stateChanged:null,animationEnded:null,focus:null,blur:null},css:{dialog:"ui-igdialog ui-dialog ui-widget ui-widget-content ui-corner-all",header:"ui-igdialog-header ui-dialog-titlebar ui-widget-header ui-corner-top ui-helper-clearfix",headerFocus:"ui-igdialog-header-focus ui-state-focus",headerMinimized:"ui-corner-bottom",headerText:"ui-igdialog-headertext ui-dialog-title",headerImage:"ui-igdialog-headerimage",headerTextMinimized:"ui-igdialog-headertext-minimized",headerButton:"ui-igdialog-headerbutton ui-corner-all ui-state-default",headerButtonHover:"ui-igdialog-headerbutton-hover ui-state-hover",close:"ui-igdialog-buttonclose",minimize:"ui-igdialog-buttonminimize",maximize:"ui-igdialog-buttonmaximize",pin:"ui-igdialog-buttonpin",closeIcon:"ui-igdialog-close-icon ui-icon ui-icon-close",minimizeIcon:"ui-igdialog-minimize-icon ui-icon ui-icon-minus",maximizeIcon:"ui-igdialog-maximize-icon ui-icon ui-icon-extlink",restoreIcon:"ui-igdialog-restore-icon ui-icon ui-icon-copy",pinIcon:"ui-igdialog-pin-icon ui-icon ui-icon-pin-s",unpinIcon:"ui-igdialog-unpin-icon ui-icon ui-icon-pin-w",footer:"ui-igdialog-footer ui-widget-header ui-corner-bottom ui-helper-clearfix",resizing:"ui-igdialog-resizing",dragging:"ui-igdialog-dragging",unmovable:"ui-igdialog-unmovable",overlay:"ui-igdialog-overlay ui-widget-overlay",contentIframe:"ui-igdialog-content-iframe",content:"ui-igdialog-content ui-widget-content ui-dialog-content"},_create:function(){var e,t=this,r=t.element,i=r[0],c=i&&i.nodeName==="IFRAME"?i.src:null,f=t.options,o=f.state,a,l=t.css;f.container=f.container||this.element.parent();a=f.container;t._fixIE(r);t._old={position:r.css("position"),left:r.css("left"),top:r.css("top"),display:r.css("display"),visibility:r.css("visibility"),width:i.style.width,height:i.style.height};c&&(i.src=f.temporaryUrl||"");t._min=o==="minimized"||o===s;t._max=o==="maximized"||o===h;t._opened=o&&o!=="closed";t._oldDad=i.parentNode;t._next=t._oldDad?i.nextSibling:null;t._dad=a;r=n("<div />");this.element.contents().appendTo(r);t._elem=i=e=this.element;e.css({zIndex:f.zIndex||1e3,outline:0}).attr("tabIndex",f.tabIndex).keydown(function(r){if((f.closeOnEscape&&r.keyCode===n.ui.keyCode.ESCAPE&&(t.close(r),r.preventDefault()),r.keyCode===n.ui.keyCode.TAB)&&(t._tabTime=(new Date).getTime(),t._modal||t._max)){for(var a,h,o,w,c=-1,k=999999,v=k,d=-1,y=r.target,b=t._getTabIndex(y),l=r.shiftKey,p=n(":tabbable",e[0]),g=p.length,s=g;s-->0;)o=t._getTabIndex(i=p[s]),o>d&&(d=o,h=i),o<=v&&(v=o,a=i),o===b&&(w?c<0&&(c=s):(w=i===y,w||(c=s)));for(c<0&&(s=g),v=l?-1:k;s-->0;)o=t._getTabIndex(p[s]),(o>b&&o<v&&!l||o<b&&o>v&&l)&&(v=o,c=s);if(h=h||e[0],a=a||h,t._nextTabElem=c>=0?p[c]:l?h:a,y===e[0]||y===a&&l||y===h&&!l){u(r);i=l?h:a;try{i.focus()}catch(nt){}}}}).mousedown(function(n){t.moveToTop(n)});i.addClass(l.dialog);f.dialogClass&&i.addClass(f.dialogClass);r.show().addClass(l.content).appendTo(i);c!==null&&(r[0].src=c,r.addClass(l.contentIframe));t._modal=t._hasFocus=!1;t._lastFoc="blur";t._doHeader();t._doFooter();t._doDraggable();t._doResizable();t._min&&t._onMin(!0,!0,!0);t._max&&(f.pinned=!1,t._onMax(!0,!0,!0));f.pinned&&t._onPin(!0,!0,!0);t._opened?t._open():e.hide();t._created=!0;t._save()},_fixIE:function(n){n=n.find("*");for(var i,t,r=n.length;r-->0;)t=n[r],i=t.nodeName,(i==="/INPUT"||i==="/IMG")&&t.parentNode.removeChild(t)},destroy:function(){var t=this,i=this.element.children(".ui-igdialog-content");return this._doClose(null,!0),delete this._elem,t._winResize&&n(window).unbind("resize",t._winResize),this.element.children(".ui-igdialog-header").remove(),this.element.children(".ui-igdialog-footer").remove(),i.contents().unwrap(),this.element.removeClass(t.css.dialog).css(t._old),this.element.draggable("destroy"),this.element.resizable("destroy"),this.element.unbind(),n.Widget.prototype.destroy.apply(this,arguments),this},state:function(n){return arguments.length?(n!=="minimized"&&n!==s||this._min&&this._opened||(this._min?this._open(null,1):this._minimize()),n!=="maximized"&&n!==h||this._max&&this._opened||(this._max?this._open(null,1):this._maximize()),(n==="opened"||n===d)&&(this._min||this._max||!this._opened)&&(this._onMin(),this._onMax(),this._open(),this.options.state=n),(n==="closed"||!n)&&(this._min||this._max||this._opened)&&(this._onMin(),this._onMax(),this.close()),this):this.options.state},mainElement:function(){return this._elem},close:function(n){return this._opened&&this._doClose(n),this},open:function(){return this._open(null,1)},minimize:function(){return this._min||this._minimize(),this},maximize:function(){return this._max||this._maximize(),this},restore:function(){return this._max&&this._onMax(),this._min&&this._onMin(),this},pin:function(){return this.options.pinned||this._pin(),this},unpin:function(){return this.options.pinned&&this._pin(),this},getTopModal:function(){return t[t.length-1]},isTopModal:function(){return this.getTopModal()===this},moveToTop:function(f){var h,y,e=this,p=e.options,s=p.zIndex,c=e._elem,o=e._created?null:s,l=p.modal,v=this.element[0],w=v.scrollTop,b=v.scrollLeft;if(!n.ig||!n.ig.util||!n.ig.util.evtButton(f))return(s=s||1e3,h=f?f.target:null,k(e._header,h)||k(e._footer,h)?(y=h.nodeName,y!=="INPUT"&&y!=="BUTTON"&&(u(f),e._setFocus())):f&&!this._hasFocus&&e._setFocus(),i=Math.max(o||s,i),p.pinned)?e:l&&e._lastZ?(c=e._modalDiv,c&&c[0].offsetWidth<10&&e._onResize(),e):r===e&&(o||s)>=i?e:(r&&!o&&(r._elem.css("zIndex",r._lastZ||-1),r._save()),a>=i&&i++,l&&!o&&(i++,i++),r=e,e._lastZ=a=o||(l||t.length>0?i:s),o||(c.css("zIndex",o||i),e._save()),v.scrollTop=w,v.scrollLeft=b,l&&e._doModal(i),e)},_save:function(){var u,t,r,i=this.options,f=i.inputName;if(f){if(t=n('input[name="'+f+'"]'),t.length===0){if(t=t.parents("form")[0]||document.forms[0],!t)return;t=n('<input type="hidden" name="'+f+'" />').appendTo(t)}u="s"+(i.pinned?"1":"")+(this._opened?this._min?2:this._max?3:1:0)+(i.width?":w"+i.width:"")+(i.height?":h"+i.height:"")+(":z"+this._elem.css("zIndex")||i.zIndex);r=i.position;r&&r.length===2&&(u+=":p"+r[0]+","+r[1]);t.val(u)}},_open:function(n,t){var i=this,u=i.options,r=i._elem,e=i._min?null:u.openAnimation,f={action:"open",owner:this};return i._opened&&i._vis||t&&!i._fireState(n,!0,f)?i:(u.pinned||r.css("position","absolute"),u.width!==null&&r.show(),i._opened=!0,i._doSize(1),e&&r.hide().show(e,function(){i._trigger("animationEnded",n,f)}),i._vis=!0,c++,i._trackFocus(r),i.moveToTop(!0),i._fixState(),t&&i._fireState(n,!1,f),i._save(),i)},_initContainer:function(t,i){if(t&&(typeof t=="string"&&(t=n(t)),t&&t[0]&&(t=t[0])),t&&t.parentNode){if(t.nodeName!=="BODY"){var r=t.style,u=r?r.position:null;r&&(!u||u==="static")&&(r.position="relative")}}else t=this.element.parents("form")[0]||document.body;return i&&this._elem.appendTo(t),t},_fixState:function(){this.options.state=this._opened?this._min?"minimized":this._max?"maximized":"opened":"closed"},_minimize:function(n){return this._doState(n,{action:this._min?"restore":"minimize"},n?"minimize":null,"_onMin",!0)},_maximize:function(n){return this._doState(n,{action:this._max?"restore":"maximize"},n?"maximize":null,"_onMax",!0)},_pin:function(n){return this._doState(n,{action:this.options.pinned?"unpin":"pin"},n?"pin":null,"_onPin")},_close:function(n){return this._opened?this.close(n):this._open(n)},_getTabIndex:function(n){return isNaN(n=parseInt(n.tabIndex,10))||n<1?0:n},_doHeader:function(){var c,o,a,r=4,t=this,e=t._header,i=t.options,y=i.headerText,f=t.css;for(e&&e.remove(),delete t._minHW,e=t._header=l(n("<div />").addClass(f.header).css("display","block").prependTo(t._elem)).dblclick(function(n){var r=i.enableDblclick;r&&(t._min?t._doState(n,{action:"restore"},null,"_onMin",!0):(r===!0||r==="auto"&&i.showMaximizeButton)&&t._doState(n,{action:t._max?"restore":"maximize"},null,"_onMax",!0))}),i.imageClass&&(t._img=n("<span />").addClass(f.headerImage).addClass(i.imageClass).html("&nbsp;").appendTo(e)),t._headerText=n("<span />").addClass(f.headerText).html(y||"&nbsp;").appendTo(e),a={mouseover:function(){n(this).addClass(f.headerButtonHover)},mouseleave:function(){n(this).removeClass(f.headerButtonHover)},mousedown:function(t){this._mdb=n.ig&&n.ig.util&&n.ig.util.evtButton(t)},click:function(i){if(i&&!this._mdb){try{t["_"+n(this).attr("data-id")](i)}catch(r){}u(i)}},touchstart:function(n){this._drag=null;u(n)},touchmove:function(n){this._drag=1;u(n)},touchend:function(){this._drag||n(this).trigger("click")}};r-->=0;)o=r===3&&i.showCloseButton?"close":r===2&&i.showMaximizeButton?"maximize":r===1&&i.showMinimizeButton?"minimize":r===0&&i.showPinButton?"pin":null,o&&(c=n("<a />").addClass(f.headerButton+" "+f[o]).attr("data-id",o).attr("href","#").attr("role","button").bind(a).appendTo(e),n("<span />").addClass(f[o+"Icon"]).appendTo(c),t._loc(c,r===3?w:r===2?h:r===1?s:v));i.showHeader||e.hide()},_doFooter:function(){var t=this,i=t.options,r=i.footerText,u=t.css;t._footer&&(t._footer.remove(),delete t._footer);i.showFooter&&(t._footer=l(n("<div />").addClass(u.footer).css("display","block").html(r||"&nbsp").appendTo(t._elem)))},_onMin:function(n,t,i){var e,h=this.options,f=this._footer,u=this.css,o=this._header,r=n&&n.type?!this._min:!!n;r===this._min&&this._created||(this._min=r,r&&h.pinOnMinimized&&this._onPin(r,!0,!0),e=o.find("."+u.minimize),e.find("*").removeClass(r?u.minimizeIcon:u.restoreIcon).addClass(r?u.restoreIcon:u.minimizeIcon),n&&n.type&&r&&this._max&&this._onMax(!1,!0,!0),this._loc(e,r?y:s),r?(o.addClass(u.headerMinimized),f&&f.hide()):(o.removeClass(u.headerMinimized),f&&f.show()),!t&&this._vis&&this._doSize(),!i&&this._vis&&this._setFocus(),this._save())},_onMax:function(n,t,i){var f,o=this.options,e=this._header,u=this.css,r=n&&n.type?!this._max:!!n;r===this._max&&this._created||(this._max=r,r||this._restoreHtml(),f=e.find("."+u.maximize),f.find("*").removeClass(r?u.maximizeIcon:u.restoreIcon).addClass(r?u.restoreIcon:u.maximizeIcon),this._loc(f,r?y:h),r&&(this._min&&this._onMin(!1,!0,!0),o.pinned&&this._onPin(!1,!0,!0)),r?e.addClass(u.unmovable):e.removeClass(u.unmovable),!t&&this._vis&&this._doSize(),!i&&this._vis&&this._setFocus(),this._save())},_onPin:function(n,t,i){var s,e,y,o,u,h=this._old,c=this._next,f=this.css,l=this._header,a=this.options,r=n&&n.type?!a.pinned:!!n;r===a.pinned&&this._created||(a.pinned=r,s=l.find("."+f.pin),s.find("*").removeClass(r?f.pinIcon:f.unpinIcon).addClass(r?f.unpinIcon:f.pinIcon),this._max&&r&&this._onMax(!1,!1,!0),this._loc(s,r?b:v),r?l.addClass(f.unmovable):l.removeClass(f.unmovable),e=this._elem,r?(u=h.position,this._resize&&(u==="static"||!u)&&(u="relative"),this._pinPos=u={position:u,left:h.left,top:h.top}):u={position:"absolute"},e.css(u),y=e.parent()[0],o=r?this._oldDad:this._dad,o&&o!==y&&(r&&c&&c.parentNode===o?e.insertBefore(c):e.appendTo(o)),!i&&this._vis&&this._setFocus(),!t&&this._vis&&(r?this._doModal():this._doSize(1)),this._save())},_doClose:function(n,u){var s,f=this,e=f._elem,o={action:"close"},h=f.options,l=f._min||u?null:h.closeAnimation;f._opened&&(u||f._fireState(n,!0,o,n?"close":null))&&(f._trackFocus(e,1),f._restoreHtml(),r===f&&(r=null),f._fireFoc(!1),f._hasFocus=!1,delete f._lastZ,f._vis=f._opened=!1,u&&(h.modal=!1),f._doModal(),l?e.hide(l,function(){f._trigger("animationEnded",n,o)}):u||e.hide(),u||(f._fixState(),f._fireState(n,!1,o)),--c<1?c=a=i=0:c===(s=t.length)&&t[s-1]._setFocus(),f._save())},_fireState:function(n,t,i,r){if(t){var u=this.options;i.oldState=u.state;i.oldPinned=u.pinned;i.owner=this;r&&(i.button=r)}return this._created?this._trigger("stateChang"+(t?"ing":"ed"),n,i):!0},_doState:function(n,t,i,r,u){return this._fireState(n,!0,t,i)&&(this[r](n||{type:1}),u&&!this._opened&&this._open(null,!0),this._fixState(),this._created&&this._trigger("stateChanged",n,t)),this},_fireFoc:function(n,t){var i=n?"focus":"blur";i!==this._lastFoc&&(this._trigger(this._lastFoc=i,t,{owner:this}),this.options.enableHeaderFocus&&(i=this.css.headerFocus,n?this._header.addClass(i):this._header.removeClass(i)))},_trackFocus:function(n,t){var i=this,u=i._focusEvt,f=i.options.trackFocus;if(u||f){if(t){i._focBind&&(i._focBind.unbind(u),delete i._focBind);return}u||(u=function(t){var f,e=i._focBind,o=t.type==="focus";!o&&e&&n&&(f=n.find("*").not(e),f.length&&(i._focBind=e.add(f),f.bind(u)));i._hasFocus=o;setTimeout(function(){var n=i.getTopModal(),u=i._elem;u&&n&&!i._hasFocus&&!o&&r===i&&(n=i._max||n===i?i._nextTabElem||u[0]:i._tabTime&&(new Date).getTime()-i._tabTime<200?u[0]:null,n&&i._setFocus(n));i._fireFoc(i._hasFocus,t)},50)},u=i._focusEvt={focus:u,blur:u});f&&n&&(i._focBind=n.find("*").add(n).bind(u))}},_setFocus:function(n){var t=this;setTimeout(function(){try{t._hasFocus||(t.options.trackFocus||(t._hasFocus=!0),n=n||t._elem[0],n.focus())}catch(i){}},100)},_restoreHtml:function(){var n,t=this._oldHtml;t&&(n=t.html,n.style&&(n.style.overflow=t.overflow),n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,delete this._oldHtml)},_touch:function(n,t){var i,f=this,r=function(r,e){var s,h=r.originalEvent,c=h?h.touches:null,o=c&&c.length===1;o&&e&&u(r);o=o&&e==="move";i?(i=o?i:null,s=o?"Drag":"Stop"):o&&(i=!0,n.trigger("mouseover"),s="Start");s&&(h=f._elem.data(t),s="_mouse"+s,h&&h[s]&&(r.pageX=o?c[0].pageX:0,r.pageY=o?c[0].pageY:0,h[s](r)))};n.bind({touchstart:function(n){r(n,"start")},touchmove:function(n){r(n,"move")},touchend:function(n){r(n)}})},_doDraggable:function(){var t=this,i=t.options,r=t._elem;r.draggable&&i.draggable&&(t._touch(t._header,"draggable"),r.draggable({cancel:".ui-igdialog-content, .ui-igdialog-headerbutton",handle:".ui-igdialog-header",containment:"document",start:function(){if(i.pinned||t._max)return!1;n(this).addClass(t.css.dragging)},stop:function(r,u){var f=n(document);i.position=[u.position.left-f.scrollLeft(),u.position.top-f.scrollTop()];n(this).removeClass(t.css.dragging);t._save()}}))},_doResizable:function(){var f,r,e=0,t=this,i=t.options,u=t._elem,o;if(u.resizable&&(t._resize=i.resizable,t._resize))for(u.css("position",u.css("position")).resizable({cancel:"."+t.css.content,containment:"document",alsoResize:t.element.children(".ui-igdialog-content"),maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:t._minWidth(),minHeight:i.minHeight,handles:typeof i.resizable=="string"?i.resizable:"n,e,s,w,se,sw,ne,nw",start:function(r,f){n(this).addClass(t.css.resizing);o=f.originalPosition;i.pinned&&t._pinPos&&u.css(t._pinPos)},resize:function(){t._fixCaption();u.css(o);i.pinned&&t._pinPos&&u.css(t._pinPos)},stop:function(){n(this).removeClass(t.css.resizing);i.height=n(this).height();i.width=n(this).width();t._save()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se"),r=u.data("resizable")||u.data("ui-resizable"),r&&(r._dragFix||(r._dragFix=r._mouseDrag,r._mouseDrag=function(n){var i,u,t=r.parentData;return t&&n&&(i=n.pageX,u=n.pageY,i<=t.left||u<=t.top||i>=t.left+t.width||u>=t.top+t.height)?!1:r._dragFix(n)}),f=r._handles,e=f.length);e-->0;)t._touch(n(f[e]),"resizable")},_toPx:function(t,i){if(typeof t=="number")return t;if(!t)return i?t:0;t=t.toString();var u,r=parseInt(t,10);if(isNaN(r))return 0;if(t.indexOf("m")>0||t.indexOf("e")>0||t.indexOf("i")>0||t.indexOf("t")>0)u=n("<div />").css({visibility:"hidden",width:t}).appendTo(this._dad),r=u.width(),u.remove();else if(t.indexOf("%")>0)return t=this._winRect(1),t=i?t.height:t.width,Math.floor(r*t/100);return r},_doSize:function(t){var r=this,f=r.options,e=r._max,i=e?[0,0]:f.position,s=r._resize?".ui-resizable-handle":null,c=r.element.children(".ui-igdialog-content"),u=r._elem,o,l,a,h,v=!1;if(s&&(r._min||e?n(s,u).hide():n(s,u).show()),r._headerText.css("width",0),r._min?(c.hide(),r._fixCaption(u)):e?(c.show().css({width:"auto",height:"auto"}),u.css({width:100,height:50})):f.width!==null&&(this._doSizePX(c,u,Math.max(r._minWidth(),r._toPx(f.width)),r._toPx(f.height,!0),f.minHeight),s&&u.resizable("option","minHeight",f.minHeight)),f.width===null&&u.show(),!f.pinned&&(t||e||r._oldMax)&&(r._oldMax=e,e&&r._onResize(),u.position))if(i&&(i.left!==undefined&&i.top!==undefined&&(i=[i.left,i.top]),i&&i.length>1&&(typeof i[0]!="number"&&(i[0]=parseInt(i[0])),typeof i[1]!="number"&&(i[1]=parseInt(i[1])),i=isNaN(i[0])||isNaN(i[1])?{}:n.ig.util.jQueryUIMainVersion<=1&&n.ig.util.jQueryUISubVersion<9?{my:"left top",at:"left top",offset:i[0]+" "+i[1]}:{my:"left+"+i[0]+" top+"+i[1],at:"left top"}),i=n.extend({},p,i)),e){for(parents=this.element.parents(),h=0;h<parents.length;h++){if(o=n(parents[h]),l=o.css("position"),o.is("body"))break;if(!o.is("body")&&(l==="absolute"||l==="relative")){a=o.offset();u.css({top:-a.top,left:-a.left});v=!0;break}}v||u.css({top:0,left:0}).position(i||p)}else u.css({top:0,left:0}).position(i||p);r._doModal();r._save()},_doSizePX:function(t,i,r,u,f){t.show().css({width:"auto",height:0,minHeight:0});var e,s=i.css({width:r,height:"auto",display:"block"}).height(),h=t[0].nodeName;this._fixCaption(i);typeof u=="string"&&u.indexOf("px")>0&&(u=parseInt(u,10));typeof u!="number"&&(u=t.css("height","auto").height()+s);h!=="DIV"&&(h==="IFRAME"&&(r-=o(t),e=n.ig.util.isIE7,(!e||isNaN(e)||e>7)&&(u+=5)),t.width(r-o(t,!1,"margin")));u=Math.max(f,u);t.height(Math.max(u-s,0));f=u-i[0].offsetHeight;f>0&&t.height(Math.max(u-s+f,0))},_onResize:function(){var r,t=this,i=t.isTopModal()?t._modalDiv:null;(t._winResize||n(window).bind("resize",t._winResize=function(){setTimeout(function(){t._onResize()},50)}),t._opened&&!t.options.pinned)&&(i&&(i.hide(),t._doIframe(i,1)),t._max&&t._doMaxSize(t._elem),i&&(r=t._winRect(),i.css({width:r.maxWidth-1,height:r.maxHeight-1}).show(),t._doIframe(i)))},_minHeaderWidth:function(){var t,r,i=this._minHW,u=this._header.children().not(this._headerText),f=u.length;if(!i){for(i=3+o(this._header);--f>=0;){r=u[f];try{t=n(r).outerWidth(!0)}catch(e){}i+=1+(t&&t>2&&t<100?t:r.offsetWidth)}this._minHW=i}return i},_minWidth:function(){return this._minW||(this._minW=this._minHeaderWidth()),Math.max(this.options.minWidth,this._minW)},_fixCaption:function(t){var u,f,l,s,c,a=0,r=-1,h=this._header,i=this._headerText,v=this.css.headerTextMinimized;if(this._min){if(i.css("width","").addClass(v),!t)return;for(t.css({height:"auto",width:"auto",display:"inline-block"}),f=o(h)+3,i=h.children(),s=i.length;++r<s;)f+=i[r].offsetWidth+e(n(i[r]),"marginLeft")+e(n(i[r]),"marginRight");while(a++<2){for(t.css("width",f),f+=2,r=s;r-->0;){if(c=i[r].offsetTop,r>0&&r<s-1&&Math.abs(l-c)>4)break;l=c}r<0&&(a=4)}return}i.removeClass(v);try{u=h.innerWidth()-3}catch(y){}(!u||u>1e3)&&(u=h[0].clientWidth-4);u=Math.max(1,u-this._minHeaderWidth());i.css("width","auto");i[0].offsetWidth*1.3>u&&i.css("width",u)},_doMaxSize:function(n){var t,r=this._oldHtml,u=this.element,i=this._winRect(),f=o(n),e=o(n,1);t=i.html;r||(this._oldHtml=r={html:t,scrollLeft:t.scrollLeft,scrollTop:t.scrollTop},t.scrollLeft=t.scrollTop=0,t.style&&(r.overflow=t.style.overflow,t.style.overflow="hidden",(i.maxWidth>i.width||i.maxHeight>i.height)&&(i=this._winRect(1))));this._doSizePX(u,n,i.width-f-1,i.height-e-1,0)},_winRect:function(t){for(var c,v,r,o,s,h,p=this.options.container,u=0,f=0,l=999999,y=window,a=y.document,e=a.body,i=e;i&&i.nodeName!=="HTML";)i=i.parentNode;return(i||(i=e),v=a.documentElement||i,c=a.compatMode!=="CSS1Compat"&&n.ig.util.isIE?e:i,r=c.clientWidth,o=c.clientHeight,t)?{width:r,height:o}:(r&&r>50?(u=r,f=o):r=o=l,s=i.scrollWidth,h=i.scrollHeight,s&&h&&(u=Math.max(u,s),f=Math.max(f,h)),u=Math.max(u,e.scrollWidth),f=Math.max(f,e.scrollHeight),s=e.offsetWidth,h=e.offsetHeight,u=Math.max(u,s),f=Math.max(f,h),{width:r===l?s:r,height:o===l?h:o,maxWidth:u,maxHeight:f,html:i})},_doIframe:function(t,i){f||(f=l(n("<iframe />").attr("frameBorder",0).attr("scrolling","no").attr("src","javascript:''").css({position:"absolute",filter:"alpha(opacity=50)",opacity:0})));f.parent()[0]!==t.parent()[0]&&f.css({width:"1px",height:"1px",marginLeft:t.css("marginLeft"),marginTop:t.css("marginTop"),left:t.css("left"),top:t.css("top"),zIndex:t.attr("zIndex")-1}).insertBefore(t);f.css({width:i?"1px":t.css("width"),height:i?"1px":t.css("height")})},_doModal:function(e){var s,v,h,y,a=t.length,o=this,p=o.options,w=o._elem,c=o._modalDiv;if(h=p.modal&&!p.pinned&&!o._min&&o._opened,s=n.inArray(o,t),o._modal===h){e&&c&&(c.css("zIndex",e-1),o._onResize());!h&&!r&&a>0&&t[a-1].moveToTop();return}s<0&&h&&(a>0&&t[a-1]._modalDiv.hide(),t.push(o));s>=0&&!h&&(s>0&&s+1===a&&(y=t[s-1]),t.splice(s,1));o._modal=h;h?(o._modalDiv=c=l(n("<div />").css({position:"absolute",left:0,top:0,zIndex:i-1}).addClass(o.css.overlay).mousedown(function(n){o._setFocus();u(n)}).insertBefore(w)),v=c.offset(),c.css({marginLeft:-v.left+"px",marginTop:-v.top+"px"}),o._onResize()):(c.remove(),f.remove(),delete o._modalDiv,y&&y.moveToTop())},_loc:function(t,i){i=(i===s?"minimize":i===h?"maximize":i===y?"restore":i===w?"close":i===v?"pin":i===b?"unpin":"open")+"ButtonTitle";var r=this.options[i]||(n.ig&&n.ig.Dialog&&n.ig.Dialog.locale?n.ig.Dialog.locale[i]:null)||"";t.attr("title",r).attr("longdesc",r)},_setOption:function(t,i){var f,e,s,h,r=this._elem,o=this.options,u=t==="container",c;return!r||!t||o[t]===i||t==="mainElement"?this:t==="state"?this.state(i):t==="pinned"?this._pin():(u&&(o.draggable&&r.draggable&&(r.draggable("destroy"),s=!0),o.resizable&&r.resizable&&(r.resizable("destroy"),h=!0)),n.Widget.prototype._setOption.apply(this,arguments),typeof i=="function")?this:(u&&(this._initContainer(i,1),s&&this._doDraggable(),h&&this._doResizable()),t==="draggable"&&(i?this._doDraggable():r.draggable&&r.draggable("destroy")),t==="resizable"&&(i?this._doResizable():this._resize&&(this._resize=i,r.resizable("destroy"))),t==="modal"&&this._doModal(),(t.indexOf("Button")>0||t==="image"||t==="headerText"||t==="showHeader")&&(this._doHeader(),e=!0),t.indexOf("ooter")>0&&(this._doFooter(),e=!0),t==="tabIndex"&&r.attr("tabIndex",i),t==="zIndex"&&(r.css("zIndex",i),this._save()),this._vis&&(f=t==="position",(u||e||f||t.indexOf("idth")>0||t.indexOf("eight")>0)&&this._doSize(f||u)),t.indexOf("Foc")>0&&(this._header.removeClass(this.css.headerFocus),c=this._focBind?!0:!1,t==="trackFocus"&&i!==c&&(this._opened?(this._doClose(),this._open()):(this._open(),this._doClose()))),this)}});n.extend(n.ui.igDialog,{version:"14.1.20141.2031"})}(jQuery),function(n){var t=function(n,t){return n===null||n===undefined||t&&typeof n=="number"&&isNaN(n)},r=function(n,t){return n=parseInt(n,10),isNaN(n)&&(n=t||0),n},o=function(n,t){var i=t?"Left":"Top",u=t?"Right":"Bottom";return r(n.css("padding"+i))+r(n.css("padding"+u))+r(n.css("border"+i+"Width"))+r(n.css("border"+u+"Width"))},f=function(n){return t(n)?"":n.toString()},u=function(){return(new Date).getTime()},e=function(t,i){return n.ig.util?n.ig.util.offset(t,i):i||(t?t.offset():null)},i=function(n){try{n.preventDefault();n.stopPropagation()}catch(t){}};n.ig=n.ig||{};n.widget("ui.igEditor",{options:{value:null,tabIndex:null,nullText:null,button:"none",textAlign:null,listItems:null,theme:null,type:null,locale:null,width:null,height:null,validatorOptions:null,required:!1,display:"inline-block",renderInContainer:!1,selectionOnFocus:-1,readOnly:!1,spinOnReadOnly:!1,focusOnSpin:!1,spinWrapAround:!1,hideEnterKey:!0,dropDownOnReadOnly:!1,dropDownTriggers:"button,ctrl+arrow,alt+arrow",listDropDownAsChild:!1,listWidth:0,listMaxHeight:300,listColumns:1,animationShowDuration:200,animationHideDuration:200,inputName:null},events:{keydown:0,keypress:1,keyup:2,mousedown:3,mouseup:4,mousemove:5,mouseover:6,mouseleave:7,focus:8,blur:9,valueChanging:10,valueChanged:11,textChanged:12,invalidValue:13,spin:14,buttonClick:15,showDropDown:16,hideDropDown:17,listSelecting:18,listSelected:19},css:{editor:"ui-igedit ui-state-default ui-widget ui-corner-all",container:"ui-igedit-container",field:"ui-igedit-field",fieldRtl:"ui-igedit-rtl",textArea:"ui-igedit-textarea",hover:"ui-igedit-hover ui-state-hover",focus:"ui-igedit-focus ui-state-focus",buttonsImageStateOverride:"ui-igedit-buttonsimagestateoverride",disabled:"ui-igedit-disabled ui-state-disabled",negative:"ui-igedit-negative",nullValue:"ui-igedit-nullvalue",button:"ui-igedit-button",buttonRtl:"ui-igedit-button-rtl",buttonFocus:"ui-igedit-buttonfocus",buttonDefault:"ui-igedit-buttondefault ui-state-default",buttonHover:"ui-igedit-buttonhover ui-state-hover",buttonPressed:"ui-igedit-buttonpressed ui-state-highlight",buttonDisabled:"ui-igedit-buttondisabled ui-state-disabled",buttonImage:"ui-igedit-buttonimage ui-icon-triangle-1-s ui-icon",buttonClear:"ui-igedit-buttonclear",buttonClearImage:"ui-igedit-buttonimage ui-icon-circle-close ui-icon",buttonImageHover:"ui-igedit-buttonimagehover",buttonImagePressed:"ui-igedit-buttonimagepressed",buttonImageDisabled:"ui-igedit-buttonimagedisabled",spinButton:"ui-igedit-spinbutton",spinButtonImage:"ui-igedit-buttonimage ui-igedit-spinbuttonimage",spinLowerImage:"ui-igedit-spinlowerimage ui-icon-carat-1-s ui-icon",spinLowerImageHover:"ui-igedit-spinlowerimagehover",spinLowerImagePressed:"ui-igedit-spinlowerimagepressed",spinLowerImageDisabled:"ui-igedit-spinlowerimagedisabled",spinUpperImage:"ui-igedit-spinupperimage ui-icon-carat-1-n ui-icon",spinUpperImageHover:"ui-igedit-spinupperimagehover",spinUpperImagePressed:"ui-igedit-spinupperimagepressed",spinUpperImageDisabled:"ui-igedit-spinupperimagedisabled",dropDown:"ui-igedit-dropdown",list:"ui-igedit-list ui-widget ui-widget-content ui-corner-all",listItem:"ui-igedit-listitem ui-state-default",listItemHover:"ui-igedit-listitemhover ui-state-hover",listItemSelected:"ui-igedit-listitemselected ui-state-highlight",listItemColumnBorder:"ui-igedit-listitemcolumnborder",noTopCorners:"ui-igedit-no-top-corners",noBottomCorners:"ui-igedit-no-bottom-corners"},regional:n.ig._regional||{},_create:function(i){var o,a=this.css,l,s,h,c,f=this.options,e=this,u=f.value;if(i=this._doType(t(i)?f.type:i,u),typeof f.maxLength!="number"&&(f.maxLength=0),typeof f.spinDelta!="number"&&(f.spinDelta=1),f.nullable=f.nullable!==!1,this._listID=-1,this._css=a.field,l=this._element=this._render(this.element,f,a),f.display&&l.css("display",f.display),i===3&&(!n.datepicker||this._ta))throw new Error("The ui.igDatePicker depends on jquery.ui.datepicker and TEXTAREA/multiline is not supported");this._ta&&(this._css+=" "+a.textArea);s=this._field;this._box=s[0].type==="checkbox";this._1e=s===l;f.readOnly&&(s[0].readOnly="readonly");h=f.textAlign;!h&&i>3&&(h="right");h&&s.css("textAlign",h);s[0]._id=-1;s[0].disabled=f.disabled;this._hover=this._mouseDown=0;this._fix=1;this._fcs=-1;this._bad=0;this._k0=this._sel0=0;this._noPaste=0;this._fixMode(1);this._clearHide=!1;e._evts=o={keydown:function(n){e._onEvt(n,0)},keypress:function(n){e._onEvt(n,1)},keyup:function(n){e._onEvt(n,2)},paste:function(n){e._onEvt(n,11)},beforecut:function(n){e._onEvt(n,11)},cut:function(n){e._onEvt(n,11)},drop:function(n){e._onEvt(n,11)},focus:function(n){e._onEvt(n,8)},blur:function(n){e._onEvt(n,9)}};s.bind(o);e._mEvts=o={mousedown:function(n){e._onEvt(n,3)},mouseup:function(n){e._onEvt(n,4)},mousemove:function(n){e._onEvt(n,5)},MSPointerOver:function(n){e._onEvt(n,26)},pointerover:function(n){e._onEvt(n,26)},mouseover:function(n){e._onEvt(n,6)},mouseleave:function(n){e._onEvt(n,7)}};this._buttons&&this._buttons[1]&&(o.DOMMouseScroll=function(n){e._onEvt(n,10)},o.mousewheel=function(n){e._onEvt(n,10)});l.bind(o);this._fcs=0;o=f.maxLength;o&&o>0&&(s[0].maxLength=o);o=f.tabIndex;t(o)||(s[0].tabIndex=o);o=f._vsFormat;o&&u&&i>3&&typeof u!="number"&&(u=parseFloat(this._txtAsNum(u.toString(),o,"-")));this._setVal(t(u)?this._value:u);this._val()===""&&(this._text=this._field[0].value=this._focTxt("",!1,""));this._fixCss();c=this._oldCss;u=f.height;u||this._1e||(u=c.height,u&&(u=u.indexOf("px")>0?r(u):this.element.height()));this._height(u);this._box&&this._fixBC(s,s);u=f.width;u||this._1e||(u=c.width,u&&(u=u.indexOf("px")>0?r(u):this.element.width()));this._selElem&&(delete c.width,delete c.height);this._width(u);this._lastText=this._val();this._initValidator();this._doClear(f.value)},_doType:function(n,t){return n==="text"&&(n=0),n==="mask"&&(n=1),n==="date"&&(n=2),n==="datepicker"&&(n=3),n==="numeric"&&(n=4),n==="currency"&&(n=5),n==="percent"&&(n=6),(typeof n!="number"||n<0||n>6)&&(n=typeof t=="number"?4:t&&t.getMonth?2:0),this._type=n,n},_render:function(r,u,f){var k,a,g,y,h,tt,v,s,e,c,b,nt,d,w,it=r.css("direction")==="rtl",l=u.button,p=r,o=null;if(a=r[0].nodeName,g=r[0].parentNode,a&&(a=a.toUpperCase()),this._ta=a==="TEXTAREA",this._td=a==="TD",this._left=it,h=a==="INPUT",o=this._selElem=a==="SELECT",k=l&&l.indexOf("spin")>=0,nt=l&&l.indexOf("clear")>=0,l=l&&l.indexOf("dropdown")>=0||o&&!k,(nt||l||k)&&(d=this._buttons=[]),tt=d||u.renderInContainer||u.theme,v=this._oldCss={display:0},s=this._oldAttr={className:0,title:0},h)s.value=0,h=r[0].type||"text",(h==="date"||h==="number")&&(r[0].type="text",s.type=h);else if(o){if(o=u.listItems,!o){if(u.listItems=[],o=r[0].options,e=o?o.length:0,e>0){while(e-->0)c=o[e].value,b=o[e].text,u.listItems[e]={value:c,text:t(b)?c:b};this._listID=r[0].selectedIndex}o=1}}else s.innerHTML=0;(h||this._ta)&&(s.disabled=s.readOnly=s.alt=v.textAlign=0);for(e in v)v.hasOwnProperty(e)&&(v[e]=r.css(e));for(e in s)s.hasOwnProperty(e)&&(s[e]=r[0][e]);if(v.width=r[0].style.width,v.height=r[0].style.height,e=h?s.value:o?r.val():s.innerHTML,e===u.nullText&&(e=""),!this._ta&&e&&(e=e.replace(/[\x09\x0a]/g,"")),this._value=e,h||this._ta||o)if(s.className&&(this._css+=" "+s.className),tt)this._swap=!0,r.css("display",o?"none":""),r=n("<span />"),g.insertBefore(r[0],p[0]),o?p=n("<input />"):g.removeChild(p[0]),r.css("display",v.display);else return this._css+=" "+f.editor,this._field=r,this._field;else u.textMode==="textarea"||u.textMode==="multiline"?(p=n("<textarea />"),this._ta=1):p=n(u.textMode?'<input type="'+u.textMode+'"/>':"<input />"),r[0].innerHTML="";for(r.addClass(f.editor+" "+f.container),u.theme&&r.addClass(u.theme),this._field=p,w=f.button+" "+f.buttonDefault,it&&(w+=" "+f.buttonRtl,this._css+=" "+f.fieldRtl),e=d?-1:6,h=this,this._touchEvts={touchstart:function(n){h.__touch=1;this._drag=null;i(n)},touchmove:function(n){this._drag=1;i(n)},touchend:function(){this._drag||n(this).trigger("mousedown").trigger("mouseup")}};e++<4;)(l&&e===0||nt&&e===3||k&&(e===1||e===2))&&(e===0?(y=[w,f.buttonHover,f.buttonPressed,f.buttonDisabled,f.buttonImage,f.buttonImageHover,f.buttonImagePressed,f.buttonImageDisabled],o="button"):e===1?(y=[w+" "+f.spinButton,f.buttonHover,f.buttonPressed,f.buttonDisabled,f.spinButtonImage+" "+f.spinUpperImage,f.spinUpperImageHover,f.spinUpperImagePressed,f.spinUpperImageDisabled],o="spinUpper"):e===2?(y=[w+" "+f.spinButton,f.buttonHover,f.buttonPressed,f.buttonDisabled,f.spinButtonImage+" "+f.spinLowerImage,f.spinLowerImageHover,f.spinLowerImagePressed,f.spinLowerImageDisabled],o="spinLower"):(y=[w+" "+this.css.buttonClear,f.buttonHover,f.buttonPressed,f.buttonDisabled,f.buttonClearImage,f.buttonImageHover,f.buttonImagePressed,f.buttonImageDisabled],o="clear"),c=d[e]=n("<span />").addClass(y[0]).appendTo(r).bind(this._touchEvts),c[0]._css=y,c[0].longdesc=c[0].title=this._optVal(o+"Title",1),b=n("<span />").addClass(y[4]).appendTo(c),b[0]._id=e+5,c[0]._id=e+1);return p.appendTo(r),r},_leftShift:function(){for(var i=0,n=this._buttons,t=this._left&&n?4:0;t-->0;)n[t]&&(i+=n[t][0].offsetWidth);return i},_val:function(){var n=this._field;return n?this._box?n[0].checked:this._nullT?"":n[0].value:""},_fixNull:function(){var t,n=this.options.nullText;this._field&&(n||this._nullT)&&(t=this._val(),this._nullT=null,t===""&&typeof n=="string"&&this._fcs<2&&(this._nullT=!0,this._field[0].value=n),this._fixCss())},_focTxt:function(n,i,r){var u=this.options.nullText;return this._nullT=null,!i&&n===""&&u&&(!t(r)||this.options.readOnly)&&(n=u,this._nullT=!0),n},validate:function(n){return!this.options.validatorOptions||!this._doInvalid(null,n?2:1)},isValid:function(){return!this._doInvalid(null,9)},_doInvalid:function(n,i){if(this._field){var h,o,c,e,r=this._val(),a=!1,s=1,u=this._invPlus,l=this.options,f=this._type;if(this._inv=null,u)o=0,e=f;else if(!l.required||r&&(f!==1||this.getValueByMode(0,"",1)))if(f===0)l.nullable||r||(u=1);else if(f===1)for(r=this._txt,o=r.length;o-->0&&!u;)h=r.charCodeAt(o),h<21&&h%2==1&&(r=this._getVal(),u={value:r,message:this._optVal("mask",2)});else f<4?(r=this._toDate(r,n==="",!0,!0),u=this._inv):(r=this._toNum(r,!0,!0),u=this._inv,s=this._prop(7),u&&r&&s>1&&(c=r,r/=s,u.value=r));else u=1,e=f;if(e===1?r=this._txt:e&&(r=e<4?this._toDate(r,n==="",!0,!0):this._toNum(r,!0,!0)),u===1&&(r=null,u={value:r,message:this._optVal("required",2)}),typeof u=="string"&&(u={value:r,message:u}),i===9)return u;if(u&&(a=this._fire(13,null,u),r!==u.value&&(r=u.value,u=null),c&&(u?r=c:t(r,1)?r=null:r&&(r*=s)),f<=1&&!u)){this._setVal(r);return}return f>1&&f<4&&(this._isNull=t(r),this._isNull||(this._date=r),r&&l.useLastGoodDate&&(this._goodD=r)),this._value=r,i&&!a&&!this._setOpt?this._doError(i,null,u?u.message:null):void 0}},_focusTxt:function(n,i,r){var h=i,u="",o=this.options,f=this._type,e=null,s="";if(f===1)r=null,t(i)||n||(i=i!=="",i&&this._bad!==0&&(this._txt=this._setTxt(this._val(),5,!0)),r=this._txt,i||this._doInvalid(h)),u=this._getTxt(n?5:4,n?o.promptChar:o.padChar,r);else if(f===2||f===3){if(t(r)){if(s=o.promptChar,t(i)&&n)return this._getTxt(5,s);t(i)||n?this._isNull||(e=this._date):(this._doInvalid(i),e=this._value)}else e=this._toDate(r,n,!0);u=this._toTxt(e,n,s,!t(i))}else f>3?(t(i)||n||this._doInvalid(),u=this._toTxtNum(this._value,n)):(u=this._val(),t(i)||n||this._doInvalid(i));return this._focTxt(u,n,i)},_repaint:function(){this._field&&this._val()!==this._text&&(this._field[0].value=this._text)},_instant:function(n,t,i){var r,f=this._type,u=this._dataMode;return this._box?this._val():f===1?this.getValueByMode(u,n,t):f===2||f===3?this.getValueByMode(n?0:u,t):f>3?(r=this._toNum(this._val(),t),r&&(t||i)&&!isNaN(r)&&u>0&&(r/=this._prop(7)),n||u>0?r:this._toTxtNum(r,u===0)):this._val()},_optVal:function(i,r){var u=this._validator,f=this.options;return r===2?u?u._loc(i):"":(u=f[i],!t(u))?u:r===3||r===1?(r===1&&this._type===3&&(i="datePickerButtonTitle"),u=f.locale?f.locale[i]:null,u||(n.ig&&n.ig.Editor&&n.ig.Editor.locale?n.ig.Editor.locale[i]:null)||""):(f=f.regional,typeof f=="string"&&(f=n.ig.regional[f]),f&&(u=f[i]),(!f||t(u))&&(u=n.ig.regional.defaults[i]),t(u)?this.regional[i]:u)},_setOption:function(i,r){var u,l=r,o=null,e=this.options,h=i==="locale",c=i==="regional",f=this._buttons,s=this._field;if(e[i]===r||i==="textMode"||!s)return this;if(i==="buttonHidden")return this._butVis(null,r),this;if(i==="theme"){if(this._1e)return this;for(u=0;u<3;u++)f&&f[u]&&f[u].css("height","");e.theme&&this._element.removeClass(e.theme);r&&this._element.addClass(r);this._listRemove();this._height(e.height);this._width(e.width)}return(i==="inputMask"&&this._type===1&&(l=this.getValueByMode(0," ",1),this._setMask(r),this._setTxt(l,0)),e[i]=r,typeof r=="function")?this:(c&&this._dp&&(o=this._dpRegion(),o&&(u=e.datepickerOptions=n.extend(e.datepickerOptions,o),this._dpOption(u))),u="buttonTitle",(h||i===u)&&f&&f[0]&&(f[0][0].title=this._optVal(u,1)),u="spinUpperTitle",(h||i===u)&&f&&f[1]&&(f[1][0].title=this._optVal(u,3)),u="spinLowerTitle",(h||i===u)&&f&&f[2]&&(f[2][0].title=this._optVal(u,3)),u="clearTitle",(h||i===u)&&f&&f[3]&&(f[3][0].title=this._optVal(u,3)),i==="disabled"&&(s[0].disabled=r,this._fixCss()),i==="display"&&this._element.css(i,r),i==="textAlign"&&s.css(i,r),i==="readOnly"&&(s[0].readOnly=r?"readonly":""),(i==="maxLength"||i==="tabIndex")&&(s[0][i]=r),i==="value"&&this.value(r),i==="width"&&this._width(r),i==="height"&&this._height(r),u=i==="required",(i==="validatorOptions"||u)&&this._initValidator(!1,u),i==="nullText"&&this._fixNull(),i==="type"&&(this._doType(r),c=3),i=i.toLowerCase(),u=i.indexOf("minv")===0?1:i.indexOf("maxv")===0?2:i.indexOf("maxd")>=0||i.indexOf("mind")>=0?-1:0,i.indexOf("list")===0?this._listRemove():i.indexOf("an")===0?this._dp&&i.indexOf("show")>7&&this._dpOption(i.indexOf("eff")>7?"showAnim":"duration",r):i.indexOf("kero")>0?this._dp&&this._dpOption(r):(i.indexOf("data")>=0||u||c||!t(this.regional[i])||i.indexOf("date")===0||i.indexOf("pat")>=0||i.indexOf("roup")>0||i.indexOf("sep")>=0||i.indexOf("ymb")>0)&&(u>0&&this._dp&&(o=n.data(s[0],"datepicker"),o&&(o.settings[u===1?"minDate":"maxDate"]=null)),this._setOpt=!0,this._listRemove(),this._fixMode(c===3?3:0),this._repaint(),this._lastText=this._val(),this._setOpt=null),this)},_dpRegion:function(){var t=this.options.regional;return n.datepicker&&typeof t=="string"?n.datepicker.regional[t==="defaults"||t==="en-US"?"":t]:null},_dpOption:function(t,i){var r=this._getVal(1);t&&t.changeYear&&n.ig.util.isOpera&&(t.changeYear=!1);this._field.datepicker("option",t,i);this._setVal(r)},getRegionalOption:function(n){return this._optVal(n)},field:function(){return this._field},mainElement:function(){return this._element},dropDownElement:function(){var t=this._ddList;return this._type===3&&(t=n.datepicker,t&&(t=t._ig_dp===this?t.dpDiv:null)),t||null},show:function(){return this._vis(!0)},hide:function(){return this._vis()},remove:function(){var n,t=this._element;return n=t&&t[0]?t[0].parentNode:null,n&&n.tagName&&(this._doError(),this._doDrop(),this._stopTimer(),this._hadFocus=null,this._vAct(),this._noPaste=this._fcs=this._k0=this._hover=this._mouseDown=0,this._fixCss(),n.removeChild(t[0])),this},dropDownVisible:function(n){return arguments.length?(n?this._ddOn||this._doDrop(1):this._doDrop(),this):!!this._ddOn},findListItemIndex:function(n,t,i,r){var u=this._find(f(n),0,1,t,i,r);return u?u.id:-1},addListItems:function(n,t){return this._listChange(n,t,2)},addListItem:function(n,t){return this._listChange([n],t,2)},removeListItem:function(n){return this._listChange(n,-1,1)},removeListItemAt:function(n){return this._listChange(null,n,1)},clearListItems:function(){return this._listChange(null,-1,0)},selectedListIndex:function(n){if(!arguments.length)return this._listID;this._listSelect(n)},getSelectedListItem:function(){var n=this.options.listItems,t=this._listID;return n&&t>=0?n[t]:null},hasInvalidMessage:function(){return this._validator?this._validator.isMessageDisplayed():!1},validator:function(){return this._validator||null},text:function(n,i){return n===undefined?this._val():(this._type>0?(this._sTxt=1,this._type===1?this._setTxt(n,t(i)?5:1e3+i):this._setVal(n,!0),this._sTxt=0):(n&&(this._nullT=null),this._text=n,this._repaint()),this._fix===1&&(this._old=this._instant(1,null,1)),this)},_df:function(n,i,r,u,f,e,o){var s=this.options.enableUTCDates;if(i===-1)return n&&s?new Date(n.getTime()+n.getTimezoneOffset()*6e4):n;if(!n)return n=new Date,s&&n.setUTCMinutes(n.getUTCMinutes()-n.getTimezoneOffset()),n;if(!t(u))return s?new Date(Date.UTC(n,i,r,u,f,e,o)):new Date(n,i,r,u,f,e,o);if(t(r))return i===0?s?n.getUTCFullYear():n.getFullYear():i===1?s?n.getUTCMonth():n.getMonth():i===2?s?n.getUTCDate():n.getDate():i===3?s?n.getUTCHours():n.getHours():i===4?s?n.getUTCMinutes():n.getMinutes():i===5?s?n.getUTCSeconds():n.getSeconds():s?n.getUTCMilliseconds():n.getMilliseconds();i===0&&(s?n.setUTCFullYear(r):n.setFullYear(r));i===1&&(s?n.setUTCMonth(r):n.setMonth(r));i===2&&(s?n.setUTCDate(r):n.setDate(r));i===3&&(s?n.setUTCHours(r):n.setHours(r));i===4&&(s?n.setUTCMinutes(r):n.setMinutes(r));i===5&&(s?n.setUTCSeconds(r):n.setSeconds(r));i===6&&(s?n.setUTCMilliseconds(r):n.setMilliseconds(r))},value:function(n){return n===undefined?(n=this._getVal(),n===undefined?null:n):(this._setVal(n,!0),this._lastText=this._val(),this)},_getVal:function(n){var r=this.options,i=this._instant(n,1);return this._type>3&&t(i)?(i=r.nullValue,this._dataMode<=0)?f(i):r.nullable||!t(i)?i:NaN:i},_set_val:function(n,t){this._fix=0;this._setVal(n,t);this._fix=1},_setVal:function(n,i){var r,e,u=this._type;if(this._field){if(this._box)n!==!0&&(n=n==="true"),this._field[0].checked=n;else if(u===1)this._setTxt(f(n),this._dataMode);else if(u===2||u===3)t(n)||n.getTime||(n=n.toString(),n=i=this._toDate(n,this._dataMode<2)||this._toDate(n,!0)),i=n,n=this._limits(n),t(n)&&(n=i),this._txt=this._mask,this._isNull=t(n),this._isNull?n=this._df():this._toTxt(n,!0,"",!0),this._date=n,this.options.useLastGoodDate&&(this._goodD=n),this._text=this._focusTxt(this._fcs>1),this._repaint();else if(u>3){if(t(n,1)&&(n=null),n&&typeof n=="number"&&this._fix!==0&&(n*=this._prop(7)),n=this._toNum(n,!0),r=this._toTxtNum(n,this._fcs===2),e=this._prop(12),i===2&&e>0&&r.length>e)return;this._focTxt(r);this._text=r;this._value=n;this._repaint();this._fixCss()}else this.text(f(n));this._fix===1&&u>0&&(this._old=this._instant(1,null,1));r=this.options.value=this._getVal();this._doClear(r);this._fixNull();this._dtt();this._fixList(r)}},_fixList:function(n){var r=-1,i=this.options.listItems,u=i?i.length:0;if(!(u<1)&&this._fix&&!t(this._lastText)){if(!t(n)){while(++r<u)if(i[r]===n)break;r>=u&&(i=this._findItem(this._val(),-1),r=i?i.id:-1)}this._listSelect(r)}},_doClear:function(n){this._buttons&&this._buttons[3]&&this._butVis(!n||this._type<4&&!this.getValueByMode(0,n))},_vis:function(n){var t=this._element;return t.css("display",n?this.options.display:"none"),this._fixHeight(),this._doError(),this},_elemWidth:function(n,t){if(n&&t>1&&n[0]._wd!==t)return n[0]._wd=t,t=Math.max(1,t-o(n,1)),n.css("width",t),!0},_elemHeight:function(n,t,i){n&&t>1&&n[0]._ht!==t&&(n[0]._ht=t,t=Math.max(1,t-o(n)),n.css("height",t),i&&n.find("SPAN").css("marginTop",Math.floor((t-16)/2)))},_fixSize:function(){var r=this.options,n=this._element,t=n?n[0].offsetWidth:0,i=n?n[0].offsetHeight:0;(t||i)&&(this._oWidth!==t&&this._fixWidth(!this._oWidth&&!r.width),this._oHeight!==i&&this._fixHeight(!this._oHeight&&!r.height),this._oWidth=t,this._oHeight=i);this._doTimer()},_doTimer:function(){var n=this,t=n._timer1,i=n._heightOk&&!n._heightPerc&&n._widthOk&&!n._widthPerc;i&&t?(clearInterval(t),delete n._timer1):t||(n._timer1=setInterval(function(){n._fixSize()},200))},_fixHeight:function(n){if(!this._field||this._1e||this._heightOk&&!this._heightPerc)return 1;var i=this._field,r=this._element,u=4,t=this._td||n?0:Math.max(r[0].offsetHeight-o(r),0),f=this._buttons;if(t=t||i[0].offsetHeight,t>1){if(this._heightPerc&&t++,this._elemHeight(i,t),f)while(u-->0)this._elemHeight(f[u],t,1);this._heightOk=1}this._doTimer()},_fixWidth:function(t){if(!this._field||this._1e||this._widthOk&&!this._widthPerc)return 1;var u,f,e,h=this._field,a=this._clearHide,v=this.options.buttonHidden,c=this._element,r=4,i=this._td||t?0:Math.max(c[0].offsetWidth-o(c,1),0),y=i,l=3,s=this._buttons;if(i=i||h[0].offsetWidth,i>0){if(s){for(t=this._td||t?Math.max(i,100):0,i=t||i,(this._widthPerc||this._td)&&i--;r-->0;)e=s[r],e&&((r===0&&v||r===3&&a)&&e.show(),e[0]._w=u=e[0].offsetWidth,t&&!f&&(i-=u,f=t=t-u),i-=u,i<l&&!t&&(y+=l-i,f=i=l),(r===0&&v||r===3&&a)&&e.hide());(t||f)&&c.css("width",t||y+l)}else t&&c[0].offsetWidth>i+4&&c.css("width",i);for(this._wF=i,this._elemWidth(h,i)&&this._listRemove(),r=u=s?Math.min(i,9):0;u-->1&&r>3;)for(f=h[0].offsetTop,r=0;r<4;r++)if(s[r]&&Math.abs(s[r][0].offsetTop-f)>10){this._elemWidth(h,--this._wF);break}s&&(u=n.ig.util.isFF||n.ig.util.isIE&&(n.ig.util.browserVersion!==9||parseFloat(document.documentMode)<9)?3:1,this._wF-=u,this._elemWidth(h,this._wF));this._widthOk=1;this._butVis(a,v)}this._doTimer()},_butVis:function(n,i){var r,u=-1,f=this.options,e=this._wF,o=this._buttons,s=this._field;if(t(n)&&(r=1,n=this._clearHide),t(i)&&(r=1,i=f.buttonHidden),o&&(!r||n!==this._clearHide||i!==f.buttonHidden)){for(f.buttonHidden=i,this._clearHide=n;++u<2;)r=o[u*3],r&&(!u&&i||u&&n?(r.hide(),e+=r[0]._w):(r.show(),e-=r[0]._w));this._elemWidth(s,e)}},_width:function(n){var t=this._field,i=this._1e||this._td?t:this._element,u=this._buttons,f=u?4:0,e=r(n);if(t){if(this._widthOk)for(delete this._widthOk,delete this._widthPerc,i[0]._wd=null,t[0]._wd=null,i.css("width",""),t.css("width","");f-->0;)u[f]&&(u[f][0]._wd=null,u[f].css("width",""));n&&(n.indexOf&&n.indexOf("px")<0&&n!==e.toString()?(i.css("width",n),this._widthPerc=!this._td&&n.indexOf("%")>0):this._elemWidth(i,e));this._fixWidth(!n)}},_height:function(n){var t=this._field,i=this._1e||this._td?t:this._element,u=this._buttons,f=u?4:0,e=r(n);if(t){if(this._heightOk)for(delete this._heightOk,delete this._heightPerc,i[0]._ht=null,t[0]._ht=null,i.css("height",""),t.css("height","");f-->0;)u[f]&&(u[f][0]._ht=null,u[f].css("height",""));n&&(n.indexOf&&n.indexOf("px")<0&&n!==e.toString()?(i.css("height",n),this._heightPerc=!this._td&&n.indexOf("%")>0):this._elemHeight(i,e));this._fixHeight(!n)}},_spin:function(n){var f,i,r,u=this._nullT,e=this.options;if(!this._box&&this._field){if(this._fcs<1&&e.focusOnSpin&&(this.setFocus(),this._fcs<1)){this._focSpin=n;return}if(!this._fire(14,null,n)){if(u&&(this._nullT=null,this._fixCss()),r=this._val(),this.spin(n),this._val()===r){if(u){this._nullT=u;this._fixCss();return}this._type>3&&e.spinWrapAround&&!t(this._prop(10))&&!t(this._prop(11))&&(f=this._sel0,i=this._prop(7),i||(i=1),n=this._limits(this._getVal(!0)*i,!0),this._setVal(n/i,this._fcs),this.select(f))}this._val()!==r&&this._fire(12)}}},_item:function(n){return n&&!t(n.text)&&(n=n.text),typeof n=="function"&&(n=n()),t(n)?"":n},_spinList:function(n){var f,t,r,i,u,e=this.options;if(u=e.listItems,i=u?u.length:0,i<1)return 1;if(n=n<0?1:-1,t=this._listID+n,r=e.spinWrapAround,t>=i){if(!r)return;t=0}if(t<0){if(!r)return;t=i-1}if(f=this._instant(1,null,1),f===this._item(u[t])){if(t+=n,t<0){if(!r)return;t=i-1}if(t>=i){if(!r)return;t=0}}f=this._item(u[t]);this._listSelect(t)||(delete this._lastY,this._set_val(f))},_doKey:function(n,r,u,f,e,o,s,h){var v,l,w,a,b,g,k,y,c,p,d=this._prop(12),nt=this._type;if(nt>0&&nt<4){if(c=this._mask,f=c?c.length:0,(f<1||n<7||n>8&&n<32)&&(n=0),s){n!==0&&(c.indexOf(r)>0||this._optVal("am").indexOf(r)>=0||this._optVal("pm").indexOf(r)>=0||n>=48&&n<=57)||i(h);return}if(n===0)return;if(u=this._txt,e!==o){while(--o>=e)u=u.substring(0,o)+c.charAt(o)+u.substring(o+1);o++}else if(n===7){while(o<f&&c.charCodeAt(o)>=22)o++;if(o>=f)return;u=u.substring(0,o)+c.charAt(o)+u.substring(o+1);o++}else if(n===8){while(o>0&&c.charCodeAt(o-1)>=22)o--;if(o--<1)return;u=u.substring(0,o)+c.charAt(o)+u.substring(o+1)}if(n>8&&o<f){if(o>=f)return;if(e=this._maskKey(n,r,u,f,o,c),e>=0)u=this._txt,o=e;else{if(e===-1)return;while(c.charCodeAt(o)>=22)if(++o>=f)return;if(r=this._maskFilter(c.charCodeAt(o),r,0),t(r))return;u=u.substring(0,o)+r+u.substring(o+1);o++}}this._txt=u;this._selKey=o;u=this._focusTxt(!0);this.select(this._selKey,0,u);this._selKey=99999;this._listSelect(-1);return}if(nt>3){if(k=this._prop(4),y=this._isMinus(n),w=n>=48&&n<=57,y&&e===0&&(g=this._prop(10),!t(g)&&g>=0))return i(h);if(s){n<9||y||w||n===k.charCodeAt(0)||i(h);return}if(e!==o)u=u.substring(0,e)+u.substring(o),o=e,f=u.length;else if(n===7){if(o++>=f||f<1)return}else if(n===8&&e--<1)return;if(n<9||d===0||d>f){if(b=n===k.charCodeAt(0),l=u.indexOf(k),v=this._prop(8),a=w||e===0&&y||b&&v>0,p=this._ePow(),c=p?u.indexOf(p):-1,p&&e>0&&((n===69||n===101)&&c<0&&(a=r=p),b&&c>=0&&c<e&&(a=!1)),c<0&&w&&l>=0&&e>l&&l+v<f&&(e===f?a=!1:u=u.substring(0,--f)),e>0&&y&&u.charAt(e-1).toUpperCase()==="E"&&u.substring(e-1).indexOf("-")<0&&(a=!0),f>0&&e===0&&this._isMinus(u.charCodeAt(0))&&(a=!1),n>8&&!a)return;if(b){if(l>=0){if(l===e||l===e-1)return;f--;l<e&&(e=--o);u=u.substring(0,l)+u.substring(l+1)}c<0&&e+v<f&&(f=e+v,u=u.substring(0,f))}n>8&&o>=f?u+=r:u=u.substring(0,e)+r+u.substring(o)}else n=0;this.select(n>10?o+1:e,0,u);this._listSelect(-1);return}if(e!==o)u=u.substring(0,e)+u.substring(o),o=e,f=u.length;else if(n===7){if(o++>=f||f===0)return;this._ta&&u.charCodeAt(o-1)===13&&u.charCodeAt(o)===10&&o++}else if(n===8){if(e--<1)return;this._ta&&u.charCodeAt(e)===10&&u.charCodeAt(e-1)===13&&e--}n<9||d===0||d>f?n>8&&o>=f?u+=r:u=u.substring(0,e)+r+u.substring(o):n=0;this._matchList(u,n,n>10?o+1:e)},_matchList:function(n,t,i){var r;return!this._field||this._type>0||t<0&&!this.options.listAutoComplete?n:(r=this._findItem(n,t,i),!r)?null:(this._listSelect(r.id),n=r.text,t>=0?this.select(r.sel,0,n):this._field[0].value=n,n)},_findItem:function(n,t,i){var r=this.options;return this._find(n,t,r.listMatchOnly,r.listMatchIgnoreCase,!0,r.listMatchContains,i)},_find:function(n,i,r,u,f,e,o){var c,b,s,a=null,v=-1,k=0,l=0,d=-1,w=n,y=n.length,p=this.options.listItems,h=i>=0&&r;if(y>0&&p&&(h||i<0)){for(s=h=-1,b=u,b&&(w=w.toUpperCase());++v<p.length;)if(c=this._item(p[v]),!t(c))if(c=c.toString(),b&&(c=c.toUpperCase()),l=c.indexOf(w),l===0){if(c===w){h=v;break}k++;s<0&&(s=v)}else l>0&&e&&(a||(a={i:v,shift:l}),k++);if(l=0,s<0&&a&&(s=a.i,l=a.shift),h<0){if(!f)return null;if(i<0)h=s;else if(s<0)return i>10&&y===o?null:this._find(n.substring(0,--y),i,r,u,e,o);i>10&&k===1?h=s:i>=0&&(n=this._item(p[s]).toString().substring(0,y+l))}h>=0&&(n=this._item(p[h]).toString(),h===s&&(o=n.length));d=h>=0?h:s}return{text:n,id:d,sel:(t(o,1)?y:o)+l}},_undo:function(n){var t,i=this._old;if(n){if(!this._canRedo)return;i=this._redo;this._canRedo=!1}else{if(t=this._instant(1,null,1),t===i)return;this._canRedo=!0;this._redo=t}this._set_val(i);this._text=this._focusTxt(!1);this._doError(1,this._evt)},_doKey0:function(r,u){var a,h,y,c,l,s=this._validator,p=this,v=this._text,o=this._val(),f=this._key,e=this.options;if((!e.excelNavigationMode||u===1||f!==38&&f!==40)&&this._field){if(!r){v!==o&&this.paste(o);return}if((u!==1||f!==192||!r.altKey||r.ctrlKey)&&(u===1&&this._bad&&this._k0===229&&(this.getSelectedText(),this._bad=0),this._type>0&&n.ig.util.isOpera&&f>41&&f<48&&(u===0?this._noKey=f:this._noKey===f&&i(r)),u!==1?this._noPaste=2-u:this._noPaste!==2&&(this._noPaste=1),f===9&&(this._k0=u===2?0:9,u===0&&s&&s._lbl&&s._onTab(r)),f!==0&&(f!==114||u===1)&&f!==9)){if(this._bad>2&&(u===0&&(this._bad=2),u===2&&(this._bad-=3)),u===0&&f===229&&(v!==o?this._bad=2:this._bad+=3),f===13&&this._k0===229&&this._type===1&&(this._txt=this._setTxt(this._val(),5,!0)),u===0&&r.ctrlKey&&!r.altKey&&(f===90||f===89)){this._undo(f===89);return}if(this._bad!==2&&(u!==1||!r.ctrlKey)){if(u===0&&!r.ctrlKey&&!r.altKey&&!r.shiftKey&&this._listKey(r,f))return this._kBad=f,i(r);if(!this._box){if(u===1&&f===this._kBad)return i(r);if(this._kBad=null,u===0&&(r.ctrlKey&&(f===86||f===88)||r.shiftKey&&f===45)&&setTimeout(function(){p._doKey0()},1),u!==1&&(r.ctrlKey||r.altKey||f===17)){r.altKey?this._k0=-1:v!==o&&(f===86||f===17&&u===2)?(this.paste(o),this._noPaste=1):f===17&&this.getSelectedText();return}if(u===0&&(this._k0=f),u===2&&(this._k0>0&&(this._k0=0),this._spinField=-1),y=o.length,s=this._bad!==0,f<=46)switch(f){case 8:case 46:this._k0===f&&u===1&&(u=2);u===0&&(u=1,f===46&&(f=7));break;case 27:i(r);u===0?(this._undo(),this._escFix||(this._escTxt=this._field[0].value)):(this._escFix&&this._escTxt!==o&&!t(this._escTxt)&&(this._field[0].value=this._escTxt,delete this._escTxt),u===1?this._escFix=1:delete this._escFix);return;case 13:e.hideEnterKey?(!this._ta||!r.shiftKey||this._type>0&&this._ta&&r.shiftKey)&&i(r):p._update();return;case 38:case 40:if(this._ta)break;u!==0||r.shiftKey||this._spin(f===38?e.spinDelta:-e.spinDelta);this._k0===f&&(u=2)}if((u!==1||f!==this._k0||!(f<48&&f>9&&f!==32||f>90))&&(s||(u!==0&&f!==9&&i(r),u===1&&this._k0===-1&&(this._k0=0,this.getSelectedText()),(u===0||f<9)&&this.getSelectedText()),u===1&&f>6)){if(f>31){if(this._fire(1,r)){s&&i(r);return}if(f=this._key,c=e.excludeKeys,l=e.includeKeys,e.toUpper||e.toLower||c||l){if(a=String.fromCharCode(f),h=a.toUpperCase(),c&&c.toUpperCase().indexOf(h)>=0||l&&l.toUpperCase().indexOf(h)<0)return i(r);e.toUpper?f=h.charCodeAt(0):e.toLower&&(f=a.toLowerCase().charCodeAt(0));this._key=f}}this._doKey(f,f<10?"":String.fromCharCode(f),o,y,this._sel0,this._sel1,s,r)}}}}}},paste:function(n,i){var r,f=this._pasted,e=this.options;return f&&u()-f.now<10&&(f.txt===n||f.val===n)?this:(this._pasted=f=f||{},f.now=u(),f.txt=n,this._nullT&&!i||this._noPaste===1)?this:(r=this._prop(12),r>0&&r<n.length&&(n=n.substring(0,r)),r=e.includeKeys,r&&(r=r.toUpperCase().replace(/\[/gm,"\\[").replace(/\]/gm,"\\]").replace(/\^/gm,"\\^").replace(/\-/gm,"\\-"),n=n.replace(new RegExp("[^"+r+"]","igm"),"")),r=e.excludeKeys,r&&(r=r.toUpperCase().replace(/\[/gm,"\\[").replace(/\]/gm,"\\]").replace(/\^/gm,"\\^").replace(/\-/gm,"\\-"),n=n.replace(new RegExp("["+r+"]","igm"),"")),e.toUpper?n=n.toUpperCase():e.toLower&&(n=n.toLowerCase()),n=this._matchList(n,0),t(n)&&(n=this._text),this._text="",this._fix=0,this.text(n,i?null:this._sel0),this._fix=1,this._fire(12),f.val=this._field[0].value,this)},_touch:function(n){var t,i=this._ddList;if(i&&i.igScroll){if(t=i.data("igScroll"),!n)return t?t.barY:i.igScroll({direction:"y",yThumb:"draggable",yScroller:this._ddScroll,cancelStart:"ms"}).attr("data-scroll","y");t&&t[n](!0)}},_fixCss:function(){var u,r,e,n,o=this._element,f=this._hoverOld,i=this._hover,c=this._mouseDown,s=this._fcs>0,l=this.options,h=this._ddList,t=this._css;if(this._field){if(e=l.disabled,n=this.css,s?o.addClass(n.focus):o.removeClass(n.focus),i?o.addClass(n.hover):o.removeClass(n.hover),this._hoverOld=i,f&&f!==i||(f=0),f>99){if(!h)return;this._listCss(h,f,n.listItemHover)}for(i>99&&!this._touch()&&this._listCss(h,i,n.listItemHover,1),e&&(t+=" "+n.disabled),this._nullT&&(t+=" "+n.nullValue),this._type>3&&n.negative&&!this._nullT&&this._instant(1)<0&&(t+=" "+n.negative),this._setCss(this._field,t),r=this._buttons?4:0;r-->0;)(u=this._buttons[r],u)&&(n=u[0]._css,t=n[0],e&&(t+=" "+n[3]),i===r+1&&(t+=" "+n[1]),s&&(t+=" "+this.css.buttonFocus),c===r+1&&(t+=" "+n[2]),this._setCss(u,t+""),t=n[4],e&&(t+=" "+n[7]),c===r+1?t+=" "+n[6]:i===r+1?t+=" "+n[5]:(i||s)&&(t+=" "+this.css.buttonsImageStateOverride),this._setCss(u.find("SPAN"),t))}},_setCss:function(n,t){var i=n[0].className,r=n[0]._ig_oldCss;(n[0]._ig_oldCss=t,t!==r)&&(r&&i&&r!==i&&i.indexOf(r)>=0&&(i=i.replace(r,""),t+=(i.charAt(0)!==" "?" ":"")+i),n[0].className=t)},_enterTxt:function(){var i,n=this._type;return n===1?this._getTxt(this._dataMode,""):n===2||n===3?(i=this._toDate(this._val(),!0),t(i)?"":this._toTxt(i,!0,"")):n>3?this._toTxtNum(null,!0,this._val(),"-","."):this._val()},_update:function(){var n,i=this._old;this._lock||(this._lock=!0,this._text=this._focusTxt(!1,this._fcs===2||this._hadFocus?"":null),n=this._instant(1,null,1),t(n)||t(i)||n.getTime&&n.getTime()===i.getTime()&&(n=i),(n!==i||this._bad===2)&&(this._val10=n,this._fire(10,null,n,i)?(this._set_val(i),this._text=this._focusTxt(!1)):(n!==this._val10&&this._setVal(this._val10),this._repaint(),this.options.value=n=this._instant(1,null,1),this._fire(11,null,n,i),this._k0!==13&&(this._old=this.options.value),this._dtt())),this._lock=!1)},_dropTrigger:function(n,t){var e,i,r,o=this.options,f=this._ddOn;if(r=o.dropDownTriggers,t!==0&&r&&(!o.readOnly||o.dropDownOnReadOnly)&&(t!==-2||!(r.indexOf("button")<0))&&(t!==-1||!(r.indexOf("focus")<0)))return t===38&&!f||t===40&&f?void 0:t>0&&(i=t===38||t===40?"arrow":String.fromCharCode(t),n.ctrlKey?i="ctrl+"+i:n.altKey?i="alt+"+i:n.shiftKey&&(i="shift+"+i),e=i.length,i=r.indexOf(i),i<0||i>0&&r.charAt(i-1)!==","||i+e<r.length&&r.charAt(i+e)!==",")?void 0:!f||t!==-1||u()-f>900?this._doDrop(1,n):void 0},_doDP:function(f,o){var h,s,l,a,v=this.options,c=v.focusOnDropDownOpen;if(this._field&&this._type===3){if(!this._dp&&f!==1)return 1;if(t(this._mobile))try{this._mobile=this.__touch||window.navigator.userAgent.toLowerCase().indexOf("mobile")>0}catch(y){}if(this._noFocus=t(c)?this._mobile:!c,o&&(this._set_val(o),this._fire(12)),s=n.datepicker,l=this._field[0],a=l.id,s._old_selectDay||(s._old_selectDay=s._selectDay,s._old_parseDate=s.parseDate,s._old_updateDatepicker=s._updateDatepicker,s._old_checkOffset=s._checkOffset,s.dpDiv.bind("mousedown",function(t){var r=n.datepicker._ig_dp;r&&(t.target&&t.target.nodeName==="SELECT"?(r._ddmd=u(),r._ddnf=n.ig.util.isFF||r.__touch):i(t))}),s._selectDay=function(t,i,u,f){var e=this._ig_dp;if(!e)return this._old_selectDay(t,i,u,f);t=n("a",f).html()||f.firstChild.innerHTML;e._doDrop(0,{type:"mousedown"},[u,i,r(t)],1);e._xyCheck(!0)},s._updateDatepicker=function(n){var t,i=this._ig_dp;i?(this._ig_css=i.css.dropDown,this.dpDiv.addClass(this._ig_css),i._noFocus&&(t=i._field[0],t.disabled&&(t=null))):this._ig_css&&(this.dpDiv.removeClass(this._ig_css),delete this._ig_css);t&&(t.disabled=!0);this._old_updateDatepicker(n);t&&(t.disabled=!1);i&&this.dpDiv.find("*").attr("unselectable","on")},s.parseDate=function(n,t,i){return this._ig_dp?this._ig_dp._df(this._ig_dp._getVal(1),-1):this._old_parseDate(n,t,i)},s._checkOffset=function(n,t,i){var u,r=this._ig_dp;return t=this._old_checkOffset(n,t,i),r&&(t.left-=r._leftShift(),e(null,t),u=e(r._swap?r._field:r._element),r._xy={x:u.left,y:u.top,i:setInterval(function(){r._xyCheck()},300)}),t}),f===1){if(c=s._ig_dp,c&&c!==this&&(delete s._ig_dp,c._doDrop()),a.length<1){for(a=this.element[0].id+"_ig_dp_id";document.getElementById(a);)a+=Math.floor(Math.random()*10);l.id=a}if(this._dp||(h=n.extend(v.datepickerOptions,this._dpRegion())||{},c=v.animationShowDuration,c&&(h.duration=c),c=v.animationShowEffect,c&&(h.showAnim=c),h.showOn="",h.onClose=function(){var n=s._ig_dp;n&&(n._fcs&&n._ddnf&&n._ddnf.type&&n._onEvt(n._ddnf,9),n._dpClosed=1,n._doDrop(),delete n._dpClosed,delete s._ig_dp)},this._dp=n(l).datepicker(h)),h=n.data(l,"datepicker").settings,h.minDate=h.minDate||v.minValue,h.maxDate=h.maxDate||v.maxValue,n.ig.util.isOpera&&(h.changeYear=!1),s._ig_dp=this,this._css+=" "+n.datepicker.markerClassName,this._noFocus?l.disabled=!0:this._fcs<1&&this.setFocus(-1),s._showDatepicker(l),this._noFocus){l.disabled=!1;try{s._dummyFocus=s._dummyFocus||(this._mobile?n("<button />").css("position","absolute").css("top","-100px").appendTo(document.body)[0]:s.dpDiv[0]);s._dummyFocus.focus()}catch(y){}}}else f===2?s._doKeyUp({target:l}):(this._xyCheck(!0),this._dpClosed||s._hideDatepicker(l),f===3&&s._destroyDatepicker(l));return 1}},_fixBC:function(n,t){n=n.css("backgroundColor");t.css("backgroundColor",!n||n==="transparent"||n.replace(/ /g,"").indexOf("(0,0,0,0")>0?"white":n)},_xyCheck:function(n){var i=this._xy,t=this._swap?this._field:this._element;i&&(t&&(t=e(t),(Math.abs(t.left-i.x)>2||Math.abs(t.top-i.y)>2)&&(n=!0)),!n&&t&&this._ddOn||(delete this._xy,clearInterval(i.i),this._doDrop()))},_vAct:function(t){return n.ui.igValidator&&n.ui.igValidator._act(this,t)},_doDrop:function(t,i,o,s){var kt,st,wt,ot,b,ht,ct,lt,at,ut,tt,bt,vt,y,nt,ft,p,v,g,w,l,k,yt,et,it,pt,rt=this._ddParent,a=-1,c=o,h=this,d=this.options;if((it=d.listItems,t=t===1?!this._ddOn:!1,t||this._ddOn||s)&&h._field&&!h._vAct(t?"drop":"hide")){if(et=it?it.length:0,this._type===3)o&&!isNaN(o[2])&&(c=this._getVal(1),c=c?this._df(o[0],o[1],o[2],this._df(c,3),this._df(c,4),this._df(c,5),this._df(c,6)):this._df(o[0],o[1],o[2],0,0,0,0));else{if(et<1)return;o&&(c=this._item(it[o-100]))}if(!this._fire(t?16:17,i,t?null:{value:c})||!i){if(this._ddOn=t?u():null,this._type===3)return this._doDP(t?1:0,c);if(l=h._ddList,k=h._element,yt=!d.listDropDownAsChild||k===h._field,!l){for(l=h._ddList=n("<div/>").addClass(h.css.dropDown+" "+h.css.list).scroll(function(){h._lazy()}),l[0]._id=99,h._ddSel=-1,h._ddLen=et,l.css({position:"absolute",visibility:"hidden"}),w=d.listWidth,w<5&&(w=k.outerWidth(),w<5&&(w=100)),yt?(h._ddParent=rt=d.theme?n("<span/>").addClass(d.theme).css("position","absolute").append(l):l,MSApp.execUnsafeLocalFunction(function(){rt.css({left:"0px",top:"0px"}).appendTo(n("body"))}),l.bind(h._mEvts)):h._ddParent=rt=l.prependTo(k),kt=l.css("borderRightColor"),tt=Math.max(1,d.listColumns),bt=h._rows=Math.ceil(et/tt),vt=l.outerWidth()-l.width(),w=Math.ceil((w-vt)/tt-1),h._listLazy=[],ut=0;ut<tt;ut++)for(at=0;at<bt;at++){if(++a>=et)break;y='<div style="width:'+w+"px;position:absolute;white-space:nowrap;overflow:hidden;";c=h._item(it[a]);typeof c!="string"&&(c=h._type>=4&&typeof c=="number"?h._toTxtNum(c):c&&h._type===2&&c.getMonth?h._toTxt(c):f(c));p=it[a];p=p&&typeof p.getHtml=="function"?p.getHtml()||c:c;a>0&&(y+="height:"+ot+"px;left:"+ut*st+"px;top:"+at*wt+"px;");ut+1<tt&&(y+="border-right-color:"+kt);y+='" title="'+h._item(it[a])+'" _id="'+(a+100)+'" class="'+h.css.listItem;ut+1<tt&&(y+=" "+h.css.listItemColumnBorder);y+='">'+(p===""?"&nbsp;":p)+"<\/div>";a===0||a+1===et?(MSApp.execUnsafeLocalFunction(function(){y=n(y).appendTo(l)}),y[0]._id=a+100):h._listLazy[a]=y;a===0&&(ot=y.height(),ot<5&&(ot=18),vt=y.outerWidth()-y.width(),vt>0&&(w-=vt,y.css("width",w)),st=y.outerWidth()+1,h._ddWidth=st*tt,h._ddHeight0=wt=y.outerHeight(),h._ddHeight=h._ddHeight0*bt,h._fixBC(y,l),nt=Math.max(0,d.listMaxHeight),nt>0&&h._ddHeight>nt?(h._ddHeight=nt,nt=Math.ceil(16/tt),w-=nt,y.css("width",w),st-=nt):nt=0,l.css("overflow",nt>0?"auto":"hidden"),y.css({height:ot,left:ut*st,top:at*wt}))}h._page=Math.max(2,Math.floor(Math.min(h._ddHeight/ot),et/3)-1)}return o&&(h._listSelect(o-100)||(c=this._item(it[o-100]),h._set_val(c),h._fire(12))),t?h._lastY&&(l[0].scrollTop=h._lastY):h._lastY=l[0].scrollTop,h._listSelect(null,1),c=t?d.animationShowDuration:d.animationHideDuration,!c||typeof c=="number"&&c<5?c=null:(g=t?d.animationShowEffect:d.animationHideEffect,n.effects&&n.effects[g]||(t||typeof c=="number"||(c=450),g=null)),pt=c&&!g?0:h._ddHeight,ft=function(){t?(l.css("filter",""),!o&&h._lastY?l[0].scrollTop=h._lastY:h._listSelect(),a=l[0].scrollWidth-l[0].clientWidth,!h._ddFixW&&a>0&&a&&a<4&&(h._ddFixW=++a,h._ddWidth+=a,l.css("width",h._ddWidth)),h._touch()):(l.css({display:"none",visibility:"hidden"}),h._touch("_hide"))},t?(this._lazy(),h._fcs<1&&h.setFocus(),ht=999,lt=document.body,p=document.documentElement,a=window.innerHeight,a>50&&a?ht=a:p.clientHeight>50&&p.clientHeight?ht=p.clientHeight:lt.clientHeight>50&&lt.clientHeight&&(ht=lt.clientHeight),ct=Math.max(window.pageYOffset||0,Math.max(lt.scrollTop,p.scrollTop)),p=h._swap?h._field:k,v=e(p),h._xy=yt?{x:v.left,y:v.top}:null,v.h=p[0].offsetHeight,b=v.top+v.h+h._ddHeight-ct-ht,b>0&&ct-v.top+h._ddHeight<b?(b=h._ddHeight+2,v.top-b<ct&&(b=Math.max(v.top-ct,2)),v.h=-b,v.top+=v.h,pt=h._ddHeight,k.addClass(h.css.noTopCorners),l.addClass(h.css.noBottomCorners)):(v.top+=v.h,k.addClass(h.css.noBottomCorners),l.addClass(h.css.noTopCorners)),l.css({opacity:c&&!g?0:1,height:pt,width:Math.floor(h._ddWidth/(c&&!g?2:1)),display:"",visibility:"visible"}),yt?(h._swap&&(v.left-=h._leftShift()),v.left-=r(k.css("borderLeftWidth")),rt.css({left:v.left,top:v.top}),h._xy.i=setInterval(function(){h._xyCheck()},300)):(a=h._left?"Right":"Left",rt.css("margin"+a,-r(k.css("border"+a+"Width"))+"px"),rt.css("marginTop",v.h),b=e(rt).left-v.left,b>30&&b<k[0].offsetWidth+10&&rt.css("marginLeft",-b+"px")),c?g?l.show(g,{},c,ft):l.animate({opacity:1,height:h._ddHeight,width:h._ddWidth},c,null,ft):ft()):(h._xyCheck(!0),k.removeClass(h.css.noTopCorners).removeClass(h.css.noBottomCorners),l.removeClass(h.css.noBottomCorners).removeClass(h.css.noTopCorners),c?g?l.hide(g,{},c,ft):l.animate({opacity:.6},Math.floor(c*.34)).animate({opacity:0,height:pt,width:Math.floor(h._ddWidth/2)},Math.floor(c*.66),null,ft):ft()),!0}}},_lazy:function(t){var f,r,e=Math.max(1,this.options.listColumns),i=this._listLazy,u=this._ddOn?this._ddList:null;if(u){if(t){i[t]&&MSApp.execUnsafeLocalFunction(function(){n(i[t]).appendTo(u)[0]._id=t+100;delete i[t]});return}for(f=Math.floor(u[0].scrollTop/this._ddHeight0);e-->0;)for(t=0;t<this._page+8;t++)r=this._rows*e+f+t,i[r]&&MSApp.execUnsafeLocalFunction(function(){n(i[r]).appendTo(u)[0]._id=r+100;delete i[r]})}},_listCss:function(t,i,r,u){t=n(t.children("[_id="+i+"]"));u?t.addClass(r):t.removeClass(r)},_listSelect:function(i,r){var u,s,f,o=null,e=r!==2&&(r||this._ddOn)?this._ddList:null,h=this.options;if(h.listItems){if(!t(i)&&this._listID!==i){if(o={index:i,oldIndex:this._listID,item:h.listItems[i]},this._fire(18,null,o))return 1;this._listID=i}if(i=this._listID,e){if(r&&i<0&&(r=this._findItem(this.text(),-1),!t(r)&&i!==r.id)){if(o={index:r.id,oldIndex:i,item:h.listItems[r.id]},this._fire(18,null,o))return 1;this._listID=i=r.id}f=this._ddSel;f!==i&&(this._lazy(i),this._listCss(e,f+100,this.css.listItemSelected),f=this._ddSel=i,this._listCss(e,f+100,this.css.listItemSelected,1));f>=0&&(u=f%this._rows*this._ddHeight0,s=e[0].scrollTop,u>s&&(u+=this._ddHeight0-this._ddHeight,u<s&&(u=-9)),u!==-9&&(n.ig.util.isSafari&&u>20&&e[0].scrollTop===u&&!r&&(e[0].scrollTop=u-1),e[0].scrollTop=u))}o&&this._fire(19,null,o)}},_listKey:function(t,i){var r,f,o=this._ddOn?this._ddList:null,e=this._listID,u=n.ui.keyCode;if(o){if(i===u.ENTER||i===u.SPACE||i===u.ESCAPE)return this._doDrop(0,t,i===u.ESCAPE?null:e+100),!0;if(!(i<33)&&!(i>40)){if(f=this._ddLen-1,r=e,r<0&&(r=-1e3),i===u.DOWN)r++;else if(i===u.UP)r--;else if(i===u.PAGE_DOWN)r+=this._page;else if(i===u.PAGE_UP)r-=this._page;else if(i===u.HOME)r=0;else if(i===u.END)r=f;else if(i===u.RIGHT)r+=this._rows,r>f&&(r=e);else if(i===u.LEFT)r-=this._rows,r<0&&(r=e);else return;return this._listSelect(Math.max(0,Math.min(r,f))),!0}}},_listChange:function(n,i,r){var f,o,e,u=this.options.listItems;if(f=u?u.length:0,e=o=n?n.length:0,i=t(i)||i<0?-1:i,r<2){if(f<1)return this;if(r>0&&i<0)if(n===null)i=f-1;else while(++i<f)if(u[i]===n)break;i<0?u.length=0:i<f&&u.splice(i,1)}else if(u)while(e-->0)i>=f||i<0?u.push(n[o-e-1]):i===0?u.unshift(n[e]):u.splice(i,0,n[e]);else this.options.listItems=n;return this._listRemove(),this},_listRemove:function(){this._ddList&&(this._touch("destroy"),this._element.removeClass(this.css.noTopCorners).removeClass(this.css.noBottomCorners),this._ddList.unbind(),this._ddParent.remove(),this._ddOn=this._ddList=this._ddParent=this._listLazy=null,this._listID=-1)},_initValidator:function(n,t){if(this._field){var u=this._validator,r=this.options,i=r.validatorOptions;if(n||!i||!this.element.igValidator){u&&(u.destroy(),delete this._validator);return}i.ctl=this;i.required=r.required=r.required||!t&&i.required;this._field.igValidator(i)}},_doError:function(n,i,r){var f=this._validator;if(f&&this._field){if(!t(r))return f._doError(r,null,n)!==1;n?(f._evt(i,null,n===2),f._lbl&&(f._lbl._old={t:u(),val:this._val(),sel0:this._sel0,sel1:this._sel1,lastTxt:this._lastText,last:this._last,txt:this._text})):f.hide(null)}},_doScrl:function(t,i){var u,f,c=n.ig.util.isFF&&!this._dp,e=t.clientWidth,o=t.scrollWidth,s=i.length,r=!1,h=this._sel0;if(this._field&&this._tr===1&&!(s<4)){if(u=o/s*1.1,s-=h,this._ta){if(o=t.scrollHeight,t.clientHeight+2>o)return;if(i=i.split("\n"),s*15<e&&(c||i[i.length-1].length*15>e)){t.scrollTop=o;return}if(!c)return}else if(h*15<e)return;if(!c){o>e+2&&(s*u*1.3<e?t.scrollLeft=o:h*u>e+t.scrollLeft&&(t.scrollLeft=Math.floor(h*u-e-3)));return}if(!(this._bad>2)){this._scrl=1;try{u=t.maxLength;f=this._mask;u>0&&(t.maxLength=Math.max(u,f?f.length:0)+2);f=document.createEvent("KeyboardEvent");f.initKeyEvent("keypress",!r,!r,null,r,r,r,r,0,32);t.dispatchEvent(f);f=document.createEvent("KeyboardEvent");f.initKeyEvent("keypress",!r,!r,null,r,r,r,r,8,0);t.dispatchEvent(f);u>0&&(t.maxLength=u)}catch(l){}delete this._scrl}}},_onEvt:function(n,i){var o,f,e=this._field,r=this;if(e=e?e[0]:null,e&&!r._scrl)if(r._evt=n,i!==11)r._doEvt(n,i,e),delete r._evt;else{if(r._pasting&&u()-r._pasting<2e3)return;o=e.value;try{r._nullT&&n&&n.type==="drop"&&(f=n.originalEvent.dataTransfer,t(f)||(f=f.getData("Text")))}catch(s){f=null}r._pasting=u();setTimeout(function(){if(!f){if(!r._field)return;f=e.value}o!==f&&r.paste(f);delete r._pasting},0)}},_doEvt:function(r,f,e){var h,l,w,y,b,v,p,s=null,a=0,o=this,c=this.options;if(o._noWidth&&o._fixWidth(),r&&!c.disabled){if(f===10){s=r.wheelDelta||r.detail;s&&(i(r),o._spin(s>0?c.spinDelta:-c.spinDelta));return}if(!n.ig.util||!n.ig.util.evtButton(r)){if(f===26){o._msOver=r.originalEvent.pointerType;return}if(o._msOver===2&&f===6){delete o._msOver;return}for(h=p=r.target,s=h._id;h&&a++<5&&t(s);)h=h.parentNode,h&&(s=h._id);if(f===7){o._hover=o._mouseDown=0;o._fixCss();o._fire(f,r,s);return}if(s){if(f===6&&(s>0&&!p.unselectable&&(p.unselectable="on"),h=e.value,(h===o._lastText||o._pasting)&&(h=null),!o._fcs&&h&&o._nullT&&(h!==c.nullText&&o._fixNull(),h=null),h&&o.paste(h,1)),s>4&&s<9&&(s-=4),f===0&&o._fcs===0&&o._onEvt({target:p,type:"focus"},8),t(o._evt0Spin1)&&!o._box){try{n.ig.util.isIE&&n.ig.util.browserVersion<11&&!o._ta||t(e.selectionStart)||(o._tr=1)}catch(k){}o._tr!==1&&(o._tr=e.createTextRange?e.createTextRange():null);o._bad=t(o._tr)?1:0}if(o._evt0Spin1=0,f===5&&o._fcs===2&&r.button===1&&o.getSelectedText(),v=u(),f<3&&(o._key=a=r.keyCode||r.which||0,o._time=v),f!==1&&f<8&&o._fire(f,r,s)){f<4&&i(r);return}if(f<3){if(f===0&&(o._fcs===2||c.dropDownOnReadOnly)&&o._dropTrigger(r,a))return;if(o._fcs===1&&(r.shiftKey||f===1||!(c.spinOnReadOnly||c.dropDownOnReadOnly&&o._ddOn)||a<9||a>40))return;if(f===2&&o._k0===0&&a>0&&a!==13&&a!==86&&o._text!==o._val()){e.value=o._text;return}}if((f===3&&s>0&&(s===99&&(o._ddmd=v),i(r)),f===3&&o._mouseDown!==s&&(s>1&&s<4&&(o._stopTimer(1),(!c.readOnly||c.spinOnReadOnly)&&(b=s===2?c.spinDelta:-c.spinDelta,o._fcs<1&&c.focusOnSpin&&(o._evt0Spin1=1,o.setFocus()),o._spin(b),w=y=5,o._spinField=-1,o._timer=setInterval(function(){if(o._mouseDown<2)return o._stopTimer(1);--w<1&&(o._spin(b),w=--y>8?--y:y)},60))),o._hover=o._mouseDown=s,o._fixCss()),(f===5||f===6)&&o._hover!==s&&(o._hover=s,o._fixCss()),f===4&&o._mouseDown&&((s===1||s===4)&&s===o._mouseDown&&(o._fire(15,r)||(s===4?(o._onEvt(null,11),o._set_val(null),o.select(0)):o._dropTrigger(r,-2))),s>99&&o._doDrop(0,r,s),o._mouseDown=0,o._fixCss()),!(s>0))&&(l=o._focTime,f===4&&(l&&l+500>v&&o._select(),o._focTime=0),f<3&&o._doKey0(r,f),o._field)){if(h=o._val(),f===2&&(o._last=h,o._key===13&&n.ig.util.isFF&&o._text!==h&&(o._fire(12,r),o._update(),o.text(h))),f===1&&o._keyMod&&(delete o._keyMod,o._doScrl(e,h)),f>=8){if(o._bad>2&&(o._bad=2),o._spinField=-1,l=f===8,l&&delete o._ddnf,s=o._fcs>0,l===s)return;if(!l&&v-o._ddmd<500){o._ddnf?o._ddnf=r:o.setFocus(-1);return}if(o._noPaste=0,l||o._lastText===h||o.paste(h,1),!l&&o._type<2&&!h&&!c.nullable&&(h=o._old||(c.listItems?c.listItems[0]:""),h?(o._set_val(h),h=o._text=o._focusTxt(!1)):h=""),o._fcs=l?c.readOnly?1:2:0,o._vAct(l))return;o._hadFocus=!l;s=o._validator;l?(o._k0=0,o._bad>1&&(o._bad=0),c.readOnly||(o._nullT&&(h=o._last=o._text=e.value=""),o._nullT=null,s=s&&s._lbl?s._lbl._old:null,s&&s.t+200>u()?(e.value=o._text=s.txt,o._lastText=s.lastTxt,o._last=s.last,o.select(s.sel0,s.sel1)):(h!==o._text&&(o.getSelectedText(),o.paste(h)),o._lastText=o._last=o._text=o._focusTxt(l,r))),o._focTime=v,o._dropTrigger(r,-1)):(s&&(o._doError(2,r),setTimeout(function(){o._fcs||o._doInvalid(r,9)||o._doError()},100)),o._doDrop(0,r),h=o._matchList(h,-1),o._canRedo=null,c.readOnly||(s=o._ta?c.maxLength||0:0,s>0&&h.length>s&&(h=h.substring(0,s)),(o._last!==h||o._bad!==0)&&(s=o._fix,o._fix=0,o._fcs=2,o.text(h),o._fcs=0,o._fix=s),o._update()));o._repaint();o._fixCss();l&&this._prop(13)<2&&(o.select(this._prop(13)*1e4),o._select());o._hadFocus=!1;l&&o._focSpin&&o._spin(o._focSpin);o._focSpin=null;o._fire(f,r,-1);o._lastText=o._val();return}f>3&&o._k0===0||o._nullT||h===o._text||(o._text=h,o._fire(12,r))}}}}},_fire:function(n,t,i,r){if(this._field){var f,e=this.events,u=n===13||n>16?i:{};for(f in e)if(e.hasOwnProperty(f)&&e[f]===n)break;if(n===14&&(u.delta=i,u.value=this._instant(1,null,1)),n===12){if(u.oldText=this._lastText,i=this._val(),u.oldText===i)return;this._doError(1,t);this._doClear(i);u.text=this._lastText=this._text=i;this._fcs<2&&this._evt0Spin1!==1&&this._update();this._doDP(2);this._type>3&&this._fixCss()}if(n<3?u.key=this._key:n<8&&(u.elementType=i===-1?"field":i===1||i===5?"button":i===2||i===6?"spinUpper":i===3||i===7?"spinLower":i===99?"dropDown":i>99?"item"+(i-100):"",u.id=i),(n===10||n===11)&&(u.value=i,u.oldValue=r),n===11&&this._fcs===2&&this._update(),u.owner=this,!this._trigger(f,t||this._evt,u))return!0;n<3&&(this._key=u.key);n===10&&(this._val10=u.value)}},_select:function(n){var i,u=this,r=this._field[0],t=this._prop(13);if(this._tr===1&&!(t>1)){if(!n){setTimeout(function(){try{u._select(1)}catch(n){}},0);return}i=r.value.length;t===0?i=0:t=t<0?0:i;(t!==r.selectionStart||i!==r.selectionEnd)&&this.select(t,i)}},select:function(n,i,r){var e,o,s=0,h=0,f=this._tr,u=this._fcs===2?this._field[0]:null;if(!u||u.offsetWidth<2||this._box)return this;t(r)?r=u.value:(i=n,u&&u.value!==r&&(this._keyMod=u.value=r));o=r.length;t(i,1)&&(i=n,(t(n,1)||n<0)&&(n=0,i=o));i>=o?i=o:i<n&&(i=n);n>i&&(n=i);this._sel0=n;this._sel1=i;try{if(f===1)return u.selectionStart=n,u.selectionEnd=i,this;if(!f)return n!==i&&u.select(),this;if(this._ta){for(e=i;e-->0;)r.charCodeAt(e)===10&&(e<n&&s++,h++);n-=s;i-=h}i-=n;this._ta?f.moveToElementText(u):f.move("textedit",-1);f.move("character",n);i>0&&f.moveEnd("character",i);f.select()}catch(c){}return this},getSelectedText:function(){var o,f,e,i="",u=this._field[0],n=this._tr,r=0;if(this._sel0=this._sel1=0,t(n))return i;if(n===1)return this._sel0=u.selectionStart,this._sel1=u.selectionEnd,this._sel0<this._sel1&&(i=u.value.substring(this._sel0,this._sel1)),i;try{f=document.selection.createRange();e=u.value;o=e.length;n=f.duplicate();this._ta?n.moveToElementText(u):n.move("textedit",-1);try{while(n.compareEndPoints("StartToStart",f)<0)if(n.moveStart("character",1),r++,this._ta&&e.charCodeAt(r)===10&&r++,r>o)break}catch(s){}i=f.text}catch(s){}return this._sel0=r,this._sel1=r+i.length,i},getSelection:function(n){return this.getSelectedText(),n?this._sel0:this._sel1},setFocus:function(n){var t=this;if(t._field)if(n===-1)try{t._field[0].focus()}catch(i){}else setTimeout(function(){t._fcs<1&&t.setFocus(-1)},n||0);return this},hasFocus:function(){return this._fcs>0},_jpn:function(n,t){if(t){if(n===12290||n===65294)return".";if(n===12289)return","}else if(!this._sTxt)return n;if(n>65295&&n<65306)n-=65248;else if(n>1631&&n<1642)n-=1584;else if(n>1775&&n<1786)n-=1728;else return t?null:n;return t?String.fromCharCode(n):n},_dtt:function(){var i,u,r,f=this._oldAttr.title,o=this.options,e=o.inputName;(e&&(u=o._vsFormat,i=this._getVal(1),t(i,this._type>3)?i="":this._date?i=this._df(i,0)+"-"+(this._df(i,1)+1)+"-"+this._df(i,2)+" "+this._df(i,3)+":"+this._df(i,4)+":"+this._df(i,5)+"."+this._df(i,6):u&&this._type>3&&(i=i.toString().replace(".",u)),r=n('input[name="'+e+'"]'),r[0]!==this.element[0]&&(r.length===0&&MSApp.execUnsafeLocalFunction(function(){r=n('<input type="hidden" name="'+e+'" />').appendTo(this._element.parent())}),r.val(i))),!f||f.indexOf("{0}")<0)||(i=this._val(),i===""&&(i=this.options.nullText),this._element[0].title=this._field[0].title=this._field[0].alt=f.replace("{0}",i))},_stopTimer:function(n){this._timer&&clearInterval(this._timer);delete this._timer;!n&&this._timer1&&(clearInterval(this._timer1),delete this._timer1)},_maskFlag:function(n,t){switch(n){case">":return-1;case"<":return-2;case"&":n=1;break;case"C":n=2;break;case"A":n=7;break;case"a":n=8;break;case"L":n=13;break;case"?":n=14;break;case"0":return 19;case"9":return 20;case"#":return 21;default:return 0}return n+t*2},_maskFilter:function(n,t,i,r){var u,f;if(i>=t.length||(u=t.charCodeAt(i),f=Math.floor((n-1)/6),t=t.charAt(i),u<22))return r;if((f===1||f===3)&&u>100&&(u=this._jpn(u),u<100&&(t=String.fromCharCode(u))),f===3)return n===21&&(t==="-"||t==="+")||u>47&&u<58?t:r;if(f===1||f===2){if(f===1&&u>47&&u<58)return t;if(u<256&&t.toUpperCase()===t.toLowerCase())return r}return(n=Math.floor((n-1)/2)%3,n===0)?t:n===2?t.toLowerCase():t.toUpperCase()},_getTxt:function(n,i,r,u){var f,s,c,e=this._selKey,l=this._mask,o="",h=!t(r),a=this.options;if(h||(r=this._bad!==0&&this._fcs>1?this._val():this._txt),h&&(h=this._type===1),t(r)||t(l))return o;for(s=l.length,e=this._fcs>1&&!u&&a.hideMaskOnFocus?e&&e<s?e-1:-1:s,f=0;f<s;f++)c=l.charCodeAt(f),c<22?f<r.length&&r.charCodeAt(f)>=22?(o+=r.charAt(f),f>e&&(e=f),h=!1):(n%3==2||n%3==1&&c%2==1)&&(o+=c===21&&i===""?a.padChar:i):n>=3&&(o+=l.charAt(f),f===e+1&&(this._selKey===f&&this._selKey++,e++));return e++<s&&(o=o.substring(0,e)),h?"":o},_setTxt:function(n,i,r){var o,h,u=0,f=-1,s=this._mask,e=this._mask;if(!t(n))while(++f<s.length){if(i===1e3+u&&(i=this._dataMode),u>=n.length)break;h=s.charCodeAt(f);h<22?(o=this._maskFilter(s.charCodeAt(f),n,u),t(o)||(e=e.substring(0,f)+o+e.substring(f+1)),u++):i>=3&&u++}if(r)return e;this._txt=e;this._text=this._focusTxt(this._fcs>1," ");this._repaint()},_setMask:function(n){for(var i,t,o=0,f=0,u="",e="",s=this._getTxt(0),r=0;r<n.length;r++){if(t=n.charAt(r),i=this._maskFlag(t,f),i!==0){if(i<0){f=f===-i?0:-i;continue}t=String.fromCharCode(i);u+=t;t=this._maskFilter(i,s,o++,t)}else t==="\\"&&r+1<n.length&&this._maskFlag(n.charAt(r+1),0)!==0?(t=n.charAt(++r),u+=t):u+=t;e+=t}this._txt=e;this._mask=u},_getMask:function(n,t,i){var f,e,o=0,r=-1,u="";for(t||(t=""),i&&(t=t.replace("dddd","ddd").replace("ddd,","").replace("ddd ","").replace(" ddd","").replace("ddd","")),t=t.replace(/\x08/g," ").replace(/\x09/g," "),t=t.replace(/\\f/g,"\x01").replace(/\\d/g,"\x02").replace(/\\s/g,"\x03").replace(/\\m/g,"\x04").replace(/\\t/g,"\x05").replace(/\\H/g,"\x06").replace(/\\h/g,"\x07").replace(/\\M/g,"\b").replace(/\\y/g,"\t"),t=t.replace("fff","24").replace("ff","23").replace("f","22"),t=t.replace("dddd",i?"":"21").replace("ddd",i?"":"20").replace("dd","09").replace("d","08").replace("ss","19").replace("s","18").replace("mm","17").replace("m","16"),t=t.replace("tt","15").replace("t","14").replace("HH","13").replace("H","12").replace("hh","11").replace("h","10"),t=t.replace("MMMM",i?"MM":"07").replace("MMM",i?"MM":"06").replace("MM","05").replace("M","04").replace("yyyy","03").replace("yy","02").replace("y","01"),t=t.replace(/\x01/g,"g").replace(/\x02/g,"d").replace(/\x03/g,"s").replace(/\x04/g,"m").replace(/\x05/g,"t").replace(/\x06/g,"H").replace(/\x07/g,"h").replace(/\x08/g,"M").replace(/\x09/g,"y"),e=0;e<t.length;e++){if(f=t.charCodeAt(e),f<48||f>57){if(r=t.charAt(e),!i&&r==="\\"&&e+1<t.length){if(f=t.charAt(++e),f==="\\")continue;(f==="0"||f==="9")&&(u+=r);u+=f}else u+=t.charAt(e);continue}if(r=(f-48)*10+t.charCodeAt(++e)-48,!i){n[o++]=r;u+="\x01";continue}if(n[o++]=r,r===14)u+="L";else if(r===15)u+="LL";else if(r===22)u+="0";else for(u+="00",r===3&&(u+="00");r-->23;)u+="0"}return u},getValueByMode:function(n,t,i){var r,u=this._type,f=this.options.emptyChar;return(n=this._mode(n,u),u===0||!this._field)?this._val():u>3?(r=this._dataMode,this._dataMode=n,t=this.value(),this._dataMode=r,t):u===1?this._getTxt(n,t?"":f,null,i):(r=this._fcs<2?this._isNull?null:this._date:this._toDate(this._val(),!0,t),n===0?r:r?this._toTxt(r,n===1,f):"")},_fieldVal:function(n,t,i,r){var u,o,e=n%2*2,s=this.options;if(n<4)u=this._df(t,0)+s.yearShift,n===3?e=4:(u%=100,e=n===2?2:0);else if(n<8){if(this.d_s=2,u=this._df(t,1)+1,n>5&&(n=this._optVal(n===6?"monthNamesShort":"monthNames")[u-1],n.length>0))return n}else if(n<10)u=this._df(t,2);else if(n<16){if(u=this._df(t,3),n>13)return(u=this._optVal(u<12?"am":"pm"),n-=13,e=u.length,n===e)?u:(e<n&&(u+=" "),u.substring(0,n));n<12&&(u%=12,u===0&&(u=12))}else if(n<18)u=this._df(t,4);else if(n<20)u=this._df(t,5);else if(n>21){for(u=this._df(t,6),o=e=n-21;o-->3;)u*=10;while(o++<2)u=Math.floor(u/10)}else return this._optVal(n===20?"dayNamesShort":"dayNames")[t.getDay()];if(u=f(u),(n<20||n>22)&&(n=u.length,i&&(e===0?e=2:i=!1),e>0))if(e<n)u=u.substring(0,e);else while(n++<e)u=(i?r:"0")+u;return u},_limits:function(n,i){var f,r=this._prop(10),u=this._prop(11);if(this._type>3){if(t(n,1)&&!this.options.nullable&&(n=this.options.nullValue,!n&&this._dataMode>2&&(n=0)),!t(n,1)){if(!t(r,1)&&n<=r)return i?u:r;if(!t(u,1)&&n>=u)return i?r:u}return n}return t(n)?n:(f=n.getTime(),t(r)||(r=r.getTime()),t(u)||(u=u.getTime()),!t(r)&&(f<r||i&&f===r))?(n.setTime(i?u:r),n):!t(u)&&(f>u||i&&f===u)?(n.setTime(i?r:u),n):null},_date7:function(n){var t;if(n.length<13||(n=n.replace(/[\. :]/g,"-").split("-"),t=n.length,t!==7))return null;while(t-->0)if(n[t]=r(n[t],-1),n[t]<0)return null;return this._df(n[0],n[1]-1,n[2],n[3],n[4],n[5],n[6])},_toDate:function(n,i,r,u){var f,h,b,ft,p,c=0,d=0,w=-1,g=-1,v=-1,nt=-1,l=-1,y=-2,tt=-2,it=-2,rt=-2,ut=-1,k=!1,a=null,s={},o=this.options,e=u?null:this._date7(n),et=i&&u?this._fields0(n):this._fields1(n,i);if(ft=et.length,!e)while(++w<ft){if(g++,f=et[w],h=i?this._field0IDs[w]:this._field1IDs[w],h<4)f>100&&f>o.yearShift&&(f-=o.yearShift),s.year=v=f,v<0?c++:(d++,b=o.centuryThreshold,f<100&&(h<3&&b<0&&(b=29),b>=0&&(v+=f>b?1900:2e3)));else if(h<8)f<1||f>12?c++:(s.month=nt=f,d++);else if(h<10)s.day=l=f,f<1||f>31?c++:d++;else if(h<14)f===24&&(f=0),h>11?ut=-4:(f===12&&(f=0),f>12&&c++),s.hours=y=f,(f>23||f<0)&&c++;else{if(h<16){g--;f>0&&ut++;continue}if(h<18)s.minutes=tt=f,(f>59||f<0)&&c++;else if(h<20)s.seconds=it=f,(f>59||f<0)&&c++;else{if(h<22){g--;continue}while(h++<24)f*=10;while(h-->25)f=Math.floor(f/10);s.milliseconds=rt=f;(f>999||f<0)&&c++}}f>=0&&(k=!0);g<o.minNumberOfDateFields&&c>0&&(u&&k&&(p=this._optVal("dateFields",2),a="numberOfFields"),c+=9)}return ut===0&&y>=0&&y<12&&(y+=12,s.hours=y),!e&&(!o.nullable||c<9)&&(d===3?(e=this._df(v,nt-1,l,0,0,0,0),v<100&&this._df(e,0,v)):(e=this._df(),this._date&&e.setTime(this._date.getTime()),l>0&&this._df(e,2,10),v>=0&&this._df(e,0,v),nt>0&&this._df(e,1,nt-1),l>0&&this._df(e,2,l))),u&&l>0&&e&&l!==this._df(e,2)&&(p=this._optVal("invalidDay",2),a="dayOfMonth"),l=o.useLastGoodDate?this._goodD:null,!u||e||o.nullable||(e=l,e&&e.getTime?(p=this._optVal("required",2),a="null"):e=this._df()),e&&(y>-2&&this._df(e,3,y<0?0:y),tt>-2&&this._df(e,4,tt<0?0:tt),it>-2&&this._df(e,5,it<0?0:it),rt>-2&&this._df(e,6,rt<0?0:rt),r&&(w=e,e=this._limits(e),t(e)?e=w:u&&(p=o.minValue?o.maxValue?this._optVal("range",2).replace("{0}",this._toTxt(o.minValue)).replace("{1}",this._toTxt(o.maxValue)):this._optVal("min",2).replace("{0}",this._toTxt(o.minValue)):this._optVal("max",2).replace("{0}",this._toTxt(o.maxValue)),a="limit"))),u&&(k&&!e&&n.length>0&&l&&(a||(p=this._optVal("date",2),a="invalid"),e=l),!k&&o.required&&(p=this._optVal("required",2),a="null"),s.value=e,a&&(n||!o.nullable)&&(o.reduceDayOfInvalidDate!==!1&&e&&k&&this._df(e,2)<5&&s.day>27&&(this._df(e,2,0),s.value=e),s.text=n,s.reason=a,s.message=p,this._inv=s)),e},_toTxt:function(n,i,r,u){var s,h,e=-1,c=0,o="",f=i?this._mask:this._mask1,l=i?this._field0IDs:this._field1IDs;if(t(n))return i?(u&&(this._txt=f),this._getTxt(5,r,f)):"";for(this.d_s=6;++e<f.length;)if(s=f.charAt(e),h=f.charCodeAt(e),h<22){if(o+=this._fieldVal(l[c++],n,i,s),i)while(e+1<f.length)if(f.charCodeAt(e+1)===h)e++;else break}else o+=s;return i?(u&&(this._txt=o),this._getTxt(5,r,o)):o},_isPM:function(n,t){var i=this._optVal("pm").toUpperCase();return i.charAt(0)===n.charAt(t)&&(i.length<2||n.length<=t+1||i.charAt(1)===n.charAt(t+1))},_fields1:function(n,i){for(var o,u,r,s=-1,f=-1,e=0,h=[],l=i?this._field0IDs:this._field1IDs,c=l.length;++s<c;)h[s]=-1;if(t(n))return h;for(n=n.toUpperCase(),s=-1;++s<n.length&&e<c;)if(u=this._jpn(n.charCodeAt(s))-48,r=l[e],(r===20||r===21)&&(r=l[++e]),r===14||r===15){if(u>=0&&u<=9){f=-1;e++;s--;continue}this._isPM(n,s)&&(h[e++]=1,f=-1)}else if(u>=0&&u<=9)f=f<0?u:f*10+u;else if(f>=0)h[e++]=f,f=-1;else if(r===6||r===7)while(f-->-3){for(u=0;u<12;u++)if(o=this._optVal(r===6?"monthNamesShort":"monthNames")[u],o=o.toUpperCase(),r=o.length,!(r<1)){if(f===-3){if(r<4)continue;o=o.substring(0,3)}if(r=n.indexOf(o)-1,r>-2&&(r<0||n.charAt(r).toLowerCase()===n.charAt(r)))break}if(u<12){h[e++]=u+1;break}}return e<c&&(h[e]=f),h},_fields0:function(n){var i,u,r=-1,f=-1,t=-1,e=-1,o=22,s=this._mask,h=[];for(n||(n="");++f<s.length;)(r++,i=s.charCodeAt(f),i>21&&o>21)||(i>21?e>=0&&(h[e]=t):(o>21&&(t=-1,e++),r<n.length&&(i>18?(u=this._jpn(n.charCodeAt(r))-48,u>=0&&u<=9?t=t<0?u:t*10+u:f+1<s.length&&n.charAt(r)===s.charAt(f+1)&&r--):o!==i&&this._isPM(n.toUpperCase(),r)&&(t=1))),o=i);return h[e]=t,h},_curField:function(n,i){var u,f,e=22,r=-1;for(this._n0=this._n1=-1,u=0;u<i.length;u++)if(f=i.charCodeAt(u),(!(f>21)||!(e>21))&&(!(f<=21)||!(e<=21))){if(f>21){if(u>=n)break}else this._n0=u,r++;e=f}return(this._n0>=0&&(this._n1=u),r=this._field0IDs[r],t(r))?-1:r<8?r<4?0:1:r<20?Math.floor((r-4)/2):r>21?8:-1},_maskKey:function(n,t,i,r,u,f){var o,s=0,e=-1;if(this._type<2)return-2;if(o=this._curField(u,f),u>=this._n1&&i.charCodeAt(--u)>21)return this._maskKey(n,t,i,r,u+2,f);if(o<0)return-1;if(o===5){if(u<=this._n0){if(e=this._optVal("am"),t=t.toUpperCase(),e.charAt(0).toUpperCase()!==t&&(e=this._optVal("pm"),e.charAt(0).toUpperCase()!==t))return-1;r=e.length;this._n1===this._n0+1?e=e.charAt(0):r<2?e+=" ":r>2&&(e=e.substring(0,2));this._txt=i.substring(0,this._n0)+e+i.substring(this._n1)}return this._n1}if(n<48||n>57){if(u===0||n!==47&&n!==58&&(n<44||n>57))return-1;if(f.charCodeAt(u-1)>=22||this._n1===r)return u;while(u<r){if(f.charCodeAt(u++)>=22)break;i=i.substring(0,u-1)+f.charAt(u-1)+i.substring(u)}return this._txt=i,u}if(n-=48,this._n0===u&&(e=i.charCodeAt(u+1)-48,o===2?n>3?s=1:n===3&&e>1&&(s=2):o===6||o===7?n>5&&(s=1):o>0&&o<5&&(o===4&&(n--,e-=2),n>1?s=1:n===1&&e>2&&(s=2))),this._n0+1===u&&(e=i.charCodeAt(u-1)-48,o===2?(e>3||e===3&&n>1)&&(s=3):o===6||o===7?(e>6||e===6&&n>0)&&(s=3):o>0&&o<5&&(o===4&&(e--,n-=2),(e>1||e===1&&n>2)&&(s=3))),s===1&&(i=i.substring(0,u)+f.charAt(u)+i.substring(u+1),u++),s===2&&(i=i.substring(0,u+1)+f.charAt(u+1)+i.substring(u+2)),s===3){while(++u<r)if(f.charCodeAt(u)<22)break;return u>=r?-1:this._maskKey(n+48,t,i,r,u,f)}return this._txt=i.substring(0,u)+t+i.substring(u+1),++u},_add:function(n,t){var i,u,r,f,o=t.toString(),s=n.toString(),e=n+t;if((f=e.toString(),i=s.indexOf("."),u=f.indexOf("."),i<1||u<1)||(r=o.indexOf("."),r>0&&(r=o.length-r),i=Math.max(r,s.length-i),f.length-u<=i))return e;for(t=10;i-->2;)t*=10;return Math.round(e*t)/t},spin:function(n){var f,u,r,i,e=this.options;if(!this._spinList(n)||this._type<2)return this;if(this._type>3)return f=this._toNum(this._val())||0,f=this._add(f,n),n=e.maxLength,(!n||n<1||f.toString().length<=n)&&this._set_val(f,this._fcs),this;r=this._spinField;i=this._df();i.setTime(this._date.getTime());(r<0||r>8)&&(this._fcs===2?(this.getSelectedText(),r=this._curField(this._sel0,this._mask),i=this._toDate(this._val(),!0,!0),t(i)&&(i=this._df()),this._spinField=r):this._spinField=r=this.d_s);r===5&&(n=n>0?12:-12);u=e.spin1Field;switch(r){case 0:n+=this._df(i,0);this._df(i,0,n);u&&n!==this._df(i,0)&&(r=-1);break;case 1:n+=this._df(i,1);this._df(i,1,n);u&&n!==this._df(i,1)&&(r=-1);break;case 2:n+=this._df(i,2);this._df(i,2,n);u&&n!==this._df(i,2)&&(r=-1);break;case 3:case 4:case 5:r=this._df(i,2);n+=this._df(i,3);this._df(i,3,n);u&&r!==this._df(i,2)&&(r=-1);break;case 6:n+=this._df(i,4);this._df(i,4,n);u&&n!==this._df(i,4)&&(r=-1);break;case 7:n+=this._df(i,5);this._df(i,5,n);u&&n!==this._df(i,5)&&(r=-1);break;case 8:for(r=this._n1-this._n0;r<3;r++)n*=10;n+=this._df(i,6);this._df(i,6,n);u&&n!==this._df(i,6)&&(r=-1)}return r<0?this:(n=this._limits(i),t(n)||(i=n),this._text=this._toTxt(i,this._fcs===2,e.promptChar,!0),this._date=i,this._isNull=!1,this._repaint(),this.select(this._sel0),this._fcs===2&&(this._last=this._val()),this)},_mode:function(n,i){var r;return!n||i<1?n=t(n)?i>3?1:i===1?5:0:0:typeof n!="number"&&(n=n.toString().toLowerCase(),i>3?r={text:-1,editmodetext:0,double:1,float:2,decimal:3,long:4,ulong:5,int:6,uint:7,short:8,ushort:9,sbyte:10,byte:11}:i>1?r={date:0,editmodetext:1,text:2}:i>0&&(r={rawtext:0,rawtextwithrequiredprompts:1,rawtextwithallprompts:2,rawtextwithliterals:3,rawtextwithrequiredpromptsandliterals:4,alltext:5}),n=r[n],t(n)&&(n=-2)),n<-1?i>3?1:0:n},_fixMode:function(n){var e,u,o,h,f,r=this._type,i=this.options,s=this._value;if(this._dataMode=f=this._mode(i.dataMode,r),this._maxLen=i.maxLength,r>0&&r<4&&(i.promptChar||(i.promptChar="_"),i.padChar||(i.padChar=" "),i.emptyChar||(i.emptyChar=" "),r===1&&n&&(r=i.inputMask,this._setMask(r||"CCCCCCCCCC"))),r<2){n===3&&this._setVal(s);return}if(r<4){u=i.dateInputFormat=i.dateInputFormat||"date";i.yearShift||(i.yearShift=0);t(i.centuryThreshold)&&(i.centuryThreshold=29);t(i.minNumberOfDateFields)&&(i.minNumberOfDateFields=3);o=this._optVal(u+"Pattern")||u;u=i.dateDisplayFormat||u;h=this._optVal(u+"Pattern")||u||o;this._field0IDs=[];o=this._getMask(this._field0IDs,o,1);this._field1IDs=[];this._mask1=this._getMask(this._field1IDs,h);n===1&&(this._date=this._df(),this._isNull=!1);this._spinField=-1;this.d_s=10;this._setMask(o);n===1||this._isNull||this._setVal(this._date,1);return}f>3&&this._maxLen<1&&(e=3,f<6?e=19:f<8?e=10:f<10&&(e=5),this._field[0].maxLength=this._maxLen=e+(f+1)%2);n===3&&this._setVal(s,1);!n&&(s||s===0)&&this._setVal(s/this._prop(7))},_toNum:function(n,i,r){var s,e=null,o=null,h,l=this.options,u=n,c=0;return typeof n!="number"&&(n=f(n),c=n.length,u=parseFloat(this._txtAsNum(n))),isNaN(u)?u=null:isFinite(u)||(u=u===Number.NEGATIVE_INFINITY?-Number.MAX_VALUE:Number.MAX_VALUE),s=i?this._limits(u):u,r&&(s!==u||t(s,1)&&c>0)&&(r=t(u,1)?c===0?"null":"format":"limit",t(u,1)?c===0?(r="null",h=this._optVal("required",2)):(r="format",h=this._optVal("number",2)):(r="limit",i=null,e=l.minValue,t(e,1)&&(e=this._prop(10),t(e,1)||e!==s&&(e=null)),o=l.maxValue,t(o,1)&&(o=this._prop(11),t(o,1)||o!==s&&(o=null)),h=t(o,1)?this._optVal("min",2).replace("{0}",e.toString(10)):t(e,1)?this._optVal("max",2).replace("{0}",o.toString(10)):this._optVal("range",2).replace("{0}",e.toString(10)).replace("{1}",o.toString(10))),this._inv={value:s,text:n,reason:r,message:h}),s},_txtAsNum:function(n,t,i){var r,u=n.length;for(t||(t=this._prop(4)),i||(i=this._prop(3));u-->0;)r=this._jpn(n.charCodeAt(u),!0),r&&(n=n.replace(new RegExp(n.charAt(u),"g"),r));return n=n.replace("(",n.indexOf(i)<0?"-":"").replace(this._prop(2),"").replace(new RegExp(i,"g"),"-"),n=n.replace(t,"\x01"),r=n.indexOf(t),r>0&&(n=n.substring(0,r)),n=n.replace(/[^0-9\-eE\x01]/gm,"").replace("\x01","."),u=n.length,r=n.indexOf("-"),r>=0&&(r=n.indexOf("-",r+1),r+1<u&&r>0&&r>0&&n.toUpperCase().charAt(r-1)!=="E"&&(n=n.substring(0,r)),u=n.length,n.toUpperCase().indexOf("E")<0&&r+1===u&&(n="-"+n.substring(0,u-1))),n==="-"||n==="."?"":n},_ePow:function(n){var t=this.options.scientificFormat,i=t?t.length:0,r=i?t.charAt(0):null;return(r==="e"||r==="E")&&(i===1||i===2&&t.charAt(1)==="+")?n?t:r:null},_toTxtNum:function(n,i,r,u,e,o){var v,y,h,p,s,a=this._ePow(),k=0,w=0,l=-1,c=n,b=this._prop(8);if(t(r)){if(t(n,1))return"";c=n<0;c&&(n=-n);try{r=a?n.toString(10):n.toFixed(b)}catch(d){o=r=f(n)}return this._toTxtNum(c,i,r.toUpperCase(),t(u)?this._prop(3):u,t(e)?this._prop(4):e,o)}if(o&&(r=this._txtAsNum(r,e)),r=r.replace("+",""),s=r.indexOf("E"),s>0?(a=a?this._ePow(!i&&r.charAt(s+1)!=="-")+r.substring(s+1):r.substring(s),r=r.substring(0,s)):a="",s=r.length,t(c)){if(s===0)return i?r:"";c=this._isMinus(r.charCodeAt(0));c&&(r=r.substring(1),s--)}while(++l<s)if(p=r.charCodeAt(l),p<48||p>57){r=r.substring(0,l)+r.substring(l+1);s--;break}while(l<s){if(r.charCodeAt(s-1)!==48)break;r=r.substring(0,--s)}if(s=l,b>0&&s<r.length&&(w=r.length-s,r=r.substring(0,s)+e+r.substring(s),s+=e.length+b),s<r.length&&(r=r.substring(0,s)),h=r.replace(/0/g,""),c&&(!h||h===e)&&(c=!1),s=this._prop(9),s>0)for(w===0&&(r+=e);s-->w;)r+="0";if(i)return r+=a,c?u+r:r;for(v=this._prop(6),h=y=v.length>0?v[0]:0;h>0&&--l>0;)--h==0&&(r=r.substring(0,l)+this._prop(5)+r.substring(l),h=v[++k],t(h)||h<1?h=y:y=h);return n=this._prop(c?1:0).replace("n",r+a),n.replace("$",this._prop(2))},_prop:function(n){var e,i,o,r=this.options,u=this._type,f=this._dataMode;return n===13?(r=r.selectionOnFocus,r===-1||r==="select"?-1:r===0||r==="start"?0:r===1||r==="end"?1:2):n===12?r.maxLength>0?r.maxLength:this._maxLen:n===0?r.positivePattern||(u===6?this._optVal("percentPositivePattern"):u===5?this._optVal("currencyPositivePattern"):"n"):n===1?(i=r.negativePattern||this._optVal(u===6?"percentNegativePattern":u===5?"currencyNegativePattern":"numericNegativePattern"),i.replace("-",this._prop(3))):n===2?(i=r.symbol,!t(i))?i:u===6?this._optVal("percentSymbol"):u===5?this._optVal("currencySymbol"):"":n===3?this._optVal("negativeSign")||"-":n===4?r.decimalSeparator||this._optVal(u===6?"percentDecimalSeparator":u===5?"currencyDecimalSeparator":"numericDecimalSeparator"):n===5?(i=r.groupSeparator,!t(i))?i:this._optVal(u===6?"percentGroupSeparator":u===5?"currencyGroupSeparator":"numericGroupSeparator"):n===6?r.groups||this._optVal(u===6?"percentGroups":u===5?"currencyGroups":"numericGroups"):n===7?(i=r.displayFactor,!t(i))?i:u===6?this._optVal("percentDisplayFactor"):1:n===8?f>3?0:(i=r.maxDecimals,!t(i))?i:this._optVal(u===6?"percentMaxDecimals":u===5?"currencyMaxDecimals":"numericMaxDecimals"):n===9?f>3?0:(i=r.minDecimals,!t(i))?i:this._optVal(u===6?"percentMinDecimals":u===5?"currencyMinDecimals":"numericMinDecimals"):(e=n===10,e||n===11?(i=e?r.minValue:r.maxValue,u>3&&typeof i=="string"&&(i=parseFloat(i)),!t(i,1)||u<4||f<2||f===3||f>11)?i:f===2?e?-340282347e30:340282347e30:(i=127,o=f%2==0,!o&&e)?0:(f<6?i=0x8000000000000000:f<8?i=2147483647:f<10&&(i=32767),o?e?-(i+1):i:i*2+1):void 0)},_isMinus:function(n){return n===this._prop(3).charCodeAt(0)||n===45||n===40&&this._prop(1).indexOf("(")>=0||n===12540||n===65293||n===65288},destroy:function(){var t,i,f,e=this._element,o=this._field,s=this.element,u=this._buttons,r=u?u.length:0;if(i=e?e[0]:null,!o||!i)return this;for(this._stopTimer(),this._doDP(3),this._initValidator(1),this._listRemove(),o.unbind(this._evts),e.unbind(this._mEvts);r-->0;)u[r]&&u[r].unbind(this._touchEvts);f=u&&u[0]?u[0][0]:null;f&&f.parentNode===i&&i.removeChild(f);f=u&&u[1]?u[1][0].parentNode:null;f&&f.parentNode===i&&i.removeChild(f);o[0].parentNode===i&&i.removeChild(o[0]);this._selElem?e.remove():this._swap&&(t=i.parentNode,t.insertBefore(s[0],i),t.removeChild(i));t=this._oldCss;for(r in t)t.hasOwnProperty(r)&&s.css(r,t[r]);t=this._oldAttr;for(r in t)t.hasOwnProperty(r)&&(s[0][r]=t[r]);return s[0]._ig_oldCss=null,s=e=o=this._dp=this._buttons=this._field=this._element=null,this._evts=this._mEvts=this._touchEvts=this._oldAttr=this._oldCss=this._validator=null,n.Widget.prototype.destroy.apply(this,arguments),this}});n.extend(n.ui.igEditor,{version:"14.1.20141.2031"});n.ui.igEditor.setDefaultCulture=function(t){n.ig.regional=n.ig.regional||{};n.ig.regional.defaults=n.extend(n.ig._regional,typeof t=="string"?n.ig.regional[t]:t);(t==="en"||t==="en-US")&&(t="");n.datepicker&&n.datepicker.regional&&n.datepicker.regional[t]&&n.datepicker.setDefaults(n.datepicker.regional[t])};n.widget("ui.igTextEditor",n.ui.igEditor,{options:{textMode:null,maxLength:0,includeKeys:null,excludeKeys:null,toUpper:!1,toLower:!1,listMatchIgnoreCase:!0,listMatchOnly:!1,listMatchContains:!1,listAutoComplete:!1},_create:function(){n.ui.igEditor.prototype._create.apply(this,[0])}});n.widget("ui.igMaskEditor",n.ui.igEditor,{options:{includeKeys:null,excludeKeys:null,toUpper:!1,toLower:!1,listMatchIgnoreCase:!0,listMatchOnly:!1,listMatchContains:!1,listAutoComplete:!1,inputMask:"CCCCCCCCCC",promptChar:"_",padChar:" ",emptyChar:" ",dataMode:"alltext",hideMaskOnFocus:!1},_create:function(){n.ui.igEditor.prototype._create.apply(this,[1])}});n.widget("ui.igDateEditor",n.ui.igEditor,{options:{regional:null,spin1Field:!1,minValue:null,maxValue:null,dateDisplayFormat:null,dateInputFormat:null,promptChar:"_",dataMode:"date",minNumberOfDateFields:3,useLastGoodDate:!1,reduceDayOfInvalidDate:!0,hideMaskOnFocus:!1,centuryThreshold:29,enableUTCDates:!1,spinDelta:1,nullable:!0,yearShift:0},_create:function(){n.ui.igEditor.prototype._create.apply(this,[2])}});n.widget("ui.igDatePicker",n.ui.igDateEditor,{options:{button:"dropdown",focusOnDropDownOpen:null,datepickerOptions:null},_create:function(){n.ui.igEditor.prototype._create.apply(this,[3])}});n.widget("ui.igNumericEditor",n.ui.igEditor,{options:{regional:null,negativePattern:null,negativeSign:null,decimalSeparator:null,groupSeparator:null,groups:null,maxDecimals:null,minDecimals:null,minValue:null,maxValue:null,scientificFormat:null,nullValue:null,spinDelta:1,nullable:!0,maxLength:0,dataMode:"double"},_create:function(){n.ui.igEditor.prototype._create.apply(this,[4])}});n.widget("ui.igCurrencyEditor",n.ui.igNumericEditor,{options:{positivePattern:null,negativePattern:null,symbol:null},_create:function(){n.ui.igEditor.prototype._create.apply(this,[5])}});n.widget("ui.igPercentEditor",n.ui.igNumericEditor,{options:{positivePattern:null,negativePattern:null,symbol:null,displayFactor:null},_create:function(){n.ui.igEditor.prototype._create.apply(this,[6])}})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igTree",{_const:{dragCursorAt:{top:-10,left:-10}},css:{tree:"ui-widget ui-igtree",treeCollection:"ui-igtree-collection",treeNode:"ui-igtree-node",treeRoot:"ui-igtree-root ui-widget-content",treeRootNode:"ui-igtree-noderoot",nodeNoChildren:"ui-igtree-node-nochildren",parentNode:"ui-igtree-parentnode",collapseIcon:"ui-icon ui-icon-triangle-1-s",expandIcon:"ui-icon ui-icon-triangle-1-e",nodeExpander:"ui-igtree-expander",nodeNormal:"ui-state-default",nodeHightlight:"ui-state-highlight",nodeHovered:"ui-state-hover",nodeSelected:"ui-state-active",nodeActive:"ui-state-focus",checkbox:"ui-state-default ui-corner-all ui-igcheckbox-normal",checkboxOff:"ui-icon ui-icon-check ui-igcheckbox-normal-off",checkboxOn:"ui-icon ui-icon-check ui-igcheckbox-normal-on",checkboxPartial:"ui-icon ui-icon-check ui-state-disabled ui-igcheckbox-normal-on",invalidDropIndicator:"ui-widget ui-igtree-dropindicator ui-state-error ui-corner-all",dropIndicator:"ui-widget ui-igtree-dropindicator ui-state-highlight ui-corner-all",moveMarkupIcon:"ui-icon ui-icon-arrowthick-1-e",invalidMoveMarkupIcon:"ui-icon ui-icon-cancel",copyMarkupIcon:"ui-icon ui-icon-plus",insertLine:"ui-state-default ui-igtree-insertline"},options:{width:null,height:null,checkboxMode:"off",singleBranchExpand:!1,hotTracking:!0,parentNodeImageUrl:null,parentNodeImageClass:null,parentNodeImageTooltip:null,leafNodeImageUrl:null,leafNodeImageClass:null,leafNodeImageTooltip:null,animationDuration:200,pathSeparator:"_",dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,responseDataType:null,requestType:"GET",responseContentType:null,initialExpandDepth:-1,loadOnDemand:!1,bindings:{textKey:"Text",textXPath:"@Text",valueKey:"Value",valueXPath:"@Value",imageUrlKey:"ImageUrl",imageUrlXPath:"@ImageUrl",navigateUrlKey:"NavigateUrl",navigateUrlXPath:"@NavigateUrl",targetKey:"Target",expandedKey:"Expanded",primaryKey:null,nodeContentTemplate:null,childDataProperty:"Nodes",childDataXPath:"Children",searchFieldXPath:"Nodes",bindings:{}},defaultNodeTarget:"_self",dragAndDrop:!1,updateUrl:null,dragAndDropSettings:{allowDrop:!1,dragAndDropMode:"default",dragOpacity:.75,revert:!0,revertDuration:500,zIndex:10,dragStartDelay:200,expandOnDragOver:!0,expandDelay:1e3,helper:"default",customDropValidation:null,containment:!1,invalidMoveToMarkup:"<div><p><span><\/span><strong>{0}<\/strong><\/p><\/div>",moveToMarkup:"<div><p><span><\/span><strong>Move to<\/strong> {0}<\/p><\/div>",moveBetweenMarkup:"<div><p><span><\/span><strong>Move between<\/strong> {0} and {1}<\/p><\/div>",moveAfterMarkup:"<div><p><span><\/span><strong>Move after<\/strong> {0}<\/p><\/div>",moveBeforeMarkup:"<div><p><span><\/span><strong>Move before<\/strong> {0}<\/p><\/div>",copyToMarkup:"<div><p><span><\/span><strong>Copy to<\/strong> {0}<\/p><\/div>",copyBetweenMarkup:"<div><p><span><\/span><strong>Copy between<\/strong> {0} and {1}<\/p><\/div>",copyAfterMarkup:"<div><p><span><\/span><strong>Copy after<\/strong> {0}<\/p><\/div>",copyBeforeMarkup:"<div><p><span><\/span><strong>Copy before<\/strong> {0}<\/p><\/div>"}},events:{dataBinding:"dataBinding",dataBound:"dataBound",rendering:"rendering",rendered:"rendered",selectionChanging:"selectionChanging",selectionChanged:"selectionChanged",nodeCheckstateChanging:"nodeCheckstateChanging",nodeCheckstateChanged:"nodeCheckstateChanged",nodePopulating:"nodePopulating",nodePopulated:"nodePopulated",nodeCollapsing:"nodeCollapsing",nodeCollapsed:"nodeCollapsed",nodeExpanding:"nodeExpanding",nodeExpanded:"nodeExpanded",nodeClick:"nodeClick",nodeDoubleClick:"nodeDoubleClick",dragStart:"dragStart",drag:"drag",dragStop:"dragStop",nodeDropping:"nodeDropping",nodeDropped:"nodeDropped"},widget:function(){return this.element},_createWidget:function(){this.options.bindings=null;this.options.dragAndDropSettings.moveToMarkup="<div><p><span><\/span>"+n.ig.Tree.locale.moveTo+"<\/p><\/div>";this.options.dragAndDropSettings.moveBetweenMarkup="<div><p><span><\/span>"+n.ig.Tree.locale.moveBetween+"<\/p><\/div>";this.options.dragAndDropSettings.moveAfterMarkup="<div><p><span><\/span>"+n.ig.Tree.locale.moveAfter+"<\/p><\/div>";this.options.dragAndDropSettings.moveBeforeMarkup="<div><p><span><\/span>"+n.ig.Tree.locale.moveBefore+"<\/p><\/div>";this.options.dragAndDropSettings.copyToMarkup="<div><p><span><\/span>"+n.ig.Tree.locale.copyTo+"<\/p><\/div>";this.options.dragAndDropSettings.copyBetweenMarkup="<div><p><span><\/span>"+n.ig.Tree.locale.copyBetween+"<\/p><\/div>";this.options.dragAndDropSettings.copyAfterMarkup="<div><p><span><\/span>"+n.ig.Tree.locale.copyAfter+"<\/p><\/div>";this.options.dragAndDropSettings.copyBeforeMarkup="<div><p><span><\/span>"+n.ig.Tree.locale.copyBefore+"<\/p><\/div>";n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){var t=this.options;this.dataBind();this.element.addClass(this.css.tree);this._attachEvents();n.ig.util.isIE&&n.ig.util.browserVersion===7&&this.element.css("position")==="static"&&this.element.css("position","relative");t.width&&this.element.css("width",t.width);t.height&&this.element.css("height",t.height)},_setOption:function(t,i){var u=this.css,r,f=this.options[t];if(f!==i){n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"width":this.element.css("width",i);break;case"height":this.element.css("height",i);break;case"parentNodeImageUrl":if(r=this.element.find("img[data-role=parent-node-image]"),r.length>0)r.attr("src",i);else throw new Error(n.ig.Tree.locale.setOptionError+t);break;case"parentNodeImageTooltip":if(r=this.element.find("img[data-role=parent-node-image]"),r.length<=0&&(r=this.element.find("span[data-role=parent-node-image]")),r.length>0)r.attr("title",i);else throw new Error(n.ig.Tree.locale.setOptionError+t);break;case"parentNodeImageClass":if(r=this.element.find("span[data-role=parent-node-image]"),r.length>0)r.removeClass(),r.addClass(i);else throw new Error(n.ig.Tree.locale.setOptionError+t);break;case"leafNodeImageUrl":if(r=this.element.find("img[data-role=leaf-node-image]"),r.length>0)r.attr("src",i);else throw new Error(n.ig.Tree.locale.setOptionError+t);break;case"leafNodeImageTooltip":if(r=this.element.find("img[data-role=leaf-node-image]"),r.length<=0&&(r=this.element.find("span[data-role=leaf-node-image]")),r.length>0)r.attr("title",i);else throw new Error(n.ig.Tree.locale.setOptionError+t);break;case"leafNodeImageClass":if(r=this.element.find("span[data-role=leaf-node-image]"),r.length>0)r.removeClass(),r.addClass(i);else throw new Error(n.ig.Tree.locale.setOptionError+t);break;case"hotTracking":i?this.element.delegate("a",{mouseover:function(t){n(t.target).addClass(u.nodeHovered)},mouseout:function(t){n(t.target).removeClass(u.nodeHovered)}}):(this.element.undelegate("a","mouseover"),this.element.undelegate("a","mouseout"));break;case"checkboxMode":i.toLowerCase()==="off"?this._removeCheckboxes():f==="off"&&this._addCheckboxes();break;case"dataSource":this.dataBind();break;case"dragAndDrop":i?this._initDragAndDrop():this._destroyDragAndDrop();break;case"updateUrl":this.options.dataSource.root().settings.updateUrl=i;break;case"bindings":case"loadOnDemand":case"pathSeparator":case"initialExpandDepth":case"defaultNodeTarget":throw new Error(n.ig.Tree.locale.setOptionError+t);}}},_removeCheckboxes:function(){this.element.find("span[data-role=checkbox]").remove()},_addCheckboxes:function(){var t=this;this.element.find("li[data-role=node]").each(function(){var i=n(this);i.children("span[data-role=expander]").length>0?i.children("span[data-role=expander]").after(t._renderCheckbox()):i.prepend(t._renderCheckbox())})},_initDataOptions:function(){var t,i,r;return r=this._initDataSourceSchema(),this.options.dataSource||this.options.dataSourceUrl?!this.options.dataSource&&this.options.dataSourceUrl?this.options.dataSource=this.options.dataSourceUrl:n.type(this.options.dataSource)!=="object"||typeof this.options.dataSource._encodeHierarchicalUrlParams=="function"||typeof this.options.dataSource._xmlToArray=="function"||this.options.dataSourceType||(this.options.dataSource=[this.options.dataSource]):this.element.is("ul")?this.options.dataSource=this.element[0]:(i=this.element.children("ul"),this.options.dataSource=i[0]),t={callback:this._constructFromData,callee:this,dataSource:this.options.dataSource,requestType:this.options.requestType,responseContentType:this.options.responseContentType,defaultChildrenDataProperty:this.options.bindings.childDataProperty,responseDataType:this.options.responseDataType,primaryKey:this.options.primaryKey,localSchemaTransform:this.options.dataSourceType&&this.options.dataSourceType==="xml"?!0:!1,schema:r,updateUrl:this.options.updateUrl},this.options.dataSourceType&&(t.type=this.options.dataSourceType),this.options.responseDataKey&&(t.responseDataKey=this.options.responseDataKey),t},_initDataSourceSchema:function(){var t={},i=this.options,n=i.bindings;return n===null?(i.bindings={},t.text={name:"Text",type:"string"},i.bindings.textKey="Text",t.value={name:"Value",type:"string"},i.bindings.valueKey="Value",t.imageUrl={name:"ImageUrl",type:"string"},i.bindings.imageUrlKey="ImageUrl",t.navigateUrl={name:"NavigateUrl",type:"string"},i.bindings.navigateUrlKey="NavigateUrl",t.childData={name:"Nodes",type:"object"},i.bindings.childDataProperty="Nodes",t.target={name:"Target",type:"string"},i.bindings.targetKey="Target",n=i.bindings):i.dataSourceType==="xml"&&n.searchFieldXPath&&(t.searchField=n.searchFieldXPath),t.fields=[],n.textKey&&(t.fields.push({name:n.textKey,type:"string",xpath:n.textXPath}),t.textKey=n.textKey),n.valueKey&&(t.fields.push({name:n.valueKey,type:"string",xpath:n.valueXPath}),t.valueKey=n.valueKey),n.navigateUrlKey&&(t.fields.push({name:n.navigateUrlKey,type:"string",xpath:n.navigateUrlXPath}),t.navigateUrlKey=n.navigateUrlKey),n.imageUrlKey&&(t.fields.push({name:n.imageUrlKey,type:"string",xpath:n.imageUrlXPath}),t.imageUrlKey=n.imageUrlKey),n.targetKey&&(t.fields.push({name:n.targetKey,type:"string"}),t.targetKey=n.targetKey),n.expandedKey&&(t.fields.push({name:"Expanded",type:"boolean"}),t.expandedKey=n.expandedKey),n.primaryKey&&(t.fields.push({name:n.primaryKey,type:"string"}),t.primaryKey=n.primaryKey),n.childDataProperty&&(t.fields.push({name:n.childDataProperty,type:"object",xpath:n.childDataXPath}),t.childDataProperty=n.childDataProperty),!t.searchField&&i.responseDataKey&&(t.searchField=i.responseDataKey),t},_initDataSource:function(t){var i=this.options;i.dataSource&&typeof i.dataSource._encodeHierarchicalUrlParams=="function"||(i.dataSource=new n.ig.HierarchicalDataSource(t))},_helper:null,_insertLine:{html:null},_originalHelper:{html:null},_sourceNode:{data:null,element:null,owner:null},_validationObject:{valid:!0,dropAfter:!0,expandTimeout:null,target:null},_helperDirty:!1,_dropAfter:!0,_initDragOptions:function(){var t=this,i=t.options.dragAndDropSettings,r=i.helper==="default"?function(i){var u=n(i.target).closest("li[data-role=node]"),r=n(t.options.dragAndDropSettings.invalidMoveToMarkup.replace("{0}",u.children("a").text()));return r.addClass(t.css.invalidDropIndicator).find("span").addClass(t.css.invalidMoveMarkupIcon),r}:i.helper;return{revert:i.revert?"invalid":!1,opacity:i.dragOpacity,zIndex:i.zIndex,cursorAt:this._const.dragCursorAt,helper:r,revertDuration:i.revertDuration,appendTo:t.element,delay:i.dragStartDelay,containment:i.containment,start:function(i,r){var u=t.nodeFromElement(n(this)),f;if(f=t._triggerDragStart(i,r,u.element),f)t._originalHelper.html=r.helper.html(),t._sourceNode.data=n.extend(!1,{},u.data),t._sourceNode.owner=t,t._sourceNode.element=n(this);else return!1},drag:function(n,i){var r=t._triggerDrag(n,i,t._sourceNode.element);if(r)t._performDrag(n,i);else return t._resetSourceNode(),t._resetValidationObject(),!1},stop:function(i,r){t._triggerDragStop(i,r);n(document).find("div[data-role=insert-line]").remove();t._helperDirty=!1;t._resetSourceNode();t._resetValidationObject()}}},_performDrag:function(t,i){var r=n(t.originalEvent.target),u,f=t.ctrlKey&&this.options.dragAndDropSettings.dragAndDropMode==="default"||this.options.dragAndDropSettings.dragAndDropMode==="copy",e,o,s=this;r.is("div[data-role=insert-line]")||(this._validationObject.valid=this._accept(this._sourceNode.element,r),n(document).find("div[data-role=insert-line]").remove(),this.options.dragAndDropSettings.expandOnDragOver&&((r.is("a")||r.closest("a").parent().is("li[data-role=node]"))&&this._validationObject.target!==r.closest("li[data-role=node]")?(clearTimeout(this._validationObject.expandTimeout),this._validationObject.target=r.closest("li[data-role=node]"),this._validationObject.target.hasClass("ui-igtree-parentnode")&&(this._validationObject.expandTimeout=setTimeout(function(){s.expand(s._validationObject.target)},this.options.dragAndDropSettings.expandDelay))):(clearTimeout(this._validationObject.expandTimeout),this._validationObject.expandTimeout=null,this._validationObject.target=null)),(r.is("a")||r.closest("a").parent().is("li[data-role=node]"))&&this._validationObject.valid?(f?(u=n(this.options.dragAndDropSettings.copyToMarkup.replace("{0}",r.text())),u.find("span").addClass(this.css.copyMarkupIcon)):(u=n(this.options.dragAndDropSettings.moveToMarkup.replace("{0}",r.text())),u.find("span").addClass(this.css.moveMarkupIcon)),this._helper=u.html(),i.helper.removeClass(this.css.invalidDropIndicator).addClass(this.css.dropIndicator).html(this._helper),this._helperDirty=!0):r.is("li[data-role=node]")&&this._validationObject.valid?(e=r.offset().top+r.height()/2,o=i.offset.top+this._const.dragCursorAt.top,o>e?(this._validationObject.dropAfter=!0,f?r.next("li[data-role=node]").length>0?(u=n(this.options.dragAndDropSettings.copyBetweenMarkup.replace("{0}",r.children("a").text()).replace("{1}",r.next("li[data-role=node]").children("a").text())),u.find("span").addClass(this.css.copyMarkupIcon)):(u=n(this.options.dragAndDropSettings.copyAfterMarkup.replace("{0}",r.children("a").text())),u.find("span").addClass(this.css.copyMarkupIcon)):r.next("li[data-role=node]").length>0?(u=n(this.options.dragAndDropSettings.moveBetweenMarkup.replace("{0}",r.children("a").text()).replace("{1}",r.next("li[data-role=node]").children("a").text())),u.find("span").addClass(this.css.moveMarkupIcon)):(u=n(this.options.dragAndDropSettings.moveAfterMarkup.replace("{0}",r.children("a").text())),u.find("span").addClass(this.css.moveMarkupIcon)),n(this._insertLine.html).appendTo(r),this._helper=u.html(),i.helper.removeClass(this.css.invalidDropIndicator).addClass(this.css.dropIndicator).html(this._helper)):(this._validationObject.dropAfter=!1,f?r.prev("li[data-role=node]").length>0?(u=n(this.options.dragAndDropSettings.copyBetweenMarkup.replace("{0}",r.children("a").text()).replace("{1}",r.prev("li[data-role=node]").children("a").text())),u.find("span").addClass(this.css.copyMarkupIcon)):(u=n(this.options.dragAndDropSettings.copyBeforeMarkup.replace("{0}",r.children("a").text())),u.find("span").addClass(this.css.copyMarkupIcon)):r.prev("li[data-role=node]").length>0?(u=n(this.options.dragAndDropSettings.moveBetweenMarkup.replace("{0}",r.prev("li[data-role=node]").children("a").text()).replace("{1}",r.children("a").text())),u.find("span").addClass(this.css.moveMarkupIcon)):(u=n(this.options.dragAndDropSettings.moveBeforeMarkup.replace("{0}",r.children("a").text())),u.find("span").addClass(this.css.moveMarkupIcon)),r.index()===0?n(this._insertLine.html).prependTo(r).css("padding-bottom","0.1em"):n(this._insertLine.html).appendTo(r.prev()),this._helper=u.html(),i.helper.removeClass(this.css.invalidDropIndicator).addClass(this.css.dropIndicator).html(this._helper)),this._helperDirty=!0):r.is(":ui-igTree")?(f?(u=n(this.options.dragAndDropSettings.copyToMarkup.replace("{0}",r.text())),u.find("span").addClass(this.css.copyMarkupIcon)):(u=n(this.options.dragAndDropSettings.moveToMarkup.replace("{0}",r.text())),u.find("span").addClass(this.css.moveMarkupIcon)),this._helper=u.html(),i.helper.removeClass(this.css.invalidDropIndicator).addClass(this.css.dropIndicator).html(this._helper),this._helperDirty=!0):(n(document).find("div[data-role=insert-line]").remove(),this._helperDirty&&(this._helper=null,i.helper.removeClass(this.css.dropIndicator).addClass(this.css.invalidDropIndicator).html(this._originalHelper.html),this._helperDirty=!1)))},_resetSourceNode:function(){this._originalHelper.html=null;this._sourceNode.data=null;this._sourceNode.owner=null;this._sourceNode.element=null},_resetValidationObject:function(){this._validationObject.valid=!0;this._validationObject.dropAfter=!0;clearTimeout(this._validationObject.expandTimeout);this._validationObject.expandTimeout=null;this._validationObject.target=null},_initDropOptions:function(){var n=this;return{tolerance:"pointer",greedy:!0,drop:function(t,i){return n._sourceNode.element===null&&n._sourceNode.owner===null?!1:n._performDrop(t,i)},accept:function(){return n._validationObject.valid}}},_performDrop:function(t,i){var r=this,f,u=n(t.originalEvent.target),e;if(u.is("div[data-role=insert-line]")&&(u=u.closest("li[data-role=node]")),r.element.find("div[data-role=insert-line]").remove(),e=r._triggerNodeDropping(t,i,u.closest("li[data-role=node]"),u.next("li[data-role=node]").length>0||!r._validationObject.dropAfter?u.index()+(r._validationObject.dropAfter?1:0):u.index()),e){if(u.is("a")||u.closest("a").parent().is("li[data-role=node]")){u=u.closest("li[data-role=node]");switch(r.options.dragAndDropSettings.dragAndDropMode){case"move":r.addNode(r._sourceNode.data,u);r._sourceNode.owner.removeAt(r._sourceNode.element.attr("data-path"));break;case"copy":r.addNode(r._sourceNode.data,u);break;default:t.ctrlKey?r.addNode(r._sourceNode.data,u):(r.addNode(r._sourceNode.data,u),r._sourceNode.owner.removeAt(r._sourceNode.element.attr("data-path")))}}else if(u.is("li")){f=r.parentNode(u);switch(r.options.dragAndDropSettings.dragAndDropMode){case"move":r.addNode(r._sourceNode.data,f,u.next("li[data-role=node]").length>0||!r._validationObject.dropAfter?u.index()+(r._validationObject.dropAfter?1:0):null);r._sourceNode.element.attr("data-path",r._sourceNode.element.attr("data-path")+"_remove");r._sourceNode.owner.removeAt(r._sourceNode.element.attr("data-path"));break;case"copy":r.addNode(r._sourceNode.data,f,u.next("li[data-role=node]").length>0||!r._validationObject.dropAfter?u.index()+(r._validationObject.dropAfter?1:0):null);break;default:t.ctrlKey?r.addNode(r._sourceNode.data,f,u.next("li[data-role=node]").length>0||!r._validationObject.dropAfter?u.index()+(r._validationObject.dropAfter?1:0):null):(r.addNode(r._sourceNode.data,f,u.next("li[data-role=node]").length>0||!r._validationObject.dropAfter?u.index()+(r._validationObject.dropAfter?1:0):null),r._sourceNode.element.attr("data-path",r._sourceNode.element.attr("data-path")+"_remove"),r._sourceNode.owner.removeAt(r._sourceNode.element.attr("data-path")))}}else if(u.is(":ui-igTree"))switch(r.options.dragAndDropSettings.dragAndDropMode){case"move":r.addNode(r._sourceNode.data);r._sourceNode.owner.removeAt(r._sourceNode.element.attr("data-path"));break;case"copy":r.addNode(r._sourceNode.data);break;default:t.ctrlKey?r.addNode(r._sourceNode.data):(r.addNode(r._sourceNode.data),r._sourceNode.owner.removeAt(r._sourceNode.element.attr("data-path")))}r._triggerNodeDropped(t,i,u)}else return!1},_accept:function(n,t){var r=!0,u=t.closest("li[data-role=node]"),e=n.attr("data-path"),i=t.closest(".ui-widget.ui-igtree"),o=this._retrieveCurrentDepthBinding(parseInt(this._sourceNode.element.closest("ul").attr("data-depth"),10)),f;return f=t.is("a")&&t.parent().is("li[data-role=node]")||t.closest("a").parent().is("li[data-role=node]")?i.data("igTree")._retrieveCurrentDepthBinding(parseInt(t.closest("ul").attr("data-depth"),10)+1):t.is("li[data-role=node]")?i.data("igTree")._retrieveCurrentDepthBinding(parseInt(t.closest("ul").attr("data-depth"),10)):t.is(":ui-igTree")?i.data("igTree")._retrieveCurrentDepthBinding(0):!1,u.length>0&&(u.attr("data-path")===e||u.attr("data-path").indexOf(e)===0)&&this===i.data("igTree")?r=!1:this===i.data("igTree")||i.igTree("option","dragAndDropSettings").allowDrop?typeof i.igTree("option","dragAndDropSettings").customDropValidation=="function"&&(r=i.igTree("option","dragAndDropSettings").customDropValidation.apply(t,[n])):r=!1,o&&f&&r&&(r=this._validateBindings(o,f)),r},_validateBindings:function(n,t){var i=!0;return t.hasOwnProperty("primaryKey")&&(n.hasOwnProperty("primaryKey")&&n.primaryKey===t.primaryKey||(i=!1)),t.textKey!==n.textKey&&(i=!1),t.hasOwnProperty("valueKey")&&n.hasOwnProperty("valueKey")&&t.valueKey!==n.valueKey&&(i=!1),t.hasOwnProperty("childDataProperty")&&n.hasOwnProperty("childDataProperty")&&t.childDataProperty!==n.childDataProperty&&(i=!1),i},_initDragAndDrop:function(t){var i=this._initDragOptions(),r=this._initDropOptions();this._insertLine.html||(this._insertLine.html='<div data-role="insert-line" class="'+this.css.insertLine+'"><\/div>');t?(t.draggable(i),t.find("li[data-role=node]").draggable(i)):(this.element.find("li[data-role=node]").draggable(i),this.element.droppable(r),this.element.delegate("a","mousedown",function(){n(this).focus()}))},_destroyDragAndDrop:function(){this.element.find("li[data-role=node]").draggable("destroy");this.element.droppable("destroy");this.element.undelegate("a","mousedown")},_constructFromData:function(){var t,i=this.options.dataSource._rootds.data();this._triggerDataBound(i);this._triggerRendering(i);this.element.attr("data-scroll",!0);this.element.is("ul")?(this.element.empty(),t=this.element,t.addClass(this.css.treeCollection).addClass(this.css.treeRoot).attr("data-depth",0),t.html(this._initChildrenRecursively("",i)),this._triggerRendered()):(this.element.empty(),t='<ul class="'+this.css.treeCollection+" "+this.css.treeRoot+'" data-depth="0">',t+=this._initChildrenRecursively("",i),t+="<\/ul>",t=n(t),t.appendTo(this.element),this._triggerRendered());this.options.dragAndDrop&&(this._initDragAndDrop(),typeof this.options.dragAndDropSettings.customDropValidation=="string"&&window[this.options.dragAndDropSettings.customDropValidation]&&typeof window[this.options.dragAndDropSettings.customDropValidation]=="function"&&(this.options.dragAndDropSettings.customDropValidation=window[this.options.dragAndDropSettings.customDropValidation]))},_attachEvents:function(){var t=this,r=this.css,u,i;this.element.delegate("span[data-role=expander]","click",function(i){t.toggle(n(i.target).closest("li[data-role=node]"),i)});this.options.hotTracking?this.element.delegate("a",{click:function(r){i=n(r.target).closest("a");u=t._triggerNodeClick(r,i.parent());u?(t.select(i.parent(),r),n.ig.util.isWebKit&&i.focus()):r.preventDefault()},dblclick:function(i){i.preventDefault();t._triggerNodeDoubleClick(i,n(i.target.parentNode))},keydown:function(n){t._kbNavigation(n)},focus:function(n){t._focusNode(n)},blur:function(n){t._blurNode(n)},mouseover:function(t){i=n(t.target).closest("a");i.addClass(r.nodeHovered)},mouseout:function(t){i=n(t.target).closest("a");i.removeClass(r.nodeHovered)}}):this.element.delegate("a",{click:function(r){i=n(r.target).closest("a");u=t._triggerNodeClick(r,i.parent());u?(t.select(i.parent(),r),n.ig.util.isWebKit&&i.focus()):r.preventDefault()},dblclick:function(i){i.preventDefault();t._triggerNodeDoubleClick(i,n(i.target.parentNode))},keydown:function(n){t._kbNavigation(n)},focus:function(n){t._focusNode(n)},blur:function(n){t._blurNode(n)}});this.element.delegate("span[data-role=checkbox] > span",{click:function(i){t.toggleCheckstate(n(i.target).closest("li[data-role=node]"),i)},mouseover:function(t){n(t.target).closest("span[data-role=checkbox]").addClass(r.nodeHovered)},mouseout:function(t){n(t.target).closest("span[data-role=checkbox]").removeClass(r.nodeHovered)}})},_initChildrenRecursively:function(n,t,i,r,u){var c,s=this.options,l,f,a,v,y=[],e=0,h,o;for(u||(u=0),i||(i=0),f=this._retrieveCurrentDepthBinding(i),!t.hasOwnProperty("length")&&t.hasOwnProperty(f.textKey)&&(t=[t]),e;e<t.length;e++)c="",a="",l=n.length<=0?f.hasOwnProperty("primaryKey")&&t[e].hasOwnProperty(f.primaryKey)?typeof t[e][f.primaryKey]=="function"?t[e][f.primaryKey]():t[e][f.primaryKey]:e+u:f.hasOwnProperty("primaryKey")&&t[e].hasOwnProperty(f.primaryKey)?n+s.pathSeparator+(typeof t[e][f.primaryKey]=="function"?t[e][f.primaryKey]():t[e][f.primaryKey]):n+s.pathSeparator+(e+u),f.hasOwnProperty("valueKey")&&t[e].hasOwnProperty(f.valueKey)&&(a=typeof t[e][f.valueKey]=="function"?t[e][f.valueKey]():t[e][f.valueKey]),h='<li class="'+this._buildNodeCssString(t[e],i,f)+'" data-path="'+l+'" data-value="'+a+'" data-role="node">',o=t[e][f.childDataProperty],typeof o=="function"&&(o=o()),(o&&o.length>0||o&&s.loadOnDemand)&&(i<=s.initialExpandDepth&&!s.loadOnDemand||f.hasOwnProperty("expandedKey")&&t[e].hasOwnProperty(f.expandedKey)&&t[e][f.expandedKey]?(h+=this._renderExpanderImage(!0),v="block"):(h+=this._renderExpanderImage(!1),v="none")),s.checkboxMode&&s.checkboxMode.toLowerCase()!=="off"&&(h+=this._renderCheckbox(r)),h+=this._renderNodeImage(t[e],f),h+=f.nodeContentTemplate?this._renderNodeTemplate(t[e],f):this._renderAnchor(t[e],f),(o&&o.length>0||o&&s.loadOnDemand)&&(c='<ul style="display: '+v+'" data-depth="'+(i+1)+'"',c+=o.length>0&&!s.loadOnDemand?">"+this._initChildrenRecursively(l,o,i+1,r):' data-populated="false">',c+="<\/ul>"),h+=c,h+="<\/li>",y.push(h);return y.join("")},_buildNodeCssString:function(n,t,i){var u=this.css,f=u.treeNode,r;return t===0&&(f+=" "+u.treeRootNode),r=n[i.childDataProperty],typeof r=="function"&&(r=r()),f+(r&&r.length>0||r&&this.options.loadOnDemand?" "+u.parentNode:" "+u.nodeNoChildren)},_retrieveCurrentDepthBinding:function(n){var t=this.options.bindings,i=0;for(i;i<n;i++)if(t.hasOwnProperty("bindings"))t=t.bindings;else break;return t},_renderExpanderImage:function(n){var i=this,t=i.css;return n?'<span data-role="expander" data-exp="true" class="'+t.collapseIcon+" "+t.nodeExpander+'"><\/span>':'<span data-role="expander" data-exp="false" class="'+t.expandIcon+" "+t.nodeExpander+'"><\/span>'},_renderAnchor:function(n,t){var i,r,u;return i=t.hasOwnProperty("navigateUrlKey")&&n[t.navigateUrlKey]?typeof n[t.navigateUrlKey]=="function"?n[t.navigateUrlKey]():n[t.navigateUrlKey].length<=0?"#":n[t.navigateUrlKey]:"#",r=t.targetKey&&t.targetKey.length>0&&n.hasOwnProperty(t.targetKey)?n[t.targetKey]:this.options.defaultNodeTarget,u=typeof n[t.textKey]=="function"?n[t.textKey]():n[t.textKey],'<a href="'+i+'" target="'+r+'">'+u+"<\/a>"},_renderNodeTemplate:function(t,i){var r=n("<div><\/div>"),u,f,e,o=i.nodeContentTemplate;return f=i.hasOwnProperty("navigateUrlKey")&&t[i.navigateUrlKey]?typeof t[i.navigateUrlKey]=="function"?t[i.navigateUrlKey]():t[i.navigateUrlKey].length<=0?"#":t[i.navigateUrlKey]:"#",e=i.targetKey&&i.targetKey.length>0&&t.hasOwnProperty(i.targetKey)?t[i.targetKey]:this.options.defaultNodeTarget,typeof n.ig.tmpl=="function"?(r.html(n.ig.tmpl(o,t)),r.children("a").length<=0?u='<a href="'+f+'" target="'+e+'">'+r.html()+"<\/a>":r.children("a").attr("href")?u=r.html():(r.children("a").attr({href:f,target:e}),u=r.html())):(n.tmpl(o,t).appendTo(r),r.children("a").length<=0?u='<a href="'+f+'" target="'+e+'">'+r.html()+"<\/a>":r.children("a").attr("href")?u=r.html():(r.children("a").attr({href:f,target:e}),u=r.html())),u},_renderCheckbox:function(n){var i=this,t=i.css;return'<span data-chk="'+(n?"on":"off")+'" data-role="checkbox" class="'+t.checkbox+'"><span class="'+(n?t.checkboxOn:t.checkboxOff)+'"><\/span><\/span>'},_renderNodeImage:function(n,t){var i=this.options,u,r="",f;return u=n[t.childDataProperty]&&n[t.childDataProperty].length>0||n[t.childDataProperty]&&i.loadOnDemand,t.hasOwnProperty("imageUrlKey")&&n.hasOwnProperty(t.imageUrlKey)&&(typeof n[t.imageUrlKey]=="function"?(f=n[t.imageUrlKey](),f&&f.length>0&&(r='<img src="'+f+'" alt="error" data-role="node-image" />')):n[t.imageUrlKey].length>0&&(r='<img src="'+n[t.imageUrlKey]+'" alt="error" data-role="node-image" />')),i.parentNodeImageUrl&&u?r+='<img src="'+i.parentNodeImageUrl+'" alt="error" title="'+(i.parentNodeImageTooltip!==null?i.parentNodeImageTooltip:"")+'" data-role="parent-node-image" />':i.parentNodeImageClass&&u?r+='<span title="'+(i.parentNodeImageTooltip!==null?i.parentNodeImageTooltip:"")+'" class="'+i.parentNodeImageClass+'" data-role="parent-node-image"><\/span>':!u&&i.leafNodeImageUrl?r+='<img src="'+i.leafNodeImageUrl+'" alt="error" title="'+(i.leafNodeImageTooltip!==null?i.leafNodeImageTooltip:"")+'" data-role="leaf-node-image" />':!u&&i.leafNodeImageClass&&(r+='<span title="'+(i.leafNodeImageTooltip!==null?i.leafNodeImageTooltip:"")+'" class="'+i.leafNodeImageClass+'" data-role="leaf-node-image"><\/span>'),r},_focusNode:function(t){n(t.target).addClass(this.css.nodeActive)},_blurNode:function(t){n(t.target).removeClass(this.css.nodeActive)},_kbNavigation:function(t){var f=this.options,e=this.css,i=n(t.target.parentNode),r,o=i.index(),u;if(t.keyCode===n.ui.keyCode.UP){if(r=this._nextVisibleNodeUp(i),!r)return;t.ctrlKey?(i.children("a").blur(),r.children("a").focus()):t.shiftKey&&f.multipleSelection?f=this.options:(i.children("a").blur(),r.children("a").focus(),this.select(r,null));t.preventDefault()}else if(t.keyCode===n.ui.keyCode.DOWN){if(r=this._nextVisibleNodeDown(i,o),!r)return;t.ctrlKey?(i.children("a").blur(),r.children("a").focus()):t.shiftKey&&f.multipleSelection?f=this.options:(i.children("a").blur(),r.children("a").focus(),this.select(r,null));t.preventDefault()}else t.keyCode===n.ui.keyCode.RIGHT?i.children("ul").length>0&&(u=i.children("."+e.nodeExpander),u.attr("data-exp")&&u.attr("data-exp")!=="false"?(r=i.find("ul > li:first"),r.length>0&&(t.ctrlKey?(i.children("a").blur(),r.children("a").focus()):t.shiftKey&&f.multipleSelection?f=this.options:(i.children("a").blur(),r.children("a").focus(),this.select(r,null)))):this.toggle(i,null)):t.keyCode===n.ui.keyCode.LEFT?(u=i.children("."+e.nodeExpander),u.attr("data-exp")&&u.attr("data-exp")!=="false"?this.toggle(i,null):i.parent().parent().is("li")&&(r=i.parent().parent(),t.ctrlKey?(i.children("a").blur(),r.children("a").focus()):t.shiftKey&&f.multipleSelection?f=this.options:(i.children("a").blur(),r.children("a").focus(),this.select(r,null)))):t.keyCode===n.ui.keyCode.NUMPAD_ADD?i.children("ul").length>0&&(u=i.children("."+e.nodeExpander),u.attr("data-exp")&&u.attr("data-exp")!=="false"||this.toggle(i,null)):t.keyCode===n.ui.keyCode.NUMPAD_SUBTRACT?i.children("ul").length>0&&(u=i.children("."+e.nodeExpander),u.attr("data-exp")&&u.attr("data-exp")!=="false"&&this.toggle(i,null)):t.keyCode===n.ui.keyCode.SPACE?f.checkboxMode&&f.checkboxMode.toLowerCase()!=="off"&&(this.toggleCheckstate(i,null),t.preventDefault(),t.stopPropagation()):t.keyCode===n.ui.keyCode.HOME?(i.children("a").blur(),i=this.element.find("li:first"),i.length>0&&(i.children("a").focus(),this.select(i)),t.preventDefault()):t.keyCode===n.ui.keyCode.END&&(i.children("a").blur(),i=this._lastVisibleNode(),i&&(i.children("a").focus(),this.select(i)),t.preventDefault())},_nextVisibleNodeDown:function(n,t){var r=n.children("."+this.css.nodeExpander),i,u=t,f=null;if(r.length>0&&r.attr("data-exp")&&r.attr("data-exp")!=="false"&&n.children("ul").children("li:first").length>0)return n.children("ul").children("li:first");if(u===n.siblings().length)for(i=n.parent().parent();i.is("li");){if(u=i.index(),u!==i.siblings().length){f=i.next();break}i=i.parent().parent()}else f=n.next();return f},_nextVisibleNodeUp:function(n){var t=n.prev(),i,r=null;if(t.length<=0)n.parent().parent().is("li")&&(r=n.parent().parent());else while(t.length>0){if(i=t.children("."+this.css.nodeExpander),t.children("ul").children("li").length<=0||!i.attr("data-exp")||i.attr("data-exp")==="false"){r=t;break}t=t.children("ul").children("li:last")}return r},_lastVisibleNode:function(){var n=this.element.is("ul")?this.element.children("li:last"):this.element.children("ul").children("li:last"),t,i;if(n.length<=0)i=null;else while(n.length>0){if(t=n.children("."+this.css.nodeExpander),n.children("ul").children("li").length<=0||!t.attr("data-exp")||t.attr("data-exp")==="false"){i=n;break}n=n.children("ul").children("li:last")}return i},_populatingNode:null,_populateNodeData:function(t,i,r){if(!t)throw new Error(n.ig.Tree.locale.errorOnRequest+i);var u=this._populatingNode.ul,f=this.nodeDataFor(this._populatingNode.node.attr("data-path")),h=u.attr("data-depth"),e=this._retrieveCurrentDepthBinding(h-1),s,o=r.data();this.options.checkboxMode.toLowerCase()==="tristate"&&(s=this.isChecked(this._populatingNode.node));u.children('li[data-role="loading"]').remove();f[e.childDataProperty]=f[e.childDataProperty]&&f[e.childDataProperty].length?f[e.childDataProperty].concat(o):o;this._triggerNodePopulated(null,this._populatingNode.node);this._triggerRendering(o);u.append(this._initChildrenRecursively(this._populatingNode.node.attr("data-path"),o,parseInt(u.attr("data-depth"),10),s));u.attr("data-populated",!0);this.options.dragAndDrop&&this._initDragAndDrop(u);this._triggerRendered();this.toggle(this._populatingNode.node);this._populatingNode.indicator.hide();this._populatingNode.indicator.destroy();this._populatingNode=null;this._loadRequest()},_prepareRequest:function(n,t){var h=this.options,r,f,e,i,o,u,s;if(this._populatingNode===null&&(s=this._triggerNodePopulating(t,n),s)){if(r=this._buildRequestString(n),o=this._retrieveCurrentDepthBinding(parseInt(n.children("ul").attr("data-depth"),10)),!r)return;f=r[0];e=r[1];i=this.nodeDataFor(n.attr("data-path"));u=this._retrieveCurrentDepthBinding(parseInt(n.children("ul").attr("data-depth"),10)-1);i.hasOwnProperty(u.childDataProperty)&&(i=i[u.childDataProperty]);i&&i.__deferred&&i.__deferred.uri?this._executeODataRequest(n,i):i&&i.length>0&&!h.dataSourceUrl?this._renderOnDemand(n,i):this._executeUrlRequest(n,o,f,e)}},_executeODataRequest:function(t,i){var f,r,u,o=this.options,e;f=new n.ig.JSONPDataSource({dataSource:i.__deferred.uri+"?$format=json&$callback=?",responseDataKey:o.responseDataKey});r=t.children("ul");e=n('<li style="width: 20px" data-role="loading">&nbsp;<\/li>').appendTo(r);r.show();u=e.igLoading({includeVerticalOffset:!1}).data("igLoading").indicator();u.show();this._populatingNode={ul:r,node:t,indicator:u};f.dataBind(this._populateNodeData,this)},_renderOnDemand:function(n,t){var i,r;i=n.children("ul");this.options.checkboxMode.toLowerCase()==="tristate"&&(r=this.isChecked(n));this._triggerNodePopulated(null,n);this._triggerRendering(t);i.html(this._initChildrenRecursively(n.attr("data-path"),t,parseInt(i.attr("data-depth"),10),r));i.attr("data-populated",!0);this.options.dragAndDrop&&this._initDragAndDrop(i);this._triggerRendered();this.toggle(n);this._loadRequest()},_executeUrlRequest:function(t,i,r,u){var f=this.options,e,o,s,h;if(f.dataSourceUrl&&f.dataSourceUrl.lastIndexOf("?")===-1)f.dataSourceUrl+="?";else if(!f.dataSourceUrl)throw new Error(n.ig.Tree.locale.noDataSourceUrl);s=new n.ig.DataSource({dataSource:f.dataSourceUrl+"&"+this._encodeUrlPath(r,u)+"&"+this._encodeBinding(i)+"&depth="+t.parent().attr("data-depth"),dataSourceType:"remoteUrl"});e=t.children("ul");h=n('<li style="width: 20px" data-role="loading">&nbsp;<\/li>').appendTo(e);e.show();o=h.igLoading({includeVerticalOffset:!1}).data("igLoading").indicator();o.show();this._populatingNode={ul:e,node:t,indicator:o};s.dataBind(this._populateNodeData,this)},_buildRequestString:function(n){for(var r="",i="",t=this.options.bindings,f=n.attr("data-path").split(this.options.pathSeparator),u=0;u<f.length;u++)r.length>0&&(r+="/"),r+=t.childDataProperty,i.length>0&&(i+="/"),i+=(t.primaryKey?t.primaryKey+":":"")+f[u],t.bindings&&(t=t.bindings);return i.length<=0?null:[i,r]},_encodeBinding:function(n){var i="binding=";for(var t in n)n.hasOwnProperty(t)&&t!=="bindings"&&t!=="nodeContentTemplate"&&(i+=t.toString()+":"+n[t]+",");return i.substr(0,i.length-1)},_encodeUrlPath:function(n,t){var i;return n.lastIndexOf("/")===-1?(n+="/@"+t,i="path="+n):i="path="+n.substr(n.lastIndexOf("/")+1,n.length)+"/@"+t.substr(t.lastIndexOf("/")+1,t.length),i},_updateParentState:function(t){var i=t.children("span[data-role=expander]"),r=this;i.length<=0?(t.removeClass(this.css.nodeNoChildren).addClass(this.css.parentNode),n(this._renderExpanderImage(!1)).prependTo(t)):t.children("ul").children("li").length<=0&&(t.removeClass(this.css.parentNode).addClass(this.css.nodeNoChildren),t.children("ul").remove(),i.remove());this._updateImage(t)},_updateParentCheckbox:function(t){var f=t.children("span[data-role=checkbox]"),r=f.children("span"),o=f.attr("data-chk"),u,e=0,i=this.css;if(t.children("ul").children("li").each(function(t,i){n(i).children("span[data-role=checkbox]").attr("data-chk")==="on"&&e++}),u=e===0?"off":e===t.children("ul").children("li").length?"on":"partial",o!==u){f.attr("data-chk",u);switch(u){case"off":r.removeClass(i.checkboxOn).removeClass(i.checkboxPartial).addClass(i.checkboxOff);break;case"partial":r.removeClass(i.checkboxOn).removeClass(i.checkboxOff).addClass(i.checkboxPartial);break;case"on":r.removeClass(i.checkboxPartial).removeClass(i.checkboxOff).addClass(i.checkboxOn);break;default:r.removeClass(i.checkboxOn).removeClass(i.checkboxPartial).addClass(i.checkboxOff)}t=this.parentNode(t);t&&this._updateParentCheckbox(t)}},_updateImage:function(n){var r=n.children("ul").children("li").length>0,i=this.options,t;r?i.parentNodeImageUrl?(t=n.children("img[data-role=leaf-node-image]"),t.length>0&&(t.attr("title",i.parentNodeImageTooltip!==null?i.parentNodeImageTooltip:""),t.attr("src",i.parentNodeImageUrl),t.attr("data-role","parent-node-image"))):i.parentNodeImageClass&&(t=n.children("span[data-role=leaf-node-image]"),t.length>0&&(t.attr("title",i.parentNodeImageTooltip!==null?i.parentNodeImageTooltip:""),t.removeClass(i.leafNodeImageClass).addClass(i.parentNodeImageClass),t.attr("data-role","parent-node-image"))):i.leafNodeImageUrl?(t=n.children("img[data-role=parent-node-image]"),t.length>0&&(t.attr("title",i.leafNodeImageTooltip!==null?i.leafNodeImageTooltip:""),t.attr("src",i.leafNodeImageUrl),t.attr("data-role","leaf-node-image"))):i.leafNodeImageClass&&(t=n.children("span[data-role=parent-node-image]"),t.length>0&&(t.attr("title",i.leafNodeImageTooltip!==null?i.leafNodeImageTooltip:""),t.removeClass(i.parentNodeImageClass).addClass(i.leafNodeImageClass),t.attr("data-role","leaf-node-image")))},_addData:function(t,i,r,u){var f=this.nodeDataFor(i),e=this._retrieveCurrentDepthBinding(r),o,s;if(e.hasOwnProperty("primaryKey")){if(f)typeof f[e.childDataProperty]!="function"?(f.hasOwnProperty(e.childDataProperty)&&f[e.childDataProperty]&&f[e.childDataProperty].length!==0||(f[e.childDataProperty]=[]),f[e.childDataProperty]=f[e.childDataProperty].concat(t)):f[e.childDataProperty]().length<=this.nodeByPath(i).children("ul").children("li").length&&(o=n("<li><\/li>").appendTo(this.nodeByPath(i).children("ul")),f[e.childDataProperty].push(t),o.remove());else if(this.options.dataSource._rootds._data.length<=this.element.find(".ui-igtree-noderoot").length||this.element.find(".ui-igtree-noderoot").length<=0)if(n.type(t)==="array")for(s=0;s<t.length;s++)this.options.dataSource._rootds._data.push(t[s]);else this.options.dataSource._rootds._data.push(t)}else if(f)typeof f[e.childDataProperty]!="function"?(f.hasOwnProperty(e.childDataProperty)&&f[e.childDataProperty]&&f[e.childDataProperty].length!==0||(f[e.childDataProperty]=[]),u===0?f[e.childDataProperty]=n.type(t)==="array"?t.concat(f[e.childDataProperty]):[t].concat(f[e.childDataProperty]):u?(o=f[e.childDataProperty].slice(0,u),o=o.concat(t),f[e.childDataProperty]=o.concat(f[e.childDataProperty].slice(u))):f[e.childDataProperty]=f[e.childDataProperty].concat(t)):f[e.childDataProperty]().length<=this.nodeByPath(i).children("ul").children("li").length&&(u===0?(o=n("<li><\/li>").appendTo(this.nodeByPath(i).children("ul")),f[e.childDataProperty].unshift(t),o.remove()):u?(o=n("<li><\/li>").appendTo(this.nodeByPath(i).children("ul")),f[e.childDataProperty]().splice(u,0,t),o.remove()):(o=n("<li><\/li>").appendTo(this.nodeByPath(i).children("ul")),f[e.childDataProperty].push(t),o.remove()));else if(this.options.dataSource._rootds._data.length<=this.element.find(".ui-igtree-noderoot").length||this.element.find(".ui-igtree-noderoot").length<=0)if(u===0)this.options.dataSource._rootds._data=n.type(t)==="array"?t.concat(this.options.dataSource._rootds._data):[t].concat(this.options.dataSource._rootds._data);else if(u)this.options.dataSource._rootds._data.splice(u,0,t);else if(n.type(t)==="array")for(s=0;s<t.length;s++)this.options.dataSource._rootds._data.push(t[s]);else this.options.dataSource._rootds._data.push(t)},_removeData:function(n){var u=n.split(this.options.pathSeparator),t=this.options.dataSource._rootds.data(),f,r,i=this.options.bindings,e;if(u.length===1){if(i.hasOwnProperty("primaryKey")){for(r=0;r<t.length;r++)if(t[r].hasOwnProperty(i.primaryKey)&&(e=typeof t[r][i.primaryKey]=="function"?t[r][i.primaryKey]():t[r][i.primaryKey],e.toString()===u[0].toString())){t.splice(r,1);break}}else t.splice(parseInt(u[0],10),1);return}for(f=0;f<u.length-1;f++){if(i.hasOwnProperty("primaryKey")){for(r=0;r<t.length;r++)if(t[r].hasOwnProperty(i.primaryKey)&&(e=typeof t[r][i.primaryKey]=="function"?t[r][i.primaryKey]():t[r][i.primaryKey],e.toString()===u[f].toString())){t=t[r];break}}else t=t[parseInt(u[f],10)];f<u.length-2&&(t=t[i.childDataProperty]&&typeof t[i.childDataProperty]=="function"?t[i.childDataProperty]():t[i.childDataProperty]);i.hasOwnProperty("bindings")&&f<u.length-2&&(i=i.bindings)}if(t[i.childDataProperty]&&typeof t[i.childDataProperty]!="function"){if(t[i.childDataProperty]&&t[i.childDataProperty].length<=1)delete t[i.childDataProperty];else if(t=t[i.childDataProperty],i.hasOwnProperty("bindings")&&(i=i.bindings),!i.hasOwnProperty("primaryKey")&&t.length)t.splice(parseInt(u[u.length-1],10),1);else for(r=0;r<t.length;r++)if(t[r].hasOwnProperty(i.primaryKey)&&t[r][i.primaryKey].toString()===u[f].toString()){t.splice(r,1);break}}else if(t=t[i.childDataProperty](),i.hasOwnProperty("bindings")&&(i=i.bindings),!i.hasOwnProperty("primaryKey")&&t.length)t.splice(parseInt(u[u.length-1],10),1);else for(r=0;r<t.length;r++)if(t[r].hasOwnProperty(i.primaryKey)&&(e=typeof t[r][i.primaryKey]=="function"?t[r][i.primaryKey]():t[r][i.primaryKey],e.toString()===u[u.length-1].toString())){t.splice(r,1);break}},_recalculatePaths:function(t){var u=t.split(this.options.pathSeparator),i=t.length>0?u[u.length-1]:0,f,e,o,s,r;if(u.length>1)for(u.splice(u.length-1,1),e=u.join(this.options.pathSeparator),f=this.nodeByPath(e),i;i<f.children("ul").children("li").length;i++)o=e+this.options.pathSeparator+i,r=n(f.children("ul").children("li")[i]),r.attr("data-path",o),r.children("ul").length>0&&r.children("ul").children("li").length>0&&this._recalculatePaths(o+this.options.pathSeparator+"0");else for(s=this.element.is("ul")?this.element:this.element.children("ul"),i;i<s.children("li").length;i++)r=n(s.children("li")[i]),r.attr("data-path",i),r.children("ul").length>0&&r.children("ul").children("li").length>0&&this._recalculatePaths(i+this.options.pathSeparator+"0")},_loadQueue:null,_toSelect:!1,_triggerChainRequest:function(n,t){var u=n.split(this.options.pathSeparator),i,r="";for(this._loadQueue===null&&(this._loadQueue=[]),t&&(this._toSelect=!0),i=0;i<u.length;i++)r+=u[i],this._loadQueue.push(r),r+=this.options.pathSeparator;this._loadRequest()},_loadRequest:function(){var n;this._populatingNode===null&&this._loadQueue&&this._loadQueue.length>0&&(n=this.nodeByPath(this._loadQueue.shift()),this._loadQueue.length>0?this.expand(n):this._toSelect&&(this.select(n),this._toSelect=!1))},_replaceUIValue:function(n,t,i){var u=n.element,f=this._retrieveCurrentDepthBinding(parseInt(u.parent().attr("data-depth"),10)),r;switch(i){case f.textKey:r=typeof t[i]=="function"?t[i]():t[i];u.children("a").text(r);break;case f.valueKey:r=typeof t[i]=="function"?t[i]():t[i];u.attr("data-value",r);break;case f.navigateUrlKey:r=typeof t[i]=="function"?t[i]():t[i];u.children("a").attr("href",r);break;case f.imageUrlKey:r=typeof t[i]=="function"?t[i]():t[i];u.children("img[data-role=node-image]").attr("src",r)}},dataBind:function(){var n;n=this._initDataOptions();this._initDataSource(n);this._triggerDataBinding();this.options.dataSource.dataBind(this._constructFromData,this)},toggleCheckstate:function(t,i){var s=this,c=s.options,r=s.css,o,h,u,e,f,l;if(!t)throw new Error(n.ig.Tree.locale.incorrectNodeObject);if(c.checkboxMode&&c.checkboxMode.toLowerCase()!=="off"&&(u=t.children("span[data-role=checkbox]"),e=u.children("span"),l=s._triggerNodeCheckstateChanging(i,t),l)){if(c.checkboxMode.toLowerCase()==="tristate")if(u.attr("data-chk")==="on"||u.attr("data-chk")==="partial")for(o=t.find("span[data-role=checkbox]"),h=o.children("span"),u.attr("data-chk","off"),e.removeClass(r.checkboxOn).removeClass(r.checkboxPartial).addClass(r.checkboxOff),o.attr("data-chk","off"),h.removeClass(r.checkboxOn).removeClass(r.checkboxPartial).addClass(r.checkboxOff),f=u.parent().parent().parent();f&&f.is("li");)f.find("ul > li > span[data-chk=on]").length<=0?(u=f.children("span[data-role=checkbox]"),e=u.children("span"),u.attr("data-chk","off"),e.removeClass(r.checkboxOn).removeClass(r.checkboxPartial).addClass(r.checkboxOff),f=this.parentNode(f)):(u=f.children("span[data-role=checkbox]"),e=u.children("span"),u.attr("data-chk","partial"),e.removeClass(r.checkboxOn).removeClass(r.checkboxOff).addClass(r.checkboxPartial),f=this.parentNode(f));else for(o=t.find("span[data-role=checkbox]"),h=o.children("span"),u.attr("data-chk","on"),e.removeClass(r.checkboxOff).removeClass(r.checkboxPartial).addClass(r.checkboxOn),o.attr("data-chk","on"),h.removeClass(r.checkboxOff).removeClass(r.checkboxPartial).addClass(r.checkboxOn),f=u.parent().parent().parent();f&&f.is("li");)f.find("ul > li > span[data-chk=on]").length===f.find("ul > li").length?(u=f.children("span[data-role=checkbox]"),e=u.children("span"),u.attr("data-chk","on"),e.removeClass(r.checkboxOff).removeClass(r.checkboxPartial).addClass(r.checkboxOn),f=this.parentNode(f)):(u=f.children("span[data-role=checkbox]"),e=u.children("span"),u.attr("data-chk","partial"),e.removeClass(r.checkboxOn).removeClass(r.checkboxOff).addClass(r.checkboxPartial),f=this.parentNode(f));else u.attr("data-chk")==="on"||u.attr("data-chk")==="partial"?(u.attr("data-chk","off"),e.removeClass(r.checkboxOn).removeClass(r.checkboxPartial).addClass(r.checkboxOff)):(u.attr("data-chk","on"),e.removeClass(r.checkboxOff).addClass(r.checkboxOn));s._triggerNodeCheckstateChanged(i,t)}},toggle:function(t,i){var u=this,c=u.options,r=u.css,e,o,s,f=0,h;if(!t)throw new Error(n.ig.Tree.locale.incorrectNodeObject);if(h=i?n(i.target).closest("span[data-role=expander]"):t.children("."+r.nodeExpander),t.children("ul").attr("data-populated")&&t.children("ul").attr("data-populated")==="false"){this._prepareRequest(t,i);return}if(h.attr("data-exp")&&h.attr("data-exp")!=="false")e=u._triggerNodeCollapsing(i,t),e&&(n(t).children("ul").hide(c.animationDuration,function(){u._triggerNodeCollapsed(i,t)}),h.removeClass(r.collapseIcon).addClass(r.expandIcon).attr("data-exp",!1));else if(e=u._triggerNodeExpanding(i,t),e){if(c.singleBranchExpand)for(o=t.siblings(),f;f<o.length;f++)s=n(o[f]).children("."+r.nodeExpander),s.length>0&&(s.attr("data-exp")==="true"||s.attr("data-exp")===!0)&&(e=u._triggerNodeCollapsing(i,n(o[f])),e&&(n(o[f]).children("ul").hide(c.animationDuration,n.proxy(this._triggerNodeCollapsed(i,n(o[f])),this)),s.removeClass(r.collapseIcon).addClass(r.expandIcon).attr("data-exp",!1)));t.children("ul").show(c.animationDuration,function(){u._triggerNodeExpanded(i,t)});h.removeClass(r.expandIcon).addClass(r.collapseIcon).attr("data-exp",!0)}},expandToNode:function(n,t){var i,r;if(n&&n.length>0){if(typeof n=="string"&&this.nodeByPath(n).length>0&&(n=this.nodeByPath(n)),typeof n=="string"&&this.options.loadOnDemand){this._triggerChainRequest(n,t);return}for(t&&this.select(n),i=this.parentNode(n),r=this.options.animationDuration,this.options.animationDuration=0;i;)this.expand(i),i=this.parentNode(i);this.options.animationDuration=r}},expand:function(t){var s=this,o=s.options,i=s.css,f,r,u=0,e;if(!t||t.length<=0)throw new Error(n.ig.Tree.locale.incorrectNodeObject);if(t.children("ul").attr("data-populated")&&t.children("ul").attr("data-populated")==="false"){this._prepareRequest(t);return}if(e=t.children("."+i.nodeExpander),!e.attr("data-exp")||e.attr("data-exp")==="false"){if(o.singleBranchExpand)for(f=t.siblings(),u;u<f.length;u++)r=n(f[u]).children("."+i.nodeExpander),r.length>0&&(r.attr("data-exp")==="true"||r.attr("data-exp")===!0)&&(n(f[u]).children("ul").hide(o.animationDuration),r.removeClass(i.collapseIcon).addClass(i.expandIcon).attr("data-exp",!1));t.children("ul").show(o.animationDuration);e.removeClass(i.expandIcon).addClass(i.collapseIcon).attr("data-exp",!0)}},collapse:function(t){var u=this,f=u.options,r=u.css,i;if(!t||t.length<=0)throw new Error(n.ig.Tree.locale.incorrectNodeObject);i=t.children("."+r.nodeExpander);i.attr("data-exp")&&i.attr("data-exp")!=="false"&&(n(t).children("ul").hide(f.animationDuration),i.removeClass(r.collapseIcon).addClass(r.expandIcon).attr("data-exp",!1))},parentNode:function(t){if(!t)throw new Error(n.ig.Tree.locale.incorrectNodeObject);var i=t.parent().closest("li[data-role=node]");return i.length>0?i:null},nodeByPath:function(n){return this.element.find('li[data-path="'+n+'"]')},nodesByValue:function(n){return this.element.find('li[data-value="'+n+'"]')},checkedNodes:function(){var i=this.element.find("span[data-chk=on]").parent(),t=0,r=[];if(i.length>0){for(t;t<i.length;t++)r.push(this.nodeFromElement(n(i[t])));return r}},uncheckedNodes:function(){var i=this.element.find("span[data-chk=off]").parent(),t=0,r=[];if(i.length>0){for(t;t<i.length;t++)r.push(this.nodeFromElement(n(i[t])));return r}},partiallyCheckedNodes:function(){var i=this.element.find("span[data-chk=partial]").parent(),t=0,r=[];if(i.length>0){for(t;t<i.length;t++)r.push(this.nodeFromElement(n(i[t])));return r}},select:function(t,i){if(!t||t.length<=0)throw new Error(n.ig.Tree.locale.incorrectNodeObject);var f=this.css,e=t.attr("data-path"),r,u=!1;i&&(t.children("a").attr("href")==="#"||t.children("a").attr("href")===document.URLUnencoded+"#")&&(u=!0);this._selectedNode||(this._selectedNode=[{path:null,element:null,data:null,binding:null}]);this._selectedNode[0].path!==null?this._selectedNode[0].path!==e&&(r=this._triggerSelectionChanging(i,t),r?(this._selectedNode[0].element.children("a").removeClass(f.nodeSelected),t.children("a").addClass(f.nodeSelected),this._selectedNode[0]=this.nodeFromElement(t),this._triggerSelectionChanged(i)):i&&(u=!0)):(r=this._triggerSelectionChanging(i,t),r?(t.children("a").addClass(f.nodeSelected),this._selectedNode[0]=this.nodeFromElement(t),this._triggerSelectionChanged(i)):i&&(u=!0));u&&i.preventDefault()},deselect:function(t){if(!t)throw new Error(n.ig.Tree.locale.incorrectNodeObject);var i=this.options,r=this.css,u=t.attr("data-path");this._selectedNode||(this._selectedNode=[{path:null,element:null,data:null,binding:null}]);i.multipleSelection?i=this.options:this._selectedNode[0].path!==null&&this._selectedNode[0].path===u&&(t.children("a").removeClass(r.nodeSelected),this._selectedNode[0].path=null,this._selectedNode[0].element=null,this._selectedNode[0].data=null,this._selectedNode[0].binding=null)},clearSelection:function(){var t=this.css,n=0;if(this._selectedNode&&this._selectedNode[0].path!==null){for(n;n<this._selectedNode.length;n++)this._selectedNode[n].element.children("a").removeClass(t.nodeSelected);this._selectedNode=[{path:null,element:null,data:null,binding:null}]}},selectedNode:function(){return this._selectedNode||(this._selectedNode=[{path:null,element:null,data:null,binding:null}]),this._selectedNode[0]},findNodesByText:function(t,i){var r=[],u,f=this;return u=i?i.find('li > a:contains("'+t+'")'):this.element.find('li > a:contains("'+t+'")'),u.each(function(){r.push(f.nodeFromElement(n(this).closest("li[data-role=node]")))}),r},findImmediateNodesByText:function(t,i){var r=[],u,f=this;return u=i?i.children("ul").children("li").children('a:contains("'+t+'")'):this.element.is("ul")?this.element.children("li").children('a:contains("'+t+'")'):this.element.children("ul").children("li").children('a:contains("'+t+'")'),u.each(function(){r.push(f.nodeFromElement(n(this).closest("li[data-role=node]")))}),r},nodeByIndex:function(n,t){return t?t.children("ul").children().eq(n):this.element.is("ul")?this.element.children().eq(n):this.element.children("ul").children().eq(n)},nodeFromElement:function(n){if(n.length>0)return{path:n.attr("data-path"),element:n,data:this.nodeDataFor(n.attr("data-path")),binding:this._retrieveCurrentDepthBinding(n.parent().attr("data-depth"))}},children:function(t){var r=[],f=this,u,i;if(t&&t.length>0)return i=t.children("ul"),i.length>0&&i.children("li").each(function(){u=n(this);r.push(f.nodeFromElement(u))}),r;throw new Error(n.ig.Tree.locale.incorrectNodeObject);},childrenByPath:function(t){var r=this.nodeByPath(t),u=[],e=this,f,i;if(r.length>0)return i=r.children("ul"),i.length>0&&i.children("li").each(function(){f=n(this);u.push(e.nodeFromElement(f))}),u;throw new Error(n.ig.Tree.locale.incorrectPath+t);},isSelected:function(t){if(this._selectedNode||(this._selectedNode=[{path:null,element:null,data:null,binding:null}]),t&&t.length>0)return this._selectedNode[0].path===t.attr("data-path");throw new Error(n.ig.Tree.locale.incorrectNodeObject);},isExpanded:function(t){if(t&&t.length>0){var i=t.children("span[data-role=expander]");if(i.length>0)return i.attr("data-exp")==="true"}else throw new Error(n.ig.Tree.locale.incorrectNodeObject);},isChecked:function(t){if(t&&t.length>0){var i=t.children("span[data-role=checkbox]");if(i.length>0)return i.attr("data-chk")==="on"}else throw new Error(n.ig.Tree.locale.incorrectNodeObject);},checkState:function(t){if(t&&t.length>0){var i=t.children("span[data-role=checkbox]");if(i.length>0)return i.attr("data-chk")}else throw new Error(n.ig.Tree.locale.incorrectNodeObject);},addNode:function(t,i,r){if(t&&!(t.length<=0)){r||typeof i!="number"||(r=i,i=null);var u,f,h,s,e,l,o,c;if(!i&&(i=this.element.is("ul")?this.element:this.element.children("ul"),i.children().length<=0)){this._addData(t,"",0);this._triggerRendering(t);o=n(this._initChildrenRecursively("",t)).appendTo(i);this.options.dragAndDrop&&this._initDragAndDrop(o);this._triggerRendered();this.options.dataSource.root().addNode({data:t,parentPath:"",path:o.attr("data-path")});return}s=i.is("li");u=s?i.children("ul"):i;u.length<=0&&(u=n('<ul data-depth="'+(parseInt(i.parent().attr("data-depth"),10)+1)+'" style="display: none"><\/ul>').appendTo(i));f=s?i.attr("data-path"):"";c=this._retrieveCurrentDepthBinding(parseInt(u.attr("data-depth"),10));this.options.checkboxMode.toLowerCase()==="tristate"&&(h=s?this.isChecked(i):!1);this._addData(t,f,parseInt(u.attr("data-depth"),10)-1,r);this._triggerRendering(t);l=u.children("li").length<=0;r===0?(e=n(this._initChildrenRecursively(f,t,parseInt(u.attr("data-depth"),10),h,u.children("li").length)).prependTo(u),c.hasOwnProperty("primaryKey")||this._recalculatePaths(f)):r?(e=n(this._initChildrenRecursively(f,t,parseInt(u.attr("data-depth"),10),h,u.children("li").length)).insertBefore(u.children("li:eq("+r+")")),c.hasOwnProperty("primaryKey")||this._recalculatePaths(f)):e=n(this._initChildrenRecursively(f,t,parseInt(u.attr("data-depth"),10),h,u.children("li").length)).appendTo(u);s&&l&&this._updateParentState(i);this.options.dragAndDrop&&this._initDragAndDrop(e);this._triggerRendered();o=[];e.each(function(t,i){o.push(n(i).attr("data-path"))});this.options.dataSource.root().addNode({data:t,parentPath:f,path:o});this._trigger("nodeAdded",null,{owner:this,element:e,data:t,index:r,binding:c})}},removeAt:function(t){var r=this.nodeByPath(t),e=parseInt(r.parent().attr("data-depth"),10),u,i=this.parentNode(r),f;r.length<=0||(t.indexOf("_remove")!==-1&&(t=t.replace("_remove","")),u=this._retrieveCurrentDepthBinding(e),f={data:n.extend(!1,{},this.nodeDataFor(t)),path:t},this._removeData(t,u),r.remove(),u.hasOwnProperty("primaryKey")||this._recalculatePaths(t),i&&i.children("ul").children("li").length<=0&&this._updateParentState(i),this.options.checkboxMode.toLowerCase()==="tristate"&&i&&this._updateParentCheckbox(i),this.options.dataSource.root().removeNode(f),this._trigger("nodeDeleted",null,{owner:this,data:f.data,path:t}))},removeNodesByValue:function(t){var i=this.nodesByValue(t),r=this;i.each(function(t,i){r.removeAt(n(i).attr("data-path"))})},applyChangesToNode:function(n,t){var i=this.nodeFromElement(n);for(var r in i.data)i.data.hasOwnProperty(r)&&this._replaceUIValue(i,t,r)},transactionLog:function(){return this.options.dataSource.root()._transactionLog},_triggerSelectionChanging:function(n,t){var i={owner:this,selectedNodes:this._selectedNode,newNodes:[this._constructNodeObject(t)]};return this._trigger(this.events.selectionChanging,n,i)},_triggerSelectionChanged:function(n){var t={owner:this,selectedNodes:this._selectedNode,newNodes:this._selectedNode};this._trigger(this.events.selectionChanged,n,t)},_triggerNodeCollapsing:function(n,t){var i={owner:this,node:this._constructNodeObject(t)};return this._trigger(this.events.nodeCollapsing,n,i)},_triggerNodeCollapsed:function(n,t){var i={owner:this,node:this._constructNodeObject(t)};this._trigger(this.events.nodeCollapsed,n,i)},_triggerNodeExpanding:function(n,t){var i={owner:this,node:this._constructNodeObject(t)};return this._trigger(this.events.nodeExpanding,n,i)},_triggerNodeExpanded:function(n,t){var i={owner:this,node:this._constructNodeObject(t)};this._trigger(this.events.nodeExpanded,n,i)},_triggerNodePopulating:function(n,t){var i=this._constructNodeObject(t);return this._trigger(this.events.nodePopulating,n,i)},_triggerNodePopulated:function(n,t){var i=this._constructNodeObject(t);this._trigger(this.events.nodePopulated,n,i)},_triggerNodeCheckstateChanging:function(n,t){var i=t.children("span[data-role=checkbox]").attr("data-chk"),r={owner:this,node:this._constructNodeObject(t),currentState:i,newState:i==="off"?"on":"off",currentCheckedNodes:this.checkedNodes()};return this._trigger(this.events.nodeCheckstateChanging,n,r)},_triggerNodeCheckstateChanged:function(n,t){var i=t.children("span[data-role=checkbox]").attr("data-chk"),r={owner:this,node:this._constructNodeObject(t),newState:i,newCheckedNodes:this.checkedNodes(),newPartiallyCheckedNodes:this.partiallyCheckedNodes()};return this._trigger(this.events.nodeCheckstateChanged,n,r)},_triggerNodeClick:function(n,t){var i={owner:this,node:this._constructNodeObject(t)};return this._trigger(this.events.nodeClick,n,i)},_triggerNodeDoubleClick:function(n,t){var i=this._constructNodeObject(t);return this._trigger(this.events.nodeDoubleClick,n,i)},_triggerDataBinding:function(){var n={owner:this};this._trigger(this.events.dataBinding,null,n)},_triggerDataBound:function(n){var t={owner:this,dataView:n};this._trigger(this.events.dataBound,null,t)},_triggerRendering:function(n){var t={owner:this,dataView:n};this._trigger(this.events.rendering,null,t)},_triggerRendered:function(){var n={owner:this};this._trigger(this.events.rendered,null,n)},_triggerDragStart:function(t,i,r){var u=this._constructNodeObject(r),f=n.extend(!1,u,i);return this._trigger(this.events.dragStart,t,f)},_triggerDrag:function(t,i,r){var u=this._constructNodeObject(r),f=n.extend(!1,u,i);return this._trigger(this.events.drag,t,f)},_triggerDragStop:function(n,t){this._trigger(this.events.dragStop,n,t)},_triggerNodeDropping:function(t,i,r,u){var f=this._constructNodeObject(r),e,o;return f.targetIndex=u,f.originalIndex=i.draggable.index(),o=this._sourceNode.element.parent().attr("data-depth")===r.parent().attr("data-depth")&&f.targetIndex>f.originalIndex?-1:0,f.targetIndex+=o,e=n.extend(!1,f,i),this._trigger(this.events.nodeDropping,t,e)},_triggerNodeDropped:function(t,i,r){var u=this._constructNodeObject(r),f=n.extend(!1,u,i);this._trigger(this.events.nodeDropped,t,f)},_constructNodeObject:function(n){var t=this.nodeDataFor(n!==null?n.attr("data-path"):null);return{path:n!==null?n.attr("data-path"):null,element:n!==null?n:null,data:t,binding:n!==null?this._retrieveCurrentDepthBinding(parseInt(n.parent().attr("data-depth"),10)):null}},nodeDataFor:function(n){if(n){for(var u=n.split(this.options.pathSeparator),t=this.options.dataSource._rootds.data(),r,i=this.options.bindings,e,f=0;f<u.length-1;f++){if(i.hasOwnProperty("primaryKey")){for(r=0;r<t.length;r++)if(t[r].hasOwnProperty(i.primaryKey)&&(e=typeof t[r][i.primaryKey]=="function"?t[r][i.primaryKey]():t[r][i.primaryKey],e.toString()===u[f].toString())){t=typeof t[r][i.childDataProperty]=="function"?t[r][i.childDataProperty]():t[r][i.childDataProperty];break}}else t=typeof t[parseInt(u[f],10)][i.childDataProperty]=="function"?t[parseInt(u[f],10)][i.childDataProperty]():t[parseInt(u[f],10)][i.childDataProperty];i.hasOwnProperty("bindings")&&(i=i.bindings)}if(!i.hasOwnProperty("primaryKey")&&t.length)t=t[parseInt(u[u.length-1],10)];else for(r=0;r<t.length;r++)if(t[r].hasOwnProperty(i.primaryKey)&&(e=typeof t[r][i.primaryKey]=="function"?t[r][i.primaryKey]():t[r][i.primaryKey],e.toString()===u[f].toString())){t=t[r];break}return typeof t=="function"&&(t=t()),t}},destroy:function(){return n.Widget.prototype.destroy.apply(this,arguments),this.element.undelegate(),this.element.removeClass(this.css.tree),this.element.removeClass(this.css.treeCollection),this.element.removeClass(this.css.treeRoot),this.options.width&&this.element.css("width",""),this.options.height&&this.element.css("height",""),this.options.dragAndDrop&&this._destroyDragAndDrop(),this.element.removeAttr("data-depth"),this.element.removeAttr("data-scroll"),this.element.empty(),this}});n.extend(n.ui.igTree,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){var i,t=function(n){return n===null||n===undefined};n.widget("ui.igGrid",{css:{baseClass:"ui-widget ui-helper-clearfix ui-corner-all",baseContentClass:"ui-widget-content",gridClasses:"ui-iggrid",recordClass:"ui-ig-record ui-iggrid-record",recordAltClass:"ui-ig-altrecord ui-iggrid-altrecord",headerClass:"ui-iggrid-header ui-widget-header",headerTextClass:"ui-iggrid-headertext",headerCellFeatureEnabledClass:"ui-iggrid-headercell-featureenabled",baseHeaderClass:"ui-widget-header",gridTableClass:"ui-iggrid-table ui-widget-content",gridHeaderTableClass:"ui-iggrid-headertable",gridFooterTableClass:"ui-iggrid-footertable ui-widget-footer",gridFooterClass:"",gridCaptionTableClass:"ui-iggrid-captiontable",gridHeaderCaptionClass:"ui-iggrid-headercaption ui-widget-header ui-corner-top",gridTableBodyClass:"ui-iggrid-tablebody",gridScrollDivClass:"ui-iggrid-scrolldiv ui-widget-content",gridFooterCaptionClass:"ui-iggrid-footercaption",deletedRecord:"ui-iggrid-deletedrecord",modifiedRecord:"ui-iggrid-modifiedrecord",rtl:"ui-iggrid-rtl"},options:{width:null,height:null,autoAdjustHeight:!0,avgRowHeight:25,avgColumnWidth:null,defaultColumnWidth:null,autoGenerateColumns:!0,virtualization:!1,virtualizationMode:"fixed",requiresDataBinding:!0,rowVirtualization:!1,columnVirtualization:!1,virtualizationMouseWheelStep:null,adjustVirtualHeights:!1,rowTemplate:null,jQueryTemplating:!1,templatingEngine:"infragistics",columns:[{headerText:null,key:null,formatter:null,format:null,dataType:"string",width:null,hidden:!1,template:null,unbound:!1,group:[],rowspan:0,formula:null,unboundValues:null}],dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,responseTotalRecCountKey:null,requestType:"GET",responseContentType:"application/json; charset=utf-8",showHeader:!0,showFooter:!0,fixedHeaders:!0,fixedFooters:!0,caption:null,features:[{}],tabIndex:0,accessibilityRendering:!1,localSchemaTransform:!0,primaryKey:null,serializeTransactionLog:!0,autoCommit:!1,aggregateTransactions:!1,autoFormat:"date",renderCheckboxes:!1,updateUrl:null,restSettings:{create:{url:null,template:null,batch:!1},update:{url:null,template:null,batch:!1},remove:{url:null,template:null,batch:!1},encodeRemoveInRequestUri:!0,contentSerializer:null,contentType:"application/json; charset=utf-8"},alternateRowStyles:!0,autofitLastColumn:!0,enableHoverStyles:!0,enableUTCDates:!1,mergeUnboundColumns:!1,jsonpRequest:!1,enableResizeContainerCheck:!0},events:{cellClick:"cellClick",dataBinding:"dataBinding",dataBound:"dataBound",rendering:"rendering",rendered:"rendered",dataRendering:"dataRendering",dataRendered:"dataRendered",headerRendering:"headerRendering",headerRendered:"headerRendered",footerRendering:"footerRendering",footerRendered:"footerRendered",headerCellRendered:"headerCellRendered",rowsRendering:"rowsRendering",rowsRendered:"rowsRendered",schemaGenerated:"schemaGenerated",columnsCollectionModified:"columnsCollectionModified",requestError:"requestError",created:"igcontrolcreated",destroyed:"igcontroldestroyed"},resizeTimeout:300,speedupDOMCleanup:!1,cloneChildElements:!1,widget:function(){return this.element},_createWidget:function(t){this.options.columns=[];this.options.features=[];t&&t.dataSource&&(n.type(t.dataSource)==="array"||n.type(t.dataSource)==="object")&&(this.tmpDataSource=t.dataSource,t.dataSource=null,this._originalOptions=t);n.Widget.prototype._createWidget.apply(this,arguments)},_setOption:function(t,i){var r,u,e=this._gridHasWidthInPercent(),f;if(i!==this.options[t]){if(u=this.options.height!==null||this.options.width!==null,n.Widget.prototype._setOption.apply(this,arguments),t==="virtualization"||t==="autoGenerateColumns"||t==="accessibilityRendering"||t==="rowVirtualization"||t==="columnVirtualization"||t==="fixedHeaders"||t==="scrollbars")throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);if(t==="width")if(u===!0)this.container().css("width",i),this.element.css("width",i),this.options.fixedHeaders&&this.headersTable().css("width",i),this._allColumnWidthsInPercentage&&e||(this._gridInnerWidth=this.options.virtualization===!0||this.options.columnVirtualization===!0||this.options.rowVirtualization===!0?this._vdisplaycontainer().width()+this._scrollbarWidth():this.scrollContainer().width()),this.options.width!==null&&this.options.height!==null&&this._updateGridContentWidth();else throw new Error(n.ig.Grid.locale.optionChangeNotScrollingGrid+" "+t);else if(t==="height")if(u===!0)this.scrollContainer().css("overflow-y","auto"),this.options.autoAdjustHeight?(this.container().css("height",i),this._virtualHeightReset=!0,this._initializeHeights()):this.scrollContainer().css("height",i);else throw new Error(n.ig.Grid.locale.optionChangeNotScrollingGrid+" "+t);else t==="dataSource"?(this.options.dataSource=i,this.dataBind()):t==="showHeader"?(r=this.headersTable(),r.length>0&&r.is("table")?i===!0?r.show():r.hide():(r=this.element.find("thead tr"),i===!0?r.show():r.hide())):t==="caption"&&(f=this._caption(),f.length===0?(this._renderCaption(),this.options.autoAdjustHeight&&this._initializeHeights()):f.text(i))}},_initialized:!1,_headersInitialized:!1,_footerInitialized:!1,_create:function(){var i=this,t,u,r;for(this._isHierarchicalGrid=!1,this._hasUnboundColumns=!1,this.options._isHierarchicalGrid===!0&&(this._isHierarchicalGrid=!0),this.cloneChildElements&&this.element.is("table")&&this.element.children().length>0&&(this._initialChildren=this.element.children().clone(!0)),this._initialAttributes=[],r=this.element[0].attributes,t=0;t<r.length;t++)r[t].name!=="id"&&this._initialAttributes.push({name:r[t].name,value:r[t].value});if(this._rtl=this.element.css("direction")==="rtl",this._padding=this._rtl?"padding-left":"padding-right",this.tmpDataSource!==null&&this.tmpDataSource!==undefined&&(this.options.dataSource=this.tmpDataSource,this._originalOptions.dataSource=this.tmpDataSource),this._testInnerHtml(),this._headerInitCallbacks=[],this._footerInitCallbacks=[],this._cellStyleSubscribers=[],this._firstBind=!0,this._isMultiColumnGrid=!1,this._unboundValues={},this._isMultiColumnHeader()===!0&&(this._isMultiColumnGrid=!0,this._generateColumnFlatStructure(this.options.columns),this._headerCells=[]),this.options.rowVirtualization===!0&&this.options.virtualizationMode==="continuous"&&(this.options.virtualization=!0),this.options.columnVirtualization===!0){if(this.options.virtualization=!0,this.options.virtualizationMode==="continuous")throw new Error(n.ig.Grid.locale.colVirtualizationDenied);this.options.virtualizationMode="fixed"}for((this.options.virtualization===!0||this.options.columnVirtualization===!0||this.options.rowVirtualization===!0)&&((this.options.virtualizationMode===undefined||this.options.virtualizationMode==="")&&(this.options.virtualizationMode="fixed"),this.options.virtualizationMode==="fixed"&&(this.options.fixedHeaders=!0,this.options.fixedFooters=!0)),this.options.virtualization===!0&&this.options.virtualizationMode==="continuous"&&(this.options.fixedHeaders=!0),(this.options.height===null||parseInt(this.options.height,10)<=0)&&this.options.fixedHeaders===!0&&(this.options.fixedHeaders=!1),(this.options.height===null||parseInt(this.options.height,10)<=0)&&this.options.fixedFooters===!0&&(this.options.fixedFooters=!1),this.dataBind(!0),this._cellClickHandler=function(t){var u=n(t.target),e=u.closest("tr"),r=e.attr("data-id"),s,f,o,h=u.closest("td").index(),c=h-e.children("td.ui-iggrid-expandcolumn,th").length;(r===""||r===null||r===undefined)&&(r=e.index());i.hasFixedColumns()?(f=n(t.target),f.is("td")||(f=n(t.target).closest("td")),f.length===1&&(o=i._getColumnByTD(f),o!==null&&(s=o.column.key,h=o.index))):c>=0&&c<i._visibleColumns().length&&(s=i._visibleColumns()[c].key);!u.closest("tr").parent().is("thead")&&(u.is("td")||u.closest("td").length===1&&u.closest("td").parent().attr("data-container")!=="true")&&(r=i._fixPKValue(r),i._trigger(i.events.cellClick,t,{rowIndex:e.index(),rowKey:r,colIndex:h,colKey:s,cellElement:t.target,owner:i}))},this.element.bind({click:this._cellClickHandler}),this.options.enableResizeContainerCheck&&(this.options.height!==null&&this.options.height.indexOf&&this.options.height.indexOf("%")!==-1||this.options.width!==null&&this.options.width.indexOf&&this.options.width.indexOf("%")!==-1||!this.element.is(":visible"))&&(this.element.is(":visible")||(this._recheckVisibility=!0),n.ig.util.isIE&&n.ig.util.browserVersion<=10&&(u=this.container(),u.length>0&&u[0].attachEvent&&(this._resizeContainerHandler=n.proxy(this.resizeContainer,this),u[0].attachEvent("onresize",this._resizeContainerHandler))),this._resizeContainerHandler||(this._resId=setInterval(n.proxy(this.resizeContainer,this),this.resizeTimeout))),t=0;t<this.options.columns.length;t++)this.options.columns[t].hidden===undefined&&(this.options.columns[t].hidden=!1);this._uiSoftDirtyHandler=n.proxy(this._onFeaturesSoftDirty,this);this.element.bind("iggriduisoftdirty",this._uiSoftDirtyHandler);this._oldScrollTop=0;this.element.trigger(this.events.created,{owner:this});this._rtl&&this.container().addClass(this.css.rtl)},_fixPKValue:function(n){var t,i,r=this.options.primaryKey;return r&&(t=this.columnByKey(r),t&&t.dataType?(t.dataType==="number"||t.dataType==="numeric")&&(n=parseInt(n,10)):(i=this.dataSource._data,i&&i.length>0&&typeof i[0][r]=="number"&&(n=parseInt(n,10)))),n},hasFixedDataSkippedColumns:function(){return this._hasFixedDataSkippedColumns},hasFixedColumns:function(){return this._hasFixedDataSkippedColumns||this._fixedColumns!==null&&this._fixedColumns!==undefined&&this._fixedColumns.length>0?!0:!1},isFixedColumn:function(t){var i=!1,u=n.type(t),r;if(!this.hasFixedColumns())return!1;if(u==="string")n.each(this._fixedColumns,function(n,r){if(r.key===t)return i=!0,!1});else if(u==="number"){if(r=this._visibleColumns(),t<0||t>=r.length)return!1;i=r[t].fixed===!0}return i},_onColumnFixed:function(n,t,i,r,u){var f={colInd:n,isFixed:t,fixedColsCount:i,isInit:r,visibleIndex:u};this._fireInternalEvent("_columnFixed",f)},_testInnerHtml:function(){var n=document.createElement("table");try{n.innerHTML="<tr><td> t <\/td><\/tr>";this._canreplaceinner=!0}catch(t){this._canreplaceinner=!1}},resizeContainer:function(){var t,n=this.options,r=!1,i=n.virtualization===!0||n.rowVirtualization===!0||n.columnVirtualization===!0;this._recheckVisibility&&this.element.is(":visible")&&(this._prevContainerHeight=0,r=!0,this._recheckVisibility=!1,!this._resId||this.options.height!==null&&this.options.height.indexOf&&this.options.height.indexOf("%")!==-1||this.options.width!==null&&this.options.width.indexOf&&this.options.width.indexOf("%")!==-1||clearInterval(this._resId));n.autoAdjustHeight&&this.container().height()!==this._prevContainerHeight&&(this._initializeHeights(),i&&r&&(this._avgRowHeight=null,this._updateVirtualScrollContainer(),this._onVirtualVerticalScroll()));n.width!==null&&n.height!==null&&(t=i===!1?this.scrollContainer().width():this._vdisplaycontainer().width()+this._scrollbarWidth(),this._gridInnerWidth!==t&&(this._gridInnerWidth>0||t>0)&&(this._gridInnerWidth=t,this._updateHScrollbarVisibility()),i===!1&&this.scrollContainer().get(0).scrollHeight>this.scrollContainer().get(0).clientHeight!==this._hasVerticalScrollbar&&this._adjustLastColumnWidth())},_isMultiColumnHeader:function(){for(var t=this.options.columns,n=0;n<t.length;n++)if(t[n].group!==undefined&&t[n].group!==null)return!0;return!1},_analyzeMultiColumnHeaders:function(n,t,i,r,u,f){for(var o,h,y=n.length,c=0,l=[],s=[],v,a,e=0;e<y;e++)if(n[e].group!==undefined&&n[e].group!==null){for(v=n[e].key!==undefined&&n[e].key!==null?n[e].key.toString():(this._multiColumnIdentifier++).toString(),n[e].identifier||(n[e].identifier=v),s=[],a=!1,(f===!0||n[e].hidden===!0)&&(a=!0),h=this._analyzeMultiColumnHeaders(n[e].group,t,i+1,r[e].group,s,a),r[e].colspan=h.colspan,r[e].children=s,o=0;o<s.length;o++)u.push(s[o]);l.push(e);c+=h.colspan}else c++,r[e].level=0,r[e].level0=!0,f===!0&&(n[e].hidden=!0),u.push(n[e]),t.push(n[e]);for(o=0;o<l.length;o++)r[l[o]].level=this._maxLevel-i;return{colspan:c}},_getMultiHeaderColumnById:function(n,t,i){var r,f,u=null;if(i===null||i===undefined){if(this._oldCols===null||this._oldCols===undefined)return null;i=this._oldCols}for(f=i.length,r=0;r<f;r++){if(i[r].identifier===n&&(t===undefined||i[r].level===t))return i[r];if(i[r].group!==null&&i[r].group!==undefined&&(u=this._getMultiHeaderColumnById(n,t,i[r].group),u!==null))return u}return null},_getMaxLevelRecursive:function(n,t){for(var e=t.length,u=n,r,f,i=0;i<e;i++)f=1,t[i].rowspan!==null&&t[i].rowspan!==undefined&&t[i].rowspan>0&&(f=t[i].rowspan),t[i].group!==undefined&&t[i].group!==null?(r=this._getMaxLevelRecursive(n+f,t[i].group),r>u&&(u=r)):f>0&&(r=n+f-1,r>u&&(u=r));return u},_headerInit:function(n,t,i){for(var r=0;r<this._headerInitCallbacks.length;r++)this._headerInitCallbacks[r].func(n,t,i)},_footerInit:function(n,t,i,r){for(var u=0;u<this._footerInitCallbacks.length;u++)this._footerInitCallbacks[u].func(n,t,i,r)},id:function(){return this.element[0].id},_caption:function(){return this.container().find("caption")},_rootContainer:function(){var n;return this._rContainer&&this._rContainer.length!==0||(n=this.element.closest(".ui-iggrid-root"),this._rContainer=n.length===1?n.data("igGrid").container():this.container()),this._rContainer},container:function(){return this._container&&this._container.length!==0||(this._container=this.element.closest("div[id="+this.id()+"_container]")),this._container},headersTable:function(){return this.options.fixedHeaders===!0&&this.options.height!==null?this.container().find("#"+this.id()+"_headers"):this.element},footersTable:function(){return this.options.fixedFooters===!0&&this.options.height!==null?this.container().find("#"+this.id()+"_footers"):this.element},scrollContainer:function(){return this.container().children("#"+this.id()+"_scroll")},fixedContainer:function(){return this.container().find("#"+this.id()+"_mainFixedContainer")},fixedBodyContainer:function(){return this.container().find("#"+this.id()+"_fixedBodyContainer")},fixedFooterContainer:function(){return this.container().find("#"+this.id()+"_fixedFooterContainer")},fixedHeaderContainer:function(){return this.container().find("#"+this.id()+"_fixedHeaderContainer")},fixedHeadersTable:function(){return this.options.fixedHeaders===!0&&this.options.height!==null?this.container().find("#"+this.id()+"_headers_fixed"):this.container().find("#"+this.id()+"_fixed")},fixedFootersTable:function(){return this.options.fixedFooters===!0&&this.options.height!==null?this.container().find("#"+this.id()+"_footers_fixed"):this.container().find("#"+this.id()+"_fixed")},_vdisplaycontainer:function(){return this.container().find("#"+this.id()+"_displayContainer")},_virtualcontainer:function(){return this.container().find("#"+this.id()+"_virtualContainer")},_vhorizontalcontainer:function(){return this.container().find("#"+this.id()+"_horizontalScrollContainer")},_fixedfooters:function(){return this.container().find("#"+this.id()+"_footer_container")},cellAt:function(n,t,i){var r;return n===undefined||t===undefined?null:(this.table===undefined&&(this.table=this.element[0]),r=this._dataRowIndex(t),i===!0)?(this._fixedTable===undefined&&(this._fixedTable=this.element),this._fixedTable[0].rows[r].cells[n]):this.table.rows[r].cells[n]},cellById:function(n,i){var u,r,f,e,o,s=this.isFixedColumn(i);if(t(n)||t(i))return null;for(this.table===undefined&&(this.table=this.element[0]),f=this._visibleColumns(s),r=0;r<f.length;r++)if(f[r].key===i){u=r;break}return t(u)?null:(e=s?this.fixedBodyContainer().find("tbody").first().children("[data-id="+n+"]").first():this.element.children("tbody").children("[data-id="+n+"]").first(),o=e.children("th,[data-skip=true],[data-parent]").length,e.children("td:nth-child("+(u+1+o)+")"))},fixedTable:function(){return this._fixedTable===undefined&&(this._fixedTable=this.element[0]),this._fixedTable},_calculateHeaderFooterRows:function(){var t=0,i=0;return t=this.element.children("thead").children("tr").length,n.ig.util.isOpera&&(i=this.element.children("tfoot").children("tr").length),t+i},_dataRowIndex:function(t){var r,i;if(this.table===undefined&&(this.table=this.element[0]),(this._additionalTrCount===undefined||this._additionalTrCount===null)&&(this._additionalTrCount=this._calculateHeaderFooterRows()),this._hc===!0)for(r=this.element.children("tbody").children("tr[data-container]"),i=0;i<r.length;i++)n(r[i]).index()<=t&&(t+=1);return t=t+this._additionalTrCount,t>=this.table.rows.length?t=this.table.rows.length-1:t<0&&(t=0),t},immediateChildrenWidgets:function(){return this.element.children("tbody").children("tr").children(".ui-iggrid-childarea").children("div").children("div").map(function(){return n(this).children(".ui-iggrid-scrolldiv").length>0?n(this).children(".ui-iggrid-scrolldiv").children(".ui-iggrid-table").data("igGrid"):n(this).children(".ui-iggrid-table").data("igGrid")})},childrenWidgets:function(){return this.element.find("tbody > tr > .ui-iggrid-childarea").find(".ui-iggrid-table").map(function(){return n(this).data("igGrid")})},children:function(){return this.element.find("tbody > tr > .ui-iggrid-childarea").find(".ui-iggrid-table")},immediateChildren:function(){return this.element.children("tbody").children("tr").children(".ui-iggrid-childarea").children("div").children("div").map(function(){return n(this).children(".ui-iggrid-scrolldiv").length>0?n(this).children(".ui-iggrid-scrolldiv").children(".ui-iggrid-table"):n(this).children(".ui-iggrid-table")})},rowAt:function(n){return n=this._dataRowIndex(n),this.table.rows[n]},rowById:function(n,i){return t(n)?null:i?this.fixedBodyContainer().find("tbody").first().children("[data-id="+n+"]").first():this.element.children("tbody").children("[data-id="+n+"]").first()},fixedRowAt:function(n){var t=this.fixedBodyContainer().find("tbody>tr");return t.length>0?t[n]:null},fixedRows:function(){return this.fixedBodyContainer().children("tbody").children("tr")},rows:function(){return this.element.children("tbody").children("tr")},allFixedRows:function(){return this.fixedBodyContainer().find("tbody tr")},allRows:function(){return this.element.find("tbody tr")},columnByKey:function(n){for(var i=this.options.columns,t=0;t<i.length;t++)if(String(i[t].key)===String(n))return i[t];return null},columnByText:function(n){for(var i=this.options.columns,t=0;t<i.length;t++)if(i[t].headerText===n)return i[t];return null},activeCell:function(){return this._activeCell},activeRow:function(){return this._activeRow&&(this.hasFixedColumns()?this._activeRow.fixedElement=this._activeFixedRow?this._activeFixedRow.element:this.fixedBodyContainer().find("tbody tr:nth-child("+(this._activeRow.index+1)+")"):this._activeRow.fixedElement&&(this._activeRow.fixedElement=null)),this._activeRow},selectedCell:function(){return this._selectedCell},selectedRow:function(){return this._selectedRow},selectedCells:function(){return this._selectedCells},selectedRows:function(){return this._selectedRows},getCellValue:function(t,i){var e=parseInt(t,10),r,o=this.options.columns,h=!1,f,s,u;if(u=this.dataSource.pendingTransactions(),this.options.autoCommit===!1&&u.length>0)for(r=0;r<u.length;r++)if(u[r].rowId===t){if(u[r].type==="cell"&&u[r].col===i)return u[r].value;if(u[r].type==="row"||u[r].type==="newrow")return u[r].row[i]}if(n.type(i)==="string"){for(r=0;r<o.length;r++)if(o[r].key===i){h=!0;break}if(h===!1)throw new Error(n.ig.Grid.locale.noSuchColumnDefined);}if(this.options.primaryKey!==null){if(s=this.columnByKey(this.options.primaryKey),f=s.dataType==="number"||s.dataType==="numeric"?this.dataSource.findRecordByKey(parseInt(t,10)):this.dataSource.findRecordByKey(t),f===null||f===undefined)throw new Error(n.ig.Grid.locale.recordNotFound+" "+t);return f[i]}if(e>=this.dataSource.dataView().length)throw new Error(n.ig.Grid.locale.indexOutOfRange);if(n.type(i)==="string")return this.dataSource.dataView()[e][i];if(o.length<=i)throw new Error(n.ig.Grid.locale.columnIndexOutOfRange);return this.dataSource.dataView()[e][i]},getCellText:function(t,i){var r;if(r=n.type(i)==="string"?this._getCellIndexByColumnKey(i):i,r===undefined)throw new Error(n.ig.Grid.locale.columnNotFound+" "+i);return this.options.primaryKey!==null?this.element.find("tr[data-id='"+t+"']>td:nth-child("+(r+1)+")").text():n(this.cellAt(r,parseInt(t,10))).text()},setColumnTemplate:function(n,t,i){var r=this._getColIdxById(this.options.columns,n);r!==null&&r!==undefined&&(n=this.options.columns[r],n.template=t,i=i===null||i===undefined?!0:i,i&&!n.hidden&&this._renderData())},commit:function(n){var t;(t=this._normalizedKey(n),this.dataSource.commit(t),this._fireInternalEvent("_gridCommit"))||(this.options.virtualization||this.options.rowVirtualization||this.options.columnVirtualization?this.options.virtualizationMode==="continuous"?this._renderVirtualRecords():(this._buildVirtualDom(),this.virtualScrollTo(this._startRowIndex)):this._renderData())},rollback:function(t,i){var u,f,r;if(r=this._normalizedKey(t),this.dataSource.rollback(r),i===!0&&t!==null&&t!==undefined){if(this.options.primaryKey!==null){if(u=this.dataSource.findRecordByKey(r),u===undefined||u===null)throw new Error(n.ig.Grid.locale.recordNotFound+" "+t);f=this.element.find("tr[data-id='"+t+"']")[0]}else{if(r>=this.dataSource.dataView().length)throw new Error(n.ig.Grid.locale.indexOutOfRange);u=this.dataSource.dataView()[r];f=this.rowAt(r)}n(f).removeClass(this.css.deletedRecord);f._deleted=null;this._renderRow(u,f)}else(t===!0||i===!0)&&this.dataBind();(i===!0||i===undefined)&&(t===undefined||t===null)&&this._renderData()},findRecordByKey:function(n){return this.dataSource.findRecordByKey(n)},getDetachedRecord:function(n){return this.dataSource.getDetachedRecord(n)},pendingTransactions:function(){return this.dataSource.pendingTransactions()},allTransactions:function(){return this.dataSource.allTransactions()},transactionsAsString:function(){return this.dataSource.transactionsAsString()},_normalizedKey:function(n){var t,i;return n===undefined||n===null?null:(t=n,this.options.primaryKey!==null?(i=this.columnByKey(this.options.primaryKey),(i.dataType==="number"||i.dataType==="numeric")&&(t=parseInt(n,10))):t=parseInt(n,10),t)},saveChanges:function(n,t){this.dataSource.saveChanges(n,t)},_renderRow:function(t,i){for(var u,r,e=0,o,h=this.options.columns,s,f=0;f<i.cells.length;f++)if(u=n(i.cells[f]),o=u[0].className,e>0||!(u.attr("data-skip")||o&&(o.indexOf("-expandcolumn")>0||o.indexOf("-rowselector")>0))){for(;;){if(r=h[e],!r)return i;if(!r.hidden)break;e++}r.template&&r.template.length?(s=this._renderTemplatedCell(t,r),s.indexOf("<td")===0?u.html(n(s).html()):u.html(s)):u.html(this._renderCell(t[r.key],r,t));e++}return i},renderNewRow:function(n){var t=this.element.children("tbody"),i,r=this,u=this.options.virtualization===!0||this.options.rowVirtualization===!0,f=this.options.virtualizationMode==="fixed";u?(f?this._buildVirtualDom():(this._renderVirtualRecordsContinuous(),this._startRowIndex=0),this.virtualScrollTo(this._totalRowCount)):(i=t.children('[data-container!="true"]').length,MSApp.execUnsafeLocalFunction(function(){t.append(r._renderRecord(n,i))}))},_findTableRowByKey:function(t){var r,f=this.options.columns,u,i;if(this.options.primaryKey!==null){for(i=0;i<f.length;i++)if(f[i].key===this.options.primaryKey){r=i;break}if(r===undefined)throw new Error(n.ig.Grid.locale.columnNotFound+" "+this.options.primaryKey);return u=this.element.find("td:nth-child('"+(r+1)+"'):contains('"+t+"')").parent(),u.length===0?null:u[0]}return this.rowAt(parseInt(t,10))},dataSourceObject:function(n){if(n!==undefined)this.options.dataSource=n;else return this.options.dataSource},totalRecordsCount:function(){return this.dataSource.totalRecordsCount()},dataBind:function(t){var r,i,u=!0,f=!0;if(this._initialized||(f=this._trigger(this.events.rendering,null,{owner:this})),f){if(u=this._trigger(this.events.dataBinding,null,{owner:this}),t===undefined&&(this.options.requiresDataBinding=!0),u)if(this.options.requiresDataBinding){if(this._hasUnboundColumns&&(this._rebindUnboundColumns=!0),r=this._generateDataSourceOptions(this.options),this._setupDataSource(r),this._dataOptions=r,this._initialized){for(this._isDataBoundCalled=!0,this.element.trigger("iggriduidirty",{owner:this}),i=0;i<this.options.features.length;i++)this._initFeatureSettings(this.options.features[i]);this._trigger("headerExtraCellsModified",null,{owner:this})}else{for(this.element.is("div")&&(this._isWrapped=!0,this.element=n("<table><\/table>").appendTo(this.element).attr("id",this.id()+"_table"),this.element.data("igGrid",this)),i=0;i<this.options.features.length;i++)this._initFeature(this.options.features[i],r);this.options.autoGenerateColumns!==!0&&this._captureInitiallyHiddenColumns();this._visibleColumnsArray=undefined}this._renderGrid();this._loadingIndicator===undefined&&this._initLoadingIndicator();this._loadingIndicator&&this._loadingIndicator.show();this.dataSource.dataBind();this.options.requiresDataBinding=!1}else this._renderGrid()}else this._cancelRendering=!0},_mergeUnboundValues:function(){var o,y,i,r,p,w,s,f,u,v,h,t,b,e,c=this.options.primaryKey,l=this.dataSource.metadata("unboundValues"),a=this,k=c!==null&&c!==undefined,d;if(l!==undefined&&l!==null&&l.length!==0&&this._unboundColumns)for(k&&(d=function(n,i){if(r=w?a.dataSource.findRecordByKey(parseInt(n,10)):a.dataSource.findRecordByKey(n),r===null||r===undefined)return!0;f!==undefined&&f!==null&&(i=f._convertType(u,i,r[c],t));a._addUnboundColumnValue(t,i);r[t]=i},y=this.columnByKey(c),w=y.dataType==="number"),p=this._unboundColumns.length,f=this.dataSource.schema(),o=0;o<p;o++)if((t=this._unboundColumns[o].key,i=l[t],i!==null&&i!==undefined)&&(s=this.getUnboundColumnByKey(t),u=null,s!==null&&s.dataType&&(u=s.dataType),k?n.each(i,d):a.setUnboundValues(t,i),u==="bool"||u==="boolean")){if(h=this.dataSource.data(),b=f._convertType(u,undefined),v=h.length,v<=i.length)continue;for(e=0;e<v;e++)h[e][t]===undefined&&(h[e][t]=b)}},_generateDataSourceOptions:function(){var e,t,r,f,u,i,o;if(!this.options.dataSource&&!this.options.dataSourceUrl&&this.element.is("table")&&this.element.find("tbody").children().length>0&&(this.options.dataSource=this.element[0]),this.options.dataSource&&this.options.dataSource.tagName&&this.options.dataSource.nodeType&&(r=n(this.options.dataSource),r.is("table")&&r.find("thead th").length>0))for(f=r.find("thead tr th"),this._tb_h=!0,this._tb_h_arr=[],u=0;u<f.length;u++)this._tb_h_arr.push(n(f[u]).text());return t={callback:n.proxy(this._renderData,this),callee:this,responseDataKey:this.options.responseDataKey,responseTotalRecCountKey:this.options.responseTotalRecCountKey,dataSource:this.options.dataSource,requestType:this.options.requestType,responseContentType:this.options.responseContentType,primaryKey:this.options.primaryKey,localSchemaTransform:this.options.localSchemaTransform,autoCommit:this.options.autoCommit,aggregateTransactions:this.options.aggregateTransactions,serializeTransactionLog:this.options.serializeTransactionLog,updateUrl:this.options.updateUrl,restSettings:this.options.restSettings},this.options.dataSourceType!==null&&(t.type=this.options.dataSourceType),i=this.options.dataSource&&typeof this.options.dataSource._xmlToArray=="function"&&typeof this.options.dataSource._encodePkParams=="function",o=i&&this.options.dataSource.settings.schema&&this.options.dataSource.settings.schema.hasOwnProperty("schema")&&typeof this.options.dataSource.settings.schema._xmlHasNamespaces=="function",e=i&&o?this.options.dataSource.settings.schema:this._generateDataSourceSchema(),(i&&(this.options.dataSource.settings.schema===null||!this.options.dataSource.settings.schema.fields||this.options.dataSource.settings.schema.fields&&this.options.dataSource.settings.schema.fields.length>=0)||!i)&&(t=n.extend(t,{schema:e})),t},_insertUnboundColumn:function(n){(this._unboundColumns===null||this._unboundColumns===undefined)&&(this._unboundColumns=[]);this._unboundColumns.push(n);n.key&&(this._unboundValues[n.key]===null||this._unboundValues[n.key]===undefined)&&(this._unboundValues[n.key]=[]);n.unboundValues&&n.unboundValues.length>0&&(this._isToSetUnboundColumns=!0);this._hasUnboundColumns=!0},_addUnboundColumnValue:function(n,t,i){(this._unboundValues[n]===null||this._unboundValues[n]===undefined)&&(this._unboundValues[n]=[]);i!==undefined&&i!==null?this._unboundValues[n][i]=t:this._unboundValues[n].push(t)},_generateDataSourceSchema:function(){var r,i,e,f,o=0,u=this.options.columns,t=this.options.dataSource,s,h=0;if(t&&typeof t._xmlToArray=="function"&&typeof t._encodePkParams=="function"&&(t=n.type(t.settings.dataSource)==="array"||n.type(t.settings.dataSource)==="object"?t.settings.dataSource:n.type(t.settings.dataSource)!=="string"?t.data():[]),n.type(t)==="object"&&this.options.responseDataKey&&(t=n.ig.findPath(t,this.options.responseDataKey)),r={},r.fields=[],r.searchField=this.options.responseDataKey,u.length>0&&!this.options.autoGenerateColumns)if(this.options.dataSource&&this.options.dataSource.schema&&this.options.dataSource.schema()&&this.options.dataSource.schema().hasOwnProperty("schema")&&typeof this.options.dataSource.schema()._xmlHasNamespaces=="function")r=this.options.dataSource.schema().schema;else for(i=0;i<u.length;i++)(u[i].unbound!==!0&&u[i].unboundDS!==!0||(this._insertUnboundColumn(u[i]),u[i].unbound!==!0))&&(r.fields[h]={},r.fields[h].name=u[i].key,r.fields[h].type=u[i].dataType,h++);else if(this.options.autoGenerateColumns){if(t&&t.tagName&&n(t).is("table")&&n(t).find("tbody tr").length>0)e=n(t).find("tbody tr")[0],n(e).find("td").each(function(){u.length>o?r.fields.push({name:u[o].key||o+1,type:u[o].dataType||"string"}):r.fields.push({name:o+1,type:"string"});o++});else if(t&&t.length&&t.length>0&&n.type(t)==="array")for(i=0;i<t.length;i++){e=t[i];for(f in e)e.hasOwnProperty(f)&&(this.columnByKey(f)!==null||this._fieldExists(f,r)||n.type(e[f])==="object"||n.type(e[f])==="array"?this.columnByKey(f)!==null&&r.fields.push({name:f,type:this.columnByKey(f).dataType}):r.fields.push({name:f,type:n.ig.getColType(e[f])}),o++);if(!this.options._recurseSchema)break}for(i=0;i<u.length;i++)(u[i].unbound===!0||u[i].unboundDS===!0)&&this._insertUnboundColumn(u[i])}if(this._trigger(this.events.schemaGenerated,null,{owner:this,schema:r,dataSource:t}),s=this.options.columnLayouts,s&&s.length&&s.length>0)for(i=0;i<s.length;i++)r.fields.push({name:s[i].key});return r},_fieldExists:function(n,t){for(var i=0;i<t.fields.length;i++)if(t.fields[i].name===n)return!0;return!1},_setupDataSource:function(t){var i;this.options.dataSource&&typeof this.options.dataSource._xmlToArray=="function"&&typeof this.options.dataSource._encodePkParams=="function"?(this.dataSource=this.options.dataSource,this.dataSource.settings.responseDataKey!==null&&(delete t.responseDataKey,t.schema&&(t.schema.searchField=this.dataSource.settings.responseDataKey)),this._tds=this.dataSource.settings.dataSource,this.dataSource.settings.dataSource=null,n.ig.util.isIE8&&t.callee&&(i=t.callee,t.callee=null),this.dataSource.settings=n.extend(!0,{},this.dataSource.settings,t),n.ig.util.isIE8&&i&&(this.dataSource.settings.callee=i),this.dataSource.settings.dataSource=this._tds,this._tds=null,t.schema&&this.dataSource._initSchema()):this.dataSource=n.type(t.dataSource)==="string"&&(this.options.jsonpRequest||n.ig.util.isJsonpUrl(t.dataSource))?new n.ig.JSONPDataSource(t):this.options.restSettings.update.url!==null||this.options.restSettings.update.template!==null||this.options.restSettings.create.url!==null||this.options.restSettings.create.template!==null||this.options.restSettings.remove.url!==null||this.options.restSettings.remove.template!==null?new n.ig.RESTDataSource(t):new n.ig.DataSource(t)},_generateColumns:function(){var i,f,r,v=this.options.columns.length>0,s=!1,e,u,o=!1,l=[],t=this.options.dataSource,h=this.options.childrenDataProperty,c,a;if(t&&typeof t._xmlToArray=="function"&&typeof t._encodePkParams=="function"?t=t.data():typeof t=="string"&&(t=this.dataSource.data()),n.type(t)==="object"&&this.options.responseDataKey&&(c=n.ig.findPath(t,this.options.responseDataKey),n.type(c)==="array"&&(t=c)),t&&t.tagName&&n(t).is("table")?(e=n(t).find("tbody tr").length,o=!0):t&&t.length&&(e=t.length),t&&e&&e===0&&this.options.columns.length===0)throw new Error(n.ig.Grid.locale.autoGenerateColumnsNoRecords);if(t&&e&&e>0)if(i=o?n(t).find("tbody tr")[0]:t[0],n.type(i)==="array"||o)for(s=this._tb_h,o&&(n(i).find("td").each(function(){l.push(n(this).text())}),i=l),r=0;r<i.length;r++)this.columnByKey(r+1)===null&&n.ig.getColType(i[r])!=="object"?(u={headerText:s?this._tb_h_arr[r]:n.ig.Grid.locale.colPrefix+(r+1),key:String(r+1),dataType:n.ig.getColType(i[r]),hidden:!1},u.headerText=(u.headerText||"").toString().trim(),this._isMultiColumnGrid&&(u.level0=!0,u.level=0,this._oldCols.push(u)),this.options.columns.push(u),this._visibleColumnsArray=undefined):s&&!this.columnByKey(r+1).headerText&&(this.columnByKey(r+1).headerText=this._tb_h_arr[r]);else for(f in i)i.hasOwnProperty(f)&&this.columnByKey(f)===null&&(a=n.ig.getColType(i[f]),(h&&h!==f||!h)&&(a!=="object"||i[f]===null)&&f!=="ig_pk"&&(u={headerText:f,key:f,dataType:n.ig.getColType(i[f]),hidden:!1},this.options.columns.push(u),this._isMultiColumnGrid&&(u.level0=!0,u.level=0,this._oldCols.push(u)),this._visibleColumnsArray=undefined));this.dataSource.schema()!==null&&this.dataSource.schema().fields().length!==0||v||(this.dataSource.settings.schema=this._generateDataSourceSchema(),this.dataSource._initSchema());this.options.width===null&&this._setContainerWidth(this.container());this._trigger("columnsgenerated",null,{owner:this,key:this.options.key})},_renderGrid:function(){var t=this.element[0],i,u,r=this.element.children("tbody"),f=this.options.accessibilityRendering;if(this._cancelRendering=!1,!this._initialized){if(f&&this.element.attr("role","grid"),this.options.virtualization===!0||this.options.rowVirtualization===!0||this.options.columnVirtualization===!0){if(this.options.height===undefined||this.options.height===null)throw new Error(n.ig.Grid.locale.virtualizationRequiresHeight);this._createVirtualGrid()}else this.options.height!==null||this.options.width!==null?this._createScrollingGrid():(i=t.id+"_container",u='<div id="'+i+'" class="'+this.css.gridClasses+" "+this.css.baseClass+'" style="position: relative"> <\/div>',this.element.wrap(u),this.element.addClass(this.css.gridTableClass),f&&this.element.attr("aria-describedby",i),this._setContainerWidth(this.container()),this.container().attr("tabIndex",this.options.tabIndex),this.options.height!==null&&this.container().css("overflow-y","hidden"));this._touch();this.options.columns.length>0&&this.options.virtualization!==!0&&this.options.rowVirtualization!==!0&&this.options.columnVirtualization!==!0&&this.options.autogenerateColumns===!1&&this.options.columns.length>0&&this._renderColgroup(this.element[0],!1,!1,this.options.autofitLastColumn);n(t).attr("cellpadding","0");n(t).attr("cellspacing","0");n(t).attr("border","0");n(t).css("table-layout","fixed");n(t).addClass(this.css.gridTableClass);this.options.autoGenerateColumns===!1&&this.options.columns.length>0&&this._headerRenderCancel!==!0&&this._renderHeader();this._renderCaption();this.options.autoAdjustHeight&&this._initializeHeights()}r.length===0&&(r=n("<tbody><\/tbody>").appendTo(t).addClass(this.css.baseContentClass).addClass(this.css.gridTableBodyClass).addClass(this.css.recordClass));this.dataSource.type()!=="htmlTableDom"&&this.dataSource.type()!=="htmlTableId"&&r.empty()},_setContainerWidth:function(t,i){var u=this._visibleColumns(),r=0;u.length>0?(r=this._calculateContainerWidth(!0),r>0&&(i?(r=0,this.container().find(".ui-iggrid-header").each(function(){r+=n(this).outerWidth()}),t.width(r)):(r+=this._calculateSpecialColumnsWidth(),t.css("width",r)))):this.options.width!==null&&t.css("width",this.options.width)},_calculateContainerWidth:function(t){for(var u=0,r=this.options.columns,i=0;i<r.length;i++)r[i].hidden!==!0&&(this._initialHiddenColumns===undefined||n.inArray(r[i],this._initialHiddenColumns)===-1)&&(u+=r[i].width?parseInt(r[i].width,10):this.options.defaultColumnWidth===null?0:parseInt(this.options.defaultColumnWidth,10));return this.options.height!==null&&u>0&&t===!0&&(u+=this._scrollbarWidth()),u},_createScrollingGrid:function(){var r=this,u,i,e=this._scrollbarWidth(),f=this.id()+"_scroll",t,o='<div id="'+f+'"><\/div>';this.element.wrap(o);t=this.element.parent();this.options.accessibilityRendering&&this.element.attr("aria-describedby",f);t.addClass(this.css.gridScrollDivClass).wrap("<div id='"+this.id()+"_container'><\/div>");n.ig.util.isIE7&&t.css("padding-bottom",this._scrollbarWidth());this.container().attr("tabIndex",this.options.tabIndex).addClass(this.css.baseClass).addClass(this.css.gridClasses);this.options.width!==null?(this.container().css("width",this.options.width),this.options.width.indexOf&&this.options.width.indexOf("%")!==-1&&this.element.css("width","100%"),this.options.height!==null&&(this._addHorizontalScrollBar(t),this.scrollContainer().css("overflow-x","hidden"),u=t.width(),i=this._getHScrollContainerInner().width(),t.bind("scroll",function(){var f=n(this),o=r._hscrollbarcontent(),t=f.scrollLeft(),s=o.scrollLeft();t!==s&&(i===0&&(i=r._getHScrollContainerInner().width()),t+u>i+e?f.scrollLeft(s):o.scrollLeft(t))}))):(this._setContainerWidth(this.container()),this.scrollContainer().css("overflow-x","hidden"));this.container().css("position","relative");this.options.height!==null&&(this.scrollContainer().css("overflow-y","auto"),this.options.autoAdjustHeight?this.container().css("height",this.options.height):this.scrollContainer().css("height",this.options.height))},_touch:function(){var t=this.id(),n=this.scrollContainer();n.length!==1&&(n=this._vdisplaycontainer());n.length&&(n.attr("data-scroll","true").attr("data-oneDirection","true"),this._hscrollbarcontent()[0]?n.attr("data-xScroller","#"+t+"_hscroller"):this._vhorizontalcontainer()[0]&&n.attr("data-xScroller","#"+t+"_horizontalScrollContainer"),this._scrollContainer()[0]&&n.attr("data-yScroller","#"+t+"_scrollContainer"),typeof Modernizr=="object"&&Modernizr.touch===!0&&this.element.igScroll!==undefined&&n.css("overflow-y","hidden"))},_createVirtualGrid:function(){var i=this.id(),t,u,l=n.ig.util.isWebKit?"width=100%":"",e,h,o,r=0,f='<div id="'+i+'_container" style="margin:0px; border:0px; padding:0px;"><table border="0" cellspacing="0" cellpadding="0" class="ui-iggrid-layout-helper" style="border-spacing:0px" id="'+i+'_virtualContainer" ><tbody><tr><td colspan="2" style="border-width:0px"><div id="'+i+'_headers_v" style="overflow:hidden;"><\/div><\/td><\/tr><tr><td style="border-width:0px;"><div id="'+i+'_displayContainer"><\/td>$verticalMarkup$<\/tr>$horizontalMarkup$<\/tbody><\/table><\/div>',s,c='<tr><td colspan="2" style="border-width: 0px"><div id="'+i+'_horizontalScrollContainer"><\/div><\/td><\/tr>';o=this._scrollbarWidth();n.ig.util.isIE&&(o+=1);s=parseInt(this.options.height,10)>0?'<td style="border-width: 0px;"><div id="'+i+'_scrollContainer" style="overflow:scroll; overflow-x:hidden; width: '+o+"px; height:"+this.options.height+';"><\/div><\/td>':'<td style="border-width: 0px;"><div id="'+i+'_scrollContainer" style="overflow:scroll; overflow-x:hidden; width: '+o+'px;"><\/div><\/td>';this.options.virtualization===!0?f=f.replace("$verticalMarkup$",s).replace("$horizontalMarkup$",c):this.options.rowVirtualization===!0?f=f.replace("$verticalMarkup$",s).replace("$horizontalMarkup$",""):this.options.columnVirtualization===!0&&(f=f.replace("$horizontalMarkup$",c).replace("$verticalMarkup$",""));(this.options.virtualization===!0||this.options.columnVirtualization===!0)&&this.element.css("width","100%");this.element.wrap(f);this.container().addClass(this.css.baseClass).addClass(this.css.gridClasses);this.options.width!==null?this.container().width(this.options.width):this._setContainerWidth(this.container());this._vdisplaycontainer().append(this.element[0]);t=this;e=this._calculateContainerWidth(!1);r=this.options.width!==null?parseInt(this.options.width,10):e;this.options.height!==null&&this.options.width!==null&&(r-=this._scrollbarWidth());r<=0&&(r=undefined);r>0&&this.options.expandColWidth&&!this.options.width&&(r+=this.options.expandColWidth);n("<colgroup><col "+(r<=0?l:'width="'+r+'"')+'><\/col><col width="'+this._scrollbarWidth()+'"><\/col><\/colgroup>').prependTo(this._virtualcontainer());u=this.options.width;u&&u.indexOf&&u.indexOf("%")!==-1&&(u="100%");this._virtualcontainer().css("width",u).css("max-width",u);h='<div style="width:1px; overflow:hidden; height:'+this._totalRowCount*parseInt(this.options.avgRowHeight,10)+'px;"><\/div>';this._scrollContainer().append(h);(this.options.virtualization===!0||this.options.columnVirtualization===!0)&&this.options.width&&e>parseInt(this.options.width,10)&&this._renderHorizontalScrollContainer(e);parseInt(this.options.height,10)>0&&this._vdisplaycontainer().css("height",this.options.height).css("vertical-align","top");this._vdisplaycontainer().css("position","relative").css("width",r).css("maxWidth",r);this.options.virtualization===!0&&this.container().find("#"+i+"_headers_v").append("<a href='#' id='"+i+"_displayContainer_a' tabindex='-1' style='position:absolute;top:-100px;left:-100px'>&nbsp;<\/a>");this.options.width&&this.options.virtualization===!1&&this.options.columnVirtualization===!1?this._vdisplaycontainer().css({"overflow-y":"hidden","overflow-x":"auto"}):this._vdisplaycontainer().css("overflow","hidden");this._vdisplaycontainer().parent().bind({mouseenter:function(){t._isMouseOverVirtualTable=!0},mouseleave:function(){t._isMouseOverVirtualTable=!1}});this._documentEvents={DOMMouseScroll:function(n){var i="down",r,u;u=t.options.virtualizationMouseWheelStep===null?parseInt(t.options.avgRowHeight,10):t.options.virtualizationMouseWheelStep;r=-n.originalEvent.detail/3;r>0&&(i="up");t._isMouseOverVirtualTable&&(t._onVirtualVerticalScroll(n,u,i),n.preventDefault())},mousewheel:function(n){var i="down",r,u;u=t.options.virtualizationMouseWheelStep===null?parseInt(t.options.avgRowHeight,10):t.options.virtualizationMouseWheelStep;r=n.originalEvent.wheelDelta/120;r>0&&(i="up");t._isMouseOverVirtualTable&&(t._onVirtualVerticalScroll(n,u,i),n.preventDefault())}};n(document).bind(this._documentEvents);(this.options.virtualization===!0||this.options.rowVirtualization===!0)&&this._scrollContainer().bind({scroll:function(n){t._onVirtualVerticalScroll(n);t._virtualScrollMouseDown=!1},mousedown:function(){t._virtualScrollMouseDown=!0}});(this.options.virtualization===!0||this.options.columnVirtualization===!0)&&this._vhorizontalcontainer().bind({scroll:function(n){t._onVirtualHorizontalScroll(n)}});this._vhorizontalcontainer().length===0&&this.options.width!==null&&(this.options.width.indexOf&&this.options.width.indexOf("%")!==-1||this._addHorizontalScrollBar(this._virtualcontainer()),this._vdisplaycontainer().css("overflow-x","hidden"));this.element.height(this._scrollContainer().height());this.options.width&&this.options.width.indexOf&&this.options.width.indexOf("%")!==-1&&(this.container().find("#"+i+"_virtualContainer > colgroup > col:first").css("width","100%"),this._vhorizontalcontainer().css("width","100%"),this._vdisplaycontainer().css("width","100%").css("max-width","100%"))},_renderHorizontalScrollContainer:function(t){var r,i=this.options.width;i&&i.indexOf&&i.indexOf("%")!==-1&&(this.options.virtualization===!0||this.options.rowVirtualization===!0)||(this._vhorizontalcontainer().css("height",this._scrollbarWidth()+"px").css("overflow","scroll"),n.ig.util.isIE?this._vhorizontalcontainer().css("width",parseInt(this.options.width,10)+1).css("height","100%"):this._vhorizontalcontainer().css("width",this.options.width),r='<div style="width:'+t+'px;height:1px;"><\/div>',this._vhorizontalcontainer().append(r))},_onVirtualVerticalScroll:function(t,i,r){this._isHorizontal=!1;var u=this._scrollContainer(),f,s=n.ig.util.isIE,o=u.scrollTop(),e=this.options.virtualizationMode;(i!==undefined&&(r==="down"?u.scrollTop(o+i):u.scrollTop(o-i),o=u.scrollTop()),f=u.scrollTop()-this._oldScrollTop,Math.abs(f)<5&&n.ig.util.isFF&&!s)||((e===undefined||e==="")&&(e="continuous"),e==="fixed"?(this._startRowIndex=Math.ceil(u.scrollTop()/parseInt(this.options.avgRowHeight,10)),!s&&this._startRowIndex===this._oldStartRowIndex&&this._virtualScrollMouseDown&&(f>0&&f<parseInt(this.options.avgRowHeight,10)?(this._startRowIndex++,u.scrollTop(u.scrollTop()-f+parseInt(this.options.avgRowHeight,10))):f<0&&Math.abs(f)<parseInt(this.options.avgRowHeight,10)&&(this._startRowIndex--,u.scrollTop(u.scrollTop()-f-parseInt(this.options.avgRowHeight,10)))),this._startRowIndex>this._totalRowCount-this._virtualRowCount&&(this._startRowIndex=this._totalRowCount-this._virtualRowCount),this._startRowIndex<0&&(this._startRowIndex=0),this._oldStartRowIndex=this._startRowIndex,this._renderVirtualRecords()):e==="continuous"&&this._virtualScrollToInternal(o),this._oldScrollTop=u.scrollTop())},_scrollContainer:function(){return this._scrollContainerObj&&this._scrollContainerObj.length!==0||(this._scrollContainerObj=this.container().find("#"+this.id()+"_scrollContainer")),this._scrollContainerObj},_onVirtualHorizontalScroll:function(t){var r=this.id(),f=t===undefined,i=this._vhorizontalcontainer(),e=i.scrollLeft(),o=i[0].scrollWidth-i[0].offsetWidth,u=e-this._oldScrollLeft;if(f||!(Math.abs(u)<5)||!n.ig.util.isIE||n.ig.util.isIE){if(this.options.virtualization===!0&&this.options.virtualizationMode==="continuous"){this._setDisplayContainerScrollLeft(this._getDisplayContainerScrollLeft()+u);this._oldScrollLeft=i.scrollLeft();this.container().find("#"+r+"_headers_v").scrollLeft(this.container().find("#"+r+"_headers_v").scrollLeft()+u);this.container().find("#"+r+"_footer_container").scrollLeft(this.container().find("#"+r+"_footer_container").scrollLeft()+u);return}this._isHorizontal=!0;o>0?(this._startColIndex=Math.ceil(e*this._totalColumnCount/o),this._startColIndex=Math.min(this._startColIndex,this._totalColumnCount-this._virtualColumnCount)):this._startColIndex=0;(f||this._oldStartColIndex!==this._startColIndex)&&(this._renderVirtualRecords(),this._trigger("virtualhorizontalscroll",null,{startColIndex:this._startColIndex,endColIndex:this._startColIndex+this._virtualColumnCount-1}));this._oldScrollLeft=i.scrollLeft();this._oldStartColIndex=this._startColIndex}},_initLoadingIndicator:function(){var n;this.container().data("igLoading")?this._loadingIndicator=this.container().data("igLoading").indicator():(n=this.container().igLoading().data("igLoading"),n&&(this._loadingIndicator=n.indicator()))},_addHorizontalScrollBar:function(t){var i=n("<div id='"+this.id()+"_hscroller_container' ><\/div>").css("height",this._scrollbarWidth()+"px").css("position","relative").css("display","none").css("overflow","hidden").append(n("<div id='"+this.id()+"_hscroller' ><\/div>").css("width","100%").css("position","absolute").css("bottom","0px").css("overflow-x","scroll").css("overflow-y","scroll").append(n("<div id='"+this.id()+"_hscroller_inner' ><\/div>").css("height","1px")).bind("scroll",n.proxy(this._scrollData,this)));t&&i.insertAfter(t)},_updateVirtualHorizontalScrollbar:function(){var t,n;t=this.container().find("#"+this.id()+"_horizontalScrollContainer div");t.css("width",this._calculateContainerWidth(!1));n=this._vhorizontalcontainer();n.width()>t.width()?n.css("display","none"):n.css("display","")},_generateColumnFlatStructure:function(n){var t,i,r=[];t=n.slice(0);i=n.slice(0);this._multiColumnIdentifier=0;this._maxLevel=this._getMaxLevelRecursive(0,t);this._hiddenColumns={};this._analyzeMultiColumnHeaders(t,r,0,i,[]);this._oldCols=i;this.options.columns=r},moveColumn:function(t,i,r,u){var e=this,o,s,f,h;if(s=this._buildColumnLayoutArray(),r=r===null||r===undefined?!0:r,u=u===null||u===undefined?!0:u,f={column:t,target:i,after:r},this._oldCols?(o=this._performInternalMove(f,this._oldCols),h=jQuery.extend(!0,{},this._hiddenColumns),this._generateColumnFlatStructure(this._oldCols),this._hiddenColumns=h,this._preserveColspans(this._oldCols)):o=this._performInternalMove(f,this.options.columns),t=f.column,i=f.target,r=f.after,o===!1)throw new Error(n.ig.Grid.locale.movingNotAllowedOrIncompatible);u===!0?(this._loadingIndicator.show(),setTimeout(function(){e._columnMovingResets();e._performDomColumnMove(t,i,r,s);e._loadingIndicator.hide()},0)):(this._columnMovingResets(),this._performColumnMove(t,i,r,s))},_columnMovingResets:function(){var n,t;for(this._updateHeaderColumnIndexes(),delete this._virtualDom,delete this._visibleColumnsArray,this._headerCells=[],n=0;n<this.options.columns.length;n++)t=this.container().find("#"+this.id()+"_"+this.options.columns[n].key).data("columnIndex",n),t.data("data-mch-order",n),t.is(":visible")&&this._headerCells.push(t)},_preserveColspans:function(n){for(var r=0,t,u,i=0;i<n.length;i++)t=n[i],t.group!==undefined&&t.group!==null?(u=this._preserveColspans(t.group),t.colspan=u,r+=u):t.hidden!==!0&&r++;return r},_columnVisible:function(n){return!n.hidden},_buildColumnLayoutArray:function(){var t=0,u=0,i,l,a,f,e=0,o=this._oldCols?jQuery.extend(!0,[],this._oldCols):jQuery.extend(!0,[],this.options.columns),r,s=0,v=this.container().find("#"+this.id()+" colgroup:first>col").not("[data-skip=true]").length,h=this.container().find("#"+this.id()+(this.options.fixedHeaders===!0?"_headers ":" ")+"thead tr").length,c=[];for(h===0&&this.options.showHeader===!1&&(h=1),t=0;t<v;t++)c[t]=[];for(t=0;s<h;){for(r=[];t<o.length;){if(i=o[t],i.hidden===!0){t++;continue}for(a=i.rowspan||1,l=this._getColMarkForLevel(i),f=i.colspan||1,u=0;u<f;u++)c[e+u][s]=l;i.crs===a&&i.group?r.push.apply(r,n.grep(i.group,this._columnVisible).slice(0)):r.push(i);e+=f;t++}o=r;s++;e=0;t=0}return c},_getColMarkForLevel:function(n){return(n.crs||(n.crs=0),n.crs++,n.crs>1)?-1:n.key||n.identifier},_performInternalMove:function(n,t){var i=0,r;if(i=this._getColIdxById(t,n.column),typeof n.column=="number"&&(n.column=t[i].key||t[i].identifier),i||i===0)return(r=this._getColIdxById(t,n.target),typeof n.target=="number"&&(n.target=t[r].key||t[r].identifier,n.after=r<i?!1:!0),r||r===0)?!0&&this._rearrangeArray(t,i,1,n.after===!0?r+1:r):!1;for(i=0;i<t.length;i++)if(t[i].group&&this._performInternalMove(n,t[i].group)===!0)return!0;return!1},_getColIdxById:function(n,t){var i,r;if(typeof t=="number")return t;for(i=0;i<n.length;i++)if(r=n[i],r.key){if(r.key===t)return i}else if(r.identifier&&r.identifier===t)return i},_getCellIndexByColumnKey:function(n){var t=this._getVisibleIndexByKey(n);return t===-1?t:t+this.element.find("tbody>tr:not([data-grouprow='true']):first").children("th,td[data-skip='true'],td[data-parent]").length},_findColAreaInLayout:function(n,t,i){for(var u,f={},r=0;r<t.length;r++)if(t[r][i]===n){for(f.start=r,u=r;u<t.length;u++)if(t[u][i]!==n)break;return f.length=u-r,f}return null},_rearrangeArray:function(n,t,i,r){var f,e=t<r,u;if(t===r||t<0||r<0||t>=n.length||r>n.length)return!1;for(f=n.splice(t,i),u=0;u<f.length;u++)n.splice(e?r-i+u:r+u,0,f[u]);return!0},_moveColumnInHeader:function(n,t,i,r){for(var y,f,u,p,o,s,h,c,l,a,v=this.container().find("#"+this.id()+(this.options.fixedHeaders===!0?"_headers ":" ")+">thead"),e=0;e<r[0].length;e++)if(f=this._findColAreaInLayout(n,r,e),f&&(u=this._findColAreaInLayout(t,r,e),u))break;if(y=[f,u],this.options.showHeader===!1)return y;for(this._moveThs(v,n,t,i);++e<r[0].length;){for(l=[],a=null,c=f.start;c<f.start+f.length;c++)r[c][e]!==-1&&r[c][e]!==a&&(a=r[c][e],l.push(a));if(p=i===!0?u.start+u.length-1:u.start,r[p][e]!==-1){this._moveThs(v,l,r[p][e],i);continue}i===!0?(s=u.start+u.length,h=f.start>u.start+u.length-1?f.start:r.length,o=this._findTargetRight(s,h,e,r),o||(s=u.start+u.length-2,h=f.start>u.start+u.length-1?-1:f.start+f.length,o=this._findTargetLeft(s,h,e,r))):(s=u.start-1,h=f.start>u.start+u.length-1?-1:f.start+f.length,o=this._findTargetLeft(s,h,e,r),o||(s=u.start+1,h=f.start>u.start+u.length-1?f.start:r.length,o=this._findTargetRight(s,h,e,r)));o&&o.pos&&o.left!==undefined&&o.left!==null&&this._moveThs(v,l,r[o.pos][e],o.left)}return y},_moveColumnInBodyFooter:function(t,i,r,u){var o,s,f,h,e,c,l;for(f=t.find(">tr:not([data-container='true'],[data-grouprow='true'])"),f.length>0&&(l=f.eq(0).find("[data-parent],[data-skip='true'],th").length),s=0;s<f.length;s++){for(e=n(),h=f.eq(s),o=i.start;o<i.start+i.length;o++)e=e.add(h.children().eq(o+l));u===!0?(c=h.children().eq(r.start+r.length+l-1),e.detach().insertAfter(c)):(c=h.children().eq(r.start+l),e.detach().insertBefore(c))}this._updateVerticalScrollbarCellPadding(!0)},_findTargetRight:function(n,t,i,r){for(var f={},u=n;u>=0&&u<t&&u<r.length;u++)if(r[u][i]!==-1)return f.pos=u,f.left=!1,f},_findTargetLeft:function(n,t,i,r){for(var f={},u=n;u>=0&&u>t&&u<r.length;u--)if(r[u][i]!==-1)return f.pos=u,f.left=!0,f},_moveCols:function(t,i,r,u){for(var e=n(),o,s=t.children("[data-skip='true']").length,f=i.start;f<i.start+i.length;f++)e=e.add(t.children().eq(f+s));u===!0?(o=t.children().eq(r.start+r.length+s-1),e.detach().insertAfter(o)):(o=t.children().eq(r.start+s),e.detach().insertBefore(o))},_moveThs:function(t,i,r,u){var e,f=n(),h,s,o;if(e=t.find("th[data-mch-id='"+r+"'],th[id='"+this.id()+"_"+r+"']"),typeof i=="object")for(s=0;s<i.length;s++)h=t.find("th[data-mch-id='"+i[s]+"'],th[id='"+this.id()+"_"+i[s]+"']"),h.attr("data-vscr-padding-icrement")&&(o=h),f=f.add(h);else f=t.find("th[data-mch-id='"+i+"'],th[id='"+this.id()+"_"+i+"']"),f.attr("data-vscr-padding-icrement")&&(o=f);f.detach();u?f.insertAfter(e):f.insertBefore(e);e.attr("data-vscr-padding-icrement")&&u===!0?(f.last().css(this._padding,e.css(this._padding)).attr("data-vscr-padding-icrement",e.attr("data-vscr-padding-icrement")),e.css(this._padding,""),e.removeAttr("data-vscr-padding-icrement")):o&&(o.parent().children(":last").css(this._padding,o.css(this._padding)).attr("data-vscr-padding-icrement",o.attr("data-vscr-padding-icrement")),o.css(this._padding,""),o.removeAttr("data-vscr-padding-icrement"))},_moveSpecialThs:function(t,i,r){var e,o,u,l,s,f,h,c;for(l=this.container().find("#"+this.id()+(this.options.fixedHeaders===!0?"_headers ":" ")+"thead"),u=l.find(">tr[data-role]"),u.length>0&&(s=u.eq(0).find("[data-parent],[data-skip='true']").length),o=0;o<u.length;o++){for(f=n(),h=n(u[o]),e=t.start;e<t.start+t.length;e++)f=f.add(h.children("td,th").eq(e+s));r===!0?(c=h.children().eq(i.start+i.length+s-1),f.detach().insertAfter(c)):(c=h.children().eq(i.start+s),f.detach().insertBefore(c))}},_performDomColumnMove:function(n,t,i,r){var o=this._moveColumnInHeader(n,t,i,r),f=o[0],u=o[1],e;this._moveSpecialThs(f,u,i);this.options.fixedHeaders===!0&&this._moveCols(this.container().find("#"+this.id()+"_headers>colgroup"),f,u,i);this._moveColumnInBodyFooter(this.element.find(">tbody"),f,u,i);this._moveCols(this.element.find(">colgroup"),f,u,i);this.options.fixedFooters===!0?(e=this.footersTable(),this._moveColumnInBodyFooter(e.children("tfoot"),f,u,i),this._moveCols(e.children("colgroup"),f,u,i)):this._moveColumnInBodyFooter(this.element.find("tfoot"),f,u,i);this._trigger("_columnsmoved",null,{owner:this,start:f.start,len:f.length,index:i===!0?u.start+u.length:u.start})},_performColumnMove:function(n,t,i,r){var u=this._moveColumnInHeader(n,t,i,r),f=u[0],e=u[1];this.options.fixedHeaders===!0&&this._moveCols(this.container().find("#"+this.id()+"_headers>colgroup"),f,e,i);this._renderData();this._renderFooter();this._rerenderColgroups()},showColumn:function(n){var t=this;return(this._loadingIndicator.show(),!this._isShowingAllowed([n]))?!1:(setTimeout(function(){t._setHidden(n,!1);t._loadingIndicator.hide()},0),!0)},hideColumn:function(n){var t=this;return(this._loadingIndicator.show(),!this._isHidingAllowed([n]))?!1:(setTimeout(function(){t._setHidden(n,!0);t._loadingIndicator.hide()},0),!0)},_setHidden:function(n,t){var i;i=typeof n=="number"?this.options.columns[n]:this.columnByKey(n);i&&i.hidden!==t&&this._setHiddenColumns([i],t,!1)},_visibleAreaWidth:function(n){if(n!==undefined)this._minVAreaWidth=n;else return this._minVAreaWidth},_isShowingAllowed:function(n){if(!this.hasFixedColumns())return!0;for(var o=n.length,u=0,r,e,f,t,i=0;i<o;i++)(f=typeof n[i],t=f==="string"?this.columnByKey(n[i]):f==="number"?this.options.columns[n[i]]:n[i],t&&t.hidden)&&t.fixed&&(t.width||t.oWidth)&&(r=t.width||t.oWidth,r=parseInt(r,10),u+=r);return u!==0&&(e=this.container().outerWidth(),e-parseInt(this.fixedContainer().outerWidth(),10)-u<this._visibleAreaWidth())?!1:!0},_isHidingAllowed:function(n){if(!this.hasFixedColumns())return!0;for(var e=n.length,i,r,u=[],f=[],t=0;t<e;t++)(r=typeof n[t],i=r==="string"?this.columnByKey(n[t]):r==="number"?this.options.columns[n[t]]:n[t],i&&!i.hidden)&&(i.fixed?u.push(i):f.push(i));return u.length!==0&&this._visibleColumns(!0).length<=u.length||this._visibleColumns(!1).length<=f.length?!1:!0},_setHiddenColumns:function(t,i,r){var o=!1,u=this,h=this.options.virtualization===!0||this.options.columnVirtualization===!0||this.options.rowVirtualization===!0,y=this.options.virtualizationMode!=="continuous"&&(this.options.virtualization===!0&&this.options.width||this.options.columnVirtualization===!0),l=!1,a,v,f,c,s,e;t.length!==0&&(this._fireInternalEvent("_hidingFinishing",{columns:t,hidden:i}),h&&(l=this.options.virtualizationMode==="continuous",u._updateVirtColCounters(),l||(n.each(t,function(n,t){var r=u._virtualColumnCount;t.hidden=i;u._visibleColumnsArray=undefined;u._updateVirtColCounters();u._virtualColumnCount!==r&&(u._virtualColumnCount<r?u._detachColumn(t):u._virtualColumnCount>r&&u._attachColumn(t),o=!0,u._virtualDom=null)}),y&&(this._vheaders=undefined,this._updateVirtualHorizontalScrollbar(),this._onVirtualHorizontalScroll(),this._initialized||this._adjustLastColumnWidth(!0)),this._renderVirtualRecords())),(!h||l)&&(n.each(t,function(n,t){t.hidden=i;u._visibleColumnsArray=undefined;t.hidden?u._detachColumn(t):u._attachColumn(t)}),this._cleanupTBody(),o=!0,h?this._renderVirtualRecords():this._renderRecords()),o&&(this._initialized?this._visibleColumns().length>0&&(this._rerenderColgroups(r),this._adjustLastColumnWidth(!0),a=this._visibleColumns().length,v=n.grep(this._visibleColumns(),function(n){return n.width}).length,v===a&&(this.options.width&&parseInt(this.options.width,10)>0?this._updateGridContentWidth():(this._setContainerWidth(this.container()),h&&(f=this._calculateContainerWidth(!0),this.options.height!==null&&(f-=this._scrollbarWidth()),this._vdisplaycontainer().css("width",f).css("max-width",f))))):(this._rerenderColgroups(r),this._adjustLastColumnWidth(!0))),this._fireInternalEvent("_hidingFinished",{columns:t,hidden:i}),this.element.trigger("iggriduisoftdirty",{owner:this}),this._trigger(this.events.columnsCollectionModified,null,{owner:this}),o&&h&&this._visibleColumns().length>0&&v===a&&(this.options.virtualizationMode==="continuous"&&(f+=this._calculateSpecialColumnsWidth(),this._vdisplaycontainer().css("width",f).css("max-width",f)),this.container().find("#"+this.id()+"_virtualContainer>colgroup col").eq(0).attr("width",f),(this.options.width===null||this.options.width===undefined)&&this._setContainerWidth(this.container().find("#"+this.id()+"_headers_v"))),this._origWidth=parseInt(this.container().css("width"),10),o&&n.ig.util.isSafari&&this.options.showHeader&&this._refreshUI(),o&&(n.ig.util.isFF||n.ig.util.isIE8)&&(c=!1,n.ig.util.isIE8&&typeof this.options.width=="string"&&this.options.width.indexOf("%")!==-1&&this._refreshUI(),(this.options.fixedHeaders===!0&&this.options.height!==null||this.options.showHeader===!1)&&(e=this.element.children("colgroup").detach(),this.element.prepend(e),(this.options.width||this.options.defaultColumnWidth&&this.options.defaultColumnWidth.indexOf("%")===-1)&&(c=!0),e.find("col").each(function(){var n=this.style.width;if(n&&n.indexOf("%")===-1)return c=!1,!1})),s=this.element[0].style.overflow,this.element[0].style.overflow="hidden",setTimeout(function(){u.element[0].style.overflow=s},0),this.options.showHeader&&(e=this.headersTable().children("colgroup").detach(),this.headersTable().prepend(e),c&&(s=this.headersTable()[0].style.overflow,this.headersTable()[0].style.overflow="hidden",setTimeout(function(){u.headersTable()[0].style.overflow=s},0))),this.options.fixedFooters===!0&&this.options.height!==null&&(e=this.footersTable().children("colgroup").detach(),this.footersTable().prepend(e),c&&(s=this.footersTable()[0].style.overflow,this.footersTable()[0].style.overflow="hidden",setTimeout(function(){u.footersTable()[0].style.overflow=s},0)))))},_calculateSpecialColumnsWidth:function(){var n=0;return this.headersTable().find("> colgroup > col[data-skip=true]").each(function(){var t=this.style.width;t&&(n+=parseInt(t,10))}),n>0&&(this._origSum=n),n},_allSpecialColumnsInPercentage:function(){for(var t=this.headersTable().find("> colgroup > col[data-skip=true]"),n=0;n<t.length;n++)if(!t[n].style.width.endsWith("%"))return!1;return!0},_synchronizeHScroll:function(){var o=this.options.showHeader&&this.options.fixedHeaders===!0&&this.options.height!==null,s=this.options.showFooter&&this.options.fixedFooters===!0&&this.options.height!==null,i=this._hscrollbarcontent(),r=this.scrollContainer(),h=n("#"+this.id()+"_horizontalScrollContainer"),t=i.scrollLeft(),u,f,e;i.length===0&&h.length===1?(f=n("#"+this.id()+"_displayContainer"),t=f.scrollLeft()):(r.scrollLeft(t),t=r.scrollLeft(),i.scrollLeft(t));o&&(u=this.headersTable().parent(),u.scrollLeft(t));s&&(e=this._fixedfooters(),e.scrollLeft(t))},_updateFixedGridContentWidth:function(){var i=0,r,t;n.each(this._fixedColumns,function(n,t){var r;if(!t.width||t.width.charAt&&t.width.endsWith("%")||t.hidden)return!0;r=parseInt(t.width,10);t.fixed===!0&&(i+=r)});this._setGridFixedTablesWidth(i);this._gridHasWidthInPixels()&&(r=parseInt(this.options.width,10),t=r-parseInt(this.fixedContainer().outerWidth(),10),this._hscrollbar().css("width",t+"px"),this.options.height!==null&&(this._gridInnerWidth=t,this._gridInnerWidth=this.scrollContainer().width(),this._updateHScrollbarVisibility()))},_updateGridContentWidth:function(){var t=0,i,r,u=this.options.height!==null&&this.options.fixedHeaders===!0&&this.options.showHeader&&this._headerParent;(n.each(this._visibleColumns(),function(n,i){if(i.fixed===!0)return!0;t===undefined||!i.width||i.width.charAt&&i.width.endsWith("%")?t=undefined:t+=parseInt(i.width,10)}),t!==undefined)&&(t+=this._calculateSpecialColumnsWidth(),!u&&this._hasVerticalScrollbar&&(t-=this._scrollbarWidth()),this.options.width!==null&&this.options.height!==null&&(i=this._hscrollbarcontent(),r=i.scrollLeft()),this._setGridContentWidth(t),this.options.height!==null&&this.options.width!==null&&this._updateVerticalScrollbarCellPadding(),this.options.width!==null&&this.options.height!==null&&(i.scrollLeft(r),this._synchronizeHScroll()))},_updateVerticalScrollbarCellPadding:function(n){var r=this.options.showHeader&&this.options.fixedHeaders===!0&&this.options.height!==null,u=this.options.showFooter&&this.options.fixedFooters===!0&&this.options.height!==null,i,t;this.options.height!==null&&(r||u)&&(i=this._gridInnerWidth===undefined||this._gridContentWidth===undefined?0:this._gridInnerWidth-this._gridContentWidth,t=this._hasVerticalScrollbar?this._scrollbarWidth():0,i>=0&&(t-=i),t<0&&(t=0),this._updateVScrollbarCellPaddingHelper(t,n))},_updateVScrollbarCellPaddingHelper:function(n,t){var i=this.options.showHeader&&this.options.fixedHeaders===!0&&this.options.height!==null,r=this.options.showFooter&&this.options.fixedFooters===!0&&this.options.height!==null;i&&!t&&this._increaseLastHeaderCellVScrollbarPadding(this.headersTable(),n);r&&!t&&this._increaseLastCellVScrollbarPadding(this.footersTable(),"tfoot","td",n);this._increaseLastCellVScrollbarPadding(this.element,"tbody","td",n)},_increaseLastHeaderCellVScrollbarPadding:function(n,t){var i=n.children("thead").children("tr").not("[data-skip=true]").children("th:last-child").not("[data-skip=true]"),u=parseInt(i.first().attr("data-vscr-padding-icrement"),10),r;r=parseInt(i.first().css(this._padding),10);u&&(r-=u);this._removeHeaderCellPadding(n);i.css(this._padding,r+t);i.first().attr("data-vscr-padding-icrement",t);i.find("[data-nonpaddedindicator=right]").css(this._rtl?"margin-left":"margin-right",-parseInt(i.css(this._padding),10)+"px")},_removeHeaderCellPadding:function(n,t){var i=":not(:last)";t===!0&&(i="");n.find("thead > tr > th"+i+"[data-vscr-padding-icrement],thead > tr > td:not(:last)[data-vscr-padding-icrement]").removeAttr("data-vscr-padding-icrement").css(this._padding,"")},_removeCellPadding:function(t,i,r,u){var f,e,o,s=":not(:last)";for(u===!0&&(s=""),o=t.find(" > "+i+" > tr:first > "+r+s+"[data-vscr-padding-icrement]"),f=0;f<o.length;f++)e=n(o[f]),e.removeAttr("data-vscr-padding-icrement"),t.find(" > "+i+" > tr > "+r+":nth-child("+(e.index()+1)+")").css(this._padding,"")},_increaseLastCellVScrollbarPadding:function(n,t,i,r){var f,u=n.find(" > "+t+" > tr > "+i+":last-child"),e=parseInt(u.first().attr("data-vscr-padding-icrement"),10);this._removeCellPadding(n,t,i);f=parseInt(u.first().css(this._padding),10);e&&(f-=e);u.css(this._padding,f+r);u.first().attr("data-vscr-padding-icrement",r)},_updateHScrollbarVisibility:function(){var n=this._hscrollbar(),t=n.css("display")==="none";n.css("display","");this._gridInnerWidth<this._gridContentWidth?(this.options.virtualizationMode==="continuous"&&n.length===0&&this._getHScrollContainerInner().length===0&&(this._renderHorizontalScrollContainer(this._calculateContainerWidth(!1)),t=!0),t&&this.options.autoAdjustHeight&&this._initializeHeights()):(this.options.virtualizationMode==="continuous"&&n.length===0&&this._getHScrollContainerInner().length===1&&(this._vhorizontalcontainer().empty().attr("style",""),t=!1),n.css("display","none"),t||this.options.autoAdjustHeight&&this._initializeHeights())},_setGridContentWidth:function(n){var t=this.options,i,r=t.virtualization===!0||t.rowVirtualization===!0||t.columnVirtualization===!0;this.options.height!==null&&(n&&(this._gridContentWidth=n),this._gridContentWidth&&(i=this._hasVerticalScrollbar&&this.options.fixedHeaders?this._gridContentWidth-this._scrollbarWidth():this._gridContentWidth,this._getHScrollContainerInner().css("width",i)),this._updateHScrollbarVisibility());r===!1&&this._setGridTablesWidth(n)},_setGridFixedTablesWidth:function(n){var t=this.options.showHeader&&this.options.fixedHeaders===!0&&this.options.height!==null,i=this.options.showFooter&&this.options.fixedFooters===!0&&this.options.height!==null;this.fixedTable().width(n);t&&this.fixedHeadersTable().width(n);i&&this.fixedFootersTable().width(n)},_setGridTablesWidth:function(n){var t=this.options.showHeader&&this.options.fixedHeaders===!0&&this.options.height!==null,i=this.options.showFooter&&this.options.fixedFooters===!0&&this.options.height!==null;this.element.width(n);t&&this.headersTable().width(n);i&&this.footersTable().width(n)},_detachHiddenColumns:function(){for(var t,n=0;n<this.options.columns.length;n++)t=this.options.columns[n],t.hidden&&this._detachColumn(t)},_rerenderColgroups:function(){var t=this.options.height!==null&&this.options.fixedHeaders===!0&&this.options.showHeader,i=this.options.height!==null&&this.options.fixedFooters===!0&&this.options.showFooter,n=this.options.autofitLastColumn;t&&(this.headersTable().children("colgroup").remove(),this._renderColgroup(this.headersTable()[0],!0,!1,n));i&&(this.footersTable().children("colgroup").remove(),this._renderColgroup(this.footersTable()[0],!1,!0,n));this.element.children("colgroup").remove();this._renderColgroup(this.element[0],!1,!1,n)},_detachColumn:function(t){var i,u,r,f=this._isMultiColumnGrid;t.hidden=!1;this._visibleColumnsArray=undefined;u=this._visibleColumns();i=n.inArray(t,u);t.hidden=!0;this._visibleColumnsArray=undefined;this._initializeDetachedContainers();r=this.headersTable().children("thead").children("tr").not("[data-skip=true]");f?(this._hideMultiHeaderCells(this._headerCells,i,t.key),r=this.headersTable().children("thead").children("tr:not([data-mch-level])").not("[data-skip=true]"),this._detachCells(r,function(n){return n.children("th, td").not("[data-skip=true]")},i,this._detachedHeaderCells,t.key)):this._detachCells(r,function(n){return n.children("th, td").not("[data-skip=true]")},i,this._detachedHeaderCells,t.key);this._detachCells(this.footersTable().children("tfoot").children("tr"),function(n){return n.children("td").not("[data-skip=true]")},i,this._detachedFooterCells,t.key)},_attachColumn:function(t){var r,u=this._visibleColumns(),i=n.inArray(t,u);this._initializeDetachedContainers();this._isMultiColumnGrid?(this._showMultiHeaderCells(t.key),r=this.headersTable().children("thead").children("tr:not([data-mch-level])").not("[data-skip=true]"),this._attachCells(r,function(n){return n.children("th, td").not("[data-skip=true]")},i,this._detachedHeaderCells,t.key)):this._attachCells(this.headersTable().children("thead").children("tr").not("[data-skip=true]"),function(n){return n.children("th, td").not("[data-skip=true]")},i,this._detachedHeaderCells,t.key);this._attachCells(this.footersTable().children("tfoot").children("tr"),function(n){return n.children("td").not("[data-skip=true]")},i,this._detachedFooterCells,t.key)},_initializeDetachedContainers:function(){this._detachedContainersInitialized||(this._detachedHeaderCells={},this._detachedFooterCells={},this._detachedContainersInitialized=!0)},_getParentsMultiHeader:function(n){for(var i=this._oldCols,u=i.length,r=[],t=0;t<u;t++){if(i[t].key===n||i[t].identifier===n){r.push(i[t]);break}if(i[t].group&&this._getParentsMultiHeaderRecursive(n,i[t].group,r)===!0){r.push(i[t]);break}}return r},_getParentsMultiHeaderRecursive:function(n,t,i){for(var u=t,e=t.length,f=!1,r=0;r<e;r++){if(u[r].key===n||u[r].identifier===n){i.push(u[r]);f=!0;break}if(u[r].group&&this._getParentsMultiHeaderRecursive(n,u[r].group,i)===!0){i.push(u[r]);f=!0;break}}return f},_hideMultiHeaderCells:function(n,t,i){var e,o,h=this._getParentsMultiHeader(i),f,s,r,c=this.headersTable().find("thead > tr"),u;if(o=n[t],this._headerCells.splice(t,1),u=o.closest("tr"),u[0].style.height===""&&(u[0].style.height=u.outerHeight()+"px"),o.css("display","none"),this._hiddenColumns[i]=o,h.length>0)for(e=0;e<h.length;e++)(f=h[e],f.level!==0)&&(r=c.find("th[data-mch-id="+f.identifier+"]"),r.length===0&&(r=this.fixedHeadersTable().find("thead > tr").find("th[data-mch-id="+f.identifier+"]")),s=parseInt(r.attr("colspan"),10),s>1?(r.attr("colspan",--s),f.colspan=s):(u=r.closest("tr"),u[0].style.height===""&&(u[0].style.height=u.outerHeight()+"px"),r.attr("ishidden",1),r.css("display","none"),f.hidden=!0,f.colspan=0))},_detachCells:function(t,i,r,u,f){var h=[],o,s,e;if(t.length>0){for(o=0;o<t.length;o++)s=i(t.eq(o)),e=s.eq(r),s.length===1&&e.after(n("<"+e[0].tagName+"><\/"+e[0].tagName+">").attr("data-hiddenreplacement","true").css("height",e.height()).attr("class",e.attr("class"))),h.push(e.detach());u[f]=h}},_showMultiHeaderCells:function(n){var t,r=this._hiddenColumns[n],f=this._getParentsMultiHeader(n),u,e,i,o,s,h=this._headerCells.length,l=this.headersTable().find("thead > tr"),c;if(r!==null&&r!==undefined){for(o=r.data("data-mch-order"),t=0;t<h;t++)if(s=this._headerCells[t].data("data-mch-order"),o<s){this._headerCells.splice(t,0,r);break}if(t===h&&this._headerCells.push(r),r.css("display",""),r.removeAttr("ishidden"),f.length>0)for(t=0;t<f.length;t++)(u=f[t],u.level!==0)&&(i=l.find("th[data-mch-id="+u.identifier+"]"),i.length===0&&(i=this.fixedHeadersTable().find("thead > tr").find("th[data-mch-id="+u.identifier+"]")),c=i.attr("ishidden")==="1",e=parseInt(i.attr("colspan"),10),c?(i.removeAttr("ishidden"),i.css("display",""),u.hidden=!1,u.colspan=1):(i.attr("colspan",++e),u.colspan=e))}},_attachCells:function(n,t,i,r,u){var f,e,o,h,s;if(n.length>0){if(this.options.virtualization===!0||this.options.columnVirtualization===!0)if(f=r[u],f===null||f===undefined){for(s in r)if(r.hasOwnProperty(s)){f=r[s];delete r[s];break}}else delete r[u];else f=r[u],delete r[u];if(f===undefined||f===null)return;for(e=0;e<n.length;e++)o=t(n.eq(e)).not("[data-hiddenreplacement=true]"),i===0?o.length===0?(h=n.eq(e).find("[data-hiddenreplacement=true]"),h.after(f[e]),h.remove()):o.eq(0).before(f[e]):o.eq(i-1).after(f[e])}},_cleanupTBody:function(){var t=this.element.children("tbody");return n.ui.igGrid.speedupDOMCleanup===!1?t.empty():t.children().length>0&&(this.element[0].removeChild(t[0]),t=n("<tbody><\/tbody>").appendTo(this.element).addClass(this.css.baseContentClass).addClass(this.css.gridTableBodyClass).addClass(this.css.recordClass)),t},_captureInitiallyHiddenColumns:function(){this._initialHiddenColumns=n.grep(this.options.columns,function(n){var t=n.hidden;return n.hidden=!1,t})},getUnboundValues:function(n){var t;return n===undefined||n===null?this._unboundValues:(t=this._unboundValues[n],(t===undefined||t===null)&&(t=this.getUnboundColumnByKey(n)!==null?[]:null),t)},setUnboundValues:function(n,t){this._setRenderUndobundValues(t,n)},_setRenderUndobundValues:function(n,t,i){var r,u=this.dataSource.data(),l=u.length,e=n.length,a=!1,f="string",o=this.options.primaryKey,s,h,c;if(e!==0&&(s=this.getUnboundColumnByKey(t),s!==null)){for(this.dataSource&&this.dataSource.schema&&s.dataType&&(f=s.dataType,a=!0,h=this.dataSource.schema()),o===undefined&&(o=null),r=0;r<e;r++){if(u[r]===undefined||u[r]===null)break;a&&(c=o===null?r:u[r][o],n[r]=h._convertType(f,n[r],c,t));u[r][t]=n[r];this._addUnboundColumnValue(t,n[r],r)}if((f==="bool"||f==="boolean")&&e<l)for(r=e;r<l;r++)u[r][t]=h._convertType(f,null,c,t);(this.options.virtualization===!0||this.options.rowVirtualization===!0)&&this._scrollTo(0);i!==!0&&this._renderColumnData(t,this.dataSource.dataView())}},getUnboundColumnByKey:function(t){if(this._unboundColumns===undefined||this._unboundColumns===null||this._unboundColumns.length===0||t===null||t===undefined)return null;var i=null;return n.each(this._unboundColumns,function(n,r){if(r.key===t)return i=r,!1}),i},_renderColumnData:function(t,i){if(i.length!==0){var a=this._visibleColumns(),s=this,h,f,e,r,c,l=!1,o,u;(f=this._getVisibleIndexByKey(t),r=a[f],o=r.template&&r.template.length>0,r!==undefined&&r!==null)&&(l=r.dataType==="bool",o&&(c=this.dataSource.dataView()),h=f+this.headersTable().find(">thead>tr:eq(0)>th[data-skip=true]").length,e=this.element.find(">tbody> tr > td:not([data-skip]):nth-child("+(h+1)+")"),n.each(i,function(i,f){var h;if(f[t]===undefined)return!0;if(o?(u=s._renderTemplatedCell(c[i],r),h=u.indexOf("<td")===0?n(u).html():u):(h=s._renderCell(f[t],r,f),l===!0&&(h=h.toString())),!e[i])return!1;n(e[i]).html(h)}))}},_renderData:function(t,i){this._isDataBoundCalled===!0&&t===undefined&&t===undefined||(this._trigger(this.events.dataBound,null,{owner:this}),this._isDataBoundCalled=!1);var w=this.element,ut=this,b=!0,v=0,u,o,k,c,f,l,r,s,a=0,d=!1,g=!0,nt=this._inferOpType()==="remote",tt,h,e,y,it=!1,rt=String(this.options.templatingEngine).toLowerCase()==="jsrender",p;if((this.options.requiresDataBinding===!0||this._isToSetUnboundColumns===!0||nt)&&this._hasUnboundColumns){for(this._isToSetUnboundColumns=!1,(this._hasInitialUnboundValues===null||this._hasInitialUnboundValues===undefined)&&(this._hasInitialUnboundValues={}),u=this.options.columns,k=u.length,c=this.dataSource.data(),tt=function(t,i){n.each(t,function(n,t){t[f]=i(t,w);ut._addUnboundColumnValue(f,t[f],n)})},o=[],nt&&(this._unboundValues={}),r=0;r<k;r++)u[r].unbound===!0&&(f=u[r].key,u[r].unboundValues!==null&&u[r].unboundValues!==undefined&&n.type(u[r].unboundValues)==="array"?(this._rebindUnboundColumns===!0||u[r].unboundValues.length>0&&this._hasInitialUnboundValues[f]===undefined)&&(this._hasInitialUnboundValues[f]=!0,this._setRenderUndobundValues(u[r].unboundValues,f,!0)):u[r].formula!==null&&u[r].formula!==undefined?(s=null,n.type(u[r].formula)==="function"?s=u[r].formula:window[u[r].formula]&&typeof window[u[r].formula]=="function"&&(s=window[u[r].formula]),s&&tt(c,s)):this._unboundValues[f]&&this._unboundValues[f].length>0&&o.push(f));if(this.options.localSchemaTransform===!0&&o.length>0&&c.length>0)for(r=0;r<o.length;r++)f=o[r],c[0][f]===undefined&&this.setUnboundValues(f,this._unboundValues[f]);this.options.mergeUnboundColumns===!1&&this._mergeUnboundValues()}if(t===!1&&(g=this._trigger(this.events.requestError,null,{owner:this,message:i}),g))throw new Error(i);if(this._cancelRendering===!0){this._cancelRendering=!1;return}if(this.element.trigger("iggriduisoftdirty",{owner:this}),!this._initialized&&this.options.autoGenerateColumns===!0)for(this._generateColumns(),(this.options.virtualization===!0||this.options.columnVirtualization===!0)&&this.options.width&&(y=this._calculateContainerWidth(!1),y>parseInt(this.options.width,10)&&n("#"+this.id()+"_horizontalScrollContainer").children().length===0&&this._renderHorizontalScrollContainer(y)),r=0;r<this.options.features.length;r++)this._initFeature(this.options.features[r],this._dataOptions);if(h=w.children("tbody"),b=this._trigger(this.events.dataRendering,null,{owner:this,tbody:h}),b){if(this.options.dataSource&&this.options.dataSource.tagName&&n(this.options.dataSource).is("table")?d=!0:h=this._cleanupTBody(),this._virtualDom=null,this._initialized||(this.options.autoGenerateColumns===!0&&(this._captureInitiallyHiddenColumns(),this._visibleColumnsArray=undefined,this._updateVirtColCounters()),d&&h.empty(),this._renderHeaderCalled!==!0?(this._renderHeader(),this._renderCaption()):this.options.width!==null&&this.options.height===null&&this.scrollContainer().css("overflow-y","hidden").css("overflow-x","auto"),(this.element.find("colgroup").length===0||this.element.find("colgroup").children().length===0)&&this._renderColgroup(this.element[0],!1,!1,this.options.autofitLastColumn),this._renderFooter()),this._trigger("dataEmpty",null,{owner:this,tbody:h}),this.options.autoGenerateColumns===!1&&(this.options.columns&&this.options.columns.length===0||!this.options.columns))throw new Error(n.ig.Grid.locale.noColumnsButAutoGenerateTrue);this._tmplWrappers=rt?n.render:{};this._setTemplateDefinition(rt);(this._initialHiddenColumns===undefined||this._initialHiddenColumns.length===0)&&this.options.columns.length>0&&(this.options.virtualization===!0||this.options.rowVirtualization===!0||this.options.columnVirtualization===!0?(this._scrollContainer()[0].scrollTop=0,this._renderVirtualRecords()):this._renderRecords(),this._initialized?(this._adjustLastColumnWidth(!1),this.options.width!==null&&this.options.height!==null&&this._synchronizeHScroll()):(this.options.height!==null&&this.options.autoAdjustHeight&&this._initializeHeights(),this._adjustLastColumnWidth(!0)));this._initialized||this.options.autoAdjustHeight&&this._initializeHeights();this._initialHiddenColumns!==undefined&&this._initialHiddenColumns.length>0&&(this._setHiddenColumns(this._initialHiddenColumns,!0,!0),this._initialHiddenCells!==undefined&&this._initialHiddenCells.length>0&&n.each(this._initialHiddenCells,function(n,t){t.css("display","")}),n.each(this._initialHiddenColumns,function(n,t){t._initiallyHidden=!0}),this._initialHiddenCells=undefined,this._initialHiddenColumns=undefined,n.ig.util.isFF&&(it=!0));this._registerAdditionalEvents();this._trigger(this.events.dataRendered,null,{owner:this});this._updateVirtualScrollContainer();this._fireInternalEvent("_dataRendered");this._loadingIndicator===undefined&&this._initLoadingIndicator();this._loadingIndicator.hide()}if(this._fixScrollY&&this.scrollContainer().css("overflow-y",this.rows().length>1?"hidden":"visible"),this.options.width===null&&this.container()[0]&&this.container()[0].style.width){if(u=this.element.find("colgroup > col[data-skip]"),u.length>0)for(l=0;l<u.length;l++)v+=parseInt(u[l].style.width,10);this._origSum||(this._origSum=0);a=v-this._origSum;a<0&&(a=0);e=parseInt(this.container()[0].style.width,10)+a;this.container().css("width",e);p=this._vdisplaycontainer();p.length>0&&(p.css("width",e-this._scrollbarWidth()).css("max-width",e-this._scrollbarWidth()),this.container().find("#"+this.id()+"_headers_v").css("width",e),this._fixedfooters().css("width",e));this._origSum=v}this.options.dataSourceUrl!==null&&this._firstBind&&(this.options.dataSource=this.options.dataSourceUrl,this.dataSource.settings.dataSource=this.options.dataSourceUrl,this.dataSource.settings.type="remoteUrl",this.dataSource._runtimeType=this.dataSource.analyzeDataSource(),this._firstBind=!1);this._initialized||(this._trigger(this.events.rendered,null,{owner:this}),this._hc=this.container().find(".ui-iggrid-expandheadercell").length>0,this._initialized=!0,(document.documentMode===7||n.ig.util.isIE7)&&n.each(n("#"+this.id()+"_container colgroup col"),function(){var i=n(this),t=parseInt(this.style.width,10),r=i.outerWidth();t&&t<r&&i.width(2*t-r)}));it&&this._refreshUI();this._fireInternalEvent("_gridRendered",this.container())},_refreshUI:function(){var n=this;n.container().hide();setTimeout(function(){n.container().show()},0)},_updateVirtualScrollContainer:function(){var n=0;this._totalRowCount=this._getTotalRowCount();(this.options.virtualization||this.options.rowVirtualization)&&this._totalRowCount&&((this._avgRowHeight===undefined||this._avgRowHeight===null)&&(this._avgRowHeight=this._calculateAvgRowHeight()),this.options.showHeader&&(n=this.headersTable().height()),this._totalRowCount*this._avgRowHeight<=parseInt(this.options.height,10)-n?(this.element.height(""),this.options.virtualizationMode==="fixed"&&this.element.find(".ui-iggrid-virtualrow").height(this._avgRowHeight),this._setScrollContainerHeight(this._totalRowCount*this._avgRowHeight)):(this.element.height(this._initialVirtualHeight),this.options.virtualizationMode==="continuous"&&this._setScrollContainerHeight(this._totalRowCount*this._avgRowHeight)))},_hasColumnTemplates:function(){for(var i=!1,n,t=0;t<this.options.columns.length;t++)if(n=this.options.columns[t].template,n!==null&&n!==undefined&&n!==""&&n.length>0){i=!0;break}return i},_gridHasWidthInPixels:function(){return typeof this.options.width=="string"&&this.options.width.indexOf("%")!==-1?!1:parseInt(this.options.width,10)>0},_gridHasWidthInPercent:function(){return typeof this.options.width=="string"&&this.options.width.indexOf("%")!==-1?!0:!1},_adjustLastColumnWidth:function(n){var s=this,r=this.options.height!==null&&this.options.fixedHeaders===!0&&this.options.showHeader&&this._headerParent,u=this.options.height!==null&&this.options.fixedFooters===!0&&this.options.showFooter&&this._footerParent,h=this.options.height&&parseInt(this.options.height,10)>0,o=this._gridHasWidthInPixels(),f=this._gridHasWidthInPercent(),e=this.options.virtualization===!0||this.options.columnVirtualization===!0||this.options.rowVirtualization===!0,i,t;h&&!e&&(this._hasVerticalScrollbar=this.options.autoAdjustHeight&&this.element.height()<=this.scrollContainer().height()||!this.options.autoAdjustHeight&&this.options.avgRowHeight*this.element[0].rows.length<parseInt(this.options.height,10)?!1:!0);n?(e&&(r&&this._headerParent.css(this._padding,this._scrollbarWidth()),u&&this._footerParent.css(this._padding,this._scrollbarWidth())),(o||f)&&(this._allColumnWidthsInPixels?(i=this._totalColPixelWidth,t=this._calculateSpecialColumnsWidth(),t>0&&(this._autoadjustedColumn&&this._lastColPixelWidth?(this._autoadjustedColumn.difference<t?(this._lastColPixelWidth-=this._autoadjustedColumn.difference,i-=this._autoadjustedColumn.difference-t):this._lastColPixelWidth-=t,this._autoadjustedColumn.width=this._lastColPixelWidth,r&&this._lastHeaderCol.css("width",this._lastColPixelWidth+"px"),u&&this._lastFooterCol.css("width",this._lastColPixelWidth+"px"),this._lastDataCol.css("width",this._lastColPixelWidth+"px")):i+=t),!r&&this._gridWidthGTColWidth&&this._hasVerticalScrollbar&&(i-=this._scrollbarWidth(),this._lastColPixelWidth-=this._scrollbarWidth(),this._lastDataCol.css("width",this._lastColPixelWidth+"px"))):this._allColumnWidthsInPercentage?(i=this.container().width(),t=this._calculateSpecialColumnsWidth(),this._allSpecialColumnsInPercentage()===!0&&t>0&&(this._lastColPercentWidth=this._lastColPercentWidth-t),this._lastDataCol.css("width",this._lastColPercentWidth+"%"),r&&this._lastHeaderCol.css("width",this._lastColPercentWidth+"%"),u&&this._lastFooterCol.css("width",this._lastColPercentWidth+"%")):o?i=parseInt(s.options.width,10):f&&(i=this.container().width()),this._allColumnWidthsInPercentage&&f||(this._gridInnerWidth=e===!1?this.scrollContainer().width():this._vdisplaycontainer().width()+this._scrollbarWidth(),s._setGridContentWidth(i)))):this._setGridContentWidth();h&&!e&&(this.options.width!==null&&this.options.height!==null&&(this._hasVerticalScrollbar?this._hscrollbarcontent().css("overflow-y","scroll"):this._hscrollbarcontent().css("overflow-y","hidden")),(!this._allColumnWidthsInPercentage||!f)&&(o||f)?this._updateVerticalScrollbarCellPadding():this._hasVerticalScrollbar?(r&&this._headerParent.css(this._padding,this._scrollbarWidth()),u&&this._footerParent.css(this._padding,this._scrollbarWidth())):(r&&this._headerParent.css(this._padding,""),u&&this._footerParent.css(this._padding,"")))},_initializeHeights:function(){var n,t;this.options.height!==null&&this.options.height!==undefined&&(n=parseInt(this.options.height,10),this.hasFixedColumns()&&(this.options.showHeader&&this.options.fixedHeaders===!0&&this.options.height!==null&&(n-=this.fixedHeadersTable().height()),t=this._hscrollbar().height(),this.fixedBodyContainer().height()<n+t&&(n-=t)),this.options.height.indexOf&&this.options.height.indexOf("%")!==-1?this.scrollContainer().height("100%"):this.scrollContainer().height(n),this._initializeHeightsInternal())},_initializeHeightsInternal:function(){var e,t,u,i,r,f=!1,o=this._vdisplaycontainer(),s=this._scrollContainer();if(r=this.container().height(),this._prevContainerHeight=r,this.options.height!==null){for(e=this.container().children(":visible"),t=0,u=0;u<e.length;u++)i=n(e[u]),(i.attr("id")===undefined||i.attr("id").endsWith("_scroll")||i.attr("data-fixed-container")||i.attr("id").endsWith("_virtualContainer")||i.attr("id").endsWith("_loading"))&&i.attr("id")||!i.is(":visible")||i.data("efh")==="1"||(i.is("table")&&i.children().first().is("caption")?t+=i.children().first().outerHeight():i.css("position")!=="absolute"&&(t+=i.outerHeight()));t>0&&(this._trigger("_heightChanging",null,{ch:r,h:t}),this.scrollContainer().height(r-t),f=!0);(this.options.virtualization||this.options.rowVirtualization)&&((n.type(this.options.height)==="string"&&this.options.height.indexOf("%")!==-1||r!==parseInt(this.options.height,10))&&(this.container().height(this.options.height),n.type(this.options.height)==="string"&&this.options.height.indexOf("%")!==-1&&(r=parseInt(this.container().height(),10))),t+=this.container().find("#"+this.id()+"_headers_v").outerHeight(),t+=this.container().find("#"+this.id()+"_footers_v").outerHeight(),t+=this._fixedfooters().outerHeight(),t+=this._vhorizontalcontainer().outerHeight(),this._virtualHeightReset||(t=t*2,this._virtualHeightReset=!0),t>0&&o.height()!==r-t&&(f||this._trigger("_heightChanging",null,{ch:r,h:t}),o.height(r-t),s.height(r-t),this.element.height(r-t),this._initialVirtualHeight=r-t,f=!0));f&&this._trigger("_heightChanged",null,{ch:r,h:t})}},_registerAdditionalEvents:function(){var t="ui-state-hover",r=this.element.closest(".ui-iggrid-root").data("igGrid")||this;this.options.enableHoverStyles&&(this._hovEvts&&this.element.unbind(this._hovEvts),this._hovEvts={mousemove:function(u){for(var e,o,f=u.target;f;){if(e=f.parentNode,o=f.nodeName,o==="TR"&&e.nodeName==="TBODY")break;f=o==="TABLE"?null:e}i!==f&&(i&&n(i).attr("data-container")!=="true"&&n("td",i).removeClass(t),f&&n(f).attr("data-container")!=="true"&&u.target.id.indexOf("_scrollContainer")===-1&&u.target.parentNode.id.indexOf("_scrollContainer")===-1&&(r._cancelHoveringEffects||n("td",f).addClass(t)),i=f)},mouseleave:function(){i&&(n("td",i).removeClass(t),i=null)}},this.element.bind(this._hovEvts))},_renderColgroup:function(t,i,r,u){var v,rt=this.hasFixedColumns(),o,b,f=this._visibleColumns(),k=this.options.defaultColumnWidth,l=0,y,d=this._gridHasWidthInPixels(),g=this._gridHasWidthInPercent(),nt=d||g,tt=this.options.virtualization===!0||this.options.columnVirtualization===!0||this.options.rowVirtualization===!0,it=this.options.virtualization===!0&&this.options.virtualizationMode==="fixed"||this.options.columnVirtualization===!0,p=!1,a=!0,s,h,c,e,w;for(v=n(t).find("colgroup"),v.length===0&&(v=n("<colgroup><\/colgroup>").prependTo(t)),(tt&&this.options.virtualizationMode==="fixed"||it)&&(this._updateVirtColCounters(),f=f.slice(0,this._virtualColumnCount)),o=0;o<f.length;o++)f[o].fixed||(f[o].width?s=f[o].oWidth?f[o].oWidth:f[o].width:(s=k,f[o].width=k),s?(s.charAt&&s.endsWith("%")||(a=!1),h=parseInt(s,10),h<=0&&(h=undefined)):(h=undefined,a=!1),h?(c=n("<col><\/col>").appendTo(v).css("width",s),e=h,l+=h,f[o].width=h,s&&s.charAt&&s.endsWith("%")&&(f[o].width=f[o].width+"%")):(c=n("<col><\/col>").appendTo(v),e=undefined,p=!0),b=f[o]);!it&&u&&nt&&!p&&e?a?l<100&&(e+=100-l,c.css("width",e+"%"),this._autoadjustedColumn=f.slice(-1)[0],this._autoadjustedColumn.oWidth||(this._autoadjustedColumn.oWidth=this._autoadjustedColumn.width),this._autoadjustedColumn.width=e+"%",b.width=e+"%"):(d?y=rt?this.container().width()-this.fixedContainer().outerWidth():parseInt(this.options.width,10):g&&(y=this.container().width()),y&&y>l&&(w=y-l,e+=w,l+=w,c.css("width",e+"px"),this._autoadjustedColumn=f.slice(-1)[0],this._autoadjustedColumn.oWidth||(this._autoadjustedColumn.oWidth=this._autoadjustedColumn.width),this._autoadjustedColumn.width=e+"px",this._autoadjustedColumn.difference=w,b.width=e+"px",this._gridWidthGTColWidth=!0)):this._autoadjustedColumn=undefined;nt&&tt&&!p&&e&&(a||(e-=this._scrollbarWidth(),c.css("width",e+"px")));i&&(this._lastHeaderCol=c);r&&(this._lastFooterCol=c);i||r||(this._lastDataCol=c);this._allColumnWidthsInPercentage=a&&!p&&f.length>0;this._allColumnWidthsInPixels=!a&&!p&&f.length>0;this._allColumnWidthsInPixels?(this._lastColPixelWidth=e,this._totalColPixelWidth=l):this._allColumnWidthsInPercentage?(this._lastColPercentWidth=e,this._totalColPixelWidth=undefined):(this._lastColPixelWidth=undefined,this._totalColPixelWidth=undefined)},_renderRecords:function(t,i){var c=this,u=this.element.children("tbody"),o,r=this.dataSource.dataView(),f,e="",s=!0,h;if(this._trigger("_rowsRendering",null,{owner:this,tbody:u,vrtWnd:{start:t,end:i}}),s=this._trigger(this.events.rowsRendering,null,{owner:this,tbody:u,vrtWnd:{start:t,end:i}}),t===undefined&&(t=0,i=r.length-1),t!==undefined&&i===undefined&&(i=t,i>r.length-1&&(i=r.length-1),t=0),t<0&&(t=0),i>r.length-1&&(i=r.length-1),s){for(f=t;f<=i;f++)e+=c._renderRecord(r[f],f);!this._canreplaceinner||n.ig.util.isWebKit?(o=document.createElement("div"),o.innerHTML="<table><tbody>"+e+"<\/tbody><\/table>",h=o.firstChild.firstChild,this.element[0].replaceChild(h,u[0])):this._canreplaceinner&&MSApp.execUnsafeLocalFunction(function(){u[0].innerHTML=e});e="";this._buildVirtualDomForContinuousVirtualization();this._trigger(this.events.rowsRendered,null,{owner:this,tbody:u})}},_reapplyZebraStyle:function(n){var i,t;this.options.alternateRowStyles&&(i=this.element.children("tbody").children("tr:not([data-container],[data-grouprow])"),n=n||0,t=i.slice(n),t.filter(n%2==0?":odd":":even").addClass(this.css.recordAltClass),t.filter(n%2==0?":even":":odd").removeClass(this.css.recordAltClass),this.hasFixedColumns()&&(i=this.fixedContainer().find("tbody").children("tr:not([data-container],[data-grouprow])"),t=i.slice(n),t.filter(n%2==0?":odd":":even").addClass(this.css.recordAltClass),t.filter(n%2==0?":even":":odd").removeClass(this.css.recordAltClass)))},_buildFormatters:function(){for(var i=this.options.columns,r={},t=0;t<i.length;t++)i[t].formatter!==undefined&&(n.type(i[t].formatter)==="function"?r[i[t].key+"Formatter"]=i[t].formatter:window[i[t].formatter]&&typeof window[i[t].formatter]=="function"&&(r[i[t].key+"Formatter"]=window[i[t].formatter]));return r},_getVisibleIndexByKey:function(t){var o=this.hasFixedColumns(),u,f,r,e=this._visibleColumns(),i=-1;return o?(u=0,f=0,r=null,n.each(e,function(n,e){var o=e.fixed===!0,s=r&&r.fixed===!0;return((r===null||s!==o)&&(e.fixed===!0?u=0:f=0),r=e,e.hidden)?!0:(o!==!0?f++:u++,e.key===t?(i=o?u-1:f-1,i===-1&&(i=0),!1):void 0)})):n.each(e,function(n,r){if(r.key===t)return i=n,!1}),i},_isColumnHidden:function(n){for(var t=this.options.columns,i=t.length;i-->=0;)if(t[i].key===n)return t[i].hidden||!1;return!0},_visibleColumns:function(t){return t!==undefined?n.grep(this.options.columns,function(n){var i=n.fixed===!0;return!n.hidden&&i===t}):(this._visibleColumnsArray===undefined&&(this._visibleColumnsArray=n.grep(this.options.columns,function(n){return!n.hidden})),this._visibleColumnsArray)},_visibleMchColumns:function(t){var i=[],r=t||this._oldCols,u=this;return r?(n.each(r,function(){this.hidden&&this.hidden!==!1||(i.push(n.extend({},this)),this.group&&(i[i.length-1].group=u._visibleMchColumns(this.group)))}),i):null},_renderVirtualRecordsFixed:function(){var i,r,c,l,o,a,s,f,e,p=this.dataSource,u=p.dataView(),v=this.options.primaryKey,h=this._virtualDom===null||this._virtualDom===undefined,y=this._visibleColumns();if(this._trigger("virtualrendering",null,{isBuiltVirtualDom:!h}),(this._startRowIndex===undefined||this._startRowIndex===null)&&(this._startRowIndex=0),(this._startColIndex===undefined||this._startColIndex===null)&&(this._startColIndex=0),h)this._buildVirtualDom(),this.options.adjustVirtualHeights===!0&&this._adjustVirtualHeights();else for(i=0;i<this._virtualRowCount&&i<this._totalRowCount&&this._startRowIndex+i<u.length;i++){for(c=n.type(u[i])==="array"?n(this._renderRecord([u[this._startRowIndex+i]],i)):n(this._renderRecord(u[this._startRowIndex+i],i)),l=c.children(),r=0;r<this._virtualColumnCount;r++)this._virtualDom[i][r].innerHTML=l[r+this._startColIndex].innerHTML,this._virtualDom[i][r].className="";f=this._startRowIndex+i;e=this._virtualDom[i][0].parentNode;e.className=i%2==0&&this.options.alternateRowStyles?"ui-iggrid-virtualrow ui-ig-altrecord":"ui-iggrid-virtualrow";u[f]&&(t(v)?t(u[f].ig_pk)||e.setAttribute("data-id",u[f].ig_pk):e.setAttribute("data-id",this._kval_from_key(v,u[f])))}if(this._isHorizontal&&(this._isHorizontal=!1,(this.options.virtualization===!0||this.options.columnVirtualization===!0)&&parseInt(this.options.width,10)>0))for(this._vheaders||(o=this.headersTable().find("thead > tr > th > a > span:first-child"),this._vheaders=o.length>0?o:this.headersTable().find("thead > tr > th > span")),r=0;r<this._virtualColumnCount;r++)a=y[r+this._startColIndex].headerText,s=n(this._vheaders[r]),s.closest("th").attr("id",this.element[0].id+"_"+y[r+this._startColIndex].key),s.html(a);this._trigger("virtualrecordsrender",null,{owner:this,tbody:this.element.children("tbody"),dom:this._virtualDom,isBuiltVirtualDom:!h})},_updateVirtColCounters:function(){var n=this._visibleColumns().length;this.options.columns?(this._totalColumnCount=n,this._maxVirtualColumnCount=this.options.columns.length):(this._totalColumnCount=this.dataSource.dataView()[0].length,this._maxVirtualColumnCount=this._totalColumnCount);this.options.columnVirtualization===!1&&this.options.virtualization===!1?this._virtualColumnCount=n:this.options.width===null?this._virtualColumnCount=this._totalColumnCount:(this._virtualColumnCount=Math.ceil(parseInt(this.options.width,10)/this._avgColumnWidth()),this._maxVirtualColumnCount=Math.min(this._maxVirtualColumnCount,this._virtualColumnCount),this._virtualColumnCount=Math.min(this._totalColumnCount,this._virtualColumnCount),this._vhorizontalcontainer().children().first().css("width",this._calculateContainerWidth(!1)))},_buildVirtualDom:function(){var s=this,f="",o,r,i,l,a=this.options.accessibilityRendering,c=!1,e=this._visibleColumns(),v=this.options.primaryKey,u=this.dataSource.dataView(),h;for((this._startRowIndex===undefined||this._startRowIndex===null)&&(this._startRowIndex=0,this._startColIndex=0,this._oldStartRowIndex=0,this._oldStartColIndex=0),this._virtualDom=[],this._totalRowCount=u.length,this._virtualRowCount=this.options.height===null?this._totalRowCount:this.options.height.indexOf&&this.options.height.indexOf("%")!==-1?Math.ceil(this._vdisplaycontainer().innerHeight()/parseInt(this.options.avgRowHeight,10),10):Math.ceil(this._vdisplaycontainer().innerHeight()/parseInt(this.options.avgRowHeight,10),10),this._updateVirtColCounters(),this.options.height!==null&&this._setScrollContainerHeight(this._totalRowCount*parseInt(this.options.avgRowHeight,10)),l=function(n,t,r){for(i=0;i<r;i++)i<s._totalColumnCount&&(s._virtualDom[t][i]=n[0].cells[i])},this.element.children("tbody").empty(),r=0;r<this._virtualRowCount;r++){for(c=!1,this._virtualDom[r]=[],f="",i=this._startColIndex;i<this._virtualColumnCount+this._startColIndex;i++){if(i>=this._totalColumnCount)break;f+=a?'<td role="gridcell" aria-describedby="'+e[i].key+'"':"<td";u[r]?(this.options.autoFormat!==!1?e[i].template&&e[i].template.length?(h=this._renderTemplatedCell(u[r],e[i]),f+=h.indexOf("<td")===0?h.substring(3):">"+h,f=s._editCellStyle(f,u[r],e[i].key||i)):f+=s._addCellStyle(u[r],e[i].key||i)+">"+this._renderCell(u[r][e[i].key],e[i],u[r]):f+=s._addCellStyle(u[r],e[i].key)+">"+u[r][e[i].key],f+="<\/td>"):(c=!0,f+="><\/td>")}if(o=n("<tr>"+f+"<\/tr>").appendTo(this.element.children("tbody")),c&&o.css("visibility","hidden"),r%2==0&&this.options.alternateRowStyles&&o.addClass("ui-ig-altrecord"),o.addClass("ui-iggrid-virtualrow"),r%2==0&&this.options.alternateRowStyles&&o.addClass("ui-ig-altrecord"),a&&o.attr("role","row"),u[r]&&(t(v)?t(u[r].ig_pk)||o.attr("data-id",u[r].ig_pk):o.attr("data-id",this._kval_from_key(v,u[r]))),l(o,r,this._virtualColumnCount),r===u.length-1)break}this._updateVirtualScrollContainer();this._trigger("virtualdombuilt",null,{rows:this.element.children("tbody").children("tr")})},_adjustVirtualHeights:function(){var t=this._vdisplaycontainer(),i=t.find("tbody"),n=i.children().first().height();this.options.height!==null&&this.options.avgRowHeight!==n&&(this.options.avgRowHeight=n,this._buildVirtualDom())},_verticalScroller:function(){return this._verticalScrollerObj&&this._verticalScrollerObj.length!==0||(this._verticalScrollerObj=this._scrollContainer().children().first()),this._verticalScrollerObj},_hscrollbar:function(){return this.container().find("#"+this.id()+"_hscroller_container")},_hscrollbarcontent:function(){return this.container().find("#"+this.id()+"_hscroller")},_hscrollbarinner:function(){return this.container().find("#"+this.id()+"_hscroller_inner")},_avgColumnWidth:function(){var t=0,f=this.options.columns,i=f.length,r=this.options.defaultColumnWidth,u;if(this.options.avgColumnWidth!==null)return parseInt(this.options.avgColumnWidth,10);for(u=0;u<i;u++)t+=parseInt(f[u].width,10);if((i===0||isNaN(t))&&r)return parseInt(r,10);if(i>0&&this.options.autoGenerateColumns&&isNaN(t)){if(this.options.width===null||this.options.width===undefined)throw new Error(n.ig.DataSourceLocale.locale.columnVirtualizationRequiresWidth);return parseInt(this.options.width,10)/i}return t===0||t<r?r:t/i},_scrollData:function(){var t=this._hscrollbarcontent(),n;n=this.options.virtualization===!0||this.options.rowVirtualization===!0?this._vdisplaycontainer():this.scrollContainer();n.scrollLeft(t.scrollLeft())},_scrollHeader:function(){var n=this._hscrollbarcontent(),t=this.headersTable().parent();t.scrollLeft(n.scrollLeft())},_scrollFooter:function(){var n=this._hscrollbarcontent(),t=this._fixedfooters();t.scrollLeft(n.scrollLeft())},_renderCaption:function(){var i,t,u,r;if(this.options.caption!==null){if(this.container().find(".ui-iggrid-headercaption").length>0)return;this.options.fixedHeaders===!0&&this.options.showHeader===!0?(i=this.headersTable().children("colgroup").first(),t=i.length===0?n("<caption><\/caption>").prependTo(this.headersTable()):n("<caption><\/caption>").insertAfter(i),t.text(this.options.caption).attr("id",this.id()+"_caption").addClass(this.css.gridHeaderCaptionClass)):(r=this.scrollContainer(),u=r.length===0?n("<table><\/table>").prependTo(this.container()):n("<table><\/table>").insertBefore(r),t=n("<caption><\/caption>").appendTo(u.css("width","100%").addClass(this.css.captionTable)).text(this.options.caption).attr("id",this.id()+"_caption").addClass(this.css.gridHeaderCaptionClass));t.parent().css("margin",0)}},_renderFixedCaption:function(){var t,i;this.options.caption!==null&&(this.options.fixedHeaders===!0&&this.options.showHeader===!0&&(t=this.fixedHeadersTable().children("colgroup").first(),i=t.length===0?n("<caption><\/caption>").prependTo(this.fixedHeadersTable()):n("<caption><\/caption>").insertAfter(t),i.text(this.options.caption).attr("id",this.id()+"_caption_fixed").addClass(this.css.gridHeaderCaptionClass)),i.parent().css("margin",0))},_createHeaderColumnMarkup:function(t,i){var r=this.css.headerClass,e=this.options.accessibilityRendering,u=n("<span>"+t.headerText+"<\/span>").addClass(this.css.headerTextClass),f="<th><\/th>";return e?n(f).append(u).attr("id",this.id()+"_"+t.key).attr("role","rowheader").addClass(r).data("columnIndex",i):n(f).append(u).attr("id",this.id()+"_"+t.key).addClass(r).data("columnIndex",i)},_updateHeaderColumnIndexes:function(){var t=this,i=this.options.columns;(this.options.virtualization===!0&&this.options.virtualizationMode==="fixed"||this.options.columnVirtualization===!0)&&(i=i.slice(0,this._maxVirtualColumnCount));t._initialHiddenCells=[];n(i).each(function(n){t.container().find("#"+t.id()+"_"+this.key).data("columnIndex",n)})},_renderHeaderColumns:function(t){var i=this,r=this.options.columns;(this.options.virtualization===!0&&this.options.virtualizationMode==="fixed"||this.options.columnVirtualization===!0)&&(r=r.slice(0,this._maxVirtualColumnCount));i._initialHiddenCells=[];n(r).each(function(r){var u,f=this.key;f&&(u=i._createHeaderColumnMarkup(this,r),t.append(u),i._trigger(i.events.headerCellRendered,null,{owner:i,th:u,columnKey:this.key}),n.each(i._initialHiddenColumns,function(){if(this.key===f)return i._initialHiddenCells.push(u),u.css("display","none"),!1}))})},renderMultiColumnHeader:function(n){var t,i;if(this._origSum=0,this.options.columns=n,this.destroy(!0),this._initialized=!1,this.options.requiresDataBinding=!0,this._renderHeaderCalled=!1,this._isHierarchicalGrid&&(t=this.element.closest(".ui-iggrid-root").data("igHierarchicalGrid"),t)){if(t.element[0].id!==this.element[0].id&&this.options.key){i=t._findLayout(t.options.columnLayouts,this.options.key);i.columns=n;t._setOption("columnLayouts",t.options.columnLayouts);t._create();return}t._regevents(t.element,t)}this._create()},_renderHeader:function(){var r,u,i,h,c="",l=this.scrollContainer(),a=!0,t=this.element[0],f,o,s,e=this.options,v=e.virtualization===!0||e.rowVirtualization===!0||e.columnVirtualization===!0;this._renderHeaderCalled=!0;this.options.showHeader&&(a=this._trigger(this.events.headerRendering,null,{owner:this}),a?(i=this.id(),c="<thead><tr data-header-row><\/tr><\/thead>",t=this.container(),f=l.css("width"),this.options.showHeader&&this.options.fixedHeaders&&this.options.height!==null?(v===!1?t.length===0&&(l.removeClass(this.css.gridClasses).removeClass(this.css.baseClasses).css("width","").wrap("<div id='"+i+"_container'><\/div>"),t=this.container().addClass(this.css.baseClasses).addClass(this.css.gridClasses).css("width",f),this._isWrapped=!0):(f=this.element.parents(".ui-widget").css("width"),t=this.container().find("#"+i+"_headers_v").css("width",f),this.options.expandColWidth&&!this.options.width&&t.css("width",parseInt(f,10)+this.options.expandColWidth+"px"),e.width!==null&&(r=e.width,r.indexOf&&r.indexOf("%")!==-1&&(r="100%"),t.css("width",r).css("max-width",r).css("overflow-x","hidden"))),t=n("<table id='"+i+"_headers'><\/table>").prependTo(t).addClass(this.css.gridHeaderTableClass).attr("cellpadding",0).attr("cellspacing",0).attr("border","0"),v===!1?(o=n("<div><\/div>").prependTo(t.parent()),o.css("overflow","hidden").css("position","relative").css("white-space","nowrap"),o.addClass("ui-widget-header ui-helper-reset"),o.append(t)):this.options.rowVirtualization===!0&&t.addClass("ui-widget-header ui-helper-reset"),this._hscrollbarcontent().bind("scroll",n.proxy(this._scrollHeader,this)),this._renderColgroup(t,!0,!1,this.options.autofitLastColumn)):this.options.fixedHeaders!==!0&&this.options.showHeader&&(t=this.element),this.options.width===null&&this.options.height===null&&(t=this.element),this.options.width!==null&&this.options.height===null&&(this._fixScrollY=1,l.css("overflow-y","hidden").css("overflow-x","auto"),t=this.element),this._isMultiColumnGrid===!0?(this._headerParent=t,this._fireInternalEvent("_renderingMultiColumnHeader"),(this.options.virtualization===!0||this.options.rowVirtualization===!0)&&(this.container().find("#"+i+"_headers_v").css("position","relative").addClass("ui-widget-header ui-helper-reset").addClass(this.css.baseClasses),t.addClass(this.css.gridHeaderTableClass).attr("cellpadding",0).attr("cellspacing",0).attr("border","0"))):(this.options.showHeader&&(this.options.headerTemplate===null||this.options.headerTemplate===undefined?((this.options.virtualization===!0||this.options.rowVirtualization===!0)&&(this.container().find("#"+i+"_headers_v").css("position","relative").addClass("ui-widget-header ui-helper-reset").addClass(this.css.baseClasses),t.addClass(this.css.gridHeaderTableClass).attr("cellpadding",0).attr("cellspacing",0).attr("border","0")),this.element.find(">thead").remove(),s=t.find(">thead"),s.length===0?u=n(c).appendTo(t).children().first():(s.empty(),u=n("<tr data-header-row><\/tr>").appendTo(s)),this._renderHeaderColumns(u)):(h=this.options.headerTemplate,this.options.virtualization===!0||this.options.rowVirtualization===!0?(n(h).children().each(function(){this.appendTo(this.container().find("#"+i+"_headers"))}),u=this.headersTable().addClass(this.css.gridClasses)):u=n(c).appendTo(t).append(h))),this._headerParent=t,this._trigger(this.events.headerRendered,null,{owner:this,table:this.headersTable()}),this._headerRenderCancel=!1)):this._headerRenderCancel=!0);this._trigger("headerRenderedInternal",null,{owner:this,table:this.headersTable()})},_renderFooter:function(){var h=this.id(),u,t=this.options,o,s=h+"_footer_container",c='<tfoot class="'+this.css.gridFooterClass+'"><\/tfoot>',i=this.container().find("#"+s),f,e,a,l=this.element,r;if(l.length!==0)return i.length===0&&t.showFooter&&(a=this._trigger(this.events.footerRendering,null,{owner:this}),a&&((t.virtualization===!0||t.rowVirtualization===!0||t.columnVirtualization===!0)&&(t.height!==null&&t.height!==undefined||t.width!==null&&t.width!==undefined)?(r=this._vdisplaycontainer(),this.options.fixedFooters=!0,u=t.width,u&&u.indexOf&&u.indexOf("%")!==-1&&(u="100%"),r=n('<tr><td colspan="2" style="border-width: 0px;"><\/td><\/tr>').insertAfter(r.closest("tr")),i=n("<div><\/div>").attr("id",s).css({overflow:"hidden",position:"relative"}).addClass("ui-widget-footer").addClass(this.css.footerContainer).width(u).appendTo(r.find("td")),f=n("<table><\/table>").attr("cellpadding",0).attr("cellspacing",0).attr("border",0).appendTo(i).addClass(this.css.gridFooterTableClass).width(u).attr("id",h+"_footers"),this._renderColgroup(f,!1,!0,this.options.autofitLastColumn),n(c).appendTo(f),this.options.showFooter&&this.options.fixedFooters===!0&&this.options.height!==null&&(o=this.element.parents(".ui-widget:first"),o.length===1&&o[0].style&&(e=o[0].style.width,e&&(!e.indexOf||e.indexOf("%")===-1)&&i.css("width",e))),t.expandColWidth&&!t.width&&i.css("width",parseInt(i.width(),10)+t.expandColWidth+"px"),this._hscrollbarcontent().bind("scroll",n.proxy(this._scrollFooter,this))):t.fixedFooters===!0&&t.height!==null?(r=t.width!==null?this._hscrollbar():this.scrollContainer(),r.length===0&&(r=l),i=n("<div><\/div>").attr("id",s).css({overflow:"hidden",position:"relative","white-space":"nowrap"}).addClass(this.css.footerContainer).addClass("ui-widget-footer").insertAfter(r),f=n("<table><\/table>").attr("cellpadding",0).attr("cellspacing",0).attr("border",0).appendTo(i).addClass(this.css.gridFooterTableClass).attr("id",h+"_footers"),this._renderColgroup(f,!1,!0,this.options.autofitLastColumn),n(c).appendTo(f),t.virtualization!==!0&&t.rowVirtualization!==!0&&t.columnVirtualization!==!0&&this._hscrollbarcontent().bind("scroll",n.proxy(this._scrollFooter,this))):(r=l,i=n(c).attr("id",s).insertBefore(r.find("tbody:eq(0)"))),i.css("display","none"),this._footer=i,this._footerParent=f,this._trigger(this.events.footerRendered,null,{owner:this,table:this.footersTable()}))),i},_renderRecord:function(i,r){var h=this.options.primaryKey,c=this.options.accessibilityRendering,f=this,u="",e=this.options.columns,s,o;return u+="<tr",r%2!=0&&this.options.alternateRowStyles&&(u+=' class="'+f.css.recordAltClass+'"'),t(h)?t(i.ig_pk)||(u+=' data-id="'+i.ig_pk+'"'):u+=' data-id="'+this._kval_from_key(h,i)+'"',this.options.virtualization&&this.options.virtualizationMode==="continuous"&&(u+=' data-row-idx="'+r+'"'),u+=c?' role="row">':">",s=!0,n(e).each(function(n){e[n].hidden||e[n].fixed===!0||(s=!1,u+=c?'<td role="gridcell" aria-describedby="'+this.key+'"':"<td",e[n].template&&e[n].template.length?(o=f._renderTemplatedCell(i,this),u+=o.indexOf("<td")===0?o.substring(3):">"+o,u=f._editCellStyle(u,i,this.key)):u+=f._addCellStyle(i,this.key?this.key:n)+">"+f._renderCell(i[this.key?this.key:n],this,i),u+="<\/td>")}),s&&(u+='<td role="gridcell"><\/td>'),u+="<\/tr>"},_editCellStyle:function(n,t,i,r){var f,e,o,s,u="",h;if(!this._cellStyleSubscribers||this._cellStyleSubscribers.length===0)return n;for(h=0;h<this._cellStyleSubscribers.length;h++)u+=this._cellStyleSubscribers[h](t,i,r)+" ";return(u=u.trim(),u.length===0)?n:(f=n.lastIndexOf("<td"),e=n.indexOf("class",f),e>0?(o=n.substring(0,e+7),s=n.substring(e+7),n=o+u+" "+s):(o=n.substring(0,f+3),s=n.substring(f+3),n=o+' class="'+u+'"'+s),n)},_addCellStyle:function(n,t,i){var r="",u;if(!this._cellStyleSubscribers||this._cellStyleSubscribers.length===0)return r;for(u=0;u<this._cellStyleSubscribers.length;u++)r+=this._cellStyleSubscribers[u](n,t,i)+" ";return r=r.trim(),r.length>0?' class="'+r+'"':r},_enableHeaderCellFeature:function(t){var i;i=n.type(t)==="string"?this.container().find("#"+this.id()+"_"+t):t;i.addClass(this.css.headerCellFeatureEnabledClass)},_renderRecordInArray:function(i,r,u,f){var h=this.options.primaryKey,c=this.options.accessibilityRendering,e=this,l=!1,s=this.options.columns,o;i===null&&(i=[],l=!0);i.push("<tr");f%2!=0&&this.options.alternateRowStyles&&i.push(' class="'+e.css.recordAltClass+'"');t(h)?t(u.ig_pk)||i.push(' data-id="'+u.ig_pk+'"'):i.push(' data-id="'+this._kval_from_key(h,u)+'"');c?i.push(' role="row">'):i.push(">");n(s).each(function(n){s[n].hidden||(c?i.push('<td role="gridcell" aria-describedby="'+this.key+'" '):i.push("<td "),u[this.key]===undefined?(s[n].template&&s[n].template.length?(o=e._renderTemplatedCell(u,this),o.indexOf("<td")===0?i[i.length-1]=o.replace("<td",i[i.length-1]):i.push(">"+o),i[i.length-1]=e._editCellStyle(i[i.length-1],u,n)):i.push(e._addCellStyle(u,n)+">"+e._renderCell(u[n],this,u)),i.push("<\/td>")):(s[n].template&&s[n].template.length?(o=e._renderTemplatedCell(u,this),o.indexOf("<td")===0?i[i.length-1]=o.replace("<td",i[i.length-1]):i.push(">"+o),i[i.length-1]=e._editCellStyle(i[i.length-1],u,this.key)):i.push(e._addCellStyle(u,this.key)+">"+e._renderCell(u[this.key],this,u)),i.push("<\/td>")))});i.push("<\/tr>");l&&r.append(i.join(""))},_fixDate:function(n,t){var i,r;return!t||!n?n:(t.dataType!=="date"||n.getTime||(r=n.indexOf?n.indexOf("ate("):-1,r>0&&(i=n.substring(r+4),r=i.indexOf(")"),r>0&&(i=parseInt(i.substring(0,r),10),isNaN(i)||(n=new Date(i))))),n)},_renderCell:function(t,i,r,u,f){var e=i.dataType,o=i.format,h=this.options,s=h.autoFormat;return(t=this._fixDate(t,i),i.formatter)?i.formatter(t,r):(!o&&e==="bool"&&h.renderCheckboxes&&(o="checkbox"),o==="checkbox"&&e!=="bool"&&(o=null),e=e==="date"||e==="number"?e:"",o||(s===!0||s==="dateandnumber")&&e||s&&s===e)?n.ig.formatter(t,e,o,!0,h.enableUTCDates,u):f?t:t||t===0||t===!1?t.toString():"&nbsp;"},_renderTemplatedCell:function(t,i){var r,u=n.extend({},t);return r=t===undefined||t===null||t[i.key]===undefined?i.unbound===!0?"&nbsp;":this._renderCell(t,i,t,null,!0):this._renderCell(t[i.key],i,t,null,!0),u[i.key]=r,this._tmplWrappers[this.id()+"_"+i.key](u,i.template)},_defaultTemplateFunc:function(t,i){return n.ig.tmpl(i,t)},_setTemplateDefinition:function(t){for(var r,i=0;i<this.options.columns.length;i++)this.options.columns[i].template&&this.options.columns[i].template.length&&(r=this.id()+"_"+this.options.columns[i].key,t?n.templates(r,this.options.columns[i].template):this._tmplWrappers[r]=this._defaultTemplateFunc)},_scrollbarWidth:function(){if(!this._scrollbarWidthResolved){var t=n('<div id="'+this.id()+'_tmp"><\/div>').css({width:50,height:50,position:"absolute",top:-500,left:-500}).prependTo("body").append("<div><\/div>").find("div").css({height:100}),i,r;document.documentMode===7||n.ig.util.isIE7?(i=t.innerWidth(),t.parent().css("overflow-y","scroll"),r=t.innerWidth(),this._scrollbarWidthResolved=i-r):(t.parent().css({overflow:"auto"}),t.css({width:"100%"}),this._scrollbarWidthResolved=50-t.width());n("#"+this.id()+"_tmp").remove()}return this._scrollbarWidthResolved},_fireInternalEvent:function(n,t){for(var r,f,i,u=0;u<this.options.features.length;u++)r=this.options.features[u],r!==undefined&&r!==null&&r.name!==undefined&&(f="igGrid"+r.name,i=this.element.data(f),i!==null&&i!==undefined&&i[n]&&(t?i[n](t):i[n]()))},_initFeature:function(t){if(t&&t.name!==undefined){var i="igGrid"+t.name;if(n.type(this.element[i])!=="function")throw new Error(n.ig.Grid.locale.noSuchWidget+" "+i);this.element.data(i)&&this.element[i]("destroy");this.element[i](t);this.element.data(i)._injectGrid(this)}},_initFeatureSettings:function(t){if(t&&t.name!==undefined){var i="igGrid"+t.name;if(n.type(this.element[i])!=="function")throw new Error(n.ig.Grid.locale.noSuchWidget+" "+i);this.element.data(i)&&this.element.data(i)._injectGrid(this,!0)}},_onFeaturesSoftDirty:function(t,i){var u,r;if(i.owner.options.type==="remote")for(u=0;u<this.options.features.length;u++)r=this.element.data("igGrid"+this.options.features[u].name),r&&r!==i.owner&&r.options&&r.options.type==="local"&&r._onUIDirty&&n.type(r._onUIDirty)==="function"&&r._onUIDirty(t,i)},_kval_from_key:function(n,t){var r,u="",i;if(n.indexOf(",")!==-1)for(r=n.split(","),i=0;i<r.length;i++)u+=t[r[i]],i<r.length-1&&(u+=",");else u=t[n];return u},_rowId:function(n,t){var i=this.options.primaryKey;return i=i?this._kval_from_key(i,n):null,i||(i=t,i!==0&&(i=this.rows().length-1)),i},_inferOpType:function(){return this.options.dataSourceUrl||this.dataSource.type()==="remoteUrl"?"remote":"local"},_renderVirtualRecords:function(){this._trigger("virtualrendering");var n=this.options.virtualizationMode;(n===undefined||n==="")&&(n="continuous");n==="fixed"||this.options.columnVirtualization===!0?this._renderVirtualRecordsFixed():n==="continuous"&&(this._renderVirtualRecordsContinuous(),this._trigger("virtualrecordsrender",null,{owner:this,dom:this._virtualDom}))},_getHScrollContainerInner:function(){var n=this._hscrollbarinner();return n.length===0&&this.options.virtualizationMode==="continuous"&&(n=this.container().find("#"+this.id()+"_horizontalScrollContainer div")),n},_getScrollContainerHeight:function(){return this._scrollContainer().children(":first-child").height()},_getDisplayContainerHeight:function(){return this._vdisplaycontainer().height()},_getDisplayContainerWidth:function(){return this._vdisplaycontainer().width()},_setDisplayContainerWidth:function(n){n!==undefined&&(this._vdisplaycontainer().css("max-width",n),this._vdisplaycontainer().width(n))},_getVHeadersWidth:function(){return this.container().find("#"+this.id()+"_headers_v").width()},_setVHeadersWidth:function(n){n!==undefined&&this.container().find("#"+this.id()+"_headers_v").width(n)},_setScrollContainerHeight:function(t){var i=this._scrollContainer(),r;t!==undefined&&(i.children(":first-child").height(t),n.ig.util.isIE&&(r=function(){i.scrollTop(i.scrollTop()+2);i.scrollTop(i.scrollTop()-2)},n.ig.util.browserVersion<=8?setTimeout(function(){r()},0):r()))},_setScrollContainerScrollTop:function(n){n!==undefined&&this._scrollContainer().scrollTop(n)},_getScrollContainerScrollTop:function(){return this._scrollContainer().scrollTop()},_setDisplayContainerScrollTop:function(n){n!==undefined&&this._vdisplaycontainer().scrollTop(n)},_getDisplayContainerScrollTop:function(){return this._vdisplaycontainer().scrollTop()},_setDisplayContainerScrollLeft:function(n){n!==undefined&&this._vdisplaycontainer().scrollLeft(n)},_getDisplayContainerScrollLeft:function(){return this._vdisplaycontainer().scrollLeft()},_calculateAvgRowHeight:function(){var n=this.container().find("#"+this.id()+" > tbody").height();if(n===0&&(n=parseInt(this.options.height,10)),this.options.virtualizationMode==="fixed"){if(this._fixedAvgRowHeight)return this._fixedAvgRowHeight;this._fixedAvgRowHeight=n/this._virtualRowCount}return n/this._virtualRowCount},_getDisplayContainerVisibleArea:function(){var n=this._getDisplayContainerScrollTop(),t=this._getDisplayContainerHeight();return{top:n,bottom:n+t}},virtualScrollTo:function(t){var r,u=this._scrollContainer(),i=parseInt(t,10);n.type(t)!=="string"&&(r=this.options.virtualizationMode==="fixed"?parseInt(this.options.avgRowHeight,10):this._avgRowHeight?this._avgRowHeight:this._calculateAvgRowHeight(),t--,i=r*t,i=Math.ceil(i),this._virtualScrollToIndex=t);u.scrollTop(i)},_virtualScrollToInternal:function(n){var r,t,i,u,f;n!==this._oldScrollTop&&(r="#"+this.id(),t=this.container().find(r+" > tbody > tr:first"),i=this.container().find(r+" > tbody > tr:last"),t.length!==0&&i.length!==0)&&(u={virtualScrollerY:this._getScrollContainerScrollTop(),deltaScroll:n-this._oldScrollTop,firstRow:t,lastRow:i,firstRowDataIndex:parseInt(t.attr("data-row-idx"),0),lastRowDataIndex:parseInt(i.attr("data-row-idx"),0),visibleArea:this._getDisplayContainerVisibleArea()},f={action:"SA_INITIAL"},this._tryScroll(u,f)||this._rebuildVirtualRows(u,f),this._correctScrollPosition(this._getTotalRowsCount()))},_getTotalRowsCount:function(){return this.dataSource.dataView().length},_tryScroll:function(n,t){var i,e,u,f,r;if(t===undefined)throw new Error("scrollResult parameter should be provided");if(i=n.deltaScroll,e=n.firstRow,u=n.lastRow,f=this._getDisplayContainerHeight(),r=this._getDisplayContainerScrollTop(),i>0){if(u[0].offsetTop+u.outerHeight()>=r+i+f||isNaN(n.lastRowDataIndex)||n.lastRowDataIndex===this.dataSource.dataView().length-1)return this._setDisplayContainerScrollTop(r+i),t.action="SA_SUCCESSFUL",!0;if(i<=this._avgRowHeight*this._virtualRowCount)return i+f>this._avgRowHeight*this._virtualRowCount?(t.action="SA_NEED_SOME_PAGE",!1):(t.action="SA_NEED_NEXT_PAGE",!1)}if(i<0){if(e[0].offsetTop<=r+i||n.firstRowDataIndex===0)return this._setDisplayContainerScrollTop(r+i),t.action="SA_SUCCESSFUL",!0;if(Math.abs(i)<=this._avgRowHeight*this._virtualRowCount)return t.action="SA_NEED_PREV_PAGE",!1}return t.action="SA_NEED_SOME_PAGE",!1},_rebuildVirtualRows:function(t,i){var d,c,e,f,o,s,l,y,a,g,h,v,r,nt,p,w,b,tt,it,rt,ut,u,ft,k;if(d=this._trigger("rebuildingvirtualrows",null,{owner:this,scrollData:t,scrollResult:i}),d!==!1){for(c=t.virtualScrollerY,e=t.deltaScroll,f="#"+this.id(),o=t.visibleArea,s=this.container().find(f+" > tbody"),l=0,y=this.container().find(f+" > tbody > tr[data-container='true']"),a=0;a<y.length;a++)l+=n(y[a]).outerHeight();l>0&&(g=this._getScrollContainerHeight(),this._setScrollContainerHeight(g-l));e>0&&i.action==="SA_NEED_NEXT_PAGE"&&(h=this._getFirstVisibleTR(o),v=Math.abs(h[0].offsetTop-o.top),r=parseInt(h.attr("data-row-idx"),0),ft=r,u=parseInt(this._virtualRowCount,0)+r-1,k=!1,u>this.dataSource.dataView().length-1&&(u=this.dataSource.dataView().length-1,r=u-this._virtualRowCount+1,k=!0),s.empty(),this._renderRecords(r,u),k&&(tt=this.container().find(f+" > tbody > tr[data-row-idx='"+ft+"']"),v=tt[0].offsetTop+v),this._setDisplayContainerScrollTop(v+e));e<0&&i.action==="SA_NEED_PREV_PAGE"&&(it=this._getLastVisibleTR(o),rt=parseInt(it.attr("data-row-idx"),0),h=this._getFirstVisibleTR(o),ut=parseInt(h.attr("data-row-idx"),0),u=rt,r=u-parseInt(this._virtualRowCount,0)+1,r<0&&(r=0,u=r+this._virtualRowCount-1),s.empty(),this._renderRecords(r,u),f="#"+this.id(),nt=this.container().find(f+' > tbody > tr[data-row-idx="'+ut+'"]'),this._setDisplayContainerScrollTop(nt[0].offsetTop+e));i.action==="SA_NEED_SOME_PAGE"&&(r=Math.floor(c/this._avgRowHeight),u=r+this._virtualRowCount-1,r<0&&(r=0,u=r+this._virtualRowCount-1),u>=this.dataSource.dataView().length-1&&(u=this.dataSource.dataView().length-1,r=u-this._virtualRowCount+1),s.empty(),this._renderRecords(r,u),p=0,w=this._getScrollContainerHeight()-this._getDisplayContainerHeight(),w-3<=c&&c<=w+3&&(p=1e4),this._setDisplayContainerScrollTop(p));b=this._calculateAvgRowHeight();b>this._avgRowHeight&&(this._avgRowHeight=b);this._startRowIndex=r;this._startColIndex=0;this._trigger("virtualrecordsrender",null,{owner:this,tbody:s,dom:this._virtualDom})}},_correctScrollPosition:function(n){var f,s,t,h,i,a,r,u,e,v,c,l,o;f=this._getScrollContainerScrollTop();s=this._getScrollContainerHeight()-this._getDisplayContainerHeight();t="#"+this.id();h=this.container().find(t+" > tbody > tr:first");i=parseInt(h.attr("data-row-idx"),0);a=this.container().find(t+" > tbody > tr:last");r=parseInt(a.attr("data-row-idx"),0);u=this._getDisplayContainerVisibleArea();e=this.container().find(t+" > tbody");f===0?u.top>0?this._scrollTo(u.top,!0):i>0&&this._scrollTo(i*this._avgRowHeight,!0):f>=s-3&&f<=s+3&&(u.bottom<e.height()&&r===n-1?this._scrollTo(this._getScrollContainerScrollTop()-(e.height()-u.bottom),!0):r<n-1&&(v=n-r,this._setScrollContainerHeight(this._getScrollContainerHeight()+v*this._avgRowHeight)));c=this._getDisplayContainerScrollTop();c===0&&i===0&&this._getScrollContainerScrollTop()!==0&&this._scrollTo(0,!0);c===e.height()-this._getDisplayContainerHeight()&&r===n-1&&this._scrollTo(this._getScrollContainerHeight(),!0);this._virtualScrollToIndex!==undefined&&this._virtualScrollToIndex!==null&&(l=this.container().find(t+" > tbody > tr[data-row-idx="+this._virtualScrollToIndex+"]"),o=0,l.length===1&&i!==this._virtualScrollToIndex&&(o=l.offset().top-h.offset().top),this._virtualScrollToIndex=null,o>0&&this._vdisplaycontainer().scrollTop(o))},_scrollTo:function(n,t){t&&(this._suppressScroll=!0);this._setScrollContainerScrollTop(n)},_getFirstVisibleTR:function(t){var r="#"+this.element[0].id,i,u=t.top;return n(r+" > tbody > tr:visible").each(function(){return i=n(this),this.offsetTop+i.height()>u?!1:void 0}),i},_getLastVisibleTR:function(n){var t="#"+this.id();return this.container().find(t+" > tbody > tr:visible").filter(function(){return this.offsetTop<n.bottom}).last()},_determineVirtualRowCount:function(){var i,r=10,u,e="",t,o,s,h,c,f;for(u=this.dataSource.dataView(),r>u.length&&(r=u.length),i=n("<div><\/div>)").appendTo("body").css({position:"absolute",top:-1800,left:-1800,visibility:"hidden"}),t=0;t<r;t++)e+=this._renderRecord(u[t],t);return i.html(e),o=i.height(),s=o/r,h=this._getDisplayContainerHeight(),c=h/s,f=Math.ceil(c*3),i.remove(),this._fireInternalEvent("_virtRowCountDetermined",f),f},_getTotalRowCount:function(){return this.dataSource.dataView().length},_renderVirtualRecordsContinuous:function(){if(this._totalRowCount=this._getTotalRowCount(),this._totalRowCount===0){this._setScrollContainerHeight(0);this._virtualDom=[];return}this._virtualRowCount=this._determineVirtualRowCount();this._virtualRowCount>this._totalRowCount&&(this._virtualRowCount=this._totalRowCount);this._scrollTo(0,!0);this._renderRecords(this._virtualRowCount-1);this._avgRowHeight=this._calculateAvgRowHeight();this._setScrollContainerHeight(this._totalRowCount*this._avgRowHeight)},_rerenderVirtualRecordsContinuous:function(){var i="#"+this.id(),n,t;n=this.container().find(i+" > tbody > tr:last");t=parseInt(n.attr("data-row-idx"),0);this._renderRecords(this._startRowIndex,t);this._trigger("virtualrecordsrender",null,{owner:this,tbody:this.element.children("tbody"),dom:this._virtualDom})},_buildVirtualDomForContinuousVirtualization:function(){var i,r,n,t;if(this.options.virtualization===!0&&this.options.virtualizationMode==="continuous"){for(this._virtualDom=[],i=this.container().find("#"+this.id()+" > tbody > tr"),n=0;n<i.length;n++)for(this._virtualDom[n]=[],r=i[n].children,t=0;t<r.length;t++)this._virtualDom[n][t]=r[t];this._updateVirtualScrollContainer()}},_isFixedElement:function(n){return this.hasFixedColumns()&&n.closest("div").attr("data-fixed-container")!==undefined?!0:!1},_getColumnByTD:function(n){var r,o=0,f,e=n.closest("tr"),u={},t,i;if(e.length===0||n.attr("data-parent")||n.attr("data-skip")||(t=n.index()-e.find("td[data-parent='true'],td[data-skip='true']").length,n.is("td")&&(t-=e.find("th").length),t<0)||(i=this._visibleColumns(),i.length<=t))return null;if(this.hasFixedColumns()){for(u.index=t,f=n.closest("div").attr("data-fixed-container")!==undefined,r=0;r<i.length;r++)if((f&&i[r].fixed===!0||!f&&i[r].fixed!==!0)&&o++===t){u.column=i[r];break}}else u={column:i[t],index:t};return u},_savePersistenceData:function(t,i,r){var u=this,f=i;n.type(r)==="string"&&r.length>0&&(u=this.element.closest(".ui-iggrid-root").data("igGrid")||this,r!==u.element[0].id&&(f=i+"_"+r));u.persistenceData=u.persistenceData||{};u.persistenceData[f]=t},_getPersistenceData:function(t,i){var r=this,u=t;return n.type(i)==="string"&&i.length>0&&(r=this.element.closest(".ui-iggrid-root").data("igGrid")||this,i!==r.element[0].id&&(u=t+"_"+i)),r.persistenceData=r.persistenceData||{},r.persistenceData[u]},destroy:function(t){var r=this.container().prev(),i,e=!1,u,f;for(this._scrollHeader&&this._hscrollbarcontent().length>0&&this._hscrollbarcontent().unbind("scroll",n.proxy(this._scrollHeader,this)),this._headerInitCallbacks=[],this._footerInitCallbacks=[],this.tmpDataSource=null,i=0;i<this.options.features.length;i++)this.element.data("igGrid"+this.options.features[i].name)&&this.element["igGrid"+this.options.features[i].name]("destroy");if(r.length===0&&(r=this.container().parent(),e=!0),e?r.prepend(this.element):this.element.insertAfter(r),this.element.unbind("click",this._cellClickHandler),delete this._cellClickHandler,this.element.find("thead").empty(),this.element.find("colgroup").empty(),t!==!0&&n.Widget.prototype.destroy.call(this),this._isWrapped&&this.container().parent().data("igGrid")&&(this.container().parent().removeData("igGrid"),n.ui.igGrid.prototype.widgetFullName&&n.ui.igGrid.prototype.widgetFullName!=="igGrid"&&this.container().parent().data(n.ui.igGrid.prototype.widgetFullName)&&this.container().parent().removeData(n.ui.igGrid.prototype.widgetFullName)),this.container().remove(),this._container=null,this.element.find("tbody").empty().removeClass(this.css.gridTableBodyClass).removeClass(this.css.gridRecordClass),this.element.removeClass(this.css.gridTableClass),this._resizeContainerHandler&&this.container().length>0&&this.container()[0].detachEvent("onresize",this._resizeContainerHandler),this._documentEvents&&n(document).unbind(this._documentEvents),this.element.unbind("iggriduisoftdirty",this._uiSoftDirtyHandler),this.element.trigger(this.events.destroyed,{owner:this}),delete this._uiSoftDirtyHandler,this._resId&&clearInterval(this._resId),this._isWrapped&&this.element.remove(),this._hovEvts&&(this.element.unbind(this._hovEvts),this._hovEvts=null),t!==!0){for(this.dataSource&&(this._dataSource=null,this.dataSource=null),this._dataOptions=null,this._originalOptions=null,this._padding=null,this._originalOptions=null,this._loadingIndicator=null,this._headerParent=null,this._footerParent=null,this._footer=null,this._hovEvts=null,this._lastDataCol=null,this._lastFooterCol=null,this._lastHeaderCol=null,this.element.is("table")&&(this.element.empty(),this._initialChildren&&this._initialChildren.appendTo(this.element)),f=this.element[0].attributes,u=[],i=0;i<f.length;i++)f[i].name!=="id"&&u.push(f[i].name);for(i=0;i<u.length;i++)this.element.removeAttr(u[i]);for(i=0;i<this._initialAttributes.length;i++)this._initialAttributes[i].name!=="id"&&this.element.attr(this._initialAttributes[i].name,this._initialAttributes[i].value);return this}}});n.extend(n.ui.igGrid,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){var t=function(n){return n===null||n===undefined};n.widget("ui.igGridColumnFixing",{renderInFeatureChooser:!0,events:{columnFixing:"columnFixing",columnFixed:"columnFixed",columnUnfixing:"columnUnfixing",columnUnfixed:"columnUnfixed",columnFixingRefused:"columnFixingRefused"},css:{fixedContainer:"ui-iggrid-fixedcontainer",headerButtonIconContainer:"ui-iggrid-fixcolumn-headerbuttoncontainer",leftFixedContainer:"ui-iggrid-fixedcontainer-left",rightFixedContainer:"ui-iggrid-fixedcontainer-right",headerButtonIcon:"ui-icon ui-corner-all ui-icon-pin-w",headerButtonIconHover:"",headerButtonUnfixIcon:"ui-icon ui-corner-all ui-icon-pin-s",featureChooserIconClassFixed:"ui-icon ui-iggrid-icon-unfix",featureChooserIconClassUnfixed:"ui-icon ui-iggrid-icon-fix",unfixedTableLeft:"ui-iggrid-unfixed-table-left",unfixedTableRight:"ui-iggrid-unfixed-table-right"},internalErrors:{NotValidIndex:-1,FixingRefused:-2,AlreadyFixed:-3,AlreadyHidden:-4,UnfixingRefused:-5},options:{headerFixButtonText:n.ig.ColumnFixing.locale.headerFixButtonText,headerUnfixButtonText:n.ig.ColumnFixing.locale.headerUnfixButtonText,showFixButtons:!0,syncRowHeights:!0,scrollDelta:40,fixingDirection:"left",columnSettings:[{columnKey:null,columnIndex:null,allowFixing:!0,isFixed:!1}],featureChooserTextFixedColumn:n.ig.ColumnFixing.locale.featureChooserTextFixedColumn,featureChooserTextUnfixedColumn:n.ig.ColumnFixing.locale.featureChooserTextUnfixedColumn,minimalVisibleAreaWidth:30,fixNondataColumns:!0},scrollContainerCheckValue:2,_createWidget:function(){this._fcData={};this._tds={};this._containers={};this._colgroups={};this._isInitFC=!1;this._isFunctionsOverriden=!1;n.Widget.prototype._createWidget.apply(this,arguments)},_unfixColumnInternal:function(n,t){var i,r,u=this.grid;return i=this._trigger(this.events.columnUnfixing,null,{columnIdentifier:n,isGroupHeader:t,owner:u}),i&&(r=this.unfixColumn(n,t),this._trigger(this.events.columnUnfixed,null,{columnIdentifier:n,isGroupHeader:t,owner:u})),r},unfixColumn:function(t,i){var e,st=this,u,y,p,ht,w,b,ct=this._hasDataSkippedColumns(!0),nt,ut,o,c,k,l,lt,d,tt,it,rt,at=n.type(t),ft,vt,r,f,a=this.grid.options.columns,et=a.length,s=this.grid,yt=this.grid._fixedColumns.length,h=[],g,v,ot,pt=s.id();if(u={error:this.internalErrors.None,result:!0,col:null,columnIndex:undefined},c=[],i){for(ut=[],tt=this.grid.fixedHeadersTable().find("th[data-mch-id="+t+"]"),l=t,lt=this.grid._getMultiHeaderColumnById(t),o=lt.children,c=[],r=0;r<o.length;r++)for(d=o[r].key,c.push(d),o[r].hidden===!0?v=-1:(v=this._getVisibleIndex(o[r].key,!0),ut.push(o[r])),f=0;f<et;f++)if(a[f].key===d){h.push({cI:f,vI:v});break}o=ut}else{if(at==="number")k=t;else if(at==="string"){for(r=0;r<et;r++)if(a[r].key===t){k=r;break}if(r===et)return u.result=!1,u.error=this.internalErrors.NotValidIdentifier,u}if(e=a[k],e===null||e===undefined)return u.result=!1,u.error=this.internalErrors.NotValidIdentifier,u;if(e.fixed===!1)return u.result=!1,u.error=this.internalErrors.AlreadyFixed,u;l=e.key;c.push(l);g=this._getVisibleIndex(l,!0);tt=this.grid.container().find("#"+pt+"_"+l);u.columnIndex=k;u.col=e;h.push({cI:k,vI:g});o=[e]}if(!this.checkUnfixingAllowed(o))return u.result=!1,u.error=this.internalErrors.UnfixingRefused,u;for(y=tt.length>0?tt.outerWidth():this.grid.container().find("#"+this.grid.id()+" tbody tr:nth-child(1) td:nth-child("+(g+1)+")").outerWidth(),this._populateContainers(),it=this._containers.body,rt=this._containers.header,ft=this._containers.footer,rt||(rt=it),ft||(ft=it),p=it.unfixedContainer,y=-y,this._hasWidthInPercent()&&this.grid._allColumnWidthsInPercentage&&(y="-"+e.width),vt=st.grid._fixedColumns.length-1,ot=!0,r=h.length-1,f=0;r>-1;r--,f++)h[r].vI!==-1&&(g=h[r].vI+1,this._unfixColumnByVisibleIndex(g,y,!1,ot,l,i),ot=!1),e=a.splice(h[r].cI,1),e[0].fixed=!1,a.splice(vt-f,0,e[0]),v=-1,h[r].vI!==-1&&(v=h[r].vI+1),this.grid._onColumnFixed(h[r].cI,!1,yt-f,!1,v);for(r=0;r<c.length;r++)for(d=c[r],f=0;f<this.grid._fixedColumns.length;f++)if(this.grid._fixedColumns[f].key===d){e=st.grid._fixedColumns.splice(f,1);e[0].fixed=!1;break}if(this.grid._visibleColumnsArray=undefined,this.grid._hscrollbar().css({width:p.width()+"px",left:0}),(n.ig.util.isIE10||this._hasWidthInPercent()&&!this.grid._allColumnWidthsInPercentage)&&this.grid._hscrollbar().width(""),this.grid._fixedColumns.length!==0||ct&&this.options.fixingDirection!=="right"&&(!ct||this.options.fixNondataColumns)?this.options.syncRowHeights&&(w=this._containers.body.fixedTable,b=this._containers.body.unfixedTable,(Math.abs(w.outerHeight()-b.outerHeight())>1||Math.abs(w.find("tr:last").offset().top-b.find("tr:last").offset().top)>1)&&(this._syncRowsHeights(w,b),b.height(w.height()))):(this.options.fixingDirection==="left"&&this.unfixDataSkippedColumns(),ht=this._containers.body.fixedContainer,this._onMouseWheelHandler&&(p.unbind({keydown:this._onKeyDown,mousewheel:this._onMouseWheelHandler}),ht.unbind({mousewheel:this._onMouseWheelHandler}),this._onKeyDown=null,this._onMouseWheelHandler=null),this._containers&&this._containers.body&&this._containers.body.unfixedTable.removeClass(this.css.unfixedTableLeft).removeClass(this.css.unfixedTableRight),this._DOMMouseScroll!==null&&this._DOMMouseScroll!==undefined&&(p.unbind({DOMMouseScroll:this._DOMMouseScroll}),this._DOMMouseScroll=null),s.fixedContainer().remove(),this.options.fixingDirection==="right"&&p.css({"overflow-y":"auto"}),s._hscrollbar().css({width:"100%",left:0}),s.options.width===null&&s.container()[0].style.width===""&&s.container().css("width",""),rt.unfixedTable.find("thead").eq(0).find("tr[data-header-row]").eq(0).css("height","")),s._updateHeaderColumnIndexes(),s._columnMovingResets(),this._updateGridColWidths(),this.grid._hscrollbarcontent().scrollLeft(0),i)this._changeStyleHeaderButton(t,!1,i);else for(r=0;r<c.length;r++)this._changeStyleHeaderButton(c[r],!1,i);return this.grid.element.data("igGridResizing")&&this.grid._updateGridContentWidth(),nt=this.grid.element.data("igGridFeatureChooser"),nt!==undefined&&nt!==null&&nt._setSelectedState("ColumnFixing",l,!1,!1),s._adjustLastColumnWidth(!0),u},_getKeyByVisibleIndex:function(t,i){var f=this._hasDataSkippedColumns(),r,u=0,e=this.grid._visibleColumns();return r=n.grep(e,function(n){var t=n.fixed===!0;return t===i}),f&&(u=this._getDataSkippedColumnsLength(i),t-=u),r[t].key},_unfixColumnByVisibleIndex:function(t,i,r,u,f,e){var o=this.grid,s=this._containers.body,h=this._containers.header,c=this._containers.footer,l=o._isMultiColumnGrid;h||(h=s);c||(c=s);this._getElementsByDOM(t,h.fixedTable.find("thead").eq(0),"header",!1,r);this._getElementsByDOM(t,s.fixedTable.find("tbody").eq(0),"body",!1,r);this._getElementsByDOM(t,c.fixedTable.find("tfoot").eq(0),"footer",!1,r);this._getColgroups(t,!0);r&&(this._tds.header.length>0?i=n(this._tds.header[0]).outerWidth():this._tds.body.length>0&&(i=n(this._tds.body[0]).outerWidth()),i=-i);this._detachColgroups(!0);this._tds.header.detach();this._tds.body.detach();this._tds.footer.detach();(u||r)&&this._syncWidth(i);this._attachColgroups(!0);o.options.showHeader&&this._unfixHeaderColumn();this._unfixBodyColumn(t);this._unfixFooterColumn(t);o.options.showHeader&&l&&u&&this._unfixMultiColumnHeader(f,e)},_setOption:function(t,i){i!==this.options[t]&&(n.Widget.prototype._setOption.apply(this,arguments),t==="minimalVisibleAreaWidth"&&this.grid._visibleAreaWidth(i))},unfixDataSkippedColumns:function(){var n,t,i=this.grid._isMultiColumnGrid,r=this._hasDataSkippedColumns();if(this.options.fixingDirection==="left"&&r)for(t=this._getDataSkippedColumnsLength(!0),i&&this._unfixMultiColumnHeaderDataSkip(),this.grid._hasFixedDataSkippedColumns=!1,n=t-1;n>-1;n--)this._unfixColumnByVisibleIndex(n+1,null,!0),this.grid._onColumnFixed(-1,!1,0,!1)},unfixAllColumns:function(){var t,r,e=this,i=[],o=this.grid._isMultiColumnGrid,u=this.grid._fixedColumns,f=u.length;if(f>0){if(o)r=this.grid.fixedHeadersTable().find("thead tr[data-mch-level]:nth-child(1) th"),r.each(function(t,r){var f=n(r),u,o=!0;u=f.attr("data-mch-id");u===undefined&&(u=f.attr("id").replace(e.grid.id()+"_",""),o=!1);i.push({id:u,isGroupHeader:o})});else for(t=0;t<f;t++)i.push({id:u[t].key,isGroupHeader:undefined});if(i.length>0)for(t=i.length-1;t>=0;t--)this.unfixColumn(i[t].id,i[t].isGroupHeader)}},_unfixMultiColumnHeaderDataSkip:function(){var n,i,r,u,f,e=this.grid._maxLevel,t=this._containers.header;if(t||(t=this._containers.body),u=t.unfixedTable.find("thead"),f=this.grid.container().find("#"+t.unfixedTable.attr("id")+"_fixed").find("thead"),this._hasDataSkippedColumns()&&this.options.fixingDirection==="left")for(r=this._getDataSkippedColumnsLength(!0),n=r-1;n>-1;n--)i=f.find("tr[data-mch-level="+e+"] th[data-skip]:nth-child("+(n+1)+")"),i.detach(),i.prependTo(u.find("tr[data-mch-level="+e+"]"))},_unfixMultiColumnHeader:function(n,t){var u=this.grid,i,s,l=u.id(),h,r,c,f,e,o;if(this._containers.header?(o=this._containers.header.unfixedTable,e=this._containers.header.fixedTable):(o=this._containers.body.unfixedTable,e=this._containers.body.fixedTable),f=o.find("thead"),c=e.find("thead"),h=u._maxLevel,t){for(r=u._oldCols,i=0;i<r.length;i++)if(r[i].identifier===n){r[i].fixed=!1;this._unfixMCHColumn(r[i],c,f);break}}else s=this.grid.container().find("#"+l+"_"+n),s.detach().prependTo(f.find("tr[data-mch-level="+h+"]"))},_updateGridColWidths:function(){var u=0,f,n,r,t,i=this.grid;if(i._allColumnWidthsInPixels){for(t=i._visibleColumns(),n=0;n<t.length;n++)!t[n].fixed&&t[n].width&&(r=parseInt(t[n].width,10),u+=r,f=r);i._lastColPixelWidth=f;i._totalColPixelWidth=u}},_unfixMCHColumn:function(n,t,i){var e=n.level,r,o,f,u;if(e===0?r=this.grid.container().find("#"+this.grid.id()+"_"+n.key):(r=t.find("th[data-mch-id="+n.identifier+"]"),f=n.group),o=r.closest("tr").attr("data-mch-level"),r.detach(),r.prependTo(i.find("tr[data-mch-level="+o+"]")),e>0)for(u=f.length-1;u>-1;u--)this._unfixMCHColumn(f[u],t,i)},_isLastColumn:function(){var n=this._hasDataSkippedColumns(),t=this.grid._fixedColumns.length;return t===1&&!n||n&&t===0},_unfixHeaderColumn:function(){var t,i,u,f,r,e;if(e=this._containers.header?this._containers.header.unfixedTable:this._containers.body.unfixedTable,f=e.find("thead"),r=this._tds.header,i=f.find("tr:not([data-mch-level],[data-skip])"),this._hasDataSkippedColumns(!0)&&this.options.fixingDirection==="right")for(u=this._getDataSkippedColumnsLength(),t=0;t<i.length;t++)n(r[t]).insertAfter(i[t].children[u-1]);else for(t=0;t<i.length;t++)n(r[t]).prependTo(i[t])},_unfixBodyColumn:function(){var t,r,f,i,u=this._containers.body.unfixedTable,o=this._containers.body.unfixedContainer,e=u.width();if(r=this._tds.body,i=u.find("tbody tr"),this._hasDataSkippedColumns(!0)&&this.options.fixingDirection==="right")for(f=this._getDataSkippedColumnsLength(),t=0;t<i.length;t++)n(r[t]).insertAfter(i[t].children[f-1]);else i.each(function(t,i){var u=n(r[t]);u.prependTo(n(i))});o.scrollTop(0);this.grid._hscrollbarinner().css({width:(this.grid._hasVerticalScrollbar&&this.grid.options.fixedHeaders?e-this.grid._scrollbarWidth():e)+"px",left:0});this._isLastColumn()&&i.height("");this.grid.options.width===null&&this.grid._fixedColumns.length===1&&(u[0].style.width="")},_unfixFooterColumn:function(){var t,r=this._containers.footer,f,e,u,i;if(r||(r=this._containers.body),e=r.unfixedTable,u=this._tds.footer,i=e.find("tfoot tr"),this._hasDataSkippedColumns(!0)&&this.options.fixingDirection==="right")for(f=this._getDataSkippedColumnsLength(),t=0;t<i.length;t++)n(u[t]).insertAfter(i[t].children[f-1]);else i.each(function(t,i){var r=n(u[t]);r.prependTo(n(i))});this._isLastColumn()&&i.height("")},_fixColumnInternal:function(n,t){var u,i,r=this.grid;return(t===undefined||t===null)&&(t=!1),u=this._trigger(this.events.columnFixing,null,{columnIdentifier:n,isGroupHeader:t,owner:r}),u&&(i=this.fixColumn(n,t),i.error===this.internalErrors.FixingRefused||i.result===!1?this._trigger(this.events.columnFixingRefused,null,{columnIdentifier:n,isGroupHeader:t,owner:r}):this._trigger(this.events.columnFixed,null,{columnIdentifier:n,isGroupHeader:t,owner:r})),i},_getVisibleIndex:function(t,i,r){if(n.type(t)==="number")return t;var u,e,o,s,h,c=this.grid._visibleColumns(),f=0,l=this.grid._fixedColumns,a=l.length;if(i===undefined&&(h=this.grid.columnByKey(t),h&&(i=h.fixed===!0)),i)for(u=0;u<a;u++){if(e=l[u],e.key===t)break;e.hidden||f++}else{for(s=[],o=0,u=0;u<c.length;u++)c[u].fixed||(o++,s.push(c[u]));for(u=0;u<o;u++){if(s[u].key===t)break;f++}}return r?f:(this._hasDataSkippedColumns()&&(this.options.fixingDirection==="left"?i&&(f+=this._getDataSkippedColumnsLength(i)):i||(f+=this._getDataSkippedColumnsLength())),f)},checkFixingAllowed:function(n){return this.grid._visibleColumns(!1).length-n.length<1?!1:this._isFixingUnfixingAllowed(n,!0)},checkUnfixingAllowed:function(n){return this._isFixingUnfixingAllowed(n,!1)},_isFixingUnfixingAllowed:function(n,t){for(var u=n.length,f,e,r=this.grid.options.columns,o=r.length,i=0;i<o;i++)if(r[i].hidden){if(r[i].fixed&&!t){e=!0;break}if(!r[i].fixed&&t){f=!0;break}}return i===o?!0:t&&this.grid._visibleColumns(!1).length-u<1&&f||!t&&this.grid._visibleColumns(!0).length-u<1&&e?!1:!0},fixColumn:function(t,i){var u,o,p,f,r,w,c,b,k,nt,ot=n.type(t),a,s,v,st,it,rt,e=this.grid,ht=e.id(),tt,h,yt=n.type(e.options.width)==="string"&&e.options.width.indexOf("%")!==-1,ct,lt,at=0,d=parseInt(e.options.width,10),l=[],vt=!1,ut=this.grid._fixedColumns.length,g=ut===0,ft,y=this.grid.options.columns,et=y.length;if(f={error:this.internalErrors.None,result:!0,col:null,columnIndex:t,isGroupHeader:i},i)tt=this.grid.headersTable().find("th[data-mch-id="+t+"]"),a=t;else{if(ot==="number")p=t;else if(ot==="string"){for(r=0;r<et;r++)if(y[r].key===t){p=r;break}if(r===et)return f.result=!1,f.error=this.internalErrors.NotValidIdentifier,f}if(u=y[p],u===null||u===undefined)return f.result=!1,f.error=this.internalErrors.NotValidIdentifier,f;if(u.fixed===!0)return f.result=!1,f.error=this.internalErrors.AlreadyFixed,f;s=this._getVisibleIndex(u.key);a=u.key;tt=this.grid.container().find("#"+ht+"_"+a);f.columnIndex=p;f.col=u;a=u.key;l.push({cI:p,vI:s})}if(!this.checkFixingAllowed([u],i)||((isNaN(d)||yt)&&(d=this.grid.container().outerWidth()),o=tt.length===1||s===undefined?tt.outerWidth():this.grid.container().find("#"+ht+" tbody tr:nth-child(1) td:nth-child("+(s+1)+")").outerWidth(),rt=!1,u&&this.grid.element.data("igGridHiding")&&(u.oWidth!==undefined?(o=parseInt(u.oWidth,10),u.width=o):u.width&&(o=parseInt(u.width,10)),rt=!0),(u&&u.hidden||o===undefined)&&(o=0),g||(lt=this.grid.fixedContainer(),at=lt.outerWidth()),o+at+this.grid._scrollbarWidth()>=d-parseInt(this.options.minimalVisibleAreaWidth,10)))return f.result=!1,f.error=this.internalErrors.FixingRefused,f;if(this._populateContainers(),i)for(ct=this.grid._getMultiHeaderColumnById(t),c=ct.children,s=undefined,r=0;r<c.length;r++){for(c[r].hidden!==!0?((r===0||s===undefined)&&(s=this._getVisibleIndex(c[r].key,!1)),h=s):h=-1,w=0;w<et;w++)if(y[w].key===c[r].key){l.push({cI:w,vI:h});break}c[r].fixed=!0;this.grid._fixedColumns.push(c[r])}else u.fixed=!0,this.grid._fixedColumns.push(u);for(st=this._containers.body,it=this._containers.header,it||(it=st),v=g,this._hasWidthInPercent()&&e._allColumnWidthsInPercentage&&(o=u.width),g&&this.options.fixingDirection==="left"&&(vt=this._hasDataSkippedColumns(),vt&&(this.fixDataSkippedColumns(),v=!1)),ft=!0,r=0;r<l.length;r++)h=-1,l[r].vI!==-1&&(h=l[r].vI+1,this._fixColumnByVisibleIndex(h,o,v,!1,ft,t,i),ft=!1),u=y.splice(l[r].cI,1),y.splice(ut+r,0,u[0]),this.grid._onColumnFixed(l[r].cI,!0,ut+r+1,v,h),v&&h!==-1&&(v=!1);return g&&(e.options.height===null&&(this._setDataHeightCompensate(),n.ig.util.isIE&&n.ig.util.browserVersion>=9&&this._syncTableHeights()),this._containers&&this._containers.body&&(this.options.fixingDirection==="left"?this._containers.body.unfixedTable.addClass(this.css.unfixedTableLeft):this._containers.body.unfixedTable.addClass(this.css.unfixedTableRight))),this.grid._visibleColumnsArray=undefined,this.grid._updateHeaderColumnIndexes(),this.grid.options.width===null&&this.grid._fixedColumns.length===1&&(d=e.container().outerWidth(),e.container().width(d)),e._columnMovingResets(),this._updateGridColWidths(),this.grid._hscrollbarcontent().scrollLeft(0),this._changeStyleHeaderButton(a,!0,i),g&&this.options.syncRowHeights&&(b=this._containers.body.fixedTable,k=this._containers.body.unfixedTable,(Math.abs(b.outerHeight()-k.outerHeight())>1||Math.abs(b.find("tr:last").offset().top-k.find("tr:last").offset().top)>1)&&(this._syncRowsHeights(b,k),k.height(b.height()))),nt=this.grid.element.data("igGridFeatureChooser"),nt!==undefined&&nt!==null&&nt._setSelectedState("ColumnFixing",a,!0,!1),rt&&(this.grid._rerenderColgroups(),this._updateHScrollbar()),e._adjustLastColumnWidth(!0),f},_setDataHeightCompensate:function(){var t=this.grid,i=t.scrollContainer().height()-t.element.outerHeight();i>this.scrollContainerCheckValue&&t.fixedContainer().find("div[data-height-compensate]").length===0&&n('<div data-height-compensate="true"><\/div>').css("height",i).appendTo(t.fixedContainer())},fixDataSkippedColumns:function(){var t,i,r=this.grid._isMultiColumnGrid,u=this._hasDataSkippedColumns();if(this.options.fixingDirection==="left"&&u){for(i=this._getDataSkippedColumnsLength(),i>0&&(this.grid._hasFixedDataSkippedColumns=!0),t=0;t<i;t++)this._fixColumnByVisibleIndex(1,null,t===0,!0),this.grid._onColumnFixed(-1,!0,0,t===0);r&&this._fixMultiColumnHeaderDataSkip();this.grid.options.height===null&&n.ig.util.isIE&&n.ig.util.browserVersion>=9&&this._syncTableHeights();this.grid.options.height===null&&this._setDataHeightCompensate();this.grid._updateGridContentWidth()}},_fixColumnByVisibleIndex:function(t,i,r,u,f,e,o){var s=this.grid,a=s._isMultiColumnGrid,v=n.type(s.options.width)==="string"&&s.options.width.indexOf("%")!==-1,y=s.options.showHeader,p=s.options.showFooter,c=this._containers.body,h=this._containers.header,l=this._containers.footer;h||(h=c);l||(l=c);this._getElementsByDOM(t,h.unfixedTable.find("thead").eq(0),"header",r,u);this._getElementsByDOM(t,c.unfixedTable.find("tbody").eq(0),"body",r,u);this._getElementsByDOM(t,l.unfixedTable.find("tfoot").eq(0),"footer",r,u);this._getColgroups(t);r&&this.options.syncRowHeights&&(this._setHeights("header"),this._setHeights("body"),this._setHeights("footer"));u&&(f=!0,this._tds.header.length>0?i=n(this._tds.header[0]).outerWidth():this._tds.body.length>0&&(i=n(this._tds.body[0]).outerWidth()));n.ig.util.isFF&&v||this._tds.header.detach();this._tds.body.detach();this._tds.footer.detach();this._detachColgroups();r?(this._syncUnfixedWidth(i),this._renderMainFixedContainer(i)):f&&this._syncWidth(i);this._attachColgroups();this._fixBodyColumn(r);p&&this._fixFooterColumn(r);y&&(a&&f&&this._fixMultiColumnHeader(e,r,o),this._fixHeaderColumn(r),this._syncHeights(this._heights.header,h.fixedTable.find("thead").eq(0)))},_hasDataSkippedColumns:function(n){return this._hasDataSkippedColumn!==undefined?this._hasDataSkippedColumn:(this._hasDataSkippedColumn=this._getDataSkippedColumnsLength(n)>0,this._hasDataSkippedColumn)},_getDataSkippedColumnsLength:function(n){this._containers&&this._containers.body||this._populateContainers();var t=this._containers.body.unfixedTable;return n&&(t=this._containers.body.fixedTable),t.find("colgroup col[data-skip]").length},_renderMainFixedContainer:function(t){var c=this,r=this.grid,l=r.id(),a,o,v,y,p,s,e,i,u,d=r.id()+"_mainFixedContainer",f,b,k,w,h;i=n('<div id="'+d+'" data-fixed-container="true"><\/div>');i.css({overflow:"hidden",position:"relative"});f=this._containers.body.unfixedContainer;i.addClass(this.css.fixedContainer);s="left";this.options.fixingDirection==="left"?(s="left",i.addClass(this.css.leftFixedContainer),this._containers.header?i.insertBefore(this._containers.header.unfixedContainer):i.insertBefore(f),i.css({float:"left",left:0})):this.options.fixingDirection==="right"&&(s="right",i.addClass(this.css.rightFixedContainer),this._containers.header?i.insertBefore(this._containers.header.unfixedContainer):i.insertBefore(f),i.css({float:"right",right:0}));i.attr("data-fixing-direction",s);i.bind({click:n.proxy(this.grid._cellClickHandler,this.grid)});this._hasWidthInPercent()?this.grid._allColumnWidthsInPercentage?i.css("width",t):(t=t/(f.find("table").width()+t)*100,i.css("width",t+"%")):t="width:"+t+"px";o=function(r,u,f){var e,o;return w=u.find("table"),e=n('<div id="'+r+'" data-scroll="true" data-fixed-container="true"><\/div>').appendTo(i),o=n('<table id="'+w.attr("id")+'_fixed" class="'+w.attr("class")+'" style="table-layout:fixed; '+t+'" border=0 cellpadding=0 cellspacing=0><colgroup /><\/table>').appendTo(e),c._containers[f].fixedContainer=e,c._containers[f].fixedTable=o,e.css({overflow:"hidden",position:"relative"}),e};u=o(l+"_fixedBodyContainer",f,"body");r.options.height!==null&&n.ig.util.isIE&&u.find("table").height(f.find("table").height());r.options.height===null?h="100%":(h=f.height(),this.grid._hscrollbar().is(":visible")&&(h+=this.grid._hscrollbar().outerHeight()));u.height(h);v=u.find("table");n("<tbody />").appendTo(v);r.options.showHeader&&(r.options.fixedHeaders&&r.options.height!==null?(b=this._containers.header.unfixedContainer,y=o(l+"_fixedHeaderContainer",b,"header"),n("<thead />").appendTo(y.find("table")),y.prependTo(i),r._renderFixedCaption()):n("<thead />").insertBefore(u.find("tbody")));r.options.showFooter&&(r.options.fixedFooters&&r.options.height!==null?(k=this._containers.footer.unfixedContainer,p=o(l+"_fixedFooterContainer",k,"footer"),n("<tfoot />").appendTo(p.find("table")),this._containers.footer.fixedTable.css("whiteSpace",this._containers.footer.unfixedTable.css("whiteSpace")),p.appendTo(i)):n("<tfoot />").insertBefore(u.find("tbody")));r._fixedTable=v;this.options.fixingDirection==="right"&&(u.css({"overflow-y":"auto"}),f.css({"overflow-y":"hidden"}));e=function(n){var t=u.scrollTop();t+=-n*c.options.scrollDelta;t<=0&&(t=0);u.scrollTop(t);f.scrollTop(t)};this._onMouseWheelHandler=function(n){var u,f,i,t;return(u=n.originalEvent,i=u.wheelDelta,t=u.detail,f=t?i?i/t/40*t>0?1:-1:-t/3:i/120,e(f),r.options.height===null)?!0:!1};this._DOMMouseScroll=function(n){var t=-1,i;if(i=-n.originalEvent.detail/3,i>0&&(t=1),e(t),r.options.height===null)return!0;n.preventDefault()};this._onKeyDown=function(t){var i=t.keyCode===n.ui.keyCode.UP,r=t.keyCode===n.ui.keyCode.DOWN;i?e(1):r&&e(-1)};(n.ig.util.isIE||this.options.fixingDirection==="right")&&f.bind({keydown:this._onKeyDown,mousewheel:this._onMouseWheelHandler,DOMMouseScroll:this._DOMMouseScroll});f.bind({scroll:function(){var t=n(this).scrollTop();u.scrollTop(t)}});u.bind({mousewheel:this._onMouseWheelHandler,DOMMouseScroll:this._DOMMouseScroll});this.options.fixingDirection==="right"&&u.bind({scroll:function(){var t=n(this).scrollTop();f.scrollTop(t)},keydown:this._onMouseWheelHandler});r.options.width===null&&(a=parseFloat(i.css("borderRightWidth")),a>0&&this._syncUnfixedWidth(a))},_getElementsByDOM:function(n,t,i,r,u){var f=this,e=t.find("tr");r&&this.options.syncRowHeights&&(f._heights||(f._heights={}),f._heights[i]=[],e.each(function(n,t){f._heights[i].push({h:t.offsetHeight,tr:t})}));this._tds[i]=i==="header"?t.find("tr:not([data-mch-level],[data-skip]) th:nth-child("+n+"),tr:not([data-mch-level],[data-skip]) td:nth-child("+n+")"):u?t.find("th:nth-child("+n+"), td:nth-child("+n+")"):t.find("td:nth-child("+n+")")},_getColgroups:function(n,t){var i=this._containers.body.unfixedTable,r,u;t&&(i=this._containers.body.fixedTable);this._getColgroup(n,i,"body");this._containers.header&&(r=t?this._containers.header.fixedTable:this._containers.header.unfixedTable,this._getColgroup(n,r,"header"));this._containers.footer&&(u=t?this._containers.footer.fixedTable:this._containers.footer.unfixedTable,this._getColgroup(n,u,"footer"))},_getColgroup:function(n,t,i){var r=t.find("colgroup col:nth-child("+n+")");this._colgroups[i]=r},_detachColgroups:function(){this._colgroups.body.detach();this._colgroups.header&&this._colgroups.header.detach();this._colgroups.footer&&this._colgroups.footer.detach()},_attachColgroups:function(n){var t=this._colgroups.body,i,r,u;i=n?this._containers.body.unfixedTable:this._containers.body.fixedTable;this._attachColgroup(t,i,n);this._colgroups.header&&this._colgroups.header.length>0&&(r=n?this._containers.header.unfixedTable:this._containers.header.fixedTable,t=this._colgroups.header,this._attachColgroup(t,r,n));this._colgroups.footer&&this._colgroups.footer.length>0&&(u=n?this._containers.footer.unfixedTable:this._containers.footer.fixedTable,t=this._colgroups.footer,this._attachColgroup(t,u,n))},_attachColgroup:function(t,i,r){var u,e,o=t.length,f=i.find("colgroup");if(r&&this._hasDataSkippedColumns(!0)&&this.options.fixingDirection==="right")for(e=this._getDataSkippedColumnsLength(),u=0;u<o;u++)n(t[u]).insertAfter(f.find("col").eq(e-1));else for(u=0;u<o;u++)r?n(t[u]).prependTo(f):n(t[u]).appendTo(f)},_setHeights:function(n){for(var i=this._heights[n],r=i.length,t=0;t<r;t++)i[t].tr.style.height=i[t].h+"px"},_syncRowStyles:function(){for(var t,i,r=this._containers.body,f=r.unfixedTable,e=r.fixedTable,u=e.find("tbody tr"),o=f.find("tbody tr"),s=u.length,n=0;n<s;n++)t=u[n],i=o[n],t.setAttribute("style",i.getAttribute("style")),t.setAttribute("class",i.getAttribute("class"))},_populateContainers:function(){var n=this.grid.id(),r=this.grid,e=this,f=this.grid.container().find("#"+n+"_headers"),u=this.grid.container().find("#"+n+"_footer_container"),o=this.grid.container().find("#"+n+"_fixedBodyContainer"),t,i;i=r.options.virtualization===!0||r.options.rowVirtualization===!0?this.grid._vdisplaycontainer():this.grid.scrollContainer();i.length===0&&(i=this.grid.element);this._containers={};t=function(n,t,i){var u=n.find("table"),f=r.container().find("#"+u.attr("id")+"_fixed");u.length===0&&(u=n);e._containers[i]={fixedContainer:t,unfixedContainer:n,fixedTable:f,unfixedTable:u}};f.length>0&&t(f.parent("div"),this.grid.container().find("#"+n+"_fixedHeaderContainer"),"header");t(i,o,"body");u.length>0&&u[0].nodeName!=="TFOOT"&&t(u,undefined,"footer")},_fixMultiColumnHeaderDataSkip:function(){var t,i,r,u,f,e=this.grid._maxLevel,n=this._containers.header;if(n||(n=this._containers.body),u=n.unfixedTable.find("thead"),f=this.grid.container().find("#"+n.unfixedTable.attr("id")+"_fixed").find("thead"),this._hasDataSkippedColumns()&&this.options.fixingDirection==="left")for(r=this._getDataSkippedColumnsLength(!0),t=0;t<r;t++)i=u.find("tr[data-mch-level="+e+"] th[data-skip]:nth-child(1)"),i.detach(),i.appendTo(f.find("tr[data-mch-level="+e+"]"))},_fixMultiColumnHeader:function(t,i,r){var h=this.grid,u,f,y=h.id(),c,v,e,l,o,a,s=this._containers.header;if(s||(s=this._containers.body),a=s.unfixedTable,l=a.find("thead"),o=this.grid.container().find("#"+a.attr("id")+"_fixed"),o.length===0&&(o=s.fixedTable),e=o.find("thead"),v=h._maxLevel,i&&l.find("tr[data-mch-level]").each(function(t,i){var r=i.attributes,f="";if(r)for(u=0;u<r.length;u++)f+=" "+r[u].name+'="'+r[u].value+'"';n("<tr"+f+"><\/tr>").appendTo(e)}),r){for(f=h._oldCols,u=0;u<f.length;u++)if(f[u].identifier===t){f[u].fixed=!0;this._renderMCHColumn(f[u],e,l);break}}else c=this.grid.container().find("#"+y+"_"+t),c.detach(),c.appendTo(e.find("tr[data-mch-level="+v+"]"))},_renderMCHColumn:function(n,t,i){var e=n.level,o,f,u,r;if(e===0?r=this.grid.container().find("#"+this.grid.id()+"_"+n.key):(r=i.find("th[data-mch-id="+n.identifier+"]"),f=n.group),o=r.closest("tr").attr("data-mch-level"),r.detach(),r.appendTo(t.find("tr[data-mch-level="+o+"]")),e>0)for(u=0;u<f.length;u++)this._renderMCHColumn(f[u],t,i)},_fixHeaderColumn:function(t){var y=this,f,o,s,h=this.options.syncRowHeights===!0,c,r,l,e,i,a,v,u=this._containers.header;if(u||(u=this._containers.body),a=u.unfixedTable,c=u.fixedTable,l=a.find("thead"),f=c.find("thead"),r=this._tds.header,t)h&&(v=y._heights.header),l.find("tr:not([data-mch-level])").each(function(t,i){var u,c=n(r[t]),e=i.attributes,o="";if(e)for(u=0;u<e.length;u++)o+=" "+e[u].name+'="'+e[u].value+'"';s=n("<tr"+o+"><\/tr>").appendTo(f);c.appendTo(s);h&&(this.style.height=v[t].h+"px")});else if(o=f.find("tr:not([data-mch-level],[data-skip])"),e=r.length,e>0)for(i=0;i<e;i++)n(r[i]).appendTo(o[i])},_fixBodyColumn:function(t){var s=this.grid,i,v,y,u,r,e,p,o,h,w=s.id()+"_fixedContainerScroller",f,c,l,a=this._containers.body;if(f=a.unfixedTable,o=a.fixedTable,h=this._tds.body,t){for(r=f.find("tbody tr").length,this._renderFixedRecords(o,0,r-1,!0),u=o.find("tbody tr"),c=!1,r!==s.dataSource.dataView().length&&(c=!0,y=f.find("tbody tr")),i=0;i<r;i++)e=u[i],n(h[i]).appendTo(e),c&&(l=y[i].getAttribute("data-id"),l&&e.setAttribute("data-id",l));if(this.options.syncRowHeights)for(v=this._heights.body,i=0;i<r;i++)u[i].style.height=v[i].h+"px"}else for(u=o.find("tbody tr"),r=u.length,i=0;i<r;i++)e=u[i],n(h[i]).appendTo(e);this._updateHScrollbar();s.options.width===null&&f[0].style.width===""&&(f[0].style.width=f.outerWidth()+"px");t&&(p=this.grid._hscrollbarcontent(),p.length===1&&this.grid.container().find("#"+w).length===0&&n('<div style="height:'+this.grid._hscrollbar().height()+'px" id="'+w+'"><\/div>').appendTo(a.fixedContainer))},_fixFooterColumn:function(t){var o,s,u,i,h,e,r,c,l=this.options.syncRowHeights===!0,f=this._containers.footer;if(f||(f=this._containers.body),c=f.unfixedTable,u=f.fixedTable,i=this._tds.footer,t)h=u.find("tfoot"),l&&(s=this._heights.footer),c.find("tfoot tr").each(function(t,r){var u,e,y=n(i[t]),f=r.attributes,o,c,a,v="";if(f)for(u=0;u<f.length;u++)a=f[u].name,c=f[u].value,a.toLowerCase()==="id"&&(c+="_fixed"),v+=" "+a+'="'+c+'"';o=n("<tr"+v+"><\/tr>").appendTo(h);l&&(e=s[t].h,o.height(e),this.style.height=e+"px");y.appendTo(o)}),u.find("tr").each(function(t,r){n(i[t]).appendTo(r)}),this._hasDataSkippedColumns()&&this.grid._fixedColumns.length<=1&&this._syncRowsHeights(this.grid.footersTable().find("tfoot"),this.grid.fixedFootersTable().find("tfoot"));else if(o=u.find("tfoot tr"),e=i.length,e>0)for(r=0;r<e;r++)n(i[r]).appendTo(o[r])},_syncRowsHeights:function(t,i){var u=t.find("tr"),r=i.find("tr");u.each(function(t,i){var f=n(i).outerHeight(),u=n(r[t]).outerHeight();f>u&&(u=f);n(r[t]).height(u);n(i).height(u)})},_syncHeights:function(t,i){var r;this.options.syncRowHeights&&(r=i.find("tr"),n.each(t,function(n,t){var i=t.h+"px";r[n].style.height=i;t.tr.style.height=i}))},_syncContainerHeights:function(){var t,i,n=this._containers;n&&n.body&&(t=n.body.fixedTable,i=n.body.unfixedTable,t.height()!==i.height()&&t.height(i.height()))},_syncUnfixedWidth:function(n){this._syncUnfixedWidthByContainer(n,this._containers.body.unfixedTable,this._containers.body.unfixedContainer);this._containers.header&&this._syncUnfixedWidthByContainer(n,this._containers.header.unfixedTable,this._containers.header.unfixedContainer);this._containers.footer&&this._syncUnfixedWidthByContainer(n,this._containers.footer.unfixedTable,this._containers.footer.unfixedContainer)},_syncUnfixedWidthByContainer:function(n,t){if(t.length!==0){var i=parseInt(t[0].style.width,10);isNaN(i)&&(i=t.outerWidth());i-=n;t.width(i)}},_syncWidth:function(t){var i=this.grid,l=i.id(),r,o,u,f,s,e=!0,h=i.container().find("#"+l+"_headers"),c=i._fixedfooters(),a=i.fixedBodyContainer();if(i.options.virtualization===!0||i.options.rowVirtualization===!0?u=i._vdisplaycontainer():(u=i.scrollContainer(),u.length===0&&(u=i.element)),this._hasWidthInPercent()){if(e=!1,f=i.fixedContainer(),r=parseFloat(f[0].style.width),isNaN(r)&&(r=0),i._allColumnWidthsInPercentage){n.type(t)==="string"&&t.indexOf("%")!==-1&&(t=parseInt(t,10),r+=t,f.css("width",r+"%"));return}o=u.find("table").width()/((100-r)/100);t<0&&(t=t/f.width()*r/100*o);r+=t/o*100;f.css("width",r+"%")}h.length>0&&this._updateContainersWidth(t,h.parent("div"),i.fixedHeaderContainer(),e);this._updateContainersWidth(t,u,a,e);c.length>0&&(s=i.fixedFooterContainer(),s.length>0&&this._updateContainersWidth(t,c,s,e))},_updateHScrollbar:function(){var i,t=this.grid,r,u=this._containers.body.unfixedTable.outerWidth();i=this._containers.body.unfixedContainer;u>0&&(i.scrollTop(0),r=t._hscrollbar(),r.css({width:i.width()-1+"px",left:0}),(n.ig.util.isIE10||this._hasWidthInPercent()&&!t._allColumnWidthsInPercentage)&&r.width(""),t._hscrollbarinner().css({width:(t._hasVerticalScrollbar&&t.options.fixedHeaders?u-t._scrollbarWidth():u)+"px",left:0}))},_updateSingleContainerWidth:function(n,t){var f,i,r,u;n=n?parseInt(n,10):0;this._populateContainers();t?(f=this._containers.body.fixedTable,this._containers.header&&(i=this._containers.header.fixedTable),this._containers.footer&&(r=this._containers.footer.fixedTable)):(f=this._containers.body.unfixedTable,this._containers.header&&(i=this._containers.header.unfixedTable),this._containers.footer&&(r=this._containers.footer.unfixedTable));u=function(n,t){var i=parseInt(t[0].style.width,10);isNaN(i)&&(i=t.outerWidth());i+=n;t.width(i)};u(n,f);i&&u(n,i);r&&u(n,r)},_updateContainersWidth:function(n,t,i,r){var f,e=0,u=t.find("table"),o=this.grid.container().find("#"+u.attr("id")+"_fixed");(u.length===0&&(u=t),o.length!==0)&&(e=parseInt(o[0].style.width,10),isNaN(e)&&(e=o.outerWidth()),f=parseInt(u[0].style.width,10),isNaN(f)&&(f=u.outerWidth()),f-=n,u.width(f),r&&(e+=n,o.width(e)))},_headerRendered:function(t,i){if(i.owner.element.attr("id")===this.grid.element.attr("id")&&this.options.showFixButtons!==!1){var f,s,r,u,a,c,h=!1,l=!0,e=this.grid,o=this,v=e.options.columns,y=v.length;if(e._isMultiColumnGrid)a=e.headersTable().find("tr[data-mch-level="+e._maxLevel+"] th"),a.each(function(){var t=n(this);if(t.attr("data-mch-id")){if(u=t.attr("data-mch-id"),l=!0,r=o._getColumnSettingByKey(u),r&&r.allowFixing===!1)return!0;for(s=0;s<e._oldCols.length;s++)if(e._oldCols[s].identifier===u){for(c=e._oldCols[s].children,f=0;f<c.length;f++)if(r=o._getColumnSettingByKey(c[f].key,f),r&&r.allowFixing===!1){l=!1;break}break}if(!l)return!0;o._renderHeaderCellButton(u,h,!0,t)}else{if(t.attr("data-skip")||(u=t.attr("id").replace(e.id()+"_",""),r=o._getColumnSettingByKey(u),r&&r.allowFixing===!1))return!0;o._fcData[u]!==!0&&o._renderHeaderCellButton(u,h,!1,t)}});else for(f=0;f<y;f++){if(u=v[f].key,r=this._getColumnSettingByKey(u,f),h=!1,r!==null){if(r.allowFixing===!1)continue;r.isFixed===!0&&(h=!0)}this._fcData[u]!==!0&&this._renderHeaderCellButton(u,h)}}},_headerRendering:function(){for(var n=0;n<this.grid.options.features.length;n++)if(this.grid.options.features[n].name==="Hiding"){this._hiding=this.grid.element.data("igGridGroupBy");break}},_getColumnSettingByKey:function(n,t){for(var r=this.options.columnSettings,f=r.length,u=null,i=0;i<f;i++)if(r[i].columnKey!==null&&r[i].columnKey!==undefined){if(r[i].columnKey===n){u=r[i];break}}else if(r[i].columnIndex!==null&&r[i].columnIndex!==undefined&&r[i].columnIndex===t){u=r[i];break}return u},_id:function(){var n,t=this.grid.id(),i=arguments.length;if(i===0)return null;for(n=0;n<i;n++)t+="_"+arguments[n];return t},_renderHeaderCellButton:function(t,i,r,u){var o=this,c=o.css,h,l=this.grid.id(),f,s,e;(u===undefined&&(u=this.grid.container().find("#"+l+"_"+t)),h=this._id("header_cell","fixing",t),u.length!==0)&&(this.grid._enableHeaderCellFeature(u),e=u.find(".ui-iggrid-indicatorcontainer"),e.length===0&&(e=n('<div class="ui-iggrid-indicatorcontainer"><\/div>').appendTo(u)),f=this.grid.container().find("#"+h),f.length===0&&(f=n("<a><\/a>").attr("href","#").attr("data-fixing-indicator","true").attr("id",h),s=e.find(".ui-iggrid-fixcolumn-headerbuttoncontainer"),s.length===0&&(s=n("<div><\/div>").addClass(c.headerButtonIconContainer).appendTo(e)),f.appendTo(s),n("<span><\/span>").appendTo(f),f.bind({mousedown:function(){n(this).trigger("mouseout")},click:function(n){o._preventDefaultEvent(n);f.attr("data-fixed")==="true"?o._unfixColumnInternal(t,r):o._fixColumnInternal(t,r)}})),this._changeStyleHeaderButton(t,i))},_getMCHHeader:function(n){return this.grid.headersTable().find("th[data-mch-id="+n+"]")},_changeStyleHeaderButton:function(n,t){var r=this.css,u="true",f=this.options.headerFixButtonText,e=this.grid.container().find("#"+this._id("header_cell","fixing",n)),i;i=e.find("span");t?(i.removeClass(r.headerButtonIcon),i.addClass(r.headerButtonUnfixIcon),f=this.options.headerUnfixButtonText):(u="false",i.removeClass(r.headerButtonUnfixIcon),i.addClass(r.headerButtonIcon));e.attr("data-fixed",u).attr("title",f)},_dataRendering:function(t,i){i!==undefined&&this.grid.id()===i.owner.id()&&this.grid.options.height===null&&this.grid.hasFixedColumns()&&n.ig.util.isIE&&n.ig.util.browserVersion>=9&&n("#"+this.grid.id()+"_fixed").height("")},_dataRendered:function(t,i){i!==undefined&&this.grid.id()===i.owner.id()&&this.grid.options.height===null&&n.ig.util.isIE&&n.ig.util.browserVersion>=9&&this.grid.hasFixedColumns()&&this._syncTableHeights()},_syncTableHeights:function(){n("#"+this.grid.id()+"_fixed").height(this.grid.element.height())},_gridInternalRendered:function(){for(var u,i=this.options.columnSettings,c=i.length,r=[],s,h,e=this.grid.options.columns,o,f=0,l=e.length,t=0;t<c;t++)if(i[t].isFixed===!0)if(s=i[t].columnKey!==null&&i[t].columnKey!==undefined,h=i[t].columnIndex!==null&&i[t].columnIndex!==undefined,s)r.push(i[t].columnKey),o=this.grid.columnByKey(i[t].columnKey),o&&o.hidden&&f++;else{if(!h)continue;i[t].columnIndex>=0&&i[t].columnIndex<l&&(r.push(e[i[t].columnIndex].key),e[i[t].columnIndex].hidden&&f++)}if(f===r.length&&f>0){this._trigger(this.events.columnFixingRefused,null,{columnIdentifier:r,owner:this.grid});return}for(u=0;u<r.length;u++)this.fixColumn(r[u]);n.type(this.grid.options.width)!=="string"||this.grid.options.width.indexOf("%")===-1||this.grid.element.closest(".ui-widget").data("igResponsiveContainer")||this._responsive||(this._responsive=this.grid.element.closest(".ui-widget").igResponsiveContainer().data("igResponsiveContainer"),this._callBackId=this._responsive.addCallback(this._containerResized,this,10,"x"));this.options.fixNondataColumns&&this.fixDataSkippedColumns()},_preventDefaultEvent:function(n){n.preventDefault();n.stopPropagation()},_detachEvents:function(){this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler);this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler);this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler);this.grid.element.unbind("iggridrendered",this._gridRenderedHandler);this._gridHeightChangingHandler&&this.grid.element.unbind("iggrid_heightchanging",this._gridHeightChangingHandler);this._dataRenderingHandler&&this.grid.element.unbind("iggriddatarendering",this._dataRenderingHandler);this._dataRenderedHandler&&this.grid.element.unbind("iggriddatarendered",this._dataRenderedHandler)},destroy:function(){var t;return this.grid._fixedColumns&&this.grid._fixedColumns.length>0&&this.unfixAllColumns(),this.grid.headersTable().find("thead > tr > th").not("[data-skip=true]").each(function(){var t=n(this);t.find("a[data-fixing-indicator=true]").parent().remove()}),this._detachEvents(),this._gridRenderRowHandler!==undefined&&(this.grid._renderRow=this._gridRenderRowHandler),typeof this._callBackId=="number"&&(this._responsive.removeCallback(this._callBackId),this._callBackId=null),t=this.grid.element.data("igGridFeatureChooser"),t&&this.renderInFeatureChooser&&t._removeFeature("ColumnFixing"),n.Widget.prototype.destroy.call(this),this},_headerCellRendered:function(n,t){t.owner.element.attr("id")===this.grid.element.attr("id")&&this._isInitFC!==!0&&this._initFC()},_gridHeightChanging:function(n,t){if(this._containers.body){var i,u,f=this.grid._prevContainerHeight,r=this.grid.fixedBodyContainer();r.length!==0&&(i=t.ch-t.h,this.grid._hscrollbar().is(":visible")&&(i+=this.grid._hscrollbar().outerHeight()),r.height(i),u=Math.abs(f-this.grid.container().height()),r.height(i-u))}},_initFC:function(){var t,r,e=this.grid._isMultiColumnGrid,o=this.options,u=this.grid.options.columns,s=u.length,f,i;if(this._isInitFC=!0,r=this.grid.element.data("igGridFeatureChooser"),r!==null&&r!==undefined)for(e&&(u=this.grid._oldCols,s=u.length),t=0;t<s;t++)(i=u[t].key,this._fcData[i]=!1,e&&u[t].level!==0)||(f=this._getColumnSettingByKey(i,t),f&&f.allowFixing===!1)||r._shouldRenderInFeatureChooser(i)===!0&&(r._renderInFeatureChooser(i,{name:"ColumnFixing",text:o.featureChooserTextUnfixedColumn,textHide:o.featureChooserTextFixedColumn,iconClass:this.css.featureChooserIconClassFixed,iconClassOff:this.css.featureChooserIconClassUnfixed,isSelected:f&&f.isFixed===!0,method:n.proxy(this._togglefromfc,this),updateOnClickAll:!1,order:3,groupName:"toggle",groupOrder:1,type:"toggle",state:"hide"}),this._fcData[i]=!0)},_togglefromfc:function(n,t){for(var u=this.grid.options.columns,e=u.length,r,f,i=0;i<e;i++)if(r=u[i],r.key===t){f=r.fixed===!0?this._unfixColumnInternal(t):this._fixColumnInternal(t);break}return f.error===undefined},_hasWidthInPercent:function(){var t=this.grid,i=t.options.defaultColumnWidth;return t._gridHasWidthInPercent()||t._allColumnWidthsInPercentage?!0:i&&n.type(i)==="string"&&i.indexOf("%")!==-1?!0:!1},_columnMap:function(){var n,t,o=this.grid._isMultiColumnGrid,u,i,r,f=[],e=this.grid.options.columns,s=e.length;if(this.options.showFixButtons===!1)return!1;for(n=0;n<s;n++){if(i=e[n].key,r={columnKey:i,enabled:!0},u=this._getColumnSettingByKey(i,n),u&&u.allowFixing===!1)r.enabled=!1;else if(o){for(t=0;t<this.grid._oldCols.length;t++)if(this.grid._oldCols[t].key===i)break;t===this.grid._oldCols.length&&(r.enabled=!1)}f.push(r)}return f},_renderRow:function(t,i,r){if(!this.grid.hasFixedColumns())return this._gridRenderRowHandler(t,i,r);var e,u,o,c,l,a,v,p=0,w=0,s,f=n(i),h=this.grid,y=h.options.columns,b=y.length,k=this.grid._isFixedElement(f);for(k?(c=f,l=h.element.find("tbody tr:nth-child("+(f.index()+1)+")")):(l=f,c=this.grid.fixedTable().find("tbody tr:nth-child("+(f.index()+1)+")")),a=c.find("td:not([data-skip])"),v=l.find("td:not([data-skip])"),e=0;e<b;e++)(u=y[e],u.hidden!==!0)&&(s=u.fixed===!0?a.eq(p++):v.eq(w++),u.template&&u.template.length?(o=h._renderTemplatedCell(t,u),o.indexOf("<td")===0?s.html(n(o).html()):s.html(o)):s.html(h._renderCell(t[u.key],u,t)));return i},_renderRecords:function(n,t){var i,r=this.grid.hasFixedColumns();this._gridRenderRecordsHandler(n,t);r&&(i=this.grid.fixedTable(),this._renderFixedRecords(i,n,t),this.options.syncRowHeights&&this._applySyncRowHeights!==!1&&this._syncFixedHeights(i,this.grid.element))},_renderNewRow:function(n,t){var i=this.grid,r=this,u=this.grid.element.children("tbody"),f=u.children('[data-container!="true"]').length,e=i.options.virtualization===!0||i.options.rowVirtualization===!0;this._gridRenderNewRowHandler(n,t);e||i.hasFixedColumns()&&MSApp.execUnsafeLocalFunction(function(){i.fixedTable().find("tbody").append(r._renderFixedRecord(n,f))})},_updateVScrollbarCellPaddingHelper:function(n,t){if(!this.grid.hasFixedColumns()){this._gridUpdatePaddingHandler(n,t);return}var i=this.grid,r=i.options,u,f,e,o=r.showHeader&&r.fixedHeaders===!0&&r.height!==null,s=r.showFooter&&r.fixedFooters===!0&&r.height!==null;this.options.fixingDirection==="right"?(o&&!t&&(f=i.fixedHeadersTable(),i._removeHeaderCellPadding(i.headersTable(),!0)),s&&!t&&(u=i.fixedFootersTable(),i._removeCellPadding(i.footersTable(),"tfoot","td",!0)),i._removeCellPadding(i.element,"tbody","td",!0),e=i.fixedBodyContainer()):(o&&!t&&(f=i.headersTable(),i._removeHeaderCellPadding(i.fixedHeadersTable(),!0)),s&&!t&&(u=i.footersTable(),i._removeCellPadding(i.fixedFootersTable(),"tfoot","td",!0)),i._removeCellPadding(i.fixedBodyContainer(),"tbody","td",!0),e=this.element);o&&!t&&i._increaseLastHeaderCellVScrollbarPadding(f,n);s&&!t&&i._increaseLastCellVScrollbarPadding(u,"tfoot","td",n);i._increaseLastCellVScrollbarPadding(e,"tbody","td",n)},_syncFixedHeights:function(t,i){var s=[],r,u,f,e,o=this.grid,h=n.ig.util.isIE&&o.options.height!==null;h&&(r=o.options.virtualization===!0||o.options.rowVirtualization===!0?this.grid._vdisplaycontainer():this.grid.scrollContainer(),r.length===0&&(r=this.grid.element),u=r.find("table"),u.length>0&&u[0].style.height===""&&this.grid.fixedBodyContainer().find("table").css("height",""));f=t.find("tr");e=i.find("tr");e.map(function(n){var t=this.offsetHeight,i=f[n].offsetHeight;t<i&&(t=i);s.push(t)});n.each(s,function(n,t){var i=t+"px";f[n].style.height=i;e[n].style.height=i});h&&this.grid.fixedBodyContainer().find("table").css("height",u.height())},_renderFixedRecords:function(n,t,i,r){var o=this.grid,u=o.dataSource.dataView(),f,e="";if(t===undefined&&(t=0,i=u.length-1),t!==undefined&&i===undefined&&(i=t,i>u.length-1&&(i=u.length-1),t=0),t<0&&(t=0),i>u.length-1&&!r&&(i=u.length-1),!0){for(f=t;f<=i;f++)e+=this._renderFixedRecord(u[f],f,r);n.find("tbody").html(e)}},_renderFixedRecord:function(i,r,u){var e=this.grid,o=e.options,c=o.primaryKey,l=o.accessibilityRendering,f="",s=e._fixedColumns,h;return(f+="<tr",r%2!=0&&o.alternateRowStyles&&(f+=' class="'+e.css.recordAltClass+'"'),i&&(t(c)?t(i.ig_pk)||(f+=' data-id="'+i.ig_pk+'"'):f+=' data-id="'+e._kval_from_key(c,i)+'"'),o.virtualization&&o.virtualizationMode==="continuous"&&(f+=' data-row-idx="'+r+'"'),f+=l?' role="row">':">",u===!0)?f+="<\/tr>":(h=!0,n(s).each(function(n){s[n].hidden||s[n].fixed!==!0||(h=!1,f+=l?'<td role="gridcell" aria-describedby="'+this.key+'"':"<td",s[n].template&&s[n].template.length?(temp=e._renderTemplatedCell(i,this),f+=temp.indexOf("<td")===0?temp.substring(3):">"+temp,f=e._editCellStyle(f,i,this.key,!0)):f+=e._addCellStyle(i,this.key?this.key:n,!0)+">"+e._renderCell(i[this.key?this.key:n],this,i),f+="<\/td>")}),h&&(f+='<td role="gridcell"><\/td>'),f+="<\/tr>")},_detachColumn:function(t){var u,f,r,i=this.grid,o,s=i._isMultiColumnGrid,e,h=i.hasFixedColumns();h?(f=t.fixed,t.hidden=!1,i._visibleColumnsArray=undefined,o=n.inArray(t,this.grid._visibleColumns()),u=this._getVisibleIndex(t.key,t.fixed===!0,!0),t.hidden=!0,i._visibleColumnsArray=undefined,i._initializeDetachedContainers(),f?(r=i.fixedHeadersTable().children("thead").children("tr").not("[data-skip=true]"),e=i.fixedFootersTable().children("tfoot").children("tr")):(e=i.footersTable().children("tfoot").children("tr"),r=i.headersTable().children("thead").children("tr").not("[data-skip=true]")),s?(i._hideMultiHeaderCells(i._headerCells,o,t.key),r=f?i.fixedHeadersTable().children("thead").children("tr:not([data-mch-level])").not("[data-skip=true]"):i.headersTable().children("thead").children("tr:not([data-mch-level])").not("[data-skip=true]"),i._detachCells(r,function(n){return n.children("th, td").not("[data-skip=true]")},u,i._detachedHeaderCells,t.key)):i._detachCells(r,function(n){return n.children("th, td").not("[data-skip=true]")},u,i._detachedHeaderCells,t.key),i._detachCells(e,function(n){return n.children("td").not("[data-skip=true]")},u,i._detachedFooterCells,t.key)):this._gridDetachColumnHandler(t)},_attachColumn:function(n){if(!this.grid.hasFixedColumns()){this._gridAttachColumnHandler(n);return}var i,r,f=n.fixed,t=this.grid,u=this._getVisibleIndex(n.key,n.fixed===!0,!0);t._initializeDetachedContainers();t._isMultiColumnGrid?(t._showMultiHeaderCells(n.key),f?(i=t.fixedHeadersTable().children("thead").children("tr:not([data-mch-level])").not("[data-skip=true]"),r=t.fixedFootersTable().children("tfoot").children("tr")):(i=t.headersTable().children("thead").children("tr:not([data-mch-level])").not("[data-skip=true]"),r=t.footersTable().children("tfoot").children("tr")),t._attachCells(i,function(n){return n.children("th, td").not("[data-skip=true]")},u,t._detachedHeaderCells,n.key)):(f?(i=t.fixedHeadersTable().children("thead").children("tr").not("[data-skip=true]"),r=t.fixedFootersTable().children("tfoot").children("tr")):(i=t.headersTable().children("thead").children("tr").not("[data-skip=true]"),r=t.footersTable().children("tfoot").children("tr")),t._attachCells(i,function(n){return n.children("th, td").not("[data-skip=true]")},u,t._detachedHeaderCells,n.key));t._attachCells(r,function(n){return n.children("td").not("[data-skip=true]")},u,t._detachedFooterCells,n.key)},_renderColgroup:function(n,t,i,r){(this._gridRenderColgroupHandler(n,t,i,r),this.grid.hasFixedColumns())&&this._renderFixedColgroup(t,i,r)},_rerenderFixedColgroups:function(){this._containers.header.fixedTable&&this._renderFixedColgroup(!0,!1);this._renderFixedColgroup();this._containers.footer.fixedTable&&this._renderFixedColgroup(!1,!0)},_renderFixedColgroup:function(t,i){var r,e,u,o,s=0,f=this.grid._visibleColumns(!0);for(this._containers&&this._containers.body||this._populateContainers(),e=t?this._containers.header.fixedTable||this._containers.body.fixedTable:i?this._containers.footer.fixedTable||this._containers.body.fixedTable:this._containers.body.fixedTable,u=n(e).find("colgroup"),u.length===0&&(u=n("<colgroup><\/colgroup>").prependTo(e)),u.empty(),r=0;r<f.length;r++)f[r].fixed&&(o=f[r].oWidth?f[r].oWidth:f[r].width,s+=parseInt(o,10),n("<col><\/col>").appendTo(u).css("width",o));return s},_containerResized:function(){if(this.grid.hasFixedColumns()){var n=this.grid.headersTable().outerHeight(),t=this.grid.fixedHeadersTable().outerHeight();this._containers&&this._containers.body&&Math.abs(this._containers.body.fixedTable.outerHeight()-this._containers.body.unfixedTable.outerHeight())>1&&this._syncRowsHeights(this._containers.body.unfixedContainer,this._containers.body.fixedContainer);Math.abs(n-t)>1&&(this._syncRowsHeights(this.grid.headersTable().find("thead"),this.grid.fixedHeadersTable().find("thead")),this.grid._initializeHeights())}},_checkGridNotSupportedFeatures:function(){if(this.grid.options._isHierarchicalGrid)throw new Error(n.ig.ColumnFixing.locale.hierarchicalGridNotSupported);if((this.grid.options.width===null||this.grid.options.width==="")&&(this.grid.options.height===null||this.grid.options.height===""))throw new Error(n.ig.ColumnFixing.locale.noGridWidthHeightNotSupported);var r,i,t=this.grid.options,u=t.features,f=u.length;if(f!==1){if(t.virtualization===!0||t.rowVirtualization===!0&&t.height!==null||t.columnVirtualization===!0&&t.width!==null)throw new Error(n.ig.ColumnFixing.locale.virtualizationNotSupported);for(r=0;r<f;r++)if(i=u[r].name,i){i=i.toLowerCase();switch(i){case"groupby":throw new Error(n.ig.ColumnFixing.locale.groupByNotSupported);case"columnmoving":throw new Error(n.ig.ColumnFixing.locale.columnMovingNotSupported);case"responsive":throw new Error(n.ig.ColumnFixing.locale.responsiveNotSupported);}}}},_hidingFinishing:function(n){var t,i=n.columns;if(this._applySyncRowHeights=!1,n.hidden)for(t=0;t<i.length;t++)this._columnHiding(null,{columnKey:i[t].key});else{for(t=0;t<i.length;t++)i[t].hidden=!1;this.grid._visibleColumnsArray=undefined;this.grid._rerenderColgroups()}},_hidingFinished:function(n){var t,i=n.columns,r;if(n.hidden)for(t=0;t<i.length;t++)this._columnHidden(null,{columnKey:i[t].key});else for(t=0;t<i.length;t++)this._columnShown(null,{columnKey:i[t].key});this.grid.hasFixedColumns()&&this.options.syncRowHeights&&this._applySyncRowHeights===!1&&(r=this.grid.fixedTable(),this._syncFixedHeights(r,this.grid.element));this._applySyncRowHeights=!0},_columnShown:function(n,t){for(var f=t.columnKey,u=this.grid.options.columns,e=u.length,i,r=0;r<e;r++)if(i=u[r],i.key===f)break;i&&(i.fixed&&(this._updateSingleContainerWidth(i.width,!0),this.grid.options.autofitLastColumn&&(this._updateSingleContainerWidth(-i.width,!1),this.grid._rerenderColgroups(),this.grid._adjustLastColumnWidth(!1))),this._populateContainers(),this._updateHScrollbar(),this.grid._columnMovingResets())},_columnHiding:function(n,t){var r,u=t.columnKey,i=this.grid.columnByKey(u);i&&i.fixed&&i.width&&(r=parseInt(i.width,10),this._updateSingleContainerWidth(-r,!0))},_columnHidden:function(n,t){for(var u,e=t.columnKey,f=this.grid.options.columns,o=f.length,i,r=0;r<o;r++)if(i=f[r],i.key===e)break;i&&(i.fixed?(u=parseInt(i.width,10),this.grid.options.autofitLastColumn&&(this._updateSingleContainerWidth(u,!1),this.grid._rerenderColgroups(),this.grid._adjustLastColumnWidth(!0))):this.grid.options.autofitLastColumn&&(this.grid._rerenderColgroups(),this.grid._adjustLastColumnWidth(!0)),this._populateContainers(),this._updateHScrollbar())},_injectGrid:function(t){this.grid=t;this._checkGridNotSupportedFeatures();this._headerCellRenderedHandler!==null&&this._headerCellRenderedHandler!==undefined&&this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler);this._headerCellRenderedHandler=n.proxy(this._headerCellRendered,this);this.grid.element.bind("iggridheadercellrendered",this._headerCellRenderedHandler);this._headerRenderedHandler!==null&&this._headerRenderedHandler!==undefined&&this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler);this._headerRenderedHandler=n.proxy(this._headerRendered,this);this.grid.element.bind("iggridheaderrendered",this._headerRenderedHandler);this._headerRenderingHandler!==null&&this._headerRenderingHandler!==undefined&&this.grid.element.unbind("iggridheaderrendering",this._headerRenderingHandler);this._headerRenderingHandler=n.proxy(this._headerRendering,this);this.grid.element.bind("iggridheaderrendering",this._headerRenderingHandler);this._gridHeightChangingHandler=n.proxy(this._gridHeightChanging,this);this.grid.element.bind("iggrid_heightchanging",this._gridHeightChangingHandler);(this.grid._columns===undefined||this.grid._columns===null)&&(this.grid._columns=this.grid.options.columns.clone());this._gridRenderedHandler!==null&&this._gridRenderedHandler!==undefined&&this.grid.element.unbind("iggridrendered",this._gridRenderedHandler);this._gridRenderedHandler=n.proxy(this._gridInternalRendered,this);this.grid.element.bind("iggridrendered",this._gridRenderedHandler);this.grid._fixedColumns===undefined&&(this.grid._fixedColumns=[]);this.grid.options.height===null&&n.ig.util.isIE&&n.ig.util.browserVersion>=9&&(this._dataRenderingHandler!==null&&this._dataRenderingHandler!==undefined&&this.grid.element.unbind("iggriddatarendering",this._dataRenderingHandler),this._dataRenderingHandler=n.proxy(this._dataRendering,this),this.grid.element.bind("iggriddatarendering",this._dataRenderingHandler),this._dataRenderedHandler!==null&&this._dataRenderedHandler!==undefined&&this.grid.element.unbind("iggriddatarendered",this._dataRenderedHandler),this._dataRenderedHandler=n.proxy(this._dataRendered,this),this.grid.element.bind("iggriddatarendered",this._dataRenderedHandler));this._isFunctionsOverriden||(this.grid._visibleAreaWidth(this.options.minimalVisibleAreaWidth),this._gridRenderRowHandler=n.proxy(this.grid._renderRow,this.grid),this._renderRowHandler=n.proxy(this._renderRow,this),this.grid._renderRow=this._renderRowHandler,this._gridRenderRecordsHandler=n.proxy(this.grid._renderRecords,this.grid),this._renderRecordsHandler=n.proxy(this._renderRecords,this),this.grid._renderRecords=this._renderRecordsHandler,this._gridRenderNewRowHandler=n.proxy(this.grid.renderNewRow,this.grid),this._renderNewRowHandler=n.proxy(this._renderNewRow,this),this.grid.renderNewRow=this._renderNewRowHandler,this._gridDetachColumnHandler=n.proxy(this.grid._detachColumn,this.grid),this._detachColumnHandler=n.proxy(this._detachColumn,this),this.grid._detachColumn=this._detachColumnHandler,this._gridAttachColumnHandler=n.proxy(this.grid._attachColumn,this.grid),this._attachColumnHandler=n.proxy(this._attachColumn,this),this.grid._attachColumn=this._attachColumnHandler,this._gridRenderColgroupHandler=n.proxy(this.grid._renderColgroup,this.grid),this._renderColgroupHandler=n.proxy(this._renderColgroup,this),this.grid._renderColgroup=this._renderColgroupHandler,this._gridUpdatePaddingHandler=n.proxy(this.grid._updateVScrollbarCellPaddingHelper,this.grid),this._updateVScrollbarCellPaddingHelperHandler=n.proxy(this._updateVScrollbarCellPaddingHelper,this),this.grid._updateVScrollbarCellPaddingHelper=this._updateVScrollbarCellPaddingHelperHandler,this._isFunctionsOverriden=!0)}});n.extend(n.ui.igGridColumnFixing,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridColumnMoving",{renderInFeatureChooser:!0,options:{columnSettings:[{columnKey:null,columnIndex:null,allowMoving:!0}],mode:"immediate",moveType:"dom",addMovingDropdown:!0,movingDialogWidth:400,movingDialogHeight:"",movingDialogAnimationDuration:200,movingAcceptanceTolerance:20,movingScrollTolerance:20,scrollSpeedMultiplier:2,scrollDelta:2,hideHeaderContentsDuringDrag:!0,dragHelperOpacity:1,movingDialogCaptionButtonDesc:n.ig.ColumnMoving.locale.movingDialogCaptionButtonDesc,movingDialogCaptionButtonAsc:n.ig.ColumnMoving.locale.movingDialogCaptionButtonAsc,movingDialogCaptionText:n.ig.ColumnMoving.locale.movingDialogCaptionText,movingDialogDisplayText:n.ig.ColumnMoving.locale.movingDialogDisplayText,dropDownMoveLeftText:n.ig.ColumnMoving.locale.dropDownMoveLeftText,dropDownMoveRightText:n.ig.ColumnMoving.locale.dropDownMoveRightText,dropDownMoveFirstText:n.ig.ColumnMoving.locale.dropDownMoveFirstText,dropDownMoveLastText:n.ig.ColumnMoving.locale.dropDownMoveLastText,movingToolTipMove:n.ig.ColumnMoving.locale.movingToolTipMove,featureChooserSubmenuText:n.ig.ColumnMoving.locale.featureChooserSubmenuText,columnMovingDialogContainment:"owner"},css:{headerCellMouseOver:"ui-state-hover",dropDownButton:"ui-iggrid-moving-indicator",dropDownIndicatorContainer:"ui-iggrid-indicatorcontainer",dragIndicatorTop:"ui-iggrid-columnmoving-dragtop",dragIndicatorBottom:"ui-iggrid-columnmoving-dragbottom",dropDownIconContainer:"ui-iggrid-columnmovingiconcontainer",featureChooserMovingDialogIcon:"ui-icon ui-iggrid-icon-move",featureChooserLeftIcon:"ui-iggrid-featurechooser-li-iconcontainer ui-icon ui-iggrid-icon-left",featureChooserRightIcon:"ui-iggrid-featurechooser-li-iconcontainer ui-icon ui-iggrid-icon-right",featureChooserFirstIcon:"ui-iggrid-featurechooser-li-iconcontainer ui-icon ui-iggrid-icon-first",featureChooserLastIcon:"ui-iggrid-featurechooser-li-iconcontainer ui-icon ui-iggrid-icon-last",featureChooserSubmenu:"ui-iggrid-featurechooser-list-submenu ui-menu ui-widget ui-widget-content ui-corner-all",featureChooserSubmenuItem:"ui-iggrid-featurechooser-list-submenu-item ui-state-default",featureChooserSubmenuItemMouserOver:"ui-state-hover",columnMovingDropDown:"ui-iggrid-columnmoving-dropdown-dialog ui-widget ui-widget-content ui-corner-all",columnMovingDropDownList:"ui-iggrid-columnmoving-dropdown-list ui-menu",columnMovingDropDownItem:"ui-iggrid-columnmoving-dropdown-ddlistitemicons ui-state-default",columnMovingDropDownItemHover:"ui-iggrid-columnmoving-dropdown-listitem-hover ui-state-active ui-state-hover",columnMovingDropDownItemText:"ui-iggrid-columnmoving-dropdown-ddlistitemtext",columnMovingIndicatorSelected:"ui-iggrid-hiding-indicator-selected",movingDialogItemList:"ui-iggrid-moving-dialog-columns",movingDialogListItem:"ui-widget-content",movingDialogListItemArrowUp:"ui-icon-arrowthick-1-n ui-button-icon-primary ui-icon",movingDialogListItemArrowDown:"ui-icon-arrowthick-1-s ui-button-icon-primary ui-icon",movingDialogListItemArrowButton:"ui-button ui-corner-all ui-button-icon-only ig-sorting-indicator",movingDialogListItemText:"ui-iggrid-dialog-text",movingDialogCloseButton:"ui-icon ui-icon-close"},events:{columnDragStart:"columnDragStart",columnDragEnd:"columnDragEnd",columnDragCanceled:"columnDragCanceled",columnMoving:"columnMoving",columnMoved:"columnMoved",movingDialogOpening:"movingDialogOpening",movingDialogOpened:"movingDialogOpened",movingDialogDragged:"movingDialogDragged",movingDialogClosing:"movingDialogClosing",movingDialogClosed:"movingDialogClosed",movingDialogContentsRendering:"movingDialogContentsRendering",movingDialogContentsRendered:"movingDialogContentsRendered",movingDialogMoveUpButtonPressed:"movingDialogMoveUpButtonPressed",movingDialogMoveDownButtonPressed:"movingDialogMoveDownButtonPressed",movingDialogDragColumnMoving:"movingDialogDragColumnMoving",movingDialogDragColumnMoved:"movingDialogDragColumnMoved"},_createWidget:function(){this.options.columnSettings=[];n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){this._cache={};this._cKey="";this._cIdx=-1;this._tKey="";this._tIdx=-1;this._oTh=null;this._cmib=null;this._cmit=null;this._movingDialog=null;this._groupBy=null;this._ddButtons={first:{text:this.options.dropDownMoveFirstText,func:n.proxy(this._moveFirst,this),icon:this.css.featureChooserFirstIcon},left:{text:this.options.dropDownMoveLeftText,func:n.proxy(this._moveLeft,this),icon:this.css.featureChooserLeftIcon},right:{text:this.options.dropDownMoveRightText,func:n.proxy(this._moveRight,this),icon:this.css.featureChooserRightIcon},last:{text:this.options.dropDownMoveLastText,func:n.proxy(this._moveLast,this),icon:this.css.featureChooserLastIcon}};this._hscroller=null;this._scroller={on:!1,delay:-1};this.options.mode!=="immediate"&&this.options.mode!=="deferred"&&(this.options.mode="immediate");this.options.mode==="immediate"&&this.options.moveType==="render"&&(this.options.moveType="dom");this.options.addMovingDropdown===!1&&(this.renderInFeatureChooser=!1)},_setOption:function(t){if(t==="mode"||t==="columnSettings"||t==="addMovingDropdown")throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);n.Widget.prototype._setOption.apply(this,arguments)},destroy:function(){return this._unregisterEvents(),this._removeMoving(),n.Widget.prototype.destroy.call(this),this},moveColumn:function(n,t,i,r){this._moveColumn(n,t,i,r,!0)},_headerCellRendered:function(n,t){this.grid.id()===t.owner.id()&&this._thRendered(t.th)},_headerRendering:function(){for(var n=0;n<this.grid.options.features.length;n++)if(this.grid.options.features[n].name==="GroupBy"){this._groupBy=this.grid.element.data("igGridGroupBy");break}},_headerRendered:function(n,t){this.grid.id()===t.owner.id()&&this._thsRendered(t.table)},_gridFullyRendered:function(){this._updateLayout()},_headerPicked:function(t,i){var r=n(t.target).closest("th"),f=this._getIdOfTh(r),u=!0;return i={columnKey:f,columnIndex:r.index(),owner:this,header:r,helper:i.helper},u=this._trigger(this.events.columnDragStart,t,i),u&&(this.grid._focusedElement&&this.grid._focusedElement.blur(),this._thPicked(r,f)),u},_headerDragged:function(n,t){var i;i=this._oPos?this._oPos.left>t.position.left:t.originalPosition.left>t.position.left;this._oPos={left:t.position.left};this._thDragged(t.helper,t.offset,i)&&(t.originalPosition.left=t.position.left)},_headerDropped:function(t,i){var r=n(t.target).closest("th"),f=this._getIdOfTh(r),u=!0;return i={columnKey:f,columnIndex:r.index(),owner:this,header:r,helper:i.helper},u=this._trigger(this.events.columnDragEnd,t,i),u?this._thDropped():this._trigger(this.events.columnDragCanceled,t,i),u},_dialogUpPressed:function(t){var o=n(t.target),r=o.closest("li"),f=r.parent(),i=r.index(),s=i===0?r.parent().children().last().attr("data-value"):r.prev().attr("data-value"),h=i===0?!0:!1,e=o.closest("span").attr("datakey"),u;u={owner:this,movingDialog:this._movingDialog,columnKey:e,columnIndex:i,targetIndex:i===0?f.children().length-1:i-1};i===0?r.detach().insertAfter(f.children("li:last")):r.detach().insertBefore(f.children("li:eq("+(i-1)+")"));this._cKey=e;this._cIdx=u.columnIndex;this._tIdx=u.targetIndex;this._moveColumn(e,s,h,this.options.moveType==="dom",!1);this._trigger(this.events.movingDialogMoveUpButtonPressed,null,u)},_dialogDownPressed:function(t){var o=n(t.target),i=o.closest("li"),f=i.parent(),r=i.index(),s=r===i.siblings().length?i.parent().children().first().attr("data-value"):i.next().attr("data-value"),h=r===i.siblings().length?!1:!0,e=o.closest("span").attr("datakey"),u;u={owner:this,movingDialog:this._movingDialog,columnKey:e,columnIndex:r,targetIndex:r===f.children().length-1?0:r+1};r===i.parent().children().length-1?i.detach().insertBefore(f.children("li:first")):i.detach().insertAfter(f.children("li:eq("+r+")"));this._cKey=e;this._cIdx=u.columnIndex;this._tIdx=u.targetIndex;this._moveColumn(e,s,h,this.options.moveType==="dom",!1);this._trigger(this.events.movingDialogMoveDownButtonPressed,null,u)},_dialogRearranging:function(t,i){var o,u,s=n(i.draggable),h=n(i.element),f=s.attr("data-value"),l=h.attr("data-value"),e=n(i.element).closest("ul[data-depth=0]").data("igTree")._validationObject.dropAfter,c=s.index(),r=h.index();return(r=r>c?e?r:r-1:e?r+1:r,u={owner:this,movingDialog:this._movingDialog,columnKey:f,columnIndex:c,targetIndex:r},o=this._trigger(this.events.movingDialogDragColumnMoving,null,u),o)?(this._cKey=f,this._cIdx=u.columnIndex,this._tIdx=u.targetIndex,this._moveColumn(f,l,e,this.options.moveType==="dom",!1),u.movingDialog.find("div.ui-state-highlight").remove(),this._trigger(this.events.movingDialogDragColumnMoved,null,u),!0):!1},_dialogRearranged:function(n,t){this._bindUpDownDialogButtons(t.element.parent())},_dialogDragged:function(n,t){this._trigger(this.events.movingDialogDragged,null,{movingDialogElement:n.target,owner:this,originalPosition:t.originalPosition,position:t.position})},_dialogOpening:function(n,t){var i;return i=this._trigger(this.events.movingDialogOpening,null,{movingDialogElement:n.target,owner:this}),i&&(this._renderMovingDialogContent(n,t),this._trigger(this.events.movingDialogOpened,null,{movingDialogElement:n.target,owner:this})),i},_dialogClosing:function(n){return this._trigger(this.events.movingDialogClosing,null,{movingDialogElement:n.target,owner:this})},_dialogClosed:function(n){this._trigger(this.events.movingDialogClosed,null,{movingDialogElement:n.target,owner:this})},_dropDownMouseDown:function(t){var i=n(t.target);this._toggleDropDown(i,n("div[data-moving-inddropdown='"+this.grid.id()+"']"));this._cancelEvent(t)},_dropDownKeyDown:function(t){var i,u,f,r=n("div[data-moving-inddropdown='"+this.grid.id()+"']");t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE?(i=r.find("ul .ui-state-hover:first"),r.is(":visible")&&i.length>0&&i.trigger("mousedown"),this._toggleDropDown(n(t.target),r,!1),this._cancelEvent(t)):t.keyCode===n.ui.keyCode.ESCAPE?(this._toggleDropDown(n(t.target),r,!1),this._cancelEvent(t)):(t.keyCode===n.ui.keyCode.DOWN||t.keyCode===n.ui.keyCode.UP)&&(r.is(":visible")&&(i=r.find("ul .ui-state-hover:first").closest("li"),u=i.length===0?r.find("ul li:eq(0)"):i.index()===0&&t.keyCode===n.ui.keyCode.UP?i.parent().children(":last"):t.keyCode===n.ui.keyCode.DOWN?i.next():i.prev(),r.find("ul .ui-state-hover").removeClass(this.css.columnMovingDropDownItemHover),f=u.find("[role='button']"),f.length>0&&(u=f),u.addClass(this.css.columnMovingDropDownItemHover)),this._cancelEvent(t))},_dropDownButtonMouseOver:function(t){n(t.currentTarget).addClass(this.css.columnMovingDropDownItemHover)},_dropDownButtonMouseOut:function(t){n(t.currentTarget).removeClass(this.css.columnMovingDropDownItemHover)},_moveLeft:function(n,t){for(var r=this._cache.siblings[t],u,f,i=0;i<r.length;i++)if(u=r[i].key||r[i].identifier,u===t){i>0&&(this._cKey=t,this._cIdx=i,this._tIdx=i-1,f=r[i-1].key||r[i-1].identifier,this._moveColumn(u,f,!1,this.options.moveType==="dom",!1));break}},_moveRight:function(n,t){for(var r=this._cache.siblings[t],u,f,i=0;i<r.length;i++)if(u=r[i].key||r[i].identifier,u===t){i<r.length-1&&(this._cKey=t,this._cIdx=i,this._tIdx=i+1,f=r[i+1].key||r[i+1].identifier,this._moveColumn(u,f,!0,this.options.moveType==="dom",!1));break}},_moveFirst:function(n,t){for(var r=this._cache.siblings[t],u,f,i=0;i<r.length;i++)if(u=r[i].key||r[i].identifier,u===t){i!==0&&(this._cKey=t,this._cIdx=i,this._tIdx=0,f=r[0].key||r[0].identifier,this._moveColumn(u,f,!1,this.options.moveType==="dom",!1));break}},_moveLast:function(n,t){for(var i=this._cache.siblings[t],u,f,r=0;r<i.length;r++)if(u=i[r].key||i[r].identifier,u===t){r!==i.length-1&&(this._cKey=t,this._cIdx=r,this._tIdx=i.length-1,f=i[i.length-1].key||i[i.length-1].identifier,this._moveColumn(u,f,!0,this.options.moveType==="dom",!1));break}},_headerMouseOver:function(t){n(t.target).closest("th").addClass(this.css.headerCellMouseOver)},_headerMouseOut:function(t){n(t.target).closest("th").removeClass(this.css.headerCellMouseOver)},_renderHelpers:function(){this._cmib=n("<div>&nbsp;<\/div>").attr("id",this.grid.id()+"_moving_indicator_bottom").addClass(this.css.dragIndicatorTop).css({position:"absolute","z-index":"1000000",width:"16px",height:"16px",display:"none"}).appendTo(this.grid._rootContainer());this._cmit=n("<div>&nbsp;<\/div>").attr("id",this.grid.id()+"_moving_indicator_top").addClass(this.css.dragIndicatorBottom).css({position:"absolute","z-index":"1000000",width:"16px",height:"16px",display:"none"}).appendTo(this.grid._rootContainer())},_renderFeatureChooser:function(n,t){var i=this.grid.element.data("igGridFeatureChooser");i&&(i._shouldRenderInFeatureChooser(n)===!0?this._addMoveButtonsInFeatureChooser(i,n):(this._renderMovingDropDownIndicator(t,n),this.grid._enableHeaderCellFeature(t)))},_renderMovingDropDownIndicator:function(t,i){var u,r,f,e=this;u=n("<span><\/span>").addClass(this.css.dropDownButton);r=n("<a><\/a>").attr("href","#").attr("th-remove-focus","").attr("title",this.options.movingToolTipMove).attr("id",this.grid.id()+"_moving_headerButton_"+i).bind({keydown:this._dropDownKeyHandler,blur:function(t){e._toggleDropDown(n(t.target),n("div[data-moving-inddropdown='"+e.grid.id()+"']"),!0)},mousedown:this._dropDownButtonHandler,mouseup:this._cancelEventHandler,click:this._cancelEventHandler});f=n("<div><\/div>").addClass(this.css.dropDownIndicatorContainer).appendTo(t);u.appendTo(r);r.appendTo(f);this._needToRenderDropDown=!0},_renderMovingDialogContent:function(){var t=this._movingDialog.igGridModalDialog("getContent"),i=this._movingDialog,n=t.find("#"+this.grid.id()+"_dialog_tree"),r;r=this._trigger(this.events.movingDialogContentsRendering,null,{movingDialogElement:i,owner:this});r&&(n.length>0?n.igTree("option","dataSource",this._getClonedDataSource(this.grid._visibleMchColumns()||this.grid._visibleColumns())):n=this._initializeTree(t),this._bindUpDownDialogButtons(n),this._trigger(this.events.movingDialogContentsRendered,null,{movingDialogElement:i,owner:this}))},_initializeTree:function(t){var i=this;return n("<ul id='"+this.grid.id()+"_dialog_tree'><\/ul>").appendTo(t).igTree({dataSourceType:"json",dataSource:this._getClonedDataSource(this.grid._visibleMchColumns()||this.grid._visibleColumns()),bindings:{primaryKey:"key",textKey:"headerText",valueKey:"key",childDataProperty:"group",nodeContentTemplate:this._getTreeTemplate()},dragAndDrop:!0,dragAndDropSettings:{dragAndDropMode:"move",revert:!0,zIndex:1000001,customDropValidation:function(t){var r=n(this),u=n(t);return i._isColumnMovable(u.attr("data-value"))&&r.is("li")&&r.parent()[0]===u.parent()[0]?!0:!1},containment:!1},nodeDropping:this._dialogRearrangingHandler,nodeDropped:this._dialogRearrangedHandler,selectionChanging:function(){return!1}})},_getClonedDataSource:function(n){return jQuery.extend(!0,[],n,this._cloneMovable(n))},_cloneMovable:function(t){var r=this,u=[],i=0;return n.each(t,function(){this.group?u.push({movable:r._isColumnMovable(this.key,i++),group:r._cloneMovable(this.group),key:this.key||this.identifier||i}):u.push({movable:r._isColumnMovable(this.key,i++),key:this.key||i})}),u},_getTreeTemplate:function(){var t="",r,u,n,i;return i="<span>${headerText}<\/span>",n="<span class='"+this.css.movingDialogListItemArrowButton+"'>",r=n+"<span id='"+this.grid.id()+"_moving_dialog_${key}_up' title='"+this.options.movingDialogCaptionButtonAsc+"' role='button' datakey='${key}' class='"+this.css.movingDialogListItemArrowUp+"' style='margin-top:-10px;'><\/span><\/span>",u=n+"<span id='"+this.grid.id()+"_moving_dialog_${key}_down' title='"+this.options.movingDialogCaptionButtonDesc+"' role='button' datakey='${key}' class='"+this.css.movingDialogListItemArrowDown+"' style='margin-top:-10px;'><\/span><\/span>",n+="<\/span>",t+="{{if ${movable} }}",t+=r+u+i,t+="{{else}}",t+=n+n+i,t+"{{/if}}"},_renderMovingDialog:function(){var r,t=this.options,f,e,u,i;this.options.columnMovingDialogContainment==="owner"?(r=this.grid.container(),u=this.grid._rootContainer()):(r="window",u="body");i=n("<div><\/div>").appendTo(u).attr("id",this.grid.id()+"_moving_movingDialog");this._movingDialog=i;i.igGridModalDialog({containment:r,renderFooterButtons:!1,modalDialogCaptionText:t.movingDialogCaptionText,modalDialogWidth:t.movingDialogWidth,modalDialogHeight:t.movingDialogHeight,animationDuration:t.movingDialogAnimationDuration,gridContainer:this.grid.container(),modalDialogOpening:this._dialogOpeningHandler,modalDialogMoving:this._dialogDraggedHandler,modalDialogClosing:this._dialogClosingHandler,modalDialogClosed:this._dialogClosedHandler});f=i.igGridModalDialog("getCaptionButtonContainer");e=n("<button><\/button>").attr("id",this.grid.id()+"_moving_movingDialog_closeButton").appendTo(f);e.igButton({onlyIcons:!0,icons:{primary:this.css.movingDialogCloseButton},width:"20px",height:"20px",click:this._dialogCloseButtonHandler})},_renderDropDown:function(t){var i=this,r,u;return r=n("<div data-moving-inddropdown='"+this.grid.id()+"'><\/div>").css("position","absolute").css("display","none").addClass(this.css.columnMovingDropDown).appendTo(this.grid._rootContainer()),u=n('<ul tabindex="0"><\/ul>').addClass(this.css.columnMovingDropDownList).appendTo(r),n.each(this._ddButtons,function(t,r){n("<li><\/li>").addClass(i.css.columnMovingDropDownItem).attr("data-key",t).bind({mouseover:i._dropDownButtonMouseOverHandler,mouseout:i._dropDownButtonMouseOutHandler}).append(n("<span><\/span>").addClass(i.css.dropDownIconContainer).append(n("<span><\/span>").addClass(r.icon))).append(n("<span><\/span>").addClass(i.css.columnMovingDropDownItemText).text(r.text)).appendTo(u)}),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(u)).igButton({labelText:this.options.movingDialogCaptionText,mousedown:function(u){u.target&&setTimeout(function(){n(u.target).removeClass("ui-state-active")},0);i._toggleDropDown(t,r,!0);i._openMovingDialog(t,r,!0)}}),r},_toggleDropDown:function(t,i,r){var u,f,c,o,h,e,l=i.is(":visible")===!0,s=this;i.data("isAnimating")!==!0&&(l!==!1||r!==!0)&&(l?n.each(this._ddButtons,function(n){i.find("li[data-key='"+n+"']").unbind("mousedown.temp")}):(u=t.closest("th"),c=u.parent().children().length-u.index()<=2,o=u.offset(),c?(e=o.left+u.outerWidth()-i.outerWidth(),e=Math.max(0,e)):e=o.left,h=n.ig.util.getRelativeOffset(i),i.css("top",o.top+u.outerHeight()-h.top),i.css("left",e-h.left),n.each(this._ddButtons,function(n,r){i.find("li[data-key='"+n+"']").bind("mousedown.temp",function(n){s._toggleDropDown(t,i,!0);f=u.attr("id");f=f?f.replace(s.grid.id()+"_",""):u.attr("data-mch-id");r.func(null,f);n.stopPropagation();n.preventDefault()})})),i.data("isAnimating",!0),i.toggle(200,function(){i.is(":visible")===!0?(u.find("a").focus(),t&&(t.addClass(s.css.columnMovingIndicatorSelected),t.attr("data-indicator-selected","true"))):t&&(t.removeClass(s.css.columnMovingIndicatorSelected),t.removeAttr("data-indicator-selected"));i.data("isAnimating",!1)}))},_renderSubmenuFC:function(t,i){var r,u,f,e,o,s;r=n('<ul class="'+this.css.featureChooserSubmenu+'"><\/ul>').appendTo(i);u={name:"ColumnMovingDialog",text:this.options.movingDialogDisplayText,iconClass:this.css.featureChooserMovingDialogIcon,method:this._openMovingDialogHandler};f={name:"Left",text:this.options.dropDownMoveLeftText,iconClass:this.css.featureChooserLeftIcon,method:n.proxy(this._moveLeft,this)};e={name:"Right",text:this.options.dropDownMoveRightText,iconClass:this.css.featureChooserRightIcon,method:n.proxy(this._moveRight,this)};o={name:"First",text:this.options.dropDownMoveFirstText,iconClass:this.css.featureChooserFirstIcon,method:n.proxy(this._moveFirst,this)};s={name:"Last",text:this.options.dropDownMoveLastText,iconClass:this.css.featureChooserLastIcon,method:n.proxy(this._moveLast,this)};this._renderSubmenuFCItem(u,r,t,i);this._renderSubmenuFCItem(o,r,t,i);this._renderSubmenuFCItem(f,r,t,i);this._renderSubmenuFCItem(e,r,t,i);this._renderSubmenuFCItem(s,r,t,i)},_renderSubmenuFCItem:function(t,i,r,u){var f,s=t.text,h,e,o,c=this.css,a=this.grid.id()+"_featurechooser_dd_li_"+r+"_"+t.name,l=t.method;e=function(n){setTimeout(function(){n.blur()},50)};h='<li tabindex="0" data-fc-item="1" class="'+this.css.featureChooserSubmenuItem+'" id="'+a+'" title="'+s+'">'+s+"<\/li>";f=n(h).appendTo(i);f.bind({keydown:function(t){var s=t.keyCode;switch(s){case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:l(t,r);e(n(t.target));break;case n.ui.keyCode.DOWN:o=f.next();o.length===0?i.find("li:first").focus():o.focus();break;case n.ui.keyCode.UP:f.prev().focus();f.prev().length===0&&n("#"+u.data("buttonId")).focus();break;case n.ui.keyCode.ESCAPE:e(n(t.target))}},mousedown:function(t){l(t,r);e(n(t.target))},mouseover:function(){n(this).addClass(c.featureChooserSubmenuItemMouserOver)},mouseleave:function(){n(this).removeClass(c.featureChooserSubmenuItemMouserOver)}})},_addMoveButtonsInFeatureChooser:function(t,i){t._renderInFeatureChooser(i,{name:"ColumnMovingDropDown",text:this.options.featureChooserSubmenuText,iconClass:"ui-iggrid-featurechooser-li-iconcontainer ui-icon ui-iggrid-icon-move",methodRenderSubmenu:n.proxy(this._renderSubmenuFC,this),order:1,groupName:"dropdown",groupOrder:4,type:"dropdown",state:"hide"})},_moveColumn:function(n,t,i,r,u){var e=!0,f;u===!1&&(f={columnKey:this._cKey,columnIndex:this._cIdx,targetIndex:this._tIdx,owner:this},e=this._trigger(this.events.columnMoving,null,f));e&&(this._movingDirty=!0,this.grid.moveColumn(n,t,i,r),u===!1&&(delete f.columnIndex,delete f.targetIndex,f.oldIndex=this._cIdx,f.newIndex=this._tIdx,this._triggerColumnMovedAsync(f)))},_thRendered:function(n){var t=this._getIdOfTh(n),i=n.index("not[data-skip='true']");this._isColumnMovable(t,i)===!0&&(this._markForMoving(n),this.options.addMovingDropdown===!0&&this._renderFeatureChooser(t,n))},_thsRendered:function(){this.options.mode==="deferred"&&this._renderHelpers();this.options.addMovingDropdown===!0&&((!this._movingDialog||this._movingDialog instanceof jQuery&&this._movingDialog.length===0)&&this._renderMovingDialog(),n("div[data-moving-inddropdown='"+this.grid.id()+"']").length===0&&this._renderDropDown())},_thPicked:function(n,t){this._cKey=t;this._cIdx=n.index();this.options.mode==="immediate"&&(this.options.hideHeaderContentsDuringDrag===!0&&n.children().not("div[data-hiddencolindicator]").hide(),this._oTh=n)},_thDragged:function(n,t,i){var f,o,e,h,c=0,s,r=0,u=0,l=!1;if(f=this._cache.siblings[this._cKey],this._hscroller.length>0&&(c=this._hscroller.scrollLeft()),s=i===!0?t.left:t.left+n.width(),s+=c,this._gridReady()&&!this._movingDirty){while(r<=f.length){if(u=r===f.length?r-1:r,o=f[u].key||f[u].identifier,o===this._cKey&&this.options.mode==="immediate"){r+=2;continue}if(e=this._cache.columns[o],h=u!==r?e.offset.left+e.dimensions.width:e.offset.left,s>h-this.options.movingAcceptanceTolerance&&s<h+this.options.movingAcceptanceTolerance){this._tKey=o;this._tIdx=this._cIdx>u||u!==r?u:u-1;this.options.mode==="immediate"?(this._moveColumn(this._cKey,o,u!==r?!0:!1,!0,!1),l=!0):(this._last=r===f.length,this._showIndicators(h-c,e.element.offset().top,e.dimensions));break}r++}return this._hscroller.length>0&&this._checkScroll(c,s,i),l}},_thDropped:function(){if(this.options.mode==="immediate"){this.options.hideHeaderContentsDuringDrag===!0&&this._oTh.children().show();return}this._hideIndicators();this._tKey&&this._cKey!==this._tKey&&this._moveColumn(this._cKey,this._tKey,this._last,this.options.moveType==="dom",!1);delete this._cKey;delete this._tKey;n(".ui-draggable-dragging").hide();this._scroller.on=!1},_isColumnMovable:function(n,t){for(var r,i=0;i<this.options.columnSettings.length;i++)if((r=this.options.columnSettings[i],r.columnIndex&&i===t)||r.columnKey&&n===r.columnKey)return r.allowMoving;return!0},_isColumnGroupable:function(n){var t=this._groupBy._findColumnSetting(this._getIdOfTh(n));return t&&t.allowGrouping},_getIdOfTh:function(n){var t=n.attr("data-mch-id");return t?t:n.attr("id").replace(this.grid.id()+"_","")},_getThById:function(t){return n("th[data-mch-id='"+t+"'],th[id='"+this.grid.id()+"_"+t+"']")},_adjustIndicators:function(n){var t=parseInt(this._cmib.css("left"),10)-n;this._cmib.css("left",t);this._cmit.css("left",t)},_showIndicators:function(t,i,r){this._cmib.css("left",t-8-n.ig.util.getRelativeOffset(this._cmib).left).show();this._cmib.css("top",i-16-n.ig.util.getRelativeOffset(this._cmib).top);this._cmit.css("left",t-8-n.ig.util.getRelativeOffset(this._cmit).left).show();this._cmit.css("top",i+r.height-n.ig.util.getRelativeOffset(this._cmit).top)},_hideIndicators:function(){this._cmib.hide();this._cmit.hide()},_markForMoving:function(t){if(t.data("draggable")||this._groupBy){if(this._isColumnGroupable(t)){t.bind("drag",this._moveHandler);t.bind("dragstop",this._dropHandler);t.bind("dragstart",this._dragHandler);return}t.attr("groupby-disabled","true")}t.draggable({containment:this.grid.container(),appendTo:this.grid.container(),distance:5,revert:"valid",helper:function(t){var i,r;return i=n(t.target).closest("th"),r=i.clone().css("overflow","hidden").css("z-index",1e4).width(i.width()).height(i.height()).addClass("ui-widget ui-iggrid").wrap(n('<div class="ui-iggrid-dragMarkup"><\/div>').width(i.outerWidth()).height(i.outerHeight())).parent(),r.find("div[data-hiddencolindicator]").remove(),r},opacity:this.options.dragHelperOpacity,drag:this._moveHandler,stop:this._dropHandler,start:this._dragHandler});t.unbind("mouseover.moving").bind("mouseover.moving",this._headerMouseOverHandler);t.unbind("mouseout.moving").bind("mouseout.moving",this._headerMouseOutHandler)},_updateLayout:function(){var t,i=this;if(!this._gridReady()){setTimeout(function(){i._updateLayout()},50);return}t=this.grid._oldCols?n.grep(this.grid._oldCols,this.grid._columnVisible):this.grid._visibleColumns();this._hscroller=this.grid._hscrollbarcontent();this._hscroller=this._hscroller.length>0?this._hscroller:this.grid.scrollContainer();this._cache.columns={};this._cache.siblings={};this._updateLayoutPerLevel(t);delete this._movingDirty},_updateLayoutPerLevel:function(t){for(var r,u,f,e=this._hscroller.length>0?this._hscroller.scrollLeft():0,i=0;i<t.length;i++)r=t[i].key||t[i].identifier,u=this._getThById(r),f=u.offset(),f.left=f.left+e,this._cache.columns[r]={},this._cache.columns[r].element=u,this._cache.columns[r].offset=f,this._cache.columns[r].dimensions={width:u.outerWidth(),height:u.outerHeight()},this._cache.siblings[r]=t;for(i=0;i<t.length;i++)t[i].group&&t[i].hidden!==!0&&this._updateLayoutPerLevel(n.grep(t[i].group,this.grid._columnVisible))},_openMovingDialog:function(){this._movingDialog.igGridModalDialog("openModalDialog")},_closeMovingDialog:function(n){this._movingDialog.igGridModalDialog("closeModalDialog");n&&n.preventDefault()},_triggerColumnMovedAsync:function(n){var t=this;if(!this._gridReady()){setTimeout(function(){t._triggerColumnMovedAsync(n)},50);return}this._trigger(this.events.columnMoved,null,n)},_gridReady:function(){return!(this.grid._loadingIndicator&&this.grid._loadingIndicator._indicator.is(":visible"))},_bindUpDownDialogButtons:function(n){n.find("span[class='"+this.css.movingDialogListItemArrowDown+"']").unbind("mousedown",this._dialogDownHandler).bind("mousedown",this._dialogDownHandler);n.find("span[class='"+this.css.movingDialogListItemArrowUp+"']").unbind("mousedown",this._dialogUpHandler).bind("mousedown",this._dialogUpHandler)},_checkScroll:function(n,t,i){var r=this.grid._hasVerticalScrollbar===!0?this.grid._scrollbarWidth():0;n>0&&i===!0&&t-n<this.options.movingScrollTolerance?this._updateScroller(!0,t-n):n<this._hscroller[0].scrollWidth+r-this._hscroller.outerWidth()&&i===!1&&t-n>this._hscroller.outerWidth()-this.options.movingScrollTolerance?this._updateScroller(!1,this._hscroller.outerWidth()-t+n):this._stopScroller()},_startScroller:function(n,t){this._scroller.on=!0;this._scroller.delay=t*this.options.scrollSpeedMultiplier;this._scroller.direction=n===!0?"left":"right";this._autoScroll()},_updateScroller:function(n,t){if(this._scroller.on===!1){this._startScroller(n,t);return}this._scroller.delay=t},_stopScroller:function(){this._scroller.on=!1},_scrollGrid:function(){var r=this._hscroller.scrollLeft(),n,t,i;n=this._scroller.direction==="left"?this.options.scrollDelta*-1:this.options.scrollDelta;t=r+n;i=this.grid._hasVerticalScrollbar===!0?this.grid._scrollbarWidth():0;this._hscroller.scrollLeft(t);(t<=0&&n<0||t>=this._hscroller[0].scrollWidth+i-this._hscroller.outerWidth()&&n>0)&&this._stopScroller();this._hscroller[0].id.indexOf("_hscroller")>0&&this.grid._synchronizeHScroll();this.options.mode==="deferred"&&this._adjustIndicators(n);this._scroller.on===!0&&setTimeout(this._autoScroll,this._scroller.delay)},_cancelEvent:function(n){n.stopPropagation();n.preventDefault()},_columnMap:function(){return n.map(this.grid.options.columns,function(n){return{columnKey:n.key,enabled:!0}})},_removeMoving:function(){var e=this.grid.headersTable().find(">thead th"),r,t,i,u,f;for(this.grid.container().find("[id~='"+this.grid.id()+"'][id~='moving']").remove(),this.options.addMovingDropdown===!0&&(i=this._movingDialog,i&&i instanceof jQuery&&(i.igGridModalDialog("destroy"),i.remove()),n("div[data-moving-inddropdown='"+this.grid.id()+"']").remove()),f=this.grid.element.data("igGridFeatureChooser"),u=!0,this.renderInFeatureChooser&&f&&(f._removeFeature("ColumnMovingDropDown",!0),u=!1),r=0;r<e.length;++r)t=n(e[r]),u&&(t.find(">div").find("span").unbind("mousedown",this._dropDownButtonHandler),t.find(">div").remove()),t.unbind("mouseover.moving",this._headerMouseOverHandler),t.unbind("mouseout.moving",this._headerMouseOutHandler),this._grpByEnabled?(t.unbind("draggabledrag",this._moveHandler),t.unbind("draggablestop",this._dropHandler),t.unbind("draggablestart",this._dragHandler)):t.data&&t.data("draggable")&&t.draggable("destroy")},_unregisterEvents:function(){this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler);this.grid.element.unbind("iggridheaderrendering",this._headerRenderingHandler);this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler);this.grid.element.unbind("iggridrendered",this._gridFullyRenderedHandler);this.grid.container().find("#"+this.grid.id()+(this.grid.options.fixedHeaders===!0?"_headers":"")+" th").unbind("moving");this.grid.element.unbind("iggridresizingcolumnresized",this._columnStateChanged);this.grid.element.unbind("iggridcolumnscollectionmodified",this._columnStateChanged);this.grid.element.unbind("iggridpagingpagingdropdownrendered",this._columnStateChanged);this.grid.element.unbind("iggrid_columnsmoved",this._columnStateChanged)},_registerEvents:function(){this.grid.element.bind("iggridheadercellrendered",this._headerCellRenderedHandler);this.grid.element.bind("iggridheaderrendering",this._headerRenderingHandler);this.grid.element.bind("iggridheaderrendered",this._headerRenderedHandler);this.grid.element.bind("iggridrendered",this._gridFullyRenderedHandler);this.grid.element.bind("iggridresizingcolumnresized",this._columnStateChanged);this.grid.element.bind("iggridcolumnscollectionmodified",this._columnStateChanged);this.grid.element.bind("iggridpagingpagingdropdownrendered",this._columnStateChanged);this.grid.element.bind("iggrid_columnsmoved",this._columnStateChanged)},_createHandlers:function(){this._headerCellRenderedHandler=n.proxy(this._headerCellRendered,this);this._headerRenderingHandler=n.proxy(this._headerRendering,this);this._headerRenderedHandler=n.proxy(this._headerRendered,this);this._gridFullyRenderedHandler=n.proxy(this._gridFullyRendered,this);this._dragHandler=n.proxy(this._headerPicked,this);this._moveHandler=n.proxy(this._headerDragged,this);this._dropHandler=n.proxy(this._headerDropped,this);this._headerMouseOverHandler=n.proxy(this._headerMouseOver,this);this._headerMouseOutHandler=n.proxy(this._headerMouseOut,this);this._dropDownButtonHandler=n.proxy(this._dropDownMouseDown,this);this._dropDownKeyHandler=n.proxy(this._dropDownKeyDown,this);this._openMovingDialogHandler=n.proxy(this._openMovingDialog,this);this._dropDownButtonMouseOverHandler=n.proxy(this._dropDownButtonMouseOver,this);this._dropDownButtonMouseOutHandler=n.proxy(this._dropDownButtonMouseOut,this);this._dialogOpeningHandler=n.proxy(this._dialogOpening,this);this._dialogDraggedHandler=n.proxy(this._dialogDragged,this);this._dialogClosingHandler=n.proxy(this._dialogClosing,this);this._dialogClosedHandler=n.proxy(this._dialogClosed,this);this._dialogCloseButtonHandler=n.proxy(this._closeMovingDialog,this);this._dialogUpHandler=n.proxy(this._dialogUpPressed,this);this._dialogDownHandler=n.proxy(this._dialogDownPressed,this);this._dialogRearrangingHandler=n.proxy(this._dialogRearranging,this);this._dialogRearrangedHandler=n.proxy(this._dialogRearranged,this);this._columnStateChanged=n.proxy(this._updateLayout,this);this._cancelEventHandler=n.proxy(this._cancelEvent,this);this._autoScroll=n.proxy(this._scrollGrid,this)},_injectGrid:function(t,i){if(this.grid=t,i!==!0){if(this.grid.element.igGridFeatureChooser!==undefined)this.grid.element.igGridFeatureChooser();else throw new Error(n.ig.ColumnMoving.locale.featureChooserNotReferenced);this._createHandlers();this._unregisterEvents();this._registerEvents()}}});n.extend(n.ui.igGridColumnMoving,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igPopover",{css:{baseClasses:"ui-widget ui-igpopover",arrowBaseClass:"ui-igpopover-arrow ui-igpopover-arrow-",closeButtonClass:"ui-icon ui-icon-closethick ui-igpopover-close-button",titleClass:"ui-igpopover-title"},options:{closeOnBlur:!0,direction:"auto",position:"auto",width:null,height:null,maxWidth:200,maxHeight:200,animationDuration:150,contentTemplate:null,selectors:null,headerTemplate:{closeButton:!1,title:null},showOn:"mouseenter",containment:null},events:{showing:"showing",shown:"shown",hiding:"hiding",hidden:"hidden"},_create:function(){this._target=this.options.selectors===null||this.options.selectors===undefined?this.element:null;this._priorityDir=["bottom","top","right","left"];this._arrowDir=["top","bottom","left","right"];this._positions=["balanced","start","end"];this._directionIndex=-1;this._positionIndex=-1;this._forced=this.options.direction!=="auto"&&this.options.position!=="auto"},_createWidget:function(t,i){n.Widget.prototype._createWidget.apply(this,arguments);this.element=n(i);i&&i.nodeType!==undefined&&this._renderPopover();(this.options.direction!=="auto"||this.options.position!=="auto")&&this._getPrioritiesIndex()},_setOption:function(t,i){switch(t){case"direction":this.options.direction=i;this.options.direction!=="auto"&&this._getPrioritiesIndex();this._forced=this.options.direction!=="auto"&&this.options.position!=="auto";break;case"position":this.options.position=i;this.options.position!=="auto"&&this._getPrioritiesIndex();this._forced=this.options.direction!=="auto"&&this.options.position!=="auto";break;case"contentTemplate":typeof i=="string"&&(this.options.contentTemplate=i);break;case"animationDuration":typeof i=="number"&&(this.options.animationDuration=i);break;case"containment":i instanceof jQuery&&(this.options.containment=i);break;case"headerTemplate":case"selectors":case"width":case"height":case"closeOnBlur":case"maxWidth":case"maxHeight":case"showOn":throw new Error(n.ig.Popover.locale.popoverOptionChangeNotSupported+" "+t);}},destroy:function(){return this._detachEventsFromTarget(),n("#"+this.id()+"_popover").remove(),n.Widget.prototype.destroy.call(this),this},id:function(){return this.element[0].id},container:function(){return n("#"+this.id()+"_popover_contentInner")},show:function(t,i){var r=t||this._target;if(i&&this._setNewContent(i),r===null)throw new Error(n.ig.Popover.locale.popoverShowMethodWithoutTarget);else this._openPopover(r)},hide:function(){this._closePopover()},getContent:function(){return n("#"+this.id()+"_popover_contentInner").html()},setContent:function(n){typeof n=="string"&&this._setNewContent(n)},target:function(){return this._currentTarget?this._currentTarget:null},getCoordinates:function(){var n={left:0,top:0};return n.left=this.popover.css("left"),n.top=this.popover.css("top"),n},setCoordinates:function(n){this.popover.css({top:n.top,left:n.left})},_renderPopover:function(){this.popover=n("<div><\/div>").attr("id",this.id()+"_popover").addClass(this.css.baseClasses);this.options.direction!=="auto"&&(this._getPrioritiesIndex(),n("<div><\/div>").attr("id",this.id()+"_popover_arrow").addClass(this.css.arrowBaseClass+this._arrowDir[this._directionIndex]).appendTo(this.popover));this.popover.appendTo(window.document.body);this._attachEventsToTarget();this._createContentDiv()},_createContentDiv:function(){var i,t,r;i=n("<div><\/div>").attr("id",this.id()+"_popover_contentFrame").css("position","relative").css("max-width",this.options.maxWidth).css("max-height",this.options.maxHeight).css("width",this.options.width||"auto").css("height",this.options.height||"auto").addClass("ui-widget-content ui-corner-all").appendTo(this.popover);this.options.headerTemplate!==null&&(this.options.headerTemplate.closeButton&&n("<div><\/div>").attr("id",this.id()+"_popover_closeBtn").addClass(this.css.closeButtonClass).bind("click.popover",n.proxy(this._closeBtnClick,this)).appendTo(i),this.options.headerTemplate.title!==null&&n("<div><\/div>").attr("id",this.id()+"_popover_title").addClass(this.css.titleClass).html(this.options.headerTemplate.title).appendTo(i));t=this.options.contentTemplate;(typeof t=="string"||!t)&&this._target?t=this.options.contentTemplate||this._target[0].title||"":this.options.selectors===null||this._target||t?typeof t=="function"&&this._target&&(t=this.options.contentTemplate.call(this._target[0],function(){return})):this.options.contentTemplate=function(){return n(this).attr("title")};r=this.options.headerTemplate.closeButton&&(this.options.headerTemplate.title===null||this.options.headerTemplate.title==="")?n(".ui-icon").width():null;n("<div><\/div>").attr("id",this.id()+"_popover_contentInner").css("position","relative").css("margin-right",r).html(t).appendTo(i);n("<div><\/div>").css("clear","both").appendTo(i)},_updateArrowDiv:function(t,i){var r=n("#"+this.id()+"_popover_arrow"),u=n("#"+this.id()+"_popover_contentFrame"),f;r.length===0?r=n("<div><\/div>").attr("id",this.id()+"_popover_arrow").addClass(this.css.arrowBaseClass+this._arrowDir[i]).appendTo(this.popover):r.removeClass("ui-igpopover-arrow-left ui-igpopover-arrow-right ui-igpopover-arrow-bottom ui-igpopover-arrow-top").addClass(this.css.arrowBaseClass+this._arrowDir[i]);f=this._getHiddenElementsDimensions([r,u]);switch(t){case"top":u.css({left:"",top:f[0].height*-1,float:""});r.css({left:"",top:"",float:""});break;case"bottom":u.css({left:"",top:f[0].height,float:""});r.css({left:"",top:"",float:""});break;case"left":u.css({left:f[0].width*-1,top:"",float:"left"});r.css({left:"",top:"",float:"left"});break;case"right":u.css({left:f[0].width,top:"",float:"left"});r.css({left:"",top:"",float:"left"})}this.oDir=t},_targetMouseLeave:function(){this._hoveredTarget=null;this.options.closeOnBlur===!0&&this._closePopover()},_targetMouseMove:function(t){var i=this;this._target?this._openPopover(n(this._target)):(n(t.currentTarget).addClass("is-hover"),setTimeout(function(){i._hoveredTarget===t.currentTarget&&(i._openPopover(n(t.currentTarget)),n(t.currentTarget).removeClass("is-hover"))},i.options.animationDuration),this._hoveredTarget=t.currentTarget)},_targetClick:function(t){var i=this._target||t.currentTarget;n(i).data("onFocus")&&this.container().is(":visible")?(this._closePopover(),n(i).data("onFocus",!1)):(this._openPopover(n(i)),n(i).focus(),n(i).data("onFocus",!0))},_targetBlur:function(t){var i=this._target||t.currentTarget,r=this;setTimeout(function(){n(i).data("onFocus")?r.options.closeOnBlur===!0&&(r._closePopover(),n(i).data("onFocus",!1)):n(i).focus()},10)},_focusin:function(t){var i=this._target||t.currentTarget;this._openPopover(n(i))},_focusout:function(){this._closePopover()},_closeBtnClick:function(n){this._closePopover();n.stopPropagation()},_attachEventsToTarget:function(){var t=this,u=this._target,i,r,f,e;if(this.options.showOn&&this.options.showOn.match(/click|focus|mouseenter/))switch(this.options.showOn){case"click":i="click.popover";r="blur.popover";f=t._targetClick;e=t._targetBlur;break;case"focus":i="focusin.popover";r="focusout.popover";f=t._focusin;e=t._focusout;break;case"mouseenter":i="mouseenter.popover";r="mouseleave.popover";f=t._targetMouseMove;e=t._targetMouseLeave}u&&window.HTMLElement!==undefined&&(u instanceof HTMLElement||u instanceof jQuery)&&i?(n(u).unbind(i).bind(i,n.proxy(f,this)),n(u).unbind(r).bind(r,n.proxy(e,this))):this.options.selectors&&i&&this.element.find(t.options.selectors).addBack().each(function(){var u=n(this)[0];u.id!==t.id()&&(n(u).unbind(i).bind(i,n.proxy(f,t)),n(u).unbind(r).bind(r,n.proxy(e,t)))})},_detachEventsFromTarget:function(){var t=this._target,i=this;t&&window.HTMLElement!==undefined&&(t instanceof HTMLElement||t instanceof jQuery)?n(t).unbind(".popover"):this.options.selectors&&this.element.find(i.options.selectors).addBack().each(function(){var t=n(this);n(t).unbind(".popover")})},_positionPopover:function(n){var t=0,i,r;if(this.options.direction==="auto"){do this._updateArrowDiv(this._priorityDir[t],t),i="_"+this._priorityDir[t]+"Position",r=this[i](n),t++;while(r===!1&&t<this._priorityDir.length);if(r===!1)return}else if(this._updateArrowDiv(this.options.direction,this._directionIndex),i="_"+this.options.direction+"Position",!this[i](n)){this._forced=!0;do this._updateArrowDiv(this._priorityDir[t],t),i="_"+this._priorityDir[t]+"Position",r=this[i](n),t++;while(r===!1&&t<this._priorityDir.length);return}},_findProperPosition:function(t,i,r){var y=0,o,f,u,e,a=n(window),c,v,p,h,s,l;if(t==="left"?(e="left",u="outerWidth",v=a.scrollLeft()):(e="top",u="outerHeight",v=a.scrollTop()),h=v+a[0][u],l=this.options.containment,this.options.containment&&(s=l.offset()[e],s=u==="outerWidth"?s+l.outerWidth():s+l.outerHeight(),h>s&&(h=s)),c=r.offset()[e]+r[u]()>h?h-r.offset()[e]:r[u](),r[u]()>this.popover[u]())f=r.offset()[e]+c/2-this.popover[u]()/2,o=t==="left"?this._checkCollision(i,f,r):this._checkCollision(f,i,r);else if(this.options.position==="auto"){do p=this._positions[y],f=this._getCounterPosition(r,c,p,e,u),o=t==="left"?this._checkCollision(i,f,r):this._checkCollision(f,i,r);while(o===!1&&++y<this._positions.length)}else f=this._getCounterPosition(r,c,this.options.position,e,u),o=t==="left"?this._checkCollision(i,f,r):this._checkCollision(f,i,r);return o===!0&&this._adjustArrowPosition(r,t,e,u),o},_getCounterPosition:function(n,t,i,r,u){var f;switch(i){case"balanced":f=n.offset()[r]+t/2-this.popover[u]()/2;break;case"start":f=n.offset()[r];break;case"end":f=n.offset()[r]-this.popover[u]()+t}return f},_topPosition:function(n){var t=n.offset().top-this.popover.outerHeight();return this._findProperPosition("left",t,n)},_bottomPosition:function(n){var t=n.offset().top+n.outerHeight();return this._findProperPosition("left",t,n)},_leftPosition:function(n){var t=n.offset().left-this.popover.outerWidth();return this._findProperPosition("top",t,n)},_rightPosition:function(n){var t=n.offset().left+n.outerWidth();return this._findProperPosition("top",t,n)},_checkCollision:function(t,i,r){var c=this.popover.outerWidth(),l=this.popover.outerHeight(),f=n(window),y,p,a,u,v,e,s,o,h;if(p=f.width()+f.scrollLeft(),y=f.height()+f.scrollTop(),v=n("#"+this.id()+"_popover_arrow"),e=p,s=y,o=f.scrollLeft(),h=f.scrollTop(),u=this.options.containment,this.options.containment&&(o<u.offset().left&&(o=u.offset().left),u.offset().left+u.outerWidth()<e&&(e=u.offset().left+u.outerWidth()),s>u.offset().top+u.outerHeight()&&(s=u.offset().top+u.outerHeight()),h<u.offset().top&&(h=u.offset().top)),i<o){if(this.options.direction==="left")return!1;i=o}return(r.offset().left+c/2>e&&(i=e-c),(r.offset().top+l+v.height()>s&&this.oDir==="bottom"||r.offset().top-l-v.height()<h&&this.oDir==="top")&&this.options.selectors)?!1:(i<o||i+c>e||t<h||t+l>s)&&this._forced===!0?!1:(!this.options.containment&&this._target&&(a=this._getRelativeOffset(),t=t-a.top,i=i-a.left),this.popover.css({top:t,left:i}),!0)},_getPrioritiesIndex:function(){var n;if(this.options.direction!=="auto")for(n=0;n<this._priorityDir.length;n++)if(this.options.direction===this._priorityDir[n]){this._directionIndex=n;break}if(this.options.position!=="auto")for(n=0;n<this._positions.length;n++)if(this.options.position===this._positions[n]){this._positionIndex=n;break}},_openPopover:function(t){var i,u,f=this.getContent(),r=this,e;i={element:t,content:f,popover:this.popover,owner:this};n(this.popover).data("isAnimating",!0);u=this._trigger(this.events.showing,this,i);u===!0&&(r._restoreOriginalTitle(r._currentTarget),i.content!==f?this._setNewContent(i.content):typeof this.options.contentTemplate=="function"&&(e=this.options.contentTemplate,i.content=e.call(t[0],function(){return}),this._setNewContent(i.content||"")),this._positionPopover(t),this._currentTarget=t,n(this.popover).data("isAnimating",!1),this.popover.fadeIn(this.options.animationDuration,function(){r._trigger(r.events.shown,r,i)}),this._removeOriginalTitle(t))},_closePopover:function(){var t,r,i=this;t={element:this._currentTarget,content:this.getContent(),popover:this.popover,owner:this};n(this.popover).data("isAnimating",!0);r=this._trigger(this.events.hiding,this,t);r===!0&&(n(this.popover).data("isAnimating",!1),this.popover.fadeOut(this.options.animationDuration,function(){i._trigger(i.events.hidden,i,t)}))},_mouseenter:function(t){_removeOriginalTitle(n(t._currentTarget))},_removeOriginalTitle:function(n){while(n.length&&!n.is("body"))n.attr("title")&&(n.data("popover-title",n.attr("title")),n.attr("title","")),n=n.parent()},_restoreOriginalTitle:function(n){n&&n.data("popover-title")&&(n.attr("title",n.data("popover-title")),n.removeData("popover-title"))},_adjustArrowPosition:function(t,i,r,u){var f=n("#"+this.id()+"_popover_arrow"),o={left:0,top:0},e;!this.options.containment&&this._target&&(o=this._getRelativeOffset());i==="top"?f.css({top:t.offset()[r]-parseInt(this.popover.css(r),10)-o.top+t[u]()/2-f.height()/2}):(e=t.offset()[r]-parseInt(this.popover.css(r),10)-o.left+t[u]()/2,e=e<parseInt(f.css("border-left-width"),10)?parseInt(f.css("border-left-width"),10):e,f.css({left:e}))},_getRelativeOffset:function(){var t={left:0,top:0},n=this.popover;for(this.options.containment&&(n=this.options.containment);n[0]!==null&&n[0]!==undefined&&n[0].nodeName!=="#document";){if(n.css("position")==="relative"){t.left=n.offset().left;t.top=n.offset().top;break}n=n.parent()}return t},_getHiddenElementsDimensions:function(t){var u=[],i,r;for(n("#"+this.id()+"_popover").show(),i=0;i<t.length;i++)r=t[i],u.push({width:r.outerWidth(),height:r.outerHeight()});return n("#"+this.id()+"_popover").hide(),u},_setNewContent:function(t){var i=t;t instanceof jQuery?i=t.html():typeof t=="object"&&(i=t.innerHTML);n("#"+this.id()+"_popover_contentInner").html(i)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n===null||n===undefined?this.prevObject:this.prevObject.filter(n))});n.extend(n.ui.igPopover,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridFeatureChooserPopover",n.ui.igPopover,{options:{gridId:"",targetButton:null,closeOnBlur:!0,containment:null},_create:function(){n.extend(n.ui.igGridFeatureChooserPopover.prototype.options,n.ui.igPopover.prototype.options);n.extend(n.ui.igGridFeatureChooserPopover.prototype.css,n.ui.igPopover.prototype.css);n.ui.igPopover.prototype._create.apply(this)},isShown:function(){return this.container().is(":visible")},_setFCElementFocus:function(n,t){(t===undefined||t===null)&&(t=this.options.targetButton);this.options.targetButton.data("onFocus",n);n&&t.focus()},registerElements:function(n){var i,t=this.options.targetButton,r=this;i={focus:function(){setTimeout(function(){t.data("onFocus",!0)},1)},blur:function(){t.data("onFocus",!1);setTimeout(function(){!t.data("onFocus")&&r.isShown()&&r._closePopover()},10)}};n.bind(i)},_createWidget:function(){var t=this,i;this._attachedToBody=!0;this.options.content="";n.Widget.prototype._createWidget.apply(this,arguments);n.ui.igPopover.prototype._createWidget.apply(this,arguments);this._detachEventsFromTarget();i=this.options.targetButton;this.options.closeOnBlur&&(i.attr("tabindex","0"),this._eventsFC={iggridfeaturechooserpopovershown:function(){t._setFCElementFocus(!0)},iggridfeaturechooserpopoverhidden:function(){t._setFCElementFocus(!1);t.popover.width("");t.popover.css({left:""})},mousedown:function(){setTimeout(function(){t._setFCElementFocus(!0)},1)},touchstart:function(){setTimeout(function(){t._setFCElementFocus(!0)},1)}},this.element.bind(this._eventsFC),this.registerElements(i))},_positionPopover:function(){var t,i=this.popover.outerWidth(),u,f,e,o,s=this.options.maxWidth,h=this.options.containment,r=n(window);s&&s<i&&(i=s);t=this.popover;t&&(u=h.offset().left>=r.scrollLeft()?r.width()+r.scrollLeft()-h.offset().left:r.width(),i>u&&(i=parseInt(u,10)),this.popover.width(i));n.ui.igPopover.prototype._positionPopover.apply(this,arguments);t.width(i);f=parseFloat(t.css("top"));e=parseFloat(t.css("left"));this._attachedToBody&&(t.detach().appendTo(h),this._attachedToBody=!1);o=n.ig.util.getRelativeOffset(t);isNaN(f)||t.css("top",f-o.top);isNaN(e)||t.css("left",e-o.left)},destroy:function(){var t;this._eventsFCTargetButton&&(t=this.options.targetButton,t.unbind(this._eventsFCTargetButton));this._eventsFC&&this.element.unbind(this._eventsFC);n.ui.igPopover.prototype.destroy.apply(this,arguments)}});n.extend(n.ui.igGridFeatureChooserPopover,{version:"14.1.20141.2031"});n.ig=n.ig||{};n.ig.GridFeatureChooserSections=n.ig.GridFeatureChooserSections||{click:"click",toggle:"toggle",modalDialog:"modalDialog"};n.widget("ui.igGridFeatureChooser",{css:{featureChooserDropDown:"",headerButtonIcon:"ui-iggrid-featurechooserbutton ui-icon ui-icon-gear",headerButtonIconMouseOver:"ui-iggrid-header-icon-mouseover",headerButtonIconSelected:"ui-iggrid-header-icon-selected",listClass:"ui-iggrid-featurechooser-list ui-menu ui-widget ui-widget-content ui-corner-all",listItemClass:"ui-iggrid-featurechooserddlistitemicons ui-state-default",listItemContainer:"ui-iggrid-featurechooser-li-container",listItemIconContainer:"ui-iggrid-featurechooser-li-iconcontainer",itemSecondaryIconContainer:"ui-iggrid-featurechooser-secondaryicon-container",separator:"ui-iggrid-featurechooser-separator",listItemText:"ui-iggrid-featurechooserddlistitemtext",itemSelected:"item-selected",dropDownListItemHover:"ui-iggrid-featurechooser-listitem-hover ui-state-active ui-state-hover",dropDownButtonClasses:"ui-igbutton",dropDownButtonHoverClasses:"",dropDownButtonActiveClasses:"",dropDownButtonFocusClasses:"",dropDownButtonLabelClass:"",containerDelimiter:"ui-iggrid-featurechooser-container-delimiter",containerSection:"ui-iggrid-featurechooser-container-section",itemNoIcon:"ui-iggrid-featurechooserbutton ui-icon ui-icon-close",submenu:"ui-iggrid-featurechooser-submenu ui-widget-content ui-corner-all",submenuIcon:"ui-iggrid-featurechooser-submenuicon ui-icon ui-icon-triangle-1-s"},options:{dropDownWidth:null,animationDuration:400},events:{featureChooserRendering:"featureChooserRendering",featureChooserRendered:"featureChooserRendered",featureChooserDropDownOpening:"featureChooserDropDownOpening",featureChooserDropDownOpened:"featureChooserDropDownOpened",menuToggling:"menuToggling",featureToggling:"featureToggling",featureToggled:"featureToggled"},_createWidget:function(){n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){this.analyzedData={};this.data={};this._features=[];this._isFeaturesAnalyzed=!1;this.isInitialized=!1;this.grid=this.element.data("igGrid");this.gridId=this.element[0].id;this._analyzeGridFeaturesOptions();this._countRenderedFeatures=0;this._headerRenderedHandler&&this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler);this._headerRenderedHandler=n.proxy(this._headerRendered,this);this.grid.element.bind("iggridheaderrendered",this._headerRenderedHandler);this._gridDestroyedHandler&&this.grid.element.unbind("igcontroldestroyed",this._gridDestroyedHandler);this._gridDestroyedHandler=n.proxy(this.destroy,this);this.grid.element.bind("igcontroldestroyed",this._gridDestroyedHandler)},_analyzeGridFeaturesOptions:function(){for(var t=this.grid.options.features,i=t.length,n=0;n<i;n++)this._features.push(t[n].name)},shouldShowFeatureIcon:function(n){return this.analyzedData[n]!==undefined&&this.analyzedData[n]!==null?this.analyzedData[n].length<=1:!0},_setOption:function(){n.Widget.prototype._setOption.apply(this,arguments)},_id:function(t,i){var r=this.gridId+"_"+t;return i!==undefined&&i!==null&&n.type(i)==="string"&&(r+="_"+i),r},_isMetroIE:function(){var i=window.innerWidth===screen.width&&window.innerHeight===screen.height,t,n=null;if(!i)return!1;try{n=new ActiveXObject("")}catch(r){t=r.name}try{n=new ActiveXObject("htmlfile");n=!!n}catch(r){n=!1}return n=n===!1&&t!=="ReferenceError"?!1:!0,!n},_isTouchDevice:function(){return this._isTouch===undefined&&(this._isTouch=typeof Modernizr=="object"&&Modernizr.touch===!0||this._isMetroIE()),this._isTouch},_callFeatureMethod:function(t,i,r,u){var f,o=n.type(t.method),e=this.grid.element.data("igGrid"+t.name);if(o==="string"){if(e===undefined||e===null)return!1;f=e[t.method]}else o==="function"&&(f=t.method);return f===undefined||f===null?!1:n.type(t.method)==="string"?e[t.method](u,r,i,t.methodData):t.method(u,r,i,t.methodData)},_getFeatureByKeyName:function(n,t){var i,u=null,r=this.data[n],f;if(!r)return u;for(f=r.length,i=0;i<f;i++)if(r[i].name===t){u=r[i];break}return u},_clickFeature:function(t){var s,e,l=n(t.target).data("data")!==undefined?n(t.target):n(t.currentTarget),c=l.data("data"),o=this,r=null,a=c.type,u=c.columnKey,h=c.featureName,f=this.data[u],v=f.length,i=null;(i=this._getFeatureByKeyName(u,h),i!==null&&i!==undefined)&&(a==="toggle"&&(r=!i.isSelected),this._trigger(this.events.featureToggling,null,{target:l,columnKey:u,isToSelect:r,featureName:"igGrid"+i.name})!==!1)&&this._callFeatureMethod(i,r,u,t)!==!1&&a==="toggle"&&(i.isSelected=r,o._setSelectedItem(u,r,n("#"+o._id("featurechooser_dd_li_"+u,h))),i.updateOnClickAll===!0&&n.each(o.data,function(t,i){if(t!==u){for(e=0;e<i.length;e++)if(i[e].name===h)break;if(e===i.length||(f=o.data[t],f===null||f===undefined))return!0;for(v=f.length,s=0;s<v;s++)if(f[s].name===h){f[s].isSelected=r;break}o._setSelectedItem(t,r,n("#"+o._id("featurechooser_dd_li_"+t,i[e].name)))}}))},_setListItemText:function(t,i,r){n("#"+this._id("featurechooser_dd_li_"+t,i)+" span.ui-iggrid-featurechooserddlistitemtext").text(r)},_analyzeFeatures:function(){if(this._isFeaturesAnalyzed!==!0){for(var t,o=this.grid.options.columns,h=o.length,r,c=this._features.length,l=this._features,s=[],u,e,i,n,f=0;f<c;f++)if((r=l[f],i=this.grid.element.data("igGrid"+r),i!==undefined&&i!==null)&&i.renderInFeatureChooser===!0&&i._columnMap!==undefined&&i._columnMap!==null&&(u=i._columnMap(),u!==!1&&u!==null&&u!==undefined)){if(e=u.length,e===0)for(t=0;t<h;t++)(n=o[t].key,(this.analyzedData[n]===undefined||this.analyzedData[n]===null)&&(this.analyzedData[n]=[]),this._isFeatureExistByColumnKey(r,n)!==!0)&&this.analyzedData[n].push({name:r,method:null,text:null,iconClass:null,isSelected:!1,columnCell:null,isActive:!1});else for(t=0;t<e;t++)(n=u[t].columnKey,(this.analyzedData[n]===undefined||this.analyzedData[n]===null)&&(this.analyzedData[n]=[]),u[t].enabled===!0&&this._isFeatureExistByColumnKey(r,n)!==!0)&&this.analyzedData[n].push({name:r,method:null,text:null,iconClass:null,isSelected:!1,columnCell:null,isActive:!1});s.push({name:r,instance:i})}this._features=s;this._isFeaturesAnalyzed=!0}},_isFeatureExistByColumnKey:function(t,i){var r=this.analyzedData[i],u=!1;return r===null||r===undefined?!0:(n.each(r,function(n,i){if(i.name===t)return u=!0,!1}),u)},_shouldRenderInFeatureChooser:function(n){return(this._analyzeFeatures(),this.analyzedData[n]!==undefined&&this.analyzedData[n]!==null)?this.analyzedData[n].length>1:!1},_headerRendered:function(t,i){if(i.owner.element.attr("id")===this.grid.element.attr("id")&&t.target.id===this.grid.element[0].id){var r=this;n.each(this.data,function(n,t){r._initFC(n,t)})}},_touchStart:function(t,i){if(n(t.target).attr("data-skip-event"))return t;this.toggleDropDown(i);t.preventDefault();t.stopPropagation()},_initFC:function(t,i){var r=this,c=this.grid.container().find("thead"),e,o,h,u,f,s;if(e=n("#"+r.grid.element[0].id+"_"+t),h=r._id("featureChooser_headerButton",t),u=function(n){n.preventDefault();n.stopPropagation()},i.isCancelledRendering!==!1&&r._trigger(r.events.featureChooserRendering,null,{owner:r.grid,columnKey:t,columnCell:e})===!1){i.isCancelledRendering=!0;return}i.isCancelledRendering=!1;this._isTouchDevice()?e.bind({click:function(n){r._touchStart(n,t)}}):(o=c.find("#"+r.grid.element[0].id+"_"+t),this.grid._enableHeaderCellFeature(o),s=o.find(".ui-iggrid-indicatorcontainer"),s.length===0&&(s=n("<div><\/div>").appendTo(o).addClass("ui-iggrid-indicatorcontainer")),f=n("<span><\/span>").appendTo(s).addClass(r.css.headerButtonIcon),f.wrap('<a id="'+h+'" href="#" title=""><\/a>'),f.parent().attr("th-remove-focus","").bind({keydown:function(i){var f,e,o=n("#"+r._id("featureChooser_dd",t));i.keyCode===n.ui.keyCode.ENTER||i.keyCode===n.ui.keyCode.SPACE?(f=o.find("ul li.ui-iggrid-featurechooser-listitem-hover"),o.is(":visible")&&f.length>0&&(i.target=f.find('*[role="button"]').length?f.find('*[role="button"]:eq(0)'):f[0],r._clickFeature(i)),r.toggleDropDown(t),u(i)):(i.keyCode===n.ui.keyCode.DOWN||i.keyCode===n.ui.keyCode.UP)&&o.is(":visible")&&(f=o.find("ul li.ui-iggrid-featurechooser-listitem-hover"),f.length>1&&n.each(f,function(t,i){r._removeCssSelectionListItem(n(i))}),e=i.keyCode===n.ui.keyCode.DOWN?f.next():f.prev(),e.attr("data-fc-separator")&&(e=i.keyCode===n.ui.keyCode.DOWN?e.next():e.prev()),f.length===0?r._addCssSelectionListItem(o.find("ul li:eq(0)")):e.length>0&&e.is("li")&&(r._removeCssSelectionListItem(f),r._addCssSelectionListItem(e)),u(i))},mousedown:function(n){r.toggleDropDown(t);u(n)},mouseover:function(){f.hasClass(r.css.headerButtonIconSelected)===!1&&f.addClass(r.css.headerButtonIconMouseOver)},mouseout:function(){f.removeClass(r.css.headerButtonIconMouseOver)},mouseup:u,click:u}),n("#"+this._id("featureChooser_dd",t)).remove());r._trigger(r.events.featureChooserRendered,null,{owner:r.grid,columnKey:t,columnCell:e})},_renderInFeatureChooser:function(t,i){var r,u=this.analyzedData[t],f;if(u!==undefined&&u!==null&&(f=u.length,u.isCancelledRendering!==!0)){for(r=0;r<f;r++)if(u[r].name.toLowerCase()===i.name.toLowerCase()){this.analyzedData[t][r]=i;break}for(r===f&&this.analyzedData[t].push(i),(this.data[t]===null||this.data[t]===undefined)&&(this.data[t]=[]),n.type(this.data[t].order)!=="number"&&(this.data[t].order=0),r=0;r<this.data[t].length;r++)if(this.data[t][r].name===i.name&&i.name!==undefined)return;this.data[t].push(i)}},_renderMenu:function(t){var e,o,f=this,s,i,u,c=n("#"+this.grid.id()+"_"+t),h=this._id("featureChooser_dd",t),r=n("#"+h);if(!(r.length>0)){if(r=n('<div tabindex="0"><\/div>').attr("id",h).appendTo(this.grid._rootContainer()),u=n("#"+this._id("featureChooser_headerButton",t)).find("span"),u.length===0&&(u=c),r.igGridFeatureChooserPopover({position:"auto",targetButton:u,maxWidth:this.grid.container().width(),direction:"bottom",maxHeight:null,containment:this.grid.container()}),i=r.data("igGridFeatureChooserPopover"),r.bind("iggridfeaturechooserpopovershown",function(){f._visiblePopover=h}),r.bind("iggridfeaturechooserpopoverhiding",function(){f._activeSubmenuId&&(n("#"+f._activeSubmenuId).hide(),f._activeSubmenuId=null)}),o=this.data[t],o){for(e=0;e<o.length;e++)this._renderDropDownItem(t,o[e]);s=i.container().find("li[data-fc-order]");r.igGridFeatureChooserPopover("registerElements",s);u.bind({keydown:function(t){t.keyCode===n.ui.keyCode.ESCAPE?i._closePopover():t.keyCode===n.ui.keyCode.TAB&&!t.shiftKey&&i.isShown()&&(i.popover.find("li[data-fc-order]:first").focus(),t.stopPropagation(),t.preventDefault())}});s.bind({keydown:function(t){var r,f=t.keyCode;switch(f){case n.ui.keyCode.ESCAPE:u.data("onFocus",!1).focus();i._closePopover();break;case n.ui.keyCode.TAB:r=n(this);t.shiftKey?r.is(":first-child")&&(r.closest("ul").find("li:last-child").focus(),t.preventDefault()):r.is(":last-child")&&(r.closest("ul").find("li:first-child").focus(),t.preventDefault());break;case n.ui.keyCode.RIGHT:r=n(this);r=r.nextAll("li[data-fc-order]").eq(0);r.length===0&&(r=n(this).closest("ul").find("li:first-child"));r.focus();t.preventDefault();break;case n.ui.keyCode.LEFT:r=n(this);r=r.prevAll("li[data-fc-order]").eq(0);r.length===0&&(r=n(this).closest("ul").find("li:last-child"));r.focus();t.preventDefault()}}})}r.bind({keydown:function(r){r.keyCode===n.ui.keyCode.ESCAPE&&i.container().is(":visible")&&(f.toggleDropDown(t),i.container().blur())}})}},_removeFeature:function(t,i){var r=this,u=this.grid.options.columns;n.each(u,function(u,f){r._removeDropDownItem(f.key,t);i&&n("#"+r._id("featurechooser_submenu_"+f.key,t)).remove()})},_removeDropDownItem:function(t,i){var u=-1,r,e=n("#"+this._id("featureChooser_dd",t)),o=n("#"+this._id("featurechooser_dd_list",t)),f=n("#"+this._id("featurechooser_dd_li_"+t,i));if(e.length===0){r=this.data[t];r&&(n.each(r,function(n,t){if(t.name===i)return u=n,!1}),u>-1&&(r.splice(u,1),r.length===0&&this._removeFC(t)));return}f.length>0&&(f.remove(),o.find("li:not([data-fc-separator])").length===0?this._removeFC(t):this._removeSeparatorItem(t))},_removeFC:function(t){var i=n("#"+this._id("featureChooser_dd",t));i.igGridFeatureChooserPopover("destroy");i.remove();n("#"+this._id("featureChooser_headerButton",t)).remove()},_removeSeparatorItem:function(t){var i=n("#"+this._id("featurechooser_dd_list",t)).find("[data-fc-separator]");i.each(function(){var t=n(this),i=t.prev(),r=t.next();if(i.length===0||i.attr("data-fc-separator")!==undefined||r.length===0||r.attr("data-fc-separator")!==undefined)return t.remove(),!1})},_renderDropDownItem:function(t,i){var nt=this._id("featureChooser_dd",t),b=n("#"+nt).igGridFeatureChooserPopover("container"),r,s,h,v,a,y,p="",u=this,w=i.isSelected,e=i.name,k,d=this._id("featurechooser_dd_li_"+t,e),f=i.groupName,c=i.groupOrder,o,l,g;n("#"+d).length>0||((f===undefined||f===null)&&(f="click"),s=this._id("featurechooser_dd_list",t),h=n("#"+s),h.length===0&&(b.html(""),h=n("<ul><\/ul>").attr("id",s).addClass(this.css.listClass).appendTo(b)),(w===undefined||w===null)&&(w=!1),r=n('<li tabindex="0"><\/li>').addClass(this.css.listItemClass).attr("id",d).attr("data-fc-order",i.order),f!==undefined&&f!==null&&r.attr("data-fc-groupname",f),c!==undefined&&c!==null&&r.attr("data-fc-grouporder",c),k={columnKey:t,featureName:e,updateOnClickAll:i.updateOnClickAll,iconClass:i.iconClass,iconClassOff:i.iconClassOff,groupName:f,groupOrder:c,type:i.type,textHide:i.textHide,state:i.state,text:i.text},r.data("data",k),v=function(r){var s=u._id("featurechooser_submenu_"+t,e),h=r,o,f=r.keyCode;i.type!=="dropdown"?f&&f!==n.ui.keyCode.ENTER&&f!==n.ui.keyCode.SPACE||(r.target===undefined&&(h.target=r.srcElement),u._clickFeature(r),u.toggleDropDown(t)):(u._visiblePopover&&(f?f===n.ui.keyCode.DOWN?(o=n("#"+s),o.is(":visible")?o.find("[data-fc-item]:first").focus():u._toggleSubmenu(t,e,i)):f===n.ui.keyCode.ENTER||f===n.ui.keyCode.SPACE?u._toggleSubmenu(t,e,i):f===n.ui.keyCode.UP&&(o=n("#"+s),o.is(":visible")&&u._toggleSubmenu(t,e,i)):(u._toggleSubmenu(t,e,i),setTimeout(function(){n("#"+u._visiblePopover).data("igGridFeatureChooserPopover")._setFCElementFocus(!0)},5))),r.preventDefault&&r.preventDefault())},r.bind({keydown:v,mousedown:v}),i.iconClass!==null&&i.iconClass!==undefined&&i.iconClass!==""&&(p=i.iconClassOff&&i.isSelected===!1?i.iconClassOff:i.iconClass),a=n("<div><\/div>").addClass(this.css.listItemContainer).appendTo(r),y=n("<span><\/span>").addClass(this.css.listItemIconContainer).appendTo(a),p!==""?y.addClass(p):y.addClass(this.css.itemNoIcon),g=i.text,r.attr("title",g),n("<span><\/span>").text(i.text).addClass(this.css.listItemText).appendTo(a),o=n("#"+s+" li[data-fc-groupName = "+f+"]"),o.length===0?(o=n("#"+s+" li[data-fc-groupName]"),l=this._getInsertElement(o,c,"data-fc-grouporder"),l.item!==null&&(h=o),this._insertElement(l,h,r,f)):(l=this._getInsertElement(o,i.order,"data-fc-order"),this._insertElement(l,o,r,f)),i.type==="toggle"&&this._setSelectedItem(t,i.isSelected,r),i.type==="dropdown"&&(n('<span class="'+this.css.submenuIcon+'" data-submenu-arrow="true"><\/span>').appendTo(a),u._renderSubmenu(t,e,i)))},_renderSubmenu:function(t,i,r){var f=this._id("featurechooser_submenu_"+t,i),u;n("#"+f).length>0&&n("#"+f).remove();(this._submenus===null||this._submenus===undefined)&&(this._submenus=[]);this._submenus.push(f);u=n('<div id="'+f+'" style="position:absolute" class="'+this.css.submenu+'"><\/div>').appendTo(this.grid._rootContainer());u.data("buttonId",this._id("featurechooser_dd_li_"+t,i));u.hide();r.methodRenderSubmenu&&(r.methodRenderSubmenu(t,u),n("#"+this._id("featureChooser_dd",t)).igGridFeatureChooserPopover("registerElements",u.find("[data-fc-item]")))},_toggleSubmenu:function(t,i,r){var e,s=n("#"+this._id("featurechooser_dd_li_"+t,i)),f=s.find("div:nth-child(1)"),h=f.outerWidth(),c=f.offset().left,o=this._id("featurechooser_submenu_"+t,i),u=n("#"+o),l=c-Math.abs(u.outerWidth()-h)/2,a=f.offset().top+f.outerHeight();e=n.ig.util.getRelativeOffset(u);u.css({left:l-e.left,top:a-e.top});r.methodToggleSubmenu&&r.methodToggleSubmenu(t,!u.is(":visible"),u);this._activeSubmenuId&&this._activeSubmenuId!==o&&n("#"+this._activeSubmenuId).hide();this._activeSubmenuId=o;u.toggle("slide",{duration:150,direction:"up"})},_getSeparatorItem:function(){return n('<li data-fc-separator="1" class="'+this.css.separator+'"><\/li>')},_insertElement:function(n,t,i,r){var u=n.item,e=n.position,f;u===null?(i.appendTo(t),f=i.prev(),f!==undefined&&f.length>0&&f.attr("data-fc-separator")!=="1"&&f.attr("data-fc-groupname")!==undefined&&f.attr("data-fc-groupname")!==r&&this._getSeparatorItem().insertBefore(i)):e==="after"?(i.insertAfter(u),u!==undefined&&u.length>0&&u.attr("data-fc-separator")!=="1"&&u.attr("data-fc-groupname")!==undefined&&u.attr("data-fc-groupname")!==r&&this._getSeparatorItem().insertBefore(i)):(i.insertBefore(u),f=i.prev(),f!==undefined&&f.length>0&&f.attr("data-fc-separator")!=="1"&&f.attr("data-fc-groupname")!==undefined&&f.attr("data-fc-groupname")!==r?this._getSeparatorItem().insertBefore(i):u!==undefined&&u.length>0&&u.attr("data-fc-separator")!=="1"&&u.attr("data-fc-groupname")!==undefined&&u.attr("data-fc-groupname")!==r&&this._getSeparatorItem().insertAfter(i))},_getInsertElement:function(t,i,r){for(var u=null,o,e,f=0;f<t.length;f++)if((u=n(t[f]),e=u.attr(r),e!==undefined)&&(o=parseInt(e,10),o>i))return{item:u,position:"before"};return{item:u,position:"after"}},_setSelectedState:function(t,i,r,u){var e=this.data[i],o,f=this;if(e===undefined||e===null)return!1;n.each(e,function(e,s){if(s.name.toLowerCase()===t.toLowerCase())return o=n("#"+f._id("featurechooser_dd_li_"+i,s.name)),f._setSelectedItem(i,r,o),f.data[i][e].isSelected=!r,u===!0&&f._callFeatureMethod(s,r,i,null),s.isSelected=r,!1})},_setSelectedItem:function(n,t,i){if(i!==null&&i!==undefined&&i.length!==0){var r=i.data("data"),e,o,u,f=null;r!==undefined&&r!==null&&(e=r.text,o=r.textHide,f=i.find("span.ui-iggrid-featurechooserddlistitemtext"));i.attr("data-fc-selected",t);t===!0?(i.addClass(this.css.itemSelected),u=e,f!==null&&e!==null&&e!==undefined&&f.text(u),r.iconClassOff&&i.find("span.ui-iggrid-featurechooser-li-iconcontainer").removeClass(r.iconClassOff).addClass(r.iconClass)):(i.removeClass(this.css.itemSelected),u=o,f!==null&&o!==null&&o!==undefined&&f.text(u),r.iconClassOff&&i.find("span.ui-iggrid-featurechooser-li-iconcontainer").removeClass(r.iconClass).addClass(r.iconClassOff));i.attr("title",u)}},_toggleSelectedItems:function(t,i){var f,e,r,s=this.grid.options.columns,h=s.length,u,o;for(i!==undefined&&(u=i),f=0;f<h;f++){if(r=s[f].key,n("#"+this._id("featureChooser_dd",r)).length===0){if(o=this._getFeatureByKeyName(r,t),o===null||o===undefined)continue;u===undefined&&(u=o.isSelected)}else{if(e=n("#"+this._id("featurechooser_dd_li_"+r,t)),e.data("data")===null||e.data("data")===undefined)continue;i===undefined&&(u=e.attr("data-fc-selected")==="true")}this._setSelectedState(t,r,!u)}},toggleDropDown:function(t){var e=this._id("featureChooser_dd",t),r,u,f,i=this;this._renderMenu(t);r=n("#"+e);f=r.igGridFeatureChooserPopover("isShown");i._trigger(i.events.menuToggling,null,{isVisible:f,columnKey:t,owner:i});f?(r.igGridFeatureChooserPopover("hide"),this.grid._focusedElement=null):(this.grid._focusedElement=n("#"+i._id("featureChooser_headerButton",t)).find("span"),u=n("#"+this._id("featureChooser_headerButton",t)).find("span"),i._visiblePopover&&e!==i._visiblePopover?(n("#"+i._visiblePopover).data("igGridFeatureChooserPopover")._closePopover(),setTimeout(function(){r.igGridFeatureChooserPopover("show",u)},100)):r.igGridFeatureChooserPopover("show",u))},_mouseOverDropDownItem:function(t){this._addCssSelectionListItem(n(t.currentTarget))},_mouseOutDropDownItem:function(t){this._removeCssSelectionListItem(n(t.currentTarget))},_addCssSelectionListItem:function(n){n.addClass(this.css.dropDownListItemHover)},_removeCssSelectionListItem:function(n){n.removeClass(this.css.dropDownListItemHover)},destroy:function(){var t,r,u=this,i=this._submenus;if(this.data=null,n.each(this.grid.options.columns,function(t,i){var r=n("#"+u._id("featureChooser_dd",i.key));r.length>0&&(r.igGridFeatureChooserPopover("destroy"),r.remove())}),i)for(r=i.length,t=0;t<r;t++)n("#"+i[t]).remove();return this._headerRenderedHandler&&this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler),this._gridDestroyedHandler&&this.grid.element.unbind("igcontroldestroyed",this._gridDestroyedHandler),this._gridRenderedHandler&&this.grid.element.unbind("iggridrendered",this._gridRenderedHandler),delete this._gridRenderedHandler,delete this._headerRenderedHandler,delete this._gridDestroyedHandler,n.Widget.prototype.destroy.apply(this,arguments),this}});n.extend(n.ui.igGridFeatureChooser,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridModalDialog",{options:{buttonApplyText:"Apply",buttonCancelText:"Cancel",modalDialogCaptionText:"Header",modalDialogWidth:250,modalDialogHeight:"",renderFooterButtons:!0,animationDuration:200},css:{modalDialog:"ui-dialog ui-draggable ui-resizable ui-iggrid-dialog ui-widget ui-widget-content ui-corner-all",modalDialogHeaderCaption:"ui-dialog-titlebar ui-widget-header ui-corner-top ui-helper-reset ui-corner-all ui-helper-clearfix",modalDialogHeaderCaptionTitle:"ui-dialog-title",modalDialogContent:"ui-dialog-content ui-widget-content",modalDialogHandleBar:"",captionButtonContainer:"ui-iggrid-modaldialog-caption-buttoncontainer",modalDialogFooter:"ui-dialog-buttonpane ui-widget-content ui-helper-clearfix",buttonset:"ui-dialog-buttonset",blockArea:"ui-widget-overlay ui-iggrid-blockarea"},events:{modalDialogOpening:"modalDialogOpening",modalDialogOpened:"modalDialogOpened",modalDialogMoving:"modalDialogMoving",modalDialogClosing:"modalDialogClosing",modalDialogClosed:"modalDialogClosed",modalDialogContentsRendering:"modalDialogContentsRendering",modalDialogContentsRendered:"modalDialogContentsRendered",buttonOKClick:"buttonOKClick"},_createWidget:function(t){this.gridContainer=t.gridContainer;this.containment=t.containment||t.gridContainer;n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){this._setGridWidthHeight();this._renderModalDialog()},_setGridWidthHeight:function(){this.element.css("width",this.options.modalDialogWidth).css("height",this.options.modalDialogHeight)},openModalDialog:function(){var y=1e4,f,p,w,r,u,o,s,e,d,g,b,k,h,c,nt,l,tt,a,v,it=!0,t=this.element,rt,i,ut=this._getAnimationDuration(),ft=this._id("_modaldialog_block");this._modalDialogOpened||(it=this._trigger(this.events.modalDialogOpening,null,{modalDialog:t,owner:this}),it&&(n("#"+ft).remove(),this._setGridWidthHeight(),rt=t.find("table tbody"),rt.empty(),e=n.ig.util.offset(this.gridContainer),g=this.gridContainer.outerWidth(),d=this.gridContainer.outerHeight(),p=n(window).scrollLeft(),w=n(window).scrollTop(),r=e.left-p,u=e.top-w,o=r+g,s=u+d,h=parseInt(this.options.modalDialogWidth,10),c=parseInt(this.options.modalDialogHeight,10),i=n("<div><\/div>").appendTo(this.gridContainer).attr("id",ft).css("position","absolute").addClass(this.css.blockArea).hide(),i.outerWidth()!==this.gridContainer.outerWidth()&&i.css("width",this.gridContainer.outerWidth()),i.outerHeight()!==this.gridContainer.outerHeight()&&i.css("height",this.gridContainer.outerHeight()),f=n.ig.util.getRelativeOffset(i),i.css({left:e.left-f.left,top:e.top-f.top}).fadeToggle(ut),h||(h=this.element.width()),c||(c=this.element.height()),r<0&&(r=0),u<0&&(u=0),k=n(window).width(),b=n(window).height(),o>k&&(o=k),s>b&&(s=b),a=u+w+(s-u)/2-c/2,v=r+p+(o-r)/2-h/2,a<0&&(a=u),v<0&&(v=r),y=n.ig.getMaxZIndex(this.element[0].id),f=n.ig.util.getRelativeOffset(t),t.css({left:v-f.left,top:a-f.top,zIndex:y+2}).fadeToggle(ut),i.css({zIndex:y+1}),nt=t.children("div.ui-dialog-titlebar"),l=t.children("div.ui-dialog-content"),tt=t.children("div.ui-dialog-buttonpane"),l.css("height",t.height()-nt.outerHeight()-(l.outerHeight()-l.height())-tt.outerHeight()),n("#"+this._id("content")).css({width:""}),this._modalDialogOpened=!0,this._trigger(this.events.modalDialogOpened,null,{modalDialogElement:t,owner:this}),t.focus()))},_getAnimationDuration:function(){var n=this.options.animationDuration;return(n===null||n===undefined)&&(n=200),n},_setOption:function(t,i){n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"buttonApplyText":n("#"+this._id("footer_buttonok")).igButton("option","labelText",i);break;case"buttonCancelText":n("#"+this._id("footer_buttoncancel")).igButton("option","labelText",i);break;case"modalDialogCaptionText":this.element.find("span.ui-dialog-title:eq(0)").html(i);break;case"modalDialogWidth":this.element.css("width",i);break;case"modalDialogHeight":this.element.css("height",i);break;case"renderFooterButtons":this.element.is(":visible")&&this.closeModalDialog();this.element.empty();this._renderModalDialog()}},closeModalDialog:function(){var i=!0,t=this.element,r=this._getAnimationDuration();this._modalDialogOpened&&(i=this._trigger(this.events.modalDialogClosing,null,{modalDialog:t,owner:this}),i&&(t.fadeToggle(r),n("#"+this._id("_modaldialog_block")).fadeToggle(r),this._modalDialogOpened=!1,this._trigger(this.events.modalDialogClosed,null,{modalDialog:t,owner:this})))},_modalDialogMove:function(n,t){var r=t.originalPosition,i=t.position;i.top<0&&(i.top=this.gridContainer.position().top);this._trigger(this.events.modalDialogMoving,null,{modalDialog:n.target,owner:this,originalPosition:r,position:i})},getCaptionButtonContainer:function(){return n("#"+this._id("caption_button_container"))},getFooter:function(){return n("#"+this._id("footer"))},getContent:function(){return n("#"+this._id("content"))},_renderModalDialog:function(){var i=this,l=this.css,t=this.element,r,s,h,f=this.options,e,c,o,u=!0;t.css("position","absolute").addClass(this.css.modalDialog).hide();u=this._trigger(this.events.modalDialogContentsRendering,null,{modalDialog:t,owner:this});u&&(r=n("<div><\/div>").addClass(this.css.modalDialogHeaderCaption).appendTo(t),n("<span><\/span>").text(this.options.modalDialogCaptionText).addClass(this.css.modalDialogHeaderCaptionTitle).appendTo(r),n("<div><\/div>").attr("id",this._id("caption_button_container")).addClass(l.captionButtonContainer).appendTo(r),s=n("<div><\/div>").css("overflow","auto").addClass(this.css.modalDialogContent).attr("id",this._id("content")).appendTo(t),f.renderFooterButtons===!0&&(h=n("<div><\/div>").addClass(this.css.modalDialogFooter).attr("id",this._id("footer")).appendTo(t),e=n("<div><\/div>").addClass(this.css.buttonset).appendTo(h),c=n("<button><\/button>").attr("id",this._id("footer_buttonok")).appendTo(e),c.igButton({labelText:f.buttonApplyText}),o=n("<button><\/button>").attr("id",this._id("footer_buttoncancel")).appendTo(e),o.igButton({labelText:f.buttonCancelText}),o.bind({click:function(n){u=i._trigger(i.events.buttonCancelClick,n,{modalDialog:t,owner:i});u&&(i.closeModalDialog(),n.preventDefault(),n.stopPropagation())}})),t.bind({keydown:function(t){t.keyCode===n.ui.keyCode.ESCAPE&&i.closeModalDialog()}}).draggable({containment:this.containment,handle:r,drag:n.proxy(this._modalDialogMove,this)}).attr("role","dialog").attr("tabIndex",-1),typeof Modernizr=="object"&&Modernizr.touch===!1&&t.resizable({containment:"parent",alsoResize:s,minHeight:t.outerHeight()/4,minWidth:t.outerWidth()/2}),this._trigger(this.events.modalDialogContentsRendered,null,{modalDialog:t,owner:this}))},_id:function(){for(var t=arguments,i=this.element[0].id,n=0;n<t.length;n++)i+="_"+t[n];return i},destroy:function(){return n("#"+this._id("_modaldialog_block")).remove(),n.Widget.prototype.destroy.apply(this,arguments),this}});n.extend(n.ui.igGridModalDialog,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridFiltering",{renderInFeatureChooser:!0,options:{caseSensitive:!1,filterSummaryAlwaysVisible:!0,renderFC:!0,filterSummaryTemplate:n.ig.GridFiltering.locale.filterSummaryTemplate,filterDropDownAnimations:"linear",filterDropDownAnimationDuration:500,filterDropDownWidth:0,filterDropDownHeight:0,filterExprUrlKey:null,filterDropDownItemIcons:!0,columnSettings:[{columnKey:null,columnIndex:null,allowFiltering:!0,condition:null,defaultExpressions:[]}],type:null,filterDelay:500,mode:null,advancedModeEditorsVisible:!1,advancedModeHeaderButtonLocation:"left",filterDialogWidth:370,filterDialogMaxHeight:350,filterDialogHeight:"",filterDialogFilterDropDownDefaultWidth:80,filterDialogExprInputDefaultWidth:80,filterDialogColumnDropDownDefaultWidth:null,renderFilterButton:!0,filterButtonLocation:"left",nullTexts:{startsWith:n.ig.GridFiltering.locale.startsWithNullText,endsWith:n.ig.GridFiltering.locale.endsWithNullText,contains:n.ig.GridFiltering.locale.containsNullText,doesNotContain:n.ig.GridFiltering.locale.doesNotContainNullText,equals:n.ig.GridFiltering.locale.equalsNullText,doesNotEqual:n.ig.GridFiltering.locale.doesNotEqualNullText,greaterThan:n.ig.GridFiltering.locale.greaterThanNullText,lessThan:n.ig.GridFiltering.locale.lessThanNullText,greaterThanOrEqualTo:n.ig.GridFiltering.locale.greaterThanOrEqualToNullText,lessThanOrEqualTo:n.ig.GridFiltering.locale.lessThanOrEqualToNullText,on:n.ig.GridFiltering.locale.onNullText,notOn:n.ig.GridFiltering.locale.notOnNullText,after:n.ig.GridFiltering.locale.afterNullText,before:n.ig.GridFiltering.locale.beforeNullText,thisMonth:n.ig.GridFiltering.locale.thisMonthLabel,lastMonth:n.ig.GridFiltering.locale.lastMonthLabel,nextMonth:n.ig.GridFiltering.locale.nextMonthLabel,thisYear:n.ig.GridFiltering.locale.thisYearLabel,lastYear:n.ig.GridFiltering.locale.lastYearLabel,nextYear:n.ig.GridFiltering.locale.nextYearLabel,empty:n.ig.GridFiltering.locale.emptyNullText,notEmpty:n.ig.GridFiltering.locale.notEmptyNullText,"null":n.ig.GridFiltering.locale.nullNullText,notNull:n.ig.GridFiltering.locale.notNullNullText},labels:{noFilter:n.ig.GridFiltering.locale.noFilterLabel,clear:n.ig.GridFiltering.locale.clearLabel,startsWith:n.ig.GridFiltering.locale.startsWithLabel,endsWith:n.ig.GridFiltering.locale.endsWithLabel,contains:n.ig.GridFiltering.locale.containsLabel,doesNotContain:n.ig.GridFiltering.locale.doesNotContainLabel,equals:n.ig.GridFiltering.locale.equalsLabel,doesNotEqual:n.ig.GridFiltering.locale.doesNotEqualLabel,greaterThan:n.ig.GridFiltering.locale.greaterThanLabel,lessThan:n.ig.GridFiltering.locale.lessThanLabel,greaterThanOrEqualTo:n.ig.GridFiltering.locale.greaterThanOrEqualToLabel,lessThanOrEqualTo:n.ig.GridFiltering.locale.lessThanOrEqualToLabel,trueLabel:n.ig.GridFiltering.locale.trueLabel,falseLabel:n.ig.GridFiltering.locale.falseLabel,after:n.ig.GridFiltering.locale.afterLabel,before:n.ig.GridFiltering.locale.beforeLabel,today:n.ig.GridFiltering.locale.todayLabel,yesterday:n.ig.GridFiltering.locale.yesterdayLabel,thisMonth:n.ig.GridFiltering.locale.thisMonthLabel,lastMonth:n.ig.GridFiltering.locale.lastMonthLabel,nextMonth:n.ig.GridFiltering.locale.nextMonthLabel,thisYear:n.ig.GridFiltering.locale.thisYearLabel,lastYear:n.ig.GridFiltering.locale.lastYearLabel,nextYear:n.ig.GridFiltering.locale.nextYearLabel,on:n.ig.GridFiltering.locale.onLabel,notOn:n.ig.GridFiltering.locale.notOnLabel,advancedButtonLabel:n.ig.GridFiltering.locale.advancedButtonLabel,filterDialogCaptionLabel:n.ig.GridFiltering.locale.filterDialogCaptionLabel,filterDialogConditionLabel1:n.ig.GridFiltering.locale.filterDialogConditionLabel1,filterDialogConditionLabel2:n.ig.GridFiltering.locale.filterDialogConditionLabel2,filterDialogOkLabel:n.ig.GridFiltering.locale.filterDialogOkLabel,filterDialogCancelLabel:n.ig.GridFiltering.locale.filterDialogCancelLabel,filterDialogAnyLabel:n.ig.GridFiltering.locale.filterDialogAnyLabel,filterDialogAllLabel:n.ig.GridFiltering.locale.filterDialogAllLabel,filterDialogAddLabel:n.ig.GridFiltering.locale.filterDialogAddLabel,filterDialogErrorLabel:n.ig.GridFiltering.locale.filterDialogErrorLabel,filterSummaryTitleLabel:n.ig.GridFiltering.locale.filterSummaryTitleLabel,filterDialogClearAllLabel:n.ig.GridFiltering.locale.filterDialogClearAllLabel,empty:n.ig.GridFiltering.locale.emptyNullText,notEmpty:n.ig.GridFiltering.locale.notEmptyNullText,nullLabel:n.ig.GridFiltering.locale.nullNullText,notNull:n.ig.GridFiltering.locale.notNullNullText},tooltipTemplate:n.ig.GridFiltering.locale.tooltipTemplate,filterDialogAddConditionTemplate:null,filterDialogAddConditionDropDownTemplate:null,filterDialogFilterTemplate:null,filterDialogFilterConditionTemplate:null,filterDialogAddButtonWidth:100,filterDialogOkCancelButtonWidth:120,filterDialogMaxFilterCount:5,filterDialogContainment:"owner",showEmptyConditions:!1,showNullConditions:!1,featureChooserText:n.ig.GridFiltering.locale.featureChooserText,featureChooserTextHide:n.ig.GridFiltering.locale.featureChooserTextHide,featureChooserTextAdvancedFilter:n.ig.GridFiltering.locale.featureChooserTextAdvancedFilter,persist:!0},css:{filterRow:"ui-iggrid-filterrow ui-widget",filterCell:"ui-iggrid-filtercell",filterCellEditor:"ui-iggrid-filtereditor",filterDropDownList:"ui-menu ui-widget ui-widget-content ui-iggrid-filterddlist ui-corner-all",filterDropDown:"ui-iggrid-filterdd",filterDropDownListItemTextContainer:"ui-iggrid-filterddlistitemcontainer",filterDropDownListItem:"ui-iggrid-filterddlistitem",filterDropDownListItemAdvanced:"ui-iggrid-filterddlistitemadvanced",filterDropDownListItemWithIcons:"ui-iggrid-filterddlistitemicons ui-state-default",filterDropDownListItemClear:"ui-iggrid-filterddlistitemclear",filterDropDownListItemHover:"ui-iggrid-filterddlistitemhover ui-state-hover",filterDropDownListItemActive:"ui-iggrid-filterddlistitemactive ui-state-active",filterDateCell:"",filterTextCell:"",filterNumberCell:"",filterBoolCell:"",filterButton:"ui-iggrid-filterbutton ui-corner-all ui-icon ui-icon-triangle-1-s",filterButtonAdvanced:"ui-iggrid-filterbutton ui-iggrid-filterbuttonadvanced ui-icon ui-icon-search",filterButtonAdvancedRight:"ui-iggrid-filterbuttonright ui-iggrid-filterbuttonadvanced ui-icon ui-icon-search",filterButtonHover:"ui-iggrid-filterbuttonhover ui-state-hover",filterButtonActive:"ui-iggrid-filterbuttonactive ui-state-active",filterButtonFocus:"ui-iggrid-filterbuttonfocus ui-state-focus",filterButtonDisabled:"ui-iggrid-filterbuttondisabled ui-state-disabled",filterButtonDate:"ui-iggrid-filterbuttondate",filterButtonString:"ui-iggrid-filterbuttonstring",filterButtonNumber:"ui-iggrid-filterbuttonnumber",filterButtonBoolean:"ui-iggrid-filterbuttonbool",filterButtonAdvancedHover:"ui-iggrid-filterbuttonadvancedhover ui-state-hover",filterButtonAdvancedActive:"ui-iggrid-filterbuttonadvancedactive ui-state-active",filterButtonAdvancedFocus:"ui-iggrid-filterbuttonadvancedfocus ui-state-focus",filterButtonAdvancedDisabled:"ui-iggrid-filterbuttonadvanceddisabled ui-state-disabled",filterItemIcon:"ui-iggrid-filtericon",filterItemIconContainer:"ui-iggrid-filtericoncontainer",filterItemIconStartsWith:"ui-iggrid-filtericonstartswith",filterItemIconEndsWith:"ui-iggrid-filtericonendswith",filterItemIconContains:"ui-iggrid-filtericoncontains",filterItemIconEquals:"ui-iggrid-filtericonequals",filterItemIconDoesNotEqual:"ui-iggrid-filtericondoesnotequal",filterItemIconDoesNotContain:"ui-iggrid-filtericondoesnotcontain",filterItemIconGreaterThan:"ui-iggrid-filtericongreaterthan",filterItemIconLessThan:"ui-iggrid-filtericonlessthan",filterItemIconGreaterThanOrEqualTo:"ui-iggrid-filtericongreaterthanorequalto",filterItemIconLessThanOrEqualTo:"ui-iggrid-filtericonlessthanorequalto",filterItemIconTrue:"ui-iggrid-filtericontrue",filterItemIconFalse:"ui-iggrid-filtericonfalse",filterItemIconAfter:"ui-iggrid-filtericonafter",filterItemIconBefore:"ui-iggrid-filtericonbefore",filterItemIconToday:"ui-iggrid-filtericontoday",filterItemIconYesterday:"ui-iggrid-filtericonyesterday",filterItemIconThisMonth:"ui-iggrid-filtericonthismonth",filterItemIconLastMonth:"ui-iggrid-filtericonlastmonth",filterItemIconNextMonth:"ui-iggrid-filtericonnextmonth",filterItemIconThisYear:"ui-iggrid-filtericonthisyear",filterItemIconLastYear:"ui-iggrid-filtericonlastyear",filterItemIconNextYear:"ui-iggrid-filtericonnextyear",filterItemIconOn:"ui-iggrid-filtericonon",filterItemIconNotOn:"ui-iggrid-filtericonnoton",filterItemIconClear:"ui-iggrid-filtericonclear",blockArea:"ui-widget-overlay ui-iggrid-blockarea",filterDialog:"ui-dialog ui-draggable ui-resizable ui-iggrid-dialog ui-widget ui-widget-content ui-corner-all",filterDialogHeaderCaption:"ui-dialog-titlebar ui-iggrid-filterdialogcaption ui-widget-header ui-corner-all ui-helper-reset ui-helper-clearfix",filterDialogHeaderCaptionTitle:"ui-dialog-title",filterDialogAddCondition:"ui-iggrid-filterdialogaddcondition",filterDialogAddConditionDropDown:"ui-iggrid-filterdialogaddconditionlist",filterDialogAddButton:"ui-iggrid-filterdialogaddbuttoncontainer ui-helper-reset",filterDialogOkCancelButton:"ui-dialog-buttonpane ui-widget-content ui-helper-clearfix ui-iggrid-filterdialogokcancelbuttoncontainer",filterDialogFiltersTable:"ui-iggrid-filtertable ui-helper-reset",filterDialogFilterRemoveButton:"ui-icon ui-icon-closethick",filterDialogClearAllButton:"ui-iggrid-filterdialogclearall",featureChooserModalDialogIcon:"ui-icon ui-iggrid-icon-advanced-filter"},events:{dataFiltering:"dataFiltering",dataFiltered:"dataFiltered",dropDownOpening:"dropDownOpening",dropDownOpened:"dropDownOpened",dropDownClosing:"dropDownClosing",dropDownClosed:"dropDownClosed",filterDialogOpening:"filterDialogOpening",filterDialogOpened:"filterDialogOpened",filterDialogMoving:"filterDialogMoving",filterDialogFilterAdding:"filterDialogFilterAdding",filterDialogFilterAdded:"filterDialogFilterAdded",filterDialogClosing:"filterDialogClosing",filterDialogClosed:"filterDialogClosed",filterDialogContentsRendering:"filterDialogContentsRendering",filterDialogContentsRendered:"filterDialogContentsRendered",filterDialogFiltering:"filterDialogFiltering"},_createWidget:function(){this.options.columnSettings=[];n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){this._editors=[];n.fn.fadeToggle||(n.fn.fadeToggle=n.fn.toggle);this._fcData={};this._isInitFC=!1;this.options.filterDropDownAnimations==="none"&&(this.options.filterDropDownAnimationDuration=1,this.options.filterDropDownAnimations="linear")},_setOption:function(t,i){if(n.Widget.prototype._setOption.apply(this,arguments),t==="mode"||t==="renderFilterButton"||t==="filterButtonLocation"||t==="type")throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);t==="filterDropDownWidth"?this.grid.container().find("div ul").parent().css("width",i):t==="filterDropDownHeight"?this.grid.container().find("div ul").parent().css("height",i):t==="filterDialogWidth"?n("#"+this.grid.container().attr("id")+"_dialog").css("width",i):t==="filterDialogHeight"?n("#"+this.grid.container().attr("id")+"_dialog").css("height",i):t==="columnSettings"&&this._initDefaultSettings()},destroy:function(){var t,i,r=this.grid.options.columns,u=n("#"+this.grid.id()+"_container_block"),f=n("#"+this.grid.id()+"_container_dialog");for(n("#"+this.grid.container()[0].id+" .ui-iggrid-filterrow").remove(),n("#"+this.grid.container()[0].id+" .ui-iggrid-filterdd").remove(),t=0;t<r.length;t++)n("#"+this.grid.id()+"_dd_"+r[t].key).remove();return u.remove(),f.remove(),this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler),this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler),this.grid.element.unbind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler),this.grid.element.unbind("iggridresizingcolumnresized",this._columnResizedHandler),this.grid.element.unbind("iggridheaderextracellsmodified",this._headerInitHandler),this.grid.element.unbind("iggrid_columnsmoved",this._columnsAlteredHandler),this.grid.element.unbind("iggriduidirty",this._onUIDirtyHandler),delete this._headerCellRenderedHandler,delete this._headerRenderedHandler,delete this._virtualHorizontalScrollHandler,delete this._columnResizedHandler,delete this._headerInitHandler,delete this._onUIDirtyHandler,delete this._columnsAlteredHandler,this._editors=null,this._fcData=null,this.options.columnSettings=null,this.options=null,this._loadingIndicator&&delete this._loadingIndicator,this._filterInternal&&delete this._filterInternal,this._toggleFilterRowHandler&&delete this._toggleFilterRowHandler,this._openFilterDialogFromFCHandler&&delete this._openFilterDialogFromFCHandler,this._exitEditModeHandler&&delete this._exitEditModeHandler,this._enterEditModeHandler&&delete this._enterEditModeHandler,i=this.grid.element.data("igGridFeatureChooser"),i&&this.renderInFeatureChooser&&(i._removeFeature("Filtering"),i._removeFeature("AdvancedFiltering")),n.Widget.prototype.destroy.call(this),this},_initLoadingIndicator:function(){this._loadingIndicator=this.grid.container().length>0?this.grid.container().igLoading().data("igLoading"):this.grid.element.igLoading().data("igLoading").indicator()},_onUIDirty:function(t,i){var r,f=this.grid.options.columns,u;if(i.owner!==this&&i.owner.element[0].id===this.element[0].id){if(this._filterDialogClearAll(),this._editors!==null&&this._editors!==undefined)for(r=0;r<this._editors.length;r++)this.options.columnSettings[r].allowFiltering!==!1&&(this._editors[r].value(null),u=null,this.options.columnSettings[r].columnKey&&(u=this.options.nullTexts[this._findColumnSetting(this.options.columnSettings[r].columnKey).condition]),(u===null||u===undefined)&&(u=this.options.nullTexts[this._getDefaultCondition(f[r].dataType)]),this._editors[r].element.igEditor("option","nullText",u));for(r=0;r<f.length;r++)n("#"+this.grid.id()+"_dd_"+f[r].key).find("li").removeClass("ui-iggrid-filterddlistitemactive ui-state-active");n(".ui-iggrid-filterbutton",this.grid.container()).parent().attr("title",this.options.tooltipTemplate.replace("${condition}",this.options.labels.noFilter));this.grid.dataSource.settings.filtering.expressions=[]}},_dataRendered:function(){var e,o,s=0,i=this.grid,t=this.grid.container().find(".ui-iggrid-footer .ui-iggrid-results").eq(0),f=t.parent(),r=!1,h=!1,u;if(this._loadingIndicator||this._initLoadingIndicator(),this._hiddenCells&&this._hiddenCells.length>0){for(u=0;u<this._hiddenCells.length;u++)this._hiddenCells[u].show();this._hiddenCells=undefined}this._defaultExpressions&&this._defaultExpressions.length>0&&(e=this._defaultExpressions,this._defaultExpressions=[],this._updateFiltersUI(e,!1),h=!0,this._isFilteringRequest=!0);this._shouldFireDataFiltered&&(this._shouldFireDataFiltered=!1,this._trigger(this.events.dataFiltered,null,{columnKey:this._curColKey,columnIndex:this._curColIndex,owner:this}));t.is(":visible")||(r=!0);this._isFilteringRequest===!0?(this.options.filterSummaryAlwaysVisible===!0&&t.length===0&&(f=n("<div><\/div>").appendTo(this.grid.container()).addClass("ui-widget ui-helper-clearfix ui-corner-bottom ui-widget-header ui-iggrid-footer"),t=n("<span><\/span>").appendTo(f).addClass("ui-iggrid-results"),h&&this.grid.element.data("igGridPaging")&&(f.attr("id",this.grid.element[0].id+"_pager"),t.attr("id",this.grid.element[0].id+"_pager_label")),r=!0),s=this.options.type==="local"||this.options.type==="remote"&&this.grid.dataSource.hasTotalRecordsCount()===!1?this.grid.dataSource._filter?this.grid.dataSource._filteredData.length:this.grid.dataSource._data.length:this.grid.dataSource.totalRecordsCount(),t.parent().is(":visible")||(t.parent().show(),r=!0),t.text(this.options.filterSummaryTemplate.replace("${matches}",s)).attr("title",this.options.labels.filterSummaryTitleLabel),t.show(),this._isFilteringRequest=!1):this._isFilteringRequest===!1&&(o=this.grid.dataSource.settings.filtering.expressions||[],t.data("hideflag")!==!1&&o.length===0?(t.hide(),t.parent().children().length===1&&t.parent().hide()):t.data("hideflag",!0),r=!0);this._loadingIndicator.hide();r&&this.grid._initializeHeights();(i.options.virtualization||i.options.rowVirtualization)&&(r||this.grid._initializeHeights(),i._totalRowCount*i._avgRowHeight<=parseInt(i.options.height,10)&&(i.element.height(""),i._avgRowHeight=i._calculateAvgRowHeight(),i._setScrollContainerHeight(i._totalRowCount*i._avgRowHeight)));this._setEditorsWidth()},_initFC:function(){var i,r,u=this.grid.element.data("igGridFeatureChooser"),t=this.options,f=this.options.columnSettings,o=t.mode==="advanced"&&t.advancedModeEditorsVisible===!0,e=t.mode!=="simple"&&t.advancedModeEditorsVisible===!1;if((this._isInitFC=!0,t.renderFC!==!1)&&u!==null&&u!==undefined)for((this._toggleFilterRowHandler===null||this._toggleFilterRowHandler===undefined)&&(this._toggleFilterRowHandler=n.proxy(this.toggleFilterRowByFeatureChooser,this)),(this._openFilterDialogFromFCHandler===null||this._openFilterDialogFromFCHandler===undefined)&&(this._openFilterDialogFromFCHandler=n.proxy(this._openFilterDialogFromFC,this)),r=0;r<f.length;r++)i=f[r].columnKey,i&&f[r].allowFiltering===!0&&u._shouldRenderInFeatureChooser(i)===!0&&(this._filterRowShown=!0,this._fcData[i]=!0,(e||o)&&u._renderInFeatureChooser(i,{name:"AdvancedFiltering",text:t.featureChooserTextAdvancedFilter,iconClass:this.css.featureChooserModalDialogIcon,isSelected:!0,method:this._openFilterDialogFromFCHandler,updateOnClickAll:!0,groupName:"modaldialog",groupOrder:3,order:3}),e||u._renderInFeatureChooser(i,{name:"Filtering",text:t.featureChooserText,textHide:t.featureChooserTextHide,iconClass:this.css.featureChooserModalDialogIcon,isSelected:!0,method:this._toggleFilterRowHandler,updateOnClickAll:!0,groupName:"toggle",groupOrder:1,order:2,type:"toggle",state:"hide"}))},_columnResized:function(){this._filterRowShown!==!1&&this._setEditorsWidth()},_setEditorsWidth:function(){if(this.options.mode==="simple"||this.options.advancedModeEditorsVisible===!0)for(var u=this.options.columnSettings,o=this.grid._visibleColumns(),r=this.grid.headersTable().find("thead tr[data-role=filterrow]").first().find("td").not("[data-skip=true]"),f,i,e,t=0;t<o.length;t++){for(i=0;i<u.length;i++)if(u[i].columnKey===o[t].key&&u[i].allowFiltering===!1){e=!0;break}if(e){e=!1;continue}f=!n.ig.util.isOpera&&(this.grid.options.height&&this.grid.options.fixedHeaders===!0||n.ig.util.isWebKit)?r.eq(t).innerWidth():r.eq(t).width();f-=r.eq(t).data("buttonWidth");r.eq(t).children("span").first().igEditor("option","width",f)}},_headerRendered:function(t){var l,o,i=0,r,s,f,u=this.grid.options.columns,h,a,e,w=this.options.columnSettings,b=!1,v,y=!1,p,k,c,d,g=this.options.mode==="simple"||this.options.advancedModeEditorsVisible===!0,nt=this.grid._initialHiddenColumns&&this.grid._initialHiddenColumns.length>0;if(t.target.id===this.grid.element[0].id){for(l=this.grid.container().find("thead"),this.options.mode==="simple"||this.options.advancedModeEditorsVisible===!0?(o=n("<tr><\/tr>").appendTo(l).addClass(this.css.filterRow).attr("data-role","filterrow"),this.grid._headerInit(o)):o=l.find("tr:first"),k=function(n){n.preventDefault();n.stopPropagation()},nt&&(this._hiddenCells=[]),c=i+o.find("[data-skip=true]").length,i=0;i<u.length;i++,c++){if(g===!0){if(r=n("<td><\/td>").appendTo(o).addClass(this.css.filterCell),nt&&this._hiddenCells.length<this.grid._initialHiddenColumns.length)for(e=this.grid._initialHiddenColumns.length-1;e>=0;e--)if(this.grid._initialHiddenColumns[e].key===u[i].key){r.hide();this._hiddenCells.push(r);break}}else r=this.grid._isMultiColumnGrid?n(this.grid._headerCells[c]):n(o[0].cells[c]),r.children().first().is("a")&&(r.children().first().css("display","inline"),r.css("cursor","pointer")),r.data("colName",u[i].key);for((this.grid._isMultiColumnGrid!==!0||g===!0)&&(i===u.length-1&&this.grid.options.height&&parseInt(this.grid.options.height,10)>0?r.css("width",parseInt(u[i].width,10)+this.grid._scrollbarWidth()):r.css("width",u[i].width)),e=0;e<w.length;e++)if(w[e].columnKey===u[i].key&&w[e].allowFiltering===!1){(this.options.advancedModeEditorsVisible===!0||this.options.mode!=="advanced")&&this._editors.push({});b=!0;break}if(b){b=!1;continue}h=l.children().first().find("th:nth-child("+(c+1)+")");s=n.ig.util.isWebKit&&h.length>0?h[0].offsetWidth:this.grid.options.height&&this.grid.options.fixedHeaders===!0||n.ig.util.isWebKit?h.innerWidth():h.width();y=this.options.advancedModeEditorsVisible===!1&&this.options.mode==="advanced"&&this.options.renderFilterButton===!0;(this.options.renderFilterButton===!0&&!y||y&&this._renderFCFor(u[i].key)===!1)&&(a=this.grid.element.attr("id")+"_dd_"+u[i].key,(this.options.advancedModeEditorsVisible===!0||this.options.mode!=="advanced")&&this._renderDropDown(u[i].dataType,a,u[i].key),v=this.options.mode==="advanced"?this.css.filterButtonAdvanced:this.css.filterButton,y&&this.options.advancedModeHeaderButtonLocation==="right"?(v=this.css.filterButtonAdvancedRight,f=n("<span><\/span>").appendTo(r).addClass(v).data("colIndex",i)):f=n("<span><\/span>").prependTo(r).addClass(v).data("colIndex",i),this.options.mode==="advanced"&&(r.hasClass(this.grid.css.headerCellFeatureEnabledClass)||r.addClass(this.grid.css.headerCellFeatureEnabledClass)),this.options.mode==="simple"||this.options.mode==="advanced"&&this.options.advancedModeEditorsVisible===!0?f.wrap('<a id="'+a+'_button" href="#" title="'+this.options.tooltipTemplate.replace("${condition}",this.options.labels.noFilter)+'" ><\/a>'):f.wrap('<a id="'+a+'_button" href="#" title="'+this.options.tooltipTemplate.replace("${condition}",this.options.labels.noFilter)+'" style="display:inline;"><\/a>'),p=r.find(".ui-iggrid-indicatorcontainer"),p.length===0&&(p=n("<div><\/div>").appendTo(r).addClass("ui-iggrid-indicatorcontainer")),p.append(f.parent()),s=parseInt(s,10),d=this.grid.options.height===null&&n.ig.util.isFF?f.outerWidth(!0):f.outerWidth(!1),s-=d,r.data("buttonWidth",d));this.options.renderFilterButton===!0&&(this.options.advancedModeEditorsVisible===!0||this.options.mode!=="advanced"?(f.parent().bind({mousedown:n.proxy(this._toggleDropDown,this),mouseup:k,click:k,blur:n.proxy(this._closeDropDown,this),keydown:n.proxy(this._toggleDropDownKeyboard,this),mouseover:n.proxy(this._hoverButton,this),mouseout:n.proxy(this._unhoverButton,this),focus:n.proxy(this._activateButton,this)}),(document.documentMode===5||document.documentMode===7||n.ig.util.isIE7)&&f.parent().bind({focusout:n.proxy(this._closeDropDown,this)})):this._renderFCFor(u[i].key)===!1&&f.parent().bind({click:n.proxy(this._openFilterDialog,this),keydown:n.proxy(this._openFilterDialogFromKeyboard,this),focus:n.proxy(this._activateButton,this),blur:n.proxy(this._deactivateButton,this)}));(this.options.advancedModeEditorsVisible===!0||this.options.mode!=="advanced")&&this._createEditor(r,s,i,u[i].dataType,u[i].key)}n("#"+this.grid.container().attr("id")+"_dialog").length>0&&n("#"+this.grid.container().attr("id")+"_dialog").remove();this._renderFilterDialog()}},_renderFCFor:function(n){return!(this._fcData===null||this._fcData===undefined||this.options.renderFC===!1||this._fcData[n]!==!0)},_columnMap:function(){var r=this.options,n,t,i=r.columnSettings,f=i.length,u=[];if(r.renderFC===!1)return!1;for(n=0;n<f;n++)t={columnKey:i[n].columnKey,enabled:!0},i[n].allowFiltering===!1&&(t.enabled=!1),u.push(t);return u},_headerCellRendered:function(){this._isInitFC!==!0&&this._initFC()},_openFilterDialogFromFC:function(n,t){this._openFilterDialog(n,t)},toggleFilterRowByFeatureChooser:function(t){var u,f=this.options,i=this._filterRowShown,o=this.grid.container().find("thead"),r,e=!(f.mode==="simple"||f.advancedModeEditorsVisible===!0);(i===null||i===undefined)&&(this._filterRowShown=!0,i=this._filterRowShown);(e===!1||e&&f.advancedModeEditorsVisible)&&(r=o.find('tr[data-role="filterrow"]'),i===!0?(r.hide(),(document.documentMode===7||n.ig.util.isIE7)&&r.children().hide(),i=!1):(r.show(),(document.documentMode===7||n.ig.util.isIE7)&&r.children().show(),this._setEditorsWidth(),i=!0),(t===null||t===undefined)&&(u=this.grid.element.data("igGridFeatureChooser"),u&&u._toggleSelectedItems("Filtering")),this._filterRowShown=i,this.grid._initializeHeights(),this.grid._adjustLastColumnWidth(!0))},_createEditor:function(t,i,r,u,f){var e,o,s=this._getEditorType(u);e=n("<span />").css("float","left").css("width","5px");this.options.filterButtonLocation==="left"?e.appendTo(t):e.prependTo(t);(this._enterEditModeHandler===undefined||this._enterEditModeHandler===null)&&(this._enterEditModeHandler=n.proxy(this._fireEnterEditModeEvents,this));(this._exitEditModeHandler===undefined||this._exitEditModeHandler===null)&&(this._exitEditModeHandler=n.proxy(this._fireExitEditModeEvents,this));o={textChanged:n.proxy(this._filter,this),width:i,disabled:this.grid.options.columns[r].dataType==="bool"||this.grid.options.columns[r].dataType==="boolean",type:s,textAlign:"left",button:s==="datepicker"?"dropdown":null,maxDecimals:6,nullText:this.options.nullTexts[this._findColumnSetting(f).condition],focus:this._enterEditModeHandler,blur:this._exitEditModeHandler,enableUTCDates:this.grid.options.enableUTCDates};e.data("colIndex",r).data("colKey",f);e.igEditor(o);this._editors.push(e.data("igEditor"));e.find("input").addClass(this.css.filterCellEditor)},_columnsAltered:function(t,i){for(var o,u=i.start,f=i.len,e=i.index,r=0;r<this.options.columnSettings.length;r++)o=this.options.columnSettings[r],this.grid._isColumnHidden(o.columnKey)===!0&&(u+=r<=u?1:0,f+=r>=u&&r<u+f?1:0,e+=r<=e?1:0);for(this.grid._rearrangeArray(this.options.columnSettings,u,f,e),this.grid._rearrangeArray(this._editors,u,f,e),r=0;r<this._editors.length;r++)n(this._editors[r].element).data("colIndex",r),n(this._editors[r].element).closest("td").find("span.ui-iggrid-filterbutton").data("colIndex",r)},_getEditorType:function(n){return n==="date"?"datepicker":n==="number"?"numeric":"text"},_findColumnSetting:function(n){for(var t=0;t<this.options.columnSettings.length;t++)if(this.options.columnSettings[t].columnKey===n)return this.options.columnSettings[t]},filter:function(n,t,i){this._loadingIndicator.show();n!==undefined&&n.length>0&&(this._isFilteringRequest=!0);i?this._filterDataSource(n):(this._filterDataSource(n,!0),this._updateFiltersUI([],!1));(t===undefined||t===!0)&&this._updateFiltersUI(n===undefined?this._generateExpressions():n,i)},_filter:function(t,i){clearTimeout(this._timeoutId);this._ui=t;this._args=i;parseInt(this.options.filterDelay,10)===0?this._filterInternal():this._timeoutId=setTimeout(n.proxy(this._filterInternal,this),this.options.filterDelay)},_fireEnterEditModeEvents:function(n,t){var r=t&&t.owner?t.owner._grid_sel:null,i=this.grid,u,f,e=!0;r&&(r.time+1e3>(new Date).getTime()&&t.owner.select(r.sel),i.options.fixedHeaders&&(u=i._hscrollbarcontent(),f=i.scrollContainer(),f.length===0?e=!1:u.length===1&&f.scrollLeft()===0&&u.scrollLeft()>0&&(e=!1)),e&&i._synchronizeHScroll(),delete t.owner._grid_sel)},_filterInternal:function(t,i){var e=this._args,u,f,s,r,o;e!==undefined?(u=n(e.owner.element).data("colIndex"),f=n(e.owner.element).data("colKey")):(u=t,f=i);o=this._generateExpressions(!0);s=this._trigger(this.events.dataFiltering,null,{columnKey:f,columnIndex:u,owner:this,expressions:o});s&&(this.grid._isToSetUnboundColumns=!0,this._loadingIndicator.show(),r=this._editors?this._editors[u]:null,r&&(r._addedFromAdvanced=!1),this._curColKey=f,this._curColIndex=u,this._filterDataSource(o,!1,!0),r&&(r._grid_sel={time:(new Date).getTime(),sel:r._sel0},r.setFocus()))},_filterDataSource:function(t,i,r){var u,e,o,s,f,h=this.grid.options.columns,c=!1,l,a;if(l=this.options.tooltipTemplate.replace("${condition}",this.options.labels.noFilter),t===undefined||r){for(u=t!==undefined&&r?t:this._generateExpressions(!0),e=0;e<h.length;e++){for(c=!1,s=n("#"+this.grid.element[0].id+"_dd_"+h[e].key+"_button"),o=0;o<u.length;o++)if(h[e].key===u[o].fieldName){c=!0;(u[o].expr===undefined||u[o].expr===null||u[o].expr==="")&&this._requiresEntry(u[o].cond)?s.attr("title",l):s.attr("title",this.options.tooltipTemplate.replace("${condition}",u[o].cond));break}c||s.attr("title",l)}this.grid.dataSource.settings.filtering.expressions=u}else if(i===!0)for(this.grid.dataSource.settings.filtering.expressions=t,this._filterDialogClearAll(),e=0;e<t.length;e++)this._addFilterFromDialog(null,t[e]);else this.grid.dataSource.settings.filtering.expressions=t;this.options.persist&&this._saveFilteringExpressions();this.grid._hasUnboundColumns&&(this.grid._rebindUnboundColumns=!0);this.grid.element.trigger("iggriduisoftdirty",{owner:this});a=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid});a&&(u=this.grid.dataSource.settings.filtering.expressions,this.options.type==="remote"?(this.grid.dataSource.settings.paging.pageIndex=0,this.grid._shouldResetPaging=!0):this.grid.container().find(".ui-iggrid-footer .ui-iggrid-results").length>0&&this.grid.container().find(".ui-iggrid-footer .ui-iggrid-results").data("overrideLabel",u.length),this._isFilteringRequest=!0,this._preserveSorting(),u.length===0?(i||(this._shouldFireDataFiltered=!0),this.options.type==="remote"?(this._isFilteringRequest=!1,this.grid.dataSource.dataBind()):(this.grid.dataSource.settings.filtering.type="local",this._isFilteringRequest=!1,this.grid.dataSource.clearLocalFilter(),f=this.grid.element.data("igGridGroupBy"),f&&f.options&&f.options.groupedColumns&&f.options.groupedColumns.length>0&&this.grid.dataSource.settings.sorting.expressions.length>0&&f.options.type==="local"&&this.grid.dataSource.sort(this.grid.dataSource.settings.sorting.expressions),this.grid._renderData())):this.options.type==="remote"?(i||(this._shouldFireDataFiltered=!0),this.grid.dataSource.dataBind()):(this.grid.dataSource.settings.filtering.type="local",this.grid.dataSource.filter(u),f=this.grid.element.data("igGridGroupBy"),f&&f.options&&f.options.groupedColumns&&f.options.groupedColumns.length>0&&this.grid.dataSource.settings.sorting.expressions.length>0&&f.options.type==="local"&&this.grid.dataSource._allDataSorted===!1&&this.grid.dataSource.sort(this.grid.dataSource.settings.sorting.expressions),this.grid._renderData(),i||this._trigger(this.events.dataFiltered,null,{columnKey:this._curColKey,columnIndex:this._curColIndex,owner:this})))},_filterDataSourceClear:function(t,i){for(var r=this._generateExpressions(!0),f,e,u=0;u<r.length;u++)if(r[u].fieldName===t){n.ig.removeFromArray(r,u);break}this.grid.dataSource.settings.filtering.expressions=r;this.options.persist&&this._saveFilteringExpressions();this.grid.element.trigger("iggriduidirty",{owner:this});(!this._curColKey||t)&&(this._curColKey=t,this._curColIndex=i);e=this._trigger(this.events.dataFiltering,null,{columnKey:this._curColKey,columnIndex:this._curColIndex,owner:this,expressions:r});e&&(f=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid}),f&&(this.grid.dataSource.settings.paging.pageIndex=0,this._preserveSorting(),this.grid._shouldResetPaging=!0,this.grid._isToSetUnboundColumns=!0,this.options.type==="remote"?(r.length>0?this._shouldFireDataFiltered=!0:(this._isFilteringRequest=!1,this._shouldFireDataFiltered=!0),this.grid.dataSource.dataBind()):(this.grid.dataSource.settings.filtering.type="local",this.grid.container().find(".ui-iggrid-footer .ui-iggrid-results").length>0&&this.grid.container().find(".ui-iggrid-footer .ui-iggrid-results").data("overrideLabel",r.length),r.length>0?this.grid.dataSource.filter(r):(this._isFilteringRequest=!1,this.grid.dataSource.clearLocalFilter()),this.grid._renderData(),this._trigger(this.events.dataFiltered,null,{columnKey:this._curColKey,columnIndex:this._curColIndex,owner:this}))))},_preserveSorting:function(){var t=!1,n=this.grid.element.data("igGridGroupBy");n&&n.options&&n.options.groupedColumns&&n.options.groupedColumns.length>0&&(t=!0);this.grid.dataSource.settings.sorting.expressions.length>0&&t&&(this.grid.dataSource.settings.sorting.defaultFields=this.grid.dataSource.settings.sorting.expressions)},_getDataColumnFilteringExpressions:function(t){if(!this.grid._hasUnboundColumns)return t;var i=this.grid;return n.grep(t,function(n){var t=i.columnByKey(n.fieldName);return!t||t.unbound!==!0})},_saveFilteringExpressions:function(){var n=this._getDataColumnFilteringExpressions(this.grid.dataSource.settings.filtering.expressions);this.element.closest(".ui-iggrid-root").data("igGrid")&&this.grid._savePersistenceData(n,"filtering",this.grid.element[0].id);this._filteringExpressions=n},_preserveFiltering:function(){var n=this._filteringExpressions||this.grid._getPersistenceData("filtering",this.grid.element[0].id);n&&(this.grid._hasUnboundColumns&&this._updateFiltersUI([],!1),this.grid.dataSource.settings.filtering.expressions=n,this.grid.dataSource.settings.filtering.defaultFields=n,this._defaultExpressions=n)},_updateFiltersUI:function(t){var i,u,r,e,f;if(this._editors)for(i=0;i<this._editors.length;i++)this.options.columnSettings[i].allowFiltering!==!1&&this._editors[i].value(null);for(i=0;i<t.length;i++){for(e=n("#"+this.grid.element[0].id+"_dd_"+t[i].fieldName).find("ul"),f=e.children(),u=0;u<f.length;u++)if(n(f[u]).data("cond")===t[i].cond){this._selectDropDownItem({currentTarget:f[u]},null,t[i]);break}r=this._editors[this._columnIndexFromKey(t[i].fieldName)];r!==undefined&&r!==null&&r.value&&(r.value(t[i].expr),r._addedFromAdvanced=!0)}this._updateTooltips(t)},_updateTooltips:function(t){var f,s,h,c,r,e=this.grid.options.columns,l=e.length,i,u,o,a=this.options.mode==="simple"||this.options.advancedModeEditorsVisible===!0;for(c=this.options.tooltipTemplate.replace("${condition}",this.options.labels.noFilter),s="",i=0;i<t.length;i++){for(f=n("#"+this.grid.element[0].id+"_dd_"+t[i].fieldName+"_button"),this._requiresEntry(t[i].cond)&&t[i].expr!==undefined&&t[i].expr!==null?(r=t[i].expr,t[i].type==="date"&&(n.type(r)==="number"&&(r=new Date(r)),this.grid.options.enableUTCDates&&n.type(r)==="date"&&r.toUTCString&&(r=r.toUTCString()))):r="",o=t[i].fieldName,u=0;u<l;u++)if(e[u].key===o){o=e[u].headerText;break}if(a){f.attr("title",this.options.tooltipTemplate.replace("${condition}",t[i].cond));continue}i===0?f.attr("title",o+" "+t[i].cond+" "+r+" "):f.attr("title",s+t[i].logic+" "+o+" "+t[i].cond+" "+r+" ");s=f.attr("title")}for(i=0;i<l;i++){for(h=!1,u=0;u<t.length;u++)if(t[u].fieldName===e[i].key){h=!0;break}h||n("#"+this.grid.element[0].id+"_dd_"+e[i].key+"_button").attr("title",c)}},_columnIndexFromKey:function(n){for(var t=0;t<this.grid.options.columns.length;t++)if(this.grid.options.columns[t].key===n)return t},_generateExpressions:function(t){for(var e=[],o=this.grid.options.columns,i,r,h,s,f,u=0;u<o.length;u++)this._editors&&this._editors[u]&&this._editors[u]._addedFromAdvanced&&!t||this.options.columnSettings[u].allowFiltering===!0&&((i=this._editors[u].value(),h=this._requiresEntry(this.options.columnSettings[u].condition),(i===undefined||i===null||i==="")&&h)||(r=this.options.columnSettings[u].condition,r!==undefined&&r!==null&&r!=="")&&(f=o[u].dataType,f==="date"&&i&&(this.options.type==="remote"?i=Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes()):r==="after"&&n.type(i)==="date"&&(i.setHours(23),i.setMinutes(59),i.setSeconds(59),i.setMilliseconds(999))),s=!1,f==="date"&&(f!=="date"||i===null||i===undefined||r==="empty"||r==="notEmpty"||r==="null"||r==="notNull")&&(f!=="date"||this._requiresEntry(this.options.columnSettings[u].condition))||(i===""||this.options.filterExprUrlKey?f==="bool"&&i!==""||f!=="bool"&&(this.options.filterExprUrlKey!==undefined&&this.options.filterExprUrlKey!==null||this.options.type==="local")?(s=!0,e.push({fieldName:o[u].key,cond:r,expr:i})):f==="bool"&&i===""&&(r==="null"||r==="notNull"||r==="empty"||r==="notEmpty")&&(s=!0,e.push({fieldName:o[u].key,cond:r,expr:i})):(s=!0,e.push({fieldName:o[u].key,cond:r,expr:i})),s&&(f===undefined&&n.type(i)==="string"&&(e[e.length-1].dataType="string"),o[u].unbound&&(e[e.length-1].dataType=f)))));return e},_getDefaultCondition:function(n){var t="equals";return n===undefined||n===null||n==="string"?t="contains":n==="number"?t="equals":n==="date"?t="on":n==="bool"&&(t="true"),t},_initDefaultSettings:function(){var f=[],u,o,t=this.options.columnSettings,n,e,i,s=this.grid.options.columns,h,r,c=this.grid._hasUnboundColumns===!0&&this.options.type==="remote";if(this._defaultExpressions=this.grid.dataSource.settings.filtering.expressions||[],s&&s.length>0)for(n=0;n<s.length;n++)h=!0,c&&this.grid.getUnboundColumnByKey(s[n].key)!==null&&(h=!1),f[n]={columnIndex:n,columnKey:s[n].key,condition:this._getDefaultCondition(s[n].dataType),allowFiltering:h};if(f.length===0&&this.grid.options.autoGenerateColumns&&t.length>0){for(n=0;n<t.length;n++)if(t[n].columnKey&&(r=t[n].defaultExpressions,r&&r.length>0))for(i=0;i<r.length;i++)o={fieldName:t[n].columnKey,expr:r[i].expr,cond:r[i].cond},r[i].logic&&(o.logic=r[i].logic),this._defaultExpressions.push(o)}else for(n=0;n<t.length;n++){for(e=0;e<f.length;e++)if(f[e].columnKey===t[n].columnKey||f[e].columnIndex===t[n].columnIndex)break;if(e!==f.length)for(u in t[n])if(t[n].hasOwnProperty(u)&&(u!=="columnKey"&&u!=="columnIndex"&&(f[e][u]=t[n][u]),u==="defaultExpressions"&&t[n][u]))for(r=t[n][u],i=0;i<r.length;i++)o={fieldName:t[n].columnKey,expr:r[i].expr,cond:r[i].cond},r[i].logic&&(o.logic=r[i].logic),this._defaultExpressions.push(o)}this.options.columnSettings=f;this.grid.dataSource.settings.filtering.expressions=this._defaultExpressions;this.grid.dataSource.settings.filtering.defaultFields=this._defaultExpressions},_renderDropDown:function(t,i,r){var f,u,s=this.options.columnSettings,l=this.grid.options.columns,o,h,e=[],c;if(f=t==="number"?this._renderNumericFilterDropDown(i,r):t==="date"?this._renderDateFilterDropDown(i,r):t==="boolean"||t==="bool"?this._renderBooleanFilterDropDown(i,r):this._renderStringFilterDropDown(i,r),this.options.filterDropDownItemIcons!==!0)this.options.showEmptyConditions&&(n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(f).addClass(this.css.filterDropDownListItem).data("cond","empty")).text(this.options.labels.empty).addClass("ui-corner-all"),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(f).addClass(this.css.filterDropDownListItem).data("cond","notEmpty")).text(this.options.labels.notEmpty).addClass("ui-corner-all")),this.options.showNullConditions&&(n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(f).addClass(this.css.filterDropDownListItem).data("cond","null")).text(this.options.labels.nullLabel).addClass("ui-corner-all"),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(f).addClass(this.css.filterDropDownListItem).data("cond","notNull")).text(this.options.labels.notNull).addClass("ui-corner-all"));else for(h={itemClass:this.css.filterDropDownListItemWithIcons,imgContainerClass:this.css.filterItemIconContainer,textClass:this.css.filterDropDownListItemTextContainer},this.options.showEmptyConditions&&(e.push({text:this.options.labels.empty,imgClass:this.css.filterItemIcon,condition:"empty"}),e.push({text:this.options.labels.notEmpty,imgClass:this.css.filterItemIcon,condition:"notEmpty"})),this.options.showNullConditions&&(e.push({text:this.options.labels.nullLabel,imgClass:this.css.filterItemIcon,condition:"null"}),e.push({text:this.options.labels.notNull,imgClass:this.css.filterItemIcon,condition:"notNull"})),u=0;u<e.length;u++)c=n("<li class='"+h.itemClass+"'><span class='"+h.imgContainerClass+"'><span class='"+this.css.filterItemIcon+" "+e[u].imgClass+"'><\/span><\/span><span class='"+h.textClass+"'> "+e[u].text+"<\/span><\/li>"),c.appendTo(f).data("cond",e[u].condition);for(this.options.mode==="advanced"&&this._renderAdvancedButton(f),u=0;u<s.length;u++)s[u].columnKey===r&&s[u].condition!==this._getDefaultCondition(l[u].dataType)&&(o=s[u].condition==="null"?f.find(':contains("'+this.options.labels.nullLabel+'")'):f.find(':contains("'+this.options.labels[s[u].condition]+'")'),o=o.children().first().closest("li"),o.addClass(this.css.filterDropDownListItemActive).parent().data("selectedItem",n("li",o.parent()).index(o)))},_renderAdvancedButton:function(t){var i;i=n("<li><\/li>").appendTo(t).addClass(this.css.filterDropDownListItemAdvanced);this._currentButton=n(toStaticHTML('<input type="button"><\/input>'));this._currentButton.igButton({labelText:this.options.labels.advancedButtonLabel}).bind({mousedown:n.proxy(this._openFilterDialog,this)});i.append(this._currentButton)},_openFilterDialogFromKeyboard:function(t){t.keyCode===n.ui.keyCode.ENTER&&this._openFilterDialog(t)},_openFilterDialog:function(t,i){var w,u,f,c,e,o,b,l,a,k,d=!0,s=n("#"+this.grid.container().attr("id")+"_block"),r=n("#"+this.grid.container().attr("id")+"_dialog"),v,p=!0,h,y=this.grid.dataSource.settings.filtering.expressions;if(w=n.ig.getMaxZIndex(this.grid.container().attr("id")+"_dialog"),s.css("zIndex",w+1),r.css("zIndex",w+2),this.options.filterDialogContainment==="owner"?r.draggable("option","containment",this.grid.container()):r.draggable("option","containment","window"),this._dialogCurrentColumn=n(t.target).closest("ul").data("colName"),(this._dialogCurrentColumn===undefined||this._dialogCurrentColumn===null)&&(this._dialogCurrentColumn=i!==null&&i!==undefined?i:n(t.target).closest("th").data("colName")),(this._dialogCurrentColumn===undefined||this._dialogCurrentColumn===null)&&(this._dialogCurrentColumn=this.grid.options.columns[0]),r.find(".ui-iggrid-filtertable tbody tr").remove(),this._dialogCurrentType=this.grid.columnByKey(this._dialogCurrentColumn).dataType,r.find(".ui-iggrd-filtertable tbody tr").remove(),y&&y.length>0){for(p=!0,v=0;v<y.length;v++)p&&y[v].fieldName!==this._dialogCurrentColumn||(p=!1),this._addFilterFromDialog(null,y[v]);p&&this._addFilterFromDialog()}else this._addFilterFromDialog();d=this._trigger(this.events.filterDialogOpening,null,{dialog:r,owner:this});d&&(c=n.ig.util.offset(this.grid.container()),u=c.left,f=c.top,s.outerWidth()!==this.grid.container().outerWidth()&&s.css("width",this.grid.container().outerWidth()),s.outerHeight()!==this.grid.container().outerHeight()&&s.css("height",this.grid.container().outerHeight()),n("#"+this.grid.container().attr("id")+"_dialog_error").hide(),h=n.ig.util.getRelativeOffset(s),s.css({left:u-h.left,top:f-h.top}).fadeToggle(),o=this.grid.container().outerWidth(),e=this.grid.container().outerHeight(),k=n(window).width(),b=n(window).height(),o+u>k&&(o=o-(o+u-k)),o<=0&&(o=this.grid.container().outerWidth()),e+f>b&&(e=e-(e+f-b)),e<=0&&(e=this.grid.container().outerHeight()),l=parseInt(this.options.filterDialogHeight,10),a=parseInt(this.options.filterDialogWidth,10),(isNaN(l)||l<=0)&&(l=r.outerHeight()),(isNaN(a)||a<=0)&&(a=r.outerWidth()),f=f+parseInt(e/2,10)-l/2,u=u+parseInt(o/2,10)-a/2,f=f<0?c.top:f,u=u<0?c.left:u,h=n.ig.util.getRelativeOffset(r),r.css({left:u-h.left,top:f-h.top}).fadeToggle(n.proxy(this._setResizableEnv,this)),this._trigger(this.events.filterDialogOpened,null,{dialog:r,owner:this}),r.focus(),t.preventDefault(),t.stopPropagation(),this.options.mode==="advanced"&&this.options.advancedModeEditorsVisible===!1||this._currentTarget===null||this._currentTarget===undefined||this._toggleDropDown({currentTarget:this._currentTarget},!0))},_closeFilterDialog:function(t){var i=!0;return i=this._trigger(this.events.filterDialogClosing,null,{owner:this}),i?(n("#"+this.grid.container().attr("id")+"_block").fadeToggle(),n("#"+this.grid.container().attr("id")+"_dialog").fadeToggle(),this._trigger(this.events.filterDialogClosed,null,{owner:this}),t&&(t.preventDefault(),t.stopPropagation()),!1):void 0},_searchFilterDialog:function(t){var f=[],u,e,h,c=!0,r,o,i,l=!0,s;if(c=this._trigger(this.events.filterDialogFiltering,null,{dialog:n("#"+this.grid.container().attr("id")+"_dialog"),owner:this}),c){for(u=n("#"+this.grid.container().attr("id")+"_dialog table tbody").children(),e="and",h=n("#"+this.grid.container().attr("id")+"_dialog select:first"),h.length>0&&(e=n("#"+this.grid.container().attr("id")+"_dialog select:first")[0].value==="all"?"AND":"OR"),r=0;r<u.length;r++)o=this.grid.columnByText(n(u[r].cells[0]).find("input")[0].value).dataType,i=n(u[r].cells[2]).find("input").igEditor("value"),i&&(i.nodeName||i[0]&&i[0].nodeName)&&(i=n(u[r].cells[2]).find("span").igEditor("value")),s=n(u[r].cells[1]).find("select")[0].value,n.type(i)==="date"&&(this.grid.options.enableUTCDates&&(i=Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes())),s==="after"&&this.options.type==="local"&&(i.setHours(23),i.setMinutes(59),i.setSeconds(59),i.setMilliseconds(999))),f.push({fieldName:this.grid.columnByText(n(u[r].cells[0]).find("input")[0].value).key,cond:s,expr:i,logic:e,type:o}),o===undefined&&n.type(i)==="string"&&(f[f.length-1].dataType="string");this._closeFilterDialog(t);this._currentAdvancedExpressions=f;l=this._trigger(this.events.dataFiltering,null,{owner:this,expressions:f});l&&this.filter(f,!0,!0)}t.preventDefault();t.stopPropagation()},_filterDialogStartMove:function(){this._isFilterDialogMouseDown=!0},_filterDialogStopMove:function(){this._isFilterDialogMouseDown=!1;this._dialogClientX=undefined;this._dialogClientY=undefined},_filterDialogMove:function(t,i){n(t.target).find(".ui-igedit-fieldincontainer").igEditor("dropDownVisible",!1);i.position.top<0&&(i.position.top=this.grid.container().position().top);this._trigger(this.events.filterDialogMoving,null,{dialog:t.target,owner:this})},_renderFilterDialog:function(){var t,u,i,e,c,o,v=this,f,r,l=!0,s,a,h;h=this.options.filterDialogContainment==="owner"?this.grid._rootContainer():"body";n("<div><\/div>").appendTo(h).attr("id",this.grid.container().attr("id")+"_block").css("position","absolute").addClass(this.css.blockArea).data("efh","1").hide();t=n("<div><\/div>").appendTo(h).attr("id",this.grid.container().attr("id")+"_dialog").css("position","absolute").css("width",this.options.filterDialogWidth).css("height",this.options.filterDialogHeight).addClass(this.css.filterDialog).data("efh","1").hide();l=this._trigger(this.events.filterDialogContentsRendering,null,{dialogElement:t,owner:this});l&&(f=n("<div><\/div>").appendTo(t).addClass(this.css.filterDialogHeaderCaption),n("<span><\/span>").appendTo(f).text(this.options.labels.filterDialogCaptionLabel).addClass(this.css.filterDialogHeaderCaptionTitle),n("<span><\/span>").appendTo(n("<a><\/a>").appendTo(f).attr("href","#").attr("role","button").addClass("ui-dialog-titlebar-close ui-corner-all")).bind({click:n.proxy(this._closeFilterDialog,this)}).addClass("ui-icon ui-icon-closethick"),r=n("<div><\/div>").appendTo(t).addClass("ui-dialog-content").css("overflow","auto").css("height",this.options.filterDialogMaxHeight),u={label1:this.options.labels.filterDialogConditionLabel1,label2:this.options.labels.filterDialogConditionLabel2},i=[{text:this.options.labels.filterDialogAllLabel,value:"all"},{text:this.options.labels.filterDialogAnyLabel,value:"any"}],e=this.options.filterDialogAddConditionTemplate&&typeof this.options.filterDialogAddConditionTemplate=="string"?n(this._fTmplWrappers[this.grid.id()+"_filterDialogAddConditionTemplate"](u)):n("<div><span>"+u.label1+"<\/span><div><select><\/select><\/div><span>"+u.label2+"<\/span><\/div>"),e.appendTo(r).addClass(this.css.filterDialogAddCondition),c=this.options.filterDialogAddConditionDropDownTemplate&&typeof this.options.filterDialogAddConditionDropDownTemplate=="string"?n(this._fTmplWrappers[this.grid.id()+"_filterDialogAddConditionDropDownTemplate"](i)):n("<option value='"+i[0].value+"'>"+i[0].text+"<\/option><option value='"+i[1].value+"'>"+i[1].text+"<\/option>"),c.appendTo(e.find("div").addClass(this.css.filterDialogAddConditionDropDown).find("select")),s=n("<div><\/div>").appendTo(r),n(toStaticHTML('<input type="button"><\/input>')).appendTo(n("<span><\/span>").appendTo(s).addClass(this.css.filterDialogAddButton)).igButton({labelText:this.options.labels.filterDialogAddLabel,width:this.options.filterDialogAddButtonWidth}).bind({mousedown:n.proxy(this._addFilterFromDialog,this)}),n("<button />").appendTo(s).css("float","right").igButton({labelText:this.options.labels.filterDialogClearAllLabel,click:n.proxy(this._filterDialogClearAll,this),css:{buttonClasses:this.css.filterDialogClearAllButton,buttonHoverClasses:"",buttonActiveClasses:"",buttonFocusClasses:"",buttonLabelClass:""}}),n("<label><\/label>").appendTo(r).attr("id",t.attr("id")+"_error").hide().text(this.options.labels.filterDialogErrorLabel).addClass("ui-widget ui-state-error ui-igvalidator-label"),n("<table><tbody><\/tbody><\/table>").appendTo(r).addClass(this.css.filterDialogFiltersTable),o=n("<div><\/div>").appendTo(n("<div><\/div>").appendTo(t).addClass(this.css.filterDialogOkCancelButton)).addClass("ui-dialog-buttonset"),n('<button id="'+this.grid.element[0].id+'_filter_dialog_ok_button"/>').appendTo(o).igButton({labelText:this.options.labels.filterDialogOkLabel,width:this.options.filterDialogOkCancelButtonWidth}).bind({click:n.proxy(this._searchFilterDialog,this)}),n('<button id="'+this.grid.element[0].id+'_filter_dialog_cancel_button"/>').appendTo(o).igButton({labelText:this.options.labels.filterDialogCancelLabel,width:this.options.filterDialogOkCancelButtonWidth}).bind({mousedown:n.proxy(this._closeFilterDialog,this),click:function(n){n.preventDefault()}}),a=this._hc===!0?n("#"+this.grid.element[0].id.split("_")[0]+"_container"):this.grid.container(),t.bind({keydown:function(t){t.keyCode===n.ui.keyCode.ESCAPE&&v._closeFilterDialog()}}).draggable({containment:a,handle:f,drag:n.proxy(this._filterDialogMove,this)}).attr("role","dialog").attr("tabIndex",-1),(typeof Modernizr!="object"||Modernizr.touch===!1)&&t.resizable({minHeight:t.outerHeight()/4,minWidth:t.outerWidth()/2,containment:"parent",resize:n.proxy(this._resizeHandler,this)}),this._trigger(this.events.filterDialogContentsRendered,null,{dialogElement:t,owner:this}))},_setResizableEnv:function(){var t=n("#"+this.grid.container().attr("id")+"_dialog"),i=t.find(">.ui-dialog-content"),r=t.find(">.ui-dialog-titlebar"),u=t.find(">.ui-dialog-buttonpane"),f=i.outerHeight()-i.height();this._resizeCont=i;this._heightDifference=r.outerHeight(!0)+u.outerHeight(!0)+f},_resizeHandler:function(n,t){var i=t.originalElement;this._resizeCont.css({height:i.height()-this._heightDifference+"px"})},_changeFilterCondition:function(t){var u,i,r,f;r=t.target.value;i=n(t.target).closest("td").parent().find("td:nth-child(3)").find("input");u=this._requiresEntry(r);u?i.igEditor("option","disabled",!1):(i.igEditor("option","disabled",!0),f=i.data("igEditor"),this._editorValueForCondition(r,f))},_addFilterFromDialog:function(t,i){var a=n("#"+this.grid.container().attr("id")+"_dialog table tbody"),u,h=this.options.columnSettings,r,v,f,w=!0,c,e,o,y,s,p,l;if(w=this._trigger(this.events.filterDialogFilterAdding,null,{filtersTableBody:a,owner:this}),w){if(a.children().length>=this.options.filterDialogMaxFilterCount){n("#"+this.grid.container().attr("id")+"_dialog_error").show();return}for(r=this.options.filterDialogFilterTemplate&&typeof this.options.filterDialogFilterTemplate=="string"?n(this._fTmplWrappers[this.grid.id()+"_filterDialogFilterTemplate"]({})):n("<tr><td><input/><\/td><td><select><\/select><\/td><td><input /> <\/td><td><span><\/span><\/td><\/tr>"),r.appendTo(a).hide(),v=[],f=0;f<this.grid.options.columns.length;f++){for(y=!0,u=0;u<h.length;u++)if((this.grid.options.columns[f].key===h[u].columnKey||f===h[u].columnIndex)&&h[u].allowFiltering===!1){y=!1;break}y&&v.push(this.grid.options.columns[f].headerText)}i===undefined?(c=this.grid.columnByKey(this._dialogCurrentColumn).headerText,e=this._dialogCurrentType):(l=this.grid.columnByKey(i.fieldName),l!==null&&(c=l.headerText,e=l.dataType),p=i.cond,s=i.expr,e==="date"&&n.type(s)==="number"&&this.grid.options.enableUTCDates&&(s=new Date(s)));r.find("td:first").find("input").css("width",80).igEditor({listItems:v,button:"dropdown",listAutoComplete:!0,listMatchOnly:!0,width:this.options.filterDialogColumnDropDownDefaultWidth||120,textChanged:n.proxy(this._polulateFilterConditionDropDown,this),value:c,enableUTCDates:this.grid.options.enableUTCDates});o=r.find("td:nth-child(2)").children().first();this._populateConditionsList(o,c,e);p!==undefined&&o.length>0&&(o[0].value=p);o.bind("change",n.proxy(this._changeFilterCondition,this));r.find("td:nth-child(2)").children().first().css("width",this.options.filterDialogFilterDropDownDefaultWidth);r.show();this._populateFilterDialogInput(r.find("td:nth-child(3)").children().first(),e,s);r.find("td:last").children().first().addClass(this.css.filterDialogFilterRemoveButton).bind({mousedown:n.proxy(this._removeFilterFromDialog,this)});this._trigger(this.events.filterDialogFilterAdded,null,{filter:r,owner:this})}},_filterDialogClearAll:function(t){var i=n("#"+this.grid.container().attr("id")+"_dialog table tbody");i.empty();n("#"+this.grid.container().attr("id")+"_dialog_error").hide();t&&t.preventDefault()},_polulateFilterConditionDropDown:function(t){var f=t.target.value,e,u=this.grid.options.columns,r,o,i;for(e=n(t.target).closest("tr").find("td:nth-child(2)").children().first(),o=n(t.target).closest("tr").find("td:nth-child(3)").children().first(),i=0;i<u.length;i++)if(u[i].headerText===f){r=u[i].dataType;break}r!==undefined&&(this._populateConditionsList(e,f,r),this._populateFilterDialogInput(o,r))},_populateFilterDialogInput:function(n,t,i){var r={type:this._getEditorType(t),buttonHidden:t!=="date",button:"dropdown",disabled:t==="bool",maxDecimals:12,textAlign:t==="number"?"right":"left",width:this.options.filterDialogExprInputDefaultWidth,value:i,enableUTCDates:this.grid.options.enableUTCDates};n.is("input")||(n=n.find("INPUT"));n.igEditor(r)},_populateConditionsList:function(t,i,r){var u=[],f="",e;if(r==="number"?(u.push({conditionName:"equals",conditionLabel:this.options.labels.equals}),u.push({conditionName:"doesNotEqual",conditionLabel:this.options.labels.doesNotEqual}),u.push({conditionName:"greaterThan",conditionLabel:this.options.labels.greaterThan}),u.push({conditionName:"lessThan",conditionLabel:this.options.labels.lessThan}),u.push({conditionName:"greaterThanOrEqualTo",conditionLabel:this.options.labels.greaterThanOrEqualTo}),u.push({conditionName:"lessThanOrEqualTo",conditionLabel:this.options.labels.lessThanOrEqualTo})):r==="bool"||r==="boolean"?(u.push({conditionName:"true",conditionLabel:this.options.labels.trueLabel}),u.push({conditionName:"false",conditionLabel:this.options.labels.falseLabel})):r==="date"?(u.push({conditionName:"on",conditionLabel:this.options.labels.on}),u.push({conditionName:"notOn",conditionLabel:this.options.labels.notOn}),u.push({conditionName:"after",conditionLabel:this.options.labels.after}),u.push({conditionName:"before",conditionLabel:this.options.labels.before}),u.push({conditionName:"today",conditionLabel:this.options.labels.today}),u.push({conditionName:"yesterday",conditionLabel:this.options.labels.yesterday}),u.push({conditionName:"thisMonth",conditionLabel:this.options.labels.thisMonth}),u.push({conditionName:"lastMonth",conditionLabel:this.options.labels.lastMonth}),u.push({conditionName:"nextMonth",conditionLabel:this.options.labels.nextMonth}),u.push({conditionName:"thisYear",conditionLabel:this.options.labels.thisYear}),u.push({conditionName:"lastYear",conditionLabel:this.options.labels.lastYear}),u.push({conditionName:"nextYear",conditionLabel:this.options.labels.nextYear})):(u.push({conditionName:"startsWith",conditionLabel:this.options.labels.startsWith}),u.push({conditionName:"endsWith",conditionLabel:this.options.labels.endsWith}),u.push({conditionName:"contains",conditionLabel:this.options.labels.contains}),u.push({conditionName:"doesNotContain",conditionLabel:this.options.labels.doesNotContain}),u.push({conditionName:"equals",conditionLabel:this.options.labels.equals}),u.push({conditionName:"doesNotEqual",conditionLabel:this.options.labels.doesNotEqual})),this.options.showEmptyConditions&&(u.push({conditionName:"empty",conditionLabel:this.options.labels.empty}),u.push({conditionName:"notEmpty",conditionLabel:this.options.labels.notEmpty})),this.options.showNullConditions&&(u.push({conditionName:"null",conditionLabel:this.options.labels.nullLabel}),u.push({conditionName:"notNull",conditionLabel:this.options.labels.notNull})),t.empty(),this.options.filterDialogFilterConditionTemplate&&typeof this.options.filterDialogFilterConditionTemplate=="string")f=n(this._fTmplWrappers[this.grid.id()+"_filterDialogFilterConditionTemplate"](u));else{for(e=0;e<u.length;e++)f+="<option value='"+u[e].conditionName+"'>"+u[e].conditionLabel+"<\/option>";f=n(f)}f.appendTo(t);n.ig.util.isIE&&(t.parent().append(t),t.width(t.width()))},_removeFilterFromDialog:function(t){var i=n("#"+this.grid.container().attr("id")+"_dialog table tbody");n(t.target).closest("tr").remove();i.children().length<this.options.filterDialogMaxFilterCount&&n("#"+this.grid.container().attr("id")+"_dialog_error").hide()},_renderStringFilterDropDown:function(t,i){var r=this._renderDropDownElement(t,i),f,u=[];return this.options.filterDropDownItemIcons!==!0?(n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).addClass(this.css.filterDropDownListItemClear)).text(this.options.labels.clear).addClass("ui-corner-all"),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","startsWith")).text(this.options.labels.startsWith).addClass("ui-corner-all"),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","endsWith")).text(this.options.labels.endsWith).addClass("ui-corner-all"),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","contains")).text(this.options.labels.contains).addClass("ui-corner-all"),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","doesNotContain")).text(this.options.labels.doesNotContain).addClass("ui-corner-all"),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","equals")).text(this.options.labels.equals).addClass("ui-corner-all"),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","doesNotEqual")).text(this.options.labels.doesNotEqual).addClass("ui-corner-all")):(f={itemClass:this.css.filterDropDownListItemWithIcons,imgContainerClass:this.css.filterItemIconContainer,textClass:this.css.filterDropDownListItemTextContainer},u.push({text:this.options.labels.clear,imgClass:this.css.filterItemIconClear}),u.push({text:this.options.labels.startsWith,imgClass:this.css.filterItemIconStartsWith,condition:"startsWith"}),u.push({text:this.options.labels.endsWith,imgClass:this.css.filterItemIconEndsWith,condition:"endsWith"}),u.push({text:this.options.labels.contains,imgClass:this.css.filterItemIconContains,condition:"contains"}),u.push({text:this.options.labels.doesNotContain,imgClass:this.css.filterItemIconDoesNotContain,condition:"doesNotContain"}),u.push({text:this.options.labels.equals,imgClass:this.css.filterItemIconEquals,condition:"equals"}),u.push({text:this.options.labels.doesNotEqual,imgClass:this.css.filterItemIconDoesNotEqual,condition:"doesNotEqual"}),this._renderDropDownToList(f,u,r)),r},_renderNumericFilterDropDown:function(t,i){var r=this._renderDropDownElement(t,i),f,u=[];return this.options.filterDropDownItemIcons!==!0?(n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).addClass(this.css.filterDropDownListItemClear)).text(this.options.labels.clear),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","equals")).text(this.options.labels.equals),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","doesNotEqual")).text(this.options.labels.doesNotEqual),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","greaterThan")).text(this.options.labels.greaterThan),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","lessThan")).text(this.options.labels.lessThan),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","greaterThanOrEqualTo")).text(this.options.labels.greaterThanOrEqualTo),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","lessThanOrEqualTo")).text(this.options.labels.lessThanOrEqualTo)):(f={itemClass:this.css.filterDropDownListItemWithIcons,imgContainerClass:this.css.filterItemIconContainer,textClass:this.css.filterDropDownListItemTextContainer},u.push({text:this.options.labels.clear,imgClass:this.css.filterItemIconClear}),u.push({text:this.options.labels.equals,imgClass:this.css.filterItemIconEquals,condition:"equals"}),u.push({text:this.options.labels.doesNotEqual,imgClass:this.css.filterItemIconDoesNotEqual,condition:"doesNotEqual"}),u.push({text:this.options.labels.greaterThan,imgClass:this.css.filterItemIconGreaterThan,condition:"greaterThan"}),u.push({text:this.options.labels.lessThan,imgClass:this.css.filterItemIconLessThan,condition:"lessThan"}),u.push({text:this.options.labels.greaterThanOrEqualTo,imgClass:this.css.filterItemIconGreaterThanOrEqualTo,condition:"greaterThanOrEqualTo"}),u.push({text:this.options.labels.lessThanOrEqualTo,imgClass:this.css.filterItemIconLessThanOrEqualTo,condition:"lessThanOrEqualTo"}),this._renderDropDownToList(f,u,r)),r},_renderDateFilterDropDown:function(t,i){var r=this._renderDropDownElement(t,i),f,u=[];return this.options.filterDropDownItemIcons!==!0?(n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).addClass(this.css.filterDropDownListItemClear)).text(this.options.labels.clear),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","on")).text(this.options.labels.on),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","notOn")).text(this.options.labels.notOn),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","after")).text(this.options.labels.after),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","before")).text(this.options.labels.before),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","today")).text(this.options.labels.today),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","yesterday")).text(this.options.labels.yesterday),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","thisMonth")).text(this.options.labels.thisMonth),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","lastMonth")).text(this.options.labels.lastMonth),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","nextMonth")).text(this.options.labels.nextMonth),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","thisYear")).text(this.options.labels.thisYear),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","lastYear")).text(this.options.labels.lastYear),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","nextYear")).text(this.options.labels.nextYear)):(f={itemClass:this.css.filterDropDownListItemWithIcons,imgContainerClass:this.css.filterItemIconContainer,textClass:this.css.filterDropDownListItemTextContainer},u.push({text:this.options.labels.clear,imgClass:this.css.filterItemIconClear}),u.push({text:this.options.labels.on,imgClass:this.css.filterItemIconOn,condition:"on"}),u.push({text:this.options.labels.notOn,imgClass:this.css.filterItemIconNotOn,condition:"notOn"}),u.push({text:this.options.labels.after,imgClass:this.css.filterItemIconAfter,condition:"after"}),u.push({text:this.options.labels.before,imgClass:this.css.filterItemIconBefore,condition:"before"}),u.push({text:this.options.labels.today,imgClass:this.css.filterItemIconToday,condition:"today"}),u.push({text:this.options.labels.yesterday,imgClass:this.css.filterItemIconYesterday,condition:"yesterday"}),u.push({text:this.options.labels.thisMonth,imgClass:this.css.filterItemIconThisMonth,condition:"thisMonth"}),u.push({text:this.options.labels.lastMonth,imgClass:this.css.filterItemIconLastMonth,condition:"lastMonth"}),u.push({text:this.options.labels.nextMonth,imgClass:this.css.filterItemIconNextMonth,condition:"nextMonth"}),u.push({text:this.options.labels.thisYear,imgClass:this.css.filterItemIconThisYear,condition:"thisYear"}),u.push({text:this.options.labels.lastYear,imgClass:this.css.filterItemIconLastYear,condition:"lastYear"}),u.push({text:this.options.labels.nextYear,imgClass:this.css.filterItemIconNextYear,condition:"nextYear"}),this._renderDropDownToList(f,u,r)),r},_renderBooleanFilterDropDown:function(t,i){var r=this._renderDropDownElement(t,i),f,u=[];return this.options.filterDropDownItemIcons!==!0?(n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).addClass(this.css.filterDropDownListItemClear)).text(this.options.labels.clear),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","true")).text(this.options.labels.trueLabel),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(r).addClass(this.css.filterDropDownListItem).data("cond","false")).text(this.options.labels.falseLabel)):(f={itemClass:this.css.filterDropDownListItemWithIcons,imgContainerClass:this.css.filterItemIconContainer,textClass:this.css.filterDropDownListItemTextContainer},u.push({text:this.options.labels.clear,imgClass:this.css.filterItemIconClear}),u.push({text:this.options.labels.trueLabel,imgClass:this.css.filterItemIconTrue,condition:"true"}),u.push({text:this.options.labels.falseLabel,imgClass:this.css.filterItemIconFalse,condition:"false"}),this._renderDropDownToList(f,u,r)),r},_renderDropDownToList:function(t,i,r){for(var f,u=0;u<i.length;u++)f=n("<li class='"+t.itemClass+"'><span class='"+t.imgContainerClass+"'><span class='"+this.css.filterItemIcon+" "+i[u].imgClass+"'><\/span><\/span><span class='"+t.textClass+"'> "+i[u].text+"<\/span><\/li>"),f.appendTo(r).data("cond",i[u].condition)},_renderDropDownElement:function(t,i){var r,u;return r=n("<ul><\/ul>").appendTo(this.grid._rootContainer()).addClass(this.css.filterDropDownList),u=n("<div><\/div>").appendTo(this.grid._rootContainer()).attr("id",t).addClass(this.css.filterDropDown).css("overflow","hidden").css("position","absolute").hide(),n.ig.util.isIE||u.css("overflow-y","auto"),u.remove(),this.options.filterDropDownWidth>0&&r.css("width",this.options.filterDropDownWidth),this.options.filterDropDownHeight>0&&u.css("height",this.options.filterDropDownHeight),r.data("colName",i),r.wrap(u),r.parent().data("efh","1"),n("#"+t).delegate("li",{mousedown:n.proxy(this._selectDropDownItem,this),mouseover:n.proxy(this._hoverDropDownItem,this),mouseout:n.proxy(this._unhoverDropDownItem,this)}),r},_hoverButton:function(t){var i=n(t.currentTarget).find("span");this.options.mode==="advanced"?i.addClass(this.css.filterButtonAdvancedHover):i.addClass(this.css.filterButtonHover)},_unhoverButton:function(t){var i=n(t.currentTarget).find("span");this.options.mode==="advanced"?i.removeClass(this.css.filterButtonAdvancedHover):i.removeClass(this.css.filterButtonHover)},_activateButton:function(t){var i=n(t.currentTarget).find("span");if(this._dontApplyStyles){this._dontApplyStyles=!1;return}this.options.mode==="advanced"?i.addClass(this.css.filterButtonAdvancedActive):i.addClass(this.css.filterButtonActive)},_deactivateButton:function(t){var i=n(t.target).find("span");i.removeClass(this.css.filterButtonAdvancedActive);i.removeClass(this.css.filterButtonActive)},_toggleDropDown:function(t,i,r){var f=n(t.currentTarget),e=f.attr("id"),u,o,s,c=!0,l=f.find("span"),a,h,v=n("#"+this.grid.container().attr("id")+"_block"),y=n("#"+this.grid.container().attr("id")+"_dialog");this._animating&&e===this._animatingId||(h=n.ig.getMaxZIndex(this.grid.container().attr("id")+"_dialog"),v.css("zIndex",h+1),y.css("zIndex",h+2),u=n("#"+e.substring(0,e.indexOf("_button"))),u.css("zIndex",h+3),!u.is(":visible")&&i===!0||(this._animating=!0,this._animatingId=e),this._dontFocus=this._openingAnimation!==!0?r:null,this._isClosing=!1,u.is(":visible")?(c=this._trigger(this.events.dropDownClosing,null,{dropDown:u,owner:this}),this._isClosing=!0):i||(c=this._trigger(this.events.dropDownOpening,null,{dropDown:u,owner:this})),c&&(o=n.ig.util.offset(l).left,s=n.ig.util.offset(l).top+l.outerHeight(),u.offset().left!==o&&u.offset().top!==s&&(a=n.ig.util.getRelativeOffset(u),o-=a.left,s-=a.top,u.css("left",o).css("top",s)),this._currentTarget=f,this._dd=u,this._isClosing||(this._opendd=u),n.ig.util.isIE&&(u.css("overflow-x","hidden"),u.css("overflow-y","hidden")),i!==undefined&&i===!0?u.is(":visible")&&(this.options.filterDropDownAnimations!=="none"?u.hide(this.options.filterDropDownAnimationDuration,n.proxy(this._animationEnd,this)):(u.hide(),this._trigger(this.events.dropDownClosed,null,{dropDown:u,owner:this}))):this.options.filterDropDownAnimations!=="none"?(u.is(":visible")?this._closingTarget=this._currentTarget:(this._openingTarget=this._currentTarget,this._openingAnimation=!0),u.toggle(this.options.filterDropDownAnimationDuration,n.proxy(this._animationEnd,this))):(u.toggle(),this._isClosing?this._trigger(this.events.dropDownClosed,null,{dropDown:u,owner:this}):this._trigger(this.events.dropDownOpened,null,{dropDown:u,owner:this}),r!==!0&&(this._dontApplyStyles=!0,f.focus()))))},_animationEnd:function(){this._isClosing===!0?this._trigger(this.events.dropDownClosed,null,{dropDown:this._dd,owner:this}):(this._trigger(this.events.dropDownOpened,null,{dropDown:this._opendd,owner:this}),this._openingAnimation=!1);this._dd&&n.ig.util.isIE&&this._dd.css("overflow-y","auto");this._isClosing=null;this._dontFocus!==!0&&(this._dontApplyStyles=!0,this._openingTarget.focus());this._animating=!1},_toggleDropDownKeyboard:function(t){var i,u,r=n(t.target),f;t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE?(t.stopPropagation(),t.preventDefault(),i=n("#"+r.attr("id").substring(0,r.attr("id").indexOf("_button"))).find("ul"),i.data("selectedItem")&&(u=i.find("li:nth-child("+(i.data("selectedItem")+1)+")"),f=n("#"+r.attr("id").substring(0,r.attr("id").indexOf("_button"))).is(":visible"),n(u).hasClass("ui-iggrid-filterddlistitemadvanced")&&f&&this._openFilterDialog(t)),this._toggleDropDown(t)):t.keyCode===n.ui.keyCode.DOWN?(t.stopPropagation(),t.preventDefault(),this._selectDropDownItem(t,"next")):t.keyCode===n.ui.keyCode.UP&&(t.stopPropagation(),t.preventDefault(),this._selectDropDownItem(t,"prev"))},_closeDropDown:function(t){var i=n(t.currentTarget).find("span"),u=n(t.currentTarget),r;if(!this._openingTarget||t.target.id!==this._openingTarget.attr("id")||this._openingAnimation!==!0){if(r=n("#"+u.attr("id").substring(0,u.attr("id").indexOf("_button"))),r&&!r.is(":visible")){i.removeClass(this.css.filterButtonActive);return}if(this._toggleDropDown(t,!0,!0),this._dontApplyStyles){this._dontApplyStyles=!1;return}this.options.mode==="advanced"?i.removeClass(this.css.filterButtonAdvancedActive):i.removeClass(this.css.filterButtonActive)}},_selectDropDownItem:function(t,i,r){var u=n(t.currentTarget),o,f,c,e,l,h,s;u.find("input").length>0&&this.options.mode==="advanced"||((i==="next"||i==="prev")&&(e=n("#"+u.attr("id").substring(0,u.attr("id").indexOf("_button"))).find("ul")),i==="next"&&(e.data("selectedItem")===undefined?u=e.find("li:first"):(u=e.find("li:nth-child("+(e.data("selectedItem")+1)+")"),u=u.next().length===0?e.find("li:first"):u.next())),i==="prev"&&(e.data("selectedItem")===undefined?u=e.find("li:last"):(u=e.find("li:nth-child("+(e.data("selectedItem")+1)+")"),u=u.prev().length===0?e.find("li:last"):u.prev())),o=u.data("cond"),l=n("#"+u.closest("div").attr("id")+"_button"),u.data("cond")===undefined?l.attr("title",this.options.tooltipTemplate.replace("${condition}",this.options.labels.noFilter)):l.attr("title",this.options.tooltipTemplate.replace("${condition}",u.text())),f=n("#"+u.closest("div").attr("id")+"_button").find("span").data("colIndex"),!f&&r&&n.each(this.options.columnSettings,function(n,t){if(t.columnKey===r.fieldName)return f=n,!1}),s=this.options.columnSettings[parseInt(f,10)].condition,o!==undefined?this.options.columnSettings[parseInt(f,10)].condition=o:s!=="empty"&&s!=="notEmpty"&&s!=="null"&&s!=="notNull"&&this._requiresEntry(s)||(this.options.columnSettings[parseInt(f,10)].condition=this._getDefaultCondition(this.grid.options.columns[f].dataType),(s==="null"||this.grid.options.columns[f].dataType==="date")&&this._editors[f].element.igEditor("option","nullText",this.options.nullTexts[this._getDefaultCondition(this.grid.options.columns[f].dataType)])),c=u.parent().data("selectedItem"),c!==undefined&&u.parent().find("li:nth-child("+(c+1)+")").removeClass(this.css.filterDropDownListItemActive),u.addClass(this.css.filterDropDownListItemActive),u.parent().data("selectedItem",n("li",u.parent()).index(u)),this._editors[f].element.igEditor("option","nullText",this.options.nullTexts[o]),h=this._requiresEntry(o),u.hasClass("ui-iggrid-filterddlistitemclear")||this.options.filterDropDownItemIcons===!0&&u.find(".ui-iggrid-filtericonclear").length>0?(h&&o!==undefined||this._editors[f].element.igEditor("option","disabled",this.grid.options.columns[f].dataType==="bool"),this._editors[f].value(null),this._filterDataSourceClear(this.grid.options.columns[f].key,f)):(h||r?this._editors[f].value()!==""&&this._editors[f].value()!==null&&this._editors[f].value(null):(this._editors[f].element.igEditor("option","disabled",!0),this._editorValueForCondition(o,this._editors[f]),this._args=undefined,this._filterInternal(f,this.grid.options.columns[f].key)),h&&this._editors[f].element.igEditor("option","disabled",!1),i===undefined&&o!==undefined&&this._editors[f].setFocus()))},_requiresEntry:function(n){return n==="true"||n==="false"||n==="today"||n==="yesterday"||n==="thisMonth"||n==="nextMonth"||n==="lastMonth"||n==="thisYear"||n==="lastYear"||n==="empty"||n==="notEmpty"||n==="null"||n==="notNull"||n==="nextYear"?!1:n===undefined||n===null?!1:!0},_editorValueForCondition:function(n,t){var i=new Date;n==="true"?t.value(!0):n==="false"?t.value(!1):n==="today"?t.value(new Date):n==="yesterday"?this.grid.options.enableUTCDates?t.value(new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()-1,0,0,0,0))):t.value(new Date(i.getFullYear(),i.getMonth(),i.getDate()-1,0,0,0,0)):t.value(null)},_assignTemplates:function(){var r=this,t=r.options,i=this.grid.id();this._fTmplWrappers={};this._fTmplWrappers[i+"_filterDialogFilterTemplate"]=function(i){return n.ig.tmpl(t.filterDialogFilterTemplate,i)};this._fTmplWrappers[i+"_filterDialogAddConditionTemplate"]=function(i){return n.ig.tmpl(t.filterDialogAddConditionTemplate,i)};this._fTmplWrappers[i+"_filterDialogAddConditionDropDownTemplate"]=function(i){return n.ig.tmpl(t.filterDialogAddConditionDropDownTemplate,i)};this._fTmplWrappers[i+"_filterDialogFilterConditionTemplate"]=function(i){return n.ig.tmpl(t.filterDialogFilterConditionTemplate,i)};String(this.grid.options.templatingEngine).toLowerCase()==="jsrender"&&(this._jsr=!0,n.templates(i+"_filterDialogFilterTemplate",t.filterDialogFilterTemplate),n.templates(i+"_filterDialogAddConditionTemplate",t.filterDialogAddConditionTemplate),n.templates(i+"_filterDialogAddConditionDropDownTemplate",t.filterDialogAddConditionDropDownTemplate),n.templates(i+"_filterDialogFilterConditionTemplate",t.filterDialogFilterConditionTemplate),this._fTmplWrappers=n.render)},_hoverDropDownItem:function(t){n(t.currentTarget).find("input").length===0&&n(t.currentTarget).addClass(this.css.filterDropDownListItemHover)},_unhoverDropDownItem:function(t){n(t.currentTarget).removeClass(this.css.filterDropDownListItemHover)},_virtualHorizontalScroll:function(t,i){var e=i.startColIndex,r,f=this.grid.headersTable().find("th"),u;if(this._currentTarget&&this._toggleDropDown({currentTarget:this._currentTarget},!0),this.options.mode==="advanced"&&this.options.advancedModeEditorsVisible!==!0){for(r=0;r<this.grid._virtualColumnCount;r++)(u=this.grid.options.columns[r+e].key,n(f[r]).data("colName",u),this._fcData[u]!==!0)&&n(f[r]).find("a").attr("id",this.grid.element[0].id+"_dd_"+u+"_button");this._updateTooltips(this._currentAdvancedExpressions||[])}else throw new Error(n.ig.GridFiltering.locale.virtualizationSimpleFilteringNotAllowed);},_columnFixed:function(t){var i,r=t.colInd,u,f,e=t.fixedColsCount;if(u=this.options.columnSettings[r],u&&(this.options.columnSettings.splice(r,1),this.options.columnSettings.splice(e-1,0,u)),f=this._editors[r],f)for(this._editors.splice(r,1),this._editors.splice(e-1,0,f),i=0;i<this._editors.length;i++)n(this._editors[i].element).data("colIndex",i),n(this._editors[i].element).closest("td").find("span.ui-iggrid-filterbutton").data("colIndex",i)},_headerInit:function(n,t){var i;(this.options.mode==="simple"||this.options.advancedModeEditorsVisible===!0)&&this.grid.element.attr("id")===t.owner.element.attr("id")&&(i=this.grid.container().find("thead").find("[data-role=filterrow]"),i.find("[data-skip=true]").remove(),this.grid._headerInit(i,null,!0))},_injectGrid:function(t){var i=null;if(this.grid=t,this.options.type===null&&(this.options.type=this.grid._inferOpType()),this.options.persist&&this.options.type==="remote"&&(i=this.element.closest(".ui-iggrid-root").data("igGrid"),i&&i.element.attr("id")!==this.grid.element[0].id&&i.options.initialDataBindDepth===-1&&(this.options.persist=!1)),this.grid.dataSource.settings.filtering.type=this.options.type?this.options.type:"remote",this.options.filterExprUrlKey&&(this.grid.dataSource.settings.filtering.filterExprUrlKey=this.options.filterExprUrlKey),this.grid.dataSource.settings.filtering.caseSensitive=this.options.caseSensitive,this._headerCellRenderedHandler!==null&&this._headerCellRenderedHandler!==undefined&&this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler),this._headerCellRenderedHandler=n.proxy(this._headerCellRendered,this),this.grid.element.bind("iggridheadercellrendered",this._headerCellRenderedHandler),this._headerRenderedHandler!==null&&this._headerRenderedHandler!==undefined&&this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler),this._headerRenderedHandler=n.proxy(this._headerRendered,this),this.grid.element.bind("iggridheaderrendered",this._headerRenderedHandler),this._columnResizedHandler!==null&&this._columnResizedHandler!==undefined&&this.grid.element.unbind("iggridresizingcolumnresized",this._columnResizedHandler),this._columnResizedHandler=n.proxy(this._columnResized,this),this.grid.element.bind("iggridresizingcolumnresized",this._columnResizedHandler),this._columnsAlteredHandler!==null&&this._columnsAlteredHandler!==undefined&&this.grid.element.unbind("iggrid_columnsmoved",this._columnsAlteredHandler),this._columnsAlteredHandler=n.proxy(this._columnsAltered,this),this.grid.element.bind("iggrid_columnsmoved",this._columnsAlteredHandler),this._initDefaultSettings(),this._onUIDirtyHandler!==null&&this._onUIDirtyHandler!==undefined&&this.grid.element.unbind("iggriduidirty",this._onUIDirtyHandler),this._onUIDirtyHandler=n.proxy(this._onUIDirty,this),this.grid.element.bind("iggriduidirty",this._onUIDirtyHandler),this._virtualHorizontalScrollHandler!==null&&this._virtualHorizontalScrollHandler!==undefined&&this.grid.element.unbind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler),this._virtualHorizontalScrollHandler=n.proxy(this._virtualHorizontalScroll,this),this.grid.element.bind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler),(this.grid.options.virtualization===!0&&this.grid.options.width!==null||this.grid.options.columnVirtualization===!0)&&this.options.mode===null)this.options.mode="advanced";else if((this.grid.options.virtualization===!1||this.grid.options.virtualization===!0&&this.grid.options.width===null)&&this.grid.options.columnVirtualization===!1&&this.options.mode===null)this.options.mode="simple";else if(this.options.mode==="simple"&&(this.grid.options.virtualization===!0||this.grid.options.columnVirtualization===!0))throw new Error(n.ig.GridFiltering.locale.virtualizationSimpleFilteringNotAllowed);if(this._headerInitHandler!==null&&this._headerInitHandler!==undefined&&this.grid.element.unbind("iggridheaderextracellsmodified",this._headerInitHandler),this._headerInitHandler=n.proxy(this._headerInit,this),this.grid.element.bind("iggridheaderextracellsmodified",this._headerInitHandler),this.grid.element.igGridFeatureChooser!==undefined)this.grid.element.igGridFeatureChooser();else throw new Error(n.ig.GridFiltering.locale.featureChooserNotReferenced);this._assignTemplates();this.options.persist&&this._preserveFiltering()}});n.extend(n.ui.igGridFiltering,{version:"14.1.20141.2031"})}(jQuery),function(n){n.widget("ui.igGridGroupBy",{css:{dragMarkup:"ui-iggrid-dragMarkup",groupByArea:"ui-iggrid-groupbyarea",groupByAreaText:"ui-iggrid-groupbyareatext",groupedRow:"ui-iggrid-groupedrow",expandHeaderCellGroupBy:"ui-iggrid-expandheadercellgb ui-iggrid-header ui-widget-header",groupByExpandCellExpanded:"ui-icon ui-iggrid-expandbutton ui-iggrid-expandbuttonexpanded ui-icon-minus",groupByExpandCellCollapsed:"ui-icon ui-iggrid-expandbutton ui-icon-plus",groupByAreaDropHover:"ui-iggrid-groupbyareahover",groupByExpandColumn:"ui-iggrid-expandcolumn",nonGroupRowEmptyCell:"ui-iggrid-nongrouprowemptycell",groupedColumnLabel:"ui-iggrid-groupedcolumnlabel ui-state-default",groupedColumnLabelText:"ui-iggrid-groupedcolumnlabeltext",groupByRemoveButton:"ui-icon ui-icon-circle-close ui-iggrid-groupbyremovebutton",groupedColumnLabelRightEdgeEnd:"ui-iggrid-groupbylabelrightedgeend",groupedColumnLabelRightEdge:"ui-iggrid-groupbylabelrightedge",groupedColumnLayoutLabel:"ui-iggrid-groupbylayoutlabel",footerExtraCell:"ui-widget-content ui-iggrid-footerextracell",featureChooserIconClass:"ui-icon ui-iggrid-icon-groupby",dialogGroupedColumns:"ui-iggrid-groupby-dialog-groupedcolumns",dialogUnroupedColumns:"ui-iggrid-groupby-dialog-ungroupedcolumns",dialogGroupedItem:"ui-widget-content",dialogUngroupedItem:"ui-widget-content",dialogUngroupedColumnsGroupByButton:"ui-iggrid-dialog-groupby-button",dialogUngroupedColumnsText:"ui-iggrid-dialog-text",dialogButtonAsc:"ui-button ui-corner-all ui-button-icon-only ig-sorting-indicator",dialogButtonAscIcon:"ui-button-icon-primary ui-icon ui-icon-arrowthick-1-n",dialogButtonDesc:"ui-button ui-corner-all ui-button-icon-only ig-sorting-indicator",dialogButtonDescIcon:"ui-button-icon-primary ui-icon ui-icon-arrowthick-1-s",dialogButtonUngroup:"ui-iggrid-dialog-groupedbuttons ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-igbutton ui-widget-content ui-igbutton-remove",dialogButtonUngroupContainer:"ui-button-icon-primary ui-icon ui-icon-circle-close",dialogGroupedColumnTextContainer:"ui-iggrid-dialog-text",dialogListGroupedColumns:"ui-iggrid-dialog-list-groupedcolumns",dialogListUngroupedColumns:"ui-iggrid-dialog-list-ungroupedcolumns",dialogLayoutsDDButton:"ui-icon ui-icon-triangle-1-s ui-iggrid-dialog-layouts-dd-button",dropDownLayoutsContainer:"ui-iggrid-featurechooser-dropdown-dialog ui-widget ui-widget-content ui-corner-all",dialogLayoutsDDField:"ui-iggrid-dialog-layouts-dd-field",dialogLayoutsDD:"ui-iggrid-dialog-layouts-dd ui-widget-content ui-corner-all ig-combo-icon-container",modalDialogTreeContainer:"ui-iggrid-groupby-dialog-tree",modalDialogLayoutsContainer:"ui-iggrid-groupby-dialog-layoutscontainer",dialogButtonsHover:"ui-state-hover",groupByLastEmptyCell:"ui-iggrid-last-emptycell"},renderInFeatureChooser:!1,options:{groupByAreaVisibility:"top",initialExpand:!0,emptyGroupByAreaContent:n.ig.GridGroupBy.locale.emptyGroupByAreaContent,emptyGroupByAreaContentSelectColumns:n.ig.GridGroupBy.locale.emptyGroupByAreaContentSelectColumns,expansionIndicatorVisibility:!0,groupByLabelWidth:null,labelDragHelperOpacity:.5,indentation:30,defaultSortingDirection:"asc",groupedColumns:[{key:null,dir:"asc",layout:null,col:null}],resultResponseKey:null,groupedRowTextTemplate:"${key}: ${val} (${count})",type:null,groupByUrlKey:null,groupByUrlKeyAscValue:null,groupByUrlKeyDescValue:null,summarySettings:{multiSummaryDelimiter:",",summaryFormat:"#.00"},columnSettings:[{allowGrouping:!0,isGroupBy:!1,groupComparerFunction:null,groupLabelFormatter:null,summaries:[{summaryFunction:"avg",text:null,customSummary:null}]}],expandTooltip:n.ig.GridGroupBy.locale.expandTooltip,collapseTooltip:n.ig.GridGroupBy.locale.collapseTooltip,removeButtonTooltip:n.ig.GridGroupBy.locale.removeButtonTooltip,featureChooserText:n.ig.GridGroupBy.locale.featureChooserText,featureChooserTextHide:n.ig.GridGroupBy.locale.featureChooserTextHide,modalDialogGroupByOnClick:!1,modalDialogGroupByButtonText:n.ig.GridGroupBy.locale.modalDialogGroupByButtonText,modalDialogCaptionButtonDesc:n.ig.GridGroupBy.locale.modalDialogCaptionButtonDesc,modalDialogCaptionButtonAsc:n.ig.GridGroupBy.locale.modalDialogCaptionButtonAsc,modalDialogCaptionButtonUngroup:n.ig.GridGroupBy.locale.modalDialogCaptionButtonUngroup,modalDialogCaptionText:n.ig.GridGroupBy.locale.modalDialogCaptionText,modalDialogDropDownLabel:n.ig.GridGroupBy.locale.modalDialogDropDownLabel,modalDialogRootLevelHierarchicalGrid:n.ig.GridGroupBy.locale.modalDialogRootLevelHierarchicalGrid,modalDialogDropDownButtonCaption:n.ig.GridGroupBy.locale.modalDialogDropDownButtonCaption,modalDialogClearAllButtonLabel:n.ig.GridGroupBy.locale.modalDialogClearAllButtonLabel,emptyGroupByAreaContentSelectColumnsCaption:n.ig.GridGroupBy.locale.emptyGroupByAreaContentSelectColumnsCaption,modalDialogDropDownWidth:200,modalDialogDropDownAreaWidth:null,modalDialogAnimationDuration:200,modalDialogWidth:400,modalDialogHeight:"",modalDialogButtonApplyText:n.ig.GridGroupBy.locale.modalDialogButtonApplyText,modalDialogButtonCancelText:n.ig.GridGroupBy.locale.modalDialogButtonCancelText,useGridColumnFormatter:!0,persist:!0,groupByDialogContainment:"owner"},events:{groupedColumnsChanging:"groupedColumnsChanging",groupedColumnsChanged:"groupedColumnsChanged",modalDialogMoving:"modalDialogMoving",modalDialogClosing:"modalDialogClosing",modalDialogClosed:"modalDialogClosed",modalDialogOpening:"modalDialogOpening",modalDialogOpened:"modalDialogOpened",modalDialogContentsRendering:"modalDialogContentsRendering",modalDialogContentsRendered:"modalDialogContentsRendered",modalDialogButtonApplyClick:"modalDialogButtonApplyClick",modalDialogButtonResetClick:"modalDialogButtonResetClick",modalDialogGroupingColumn:"modalDialogGroupingColumn",modalDialogGroupColumn:"modalDialogGroupColumn",modalDialogUngroupingColumn:"modalDialogUngroupingColumn",modalDialogUngroupColumn:"modalDialogUngroupColumn",modalDialogSortGroupedColumn:"modalDialogSortGroupedColumn"},_create:function(){this._orderedGroupedCols=[]},_createWidget:function(){this.options.columnSettings=[];this.options.groupedColumns=[];this._tempSortingExpr=[];this._tempGroupedColumns=[];this._tempOrderedGroupedCols=[];this._tempOptions={};this._currentTreeLayer=null;this._isInitFC=!1;this._modalSelectedLayout=null;n.Widget.prototype._createWidget.apply(this,arguments)},_setOption:function(t,i){var r=n("#"+this.grid.id()+"_groupby_modalDialog");if(n.Widget.prototype._setOption.apply(this,arguments),t==="groupByAreaVisibility"||t==="expansionIndicatorVisibility")throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);switch(t){case"modalDialogGroupByOnClick":n("#"+this.grid.id()+"_groupby_modalDialog").remove();this._renderGroupByDialog();break;case"modalDialogCaptionText":r.igGridModalDialog("option","modalDialogCaptionText",i);break;case"modalDialogAnimationDuration":r.igGridModalDialog("option","animationDuration",i);break;case"modalDialogWidth":r.igGridModalDialog("option","modalDialogWidth",i);break;case"modalDialogHeight":r.igGridModalDialog("option","modalDialogHeight",i);break;case"modalDialogButtonApplyText":r.igGridModalDialog("option","buttonApplyText",i);break;case"modalDialogButtonCancelText":r.igGridModalDialog("option","buttonCancelText",i)}},_headerRendered:function(t,i){var u=this,r;if(i.owner.id()===this.grid.id()&&!i.owner.element.attr("data-childgrid")){if(this.options.groupByAreaVisibility==="top")r=n("<div><\/div>").prependTo(this.grid.container());else if(this.options.groupByAreaVisibility==="bottom")r=n("<div><\/div>").appendTo(i.owner.container());else if(this.options.groupByAreaVisibility==="hidden")return;r.attr("id",this.grid.element.attr("id")+"_groupbyarea").addClass(this.css.groupByArea);this._setGroupAreaTextContent(n("<span><\/span>").appendTo(r).addClass(this.css.groupByAreaText));r.droppable({accept:"th:not([groupby-disabled])",hoverClass:u.css.groupByAreaDropHover,drop:function(n,t){var r,i;i=t.draggable.closest(".ui-iggrid-root").attr("id")===u.grid.id()||t.draggable.closest(".ui-iggrid").find(".ui-iggrid-root").length>0;u.grid.element.hasClass("ui-iggrid-root")||(i=!0);r=t.draggable.hasClass("ui-iggrid-header")&&i;r&&u._groupBy(n,t.draggable)}});this.grid._isMultiColumnGrid&&r.droppable("option","tolerance","touch");this._renderGroupByDialog()}},_renderGroupByDialog:function(){var o,u,t=this,i=this.options,f,e,r;this.options.groupByDialogContainment==="owner"?(u=this.grid.container(),e=this.grid._rootContainer()):(u="window",e="body");r=n("<div><\/div>").appendTo(e).attr("id",this.grid.id()+"_groupby_modalDialog");r.igGridModalDialog({renderFooterButtons:!i.modalDialogGroupByOnClick,modalDialogCaptionText:i.modalDialogCaptionText,modalDialogWidth:i.modalDialogWidth,modalDialogHeight:i.modalDialogHeight,animationDuration:i.modalDialogAnimationDuration,buttonApplyText:i.modalDialogButtonApplyText,buttonCancelText:i.modalDialogButtonCancelText,containment:u,gridContainer:this.grid.container(),modalDialogOpening:function(n,i){t._groupByDialogOpening(n,i)},modalDialogMoving:function(n,i){t._trigger(t.events.modalDialogMoving,null,{modalDialogElement:n.target,owner:t,originalPosition:i.originalPosition,position:i.position})},modalDialogClosing:function(){return t._trigger(t.events.modalDialogClosing,null,{modalDialogElement:r,owner:t})},modalDialogClosed:function(){t._trigger(t.events.modalDialogClosed,null,{modalDialogElement:r,owner:t})}});i.modalDialogGroupByOnClick?(f=r.igGridModalDialog("getCaptionButtonContainer"),n("<span><\/span>").bind("click.hiding",function(n){return r.igGridModalDialog("closeModalDialog",!0),n.preventDefault(),n.stopPropagation(),!1}).addClass("ui-icon ui-icon-closethick").appendTo(n("<a><\/a>").appendTo(f).attr("title",n.ig.GridHiding.locale.columnChooserCloseButtonTooltip).attr("href","#").attr("role","button").addClass("ui-dialog-titlebar-close ui-corner-all"))):(f=r.igGridModalDialog("getCaptionButtonContainer"),o=n("#"+this.grid.id()+"_groupby_modalDialog_footer_buttonok"),o.bind("igbuttonclick",function(n){t._groupByDialogButtonOKClick(n)}))},openGroupByDialog:function(){var t=n("#"+this.grid.id()+"_groupby_modalDialog");t.igGridModalDialog("openModalDialog")},closeGroupByDialog:function(){var t=n("#"+this.grid.id()+"_groupby_modalDialog");t.igGridModalDialog("closeModalDialog")},_groupByDialogOpening:function(){var t,i=n("#"+this.grid.id()+"_groupby_modalDialog");t=this._trigger(this.events.modalDialogOpening,null,{modalDialogElement:i,owner:this});t&&(this.renderGroupByModalDialog(),this._trigger(this.events.modalDialogOpened,null,{modalDialogElement:i,owner:this}))},renderGroupByModalDialog:function(){var i,r,t=this,h=this.options,u=this.css,f=n("#"+this.grid.id()+"_groupby_modalDialog"),e,o,s;if(e=this._trigger(this.events.modalDialogContentsRendering,null,{modalDialogElement:f,owner:this}),e){if(i=f.igGridModalDialog("getContent"),i.empty(),t._tempGroupedColumns=h.groupedColumns.slice(0),t._tempOrderedGroupedCols=t._orderedGroupedCols.slice(0),t._tempSortingExpr=t.grid.dataSource.settings.sorting.expressions.slice(0),t._tempOptions={columnLayouts:[]},this.grid.options.columnLayouts&&this.grid.options.columnLayouts.length>0){for(r=0;r<this.grid.options.columnLayouts.length;r++)t._tempOptions.columnLayouts.push(n.extend(!0,{},this.grid.options.columnLayouts[r]));this._renderLayoutsDropDown()}o=n("<div><\/div>").attr("id",this.grid.id()+"_groupby_modalDialog_groupedcolumns").addClass(u.dialogGroupedColumns).appendTo(i);s=n("<div><\/div>").attr("id",this.grid.id()+"_groupby_modalDialog_ungroupedcolumns").addClass(u.dialogUnroupedColumns).appendTo(i);n("<ul><\/ul>").addClass(u.dialogListGroupedColumns).appendTo(o);n("<ul><\/ul>").addClass(u.dialogListUngroupedColumns).appendTo(s);this._renderColumnsDialog(this.grid.options.columns);this._currentTreeLayer=null;this._isToRenderClearAllButton()?this._renderDialogButtonClearAll():n("#"+this.grid.id()+"_groupbydialog_reset_button").remove();this._trigger(this.events.modalDialogContentsRendered,null,{modalDialogElement:f,owner:this})}},_addSlideButtonGroupedColumns:function(){var t=this.css,i=this.options,r=n("#"+this.grid.id()+"_groupby_modalDialog_groupedcolumns"),u=this.grid.id()+"_groupbymodaldialot_slidebutton",f,e;e='<div class="'+t.dialogSlideArea+'">\t<div class="'+t.dialogSlideAreaContainer+'">\t\t<button id="'+u+'" class="'+t.dialogButtonSlide+'" role="button" aria-disabled="false" title="'+i.dialogButtonSlideCaption+'">\t\t\t<span class="'+t.dialogButtonSlideContainer+'"><\/span>\t\t\t<span class="ui-button-text">'+i.dialogButtonSlideCaption+"<\/span>\t\t<\/button>\t<\/div><\/div>";n(e).insertAfter(r);f=n("#"+u);f.bind({click:function(){return r.slideToggle("slow"),n(this).find("span:eq(0)").toggleClass(t.dialogButtonSlideUp),!1}})},_renderLayoutsDropDown:function(){var i=this.options,c,e,l,h,t=this,o=this.css,b=n("#"+this.grid.id()+"_groupby_modalDialog"),k=b.igGridModalDialog("getContent"),a,v,r,u,s,y=this.grid.id()+"_groupby_modalDialog_layoutsDD",p=i.modalDialogDropDownAreaWidth||i.modalDialogDropDownWidth,f=this.grid.options.columnLayouts.slice(0),w;w=n("<div><\/div>").attr("id",this.grid.id()+"_groupby_modalDialog_layoutsContainer").addClass(o.modalDialogLayoutsContainer).appendTo(k);v='<div style="float: left;">'+i.modalDialogDropDownLabel+'<\/div><div class="'+o.dialogLayoutsDD+'">\t<div id="'+this.grid.id()+'_groupby_modalDialog_layoutsDDField" class="'+o.dialogLayoutsDDField+'">'+i.modalDialogRootLevelHierarchicalGrid+'<\/div>\t<span id="'+this.grid.id()+'_groupby_modalDialog_layoutsDDButton" style="float:right;">^<\/span>\t<div style="clear: both;"><\/div><\/div><div style="clear: both;"><\/div>';w.html(v);r=n("#"+this.grid.id()+"_groupby_modalDialog_layoutsDDButton");r.wrap('<a href="#" title="'+i.modalDialogDropDownButtonCaption+' "><\/a>');a=function(n){n.preventDefault();n.stopPropagation()};r.closest("div").bind({mousedown:function(n){t._toggleDropDown(n,!1)},mouseup:a,click:a});r.addClass(o.dialogLayoutsDDButton);this._checkIsGroupByInherit(this.grid.options)===!1&&(f=this._getEnabledGroupByLayouts(f));(f.length>0||this._checkIsGroupByEnabled(this.grid.options))&&(u=n("#"+y),u.remove(),u=n("<div><\/div>"),u.attr("id",y).css({position:"absolute",display:"none","z-index":"1000"}).addClass(this.css.dropDownLayoutsContainer).appendTo(n("#"+this.grid.id()+"_groupby_modalDialog_content")).bind({mousedown:function(){clearTimeout(t._dropDownTimeout);setTimeout(function(){r.closest("a").focus()},10)}}),i.modalDialogDropDownWidth&&r.closest("div").width(i.modalDialogDropDownWidth),p&&u.width(p),i.modalDialogDropDownWidth&&(!i.modalDialogDropDownWidth.indexOf||i.modalDialogDropDownWidth.indexOf("%")===-1)&&(e=r.closest("div").width()-r.outerWidth(),h=n("#"+this.grid.id()+"_groupby_modalDialog_layoutsDDField"),h.width(e),l=h.outerWidth()-e,l>0&&(e-=l,h.width(e-2))),s=n("<div><\/div>").attr("id",this.grid.id()+"_groupby_modal_treeLayouts").addClass(o.modalDialogTreeContainer),s.appendTo(u),f=[{key:"root",columnLayouts:f,isRoot:!0}],s.igTree({dataSourceType:"json",dataSource:f,initialExpandDepth:1e6,bindings:{textKey:"key",childDataProperty:"columnLayouts"},nodeClick:function(i,r){var u=r.node.data,f=u.key,e=n("#"+t.grid.id()+"_groupby_modalDialog_groupedcolumns ul"),o=n("#"+t.grid.id()+"_groupby_modalDialog_ungroupedcolumns ul");u.dislabledGroupBy!==!0&&(e.empty(),o.empty(),n("#"+t.grid.id()+"_groupby_modalDialog_layoutsDDField").text(f),r.node.path.length===1?(t._renderColumnsDialog(t.grid.options.columns),t._currentTreeLayer=null):(t._currentTreeLayer=f,t._renderColumnsDialog(u.columns,f)),t._toggleDropDown())}}),c=function(){t._dropDownTimeout=setTimeout(function(){t.closeDropDown()},200)},r.closest("a").bind({focus:function(){t._igTreeHasFocus=!0;clearTimeout(t._dropDownTimeout)},blur:function(){t._igTreeHasFocus=!1;c()}}),s.find("a").bind({focus:function(){clearTimeout(t._dropDownTimeout)},blur:function(){c()}}),s.find("span.ui-igtree-expander.ui-icon").bind({click:function(){clearTimeout(t._dropDownTimeout);setTimeout(function(){r.closest("a").focus()},10)}}))},openDropDown:function(){var t=n("#"+this.grid.id()+"_groupby_modalDialog_layoutsDD");t.is(":visible")===!1&&this._toggleDropDown()},closeDropDown:function(){var t=n("#"+this.grid.id()+"_groupby_modalDialog_layoutsDD");t.is(":visible")===!0&&this._toggleDropDown()},_getEnabledGroupByLayouts:function(t){var f=[],u,r,i;if(t)for(u=0;u<t.length;u++)r=null,i=n.extend(!0,{},t[u]),i.columnLayouts&&this._checkIsGroupByInherit(i)===!1&&(r=this._getEnabledGroupByLayouts(i.columnLayouts),i.columnLayouts=r&&r.length>0?r:null),this._checkIsGroupByEnabled(i)?f.push(i):i.columnLayouts!==null&&i.columnLayouts!==undefined&&(i.dislabledGroupBy=!0,f.push(i));return f},_checkIsGroupByInherit:function(n){var t;if(n&&n.features)for(t=0;t<n.features.length;t++)if(n.features[t].name==="GroupBy"&&n.features[t].inherit===!0)return!0;return!1},_checkIsGroupByEnabled:function(n){var t;if(n&&n.features)for(t=0;t<n.features.length;t++)if(n.features[t].name==="GroupBy")return!0;return!1},_toggleDropDown:function(){var o=n("#"+this.grid.id()+"_groupby_modalDialog_layoutsDDButton").parent(),u=n("#"+this.grid.id()+"_groupby_modalDialog_content"),r=n("#"+this.grid.id()+"_groupby_modalDialog_layoutsDDField").parent(),f=0,e=0,t=n("#"+this.grid.id()+"_groupby_modalDialog_layoutsDD"),s=t.is(":visible")===!0,i=this;t.data("isAnimating")!==!0&&(s||(e=r.offset().top-u.offset().top+r.height()+1,f=r.offset().left-u.offset().left,t.css({top:e,left:f})),t.data("isAnimating",!0),t.slideToggle(400,function(){var r=n("#"+i.grid.id()+"_groupby_modalDialog_layoutsDD"),u=n("#"+i.grid.id()+"_groupby_modal_treeLayouts");t.is(":visible")===!0?(o.focus(),i._activeDropdown=t,i.options.modalDialogDropDownAreaWidth||i.options.modalDialogDropDownWidth||r.width()!==u.width()&&r.width(u.width())):i._activeDropdown=null;t.data("isAnimating",!1)}))},_groupByDialogButtonOKClick:function(t){var s,f=this.options,h=n("#"+this.grid.id()+"_groupby_modalDialog"),r,i,u,e,o=!1,c;if(s=this._trigger(this.events.modalDialogButtonApplyClick,null,{modalDialogElement:h,owner:this,groupedColumns:this._tempGroupedColumns,groupedColumnLayouts:this._tempOptions.columnLayouts,sortingExpr:this._tempSortingExpr}),s){if(this._orderedGroupedCols.length!==this._tempOrderedGroupedCols.length)o=!0;else for(u=this._orderedGroupedCols.length,r=0;r<u;r++){for(e=this._tempOrderedGroupedCols[r],i=0;i<u;i++)if(e.key===this._orderedGroupedCols[i].key&&e.layout===this._orderedGroupedCols[i].layout)break;if(i===u){o=!0;break}}o===!0&&this._trigger(this.events.groupedColumnsChanged,t,{owner:this,groupedColumns:this._tempGroupedColumns});this._orderedGroupedCols=this._tempOrderedGroupedCols;f.groupedColumns&&(f.groupedColumns=this._tempGroupedColumns);this.grid.options.columnLayouts&&(this.grid.options.columnLayouts=this._tempOptions.columnLayouts);this.grid.dataSource.settings.sorting.expressions&&(this.grid.dataSource.settings.sorting.expressions=this._tempSortingExpr);this._isgroup=this._isToRenderClearAllButton()===!1?n(".ui-iggrid-groupbyarea",this.grid.container()).find("ul li").length===0?null:!1:!0;f.groupedColumns.length===0&&this.grid.headersTable().find("thead tr").children().first().hasClass("ui-iggrid-expandheadercellgb")&&(this.grid.element.find("colgroup").children().first().remove(),this.grid.options.fixedHeaders&&this.grid.headersTable().find("colgroup").children().first().remove(),this.grid.options.fixedFooters&&this.grid.options.height!==null&&this.grid.footersTable().find("colgroup").children().first().remove(),this.grid.headersTable().find("thead tr").children("[data-skip]").first().remove());c=this._orderedGroupedCols.slice(0);this._orderedGroupedCols=[];this._ensureLabelsOrder(c,this._orderedGroupedCols,this.grid.options);this._rebind();this.grid.options.width!==null&&this.grid.options.width!==undefined&&this.grid._updateGridContentWidth();this.grid._trigger("headerExtraCellsModified",null,{owner:this});t.preventDefault();t.stopPropagation();h.igGridModalDialog("closeModalDialog")}},_setSortingTempExpr:function(n,t,i){var u,h,r,e=this._tempGroupedColumns,c,l,f=this._tempSortingExpr,s,o;if(l={fieldName:n,dir:t,layout:i,isGroupBy:!0},t===""){for(r=0;r<f.length;r++)if(f[r].fieldName===n&&f[r].layout===i){f.splice(r,1);break}return}for(e.length!==0||i||(c=this._tempGroupedColumns.slice(0),this._allGroupedCols(c),e=c.slice(0)),u=0;u<e.length;u++)if(e[u].key===n){for(e[u].dir=t,r=0;r<f.length;r++)if(f[r].fieldName===n){f[r].dir=e[u].dir;e[u].layout&&(f[r].layout=e[u].layout);break}r===f.length&&this._addSortingExpressions(f,l);break}if(i){for(u=0;u<this._tempOrderedGroupedCols.length;u++)if(this._tempOrderedGroupedCols[u].key===n&&(this._tempOrderedGroupedCols.layout&&this._tempOrderedGroupedCols.layout===i||!this._tempOrderedGroupedCols.layout)){this._tempOrderedGroupedCols[u].dir=t;break}for(r=0;r<f.length;r++)if(f[r].fieldName===n&&f[r].layout===i){f[r].dir=t;break}for(r===f.length&&this._addSortingExpressions(f,l),h=[],this._findLayout(i,this._tempOptions,h),o=h[0],u=0;o.features&&u<o.features.length;u++)if(o.features[u].name==="GroupBy"){for(s=o.features[u].columnSettings,r=0;r<s.length;r++)if(s[r].columnKey===n){s[r].dir=t;break}break}}},_setGroupByTempExpr:function(t,i,r,u){var f,c,s,e,l,o,h,a;if(u?(a=[],this._findLayout(u,this._tempOptions,a),e=a[0],l=this._getColumnByLayoutKey(t,e.columns)):(e=this.grid.options,l=this.grid.columnByKey(t)),u){if(e.features){for(f=0;f<e.features.length;f++)if(e.features[f].name==="GroupBy"){o=e.features[f].columnSettings;o||(e.features[f].columnSettings=[],o=e.features[f].columnSettings);break}}else e.features=[],e.features.push({name:"GroupBy",columnSettings:[]}),o=e.features[0].columnSettings;for(f=0;f<o.length;f++)if(o[f].columnKey===t){i?h=o[f]:o.splice(f,1);break}i&&(h?(h.isGroupBy=i,h.dir=r):o.push({columnKey:t,isGroupBy:i,dir:r}))}if(c={key:t,dir:r,layout:u,col:l},!u){for(s=this._tempGroupedColumns,f=0;f<s.length;f++)if(s[f].key===t){s.splice(f,1);break}i&&(s=s.concat(c));this._tempGroupedColumns=s}if(i)this._tempOrderedGroupedCols.push(c);else for(f=0;f<this._tempOrderedGroupedCols.length;f++)if(this._tempOrderedGroupedCols[f].key===t&&(this._tempOrderedGroupedCols.layout&&this._tempOrderedGroupedCols.layout===u||!this._tempOrderedGroupedCols.layout)){n.ig.removeFromArray(this._tempOrderedGroupedCols,f);break}this._setSortingTempExpr(t,r,u)},_checkColumnIsGroupedInternal:function(n,t,i,r){var s=!1,u,e,h,f,o;if(t){if(h=[],this._findLayout(t,r,h),f=h[0],f&&f.features)for(u=0;u<f.features.length;u++)if(f.features[u].name==="GroupBy"){if(o=f.features[u].columnSettings,o)for(e=0;e<o.length;e++)if(o[e].columnKey===n){o[e].isGroupBy&&(s=!0);break}break}}else for(u=0;u<i.length;u++)if(i[u].key===n){s=!0;break}return s},checkColumnIsGrouped:function(n,t){return this._checkColumnIsGroupedInternal(n,t,this.options.groupedColumns,this.grid.options)},_getAllColumns:function(n,t){for(var r=n.length,i=0;i<r;i++)n[i].group?this._getAllColumns(n[i].group,t):t.push(n[i])},_renderColumnsDialog:function(t,i){var r=this,u=[];this.grid._isMultiColumnGrid?this._getAllColumns(t,u):u=t;n.each(u,function(n,t){var u=r._findColumnSetting(t.key);if(r.options.type==="remote"&&(t.unboundDS===!0||t.unbound===!0))return!0;(!u||u.allowGrouping)&&(r._checkColumnIsGroupedInternal(t.key,i,r._tempGroupedColumns,r._tempOptions)?r._renderDialogGroupedColumn(t,i):r._renderDialogUngroupedColumn(t,i))})},_clearAllGroupedColumns:function(){this._tempGroupedColumns=[];this._clearAllGroupedColumnsLayout(this._tempOptions)},_clearAllGroupedColumnsLayout:function(n){var t,i;if(n!==null&&n.features)for(t=0;t<n.features.length;t++)n.features[t].name==="GroupBy"&&(i=n.features[t].columnSettings,i&&(n.features[t].columnSettings=[]));for(t=0;n.columnLayouts&&t<n.columnLayouts.length;t++)this._clearAllGroupedColumnsLayout(n.columnLayouts[t])},_isToRenderClearAllButton:function(){return this.options.modalDialogGroupByOnClick===!0?!0:this._tempGroupedColumns.length>0?!0:this._checkRenderLayoutsClearAll(this.grid.options)===!0?!0:!1},_checkRenderLayoutsClearAll:function(n){var t,i,r;if(n!==null&&n.features)for(t=0;t<n.features.length;t++)if(n.features[t].name==="GroupBy"&&(r=n.features[t].columnSettings,r))for(i=0;i<r.length;i++)if(r[i].isGroupBy)return!0;for(t=0;n.columnLayouts&&t<n.columnLayouts.length;t++)if(this._checkRenderLayoutsClearAll(n.columnLayouts[t])===!0)return!0;return!1},_renderDialogGroupedColumn:function(t,i){var o,e,s,h,a,v,c=this.options,r=this,f=this.css,u=t.key,w=n("#"+this.grid.id()+"_groupby_modalDialog_groupedcolumns ul"),b=this.grid.id()+"_"+u+"_groupbydialog_groupedcolumns_buttonascdesc",y=this.grid.id()+"_"+u+"_groupbydialog_groupedcolumns_buttonungroup",l="asc",p=null;if(n("#"+this.grid.id()+"_groupby_modalDialog").css("width"),i){for(s=r._tempSortingExpr,e=0;e<s.length;e++)if(s[e].fieldName===u&&s[e].layout===i){l=s[e].dir;break}}else for(o=0;o<r._tempGroupedColumns.length;o++)if(r._tempGroupedColumns[o].key===u){p=r._tempGroupedColumns[o];l=p.dir;break}h=n("<li><\/li>").attr("id",r.grid.id()+"_"+u+"_groupbydialog_grouped_li").addClass(f.dialogGroupedItem);h.appendTo(w);a='<span id="'+b+'" class="'+f.dialogButtonAsc+'" role="button" title="'+c.modalDialogCaptionButtonAsc+'">\t<span class="'+f.dialogButtonAscIcon+'"><\/span><\/span><span class="'+f.dialogGroupedColumnTextContainer+'">'+t.headerText+'<\/span><button id="'+y+'" class="'+f.dialogButtonUngroup+'" role="button" title="'+c.modalDialogCaptionButtonUngroup+'" >\t<span class="'+f.dialogButtonUngroupContainer+'"><\/span>\t<span class="ui-button-text">'+c.modalDialogCaptionButtonUngroup+"<\/span><\/button>";h.html(a);v=n("#"+y);r._setDialogButtonAscDesc(l==="asc",u);h.bind({click:function(){r._dialogButtonAscDescClick(u,i)}});v.bind({click:function(f){var e;e=r._trigger(r.events.modalDialogUngroupingColumn,f,{key:u,layout:i,owner:r});e&&(h.remove(),c.modalDialogGroupByOnClick===!0?r.ungroupByColumn(u,i):r._setGroupByTempExpr(u,!1,"",i),r._renderDialogUngroupedColumn(t,i),n("#"+r.grid.id()+"_groupby_modalDialog_groupedcolumns ul li").length===0&&r._isToRenderClearAllButton()===!1&&n("#"+r.grid.id()+"_groupbydialog_reset_button").remove(),r._trigger(r.events.modalDialogUngroupColumn,f,{key:u,layout:i,owner:r,groupedColumns:r._tempGroupedColumns}));f.preventDefault();f.stopPropagation()},mouseover:function(){n(this).hasClass(f.dialogButtonsHover)||n(this).addClass(f.dialogButtonsHover)},mouseout:function(){n(this).hasClass(f.dialogButtonsHover)&&n(this).removeClass(f.dialogButtonsHover)}})},_dialogButtonAscDescClick:function(t,i){var u=this.options,e=n("#"+this.grid.id()+"_"+t+"_groupbydialog_groupedcolumns_buttonascdesc"),f,o=n("#"+this.grid.id()+"_groupby_modalDialog"),r=e.data("isAsc");f=this._trigger(this.events.modalDialogSortGroupedColumn,null,{modalDialogElement:o,owner:this,key:t,isAsc:!r,layout:i});f&&(r===!0?u.modalDialogGroupByOnClick===!0?(this._setSortingTempExpr(t,"desc",i),this.grid.dataSource.settings.sorting.expressions=this._tempSortingExpr,this._rebind()):this._setSortingTempExpr(t,"desc",i):u.modalDialogGroupByOnClick===!0?(this._setSortingTempExpr(t,"asc",i),this.grid.dataSource.settings.sorting.expressions=this._tempSortingExpr,this._rebind()):this._setSortingTempExpr(t,"asc",i),this._setDialogButtonAscDesc(!r,t))},_setDialogButtonAscDesc:function(t,i){var r=this.css,u=n("#"+this.grid.id()+"_"+i+"_groupbydialog_groupedcolumns_buttonascdesc"),e=u.find("span:eq(0)"),f;t===!0?(u.removeClass(r.dialogButtonDesc).addClass(r.dialogButtonAsc),e.removeClass(r.dialogButtonDescIcon).addClass(r.dialogButtonAscIcon),f=this.options.modalDialogCaptionButtonAsc):(u.removeClass(r.dialogButtonAsc).addClass(r.dialogButtonDesc),e.removeClass(r.dialogButtonAscIcon).addClass(r.dialogButtonDescIcon),f=this.options.modalDialogCaptionButtonDesc);u.data("isAsc",t).attr("title",f)},_renderDialogButtonClearAll:function(){if(this.options.modalDialogGroupByOnClick!==!0){var t=this,e=this.options,i=t.grid.id()+"_groupbydialog_reset_button",r=n("#"+this.grid.id()+"_groupby_modalDialog"),u,f;n("#"+i).length===0&&(u=r.igGridModalDialog("getCaptionButtonContainer"),f=n("<button><\/button>").attr("id",i).appendTo(u),f.igButton({labelText:e.modalDialogClearAllButtonLabel,click:function(i){var f,e,o,u=[];f=t._trigger(t.events.modalDialogButtonResetClick,i,{modalDialogElement:r,owner:t});f&&(t._clearAllGroupedColumns(),t._tempSortingExpr=t.grid.dataSource.settings.sorting.expressions.slice(0),e=n("#"+t.grid.id()+"_groupby_modalDialog_groupedcolumns ul"),o=n("#"+t.grid.id()+"_groupby_modalDialog_ungroupedcolumns ul"),e.empty(),o.empty(),t._tempSortingExpr=[],t._tempOrderedGroupedCols=[],t._currentTreeLayer?(t._findLayout(t._currentTreeLayer,t._tempOptions,u),u.length>0&&t._renderColumnsDialog(u[0].columns,t._currentTreeLayer)):t._renderColumnsDialog(t.grid.options.columns),n(this).remove())}}))}},_renderDialogUngroupedColumn:function(t,i){var r=this,u,o,f=t.key,s=this.options,e=this.css,h=n("#"+this.grid.id()+"_groupby_modalDialog_ungroupedcolumns ul");u=n("<li><\/li>").attr("id",r.grid.id()+"_"+f+"_groupbydialog_grouped_li").addClass(e.dialogUngroupedItem).append('<span class="'+e.dialogUngroupedColumnsGroupByButton+'"><a href="#"><\/a><\/span> <span class="'+e.dialogUngroupedColumnsText+'">'+t.headerText+"<\/span>");u.appendTo(h);o=u.find("a:first");o.addClass(e.modalDialogSortByColumn);o.html(s.modalDialogGroupByButtonText);u.bind({click:function(n){var e;e=r._trigger(r.events.modalDialogGroupingColumn,n,{key:f,layout:i,owner:r});e&&(u.remove(),s.modalDialogGroupByOnClick?r.groupByColumn(f,i):r._setGroupByTempExpr(f,!0,s.defaultSortingDirection,i),r._renderDialogButtonClearAll(),r._renderDialogGroupedColumn(t,i),r._renderDialogButtonClearAll(),r._trigger(r.events.modalDialogGroupColumn,n,{key:f,layout:i,owner:r,groupedColumns:r._tempGroupedColumns}));n.preventDefault();n.stopPropagation()}})},_setGroupAreaTextContent:function(t){var i=this.options.emptyGroupByAreaContent,u=this.options.emptyGroupByAreaContentSelectColumns,f=this.options.emptyGroupByAreaContentSelectColumnsCaption,r,e=this;i=i.replace("{0}",'<a href="#" id="'+this.grid.id()+'_link_selectcolumns" title="'+f+'">'+u+"<\/a>");t.html(i);r=n("#"+this.grid.id()+"_link_selectcolumns");r.bind({click:function(n){e.openGroupByDialog();n.preventDefault();n.stopPropagation()}})},_headerCellDragCancel:function(){return!1},_headerCellRendered:function(t,i){var r=this,f,u,e,o=this.grid._isMultiColumnGrid;i.owner.id()===this.grid.id()&&i.isMultiColumnHeader!==!0&&(u=r.grid.element.hasClass("ui-iggrid-root")?r.grid.container():r.grid.element.closest(".ui-iggrid-root"),u.length===0?u=r.grid.container():(e=u.closest(".ui-widget"),e.length>0&&(u=e)),f=this._findColumnSetting(i.columnKey),i.th.find(".ui-iggrid-headertext").css("width","100%"),(f&&f.allowGrouping||!f)&&(i.th.draggable({containment:u,appendTo:u,distance:5,revert:"invalid",cancel:"div.ui-iggrid-indicatorcontainer",helper:function(t){var i,u;return r._spanDragging=n(t.target).is("span")?!0:!1,i=n(t.target).closest("th"),u=i.clone().css("overflow","hidden").width(i.width()).addClass("ui-widget ui-iggrid").wrap(n('<div class="'+r.css.dragMarkup+'"/>').width(i.outerWidth())),o&&u.height(i.height()),u.parent()},opacity:r.options.labelDragHelperOpacity,drag:function(t,i){var f;r._isDragging=!0;f=n(".ui-iggrid-groupbyarea",u);f.hasClass("ui-iggrid-groupbyareahover")||r._movingEnabled?r._spanDragging?i.helper.find("span").css("cursor","move"):i.helper.css("cursor","move"):r._spanDragging?i.helper.find("span").css("cursor","no-drop"):i.helper.css("cursor","no-drop")},stop:function(){r._isDragging=!1}}).bind({mouseover:r._headerMouseOverHandler,mouseout:r._headerMouseOutHandler}),i.owner.element.attr("data-childgrid")&&i.th.attr("data-layout",i.owner.options.key).attr("data-grid-id",i.owner.element.attr("id"))))},_findColumnSetting:function(n){for(var t=0;t<this.options.columnSettings.length;t++)if(this.options.columnSettings[t].columnKey===n)return this.options.columnSettings[t]},_renderRecords:function(n,t){if(t.owner.id()===this.grid.id()){if(this._getTotalRowCountHandler&&(this.grid._getTotalRowCount=this._getTotalRowCountHandler,this._getTotalRowCountHandler=null),this.options.groupedColumns.length>0)this._renderRecordsInternal();else return!0;return!1}},_recordsRendered:function(t,i){var r=n(window).scrollTop();i.tbody.is(":visible")||i.tbody.css("display","");this._scrolltop!==0&&r!==0&&this._scrolltop!==r&&n(window).scrollTop(this._scrolltop)},_renderRecordsInternal:function(){var t=this.grid,c=t.dataSource.dataView(),u,l=[],r=t.element.children("tbody"),a=!1,e,i,o,v,s,y,f,h;if(this._indent=this.options.indentation,this.grid.options.fixedHeaders===!0&&(a=!0),this._colspan=this.grid._isMultiColumnGrid?this.grid.container().find("#"+this.grid.id()+" colgroup:first>col").length-1:this.grid.options.showHeader?this.grid.container().find("#"+this.grid.id()+(a===!0?"_headers":"")+" thead>tr:first").children("th:not(.ui-iggrid-expandheadercellgb)").length:this.grid.container().find("#"+this.grid.id()+" colgroup:first>col").length-1,this._processGroupsRecursive(0,c,r,l,null,0,c.length,!0),t.headersTable().find("thead tr th").hasClass("ui-iggrid-expandheadercellgb")?(t.headersTable().find("colgroup col:nth-child(1)").width(this._indent),t.footersTable().find("colgroup col:nth-child(1)").width(this._indent)):(v=n("<th><\/th>").prependTo(t.headersTable().find("thead tr:nth-child(1)")).addClass(this.css.expandHeaderCellGroupBy).attr("data-skip",!0),t._isMultiColumnGrid&&v.attr("rowspan",t._maxLevel+1),t.headersTable().attr("id")!==t.element.attr("id")&&n("<col />").prependTo(t.headersTable().find("colgroup")).attr("data-skip","true").width(this._indent),t.footersTable().attr("id")!==t.element.attr("id")&&n("<col />").prependTo(t.footersTable().find("colgroup")).attr("data-skip","true").width(this._indent)),r.show(),e=l.join(""),t.options.virtualization===!0){if(this.grid._scrollTo(0,!0),this._groupedRows=this._tokenizeTBody(e),this._groupedRows.length>0){for(this._groupedRows[0]=this._groupedRows[0].substr(0,3)+' data-firstgrouprow="true" '+this._groupedRows[0].substr(3),this._groupedRows[this._groupedRows.length-1]=this._groupedRows[this._groupedRows.length-1].substr(0,3)+' data-lastrow="true" '+this._groupedRows[this._groupedRows.length-1].substr(3),i=this._groupedRows.length-1;i>=0;i--)if(this._groupedRows[i].indexOf('data-grouprow="true"')>=0){this._groupedRows[i]=this._groupedRows[i].substr(0,3)+' data-lastgrouprow="true" '+this._groupedRows[i].substr(3);break}if(this._virtualRowCount=this._determineVirtualRowCount(this._groupedRows,t._getDisplayContainerHeight()),this._virtualRowCount>this._groupedRows.length&&(this._virtualRowCount=this._groupedRows.length),o="",this.options.initialExpand)for(i=0;i<this._virtualRowCount;i++)o+=this._groupedRows[i];else{for(this._getTotalRowCountHandler||(this._getTotalRowCountHandler=n.proxy(t._getTotalRowCount,t),t._getTotalRowCount=n.proxy(this._getTotalRowCount,this)),this._countGroupedRows=e.match(/(data-grouprow="true")/gi).length,this._cachedGroupedRows=this._groupedRows,s=[],this._groups={},u=0,y=this._groupedRows.length,h=0,i=0;i<y;i++)if(f=this._groupedRows[i],f.indexOf("data-grouprow")>-1)u++,h=0,f=f.replace(/data-row-idx="(\d)+"/i,'data-row-idx="'+(u-1)+'"'),s.push(f);else{if(++h>this._virtualRowCount)continue;this._groups[u-1]||(this._groups[u-1]=[]);this._groups[u-1].push(f)}for(this._groupedRows=s,s=null,this._virtualRowCount>this._groupedRows.length&&(this._virtualRowCount=this._groupedRows.length),i=0;i<this._virtualRowCount;i++)o+=this._groupedRows[i]}window.MSApp===undefined?r.html(o):MSApp.execUnsafeLocalFunction(function(){r.html(o)});this.grid._buildVirtualDomForContinuousVirtualization()}}else window.MSApp===undefined?r.html(e):MSApp.execUnsafeLocalFunction(function(){r.html(e)}),this.grid.options.width===null?this.grid._setContainerWidth(this.grid.container()):this.grid._updateGridContentWidth();this._avgRowHeight=this.grid._calculateAvgRowHeight();this.grid._trigger(this.grid.events.rowsRendered,null,{owner:this.grid,tbody:r})},_getTotalRowCount:function(){return this.options.groupedColumns.length>0?this._countGroupedRows:this._getTotalRowCountHandler()},_processGroupsRecursive:function(n,t,i,r,u,f,e,o){var p,l=0,a,s=f,w=f,v,y,b,k,h=this.options.groupedColumns[n].key,c;if(t.length!==0)for(u=t[s][h],c=this._settingFromKey(h),o=!0,this.options.indentation&&this.options.indentation.indexOf&&this.options.indentation.indexOf("%")!==-1||(this._indent=parseInt(this.options.indentation,10)*(n+1)),a=f;a<e;a++)if(!(a<s)&&!(s>=e)&&(!this._cmp(c,t[s][h],u)||o))if(o=!1,u=t[s][h],p=c.customGroupName?this._renderGroupRow(r,n,h,u,c.customGroupName,c,t[s]):this._renderGroupRow(r,n,h,u,null,c,t[s]),w=s,this.options.groupedColumns.length-1>n){while(s<e&&this._cmp(c,t[s][h],u))s++,l++;this._rs(h,u,p,l,w,s,t,r);l=0;this._processGroupsRecursive(n+1,t,i,r,u,a,s,o)}else{for(y=[];s<e&&this._cmp(c,t[s][h],u);)s++,l++,this._renderRecord(r,i,t[s-1],s-1,this.options.initialExpand,y);for(b=y.length,v=0;v<b;v++)k=this.css.nonGroupRowEmptyCell,v===b-1&&(k+=" "+this.css.groupByLastEmptyCell),r[y[v]]+='<td class="'+k+'" data-skip="true"><\/td>';this._rs(h,u,p,l,w,s,t,r);l=0}},_rs:function(n,t,i,r,u,f,e,o){var s;r=this._calcRealSum(n,t,r,e);o[i]=o[i].replace("__sum__",r);o[i].indexOf("$$value$$")!==-1&&(s=e.slice(u,f),o[i]=this._calcRealSummary(o[i],n,t,s))},_cmp:function(t,i,r){var e=this.grid.options,s=e.enableUTCDates,h=!e.rowTemplate||e.rowTemplate.length<=0,o,u,f;return t.groupComparerFunction?typeof t.groupComparerFunction=="function"?t.groupComparerFunction(t,i,r):window[t.groupComparerFunction](t,i,r):n.type(i)==="date"&&n.type(r)==="date"?(u=t.columnKey,u!==undefined&&u!==null&&(f=this.grid.columnByKey(u),f!==undefined&&f!==null&&(o=f.format)),n.ig.formatter(i,"date",o,h,s)===n.ig.formatter(r,"date",o,h,s)):i===r},_encodeSummaryParams:function(n,t){for(var r=this.options.columnSettings,u,f,i=0;i<r.length;i++)if(r[i].summaries&&r[i].summaries.length>0)for(u=0;u<r[i].summaries.length;u++)f="gs("+r[i].columnKey+")",t.extraParams[f]=t.extraParams[f]?t.extraParams[f]+","+r[i].summaries[u].summaryFunction:r[i].summaries[u].summaryFunction},_calcRealSummary:function(t,i,r,u){var p,o,f,e,s,l=this.grid.dataSource.metadata(this.options.resultResponseKey),h,a=t,c,w=1,v,y;if(p=this.grid.dataSource.data(),l&&l!==null)for(e=this.options.columnSettings,f=0;f<e.length;f++)for(s=0;s<e[f].summaries.length;s++){h=l[e[f].columnKey+"_"+e[f].summaries[s].summaryFunction];for(o in h)h.hasOwnProperty(o)&&(v=this.grid.columnByKey(i).dataType,y=v==="bool"&&n.type(o)==="string"?o.toLowerCase()==="true"?!0:!1:v==="number"&&n.type(o)==="string"?w*o:o,(r===null||r.length||r!==y*w)&&y!==r||(c=h[o],c=n.ig.formatter(c,"number",this.options.summarySettings.summaryFormat),(e[f].summaries[s].customSummary===undefined||e[f].summaries[s].customSummary===null)&&(a=a.replace(e[f].columnKey+e[f].summaries[s].summaryFunction+"$$value$$",c))))}if(!0||this.grid.dataSource.dataView().length<p.length)return this._summaries(a,u,i)},_calcRealSum:function(t,i,r,u){var o=0,f,e,h,c,v=1,y,s,l,a;if(c=this._settingFromKey(t),s=this.grid.dataSource.metadata(this.options.resultResponseKey),s&&s[t]){f=s[t];for(e in f)f.hasOwnProperty(e)&&(l=this.grid.columnByKey(t).dataType,a=l==="bool"&&n.type(e)==="string"?e.toLowerCase()==="true"?!0:!1:l==="number"&&n.type(e)==="string"?v*e:e,i===null||i===undefined||i.length||i!==a*v?a===i&&(o=f[e]):o=f[e])}else if(u.length<this.grid.dataSource.data().length){for(o=0,e=this.grid.dataSource._filter&&this.grid.dataSource._filteredData&&this.options.type==="local"?this.grid.dataSource._filteredData:this.grid.dataSource.data(),h=e.length,f=0;f<h;f++)if(this._cmp(c,e[f][t],i)){y=f;break}for(f=y;f<h;f++)if(this._cmp(c,e[f][t],i))o++;else break}return o>0?o:r},_settingFromKey:function(n){for(var i,t=0;t<this.options.columnSettings.length;t++)this.options.columnSettings[t].columnKey===n&&(i=this.options.columnSettings[t]);return i},_renderGroupRow:function(n,t,i,r,u,f,e){var w,b,l,g=t>0?parseInt(this.options.indentation,10)*t:0,a,k,v,o,s=this.options.columnSettings,y="",c,p,h,d=!1;for(this.options.initialExpand?(v=this.css.groupByExpandCellExpanded,p=this.options.collapseTooltip):(v=this.css.groupByExpandCellCollapsed,p=this.options.expandTooltip,t>0&&(d=!0)),w=this.options.expansionIndicatorVisibility?'<td class="'+this.css.groupByExpandColumn+'" gbexpandcell="1"><span class="ui-iggrid-expandbuttoncontainer-group-by" style="margin-left:'+g+'px;"><span class="'+v+'" title="'+p+'"><\/span><\/span><\/td>':'<td class="'+this.css.groupByExpandColumn+'" gbexpandcell="1"><\/td>',c=this.options.groupedRowTextTemplate,l=this.grid.columnByKey(i),f&&f.groupLabelFormatter?r=typeof f.groupLabelFormatter=="function"?f.groupLabelFormatter(r):window[f.groupLabelFormatter](r):this.options.useGridColumnFormatter===!0&&(r=this.grid._renderCell(r,l,e," ")),c=c.replace("${key}",l.headerText),a=u?c.replace("${val}",u).replace("${count}","__sum__"):c.replace("${val}",r).replace("${count}","__sum__"),k=this.options.initialExpand?"expanded":"collapsed",o=0;o<s.length;o++)for(h=0;h<s[o].summaries.length;h++)y+=" "+s[o].columnKey+" "+(s[o].summaries[h].text||s[o].summaries[h].summaryFunction)+" "+s[o].columnKey+s[o].summaries[h].summaryFunction+"$$value$$",h!==s[o].summaries.length-1&&(y+=this.options.summarySettings.multiSummaryDelimiter);return a+=y,b='<td colspan="'+this._colspan+'">'+a+"<\/td>",n.push('<tr class="'+this.grid.css.recordClass+" "+this.css.groupedRow+'" data-grouprow="true" data-state="'+k+'" data-glevel="'+t+'"'+(d?' style="display:none;"':"")+">"+w+b+"<\/tr>"),n.length-1},_renderRecord:function(n,t,i,r,u,f){var e,o,s,h=n.length;for(this.grid._renderRecordInArray(n,t,i,r),s=n.length,e=h;e<s;e++)if(n[e].indexOf&&n[e].indexOf("<tr")!==-1){for(u||(n[e]=n[e]+' style="display: none;"'),o=e;o<s;o++){if(n[o].indexOf&&n[o].indexOf("data-grouprow")!==-1)break;if(n[o].indexOf&&n[o].indexOf(">")!==-1){f.push(o);break}}break}},_renderNewRow:function(t){var u=this.grid.element.children("tbody"),f=u.children("tr:not([data-container='true'],[data-grouprow='true'])"),o=f.length,i,e,r;for(i=n(this.grid._renderRecord(t,o)),e=f.last().find("td."+this.css.nonGroupRowEmptyCell).removeClass(this.css.groupByLastEmptyCell).length,r=0;r<e;r++)n("<td><\/td>").addClass(this.css.nonGroupRowEmptyCell).addClass(this.css.groupByLastEmptyCell).attr("data-skip",!0).prependTo(i);MSApp.execUnsafeLocalFunction(function(){u.append(i)})},_summaries:function(t,i){var r,u,e=this.options.columnSettings,f,s=t,h,o;if(t&&t.indexOf&&t.indexOf("$$value$$")===-1)return t;for(r=0;r<e.length;r++)if(f=e[r].summaries,f.length>0)for(h=this._arr(e[r].columnKey,i),u=0;u<f.length;u++)o=n.ig.calcSummaries(f[u].summaryFunction,h,f[u].customSummary),o=n.ig.formatter(o,"number",this.options.summarySettings.summaryFormat),s=s.replace(e[r].columnKey+f[u].summaryFunction+"$$value$$",o);return s},_arr:function(n,t){for(var r=[],i=0;i<t.length;i++)r.push(t[i][n]);return r},_dataEmpty:function(t,i){var u=0,r=parseInt(this.options.indentation,10),f,e;i.owner.id()===this.grid.id()&&(this.options.groupedColumns.length>0&&(u+=r*this.options.groupedColumns.length,this.options.indentation&&this.options.indentation.indexOf&&this.options.indentation.indexOf("%")>=0&&(u=this.options.indentation),f=i.owner.element.children("colgroup"),e=this.grid.headersTable().children("colgroup"),f.children("[data-registeredCol=true]").length===0&&e.children("[data-registeredCol=true]").length===0?n("<col />").prependTo(f).attr("data-skip","true").attr("data-registeredCol","true").width(u):f.children("col:nth-child(1)").width(u)),this._isgroup!==null&&this._isgroup!==undefined&&parseInt(this.grid.container().width(),10)>0&&!this.grid.options.width&&(this._isgroup===!0?this.grid.options.virtualization!==!0&&this.grid.container().width(parseInt(this.grid.container().width(),10)+r):(this.grid.container().width(parseInt(this.grid.container().width(),10)-r),r*=-1),this.grid.options.virtualization===!0&&this.grid.options.virtualizationMode==="continuous"&&(this.grid._setDisplayContainerWidth(this.grid._getDisplayContainerWidth()+r),this.grid._setVHeadersWidth(this.grid._getVHeadersWidth()+r)),this._isgroup=null),this._tbody=i.tbody,!this._isgroup&&this.groupByColumns().length>0&&this._groupAreaList(),t.stopPropagation())},_checkGroupExists:function(n){for(var i=!1,t=0;t<this.options.groupedColumns.length;t++)if(this.options.groupedColumns[t].key===n){i=!0;break}return i},_groupBy:function(t,i){var o,r,u,f,e,s=!1;if(u=i.attr("data-layout"),u)f=n("#"+i.attr("data-grid-id")).data("igGrid"),r=f.options.columns[i.data("columnIndex")].key;else{if(i.data("columnIndex")===null||i.data("columnIndex")===undefined)return;r=this.grid.options.columns[i.data("columnIndex")].key;f=this.grid}(e=this.grid.element.data("igGridFeatureChooser"),e!==undefined&&e!==null&&e._setSelectedState("GroupBy",r,!0,!1),u||(s=this._checkGroupExists(r)),s)||(o=this._trigger(this.events.groupedColumnsChanging,t,{owner:this,groupedColumns:this.options.groupedColumns,key:r,layout:u,grid:f}),o&&(this.groupByColumn(r,u),this._trigger(this.events.groupedColumnsChanged,t,{owner:this,groupedColumns:this.options.groupedColumns,key:r,layout:u,grid:f})))},groupByColumns:function(){return this._hierarchical?this._orderedGroupedCols:this.options.groupedColumns},_ensureLabelsOrder:function(n,t,i){for(var u=i?i.key:null,r=0;r<n.length;r++)n[r].layout!==u&&(n[r].layout||u)||this._exists(t,n[r])||t.push(n[r]);for(r=0;i.columnLayouts&&r<i.columnLayouts.length;r++)this._ensureLabelsOrder(n,t,i.columnLayouts[r])},_exists:function(n,t){for(var i=0;i<n.length;i++)if((n[i].layout===t.layout||!n[i].layout&&!t.layout)&&n[i].key===t.key)return!0;return!1},_findLayout:function(n,t,i){var r;if(t.key===n)i.push(t);else if(n)for(r=0;t.columnLayouts&&r<t.columnLayouts.length;r++)this._findLayout(n,t.columnLayouts[r],i);else i.push(this.grid.options)},_isGroupColumn:function(n,t,i){for(var u=i.length,r=0;r<u;r++)if(i[r].key===n&&i[r].layout===t)return!0;return!1},_allGroupedCols:function(n){for(var i,u,f,r,t=0;t<this.options.groupedColumns.length;t++){for(u=this.options.groupedColumns[t].key,f=this.options.groupedColumns[t].layout,r=!0,i=0;i<n.length;i++)if(u===n[i].key&&f===n[i].layout){this.options.groupedColumns[t]=n[i];r=!1;break}r&&n.push(this.options.groupedColumns[t])}this._addGroupsRecursive(n,this.grid.options.columnLayouts)},_addGroupsRecursive:function(n,t){var u,i,r,e,f,o;if(t)for(u=0;u<t.length;u++){for(i=0;t[u].features&&i<t[u].features.length;i++)if(t[u].features[i].name==="GroupBy"){r=t[u].features[i];break}if(r)for(o=r.persist||this.options.persist,i=0;r.columnSettings&&r.columnSettings.length&&i<r.columnSettings.length;i++)if(r.columnSettings[i].isGroupBy){if(o&&r.columnSettings[i].columnKey&&this._isGroupColumn(r.columnSettings[i].columnKey,t[u].key,n))continue;for(f=0;f<t[u].columns.length;f++)if(t[u].columns[f].key===r.columnSettings[i].columnKey||r.columnSettings[i].columnIndex===f){e=t[u].columns[f];break}n.push({key:r.columnSettings[i].columnKey||e.key,layout:t[u].key,dir:r.columnSettings[i].dir,col:e})}r=null;this._addGroupsRecursive(n,t[u].columnLayouts)}},_getColumnByLayoutKey:function(n,t){var r,i;if(this.grid._isMultiColumnGrid)for(i=0;i<t.length;i++){if(t[i].key===n){r=t[i];break}if(t[i].group!==undefined&&t[i].group!==null&&(r=this._getColumnByLayoutKey(n,t[i].group),r!==undefined&&r!==null))break}else for(i=0;i<t.length;i++)if(t[i].key===n){r=t[i];break}return r},groupByColumn:function(n,t,i){var r,l,o,u,s,f,h,c,v=this._checkGroupExists(n),a,e="asc";if(i!==undefined&&i!==null?e=i:this.options.defaultSortingDirection!==undefined&&(e=this.options.defaultSortingDirection),t||!v){if(t?(c=[],this._findLayout(t,this.grid.options,c),u=c[0],s=this._getColumnByLayoutKey(n,u.columns)):(u=this.grid.options,s=this.grid.columnByKey(n)),t){if(u.features){for(r=0;r<u.features.length;r++)if(u.features[r].name==="GroupBy"){f=u.features[r].columnSettings;f||(u.features[r].columnSettings=[],f=u.features[r].columnSettings);break}}else u.features=[],u.features.push({name:"GroupBy",columnSettings:[]}),f=u.features[0].columnSettings;for(r=0;r<f.length;r++)if(f[r].columnKey===n){if(f[r].isGroupBy)return;h=f[r];break}h?h.isGroupBy=!0:f.push({columnKey:n,isGroupBy:!0,dir:e})}l={fieldName:n,dir:e,layout:t,isGroupBy:!0};o={key:n,dir:e,layout:t,col:s};t||this.options.groupedColumns.push(o);this._orderedGroupedCols.push(o);a=this._orderedGroupedCols.slice(0);this._orderedGroupedCols=[];this._ensureLabelsOrder(a,this._orderedGroupedCols,this.grid.options);this.grid._trigger("headerExtraCellsModified",null,{owner:this});this._addSortingExpressions(this.grid.dataSource.settings.sorting.expressions,l);t||(this._isgroup=!0);this._rebind()}},_addSortingExpressions:function(n,t){for(var u=n.length,r=-1,i=0;i<u;i++)n[i].isGroupBy===!0&&(r=i);r===-1?n.unshift(t):n.splice(r+1,0,t)},ungroupByColumn:function(t,i){var r,e,s=this,o=this.grid.dataSource.settings.sorting.expressions,u,f,h,l=this._checkGroupExists(t),c;if(i||l){for(i?(h=[],this._findLayout(i,this.grid.options,h),u=h[0]):u=this.grid.options,e=this.grid.element.data("igGridFeatureChooser"),e!==undefined&&e!==null&&e._setSelectedState("GroupBy",t,!1,!1),r=0;r<u.features.length;r++)if(u.features[r].name==="GroupBy"){f=u.features[r].columnSettings;break}for(r=0;f&&r<f.length;r++)f[r].columnKey===t&&(f[r].isGroupBy=!1);if(!i)for(r=0;r<this.options.groupedColumns.length;r++)if(this.options.groupedColumns[r].key===t){n.ig.removeFromArray(this.options.groupedColumns,r);break}for(r=0;r<this._orderedGroupedCols.length;r++)if(this._orderedGroupedCols[r].key===t&&(this._orderedGroupedCols[r].layout&&this._orderedGroupedCols[r].layout===i||!this._orderedGroupedCols[r].layout&&(i===""||i===undefined))){n.ig.removeFromArray(this._orderedGroupedCols,r);break}for(r=0;r<o.length;r++)o[r].fieldName===t&&(!i||i&&i===o[r].layout)&&n.ig.removeFromArray(o,r);c=this._orderedGroupedCols.slice(0);this._orderedGroupedCols=[];this._ensureLabelsOrder(c,this._orderedGroupedCols,this.grid.options);this.grid._trigger("headerExtraCellsModified",null,{owner:this});this.grid.element.children("tbody").hide();document.documentMode===8&&(this.grid.element.hide(),this.grid.headersTable().hide());i||this.options.groupedColumns.length!==0||(this.grid.element.find("colgroup").children().first().remove(),this.grid.options.fixedHeaders&&this.grid.headersTable().find("colgroup").children().first().remove(),this.grid.options.fixedFooters&&this.grid.options.height!==null&&this.grid.footersTable().find("colgroup").children().first().remove(),this.grid.headersTable().find("thead tr").children("[data-skip]").first().remove());i||(this._isgroup=!1);this._rebind();document.documentMode===8&&(this.grid.headersTable().show(),this.grid.element.show());this.options.groupedColumns.length===0&&(window.mozInnerScreenX!==undefined&&s.grid.options.fixedFooters===!0&&(s.grid.footersTable().hide(),setTimeout(function(){s.grid.footersTable().show()},0)),this._setGroupAreaTextContent(n(".ui-iggrid-groupbyarea .ui-iggrid-groupbyareatext",this.grid.container())),this.grid.options.width!==null&&this.grid.options.width!==undefined&&this.grid._updateGridContentWidth())}},_clearSettings:function(n){for(var i,r,u,t=0;t<n.length;t++){if(n[t].features&&n[t].features.length)for(i=0;i<n[t].features.length;i++)if(n[t].features[i].name==="GroupBy"&&(r=n[t].features[i].columnSettings,r))for(u=0;u<r.length;u++)r[u].isGroupBy=!1;n[t].columnLayouts&&this._clearSettings(n[t].columnLayouts)}},ungroupAll:function(){var r=0,t,u=this.grid.options.columnLayouts,i=this.groupByColumns(),f=!1;if(i.length!==0){for(t=1;t<this.options.groupedColumns.length;t++)r+=parseInt(this.options.indentation,10);if(parseInt(this.grid.container().width(),10)>0&&!this.grid.options.width&&this.grid.container().width(parseInt(this.grid.container().width(),10)-r),this.grid.dataSource.settings.sorting.expressions=[],this.options.groupedColumns=[],this._orderedGroupedCols=[],this._hierarchical){for(t=0;t<i.length;t++)if(!i[t].layout){f=!0;break}f&&(i=[])}else i=[];u&&this._clearSettings(u);this.options.groupedColumns.length===0&&i.length===0&&(this.grid.element.find("colgroup").children().first().remove(),this.grid.options.fixedHeaders&&this.grid.headersTable().find("colgroup").each(function(){n(this).children("[data-skip]").first().remove()}),this.grid.options.fixedFooters&&this.grid.footersTable().find("colgroup").each(function(){n(this).children("[data-skip]").first().remove()}),this.grid.headersTable().find("thead tr").each(function(){n(this).children("[data-skip]").first().remove()}),this.grid.footersTable().find("tfoot tr").each(function(){n(this).children("[data-skip]").first().remove()}));this._isgroup=!1;this._rebind();this.options.groupedColumns.length===0&&this.grid.options.width!==null&&this.grid.options.width!==undefined&&this.grid._updateGridContentWidth()}},_regroup:function(){var r=n(".ui-iggrid-groupbyarea",this.grid.container()).find("ul li"),t=this,i;this.options.groupedColumns=[];this.grid.dataSource.settings.sorting.expressions=[];i=this._orderedGroupedCols.slice(0);this._orderedGroupedCols=[];r.each(function(){var u,i,r,o,f,s=[],e;if(i=n(this).attr("data-key"),r=n(this).attr("data-layout"),u=n(this).find(".ui-iggrid-asc").length>0?"asc":"desc",r){for(t._findLayout(r,t.grid.options,s),f=s[0],e=0;f&&e<f.columns.length;e++)if(f.columns[e].key===i){o=f.columns[e];break}}else o=t.grid.columnByKey(i);r?t._addSortingExpressions(t.grid.dataSource.settings.sorting.expressions,{fieldName:i,dir:u,layout:r,isGroupBy:!0}):(t.options.groupedColumns.push({key:i,dir:u,col:o}),t._addSortingExpressions(t.grid.dataSource.settings.sorting.expressions,{fieldName:i,dir:u,isGroupBy:!0}));t._orderedGroupedCols.push({key:i,dir:u,col:o,layout:r})});t._ensureLabelsOrder(i,t._orderedGroupedCols,t.grid.options);this.grid._loadingIndicator.show();this._rebindDataSource()},_rebind:function(){this._scrolltop=n(window).scrollTop();this.grid._loadingIndicator.show();this._saveSortingExpressions();this._rebindDataSource();this._groupAreaList()},_rebindDataSource:function(){this.options.type==="remote"?this.grid.dataSource.dataBind():(this.grid.dataSource.settings.sorting.expressions.length>0&&this.grid.dataSource.sort(this.grid.dataSource.settings.sorting.expressions),this.grid._renderData())},_renderPartialRecords:function(t){if(!t.attr("data-loaded")){var u,i,e="",r,f,o;if(u=parseInt(t.attr("data-row-idx"),10),u>=0&&(i=this._groups[u]),i){for(f=i.length,r=0;r<f;r++)e+=i[r];n(e).insertAfter(t);o=this.grid._getScrollContainerHeight();this._addScrollHeight=t.outerHeight()*f;this.grid._setScrollContainerHeight(o+this._addScrollHeight);t.attr("data-loaded",!0)}}},_toggleGroup:function(t){var r=n(t.target).closest("tr"),l,u,f,o,a,s=r.attr("data-glevel"),e,i=[],h=s,c;a=r.index();l=this._hierarchical?r.closest(".ui-iggrid-table").data("igGrid"):this.grid;r.attr("data-state")==="expanded"?r.attr("data-state","collapsed").find(".ui-iggrid-expandbutton").attr("title",this.options.expandTooltip).removeClass(this.css.groupByExpandCellExpanded).addClass(this.css.groupByExpandCellCollapsed):(r.attr("data-state","expanded").find(".ui-iggrid-expandbutton").attr("title",this.options.collapseTooltip).removeClass(this.css.groupByExpandCellCollapsed).addClass(this.css.groupByExpandCellExpanded),this._getTotalRowCountHandler&&this._renderPartialRecords(r));i[s]=r;l.element.children("tbody").children().each(function(t){if(t>a){var r=n(this);if(e=r.attr("data-grouprow"),h=r.attr("data-glevel"),e==="true"&&h<=s)return!1;for(o=e?h:parseInt(i[i.length-1].attr("data-glevel"),10)+1,c="",u=0;u<o;u++)if(i[u]!==undefined&&i[u].attr("data-state")!=="expanded"){c="none";break}r.css("display",c);e&&(i[parseInt(r.attr("data-glevel"),10)]=r)}});for(f in i)i.hasOwnProperty(f)&&(f=null,n.ig.removeFromArray(i,f));this.grid._adjustLastColumnWidth(!1);t.stopPropagation()},_groupAreaList:function(){var s=n(".ui-iggrid-groupbyarea",this.grid.container()),e,r=[],h,c,u=s.find("ul"),i,f=this,l,a,t,v,y,p,w,o;for(r=this.groupByColumns(),u.length>0?u.empty():u=n("<ul><\/ul>").appendTo(s).addClass("ui-iggrid-grouparealist"),y=function(t){var i=null;return i=n(t.target).is("li")?n(t.target):n(t.target).closest("li"),i=i.clone(),i.find(".ui-iggrid-groupbylabelrightedgeend").remove(),i.find(".ui-iggrid-groupbylabelrightedge").remove(),i.find(".ui-iggrid-groupbyremovebutton").remove(),i.attr("data-dragging",!0),i},p=function(t,i){if(!i.draggable.hasClass("ui-iggrid-groupedcolumnlabel")||i.draggable.attr("data-key")===n(this).attr("data-key"))return!1;n(t.target).addClass("ui-iggrid-groupbydroppableedge")},w=function(t,i){if(!i.draggable.hasClass("ui-iggrid-groupedcolumnlabel")||i.draggable.attr("data-key")===n(this).attr("data-key"))return!1;n(t.target).removeClass("ui-iggrid-groupbydroppableedge")},h=function(t,i){var r,u;if(n(this).removeClass("ui-iggrid-groupbydroppableedge"),i.draggable.hasClass("ui-iggrid-groupedcolumnlabel"))return i.draggable.attr("data-key")!==n(this).attr("data-key")?(r=n(this).closest("ul"),u=r.find("li[data-key="+i.draggable.attr("data-key")+"]").first(),u.insertAfter(this),r.find("li[data-dragging=true]").remove(),r.find("li").removeClass("ui-iggrid-groupbydroppableedge"),f._regroup(),f._groupAreaList(),t.preventDefault(),t.stopPropagation(),!1):void 0},c=function(n){return n.preventDefault(),n.stopPropagation(),!1},i=0;i<r.length;i++)a=r[i].key,e=r[i].layout,o=r[i].col.headerText,l=r[i].dir==="asc"?"ui-iggrid-asc ui-icon ui-icon-arrowthick-1-n":"ui-iggrid-desc ui-icon ui-icon-arrowthick-1-s",t=n("<li><\/li>").appendTo(u).addClass(this.css.groupedColumnLabel).css("float","left").attr("data-key",a).attr("data-layout",e||"").bind({mouseup:n.proxy(this._changeSortState,this)}).draggable({containment:"body",appendTo:"parent",distance:5,revert:"invalid",helper:y}).droppable({accept:"li",over:p,out:w,drop:h}),this.options.groupByLabelWidth!==null&&t.width(this.options.groupByLabelWidth),v=n("<span><\/span>").appendTo(t).css({float:"right"}).addClass(this.css.groupedColumnLabel).addClass(this.css.groupedColumnLabelRightEdgeEnd),v.attr("data-marker","edge"),t.prev().find("span[data-marker]").removeClass(this.css.groupedColumnLabelRightEdgeEnd).addClass(this.css.groupedColumnLabelRightEdge),e?(n("<span><\/span>").appendTo(t).text(o).addClass(this.css.groupedColumnLabelText),n("<span><\/span>").prependTo(t).text(e).addClass(this.css.groupedColumnLayoutLabel)):n("<span><\/span>").appendTo(t).text(o),n("<span><\/span>").appendTo(t).addClass(l),(typeof Modernizr!="object"||Modernizr.touch===!1)&&n("<span><\/span>").appendTo(t).addClass("ui-iggrid-groupbyremovebutton").attr("title",f.options.removeButtonTooltip).bind({mouseup:n.proxy(f._removeButtonClick,f),mousedown:c}),n.ig.util.isIE7&&t.width()>300?t.width(260):t.width(Math.ceil(t.width())+22);u.children().bind({mouseover:n.proxy(this._showRemoveButton,this),mouseout:n.proxy(this._hideRemoveButton,this)})},_changeSortState:function(t){for(var l=n(t.target).closest("li"),h=l.attr("data-key"),u=l.attr("data-layout"),c,r,f=this._orderedGroupedCols,s=this.grid.dataSource.settings.sorting.expressions,e,o,i=0;i<f.length;i++)if(f[i].key===h&&(u&&u===f[i].layout||!u)){for(f[i].dir=f[i].dir==="asc"?"desc":"asc",r=0;r<s.length;r++)if(s[r].fieldName===h&&(u&&u===s[r].layout||!u)){s[r].dir=f[i].dir;break}this._rebind();break}if(u){for(c=[],this._findLayout(u,this.grid.options,c),o=c[0],i=0;o.features&&i<o.features.length;i++)if(o.features[i].name==="GroupBy"){for(e=o.features[i].columnSettings,r=0;r<e.length;r++)if(e[r].columnKey===h){e[r].dir=e[r].dir==="asc"?"desc":"asc";break}break}this._rebind()}},_showRemoveButton:function(t){var r=n(t.target).closest("li").find(".ui-iggrid-groupbyremovebutton"),i=n(t.target).closest("li").attr("data-key"),u=n(t.target).closest("li").attr("data-layout");i&&r.attr("data-key",i).attr("data-layout",u).addClass("ui-icon ui-icon-circle-close")},_hideRemoveButton:function(t){var i=n(t.target).closest("li").find(".ui-iggrid-groupbyremovebutton");i.removeClass("ui-icon ui-icon-circle-close");n(t.target).closest("li").removeClass("ui-state-hover")},_removeButtonClick:function(t){var i=n(t.target).attr("data-key"),r,u;if(!this._isDragging)return r=this._trigger(this.events.groupedColumnsChanging,t,{owner:this,groupedColumns:this.options.groupedColumns,key:i}),r&&(u=n(t.target).attr("data-layout"),this.ungroupByColumn(i,u),this._trigger(this.events.groupedColumnsChanged,t,{owner:this,groupedColumns:this.options.groupedColumns,key:i})),t.preventDefault(),t.stopPropagation(),!1},destroy:function(){var t=n("#"+this.grid.id()+"_groupby_modalDialog");return this.grid.container().find(".ui-iggrid-groupbyarea").remove(),this.grid._initialized&&this.ungroupAll(),this._detachEvents(!0),t.igGridModalDialog("getCaptionButtonContainer"),t.remove(),n.Widget.prototype.destroy.call(this),this},_detachEvents:function(t){var r=this.grid.headersTable().find("th"),i;if(t===!0)for(i=0;i<r.length;++i)n(r[i]).data().draggable&&n(r[i]).draggable("destroy");r.unbind("mouseover",this._headerMouseOverHandler).unbind("mouseout",this._headerMouseOutHandler);n(document).undelegate("#"+this.grid.id()+"_container td[gbexpandcell=1]","mousedown",this._toggleGroupHandler);this.grid.element.unbind("iggridheaderrenderedinternal",this._headerRenderedHandler);this.grid.element.unbind("iggriddataempty",this._dataRenderingHandler);this.grid.element.unbind("iggridrowsrendering",this._rowsRenderingHandler);this.grid.element.unbind("iggridrowsrendered",this._rowsRenderedHandler);this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler);this.grid.element.unbind("iggridheadercelldragcancel",this._headerDragCancelHandler);this.grid.element.unbind("iggriduidirty",this._uiDirtyHandler);this._columnsCollectionModifiedHandler&&this.grid.element.unbind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler);t===!0&&(delete this._dataRenderingHandler,delete this._rowsRenderingHandler,delete this._rowsRenderedHandler,delete this._headerCellRenderedHandler,delete this._headerDragCancelHandler,delete this._uiDirtyHandler,delete this._columnsCollectionModifiedHandler)},_initDefaultSettings:function(){var r=[],f,i=this.options.columnSettings,t,u,e,o=this.grid._hasUnboundColumns===!0&&this.options.type==="remote";if(this._orderedColumnSettings=[],this.grid.options.columns&&this.grid.options.columns.length>0)for(t=0;t<this.grid.options.columns.length;t++)e=!0,o&&this.grid.getUnboundColumnByKey(this.grid.options.columns[t].key)!==null&&(e=!1),r[t]={columnIndex:t,columnKey:this.grid.options.columns[t].key,allowGrouping:e,summaries:[],isGroupBy:!1};if(r.length===0&&this.grid.options.autoGenerateColumns&&i.length>0)for(t=0;t<i.length;t++)i[t].columnKey&&(i[t].dir||(i[t].dir=this.options.defaultSortingDirection||"asc"),this._orderedColumnSettings.push(i[t]));else for(t=0;t<i.length;t++){for(u=0;u<r.length;u++)if(r[u].columnKey===i[t].columnKey||r[u].columnIndex===i[t].columnIndex)break;if(u!==r.length){for(f in i[t])i[t].hasOwnProperty(f)&&f!=="columnKey"&&f!=="columnIndex"&&(r[u][f]=i[t][f]);r[u].dir===undefined&&this.options.defaultSortingDirection&&(r[u].dir=this.options.defaultSortingDirection);this._orderedColumnSettings.push(r[u])}}for(this.options.columnSettings=r,t=0;this.grid._headerInitCallbacks&&t<this.grid._headerInitCallbacks.length;t++)if(this.grid._headerInitCallbacks[t].type==="GroupBy"){n.ig.removeFromArray(this.grid._headerInitCallbacks,t);break}for(t=0;this.grid._footerInitCallbacks&&t<this.grid._footerInitCallbacks.length;t++)if(this.grid._footerInitCallbacks[t].type==="GroupBy"){n.ig.removeFromArray(this.grid._footerInitCallbacks,t);break}},_renderExtraFooterCells:function(t,i,r){this.options.groupedColumns.length>0&&(r===!0?n("<td><\/td>").addClass(this.css.footerExtraCell).prependTo(t).attr("data-skip",!0):n("<td><\/td>").addClass(this.css.footerExtraCell).appendTo(t).attr("data-skip",!0))},_renderExtraHeaderCells:function(t,i,r){this.options.groupedColumns.length>0&&(r===!0?(n("<td><\/td>").prependTo(t).css("border-width",0).attr("data-skip",!0),i&&n("<col />").prependTo(i).attr("data-skip",!0).css("width",this.options.indentation)):(n("<td><\/td>").appendTo(t).css("border-width",0).attr("data-skip",!0),i&&n("<col />").appendTo(i).attr("data-skip",!0).css("width",this.options.indentation)))},_columnsCollectionModified:function(t,i){var r;i.owner.id()===this.grid.id()&&(i.tbody=this.grid.element.children("tbody"),this.options.groupedColumns.length>0&&(r=this.grid.headersTable().children("colgroup"),r.children("[data-registeredCol=true]").length===0?n("<col />").prependTo(r).attr("data-skip","true").attr("data-registeredCol","true").width(this._indent):r.children("col:nth-child(1)").width(this._indent),this.grid.headersTable().attr("id")!==this.grid.element.attr("id")&&n("<col />").prependTo(this.grid.element.children("colgroup")).attr("data-skip","true").width(this._indent),this.grid.footersTable().attr("id")!==this.grid.element.attr("id")&&n("<col />").prependTo(this.grid.footersTable().children("colgroup")).attr("data-skip","true").width(this._indent),this.grid.options.width===null?this.grid._setContainerWidth(this.grid.container()):this.grid._updateGridContentWidth()),this._dataEmpty(t,i))},_onUIDirty:function(){this.options.persist||this.ungroupAll()},_saveSortingExpressions:function(){this.options.persist&&(this.grid._savePersistenceData(this.grid.dataSource.settings.sorting.expressions,"sorting",this.grid.element[0].id),this._groupedColumns=this._orderedGroupedCols,this._optionsGC=this.options.groupedColumns)},_getSortingExpressions:function(){return this.grid._getPersistenceData("sorting",this.grid.element[0].id)},_preserveGroupBy:function(){var t=this._getSortingExpressions(),n,r,u;if(this._groupedColumns&&(this._orderedGroupedCols=this._groupedColumns),this._optionsGC&&(this.options.groupedColumns=this._optionsGC,this.grid._hasUnboundColumns&&this.options.type==="local"))for(i=0;i<this._optionsGC.length;i++)key=this._optionsGC[i].key,this._optionsGC[i].layout?(r=[],this._findLayout(this._optionsGC[i].layout,this.grid.options,r),u=r[0],n=this._getColumnByLayoutKey(key,u.columns)):n=this.grid.columnByKey(key),n&&n.unbound&&this.ungroupByColumn(key,this._optionsGC[i].layout);t&&(this.grid.dataSource.settings.sorting.expressions=t,this.grid.dataSource.settings.sorting.defaultFields=t)},_injectGrid:function(t){var i,s,f,e,r=null,o=null,u=null;if(this.grid=t,this.options.type===null&&(this.options.type=this.grid._inferOpType()),r=this.element.closest(".ui-iggrid-root"),r.is("div")&&(r=r.find("#"+r.attr("id")+"_table")),r=r.data("igGridGroupBy"),r&&(o=r._orderedGroupedCols,o&&o.length>0&&this.grid.options.key))for(u=[],i=0;i<o.length;i++)this.grid.options.key===o[i].layout&&u.push(o[i]);for(i=0;i<this.grid.options.features.length;i++)if(this.grid.options.features[i].name==="ColumnMoving"){this._movingEnabled=!0;break}if(this._headerRenderedHandler=n.proxy(this._headerRendered,this),this._dataRenderingHandler=n.proxy(this._dataEmpty,this),this._toggleGroupHandler=n.proxy(this._toggleGroup,this),this._rowsRenderingHandler=n.proxy(this._renderRecords,this),this._rowsRenderedHandler=n.proxy(this._recordsRendered,this),this._headerCellRenderedHandler=n.proxy(this._headerCellRendered,this),this._headerDragCancelHandler=n.proxy(this._headerCellDragCancel,this),this.grid.options.virtualization===!0&&this.grid.options.virtualizationMode==="continuous"&&(this._rebuildVirtualRowsHandler=n.proxy(this._rebuildVirtualRows,this),this.grid.element.bind("iggridrebuildingvirtualrows",this._rebuildVirtualRowsHandler),this.grid._getTotalRowsCount=n.proxy(this._getTotalRowsCount,this)),this._detachEvents(),this.grid.element.bind("iggridheaderrenderedinternal",this._headerRenderedHandler),this.grid.element.bind("iggriddataempty",this._dataRenderingHandler),this.grid.element.bind("iggridrowsrendering",this._rowsRenderingHandler),this.grid.element.bind("iggridrowsrendered",this._rowsRenderedHandler),this.grid.element.bind("iggridheadercellrendered",this._headerCellRenderedHandler),this.grid.element.bind("iggridheadercelldragcancel",this._headerDragCancelHandler),this._headerMouseOverHandler=function(t){n(t.currentTarget).addClass("ui-state-hover")},this._headerMouseOutHandler=function(t){n(t.currentTarget).removeClass("ui-state-hover")},this.grid.dataSource.settings.sorting.sortUrlKey=this.options.groupByUrlKey,this.grid.dataSource.settings.sorting.sortUrlAscValueKey=this.options.groupByUrlKeyAscValue,this.grid.dataSource.settings.sorting.sortUrlDescValueKey=this.options.groupByUrlKeyDescValue,this.grid.dataSource.settings.sorting.type=this.options.type?this.options.type:"remote",this.grid.dataSource.settings.encodeExtraParams=n.proxy(this._encodeSummaryParams,this),this._initDefaultSettings(),this.options.groupedColumns=[],this.grid.options.key||u!==null&&u.length!==0)for(i=0;u!==null&&i<u.length;i++)this.options.groupedColumns.push(u[i]),f={fieldName:u[i].key,dir:u[i].dir||"asc",layout:this.grid.options.key,isGroupBy:!0},this.options.type==="local"&&(f.layout=null,this.grid.dataSource.settings.sorting.defaultFields.push(f)),this._addSortingExpressions(this.grid.dataSource.settings.sorting.expressions,f);else for(i=0;i<this._orderedColumnSettings.length;i++)this._orderedColumnSettings[i].isGroupBy&&(e=this._orderedColumnSettings[i],s={key:e.columnKey,dir:e.dir||"asc",col:this.grid.columnByKey(e.columnKey)},this.options.groupedColumns.push(s),f={fieldName:e.columnKey,dir:e.dir||"asc",layout:this.grid.options.key,isGroupBy:!0},this.options.type==="local"&&(f.layout=null,this.grid.dataSource.settings.sorting.defaultFields.push(f)),this._addSortingExpressions(this.grid.dataSource.settings.sorting.expressions,f));(this.grid.element.closest(".ui-iggrid-root").length===0||this.grid.element.hasClass("ui-iggrid-root")||this.grid._isWrapped)&&n(document).delegate("#"+this.grid.id()+"_container td[gbexpandcell=1]","mousedown",this._toggleGroupHandler);this._renderExtraHeaderCellHandler=n.proxy(this._renderExtraHeaderCells,this);this._renderExtraFooterCellHandler=n.proxy(this._renderExtraFooterCells,this);this.grid._headerInitCallbacks.push({type:"GroupBy",func:this._renderExtraHeaderCellHandler});this.grid._footerInitCallbacks.push({type:"GroupBy",func:this._renderExtraFooterCellHandler});this._columnsCollectionModifiedHandler=n.proxy(this._columnsCollectionModified,this);this.grid.element.bind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler);this._uiDirtyHandler=n.proxy(this._onUIDirty,this);this.grid.element.bind("iggriduidirty",this._uiDirtyHandler);this.grid.element.igGridFeatureChooser!==undefined&&this.grid.element.igGridFeatureChooser();this._hierarchical=this.grid._isHierarchicalGrid;this.options.persist&&this._preserveGroupBy();this._allGroupedCols(this._orderedGroupedCols)},_tokenizeTBody:function(n){for(var u=0,f=[],e=0,r,t,i;;){if(r=n.indexOf("<tr",u),t=n.indexOf("<\/tr>",u),r===-1||t===-1)break;if(i=n.substr(r,t+5-r),i=i.substr(0,3)+' data-row-idx="'+e+++'" '+i.substr(3),f.push(i),t+5<n.length-1)u=t+5;else break}return f},_determineVirtualRowCount:function(t,i){var r,f,e,u,o,s,h,c;for(r=n("<div><\/div>)").appendTo("body").css({position:"absolute",top:-1800,left:-1800,visibility:"hidden"}),f=t.length>10?10:t.length,e="",u=0;u<f;u++)e+=t[u];return r.html(e),o=r.height(),s=o/f,h=i/s,c=Math.ceil(h*3),r.remove(),c},_getTotalRowsCount:function(){return this.options.groupedColumns.length>0?this._getTotalRowCountHandler?this._countGroupedRows:this._groupedRows.length:this.grid.dataSource.dataView().length},_rebuildVirtualRows:function(t,i){var y,p,w,l,o,a,s,b,g,r,k,v,d,u,ut,f,nt,ft,et,ot,st,e,ht,h,c,tt,it,rt;if(i.owner.id()===this.grid.id()){if(this.options.groupedColumns.length===0)return!0;for(y=i.scrollData,p=i.scrollResult,w=y.virtualScrollerY,l=y.deltaScroll,o="#"+this.element[0].id,a=y.visibleArea,s=n(o+" > tbody"),b=0,o="#"+this.element[0].id,g=n(o+" > tbody > tr[data-container='true']"),r=0;r<g.length;r++)b+=n(g[r]).outerHeight();if(b>0&&(k=this.grid._getScrollContainerHeight(),this.grid._setScrollContainerHeight(k-b)),l>0&&p.action==="SA_NEED_NEXT_PAGE"){for(v=this.grid._getFirstVisibleTR(a),d=Math.abs(v[0].offsetTop-a.top),u=parseInt(v.attr("data-row-idx"),0),ut=u,f=parseInt(this._virtualRowCount,0)+u-1,nt=!1,f>this._groupedRows.length-1&&(f=this._groupedRows.length-1,u=f-this._virtualRowCount+1,nt=!0),s.empty(),e="",r=u;r<=f;r++)e+=this._groupedRows[r];s.html(e);nt&&(ft=n(o+" > tbody > tr[data-row-idx='"+ut+"']"),d=ft[0].offsetTop+d);this.grid._setDisplayContainerScrollTop(d+l)}if(l<0&&p.action==="SA_NEED_PREV_PAGE"){for(et=this.grid._getLastVisibleTR(a),ot=parseInt(et.attr("data-row-idx"),0),v=this.grid._getFirstVisibleTR(a),st=parseInt(v.attr("data-row-idx"),0),f=ot,u=f-parseInt(this._virtualRowCount,0)+1,u<0&&(u=0,f=u+this._virtualRowCount-1),s.empty(),e="",r=u;r<=f;r++)e+=this._groupedRows[r];s.html(e);o="#"+this.element[0].id;ht=n(o+' > tbody > tr[data-row-idx="'+st+'"]');this.grid._setDisplayContainerScrollTop(ht[0].offsetTop+l)}if(p.action==="SA_NEED_SOME_PAGE"){for(h=Math.floor(w/this._avgRowHeight),c=h+this._virtualRowCount-1,h<0&&(h=0,c=h+this._virtualRowCount-1),c>=this._groupedRows.length-1&&(c=this._groupedRows.length-1,h=c-this._virtualRowCount+1),s.empty(),e="",r=h;r<=c;r++)e+=this._groupedRows[r];s.html(e);tt=0;rt=this.grid._getScrollContainerHeight()-this.grid._getDisplayContainerHeight();rt-3<=w&&w<=rt+3&&(tt=1e4);this.grid._setDisplayContainerScrollTop(tt)}return this._addScrollHeight&&(k=this.grid._getScrollContainerHeight(),this.grid._setScrollContainerHeight(k-this._addScrollHeight),this.grid.element.height("")),it=this.grid._calculateAvgRowHeight(),it>this._avgRowHeight&&(this._avgRowHeight=it),!1}}});n.extend(n.ui.igGridGroupBy,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridHiding",{options:{columnSettings:[{columnKey:null,columnIndex:null,allowHiding:!0,hidden:!1}],hiddenColumnIndicatorHeaderWidth:7,columnChooserContainment:"owner",columnChooserWidth:350,columnChooserHeight:"",dropDownAnimationDuration:500,columnChooserCaptionText:n.ig.GridHiding.locale.columnChooserCaptionLabel,columnChooserDisplayText:n.ig.GridHiding.locale.columnChooserDisplayText,hiddenColumnIndicatorTooltipText:n.ig.GridHiding.locale.hiddenColumnIndicatorTooltipText,columnHideText:n.ig.GridHiding.locale.columnHideText,columnChooserShowText:n.ig.GridHiding.locale.columnChooserShowText,columnChooserHideText:n.ig.GridHiding.locale.columnChooserHideText,columnChooserHideOnClick:!1,columnChooserResetButtonLabel:n.ig.GridHiding.locale.columnChooserResetButtonLabel,columnChooserAnimationDuration:200,columnChooserButtonApplyText:n.ig.GridHiding.locale.columnChooserButtonApplyText,columnChooserButtonCancelText:n.ig.GridHiding.locale.columnChooserButtonCancelText},css:{columnChooser:"ui-dialog ui-draggable ui-resizable ui-iggrid-dialog ui-widget ui-widget-content ui-corner-all",columnChooserHeaderCaption:"ui-dialog-titlebar ui-iggrid-columnchooser-caption ui-widget-header ui-corner-top ui-helper-reset ui-helper-clearfix",columnChooserHeaderCaptionTitle:"ui-dialog-title ui-iggrid-columnchooser-caption-title",columnChooserContent:"ui-dialog-content ui-iggrid-columnchooser-content",hidingHeaderIndicator:"ui-iggrid-hiding-indicator",columnChooserHandleBar:"ui-iggrid-columnchooser-handlebar",hiddenColumnIndicator:"ui-iggrid-hiding-hiddencolumnindicator",hiddenColumnIndicatorSelected:"ui-iggrid-hiding-indicator-selected",hiddenColumnIndicatorMouseOver:"ui-iggrid-hiding-indicator-mouseover",hiddenColumnsDropDown:"ui-iggrid-hiding-dropdown-dialog ui-widget ui-widget-content ui-corner-all",hiddenColumnsDropDownList:"ui-iggrid-hiding-dropdown-list ui-menu",hiddenColumnsDropDownItem:"ui-iggrid-hiding-dropdown-ddlistitemicons ui-state-default",hiddenColumnsDropDownItemHover:"ui-iggrid-hiding-dropdown-listitem-hover ui-state-active ui-state-hover",hiddenColumnsDropDownItemText:"ui-iggrid-hiding-dropdown-ddlistitemtext",columnChooserListItems:"ui-iggrid-columnchooser-listitems",columnChooserItem:"ui-iggrid-columnchooser-item ui-widget-content",columnChooserItemHidden:"ui-iggrid-columnchooser-itemhidden",columnChooserHideButton:"ui-iggrid-columnchooser-hidebutton",columnChooserItemText:"ui-iggrid-dialog-text",featureChooserHidingIcon:"ui-icon ui-iggrid-icon-hide",featureChooserModalDialogIcon:"ui-icon ui-iggrid-icon-column-chooser"},events:{columnHiding:"columnHiding",columnHidingRefused:"columnHidingRefused",columnShowingRefused:"columnShowingRefused",multiColumnHiding:"multiColumnHiding",columnHidden:"columnHidden",columnShowing:"columnShowing",columnShown:"columnShown",columnChooserOpening:"columnChooserOpening",columnChooserOpened:"columnChooserOpened",columnChooserMoving:"columnChooserMoving",columnChooserClosing:"columnChooserClosing",columnChooserClosed:"columnChooserClosed",columnChooserContentsRendering:"columnChooserContentsRendering",columnChooserContentsRendered:"columnChooserContentsRendered",columnChooserButtonApplyClick:"columnChooserButtonApplyClick",columnChooserButtonResetClick:"columnChooserButtonResetClick"},renderInFeatureChooser:!0,_headerHashDataKey:"igGrid-hiding-hash",_createWidget:function(){this.options.columnSettings=[];n.Widget.prototype._createWidget.apply(this,arguments)},_setOption:function(t){throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);},destroy:function(){var t,i=this,r=n("#"+this.grid.id()+"_hiding_modalDialog");return this.grid.element.unbind(".hiding"),this.grid.headersTable().find("thead > tr > th").not("[data-skip=true]").each(function(){var t=n(this);t.find("a[data-hiding-indicator=true]").remove();i._clearHiddenColumnIndicator(!0,t);i._clearHiddenColumnIndicator(!1,t)}),n("div[data-hiding-inddropdown='"+this.grid.id()+"']").remove(),this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler),this.grid.element.unbind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler),this.grid.element.unbind("iggriduidirty",this._uiDirtyHandler),this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler),this.grid.element.unbind("iggrid_columnsmoved",this._columnsMovedHandler),r.igGridModalDialog("getCaptionButtonContainer"),r.remove(),t=this.grid.element.data("igGridFeatureChooser"),t&&this.renderInFeatureChooser&&(t._removeFeature("Hiding"),t._removeFeature("ColumnChooser")),n.Widget.prototype.destroy.call(this),this},showColumnChooser:function(){this._openColumnChooser(!1)},hideColumnChooser:function(){this._closeColumnChooser(!1)},showColumn:function(n,t){var r,i,u,f=[];if(t===!0){if(i=this.grid._getMultiHeaderColumnById(n),i===null)return;for(u=i.children.length,r=0;r<u;r++)f.push(i.children[r].key);this.showMultiColumns(f);i.hidden=!1;i.colspan=u}else this.grid.showColumn(n)},hideColumn:function(n,t){var r,i,u,f=[];if(t===!0){if(i=this.grid._getMultiHeaderColumnById(n),i===null)return;for(u=i.children.length,r=0;r<u;r++)f.push(i.children[r].key);this.hideMultiColumns(f);i.hidden=!0;i.colspan=0}else this.grid.hideColumn(n)},hideMultiColumns:function(n){for(var i=n.length,t=0;t<i;t++)this.grid.hideColumn(n[t])},showMultiColumns:function(n){for(var i=n.length,t=0;t<i;t++)this.grid.showColumn(n[t])},_showColumnFromUI:function(n){var t,i,r,u=this;return(typeof n=="number"?i=n:t=n,r=this._trigger(this.events.columnShowing,null,{owner:this,columnKey:t,columnIndex:i}),!this.grid._isShowingAllowed([n]))?(this._trigger(this.events.columnShowingRefused,null,{owner:this,columnKeys:[t]}),!1):(r&&(this.grid.showColumn(n),setTimeout(function(){u._trigger(u.events.columnShown,null,{owner:u,columnKey:t,columnIndex:i})},50)),r)},_setHiddenMultipleColumns:function(n,t){var i=this,r,u;i.grid._loadingIndicator.show();setTimeout(function(){for(var f,o,e=0;e<n.length;e++)f=n[e],typeof f=="number"?u=f:r=f,o=i._trigger(i.events.columnShowing,null,{owner:i,columnKey:r,columnIndex:u}),o&&i.grid._setHidden(f,!1),i._trigger(i.events.columnShown,null,{owner:i,columnKey:r,columnIndex:u});for(e=0;e<t.length;e++){if(f=t[e],i.grid._visibleColumns().length===1)break;typeof f=="number"?u=f:r=f;o=i._trigger(i.events.columnHiding,null,{owner:i,columnKey:r,columnIndex:u});o&&(i.grid._setHidden(f,!0),i._trigger(i.events.columnHidden,null,{owner:i,columnKey:r,columnIndex:u}))}i.grid._loadingIndicator.hide()},0)},_hideMultiColumnFromUI:function(n){var t,i=this,u,r,f,o,s,h=0,e=[],c=[];if(i.grid._visibleColumns().length===1)return!1;if(u=this.grid._getMultiHeaderColumnById(n),u!==null){for(r=u.children,o=r.length,t=0;t<o;t++)r[t].hidden||h++;if(i.grid._visibleColumns().length-h<1)return!1;for(t=0;t<o;t++)e.push(r[t].key);if(!this.grid._isHidingAllowed(e))return this._trigger(this.events.columnHidingRefused,null,{owner:this,columnKeys:e}),!1;s=this._trigger(this.events.multiColumnHiding,null,{owner:this,columnKeys:e});s&&(i.grid._loadingIndicator.show(),setTimeout(function(){for(t=0;t<o;t++)f=e[t],s=i._trigger(i.events.columnHiding,null,{owner:i,columnKey:f,columnIndex:undefined}),s&&r[t].allowHiding&&!r[t].hidden&&(i.grid._setHidden(f,!0),c.push(f),i._trigger(i.events.columnHidden,null,{owner:i,columnKey:f,columnIndex:undefined}));u.hidden=!0;u.colspan=0;i.grid._loadingIndicator.hide();i._trigger(i.events.multiColumnHidden,null,{owner:i,columnKeys:c})},0))}},_columnFixed:function(){this._renderHiddenColumnIndicators()},_hideColumnFromUI:function(t){var i=this,r,u,f;if(i.grid._visibleColumns().length===1)return!1;if(typeof t=="number"?u=t:r=t,!this.grid._isHidingAllowed([t])){this._trigger(this.events.columnHidingRefused,null,{owner:this,columnKeys:[r]});return}return f=this._trigger(this.events.columnHiding,null,{owner:this,columnKey:r,columnIndex:u}),f&&(!i.grid._allColumnWidthsInPixels&&n.ig.util.isFF&&i.grid._refreshUI(),i.grid.hideColumn(t),setTimeout(function(){i._trigger(i.events.columnHidden,null,{owner:i,columnKey:r,columnIndex:u})},50)),f},_headerCellRendered:function(t,i){if(i.owner.element.attr("id")===this.grid.element.attr("id")&&i.isMultiColumnHeader!==!0){var r,u,f=this.grid.element.data("igGridFeatureChooser");if(!this._featureChooserInitialized)for(this._featureChooserInitialized=!0,this._hidingIconColumnKeys=[],r=0;r<this.grid.options.columns.length;r++)u=this.grid.options.columns[r],this._getColumnSettingsByIndex(r).allowHiding&&(f._shouldRenderInFeatureChooser(u.key)===!0?(f._renderInFeatureChooser(u.key,{name:"Hiding",text:this.options.columnHideText,iconClass:this.css.featureChooserHidingIcon,isSelectable:!1,isSelected:!1,method:n.proxy(this._featureChooserHide,this),updateOnClickAll:!1,groupName:"click",groupOrder:2,order:2}),f._renderInFeatureChooser(u.key,{name:"ColumnChooser",text:this.options.columnChooserDisplayText,iconClass:this.css.featureChooserModalDialogIcon,method:n.proxy(this._featureChooserColumnChooser,this),groupName:"modaldialog",groupOrder:3,order:1})):this._hidingIconColumnKeys.push(u.key))}},_featureChooserHide:function(n,t){this._closeColumnChooser(!0);this._hideColumnFromUI(t)},_featureChooserColumnChooser:function(){this._openColumnChooser(!0)},_columnMap:function(){var t=this;return n.map(this.grid.options.columns,function(n,i){return{columnKey:n.key,enabled:t._getColumnSettingsByIndex(i).allowHiding}})},_renderHidingColumnIcon:function(t,i,r){var u=this,f=t.find(".ui-iggrid-indicatorcontainer");f.length===0&&(f=n("<div><\/div>").addClass("ui-iggrid-indicatorcontainer").appendTo(t));n("<span>&laquo;<\/span>").addClass(this.css.hidingHeaderIndicator).appendTo(f).wrap(n("<a><\/a>").css("display","inline").attr("data-hiding-indicator","true").attr("href","#").attr("title",n.ig.GridHiding.locale.hideColumnIconTooltip)).bind("click.hiding",function(f){n(this).parent().mouseout();u._closeColumnChooser(!0);r?u._hideMultiColumnFromUI(t.attr("data-mch-id")):u._hideColumnFromUI(i);f.preventDefault();f.stopPropagation()});this.grid._enableHeaderCellFeature(t)},_populateMultiColumnHeadersLevel0:function(){for(var u,e=this,r=this.grid._oldCols,o=r.length,s=n(this.grid._headerCells),i=[],f,h=this.grid._visibleColumns(),t=0;t<o;t++)if(r[t].level===0)i.push(r[t]);else for(u=0;u<r[t].children.length;u++)i.push(r[t].children[u]);f=i.length;s.each(function(r){var s=n(this),u=h[r],o;if(u===null||u===undefined)return!0;if(o=e._getColumnSettingsByKey(u.key),o.allowHiding){for(t=0;t<i.length;t++)if(i[t].key===u.key)break;t<f&&(i[t].allowHiding=!0,i[t].visibleIndex=r,i[t].settings=o);s.col=i[t]}})},_renderHidingIcons:function(){var r,t=this,i;t.grid._isMultiColumnGrid===!0?(r=this.grid.headersTable().find("> thead > tr th").not("[data-skip=true]").not("[data-isheadercell=true]"),this._populateMultiColumnHeadersLevel0(),r.each(function(){var i=n(this);t._renderHidingColumnIcon(i,null,!0)}),i=n(this.grid._headerCells)):i=this.grid.headersTable().find("thead > tr > th").not("[data-skip=true]");i.find("a[data-hiding-indicator=true]").remove();i.each(function(i){var f=n(this),e=t.grid._visibleColumns(),u,r;u=t.grid.options.virtualizationMode==="fixed"&&(t.grid.options.virtualization===!0||t.grid.options.columnVirtualization===!0)?(t.grid._startColIndex||0)+i:i;r=e[u].key;n.inArray(r,t._hidingIconColumnKeys)!==-1&&t._renderHidingColumnIcon(f,r)})},_headerRendered:function(n,t){t.owner.element.attr("id")===this.grid.element.attr("id")&&(this._renderHidingIcons(),this._renderColumnChooser())},_columnChooserButtonOKClick:function(){var r=this,f=r._columnsToHide,t=[],i=[],u,e=n("#"+this.grid.id()+"_hiding_modalDialog");if(n.each(this.grid.options.columns,function(n,u){var e,o,s;(e=r._getColumnSettingsByIndex(n),e.allowHiding)&&(o=e.columnKey||e.columnIndex||u.key,s=f[o],s!==null&&s!==undefined&&(s?u.hidden===!1&&t.push(o):u.hidden===!0&&i.push(o)))}),u=this._trigger(this.events.columnChooserButtonApplyClick,null,{columnChooserElement:e,owner:this,columnsToHide:t,columnsToShow:i}),!this.grid._isHidingAllowed(t)){this._trigger(this.events.columnHidingRefused,null,{owner:this,columnKeys:t});return}if(!this.grid._isShowingAllowed(i)){this._trigger(this.events.columnShowingRefused,null,{owner:this,columnKeys:i});return}u&&(r._setHiddenMultipleColumns(i,t),n("#"+this.grid.id()+"_hiding_modalDialog").igGridModalDialog("closeModalDialog",!0))},isToRenderButtonReset:function(){var t=this,r=t._columnsToHide,i=!1;return n.each(this.grid.options.columns,function(n,u){var f,o,e,s;return(f=t._getColumnSettingsByIndex(n),f&&!f.allowHiding)?!0:(o=f.columnKey||f.columnIndex||u.key,e=r[o],s=u._initiallyHidden===!0?!0:f.hidden,e!==null&&e!==undefined&&e!==s?(i=!0,!1):void 0)}),i},_isVisibleColumnsNotAllowHiding:function(){var i=this,t=!1;return n.each(this.grid.options.columns,function(n,r){var u;return u=i._getColumnSettingsByIndex(n),u&&!u.allowHiding&&!r.hidden?(t=!0,!1):void 0}),t},_columnChooserOpening:function(){var f,i,e,t=this,o=this.options,u=this.css,s=0,r=n("#"+this.grid.id()+"_hiding_modalDialog");return i=this._trigger(this.events.columnChooserOpening,null,{columnChooserElement:r,owner:this}),i&&(i=this._trigger(this.events.columnChooserContentsRendering,null,{columnChooserElement:r,owner:this}),i&&(this.removeColumnChooserResetButton(),e=r.igGridModalDialog("getContent"),e.empty(),f=n("<ul><\/ul>").addClass(u.columnChooserListItems).appendTo(e),this._columnsToHide={},n.each(this.grid.options.columns,function(r,e){var a,h,c,l;(a=t._getColumnSettingsByIndex(r),a.allowHiding)&&(s++,h=a.columnKey||a.columnIndex||e.key,l=n("<li><\/li>").attr("id",t.grid.element[0].id+"_"+h+"_columnchooser_li").addClass(u.columnChooserItem).append('<span class="'+u.columnChooserHideButton+'"><a href="#"><\/a><\/span><span class="'+u.columnChooserItemText+'">'+e.headerText+"<\/span>"),l.appendTo(f),c=l.find("a:first"),o.columnChooserHideOnClick===!0?l.bind("click.hiding",function(n){var r;return c.attr("ishidden")==="1"?(i=t._showColumnFromUI(h),r=!1):(i=t._hideColumnFromUI(h),r=!0),i&&t._renderColumnChooserHideButton(c,r),n.preventDefault(),n.stopPropagation(),!1}):l.bind("click.hiding",function(n){var i,r,u;if(i=c.attr("ishidden")==="1"?!1:!0,i&&t.grid.hasFixedColumns()){u=[];for(r in t._columnsToHide)t._columnsToHide.hasOwnProperty(r)&&t._columnsToHide[r]&&u.push(r);if(u.push(h),!t.grid._isHidingAllowed(u))return}if(!i||t._isVisibleColumnsNotAllowHiding()||f.find("a[ishidden=1]").length!==s-1)return t._columnsToHide[h]=i,t._renderColumnChooserHideButton(c,i),t.isToRenderButtonReset()?t.renderColumnChooserResetButton():t.removeColumnChooserResetButton(),n.preventDefault(),n.stopPropagation(),!1}),t._columnsToHide[h]=e.hidden,t._renderColumnChooserHideButton(c,e.hidden))}),this._trigger(this.events.columnChooserContentsRendered,null,{columnChooserElement:r,owner:this}),o.columnChooserHideOnClick===!1&&t.isToRenderButtonReset()&&t.renderColumnChooserResetButton()),this._trigger(this.events.columnChooserOpened,null,{columnChooserElement:r,owner:this})),!0},resetHidingColumnChooser:function(){var t=this;n.each(this.grid.options.columns,function(i,r){var u,e,f;if((u=t._getColumnSettingsByIndex(i),!u)||!u.allowHiding)return!0;f=u.hidden;r._initiallyHidden===!0&&(f=!0);e=u.columnKey||u.columnIndex||r.key;t._columnsToHide[e]=f;t._renderColumnChooserHideButton(n("#"+t.grid.id()+"_"+e+"_columnchooser_li a:first"),f)});t.removeColumnChooserResetButton()},renderColumnChooserResetButton:function(){var e=this.options,t=this,i=this.grid.id()+"_hiding_modalDialog_reset_button",r=n("#"+this.grid.id()+"_hiding_modalDialog"),u,f;n("#"+i).length===0&&(u=r.igGridModalDialog("getCaptionButtonContainer"),f=n("<button><\/button>").attr("id",i).appendTo(u),f.igButton({labelText:e.columnChooserResetButtonLabel,click:function(n){t._trigger(t.events.columnChooserButtonResetClick,n,{columnChooserElement:r,owner:t});t.resetHidingColumnChooser()}}))},removeColumnChooserResetButton:function(){n("#"+this.grid.id()+"_hiding_modalDialog_reset_button").remove()},_renderColumnChooserHideButton:function(n,t){var i,r,u=this.css,f=n.closest("li");t===!1?(r="0",i=this.options.columnChooserHideText,f.removeClass(u.columnChooserItemHidden)):(r="1",i=this.options.columnChooserShowText,f.addClass(u.columnChooserItemHidden));n.attr("ishidden",r).text(i)},_renderColumnChooser:function(){n("#"+this.grid.id()+"_hiding_modalDialog").remove();var f,t=this,i=this.options,e,o=this.grid._rootContainer(),r,u;this.options.columnChooserContainment!=="owner"?(o=n("body"),u="body"):u=this.grid._rootContainer();r=n("<div><\/div>").appendTo(u).attr("id",this.grid.id()+"_hiding_modalDialog");r.igGridModalDialog({modalDialogWidth:i.columnChooserWidth,modalDialogHeight:i.columnChooserHeight,modalDialogCaptionText:i.columnChooserCaptionText,buttonApplyText:i.columnChooserButtonApplyText,buttonCancelText:i.columnChooserButtonCancelText,containment:o,gridContainer:this.grid.container(),renderFooterButtons:!i.columnChooserHideOnClick,animationDuration:i.columnChooserAnimationDuration,modalDialogOpening:function(n,i){t._columnChooserOpening(n,i)},modalDialogMoving:function(i,r){t._trigger(t.events.columnChooserMoving,null,{columnChooserElement:n(i.target),owner:t,originalPosition:r.originalPosition,position:r.position})},modalDialogClosing:function(){return t._trigger(t.events.columnChooserClosing,null,{columnChooserElement:r,owner:t})},modalDialogClosed:function(){t._trigger(t.events.columnChooserClosed,null,{columnChooserElement:r,owner:t})}});i.columnChooserHideOnClick?(e=r.igGridModalDialog("getCaptionButtonContainer"),n("<span><\/span>").bind("click.hiding",function(n){return r.igGridModalDialog("closeModalDialog",!0),n.preventDefault(),n.stopPropagation(),!1}).addClass("ui-icon ui-icon-closethick").appendTo(n("<a><\/a>").appendTo(e).attr("title",n.ig.GridHiding.locale.columnChooserCloseButtonTooltip).attr("href","#").attr("role","button").addClass("ui-dialog-titlebar-close ui-corner-all"))):(f=n("#"+this.grid.id()+"_hiding_modalDialog_footer_buttonok"),f.bind("igbuttonclick",function(n){t._columnChooserButtonOKClick(n);n.preventDefault()}))},_hidingFinished:function(){(this.options.virtualization!==!0||this.options.virtualizationMode!=="fixed")&&this.options.columnVirtualization!==!0&&this._renderHiddenColumnIndicators()},_virtualHorizontalScroll:function(){this._renderHiddenColumnIndicators();this._renderHidingIcons()},_getIndicators:function(n,t){for(var u,f=this.grid.options.columns,o=f.length,r=0,e,i=0;i<o;i++)(u=f[i],e=u.fixed===!0,e===t)&&(u.hidden?this._getColumnSettingsByIndex(i).allowHiding&&(n[r]===undefined&&(n[r]=[]),n[r].push(u.key)):r++);return r},_renderHiddenColumnIndicators:function(){var r=this,t,o=0,i=[],s,u,f,h=this.grid.hasFixedColumns(),e=[];o=this._getIndicators(i,!1);h&&this._getIndicators(e,!0);s=this.grid.container().children("div[data-hiding-inddropdown='"+r.grid.id()+"']");setTimeout(function(){s.remove()},this.options.dropDownAnimationDuration*2+1);o===0?this.grid.headersTable().find("thead > tr > th[data-hiddenreplacement=true]").each(function(){var t=r._renderHiddenColumnIndicator(!0,n(this));r._bindDropDownToIndicator(t.find("span"),i[0])}):(t=this.grid._isMultiColumnGrid?n(this.grid._headerCells):this.grid.headersTable().find("thead > tr > th").not("[data-skip=true]"),h?this.grid._isMultiColumnGrid?(u=n(),f=n(),n.each(this.grid._headerCells,function(n,t){r.grid._isFixedElement(t)?u.push(t):f.push(t)}),this._renderHiddenColumnIndicatorsHelper(f,i,!1),this._renderHiddenColumnIndicatorsHelper(u,e,!0)):(this._renderHiddenColumnIndicatorsHelper(t,i,!1),t=this.grid.fixedHeadersTable().find("thead > tr > th").not("[data-skip=true]"),this._renderHiddenColumnIndicatorsHelper(t,e,!0)):this._renderHiddenColumnIndicatorsHelper(t,i))},_renderHiddenColumnIndicatorsHelper:function(t,i,r){var u=this;t.each(function(t){var e=n(this),o,f;f=u.grid.options.virtualization===!0&&u.grid.options.virtualizationMode==="fixed"||u.grid.options.columnVirtualization===!0?u.grid._startColIndex+t:t;u._clearHiddenColumnIndicator(!0,e);u._clearHiddenColumnIndicator(!1,e);i[f]!==undefined&&(o=u._renderHiddenColumnIndicator(!0,e),u._bindDropDownToIndicator(o.find("span"),i[f]));f===u.grid._visibleColumns(r).length-1&&i[f+1]!==undefined&&(o=u._renderHiddenColumnIndicator(!1,e),u._bindDropDownToIndicator(o.find("span"),i[f+1]))})},_renderHiddenColumnIndicator:function(t,i){var r,u,e,o,s,h,f,l,c,a;return t?(r="padding-left",u="margin-left",o="left",s="<div data-hiddencolindicator='left' />",h="<span data-nonpaddedindicator='left'><\/span>",e="[data-nonpaddedindicator=left]"):(r="padding-right",u="margin-right",o="right",s="<div data-hiddencolindicator='right' />",h="<span data-nonpaddedindicator='right'><\/span>",e="[data-nonpaddedindicator=right]"),f=parseInt(i.css(r),10)+this.options.hiddenColumnIndicatorHeaderWidth,i.css(r,f+"px"),i.find(e).css(u,-f+"px"),l=n(s).css("position","relative").css("width","100%").css("height","0px").css("top","0px").css("left","0px").prependTo(i),c=n("<a href='#' />").attr("title",this.options.hiddenColumnIndicatorTooltipText).prependTo(l),a=n(h).attr("title",this.options.hiddenColumnIndicatorTooltipText).attr("data-skip-event","true").css("position","absolute").css(u,-f+"px").css(o,"0px").css("width",this.options.hiddenColumnIndicatorHeaderWidth+"px").addClass(this.css.hiddenColumnIndicator).appendTo(c),n.ig.util.isIE7&&a.css({top:-parseInt(i.css("padding-top"),10),height:i.innerHeight()}),c},_clearHiddenColumnIndicator:function(n,t){var i,f,r,u;n?(i="padding-left",r="div[data-hiddencolindicator=left]"):(i="padding-right",r="div[data-hiddencolindicator=right]");u=t.find(r);u.length!==0&&(u.remove(),f=parseInt(t.css(i),10),t.css(i,f-this.options.hiddenColumnIndicatorHeaderWidth+"px"))},_bindDropDownToIndicator:function(n,t){var i=this,r=this._renderDropDown(n,t);r.find("ul").bind({blur:function(){i._toggleDropDown(n,r,!0)}});n.parent().bind({mousedown:function(t){i._toggleDropDown(n,r,!1);t.preventDefault();t.stopPropagation()},mouseover:function(){n.attr("data-indicator-selected")!=="true"&&n.addClass(i.css.hiddenColumnIndicatorMouseOver)},mouseout:function(){n.removeClass(i.css.hiddenColumnIndicatorMouseOver)},mouseup:function(n){n.preventDefault();n.stopPropagation()},click:function(n){n.preventDefault();n.stopPropagation()}})},_renderDropDown:function(t,i){var r=this,u,f;return u=n("<div data-hiding-inddropdown='"+this.grid.id()+"'><\/div>").css("position","absolute").css("display","none").addClass(this.css.hiddenColumnsDropDown).appendTo(this.grid._rootContainer()),f=n('<ul tabindex="0"><\/ul>').addClass(this.css.hiddenColumnsDropDownList).appendTo(u),n.each(i,function(i,e){n("<li><\/li>").addClass(r.css.hiddenColumnsDropDownItem).bind({mouseover:function(t){n(t.currentTarget).addClass(r.css.hiddenColumnsDropDownItemHover)},mouseout:function(t){n(t.currentTarget).removeClass(r.css.hiddenColumnsDropDownItemHover)},mousedown:function(){r._closeColumnChooser(!0);r._showColumnFromUI(e);r._toggleDropDown(t,u,!0)}}).append(n("<span><\/span>").addClass(r.css.hiddenColumnsDropDownItemText).text(r.grid.columnByKey(e).headerText)).appendTo(f)}),n("<a><\/a>").appendTo(n("<li><\/li>").appendTo(f)).igButton({labelText:this.options.columnChooserDisplayText,mousedown:function(i){i.target&&setTimeout(function(){n(i.target).removeClass("ui-state-active")},0);r._openColumnChooser(!0);r._toggleDropDown(t,u,!0)}}),u},_toggleDropDown:function(t,i,r){var f,o,s,e,u,h=i.is(":visible")===!0,c=this;i.data("isAnimating")!==!0&&(h!==!1||r!==!0)&&(h||(f=t.closest("th"),s=t.closest("div").attr("data-hiddencolindicator")==="right",e=n.ig.util.offset(f),s?(u=e.left+f.outerWidth()-i.outerWidth(),u=Math.max(0,u)):u=e.left,o=n.ig.util.getRelativeOffset(i),i.css("top",e.top+f.outerHeight()-o.top),i.css("left",u-o.left)),i.data("isAnimating",!0),i.toggle(this.options.dropDownAnimationDuration,function(){i.is(":visible")===!0?(i.find("ul").focus(),t.addClass(c.css.hiddenColumnIndicatorSelected),t.attr("data-indicator-selected","true")):(t.removeClass(c.css.hiddenColumnIndicatorSelected),t.removeAttr("data-indicator-selected"));i.data("isAnimating",!1)}))},_openColumnChooser:function(){var t=n("#"+this.grid.id()+"_hiding_modalDialog");t.igGridModalDialog("openModalDialog")},_closeColumnChooser:function(){var t=n("#"+this.grid.id()+"_hiding_modalDialog");t.igGridModalDialog("closeModalDialog")},_columnChooserMove:function(n,t){this._trigger(this.events.columnChooserMoving,null,{columnChooserElement:n.target,owner:this,originalPosition:t.originalPosition,position:t.position})},_getColumnSettings:function(n,t){for(var r,i=0;i<this.options.columnSettings.length;i++){if(this.options.columnSettings[i].columnKey===t)return this._mergeColumnSettingsDefaults(this.options.columnSettings[i]);this.options.columnSettings[i].columnIndex===n&&(r=this.options.columnSettings[i])}return this._mergeColumnSettingsDefaults(r)},_getColumnSettingsByIndex:function(n){var t=this.grid.options.columns[n].key;return this._getColumnSettings(n,t)},_getColumnSettingsByKey:function(n){for(var t=0;t<this.grid.options.columns.length;t++)if(this.grid.options.columns[t].key===n)return this._getColumnSettings(t,n)},_mergeColumnSettingsDefaults:function(t){var r={allowHiding:!0,hidden:!1},u=n.extend({},t);for(var i in r)r.hasOwnProperty(i)&&typeof u[i]!="boolean"&&(u[i]=r[i]);return u},_columnsMoved:function(){var t=this;this.grid.headersTable().find("thead > tr > th").not("[data-skip=true]").each(function(){var i=n(this);t._clearHiddenColumnIndicator(!0,i);t._clearHiddenColumnIndicator(!1,i)});this._renderHiddenColumnIndicators()},_injectGrid:function(t){var u,f,r,i;if(this.grid=t,this._headerCellRenderedHandler!==null&&this._headerCellRenderedHandler!==undefined&&this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler),this._headerRenderedHandler!==null&&this._headerRenderedHandler!==undefined&&this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler),this._virtualHorizontalScrollHandler!==null&&this._virtualHorizontalScrollHandler!==undefined&&this.grid.element.unbind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler),this._headerRenderedHandler=n.proxy(this._headerRendered,this),this._headerCellRenderedHandler=n.proxy(this._headerCellRendered,this),this._virtualHorizontalScrollHandler=n.proxy(this._virtualHorizontalScroll,this),this._columnsMovedHandler=n.proxy(this._columnsMoved,this),this.grid.element.bind("iggridheadercellrendered",this._headerCellRenderedHandler),this.grid.element.bind("iggridheaderrendered",this._headerRenderedHandler),this.grid.element.bind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler),this.grid.element.bind("iggrid_columnsmoved",this._columnsMovedHandler),this.grid.element.igGridFeatureChooser!==undefined)this.grid.element.igGridFeatureChooser();else throw new Error(n.ig.GridHiding.locale.featureChooserNotReferenced);for(u=0;u<this.options.columnSettings.length;u++)if(r=this.options.columnSettings[u],typeof r.hidden=="boolean")if(typeof r.columnKey=="string"?i=this.grid.columnByKey(r.columnKey):typeof r.columnIndex=="number"&&(i=this.grid.options.columns[r.columnIndex]),i!==undefined&&i!==null)(i.hidden===undefined||r.hidden===!0&&i.hidden!==i._initiallyHidden&&i._initiallyHidden!==!0)&&(i.hidden=r.hidden);else if(this.grid._isMultiColumnGrid===!0&&r.columnKey!==null&&r.columnKey!==undefined&&(i=this.grid._getMultiHeaderColumnById(r.columnKey),i!==undefined&&i!==null&&i.children))for(f=0;f<i.children.length;f++)i.children[f].hidden=r.hidden}});n.extend(n.ui.igGridHiding,{version:"14.1.20141.2031"})}(jQuery),function(n){n.widget("ui.igHierarchicalGrid",{css:{expandColumn:"ui-iggrid-expandcolumn",expandColumnExpanded:"ui-iggrid-expandcolumn-expanded",expandButton:"ui-iggrid-expandbutton ui-icon-plus",expandButtonHover:"ui-iggrid-expandbuttonhover ui-icon-plus ui-state-hover",expandButtonExpandedHover:"ui-iggrid-expandbuttonexpandedhover ui-icon-plus ui-state-hover",expandButtonExpanded:"ui-iggrid-expandbutton ui-iggrid-expandbuttonexpanded ui-icon-minus",expandButtonClick:"ui-iggrid-expandbuttonclick ui-icon-plus",childGridArea:"ui-iggrid-childarea",childGridAreaCollapsed:"ui-iggrid-childarea-collapsed",expandHeaderCell:"ui-iggrid-expandheadercell ui-iggrid-header ui-widget-header",expandHeaderCellTriangle:"ui-icon ui-icon-triangle-1-se",root:"ui-iggrid-root",childGridSeparator:"ui-iggrid-childgridseparator"},options:{initialDataBindDepth:-1,initialExpandDepth:-1,odata:!1,rest:!1,maxDataBindDepth:-1,defaultChildrenDataProperty:"children",autoGenerateLayouts:!1,expandCollapseAnimations:!0,expandColWidth:30,pathSeparator:"/",animationDuration:500,expandTooltip:n.ig.Grid.locale.expandTooltip,collapseTooltip:n.ig.Grid.locale.collapseTooltip,columns:[],columnLayouts:[{key:null,primaryKey:null,foreignKey:null}]},events:{rowExpanding:"rowExpanding",rowExpanded:"rowExpanded",rowCollapsing:"rowCollapsing",rowCollapsed:"rowCollapsed",childrenPopulating:"childrenPopulating",childrenPopulated:"childrenPopulated",childGridCreating:"igchildgridcreating",childGridCreated:"igchildgridcreated"},_setOption:function(t,i){if(t==="dataSource")this.options.dataSource=i,this.dataBind();else if(t==="initialDataBindDepth"||t==="initialExpandDepth"||t==="expandColWidth")throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);t==="odata"||t==="defaultChildrenDataProperty"||t==="expandTooltip"||t==="collapseTooltip"||t==="autoGenerateLayouts"||t==="expandCollapseAnimations"||t==="animationDuration"?n.Widget.prototype._setOption.apply(this,arguments):this.rootWidget()&&this.rootWidget()._setOption(t,i)},_create:function(){this._regevents(this.element,this);n.ui.igGrid.prototype.options.columns=[];n.ui.igGrid.prototype.options.features=[];this.options=n.extend(!0,{},n.ui.igGrid.prototype.options,this.options);this.tmpDataSource!==null&&this.tmpDataSource!==undefined&&(this.options.dataSource=this.tmpDataSource,this._originalOptions.dataSource=this.tmpDataSource);this.options.virtualization===!0&&(this.options.virtualizationMode="continuous");this._eventQueue=[];this._animationQueue=[];this.dataBind();this.rootWidget()._isMultiColumnGrid=this._checkIsMultiColumnHeader(this.options)},_createWidget:function(t){this.options.columns=[];this.options.features=[];this.options.columnLayouts=[];t.dataSource&&(n.type(t.dataSource)==="array"||n.type(t.dataSource)==="object")&&(this.tmpDataSource=t.dataSource,t.dataSource=null,this._originalOptions=t);n.Widget.prototype._createWidget.apply(this,arguments)},dataBind:function(){var r,i,u,t;this.options.autoGenerateLayouts&&this._generateLayouts();i=this._hdsoptions();r=new n.ig.HierarchicalDataSource(i);this._hds=r;u=this._hds.root();this._tmpds=this.options.dataSource;this.options.dataSource=null;t=n.extend(!0,{},this.options);this.options.dataSource=this._tmpds;this._tmpds=null;t.dataSource=u;n.type(i.dataSource)==="string"&&(t.dataSourceUrl=i.dataSource);this._columnsGeneratedHandler?this.element.unbind("iggridcolumnsgenerated",this._columnsGeneratedHandler):this._columnsGeneratedHandler=n.proxy(this._columnsGenerated,this);this.element.bind("iggridcolumnsgenerated",this._columnsGeneratedHandler);this.options.autoGenerateLayouts===!0&&(this._databoundHandler?this.element.unbind("iggridcolumnsgenerated",this._databoundHandler):this._databoundHandler=n.proxy(this._layouts,this),this.element.bind("iggriddatarendering",this._databoundHandler));this.element.addClass(this.css.root);this.element.attr("data-level",0);t._isHierarchicalGrid=!0;this._root?this._root.igGrid("option","dataSource",t.dataSource):(this.options.autoGenerateLayouts===!0&&(t._recurseSchema=!0),this._root=this.element.igGrid(t));this.indicator=this.rootWidget().container().data("igLoading")?this.rootWidget().container().data("igLoading").indicator():this.rootWidget().container().igLoading().data("igLoading").indicator();this._regToggleEvent(this.element,this)},_generateLayouts:function(){var r,i,t=this.options.dataSource;if((n.type(t)==="array"||n.type(t)==="object")&&t.length!==0)for(n.type(t)==="object"&&this.options.responseDataKey&&(t=t[this.options.responseDataKey]||t),i=0;i<t.length;i++)r=t[i],this._generateLayout(r,this.options)},_generateLayout:function(t,i){var r,f,o,e,u,s=!1;for(r in t)if(t.hasOwnProperty(r)&&(n.type(t[r])==="array"||n.type(t[r])==="object"&&i.responseDataKey&&n.type(t[r][i.responseDataKey])==="array")){if(u=t[r],i.responseDataKey&&n.type(u)==="object")if(u[i.responseDataKey]&&n.type(u[i.responseDataKey])==="array")u=u[i.responseDataKey],s=!0;else continue;if(f={key:r,childrenDataProperty:r,columnLayouts:[]},s&&(f.responseDataKey=i.responseDataKey),o=this._layoutExistsRecursive(this.options,r),o?f=o:((i.columnLayouts===undefined||i.columnLayouts===null)&&(i.columnLayouts=[]),i.columnLayouts.push(f)),u.length>0)for(e=0;e<u.length;e++)this._generateLayout(u[e],f)}},_layoutExistsRecursive:function(n,t){var r,i=null;if(i=n.key===t?n:i,!i)for(r=0;n.columnLayouts&&r<n.columnLayouts.length;r++)if(i=this._layoutExistsRecursive(n.columnLayouts[r],t),i)break;return i},root:function(){return this._root},rootWidget:function(){return this.root().data("igGrid")},allChildrenWidgets:function(){return this.root().find(".ui-iggrid-table").map(function(){return n(this).data("igGrid")})},allChildren:function(){return this.root().find(".ui-iggrid-table")},toggle:function(t){this._toggleInternal({target:n(t).find(".ui-iggrid-expandcolumn")},!0)},expand:function(t){this.populated(t)?this._expand(t,!0):this._toggleInternal({target:n(t).find(".ui-iggrid-expandcolumn")},!0)},_expand:function(t,i){var r=n(t),f,e=!0,o,s="",u;if(i||(e=this._trigger(this.events.rowExpanding,null,{owner:this,parentrow:r})),u=this._rootgrid||this.element.closest(".ui-iggrid-root").data("igHierarchicalGrid"),e){if(this.options.expandCollapseAnimations){if(u._animationQueue[r.attr("data-id")+s]===!0)return;u._animationQueue[r.attr("data-id")+s]=!0}f=r.find(".ui-iggrid-expandcolumn");r.next().css("display","").css("visibility","visible");this.options.expandCollapseAnimations?(o=i?this._expandendnoevents:this._expandend,r.next().find("> td > div").slideDown(this.options.animationDuration,o)):(r.next().find("> td > div").show(),f.addClass(this.css.expandColumnExpanded).find(".ui-iggrid-expandbutton").removeClass(this.css.expandButton).addClass(this.css.expandButtonExpanded).attr("title",this.options.collapseTooltip),i||(this._rowExpanded({owner:this,parentrow:r}),this._trigger(this.events.rowExpanded,null,{owner:this,parentrow:r})));r.attr("state","e");r.next().children().first().removeClass(this.css.childGridAreaCollapsed).addClass(this.css.childGridArea)}},expanded:function(t){var i=t.length!==undefined?t:n(t);return i===null||i===undefined?!1:i.attr("state")!=="e"||i.attr("state")===undefined?!1:!0},_expandendnoevents:function(t){var r,f,i,u=t?n(t):n(this),e=u.closest("tr[data-container]").prev(),o="";i=this._rootgrid||u.closest(".ui-iggrid-root").data("igHierarchicalGrid");r=u.closest("[data-container=true]").prev().find(".ui-iggrid-expandcolumn");f=r.find(".ui-iggrid-expandbutton");r.addClass(i.css.expandColumnExpanded);f.removeClass(i.css.expandButton).addClass(i.css.expandButtonExpanded).attr("title",i.options.collapseTooltip);i._animationQueue[e.attr("data-id")+o]===!0&&delete i._animationQueue[e.attr("data-id")+o]},_expandend:function(){var r=n(this),t,i=r.closest("tr[data-container]").prev(),u=i.closest(".ui-iggrid-table").data("igGrid");t=this._rootgrid||r.closest(".ui-iggrid-root").data("igHierarchicalGrid");t._expandendnoevents(this);u._adjustLastColumnWidth(!1);t._rowExpanded({owner:t,parentrow:i});t._trigger(t.events.rowExpanded,null,{owner:t,parentrow:i})},_collapseendnoevents:function(t){var u,f,i,r=t?n(t):n(this),e=r.closest(".ui-iggrid-childarea"),o=r.closest("tr[data-container]").prev(),s="";i=this._rootgrid||r.closest(".ui-iggrid-root").data("igHierarchicalGrid");e.removeClass(i.css.childGridArea).addClass(i.css.childGridAreaCollapsed);e.closest("tr").css("display","none").css("visibility","hidden");u=r.closest("[data-container=true]").prev().find(".ui-iggrid-expandcolumn");f=u.find(".ui-iggrid-expandbutton");u.removeClass(i.css.expandColumnExpanded);f.removeClass(i.css.expandButtonExpanded).addClass(i.css.expandButton).attr("title",i.options.expandTooltip);i._animationQueue[o.attr("data-id")+s]===!0&&delete i._animationQueue[o.attr("data-id")+s]},_collapseend:function(){var i=n(this),t,r=i.closest("tr[data-container]").prev(),u=r.closest(".ui-iggrid-table").data("igGrid");t=this._rootgrid||i.closest(".ui-iggrid-root").data("igHierarchicalGrid");t._collapseendnoevents(this);u._adjustLastColumnWidth(!1);t._trigger(t.events.rowCollapsed,null,{owner:t,parentrow:r})},collapse:function(n){this._collapse(n,!0)},_collapse:function(t,i){var r=n(t),f,e=!0,o,s="",u;if(i||(e=this._trigger(this.events.rowCollapsing,null,{owner:this,parentrow:r})),u=this._rootgrid||this.element.closest(".ui-iggrid-root").data("igHierarchicalGrid"),e){if(this.options.expandCollapseAnimations){if(u._animationQueue[r.attr("data-id")+s]===!0)return;u._animationQueue[r.attr("data-id")+s]=!0}f=r.find(".ui-iggrid-expandcolumn");this.options.expandCollapseAnimations?(o=i?this._collapseendnoevents:this._collapseend,this._rowCollapsed({owner:this,parentrow:r}),r.next().find("> td > div").slideUp(this.options.animationDuration,o)):(r.next().find("> td > div").hide(),r.next().children().first().removeClass(this.css.childGridArea).addClass(this.css.childGridAreaCollapsed),r.next().css("display","none").css("visibility","hidden"),f.find(".ui-iggrid-expandbutton").removeClass(this.css.expandButtonExpanded).addClass(this.css.expandButton).attr("title",this.options.expandTooltip),i||(this._rowCollapsed({owner:this,parentrow:r}),this._trigger(this.events.rowCollapsed,null,{owner:this,parentrow:r})));r.attr("state","c")}},collapsed:function(t){var i=t.length!==undefined?t:n(t);return i===null||i===undefined?!0:i.attr("state")==="c"||i.attr("state")===undefined?!0:!1},populated:function(t){var i=t.length!==undefined?t:n(t);return i===null||i===undefined?!1:i.attr("c")==="true"?!0:!1},_mouseOver:function(t){n(t.target).addClass(this.css.expandButtonHover)},_mouseOut:function(t){n(t.target).removeClass(this.css.expandButtonHover).addClass(this.css.expandButton)},_toggleInternal:function(t,i){var e=n(t.target).closest("tr").attr("c"),o=n(t.target).closest("tr"),s=o.find(".ui-iggrid-expandcolumn"),r=this,u,f=this.options.virtualization===!0?50:0;u=n(t.target).hasClass("ui-iggrid-expandbutton")||n(t.target).children(".ui-iggrid-expandbutton").length>0;!e&&this.options.initialDataBindDepth===-1&&u?(this.indicator.refreshPos(),n.ig.util.isWebKit?this.indicator.show(!1):(s.find(".ui-iggrid-expandbutton").css("visibility","hidden"),this.indicator.show(!1)),setTimeout(function(){r._toggleInternalAsync(t,i)},f)):setTimeout(function(){r._toggleInternalAsync(t,i)},f);i||t.stopImmediatePropagation()},_toggleInternalAsync:function(t,i){var ut=n(t.target),f=ut.closest("tr"),e="",p="",a="",d,g,ct=-1,ot=!1,lt=0,ft,o,wt=f.attr("c"),st,s=[],c,u=[],nt,b,k,v,h,w,y,at,l,r,ht,vt=0,et,tt=f.attr("state"),it,yt=!0,pt=!0,rt;if((!ut.is("td")||ut.attr("data-parent")==="true")&&ut.closest("td").attr("data-parent")==="true"){if(tt===undefined&&(tt="c"),ft=this.options.restSettings.update.url!==null||this.options.restSettings.update.template!==null||this.options.restSettings.create.url!==null||this.options.restSettings.create.template!==null||this.options.restSettings.remove.url!==null||this.options.restSettings.remove.template!==null,wt||tt!=="c")tt==="e"?this._collapse(f,i):tt==="c"&&this._expand(f,i);else{for(f.after("<tr><\/tr>"),st=f.next(),st.attr("data-container",!0),l=f.closest("table").data("igGrid").options,u=this._optsFor(l),l.childrenDataProperty===undefined?l.key&&(p=l.key):p+=l.childrenDataProperty,d=f.closest(".ui-iggrid-childarea").parent().prev();d.length>0;)lt!==0&&(e+=this.options.pathSeparator),g=d.closest(".ui-iggrid-table").data("igGrid").options,b=g.primaryKey,e+=b+":"+d.attr("data-id"),g.childrenDataProperty===undefined?g.key&&(p+=this.options.pathSeparator+g.key):p+=this.options.pathSeparator+g.childrenDataProperty,d=d.closest(".ui-iggrid-childarea").parent().prev(),lt++;for(p=p.split(this.options.pathSeparator).reverse().join(this.options.pathSeparator),e=e.split(this.options.pathSeparator).reverse().join(this.options.pathSeparator),b=f.closest("table").data("igGrid").options.primaryKey,e===""?e=b+":"+f.attr("data-id"):e+=this.options.pathSeparator+b+":"+f.attr("data-id"),at=f.find("td,th").length,it=n("<div><\/div>").appendTo(n("<td><\/td>").appendTo(st).addClass(this.css.childGridArea).attr("colspan",at)),r=0;r<u.length;r++)if(a="",s.push(n("<table><\/table>").appendTo(it).attr("data-childgrid",!0)),r<u.length-1&&n("<div><\/div>").appendTo(it).addClass(this.css.childGridSeparator),s[r].attr("id",this.root()[0].id+"_"+f.attr("data-id")+"_"+u[r].key+"_child"),vt=parseInt(f.closest("table").attr("data-level"),10),s[r].attr("id",s[r].attr("id").replace(",","-")).attr("data-level",vt+1),a=p===""?u[r].childrenDataProperty===undefined?u[r].key:u[r].childrenDataProperty:this.options.pathSeparator+(u[r].childrenDataProperty===undefined?u[r].key:u[r].childrenDataProperty),o=this._hds.dataAt(e,p+a),n.type(o)==="array"||u[r].responseDataKey||o===undefined?(o===null||o===undefined)&&(o=[]):o=[o],k=!1,u[r].columnLayouts&&u[r].columnLayouts.length>0&&(k=!0),k&&this._regevents(s[r],this),ct=e.split(this.options.pathSeparator).length,ct>this.options.initialDataBindDepth&&this.options.initialDataBindDepth!==-1&&(ot=!0),c=this._hdsoptions().dataSource,ot)if(instanceOfDs=c&&typeof c._xmlToArray=="function"&&typeof c._encodePkParams=="function",this.options.odata){for(w=instanceOfDs?c.settings.dataSource:c,y=l.dataSource&&typeof l.dataSource._xmlToArray=="function"&&typeof l.dataSource._encodePkParams=="function"?l.dataSource.settings.dataSource:l.dataSource,o=f.closest("table").data("igGrid").dataSource.data(),v=f.attr("data-id"),b=f.closest("table").data("igGrid").options.primaryKey,f.closest("table").data("igGrid").columnByKey(b).dataType==="number"&&(v=parseInt(v,10)),h=0;h<o.length;h++)if(o[h][f.closest("table").data("igGrid").options.primaryKey]===v){o=o[h][u[r].key];break}o?o.__deferred&&o.__deferred.uri&&(u[r].dataSource=o.__deferred.uri,w.indexOf("$callback=?")!==-1&&(u[r].dataSource+="?$callback=?"),w.indexOf("$format=")!==-1&&(u[r].dataSource+=w.indexOf("$format=json")!==-1?"&$format=json":"&$format=atom")):(y.substr(y.length-1)==="/"&&(y=y.substring(0,y.length-1)),rt=typeof v=="string"?"'"+v+"'":v,a.charAt(0)!=="/"&&(a="/"+a),n.type(w)==="string"&&w!==y&&(y=w.substring(0,w.lastIndexOf("/"))+y.substring(y.lastIndexOf("/"))),u[r].dataSource=y+"("+rt+")"+a);ft===!0&&this._inheritRestSettings(null,f.attr("data-id"),a.toLowerCase(),l,u[r])}else this.options.rest===!0?(c.substr(c.length-1)!=="/"&&(c+="/"),rt=f.attr("data-id"),u[r].dataSource=c+rt+"/"+a.toLowerCase(),ft===!0&&this._inheritRestSettings(u[r].dataSource,rt,a.toLowerCase(),l,u[r])):instanceOfDs?u[r].dataSource=c.settings.dataSource+this._hds._encodeUrlPath(e,u[r].key):(u[r].dataSource?(u[r].dataSource+=u[r].dataSource.indexOf("?")!==-1?"&"+this._hds._encodeUrlPath(e,u[r].key):"?"+this._hds._encodeUrlPath(e,u[r].key),u[r].dataSourceType="remoteUrl"):n.type(u[r].dataSource)==="string"&&n.type(c)!=="string"?(u[r].dataSource+="?"+this._hds._encodeUrlPath(e,u[r].key),u[r].dataSourceType="remoteUrl"):u[r].dataSource=c+"?"+this._hds._encodeUrlPath(e,u[r].key),u[r].dataSource!==u[r].dataSourceUrl&&(u[r].dataSourceUrl=u[r].dataSource));else if(u[r].dataSource=o,n.type(c)!=="string"||this.options.rest===!0||u[r].dataSourceUrl||(u[r].dataSourceUrl=c),u[r].dataSourceUrl&&n.type(u[r].dataSourceUrl)==="string"&&(u[r].dataSourceUrl+=u[r].dataSourceUrl.indexOf("?")!==-1?"&"+this._hds._encodeUrlPath(e,u[r].key):"?"+this._hds._encodeUrlPath(e,u[r].key)),this.options.autoGenerateLayouts===!0&&(u[r]._recurseSchema=!0),s[r].trigger(this.events.childGridCreating,{owner:this,options:u[r],element:s[r],id:e,path:p+a}),pt=s[r].attr("data-create"),pt!=="false"&&((this.options.rest||this.options.odata)&&ft===!0&&this._inheritRestSettings(null,f.attr("data-id"),a.toLowerCase(),l,u[r]),k&&(u[r]._isHierarchicalGrid=!0),s[r].igGrid(u[r]),k&&this._regToggleEvent(s[r],this),s[r].trigger(this.events.childGridCreated,{owner:this,element:s[r]})),u[r].primaryKey===null||u[r].primaryKey===undefined){if(u[r].dataSource&&typeof u[r].dataSource._xmlToArray=="function"&&typeof u[r].dataSource._encodePkParams=="function")throw new Error(n.ig.Grid.locale.noPrimaryKey);if(et=s[r].data("igGrid"),v=et.dataSource.schema().schema.searchField,v!==null)for(h=0;h<u[r].dataSource[v].length;h++)u[r].dataSource[v][h].ig_pk=et.dataSource.data()[h].ig_pk;else for(h=0;h<u[r].dataSource.length;h++)u[r].dataSource[h]&&(u[r].dataSource[h].ig_pk=et.dataSource.data()[h].ig_pk)}if(ot&&(yt=this._trigger(this.events.childrenPopulating,null,{owner:this,parentrow:f,id:e}),yt))for(r=0;r<u.length;r++)nt=f.attr("data-id"),this._eventQueue["id"+nt]&&this._eventQueue["id"+nt].length||(this._eventQueue["id"+nt]=[]),ht=n.proxy(this._childRendered,this),this._eventQueue["id"+nt].push({grid:s[r],handler:ht,parentrow:f,id:e}),s[r].bind("iggridrendered",ht),this.options.autoGenerateLayouts===!0&&(u[r]._recurseSchema=!0),k&&(u[r]._isHierarchicalGrid=!0),s[r].igGrid(u[r]),k&&this._regToggleEvent(s[r],this);it.attr("id","ac");f.attr("c",!0);f.next().hide();it.hide();this._expand(f,i)}this.indicator.hide();f.find(".ui-iggrid-expandbutton").css("visibility","visible")}},_layouts:function(){this.element.unbind("iggriddatarendering",this._databoundHandler)},_columnsGenerated:function(n,t){var r=t.key,i;r&&((i=this._findLayout(this.rootWidget().options.columnLayouts,r),i.columns&&i.columns.length&&i.columns.length>0)||(i.columns=t.owner.options.columns))},_findLayout:function(n,t){for(var r,i=0;n&&i<n.length;i++){if(n[i].key===t){r=n[i];break}!r&&n[i].columnLayouts&&(r=this._findLayout(n[i].columnLayouts,t))}return r},_hdsoptions:function(){var t,r,i;return t={responseDataKey:this.options.responseDataKey,responseTotalRecCountKey:this.options.responseTotalRecCountKey,dataSource:this.options.dataSource,primaryKey:this.options.primaryKey,localSchemaTransform:this.options.localSchemaTransform,autoCommit:this.options.autoCommit,odata:this.options.odata,serializeTransactionLog:this.options.serializeTransactionLog,updateUrl:this.options.updateUrl,restSettings:this.options.restSettings,initialDataBindDepth:this.options.initialDataBindDepth},this.options.dataSourceType!==null&&(t.type=this.options.dataSourceType),r=this._hschema(),i=this.options.dataSource&&typeof this.options.dataSource._encodeHierarchicalUrlParams=="function"&&this.options.dataSource.settings&&this.options.dataSource.settings.hasOwnProperty&&this.options.dataSource.settings.hasOwnProperty("initialDataBindDepth"),(i&&this.options.dataSource.settings.schema===null||!i)&&(t=n.extend(t,{schema:r})),t},_getDataColumns:function(n){for(var i,r=[],f=n.length,u,t=0;t<f;t++)if(n[t].group!==undefined&&n[t].group!==null)for(u=this._getDataColumns(this._getDataColumns(n[t].group)),i=0;i<u.length;i++)r.push(u[i]);else r.push(n[t]);return r},_hschema:function(){var t,u,i,s,f,r=this._getDataColumns(this.options.columns),h=[],e,o;if(r.length>0&&!this.options.autoGenerateColumns){for(t={},t.fields=[],i=0,u=0;u<r.length;u++)r[u].unbound!==!0&&(t.fields[i]={},t.fields[i].name=r[u].key,t.fields[i].type=r[u].dataType,i++);t.searchField=this.options.responseDataKey}else if(this.options.autoGenerateColumns&&(t={},t.fields=[],this.options.dataSource&&this.options.dataSource.length&&this.options.dataSource.length>0&&n.type(this.options.dataSource)==="array")){s=this.options.dataSource[0];for(f in s)if(s.hasOwnProperty(f)){for(e=0;e<r;e++)if(r[e].key===f){o=r[e];break}if(o===null||o===undefined)t.fields.push({name:f,type:n.ig.getColType(s[f])});else{if(o.unbound===!0)continue;t.fields.push({name:f,type:o.dataType})}}}if(this.options.columnLayouts&&this.options.columnLayouts.length>0)for(i=0;i<this.options.columnLayouts.length;i++)t.fields.push({name:this.options.columnLayouts[i].childrenDataProperty===undefined?this.options.columnLayouts[i].key:this.options.columnLayouts[i].childrenDataProperty});return this._parseLayouts(h,"",this.options),t.layouts=h,t},_parseLayouts:function(n,t,i){var u,r,e,f=null;if(i.columnLayouts&&i.columnLayouts.length!==undefined&&i.columnLayouts.length>0)for(u=0;u<i.columnLayouts.length;u++)r=i.columnLayouts[u],f=r.childrenDataProperty===undefined?r.key:r.childrenDataProperty,f||(f=this.options.defaultChildrenDataProperty),e=t+this.options.pathSeparator+f+":"+r.primaryKey,n[e]=r,this._parseLayouts(n,e,r)},_batchExpand:function(){var t=[],i,n;n=this.element.closest(".ui-iggrid-root").data("igHierarchicalGrid");n||(n=this.element.data("igHierarchicalGrid"));i=n.options.expandCollapseAnimations;n.options.expandCollapseAnimations=!1;t=this.element.find("tr[data-id]");n._batchExpandLevel(t);n.options.expandCollapseAnimations=i},_batchExpandLevel:function(n){for(var t=0;t<n.length;t++)this.toggle(n[t])},_renderExtraHeaderCell:function(t,i,r){r===!0?n("<td><\/td>").prependTo(t).css("border-width",0).attr("data-skip",!0):n("<td><\/td>").appendTo(t).css("border-width",0).attr("data-skip",!0)},_renderExtraFooterCell:function(t,i,r,u){r===!0?n("<td><\/td>").addClass(u).prependTo(t).attr("data-skip",!0):n("<td><\/td>").addClass(u).appendTo(t).attr("data-skip",!0)},_headerrenderedinternal:function(t,i){if(i.owner.element[0].id===t.currentTarget.id||i.owner.element[0].id===t.currentTarget.id+"_table"){var f=this,e=i.owner._renderColgroup,r,u;i.owner._renderRecord=n.proxy(this._hierarchicalRenderRecord,i.owner);i.owner._getFirstVisibleTR=n.proxy(this._hierarchicalGetFirstVisibleTR,i.owner);i.owner._getLastVisibleTR=n.proxy(this._hierarchicalGetLastVisibleTR,i.owner);i.owner._renderRecordInArray=n.proxy(this._hierarchicalRenderRecordInArray,i.owner);i.owner._renderColgroup=function(){f._hierarchicalRenderColgroup.apply(i.owner,n.merge([e,f],arguments))};i.owner._headerInitCallbacks.push({type:"HierarchicalGrid",func:n.proxy(this._renderExtraHeaderCell,this)});i.owner._footerInitCallbacks.push({type:"HierarchicalGrid",func:n.proxy(this._renderExtraFooterCell,this)});i.owner._trigger("headerextracellsmodified",null,{owner:i.owner});i.table.attr("id")!==i.owner.element.attr("id")&&n(i.table).find("colgroup col[data-expander]").length===0&&n("<col><\/col>").attr("data-skip","true").attr("data-expander",!0).prependTo(i.table.find("colgroup")).width(this.options.expandColWidth);u=n("<th><\/th>");n("<span><\/span>").appendTo(u.prependTo(i.table.find("thead tr:first")).addClass(this.css.expandHeaderCell).attr("data-skip",!0)).addClass(this.css.expandHeaderCellTriangle);i.owner._isMultiColumnGrid&&u.attr("rowspan",i.owner._maxLevel+1);i.owner._isWrapped?(r=i.owner.element.attr("id").substring(0,i.owner.element.attr("id").indexOf("_table")),i.owner.container().find("#"+r).unbind("iggridheaderrenderedinternal",i.owner.element.data("hr")),i.owner.container().find("#"+r).removeData("hr")):(i.owner.element.unbind("iggridheaderrenderedinternal",i.owner.element.data("hr")),i.owner.element.removeData("hr"))}},_checkIsMultiColumnHeader:function(n){var t,r=n.columnLayouts,i=n.columns,u,f;if(i)for(f=i.length,t=0;t<f;t++)if(i[t].group!==undefined&&i[t].group!==null)return!0;if(r)for(u=r.length,t=0;t<u;t++)if(this._checkIsMultiColumnHeader(r[t])===!0)return!0;return!1},_hierarchicalRenderRecord:function(t,i){var h,y=this.options.accessibilityRendering,u=this,p,f,e,r="",s,w="",c,l,v,a,o;if(r+=i%2!=0&&this.options.alternateRowStyles?'<tr class="'+u.css.recordAltClass+'"':"<tr",r+=' data-row-idx="'+i+'"',this._hg?f=this._hg:(f=this.element.closest(".ui-iggrid-root").data("igHierarchicalGrid"),f||(f=this.element.hasClass(".ui-iggrid-root")?this.element:undefined),this._hg=f),this.options.foreignKey?r+=" data-id-fk='"+this._kval_from_key(this.options.foreignKey,t)+"'":this.options.primaryKey===null||this.options.primaryKey===undefined?(this.options.primaryKey="ig_pk",s=f._getVal(t),r+=" data-id-fk='"+s+"'"):this.options.primaryKey==="ig_pk"?(s=f._getVal(t),r+=" data-id-fk='"+s+"'"):r+=" data-id-fk='"+this._kval_from_key(this.options.primaryKey,t)+"'",this.options.primaryKey===null||this.options.primaryKey===undefined?(this.options.primaryKey="ig_pk",s=f._getVal(t),r+=" data-id='"+s+"'"):this.options.primaryKey==="ig_pk"?(s=f._getVal(t),r+=" data-id='"+s+"'"):r+=" data-id='"+this._kval_from_key(this.options.primaryKey,t)+"'",r+=y?' role="row">':">",c=this.options.columnLayouts,l=!1,p=f?f.options.initialDataBindDepth>-1:!1,p)l=!0;else for(h=0;c&&h<c.length;h++)if(t[c[h].key]?(e=c[h].key,a=c[h]):e=c[h].childrenDataProperty,e=e||this.options.defaultChildrenDataProperty,e)if(a&&a.responseDataKey){if(t[e]&&t[e][a.responseDataKey]&&t[e][a.responseDataKey].length!==undefined&&(t[e][a.responseDataKey].length>0||this._shouldAlwaysRenderChildIndicator)){l=!0;break}}else if(t[e]&&t[e].length!==undefined&&(t[e].length>0||this._shouldAlwaysRenderChildIndicator)){l=!0;break}return l&&(w='<span class="ui-iggrid-expandbuttoncontainer"><span class="ui-iggrid-expandbutton ui-icon ui-icon-plus" title="'+f.options.expandTooltip+'"><\/span><\/span>'),r+='<td class="ui-iggrid-expandcolumn'+u._addCellStyle(t,-1).replace(/class=\"/,"").replace(/\"/,"")+'" data-parent="'+l+'">'+w+"<\/td>",v=!0,n(this.options.columns).each(function(n){var i=u.options.columns[n];i.hidden||(v=!1,r+=y?'<td role="gridcell" aria-describedby="'+this.key+'"':"<td",t[this.key]===undefined?(this.template&&this.template.length?(o=i.unbound?u._renderTemplatedCell(t,this):u._renderTemplatedCell(t[n],this),r+=o.indexOf("<td")===0?o.substring(3):">"+o,r=u._editCellStyle(r,t,n)):r+=u._addCellStyle(t,n)+">"+u._renderCell(t[n],this,t),r+="<\/td>"):(this.template&&this.template.length?(o=u._renderTemplatedCell(t,this),r+=o.indexOf("<td")===0?o.substring(3):">"+o,r=u._editCellStyle(r,t,this.key)):r+=u._addCellStyle(t,this.key)+">"+u._renderCell(t[this.key],this,t),r+="<\/td>"))}),v&&(r+='<td role="gridcell"><\/td>'),r+="<\/tr>"},_getVal:function(t){var i;return t.ig_pk?i=t.ig_pk:(i=n.ig.util.getCheckSumForObject(t),t.ig_pk=i),i},_hierarchicalRenderRecordInArray:function(t,i,r,u){var h,y=this.options.accessibilityRendering,e=this,p,c,o,f,w="",l,a,v,b=!1,s;if(t===null&&(t=[],b=!0),u%2!=0&&this.options.alternateRowStyles?t.push('<tr class="'+e.css.recordAltClass+'"'):t.push("<tr"),this.options.foreignKey?t.push(" data-id-fk='"+this._kval_from_key(this.options.foreignKey,r)+"'"):this.options.primaryKey===null||this.options.primaryKey===undefined?(this.options.primaryKey="ig_pk",f=n.ig.util.getCheckSumForObject(r),t.push(" data-id-fk='"+f+"'"),r.ig_pk=f):this.options.primaryKey==="ig_pk"?(f=n.ig.util.getCheckSumForObject(r),t.push(" data-id-fk='"+f+"'"),r.ig_pk=f):t.push(" data-id-fk='"+this._kval_from_key(this.options.primaryKey,r)+"'"),this.options.primaryKey===null||this.options.primaryKey===undefined?(this.options.primaryKey="ig_pk",f=n.ig.util.getCheckSumForObject(r),t.push(" data-id='"+f+"'"),r.ig_pk=f):this.options.primaryKey==="ig_pk"?(f=n.ig.util.getCheckSumForObject(r),t.push(" data-id='"+f+"'"),r.ig_pk=f):t.push(" data-id='"+this._kval_from_key(this.options.primaryKey,r)+"'"),y?t.push(' role="row">'):t.push(">"),l=this.options.columnLayouts,a=!1,c=this.element.closest(".ui-iggrid-root").data("igHierarchicalGrid"),c||(c=this.element.hasClass(".ui-iggrid-root")?this.element:undefined),p=c?c.options.initialDataBindDepth>-1:!1,p)a=!0;else for(h=0;l&&h<l.length;h++)if(o=r[l[h].key]?l[h].key:l[h].childrenDataProperty,o=o||this.options.defaultChildrenDataProperty,o)if(this.options.responseDataKey){if(r[o]&&r[o][this.options.responseDataKey]&&r[o][this.options.responseDataKey].length!==undefined&&r[o][this.options.responseDataKey].length>0){a=!0;break}}else if(r[o]&&r[o].length!==undefined&&r[o].length>0){a=!0;break}a&&(w='<span class="ui-iggrid-expandbuttoncontainer"><span class="ui-iggrid-expandbutton ui-icon ui-icon-plus" title="'+c.options.expandTooltip+'"><\/span><\/span>');t.push('<td class="ui-iggrid-expandcolumn'+e._addCellStyle(r,-1)+'" data-parent="'+a+'">'+w+"<\/td>");v=!0;n(this.options.columns).each(function(n){e.options.columns[n].hidden||(v=!1,y?t.push('<td role="gridcell" aria-describedby="'+this.key+'"'):t.push("<td"),r[this.key]===undefined?(this.template&&this.template.length?(s=e._renderTemplatedCell(r,this),s.indexOf("<td")===0?t[t.length-1]=s.replace("<td",t[t.length-1]):t.push(">"+s),t[t.length-1]=e._editCellStyle(t[t.length-1],r,n)):t.push(e._addCellStyle(r,n)+">"+e._renderCell(r[n],this,r)),t.push("<\/td>")):(this.template&&this.template.length?(s=e._renderTemplatedCell(r,this),s.indexOf("<td")===0?t[t.length-1]=s.replace("<td",t[t.length-1]):t.push(">"+s),t[t.length-1]=e._editCellStyle(t[t.length-1],r,this.key)):t.push(e._addCellStyle(r,this.key)+">"+e._renderCell(r[this.key],this,r)),t.push("<\/td>")))});v&&t.push('<td role="gridcell"><\/td>');t.push("<\/tr>");b&&i.append(t.join(""))},_hierarchicalRenderColgroup:function(t,i,r,u,f,e){(t.apply(this,[r,u,f,e]),n(r).find("colgroup col[data-expander]").length>0)||n("<col><\/col>").prependTo(n(r).find("colgroup")).css("width",i.options.expandColWidth).attr("data-skip","true").attr("data-expander",!0)},_schemaGenerated:function(t,i){var f,o,u,h=i.schema,e=i.dataSource,s=i.owner,r;if(f=s.element.closest(".ui-iggrid-root").data("igHierarchicalGrid"),f||(f=s.element.hasClass(".ui-iggrid-root")?s.element:undefined),f&&!(f.options.initialDataBindDepth>-1))for(o=0;e&&e.length&&n.type(e)==="array"&&o<e.length;o++){u=e[o];for(r in u)u.hasOwnProperty(r)&&(s._fieldExists(r,h)||n.type(u[r])!=="array"&&n.type(u[r])!=="object"||h.fields.push({name:r,type:n.ig.getColType(u[r])}))}},_childRendered:function(n,t){for(var u=t.owner.element.closest("tr").prev(),f="id"+u.attr("data-id"),r=this._eventQueue[f],e=!0,i=0;r.length!==undefined&&i<r.length;i++)if(r[i].grid.attr("id")===t.owner.element.attr("id")){r[i].done=!0;r[i].grid.unbind("iggridrendered",r[i].handler);break}for(i=0;r.length!==undefined&&i<r.length;i++)if(!r[i].done){e=!1;break}e&&(this._trigger(this.events.childrenPopulated,null,{owner:this,parentrow:u,id:r[0].id}),delete this._eventQueue[f])},_optsFor:function(t){var i,u,r=[],f;if(t.columnLayouts&&t.columnLayouts.length>0&&n.type(t.columnLayouts)==="array")for(f=t.columnLayouts,u=0;u<f.length;u++)this._inherit(t,f[u]),r.push(n.extend(!0,{},n.ui.igGrid.prototype.options,f[u]));for(i=0;i<r.length;i++)r[i].dataSource?(String(t.initialDataBindDepth)==="-1"||t.initialDataBindDepth===undefined)&&(r[i].dataSourceUrl=r[i].dataSource):r[i].dataSourceUrl=t.dataSourceUrl;return r},_inherit:function(t,i){var u,f,r,e;if(t.dataSourceType&&(i.dataSourceType=t.dataSourceType),t.features&&t.features.length!==undefined&&t.features.length!==0)for(i.features&&i.features.length!==undefined||(i.features=[]),u=0;u<t.features.length;u++)if(t.features[u].inherit===!0){for(f=null,r=0;r<i.features.length;r++)if(i.features[r].name===t.features[u].name){f=i.features[r];break}f===null||f===undefined?(i.features.push(n.extend(!0,{},t.features[u])),i.features[i.features.length-1].columnSettings=[]):(e=!1,i.features[r].columnSettings&&i.features[r].columnSettings.length>0&&(e=!0),i.features[r]=n.extend(!0,{},t.features[u],f),e||(i.features[r].columnSettings=[]))}},_regevents:function(t,i){var r,u,f;r=n.proxy(i._headerrenderedinternal,i);u=n.proxy(this._handleBatchExpandRender,i);f=n.proxy(this._schemaGenerated,i);t.bind("iggridheaderrenderedinternal",r);t.bind("iggriddatarendered",u);t.bind("iggridschemagenerated",f);t.data("hr",r)},_regToggleEvent:function(t,i){var r;r=n.proxy(i._toggleInternal,i);t.undelegate(".ui-iggrid-expandcolumn > .ui-iggrid-expandbuttoncontainer","mousedown");t.delegate(".ui-iggrid-expandcolumn > .ui-iggrid-expandbuttoncontainer","mousedown",r)},commit:function(){var t=this.element;t.find(".ui-iggrid-table").each(function(){n(this).igGrid("commit")});t.igGrid("commit")},rollback:function(t){var i=this.element;i.find(".ui-iggrid-table").each(function(){n(this).igGrid("rollback",null,t)});i.igGrid("rollback",null,t)},_addToLog:function(t,i,r){var u=t.data("igGrid"),f=u?u.dataSource:null,e=f?f._accumulatedTransactionLog:null,o=e?e.length:0;if(o)for(this._dsLog=this._dsLog||[],this._dsLog.push(f);o-->0;)i.push(n.extend(!0,r?{layoutKey:u.options.key}:{},e[o]))},saveChanges:function(t,i){var r=this,e,u=r.element,o=r.options.updateUrl,f=[];if((this.options.rest||this.options.odata)&&this.options.restSettings){this._saveChangesForEachGrid();return}o&&u&&(delete r._dsLog,r._addToLog(u,f),u.find(".ui-iggrid-table").each(function(){r._addToLog(n(this),f,!0)}),e={type:"POST",url:o,data:{ig_transactions:JSON.stringify(f)},success:function(n,i,u){for(var f=r._dsLog,e=f?f.length:0;e-->0;)f[e]._saveChangesSuccess(n,i,u);t&&t(n,i,u)},error:function(n,t,u){for(var f=r._dsLog,e=f?f.length:0;e-->0;)f[e]._saveChangesError(n,t,u);i&&i(n,t,u)}},n.ajax(e))},_saveChangesForEachGrid:function(t,i){this.rootWidget().saveChanges(t,i);n.each(this.allChildrenWidgets(),function(){this.saveChanges(t,i)})},_handleBatchExpandRender:function(t,i){var c=0,e=i.owner,r,l,h,o,v,a,s,f,u;if(e.element[0].id===t.currentTarget.id){if(c=parseInt(e.element.attr("data-level"),10),c>0&&this.options.initialDataBindDepth===-1&&this._hds.settings.type==="json"&&n.type(e.options.dataSource)==="string"){for(r="",a=0,s="",f=e.options,f.childrenDataProperty===undefined?f.key&&(r=f.key):r+=f.childrenDataProperty,u=e.element,u=u.closest(".ui-iggrid-childarea").parent().prev();u.length>0;)a!==0&&(s+=this.options.pathSeparator),o=u.closest(".ui-iggrid-table").data("igGrid").options,v=o.primaryKey,s+=v+":"+u.attr("data-id"),o.childrenDataProperty===undefined?o.key&&(r+=this.options.pathSeparator+o.key):r+=this.options.pathSeparator+o.childrenDataProperty,u=u.closest(".ui-iggrid-childarea").parent().prev(),a++;r=r.split(this.options.pathSeparator).reverse().join(this.options.pathSeparator);s=s.split(this.options.pathSeparator).reverse().join(this.options.pathSeparator);h=this._hds.dataAt(s,r);l=e.dataSource;h[f.responseDataKey]&&(h[f.responseDataKey]=l._dataView,h.Metadata=l.metadata())}c>this.options.initialExpandDepth||(this.options.initialDataBindDepth===-1||this.options.initialDataBindDepth>=this.options.initialExpandDepth)&&this.options.initialExpandDepth!==-1&&setTimeout(n.proxy(this._batchExpand,i.owner),1)}},_inheritRestSettings:function(t,i,r,u,f){var o=f.restSettings,e=u.restSettings,c,s,h;t?h=t:(e.update.template||e.remove.template?(t=e.update.template||e.remove.template,t=t.replace("${id}",i)):(t=e.create.url||e.update.url||e.remove.url,t.substr(t.length-1)!=="/"&&(t+="/"),t+=i),r.substr(0,1)==="/"&&(r=r.substr(1)),t.substr(t.length-1)!=="/"&&(t+="/"),h=t+r);c={update:{url:h},create:{url:h},remove:{url:h}};o.create.template&&e.create.template&&(s=e.create.template.replace("${id}",i),o.create.template=s+"/"+o.create.template);o.remove.template&&e.remove.template&&(s=e.remove.template.replace("${id}",i),o.remove.template=s+"/"+o.remove.template);o.update.template&&e.update.template&&(s=e.update.template.replace("${id}",i),o.update.template=s+"/"+o.update.template);o=n.extend(!0,o,c)},_rowExpanded:function(n){var t,r,i,u;(t=n.parentrow.next(),t.length!==0&&t.is('tr[data-container="true"]'))&&(r=t.outerHeight(),i=n.parentrow.closest(".ui-iggrid-table").data("igGrid"),u=i._getScrollContainerHeight(),i._setScrollContainerHeight(u+r))},_rowCollapsed:function(n){var t=n.parentrow.next(),r,i,u;t.length!==0&&t.is('tr[data-container="true"]')&&(r=t.outerHeight(),i=n.parentrow.closest(".ui-iggrid-table").data("igGrid"),u=i._getScrollContainerHeight(),i._setScrollContainerHeight(u-r))},_hierarchicalGetFirstVisibleTR:function(t){var i="#"+this.element[0].id;return n(i+' > tbody > tr:not([data-container="true"])').filter(function(){return this.offsetTop+n(this).height()>t.top}).first()},_hierarchicalGetLastVisibleTR:function(t){var i="#"+this.element[0].id;return n(i+' > tbody > tr:not([data-container="true"])').filter(function(){return this.offsetTop<t.bottom}).last()},destroy:function(){this.tmpDataSource=null;this._rootgrid=null;this.rootWidget().destroy();n.Widget.prototype.destroy.call(this)}});n.extend(n.ui.igHierarchicalGrid,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){"use strict";n.widget("ui.igGridCellMerging",{css:{mergedCellsTop:"ui-iggrid-mergedcellstop",mergedCellsBottom:"ui-iggrid-mergedcellsbottom",mergedCell:"ui-iggrid-mergedcell"},options:{initialState:"regular"},events:{cellsMerging:"cellsMerging",cellsMerged:"cellsMerged"},_create:function(){this._db=0;this._sortingRequested=!1;this._v=!1},destroy:function(){return this._removePaint(),this._unregisterEvents(),n.Widget.prototype.destroy.call(this),this},_gridPaging:function(){this._db--},_gridSorting:function(){this._sortingRequested=!0},_gridSorted:function(){this._sortingRequested=!1},_gridRendered:function(){var i,t,u=this.grid.dataSource.settings.sorting.expressions,r,n;if(this.options.initialState==="merged"&&this._db===0&&this._sortingRequested===!1)for(n=0;n<this.grid._visibleColumns().length;n++)this._paintMergedCells(n,this.grid._visibleColumns()[n].key);else for(r=0;r<u.length;r++){for(i=u[r].fieldName,n=0;n<this.grid._visibleColumns().length;n++)if(this.grid._visibleColumns()[n].key===i){t=n;break}typeof this.grid._startColIndex=="number"&&(t-=this.grid._startColIndex);t!==null&&t!==undefined&&i&&this._paintMergedCells(t,i)}this._db++},_rrn:function(){this._db--;this._gridRendered()},_rcn:function(){this._db--;this._gridRendered()},_columnsCollectionModified:function(){this._gridRendered()},_paintMergedCells:function(n,t){var i,e,u,h,a,c=!0,o=!1,y=this.grid.hasFixedColumns(),s=0,r,f,l,v;for(y?(n=t?this.grid.element.data("igGridColumnFixing")._getVisibleIndex(t)+1:n+1+this._getSystemFixedColumnsCount(),i=this.grid.isFixedColumn(t)?this.grid.container().find("#"+this.grid.id()+"_fixed tbody tr>td:nth-child("+n+")"):this.grid.container().find("#"+this.grid.id()+" tbody tr>td:nth-child("+n+")")):i=this.grid.container().find("#"+this.grid.id()+" tbody tr>td:nth-child("+(n+1+this._getSystemColumnsCount())+")"),this._addVirtualBorderCells(i,t),e=i.eq(0),r=1;r<i.length;r++){if(u=i.eq(r),h=this._getComparableCellText(e),a=this._getComparableCellText(u),h===a&&h!==l){if(o===!1&&(f=this._getEventArgsForCell(e),v=this._trigger(this.events.cellsMerging,this,f),v!==!0)){l=h;e=u;continue}l=null;o=!0;c===!0&&(i.eq(r-1)[0].fictive||i.eq(r-1).addClass(this.css.mergedCellsTop),c=!1,s++);u[0].fictive||u.addClass(this.css.mergedCell);s++}else o===!0&&(f.count=s,s=0,this._trigger(this.events.cellsMerged,this,f),i.eq(r-1).addClass(this.css.mergedCellsBottom),o=!1),c=!0;e=u}o===!0&&(f.count=s,this._trigger(this.events.cellsMerged,this,f),i.eq(i.length-1)[0].fictive||i.eq(i.length-1).addClass(this.css.mergedCellsBottom))},_addVirtualBorderCells:function(n,t){var i=this.grid.dataSource.dataView();this._v===!0&&(this.grid._startRowIndex>0&&n.splice(0,0,{txt:String(i[this.grid._startRowIndex-1][t]),fictive:!0}),this.grid._startRowIndex+this.grid._virtualRowCount<this.grid.dataSource.dataView().length&&n.splice(n.length,0,{txt:String(i[this.grid._startRowIndex+this.grid._virtualRowCount][t]),fictive:!0}))},_getSystemFixedColumnsCount:function(){var n=this.grid.fixedContainer().find("tbody>tr:not([data-container='true'],[data-grouprow='true']):first");return n.children("[data-parent='true'],[data-skip='true'],th").length},_getSystemColumnsCount:function(){var n=this.grid.container().find("#"+this.grid.id()+" tbody>tr:not([data-container='true'],[data-grouprow='true']):first");return n.children("[data-parent='true'],[data-skip='true'],th").length},_getEventArgsForCell:function(n){var i,t,r,u;return n[0].fictive?(i=null,t=null,r=this.grid._startRowIndex?this.grid._startRowIndex-1:-1,u=n[0].txt):(i=n.closest("tr"),t=i.attr("data-id"),r=this._getVisibleRowIndex(i),(t===""||t===null||t===undefined)&&(t=r),u=n.html()),{owner:this,row:i,rowIndex:r,rowKey:t,grid:this.grid,value:u}},_getComparableCellText:function(n){var t=n[0].fictive?n[0].txt:n.html().replace(/^&nbsp;$/,"");return this.grid.dataSource.settings.sorting.caseSensitive===!1&&(t=t.toLowerCase()),t},_getVisibleRowIndex:function(n){return n.closest("tbody").children("tr:not([data-container='true'],[data-grouprow='true'])").index(n)+(this.grid._startRowIndex||0)},_removePaint:function(){for(var r=this.grid.container().find("#"+this.grid.id()+"> tbody > tr:not([data-container='true'],[data-grouprow='true'])"),i=r.children("td."+this.css.mergedCellsTop+",td."+this.css.mergedCell),t=0;t<i.length;t++)n(i[t]).removeClass(this.css.mergedCellsTop).removeClass(this.css.mergedCell).removeClass(this.css.mergedCellsBottom)},_createHandlers:function(){this._gridRenderedHandler=n.proxy(this._gridRendered,this);this._sortingInitiatedHandler=n.proxy(this._gridSorting,this);this._sortingHandler=n.proxy(this._gridSorted,this);this._pagingHandler=n.proxy(this._gridPaging,this);this._virtualRowsHandler=n.proxy(this._rrn,this);this._virtualColumnsHandler=n.proxy(this._rcn,this);this._columnsCollectionModifiedHandler=n.proxy(this._columnsCollectionModified,this)},_registerEvents:function(){this.grid.element.bind("ig_gridrendered",this._gridRenderedHandler);this.grid.element.bind("iggridsortingcolumnsorting",this._sortingInitiatedHandler);this.grid.element.bind("iggridsortingcolumnsorted",this._sortingHandler);this.grid.element.bind("iggridpagingpageindexchanging",this._pagingHandler);this.grid.element.bind("iggridvirtualrecordsrender",this._virtualRowsHandler);this.grid.element.bind("iggridvirtualhorizontalscroll",this._virtualColumnsHandler);this.grid.element.bind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler)},_unregisterEvents:function(){this.grid.element.unbind("ig_gridrendered",this._gridRenderedHandler);this.grid.element.unbind("iggridsortingcolumnsorting",this._sortingInitiatedHandler);this.grid.element.unbind("iggridsortingcolumnsorted",this._sortingHandler);this.grid.element.unbind("iggridpagingpageindexchanging",this._pagingHandler);this.grid.element.unbind("iggridvirtualrecordsrender",this._virtualRowsHandler);this.grid.element.unbind("iggridvirtualhorizontalscroll",this._virtualColumnsHandler);this.grid.element.unbind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler)},_injectGrid:function(n){this.grid=n;this._v=this.grid.options.virtualization===!0||this.grid.options.rowVirtualization===!0;this._createHandlers();this._registerEvents()}});n.extend(n.ui.igGridCellMerging,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridLoadOnDemand",{options:{type:null,chunkSize:25,recordCountKey:null,chunkSizeUrlKey:null,chunkIndexUrlKey:null,defaultChunkIndex:0,currentChunkIndex:0,loadTrigger:"auto",loadMoreDataButtonText:n.ig.GridLoadOnDemand.locale.loadMoreDataButtonText},events:{rowsRequesting:"rowsRequesting",rowsRequested:"rowsRequested"},_loadingIndicator:null,_injectGrid:function(t){this.grid=t;this._checkNotSupportedScenarios();this.options.currentChunkIndex=this.options.defaultChunkIndex;this.options.type===null&&(this.options.type=this.grid._inferOpType());this.grid.dataSource.settings.paging.type=this.options.type||"remote";this._defaultChunkSize=parseInt(this.options.chunkSize,10)*(this.options.defaultChunkIndex+1);this.grid.dataSource.settings.paging.pageSize=this._defaultChunkSize;this.options.chunkSizeUrlKey!==null&&this.options.chunkIndexUrlKey&&(this.grid.dataSource.settings.paging.pageSizeUrlKey=this.options.chunkSizeUrlKey,this.grid.dataSource.settings.paging.pageIndexUrlKey=this.options.chunkIndexUrlKey);this.options.recordCountKey!==null&&(this.grid.dataSource.settings.responseTotalRecCountKey=this.options.recordCountKey);this.grid.dataSource.settings.paging.enabled=!0;this.options.loadTrigger==="auto"&&(this._verticalScrollHandler=n.proxy(this._probeForNextPage,this));this._appendRecordsHandler=n.proxy(this._appendRecords,this);this.grid.element.bind("iggridrowsrendered",this._rowsRenderingHandler)},_dataRendered:function(){var i="#"+this.grid.scrollContainer()[0].id,t,r;this.grid.scrollContainer().css("background-color","white");this._originalDataSourceCallback=this.grid.dataSource.settings.callback;this._initLoadingIndicator();this.options.loadTrigger==="auto"&&(n(i).unbind("scroll",this._verticalScrollHandler),n(i).bind("scroll",this._verticalScrollHandler),this._probeForNextPage());this._requestPending=!1;this.options.loadTrigger==="button"&&(this._buttonRow||(t=this.grid.id()+"_loadMoreButton",r=this.grid.options.height?this.grid.scrollContainer():this.grid.container(),this._buttonRow=r.append("<div class='ui-iggrid-loadmorebutton'><input type='button' id='"+t+"'><\/input><\/div>"),n("#"+t).igButton({labelText:this.options.loadMoreDataButtonText,click:n.proxy(this._nextChunk,this),width:"100%"})));this._loadingIndicator&&this._hideLoading()},_checkNotSupportedScenarios:function(){if(this.options.loadTrigger==="auto"&&!this.grid.options.height)throw new Error(n.ig.GridLoadOnDemand.locale.loadOnDemandRequiresHeight);if(this.grid.options.virtualization)throw new Error(n.ig.GridLoadOnDemand.locale.virtualizationNotSupported);var i,t,r=this.grid.options.features,u=r.length;if(u!==1)for(i=0;i<u;i++)if(t=r[i].name,t){t=t.toLowerCase();switch(t){case"groupby":throw new Error(n.ig.GridLoadOnDemand.locale.groupByNotSupported);case"paging":throw new Error(n.ig.GridLoadOnDemand.locale.pagingNotSupported);case"cellmerging":throw new Error(n.ig.GridLoadOnDemand.locale.cellMergingNotSupported);}}},_setOption:function(t){if(n.Widget.prototype._setOption.apply(this,arguments),t==="defaultChunkIndex")throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);(t==="currentChunkIndex"||t==="chunkSize")&&(this.grid.dataSource.settings.paging.pageSize=(this.options.currentChunkIndex+1)*this.options.chunkSize,this.grid.dataSource.dataBind())},_initLoadingIndicator:function(){this._loadingIndicator=this.grid.container().igLoading().data("igLoading").indicator()},_nextChunk:function(){var n=!0;this.grid.dataSource.pageIndex()>=this.grid.dataSource.pageCount()-1||(n=this._trigger(this.events.rowsRequesting,null,{owner:this,chunkIndex:this.options.currentChunkIndex+1,chunkSize:this.options.chunkSize}),n&&(this._showLoading(),this.grid.dataSource.settings.paging.pageSize=this.options.chunkSize,this.grid.dataSource.settings.paging.pageIndex=this.options.currentChunkIndex,this.grid.dataSource.settings.paging.appendPage=!0,this._originalDataSourceCallback=this.grid.dataSource.settings.callback,this.grid.dataSource.settings.callback=this._appendRecordsHandler,this._requestPending=!0,this.grid.dataSource.nextPage()))},_showLoading:function(){this._loadingIndicator.show()},_hideLoading:function(){this._loadingIndicator.hide()},destroy:function(){var i=this.grid.id()+"_loadMoreButton",r="#"+this.grid.scrollContainer()[0].id,u=this.grid.options.height?this.grid.scrollContainer():this.grid.container(),t=this.grid.container().find("div.ui-iggrid-loadmorebutton");return n("#"+i).igButton("destroy"),t&&t.remove(),this.grid.element.unbind("iggridrowsrendered",this._rowsRenderingHandler),n(r).unbind("scroll",this._verticalScrollHandler),n.Widget.prototype.destroy.call(this),this},_appendRecords:function(n,t){var i,r,u;if(n===!0)for(r=this.grid.dataSource.recordsForPage(this.grid.dataSource.settings.paging.pageIndex),i=0;i<r.length;i++)this.grid.renderNewRow(r[i]);if(this._requestPending=!1,this.grid.dataSource.settings.paging.pageSize=this.options.chunkSize*(this.options.currentChunkIndex+1),this.grid.dataSource.settings.paging.pageIndex=0,this.grid.dataSource.settings.paging.appendPage=!1,this.grid.dataSource.settings.callback=this._originalDataSourceCallback,this._hideLoading(),n===!1&&(u=this._trigger(this.grid.events.requestError,null,{owner:this,message:t}),u))throw new Error(t);this.options.currentChunkIndex++;this.grid.dataSource.settings.paging.pageSize=this.options.chunkSize*(this.options.currentChunkIndex+1);this._trigger(this.events.rowsRequested,null,{owner:this,chunkIndex:this.options.currentChunkIndex,chunkSize:this.options.chunkSize,rows:r})},_refreshData:function(){this._showLoading();this.grid.dataSource.settings.paging.appendPage=!1;this.grid.dataSource.settings.callback=this._originalDataSourceCallback;this._requestPending=!0;this.grid.dataSource.dataBind()},_probeForNextPage:function(){var t=(this.grid.scrollContainer().scrollTop()+this.grid.scrollContainer().height())/n(this.grid.element).height();t>=1&&!this._requestPending&&this._nextChunk()},nextChunk:function(){this._nextChunk()}});n.extend(n.ui.igGridLoadOnDemand,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridMultiColumnHeaders",{css:{multiHeaderCell:"ui-iggrid-multiheader-cell"},options:{},_createWidget:function(){n.Widget.prototype._createWidget.apply(this,arguments)},_renderingMultiColumnHeader:function(){this._renderHeaderColumns(this.grid._headerParent);this.grid._trigger(this.grid.events.headerRendered,null,{owner:this.grid,table:this.grid.headersTable()});this.grid._headerRenderCancel=!1},_analyzeRowspanRows:function(t,i){for(var r,e=[],f=this.grid._maxLevel-i,o,u=0;u<t.length;u++)o=1,r=t[u],n.type(r.rowspan)==="string"&&(r.rowspan=parseInt(r.rowspan,10)),r.rowspan>0&&(o=r.rowspan),r.group!==undefined&&r.group!==null?e.push({group:r.group,level:i+o}):r.level===0&&(r.rowspan===null||r.rowspan===undefined||isNaN(r.rowspan))&&f+1-r.level>0&&(r.rowspan=f+1-r.level),(this._rows[f]===undefined||this._rows[f]===null)&&(this._rows[f]=[]),this._rows[f].push(r);for(u=0;u<e.length;u++)this._analyzeRowspanRows(e[u].group,e[u].level)},_renderRow:function(t,i,r){for(var u,e,o=n('<tr data-mch-level="'+r+'"><\/tr>').appendTo(t),f=0;f<i.length;f++)u=i[f],e=this._createHeaderColumnMarkup(u.headerText,u.colspan,u.key,u.level,u.identifier,u.rowspan),e.appendTo(o)},_renderHeaderColumns:function(t){var u,i,o,r,w,h,c,l,s,f,b=this.grid.options.columns,e,a,k=b.length,v=this.grid._initialHiddenColumns,y=this.grid.id(),p;for(this._arrayTargetRowspan=[],this._totalColumnsLength=t.find("colgroup col").length,p=t.find("thead"),t=p.length>0?p.empty():n("<thead><\/thead>").appendTo(t),this._tr={},w=this.grid._oldCols,this._rows={},this._analyzeRowspanRows(w,0),i=this.grid._maxLevel;i>=0;i--)this._rows[i]!==null&&this._rows[i]!==undefined&&this._renderRow(t,this._rows[i],i);for(i=0;i<k;i++)u=this.grid.container().find("#"+y+"_"+b[i].key).data("columnIndex",i),u.data("data-mch-order",i),this.grid._headerCells.push(u);if(v)for(l=this.grid.headersTable().find("thead"),i=0;i<v.length;i++)for(c=v[i].key,this.grid.container().find("#"+y+"_"+c).css("display","none"),h=this.grid._getParentsMultiHeader(c),o=0;o<h.length;o++)if(s=h[o],s.level>0&&(f=this.grid._getMultiHeaderColumnById(s.identifier),f&&f.children)){if(e=f.children,a=!0,f.hidden!==!0)for(r=0;r<e.length;r++)if(u=e[r].level===0?this.grid.container().find("#"+y+"_"+e[r].key):l.find("th[data-mch-id="+e[r].identifier+"]"),!u.is(":visible")){a=!1;break}a&&l.find("th[data-mch-id="+s.identifier+"]").css("display","none")}},_createHeaderColumnMarkup:function(t,i,r,u,f,e){var s=this.grid,h,c=!0,a=s.css.headerClass,l=n("<th><\/th>"),o;return o=l.append('<span class="'+s.css.headerTextClass+'">'+t+"<\/span>").attr("role","rowheader").addClass(a),i>1&&l.attr("colspan",i),e>1&&o.attr("rowspan",e),r&&o.attr("id",this.grid.element[0].id+"_"+r),u===0?(h=r,c=!1,o.attr("data-isheadercell",!0)):(h=f,o.addClass(this.css.multiHeaderCell),o.attr("data-mch-id",f)),s._trigger(s.events.headerCellRendered,null,{owner:s,th:o,columnKey:h,isMultiColumnHeader:c}),o},getMultiColumnHeaders:function(){return this.grid._oldCols},destroy:function(){return n.Widget.prototype.destroy.call(this),this},_injectGrid:function(n){this.grid=n}});n.extend(n.ui.igGridMultiHeaders,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridPaging",{css:{pagerClass:"ui-widget ui-iggrid-pager ui-helper-clearfix ui-corner-bottom ui-widget-header ui-iggrid-footer",pageLink:"ui-iggrid-pagelink ui-helper-reset",page:"ui-iggrid-page ui-state-default ui-corner-all",pageHover:"ui-iggrid-page-hover ui-state-hover",pageList:"ui-helper-reset ui-iggrid-pagelist ui-iggrid-paging-item",pageLinkCurrent:"ui-iggrid-pagelinkcurrent",pageCurrent:"ui-iggrid-pagecurrent ui-state-active ui-corner-all",pageFocused:"ui-iggrid-pagefocused ui-state-focus",nextPage:"ui-iggrid-nextpage ui-iggrid-paging-item ui-state-default",prevPage:"ui-iggrid-prevpage ui-iggrid-paging-item ui-state-default",firstPage:"ui-iggrid-firstpage ui-iggrid-paging-item ui-state-default ui-corner-left",lastPage:"ui-iggrid-lastpage ui-iggrid-paging-item ui-state-default ui-corner-right",nextPageLabel:"ui-iggrid-nextpagelabel",prevPageLabel:"ui-iggrid-prevpagelabel",firstPageLabel:"ui-iggrid-firstpagelabel",lastPageLabel:"ui-iggrid-lastpagelabel",nextPageLabelDisabled:"ui-iggrid-nextpagelabeldisabled ui-state-disabled",prevPageLabelDisabled:"ui-iggrid-prevpagelabeldisabled ui-state-disabled",firstPageLabelDisabled:"ui-iggrid-firstpagelabeldisabled ui-state-disabled",lastPageLabelDisabled:"ui-iggrid-lastpagelabeldisabled ui-state-disabled",nextPageImage:"ui-iggrid-pageimg ui-iggrid-nextpageimg ui-icon ui-icon-triangle-1-e",prevPageImage:"ui-iggrid-pageimg ui-iggrid-prevpageimg ui-icon ui-icon-triangle-1-w",firstPageImage:"ui-iggrid-pageimg ui-iggrid-firstpageimg ui-icon ui-icon-arrowstop-1-w",lastPageImage:"ui-iggrid-pageimg ui-iggrid-lastpageimg ui-icon ui-icon-arrowstop-1-e",nextPageImageDisabled:"ui-iggrid-pageimg ui-iggrid-nextpageimgdisabled ui-icon ui-state-disabled ui-icon-triangle-1-e",prevPageImageDisabled:"ui-iggrid-pageimg ui-iggrid-prevpageimgdisabled ui-icon ui-state-disabled ui-icon-triangle-1-w",firstPageImageDisabled:"ui-iggrid-pageimg ui-iggrid-firstpageimgdisabled ui-icon ui-state-disabled ui-icon-arrowstop-1-w",lastPageImageDisabled:"ui-iggrid-pageimg ui-iggrid-lastpageimgdisabled ui-icon ui-state-disabled ui-icon-arrowstop-1-e",pagerRecordsLabel:"ui-iggrid-pagerrecordslabel ui-iggrid-results",pageSizeLabel:"ui-iggrid-pagesizelabel",pageSizeDropDown:"ui-iggrid-pagesizedropdown",pageSizeDropDownContainer:"ui-helper-clearfix ui-iggrid-pagesizedropdowncontainer",pageSizeDropDownContainerAbove:"ui-widget ui-helper-clearfix ui-iggrid-pagesizedropdowncontainerabove ui-iggrid-toolbar ui-widget-header and ui-corner-top",pageDropDownContainer:"ui-iggrid-pagedropdowncontainer",pageDropDownLabels:"ui-iggrid-pagedropdownlabels",pageDropDown:"ui-iggrid-pagedropdown",pagerRightAreaContainer:"ui-iggrid-paging",pagingResults:"ui-iggrid-results"},options:{pageSize:25,recordCountKey:null,pageSizeUrlKey:null,pageIndexUrlKey:null,currentPageIndex:0,type:null,showPageSizeDropDown:!0,pageSizeDropDownLabel:n.ig.GridPaging.locale.pageSizeDropDownLabel,pageSizeDropDownTrailingLabel:n.ig.GridPaging.locale.pageSizeDropDownTrailingLabel,pageSizeDropDownLocation:"above",showPagerRecordsLabel:!0,pagerRecordsLabelTemplate:n.ig.GridPaging.locale.pagerRecordsLabelTemplate,nextPageLabelText:n.ig.GridPaging.locale.nextPageLabelText,prevPageLabelText:n.ig.GridPaging.locale.prevPageLabelText,firstPageLabelText:n.ig.GridPaging.locale.firstPageLabelText,lastPageLabelText:n.ig.GridPaging.locale.lastPageLabelText,showFirstLastPages:!0,showPrevNextPages:!0,currentPageDropDownLeadingLabel:n.ig.GridPaging.locale.currentPageDropDownLeadingLabel,currentPageDropDownTrailingLabel:n.ig.GridPaging.locale.currentPageDropDownTrailingLabel,currentPageDropDownTooltip:n.ig.GridPaging.locale.currentPageDropDownTooltip,pageSizeDropDownTooltip:n.ig.GridPaging.locale.pageSizeDropDownTooltip,pagerRecordsLabelTooltip:n.ig.GridPaging.locale.pagerRecordsLabelTooltip,prevPageTooltip:n.ig.GridPaging.locale.prevPageTooltip,nextPageTooltip:n.ig.GridPaging.locale.nextPageTooltip,firstPageTooltip:n.ig.GridPaging.locale.firstPageTooltip,lastPageTooltip:n.ig.GridPaging.locale.lastPageTooltip,pageTooltipFormat:n.ig.GridPaging.locale.pageTooltipFormat,pageSizeList:[],pageCountLimit:10,visiblePageCount:5,defaultDropDownWidth:70,delayOnPageChanged:350},events:{pageIndexChanging:"pageIndexChanging",pageIndexChanged:"pageIndexChanged",pageSizeChanging:"pageSizeChanging",pageSizeChanged:"pageSizeChanged",pagerRendering:"pagerRendering",pagerRendered:"pagerRendered"},_loadingIndicator:null,_isPaging:!1,_setOption:function(t,i){var f,r,u;if(u=this._pager(),n.Widget.prototype._setOption.apply(this,arguments),t==="type"||t==="showPageSizeDropDown"||t==="pageSizeDropDownLocation"||t==="showPagerRecordsLabel"||t==="visiblePageCount")throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);t==="pageSize"?this.pageSize(i):t==="currentPageIndex"?this.pageIndex(i):t==="showFirstLastPages"?i===!0?(u.find(".ui-iggrid-firstpage").show(),u.find(".ui-iggrid-lastpage").show()):(u.find(".ui-iggrid-firstpage").hide(),u.find(".ui-iggrid-lastpage").hide()):t==="showPrevNextPages"?i===!0?(u.find(".ui-iggrid-prevpage").show(),u.find(".ui-iggrid-nextpage").show()):(u.find(".ui-iggrid-prevpage").hide(),u.find(".ui-iggrid-nextpage").hide()):t==="pageSizeList"?(f=n.type(i)==="string"?i.split(","):i,this._pageSizeDD&&this._pageSizeDD.igEditor("option","listItems",f)):t==="nextPageLabelText"?(r=u.find(".ui-iggrid-nextpagelabel"),r=r.length===0?u.find(".ui-iggrid-nextpagelabeldisabled"):r,r.text(i)):t==="prevPageLabelText"?(r=u.find(".ui-iggrid-prevpagelabel"),r=r.length===0?u.find(".ui-iggrid-prevpagelabeldisabled"):r,r.text(i)):t==="firstPageLabelText"?(r=u.find(".ui-iggrid-firstpagelabel"),r=r.length===0?u.find(".ui-iggrid-firstpagelabeldisabled"):r,r.text(i)):t==="lastPageLabelText"&&(r=u.find(".ui-iggrid-lastpagelabel"),r=r.length===0?u.find(".ui-iggrid-nextpagelabeldisabled"):r,r.text(i))},pageIndex:function(n){return n!==null&&n!==undefined&&(this._overrideLabel=!0,this.options.currentPageIndex=n),n!==undefined&&n!==null&&this.grid.element.trigger("iggriduisoftdirty",{owner:this}),this.grid._hasUnboundColumns&&this.options.type==="remote"&&(this.grid._rebindUnboundColumns=!0),this.grid.dataSource.pageIndex(n)},pageSize:function(n){var t=!0;if(n)this.grid.dataSource.settings.paging.pageIndex=0,this.options.currentPageIndex=0,t=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid}),t&&(this._showLoading(),this.grid._hasUnboundColumns&&this.options.type==="remote"&&(this.grid._rebindUnboundColumns=!0),this.options.pageSize=n,this.grid.dataSource.pageSize(n)),this._pageSizeDD&&this._pageSizeDD.igEditor("value",n);else return this.grid.dataSource.pageSize()},_initLoadingIndicator:function(){this._loadingIndicator=this.grid.container().igLoading().data("igLoading").indicator()},_nextPage:function(n){var t=!0,i=!0;if(t=this._trigger(this.events.pageIndexChanging,null,{newPageIndex:this.options.currentPageIndex+1,currentPageIndex:this.options.currentPageIndex,owner:this}),t){if(this.options.currentPageIndex>=this.grid.dataSource.pageCount()-1)return;this.options.currentPageIndex=this.options.currentPageIndex+1;i=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid});this._shouldFirePageIndexChanged=!0;i&&(this._showLoading(),this._overrideLabel=!0,this.grid.element.trigger("iggriduisoftdirty",{owner:this}),this.grid._hasUnboundColumns&&this.options.type==="remote"&&(this.grid._rebindUnboundColumns=!0),this.grid.dataSource.nextPage())}n&&(n.stopPropagation(),n.preventDefault())},_prevPage:function(n){var t=!0,i=!0;if(t=this._trigger(this.events.pageIndexChanging,null,{newPageIndex:this.options.currentPageIndex-1,currentPageIndex:this.options.currentPageIndex,owner:this}),t){if(this.options.currentPageIndex===0)return;this.options.currentPageIndex=this.options.currentPageIndex-1;i=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid});this._shouldFirePageIndexChanged=!0;i&&(this._showLoading(),this._overrideLabel=!0,this.grid.element.trigger("iggriduisoftdirty",{owner:this}),this.grid._hasUnboundColumns&&this.options.type==="remote"&&(this.grid._rebindUnboundColumns=!0),this.grid.dataSource.prevPage())}n&&(n.stopPropagation(),n.preventDefault())},_firstPage:function(n){var t=!0,i=!0;t=this._trigger(this.events.pageIndexChanging,null,{newPageIndex:0,currentPageIndex:this.options.currentPageIndex,owner:this});t&&(i=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid}),this._shouldFirePageIndexChanged=!0,i&&(this._showLoading(),this.pageIndex(0)));n&&(n.stopPropagation(),n.preventDefault())},_lastPage:function(n){var t=!0,i=!0;t=this._trigger(this.events.pageIndexChanging,null,{newPageIndex:this.grid.dataSource.pageCount()-1,currentPageIndex:this.options.currentPageIndex,owner:this});t&&(i=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid}),this._shouldFirePageIndexChanged=!0,i&&(this._showLoading(),this.pageIndex(this.grid.dataSource.pageCount()-1)));n&&(n.stopPropagation(),n.preventDefault())},_showLoading:function(){this._loadingIndicator.show()},_hideLoading:function(){this._loadingIndicator.hide()},_bindEvents:function(){var t=this,r=this.grid,u=!0,i,f=!0;i="#"+r.element[0].id+"_pager";n(i+" li").bind({mousedown:function(i){var o=n(i.target),e=o.data("pageIndex");e===undefined&&(e=o.parent().data("pageIndex"));n.type(e)==="number"&&e!==t.options.currentPageIndex&&(u=t._trigger(t.events.pageIndexChanging,i,{newPageIndex:e,currentPageIndex:t.options.currentPageIndex,owner:t}),t._shouldFirePageIndexChanged=!0,u&&(f=t.grid._trigger(t.grid.events.dataBinding,null,{owner:t.grid}),f&&(t._showLoading(r.element.children("tbody")),t.pageIndex(e))))}});n(i+" li").bind({mouseover:function(i){n(i.currentTarget).addClass(t.css.pageHover)},mouseout:function(i){n(i.currentTarget).removeClass(t.css.pageHover)}});this.grid.element.bind("iggridupdatinginternalrowdeleted",this._rowDeletedHandler);this.grid.element.bind("iggridupdatinginternalrowadded",this._rowAddedHandler)},_gridRendered:function(n){var t=this;this.options.showPageSizeDropDown!==!0||this.options.pageSizeDropDownLocation!=="above"||this._pageSizeDropDownRendered||t._renderPageSizeDropDown(n,!0);this.grid.options.autoAdjustHeight&&(this.grid._initializeHeights(),this.grid._adjustLastColumnWidth());this.grid.options.caption!==null&&this.grid._caption().removeClass("ui-corner-top")},_rowDeleted:function(n,t){if(this.options.type!=="remote"&&t.owner.grid.id()===this.grid.id()){var i=this.options.currentPageIndex,r=this.grid.dataSource.pageCount();i>0&&i+1>r&&i--;this.pageIndex(i)}},_rowAdded:function(n,t){if(this.options.type!=="remote"&&t.owner.grid.id()===this.grid.id()){var r=this.options.currentPageIndex,i=this.grid.dataSource.pageCount();r<i&&this.grid.options.autoCommit?this.pageIndex(i-1):this._dataRendered()}},_gridCommit:function(){if(this.options.type!=="remote")return this.pageIndex(this.options.currentPageIndex),!0},_plabel:function(){return this._pager().find(".ui-iggrid-pagerrecordslabel")},_pager:function(){return this.grid.container().find(".ui-iggrid-pager")},_dataRendered:function(){var k=this.grid.element[0].id,d,i,l,tt=toStaticHTML('<div id="'+k+'_pager"><\/div>'),it=toStaticHTML('<li class="${pageClass}"><a class="${pageLinkClass}" href="javascript:void(0);">${page}<\/a><\/li>'),r=null,h=0,c=0,o=0,a=0,g=!0,nt,w,v,t=0,f=0,b=this.options.pagerRecordsLabelTemplate,y=this,u=null,s=this.options.visiblePageCount,e=0,p=null;if(this._deleteOld(),g=this._trigger(this.events.pagerRendering,null,{dataSource:this.grid.dataSource,owner:this}),g){if(this.grid._shouldResetPaging&&(this.options.currentPageIndex=0,this.grid._shouldResetPaging=!1),this._plabel().length>0?this._pager().find(".ui-iggrid-paging").remove():this._pager().empty(),this._initLoadingIndicator(),this.grid.dataSource.pageSizeDirty()&&(this.options.currentPageIndex=this.grid.dataSource.pageIndex(),this.grid.dataSource.pageSizeDirty(!1)),this._pager().length===0?(k=this.grid.element[0].id,r=n(tt).appendTo(this.grid.container())):r=this._pager(),r.addClass(this.css.pagerClass),this.options.showPagerRecordsLabel&&(o=this.grid.dataSource.totalRecordsCount()>0?this.grid.dataSource.totalRecordsCount():this.grid.dataSource.totalLocalRecordsCount(),h=this.options.currentPageIndex===0?1:this.options.currentPageIndex*this.pageSize()+1,this.grid.dataSource._filter?(o=this.grid.dataSource._filteredData.length,a=this.grid.dataSource._filteredData.length):a=this.grid.dataSource.totalLocalRecordsCount(),c=this.options.currentPageIndex===0&&this.pageSize()<=o?this.pageSize():h+this.pageSize()>o?o:h-1+this.pageSize(),this.grid.dataSource.totalLocalRecordsCount()===0&&(h=0,c=0),c>a&&this.options.type==="local"&&(c=a),this.grid.container().find(".ui-iggrid-footer .ui-iggrid-results").data("overrideLabel")===0||this._overrideLabel||!this.grid.dataSource._filter?(this._plabel().remove(),b=b.replace("${startRecord}",h).replace("${endRecord}",c).replace("${recordCount}",o),p=n("<span>"+b+"<\/span>").appendTo(r).attr("id",r[0].id+"_label").addClass(this.css.pagerRecordsLabel).attr("title",this.options.pagerRecordsLabelTooltip).show()):this._plabel().length===0&&(p=n("<span><\/span>").appendTo(r).attr("id",r[0].id+"_label").addClass(this.css.pagerRecordsLabel).attr("title",this.options.pagerRecordsLabelTooltip).show()),p&&p.data("hideflag",!1),this._plabel().show(),this._overrideLabel=!1),d=this.grid.dataSource.pageCount(),u=n("<div><\/div>").appendTo(r).addClass(this.css.pagerRightAreaContainer),this.options.showFirstLastPages===!0&&this._renderFirstPage(u),this.options.showPrevNextPages===!0&&this._renderPrevPage(u),this.grid.dataSource.pageCount()<=this.options.pageCountLimit)for(nt=n("<ul><\/ul>").appendTo(u).addClass(this.css.pageList),this._pagerEvents?this._pager().undelegate("li a",this._pagerEvents):this._pagerEvents={keydown:function(t){(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(y._showLoading(),y.pageIndex(n(t.currentTarget).closest("li").data("pageIndex")),t.stopPropagation(),t.preventDefault())},focus:function(t){n(t.currentTarget).closest("li").addClass(y.css.pageFocused)},blur:function(t){n(t.currentTarget).closest("li").removeClass(y.css.pageFocused)}},this._pager().delegate("li a",this._pagerEvents),e=Math.floor(parseInt(s,10)/2),t=this.options.currentPageIndex-e,t<0&&(t=0),f=this.options.currentPageIndex+e,this.options.currentPageIndex-t<e&&(f+=e-(this.options.currentPageIndex-t)),this.grid.dataSource.pageCount()-(this.options.currentPageIndex+1)<e&&s%2!=0&&(t=t-(e-(this.grid.dataSource.pageCount()-(this.options.currentPageIndex+1)))),f>=this.grid.dataSource.pageCount()&&(f=this.grid.dataSource.pageCount()-1),t<0&&(t=0),s%2==0&&f-t<s-1&&(t-=s-1-(f-t)),t<0&&(t=0),i=t;i<=f&&i-t<s;i++)l=it.replace("${page}",i+1).replace("${pageLinkClass}",i===this.options.currentPageIndex?this.css.pageLinkCurrent:this.css.pageLink),l=l.replace("${pageClass}",i===this.options.currentPageIndex?this.css.pageCurrent:this.css.page),n(l).appendTo(nt).attr("title",this.options.pageTooltipFormat.replace("${index}",i+1)).data("pageIndex",i);else{for(w=[],i=1;i<=d;i++)w.push(i+this._empty());v=n("<div><\/div>").appendTo(u).addClass(this.css.pageDropDownContainer).attr("title",this.options.currentPageDropDownTooltip);n("<span><\/span>").appendTo(v).text(this.options.currentPageDropDownLeadingLabel).addClass(this.css.pageDropDownLabels);this._curPageDD=n("<span />").css("display","none").appendTo(v).addClass(this.css.pageDropDownContainer).igEditor({listItems:w,readOnly:!1,listMatchOnly:!0,width:this.options.defaultDropDownWidth,nullable:!1,listAutoComplete:!0,button:"dropdown",type:"text",value:this.options.currentPageIndex+1,dropDownTriggers:"button,focus",textChanged:n.proxy(this._onSelectDropDownPageIndex,this)}).css("display","");n("<span><\/span>").appendTo(v).text(this.options.currentPageDropDownTrailingLabel.replace("${count}",this.grid.dataSource.pageCount())).addClass(this.css.pageDropDownLabels)}this.options.showPrevNextPages===!0&&this._renderNextPage(u);this.options.showFirstLastPages===!0&&this._renderLastPage(u);this.options.showPageSizeDropDown&&this.options.pageSizeDropDownLocation==="inpager"&&this._renderPageSizeDropDown(u);this._bindEvents(r);this._hideLoading(this.grid.element.children("tbody"));r.show();this._shouldFirePageSizeChanged&&(this._shouldFirePageSizeChanged=!1,this._trigger(this.events.pageSizeChanged,null,{pageSize:this.pageSize(),owner:this}));this._trigger(this.events.pagerRendered,null,{dataSource:this.grid.dataSource,owner:this});this._shouldFirePageIndexChanged&&(this._shouldFirePageIndexChanged=!1,this._trigger(this.events.pageIndexChanged,null,{pageIndex:this.options.currentPageIndex,owner:this}))}},_onSelectDropDownPageIndex:function(n,t){var i=this;this._timeoutId!==undefined&&clearTimeout(this._timeoutId);parseInt(this.options.delayOnPageChanged,10)===0?this._dropDownPageIndex(n,t):this._timeoutId=setTimeout(function(){i._dropDownPageIndex(n,t)},this.options.delayOnPageChanged)},_dropDownPageIndex:function(n,t){var i=!0,r=!0;i=this._trigger(this.events.pageIndexChanging,null,{newPageIndex:parseInt(t.text,10)-1,currentPageIndex:this.options.currentPageIndex,owner:this});i?(r=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid}),r&&(this._shouldFirePageIndexChanged=!0,t.text&&(this._showLoading(),this.pageIndex(parseInt(t.text,10)-1))),this.grid.element.trigger("iggriduisoftdirty",{owner:this})):t.owner.value(this.options.currentPageIndex+1)},_renderPrevPage:function(t){var i,u=this,r;i=n("<div><\/div>").appendTo(t).addClass(this.css.prevPage).attr("title",this.options.prevPageTooltip);this.options.currentPageIndex===0?(n("<span><\/span>").appendTo(i).addClass(this.css.prevPageImageDisabled),n("<span><\/span>").appendTo(i).addClass(this.css.prevPageLabelDisabled).append(this.options.prevPageLabelText)):(i.bind("mousedown",n.proxy(this._prevPage,this)),r=n("<span><\/span>").appendTo(i).addClass(this.css.prevPageImage),n("<span><\/span>").appendTo(i).addClass(this.css.prevPageLabel).append(this.options.prevPageLabelText),r.wrap(toStaticHTML('<a href="javascript:void(0);"><\/a>')),r.parent().bind({keydown:function(t){(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(u._prevPage(),t.stopPropagation(),t.preventDefault())},focus:function(t){n(t.currentTarget).closest("div").removeClass("ui-state-default").addClass("ui-state-focus")},blur:function(t){n(t.currentTarget).closest("div").removeClass("ui-state-focus").addClass("ui-state-default")}}))},_renderNextPage:function(t){var i,u=this,r;i=n("<div><\/div>").appendTo(t).addClass(this.css.nextPage).attr("title",this.options.nextPageTooltip);this.options.currentPageIndex===this.grid.dataSource.pageCount()-1?(n("<span><\/span>").appendTo(i).addClass(this.css.nextPageLabelDisabled).append(this.options.nextPageLabelText),n("<span><\/span>").appendTo(i).addClass(this.css.nextPageImageDisabled)):(i.bind("mousedown",n.proxy(this._nextPage,this)),n("<span><\/span>").appendTo(i).addClass(this.css.nextPageLabel).append(this.options.nextPageLabelText),r=n("<span><\/span>").appendTo(i).addClass(this.css.nextPageImage),r.wrap(toStaticHTML('<a href="javascript:void(0);"><\/a>')),r.parent().bind({keydown:function(t){(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(u._nextPage(),t.stopPropagation(),t.preventDefault())},focus:function(t){n(t.currentTarget).closest("div").removeClass("ui-state-default").addClass("ui-state-focus")},blur:function(t){n(t.currentTarget).closest("div").removeClass("ui-state-focus").addClass("ui-state-default")}}))},_renderFirstPage:function(t){var i,u=this,r;i=n("<div><\/div>").appendTo(t).addClass(this.css.firstPage).attr("title",this.options.firstPageTooltip);this.options.currentPageIndex===0?(n("<span><\/span>").appendTo(i).addClass(this.css.firstPageImageDisabled),n("<span><\/span>").appendTo(i).addClass(this.css.firstPageLabelDisabled).append(this.options.firstPageLabelText)):(i.bind("mousedown",n.proxy(this._firstPage,this)),r=n("<span><\/span>").appendTo(i).addClass(this.css.firstPageImage),n("<span><\/span>").appendTo(i).addClass(this.css.firstPageLabel).append(this.options.firstPageLabelText),r.wrap(toStaticHTML('<a href="javascript:void(0);"><\/a>')),r.parent().bind({keydown:function(t){(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(u._firstPage(),t.stopPropagation(),t.preventDefault())},focus:function(t){n(t.currentTarget).closest("div").removeClass("ui-state-default").addClass("ui-state-focus")},blur:function(t){n(t.currentTarget).closest("div").removeClass("ui-state-focus").addClass("ui-state-default")}}))},_renderLastPage:function(t){var i,u=this,r;i=n("<div><\/div>").appendTo(t).addClass(this.css.lastPage).attr("title",this.options.lastPageTooltip);this.options.currentPageIndex===this.grid.dataSource.pageCount()-1?(n("<span><\/span>").appendTo(i).addClass(this.css.lastPageLabelDisabled).append(this.options.lastPageLabelText),n("<span><\/span>").appendTo(i).addClass(this.css.lastPageImageDisabled)):(i.bind("mousedown",n.proxy(this._lastPage,this)),n("<span><\/span>").appendTo(i).addClass(this.css.lastPageLabel).append(this.options.lastPageLabelText),r=n("<span><\/span>").appendTo(i).addClass(this.css.lastPageImage),r.wrap(toStaticHTML('<a href="javascript:void(0);"><\/a>')),r.parent().bind({keydown:function(t){(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(u._lastPage(),t.stopPropagation(),t.preventDefault())},focus:function(t){n(t.currentTarget).closest("div").removeClass("ui-state-default").addClass("ui-state-focus")},blur:function(t){n(t.currentTarget).closest("div").removeClass("ui-state-focus").addClass("ui-state-default")}}))},_renderPageSizeDropDown:function(t,i){var u=this.grid.id()+"_editor",f,r;f=this.options.pageSizeDropDownLocation==="above"?this.css.pageSizeDropDownContainerAbove:this.css.pageSizeDropDownContainer;t=i?n("<div><\/div>").prependTo(t).addClass(f):n("<div><\/div>").appendTo(t).addClass(f);t.attr("title",this.options.pageSizeDropDownTooltip);t=n("<div><\/div>").appendTo(t).addClass(this.css.pagingResults);i?(n("<span>"+this.options.pageSizeDropDownTrailingLabel+"<\/span>").prependTo(t).addClass(this.css.pageSizeLabel),n("<span><\/span>").prependTo(t).attr("id",u).addClass(this.css.pageSizeDropDown),n("<span>"+this.options.pageSizeDropDownLabel+"<\/span>").prependTo(t).addClass(this.css.pageSizeLabel)):(n("<span>"+this.options.pageSizeDropDownLabel+"<\/span>").appendTo(t).addClass(this.css.pageSizeLabel),n("<span><\/span>").appendTo(t).attr("id",u).addClass(this.css.pageSizeDropDown),n("<span>"+this.options.pageSizeDropDownTrailingLabel+"<\/span>").appendTo(t).addClass(this.css.pageSizeLabel));r=this.options.pageSizeList===null||this.options.pageSizeList.length===0?[5,10,20,25,50,75,100]:this.options.pageSizeList;n.type(r)==="string"&&(r=r.split(","));this._pageSizeDD=this.grid.container().find("#"+u).css("display","none").igEditor({width:this.options.defaultDropDownWidth,button:"dropdown",dropDownOnReadOnly:!0,dropDownTriggers:"button,focus",listItems:r,listMatchOnly:!0,readOnly:!0,textAlign:"left",type:"numeric",value:this.pageSize(),textChanged:n.proxy(this._changePageSize,this)}).css("display","");n.ig.util.isIE8===!0&&this.grid.options._isHierarchicalGrid&&this.grid.options.fixedHeaders&&n("<col><\/col>").appendTo(this.grid.headersTable().find("colgroup")).remove();this._pageSizeDropDownRendered=!0;this._trigger("pagingdropdownrendered")},_changePageSize:function(n,t){var r=!0,i=t.owner.value();r=this._trigger(this.events.pageSizeChanging,null,{currentPageSize:this.pageSize(),newPageSize:i,owner:this});r?(this.options.type==="remote"?this.grid.element.trigger("iggriduidirty",{owner:this}):this.grid.element.trigger("iggriduisoftdirty",{owner:this}),this.pageSize(i),this.options.type==="remote"?this._shouldFirePageSizeChanged=!0:this._trigger(this.events.pageSizeChanged,null,{pageSize:i,owner:this})):t.owner.value(this.pageSize())},_deleteOld:function(n){this._curPageDD&&(this._curPageDD.igEditor("destroy"),delete this._curPageDD);this._pageSizeDD&&this._pageSizeDD.closest("body").length>0&&(n||this.options.pageSizeDropDownLocation==="inpager")&&(this._pageSizeDD.igEditor("destroy"),delete this._pageSizeDD);this.grid.element.unbind("iggridupdatinginternalrowdeleted",this._rowDeletedHandler);this.grid.element.unbind("iggridupdatinginternalrowadded",this._rowAddedHandler)},destroy:function(){var t=this._pager();return this.pageSize(0),this._deleteOld(!0),this.options.showPageSizeDropDown===!0&&this.options.pageSizeDropDownLocation==="above"&&n("#"+this.grid.container()[0].id+" .ui-iggrid-pagesizedropdowncontainerabove").remove(),t.remove(),this._loadingIndicator&&delete this._loadingIndicator,n.Widget.prototype.destroy.call(this),this},_createHandlers:function(){this._rowDeletedHandler=n.proxy(this._rowDeleted,this);this._rowAddedHandler=n.proxy(this._rowAdded,this)},_injectGrid:function(n){this.grid=n;this._createHandlers();this.options.type===null&&(this.options.type=this.grid._inferOpType());this.grid.dataSource.settings.paging.type=this.options.type||"remote";this.grid.dataSource.settings.paging.pageIndex=this.options.currentPageIndex;this.grid.dataSource.settings.paging.pageSize=parseInt(this.options.pageSize,10);this.options.pageSizeUrlKey!==null&&this.options.pageIndexUrlKey&&(this.grid.dataSource.settings.paging.pageSizeUrlKey=this.options.pageSizeUrlKey,this.grid.dataSource.settings.paging.pageIndexUrlKey=this.options.pageIndexUrlKey);this.options.recordCountKey!==null&&(this.grid.dataSource.settings.responseTotalRecCountKey=this.options.recordCountKey);this.grid.dataSource.settings.paging.enabled=!0;this._pageSizeDD&&this._pageSizeDD.igEditor("option","value",this.options.pageSize)},_empty:function(){return""}});n.extend(n.ui.igGridPaging,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridResizing",{options:{allowDoubleClickToResize:!0,deferredResizing:!1,columnSettings:[{columnKey:null,columnIndex:null,allowResizing:!0,minimumWidth:20,maximumWidth:null}],handleTreshold:5},css:{columnResizeLine:"ui-iggrid-resize-line",resizingHandleCursor:"ui-iggrid-resizing-handle-cursor",resizingHandle:"ui-iggrid-resizing-handle"},events:{columnResizing:"columnResizing",columnResizingRefused:"columnResizingRefused",columnResized:"columnResized"},_createWidget:function(){this.options.columnSettings=[];n.Widget.prototype._createWidget.apply(this,arguments)},_setOption:function(t){throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);},destroy:function(){return this._clearResizingHandles(),this.grid.element.unbind(".resizing"),n.Widget.prototype.destroy.call(this),this},resize:function(t,i){var r;typeof t=="number"?r=t:n.each(this.grid._visibleColumns(),function(n,i){i.key===t&&(r=n)});i===undefined||i===null?this._autoResize(r,!1,null):this._resizeColumn(r,i,!1,null)},_headerRendered:function(){this._renderResizingHandles()},_columnsCollectionModified:function(){this._renderResizingHandles()},_columnsMoved:function(){this._populateMultiColumnHeadersLevel0()},_columnFixed:function(){this._renderResizingHandles()},_renderResizingHandles:function(){var i=this,r,t,u=this.grid._visibleColumns(),f,o=this.grid.element.attr("id"),e=this.grid.hasFixedColumns();if(this._clearResizingHandles(),u.length!==0){if(this.grid._isMultiColumnGrid)f=this.grid.headersTable().find("> thead > tr th").not("[data-skip=true]").not("[data-isheadercell=true]"),e&&n.each(this.grid.fixedHeadersTable().find("> thead > tr th").not("[data-skip=true]").not("[data-isheadercell=true]"),function(t,i){f.push(n(i))}),this._populateMultiColumnHeadersLevel0(),f.each(function(){var t,r=n(this);t=i._renderResizingHandle(r);i._bindMultipleResizingHandle(r,t.find("span"))}),t=n(this.grid._headerCells);else if(this.grid.options.virtualization===!0||this.grid.options.rowVirtualization===!0)t=this.grid.headersTable().find("> thead > tr").eq(0).children("th").not("[data-skip=true]");else if(e)for(t=n(),r=0;r<u.length;r++)t.push(n("#"+o+"_"+u[r].key));else t=this.grid.headersTable().find("> thead > tr[data-header-row]").eq(0).children("th").not("[data-skip=true]");t.each(function(t){var f,e,o=n(this),r=u[t];if(r===null||r===undefined)return!0;e=i._findColumnSettingsByKey(r.key);e.allowResizing&&(f=i._renderResizingHandle(o),i._bindResizingHandle(o,f.find("span"),r))})}},_renderResizingHandle:function(t){var r,i;return this._resizingHandles||(this._resizingHandles=[]),r=n("<div data-resizinghandle='true' />").css("position","relative").css("width","100%").css("height","0px").css("top","0px").css("left","0px").prependTo(t),i=n("<a href='#' />").attr("title","").prependTo(r),n.ig.util.isIE9&&i.addClass(this.css.resizingHandleCursor),n("<span data-nonpaddedindicator='right'><\/span>").attr("title","").css("position","absolute").css("margin-right",-parseInt(t.css("padding-right"),10)+"px").css("right","0px").css("width",this.options.handleTreshold+"px").addClass(this.css.resizingHandleCursor).addClass(this.css.resizingHandle).appendTo(i),this._resizingHandles.push(r),i},_populateMultiColumnHeadersLevel0:function(){for(var u,e=this,r=this.grid._oldCols||[],o=r.length,s=n(this.grid._headerCells),i=[],f,h=this.grid._visibleColumns(),t=0;t<o;t++)if(r[t].level===0)i.push(r[t]);else for(u=0;u<r[t].children.length;u++)i.push(r[t].children[u]);f=i.length;s.each(function(r){var s=n(this),u=h[r],o;if(u===null||u===undefined)return!0;if(o=e._findColumnSettingsByKey(u.key),o.allowResizing){for(t=0;t<i.length;t++)if(i[t].key===u.key)break;t<f&&(i[t].allowResizing=!0,i[t].visibleIndex=r,i[t].settings=o);s.col=i[t]}})},_bindMultipleResizingHandle:function(n,t){var i=this,u=n.attr("data-mch-id"),r;r=this.grid._getMultiHeaderColumnById(u);t.mouseWrapper({distance:5,start:function(){return i._startResizing(n)},drag:function(t){return i._doResizingMultiColumnHeader(t.originalEvent,n,r)},stop:function(t){return i._stopResizingMiltiColumnHeader(t.originalEvent,n,r)}}).bind("dblclick.resizing",function(t){i._handleMouseMultiColumnHeaderDbClick(t,n,r)}).bind("click.resizing",function(n){n.preventDefault();n.stopPropagation()})},_bindResizingHandle:function(n,t,i){var r=this;t.mouseWrapper({distance:5,start:function(){return r._startResizing(n)},drag:function(t){return r._doResizing(t.originalEvent,n,i)},stop:function(t){return r._stopResizing(t.originalEvent,n,i)}}).bind("dblclick.resizing",function(t){r._handleMouseDbClick(t,n,i)}).bind("click.resizing",function(n){n.preventDefault();n.stopPropagation()})},_clearResizingHandles:function(){var n;if(this._resizingHandles){for(n=0;n<this._resizingHandles.length;n++)this._resizingHandles[n].remove();this._resizingHandles=[]}},_handleMouseDbClick:function(t,i,r){this.options.allowDoubleClickToResize&&this._autoResize(n.inArray(r,this.grid._visibleColumns()),!0,t)},_handleMouseMultiColumnHeaderDbClick:function(n,t,i){var r,u=i.children,f=u.length;if(this.options.allowDoubleClickToResize)for(r=0;r<f;r++)u[r].allowResizing===!0&&this._autoResize(u[r].visibleIndex,!0,n)},_autoResize:function(t,i,r){var s,c,l,y=this.grid.hasFixedColumns(),a=this.grid.element,h,u=[],v=t,e=0,o,f;for(y&&(h=this.grid._visibleColumns(),c=h[t].fixed===!0,l=h[t].key,v=this.grid._getVisibleIndexByKey(l),c&&(a=this.grid.fixedContainer().find("table"))),s=a.find("> tbody > tr").not("[data-container=true]").not("[data-grouprow=true]"),f=0;f<s.length;f++)u.push(s.eq(f).children("td").not("[data-skip=true]").not(".ui-iggrid-rowselector-class").not(".ui-iggrid-expandcolumn").eq(v));if(u.length>0){for(o=n("<div><\/div>").css({position:"absolute",visibility:"hidden",height:"auto",width:"auto",left:-1e3,top:-1e3,"font-family":u[0].css("fontFamily"),"font-size":u[0].css("fontSize"),"font-size-adjust":u[0].css("fontSizeAdjust"),"font-stretch":u[0].css("fontStretch"),"font-style":u[0].css("fontStyle"),"font-variant":u[0].css("fontVariant"),"font-weight":u[0].css("fontWeight")}).appendTo(n(document.body)),f=0;f<u.length;f++)o.html(u[f][0].innerHTML),e=Math.max(e,o[0].offsetWidth);return e=e+u[0].outerWidth()-u[0].width(),n.ig.util.isIE&&(e+=1),o.remove(),this._resizeColumn(t,e,i,r)}},_cancelHoveringEffects:function(n){var t=this.grid.element.closest(".ui-iggrid-root").data("igGrid");(t===undefined||t===null)&&(t=this.grid);t._cancelHoveringEffects=n},_startResizing:function(t){var r=n(document.body),i,u;return this._resizing=!0,this._cancelHoveringEffects(!0),n.ig.util.isIE10?r.focus():n(document.activeElement).blur(),r.addClass(this.css.resizingHandleCursor),this.grid._isMultiColumnGrid&&(u=t.offset().top-this._gridContainerPositioningOffset().top),i=t.offset().top+this._gridContainerPositioningOffset().top,this.grid.options.height!==null&&this.grid.options.showHeader===!0&&this.grid.options.fixedHeaders===!1&&(i+=this.grid.scrollContainer().scrollTop()),this._resizeLine=n("<div><\/div>").addClass(this.css.columnResizeLine).data("efh","1").css({height:this._calculateGridResizableHeight(u),top:i,visibility:"hidden"}).appendTo(this.grid.container()),!0},_doResizingMultiColumnHeader:function(t,i,r){var f,o,h,c,e,l,a,v,s=r.children,y=s.length,u=null,p;if(o=t.pageX-i.offset().left,o<0&&(o=0),v=i.offset().top-this.grid.headersTable().offset().top,this.options.deferredResizing){for(a=i.offset().left,e={min:a,max:a},f=0;f<y;f++)(u=s[f],u.hidden)||(u.allowResizing?(h=this._getRange(this.options.columnSettings[u.visibleIndex]),e.min+=h.min,h.max===Infinity?e.max=Infinity:e.max!==Infinity&&(e.max+=h.max)):e.min+=n("#"+this.grid.element[0].id+"_"+u.key)[0].offsetWidth);this._resizeLine.css("height",this._calculateGridResizableHeight(v));this._resizeLine.css({left:this._coerceRange(e,t.pageX)+this._gridContainerPositioningOffset().left,visibility:"visible"})}else{for(f=y-1;f>=0;f--)if(s[f].allowResizing&&!s[f].hidden&&(u=s[f],u.resized=!u.resized,u.resized))break;if(u===null||u.hidden||(p=n("#"+this.grid.element[0].id+"_"+u.key),l=n.inArray(u,this.grid._visibleColumns()),o=p[0].offsetWidth-i[0].offsetWidth+o,c=this._resizeColumn(l,o,!0,t,l)),!c)return!0;c.canceled||(this._resizeLine.css("height",this._calculateGridResizableHeight(v)),this._resizeLine.css({left:i.offset().left+i.outerWidth()+this._gridContainerPositioningOffset().left,visibility:"visible"}))}return!0},_doResizing:function(t,i,r){var u,o,s=n.inArray(r,this.grid._visibleColumns()),f,e,h;return this.options.deferredResizing?(f=this._getRange(this.options.columnSettings[s]),e=i.offset().left,f.min+=e,f.max+=e,this._resizeLine.css({left:this._coerceRange(f,t.pageX)+this._gridContainerPositioningOffset().left,visibility:"visible"})):(u=t.pageX-i.offset().left,u<0&&(u=0),this.grid._isMultiColumnGrid&&(h=i.offset().top-this.grid.headersTable().offset().top),o=this._resizeColumn(s,u,!0,t),o.canceled||(this._resizeLine.css("height",this._calculateGridResizableHeight(h)),this._resizeLine.css({left:i.offset().left+i.outerWidth()+this._gridContainerPositioningOffset().left,visibility:"visible"}))),!0},_stopResizingMiltiColumnHeader:function(t,i,r){var u,e,o,s,f,c,l=0,h;if(this.options.deferredResizing){for(e=t.pageX-i.offset().left,f=r.children,c=f.length,h=[],u=0;u<c;u++){if(s=f[u].key,o=this._findColumnSettingsByKey(s),f[u].allowResizing===!1||o&&o.allowResizing===!1){e-=n("#"+this.grid.element[0].id+"_"+s)[0].offsetWidth;continue}h.push(f[u]);l++}l>0&&this._resizeMCHDeffered(e,h)}return n("body").removeClass(this.css.resizingHandleCursor),setTimeout(function(){this._resizing=!1},0),this._cancelHoveringEffects(!1),this._resizeLine.remove(),this._resizeLine=undefined,!0},_resizeMCHDeffered:function(t,i){var r,s,u,f=i.length,e=[],a=this.grid._visibleColumns(),h,o=t,c=[],l;if(f!==0){for(r=0;r<f;r++)(u=n.inArray(i[r],a),u!==-1&&this.options.columnSettings[u].allowResizing!==!1)&&e.push({column:s,columnIndex:u});if(f=e.length,f>0)for(l=parseInt(t/f,10),r=0;r<f;r++)s=e[r].column,u=e[r].columnIndex,h=this._resizeColumn(u,l,!0),h.newWidth!==l?o-=h.newWidth:c.push(s);o>5&&o!==t&&c.length>0&&this._resizeMCHDeffered(o,c)}},_stopResizing:function(t,i,r){var u,f=n.inArray(r,this.grid._visibleColumns());return this.options.deferredResizing&&(u=t.pageX-i.offset().left,u=this._coerceRange(this._getRange(this.options.columnSettings[f]),u),this._resizeColumn(f,u,!0,t)),n("body").removeClass(this.css.resizingHandleCursor),setTimeout(function(){this._resizing=!1},0),this._cancelHoveringEffects(!1),this._resizeLine.remove(),this._resizeLine=undefined,!0},_resizeColumn:function(t,i,r,u,f){var nt,pt=0,tt=this.grid._visibleColumns(),w=tt[t].key,it=t,b=this.grid.headersTable(),wt,a,c,k,v,ht=this.options.columnSettings,ct=this.grid.hasFixedColumns(),s,bt,rt,ut=[],o=[],kt=[],y=[],e,h,ft,lt,g,et,at,d,p,vt,yt,ot,st,dt,l,gt=!0;if(ct&&(it=this.grid._getVisibleIndexByKey(w),a=tt[t].fixed===!0),a&&(b=this.grid.fixedHeadersTable()),this.grid._isMultiColumnGrid?(c=n(this.grid._headerCells),c.length>0&&(k=n(c[t])[0].offsetWidth)):(c=this.grid.options.virtualization===!0||this.grid.options.rowVirtualization===!0?b.find("> thead > tr").first().children("th").not("[data-skip=true]"):b.find("> thead > tr[data-header-row]").first().children("th").not("[data-skip=true]"),c.length>0&&(k=c.get(it).offsetWidth)),v=b.find("> colgroup > col").not("[data-skip=true]"),ht=this.options.columnSettings,s=v.length,bt=v[it].style.width,rt=/%$/.test(bt),r&&(dt=this._trigger(this.events.columnResizing,u,{owner:this,columnIndex:t,columnKey:w,desiredWidth:i}),!dt))return{canceled:!0,originalWidth:i,newWidth:i};if(wt=w!==undefined?this._findColumnSettingsByKey(w):ht[t],d=this._getRange(wt),i=this._coerceRange(d,i),i=Math.floor(i),(i===d.min||i===d.max)&&(gt=!1),a&&(h=k-i,nt=parseInt(this.grid.options.width,10),isNaN(nt)&&(nt=this.grid.container().outerWidth()),h<0&&(this.grid.element.igGridColumnFixing!==undefined&&(pt=this.grid.element.data("igGridColumnFixing").options.minimalVisibleAreaWidth),this.grid.fixedContainer().outerWidth()-h>nt-this.grid._scrollbarWidth()-pt)))return r&&this._trigger(this.events.columnResizingRefused,u,{owner:this,columnIndex:t,columnKey:w,desiredWidth:i}),{canceled:!0,originalWidth:i,newWidth:i};if(this.grid._isMultiColumnGrid){if(n.ig.util.isWebKit&&rt)for(p=b[0].offsetWidth,e=0;e<s;e++)o[e]=parseFloat(v[e].style.width)/100*p;else if(c.length>0)for(e=0;e<s;e++)ut[e]=v[e].style.width,o[e]=c[e][0].offsetWidth}else if(n.ig.util.isWebKit&&rt)for(p=b[0].offsetWidth,e=0;e<s;e++)o[e]=parseFloat(v[e].style.width)/100*p;else if(c.length>0)for(e=0;e<s;e++)ut[e]=v[e].style.width,o[e]=c[e].offsetWidth;if(rt){for(h=k-i,ft=h<0,vt=[],yt=0,lt=0,(f===undefined||f===null)&&(f=0);yt<s-1-f&&(ft&&h<-.05||!ft&&h>.05);)for(at=h/(s-1),e=f;e<s;e++)e===t||vt[e]||(g=ft?Math.max(at,h):Math.min(at,h),o[e]+=g,d=this._getRange(ht[e]),et=this._coerceRange(d,o[e]),Math.abs(o[e]-et)>5e-6&&(g-=o[e]-et,o[e]=et,vt[e]=!0,yt++),lt+=g,h-=g);for(o[t]-=lt,p=0,e=0;e<s;e++)p+=o[e];for(e=0;e<s;e++)kt[e]=100*o[e]/p;for(e=0;e<s;e++)y[e]=kt[e]+"%",tt[e].width=y[e];ot=o[t];this._applyToEachGridCOL(function(n,t){t.css("width",y[n])},a)}else{for(st=!0,e=0;e<s;e++)e===it?(y[e]=i+"px",ot=i,tt[t].width=y[e]):(y[e]=ut[e],st=st&&parseInt(ut[e],10)>0);this._applyToEachGridCOL(function(n,t){t.css("width",y[n])},a);l=this.grid._calculateContainerWidth(!1);st&&(this.grid.options.width&&parseInt(this.grid.options.width,10)>0?(a?this.grid._updateFixedGridContentWidth():this.grid._updateGridContentWidth(),n("#"+this.grid.element[0].id+"_horizontalScrollContainer").children("div").css("width",l),(this.grid.options.virtualization===!0||this.grid.options.rowVirtualization===!0)&&(this.grid._oldScrollLeft=n("#"+this.grid.id()+"_horizontalScrollContainer").scrollLeft())):(ct&&(a?this.grid._updateFixedGridContentWidth():this.grid._updateGridContentWidth()),this.grid._setContainerWidth(n("#"+this.grid.id()+"_container")),(this.grid.options.rowVirtualization||this.grid.options.virtualization===!0)&&(n("#"+this.grid.element[0].id+"_headers_v").css("width",l+this.grid._scrollbarWidth()).css("max-width",l+this.grid._scrollbarWidth()),n("#"+this.grid.element[0].id+"_displayContainer").css("width",l).css("max-width",l),n("#"+this.grid.element[0].id+"_virtualContainer > colgroup > col").first().attr("width",l),n("#"+this.grid.id()+"_footer_container").css("width",l+this.grid._scrollbarWidth()).css("max-width",l+this.grid._scrollbarWidth()))))}return ct&&this.grid.element.data("igGridColumnFixing")._containerResized(),r&&this._trigger(this.events.columnResized,u,{owner:this,columnIndex:t,columnKey:w,originalWidth:k,newWidth:ot}),{canceled:!1,originalWidth:k,newWidth:ot,isResized:gt}},_applyToEachGridCOL:function(t,i){var r,u;this.grid.options.showHeader&&(r=i?this.grid.fixedHeadersTable():this.grid.headersTable(),r.find("> colgroup > col").not("[data-skip=true]").each(function(i){t(i,n(this))}));(this.grid.options.fixedHeaders===!0&&this.grid.options.height!==null||this.grid.options.showHeader===!1)&&(i?n("#"+this.grid.id()+"_fixed").find("> colgroup > col").not("[data-skip=true]").each(function(i){t(i,n(this))}):this.grid.element.find("> colgroup > col").not("[data-skip=true]").each(function(i){t(i,n(this))}));this.grid.options.fixedFooters===!0&&this.grid.options.height!==null&&(u=i?this.grid.fixedFootersTable():this.grid.footersTable(),u.find("> colgroup > col").not("[data-skip=true]").each(function(i){t(i,n(this))}))},_getRange:function(n){var t=n.minimumWidth,i=n.maximumWidth;return t=isNaN(t)?0:t,t=Math.max(0,t),i=isNaN(i)?Infinity:i,{min:t,max:i}},_coerceRange:function(n,t){return t=Math.max(n.min,t),Math.min(n.max,t)},_gridContainerPositioningOffset:function(){var n=this.grid.container().offset();return{top:-n.top,left:-n.left}},_calculateGridResizableHeight:function(t){var i,f,r,u,e,o=this.grid.options.virtualization===!0||this.grid.options.rowVirtualization===!0||this.grid.options.columnVirtualization===!0,s=this.grid.options.height!==null||this.grid.options.width!==null;return i=o?n("#"+this.grid.element[0].id+"_displayContainer").height():s?this.grid.scrollContainer().height():this.grid.element.height(),(o||s)&&(r=this.grid.headersTable(),u=this.grid.footersTable(),this.grid.options.fixedHeaders===!0&&this.grid.options.showHeader===!0&&(r.length!==0&&this.grid.element[0].id!==r[0].id&&(i+=r.height()),f=r.children("#"+this.grid.element[0].id+"_caption"),f.length!==0&&(n.ig.util.isFF||(i-=f.outerHeight(!0)))),e=n("#"+this.element[0].id+"_hscroller_container"),e.is(":visible")&&(i+=e.height()),this.grid.options.fixedFooters===!0&&this.grid.options.showFooter===!0&&u.length!==0&&this.grid.element[0].id!==u[0].id&&(i+=u.height())),t&&(i-=t),i},_findColumnSettingsByKey:function(n){for(var t=0;t<this.options.columnSettings.length;t++)if(this.options.columnSettings[t].columnKey===n)return this.options.columnSettings[t]},_initDefaultSettings:function(){var t=[],r,u=this.options.columnSettings,n,i;if(this.grid.options.columns&&this.grid.options.columns.length>0)for(n=0;n<this.grid.options.columns.length;n++)t[n]={columnIndex:n,columnKey:this.grid.options.columns[n].key,allowResizing:!0,minimumWidth:20};for(n=0;n<u.length;n++){for(i=0;i<t.length;i++)if(t[i].columnKey===u[n].columnKey||t[i].columnIndex===u[n].columnIndex)break;if(i!==t.length)for(r in u[n])u[n].hasOwnProperty(r)&&r!=="columnIndex"&&r!=="columnKey"&&(t[i][r]=u[n][r])}this.options.columnSettings=t},_injectGrid:function(t){this.grid=t;this.grid.element.unbind(".resizing");this._initDefaultSettings();this.grid.element.bind("iggridheaderrendered.resizing",n.proxy(this._headerRendered,this));this.grid.element.bind("iggridcolumnscollectionmodified.resizing",n.proxy(this._columnsCollectionModified,this));this.grid.element.bind("iggrid_columnsmoved.resizing",n.proxy(this._columnsMoved,this))}});n.extend(n.ui.igGridResizing,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){"use strict";n.widget("ui.igGridResponsive",{options:{columnSettings:[{columnKey:null,columnIndex:null,classes:"",configuration:null}],reactOnContainerWidthChanges:!0,forceResponsiveGridWidth:!0,responsiveSensitivity:20,responsiveModes:null,enableVerticalRendering:!0,windowWidthToRenderVertically:null,propertiesColumnWidth:"50%",valuesColumnWidth:"50%",allowedColumnWidthPerType:{string:120,number:50,bool:50,date:80,object:150}},events:{responsiveColumnHiding:"responsiveColumnHiding",responsiveColumnHidden:"responsiveColumnHidden",responsiveColumnShowing:"responsiveColumnShowing",responsiveColumnShown:"responsiveColumnShown",responsiveModeChanged:"responsiveModeChanged"},css:{verticalContainerCssClass:"ui-iggrid-responsive-vertical"},_createWidget:function(){this.options.columnSettings=[];n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){this._callBackId=null;this._responsive=null;this._exclusiveContainer=!1;this._mode="";this._modes=this.options.responsiveModes||{desktop:"infragistics",tablet:"infragistics",phone:"infragistics"};this._modes=this._initializeModeRecognizers(this._modes);this._hiddenByClass=this._flagClassConfiguration();this._defaultColumnTemplates=null;this._footersDisplacement=.1;this._originalRenderRecord=null;this._newRenderRecord=null;this._vrw=typeof this.options.windowWidthToRenderVertically=="string"?parseInt(this.options.windowWidthToRenderVertically,10):this.options.windowWidthToRenderVertically;this._vr=null},_setOption:function(t,i){switch(t){case"propertiesColumnWidth":case"valuesColumnWidth":throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);case"responsiveModes":this._modes=i;this._modes=this._initializeModeRecognizers(this._modes);break;case"reactOnContainerWidthChanges":i===!0?this._activateContainer():this._deactivateContainer();break;case"enableVerticalRendering":this.options.enableVerticalRendering=i;this._shouldRenderVertically()?this._vr||this._enableVerticalGrid():this._vr&&this._disableVerticalGrid();break;case"windowWidthToRenderVertically":this._vrw=typeof i=="string"?parseInt(i,10):i}n.Widget.prototype._setOption.apply(this,arguments);this._hiddenByClass=this._flagClassConfiguration()},destroy:function(){return this._deactivateContainer(),this._initialGridRenderedHandler&&(this.grid.element.unbind("iggridrendered",this._initialGridRenderedHandler),this.grid.element.unbind("iggridheaderrendering",this._gridHeaderRenderingHandler)),this.grid.element.unbind("iggrid_heightchanged",this._gridContainerHeightHandler),n("#"+this.grid.element[0].id+"_responsive_test_container").remove(),n.Widget.prototype.destroy.call(this),this},getCurrentResponsiveMode:function(){return this._mode},_activateContainer:function(){this._responsive&&typeof this._responsive.addCallback=="function"||(this._responsive=this.grid.element.closest(".ui-widget").igResponsiveContainer().data("igResponsiveContainer"),this._exclusiveContainer=!0);this._callBackId=this._responsive.addCallback(this._containerResized,this,this.options.responsiveSensitivity,"x")},_deactivateContainer:function(){typeof this._callBackId=="number"&&(this._responsive.removeCallback(this._callBackId),this._callBackId=null);this._exclusiveContainer===!0&&(this._responsive.destroy(),delete this._responsive,this._exclusiveContainer=!1)},_renderTestElement:function(){n("<div><\/div>").attr("id",this.grid.element[0].id+"_responsive_test_container").css("position","fixed").css("top","-100px").text("&nbsp;").appendTo(this.grid.container())},_initializeModeRecognizers:function(){var i=this,r={},t;return n.each(this._modes,function(u,f){typeof f=="string"?(t=f.substring(0,1).toUpperCase()+f.substring(1),t=new n.ig[t+"Mode"]({key:u,visibilityTester:n.proxy(i._checkVisibilityByClass,i)})):t=typeof f!="object"||f.isActive?f:new n.ig.ResponsiveMode({minWidth:f.minWidth||-1,maxWidth:f.maxWidth||Number.MAX_VALUE,minHeight:f.minHeight||-1,maxHeight:f.maxHeight||Number.MAX_VALUE});r[u]=t}),r},_flagClassConfiguration:function(){var t=!1;return n.each(this.options.columnSettings,function(){if(this.classes)return t=!0,!1}),t},_getDefaultColumnTemplates:function(){for(var i={},n,t=0;t<this.grid.options.columns.length;t++)n=this.grid.options.columns[t],n.template&&(n.key?i[n.key]=n.template:i[t]=n.template);return i},_checkVisibilityByClass:function(t){var i=n("#"+this.grid.element[0].id+"_responsive_test_container");return i.removeClass(),i.addClass(t),i.is(":visible")},_gridReady:function(){return!(this.grid._loadingIndicator&&this.grid._loadingIndicator._indicator.is(":visible"))},_shouldRenderVertically:function(){return this.options.enableVerticalRendering?this._vrw===null||this._vrw===undefined?this._shouldRenderVerticallyByDefault():n(window).width()<this._vrw?!0:(n(window).width()>=this._vrw,!1):!1},_shouldRenderVerticallyByDefault:function(){for(var u=this.grid.element.width(),f=100,r,i=[],t,e=0,o,s,n=0;n<this.grid._visibleColumns().length;n++){if(t=this.grid._visibleColumns()[n],t.width){r=-1;typeof t.width=="string"?t.width.endsWith("%")?(r=parseInt(t.width,10),f-=r):u-=parseInt(t.width,10):u-=t.width;r!==-1&&i.push({key:t.key||n,width:r});continue}e++;i.push({key:t.key||n,width:-1,type:t.dataType})}for(n=0;n<i.length;n++)if(o=i[n].width===-1?f/e:i[n].width,s=o/100*u,s<=this.options.allowedColumnWidthPerType[i[n].type])return!0;return!1},_updateGridSync:function(n,t){var i=this;if(!this._gridReady()){setTimeout(function(){i._updateGridSync(n,t)},50);return}i._updateGrid(n,t)},_updateGrid:function(t,i){var o=[],s=!1,f,e,r=this,u;if(this._hiddenByClass===!0&&(o=this._updateColumnsByClass()),i===!0&&(this._hiddenByClass===!1&&(o=this._updateColumns()),s=this._updateTemplates()),f=o[0]||[],e=o[1]||[],f.length===0&&e.length===0){s===!0&&t===!1&&this.grid._renderData();return}t===!1?(this.grid._loadingIndicator.show(),setTimeout(function(){for(r.grid._setHiddenColumns(f,!1,t),u=0;u<f.length;u++)r._trigger(r.events.responsiveColumnShown,null,r._getArgsByColumn(f[u]));for(r.grid._setHiddenColumns(e,!0,t),u=0;u<e.length;u++)r._trigger(r.events.responsiveColumnHidden,null,r._getArgsByColumn(e[u]));t===!1&&r.grid._loadingIndicator.hide();r._setMaxWidthOnGrid()},0)):(n.each(f,function(){this.hidden=!1}),n.each(e,function(){this.hidden=!0}))},_updateColumnsByClass:function(){for(var t=this.options.columnSettings,i,e=[],o=[],r,u,f,n=0;n<t.length;n++)if(t[n].classes){if(i=this._getGridColumnBySetting(t[n]),!i)continue;u=i.hidden||!1;f=this._checkVisibilityByClass(t[n].classes);u===!0&&f===!0&&(r=this._trigger(this.events.responsiveColumnShowing,null,this._getArgsByColumnSetting(t[n])),r&&o.push(i));u===!1&&f===!1&&(r=this._trigger(this.events.responsiveColumnHiding,null,this._getArgsByColumnSetting(t[n])),r&&e.push(i))}return[o,e]},_updateColumns:function(){for(var t=this.options.columnSettings,i,e=[],o=[],r,s=this._mode,u,f,n=0;n<t.length;n++)if(t[n].configuration){if(i=this._getGridColumnBySetting(t[n]),!i)continue;u=i.hidden||!1;f=!(t[n].configuration[s]&&t[n].configuration[s].hidden);u===!0&&f===!0&&(r=this._trigger(this.events.responsiveColumnShowing,null,this._getArgsByColumnSetting(t[n])),r&&o.push(i));u===!1&&f===!1&&(r=this._trigger(this.events.responsiveColumnHiding,null,this._getArgsByColumnSetting(t[n])),r&&e.push(i))}return[o,e]},_updateTemplates:function(){for(var r=this.options.columnSettings,u,f=!1,i,e=this._mode,o=String(this.grid.options.templatingEngine).toLowerCase()==="jsrender",t=0;t<r.length;t++)(i=this._getGridColumnBySetting(r[t]),i)&&(u=r[t].configuration&&r[t].configuration[e]&&r[t].configuration[e].template?r[t].configuration[e].template:i.key?this._defaultColumnTemplates[i.key]:this._defaultColumnTemplates[n.inArray(i,this.grid.options.columns)],i.template!==u&&(i.template=u,f=!0));return f===!0&&(this.grid._tmplWrappers||(this.grid._tmplWrappers=o?n.render:{}),this.grid._setTemplateDefinition(o)),f},_renderRecord:function(n,t){var r=0,i,f,e,u=this.grid._visibleColumns();if(!this._vr)return this._originalRenderRecord(n,t);for(i="",e=t%2!=0&&this.grid.options.alternateRowStyles,r=0;r<u.length;r++)i+="<tr",e&&(i+=' class="'+this.grid.css.recordAltClass+'"'),i+="><td>",i+=u[r].headerText+"<\/td>",i+="<td",u[r].template&&u[r].template.length?(f=this.grid._renderTemplatedCell(n,u[r]),i+=f.indexOf("<td")===0?f.substring(3):">"+f):i+=">"+this.grid._renderCell(n[u[r].key],u[r]),i+="<\/td><\/tr>";return i},_renderColgroup:function(t,i,r,u){var f,e,o;if(this._vr=this._vr===null?this._shouldRenderVertically():this._vr,!this._vr){this._originalRenderColgroup(t,i,r,u);return}f=n(t).find("colgroup");f.length===0&&(f=n("<colgroup><\/colgroup>").prependTo(t));f.empty();e=typeof this.options.propertiesColumnWidth=="string"?parseInt(this.options.propertiesColumnWidth,10):this.options.propertiesColumnWidth;o=typeof this.options.valuesColumnWidth=="string"?parseInt(this.options.valuesColumnWidth,10):this.options.valuesColumnWidth;f.append("<col width='"+e+"%'><\/col><col width='"+o+"%'><\/col>")},_enableVerticalGrid:function(){this.grid.element.addClass(this.css.verticalContainerCssClass);this.options.showHeader&&this.options.fixedHeaders&&this.options.height!==null?(this.grid.headersTable().css("position","absolute"),this.grid.headersTable().css("top","-100px")):(this.grid.headersTable().children("thead").css("position","absolute"),this.grid.headersTable().children("thead").css("top","-100px"));this._vr=!0;this._modifySortingStyles();this.grid._rerenderColgroups();this.grid._renderData()},_disableVerticalGrid:function(){this.grid.element.removeClass(this.css.verticalContainerCssClass);this.options.showHeader&&this.options.fixedHeaders&&this.options.height!==null?(this.grid.headersTable().css("position",""),this.grid.headersTable().css("top","")):(this.grid.headersTable().children("thead").css("position",""),this.grid.headersTable().children("thead").css("top",""));this._vr=!1;this._modifySortingStyles(!0);this.grid._rerenderColgroups();this.grid._renderData()},_getGridColumnBySetting:function(n){var t;return n.columnKey&&typeof n.columnKey=="string"?t=this.grid.columnByKey(n.columnKey):n.columnIndex!==null&&n.columnIndex!==undefined&&typeof n.columnIndex=="number"&&n.columnIndex>=0&&n.columnIndex<this.grid.options.columns.length&&(t=this.grid.options.columns[n.columnIndex]),t},_getArgsByColumnSetting:function(n){return{owner:this,columnIndex:n.columnIndex||null,columnKey:n.columnKey||null}},_getArgsByColumn:function(t){return{owner:this,columnIndex:n.inArray(t,this.grid.options.columns),columnKey:t.key||null}},_getCurrentMode:function(){var t;return n.each(this._modes,function(n){if(this.isActive()===!0)return t=n,!1}),t},_containerResized:function(){var n=this._getCurrentMode(),t=!1;this._setMaxWidthOnGrid();n&&n!==this._mode&&(this._trigger(this.events.responsiveModeChanged,null,{owner:this,previousMode:this._mode,mode:n}),this._mode=n,t=!0);(t||this._hiddenByClass)&&this._updateGridSync(!1,t);this._shouldRenderVertically()?this._vr||this._enableVerticalGrid():this._vr&&this._disableVerticalGrid()},_gridHeaderRendering:function(t,i){var r;if(i.owner.id()===this.grid.id()){if(this._renderTestElement(),this._mode=this._getCurrentMode(),this._defaultColumnTemplates=this._getDefaultColumnTemplates(),n.isArray(this.grid._initialHiddenColumns))for(r=0;r<this.grid._initialHiddenColumns.length;r++)this.grid._initialHiddenColumns[r].hidden=!0;this._updateGridSync(!0,!0);this.grid._captureInitiallyHiddenColumns()}},_initialGridRendered:function(){this._activateContainer();this._vr===!0&&(this.options.showHeader&&this.options.fixedHeaders&&this.options.height!==null?(this.grid.headersTable().css("position","absolute"),this.grid.headersTable().css("top","-100px")):(this.grid.headersTable().children("thead").css("position","absolute"),this.grid.headersTable().children("thead").css("top","-100px")),this.grid.element.addClass(this.css.verticalContainerCssClass),this._modifySortingStyles());this._alreadyRendered=!0;this._setMaxWidthOnGrid()},_dataRendered:function(){this._setMaxWidthOnGrid()},_modifySortingStyles:function(n){var t=this.grid.element.data("igGridSorting");t&&(n?t.options.applySortedColumnCss=this._srs:(this._srs=t.options.applySortedColumnCss,t.options.applySortedColumnCss=!1))},_heightChanged:function(){var t=n("#"+this.grid.element[0].id+"_scroll").height();this._height!==t&&(this._height=t,this.grid._adjustLastColumnWidth(!1),this._setMaxWidthOnGrid())},_setMaxWidthOnGrid:function(){var t=this.grid._hasVerticalScrollbar===!0?this.grid._scrollbarWidth():0,n;this.grid._gridContentWidth=0;this.grid.element.css("width","100%");this.grid._allColumnWidthsInPercentage||(n=100-t/this.grid.container().width()*100,this.grid.options.fixedHeaders===!0&&this.grid.headersTable().css("width",n+"%"),this.grid.options.fixedFooters===!0&&this.grid.footersTable().css("width",n+this._footersDisplacement+"%"))},_createHandlers:function(){this._gridHeaderRenderingHandler=n.proxy(this._gridHeaderRendering,this);this._initialGridRenderedHandler=n.proxy(this._initialGridRendered,this);this._gridContainerHeightHandler=n.proxy(this._heightChanged,this)},_injectGrid:function(t,i){i!==!0&&(this.grid=t,this._createHandlers(),this.options.forceResponsiveGridWidth===!0&&(this.grid.options.width=typeof this.grid.options.width=="string"&&this.grid.options.width.endsWith("%")?this.grid.options.width:"100%",this.grid.options.autoFitLastColumn=!1),this.options.reactOnContainerWidthChanges===!0&&(this.grid.element.bind("iggridheaderrendering",this._gridHeaderRenderingHandler),this.grid.element.bind("iggridrendered",this._initialGridRenderedHandler)),this.grid.options.height!==null&&this.grid.options.height.indexOf&&this.grid.options.height.indexOf("%")!==-1&&this.grid.element.bind("iggrid_heightchanged",this._gridContainerHeightHandler),this._originalRenderRecord=n.proxy(this.grid._renderRecord,this.grid),this._newRenderRecord=n.proxy(this._renderRecord,this),this._originalRenderColgroup=n.proxy(this.grid._renderColgroup,this.grid),this._newRenderColgroup=n.proxy(this._renderColgroup,this),this.grid._renderRecord=this._newRenderRecord,this.grid._renderColgroup=this._newRenderColgroup)}});n.extend(n.ui.igGridResponsive,{version:"14.1.20141.2031"});n.ig=n.ig||{};n.ig.ResponsiveMode=n.ig.ResponsiveMode||Class.extend({settings:{minWidth:-1,maxWidth:Number.MAX_VALUE,minHeight:-1,maxHeight:Number.MAX_VALUE},init:function(t){return t&&(this.settings=n.extend(!0,{},n.ig.ResponsiveMode.prototype.settings,t)),this},isActive:function(){return window.innerWidth>=this.settings.minWidth&&window.innerWidth<=this.settings.maxWidth&&window.innerHeight>=this.settings.minHeight&&window.innerHeight<=this.settings.maxHeight}});n.ig.InfragisticsMode=n.ig.InfragisticsMode||n.ig.ResponsiveMode.extend({settings:{key:"",visibilityTester:null},init:function(n){return this._hc="ui-hidden-"+n.key,this._vc="ui-visible-"+n.key,this._super(n),this},isActive:function(){return typeof this.settings.visibilityTester=="function"?this.settings.visibilityTester(this._hc)===!1&&this.settings.visibilityTester(this._vc)===!0:this._super()}});n.ig.BootstrapMode=n.ig.BootstrapMode||n.ig.ResponsiveMode.extend({settings:{key:"",visibilityTester:null},init:function(n){return this._hc="hidden-"+n.key,this._vc="visible-"+n.key,this._super(n),this},isActive:function(){return typeof this.settings.visibilityTester=="function"?this.settings.visibilityTester(this._hc)===!1&&this.settings.visibilityTester(this._vc)===!0:this._super()}})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridRowSelectors",{options:{enableRowNumbering:!0,enableCheckBoxes:!1,rowNumberingSeed:0,rowSelectorColumnWidth:null,requireSelection:!0,showCheckBoxesOnFocus:!1},css:{rowSelector:"ui-iggrid-rowselector-class",rowSelectorSelected:"ui-iggrid-selectedcell ui-state-active",headerRowSelector:"ui-iggrid-rowselector-header",footerRowSelector:"ui-iggrid-rowselector-footer",checkBox:"ui-state-default ui-corner-all ui-igcheckbox-normal",checkBoxOff:"ui-icon ui-icon-check ui-igcheckbox-normal-off",checkBoxOn:"ui-icon ui-icon-check ui-igcheckbox-normal-on",nodeHovered:"ui-state-hover"},events:{rowSelectorClicked:"rowSelectorClicked",checkBoxStateChanging:"checkBoxStateChanging",checkBoxStateChanged:"checkBoxStateChanged"},_createWidget:function(){n.Widget.prototype._createWidget.apply(this,arguments);this.options.rowSelectorColumnWidth===null&&(this.options.rowSelectorColumnWidth=55,this.options.enableCheckBoxes===!0&&this.options.enableRowNumbering===!0&&(this.options.rowSelectorColumnWidth+=15))},_create:function(){this._cIdx=0;this._functionsRedirected=!1;this._hovTR=null;this._gridRenderRecord=null;this._gridRenderRecordInArray=null;this._checkBoxesShown=!1;this._nTmpl="{{html ig_rs_idx}}";this._sTmpl="{{if ${ig_rs_sel} === true}}"+this.css.rowSelectorSelected+"{{/if}}";this._v=!1;this._ms=!1},destroy:function(){return this._unregisterEvents(),this._unregisterCellEvents(),this._gridRenderRecordHandler!==undefined&&(this.grid._renderColgroup=this._flatRenderColgroup,this.grid._renderRecord=this._gridRenderRecordHandler,this.grid._renderRecordInArray=this._gridRenderRecordInArrayHandler),this.options.enableCheckBoxes===!0&&this._unregisterCheckBoxEvents(),this._cleanInterface(!1),n.Widget.prototype.destroy.call(this),this},_renderHeaderRowSelectors:function(t){var r,i,u,e,f;if(t.id()===this.grid.id()&&(r=this.grid.headersTable().children("thead").children(),r.length>0))if(u=r.eq(0).find("th.ui-iggrid-expandheadercell").first(),this._index=u.length===0?0:u.index()+1,this.grid._isMultiColumnGrid)f=n("<th><\/th>").prependTo(this.grid.headersTable().find("thead tr:nth-child(1)")).addClass(this.css.headerRowSelector).addClass(this.grid.css.headerClass).attr("data-role","rs").attr("data-skip","true"),f.attr("rowspan",this.grid._maxLevel+1),this.options.enableCheckBoxes===!0&&this._ms&&n(this._getCheckBox(!0)).appendTo(f);else for(i=0;i<r.length;i++)r.eq(i).find("th[data-role='rs']").length>0||(e=n("<th>"+(n.ig.util.isIE7?"&nbsp;":"")+"<\/th>").addClass(this.css.headerRowSelector).addClass(i===0?this.grid.css.headerClass:"").attr("data-role","rs").attr("data-skip","true").insertBefore(r.eq(i).children().eq(this._index)),this.options.enableCheckBoxes===!0&&i===0&&this._ms&&n(this._getCheckBox(!0)).appendTo(e))},_renderFooterRowSelectors:function(t){var i,r;if(t.id()===this.grid.id()&&(i=this.grid.footersTable().children("tfoot").children(),i.length>0))for(r=0;r<i.length;r++)i.eq(r).find("td[data-role='rs']").length>0||n("<td>"+(n.ig.util.isIE7?"&nbsp;":"")+"<\/td>").addClass(this.css.footerRowSelector).attr("data-role","rs").attr("data-skip","true").insertBefore(i.eq(r).children().eq(this._index))},_headerRendered:function(n,t){this._ms=!this._skipRefresh&&this.grid.element.igGridSelection("option","multipleSelection")===!0;this._renderHeaderRowSelectors(t.owner);this._getColumnFixingInstance()},_footerRendered:function(n,t){this._renderFooterRowSelectors(t.owner)},_getColumnFixingInstance:function(){return!this._columnFixing&&this.grid.element.data("igGridColumnFixing")&&(this._columnFixing=this.grid.element.data("igGridColumnFixing")),this._columnFixing},_recordsRendering:function(t,i){this.grid.id()===i.owner.id()&&(this._cIdx=i.vrtWnd.start&&i.vrtWnd.end?i.vrtWnd.start:0,this._functionsRedirected===!1&&(this._renderRecordHandler=n.proxy(this._rsRenderRecord,this),this._renderRecordInArrayHandler=n.proxy(this._rsRenderRecordInArray,this),this._gridRenderRecordHandler=n.proxy(this.grid._renderRecord,this.grid),this._gridRenderRecordInArrayHandler=n.proxy(this.grid._renderRecordInArray,this.grid),this._gridRenderRecord=this._gridRenderRecordHandler,this._gridRenderRecordInArray=this._gridRenderRecordInArrayHandler,this.grid._renderRecord=this._renderRecordHandler,this.grid._renderRecordInArray=this._renderRecordInArrayHandler),this._functionsRedirected=!0)},_recordsRendered:function(n,t){this.grid.id()===t.owner.id()&&this.options.enableCheckBoxes===!0&&(this._registerCheckBoxEvents(),this._updateHeader())},_gridRendered:function(n,t){t!==undefined&&this.grid.id()===t.owner.id()&&(this._ms=!this._skipRefresh&&this.grid.element.igGridSelection("option","multipleSelection")===!0,this._registerCellEvents(),this.options.enableCheckBoxes===!0&&this._registerCheckBoxEvents())},_rsRenderColgroup:function(n,t,i,r,u,f){var e;(n.apply(this,[i,r,u,f]),t.grid.hasFixedColumns()&&(e=t._getColumnFixingInstance(),e.options.fixingDirection==="left"))||t._rsRenderColgroupHelper(i)},_rsRenderColgroupHelper:function(t){var i;i=n(t).find("colgroup");i.find("col[data-role='rs']").length===0&&n("<col><\/col>").prependTo(i).css("width",this.options.rowSelectorColumnWidth).attr("data-skip","true").attr("data-role","rs")},_rsRenderFixedColgroup:function(n,t,i){var r=this._columnFixing,u;(this._renderFixedColgroupHandler(n,t,i),r&&r.options.fixingDirection==="left")&&(u=n?r._containers.header.fixedTable||r._containers.body.fixedTable:t?r._containers.footer.fixedTable||r._containers.body.fixedTable:r._containers.body.fixedTable,this._rsRenderColgroupHelper(u))},_rsRenderFixedRecord:function(n,t){var r=this._renderFixedRecordHandler(n,t),f,u,i,e=this._getRowSelectorCellMarkup(!1,r.indexOf("ui-iggrid-selectedcell")!==-1);return i=r.indexOf("ui-iggrid-expandcolumn"),i>=0?(u=r.substr(i),i=i+u.indexOf("<\/td>")+4,f=r.substring(0,i+1),u=r.substring(i+1)):(i=r.indexOf(">")+1,f=r.substring(0,i),u=r.substring(i)),f+e+u},_rsRenderRecord:function(n,t){var r=this._gridRenderRecord(n,t),f,u,i,e=this._getRowSelectorCellMarkup(!1,r.indexOf("ui-iggrid-selectedcell")!==-1);return i=r.indexOf("ui-iggrid-expandcolumn"),i>=0?(u=r.substr(i),i=i+u.indexOf("<\/td>")+4,f=r.substring(0,i+1),u=r.substring(i+1)):(i=r.indexOf(">")+1,f=r.substring(0,i),u=r.substring(i)),f+e+u},_rsRenderRecordInArray:function(n,t,i,r){var f,u,e=!1;for(this._gridRenderRecordInArray(n,t,i,r),f=n.length-1;f>=0;f--)if(n[f].indexOf&&n[f].indexOf("<tr")!==-1){for(u=f;u<n.length;u++)if(n[u].indexOf&&n[u].indexOf("ui-iggrid-selectedcell")!==-1){e=!0;break}for(u=f;u<n.length;u++)if(n[u].indexOf&&n[u].indexOf("<td")!==-1){if(n[u].indexOf("ui-iggrid-expandcolumn")!==-1){n[u]+=this._getRowSelectorCellMarkup(!1,e);e=!1;break}n[u]=this._getRowSelectorCellMarkup(!1,e)+n[u];e=!1;break}break}},_renderExtraHeaderCells:function(n,t,i){this._renderExtraCells(n,t,i,!0)},_renderExtraFooterCells:function(n,t,i,r){this._renderExtraCells(n,t,i,!1,r)},_renderExtraCells:function(t,i,r,u,f){var s,h,e,o;t.find("[data-role='rs']").length>0||(s=u===!0?n("<th>"+(n.ig.util.isIE7?"&nbsp;":"")+"<\/th>").addClass(this.css.headerRowSelector).attr("data-role","rs").attr("data-skip","true"):n("<td>"+(n.ig.util.isIE7?"&nbsp;":"")+"<\/td>").addClass(this.css.footerRowSelector).addClass(f).attr("data-role","rs").attr("data-skip","true"),o=t.find("th.ui-iggrid-expandheadercell"),o.length===0?(o=t.children().first(),e=0):e=o.index()+1,r===!0||o.length===0?(s.prependTo(t),e=0):s.insertBefore(t.children().eq(e)),i&&(h=n("<col><\/col>").attr("data-skip","true").attr("data-role","rs").css("width",this.options.rowSelectorColumnWidth),h.insertBefore(i.children().eq(e))))},_registerCellEvents:function(){this._allRowSelectorCells().bind({click:this._rsClickHandler});this.grid.element.children("tbody").bind({mousemove:this._rrHoverHandler,mouseleave:this._rrLeaveHandler})},_unregisterCellEvents:function(){this._allRowSelectorCells().unbind({click:this._rsClickHandler});this.grid.element.children("tbody").unbind({mousemove:this._rrHoverHandler,mouseleave:this._rrLeaveHandler})},_registerCheckBoxEvents:function(){this._allCheckboxes().unbind({click:this._checkboxClickHandler,mouseover:this._checkboxMouseOverHandler,mouseout:this._checkboxMouseOutHandler}).bind({click:this._checkboxClickHandler,mouseover:this._checkboxMouseOverHandler,mouseout:this._checkboxMouseOutHandler});this._headerCheckbox().unbind({click:this._hCheckboxClickHandler,mouseover:this._checkboxMouseOverHandler,mouseout:this._checkboxMouseOutHandler}).bind({click:this._hCheckboxClickHandler,mouseover:this._checkboxMouseOverHandler,mouseout:this._checkboxMouseOutHandler})},_unregisterCheckBoxEvents:function(){this._allCheckboxes().unbind({click:this._checkboxClickHandler,mouseover:this._checkboxMouseOverHandler,mouseout:this._checkboxMouseOutHandler});this._headerCheckbox().unbind({click:this._hCheckboxClickHandler,mouseover:this._checkboxMouseOverHandler,mouseout:this._checkboxMouseOutHandler})},_checkboxMouseOver:function(t){n(t.target).closest("span[data-role='checkbox']").addClass(this.css.nodeHovered)},_checkboxMouseOut:function(t){n(t.target).closest("span[data-role='checkbox']").removeClass(this.css.nodeHovered)},_checkBoxClicked:function(t){var u=n(t.target).closest("span[name='chk']"),e=u.parent(),f=e.parent(),i,o=this._getVisibleRowIndex(f),r=f.attr("data-id"),s,h=u.attr("data-chk");(r===""||r===null||r===undefined)&&(r=o);i={row:f,rowIndex:o,rowKey:r,rowSelector:e,owner:this,grid:this.grid,currentState:h,newState:h==="off"?"on":"off",isHeader:!1};s=this._triggerCheckingEvent(t,i);s===!0&&(this._handleCheck(u),this._updateHeader(),delete i.currentState,i.state=i.newState,delete i.newState,this._triggerCheckedEvent(t,i));t.stopPropagation()},_headerCheckBoxClicked:function(t){var r=n(t.target).closest("span[name='hchk']"),i,u,f=r.attr("data-chk");i={owner:this,grid:this.grid,currentState:f,newState:f==="off"?"on":"off",isHeader:!0};u=this._triggerCheckingEvent(t,i);u===!0&&(this._handleHeaderCheck(r),delete i.currentState,i.state=i.newState,delete i.newState,this._triggerCheckedEvent(t,i));t.stopPropagation();t.preventDefault()},_handleCheck:function(n){var i=n.parent().parent(),u=this._getVisibleRowIndex(i),r=this._getVisibleHRowIndex(i),t=0;n!==undefined&&n!==null&&(this._v===!0&&(t=this.grid._startRowIndex),n.attr("data-chk")==="off"?(this._alterCheckbox(n,!0),this._ms||this._clearRowSelectorsSelection(),this.grid.element.igGridSelection("selectRow",r+t)):(this._alterCheckbox(n,!1),this.grid.element.igGridSelection("deselectRow",r+t)))},_handleHeaderCheck:function(n){var i=this._allCheckboxes(),t,u,r;if(this.grid.element.unbind("iggridselectioninternalrowselectionchanged",this._rowSelectionChangedHandler),n.attr("data-chk")==="off")for(this._alterCheckbox(n,!0),t=0;t<i.length;t++)i.eq(t).attr("data-chk")==="off"&&this._handleCheck(i.eq(t));else for(this._alterCheckbox(n,!1),t=0;t<i.length;t++)i.eq(t).attr("data-chk")==="on"&&this._handleCheck(i.eq(t));if(this._v===!0){for(u=n.attr("data-chk")==="on"?!0:!1,r=u?"selectRow":"deselectRow",t=0;t<this.grid._startRowIndex;t++)this.grid.element.igGridSelection(r,t);for(t=this.grid._startRowIndex+this.grid._virtualRowCount;t<this.grid._totalRowCount;t++)this.grid.element.igGridSelection(r,t)}this.grid.element.bind("iggridselectioninternalrowselectionchanged",this._rowSelectionChangedHandler)},_updateHeader:function(){for(var t=this._allCheckboxes(),r=this._headerCheckbox(),i=!0,n=0;n<t.length;n++)if(t.eq(n).attr("data-chk")==="off"){i=!1;break}this._alterCheckbox(r,i)},_alterCheckbox:function(n,t){var i=n.children().first();n.length>0&&i.length>0&&(t===!0?(n.attr("data-chk","on"),i.removeClass(this.css.checkBoxOff).addClass(this.css.checkBoxOn)):(n.attr("data-chk","off"),i.removeClass(this.css.checkBoxOn).addClass(this.css.checkBoxOff)))},_getRowSelectorCellMarkup:function(n,t){var i="";return i+='<th class="'+this.css.rowSelector,t&&(i+=" "+this.css.rowSelectorSelected),n&&(i+=" "+this._sTmpl),i+='"><span class="ui-icon ui-icon-triangle-1-e" style="margin-left: -5px"><\/span>',this.options.enableRowNumbering&&(i+=n===!0?this._nTmpl:this._getCurrentNumber()),this.options.enableCheckBoxes&&(i+=this._getCheckBox(!1,t)),i+"<\/th>"},_getCheckBox:function(n,t){var i="";return i+='<span name="'+(n===!0?"hchk":"chk")+'" ',i+='data-chk="'+(t?"on":"off")+'" ',i+='data-role="checkbox" class="'+this.css.checkBox+' "',this.options.showCheckBoxesOnFocus===!0&&this._checkBoxesShown===!1&&(i+=' style="visibility: hidden;"'),i+='><span class="'+(t?this.css.checkBoxOn:this.css.checkBoxOff)+'">',i+"<\/span><\/span>"},_getCurrentNumber:function(n){var t;return t=n!==undefined&&n!==null?n:++this._cIdx,'<span class="ui-iggrid-rowselector-row-number">'+(t+this.options.rowNumberingSeed+this._getStartingIndexForPage())+"<\/span>"},_getStartingIndexForPage:function(){return this.grid.dataSource.pageIndex()*this.grid.dataSource.pageSize()},_rsRenderVirtualRecords:function(t,i){var r=0,u;for(this._cIdx=0,r;r<i.rows.length;r++)u=n(this._getRowSelectorCellMarkup()),u.prependTo(i.rows.eq(r));this._registerCellEvents();this.options.enableCheckBoxes===!0&&this._registerCheckBoxEvents()},_rrn:function(){var f=this._allRowSelectorCells(),e=this._allCheckboxes(),t=0,s=this,i=this.grid._startRowIndex||0,o=this.grid._totalRowCount,u,r;if(this.options.enableRowNumbering===!0)for(t=0;t<f.length;t++)f.eq(t).removeClass(this.css.nodeHovered).children("span.ui-iggrid-rowselector-row-number").text(i+t+this.options.rowNumberingSeed+1);if(!this._skipRefresh){for(f.removeClass(this.css.rowSelectorSelected),e.map(function(){s._alterCheckbox(n(this),!1)}),this._ms?(u=this.grid._selectedCells,r=this.grid._selectedRows):(u=this.grid._selectedCell?[this.grid._selectedCell]:[],r=this.grid._selectedRow?[this.grid._selectedRow]:[]),t=0;t<u.length;t++)u[t].rowIndex>=i&&u[t].rowIndex<i+o&&f.eq(u[t].rowIndex-i).addClass(this.css.rowSelectorSelected);for(t=0;t<r.length;t++)r[t].index>=i&&r[t].index<i+o&&(f.eq(r[t].index-i).addClass(this.css.rowSelectorSelected),this.options.enableCheckBoxes===!0&&this._alterCheckbox(e.eq(r[t].index-i),!0))}},_cSelectionChanged:function(n,t){var i,r=!1;t.owner.grid.id()!==this.grid.id()&&(r=!0);i=this._ms?t.selectedCells:[this.grid._selectedCell];this._selectionChanged(this.grid._selectedRows,i,r)},_rSelectionChanged:function(n,t){var i,r=!1;t.owner.grid.id()!==this.grid.id()&&(r=!0);i=this._ms?t.selectedRows:[this.grid._selectedRow];this.grid.hasFixedColumns()&&this._getColumnFixingInstance().options.fixingDirection==="left"?(i=t.selectedFixedRows.length===0?[this.grid._selectedFixedRow]:t.selectedFixedRows,this._selectionChanged(i,this.grid._selectedFixedCells,r)):this._selectionChanged(i,this.grid._selectedCells,r)},_selectionChanged:function(n,t,i){var r,s,h,f,u,c,e,o;if(this._clearRowSelectorsSelection(),i!==!0){for(this._checkBoxesShown===!1&&this.options.showCheckBoxesOnFocus===!0&&this._animateCheckboxes(!0),r=0;r<n.length;r++)e=n[r],f=!0,this._v===!0&&(f=this.grid._startRowIndex<=e.index&&e.index<this.grid._startRowIndex+this.grid._virtualRowCount),s=e.element,s.length>0&&f&&(u=s.children("th"),u.hasClass(this.css.rowSelectorSelected)||u.addClass(this.css.rowSelectorSelected),this.options.enableCheckBoxes===!0&&(c=u.find("span[name='chk']"),this._alterCheckbox(c,!0)));for(r=0;r<t.length;r++)o=t[r],f=!0,this._v===!0&&(f=this.grid._startRowIndex<=o.rowIndex&&o.rowIndex<this.grid._startRowIndex+this.grid._virtualRowCount),h=o.element,h.length>0&&f&&(u=h.siblings("th"),u.hasClass(this.css.rowSelectorSelected)||u.addClass(this.css.rowSelectorSelected));this._updateHeader()}},_clearSelection:function(n,t){t.owner.id()===this.grid.id()&&this._clearRowSelectorsSelection()},_clearRowSelectorsSelection:function(){var n,t;for(this._allRowSelectorCells().removeClass(this.css.rowSelectorSelected),n=this.options.enableCheckBoxes?this._allCheckboxes():[],i=0;i<n.length;i++)t=n.eq(i),t.attr("data-chk")==="on"&&this._alterCheckbox(t,!1);n.length>0&&this._updateHeader()},_cellClick:function(t){var o,u=n(t.target),f,e=u.closest("th"),i=e.parent(),s=this._getVisibleRowIndex(i),r=i.attr("data-id");(this.options.showCheckBoxesOnFocus===!0&&this._checkBoxesShown===!1&&this._animateCheckboxes(!0),u.is("span")&&u.attr("unselectable"))||((r===""||r===null||r===undefined)&&(r=s),this.grid.hasFixedColumns()&&(this.grid._isFixedElement(e)?(f=i,i=this.grid.scrollContainer().find("tbody > tr").eq(i.index())):f=this.grid.fixedContainer().find("tbody > tr").eq(i.index())),o={row:i,fixedRow:f,rowIndex:s,rowKey:r,rowSelector:e,owner:this,grid:this.grid},this._triggerClickEvent(t,o))},_mouseHoverRow:function(t){for(var r,u,i=t.target;i;){if(r=i.parentNode,u=i.nodeName,u==="TR"&&r.nodeName==="TBODY")break;i=u==="TABLE"?null:r}this._hovTR!==i&&(this._hovTR&&n(this._hovTR).attr("data-container")!=="true"&&n("th."+this.css.rowSelector,this._hovTR).removeClass(this.css.nodeHovered),i&&n(i).attr("data-container")!=="true"&&n("th."+this.css.rowSelector,i).addClass(this.css.nodeHovered),this._hovTR=i)},_mouseLeaveRow:function(){this._hovTR&&(n("th",this._hovTR).removeClass(this.css.nodeHovered),this._hovTR=null)},_triggerClickEvent:function(n,t){this._trigger(this.events.rowSelectorClicked,n,t)},_triggerCheckingEvent:function(n,t){return this._trigger(this.events.checkBoxStateChanging,n,t)},_triggerCheckedEvent:function(n,t){this._trigger(this.events.checkBoxStateChanged,n,t)},_getVisibleRowIndex:function(n){return n.closest("tbody").children("tr:not([data-container='true'],[data-grouprow='true'])").index(n)},_getVisibleHRowIndex:function(n){return n.closest("tbody").children("tr:not([data-container='true'])").index(n)},_animateCheckboxes:function(t){var r=this._headerCheckbox(),u=this._allCheckboxes(),i=r.add(u);t===!0?i.css("visibility","visible").css("opacity",0).animate({opacity:1},1e3):i.css("opacity",1e3).animate({opacity:0},1e3,function(){n(this).css("visibility","hidden")});this._checkBoxesShown=t},_newRowAdded:function(){this._unregisterCellEvents();this._registerCellEvents();this.options.enableCheckBoxes===!0&&this._registerCheckBoxEvents()},_resetIndexing:function(){this._cIdx=0},_cleanInterface:function(n){var r,u,t,f,i;if(n===!0){this._alterCheckbox(this._headerCheckbox(),!1);return}t=this.grid.element.children("colgroup").children("[data-role='rs']");t=t.add(this.grid.fixedContainer().find("colgroup").children("[data-role='rs']"));this.grid.options.fixedHeaders===!0&&(t=t.add(this.grid.headersTable().children("colgroup").children("[data-role='rs']")),t=t.add(this.grid.fixedHeadersTable().children("colgroup").children("[data-role='rs']")));this.grid.options.fixedFooters===!0&&(t=t.add(this.grid.footersTable().children("colgroup").children("[data-role='rs']")),t=t.add(this.grid.fixedFootersTable().children("colgroup").children("[data-role='rs']")));u=this._footerRowSelectorCells();r=this._headerRowSelectorCells();f=this._allRowSelectorCells();!this.grid.options.width&&this._functionsRedirected&&(i=this.grid.container().css("width"),i&&!i.endsWith("%")&&this.grid.container().css("width",parseInt(i,10)-this.options.rowSelectorColumnWidth));t.remove();u.remove();r.remove();f.remove()},_allRowSelectorCells:function(){var n=this.grid.element.children("tbody").children("tr").children("th."+this.css.rowSelector);return n.length===0&&this.grid.hasFixedColumns()&&(n=this.grid.fixedContainer().find("tbody > tr > th."+this.css.rowSelector)),n},_headerRowSelectorCells:function(){var n=this.grid.headersTable().children("thead").find("th[data-role='rs']");return n.length===0&&this.grid.hasFixedColumns()&&(n=this.grid.fixedHeadersTable().children("thead").find("th[data-role='rs']")),n},_footerRowSelectorCells:function(){var n=this.grid.footersTable().children("tfoot").find("td[data-role='rs']");return n.length===0&&this.grid.hasFixedColumns()&&(n=this.grid.fixedFootersTable().children("tfoot").find("td[data-role='rs']")),n},_allCheckboxes:function(){var n=this.grid.element.children("tbody").children("tr").children("th").find("span[name='chk']");return n.length===0&&this.grid.hasFixedColumns()&&this._getColumnFixingInstance().options.fixingDirection==="left"&&(n=this.grid.fixedContainer().find("tbody > tr > th span[name='chk']")),n},_headerCheckbox:function(){var n=this.grid.headersTable().children("thead").find("tr > th span[name='hchk']");return n.length===0&&this.grid.hasFixedColumns()&&this._getColumnFixingInstance().options.fixingDirection==="left"&&(n=this.grid.fixedHeadersTable().children("thead").find("tr > th span[name='hchk']")),n},_columnFixed:function(t){var i=this._getColumnFixingInstance(),r=t.fixedColsCount;i&&i.options.fixingDirection!=="right"&&(this._renderFixedColgroupHandler||(this._renderFixedColgroupHandler=n.proxy(i._renderFixedColgroup,i),i._renderFixedColgroup=n.proxy(this._rsRenderFixedColgroup,this)),this._isColumnFixingFunctionsRedirected||(this._renderFixedRecordHandler=n.proxy(i._renderFixedRecord,i),this._isColumnFixingFunctionsRedirected=!0),t.isFixed?t.isInit&&(this.grid._renderRecord=this._gridRenderRecordHandler,i._renderFixedRecord=n.proxy(this._rsRenderFixedRecord,this)):r<=1&&!this.grid.hasFixedDataSkippedColumns()&&(this.grid._renderRecord=this._renderRecordHandler,i._renderFixedRecord=this._renderFixedRecordHandler))},_checkForSelection:function(){for(var i=!1,t=0;t<this.grid.options.features.length;t++)if(this.grid.options.features[t].name==="Selection"){i=!0;this.options.enableCheckBoxes===!0&&(this.grid.options.features[t].mode="row");break}if(i===!1){if(this.options.requireSelection===!0)throw new Error(n.ig.GridRowSelectors.locale.selectionNotLoaded);this._skipRefresh=!0}},_createHandlers:function(){this._headerRenderedHandler=n.proxy(this._headerRendered,this);this._footerRenderedHandler=n.proxy(this._footerRendered,this);this._recordsRenderingHandler=n.proxy(this._recordsRendering,this);this._recordsRenderedHandler=n.proxy(this._recordsRendered,this);this._gridRenderedHandler=n.proxy(this._gridRendered,this);this._cellSelectionChangedHandler=n.proxy(this._cSelectionChanged,this);this._rowSelectionChangedHandler=n.proxy(this._rSelectionChanged,this);this._clearSelectionHandler=n.proxy(this._clearSelection,this);this._virtualDomBuiltHandler=n.proxy(this._rsRenderVirtualRecords,this);this._virtualRowsHandler=n.proxy(this._rrn,this);this._groupedColumnsChangingHandler=n.proxy(this._resetIndexing,this);this._renderExtraHeaderCellHandler=n.proxy(this._renderExtraHeaderCells,this);this._renderExtraFooterCellHandler=n.proxy(this._renderExtraFooterCells,this);this._rsClickHandler=n.proxy(this._cellClick,this);this._rrHoverHandler=n.proxy(this._mouseHoverRow,this);this._rrLeaveHandler=n.proxy(this._mouseLeaveRow,this);this._newRowAddedHandler=n.proxy(this._newRowAdded,this);this.options.enableCheckBoxes===!0&&(this._checkboxMouseOverHandler=n.proxy(this._checkboxMouseOver,this),this._checkboxMouseOutHandler=n.proxy(this._checkboxMouseOut,this),this._checkboxClickHandler=n.proxy(this._checkBoxClicked,this),this._hCheckboxClickHandler=n.proxy(this._headerCheckBoxClicked,this))},_registerEvents:function(){this.grid.element.bind("iggridheaderrendered",this._headerRenderedHandler);this.grid.element.bind("iggridfooterrendered",this._footerRenderedHandler);this.grid.element.bind("iggrid_rowsrendering",this._recordsRenderingHandler);this.grid.element.bind("iggridrowsrendered",this._recordsRenderedHandler);this.grid.element.bind("iggriddatarendered",this._gridRenderedHandler);this.grid.element.bind("iggridvirtualdombuilt",this._virtualDomBuiltHandler);this.grid.element.bind("iggridvirtualrecordsrender",this._virtualRowsHandler);this.grid.element.bind("iggridselectioncellselectionchanged",this._cellSelectionChangedHandler);this.grid.element.bind("iggridselectionrowselectionchanged",this._rowSelectionChangedHandler);this.grid.element.bind("iggridselectioninternalrowselectionchanged",this._rowSelectionChangedHandler);this.grid.element.bind("iggridselectionselectioncleared",this._clearSelectionHandler);this.grid.element.bind("iggridgroupbygroupedcolumnschanging",this._groupedColumnsChangingHandler);this.grid.element.bind("iggridupdatingrowadded",this._newRowAddedHandler);this.grid.element.bind("iggridupdatinginternalrowadded",this._newRowAddedHandler);this.grid.element.bind("iggridloadondemandrowsrequested",this._newRowAddedHandler)},_unregisterEvents:function(){this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler);this.grid.element.unbind("iggridfooterrendered",this._footerRenderedHandler);this.grid.element.unbind("iggrid_rowsrendering",this._recordsRenderingHandler);this.grid.element.unbind("iggridrowsrendered",this._recordsRenderedHandler);this.grid.element.unbind("iggriddatarendered",this._gridRenderedHandler);this.grid.element.unbind("iggridvirtualdombuilt",this._virtualDomBuiltHandler);this.grid.element.unbind("iggridvirtualrecordsrender",this._virtualRowsHandler);this.grid.element.unbind("iggridselectioncellselectionchanged",this._cellSelectionChangedHandler);this.grid.element.unbind("iggridselectionrowselectionchanged",this._rowSelectionChangedHandler);this.grid.element.unbind("iggridselectioninternalrowselectionchanged",this._rowSelectionChangedHandler);this.grid.element.unbind("iggridselectioncleared",this._clearSelectionHandler);this.grid.element.unbind("iggridgroupbygroupedcolumnschanging",this._groupedColumnsChangingHandler);this.grid.element.unbind("iggridupdatingrowadded",this._newRowAddedHandler);this.grid.element.unbind("iggridupdatinginternalrowadded",this._newRowAddedHandler);this.grid.element.unbind("iggridloadondemandrowsrequested",this._newRowAddedHandler)},_injectGrid:function(t,i){if(i===!0){this._cleanInterface(!0);return}var r=this;this.grid=t;this._v=this.grid.options.virtualization===!0||this.grid.options.rowVirtualization===!0;this._flatRenderColgroup=this.grid._renderColgroup;this._createHandlers();this.grid._headerInitCallbacks.push({type:"RowSelectors",func:this._renderExtraHeaderCellHandler});this.grid._footerInitCallbacks.push({type:"RowSelectors",func:this._renderExtraFooterCellHandler});this._registerEvents();this.grid._renderColgroup=function(){r._flatRenderColgroup!==undefined&&r._rsRenderColgroup.apply(r.grid,n.merge([r._flatRenderColgroup,r],arguments))};this._checkForSelection()}});n.extend(n.ui.igGridRowSelectors,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridSelection",{css:{selectedCell:"ui-iggrid-selectedcell ui-state-active",selectedRow:"ui-iggrid-selectedrow ui-state-active",activeCell:"ui-iggrid-activecell ui-state-focus",activeRow:"ui-iggrid-activerow ui-state-focus"},options:{multipleSelection:!1,mouseDragSelect:!0,mode:"row",activation:!0,wrapAround:!0,skipChildren:!0,multipleCellSelectOnClick:!1,touchDragSelect:!0,persist:!0},events:{rowSelectionChanging:"rowSelectionChanging",rowSelectionChanged:"rowSelectionChanged",cellSelectionChanging:"cellSelectionChanging",cellSelectionChanged:"cellSelectionChanged",activeCellChanging:"activeCellChanging",activeCellChanged:"activeCellChanged",activeRowChanging:"activeRowChanging",activeRowChanged:"activeRowChanged"},_create:function(){this._isMouseDown=!1;this._isDrag=!1;this._registeredEvents=!1;this.y_exclude_current=0;this.x_exclude_current=0},_setOption:function(t){if(n.Widget.prototype._setOption.apply(this,arguments),t==="mode")throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);},_dataRendering:function(n,t){var i;t.owner.id()===this.grid.id()&&(i=this.grid.element.find("tbody"),this._mouseDownHandler&&(i.unbind({mousedown:this._mouseDownHandler,mousemove:this._mouseMoveHandler,mouseup:this._mouseUpHandler,selectstart:this._selectStartHandler}),this._touchEvents&&(i.unbind({touchstart:this._touchStartHandler,touchend:this._touchEndHandler,MSPointerDown:this._touchStartHandler,MSPointerMove:this._touchMoveHandler,MSPointerUp:this._touchEndHandler,pointerdown:this._touchStartHandler,pointermove:this._touchMoveHandler,pointerup:this._touchEndHandler}),i[0].removeEventListener("touchmove",this._touchMoveHandler))),this.options.persist&&!this.grid.options.primaryKey&&this._createUidForData(),this._buildSelectionCache())},_hidingFinishing:function(){this._buildSelectionCache()},_dataRendered:function(){this._registeredEvents?this._registerTbodyEvents():(this._registerEvents(),this._registeredEvents=!0);this._hc===undefined&&(this._hc=this.grid.container().closest(".ui-iggrid-root").length>0,this._hc===!1&&(this._hc=this.grid.element.hasClass("ui-iggrid-root")));this._hc&&(this._hgrid=this.grid.element.closest(".ui-iggrid-root"));this._groupBy===undefined&&(this._groupBy=this.grid.container().find(".ui-iggrid-groupbyarea").length>0);this._refresh(!0);this._initialSelectionInitialized||(this.options.selectedRowIndex!==undefined&&this.options.selectedRowIndex!==null&&this.options.selectedRowIndex>=0&&(this.options.selectedCellIndex===undefined?this.selectRow(this.options.selectedRowIndex):this.options.selectedCellIndex!==undefined&&this.options.selectedRowIndex!==null&&this.options.selectedCellIndex>=0&&this.selectCell(this.options.selectedRowIndex,this.options.selectedCellIndex)),this._initialSelectionInitialized=!0);this.grid._startRowIndex=this.grid._startRowIndex||0;this.options.persist&&this._reapplySelectionParams()},_hidingFinished:function(){this.options.persist&&this._reapplySelectionParams()},_virtRowCountDetermined:function(){this._buildSelectionCache()},_refresh:function(n){n&&this._firstCell&&this._firstCell.length!==0||(this._firstCell=this.grid.element.children("tbody").children("tr:visible:nth-child(1) td:nth-child(1)"),this._firstCell||(this._firstRow=this.grid.element.children("tbody").children("tr:visible:nth-child(1)")));n&&this._firstRow&&this._firstRow.length!==0&&this._rowCount||(this._firstRow=this.grid.element.children("tbody").children("tr:visible:nth-child(1)"),this._rowCount=this.grid.options.virtualization||this.grid.options.rowVirtualization?this.grid.dataSource.dataView().length:this.grid.element.find("tbody tr").length,this._length=this._firstRow?this._firstRow.children().length:0);this.x_exclude_current=this._calcExtraCells()},_registerTbodyEvents:function(){var t=this.grid.element.find("tbody"),i=this.options;this._mouseDownHandler?(t.unbind({mousedown:this._mouseDownHandler,mousemove:this._mouseMoveHandler,mouseup:this._mouseUpHandler,selectstart:this._selectStartHandler}),this._touchEvents&&(t.unbind({touchstart:this._touchStartHandler,touchend:this._touchEndHandler,MSPointerDown:this._touchStartHandler,MSPointerMove:this._touchMoveHandler,MSPointerUp:this._touchEndHandler,pointerdown:this._touchStartHandler,pointermove:this._touchMoveHandler,pointerup:this._touchEndHandler}),t[0].removeEventListener("touchmove",this._touchMoveHandler))):(this._mouseDownHandler=n.proxy(this._mouseDown,this),this._selectStartHandler=n.proxy(this._selectStart,this),this._mouseMoveHandler=n.proxy(this._dragSelectChange,this),this._mouseUpHandler=n.proxy(this._selectInternal,this),(typeof Modernizr=="object"&&Modernizr.touch===!0||window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&i.multipleSelection===!0&&i.mode==="cell"&&i.touchDragSelect===!0&&(this._touchStartHandler=n.proxy(this._touchStart,this),this._touchEndHandler=n.proxy(this._touchEnd,this),this._touchMoveHandler=n.proxy(this._touchMove,this),this._touchEvents=!0));t.bind({mousedown:this._mouseDownHandler,mousemove:this._mouseMoveHandler,mouseup:this._mouseUpHandler,selectstart:this._selectStartHandler});this._touchEvents&&(t.bind({touchstart:this._touchStartHandler,touchend:this._touchEndHandler,MSPointerDown:this._touchStartHandler,MSPointerMove:this._touchMoveHandler,MSPointerUp:this._touchEndHandler,pointerdown:this._touchStartHandler,pointermove:this._touchMoveHandler,pointerup:this._touchEndHandler}),t[0].addEventListener("touchmove",this._touchMoveHandler))},_registerFixedTbodyEvents:function(){var t=this.grid.fixedContainer().find("tbody"),i=this.options;this._mouseDownFixedHandler?(t.unbind({mousedown:this._mouseDownFixedHandler,mousemove:this._mouseMoveFixedHandler,mouseup:this._mouseUpFixedHandler,selectstart:this._selectStartFixedHandler}),this._touchEvents&&(t.unbind({touchstart:this._touchStartFixedHandler,touchend:this._touchEndFixedHandler,MSPointerDown:this._touchStartFixedHandler,MSPointerMove:this._touchMoveFixedHandler,MSPointerUp:this._touchEndFixedHandler,pointerdown:this._touchStartHandler,pointermove:this._touchMoveHandler,pointerup:this._touchEndHandler}),t[0].removeEventListener("touchmove",this._touchMoveFixedHandler))):(this._mouseDownFixedHandler=n.proxy(this._mouseDown,this),this._selectStartFixedHandler=n.proxy(this._selectStart,this),this._mouseMoveFixedHandler=n.proxy(this._dragSelectChange,this),this._mouseUpFixedHandler=n.proxy(this._selectInternal,this),(typeof Modernizr=="object"&&Modernizr.touch===!0||window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&i.multipleSelection===!0&&i.mode==="cell"&&i.touchDragSelect===!0&&(this._touchStartFixedHandler=n.proxy(this._touchStart,this),this._touchEndFixedHandler=n.proxy(this._touchEnd,this),this._touchMoveFixedHandler=n.proxy(this._touchMove,this),this._touchEvents=!0));t.bind({mousedown:this._mouseDownFixedHandler,mousemove:this._mouseMoveFixedHandler,mouseup:this._mouseUpFixedHandler,selectstart:this._selectStartFixedHandler});this._touchEvents&&(t.bind({touchstart:this._touchStartFixedHandler,touchend:this._touchEndFixedHandler,MSPointerDown:this._touchStartFixedHandler,MSPointerMove:this._touchMoveFixedHandler,MSPointerUp:this._touchEndFixedHandler,pointerdown:this._touchStartHandler,pointermove:this._touchMoveHandler,pointerup:this._touchEndHandler}),t[0].addEventListener("touchmove",this._touchMoveFixedHandler))},_registerEvents:function(){this._registerTbodyEvents();(this._releaseMouseHandler===null||this._releaseMouseHandler===undefined)&&(this._releaseMouseHandler=n.proxy(this._releaseMouse,this));n(document).bind({mouseup:this._releaseMouseHandler});this.grid.options.virtualization?n("#"+this.grid.element[0].id+"_scrollContainer").bind({scroll:n.proxy(this._releaseMouse,this)}):n("#"+this.grid.element[0].id+"_scroll").bind({scroll:n.proxy(this._releaseMouse,this)});this._keyDownHandler=n.proxy(this._navigate,this);this._focusHandler=n.proxy(this._navigateFocus,this);this._markMouseDownHandler=n.proxy(this._markMouseDown,this);this.grid.options.virtualization||this.grid.options.rowVirtualization?n("#"+this.grid.element[0].id+"_displayContainer_a").bind({keydown:this._keyDownHandler,focus:this._focusHandler}):this.grid.container().bind({keydown:this._keyDownHandler,focus:this._focusHandler});this.options.multipleSelection===!0&&this.grid.element.addClass("ui-iggrid-canceltextselection")},_unregisterEvents:function(){var t=this.grid.element.find("tbody");this.grid.element.unbind("mousedown",this._mouseDownHandler);this.grid.element.unbind("selectstart",this._selectStartHandler);this.grid.element.unbind("mousemove",this._mouseMoveHandler);this.grid.element.unbind("mouseup",this._mouseUpHandler);this.grid.container().unbind("keydown",this._keyDownHandler);this.grid.container().unbind("focus",this._focusHandler);this.grid.container().unbind("mousedown",this._markMouseDownHandler);this.grid.element.unbind("iggriduisoftdirty",this._uiDirtyHandler);this.grid.element.unbind("ighierarchicalgridrowexpanded",this._rowExpandedHandler);this.grid.element.unbind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler);this.grid.element.unbind("iggridvirtualrecordsrender",this._virtualRecordsRendererHandler);t.unbind({mousedown:this._mouseDownHandler,mousemove:this._mouseMoveHandler,mouseup:this._mouseUpHandler,selectstart:this._selectStartHandler});this._touchEvents&&(t.unbind({touchstart:this._touchStartHandler,touchend:this._touchEndHandler,MSPointerDown:this._touchStartHandler,MSPointerMove:this._touchMoveHandler,MSPointerUp:this._touchEndHandler,pointerdown:this._touchStartHandler,pointermove:this._touchMoveHandler,pointerup:this._touchEndHandler}),t[0].removeEventListener("touchmove",this._touchMoveHandler));this._releaseMouseHandler&&(n(document).unbind({mouseup:this._releaseMouseHandler}),delete this._releaseMouseHandler);delete this._mouseDownHandler;delete this._selectStartHandler;delete this._mouseMoveHandler;delete this._mouseUpHandler;delete this._keyDownHandler;delete this._focusHandler;delete this._markMouseDownHandler;delete this._uiDirtyHandler;delete this._rowExpandedHandler;delete this._columnsCollectionModifiedHandler;delete this._virtualRecordsRendererHandler;delete this._touchEvents;this.grid.element.removeClass("ui-iggrid-canceltextselection")},_dragSelectChange:function(t){var r,e,u,f,s,i,o,h=!0,c=this.grid.options.virtualization||this.grid.options.rowVirtualization;if((!t||!this._suspend)&&(this._prevX||this._prevY||(this._prevX=t.clientX,this._prevY=t.clientY),!(Math.abs(this._prevX-t.clientX)<5)||!(Math.abs(this._prevY-t.clientY)<5))&&(this._prevX=t.clientX,this._prevY=t.clientY,this.options.mouseDragSelect!==!1&&this.options.multipleSelection!==!1&&this.options.mode!=="row")){if(this._isMouseDown===!0)this._isDrag=!0;else return;if(this._isMouseDown===!0&&this.options.mode==="cell"){if(this._hc&&t&&t.target&&(s=n(t.target).closest(".ui-iggrid-table"),s.length>0&&s.attr("id")!==this.grid.element.attr("id"))){t.stopPropagation();t.preventDefault();return}(i=this._cellFromEvent(t),i)&&(i&&this.activeCell()&&i.index===this.activeCell().index&&i.rowIndex===this.activeCell().rowIndex||(!this._touchEvents||window.navigator.msPointerEnabled||window.navigator.pointerEnabled||(t={originalEvent:t}),h=this._trigger(this.events.cellSelectionChanging,t,{cell:i,selectedCells:this.grid._selectedCells,owner:this,manual:!1}),h&&(this.options.activation===!0&&this._activateCell(i,t),r=this._firstDragCell.rowIndex,e=this._firstDragCell.index+this._firstDragCell.element.parent().children("[data-skip=true]").length,u=i.rowIndex,f=i.index+this._firstDragCell.element.parent().children("[data-skip=true]").length,u<r&&(o=r,r=u,u=o),i.isFixed===this._firstDragCell.isFixed&&f<e&&(o=e,e=f,f=o),i.isFixed!==this._firstDragCell.isFixed&&(this._lastSelectedIndex===undefined||this._lastSelectedIndex===null)&&(this._lastSelectedIndex=i.isFixed===!0?this.grid._selectedCells[this.grid._selectedCells.length-1].index:f),this.clearSelection(!0),c&&(r-=this.grid._startRowIndex,u-=this.grid._startRowIndex),this._selectCell(r,u,e,f,i.isFixed),this._currentCells=[],this._trigger(this.events.cellSelectionChanged,t,{cell:i,selectedCells:this.grid._selectedCells,owner:this,manual:!1}))))}}},_touchStart:function(n){n.clientX=n.originalEvent.touches?n.originalEvent.touches[0].pageX:n.originalEvent.clientX;n.clientY=n.originalEvent.touches?n.originalEvent.touches[0].pageY:n.originalEvent.clientY;this._cellFromEvent(n).element.hasClass(this.css.selectedCell)&&(this.grid.element.css("-ms-touch-action","none"),this._touchDragStart=!0)},_touchEnd:function(){this._touchDragStart&&(this._isMouseDown=!1);this._touchDragStart=!1;this._isDrag=!1;this.grid.element.find("tbody").css("-ms-touch-action","auto")},_touchMove:function(n){if(!this._touchDragStart)return!0;n.preventDefault();n.clientX=n.touches?n.touches[0].pageX:n.originalEvent.clientX;n.clientY=n.touches?n.touches[0].pageY:n.originalEvent.clientY;this._touchDragStart=!0;this._isMouseDown=!0;this._dragSelectChange(n)},_selectCell:function(t,i,r,u,f){for(var o,s,e=t;e<=i;e++)for(o=r;o<=u;o++)s=n(this.grid.cellAt(o,e,f)).addClass(this.css.selectedCell),this.grid._selectedCells.push(this._cellFromElement(s,e+this.grid._startRowIndex,o,f))},_applyCellStyle:function(n,t){return this._scc?this._isCellSelectedByKey(n[this.grid.options.primaryKey||"ig_pk"],t,this._scc)?this.css.selectedCell:"":""},_applyRowStyle:function(n,t,i){var r=this.grid.options.primaryKey||"ig_pk",u=i?this._srcf:this._src;return u?this._procRecord&&this._procRecord.key===n[r]?this._procRecord.selected?this.css.selectedCell:"":(this._procRecord={key:n[r],selected:this._isRowSelectedByKey(n[r],u)},this._procRecord.selected?this.css.selectedCell:""):""},_cellFromEvent:function(t){var r,i,u=!1;return i=this._touchEvents===!0?n(document.elementFromPoint(t.clientX,t.clientY)):n(t.originalEvent.originalTarget||t.originalEvent.srcElement),r=i.is("td,th")?i[0]:i.closest("td,th")[0],this.grid.hasFixedColumns()&&(u=i.closest("div").attr("data-fixed-container")!==undefined),this._cellFromElement(r,undefined,undefined,u)},_cellFromElement:function(t,i,r,u){var e,o,s,f,c=null,h,l;if((u===null||u===undefined)&&(u=!1),e=n(t),o=e.parent(),i===undefined||r===undefined?(f=e.index(),s=o.index(),(this.grid.options.virtualization||this.grid.options.rowVirtualization||this.grid.options.columnVirtualization)&&(this.grid._startRowIndex>0&&(s+=this.grid._startRowIndex),this.grid._startColIndex>0&&(f+=this.grid._startColIndex))):(f=r,s=i),f!==-1)return h=f-this.x_exclude_current<0?0:f-this.x_exclude_current>=this.grid._visibleColumns().length?this.grid._visibleColumns().length-1:f-this.x_exclude_current,h-=e.siblings("th,td.ui-iggrid-expandcolumn").length,h>=0&&this.grid._visibleColumns().length>h&&(c=this.grid._visibleColumns()[h].key),this.y_exclude_current!==undefined&&(s-=this.y_exclude_current),this.x_exclude_current!==undefined&&(f-=this.x_exclude_current),this.grid.hasFixedColumns()&&e.is("td")&&(l=this.grid._getColumnByTD(e),l!==null&&(c=l.column.key)),{element:e,row:o,rowId:o.data()?o.data().id:null,index:f,rowIndex:s,columnKey:c,isFixed:u}},_reapplySelectionParams:function(){var r,u,t=this,i,f,e,o;r=this.grid._activeCell;u=this.grid._activeRow;r&&(i=this._cellFromElement(this.grid.cellById(r.rowId,r.columnKey)),i&&i.element instanceof jQuery&&this._activateCell(i));u&&(i=this.grid.rowById(u.id),i&&i.length>0&&(nidx=i.index(),o=i.data()?i.data().id:null,f={element:i,index:nidx,id:o},this.grid.hasFixedColumns()&&(e=n.extend({},f,{element:this.grid.fixedBodyContainer().find("tbody tr:nth-child("+(nidx+1)+")")})),this._activateRow(f,null,e)));setTimeout(function(){var n=0;if(t.grid._selectedRows)for(n=0;n<t.grid._selectedRows.length;n++)t.grid._selectedRows[n].element=t.grid.rowById(t.grid._selectedRows[n].id),t.grid._selectedRows[n].element&&t.grid._selectedRows[n].element.length>0&&(t.grid._selectedRows[n].index=t.grid._selectedRows[n].element.index());if(t.grid._selectedRow&&(t.grid._selectedRow.element=t.grid.rowById(t.grid._selectedRow.id),t.grid._selectedRow.element&&t.grid._selectedRow.element.length>0&&(t.grid._selectedRow.index=t.grid._selectedRow.element.index())),t.grid._selectedCells)for(n=0;n<t.grid._selectedCells.length;n++)t.grid._selectedCells[n].element=t.grid.cellById(t.grid._selectedCells[n].rowId,t.grid._selectedCells[n].columnKey),t.grid._selectedCells[n].element&&t.grid._selectedCells[n].element.length>0&&(t.grid._selectedCells[n].row=t.grid._selectedCells[n].element.parent("tr"),t.grid._selectedCells[n].rowIndex=t.grid._selectedCells[n].row.index());if(t.grid._selectedCell&&(t.grid._selectedCell.element=t.grid.cellById(t.grid._selectedCell.rowId,t.grid._selectedCell.columnKey),t.grid._selectedCell.element&&t.grid._selectedCell.element.length>0&&(t.grid._selectedCell.row=t.grid._selectedCell.element.parent("tr"),t.grid._selectedCell.rowIndex=t.grid._selectedCell.row.index())),t.grid._selectedFixedRows)for(n=0;n<t.grid._selectedFixedRows.length;n++)t.grid._selectedFixedRows[n].element=t.grid.rowById(t.grid._selectedFixedRows[n].id,!0),t.grid._selectedFixedRows[n].element&&t.grid._selectedFixedRows[n].element.length>0&&(t.grid._selectedFixedRows[n].index=t.grid._selectedFixedRows[n].element.index());t.grid._selectedFixedRow&&(t.grid._selectedFixedRow.element=t.grid.rowById(t.grid._selectedFixedRow.id,!0),t.grid._selectedFixedRow.element&&t.grid._selectedFixedRow.element.length>0&&(t.grid._selectedFixedRow.index=t.grid._selectedFixedRow.element.index()))},0);this._removeSelectionCache()},_mouseDown:function(t){var i=this.grid.options.virtualization||this.grid.options.rowVirtualization||this.grid.options.columnVirtualization,r,u=this.grid.options.virtualizationMode!=="continuous";if((!t||!this._suspend)&&(!t.target||!n(t.target).hasClass("ui-iggrid-scrolldiv"))&&(t&&t.which===0&&(t.which=1),!t||t.which===1)&&(!this._hc||!t||!t.target||(r=n(t.target).closest(".ui-iggrid-table"),!(r.length>0)||r.attr("id")===this.grid.element.attr("id")))){if(t.target&&n(t.target).closest("td").attr("data-skip")==="true"){t.stopPropagation();t.preventDefault();n(t.target).trigger("iggridselectionmousedown");return}t.which!==2&&(this._isMouseDown=!0,this.options.multipleSelection===!1&&i&&u&&(n("#"+this.grid.element[0].id+"_displayContainer_a").focus(),(this.grid.options.virtualization||this.grid.options.rowVirtualization)&&this.grid.options.virtualizationMode==="continuous"&&t.preventDefault()),this.options.mouseDragSelect!==!1&&this.options.multipleSelection!==!1)&&(this._mouseLocation={clientX:t.clientX,clientY:t.clientY},this._firstDragCell=this._cellFromEvent(t),this._lastSelectedIndex=null,t.ctrlKey||t.shiftKey||this.options.multipleSelection===!0||this.clearSelection(!0),this._isInternalFocus=!0,this.options.multipleSelection===!0&&i&&u&&n("#"+this.grid.element[0].id+"_displayContainer_a").focus(),n(t.target).hasClass("ui-iggrid-expandbutton")||n(t.target).hasClass("ui-iggrid-expandcolumn")||n(t.target).hasClass("ui-iggrid-expandbuttongb")||(i&&(t.stopPropagation(),t.preventDefault()),n(t.target).trigger("iggridselectionmousedown")))}},_markMouseDown:function(){this._isMouseDown=!0},_selectStart:function(t){if((!t.target||n(t.target).closest(".ui-iggrid-table").attr("id")===this.grid.id())&&(!t||!this._suspend)){if(this.options.mouseDragSelect===!1||this.options.multipleSelection===!1)return!1;t.stopPropagation();t.preventDefault()}},_releaseMouse:function(){this._isMouseDown=!1;this._isDrag=!1},_selectInternal:function(t,i,r,u){var p,c,s,f,h,e,k=!0,o=!1,g,nt,tt,it,l,ut,et=this,d=!1,ft,y,w,a=this.grid.hasFixedColumns(),rt=!1,b,v;if((v=this.grid._startRowIndex||0,y=this.grid.options.virtualization||this.grid.options.columnVirtualization||this.grid.options.rowVirtualization,this._isMouseDown||!t)&&(t&&t.which===0&&(t.which=1),!t||t.which===1)&&(t===null||!t.target||!(n(t.target).hasClass("ui-iggrid-childarea")||n(t.target).parent().hasClass("ui-iggrid-childarea")||n(t.target).hasClass("ui-widget-header")))){if(t===null&&(o=!0,w=this.y_exclude_current,(this._isContinuous||o)&&(w=0),g=i-v<0?0:i-v+w,t={originalEvent:{}},r===null||r===undefined?(d=!0,t.originalEvent.originalTarget=y?this.grid.rowAt(g):this.grid.rowAt(i-w)):t.originalEvent.originalTarget=y?this.grid.cellAt(r,g,u):this.grid.cellAt(r+this.x_exclude_current,i-w,u),t.originalEvent.srcElement=t.originalEvent.originalTarget),p=t.originalEvent.originalTarget||t.originalEvent.srcElement,s=n(p),a&&(rt=s.closest("div").attr("data-fixed-container")!==undefined),nt=s.closest("th.ui-iggrid-rowselector-class").length===1,t&&s.is("span")&&(s.attr("data-chk")!==undefined||s.parent().attr("data-chk")!==undefined)){this._mouseCtrlSelect=!0;return}if(this._hc){if(tt=s.closest(".ui-iggrid-table"),tt.length>0&&tt.attr("id")!==this.grid.element.attr("id")){t&&!o&&(t.preventDefault(),this._isMouseDown=!1,this._isDrag=!1);return}if(s.parents("tr[data-container]").each(function(){if(n(this).closest(".ui-iggrid-table").attr("id")===et.grid.element.attr("id"))return ut=!0,!1}),ut)return;this._hgrid&&this._hgrid.data("data-selectgrid")!==this.grid.element.attr("id")&&(this.clearSelectionAllOthers(!1,!0),this._hgrid.data("data-selectgrid",this.grid.element.attr("id")))}if((this._hc&&this._hdirty?this.y_exclude_current=this._excludeRowsLt(s.closest("tr")):this._hc||(this.y_exclude_current=0),this.x_exclude_current===undefined&&(this.x_exclude_current=this._calcExtraCells()),!t||!this._suspend)&&(!t||t.which!==2)){if(this._isDrag===!0&&t!==null){this._isDrag=!1;return}if((c=s.closest("tr"),!(s.closest("th").length>0)||nt!==!1)&&s.closest("td").attr("data-skip")!=="true"){if(t.ctrlKey&&(this._isContinuous=!1,this._mouseCtrlSelect=!0),this.options.multipleCellSelectOnClick===!0&&this.options.mode==="cell"&&this.activeCell()&&(this._isContinuous=!1,this._mouseCtrlSelect=!0,it=!0),this.options.mode==="cell"&&d===!1)p=nt===!0?o===!0?s.is("th")?s[0]:s.closest("th")[0]:s.is("th")?s.next()[0]:s.closest("th").next()[0]:s.is("td")?s[0]:s.closest("td")[0],f=this._cellFromElement(p,undefined,undefined,rt,u),this.options.activation===!0&&this._rangeSelect!==!0&&this._singleShiftSelect!==!0&&this._ctrlSelect!==!0&&(this._mouseCtrlSelect!==!0?this._activateCell(f,t):this._activateCell(f,t));else{if(o&&(c=n(p)),ft=c.index(),b=ft+v-this.y_exclude_current,rt&&(c=this.grid.scrollContainer().find("tbody tr:nth-child("+(b+1)+")")),h={element:c,index:b,id:c.data()?c.data().id:null},a&&(l={element:this.grid.fixedBodyContainer().find("tbody tr:nth-child("+(b+1)+")"),index:b,id:c.data()?c.data().id:null}),h.element.attr("data-container"))return;this.options.activation===!0&&this._rangeSelect!==!0&&this._singleShiftSelect!==!0&&this._ctrlSelect!==!0&&(this._mouseCtrlSelect!==!0?this._activateRow(h,t,l):this.activeRow()&&h.index!==this.activeRow().index&&this._activateRow(h,t,l))}if(o===!1&&this.options.mode==="cell"||o===!0&&d===!1){if((o!==!1||t.shiftKey)&&this._ctrlSelect!==!0||(k=this._trigger(this.events.cellSelectionChanging,t,{cell:f,selectedCells:this.grid._selectedCells,owner:this,manual:o})),k&&f&&f.element&&!f.element.hasClass("ui-iggrid-expandcolumn")&&!f.element.hasClass("ui-iggrid-rowselector-class")){if(this.options.multipleSelection!==!0)this.grid._selectedCell!==null&&(y?n(this.grid.cellAt(this.grid._selectedCell.index,this.grid._selectedCell.rowIndex-v,u)).removeClass(this.css.selectedCell):this.grid._selectedCell.element.removeClass(this.css.selectedCell)),this.grid._selectedRow!==null&&this.grid._selectedRow!==undefined&&(y?this.grid.rowAt(this.grid._selectedRow.index-v).children().removeClass(this.css.selectedCell):this.grid._selectedRow.element.children().removeClass(this.css.selectedCell)),this.grid._selectedFixedRow!==null&&this.grid._selectedFixedRow!==undefined&&this.grid._selectedFixedRow.element.children().removeClass(this.css.selectedCell);else if(t.ctrlKey||this._ctrlSelect===!0||it===!0)if(f.element.hasClass(this.css.selectedCell))for(e=0;e<this.grid._selectedCells.length;e++)this.grid._selectedCells[e].element&&this.grid._selectedCells[e].element.length>0?this.grid._selectedCells[e].element.index()===f.rowIndex&&this.grid._selectedCells[e].index===f.index&&n.ig.removeFromArray(this.grid._selectedCells,e):this.grid._selectedCells[e].rowIndex===f.rowIndex&&this.grid._selectedCells[e].index===f.index&&n.ig.removeFromArray(this.grid._selectedCells,e);else this.grid._selectedCells.push(f);else{if(t.shiftKey){this._shiftCellSelection(f);return}o||this.clearSelection(!0);this._isCellSelected(f.rowIndex,f.index)||this.grid._selectedCells.push(f);o||(this._realActiveCell=f)}(t.ctrlKey||this._ctrlSelect===!0||it===!0)&&f.element.hasClass(this.css.selectedCell)?f.element.removeClass(this.css.selectedCell):(f.element.addClass(this.css.selectedCell),this.grid._selectedCell=f);(o===!1||this._ctrlSelect===!0)&&this._trigger(this.events.cellSelectionChanged,t,{cell:f,selectedCells:this.grid._selectedCells,owner:this,manual:o})}}else if((o===!1&&this.options.mode==="row"||o===!0&&d===!0)&&((o!==!1||t.shiftKey)&&this._ctrlSelect!==!0||(k=this._trigger(this.events.rowSelectionChanging,t,{row:h,selectedRows:this.grid._selectedRows,owner:this,manual:o})),k)){if(this.options.multipleSelection!==!0)this.grid._selectedRow!==null&&(y?n(this.grid.rowAt(this.grid._selectedRow.index-v)).children().removeClass(this.css.selectedCell):n(this.grid._selectedRow.element).children().removeClass(this.css.selectedCell)),this.grid._selectedFixedRow!==null&&this.grid._selectedFixedRow!==undefined&&n(this.grid._selectedFixedRow.element).children().removeClass(this.css.selectedCell),this.grid._selectedCell!==null&&this.grid._selectedCell!==undefined&&(y?n(this.grid.cellAt(this.grid._selectedCell.index,this.grid._selectedCell.rowIndex-v,u)).removeClass(this.css.selectedCell):this.grid._selectedCell.element.removeClass(this.css.selectedCell)),this.grid._selectedFixedCell!==null&&this.grid._selectedFixedCell!==undefined&&this.grid._selectedFixedCell.element.removeClass(this.css.selectedFixedCell);else if(t.ctrlKey||this._ctrlSelect===!0)if(h.element.children().hasClass(this.css.selectedCell))for(e=0;e<this.grid._selectedRows.length;e++)this.grid._selectedRows[e].element&&this.grid._selectedRows[e].element.length>0?this.grid._selectedRows[e].element.index()===h.index&&(n.ig.removeFromArray(this.grid._selectedRows,e),a&&this.grid._selectedFixedRows[e]&&n.ig.removeFromArray(this.grid._selectedFixedRows,e)):this.grid._selectedRows[e].index===h.index&&(n.ig.removeFromArray(this.grid._selectedRows,e),a&&this.grid._selectedFixedRows[e]&&n.ig.removeFromArray(this.grid._selectedFixedRows,e));else this.grid._selectedRows.push(h),a&&this.grid._selectedFixedRows.push(l);else{if(t.shiftKey){this._shiftRowSelection(h);return}o||this.clearSelection(!0);this._isRowSelected(h.index)||(this.grid._selectedRows.push(h),a&&this.grid._selectedFixedRows.push(l));o||(this._realActiveRow=h)}(t.ctrlKey||this._ctrlSelect===!0)&&h.element.children().hasClass(this.css.selectedCell)?(h.element.removeClass(this.css.selectedRow),h.element.children().removeClass(this.css.selectedCell),a&&l&&(l.element.removeClass(this.css.selectedRow),l.element.children().removeClass(this.css.selectedCell))):c.is("tr")&&(c.children(":not(.ui-iggrid-nongrouprowemptycell)").addClass(this.css.selectedCell),a&&l.element.children(":not(.ui-iggrid-nongrouprowemptycell)").addClass(this.css.selectedCell));this.grid._selectedRow=h;a&&(this.grid._selectedFixedRow=l);o===!1||this._ctrlSelect===!0?this._trigger(this.events.rowSelectionChanged,t,{row:h,selectedRows:this.grid._selectedRows,selectedFixedRows:this.grid._selectedFixedRows,owner:this,manual:o}):o!==!0||this._rangeSelect||this._trigger("internalrowselectionchanged",t,{row:h,selectedRows:this.grid._selectedRows,selectedFixedRows:this.grid._selectedFixedRows,owner:this})}this._mouseCtrlSelect=!1}}}},_shiftRowSelection:function(n,t,i,r,u){var f,e,o,s=!0;if(this._isContinuous=!0,this.grid._selectedRows.length===0){this._singleShiftSelect=!0;s=this._trigger(this.events.rowSelectionChanging,null,{row:n,startIndex:n.index,endIndex:n.index,selectedRows:this.grid._selectedRows,owner:this,manual:!1,selectedFixedRows:this.grid._selectedFixedRows});s&&(this.selectRow(n.index),this._trigger(this.events.rowSelectionChanged,null,{row:n,selectedRows:this.grid._selectedRows,owner:this,manual:!1,selectedFixedRows:this.grid._selectedFixedRows}));this._singleShiftSelect=!1;return}if(o=n.index,e=this.grid._selectedRows[0].index,s=this._trigger(this.events.rowSelectionChanging,null,{row:n,startIndex:e,endIndex:o,selectedRows:this.grid._selectedRows,owner:this,manual:!1,selectedFixedRows:this.grid._selectedFixedRows}),s){if(this._rangeSelect=!0,i)u&&this._activateRow(n,u),this._isRowSelected(this.activeRow().index)?this.deselectRow(r.index):this.selectRow(this.activeRow().index),this._singleShiftSelect=!1;else{if(this.grid._selectedRows.length>0&&this.grid._selectedRows[0].index<n.index)for(t!==!1&&this.clearSelection(!0),f=e;f<=o;f++)this.selectRow(f);if(this.grid._selectedRows.length>0&&this.grid._selectedRows[0].index>n.index)for(t!==!1&&this.clearSelection(!0),f=e;f>=o;f--)this.selectRow(f)}this._rangeSelect=!1;this._trigger(this.events.rowSelectionChanged,null,{row:n,selectedRows:this.grid._selectedRows,owner:this,manual:!1,selectedFixedRows:this.grid._selectedFixedRows})}},_shiftCellSelection:function(n,t,i,r,u){var p,v,y,l,a,f,e,w=!0,o=0,s=Number.MAX_VALUE,h=0,c=Number.MAX_VALUE;if(this._isContinuous=!0,this.grid._selectedCells.length===0){this._singleShiftSelect=!0;w=this._trigger(this.events.cellSelectionChanging,null,{cell:n,firstRowIndex:n.rowIndex,lastRowIndex:n.rowIndex,firstColumnIndex:n.index,lastColumnIndex:n.index,selectedCells:this.grid._selectedCells,owner:this,manual:!1});w&&(this.selectCell(n.rowIndex,n.index),this._trigger(this.events.cellSelectionChanged,null,{cell:n,selectedCells:this.grid._selectedCells,owner:this,manual:!1}));this._singleShiftSelect=!1;return}if(p=this.grid._selectedCells[0],v=p.rowIndex,y=n.rowIndex,l=p.index,a=n.index,w=this._trigger(this.events.cellSelectionChanging,null,{cell:n,firstRowIndex:v,lastRowIndex:y,firstColumnIndex:l,lastColumnIndex:a,selectedCells:this.grid._selectedCells,owner:this,manual:!1}),w){if(t!==!1&&this.clearSelection(!0),this._rangeSelect=!0,i){if(this._singleShiftSelect=!0,u&&this._activateCell(n,u),this._isCellSelected(this.activeCell().rowIndex,this.activeCell().index)){for(this.deselectCell(r.rowIndex,r.index),f=0;f<this.grid._selectedCells.length;f++)this.grid._selectedCells[f].rowIndex>o&&(o=this.grid._selectedCells[f].rowIndex),this.grid._selectedCells[f].rowIndex<s&&(s=this.grid._selectedCells[f].rowIndex),this.grid._selectedCells[f].index>h&&(h=this.grid._selectedCells[f].index),this.grid._selectedCells[f].index<c&&(c=this.grid._selectedCells[f].index);if(Math.abs(s-o)>0&&Math.abs(this.activeCell().index-r.index)>0)if(s<=o)for(f=s;f<=o;f++)this.deselectCell(f,r.index);else for(f=s;f>=o;f--)this.deselectCell(f,r.index);else if(Math.abs(c-h)>0&&Math.abs(this.activeCell().rowIndex-r.rowIndex)>0)if(c<=h)for(f=c;f<=h;f++)this.deselectCell(r.rowIndex,f);else for(f=c;f>=h;f--)this.deselectCell(r.rowIndex,f)}else{for(this.selectCell(this.activeCell().rowIndex,this.activeCell().index),f=0;f<this.grid._selectedCells.length;f++)this.grid._selectedCells[f].rowIndex>o&&(o=this.grid._selectedCells[f].rowIndex),this.grid._selectedCells[f].rowIndex<s&&(s=this.grid._selectedCells[f].rowIndex),this.grid._selectedCells[f].index>h&&(h=this.grid._selectedCells[f].index),this.grid._selectedCells[f].index<c&&(c=this.grid._selectedCells[f].index);if(Math.abs(s-o)>0&&Math.abs(this.activeCell().index-r.index)>0)if(s<=o)for(f=s;f<=o;f++)this.selectCell(f,this.activeCell().index);else for(f=s;f>=o;f--)this.selectCell(f,this.activeCell().index);else if(Math.abs(c-h)>0&&Math.abs(this.activeCell().rowIndex-r.rowIndex)>0)if(c<=h)for(f=c;f<=h;f++)this.selectCell(this.activeCell().rowIndex,f);else for(f=c;f>=h;f--)this.selectCell(this.activeCell().rowIndex,f)}this._singleShiftSelect=!1}else if(p.isFixed===n.isFixed)if(v<=y)for(f=v;f<=y;f++)if(l<=a)for(e=l;e<=a;e++)this.selectCell(f,e,n.isFixed);else for(e=l;e>=a;e--)this.selectCell(f,e,n.isFixed);else for(f=v;f>=y;f--)if(l<=a)for(e=l;e<=a;e++)this.selectCell(f,e,n.isFixed);else for(e=l;e>=a;e--)this.selectCell(f,e,n.isFixed);this._rangeSelect=!1;this._trigger(this.events.cellSelectionChanged,null,{cell:n,selectedCells:this.grid._selectedCells,owner:this,manual:!1})}},_rowExpanded:function(){this._hdirty=!0},_navigate:function(t){var u=n("#"+this.grid.element[0].id+"_displayContainer_a"),r,i=!1;if((!t||!this._suspend)&&this._isMouseDown!==!0&&(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE||t.keyCode===n.ui.keyCode.UP||t.keyCode===n.ui.keyCode.DOWN||t.keyCode===n.ui.keyCode.LEFT||t.keyCode===n.ui.keyCode.RIGHT)){if(this._hc?(r=this.options.mode==="row"?this.activeRow():this.activeCell(),r!==undefined&&r!==null&&(r=this.options.mode==="row"?r.element:r.element.closest("tr"),this.y_exclude_current=this._excludeRowsLt(r))):this.y_exclude_current=0,this.x_exclude_current===undefined&&(this.x_exclude_current=this._calcExtraCells()),this.grid.options.virtualization){if(n.ig.util.isIE&&document.activeElement&&document.activeElement.id!==this.grid.id()&&document.activeElement.id!==this.grid.container().attr("id")&&!n(document.activeElement).is("td")&&n(document.activeElement).closest("table")[0].id!==this.grid.id())return;if(!n.ig.util.isIE&&t.target.id!==u.attr("id"))return}else{if(n.ig.util.isIE&&document.activeElement&&document.activeElement.id!==this.grid.id()&&document.activeElement.id!==this.grid.container().attr("id")&&!n(document.activeElement).is("td")&&n(document.activeElement).closest("table")[0].id!==this.grid.id())return;if(!n.ig.util.isIE&&t.target.id!==this.grid.container().attr("id"))return}this.options.activation===!0&&(this.options.mode==="cell"?this.options.multipleSelection===!0?this.activeCell()===null||this.activeCell()===undefined?this.selectCell(0,0):this.options.skipChildren===!1&&this._hc&&this._isMovingUpDown(t)?(i=this._activateNextGrid(t),i||this._navigateCell(t,!1)):this._navigateCell(t,!1):this.activeCell()===null&&this.grid._selectedCell===null||this.activeCell()===undefined&&this.grid._selectedCell===undefined?this.selectCell(0,0):this.options.skipChildren===!1&&this._hc&&this._isMovingUpDown(t)?(i=this._activateNextGrid(t),i||this._navigateCell(t,!0)):this._navigateCell(t,!0):this.options.multipleSelection===!0?this.activeRow()===null||this.activeRow()===undefined?this.selectRow(0):this.options.skipChildren===!1&&this._hc&&this._isMovingUpDown(t)?(i=this._activateNextGrid(t),i||this._navigateRow(t,!1)):this._navigateRow(t,!1):this.activeRow()===null&&this.grid._selectedRow===null||this.activeRow()===undefined&&this.grid._selectedRow===undefined?this.selectRow(0):this.options.skipChildren===!1&&this._hc&&this._isMovingUpDown(t)?(i=this._activateNextGrid(t),i||this._navigateRow(t,!0)):this._navigateRow(t,!0))}},_isMovingUpDown:function(t){return t.keyCode===n.ui.keyCode.UP||t.keyCode===n.ui.keyCode.DOWN?!0:!1},_navigateFocus:function(t){if(!n.ig.util.isFF||!t.originalEvent||!n(t.originalEvent.explicitOriginalTarget).is("th")){if(t.which!==1){n("#"+this.grid.element[0].id+"_displayContainer_a").unbind("focus",this._focusHandler);n("#"+this.grid.element[0].id+"_displayContainer_a").focus();n("#"+this.grid.element[0].id+"_displayContainer_a").bind({focus:this._focusHandler});t.stopPropagation();return}this._navigate(t)}},_navigateCell:function(t){var r,i,e,f,s=this.activeCell(),v,o,a,y,d=!0,w,u=this.grid._startRowIndex,h=this.grid._startColIndex,p,ut,ft,b=0,g,et,it,c=!1,l=this.grid.options.virtualization||this.grid.options.rowVirtualization,k,nt=!1,rt,tt=this.grid.hasFixedColumns();if(k=l&&this.grid.options.virtualizationMode==="continuous",s!==null){if(tt&&(s.element.closest("div").attr("data-fixed-container")!==undefined?(c=!0,w=s.element.closest("div[data-fixing-direction]").attr("data-fixing-direction")):w=this.grid.container().find("div[data-fixing-direction]").eq(0).attr("data-fixing-direction")),(u===undefined||u===null)&&(u=0),(h===undefined||u===null)&&(h=0),l?(e=s.index-h,f=s.rowIndex-u):(e=s.index,f=s.rowIndex),f+=this.y_exclude_current,e+=this.x_exclude_current,this._rowCount&&this._length||this._refresh(),v=this._rowCount,a=this._length,tt&&(a-=this.grid._fixedColumns.length),this.x_exclude_current>0&&(a+=this.x_exclude_current),t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)r=e,i=f,t.ctrlKey&&this._isCellSelected(f+u-this.y_exclude_current,e+h-this.x_exclude_current)?(d=this._trigger(this.events.cellSelectionChanging,t,{cell:s,selectedCells:this.grid._selectedCells,owner:this,manual:!1}),d&&(this.deselectCell(f+u-this.y_exclude_current,e+h-this.x_exclude_current),this._trigger(this.events.cellSelectionChanged,t,{cell:s,selectedCells:this.grid._selectedCells,owner:this,manual:!1}))):(t.ctrlKey||!this._isCellSelected(f-this.y_exclude_current,e))&&(this._ctrlSelect=!0,this._selectInternal(null,f-this.y_exclude_current,e-this.x_exclude_current),this._ctrlSelect=!1);else if(t.keyCode===n.ui.keyCode.DOWN){if(r=e,i=f+1,this._realActiveCell!==null&&this._realActiveCell!==undefined&&this._isContinuous&&this.options.multipleSelection===!0&&this.grid._selectedCells.length>1&&!t.shiftKey&&!t.ctrlKey&&(r=this._realActiveCell.index-h+this.x_exclude_current,i=this._realActiveCell.rowIndex+1-u+this.y_exclude_current),i-this.y_exclude_current>v-1-u&&this.options.wrapAround===!0&&!l)i=this.y_exclude_current;else if(i-this.y_exclude_current>v-1-u&&this.options.wrapAround===!1){this._hc&&!this.options.skipChildren&&this._activateNextGrid(null,!0);return}}else if(t.keyCode===n.ui.keyCode.UP){if(r=e,i=f-1,this._realActiveCell!==null&&this._realActiveCell!==undefined&&this._isContinuous&&this.options.multipleSelection===!0&&this.grid._selectedCells.length>1&&!t.shiftKey&&!t.ctrlKey&&(r=this._realActiveCell.index-h+this.x_exclude_current,i=this._realActiveCell.rowIndex-1-u+this.y_exclude_current),!l)if(i-this.y_exclude_current<0&&this.options.wrapAround===!0)i=v-1;else if(i-this.y_exclude_current<0&&this.options.wrapAround===!1){this._hc&&!this.options.skipChildren&&this._activateNextGrid(null,!1);return}}else if(t.keyCode===n.ui.keyCode.LEFT){if(r=e-1,i=f,tt&&(c?r<0&&(c=!1,w==="left"?(r=a-1,i-=1):r=a-1):r<0&&(c=!0,r=this.grid._fixedColumns.length-1,w==="right"&&(i-=1,i<0&&(i=v-1)))),r-this.x_exclude_current<0){if(this._hc&&!this.options.skipChildren&&(nt=this._activateNextGrid(null,!1,!0)),nt)return;r=a-1;i=f-1}if(this._realActiveCell!==null&&this._realActiveCell!==undefined&&this.options.multipleSelection===!0&&this.grid._selectedCells.length>1&&!t.shiftKey&&!t.ctrlKey&&(r=this._realActiveCell.index-1-h+this.x_exclude_current,i=this._realActiveCell.rowIndex-u+this.y_exclude_current),!l)if(i<0&&this.options.wrapAround===!0)r=a-1,i=v-1;else if(i<0&&this.options.wrapAround===!1){this._hc&&!this.options.skipChildren&&this._activateNextGrid(null,!1);return}}else if(t.keyCode===n.ui.keyCode.RIGHT){if(r=e+1,i=f,tt&&(c?r>=this.grid._fixedColumns.length&&(c=!1,w==="right"&&(i+=1),r=0):r>=a&&(w==="left"&&(i+=1),c=!0,r=0)),r>=a){if(this._hc&&!this.options.skipChildren&&(nt=this._activateNextGrid(null,!0,!0)),nt)return;r=0;i=f+1}if(this._realActiveCell!==null&&this._realActiveCell!==undefined&&this.options.multipleSelection===!0&&this.grid._selectedCells.length>1&&!t.shiftKey&&!t.ctrlKey&&(r=this._realActiveCell.index+1-h+this.x_exclude_current,i=this._realActiveCell.rowIndex-u+this.y_exclude_current),!l)if(i>=v+this.y_exclude_current&&this.options.wrapAround===!0)r=0,i=0;else if(i>=v+this.y_exclude_current&&this.options.wrapAround===!1){this._hc&&!this.options.skipChildren&&this._activateNextGrid(null,!0);return}}else return;if(l&&!k&&i>=this.grid._virtualRowCount)this._setScrollTop(this.grid.element.parent(),o,i>f?"down":"up",i-this.y_exclude_current),i=this.grid._virtualRowCount-1;else if(l&&!k&&i<0&&u>0)this._setScrollTop(this.grid.element.parent(),o,"up",i-this.y_exclude_current),i=0;else if(l&&!k&&i<0)return;(this.x_exclude_current>0&&this.grid.rowAt(i).cells.length<a&&(r=this.grid.rowAt(i).cells.length-1),o=this.grid.cellAt(r===0?this.x_exclude_current:r,i-this.y_exclude_current,c),o===undefined&&(t.keyCode===n.ui.keyCode.DOWN||t.keyCode===n.ui.keyCode.UP)&&(t.keyCode===n.ui.keyCode.DOWN?i++:t.keyCode===n.ui.keyCode.UP&&i--,o=this.grid.cellAt(r,i,c)),(!l||k)&&(this._setScrollTop(this.grid.element.parent(),o,i>=f?"down":"up",i-this.y_exclude_current),k&&(u!==this.grid._startRowIndex&&(i=i+(i>=f?-1:1)*Math.abs(this.grid._startRowIndex-u),u=this.grid._startRowIndex),o=this.grid.cellAt(r,i,c)),et=this.grid.options.width!==null&&this.grid.options.height!==null?n("#"+this.grid.element[0].id+"_hscroller"):this.grid.scrollContainer().length>0?this.grid.scrollContainer():this.grid.element.parent(),this._setScrollLeft(et,o,r>=e?"right":"left",r-this.x_exclude_current)),o===undefined||o.length>1)||(p=n(o),this._hc&&(p.hasClass("ui-iggrid-expandbutton")||p.hasClass("ui-iggrid-expandcolumn"))&&t.keyCode===n.ui.keyCode.ENTER&&(ft=p.closest("tr"),ut=p.closest(".ui-iggrid-root").data("igHierarchicalGrid"),ut.toggle(ft)),p.hasClass("ui-iggrid-rowselector-class")&&(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(rt=this.grid.element.data("igGridRowSelectors"),it=p.find("span[data-role='checkbox']"),rt&&it.length>0&&rt._handleCheck(it)),b=r-this.x_exclude_current,t.keyCode!==n.ui.keyCode.ENTER&&t.keyCode!==n.ui.keyCode.SPACE&&(n(s.element).removeClass(this.css.activeCell),r===0&&(b=this.x_exclude_current),g=r>=this.grid.options.columns.length?this.grid.options.columns[this.grid.options.columns.length-1].key:this.grid.options.columns[r===0?0:b-(this._hc===!0?1:0)].key,r<=0&&this._hc&&(g=null),y=l?{element:n(o),index:r===0?h:b+h,rowIndex:i+u-this.y_exclude_current,row:n(this.grid.rowAt(i)),columnKey:g}:{element:n(o),index:r===0?0:b,rowIndex:i-this.y_exclude_current,row:n(this.grid.rowAt(i)),columnKey:g},t.ctrlKey&&this.activeCell()&&(this.activeCell().index!==y.index||this.activeCell().rowIndex!==y.rowIndex)&&this._activateCell(y,t),!t.ctrlKey&&t.shiftKey&&this.options.multipleSelection===!0?this._shiftCellSelection(y,!1,!0,s,t):t.ctrlKey||(d=this._trigger(this.events.cellSelectionChanging,t,{cell:y,selectedCells:this.grid._selectedCells,owner:this,manual:!1}),d&&(this.clearSelection(!0),this._selectInternal(null,i-this.y_exclude_current,r===0?0:b,c),this._trigger(this.events.cellSelectionChanged,t,{cell:y,selectedCells:this.grid._selectedCells,owner:this,manual:!1})))),t.preventDefault(),t.stopPropagation())}},_navigateRow:function(t){var i,u,e=this.activeRow(),c,o,r,l=!0,f,s,h=this.grid._startRowIndex;if(f=this.grid.options.virtualization||this.grid.options.rowVirtualization,s=f&&this.grid.options.virtualizationMode==="continuous",e){if(u=f?e.index-h:e.index,u+=this.y_exclude_current,c=this._rowCount,t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)i=u,t.ctrlKey&&this._isRowSelected(u-this.y_exclude_current)?(l=this._trigger(this.events.rowSelectionChanging,t,{row:e,selectedRows:this.grid._selectedRows,selectedFixedRows:this.grid._selectedFixedRows,owner:this,manual:!1}),l&&(this.deselectRow(u-this.y_exclude_current),this._trigger(this.events.rowSelectionChanged,t,{row:e,selectedRows:this.grid._selectedRows,selectedFixedRows:this.grid._selectedFixedRows,owner:this,manual:!1})),l=!0):(this._ctrlSelect=!0,this._selectInternal(null,u-this.y_exclude_current),this._ctrlSelect=!1);else if(t.keyCode===n.ui.keyCode.DOWN){if(i=u+1,this._realActiveRow!==null&&this._realActiveRow!==undefined&&this.options.multipleSelection===!0&&this.grid._selectedRows.length>1&&!t.shiftKey&&!t.ctrlKey&&this._isContinuous&&(i=this._realActiveRow.index+1+this.y_exclude_current),!f)if(i-this.y_exclude_current>c-1&&this.options.wrapAround===!0)i=this.y_exclude_current;else if(i-this.y_exclude_current>c-1&&this.options.wrapAround===!1){this._hc&&!this.options.skipChildren&&this._activateNextGrid(null,!0);return}}else if(t.keyCode===n.ui.keyCode.UP){if(i=u-1,this._realActiveRow!==null&&this._realActiveRow!==undefined&&this.options.multipleSelection===!0&&this.grid._selectedRows.length>1&&!t.shiftKey&&!t.ctrlKey&&this._isContinuous&&(i=this._realActiveRow.index-1+this.y_exclude_current),!f)if(i-this.y_exclude_current<0&&this.options.wrapAround===!0)i=c-1;else if(i-this.y_exclude_current<0&&this.options.wrapAround===!1){this._hc&&!this.options.skipChildren&&this._activateNextGrid(null,!1);return}}else return;if(t.preventDefault(),t.stopPropagation(),f&&!s&&i>=this.grid._virtualRowCount)i=this.grid._virtualRowCount-1,r=this.grid.rowAt(i-this.y_exclude_current),this._setScrollTop(this.grid.element.parent(),r,i>=u?"down":"up",i-this.y_exclude_current);else if(f&&!s&&i<0&&h>0)i=-1,r=this.grid.rowAt(i),this._setScrollTop(this.grid.element.parent(),r,"up",i-this.y_exclude_current);else{if(f&&!s&&i<0)return;r=this.grid.rowAt(i)}if(r!==undefined&&!(r.length>1)){while(r&&!n(r).is(":visible")&&i>0&&i<c-1)r=this.grid.rowAt(t.keyCode===n.ui.keyCode.UP?--i:++i);(!f||s)&&(this._setScrollTop(this.grid.element.parent(),r,i>=u?"down":"up",i-this.y_exclude_current),s&&(h!==this.grid._startRowIndex&&(i=i+(i>=u?-1:1)*Math.abs(this.grid._startRowIndex-h),h=this.grid._startRowIndex),r=this.grid.rowAt(i)));t.keyCode!==n.ui.keyCode.ENTER&&t.keyCode!==n.ui.keyCode.SPACE&&(n(e.element).removeClass(this.css.activeRow),o=f?{element:n(r),index:i+h-this.y_exclude_current}:{element:n(r),index:i-this.y_exclude_current},t.ctrlKey&&this.activeRow()&&this.activeRow().index!==o.index&&this._activateRow(o,t),!t.ctrlKey&&t.shiftKey&&this.options.multipleSelection===!0?this._shiftRowSelection(o,!1,!0,e,t):t.ctrlKey||(l=this._trigger(this.events.rowSelectionChanging,t,{row:o,selectedRows:this.grid._selectedRows,selectedFixedRows:this.grid._selectedFixedRows,owner:this,manual:!1}),l&&(this.clearSelection(!0),this._selectInternal(null,i-this.y_exclude_current),this._trigger(this.events.rowSelectionChanged,t,{row:o,selectedRows:this.grid._selectedRows,selectedFixedRows:this.grid._selectedFixedRows,owner:this,manual:!1}))))}}},_activateNextGrid:function(t,i,r){var e,u,f=this.grid.container(),o=!0;if(e=this.options.mode==="row"?this.activeRow().element:n(this.activeCell().element).closest("tr"),t!==null||r===!0)if(t||(t={keyCode:i?n.ui.keyCode.DOWN:n.ui.keyCode.UP}),t.keyCode===n.ui.keyCode.UP)if(u=e.prev(),u.attr("data-container")&&u.is(":visible"))u=u.find(".ui-iggrid-table").last();else return!1;else if(u=e.next(),u.attr("data-container")&&u.is(":visible"))u=u.find(".ui-iggrid-table").first();else return!1;else i?f.next().length>0?u=f.nextAll(".ui-iggrid").first().children(".ui-iggrid-table"):(u=f.closest("tr:[data-container=true]").next(),o=!1):f.prev().length>0?u=f.prevAll(".ui-iggrid").first().children(".ui-iggrid-table"):(u=f.closest("tr:[data-container=true]").prev(),o=!1);return this.clearSelection(!1,!0),o?this.options.mode==="row"?i===undefined||i?u.igGridSelection("selectRow",0):u.igGridSelection("selectRow",u.find(".ui-iggrid-tablebody > tr").last().index()):i===undefined||i?u.igGridSelection("selectCell",0,0):u.igGridSelection("selectCell",u.find(".ui-iggrid-tablebody > tr").last().index(),0):u&&u.length>0&&(this.options.mode==="row"?u.closest(".ui-iggrid-table").igGridSelection("selectRow",u.index()):u.closest(".ui-iggrid-table").igGridSelection("selectCell",u.index(),0)),u.closest(".ui-iggrid").focus(),!0},_setScrollTop:function(t,i,r,u){var h=t.offset(),c=n(i).offset(),o,l,a,e,f,s;i&&(e=this.grid.options.virtualization||this.grid.options.rowVirtualization,f=e&&this.grid.options.virtualizationMode==="continuous",o=e&&!f?parseInt(this.grid.options.avgRowHeight,10):n(i).outerHeight(),!e||f?(l=c.top+o+this.grid._scrollbarWidth()>h.top+n(t).outerHeight(),a=c.top<h.top||f&&u<0):(l=o*(u+1)>=parseInt(this.grid.options.height,10),a=u<0),u===0?t[0].scrollTop=0:r==="down"?l&&(f||!e?(s=t[0].scrollTop+c.top+this.grid._scrollbarWidth()-(h.top+t.outerHeight())+n(i).outerHeight(),f?this.grid._onVirtualVerticalScroll({},o,r):t[0].scrollTop=s):this._scrollVmanual(!0)):a&&(f||!e?(s=t[0].scrollTop-n(i).outerHeight(),f?this.grid._onVirtualVerticalScroll({},o,r):t[0].scrollTop=s):this._scrollVmanual(!1)))},_scrollVmanual:function(t){var i=n("#"+this.grid.element[0].id+"_scrollContainer"),r=parseInt(this.grid.options.avgRowHeight,10);this.grid._ignoreScroll=!0;t?i.scrollTop(i.scrollTop()+r):i.scrollTop(i.scrollTop()-r);this.grid._onVirtualVerticalScroll();this.grid._ignoreScroll=!1},_setScrollLeft:function(t,i,r,u){var f=t.offset(),e=n(i).offset();i&&(u===0?t[0].scrollLeft=0:r==="right"?e.left+n(i).outerWidth()>f.left+n(t).outerWidth()&&(t[0].scrollLeft=t[0].scrollLeft+e.left-(f.left+t.outerWidth())+n(i).outerWidth()):e.left<f.left&&(t[0].scrollLeft=t[0].scrollLeft-n(i).outerWidth()))},_isRowSelected:function(n){for(var t=0;t<this.grid._selectedRows.length;t++)if(this.grid._selectedRows[t].index===n)return!0;return!1},_isRowSelectedByKey:function(t,i){for(var f=!!i,u=i||this.grid._selectedRows,r=0;r<u.length;r++)if(u[r].id===t)return f&&n.ig.removeFromArray(u,r,r),!0;return!1},_isCellSelected:function(n,t){for(var i=0;i<this.grid._selectedCells.length;i++)if(this.grid._selectedCells[i].index===t&&this.grid._selectedCells[i].rowIndex===n)return!0;return!1},_isCellSelectedByKey:function(t,i,r){for(var e=!!r,f=r||this.grid._selectedCells,u=0;u<f.length;u++)if(f[u].rowId===t&&f[u].columnKey===i||f[u].rowId===t&&f[u].columnKey===null&&f[u].index===0&&i===-1)return e&&n.ig.removeFromArray(f,u,u),!0;return!1},_rs:function(t,i){var f=i.dom,r=0,e=0,o=this.activeCell(),c=this.activeRow(),h=this.grid.rows(),u=this.grid._startRowIndex,l=this.grid._startColIndex,s=this._firstRow?this._firstRow.find("th,[data-skip='true']").length:0;if(this.grid.id()===i.owner.id()){if(this.grid.options.virtualization===!0&&this.grid.options.virtualizationMode==="continuous"&&this._registerTbodyEvents(),this.grid._selectedCell&&(this.grid._selectedCell.element=h.eq(this.grid._selectedCell.rowIndex-u).children("td").eq(this.grid._selectedCell.index-s),this.grid._selectedCell.row=this.grid._selectedCell.element.parent("tr")),this.grid._selectedRow&&(this.grid._selectedRow.element=h.eq(this.grid._selectedRow.index-u)),this.grid._activeRow&&(this.grid._activeRow.element=h.eq(this.grid._activeRow.index-u)),this.grid._activeCell&&(this.grid._activeCell.element=h.eq(this.grid._activeCell.rowIndex-u).children("td").eq(this.grid._activeCell.index),this.grid._activeCell.row=this.grid._activeCell.element.parent("tr")),this.grid._selectedRows&&this.grid._selectedRows.length>0)for(r=0;r<this.grid._selectedRows.length;r++)this.grid._selectedRows[r].element=h.eq(this.grid._selectedRows[r].index-u);if(this.grid._selectedCells&&this.grid._selectedCells.length>0)for(r=0;r<this.grid._selectedCells.length;r++)this.grid._selectedCells[r].element=h.eq(this.grid._selectedCells[r].rowIndex-u).children("td").eq(this.grid._selectedCells[r].index-s),this.grid._selectedCells[r].row=this.grid._selectedCells[r].element.parent("tr");for(o=this.activeCell(),c=this.activeRow(),r=0;r<f.length;r++)for(e=0;e<f[r].length;e++)this.options.mode==="cell"?this.options.multipleSelection?this._isCellSelected(r+u,e+l+s)&&n(f[r][e]).addClass(this.css.selectedCell):this.grid._selectedCell&&r+u===this.grid._selectedCell.rowIndex&&e+l+s===this.grid._selectedCell.index&&n(f[r][e]).addClass(this.css.selectedCell):this.options.multipleSelection?this._isRowSelected(r+u)&&n(f[r][e]).addClass(this.css.selectedRow):this.grid._selectedRow&&r+u===this.grid._selectedRow.index&&n(f[r][e]).addClass(this.css.selectedRow);o&&o.rowIndex-u>=0&&o.rowIndex-u<f.length&&o.index-l-s>0&&o.index-l-s<f[o.rowIndex-u].length&&n(f[o.rowIndex-u][o.index-l-s]).addClass(this.css.activeCell);c&&c.index-u>=0&&c.index-u<f.length&&n(f[c.index-u]).first().closest("tr").addClass(this.css.activeRow)}},selectCell:function(n,t,i){var r=this.grid.options.virtualization||this.grid.options.rowVirtualization,u=this.grid.options.virtualization||this.grid.options.columnVirtualization;r&&(n>=this.grid._startRowIndex+this.grid._virtualRowCount||n<this.grid._startRowIndex)||u&&(t>=this.grid._startColIndex+this.grid._virtualColumnCount||t<this.grid._startColIndex)?(this.options.multipleSelection===!0?(this.grid._selectedCells.push({index:t,rowIndex:n}),this.grid._selectedCell=null):(this.clearSelection(),this.grid._selectedCell={index:t,rowIndex:n}),this.grid._activeCell={index:t,rowIndex:n}):this._selectInternal(null,n,t,i)},deselectCell:function(t,i){var r;if(this.options.multipleSelection===!0){for(r=0;r<this.selectedCells().length;r++)if(this.selectedCells()[r].index===i&&this.selectedCells()[r].rowIndex===t){this._deselectCell(this.selectedCells()[r]);n.ig.removeFromArray(this.selectedCells(),r);this.grid._selectedCell=null;break}}else this.selectedCell()!==null&&this.selectedCell()!==undefined&&(this._deselectCell(this.selectedCell()),this.grid._selectedCell=null)},selectRow:function(n){var t=this.grid.options.virtualization||this.grid.options.rowVirtualization;t&&(n>=this.grid._startRowIndex+this.grid._virtualRowCount||n<this.grid._startRowIndex)?(this.options.multipleSelection===!0?(this.grid._selectedRows.push({index:n}),this.grid._selectedRow=null):(this.clearSelection(),this.grid._selectedRow={index:n}),this.grid._activeRow={index:n}):this._selectInternal(null,n)},deselectRow:function(t){var i,r=this.grid.hasFixedColumns();if(this.options.multipleSelection===!0){for(i=0;i<this.selectedRows().length;i++)if(this.selectedRows()[i].index===t||this.selectedRows()[i].element&&this.selectedRows()[i].element.index()===t){this._deselectRow(this.selectedRows()[i]);n.ig.removeFromArray(this.selectedRows(),i);this.grid._selectedRow=null;r&&this.grid._selectedFixedRows&&(this.grid._selectedFixedRows[i]&&this._deselectRow(this.grid._selectedFixedRows[i]),n.ig.removeFromArray(this.grid._selectedFixedRows,i),this.grid._selectedFixedRow=null);break}}else this.selectedRow()!==null&&this.selectedRow()!==undefined&&(this._deselectRow(this.selectedRow()),r&&this.grid._selectedFixedRow&&(this._deselectRow(this.grid._selectedFixedRow),this.grid._selectedFixedRow=null),this.grid._selectedRow=null)},_deselectRow:function(t){var i;i=t.element&&t.element instanceof jQuery?t.element:n(this.grid._virtualDom[t.index]);i.removeClass(this.css.selectedRow);i.children().removeClass(this.css.selectedCell);this.grid.hasFixedColumns()&&(i=this.grid.fixedContainer().find("tbody>tr").eq(i.index()),i.removeClass(this.css.selectedRow),i.children().removeClass(this.css.selectedCell))},_deselectCell:function(t){var i;i=t.element&&t.element instanceof jQuery?t.element:n(this.grid._virtualDom[t.rowIndex][t.index]);i.removeClass(this.css.selectedCell)},_activateCell:function(t,i){var r=!0,u=this.grid.options.virtualization||this.grid.options.rowVirtualization;r=this._trigger(this.events.activeCellChanging,i,{cell:t,owner:this});r&&(this.activeCell()&&(u?n(this.grid.cellAt(this.grid._activeCell.index,this.grid._activeCell.rowIndex-this.grid._startRowIndex)).removeClass(this.css.activeCell):n(this.activeCell().element).removeClass(this.css.activeCell)),this.activeRow()&&(u?n(this.grid.rowAt(this.grid._activeRow.index-this.grid._startRowIndex)).removeClass(this.css.activeRow):n(this.activeRow().element).removeClass(this.css.activeRow),this.activeRow(null)),this.activeCell(t),n(this.activeCell().element).addClass(this.css.activeCell),this._trigger(this.events.activeCellChanged,i,{cell:t,owner:this}))},_activateRow:function(t,i,r){var u=!0,f=this.grid.options.virtualization||this.grid.options.rowVirtualization;u=this._trigger(this.events.activeRowChanging,i,{row:t,owner:this});u&&(this.activeRow()&&(f?n(this.grid.rowAt(this.grid._activeRow.index-this.grid._startRowIndex)).removeClass(this.css.activeRow):n(this.activeRow().element).removeClass(this.css.activeRow)),this.activeFixedRow()&&n(this.activeFixedRow().element).removeClass(this.css.activeRow),this.activeCell()&&(f?n(this.grid.cellAt(this.grid._activeCell.index,this.grid._activeCell.rowIndex-this.grid._startRowIndex)).removeClass(this.css.activeCell):n(this.activeCell().element).removeClass(this.css.activeCell),this.activeCell(null)),this.activeRow(t),r&&(n(r.element).addClass(this.css.activeRow),this.activeFixedRow(r)),n(this.activeRow().element).addClass(this.css.activeRow),this._trigger(this.events.activeRowChanged,i,{row:t,owner:this}))},selectedCells:function(){return this.grid._selectedCells},selectedRows:function(){return this.grid._selectedRows},selectedFixedCells:function(){return this.grid._selectedFixedCells},selectedFixedRows:function(){return this.grid._selectedFixedRows},selectedCell:function(){return this.grid._selectedCell},selectedRow:function(){return this.grid._selectedRow},selectedFixedRow:function(){return this.grid._selectedFixedRow},activeCell:function(n){if(n!==undefined)this.grid._activeCell=n;else return this.grid._activeCell},activeRow:function(n){if(n!==undefined)this.grid._activeRow=n;else return this.grid._activeRow},activeFixedRow:function(n){if(n!==undefined)this.grid._activeFixedRow=n;else return this.grid._activeFixedRow},clearSelection:function(t,i){for(var u=this.grid.options.virtualization||this.grid.options.rowVirtualization,f=this.grid.hasFixedColumns(),r=0;r<this.grid._selectedCells.length;r++)u?u&&this.grid._selectedCells[r].rowIndex-this.grid._startRowIndex>=0&&n(this.grid.cellAt(this.grid._selectedCells[r].index,this.grid._selectedCells[r].rowIndex-this.grid._startRowIndex)).removeClass(this.css.selectedCell):this.grid._selectedCells[r].element.removeClass(this.css.selectedCell);if(f){for(r=0;r<this.grid._selectedFixedCells.length;r++)(!u||u&&this.grid._selectedFixedCells[r].rowIndex-this.grid._startRowIndex>=0)&&this.grid._selectedFixedCells[r].element.removeClass(this.css.selectedCell);for(this.grid._selectedFixedCells=[],r=0;r<this.grid._selectedFixedRows.length;r++)(!u||u&&this.grid._selectedFixedRows[r].index-this.grid._startRowIndex>=0)&&n(this.grid._selectedFixedRows[r].element.children()).removeClass(this.css.selectedCell);this.grid._selectedFixedRows=[];this.grid._selectedFixedRow!==null&&this.grid._selectedFixedRow!==undefined&&(u&&this.grid._selectedFixedRow.index-this.grid._startRowIndex>=0?n(this.grid.rowAt(this.grid._selectedFixedRow.index-this.grid._startRowIndex)).children().removeClass(this.css.selectedCell):n(this.grid._selectedFixedRow.element.children()).removeClass(this.css.selectedCell),this.grid._selectedFixedRow=null);this.grid._selectedFixedCell!==null&&this.grid._selectedFixedCell!==undefined&&(u&&this.grid._selectedFixedCell.rowIndex-this.grid._startRowIndex>=0?n(this.grid.cellAt(this.grid._selectedFixedCell.index,this.grid._selectedCell.rowIndex-this.grid._startRowIndex)).removeClass(this.css.selectedCell):this.grid._selectedFixedCell.element.removeClass(this.css.selectedCell),this.grid._selectedFixedCell=null)}for(this.grid._selectedCells=[],r=0;r<this.grid._selectedRows.length;r++)u?u&&this.grid._selectedRows[r].index-this.grid._startRowIndex>=0&&n(this.grid.rowAt(this.grid._selectedRows[r].index-this.grid._startRowIndex)).children().removeClass(this.css.selectedCell):n(this.grid._selectedRows[r].element.children()).removeClass(this.css.selectedCell);this.grid._selectedRows=[];this.grid._selectedRow!==null&&this.grid._selectedRow!==undefined&&(u&&this.grid._selectedRow.index-this.grid._startRowIndex>=0?n(this.grid.rowAt(this.grid._selectedRow.index-this.grid._startRowIndex)).children().removeClass(this.css.selectedCell):n(this.grid._selectedRow.element.children()).removeClass(this.css.selectedCell),this.grid._selectedRow=null);this.grid._selectedCell!==null&&this.grid._selectedCell!==undefined&&(u&&this.grid._selectedCell.rowIndex-this.grid._startRowIndex>=0?n(this.grid.cellAt(this.grid._selectedCell.index,this.grid._selectedCell.rowIndex-this.grid._startRowIndex)).removeClass(this.css.selectedCell):this.grid._selectedCell.element.removeClass(this.css.selectedCell),this.grid._selectedCell=null);t||(this.activeCell()&&(u?n(this.grid.cellAt(this.grid._activeCell.index,this.grid._activeCell.rowIndex-this.grid._startRowIndex)).removeClass(this.css.activeCell):this.activeCell().element.removeClass(this.css.activeCell),this.activeCell(null)),this._realActiveCell&&(this._realActiveCell.element.removeClass(this.css.activeCell),this._realActiveCell=null),this._realActiveRow&&(this._realActiveRow.element.removeClass(this.css.activeRow),this._realActiveRow=null),this.activeRow()&&(u?n(this.grid.rowAt(this.grid._activeRow.index-this.grid._startRowIndex)).removeClass(this.css.activeRow):this.activeRow().element.removeClass(this.css.activeRow),this.activeRow(null)));i&&(this.activeCell(null),this.activeRow(null));this._trigger("selectioncleared",this,{owner:this.grid,uiDirty:i})},clearSelectionAllChildren:function(t,i){for(var f=this.grid.children(),u,r=0;r<f.length;r++)u=n(f[r]).data("igGridSelection"),u&&u.clearSelection(t,i)},clearSelectionAll:function(n,t){this.clearSelection(n,t);this.clearSelectionAllOthers(n,t)},clearSelectionAllOthers:function(t,i){var r,f,u,e,o;if(r=this._hgrid?this._hgrid.data("igHierarchicalGrid"):this.grid.element.hasClass("ui-iggrid-root")?this.grid.element.data("igHierarchicalGrid"):this.grid.element.closest(".ui-iggrid-root").data("igHierarchicalGrid"),r)for(f=r.allChildren(),u=0;u<f.length;u++)e=n(f[u]).data("igGridSelection"),e&&n(f[u]).attr("id")!==this.grid.element.attr("id")&&e.clearSelection(t,i);(r.element.attr("id")!==this.grid.element.attr("id")&&r.element.is("table")||r.element.is("div")&&n("#"+r.element.attr("id")+"_table").attr("id")!==this.grid.element.attr("id"))&&(o=r.element.is("table")?r.element.data("igGridSelection"):n("#"+r.element.attr("id")+"_table").data("igGridSelection"),o&&o.clearSelection(t,i))},_excludeRows:function(){return this.grid.element.children("tbody").children("tr:[data-container=true]").length},_excludeRowsLt:function(n){var t=n.index();return this.grid.element.children("tbody").children("tr:lt("+t+")").filter("[data-container=true]").length},_calcExtraCells:function(){return this.grid.element.find("tbody > tr > td[data-skip=true]").first().parent().find("[data-skip=true]").length},_columnsCollectionModified:function(n,t){t.owner.id()===this.grid.id()&&this._registerTbodyEvents()},_columnFixed:function(n){var t,r=[],i=[];if(n.isFixed&&n.isInit&&(this._registerFixedTbodyEvents(),this.options.mode==="row"&&(this.grid.selectedRows().length>0?r=this.grid.selectedRows().clone():this.grid.selectedRow()!==null&&(r=[this.grid.selectedRow()]),r.length>0)))for(this.clearSelection(!1),t=0;t<r.length;t++)this.selectRow(r[t].index);for(this.grid.selectedCells().length>0?i=this.grid.selectedCells():this.grid.selectedCell()!==null&&(i=[this.grid.selectedCell()]),t=0;t<i.length;t++)this.grid.columnByKey(i[t].columnKey).fixed!==i[t].isFixed&&(i[t].isFixed=!i[t].isFixed);this.grid._activeCell&&(this.grid._activeCell.index=this.grid._activeCell.element.index(),this.grid._activeCell.isFixed=this.grid._isFixedElement(this.grid._activeCell.element))},_buildSelectionCache:function(){this.options.persist&&(this._scc=[],this._src=[],this._srcf=[],this.options.multipleSelection===!0&&(this.grid._selectedCells.length>0||this.grid._selectedRows.length>0)&&(jQuery.extend(this._scc,this.grid._selectedCells),jQuery.extend(this._src,this.grid._selectedRows),jQuery.extend(this._srcf,this.grid._selectedFixedRows)),this.grid._selectedCell&&this.grid._selectedCells.length===0&&this._scc.push(this.grid._selectedCell),this.grid._selectedRow&&this.grid._selectedCells.length===0&&this._src.push(this.grid._selectedRow),this.grid._selectedFixedRow&&this.grid._selectedFixedRows.length===0&&this._srcf.push(this.grid._selectedFixedRow))},_createUidForData:function(){for(var t=0,i=this.grid.dataSource?this.grid.dataSource._data:[],t=0;t<i.length;t++)i[t].ig_pk||(i[t].ig_pk=n.ig.util.getCheckSumForObject(i[t]))},_removeSelectionCache:function(){this._scc&&delete this._scc;this._src&&delete this._src;this._srcf&&delete this._srcf},destroy:function(){return this.clearSelection(),this._unregisterEvents(),n.Widget.prototype.destroy.call(this),this},_onUIDirty:function(n,t){t.owner!==this&&t.owner.element[0].id===this.element[0].id&&(this.grid.options.virtualization||this.grid.options.rowVirtualization||(this._rowCount=this.grid.dataSource.dataView().length),this._groupBy&&(this._rowCount+=this.grid.element.children("tbody").children("tr[data-grouprow=true]").length),this.options.persist||this.clearSelection(!0,!0))},_injectGrid:function(t,i){var r;for(this.grid=t,i&&this.options.persist||(this.activeCell(null),this.grid._selectedCell=null,this.grid._selectedRow=null,this.activeRow(null),this.grid._selectedCells=[],this.grid._selectedRows=[],this.grid._selectedFixedCells=[],this.grid._selectedFixedRows=[]),r=0;r<this.grid.options.features.length;r++)this.grid.options.features[r].name==="Selection"&&(this.grid.options.features[r].inherit=!0),this.grid.options.features[r].name==="RowSelectors"&&this.grid.options.features[r].enableCheckBoxes===!0&&(this.options.mode="row");this._virtualRecordsRendererHandler!==null&&this._virtualRecordsRendererHandler!==undefined&&this.grid.element.unbind("iggridvirtualrecordsrender",this._virtualRecordsRendererHandler);this._virtualRecordsRendererHandler=n.proxy(this._rs,this);this.grid.element.bind("iggridvirtualrecordsrender",this._virtualRecordsRendererHandler);this._uiDirtyHandler!==null&&this._uiDirtyHandler!==undefined&&this.grid.element.unbind("iggriduisoftdirty",this._uiDirtyHandler);this._uiDirtyHandler=n.proxy(this._onUIDirty,this);this.grid.element.bind("iggriduisoftdirty",this._uiDirtyHandler);this._dataRenderingHandler!==null&&this._dataRenderingHandler!==undefined&&this.grid.element.unbind("iggriddatarendering",this._dataRenderingHandler);this._dataRenderingHandler=n.proxy(this._dataRendering,this);this.grid.element.bind("iggriddatarendering",this._dataRenderingHandler);this._rowExpandedHandler!==null&&this._rowExpandedHandler!==undefined&&this.grid.element.unbind("ighierarchicalgridrowexpanded",this._rowExpandedHandler);this._rowExpandedHandler=n.proxy(this._rowExpanded,this);this.grid.element.bind("ighierarchicalgridrowexpanded",this._rowExpandedHandler);this._columnsCollectionModifiedHandler!==null&&this._columnsCollectionModifiedHandler!==undefined&&this.grid.element.unbind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler);this._columnsCollectionModifiedHandler=n.proxy(this._columnsCollectionModified,this);this.grid.element.bind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler);this._hdirty=!0;this.options.persist&&!i&&this.grid._cellStyleSubscribers.push(this.options.mode==="row"?n.proxy(this._applyRowStyle,this):n.proxy(this._applyCellStyle,this))}});n.extend(n.ui.igGridSelection,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridSorting",{css:{sortableColumnHeader:"ui-iggrid-sortableheader ui-state-default",sortableColumnHeaderActive:"ui-iggrid-sortableheaderactive ui-state-active",sortableColumnHeaderHover:"ui-iggrid-sortableheaderhover ui-state-hover",sortableColumnHeaderFocus:"ui-iggrid-sortableheaderfocus ui-state-focus",ascendingColumnHeader:"ui-iggrid-colheaderasc",descendingColumnHeader:"ui-iggrid-colheaderdesc",ascendingColumn:"ui-iggrid-colasc ui-state-highlight",descendingColumn:"ui-iggrid-coldesc ui-state-highlight",sortIndicator:"ui-iggrid-colindicator",fcSortIndicatorAscending:"ui-iggrid-featurechooser-li-iconcontainer ui-icon ui-iggrid-icon-sort-a-z",fcSortIndicatorDescending:"ui-iggrid-featurechooser-li-iconcontainer ui-icon ui-iggrid-icon-sort-z-a",sortIndicatorAscending:"ui-iggrid-colindicator-asc ui-icon ui-icon-arrowthick-1-n",sortIndicatorDescending:"ui-iggrid-colindicator-desc ui-icon ui-icon-arrowthick-1-s",dialogSortedColumns:"ui-iggrid-sorting-dialog-sortedcolumns",dialogUnsortedColumns:"ui-iggrid-sorting-dialog-unsortedcolumns",dialogUnsortedColumnsSortByButton:"ui-iggrid-sorting-dialog-unsortedcolumns-sortbybutton",dialogAsdDescButton:"ui-iggrid-sorting-dialog-ascdescbutton",modalDialogSortByColumn:"ui-iggrid-sorting-dialog-sortbybutton",dialogSortedColumnsItem:"ui-widget-content",dialogUnsortedColumnsItem:"ui-widget-content",dialogButtonAsc:"ui-button ui-corner-all ui-button-icon-only ig-sorting-indicator",dialogButtonAscIcon:"ui-button-icon-primary ui-icon ui-icon-arrowthick-1-n",dialogButtonDesc:"ui-button ui-corner-all ui-button-icon-only ig-sorting-indicator",dialogButtonDescIcon:"ui-button-icon-primary ui-icon ui-icon-arrowthick-1-s",dialogButtonUnsort:"ui-iggrid-sorting-dialog-sortbybuttons ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-igbutton ui-widget-content ui-igbutton-remove",dialogButtonUnsortContainer:"ui-button-icon-primary ui-icon ui-icon-circle-close",dialogSortedColumnTextContainer:"ui-iggrid-dialog-text",dialogItemText:"ui-iggrid-dialog-text",dialogButtonsHover:"ui-state-hover",featureChooserModalDialogIcon:"ui-icon ui-iggrid-icon-multiple-sorting"},options:{type:null,caseSensitive:!1,applySortedColumnCss:!0,sortUrlKey:null,sortUrlKeyAscValue:null,sortUrlKeyDescValue:null,mode:"single",customSortFunction:null,firstSortDirection:"ascending",sortedColumnTooltip:n.ig.GridSorting.locale.sortedColumnTooltipFormat,modalDialogSortOnClick:!1,modalDialogSortByButtonText:n.ig.GridSorting.locale.modalDialogSortByButtonText,modalDialogResetButtonLabel:n.ig.GridSorting.locale.modalDialogResetButton,modalDialogCaptionButtonDesc:n.ig.GridSorting.locale.modalDialogCaptionButtonDesc,modalDialogCaptionButtonAsc:n.ig.GridSorting.locale.modalDialogCaptionButtonAsc,modalDialogCaptionButtonUnsort:n.ig.GridSorting.locale.modalDialogCaptionButtonUnsort,modalDialogWidth:350,modalDialogHeight:"",modalDialogAnimationDuration:200,featureChooserText:n.ig.GridSorting.locale.featureChooserText,unsortedColumnTooltip:n.ig.GridSorting.locale.unsortedColumnTooltip,columnSettings:[{columnKey:null,columnIndex:null,firstSortDirection:null,currentSortDirection:null,allowSorting:!0}],modalDialogCaptionText:n.ig.GridSorting.locale.modalDialogCaptionText,modalDialogButtonApplyText:n.ig.GridSorting.locale.modalDialogButtonApplyText,modalDialogButtonCancelText:n.ig.GridSorting.locale.modalDialogButtonCancelText,featureChooserSortAsc:n.ig.GridSorting.locale.featureChooserSortAsc,featureChooserSortDesc:n.ig.GridSorting.locale.featureChooserSortDesc,persist:!0,sortingDialogContainment:"owner"},renderInFeatureChooser:!0,events:{columnSorting:"columnSorting",columnSorted:"columnSorted",modalDialogOpening:"modalDialogOpening",modalDialogOpened:"modalDialogOpened",modalDialogMoving:"modalDialogMoving",modalDialogClosing:"modalDialogClosing",modalDialogClosed:"modalDialogClosed",modalDialogContentsRendering:"modalDialogContentsRendering",modalDialogContentsRendered:"modalDialogContentsRendered",modalDialogSortingChanged:"modalDialogSortingChanged",modalDialogButtonUnsortClick:"modalDialogButtonUnsortClick",modalDialogSortClick:"modalDialogSortClick",modalDialogButtonApplyClick:"modalDialogButtonApplyClick",modalDialogButtonResetClick:"modalDialogButtonResetClick"},_createWidget:function(){this.options.columnSettings=[];n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){var t=this;this._headers=[];this._clickHandler=function(i){var r,u;(u=n(i.target).closest(".ui-iggrid").attr("id").replace("_container",""),t.grid.element.attr("id")===u)&&(r=n(i.currentTarget).closest("th"),r.attr("data-skip")!=="true"&&(t.grid._isMultiColumnGrid!==!0||r.attr("data-isheadercell")==="true")&&(r.find("a").focus(),t._handleSort(i),n("#"+t.grid.id()+"_hscroller").scrollLeft()>0&&t.grid.options.fixedHeaders===!0&&t.grid.headersTable().parent().scrollLeft(n("#"+t.grid.id()+"_hscroller").scrollLeft())))};this._dragStartHandler=function(i){var r,u=!0;if(u=t.grid._trigger("headercelldragcancel",i,{}),u){if(r=n(i.target).closest(".ui-iggrid").attr("id").replace("_container",""),t.grid.element.attr("id")!==r)return;i.stopPropagation();i.preventDefault()}else return!0;return!1};this._mouseOverHandler=function(i){var u,f=n(i.currentTarget),r;(u=n(i.target).closest(".ui-iggrid").attr("id").replace("_container",""),t.grid.element.attr("id")===u)&&(r=t._getColSettingFromElement(i.currentTarget),r&&r.allowSorting!==!1&&f.addClass(t.css.sortableColumnHeaderHover))};this._mouseOutHandler=function(i){var r;(r=n(i.target).closest(".ui-iggrid").attr("id").replace("_container",""),t.grid.element.attr("id")===r)&&n(i.currentTarget).removeClass(t.css.sortableColumnHeaderHover)};n("#"+this.element[0].id).delegate("thead th",{click:this._clickHandler,mouseover:this._mouseOverHandler,mouseout:this._mouseOutHandler});n("#"+this.element[0].id+" thead th").bind("dragstart",this._dragStartHandler);n("#"+this.element[0].id+"_headers thead th").bind("dragstart",this._dragStartHandler);n(document).delegate("#"+this.element[0].id+"_headers thead th",{click:this._clickHandler,mouseover:this._mouseOverHandler,mouseout:this._mouseOutHandler});this._keyDownHandler=function(n){t._handleSortKb(n)};this._focusHandler=function(n){t._handleFocusKb(n)};this._blurHandler=function(n){t._handleBlurKb(n)};n("#"+this.element[0].id).delegate("thead th a:not([th-remove-focus])",{keydown:this._keyDownHandler,focus:this._focusHandler,blur:this._blurHandler});n(document).delegate("#"+this.element[0].id+"_headers thead th a:not([th-remove-focus])",{keydown:this._keyDownHandler,focus:this._focusHandler,blur:this._blurHandler})},_setOption:function(t,i){var u,e,f,r=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog");n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"type":throw new Error(n.ig.Grid.locale.optionChangeNotSupported+" "+t);case"caseSensitive":this.grid.dataSource.settings.sorting.caseSensitive=this.options.caseSensitive;break;case"modalDialogSortOnClick":r.remove();this._renderMultipleSortingDialog();break;case"modalDialogAnimationDuration":r.igGridModalDialog("option","animationDuration",i);break;case"modalDialogWidth":r.igGridModalDialog("option","modalDialogWidth",i);break;case"modalDialogHeight":r.igGridModalDialog("option","modalDialogHeight",i);break;case"modalDialogButtonApplyText":r.igGridModalDialog("option","buttonApplyText",i);break;case"modalDialogButtonCancelText":r.igGridModalDialog("option","buttonCancelText",i);break;case"modalDialogCaptionText":r.igGridModalDialog("option","modalDialogCaptionText",i);break;case"featureChooserText":if(f=this.grid.element.data("igGridFeatureChooser"),f)for(u=0;u<this.grid.options.columns.length;u++)e=this.grid.options.columns[u].key,f._setListItemText(e,"Sorting",i)}},_getColSettingFromElement:function(t){var i,r=this.options.columnSettings,u=n(t);return i=parseInt(u.data("columnIndex"),10),r[i]},_handleSortKb:function(t){var i=n(t.currentTarget).closest("th").data("columnIndex"),r;(r=n(t.target).closest(".ui-iggrid").attr("id").replace("_container",""),this.grid.element.attr("id")===r)&&(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(this._currentActiveHeader&&this._currentActiveHeader.removeClass(this.css.sortableColumnHeaderActive),n(t.currentTarget).closest("th").addClass(this.css.sortableColumnHeaderActive),this._currentActiveHeader=n(t.currentTarget).closest("th"),t.shiftKey?this.unsortColumn(i,n(t.currentTarget).closest("th")):(this.sortColumn(i,null,n(t.currentTarget).closest("th")),n.ig.util.isIE&&n(t.currentTarget).focus()),t.stopPropagation(),t.preventDefault())},_handleFocusKb:function(t){if(!this._resizing||!this._resizing._resizing){var i=n(t.currentTarget),r=n(t.target).closest(".ui-iggrid").attr("id").replace("_container","");this.grid.element.attr("id")===r&&i.attr("data-fixing-indicator")===undefined&&i.closest("th").addClass(this.css.sortableColumnHeaderFocus)}},_handleBlurKb:function(t){var i=n(t.target).closest(".ui-iggrid").attr("id").replace("_container","");this.grid.element.attr("id")===i&&n(t.currentTarget).closest("th").removeClass(this.css.sortableColumnHeaderFocus)},_handleSort:function(t){if(this._resizing&&this._resizing._resizing){this._resizing._resizing=!1;return}var i=n(t.currentTarget).closest("th"),r=i.data("columnIndex"),u=!1;this._currentActiveHeader&&this._currentActiveHeader.removeClass(this.css.sortableColumnHeaderActive);u=t.shiftKey;u?(i.removeClass(this.css.sortableColumnHeaderFocus).removeClass(this.css.sortableColumnHeaderActive),this._currentHeader=i,this.unsortColumn(r,i)):(n(t.currentTarget).addClass(this.css.sortableColumnHeaderActive),this._currentActiveHeader=i,this.sortColumn(r,null,n(t.currentTarget)));t.stopPropagation();t.preventDefault()},_initLoadingIndicator:function(){this._loadingIndicator=this.grid.container().length>0?this.grid.container().igLoading().data("igLoading").indicator():this.grid.element.igLoading().data("igLoading").indicator()},_getHeaderCellByIdentifier:function(t){var i;return i=n.type(t)==="number"?this.grid.options.columns[t].key:t,n("#"+this.grid.element[0].id+"_"+i)},sortColumn:function(t,i,r){var e,o,c=!0,u,f,v,l,w=!0,s,y=[],h=r===null||r===undefined,p=!1,a=!1;if((this._currentIdentifier=t,n.type(t)==="number"?(e=this.grid.options.columns[t].key,this.grid.options.columns[t].hidden&&(a=!0)):(e=t,(r===null||r===undefined)&&(r=n("#"+this.grid.element[0].id+"_"+e)),t=r.data("columnIndex"),t===undefined&&(a=!0)),o=this.grid.dataSource.settings.sorting.expressions,u=this._findColumnSetting(e),v=this.grid.options.virtualizationMode==="fixed"&&(this.grid.options.virtualization===!0||this.grid.options.columnVirtualization===!0)?t-this.grid._startColIndex:t,h&&this._currentActiveHeader&&this._currentActiveHeader.removeClass(this.css.sortableColumnHeaderActive),(r===null||r===undefined)&&(v+=this.grid.headersTable().children("thead").children("tr").children("th[data-skip=true]").length,r=e?n("#"+this.grid.element[0].id+"_"+e):this.grid.headersTable().children("thead").children("tr").children("th:nth-child("+(v+1)+")"),h=!0),!u||u.allowSorting!==!1)&&(u.currentSortDirection=i!==null&&i!==undefined?i:(u.currentSortDirection===undefined||u.currentSortDirection===null||u.currentSortDirection.startsWith("asc")||u.currentSortDirection.startsWith("desc"))&&u.currentSortDirection!==undefined&&u.currentSortDirection!==null?u.currentSortDirection!==undefined&&u.currentSortDirection!==null&&u.currentSortDirection.indexOf("asc")!==-1?"descending":"ascending":u.firstSortDirection===undefined?this.options.firstSortDirection:u.firstSortDirection,h||(c=this._trigger(this.events.columnSorting,null,{columnKey:e,direction:u.currentSortDirection,owner:this})),c)){if(this._loadingIndicator.show(),r.attr("title",u.currentSortDirection.startsWith("asc")?this.options.sortedColumnTooltip.replace("${direction}",n.ig.GridSorting.locale.ascending):this.options.sortedColumnTooltip.replace("${direction}",n.ig.GridSorting.locale.descending)),this.options.mode==="single"){if(a)for(this._clearSortStates(r,-1),f=0;f<this.grid.options.columns.length;f++)this.options.columnSettings[f]&&this.options.columnSettings[f].allowSorting!==!1&&this.options.columnSettings[f].columnKey!==e&&this._clearSortState(r,this.options.columnSettings[f].columnIndex,this.options.columnSettings[f].columnKey);else e&&this.grid.hasFixedColumns()?this._clearSortStatesByKey(r,e):this._clearSortStates(r,t);for(f=0;this.grid.options.features&&f<this.grid.options.features.length;f++)this.grid.options.features[f].name==="GroupBy"&&(l=this.grid.element.data("igGridGroupBy"),l&&l.options.groupedColumns&&l.options.groupedColumns.length>0&&(w=!1));if(a&&i!==null&&i!==undefined&&(u.currentSortDirection=i),w)this.grid.dataSource.settings.sorting.expressions=[{fieldName:e,dir:u.currentSortDirection.startsWith("asc")?"asc":"desc"}];else{for(s=this.grid.dataSource.settings.sorting.expressions,p=!0,f=0;f<s.length;f++)s[f].isGroupBy===!0&&(s[f].fieldName===e&&(p=!1),y.push(s[f]));p&&y.push({fieldName:e,dir:u.currentSortDirection.startsWith("asc")?"asc":"desc"});this.grid.dataSource.settings.sorting.expressions=y}}else{for(f=0;f<o.length;f++)o[f].fieldName===e&&o.splice(f,1);this.grid.dataSource.settings.sorting.expressions=o.concat([{fieldName:e,dir:u.currentSortDirection.startsWith("asc")?"asc":"desc"}])}c=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid});this.grid._hasUnboundColumns&&this.options.type==="remote"&&(this.grid._rebindUnboundColumns=!0);c&&(this._saveSortingExpressions(),this.grid.element.trigger("iggriduisoftdirty",{owner:this}),this._currentHeader=r,this._currentIndex=t,this.options.type==="remote"?(h||(this._shouldFireColumnSorted=!0),this.grid.dataSource.dataBind()):(this.grid.dataSource.sort(this.grid.dataSource.settings.sorting.expressions,u.currentSortDirection),this.grid._renderData(),h||this._trigger(this.events.columnSorted,null,{columnKey:e,direction:u.currentSortDirection,owner:this})),this._curColKey=e,this._curSortDir=u.currentSortDirection)}},sortMultiple:function(){var i=this,r,t=this.grid.dataSource.settings.sorting.expressions,u;r=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid});r&&(n.each(this.grid.options.columns,function(r,f){var e,o,s=f.key;for(u=n("#"+i.grid.element[0].id+"_"+s),e=0;e<t.length;e++)if(t[e].fieldName===s)break;o=i._findColumnSetting(s);o&&(o.currentSortDirection=e===t.length?undefined:t[e].dir);i._applySortStyles(u,r)}),this.grid.element.trigger("iggriduisoftdirty",{owner:this}),this._isResetClick===!0&&(this._isResetClick=!1),this.options.type==="remote"?this.grid.dataSource.dataBind():(this.grid.dataSource.sort(this.grid.dataSource.settings.sorting.expressions),this.grid._renderData()),this._saveSortingExpressions())},unsortColumn:function(t,i){if(this.options.mode!=="single"){var u,e,o=!0,f,r,s=!1;if(n.type(t)==="number")u=this.grid.options.columns[t].key;else for(u=t,r=0;r<this.grid.options.columns.length;r++)if(this.grid.options.columns[r].key===u){t=r;break}if((e=this.grid.dataSource.settings.sorting.expressions,f=this._findColumnSetting(u),f!==null&&f!==undefined)&&(!f||f.allowSorting!==!1)){for(f.currentSortDirection=undefined,r=0;r<e.length;r++)e[r].fieldName===u&&e.splice(r,1);this._currentIndex=null;this._currentHeader=null;this._applySortStyles(n("#"+this.grid.element[0].id+"_"+u),t);o=this.grid._trigger(this.grid.events.dataBinding,null,{owner:this.grid});o&&(this.grid.element.trigger("iggriduisoftdirty",{owner:this}),this._currentHeader=i,this.options.type==="remote"?(s||(this._shouldFireColumnSorted=!0),this.grid.dataSource.dataBind()):(this.grid.dataSource.sort(this.grid.dataSource.settings.sorting.expressions),this.grid._trigger(this.grid.events.dataBound,null,{owner:this.grid}),this.grid._renderData(),s||this._trigger(this.events.columnSorted,null,{columnKey:u,direction:f.currentSortDirection,owner:this})),this._curColKey=u,this._curSortDir=f.currentSortDirection,this._saveSortingExpressions())}}},_excludeExpr:function(t){if(!this.options.persist||this._couldPreserveData())for(var r=this.grid.dataSource.settings.sorting.expressions,i=0;i<r.length;i++)r[i].fieldName===t&&n.ig.removeFromArray(r,i)},_applySortStyles:function(t,i,r,u){var a=null,o,c,l,b,f,e,v,s,h=this.grid.options.columns[i],y=0,p,k=this.options.sortedColumnTooltip,w=this.grid.hasFixedColumns(),d=k.replace("${direction}",n.ig.GridSorting.locale.ascending),g=k.replace("${direction}",n.ig.GridSorting.locale.descending);for(b=this.grid.options.virtualizationMode==="fixed"&&(this.grid.options.virtualization===!0||this.grid.options.columnVirtualization===!0)?i-this.grid._startColIndex:i,this.grid.options.fixedHeaders&&(a=this.grid.headersTable().outerHeight()),o=t.find(".ui-iggrid-colindicator"),o.length===0&&(o=n("<span><\/span>").addClass(this.css.sortIndicator)),l=t.find(".ui-iggrid-indicatorcontainer"),l.length===0&&(l=n("<div><\/div>").appendTo(t).addClass("ui-iggrid-indicatorcontainer")),l.append(o),y=t.closest("thead").find(".ui-iggrid-header[data-skip=true]").length,f=b+y+1,v=f,e=0;e<this.grid.options.columns.length;e++)e+y<f&&this.grid.options.columns[e].hidden&&v--;if(f=v,r!==null&&r!==undefined){for(e=0;e<this.options.columnSettings.length;e++)if(this.options.columnSettings[e].columnKey===r){s=this.options.columnSettings[e];break}}else s=this.options.columnSettings[i];w&&(h?(r=h.key,p=h.fixed===!0):s&&(r=s.columnKey,p=this.grid.columnByKey(r).fixed===!0),f=this._columnFixing._getVisibleIndex(r,p)+1);w&&this.grid._isFixedElement(t)?c=n("#"+this.element[0].id+"_fixed tbody tr td:nth-child("+f+")"):(!w||h||s||(f-=this.grid._fixedColumns.length),this.grid.options.fixedHeaders!==!0?c=t.closest("thead").parent().find("tbody tr td:nth-child("+f+")"):this.options.applySortedColumnCss!==!1&&(c=this.grid.element.find("tr td:nth-child("+f+")")));s!==undefined&&s.currentSortDirection!==undefined&&(!h||h&&h.hidden!==!0)?s.currentSortDirection.indexOf("asc")!==-1?(o.removeClass(this.css.sortIndicatorDescending).addClass(this.css.sortIndicatorAscending),t.removeClass(this.css.descendingColumnHeader).addClass(this.css.ascendingColumnHeader),t.attr("title",d),this.options.applySortedColumnCss!==!1&&u!==!0&&c.removeClass(this.css.descendingColumn).addClass(this.css.ascendingColumn)):(o.removeClass(this.css.sortIndicatorAscending).addClass(this.css.sortIndicatorDescending),t.removeClass(this.css.ascendingColumnHeader).addClass(this.css.descendingColumnHeader),t.attr("title",g),this.options.applySortedColumnCss!==!1&&u!==!0&&c.removeClass(this.css.ascendingColumn).addClass(this.css.descendingColumn)):(t.attr("title",this.options.unsortedColumnTooltip),o=this.grid._isMultiColumnGrid===!0?t.find(".ui-iggrid-colindicator"):t.parent("tr").find("th:nth-child("+f+") .ui-iggrid-colindicator"),o.removeClass(this.css.sortIndicatorAscending).removeClass(this.css.descendingColumnHeader),t.removeClass(this.css.sortableColumnHeaderActive).removeClass(this.css.sortableColumnHeaderFocus).removeClass(this.css.ascendingColumnHeader).removeClass(this.css.descendingColumnHeader));a!==null&&a!==this.grid.headersTable().outerHeight()&&this.grid._initializeHeights()},_clearSortStatesByKey:function(n,t){for(var r=this.options.columnSettings,u=r.length,f=this.options.mode==="single"&&this.grid._detachedHeaderCells,i=0;i<u;i++)r[i].allowSorting!==!1&&r[i].columnKey!==t&&(delete r[i].currentSortDirection,this._clearSortState(n,r[i].columnIndex,r[i].columnKey),f&&r[i].columnKey&&this.grid._detachedHeaderCells[r[i].columnKey]&&this._clearHeaderCellSortState(this.grid._detachedHeaderCells[r[i].columnKey][0]))},_clearSortStates:function(n,t){for(var r=this.options.columnSettings,u=t,f=this.options.mode==="single",i=0;i<this.grid.options.columns.length;i++)i<t&&this.grid.options.columns[i].hidden&&u--;for(t=u,i=0;i<this.options.columnSettings.length;i++)r[i].allowSorting!==!1&&(t!==undefined&&r[i].columnIndex!==t&&(delete r[i].currentSortDirection,this._clearSortState(n,r[i].columnIndex,r[i].columnKey)),this.grid._detachedHeaderCells&&f&&r[i].columnKey&&this.grid._detachedHeaderCells[r[i].columnKey]&&(r[i].currentSortDirection!==undefined&&r[i].currentSortDirection!==null&&delete r[i].currentSortDirection,this._clearHeaderCellSortState(this.grid._detachedHeaderCells[r[i].columnKey][0])))},_clearSortStateFixing:function(t){var i,r=this.grid.element.attr("id")+"_"+t,u=this._columnFixing._getVisibleIndex(t);i=n("#"+r);this._clearSortStateByVisibleIndex(u,i)},_clearSortState:function(n,t,i){if(this.grid.hasFixedColumns()&&i!==undefined){this._clearSortStateFixing(i);return}var u,r,f;if(this.grid._isMultiColumnGrid===!0){if(r=this.grid._headerCells,u=r[t],u===undefined)return}else this.grid.hasFixedColumns()?(f=this.grid._fixedColumns.length,t<f?r=this.grid.fixedHeadersTable().find("thead > tr").first().find("th").not("[data-skip=true]"):(r=this.grid.headersTable().find("thead > tr").first().find("th").not("[data-skip=true]"),t-=f),u=r.eq(t)):(r=this.grid.headersTable().find("thead > tr").first().find("th").not("[data-skip=true]"),u=r.eq(t));this._clearSortStateByVisibleIndex(t,u)},_clearSortStateByVisibleIndex:function(n,t){var r=t,i;this._clearHeaderCellSortState(r);this.options.columnSettings.length>n&&this.options.columnSettings[n].allowSorting?t.attr("title",this.options.unsortedColumnTooltip):t.attr("title","");this.options.applySortedColumnCss!==!1&&(i=this.grid.options.fixedHeaders!==!0?t.closest("thead").parent().find("tbody tr td:nth-child("+(n+1)+")"):this.grid.element.find("tr td:nth-child("+(n+1)+")"),i.removeClass(this.css.descendingColumn).removeClass(this.css.ascendingColumn))},_clearHeaderCellSortState:function(n){var t=n.find(".ui-iggrid-colindicator");(t.hasClass("ui-iggrid-colindicator-desc")||t.hasClass("ui-iggrid-colindicator-asc"))&&(t.removeClass(this.css.sortIndicatorDescending).removeClass(this.css.sortIndicatorAscending),n.removeClass(this.css.ascendingColumnHeader).removeClass(this.css.descendingColumnHeader).removeClass(this.css.sortableColumnHeaderFocus))},_initDefaultSettings:function(){var u=[],r,i=this.options.columnSettings,t,f,o,l=0,e=[],s,h=!1,a,c,v=this.grid._hasUnboundColumns===!0&&this.options.type==="remote";if(this.grid.dataSource.settings.sorting.expressions!==null&&this.grid.dataSource.settings.sorting.expressions!==undefined&&(e=this.grid.dataSource.settings.sorting.expressions),s=e.length,this.grid.options.columns&&this.grid.options.columns.length>0)for(t=0;t<this.grid.options.columns.length;t++)c=!0,v&&this.grid.getUnboundColumnByKey(this.grid.options.columns[t].key)!==null&&(c=!1),u[t]={columnIndex:l,columnKey:this.grid.options.columns[t].key,allowSorting:c},this.grid.options.columns[t].hidden!==!0&&l++;for(t=0;t<i.length;t++)for(r in i[t])i[t].hasOwnProperty(r)&&r!=="columnKey"&&r!=="columnIndex"&&(r==="userSet_currentSortDirection"?i[t].userSet_currentSortDirection==="undefined"?delete i[t].currentSortDirection:i[t].currentSortDirection=i[t].userSet_currentSortDirection:r==="userSet_allowSorting"&&(i[t].allowSorting=i[t][r],delete i[t][r]));if(u.length===0&&this.grid.options.autoGenerateColumns&&i.length>0)for(t=0;t<i.length;t++)i[t].columnKey&&(a=i[t].currentSortDirection&&i[t].currentSortDirection.startsWith?i[t].currentSortDirection.startsWith("asc")?"asc":"desc":"asc",e.push({fieldName:i[t].columnKey,dir:a}));else for(t=0;t<i.length;t++){for(f=0;f<u.length;f++)if(u[f].columnKey!==null&&u[f].columnKey!==undefined&&i[t].columnKey!==null&&i[t].columnKey!==undefined){if(u[f].columnKey===i[t].columnKey)break}else if(u[f].columnIndex===i[t].columnIndex)break;if(f!==u.length)for(r in i[t])if(i[t].hasOwnProperty(r)&&r!=="columnKey"&&r!=="columnIndex"&&!r.startsWith("userSet")&&(u[f][r]=i[t][r],u[f]["userSet_"+r]=i[t][r],r==="currentSortDirection"&&i[t][r]))if(n.type(u[f].columnKey)!=="number"){if(h=!1,s>0)for(o=0;o<s;o++)if(e[o].fieldName===u[f].columnKey){e[o].isGroupBy===!0?h=!0:e.splice(o,1);break}if(h===!0)continue;e.push({fieldName:u[f].columnKey,dir:i[t][r].startsWith("asc")?"asc":"desc"})}else e.push({fieldIndex:u[f].columnKey,dir:i[t][r].startsWith("asc")?"asc":"desc"})}for(t=0;t<u.length;t++)u[t].hasOwnProperty("currentSortDirection")||(u[t].userSet_currentSortDirection="undefined");this.options.columnSettings=u;this.grid.dataSource.settings.sorting.expressions=e;this.grid.dataSource.settings.sorting.defaultFields=e},_headerCellRendered:function(t,i){var r=this._findColumnSetting(i.columnKey),u,o,f,e=this.grid.element.data("igGridFeatureChooser");if(t.target.id===this.grid.element[0].id&&i.isMultiColumnHeader!==!0&&(i.columnKey&&r&&(this._headers.push({header:i.th,index:r.columnIndex}),r.allowSorting!==!1?(i.th.addClass(this.css.sortableColumnHeader),r.currentSortDirection===undefined||r.currentSortDirection===null?i.th.attr("title",this.options.unsortedColumnTooltip):i.th.attr("title",r.currentSortDirection.startsWith("asc")?this.options.sortedColumnTooltip.replace("${direction}",n.ig.GridSorting.locale.ascending):this.options.sortedColumnTooltip.replace("${direction}",n.ig.GridSorting.locale.descending)),n("<span><\/span>").appendTo(i.th).addClass(this.css.sortIndicator),n(i.th).wrapInner('<a href="#"><\/a>'),r.currentSortDirection!==undefined&&this._applySortStyles(i.th,r.columnIndex)):n(i.th).wrapInner('<a href="#"><\/a>')),!this._featureChooserInitialized&&e)){if(this._featureChooserInitialized=!0,this._featureChooserMenuTogglingHandler=n.proxy(this._featureChooserMenuToggling,this),this.grid.element.bind("iggridfeaturechoosermenutoggling",this._featureChooserMenuTogglingHandler),e._isTouchDevice())for(u=0;u<this.grid.options.columns.length;u++)o=this.grid.options.columns[u],r=this._getColumnSettingsByIndex(u),r.allowSorting&&e&&e._shouldRenderInFeatureChooser(o.key)===!0&&(f=r.currentSortDirection,f===null&&(f=!1),e._renderInFeatureChooser(o.key,{name:"SortingAscending",text:this.options.featureChooserSortAsc,textHide:this.options.featureChooserSortAsc,iconClass:this.css.fcSortIndicatorAscending,iconClassOff:this.css.fcSortIndicatorAscending,isSelected:f&&typeof f=="string"?f.toLowerCase().indexOf("asc")>-1:!1,method:n.proxy(this._sortAscFromFeatureChooser,this),updateOnClickAll:!1,groupName:"toggle",groupOrder:1,order:0,type:"toggle"}),e._renderInFeatureChooser(o.key,{name:"SortingDescending",text:this.options.featureChooserSortDesc,textHide:this.options.featureChooserSortDesc,iconClass:this.css.fcSortIndicatorDescending,iconClassOff:this.css.fcSortIndicatorDescending,isSelected:f&&typeof f=="string"?f.toLowerCase().indexOf("desc")>-1:!1,method:n.proxy(this._sortDescFromFeatureChooser,this),updateOnClickAll:!1,groupName:"toggle",groupOrder:1,order:0,type:"toggle"}));if(this.options.mode!=="single")for(u=0;u<this.grid.options.columns.length;u++)o=this.grid.options.columns[u],this._getColumnSettingsByIndex(u).allowSorting&&e._shouldRenderInFeatureChooser(o.key)===!0&&e._renderInFeatureChooser(o.key,{name:"MultipleSorting",text:this.options.featureChooserText,iconClass:this.css.featureChooserModalDialogIcon,method:n.proxy(this.openMultipleSortingDialog,this),groupName:"modaldialog",groupOrder:3,order:2})}},_featureChooserMenuToggling:function(n,t){var r,u,f,o=!1,i=t.columnKey,e=this.grid.element.data("igGridFeatureChooser"),s=this.grid.dataSource.settings.sorting.expressions,h=s.length;if(!t.isVisible){for(r=0;r<h;r++)u=s[r],u.fieldName===i&&(o=!0,f=!1,u.dir&&u.dir.toLowerCase().indexOf("asc")>-1&&(f=!0),e._setSelectedState("SortingDescending",i,!f,!1),e._setSelectedState("SortingAscending",i,f,!1));o||(e._setSelectedState("SortingDescending",i,!1,!1),e._setSelectedState("SortingAscending",i,!1,!1))}},_sortAscFromFeatureChooser:function(n,t,i){var r=this.grid.element.data("igGridFeatureChooser");r&&(r._setSelectedState("SortingDescending",t,!1,!1),i?this.sortColumn(t,"asc"):this.unsortColumn(t))},_sortDescFromFeatureChooser:function(n,t,i){var r=this.grid.element.data("igGridFeatureChooser");(r._setSelectedState("SortingAscending",t,!1,!1),r)&&(i?this.sortColumn(t,"desc"):this.unsortColumn(t))},_columnFixed:function(n){var t,u=n.colInd,i,r=this.grid.fixedHeadersTable(),f=!1,e=n.fixedColsCount;for(f=r.data("attachedSortingHandlers"),f!==!0&&(r.data("attachedSortingHandlers",!0),r.delegate("thead th",{click:this._clickHandler,mouseover:this._mouseOverHandler,mouseout:this._mouseOutHandler})),i=this.options.columnSettings[u],i&&(this.options.columnSettings.splice(u,1),this.options.columnSettings.splice(e-1,0,i)),t=0;t<this.options.columnSettings.length;t++)this.options.columnSettings[t].columnIndex=t},_columnsRearranged:function(){this._initDefaultSettings()},_columnMap:function(){var t=this,i=t.options.mode!=="single";return n.map(this.grid.options.columns,function(n,r){var u=!1;return i&&t._getColumnSettingsByIndex(r).allowSorting&&(u=!0),{columnKey:n.key,enabled:u}})},_findColumnSetting:function(n){for(var t=0;t<this.options.columnSettings.length;t++)if(this.options.columnSettings[t].columnKey===n)return this.options.columnSettings[t]},_dataRendered:function(){var i,f,t,r,u,o=this.grid.element[0].id,e;if(this._loadingIndicator||this._initLoadingIndicator(),t=this._sortingExpressions,this._shouldFireColumnSorted&&(this._trigger(this.events.columnSorted,null,{columnKey:this._curColKey,direction:this._curSortDir,owner:this}),this._shouldFireColumnSorted=!1),this._loadingIndicator.hide(),this._currentIndex!==undefined&&this._currentIndex!==null&&this._currentHeader!==undefined&&this._currentHeader!==null)this._applySortStyles(this._currentHeader,this._currentIndex);else if(this.options.persist&&this._restoreSorting&&t&&t.length>0)for(i=0;i<t.length;i++)t[i].isGroupBy||(u=t[i].fieldName,f=this._findColumnSetting(u),f&&(f.currentSortDirection=t[i].dir),r=n("#"+o+"_"+u),r.addClass(this.css.sortableColumnHeaderActive),this._currentActiveHeader=r,e=!0,i+1===t.length&&(e=!1),this._applySortStyles(r,r.data("columnIndex"),u,e));this._hc===undefined&&(this._hc=this.grid.container().find(".ui-iggrid-expandheadercell").length>0);(this.grid.options.rowVirtualization||this.grid.options.virtualization)&&n("#"+this.grid.element.attr("id")+"_scrollContainer").scrollTop(0)},_onUIDirty:function(t,i){var r,u,f=this.grid.dataSource.settings.sorting.expressions,s=this.grid.dataSource.settings.sorting.defaultFields,e=this.options.columnSettings,o=!1;if(i.owner!==this&&i.owner.element[0].id===this.element[0].id)for(this._currentIdentifier=null,this._currentIndex=null,this._currentHeader=null,this._clearUi(!0),r=0;r<f.length;r++){for(o=!1,u=0;u<e.length;u++)if(e[u].columnKey===f[r].fieldName&&e[u].userSet_currentSortDirection){o=!0;break}o||(f.length>r&&n.ig.removeFromArray(f,r),s.length>r&&n.ig.removeFromArray(s,r))}},_clearUi:function(){for(var i,r,u=this.grid._isMultiColumnGrid,f=this.options.persist,t=0;this._headers&&t<this._headers.length;t++)r=this.options.columnSettings[t].userSet_currentSortDirection,i=(u||f)&&this.options.columnSettings[t].columnKey?n("#"+this.grid.element[0].id+"_"+this.options.columnSettings[t].columnKey):this._headers[t].header,r===undefined||r===null||r==="undefined"?(this._clearSortState(i,t,this.options.columnSettings[t].columnKey),this.options.mode!=="single"&&(delete this.options.columnSettings[t].currentSortDirection,this._excludeExpr(this.options.columnSettings[t].columnKey))):this._applySortStyles(i,t),i.removeClass(this.css.sortableColumnHeaderActive).removeClass(this.css.sortableColumnHeaderHover).removeClass(this.css.sortableColumnAscending).removeClass(this.css.sortableColumnDescending).addClass(this.grid.css.headerClass),i.hasClass(this.grid.css.headerCellFeatureEnabledClass)||i.addClass(this.grid.css.headerCellFeatureEnabledClass),this.options.columnSettings[t].allowSorting&&i.addClass(this.css.sortableColumnHeader)},_virtualHorizontalScroll:function(n,t){for(var o=t.startColIndex,s=t.endColIndex,u,f=this.options.columnSettings,r,e=this.grid.headersTable().find("thead > tr").first().find("th").not("[data-skip=true]"),h=this.grid._visibleColumns(),i=0;i<e.length;i++)r=e.eq(i),this._clearSortState(r,i),r.removeClass(this.css.sortableColumnHeaderActive).removeClass(this.css.sortableColumnHeaderHover).removeClass(this.css.sortableColumnAscending).removeClass(this.css.sortableColumnDescending).addClass(this.grid.css.headerClass).addClass(this.css.sortableColumnHeader);for(i=o;i<=s;i++)for(r=e.eq(i-o),r.data("columnIndex",i),u=0;u<f.length;u++)f[u].currentSortDirection&&f[u].columnKey===h[i].key&&this._applySortStyles(r,i)},_columnsCollectionModified:function(t,i){if(i.owner.element.attr("id")===this.grid.element.attr("id")){for(var r,e,f,o,s,h,c,u=0;u<this.options.columnSettings.length;u++){for(r=0,e=!1,r=0;r<this.grid._visibleColumns().length;r++)if(this.grid._visibleColumns()[r].key===this.options.columnSettings[u].columnKey){e=!0;f=this.grid._visibleColumns()[r].key;break}e&&(this.options.columnSettings[u].columnIndex=r,o=this._findColumnSetting(f),o&&o.currentSortDirection!==undefined&&this.options.applySortedColumnCss!==!1&&(s=n("#"+this.grid.element[0].id+"_"+f),this._applySortStyles(s,s.data("columnIndex"),f,!0)))}this._currentIdentifier&&(n.type(this._currentIdentifier)==="number"?this._currentIndex!==undefined&&this._currentIndex!==null&&this._currentHeader!==undefined&&this._currentHeader!==null&&this._applySortStyles(this._currentHeader,this._currentIndex):(h=n("#"+this.grid.element[0].id+"_"+this._currentIdentifier),c=h.data("columnIndex"),n.type(c)==="number"&&this._applySortStyles(h,c,this._currentIdentifier)));n("#"+this.element[0].id+" thead th").removeClass(this.css.sortableColumnHeaderHover)}},destroy:function(){var r,u,i,t,f,e,o=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog");if(this.grid){for(n("#"+this.element[0].id).undelegate("thead th","dragstart",this._dragStartHandler),n("#"+this.element[0].id).undelegate("thead th","mouseover",this._mouseOverHandler),n("#"+this.element[0].id).undelegate("thead th","mouseout",this._mouseOutHandler),n("#"+this.element[0].id).undelegate("thead th","click",this._clickHandler),n(document).undelegate("#"+this.element[0].id+"_headers thead th","dragstart",this._dragStartHandler),n(document).undelegate("#"+this.element[0].id+"_headers thead th","mouseover",this._mouseOverHandler),n(document).undelegate("#"+this.element[0].id+"_headers thead th","mouseout",this._mouseOutHandler),n(document).undelegate("#"+this.element[0].id+"_headers thead th","click",this._clickHandler),n("#"+this.element[0].id).undelegate("thead th a","keydown",this._keyDownHandler),n("#"+this.element[0].id).undelegate("thead th a","focus",this._focusHandler),n("#"+this.element[0].id).undelegate("thead th a","blur",this._blurHandler),n(document).undelegate("#"+this.element[0].id+"_headers thead th a","keydown",this._keyDownHandler),n(document).undelegate("#"+this.element[0].id+"_headers thead th a","focus",this._focusHandler),n(document).undelegate("#"+this.element[0].id+"_headers thead th a","blur",this._blurHandler),n("#"+this.element[0].id).undelegate("thead th a:not([th-remove-focus])",{keydown:this._keyDownHandler,focus:this._focusHandler,blur:this._blurHandler}),n(document).undelegate("#"+this.element[0].id+"_headers thead th a:not([th-remove-focus])",{keydown:this._keyDownHandler,focus:this._focusHandler,blur:this._blurHandler}),this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler),this.grid.element.unbind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler),this.grid.element.unbind("iggriduidirty",this._uiDirtyHandler),this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler),this.grid.element.unbind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler),this.grid.element.unbind("iggridcolumnmovingcolumnmoved",this._columnsRearangedHandler),this._featureChooserMenuTogglingHandler&&this.grid.element.unbind("iggridfeaturechoosermenutoggling",this._featureChooserMenuTogglingHandler),delete this._blurHandler,delete this._clickHandler,delete this._headerCellRenderedHandler,delete this._focusHandler,delete this._keyDownHandler,delete this._mouseOutHandler,delete this._mouseOverHandler,delete this._dragStartHandler,delete this._uiDirtyHandler,delete this._virtualHorizontalScrollHandler,delete this._headerRenderedHandler,delete this._columnsRearangedHandler,this.grid.element.find(".ui-iggrid-colasc").removeClass("ui-iggrid-colasc ui-state-highlight"),this.grid.element.find(".ui-iggrid-coldesc").removeClass("ui-iggrid-coldesc ui-state-highlight"),this._clearUi(!0),r=0;this._headers&&r<this._headers.length;r++)t=this._headers[r].header,t.removeClass("ui-iggrid-sortableheader ui-state-default ui-state-active ui-state-hover ui-state-focus"),t.attr("title",""),f=t.find("a span"),e=f.text(),u=t.find("a:not([th-remove-focus])"),n("<span>"+e+"<\/span>").appendTo(t).addClass("ui-iggrid-headertext"),u.remove();return i=this.grid.element.data("igGridFeatureChooser"),i&&this.renderInFeatureChooser&&(i._removeFeature("SortingAscending"),i._removeFeature("SortingDescending"),i._removeFeature("MultipleSorting")),this._headers=null,this._loadingIndicator&&delete this._loadingIndicator,o.igGridModalDialog("getCaptionButtonContainer"),o.remove(),n.Widget.prototype.destroy.apply(this,arguments),this}},_renderMultipleSortingDialog:function(){var o,u,t=this,r=this.options,s=this.grid.element[0].id+"_multiplesorting_modalDialog",f,e,i;this.options.sortingDialogContainment==="owner"?(u=this.grid.container(),e=this.grid._rootContainer()):(u="window",e="body");n("#"+s).remove();i=n("<div><\/div>").appendTo(e).attr("id",s);i.igGridModalDialog({containment:u,buttonApplyText:r.modalDialogButtonApplyText,buttonCancelText:r.modalDialogButtonCancelText,renderFooterButtons:!r.modalDialogSortOnClick,modalDialogCaptionText:r.modalDialogCaptionText,modalDialogWidth:r.modalDialogWidth,modalDialogHeight:r.modalDialogHeight,animationDuration:r.modalDialogAnimationDuration,gridContainer:this.grid.container(),modalDialogOpening:function(n,r){var u=t._trigger(t.events.modalDialogOpening,null,{modalDialogElement:i,owner:t});return u&&(t._multiplesortingDialogOpening(n,r),t._trigger(t.events.modalDialogOpened,null,{modalDialogElement:i,owner:t})),u},modalDialogMoving:function(n,i){t._trigger(t.events.modalDialogMoving,null,{modalDialogElement:n.target,owner:t,originalPosition:i.originalPosition,position:i.position})},modalDialogClosing:function(){return t._trigger(t.events.modalDialogClosing,null,{modalDialogElement:i,owner:t})},modalDialogClosed:function(){t._trigger(t.events.modalDialogClosed,null,{modalDialogElement:i,owner:t})}});r.modalDialogSortOnClick?(f=i.igGridModalDialog("getCaptionButtonContainer"),n("<span><\/span>").bind("click.hiding",function(n){return i.igGridModalDialog("closeModalDialog",!0),n.preventDefault(),n.stopPropagation(),!1}).addClass("ui-icon ui-icon-closethick").appendTo(n("<a><\/a>").appendTo(f).attr("title",n.ig.GridHiding.locale.columnChooserCloseButtonTooltip).attr("href","#").attr("role","button").addClass("ui-dialog-titlebar-close ui-corner-all"))):(f=i.igGridModalDialog("getCaptionButtonContainer"),o=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog_footer_buttonok"),o.bind("igbuttonclick",function(n){t._multiplesortingDialogButtonOKClick(n);n.preventDefault()}))},openMultipleSortingDialog:function(){var t=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog");t.igGridModalDialog("openModalDialog")},closeMultipleSortingDialog:function(){var t=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog");t.igGridModalDialog("closeModalDialog")},_multiplesortingDialogOpening:function(){this._tempExpr=this.grid.dataSource.settings.sorting.expressions.slice(0);this.renderMultipleSortingDialogContent(!0)},renderMultipleSortingDialogContent:function(t){var e,h,c,i,r,l=!0,u=this,v=this.grid.options.columns,o=this.css,a=this.grid.dataSource.settings.sorting.expressions,y=a.length,f=[],s=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog");if(t&&(l=this._trigger(this.events.modalDialogContentsRendering,null,{modalDialogElement:s,owner:this})),l){for(this.removeDialogClearButton(),e=s.igGridModalDialog("getContent"),e.empty(),h=n("<div><\/div>").attr("id",this.grid.element[0].id+"_multiplesorting_modalDialog_sortedcolumns").addClass(o.dialogSortedColumns).appendTo(e),c=n("<div><\/div>").attr("id",this.grid.element[0].id+"_multiplesorting_modalDialog_unsortedcolumns").addClass(o.dialogUnsortedColumns).appendTo(e),n("<ul><\/ul>").addClass(o.dialogSortedColumnsList).appendTo(h),n("<ul><\/ul>").addClass(o.dialogUnsortedColumnsList).appendTo(c),n.each(v,function(n,t){var r,e,o;if(r=u._getColumnSettingsByIndex(n),r===null||r===undefined||r.allowSorting===!1)return!0;for(e=r.columnKey||r.columnIndex||t.key,i=0;i<u._tempExpr.length;i++)if(u._tempExpr[i].fieldName===e)break;i!==u._tempExpr.length?f.push({column:t,columnIndex:r.columnIndex,dir:u._tempExpr[i].dir,columnIdentifier:e}):(o=r.currentSortDirection||u.options.firstSortDirection,u._renderDialogUnsortedColumn(t,r.columnIndex,o,e))}),i=0;i<y;i++)for(r=0;r<f.length;r++)if(a[i].fieldName===f[r].columnIdentifier){u._renderDialogSortedColumn(f[r].column,f[r].columnIndex,f[r].dir,f[r].columnIdentifier);break}t&&this._trigger(this.events.modalDialogContentsRendered,null,{modalDialogElement:s,owner:this});this._checkRenderButtonReset()&&this._renderDialogButtonClearAll()}},_addSlideButtonSortingColumns:function(){var t=this.css,i=this.options,r=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog_sortedcolumns"),u=this.grid.element[0].id+"_multiplesorting_modalDialog_slidebutton",f,e;e='<div class="'+t.dialogSlideArea+'">\t<div class="'+t.dialogSlideAreaContainer+'">\t\t<button id="'+u+'" class="'+t.dialogButtonSlide+'" role="button" aria-disabled="false" title="'+i.dialogButtonSlideCaption+'">\t\t\t<span class="'+t.dialogButtonSlideContainer+'"><\/span>\t\t\t<span class="ui-button-text">'+i.dialogButtonSlideCaption+"<\/span>\t\t<\/button>\t<\/div><\/div>";n(e).insertAfter(r);f=n("#"+u);f.bind({click:function(){return r.slideToggle("slow"),n(this).find("span:eq(0)").toggleClass(t.dialogButtonSlideUp),!1}})},_renderDialogSortedColumn:function(t,i,r,u){var f=this,o,e=this.css,h,c,s=this.options,v=this.grid.element[0].id+"_"+u+"_multiplesorting_modalDialog_sortedcolumns_buttonascdesc",l=this.grid.element[0].id+"_"+u+"_multiplesorting_modalDialog_sortedcolumns_buttonunsort",a=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog_sortedcolumns ul");a.css("width");o=n("<li><\/li>").attr("id",f.grid.element[0].id+"_"+u+"_multiplesorting_sorted_li").addClass(e.dialogSortedColumnsItem);o.appendTo(a);i!==null&&i!==undefined&&o.attr("li-order",i);c='<span id="'+v+'" class="'+e.dialogButtonAsc+'" role="button" title="'+s.modalDialogCaptionButtonDesc+'" >\t<span class="'+e.dialogButtonAscIcon+'"><\/span><\/span><span class="'+e.dialogSortedColumnTextContainer+'">'+t.headerText+'<\/span><button id="'+l+'" class="'+e.dialogButtonUnsort+'" role="button" title="'+s.modalDialogCaptionButtonUnsort+'" >\t<span class="'+e.dialogButtonUnsortContainer+'"><\/span>\t<span class="ui-button-text">'+s.modalDialogCaptionButtonUnsort+"<\/span><\/button>";o.bind({click:function(n){f._currentIdentifier=u;f._dialogButtonAscDescClick(u);f._checkRenderButtonReset()?f._renderDialogButtonClearAll():f.removeDialogClearButton();n.preventDefault();n.stopPropagation()}});o.html(c);h=n("#"+l);r!==undefined?r.indexOf("asc")!==-1?(f._setDialogButtonAscDesc(!0,u),f._setTempExpr(u,"asc")):(f._setDialogButtonAscDesc(!1,u),f._setTempExpr(u,"desc")):(f._setDialogButtonAscDesc(!0,u),f._setTempExpr(u,"asc"));h.bind({click:function(e){var h,c=n("#"+f.grid.element[0].id+"_multiplesorting_modalDialog");h=f._trigger(f.events.modalDialogButtonUnsortClick,e,{modalDialogElement:c,owner:f,columnKey:u});h&&(o.remove(),s.modalDialogSortOnClick===!0?f.unsortColumn(u):f._setTempExpr(u),f._renderDialogUnsortedColumn(t,i,r,u),f._checkRenderButtonReset()?f._renderDialogButtonClearAll():f.removeDialogClearButton());e.preventDefault();e.stopPropagation()},mouseover:function(){n(this).hasClass(e.dialogButtonsHover)||n(this).addClass(e.dialogButtonsHover)},mouseout:function(){n(this).hasClass(e.dialogButtonsHover)&&n(this).removeClass(e.dialogButtonsHover)}})},_dialogButtonAscDescClick:function(t){var i=this.options,r,f=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog"),e=n("#"+this.grid.element[0].id+"_"+t+"_multiplesorting_modalDialog_sortedcolumns_buttonascdesc"),u=e.data("isAsc");r=this._trigger(this.events.modalDialogSortingChanged,null,{modalDialogElement:f,owner:this,columnKey:t,isAsc:!u});r&&(u===!0?(i.modalDialogSortOnClick===!0?this.sortColumn(t,"descending",this._getHeaderCellByIdentifier(t)):this._setTempExpr(t,"desc"),this._setDialogButtonAscDesc(!1,t)):(i.modalDialogSortOnClick===!0?this.sortColumn(t,"ascending",this._getHeaderCellByIdentifier(t)):this._setTempExpr(t,"asc"),this._setDialogButtonAscDesc(!0,t)))},_setDialogButtonAscDesc:function(t,i){var r=this.css,e=this.grid.element[0].id+"_"+i+"_multiplesorting_modalDialog_sortedcolumns_buttonascdesc",u=n("#"+e),f=u.find("span:eq(0)");u.data("isAsc",t);t===!0?(u.attr("title",this.options.modalDialogCaptionButtonDesc).removeClass(r.dialogButtonDesc).addClass(r.dialogButtonAsc),f.removeClass(r.dialogButtonDescIcon).addClass(r.dialogButtonAscIcon),this._setTempExpr(i,"asc")):(u.attr("title",this.options.modalDialogCaptionButtonAsc).removeClass(r.dialogButtonAsc).addClass(r.dialogButtonDesc),f.removeClass(r.dialogButtonAscIcon).addClass(r.dialogButtonDescIcon),this._setTempExpr(i,"desc"))},_setTempExpr:function(n,t){for(var r=this._tempExpr,i=0;i<r.length;i++)if(r[i].fieldName===n&&(r.splice(i,1),t===null||t===undefined)){this._tempExpr=r;return}this._tempExpr=r.concat([{fieldName:n,dir:t}])},_renderDialogUnsortedColumn:function(t,i,r,u){var f=this,e,s,h=this.options,o=this.css,c=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog_unsortedcolumns ul");c.css("width");e=n("<li><\/li>").attr("id",f.grid.element[0].id+"_"+u+"_multiplesorting_unsorted_li").addClass(o.dialogUnsortedColumnsItem).append('<span class="'+o.dialogUnsortedColumnsSortByButton+'"><a href="#"><\/a><\/span> <span class="'+o.dialogItemText+'">'+t.headerText+"<\/span>");this._insertColumnModalDialog(c,e,i);i!==null&&i!==undefined&&e.attr("li-order",i);s=e.find("a:first");s.addClass(o.modalDialogSortByColumn);s.html(h.modalDialogSortByButtonText);e.bind({click:function(o){var s,c=n("#"+f.grid.element[0].id+"_multiplesorting_modalDialog");s=f._trigger(f.events.modalDialogSortClick,o,{modalDialogElement:c,owner:f,columnKey:u});s&&(e.remove(),f._renderDialogSortedColumn(t,i,r,u),h.modalDialogSortOnClick?f.sortColumn(u,null,f._getHeaderCellByIdentifier(u)):f._checkRenderButtonReset()?f._renderDialogButtonClearAll():f.removeDialogClearButton());o.preventDefault();o.stopPropagation()}})},_checkRenderButtonReset:function(){var i,n,t,u,r=this._tempExpr;for(this._isResetClick=!1,i=0;i<this.options.columnSettings.length;i++)if(t=this.options.columnSettings[i],t.allowSorting!==!1){for(u=t.columnKey,n=0;n<r.length;n++)if(r[n].fieldName===u){if(t.userSet_currentSortDirection!==r[n].dir)return!0;break}if(n===r.length&&t.userSet_currentSortDirection!=="undefined")return!0}return this._isResetClick=!0,!1},removeDialogClearButton:function(){n("#"+this.grid.element[0].id+"_sorting_modalDialog_reset_button").remove()},_renderDialogButtonClearAll:function(){if(this.options.modalDialogSortOnClick!==!0){var t=this,e=this.options,i=t.grid.element[0].id+"_sorting_modalDialog_reset_button",r=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog"),u,f;n("#"+i).length===0&&(u=r.igGridModalDialog("getCaptionButtonContainer"),f=n("<button><\/button>").attr("id",i).appendTo(u),f.igButton({labelText:e.modalDialogResetButtonLabel,click:function(n){var f,i,u=t.options.columnSettings;if(f=t._trigger(t.events.modalDialogButtonResetClick,n,{modalDialogElement:r,owner:t}),f){for(t._tempExpr=[],i=0;i<u.length;i++)u[i].allowSorting!==!1&&u[i].userSet_currentSortDirection!=="undefined"&&t._tempExpr.push({fieldName:u[i].columnKey,dir:u[i].userSet_currentSortDirection});t.renderMultipleSortingDialogContent(!1);t.removeDialogClearButton();t._isResetClick=!0}}}))}},_multiplesortingDialogButtonOKClick:function(){var t,i=n("#"+this.grid.element[0].id+"_multiplesorting_modalDialog");t=this._trigger(this.events.modalDialogButtonApplyClick,null,{modalDialogElement:i,owner:this,columnsToSort:this._tempExpr});t&&(this.grid.dataSource.settings.sorting.expressions=this._tempExpr,this.sortMultiple(),i.igGridModalDialog("closeModalDialog"))},_insertColumnModalDialog:function(t,i,r){var u,f,o,s=t.find("li"),e=s.length;if(e===0||r===null||r===undefined){i.appendTo(t);return}for(u=0;u<e;u++)if(f=n(s[u]),o=f.attr("li-order"),o>=r){i.insertBefore(f);break}u===e&&i.appendTo(t)},_getColumnSettings:function(n,t){for(var r=null,i=0;i<this.options.columnSettings.length;i++){if(this.options.columnSettings[i].columnKey===t){r=this.options.columnSettings[i];break}if(this.options.columnSettings[i].columnIndex===n){r=this.options.columnSettings[i];break}}return r},_getColumnSettingsByIndex:function(n){var t=this.grid.options.columns[n].key;return this._getColumnSettings(n,t)},_headerRendered:function(n,t){t.owner.element.attr("id")===this.grid.element.attr("id")&&(this.grid.element.data("igGridResizing")&&(this._resizing=this.grid.element.data("igGridResizing")),!this._columnFixing&&this.grid.element.data("igGridColumnFixing")&&(this._columnFixing=this.grid.element.data("igGridColumnFixing")),this.options.mode!=="single"&&this._renderMultipleSortingDialog())},_getDataColumnSortingExpressions:function(t){if(!this.grid._hasUnboundColumns)return t;var i=this.grid;return n.grep(t,function(n){var t=i.columnByKey(n.fieldName);return!t||t.unbound!==!0})},_saveSortingExpressions:function(){if(this.options.persist){var t;(this._restoreSorting===undefined||this._restoreSorting)&&n.each(this.options.columnSettings,function(n,t){delete t.userSet_currentSortDirection});t=this._getDataColumnSortingExpressions(this.grid.dataSource.settings.sorting.expressions);this.grid._savePersistenceData(t,"sorting",this.grid.element[0].id);this._sortingExpressions=t;this._restoreSorting=!1}},_preserveSorting:function(){var n=this.grid._getPersistenceData("sorting",this.grid.element[0].id);n&&(this._restoreSorting=!0,n!==this._sortingExpressions&&(this._sortingExpressions=n),this.grid.dataSource.settings.sorting.expressions=n,this.grid.dataSource.settings.sorting.defaultFields=n)},_couldPreserveData:function(){return!this.options.persist||this.grid.dataSource.settings.sorting.expressions!==this.grid._getPersistenceData("sorting",this.grid.element[0].id)},_injectGrid:function(t){this.grid=t;var r,u;if(this.options.type===null&&(this.options.type=this.grid._inferOpType()),this.options.persist&&this.options.type==="remote"&&(u=this.element.closest(".ui-iggrid-root").data("igGrid"),u&&u.element.attr("id")!==this.grid.element[0].id&&u.options.initialDataBindDepth===-1&&(this.options.persist=!1)),this.grid.dataSource.settings.sorting.type=this.options.type?this.options.type:"remote",this.grid.dataSource.settings.sorting.caseSensitive=this.options.caseSensitive,this.grid.dataSource.settings.sorting.defaultFields=this.grid.dataSource.settings.sorting.expressions,this.grid.dataSource.settings.sorting.enabled=!0,this.grid.dataSource.settings.sorting.sortUrlKey=this.options.sortUrlKey,this.grid.dataSource.settings.sorting.sortUrlAscValueKey=this.options.sortUrlKeyAscValue,this.grid.dataSource.settings.sorting.sortUrlDescValueKey=this.options.sortUrlKeyDescValue,n.type(this.options.customSortFunction)==="function"?this.grid.dataSource.settings.sorting.customFunc=this.options.customSortFunction:typeof this.options.customSortFunction=="string"&&window[this.options.customSortFunction]&&typeof window[this.options.customSortFunction]=="function"&&(this.grid.dataSource.settings.sorting.customFunc=window[this.options.customSortFunction]),this._headerCellRenderedHandler!==null&&this._headerCellRenderedHandler!==undefined&&this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler),this._uiDirtyHandler&&this.grid.element.unbind("iggriduidirty",this._uiDirtyHandler),this._headerRenderedHandler!==null&&this._headerRenderedHandler!==undefined&&this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler),this._headerCellRenderedHandler=n.proxy(this._headerCellRendered,this),this._columnsCollectionModifiedHandler=n.proxy(this._columnsCollectionModified,this),this._uiDirtyHandler=n.proxy(this._onUIDirty,this),this._headerRenderedHandler=n.proxy(this._headerRendered,this),this._columnsRearangedHandler=n.proxy(this._columnsRearranged,this),this.grid.element.bind("iggridheadercellrendered",this._headerCellRenderedHandler),this._virtualHorizontalScrollHandler=n.proxy(this._virtualHorizontalScroll,this),this.grid.element.bind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler),this.grid.element.bind("iggriduidirty",this._uiDirtyHandler),this.grid.element.bind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler),this.grid.element.bind("iggridheaderrendered",this._headerRenderedHandler),this.grid.element.bind("iggridcolumnmovingcolumnmoved",this._columnsRearangedHandler),this.options.persist&&this.grid._hasUnboundColumns)for(cs=this.options.columnSettings,i=0;i<cs.length;i++)cs[i].columnKey&&cs[i].currentSortDirection&&(col=this.grid.columnByKey(cs[i].columnKey),col&&col.unbound===!0&&delete cs[i].currentSortDirection);this._initDefaultSettings();r=null;this.options.persist&&this.grid.element.data("igGridGroupBy")&&this.options.mode!=="single"&&this.grid.element.data("igGridGroupBy")._getSortingExpressions()===this.grid.dataSource.settings.sorting.expressions&&(r=this.grid.dataSource.settings.sorting.expressions.slice(0));this._clearUi();r&&(this.grid.dataSource.settings.sorting.expressions=r,this._saveSortingExpressions());this._currentActiveHeader=null;this._currentHeader=null;this._currentIndex=null;this._currentIdentifier=null;this.options.persist&&this._preserveSorting()}});n.extend(n.ui.igGridSorting,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igGridSummaries",{grid:null,css:{columnSummariesDropdown:"ui-iggrid-summaries-dialog",footerRowTextContainer:"ui-iggrid-summaries-footer-text-container",footerRowIconContainer:"ui-iggrid-summaries-footer-icon-container",footerDropdownButtonsContainer:"ui-iggrid-summaries-footer-dialog-buttons-container",footerButtonIcon:"ui-icon ui-icon-calculator ui-iggrid-icon-summaries",footerButtonIconHover:"ui-corner-all ui-iggrid-filterbuttonhover ui-state-hover",footerButtonIconActive:"ui-iggrid-filterbuttonactive ui-corner-all ui-state-active",featureChooserIconClass:"ui-icon ui-iggrid-icon-summaries",dropDownListContainer:"ui-iggrid-summaries-dropdown-listcontainer ui-widget",dropDownListItem:"ui-iggrid-summaries-dialog-listitem",headerButtonContainer:"ui-iggrid-summaries-headerbuttoncontainer ui-corner-all",headerButtonIcon:"ui-iggrid-summaries-header-icon ui-corner-all ui-icon ui-icon-summaries",headerButtonIconHover:"ui-iggrid-summaries-header-icon-hover ui-state-hover",footerRowCell:"ui-widget-footer ui-state-default",footerRowCellHover:"ui-state-hover",checkbox:"ui-state-default ui-corner-all ui-igcheckbox-normal",checkboxOff:"ui-icon ui-icon-check ui-igcheckbox-normal-off",checkboxOn:"ui-icon ui-icon-check ui-igcheckbox-normal-on",checkboxHovered:"ui-state-hover",footerRowIconContainerEmpty:"ui-iggrid-summaries-footer-icon-container-empty",footerRowTextContainerEmpty:"ui-iggrid-summaries-footer-text-container-empty",baseClassIE7:"ui-ie7"},defaultDecimalDisplay:2,defaultSummaryMethods:[{rowDisplayLabel:n.ig.GridSummaries.locale.defaultSummaryRowDisplayLabelCount,type:"count",allowed:"all",active:!0,order:0,decimalDisplay:this.defaultDecimalDisplay},{rowDisplayLabel:n.ig.GridSummaries.locale.defaultSummaryRowDisplayLabelMin,type:"min",allowed:["number","date","numeric"],active:!0,order:1,decimalDisplay:this.defaultDecimalDisplay},{rowDisplayLabel:n.ig.GridSummaries.locale.defaultSummaryRowDisplayLabelMax,type:"max",allowed:["number","date","numeric"],active:!0,order:2,decimalDisplay:this.defaultDecimalDisplay},{rowDisplayLabel:n.ig.GridSummaries.locale.defaultSummaryRowDisplayLabelSum,type:"sum",allowed:["number","numeric"],active:!0,order:3,decimalDisplay:this.defaultDecimalDisplay},{rowDisplayLabel:n.ig.GridSummaries.locale.defaultSummaryRowDisplayLabelAvg,type:"avg",allowed:["number","numeric"],active:!0,order:4,decimalDisplay:this.defaultDecimalDisplay},{rowDisplayLabel:n.ig.GridSummaries.locale.defaultSummaryRowDisplayLabelCustom,type:"custom",allowed:"all",active:!0,summaryCalculator:null,order:5,decimalDisplay:this.defaultDecimalDisplay}],renderInFeatureChooser:!0,options:{type:null,dialogButtonOKText:n.ig.GridSummaries.locale.dialogButtonOKText,dialogButtonCancelText:n.ig.GridSummaries.locale.dialogButtonCancelText,calculateRenderMode:"okcancelbuttons",featureChooserText:n.ig.GridSummaries.locale.featureChooserText,featureChooserTextHide:n.ig.GridSummaries.locale.featureChooserTextHide,compactRenderingMode:!0,defaultDecimalDisplay:2,showSummariesButton:!0,summariesResponseKey:"summaries",summaryExprUrlKey:"summaries",callee:null,dropDownHeight:"",dropDownWidth:"",showDropDownButton:!0,summaryExecution:"afterfilteringbeforepaging",dropDownDialogAnimationDuration:400,emptyCellText:n.ig.GridSummaries.locale.emptyCellText,summariesHeaderButtonTooltip:n.ig.GridSummaries.locale.summariesHeaderButtonTooltip,resultTemplate:"{0} = {1}",isGridFormatter:!0,columnSettings:[{allowSummaries:!0,columnKey:null,columnIndex:-1,summaryOperands:[{rowDisplayLabel:"",type:"custom",active:!0,summaryCalculator:null,order:5,decimalDisplay:2,isGridFormatter:!1}]}]},events:{dropDownOpening:"dropDownOpening",dropDownOpened:"dropDownOpened",dropDownClosing:"dropDownClosing",dropDownClosed:"dropDownClosed",summariesCalculating:"summariesCalculating",summariesCalculated:"summariesCalculated",summariesMethodSelectionChanged:"summariesMethodSelectionChanged",summariesToggling:"summariesToggling",summariesToggled:"summariesToggled",dropDownOKClicked:"dropDownOKClicked",dropDownCancelClicked:"dropDownCancelClicked"},_createWidget:function(){this.options.columnSettings=[];this._summariesRows=[];this._data={};this._currentOpenedColumnKey=null;this._isRenderedSummariesRows=!1;this._footerInitialized=!1;this._currentRowShownIcons=null;this._customInitMethods=[];this._fcData={};this._isInitFC=!1;this._isSummariesRowsHidden=!1;this._disallowedSummaries=[];n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){var n=this.options.compactRenderingMode;n==="true"?n=!0:n==="false"&&(n=!1);this.options.compactRenderingMode=n},_initColumnSettings:function(){var r=[],t,i,f,u,o=this.options.columnSettings,n,s=o.length,e=this.grid.options.columns?this.grid.options.columns.length:0;for(this.newColumnSettings=[],this._disallowedSummaries=[],t=0;t<e;t++)r.push({columnIndex:t,columnKey:this.grid.options.columns[t].key,dataType:this.grid.options.columns[t].dataType});if(s>0){for(t=0;t<s;t++)if((n=o[t],n.summaryOperands!==null&&n.summaryOperands!==undefined)&&(n.columnKey!==null&&n.columnKey!==undefined||n.columnIndex!==null&&n.columnIndex!==undefined))for(i=0;i<e;i++)for(u=0;u<n.summaryOperands.length;u++)if((n.summaryOperands[u].active===null||n.summaryOperands[u].active===undefined)&&(n.summaryOperands[u].active=!0),n.summaryOperands[u].type.startsWith("custom")===!0&&n.summaryOperands[u].type!=="custom"){for(f=0;f<this._customInitMethods.length;f++)if(n.summaryOperands[u].summaryCalculator===this._customInitMethods[f].summaryCalculator)break;this._customInitMethods.length===f&&this._customInitMethods.push({summaryCalculator:n.summaryOperands[u].summaryCalculator,type:n.summaryOperands[u].type,index:n.summaryOperands[u].type.replace("custom","")})}for(t=0;t<s;t++)if(n=o[t],n.columnKey!==null&&n.columnKey!==undefined||n.columnIndex!==null&&n.columnIndex!==undefined)for(i=0;i<e;i++)if(r[i].columnIndex===n.columnIndex&&n.columnIndex!==undefined&&n.columnIndex!==null||r[i].columnKey===n.columnKey&&n.columnKey!==undefined&&n.columnKey!==null){n.dataType=r[i].dataType;n.columnIndex=r[i].columnIndex;n.columnKey=r[i].columnKey;n.summaryOperands=this._initAllowedSummaryMethods(n);n.allowSummaries!==!1?this.newColumnSettings.push(n):this._disallowedSummaries[r[i].columnKey]=!0;break}for(t=0;t<e;t++){for(i=0;i<this.newColumnSettings.length;i++)if(this.newColumnSettings[i].columnKey===r[t].columnKey)break;i===this.newColumnSettings.length&&this._disallowedSummaries[r[t].columnKey]!==!0&&this.newColumnSettings.push({dataType:r[t].dataType,columnIndex:t,columnKey:r[t].columnKey,summaryOperands:this._initAllowedSummaryMethods(r[t],!1)})}}else for(t=0;t<e;t++)this.newColumnSettings.push({dataType:r[t].dataType,columnIndex:t,columnKey:r[t].columnKey,summaryOperands:this._initAllowedSummaryMethods(r[t])});this.columnSettings=this.newColumnSettings},_initAllowedSummaryMethods:function(n,t){var i,u,e,s,f,o,l=this.defaultSummaryMethods.length,a,r=[],h=[],v,y,c,p;if(n!==null&&n!==undefined){if(a=n.dataType,n!==null&&n!==undefined&&n.summaryOperands!==undefined&&n.summaryOperands!==null)for(i=0;i<n.summaryOperands.length;i++){if(n.summaryOperands[i].type===undefined||n.summaryOperands[i].type===null)return;if(v=n.summaryOperands[i].type.toLowerCase(),this._isAllowedMethodName(v)===!0){if(t===!0&&(n.summaryOperands[i].active=!1),n.summaryOperands[i].type==="custom"){if(n.summaryOperands[i].summaryCalculator===null||n.summaryOperands[i].summaryCalculator===undefined)continue;for(o=1,e=0;e<this._customInitMethods.length;e++){if(n.summaryOperands[i].summaryCalculator===this._customInitMethods[e].summaryCalculator){n.summaryOperands[i].type=this._customInitMethods[e].type;break}this._customInitMethods[e].index>o&&(o=this._customInitMethods[e].index)}this._customInitMethods.length===e&&(o++,n.summaryOperands[i].type="custom"+o,this._customInitMethods.push({summaryCalculator:n.summaryOperands[i].summaryCalculator,type:"custom"+o,index:o}))}r.push(n.summaryOperands[i])}}else for(i=0;i<l;i++)(f=this.defaultSummaryMethods[i],f.type.startsWith("custom"))||(c=f.active,t===!0&&(c=!1),r.push({rowDisplayLabel:f.rowDisplayLabel,type:f.type,allowed:f.allowed,active:c,order:f.order,decimalDisplay:f.decimalDisplay,isGridFormatter:f.isGridFormatter}));for(y=r.length,i=0;i<y;i++)for(u=0;u<l;u++)if(p=this.defaultSummaryMethods[u].type.toUpperCase(),p===r[i].type.toUpperCase()||r[i].type.startsWith("custom")){if(r[i].type.toLowerCase().startsWith("custom")?r[i].order<this.defaultSummaryMethods[u].order&&(r[i].order=this.defaultSummaryMethods[u].order):r[i].order!==this.defaultSummaryMethods[u].order&&(r[i].order=this.defaultSummaryMethods[u].order),(r[i].rowDisplayLabel===null||r[i].rowDisplayLabel===undefined)&&(r[i].rowDisplayLabel=this.defaultSummaryMethods[u].rowDisplayLabel),this.defaultSummaryMethods[u].allowed==="all")h.push(r[i]);else for(s=0;s<this.defaultSummaryMethods[u].allowed.length;s++)if(this.defaultSummaryMethods[u].allowed[s]===a){h.push(r[i]);break}break}return h}},_setOption:function(t,i){var u,r=this.options,f,e,s,c,h,o,l=this.grid.element[0].id;switch(t){case"dialogButtonOKText":if(r.dialogButtonOKText!==i)for(f=this.grid.options.columns,e=f.length,u=0;u<e;u++)n("#"+this._id("summaries","dialog_button_ok",f[u].key)).igButton("option","labelText",i);break;case"dialogButtonCancelText":if(r.dialogButtonCancelText!==i)for(f=this.grid.options.columns,e=f.length,u=0;u<e;u++)n("#"+this._id("summaries","dialog_button_cancel",f[u].key)).igButton("option","labelText",i);break;case"calculateRenderMode":if(r.calculateRenderMode!==i)for(r.calculateRenderMode=i,f=this.grid.options.columns,e=f.length,u=0;u<e;u++)this._renderDropDown(f[u].key);break;case"compactRenderingMode":r.compactRenderingMode!==i&&(r.compactRenderingMode=i,this._clearAllRows(),this.calculateSummaries());break;case"showSummariesButton":if(r.showSummariesButton!==i)for(r.showSummariesButton=i,s=this.columnSettings,c=s.length,u=0;u<c;u++)o=s[u].columnKey,i===!0?(h=n("#"+l+"_"+o),this._fcData!==null&&this._fcData!==undefined&&h.length>0&&this._fcData[o]!==!0&&this._renderHeaderCellButton(h,o)):n("#"+this._id("summaries","header_column_icon",o)).remove();break;case"disabled":r.disabled!==i&&(r.disabled=i,i===!0?this._clearAllRows():this.calculateSummaries());break;case"type":r.type!==i&&(r.type=i,this._setDataSourceColumnSettingsOptions());break;case"summaryExprUrlKey":r.summaryExprUrlKey!==i&&(r.summaryExprUrlKey=i,this._setDataSourceColumnSettingsOptions());break;case"dropDownHeight":if(r.dropDownHeight!==i)for(r.dropDownHeight=i,f=this.grid.options.columns,e=f.length,u=0;u<e;u++)n("#"+this._id("summaries","methods_dialog",f[u].key)).css("height",i);break;case"dropDownWidth":if(r.dropDownWidth!==i)for(r.dropDownWidth=i,f=this.grid.options.columns,e=f.length,u=0;u<e;u++)n("#"+this._id("summaries","methods_dialog",f[u].key)).css("width",i);break;case"showDropDownButton":r.showDropDownButton!==i&&(r.showDropDownButton=i,i===!0?this._renderFooterIcons():this._clearFooterIcons());break;case"emptyCellText":r.emptyCellText!==i&&(r.emptyCellText=i,this._clearAllRows(),this.calculateSummaries());break;case"resultTemplate":r.resultTemplate!==i&&(r.resultTemplate=i,this._clearAllRows(),this.calculateSummaries());break;case"isGridFormatter":r.isGridFormatter!==i&&(r.isGridFormatter=i,this._clearAllRows(),this.calculateSummaries());break;case"defaultDecimalDisplay":r.defaultDecimalDisplay!==i&&(r.defaultDecimalDisplay=i,this._clearAllRows(),this.calculateSummaries());break;case"columnSettings":if(r.columnSettings!==i)for(r.columnSettings=i,this.columnSettings=[],this.newColumnSettings=[],this._data={},this._clearAllRows(),this._initColumnSettings(),f=this.grid.options.columns,e=f.length,this.grid.dataSource.dataBind(),u=0;u<e;u++)this._renderDropDown(f[u].key)}n.Widget.prototype._setOption.apply(this,arguments)},_removeHeaderColumnIcons:function(){for(var i=this.columnSettings,r=i.length,t=0;t<r;t++)n("#"+this._id("summaries","header_column_icon",i[t].columnKey)).remove()},destroy:function(){var t,i,u,r;for(this._detachEvents(),this._clearAllRows(),this.newColumnSettings=null,this.options.columnSettings=null,this.options=null,this._summariesRows.length=0,this._summariesRows=null,this._activeDialog&&(this._activeDialog.remove(),this._activeDialog=null),this._data=null,this._currentOpenedColumnKey=null,this._isRenderedSummariesRows=null,this._footerInitialized=null,this._currentRowShownIcons=null,this._customInitMethods=null,this._fcData=null,this._isInitFC=null,this._isSummariesRowsHidden=null,this._disallowedSummaries=null,this._activeDialog=null,this.defaultSummaryMethods=null,i=this.grid.options.columns,u=i.length,t=0;t<u;t++)n("#"+this._id("summaries","methods_dialog",i[t].key)).remove();return r=this.grid.element.data("igGridFeatureChooser"),r&&this.renderInFeatureChooser&&r._removeFeature("Summaries"),n.Widget.prototype.destroy.call(this),this},_detachEvents:function(){this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler);this.grid.element.unbind("iggridfooterrendered",this._footerRenderedHandler);this.grid.element.unbind("iggridheadercellrendered",this._headerCellRenderedHandler);this.grid.element.unbind("iggridheaderextracellsmodified",this._headerFooterInitHandler);this.grid.element.unbind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler);this.grid.element.unbind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler);this.grid.element.unbind("iggridupdatingeditrowended",this._rowUpdatedHandler);this.grid.element.unbind("iggridupdatinginternalrowdeleted",this._rowUpdatedHandler);this._headerRenderedHandler=null;this._footerRenderedHandler=null;this._gridRenderedHandler=null;this._headerCellRenderedHandler=null;this._columnsCollectionModifiedHandler=null;this._virtualHorizontalScrollHandler=null},_headerCellRendered:function(n,t){t.owner.element.attr("id")===this.grid.element.attr("id")&&this._isInitFC!==!0&&this._initFC()},_initFC:function(){var t,i,f=this.options,u=this.columnSettings,e=u.length,r;if(this._isInitFC=!0,i=this.grid.element.data("igGridFeatureChooser"),i!==null&&i!==undefined)for(t=0;t<e;t++)u[t].allowSummaries!==!1&&(r=u[t].columnKey,i._shouldRenderInFeatureChooser(r)===!0&&(i._renderInFeatureChooser(r,{name:"Summaries",text:f.featureChooserText,textHide:f.featureChooserTextHide,iconClass:this.css.featureChooserIconClass,iconClassOff:this.css.featureChooserIconClass,isSelected:!0,method:n.proxy(this._togglefromfc,this),updateOnClickAll:!0,order:1,groupName:"toggle",groupOrder:1,type:"toggle",state:"hide"}),this._fcData[r]=!0))},_footerRendered:function(n,t){if(t.owner.element.attr("id")===this.grid.element.attr("id"))for(var r=this.columnSettings,f=r.length,u,i=0;i<f;i++)r[i].allowSummaries!==!1&&(u=r[i].columnKey,this._renderDropDown(u))},_headerRendered:function(n,t){if(t.owner.element.attr("id")===this.grid.element.attr("id"))for(var u=this.columnSettings,e=u.length,f,r,o=this.grid.element[0].id,i=0;i<e;i++)u[i].allowSummaries!==!1&&(r=u[i].columnKey,f=this.grid.headersTable().find("#"+o+"_"+r),f.length>0&&this._fcData[r]!==!0&&this.options.showSummariesButton!==!1&&this._renderHeaderCellButton(f,r))},_columnMap:function(){var u=this.options,t=this.newColumnSettings,n,f=t.length,i,r=[];if(u.showSummariesButton===!1)return!1;for(n=0;n<f;n++)i={columnKey:t[n].columnKey,enabled:!0},t[n].allowSummaries===!1&&(i.enabled=!1),r.push(i);return r},_dataRendered:function(){this.options.disabled!==!0&&this._isSummariesRowsHidden===!1&&this.calculateSummaries()},_rowUpdated:function(){this.grid.options.autoCommit&&this._isRenderedSummariesRows&&this.calculateSummaries()},isSummariesRowsHidden:function(){return this._isSummariesRowsHidden},calculateSummaries:function(){this._trigger(this.events.rowsInitialize,null,{});this._calculateInternalSummaries();this.options.showDropDownButton===!0&&this._renderFooterIcons();this._adjustHeights()},_adjustHeights:function(){var t=this.grid,u=t.options.height,r,f,i;u!==null&&u!==undefined&&(this._isVirtualization()===!0?(r=parseInt(this.grid.options.height,10)-parseInt(n("#"+this._id("footer","container")).height(),10),n("#"+this.grid.element[0].id).height(r),n("#"+this.grid.element[0].id+"_displayContainer").height(r),n("#"+this.grid.element[0].id+"_scrollContainer").height(r),t._initializeHeights(),this.grid.options.virtualizationMode==="fixed"&&(i=t._scrollContainer().scrollTop(),t._buildVirtualDom(),i>0&&(n.ig.util.isFF?(t._scrollContainer().scrollTop(0),setTimeout(function(){t._scrollContainer().scrollTop(i)},0)):(t._scrollContainer().scrollTop(i-2),t._scrollContainer().scrollTop(i))))):this.grid.hasFixedColumns()?(this._syncFixedUnfixedRowHeights(),this.grid._initializeHeights()):(this.grid._initializeHeights(),f=!(t.options.autoAdjustHeight&&t.element.height()<=n("#"+t.element[0].id+"_scroll").height()||!t.options.autoAdjustHeight&&t.options.avgRowHeight*t.element[0].rows.length<parseInt(t.options.height,10)),f!==t._hasVerticalScrollbar&&this.grid._adjustLastColumnWidth(!1)))},_removeFooterRows:function(){for(var i=this._summariesRows,r=this.grid.hasFixedColumns(),u=i.length,t=0;t<u;t++)n("#"+this._id("summaries","footer_row",i[t].type)).remove(),r&&n("#"+this._id("summaries","footer_row",i[t].type,"fixed")).remove();r&&this._syncFixedUnfixedRowHeights();this._isRenderedSummariesRows=!1;this._summariesRows=[]},_calculateSelectedSummaries:function(t){var i,f,s,w=this.grid.hasFixedColumns(),rt=[],ut,k,tt,d,ft=!1,it,b,h,e=null,v,r,o=this.options.compactRenderingMode,c,st=this.columnSettings.length,et=!1,g=!1,l,a=[],y=0,u=[],nt=!1,ot,p="";if(t!==undefined&&t!==null){for(r=0;r<st;r++)if(this.columnSettings[r].columnKey===t&&this._isVisibleColumn(t)){e=this.columnSettings[r];c=r;break}if(e!==null&&e!==undefined){for(s=e.summaryOperands,tt=s.length,i=0;i<tt;i++)k=n("#"+this._id("summaries_footer_checkbox",s[i].type.toLowerCase(),t)),v=k.attr("data-chk").toLowerCase()==="on",v!==s[i].active&&(et=!0,this.newColumnSettings[c].summaryOperands[i].active=v,v===!0?(ft=!0,u.push(this.newColumnSettings[c].summaryOperands[i])):a.push(s[i]));if(this.columnSettings[c].summaryOperands=this.newColumnSettings[c].summaryOperands,this.isToCalculateInRemoteMode=!1,this.options.compactRenderingMode==="auto"){if(this._summariesRows.length===1&&this._analyzeAutoCompactRenderingMode()===!1){n("#"+this._summariesRows[0].id).remove();w&&n("#"+this._summariesRows[0].id+"_fixed").remove();this._summariesRows=[];this.calculateSummaries();return}if(this._summariesRows.length>1&&this._analyzeAutoCompactRenderingMode()===!0){for(i=0;i<this._summariesRows.length;i++)n("#"+this._summariesRows[i].id).remove(),w&&n("#"+this._summariesRows[i].id+"_fixed").remove();this._summariesRows=[];this.calculateSummaries();return}}if(ft===!0){if((o===!1||o==="auto"&&this._analyzeAutoCompactRenderingMode()===!1)&&this._summariesRows.length===1)for(p=this._summariesRows[0].type.toLowerCase(),nt=!0,r=0;r<this.columnSettings.length;r++)if(this._isVisibleColumn(this.columnSettings[r].columnKey)){for(f=0;f<this.columnSettings[r].summaryOperands.length;f++)if(this.columnSettings[r].summaryOperands[f].type.toLowerCase()===p&&this.columnSettings[r].summaryOperands[f].active!==!1){nt=!1;break}if(nt===!1)break}this.options.type==="remote"?this.options.calculateRenderMode==="onselect"?(this.isToCalculateInRemoteMode=!0,ot={type:u[0].type,result:"calculating",rowDisplayLabel:u[0].rowDisplayLabel,order:u[0].order,decimalDisplay:u[0].decimalDisplay,dataType:this.newColumnSettings[c].dataType},(this._data[t]===null||this._data[t]===undefined)&&(this._data[t]=[]),this._data[t].push(ot),this._renderFooterColumnInfo(t,this._data[t])):(this._setDataSourceColumnSettingsOptions(),this.grid.dataSource.dataBind()):(it=this._dataSummaries(),this._trigger(this.events.summariesCalculating,null,{owner:this})!==!1&&(rt=this.calculateSummaryColumn(t,u,it,this.newColumnSettings[c].dataType),(o===!1||o==="auto"&&this._analyzeAutoCompactRenderingMode()===!1)&&this._renderFooterColumnInfo(t,rt),this._trigger(this.events.summariesCalculated,null,{data:it,owner:this})))}if(y=a.length,o===!0||o==="auto"&&this._analyzeAutoCompactRenderingMode()===!0){if(e=this.newColumnSettings,ut=e.length,h=0,b=0,o==="auto"){for(a=[],i=0;i<tt;i++)k=n("#"+this._id("summaries_footer_checkbox",s[i].type.toLowerCase(),t)),v=k.attr("data-chk").toLowerCase()==="on",v===!1&&a.push(s[i]);y=a.length}for(i=0;i<y;i++)this._removeDataResult(t,a[i].type.toLowerCase());if(y>u.length){for(i=0;i<ut;i++)if(this._isVisibleColumn(e[i].columnKey)){for(b=0,r=0;r<e[i].summaryOperands.length;r++)e[i].summaryOperands[r].active===!0&&b++;b>h&&(h=b)}if(d=this._summariesRows.length,h>d)return;for(i=0;i<h;i++)n("#"+this._id("summaries","footer_row_text_container",this._summariesRows[i].type.toLowerCase(),t)).html(this.options.emptyCellText);for(i=h;i<d;i++)n("#"+this._summariesRows[i].id).remove(),w&&n("#"+this._summariesRows[i].id+"_fixed").remove();for(i=h;i<d;i++)this._summariesRows.pop()}else u.length>y&&this._initCompactModeSummariesRows();this._renderFooterColumnInfo(t,this._data[t]);this._summariesRows.length===0&&(this._insertSummariesRows(this.defaultSummaryMethods[0].type.toLowerCase(),this.defaultSummaryMethods[0].order),this._renderFooterIcons());this._adjustHeights()}if(et&&(o===!1||o==="auto"&&this._analyzeAutoCompactRenderingMode()===!1)){for(i=0;i<y;i++)if(l=a[i].type.toLowerCase(),n("#"+this._id("summaries","footer_row_text_container",l,t)).html(this.options.emptyCellText),this._removeDataResult(t,l),!(this._summariesRows.length<=1)){for(g=!0,r=0;r<this.columnSettings.length;r++)if(this._isVisibleColumn(this.columnSettings[r].columnKey)){for(f=0;f<this.columnSettings[r].summaryOperands.length;f++)if(this.columnSettings[r].summaryOperands[f].type.toLowerCase()===l&&this.columnSettings[r].summaryOperands[f].active!==!1){g=!1;break}if(g===!1)break}g===!0&&this._summariesRows.length>1&&(this._removeRowsDataByType(l),n("#"+this._id("summaries","footer_row",l)).remove(),w&&n("#"+this._id("summaries","footer_row",l,"fixed")).remove())}if(this._summariesRows.length>=1&&nt===!0){for(i=0;i<u.length;i++)if(u[i].type.toLowerCase()===p)break;i===u.length&&(this._removeRowsDataByType(p),n("#"+this._id("summaries","footer_row",p)).remove(),w&&n("#"+this._id("summaries","footer_row",p,"fixed")).remove())}this._summariesRows.length>0&&n("#"+this._id("summaries","footer_row_button_dd",this._summariesRows[0].type,t)).length===0&&this._renderFooterIcons();this._adjustHeights()}}}},_analyzeAutoCompactRenderingMode:function(){for(var n,i,r,u,f,e=this.columnSettings.length,t=0;t<e;t++)for(r=this.columnSettings[t],i=r.summaryOperands,u=i.length,f=0,n=0;n<u;n++)if(i[n].active===!0&&++f>1)return!1;return!0},_removeRowsDataByType:function(t){if(t!==undefined&&t!==null){var i=this.grid.hasFixedColumns();this._summariesRows=n.grep(this._summariesRows,function(r){return r.type===t&&(n(r).remove(),i&&n("#"+r.id+"_fixed").remove()),r.type!==t})}},_syncFixedUnfixedRowHeights:function(){var i=this.grid.footersTable().find("tfoot"),r=this.grid.fixedFootersTable().find("tfoot"),u=i.find("tr[data-role]"),f=r.find("tr[data-role]"),t;n.each(u,function(i,r){var u,e,o,s=n(r);if(t=f.eq(i),t.length===0)return!0;e=t.height();o=s.height();u=e>o?e:o;s.height(u);t.height(u)})},_clearFooterIcons:function(){var t,i=this._currentRowShownIcons,r,u;if(i!==null&&i!==undefined)for(r=this.grid.options.columns,u=r.length,t=0;t<u;t++)n("#"+this._id("summaries","footer_row_button_dd",i.type,r[t].key)).remove()},clearAllFooterIcons:function(){for(var i,r=this._summariesRows,f=r.length,u=this.grid.options.columns,e=u.length,t=0;t<f;t++)for(i=0;i<e;i++)n("#"+this._id("summaries","footer_row_button_dd",r[t].type,u[i].key)).remove()},_clearAllRows:function(){for(var r=this._summariesRows.length,u=this.grid.hasFixedColumns(),i,t=0;t<r;t++)i=n("#"+this._summariesRows[t].id),i.remove(),u&&n("#"+this._summariesRows[t].id+"_fixed").remove();this._summariesRows.length=0},_removeUnusedFooterRows:function(t){var i,r,e=this._summariesRows,u=this._summariesRows.length,o=this.grid.hasFixedColumns(),f=t.length;if(u===0){for(i=0;i<f;i++)n("#"+t.id).remove();return}for(i=0;i<f;i++){for(r=0;r<u;r++)e[r].id===t[i].id;r===u&&(n("#"+t[i].id).remove(),o&&n("#"+t[i].id+"_fixed").remove())}},_renderFooterIcons:function(n,t){var r,u,f=this._summariesRows,i,o=!0,s=this.grid.options.columns,h=s.length,e;if((n===null||n===undefined)&&(n=0),(t===null||t===undefined)&&(t=h),f.length!==0){for(this._clearFooterIcons(),e=f[0].type,this._currentRowShownIcons=f[0],r=n;r<t;r++)(u=s[r].key,this._disallowedSummaries[u]!==!0)&&(i=this._getColumnSettingByKey(u),i!==null&&i!==undefined&&i.length!==0&&i.allowSummaries!==!1)&&(o=!1,this._renderFooterIconMarkup(e,u));o===!0&&this._removeRowsDataByType(e)}},_renderFooterIconMarkup:function(t,i){var r=this,u;u=n("<span><\/span>").appendTo(n("#"+this._id("summaries","footer_row_icon_container",t,i))).addClass(r.css.footerButtonIcon);u.wrap('<a id="'+this._id("summaries","footer_row_button_dd",t,i)+'" href="#" title=""><\/a>');u.data("columnKey",i);u.parent().bind({mousedown:n.proxy(r._onMouseDownFooterIcon,r),click:n.proxy(r._onClickFooterIcon,r),mouseover:n.proxy(r._onMouseOverFooterIcon,r),mouseout:n.proxy(r._onMouseOutFooterIcon,r),focus:n.proxy(r._onMouseOverFooterIcon,r),blur:n.proxy(r._onMouseOutFooterIcon,r),keydown:function(t){(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(t.stopPropagation(),t.preventDefault(),r.toggleDropDown(t))}})},_onMouseOverFooterIcon:function(t){var i=n(t.target);i.closest("div").hasClass(this.css.footerButtonIconActive)===!1&&i.closest("div").addClass(this.css.footerButtonIconHover)},_onMouseOutFooterIcon:function(t){var i=n(t.target);i.closest("div").hasClass(this.css.footerButtonIconActive)===!1&&i.closest("div").removeClass(this.css.footerButtonIconHover)},_onClickFooterIcon:function(n){n.preventDefault()},_onMouseDownFooterIcon:function(n){this.toggleDropDown(n,!0)},_isFirstRowEmpty:function(){var n,t,i=this._summariesRows,r=null,u,f=this.grid.options.columns,e=f.length;if(i.length===0)return!1;for(u=i[0],n=0;n<e;n++)if(t=f[n].key,r=this._getDataByKeyMethodName(t,u.type),r!==null)return!1;return!0},toggleDropDown:function(t,i){var u=n(t.target),e,r,o,c,f,s,h;(e=u.data("columnKey"),(e===null||e===undefined)&&(u=u.find("span"),e=u.data("columnKey")),r=n("#"+this._id("summaries","methods_dialog",e)),o=n.ig.util.offset(u).top,c=n.ig.util.offset(u).left,f=this,s=r.is(":visible")===!0,r.length!==0&&r.data("isAnimating")!==!0)&&(o-=u.height()-2,u.is("span")===!0&&r.data("buttonId",u.parent().attr("id")),s||(h=n.ig.util.getRelativeOffset(r),r.css({top:o-r.height()-h.top,left:c-h.left})),f._activeDialog!==null&&f._activeDialog!==undefined&&r!==f._activeDialog&&e!==f._activeDialog.data("columnKey")&&f.showHideDialog(f._activeDialog,!0),f._currentOpenedColumnKey=s===!0?null:e,f.showHideDialog(r,i))},showHideDialog:function(t){if(t!==null&&t!==undefined){var i=this,f=this.events,r=n("#"+t.data("buttonId")),u=t.data("columnKey"),e=i.options.dropDownDialogAnimationDuration;if(t.data("isAnimating")!==!0||i._activeDialog!==t){if(t.is(":visible")===!0){if(this._trigger(f.dropDownClosing,null,{columnKey:u,owner:this})===!1)return;r!==null&&r!==undefined&&r.closest("div").removeClass(i.css.footerButtonIconActive)}else{if(this._trigger(f.dropDownOpening,null,{columnKey:u,owner:this})===!1)return;r!==null&&r!==undefined&&(r.closest("div").removeClass(i.css.footerButtonIconHover),r.closest("div").addClass(i.css.footerButtonIconActive),this._rollbackCheckboxState(u))}e<=0&&(e=1);t.data("isAnimating",!0);t.toggle("slide",{duration:e,direction:"down"},function(){t.data("isAnimating",!1);t.is(":visible")===!0?(t.focus(),i.grid._focusedElement=t,i._activeDialog=t,i._trigger(f.dropDownOpened,null,{columnKey:u,owner:this})):(i._trigger(f.dropDownClosed,null,{columnKey:u,owner:this}),i.grid._focusedElement=null,i.options.type==="remote"&&i.options.calculateRenderMode==="onselect"&&i.isToCalculateInRemoteMode===!0&&(i.isToCalculateInRemoteMode=!1,i._setDataSourceColumnSettingsOptions(),i.grid.dataSource.dataBind()),i._activeDialog!==null&&i._activeDialog!==undefined&&i._activeDialog.data("columnKey")===u&&(i._activeDialog=null))})}}},_closeDropDown:function(){var n=this._activeDialog;this.showHideDialog(n,!0)},_setDataSourceColumnSettingsOptions:function(){var t=this.options;this.grid.dataSource.settings.summaries.columnSettings=this.newColumnSettings;this.grid.dataSource.settings.summaries.type=t.type;this.grid.dataSource.settings.summaries.summaryExecution=t.summaryExecution;this.grid.dataSource.settings.summaries.summaryExprUrlKey=t.summaryExprUrlKey;this.grid.dataSource.settings.summaries.summariesResponseKey=t.summariesResponseKey;this.grid.dataSource.type&&this.grid.dataSource.type()==="remoteUrl"&&this.grid._dataOptions&&n.type(this.grid._dataOptions.dataSource)==="string"&&(this.grid.dataSource.settings.dataSource=this.grid._dataOptions.dataSource)},_getColumnSettingByKey:function(n){var t,i=this.columnSettings.length;if(n===null||n===undefined)return null;for(t=0;t<i;t++)if(this.columnSettings[t].columnKey===n)return this.columnSettings[t];return null},_renderHeaderCellButton:function(t,i){var r,o=this,f=o.css,s=this._id("summaries","header_column_icon",i),u,e;r=t.find(".ui-iggrid-indicatorcontainer");this.grid._enableHeaderCellFeature(t);r.length===0&&(r=n("<div><\/div>").appendTo(t),r.addClass("ui-iggrid-indicatorcontainer"));n("#"+s).remove();u=n("<a><\/a>").attr("href","#").attr("id",s).attr("title",this.options.summariesHeaderButtonTooltip);e=r.find(".ui-iggrid-summaries-headerbuttoncontainer");e.length===0&&(e=n("<div><\/div>").addClass(f.headerButtonContainer).appendTo(r));u.appendTo(e);n("<span><\/span>").addClass(f.headerButtonIcon).appendTo(u);n.ig.util.isIE7===!0&&u.parent().addClass(this.css.baseClassIE7);u.hover(function(){n(this).parent().addClass(f.headerButtonIconHover)},function(){n(this).parent().removeClass(f.headerButtonIconHover)});u.bind({click:function(n){n.preventDefault();n.stopPropagation();o._internalToggleSummariesRow(null,n)}})},_togglefromfc:function(n,t,i){this._internalToggleSummariesRow(i,n)},_internalToggleSummariesRow:function(n,t){((n===null||n===undefined)&&(n=!this._isRenderedSummariesRows),this._trigger(this.events.summariesToggling,t,{isToShow:n,owner:this})!==!1)&&(this.toggleSummariesRows(n,!0),this._trigger(this.events.summariesToggled,t,{isShown:n,owner:this}))},toggleSummariesRows:function(t,i){var f,e,s,r,u,o;if(t===!0){if(u=n("#"+this.grid.id()+"_horizontalScrollContainer"),u.length>0&&(o=u.scrollLeft(),u.scrollLeft(0)),this.calculateSummaries(),o&&setTimeout(function(){u.scrollLeft(o)},0),this.grid._scrollFooter(),this._isSummariesRowsHidden=!1,this._summariesRows.length===0)for(e=this.newColumnSettings,s=e.length,this._insertSummariesRows(this.defaultSummaryMethods[0].type,this.defaultSummaryMethods[0].order),r=0;r<s;r++)this._isVisibleColumn(e[r].columnKey)&&this._renderFooterIconMarkup(this.defaultSummaryMethods[0].type,e[r].columnKey)}else this._removeFooterRows(),this._isSummariesRowsHidden=!0;this._adjustHeights();(i===undefined||i===!1)&&(f=this.grid.element.data("igGridFeatureChooser"),f!==null&&f!==undefined&&f._toggleSelectedItems("Summaries",!t))},_renderDropDown:function(t){var f,v,u,e,y,p,w,s,nt,c,tt=this._id("summaries","methods_dialog",t),l,b=this._getColumnSettingByKey(t),o=this.css,a,r,i=this,it=this.options,k=!1,d,rt,ut,ft,et,ot,st,h,g;if(b!==null&&b!==undefined&&(r=b.summaryOperands,r!==null&&r!==undefined)){for(n("#"+tt).remove(),f=n("<div><\/div>").appendTo(this.grid._rootContainer()).attr("id",tt).css("position","absolute").css("width",this.options.dropDownWidth).css("height",this.options.dropDownHeight).addClass(this.css.columnSummariesDropdown).attr("tabindex",0).hide(),f.data("methods",r),v=n("<ul><\/ul>").addClass(o.dropDownListContainer),v.appendTo(f),l=r.length,u=0;u<l;u++){for(s=u,e=u;e<l;e++)(r[e].order===null||r[e].order===undefined)&&(r[e].order=0),r[s].order>r[e].order&&(s=e);s!==u&&(nt=r[s],r[s]=r[u],r[u]=nt)}for(g=function(r){i.toggleCheckstate(n(r.currentTarget));i._activeDialog&&(i._activeDialog.data("focussed",!0),i._activeDialog.focus());i._trigger(i.events.summariesMethodSelectionChanged,r,{columnKey:t,isSelected:n(r.currentTarget).attr("data-chk").toLowerCase()==="on",methodName:n(r.currentTarget).data("methodName"),owner:this});it.calculateRenderMode==="onselect"&&i._calculateSelectedSummaries(t);r.preventDefault();r.stopPropagation()},et=function(n){i._activeDialog&&(i._activeDialog.data("focussed",!0),i._activeDialog.focus());n.preventDefault();n.stopPropagation()},ot=function(t){n(t.currentTarget).addClass(o.checkboxHovered)},st=function(t){n(t.currentTarget).removeClass(o.checkboxHovered)},f.bind({blur:function(){f.data("focussed",!1);setTimeout(n.proxy(i._checkCloseDropDown,i),300)},focus:function(){f.data("focussed",!0)},keydown:function(r){(r.keyCode===n.ui.keyCode.ESCAPE||r.keyCode===n.ui.keyCode.SPACE||r.keyCode===n.ui.keyCode.ENTER)&&(r.stopPropagation(),r.preventDefault(),i.toggleDropDown(r,r.keyCode===n.ui.keyCode.ESCAPE),i._summariesRows.length>0&&n("#"+i._id("summaries","footer_row_button_dd",i._summariesRows[0].type,t)).focus())}}),rt=function(){i._activeDialog&&i._activeDialog.data("focussed",!0)},ut=function(){i._activeDialog&&i._activeDialog.data("focussed",!1);setTimeout(n.proxy(i._checkCloseDropDown,i),300)},ft=function(t){var i=n(this);(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(t.currentTarget=n("#"+i.data("checkboxId")),g(t),i.focus(),t.stopPropagation(),t.preventDefault())},u=0;u<l;u++)a=this._id("summaries_footer_checkbox",r[u].type.toLowerCase(),t),r[u].active===!0||r[u].active===1?(k="on",d=o.checkboxOn):(k="off",d=o.checkboxOff),c=n("<li><\/li>").data("checkboxId",a).addClass(o.dropDownListItem).appendTo(v).attr("tabindex",0),c.bind({focus:rt,blur:ut,keydown:ft}),n('<span id="'+a+'" class="'+o.checkbox+'"><\/span>').appendTo(c),n("<label><\/label>").html(r[u].rowDisplayLabel).appendTo(c),h=n("#"+a),n('<span class="'+d+'"><\/span>').appendTo(h),h.attr("data-chk",k).attr("data-role","checkbox"),h.data("methodName",r[u].type),h.bind({click:g,mouseover:ot,mouseout:st,mousedown:et});w=n("<div><\/div>").addClass(this.css.footerDropdownButtonsContainer).appendTo(f);it.calculateRenderMode==="okcancelbuttons"&&(y=n('<a href="http://localhost/"><\/a>'),y.attr("id",this._id("summaries","dialog_button_ok",t)).appendTo(w),y.igButton({link:{href:"#",title:""},labelText:this.options.dialogButtonOKText,keydown:function(r){(r.keyCode===n.ui.keyCode.ENTER||r.keyCode===n.ui.keyCode.SPACE)&&i._clickOKButton(t);r.keyCode!==n.ui.keyCode.TAB&&(r.stopPropagation(),r.preventDefault())},click:function(n){i._clickOKButton(t);n.preventDefault();n.stopPropagation()},mousedown:function(n){n.preventDefault();n.stopPropagation()},focus:function(){i._activeDialog&&i._activeDialog.data("focussed",!0)},blur:function(){i._activeDialog&&i._activeDialog.data("focussed",!1);setTimeout(n.proxy(i._checkCloseDropDown,i),300)}}),p=n("<a><\/a>"),p.attr("id",this._id("summaries","dialog_button_cancel",t)).appendTo(w),p.igButton({link:{href:"#",title:""},labelText:this.options.dialogButtonCancelText,click:function(n){i._clickCancelButton(t);n.preventDefault();n.stopPropagation()},mousedown:function(n){n.preventDefault();n.stopPropagation()},focus:function(){i._activeDialog&&i._activeDialog.data("focussed",!0)},blur:function(){i._activeDialog&&i._activeDialog.data("focussed",!1);setTimeout(n.proxy(i._checkCloseDropDown,i),300)}}));f.data("columnKey",t)}},_checkCloseDropDown:function(){this._activeDialog!==null&&this._activeDialog.data("focussed")===!1&&setTimeout(n.proxy(this._closeDropDown,this),10)},toggleCheckstate:function(n){var t;t=!0;t&&(n.attr("data-chk")==="on"?this.selectCheckBox(n,!1):this.selectCheckBox(n,!0))},selectCheckBox:function(n,t){var i=this.css,r=n.children("span");t===!0?(r.removeClass(i.checkboxOff).addClass(i.checkboxOn),n.attr("data-chk","on")):(r.removeClass(i.checkboxOn).addClass(i.checkboxOff),n.attr("data-chk","off"))},_clickOKButton:function(t){var i,r,u,e,c=this.columnSettings.length,f,s,h=[],o;if(t!==null&&t!==undefined){for(r=0;r<c;r++)if(this.columnSettings[r].columnKey===t){u=this.columnSettings[r];break}if(u!==null&&u!==undefined){for(f=u.summaryOperands,s=f.length,i=0;i<s;i++)e=n("#"+this._id("summaries_footer_checkbox",f[i].type.toLowerCase(),t)),o={type:f[i].type.toLowerCase(),active:!1},e.attr("data-chk")!==undefined&&e.attr("data-chk").toLowerCase()==="on"&&(o.active=!0),h.push(o);this._trigger(this.events.dropDownOKClicked,null,{columnKey:t,eventData:h,owner:this});this.showHideDialog(n("#"+this._id("summaries","methods_dialog",t)));this._calculateSelectedSummaries(t)}}},_clickCancelButton:function(t){this._trigger(this.events.dropDownCancelClicked,null,{columnKey:t,owner:this});this.showHideDialog(n("#"+this._id("summaries","methods_dialog",t)),!0)},_rollbackCheckboxState:function(t){var e,i,r,u,o,s,h=this.columnSettings.length,f;if(t!==undefined&&t!==null){for(r=0;r<h;r++)if(this.columnSettings[r].columnKey===t){e=this.columnSettings[r];break}if(e!==null&&e!==undefined)for(u=e.summaryOperands,s=u.length,i=0;i<s;i++)f=n("#"+this._id("summaries_footer_checkbox",u[i].type.toLowerCase(),t)),f.attr("data-chk")!==undefined&&(o=f.attr("data-chk").toLowerCase()==="on",u[i].active!==o&&(u[i].active===!0?this.selectCheckBox(f,!0):this.selectCheckBox(f,!1)))}},_initCompactModeSummariesRows:function(){for(var r,l,i=this.newColumnSettings,v=i.length,u=i[0],o,a,s,h,f=-1,c,e,t=0;t<v;t++)if(this._isVisibleColumn(i[t].columnKey)&&(e=0,i[t].summaryOperands!==null&&i[t].summaryOperands!==undefined)){for(r=0;r<i[t].summaryOperands.length;r++)i[t].summaryOperands[r].active===!0&&e++;e>f&&(f=e,u=i[t])}if(u!==undefined&&u!==null&&(o=u.summaryOperands,a=o.length,c=this._summariesRows.length,!(c>f))&&(s=f-c,s!==0))for(l=0,t=0;t<a;t++)if(h=o[t].type.toLowerCase(),n("#"+this._id("summaries","footer_row",h)).length===0&&(this._insertSummariesRows(h,null),++l===s))break},_calculateInternalSummaries:function(){var r=this.newColumnSettings,o=r.length,t,u=this.options,i,f,e=this.events;if(this._trigger(e.summariesCalculating,null,{owner:this})!==!1){for(i=this._dataSummaries(),u.callee!==null&&u.callee!==undefined&&n.type(u.callee)==="function"&&(i=u.callee(i)),(i===null||i===undefined)&&(i=[]),(u.compactRenderingMode===!0||u.compactRenderingMode==="auto"&&this._analyzeAutoCompactRenderingMode()===!0)&&this._initCompactModeSummariesRows(),t=0;t<o;t++)this._isVisibleColumn(r[t].columnKey)&&(f=this.calculateSummaryColumn(r[t].columnKey,r[t].summaryOperands,i,r[t].dataType),this._renderFooterColumnInfo(r[t].columnKey,f));this._isRenderedSummariesRows=!0;this._trigger(e.summariesCalculated,null,{data:i,owner:this})}},_isVisibleColumn:function(t){var r=this.grid._visibleColumns(),i=!1;return n.each(r,function(n,r){if(r.key===t)return i=!0,!1}),i},calculateSummaryColumn:function(t,i,r,u){var f,e,c,b=this.options,p,s=[],h=0,v=[],o,k,w,a,l,y;if(t===null||t===undefined)throw new Error(n.ig.GridSummaries.locale.calculateSummaryColumnKeyNotSpecified);if(i!==undefined&&i!==null){if(p=i.length,b.type==="local"){if(h=r.length,y=u==="date",y===!0)for(f=0;f<h;f++)r[f][t]!==null&&r[f][t]!==undefined&&(r[f][t].getTime?s.push(r[f][t].getTime()):s.push(r[f][t]));else for(f=0;f<h;f++)r[f][t]===undefined&&(r[f][t]=null),s.push(r[f][t]);for(f=0;f<p;f++)a=i[f].type.toLowerCase(),a.startsWith("custom")&&(a="custom"),(i[f].active===!0||i[f].active===1)&&(o=i[f].order,o===undefined&&(o=null),k=a==="count"?h:n.ig.calcSummaries(a,s,i[f].summaryCalculator,u),w={type:i[f].type,result:k,rowDisplayLabel:i[f].rowDisplayLabel,order:o,decimalDisplay:i[f].decimalDisplay,isGridFormatter:i[f].isGridFormatter,dataType:u},v.push(w),this._addDataResult(t,w))}else if(b.type==="remote"){if(r[t]!==undefined&&r[t]!==null)for(f=0;f<p;f++)if(c=r[t][i[f].type],i[f].active===!0||i[f].active===1){if(o=i[f].order,o===undefined&&(o=null),c===null||c===undefined)if(i[f].summaryCalculator!==undefined){if(l=this.grid.dataSource._data,h=l.length,y=u==="date",y===!0)for(e=0;e<h;e++)l[e][t]!==null&&l[e][t]!==undefined&&s.push(l[e][t].getTime());else for(e=0;e<h;e++)s.push(l[e][t]);c=n.ig.calcSummaries(i[f].type.toLowerCase(),s,i[f].summaryCalculator,u)}else c="";v.push({type:i[f].type,result:c,rowDisplayLabel:i[f].rowDisplayLabel,order:o,decimalDisplay:i[f].decimalDisplay,isGridFormatter:i[f].isGridFormatter,dataType:u})}this._data[t]=v}return v}},summaryCollection:function(){return this._data},summariesFor:function(n){return this._data[n]},_addDataResult:function(n,t){var r=this._data[n],i,u;if(r===null||r===undefined){this._data[n]=[];this._data[n].push(t);return}for(u=r.length,i=0;i<u;i++)if(r[i].type.toLowerCase()===t.type.toLowerCase()){r[i]=t;break}i===u&&this._data[n].push(t)},_removeDataResult:function(t,i){var r=this._data[t];r!==undefined&&r!==null&&(r=n.grep(r,function(n){return n.type.toLowerCase()!==i.toLowerCase()}),this._data[t]=r)},_getDataByKeyMethodName:function(n,t){var i,r=this._data[n],u;if(t=t.toLowerCase(),r===undefined||r===null)return null;for(u=r.length,i=0;i<u;i++)if(r[i].type.toLowerCase()===t)return r[i];return null},_renderFooterColumnInfo:function(n,t){if(t!==null&&t!==undefined){var i,r,o,s,u,c,l,h,a=this.options.compactRenderingMode,f=t.length,e,v;if(a===!0||this.options.compactRenderingMode==="auto"&&this._analyzeAutoCompactRenderingMode()===!0){if(f>1)for(i=0;i<f;i++)for(e=i,r=i+1;r<f;r++)t[r].order<t[e].order&&(v=t[r],t[r]=t[e],t[e]=v,e=r);for(i=0;i<f;i++)this._summariesRows[i]!==undefined&&this._summariesRows[i]!==null&&t[i]!==undefined&&t[i]!==null&&(s=t[i].result,u=t[i].decimalDisplay,(u===undefined||u===null)&&(u=this.defaultDecimalDisplay),u!==null&&u!==undefined&&this._isNumber(s)===!0&&(s=parseFloat(s).toFixed(u)),this._renderCell(this._summariesRows[i].type,n,t[i]))}else if(a===!1||this.options.compactRenderingMode==="auto"&&this._analyzeAutoCompactRenderingMode()===!1)for(i=0;i<f;i++)o=t[i].type.toLowerCase(),c=this._id("summaries","footer_row",o),l=this.grid.container().find("#"+c),l.length===0&&(h=t[i].order,h===undefined&&(h=null),this._addDataResult(n,t[0]),this._insertSummariesRows(o,h)),this._renderCell(o,n,t[i])}},_renderCell:function(t,i,r){var b=this.options.resultTemplate,a,c=this.grid.options.autoFormat,u=r.result,v,y,k=u,f,s=!1,h=r.type,d=r.rowDisplayLabel,p=r.isGridFormatter,e=r.dataType,w=this.options.defaultDecimalDisplay,o=r.decimalDisplay,l=this._isNumber(u);if(l&&e==="bool"&&(p=!1),l===!0&&(o===undefined||o===null?w!==null&&w!==undefined&&(o=w,s=!0):s=!0,u=parseFloat(u),s&&o>=0))if((c===!0||c==="dateandnumber")&&e||c&&c===e){for(y="0.",v=0;v<o;v++)y+="0";h==="count"?e="number":s=!1;u=o===0?k:n.ig.formatter(k,e,y)}else u=u.toFixed(o),h!=="count"&&(s=!1);f=u;p===!0||p===undefined&&this.options.isGridFormatter===!0?(a=this._getGridColumnFor(i),a!==null&&(e==="date"&&l&&(h==="min"||h==="max")&&(f=new Date(parseInt(f,10))),s&&e!=="date"||(u=this.grid._renderCell(f,a)),f=u)):f===null||f===undefined?f="":e==="date"&&l&&(h==="min"||h==="max")&&(f=new Date(parseInt(f,10)));b&&(u=b.replace("{0}",d).replace("{1}",f));this.grid.container().find("#"+this._id("summaries","footer_row_text_container",t,i)).html(u)},_getGridColumnFor:function(n){for(var i=this.grid.options.columns?this.grid.options.columns.length:0,t=0;t<i;t++)if(this.grid.options.columns[t].key===n)return this.grid.options.columns[t];return null},_isNumber:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},_columnsCollectionModified:function(n,t){t.owner.element.attr("id")===this.grid.element.attr("id")&&this._isSummariesRowsHidden!==!0&&(this._clearAllRows(),this.calculateSummaries())},_insertSummariesRows:function(t,i){t=t.toLowerCase();var w,e,f,b,o=this.grid.hasFixedColumns(),y=this.css,h=this.grid,l=h._visibleColumns(),k=l.length,r=this._tfoot,a,p,u=h._footer,d,s,g=this._id("summaries","footer_row",t),c=n("<tr><\/tr>").attr("id",g).attr("data-role","summaryrow"),v={id:g,type:t,order:i},nt=function(){n(this).addClass(y.footerRowCellHover)},tt=function(){n(this).removeClass(y.footerRowCellHover)};if(o===!0&&(d=this._id("summaries","footer_row",t,"fixed"),s=n("<tr><\/tr>").attr("id",d).attr("data-role","summaryrow"),p=this.grid.fixedFootersTable().find("tfoot")),r===null||r===undefined){if((u===undefined||u===null||u.length===0)&&(h._renderFooter(),u=h._footer),u===undefined||u===null||u.length===0)return;u.css("display","");r=this._isVirtualization()===!0?this.grid.footersTable().find("tfoot"):this._isFixedFooters()===!0?u.find("tfoot"):u;this._tfoot=r}if(r.attr("id")!==""&&r.attr("id")!==null&&r.attr("id")!==undefined&&(r=n("#"+r.attr("id"))),i===null)v.order=this._summariesRows.length,this._summariesRows.push(v),c.appendTo(r),o&&s.appendTo(p);else if(w=this._summariesRows.length,w===0)this._summariesRows.push(v),c.appendTo(r),o&&s.appendTo(p);else if(this.options.compactRenderingMode===!0||this.options.compactRenderingMode==="auto"&&this._analyzeAutoCompactRenderingMode()===!0)c.appendTo(r),o&&s.appendTo(p),this._summariesRows.push(v);else if(this.options.compactRenderingMode===!1||this.options.compactRenderingMode==="auto"&&this._analyzeAutoCompactRenderingMode()===!1){for(e=0;e<w;e++)if((b=this._summariesRows[e].order,b!==undefined&&b!==null)&&i<=b){c.insertBefore(n("#"+this._id("summaries","footer_row",this._summariesRows[e].type)));o&&s.insertBefore(n("#"+this._id("summaries","footer_row",this._summariesRows[e].type,"fixed")));this._summariesRows.splice(e,0,v);break}e===w&&(this._summariesRows.push(v),c.appendTo(r),o&&s.appendTo(p))}for(this._isVirtualization()&&this.grid.options.virtualizationMode==="fixed"&&(k=this.grid._virtualColumnCount),f=0;f<k;f++)a=n("<td><\/td>").addClass(y.footerRowCell).attr("data-key",l[f].key),l[f].fixed===!0?(a.appendTo(s),n("#"+d+" td.ui-state-default").hover(nt,tt)):(a.appendTo(c),n("#"+g+" td.ui-state-default").hover(nt,tt)),f===k-1&&h.options.height&&parseInt(h.options.height,10)>0?a.css("width",parseInt(l[f].width,10)+h._scrollbarWidth()):a.css("width",l[f].width),this._renderInnerCellMarkup(a,t,l[f].key);o&&this._syncFixedUnfixedRowHeights();o&&this.grid.hasFixedDataSkippedColumns()&&this.grid.element.data("igGridColumnFixing").options.fixingDirection==="left"?this.grid._footerInit(s,null,!0,y.footerRowCell):this.grid._footerInit(c,null,!0,y.footerRowCell)},_renderInnerCellMarkup:function(t,i,r){var u,f;u=n("<div><\/div>").attr("id",this._id("summaries","footer_row_text_container",i,r)).addClass(this.css.footerRowTextContainer).appendTo(t).html(this.options.emptyCellText);f=n("<div><\/div>").attr("id",this._id("summaries","footer_row_icon_container",i,r)).addClass(this.css.footerRowIconContainer).insertBefore(u);n.ig.util.isIE7===!0&&f.addClass(this.css.baseClassIE7);this.options.showDropDownButton===!1&&(f.addClass(this.css.footerRowIconContainerEmpty),u.addClass(this.css.footerRowTextContainerEmpty))},_virtualHorizontalScroll:function(t,i){if(this._isRenderedSummariesRows!==!1){var s=i.startColIndex,c=i.endColIndex,r,f,l,h,a,o=this._summariesRows,y=o.length,v,u,e=this.grid._visibleColumns(),p=this;for(c=s+this.grid._virtualColumnCount,y>0&&(h=o[0],n.each(h,function(t,i){n("#"+p._id("summaries","methods_dialog",n(i).attr("data-key"))).remove()})),r=0;r<y;r++)for(l=n("#"+o[r].id),h=l.children(),h.html(""),f=s;f<=c;f++)(a=l.find("td:nth-child("+(f-s+1)+")"),a.html(""),e[f]!==null&&e[f]!==undefined)&&this._renderInnerCellMarkup(a,o[r].type,e[f].key);for(r=s;r<c;r++)if(e[r]!==null&&e[r]!==undefined){if(u=e[r].key,v=this._getColumnSettingByKey(u),u===undefined||u===null)continue;if(this._renderFooterIconMarkup(o[0].type,u),this._renderDropDown(u),v===null||v===undefined)continue;this._renderFooterColumnInfo(u,this._data[u])}}},_isFixedFooters:function(){return this.grid.options.fixedFooters===!0&&this.grid.options.height!==null},_isVirtualization:function(){var n=this.grid.options;return n.virtualization===!0||n.rowVirtualization===!0&&n.height!==null||n.columnVirtualization===!0&&n.width!==null},_id:function(){var n,t=this.grid.element[0].id,i=arguments.length;if(i===0)return null;for(n=0;n<i;n++)t+="_"+arguments[n];return t},_isAllowedMethodName:function(n){for(var t,r=!1,u=this.defaultSummaryMethods.length,i=0;i<u;i++)if(t=this.defaultSummaryMethods[i].type,t===n||t===n.substr(0,t.length)){r=!0;break}return r},_footerInit:function(t,i){if(i.owner.element.attr("id")===this.grid.element.attr("id")){var r,u;for(r=this.grid.footersTable().find("[data-role=summaryrow]"),r.find("[data-skip=true]").remove(),u=0;u<r.length;u++)this.grid._footerInit(n(r[u]),null,!0,this.css.footerRowCell)}},_dataSummaries:function(){var n=this.grid.dataSource;return n.dataSummaries()},_injectGrid:function(t){if(this.grid=t,this.options.type===null&&(this.options.type=this.grid._inferOpType()),this._headerRenderedHandler!==null&&this._headerRenderedHandler!==undefined&&this.grid.element.unbind("iggridheaderrendered",this._headerRenderedHandler),this._headerRenderedHandler=n.proxy(this._headerRendered,this),this._footerRenderedHandler=n.proxy(this._footerRendered,this),this._headerCellRenderedHandler=n.proxy(this._headerCellRendered,this),this._headerFooterInitHandler=n.proxy(this._footerInit,this),this._columnsCollectionModifiedHandler=n.proxy(this._columnsCollectionModified,this),this._rowUpdatedHandler=n.proxy(this._rowUpdated,this),this.grid.element.bind("iggridheaderrendered",this._headerRenderedHandler),this.grid.element.bind("iggridfooterrendered",this._footerRenderedHandler),this.grid.element.bind("iggridheadercellrendered",this._headerCellRenderedHandler),this.grid.element.bind("iggridheaderextracellsmodified",this._headerFooterInitHandler),this.grid.element.bind("iggridupdatingeditrowended",this._rowUpdatedHandler),this.grid.element.bind("iggridupdatinginternalrowdeleted",this._rowUpdatedHandler),this.grid.element.bind("iggridcolumnscollectionmodified",this._columnsCollectionModifiedHandler),this._virtualHorizontalScrollHandler=n.proxy(this._virtualHorizontalScroll,this),this.grid.element.bind("iggridvirtualhorizontalscroll",this._virtualHorizontalScrollHandler),this._initColumnSettings(),this._setDataSourceColumnSettingsOptions(),this.grid.element.igGridFeatureChooser!==undefined)this.grid.element.igGridFeatureChooser();else throw new Error(n.ig.GridSummaries.locale.featureChooserNotReferenced);}});n.extend(n.ui.igGridSummaries,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){"use strict";n.widget("ui.igGridTooltips",{options:{visibility:"overflow",style:"tooltip",showDelay:500,hideDelay:300,columnSettings:[{columnKey:null,columnIndex:-1,allowTooltips:!0}],fadeTimespan:150,cursorLeftOffset:10,cursorTopOffset:15},css:{tooltip:"ui-iggrid-tooltip",tooltipContent:"ui-iggrid-tooltip-content"},events:{tooltipShowing:"tooltipShowing",tooltipShown:"tooltipShown",tooltipHiding:"tooltipHiding",tooltipHidden:"tooltipHidden"},_createWidget:function(){this.visible=!1;this._canFadeIn=!0;this._canFadeOut=!0;n.Widget.prototype._createWidget.apply(this,arguments)},destroy:function(){return this.grid.element.unbind(".tooltip"),this.tooltip&&(this.tooltip.data("users")===1?this.tooltip.remove():(this.tooltip.data("users",this.tooltip.data("users")-1),this.tooltip.children("[id$='_content']").unbind("mouseenter."+this.grid.id()).unbind("mouseleave."+this.grid.id()))),this.ruler&&(this.ruler.data("users")===1?this.ruler.remove():this.ruler.data("users",this.ruler.data("users")-1)),n.Widget.prototype.destroy.call(this),this},id:function(){return this.tooltip[0].id},_injectGrid:function(n,t){t!==!0&&(this.grid=n,this._createHandlers(),this._unregisterGridEvents(),this._registerGridEvents())},_createTooltip:function(){var t=this.grid._rootContainer().children("[id$='_tooltips']");t.length>0?(this.tooltip=t,this.tooltip.data("users",this.tooltip.data("users")+1)):(this.options.style==="tooltip"?(this.tooltip=n("<div><\/div>").attr("id",this.grid.id()+"_tooltips").attr("role","tooltip").addClass("ui-tooltip").addClass("ui-widget").addClass("ui-corner-all").addClass("ui-widget-content").addClass(this.css.tooltip).css({position:"absolute",display:"none","white-space":"normal","word-wrap":"break-word"}),n("<div><\/div>").attr("id",this.id()+"_content").addClass("ui-tooltip-content").addClass(this.css.tooltipContent).appendTo(this.tooltip)):this.options.style==="popover"&&(this.tooltip=n("<div><div>").attr("id",this.grid.id()+"_tooltips").igPopover({animationDuration:this.options.fadeTimespan})),this.tooltip.data("users",1));this.options.style==="tooltip"&&this.tooltip.children("[id$='_content']").bind("mouseenter."+this.grid.id(),n.proxy(this._tooltipMouseEnter,this)).bind("mouseleave."+this.grid.id(),n.proxy(this._tooltipMouseLeave,this));this.tooltip.appendTo(this.grid._rootContainer())},_createRuler:function(){var t=this.grid._rootContainer().children("[id$='_ruler']");t.length>0?(this.ruler=t,this.ruler.data("users",this.ruler.data("users")+1)):(this.ruler=n("<span><\/span>").attr("id",this.id()+"_ruler").css("display","none").css("white-space","normal").css("word-wrap","break-word").appendTo(this.grid._rootContainer()),this.ruler.data("users",1))},_displayOverflow:function(n){var t=this.ruler,i;return(t.text(n.text()),t.css({"font-family":n.css("font-family"),"font-size":n.css("font-size"),"font-size-adjust":n.css("font-size-adjust"),"font-stretch":n.css("font-stretch"),"font-style":n.css("font-style"),"font-variant":n.css("font-variant"),"font-weight":n.css("font-weight"),"padding-left":n.css("padding-left"),"padding-top":n.css("padding-top"),"padding-right":n.css("padding-right"),"padding-bottom":n.css("padding-bottom")}),t.width(n.width()),i=t.height(),i<=n.height())?!1:!0},_gridHeaderRendering:function(n,t){t.owner.id()===this.grid.id()&&(this._createTooltip(),this._createRuler())},_dataRendered:function(t,i){var r,u;(i===undefined||n(i.owner.element).attr("id")===this.grid.id())&&(r=this.grid.element.children("tbody"),this._registerMouseEvents(r),this.grid.hasFixedColumns()&&(u=this.grid.fixedTable().find("tbody"),this._registerMouseEvents(u)),this._$thead=this.grid.options.fixedHeaders===!0?this.grid.headersTable().find("thead"):this.grid.container().find("#"+this.grid.id()+" thead"))},_rowsRendering:function(n,t){var i;t.owner.id()===this.grid.id()&&(i=this.grid.element.find("tbody"),i.unbind("mouseleave.tooltip"),i.unbind("mousemove.tooltip"))},_rowsRendered:function(t,i){var r;(i===undefined||n(i.owner.element).attr("id")===this.grid.id())&&(r=this.grid.element.children("tbody"),this._registerMouseEvents(r))},_registerMouseEvents:function(n){n.bind("mouseleave.tooltip",this._gridMouseLeaveHandler);n.bind("mousemove.tooltip",this._gridMouseMoveHandler)},_gridMouseLeave:function(){clearTimeout(this.timeoutShowing);clearTimeout(this.timeoutHiding);this.tooltip.css("display")!=="none"&&this._hideTooltip(!0);this._currentlyHovered=null},_gridMouseMove:function(t){var i=n(t.target).closest("td,th"),r,u=!0,f,o=this.grid.hasFixedColumns(),e=this.grid._isFixedElement(i);if((i.closest("table").attr("id")===this.grid.id()||e)&&(!o||!e||i.closest("table").attr("id")===this.grid.id()+"_fixed")&&(this.mouseX=t.pageX,this.mouseY=t.pageY,i[0]!==this._currentlyHovered&&i.length!==0)){if(r=this._getElementValue(i),r===undefined&&(u=!0),i[0]===this._currentlyDisplayed&&this.visible===!0){u=!1;clearTimeout(this.timeoutHiding);return}this._currentlyHovered=i[0];this._previouslyHoveredData=this._currentlyHoveredData;this._currentlyHoveredData=r;clearTimeout(this.timeoutShowing);f=this._shouldShowForTarget(i)&&r!==undefined&&r!==""&&n(t.target).attr("unselectable")===undefined;this.visible===!0&&u===!0&&this._hideTooltip(!f);f===!0&&(this._currentlyDisplayed=this._currentlyHovered,this._showTooltip())}},_tooltipMouseEnter:function(){this.timeoutHiding!==null&&this.timeoutHiding!==undefined&&clearTimeout(this.timeoutHiding)},_tooltipMouseLeave:function(){this._hideTooltip()},_getColumnFixingInstance:function(){return!this._columnFixing&&this.grid.element.data("igGridColumnFixing")&&(this._columnFixing=this.grid.element.data("igGridColumnFixing")),this._columnFixing},_getElementValue:function(t){var e,r,u,i,o,h=t.closest("tr"),c=-1,f,a=this.grid.hasFixedColumns(),s=0,l;if((this.grid.options.virtualization||this.grid.options.columnVirtualization)&&(s=this.grid._startColIndex||0),a?(l=this._getColumnFixingInstance(),e=t.index(),f=l._getKeyByVisibleIndex(e,this.grid._isFixedElement(t))):e=this._$thead.length>0?t.index()-this._$thead.children(":first").children("th[data-skip='true']").length+s:t.index()-t.parent().find("td[data-parent='true'],td[data-skip='true'],th").length+s,e<0)return r;for(f||(f=this.grid._visibleColumns()[e].key),this._pRowIdx=this._rowIdx,this._rowIdx=t.closest("tbody").children("tr:not([data-container='true'],[data-grouprow='true'])").index(h),(this.grid.options.virtualization||this.grid.options.rowVirtualization)&&(this.grid.options.virtualizationMode==="fixed"?this._rowIdx+=this.grid._startRowIndex:(c=parseInt(h.attr("data-row-idx"),10),this._rowIdx=c||this._rowIdx)),u=this.grid.dataSource.pendingTransactions(),o=parseInt(t.parent().attr("data-id"),10),i=u.length-1;i>=0;i--)if(u[i].type!=="deleterow")if(u[i].type==="cell"){if(u[i].rowId===o&&u[i].col===f){r=u[i].value;break}}else if(u[i].rowId===o){r=u[i].row[f];break}return r===undefined&&this.grid.dataSource.dataView()[this._rowIdx]!==undefined&&(r=this.grid.dataSource.dataView()[this._rowIdx][f]),n.type(r)==="date"&&this.grid.options.enableUTCDates===!0&&(r=n.ig.formatter(r,"date","dateTime",!0,this.grid.options.enableUTCDates)),r},_shouldShowForTarget:function(n){var i=!0,r,t,u=this.grid.hasFixedColumns();switch(this.options.visibility){case"never":i=!1;break;case"overflow":i=this._displayOverflow(n)}return i===!1?!1:(r=n.index(),t=n.parent().children("td:not([data-parent='true'],[data-skip='true'])").index(n),this._pColumnIdx=this._columnIdx,this._columnIdx=this.grid._isMultiColumnGrid?t:u&&n.closest("[data-fixed-container]").length===1?this.grid.fixedHeadersTable().find("thead th[id]").not("[data-skip='true']").eq(t).data("columnIndex"):this._$thead.find("th[id]").not("[data-skip='true']").eq(t).data("columnIndex"),this._columnIdx===undefined&&(this._columnIdx=r),this._columnIdx<0||this._columnIdx>=this.grid.options.columns.length)?!1:(this._pColumnKey=this._columnKey,this._columnKey=this.grid._isMultiColumnGrid?this.grid._visibleColumns()[t].key:this.grid.options.columns[this._columnIdx].key,i&&this._shouldShowForColumn())},_shouldShowForColumn:function(){for(var t=this.options.columnSettings,n=0;n<t.length;n++)if(t[n].columnKey===this._columnKey||t[n].columnIndex===this._columnIdx)return t[n].allowTooltips!==undefined?t[n].allowTooltips:!0;return!0},_hideTooltip:function(n){var t=this,i,r;i={owner:this,tooltip:n===!0?String(this._currentlyHoveredData):String(this._previouslyHoveredData),value:n===!0?this._currentlyHoveredData:this._previouslyHoveredData,element:this._currentlyDisplayed,columnKey:n===!0?this._columnKey:this._pColumnKey,index:n===!0?this._rowIdx:this._pRowIdx,columnIndex:n===!0?this._columnIdx:this._pColumnIdx};r=function(){var n=t._trigger(t.events.tooltipHiding,t,i);n===!0&&(t._hideTooltipNoDelay(),t._trigger(t.events.tooltipHidden,t,i))};typeof Modernizr=="object"&&Modernizr.touch===!0?r():(clearTimeout(this.timeoutHiding),this.timeoutHiding=setTimeout(r,this.options.hideDelay))},_showTooltip:function(){var n=this,t,i;t={owner:this,tooltip:String(this._currentlyHoveredData),value:this._currentlyHoveredData,element:this._currentlyDisplayed,columnKey:this._columnKey,index:this._rowIdx,columnIndex:this._columnIdx};i=function(){var i=n._trigger(n.events.tooltipShowing,n,t);i===!0&&(n._showTooltipNoDelay(t.tooltip),n._trigger(n.events.tooltipShown,n,t))};typeof Modernizr=="object"&&Modernizr.touch===!0?i():this.timeoutShowing=setTimeout(i,this.options.showDelay)},_hideTooltipNoDelay:function(){this.options.style==="tooltip"?this._canFadeOut===!0&&(this._canFadeOut=!1,this.tooltip.fadeOut(this.options.fadeTimespan,n.proxy(this._fadeOutEnd,this))):this.options.style==="popover"&&this.tooltip.igPopover("hide");this.visible=!1},_showTooltipNoDelay:function(t){var i;this._currentlyDisplayed!==null&&(clearTimeout(this.timeoutHiding),i=n("#"+this.id()),this.options.style==="tooltip"?(this._updateTooltip(t),this._canFadeIn===!0&&(this._canFadeIn=!1,i.fadeIn(this.options.fadeTimespan,n.proxy(this._fadeInEnd,this)))):this.options.style==="popover"&&i.igPopover("show",n(this._currentlyDisplayed),t),this.visible=!0)},_fadeOutEnd:function(){this._canFadeOut=!0},_fadeInEnd:function(){this._canFadeIn=!0},_updateTooltip:function(t){var i=this.tooltip.children("[id$='_content']");i.text(t);i.parent().css("max-width",n(this._currentlyDisplayed).width());this._positionTooltip(i.parent())},_positionTooltip:function(t){var i=n(window),r,u,e=t.outerWidth(),o=t.outerHeight(),f;f=n.ig.util.getRelativeOffset(t);r=this.mouseX-f.left+this.options.cursorLeftOffset-i.scrollLeft();u=this.mouseY-f.top+this.options.cursorTopOffset-i.scrollTop();r+e>i.width()&&(r=i.width()-e);u+o>i.height()&&(u=i.height()-o);t.css({top:u+i.scrollTop(),left:r+i.scrollLeft()})},_columnFixed:function(){var n;this.grid.hasFixedColumns()&&(n=this.grid.fixedTable().find("tbody"),this._registerMouseEvents(n))},_createHandlers:function(){this._dataRenderedHandler=n.proxy(this._dataRendered,this);this._rowsRenderedHandler=n.proxy(this._rowsRendered,this);this._rowsRenderingHandler=n.proxy(this._rowsRendering,this);this._gridMouseLeaveHandler=n.proxy(this._gridMouseLeave,this);this._gridMouseMoveHandler=n.proxy(this._gridMouseMove,this);this._gridHeaderRenderingHandler=n.proxy(this._gridHeaderRendering,this)},_registerGridEvents:function(){this.grid.element.bind("iggrid_rowsrendering.tooltip",this._rowsRenderingHandler);this.grid.element.bind("iggridrendered.tooltip",this._dataRenderedHandler);this.grid.element.bind("iggridrowsrendered.tooltip",this._rowsRenderedHandler);this.grid.element.bind("iggridheaderrendering.tooltip",this._gridHeaderRenderingHandler)},_unregisterGridEvents:function(){this.grid.element.unbind("iggrid_rowsrendering.tooltip",this._rowsRenderingHandler);this.grid.element.unbind("iggridrendered.tooltip",this._dataRenderedHandler);this.grid.element.unbind("iggridrowsrendered.tooltip",this._rowsRenderedHandler);this.grid.element.unbind("iggridheaderrendering.tooltip",this._gridHeaderRenderingHandler)}});n.extend(n.ui.igGridTooltips,{version:"14.1.20141.2031"})}(jQuery),function(n){var t=function(n,t){return n===null||n===undefined||n==="undefined"||t&&isNaN(n)},i=function(n,t){t=n?n.css(t):0;try{t=parseInt(t,10)}catch(i){}return t&&!isNaN(t)?t:0},r=function(n,t,i,r){return n=n.data("igEditorFilter"),n?n.options.provider[t](i,r):null},e=function(){return(new Date).getTime()},f=function(t){var i=n.ig.GridUpdating&&n.ig.GridUpdating.locale?n.ig.GridUpdating.locale[t]:t;throw new Error(i||t);},u=function(n){if(n&&n!==1)try{n.preventDefault();n.stopPropagation()}catch(t){}};n.widget("ui.igGridUpdating",{grid:null,options:{columnSettings:[{columnKey:null,editorType:null,editorProvider:null,editorOptions:null,required:null,readOnly:null,validation:null,defaultValue:null}],editMode:"row",showReadonlyEditors:!0,enableDeleteRow:!0,enableAddRow:!0,validation:!1,doneLabel:null,doneTooltip:null,cancelLabel:null,cancelTooltip:null,addRowLabel:null,addRowTooltip:null,deleteRowLabel:null,deleteRowTooltip:null,rowEditDialogCaptionLabel:null,showDoneCancelButtons:!0,enableDataDirtyException:!0,rowEditDialogContentHeight:150,rowEditDialogFieldWidth:140,rowEditDialogWidth:370,rowEditDialogHeight:"350",startEditTriggers:"click,F2,enter",rowEditDialogContainment:"owner",rowEditDialogOkCancelButtonWidth:120,rowEditDialogRowTemplate:null,rowEditDialogRowTemplateID:null,horizontalMoveOnEnter:!1,excelNavigationMode:!1,saveChangesSuccessHandler:null,saveChangesErrorHandler:null,swipeDistance:"100px"},events:{editRowStarting:null,editRowStarted:null,editRowEnding:null,editRowEnded:null,editCellStarting:null,editCellStarted:null,editCellEnding:null,editCellEnded:null,rowAdding:null,rowAdded:null,rowDeleting:null,rowDeleted:null,dataDirty:null,generatePrimaryKeyValue:null,rowEditDialogOpening:null,rowEditDialogOpened:null,rowEditDialogContentsRendering:null,rowEditDialogContentsRendered:null,rowEditDialogClosing:null,rowEditDialogClosed:null},css:{buttonContainer:"ui-iggrid-buttoncontainer ui-widget-content ui-corner-all",button:"ui-iggrid-button ui-state-default ui-corner-all",doneButton:"ui-iggrid-donebutton ui-priority-primary ui-corner-all",cancelButton:"ui-iggrid-cancelbutton ui-corner-all",deleteButton:"ui-iggrid-deletebutton ui-state-default ui-corner-all",buttonHover:"ui-iggrid-buttonhover ui-state-hover",buttonDisabled:"ui-iggrid-buttondisabled ui-state-disabled",buttonActive:"ui-iggrid-buttonactive ui-state-active",doneIcon:"ui-iggrid-doneicon ui-icon ui-icon-check",cancelIcon:"ui-iggrid-cancelicon ui-icon ui-icon-cancel",buttonIconOnly:"ui-iggrid-button-icon-only",editingCell:"ui-iggrid-editingcell",addRow:"ui-iggrid-addrow ui-widget-header",addRowHover:"ui-iggrid-addrowhover ui-state-hover",addRowActive:"ui-iggrid-addrowactive ui-state-active",addRowIcon:"ui-iggrid-addrowicon ui-icon ui-icon-circle-plus",deleteIcon:"ui-iggrid-deleteicon ui-icon ui-icon-circle-close",editor:"ui-iggrid-editor",rowEditDialogHeaderCaption:"ui-dialog-titlebar ui-iggrid-filterdialogcaption ui-widget-header ui-corner-all ui-helper-reset ui-helper-clearfix",rowEditDialogHeaderCaptionTitle:"ui-dialog-title",rowEditDialog:"ui-dialog ui-draggable ui-resizable ui-iggrid-dialog ui-widget ui-widget-content ui-corner-all",blockArea:"ui-widget-overlay ui-iggrid-blockarea",rowEditDialogOkCancelButton:"ui-dialog-buttonpane ui-widget-content ui-helper-clearfix ui-iggrid-filterdialogokcancelbuttoncontainer",rowEditDialogTable:"ui-iggrid-filtertable ui-helper-reset"},setCellValue:function(i,r,u,f){var e,o,s;t(i)||typeof r!="string"||(e=f?n(f):this.grid.element.children("tbody").children('tr[data-id="'+i+'"]'),e.length!==1?(e=1,o=n()):(s=this.grid._getCellIndexByColumnKey(r),o=s>=0?e.children().eq(s):n(),e=e[0]),this.isEditing()&&this._tds[r]&&o.find(".ui-igedit,.ui-igcombo").length>0&&this.editorForKey(r)instanceof jQuery?(this.editorForKey(r).data().hasOwnProperty("igCombo")?this.editorForKey(r).igCombo("value",u):this.editorForKey(r).igEditor("value",u),this._notifyChanged()):this._update(i,e,u,r,o))},updateRow:function(i,r,u){var f;if(!t(i)&&r)if(u=u||this.grid.element.children("tbody").children('tr[data-id="'+i+'"]')[0]||1,this.isEditing()&&n(u).find(".ui-igedit,.ui-igcombo").length>0){for(f in r)r.hasOwnProperty(f)&&this.editorForKey(f)instanceof jQuery&&(this.editorForKey(f).data().hasOwnProperty("igCombo")?this.editorForKey(f).igCombo("value",r[f]):this.editorForKey(f).igEditor("value",r[f]));this._notifyChanged()}else this._update(i,u,r)},addRow:function(n){n=n||{};for(var i=this.options.columnSettings,u=i?i.length:0,r,f;u-->0;)r=i[u].columnKey,f=i[u].defaultValue,t(f)||t(r)||t(n[r])&&(n[r]=f);this._update(n)},deleteRow:function(i,r){t(i)||(r=r||this.grid.element.children("tbody").children('tr[data-id="'+i+'"]')[0]||1,this.isEditing()&&n(r).find(".ui-igedit,.ui-igcombo").length>0&&this.endEdit(!1),this._update(i,r))},startEdit:function(t,i,r){var f,u,e=this.grid.element.find("tr[data-id='"+t+"']");if(this.options.editMode==="rowedittemplate")return this._startEditRowTemplate(r,e);if(f=n.type(i)==="string"?this.grid._getCellIndexByColumnKey(i):i||0,f===undefined)throw new Error(n.ig.Grid.locale.columnNotFound+" "+i);return this.grid.isFixedColumn(i)&&(e=this.grid.fixedBodyContainer().find("tbody").children("tr[data-id='"+t+"']")),u=e.children("td").not("[data-skip='true']").eq(f),u&&u.length===1&&(u=this._startEdit(u,r||1,1)===1),!!u},startAddRowEdit:function(t){var i=this._newTR,r,u=this.grid.hasFixedColumns();return this.options.editMode==="rowedittemplate"?this._startEditRowTemplate(t,null,null,!0):(i&&(t&&t.target&&u&&this.grid._isFixedElement(n(t.target))&&(i=n(t.target).closest("thead").find("tr[data-new-row]")),i=this._startEdit(n(i.children()[0]),t||1,1,1,this._addTR.children()[0].offsetHeight)===1,this._newTR&&u&&(r=n.ig.util.isIE?this._addTR.outerHeight():this._addTR.height(),this.grid.fixedContainer().find("thead tr[data-new-row]").height(r),this.grid.container().find("thead tr[data-new-row]").height(r),n(i).height(r))),!!i)},endEdit:function(n,t){return this.options.editMode==="rowedittemplate"?n?this._rowEditDialogDoUpdate(t):this._closeRowEditDialog(t):!this._endEdit(t||1,n)},findInvalid:function(){var n,t=this._editors;for(n in t)if(t.hasOwnProperty(n)&&t[n]&&!r(t[n],"isValid"))return n;return null},isEditing:function(){return!!this._tds},editorForKey:function(n){var t=this._editors;return t?t[n]:null},editorForCell:function(n,t){var i,u=this._key(n),r=this._editors;return r||(r=this._editors={}),i=r[u],!i&&t&&(i=r[u]=this._createEditor(n,u)),i},findHiddenComboEditor:function(n){var r=this._hCombos,t=r&&n?n.data("igCombo"):null,u=t?t.options._hComboID:null,i=u?r[u]:null;return t=i?i.combo.data("igCombo"):null,t&&(t._colKey=i.key),t},_setOption:function(n,t){var i=this.options;return i[n]===t?this:(this._endEdit(),this._doButtons(2),i[n]=t,n.indexOf("ddRow")>0?(this._headerRendered(),this.grid._initializeHeights(),(this.grid.options.virtualization===!0||this.grid.options.rowVirtualization===!0)&&this.grid._onVirtualVerticalScroll()):n==="saveChangesSuccessHandler"?this._addDSSuccessHandler():n==="saveChangesErrorHandler"&&this._addDSErrorHandler(),this)},_fire:function(n,t,i){return i&&t&&t!==1?(i.owner=this,this._trigger(n,t,i)):1},_loc:function(i,r){return i+=r?"Tooltip":"Label",r=this.options[i],t(r)&&(r=n.ig.GridUpdating&&n.ig.GridUpdating.locale?n.ig.GridUpdating.locale[i]:null),r||""},_div:function(){return this.grid.container()},_hscroll:function(t){if(!this._hscr1){var i=this.grid.element;this._hscr1=n("#"+i[0].id+"_hscroller");this._hscr2=this._hscr1.length?this._hscr1:i.parent()}return t?this._hscr1:this._hscr2},_groupedColumnsChanged:function(n){this._groupCols=n.groupedColumns.length;this._hidingFinishing();this._headerRendered()},_headerRendered:function(n){var r,f,e,t=this,h=t.grid,c=h.hasFixedColumns(),i=t._addTR,l=t.options,u=h.options.columns,a=u.length,o,s;if(!l.enableAddRow||n===1){i&&(i.remove(),t._newTR.remove(),t._hierTD=t._newTR=t._addTR=null,this.grid.hasFixedColumns()&&(this.grid.fixedHeadersTable().find("thead tr[data-add-row]").remove(),this.grid.fixedHeadersTable().find("thead tr[data-new-row]").remove(),this.grid.element.data("igGridColumnFixing")._syncContainerHeights()));return}if(f=t._loc("addRow")||"&nbsp;",e=t._loc("addRow",1),i&&(i.find(".anr_t").html(f),i.find(".ui-iggrid-addrow").attr("title",e),i.find(".anr_i").css("display","inline-block")),r=t._div().find("thead"),r&&!i){if(c){for(o=[],s=[],n=0;n<a;n++)u[n].fixed===!0?o.push(u[n]):s.push(u[n]);r=t._div().find("div[data-fixed-container]").find("thead");u=s;this._headerRenderedHelper(o,r,f,e);r=t._div().find("div:not([data-fixed-container])").find("thead")}this._headerRenderedHelper(u,r,f,e)}},_headerRenderedHelper:function(r,u,f,o){var s,p,v,l,w,h=this,b=h.css,a=h._addTrShift,d=0,c=h._addTR,tt=h.options,y=h.grid,nt=r.length,g=y._initialHiddenColumns||[],k=[];if(p=tt.showPlusIcon,c=h._addTR=n("<tr />").addClass(b.addRow).attr("data-skip","true").attr("data-add-row","true").appendTo(u),a)for(s=0;s<a.length;s++)n(a[s]).appendTo(c);else h._hierOn=e(),y._headerInit(c),h._hierTD=c.children().length;for(s=0;s<nt;s++)r[s].hidden?k.push(r[s].key):d++;for(s=0;s<g.length;s++)n.ig.indexInArray(k,g[s].key)===-1&&(k.push(g[s].key),d--);if(h._groupCols&&(h._groupTD1=n("<td />").addClass("ui-iggrid-rowselector-header").attr("data-skip","true").appendTo(c)),v=n('<td colspan="'+d+'"><\/td>').attr("title",o).addClass(b.addRow).appendTo(c),h._addLeft=i(v,"paddingLeft"),n("<span />").css("display","inline-block").addClass(b.addRowIcon).addClass("anr_i").appendTo(v),n("<span>"+f+"<\/span>").addClass("anr_t").css("outline",0).attr("tabIndex",h._ti+1).focus(function(n){h._onEvt(n,5)}).blur(function(n){h._onEvt(n,6)}).appendTo(v),c=h._newTR=n("<tr />").attr("data-skip","true").attr("data-new-row","true").appendTo(u).hide(),a=this._newTrShift,a)for(s=0;s<a.length;s++)n(a[s]).appendTo(c);else y._headerInit(c);for(h._groupCols&&(h._groupTD2=n("<td />").addClass("ui-iggrid-rowselector-header").attr("data-skip","true").appendTo(c)),s=0;s<nt;s++)l=r[s],l.hidden||n.ig.indexInArray(k,l.key)!==-1||(w=h._colSet(0,l?l.key:null),p=w&&w.readOnly,f=p?w.defaultValue:null,f=t(f)?"&nbsp;":y._renderCell(f,l),v=n("<td>"+f+"<\/td>").addClass(b.editingCell).appendTo(c),p&&l&&l.key===y.options.primaryKey&&(h._tdAddPrime=v))},_hierGridInDiv:function(){for(var r,u,i,e=0,n=-1,f=this._newTR,o=this._addTR,t=f.parent().children();++n<t.length;)if(t[n]!==o[0]&&t[n]!==f[0])break;if(!(n>t.length)){for(t=t[n].childNodes,u=t.length,n=0;n<u;n++)if(i=t[n],r=i.getAttribute("data-skip")?i.className:null,r&&(r.indexOf("-expand")>=0||r.indexOf("-rowselector")>=0))e++;else break;for(t=f.children(),u=t.length,n=0;n<u;n++)if(i=t[n],i.getAttribute("data-skip"))e--;else break;while(e-->0)this.grid._headerInit(f,null,!0),this.grid._headerInit(o,null,!0)}},_hierHeaderInit:function(){var i,n=this,r=n._hierOn,t=n._addTR;if(t&&r&&!(e()-r>200)){if(n._hierTD){setTimeout(function(){n._hierGridInDiv()},0);setTimeout(function(){n._hierGridInDiv()},200);return}i=t.children().length;n.grid._headerInit(t,null,!0);n.grid._headerInit(n._newTR,null,!0);n._hierTD=t.children().length-i}},_dataRendered:function(){this._wasInit||(this._scrollDiv(),this._renderTouchUI&&this.options.editMode!=="row"&&(this._div().bind(this._tEvts),delete this._evts.mousemove,delete this._evts.mouseleave),this._div().bind(this._evts),this._wasInit=!0)},_findCell:function(t){var r=0,i=n(t),u=this.grid.element[0],f=this.grid.headersTable()[0];for(this.grid.hasFixedColumns()&&i.closest("div").attr("data-fixed-container")!==undefined&&(u=n("#"+this.grid.id()+"_fixed")[0],f=this.grid.fixedHeadersTable()[0]),i.is("td")||(i=i.closest("td")),t=i;t&&r++<5;)if(t=t.parent(),t&&(t[0]===u||t[0]===f))break;return r===3&&this._col(i)>=0&&this._row(i)>=0?i:null},_td:function(n){var t,i=this._tds;if(i)for(t in i)if(i.hasOwnProperty(t)&&i[t]&&(n?t===n:!0))return i[t]},_row:function(n){return n?n.parent().index():-1},_idForCol:function(n,t){for(var u=-1,r=this._col(1),i=r?r.length:0;--i>=0;)if(!(r[i]<0)){if(t===-2)return i;if(r[i]===n){if(t===1)return u;if(t===-1)t=-2;else break}u=i}return i},_keyForEditor:function(n){var t;n=n instanceof jQuery?n[0]:n;for(t in this._editors)if(this._editors.hasOwnProperty(t)&&this._editors[t]&&this._editors[t][0]===n)return t},_isAdd:function(n){return n===1?this._adding:this._isSrc(this._addTR,n)||this._isSrc(this._newTR,n)},_col:function(t){var f,s,h,u,r,e,c=this._isAdd(t),o=-1,l=this.grid.hasFixedColumns(),i=c?this._mapAdd:this._map;if(l&&t!==1&&(f=this.grid._getColumnByTD(n(t)),f!==null&&(o=f.index)),!i){for(s=this._colShift(t),i=[],r=e=-1;s-->0;)i[++e]=-1;for(u=this.grid.options.columns,h=u.length;++r<h;)u[r]&&!u[r].hidden&&(i[++e]=r);c?this._mapAdd=i:this._map=i}return t===1?i:l&&o!==-1?o:(r=t.index()+(this.grid._startColIndex||0),t&&r<i.length?i[r]:-1)},_colSet:function(n,t){var i,r=this.options.columnSettings;for(t||(t=this._key(n)),i=r&&t?r.length:0;i-->0;)if(r[i].columnKey===t)return r[i]},_isSame:function(n,t){return this._row(n)===this._row(t)&&this._col(n)===this._col(t)},_gridCol:function(n,t){for(var i=-1,r=this.grid.options.columns;++i<r.length;)if(r[i].key===n)return t?i:r[i]},_prime:function(n){var i=n.parent().attr("data-id");return t(i)?this._row(n):this._fixPrime(i)},_defVal:function(n,t){var i;return n&&(i=this._colSet(null,n),i=i?i.defaultValue:null,t&&n===this.grid.options.primaryKey&&(i=this._defValue,i||(i={value:i||this._addRowNum},this._fire("generatePrimaryKeyValue",this._evt||{},i),this._defValue=i=i.value))),i},_addReadOnly:function(n){var r,i,f,e=this.options.columnSettings,u={};for(i in e)e.hasOwnProperty(i)&&(r=e[i],i=r.columnKey,r.readOnly&&(n?(r=this._defVal(i,1),t(r)||(f=i,u[f]=r)):u[i]=this._getVal(this._row_,i)));return!f&&n&&this._fixPrime(u,this.grid.dataSource),u},_key:function(n){var i,t;return this.grid.hasFixedColumns()&&(t=this.grid._getColumnByTD(n),t!==null)?t.column.key:(i=this.grid.options.columns,t=this._col(n),t=i&&t>=0?i[t]:null,t?t.key:null)},_equals:function(n,t){return n===t||n&&t&&n.getTime&&t.getTime&&n.getTime()===t.getTime()},_val:function(n,i,r){var f,e=this._adding,o=this._row_,u=this._key(n);if(f=e?this._defVal(u,r&&t(r[u])):this._getVal(o,u),i){if(e||!this._equals(f,i.value)){if(r)return i.value;this._update(o,n.parent()[0],i.value,u,n)}return undefined}return f},_colShift:function(n,t){var r,u,i=this._cShift,f=this._cShiftAdd;if(!t&&n&&(t=n.parent()[0]),!t)return i<0?0:i;if(u=this._isAdd(t),u){if(f>=0)return f}else if(i>=0)return i;if(t=t?t.childNodes:null,!t)return 0;for(i=0,r=0;r<t.length-1;r++)if(n=t[r].className,n&&(n.indexOf("-expandcolumn")>=0||n.indexOf("-rowselector")>=0)||t[r].getAttribute("data-skip"))i++;else break;return u?this._cShiftAdd=i:this._cShift=i,i},_cur:function(n,t){return{tbl:n.parent().parent().parent(),row:t?this._rowIndex:this._row(n),col:this._col(n)}},_nextTDFixing:function(n,t,i){var u=null,f,e,r;return this.grid._isFixedElement(n.td)?(e=n.td.closest("div[data-fixing-direction]").attr("data-fixing-direction")==="left",e?t===1?(r=this.grid.element.find("tbody tr:nth-child("+(i+1)+")").children(),r.length>0&&(u=r[0])):t===-1&&i>=1&&(r=this.grid.element.find("tbody tr:nth-child("+i+")").children(),r.length>0&&(u=r[r.length-1])):t===1?(r=this.grid.element.find("tbody tr:nth-child("+(i+2)+")").children(),r.length>0&&(u=r[0])):t===-1&&(r=this.grid.element.find("tbody tr:nth-child("+(i+1)+")").children(),r.length>0&&(u=r[r.length-1]))):(f=this.grid.container().find("div[data-fixing-direction]"),e=f.attr("data-fixing-direction")==="left",e?t===1?(r=f.find("tbody tr:nth-child("+(i+2)+")").children(),r.length>0&&(u=r[0])):t===-1&&(r=f.find("tbody tr:nth-child("+(i+1)+")").children(),r.length>0&&(u=r[r.length-1])):t===1?(r=f.find("tbody tr:nth-child("+(i+1)+")").children(),r.length>0&&(u=r[0])):t===-1&&i>=1&&(r=f.find("tbody tr:nth-child("+i+")").children(),r.length>0&&(u=r[r.length-1]))),u},_nextTD:function(t,i,r){var u,l,f,e,s,a=this.grid.hasFixedColumns(),v=t.tbl.children("tbody")[0],c=v?v.childNodes:0,h=c?c.length:0,o=t.row;if(!(h<1)&&!(o<0)&&!(o>=h)&&(f=c[o],f)){if(l=f.childNodes,s=this._col(1),i==="-tr1"||i===-1&&t.col===0&&t.row===0?f=o-1<0?h-1:o-1:(f=o+(i||1),f=f>=h?0:f),a&&t.col>=0?(u=t.col,i===1?u+=1:i===-1&&(u-=1),l[u]||(u=-1)):u=this._idForCol(t.col,i),i&&i!=="-tr1"){if(u>=0&&(t.col=s[u],e=l[u]),!e&&r)if(a)e=this._nextTDFixing(t,i,o);else if(f>=0&&f<h){if(i>0)u=s[0]>=0?0:1;else for(u=s.length;--u>=0;)if(s[u]>=0)break;u>=0&&(t.col=s[u],t.row=f,e=c[t.row].childNodes[u])}}else f<h?(t.row=f,e=c[t.row].childNodes[u]):e=null;return t.td=e?n(e):null,e?t:null}},_nextEditor:function(n,t){var r,i,s=null,u=this._editors,f,e,o,h;if(this.grid.hasFixedColumns()){for(e={},o=this.grid.options.columns,h=o.length,f=0;f<h;f++)i=o[f].key,u.hasOwnProperty(i)&&(e[i]=u[i]);u=this._editors=e}for(i in u)if(u.hasOwnProperty(i)){if(t&&n===i)return s;if(i&&(r=u[i],r&&r[0]&&r[0].offsetWidth>0)){if(n===null)return r;s=r}n===i&&(n=null)}},_nextEdit:function(n,i,r){var u,f=this._td(r);if(f){for(u=this._cur(f,!0),u.td=f;this._nextTD(u,i,1);)if((!t(this.editorForCell(u.td))||this.options.editMode==="cell")&&this._startEdit(u.td,n,this.options.editMode==="cell"?1:!1))return;this._endEdit(n,1)}},_createEditor:function(r,u,e){var c,h,y,a={},o=this,p=o._gridCol(u)||{},w=p.format,b=o.css.editor,l=o._xy,s=o._colSet(r,u),v=s?s.editorProvider:null,k=o._tdBdrTop,d=n("#"+this.grid.container().attr("id")+"_igButton");return s&&s.readOnly&&!e?null:(l||e||(k=o._tdBdrTop=i(r,"borderTopWidth"),c=n("<span />").addClass(b).prependTo(r),o._xy=l={x:i(c,"marginLeft"),y:i(c,"marginTop")},l.dx=l.x+i(c,"marginRight"),l.dy=l.y+i(c,"marginBottom"),c.remove()),c=null,s&&(a=s.editorOptions||a,h=a.validatorOptions,c=s.required,!h&&(s.validation||c)&&(h={}),c&&(h.required=a.required=!0)),o.options.validation&&!h&&(h={}),h&&(o.grid.element.igValidator||f("igValidatorException"),s&&(s.editorOptions=a),a.validatorOptions=h,h.bodyAsParent=!1,h.keepFocus=2,h.errorHidden=function(){o._error=null;o._butDone&&o._butDone.removeClass(o.css.buttonDisabled);d.length>0&&d.igButton("option","disabled",!1)},h.errorShowing=function(){if(!t(o._error)&&o._error!==u)return!1},h.errorShown=function(n,t){o._error=u;o._butDone&&o._butDone.addClass(o.css.buttonDisabled);t=t.owner._lbl;t&&t.css("zIndex",99999);o._scrollTo(u)}),v||(v=p.dataType!=="bool"||w!=="checkbox"&&(w||!o.grid.options.renderCheckboxes)||e?s&&s.editorType==="combo"?new n.ig.EditorProviderCombo:s&&s.editorType==="rating"?new n.ig.EditorProviderRating:new n.ig.EditorProviderDefault:new n.ig.EditorProviderCheckbox),o._hComboInit(a),y=v.createEditor(o,u,s,o._ti,w,p.dataType,o._val(r),e),e||y.addClass(b).css({marginLeft:l.x-i(r,"paddingLeft")+"px",marginTop:l.y-k-i(r,"paddingTop")+"px"}),y.igEditorFilter({provider:v}))},_notifyChanged:function(){var t=this._butDone;t&&(this.findInvalid()?t.addClass(this.css.buttonDisabled):t.removeClass(this.css.buttonDisabled));t=n("#"+this.grid.container().attr("id")+"_igButton");t.length>0&&(this.findInvalid()?t.igButton("option","disabled",!0):t.igButton("option","disabled",!1));this._modified=1},_notifyEditorKey:function(i,f){var h,l,a,e,o,c,s=i.keyCode||i.which||0,v=s===27,p=this.options,y;if((s===9||s===13||v)&&(o=this._editors[f],o&&(s!==13||!(i.shiftKey||i.ctrlKey||this._13)))){if(v){if(l=o._oldCellVal,a=r(o,"getValue"),!this._equals(l,a)&&(r(o,"setValue",l),!this._equals(r(o,"getValue"),a))){r(o,"validate");u(i);return}return this._endEdit(i,null,200)}if(s===13||!this._adding&&p.editMode==="cell")return c=n(i.target),c.length>0&&c.find("input").first().trigger("blur"),y=this.options.horizontalMoveOnEnter?1:s===9?i.shiftKey?-1:1:0,this._nextEdit(i,y);if(e=this._nextEditor(f,i.shiftKey),!r(o,"validate")){u(i);return}s!==13&&s!==9||e||this._adding||(c=n(i.target),c.length>0&&c.find("input").first().trigger("blur"));u(i);try{e&&this._adding&&!t(this.grid._startColIndex)&&this.grid.table&&this.grid.table.rows[0]&&!this.grid.cellAt(this._col(e.parent()),0)&&(e=null)}catch(w){e=null}if(e){this._scrollTo(e.parent(),e);return}if(h=this._butDone,!h||h[0].offsetWidth===0)return this._nextEdit(i,i.shiftKey?-1:0);h.hasClass(this.css.buttonDisabled)&&(h=this._butCancel);h[0].focus();this._prevEdit=o}},_evtArg:function(n,i,r){var u={rowAdding:!!this._adding,columnIndex:this._col(n),rowID:this._row_,columnKey:this._key(n),editor:i};return u.value=t(r)?null:r,u},_checkHidden:function(n){for(var i,r,u,f=this.grid.options.columns,e=f.length;e-->0;)u=f[e],u&&u.hidden&&(r=u.key,i=this._colSet(null,r),i=i&&t(n[r])?i.defaultValue:null,i!==null&&(n[r]=i))},_isToggle:function(n){return n=n&&n.type&&n.type.indexOf("click")>=0?n.target:null,n&&n.className&&n.className.indexOf("ui-icon-check")>=0},_lastTDWidth:function(n,t){var u=i(n,"paddingRight")>12,r=u||!n.next()[0]?n.closest("div")[0]:null,f=r&&n[0].offsetLeft+n[0].offsetWidth>r.clientWidth+5?r.offsetWidth-r.clientWidth:0;return f>10&&(r=u?null:this._hscroll(1)[0],(!r||r.offsetWidth<r.clientWidth+3)&&(t-=Math.min(18,f))),t},_hComboInit:function(t){var f,o,e,s,h,i,c=this.options.editMode==="cell",r=t.parentCombo,u=this._hCombos;if(r)for(h=this.options.columnSettings,f=h.length,i=u?u[r]:null,i&&(t._hComboID=r,t.parentCombo=i.combo,f=0);f-->0;)if(e=h[f],s=e.columnKey,o=this._gridCol(s),i=e.editorType==="combo"&&(c||o&&o.hidden)?e.editorOptions:null,i&&i.id===r){this._hCombos=u=u||{};t._hComboID=r;t.parentCombo=i=n('<span id="'+r+'"><\/span>').igCombo(i);u[r]={key:s,combo:i};return}},_hComboEdit:function(n){var i,r,t=this.findHiddenComboEditor(n);t&&(r=t.options,r.filteringType&&(t.selectedIndex(-1),t.activeIndex(-1),t.dataBind()),i=this.grid.getCellValue(this._row_,t._colKey),r.allowCustomValue?t.text(i===null?r.nullText||"":i):t.value(i))},_hComboRemove:function(n){var i,u,r,t=this._hCombos;if(t){for(i in t)t.hasOwnProperty(i)&&(r=t[i].combo,r&&r.igCombo("destroy"));for(delete this._hCombos,t=this.options.columnSettings,i=n?0:t.length;i-->0;)u=t[i].editorOptions,r=u?u._hComboID:null,r&&(u.parentCombo=r)}},_startEdit:function(f,e,o,s,h,c){var l,v,b,p,y,tt,g=this.grid.hasFixedColumns(),it,k=this.grid,ft=k.options.primaryKey,nt=this,rt=[],ut=[],d=f?f[0]:null,w=null,a=!1,et=this.options;if(d){if(e){if(delete this._defValue,this._delHover(),this._cShift=this._cShiftAdd=-1,this._map=undefined,this._tds){if(s||(g&&(l=f.index()),f=this._cur(f)),this._endEdit(e,1))return 1;if(!s){if(l!==undefined&&g||(l=this._idForCol(f.col)),v=f.row<0||f.col<0||l<0?null:f.tbl.children("tbody")[0],f=v?v.childNodes[f.row]:null,f&&(f=f.childNodes[l]),!f)return;f=n(f)}}if(!s&&!this._checkRow(f.parent()))return;if(this._row_=s?-1:this._prime(f),this._rowIndex=s?-1:this._row(f),h||(h=f[0].offsetHeight),s||et.editMode==="row"){if(p={rowAdding:!!s,rowID:this._row_},!this._fire("editRowStarting",e,p)){this._row_=null;this._rowIndex=-3;return}if(s&&(this._adding=s,this._tdAddPrime&&(l=this._gridCol(ft),tt=this._defVal(ft,1),this._tdAddPrime.html(l?k._renderCell(tt,l):tt)),this._addTR.hide(),this._newTR.show(),g&&(this.grid.fixedHeadersTable().find("thead tr[data-add-row]").hide(),this.grid.fixedHeadersTable().find("thead tr[data-new-row]").show()),this._addFixScroll||(this._addFixScroll={scroll:function(){var n=k.scrollContainer()[0],r=n?n.scrollLeft:-1,i=this.scrollLeft;!t(i)&&r>=0&&r!==i&&(n.scrollLeft=i)}}),this._addTR.closest("div").bind(this._addFixScroll)),v=f.parent().children(),this._evt=e,g)it=function(t){for(l=0;l<t.length;l++)(f=n(t[l]),nt._col(f)<0||t[l].offsetWidth<3||f.attr("data-skip")||f.is("th"))||(f.addClass(nt.css.editingCell),w=w||f,nt._startEdit(f,null,e&&f[0]===d,s,h,nt._isToggle(e)&&f[0]===d)&&(a=1,o=null))},this.grid._isFixedElement(f)?(rt=v,ut=s?this.grid.headersTable().find("thead tr:nth-child("+(f.parent("tr").index()+1)+")").children():this.grid.element.find("tbody tr:nth-child("+(f.parent("tr").index()+1)+")").children()):(ut=v,rt=s?this.grid.fixedHeadersTable().find("thead tr:nth-child("+(f.parent().index()+1)+")").children():n("#"+this.grid.id()+"_fixed").find("tbody tr:nth-child("+(f.parent().index()+1)+")").children()),it(ut),it(rt);else for(l=0;l<v.length;l++)(f=n(v[l]),this._col(f)<0||v[l].offsetWidth<3)||(f.addClass(this.css.editingCell),w=w||f,this._startEdit(f,null,o===1||e&&f[0]===d,s,h,this._isToggle(e)&&f[0]===d)&&(a=1,o=null));if(delete this._evt,a&&w&&et.showDoneCancelButtons&&this._doButtons(w),this._butDelete&&(s?this._butDelete.addClass(this.css.buttonDisabled):this._butDelete.removeClass(this.css.buttonDisabled)),a?(u(e),this._fire("editRowStarted",e,p)):v.removeClass(this.css.editingCell),this._sel("act",w),s&&a){if(!this.grid._isFixedElement(f))while(h-this._newTR[0].offsetHeight>0){if(a&&(a=null,f=n(v[0]),s=i(f,"paddingTop")+i(f,"paddingBottom")+i(f,"borderTopWidth")+i(f,"borderBottomWidth")+1),--s<0)break;f.css("height",h-s)}a=1}return a}c=c||this._isToggle(e)}if(y=this.editorForCell(f,1),!t(this._row_)&&y)return(b=f.outerWidth(),h||(h=f[0].offsetHeight),p=this._evtArg(f,y,this._val(f,null,1)),!b||!h)?void 0:this._fire("editCellStarting",e||this._evt,p)?(this._hComboEdit(y),b=this._lastTDWidth(f,b),b-=this._xy.dx+2,h-=this._xy.dy,e&&(u(e),f.addClass(this.css.editingCell)),y.prependTo(f),r(y,"setSize",Math.max(8,b),Math.max(10,h)),this._tds||(this._tds={}),this._tds[this._key(f)]=f,a=r(y,"validator"),a&&a._setOption&&a._setOption("bodyAsParent",k.options.fixedHeaders!==!1||!k.options.height),r(y,"setValue",p.value),y._oldCellVal=r(y,"getValue"),this._fire("editCellStarted",e||this._evt,p),o&&this._scrollTo(f,y,!1,300,c),e&&this._sel("act",f),1):"canceled"}},_endEdit:function(i,f,e){var nt,o,y,h,s,c,tt,a,k=f,w=i||"undefined",b=this._adding,d=null,p=null,l=null,v=this._tds,it=this.grid.hasFixedColumns(),g=this.options;if(v&&!this._skip){if(i&&i.type!=="mousedown"&&(a=i,u(a)),nt=b||g.editMode==="row",this._modified||b||(f=!1),nt){for(h in v)if(v.hasOwnProperty(h)&&(s=v[h],i&&!t(s)&&(o=this.editorForCell(s),k&&!t(o)&&o[0]&&o[0].offsetWidth&&o.igEditorFilter("hasInvalidMessage"))))return a||(a=i,u(a)),this._scrollTo(s,o,1),1;l=this._addReadOnly(b);tt={};for(h in v)v.hasOwnProperty(h)&&(s=v[h],!k||t(s)||t(this.editorForCell(s))||(o=this.editorForCell(s),l[h]=r(o,"getValue"),tt[h]=o._oldCellVal,i&&o[0]&&o[0].offsetWidth&&!r(o,"validate",!g)&&(a||(a=i,u(a)),g&&this._scrollTo(s,o,1),g=null)));if(i&&!g||(b&&this._checkHidden(l),this._skip=1,p={oldValues:tt,values:l,rowID:this._row_,keepEditing:!1,update:!!f,rowAdding:!!b},this._fire("editRowEnding",w,p)||(p.update=f=k=!1),delete this._skip,i&&p.keepEditing))return 1}nt&&(this._td().parent().children().removeClass(this.css.editingCell),it&&n("#"+this.grid.id()+"_fixed").find("tbody tr:nth-child("+(this._td().parent().index()+1)+")").children().removeClass(this.css.editingCell));d=null;for(h in v)if(v.hasOwnProperty(h)&&(s=v[h],!t(s)&&!t(this.editorForCell(s)))){if(o=this.editorForCell(s),!l){if(i&&k&&!r(o,"validate"))return a||(a=i,u(a)),this._scrollTo(s,o,1),1;s.removeClass(this.css.editingCell)}if(this._skip=1,this._doButtons(1),y=r(o,"getValue"),c=this._evtArg(s,o,y),c.update=!!f,this._adding||(c.update=c.update&&!this._equals(this._getVal(this._row_,this._key(s)),y)),c.oldValue=o._oldCellVal,l||(c.keepEditing=!1),this._fire("editCellEnding",w,c)||(c.value=o._oldCellVal),k&&!l&&i&&c.keepEditing)return u(i),this._scrollTo(s,o,1),delete this._skip,1;if(y=e?o.data("igEditor")||o.data("igCombo")||o.data("igRating"):null,y&&typeof y.hasFocus=="function"&&y.hasFocus()){try{o.parent()[0].focus()}catch(rt){}e=null}o.igEditorFilter("remove");y=c.value;f&&l&&(l[h]=y);!f||this._val(s,c,l)===undefined||d||this._equals(y,o._oldCellVal)||(d=s.parent()[0]);delete v[h];this._fire("editCellEnded",w,c);delete this._skip}this._skip=1;this._modified=this._prevEdit=this._tds=this._error=null;b?(this._addTR.closest("div").unbind(this._addFixScroll),this._addTR.show(),this._newTR.hide(),it&&(this.grid.fixedHeadersTable().find("thead tr[data-add-row]").show(),this.grid.fixedHeadersTable().find("thead tr[data-new-row]").hide()),this._adding=null,f&&this._fire("rowAdding",w,p)&&(this._update(l),this._sel("refresh"),this._fire("rowAdded",w,p))):d&&this._update(this._row_,d,l);this._fire("editRowEnded",w,p);this._rowIndex=-3;this._row_=null;this._sel("end",i);delete this._skip}},_scrollDiv:function(){var n=this,t=n._scrl,i=n.grid.element;return t&&n._sEvts?t:(n._scrl=t=i?i.parent():null,t&&!n._sEvts&&t.is("div")&&(n._scrollX=t.scrollLeft,n._sEvts={scroll:function(t){n._onEvt(t,9)}},t.bind(n._sEvts)),t)},_scrollTo:function(n,t,i,u,f){var h,l,c,y,a,s,e,o,w=this._adding,p=0,v=0,b=t;if(!t&&typeof n=="string"){if(n=this._tds?this._tds[n]:null,!n)return;if(t=this.editorForCell(n),!t)return;i=1}if(b&&(t.igEditorFilter("setFocus",100,f),u&&t.igEditorFilter("setFocus",u)),t&&i&&(s=r(t,"validator"),s=s?s._lbl:null,s&&(w||n.has(s).length!==0)&&(p=s[0]._width0||80,v=s[0]._height0||18,h=this._cur(n))),c=this._scrollDiv(),e=n.offset(),l=c.offset(),c=c[0],l.w=c.clientWidth,l.h=c.clientHeight,e.w=n.outerWidth(),e.h=n.outerHeight(),y=e.left-l.left,a=e.top-l.top,p>e.w){for(u=h.col,o=e.w,p+=5,e.w=p;o<p&&this._nextTD(h,1);)o+=h.td[0].offsetWidth;o-=p;o<0&&(e.x+=o,e.x<0&&!w&&(o-=e.x,e.x=0),this.grid._hasVerticalScrollbar&&(o-=this.grid._scrollbarWidth()),s.css("marginLeft",o+"px"))}if(!w&&v>1&&h.row>1){for(h.col=u,v+=3,o=v;o>0&&this._nextTD(h,0);)o-=h.td[0].offsetHeight;o>0&&(s.css("marginTop","-"+v+"px"),a-=v)}c.nodeName==="DIV"&&(y>0&&(y=Math.max(y+e.w-l.w,0)),a>0&&(a=Math.max(a+v+e.h-l.h,0)),y!==0&&(this._hscroll()[0].scrollLeft+=y),w||a===0||(c.scrollTop+=a))},_upDown:function(n){if(n=n.parent(),n.prev().length<1)return 1;if(n.next().length>0)return 0;n=this.grid.element;var t=n.parent()[0];return t&&t.clientHeight-n[0].offsetHeight>25?0:-1},_minWidth:function(n,t){var i=t[0];return i.id.indexOf("_container")<0&&t.parents(".ui-iggrid").length>0&&(i=t.parent()[0]),t=Math.min(t[0].clientWidth||t[0].offsetWidth,i.clientWidth||i.offsetWidth),n?Math.min(t,n.closest("table")[0].clientWidth):t},_doButtons:function(i){var l,b,s,v,h,c,o,w,f,u,y=this._oldOverflow,p=this._adding,e=this.css,a=this.grid.element,k=!t(this.grid.options.height),r=this._buts;if(i===1||i===2){y&&(delete this._oldOverflow,y.e.css("overflowX",y.x).css("overflowY",y.y));r&&(r.hide(),i===2&&(r.remove(),this._buts=null));i===2&&this._delBut&&(this._delHover(),this._delBut.remove(),delete this._delBut);return}(c=this._scrollDiv(),i&&(o=k?a.parent():a.closest(".ui-iggrid"),u=o[0]?Math.max(o[0].scrollHeight,o[0].offsetHeight):-1,u>=0&&u<20&&(this._oldOverflow={e:o,x:o.css("overflowX"),y:o.css("overflowY")},o.css("overflowX","visible").css("overflowY","visible")),r||(r=this._buts=n("<div />").css("position","absolute").addClass(e.buttonContainer).attr("unselectable","on"),k?r.prependTo(o):r.appendTo(o),this._butDone=u=n("<span />").addClass("done_id").addClass(e.button).addClass(e.doneButton).attr("unselectable","on").attr("tabIndex",this._ti+1).attr("title",this._loc("done",1)).appendTo(r).bind(this._evts),n("<span />").css("display","inline-block").addClass(e.doneIcon).attr("unselectable","on").appendTo(u),h=this._loc("done"),h?n("<span />").css("display","inline-block").attr("unselectable","on").html(h).appendTo(u):u.addClass(e.buttonIconOnly),this._butCancel=u=n("<span />").addClass(e.button).addClass(e.cancelButton).attr("unselectable","on").attr("tabIndex",this._ti+1).attr("title",this._loc("cancel",1)).appendTo(r).bind(this._evts),n("<span />").css("display","inline-block").addClass(e.cancelIcon).attr("unselectable","on").appendTo(u),h=this._loc("cancel"),h?n("<span />").css("display","inline-block").attr("unselectable","on").html(h).appendTo(u):u.addClass(e.buttonIconOnly),this._renderTouchUI&&this.options.enableDeleteRow&&(this._butDelete=u=n("<span />").addClass(e.button).addClass(e.doneButton).attr({unselectable:"on",tabIndex:this._ti+1,title:this._loc("deleteRow",1)}).prependTo(r),n("<span />").css("display","inline-block").addClass(e.deleteIcon).attr("unselectable","on").appendTo(u).css("left",0).bind(this._evts),h=this._loc("deleteRow",!0),n("<span />").css("display","inline-block").attr("unselectable","on").html(h).appendTo(u),u.css("float","left"),this._butCancel.css("float","right"),this._butDone.css("float","right"),r.css("width",this._minWidth(i,c)-6)),r._height=r[0].offsetHeight,r._width=r[0].offsetWidth),this._tdelTR=i.parent()),r)&&(i&&(u=Math.max(a[0].offsetHeight,a.parent()[0].offsetHeight),r.show(),p&&this.findInvalid()===null?this._butDone.removeClass(e.buttonDisabled):this._butDone.addClass(e.buttonDisabled),this._butsX=0,r.css({marginLeft:this._butsX+"px",marginTop:"0px"}),b=r.offset(),s=r[0].offsetHeight,l=i.offset(),v=i[0].offsetHeight,l.top-=b.top,w=c[0].scrollTop,f=p?1:this._upDown(i),f||(f=c[0].clientHeight+w-l.top-v-5-s,f<1&&f>l.top-s-w-5&&(f=1)),f=f>0?l.top+v+5:l.top-s-5,f+s>u&&(f+s<u+6?f=u-s-2:f-=10+s+v,f=Math.max(0,f)),r.css({marginTop:f+"px"}),this._butsY=p&&a.has(this._addTR).length===1?f:0),u=this._minWidth(i,c)-(r.offset().left+r._width+3-c.offset().left),this._renderTouchUI&&this.options.enableDeleteRow&&(u+=1),u!==0&&(this._butsX+=u,r.css("marginLeft",this._butsX+"px")),p&&this.grid.options.fixedHeaders!==!1&&r.css("marginTop",this._butsY+c[0].scrollTop+2+"px"))},_isEditor:function(n){var o,i,u,e,r,f=this._tds,s=this.options;if(f&&!t(n)){if(r=this._findCell(n),r&&s.editMode==="row"&&this._row(r)===this._rowIndex)return 1;o=this.grid.element[0];for(e in f)if(f.hasOwnProperty(e)&&(r=f[e],r&&(u=this.editorForCell(r),u)))for(i=n,u=u[0];i&&i!==o;){if(i===u)return 1;i=i.parentNode}}},_aCell:function(){var t,r=-1,i=this._sel("get");if(t=i?i.activeCell():null,t)return t.element;if(t=i?i.activeRow():null,t)for(t=t.element.children("td:not([data-parent='true'],[data-skip='true'])");++r<t.length;)if(t[r].offsetWidth>0)return n(t[r])},_sel:function(n,t){var f,i,r,u=this.grid.element.data("igGridSelection");if(!u||n==="get")return u;if(n==="end"){delete u._suspend;t&&t.type==="mousedown"&&u._mouseDown(t);return}if(n==="wait"){for(i=u.selectedRows(),f=i?i.length:0;f-->0;)if(r=i[f].element,r&&r.has(t).length)return;for(i=u.selectedCells(),f=i?i.length:0;f-->0;)if(r=i[f].element,r&&r[0]===t[0])return;if(i=u.selectedRow(),r=i?i.element:null,r&&r.has(t).length)return;if(i=u.selectedCell(),r=i?i.element:null,r&&r[0]===t[0])return;if(this.grid.hasFixedColumns()){for(i=u.selectedFixedRows(),f=i?i.length:0;f-->0;)if(r=i[f].element,r&&r.has(t).length)return;for(i=u.selectedFixedCells(),f=i?i.length:0;f-->0;)if(r=i[f].element,r&&r[0]===t[0])return;if(i=u.selectedFixedRow(),r=i?i.element:null,r&&r.has(t).length)return}return 1}return n==="refresh"?u._refresh():n==="act"&&u.options.activation?(u._suspend=1,!t)?void 0:u.options.mode==="row"?(u._realActiveRow={element:t.parent(),index:this._row(t)+this.grid._startRowIndex||0,id:this._prime(t)},u._activateRow(u._realActiveRow)):(t=u._cellFromElement(t[0],this._row(t),t.index()),u._activateCell(t)):void 0},_doDelete:function(t,i){var f,u,r;if(!i){for(u=this._sel("get"),r=u?u.selectedRows():null,f=0;f<(r?r.length:0);f++)this._doDelete(t,r[f].element);r=u?u.selectedRow():null;r&&this._doDelete(t,r.element)}if(r={element:i,rowID:this._prime(n(i.children()[0]))},i&&this._fire("rowDeleting",t,r))return this._delHover(),this._update(r.rowID,i[0]),t&&this._sel("refresh"),this._fire("rowDeleted",t,r),1},_checkRow:function(t){var i;return(t=t&&t.index()<this.grid.rows().length?t[0]:null,t&&t.className.indexOf(this.grid.css.deletedRecord)<0&&!n(t).attr("data-grouprow")&&n(t).parent().is("tbody")&&(i=this.grid.hasFixedColumns()&&n(t).closest("div").attr("data-fixed-container")?n("#"+this.grid.id()+"_fixed").find("tbody"):this.grid.element.find("tbody"),n(t).parent()[0]===i[0]))?t:null},_delHover:function(t){var c,e,a,s,k,v,y,h,d,p,f,l,o,g,r=this._delBut,w=this._delTR,nt=this.grid.hasFixedColumns(),b=this.css;if((r&&this._doHov(this._isSrc(r,t)?r[0]:null,b.buttonHover),t!==null&&t!==undefined&&nt&&this.grid._isFixedElement(n(t))&&(t=this.grid.element.find('tbody tr[data-id="'+n(t).closest("tr").attr("data-id")+'"]')),t=t?this._checkRow(n(t).closest("tr")):null,t!==w&&(w||t)&&(r||t))&&(this._delTR=t,r||(this._delBut=r=n("<span />").css("position","absolute").addClass(b.deleteButton).attr("unselectable","on").attr("title",this._loc("deleteRow",1)),n("<span />").css("display","inline-block").addClass(b.deleteIcon).attr("unselectable","on").appendTo(r),e=this._loc("deleteRow"),e&&n("<span />").css("display","inline-block").attr("unselectable","on").html(e).appendTo(r)),w&&r.hide(),t)){for(c=this._colShift(null,t)-1,l=t.childNodes;++c<l.length;)if(l[c].offsetWidth>0)break;(t=l[c],t)&&(o=n(t),f=this.grid.element.parent(),nt&&this.grid.element.data("igGridColumnFixing").options.fixingDirection==="right"&&(f=this.grid.fixedBodyContainer(),o=f.find("tbody tr").eq(o.closest("tr").index()).find("td:last")),e=r[0].parentNode,e!==f&&e!==f[0]&&(e||r.bind(this._evts).mouseup(function(n){u(n)}),r.prependTo(f)),r.css({marginLeft:"0px",marginTop:"0px"}).show(),d=r.offset(),p=o.offset(),s=r[0].offsetHeight,k=t.offsetHeight,h=p.top-d.top,g=h+Math.round((k-s)/2),y=f[0].scrollLeft,v=this._minWidth(o,f),s=r[0].offsetWidth,a=v+y-s-i(o,"paddingLeft")-i(o,"borderLeftWidth")-5,r.css({marginTop:g+"px",marginLeft:a+"px"}),h=s+r.offset().left-p.left-y-v+5,h>0&&r.css("marginLeft",a-h+"px"))}},_isSrc:function(n,t){if(n&&t&&(n[0]===t||n[0]===t[0]||n.has(t).length>0))return n},_doHov:function(t,i){var r=this._hov;if(r&&i&&r.e[0]===t)return 1;if(r&&r.e.removeClass(r.css),i)return t=n(t),this._hov={e:t,css:i},t.addClass(i);delete this._hov},_noMove:function(t){var f,e,u,r,i=this._nm;if(i!==1&&(!t||i)){if(!i&&(r=this.grid.element[0].id,u=n("#"+r+"_scroll"),u.length!==1&&(u=n("#"+r+"_displayContainer")),!u.length)){this._nm=1;return}if(i=this._nm=this._nm||{x:0,y:0,div:u[0]},i.ex=i.ex||n("#"+r+"_hscroller")[0]||n("#"+r+"_horizontalScrollContainer")[0]||i.div,f=i.ex.scrollLeft,i.ey=i.ey||n("#"+r+"_scrollContainer")[0]||i.div,e=i.ey.scrollTop,t)return Math.abs(i.x-f)>1||Math.abs(i.y-e)>1;i.x=f;i.y=e}},_onEvt:function(t,i){var o,k,v,d,g,rt,nt,f=this,w=e(),ut=f._hovTouch,r=t?t.target:null,s=t?t.keyCode:0,h=f._lastEvt,st,l=f.css,b=f._delBut,ft=f._butDelete,ht=f._newTR,y=f._addTR,tt=f.grid.element,et=f.grid.hasFixedColumns(),a=f.options,c,it,p,ot,ct;if(i===2&&f._skipMD&&w-f._skipMD<999&&(f._skipMD=w+200),et&&n(r).closest("div").attr("data-fixed-container")!==undefined&&(tt=n(r).closest("table")),(i!==1||!f._skipMD||!(f._skipMD-w>0))&&!n.ig.util.evtButton(t)){if(a.excelNavigationMode===!0&&this._isEditor(r)&&(o=this._findCell(r),o)){if(c=this.editorForCell(o),!c)return;if(c=c.data("igEditor")||c.data("igCombo")||c.data("igEditorFilter"),it=this._keyForEditor(c.element),n.ig.indexInArray([39,37],s)>=0&&(c._old===null||c._old===undefined||c._old!==null&&c._old!==undefined&&c.value()!==null&&c._old.toString()===c.value().toString()||Object.prototype.toString.call(c._old)==="[object Date]"&&c._old.toString()===this._val(o).toString()))if(this.options.editMode==="row"||this._isAdd(o)){if(nt=this._nextEditor(it,s===37?-1:0),nt){this._scrollTo(nt.parent(),nt);return}if(rt=this._butDone,!rt||rt[0].offsetWidth===0){this._nextEdit(t,s===37?-1:0);return}}else{s===37&&this._nextEdit(t,-1);s===39&&this._nextEdit(t,1);return}if(s===38){this._nextEdit(t,"-tr1",it);return}if(s===40){this._nextEdit(t,0,it);return}}if(tt&&r&&(!(i<4||s===13)||!(t.shiftKey||t.ctrlKey))&&(s!==13||!f._13)&&(s===8&&r.readOnly&&u(t),i===9||!h||h.src!==r||h.type!==i||h.x!==t.pageX||h.y!==t.pageY||!(w<h.now+500))){if(f._lastEvt={src:r,now:w,type:i,x:t.pageX,y:t.pageY},i>=11&&i!==14){p=t.originalEvent.touches&&t.originalEvent.touches[0]?t.originalEvent.touches[0].pageX:t.originalEvent.clientX;switch(i){case 11:f._firstTouchX=p;f._lastTouchX=p;f._firstTouchRow=t.originalEvent.touches?n(t.originalEvent.touches[0].target).closest("tr"):n(t.originalEvent.target).closest("tr");break;case 12:Math.abs(f._lastTouchX-f._firstTouchX)>parseInt(f.options.swipeDistance,10)&&f._firstTouchRow&&(this._delHover(),this._delHover(f._firstTouchRow));delete f._firstTouchX;delete f._lastTouchX;delete f._firstTouchRow;break;case 13:ot=f.grid.scrollContainer().scrollLeft()||0;ct=f.grid.scrollContainer().width()||0;(p>f._lastTouchX&&ot===0||p<f._lastTouchX&&ot>=f.grid._hscrollbarinner().width()-ct)&&t.preventDefault();f._firstTouchRow&&(f._lastTouchX=p)}return}if(i===8)return ut?void 0:(this._delHover(),this._doHov());if(h=b?f._isSrc(b,r):null,st=ft&&!ft.hasClass(f.css.buttonDisabled)?f._isSrc(ft,r):null,g=tt.find("tbody"),i===7){a.enableDeleteRow&&(h?b.addClass(f.css.buttonHover):(b&&b.removeClass(f.css.buttonHover),this._delHover(this._tds||!this._isSrc(g,r)||this._noMove(!0)?null:r)));return}if((h||st)&&(i<4||i===14)){(i!==2||n.ig.util.isIE&&n.ig.util.browserVersion>=10)&&i!==14||!(this._delTR||this._tdelTR)||(u(t),this._endEdit(),this._doDelete(t,n(this._delTR||this._tdelTR))&&(delete this._delTR,delete this._tdelTR));return}if(d=y?y.children()[y.children().length-1]:null,s===46)return a.enableDeleteRow?this._doDelete(t):null;if(i===9){if(this._nm&&!this._noMove(!0))return;this._delHover();h=r.scrollLeft;this._tds&&this._doButtons();y&&h!==this._scrollX&&n(d).css("paddingLeft",this._addLeft+h+"px");this._scrollX=h;return}if(this._isSrc(y,r)){if(!this._isSrc(n(d),r))return;if(this._delHover(),r=d,i===5)return n(r).addClass(l.addRowActive);if(i===6)return n(r).removeClass(l.addRowActive);if(i===7)return this._doHov(r,l.addRowHover);if(s===32||s===13)return this.startAddRowEdit(t)}if(s===27)return this._endEdit(t,null,50);if(v=this._isSrc(this._butDone,r),k=this._isSrc(this._butCancel,r),o=this._isSrc(this._buts,r),o||v||k){if(v||k)if(i<5&&u(t),r=v||k,i===2){if(r.hasClass(l.buttonDisabled))return;this._endEdit(t,v,1)}else if(i!==7||r.hasClass(l.buttonDisabled)){if(i===5)r.addClass(l.buttonActive);else if(i===6)r.removeClass(l.buttonActive);else if(s===13||s===32)this._endEdit(t,v,1);else if(s===9){if(t.shiftKey)o=v||this._butDone.hasClass(l.buttonDisabled)?null:this._butDone;else{if(!o)return;o=this._butCancel}if(o){o[0].focus();return}r=this._lastEditor();o=r?r.parent():null;o&&this._scrollTo(o,r)}}else this._doHov(r[0],l.buttonHover);return}if(ht&&i<4){if(this._isSrc(ht,r))return;if(et&&this.grid._isFixedElement(n(r))&&(y=this.grid.fixedHeadersTable().find("thead tr[data-add-row]")),this._isSrc(y,r)){i===2&&(a.editMode==="rowedittemplate"?this._startEditRowTemplate(t,null,o,1):this.startAddRowEdit(t));return}}if(i<4&&!this._isSrc(g,r)){if(et&&this.grid._isFixedElement(n(r))&&!n(r).is("th")&&!n(r).parent().is("th")&&n(r).closest("div").attr("data-fixed-container")===g.closest("div").attr("data-fixed-container"))return;this._tds&&r!==tt.parent()[0]&&r!==this._div()[0]&&r!==this._hscroll(1)[0]&&this._endEdit(t);return}if((s!==13||(this._nextEdit(t,0),!this._tds))&&!this._isEditor(r)&&!this._isEditor(n(r).find("input")[0])&&(o=this._findCell(r),!this._tds||!(i<4)||!(i>1||o)||!this._endEdit(t,this._adding?null:1))){if(i===1){o&&this._sel("get")&&(this._waitSel=this._sel("wait",o));return}if(h=a.editMode==="cell",r=a.startEditTriggers,r&&!this._tds&&(h||a.editMode==="row"||a.editMode==="rowedittemplate")){if(r.toLowerCase||(r=r.toString()),r=r.toLowerCase(),s===113&&r.indexOf("f2")>=0||s===13&&r.indexOf("enter")>=0?o=this._aCell():(r.indexOf(t.type)<0||i===2&&r.indexOf("dbl")>=0)&&(o=null),ut&&i<3&&ut!==f._delTR)return;if(o&&(this._isToggle(t)||(!this._waitSel||i===4)&&!this._sel("wait",o))){if(a.editMode==="rowedittemplate"&&o.parent().attr("data-grouprow")!=="true"){this._startEditRowTemplate(t,null,o);return}if(this._startEdit(o,t,h))return}}}}}},_startEditRowTemplate:function(i,r,u,f){var o=n("#"+this.grid.container().attr("id")+"_ret"),e;if(r=!t(u)&&u.parent().length>0?u.parent():r,e={rowAdding:f?!0:!1,rowID:f?-1:this._prime(u||r.children().first())},this._fire("editRowStarting",i,e))return(this._checkRow(r)||f)&&(o[0]===undefined&&this._renderRowEditDialog(i,r),this._openRowEditDialog(i,r))?(this._fire("editRowStarted",i,e),1):0},_calcRowDialogLeftTop:function(t){var o,s,l,r,u,a,f,e,v,h=n("#"+this.grid.container().attr("id")+"_block_ret"),y,i,p,c,w,b;y=this.element.closest(".ui-iggrid-root").data("igHierarchicalGrid")?this.element.closest(".ui-iggrid-root").data("igHierarchicalGrid").rootWidget():this.grid;i=y.container();p=y.container().children("[id$='_hscroller_container']");l=i.offset();o=l.left;s=l.top;(h.outerWidth()!==i.outerWidth()||n.ig.util.isIE7===!0)&&h.css("width",i.outerWidth());(h.outerHeight()!==i.outerHeight()||n.ig.util.isIE7===!0)&&h.css("height",i.outerHeight()+(n.ig.util.isIE7?p.height():0));n("#"+this.grid.container().attr("id")+"_dialog_error").hide();h.css({left:0,top:0}).fadeToggle();u=i.outerWidth();r=i.outerHeight();v=n(window).width();a=n(window).height();u+o>v&&(u=u-(u+o-v));u<=0&&(u=i.outerWidth());r+s>a&&(r=r-(r+s-a));r<=0&&(r=i.outerHeight());f=parseInt(this.options.rowEditDialogHeight,10);e=parseInt(this.options.rowEditDialogWidth,10);(isNaN(f)||f<=0)&&(f=t.outerHeight());(isNaN(e)||e<=0)&&(e=t.outerWidth());s=parseInt(r/2,10)-f/2;o=parseInt(u/2,10)-e/2;c=t.children(".ui-dialog-content");b=t.children(".ui-dialog-titlebar");w=t.children(".ui-dialog-buttonpane");t.css({left:o,top:s,width:e,height:f});t.fadeToggle(n.proxy(this._setResizableEnv,this));c.css("height",t.height()-b.outerHeight(!0)-w.outerHeight(!0)-c.outerHeight()+c.height())},_getColumnSettingsByKey:function(n){for(var t=0;t<this.options.columnSettings.length;++t)if(this.options.columnSettings[t].columnKey===n)return this.options.columnSettings[t];return null},_doType:function(n,t){return n==="text"&&(n=0),n==="mask"&&(n=1),n==="date"&&(n=2),n==="datepicker"&&(n=3),n==="numeric"&&(n=4),n==="currency"&&(n=5),n==="percent"&&(n=6),(typeof n!="number"||n<0||n>6)&&(n=typeof t=="number"?4:t&&t.getMonth?2:0),this._type=n,n},_fillRowEditDialogTable:function(i){var l,o=this.grid.options.columns,f,c,s,v,u,e,h,y=this.options.rowEditDialogRowTemplate,a=this.options.rowEditDialogRowTemplateID,p="#"+this.grid.container().attr("id")+"_igButton";for(l=n("#"+this.grid.container().attr("id")+"_ret table tbody"),l.empty(),this._editors=this._editors||{},i||(this._adding=!0),f=0;f<o.length;++f)(h=[],e=o[f].key,u=this._getColumnSettingsByKey(e),shouldAdd=u===null?!0:!1,u=u||{},v=i?this._getVal(this._fixPrime(i.attr("data-id")),e):this._defVal(e,!0),u&&u.readOnly&&!this.options.showReadonlyEditors||o[f].hidden)||(h.push({headerText:o[f].headerText,dataKey:e}),c=a?this._jsr?n(n("#"+a).render(h)):n(n.ig.tmpl(n("#"+a).html().fullTrim(),h)):y?this._jsr?n(n.render[this.grid.id()+"_rowEditDialogRowTemplate"](h)):n(n.ig.tmpl(this.options.rowEditDialogRowTemplate,h)):n("<tr><td>"+o[f].headerText+"<\/td><td data-key='"+e+"'><input /><\/td><\/tr>"),c.appendTo(l),s=n(c.find(">td[data-key] input")[0]),s.length||(s=n(c.find(">td[data-key] textarea")[0])),o[f].dataType==="bool"&&n.extend(!0,u,{editorOptions:{listItems:[!0,!1],button:"dropdown"}}),u.readOnly&&n.extend(!0,u,{editorOptions:{readOnly:!0}}),u.editorOptions?u.editorOptions.width=t(u.editorOptions.width)?this.options.rowEditDialogFieldWidth:u.editorOptions.width:u.editorOptions={width:this.options.rowEditDialogFieldWidth},shouldAdd&&this.options.columnSettings.push(n.extend(!0,{},u,{columnKey:e})),this._createEditor(i?i.children().eq(f):this._newTR.children().eq(f),e,s),this._editors[e]=s,r(s,"setValue",v));n(p).igButton("option","disabled",!0)},_openRowEditDialog:function(t,i){var r=n("#"+this.grid.container().attr("id")+"_ret"),u,f=this;return(u=this._fire("rowEditDialogOpening",t,{dialogElement:r,owner:this}),u)?(r.data("tr",i),this._fillRowEditDialogTable(i),this._calcRowDialogLeftTop(r),setTimeout(function(){r.find("input")[0]&&r.find("input")[0].focus();r.focus();f._fire("rowEditDialogOpened",t,{dialogElement:r,owner:f})},100),t!==null&&t!==undefined&&(t.preventDefault(),t.stopPropagation()),1):0},_renderRowEditDialog:function(t,i){var r,u,e,o,s,h=this,f;r=n("<div><\/div>").appendTo(this.grid._rootContainer()).attr("id",this.grid.container().attr("id")+"_ret").css("position","absolute").addClass(this.css.rowEditDialog).data("efh","1").hide();r.data("tr",i);o=this._fire("rowEditDialogContentsRendering",t,{dialogElement:r,owner:h});o&&(n("<div><\/div>").appendTo(this.grid._rootContainer()).attr("id",this.grid.container().attr("id")+"_block_ret").css("position","absolute").addClass(this.css.blockArea).data("efh","1").hide(),u=n("<div><\/div>").appendTo(r).addClass(this.css.rowEditDialogHeaderCaption),n("<span><\/span>").appendTo(u).text(this._loc("rowEditDialogCaption")).addClass(this.css.rowEditDialogHeaderCaptionTitle),n("<span><\/span>").appendTo(n("<a><\/a>").appendTo(u).attr("href","#").attr("role","button").addClass("ui-dialog-titlebar-close ui-corner-all")).bind({click:n.proxy(this._closeRowEditDialog,this)}).addClass("ui-icon ui-icon-closethick"),e=n("<div><\/div>").appendTo(r).addClass("ui-dialog-content").css("overflow","auto").css("height",this.options.rowEditDialogContentHeight),n("<table><tbody><\/tbody><\/table>").appendTo(e).addClass(this.css.rowEditDialogTable),f=n("<div><\/div>").appendTo(n("<div><\/div>").appendTo(r).addClass(this.css.rowEditDialogOkCancelButton)).addClass("ui-dialog-buttonset"),n("<button/>").appendTo(f).igButton({labelText:this._loc("cancel"),width:this.options.rowEditDialogOkCancelButtonWidth}).bind({mousedown:n.proxy(this._closeRowEditDialog,this),click:function(n){n.preventDefault()}}),n("<button/>").appendTo(f).igButton({labelText:this._loc("done"),disabled:!0,width:this.options.rowEditDialogOkCancelButtonWidth}).bind({click:n.proxy(this._rowEditDialogDoUpdate,this)}).attr("id",this.grid.container().attr("id")+"_igButton"),s=this._hc===!0?n("#"+this.grid.element[0].id.split("_")[0]+"_container"):this.options.rowEditDialogContainment==="owner"?this.grid.container():"window",r.bind({keydown:function(t){t.keyCode===n.ui.keyCode.ESCAPE&&h._closeRowEditDialog(t)}}).draggable({containment:s,handle:u}).attr("role","dialog").attr("tabIndex",-1),(typeof Modernizr!="object"||Modernizr.touch===!1)&&r.resizable({minHeight:r.outerHeight()/4,minWidth:r.outerWidth()/2,containment:"parent",resize:n.proxy(this._resizeHandler,this)}),this._fire("rowEditDialogContentsRendered",t,{dialogElement:r,owner:this}))},_setResizableEnv:function(){var t=n("#"+this.grid.container().attr("id")+"_ret"),i=t.find(">.ui-dialog-content"),r=t.find(">.ui-dialog-titlebar"),u=t.find(">.ui-dialog-buttonpane"),f=i.outerHeight()-i.height();this._resizeCont=i;this._heightDifference=r.outerHeight(!0)+u.outerHeight(!0)+f},_resizeHandler:function(n,t){var i=t.originalElement;this._resizeCont.css({height:i.height()-this._heightDifference+"px"})},_rowEditDialogDoUpdate:function(t){var h=n("#"+this.grid.container().attr("id")+"_ret"),c=h.find("table tbody [data-key]"),i=h.data("tr"),e,o={},l={},u,f,a,s;if(this.findInvalid())return 0;for(e=0;e<c.length;++e)u=c.eq(e).attr("data-key"),o[u]=r(this._editors[u],"getValue"),l[u]=this._editors[u]._oldCellVal;return(s=!(i!==null&&i!==undefined&&i.length>0),a=s?-1:this._prime(i.children().first()),f={oldValues:l,values:o,rowID:a,keepEditing:!1,update:!0,rowAdding:s},!this._fire("editRowEnding",t,f))?0:(s?this._fire("rowAdding",t,f)&&(this._update(o),this._fire("rowAdded",t,f)):this._update(i.data().id,i[0],o),this._fire("editRowEnded",t,f),this._closeRowEditDialog(t),1)},_closeRowEditDialog:function(t){var i=!0,r=n("#"+this.grid.container().attr("id")+"_ret");return(i=this._fire("rowEditDialogClosing",t,{dialogElement:r,owner:this}),i)?(n("#"+this.grid.container().attr("id")+"_block_ret").fadeToggle(),n("#"+this.grid.container().attr("id")+"_ret").data("tr",null).fadeToggle(),delete this._defValue,t&&(t.preventDefault(),t.stopPropagation()),delete this._editors,this._fire("rowEditDialogClosed",t,{dialogElement:r,owner:this}),1):0},_lastEditor:function(){var t,n=this._prevEdit,i=this._editors;if(!n)for(t in i)i.hasOwnProperty(t)&&(n=i[t]||n);return n},_end:function(){this._delHover();this._endEdit()},destroy:function(){var t=this._div(),i=this.grid,r=i.element;return!this._evts||!r||!t?this:(this._hComboRemove(!0),this._doButtons(2),t.unbind(this._evts),this._renderTouchUI&&this.options.editMode!=="row"&&t.unbind(this._tEvts),this._sEvts&&r.parent().unbind(this._sEvts),r.unbind(this._gEvts),this._end(),i.hasFixedColumns()&&this._evts&&i.fixedContainer().unbind(this._evts),this._headerRendered(1),this._evts=this._sEvts=this._gEvts=null,n.Widget.prototype.destroy.call(this),this.options.editMode==="rowedittemplate"&&(n("#"+this.grid.container().attr("id")+"_block_ret").remove(),n("#"+this.grid.container().attr("id")+"_ret").remove()),this)},_hidingFinished:function(){this._headerRendered()},_hidingFinishing:function(){var t,n,i=this._addTR,u=this.grid,r=this._editors;if(u._initialized){if(this._endEdit(),this._doButtons(2),this._groupTD1&&(this._groupTD1.remove(),this._groupTD2.remove(),delete this._groupTD1,delete this._groupTD2,this._cShift=this._cShiftAdd=-1),i){for(n=this._colShift(null,i[0]),this._addTrShift=[],this._newTrShift=[];n-->0;)this._addTrShift[n]=i.children()[n],this._newTrShift[n]=this._newTR.children()[n];i.remove();this._newTR.remove();this.grid.hasFixedColumns()&&this.grid.fixedHeadersTable().find("thead tr[data-new-row], thead tr[data-add-row]").remove()}for(t in r)r.hasOwnProperty(t)&&r[t]&&r[t].remove();this._newTR=this._addTR=this._editors=this._mapAdd=this._map=null;this._cShiftAdd=this._cShift=-1;this._hComboRemove()}},_rerender:function(i){var h,u,r,e,c,l,a,s,o,f=this.grid,v=f.pendingTransactions(),y=v?v.length:0,p=f.element.children("tbody"),w=f.options.jQueryTemplating;if(!i||!i.owner||i.owner.id()===f.id())while(y-->0){if(r=v[y],c=r.type==="cell",e=p.find('[data-id="'+r.rowId+'"]'),r.type==="row"||r.type==="newrow"||c)for(e.addClass(f.css.modifiedRecord),s=e.length&&!w?e.children("td"):null,h=s?s.length:0;h-->0;)a=n(s[h]),o=this._key(a),u=undefined,r.row?u=r.row[o]:c&&o===r.col&&(u=r.value),u!==undefined&&(l=t(o)?null:this._gridCol(o),u=l?f._renderCell(u,l):n.ig.formatter(u),a.html(u));(r.type==="deleterow"||r.type==="insertrow")&&(e.addClass(f.css.deletedRecord),n("#"+this.grid.id()+"_fixed").find('[data-id="'+r.rowId+'"]').addClass(f.css.deletedRecord))}},_bind:function(n){var s,h,l=this.grid,c=l.dataSource._data,u=c?c.length:0,r=this.grid.dataSource.pendingTransactions(),i=r?r.length:0,e=this._txLast,o=e?e.length:0;if(this._addRowNum=Math.max(this._addRowNum||1,u+1),this._endEdit(),n){if(n.owner&&n.owner.id()!==this.grid.id())return}else if(u&&t(l.options.primaryKey)&&t(c[0].ig_pk))while(u-->0)c[u].ig_pk=u;if(!(i<1)){if(i===o){while(o-->0)if(s=r[o],h=e[o],s.tid!==h.tid||s.value!==h.value||s.row!==h.row)break;if(o<0)return}for(e=this._txLast=[];i-->0;)e[i]={tid:r[i].tid,value:r[i].value,row:r[i].row};this._fire("dataDirty",this._evt||{},{})&&this.options.enableDataDirtyException&&f("dataDirtyException")}},_fixPrime:function(n,i){var o=this.grid,h=o.options,r=h.primaryKey,s,e=t(r)?null:this._gridCol(r),u=o.dataSource._data;if(i){if(!e)return n.ig_pk=i=u.length,i;i=n[r];t(i)&&(i=n[r]=this._defVal(r,1));n=i}return s=u&&u.length>0&&!t(u[0][r])?typeof u[0][r]:null,n=e&&(e.dataType==="number"||e.dataType==="numeric"||s==="number")?parseInt(n,10):n,e||u[n]&&u[n].ig_pk===n||f("noPrimaryKeyException"),n},_getRecord:function(n){var i=-1,r=this.grid.dataSource._data,f=r.length,u=this.grid.options.primaryKey;for(n=this._fixPrime(n),t(u)&&(u="ig_pk");++i<f;)if(r[i][u]===n)return r[i]},_getVal:function(n,t){for(var r,i,f=this.grid,u=f.dataSource.pendingTransactions(),e=u?u.length:0;e-->0&&r===undefined;)i=u[e],i.rowId===n&&(i.row?r=i.row[t]:i.type==="cell"&&i.col===t&&(r=i.value));return r===undefined&&(n=this._getRecord(n),r=n?n[t]:null),f._fixDate(r,this._gridCol(t))},_childrenWithAddRowEnabled:function(n,i){var f,u,r,e;if(n.columnLayouts)for(f=0;f<n.columnLayouts.length;f++){if(r=n.columnLayouts[f],e=i||!1,r.features&&r.features.length>0)for(u=0;u<r.features.length;u++)if(r.features[u].name==="Updating"){e=t(r.features[u].enableAddRow)?e:r.features[u].enableAddRow;break}if(e)return!0}return!1},_update:function(i,r,u,f,e){var y,h,b,nt,k=u===undefined,o=this.grid,c=o.options,l=c.autoCommit,p=o.dataSource,d=this.grid.hasFixedColumns(),a=this._fixPrime(i,r?null:p),w=o._virtualDom,tt,it,g,rt,v={},s,ut,ft=[];if(f&&e)v[f]=u,s=jQuery.extend(!0,{},v);else if(v=jQuery.extend(!0,{},u),s=this.grid.findRecordByKey(i),s){if(o.options.columnLayouts&&o.options.columnLayouts.length)for(h=0;h<o.options.columnLayouts.length;++h)ft.push(o.options.columnLayouts[h].key);n.each(s,function(t,i){v&&!v.hasOwnProperty(t)&&n.ig.indexInArray(ft,t)===-1&&(v[t]=i)})}for(k&&(this._isRowDeleted=!0),h=r?k?p.deleteRow(i,l):f?p.setCellValue(a,f,u,l):p.updateRow(a,v,l):p.addRow(a,i,l),y=p.pendingTransactions(),h=y?y.length:0;h-->0;)if(i===y[h].rowId){y[h].row&&f&&(y[h].row[f]=u);break}if(!k&&(w||l&&(i===null||i===undefined||s===null||s[o.options.primaryKey]===null))){b=n("#"+o.id()+(w?"_scrollContainer":"_scroll"))[0];nt=b?b.scrollTop:0;w&&c.virtualizationMode==="continuous"&&o._rerenderVirtualRecordsContinuous();w&&c.virtualizationMode==="fixed"&&o._renderVirtualRecords();nt&&(b.scrollTop=nt);w&&o._onVirtualVerticalScroll();return}if(l&&o.options.primaryKey&&s&&s[o.options.primaryKey]&&(d&&(o._isFixedElement(n(r))?this.grid.element.find('tbody tr[data-id="'+r.getAttribute("data-id")+'"]').data("id",s[o.options.primaryKey]).attr("data-id",s[o.options.primaryKey]):n("#"+o.id()+"_fixed").find('[data-id="'+r.getAttribute("data-id")+'"]').data("id",s[o.options.primaryKey]).attr("data-id",s[o.options.primaryKey])),n(r).data("id",s[o.options.primaryKey]),n(r).attr("data-id",s[o.options.primaryKey])),r){if(k)return l?(c.virtualization||c.rowVirtualization?(c.virtualizationMode==="continuous"?o._rerenderVirtualRecordsContinuous():(this.grid._startRowIndex+this.grid._virtualRowCount===this.grid._totalRowCount&&this.grid._startRowIndex--,this.grid._totalRowCount--,o._renderVirtualRecords()),r=null):(g=n(r),rt=g.parent().children(":not([data-container],[data-grouprow])").index(r),it=g.next("tr[data-container='true']"),g.remove(),it.length===1&&it.remove(),d&&(n("#"+this.grid.id()+"_fixed").find('[data-id="'+n(r).attr("data-id")+'"]').remove(),this.grid.element.data("igGridColumnFixing")._syncContainerHeights()),this.grid._reapplyZebraStyle(rt)),this._trigger("internalrowdeleted",null,{owner:this})):d&&n("#"+this.grid.id()+"_fixed").find('[data-id="'+n(r).attr("data-id")+'"]').addClass(o.css.deletedRecord),n(r).addClass(o.css.deletedRecord);for(tt=c.columns,u={},i=s&&!t(s[o.options.primaryKey])?s[o.options.primaryKey]:i,h=tt.length;h-->0;)a=tt[h].key,u[a]=this._getVal(i,a);u=r!==1?o._renderRow(f&&e?u:v,r,i):null;t(u)||(r=u)}else ut=o.element.children("tbody").children("tr.ui-iggrid-groupedrow").length>0,r=ut===!0?o.element.data("igGridGroupBy")._renderNewRow(i,a):o.renderNewRow(i,a),r=o.element.children("tbody").children("tr"),r=r[r.length-1],c.virtualization||c.rowVirtualization||this._addRowNum++,delete this._defValue,this._trigger("internalrowadded",null,{owner:this});r&&r!==1&&!l&&(d&&(o._isFixedElement(n(r))?this.grid.element.find('tbody tr[data-id="'+r.getAttribute("data-id")+'"]').addClass(o.css.modifiedRecord):n("#"+this.grid.id()+"_fixed").find('[data-id="'+r.getAttribute("data-id")+'"]').addClass(o.css.modifiedRecord)),n(r).addClass(o.css.modifiedRecord))},_columnFixed:function(n){this._cfUpdateDataSkipRows(n);n.isFixed&&n.isInit&&(this.grid.fixedContainer().bind(this._evts),this.options.enableAddRow&&(this._newTR=this.grid.headersTable().find("thead tr[data-new-row]")),this._isRowDeleted&&this.grid.element.data("igGridColumnFixing")._syncRowStyles());this._mapAdd=null},_cfUpdateDataSkipRows:function(n){if(n.visibleIndex!==-1){var t,u,f=n.visibleIndex,e=n.colInd===-1,r=this.grid.headersTable().find("thead tr[data-new-row]"),i=this.grid.fixedHeadersTable().find("thead tr[data-new-row]");n.isFixed?e?(r.find("[data-skip]:nth-child(1)").detach().appendTo(i),r=this.grid.headersTable().find("thead tr[data-add-row]"),i=this.grid.fixedHeadersTable().find("thead tr[data-add-row]"),r.find("[data-skip]:nth-child(1)").detach().appendTo(i)):(t=r.find("td:nth-child("+f+")"),t.detach().appendTo(i),r=this.grid.headersTable().find("thead tr[data-add-row]"),i=this.grid.fixedHeadersTable().find("thead tr[data-add-row]"),t=r.find("td[colspan]").eq(0),u=parseInt(t.attr("colspan"),10),t.attr("colspan",u-1),i.find("td[colspan]").length===0?t.clone().appendTo(i).attr("colspan",1):(t=i.find("td[colspan]"),u=parseInt(t.attr("colspan"),10),t.attr("colspan",u+1))):e?(i.find("[data-skip]:last-child").detach().prependTo(r),r=this.grid.headersTable().find("thead tr[data-add-row]"),i=this.grid.fixedHeadersTable().find("thead tr[data-add-row]"),i.find("[data-skip]:last-child").detach().prependTo(r)):(t=i.find("td:nth-child("+f+")"),t.detach().prependTo(r),r=this.grid.headersTable().find("thead tr[data-add-row]"),i=this.grid.fixedHeadersTable().find("thead tr[data-add-row]"),t=i.find("td[colspan]").eq(0),u=parseInt(t.attr("colspan"),10),u-1==0?t.remove():t.attr("colspan",u-1),t=r.find("td[colspan]"),u=parseInt(t.attr("colspan"),10),t.attr("colspan",u+1))}},_addDSSuccessHandler:function(){var i=this,t,r=i.grid;i._addChangesSuccessHandler!==null&&i._addChangesSuccessHandler!==undefined&&r.dataSource._removeChangesSuccessHandler(i._addChangesSuccessHandler);t=i.options.saveChangesSuccessHandler;t&&n.type(t)==="string"&&window[t]&&n.type(window[t])==="function"&&(t=window[t]);n.type(t)!=="function"&&(t=null);i._addChangesSuccessHandler=function(n){n.Success&&(r.rows().parent().find("."+r.css.deletedRecord).length&&r._renderData(),r.rows().removeClass(r.css.modifiedRecord),t&&t(n))};r.dataSource._addChangesSuccessHandler(i._addChangesSuccessHandler)},_addDSErrorHandler:function(){var t=this,i,r=t.grid;t._addChangesErrorHandler!==null&&t._addChangesErrorHandler!==undefined&&r.dataSource._removeChangesErrorHandler(t._addChangesErrorHandler);t.options.saveChangesErrorHandler&&(i=t.options.saveChangesErrorHandler,n.type(i)==="string"&&window[i]&&n.type(window[i])==="function"&&(i=window[i]),n.type(i)==="function"&&(t._addChangesErrorHandler=function(n,t,r){i(n,t,r)},r.dataSource._addChangesErrorHandler(t._addChangesErrorHandler)))},_injectGrid:function(t){var i=this,f,u,r=i.options;i.grid=t;i._cShiftAdd=i._cShift=-1;i._gEvts!==undefined&&i._gEvts!==null&&t.element.unbind(this._gEvts);i._gEvts={iggridvirtualrendering:function(){i._end()},ighierarchicalgridrowexpanded:function(){i._end()},iggriddatabinding:function(n,t){i._bind(t)},iggriddatarendering:function(n,t){i._bind(t)},iggridrowsrendering:function(n,t){i._bind(t)},iggriduidirty:function(){i._end()},iggridresizingcolumnresizing:function(){i._end()},iggridvirtualrecordsrender:function(n,t){i._rerender(t)},iggridrowsrendered:function(n,t){i._rerender(t)}};this.options.enableAddRow&&(i._gEvts.iggridheaderrenderedinternal=function(){i._headerRendered()},i._gEvts.iggridheaderextracellsmodified=function(){i._hierHeaderInit()});i._gEvts.iggridgroupbygroupedcolumnschanged=function(n,t){i._groupedColumnsChanged(t)};t.element.bind(this._gEvts);i._ti=parseInt(t.options.tabIndex||1,10);i._evts={iggridselectionmousedown:function(n){i._onEvt(n,1)},mousedown:function(t){var r;r=n.ig.util.isIE7===!0||n.ig.util.isIE8===!0?n.extend(!0,{},t):t;setTimeout(function(){i._onEvt(r,1)},0)},click:function(n){i._onEvt(n,2)},dblclick:function(n){i._onEvt(n,3)},keydown:function(n){i._onEvt(n,4)},focus:function(n){i._onEvt(n,5)},blur:function(n){i._onEvt(n,6)},mousemove:function(n){i._onEvt(n,7)},mouseleave:function(n){i._onEvt(n,8)},MSPointerUp:function(n){i._onEvt(n,14)},pointerup:function(n){i._onEvt(n,14)}};i._tEvts={touchstart:function(n){i._onEvt(n,11)},touchend:function(n){i._onEvt(n,12)},touchmove:function(n){i._onEvt(n,13)}};i._addDSSuccessHandler();i._addDSErrorHandler();i.grid.options._isHierarchicalGrid&&i.grid._originalOptions&&(i.grid._shouldAlwaysRenderChildIndicator=r.inherit?i._childrenWithAddRowEnabled(i.grid.options,r.enableAddRow):i._childrenWithAddRowEnabled(i.grid.options),i.grid.dataSource.settings.schema.layouts||(f=i.grid.element.closest(".ui-iggrid-root").data("igHierarchicalGrid"),u=[],f._parseLayouts(u,"",i.grid._originalOptions),i.grid.dataSource.settings.schema.layouts=u));this._renderTouchUI=typeof Modernizr=="object"&&Modernizr.touch===!0;(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&i.grid.element.css("-ms-touch-action","none");String(t.options.templatingEngine).toLowerCase()==="jsrender"&&(this._jsr=!0,r.rowEditDialogRowTemplate&&typeof r.rowEditDialogRowTemplate=="string"&&n.templates(this.grid.id()+"_rowEditDialogRowTemplate",r.rowEditDialogRowTemplate))}});n.extend(n.ui.igGridUpdating,{version:"14.1.20141.2031"});n.widget("ui.igEditorFilter",{setFocus:function(n,t){var i=this.options.provider;setTimeout(function(){i.setFocus(t)},n)},remove:function(){if(!this.options.provider.removeFromParent()){var t,n=this.element;t=n[0].parentNode;t&&t.tagName&&t.removeChild(n[0]);n=this.validator();n&&n.hide()}},validator:function(){return this.options.provider.validator()},hasInvalidMessage:function(){var n=this.validator();return n?n.isMessageDisplayed():!1},destroy:function(){this.options.provider.destroy()}});n.extend(n.ui.igEditorFilter,{version:"14.1.20141.2031"});n.ig.EditorProvider=n.ig.EditorProvider||Class.extend({createEditor:function(){return null},getValue:function(){return""},setValue:function(){return!1},setFocus:function(){return null},setSize:function(){return null},removeFromParent:function(){return!1},destroy:function(){return this},validator:function(){return null},validate:function(){var n=this.validator();return n?!n.validate():!0},isValid:function(){var n=this.validator();return n?n.isValidState():!0}});n.ig.EditorProviderDefault=n.ig.EditorProviderDefault||n.ig.EditorProvider.extend({createEditor:function(t,i,r,u,e,o,s,h){var l,c={};return r&&(c=r.editorOptions||c,c.type=r.editorType||c.type),l=c.type,c.enableUTCDates!==!1&&t.grid.options.enableUTCDates&&(c.enableUTCDates=!0),l||(o==="bool"?(c.listItems=["true","false"],c.button="dropdown",this._bool=c.readOnly=c.dropDownOnReadOnly=c.spinOnReadOnly=c.spinWrapAround=!0):e==="currency"||e==="percent"||e==="date"?(l=e,c.displayFactor=c.displayFactor||1):o==="number"?l="numeric":o==="date"?l="date":o||(l=s,l=typeof l=="number"?"numeric":l&&l.getTime?"date":null),c.type=l),e==="int"?c.maxDecimals=0:e!=="double"||c.maxDecimals?e&&l&&l.toString().indexOf("date")===0&&!c.dateInputFormat&&(c.dateInputFormat=e):c.maxDecimals=100,l!=="datepicker"&&l!==3||c.button||(c.button="dropdown"),c.tabIndex=u,c._eo=c._eo||{tc:c.textChanged,kd:c.keydown},c.textChanged=function(n,i){t._notifyChanged();c._eo.tc&&c._eo.tc(n,i)},c.keydown=function(n,r){t._13=c.textMode&&!c.hideEnterKey;t._notifyEditorKey(n,i);c._eo.kd&&c._eo.kd(n,r)},l=h||n("<span />"),l.igEditor||f("igEditorException"),c.id&&l.attr("id",c.id),c.excelNavigationMode=t.options.excelNavigationMode,l=l.igEditor(c),this.editor=l.data("igEditor"),l},getValue:function(){var n=this.editor.value();return this._bool?n==="true":n},setValue:function(n){return this.editor.value(this._bool?n&&n!=="false"?"true":"false":n)},setSize:function(n,t){this.editor._listRemove();this.editor._width(n);this.editor._height(t)},setFocus:function(){this.editor.setFocus(-1)},removeFromParent:function(){return this.editor.remove()},destroy:function(){this.editor.destroy()},validator:function(){return this.editor.validator()},validate:function(n){return this.editor.validate(n)},isValid:function(){return this.editor.isValid()}});n.ig.EditorProviderCombo=n.ig.EditorProviderCombo||n.ig.EditorProvider.extend({createEditor:function(t,i,r,u,e,o,s,h){var l,c={};return r&&(c=r.editorOptions||c),c.tabIndex=u,c._eo=c._eo||{tc:c.textChanged,kd:c.keydown},c.textChanged=function(n,i){t._notifyChanged();c._eo.tc&&c._eo.tc(n,i)},c.keydown=function(n,r){return r&&r.keyCode!==9&&r.owner&&r.owner._ddOn||t._notifyEditorKey(n,i),c._eo.kd?c._eo.kd(n,r):void 0},l=h||n("<span />"),l.igCombo||f("igComboException"),c.id&&l.attr("id",c.id),l=l.igCombo(c),this.editor=l.data("igCombo"),l},getValue:function(){return this.editor.options.allowCustomValue?this.editor.text():this.editor.value()},setValue:function(n){var t=this.editor,i=t.options;return i.filteringType&&(t.selectedIndex(-1),t.activeIndex(-1),i.parentCombo||t.dataBind()),i.allowCustomValue?t.text(n===null?i.nullText||"":n):t.value(n)},setSize:function(n,t){this.editor.options.width=n;this.editor.options.height=t;this.editor._doSize()},setFocus:function(){this.editor.setFocus(-1);this.editor.fieldElem[0].select()},removeFromParent:function(){return this.editor.remove()},validator:function(){return this.editor.validator()},destroy:function(){this.editor.destroy()}});n.ig.EditorProviderRating=n.ig.EditorProviderRating||n.ig.EditorProvider.extend({createEditor:function(t,i,r,u,e,o,s,h){var a,l,c={};return r&&(c=r.editorOptions||c),c._eo=c._eo||{vc:c.valueChange},c.valueChange=function(n,i){return t._notifyChanged(),c._eo.vc?c._eo.vc(n,i):void 0},l=h||n("<div />"),l.igRating||f("igRatingException"),c.id&&l.attr("id",c.id),l=l.igRating(c),this.editor=l.data("igRating"),a=this.editor._foc,a&&(a.attr("tabIndex",u),a.keydown(function(n){t._notifyEditorKey(n,i)})),l},getValue:function(){return this.editor.value()},setValue:function(n){return this.editor.value(n||0)},setSize:function(n,t){this._once||this.editor._doVotes(this.editor.options);this._once=1;var i=this.editor.element.parent().css("backgroundColor");this.editor.element.css({width:n,height:t,backgroundColor:i})},setFocus:function(){this.editor.focus()},validator:function(){return this.editor.validator()},destroy:function(){this.editor.destroy()}});n.ig.EditorProviderCheckbox=n.ig.EditorProviderCheckbox||n.ig.EditorProvider.extend({createEditor:function(t,i,r,f,e,o){var c,s=this,h=r;return s.updating=t,s.none=o==="bool"?!1:null,s.element=c=n('<span tabindex="'+f+'"/>').addClass("ui-igedit-field ui-state-default ui-corner-all").css({overflow:"hidden",textAlign:"center",outline:0,background:"#ffffff",display:"block"}).click(function(){s.setValue(0,t)}).focus(function(){s.css(!0,!0)}).blur(function(){s.css(!0)}).mouseover(function(){s.css(null,!0)}).mouseleave(function(){s.css()}).keydown(function(n){t._notifyEditorKey(n,i);n&&n.keyCode===32&&(u(n),s.setValue(0,t))}),h=h?h.editorOptions:null,h&&h.id&&c.attr("id",h.id),c=n('<span class="ui-state-default ui-corner-all ui-igcheckbox-small" />').css("display","inline-block").appendTo(c),n('<span class="ui-icon ui-icon-check ui-igcheckbox-small-on" />').css("display","block").appendTo(c),this.element},el:function(t){for(var i=this.element;t-->0;)i=n(i.children()[0]);return i},getValue:function(){return this.value},setValue:function(n,t){var i="ui-igcheckbox-small-off";t&&(n=!this.value);this.value=n||n===!1?n:this.none;n?this.el(2).removeClass(i):this.el(2).addClass(i);t&&t._notifyChanged()},css:function(n,t){for(var i=2,r=n?"ui-state-focus":"ui-state-hover";i-->0;)t?this.el(i).addClass(r):this.el(i).removeClass(r)},setSize:function(n,t){var r=this.el(0);this.el(1).css("marginTop",Math.floor((t-15)/2)+"px");this.css();this.css(!0);r.css({width:n-i(r,"borderLeftWidth")-i(r,"borderRightWidth"),height:t-i(r,"borderTopWidth")-i(r,"borderBottomWidth")})},setFocus:function(n){this.el(0).focus();n&&this.setValue(0,this.updating)}})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igLayoutManager",{css:{item:"ig-layout-item",container:"ig-layout",flowItem:"ig-layout-flow-item",flow:"ig-layout-flow",vertical:"ig-layout-vertical",verticalItem:"ig-layout-vertical-item",border:"ig-layout-border",borderItem:"ig-layout-border-item",borderHeader:"ig-layout-border-header",borderFooter:"ig-layout-border-footer",borderLeft:"ig-layout-border-left",borderCenter:"ig-layout-border-center",borderRight:"ig-layout-border-right",borderContainer:"ig-layout-border-container",gridItemAbs:"ig-layout-griditem-abs",gridItemRel:"ig-layout-griditem-rel"},options:{layoutMode:"column",itemCount:null,gridLayout:{cols:null,rows:null,columnWidth:null,columnHeight:null,marginLeft:0,marginTop:0,rearrangeItems:!0,overrideConfigOnSetOption:!0,animationDuration:500},borderLayout:{showHeader:!0,showFooter:!0,showLeft:!0,showRight:!0,leftWidth:"20%",rightWidth:"10%"},items:[{rowSpan:1,colSpan:1,colIndex:0,rowIndex:0,width:null,height:null}],width:null,height:null},events:{itemRendering:"itemRendering",itemRendered:"itemRendered",rendered:"rendered",internalResizing:"internalResizing",internalResized:"internalResized"},_opt:null,_createWidget:function(t){this.options.items=[];this.options.gridLayout.useOffset=!0;this._opt={eventHandlers:{},gridLayout:null,borderLayout:null,scrollBarWidth:n.ig.util.getScrollWidth(),scrollBarHeight:n.ig.util.getScrollHeight(),setOptionCall:!1};t&&t.items&&(t.items=n.extend(!0,[],t.items));n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){var t=this;this.element.addClass(this.css.container);this.options.width!==null&&this.element.css("width",this.options.width);this.options.height!==null&&this.element.css("height",this.options.height);this._opt.eventHandlers.elementResizeHandler=function(n){var i=t._triggerInternalResizing(n);i&&t.reflow(!1,n)};this.element.on("resize",this._opt.eventHandlers.elementResizeHandler);this._opt.eventHandlers.windowResizeHandler=function(n){var i=t._triggerInternalResizing(n);i&&t.reflow(!1,n)};n(window).on("resize",this._opt.eventHandlers.windowResizeHandler);switch(this.options.layoutMode){case"grid":this._initGridLayout();break;case"border":this._initBorderLayout();break;case"flow":this._initFlowLayout();break;case"vertical":this._initVerticalLayout()}},_setOption:function(t,i){if(this.options[t]!==i){var r=this.options,e=n.extend(!0,{},this.options.borderLayout),u,f;switch(t){case"gridLayout":r.gridLayout.overrideConfigOnSetOption?(f=n.extend(!0,{overrideConfigOnSetOption:r.gridLayout.overrideConfigOnSetOption,useOffset:r.gridLayout.useOffset},{cols:null,rows:null,columnWidth:null,columnHeight:null,marginLeft:0,marginTop:0,rearrangeItems:!0,animationDuration:500}),u=!0):(f=n.extend(!0,{},this.options.gridLayout),u=i.cols||i.rows||i.columnWidth||i.columnHeight||i.marginLeft||i.marginTop||i.useOffset)}n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"width":this.element.width(this.options.width);r.layoutMode==="grid"&&this.reflow(!0);break;case"height":this.element.height(this.options.height);r.layoutMode==="grid"&&this.reflow(!0);break;case"gridLayout":this.options.gridLayout=n.extend(!0,{},f,this.options.gridLayout);u?(this._opt.setOptionCall=!0,this._initGridLayout(),this._opt.setOptionCall=!1):(i.hasOwnProperty("rearrangeItems")&&(this._opt.gridLayout.rearrangeItems=i.rearrangeItems),i.hasOwnProperty("animationDuration")&&(this._opt.gridLayout.animationDuration=i.animationDuration));break;case"borderLayout":this._destroyBorderLayout();this.options.borderLayout=n.extend(!0,{},e,this.options.borderLayout);this._initBorderLayout();break;case"items":switch(r.layoutMode){case"vertical":this._destroyVerticalLayout();this._initVerticalLayout();break;case"grid":this._updateGLItemsConfig();break;case"flow":this._destroyFlowLayout();this._initFlowLayout()}break;case"itemCount":switch(r.layoutMode){case"vertical":this._destroyVerticalLayout();this._initVerticalLayout();break;case"flow":this._destroyFlowLayout();this._initFlowLayout()}}}},reflow:function(n,t){this.options.layoutMode==="grid"&&this._reflowGlConfiguration(n,this.options.gridLayout.animationDuration,t);this.options.layoutMode==="border"&&this._setBorderLayoutPaddings()},_initVerticalLayout:function(){var t,u=this.options.itemCount,i=this.options.items,r;if(this.element.addClass(this.css.vertical),u>0){for(t=0;t<u;t++)this._trigger(this.events.itemRendering,null,{index:t}),r=n("<div><\/div>").appendTo(this.element).addClass(this.css.verticalItem),this.options.destroyItems=!0,this._trigger(this.events.itemRendered,null,{item:r,index:t});this._trigger(this.events.rendered,null,{owner:this})}else if(i&&i.length>0){for(t=0;t<i.length;t++)this._trigger(this.events.itemRendering,null,{itemData:i[t],index:t}),r=n("<div><\/div>").appendTo(this.element).addClass(this.css.verticalItem),i[t].width&&r.css("width",i[t].width),i[t].height&&r.css("height",i[t].height),this._trigger(this.events.itemRendered,null,{item:r,index:t});this.options.destroyItems=!0;this._trigger(this.events.rendered,null,{owner:this})}else this.element.children().addClass(this.css.verticalItem)},_initGridLayout:function(){var v=this.element,p=v.children(),g=p.length-this.options.items.length,nt=v.offset(),s=0,e=0,t,o,h,y,w,b,c,l,a,k,u,r,tt,it,rt,d,i,f;if(g>0)for(i=0;i<g;i++)this.options.items.push({});if(this._opt.setOptionCall&&(rt=this._opt.gridLayout.elements),this._opt.gridLayout=n.extend(!0,{},this.options.gridLayout,{items:n.extend(!0,[],this.options.items),sortedItems:[],elements:rt||n(),minColCount:1,columnWidthRatio:null,columnHeightRatio:null,containerWidthNoScroll:v.width(),containerHeightNoScroll:v.height(),resizeItems:!1,animating:!1,autoAdjustColumnWidth:!1,autoAdjustColumnHeight:!1,useOffset:(this.element.css("position")==="static"||this.element.css("position")==="fixed")&&this.options.gridLayout.useOffset?!0:!1}),t=this._opt.gridLayout,typeof t.cols=="string"&&(t.cols=parseInt(t.cols)),typeof t.rows=="string"&&(t.rows=parseInt(t.rows)),o=t.items,h=t.marginLeft,y=t.marginTop,this._analyzeGlConfiguration(),this._opt.gridLayout.resizeItems=!!(this._opt.gridLayout.columnWidthRatio||this._opt.gridLayout.columnHeightRatio),l=t.columnWidth,a=t.columnHeight,o&&o.length>0)for(i=0;i<o.length;i++)r=o[i],c=r.colSpan=typeof r.colSpan=="number"?r.colSpan:1,k=r.rowSpan=typeof r.rowSpan=="number"?r.rowSpan:1,b=r.rowIndex=typeof r.rowIndex=="number"?r.rowIndex:Math.floor(i/t.cols),w=r.colIndex=typeof r.colIndex=="number"?r.colIndex:i%t.cols,this._opt.setOptionCall?u=t.elements.eq(i):(this._trigger(this.events.itemRendering,null,{itemData:r,index:i}),d=p.eq(i),u=d.length>0?d:n("<div><\/div>").appendTo(this.element),u.addClass(this.css.item).addClass(this.css.gridItemAbs).attr("data-index",i),t.elements=t.elements.add(u)),tt=c*l+(c-1)*h,it=k*a+(k-1)*y,e=w*l+(w+1)*h,s=b*a+(b+1)*y,t.useOffset&&(s+=nt.top,e+=nt.left),u.css({top:s,left:e,width:tt,height:it}),r.item=u,c>t.minColCount&&(t.minColCount=c),this._opt.setOptionCall||this._trigger(this.events.itemRendered,null,{item:u,itemData:r,index:i});else if(p.length===0)for(i=0;i<t.rows;i++)for(f=0;f<t.cols;f++)u=n("<div><\/div>").appendTo(this.element).addClass(this.css.item).addClass(this.css.gridItemAbs).attr("data-index",i*t.cols+f).width(l).height(a),this._trigger("itemrendered",null,{item:u}),e=f*l+(f+1)*h,s=i*a+(i+1)*y,e+=f===0?h:0,u.css({top:s,left:e});t.sortedItems=n.extend(!0,[],o).sort(this._glSortItemsByPositionOrder);this._trigger(this.events.rendered,null,{items:this.options.items});this._reflowGlConfiguration(!1,0,null)},_updateGLItemsConfig:function(){for(var r=this._opt.gridLayout,s=r.items,u=this.options.items,e,o,f,t,i=0;i<u.length;i++)o=s[i],e=o&&o.item,t=u[i],t.colSpan=typeof t.colSpan=="number"?t.colSpan:1,t.rowSpan=typeof t.rowSpan=="number"?t.rowSpan:1,t.rowIndex=typeof t.rowIndex=="number"?t.rowIndex:Math.floor(i/r.cols),t.colIndex=typeof t.colIndex=="number"?t.colIndex:i%r.cols,e.length>0?t.item=e:(this._trigger(this.events.itemRendering,null,{itemData:t,index:i}),f=this.element.children(":eq("+i+")").length>0?this.element.children(":eq("+i+")"):n("<div><\/div>").appendTo(this.element),f.addClass(this.css.item).addClass(this.css.gridItemAbs).attr("data-index",i),t.item=f,r.elements=r.elements.add(f),this._trigger(this.events.itemRendered,null,{item:f,itemData:t,index:i})),t.colSpan>r.minColCount&&(r.minColCount=t.colSpan);while(r.elements.length>u.length)Array.prototype.pop.call(r.elements).remove();r.items=n.extend(!0,[],u);r.sortedItems=n.extend(!0,[],u).sort(this._glSortItemsByPositionOrder);this._reflowGlConfiguration(!0,0)},_glReflowNeeded:function(){var i=this.element,t=this._opt.gridLayout,r=i.width()-(n.ig.util.hasVerticalScroll(i)?this._opt.scrollBarWidth:0),u=i.height()-(n.ig.util.hasHorizontalScroll(i)?this._opt.scrollBarHeight:0);return t.containerWidthNoScroll!==r&&(t.columnWidthRatio||t.cols!==Math.floor(r/(t.columnWidth+t.marginLeft)))||t.containerHeightNoScroll!==u&&t.columnHeightRatio},_reflowGlConfiguration:function(t,i,r){var ht=this,b=this.element,u=this._opt.gridLayout,c=u.marginLeft,p=u.marginTop,w=u.sortedItems,k=b.width()-(n.ig.util.hasVerticalScroll(b)?this._opt.scrollBarWidth:0),d=b.height()-(n.ig.util.hasHorizontalScroll(b)?this._opt.scrollBarHeight:0),ct=u.useOffset?b.offset().left:0,lt=u.useOffset?b.offset().top:0,tt,it,e,l,rt,s,f,o,g,nt,ot,a,ut,st,v,h,y,ft,et,at=function(){u.elements.is(":animated")||(u.animating=!1,ht._glReflowNeeded()?ht._reflowGlConfiguration(!1,i,r):ht._triggerInternalResized(r))};if(w){if(u.columnWidthRatio&&u.containerWidthNoScroll!==k?(u.columnWidth=Math.floor(k*u.columnWidthRatio-c),g=!0):g=!1,u.columnHeightRatio&&u.containerHeightNoScroll!==d?(u.columnHeight=Math.floor(d*u.columnHeightRatio-p),nt=!0):nt=!1,u.autoAdjustColumnWidth&&(u.containerHeightNoScroll!==d&&u.rearrangeItems||t)&&(u.rows=Math.max(Math.floor(d/(u.columnHeight+p)),1),u.columnWidthRatio=1/Math.ceil(w.length/u.rows),u.columnWidth=Math.floor(k*u.columnWidthRatio-c),g=!0),u.containerWidthNoScroll=k,u.containerHeightNoScroll=d,(u.rearrangeItems||t)&&(rt=u.rearrangeItems?u.columnWidthRatio?Math.floor(1/u.columnWidthRatio):Math.floor(k/(u.columnWidth+c)):u.autoAdjustColumnWidth?Math.ceil(w.length/u.rows):u.autoAdjustColumnHeight?Math.floor(k/(u.columnWidth+c)):u.cols,u.minColCount>rt&&(rt=u.minColCount),rt!==u.cols||t)){for(u.cols=rt,f=[[]],f[0].length=u.cols,v=0;v<w.length;v++)for(o=w[v],e=o.colSpan,l=o.rowSpan,a=!1,h=0;h<f.length&&!a;h++)for(y=0;y<f[h].length&&!a;y++){if(!f[h][y])for(a=!0,ft=0;a&&ft<l*e;ft++)e>f[h].length-y?a=!1:(ut=h+Math.floor(ft/e),f[ut]||(f[ut]=[],f[ut].length=u.cols),f[ut][y+ft%e]===1&&(a=!1));if(a)for(o.rowIndex=h,o.colIndex=y,et=0;et<l*e;et++)f[o.rowIndex+Math.floor(et/e)][o.colIndex+et%e]=1;else h===f.length-1&&y===f[h].length-1&&(f[h+1]=[],f[h+1].length=u.cols)}u.autoAdjustColumnHeight&&u.rows!==f.length&&(u.columnHeightRatio=1/f.length,u.columnHeight=Math.floor(d*u.columnHeightRatio-p),nt=!0);u.rows=f.length;ot=!0}if(g||nt||ot||t){for(u.animating=ot&&i>0||u.animating,v=0;v<w.length;v++)o=w[v],st=o.item,it=o.rowIndex,tt=o.colIndex,e=o.colSpan,l=o.rowSpan,s={},ot||u.animating?(s.left=tt*u.columnWidth+(tt+1)*c+ct,s.top=it*u.columnHeight+(it+1)*p+lt,(g||t)&&(s.width=e*u.columnWidth+(e-1)*c),(nt||t)&&(s.height=l*u.columnHeight+(l-1)*p),i>0?st.animate(s,{duration:i,queue:!1,complete:at}):st.css(s)):((g||t)&&(s.left=tt*u.columnWidth+(tt+1)*c+ct,s.width=e*u.columnWidth+(e-1)*c),(nt||t)&&(s.top=it*u.columnHeight+(it+1)*p+lt,s.height=l*u.columnHeight+(l-1)*p),st.css(s));u.animating||(this._glReflowNeeded()?this._reflowGlConfiguration(!1,i,r):this._triggerInternalResized(r))}}},_analyzeGlItems:function(){for(var u=this._opt.gridLayout,o=u.items,t=0,i=0,n,f,e,r=0;o.length>r;r++)n=o[r],f=n.colIndex+n.colSpan,e=n.rowIndex+n.rowSpan,f>t&&(t=f),e>i&&(i=e);t>0&&(u.cols=t);i>0&&(u.rows=i)},_analyzeGlWidth:function(){var t=this._opt.gridLayout,i=this.element.width(),n;t.columnWidth&&typeof t.columnWidth=="string"&&(t.columnWidth.indexOf("%")!==-1?(n=t.columnWidth.substring(0,t.columnWidth.length-1),n=parseInt(n,10)/100,!isNaN(n)&&n>0&&(this._opt.gridLayout.columnWidthRatio=n,t.columnWidth=Math.floor(i*n-t.marginLeft))):(n=parseInt(t.columnWidth,10),!isNaN(n)&&n>0&&(t.columnWidth=n)))},_analyzeGlHeight:function(){var t=this._opt.gridLayout,i=this.element.height(),n;t.columnHeight&&typeof t.columnHeight=="string"&&(t.columnHeight.indexOf("%")!==-1?(n=t.columnHeight.substring(0,t.columnHeight.length-1),n=parseInt(n,10)/100,!isNaN(n)&&n>0&&(this._opt.gridLayout.columnHeightRatio=n,t.columnHeight=Math.floor(i*n-t.marginTop))):(n=parseInt(t.columnHeight,10),!isNaN(n)&&n>0&&(t.columnHeight=n)))},_analyzeGlNotSetOptions:function(){var n=this._opt.gridLayout,f=this.element.width(),e=this.element.height(),t=n.items.length,i=typeof n.columnWidth=="number"&&n.columnWidth>0,r=typeof n.columnHeight=="number"&&n.columnHeight>0,o=typeof n.cols=="number"&&n.cols>0,u=typeof n.rows=="number"&&n.rows>0;o?u||(n.rows=Math.ceil(t/n.cols)):u?n.cols=Math.ceil(t/n.rows):i?(n.cols=Math.floor(f/(n.columnWidth+n.marginLeft)),n.rows=Math.ceil(t/n.cols)):r?(n.rows=Math.floor(e/(n.columnHeight+n.marginTop)),n.cols=Math.ceil(t/n.rows)):(n.cols=Math.ceil(Math.sqrt(t)),n.rows=Math.ceil(t/n.cols));i||(n.columnWidth=Math.floor(f*(1/n.cols)-n.marginLeft),n.columnWidthRatio=1/n.cols);r||(n.columnHeight=Math.floor(e*(1/n.rows)-n.marginTop),n.columnHeightRatio=1/n.rows);r||o||n.columnWidthRatio||(n.autoAdjustColumnHeight=!0);i||u||n.columnHeightRatio||(n.autoAdjustColumnWidth=!0)},_analyzeGlConfiguration:function(){this._analyzeGlWidth();this._analyzeGlHeight();this._analyzeGlItems();this._analyzeGlNotSetOptions()},_glSortItemsByPositionOrder:function(n,t){return n.rowIndex!==t.rowIndex?n.rowIndex-t.rowIndex:n.colIndex-t.colIndex},_initBorderLayout:function(){var i,r,f,e,u,s,h,o,t=this.options.borderLayout;this.element.addClass(this.css.border);i=this.element.find(".left");e=this.element.find(".header");r=this.element.find(".right");f=this.element.find(".center");u=this.element.find(".footer");i.length===0&&t.showLeft&&(this._trigger(this.events.itemRendering,null,{region:"left"}),i=n("<div><\/div>").appendTo(this.element),this._removeLeft=!0,this._trigger(this.events.itemRendered,null,{region:"left",element:i}));i.addClass(this.css.borderItem).addClass(this.css.borderLeft);r.length===0&&t.showRight&&(this._trigger(this.events.itemRendering,null,{region:"right"}),r=n("<div><\/div>").appendTo(this.element),this._removeRight=!0,this._trigger(this.events.itemRendered,null,{region:"right",element:r}));r.addClass(this.css.borderItem).addClass(this.css.borderRight);f.length===0&&(this._trigger(this.events.itemRendering,null,{region:"center"}),f=n("<div><\/div>").appendTo(this.element),this._removeCenter=!0,this._trigger(this.events.itemRendered,null,{region:"center",element:f}));f.addClass(this.css.borderItem).addClass(this.css.borderCenter);u.length===0&&t.showFooter&&(this._trigger(this.events.itemRendering,null,{region:"footer"}),u=n("<div><\/div>").appendTo(this.element),this._removeFooter=!0,this._trigger(this.events.itemRendered,null,{region:"footer",element:u}));u.addClass(this.css.borderItem).addClass(this.css.borderFooter);e.length===0&&t.showHeader&&(this._trigger(this.events.itemRendering,null,{region:"header"}),e=n("<div><\/div>").appendTo(this.element),this._removeHeader=!0,this._trigger(this.events.itemRendered,null,{region:"header",element:e}));e.addClass(this.css.borderItem).addClass(this.css.borderHeader);o=n("<div><\/div>").appendTo(this.element).addClass(this.css.borderContainer).append(i).append(r).append(f);this.element.append(u);t.leftWidth!==null&&t.showLeft?i.css("width",t.leftWidth):(t.showLeft===!1||i.length===0)&&o.css("padding-left",0);t.rightWidth!==null&&t.showRight?r.css("width",t.rightWidth):(t.showRight===!1||r.length===0)&&o.css("padding-right",0);h=t.leftWidth&&t.leftWidth.indexOf&&t.leftWidth.indexOf("%")!==-1?0:parseInt(t.leftWidth,10);s=t.rightWidth&&t.rightWidth.indexOf&&t.rightWidth.indexOf("%")!==-1?0:parseInt(t.rightWidth,10);this.element.css("min-width",h+s);this._opt.borderLayout={header:e,footer:u,paddingTop:null,paddingBottom:null};this._setBorderLayoutPaddings();this._trigger(this.events.rendered,null,{owner:this})},_setBorderLayoutPaddings:function(){var t,i,n=this._opt.borderLayout;n.header.length&&(t=n.header.outerHeight(!0),n.paddingTop!==t&&(n.paddingTop=t,this.element.css("paddingTop",n.paddingTop)));n.footer.length&&(i=n.footer.outerHeight(!0),n.paddingBottom!==i&&(n.paddingBottom=i,this.element.css("paddingBottom",n.paddingBottom)))},_initFlowLayout:function(){var t,u=this.options.itemCount,i=this.options.items,r;if(this.element.addClass(this.css.flow),u>0){for(t=0;t<u;t++)this._trigger(this.events.itemRendering,null,{index:t}),r=n("<li><\/li>").appendTo(this.element).addClass(this.css.flowItem),this.options.destroyItems=!0,this._trigger(this.events.itemRendered,null,{item:r,index:t});this._trigger(this.events.rendered,null,{owner:this})}else if(i&&i.length>0){for(t=0;t<i.length;t++)this._trigger(this.events.itemRendering,null,{itemData:i[t],index:t}),r=n("<li><\/li>").appendTo(this.element).addClass(this.css.flowItem),i[t].width&&r.css("width",i[t].width),i[t].height&&r.css("height",i[t].height),this._trigger(this.events.itemRendered,null,{item:r,index:t});this.options.destroyItems=!0;this._trigger(this.events.rendered,null,{owner:this})}else this.element.children().addClass(this.css.flowItem)},_triggerInternalResizing:function(n){var t={owner:this};return this._trigger(this.events.internalResizing,n,t)},_triggerInternalResized:function(n){var t={owner:this};return this._trigger(this.events.internalResized,n,t)},_destroyBorderLayout:function(){this.element.removeClass(this.css.border);this.element.find("."+this.css.borderLeft).unwrap();this._removeLeft&&this.element.children("."+this.css.borderLeft).remove();this._removeRight&&this.element.children("."+this.css.borderRight).remove();this._removeCenter&&this.element.children("."+this.css.borderCenter).remove();this._removeHeader&&this.element.children("."+this.css.borderHeader).remove();this._removeFooter&&this.element.children("."+this.css.borderFooter).remove();this.element.children().removeClass(this.css.borderItem).removeClass(this.css.borderLeft).removeClass(this.css.borderRight).removeClass(this.css.borderCenter).removeClass(this.css.borderFooter).removeClass(this.css.borderHeader)},_destroyGridLayout:function(){this.options.destroyItems?this.element.empty():this.element.children().removeClass(this.css.item).removeClass(this.css.gridItemAbs).removeClass(this.css.gridItemRel).removeAttr("data-index");this.element.off("resize",this._opt.eventHandlers.elementResizeHandler)},_destroyFlowLayout:function(){this.element.removeClass(this.css.flow);this.options.destroyItems?this.element.empty():this.element.children().removeClass(this.css.flowItem)},_destroyVerticalLayout:function(){this.element.removeClass(this.css.vertical);this.options.destroyItems?this.element.empty():this.element.children().removeClass(this.css.verticalItem)},destroy:function(){n.Widget.prototype.destroy.apply(this,arguments);this.element.removeClass(this.css.container);switch(this.options.layoutMode){case"grid":this._destroyGridLayout();break;case"border":this._destroyBorderLayout();break;case"flow":this._destroyFlowLayout();break;case"vertical":this._destroyVerticalLayout()}return n(window).off("resize",this._opt.eventHandlers.windowResizeHandler),this}});n.extend(n.ui.igLayoutManager,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igSplitter",{_const:{orientations:{horizontal:{size:"height",oppositeSize:"width",outerSize:"outerHeight",dimention:"top",start:"_startY",mouse:"_mouseStartY",page:"pageY",keyboard:["UP","DOWN"]},vertical:{size:"width",oppositeSize:"height",outerSize:"outerWidth",dimention:"left",start:"_startX",mouse:"_mouseStartX",page:"pageX",keyboard:["LEFT","RIGHT"]}},properties:["max","_max","min","_min","size","collapsed","collapsible","resizable"],step:10,touchEvents:{mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove",mouseenter:"",mouseleave:"",focus:"focus",blur:"blur",keydown:"keydown"}},css:{splitter:"ui-igsplitter ui-widget ui-widget-content",verticalPanel:"ui-igsplitter-panel-vertical ui-widget-content",horizontalPanel:"ui-igsplitter-panel-horizontal ui-widget-content",bar:"ui-igsplitter-splitbar",barNormal:"ui-igsplitter-splitbar-default ui-state-default",barCollapsed:"ui-igsplitter-splitbar-collapsed",barHover:"ui-igsplitter-splitbar-hover ui-state-hover",barActive:"ui-igsplitter-splitbar-focus ui-state-focus",barInvalid:"ui-igsplitter-splitbar-invalid",resizeHandler:"ui-igsplitter-splitbar-resize-handler",resizeHandlerInner:"ui-igsplitter-splitbar-resize-handler-inner",verticalCollapseButtonLeftExpanded:"ui-igsplitter-collapse-button-vertical-left",verticalCollapseButtonLeftExpandedIcon:"ui-icon ui-icon-triangle-1-w",verticalCollapseButtonLeftCollapsed:"ui-igsplitter-collapse-button-vertical-left",verticalCollapseButtonLeftCollapsedIcon:"ui-icon ui-icon-triangle-1-e",verticalCollapseButtonRightExpanded:"ui-igsplitter-collapse-button-vertical-right",verticalCollapseButtonRightExpandedIcon:"ui-icon ui-icon-triangle-1-e",verticalCollapseButtonRightCollapsed:"ui-igsplitter-collapse-button-vertical-right",verticalCollapseButtonRightCollapsedIcon:"ui-icon ui-icon-triangle-1-w",horizontalCollapseButtonLeftExpanded:"ui-igsplitter-collapse-button-horizontal-left",horizontalCollapseButtonLeftExpandedIcon:"ui-icon ui-icon-triangle-1-n",horizontalCollapseButtonLeftCollapsed:"ui-igsplitter-collapse-button-horizontal-left",horizontalCollapseButtonLeftCollapsedIcon:"ui-icon ui-icon-triangle-1-s",horizontalCollapseButtonRightExpanded:"ui-igsplitter-collapse-button-horizontal-right",horizontalCollapseButtonRightExpandedIcon:"ui-icon ui-icon-triangle-1-s",horizontalCollapseButtonRightCollapsed:"ui-igsplitter-collapse-button-horizontal-right",horizontalCollapseButtonRightCollapsedIcon:"ui-icon ui-icon-triangle-1-n",collapseButtonDefault:"ui-state-default",collapseButtonSingle:"ui-igsplitter-collapse-single-button",collapseButtonPressed:"ui-igsplitter-collapse-button-pressed",collapseButtonHover:"ui-igsplitter-collapse-button-hover ui-state-hover",noScroll:"ui-igsplitter-no-scroll"},events:{collapsed:"collapsed",expanded:"expanded",resizeStarted:"resizeStarted",resizing:"resizing",resizeEnded:"resizeEnded",layoutRefreshing:"layoutRefreshing",layoutRefreshed:"layoutRefreshed"},options:{width:null,height:null,orientation:"vertical",panels:[],dragDelta:3},_opt:null,widget:function(){return this.element},_createWidget:function(){this._opt={eventHandlers:{}};n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){var t,i=n(this.element.children("div")).length;if(this._htmlMarkup=this.element.html(),this.options.panels.length>2||i>2)throw new Error(n.ig.Splitter.locale.errorPanels);i===1?n(this.element).append("<div/>"):i===0&&(n(this.element).append("<div/>"),n(this.element).append("<div/>"));this._panels=[];this._splitter={};t=n.data(document.body,"ig-splitters")||[];t.push(this.element);n.data(document.body,"ig-splitters",t);this.options.width&&this.element.css("width",this.options.width);this.options.height&&this.element.css("height",this.options.height);this._render();this._removeClasses();this._addClasses();this._removeEventHandlers();this._addEventHandlers();this._panelsLayout()},_setOption:function(t,i){var r,u;if(this.options[t]!==i){n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"width":r=this.element.width();this.element.css("width",i);this.options.orientation==="vertical"&&this._setPanelsNewWidth(i,r);this._panelsLayout();break;case"height":u=this.element.height();this.element.css("height",i);this.options.orientation==="horizontal"&&this._setPanelsNewHeight(i,u);this._panelsLayout();break;case"orientation":case"panels":throw new Error(n.ig.Splitter.locale.errorSettingOption);}}},_setPanelsNewWidth:function(n,t){var i=this.secondPanel().width()/t;this.setSecondPanelSize(n*i)},_setPanelsNewHeight:function(n,t){var i=this.secondPanel().height()/t;this.setSecondPanelSize(n*i)},_render:function(){var e=n(this.element.children("div")),i,t=this,u,f=0,r;u=this._reducedSize();f=this.options[this._getOrientation("size")]?this.options[this._getOrientation("size")]-u.size:this._getSize(this._getOrientation("size"))-u.size;e.length-u.length!=0&&(f=Math.floor(f/(e.length-u.length)));this._panels.length<1&&(e.each(function(u,e){for(i=n(e),i.options={max:9007199254740992,_max:"100%",min:0,_min:"0",collapsible:!1,resizable:!0,collapsed:!1,size:i[t._getOrientation("size")]()},r=0;r<t._const.properties.length;r++)t.options.panels[u]&&t.options.panels[u][t._const.properties[r]]!==undefined&&t.options.panels[u][t._const.properties[r]]!==null?i.options[t._const.properties[r]]=t.options.panels[u][t._const.properties[r]]:t._const.properties[r]==="size"&&(i.options.size=i[0].style[t._getOrientation("size")]!=="auto"&&i[0].style[t._getOrientation("size")]!==""?i[t._getOrientation("size")]():f);t._panels.push(i)}),this._createSplitter())},_reducedSize:function(){for(var t={size:0,length:0},i=0,n=0;n<this.options.panels.length;n++)i=0,this.options.panels[n].size!==undefined&&(/%/.test(this.options.panels[n].size)&&(this.options.panels[n].size=this.options.panels[n].size.replace("%","")*this._getSize(this._getOrientation("size"))/100,this._isPercentLayout=!0),/px/.test(this.options.panels[n].size)&&(this.options.panels[n].size=parseInt(this.options.panels[n].size,10)),/px/.test(this.options.panels[n].min)&&(this.options.panels[n].min=parseInt(this.options.panels[n].min,10)),/%/.test(this.options.panels[n].min)&&(this.options.panels[n]._min=this.options.panels[n].min,this.options.panels[n].min=this.options.panels[n].min.replace("%","")*this._getSize(this._getOrientation("size"))/100),/px/.test(this.options.panels[n].max)&&(this.options.panels[n].max=parseInt(this.options.panels[n].max,10)),/%/.test(this.options.panels[n].max)&&(this.options.panels[n]._max=this.options.panels[n].max,this.options.panels[n].max=this.options.panels[n].max.replace("%","")*this._getSize(this._getOrientation("size"))/100),i=this.options.panels[n].size,t.length+=1),t.size+=i;return t},_getSize:function(t){var r=this.element.css("box-sizing"),i;return window.getComputedStyle!==undefined?(i=parseInt(window.getComputedStyle(this.element[0])[t],10),n.ig.util.isChrome&&r==="border-box"&&(i-=parseInt(this.element.css("border-width"),10)*2),i):this.element[t]()},_getOrientation:function(n){return this._const.orientations[this.options.orientation][n]},_getEvent:function(n){return this._isTouch()?this._const.touchEvents[n]:n},_isTouch:function(){return typeof Modernizr=="object"&&window.Modernizr.touch===!0},_createSplitter:function(){var u=n("<div><span><\/span><\/div><div><span><\/span><\/div>"),t=n("<div><\/div>").attr("tabindex",0),f=this,i,r;this._splitter={left:this._panels[0],right:this._panels[1]};t.insertAfter(this._panels[0]);this._splitter.bar=t;this._splitter.bar.append(u);i=n("<div/>").appendTo(this._splitter.bar);n("<span><\/span>")[this._getOrientation("size")](this._splitter.bar[this._getOrientation("size")]).attr("title","").appendTo(i);n.ig.util.isIEOld&&setTimeout(function(){r=n(".ui-igsplitter-collapse-button-vertical-left.ui-state-default").css("margin-top");n(".ui-igsplitter-collapse-button-vertical-left.ui-state-default").css("margin-top",r)},1)},_removeClasses:function(){var i,r,u,t;for(this.element.removeClass(this.css.splitter),t=0;t<this._panels.length;t++)this._panels[t].removeClass(this.css[this.options.orientation+"Panel"]);this._splitter.bar.removeClass(this.css.bar+"-"+this.options.orientation);this._splitter.bar.removeClass(this.css.barNormal);this._splitter.bar.removeClass(this.css.barCollapsed);i=n(this._splitter.bar.children()[0]);r=n(this._splitter.bar.children()[1]);i.removeClass(this.css[this.options.orientation+"CollapseButtonLeftExpanded"]);r.removeClass(this.css[this.options.orientation+"CollapseButtonRightExpanded"]);i.removeClass(this.css.collapseButtonDefault);r.removeClass(this.css.collapseButtonDefault);u=n(this._splitter.bar.children()[2]);u.removeClass(this.css.resizeHandler+"-"+this.options.orientation);n(u.children()[0]).removeClass(this.css.resizeHandlerInner+"-"+this.options.orientation)},_addClasses:function(){var t,i,r,u;for(this.element.addClass(this.css.splitter),r=0;r<this._panels.length;r++)this._panels[r].addClass(this.css[this.options.orientation+"Panel"]);this._splitter.bar.addClass(this.css.bar+"-"+this.options.orientation);this._splitter.bar.addClass(this.css.barNormal);(this._panels[0].options.collapsed||this._panels[1].options.collapsed)&&this._splitter.bar.addClass(this.css.barCollapsed);t=n(this._splitter.bar.children()[0]);i=n(this._splitter.bar.children()[1]);t.addClass(this.css[this.options.orientation+"CollapseButtonLeftExpanded"]);n(t.children()).addClass(this.css[this.options.orientation+"CollapseButtonLeftExpandedIcon"]);i.addClass(this.css[this.options.orientation+"CollapseButtonRightExpanded"]);n(i.children()).addClass(this.css[this.options.orientation+"CollapseButtonRightExpandedIcon"]);u=n(this._splitter.bar.children()[2]);u.addClass(this.css.resizeHandler+"-"+this.options.orientation);n(u.children()[0]).addClass(this.css.resizeHandlerInner+"-"+this.options.orientation);this._panels[0].options.collapsible||(t.hide(),i.addClass(this.css.collapseButtonSingle));this._panels[1].options.collapsible||(i.hide(),t.addClass(this.css.collapseButtonSingle));t.addClass(this.css.collapseButtonDefault);i.addClass(this.css.collapseButtonDefault)},_removeEventHandlers:function(){n(this._splitter.bar).unbind(this._getEvent("focus"),this._getEvent("blur"),this._getEvent("keydown"));n(this._splitter.bar.children()[0]).unbind(this._getEvent("mousedown"));n(this._splitter.bar.children()[1]).unbind(this._getEvent("mousedown"));this._isTouch()||(n(this._splitter.bar).unbind(this._getEvent("mouseenter"),this._getEvent("mouseleave")),n(this._splitter.bar.children()[0]).unbind(this._getEvent("mouseenter"),this._getEvent("mouseleave")),n(this._splitter.bar.children()[1]).unbind(this._getEvent("mouseenter"),this._getEvent("mouseleave")))},_addEventHandlers:function(){var t=this;t.autoResize=!0;this._opt.eventHandlers.documentMouseUp=function(){t.autoResize=!1;t._stopDrag(t);t.autoResize=!0;t._lastMove=null};n(document).bind(this._getEvent("mouseup")+"."+this.element.attr("id"),this._opt.eventHandlers.documentMouseUp);this._opt.eventHandlers.documentMouseMove=function(n){var i=!0;if(t._currentMove=t._isTouch()?n.originalEvent.touches[0][t._getOrientation("page")]:n[t._getOrientation("page")],t._capturedElement&&t._isDragging()&&!t._isDrag&&(t._triggerResizeStarted(),t._isDrag=!0),t._capturedElement&&t._isDragging()&&(i=t._triggerResizing()),i&&t._isDragging())t._performDrag(t,n);else return!1};n(document).bind(this._getEvent("mousemove")+"."+this.element.attr("id"),this._opt.eventHandlers.documentMouseMove);this._opt.eventHandlers.windowResize=function(){var n=t._triggerLayoutRefreshing();n&&(t._panelsLayout(),t._triggerLayoutRefreshed())};n(window).bind("resize."+this.element.attr("id"),this._opt.eventHandlers.windowResize);this._addBarHandlers(this._splitter);this._addCollapseButtonHandlers(n(this._splitter.bar.children()[0]),0);this._addCollapseButtonHandlers(n(this._splitter.bar.children()[1]),1)},_isDragging:function(){return Math.abs(this._currentMove-this._lastMove)>this.options.dragDelta},_addBarHandlers:function(t){var i=this;t.bar.bind(this._getEvent("mousedown"),{self:this},this._startDrag);n(t.bar.children()[2]).bind(this._getEvent("mousedown"),{self:this},this._startDrag);t.bar.bind(this._getEvent("keydown"),{self:this},this._kbNavigation);this._isTouch()||(t.bar.bind(this._getEvent("mouseenter"),function(){n(this).addClass(i.css.barHover)}),t.bar.bind(this._getEvent("mouseleave"),function(){n(this).removeClass(i.css.barHover)}));t.bar.bind(this._getEvent("focus"),function(){n(this).addClass(i.css.barActive)});t.bar.bind(this._getEvent("blur"),function(){n(this).removeClass(i.css.barActive)})},_kbNavigation:function(t){var i=t.data.self,r=!0;if(t.keyCode===n.ui.keyCode[i._getOrientation("keyboard")[0]]){if(t.ctrlKey)i._stopDrag(i,!0,!0),i._panels[1].options.collapsed?i.expandAt(1):i._panels[0].options.collapsed||i.collapseAt(0);else{if(i._startDrag(t),i._kbMove-=i._kbLockRight?0:i._getStep(),i._capturedElement&&!i._isDrag&&(i._triggerResizeStarted(),i._isDrag=!0),i._capturedElement&&(r=i._triggerResizing()),r)i._performDrag(i,t);else return!1;i._capturedElement&&i._capturedElement.hasClass(i.css.barInvalid)?(i._kbLockRight=!0,i._kbLockLeft=!1):(i._kbLockRight=!1,i._kbLockLeft=!1)}t.preventDefault()}else if(t.keyCode===n.ui.keyCode[i._getOrientation("keyboard")[1]]){if(t.ctrlKey)i._stopDrag(i,!0,!0),i._panels[0].options.collapsed?i.expandAt(0):i._panels[1].options.collapsed||i.collapseAt(1);else{if(i._startDrag(t),i._kbMove+=i._kbLockLeft?0:i._getStep(),i._capturedElement&&!i._isDrag&&(i._triggerResizeStarted(),i._isDrag=!0),i._capturedElement&&(r=i._triggerResizing()),r)i._performDrag(i,t);else return!1;i._capturedElement&&i._capturedElement.hasClass(i.css.barInvalid)?(i._kbLockRight=!1,i._kbLockLeft=!0):(i._kbLockRight=!1,i._kbLockLeft=!1)}t.preventDefault()}else t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE?(i._stopDrag(i,!1,!0),t.preventDefault()):t.keyCode===n.ui.keyCode.ESCAPE?i._stopDrag(i,!0):t.keyCode===n.ui.keyCode.TAB&&i._stopDrag(i,!1,!0)},_startDrag:function(t){var i=t.data.self,r,u;return(i._splitter.bar.focus(),i._resizeArea=i._splitter,i._resizeArea!==null)?((i._resizeArea.left.options.resizable===undefined||i._resizeArea.left.options.resizable)&&(i._resizeArea.right.options.resizable===undefined||i._resizeArea.right.options.resizable)&&(r=i._resizeArea.left,u=i._resizeArea.right,r.options.collapsed||u.options.collapsed||u.options.max<=u[i._getOrientation("outerSize")]()&&r.options.max<=r[i._getOrientation("outerSize")]()||i._capturedElement||(i._lastMove=i._isTouch()?t.originalEvent.touches[0][i._getOrientation("page")]:t[i._getOrientation("page")],i._capturedElement=n(t.target).is("span")?i._clone(n(n(t.target).parent()).parent()):i._clone(t.target),i._capturedElement.offset(),i._startX=i._capturedElement.offset().left,i._startY=i._capturedElement.offset().top,i._kbMove=0,i._kbLockLeft=!1,i._kbLockRight=!1,i._mouseStartX=i._isTouch()?t.originalEvent.touches[0].pageX:t.pageX,i._mouseStartY=i._isTouch()?t.originalEvent.touches[0].pageY:t.pageY)),!1):!1},_clone:function(t){var i=n(t).clone();return i.css({position:"absolute",top:n(t).offset().top,left:n(t).offset().left,"z-index":9999}).fadeTo(0,.7),n(document.body).append(i),i},_addCollapseButtonHandlers:function(t,i){var r=this;t.bind(this._getEvent("mouseenter"),function(t){return n(n(this).parent()).removeClass(r.css.barHover),n(this).addClass(r.css.collapseButtonHover),t.stopPropagation!==undefined&&t.stopPropagation(),t.preventDefault!==undefined&&t.preventDefault(),!1});t.bind(this._getEvent("mouseleave"),function(){n(n(this).parent()).addClass(r.css.barHover);n(this).removeClass(r.css.collapseButtonHover)});t.bind("mousedown touchstart",function(t){return n(this).toggleClass(r.css.collapseButtonPressed),r._panels[i].options.collapsed?r.expandAt(i):r.collapseAt(i),t.stopPropagation!==undefined&&t.stopPropagation(),t.preventDefault!==undefined&&t.preventDefault(),!1})},_performDrag:function(t,i){var u=t._isTouch()?i.originalEvent.touches[0][t._getOrientation("page")]:i[t._getOrientation("page")],r;return i.which===0&&n.ig.util.isIE&&n.ig.util.isIEOld?(t._stopDrag(t),!1):t._capturedElement?(r=i.type==="keydown"?t[t._getOrientation("start")]+t._kbMove:u-t[t._getOrientation("mouse")]+t[t._getOrientation("start")],t._moveBar(r),!1):!0},_moveBar:function(n){n=this._validatePosition(n);n.invalid?this._capturedElement.addClass(this.css.barInvalid):this._capturedElement.removeClass(this.css.barInvalid);this._capturedElement.css(this._getOrientation("dimention"),n.position)},_validatePosition:function(n){var t=this._resizeArea,i=this._getNextBoundary(t),r=this._getPreviousBoundary(t),u=Math.min(i,i-t.right.options.min,r+t.left.options.max),f=Math.max(r,r+t.left.options.min,i-t.right.options.max),e;return f>u?(e=t.right.offset()[this._getOrientation("dimention")]-this._capturedElement[this._getOrientation("outerSize")](!0),{position:e,invalid:!0}):n<f?{position:f,invalid:!0}:n>u?{position:u,invalid:!0}:{position:n,invalid:!1}},_getNextBoundary:function(n){var t=n.right.offset()[this._getOrientation("dimention")]+n.right[this._getOrientation("size")]()-this._capturedElement[this._getOrientation("outerSize")](!0);return n.right.options.collapsed&&(t-=n.right.options.min),t},_getPreviousBoundary:function(n){var t=n.left.offset()[this._getOrientation("dimention")];return n.left.options.collapsed&&(t+=n.left.options.min),t},_stopDrag:function(n,t,i){n._capturedElement&&(!t&&(n._isDrag||i)&&n._performAreaResize(),n._capturedElement.remove(),n._isDrag=!1);n._capturedElement=null},_performAreaResize:function(){var n=this._resizeArea,t=this._capturedElement.offset()[this._getOrientation("dimention")]-this[this._getOrientation("start")],i=n.left[this._getOrientation("size")]()+t,r=n.right[this._getOrientation("size")]()-t;this._setPanelSize(n.left,i);this._setPanelSize(n.right,r);t!==0&&this._triggerResizeEnded();this._splittersLayout()},_splittersLayout:function(){for(var i=n.data(document.body,"ig-splitters")||[],t=0;t<i.length;t++)i[t][0]!==this.element&&n(i[t]).data("igSplitter")._panelsLayout()},_panelsLayout:function(){for(var i=(this._panels.length-1)*this._splitter.bar[this._getOrientation("outerSize")](!0),r=this._getSize(this._getOrientation("size")),t=0;t<this._panels.length;t++)this._panels[t].options.collapsed?(this._handlerPanelSize(this._panels[t],i,r),n(this._splitter.bar.children()[(t+1)%2]).hide(),n(this._splitter.bar.children()[t]).removeClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"Expanded"]),n(n(this._splitter.bar.children()[t]).children()).removeClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"ExpandedIcon"]),n(this._splitter.bar.children()[t]).addClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"Collapsed"]),n(n(this._splitter.bar.children()[t]).children()).addClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"CollapsedIcon"])):i+=this._handlerPanelSize(this._panels[t],i,r);i<r&&this._createPanel(r,i,this._panels.length-1);this._splitter.bar[this._getOrientation("oppositeSize")](this.element[this._getOrientation("oppositeSize")]()-2);n(this._splitter.bar.children()[2]).find("span")[this._getOrientation("oppositeSize")](this.element[this._getOrientation("oppositeSize")]())},_getStep:function(){return this._const.step+this._splitter.bar[this._getOrientation("size")]()},_handlerPanelSize:function(n,t,i){this._isPercentLayout&&(n.options._min!==undefined&&(n.options.min=n.options._min.replace("%","")*this._getSize(this._getOrientation("size"))/100),n.options._max!==undefined&&(n.options.max=n.options._max.replace("%","")*this._getSize(this._getOrientation("size"))/100));this._setPanelSize(n,n.options.size);var r;return t+n.options.size>=i&&!n.options.collapsed&&(r=i-t,n.options.collapsed||(this._isPercentLayout?n[this._getOrientation("size")](r/this._getSize(this._getOrientation("size"))*100+"%"):n[this._getOrientation("size")](r),n.options.size=r)),n[this._getOrientation("outerSize")](!0)},_setPanelSize:function(t,i){t.options.collapsed?(t.addClass(this.css.noScroll),t[this._getOrientation("size")](0)):(t.options.size=parseInt(i,10),t.options.size===0||this._isPercentLayout&&t.options.size<=n.ig.util.getScrollWidth()?t.addClass(this.css.noScroll):t.removeClass(this.css.noScroll),this._isPercentLayout?(i=parseInt(i,10),t[this._getOrientation("size")](i/this._getSize(this._getOrientation("size"))*100+"%")):t[this._getOrientation("size")](i))},_createPanel:function(n,t,i){i===undefined&&(i=0);var r=this._panels[i],e=n-t,f=r[this._getOrientation("size")](),u=e+f;if(i<=this._panels.length){r.options.collapsed?this._panelHelper(t,n):(u>r.options.max&&(r.options.max=u),this._isPercentLayout?r[this._getOrientation("size")](u/this._getSize(this._getOrientation("size"))*100+"%"):r[this._getOrientation("size")](u),r.options.size=u);return}u=Math.min(u,r.options.max);r.options.collapsed?u=f=0:(r[this._getOrientation("size")](u),r.options.size=u);(u+(t-f)<n||r.options.collapsed)&&this._createPanel(n,t-f+u,i-1)},_panelHelper:function(n,t){for(var i,u=!1,r=0;r<this._panels.length&&!u;r++)i=this._panels[r],i.options.collapsed||(u=!0);i[this._getOrientation("size")](t-n+i[this._getOrientation("size")]())},expandAt:function(t){var i;t<=this._panels.length&&t>=0&&this._panels[t].options.collapsed&&(i=this._panels[t%2==0?1:0],this._panels[t].options.collapsed=!1,this._panels[t].options.size=Math.min(this._panels[t].options.size,i[this._getOrientation("size")]()),i.options.size=i[this._getOrientation("size")]()-this._panels[t].options.size,this._splitter.bar.removeClass(this.css.barCollapsed),this._panels[(t+1)%2].options.collapsible&&n(this._splitter.bar.children()[(t+1)%2]).show(),n(this._splitter.bar.children()[t]).removeClass(this.css.collapseButtonPressed),n(this._splitter.bar.children()[t]).removeClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"Collapsed"]),n(n(this._splitter.bar.children()[t]).children()).removeClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"CollapsedIcon"]),n(this._splitter.bar.children()[t]).addClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"Expanded"]),n(n(this._splitter.bar.children()[t]).children()).addClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"ExpandedIcon"]),i.css(this._getOrientation("size"),i.options.size),this._panels[t].css(this._getOrientation("size"),this._panels[t].options.size),this._splittersLayout(),this._triggerExpanded(t))},collapseAt:function(t){var r,i;t<this._panels.length&&t>=0&&!this._panels[t].options.collapsed&&this._panels[t].options.collapsible&&(r=this._panels[t][this._getOrientation("size")](),i=this._panels[t%2==0?1:0],this._panels[t].options.size=r||this._panels[t].options.size,this._panels[t].options.collapsed=!0,this._splitter.bar.addClass(this.css.barCollapsed),n(this._splitter.bar.children()[(t+1)%2]).hide(),n(this._splitter.bar.children()[t]).addClass(this.css.collapseButtonPressed),n(this._splitter.bar.children()[t]).removeClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"Expanded"]),n(n(this._splitter.bar.children()[t]).children()).removeClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"ExpandedIcon"]),n(this._splitter.bar.children()[t]).addClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"Collapsed"]),n(n(this._splitter.bar.children()[t]).children()).addClass(this.css[this.options.orientation+"CollapseButton"+(t%2==0?"Left":"Right")+"CollapsedIcon"]),i.options.size=i[this._getOrientation("size")]()+r,i.css(this._getOrientation("size"),i.options.size),this._panels[t].css(this._getOrientation("size"),0),this._splittersLayout(),this._triggerCollapsed(t))},_animateResize:function(n,t,i,r){var u={},f=this;u[this._getOrientation("size")]=t;n.animate(u,{step:function(){f._splittersLayout()},duration:i,complete:function(){f._splittersLayout();r&&typeof r=="function"&&r()}})},_triggerCollapsed:function(n){var t={owner:this,index:n};this._trigger(this.events.collapsed,null,t)},_triggerExpanded:function(n){var t={owner:this,index:n};this._trigger(this.events.expanded,null,t)},_triggerResizeStarted:function(){var n={owner:this};this._trigger(this.events.resizeStarted,null,n)},_triggerResizing:function(){var n={owner:this};return this._trigger(this.events.resizing,null,n)},_triggerResizeEnded:function(){var n={owner:this};this._trigger(this.events.resizeEnded,null,n)},_triggerLayoutRefreshing:function(){var n={owner:this};return this._trigger(this.events.layoutRefreshing,null,n)},_triggerLayoutRefreshed:function(){var n={owner:this};return this._trigger(this.events.layoutRefreshed,null,n)},firstPanel:function(){return this._panels[0]},secondPanel:function(){return this._panels[1]},refreshLayout:function(){this._panelsLayout()},setFirstPanelSize:function(n){/%/.test(n)&&(n=n.replace("%","")*this._getSize(this._getOrientation("size"))/100,this._isPercentLayout=!0);/px/.test(n)&&(n=parseInt(n,10));this._setPanelSize(this._panels[0],n);this._splittersLayout()},setSecondPanelSize:function(n){/%/.test(n)&&(n=n.replace("%","")*this._getSize(this._getOrientation("size"))/100,this._isPercentLayout=!0);/px/.test(n)&&(n=parseInt(n,10));this._setPanelSize(this._panels[0],this._getSize(this._getOrientation("size"))-n);this._splittersLayout()},destroy:function(){var r=this._opt.eventHandlers,t,i,u;for(this._removeEventHandlers(),this._removeClasses(),this.element.empty(),this.element.html(this._htmlMarkup),i=n.data(document.body,"ig-splitters")||[],t=0;t<i.length;t++)if(i[t][0].id===this.element[0].id){u=t;break}return i.splice(u,1),n.data(document.body,"ig-splitters",i),n(document).unbind(this._getEvent("mouseup"),r.documentMouseUp),n(document).unbind(this._getEvent("mousemove"),r.documentMouseMove),n(window).unbind("resize",r.windowResize),n.Widget.prototype.destroy.apply(this,arguments),this}});n.extend(n.ui.igSplitter,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igSplitButton",{options:{items:[{name:"button1",label:"Button 1",iconClass:"ui-icon-gear"}],defaultItemName:"button1",swapDefaultEnabled:!1},events:{click:"click",expanded:"expanded",expanding:"expanding",collapsed:"collapsed",collapsing:"collapsing"},css:{container:"ui-splitbutton ui-widget ui-state-default",arrow:"ui-splitbutton-arrow",conrnersLeft:"ui-corner-left",conrnersRight:"ui-corner-right",hover:"ui-splitbutton-hover",active:"ui-state-active",focus:"ui-state-focus"},_id:function(n){return this.element[0].id+n},_renderDefaultBtn:function(){var t=this.options,i=this._getDefaultItem(t.defaultItemName);this._options.defaultButton=n('<div id="'+this._id("_"+t.defaultItemName)+'"><\/div>').appendTo(this.element).igToolbarButton({onlyIcons:!0,labelText:"&nbsp;",title:i.label,icons:{primary:i.iconClass},name:t.defaultItemName,allowToggling:!1}).addClass("ui-splitbutton-cleargaps "+this.css.conrnersLeft).removeClass("ui-corner-all")},_renderExpandBtn:function(){this._options.expandButton=n("<div id='"+this._id("_arrow")+"' class='"+this.css.arrow+"'><\/div>").igToolbarButton({onlyIcons:!0,labelText:"&nbsp;",icons:{primary:"ui-icon-triangle-1-s"},allowToggling:!1}).addClass("ui-splitbutton-cleargaps "+this.css.conrnersRight).removeClass("ui-corner-all").appendTo(this.element)},_setupElement:function(){this.element.addClass(this.css.container).attr("tabIndex",0)},_create:function(){var n=this.options,t=this._getDefaultItem(n.defaultItemName);this._options={defaultButton:null,expandButton:null,itemsList:null,isExpanded:!1,justFocused:!1};this._setupElement();this._renderDefaultBtn();this._renderExpandBtn();this._createItemsList();this._attachEvents()},_attachEvents:function(){var t=this._options;t.defaultButton.on("igtoolbarbuttonclick",n.proxy(this._onDefaultBtnClick,this));t.expandButton.on("focus",n.proxy(this._onExpandBtnFocus,this));t.expandButton.on("blur",n.proxy(this._onExpandBtnBlur,this));t.expandButton.on("igtoolbarbuttonclick",n.proxy(this._onExpandBtnClick,this));t.itemsList.on("igtoolbarbuttonclick","a",n.proxy(this._onItemClick,this));this.element.on("keypress",n.proxy(this._onEnterKeypress,this));this.element.hover(n.proxy(this._onMouseEnter,this),n.proxy(this._onMouseLeave,this))},_onDefaultBtnClick:function(n){var t=this;n.stopPropagation();this._trigger(this.events.click,n,{name:t._options.defaultButton.igToolbarButton("option","name"),item:t.element})},_onExpandBtnClick:function(n){var t=this._options;if(!t.expandButton.is(":focus")){t.isExpanded||t.expandButton.focus();return}t.justFocused?t.justFocused=!1:this.toggle(n)},_onExpandBtnFocus:function(n){var t;this._options.isExpanded||(t=this._triggerExpanding(n),t&&(this.expand(n),this._options.justFocused=!0))},_onExpandBtnBlur:function(n){var t,i=this;this._options.isExpanded&&setTimeout(function(){t=i._triggerCollapsing(n);t&&i.collapse(n)},150)},_onItemClick:function(t){var i=n(t.currentTarget);this.options.swapDefaultEnabled&&this.switchToButton(i);t.stopImmediatePropagation();this._trigger(this.events.click,t,{name:i.igToolbarButton("option","name")})},_onEnterKeypress:function(t){t.which===n.ui.keyCode.ENTER&&this.toggle(t)},_onMouseEnter:function(){this.element.addClass(this.css.hover)},_onMouseLeave:function(){this.element.removeClass(this.css.hover)},_getDefaultItem:function(n){for(var i=this.options,t=0;t<i.items.length;t++)if(i.items[t].name===n)return i.items[t]},_createItemsList:function(){for(var r=n("<ul class='ui-splitbutton-list ui-menu ui-widget ui-widget-content ui-corner-all'><\/ul>"),i=this.options,u,t=0;t<i.items.length;t++)i.items[t].name!==i.defaultItemName&&(u=n('<a id="'+this._id("_"+i.items[t].name)+'" class="ui-corner-all" tabindex="-1"><\/a>').igToolbarButton({onlyIcons:!0,labelText:"",title:i.items[t].label,icons:{primary:i.items[t].iconClass},name:i.items[t].name,allowToggling:!1}).addClass("ui-splitbutton-cleargaps"),n('<li class="ui-menu-item" role="menuitem"><\/li>').appendTo(r).append(u));this._options.itemsList=r.appendTo(this.element)},switchToButton:function(t){var i=this._options.defaultButton,r=typeof t=="string"?n("#"+this._id("_"+t)):t,u=i.igToolbarButton("option"),f=i.attr("id"),e=r.igToolbarButton("option"),o=r.attr("id");r.igToolbarButton("option",u).attr("id",f);i.igToolbarButton("option",e).attr("id",o).igToolbarButton("toggle")},_triggerCollapsing:function(){var n={owner:this};return this._trigger(this.events.collapsing,null,n)},_triggerCollapsed:function(){var n={owner:this};return this._trigger(this.events.collapsed,null,n)},_triggerExpanding:function(){var n={owner:this};return this._trigger(this.events.expanding,null,n)},_triggerExpanded:function(){var n={owner:this};return this._trigger(this.events.expanded,null,n)},widget:function(){return this.element},toggle:function(n){var t,i=this._options;i.isExpanded?(t=this._triggerCollapsing(n),t&&this.collapse(n)):(t=this._triggerExpanding(n),t&&this.expand(n))},collapse:function(n){var t=this,i=this._options,r=i.expandButton;i.itemsList.hide(0,function(){t.element.removeClass(t.css.active);i.expandButton.removeClass(t.css.focus);i.isExpanded=!1;n&&n.originalEvent?t._triggerCollapsed(n):r.is(":focus")&&r.blur()})},expand:function(n){var t=this,i=this._options,r=i.expandButton;i.itemsList.show(0,function(){t.element.addClass(t.css.active);i.isExpanded=!0;n&&n.originalEvent?t._triggerExpanded(n):r.is(":focus")||r.focus()})},destroy:function(){var t=this._options;n.Widget.prototype.destroy.apply(this,arguments);t.itemsList.off();this.element.find(":ui-igToolbarButton").igToolbarButton("destroy").end().off().removeClass(this.css.container).removeAttr("tabindex").empty();delete t.expandButton;delete t.itemsList}});n.extend(n.ui.igSplitButton,{version:"14.1.20141.2031"})}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["AbstractEnumerable:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","IEnumerable:x","IEnumerator:y","Func$1:z","MulticastDelegate:aa","IntPtr:ab","AbstractEnumerator:ac","IEnumerable$1:ad","IEnumerator$1:ae","ICollection$1:af","IList$1:ag","IArrayList:ah","Array:ai","ICollection:aj","CompareCallback:ak","List$1:al","IList:am","IDisposable:an","IArray:ao","Script:ap","Date:aq","Date:ar","Number:as","Func$3:at","Action$1:au","IDictionary$2:aw","Dictionary$2:ax","IDictionary:ay","Dictionary:az","IEqualityComparer$1:a0","KeyValuePair$2:a1","NotImplementedException:a2","Error:a3","GenericEnumerable$1:a4","GenericEnumerator$1:a5","INotifyCollectionChanged:a6","NotifyCollectionChangedEventHandler:a7","NotifyCollectionChangedEventArgs:a8","EventArgs:a9","NotifyCollectionChangedAction:ba","ObservableCollection$1:bd","INotifyPropertyChanged:be","PropertyChangedEventHandler:bf","PropertyChangedEventArgs:bg","Delegate:bh","ReadOnlyCollection$1:bj","NameValueCollection:bl","IOrderedEnumerable$1:bu","Enumerable:bz","Func$2:b0","SortedList$1:b1","Math:b2","Number:b3","Number:b4","Number:b5","Number:b6","Number:b7","Number:b8","Number:b9","ArgumentNullException:ca","AggregateException:cn","ArgumentException:co","AsyncCompletedEventArgs:cq","ListSortDirection:cs","Environment:cu","InvalidOperationException:cv","Debug:cw","ICredentials:cz","NetworkCredential:c0","Uri:c1","UploadStringCompletedEventHandler:c2","UploadStringCompletedEventArgs:c3","WebClient:c4","Encoding:c5","UTF8Encoding:c6","UnicodeEncoding:c7","WebHeaderCollection:c8","Task$1:c9","Task:da","JQueryPromise:db","Action:dc","TaskStatus:dd","TaskCompletionSource$1:de","JQueryDeferred:df","JQuery:dg","JQueryObject:dh","Element:di","ElementAttributeCollection:dj","ElementCollection:dk","WebStyle:dl","ElementNodeType:dm","Document:dn","EventListener:dp","IElementEventHandler:dq","ElementEventHandler:dr","ElementAttribute:ds","JQueryPosition:dt","JQueryCallback:du","JQueryEvent:dv","JQueryUICallback:dw","FaultCode:dx","FaultException:dy","FaultReason:dz","FaultException$1:d0","StringBuilder:d1","TaskFactory:d4","Tuple$2:d5","JavaScriptSerializer:d6","XObject:f9","XmlNode:ga","XmlNodeList:gb","XmlNamedNodeMap:gc","XmlNodeType:gd","XmlDocument:ge","XmlElement:gf","XmlLinkedNode:gg","XmlAttribute:gh","XmlUtils:gi","XAttribute:gj","XNode:gk","XContainer:gl","XElement:gm","XName:gn","XNamespace:go","XDocument:gp"]);n.ig.util.defType("TaskStatus:dd","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("TaskStatus",n.ig.$ep.$type)},!0);n.ig.util.defType("ListSortDirection:cs","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ListSortDirection",n.ig.$ep.$type)},!0);n.ig.util.defType("NotifyCollectionChangedAction:ba","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("NotifyCollectionChangedAction",n.ig.$ep.$type)},!0);n.ig.util.defType("AbstractEnumerable:a","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},getEnumerator:function(){return new t.ac(this.a().getEnumerator())},$type:new n.ig.Type("AbstractEnumerable",n.ig.$ot,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("AbstractEnumerator:ac","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},current:function(){return this.a.current()},moveNext:function(){return this.a.moveNext()},reset:function(){this.a.reset()},$type:new n.ig.Type("AbstractEnumerator",n.ig.$ot,[n.ig.IEnumerator.prototype.$type])},!0);n.ig.util.defType("IEnumerable$1:ad","Object",{$type:new n.ig.Type("IEnumerable$1",null,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("ICollection$1:af","Object",{$type:new n.ig.Type("ICollection$1",null,[t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("IList$1:ag","Object",{$type:new n.ig.Type("IList$1",null,[t.$af.$type.specialize(0),t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("IArrayList:ah","Object",{$type:new n.ig.Type("IArrayList",null)},!0);n.ig.util.defType("List$1:al","Object",{$t:null,__inner:null,init:function(t,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.e={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.__inner=new n.ig.Array},init1:function(t,i,r){var u,f;if(this.e={},this.$t=t,this.$type=this.$type.specialize(this.$t),n.ig.$op.init.call(this),this.__inner=new n.ig.Array,!this.b(0,r))for(u=r.getEnumerator();u.moveNext();)f=u.current(),this.add1(f)},init2:function(t){this.e={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.__inner=new n.ig.Array},o:function(n,t){this.__inner[n]=t},j:function(n,t){this.__inner.insert(n,t)},f:function(n){this.__inner.add(n)},m:function(n){this.__inner.removeAt(n)},h:function(){this.__inner.clear()},item:function(n,t){return arguments.length===2?(this.o(n,t),t):this.__inner[n]},indexOf:function(n){return this.__inner.indexOf(n)},insert:function(n,t){this.j(n,t)},removeAt:function(n){this.m(n)},count:function(){return this.__inner.length},isReadOnly:function(){return!1},add1:function(n){this.f(n)},clear:function(){this.h()},contains1:function(n){return this.__inner.contains(n)},copyTo:function(n,t){for(var i=0;i<this.__inner.length;i++)n[t+i]=this.__inner[i]},remove1:function(n){var t=this.indexOf(n);return t<0?!1:(this.m(t),!0)},getEnumerator:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__inner.getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerator$1(this.$t,i())},asArrayList:function(){return this.__inner},b:function(i,r){var s=n.ig.util.cast(t.$ah.$type,r),e,f,u,o;if(s!=null)return this.__inner.insertRange1(i,s.asArrayList()),!0;if(e=n.ig.util.cast(t.$ao.$type,r),e!=null)return this.__inner.insertRange(i,e.asArray()),!0;if(f=n.ig.util.cast(t.$ag.$type.specialize(this.$t),r),f!=null){for(u=0;u<f.count();u++)this.__inner.insert(i+u,f.item(u));return!0}return(o=n.isArray(r)?r:null,o!=null)?(this.__inner.insertRange(i,o),!0):!1},insertRange1:function(n,t){var i,r,u;if(!this.b(n,t))for(i=0,r=t.getEnumerator();r.moveNext();)u=r.current(),this.__inner.insert(n+i,u),i++},insertRange:function(n,t){var i,r,u;if(!this.b(n,t))for(i=0,r=t.getEnumerator();r.moveNext();)u=r.current(),this.__inner.insert(n+i,u),i++},removeRange:function(n,t){this.__inner.splice(n,t)},copyTo1:function(n,t){this.__inner.copyTo(n,t)},isFixedSize:function(){return!1},add:function(n){return this.f(n),this.__inner.length-1},contains:function(n){return this.__inner.contains(n)},indexOf1:function(n){return this.__inner.indexOf(n)},insert1:function(n,t){this.j(n,t)},remove:function(n){var t=this.indexOf1(n);this.m(t)},sort:function(){var i=this,r=null;r=i.$t==Number?function(n,t){var i=n,r=t;return i<r?-1:i==r?0:1}:i.$t==n.ig.Single.prototype.$type?function(n,t){var i=n,r=t;return i<r?-1:i==r?0:1}:i.$t==n.ig.Number.prototype.$type?function(n,t){var i=n,r=t;return i<r?-1:i==r?0:1}:i.$t==t.$aq.$type?function(n,t){var i=n,r=t;return i.getTime()<r.getTime()?-1:i.getTime()==r.getTime()?0:1}:function(n,t){return n.compareTo(t)};i.r(r)},r:function(n){this.__inner.sort(n)},sort1:function(n){var t=this;t.__inner.sort(function(t,i){var r=t,u=i;return n(r,u)})},_capacity:0,capacity:function(n){return arguments.length===1?(this._capacity=n,n):this._capacity},addRange:function(n){for(var t=n.getEnumerator(),i;t.moveNext();)i=t.current(),this.__inner.add(i)},toArray:function(){return this.__inner.slice(0)},forEach:function(){},isSynchronized:function(){return!0},e:null,syncRoot:function(){return this.e},$type:new n.ig.Type("List$1",n.ig.$ot,[t.$ag.$type.specialize(0),t.$ah.$type,n.ig.IList.prototype.$type])},!0);n.ig.util.defType("KeyValuePair$2:a1","ValueType",{$tKey:null,$tValue:null,init:function(t,i,r){if(r>0){switch(r){case 1:this.init1.apply(this,arguments)}return}this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.ValueType.prototype.init.call(this)},a:null,c:null,init1:function(t,i,r,u,f){this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.ValueType.prototype.init.call(this);this.a=u;this.c=f},key:function(){return this.a},value:function(){return this.c},$type:new n.ig.Type("KeyValuePair$2",n.ig.ValueType.prototype.$type)},!0);n.ig.util.defType("IDictionary$2:aw","Object",{$type:new n.ig.Type("IDictionary$2",null,[t.$af.$type.specialize(t.$a1.$type.specialize(this.$tKey,this.$tValue)),t.$ad.$type.specialize(t.$a1.$type.specialize(this.$tKey,this.$tValue)),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("Dictionary$2:ax","Object",{$tKey:null,$tValue:null,__inner:null,__keys:null,init:function(t,i,r){if(r>0){switch(r){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.g=null;this._useToString=!1;this.a=!1;this._needsEnsure=!1;this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.__inner=new n.ig.Dictionary(0);this.__keys=new n.ig.Dictionary(0)},init1:function(t,i,r,u){this.g=null;this._useToString=!1;this.a=!1;this._needsEnsure=!1;this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.__inner=new n.ig.Dictionary(1,u);this.__keys=new n.ig.Dictionary(0)},g:null,init2:function(t,i,r,u){this.g=null;this._useToString=!1;this.a=!1;this._needsEnsure=!1;this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.__inner=new n.ig.Dictionary(0);this.__keys=new n.ig.Dictionary(0);this.g=u},count:function(){return this.__inner.count()},item:function(n,t){return arguments.length===2?(this.__inner.item(this.i(n),t),this.__keys.item(this.i(n),n),t):this.__inner.item(this.i(n))},length:function(){return this.__inner.length()},containsKey:function(n){return this.__inner.containsKey(this.i(n))},remove:function(n){var t=this.i(n);return this.__keys.containsKey(t)?(this.__inner.remove(t),this.__keys.remove(t),!0):!1},clear:function(){this.__inner.clear();this.__keys.clear()},_useToString:!1,a:!1,_needsEnsure:!1,j:function(n){this.a||(this.a=!0,this._needsEnsure=typeof n=="object",this._needsEnsure||(this._useToString=!n.getHashCode))},i:function(t){return(this.j(t),this._needsEnsure&&n.ig.util.ensureUniqueId(t),this.g!=null)?this.g.getHashCode(t).toString():this._useToString?t.toString():t.getHashCode().toString()},add:function(n,t){this.__inner.item(this.i(n),t);this.__keys.item(this.i(n),n)},tryGetValue:function(n,t){return this.__inner.containsKey(this.i(n))?(t=this.__inner.item(this.i(n)),{ret:!0,value:t}):(t=null,{ret:!1,value:t})},keys:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__keys.values().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(this.$tKey,i)},values:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__inner.values().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(this.$tValue,i)},isReadOnly:function(){return!1},add1:function(n){this.add(n.key(),n.value())},contains:function(n){return this.containsKey(n.key())},copyTo:function(){throw new t.a2;},remove1:function(n){return this.remove(n.key()),!0},f:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__keys.values().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=new t.a1(this.$tKey,this.$tValue,1,this.$a,this.$this.__inner.item(this.$this.i(this.$a))),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(t.$a1.$type.specialize(this.$tKey,this.$tValue),r)},getEnumerator:function(){return this.f().getEnumerator()},$type:new n.ig.Type("Dictionary$2",n.ig.$ot,[n.ig.IDictionary$2.prototype.$type.specialize(0,1),n.ig.IDictionary.prototype.$type])},!0);n.ig.util.defType("GenericEnumerable$1:a4","Object",{$t:null,a:null,init:function(t,i){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=i},getEnumerator:function(){return new t.a5(this.$t,this.a().getEnumerator())},$type:new n.ig.Type("GenericEnumerable$1",n.ig.$ot,[t.$ad.$type.specialize(0)])},!0);n.ig.util.defType("IEnumerator$1:ae","Object",{$type:new n.ig.Type("IEnumerator$1",null,[n.ig.IEnumerator.prototype.$type])},!0);n.ig.util.defType("GenericEnumerator$1:a5","Object",{$t:null,a:null,init:function(t,i){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=i},current:function(){return this.a.current()},moveNext:function(){return this.a.moveNext()},reset:function(){this.a.reset()},$type:new n.ig.Type("GenericEnumerator$1",n.ig.$ot,[t.$ae.$type.specialize(0)])},!0);n.ig.util.defType("INotifyCollectionChanged:a6","Object",{$type:new n.ig.Type("INotifyCollectionChanged",null)},!0);n.ig.util.defType("NotifyCollectionChangedEventArgs:a8","EventArgs",{init:function(i,r){if(i>0){switch(i){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}t.$a9.init.call(this);this.f=r;this.c=new t.al(n.ig.$op.$type,0);this.b=new t.al(n.ig.$op.$type,0)},init1:function(i,r,u,f){var e=this;t.$a9.init.call(this);this.f=r;this.c=new t.al(n.ig.$op.$type,0);(this.f==1||this.f==2)&&(this.c.add(u),this.i=f);this.b=this.f!=1?function(){var i=new t.al(n.ig.$op.$type,0);return i.add(u),i}():new t.al(n.ig.$op.$type,0);this.h=f},init2:function(i,r,u,f,e){var o=this;t.$a9.init.call(this);this.f=r;this.h=e;this.i=e;this.b=function(){var i=new t.al(n.ig.$op.$type,0);return i.add(u),i}();this.c=function(){var i=new t.al(n.ig.$op.$type,0);return i.add(f),i}()},f:null,action:function(){return this.f},b:null,newItems:function(){return this.b},h:0,newStartingIndex:function(){return this.h},c:null,oldItems:function(){return this.c},i:0,oldStartingIndex:function(){return this.i},$type:new n.ig.Type("NotifyCollectionChangedEventArgs",t.$a9.$type)},!0);n.ig.util.defType("ObservableCollection$1:bd","List$1",{$t:null,init:function(n,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init.call(this,this.$t)},init1:function(n,i,r){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init1.call(this,this.$t,1,r)},init2:function(n,i,r){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init2.call(this,this.$t,2,r)},o:function(n,i){var u=this.__inner[n],r;t.$al.o.call(this,n,i);this.propertyChanged!=null&&this.t(new t.bg("Item[]"));this.collectionChanged!=null&&(r=new t.a8(2,2,i,u,n),this.s(r))},h:function(){if(t.$al.h.call(this),this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]"))),this.collectionChanged!=null){var n=new t.a8(0,4);this.s(n)}},j:function(n,i){if(t.$al.j.call(this,n,i),this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]"))),this.collectionChanged!=null){var r=new t.a8(1,0,i,n);this.s(r)}},f:function(n){if(t.$al.f.call(this,n),this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]"))),this.collectionChanged!=null){var i=new t.a8(1,0,n,this.count()-1);this.s(i)}},m:function(n){var r=this.__inner[n],i;t.$al.m.call(this,n);this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]")));this.collectionChanged!=null&&(i=new t.a8(1,1,r,n),this.s(i))},collectionChanged:null,propertyChanged:null,t:function(n){this.propertyChanged!=null&&this.propertyChanged(this,n)},s:function(n){this.collectionChanged!=null&&this.collectionChanged(this,n)},$type:new n.ig.Type("ObservableCollection$1",t.$al.$type.specialize(0),[t.$a6.$type,t.$be.$type])},!0);n.ig.util.defType("ReadOnlyCollection$1:bj","Object",{$t:null,init:function(t,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}this.c={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this)},init1:function(t,i,r){this.c={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=r},a:null,item:function(n,t){return arguments.length===2?(this.a.item(n,t),t):this.a.item(n)},indexOf:function(n){return this.a.indexOf(n)},insert:function(){},removeAt:function(){},count:function(){return this.a.count()},isReadOnly:function(){return!0},add1:function(){},clear:function(){},contains1:function(n){return this.a.contains(n)},copyTo:function(n,t){this.a.copyTo(n,t)},remove1:function(){return!1},getEnumerator:function(){return this.a.getEnumerator()},isFixedSize:function(){return!0},add:function(){return-1},contains:function(n){return this.a.contains(n)},indexOf1:function(n){return this.a.indexOf(n)},insert1:function(){},remove:function(){},copyTo1:function(n,t){this.a.copyTo(n,t)},b:function(){return this.a},isSynchronized:function(){return!0},c:null,syncRoot:function(){return this.c},$type:new n.ig.Type("ReadOnlyCollection$1",n.ig.$ot,[t.$ag.$type.specialize(0),n.ig.IList.prototype.$type])},!0);n.ig.util.defType("NameValueCollection:bl","Object",{a:null,init:function(){n.ig.$op.init.call(this);this.a=new t.ax(String,String,0)},item:function(n,t){return arguments.length===2?(this.a.containsKey(n)?this.a.item(n,t):this.a.add(n,t),t):this.a.containsKey(n)?this.a.item(n):null},$type:new n.ig.Type("NameValueCollection",n.ig.$ot)},!0);n.ig.util.defType("IOrderedEnumerable$1:bu","Object",{$type:new n.ig.Type("IOrderedEnumerable$1",null,[t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("Enumerable:bz","Object",{init:function(){n.ig.$op.init.call(this)},where$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=7;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$state=t(this.$b)?4:6;break;case 4:return this.$current=this.$b,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$state=this.$c.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},where$11:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:0,$c:null,$d:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$b=0;this.$state=1;break;case 1:this.$d=this.$this.getEnumerator();this.$state=7;break;case 2:this.$c=this.$d.current();this.$state=3;break;case 3:this.$state=t(this.$c,this.$b)?4:6;break;case 4:return this.$current=this.$c,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$b++;this.$state=7;break;case 7:this.$state=this.$d.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},select$2:function(t,i,r){var u=this,f=function(){return function(n,t,i){return{$state:0,$this:u,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:return this.$b=this.$c.current(),this.$current=i(this.$b),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i,r)};return new n.ig.GenericEnumerable$1(i,f)},selectMany$2:function(t,i,r){var u=this,f=function(){return function(n,t,i){return{$state:0,$this:u,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$e=i(this.$b).getEnumerator();this.$state=6;break;case 4:return this.$d=this.$e.current(),this.$current=this.$d,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=this.$e.moveNext()?4:7;break;case 7:this.$state=8;break;case 8:this.$state=this.$c.moveNext()?2:9;break;case 9:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i,r)};return new n.ig.GenericEnumerable$1(i,f)},ofType$1:function(t){var i=this,r=function(){return function(t){return{$state:0,$this:i,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.getEnumerator();this.$state=7;break;case 2:this.$a=this.$b.current();this.$state=3;break;case 3:this.$state=n.ig.util.cast(t,this.$a)!==null?4:6;break;case 4:return this.$current=this.$a,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$state=this.$b.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t)};return new n.ig.GenericEnumerable$1(t,r)},last$1:function(i){var r=n.ig.util.cast(t.$ag.$type.specialize(i),this),u,f,e;if(r!=null)return r.item(r.count()-1);for(u=null,f=this.getEnumerator();f.moveNext();)e=f.current(),u=e;return u},first$1:function(){for(var n=this.getEnumerator();n.moveNext();)return n.current();return null},firstOrDefault$1:function(){for(var n=this.getEnumerator();n.moveNext();)return n.current();return null},orderBy$2:function(i,r,u){var e=this,f=new t.b1(i,e);return f.sort1(function(i,r){var o=i,s=r,f=u(o),e=u(s);return n.ig.util.cast(t.$h.$type,f)!==null?n.ig.util.cast(t.$h.$type,f).compareTo(e):f.toString().compareTo(e.toString())}),f},orderByDescending$2:function(i,r,u){var e=this,f=new t.b1(i,e);return f.sort1(function(i,r){var o=r,s=i,f=u(o),e=u(s);return n.ig.util.cast(t.$h.$type,f)!==null?n.ig.util.cast(t.$h.$type,f).compareTo(e):f.toString().compareTo(e.toString())}),f},toList$1:function(n){return new t.al(n,1,this)},d:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=n;this.$state=5;break;case 2:return this.$current=this.$c,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$c++;this.$state=5;break;case 5:this.$state=this.$c<t?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(n.ig.Number.prototype.$type,u)},concat$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:return this.$b=this.$c.current(),this.$current=this.$b,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()?2:5;break;case 5:this.$state=6;break;case 6:this.$e=t.getEnumerator();this.$state=9;break;case 7:return this.$d=this.$e.current(),this.$current=this.$d,this.$state=8,!0;case 8:this.$state=9;break;case 9:this.$state=this.$e.moveNext()?7:10;break;case 10:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},max:function(){for(var i=!0,n=0,r=this.getEnumerator(),t;r.moveNext();)t=r.current(),i?(i=!1,n=t):n=Math.max(n,t);return n},max$1:function(t,i){return this.select$2(t,n.ig.Number.prototype.$type,i).max()},min:function(){for(var i=!0,n=0,r=this.getEnumerator(),t;r.moveNext();)t=r.current(),i?(i=!1,n=t):n=Math.min(n,t);return n},min$1:function(t,i){return this.select$2(t,n.ig.Number.prototype.$type,i).max()},count$1:function(){for(var n=0,t=this.getEnumerator(),i;t.moveNext();)i=t.current(),n++;return n},reverse$1:function(i){var r=this,u=function(){return function(n){return{$state:0,$this:r,$current:null,$a:null,$b:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$a=new t.al(n,1,this.$this);this.$state=1;break;case 1:this.$b=this.$a.count()-1;this.$state=5;break;case 2:return this.$current=this.$a.__inner[this.$b],this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$b--;this.$state=5;break;case 5:this.$state=this.$b>0?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(i)};return new n.ig.GenericEnumerable$1(i,u)},cast$1:function(i){var u,r,f,e;if(this==null)throw new t.ca("source");if(u=n.ig.util.cast(t.$ad.$type.specialize(i),this),u!=null)return u;for(r=new t.al(i,0),f=this.getEnumerator();f.moveNext();)e=f.current(),n.ig.util.cast(i,e)!==null?r.add1(e):r.add1(null);return r},take$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=9;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$state=t>0?4:6;break;case 4:return t--,this.$current=this.$b,this.$state=5,!0;case 5:this.$state=8;break;case 6:return this.$state=-2,!1;case 7:this.$state=8;break;case 8:this.$state=9;break;case 9:this.$state=this.$c.moveNext()?2:10;break;case 10:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},skip$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$state=t<=0?4:6;break;case 4:return this.$current=this.$b,this.$state=5,!0;case 5:this.$state=7;break;case 6:t--;this.$state=7;break;case 7:this.$state=8;break;case 8:this.$state=this.$c.moveNext()?2:9;break;case 9:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},any$1:function(){for(var n=this.getEnumerator(),t;n.moveNext();)return t=n.current(),!0;return!1},contains$1:function(n,t){for(var i=this.getEnumerator(),r;i.moveNext();)if(r=i.current(),r===t)return!0;return!1},union$1:function(){return null},toArray$1:function(n){var i=new t.al(n,1,this);return i.asArrayList()},elementAt$1:function(i,r){var u=n.ig.util.cast(t.$ag.$type.specialize(i),this);return u!=null?u.item(r):this.skip$1(i,r).first$1(i)},sum:function(){for(var n=0,t=this.getEnumerator(),i;t.moveNext();)i=t.current(),n+=i;return n},sum$1:function(n,t){return this.select$2(n,Number,t).sum()},$type:new n.ig.Type("Enumerable",n.ig.$ot)},!0);n.ig.util.defType("SortedList$1:b1","List$1",{$tElement:null,init:function(n,i){this.$tElement=n;this.$type=this.$type.specialize(this.$tElement);t.$al.init1.call(this,this.$tElement,1,i)},getEnumerator:function(){return t.$al.getEnumerator.call(this)},$type:new n.ig.Type("SortedList$1",t.$al.$type.specialize(0),[t.$bu.$type.specialize(0)])},!0);n.ig.util.defType("IArray:ao","Object",{$type:new n.ig.Type("IArray",null)},!0);n.ig.util.defType("AggregateException:cn","Error",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}t.$a3.init.call(this)},init1:function(n,i){t.$a3.init1.call(this,1,i)},init2:function(n,i,r){t.$a3.init2.call(this,2,i,r)},$type:new n.ig.Type("AggregateException",t.$a3.$type)},!0);n.ig.util.defType("ArgumentException:co","Error",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$a3.init1.call(this,1,i)},init1:function(n,i){t.$a3.init1.call(this,1,i)},$type:new n.ig.Type("ArgumentException",t.$a3.$type)},!0);n.ig.util.defType("ArgumentNullException:ca","Error",{init:function(n){t.$a3.init1.call(this,1,n+" cannot be null.")},$type:new n.ig.Type("ArgumentNullException",t.$a3.$type)},!0);n.ig.util.defType("AsyncCompletedEventArgs:cq","EventArgs",{d:null,b:!1,f:null,init:function(n,i,r){t.$a9.init.call(this);this.b=i;this.d=n;this.f=r},error:function(){return this.d},cancelled:function(){return this.b},userState:function(){return this.f},h:function(){if(this.error()!=null)throw this.error();},$type:new n.ig.Type("AsyncCompletedEventArgs",t.$a9.$type)},!0);n.ig.util.defType("Environment:cu","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){return"\n"},$type:new n.ig.Type("Environment",n.ig.$ot)},!0);n.ig.util.defType("InvalidOperationException:cv","Error",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$a3.init1.call(this,1,"Invalid operation")},init1:function(n,i){t.$a3.init1.call(this,1,i)},$type:new n.ig.Type("InvalidOperationException",t.$a3.$type)},!0);n.ig.util.defType("Debug:cw","Object",{init:function(){n.ig.$op.init.call(this)},b:function(){},c:function(){},a:function(){},$type:new n.ig.Type("Debug",n.ig.$ot)},!0);n.ig.util.defType("ICredentials:cz","Object",{$type:new n.ig.Type("ICredentials",null)},!0);n.ig.util.defType("NetworkCredential:c0","Object",{init:function(n,i,r){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$c0.init1.call(this,1,i,r,String.empty())},init1:function(t,i,r,u){n.ig.$op.init.call(this);this.c(i);this.b(r);this.a(u)},getCredential:function(){return this},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("NetworkCredential",n.ig.$ot,[t.$cz.$type])},!0);n.ig.util.defType("UploadStringCompletedEventArgs:c3","AsyncCompletedEventArgs",{i:null,init:function(n,i,r,u){t.$cq.init.call(this,i,r,u);this.i=n},result:function(){return this.h(),this.i},$type:new n.ig.Type("UploadStringCompletedEventArgs",t.$cq.$type)},!0);n.ig.util.defType("WebClient:c4","Object",{init:function(){n.ig.$op.init.call(this);this.c(new t.c8)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},uploadStringCompleted:null,h:function(n,i,r,u){var f=this;f.e(n,i,r).i(function(n){if(f.uploadStringCompleted!=null){var i=null,r=null;try{i=n.m()}catch(e){r=e}f.uploadStringCompleted(f,new t.c3(i,r,n.g()==6,u))}})},e:function(i,r,u){var f=i.value(),e=r,o=u,s=this.c().item("Content-Type"),h=this.a(),c=n.ig.util.ajax(f,s,o,e,h);return new t.c9(String,c,null)},g:function(n,t){n.e(t)},f:function(n,i,r,u){n.d(new t.a3(1,u))},$type:new n.ig.Type("WebClient",n.ig.$ot)},!0);n.ig.util.defType("WebHeaderCollection:c8","NameValueCollection",{init:function(){t.$bl.init.call(this)},$type:new n.ig.Type("WebHeaderCollection",t.$bl.$type)},!0);n.ig.util.defType("FaultCode:dx","Object",{init:function(t){n.ig.$op.init.call(this);this.a(t)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("FaultCode",n.ig.$ot)},!0);n.ig.util.defType("FaultException:dy","Error",{init:function(n,i,r){t.$a3.init.call(this);this.reason(n);this.code(i);this.action(r)},_action:null,action:function(n){return arguments.length===1?(this._action=n,n):this._action},_code:null,code:function(n){return arguments.length===1?(this._code=n,n):this._code},_reason:null,reason:function(n){return arguments.length===1?(this._reason=n,n):this._reason},$type:new n.ig.Type("FaultException",t.$a3.$type)},!0);n.ig.util.defType("FaultException$1:d0","FaultException",{$tDetail:null,init:function(n,i,r,u,f){this.$tDetail=n;this.$type=this.$type.specialize(this.$tDetail);t.$dy.init.call(this,r,u,f);this.detail(i)},_detail:null,detail:function(n){return arguments.length===1?(this._detail=n,n):this._detail},$type:new n.ig.Type("FaultException$1",t.$dy.$type)},!0);n.ig.util.defType("FaultReason:dz","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},toString:function(){return this.a},$type:new n.ig.Type("FaultReason",n.ig.$ot)},!0);n.ig.util.defType("StringBuilder:d1","Object",{_internal:null,internal:function(n){return arguments.length===1?(this._internal=n,n):this._internal},init:function(){n.ig.$op.init.call(this);this._internal=[]},d:function(n){return this._internal.push(n),this},e:function(n){var t=n.b();return this._internal.push(t),this},c:function(n){return this._internal.push(n),this},f:function(n){return this._internal.push(n+String.fromCharCode(10)),this},g:function(n,t){return this._internal.splice(n,0,t),this},h:function(n,t){return this._internal.splice(n,0,t),this},i:function(n,t){return this._internal.splice(n,t),this},b:function(){return this._internal.join("")},$type:new n.ig.Type("StringBuilder",n.ig.$ot)},!0);n.ig.util.defType("NotImplementedException:a2","Error",{init:function(){t.$a3.init1.call(this,1,"not implemented")},$type:new n.ig.Type("NotImplementedException",t.$a3.$type)},!0);n.ig.util.defType("Encoding:c5","Object",{init:function(){n.ig.$op.init.call(this)},uTF8:function(){return t.$c5.g==null&&(t.$c5.g=new t.c6),t.$c5.g},unicode:function(){return t.$c5.f==null&&(t.$c5.f=new t.c7),t.$c5.f},getString:function(){return""},getBytes2:function(){},getBytes:function(n,t,i){var r=new Array(this.getByteCount(n,t,i));return this.getBytes2(n,t,i,r,0),r},getBytes1:function(n){var r,i;if(n==null)throw new t.ca("input");for(r=new Array(n.length),i=0;i<n.length;i++)r[i]=n.charAt(i);return this.getBytes(r,0,r.length)},getByteCount:function(){},$type:new n.ig.Type("Encoding",n.ig.$ot)},!0);n.ig.util.defType("UnicodeEncoding:c7","Encoding",{init:function(){t.$c5.init.call(this)},getString:function(t,i,r){for(var f="",u=i;u<r;u=u+2){if(t[u]==0)break;if(u+1>=r)f=f+"�";else{var e=t[u].toString(16),o=t[u+1].toString(16),s=n.ig.Number.prototype.parseInt(o+e,16);f=f+String.fromCharCode(s)}}return f},getByteCount:function(){return 0},getBytes2:function(){return 0},getBytes:function(n,i,r){return t.$c5.getBytes.call(this,n,i,r)},getBytes1:function(t){for(var u,r=new Array(t.length*2),i=0;i<t.length;i++)u=t.charCodeAt(i).toString(16).padLeft(4,"0"),r[2*i]=n.ig.Number.prototype.parseInt(u.substr(2),16),r[2*i+1]=n.ig.Number.prototype.parseInt(u.substr(0,2),16);return r},$type:new n.ig.Type("UnicodeEncoding",t.$c5.$type)},!0);n.ig.util.defType("UTF8Encoding:c6","Encoding",{init:function(){t.$c5.init.call(this)},getString:function(n,t,i){for(var u="",r=t;r<i;r++){if(n[r]==0)break;u=u+String.fromCharCode(n[r])}return decodeURIComponent(escape(u))},getByteCount:function(){return 0},getBytes2:function(){return 0},getBytes:function(n,i,r){return t.$c5.getBytes.call(this,n,i,r)},getBytes1:function(n){for(var i=new Array(n.length),r=unescape(encodeURIComponent(n)),t=0;t<r.length;t++)i[t]=r.charCodeAt(t);return i},$type:new n.ig.Type("UTF8Encoding",t.$c5.$type)},!0);n.ig.util.defType("Task:da","Object",{_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$da.init1.call(this,1,i,null)},init1:function(i,r,u){var f=this,e,o;n.ig.$op.init.call(this);e=function(){};o=function(n){n==null?f.b(!0):f.a(new t.cn(2,"Exception occurred during task execution",n))};this.c(r.done(e).fail(o));this.d(u)},g:function(){if(this.b())return 6;switch(this.c().state()){case"pending":return 0;case"resolved":return 5;case"rejected":return 7;default:return 0}},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},e:function(n){var i=this,r=function(){return n(i)},u=function(){return n(i)},f=i.c().done(r).fail(u);return new t.da(0,f)},f:function(n,i){var u=this,r=new t.de(n,0),f=function(){try{var n=i(u);r.e(n)}catch(t){r.d(t)}},e=function(){return f()},o=function(){return f()};return u.c().done(e).fail(o),r.b()},$type:new n.ig.Type("Task",n.ig.$ot)},!0);n.ig.util.defType("Task$1:c9","Task",{$tResult:null,init:function(n,i,r){var u=this,f,e;this.h=!1;this.$tResult=n;this.$type=this.$type.specialize(this.$tResult);t.$da.init1.call(this,1,i,r);f=function(n){var t=n;u.l=t;u.h=!0};e=function(){u.h=!0};this.c().done(f).fail(e)},h:!1,l:null,m:function(){if(!this.h)throw"Result is not ready yet";if(this.a()!=null)throw this.a();return this.l},i:function(n){var i=this;return t.$da.e.call(i,function(t){return n(t)})},j:function(t,i){var r=this,u=function(n){return i(n)};return r.k(n.ig.$op.$type,u).k(t,function(n){return n.m()})},k:function(n,i){return t.$da.f.call(this,n,i)},$type:new n.ig.Type("Task$1",t.$da.$type)},!0);n.ig.util.defType("TaskCompletionSource$1:de","Object",{$tResult:null,_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(n,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}this.$tResult=n;this.$type=this.$type.specialize(this.$tResult);t.$de.init1.call(this,this.$tResult,1,null)},init1:function(i,r,u){this.$tResult=i;this.$type=this.$type.specialize(this.$tResult);n.ig.$op.init.call(this);this.a(n.ig.util.deferred());this.b(new t.c9(this.$tResult,this.a().promise(),u))},c:function(){this.a().reject(null)},d:function(n){this.a().reject(n)},e:function(n){this.a().resolve(n)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("TaskCompletionSource$1",n.ig.$ot)},!0);n.ig.util.defType("TaskFactory:d4","Object",{init:function(){n.ig.$op.init.call(this)},c:function(n,i){var r=this;return new t.da(0,r.b(r.a(n)).always(function(){return i(n)}))},d:function(n,i,r){var f=this,u=new t.de(n,0);return f.b(f.a(i)).always(function(){try{var n=r(i);u.e(n)}catch(t){u.d(t)}}),u.b()},e:function(t,i,r,u){var f=this,e=function(n){return u(n)};return f.d(n.ig.$op.$type,r,e).j(i,function(n){return n.m()})},a:function(n){for(var i=new Array(n.length),t=0;t<n.length;t++)i[t]=n[t].c();return i},b:function(t){var i=t;return function(t){function i(){var i=n.ig.util.deferred(),u,t,r;if(arguments.length===0)return i.resolve(),i;for(u=arguments.length,t=!0,r=0;r<arguments.length;r++)arguments[r].done(function(){t=t&&!0}).fail(function(){t=t&&!1}).always(function(){u--;u<=0&&(t?i.resolve():i.reject())});return i}return i.apply(n,t)}(i)},$type:new n.ig.Type("TaskFactory",n.ig.$ot)},!0);n.ig.util.defType("Tuple$2:d5","Object",{$t1:null,$t2:null,_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},init:function(t,i,r,u){this.$t1=t;this.$t2=i;this.$type=this.$type.specialize(this.$t1,this.$t2);n.ig.$op.init.call(this);this.a(r);this.b(u)},$type:new n.ig.Type("Tuple$2",n.ig.$ot)},!0);n.ig.util.defType("Uri:c1","Object",{init:function(t){n.ig.$op.init.call(this);this.value(t)},_value:null,value:function(n){return arguments.length===1?(this._value=n,n):this._value},$type:new n.ig.Type("Uri",n.ig.$ot)},!0);n.ig.util.defType("JavaScriptSerializer:d6","Object",{init:function(){n.ig.$op.init.call(this)},a:function(n){var t=n;return JSON.parse(t)},b:function(n){var t=n;return JSON.stringify(t)},$type:new n.ig.Type("JavaScriptSerializer",n.ig.$ot)},!0);n.ig.util.defType("XObject:f9","Object",{init:function(t){n.ig.$op.init.call(this);this.backingNode(t)},_backingNode:null,backingNode:function(n){return arguments.length===1?(this._backingNode=n,n):this._backingNode},c:function(){},toString:function(){return this.backingNode()!=null?t.$gi.xmlNodeToString(this.backingNode()):""},$type:new n.ig.Type("XObject",n.ig.$ot)},!0);n.ig.util.defType("XAttribute:gj","XObject",{init:function(n){t.$f9.init.call(this,n)},e:function(n){this.backingNode(this.backingNode().cloneNode(!0));n.setAttributeNode(this.backingNode())},c:function(){return 2},d:function(){return t.$gi.b(this.backingNode())},$type:new n.ig.Type("XAttribute",t.$f9.$type)},!0);n.ig.util.defType("XNode:gk","XObject",{init:function(n){t.$f9.init.call(this,n)},$type:new n.ig.Type("XNode",t.$f9.$type)},!0);n.ig.util.defType("XContainer:gl","XNode",{init:function(n){t.$gk.init.call(this,n)},h:function(n){for(var i,r=null,e=this.backingNode(),f=e.childNodes,o=f.length,s=n.c(),h=n.d(),u=0;u<o;u++)i=f.item(u),i.namespaceURI==h&&i.nodeType==1&&t.$gi.d(i)==s&&(r=i);return r==null?null:new t.gm(0,r)},d:function(){return this.f(null)},e:function(n){return this.f(n)},f:function(n){for(var i,r,f=new t.al(t.$gm.$type,0),u=0;u<this.backingNode().childNodes.length;u++)i=this.backingNode().childNodes.item(u),i.nodeType==1&&(r=!1,n!=null?t.$gi.d(i)==n.c()&&i.namespaceURI==n.d()&&(r=!0):r=!0,r&&f.add1(new t.gm(0,i)));return f},g:function(i){var r=this.backingNode(),u;u=n.ig.util.cast(t.$gp.$type,this)!==null?this.backingNode():this.backingNode().ownerDocument;n.ig.util.cast(t.$gj.$type,i)!==null?i.e(r):n.ig.util.cast(t.$gm.$type,i)!==null&&i.j(r,u)},$type:new n.ig.Type("XContainer",t.$gk.$type)},!0);n.ig.util.defType("XDocument:gp","XContainer",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$gl.init.call(this,i)},init1:function(){t.$gl.init.call(this,t.$gi.j())},c:function(){return 9},i:function(n){return new t.gp(0,t.$gi.n(n))},$type:new n.ig.Type("XDocument",t.$gl.$type)},!0);n.ig.util.defType("XElement:gm","XContainer",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}t.$gl.init.call(this,i)},init1:function(n,i){t.$gm.init2.call(this,2,i,null)},init2:function(n,i,r){t.$gl.init.call(this,t.$gi.o(i.c(),i.d()));var u=r==null?"":r.toString();this.i(u)},i:function(n){return arguments.length===1?(t.$gi.h(this.backingNode(),n),n):t.$gi.c(this.backingNode())},c:function(){return 1},l:function(){return t.$gn.e(t.$gi.d(this.backingNode()),this.backingNode().namespaceURI)},k:function(n){return new t.gj(t.$gi.i(this.backingNode(),n.c(),n.d()))},j:function(n,i){this.backingNode().ownerDocument!=i&&this.backingNode(t.$gi.p(i,this.backingNode()));n.appendChild(this.backingNode())},$type:new n.ig.Type("XElement",t.$gl.$type)},!0);n.ig.util.defType("XmlUtils:gi","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){return!!window.DOMParser},m:function(n){var t=n;return(new DOMParser).parseFromString(t,"text/xml")},l:function(n){var t=n;return function(n){var t=new ActiveXObject("Microsoft.XMLDOM");return t.async=!1,t.loadXML(n),t}(t)},f:function(n){var t=n;return(new XMLSerializer).serializeToString(t)},e:function(n){var t=n;return t.xml},k:function(){return new ActiveXObject("Microsoft.XMLDOM")},n:function(n){return t.$gi.a()?t.$gi.m(n):t.$gi.l(n)},xmlNodeToString:function(n){return t.$gi.a()?t.$gi.f(n):t.$gi.e(n)},j:function(){var n;return t.$gi.a()?(n=t.$gi.m("<dummy/>"),n.removeChild(n.documentElement)):n=t.$gi.k(),n},o:function(n,i){var r=t.$gi.j(),u,f;return t.$gi.a()?r.createElementNS(i,n):(u=n,f=i,r.createNode(1,u,f))},c:function(n){if(t.$gi.a())return n.textContent;var i=n;return i.text},h:function(n,i){if(t.$gi.a())n.textContent=i;else{var r=n,u=i;r.text=u}},p:function(n,i){return t.$gi.a()?n.importNode(i,!0):i},d:function(n){if(t.$gi.a())return n.localName;var i=n;return i.baseName},i:function(n,i,r){if(t.$gi.a())return n.getAttributeNodeNS(r,i);var u=n,f=i,e=r;return u.attributes.getQualifiedItem(f,e)},b:function(n){if(t.$gi.a())return n.nodeValue;var i=n;return i.value},$type:new n.ig.Type("XmlUtils",n.ig.$ot)},!0);n.ig.util.defType("XName:gn","Object",{a:null,b:null,init:function(t,i){n.ig.$op.init.call(this);this.a=t;this.b=i},c:function(){return this.a},d:function(){return this.b},f:function(){return t.$go.c(this.b)},e:function(n,i){return new t.gn(n,i)},$type:new n.ig.Type("XName",n.ig.$ot)},!0);n.ig.util.defType("XNamespace:go","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},c:function(n){return new t.go(n)},d:function(){return t.$go.c("http://www.w3.org/2000/xmlns/")},b:function(){return this.a},$type:new n.ig.Type("XNamespace",n.ig.$ot)},!0);t.$dd.created=0;t.$dd.ranToCompletion=5;t.$dd.canceled=6;t.$dd.faulted=7;t.$cs.ascending=0;t.$cs.descending=1;t.$ba.add=0;t.$ba.remove=1;t.$ba.replace=2;t.$ba.reset=4;t.$c5.g=null;t.$c5.f=null;n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ICollection$1,n.ig.IEnumerable$1,n.ig.IList$1,n.ig.List$1,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.AbstractEnumerable,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ICollection$1,n.ig.IEnumerable$1,n.ig.IList$1,n.ig.List$1,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ICollection$1,n.ig.IEnumerable$1,n.ig.IList$1,n.ig.List$1,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.AbstractEnumerable,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1],["ofType$1","cast$1"]]])}(jQuery),$.ig=$.ig||{},function(n){n.ig.$currDefinitions={};n.ig.util.bulkDefine(["ICoreOlapElement:a","String:b","Object:c","Type:d","Boolean:e","ValueType:f","Void:g","RuntimeTypeHandle:h","MethodInfo:i","MethodBase:j","MemberInfo:k","ParameterInfo:l","TypeCode:m","Enum:n","Number:o","IComparable:p","Number:q","Single:r","Number:s","ConstructorInfo:t","String:u","Array:v","RegExp:w","Cube:x","CubeType:y","Date:z","Date:aa","Number:ab","Catalog:ac","Dimension:ad","DimensionType:ae","KpiDimension:af","HierarchyOrigin:ai","AggregatorType:aj","CardinalityType:ak","MemberType:al","Hierarchy:am","Kpi:an","Level:ao","Measure:ap","KpiMeasure:aq","MeasureGroup:ar","MeasureGroupDimension:as","Member:at","Nullable$1:au","OlapResult:av","IList$1:aw","ICollection$1:ax","IEnumerable$1:ay","IEnumerable:az","IEnumerator:a0","IEnumerator$1:a1","OlapResultAxis:a2","PositionResolver$2:a3","List$1:a4","IArrayList:a5","Array:a6","ICollection:a7","CompareCallback:a8","MulticastDelegate:a9","IntPtr:ba","IList:bb","IDisposable:bc","IArray:bd","Script:be","Func$3:bf","Action$1:bg","PositionItemInfo$2:bh","Dictionary$2:bi","IDictionary$2:bj","IDictionary:bk","Dictionary:bl","IEqualityComparer$1:bm","KeyValuePair$2:bn","NotImplementedException:bo","Error:bp","IHierarchicalPositionItem$2:bq","IPositionItem$2:br","IPosition$2:bs","Math:bt","Number:bu","Number:bv","Number:bw","Number:bx","Number:by","Number:bz","Number:b0","Enumerable:b1","Func$2:b2","IOrderedEnumerable$1:b3","SortedList$1:b4","ArgumentNullException:b5","EventHandler$1:b6","Delegate:b7","ListSortDirection:b8","OlapResultTuple:b9","ReadOnlyCollection$1:ca","OlapResultAxisMember:cb","OlapResultCell:cc","IConnection:cd","IOlapDataProviderFactory:ce","IOlapDiscoverDataProvider:cf","Task$1:cg","Task:ch","JQueryPromise:ci","Action:cj","AggregateException:ck","TaskStatus:cl","TaskCompletionSource$1:cm","JQueryDeferred:cn","JQuery:co","JQueryObject:cp","Element:cq","ElementAttributeCollection:cr","ElementCollection:cs","WebStyle:ct","ElementNodeType:cu","Document:cv","EventListener:cw","IElementEventHandler:cx","ElementEventHandler:cy","ElementAttribute:cz","JQueryPosition:c0","JQueryCallback:c1","JQueryEvent:c2","JQueryUICallback:c3","IOlapExecuteCommandProvider:c4","HeaderCellsLayoutOrientation:c5","LevelSpanManager:c6","SpanSource:c7","ITableViewHeadersFactory:c8","TableViewHeadersFactory:c9","ArrayListCollection$1:da","INotifyCollectionChanged:db","NotifyCollectionChangedEventHandler:dc","NotifyCollectionChangedEventArgs:dd","EventArgs:de","NotifyCollectionChangedAction:df","TableViewHeaderCellSource:dg","OlapTableViewHeaderCell:dh","TableCompactViewHeadersFactory:di","TableViewImpl:dj","TableViewSettings:dk","ResultHeaderSorter:dl","ResultSorter$1:dm","AxisTupleVisitor:dn","LevelSortDirection:dp","LevelSortBehavior:dq","AxisHeaderSortingVisitor:dr","TupleSortDirection:ds","ResultColumnValueSorter:dt","AxisValueSortingVisitor:du","OlapTableViewResultCell:dv","OlapResultView:dw","InvalidOperationException:dx","ResultViewHelper:dy","IOlapDataSource:dz","OlapMetadataTreeItem:d0","OlapMetadataTreeItemType:d1","MeasureListLocation:d2","MeasureList:d3","OlapDataSource:d4","DataSourceBaseOptions:d5","CubeMetaItemsCache:d6","MeasureGroupMetaItemsCache:d7","Tuple$2:d8","NotSupportedException:d9","PositionInfo:ea","TaskExtensions:eb","AxisElement:ec","AxisDefinitionParser:ed","Debug:ee","TaskFactory:ef","MetaTreeHelper:eg","HierarchyItemPosition:eh","CoreOlapElementParser:el","KeyValueItem:eu","HierarchyFilterView:ev","FilterMember:ew","INotifyPropertyChanged:ex","PropertyChangedEventHandler:ey","PropertyChangedEventArgs:ez","FilterMemberStateChangedEventArgs:e0","DataSourceBase:e1","jQueryUtils:e2","OlapUtilities:e3","OlapTableView:e4","AbstractEnumerable:e5","Func$1:e6","AbstractEnumerator:e7","GenericEnumerable$1:e8","GenericEnumerator$1:e9"]);n.ig.util.defType("LevelSortBehavior","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("LevelSortBehavior",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("OlapMetadataTreeItemType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("OlapMetadataTreeItemType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("MeasureListLocation","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("MeasureListLocation",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("HeaderCellsLayoutOrientation","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("HeaderCellsLayoutOrientation",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("MemberType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("MemberType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("CardinalityType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("CardinalityType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("AggregatorType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("AggregatorType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("HierarchyOrigin","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("HierarchyOrigin",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("DimensionType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("DimensionType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("CubeType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("CubeType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("ICoreOlapElement","Object",{$type:new n.ig.Type("ICoreOlapElement",null)},!0);n.ig.util.defType("Cube","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_catalogName:null,catalogName:function(n){return arguments.length===1?(this._catalogName=n,n):this._catalogName},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_cubeType:null,cubeType:function(n){return arguments.length===1?(this._cubeType=n,n):this._cubeType},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_lastProcessed:null,lastProcessed:function(n){return arguments.length===1?(this._lastProcessed=n,n):this._lastProcessed},_lastUpdated:null,lastUpdated:function(n){return arguments.length===1?(this._lastUpdated=n,n):this._lastUpdated},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},uniqueName:function(n){return arguments.length===1?(this.name(n),n):this.name()},$type:new n.ig.Type("Cube",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Catalog","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},$type:new n.ig.Type("Catalog",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Dimension","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_dimensionType:null,dimensionType:function(n){return arguments.length===1?(this._dimensionType=n,n):this._dimensionType},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_defaultHierarchy:null,defaultHierarchy:function(n){return arguments.length===1?(this._defaultHierarchy=n,n):this._defaultHierarchy},$type:new n.ig.Type("Dimension",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("KpiDimension","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},$type:new n.ig.Type("KpiDimension",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Hierarchy","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_defaultHierarchy:null,defaultHierarchy:function(n){return arguments.length===1?(this._defaultHierarchy=n,n):this._defaultHierarchy},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_defaultMember:null,defaultMember:function(n){return arguments.length===1?(this._defaultMember=n,n):this._defaultMember},_allMember:null,allMember:function(n){return arguments.length===1?(this._allMember=n,n):this._allMember},_dimensionUniqueName:null,dimensionUniqueName:function(n){return arguments.length===1?(this._dimensionUniqueName=n,n):this._dimensionUniqueName},_hierarchyOrigin:null,hierarchyOrigin:function(n){return arguments.length===1?(this._hierarchyOrigin=n,n):this._hierarchyOrigin},_hierarchyDisplayFolder:null,hierarchyDisplayFolder:function(n){return arguments.length===1?(this._hierarchyDisplayFolder=n,n):this._hierarchyDisplayFolder},$type:new n.ig.Type("Hierarchy",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Kpi","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_measureGroupName:null,measureGroupName:function(n){return arguments.length===1?(this._measureGroupName=n,n):this._measureGroupName},_kpiDisplayFolder:null,kpiDisplayFolder:function(n){return arguments.length===1?(this._kpiDisplayFolder=n,n):this._kpiDisplayFolder},_kpiValue:null,kpiValue:function(n){return arguments.length===1?(this._kpiValue=n,n):this._kpiValue},_kpiGoal:null,kpiGoal:function(n){return arguments.length===1?(this._kpiGoal=n,n):this._kpiGoal},_kpiStatus:null,kpiStatus:function(n){return arguments.length===1?(this._kpiStatus=n,n):this._kpiStatus},_kpiTrend:null,kpiTrend:function(n){return arguments.length===1?(this._kpiTrend=n,n):this._kpiTrend},_kpiStatusGraphic:null,kpiStatusGraphic:function(n){return arguments.length===1?(this._kpiStatusGraphic=n,n):this._kpiStatusGraphic},_kpiTrendGraphic:null,kpiTrendGraphic:function(n){return arguments.length===1?(this._kpiTrendGraphic=n,n):this._kpiTrendGraphic},_kpiWeight:null,kpiWeight:function(n){return arguments.length===1?(this._kpiWeight=n,n):this._kpiWeight},_parentKpiName:null,parentKpiName:function(n){return arguments.length===1?(this._parentKpiName=n,n):this._parentKpiName},_currentTimeMember:null,currentTimeMember:function(n){return arguments.length===1?(this._currentTimeMember=n,n):this._currentTimeMember},$type:new n.ig.Type("Kpi",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Level","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_depth:0,depth:function(n){return arguments.length===1?(this._depth=n,n):this._depth},_hierarchyUniqueName:null,hierarchyUniqueName:function(n){return arguments.length===1?(this._hierarchyUniqueName=n,n):this._hierarchyUniqueName},_dimensionUniqueName:null,dimensionUniqueName:function(n){return arguments.length===1?(this._dimensionUniqueName=n,n):this._dimensionUniqueName},_membersCount:0,membersCount:function(n){return arguments.length===1?(this._membersCount=n,n):this._membersCount},_levelOrigin:0,levelOrigin:function(n){return arguments.length===1?(this._levelOrigin=n,n):this._levelOrigin},_levelOrderingProperty:null,levelOrderingProperty:function(n){return arguments.length===1?(this._levelOrderingProperty=n,n):this._levelOrderingProperty},$type:new n.ig.Type("Level",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Measure","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_measureGroupName:null,measureGroupName:function(n){return arguments.length===1?(this._measureGroupName=n,n):this._measureGroupName},_aggregatorType:null,aggregatorType:function(n){return arguments.length===1?(this._aggregatorType=n,n):this._aggregatorType},_defaultFormatString:null,defaultFormatString:function(n){return arguments.length===1?(this._defaultFormatString=n,n):this._defaultFormatString},_measureDisplayFolder:null,measureDisplayFolder:function(n){return arguments.length===1?(this._measureDisplayFolder=n,n):this._measureDisplayFolder},$type:new n.ig.Type("Measure",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("KpiMeasure","Measure",{init:function(t,i){n.ig.Measure.prototype.init.call(this);this.uniqueName(t);this.caption(i)},_graphic:null,graphic:function(n){return arguments.length===1?(this._graphic=n,n):this._graphic},createKpiValueMeasure:function(t){return new n.ig.KpiMeasure(t.kpiValue(),t.caption()+" Value")},createKpiGoalMeasure:function(t){return new n.ig.KpiMeasure(t.kpiGoal(),t.caption()+" Goal")},createKpiWeightMeasure:function(t){return new n.ig.KpiMeasure(t.kpiWeight(),t.caption()+" Weight")},createKpiStatusMeasure:function(t){var i=new n.ig.KpiMeasure(t.kpiStatus(),t.caption()+" Status");return i.graphic(t.kpiStatusGraphic()),i},createKpiTrendMeasure:function(t){var i=new n.ig.KpiMeasure(t.kpiTrend(),t.caption()+" Trend");return i.graphic(t.kpiTrendGraphic()),i},$type:new n.ig.Type("KpiMeasure",n.ig.Measure.prototype.$type)},!0);n.ig.util.defType("MeasureGroup","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_cubeName:null,cubeName:function(n){return arguments.length===1?(this._cubeName=n,n):this._cubeName},_catalogName:null,catalogName:function(n){return arguments.length===1?(this._catalogName=n,n):this._catalogName},uniqueName:function(n){return arguments.length===1?(this.name(n),n):this.name()},$type:new n.ig.Type("MeasureGroup",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("MeasureGroupDimension","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_cubeName:null,cubeName:function(n){return arguments.length===1?(this._cubeName=n,n):this._cubeName},_catalogName:null,catalogName:function(n){return arguments.length===1?(this._catalogName=n,n):this._catalogName},_measureGroupName:null,measureGroupName:function(n){return arguments.length===1?(this._measureGroupName=n,n):this._measureGroupName},_dimensionUniqueName:null,dimensionUniqueName:function(n){return arguments.length===1?(this._dimensionUniqueName=n,n):this._dimensionUniqueName},_measureGroupCardinality:null,measureGroupCardinality:function(n){return arguments.length===1?(this._measureGroupCardinality=n,n):this._measureGroupCardinality},_dimensionCardinality:null,dimensionCardinality:function(n){return arguments.length===1?(this._dimensionCardinality=n,n):this._dimensionCardinality},_isDimensionVisible:!1,isDimensionVisible:function(n){return arguments.length===1?(this._isDimensionVisible=n,n):this._isDimensionVisible},_isFactDimension:!1,isFactDimension:function(n){return arguments.length===1?(this._isFactDimension=n,n):this._isFactDimension},_dimensionPath:null,dimensionPath:function(n){return arguments.length===1?(this._dimensionPath=n,n):this._dimensionPath},_dimensionGranularity:null,dimensionGranularity:function(n){return arguments.length===1?(this._dimensionGranularity=n,n):this._dimensionGranularity},$type:new n.ig.Type("MeasureGroupDimension",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("Member","Object",{init:function(){n.ig.Object.prototype.init.call(this);var t=n.ig.util.toNullable(n.ig.Number.prototype.$type,null);this.scope(t)},_cubeName:null,cubeName:function(n){return arguments.length===1?(this._cubeName=n,n):this._cubeName},_catalogName:null,catalogName:function(n){return arguments.length===1?(this._catalogName=n,n):this._catalogName},_dimensionUniqueName:null,dimensionUniqueName:function(n){return arguments.length===1?(this._dimensionUniqueName=n,n):this._dimensionUniqueName},_hierarchyUniqueName:null,hierarchyUniqueName:function(n){return arguments.length===1?(this._hierarchyUniqueName=n,n):this._hierarchyUniqueName},_levelUniqueName:null,levelUniqueName:function(n){return arguments.length===1?(this._levelUniqueName=n,n):this._levelUniqueName},_levelDepth:0,levelDepth:function(n){return arguments.length===1?(this._levelDepth=n,n):this._levelDepth},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_memberType:null,memberType:function(n){return arguments.length===1?(this._memberType=n,n):this._memberType},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_childrenCardinality:0,childrenCardinality:function(n){return arguments.length===1?(this._childrenCardinality=n,n):this._childrenCardinality},_parentLevel:0,parentLevel:function(n){return arguments.length===1?(this._parentLevel=n,n):this._parentLevel},_parentUniqueName:null,parentUniqueName:function(n){return arguments.length===1?(this._parentUniqueName=n,n):this._parentUniqueName},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_scope:n.ig.util.toNullable(n.ig.Number.prototype.$type,null),scope:function(n){return arguments.length===1?(this._scope=n,n):this._scope},$type:new n.ig.Type("Member",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("OlapResult","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_isEmpty:!1,isEmpty:function(n){return arguments.length===1?(this._isEmpty=n,n):this._isEmpty},_axes:null,axes:function(n){return arguments.length===1?(this._axes=n,n):this._axes},_cells:null,cells:function(n){return arguments.length===1?(this._cells=n,n):this._cells},$type:new n.ig.Type("OlapResult",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapResultAxis","Object",{init:function(t,i){n.ig.Object.prototype.init.call(this);this.tuples(t.toList$1(n.ig.OlapResultTuple.prototype.$type));this.tupleSize(i);this.positionResolver(new n.ig.PositionResolver$2(String,n.ig.Object.prototype.$type,t,i))},_positionResolver:null,positionResolver:function(n){return arguments.length===1?(this._positionResolver=n,n):this._positionResolver},clone:function(){for(var t=this,i=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),r=t.tuples().getEnumerator(),u;r.moveNext();)u=r.current(),i.add(u.clone());return function(){var r=new n.ig.OlapResultAxis(i,t.tupleSize());return r.name(t.name()),r}()},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_tupleSize:0,tupleSize:function(n){return arguments.length===1?(this._tupleSize=n,n):this._tupleSize},_tuples:null,tuples:function(n){return arguments.length===1?(this._tuples=n,n):this._tuples},$type:new n.ig.Type("OlapResultAxis",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("IPosition$2","Object",{$type:new n.ig.Type("IPosition$2",null)},!0);n.ig.util.defType("OlapResultTuple","Object",{init:function(t){n.ig.Object.prototype.init.call(this);this.members(new n.ig.ReadOnlyCollection$1(n.ig.OlapResultAxisMember.prototype.$type,1,t))},_members:null,members:function(n){return arguments.length===1?(this._members=n,n):this._members},getItems:function(){return this.members()},itemsCount:function(){return this.members().count()},indexOf:function(n){return this.members().indexOf(n)},item:function(n){return this.members().item(n)},isEmpty:function(){return!1},clone:function(){for(var t=new n.ig.List$1(n.ig.OlapResultAxisMember.prototype.$type,0),u=this.members().getEnumerator(),f,i,r,e;u.moveNext();)f=u.current(),t.add(f.clone());for(i=new n.ig.OlapResultTuple(t),r=t.getEnumerator();r.moveNext();)e=r.current(),e.position(i);return i},$type:new n.ig.Type("OlapResultTuple",n.ig.Object.prototype.$type,[n.ig.IPosition$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)])},!0);n.ig.util.defType("IPositionItem$2","Object",{$type:new n.ig.Type("IPositionItem$2",null)},!0);n.ig.util.defType("IHierarchicalPositionItem$2","Object",{$type:new n.ig.Type("IHierarchicalPositionItem$2",null,[n.ig.IPositionItem$2.prototype.$type.specialize(0,1)])},!0);n.ig.util.defType("OlapResultAxisMember","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.properties(new n.ig.Dictionary$2(String,String,0));this.ordinal(-1)},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_levelUniqueName:null,levelUniqueName:function(n){return arguments.length===1?(this._levelUniqueName=n,n):this._levelUniqueName},_hierarchyUniqueName:null,hierarchyUniqueName:function(n){return arguments.length===1?(this._hierarchyUniqueName=n,n):this._hierarchyUniqueName},_levelNumber:0,levelNumber:function(n){return arguments.length===1?(this._levelNumber=n,n):this._levelNumber},_displayInfo:null,displayInfo:function(n){return arguments.length===1?(this._displayInfo=n,n):this._displayInfo},e:function(){return this.displayInfo()&-196609},drilledDown:function(){return(this.displayInfo()&65536)==65536},parentSameAsPrev:function(){return(this.displayInfo()&131072)==131072},_properties:null,properties:function(n){return arguments.length===1?(this._properties=n,n):this._properties},_position:null,position:function(n){return arguments.length===1?(this._position=n,n):this._position},key:function(){return this.uniqueName()},sortKey:function(){if(this.ordinal()>-1)return this.ordinal();var n=parseFloat(this.caption());return isNaN(n)?this.caption():n},_ordinal:0,ordinal:function(n){return arguments.length===1?(this._ordinal=n,n):this._ordinal},hierarchyKey:function(){return this.hierarchyUniqueName()},hierarchyLevelKey:function(){return this.levelUniqueName()},parentKey:function(){var t=this,n;return function(){var i=t.properties().tryGetValue("PARENT_UNIQUE_NAME",n);return n=i.value,i.ret}(),n},depth:function(){return this.levelNumber()},isExpandable:function(){return this.e()>0},clone:function(){var t=new n.ig.OlapResultAxisMember,i,r;for(t.caption(this.caption()),t.displayInfo(this.displayInfo()),t.hierarchyUniqueName(this.hierarchyUniqueName()),t.levelNumber(this.levelNumber()),t.levelUniqueName(this.levelUniqueName()),t.ordinal(this.ordinal()),i=this.properties().getEnumerator();i.moveNext();)r=i.current(),t.properties().add(r.key(),r.value());return t.uniqueName(this.uniqueName()),t.position(this.position()),t},$type:new n.ig.Type("OlapResultAxisMember",n.ig.Object.prototype.$type,[n.ig.IHierarchicalPositionItem$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)])},!0);n.ig.util.defType("OlapResultCell","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.properties(new n.ig.Dictionary$2(String,n.ig.Object.prototype.$type,0))},_cellOrdinal:0,cellOrdinal:function(n){return arguments.length===1?(this._cellOrdinal=n,n):this._cellOrdinal},_properties:null,properties:function(n){return arguments.length===1?(this._properties=n,n):this._properties},clone:function(){for(var i=this,r=function(){var t=new n.ig.OlapResultCell;return t.cellOrdinal(i.cellOrdinal()),t}(),u=i.properties().getEnumerator(),t;u.moveNext();)t=u.current(),r.properties().add(t.key(),t.value());return r},$type:new n.ig.Type("OlapResultCell",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("IConnection","Object",{$type:new n.ig.Type("IConnection",null)},!0);n.ig.util.defType("IOlapDataProviderFactory","Object",{$type:new n.ig.Type("IOlapDataProviderFactory",null)},!0);n.ig.util.defType("IOlapDiscoverDataProvider","Object",{$type:new n.ig.Type("IOlapDiscoverDataProvider",null)},!0);n.ig.util.defType("IOlapExecuteCommandProvider","Object",{$type:new n.ig.Type("IOlapExecuteCommandProvider",null)},!0);n.ig.util.defType("LevelSpanManager","Object",{b:null,init:function(t){n.ig.Object.prototype.init.call(this);this.c(t);this.b=new Array(t)},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},a:function(t,i){var e=this,r=e.b[t],u,f;return r==null&&(r=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.SpanSource.prototype.$type,0),e.b[t]=r),function(){var n=r.tryGetValue(i,u);return u=n.value,n.ret}()||(u=new n.ig.SpanSource,i>0&&function(){var n=r.tryGetValue(i-1,f);return f=n.value,n.ret}()&&(u.a(f),f.e()),r.add(i,u)),u},$type:new n.ig.Type("LevelSpanManager",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("SpanSource","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.c=1},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},c:0,d:function(n){if(arguments.length===1){if(this.c!=n){var t=n-this.c;this.a()!=null&&this.a().d(this.a().d()+t);this.c=n}return n}return this.c},b:!1,e:function(){this.b||(this.b=!0,this.d(this.d()+1))},$type:new n.ig.Type("SpanSource",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ITableViewHeadersFactory","Object",{$type:new n.ig.Type("ITableViewHeadersFactory",null)},!0);n.ig.util.defType("TableViewHeadersFactory","Object",{_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},init:function(t,i,r,u,f){n.ig.Object.prototype.init.call(this);this.b(t);this.a(i);this.c(r);this.d(u);this.e(f)},createHeaderCells:function(){var i=this,r,u,s,h,f,e,t,l,a,v,y,w,b;for(i.b().positionResolver().hasUnregisterdPositions()&&i.b().positionResolver().completeRegisterPositions(),r=i.b().positionResolver().rootPositionInfo(),u=new n.ig.List$1(n.ig.IList$1.prototype.$type.specialize(n.ig.TableViewHeaderCellSource.prototype.$type),0),s=0;s<r.positionSize();s++)u.add(new n.ig.List$1(n.ig.TableViewHeaderCellSource.prototype.$type,0));for(n.ig.TableViewHeadersFactory.prototype.createHeaderCells2(r,r.positionItemDepthMin(),u,i.d(),i.e()),h=new n.ig.ArrayListCollection$1(n.ig.OlapTableViewHeaderCell.prototype.$type),f=0,e=0;e<r.positionSize();e++){for(var k=u.item(e),o=0,c=0,p=k.getEnumerator();p.moveNext();){t=p.current();i.c()==n.ig.HeaderCellsLayoutOrientation.prototype.horizontal?(l=o,a=t.b().d(),v=t.a().positionItemDepth()+f,y=t.c().d()):(v=o,y=t.b().d(),l=t.a().positionItemDepth()+f,a=t.c().d());var d=i.b().tuples().__inner[t.a().positionIndex()],g=d.item(t.a().positionItemIndex()),nt=i.b().tuples().__inner[t.k()];i.a().positionResolver().hasUnregisterdPositions()&&i.a().positionResolver().completeRegisterPositions();w=i.a().positionResolver().getPositionIndex(nt);b=function(){var r=new n.ig.OlapTableViewHeaderCell;return r.axisName(i.b().name()),r.hierarchyNumber(t.a().positionItemIndex()),r.levelNumber(t.a().positionItemDepth()),r.caption(g.caption()),r.columnIndex(l),r.columnSpan(a),r.isExpanded(t.f()),r.isExpandable(t.e()),r.tupleIndex(w),r.memberIndex(t.a().positionItemIndex()),r.rowIndex(v),r.rowSpan(y),r}();t.g()||(o=o+t.b().d());c=Math.max(c,t.a().positionItemDepth());h.add(b)}f+=c+1}return h},createHeaderCells2:function(t,i,r,u,f){for(var l=this,c=new n.ig.LevelSpanManager(t.positionSize()),e=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==i}).getEnumerator(),o,s,h;e.moveNext();)o=e.current(),function(){var i=n.ig.TableViewHeadersFactory.prototype.createHeaderCells1(t,o,r,c,u,f,s,h);return s=i.headerCellSource,h=i.totalSpan,i.ret}()},h:function(t,i,r,u,f,e){var a=this,c=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==t.positionItemDepthMin()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,l,s,h;if(c.count()>0){for(o=c.getEnumerator();o.moveNext();)l=o.current(),function(){var f=n.ig.TableViewHeadersFactory.prototype.createHeaderCells1(t,l,i,r,u,e,s,h);return s=f.headerCellSource,h=f.totalSpan,f.ret}(),f.b().d(f.b().d()+h),s.g()&&f.b().d(f.b().d()+1);f.b().d(f.b().d()-1)}else e.add(t.positionIndex());f.k(t.positionIndex())},createHeaderCells1:function(t,i,r,u,f,e,o,s){var k=this,a=r.item(i.positionItemIndex()),b=u.a(i.positionItemIndex(),i.positionItemDepth()),h=function(){var t=new n.ig.TableViewHeaderCellSource;return t.c(b),t.a(i),t.e(i.isExpandable()),t}(),l,c,v,w,y,p;if(o=h,f&&(a.add(h),n.ig.TableViewHeadersFactory.prototype.h(i,r,u,!0,h,e)),l=null,i.isExpanded()&&(l=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==i.key()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type))),l!=null&&l.count()>0){for(c=function(){var t=new n.ig.TableViewHeaderCellSource;return t.g(!0),t.a(i),t.e(i.isExpandable()),t}(),a.add(c),v=l.getEnumerator();v.moveNext();)w=v.current(),function(){var i=n.ig.TableViewHeadersFactory.prototype.createHeaderCells1(t,w,r,u,f,e,y,p);return y=i.headerCellSource,p=i.totalSpan,i.ret}(),c.b().d(c.b().d()+p),y.g()&&c.b().d(c.b().d()+1);c.b().d(c.b().d()-1);h.f(!0);h.e(!1);c.f(!0);h.d(c);f||(a.add(h),n.ig.TableViewHeadersFactory.prototype.h(i,r,u,!1,h,e));c.k(h.k());o=c;s=h.b().d()+c.b().d()-1}else i.isExpanded()&&h.e(!1),f||(a.add(h),n.ig.TableViewHeadersFactory.prototype.h(i,r,u,!1,h,e)),s=h.b().d();return{headerCellSource:o,totalSpan:s}},$type:new n.ig.Type("TableViewHeadersFactory",n.ig.Object.prototype.$type,[n.ig.ITableViewHeadersFactory.prototype.$type])},!0);n.ig.util.defType("TableCompactViewHeadersFactory","Object",{_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},init:function(t,i,r,u,f){n.ig.Object.prototype.init.call(this);this.b(t);this.a(i);this.c(r);this.d(u);this.e(f)},createHeaderCells:function(){var i=this,r,u,s,h,f,e,t,c,l,a,v,p,w;for(i.b().positionResolver().hasUnregisterdPositions()&&i.b().positionResolver().completeRegisterPositions(),r=i.b().positionResolver().rootPositionInfo(),u=new n.ig.List$1(n.ig.IList$1.prototype.$type.specialize(n.ig.TableViewHeaderCellSource.prototype.$type),0),s=0;s<r.positionSize();s++)u.add(new n.ig.List$1(n.ig.TableViewHeaderCellSource.prototype.$type,0));for(n.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells2(r,r.positionItemDepthMin(),u,i.d(),i.e()),h=new n.ig.ArrayListCollection$1(n.ig.OlapTableViewHeaderCell.prototype.$type),f=0,e=0;e<r.positionSize();e++){for(var b=u.item(e),o=0,y=b.getEnumerator();y.moveNext();){t=y.current();i.c()==n.ig.HeaderCellsLayoutOrientation.prototype.horizontal?(c=o,l=t.b().d(),a=f,v=1):(a=o,v=t.b().d(),c=f,l=1);var k=i.b().tuples().__inner[t.a().positionIndex()],d=k.item(t.a().positionItemIndex()),g=i.b().tuples().__inner[t.k()];i.a().positionResolver().hasUnregisterdPositions()&&i.a().positionResolver().completeRegisterPositions();p=i.a().positionResolver().getPositionIndex(g);w=function(){var r=new n.ig.OlapTableViewHeaderCell;return r.axisName(i.b().name()),r.hierarchyNumber(t.a().positionItemIndex()),r.levelNumber(t.a().positionItemDepth()),r.caption(d.caption()),r.columnIndex(c),r.columnSpan(l),r.isExpanded(t.f()),r.isExpandable(t.e()),r.tupleIndex(p),r.memberIndex(t.a().positionItemIndex()),r.rowIndex(a),r.rowSpan(v),r}();t.g()||(o=o+t.b().d());h.add(w)}f+=1}return h},createHeaderCells2:function(t,i,r,u,f){for(var l=this,c=new n.ig.LevelSpanManager(t.positionSize()),e=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==i}).getEnumerator(),o,s,h;e.moveNext();)o=e.current(),function(){var i=n.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells1(t,o,r,c,u,f,s,h);return s=i.headerCellSource,h=i.totalSpan,i.ret}()},h:function(t,i,r,u,f,e){var a=this,c=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==t.positionItemDepthMin()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,l,s,h;if(c.count()>0){for(o=c.getEnumerator();o.moveNext();)l=o.current(),function(){var f=n.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells1(t,l,i,r,u,e,s,h);return s=f.headerCellSource,h=f.totalSpan,f.ret}(),f.b().d(f.b().d()+h),s.d()!=null&&f.b().d(f.b().d()+1);f.b().d(f.b().d()-1)}else e.add(t.positionIndex());f.k(t.positionIndex())},createHeaderCells1:function(t,i,r,u,f,e,o,s){var k=this,a=r.item(i.positionItemIndex()),b=u.a(i.positionItemIndex(),i.positionItemDepth()),h=function(){var t=new n.ig.TableViewHeaderCellSource;return t.c(b),t.a(i),t.e(i.isExpandable()),t}(),l,c,v,w,y,p;if(o=h,f&&(a.add(h),n.ig.TableCompactViewHeadersFactory.prototype.h(i,r,u,!0,h,e)),l=null,i.isExpanded()&&(l=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==i.key()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type))),l!=null&&l.count()>0){for(c=function(){var t=new n.ig.TableViewHeaderCellSource;return t.g(!0),t.a(i),t.e(i.isExpandable()),t}(),v=l.getEnumerator();v.moveNext();)w=v.current(),function(){var i=n.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells1(t,w,r,u,f,e,y,p);return y=i.headerCellSource,p=i.totalSpan,i.ret}(),c.b().d(c.b().d()+p),y.d()!=null&&c.b().d(c.b().d()+1);c.b().d(c.b().d()-1);h.f(!0);h.e(!0);h.d(c);f||(a.add(h),n.ig.TableCompactViewHeadersFactory.prototype.h(i,r,u,!1,h,e));c.k(h.k());s=h.b().d()+c.b().d()-1}else i.isExpanded()&&h.e(!1),f||(a.add(h),n.ig.TableCompactViewHeadersFactory.prototype.h(i,r,u,!1,h,e)),s=h.b().d();return{headerCellSource:o,totalSpan:s}},$type:new n.ig.Type("TableCompactViewHeadersFactory",n.ig.Object.prototype.$type,[n.ig.ITableViewHeadersFactory.prototype.$type])},!0);n.ig.util.defType("TableViewHeaderCellSource","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.b(new n.ig.SpanSource);this.c(new n.ig.SpanSource)},_g:!1,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_f:!1,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},$type:new n.ig.Type("TableViewHeaderCellSource",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("TableViewImpl","Object",{init:function(t,i,r,u){var f=this;if(n.ig.Object.prototype.init.call(this),t==null)throw new n.ig.ArgumentNullException("result");this.result(t);this.originalResult(t);u==null?this.viewSettings(new n.ig.TableViewSettings):this.viewSettings(u);this.hasColumns(i);this.hasRows(r);this.columnSortDirections(new n.ig.ArrayListCollection$1(n.ig.TupleSortDirection.prototype.$type));this.columnSortDirections().collectionChanged=n.ig.Delegate.prototype.combine(this.columnSortDirections().collectionChanged,function(){f.i(!0)});this.levelSortDirections(new n.ig.ArrayListCollection$1(n.ig.LevelSortDirection.prototype.$type));this.levelSortDirections().collectionChanged=n.ig.Delegate.prototype.combine(this.levelSortDirections().collectionChanged,function(){f.i(!0)});this.appliedColumnSortDirections(new n.ig.List$1(n.ig.TupleSortDirection.prototype.$type,0));this.appliedLevelSortDirections(new n.ig.List$1(n.ig.LevelSortDirection.prototype.$type,0));this.appliedSortDirectionsMap(new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type)),0))},_viewSettings:null,viewSettings:function(n){return arguments.length===1?(this._viewSettings=n,n):this._viewSettings},_result:null,result:function(n){return arguments.length===1?(this._result=n,n):this._result},_originalResult:null,originalResult:function(n){return arguments.length===1?(this._originalResult=n,n):this._originalResult},_hasRows:!1,hasRows:function(n){return arguments.length===1?(this._hasRows=n,n):this._hasRows},_hasColumns:!1,hasColumns:function(n){return arguments.length===1?(this._hasColumns=n,n):this._hasColumns},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_h:!1,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_i:!1,i:function(n){return arguments.length===1?(this._i=n,n):this._i},l:null,k:null,o:null,rowHeaders:function(n){return arguments.length===1?(this.l=n,n):((!this.h()||this.i())&&this.initialize(),this.l)},columnHeaders:function(n){return arguments.length===1?(this.k=n,n):((!this.h()||this.i())&&this.initialize(),this.k)},resultCells:function(n){return arguments.length===1?(this.o=n,n):((!this.h()||this.i())&&this.initialize(),this.o)},_columnSortDirections:null,columnSortDirections:function(n){return arguments.length===1?(this._columnSortDirections=n,n):this._columnSortDirections},_levelSortDirections:null,levelSortDirections:function(n){return arguments.length===1?(this._levelSortDirections=n,n):this._levelSortDirections},_appliedColumnSortDirections:null,appliedColumnSortDirections:function(n){return arguments.length===1?(this._appliedColumnSortDirections=n,n):this._appliedColumnSortDirections},_appliedLevelSortDirections:null,appliedLevelSortDirections:function(n){return arguments.length===1?(this._appliedLevelSortDirections=n,n):this._appliedLevelSortDirections},_appliedSortDirectionsMap:null,appliedSortDirectionsMap:function(n){return arguments.length===1?(this._appliedSortDirectionsMap=n,n):this._appliedSortDirectionsMap},initialize:function(){var t=this,s,l,v,y,p,f,ct,w,e,at,b,o,a,k,d,i,g,nt,vt,tt,it,yt;if(t.d(null),t.c(null),t.rowHeaders(null),t.columnHeaders(null),t.resultCells(null),t.result(t.originalResult()),t.result().isEmpty()){t.i(!1);t.h(!0);return}if(t.levelSortDirections().count()>0?(s=new n.ig.ResultHeaderSorter(t.result(),t.hasRows(),t.hasColumns(),t.levelSortDirections()),t.result(s.b()),t.appliedLevelSortDirections(s.h()),t.appliedSortDirectionsMap(s.g())):(t.appliedLevelSortDirections(new n.ig.List$1(n.ig.LevelSortDirection.prototype.$type,0)),t.appliedSortDirectionsMap(new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type)),0))),t.hasRows()&&t.columnSortDirections().count()>0)if(t.appliedLevelSortDirections().count()>0){t.originalResult().axes().item(0).positionResolver().hasUnregisterdPositions()&&t.originalResult().axes().item(0).positionResolver().completeRegisterPositions();t.result().axes().item(0).positionResolver().hasUnregisterdPositions()&&t.result().axes().item(0).positionResolver().completeRegisterPositions();for(var rt=new n.ig.List$1(n.ig.TupleSortDirection.prototype.$type,2,t.columnSortDirections().count()),ut=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,1,t.appliedColumnSortDirections().count()),ft=t.columnSortDirections().getEnumerator();ft.moveNext();){var h=ft.current(),pt=t.originalResult().axes().item(0).tuples().__inner[h.tupleIndex()],et=t.result().axes().item(0).positionResolver().getPositionIndex(pt),c=new n.ig.TupleSortDirection;c.sortDirection(h.sortDirection());c.tupleIndex(et);c.comparer(h.comparer());rt.add(c);ut.item(et,h.tupleIndex())}for(l=new n.ig.ResultColumnValueSorter(t.result(),t.hasRows(),t.hasColumns(),rt),t.result(l.b()),v=l.g().getEnumerator();v.moveNext();)y=v.current(),y.tupleIndex(ut.item(y.tupleIndex()));t.appliedColumnSortDirections(l.g())}else p=new n.ig.ResultColumnValueSorter(t.result(),t.hasRows(),t.hasColumns(),t.columnSortDirections()),t.result(p.b()),t.appliedColumnSortDirections(p.g());else t.appliedColumnSortDirections(new n.ig.List$1(n.ig.TupleSortDirection.prototype.$type,0));var u=0,ot=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),r=1;if(t.hasColumns()){var st=t.result().axes().item(u),wt=t.originalResult().axes().item(u),ht=t.u(st,wt);for(f=0;f<ht.count();f++)ct=ht.item(f),ot.add(ct,f);u++;r=st.tuples().count()}if(w=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),t.hasRows()){var bt=t.result().axes().item(u),kt=t.originalResult().axes().item(u),lt=t.v(bt,kt);for(e=0;e<lt.count();e++)at=lt.item(e),w.add(at,e)}for(b=new n.ig.ArrayListCollection$1(n.ig.OlapTableViewResultCell.prototype.$type),o=0;o<t.result().cells().count();o++)a=t.result().cells().item(o),function(){var n=a.properties().tryGetValue("Value",k);return k=n.value,n.ret}(),function(){var n=a.properties().tryGetValue("FmtValue",d);return d=n.value,n.ret}(),i=a.cellOrdinal(),t.hasColumns()&&(g=i%r,nt=ot.item(g),g!=nt&&(vt=n.ig.intDivide(i,r),i=vt*r+nt)),t.hasRows()&&(tt=n.ig.intDivide(i,r),it=w.item(tt),tt!=it&&(yt=i%r,i=it*r+yt)),b.add(function(){var t=new n.ig.OlapTableViewResultCell;return t.value(k),t.formattedValue(d),t.cellOrdinal(i),t.resultCellIndex(o),t}()),t.resultCells(b);t.i(!1);t.h(!0)},u:function(t,i){var r=new n.ig.List$1(n.ig.Number.prototype.$type,0);return this.viewSettings().a()?this.c(new n.ig.TableCompactViewHeadersFactory(t,i,n.ig.HeaderCellsLayoutOrientation.prototype.horizontal,this.viewSettings().c(),r)):this.c(new n.ig.TableViewHeadersFactory(t,i,n.ig.HeaderCellsLayoutOrientation.prototype.horizontal,this.viewSettings().c(),r)),this.columnHeaders(this.c().createHeaderCells()),r},v:function(t,i){var r=new n.ig.List$1(n.ig.Number.prototype.$type,0);return this.viewSettings().b()?this.d(new n.ig.TableCompactViewHeadersFactory(t,i,n.ig.HeaderCellsLayoutOrientation.prototype.vertical,this.viewSettings().d(),r)):this.d(new n.ig.TableViewHeadersFactory(t,i,n.ig.HeaderCellsLayoutOrientation.prototype.vertical,this.viewSettings().d(),r)),this.rowHeaders(this.d().createHeaderCells()),r},$type:new n.ig.Type("TableViewImpl",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("TableViewSettings","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:!1,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("TableViewSettings",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapResultView","Object",{init:function(t,i,r,u){if(n.ig.Object.prototype.init.call(this),t==null)throw new n.ig.ArgumentNullException("result");this.result(t);this.visibleResult(i);this.hasColumns(r);this.hasRows(u)},_result:null,result:function(n){return arguments.length===1?(this._result=n,n):this._result},_visibleResult:null,visibleResult:function(n){return arguments.length===1?(this._visibleResult=n,n):this._visibleResult},_hasRows:!1,hasRows:function(n){return arguments.length===1?(this._hasRows=n,n):this._hasRows},_hasColumns:!1,hasColumns:function(n){return arguments.length===1?(this._hasColumns=n,n):this._hasColumns},c:function(t,i,r,u,f){var st=this,it=0,y=null,s=1,l,rt,ut,p,w,o,e,h,c,b,et,k,a,v,ot,d,g,nt,ft,tt;if(f&&(y=t.axes().item(it),s=y.tuples().count(),it++),l=null,rt=1,u&&(l=t.axes().item(it),rt=l.tuples().count()),ut=1,i!=null&&(ut=i.tuples().count()),p=1,r!=null&&(p=r.tuples().count()),w=new Array(ut*p),t.cells().count()>0)for(o=0,e=t.cells().item(o),h=0;h<rt;h++)if(c=n.ig.intDivide(e.cellOrdinal(),s),c==h){if(b=0,i!=null&&l!=null&&(et=l.tuples().__inner[h],b=i.positionResolver().getPositionIndex(et)),b==-1){while(c==h)if(o++,o<t.cells().count())e=t.cells().item(o),c=n.ig.intDivide(e.cellOrdinal(),s);else break;continue}for(k=e.cellOrdinal()%s,a=0;a<s;a++)if(k==a){if(v=-1,r==null||y==null?v=0:(ot=y.tuples().__inner[a],v=r.positionResolver().getPositionIndex(ot)),v==-1){if(o++,o<t.cells().count()){if(e=t.cells().item(o),c=n.ig.intDivide(e.cellOrdinal(),s),c>h)break;k=e.cellOrdinal()%s}continue}if(d=e.clone(),d.cellOrdinal(b*p+v),w[d.cellOrdinal()]=d,o++,o<t.cells().count()){if(e=t.cells().item(o),c=n.ig.intDivide(e.cellOrdinal(),s),c>h)break;k=e.cellOrdinal()%s}}}for(g=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,0),nt=0;nt<w.length;nt++)ft=w[nt],ft!=null&&g.add(ft);return tt=new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0),f&&tt.add(r),u&&tt.add(i),function(){var t=new n.ig.OlapResult;return t.axes(tt),t.cells(g),t.isEmpty(!u&&!f&&g.count()==0),t}()},a:function(t,i,r){var c=this,o=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),e,h,u,s,f;if(r)for(e=0;e<i.count();e++)h=i.item(e),o.add(t.tuples().__inner[h].clone());else for(u=0,s=i.item(u),f=0;f<t.tuples().count();f++)f==s?(u++,u<i.count()&&(s=i.item(u))):o.add(t.tuples().__inner[f].clone());return function(){var i=new n.ig.OlapResultAxis(o,t.tupleSize());return i.name(t.name()),i}()},expandTupleMember:function(t,i,r){var u=this,s=u.f(t,i,r,u.visibleResult()),e,o,c,l;if(s==null)return null;if(!s.isExpandable())throw new n.ig.InvalidOperationException(1,"The position is not expandable.");if(s.isExpanded())return u;var a=u.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),f=u.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),v=t=="Axis0"&&!u.hasColumns()||t=="Axis1"&&u.hasRows(),y=a.tuples().__inner[i],p=f.positionResolver().getPositionIndex(y),h=u.l(t,p,r,u.result());return h.count()==0?null:(e=null,o=null,v?(e=u.a(f,h,!0),u.hasColumns()&&(o=u.visibleResult().axes().item(0))):(o=u.a(f,h,!0),u.hasRows()&&(e=u.visibleResult().axes().item(1))),c=u.c(u.result(),e,o,u.hasRows(),u.hasColumns()),l=u.b(u.visibleResult(),c,f.name()),new n.ig.OlapResultView(u.result(),l,u.hasColumns(),u.hasRows()))},collapseTupleMember:function(t,i,r){var u=this,o=u.f(t,i,r,u.visibleResult()),e,f,c,a,v,y;if(o==null)return null;if(!o.isExpandable())throw new n.ig.InvalidOperationException(1,"The position is not expandable.");if(!o.isExpanded())return u;if(e=u.l(t,i,r,u.visibleResult()),e.count()==0)return null;var l=u.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),p=t=="Axis0"&&!u.hasColumns()||t=="Axis1"&&u.hasRows(),s=null,h=null;return p?(s=u.a(l,e,!1),u.hasColumns()&&(h=u.visibleResult().axes().item(0))):(h=u.a(l,e,!1),u.hasRows()&&(s=u.visibleResult().axes().item(1))),f=u.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),c=f.tuples().__inner[i],f.positionResolver().hasUnregisterdPositions()&&f.positionResolver().completeRegisterPositions(),a=f.positionResolver().getHostPositionItemInfo(c,r),v=a.item(c.item(r).key()),v.isExpanded(!1),y=u.c(u.visibleResult(),s,h,u.hasRows(),u.hasColumns()),new n.ig.OlapResultView(u.result(),y,u.hasColumns(),u.hasRows())},extend:function(t,i){var r=this,l=r.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==i}).first$1(n.ig.OlapResultAxis.prototype.$type),a=i=="Axis0"&&!r.hasColumns()||i=="Axis1"&&r.hasRows(),f=null,e=null,u=null,h=!1,o,s,c;return a?(f=l,r.hasColumns()&&(e=r.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=i}).first$1(n.ig.OlapResultAxis.prototype.$type),u=r.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=i}).first$1(n.ig.OlapResultAxis.prototype.$type),h=e.tuples().count()!=u.tuples().count())):(e=l,r.hasRows()&&(f=r.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=i}).first$1(n.ig.OlapResultAxis.prototype.$type),u=r.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=i}).first$1(n.ig.OlapResultAxis.prototype.$type),h=f.tuples().count()!=u.tuples().count())),o=null,s=null,u!=null&&h?(c=r.c(r.result(),f,e,r.hasRows(),r.hasColumns()),o=r.b(c,t,i),s=r.b(c,t,i)):(o=r.b(r.result(),t,i),s=r.b(r.visibleResult(),t,i)),new n.ig.OlapResultView(o,s,r.hasColumns(),r.hasRows())},b:function(t,i,r){var e=this,l=t.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==r}).first$1(n.ig.OlapResultAxis.prototype.$type),b,nt,lt,tt,at,it,vt,k,ut,p,ft,et,wt,d,st,f,ht;if(l==null)return null;var ct=i.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==r}).first$1(n.ig.OlapResultAxis.prototype.$type),g=r=="Axis0"&&!e.hasColumns()||r=="Axis1"&&e.hasRows(),u=null,o=null;for(g?e.hasColumns()&&(u=t.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=r}).first$1(n.ig.OlapResultAxis.prototype.$type),o=i.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=r}).first$1(n.ig.OlapResultAxis.prototype.$type)):e.hasRows()&&(u=t.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=r}).first$1(n.ig.OlapResultAxis.prototype.$type),o=i.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=r}).first$1(n.ig.OlapResultAxis.prototype.$type)),b=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),nt=l.tuples().getEnumerator();nt.moveNext();)lt=nt.current(),b.add(lt.clone());for(tt=ct.tuples().getEnumerator();tt.moveNext();)at=tt.current(),b.add(at);var s=ct.tuples().count(),bt=o!=null&&o.tuples().count()>0?o.tuples().count():1,a=l.tuples().count()>0?l.tuples().count():1,v=u!=null&&u.tuples().count()>0?u.tuples().count():1,kt=a*v,y=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,0);if(g){for(it=t.cells().getEnumerator();it.moveNext();)vt=it.current(),y.add(vt.clone());for(var rt=new Array(s*v),dt=a*v,yt=i.cells().getEnumerator();yt.moveNext();){var gt=yt.current(),h=gt.clone(),ni=e.m(h.cellOrdinal(),u,o),ti=n.ig.intDivide(h.cellOrdinal(),bt);h.cellOrdinal(ti*v+ni);h.cellOrdinal(h.cellOrdinal()+kt);rt[h.cellOrdinal()-dt]=h}for(k=0;k<rt.length;k++)ut=rt[k],ut!=null&&y.add(ut)}else{for(p=new Array(v*(a+s)),ft=t.cells().getEnumerator();ft.moveNext();){var ii=ft.current(),w=ii.clone(),ri=n.ig.intDivide(w.cellOrdinal(),a);w.cellOrdinal(w.cellOrdinal()+ri*s);p[w.cellOrdinal()]=w}for(et=i.cells().getEnumerator();et.moveNext();){var pt=et.current(),c=pt.clone(),ot=e.n(c.cellOrdinal(),u,o,s),ui=n.ig.intDivide(pt.cellOrdinal(),s);ot!=ui;wt=c.cellOrdinal()%s;c.cellOrdinal(ot*s+wt);c.cellOrdinal(c.cellOrdinal()+(ot+1)*a);p[c.cellOrdinal()]=c}for(d=0;d<p.length;d++)st=p[d],st!=null&&y.add(st)}return f=new n.ig.OlapResult,f.axes(new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0)),ht=function(){var t=new n.ig.OlapResultAxis(b,l.tupleSize());return t.name(l.name()),t}(),g?(u!=null&&f.axes().add(u),f.axes().add(ht)):(f.axes().add(ht),u!=null&&f.axes().add(u)),f.cells(y),f.isEmpty(!e.hasColumns()&&!e.hasRows()&&y.count()==0),f},m:function(n,t,i){if(i==null)return 0;var r=n%i.tuples().count(),u=i.tuples().__inner[r];return t.positionResolver().getPositionIndex(u)},n:function(t,i,r,u){if(r==null)return 0;var f=n.ig.intDivide(t,u),e=r.tuples().__inner[f];return i.positionResolver().getPositionIndex(e)},l:function(t,i,r,u){var h=this,f=u.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),o=f.tuples().__inner[i],s=o.item(r),e;return(f.positionResolver().hasUnregisterdPositions()&&f.positionResolver().completeRegisterPositions(),e=f.positionResolver().h(s,n.ig.ListSortDirection.prototype.ascending),e!=null)?e.toList$1(n.ig.Number.prototype.$type):null},f:function(t,i,r,u){var c=this,f=u.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),o=f.tuples().__inner[i],h=o.item(r),s,e;return f.positionResolver().hasUnregisterdPositions()&&f.positionResolver().completeRegisterPositions(),s=f.positionResolver().getHostPositionItemInfo(o,r),function(){var n=s.tryGetValue(h.key(),e);return e=n.value,n.ret}(),e},$type:new n.ig.Type("OlapResultView",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ResultViewHelper","Object",{init:function(){n.ig.Object.prototype.init.call(this)},e:function(t,i,r,u,f){n.ig.ResultViewHelper.prototype.d(t,i,r,!0,f.visibleResult());n.ig.ResultViewHelper.prototype.d(t,i,r,!0,f.result())},f:function(t,i,r){var s=this,e=i.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),o=r.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),u,f;n.ig.ResultViewHelper.prototype.b(e.positionResolver(),o.positionResolver());u=i.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type);f=r.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type);n.ig.ResultViewHelper.prototype.b(u.positionResolver(),f.positionResolver())},d:function(t,i,r,u,f){var o=this,e=f.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type);e.positionResolver().hasUnregisterdPositions()&&e.positionResolver().completeRegisterPositions();n.ig.ResultViewHelper.prototype.c(i,r,u,e.positionResolver())},c:function(n,t,i,r){r.hasUnregisterdPositions()&&r.completeRegisterPositions();var u=r.positions().__inner[n],f=r.getHostPositionItemInfo(u,t),e=f.item(u.item(t).key());e.isExpanded(i)},b:function(t,i){t.hasUnregisterdPositions()&&t.completeRegisterPositions();i.hasUnregisterdPositions()&&i.completeRegisterPositions();n.ig.ResultViewHelper.prototype.a(t.rootPositionInfo(),i.rootPositionInfo())},a:function(t,i){for(var o=this,e=t.getEnumerator(),u,f,r;e.moveNext();)u=e.current(),f=u.value(),function(){var n=i.tryGetValue(u.key(),r);return r=n.value,n.ret}()&&(f.isExpanded()!=!0&&r.isExpanded(!1),r.count()>0&&n.ig.ResultViewHelper.prototype.a(f,r))},$type:new n.ig.Type("ResultViewHelper",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapTableViewHeaderCell","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.columnSpan(1);this.rowSpan(1)},_id:null,id:function(n){return arguments.length===1?(this._id=n,n):this._id},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_isExpanded:!1,isExpanded:function(n){return arguments.length===1?(this._isExpanded=n,n):this._isExpanded},_isExpandable:!1,isExpandable:function(n){return arguments.length===1?(this._isExpandable=n,n):this._isExpandable},_rowIndex:0,rowIndex:function(n){return arguments.length===1?(this._rowIndex=n,n):this._rowIndex},_rowSpan:0,rowSpan:function(n){return arguments.length===1?(this._rowSpan=n,n):this._rowSpan},_columnIndex:0,columnIndex:function(n){return arguments.length===1?(this._columnIndex=n,n):this._columnIndex},_columnSpan:0,columnSpan:function(n){return arguments.length===1?(this._columnSpan=n,n):this._columnSpan},_axisName:null,axisName:function(n){return arguments.length===1?(this._axisName=n,n):this._axisName},_tupleIndex:0,tupleIndex:function(n){return arguments.length===1?(this._tupleIndex=n,n):this._tupleIndex},_memberIndex:0,memberIndex:function(n){return arguments.length===1?(this._memberIndex=n,n):this._memberIndex},_levelNumber:0,levelNumber:function(n){return arguments.length===1?(this._levelNumber=n,n):this._levelNumber},_hierarchyNumber:0,hierarchyNumber:function(n){return arguments.length===1?(this._hierarchyNumber=n,n):this._hierarchyNumber},toString:function(){return this.caption()},$type:new n.ig.Type("OlapTableViewHeaderCell",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapTableViewResultCell","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_value:null,value:function(n){return arguments.length===1?(this._value=n,n):this._value},_formattedValue:null,formattedValue:function(n){return arguments.length===1?(this._formattedValue=n,n):this._formattedValue},_cellOrdinal:0,cellOrdinal:function(n){return arguments.length===1?(this._cellOrdinal=n,n):this._cellOrdinal},_resultCellIndex:0,resultCellIndex:function(n){return arguments.length===1?(this._resultCellIndex=n,n):this._resultCellIndex},$type:new n.ig.Type("OlapTableViewResultCell",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ArrayListCollection$1","Object",{$t:null,init:function(t){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.Object.prototype.init.call(this);this.inner(new n.ig.Array)},_inner:null,inner:function(n){return arguments.length===1?(this._inner=n,n):this._inner},collectionChanged:null,indexOf:function(n){return this.inner().indexOf(n)},insert:function(n,t){this.inner().insert(n,t);this.d(n,t)},removeAt:function(n){var t=this.inner()[n];this.inner().removeAt(n);this.e(n,t)},item:function(n,t){return arguments.length===2?(this.inner()[n]=t,t):this.inner()[n]},add:function(n){this.inner().add(n);this.d(this.inner().length-1,n)},clear:function(){this.inner().clear();this.c()},contains:function(n){return this.inner().contains(n)},copyTo:function(){throw new n.ig.NotImplementedException;},count:function(){return this.inner().length},isReadOnly:function(){return!1},remove:function(n){var t=this.inner().indexOf(n);return t>=0?(this.inner().removeAt(t),this.e(t,n),!0):!1},b:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$a=0;this.$state=5;break;case 2:return this.$current=this.$this.inner()[this.$a],this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$a++;this.$state=5;break;case 5:this.$state=this.$a<this.$this.inner().length?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(this.$t,i)},getEnumerator:function(){return this.b().getEnumerator()},d:function(t,i){if(this.collectionChanged!=null){var r=new n.ig.NotifyCollectionChangedEventArgs(1,n.ig.NotifyCollectionChangedAction.prototype.add,i,t);this.collectionChanged(this,r)}},e:function(t,i){if(this.collectionChanged!=null){var r=new n.ig.NotifyCollectionChangedEventArgs(1,n.ig.NotifyCollectionChangedAction.prototype.remove,i,t);this.collectionChanged(this,r)}},c:function(){if(this.collectionChanged!=null){var t=new n.ig.NotifyCollectionChangedEventArgs(1,n.ig.NotifyCollectionChangedAction.prototype.reset,null,-1);this.collectionChanged(this,t)}},$type:new n.ig.Type("ArrayListCollection$1",n.ig.Object.prototype.$type,[n.ig.IList$1.prototype.$type.specialize(0),n.ig.INotifyCollectionChanged.prototype.$type])},!0);n.ig.util.defType("IOlapDataSource","Object",{$type:new n.ig.Type("IOlapDataSource",null)},!0);n.ig.util.defType("MeasureList","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},uniqueName:function(n){return arguments.length===1?(this.name(n),n):this.name()},_measures:null,measures:function(n){return arguments.length===1?(this._measures=n,n):this._measures},$type:new n.ig.Type("MeasureList",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("OlapMetadataTreeItem","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_item:null,item:function(n){return arguments.length===1?(this._item=n,n):this._item},_type:null,type:function(n){return arguments.length===1?(this._type=n,n):this._type},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_children:null,children:function(n){return arguments.length===1?(this._children=n,n):this._children},e:function(t){if(this.children()==null){this.children(new Array(1));this.children()[0]=t;return}var i=new Array(this.children().length+1);n.ig.Array.prototype.copy(this.children(),0,i,0,this.children().length);i[this.children().length]=t;this.children(i)},$type:new n.ig.Type("OlapMetadataTreeItem",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapDataSource","Object",{ac:null,ab:null,ag:0,j:null,g:null,init:function(t){var i=this;this.ac=new n.ig.List$1(n.ig.PositionInfo.prototype.$type,0);this.ab=new n.ig.List$1(n.ig.PositionInfo.prototype.$type,0);this.af=new n.ig.List$1(String,0);n.ig.Object.prototype.init.call(this);this.u(new n.ig.List$1(n.ig.AxisElement.prototype.$type,0));this.w(new n.ig.List$1(n.ig.AxisElement.prototype.$type,0));this.v(new n.ig.List$1(n.ig.AxisElement.prototype.$type,0));this.o(!1);this.al(null);this.t(!1);this.aj(null);this.isInitialized(!1);this.m(!1);this.s(!1);this.n(!1);this.r(!1);this.q(!1);this.p(!1);this.catalogs(new n.ig.ArrayListCollection$1(n.ig.Catalog.prototype.$type));this.cubes(new n.ig.ArrayListCollection$1(n.ig.Cube.prototype.$type));this.measureGroups(new n.ig.ArrayListCollection$1(n.ig.MeasureGroup.prototype.$type));this.rowAxis(new n.ig.ArrayListCollection$1(n.ig.ICoreOlapElement.prototype.$type));this.columnAxis(new n.ig.ArrayListCollection$1(n.ig.ICoreOlapElement.prototype.$type));this.filters(new n.ig.ArrayListCollection$1(n.ig.Hierarchy.prototype.$type));this.measures(new n.ig.ArrayListCollection$1(n.ig.Measure.prototype.$type));this.measureListLocation(n.ig.MeasureListLocation.prototype.columns);this.measureListIndex(-1);this.sourceOptions(t);this.result(function(){var t=new n.ig.OlapResult;return t.isEmpty(!0),t}())},_isInitialized:!1,isInitialized:function(n){return arguments.length===1?(this._isInitialized=n,n):this._isInitialized},_catalogs:null,catalogs:function(n){return arguments.length===1?(this._catalogs=n,n):this._catalogs},_cubes:null,cubes:function(n){return arguments.length===1?(this._cubes=n,n):this._cubes},_cube:null,cube:function(n){return arguments.length===1?(this._cube=n,n):this._cube},_measureGroup:null,measureGroup:function(n){return arguments.length===1?(this._measureGroup=n,n):this._measureGroup},_measureGroups:null,measureGroups:function(n){return arguments.length===1?(this._measureGroups=n,n):this._measureGroups},_sourceOptions:null,sourceOptions:function(n){return arguments.length===1?(this._sourceOptions=n,n):this._sourceOptions},dataProviderFactory:function(n){return arguments.length===1?(this.g=n,n):(this.g==null&&(this.g=this.h()),this.g)},_metadataTree:null,metadataTree:function(n){return arguments.length===1?(this._metadataTree=n,n):this._metadataTree},_rowAxis:null,rowAxis:function(n){return arguments.length===1?(this._rowAxis=n,n):this._rowAxis},_columnAxis:null,columnAxis:function(n){return arguments.length===1?(this._columnAxis=n,n):this._columnAxis},_filters:null,filters:function(n){return arguments.length===1?(this._filters=n,n):this._filters},_measures:null,measures:function(n){return arguments.length===1?(this._measures=n,n):this._measures},measureListIndex:function(n){return arguments.length===1?(this.ag!=n&&(this.p(!0),this.ag=n,this.az(),this.p(!1)),n):this.ag},measureListLocation:function(n){return arguments.length===1?(this.j!=n&&(this.ax(),this.j=n,this.az()),n):this.j},_result:null,result:function(n){return arguments.length===1?(this._result=n,n):this._result},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},af:null,_o:!1,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_al:null,al:function(n){return arguments.length===1?(this._al=n,n):this._al},_t:!1,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},_m:!1,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_s:!1,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_n:!1,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_r:!1,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_q:!1,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_p:!1,p:function(n){return arguments.length===1?(this._p=n,n):this._p},getMembersOfLevel:function(){},getMembersOfHierarchy:function(){},getMembersOfMember:function(){},setCube:function(t){if(!this.isInitialized())throw new n.ig.InvalidOperationException(1,"Data source is not initialized.");return this.an(t)},setMeasureGroup:function(t){if(!this.isInitialized())throw new n.ig.InvalidOperationException(1,"Data source is not initialized.");return this.ao(t)},getCoreElement:function(t,i){var f,r,u,e;if(i==n.ig.MeasureList.prototype.$type){for(f=this.measureListLocation()==n.ig.MeasureListLocation.prototype.columns?this.columnAxis():this.rowAxis(),r=null,u=f.getEnumerator();u.moveNext();)if(e=u.current(),r=n.ig.util.cast(n.ig.MeasureList.prototype.$type,e),r!=null)break;return r}return this.getCoreElements(t,i).firstOrDefault$1(n.ig.ICoreOlapElement.prototype.$type)},getCoreElements:function(t,i){var r=this;if(i==n.ig.Dimension.prototype.$type)return r.a(n.ig.Dimension.prototype.$type,r.c().t().where$1(n.ig.Dimension.prototype.$type,function(n){return t(n)}));if(i==n.ig.Hierarchy.prototype.$type)return r.a(n.ig.Hierarchy.prototype.$type,r.c().u().where$1(n.ig.Hierarchy.prototype.$type,function(n){return t(n)}));if(i==n.ig.Level.prototype.$type)return r.a(n.ig.Level.prototype.$type,r.c().x().where$1(n.ig.Level.prototype.$type,function(n){return t(n)}));if(i==n.ig.Measure.prototype.$type)return r.a(n.ig.Measure.prototype.$type,r.c().y().where$1(n.ig.Measure.prototype.$type,function(n){return t(n)}));if(i==n.ig.KpiMeasure.prototype.$type)return r.a(n.ig.KpiMeasure.prototype.$type,r.c().w().where$1(n.ig.KpiMeasure.prototype.$type,function(n){return t(n)}));if(i==n.ig.Kpi.prototype.$type)return r.a(n.ig.Kpi.prototype.$type,r.c().v().where$1(n.ig.Kpi.prototype.$type,function(n){return t(n)}));throw new n.ig.NotSupportedException(0,"Supported types are Dimension, Hierarchy, Level and Measure");},expandTupleMember:function(t,i,r){var u=this,e=u.d(t,u.result()),f;if(e==null)throw new n.ig.InvalidOperationException(1,"No axis found for the specified index.");f=u.ac.where$1(n.ig.PositionInfo.prototype.$type,function(n){return n.c()==t&&n.b()==i&&n.a()==r}).firstOrDefault$1(n.ig.PositionInfo.prototype.$type);f==null?(f=function(){var u=new n.ig.PositionInfo;return u.c(t),u.a(r),u.b(i),u}(),u.ac.add(f)):u.ac.remove(f)},collapseTupleMember:function(t,i,r){var u=this,e=u.d(t,u.result()),f;if(e==null)throw new n.ig.InvalidOperationException(1,"No axis found for the specified index.");f=u.ac.where$1(n.ig.PositionInfo.prototype.$type,function(n){return n.c()==t&&n.b()==i&&n.a()==r}).firstOrDefault$1(n.ig.PositionInfo.prototype.$type);f==null?(f=function(){var u=new n.ig.PositionInfo;return u.c(t),u.a(r),u.b(i),u}(),u.ab.add(f)):u.ac.remove(f)},clearPendingChanges:function(){this.ab.clear();this.ac.clear()},update:function(){var t=this,i,r;return t.t()?t.aj():(t.t(!0),t.ac.count()>0?(i=t.as(t.ac),t.aj(i.continueWithTask$1(n.ig.OlapResult.prototype.$type,function(){return t.ai()}))):t.aj(t.ai()),r=t.aj(),t.aj().i(function(){t.t(!1);t.aj(null)}),r)},initialize:function(){var n=this,t;return n.o()?n.al():(n.o(!0),n.al(n.am()),t=n.al(),n.al().i(function(){n.o(!1);n.al(null)}),t)},addFilterMember:function(t,i){var u=this,f,r=function(){var n=u.b(t,f);return f=n.filtersCollection,n.ret}();r==null?(r=new n.ig.AxisElement(t,function(){var t=new n.ig.ArrayListCollection$1(String);return t.add(i),t}()),f.add(r)):r.a().contains(i)||(r.a().add(i),u.af.contains(i)?u.af.remove(i):u.af.add(i))},getFilterMemberNames:function(t){var i=this,r,u=function(){var n=i.b(t,r);return r=n.filtersCollection,n.ret}();return u!=null?i.a(String,u.a()):new n.ig.ArrayListCollection$1(String)},removeFilterMember:function(n,t){var i=this,r,u=function(){var t=i.b(n,r);return r=t.filtersCollection,t.ret}();u!=null&&u.a().remove(t)&&(i.af.contains(t)?i.af.remove(t):i.af.add(t))},removeAllFilterMembers:function(n){var i=this,f,r=function(){var t=i.b(n,f);return f=t.filtersCollection,t.ret}(),t,u;if(r!=null)for(t=r.a().count()-1;t>=0;t--)u=r.a().item(t),r.a().removeAt(t),i.af.contains(u)?i.af.remove(u):i.af.add(u)},getProviderDefaultProperties:function(){return new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0)},getProviderDefaultRestrictions:function(){return new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0)},tryGetMember:function(n,t){var i=this;return{ret:function(){var r=i.c().h(n,t);return t=r.member,r.ret}(),member:t}},tryGetMembersForLevel:function(n,t){var i=this;return{ret:function(){var r=i.c().j(n,t);return t=r.members,r.ret}(),members:t}},am:function(){},ai:function(){},h:function(){},ah:function(){},an:function(t){var i=this,r,u,f,e,o;if(String.isNullOrEmpty(t)){if(t==null)throw new n.ig.ArgumentNullException("cubeName");throw new n.ig.InvalidOperationException(1,"cubeName cannot be empty.");}if(r=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),i.cube()!=null){if(i.cube().name()==t)return r.e(i.metadataTree()),r.b();i.au()}for(u=i.cubes().getEnumerator();u.moveNext();)if(f=u.current(),f.name()==t){i.cube(f);break}return(e=i.ah(),!i.isInitialized()&&(o=i.sourceOptions().measureGroup(),!String.isNullOrEmpty(o)))?e.continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return i.ao(o)}):e.continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return i.ao(null)})},ak:function(){var t=this,s=null,h=null,c=null,i=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0),nt,tt,it,l,r,a,rt,v,u,y,ut,p,f,w,ft,e,et,b,ot,k,o,st,d,ht,g;if(String.isNullOrEmpty(t.sourceOptions().columns())||(nt=new n.ig.AxisDefinitionParser(t.sourceOptions().columns()),s=nt.c()),String.isNullOrEmpty(t.sourceOptions().rows())||(tt=new n.ig.AxisDefinitionParser(t.sourceOptions().rows()),h=tt.c()),String.isNullOrEmpty(t.sourceOptions().filters())||(it=new n.ig.AxisDefinitionParser(t.sourceOptions().filters()),c=it.c()),s!=null&&s.count()>0)for(l=s.getEnumerator();l.moveNext();)if(r=l.current(),t.at(n.ig.ICoreOlapElement.prototype.$type,r.b(),t.columnAxis(),n.ig.Hierarchy.prototype.$type),t.u().add(r),r.a().count()>0)for(i.add(r),a=r.a().getEnumerator();a.moveNext();)rt=a.current(),t.af.add(rt);if(h!=null&&h.count()>0)for(v=h.getEnumerator();v.moveNext();)if(u=v.current(),t.at(n.ig.ICoreOlapElement.prototype.$type,u.b(),t.rowAxis(),n.ig.Hierarchy.prototype.$type),t.w().add(u),u.a().count()>0)for(i.add(u),y=u.a().getEnumerator();y.moveNext();)ut=y.current(),t.af.add(ut);if(c!=null&&c.count()>0)for(p=c.getEnumerator();p.moveNext();)if(f=p.current(),t.at(n.ig.Hierarchy.prototype.$type,f.b(),t.filters(),n.ig.Hierarchy.prototype.$type),t.v().add(f),f.a().count()>0)for(i.add(f),w=f.a().getEnumerator();w.moveNext();)ft=w.current(),t.af.add(ft);if(e=null,String.isNullOrEmpty(t.sourceOptions().measures())||(et=new n.ig.AxisDefinitionParser(t.sourceOptions().measures()),e=et.c()),e!=null&&e.count()>0)for(b=e.getEnumerator();b.moveNext();)ot=b.current(),t.at(n.ig.Measure.prototype.$type,ot.b(),t.measures(),n.ig.Measure.prototype.$type);if(t.m()||t.s()||t.n()||t.r()||t.p()){if(i.count()>0){for(k=new Array(i.count()),o=0;o<i.count();o++)st=i.item(o).b(),k[o]=t.getMembersOfHierarchy(st);return d=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),ht=new n.ig.TaskFactory,ht.c(k,function(){t.ai().i(function(){t.aw();d.e(t.metadataTree())})}),d.b()}return t.ai().continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){t.aw();var i=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0);return i.e(t.metadataTree()),i.b()})}return t.aw(),g=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),g.e(t.metadataTree()),g.b()},aq:function(){var t=this,i=t.dataProviderFactory().createDataProvider(),r=t.getProviderDefaultRestrictions(),u=t.getProviderDefaultProperties();return i.discoverCubesAsync(u,r).j(n.ig.IList$1.prototype.$type.specialize(n.ig.Cube.prototype.$type),function(i){return t.cubes(t.a(n.ig.Cube.prototype.$type,i.m())),t.cubes()})},ar:function(){var t=this,i=t.dataProviderFactory().createDataProvider(),r=t.getProviderDefaultRestrictions(),u=t.getProviderDefaultProperties();return i.discoverMeasureGroupsAsync(u,r).j(n.ig.IList$1.prototype.$type.specialize(n.ig.MeasureGroup.prototype.$type),function(i){return t.measureGroups(t.a(n.ig.MeasureGroup.prototype.$type,i.m())),t.measureGroups()})},aw:function(){this.isInitialized(!0)},au:function(){this.cube(null);this.measureGroups(new n.ig.ArrayListCollection$1(n.ig.MeasureGroup.prototype.$type));this.filters().clear();this.rowAxis().clear();this.columnAxis().clear();this.measures().clear();this.c(null);this.av()},av:function(){this.measureGroup(null);this.metadataTree(null)},ao:function(t){var i=this,r,u,f;if(i.cube()==null)throw new n.ig.InvalidOperationException(1,"Data source has no Cube set.");if(r=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),i.measureGroup()!=null){if(i.measureGroup().name()==t)return r.e(i.metadataTree()),r.b();i.av()}if(!String.isNullOrEmpty(t)&&i.measureGroups().count()==0)return i.ar().continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return i.measureGroups().count()==0?i.ao(null):i.ao(t)});for(u=i.measureGroups().getEnumerator();u.moveNext();)if(f=u.current(),f.name()==t){i.measureGroup(f);break}return i.metadataTree(i.k(t)),r.e(i.metadataTree()),r.b()},k:function(t){var i=this,e=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.cube),t.caption(i.cube().caption()),t.item(i.cube()),t}(),r,u,f,o=!0,s;return String.isNullOrEmpty(t)||i.measureGroups()==null?(r=i.c().t(),u=i.c().y(),f=i.c().v()):(o=!1,r=i.c().a().getMeasureGroupDimensions(t),u=i.c().a().getMeasureGroupMeasures(t),f=i.c().a().getMeasureGroupKpis(t)),s=n.ig.MetaTreeHelper.prototype.getDimensionMetaItems(r,u,f,i.c().u(),i.c().x(),o,i.c()),n.ig.MetaTreeHelper.prototype.setMetaItemChildren(e,s),e},d:function(t,i){var r=this;return i!=null&&i.axes().count()>0?i.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).firstOrDefault$1(n.ig.OlapResultAxis.prototype.$type):null},ay:function(t,i){var r=this,s,v,h,c,l,a,u,f,e,o,y,p;switch(t.action()){case n.ig.NotifyCollectionChangedAction.prototype.add:for(s=t.newItems().getEnumerator();s.moveNext();)v=s.current(),h=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,v),h!=null&&r.isInitialized()&&i.add(new n.ig.AxisElement(h.uniqueName(),new n.ig.ArrayListCollection$1(String)));break;case n.ig.NotifyCollectionChangedAction.prototype.remove:for(c=t.oldItems().getEnumerator();c.moveNext();)if(l=c.current(),a=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,l),a!=null){if(u=i.where$1(n.ig.AxisElement.prototype.$type,function(n){return n.b()==a.uniqueName()}).firstOrDefault$1(n.ig.AxisElement.prototype.$type),u!=null){for(f=new n.ig.List$1(String,0),e=0;e<u.a().count();e++)f.add(u.a().item(e));for(o=0;o<f.count();o++)y=f.item(o),r.removeFilterMember(u.b(),y);i.remove(u)}}else p=n.ig.util.cast(n.ig.MeasureList.prototype.$type,l),p!=null&&(r.r()||r.q()||r.p()||r.measures().clear())}},a0:function(t,i){var r=this,u,e,o,s,f,h,c,l;switch(t.action()){case n.ig.NotifyCollectionChangedAction.prototype.add:for(u=t.newItems().getEnumerator();u.moveNext();)e=u.current(),o=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,e),o!=null&&(s=n.ig.util.cast(n.ig.MeasureList.prototype.$type,i.where$1(n.ig.ICoreOlapElement.prototype.$type,function(t){return n.ig.util.cast(n.ig.MeasureList.prototype.$type,t)!==null}).firstOrDefault$1(n.ig.ICoreOlapElement.prototype.$type)),s!=null&&r.measureListIndex()>=t.newStartingIndex()&&r.measureListIndex(r.measureListIndex()+1));break;case n.ig.NotifyCollectionChangedAction.prototype.remove:for(f=t.oldItems().getEnumerator();f.moveNext();)h=f.current(),c=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,h),c!=null&&(l=n.ig.util.cast(n.ig.MeasureList.prototype.$type,i.where$1(n.ig.ICoreOlapElement.prototype.$type,function(t){return n.ig.util.cast(n.ig.MeasureList.prototype.$type,t)!==null}).firstOrDefault$1(n.ig.ICoreOlapElement.prototype.$type)),l!=null&&r.measureListIndex()>t.oldStartingIndex()&&r.measureListIndex(r.measureListIndex()-1))}},az:function(){var t=this,i,e;i=t.measureListLocation()==n.ig.MeasureListLocation.prototype.columns?t.columnAxis():t.rowAxis();for(var r=null,u=0,f=i.getEnumerator();f.moveNext();){if(e=f.current(),r=n.ig.util.cast(n.ig.MeasureList.prototype.$type,e),r!=null)break;u++}t.measures().count()>1?r==null?(r=function(){var i=new n.ig.MeasureList;return i.measures(t.measures()),i}(),t.measureListIndex()<0||t.measureListIndex()>i.count()?(t.ag=i.count(),i.add(r)):i.insert(t.measureListIndex(),r)):u!=t.measureListIndex()&&(i.removeAt(u),t.measureListIndex()>i.count()?(t.ag=i.count(),i.add(r)):i.insert(t.measureListIndex(),r)):r!=null&&i.removeAt(u)},ae:function(){return this.ac},ad:function(){return this.ab},at:function(t,i,r,u){var e=this,o=function(n){return n.uniqueName()==i},f=e.getCoreElement(o,u);f==null||r.contains(n.ig.Object.prototype.$type,f)||r.add(f)},as:function(t){for(var r=this,i=new n.ig.List$1(String,0),h=t.getEnumerator(),o,u,s;h.moveNext();){var e=h.current(),c=r.d(e.c(),r.result()).tuples().__inner[e.b()].members().item(e.a()),f=r.getCoreElement(function(n){return n.hierarchyUniqueName()==c.hierarchyUniqueName()&&n.depth()==c.levelNumber()+1},n.ig.Level.prototype.$type);f==null||r.c().c(f.uniqueName())||i.contains(f.uniqueName())||i.add(f.uniqueName())}if(i.count()>0){for(o=new Array(i.count()),u=0;u<i.count();u++)o[u]=r.getMembersOfLevel(i.item(u));return(new n.ig.TaskFactory).d(n.ig.Array.prototype.$type,o,function(n){return n})}return s=new n.ig.TaskCompletionSource$1(n.ig.Array.prototype.$type,0),s.e(new Array(0)),s.b()},ax:function(){var t,f;if(t=this.measureListLocation()==n.ig.MeasureListLocation.prototype.columns?this.columnAxis():this.rowAxis(),t!=null){for(var i=null,r=0,u=t.getEnumerator();u.moveNext();){if(f=u.current(),i=n.ig.util.cast(n.ig.MeasureList.prototype.$type,f),i!=null)break;r++}i!=null&&(this.q(!0),t.removeAt(r))}},a:function(t,i){for(var r=new n.ig.ArrayListCollection$1(t),u=i.getEnumerator(),f;u.moveNext();)f=u.current(),r.add(f);return r},b:function(t,i){var u=this,r=u.u().where$1(n.ig.AxisElement.prototype.$type,function(n){return n.b()==t}).firstOrDefault$1(n.ig.AxisElement.prototype.$type);return r!=null?(i=u.u(),{ret:r,filtersCollection:i}):(r=u.w().where$1(n.ig.AxisElement.prototype.$type,function(n){return n.b()==t}).firstOrDefault$1(n.ig.AxisElement.prototype.$type),r!=null)?(i=u.w(),{ret:r,filtersCollection:i}):(r=u.v().where$1(n.ig.AxisElement.prototype.$type,function(n){return n.b()==t}).firstOrDefault$1(n.ig.AxisElement.prototype.$type),r!=null)?(i=u.v(),{ret:r,filtersCollection:i}):(i=null,{ret:null,filtersCollection:i})},$type:new n.ig.Type("OlapDataSource",n.ig.Object.prototype.$type,[n.ig.IOlapDataSource.prototype.$type])},!0);n.ig.util.defType("PositionInfo","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("PositionInfo",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("CubeMetaItemsCache","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.s=new n.ig.Dictionary$2(String,n.ig.Tuple$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.Member.prototype.$type),0);this.l=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Member.prototype.$type,0);this.q=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.Member.prototype.$type),0);this.r=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.Member.prototype.$type),0);this.n=new n.ig.Dictionary$2(String,n.ig.Measure.prototype.$type,0);this.m=new n.ig.Dictionary$2(String,n.ig.KpiMeasure.prototype.$type,0);this.p=new n.ig.Dictionary$2(String,n.ig.Boolean.prototype.$type,0);this.o=new n.ig.Dictionary$2(String,n.ig.Boolean.prototype.$type,0)},s:null,l:null,q:null,r:null,n:null,m:null,p:null,o:null,_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_t:null,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},c:function(n){var i=this,t;return function(){var r=i.p.tryGetValue(n,t);return t=r.value,r.ret}()?t:!1},ac:function(n){this.p.item(n,!0)},b:function(n){var i=this,t;return function(){var r=i.o.tryGetValue(n,t);return t=r.value,r.ret}()?t:!1},ab:function(t){var i=this,r,u;for(i.o.item(t,!0),r=i.x().where$1(n.ig.Level.prototype.$type,function(n){return n.hierarchyUniqueName()==t}).getEnumerator();r.moveNext();)u=r.current(),i.ac(u.uniqueName())},d:function(n){return this.r.containsKey(n)},aa:function(t){var i=this,r,e,u,f;return function(){var n=i.s.tryGetValue(t.uniqueName(),r);return r=n.value,n.ret}()||(e=i.s.count(),r=new n.ig.Tuple$2(n.ig.Number.prototype.$type,n.ig.Member.prototype.$type,e,t),i.s.item(t.uniqueName(),r),i.l.item(e,t),function(){var n=i.q.tryGetValue(t.levelUniqueName(),u);return u=n.value,n.ret}()||(u=new n.ig.ArrayListCollection$1(n.ig.Member.prototype.$type),i.q.item(t.levelUniqueName(),u)),String.isNullOrEmpty(t.parentUniqueName())||(function(){var n=i.r.tryGetValue(t.parentUniqueName(),f);return f=n.value,n.ret}()||(f=new n.ig.List$1(n.ig.Member.prototype.$type,0),i.r.item(t.parentUniqueName(),f)),f.add(t)),u.add(t)),r.a()},i:function(n,t){var r=this,i;return function(){var t=r.s.tryGetValue(n,i);return i=t.value,t.ret}()?(t=i.a(),{ret:!0,memberOrdinal:t}):(t=-1,{ret:!1,memberOrdinal:t})},h:function(n,t){var r=this,i;return function(){var t=r.s.tryGetValue(n,i);return i=t.value,t.ret}()?(t=i.b(),{ret:!0,member:t}):(t=null,{ret:!1,member:t})},g:function(n,t){var i=this;return{ret:function(){var r=i.l.tryGetValue(n,t);return t=r.value,r.ret}(),member:t}},k:function(n,t){var i=this;return{ret:function(){var r=i.r.tryGetValue(n,t);return t=r.value,r.ret}(),members:t}},j:function(n,t){var i=this;return{ret:function(){var r=i.q.tryGetValue(n,t);return t=r.value,r.ret}(),members:t}},f:function(t,i){var r=this;if(!function(){var n=r.n.tryGetValue(t,i);return i=n.value,n.ret}()){if(i=r.y().where$1(n.ig.Measure.prototype.$type,function(n){return n.uniqueName()==t}).firstOrDefault$1(n.ig.Measure.prototype.$type),i==null)return{ret:!1,measure:i};r.n.add(t,i)}return{ret:!0,measure:i}},e:function(t,i){var r=this;if(!function(){var n=r.m.tryGetValue(t,i);return i=n.value,n.ret}()){if(i=r.w().where$1(n.ig.KpiMeasure.prototype.$type,function(n){return n.uniqueName()==t}).firstOrDefault$1(n.ig.KpiMeasure.prototype.$type),i==null)return{ret:!1,measure:i};r.m.add(t,i)}return{ret:!0,measure:i}},$type:new n.ig.Type("CubeMetaItemsCache",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MetaTreeHelper","Object",{init:function(){n.ig.Object.prototype.init.call(this)},getDimensionMetaItems:function(t,i,r,u,f,e,o){var it=this,h=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),c=new n.ig.HierarchyItemPosition,l,a,k,v,y,d,p,s,g,w,nt,tt,b;for(c.a(0),c.b(0),l=new n.ig.List$1(n.ig.Hierarchy.prototype.$type,0),a=u.getEnumerator();a.moveNext();)k=a.current(),l.add(k);for(v=new n.ig.List$1(n.ig.Level.prototype.$type,0),y=f.getEnumerator();y.moveNext();)d=y.current(),v.add(d);for(p=t.getEnumerator();p.moveNext();)s=p.current(),g=n.ig.MetaTreeHelper.prototype.e(l,v,s,c),s.dimensionType()!=n.ig.DimensionType.prototype.measure?(w=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.dimension),t.caption(s.caption()),t.item(s),t}(),n.ig.MetaTreeHelper.prototype.setMetaItemChildren(w,g),h.add(w)):(nt=n.ig.MetaTreeHelper.prototype.b(i,s),h.insert(0,nt),r.count$1(n.ig.Kpi.prototype.$type)>0&&(tt=function(){var t=new n.ig.KpiDimension;return t.caption("Kpis"),t}(),b=n.ig.MetaTreeHelper.prototype.a(r,tt,o),b.type(n.ig.OlapMetadataTreeItemType.prototype.kpiRoot),h.insert(1,b)));return h},setMetaItemChildren:function(t,i){var s=this,r,u;if(i.count()>0){var f=i.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toArray$1(n.ig.OlapMetadataTreeItem.prototype.$type),e=i.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).toArray$1(n.ig.OlapMetadataTreeItem.prototype.$type),o=new Array(f.length+e.length);for(r=0;r<f.length;r++)o[r]=f[r];for(u=0;u<e.length;u++)o[f.length+u]=e[u];t.children(o)}},e:function(t,i,r,u){for(var nt=this,v=new n.ig.Dictionary$2(String,n.ig.Tuple$2.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type)),0),y=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),f=t.item(u.a()),e,s,p,h,w,o,c,l,d,a,b,k,g;f.dimensionUniqueName()!=r.uniqueName();)u.a(u.a()+1),f=t.item(u.a());while(f.dimensionUniqueName()==r.uniqueName()){if(e=null,!String.isNullOrEmpty(f.hierarchyDisplayFolder()))for(s=String.empty(),p=n.ig.MetaTreeHelper.prototype.c(f.hierarchyDisplayFolder()),h=0;h<p.length;h++)w=p[h],s+=w+"\\",function(){var n=v.tryGetValue(s,o);return o=n.value,n.ret}()||(c=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.group),t.caption(w),t}(),o=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),c,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),v.add(s,o),e!=null?e.b().add(c):y.add(c)),e=o;switch(f.hierarchyOrigin()){case n.ig.HierarchyOrigin.prototype.systemEnabled:l=n.ig.OlapMetadataTreeItemType.prototype.systemEnabledHierarchy;break;case n.ig.HierarchyOrigin.prototype.userDefined:l=n.ig.OlapMetadataTreeItemType.prototype.userDefinedHierarchy;break;default:l=n.ig.OlapMetadataTreeItemType.prototype.parentChildHierarchy}if(d=n.ig.MetaTreeHelper.prototype.f(i,f,u),a=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(l),t.caption(f.caption()),t.item(f),t}(),n.ig.MetaTreeHelper.prototype.setMetaItemChildren(a,d),e!=null?e.b().add(a):y.add(a),u.a()+1>=t.count())break;u.a(u.a()+1);f=t.item(u.a())}for(b=v.values().getEnumerator();b.moveNext();)k=b.current(),g=k.a(),n.ig.MetaTreeHelper.prototype.setMetaItemChildren(g,k.b());return y},f:function(t,i,r){var s=this,e=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),u,f,o;if(t==null||t.count()==0)return e;for(u=t.item(r.b());u.hierarchyUniqueName()!=i.uniqueName();)r.b(r.b()+1),u=t.item(r.b());while(u.hierarchyUniqueName()==i.uniqueName()){switch(u.depth()){case 0:case 1:f=n.ig.OlapMetadataTreeItemType.prototype.level1;break;case 2:f=n.ig.OlapMetadataTreeItemType.prototype.level2;break;case 3:f=n.ig.OlapMetadataTreeItemType.prototype.level3;break;case 4:f=n.ig.OlapMetadataTreeItemType.prototype.level4;break;default:f=n.ig.OlapMetadataTreeItemType.prototype.level5}if(o=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(f),t.caption(u.caption()),t.item(u),t}(),e.add(o),r.b()+1>=t.count())break;r.b(r.b()+1);u=t.item(r.b())}return e},b:function(t,i){for(var lt=this,f=new n.ig.Dictionary$2(String,n.ig.Tuple$2.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type)),0),y=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.measure),t.caption(i.caption()),t.item(i),t}(),o=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),y,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),tt=t.getEnumerator(),r,u,it,s,h,p,c,w,e,b,rt,l,k,ut,d,ft,g,a,v,ct;tt.moveNext();)if(r=tt.current(),n.ig.util.cast(n.ig.KpiMeasure.prototype.$type,r)===null){if(u=o,String.isNullOrEmpty(r.measureGroupName())||function(){var n=f.tryGetValue(r.measureGroupName(),u);return u=n.value,n.ret}()||(it=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.group),t.caption(r.measureGroupName()),t}(),u=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),it,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),f.add(r.measureGroupName(),u),o.b().add(u.a())),s=u,!String.isNullOrEmpty(r.measureDisplayFolder()))for(h=r.measureGroupName(),p=n.ig.MetaTreeHelper.prototype.c(r.measureDisplayFolder()),c=0;c<p.length;c++)w=p[c],h+="\\"+w,function(){var n=f.tryGetValue(h,e);return e=n.value,n.ret}()||(b=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.group),t.caption(w),t}(),e=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),b,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),f.add(h,e),s.b().add(b)),s=e;rt=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.measure),t.caption(r.caption()),t.item(r),t}();s.b().add(rt)}for(l=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),k=o.b().where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).getEnumerator();k.moveNext();)ut=k.current(),l.add(ut);for(d=o.b().where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).getEnumerator();d.moveNext();)ft=d.current(),l.add(ft);for(n.ig.MetaTreeHelper.prototype.setMetaItemChildren(y,l),g=f.values().getEnumerator();g.moveNext();){var et=g.current(),ot=et.b(),st=ot.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toList$1(n.ig.OlapMetadataTreeItem.prototype.$type),ht=ot.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toList$1(n.ig.OlapMetadataTreeItem.prototype.$type),nt=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0);for(a=0;a<st.count();a++)nt.add(st.item(a));for(v=0;v<ht.count();v++)nt.add(ht.item(v));ct=et.a();n.ig.MetaTreeHelper.prototype.setMetaItemChildren(ct,nt)}return y},a:function(t,i,r){var ni=this,g=new n.ig.Dictionary$2(String,n.ig.Tuple$2.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type)),0),h=r.y().toList$1(n.ig.Measure.prototype.$type),f,u,l,a,it,v,rt,c,ut,e,y,p,w,b,ft,yt,et,pt,ot,k,d,gt;r.y(h);f=new n.ig.List$1(n.ig.KpiMeasure.prototype.$type,0);r.w(f);for(var nt=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.kpiRoot),t.caption(i.caption()),t.item(i),t}(),tt=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),nt,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),ht=t.getEnumerator();ht.moveNext();){if(u=ht.current(),l=tt,!String.isNullOrEmpty(u.kpiDisplayFolder()))for(a=String.empty(),it=n.ig.MetaTreeHelper.prototype.c(u.kpiDisplayFolder()),v=0;v<it.length;v++)rt=it[v],a+="\\"+rt,function(){var n=g.tryGetValue(a,c);return c=n.value,n.ret}()||(ut=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.group),t.caption(rt),t}(),c=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),ut,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),g.add(a,c),l.b().add(ut)),l=c;if(e=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.kpi),t.caption(u.caption()),t.item(u),t}(),!String.isNullOrEmpty(u.kpiValue())){var o=null,ct=n.ig.OlapMetadataTreeItemType.prototype.measure,lt="Value";(function(){var n=r.f(u.kpiValue(),o);return o=n.measure,n.ret})()?lt+=" ("+o.caption()+")":(ct=n.ig.OlapMetadataTreeItemType.prototype.kpiValue,o=n.ig.KpiMeasure.prototype.createKpiValueMeasure(u),h.add(o),f.add(o));e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption(lt),t.item(o),t.type(ct),t}())}if(!String.isNullOrEmpty(u.kpiGoal())){var s=null,at=n.ig.OlapMetadataTreeItemType.prototype.measure,vt="Goal";(function(){var n=r.f(u.kpiGoal(),s);return s=n.measure,n.ret})()?vt+=" ("+s.caption()+")":(at=n.ig.OlapMetadataTreeItemType.prototype.kpiGoal,s=n.ig.KpiMeasure.prototype.createKpiGoalMeasure(u),h.add(s),f.add(s));e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption(vt),t.item(s),t.type(at),t}())}String.isNullOrEmpty(u.kpiStatus())||(y=n.ig.KpiMeasure.prototype.createKpiStatusMeasure(u),h.add(y),f.add(y),e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption("Status"),t.item(y),t.type(n.ig.OlapMetadataTreeItemType.prototype.kpiStatus),t}()));String.isNullOrEmpty(u.kpiTrend())||(p=n.ig.KpiMeasure.prototype.createKpiTrendMeasure(u),h.add(p),f.add(p),e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption("Trend"),t.item(p),t.type(n.ig.OlapMetadataTreeItemType.prototype.kpiTrend),t}()));String.isNullOrEmpty(u.kpiWeight())||(w=n.ig.KpiMeasure.prototype.createKpiWeightMeasure(u),h.add(w),f.add(w),e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption("Weight"),t.item(w),t.type(n.ig.OlapMetadataTreeItemType.prototype.kpiWeight),t}()));l.b().add(e)}for(b=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),ft=tt.b().where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).getEnumerator();ft.moveNext();)yt=ft.current(),b.add(yt);for(et=tt.b().where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).getEnumerator();et.moveNext();)pt=et.current(),b.add(pt);for(n.ig.MetaTreeHelper.prototype.setMetaItemChildren(nt,b),ot=g.values().getEnumerator();ot.moveNext();){var wt=ot.current(),bt=wt.b(),kt=bt.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toList$1(n.ig.OlapMetadataTreeItem.prototype.$type),dt=bt.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toList$1(n.ig.OlapMetadataTreeItem.prototype.$type),st=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0);for(k=0;k<kt.count();k++)st.add(kt.item(k));for(d=0;d<dt.count();d++)st.add(dt.item(d));gt=wt.a();n.ig.MetaTreeHelper.prototype.setMetaItemChildren(gt,st)}return nt},c:function(n){return n.split("\\")},$type:new n.ig.Type("MetaTreeHelper",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("HierarchyItemPosition","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("HierarchyItemPosition",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DataSourceBaseOptions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_cube:null,cube:function(n){return arguments.length===1?(this._cube=n,n):this._cube},_measureGroup:null,measureGroup:function(n){return arguments.length===1?(this._measureGroup=n,n):this._measureGroup},_measures:null,measures:function(n){return arguments.length===1?(this._measures=n,n):this._measures},_filters:null,filters:function(n){return arguments.length===1?(this._filters=n,n):this._filters},_columns:null,columns:function(n){return arguments.length===1?(this._columns=n,n):this._columns},_rows:null,rows:function(n){return arguments.length===1?(this._rows=n,n):this._rows},$type:new n.ig.Type("DataSourceBaseOptions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("AxisDefinitionParser","Object",{init:function(t){n.ig.Object.prototype.init.call(this);this.d(-1);this.k(t)},_a:!1,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},b:function(){var u,f;if(this.d()==this.k().length-1)return!1;for(var i=-1,r=-1,t=!1;this.d()+1<this.k().length;){this.d(this.d()+1);u=this.k().substr(this.d(),1);switch(u){case n.ig.AxisDefinitionParser.prototype.e:i==-1&&(i=this.d());break;case n.ig.AxisDefinitionParser.prototype.f:for(r=this.d();this.d()+1<this.k().length;){u=this.k().substr(this.d()+1,1);switch(u){case n.ig.AxisDefinitionParser.prototype.f:r=this.d()+1;break;case n.ig.AxisDefinitionParser.prototype.h:n.ig.AxisDefinitionParser.prototype.f==this.k().substr(this.d(),1)&&(t=!0);break;case n.ig.AxisDefinitionParser.prototype.i:case n.ig.AxisDefinitionParser.prototype.j:t=!0}if(t)break;this.d(this.d()+1)}t=!0;break;case n.ig.AxisDefinitionParser.prototype.h:t=!0;break;case n.ig.AxisDefinitionParser.prototype.i:this.a(!0);break;case n.ig.AxisDefinitionParser.prototype.j:n.ig.Debug.prototype.a(this.a());t=!0;this.a(!1)}if(t&&(t=!1,i>-1&&r>-1))break}return this.d()==this.k().length-1&&(r==-1||i==-1)?!1:(f=this.k().substr(i,r-i+1).trim(),this.g(f),!0)},c:function(){for(var i=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0),t=null,r;this.b();)this.a()?t!=null&&t.add(this.g()):(t=new n.ig.ArrayListCollection$1(String),r=new n.ig.AxisElement(this.g(),t),i.add(r));return i},$type:new n.ig.Type("AxisDefinitionParser",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("CoreOlapElementParser","Object",{init:function(t){n.ig.Object.prototype.init.call(this);this.c(-1);this.h(t)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},a:function(){var u,f;if(this.c()==this.h().length-1)return!1;for(var t=-1,i=-1,r=!1;this.c()+1<this.h().length;){this.c(this.c()+1);u=this.h().substr(this.c(),1);switch(u){case n.ig.CoreOlapElementParser.prototype.d:t==-1&&(t=this.c());break;case n.ig.CoreOlapElementParser.prototype.e:for(i=this.c();this.c()+1<this.h().length;){u=this.h().substr(this.c()+1,1);switch(u){case n.ig.CoreOlapElementParser.prototype.e:i=this.c()+1;break;case n.ig.CoreOlapElementParser.prototype.g:r=!0}if(r)break;this.c(this.c()+1)}break;case n.ig.CoreOlapElementParser.prototype.g:r=!0}if(r&&(r=!1,t>-1&&i>-1))break}return this.c()==this.h().length-1&&(i==-1||t==-1)?!1:(f=this.h().substr(t,i-t+1).trim(),this.f(f),!0)},b:function(){for(var t=new n.ig.List$1(String,0);this.a();)t.add(this.f());return t},$type:new n.ig.Type("CoreOlapElementParser",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("KeyValueItem","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("KeyValueItem",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("AxisElement","Object",{init:function(t,i){n.ig.Object.prototype.init.call(this);this.b(t);this.a(i)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("AxisElement",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasureGroupMetaItemsCache","Object",{a:null,c:null,b:null,j:null,d:null,h:null,f:null,init:function(t,i,r,u){n.ig.Object.prototype.init.call(this);this.a=new n.ig.Dictionary$2(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Dimension.prototype.$type),0);this.c=new n.ig.Dictionary$2(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Measure.prototype.$type),0);this.b=new n.ig.Dictionary$2(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Kpi.prototype.$type),0);this.j=u;this.d=t;this.h=i;this.f=r},getMeasureGroupDimensions:function(t){var i=this,r,e,o,s,u,h,f;if(!function(){var n=i.a.tryGetValue(t,r);return r=n.value,n.ret}()){for(e=new n.ig.List$1(String,0),o=i.j.getEnumerator();o.moveNext();)s=o.current(),s.measureGroupName()==t&&e.add(s.dimensionUniqueName());for(u=new n.ig.List$1(n.ig.Dimension.prototype.$type,0),h=i.d.getEnumerator();h.moveNext();)f=h.current(),(e.contains(f.uniqueName())||f.dimensionType()==n.ig.DimensionType.prototype.measure)&&u.add(f);i.a.add(t,u);r=u}return r},getMeasureGroupMeasures:function(t){var u=this,i,r,f,e;if(!function(){var n=u.c.tryGetValue(t,i);return i=n.value,n.ret}()){for(r=new n.ig.List$1(n.ig.Measure.prototype.$type,0),f=u.h.getEnumerator();f.moveNext();)e=f.current(),e.measureGroupName()==t&&r.add(e);u.c.add(t,r);i=r}return i},getMeasureGroupKpis:function(t){var u=this,i,r,f,e;if(!function(){var n=u.b.tryGetValue(t,i);return i=n.value,n.ret}()){for(r=new n.ig.List$1(n.ig.Kpi.prototype.$type,0),f=u.f.getEnumerator();f.moveNext();)e=f.current(),e.measureGroupName()==t&&r.add(e);u.b.add(t,r);i=r}return i},$type:new n.ig.Type("MeasureGroupMetaItemsCache",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("PositionItemInfo$2","Dictionary$2",{$tKey:null,$tSortKey:null,init:function(t,i,r,u,f,e){this.q=new n.ig.Dictionary$2(this.$tKey,n.ig.Object.prototype.$type,0);this.$tKey=t;this.$tSortKey=i;this.$type=this.$type.specialize(this.$tKey,this.$tSortKey);n.ig.Dictionary$2.prototype.init.call(this,this.$tKey,n.ig.PositionItemInfo$2.prototype.$type.specialize(this.$tKey,this.$tSortKey));this.positionItem(r);this.positionIndex(u);this.positionItemIndex(f);this.positionItemDepth(0);this.positionItemDepthMin(-1);this.positionItemDepthMax(Number.MAX_VALUE);this.positionSize(e);r!=null&&(this.positionItemDepth(this.positionItem().depth()),this.key(this.positionItem().key()),this.parentKey(this.positionItem().parentKey()),this.hierarchyKey(this.positionItem().hierarchyKey()),this.hierarchyLevelKey(this.positionItem().hierarchyLevelKey()),this.sortKey(this.positionItem().sortKey()),this.caption(this.positionItem().caption()))},l:function(t,i,r,u){return new n.ig.PositionItemInfo$2(this.$tKey,this.$tSortKey,t,i,r,u)},_positionItemDepthMin:0,positionItemDepthMin:function(n){return arguments.length===1?(this._positionItemDepthMin=n,n):this._positionItemDepthMin},_positionItemDepthMax:0,positionItemDepthMax:function(n){return arguments.length===1?(this._positionItemDepthMax=n,n):this._positionItemDepthMax},_positionItem:null,positionItem:function(n){return arguments.length===1?(this._positionItem=n,n):this._positionItem},_positionIndex:0,positionIndex:function(n){return arguments.length===1?(this._positionIndex=n,n):this._positionIndex},_positionItemDepth:0,positionItemDepth:function(n){return arguments.length===1?(this._positionItemDepth=n,n):this._positionItemDepth},_positionItemIndex:0,positionItemIndex:function(n){return arguments.length===1?(this._positionItemIndex=n,n):this._positionItemIndex},_positionSize:0,positionSize:function(n){return arguments.length===1?(this._positionSize=n,n):this._positionSize},_key:null,key:function(n){return arguments.length===1?(this._key=n,n):this._key},_parentKey:null,parentKey:function(n){return arguments.length===1?(this._parentKey=n,n):this._parentKey},_hierarchyKey:null,hierarchyKey:function(n){return arguments.length===1?(this._hierarchyKey=n,n):this._hierarchyKey},_hierarchyLevelKey:null,hierarchyLevelKey:function(n){return arguments.length===1?(this._hierarchyLevelKey=n,n):this._hierarchyLevelKey},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_sortKey:null,sortKey:function(n){return arguments.length===1?(this._sortKey=n,n):this._sortKey},_isExpandable:!1,isExpandable:function(n){return arguments.length===1?(this._isExpandable=n,n):this._isExpandable},_isExpanded:!1,isExpanded:function(n){return arguments.length===1?(this._isExpanded=n,n):this._isExpanded},m:function(n,t,i){var r=!1,u,f;return(this.positionItemIndex()==-1?r=!0:i!=null&&n.item(this.positionItemIndex()).key()!=null&&(u=i.item(this.positionItemIndex()),r=n.item(this.positionItemIndex()).key().equals(u.key())),this.positionItemIndex()+1==this.positionSize())?r:(f=this.n(n,t,this.positionItemIndex()+1,i),r&&f)},ab:function(){},q:null,n:function(n,t,i,r){var u=this,s,f=n.item(i),e,o,h;return u.containsKey(f.key())?(h=u.item(f.key()),s=h.m(n,t,r)):(e=u.l(f,t,i,u.positionSize()),e.isExpandable(f.isExpandable()),u.q.containsKey(e.key())&&(u.q.remove(e.key()),e.isExpanded(!0)),f.parentKey()!=null&&(o=null,function(){var n=u.tryGetValue(f.parentKey(),o);return o=n.value,n.ret}()?o.isExpanded(!0):u.q.containsKey(f.parentKey())||u.q.add(f.parentKey(),null)),s=e.m(n,t,r),u.add(f.key(),e),u.positionItemDepthMin()==-1?u.positionItemDepthMin(f.depth()):u.positionItemDepthMin(Math.min(u.positionItemDepthMin(),f.depth())),u.positionItemDepthMax()==Number.MAX_VALUE?u.positionItemDepthMax(f.depth()):u.positionItemDepthMax(Math.max(u.positionItemDepthMax(),f.depth())),u.ab(n,e)),s},getIndex2:function(n){for(var i=new Array(n.count()),t=0;t<i.length;t++)i[t]=n.item(t).key();return this.getIndex(i)},getIndex:function(n){return this.s(n,n.length)},s:function(n,t){var r=this,i;return r.positionItemIndex()==t-1?r.positionIndex():function(){var t=r.tryGetValue(n[r.positionItemIndex()+1],i);return i=t.value,t.ret}()?i.count()==0?i.positionIndex():i.s(n,t):-1},$type:new n.ig.Type("PositionItemInfo$2",n.ig.Dictionary$2.prototype.$type.specialize(0,1))},!0);n.ig.util.defType("PositionResolver$2","Object",{$tKey:null,$tSortKey:null,k:0,b:null,t:null,u:null,init:function(t,i,r,u){this.k=0;this.$tKey=t;this.$tSortKey=i;this.$type=this.$type.specialize(this.$tKey,this.$tSortKey);n.ig.Object.prototype.init.call(this);this.positions(r.toList$1(n.ig.IPosition$2.prototype.$type.specialize(this.$tKey,this.$tSortKey)));this.positionSize(u)},getPositionIndexCompleted:null,_positions:null,positions:function(n){return arguments.length===1?(this._positions=n,n):this._positions},_positionSize:0,positionSize:function(n){return arguments.length===1?(this._positionSize=n,n):this._positionSize},rootPositionInfo:function(){return this.b==null&&(this.b=this.d(this.positionSize())),this.b},d:function(t){return new n.ig.PositionItemInfo$2(this.$tKey,this.$tSortKey,null,-1,-1,t)},hasUnregisterdPositions:function(){return this.k<this.positions().count()},completeRegisterPositions:function(){this.hasUnregisterdPositions()&&this.o(null)},resolveParentPositionItem:function(t,i){var r,e,f,u,o,s;if(i=-1,r=n.ig.util.cast(n.ig.IHierarchicalPositionItem$2.prototype.$type.specialize(this.$tKey,this.$tSortKey),t),r==null||r.parentKey()==null)return{ret:null,parentPositionIndex:i};for(e=r.position().indexOf(r),f=new Array(r.position().itemsCount()),u=0;u<r.position().itemsCount();u++)f[u]=r.position().item(u).key();return(f[e]=r.parentKey(),i=this.rootPositionInfo().getIndex(f),i==-1)?{ret:null,parentPositionIndex:i}:(o=this.positions().__inner[i],s=o.item(e),{ret:s,parentPositionIndex:i})},getHostPositionItemInfo:function(n,t){for(var u,f=this,i=f.rootPositionInfo(),e=n.item(t),r=0;r<t;r++)if(function(){var t=i.tryGetValue(n.item(r).key(),u);return u=t.value,t.ret}())i=u;else{i=null;break}return i==null?null:i.containsKey(e.key())?i:null},h:function(t,i){var e=this,r,s,f,o,u;if(e.rootPositionInfo().count()==0)return null;for(r=e.rootPositionInfo(),s=t.position().indexOf(t),f=0;f<s;f++)if(function(){var n=r.tryGetValue(t.position().item(f).key(),o);return o=n.value,n.ret}())r=o;else{r=null;break}return r==null?null:r.containsKey(t.key())?(u=new n.ig.List$1(n.ig.Number.prototype.$type,0),e.s(t.key(),r,u),i==n.ig.ListSortDirection.prototype.descending)?(u.sort1(function(n,t){return n==t?0:n>t?-1:1}),u):(u.sort1(function(n,t){return n==t?0:n>t?1:-1}),u):null},s:function(t,i,r){for(var f=this,e=i.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(f.$tKey,f.$tSortKey),function(n){return t.equals(n.parentKey())}).getEnumerator(),u;e.moveNext();)(u=e.current(),u.count()==0?r.add(u.positionIndex()):f.r(u,r),u.isExpanded())&&u.positionItemDepth()<i.positionItemDepthMax()&&f.s(u.key(),i,r)},r:function(t,i){for(var u=this,f=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(u.$tKey,u.$tSortKey),function(n){return n.parentKey()==null}).getEnumerator(),r;f.moveNext();)(r=f.current(),r.count()==0?i.add(r.positionIndex()):u.r(r,i),r.isExpanded())&&r.positionItemDepth()<t.positionItemDepthMax()&&u.s(r.key(),t,i)},getChildren:function(t,i){var r=this,u,f;return r.hasUnregisterdPositions()&&r.completeRegisterPositions(),u=r.getHostPositionItemInfo(t,i),f=t.item(i),u.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(r.$tKey,r.$tSortKey),function(n){return f.key().equals(n.parentKey())})},isMemberExpanded:function(t){var r=this,s,h,i,u,e,o,f;if(r.hasUnregisterdPositions()&&r.completeRegisterPositions(),s=r.getPositionIndex(t.position()),s==-1||r.rootPositionInfo().count()==0)return n.ig.util.toNullable(Boolean,null);for(h=t.position().indexOf(t),i=r.rootPositionInfo(),u=0;u<h;u++)if(function(){var n=i.tryGetValue(t.position().item(u).key(),e);return e=n.value,n.ret}())i=e;else{i=null;break}if(i==null||!i.containsKey(t.key()))return n.ig.util.toNullable(Boolean,null);for(o=null,f=i.values().getEnumerator();f.moveNext();)if(t.key().equals(f.current().parentKey())){o=f.current();break}return n.ig.util.toNullable(Boolean,o!=null)},getPositionIndex:function(n){if(n==null||n.itemsCount()!=this.positionSize())return-1;if(n.isEmpty()&&this.positions().count()==1&&this.positions().__inner[0].isEmpty())return 0;if(this.k>0){var t=this.m(n);if(t>-1)return t;if(this.k==this.positions().count())return-1}return this.o(n)},m:function(t){return t.isEmpty()&&this.positions().count()==1&&this.positions().__inner[0].isEmpty()?0:this.rootPositionInfo().getIndex2(t.getItems().toList$1(n.ig.IPositionItem$2.prototype.$type.specialize(this.$tKey,this.$tSortKey)))},o:function(n){for(var r,u,f=n==null,i=-1,t=this.k;t<this.positions().count();t++)if(r=this.positions().__inner[t],u=this.rootPositionInfo().m(r,t,n),this.k++,i==-1&&u&&(i=t,!f))break;return i},$type:new n.ig.Type("PositionResolver$2",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("LevelSortDirection","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.sortBehavior(n.ig.LevelSortBehavior.prototype.system)},_levelUniqueName:null,levelUniqueName:function(n){return arguments.length===1?(this._levelUniqueName=n,n):this._levelUniqueName},_sortDirection:null,sortDirection:function(n){return arguments.length===1?(this._sortDirection=n,n):this._sortDirection},_sortBehavior:null,sortBehavior:function(n){return arguments.length===1?(this._sortBehavior=n,n):this._sortBehavior},$type:new n.ig.Type("LevelSortDirection",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("TaskExtensions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},continueWithTask$1:function(t,i){var u=this,r=new n.ig.TaskCompletionSource$1(t,0);return u.e(function(n){if(n.a()==null)try{i(n).i(function(n){if(n.a()==null){r.e(n.m());return}r.d(n.a())})}catch(u){var t;t=u;r.d(t)}else r.d(n.a())}),r.b()},continueWithTask$2:function(n,t,i){var r=this;return r.continueWithTask$1(t,function(n){return i(n)})},$type:new n.ig.Type("TaskExtensions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("HierarchyFilterView","Object",{d:null,c:null,e:null,init:function(t){this.e=new n.ig.Dictionary$2(String,n.ig.FilterMember.prototype.$type,0);n.ig.Object.prototype.init.call(this);this.hierarchy(t);this.c=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.FilterMember.prototype.$type),0);this.d=new n.ig.Dictionary$2(String,n.ig.FilterMember.prototype.$type,0)},filterMemberExpansionChanged:null,filterMemberSelectionChanged:null,_hierarchy:null,hierarchy:function(n){return arguments.length===1?(this._hierarchy=n,n):this._hierarchy},addFiltersForMembers:function(n){for(var t=n.getEnumerator(),i;t.moveNext();)i=t.current(),this.addFilterForMember(i)},addFilterForMember:function(t){var i=this,r,u;i.d.containsKey(t.uniqueName())||(r=new n.ig.FilterMember(t),r.propertyChanged=n.ig.Delegate.prototype.combine(r.propertyChanged,i.o.runOn(i)),r.selectionChanged=n.ig.Delegate.prototype.combine(r.selectionChanged,i.p.runOn(i)),function(){var n=i.c.tryGetValue(t.levelDepth(),u);return u=n.value,n.ret}()||(u=new n.ig.List$1(n.ig.FilterMember.prototype.$type,0),i.c.add(t.levelDepth(),u)),i.d.add(t.uniqueName(),r),i.e.add(t.uniqueName(),r),u.add(r),i.j(r),i.m(r))},tryGetFilterMember:function(n,t){var i=this;return{ret:function(){var r=i.d.tryGetValue(n,t);return t=r.value,r.ret}(),filterMember:t}},getRootFilterMembers:function(){for(var n=-1,i=this.c.keys().getEnumerator(),t;i.moveNext();)t=i.current(),n=n==-1?t:Math.min(t,n);return n==-1?null:this.c.item(n)},getSelectedFilterItems:function(){for(var r=this.getRootFilterMembers(),i=new n.ig.List$1(n.ig.FilterMember.prototype.$type,0),e=0,o=r.getEnumerator(),u,f,t;o.moveNext();)u=o.current(),u.isSelected().hasValue()==!0&&u.isSelected().value()==!0&&e++;if(e==r.count())return i;for(f=r.getEnumerator();f.moveNext();)t=f.current(),t.isSelected().hasValue()==!1?this.n(t,i):t.isSelected().hasValue()==!0&&t.isSelected().value()==!0&&i.add(t);return i},p:function(t){this.filterMemberSelectionChanged!=null&&this.filterMemberSelectionChanged(this,new n.ig.FilterMemberStateChangedEventArgs(t))},o:function(t,i){i.propertyName()=="IsExpanded"&&this.filterMemberExpansionChanged!=null&&this.filterMemberExpansionChanged(this,new n.ig.FilterMemberStateChangedEventArgs(t))},n:function(n,t){var i,r;if(n.isSelected().hasValue()==!0&&n.isSelected().value()==!0)t.add(n);else{if(n.children()==null)return;for(i=n.children().getEnumerator();i.moveNext();)r=i.current(),this.n(r,t)}},m:function(t){var u=this,r=t.member().parentUniqueName(),i;String.isNullOrEmpty(r)||function(){var n=u.d.tryGetValue(r,i);return i=n.value,n.ret}()&&(i.n(t),i.isSelected().hasValue()==!0&&i.isSelected().value()==!1&&t.isSelected(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!1)))},j:function(n){var u=this,f=n.member().levelDepth(),t,i,r;if(function(){var n=u.c.tryGetValue(f+1,t);return t=n.value,n.ret}())for(i=t.getEnumerator();i.moveNext();)r=i.current(),r.member().parentUniqueName()==n.member().uniqueName()&&n.n(r)},$type:new n.ig.Type("HierarchyFilterView",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("FilterMember","Object",{l:n.ig.util.toNullable(n.ig.Boolean.prototype.$type,null),c:!1,e:!1,d:!1,init:function(t){this.e=!1;this.d=!1;n.ig.Object.prototype.init.call(this);var i=n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!0);this.l=i;this.member(t);this.k(0);this.j(0)},selectionChanged:null,propertyChanged:null,_parent:null,parent:function(n){return arguments.length===1?(this._parent=n,n):this._parent},_member:null,member:function(n){return arguments.length===1?(this._member=n,n):this._member},isExpandable:function(){return this.member().childrenCardinality()>0},isExpanded:function(n){return arguments.length===1?(this.c!=n&&(this.c=n,this.o("IsExpanded")),n):this.c},isSelected:function(t){var e,u,i,f,r;if(arguments.length===1){if(e=t,u=n.ig.util.toNullable(n.ig.Boolean.prototype.$type,null),n.ig.util.nullableEquals(this.l,e)==!1){if(i=this.l,this.l=t,!this.d&&this.l.hasValue()==!0&&this.children()!=null)for(f=this.children().getEnumerator();f.moveNext();)r=f.current(),r.e=!0,r.isSelected(this.l),r.e=!1;if(this.parent()!=null&&(i.hasValue()==!0&&i.value()==!1?(this.l.hasValue()==!1&&this.p(!0),this.q(!1)):i.hasValue()==!1?(this.l.hasValue()==!0&&this.l.value()==!1&&this.q(!0),this.p(!1)):this.l.hasValue()==!0&&this.l.value()==!1?this.q(!0):this.l.hasValue()==!1&&this.p(!0),!this.e)){this.parent().d=!0;var o=this.parent().k(),s=this.parent().j(),h=this.parent().children().count();s==0?o==0?this.parent().isSelected(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!0)):o==h?this.parent().isSelected(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!1)):this.parent().isSelected(u):this.parent().isSelected(u);this.parent().d=!1}this.o("IsSelected");this.e||this.d||this.selectionChanged!=null&&this.selectionChanged(this,n.ig.EventArgs.prototype.empty)}return t}return this.l},q:function(n){n?this.parent().k(this.parent().k()+1):this.parent().k(this.parent().k()-1)},p:function(n){n?this.parent().j(this.parent().j()+1):this.parent().j(this.parent().j()-1)},_children:null,children:function(n){return arguments.length===1?(this._children=n,n):this._children},n:function(t){this.children()==null&&this.children(new n.ig.List$1(n.ig.FilterMember.prototype.$type,0));t.parent(this);this.children().add(t);this.o("Children")},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},o:function(t){this.propertyChanged!=null&&this.propertyChanged(this,new n.ig.PropertyChangedEventArgs(t))},$type:new n.ig.Type("FilterMember",n.ig.Object.prototype.$type,[n.ig.INotifyPropertyChanged.prototype.$type])},!0);n.ig.util.defType("FilterMemberStateChangedEventArgs","EventArgs",{init:function(t){n.ig.EventArgs.prototype.init.call(this);this.filterMember(t)},_filterMember:null,filterMember:function(n){return arguments.length===1?(this._filterMember=n,n):this._filterMember},$type:new n.ig.Type("FilterMemberStateChangedEventArgs",n.ig.EventArgs.prototype.$type)},!0);n.ig.util.defType("ResultSorter$1","Object",{$t:null,_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},init:function(t,i,r,u){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.Object.prototype.init.call(this);this.a(i);this.d(r);this.c(u)},b:function(){},e:function(t,i,r){var u,o,f,s,e,h,c;for(t.e(),u=t.d(),o=new Array(u.count()),f=0;f<u.count();f++)s=u.item(f),r.add(s,f);for(e=0;e<u.count();e++)h=u.item(e),c=i.tuples().__inner[h],o[e]=c;return new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,1,o)},$type:new n.ig.Type("ResultSorter$1",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ResultHeaderSorter","ResultSorter$1",{f:null,_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},init:function(t,i,r,u){var f,e;for(n.ig.ResultSorter$1.prototype.init.call(this,n.ig.AxisHeaderSortingVisitor.prototype.$type,t,i,r),this.f=new n.ig.Dictionary$2(String,n.ig.LevelSortDirection.prototype.$type,1,u.count()),f=u.getEnumerator();f.moveNext();)e=f.current(),this.f.item(e.levelUniqueName(),e)},b:function(){var t=this,s,h,l,a,d,v,y,g;if(t.h(new n.ig.List$1(n.ig.LevelSortDirection.prototype.$type,0)),t.g(new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type)),0)),t.a().isEmpty())return t.a();var e=new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0),o=0,i=1,p=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),w=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0);if(t.c()){var u=t.a().axes().item(o),b=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type),0),nt=new n.ig.AxisHeaderSortingVisitor(u,t.f,t.h(),b),tt=t.e(nt,u,p),it=function(){var t=new n.ig.OlapResultAxis(tt,u.tupleSize());return t.name(u.name()),t}();e.add(it);t.g().item(u.name(),b);i=u.tuples().count();o++}if(t.d()){var f=t.a().axes().item(o),k=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type),0),rt=new n.ig.AxisHeaderSortingVisitor(f,t.f,t.h(),k),ut=t.e(rt,f,w),ft=function(){var t=new n.ig.OlapResultAxis(ut,f.tupleSize());return t.name(f.name()),t}();e.add(ft);t.g().item(f.name(),k)}for(s=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,2,t.a().cells().count()),h=t.a().cells().getEnumerator();h.moveNext();){var et=h.current(),c=et.clone(),r=c.cellOrdinal();t.c()&&(l=r%i,a=p.item(l),l!=a&&(d=n.ig.intDivide(r,i),r=d*i+a));t.d()&&(v=n.ig.intDivide(r,i),y=w.item(v),v!=y&&(g=r%i,r=y*i+g));c.cellOrdinal(r);s.add(c)}return function(){var i=new n.ig.OlapResult;return i.isEmpty(t.a().isEmpty()),i.axes(e),i.cells(s),i}()},$type:new n.ig.Type("ResultHeaderSorter",n.ig.ResultSorter$1.prototype.$type.specialize(n.ig.AxisHeaderSortingVisitor.prototype.$type))},!0);n.ig.util.defType("AxisTupleVisitor","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},init:function(t){n.ig.Object.prototype.init.call(this);this.a(t)},e:function(){var t=this,u;t.a().positionResolver().hasUnregisterdPositions()&&t.a().positionResolver().completeRegisterPositions();t.d(new n.ig.List$1(n.ig.Number.prototype.$type,2,t.a().tuples().count()));for(var i=t.a().positionResolver().rootPositionInfo(),f=i.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==i.positionItemDepthMin()}),r=t.c(i,f).getEnumerator();r.moveNext();)u=r.current(),t.f(i,u)},b:function(){},c:function(){},f:function(t,i){var r=this,e=i.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==i.positionItemDepthMin()}),u,o,s,f,h;if(e.count$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type))>0)for(u=e.getEnumerator();u.moveNext();)o=u.current(),r.f(i,o);else r.d().add(i.positionIndex());for(s=r.b(t,i),f=s.getEnumerator();f.moveNext();)h=f.current(),r.f(t,h)},$type:new n.ig.Type("AxisTupleVisitor",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("AxisHeaderSortingVisitor","AxisTupleVisitor",{h:null,i:null,g:null,init:function(t,i,r,u){n.ig.AxisTupleVisitor.prototype.init.call(this,t);this.h=i;this.i=r;this.g=u},b:function(t,i){var f=this,r=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==i.key()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,u,e;return r.count()>0&&(o=r.item(0),function(){var n=f.h.tryGetValue(o.hierarchyLevelKey(),u);return u=n.value,n.ret}()&&(r=u.sortBehavior()==n.ig.LevelSortBehavior.prototype.system?u.sortDirection()==n.ig.ListSortDirection.prototype.ascending?r.orderBy$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),n.ig.Object.prototype.$type,function(n){return n.sortKey()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):r.orderByDescending$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),n.ig.Object.prototype.$type,function(n){return n.sortKey()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):u.sortDirection()==n.ig.ListSortDirection.prototype.ascending?r.orderBy$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),String,function(n){return n.caption()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):r.orderByDescending$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),String,function(n){return n.caption()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),f.i.select$2(n.ig.LevelSortDirection.prototype.$type,String,function(n){return n.levelUniqueName()}).contains$1(String,u.levelUniqueName())||f.i.add(u),function(){var n=f.g.tryGetValue(o.positionItemIndex(),e);return e=n.value,n.ret}()||(e=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type,0),f.g.add(i.positionItemIndex(),e)),e.item(i.positionItemDepth(),u.sortDirection()))),r},c:function(t,i){var e=this,r=i.toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,u,f;return r.count()>0&&(o=r.item(0),o.hierarchyLevelKey()!=null&&function(){var n=e.h.tryGetValue(o.hierarchyLevelKey(),u);return u=n.value,n.ret}()&&(r=u.sortBehavior()==n.ig.LevelSortBehavior.prototype.system?u.sortDirection()==n.ig.ListSortDirection.prototype.ascending?r.orderBy$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),n.ig.Object.prototype.$type,function(n){return n.sortKey()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):r.orderByDescending$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),n.ig.Object.prototype.$type,function(n){return n.sortKey()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):u.sortDirection()==n.ig.ListSortDirection.prototype.ascending?r.orderBy$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),String,function(n){return n.caption()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):r.orderByDescending$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),String,function(n){return n.caption()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),e.i.add(u),function(){var n=e.g.tryGetValue(o.positionItemIndex(),f);return f=n.value,n.ret}()||(f=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type,0),e.g.add(t.positionItemIndex(),f)),f.item(t.positionItemDepth(),u.sortDirection()))),r},$type:new n.ig.Type("AxisHeaderSortingVisitor",n.ig.AxisTupleVisitor.prototype.$type)},!0);n.ig.util.defType("ResultColumnValueSorter","ResultSorter$1",{f:null,_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},init:function(t,i,r,u){n.ig.ResultSorter$1.prototype.init.call(this,n.ig.AxisValueSortingVisitor.prototype.$type,t,i,r);this.f=u},b:function(){var t=this,o,r,p,w,u,e,b,s,l,k,d,ft;if(t.g(new n.ig.List$1(n.ig.TupleSortDirection.prototype.$type,0)),!t.d()||t.a().isEmpty())return t.a();var v=new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0),h=0,i=null,f=1;t.c()&&(i=t.a().axes().item(h),f=i.tuples().count(),v.add(i.clone()),h++);for(var c=t.a().axes().item(h),nt=t.a().axes().item(h).tuples().count(),y=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Object.prototype.$type,1,t.a().cells().count()),tt=t.a().cells().getEnumerator();tt.moveNext();)o=tt.current(),r=null,function(){var n=o.properties().tryGetValue("Value",r);return r=n.value,n.ret}()?y.item(o.cellOrdinal(),r):(function(){var n=o.properties().tryGetValue("FmtValue",r);return r=n.value,n.ret}(),y.item(o.cellOrdinal(),r));for(p=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(n.ig.TupleSortDirection.prototype.$type,n.ig.Array.prototype.$type),2,t.f.count()),w=t.f.getEnumerator();w.moveNext();)if(u=w.current(),i!=null&&u.memberNames()!=null?(i.positionResolver().hasUnregisterdPositions()&&i.positionResolver().completeRegisterPositions(),e=i.positionResolver().rootPositionInfo().getIndex(u.memberNames()),u.tupleIndex(e)):e=u.tupleIndex(),e>-1&&e<f){for(b=new Array(nt),s=0;s<nt;s++)l=null,function(){var n=y.tryGetValue(s*f+e,l);return l=n.value,n.ret}(),b[s]=l;p.add(new n.ig.KeyValuePair$2(n.ig.TupleSortDirection.prototype.$type,n.ig.Array.prototype.$type,1,u,b));t.g().add(u)}var it=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),et=new n.ig.AxisValueSortingVisitor(c,p),ot=t.e(et,c,it),st=function(){var t=new n.ig.OlapResultAxis(ot,c.tupleSize());return t.name(c.name()),t}();for(v.add(st),k=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,2,t.a().cells().count()),d=t.a().cells().getEnumerator();d.moveNext();){var ht=d.current(),g=ht.clone(),a=g.cellOrdinal(),rt=n.ig.intDivide(a,f),ut=it.item(rt);rt!=ut&&(ft=a%f,a=ut*f+ft);g.cellOrdinal(a);k.add(g)}return function(){var i=new n.ig.OlapResult;return i.isEmpty(t.a().isEmpty()),i.axes(v),i.cells(k),i}()},$type:new n.ig.Type("ResultColumnValueSorter",n.ig.ResultSorter$1.prototype.$type.specialize(n.ig.AxisValueSortingVisitor.prototype.$type))},!0);n.ig.util.defType("AxisValueSortingVisitor","AxisTupleVisitor",{g:null,init:function(t,i){n.ig.AxisTupleVisitor.prototype.init.call(this,t);this.g=i},b:function(t,i){var r=this,u=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==i.key()});return r.c(t,u)},c:function(t,i){var r=i.toArray$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),u,f;return r.length>0&&(u=this.g.toArray$1(n.ig.KeyValuePair$2.prototype.$type.specialize(n.ig.TupleSortDirection.prototype.$type,n.ig.Array.prototype.$type)),f=function(t){var i=function(n,t,i){var r=n(t,i);return r<0?-1:r>0?1:!isNaN(parseFloat(r))&&isFinite(r)?r:0};return function(r,u){for(var l,a,e,o,s,h=[],c=[],f=0;f<t.length;f++)l=t[f].key(),a=t[f].value(),e=l.sortDirection()===n.ig.ListSortDirection.prototype.ascending?1:-1,comparer=l.comparer(),o=a[r.positionIndex()],s=a[u.positionIndex()],t.length===1?(h=e*i(comparer,o,s),c=e*i(comparer,s,o)):(h.push(e*i(comparer,o,s)),c.push(e*i(comparer,s,o)));return h<c?-1:h>c?1:0}},r.sort(f(u))),r},$type:new n.ig.Type("AxisValueSortingVisitor",n.ig.AxisTupleVisitor.prototype.$type)},!0);n.ig.util.defType("TupleSortDirection","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_tupleIndex:0,tupleIndex:function(n){return arguments.length===1?(this._tupleIndex=n,n):this._tupleIndex},_memberNames:null,memberNames:function(n){return arguments.length===1?(this._memberNames=n,n):this._memberNames},_sortDirection:null,sortDirection:function(n){return arguments.length===1?(this._sortDirection=n,n):this._sortDirection},_comparer:null,comparer:function(n){return arguments.length===1?(this._comparer=n,n):this._comparer},$type:new n.ig.Type("TupleSortDirection",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DataSourceBase","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_dataSource:null,dataSource:function(n){return arguments.length===1?(this._dataSource=n,n):this._dataSource},isInitialized:function(){return this.dataSource().isInitialized()},_isModified:!1,isModified:function(n){return arguments.length===1?(this._isModified=n,n):this._isModified},_isUpdating:!1,isUpdating:function(n){return arguments.length===1?(this._isUpdating=n,n):this._isUpdating},initialize:function(){var t=this.dataSource().initialize().c(),i=this;return this._isInitializedAttached||(this._isInitializedAttached=!0,t.always(function(t){var r={error:null,metadataTreeRoot:null};this.state()==="rejected"?r.error=t:r.metadataTreeRoot=t;n(i).trigger("initialized",r);i._isInitializedAttached=!1})),t},cubes:function(){return this.dataSource().cubes().inner()},cube:function(){return this.dataSource().cube()},setCube:function(t){var i=this;return i.dataSource().setCube(t).j(n.ig.OlapMetadataTreeItem.prototype.$type,function(n){return n.m()}).c()},metadataTree:function(){return this.dataSource().metadataTree()},addRowItem:function(t){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null&&(this.dataSource().rowAxis().add(t),this.isModified(!0))},insertRowItem:function(t,i){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,i)!==null&&(this.dataSource().rowAxis().insert(t,i),this.isModified(!0))},removeRowItem:function(t){(n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null||n.ig.util.cast(n.ig.MeasureList.prototype.$type,t)!==null)&&(this.dataSource().rowAxis().remove(t),this.isModified(!0))},addColumnItem:function(t){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null&&(this.dataSource().columnAxis().add(t),this.isModified(!0))},insertColumnItem:function(t,i){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,i)!==null&&(this.dataSource().columnAxis().insert(t,i),this.isModified(!0))},removeColumnItem:function(t){(n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null||n.ig.util.cast(n.ig.MeasureList.prototype.$type,t)!==null)&&(this.dataSource().columnAxis().remove(t),this.isModified(!0))},addFilterItem:function(t){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null&&(this.dataSource().filters().add(t),this.isModified(!0))},insertFilterItem:function(t,i){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,i)!==null&&(this.dataSource().filters().insert(t,i),this.isModified(!0))},removeFilterItem:function(t){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null&&(this.dataSource().filters().remove(t),this.isModified(!0))},addMeasureItem:function(t){n.ig.util.cast(n.ig.Measure.prototype.$type,t)!==null&&(this.dataSource().measures().add(t),this.isModified(!0))},insertMeasureItem:function(t,i){n.ig.util.cast(n.ig.Measure.prototype.$type,i)!==null&&(this.dataSource().measures().insert(t,i),this.isModified(!0))},removeMeasureItem:function(t){n.ig.util.cast(n.ig.Measure.prototype.$type,t)!==null&&(this.dataSource().measures().remove(t),this.isModified(!0))},setMeasureListIndex:function(n){this.dataSource().measureListIndex(n);this.isModified(!0)},setMeasureListLocation:function(t){switch(t){case"rows":this.dataSource().measureListLocation(n.ig.MeasureListLocation.prototype.rows);break;case"columns":this.dataSource().measureListLocation(n.ig.MeasureListLocation.prototype.columns)}this.isModified(!0)},getMeasureListLocation:function(){switch(this.dataSource().measureListLocation()){case n.ig.MeasureListLocation.prototype.rows:return"rows";case n.ig.MeasureListLocation.prototype.columns:return"columns";default:return null}},expandTupleMember:function(n,t,i){this.dataSource().expandTupleMember(n,t,i)},collapseTupleMember:function(n,t,i){this.dataSource().collapseTupleMember(n,t,i)},rowAxis:function(){return this.dataSource().rowAxis().inner()},columnAxis:function(){return this.dataSource().columnAxis().inner()},filters:function(){return this.dataSource().filters().inner()},measures:function(){return this.dataSource().measures().inner()},result:function(){return this.dataSource().result()},bindCollectionChanged:function(t){var i=t,r=this.dataSource(),u=function(t,i){t.collectionChanged=n.ig.Delegate.prototype.combine(t.collectionChanged,i)};n.isFunction(i.filters)&&u(r._filters,i.filters);n.isFunction(i.rowAxis)&&u(r._rowAxis,i.rowAxis);n.isFunction(i.columnAxis)&&u(r._columnAxis,i.columnAxis);n.isFunction(i.measures)&&u(r._measures,i.measures)},unbindCollectionChanged:function(t){var i=t,r=this.dataSource();unbindCollectionChanged=function(t,i){t.collectionChanged=n.ig.Delegate.prototype.remove(t.collectionChanged,i)};n.isFunction(i.filters)&&unbindCollectionChanged(r._filters,i.filters);n.isFunction(i.rowAxis)&&unbindCollectionChanged(r._rowAxis,i.rowAxis);n.isFunction(i.columnAxis)&&unbindCollectionChanged(r._columnAxis,i.columnAxis);n.isFunction(i.measures)&&unbindCollectionChanged(r._measures,i.measures)},clearPendingChanges:function(){this.dataSource().clearPendingChanges()},update:function(){var i=this.dataSource().update().c(),t=this;return this.isUpdating()||(this.isUpdating(!0),i.always(function(i){var r={error:null,result:null};this.state()==="rejected"?r.error=i:r.result=i;t.isUpdating(!1);t.isModified(!1);n(t).trigger("updated",r)})),i},getCoreElement:function(n,t){return this.dataSource().getCoreElement(n,t)},getCoreElements:function(n,t){return this.dataSource().getCoreElements(n,t).inner()},getMembersOfHierarchy:function(n){return this.dataSource().getMembersOfHierarchy(n).c()},getMembersOfLevel:function(n){return this.dataSource().getMembersOfLevel(n).c()},tryGetMember:function(n){var i=this,t;return function(){var r=i.dataSource().tryGetMember(n,t);return t=r.member,r.ret}()?t:null},tryGetMembersForLevel:function(t){var r=this,i=new n.ig.ArrayListCollection$1(n.ig.Member.prototype.$type),u=function(){var n=r.dataSource().tryGetMembersForLevel(t,i);return i=n.members,n.ret}();return u?i.inner():new n.ig.ArrayListCollection$1(n.ig.Member.prototype.$type).inner()},getMembersOfMember:function(n){return this.dataSource().getMembersOfMember(n).c()},addFilterMember:function(n,t){this.dataSource().addFilterMember(n,t);this.isModified(!0)},removeAllFilterMembers:function(n){this.dataSource().removeAllFilterMembers(n);this.isModified(!0)},getFilterMemberNames:function(n){return this.dataSource().getFilterMemberNames(n).inner()},getDimension:function(t){var i=this;return i.dataSource().getCoreElement(function(n){return n.uniqueName()==t},n.ig.Dimension.prototype.$type)},getHierarchy:function(t){var i=this;return i.dataSource().getCoreElement(function(n){return n.uniqueName()==t},n.ig.Hierarchy.prototype.$type)},getLevel:function(t){var i=this;return i.dataSource().getCoreElement(function(n){return n.uniqueName()==t},n.ig.Level.prototype.$type)},getMeasure:function(t){var i=this;return i.dataSource().getCoreElement(function(n){return n.uniqueName()==t},n.ig.Measure.prototype.$type)},getMeasureList:function(){return this.dataSource().getCoreElement(null,n.ig.MeasureList.prototype.$type)},$type:new n.ig.Type("DataSourceBase",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("jQueryUtils","Object",{init:function(){n.ig.Object.prototype.init.call(this)},c:function(t,i){if(i==null)return null;var u=i,r=new n.ig.Dictionary$2(String,t,0);return function(t,i){for(var u=n.ig.Dictionary.prototype.getDictionary(t),f=u.keys(),r,e;f.moveNext();)r=f.current(),e=u.item(r),i.add(r,e)}(u,r),r},i:function(n,t){if(t==null)return null;var i=t;return i.__inner.proxy},convertToObjectDictionary:function(t){return n.ig.jQueryUtils.prototype.c(n.ig.Object.prototype.$type,t)},convertToStringDictionary:function(t){return n.ig.jQueryUtils.prototype.c(String,t)},convertFromObjectDictionary:function(t){return n.ig.jQueryUtils.prototype.i(n.ig.Object.prototype.$type,t)},convertFromStringDictionary:function(t){return n.ig.jQueryUtils.prototype.i(String,t)},createJavascriptObject:function(){return{}},getJavascriptObjectProperty:function(n,t){var i=n,r=t;return i[r]},setJavascriptObjectProperty:function(n,t,i){var r=n,u=t,f=i;r[u]=f},getJavascriptObjectMethodResult:function(n,t,i){i=Array.prototype.slice.call(arguments,2);var r=n,u=t,f=i;return r[u].call(r,f)},$type:new n.ig.Type("jQueryUtils",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapUtilities","Object",{init:function(){n.ig.Object.prototype.init.call(this)},dateMemberProvider:function(t,i,r,u){if(String.isNullOrEmpty(t)||String.isNullOrEmpty(i))return null;var o=i,f=u,e=r,s,h,c,l;t=t.toLowerCase();switch(t){case"year":return(f==null&&(f="yyyy"),e==null)?function(t){return n.ig.formatter(new Date(t[o]),"date",f)}:function(t){return e.replace("{0}",n.ig.formatter(new Date(t[o]),"date",f))};case"semester":return e==null&&(e="H{0}"),s=n.ig.OlapUtilities.prototype.dateMemberProvider("year",i,null,null),function(n){var t=s(n);return e.replace("{0}",Math.floor(new Date(n[o]).getMonth()/6)+1).replace("{1}",t)};case"quarter":return e==null&&(e="Q{0}"),s=n.ig.OlapUtilities.prototype.dateMemberProvider("year",i,null,null),h=n.ig.OlapUtilities.prototype.dateMemberProvider("semester",i,null,null),function(n){var t=s(n),i=h(n);return e.replace("{0}",Math.floor(new Date(n[o]).getMonth()/3)+1).replace("{1}",i).replace("{2}",t)};case"month":return(f==null&&(f="MMMM"),e==null)?function(t){return n.ig.formatter(new Date(t[o]),"date",f)}:(s=n.ig.OlapUtilities.prototype.dateMemberProvider("year",i,null,null),h=n.ig.OlapUtilities.prototype.dateMemberProvider("semester",i,null,null),c=n.ig.OlapUtilities.prototype.dateMemberProvider("quarter",i,null,null),function(t){var i=s(t),r=h(t),u=c(t);return e.replace("{0}",n.ig.formatter(new Date(t[o]),"date",f)).replace("{1}",u).replace("{2}",r).replace("{3}",i)});case"date":return(f==null&&(f="MM/dd/yyyy"),e==null)?function(t){return n.ig.formatter(new Date(t[o]),"date",f)}:(s=n.ig.OlapUtilities.prototype.dateMemberProvider("year",i,null,null),h=n.ig.OlapUtilities.prototype.dateMemberProvider("semester",i,null,null),c=n.ig.OlapUtilities.prototype.dateMemberProvider("quarter",i,null,null),l=n.ig.OlapUtilities.prototype.dateMemberProvider("month",i,null,null),function(t){var i=s(t),r=h(t),u=c(t),a=l(t);return e.replace("{0}",n.ig.formatter(new Date(t[o]),"date",f)).replace("{1}",a).replace("{2}",u).replace("{3}",r).replace("{4}",i)})}return null},getDateHierarchy:function(t,i,r,u,f,e){var g=this,s,c,p,a,l,w,v,y,o;if(String.isNullOrEmpty(t))return null;if(i==null||i.length==0)i=function(){var n=[];return n.add("year"),n.add("quarter"),n.add("month"),n.add("date"),n}();else for(s=0;s<i.length;s++)i[s]=i[s].toLowerCase();r==null&&(r="Dates");u==null&&(u=r);var b=r,k=u,h=e,d=i;if(f==null)for(f=new Array(i.length),c=0;c<f.length;c++)o=i[c],f[c]=o.substr(0,1).toUpperCase()+o.substr(1,o.length)+"s";for(p=f,a=new Array(i.length),l=0;l<i.length;l++)w=i[l],a[l]=n.ig.OlapUtilities.prototype.dateMemberProvider(w,t,null,null);for(v=[],y=0,h!=null&&h!=""&&(y=1,v[0]={name:h,caption:h,memberProvider:function(){return h}}),o=0;o<a.length;o++)v[o+y]={name:d[o],caption:p[o],memberProvider:a[o]};return{name:b,caption:k,levels:v}},sumAggregator:function(n,t){var r=n,i=t;return function(n){for(var u=0,e=!0,t,f=0;f<n.length;f++)t=n[f][r],t!==null&&t!==undefined&&(e=!1,u+=t);return e?null:i!=null?u.toFixed(i):u}},avgAggregator:function(n,t){var r=n,i=t;return function(n){var u;i==null&&(i=2);var f=0,e=0,o=!0,t;for(u=0;u<n.length;u++)t=n[u][r],t!==null&&t!==undefined&&(o=!1,f+=t,e++);return o?null:(f/e).toFixed(i)}},minAggregator:function(n){var t=n;return function(n){for(var i=n[0][t],r=1;r<n.length;r++)i=Math.min(i,n[r][t]);return i}},maxAggregator:function(n){var t=n;return function(n){for(var i=n[0][t],r=1;r<n.length;r++)i=Math.max(i,n[r][t]);return i}},countAggregator:function(){return function(n){return n.length}},$type:new n.ig.Type("OlapUtilities",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapTableView","Object",{a:null,init:function(t,i,r,u){n.ig.Object.prototype.init.call(this);var f=this.b(u);this.a=new n.ig.TableViewImpl(t,i,r,f)},rowHeaders:function(){return this.a.rowHeaders()==null?null:this.a.rowHeaders().inner()},columnHeaders:function(){return this.a.columnHeaders()==null?null:this.a.columnHeaders().inner()},resultCells:function(){return this.a.resultCells()==null?null:this.a.resultCells().inner()},columnSortDirections:function(t){var u,t,i,r;if(arguments.length===1){for(this.a.columnSortDirections().clear(),i=t.getEnumerator();i.moveNext();)r=i.current(),u=this.d(r),this.a.columnSortDirections().add(u);return t}for(t=new n.ig.Array,i=this.a.columnSortDirections().getEnumerator();i.moveNext();)r=i.current(),t.add(this.n(r));return t},appliedColumnSortDirections:function(){for(var t=new n.ig.Array,i=this.a.appliedColumnSortDirections().getEnumerator(),r;i.moveNext();)r=i.current(),t.add(this.n(r));return t},levelSortDirections:function(t){var u,t,i,r;if(arguments.length===1){for(this.a.levelSortDirections().clear(),i=t.getEnumerator();i.moveNext();)r=i.current(),u=this.c(r),this.a.levelSortDirections().add(u);return t}for(t=new n.ig.Array,i=this.a.levelSortDirections().getEnumerator();i.moveNext();)r=i.current(),t.add(this.m(r));return t},appliedLevelSortDirections:function(){for(var t=new n.ig.Array,i=this.a.appliedLevelSortDirections().getEnumerator(),r;i.moveNext();)r=i.current(),t.add(this.m(r));return t},appliedSortDirectionsMap:function(){for(var i=n.ig.jQueryUtils.prototype.createJavascriptObject(),r=this.a.appliedSortDirectionsMap().getEnumerator(),t,c;r.moveNext();){for(var u=r.current(),f=n.ig.jQueryUtils.prototype.createJavascriptObject(),e=u.value().getEnumerator();e.moveNext();){for(var o=e.current(),s=n.ig.jQueryUtils.prototype.createJavascriptObject(),h=o.value().getEnumerator();h.moveNext();)t=h.current(),c=t.value()==n.ig.ListSortDirection.prototype.ascending?"ascending":"descending",s[t.key()]=c;f[o.key()]=s}i[u.key()]=f}return i},initialize:function(){this.a.initialize()},b:function(t){var e=this,i=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"isParentInFrontForColumns"),r=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"isParentInFrontForRows"),u=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"compactColumnHeaders"),f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"compactRowHeaders");return function(){var t=new n.ig.TableViewSettings;return t.c(i),t.d(r),t.a(u),t.b(f),t}()},d:function(t){var o=this,f=n.ig.util.cast(n.ig.Array.prototype.$type,n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"memberNames")),e=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"tupleIndex"),i=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"sortDirection"),u=n.ig.ListSortDirection.prototype.ascending,r;return String.isNullOrEmpty(i)||(i=i.toLowerCase(),i=="descending"&&(u=n.ig.ListSortDirection.prototype.descending)),r=null,r=n.isFunction(t.comparer)?t.comparer:function(n,t){return parseFloat(n||-Infinity)-parseFloat(t||-Infinity)},function(){var t=new n.ig.TupleSortDirection;return t.memberNames(f),t.tupleIndex(e),t.sortDirection(u),t.comparer(r),t}()},n:function(t){var i=n.ig.jQueryUtils.prototype.createJavascriptObject();return n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"memberNames",t.memberNames()),n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"tupleIndex",t.tupleIndex()),n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"sortDirection",t.sortDirection()==n.ig.ListSortDirection.prototype.ascending?"ascending":"descending"),t.comparer()!=null&&n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"comparer",t.comparer()),i},c:function(t){var f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"levelUniqueName"),r=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"sortDirection"),u=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"sortBehavior"),i;return String.isNullOrEmpty(f)?null:(i=new n.ig.LevelSortDirection,i.sortDirection(n.ig.ListSortDirection.prototype.ascending),i.sortBehavior(n.ig.LevelSortBehavior.prototype.system),i.levelUniqueName(f),String.isNullOrEmpty(r)||(r=r.toLowerCase(),r=="descending"&&i.sortDirection(n.ig.ListSortDirection.prototype.descending)),String.isNullOrEmpty(u)||(u=u.toLowerCase(),u=="alphabetical"&&i.sortBehavior(n.ig.LevelSortBehavior.prototype.alphabetical)),i)},m:function(t){var i=n.ig.jQueryUtils.prototype.createJavascriptObject();return n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"levelUniqueName",t.levelUniqueName()),n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"sortDirection",t.sortDirection()==n.ig.ListSortDirection.prototype.ascending?"ascending":"descending"),i},$type:new n.ig.Type("OlapTableView",n.ig.Object.prototype.$type)},!0);n.ig.LevelSortBehavior.prototype.alphabetical=0;n.ig.LevelSortBehavior.prototype.system=1;n.ig.OlapMetadataTreeItemType.prototype.cube=0;n.ig.OlapMetadataTreeItemType.prototype.dimension=1;n.ig.OlapMetadataTreeItemType.prototype.group=2;n.ig.OlapMetadataTreeItemType.prototype.userDefinedHierarchy=3;n.ig.OlapMetadataTreeItemType.prototype.systemEnabledHierarchy=4;n.ig.OlapMetadataTreeItemType.prototype.parentChildHierarchy=5;n.ig.OlapMetadataTreeItemType.prototype.measure=6;n.ig.OlapMetadataTreeItemType.prototype.level1=7;n.ig.OlapMetadataTreeItemType.prototype.level2=8;n.ig.OlapMetadataTreeItemType.prototype.level3=9;n.ig.OlapMetadataTreeItemType.prototype.level4=10;n.ig.OlapMetadataTreeItemType.prototype.level5=11;n.ig.OlapMetadataTreeItemType.prototype.kpiRoot=12;n.ig.OlapMetadataTreeItemType.prototype.kpi=13;n.ig.OlapMetadataTreeItemType.prototype.kpiValue=14;n.ig.OlapMetadataTreeItemType.prototype.kpiGoal=15;n.ig.OlapMetadataTreeItemType.prototype.kpiStatus=16;n.ig.OlapMetadataTreeItemType.prototype.kpiTrend=17;n.ig.OlapMetadataTreeItemType.prototype.kpiWeight=18;n.ig.MeasureListLocation.prototype.rows=0;n.ig.MeasureListLocation.prototype.columns=1;n.ig.HeaderCellsLayoutOrientation.prototype.horizontal=0;n.ig.HeaderCellsLayoutOrientation.prototype.vertical=1;n.ig.MemberType.prototype.unknown=0;n.ig.MemberType.prototype.regular=1;n.ig.MemberType.prototype.all=2;n.ig.MemberType.prototype.measure=3;n.ig.MemberType.prototype.formula=4;n.ig.CardinalityType.prototype.one=0;n.ig.CardinalityType.prototype.many=1;n.ig.AggregatorType.prototype.unknown=0;n.ig.AggregatorType.prototype.sum=1;n.ig.AggregatorType.prototype.count=2;n.ig.AggregatorType.prototype.min=3;n.ig.AggregatorType.prototype.max=4;n.ig.AggregatorType.prototype.average=5;n.ig.AggregatorType.prototype.variance=6;n.ig.AggregatorType.prototype.std=7;n.ig.AggregatorType.prototype.distinctCount=8;n.ig.AggregatorType.prototype.none=9;n.ig.AggregatorType.prototype.averageOfChildren=10;n.ig.AggregatorType.prototype.firstNonEmpty=13;n.ig.AggregatorType.prototype.lastNonEmpty=14;n.ig.AggregatorType.prototype.byAccount=15;n.ig.AggregatorType.prototype.calculated=127;n.ig.HierarchyOrigin.prototype.userDefined=1;n.ig.HierarchyOrigin.prototype.systemEnabled=2;n.ig.HierarchyOrigin.prototype.systemInternal=4;n.ig.DimensionType.prototype.unknown=0;n.ig.DimensionType.prototype.time=1;n.ig.DimensionType.prototype.measure=2;n.ig.DimensionType.prototype.other=3;n.ig.DimensionType.prototype.quantitative=5;n.ig.DimensionType.prototype.accounts=6;n.ig.DimensionType.prototype.customers=7;n.ig.DimensionType.prototype.products=8;n.ig.DimensionType.prototype.scenario=9;n.ig.DimensionType.prototype.utility=10;n.ig.DimensionType.prototype.currency=11;n.ig.DimensionType.prototype.rates=12;n.ig.DimensionType.prototype.channel=13;n.ig.DimensionType.prototype.promotion=14;n.ig.DimensionType.prototype.organization=15;n.ig.DimensionType.prototype.billOfMaterials=16;n.ig.DimensionType.prototype.geography=17;n.ig.CubeType.prototype.cube=0;n.ig.CubeType.prototype.dimension=1;n.ig.CubeType.prototype.unknown=2;n.ig.AxisDefinitionParser.prototype.e="[";n.ig.AxisDefinitionParser.prototype.f="]";n.ig.AxisDefinitionParser.prototype.i="{";n.ig.AxisDefinitionParser.prototype.j="}";n.ig.AxisDefinitionParser.prototype.h=",";n.ig.CoreOlapElementParser.prototype.d="[";n.ig.CoreOlapElementParser.prototype.e="]";n.ig.CoreOlapElementParser.prototype.g=".";n.ig.CoreOlapElementParser.prototype.i="&";n.ig.util.extCopy(n.ig.TaskExtensions,[[[n.ig.Task,n.ig.Task$1],["continueWithTask$1","continueWithTask$2"]]]);n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ArrayListCollection$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ArrayListCollection$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ArrayListCollection$1],["ofType$1","cast$1"]]])}(jQuery),$.ig=$.ig||{},function(n){n.ig.$currDefinitions={};n.ig.util.bulkDefine(["IXmlaDataProvider:a","IOlapDiscoverDataProvider:b","Task$1:c","Task:d","Object:e","Type:f","Boolean:g","ValueType:h","Void:i","String:j","IComparable:k","Number:l","Number:m","Single:n","Number:o","String:p","Array:q","RegExp:r","RuntimeTypeHandle:s","MethodInfo:t","MethodBase:u","MemberInfo:v","ParameterInfo:w","TypeCode:x","Enum:y","ConstructorInfo:z","JQueryPromise:aa","Action:ab","MulticastDelegate:ac","IntPtr:ad","Action$1:ae","AggregateException:af","Error:ag","TaskStatus:ah","Func$2:ai","TaskCompletionSource$1:aj","JQueryDeferred:ak","JQuery:al","JQueryObject:am","Element:an","ElementAttributeCollection:ao","ElementCollection:ap","WebStyle:aq","ElementNodeType:ar","Document:as","EventListener:at","IElementEventHandler:au","ElementEventHandler:av","ElementAttribute:aw","JQueryPosition:ax","JQueryCallback:ay","JQueryEvent:az","JQueryUICallback:a0","Script:a1","IEnumerable$1:a2","IEnumerable:a3","IEnumerator:a4","IEnumerator$1:a5","IOlapExecuteCommandProvider:a6","MdxDataSourceImpl:a7","OlapDataSource:a8","IOlapDataSource:a9","OlapMetadataTreeItem:ba","ICoreOlapElement:bb","OlapMetadataTreeItemType:bc","IList$1:bd","ICollection$1:be","MeasureListLocation:bf","OlapResult:bg","ArrayListCollection$1:bh","INotifyCollectionChanged:bi","NotifyCollectionChangedEventHandler:bj","NotifyCollectionChangedEventArgs:bk","EventArgs:bl","NotifyCollectionChangedAction:bm","IList:bn","ICollection:bo","List$1:bp","IArrayList:bq","Array:br","CompareCallback:bs","IDisposable:bt","IArray:bu","Date:bv","Date:bw","Number:bx","Func$3:by","Delegate:bz","NotImplementedException:b0","Cube:b1","CubeType:b2","Member:b3","MemberType:b4","Nullable$1:b5","MeasureGroup:b6","DataSourceBaseOptions:b7","IOlapDataProviderFactory:b8","OlapResultView:b9","ArgumentNullException:ca","OlapResultAxis:cb","PositionResolver$2:cc","PositionItemInfo$2:cd","Dictionary$2:ce","IDictionary$2:cf","IDictionary:cg","Dictionary:ch","IEqualityComparer$1:ci","KeyValuePair$2:cj","IHierarchicalPositionItem$2:ck","IPositionItem$2:cl","IPosition$2:cm","Math:cn","Number:co","Number:cp","Number:cq","Number:cr","Number:cs","Number:ct","Number:cu","Enumerable:cv","IOrderedEnumerable$1:cw","SortedList$1:cx","EventHandler$1:cy","ListSortDirection:cz","OlapResultTuple:c0","ReadOnlyCollection$1:c1","OlapResultAxisMember:c2","OlapResultCell:c3","InvalidOperationException:c4","CubeMetaItemsCache:c5","MeasureGroupMetaItemsCache:c6","MeasureGroupDimension:c7","CardinalityType:c8","Dimension:c9","DimensionType:da","Measure:db","AggregatorType:dc","Kpi:dd","Level:de","Tuple$2:df","KpiMeasure:dg","MeasureList:dh","Hierarchy:di","HierarchyOrigin:dj","NotSupportedException:dk","PositionInfo:dl","TaskExtensions:dm","AxisElement:dn","AxisDefinitionParser:dp","Debug:dq","TaskFactory:dr","MetaTreeHelper:ds","HierarchyItemPosition:dt","KpiDimension:du","MdxDataSourceOptions:dv","MdxSettings:dw","MdxDimensionAxisSettings:dx","MdxAxisSettings:dy","MdxSetSettings:dz","MdxSlicerAxisSettings:d0","ObservableCollection$1:d1","INotifyPropertyChanged:d2","PropertyChangedEventHandler:d3","PropertyChangedEventArgs:d4","Catalog:d5","MdxSlicerAxisProvider:d6","IMdxAxisProvider:d7","IMdxAxis:d8","IMdxExpression:d9","IMdxSet:ea","IMdxElement:eb","MdxElementType:ec","MdxSlicerAxis:ed","MdxAxis:ee","StringBuilder:ef","Environment:eg","IMdxSlicerAxis:eh","IMdxExtendedFilterInfo:ei","IMdxFilterInfo:ej","IAxisFilterElement:ek","IMdxCollectionElement:el","MdxSlicerAxisBuilder:em","MdxAxisFilterElement:en","MdxElementCollectionElement:eo","MdxSingleElement:ep","MdxElement:eq","IMdxItemElement:er","ArgumentException:es","MdxSlicerSet:et","MdxSet:eu","MdxLevelMembersElement:ev","MdxChildrenCollectionElement:ew","MdxDimensionMember:ex","KeyValueItem:ey","MdxDimensionAxisProvider:ez","IMdxDimensionAxisProvider:e0","ResultViewHelper:e1","MdxQueryBuilder:e2","MdxCalculatedMembersCache:e3","XmlaDataProvider:e4","ICoreXmlaConnection:e5","IConnection:e6","XmlaSoapWebClient$1:e7","XmlaSoapWebClient:e8","ICredentials:e9","NetworkCredential:fa","Uri:fb","Encoding:fc","UTF8Encoding:fd","UnicodeEncoding:fe","WebClient:ff","WebHeaderCollection:fg","NameValueCollection:fh","UploadStringCompletedEventHandler:fi","UploadStringCompletedEventArgs:fj","AsyncCompletedEventArgs:fk","IXmlaSoapMethod:fl","XmlaPropertiesCollection:fm","XmlaQueryProperty:fn","XNamespace:fo","XmlaSoapMessageBuilder:fp","XElement:fq","XContainer:fr","XNode:fs","XObject:ft","XmlNode:fu","XmlNodeList:fv","XmlNamedNodeMap:fw","XmlNodeType:fx","XmlDocument:fy","XmlElement:fz","XmlLinkedNode:f0","XmlAttribute:f1","XmlUtils:f2","XName:f3","XDocument:f4","XAttribute:f5","RequestCompletedEventArgs$1:f6","XmlaSoapFaultXmlTypeSerializer:f7","IXmlTypeSerializer$1:f8","XmlaSoapFault:f9","FaultDetail:ga","FaultError:gb","SerializerUtils:gc","ErrorXmlTypeSerializer:gd","FaultReason:ge","FaultCode:gf","FaultException$1:gg","FaultException:gh","DiscoverResponseResult:gi","XmlaSoapMethodResult:gj","IXmlaMethodResult:gk","ExecuteResponseResult:gl","DatabaseXmlTypeSerializer:gm","CubeXmlTypeSerializer:gn","DimensionXmlTypeSerializer:go","HierarchyXmlTypeSerializer:gp","LevelXmlTypeSerializer:gq","MeasureXmlTypeSerializer:gr","MeasureGroupXmlTypeSerializer:gs","MeasureGroupDimensionXmlTypeSerializer:gt","MemberXmlTypeSerializer:gu","KpiXmlTypeSerializer:gv","ResultXmlTypeSerializer:gw","ArraySerializer:gx","AxisXmlTypeSerializer:gy","TupleXmlTypeSerializer:gz","AxisMemberXmlTypeSerializer:g0","CellXmlTypeSerializer:g1","XmlaSoapMethodExecute:g2","XmlaSoapMethod:g3","XmlaSoapMethodDiscover:g4","XmlaSoapMessageHeader:g5","CatalogConstants:g6","DbSchemaConstants:ha","CubeConstants:hf","DimensionConstants:hg","HierarchyConstants:hh","InstanceConstants:hi","KpiConstants:hj","LevelConstants:hk","MeasureConstants:hl","MeasureGroupConstants:hm","MeasureGroupDimensionConstants:hn","MemberConstants:ho","OlapSchemaConstants:hp","CubeRestrictions:hq","DimensionRestrictions:hr","HierarchyRestrictions:hs","KpiRestrictions:ht","LevelRestrictions:hu","MeasureRestrictions:hv","MeasureGroupRestrictions:hw","MeasureGroupDimensionRestrictions:hx","MemberRestrictions:hy","XmlaConstants:hz","XmlaNamespace:h0","IXmlaDataProviderFactory:h6","DefaultXmlaDataProviderFactory:h7","XmlaConnection:h8","RemoteXmlaDataProviderFactory:h9","JsonRemoteRequestSerializer:ia","IRemoteRequestSerializer:ib","RemoteRequest:ic","RemoteRequestType:id","JavaScriptSerializer:ie","RemoteRequestJsonTypeSeriazlier:ig","JsonTypeSeriazlierBase$1:ih","IJsonTypeSerializer$1:ii","JsonSerializerUtils:ij","jQueryUtils:ik","JsonRemoteResponseSerializer:il","IRemoteResponseSerializer:im","ArrayJsonSerializer:io","CatalogJsonTypeSeriazlier:ip","CubeJsonTypeSeriazlier:iq","DimensionJsonTypeSeriazlier:ir","HierarchyJsonTypeSeriazlier:is","LevelJsonTypeSeriazlier:it","MeasureJsonTypeSeriazlier:iu","MeasureGroupJsonTypeSeriazlier:iv","MeasureGroupDimensionJsonTypeSeriazlier:iw","MemberJsonTypeSeriazlier:ix","KpiJsonTypeSeriazlier:iy","ResultJsonTypeSeriazlier:iz","AxisJsonTypeSeriazlier:i0","TupleJsonTypeSeriazlier:i1","AxisMemberJsonTypeSeriazlier:i2","CellJsonTypeSeriazlier:i3","RemoteXmlaDataProvder:i4","XmlaDataSourceImpl:i5","XmlaDataSourceOptions:i6","RequestOptions:i7","XmlaDiscoverProperties:i8","CustomRemoteXmlaRequestSerializer:ja","CustomRemoteXmlaResponseSerializer:jb","OlapXmlaDataSource:jc","DataSourceBase:jd","AbstractEnumerable:je","Func$1:jf","AbstractEnumerator:jg","GenericEnumerable$1:jh","GenericEnumerator$1:ji"]);n.ig.util.defType("RemoteRequestType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("RemoteRequestType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("MdxElementType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("MdxElementType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("XmlaSoapMessageHeader","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("XmlaSoapMessageHeader",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("IXmlaDataProvider","Object",{$type:new n.ig.Type("IXmlaDataProvider",null,[n.ig.IOlapDiscoverDataProvider.prototype.$type,n.ig.IOlapExecuteCommandProvider.prototype.$type])},!0);n.ig.util.defType("MdxDataSourceImpl","OlapDataSource",{bb:null,a9:!1,init:function(t){this.bb=new n.ig.List$1(n.ig.MdxDimensionAxisProvider.prototype.$type,0);n.ig.OlapDataSource.prototype.init.call(this,t);this.mdxSettings(t.mdxSettings());this.mdxSourceOptions(t);this.dataProviderFactory(t.dataProviderFactory());this.a9=!0;this.mdxSourceOptions()!=null&&(this.a9=this.mdxSourceOptions().enableResultCache()==!0)},_mdxSourceOptions:null,mdxSourceOptions:function(n){return arguments.length===1?(this._mdxSourceOptions=n,n):this._mdxSourceOptions},_mdxSettings:null,mdxSettings:function(n){return arguments.length===1?(this._mdxSettings=n,n):this._mdxSettings},_catalog:null,catalog:function(n){return arguments.length===1?(this._catalog=n,n):this._catalog},setCatalog:function(t){if(!this.isInitialized())throw new n.ig.InvalidOperationException(1,"Data source is not initialized.");return this.be(t)},bm:function(n,t){var i,r;if(n.positionItemIndex()==t)n.clear();else for(i=n.values().getEnumerator();i.moveNext();)r=i.current(),this.bm(r,t)},a8:function(t,i,r,u){for(var f=this,ut=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0),ft=r.getEnumerator(),e,a,o,v,y,p,w,s,b,h,k,d,g,nt,c,tt,l,it,rt;ft.moveNext();){for(e=ft.current(),a=new n.ig.AxisElement(e.b(),new n.ig.List$1(String,0)),o=0;o<e.a().count();o++)v=e.a().item(o),function(){var n=f.c().h(v,y);return y=n.member,n.ret}()&&y.scope().hasValue()==!1&&a.a().add(v);ut.add(a)}for(p=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0),w=i.getEnumerator();w.moveNext();){for(s=w.current(),b=new n.ig.AxisElement(s.b(),new n.ig.List$1(String,0)),h=0;h<s.a().count();h++)k=s.a().item(h),function(){var n=f.c().h(k,d);return d=n.member,n.ret}()&&d.scope().hasValue()==!1&&b.a().add(k);p.add(b)}for(g=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0),nt=t.getEnumerator();nt.moveNext();){for(c=nt.current(),tt=new n.ig.AxisElement(c.b(),new n.ig.List$1(String,0)),l=0;l<c.a().count();l++)it=c.a().item(l),function(){var n=f.c().h(it,rt);return rt=n.member,n.ret}()&&rt.scope().hasValue()==!1&&tt.a().add(it);g.add(tt)}return new n.ig.MdxSlicerAxisProvider(f,g,p,ut,u)},getMembersOfLevel:function(t){var i=this,e=t,o=i.getProviderDefaultProperties(),r=i.getProviderDefaultRestrictions(),f,u;return r!=null&&r.add(function(){var i=new n.ig.KeyValueItem;return i.a(n.ig.MemberRestrictions.prototype.g),i.b(t),i}()),f=i.dataProviderFactory().createDataProvider(),u=f.discoverMembersAsync(o,r),u.i(function(n){for(var t=n.m().getEnumerator(),r;t.moveNext();)r=t.current(),i.c().aa(r);i.c().ac(e)}),u},getMembersOfHierarchy:function(t){var i=this,e=t,o=i.getProviderDefaultProperties(),r=i.getProviderDefaultRestrictions(),f,u;return r!=null&&r.add(function(){var i=new n.ig.KeyValueItem;return i.a(n.ig.MemberRestrictions.prototype.e),i.b(t),i}()),f=i.dataProviderFactory().createDataProvider(),u=f.discoverMembersAsync(o,r),u.i(function(n){for(var t=n.m().getEnumerator(),r;t.moveNext();)r=t.current(),i.c().aa(r);i.c().ab(e)}),u},getMembersOfMember:function(t){var i=this,e=i.getProviderDefaultProperties(),r=i.getProviderDefaultRestrictions(),f,u;return r!=null&&(r.add(function(){var i=new n.ig.KeyValueItem;return i.a(n.ig.MemberRestrictions.prototype.j),i.b(t),i}()),r.add(function(){var t=new n.ig.KeyValueItem;return t.a(n.ig.MemberRestrictions.prototype.l),t.b("1"),t}())),f=i.dataProviderFactory().createDataProvider(),u=f.discoverMembersAsync(e,r),u.continueWithTask$2(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type),n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type),function(n){return i.bd(n.m())}),u},bd:function(t){for(var f=this,i=new n.ig.List$1(n.ig.Member.prototype.$type,0),e=t.getEnumerator(),o,r,u;e.moveNext();){o=e.current();i.add(o);break}return i.count()>0&&(r=i.item(0).levelUniqueName(),!f.c().c(r))?f.getMembersOfLevel(r).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type),function(){return t}):(u=new n.ig.TaskCompletionSource$1(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type),0),u.e(t),u.b())},bp:function(n){var h=this,r,s,u,t,f,i,e,o;if(!n.isEmpty())for(r=n.axes().getEnumerator();r.moveNext();)for(s=r.current(),u=s.tuples(),t=0;t<u.count();t++)for(f=u.__inner[t].members(),i=0;i<f.count();i++)e=f.item(i),function(){var n=h.c().i(e.uniqueName(),o);return o=n.memberOrdinal,n.ret}()&&e.ordinal(o)},br:function(t,i){var e=0,r=this.measureListIndex(),u,o,f,s;t&&(u=this.a6(e),u!=null&&this.measureListLocation()==n.ig.MeasureListLocation.prototype.columns&&r>-1&&(o=u.d(),o!=null&&this.bm(o,r-1),u.q()),e++);i&&(f=this.a6(e),f!=null&&this.measureListLocation()==n.ig.MeasureListLocation.prototype.rows&&r>-1&&(s=f.d(),s!=null&&this.bm(s,r-1),f.q()))},bq:function(n,t,i){var r=0,e,u,o,f;i&&(e=r<n.axes().count()?n.axes().item(r):null,u=e!=null?this.a6(r):null,u!=null&&(u.d(e.positionResolver().rootPositionInfo()),u.q()),r++);t&&(o=r<n.axes().count()?n.axes().item(r):null,f=o!=null?this.a6(r):null,f!=null&&(f.d(o.positionResolver().rootPositionInfo()),f.q()),r++)},ba:function(t,i,r,u){var f=this,v,y,h,e,s,p,nt,w,b,k,o,c,d,l,tt,it,ft;for(f.bh(t,i,r),v=new n.ig.Dictionary$2(String,n.ig.Boolean.prototype.$type,0),y=f.ae(),u=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.PositionInfo.prototype.$type),0),h=0;h<y.count();h++)e=y.item(h),function(){var n=u.tryGetValue(e.c(),s);return s=n.value,n.ret}()||(s=new n.ig.List$1(n.ig.PositionInfo.prototype.$type,0),u.add(e.c(),s)),s.add(e),f.l()==null&&f.l(new n.ig.OlapResultView(f.result(),f.result(),t,i)),p=f.l().expandTupleMember(e.c(),e.b(),e.a()),p==null?v.item(e.c(),!0):(nt=f.l(),f.l(p),n.ig.ResultViewHelper.prototype.f(e.c(),nt,f.l()),n.ig.ResultViewHelper.prototype.e(e.c(),e.b(),e.a(),!0,f.l()),f.result(f.l().visibleResult()),f.bp(f.result()),f.bq(f.l().visibleResult(),i,t));for(w=new n.ig.List$1(n.ig.IMdxAxis.prototype.$type,0),b=u.getEnumerator();b.moveNext();)if(k=b.current(),o=f.a2(k.key()),o!=null){for(o.positionResolver().hasUnregisterdPositions()&&o.positionResolver().completeRegisterPositions(),c=new n.ig.List$1(n.ig.IPositionItem$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),0),d=k.value().getEnumerator();d.moveNext();)l=d.current(),l.b()<o.tuples().count()&&(tt=o.tuples().__inner[l.b()],it=tt.item(l.a()),c.add(it));if(c.count()>0){var rt=f.result().axes().indexOf(o),a=f.a6(rt),ut=a.createAxis(rt),g=!1;(function(){var n=v.tryGetValue(o.name(),g);return g=n.value,n.ret})()&&g&&(a=new n.ig.MdxDimensionAxisProvider(1,o,a.g(),c),ft=a.extendAxis(ut,ut.axisIndex()),w.add(ft))}}return f.ae().clear(),{ret:w,axisPositionsMap:u}},a4:function(t,i,r){var u=null,f,e;return(t.count()>0&&(u=this.a6(r),i&&(f=null,u!=null&&(f=u.d()),e=r==0?this.mdxSettings().a():this.mdxSettings().b(),u=new n.ig.MdxDimensionAxisProvider(0,this,e,t,f),this.bo(r,u))),u!=null)?u.createAxis(r):null},bh:function(t,i,r){var u=this,c,a,l,e,o,s,v,y,f,p,h,w;if(u.result()!=null){for(c=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.PositionInfo.prototype.$type),0),a=u.ad(),l=0;l<a.count();l++)e=a.item(l),function(){var n=c.tryGetValue(e.c(),o);return o=n.value,n.ret}()||(o=new n.ig.List$1(n.ig.PositionInfo.prototype.$type,0),c.add(e.c(),o)),o.add(e),r&&(u.l()==null?u.l(new n.ig.OlapResultView(u.result(),u.result(),t,i)):(u.l(u.l().collapseTupleMember(e.c(),e.b(),e.a())),u.result(u.l().visibleResult()),u.bp(u.result()),u.bq(u.l().visibleResult(),i,t)));for(s=new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0),v=c.getEnumerator();v.moveNext();)if((y=v.current(),f=u.a2(y.key()),f!=null)&&(f.positionResolver().hasUnregisterdPositions()&&f.positionResolver().completeRegisterPositions(),s.contains(f)||s.add(f),!r))for(p=y.value().getEnumerator();p.moveNext();)if(h=p.current(),h.b()<f.tuples().count()){var b=f.tuples().__inner[h.b()],d=b.item(h.a()),g=f.positionResolver().getHostPositionItemInfo(b,h.a()),k=g.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.key()==d.key()}).firstOrDefault$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type));k!=null&&k.isExpanded(!1)}if(s.count()>0)for(r||u.result().isEmpty()||u.bq(u.result(),i,t),w=s.getEnumerator();w.moveNext();){var nt=w.current(),tt=i&&nt.name()=="Axis1"?1:0,it=u.a6(tt);it.q()}u.ad().clear()}},bg:function(){this.catalog(null);this.cubes(new n.ig.ArrayListCollection$1(n.ig.Cube.prototype.$type));this.au()},bc:function(){var t=this,i=t.dataProviderFactory().createDataProvider(),r=t.getProviderDefaultProperties();return i.discoverCatalogsAsync(r,null).continueWithTask$2(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Catalog.prototype.$type),n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Catalog.prototype.$type),function(i){return t.catalogs(t.a1(n.ig.Catalog.prototype.$type,i.m())),i})},be:function(t){var i=this,r,u,f;if(String.isNullOrEmpty(t)){if(t==null)throw new n.ig.ArgumentNullException("catalogName");throw new n.ig.InvalidOperationException(1,"catalogName cannot be empty.");}if(r=new n.ig.TaskCompletionSource$1(n.ig.IList$1.prototype.$type.specialize(n.ig.Cube.prototype.$type),0),i.catalog()!=null){if(i.catalog().name()==t)return r.e(i.cubes()),r.b();i.bg()}for(u=i.catalogs().getEnumerator();u.moveNext();)if(f=u.current(),f.name()==t){i.catalog(f);break}return i.cubes()==null||i.cubes().count()==0?i.aq(t).i(function(n){if(n.a()==null){r.e(n.m());return}r.d(n.a())}):r.e(i.cubes()),r.b()},am:function(){var t=this,i=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),r,u,f,e;return t.isInitialized()?(i.e(t.metadataTree()),i.b()):(r=t.mdxSourceOptions().catalog(),u=t.mdxSourceOptions().cube(),t.columnAxis().collectionChanged=n.ig.Delegate.prototype.combine(t.columnAxis().collectionChanged,t.bi.runOn(t)),t.rowAxis().collectionChanged=n.ig.Delegate.prototype.combine(t.rowAxis().collectionChanged,t.bn.runOn(t)),t.filters().collectionChanged=n.ig.Delegate.prototype.combine(t.filters().collectionChanged,t.bk.runOn(t)),t.measures().collectionChanged=n.ig.Delegate.prototype.combine(t.measures().collectionChanged,t.bl.runOn(t)),f=t.bc(),String.isNullOrEmpty(r))?(f.i(function(r){if(r.a()==null){t.aw();var u=function(){var t=new n.ig.OlapResult;return t.isEmpty(!0),t}();t.l(new n.ig.OlapResultView(u,u,!1,!1));t.result(u);i.e(null);return}i.d(r.a())}),i.b()):(e=f.continueWithTask$1(n.ig.IList$1.prototype.$type.specialize(n.ig.Cube.prototype.$type),function(i){if(i.a()==null)return t.be(r);var u=new n.ig.TaskCompletionSource$1(n.ig.IList$1.prototype.$type.specialize(n.ig.Cube.prototype.$type),0);return u.d(i.a()),u.b()}),String.isNullOrEmpty(u))?(e.i(function(r){if(r.a()==null){t.aw();var u=function(){var t=new n.ig.OlapResult;return t.isEmpty(!0),t}();t.l(new n.ig.OlapResultView(u,u,!1,!1));t.result(u);i.e(null);return}i.d(r.a())}),i.b()):e.continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return t.an(u)}).continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return t.ak()})},ai:function(){var t=this,ct=t.m(),lt=t.s(),at=t.r(),vt=t.n(),ut=t.ae().count()>0,ft=t.ad().count()>0,k=t.af.count()>0,d,r,u,s,g,h,i,nt,tt,ot,w,b,it,st,rt,ht;if(!ct&&!lt&&!at&&!vt&&!ut&&!ft&&!k)return d=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),d.e(t.result()),d.b();if(r=t.columnAxis().count()>0,u=t.rowAxis().count()>0,t.rowAxis().count()==0&&t.columnAxis().count()==0&&t.measures().count()==0)return s=function(){var t=new n.ig.OlapResult;return t.isEmpty(!0),t}(),g=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),g.e(s),t.l(new n.ig.OlapResultView(s,s,!1,!1)),t.result(s),t.bp(s),t.bq(t.l().visibleResult(),u,r),t.clearPendingChanges(),g.b();t.r()&&t.br(r,u);t.r(!1);t.n(!1);t.q(!1);h=!1;!t.a9||t.m()||t.s()||(h=!0);var f=null,o=null,e=0;f=t.a4(t.columnAxis(),t.m(),e);t.m(!1);f!=null&&e++;o=t.a4(t.rowAxis(),t.s(),e);t.s(!1);o!=null&&(o.axisIndex(e),e++);var c,et=function(){var n=t.ba(r,u,h,c);return c=n.axisPositionsMap,n.ret}(),yt=t.a8(t.u(),t.w(),t.v(),t.mdxSettings()),l=yt.createAxis(e),a=new n.ig.MdxQueryBuilder(1,t.mdxSettings()),v=t.getProviderDefaultProperties(),y=t.getProviderDefaultRestrictions(),p=t.dataProviderFactory().createDataProvider();return h&&!k&&(ut||ft)?(i=null,f!=null&&(nt=et.where$1(n.ig.IMdxAxis.prototype.$type,function(n){return n.axisIndex()==f.axisIndex()}).firstOrDefault$1(n.ig.IMdxAxis.prototype.$type),function(){var n=c.tryGetValue("Axis0",tt);return tt=n.value,n.ret}(),nt!=null&&(ot=a.c(nt,o,l,new n.ig.MdxCalculatedMembersCache,t.cube().name()),i=p.executeStatementAsync(ot,v,y),i=i.continueWithTask$2(n.ig.OlapResult.prototype.$type,n.ig.OlapResult.prototype.$type,function(i){var s,e,f,h,c,o;for(t.l()==null&&t.l(new n.ig.OlapResultView(t.result(),t.result(),r,u)),s=t.l(),t.l(t.l().extend(i.m(),"Axis0")),t.result(t.l().visibleResult()),t.bp(t.result()),n.ig.ResultViewHelper.prototype.f("Axis0",s,t.l()),e=tt.getEnumerator();e.moveNext();)f=e.current(),n.ig.ResultViewHelper.prototype.e(f.c(),f.b(),f.a(),!0,t.l());return h=u,c=r,t.bq(t.l().visibleResult(),h,c),o=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),o.e(t.l().visibleResult()),o.b()}))),o!=null&&(w=et.where$1(n.ig.IMdxAxis.prototype.$type,function(n){return n.axisIndex()==o.axisIndex()}).firstOrDefault$1(n.ig.IMdxAxis.prototype.$type),b=t.l().hasColumns()?"Axis1":"Axis0",function(){var n=c.tryGetValue(b,it);return it=n.value,n.ret}(),w!=null&&(i!=null?i=i.continueWithTask$1(n.ig.OlapResult.prototype.$type,function(){f=t.a4(t.columnAxis(),!1,0);var i=a.c(f,w,l,new n.ig.MdxCalculatedMembersCache,t.cube().name());return p.executeStatementAsync(i,v,y)}):(st=a.c(f,w,l,new n.ig.MdxCalculatedMembersCache,t.cube().name()),i=p.executeStatementAsync(st,v,y)),i=i.continueWithTask$2(n.ig.OlapResult.prototype.$type,n.ig.OlapResult.prototype.$type,function(i){var s,e,f,h,c,o;for(t.l()==null&&t.l(new n.ig.OlapResultView(t.result(),t.result(),r,u)),s=t.l(),t.l(t.l().extend(i.m(),b)),t.result(t.l().visibleResult()),t.bp(t.result()),n.ig.ResultViewHelper.prototype.f(b,s,t.l()),e=it.getEnumerator();e.moveNext();)f=e.current(),n.ig.ResultViewHelper.prototype.e(f.c(),f.b(),f.a(),!0,t.l());return h=u,c=r,t.bq(t.l().visibleResult(),h,c),o=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),o.e(t.l().visibleResult()),o.b()}))),i!=null)?i:(rt=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),rt.e(t.result()),rt.b()):(k&&t.af.clear(),e=0,f=t.a4(t.columnAxis(),t.m(),e),f!=null&&e++,o=t.a4(t.rowAxis(),t.s(),e),ht=a.c(f,o,l,new n.ig.MdxCalculatedMembersCache,t.cube().name()),p.executeStatementAsync(ht,v,y).j(n.ig.OlapResult.prototype.$type,function(i){t.l(new n.ig.OlapResultView(i.m(),i.m(),r,u));t.result(t.l().visibleResult());t.bp(t.result());var f=u,e=r;return t.bq(t.l().visibleResult(),f,e),t.clearPendingChanges(),t.result()}))},an:function(t){if(this.catalog()==null)throw new n.ig.InvalidOperationException(1,"Data source has no Catalog set.");return n.ig.OlapDataSource.prototype.an.call(this,t)},ao:function(t){if(this.catalog()==null)throw new n.ig.InvalidOperationException(1,"Data source has no Catalog set.");return n.ig.OlapDataSource.prototype.ao.call(this,t)},ah:function(){var r=this,i=new n.ig.List$1(n.ig.Task.prototype.$type,0),u=r.getProviderDefaultProperties(),f=r.getProviderDefaultRestrictions(),e=r.dataProviderFactory().createDataProvider(),o,s,t;return i.add(e.discoverMeasuresAsync(u,f)),i.add(e.discoverKpisAsync(u,f)),i.add(e.discoverDimensionsAsync(u,f)),i.add(e.discoverHierarchiesAsync(u,f)),i.add(e.discoverLevelsAsync(u,f)),i.add(e.discoverMeasureGroupDimensionsAsync(u,f)),i.add(r.ar()),o=new Array(i.count()),i.copyTo(o,0),s=new n.ig.TaskFactory,t=new n.ig.CubeMetaItemsCache,r.c(t),s.c(o,function(i){var u=i[0],f=i[1],e=i[2],o=i[3],s=i[4],h=i[5];t.y(u.m());t.t(e.m());t.u(o.m());t.x(s.m());t.v(f.m());r.measureGroups()!=null&&(t.z(h.m()),t.a(new n.ig.MeasureGroupMetaItemsCache(t.t(),t.y(),t.v(),t.z())))})},a1:function(t,i){for(var r=new n.ig.ArrayListCollection$1(t),u=i.getEnumerator(),f;u.moveNext();)f=u.current(),r.add(f);return r},getProviderDefaultRestrictions:function(){var t=this,i=n.ig.OlapDataSource.prototype.getProviderDefaultRestrictions.call(t);return t.catalog()!=null&&(i.add(function(){var i=new n.ig.KeyValueItem;return i.a(n.ig.CubeRestrictions.prototype.a),i.b(t.catalog().name()),i}()),t.cube()!=null&&i.add(function(){var i=new n.ig.KeyValueItem;return i.a(n.ig.CubeRestrictions.prototype.b),i.b(t.cube().name()),i}())),i},bi:function(t,i){if(this.m(!0),this.bt(0,this.columnAxis(),this.rowAxis()),this.ay(i,this.u()),this.a0(i,this.columnAxis()),i.action()!=n.ig.NotifyCollectionChangedAction.prototype.reset&&this.columnAxis()!=null){var r=Math.max(i.newStartingIndex(),i.oldStartingIndex());this.bs("Axis0",r)}},bn:function(t,i){if(this.s(!0),this.bt(1,this.rowAxis(),this.columnAxis()),this.ay(i,this.w()),this.a0(i,this.rowAxis()),i.action()!=n.ig.NotifyCollectionChangedAction.prototype.reset&&this.rowAxis()!=null){var r=this.columnAxis()==null?"Axis0":"Axis1",u=Math.max(i.newStartingIndex(),i.oldStartingIndex());this.bs(r,u)}},bs:function(n,t){for(var e,u,i,o,f=this.ad(),r=f.count()-1;r>=0;r--)e=f.item(r),e.c()==n&&e.a()>=t&&f.removeAt(r);for(u=this.ae(),i=u.count()-1;i>=0;i--)o=u.item(i),o.c()==n&&o.a()>=t&&u.removeAt(i)},bt:function(n,t,i){t.count()>0?i.count()>0?this.bb.count()<2&&this.bb.insert(n,null):this.bb.count()==0&&this.bb.insert(0,null):this.bb.count()>0&&(this.bb.count()>1?this.bb.removeAt(n):this.bb.removeAt(0))},bk:function(n,t){this.n(!0);this.ay(t,this.v())},bl:function(){this.r(!0);this.az()},bj:function(t,i,r){for(var o=this,f=null,e=t.getEnumerator(),u;e.moveNext();)if(u=e.current(),u.a()==i){f=u;break}f==null&&t.add(function(){var t=new n.ig.KeyValueItem;return t.a(i),t.b(r),t}())},a2:function(t){var i=this;return i.result()!=null&&i.result().axes().count()>0?i.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).firstOrDefault$1(n.ig.OlapResultAxis.prototype.$type):null},a6:function(n){return n<this.bb.count()?this.bb.item(n):null},bo:function(n,t){this.bb.item(n,t)},$type:new n.ig.Type("MdxDataSourceImpl",n.ig.OlapDataSource.prototype.$type)},!0);n.ig.util.defType("MdxDataSourceOptions","DataSourceBaseOptions",{init:function(){n.ig.DataSourceBaseOptions.prototype.init.call(this)},_catalog:null,catalog:function(n){return arguments.length===1?(this._catalog=n,n):this._catalog},_discoverProperties:null,discoverProperties:function(n){return arguments.length===1?(this._discoverProperties=n,n):this._discoverProperties},_executeProperties:null,executeProperties:function(n){return arguments.length===1?(this._executeProperties=n,n):this._executeProperties},_dataProviderFactory:null,dataProviderFactory:function(n){return arguments.length===1?(this._dataProviderFactory=n,n):this._dataProviderFactory},_enableResultCache:!1,enableResultCache:function(n){return arguments.length===1?(this._enableResultCache=n,n):this._enableResultCache},_mdxSettings:null,mdxSettings:function(n){return arguments.length===1?(this._mdxSettings=n,n):this._mdxSettings},$type:new n.ig.Type("MdxDataSourceOptions",n.ig.DataSourceBaseOptions.prototype.$type)},!0);n.ig.util.defType("XmlaDataProvider","Object",{a:null,b:null,init:function(t,i){n.ig.Object.prototype.init.call(this);this.a=t;this.b=i},discoverCatalogsAsync:function(t,i){return this.c(n.ig.Catalog.prototype.$type,new n.ig.DatabaseXmlTypeSerializer,n.ig.DbSchemaConstants.prototype.a,t,i)},discoverCubesAsync:function(t,i){return this.c(n.ig.Cube.prototype.$type,new n.ig.CubeXmlTypeSerializer,n.ig.OlapSchemaConstants.prototype.a,t,i)},discoverDimensionsAsync:function(t,i){return this.c(n.ig.Dimension.prototype.$type,new n.ig.DimensionXmlTypeSerializer,n.ig.OlapSchemaConstants.prototype.b,t,i)},discoverHierarchiesAsync:function(t,i){return this.c(n.ig.Hierarchy.prototype.$type,new n.ig.HierarchyXmlTypeSerializer,n.ig.OlapSchemaConstants.prototype.c,t,i)},discoverLevelsAsync:function(t,i){return this.c(n.ig.Level.prototype.$type,new n.ig.LevelXmlTypeSerializer,n.ig.OlapSchemaConstants.prototype.e,t,i)},discoverMeasuresAsync:function(t,i){return this.c(n.ig.Measure.prototype.$type,new n.ig.MeasureXmlTypeSerializer,n.ig.OlapSchemaConstants.prototype.h,t,i)},discoverMeasureGroupsAsync:function(t,i){return this.c(n.ig.MeasureGroup.prototype.$type,new n.ig.MeasureGroupXmlTypeSerializer,n.ig.OlapSchemaConstants.prototype.g,t,i)},discoverMeasureGroupDimensionsAsync:function(t,i){return this.c(n.ig.MeasureGroupDimension.prototype.$type,new n.ig.MeasureGroupDimensionXmlTypeSerializer,n.ig.OlapSchemaConstants.prototype.f,t,i)},discoverMembersAsync:function(t,i){return this.c(n.ig.Member.prototype.$type,new n.ig.MemberXmlTypeSerializer,n.ig.OlapSchemaConstants.prototype.i,t,i)},discoverKpisAsync:function(t,i){return this.c(n.ig.Kpi.prototype.$type,new n.ig.KpiXmlTypeSerializer,n.ig.OlapSchemaConstants.prototype.d,t,i)},executeStatementAsync:function(t,i,r){var u=this,o=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),f=u.a.getXmlaSoapWebClient$1(n.ig.ExecuteResponseResult.prototype.$type),s=new n.ig.ResultXmlTypeSerializer,e;return f.requestCompleted=n.ig.Delegate.prototype.combine(f.requestCompleted,function(t,i){return u.e(n.ig.OlapResult.prototype.$type,s,i,o)}),e=new n.ig.XmlaSoapMethodExecute(t),u.g(e,i,r),f.j(e),o.b()},c:function(t,i,r,u,f){var e=this,h=new n.ig.TaskCompletionSource$1(n.ig.IEnumerable$1.prototype.$type.specialize(t),0),o=e.a.getXmlaSoapWebClient$1(n.ig.DiscoverResponseResult.prototype.$type),s;return o.requestCompleted=n.ig.Delegate.prototype.combine(o.requestCompleted,function(n,r){return e.d(t,i,r,h)}),s=new n.ig.XmlaSoapMethodDiscover(r),e.f(s,u,f),o.j(s),h.b()},f:function(t,i,r){var u,f,e,o;if(r!=null)for(u=r.getEnumerator();u.moveNext();)f=u.current(),t.l().add(f.a(),f.b());if(i!=null)for(e=i.getEnumerator();e.moveNext();)o=e.current(),t.properties().add(new n.ig.XmlaQueryProperty(1,o.a(),o.b()));this.b!=null&&this.b(t)},g:function(t,i,r){var u,o,f,e;if(r!=null)for(u=r.getEnumerator();u.moveNext();)o=u.current();if(i!=null)for(f=i.getEnumerator();f.moveNext();)e=f.current(),t.properties().add(new n.ig.XmlaQueryProperty(1,e.a(),e.b()));this.b!=null&&this.b(t)},d:function(t,i,r,u){var f,e,o;r.error()!=null?u.d(r.error()):r.cancelled()?u.c():(f=r.result(),f!=null&&(e=new n.ig.ArraySerializer,o=e.a(t,r.result().returnElement(),n.ig.XName.prototype.e("row",n.ig.XmlaNamespace.prototype.e),i),u.e(o)))},e:function(n,t,i,r){var u,f;i.error()!=null?r.d(i.error()):i.cancelled()?r.c():(u=i.result(),u!=null&&(f=t.deserialize(i.result().returnElement()),r.e(f)))},$type:new n.ig.Type("XmlaDataProvider",n.ig.Object.prototype.$type,[n.ig.IXmlaDataProvider.prototype.$type])},!0);n.ig.util.defType("CatalogConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("CatalogConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DbSchemaConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("DbSchemaConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("CubeConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("CubeConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DimensionConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("DimensionConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("HierarchyConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("HierarchyConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("InstanceConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("InstanceConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("KpiConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("KpiConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("LevelConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("LevelConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasureConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("MeasureConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasureGroupConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("MeasureGroupConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasureGroupDimensionConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("MeasureGroupDimensionConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MemberConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("MemberConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapSchemaConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("OlapSchemaConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("CubeRestrictions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("CubeRestrictions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DimensionRestrictions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("DimensionRestrictions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("HierarchyRestrictions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("HierarchyRestrictions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("KpiRestrictions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("KpiRestrictions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("LevelRestrictions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("LevelRestrictions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasureRestrictions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("MeasureRestrictions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasureGroupRestrictions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("MeasureGroupRestrictions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasureGroupDimensionRestrictions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("MeasureGroupDimensionRestrictions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MemberRestrictions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("MemberRestrictions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ICoreXmlaConnection","Object",{$type:new n.ig.Type("ICoreXmlaConnection",null,[n.ig.IConnection.prototype.$type])},!0);n.ig.util.defType("ArraySerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},a:function(t,i,r,u){for(var f=new n.ig.List$1(t,0),e=i.e(r).getEnumerator(),o;e.moveNext();)o=e.current(),f.add(u.deserialize(o));return f},$type:new n.ig.Type("ArraySerializer",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("IXmlTypeSerializer$1","Object",{$type:new n.ig.Type("IXmlTypeSerializer$1",null)},!0);n.ig.util.defType("AxisXmlTypeSerializer","Object",{init:function(){(n.ig.Object.prototype.init.call(this),n.ig.AxisXmlTypeSerializer.prototype.a==null)&&(n.ig.AxisXmlTypeSerializer.prototype.a=new n.ig.Dictionary$2(String,n.ig.XName.prototype.$type,0),n.ig.AxisXmlTypeSerializer.prototype.a.item("0",n.ig.XName.prototype.e("Tuple",n.ig.XmlaNamespace.prototype.d)),n.ig.AxisXmlTypeSerializer.prototype.a.item("1",n.ig.XName.prototype.e("Tuples",n.ig.XmlaNamespace.prototype.d)))},deserialize:function(t){var s=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var r=t,f=n.ig.SerializerUtils.prototype.e(r.k(n.ig.XName.prototype.e("name",""))),e=r.h(n.ig.AxisXmlTypeSerializer.prototype.a.item("1")),o=new n.ig.ArraySerializer,i=o.a(n.ig.OlapResultTuple.prototype.$type,e,n.ig.AxisXmlTypeSerializer.prototype.a.item("0"),new n.ig.TupleXmlTypeSerializer),u=0;return i.count()>0&&(u=i.__inner[0].members().count()),function(){var t=new n.ig.OlapResultAxis(i,u);return t.name(f),t}()},$type:new n.ig.Type("AxisXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.OlapResultAxis.prototype.$type)])},!0);n.ig.util.defType("TupleXmlTypeSerializer","Object",{init:function(){(n.ig.Object.prototype.init.call(this),n.ig.TupleXmlTypeSerializer.prototype.a==null)&&(n.ig.TupleXmlTypeSerializer.prototype.a=new n.ig.Dictionary$2(String,n.ig.XName.prototype.$type,0),n.ig.TupleXmlTypeSerializer.prototype.a.item("0",n.ig.XName.prototype.e("Member",n.ig.XmlaNamespace.prototype.d)))},deserialize:function(t){var f;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;for(var e=t,o=new n.ig.ArraySerializer,i=o.a(n.ig.OlapResultAxisMember.prototype.$type,e,n.ig.TupleXmlTypeSerializer.prototype.a.item("0"),new n.ig.AxisMemberXmlTypeSerializer),r=new n.ig.OlapResultTuple(i),u=i.getEnumerator();u.moveNext();)f=u.current(),f.position(r);return r},$type:new n.ig.Type("TupleXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.OlapResultTuple.prototype.$type)])},!0);n.ig.util.defType("AxisMemberXmlTypeSerializer","Object",{init:function(){(n.ig.Object.prototype.init.call(this),n.ig.AxisMemberXmlTypeSerializer.prototype.a==null)&&(n.ig.AxisMemberXmlTypeSerializer.prototype.a=new n.ig.Dictionary$2(String,n.ig.XName.prototype.$type,0),n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("0",n.ig.XName.prototype.e("UName",n.ig.XmlaNamespace.prototype.d)),n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("1",n.ig.XName.prototype.e("LName",n.ig.XmlaNamespace.prototype.d)),n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("2",n.ig.XName.prototype.e("Caption",n.ig.XmlaNamespace.prototype.d)),n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("3",n.ig.XName.prototype.e("LNum",n.ig.XmlaNamespace.prototype.d)),n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("4",n.ig.XName.prototype.e("DisplayInfo",n.ig.XmlaNamespace.prototype.d)))},deserialize:function(t){var a=this,r;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;for(var i=t,o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("0"))),s=n.ig.SerializerUtils.prototype.f(i.h(n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("1"))),h=n.ig.SerializerUtils.prototype.f(i.h(n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("2"))),c=n.ig.SerializerUtils.prototype.f(i.h(n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("3"))),u=n.ig.SerializerUtils.prototype.f(i.h(n.ig.AxisMemberXmlTypeSerializer.prototype.a.item("4"))),l=i.k(n.ig.XName.prototype.e("Hierarchy","")).d(),f=function(){var t=new n.ig.OlapResultAxisMember;return t.hierarchyUniqueName(l),t.levelUniqueName(s),t.levelNumber(n.ig.Number.prototype.parseInt(c)),t.uniqueName(o),t.caption(h),t.displayInfo(String.isNullOrEmpty(u)?0:n.ig.Number.prototype.parseInt(u)),t}(),e=i.d().getEnumerator();e.moveNext();){r=e.current();switch(r.l().c()){case"UName":case"LName":case"Caption":case"LNum":case"DisplayInfo":continue;default:f.properties().add(r.l().c(),r.i())}}return f},$type:new n.ig.Type("AxisMemberXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.OlapResultAxisMember.prototype.$type)])},!0);n.ig.util.defType("CellXmlTypeSerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},deserialize:function(t){var o=this,i;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;for(var r=t,e=r.k(n.ig.XName.prototype.e("CellOrdinal","")).d(),u=function(){var t=new n.ig.OlapResultCell;return t.cellOrdinal(n.ig.Number.prototype.parseInt(e)),t}(),f=r.d().getEnumerator();f.moveNext();)i=f.current(),u.properties().add(i.l().c(),i.i());return u},$type:new n.ig.Type("CellXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.OlapResultCell.prototype.$type)])},!0);n.ig.util.defType("CubeXmlTypeSerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},deserialize:function(t){var l=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var i=t,u=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.CubeConstants.prototype.e,n.ig.XmlaNamespace.prototype.e))),f=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.CubeConstants.prototype.d,n.ig.XmlaNamespace.prototype.e))),e=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.CubeConstants.prototype.g,n.ig.XmlaNamespace.prototype.e))),r,o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.CubeConstants.prototype.f,n.ig.XmlaNamespace.prototype.e)));switch(o){case n.ig.XmlaConstants.prototype.d:r=n.ig.CubeType.prototype.cube;break;case n.ig.XmlaConstants.prototype.k:r=n.ig.CubeType.prototype.dimension;break;default:r=n.ig.CubeType.prototype.unknown}var s=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.CubeConstants.prototype.c,n.ig.XmlaNamespace.prototype.e))),h=n.ig.SerializerUtils.prototype.b(i.h(n.ig.XName.prototype.e(n.ig.CubeConstants.prototype.l,n.ig.XmlaNamespace.prototype.e))),c=n.ig.SerializerUtils.prototype.b(i.h(n.ig.XName.prototype.e(n.ig.CubeConstants.prototype.m,n.ig.XmlaNamespace.prototype.e)));return function(){var t=new n.ig.Cube;return t.name(u),t.caption(f),t.description(e),t.cubeType(r),t.catalogName(s),t.lastProcessed(h),t.lastUpdated(c),t}()},$type:new n.ig.Type("CubeXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.Cube.prototype.$type)])},!0);n.ig.util.defType("DatabaseXmlTypeSerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},deserialize:function(t){var f=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var r=t,i=n.ig.SerializerUtils.prototype.f(r.h(n.ig.XName.prototype.e(n.ig.CatalogConstants.prototype.a,n.ig.XmlaNamespace.prototype.e))),u=n.ig.SerializerUtils.prototype.f(r.h(n.ig.XName.prototype.e(n.ig.CatalogConstants.prototype.c,n.ig.XmlaNamespace.prototype.e)));return function(){var t=new n.ig.Catalog;return t.name(i),t.caption(i),t.uniqueName(i),t.description(u),t}()},$type:new n.ig.Type("DatabaseXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.Catalog.prototype.$type)])},!0);n.ig.util.defType("DimensionXmlTypeSerializer","Object",{init:function(){(n.ig.Object.prototype.init.call(this),n.ig.DimensionXmlTypeSerializer.prototype.a==null)&&(n.ig.DimensionXmlTypeSerializer.prototype.a=new n.ig.Dictionary$2(String,n.ig.XName.prototype.$type,0),n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.i,n.ig.XName.prototype.e(n.ig.DimensionConstants.prototype.i,n.ig.XmlaNamespace.prototype.e)),n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.l,n.ig.XName.prototype.e(n.ig.DimensionConstants.prototype.l,n.ig.XmlaNamespace.prototype.e)),n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.e,n.ig.XName.prototype.e(n.ig.DimensionConstants.prototype.e,n.ig.XmlaNamespace.prototype.e)),n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.d,n.ig.XName.prototype.e(n.ig.DimensionConstants.prototype.d,n.ig.XmlaNamespace.prototype.e)),n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.k,n.ig.XName.prototype.e(n.ig.DimensionConstants.prototype.k,n.ig.XmlaNamespace.prototype.e)),n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.c,n.ig.XName.prototype.e(n.ig.DimensionConstants.prototype.c,n.ig.XmlaNamespace.prototype.e)))},deserialize:function(t){var c=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var i=t,r=n.ig.SerializerUtils.prototype.f(i.h(n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.i))),u=n.ig.SerializerUtils.prototype.f(i.h(n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.l))),f=n.ig.SerializerUtils.prototype.f(i.h(n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.e))),e=n.ig.SerializerUtils.prototype.f(i.h(n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.d))),o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.k))),s=n.ig.Number.prototype.parseInt(o),h=n.ig.SerializerUtils.prototype.f(i.h(n.ig.DimensionXmlTypeSerializer.prototype.a.item(n.ig.DimensionConstants.prototype.c)));return function(){var t=new n.ig.Dimension;return t.name(r),t.uniqueName(u),t.caption(f),t.description(e),t.dimensionType(s),t.defaultHierarchy(h),t}()},$type:new n.ig.Type("DimensionXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.Dimension.prototype.$type)])},!0);n.ig.util.defType("FaultError","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_errorCode:null,errorCode:function(n){return arguments.length===1?(this._errorCode=n,n):this._errorCode},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_source:null,source:function(n){return arguments.length===1?(this._source=n,n):this._source},_helpFile:null,helpFile:function(n){return arguments.length===1?(this._helpFile=n,n):this._helpFile},_severity:null,severity:function(n){return arguments.length===1?(this._severity=n,n):this._severity},$type:new n.ig.Type("FaultError",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ErrorXmlTypeSerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},deserialize:function(t){var i=new n.ig.FaultError,r=t;return i.errorCode(n.ig.SerializerUtils.prototype.e(r.k(n.ig.XName.prototype.e("ErrorCode","")))),i.description(n.ig.SerializerUtils.prototype.e(r.k(n.ig.XName.prototype.e("Description","")))),i.source(n.ig.SerializerUtils.prototype.e(r.k(n.ig.XName.prototype.e("Source","")))),i.helpFile(n.ig.SerializerUtils.prototype.e(r.k(n.ig.XName.prototype.e("HelpFile","")))),i.severity(n.ig.SerializerUtils.prototype.e(r.k(n.ig.XName.prototype.e("Severity","")))),i},$type:new n.ig.Type("ErrorXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.FaultError.prototype.$type)])},!0);n.ig.util.defType("HierarchyXmlTypeSerializer","Object",{init:function(){(n.ig.Object.prototype.init.call(this),n.ig.HierarchyXmlTypeSerializer.prototype.a==null)&&(n.ig.HierarchyXmlTypeSerializer.prototype.a=new n.ig.Dictionary$2(String,n.ig.XName.prototype.$type,0),n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.q,n.ig.XName.prototype.e(n.ig.HierarchyConstants.prototype.q,n.ig.XmlaNamespace.prototype.e)),n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.t,n.ig.XName.prototype.e(n.ig.HierarchyConstants.prototype.t,n.ig.XmlaNamespace.prototype.e)),n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.m,n.ig.XName.prototype.e(n.ig.HierarchyConstants.prototype.m,n.ig.XmlaNamespace.prototype.e)),n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.e,n.ig.XName.prototype.e(n.ig.HierarchyConstants.prototype.e,n.ig.XmlaNamespace.prototype.e)),n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.d,n.ig.XName.prototype.e(n.ig.HierarchyConstants.prototype.d,n.ig.XmlaNamespace.prototype.e)),n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.a,n.ig.XName.prototype.e(n.ig.HierarchyConstants.prototype.a,n.ig.XmlaNamespace.prototype.e)),n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.j,n.ig.XName.prototype.e(n.ig.HierarchyConstants.prototype.j,n.ig.XmlaNamespace.prototype.e)),n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.o,n.ig.XName.prototype.e(n.ig.HierarchyConstants.prototype.o,n.ig.XmlaNamespace.prototype.e)),n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.s,n.ig.XName.prototype.e(n.ig.HierarchyConstants.prototype.s,n.ig.XmlaNamespace.prototype.e)))},deserialize:function(t){var v=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var i=t,u=n.ig.SerializerUtils.prototype.f(i.h(n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.q))),f=n.ig.SerializerUtils.prototype.f(i.h(n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.t))),e=n.ig.SerializerUtils.prototype.f(i.h(n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.m))),o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.e))),s=n.ig.SerializerUtils.prototype.f(i.h(n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.d))),h=n.ig.SerializerUtils.prototype.f(i.h(n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.a))),c=n.ig.SerializerUtils.prototype.f(i.h(n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.j))),l=n.ig.SerializerUtils.prototype.f(i.h(n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.o))),r=n.ig.SerializerUtils.prototype.f(i.h(n.ig.HierarchyXmlTypeSerializer.prototype.a.item(n.ig.HierarchyConstants.prototype.s))),a=r==null?1:n.ig.Number.prototype.parseInt(r);return function(){var t=new n.ig.Hierarchy;return t.name(u),t.uniqueName(f),t.caption(e),t.description(o),t.defaultMember(s),t.allMember(h),t.dimensionUniqueName(c),t.hierarchyDisplayFolder(l),t.hierarchyOrigin(a),t}()},$type:new n.ig.Type("HierarchyXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.Hierarchy.prototype.$type)])},!0);n.ig.util.defType("KpiXmlTypeSerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},deserialize:function(t){var k=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var i=t,r=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.h,n.ig.XmlaNamespace.prototype.e))),u=r,f=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.c,n.ig.XmlaNamespace.prototype.e))),e=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.e,n.ig.XmlaNamespace.prototype.e))),o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.p,n.ig.XmlaNamespace.prototype.e))),s=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.f,n.ig.XmlaNamespace.prototype.e))),h=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.n,n.ig.XmlaNamespace.prototype.e))),c=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.g,n.ig.XmlaNamespace.prototype.e))),l=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.j,n.ig.XmlaNamespace.prototype.e))),a=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.l,n.ig.XmlaNamespace.prototype.e))),v=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.o,n.ig.XmlaNamespace.prototype.e))),y=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.k,n.ig.XmlaNamespace.prototype.e))),p=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.m,n.ig.XmlaNamespace.prototype.e))),w=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.i,n.ig.XmlaNamespace.prototype.e))),b=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.KpiConstants.prototype.d,n.ig.XmlaNamespace.prototype.e)));return function(){var t=new n.ig.Kpi;return t.name(r),t.uniqueName(u),t.caption(f),t.description(e),t.measureGroupName(o),t.kpiDisplayFolder(s),t.kpiValue(h),t.kpiGoal(c),t.kpiStatus(l),t.kpiTrend(a),t.kpiStatusGraphic(y),t.kpiTrendGraphic(p),t.kpiWeight(v),t.parentKpiName(w),t.currentTimeMember(b),t}()},$type:new n.ig.Type("KpiXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.Kpi.prototype.$type)])},!0);n.ig.util.defType("LevelXmlTypeSerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},deserialize:function(t){var v=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var i=t,u=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.l,n.ig.XmlaNamespace.prototype.e))),f=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.q,n.ig.XmlaNamespace.prototype.e))),e=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.g,n.ig.XmlaNamespace.prototype.e))),o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.d,n.ig.XmlaNamespace.prototype.e))),s=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.e,n.ig.XmlaNamespace.prototype.e))),h=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.f,n.ig.XmlaNamespace.prototype.e))),c=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.m,n.ig.XmlaNamespace.prototype.e))),l=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.h,n.ig.XmlaNamespace.prototype.e))),r=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.o,n.ig.XmlaNamespace.prototype.e))),a=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.LevelConstants.prototype.n,n.ig.XmlaNamespace.prototype.e)));return function(){var t=new n.ig.Level;return t.name(u),t.uniqueName(f),t.caption(e),t.description(o),t.dimensionUniqueName(s),t.hierarchyUniqueName(h),t.depth(n.ig.Number.prototype.parseInt(c)),t.membersCount(n.ig.Number.prototype.parseInt(l)),t.levelOrigin(String.isNullOrEmpty(r)?0:n.ig.Number.prototype.parseInt(r)),t.levelOrderingProperty(a),t}()},$type:new n.ig.Type("LevelXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.Level.prototype.$type)])},!0);n.ig.util.defType("MeasureGroupDimensionXmlTypeSerializer","Object",{init:function(){(n.ig.Object.prototype.init.call(this),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a==null)&&(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a=new n.ig.Dictionary$2(String,n.ig.XName.prototype.$type,0),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.a,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.a,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.b,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.b,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.j,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.j,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.h,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.h,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.i,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.i,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.c,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.c,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.f,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.f,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.e,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.e,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.g,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.g,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.d,n.ig.XName.prototype.e(n.ig.MeasureGroupDimensionConstants.prototype.d,n.ig.XmlaNamespace.prototype.e)))},deserialize:function(t){var p=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var i=t,r=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.a))),u=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.b))),f=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.j))),e=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.h))),o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.i))),s=o=="ONE"?n.ig.CardinalityType.prototype.one:n.ig.CardinalityType.prototype.many,h=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.c))),c=h=="ONE"?n.ig.CardinalityType.prototype.one:n.ig.CardinalityType.prototype.many,l=n.ig.SerializerUtils.prototype.a(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.f))),a=n.ig.SerializerUtils.prototype.a(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.e))),v=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.g))),y=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupDimensionConstants.prototype.d)));return function(){var t=new n.ig.MeasureGroupDimension;return t.catalogName(r),t.cubeName(u),t.measureGroupName(f),t.dimensionUniqueName(e),t.measureGroupCardinality(s),t.dimensionCardinality(c),t.isDimensionVisible(l),t.isFactDimension(a),t.dimensionPath(v),t.dimensionGranularity(y),t}()},$type:new n.ig.Type("MeasureGroupDimensionXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.MeasureGroupDimension.prototype.$type)])},!0);n.ig.util.defType("MeasureGroupXmlTypeSerializer","Object",{init:function(){(n.ig.Object.prototype.init.call(this),n.ig.MeasureGroupXmlTypeSerializer.prototype.a==null)&&(n.ig.MeasureGroupXmlTypeSerializer.prototype.a=new n.ig.Dictionary$2(String,n.ig.XName.prototype.$type,0),n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.a,n.ig.XName.prototype.e(n.ig.MeasureGroupConstants.prototype.a,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.b,n.ig.XName.prototype.e(n.ig.MeasureGroupConstants.prototype.b,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.e,n.ig.XName.prototype.e(n.ig.MeasureGroupConstants.prototype.e,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.d,n.ig.XName.prototype.e(n.ig.MeasureGroupConstants.prototype.d,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.c,n.ig.XName.prototype.e(n.ig.MeasureGroupConstants.prototype.c,n.ig.XmlaNamespace.prototype.e)))},deserialize:function(t){var s=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var i=t,r=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.a))),u=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.b))),f=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.e))),e=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.d))),o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureGroupXmlTypeSerializer.prototype.a.item(n.ig.MeasureGroupConstants.prototype.c)));return function(){var t=new n.ig.MeasureGroup;return t.catalogName(r),t.cubeName(u),t.name(f),t.caption(e),t.description(o),t}()},$type:new n.ig.Type("MeasureGroupXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.MeasureGroup.prototype.$type)])},!0);n.ig.util.defType("MeasureXmlTypeSerializer","Object",{init:function(){(n.ig.Object.prototype.init.call(this),n.ig.MeasureXmlTypeSerializer.prototype.a==null)&&(n.ig.MeasureXmlTypeSerializer.prototype.a=new n.ig.Dictionary$2(String,n.ig.XName.prototype.$type,0),n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.l,n.ig.XName.prototype.e(n.ig.MeasureConstants.prototype.l,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.n,n.ig.XName.prototype.e(n.ig.MeasureConstants.prototype.n,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.h,n.ig.XName.prototype.e(n.ig.MeasureConstants.prototype.h,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.e,n.ig.XName.prototype.e(n.ig.MeasureConstants.prototype.e,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.d,n.ig.XName.prototype.e(n.ig.MeasureConstants.prototype.d,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.j,n.ig.XName.prototype.e(n.ig.MeasureConstants.prototype.j,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.g,n.ig.XName.prototype.e(n.ig.MeasureConstants.prototype.g,n.ig.XmlaNamespace.prototype.e)),n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.i,n.ig.XName.prototype.e(n.ig.MeasureConstants.prototype.i,n.ig.XmlaNamespace.prototype.e)))},deserialize:function(t){var a=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var i=t,r=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.l))),u=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.n))),f=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.h))),e=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.e))),o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.d))),s=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.j))),h=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.g))),c=n.ig.Number.prototype.parseInt(h),l=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MeasureXmlTypeSerializer.prototype.a.item(n.ig.MeasureConstants.prototype.i)));return function(){var t=new n.ig.Measure;return t.name(r),t.uniqueName(u),t.caption(f),t.description(e),t.defaultFormatString(o),t.measureGroupName(s),t.aggregatorType(c),t.measureDisplayFolder(l),t}()},$type:new n.ig.Type("MeasureXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.Measure.prototype.$type)])},!0);n.ig.util.defType("MemberXmlTypeSerializer","Object",{init:function(){(n.ig.Object.prototype.init.call(this),n.ig.MemberXmlTypeSerializer.prototype.a==null)&&(n.ig.MemberXmlTypeSerializer.prototype.a=new n.ig.Dictionary$2(String,n.ig.XName.prototype.$type,0),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.a,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.a,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.c,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.c,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.o,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.o,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.q,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.q,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.p,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.p,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.e,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.e,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.g,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.g,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.k,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.k,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.l,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.l,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.d,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.d,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.j,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.j,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.b,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.b,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.t,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.t,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.v,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.v,n.ig.XmlaNamespace.prototype.e)),n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.s,n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.s,n.ig.XmlaNamespace.prototype.e)))},deserialize:function(t){var d=this;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;var i=t,f=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.a))),e=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.c))),o=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.o))),s=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.q))),h=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.p))),c=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.e))),l=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.g))),a=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.k))),v=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.l))),y=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.d))),p=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.j))),w=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.b))),b=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.t))),r=n.ig.SerializerUtils.prototype.f(i.h(n.ig.MemberXmlTypeSerializer.prototype.a.item(n.ig.MemberConstants.prototype.v))),u=n.ig.SerializerUtils.prototype.f(i.h(n.ig.XName.prototype.e(n.ig.MemberConstants.prototype.s,n.ig.XmlaNamespace.prototype.e))),k=n.ig.util.toNullable(n.ig.Number.prototype.$type,null);return function(){var t=new n.ig.Member;return t.catalogName(f),t.cubeName(e),t.dimensionUniqueName(c),t.hierarchyUniqueName(l),t.levelUniqueName(a),t.levelDepth(n.ig.Number.prototype.parseInt(p)),t.name(o),t.uniqueName(s),t.memberType(n.ig.Number.prototype.parseInt(h)),t.caption(v),t.childrenCardinality(n.ig.Number.prototype.parseInt(w)),t.description(y),t.parentUniqueName(b),t.scope(r==null?k:n.ig.Number.prototype.parseInt(r)),t.parentLevel(String.isNullOrEmpty(u)?0:n.ig.Number.prototype.parseInt(u)),t}()},$type:new n.ig.Type("MemberXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.Member.prototype.$type)])},!0);n.ig.util.defType("ResultXmlTypeSerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},deserialize:function(t){var h=this,i,r;if(t.c()!=n.ig.XmlNodeType.prototype.element)return null;i=t;r=i.l().d();switch(r){case n.ig.XmlaNamespace.prototype.b:return function(){var t=new n.ig.OlapResult;return t.isEmpty(!0),t}();case n.ig.XmlaNamespace.prototype.d:var c=i.h(n.ig.XName.prototype.e("OlapInfo",n.ig.XmlaNamespace.prototype.d)),f=i.h(n.ig.XName.prototype.e("Axes",n.ig.XmlaNamespace.prototype.d)),u=new n.ig.ArraySerializer,e=u.a(n.ig.OlapResultAxis.prototype.$type,f,n.ig.XName.prototype.e("Axis",n.ig.XmlaNamespace.prototype.d),new n.ig.AxisXmlTypeSerializer),o=i.h(n.ig.XName.prototype.e("CellData",n.ig.XmlaNamespace.prototype.d)),s=u.a(n.ig.OlapResultCell.prototype.$type,o,n.ig.XName.prototype.e("Cell",n.ig.XmlaNamespace.prototype.d),new n.ig.CellXmlTypeSerializer);return function(){var t=new n.ig.OlapResult;return t.axes(e),t.cells(s),t}()}return null},$type:new n.ig.Type("ResultXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.OlapResult.prototype.$type)])},!0);n.ig.util.defType("SerializerUtils","Object",{init:function(){n.ig.Object.prototype.init.call(this)},f:function(n){return n!=null?n.i():null},e:function(n){return n!=null?n.d():null},a:function(t){var i=n.ig.SerializerUtils.prototype.f(t).toLowerCase();return i=="true"},b:function(t){return t==null||String.isNullOrEmpty(t.i())?n.ig.SerializerUtils.prototype.c():n.ig.SerializerUtils.prototype.d(t.i())},d:function(n){var t=n;return function(n){var t=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(.*)$/.exec(n);if(!t)throw"Invalid textual date representation.";var i=parseInt(t[1],10),r=parseInt(t[2],10)-1,u=parseInt(t[3],10),f=parseInt(t[4],10),e=parseInt(t[5],10),o=parseInt(t[6],10);return new Date(i,r,u,f,e,o)}(t)},c:function(){return new Date(2e3,0,1)},$type:new n.ig.Type("SerializerUtils",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("XmlaConstants","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("XmlaConstants",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("XmlaSoapFault","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("XmlaSoapFault",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("XmlaSoapFaultXmlTypeSerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},deserialize:function(t){for(var v=this,f=t,i=new n.ig.XmlaSoapFault,e=f.d().getEnumerator(),r,u,h,c;e.moveNext();){r=e.current();switch(r.l().c()){case"faultcode":i.c(n.ig.SerializerUtils.prototype.f(r));break;case"faultstring":i.d(n.ig.SerializerUtils.prototype.f(r));break;case"faultactor":i.b(n.ig.SerializerUtils.prototype.f(r))}}if(u=f.h(n.ig.XName.prototype.e("detail","")),u!=null){for(var l=u.e(n.ig.XName.prototype.e("Error","")),o=new n.ig.List$1(n.ig.FaultError.prototype.$type,0),a=new n.ig.ErrorXmlTypeSerializer,s=l.getEnumerator();s.moveNext();)h=s.current(),c=a.deserialize(h),o.add(c);i.a(function(){var t=new n.ig.FaultDetail;return t.a(o.toArray()),t}())}return i},$type:new n.ig.Type("XmlaSoapFaultXmlTypeSerializer",n.ig.Object.prototype.$type,[n.ig.IXmlTypeSerializer$1.prototype.$type.specialize(n.ig.XmlaSoapFault.prototype.$type)])},!0);n.ig.util.defType("IXmlaMethodResult","Object",{$type:new n.ig.Type("IXmlaMethodResult",null)},!0);n.ig.util.defType("XmlaSoapMethodResult","Object",{init:function(){n.ig.Object.prototype.init.call(this)},b:null,returnElement:function(n){return arguments.length===1?(this.b=n,n):this.b},_sessionId:null,sessionId:function(n){return arguments.length===1?(this._sessionId=n,n):this._sessionId},$type:new n.ig.Type("XmlaSoapMethodResult",n.ig.Object.prototype.$type,[n.ig.IXmlaMethodResult.prototype.$type])},!0);n.ig.util.defType("DiscoverResponseResult","XmlaSoapMethodResult",{init:function(){n.ig.XmlaSoapMethodResult.prototype.init.call(this)},$type:new n.ig.Type("DiscoverResponseResult",n.ig.XmlaSoapMethodResult.prototype.$type)},!0);n.ig.util.defType("RequestCompletedEventArgs$1","AsyncCompletedEventArgs",{$t:null,i:null,init:function(t,i,r,u,f){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.AsyncCompletedEventArgs.prototype.init.call(this,r,u,f);this.i=i},result:function(){return n.ig.AsyncCompletedEventArgs.prototype.h.call(this),this.i},$type:new n.ig.Type("RequestCompletedEventArgs$1",n.ig.AsyncCompletedEventArgs.prototype.$type)},!0);n.ig.util.defType("ExecuteResponseResult","XmlaSoapMethodResult",{init:function(){n.ig.XmlaSoapMethodResult.prototype.init.call(this)},$type:new n.ig.Type("ExecuteResponseResult",n.ig.XmlaSoapMethodResult.prototype.$type)},!0);n.ig.util.defType("FaultDetail","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("FaultDetail",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("IXmlaSoapMethod","Object",{$type:new n.ig.Type("IXmlaSoapMethod",null)},!0);n.ig.util.defType("XmlaNamespace","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("XmlaNamespace",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("XmlaQueryProperty","Object",{init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.Object.prototype.init.call(this)},init1:function(t,i,r){n.ig.Object.prototype.init.call(this);this.a(i);this.c(r)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},toString:function(){return String.concat(this.a()," = ",this.c())},$type:new n.ig.Type("XmlaQueryProperty",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("XmlaPropertiesCollection","Object",{c:null,d:null,e:null,init:function(){n.ig.Object.prototype.init.call(this);this.c=new n.ig.Dictionary$2(String,n.ig.XmlaQueryProperty.prototype.$type,0);this.d=new n.ig.Dictionary$2(String,n.ig.Number.prototype.$type,0);this.e=new n.ig.List$1(n.ig.XmlaQueryProperty.prototype.$type,0)},tryGetValue:function(n,t){var i=this;return{ret:function(){var r=i.c.tryGetValue(n,t);return t=r.value,r.ret}(),value:t}},contains1:function(n){return this.c.containsKey(n)},indexOf:function(n){return this.e.indexOf(n)},insert:function(n,t){this.c.add(t.a(),t);this.e.insert(n,t)},removeAt:function(n){if(n<this.e.count()){var t=this.e.item(n);this.c.remove(t.a())&&this.e.removeAt(n)}},item:function(n,t){if(arguments.length===2){var i=this.e.item(n);return this.c.remove(i.a()),this.c.add(t.a(),t),this.e.item(n,t),t}return this.e.item(n)},add:function(n){this.c.add(n.a(),n);this.e.add(n)},clear:function(){this.e.clear();this.c.clear()},contains:function(n){return this.e.contains(n)},copyTo:function(n,t){this.e.copyTo(n,t)},count:function(){return this.e.count()},isReadOnly:function(){return this.e.isReadOnly()},remove:function(n){return this.e.remove(n)?this.c.remove(n.a()):!1},getEnumerator:function(){return this.e.getEnumerator()},isFixedSize:function(){return!1},isSynchronized:function(){return this.e.isSynchronized()},syncRoot:function(){return this.e.syncRoot()},$type:new n.ig.Type("XmlaPropertiesCollection",n.ig.Object.prototype.$type,[n.ig.IList$1.prototype.$type.specialize(n.ig.XmlaQueryProperty.prototype.$type),n.ig.IList.prototype.$type])},!0);n.ig.util.defType("XmlaSoapMessageBuilder","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},c:function(){var t,i;if(this.a()==null)throw new n.ig.InvalidOperationException(1,"XmlaMethod is not specified.");return t=n.ig.XNamespace.prototype.c(n.ig.XmlaSoapMessageBuilder.prototype.g),this.a().construct(t),i=this.j(),i.toString()},j:function(){var t=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMessageBuilder.prototype.d,n.ig.XmlaSoapMessageBuilder.prototype.g));return this.i(t),this.h(t),t},i:function(t){var r=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMessageBuilder.prototype.e,t.l().f().b())),i,u;for(t.g(r),i=this.a().headers().getEnumerator();i.moveNext();)u=i.current(),r.g(u)},h:function(t){var u=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMessageBuilder.prototype.b,t.l().f().b())),i,r,f;for(t.g(u),i=new n.ig.XElement(1,n.ig.XName.prototype.e(this.a().name(),n.ig.XmlaNamespace.prototype.a)),u.g(i),r=this.a().parameters().getEnumerator();r.moveNext();)f=r.current(),i.g(f)},$type:new n.ig.Type("XmlaSoapMessageBuilder",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("XmlaSoapMethod","Object",{g:null,f:null,c:null,b:null,a:null,init:function(){n.ig.Object.prototype.init.call(this);this.c=new n.ig.List$1(n.ig.XElement.prototype.$type,0);this.b=new n.ig.List$1(n.ig.XElement.prototype.$type,0);this.g=new n.ig.ReadOnlyCollection$1(n.ig.XElement.prototype.$type,1,this.c);this.f=new n.ig.ReadOnlyCollection$1(n.ig.XElement.prototype.$type,1,this.b);this.a=new n.ig.XmlaPropertiesCollection},properties:function(){return this.a},name:function(){},parameters:function(){return this.g},headers:function(){return this.f},e:function(){return this.c},d:function(){return this.b},construct:function(){},mergeProperties:function(n){var u=this,i,t,r;if(n!=null)for(i=n.getEnumerator();i.moveNext();)t=i.current(),function(){var n=u.properties().tryGetValue(t.a(),r);return r=n.value,n.ret}()?r.c(t.c()):u.properties().add(t)},$type:new n.ig.Type("XmlaSoapMethod",n.ig.Object.prototype.$type,[n.ig.IXmlaSoapMethod.prototype.$type])},!0);n.ig.util.defType("XmlaSoapMethodDiscover","XmlaSoapMethod",{k:null,init:function(t){n.ig.XmlaSoapMethod.prototype.init.call(this);this.j(n.ig.XmlaSoapMessageHeader.prototype.none);this.n(t);this.k=new n.ig.Dictionary$2(String,n.ig.Object.prototype.$type,0)},l:function(){return this.k},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},name:function(){return n.ig.XmlaSoapMethodDiscover.prototype.m},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_r:null,r:function(n){return arguments.length===1?(this._r=n,n):this._r},construct:function(){var c=n.ig.XNamespace.prototype.c(n.ig.XmlaNamespace.prototype.a),h=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMethodDiscover.prototype.o,c.b())),t,r,i,u,f,e,o,s;for(h.i(this.n()),t=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMethod.prototype.h,n.ig.XmlaNamespace.prototype.a)),r=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMethod.prototype.i,t.l().f().b())),t.g(r),i=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMethodDiscover.prototype.q,n.ig.XmlaNamespace.prototype.a)),u=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMethodDiscover.prototype.p,i.l().f().b())),i.g(u),f=this.properties().getEnumerator();f.moveNext();)e=f.current(),r.g(new n.ig.XElement(2,n.ig.XName.prototype.e(e.a(),n.ig.XmlaNamespace.prototype.a),e.c()));for(o=this.k.getEnumerator();o.moveNext();)s=o.current(),u.g(new n.ig.XElement(2,n.ig.XName.prototype.e(s.key(),""),s.value()));this.e().add(h);this.e().add(i);this.e().add(t)},$type:new n.ig.Type("XmlaSoapMethodDiscover",n.ig.XmlaSoapMethod.prototype.$type)},!0);n.ig.util.defType("XmlaSoapMethodExecute","XmlaSoapMethod",{init:function(t){n.ig.XmlaSoapMethod.prototype.init.call(this);this.l(t)},name:function(){return n.ig.XmlaSoapMethodExecute.prototype.k},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},construct:function(){var f=n.ig.XNamespace.prototype.c(n.ig.XmlaNamespace.prototype.a),e=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMethodExecute.prototype.j,f.b())),o=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMethodExecute.prototype.m,f.b())),t,i,r,u;for(o.i(this.l()),e.g(o),t=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMethod.prototype.h,n.ig.XmlaNamespace.prototype.a)),i=new n.ig.XElement(1,n.ig.XName.prototype.e(n.ig.XmlaSoapMethod.prototype.i,t.l().f().b())),t.g(i),r=this.properties().getEnumerator();r.moveNext();)u=r.current(),i.g(new n.ig.XElement(2,n.ig.XName.prototype.e(u.a(),n.ig.XmlaNamespace.prototype.a),u.c()));this.e().add(e);this.e().add(t)},$type:new n.ig.Type("XmlaSoapMethodExecute",n.ig.XmlaSoapMethod.prototype.$type)},!0);n.ig.util.defType("XmlaSoapWebClient","Object",{staticInit:function(){n.ig.XmlaSoapWebClient.prototype.a=new n.ig.List$1(String,0)},$type:new n.ig.Type("XmlaSoapWebClient",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("XmlaSoapWebClient$1","XmlaSoapWebClient",{$t:null,f:null,b:!1,init:function(t,i,r){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.XmlaSoapWebClient.prototype.init.call(this);this.f=new n.ig.WebClient;this.f.d(r);this.f.uploadStringCompleted=n.ig.Delegate.prototype.combine(this.f.uploadStringCompleted,this.l.runOn(this));this.g(i)},requestCompleted:null,_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},c:function(){return this.b},j:function(n){this.k(n,null)},k:function(t,i){var r=new n.ig.XmlaSoapMessageBuilder,u;r.a(t);u=r.c();this.e()!=null?this.f.a(this.e()):this.f.a(null);this.f.c().item("Content-Type","text/xml");this.f.h(this.g(),"POST",u,i)},h:function(n){this.requestCompleted!=null&&this.requestCompleted(this,n)},l:function(n,t){this.b=!0;this.i(t)},i:function(t){var u=null,e=null,i=null,s,r,l;if(!t.cancelled()&&t.error()==null)try{var a=n.ig.XDocument.prototype.i(t.result()),v=a.h(n.ig.XName.prototype.e("Envelope","http://schemas.xmlsoap.org/soap/envelope/")),f=v.h(n.ig.XName.prototype.e("Body","http://schemas.xmlsoap.org/soap/envelope/")),o=f.h(n.ig.XName.prototype.e("Fault","http://schemas.xmlsoap.org/soap/envelope/"));if(o!=null)s=new n.ig.XmlaSoapFaultXmlTypeSerializer,r=s.deserialize(o),e=new n.ig.FaultException$1(n.ig.XmlaSoapFault.prototype.$type,r,new n.ig.FaultReason(r.d()),new n.ig.FaultCode(r.c()),null);else{if(this.$t==n.ig.DiscoverResponseResult.prototype.$type){var y=f.h(n.ig.XName.prototype.e("DiscoverResponse",n.ig.XmlaNamespace.prototype.a)),p=y.h(n.ig.XName.prototype.e("return",n.ig.XmlaNamespace.prototype.a)),w=p.h(n.ig.XName.prototype.e("root",n.ig.XmlaNamespace.prototype.e)),h=new n.ig.DiscoverResponseResult;h.returnElement(w);u=h}if(this.$t==n.ig.ExecuteResponseResult.prototype.$type){var b=f.h(n.ig.XName.prototype.e("ExecuteResponse",n.ig.XmlaNamespace.prototype.a)),k=b.h(n.ig.XName.prototype.e("return",n.ig.XmlaNamespace.prototype.a)),d=k.h(n.ig.XName.prototype.e("root",n.ig.XmlaNamespace.prototype.d)),c=new n.ig.ExecuteResponseResult;c.returnElement(d);u=c}}}catch(g){i=g}i==null&&(i=t.error()!=null?t.error():e);l=new n.ig.RequestCompletedEventArgs$1(this.$t,u,i,t.cancelled(),t.userState());this.h(l)},$type:new n.ig.Type("XmlaSoapWebClient$1",n.ig.XmlaSoapWebClient.prototype.$type)},!0);n.ig.util.defType("XmlaSoapWebClient","Object",{staticInit:function(){n.ig.XmlaSoapWebClient.prototype.a=new n.ig.List$1(String,0)},$type:new n.ig.Type("XmlaSoapWebClient",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("XmlaSoapWebClient$1","XmlaSoapWebClient",{$t:null,f:null,b:!1,init:function(t,i,r){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.XmlaSoapWebClient.prototype.init.call(this);this.f=new n.ig.WebClient;this.f.d(r);this.f.uploadStringCompleted=n.ig.Delegate.prototype.combine(this.f.uploadStringCompleted,this.l.runOn(this));this.g(i)},requestCompleted:null,_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},c:function(){return this.b},j:function(n){this.k(n,null)},k:function(t,i){var r=new n.ig.XmlaSoapMessageBuilder,u;r.a(t);u=r.c();this.e()!=null?this.f.a(this.e()):this.f.a(null);this.f.c().item("Content-Type","text/xml");this.f.h(this.g(),"POST",u,i)},h:function(n){this.requestCompleted!=null&&this.requestCompleted(this,n)},l:function(n,t){this.b=!0;this.i(t)},i:function(t){var u=null,e=null,i=null,s,r,l;if(!t.cancelled()&&t.error()==null)try{var a=n.ig.XDocument.prototype.i(t.result()),v=a.h(n.ig.XName.prototype.e("Envelope","http://schemas.xmlsoap.org/soap/envelope/")),f=v.h(n.ig.XName.prototype.e("Body","http://schemas.xmlsoap.org/soap/envelope/")),o=f.h(n.ig.XName.prototype.e("Fault","http://schemas.xmlsoap.org/soap/envelope/"));if(o!=null)s=new n.ig.XmlaSoapFaultXmlTypeSerializer,r=s.deserialize(o),e=new n.ig.FaultException$1(n.ig.XmlaSoapFault.prototype.$type,r,new n.ig.FaultReason(r.d()),new n.ig.FaultCode(r.c()),null);else{if(this.$t==n.ig.DiscoverResponseResult.prototype.$type){var y=f.h(n.ig.XName.prototype.e("DiscoverResponse",n.ig.XmlaNamespace.prototype.a)),p=y.h(n.ig.XName.prototype.e("return",n.ig.XmlaNamespace.prototype.a)),w=p.h(n.ig.XName.prototype.e("root",n.ig.XmlaNamespace.prototype.e)),h=new n.ig.DiscoverResponseResult;h.returnElement(w);u=h}if(this.$t==n.ig.ExecuteResponseResult.prototype.$type){var b=f.h(n.ig.XName.prototype.e("ExecuteResponse",n.ig.XmlaNamespace.prototype.a)),k=b.h(n.ig.XName.prototype.e("return",n.ig.XmlaNamespace.prototype.a)),d=k.h(n.ig.XName.prototype.e("root",n.ig.XmlaNamespace.prototype.d)),c=new n.ig.ExecuteResponseResult;c.returnElement(d);u=c}}}catch(g){i=g}i==null&&(i=t.error()!=null?t.error():e);l=new n.ig.RequestCompletedEventArgs$1(this.$t,u,i,t.cancelled(),t.userState());this.h(l)},$type:new n.ig.Type("XmlaSoapWebClient$1",n.ig.XmlaSoapWebClient.prototype.$type)},!0);n.ig.util.defType("IMdxExpression","Object",{$type:new n.ig.Type("IMdxExpression",null)},!0);n.ig.util.defType("IMdxElement","Object",{$type:new n.ig.Type("IMdxElement",null,[n.ig.IMdxExpression.prototype.$type])},!0);n.ig.util.defType("IAxisFilterElement","Object",{$type:new n.ig.Type("IAxisFilterElement",null,[n.ig.IMdxElement.prototype.$type])},!0);n.ig.util.defType("IMdxAxis","Object",{$type:new n.ig.Type("IMdxAxis",null,[n.ig.IMdxExpression.prototype.$type])},!0);n.ig.util.defType("IMdxAxisProvider","Object",{$type:new n.ig.Type("IMdxAxisProvider",null)},!0);n.ig.util.defType("IMdxCollectionElement","Object",{$type:new n.ig.Type("IMdxCollectionElement",null,[n.ig.IMdxElement.prototype.$type])},!0);n.ig.util.defType("IMdxDimensionAxisProvider","Object",{$type:new n.ig.Type("IMdxDimensionAxisProvider",null,[n.ig.IMdxAxisProvider.prototype.$type])},!0);n.ig.util.defType("IMdxFilterInfo","Object",{$type:new n.ig.Type("IMdxFilterInfo",null)},!0);n.ig.util.defType("IMdxExtendedFilterInfo","Object",{$type:new n.ig.Type("IMdxExtendedFilterInfo",null,[n.ig.IMdxFilterInfo.prototype.$type])},!0);n.ig.util.defType("IMdxItemElement","Object",{$type:new n.ig.Type("IMdxItemElement",null,[n.ig.IMdxElement.prototype.$type])},!0);n.ig.util.defType("IMdxSet","Object",{$type:new n.ig.Type("IMdxSet",null,[n.ig.IMdxExpression.prototype.$type])},!0);n.ig.util.defType("MdxAxis","Object",{e:null,f:null,d:!1,i:null,h:0,c:null,init:function(t,i){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}this.c=function(){var n=[];return n.add("COLUMNS"),n.add("ROWS"),n.add("PAGES"),n}();n.ig.MdxAxis.prototype.init1.call(this,1,i,new n.ig.MdxDimensionAxisSettings)},init1:function(t,i,r){this.c=function(){var n=[];return n.add("COLUMNS"),n.add("ROWS"),n.add("PAGES"),n}();n.ig.Object.prototype.init.call(this);this.axisIndex(i);this.a(r!=null?r:new n.ig.MdxDimensionAxisSettings);this.e=new n.ig.List$1(n.ig.IMdxSet.prototype.$type,0);this.f=new n.ig.ReadOnlyCollection$1(n.ig.IMdxSet.prototype.$type,1,this.e)},axisIndex:function(n){return arguments.length===1?(this.h!=n&&(this.h=n,this.d=!1),n):this.h},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},b:function(){return n.ig.util.cast(n.ig.MdxDimensionAxisSettings.prototype.$type,this.a())},g:function(){return this.f},mdxExpression:function(){return this.d||(this.i=this.j(),this.d=!0),this.i},rebuildExpression:function(){this.i=this.j();this.d=!0},getMdxSets:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$a=this.$this.f.getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:return this.$current=this.$a.current(),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$a.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(n.ig.IMdxSet.prototype.$type,i)},addSet:function(n){this.e.add(n);this.d=!1},j:function(){for(var t=new n.ig.StringBuilder,r=!1,u=this.g().getEnumerator(),i;u.moveNext();)(i=u.current(),i.isEnabled())&&(r&&(t.d(","),t.d(n.ig.Environment.prototype.a())),t.d(i.mdxExpression()),r=!0);return this.g().count()>1&&(t.h(0,"{"),t.d("}")),this.m(t,this.b()),this.n(t,this.b()),this.l(t,this.b()),this.k(t),t.b()},m:function(n,t){t.f()&&(n.h(0,"Distinct("),n.d(")"))},n:function(t,i){i.h()&&(t.h(0,n.ig.Environment.prototype.a()),t.h(0,"NON EMPTY"))},l:function(t,i){var f;if(i.e()){t.d(n.ig.Environment.prototype.a());t.d("DIMENSION PROPERTIES");for(var e=i.j(),r=!1,u=e.getEnumerator();u.moveNext();)f=u.current(),t.d(n.ig.Environment.prototype.a()),r&&t.d(","),t.d(f),r=!0}},k:function(t){this.axisIndex()<2&&(t.d(n.ig.Environment.prototype.a()),t.d(String.concat("ON ",this.c[this.axisIndex()])))},$type:new n.ig.Type("MdxAxis",n.ig.Object.prototype.$type,[n.ig.IMdxAxis.prototype.$type])},!0);n.ig.util.defType("MdxAxisFilterElement","Object",{a:null,b:null,init:function(){n.ig.Object.prototype.init.call(this);this.b=new n.ig.List$1(n.ig.IMdxElement.prototype.$type,0);this.singleFilterElements(new n.ig.ReadOnlyCollection$1(n.ig.IMdxElement.prototype.$type,1,this.b));this.a=new n.ig.MdxElementCollectionElement},mdxExpression:function(){var n=this;return n.a.collectionElements().count()>1&&n.a.b(function(){var n=[];return n.add("("),n.add(")"),n}()),n.a.mdxExpression()},_singleFilterElements:null,singleFilterElements:function(n){return arguments.length===1?(this._singleFilterElements=n,n):this._singleFilterElements},filterCollection:function(){return this.a.collectionElements()},rebuildExpression:function(){this.a.rebuildExpression()},addFilterPart:function(n,t){if(n.collectionElements().count()>0){if(n.collectionElements().count()==1&&t){this.b.add(n.collectionElements().item(0));return}this.a.addElement(n)}},elementType:function(){return n.ig.MdxElementType.prototype.filter},$type:new n.ig.Type("MdxAxisFilterElement",n.ig.Object.prototype.$type,[n.ig.IAxisFilterElement.prototype.$type])},!0);n.ig.util.defType("MdxCalculatedMembersCache","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.d=new n.ig.List$1(String,0);this.b=new n.ig.Dictionary$2(String,String,0)},d:null,b:null,e:function(t){for(var r=new n.ig.StringBuilder,u=t.c().getEnumerator(),i;u.moveNext();)i=u.current(),n.ig.MdxCalculatedMembersCache.prototype.f(r,i.key(),i.value());return r.b()},g:function(n,t,i){this.d.contains(n)||this.d.add(n);this.b.containsKey(t)||this.b.add(t,i)},c:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$a=this.$this.b.getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:return this.$current=this.$a.current(),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$a.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(n.ig.KeyValuePair$2.prototype.$type.specialize(String,String),i)},a:function(n){return this.d.contains(n)},f:function(t,i,r){t.d(String.concat("MEMBER ",i," AS",n.ig.Environment.prototype.a()));t.d(r);t.d(n.ig.Environment.prototype.a())},$type:new n.ig.Type("MdxCalculatedMembersCache",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MdxElement","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.elementType(n.ig.MdxElementType.prototype.userDefined)},mdxExpression:function(){},_elementType:null,elementType:function(n){return arguments.length===1?(this._elementType=n,n):this._elementType},_sourceItemExpression:null,sourceItemExpression:function(n){return arguments.length===1?(this._sourceItemExpression=n,n):this._sourceItemExpression},rebuildExpression:function(){},$type:new n.ig.Type("MdxElement",n.ig.Object.prototype.$type,[n.ig.IMdxItemElement.prototype.$type])},!0);n.ig.util.defType("MdxSingleElement","MdxElement",{init:function(t,i,r,u){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.MdxSingleElement.prototype.init1.call(this,1,i,r,u,n.ig.MdxElementType.prototype.member)},init1:function(t,i,r,u,f){n.ig.MdxElement.prototype.init.call(this);this.a(u);switch(f){case n.ig.MdxElementType.prototype.member:case n.ig.MdxElementType.prototype.calculated:this.sourceItemExpression(i);this.b(r);this.elementType(f);break;default:throw new n.ig.ArgumentException(1,"Element type could be MdxElementType.Member or MdxElementType.Calculated","elementType");}},mdxExpression:function(){return this.sourceItemExpression()},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("MdxSingleElement",n.ig.MdxElement.prototype.$type)},!0);n.ig.util.defType("MdxDimensionMember","MdxSingleElement",{init:function(t,i,r,u,f){n.ig.MdxSingleElement.prototype.init.call(this,t,i,r);this.d(u);this.c(f)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("MdxDimensionMember",n.ig.MdxSingleElement.prototype.$type)},!0);n.ig.util.defType("MdxChildrenCollectionElement","MdxDimensionMember",{init:function(t,i,r,u,f){n.ig.MdxDimensionMember.prototype.init.call(this,t,i,r,u,f)},mdxExpression:function(){return String.concat(this.sourceItemExpression(),".Children")},$type:new n.ig.Type("MdxChildrenCollectionElement",n.ig.MdxDimensionMember.prototype.$type)},!0);n.ig.util.defType("MdxElementCollectionElement","Object",{d:null,c:!1,e:null,a:null,init:function(){n.ig.Object.prototype.init.call(this);this.d=new n.ig.List$1(n.ig.IMdxElement.prototype.$type,0);this.collectionElements(new n.ig.ReadOnlyCollection$1(n.ig.IMdxElement.prototype.$type,1,this.d))},b:function(n){return arguments.length===1?(this.a!=n&&(this.c=!1,this.a=n),n):this.a},_collectionElements:null,collectionElements:function(n){return arguments.length===1?(this._collectionElements=n,n):this._collectionElements},elementType:function(){return n.ig.MdxElementType.prototype.collection},mdxExpression:function(){return this.c||(this.e=this.f(),this.c=!0),this.e},rebuildExpression:function(){this.e=this.f();this.c=!0},addElement:function(n){var t=this;t.d.add(n);t.collectionElements().count()>1&&t.b(function(){var n=[];return n.add("{"),n.add("}"),n}());t.c=!1},f:function(){var u;if(this.collectionElements().count()==0)return String.empty();for(var t=new n.ig.StringBuilder,i=!1,r=this.collectionElements().getEnumerator();r.moveNext();)u=r.current(),i&&(t.d(","),t.d(n.ig.Environment.prototype.a())),t.d(u.mdxExpression()),i=!0;return this.b()!=null&&this.b().length==2&&(t.h(0,this.b()[0]),t.d(this.b()[1])),t.b()},$type:new n.ig.Type("MdxElementCollectionElement",n.ig.Object.prototype.$type,[n.ig.IMdxCollectionElement.prototype.$type])},!0);n.ig.util.defType("MdxLevelMembersElement","MdxSingleElement",{init:function(t,i,r){n.ig.MdxSingleElement.prototype.init.call(this,t,i,r)},mdxExpression:function(){return String.concat(this.sourceItemExpression(),".MEMBERS")},$type:new n.ig.Type("MdxLevelMembersElement",n.ig.MdxSingleElement.prototype.$type)},!0);n.ig.util.defType("MdxQueryBuilder","Object",{a:null,init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.MdxQueryBuilder.prototype.init1.call(this,1,new n.ig.MdxSettings)},init1:function(t,i){n.ig.Object.prototype.init.call(this);this.b(i)},b:function(t){return arguments.length===1?(this.a=t,t):(this.a==null&&(this.a=new n.ig.MdxSettings),this.a)},c:function(t,i,r,u,f){var o=r,s=this.d(t,i,o,u),h=this.h(o),c=this.g(o,f),e=new n.ig.StringBuilder;return String.isNullOrEmpty(s)||e.d(String.concat("WITH",n.ig.Environment.prototype.a())),e.d(s),e.d("SELECT"),e.d(n.ig.Environment.prototype.a()),t!=null&&e.d(t.mdxExpression()),i!=null&&(t==null?i.axisIndex(0):e.d(String.concat(",",n.ig.Environment.prototype.a())),e.d(i.mdxExpression())),e.d(n.ig.Environment.prototype.a()),e.d(c),String.isNullOrEmpty(h)||(e.d(n.ig.Environment.prototype.a()),e.d(h)),e.b()},d:function(t,i,r,u){return n.ig.MdxCalculatedMembersCache.prototype.e(u)},g:function(t,i){var r=String.concat("FROM ","[",i,"]"),u=n.ig.util.cast(n.ig.IMdxExtendedFilterInfo.prototype.$type,t);return r=this.f(r,t.filtersFilter()),r=t.columnsFilter()!=null?this.f(r,t.columnsFilter(),t.rowsFilter()):this.f(r,t.rowsFilter()),u!=null&&(r=this.e(r,u)),r},e:function(t,i){var u,f,r;if(i.filterElements()!=null&&i.filterElements().count()>0)for(u=i.filterElements().getEnumerator();u.moveNext();)f=u.current(),r=new n.ig.StringBuilder,r.h(0,String.concat("FROM",n.ig.Environment.prototype.a(),"(",n.ig.Environment.prototype.a(),"SELECT",n.ig.Environment.prototype.a())),r.d(String.concat(f.mdxExpression()," ON COLUMNS",n.ig.Environment.prototype.a())),r.d(t),r.d(this.h(i)),r.d(String.concat(")",n.ig.Environment.prototype.a())),t=r.b();return t},f:function(t,i,r){if(i==null||i.filterCollection().count()==0)return t;var u=new n.ig.StringBuilder;return u.d("FROM"),u.d(n.ig.Environment.prototype.a()),u.d("("),u.d(n.ig.Environment.prototype.a()),u.d("SELECT"),u.d(n.ig.Environment.prototype.a()),u.d(i.mdxExpression()),u.d(" ON COLUMNS"),r!=null&&r.filterCollection().count()>0&&(u.d(n.ig.Environment.prototype.a()),u.d(", "),u.d(r.mdxExpression()),u.d(" ON ROWS")),u.d(n.ig.Environment.prototype.a()),u.d(t),u.d(n.ig.Environment.prototype.a()),u.d(")"),u.b()},h:function(t){var f=this,i=new n.ig.MdxElementCollectionElement,r,u;if(t.measureFilter()!=null&&t.measureFilter().singleFilterElements().count()==1&&i.addElement(t.measureFilter().singleFilterElements().item(0)),t.filtersFilter()!=null)for(r=t.filtersFilter().singleFilterElements().getEnumerator();r.moveNext();)u=r.current(),i.addElement(u);return i.collectionElements().count()==0?String.empty():(i.b(function(){var n=[];return n.add("("),n.add(")"),n}()),String.concat("WHERE ",i.mdxExpression()))},$type:new n.ig.Type("MdxQueryBuilder",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MdxSet","Object",{d:null,e:null,b:!1,g:null,init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.MdxSet.prototype.init1.call(this,1,new n.ig.MdxSetSettings);this.d=new n.ig.List$1(n.ig.IMdxElement.prototype.$type,0);this.e=new n.ig.ReadOnlyCollection$1(n.ig.IMdxElement.prototype.$type,1,this.d);this.isEnabled(!0)},init1:function(t,i){n.ig.Object.prototype.init.call(this);this.d=new n.ig.List$1(n.ig.IMdxElement.prototype.$type,0);this.e=new n.ig.ReadOnlyCollection$1(n.ig.IMdxElement.prototype.$type,1,this.d);this.isEnabled(!0);this.a(i!=null?i:new n.ig.MdxSetSettings)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_isEnabled:!1,isEnabled:function(n){return arguments.length===1?(this._isEnabled=n,n):this._isEnabled},f:function(){return this.e},mdxExpression:function(){return this.b||(this.g=this.h(),this.b=!0),this.g},rebuildExpression:function(){this.g=this.h();this.b=!0},addElement:function(n){this.c(n)&&(this.d.add(n),this.b=!1)},getMdxElements:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$a=this.$this.d.getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:return this.$current=this.$a.current(),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$a.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(n.ig.IMdxElement.prototype.$type,i)},c:function(t){switch(t.elementType()){case n.ig.MdxElementType.prototype.memberTree:case n.ig.MdxElementType.prototype.member:case n.ig.MdxElementType.prototype.calculated:case n.ig.MdxElementType.prototype.collection:return!0}return!1},h:function(){var t,r,i,u;for(n.ig.Debug.prototype.b(this.f().count()>0,"MdxSet.Elements collection is empty."),t=new n.ig.StringBuilder,r=this.f().item(0),this.j(t,r),i=1;i<this.f().count();i++)t.h(0,"CrossJoin("),t.h(10,n.ig.Environment.prototype.a()),t.d(","),t.d(n.ig.Environment.prototype.a()),u=this.f().item(i),this.j(t,u),t.d(")");return t.b()},j:function(t,i){var r=new n.ig.StringBuilder,u,f;switch(i.elementType()){case n.ig.MdxElementType.prototype.calculated:u=i;f=u.b();r.d("{");r.d(f);r.d("}");break;case n.ig.MdxElementType.prototype.member:r.d("{");r.d(i.mdxExpression());r.d("}");break;case n.ig.MdxElementType.prototype.collection:case n.ig.MdxElementType.prototype.memberTree:r.d(i.mdxExpression())}(n.ig.util.cast(n.ig.MdxLevelMembersElement.prototype.$type,i)!==null||n.ig.util.cast(n.ig.MdxChildrenCollectionElement.prototype.$type,i)!==null)&&this.i(r,i);switch(i.elementType()){case n.ig.MdxElementType.prototype.memberTree:case n.ig.MdxElementType.prototype.member:this.k(r,i)}t.e(r)},k:function(){},i:function(n){this.a().a()&&(n.h(0,"AddCalculatedMembers("),n.d(")"))},clone:function(){for(var t=new n.ig.MdxSet(1,this.a()),i=this.f().getEnumerator(),r;i.moveNext();)r=i.current(),t.addElement(r);return t},$type:new n.ig.Type("MdxSet",n.ig.Object.prototype.$type,[n.ig.IMdxSet.prototype.$type])},!0);n.ig.util.defType("MdxSettings","Object",{i:!1,h:!1,e:!1,d:!1,m:!1,l:!1,k:!1,j:!1,o:!1,n:!1,g:!1,f:!1,init:function(){var t,i;n.ig.Object.prototype.init.call(this);this.a(new n.ig.MdxDimensionAxisSettings);this.b(new n.ig.MdxDimensionAxisSettings);this.c(new n.ig.MdxSlicerAxisSettings);this.y(!0);this.x(!0);t=new n.ig.ObservableCollection$1(String,0);t.collectionChanged=n.ig.Delegate.prototype.combine(t.collectionChanged,this.ae.runOn(this));this.ac(t);i=new n.ig.ObservableCollection$1(String,0);i.collectionChanged=n.ig.Delegate.prototype.combine(i.collectionChanged,this.ad.runOn(this));this.ab(i);this.s(!0);this.r(!0);this.q(!0);this.p(!0);this.ag(this.ac());this.ag(this.ab())},ae:function(){var n,t;for(this.b().j().clear(),n=this.ac().getEnumerator();n.moveNext();)t=n.current(),this.b().j().add(t)},ad:function(){var n,t;for(this.a().j().clear(),n=this.ab().getEnumerator();n.moveNext();)t=n.current(),this.a().j().add(t)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},aa:function(n){return arguments.length===1?(this.i!=n&&(this.i=n,this.b().i(n)),n):this.i},z:function(n){return arguments.length===1?(this.h!=n&&(this.h=n,this.a().i(n)),n):this.h},q:function(n){return arguments.length===1?(this.e!=n&&(this.e=n,this.b().d(n)),n):this.e},p:function(n){return arguments.length===1?(this.d!=n&&(this.d=n,this.a().d(n)),n):this.d},w:function(n){return arguments.length===1?(this.m!=n&&(this.m=n,this.b().g(n)),n):this.m},v:function(n){return arguments.length===1?(this.l!=n&&(this.l=n,this.a().g(n)),n):this.l},u:function(n){return arguments.length===1?(this.k!=n&&(this.k=n,this.b().f(n)),n):this.k},t:function(n){return arguments.length===1?(this.j!=n&&(this.j=n,this.a().f(n)),n):this.j},y:function(n){return arguments.length===1?(this.o!=n&&(this.o=n,this.b().h(n)),n):this.o},x:function(n){return arguments.length===1?(this.n!=n&&(this.n=n,this.a().h(n)),n):this.n},s:function(n){return arguments.length===1?(this.g!=n&&(this.g=n,this.b().e(n)),n):this.g},r:function(n){return arguments.length===1?(this.f!=n&&(this.f=n,this.a().e(n)),n):this.f},_ac:null,ac:function(n){return arguments.length===1?(this._ac=n,n):this._ac},_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},af:function(n){this.ag(n)},ag:function(n){n.clear();n.add("CHILDREN_CARDINALITY");n.add("PARENT_UNIQUE_NAME")},$type:new n.ig.Type("MdxSettings",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MdxAxisSettings","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("MdxAxisSettings",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MdxSlicerAxisSettings","MdxAxisSettings",{init:function(){n.ig.MdxAxisSettings.prototype.init.call(this)},$type:new n.ig.Type("MdxSlicerAxisSettings",n.ig.MdxAxisSettings.prototype.$type)},!0);n.ig.util.defType("MdxDimensionAxisSettings","MdxAxisSettings",{c:!1,b:!1,init:function(){n.ig.MdxAxisSettings.prototype.init.call(this);this.j(new n.ig.List$1(String,0));this.a(new n.ig.MdxSetSettings)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_g:!1,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_f:!1,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_h:!1,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},i:function(n){return arguments.length===1?(this.c!=n&&(this.c=n,this.a().b(n)),n):this.c},d:function(n){return arguments.length===1?(this.b!=n&&(this.b=n,this.a().a(n)),n):this.b},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},$type:new n.ig.Type("MdxDimensionAxisSettings",n.ig.MdxAxisSettings.prototype.$type)},!0);n.ig.util.defType("MdxSetSettings","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:!1,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("MdxSetSettings",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("IMdxSlicerAxis","Object",{$type:new n.ig.Type("IMdxSlicerAxis",null,[n.ig.IMdxExtendedFilterInfo.prototype.$type])},!0);n.ig.util.defType("MdxSlicerAxis","MdxAxis",{init:function(t){n.ig.MdxAxis.prototype.init1.call(this,1,2,t)},_columnsFilter:null,columnsFilter:function(n){return arguments.length===1?(this._columnsFilter=n,n):this._columnsFilter},_rowsFilter:null,rowsFilter:function(n){return arguments.length===1?(this._rowsFilter=n,n):this._rowsFilter},_filtersFilter:null,filtersFilter:function(n){return arguments.length===1?(this._filtersFilter=n,n):this._filtersFilter},_measureFilter:null,measureFilter:function(n){return arguments.length===1?(this._measureFilter=n,n):this._measureFilter},_filterElements:null,filterElements:function(n){return arguments.length===1?(this._filterElements=n,n):this._filterElements},$type:new n.ig.Type("MdxSlicerAxis",n.ig.MdxAxis.prototype.$type,[n.ig.IMdxSlicerAxis.prototype.$type])},!0);n.ig.util.defType("MdxSlicerSet","MdxSet",{init:function(){n.ig.MdxSet.prototype.init.call(this)},c:function(t){return n.ig.util.cast(n.ig.IAxisFilterElement.prototype.$type,t)!==null},$type:new n.ig.Type("MdxSlicerSet",n.ig.MdxSet.prototype.$type)},!0);n.ig.util.defType("MdxDimensionAxisProvider","Object",{h:null,k:null,l:0,init:function(t,i,r,u,f){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}if(this.h=new n.ig.Dictionary$2(String,n.ig.MdxElementCollectionElement.prototype.$type,0),this.k=new n.ig.List$1(String,0),this.l=-1,n.ig.Object.prototype.init.call(this),i==null)throw new n.ig.ArgumentNullException("xmlaDataSource");this.b(i);this.g(r);this.i(u);this.d(f)},init1:function(t,i,r,u){this.h=new n.ig.Dictionary$2(String,n.ig.MdxElementCollectionElement.prototype.$type,0);this.k=new n.ig.List$1(String,0);this.l=-1;n.ig.Object.prototype.init.call(this);this.g(r);this.a(i);this.j(u)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},c:null,d:function(n){return arguments.length===1?(this.c=n,n):this.c},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},q:function(){this.e(null)},extendAxis:function(t){for(var u=this,y=t,p=u.j(),w=u.a().positionResolver(),l=new n.ig.MdxAxis(1,t.axisIndex(),u.g()),a=p.getEnumerator(),i,e,o,h,c;a.moveNext();){for(var r=a.current(),f=new n.ig.MdxSet(1,y.a().a()),s=new n.ig.List$1(n.ig.IMdxSet.prototype.$type,0),b=w.getHostPositionItemInfo(r.position(),r.position().indexOf(r)),v=r.position().getItems().getEnumerator();v.moveNext();){if(i=v.current(),i==r){e=new n.ig.MdxChildrenCollectionElement(i.key(),i.key(),-1,null,null);f.addElement(e);break}e=new n.ig.MdxSingleElement(0,i.key(),i.key(),i.depth());f.addElement(e)}if(o=b.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.key()==r.key()}).firstOrDefault$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o!=null)for(o.count()==0?s.add(f):u.p(o,f,s,!1,!0,!1),h=s.getEnumerator();h.moveNext();)c=h.current(),t.addSet(c),l.addSet(c)}return l},t:function(t,i){if(this.l!=0){var r=new n.ig.MdxSet(1,this.g().a());this.l==-1&&i.add(r);this.s(t,r,i);this.p(t,new n.ig.MdxSet(1,this.g().a()),i,!0,!1,!0)}else this.p(t,new n.ig.MdxSet(1,this.g().a()),i,!1,!1,!0)},s:function(t,i,r){var u=this,h=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==t.positionItemDepthMin()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),s,f,c;if(h.count()!=0)if(u.l==t.positionItemIndex()+1)for(s=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==0}).getEnumerator();s.moveNext();){var e=s.current(),o=i.clone(),l=new n.ig.MdxSingleElement(0,e.positionItem().key(),e.positionItem().key(),0);o.addElement(l);r.add(o);u.u(e);e.count()==0?u.n(u.i(),e.positionItemIndex()+1,o):u.s(e,o,r)}else f=h.item(0),c=new n.ig.MdxLevelMembersElement(f.hierarchyLevelKey(),f.hierarchyLevelKey(),t.positionItemDepthMin()),i.addElement(c),u.u(f),f.count()==0?(u.l!=-1&&r.add(i),u.n(u.i(),f.positionItemIndex()+1,i)):u.s(f,i,r)},createAxis:function(t){var r,i,u,f;if(this.e()!=null)return this.e();if(this.d()==null||(this.r(t),this.u(this.d()),this.d().count()==0))return this.e(this.createAxis1(t,this.i())),this.e();for(r=new n.ig.List$1(n.ig.IMdxSet.prototype.$type,0),this.t(this.d(),r),i=new n.ig.MdxAxis(1,t,this.g()),u=r.getEnumerator();u.moveNext();)f=u.current(),i.addSet(f);return this.e(i),i},r:function(t){var f=this.b().columnAxis().count()>0,r=this.b().rowAxis().count()>0,e=this.b().measures().count()>1,i,u;for(e&&(t==0?f?this.b().measureListLocation()==n.ig.MeasureListLocation.prototype.columns&&(this.l=this.b().measureListIndex()):r&&this.b().measureListLocation()==n.ig.MeasureListLocation.prototype.rows&&(this.l=this.b().measureListIndex()):t==1&&r&&this.b().measureListLocation()==n.ig.MeasureListLocation.prototype.rows&&(this.l=this.b().measureListIndex())),i=this.b().measures().getEnumerator();i.moveNext();)u=i.current(),this.k.add(u.uniqueName())},u:function(t){var i,r,s,h,u,f,e,o;if(this.i()!=null)if(i=t.positionItemIndex()+1,i<this.i().count()){if(r=this.i().item(i),s=n.ig.util.cast(n.ig.MeasureList.prototype.$type,r),s!=null)for(h=t.values().toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),u=h.getEnumerator();u.moveNext();)f=u.current(),this.k.contains(f.key())||t.remove(f.key());e=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,r);e!=null&&(o=t.values().firstOrDefault$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o!=null&&o.hierarchyKey()!=e.uniqueName()&&t.clear())}else t.clear()},createAxis1:function(t,i){var u=new n.ig.MdxSet(1,this.g().a()),r;return this.n(i,0,u),r=new n.ig.MdxAxis(1,t,this.g()),r.addSet(u),r},n:function(t,i,r){var h=this,o,s,f,p,c,u,e,l,a,v,y;if(t!=null)for(o=i;o<t.count();o++){if(s=t.item(o),f=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,s),f!=null){f.allMember()==null?(p=h.b().getCoreElements(function(n){return n.hierarchyUniqueName()==f.uniqueName()},n.ig.Level.prototype.$type).toList$1(n.ig.ICoreOlapElement.prototype.$type),c=p.item(0),r.addElement(new n.ig.MdxLevelMembersElement(c.uniqueName(),c.uniqueName(),0))):r.addElement(new n.ig.MdxSingleElement(0,f.defaultMember(),f.defaultMember(),0));continue}if(u=n.ig.util.cast(n.ig.Level.prototype.$type,s),u!=null){(function(){var n=h.h.tryGetValue(u.hierarchyUniqueName(),e);return e=n.value,n.ret})()||(e=new n.ig.MdxElementCollectionElement,r.addElement(e),h.h.add(u.hierarchyUniqueName(),e));e.addElement(new n.ig.MdxLevelMembersElement(u.uniqueName(),u.uniqueName(),u.depth()));continue}if(l=n.ig.util.cast(n.ig.MeasureList.prototype.$type,s),l!=null){for(a=new n.ig.MdxElementCollectionElement,v=l.measures().getEnumerator();v.moveNext();)y=v.current(),a.addElement(new n.ig.MdxSingleElement(0,y.uniqueName(),y.uniqueName(),0));r.addElement(a)}}},o:function(t,i,r,u,f,e,o){var s=r.clone();s.addElement(new n.ig.MdxSingleElement(0,i.key(),i.key(),i.positionItemDepth()));this.u(i);i.count()==0?f?e&&(u.add(s),this.n(this.i(),i.positionItemIndex()+1,s)):(u.add(s),this.n(this.i(),i.positionItemIndex()+1,s)):this.p(i,s,u,f,e,o);o&&i.isExpanded()&&this.m(i,u,t,r)},m:function(t,i,r,u){var e=this,c=r.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==t.key()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,s,f,h;for(c.count()>0&&(o=u.clone(),o.addElement(new n.ig.MdxChildrenCollectionElement(t.key(),t.key(),t.positionItemDepth(),null,null)),e.u(t),t.count()==0?(i.add(o),e.n(e.i(),t.positionItemIndex()+1,o)):e.p(t,o,i,!0,!0,!1)),s=c.getEnumerator();s.moveNext();)f=s.current(),h=u.clone(),h.addElement(new n.ig.MdxSingleElement(0,f.key(),f.key(),f.positionItemDepth())),e.u(f),f.isExpanded()&&e.m(f,i,r,u),e.p(f,h,i,!0,!1,!0)},p:function(t,i,r,u,f,e){var c=this,s=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==t.positionItemDepthMin()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,h;if(s.count()!=0)for(o=s.getEnumerator();o.moveNext();)h=o.current(),c.o(t,h,i,r,u,f,e)},$type:new n.ig.Type("MdxDimensionAxisProvider",n.ig.Object.prototype.$type,[n.ig.IMdxDimensionAxisProvider.prototype.$type])},!0);n.ig.util.defType("MdxSlicerAxisProvider","Object",{c:null,e:null,d:null,init:function(t,i,r,u,f){this.c=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0);this.e=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0);this.d=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0);n.ig.Object.prototype.init.call(this);this.a(t);this.b(f);this.c=i;this.e=r;this.d=u},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},createAxis:function(t){var i=new n.ig.MdxSlicerAxis(this.b().c());return i.axisIndex(t),i.columnsFilter(n.ig.MdxSlicerAxisBuilder.prototype.a(this.c,i)),i.rowsFilter(n.ig.MdxSlicerAxisBuilder.prototype.a(this.e,i)),i.filtersFilter(n.ig.MdxSlicerAxisBuilder.prototype.a(this.d,i)),i.measureFilter(n.ig.MdxSlicerAxisBuilder.prototype.b(this.a().measures(),i)),i},$type:new n.ig.Type("MdxSlicerAxisProvider",n.ig.Object.prototype.$type,[n.ig.IMdxAxisProvider.prototype.$type])},!0);n.ig.util.defType("MdxSlicerAxisBuilder","Object",{init:function(){n.ig.Object.prototype.init.call(this)},b:function(t,i){var u,s,f;if(t.count$1(n.ig.Measure.prototype.$type)==0)return null;for(var r=new n.ig.MdxAxisFilterElement,e=new n.ig.MdxElementCollectionElement,o=t.getEnumerator();o.moveNext();)u=o.current(),s=new n.ig.MdxSingleElement(0,u.uniqueName(),u.uniqueName(),0),e.addElement(s);return f=new n.ig.MdxSlicerSet,f.addElement(r),i.addSet(f),r.addFilterPart(e,!0),r},a:function(t,i){for(var u,f,o,a=this,r=new n.ig.MdxAxisFilterElement,e=0;e<t.count();e++){for(var l=t.item(e),s=new n.ig.MdxElementCollectionElement,h=new n.ig.Dictionary$2(String,n.ig.MdxSingleElement.prototype.$type,0),c=l.a().getEnumerator();c.moveNext();)u=c.current(),function(){var n=h.tryGetValue(u,f);return f=n.value,n.ret}()||(f=new n.ig.MdxSingleElement(0,u,u,-1),h.add(u,f)),s.addElement(f);r.addFilterPart(s,!1)}return r.filterCollection().count()==0&&r.singleFilterElements().count()==0?null:(o=new n.ig.MdxSlicerSet,o.addElement(r),i.addSet(o),r)},$type:new n.ig.Type("MdxSlicerAxisBuilder",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("IXmlaDataProviderFactory","Object",{$type:new n.ig.Type("IXmlaDataProviderFactory",null,[n.ig.IOlapDataProviderFactory.prototype.$type])},!0);n.ig.util.defType("DefaultXmlaDataProviderFactory","Object",{b:null,a:null,init:function(t,i){n.ig.Object.prototype.init.call(this);this.b=t;this.a=i},createDataProvider:function(){return new n.ig.XmlaDataProvider(new n.ig.XmlaConnection(new n.ig.Uri(this.b),this.a),null)},$type:new n.ig.Type("DefaultXmlaDataProviderFactory",n.ig.Object.prototype.$type,[n.ig.IXmlaDataProviderFactory.prototype.$type])},!0);n.ig.util.defType("RemoteXmlaDataProviderFactory","Object",{a:null,b:null,d:null,c:null,init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}n.ig.Object.prototype.init.call(this);this.a=new n.ig.JsonRemoteRequestSerializer;this.b=new n.ig.JsonRemoteResponseSerializer},init1:function(t,i,r){n.ig.Object.prototype.init.call(this);this.a=new n.ig.JsonRemoteRequestSerializer;this.b=new n.ig.JsonRemoteResponseSerializer;this.d=i;this.c=r},init2:function(t,i,r){n.ig.Object.prototype.init.call(this);this.a=i;this.b=r},createDataProvider:function(){return new n.ig.RemoteXmlaDataProvder(this.d,this.c,this.a,this.b)},$type:new n.ig.Type("RemoteXmlaDataProviderFactory",n.ig.Object.prototype.$type,[n.ig.IXmlaDataProviderFactory.prototype.$type])},!0);n.ig.util.defType("IRemoteRequestSerializer","Object",{$type:new n.ig.Type("IRemoteRequestSerializer",null)},!0);n.ig.util.defType("IRemoteResponseSerializer","Object",{$type:new n.ig.Type("IRemoteResponseSerializer",null)},!0);n.ig.util.defType("JsonRemoteRequestSerializer","Object",{a:null,init:function(){n.ig.Object.prototype.init.call(this);this.a=new n.ig.JavaScriptSerializer},serializeRequest:function(t){return n.ig.RemoteRequestJsonTypeSeriazlier.prototype.b().serialize(t,this.a)},deserializeRequest:function(t){return n.ig.RemoteRequestJsonTypeSeriazlier.prototype.b().deserialize(t,this.a)},$type:new n.ig.Type("JsonRemoteRequestSerializer",n.ig.Object.prototype.$type,[n.ig.IRemoteRequestSerializer.prototype.$type])},!0);n.ig.util.defType("JsonRemoteResponseSerializer","Object",{a:null,init:function(){n.ig.Object.prototype.init.call(this);this.a=new n.ig.JavaScriptSerializer},serializeResponse:function(t,i){switch(i){case n.ig.RemoteRequestType.prototype.discoverCatalogs:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.Catalog.prototype.$type,t,n.ig.CatalogJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverCubes:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.Cube.prototype.$type,t,n.ig.CubeJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverDimensions:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.Dimension.prototype.$type,t,n.ig.DimensionJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverHierarchies:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.Hierarchy.prototype.$type,t,n.ig.HierarchyJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverLevels:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.Level.prototype.$type,t,n.ig.LevelJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverMeasures:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.Measure.prototype.$type,t,n.ig.MeasureJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverMeasureGroups:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.MeasureGroup.prototype.$type,t,n.ig.MeasureGroupJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.MeasureGroupDimension.prototype.$type,t,n.ig.MeasureGroupDimensionJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverMembers:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.Member.prototype.$type,t,n.ig.MemberJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverKpis:return n.ig.ArrayJsonSerializer.prototype.b().f(n.ig.Kpi.prototype.$type,t,n.ig.KpiJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.executeStatement:return n.ig.ResultJsonTypeSeriazlier.prototype.b().serialize(t,this.a);default:throw new n.ig.Error(1,"Unknown RemoteXmlaRequestType.");}},deserializeResponse:function(t,i){switch(i){case n.ig.RemoteRequestType.prototype.discoverCatalogs:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.Catalog.prototype.$type,t,n.ig.CatalogJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverCubes:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.Cube.prototype.$type,t,n.ig.CubeJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverDimensions:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.Dimension.prototype.$type,t,n.ig.DimensionJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverHierarchies:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.Hierarchy.prototype.$type,t,n.ig.HierarchyJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverLevels:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.Level.prototype.$type,t,n.ig.LevelJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverMeasures:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.Measure.prototype.$type,t,n.ig.MeasureJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverMeasureGroups:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.MeasureGroup.prototype.$type,t,n.ig.MeasureGroupJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.MeasureGroupDimension.prototype.$type,t,n.ig.MeasureGroupDimensionJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverMembers:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.Member.prototype.$type,t,n.ig.MemberJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.discoverKpis:return n.ig.ArrayJsonSerializer.prototype.b().d(n.ig.Kpi.prototype.$type,t,n.ig.KpiJsonTypeSeriazlier.prototype.b(),this.a);case n.ig.RemoteRequestType.prototype.executeStatement:return n.ig.ResultJsonTypeSeriazlier.prototype.b().deserialize(t,this.a);default:throw new n.ig.Error(1,"Unknown RemoteXmlaRequestType.");}},$type:new n.ig.Type("JsonRemoteResponseSerializer",n.ig.Object.prototype.$type,[n.ig.IRemoteResponseSerializer.prototype.$type])},!0);n.ig.util.defType("ArrayJsonSerializer","Object",{init:function(){n.ig.Object.prototype.init.call(this)},b:function(){return n.ig.ArrayJsonSerializer.prototype.a},d:function(n,t,i,r){var u=r.a(t);return this.e(n,u,i)},f:function(n,t,i,r){var u=this.c(n,t,i);return r.b(u)},e:function(t,i,r){for(var e,f=new n.ig.List$1(t,0),u=0;u<i.length;u++)e=i[u],f.add(r.fromJsonObject(e));return f},c:function(n,t,i){for(var u=t.toArray$1(n),f=new Array(u.length),r=0;r<u.length;r++)f[r]=i.toJsonObject(u[r]);return f},$type:new n.ig.Type("ArrayJsonSerializer",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("IJsonTypeSerializer$1","Object",{$type:new n.ig.Type("IJsonTypeSerializer$1",null)},!0);n.ig.util.defType("JsonTypeSeriazlierBase$1","Object",{$t:null,init:function(t){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.Object.prototype.init.call(this)},deserialize:function(n,t){return this.fromJsonObject(t.a(n))},serialize:function(n,t){return t.b(this.toJsonObject(n))},fromJsonObject:function(){},toJsonObject:function(){},$type:new n.ig.Type("JsonTypeSeriazlierBase$1",n.ig.Object.prototype.$type,[n.ig.IJsonTypeSerializer$1.prototype.$type.specialize(0)])},!0);n.ig.util.defType("AxisJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.OlapResultAxis.prototype.$type)},b:function(){return n.ig.AxisJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var f=this,u=n.ig.JsonSerializerUtils.prototype.d(t,"n"),i=n.ig.ArrayJsonSerializer.prototype.b().e(n.ig.OlapResultTuple.prototype.$type,n.ig.JsonSerializerUtils.prototype.d(t,"t"),n.ig.TupleJsonTypeSeriazlier.prototype.b()),r=0;return i.count()>0&&(r=i.item(0).members().count()),function(){var t=new n.ig.OlapResultAxis(i,r);return t.name(u),t}()},toJsonObject:function(t){var r=n.ig.ArrayJsonSerializer.prototype.b().c(n.ig.OlapResultTuple.prototype.$type,t.tuples(),n.ig.TupleJsonTypeSeriazlier.prototype.b()),i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"t",r),i},$type:new n.ig.Type("AxisJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.OlapResultAxis.prototype.$type))},!0);n.ig.util.defType("AxisMemberJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.OlapResultAxisMember.prototype.$type)},b:function(){return n.ig.AxisMemberJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.OlapResultAxisMember;return i.hierarchyUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"hun")),i.uniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"un")),i.levelUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"lun")),i.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),i.levelNumber(n.ig.JsonSerializerUtils.prototype.d(t,"ln")),i.displayInfo(n.ig.JsonSerializerUtils.prototype.d(t,"di")),i.properties(n.ig.JsonSerializerUtils.prototype.b(t,"p")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"hun",t.hierarchyUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"un",t.uniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"lun",t.levelUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"ln",t.levelNumber()),n.ig.JsonSerializerUtils.prototype.f(i,"di",t.displayInfo()),n.ig.JsonSerializerUtils.prototype.g(i,"p",t.properties()),i},$type:new n.ig.Type("AxisMemberJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.OlapResultAxisMember.prototype.$type))},!0);n.ig.util.defType("CatalogJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.Catalog.prototype.$type)},b:function(){return n.ig.CatalogJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.Catalog;return i.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),i.description(n.ig.JsonSerializerUtils.prototype.d(t,"d")),i.name(n.ig.JsonSerializerUtils.prototype.d(t,"n")),i.uniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"un")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.description()),n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"un",t.uniqueName()),i},$type:new n.ig.Type("CatalogJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.Catalog.prototype.$type))},!0);n.ig.util.defType("CellJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.OlapResultCell.prototype.$type)},b:function(){return n.ig.CellJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.OlapResultCell;return i.cellOrdinal(n.ig.JsonSerializerUtils.prototype.d(t,"co")),i.properties(n.ig.JsonSerializerUtils.prototype.a(t,"p")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"co",t.cellOrdinal()),n.ig.JsonSerializerUtils.prototype.e(i,"p",t.properties()),i},$type:new n.ig.Type("CellJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.OlapResultCell.prototype.$type))},!0);n.ig.util.defType("CubeJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.Cube.prototype.$type)},b:function(){return n.ig.CubeJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.Cube;return i.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),i.description(n.ig.JsonSerializerUtils.prototype.d(t,"d")),i.name(n.ig.JsonSerializerUtils.prototype.d(t,"n")),i.catalogName(n.ig.JsonSerializerUtils.prototype.d(t,"cn")),i.cubeType(n.ig.JsonSerializerUtils.prototype.d(t,"ct")),i.lastProcessed(n.ig.JsonSerializerUtils.prototype.d(t,"lp")),i.lastUpdated(n.ig.JsonSerializerUtils.prototype.d(t,"lu")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.description()),n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"cn",t.catalogName()),n.ig.JsonSerializerUtils.prototype.f(i,"ct",t.cubeType()),n.ig.JsonSerializerUtils.prototype.f(i,"lp",t.lastProcessed()),n.ig.JsonSerializerUtils.prototype.f(i,"lu",t.lastUpdated()),i},$type:new n.ig.Type("CubeJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.Cube.prototype.$type))},!0);n.ig.util.defType("DimensionJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.Dimension.prototype.$type)},b:function(){return n.ig.DimensionJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.Dimension;return i.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),i.description(n.ig.JsonSerializerUtils.prototype.d(t,"d")),i.name(n.ig.JsonSerializerUtils.prototype.d(t,"n")),i.uniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"un")),i.dimensionType(n.ig.JsonSerializerUtils.prototype.d(t,"dt")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.description()),n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"un",t.uniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"dt",t.dimensionType()),i},$type:new n.ig.Type("DimensionJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.Dimension.prototype.$type))},!0);n.ig.util.defType("HierarchyJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.Hierarchy.prototype.$type)},b:function(){return n.ig.HierarchyJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.Hierarchy;return i.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),i.description(n.ig.JsonSerializerUtils.prototype.d(t,"d")),i.name(n.ig.JsonSerializerUtils.prototype.d(t,"n")),i.uniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"un")),i.allMember(n.ig.JsonSerializerUtils.prototype.d(t,"am")),i.defaultMember(n.ig.JsonSerializerUtils.prototype.d(t,"dm")),i.dimensionUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"dun")),i.hierarchyDisplayFolder(n.ig.JsonSerializerUtils.prototype.d(t,"hdf")),i.hierarchyOrigin(n.ig.JsonSerializerUtils.prototype.d(t,"ho")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.description()),n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"un",t.uniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"am",t.allMember()),n.ig.JsonSerializerUtils.prototype.f(i,"dm",t.defaultMember()),n.ig.JsonSerializerUtils.prototype.f(i,"dun",t.dimensionUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"hdf",t.hierarchyDisplayFolder()),n.ig.JsonSerializerUtils.prototype.f(i,"ho",t.hierarchyOrigin()),i},$type:new n.ig.Type("HierarchyJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.Hierarchy.prototype.$type))},!0);n.ig.util.defType("JsonSerializerUtils","Object",{init:function(){n.ig.Object.prototype.init.call(this)},c:function(){return n.ig.jQueryUtils.prototype.createJavascriptObject()},d:function(t,i){return n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,i)},f:function(t,i,r){n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(t,i,r)},a:function(t,i){return n.ig.jQueryUtils.prototype.convertToObjectDictionary(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,i))},e:function(t,i,r){var u=n.ig.jQueryUtils.prototype.convertFromObjectDictionary(r);n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(t,i,u)},b:function(t,i){return n.ig.jQueryUtils.prototype.convertToStringDictionary(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,i))},g:function(t,i,r){var u=n.ig.jQueryUtils.prototype.convertFromStringDictionary(r);n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(t,i,u)},$type:new n.ig.Type("JsonSerializerUtils",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("KpiJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.Kpi.prototype.$type)},b:function(){return n.ig.KpiJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.Kpi;return i.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),i.description(n.ig.JsonSerializerUtils.prototype.d(t,"d")),i.name(n.ig.JsonSerializerUtils.prototype.d(t,"n")),i.uniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"un")),i.kpiDisplayFolder(n.ig.JsonSerializerUtils.prototype.d(t,"kdf")),i.measureGroupName(n.ig.JsonSerializerUtils.prototype.d(t,"mgn")),i.kpiStatusGraphic(n.ig.JsonSerializerUtils.prototype.d(t,"ksg")),i.kpiTrendGraphic(n.ig.JsonSerializerUtils.prototype.d(t,"ktg")),i.parentKpiName(n.ig.JsonSerializerUtils.prototype.d(t,"pkn")),i.kpiGoal(n.ig.JsonSerializerUtils.prototype.d(t,"kg")),i.kpiStatus(n.ig.JsonSerializerUtils.prototype.d(t,"ks")),i.kpiTrend(n.ig.JsonSerializerUtils.prototype.d(t,"kt")),i.kpiValue(n.ig.JsonSerializerUtils.prototype.d(t,"kv")),i.kpiWeight(n.ig.JsonSerializerUtils.prototype.d(t,"kw")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.description()),n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"un",t.uniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"kdf",t.kpiDisplayFolder()),n.ig.JsonSerializerUtils.prototype.f(i,"mgn",t.measureGroupName()),n.ig.JsonSerializerUtils.prototype.f(i,"ksg",t.kpiStatusGraphic()),n.ig.JsonSerializerUtils.prototype.f(i,"ktg",t.kpiTrendGraphic()),n.ig.JsonSerializerUtils.prototype.f(i,"pkn",t.parentKpiName()),n.ig.JsonSerializerUtils.prototype.f(i,"kg",t.kpiGoal()),n.ig.JsonSerializerUtils.prototype.f(i,"ks",t.kpiStatus()),n.ig.JsonSerializerUtils.prototype.f(i,"kt",t.kpiTrend()),n.ig.JsonSerializerUtils.prototype.f(i,"kv",t.kpiValue()),n.ig.JsonSerializerUtils.prototype.f(i,"kw",t.kpiWeight()),i},$type:new n.ig.Type("KpiJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.Kpi.prototype.$type))},!0);n.ig.util.defType("LevelJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.Level.prototype.$type)},b:function(){return n.ig.LevelJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.Level;return i.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),i.description(n.ig.JsonSerializerUtils.prototype.d(t,"d")),i.name(n.ig.JsonSerializerUtils.prototype.d(t,"n")),i.uniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"un")),i.depth(n.ig.JsonSerializerUtils.prototype.d(t,"d")),i.dimensionUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"dun")),i.hierarchyUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"hun")),i.levelOrderingProperty(n.ig.JsonSerializerUtils.prototype.d(t,"lop")),i.levelOrigin(n.ig.JsonSerializerUtils.prototype.d(t,"lo")),i.membersCount(n.ig.JsonSerializerUtils.prototype.d(t,"mc")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.description()),n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"un",t.uniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.depth()),n.ig.JsonSerializerUtils.prototype.f(i,"dun",t.dimensionUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"hun",t.hierarchyUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"lop",t.levelOrderingProperty()),n.ig.JsonSerializerUtils.prototype.f(i,"lo",t.levelOrigin()),n.ig.JsonSerializerUtils.prototype.f(i,"mc",t.membersCount()),i},$type:new n.ig.Type("LevelJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.Level.prototype.$type))},!0);n.ig.util.defType("MeasureGroupDimensionJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.MeasureGroupDimension.prototype.$type)},b:function(){return n.ig.MeasureGroupDimensionJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.MeasureGroupDimension;return i.catalogName(n.ig.JsonSerializerUtils.prototype.d(t,"cn")),i.cubeName(n.ig.JsonSerializerUtils.prototype.d(t,"cbn")),i.dimensionCardinality(n.ig.JsonSerializerUtils.prototype.d(t,"dc")),i.dimensionGranularity(n.ig.JsonSerializerUtils.prototype.d(t,"dg")),i.dimensionPath(n.ig.JsonSerializerUtils.prototype.d(t,"dap")),i.dimensionUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"dun")),i.isDimensionVisible(n.ig.JsonSerializerUtils.prototype.d(t,"idv")),i.isFactDimension(n.ig.JsonSerializerUtils.prototype.d(t,"iafd")),i.measureGroupCardinality(n.ig.JsonSerializerUtils.prototype.d(t,"mgc")),i.measureGroupName(n.ig.JsonSerializerUtils.prototype.d(t,"mgn")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"cn",t.catalogName()),n.ig.JsonSerializerUtils.prototype.f(i,"cbn",t.cubeName()),n.ig.JsonSerializerUtils.prototype.f(i,"dc",t.dimensionCardinality()),n.ig.JsonSerializerUtils.prototype.f(i,"dg",t.dimensionGranularity()),n.ig.JsonSerializerUtils.prototype.f(i,"dap",t.dimensionPath()),n.ig.JsonSerializerUtils.prototype.f(i,"dun",t.dimensionUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"idv",t.isDimensionVisible()),n.ig.JsonSerializerUtils.prototype.f(i,"iafd",t.isFactDimension()),n.ig.JsonSerializerUtils.prototype.f(i,"mgc",t.measureGroupCardinality()),n.ig.JsonSerializerUtils.prototype.f(i,"mgn",t.measureGroupName()),i},$type:new n.ig.Type("MeasureGroupDimensionJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.MeasureGroupDimension.prototype.$type))},!0);n.ig.util.defType("MeasureGroupJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.MeasureGroup.prototype.$type)},b:function(){return n.ig.MeasureGroupJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.MeasureGroup;return i.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),i.description(n.ig.JsonSerializerUtils.prototype.d(t,"d")),i.name(n.ig.JsonSerializerUtils.prototype.d(t,"n")),i.catalogName(n.ig.JsonSerializerUtils.prototype.d(t,"cn")),i.cubeName(n.ig.JsonSerializerUtils.prototype.d(t,"cbn")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.description()),n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"cn",t.catalogName()),n.ig.JsonSerializerUtils.prototype.f(i,"cbn",t.cubeName()),i},$type:new n.ig.Type("MeasureGroupJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.MeasureGroup.prototype.$type))},!0);n.ig.util.defType("MeasureJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.Measure.prototype.$type)},b:function(){return n.ig.MeasureJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.Measure;return i.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),i.description(n.ig.JsonSerializerUtils.prototype.d(t,"d")),i.name(n.ig.JsonSerializerUtils.prototype.d(t,"n")),i.uniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"un")),i.aggregatorType(n.ig.JsonSerializerUtils.prototype.d(t,"at")),i.defaultFormatString(n.ig.JsonSerializerUtils.prototype.d(t,"dfs")),i.measureDisplayFolder(n.ig.JsonSerializerUtils.prototype.d(t,"mdf")),i.measureGroupName(n.ig.JsonSerializerUtils.prototype.d(t,"mgn")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.description()),n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"un",t.uniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"at",t.aggregatorType()),n.ig.JsonSerializerUtils.prototype.f(i,"dfs",t.defaultFormatString()),n.ig.JsonSerializerUtils.prototype.f(i,"mdf",t.measureDisplayFolder()),n.ig.JsonSerializerUtils.prototype.f(i,"mgn",t.measureGroupName()),i},$type:new n.ig.Type("MeasureJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.Measure.prototype.$type))},!0);n.ig.util.defType("MemberJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.Member.prototype.$type)},b:function(){return n.ig.MemberJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var u=this,r=n.ig.util.toNullable(n.ig.Number.prototype.$type,null),i=n.ig.JsonSerializerUtils.prototype.d(t,"s");return function(){var u=new n.ig.Member;return u.caption(n.ig.JsonSerializerUtils.prototype.d(t,"c")),u.description(n.ig.JsonSerializerUtils.prototype.d(t,"d")),u.name(n.ig.JsonSerializerUtils.prototype.d(t,"n")),u.uniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"un")),u.catalogName(n.ig.JsonSerializerUtils.prototype.d(t,"cn")),u.childrenCardinality(n.ig.JsonSerializerUtils.prototype.d(t,"cc")),u.cubeName(n.ig.JsonSerializerUtils.prototype.d(t,"cbn")),u.dimensionUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"dun")),u.hierarchyUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"hun")),u.levelDepth(n.ig.JsonSerializerUtils.prototype.d(t,"ld")),u.levelUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"lun")),u.memberType(n.ig.JsonSerializerUtils.prototype.d(t,"mt")),u.parentLevel(n.ig.JsonSerializerUtils.prototype.d(t,"pl")),u.parentUniqueName(n.ig.JsonSerializerUtils.prototype.d(t,"pun")),u.scope(i==null?r:n.ig.Number.prototype.parseInt(i)),u}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"c",t.caption()),n.ig.JsonSerializerUtils.prototype.f(i,"d",t.description()),n.ig.JsonSerializerUtils.prototype.f(i,"n",t.name()),n.ig.JsonSerializerUtils.prototype.f(i,"un",t.uniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"cn",t.catalogName()),n.ig.JsonSerializerUtils.prototype.f(i,"cc",t.childrenCardinality()),n.ig.JsonSerializerUtils.prototype.f(i,"cbn",t.cubeName()),n.ig.JsonSerializerUtils.prototype.f(i,"dun",t.dimensionUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"hun",t.hierarchyUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"ld",t.levelDepth()),n.ig.JsonSerializerUtils.prototype.f(i,"lun",t.levelUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"mt",t.memberType()),n.ig.JsonSerializerUtils.prototype.f(i,"pl",t.parentLevel()),n.ig.JsonSerializerUtils.prototype.f(i,"pun",t.parentUniqueName()),n.ig.JsonSerializerUtils.prototype.f(i,"s",t.scope()),i},$type:new n.ig.Type("MemberJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.Member.prototype.$type))},!0);n.ig.util.defType("RemoteRequest","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},$type:new n.ig.Type("RemoteRequest",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("RemoteRequestJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.RemoteRequest.prototype.$type)},b:function(){return n.ig.RemoteRequestJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var i=this;return function(){var i=new n.ig.RemoteRequest;return i.a(n.ig.JsonSerializerUtils.prototype.d(t,"t")),i.c(n.ig.JsonSerializerUtils.prototype.b(t,"p")),i.d(n.ig.JsonSerializerUtils.prototype.b(t,"r")),i.b(n.ig.JsonSerializerUtils.prototype.b(t,"par")),i.e(n.ig.JsonSerializerUtils.prototype.d(t,"s")),i}()},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"t",t.a()),n.ig.JsonSerializerUtils.prototype.g(i,"p",t.c()),n.ig.JsonSerializerUtils.prototype.g(i,"r",t.d()),n.ig.JsonSerializerUtils.prototype.g(i,"par",t.b()),n.ig.JsonSerializerUtils.prototype.f(i,"s",t.e()),i},$type:new n.ig.Type("RemoteRequestJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.RemoteRequest.prototype.$type))},!0);n.ig.util.defType("ResultJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.OlapResult.prototype.$type)},b:function(){return n.ig.ResultJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){var f=this,u=n.ig.JsonSerializerUtils.prototype.d(t,"ie"),i,r;return u?function(){var t=new n.ig.OlapResult;return t.isEmpty(!0),t}():(i=n.ig.ArrayJsonSerializer.prototype.b().e(n.ig.OlapResultAxis.prototype.$type,n.ig.JsonSerializerUtils.prototype.d(t,"a"),n.ig.AxisJsonTypeSeriazlier.prototype.b()),r=n.ig.ArrayJsonSerializer.prototype.b().e(n.ig.OlapResultCell.prototype.$type,n.ig.JsonSerializerUtils.prototype.d(t,"c"),n.ig.CellJsonTypeSeriazlier.prototype.b()),function(){var t=new n.ig.OlapResult;return t.axes(i),t.cells(r),t}())},toJsonObject:function(t){var i=n.ig.JsonSerializerUtils.prototype.c(),r,u;return n.ig.JsonSerializerUtils.prototype.f(i,"ie",t.isEmpty()),t.isEmpty()||(r=n.ig.ArrayJsonSerializer.prototype.b().c(n.ig.OlapResultAxis.prototype.$type,t.axes(),n.ig.AxisJsonTypeSeriazlier.prototype.b()),u=n.ig.ArrayJsonSerializer.prototype.b().c(n.ig.OlapResultCell.prototype.$type,t.cells(),n.ig.CellJsonTypeSeriazlier.prototype.b()),n.ig.JsonSerializerUtils.prototype.f(i,"a",r),n.ig.JsonSerializerUtils.prototype.f(i,"c",u)),i},$type:new n.ig.Type("ResultJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.OlapResult.prototype.$type))},!0);n.ig.util.defType("TupleJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){n.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,n.ig.OlapResultTuple.prototype.$type)},b:function(){return n.ig.TupleJsonTypeSeriazlier.prototype.a},fromJsonObject:function(t){for(var i=n.ig.ArrayJsonSerializer.prototype.b().e(n.ig.OlapResultAxisMember.prototype.$type,n.ig.JsonSerializerUtils.prototype.d(t,"m"),n.ig.AxisMemberJsonTypeSeriazlier.prototype.b()),r=new n.ig.OlapResultTuple(i),u=i.getEnumerator(),f;u.moveNext();)f=u.current(),f.position(r);return r},toJsonObject:function(t){var r=n.ig.ArrayJsonSerializer.prototype.b().c(n.ig.OlapResultAxisMember.prototype.$type,t.members(),n.ig.AxisMemberJsonTypeSeriazlier.prototype.b()),i=n.ig.JsonSerializerUtils.prototype.c();return n.ig.JsonSerializerUtils.prototype.f(i,"m",r),i},$type:new n.ig.Type("TupleJsonTypeSeriazlier",n.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize(n.ig.OlapResultTuple.prototype.$type))},!0);n.ig.util.defType("RemoteXmlaDataProvder","Object",{e:null,d:null,a:null,b:null,init:function(t,i,r,u){n.ig.Object.prototype.init.call(this);this.e=t;this.d=i;this.a=r;this.b=u},discoverCatalogsAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverCatalogs,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Catalog.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverCatalogs)})},discoverCubesAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverCubes,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Cube.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverCubes)})},discoverDimensionsAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverDimensions,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Dimension.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverDimensions)})},discoverHierarchiesAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverHierarchies,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Hierarchy.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverHierarchies)})},discoverLevelsAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverLevels,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Level.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverLevels)})},discoverMeasuresAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverMeasures,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Measure.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverMeasures)})},discoverMeasureGroupsAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverMeasureGroups,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.MeasureGroup.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverMeasureGroups)})},discoverMeasureGroupDimensionsAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.MeasureGroupDimension.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions)})},discoverMembersAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverMembers,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverMembers)})},discoverKpisAsync:function(t,i){var r=this,u=r.b;return r.f(n.ig.RemoteRequestType.prototype.discoverKpis,t,i,null,null).j(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Kpi.prototype.$type),function(t){return u.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.discoverKpis)})},executeStatementAsync:function(t,i,r){var u=this,f=u.b;return u.f(n.ig.RemoteRequestType.prototype.executeStatement,i,null,r,t).j(n.ig.OlapResult.prototype.$type,function(t){return f.deserializeResponse(t.m(),n.ig.RemoteRequestType.prototype.executeStatement)})},f:function(t,i,r,u,f){var e=this,o=function(){var t=new n.ig.WebClient;return t.a(e.d),t}(),h=e.a.serializeRequest(function(){var o=new n.ig.RemoteRequest;return o.a(t),o.c(e.c(i)),o.d(e.c(r)),o.b(e.c(u)),o.e(f),o}()),s=new n.ig.TaskCompletionSource$1(String,0);return o.uploadStringCompleted=n.ig.Delegate.prototype.combine(o.uploadStringCompleted,e.g.runOn(e)),o.h(new n.ig.Uri(e.e),"POST",h,s),s.b()},g:function(n,t){var i=t.userState();t.cancelled()?i.c():t.error()!=null?i.d(t.error()):i.e(t.result())},c:function(t){var i,r,u;if(t==null)return null;for(i=new n.ig.Dictionary$2(String,String,0),r=t.getEnumerator();r.moveNext();)u=r.current(),i.add(u.a(),u.b());return i},$type:new n.ig.Type("RemoteXmlaDataProvder",n.ig.Object.prototype.$type,[n.ig.IXmlaDataProvider.prototype.$type])},!0);n.ig.util.defType("XmlaConnection","Object",{b:null,a:null,init:function(t,i){n.ig.Object.prototype.init.call(this);this.b=t;this.a=i},getXmlaSoapWebClient$1:function(t){var i=new n.ig.XmlaSoapWebClient$1(t,this.b,n.ig.Encoding.prototype.uTF8());return i.e(this.a),i},$type:new n.ig.Type("XmlaConnection",n.ig.Object.prototype.$type,[n.ig.ICoreXmlaConnection.prototype.$type])},!0);n.ig.util.defType("XmlaDataSourceImpl","MdxDataSourceImpl",{init:function(t){n.ig.MdxDataSourceImpl.prototype.init.call(this,t);this.xmlaSourceOptions(t)},_xmlaSourceOptions:null,xmlaSourceOptions:function(n){return arguments.length===1?(this._xmlaSourceOptions=n,n):this._xmlaSourceOptions},aq:function(t){var i=this,f=i.dataProviderFactory().createDataProvider(),u=i.getProviderDefaultRestrictions(),r;return i.bj(u,n.ig.CubeRestrictions.prototype.a,t),r=i.getProviderDefaultProperties(),i.bj(r,n.ig.XmlaDiscoverProperties.prototype.a,t),f.discoverCubesAsync(r,u).j(n.ig.IList$1.prototype.$type.specialize(n.ig.Cube.prototype.$type),function(t){return i.cubes(i.a1(n.ig.Cube.prototype.$type,t.m())),i.cubes()})},ar:function(){var t=this,u=t.catalog().name(),f=t.cube().name(),e=t.dataProviderFactory().createDataProvider(),i=t.getProviderDefaultRestrictions(),r;return t.bj(i,n.ig.MeasureGroupRestrictions.prototype.a,u),t.bj(i,n.ig.MeasureGroupRestrictions.prototype.b,f),r=t.getProviderDefaultProperties(),t.bj(r,n.ig.XmlaDiscoverProperties.prototype.a,u),e.discoverMeasureGroupsAsync(r,i).j(n.ig.IList$1.prototype.$type.specialize(n.ig.MeasureGroup.prototype.$type),function(i){return t.measureGroups(t.a1(n.ig.MeasureGroup.prototype.$type,i.m())),t.measureGroups()})},h:function(){return new n.ig.DefaultXmlaDataProviderFactory(this.xmlaSourceOptions().serverUrl(),this.xmlaSourceOptions().requestOptions())},getProviderDefaultProperties:function(){var t=this,i=new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0),r,u,f;if(t.mdxSourceOptions().discoverProperties()!=null)for(r=t.mdxSourceOptions().discoverProperties().getEnumerator();r.moveNext();)u=r.current(),f=new n.ig.XmlaQueryProperty(1,u.key(),u.value()),i.add(function(){var t=new n.ig.KeyValueItem;return t.a(f.a()),t.b(f.c()),t}());return t.catalog()!=null&&t.bj(i,n.ig.XmlaDiscoverProperties.prototype.a,t.catalog().name()),i},$type:new n.ig.Type("XmlaDataSourceImpl",n.ig.MdxDataSourceImpl.prototype.$type)},!0);n.ig.util.defType("XmlaDiscoverProperties","Object",{init:function(){n.ig.Object.prototype.init.call(this)},$type:new n.ig.Type("XmlaDiscoverProperties",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("XmlaDataSourceOptions","MdxDataSourceOptions",{init:function(){n.ig.MdxDataSourceOptions.prototype.init.call(this)},_serverUrl:null,serverUrl:function(n){return arguments.length===1?(this._serverUrl=n,n):this._serverUrl},_requestOptions:null,requestOptions:function(n){return arguments.length===1?(this._requestOptions=n,n):this._requestOptions},$type:new n.ig.Type("XmlaDataSourceOptions",n.ig.MdxDataSourceOptions.prototype.$type)},!0);n.ig.util.defType("RequestOptions","NetworkCredential",{init:function(t,i,r){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.RequestOptions.prototype.init1.call(this,1,i,r,String.empty())},init1:function(t,i,r,u){n.ig.NetworkCredential.prototype.init1.call(this,1,i,r,u)},$type:new n.ig.Type("RequestOptions",n.ig.NetworkCredential.prototype.$type)},!0);n.ig.util.defType("CustomRemoteXmlaRequestSerializer","Object",{a:null,init:function(t){n.ig.Object.prototype.init.call(this);this.a=t},serializeRequest:function(n){return this.a(n)},deserializeRequest:function(){throw new n.ig.NotSupportedException(1);},$type:new n.ig.Type("CustomRemoteXmlaRequestSerializer",n.ig.Object.prototype.$type,[n.ig.IRemoteRequestSerializer.prototype.$type])},!0);n.ig.util.defType("CustomRemoteXmlaResponseSerializer","Object",{a:null,init:function(t){n.ig.Object.prototype.init.call(this);this.a=t},serializeResponse:function(){throw new n.ig.NotSupportedException(1);},deserializeResponse:function(n,t){return this.a(n,t)},$type:new n.ig.Type("CustomRemoteXmlaResponseSerializer",n.ig.Object.prototype.$type,[n.ig.IRemoteResponseSerializer.prototype.$type])},!0);n.ig.util.defType("OlapXmlaDataSource","DataSourceBase",{staticInit:function(){n.ig.OlapXmlaDataSource.prototype.a5()},init:function(t){var rt=this,o,l,a,v;n.ig.DataSourceBase.prototype.init.call(this);var r=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"serverUrl"),y=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"catalog"),p=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"cube"),w=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"measures"),b=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"measureGroup"),k=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"filters"),d=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"columns"),g=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"rows"),i=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"requestOptions"),u=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"enableResultCache"),f=!0;u!=null&&(f=u);var nt=n.ig.jQueryUtils.prototype.convertToStringDictionary(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"discoverProperties")),tt=n.ig.jQueryUtils.prototype.convertToStringDictionary(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"executeProperties")),e=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"isRemote");e&&(i==null&&(i={}),o=i,o.isCrossDomain=!1);var s=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"serializeRequest"),h=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"deserializeResponse"),it=this.a0(t),c=function(){var t=new n.ig.XmlaDataSourceOptions;return t.serverUrl(r),t.requestOptions(i),t.catalog(y),t.cube(p),t.measures(w),t.measureGroup(b),t.filters(k),t.columns(d),t.rows(g),t.discoverProperties(nt),t.executeProperties(tt),t.enableResultCache(f),t.mdxSettings(it),t}();e&&(l=null,a=null,s!=null&&(l=new n.ig.CustomRemoteXmlaRequestSerializer(s)),h!=null&&(a=new n.ig.CustomRemoteXmlaResponseSerializer(h)),v=new n.ig.RemoteXmlaDataProviderFactory(1,r,i),c.dataProviderFactory(v));this.dataSource(new n.ig.XmlaDataSourceImpl(c))},catalogs:function(){return this.dataSource().catalogs().inner()},catalog:function(){return this.dataSource().catalog()},setCatalog:function(t){var i=this;return i.dataSource().setCatalog(t).j(n.ig.Array.prototype.$type,function(n){return n.m().inner()}).c()},measureGroups:function(){return this.dataSource().measureGroups().inner()},measureGroup:function(){return this.dataSource().measureGroup()},setMeasureGroup:function(t){var i=this;return i.dataSource().setMeasureGroup(t).j(n.ig.OlapMetadataTreeItem.prototype.$type,function(n){return n.m()}).c()},a0:function(t){var i=new n.ig.MdxSettings,r=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"mdxSettings"),s,h,c,l,u,f,e,o;if(r==null)return i;if(s=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"nonEmptyOnRows"),s!=null&&i.y(s),h=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"nonEmptyOnColumns"),h!=null&&i.x(h),c=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"addCalculatedMembersOnRows"),c!=null&&i.q(c),l=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"addCalculatedMembersOnColumns"),l!=null&&i.p(l),u=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"dimensionPropertiesOnRows"),u!=null)for(f=0;f<u.count();f++)i.ac().add(u.item(f));if(e=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"dimensionPropertiesOnColumns"),e!=null)for(o=0;o<e.count();o++)i.ab().add(e.item(o));return i},a5:function(){n.ig.StringBuilder.prototype.toString=function(){return this._internal.join("")};n.ig.XObject.prototype.toString=function(){return this.backingNode()!=null?n.ig.XmlUtils.prototype.xmlNodeToString(this.backingNode()):""}},$type:new n.ig.Type("OlapXmlaDataSource",n.ig.DataSourceBase.prototype.$type)},!0);n.ig.RemoteRequestType.prototype.discoverCatalogs=0;n.ig.RemoteRequestType.prototype.discoverCubes=1;n.ig.RemoteRequestType.prototype.discoverDimensions=2;n.ig.RemoteRequestType.prototype.discoverHierarchies=3;n.ig.RemoteRequestType.prototype.discoverLevels=4;n.ig.RemoteRequestType.prototype.discoverMeasures=5;n.ig.RemoteRequestType.prototype.discoverMeasureGroups=6;n.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions=7;n.ig.RemoteRequestType.prototype.discoverMembers=8;n.ig.RemoteRequestType.prototype.discoverKpis=9;n.ig.RemoteRequestType.prototype.executeStatement=10;n.ig.MdxElementType.prototype.member=0;n.ig.MdxElementType.prototype.memberTree=1;n.ig.MdxElementType.prototype.calculated=2;n.ig.MdxElementType.prototype.filter=3;n.ig.MdxElementType.prototype.collection=4;n.ig.MdxElementType.prototype.userDefined=5;n.ig.XmlaSoapMessageHeader.prototype.none=0;n.ig.XmlaSoapMessageHeader.prototype.session=1;n.ig.XmlaSoapMessageHeader.prototype.beginSession=2;n.ig.XmlaSoapMessageHeader.prototype.endSession=3;n.ig.CatalogConstants.prototype.a="CATALOG_NAME";n.ig.CatalogConstants.prototype.c="DESCRIPTION";n.ig.CatalogConstants.prototype.d="ROLES";n.ig.CatalogConstants.prototype.b="DATE_MODIFIED";n.ig.DbSchemaConstants.prototype.a="DBSCHEMA_CATALOGS";n.ig.DbSchemaConstants.prototype.b="DBSCHEMA_COLUMNS";n.ig.DbSchemaConstants.prototype.d="DBSCHEMA_TABLES";n.ig.DbSchemaConstants.prototype.c="DBSCHEMA_PROVIDER_TYPES";n.ig.CubeConstants.prototype.c="CATALOG_NAME";n.ig.CubeConstants.prototype.n="SCHEMA_NAME";n.ig.CubeConstants.prototype.e="CUBE_NAME";n.ig.CubeConstants.prototype.f="CUBE_TYPE";n.ig.CubeConstants.prototype.m="LAST_SCHEMA_UPDATE";n.ig.CubeConstants.prototype.l="LAST_DATA_UPDATE";n.ig.CubeConstants.prototype.g="DESCRIPTION";n.ig.CubeConstants.prototype.h="IS_DRILLTHROUGH_ENABLED";n.ig.CubeConstants.prototype.i="IS_LINKABLE";n.ig.CubeConstants.prototype.k="IS_WRITE_ENABLED";n.ig.CubeConstants.prototype.j="IS_SQL_ENABLED";n.ig.CubeConstants.prototype.d="CUBE_CAPTION";n.ig.CubeConstants.prototype.b="BASE_CUBE_NAME";n.ig.CubeConstants.prototype.a="ANNOTATIONS";n.ig.DimensionConstants.prototype.a="CATALOG_NAME";n.ig.DimensionConstants.prototype.p="SCHEMA_NAME";n.ig.DimensionConstants.prototype.b="CUBE_NAME";n.ig.DimensionConstants.prototype.i="DIMENSION_NAME";n.ig.DimensionConstants.prototype.l="DIMENSION_UNIQUE_NAME";n.ig.DimensionConstants.prototype.e="DIMENSION_CAPTION";n.ig.DimensionConstants.prototype.j="DIMENSION_ORDINAL";n.ig.DimensionConstants.prototype.k="DIMENSION_TYPE";n.ig.DimensionConstants.prototype.f="DIMENSION_CARDINALITY";n.ig.DimensionConstants.prototype.c="DEFAULT_HIERARCHY";n.ig.DimensionConstants.prototype.d="DESCRIPTION";n.ig.DimensionConstants.prototype.o="IS_VIRTUAL";n.ig.DimensionConstants.prototype.n="IS_READWRITE";n.ig.DimensionConstants.prototype.m="DIMENSION_UNIQUE_SETTINGS";n.ig.DimensionConstants.prototype.h="DIMENSION_MASTER_NAME";n.ig.DimensionConstants.prototype.g="DIMENSION_IS_VISIBLE";n.ig.HierarchyConstants.prototype.b="CATALOG_NAME";n.ig.HierarchyConstants.prototype.c="CUBE_NAME";n.ig.HierarchyConstants.prototype.j="DIMENSION_UNIQUE_NAME";n.ig.HierarchyConstants.prototype.q="HIERARCHY_NAME";n.ig.HierarchyConstants.prototype.t="HIERARCHY_UNIQUE_NAME";n.ig.HierarchyConstants.prototype.m="HIERARCHY_CAPTION";n.ig.HierarchyConstants.prototype.i="DIMENSION_TYPE";n.ig.HierarchyConstants.prototype.n="HIERARCHY_CARDINALITY";n.ig.HierarchyConstants.prototype.d="DEFAULT_MEMBER";n.ig.HierarchyConstants.prototype.a="ALL_MEMBER";n.ig.HierarchyConstants.prototype.e="DESCRIPTION";n.ig.HierarchyConstants.prototype.w="IS_VIRTUAL";n.ig.HierarchyConstants.prototype.v="IS_READWRITE";n.ig.HierarchyConstants.prototype.k="DIMENSION_UNIQUE_SETTINGS";n.ig.HierarchyConstants.prototype.g="DIMENSION_IS_VISIBLE";n.ig.HierarchyConstants.prototype.h="DIMENSION_MASTER_UNIQUE_NAME";n.ig.HierarchyConstants.prototype.r="HIERARCHY_ORDINAL";n.ig.HierarchyConstants.prototype.f="DIMENSION_IS_SHARED";n.ig.HierarchyConstants.prototype.p="HIERARCHY_IS_VISIBLE";n.ig.HierarchyConstants.prototype.s="HIERARCHY_ORIGIN";n.ig.HierarchyConstants.prototype.o="HIERARCHY_DISPLAY_FOLDER";n.ig.HierarchyConstants.prototype.u="INSTANCE_SELECTION";n.ig.HierarchyConstants.prototype.l="GROUPING_BEHAVIOR";n.ig.HierarchyConstants.prototype.x="STRUCTURE_TYPE";n.ig.InstanceConstants.prototype.a="INSTANCE_NAME";n.ig.InstanceConstants.prototype.b="INSTANCE_PORT_NUMBER";n.ig.InstanceConstants.prototype.c="INSTANCE_STATE";n.ig.KpiConstants.prototype.a="CATALOG_NAME";n.ig.KpiConstants.prototype.q="SCHEMA_NAME";n.ig.KpiConstants.prototype.b="CUBE_NAME";n.ig.KpiConstants.prototype.p="MEASUREGROUP_NAME";n.ig.KpiConstants.prototype.h="KPI_NAME";n.ig.KpiConstants.prototype.c="KPI_CAPTION";n.ig.KpiConstants.prototype.e="KPI_DESCRIPTION";n.ig.KpiConstants.prototype.f="KPI_DISPLAY_FOLDER";n.ig.KpiConstants.prototype.n="KPI_VALUE";n.ig.KpiConstants.prototype.g="KPI_GOAL";n.ig.KpiConstants.prototype.j="KPI_STATUS";n.ig.KpiConstants.prototype.l="KPI_TREND";n.ig.KpiConstants.prototype.k="KPI_STATUS_GRAPHIC";n.ig.KpiConstants.prototype.m="KPI_TREND_GRAPHIC";n.ig.KpiConstants.prototype.o="KPI_WEIGHT";n.ig.KpiConstants.prototype.d="KPI_CURRENT_TIME_MEMBER";n.ig.KpiConstants.prototype.i="KPI_PARENT_KPI_NAME";n.ig.LevelConstants.prototype.a="CATALOG_NAME";n.ig.LevelConstants.prototype.b="CUBE_NAME";n.ig.LevelConstants.prototype.e="DIMENSION_UNIQUE_NAME";n.ig.LevelConstants.prototype.f="HIERARCHY_UNIQUE_NAME";n.ig.LevelConstants.prototype.l="LEVEL_NAME";n.ig.LevelConstants.prototype.q="LEVEL_UNIQUE_NAME";n.ig.LevelConstants.prototype.g="LEVEL_CAPTION";n.ig.LevelConstants.prototype.m="LEVEL_NUMBER";n.ig.LevelConstants.prototype.h="LEVEL_CARDINALITY";n.ig.LevelConstants.prototype.p="LEVEL_TYPE";n.ig.LevelConstants.prototype.d="DESCRIPTION";n.ig.LevelConstants.prototype.c="CUSTOM_ROLLUP_SETTINGS";n.ig.LevelConstants.prototype.r="LEVEL_UNIQUE_SETTINGS";n.ig.LevelConstants.prototype.j="LEVEL_IS_VISIBLE";n.ig.LevelConstants.prototype.n="LEVEL_ORDERING_PROPERTY";n.ig.LevelConstants.prototype.i="LEVEL_DBTYPE";n.ig.LevelConstants.prototype.k="LEVEL_KEY_CARDINALITY";n.ig.LevelConstants.prototype.o="LEVEL_ORIGIN";n.ig.MeasureConstants.prototype.a="CATALOG_NAME";n.ig.MeasureConstants.prototype.r="SCHEMA_NAME";n.ig.MeasureConstants.prototype.b="CUBE_NAME";n.ig.MeasureConstants.prototype.l="MEASURE_NAME";n.ig.MeasureConstants.prototype.n="MEASURE_UNIQUE_NAME";n.ig.MeasureConstants.prototype.h="MEASURE_CAPTION";n.ig.MeasureConstants.prototype.g="MEASURE_AGGREGATOR";n.ig.MeasureConstants.prototype.c="DATA_TYPE";n.ig.MeasureConstants.prototype.p="NUMERIC_PRECISION";n.ig.MeasureConstants.prototype.q="NUMERIC_SCALE";n.ig.MeasureConstants.prototype.f="EXPRESSION";n.ig.MeasureConstants.prototype.e="DESCRIPTION";n.ig.MeasureConstants.prototype.k="MEASURE_IS_VISIBLE";n.ig.MeasureConstants.prototype.m="MEASURE_NAME_SQL_COLUMN_NAME";n.ig.MeasureConstants.prototype.o="MEASURE_UNQUALIFIED_CAPTION";n.ig.MeasureConstants.prototype.j="MEASUREGROUP_NAME";n.ig.MeasureConstants.prototype.i="MEASURE_DISPLAY_FOLDER";n.ig.MeasureConstants.prototype.d="DEFAULT_FORMAT_STRING";n.ig.MeasureGroupConstants.prototype.a="CATALOG_NAME";n.ig.MeasureGroupConstants.prototype.f="SCHEMA_NAME";n.ig.MeasureGroupConstants.prototype.b="CUBE_NAME";n.ig.MeasureGroupConstants.prototype.e="MEASUREGROUP_NAME";n.ig.MeasureGroupConstants.prototype.c="DESCRIPTION";n.ig.MeasureGroupConstants.prototype.d="MEASUREGROUP_CAPTION";n.ig.MeasureGroupDimensionConstants.prototype.a="CATALOG_NAME";n.ig.MeasureGroupDimensionConstants.prototype.k="SCHEMA_NAME";n.ig.MeasureGroupDimensionConstants.prototype.b="CUBE_NAME";n.ig.MeasureGroupDimensionConstants.prototype.j="MEASUREGROUP_NAME";n.ig.MeasureGroupDimensionConstants.prototype.i="MEASUREGROUP_CARDINALITY";n.ig.MeasureGroupDimensionConstants.prototype.h="DIMENSION_UNIQUE_NAME";n.ig.MeasureGroupDimensionConstants.prototype.c="DIMENSION_CARDINALITY";n.ig.MeasureGroupDimensionConstants.prototype.f="DIMENSION_IS_VISIBLE";n.ig.MeasureGroupDimensionConstants.prototype.e="DIMENSION_IS_FACT_DIMENSION";n.ig.MeasureGroupDimensionConstants.prototype.g="DIMENSION_PATH";n.ig.MeasureGroupDimensionConstants.prototype.d="DIMENSION_GRANULARITY";n.ig.MemberConstants.prototype.a="CATALOG_NAME";n.ig.MemberConstants.prototype.u="SCHEMA_NAME";n.ig.MemberConstants.prototype.c="CUBE_NAME";n.ig.MemberConstants.prototype.e="DIMENSION_UNIQUE_NAME";n.ig.MemberConstants.prototype.g="HIERARCHY_UNIQUE_NAME";n.ig.MemberConstants.prototype.k="LEVEL_UNIQUE_NAME";n.ig.MemberConstants.prototype.j="LEVEL_NUMBER";n.ig.MemberConstants.prototype.o="MEMBER_NAME";n.ig.MemberConstants.prototype.q="MEMBER_UNIQUE_NAME";n.ig.MemberConstants.prototype.p="MEMBER_TYPE";n.ig.MemberConstants.prototype.m="MEMBER_GUID";n.ig.MemberConstants.prototype.l="MEMBER_CAPTION";n.ig.MemberConstants.prototype.b="CHILDREN_CARDINALITY";n.ig.MemberConstants.prototype.s="PARENT_LEVEL";n.ig.MemberConstants.prototype.t="PARENT_UNIQUE_NAME";n.ig.MemberConstants.prototype.r="PARENT_COUNT";n.ig.MemberConstants.prototype.d="DESCRIPTION";n.ig.MemberConstants.prototype.f="EXPRESSION";n.ig.MemberConstants.prototype.n="MEMBER_KEY";n.ig.MemberConstants.prototype.i="IS_PLACEHOLDERMEMBER";n.ig.MemberConstants.prototype.h="IS_DATAMEMBER";n.ig.MemberConstants.prototype.v="SCOPE";n.ig.OlapSchemaConstants.prototype.a="MDSCHEMA_CUBES";n.ig.OlapSchemaConstants.prototype.b="MDSCHEMA_DIMENSIONS";n.ig.OlapSchemaConstants.prototype.g="MDSCHEMA_MEASUREGROUPS";n.ig.OlapSchemaConstants.prototype.f="MDSCHEMA_MEASUREGROUP_DIMENSIONS";n.ig.OlapSchemaConstants.prototype.h="MDSCHEMA_MEASURES";n.ig.OlapSchemaConstants.prototype.c="MDSCHEMA_HIERARCHIES";n.ig.OlapSchemaConstants.prototype.e="MDSCHEMA_LEVELS";n.ig.OlapSchemaConstants.prototype.i="MDSCHEMA_MEMBERS";n.ig.OlapSchemaConstants.prototype.d="MDSCHEMA_KPIS";n.ig.CubeRestrictions.prototype.a="CATALOG_NAME";n.ig.CubeRestrictions.prototype.d="SCHEMA_NAME";n.ig.CubeRestrictions.prototype.b="CUBE_NAME";n.ig.CubeRestrictions.prototype.c="CUBE_SOURCE";n.ig.DimensionRestrictions.prototype.a="CATALOG_NAME";n.ig.DimensionRestrictions.prototype.g="SCHEMA_NAME";n.ig.DimensionRestrictions.prototype.b="CUBE_NAME";n.ig.DimensionRestrictions.prototype.d="DIMENSION_NAME";n.ig.DimensionRestrictions.prototype.e="DIMENSION_UNIQUE_NAME";n.ig.DimensionRestrictions.prototype.c="CUBE_SOURCE";n.ig.DimensionRestrictions.prototype.f="DIMENSION_VISIBILITY";n.ig.HierarchyRestrictions.prototype.a="CATALOG_NAME";n.ig.HierarchyRestrictions.prototype.i="SCHEMA_NAME";n.ig.HierarchyRestrictions.prototype.b="CUBE_NAME";n.ig.HierarchyRestrictions.prototype.d="DIMENSION_UNIQUE_NAME";n.ig.HierarchyRestrictions.prototype.e="HIERARCHY_NAME";n.ig.HierarchyRestrictions.prototype.g="HIERARCHY_UNIQUE_NAME";n.ig.HierarchyRestrictions.prototype.f="HIERARCHY_ORIGIN";n.ig.HierarchyRestrictions.prototype.c="CUBE_SOURCE";n.ig.HierarchyRestrictions.prototype.h="HIERARCHY_VISIBILITY";n.ig.KpiRestrictions.prototype.a="CATALOG_NAME";n.ig.KpiRestrictions.prototype.e="SCHEMA_NAME";n.ig.KpiRestrictions.prototype.b="CUBE_NAME";n.ig.KpiRestrictions.prototype.d="KPI_NAME";n.ig.KpiRestrictions.prototype.c="CUBE_SOURCE";n.ig.LevelRestrictions.prototype.a="CATALOG_NAME";n.ig.LevelRestrictions.prototype.j="SCHEMA_NAME";n.ig.LevelRestrictions.prototype.b="CUBE_NAME";n.ig.LevelRestrictions.prototype.d="DIMENSION_UNIQUE_NAME";n.ig.LevelRestrictions.prototype.e="HIERARCHY_UNIQUE_NAME";n.ig.LevelRestrictions.prototype.f="LEVEL_NAME";n.ig.LevelRestrictions.prototype.h="LEVEL_UNIQUE_NAME";n.ig.LevelRestrictions.prototype.g="LEVEL_ORIGIN";n.ig.LevelRestrictions.prototype.c="CUBE_SOURCE";n.ig.LevelRestrictions.prototype.i="LEVEL_VISIBILITY";n.ig.MeasureRestrictions.prototype.a="CATALOG_NAME";n.ig.MeasureRestrictions.prototype.h="SCHEMA_NAME";n.ig.MeasureRestrictions.prototype.b="CUBE_NAME";n.ig.MeasureRestrictions.prototype.e="MEASURE_NAME";n.ig.MeasureRestrictions.prototype.f="MEASURE_UNIQUE_NAME";n.ig.MeasureRestrictions.prototype.d="MEASUREGROUP_NAME";n.ig.MeasureRestrictions.prototype.c="CUBE_SOURCE";n.ig.MeasureRestrictions.prototype.g="MEASURE_VISIBILITY";n.ig.MeasureGroupRestrictions.prototype.a="CATALOG_NAME";n.ig.MeasureGroupRestrictions.prototype.d="SCHEMA_NAME";n.ig.MeasureGroupRestrictions.prototype.b="CUBE_NAME";n.ig.MeasureGroupRestrictions.prototype.c="MEASUREGROUP_NAME";n.ig.MeasureGroupDimensionRestrictions.prototype.a="CATALOG_NAME";n.ig.MeasureGroupDimensionRestrictions.prototype.f="SCHEMA_NAME";n.ig.MeasureGroupDimensionRestrictions.prototype.b="CUBE_NAME";n.ig.MeasureGroupDimensionRestrictions.prototype.e="MEASUREGROUP_NAME";n.ig.MeasureGroupDimensionRestrictions.prototype.c="DIMENSION_UNIQUE_NAME";n.ig.MeasureGroupDimensionRestrictions.prototype.d="DIMENSION_VISIBILITY";n.ig.MemberRestrictions.prototype.a="CATALOG_NAME";n.ig.MemberRestrictions.prototype.k="SCHEMA_NAME";n.ig.MemberRestrictions.prototype.b="CUBE_NAME";n.ig.MemberRestrictions.prototype.d="DIMENSION_UNIQUE_NAME";n.ig.MemberRestrictions.prototype.e="HIERARCHY_UNIQUE_NAME";n.ig.MemberRestrictions.prototype.g="LEVEL_UNIQUE_NAME";n.ig.MemberRestrictions.prototype.f="LEVEL_NUMBER";n.ig.MemberRestrictions.prototype.h="MEMBER_NAME";n.ig.MemberRestrictions.prototype.j="MEMBER_UNIQUE_NAME";n.ig.MemberRestrictions.prototype.i="MEMBER_TYPE";n.ig.MemberRestrictions.prototype.l="TREE_OP";n.ig.MemberRestrictions.prototype.c="CUBE_SOURCE";n.ig.AxisXmlTypeSerializer.prototype.a=null;n.ig.TupleXmlTypeSerializer.prototype.a=null;n.ig.AxisMemberXmlTypeSerializer.prototype.a=null;n.ig.DimensionXmlTypeSerializer.prototype.a=null;n.ig.HierarchyXmlTypeSerializer.prototype.a=null;n.ig.MeasureGroupDimensionXmlTypeSerializer.prototype.a=null;n.ig.MeasureGroupXmlTypeSerializer.prototype.a=null;n.ig.MeasureXmlTypeSerializer.prototype.a=null;n.ig.MemberXmlTypeSerializer.prototype.a=null;n.ig.XmlaConstants.prototype.ak="DBSCHEMA_CATALOGS";n.ig.XmlaConstants.prototype.al="MDSCHEMA_CUBES";n.ig.XmlaConstants.prototype.ai="RestrictionList";n.ig.XmlaConstants.prototype.ah="PropertyList";n.ig.XmlaConstants.prototype.e="DataSourceInfo";n.ig.XmlaConstants.prototype.b="Catalog";n.ig.XmlaConstants.prototype.at="SCHEMA_NAME";n.ig.XmlaConstants.prototype.aj="row";n.ig.XmlaConstants.prototype.h="DESCRIPTION";n.ig.XmlaConstants.prototype.d="CUBE";n.ig.XmlaConstants.prototype.k="DIMENSION";n.ig.XmlaConstants.prototype.am="MDSCHEMA_DIMENSIONS";n.ig.XmlaConstants.prototype.aq="MDSCHEMA_MEASUREGROUPS";n.ig.XmlaConstants.prototype.aa="MEASUREGROUP_NAME";n.ig.XmlaConstants.prototype.z="MEASUREGROUP_CAPTION";n.ig.XmlaConstants.prototype.ap="MDSCHEMA_MEASUREGROUP_DIMENSIONS";n.ig.XmlaConstants.prototype.j="DIMENSION_NAME";n.ig.XmlaConstants.prototype.m="DIMENSION_UNIQUE_NAME";n.ig.XmlaConstants.prototype.i="DIMENSION_CAPTION";n.ig.XmlaConstants.prototype.ar="MDSCHEMA_MEASURES";n.ig.XmlaConstants.prototype.ab="MEASURE_NAME";n.ig.XmlaConstants.prototype.ac="MEASURE_UNIQUE_NAME";n.ig.XmlaConstants.prototype.y="MEASURE_CAPTION";n.ig.XmlaConstants.prototype.x="MEASURE_AGGREGATOR";n.ig.XmlaConstants.prototype.l="DIMENSION_TYPE";n.ig.XmlaConstants.prototype.an="MDSCHEMA_HIERARCHIES";n.ig.XmlaConstants.prototype.p="HIERARCHY_NAME";n.ig.XmlaConstants.prototype.r="HIERARCHY_UNIQUE_NAME";n.ig.XmlaConstants.prototype.n="HIERARCHY_CAPTION";n.ig.XmlaConstants.prototype.q="HIERARCHY_ORIGIN";n.ig.XmlaConstants.prototype.g="DEFAULT_MEMBER";n.ig.XmlaConstants.prototype.a="ALL_MEMBER";n.ig.XmlaConstants.prototype.u="LEVEL_NAME";n.ig.XmlaConstants.prototype.s="LEVEL_CAPTION";n.ig.XmlaConstants.prototype.w="LEVEL_UNIQUE_NAME";n.ig.XmlaConstants.prototype.v="LEVEL_NUMBER";n.ig.XmlaConstants.prototype.t="LEVEL_CARDINALITY";n.ig.XmlaConstants.prototype.ao="MDSCHEMA_LEVELS";n.ig.XmlaConstants.prototype.as="MDSCHEMA_MEMBERS";n.ig.XmlaConstants.prototype.av="TREE_OP";n.ig.XmlaConstants.prototype.ae="MEMBER_NAME";n.ig.XmlaConstants.prototype.af="MEMBER_UNIQUE_NAME";n.ig.XmlaConstants.prototype.ad="MEMBER_CAPTION";n.ig.XmlaConstants.prototype.ag="PARENT_UNIQUE_NAME";n.ig.XmlaConstants.prototype.c="CHILDREN_CARDINALITY";n.ig.XmlaConstants.prototype.f="DEFAULT_FORMAT_STRING";n.ig.XmlaConstants.prototype.o="HIERARCHY_DISPLAY_FOLDER";n.ig.XmlaConstants.prototype.au="SCOPE";n.ig.XmlaSoapMethodResult.prototype.a="return";n.ig.XmlaNamespace.prototype.f="urn:schemas-microsoft-com:xml-sql";n.ig.XmlaNamespace.prototype.a="urn:schemas-microsoft-com:xml-analysis";n.ig.XmlaNamespace.prototype.d="urn:schemas-microsoft-com:xml-analysis:mddataset";n.ig.XmlaNamespace.prototype.e="urn:schemas-microsoft-com:xml-analysis:rowset";n.ig.XmlaNamespace.prototype.b="urn:schemas-microsoft-com:xml-analysis:empty";n.ig.XmlaNamespace.prototype.c="urn:schemas-microsoft-com:xml-analysis:exception";n.ig.XmlaSoapMessageBuilder.prototype.d="Envelope";n.ig.XmlaSoapMessageBuilder.prototype.e="Header";n.ig.XmlaSoapMessageBuilder.prototype.b="Body";n.ig.XmlaSoapMessageBuilder.prototype.f="soap";n.ig.XmlaSoapMessageBuilder.prototype.g="http://schemas.xmlsoap.org/soap/envelope/";n.ig.XmlaSoapMethod.prototype.h="Properties";n.ig.XmlaSoapMethod.prototype.i="PropertyList";n.ig.XmlaSoapMethodDiscover.prototype.m="Discover";n.ig.XmlaSoapMethodDiscover.prototype.o="RequestType";n.ig.XmlaSoapMethodDiscover.prototype.q="Restrictions";n.ig.XmlaSoapMethodDiscover.prototype.p="RestrictionList";n.ig.XmlaSoapMethodDiscover.prototype.s="SessionId";n.ig.XmlaSoapMethodExecute.prototype.k="Execute";n.ig.XmlaSoapMethodExecute.prototype.j="Command";n.ig.XmlaSoapMethodExecute.prototype.m="Statement";n.ig.XmlaSoapWebClient.prototype.a=null;n.ig.XmlaSoapWebClient.prototype.staticInit&&!n.ig.XmlaSoapWebClient.prototype.xmlaSoapWebClientStaticInitCalled&&(n.ig.XmlaSoapWebClient.prototype.staticInit(),n.ig.XmlaSoapWebClient.prototype.xmlaSoapWebClientStaticInitCalled=!0);n.ig.XmlaSoapWebClient.prototype.a=null;n.ig.XmlaSoapWebClient.prototype.staticInit&&!n.ig.XmlaSoapWebClient.prototype.xmlaSoapWebClientStaticInitCalled&&(n.ig.XmlaSoapWebClient.prototype.staticInit(),n.ig.XmlaSoapWebClient.prototype.xmlaSoapWebClientStaticInitCalled=!0);n.ig.ArrayJsonSerializer.prototype.a=new n.ig.ArrayJsonSerializer;n.ig.AxisJsonTypeSeriazlier.prototype.a=new n.ig.AxisJsonTypeSeriazlier;n.ig.AxisMemberJsonTypeSeriazlier.prototype.a=new n.ig.AxisMemberJsonTypeSeriazlier;n.ig.CatalogJsonTypeSeriazlier.prototype.a=new n.ig.CatalogJsonTypeSeriazlier;n.ig.CellJsonTypeSeriazlier.prototype.a=new n.ig.CellJsonTypeSeriazlier;n.ig.CubeJsonTypeSeriazlier.prototype.a=new n.ig.CubeJsonTypeSeriazlier;n.ig.DimensionJsonTypeSeriazlier.prototype.a=new n.ig.DimensionJsonTypeSeriazlier;n.ig.HierarchyJsonTypeSeriazlier.prototype.a=new n.ig.HierarchyJsonTypeSeriazlier;n.ig.KpiJsonTypeSeriazlier.prototype.a=new n.ig.KpiJsonTypeSeriazlier;n.ig.LevelJsonTypeSeriazlier.prototype.a=new n.ig.LevelJsonTypeSeriazlier;n.ig.MeasureGroupDimensionJsonTypeSeriazlier.prototype.a=new n.ig.MeasureGroupDimensionJsonTypeSeriazlier;n.ig.MeasureGroupJsonTypeSeriazlier.prototype.a=new n.ig.MeasureGroupJsonTypeSeriazlier;n.ig.MeasureJsonTypeSeriazlier.prototype.a=new n.ig.MeasureJsonTypeSeriazlier;n.ig.MemberJsonTypeSeriazlier.prototype.a=new n.ig.MemberJsonTypeSeriazlier;n.ig.RemoteRequestJsonTypeSeriazlier.prototype.a=new n.ig.RemoteRequestJsonTypeSeriazlier;n.ig.ResultJsonTypeSeriazlier.prototype.a=new n.ig.ResultJsonTypeSeriazlier;n.ig.TupleJsonTypeSeriazlier.prototype.a=new n.ig.TupleJsonTypeSeriazlier;n.ig.XmlaDiscoverProperties.prototype.a="Catalog";n.ig.util.extCopy(n.ig.TaskExtensions,[[[n.ig.Task,n.ig.Task$1],["continueWithTask$1","continueWithTask$2"]]]);n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.XmlaPropertiesCollection],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.XmlaPropertiesCollection],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.XmlaPropertiesCollection],["ofType$1","cast$1"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["AbstractEnumerable:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","IEnumerable:x","IEnumerator:y","Func$1:z","MulticastDelegate:aa","IntPtr:ab","AbstractEnumerator:ac","IEnumerable$1:ad","IEnumerator$1:ae","ICollection$1:af","IList$1:ag","IArrayList:ah","Array:ai","ICollection:aj","CompareCallback:ak","List$1:al","IList:am","IDisposable:an","IArray:ao","Script:ap","Date:aq","Date:ar","Number:as","Func$3:at","Action$1:au","IDictionary$2:aw","Dictionary$2:ax","IDictionary:ay","Dictionary:az","IEqualityComparer$1:a0","KeyValuePair$2:a1","NotImplementedException:a2","Error:a3","GenericEnumerable$1:a4","GenericEnumerator$1:a5","INotifyCollectionChanged:a6","NotifyCollectionChangedEventHandler:a7","NotifyCollectionChangedEventArgs:a8","EventArgs:a9","NotifyCollectionChangedAction:ba","ObservableCollection$1:bd","INotifyPropertyChanged:be","PropertyChangedEventHandler:bf","PropertyChangedEventArgs:bg","Delegate:bh","ReadOnlyCollection$1:bj","NameValueCollection:bl","IOrderedEnumerable$1:bu","Enumerable:bz","Func$2:b0","SortedList$1:b1","Math:b2","Number:b3","Number:b4","Number:b5","Number:b6","Number:b7","Number:b8","Number:b9","ArgumentNullException:ca","AggregateException:cn","ArgumentException:co","AsyncCompletedEventArgs:cq","ListSortDirection:cs","Environment:cu","InvalidOperationException:cv","Debug:cw","ICredentials:cz","NetworkCredential:c0","Uri:c1","UploadStringCompletedEventHandler:c2","UploadStringCompletedEventArgs:c3","WebClient:c4","Encoding:c5","UTF8Encoding:c6","UnicodeEncoding:c7","WebHeaderCollection:c8","Task$1:c9","Task:da","JQueryPromise:db","Action:dc","TaskStatus:dd","TaskCompletionSource$1:de","JQueryDeferred:df","JQuery:dg","JQueryObject:dh","Element:di","ElementAttributeCollection:dj","ElementCollection:dk","WebStyle:dl","ElementNodeType:dm","Document:dn","EventListener:dp","IElementEventHandler:dq","ElementEventHandler:dr","ElementAttribute:ds","JQueryPosition:dt","JQueryCallback:du","JQueryEvent:dv","JQueryUICallback:dw","FaultCode:dx","FaultException:dy","FaultReason:dz","FaultException$1:d0","StringBuilder:d1","TaskFactory:d4","Tuple$2:d5","JavaScriptSerializer:d6","XObject:f9","XmlNode:ga","XmlNodeList:gb","XmlNamedNodeMap:gc","XmlNodeType:gd","XmlDocument:ge","XmlElement:gf","XmlLinkedNode:gg","XmlAttribute:gh","XmlUtils:gi","XAttribute:gj","XNode:gk","XContainer:gl","XElement:gm","XName:gn","XNamespace:go","XDocument:gp"]);n.ig.util.defType("TaskStatus:dd","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("TaskStatus",n.ig.$ep.$type)},!0);n.ig.util.defType("ListSortDirection:cs","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ListSortDirection",n.ig.$ep.$type)},!0);n.ig.util.defType("NotifyCollectionChangedAction:ba","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("NotifyCollectionChangedAction",n.ig.$ep.$type)},!0);n.ig.util.defType("AbstractEnumerable:a","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},getEnumerator:function(){return new t.ac(this.a().getEnumerator())},$type:new n.ig.Type("AbstractEnumerable",n.ig.$ot,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("AbstractEnumerator:ac","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},current:function(){return this.a.current()},moveNext:function(){return this.a.moveNext()},reset:function(){this.a.reset()},$type:new n.ig.Type("AbstractEnumerator",n.ig.$ot,[n.ig.IEnumerator.prototype.$type])},!0);n.ig.util.defType("IEnumerable$1:ad","Object",{$type:new n.ig.Type("IEnumerable$1",null,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("ICollection$1:af","Object",{$type:new n.ig.Type("ICollection$1",null,[t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("IList$1:ag","Object",{$type:new n.ig.Type("IList$1",null,[t.$af.$type.specialize(0),t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("IArrayList:ah","Object",{$type:new n.ig.Type("IArrayList",null)},!0);n.ig.util.defType("List$1:al","Object",{$t:null,__inner:null,init:function(t,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.e={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.__inner=new n.ig.Array},init1:function(t,i,r){var u,f;if(this.e={},this.$t=t,this.$type=this.$type.specialize(this.$t),n.ig.$op.init.call(this),this.__inner=new n.ig.Array,!this.b(0,r))for(u=r.getEnumerator();u.moveNext();)f=u.current(),this.add1(f)},init2:function(t){this.e={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.__inner=new n.ig.Array},o:function(n,t){this.__inner[n]=t},j:function(n,t){this.__inner.insert(n,t)},f:function(n){this.__inner.add(n)},m:function(n){this.__inner.removeAt(n)},h:function(){this.__inner.clear()},item:function(n,t){return arguments.length===2?(this.o(n,t),t):this.__inner[n]},indexOf:function(n){return this.__inner.indexOf(n)},insert:function(n,t){this.j(n,t)},removeAt:function(n){this.m(n)},count:function(){return this.__inner.length},isReadOnly:function(){return!1},add1:function(n){this.f(n)},clear:function(){this.h()},contains1:function(n){return this.__inner.contains(n)},copyTo:function(n,t){for(var i=0;i<this.__inner.length;i++)n[t+i]=this.__inner[i]},remove1:function(n){var t=this.indexOf(n);return t<0?!1:(this.m(t),!0)},getEnumerator:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__inner.getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerator$1(this.$t,i())},asArrayList:function(){return this.__inner},b:function(i,r){var s=n.ig.util.cast(t.$ah.$type,r),e,f,u,o;if(s!=null)return this.__inner.insertRange1(i,s.asArrayList()),!0;if(e=n.ig.util.cast(t.$ao.$type,r),e!=null)return this.__inner.insertRange(i,e.asArray()),!0;if(f=n.ig.util.cast(t.$ag.$type.specialize(this.$t),r),f!=null){for(u=0;u<f.count();u++)this.__inner.insert(i+u,f.item(u));return!0}return(o=n.isArray(r)?r:null,o!=null)?(this.__inner.insertRange(i,o),!0):!1},insertRange1:function(n,t){var i,r,u;if(!this.b(n,t))for(i=0,r=t.getEnumerator();r.moveNext();)u=r.current(),this.__inner.insert(n+i,u),i++},insertRange:function(n,t){var i,r,u;if(!this.b(n,t))for(i=0,r=t.getEnumerator();r.moveNext();)u=r.current(),this.__inner.insert(n+i,u),i++},removeRange:function(n,t){this.__inner.splice(n,t)},copyTo1:function(n,t){this.__inner.copyTo(n,t)},isFixedSize:function(){return!1},add:function(n){return this.f(n),this.__inner.length-1},contains:function(n){return this.__inner.contains(n)},indexOf1:function(n){return this.__inner.indexOf(n)},insert1:function(n,t){this.j(n,t)},remove:function(n){var t=this.indexOf1(n);this.m(t)},sort:function(){var i=this,r=null;r=i.$t==Number?function(n,t){var i=n,r=t;return i<r?-1:i==r?0:1}:i.$t==n.ig.Single.prototype.$type?function(n,t){var i=n,r=t;return i<r?-1:i==r?0:1}:i.$t==n.ig.Number.prototype.$type?function(n,t){var i=n,r=t;return i<r?-1:i==r?0:1}:i.$t==t.$aq.$type?function(n,t){var i=n,r=t;return i.getTime()<r.getTime()?-1:i.getTime()==r.getTime()?0:1}:function(n,t){return n.compareTo(t)};i.r(r)},r:function(n){this.__inner.sort(n)},sort1:function(n){var t=this;t.__inner.sort(function(t,i){var r=t,u=i;return n(r,u)})},_capacity:0,capacity:function(n){return arguments.length===1?(this._capacity=n,n):this._capacity},addRange:function(n){for(var t=n.getEnumerator(),i;t.moveNext();)i=t.current(),this.__inner.add(i)},toArray:function(){return this.__inner.slice(0)},forEach:function(){},isSynchronized:function(){return!0},e:null,syncRoot:function(){return this.e},$type:new n.ig.Type("List$1",n.ig.$ot,[t.$ag.$type.specialize(0),t.$ah.$type,n.ig.IList.prototype.$type])},!0);n.ig.util.defType("KeyValuePair$2:a1","ValueType",{$tKey:null,$tValue:null,init:function(t,i,r){if(r>0){switch(r){case 1:this.init1.apply(this,arguments)}return}this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.ValueType.prototype.init.call(this)},a:null,c:null,init1:function(t,i,r,u,f){this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.ValueType.prototype.init.call(this);this.a=u;this.c=f},key:function(){return this.a},value:function(){return this.c},$type:new n.ig.Type("KeyValuePair$2",n.ig.ValueType.prototype.$type)},!0);n.ig.util.defType("IDictionary$2:aw","Object",{$type:new n.ig.Type("IDictionary$2",null,[t.$af.$type.specialize(t.$a1.$type.specialize(this.$tKey,this.$tValue)),t.$ad.$type.specialize(t.$a1.$type.specialize(this.$tKey,this.$tValue)),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("Dictionary$2:ax","Object",{$tKey:null,$tValue:null,__inner:null,__keys:null,init:function(t,i,r){if(r>0){switch(r){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.g=null;this._useToString=!1;this.a=!1;this._needsEnsure=!1;this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.__inner=new n.ig.Dictionary(0);this.__keys=new n.ig.Dictionary(0)},init1:function(t,i,r,u){this.g=null;this._useToString=!1;this.a=!1;this._needsEnsure=!1;this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.__inner=new n.ig.Dictionary(1,u);this.__keys=new n.ig.Dictionary(0)},g:null,init2:function(t,i,r,u){this.g=null;this._useToString=!1;this.a=!1;this._needsEnsure=!1;this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.__inner=new n.ig.Dictionary(0);this.__keys=new n.ig.Dictionary(0);this.g=u},count:function(){return this.__inner.count()},item:function(n,t){return arguments.length===2?(this.__inner.item(this.i(n),t),this.__keys.item(this.i(n),n),t):this.__inner.item(this.i(n))},length:function(){return this.__inner.length()},containsKey:function(n){return this.__inner.containsKey(this.i(n))},remove:function(n){var t=this.i(n);return this.__keys.containsKey(t)?(this.__inner.remove(t),this.__keys.remove(t),!0):!1},clear:function(){this.__inner.clear();this.__keys.clear()},_useToString:!1,a:!1,_needsEnsure:!1,j:function(n){this.a||(this.a=!0,this._needsEnsure=typeof n=="object",this._needsEnsure||(this._useToString=!n.getHashCode))},i:function(t){return(this.j(t),this._needsEnsure&&n.ig.util.ensureUniqueId(t),this.g!=null)?this.g.getHashCode(t).toString():this._useToString?t.toString():t.getHashCode().toString()},add:function(n,t){this.__inner.item(this.i(n),t);this.__keys.item(this.i(n),n)},tryGetValue:function(n,t){return this.__inner.containsKey(this.i(n))?(t=this.__inner.item(this.i(n)),{ret:!0,value:t}):(t=null,{ret:!1,value:t})},keys:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__keys.values().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(this.$tKey,i)},values:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__inner.values().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(this.$tValue,i)},isReadOnly:function(){return!1},add1:function(n){this.add(n.key(),n.value())},contains:function(n){return this.containsKey(n.key())},copyTo:function(){throw new t.a2;},remove1:function(n){return this.remove(n.key()),!0},f:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__keys.values().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=new t.a1(this.$tKey,this.$tValue,1,this.$a,this.$this.__inner.item(this.$this.i(this.$a))),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(t.$a1.$type.specialize(this.$tKey,this.$tValue),r)},getEnumerator:function(){return this.f().getEnumerator()},$type:new n.ig.Type("Dictionary$2",n.ig.$ot,[n.ig.IDictionary$2.prototype.$type.specialize(0,1),n.ig.IDictionary.prototype.$type])},!0);n.ig.util.defType("GenericEnumerable$1:a4","Object",{$t:null,a:null,init:function(t,i){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=i},getEnumerator:function(){return new t.a5(this.$t,this.a().getEnumerator())},$type:new n.ig.Type("GenericEnumerable$1",n.ig.$ot,[t.$ad.$type.specialize(0)])},!0);n.ig.util.defType("IEnumerator$1:ae","Object",{$type:new n.ig.Type("IEnumerator$1",null,[n.ig.IEnumerator.prototype.$type])},!0);n.ig.util.defType("GenericEnumerator$1:a5","Object",{$t:null,a:null,init:function(t,i){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=i},current:function(){return this.a.current()},moveNext:function(){return this.a.moveNext()},reset:function(){this.a.reset()},$type:new n.ig.Type("GenericEnumerator$1",n.ig.$ot,[t.$ae.$type.specialize(0)])},!0);n.ig.util.defType("INotifyCollectionChanged:a6","Object",{$type:new n.ig.Type("INotifyCollectionChanged",null)},!0);n.ig.util.defType("NotifyCollectionChangedEventArgs:a8","EventArgs",{init:function(i,r){if(i>0){switch(i){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}t.$a9.init.call(this);this.f=r;this.c=new t.al(n.ig.$op.$type,0);this.b=new t.al(n.ig.$op.$type,0)},init1:function(i,r,u,f){var e=this;t.$a9.init.call(this);this.f=r;this.c=new t.al(n.ig.$op.$type,0);(this.f==1||this.f==2)&&(this.c.add(u),this.i=f);this.b=this.f!=1?function(){var i=new t.al(n.ig.$op.$type,0);return i.add(u),i}():new t.al(n.ig.$op.$type,0);this.h=f},init2:function(i,r,u,f,e){var o=this;t.$a9.init.call(this);this.f=r;this.h=e;this.i=e;this.b=function(){var i=new t.al(n.ig.$op.$type,0);return i.add(u),i}();this.c=function(){var i=new t.al(n.ig.$op.$type,0);return i.add(f),i}()},f:null,action:function(){return this.f},b:null,newItems:function(){return this.b},h:0,newStartingIndex:function(){return this.h},c:null,oldItems:function(){return this.c},i:0,oldStartingIndex:function(){return this.i},$type:new n.ig.Type("NotifyCollectionChangedEventArgs",t.$a9.$type)},!0);n.ig.util.defType("ObservableCollection$1:bd","List$1",{$t:null,init:function(n,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init.call(this,this.$t)},init1:function(n,i,r){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init1.call(this,this.$t,1,r)},init2:function(n,i,r){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init2.call(this,this.$t,2,r)},o:function(n,i){var u=this.__inner[n],r;t.$al.o.call(this,n,i);this.propertyChanged!=null&&this.t(new t.bg("Item[]"));this.collectionChanged!=null&&(r=new t.a8(2,2,i,u,n),this.s(r))},h:function(){if(t.$al.h.call(this),this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]"))),this.collectionChanged!=null){var n=new t.a8(0,4);this.s(n)}},j:function(n,i){if(t.$al.j.call(this,n,i),this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]"))),this.collectionChanged!=null){var r=new t.a8(1,0,i,n);this.s(r)}},f:function(n){if(t.$al.f.call(this,n),this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]"))),this.collectionChanged!=null){var i=new t.a8(1,0,n,this.count()-1);this.s(i)}},m:function(n){var r=this.__inner[n],i;t.$al.m.call(this,n);this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]")));this.collectionChanged!=null&&(i=new t.a8(1,1,r,n),this.s(i))},collectionChanged:null,propertyChanged:null,t:function(n){this.propertyChanged!=null&&this.propertyChanged(this,n)},s:function(n){this.collectionChanged!=null&&this.collectionChanged(this,n)},$type:new n.ig.Type("ObservableCollection$1",t.$al.$type.specialize(0),[t.$a6.$type,t.$be.$type])},!0);n.ig.util.defType("ReadOnlyCollection$1:bj","Object",{$t:null,init:function(t,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}this.c={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this)},init1:function(t,i,r){this.c={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=r},a:null,item:function(n,t){return arguments.length===2?(this.a.item(n,t),t):this.a.item(n)},indexOf:function(n){return this.a.indexOf(n)},insert:function(){},removeAt:function(){},count:function(){return this.a.count()},isReadOnly:function(){return!0},add1:function(){},clear:function(){},contains1:function(n){return this.a.contains(n)},copyTo:function(n,t){this.a.copyTo(n,t)},remove1:function(){return!1},getEnumerator:function(){return this.a.getEnumerator()},isFixedSize:function(){return!0},add:function(){return-1},contains:function(n){return this.a.contains(n)},indexOf1:function(n){return this.a.indexOf(n)},insert1:function(){},remove:function(){},copyTo1:function(n,t){this.a.copyTo(n,t)},b:function(){return this.a},isSynchronized:function(){return!0},c:null,syncRoot:function(){return this.c},$type:new n.ig.Type("ReadOnlyCollection$1",n.ig.$ot,[t.$ag.$type.specialize(0),n.ig.IList.prototype.$type])},!0);n.ig.util.defType("NameValueCollection:bl","Object",{a:null,init:function(){n.ig.$op.init.call(this);this.a=new t.ax(String,String,0)},item:function(n,t){return arguments.length===2?(this.a.containsKey(n)?this.a.item(n,t):this.a.add(n,t),t):this.a.containsKey(n)?this.a.item(n):null},$type:new n.ig.Type("NameValueCollection",n.ig.$ot)},!0);n.ig.util.defType("IOrderedEnumerable$1:bu","Object",{$type:new n.ig.Type("IOrderedEnumerable$1",null,[t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("Enumerable:bz","Object",{init:function(){n.ig.$op.init.call(this)},where$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=7;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$state=t(this.$b)?4:6;break;case 4:return this.$current=this.$b,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$state=this.$c.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},where$11:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:0,$c:null,$d:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$b=0;this.$state=1;break;case 1:this.$d=this.$this.getEnumerator();this.$state=7;break;case 2:this.$c=this.$d.current();this.$state=3;break;case 3:this.$state=t(this.$c,this.$b)?4:6;break;case 4:return this.$current=this.$c,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$b++;this.$state=7;break;case 7:this.$state=this.$d.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},select$2:function(t,i,r){var u=this,f=function(){return function(n,t,i){return{$state:0,$this:u,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:return this.$b=this.$c.current(),this.$current=i(this.$b),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i,r)};return new n.ig.GenericEnumerable$1(i,f)},selectMany$2:function(t,i,r){var u=this,f=function(){return function(n,t,i){return{$state:0,$this:u,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$e=i(this.$b).getEnumerator();this.$state=6;break;case 4:return this.$d=this.$e.current(),this.$current=this.$d,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=this.$e.moveNext()?4:7;break;case 7:this.$state=8;break;case 8:this.$state=this.$c.moveNext()?2:9;break;case 9:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i,r)};return new n.ig.GenericEnumerable$1(i,f)},ofType$1:function(t){var i=this,r=function(){return function(t){return{$state:0,$this:i,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.getEnumerator();this.$state=7;break;case 2:this.$a=this.$b.current();this.$state=3;break;case 3:this.$state=n.ig.util.cast(t,this.$a)!==null?4:6;break;case 4:return this.$current=this.$a,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$state=this.$b.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t)};return new n.ig.GenericEnumerable$1(t,r)},last$1:function(i){var r=n.ig.util.cast(t.$ag.$type.specialize(i),this),u,f,e;if(r!=null)return r.item(r.count()-1);for(u=null,f=this.getEnumerator();f.moveNext();)e=f.current(),u=e;return u},first$1:function(){for(var n=this.getEnumerator();n.moveNext();)return n.current();return null},firstOrDefault$1:function(){for(var n=this.getEnumerator();n.moveNext();)return n.current();return null},orderBy$2:function(i,r,u){var e=this,f=new t.b1(i,e);return f.sort1(function(i,r){var o=i,s=r,f=u(o),e=u(s);return n.ig.util.cast(t.$h.$type,f)!==null?n.ig.util.cast(t.$h.$type,f).compareTo(e):f.toString().compareTo(e.toString())}),f},orderByDescending$2:function(i,r,u){var e=this,f=new t.b1(i,e);return f.sort1(function(i,r){var o=r,s=i,f=u(o),e=u(s);return n.ig.util.cast(t.$h.$type,f)!==null?n.ig.util.cast(t.$h.$type,f).compareTo(e):f.toString().compareTo(e.toString())}),f},toList$1:function(n){return new t.al(n,1,this)},d:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=n;this.$state=5;break;case 2:return this.$current=this.$c,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$c++;this.$state=5;break;case 5:this.$state=this.$c<t?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(n.ig.Number.prototype.$type,u)},concat$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:return this.$b=this.$c.current(),this.$current=this.$b,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()?2:5;break;case 5:this.$state=6;break;case 6:this.$e=t.getEnumerator();this.$state=9;break;case 7:return this.$d=this.$e.current(),this.$current=this.$d,this.$state=8,!0;case 8:this.$state=9;break;case 9:this.$state=this.$e.moveNext()?7:10;break;case 10:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},max:function(){for(var i=!0,n=0,r=this.getEnumerator(),t;r.moveNext();)t=r.current(),i?(i=!1,n=t):n=Math.max(n,t);return n},max$1:function(t,i){return this.select$2(t,n.ig.Number.prototype.$type,i).max()},min:function(){for(var i=!0,n=0,r=this.getEnumerator(),t;r.moveNext();)t=r.current(),i?(i=!1,n=t):n=Math.min(n,t);return n},min$1:function(t,i){return this.select$2(t,n.ig.Number.prototype.$type,i).max()},count$1:function(){for(var n=0,t=this.getEnumerator(),i;t.moveNext();)i=t.current(),n++;return n},reverse$1:function(i){var r=this,u=function(){return function(n){return{$state:0,$this:r,$current:null,$a:null,$b:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$a=new t.al(n,1,this.$this);this.$state=1;break;case 1:this.$b=this.$a.count()-1;this.$state=5;break;case 2:return this.$current=this.$a.__inner[this.$b],this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$b--;this.$state=5;break;case 5:this.$state=this.$b>0?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(i)};return new n.ig.GenericEnumerable$1(i,u)},cast$1:function(i){var u,r,f,e;if(this==null)throw new t.ca("source");if(u=n.ig.util.cast(t.$ad.$type.specialize(i),this),u!=null)return u;for(r=new t.al(i,0),f=this.getEnumerator();f.moveNext();)e=f.current(),n.ig.util.cast(i,e)!==null?r.add1(e):r.add1(null);return r},take$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=9;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$state=t>0?4:6;break;case 4:return t--,this.$current=this.$b,this.$state=5,!0;case 5:this.$state=8;break;case 6:return this.$state=-2,!1;case 7:this.$state=8;break;case 8:this.$state=9;break;case 9:this.$state=this.$c.moveNext()?2:10;break;case 10:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},skip$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$state=t<=0?4:6;break;case 4:return this.$current=this.$b,this.$state=5,!0;case 5:this.$state=7;break;case 6:t--;this.$state=7;break;case 7:this.$state=8;break;case 8:this.$state=this.$c.moveNext()?2:9;break;case 9:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},any$1:function(){for(var n=this.getEnumerator(),t;n.moveNext();)return t=n.current(),!0;return!1},contains$1:function(n,t){for(var i=this.getEnumerator(),r;i.moveNext();)if(r=i.current(),r===t)return!0;return!1},union$1:function(){return null},toArray$1:function(n){var i=new t.al(n,1,this);return i.asArrayList()},elementAt$1:function(i,r){var u=n.ig.util.cast(t.$ag.$type.specialize(i),this);return u!=null?u.item(r):this.skip$1(i,r).first$1(i)},sum:function(){for(var n=0,t=this.getEnumerator(),i;t.moveNext();)i=t.current(),n+=i;return n},sum$1:function(n,t){return this.select$2(n,Number,t).sum()},$type:new n.ig.Type("Enumerable",n.ig.$ot)},!0);n.ig.util.defType("SortedList$1:b1","List$1",{$tElement:null,init:function(n,i){this.$tElement=n;this.$type=this.$type.specialize(this.$tElement);t.$al.init1.call(this,this.$tElement,1,i)},getEnumerator:function(){return t.$al.getEnumerator.call(this)},$type:new n.ig.Type("SortedList$1",t.$al.$type.specialize(0),[t.$bu.$type.specialize(0)])},!0);n.ig.util.defType("IArray:ao","Object",{$type:new n.ig.Type("IArray",null)},!0);n.ig.util.defType("AggregateException:cn","Error",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}t.$a3.init.call(this)},init1:function(n,i){t.$a3.init1.call(this,1,i)},init2:function(n,i,r){t.$a3.init2.call(this,2,i,r)},$type:new n.ig.Type("AggregateException",t.$a3.$type)},!0);n.ig.util.defType("ArgumentException:co","Error",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$a3.init1.call(this,1,i)},init1:function(n,i){t.$a3.init1.call(this,1,i)},$type:new n.ig.Type("ArgumentException",t.$a3.$type)},!0);n.ig.util.defType("ArgumentNullException:ca","Error",{init:function(n){t.$a3.init1.call(this,1,n+" cannot be null.")},$type:new n.ig.Type("ArgumentNullException",t.$a3.$type)},!0);n.ig.util.defType("AsyncCompletedEventArgs:cq","EventArgs",{d:null,b:!1,f:null,init:function(n,i,r){t.$a9.init.call(this);this.b=i;this.d=n;this.f=r},error:function(){return this.d},cancelled:function(){return this.b},userState:function(){return this.f},h:function(){if(this.error()!=null)throw this.error();},$type:new n.ig.Type("AsyncCompletedEventArgs",t.$a9.$type)},!0);n.ig.util.defType("Environment:cu","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){return"\n"},$type:new n.ig.Type("Environment",n.ig.$ot)},!0);n.ig.util.defType("InvalidOperationException:cv","Error",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$a3.init1.call(this,1,"Invalid operation")},init1:function(n,i){t.$a3.init1.call(this,1,i)},$type:new n.ig.Type("InvalidOperationException",t.$a3.$type)},!0);n.ig.util.defType("Debug:cw","Object",{init:function(){n.ig.$op.init.call(this)},b:function(){},c:function(){},a:function(){},$type:new n.ig.Type("Debug",n.ig.$ot)},!0);n.ig.util.defType("ICredentials:cz","Object",{$type:new n.ig.Type("ICredentials",null)},!0);n.ig.util.defType("NetworkCredential:c0","Object",{init:function(n,i,r){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$c0.init1.call(this,1,i,r,String.empty())},init1:function(t,i,r,u){n.ig.$op.init.call(this);this.c(i);this.b(r);this.a(u)},getCredential:function(){return this},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("NetworkCredential",n.ig.$ot,[t.$cz.$type])},!0);n.ig.util.defType("UploadStringCompletedEventArgs:c3","AsyncCompletedEventArgs",{i:null,init:function(n,i,r,u){t.$cq.init.call(this,i,r,u);this.i=n},result:function(){return this.h(),this.i},$type:new n.ig.Type("UploadStringCompletedEventArgs",t.$cq.$type)},!0);n.ig.util.defType("WebClient:c4","Object",{init:function(){n.ig.$op.init.call(this);this.c(new t.c8)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},uploadStringCompleted:null,h:function(n,i,r,u){var f=this;f.e(n,i,r).i(function(n){if(f.uploadStringCompleted!=null){var i=null,r=null;try{i=n.m()}catch(e){r=e}f.uploadStringCompleted(f,new t.c3(i,r,n.g()==6,u))}})},e:function(i,r,u){var f=i.value(),e=r,o=u,s=this.c().item("Content-Type"),h=this.a(),c=n.ig.util.ajax(f,s,o,e,h);return new t.c9(String,c,null)},g:function(n,t){n.e(t)},f:function(n,i,r,u){n.d(new t.a3(1,u))},$type:new n.ig.Type("WebClient",n.ig.$ot)},!0);n.ig.util.defType("WebHeaderCollection:c8","NameValueCollection",{init:function(){t.$bl.init.call(this)},$type:new n.ig.Type("WebHeaderCollection",t.$bl.$type)},!0);n.ig.util.defType("FaultCode:dx","Object",{init:function(t){n.ig.$op.init.call(this);this.a(t)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("FaultCode",n.ig.$ot)},!0);n.ig.util.defType("FaultException:dy","Error",{init:function(n,i,r){t.$a3.init.call(this);this.reason(n);this.code(i);this.action(r)},_action:null,action:function(n){return arguments.length===1?(this._action=n,n):this._action},_code:null,code:function(n){return arguments.length===1?(this._code=n,n):this._code},_reason:null,reason:function(n){return arguments.length===1?(this._reason=n,n):this._reason},$type:new n.ig.Type("FaultException",t.$a3.$type)},!0);n.ig.util.defType("FaultException$1:d0","FaultException",{$tDetail:null,init:function(n,i,r,u,f){this.$tDetail=n;this.$type=this.$type.specialize(this.$tDetail);t.$dy.init.call(this,r,u,f);this.detail(i)},_detail:null,detail:function(n){return arguments.length===1?(this._detail=n,n):this._detail},$type:new n.ig.Type("FaultException$1",t.$dy.$type)},!0);n.ig.util.defType("FaultReason:dz","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},toString:function(){return this.a},$type:new n.ig.Type("FaultReason",n.ig.$ot)},!0);n.ig.util.defType("StringBuilder:d1","Object",{_internal:null,internal:function(n){return arguments.length===1?(this._internal=n,n):this._internal},init:function(){n.ig.$op.init.call(this);this._internal=[]},d:function(n){return this._internal.push(n),this},e:function(n){var t=n.b();return this._internal.push(t),this},c:function(n){return this._internal.push(n),this},f:function(n){return this._internal.push(n+String.fromCharCode(10)),this},g:function(n,t){return this._internal.splice(n,0,t),this},h:function(n,t){return this._internal.splice(n,0,t),this},i:function(n,t){return this._internal.splice(n,t),this},b:function(){return this._internal.join("")},$type:new n.ig.Type("StringBuilder",n.ig.$ot)},!0);n.ig.util.defType("NotImplementedException:a2","Error",{init:function(){t.$a3.init1.call(this,1,"not implemented")},$type:new n.ig.Type("NotImplementedException",t.$a3.$type)},!0);n.ig.util.defType("Encoding:c5","Object",{init:function(){n.ig.$op.init.call(this)},uTF8:function(){return t.$c5.g==null&&(t.$c5.g=new t.c6),t.$c5.g},unicode:function(){return t.$c5.f==null&&(t.$c5.f=new t.c7),t.$c5.f},getString:function(){return""},getBytes2:function(){},getBytes:function(n,t,i){var r=new Array(this.getByteCount(n,t,i));return this.getBytes2(n,t,i,r,0),r},getBytes1:function(n){var r,i;if(n==null)throw new t.ca("input");for(r=new Array(n.length),i=0;i<n.length;i++)r[i]=n.charAt(i);return this.getBytes(r,0,r.length)},getByteCount:function(){},$type:new n.ig.Type("Encoding",n.ig.$ot)},!0);n.ig.util.defType("UnicodeEncoding:c7","Encoding",{init:function(){t.$c5.init.call(this)},getString:function(t,i,r){for(var f="",u=i;u<r;u=u+2){if(t[u]==0)break;if(u+1>=r)f=f+"�";else{var e=t[u].toString(16),o=t[u+1].toString(16),s=n.ig.Number.prototype.parseInt(o+e,16);f=f+String.fromCharCode(s)}}return f},getByteCount:function(){return 0},getBytes2:function(){return 0},getBytes:function(n,i,r){return t.$c5.getBytes.call(this,n,i,r)},getBytes1:function(t){for(var u,r=new Array(t.length*2),i=0;i<t.length;i++)u=t.charCodeAt(i).toString(16).padLeft(4,"0"),r[2*i]=n.ig.Number.prototype.parseInt(u.substr(2),16),r[2*i+1]=n.ig.Number.prototype.parseInt(u.substr(0,2),16);return r},$type:new n.ig.Type("UnicodeEncoding",t.$c5.$type)},!0);n.ig.util.defType("UTF8Encoding:c6","Encoding",{init:function(){t.$c5.init.call(this)},getString:function(n,t,i){for(var u="",r=t;r<i;r++){if(n[r]==0)break;u=u+String.fromCharCode(n[r])}return decodeURIComponent(escape(u))},getByteCount:function(){return 0},getBytes2:function(){return 0},getBytes:function(n,i,r){return t.$c5.getBytes.call(this,n,i,r)},getBytes1:function(n){for(var i=new Array(n.length),r=unescape(encodeURIComponent(n)),t=0;t<r.length;t++)i[t]=r.charCodeAt(t);return i},$type:new n.ig.Type("UTF8Encoding",t.$c5.$type)},!0);n.ig.util.defType("Task:da","Object",{_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$da.init1.call(this,1,i,null)},init1:function(i,r,u){var f=this,e,o;n.ig.$op.init.call(this);e=function(){};o=function(n){n==null?f.b(!0):f.a(new t.cn(2,"Exception occurred during task execution",n))};this.c(r.done(e).fail(o));this.d(u)},g:function(){if(this.b())return 6;switch(this.c().state()){case"pending":return 0;case"resolved":return 5;case"rejected":return 7;default:return 0}},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},e:function(n){var i=this,r=function(){return n(i)},u=function(){return n(i)},f=i.c().done(r).fail(u);return new t.da(0,f)},f:function(n,i){var u=this,r=new t.de(n,0),f=function(){try{var n=i(u);r.e(n)}catch(t){r.d(t)}},e=function(){return f()},o=function(){return f()};return u.c().done(e).fail(o),r.b()},$type:new n.ig.Type("Task",n.ig.$ot)},!0);n.ig.util.defType("Task$1:c9","Task",{$tResult:null,init:function(n,i,r){var u=this,f,e;this.h=!1;this.$tResult=n;this.$type=this.$type.specialize(this.$tResult);t.$da.init1.call(this,1,i,r);f=function(n){var t=n;u.l=t;u.h=!0};e=function(){u.h=!0};this.c().done(f).fail(e)},h:!1,l:null,m:function(){if(!this.h)throw"Result is not ready yet";if(this.a()!=null)throw this.a();return this.l},i:function(n){var i=this;return t.$da.e.call(i,function(t){return n(t)})},j:function(t,i){var r=this,u=function(n){return i(n)};return r.k(n.ig.$op.$type,u).k(t,function(n){return n.m()})},k:function(n,i){return t.$da.f.call(this,n,i)},$type:new n.ig.Type("Task$1",t.$da.$type)},!0);n.ig.util.defType("TaskCompletionSource$1:de","Object",{$tResult:null,_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(n,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}this.$tResult=n;this.$type=this.$type.specialize(this.$tResult);t.$de.init1.call(this,this.$tResult,1,null)},init1:function(i,r,u){this.$tResult=i;this.$type=this.$type.specialize(this.$tResult);n.ig.$op.init.call(this);this.a(n.ig.util.deferred());this.b(new t.c9(this.$tResult,this.a().promise(),u))},c:function(){this.a().reject(null)},d:function(n){this.a().reject(n)},e:function(n){this.a().resolve(n)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("TaskCompletionSource$1",n.ig.$ot)},!0);n.ig.util.defType("TaskFactory:d4","Object",{init:function(){n.ig.$op.init.call(this)},c:function(n,i){var r=this;return new t.da(0,r.b(r.a(n)).always(function(){return i(n)}))},d:function(n,i,r){var f=this,u=new t.de(n,0);return f.b(f.a(i)).always(function(){try{var n=r(i);u.e(n)}catch(t){u.d(t)}}),u.b()},e:function(t,i,r,u){var f=this,e=function(n){return u(n)};return f.d(n.ig.$op.$type,r,e).j(i,function(n){return n.m()})},a:function(n){for(var i=new Array(n.length),t=0;t<n.length;t++)i[t]=n[t].c();return i},b:function(t){var i=t;return function(t){function i(){var i=n.ig.util.deferred(),u,t,r;if(arguments.length===0)return i.resolve(),i;for(u=arguments.length,t=!0,r=0;r<arguments.length;r++)arguments[r].done(function(){t=t&&!0}).fail(function(){t=t&&!1}).always(function(){u--;u<=0&&(t?i.resolve():i.reject())});return i}return i.apply(n,t)}(i)},$type:new n.ig.Type("TaskFactory",n.ig.$ot)},!0);n.ig.util.defType("Tuple$2:d5","Object",{$t1:null,$t2:null,_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},init:function(t,i,r,u){this.$t1=t;this.$t2=i;this.$type=this.$type.specialize(this.$t1,this.$t2);n.ig.$op.init.call(this);this.a(r);this.b(u)},$type:new n.ig.Type("Tuple$2",n.ig.$ot)},!0);n.ig.util.defType("Uri:c1","Object",{init:function(t){n.ig.$op.init.call(this);this.value(t)},_value:null,value:function(n){return arguments.length===1?(this._value=n,n):this._value},$type:new n.ig.Type("Uri",n.ig.$ot)},!0);n.ig.util.defType("JavaScriptSerializer:d6","Object",{init:function(){n.ig.$op.init.call(this)},a:function(n){var t=n;return JSON.parse(t)},b:function(n){var t=n;return JSON.stringify(t)},$type:new n.ig.Type("JavaScriptSerializer",n.ig.$ot)},!0);n.ig.util.defType("XObject:f9","Object",{init:function(t){n.ig.$op.init.call(this);this.backingNode(t)},_backingNode:null,backingNode:function(n){return arguments.length===1?(this._backingNode=n,n):this._backingNode},c:function(){},toString:function(){return this.backingNode()!=null?t.$gi.xmlNodeToString(this.backingNode()):""},$type:new n.ig.Type("XObject",n.ig.$ot)},!0);n.ig.util.defType("XAttribute:gj","XObject",{init:function(n){t.$f9.init.call(this,n)},e:function(n){this.backingNode(this.backingNode().cloneNode(!0));n.setAttributeNode(this.backingNode())},c:function(){return 2},d:function(){return t.$gi.b(this.backingNode())},$type:new n.ig.Type("XAttribute",t.$f9.$type)},!0);n.ig.util.defType("XNode:gk","XObject",{init:function(n){t.$f9.init.call(this,n)},$type:new n.ig.Type("XNode",t.$f9.$type)},!0);n.ig.util.defType("XContainer:gl","XNode",{init:function(n){t.$gk.init.call(this,n)},h:function(n){for(var i,r=null,e=this.backingNode(),f=e.childNodes,o=f.length,s=n.c(),h=n.d(),u=0;u<o;u++)i=f.item(u),i.namespaceURI==h&&i.nodeType==1&&t.$gi.d(i)==s&&(r=i);return r==null?null:new t.gm(0,r)},d:function(){return this.f(null)},e:function(n){return this.f(n)},f:function(n){for(var i,r,f=new t.al(t.$gm.$type,0),u=0;u<this.backingNode().childNodes.length;u++)i=this.backingNode().childNodes.item(u),i.nodeType==1&&(r=!1,n!=null?t.$gi.d(i)==n.c()&&i.namespaceURI==n.d()&&(r=!0):r=!0,r&&f.add1(new t.gm(0,i)));return f},g:function(i){var r=this.backingNode(),u;u=n.ig.util.cast(t.$gp.$type,this)!==null?this.backingNode():this.backingNode().ownerDocument;n.ig.util.cast(t.$gj.$type,i)!==null?i.e(r):n.ig.util.cast(t.$gm.$type,i)!==null&&i.j(r,u)},$type:new n.ig.Type("XContainer",t.$gk.$type)},!0);n.ig.util.defType("XDocument:gp","XContainer",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$gl.init.call(this,i)},init1:function(){t.$gl.init.call(this,t.$gi.j())},c:function(){return 9},i:function(n){return new t.gp(0,t.$gi.n(n))},$type:new n.ig.Type("XDocument",t.$gl.$type)},!0);n.ig.util.defType("XElement:gm","XContainer",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}t.$gl.init.call(this,i)},init1:function(n,i){t.$gm.init2.call(this,2,i,null)},init2:function(n,i,r){t.$gl.init.call(this,t.$gi.o(i.c(),i.d()));var u=r==null?"":r.toString();this.i(u)},i:function(n){return arguments.length===1?(t.$gi.h(this.backingNode(),n),n):t.$gi.c(this.backingNode())},c:function(){return 1},l:function(){return t.$gn.e(t.$gi.d(this.backingNode()),this.backingNode().namespaceURI)},k:function(n){return new t.gj(t.$gi.i(this.backingNode(),n.c(),n.d()))},j:function(n,i){this.backingNode().ownerDocument!=i&&this.backingNode(t.$gi.p(i,this.backingNode()));n.appendChild(this.backingNode())},$type:new n.ig.Type("XElement",t.$gl.$type)},!0);n.ig.util.defType("XmlUtils:gi","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){return!!window.DOMParser},m:function(n){var t=n;return(new DOMParser).parseFromString(t,"text/xml")},l:function(n){var t=n;return function(n){var t=new ActiveXObject("Microsoft.XMLDOM");return t.async=!1,t.loadXML(n),t}(t)},f:function(n){var t=n;return(new XMLSerializer).serializeToString(t)},e:function(n){var t=n;return t.xml},k:function(){return new ActiveXObject("Microsoft.XMLDOM")},n:function(n){return t.$gi.a()?t.$gi.m(n):t.$gi.l(n)},xmlNodeToString:function(n){return t.$gi.a()?t.$gi.f(n):t.$gi.e(n)},j:function(){var n;return t.$gi.a()?(n=t.$gi.m("<dummy/>"),n.removeChild(n.documentElement)):n=t.$gi.k(),n},o:function(n,i){var r=t.$gi.j(),u,f;return t.$gi.a()?r.createElementNS(i,n):(u=n,f=i,r.createNode(1,u,f))},c:function(n){if(t.$gi.a())return n.textContent;var i=n;return i.text},h:function(n,i){if(t.$gi.a())n.textContent=i;else{var r=n,u=i;r.text=u}},p:function(n,i){return t.$gi.a()?n.importNode(i,!0):i},d:function(n){if(t.$gi.a())return n.localName;var i=n;return i.baseName},i:function(n,i,r){if(t.$gi.a())return n.getAttributeNodeNS(r,i);var u=n,f=i,e=r;return u.attributes.getQualifiedItem(f,e)},b:function(n){if(t.$gi.a())return n.nodeValue;var i=n;return i.value},$type:new n.ig.Type("XmlUtils",n.ig.$ot)},!0);n.ig.util.defType("XName:gn","Object",{a:null,b:null,init:function(t,i){n.ig.$op.init.call(this);this.a=t;this.b=i},c:function(){return this.a},d:function(){return this.b},f:function(){return t.$go.c(this.b)},e:function(n,i){return new t.gn(n,i)},$type:new n.ig.Type("XName",n.ig.$ot)},!0);n.ig.util.defType("XNamespace:go","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},c:function(n){return new t.go(n)},d:function(){return t.$go.c("http://www.w3.org/2000/xmlns/")},b:function(){return this.a},$type:new n.ig.Type("XNamespace",n.ig.$ot)},!0);t.$dd.created=0;t.$dd.ranToCompletion=5;t.$dd.canceled=6;t.$dd.faulted=7;t.$cs.ascending=0;t.$cs.descending=1;t.$ba.add=0;t.$ba.remove=1;t.$ba.replace=2;t.$ba.reset=4;t.$c5.g=null;t.$c5.f=null;n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ICollection$1,n.ig.IEnumerable$1,n.ig.IList$1,n.ig.List$1,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.AbstractEnumerable,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ICollection$1,n.ig.IEnumerable$1,n.ig.IList$1,n.ig.List$1,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ICollection$1,n.ig.IEnumerable$1,n.ig.IList$1,n.ig.List$1,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.AbstractEnumerable,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1],["ofType$1","cast$1"]]])}(jQuery),$.ig=$.ig||{},function(n){n.ig.$currDefinitions={};n.ig.util.bulkDefine(["ICoreOlapElement:a","String:b","Object:c","Type:d","Boolean:e","ValueType:f","Void:g","RuntimeTypeHandle:h","MethodInfo:i","MethodBase:j","MemberInfo:k","ParameterInfo:l","TypeCode:m","Enum:n","Number:o","IComparable:p","Number:q","Single:r","Number:s","ConstructorInfo:t","String:u","Array:v","RegExp:w","Cube:x","CubeType:y","Date:z","Date:aa","Number:ab","Catalog:ac","Dimension:ad","DimensionType:ae","KpiDimension:af","HierarchyOrigin:ai","AggregatorType:aj","CardinalityType:ak","MemberType:al","Hierarchy:am","Kpi:an","Level:ao","Measure:ap","KpiMeasure:aq","MeasureGroup:ar","MeasureGroupDimension:as","Member:at","Nullable$1:au","OlapResult:av","IList$1:aw","ICollection$1:ax","IEnumerable$1:ay","IEnumerable:az","IEnumerator:a0","IEnumerator$1:a1","OlapResultAxis:a2","PositionResolver$2:a3","List$1:a4","IArrayList:a5","Array:a6","ICollection:a7","CompareCallback:a8","MulticastDelegate:a9","IntPtr:ba","IList:bb","IDisposable:bc","IArray:bd","Script:be","Func$3:bf","Action$1:bg","PositionItemInfo$2:bh","Dictionary$2:bi","IDictionary$2:bj","IDictionary:bk","Dictionary:bl","IEqualityComparer$1:bm","KeyValuePair$2:bn","NotImplementedException:bo","Error:bp","IHierarchicalPositionItem$2:bq","IPositionItem$2:br","IPosition$2:bs","Math:bt","Number:bu","Number:bv","Number:bw","Number:bx","Number:by","Number:bz","Number:b0","Enumerable:b1","Func$2:b2","IOrderedEnumerable$1:b3","SortedList$1:b4","ArgumentNullException:b5","EventHandler$1:b6","Delegate:b7","ListSortDirection:b8","OlapResultTuple:b9","ReadOnlyCollection$1:ca","OlapResultAxisMember:cb","OlapResultCell:cc","IConnection:cd","IOlapDataProviderFactory:ce","IOlapDiscoverDataProvider:cf","Task$1:cg","Task:ch","JQueryPromise:ci","Action:cj","AggregateException:ck","TaskStatus:cl","TaskCompletionSource$1:cm","JQueryDeferred:cn","JQuery:co","JQueryObject:cp","Element:cq","ElementAttributeCollection:cr","ElementCollection:cs","WebStyle:ct","ElementNodeType:cu","Document:cv","EventListener:cw","IElementEventHandler:cx","ElementEventHandler:cy","ElementAttribute:cz","JQueryPosition:c0","JQueryCallback:c1","JQueryEvent:c2","JQueryUICallback:c3","IOlapExecuteCommandProvider:c4","HeaderCellsLayoutOrientation:c5","LevelSpanManager:c6","SpanSource:c7","ITableViewHeadersFactory:c8","TableViewHeadersFactory:c9","ArrayListCollection$1:da","INotifyCollectionChanged:db","NotifyCollectionChangedEventHandler:dc","NotifyCollectionChangedEventArgs:dd","EventArgs:de","NotifyCollectionChangedAction:df","TableViewHeaderCellSource:dg","OlapTableViewHeaderCell:dh","TableCompactViewHeadersFactory:di","TableViewImpl:dj","TableViewSettings:dk","ResultHeaderSorter:dl","ResultSorter$1:dm","AxisTupleVisitor:dn","LevelSortDirection:dp","LevelSortBehavior:dq","AxisHeaderSortingVisitor:dr","TupleSortDirection:ds","ResultColumnValueSorter:dt","AxisValueSortingVisitor:du","OlapTableViewResultCell:dv","OlapResultView:dw","InvalidOperationException:dx","ResultViewHelper:dy","IOlapDataSource:dz","OlapMetadataTreeItem:d0","OlapMetadataTreeItemType:d1","MeasureListLocation:d2","MeasureList:d3","OlapDataSource:d4","DataSourceBaseOptions:d5","CubeMetaItemsCache:d6","MeasureGroupMetaItemsCache:d7","Tuple$2:d8","NotSupportedException:d9","PositionInfo:ea","TaskExtensions:eb","AxisElement:ec","AxisDefinitionParser:ed","Debug:ee","TaskFactory:ef","MetaTreeHelper:eg","HierarchyItemPosition:eh","CoreOlapElementParser:el","KeyValueItem:eu","HierarchyFilterView:ev","FilterMember:ew","INotifyPropertyChanged:ex","PropertyChangedEventHandler:ey","PropertyChangedEventArgs:ez","FilterMemberStateChangedEventArgs:e0","DataSourceBase:e1","jQueryUtils:e2","OlapUtilities:e3","OlapTableView:e4","AbstractEnumerable:e5","Func$1:e6","AbstractEnumerator:e7","GenericEnumerable$1:e8","GenericEnumerator$1:e9"]);n.ig.util.defType("LevelSortBehavior","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("LevelSortBehavior",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("OlapMetadataTreeItemType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("OlapMetadataTreeItemType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("MeasureListLocation","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("MeasureListLocation",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("HeaderCellsLayoutOrientation","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("HeaderCellsLayoutOrientation",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("MemberType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("MemberType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("CardinalityType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("CardinalityType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("AggregatorType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("AggregatorType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("HierarchyOrigin","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("HierarchyOrigin",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("DimensionType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("DimensionType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("CubeType","Enum",{init:function(){n.ig.Enum.prototype.init.call(this)},$type:new n.ig.Type("CubeType",n.ig.Enum.prototype.$type)},!0);n.ig.util.defType("ICoreOlapElement","Object",{$type:new n.ig.Type("ICoreOlapElement",null)},!0);n.ig.util.defType("Cube","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_catalogName:null,catalogName:function(n){return arguments.length===1?(this._catalogName=n,n):this._catalogName},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_cubeType:null,cubeType:function(n){return arguments.length===1?(this._cubeType=n,n):this._cubeType},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_lastProcessed:null,lastProcessed:function(n){return arguments.length===1?(this._lastProcessed=n,n):this._lastProcessed},_lastUpdated:null,lastUpdated:function(n){return arguments.length===1?(this._lastUpdated=n,n):this._lastUpdated},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},uniqueName:function(n){return arguments.length===1?(this.name(n),n):this.name()},$type:new n.ig.Type("Cube",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Catalog","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},$type:new n.ig.Type("Catalog",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Dimension","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_dimensionType:null,dimensionType:function(n){return arguments.length===1?(this._dimensionType=n,n):this._dimensionType},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_defaultHierarchy:null,defaultHierarchy:function(n){return arguments.length===1?(this._defaultHierarchy=n,n):this._defaultHierarchy},$type:new n.ig.Type("Dimension",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("KpiDimension","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},$type:new n.ig.Type("KpiDimension",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Hierarchy","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_defaultHierarchy:null,defaultHierarchy:function(n){return arguments.length===1?(this._defaultHierarchy=n,n):this._defaultHierarchy},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_defaultMember:null,defaultMember:function(n){return arguments.length===1?(this._defaultMember=n,n):this._defaultMember},_allMember:null,allMember:function(n){return arguments.length===1?(this._allMember=n,n):this._allMember},_dimensionUniqueName:null,dimensionUniqueName:function(n){return arguments.length===1?(this._dimensionUniqueName=n,n):this._dimensionUniqueName},_hierarchyOrigin:null,hierarchyOrigin:function(n){return arguments.length===1?(this._hierarchyOrigin=n,n):this._hierarchyOrigin},_hierarchyDisplayFolder:null,hierarchyDisplayFolder:function(n){return arguments.length===1?(this._hierarchyDisplayFolder=n,n):this._hierarchyDisplayFolder},$type:new n.ig.Type("Hierarchy",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Kpi","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_measureGroupName:null,measureGroupName:function(n){return arguments.length===1?(this._measureGroupName=n,n):this._measureGroupName},_kpiDisplayFolder:null,kpiDisplayFolder:function(n){return arguments.length===1?(this._kpiDisplayFolder=n,n):this._kpiDisplayFolder},_kpiValue:null,kpiValue:function(n){return arguments.length===1?(this._kpiValue=n,n):this._kpiValue},_kpiGoal:null,kpiGoal:function(n){return arguments.length===1?(this._kpiGoal=n,n):this._kpiGoal},_kpiStatus:null,kpiStatus:function(n){return arguments.length===1?(this._kpiStatus=n,n):this._kpiStatus},_kpiTrend:null,kpiTrend:function(n){return arguments.length===1?(this._kpiTrend=n,n):this._kpiTrend},_kpiStatusGraphic:null,kpiStatusGraphic:function(n){return arguments.length===1?(this._kpiStatusGraphic=n,n):this._kpiStatusGraphic},_kpiTrendGraphic:null,kpiTrendGraphic:function(n){return arguments.length===1?(this._kpiTrendGraphic=n,n):this._kpiTrendGraphic},_kpiWeight:null,kpiWeight:function(n){return arguments.length===1?(this._kpiWeight=n,n):this._kpiWeight},_parentKpiName:null,parentKpiName:function(n){return arguments.length===1?(this._parentKpiName=n,n):this._parentKpiName},_currentTimeMember:null,currentTimeMember:function(n){return arguments.length===1?(this._currentTimeMember=n,n):this._currentTimeMember},$type:new n.ig.Type("Kpi",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Level","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_depth:0,depth:function(n){return arguments.length===1?(this._depth=n,n):this._depth},_hierarchyUniqueName:null,hierarchyUniqueName:function(n){return arguments.length===1?(this._hierarchyUniqueName=n,n):this._hierarchyUniqueName},_dimensionUniqueName:null,dimensionUniqueName:function(n){return arguments.length===1?(this._dimensionUniqueName=n,n):this._dimensionUniqueName},_membersCount:0,membersCount:function(n){return arguments.length===1?(this._membersCount=n,n):this._membersCount},_levelOrigin:0,levelOrigin:function(n){return arguments.length===1?(this._levelOrigin=n,n):this._levelOrigin},_levelOrderingProperty:null,levelOrderingProperty:function(n){return arguments.length===1?(this._levelOrderingProperty=n,n):this._levelOrderingProperty},$type:new n.ig.Type("Level",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("Measure","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_measureGroupName:null,measureGroupName:function(n){return arguments.length===1?(this._measureGroupName=n,n):this._measureGroupName},_aggregatorType:null,aggregatorType:function(n){return arguments.length===1?(this._aggregatorType=n,n):this._aggregatorType},_defaultFormatString:null,defaultFormatString:function(n){return arguments.length===1?(this._defaultFormatString=n,n):this._defaultFormatString},_measureDisplayFolder:null,measureDisplayFolder:function(n){return arguments.length===1?(this._measureDisplayFolder=n,n):this._measureDisplayFolder},$type:new n.ig.Type("Measure",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("KpiMeasure","Measure",{init:function(t,i){n.ig.Measure.prototype.init.call(this);this.uniqueName(t);this.caption(i)},_graphic:null,graphic:function(n){return arguments.length===1?(this._graphic=n,n):this._graphic},createKpiValueMeasure:function(t){return new n.ig.KpiMeasure(t.kpiValue(),t.caption()+" Value")},createKpiGoalMeasure:function(t){return new n.ig.KpiMeasure(t.kpiGoal(),t.caption()+" Goal")},createKpiWeightMeasure:function(t){return new n.ig.KpiMeasure(t.kpiWeight(),t.caption()+" Weight")},createKpiStatusMeasure:function(t){var i=new n.ig.KpiMeasure(t.kpiStatus(),t.caption()+" Status");return i.graphic(t.kpiStatusGraphic()),i},createKpiTrendMeasure:function(t){var i=new n.ig.KpiMeasure(t.kpiTrend(),t.caption()+" Trend");return i.graphic(t.kpiTrendGraphic()),i},$type:new n.ig.Type("KpiMeasure",n.ig.Measure.prototype.$type)},!0);n.ig.util.defType("MeasureGroup","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_cubeName:null,cubeName:function(n){return arguments.length===1?(this._cubeName=n,n):this._cubeName},_catalogName:null,catalogName:function(n){return arguments.length===1?(this._catalogName=n,n):this._catalogName},uniqueName:function(n){return arguments.length===1?(this.name(n),n):this.name()},$type:new n.ig.Type("MeasureGroup",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("MeasureGroupDimension","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_cubeName:null,cubeName:function(n){return arguments.length===1?(this._cubeName=n,n):this._cubeName},_catalogName:null,catalogName:function(n){return arguments.length===1?(this._catalogName=n,n):this._catalogName},_measureGroupName:null,measureGroupName:function(n){return arguments.length===1?(this._measureGroupName=n,n):this._measureGroupName},_dimensionUniqueName:null,dimensionUniqueName:function(n){return arguments.length===1?(this._dimensionUniqueName=n,n):this._dimensionUniqueName},_measureGroupCardinality:null,measureGroupCardinality:function(n){return arguments.length===1?(this._measureGroupCardinality=n,n):this._measureGroupCardinality},_dimensionCardinality:null,dimensionCardinality:function(n){return arguments.length===1?(this._dimensionCardinality=n,n):this._dimensionCardinality},_isDimensionVisible:!1,isDimensionVisible:function(n){return arguments.length===1?(this._isDimensionVisible=n,n):this._isDimensionVisible},_isFactDimension:!1,isFactDimension:function(n){return arguments.length===1?(this._isFactDimension=n,n):this._isFactDimension},_dimensionPath:null,dimensionPath:function(n){return arguments.length===1?(this._dimensionPath=n,n):this._dimensionPath},_dimensionGranularity:null,dimensionGranularity:function(n){return arguments.length===1?(this._dimensionGranularity=n,n):this._dimensionGranularity},$type:new n.ig.Type("MeasureGroupDimension",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("Member","Object",{init:function(){n.ig.Object.prototype.init.call(this);var t=n.ig.util.toNullable(n.ig.Number.prototype.$type,null);this.scope(t)},_cubeName:null,cubeName:function(n){return arguments.length===1?(this._cubeName=n,n):this._cubeName},_catalogName:null,catalogName:function(n){return arguments.length===1?(this._catalogName=n,n):this._catalogName},_dimensionUniqueName:null,dimensionUniqueName:function(n){return arguments.length===1?(this._dimensionUniqueName=n,n):this._dimensionUniqueName},_hierarchyUniqueName:null,hierarchyUniqueName:function(n){return arguments.length===1?(this._hierarchyUniqueName=n,n):this._hierarchyUniqueName},_levelUniqueName:null,levelUniqueName:function(n){return arguments.length===1?(this._levelUniqueName=n,n):this._levelUniqueName},_levelDepth:0,levelDepth:function(n){return arguments.length===1?(this._levelDepth=n,n):this._levelDepth},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_memberType:null,memberType:function(n){return arguments.length===1?(this._memberType=n,n):this._memberType},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_childrenCardinality:0,childrenCardinality:function(n){return arguments.length===1?(this._childrenCardinality=n,n):this._childrenCardinality},_parentLevel:0,parentLevel:function(n){return arguments.length===1?(this._parentLevel=n,n):this._parentLevel},_parentUniqueName:null,parentUniqueName:function(n){return arguments.length===1?(this._parentUniqueName=n,n):this._parentUniqueName},_description:null,description:function(n){return arguments.length===1?(this._description=n,n):this._description},_scope:n.ig.util.toNullable(n.ig.Number.prototype.$type,null),scope:function(n){return arguments.length===1?(this._scope=n,n):this._scope},$type:new n.ig.Type("Member",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("OlapResult","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_isEmpty:!1,isEmpty:function(n){return arguments.length===1?(this._isEmpty=n,n):this._isEmpty},_axes:null,axes:function(n){return arguments.length===1?(this._axes=n,n):this._axes},_cells:null,cells:function(n){return arguments.length===1?(this._cells=n,n):this._cells},$type:new n.ig.Type("OlapResult",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapResultAxis","Object",{init:function(t,i){n.ig.Object.prototype.init.call(this);this.tuples(t.toList$1(n.ig.OlapResultTuple.prototype.$type));this.tupleSize(i);this.positionResolver(new n.ig.PositionResolver$2(String,n.ig.Object.prototype.$type,t,i))},_positionResolver:null,positionResolver:function(n){return arguments.length===1?(this._positionResolver=n,n):this._positionResolver},clone:function(){for(var t=this,i=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),r=t.tuples().getEnumerator(),u;r.moveNext();)u=r.current(),i.add(u.clone());return function(){var r=new n.ig.OlapResultAxis(i,t.tupleSize());return r.name(t.name()),r}()},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_tupleSize:0,tupleSize:function(n){return arguments.length===1?(this._tupleSize=n,n):this._tupleSize},_tuples:null,tuples:function(n){return arguments.length===1?(this._tuples=n,n):this._tuples},$type:new n.ig.Type("OlapResultAxis",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("IPosition$2","Object",{$type:new n.ig.Type("IPosition$2",null)},!0);n.ig.util.defType("OlapResultTuple","Object",{init:function(t){n.ig.Object.prototype.init.call(this);this.members(new n.ig.ReadOnlyCollection$1(n.ig.OlapResultAxisMember.prototype.$type,1,t))},_members:null,members:function(n){return arguments.length===1?(this._members=n,n):this._members},getItems:function(){return this.members()},itemsCount:function(){return this.members().count()},indexOf:function(n){return this.members().indexOf(n)},item:function(n){return this.members().item(n)},isEmpty:function(){return!1},clone:function(){for(var t=new n.ig.List$1(n.ig.OlapResultAxisMember.prototype.$type,0),u=this.members().getEnumerator(),f,i,r,e;u.moveNext();)f=u.current(),t.add(f.clone());for(i=new n.ig.OlapResultTuple(t),r=t.getEnumerator();r.moveNext();)e=r.current(),e.position(i);return i},$type:new n.ig.Type("OlapResultTuple",n.ig.Object.prototype.$type,[n.ig.IPosition$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)])},!0);n.ig.util.defType("IPositionItem$2","Object",{$type:new n.ig.Type("IPositionItem$2",null)},!0);n.ig.util.defType("IHierarchicalPositionItem$2","Object",{$type:new n.ig.Type("IHierarchicalPositionItem$2",null,[n.ig.IPositionItem$2.prototype.$type.specialize(0,1)])},!0);n.ig.util.defType("OlapResultAxisMember","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.properties(new n.ig.Dictionary$2(String,String,0));this.ordinal(-1)},_uniqueName:null,uniqueName:function(n){return arguments.length===1?(this._uniqueName=n,n):this._uniqueName},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_levelUniqueName:null,levelUniqueName:function(n){return arguments.length===1?(this._levelUniqueName=n,n):this._levelUniqueName},_hierarchyUniqueName:null,hierarchyUniqueName:function(n){return arguments.length===1?(this._hierarchyUniqueName=n,n):this._hierarchyUniqueName},_levelNumber:0,levelNumber:function(n){return arguments.length===1?(this._levelNumber=n,n):this._levelNumber},_displayInfo:null,displayInfo:function(n){return arguments.length===1?(this._displayInfo=n,n):this._displayInfo},e:function(){return this.displayInfo()&-196609},drilledDown:function(){return(this.displayInfo()&65536)==65536},parentSameAsPrev:function(){return(this.displayInfo()&131072)==131072},_properties:null,properties:function(n){return arguments.length===1?(this._properties=n,n):this._properties},_position:null,position:function(n){return arguments.length===1?(this._position=n,n):this._position},key:function(){return this.uniqueName()},sortKey:function(){if(this.ordinal()>-1)return this.ordinal();var n=parseFloat(this.caption());return isNaN(n)?this.caption():n},_ordinal:0,ordinal:function(n){return arguments.length===1?(this._ordinal=n,n):this._ordinal},hierarchyKey:function(){return this.hierarchyUniqueName()},hierarchyLevelKey:function(){return this.levelUniqueName()},parentKey:function(){var t=this,n;return function(){var i=t.properties().tryGetValue("PARENT_UNIQUE_NAME",n);return n=i.value,i.ret}(),n},depth:function(){return this.levelNumber()},isExpandable:function(){return this.e()>0},clone:function(){var t=new n.ig.OlapResultAxisMember,i,r;for(t.caption(this.caption()),t.displayInfo(this.displayInfo()),t.hierarchyUniqueName(this.hierarchyUniqueName()),t.levelNumber(this.levelNumber()),t.levelUniqueName(this.levelUniqueName()),t.ordinal(this.ordinal()),i=this.properties().getEnumerator();i.moveNext();)r=i.current(),t.properties().add(r.key(),r.value());return t.uniqueName(this.uniqueName()),t.position(this.position()),t},$type:new n.ig.Type("OlapResultAxisMember",n.ig.Object.prototype.$type,[n.ig.IHierarchicalPositionItem$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)])},!0);n.ig.util.defType("OlapResultCell","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.properties(new n.ig.Dictionary$2(String,n.ig.Object.prototype.$type,0))},_cellOrdinal:0,cellOrdinal:function(n){return arguments.length===1?(this._cellOrdinal=n,n):this._cellOrdinal},_properties:null,properties:function(n){return arguments.length===1?(this._properties=n,n):this._properties},clone:function(){for(var i=this,r=function(){var t=new n.ig.OlapResultCell;return t.cellOrdinal(i.cellOrdinal()),t}(),u=i.properties().getEnumerator(),t;u.moveNext();)t=u.current(),r.properties().add(t.key(),t.value());return r},$type:new n.ig.Type("OlapResultCell",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("IConnection","Object",{$type:new n.ig.Type("IConnection",null)},!0);n.ig.util.defType("IOlapDataProviderFactory","Object",{$type:new n.ig.Type("IOlapDataProviderFactory",null)},!0);n.ig.util.defType("IOlapDiscoverDataProvider","Object",{$type:new n.ig.Type("IOlapDiscoverDataProvider",null)},!0);n.ig.util.defType("IOlapExecuteCommandProvider","Object",{$type:new n.ig.Type("IOlapExecuteCommandProvider",null)},!0);n.ig.util.defType("LevelSpanManager","Object",{b:null,init:function(t){n.ig.Object.prototype.init.call(this);this.c(t);this.b=new Array(t)},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},a:function(t,i){var e=this,r=e.b[t],u,f;return r==null&&(r=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.SpanSource.prototype.$type,0),e.b[t]=r),function(){var n=r.tryGetValue(i,u);return u=n.value,n.ret}()||(u=new n.ig.SpanSource,i>0&&function(){var n=r.tryGetValue(i-1,f);return f=n.value,n.ret}()&&(u.a(f),f.e()),r.add(i,u)),u},$type:new n.ig.Type("LevelSpanManager",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("SpanSource","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.c=1},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},c:0,d:function(n){if(arguments.length===1){if(this.c!=n){var t=n-this.c;this.a()!=null&&this.a().d(this.a().d()+t);this.c=n}return n}return this.c},b:!1,e:function(){this.b||(this.b=!0,this.d(this.d()+1))},$type:new n.ig.Type("SpanSource",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ITableViewHeadersFactory","Object",{$type:new n.ig.Type("ITableViewHeadersFactory",null)},!0);n.ig.util.defType("TableViewHeadersFactory","Object",{_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},init:function(t,i,r,u,f){n.ig.Object.prototype.init.call(this);this.b(t);this.a(i);this.c(r);this.d(u);this.e(f)},createHeaderCells:function(){var i=this,r,u,s,h,f,e,t,l,a,v,y,w,b;for(i.b().positionResolver().hasUnregisterdPositions()&&i.b().positionResolver().completeRegisterPositions(),r=i.b().positionResolver().rootPositionInfo(),u=new n.ig.List$1(n.ig.IList$1.prototype.$type.specialize(n.ig.TableViewHeaderCellSource.prototype.$type),0),s=0;s<r.positionSize();s++)u.add(new n.ig.List$1(n.ig.TableViewHeaderCellSource.prototype.$type,0));for(n.ig.TableViewHeadersFactory.prototype.createHeaderCells2(r,r.positionItemDepthMin(),u,i.d(),i.e()),h=new n.ig.ArrayListCollection$1(n.ig.OlapTableViewHeaderCell.prototype.$type),f=0,e=0;e<r.positionSize();e++){for(var k=u.item(e),o=0,c=0,p=k.getEnumerator();p.moveNext();){t=p.current();i.c()==n.ig.HeaderCellsLayoutOrientation.prototype.horizontal?(l=o,a=t.b().d(),v=t.a().positionItemDepth()+f,y=t.c().d()):(v=o,y=t.b().d(),l=t.a().positionItemDepth()+f,a=t.c().d());var d=i.b().tuples().__inner[t.a().positionIndex()],g=d.item(t.a().positionItemIndex()),nt=i.b().tuples().__inner[t.k()];i.a().positionResolver().hasUnregisterdPositions()&&i.a().positionResolver().completeRegisterPositions();w=i.a().positionResolver().getPositionIndex(nt);b=function(){var r=new n.ig.OlapTableViewHeaderCell;return r.axisName(i.b().name()),r.hierarchyNumber(t.a().positionItemIndex()),r.levelNumber(t.a().positionItemDepth()),r.caption(g.caption()),r.columnIndex(l),r.columnSpan(a),r.isExpanded(t.f()),r.isExpandable(t.e()),r.tupleIndex(w),r.memberIndex(t.a().positionItemIndex()),r.rowIndex(v),r.rowSpan(y),r}();t.g()||(o=o+t.b().d());c=Math.max(c,t.a().positionItemDepth());h.add(b)}f+=c+1}return h},createHeaderCells2:function(t,i,r,u,f){for(var l=this,c=new n.ig.LevelSpanManager(t.positionSize()),e=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==i}).getEnumerator(),o,s,h;e.moveNext();)o=e.current(),function(){var i=n.ig.TableViewHeadersFactory.prototype.createHeaderCells1(t,o,r,c,u,f,s,h);return s=i.headerCellSource,h=i.totalSpan,i.ret}()},h:function(t,i,r,u,f,e){var a=this,c=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==t.positionItemDepthMin()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,l,s,h;if(c.count()>0){for(o=c.getEnumerator();o.moveNext();)l=o.current(),function(){var f=n.ig.TableViewHeadersFactory.prototype.createHeaderCells1(t,l,i,r,u,e,s,h);return s=f.headerCellSource,h=f.totalSpan,f.ret}(),f.b().d(f.b().d()+h),s.g()&&f.b().d(f.b().d()+1);f.b().d(f.b().d()-1)}else e.add(t.positionIndex());f.k(t.positionIndex())},createHeaderCells1:function(t,i,r,u,f,e,o,s){var k=this,a=r.item(i.positionItemIndex()),b=u.a(i.positionItemIndex(),i.positionItemDepth()),h=function(){var t=new n.ig.TableViewHeaderCellSource;return t.c(b),t.a(i),t.e(i.isExpandable()),t}(),l,c,v,w,y,p;if(o=h,f&&(a.add(h),n.ig.TableViewHeadersFactory.prototype.h(i,r,u,!0,h,e)),l=null,i.isExpanded()&&(l=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==i.key()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type))),l!=null&&l.count()>0){for(c=function(){var t=new n.ig.TableViewHeaderCellSource;return t.g(!0),t.a(i),t.e(i.isExpandable()),t}(),a.add(c),v=l.getEnumerator();v.moveNext();)w=v.current(),function(){var i=n.ig.TableViewHeadersFactory.prototype.createHeaderCells1(t,w,r,u,f,e,y,p);return y=i.headerCellSource,p=i.totalSpan,i.ret}(),c.b().d(c.b().d()+p),y.g()&&c.b().d(c.b().d()+1);c.b().d(c.b().d()-1);h.f(!0);h.e(!1);c.f(!0);h.d(c);f||(a.add(h),n.ig.TableViewHeadersFactory.prototype.h(i,r,u,!1,h,e));c.k(h.k());o=c;s=h.b().d()+c.b().d()-1}else i.isExpanded()&&h.e(!1),f||(a.add(h),n.ig.TableViewHeadersFactory.prototype.h(i,r,u,!1,h,e)),s=h.b().d();return{headerCellSource:o,totalSpan:s}},$type:new n.ig.Type("TableViewHeadersFactory",n.ig.Object.prototype.$type,[n.ig.ITableViewHeadersFactory.prototype.$type])},!0);n.ig.util.defType("TableCompactViewHeadersFactory","Object",{_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},init:function(t,i,r,u,f){n.ig.Object.prototype.init.call(this);this.b(t);this.a(i);this.c(r);this.d(u);this.e(f)},createHeaderCells:function(){var i=this,r,u,s,h,f,e,t,c,l,a,v,p,w;for(i.b().positionResolver().hasUnregisterdPositions()&&i.b().positionResolver().completeRegisterPositions(),r=i.b().positionResolver().rootPositionInfo(),u=new n.ig.List$1(n.ig.IList$1.prototype.$type.specialize(n.ig.TableViewHeaderCellSource.prototype.$type),0),s=0;s<r.positionSize();s++)u.add(new n.ig.List$1(n.ig.TableViewHeaderCellSource.prototype.$type,0));for(n.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells2(r,r.positionItemDepthMin(),u,i.d(),i.e()),h=new n.ig.ArrayListCollection$1(n.ig.OlapTableViewHeaderCell.prototype.$type),f=0,e=0;e<r.positionSize();e++){for(var b=u.item(e),o=0,y=b.getEnumerator();y.moveNext();){t=y.current();i.c()==n.ig.HeaderCellsLayoutOrientation.prototype.horizontal?(c=o,l=t.b().d(),a=f,v=1):(a=o,v=t.b().d(),c=f,l=1);var k=i.b().tuples().__inner[t.a().positionIndex()],d=k.item(t.a().positionItemIndex()),g=i.b().tuples().__inner[t.k()];i.a().positionResolver().hasUnregisterdPositions()&&i.a().positionResolver().completeRegisterPositions();p=i.a().positionResolver().getPositionIndex(g);w=function(){var r=new n.ig.OlapTableViewHeaderCell;return r.axisName(i.b().name()),r.hierarchyNumber(t.a().positionItemIndex()),r.levelNumber(t.a().positionItemDepth()),r.caption(d.caption()),r.columnIndex(c),r.columnSpan(l),r.isExpanded(t.f()),r.isExpandable(t.e()),r.tupleIndex(p),r.memberIndex(t.a().positionItemIndex()),r.rowIndex(a),r.rowSpan(v),r}();t.g()||(o=o+t.b().d());h.add(w)}f+=1}return h},createHeaderCells2:function(t,i,r,u,f){for(var l=this,c=new n.ig.LevelSpanManager(t.positionSize()),e=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==i}).getEnumerator(),o,s,h;e.moveNext();)o=e.current(),function(){var i=n.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells1(t,o,r,c,u,f,s,h);return s=i.headerCellSource,h=i.totalSpan,i.ret}()},h:function(t,i,r,u,f,e){var a=this,c=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==t.positionItemDepthMin()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,l,s,h;if(c.count()>0){for(o=c.getEnumerator();o.moveNext();)l=o.current(),function(){var f=n.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells1(t,l,i,r,u,e,s,h);return s=f.headerCellSource,h=f.totalSpan,f.ret}(),f.b().d(f.b().d()+h),s.d()!=null&&f.b().d(f.b().d()+1);f.b().d(f.b().d()-1)}else e.add(t.positionIndex());f.k(t.positionIndex())},createHeaderCells1:function(t,i,r,u,f,e,o,s){var k=this,a=r.item(i.positionItemIndex()),b=u.a(i.positionItemIndex(),i.positionItemDepth()),h=function(){var t=new n.ig.TableViewHeaderCellSource;return t.c(b),t.a(i),t.e(i.isExpandable()),t}(),l,c,v,w,y,p;if(o=h,f&&(a.add(h),n.ig.TableCompactViewHeadersFactory.prototype.h(i,r,u,!0,h,e)),l=null,i.isExpanded()&&(l=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==i.key()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type))),l!=null&&l.count()>0){for(c=function(){var t=new n.ig.TableViewHeaderCellSource;return t.g(!0),t.a(i),t.e(i.isExpandable()),t}(),v=l.getEnumerator();v.moveNext();)w=v.current(),function(){var i=n.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells1(t,w,r,u,f,e,y,p);return y=i.headerCellSource,p=i.totalSpan,i.ret}(),c.b().d(c.b().d()+p),y.d()!=null&&c.b().d(c.b().d()+1);c.b().d(c.b().d()-1);h.f(!0);h.e(!0);h.d(c);f||(a.add(h),n.ig.TableCompactViewHeadersFactory.prototype.h(i,r,u,!1,h,e));c.k(h.k());s=h.b().d()+c.b().d()-1}else i.isExpanded()&&h.e(!1),f||(a.add(h),n.ig.TableCompactViewHeadersFactory.prototype.h(i,r,u,!1,h,e)),s=h.b().d();return{headerCellSource:o,totalSpan:s}},$type:new n.ig.Type("TableCompactViewHeadersFactory",n.ig.Object.prototype.$type,[n.ig.ITableViewHeadersFactory.prototype.$type])},!0);n.ig.util.defType("TableViewHeaderCellSource","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.b(new n.ig.SpanSource);this.c(new n.ig.SpanSource)},_g:!1,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_f:!1,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},$type:new n.ig.Type("TableViewHeaderCellSource",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("TableViewImpl","Object",{init:function(t,i,r,u){var f=this;if(n.ig.Object.prototype.init.call(this),t==null)throw new n.ig.ArgumentNullException("result");this.result(t);this.originalResult(t);u==null?this.viewSettings(new n.ig.TableViewSettings):this.viewSettings(u);this.hasColumns(i);this.hasRows(r);this.columnSortDirections(new n.ig.ArrayListCollection$1(n.ig.TupleSortDirection.prototype.$type));this.columnSortDirections().collectionChanged=n.ig.Delegate.prototype.combine(this.columnSortDirections().collectionChanged,function(){f.i(!0)});this.levelSortDirections(new n.ig.ArrayListCollection$1(n.ig.LevelSortDirection.prototype.$type));this.levelSortDirections().collectionChanged=n.ig.Delegate.prototype.combine(this.levelSortDirections().collectionChanged,function(){f.i(!0)});this.appliedColumnSortDirections(new n.ig.List$1(n.ig.TupleSortDirection.prototype.$type,0));this.appliedLevelSortDirections(new n.ig.List$1(n.ig.LevelSortDirection.prototype.$type,0));this.appliedSortDirectionsMap(new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type)),0))},_viewSettings:null,viewSettings:function(n){return arguments.length===1?(this._viewSettings=n,n):this._viewSettings},_result:null,result:function(n){return arguments.length===1?(this._result=n,n):this._result},_originalResult:null,originalResult:function(n){return arguments.length===1?(this._originalResult=n,n):this._originalResult},_hasRows:!1,hasRows:function(n){return arguments.length===1?(this._hasRows=n,n):this._hasRows},_hasColumns:!1,hasColumns:function(n){return arguments.length===1?(this._hasColumns=n,n):this._hasColumns},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_h:!1,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_i:!1,i:function(n){return arguments.length===1?(this._i=n,n):this._i},l:null,k:null,o:null,rowHeaders:function(n){return arguments.length===1?(this.l=n,n):((!this.h()||this.i())&&this.initialize(),this.l)},columnHeaders:function(n){return arguments.length===1?(this.k=n,n):((!this.h()||this.i())&&this.initialize(),this.k)},resultCells:function(n){return arguments.length===1?(this.o=n,n):((!this.h()||this.i())&&this.initialize(),this.o)},_columnSortDirections:null,columnSortDirections:function(n){return arguments.length===1?(this._columnSortDirections=n,n):this._columnSortDirections},_levelSortDirections:null,levelSortDirections:function(n){return arguments.length===1?(this._levelSortDirections=n,n):this._levelSortDirections},_appliedColumnSortDirections:null,appliedColumnSortDirections:function(n){return arguments.length===1?(this._appliedColumnSortDirections=n,n):this._appliedColumnSortDirections},_appliedLevelSortDirections:null,appliedLevelSortDirections:function(n){return arguments.length===1?(this._appliedLevelSortDirections=n,n):this._appliedLevelSortDirections},_appliedSortDirectionsMap:null,appliedSortDirectionsMap:function(n){return arguments.length===1?(this._appliedSortDirectionsMap=n,n):this._appliedSortDirectionsMap},initialize:function(){var t=this,s,l,v,y,p,f,ct,w,e,at,b,o,a,k,d,i,g,nt,vt,tt,it,yt;if(t.d(null),t.c(null),t.rowHeaders(null),t.columnHeaders(null),t.resultCells(null),t.result(t.originalResult()),t.result().isEmpty()){t.i(!1);t.h(!0);return}if(t.levelSortDirections().count()>0?(s=new n.ig.ResultHeaderSorter(t.result(),t.hasRows(),t.hasColumns(),t.levelSortDirections()),t.result(s.b()),t.appliedLevelSortDirections(s.h()),t.appliedSortDirectionsMap(s.g())):(t.appliedLevelSortDirections(new n.ig.List$1(n.ig.LevelSortDirection.prototype.$type,0)),t.appliedSortDirectionsMap(new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type)),0))),t.hasRows()&&t.columnSortDirections().count()>0)if(t.appliedLevelSortDirections().count()>0){t.originalResult().axes().item(0).positionResolver().hasUnregisterdPositions()&&t.originalResult().axes().item(0).positionResolver().completeRegisterPositions();t.result().axes().item(0).positionResolver().hasUnregisterdPositions()&&t.result().axes().item(0).positionResolver().completeRegisterPositions();for(var rt=new n.ig.List$1(n.ig.TupleSortDirection.prototype.$type,2,t.columnSortDirections().count()),ut=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,1,t.appliedColumnSortDirections().count()),ft=t.columnSortDirections().getEnumerator();ft.moveNext();){var h=ft.current(),pt=t.originalResult().axes().item(0).tuples().__inner[h.tupleIndex()],et=t.result().axes().item(0).positionResolver().getPositionIndex(pt),c=new n.ig.TupleSortDirection;c.sortDirection(h.sortDirection());c.tupleIndex(et);c.comparer(h.comparer());rt.add(c);ut.item(et,h.tupleIndex())}for(l=new n.ig.ResultColumnValueSorter(t.result(),t.hasRows(),t.hasColumns(),rt),t.result(l.b()),v=l.g().getEnumerator();v.moveNext();)y=v.current(),y.tupleIndex(ut.item(y.tupleIndex()));t.appliedColumnSortDirections(l.g())}else p=new n.ig.ResultColumnValueSorter(t.result(),t.hasRows(),t.hasColumns(),t.columnSortDirections()),t.result(p.b()),t.appliedColumnSortDirections(p.g());else t.appliedColumnSortDirections(new n.ig.List$1(n.ig.TupleSortDirection.prototype.$type,0));var u=0,ot=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),r=1;if(t.hasColumns()){var st=t.result().axes().item(u),wt=t.originalResult().axes().item(u),ht=t.u(st,wt);for(f=0;f<ht.count();f++)ct=ht.item(f),ot.add(ct,f);u++;r=st.tuples().count()}if(w=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),t.hasRows()){var bt=t.result().axes().item(u),kt=t.originalResult().axes().item(u),lt=t.v(bt,kt);for(e=0;e<lt.count();e++)at=lt.item(e),w.add(at,e)}for(b=new n.ig.ArrayListCollection$1(n.ig.OlapTableViewResultCell.prototype.$type),o=0;o<t.result().cells().count();o++)a=t.result().cells().item(o),function(){var n=a.properties().tryGetValue("Value",k);return k=n.value,n.ret}(),function(){var n=a.properties().tryGetValue("FmtValue",d);return d=n.value,n.ret}(),i=a.cellOrdinal(),t.hasColumns()&&(g=i%r,nt=ot.item(g),g!=nt&&(vt=n.ig.intDivide(i,r),i=vt*r+nt)),t.hasRows()&&(tt=n.ig.intDivide(i,r),it=w.item(tt),tt!=it&&(yt=i%r,i=it*r+yt)),b.add(function(){var t=new n.ig.OlapTableViewResultCell;return t.value(k),t.formattedValue(d),t.cellOrdinal(i),t.resultCellIndex(o),t}()),t.resultCells(b);t.i(!1);t.h(!0)},u:function(t,i){var r=new n.ig.List$1(n.ig.Number.prototype.$type,0);return this.viewSettings().a()?this.c(new n.ig.TableCompactViewHeadersFactory(t,i,n.ig.HeaderCellsLayoutOrientation.prototype.horizontal,this.viewSettings().c(),r)):this.c(new n.ig.TableViewHeadersFactory(t,i,n.ig.HeaderCellsLayoutOrientation.prototype.horizontal,this.viewSettings().c(),r)),this.columnHeaders(this.c().createHeaderCells()),r},v:function(t,i){var r=new n.ig.List$1(n.ig.Number.prototype.$type,0);return this.viewSettings().b()?this.d(new n.ig.TableCompactViewHeadersFactory(t,i,n.ig.HeaderCellsLayoutOrientation.prototype.vertical,this.viewSettings().d(),r)):this.d(new n.ig.TableViewHeadersFactory(t,i,n.ig.HeaderCellsLayoutOrientation.prototype.vertical,this.viewSettings().d(),r)),this.rowHeaders(this.d().createHeaderCells()),r},$type:new n.ig.Type("TableViewImpl",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("TableViewSettings","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:!1,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("TableViewSettings",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapResultView","Object",{init:function(t,i,r,u){if(n.ig.Object.prototype.init.call(this),t==null)throw new n.ig.ArgumentNullException("result");this.result(t);this.visibleResult(i);this.hasColumns(r);this.hasRows(u)},_result:null,result:function(n){return arguments.length===1?(this._result=n,n):this._result},_visibleResult:null,visibleResult:function(n){return arguments.length===1?(this._visibleResult=n,n):this._visibleResult},_hasRows:!1,hasRows:function(n){return arguments.length===1?(this._hasRows=n,n):this._hasRows},_hasColumns:!1,hasColumns:function(n){return arguments.length===1?(this._hasColumns=n,n):this._hasColumns},c:function(t,i,r,u,f){var st=this,it=0,y=null,s=1,l,rt,ut,p,w,o,e,h,c,b,et,k,a,v,ot,d,g,nt,ft,tt;if(f&&(y=t.axes().item(it),s=y.tuples().count(),it++),l=null,rt=1,u&&(l=t.axes().item(it),rt=l.tuples().count()),ut=1,i!=null&&(ut=i.tuples().count()),p=1,r!=null&&(p=r.tuples().count()),w=new Array(ut*p),t.cells().count()>0)for(o=0,e=t.cells().item(o),h=0;h<rt;h++)if(c=n.ig.intDivide(e.cellOrdinal(),s),c==h){if(b=0,i!=null&&l!=null&&(et=l.tuples().__inner[h],b=i.positionResolver().getPositionIndex(et)),b==-1){while(c==h)if(o++,o<t.cells().count())e=t.cells().item(o),c=n.ig.intDivide(e.cellOrdinal(),s);else break;continue}for(k=e.cellOrdinal()%s,a=0;a<s;a++)if(k==a){if(v=-1,r==null||y==null?v=0:(ot=y.tuples().__inner[a],v=r.positionResolver().getPositionIndex(ot)),v==-1){if(o++,o<t.cells().count()){if(e=t.cells().item(o),c=n.ig.intDivide(e.cellOrdinal(),s),c>h)break;k=e.cellOrdinal()%s}continue}if(d=e.clone(),d.cellOrdinal(b*p+v),w[d.cellOrdinal()]=d,o++,o<t.cells().count()){if(e=t.cells().item(o),c=n.ig.intDivide(e.cellOrdinal(),s),c>h)break;k=e.cellOrdinal()%s}}}for(g=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,0),nt=0;nt<w.length;nt++)ft=w[nt],ft!=null&&g.add(ft);return tt=new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0),f&&tt.add(r),u&&tt.add(i),function(){var t=new n.ig.OlapResult;return t.axes(tt),t.cells(g),t.isEmpty(!u&&!f&&g.count()==0),t}()},a:function(t,i,r){var c=this,o=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),e,h,u,s,f;if(r)for(e=0;e<i.count();e++)h=i.item(e),o.add(t.tuples().__inner[h].clone());else for(u=0,s=i.item(u),f=0;f<t.tuples().count();f++)f==s?(u++,u<i.count()&&(s=i.item(u))):o.add(t.tuples().__inner[f].clone());return function(){var i=new n.ig.OlapResultAxis(o,t.tupleSize());return i.name(t.name()),i}()},expandTupleMember:function(t,i,r){var u=this,s=u.f(t,i,r,u.visibleResult()),e,o,c,l;if(s==null)return null;if(!s.isExpandable())throw new n.ig.InvalidOperationException(1,"The position is not expandable.");if(s.isExpanded())return u;var a=u.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),f=u.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),v=t=="Axis0"&&!u.hasColumns()||t=="Axis1"&&u.hasRows(),y=a.tuples().__inner[i],p=f.positionResolver().getPositionIndex(y),h=u.l(t,p,r,u.result());return h.count()==0?null:(e=null,o=null,v?(e=u.a(f,h,!0),u.hasColumns()&&(o=u.visibleResult().axes().item(0))):(o=u.a(f,h,!0),u.hasRows()&&(e=u.visibleResult().axes().item(1))),c=u.c(u.result(),e,o,u.hasRows(),u.hasColumns()),l=u.b(u.visibleResult(),c,f.name()),new n.ig.OlapResultView(u.result(),l,u.hasColumns(),u.hasRows()))},collapseTupleMember:function(t,i,r){var u=this,o=u.f(t,i,r,u.visibleResult()),e,f,c,a,v,y;if(o==null)return null;if(!o.isExpandable())throw new n.ig.InvalidOperationException(1,"The position is not expandable.");if(!o.isExpanded())return u;if(e=u.l(t,i,r,u.visibleResult()),e.count()==0)return null;var l=u.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),p=t=="Axis0"&&!u.hasColumns()||t=="Axis1"&&u.hasRows(),s=null,h=null;return p?(s=u.a(l,e,!1),u.hasColumns()&&(h=u.visibleResult().axes().item(0))):(h=u.a(l,e,!1),u.hasRows()&&(s=u.visibleResult().axes().item(1))),f=u.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),c=f.tuples().__inner[i],f.positionResolver().hasUnregisterdPositions()&&f.positionResolver().completeRegisterPositions(),a=f.positionResolver().getHostPositionItemInfo(c,r),v=a.item(c.item(r).key()),v.isExpanded(!1),y=u.c(u.visibleResult(),s,h,u.hasRows(),u.hasColumns()),new n.ig.OlapResultView(u.result(),y,u.hasColumns(),u.hasRows())},extend:function(t,i){var r=this,l=r.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==i}).first$1(n.ig.OlapResultAxis.prototype.$type),a=i=="Axis0"&&!r.hasColumns()||i=="Axis1"&&r.hasRows(),f=null,e=null,u=null,h=!1,o,s,c;return a?(f=l,r.hasColumns()&&(e=r.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=i}).first$1(n.ig.OlapResultAxis.prototype.$type),u=r.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=i}).first$1(n.ig.OlapResultAxis.prototype.$type),h=e.tuples().count()!=u.tuples().count())):(e=l,r.hasRows()&&(f=r.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=i}).first$1(n.ig.OlapResultAxis.prototype.$type),u=r.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=i}).first$1(n.ig.OlapResultAxis.prototype.$type),h=f.tuples().count()!=u.tuples().count())),o=null,s=null,u!=null&&h?(c=r.c(r.result(),f,e,r.hasRows(),r.hasColumns()),o=r.b(c,t,i),s=r.b(c,t,i)):(o=r.b(r.result(),t,i),s=r.b(r.visibleResult(),t,i)),new n.ig.OlapResultView(o,s,r.hasColumns(),r.hasRows())},b:function(t,i,r){var e=this,l=t.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==r}).first$1(n.ig.OlapResultAxis.prototype.$type),b,nt,lt,tt,at,it,vt,k,ut,p,ft,et,wt,d,st,f,ht;if(l==null)return null;var ct=i.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==r}).first$1(n.ig.OlapResultAxis.prototype.$type),g=r=="Axis0"&&!e.hasColumns()||r=="Axis1"&&e.hasRows(),u=null,o=null;for(g?e.hasColumns()&&(u=t.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=r}).first$1(n.ig.OlapResultAxis.prototype.$type),o=i.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=r}).first$1(n.ig.OlapResultAxis.prototype.$type)):e.hasRows()&&(u=t.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=r}).first$1(n.ig.OlapResultAxis.prototype.$type),o=i.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()!=r}).first$1(n.ig.OlapResultAxis.prototype.$type)),b=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),nt=l.tuples().getEnumerator();nt.moveNext();)lt=nt.current(),b.add(lt.clone());for(tt=ct.tuples().getEnumerator();tt.moveNext();)at=tt.current(),b.add(at);var s=ct.tuples().count(),bt=o!=null&&o.tuples().count()>0?o.tuples().count():1,a=l.tuples().count()>0?l.tuples().count():1,v=u!=null&&u.tuples().count()>0?u.tuples().count():1,kt=a*v,y=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,0);if(g){for(it=t.cells().getEnumerator();it.moveNext();)vt=it.current(),y.add(vt.clone());for(var rt=new Array(s*v),dt=a*v,yt=i.cells().getEnumerator();yt.moveNext();){var gt=yt.current(),h=gt.clone(),ni=e.m(h.cellOrdinal(),u,o),ti=n.ig.intDivide(h.cellOrdinal(),bt);h.cellOrdinal(ti*v+ni);h.cellOrdinal(h.cellOrdinal()+kt);rt[h.cellOrdinal()-dt]=h}for(k=0;k<rt.length;k++)ut=rt[k],ut!=null&&y.add(ut)}else{for(p=new Array(v*(a+s)),ft=t.cells().getEnumerator();ft.moveNext();){var ii=ft.current(),w=ii.clone(),ri=n.ig.intDivide(w.cellOrdinal(),a);w.cellOrdinal(w.cellOrdinal()+ri*s);p[w.cellOrdinal()]=w}for(et=i.cells().getEnumerator();et.moveNext();){var pt=et.current(),c=pt.clone(),ot=e.n(c.cellOrdinal(),u,o,s),ui=n.ig.intDivide(pt.cellOrdinal(),s);ot!=ui;wt=c.cellOrdinal()%s;c.cellOrdinal(ot*s+wt);c.cellOrdinal(c.cellOrdinal()+(ot+1)*a);p[c.cellOrdinal()]=c}for(d=0;d<p.length;d++)st=p[d],st!=null&&y.add(st)}return f=new n.ig.OlapResult,f.axes(new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0)),ht=function(){var t=new n.ig.OlapResultAxis(b,l.tupleSize());return t.name(l.name()),t}(),g?(u!=null&&f.axes().add(u),f.axes().add(ht)):(f.axes().add(ht),u!=null&&f.axes().add(u)),f.cells(y),f.isEmpty(!e.hasColumns()&&!e.hasRows()&&y.count()==0),f},m:function(n,t,i){if(i==null)return 0;var r=n%i.tuples().count(),u=i.tuples().__inner[r];return t.positionResolver().getPositionIndex(u)},n:function(t,i,r,u){if(r==null)return 0;var f=n.ig.intDivide(t,u),e=r.tuples().__inner[f];return i.positionResolver().getPositionIndex(e)},l:function(t,i,r,u){var h=this,f=u.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),o=f.tuples().__inner[i],s=o.item(r),e;return(f.positionResolver().hasUnregisterdPositions()&&f.positionResolver().completeRegisterPositions(),e=f.positionResolver().h(s,n.ig.ListSortDirection.prototype.ascending),e!=null)?e.toList$1(n.ig.Number.prototype.$type):null},f:function(t,i,r,u){var c=this,f=u.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),o=f.tuples().__inner[i],h=o.item(r),s,e;return f.positionResolver().hasUnregisterdPositions()&&f.positionResolver().completeRegisterPositions(),s=f.positionResolver().getHostPositionItemInfo(o,r),function(){var n=s.tryGetValue(h.key(),e);return e=n.value,n.ret}(),e},$type:new n.ig.Type("OlapResultView",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ResultViewHelper","Object",{init:function(){n.ig.Object.prototype.init.call(this)},e:function(t,i,r,u,f){n.ig.ResultViewHelper.prototype.d(t,i,r,!0,f.visibleResult());n.ig.ResultViewHelper.prototype.d(t,i,r,!0,f.result())},f:function(t,i,r){var s=this,e=i.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),o=r.visibleResult().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type),u,f;n.ig.ResultViewHelper.prototype.b(e.positionResolver(),o.positionResolver());u=i.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type);f=r.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type);n.ig.ResultViewHelper.prototype.b(u.positionResolver(),f.positionResolver())},d:function(t,i,r,u,f){var o=this,e=f.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).first$1(n.ig.OlapResultAxis.prototype.$type);e.positionResolver().hasUnregisterdPositions()&&e.positionResolver().completeRegisterPositions();n.ig.ResultViewHelper.prototype.c(i,r,u,e.positionResolver())},c:function(n,t,i,r){r.hasUnregisterdPositions()&&r.completeRegisterPositions();var u=r.positions().__inner[n],f=r.getHostPositionItemInfo(u,t),e=f.item(u.item(t).key());e.isExpanded(i)},b:function(t,i){t.hasUnregisterdPositions()&&t.completeRegisterPositions();i.hasUnregisterdPositions()&&i.completeRegisterPositions();n.ig.ResultViewHelper.prototype.a(t.rootPositionInfo(),i.rootPositionInfo())},a:function(t,i){for(var o=this,e=t.getEnumerator(),u,f,r;e.moveNext();)u=e.current(),f=u.value(),function(){var n=i.tryGetValue(u.key(),r);return r=n.value,n.ret}()&&(f.isExpanded()!=!0&&r.isExpanded(!1),r.count()>0&&n.ig.ResultViewHelper.prototype.a(f,r))},$type:new n.ig.Type("ResultViewHelper",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapTableViewHeaderCell","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.columnSpan(1);this.rowSpan(1)},_id:null,id:function(n){return arguments.length===1?(this._id=n,n):this._id},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_isExpanded:!1,isExpanded:function(n){return arguments.length===1?(this._isExpanded=n,n):this._isExpanded},_isExpandable:!1,isExpandable:function(n){return arguments.length===1?(this._isExpandable=n,n):this._isExpandable},_rowIndex:0,rowIndex:function(n){return arguments.length===1?(this._rowIndex=n,n):this._rowIndex},_rowSpan:0,rowSpan:function(n){return arguments.length===1?(this._rowSpan=n,n):this._rowSpan},_columnIndex:0,columnIndex:function(n){return arguments.length===1?(this._columnIndex=n,n):this._columnIndex},_columnSpan:0,columnSpan:function(n){return arguments.length===1?(this._columnSpan=n,n):this._columnSpan},_axisName:null,axisName:function(n){return arguments.length===1?(this._axisName=n,n):this._axisName},_tupleIndex:0,tupleIndex:function(n){return arguments.length===1?(this._tupleIndex=n,n):this._tupleIndex},_memberIndex:0,memberIndex:function(n){return arguments.length===1?(this._memberIndex=n,n):this._memberIndex},_levelNumber:0,levelNumber:function(n){return arguments.length===1?(this._levelNumber=n,n):this._levelNumber},_hierarchyNumber:0,hierarchyNumber:function(n){return arguments.length===1?(this._hierarchyNumber=n,n):this._hierarchyNumber},toString:function(){return this.caption()},$type:new n.ig.Type("OlapTableViewHeaderCell",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapTableViewResultCell","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_value:null,value:function(n){return arguments.length===1?(this._value=n,n):this._value},_formattedValue:null,formattedValue:function(n){return arguments.length===1?(this._formattedValue=n,n):this._formattedValue},_cellOrdinal:0,cellOrdinal:function(n){return arguments.length===1?(this._cellOrdinal=n,n):this._cellOrdinal},_resultCellIndex:0,resultCellIndex:function(n){return arguments.length===1?(this._resultCellIndex=n,n):this._resultCellIndex},$type:new n.ig.Type("OlapTableViewResultCell",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ArrayListCollection$1","Object",{$t:null,init:function(t){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.Object.prototype.init.call(this);this.inner(new n.ig.Array)},_inner:null,inner:function(n){return arguments.length===1?(this._inner=n,n):this._inner},collectionChanged:null,indexOf:function(n){return this.inner().indexOf(n)},insert:function(n,t){this.inner().insert(n,t);this.d(n,t)},removeAt:function(n){var t=this.inner()[n];this.inner().removeAt(n);this.e(n,t)},item:function(n,t){return arguments.length===2?(this.inner()[n]=t,t):this.inner()[n]},add:function(n){this.inner().add(n);this.d(this.inner().length-1,n)},clear:function(){this.inner().clear();this.c()},contains:function(n){return this.inner().contains(n)},copyTo:function(){throw new n.ig.NotImplementedException;},count:function(){return this.inner().length},isReadOnly:function(){return!1},remove:function(n){var t=this.inner().indexOf(n);return t>=0?(this.inner().removeAt(t),this.e(t,n),!0):!1},b:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$a=0;this.$state=5;break;case 2:return this.$current=this.$this.inner()[this.$a],this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$a++;this.$state=5;break;case 5:this.$state=this.$a<this.$this.inner().length?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(this.$t,i)},getEnumerator:function(){return this.b().getEnumerator()},d:function(t,i){if(this.collectionChanged!=null){var r=new n.ig.NotifyCollectionChangedEventArgs(1,n.ig.NotifyCollectionChangedAction.prototype.add,i,t);this.collectionChanged(this,r)}},e:function(t,i){if(this.collectionChanged!=null){var r=new n.ig.NotifyCollectionChangedEventArgs(1,n.ig.NotifyCollectionChangedAction.prototype.remove,i,t);this.collectionChanged(this,r)}},c:function(){if(this.collectionChanged!=null){var t=new n.ig.NotifyCollectionChangedEventArgs(1,n.ig.NotifyCollectionChangedAction.prototype.reset,null,-1);this.collectionChanged(this,t)}},$type:new n.ig.Type("ArrayListCollection$1",n.ig.Object.prototype.$type,[n.ig.IList$1.prototype.$type.specialize(0),n.ig.INotifyCollectionChanged.prototype.$type])},!0);n.ig.util.defType("IOlapDataSource","Object",{$type:new n.ig.Type("IOlapDataSource",null)},!0);n.ig.util.defType("MeasureList","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},uniqueName:function(n){return arguments.length===1?(this.name(n),n):this.name()},_measures:null,measures:function(n){return arguments.length===1?(this._measures=n,n):this._measures},$type:new n.ig.Type("MeasureList",n.ig.Object.prototype.$type,[n.ig.ICoreOlapElement.prototype.$type])},!0);n.ig.util.defType("OlapMetadataTreeItem","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_item:null,item:function(n){return arguments.length===1?(this._item=n,n):this._item},_type:null,type:function(n){return arguments.length===1?(this._type=n,n):this._type},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_children:null,children:function(n){return arguments.length===1?(this._children=n,n):this._children},e:function(t){if(this.children()==null){this.children(new Array(1));this.children()[0]=t;return}var i=new Array(this.children().length+1);n.ig.Array.prototype.copy(this.children(),0,i,0,this.children().length);i[this.children().length]=t;this.children(i)},$type:new n.ig.Type("OlapMetadataTreeItem",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapDataSource","Object",{ac:null,ab:null,ag:0,j:null,g:null,init:function(t){var i=this;this.ac=new n.ig.List$1(n.ig.PositionInfo.prototype.$type,0);this.ab=new n.ig.List$1(n.ig.PositionInfo.prototype.$type,0);this.af=new n.ig.List$1(String,0);n.ig.Object.prototype.init.call(this);this.u(new n.ig.List$1(n.ig.AxisElement.prototype.$type,0));this.w(new n.ig.List$1(n.ig.AxisElement.prototype.$type,0));this.v(new n.ig.List$1(n.ig.AxisElement.prototype.$type,0));this.o(!1);this.al(null);this.t(!1);this.aj(null);this.isInitialized(!1);this.m(!1);this.s(!1);this.n(!1);this.r(!1);this.q(!1);this.p(!1);this.catalogs(new n.ig.ArrayListCollection$1(n.ig.Catalog.prototype.$type));this.cubes(new n.ig.ArrayListCollection$1(n.ig.Cube.prototype.$type));this.measureGroups(new n.ig.ArrayListCollection$1(n.ig.MeasureGroup.prototype.$type));this.rowAxis(new n.ig.ArrayListCollection$1(n.ig.ICoreOlapElement.prototype.$type));this.columnAxis(new n.ig.ArrayListCollection$1(n.ig.ICoreOlapElement.prototype.$type));this.filters(new n.ig.ArrayListCollection$1(n.ig.Hierarchy.prototype.$type));this.measures(new n.ig.ArrayListCollection$1(n.ig.Measure.prototype.$type));this.measureListLocation(n.ig.MeasureListLocation.prototype.columns);this.measureListIndex(-1);this.sourceOptions(t);this.result(function(){var t=new n.ig.OlapResult;return t.isEmpty(!0),t}())},_isInitialized:!1,isInitialized:function(n){return arguments.length===1?(this._isInitialized=n,n):this._isInitialized},_catalogs:null,catalogs:function(n){return arguments.length===1?(this._catalogs=n,n):this._catalogs},_cubes:null,cubes:function(n){return arguments.length===1?(this._cubes=n,n):this._cubes},_cube:null,cube:function(n){return arguments.length===1?(this._cube=n,n):this._cube},_measureGroup:null,measureGroup:function(n){return arguments.length===1?(this._measureGroup=n,n):this._measureGroup},_measureGroups:null,measureGroups:function(n){return arguments.length===1?(this._measureGroups=n,n):this._measureGroups},_sourceOptions:null,sourceOptions:function(n){return arguments.length===1?(this._sourceOptions=n,n):this._sourceOptions},dataProviderFactory:function(n){return arguments.length===1?(this.g=n,n):(this.g==null&&(this.g=this.h()),this.g)},_metadataTree:null,metadataTree:function(n){return arguments.length===1?(this._metadataTree=n,n):this._metadataTree},_rowAxis:null,rowAxis:function(n){return arguments.length===1?(this._rowAxis=n,n):this._rowAxis},_columnAxis:null,columnAxis:function(n){return arguments.length===1?(this._columnAxis=n,n):this._columnAxis},_filters:null,filters:function(n){return arguments.length===1?(this._filters=n,n):this._filters},_measures:null,measures:function(n){return arguments.length===1?(this._measures=n,n):this._measures},measureListIndex:function(n){return arguments.length===1?(this.ag!=n&&(this.p(!0),this.ag=n,this.az(),this.p(!1)),n):this.ag},measureListLocation:function(n){return arguments.length===1?(this.j!=n&&(this.ax(),this.j=n,this.az()),n):this.j},_result:null,result:function(n){return arguments.length===1?(this._result=n,n):this._result},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},af:null,_o:!1,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_al:null,al:function(n){return arguments.length===1?(this._al=n,n):this._al},_t:!1,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},_m:!1,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_s:!1,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_n:!1,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_r:!1,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_q:!1,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_p:!1,p:function(n){return arguments.length===1?(this._p=n,n):this._p},getMembersOfLevel:function(){},getMembersOfHierarchy:function(){},getMembersOfMember:function(){},setCube:function(t){if(!this.isInitialized())throw new n.ig.InvalidOperationException(1,"Data source is not initialized.");return this.an(t)},setMeasureGroup:function(t){if(!this.isInitialized())throw new n.ig.InvalidOperationException(1,"Data source is not initialized.");return this.ao(t)},getCoreElement:function(t,i){var f,r,u,e;if(i==n.ig.MeasureList.prototype.$type){for(f=this.measureListLocation()==n.ig.MeasureListLocation.prototype.columns?this.columnAxis():this.rowAxis(),r=null,u=f.getEnumerator();u.moveNext();)if(e=u.current(),r=n.ig.util.cast(n.ig.MeasureList.prototype.$type,e),r!=null)break;return r}return this.getCoreElements(t,i).firstOrDefault$1(n.ig.ICoreOlapElement.prototype.$type)},getCoreElements:function(t,i){var r=this;if(i==n.ig.Dimension.prototype.$type)return r.a(n.ig.Dimension.prototype.$type,r.c().t().where$1(n.ig.Dimension.prototype.$type,function(n){return t(n)}));if(i==n.ig.Hierarchy.prototype.$type)return r.a(n.ig.Hierarchy.prototype.$type,r.c().u().where$1(n.ig.Hierarchy.prototype.$type,function(n){return t(n)}));if(i==n.ig.Level.prototype.$type)return r.a(n.ig.Level.prototype.$type,r.c().x().where$1(n.ig.Level.prototype.$type,function(n){return t(n)}));if(i==n.ig.Measure.prototype.$type)return r.a(n.ig.Measure.prototype.$type,r.c().y().where$1(n.ig.Measure.prototype.$type,function(n){return t(n)}));if(i==n.ig.KpiMeasure.prototype.$type)return r.a(n.ig.KpiMeasure.prototype.$type,r.c().w().where$1(n.ig.KpiMeasure.prototype.$type,function(n){return t(n)}));if(i==n.ig.Kpi.prototype.$type)return r.a(n.ig.Kpi.prototype.$type,r.c().v().where$1(n.ig.Kpi.prototype.$type,function(n){return t(n)}));throw new n.ig.NotSupportedException(0,"Supported types are Dimension, Hierarchy, Level and Measure");},expandTupleMember:function(t,i,r){var u=this,e=u.d(t,u.result()),f;if(e==null)throw new n.ig.InvalidOperationException(1,"No axis found for the specified index.");f=u.ac.where$1(n.ig.PositionInfo.prototype.$type,function(n){return n.c()==t&&n.b()==i&&n.a()==r}).firstOrDefault$1(n.ig.PositionInfo.prototype.$type);f==null?(f=function(){var u=new n.ig.PositionInfo;return u.c(t),u.a(r),u.b(i),u}(),u.ac.add(f)):u.ac.remove(f)},collapseTupleMember:function(t,i,r){var u=this,e=u.d(t,u.result()),f;if(e==null)throw new n.ig.InvalidOperationException(1,"No axis found for the specified index.");f=u.ac.where$1(n.ig.PositionInfo.prototype.$type,function(n){return n.c()==t&&n.b()==i&&n.a()==r}).firstOrDefault$1(n.ig.PositionInfo.prototype.$type);f==null?(f=function(){var u=new n.ig.PositionInfo;return u.c(t),u.a(r),u.b(i),u}(),u.ab.add(f)):u.ac.remove(f)},clearPendingChanges:function(){this.ab.clear();this.ac.clear()},update:function(){var t=this,i,r;return t.t()?t.aj():(t.t(!0),t.ac.count()>0?(i=t.as(t.ac),t.aj(i.continueWithTask$1(n.ig.OlapResult.prototype.$type,function(){return t.ai()}))):t.aj(t.ai()),r=t.aj(),t.aj().i(function(){t.t(!1);t.aj(null)}),r)},initialize:function(){var n=this,t;return n.o()?n.al():(n.o(!0),n.al(n.am()),t=n.al(),n.al().i(function(){n.o(!1);n.al(null)}),t)},addFilterMember:function(t,i){var u=this,f,r=function(){var n=u.b(t,f);return f=n.filtersCollection,n.ret}();r==null?(r=new n.ig.AxisElement(t,function(){var t=new n.ig.ArrayListCollection$1(String);return t.add(i),t}()),f.add(r)):r.a().contains(i)||(r.a().add(i),u.af.contains(i)?u.af.remove(i):u.af.add(i))},getFilterMemberNames:function(t){var i=this,r,u=function(){var n=i.b(t,r);return r=n.filtersCollection,n.ret}();return u!=null?i.a(String,u.a()):new n.ig.ArrayListCollection$1(String)},removeFilterMember:function(n,t){var i=this,r,u=function(){var t=i.b(n,r);return r=t.filtersCollection,t.ret}();u!=null&&u.a().remove(t)&&(i.af.contains(t)?i.af.remove(t):i.af.add(t))},removeAllFilterMembers:function(n){var i=this,f,r=function(){var t=i.b(n,f);return f=t.filtersCollection,t.ret}(),t,u;if(r!=null)for(t=r.a().count()-1;t>=0;t--)u=r.a().item(t),r.a().removeAt(t),i.af.contains(u)?i.af.remove(u):i.af.add(u)},getProviderDefaultProperties:function(){return new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0)},getProviderDefaultRestrictions:function(){return new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0)},tryGetMember:function(n,t){var i=this;return{ret:function(){var r=i.c().h(n,t);return t=r.member,r.ret}(),member:t}},tryGetMembersForLevel:function(n,t){var i=this;return{ret:function(){var r=i.c().j(n,t);return t=r.members,r.ret}(),members:t}},am:function(){},ai:function(){},h:function(){},ah:function(){},an:function(t){var i=this,r,u,f,e,o;if(String.isNullOrEmpty(t)){if(t==null)throw new n.ig.ArgumentNullException("cubeName");throw new n.ig.InvalidOperationException(1,"cubeName cannot be empty.");}if(r=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),i.cube()!=null){if(i.cube().name()==t)return r.e(i.metadataTree()),r.b();i.au()}for(u=i.cubes().getEnumerator();u.moveNext();)if(f=u.current(),f.name()==t){i.cube(f);break}return(e=i.ah(),!i.isInitialized()&&(o=i.sourceOptions().measureGroup(),!String.isNullOrEmpty(o)))?e.continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return i.ao(o)}):e.continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return i.ao(null)})},ak:function(){var t=this,s=null,h=null,c=null,i=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0),nt,tt,it,l,r,a,rt,v,u,y,ut,p,f,w,ft,e,et,b,ot,k,o,st,d,ht,g;if(String.isNullOrEmpty(t.sourceOptions().columns())||(nt=new n.ig.AxisDefinitionParser(t.sourceOptions().columns()),s=nt.c()),String.isNullOrEmpty(t.sourceOptions().rows())||(tt=new n.ig.AxisDefinitionParser(t.sourceOptions().rows()),h=tt.c()),String.isNullOrEmpty(t.sourceOptions().filters())||(it=new n.ig.AxisDefinitionParser(t.sourceOptions().filters()),c=it.c()),s!=null&&s.count()>0)for(l=s.getEnumerator();l.moveNext();)if(r=l.current(),t.at(n.ig.ICoreOlapElement.prototype.$type,r.b(),t.columnAxis(),n.ig.Hierarchy.prototype.$type),t.u().add(r),r.a().count()>0)for(i.add(r),a=r.a().getEnumerator();a.moveNext();)rt=a.current(),t.af.add(rt);if(h!=null&&h.count()>0)for(v=h.getEnumerator();v.moveNext();)if(u=v.current(),t.at(n.ig.ICoreOlapElement.prototype.$type,u.b(),t.rowAxis(),n.ig.Hierarchy.prototype.$type),t.w().add(u),u.a().count()>0)for(i.add(u),y=u.a().getEnumerator();y.moveNext();)ut=y.current(),t.af.add(ut);if(c!=null&&c.count()>0)for(p=c.getEnumerator();p.moveNext();)if(f=p.current(),t.at(n.ig.Hierarchy.prototype.$type,f.b(),t.filters(),n.ig.Hierarchy.prototype.$type),t.v().add(f),f.a().count()>0)for(i.add(f),w=f.a().getEnumerator();w.moveNext();)ft=w.current(),t.af.add(ft);if(e=null,String.isNullOrEmpty(t.sourceOptions().measures())||(et=new n.ig.AxisDefinitionParser(t.sourceOptions().measures()),e=et.c()),e!=null&&e.count()>0)for(b=e.getEnumerator();b.moveNext();)ot=b.current(),t.at(n.ig.Measure.prototype.$type,ot.b(),t.measures(),n.ig.Measure.prototype.$type);if(t.m()||t.s()||t.n()||t.r()||t.p()){if(i.count()>0){for(k=new Array(i.count()),o=0;o<i.count();o++)st=i.item(o).b(),k[o]=t.getMembersOfHierarchy(st);return d=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),ht=new n.ig.TaskFactory,ht.c(k,function(){t.ai().i(function(){t.aw();d.e(t.metadataTree())})}),d.b()}return t.ai().continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){t.aw();var i=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0);return i.e(t.metadataTree()),i.b()})}return t.aw(),g=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),g.e(t.metadataTree()),g.b()},aq:function(){var t=this,i=t.dataProviderFactory().createDataProvider(),r=t.getProviderDefaultRestrictions(),u=t.getProviderDefaultProperties();return i.discoverCubesAsync(u,r).j(n.ig.IList$1.prototype.$type.specialize(n.ig.Cube.prototype.$type),function(i){return t.cubes(t.a(n.ig.Cube.prototype.$type,i.m())),t.cubes()})},ar:function(){var t=this,i=t.dataProviderFactory().createDataProvider(),r=t.getProviderDefaultRestrictions(),u=t.getProviderDefaultProperties();return i.discoverMeasureGroupsAsync(u,r).j(n.ig.IList$1.prototype.$type.specialize(n.ig.MeasureGroup.prototype.$type),function(i){return t.measureGroups(t.a(n.ig.MeasureGroup.prototype.$type,i.m())),t.measureGroups()})},aw:function(){this.isInitialized(!0)},au:function(){this.cube(null);this.measureGroups(new n.ig.ArrayListCollection$1(n.ig.MeasureGroup.prototype.$type));this.filters().clear();this.rowAxis().clear();this.columnAxis().clear();this.measures().clear();this.c(null);this.av()},av:function(){this.measureGroup(null);this.metadataTree(null)},ao:function(t){var i=this,r,u,f;if(i.cube()==null)throw new n.ig.InvalidOperationException(1,"Data source has no Cube set.");if(r=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),i.measureGroup()!=null){if(i.measureGroup().name()==t)return r.e(i.metadataTree()),r.b();i.av()}if(!String.isNullOrEmpty(t)&&i.measureGroups().count()==0)return i.ar().continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return i.measureGroups().count()==0?i.ao(null):i.ao(t)});for(u=i.measureGroups().getEnumerator();u.moveNext();)if(f=u.current(),f.name()==t){i.measureGroup(f);break}return i.metadataTree(i.k(t)),r.e(i.metadataTree()),r.b()},k:function(t){var i=this,e=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.cube),t.caption(i.cube().caption()),t.item(i.cube()),t}(),r,u,f,o=!0,s;return String.isNullOrEmpty(t)||i.measureGroups()==null?(r=i.c().t(),u=i.c().y(),f=i.c().v()):(o=!1,r=i.c().a().getMeasureGroupDimensions(t),u=i.c().a().getMeasureGroupMeasures(t),f=i.c().a().getMeasureGroupKpis(t)),s=n.ig.MetaTreeHelper.prototype.getDimensionMetaItems(r,u,f,i.c().u(),i.c().x(),o,i.c()),n.ig.MetaTreeHelper.prototype.setMetaItemChildren(e,s),e},d:function(t,i){var r=this;return i!=null&&i.axes().count()>0?i.axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==t}).firstOrDefault$1(n.ig.OlapResultAxis.prototype.$type):null},ay:function(t,i){var r=this,s,v,h,c,l,a,u,f,e,o,y,p;switch(t.action()){case n.ig.NotifyCollectionChangedAction.prototype.add:for(s=t.newItems().getEnumerator();s.moveNext();)v=s.current(),h=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,v),h!=null&&r.isInitialized()&&i.add(new n.ig.AxisElement(h.uniqueName(),new n.ig.ArrayListCollection$1(String)));break;case n.ig.NotifyCollectionChangedAction.prototype.remove:for(c=t.oldItems().getEnumerator();c.moveNext();)if(l=c.current(),a=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,l),a!=null){if(u=i.where$1(n.ig.AxisElement.prototype.$type,function(n){return n.b()==a.uniqueName()}).firstOrDefault$1(n.ig.AxisElement.prototype.$type),u!=null){for(f=new n.ig.List$1(String,0),e=0;e<u.a().count();e++)f.add(u.a().item(e));for(o=0;o<f.count();o++)y=f.item(o),r.removeFilterMember(u.b(),y);i.remove(u)}}else p=n.ig.util.cast(n.ig.MeasureList.prototype.$type,l),p!=null&&(r.r()||r.q()||r.p()||r.measures().clear())}},a0:function(t,i){var r=this,u,e,o,s,f,h,c,l;switch(t.action()){case n.ig.NotifyCollectionChangedAction.prototype.add:for(u=t.newItems().getEnumerator();u.moveNext();)e=u.current(),o=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,e),o!=null&&(s=n.ig.util.cast(n.ig.MeasureList.prototype.$type,i.where$1(n.ig.ICoreOlapElement.prototype.$type,function(t){return n.ig.util.cast(n.ig.MeasureList.prototype.$type,t)!==null}).firstOrDefault$1(n.ig.ICoreOlapElement.prototype.$type)),s!=null&&r.measureListIndex()>=t.newStartingIndex()&&r.measureListIndex(r.measureListIndex()+1));break;case n.ig.NotifyCollectionChangedAction.prototype.remove:for(f=t.oldItems().getEnumerator();f.moveNext();)h=f.current(),c=n.ig.util.cast(n.ig.Hierarchy.prototype.$type,h),c!=null&&(l=n.ig.util.cast(n.ig.MeasureList.prototype.$type,i.where$1(n.ig.ICoreOlapElement.prototype.$type,function(t){return n.ig.util.cast(n.ig.MeasureList.prototype.$type,t)!==null}).firstOrDefault$1(n.ig.ICoreOlapElement.prototype.$type)),l!=null&&r.measureListIndex()>t.oldStartingIndex()&&r.measureListIndex(r.measureListIndex()-1))}},az:function(){var t=this,i,e;i=t.measureListLocation()==n.ig.MeasureListLocation.prototype.columns?t.columnAxis():t.rowAxis();for(var r=null,u=0,f=i.getEnumerator();f.moveNext();){if(e=f.current(),r=n.ig.util.cast(n.ig.MeasureList.prototype.$type,e),r!=null)break;u++}t.measures().count()>1?r==null?(r=function(){var i=new n.ig.MeasureList;return i.measures(t.measures()),i}(),t.measureListIndex()<0||t.measureListIndex()>i.count()?(t.ag=i.count(),i.add(r)):i.insert(t.measureListIndex(),r)):u!=t.measureListIndex()&&(i.removeAt(u),t.measureListIndex()>i.count()?(t.ag=i.count(),i.add(r)):i.insert(t.measureListIndex(),r)):r!=null&&i.removeAt(u)},ae:function(){return this.ac},ad:function(){return this.ab},at:function(t,i,r,u){var e=this,o=function(n){return n.uniqueName()==i},f=e.getCoreElement(o,u);f==null||r.contains(n.ig.Object.prototype.$type,f)||r.add(f)},as:function(t){for(var r=this,i=new n.ig.List$1(String,0),h=t.getEnumerator(),o,u,s;h.moveNext();){var e=h.current(),c=r.d(e.c(),r.result()).tuples().__inner[e.b()].members().item(e.a()),f=r.getCoreElement(function(n){return n.hierarchyUniqueName()==c.hierarchyUniqueName()&&n.depth()==c.levelNumber()+1},n.ig.Level.prototype.$type);f==null||r.c().c(f.uniqueName())||i.contains(f.uniqueName())||i.add(f.uniqueName())}if(i.count()>0){for(o=new Array(i.count()),u=0;u<i.count();u++)o[u]=r.getMembersOfLevel(i.item(u));return(new n.ig.TaskFactory).d(n.ig.Array.prototype.$type,o,function(n){return n})}return s=new n.ig.TaskCompletionSource$1(n.ig.Array.prototype.$type,0),s.e(new Array(0)),s.b()},ax:function(){var t,f;if(t=this.measureListLocation()==n.ig.MeasureListLocation.prototype.columns?this.columnAxis():this.rowAxis(),t!=null){for(var i=null,r=0,u=t.getEnumerator();u.moveNext();){if(f=u.current(),i=n.ig.util.cast(n.ig.MeasureList.prototype.$type,f),i!=null)break;r++}i!=null&&(this.q(!0),t.removeAt(r))}},a:function(t,i){for(var r=new n.ig.ArrayListCollection$1(t),u=i.getEnumerator(),f;u.moveNext();)f=u.current(),r.add(f);return r},b:function(t,i){var u=this,r=u.u().where$1(n.ig.AxisElement.prototype.$type,function(n){return n.b()==t}).firstOrDefault$1(n.ig.AxisElement.prototype.$type);return r!=null?(i=u.u(),{ret:r,filtersCollection:i}):(r=u.w().where$1(n.ig.AxisElement.prototype.$type,function(n){return n.b()==t}).firstOrDefault$1(n.ig.AxisElement.prototype.$type),r!=null)?(i=u.w(),{ret:r,filtersCollection:i}):(r=u.v().where$1(n.ig.AxisElement.prototype.$type,function(n){return n.b()==t}).firstOrDefault$1(n.ig.AxisElement.prototype.$type),r!=null)?(i=u.v(),{ret:r,filtersCollection:i}):(i=null,{ret:null,filtersCollection:i})},$type:new n.ig.Type("OlapDataSource",n.ig.Object.prototype.$type,[n.ig.IOlapDataSource.prototype.$type])},!0);n.ig.util.defType("PositionInfo","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("PositionInfo",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("CubeMetaItemsCache","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.s=new n.ig.Dictionary$2(String,n.ig.Tuple$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.Member.prototype.$type),0);this.l=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Member.prototype.$type,0);this.q=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.Member.prototype.$type),0);this.r=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.Member.prototype.$type),0);this.n=new n.ig.Dictionary$2(String,n.ig.Measure.prototype.$type,0);this.m=new n.ig.Dictionary$2(String,n.ig.KpiMeasure.prototype.$type,0);this.p=new n.ig.Dictionary$2(String,n.ig.Boolean.prototype.$type,0);this.o=new n.ig.Dictionary$2(String,n.ig.Boolean.prototype.$type,0)},s:null,l:null,q:null,r:null,n:null,m:null,p:null,o:null,_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_t:null,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},c:function(n){var i=this,t;return function(){var r=i.p.tryGetValue(n,t);return t=r.value,r.ret}()?t:!1},ac:function(n){this.p.item(n,!0)},b:function(n){var i=this,t;return function(){var r=i.o.tryGetValue(n,t);return t=r.value,r.ret}()?t:!1},ab:function(t){var i=this,r,u;for(i.o.item(t,!0),r=i.x().where$1(n.ig.Level.prototype.$type,function(n){return n.hierarchyUniqueName()==t}).getEnumerator();r.moveNext();)u=r.current(),i.ac(u.uniqueName())},d:function(n){return this.r.containsKey(n)},aa:function(t){var i=this,r,e,u,f;return function(){var n=i.s.tryGetValue(t.uniqueName(),r);return r=n.value,n.ret}()||(e=i.s.count(),r=new n.ig.Tuple$2(n.ig.Number.prototype.$type,n.ig.Member.prototype.$type,e,t),i.s.item(t.uniqueName(),r),i.l.item(e,t),function(){var n=i.q.tryGetValue(t.levelUniqueName(),u);return u=n.value,n.ret}()||(u=new n.ig.ArrayListCollection$1(n.ig.Member.prototype.$type),i.q.item(t.levelUniqueName(),u)),String.isNullOrEmpty(t.parentUniqueName())||(function(){var n=i.r.tryGetValue(t.parentUniqueName(),f);return f=n.value,n.ret}()||(f=new n.ig.List$1(n.ig.Member.prototype.$type,0),i.r.item(t.parentUniqueName(),f)),f.add(t)),u.add(t)),r.a()},i:function(n,t){var r=this,i;return function(){var t=r.s.tryGetValue(n,i);return i=t.value,t.ret}()?(t=i.a(),{ret:!0,memberOrdinal:t}):(t=-1,{ret:!1,memberOrdinal:t})},h:function(n,t){var r=this,i;return function(){var t=r.s.tryGetValue(n,i);return i=t.value,t.ret}()?(t=i.b(),{ret:!0,member:t}):(t=null,{ret:!1,member:t})},g:function(n,t){var i=this;return{ret:function(){var r=i.l.tryGetValue(n,t);return t=r.value,r.ret}(),member:t}},k:function(n,t){var i=this;return{ret:function(){var r=i.r.tryGetValue(n,t);return t=r.value,r.ret}(),members:t}},j:function(n,t){var i=this;return{ret:function(){var r=i.q.tryGetValue(n,t);return t=r.value,r.ret}(),members:t}},f:function(t,i){var r=this;if(!function(){var n=r.n.tryGetValue(t,i);return i=n.value,n.ret}()){if(i=r.y().where$1(n.ig.Measure.prototype.$type,function(n){return n.uniqueName()==t}).firstOrDefault$1(n.ig.Measure.prototype.$type),i==null)return{ret:!1,measure:i};r.n.add(t,i)}return{ret:!0,measure:i}},e:function(t,i){var r=this;if(!function(){var n=r.m.tryGetValue(t,i);return i=n.value,n.ret}()){if(i=r.w().where$1(n.ig.KpiMeasure.prototype.$type,function(n){return n.uniqueName()==t}).firstOrDefault$1(n.ig.KpiMeasure.prototype.$type),i==null)return{ret:!1,measure:i};r.m.add(t,i)}return{ret:!0,measure:i}},$type:new n.ig.Type("CubeMetaItemsCache",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MetaTreeHelper","Object",{init:function(){n.ig.Object.prototype.init.call(this)},getDimensionMetaItems:function(t,i,r,u,f,e,o){var it=this,h=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),c=new n.ig.HierarchyItemPosition,l,a,k,v,y,d,p,s,g,w,nt,tt,b;for(c.a(0),c.b(0),l=new n.ig.List$1(n.ig.Hierarchy.prototype.$type,0),a=u.getEnumerator();a.moveNext();)k=a.current(),l.add(k);for(v=new n.ig.List$1(n.ig.Level.prototype.$type,0),y=f.getEnumerator();y.moveNext();)d=y.current(),v.add(d);for(p=t.getEnumerator();p.moveNext();)s=p.current(),g=n.ig.MetaTreeHelper.prototype.e(l,v,s,c),s.dimensionType()!=n.ig.DimensionType.prototype.measure?(w=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.dimension),t.caption(s.caption()),t.item(s),t}(),n.ig.MetaTreeHelper.prototype.setMetaItemChildren(w,g),h.add(w)):(nt=n.ig.MetaTreeHelper.prototype.b(i,s),h.insert(0,nt),r.count$1(n.ig.Kpi.prototype.$type)>0&&(tt=function(){var t=new n.ig.KpiDimension;return t.caption("Kpis"),t}(),b=n.ig.MetaTreeHelper.prototype.a(r,tt,o),b.type(n.ig.OlapMetadataTreeItemType.prototype.kpiRoot),h.insert(1,b)));return h},setMetaItemChildren:function(t,i){var s=this,r,u;if(i.count()>0){var f=i.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toArray$1(n.ig.OlapMetadataTreeItem.prototype.$type),e=i.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).toArray$1(n.ig.OlapMetadataTreeItem.prototype.$type),o=new Array(f.length+e.length);for(r=0;r<f.length;r++)o[r]=f[r];for(u=0;u<e.length;u++)o[f.length+u]=e[u];t.children(o)}},e:function(t,i,r,u){for(var nt=this,v=new n.ig.Dictionary$2(String,n.ig.Tuple$2.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type)),0),y=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),f=t.item(u.a()),e,s,p,h,w,o,c,l,d,a,b,k,g;f.dimensionUniqueName()!=r.uniqueName();)u.a(u.a()+1),f=t.item(u.a());while(f.dimensionUniqueName()==r.uniqueName()){if(e=null,!String.isNullOrEmpty(f.hierarchyDisplayFolder()))for(s=String.empty(),p=n.ig.MetaTreeHelper.prototype.c(f.hierarchyDisplayFolder()),h=0;h<p.length;h++)w=p[h],s+=w+"\\",function(){var n=v.tryGetValue(s,o);return o=n.value,n.ret}()||(c=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.group),t.caption(w),t}(),o=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),c,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),v.add(s,o),e!=null?e.b().add(c):y.add(c)),e=o;switch(f.hierarchyOrigin()){case n.ig.HierarchyOrigin.prototype.systemEnabled:l=n.ig.OlapMetadataTreeItemType.prototype.systemEnabledHierarchy;break;case n.ig.HierarchyOrigin.prototype.userDefined:l=n.ig.OlapMetadataTreeItemType.prototype.userDefinedHierarchy;break;default:l=n.ig.OlapMetadataTreeItemType.prototype.parentChildHierarchy}if(d=n.ig.MetaTreeHelper.prototype.f(i,f,u),a=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(l),t.caption(f.caption()),t.item(f),t}(),n.ig.MetaTreeHelper.prototype.setMetaItemChildren(a,d),e!=null?e.b().add(a):y.add(a),u.a()+1>=t.count())break;u.a(u.a()+1);f=t.item(u.a())}for(b=v.values().getEnumerator();b.moveNext();)k=b.current(),g=k.a(),n.ig.MetaTreeHelper.prototype.setMetaItemChildren(g,k.b());return y},f:function(t,i,r){var s=this,e=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),u,f,o;if(t==null||t.count()==0)return e;for(u=t.item(r.b());u.hierarchyUniqueName()!=i.uniqueName();)r.b(r.b()+1),u=t.item(r.b());while(u.hierarchyUniqueName()==i.uniqueName()){switch(u.depth()){case 0:case 1:f=n.ig.OlapMetadataTreeItemType.prototype.level1;break;case 2:f=n.ig.OlapMetadataTreeItemType.prototype.level2;break;case 3:f=n.ig.OlapMetadataTreeItemType.prototype.level3;break;case 4:f=n.ig.OlapMetadataTreeItemType.prototype.level4;break;default:f=n.ig.OlapMetadataTreeItemType.prototype.level5}if(o=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(f),t.caption(u.caption()),t.item(u),t}(),e.add(o),r.b()+1>=t.count())break;r.b(r.b()+1);u=t.item(r.b())}return e},b:function(t,i){for(var lt=this,f=new n.ig.Dictionary$2(String,n.ig.Tuple$2.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type)),0),y=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.measure),t.caption(i.caption()),t.item(i),t}(),o=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),y,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),tt=t.getEnumerator(),r,u,it,s,h,p,c,w,e,b,rt,l,k,ut,d,ft,g,a,v,ct;tt.moveNext();)if(r=tt.current(),n.ig.util.cast(n.ig.KpiMeasure.prototype.$type,r)===null){if(u=o,String.isNullOrEmpty(r.measureGroupName())||function(){var n=f.tryGetValue(r.measureGroupName(),u);return u=n.value,n.ret}()||(it=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.group),t.caption(r.measureGroupName()),t}(),u=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),it,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),f.add(r.measureGroupName(),u),o.b().add(u.a())),s=u,!String.isNullOrEmpty(r.measureDisplayFolder()))for(h=r.measureGroupName(),p=n.ig.MetaTreeHelper.prototype.c(r.measureDisplayFolder()),c=0;c<p.length;c++)w=p[c],h+="\\"+w,function(){var n=f.tryGetValue(h,e);return e=n.value,n.ret}()||(b=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.group),t.caption(w),t}(),e=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),b,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),f.add(h,e),s.b().add(b)),s=e;rt=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.measure),t.caption(r.caption()),t.item(r),t}();s.b().add(rt)}for(l=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),k=o.b().where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).getEnumerator();k.moveNext();)ut=k.current(),l.add(ut);for(d=o.b().where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).getEnumerator();d.moveNext();)ft=d.current(),l.add(ft);for(n.ig.MetaTreeHelper.prototype.setMetaItemChildren(y,l),g=f.values().getEnumerator();g.moveNext();){var et=g.current(),ot=et.b(),st=ot.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toList$1(n.ig.OlapMetadataTreeItem.prototype.$type),ht=ot.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toList$1(n.ig.OlapMetadataTreeItem.prototype.$type),nt=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0);for(a=0;a<st.count();a++)nt.add(st.item(a));for(v=0;v<ht.count();v++)nt.add(ht.item(v));ct=et.a();n.ig.MetaTreeHelper.prototype.setMetaItemChildren(ct,nt)}return y},a:function(t,i,r){var ni=this,g=new n.ig.Dictionary$2(String,n.ig.Tuple$2.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type)),0),h=r.y().toList$1(n.ig.Measure.prototype.$type),f,u,l,a,it,v,rt,c,ut,e,y,p,w,b,ft,yt,et,pt,ot,k,d,gt;r.y(h);f=new n.ig.List$1(n.ig.KpiMeasure.prototype.$type,0);r.w(f);for(var nt=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.kpiRoot),t.caption(i.caption()),t.item(i),t}(),tt=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),nt,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),ht=t.getEnumerator();ht.moveNext();){if(u=ht.current(),l=tt,!String.isNullOrEmpty(u.kpiDisplayFolder()))for(a=String.empty(),it=n.ig.MetaTreeHelper.prototype.c(u.kpiDisplayFolder()),v=0;v<it.length;v++)rt=it[v],a+="\\"+rt,function(){var n=g.tryGetValue(a,c);return c=n.value,n.ret}()||(ut=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.group),t.caption(rt),t}(),c=new n.ig.Tuple$2(n.ig.OlapMetadataTreeItem.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.OlapMetadataTreeItem.prototype.$type),ut,new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0)),g.add(a,c),l.b().add(ut)),l=c;if(e=function(){var t=new n.ig.OlapMetadataTreeItem;return t.type(n.ig.OlapMetadataTreeItemType.prototype.kpi),t.caption(u.caption()),t.item(u),t}(),!String.isNullOrEmpty(u.kpiValue())){var o=null,ct=n.ig.OlapMetadataTreeItemType.prototype.measure,lt="Value";(function(){var n=r.f(u.kpiValue(),o);return o=n.measure,n.ret})()?lt+=" ("+o.caption()+")":(ct=n.ig.OlapMetadataTreeItemType.prototype.kpiValue,o=n.ig.KpiMeasure.prototype.createKpiValueMeasure(u),h.add(o),f.add(o));e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption(lt),t.item(o),t.type(ct),t}())}if(!String.isNullOrEmpty(u.kpiGoal())){var s=null,at=n.ig.OlapMetadataTreeItemType.prototype.measure,vt="Goal";(function(){var n=r.f(u.kpiGoal(),s);return s=n.measure,n.ret})()?vt+=" ("+s.caption()+")":(at=n.ig.OlapMetadataTreeItemType.prototype.kpiGoal,s=n.ig.KpiMeasure.prototype.createKpiGoalMeasure(u),h.add(s),f.add(s));e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption(vt),t.item(s),t.type(at),t}())}String.isNullOrEmpty(u.kpiStatus())||(y=n.ig.KpiMeasure.prototype.createKpiStatusMeasure(u),h.add(y),f.add(y),e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption("Status"),t.item(y),t.type(n.ig.OlapMetadataTreeItemType.prototype.kpiStatus),t}()));String.isNullOrEmpty(u.kpiTrend())||(p=n.ig.KpiMeasure.prototype.createKpiTrendMeasure(u),h.add(p),f.add(p),e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption("Trend"),t.item(p),t.type(n.ig.OlapMetadataTreeItemType.prototype.kpiTrend),t}()));String.isNullOrEmpty(u.kpiWeight())||(w=n.ig.KpiMeasure.prototype.createKpiWeightMeasure(u),h.add(w),f.add(w),e.e(function(){var t=new n.ig.OlapMetadataTreeItem;return t.caption("Weight"),t.item(w),t.type(n.ig.OlapMetadataTreeItemType.prototype.kpiWeight),t}()));l.b().add(e)}for(b=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0),ft=tt.b().where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).getEnumerator();ft.moveNext();)yt=ft.current(),b.add(yt);for(et=tt.b().where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).getEnumerator();et.moveNext();)pt=et.current(),b.add(pt);for(n.ig.MetaTreeHelper.prototype.setMetaItemChildren(nt,b),ot=g.values().getEnumerator();ot.moveNext();){var wt=ot.current(),bt=wt.b(),kt=bt.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()==n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toList$1(n.ig.OlapMetadataTreeItem.prototype.$type),dt=bt.where$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(t){return t.type()!=n.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2(n.ig.OlapMetadataTreeItem.prototype.$type,String,function(n){return n.caption()}).toList$1(n.ig.OlapMetadataTreeItem.prototype.$type),st=new n.ig.List$1(n.ig.OlapMetadataTreeItem.prototype.$type,0);for(k=0;k<kt.count();k++)st.add(kt.item(k));for(d=0;d<dt.count();d++)st.add(dt.item(d));gt=wt.a();n.ig.MetaTreeHelper.prototype.setMetaItemChildren(gt,st)}return nt},c:function(n){return n.split("\\")},$type:new n.ig.Type("MetaTreeHelper",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("HierarchyItemPosition","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("HierarchyItemPosition",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DataSourceBaseOptions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_cube:null,cube:function(n){return arguments.length===1?(this._cube=n,n):this._cube},_measureGroup:null,measureGroup:function(n){return arguments.length===1?(this._measureGroup=n,n):this._measureGroup},_measures:null,measures:function(n){return arguments.length===1?(this._measures=n,n):this._measures},_filters:null,filters:function(n){return arguments.length===1?(this._filters=n,n):this._filters},_columns:null,columns:function(n){return arguments.length===1?(this._columns=n,n):this._columns},_rows:null,rows:function(n){return arguments.length===1?(this._rows=n,n):this._rows},$type:new n.ig.Type("DataSourceBaseOptions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("AxisDefinitionParser","Object",{init:function(t){n.ig.Object.prototype.init.call(this);this.d(-1);this.k(t)},_a:!1,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},b:function(){var u,f;if(this.d()==this.k().length-1)return!1;for(var i=-1,r=-1,t=!1;this.d()+1<this.k().length;){this.d(this.d()+1);u=this.k().substr(this.d(),1);switch(u){case n.ig.AxisDefinitionParser.prototype.e:i==-1&&(i=this.d());break;case n.ig.AxisDefinitionParser.prototype.f:for(r=this.d();this.d()+1<this.k().length;){u=this.k().substr(this.d()+1,1);switch(u){case n.ig.AxisDefinitionParser.prototype.f:r=this.d()+1;break;case n.ig.AxisDefinitionParser.prototype.h:n.ig.AxisDefinitionParser.prototype.f==this.k().substr(this.d(),1)&&(t=!0);break;case n.ig.AxisDefinitionParser.prototype.i:case n.ig.AxisDefinitionParser.prototype.j:t=!0}if(t)break;this.d(this.d()+1)}t=!0;break;case n.ig.AxisDefinitionParser.prototype.h:t=!0;break;case n.ig.AxisDefinitionParser.prototype.i:this.a(!0);break;case n.ig.AxisDefinitionParser.prototype.j:n.ig.Debug.prototype.a(this.a());t=!0;this.a(!1)}if(t&&(t=!1,i>-1&&r>-1))break}return this.d()==this.k().length-1&&(r==-1||i==-1)?!1:(f=this.k().substr(i,r-i+1).trim(),this.g(f),!0)},c:function(){for(var i=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0),t=null,r;this.b();)this.a()?t!=null&&t.add(this.g()):(t=new n.ig.ArrayListCollection$1(String),r=new n.ig.AxisElement(this.g(),t),i.add(r));return i},$type:new n.ig.Type("AxisDefinitionParser",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("CoreOlapElementParser","Object",{init:function(t){n.ig.Object.prototype.init.call(this);this.c(-1);this.h(t)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},a:function(){var u,f;if(this.c()==this.h().length-1)return!1;for(var t=-1,i=-1,r=!1;this.c()+1<this.h().length;){this.c(this.c()+1);u=this.h().substr(this.c(),1);switch(u){case n.ig.CoreOlapElementParser.prototype.d:t==-1&&(t=this.c());break;case n.ig.CoreOlapElementParser.prototype.e:for(i=this.c();this.c()+1<this.h().length;){u=this.h().substr(this.c()+1,1);switch(u){case n.ig.CoreOlapElementParser.prototype.e:i=this.c()+1;break;case n.ig.CoreOlapElementParser.prototype.g:r=!0}if(r)break;this.c(this.c()+1)}break;case n.ig.CoreOlapElementParser.prototype.g:r=!0}if(r&&(r=!1,t>-1&&i>-1))break}return this.c()==this.h().length-1&&(i==-1||t==-1)?!1:(f=this.h().substr(t,i-t+1).trim(),this.f(f),!0)},b:function(){for(var t=new n.ig.List$1(String,0);this.a();)t.add(this.f());return t},$type:new n.ig.Type("CoreOlapElementParser",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("KeyValueItem","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("KeyValueItem",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("AxisElement","Object",{init:function(t,i){n.ig.Object.prototype.init.call(this);this.b(t);this.a(i)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("AxisElement",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasureGroupMetaItemsCache","Object",{a:null,c:null,b:null,j:null,d:null,h:null,f:null,init:function(t,i,r,u){n.ig.Object.prototype.init.call(this);this.a=new n.ig.Dictionary$2(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Dimension.prototype.$type),0);this.c=new n.ig.Dictionary$2(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Measure.prototype.$type),0);this.b=new n.ig.Dictionary$2(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Kpi.prototype.$type),0);this.j=u;this.d=t;this.h=i;this.f=r},getMeasureGroupDimensions:function(t){var i=this,r,e,o,s,u,h,f;if(!function(){var n=i.a.tryGetValue(t,r);return r=n.value,n.ret}()){for(e=new n.ig.List$1(String,0),o=i.j.getEnumerator();o.moveNext();)s=o.current(),s.measureGroupName()==t&&e.add(s.dimensionUniqueName());for(u=new n.ig.List$1(n.ig.Dimension.prototype.$type,0),h=i.d.getEnumerator();h.moveNext();)f=h.current(),(e.contains(f.uniqueName())||f.dimensionType()==n.ig.DimensionType.prototype.measure)&&u.add(f);i.a.add(t,u);r=u}return r},getMeasureGroupMeasures:function(t){var u=this,i,r,f,e;if(!function(){var n=u.c.tryGetValue(t,i);return i=n.value,n.ret}()){for(r=new n.ig.List$1(n.ig.Measure.prototype.$type,0),f=u.h.getEnumerator();f.moveNext();)e=f.current(),e.measureGroupName()==t&&r.add(e);u.c.add(t,r);i=r}return i},getMeasureGroupKpis:function(t){var u=this,i,r,f,e;if(!function(){var n=u.b.tryGetValue(t,i);return i=n.value,n.ret}()){for(r=new n.ig.List$1(n.ig.Kpi.prototype.$type,0),f=u.f.getEnumerator();f.moveNext();)e=f.current(),e.measureGroupName()==t&&r.add(e);u.b.add(t,r);i=r}return i},$type:new n.ig.Type("MeasureGroupMetaItemsCache",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("PositionItemInfo$2","Dictionary$2",{$tKey:null,$tSortKey:null,init:function(t,i,r,u,f,e){this.q=new n.ig.Dictionary$2(this.$tKey,n.ig.Object.prototype.$type,0);this.$tKey=t;this.$tSortKey=i;this.$type=this.$type.specialize(this.$tKey,this.$tSortKey);n.ig.Dictionary$2.prototype.init.call(this,this.$tKey,n.ig.PositionItemInfo$2.prototype.$type.specialize(this.$tKey,this.$tSortKey));this.positionItem(r);this.positionIndex(u);this.positionItemIndex(f);this.positionItemDepth(0);this.positionItemDepthMin(-1);this.positionItemDepthMax(Number.MAX_VALUE);this.positionSize(e);r!=null&&(this.positionItemDepth(this.positionItem().depth()),this.key(this.positionItem().key()),this.parentKey(this.positionItem().parentKey()),this.hierarchyKey(this.positionItem().hierarchyKey()),this.hierarchyLevelKey(this.positionItem().hierarchyLevelKey()),this.sortKey(this.positionItem().sortKey()),this.caption(this.positionItem().caption()))},l:function(t,i,r,u){return new n.ig.PositionItemInfo$2(this.$tKey,this.$tSortKey,t,i,r,u)},_positionItemDepthMin:0,positionItemDepthMin:function(n){return arguments.length===1?(this._positionItemDepthMin=n,n):this._positionItemDepthMin},_positionItemDepthMax:0,positionItemDepthMax:function(n){return arguments.length===1?(this._positionItemDepthMax=n,n):this._positionItemDepthMax},_positionItem:null,positionItem:function(n){return arguments.length===1?(this._positionItem=n,n):this._positionItem},_positionIndex:0,positionIndex:function(n){return arguments.length===1?(this._positionIndex=n,n):this._positionIndex},_positionItemDepth:0,positionItemDepth:function(n){return arguments.length===1?(this._positionItemDepth=n,n):this._positionItemDepth},_positionItemIndex:0,positionItemIndex:function(n){return arguments.length===1?(this._positionItemIndex=n,n):this._positionItemIndex},_positionSize:0,positionSize:function(n){return arguments.length===1?(this._positionSize=n,n):this._positionSize},_key:null,key:function(n){return arguments.length===1?(this._key=n,n):this._key},_parentKey:null,parentKey:function(n){return arguments.length===1?(this._parentKey=n,n):this._parentKey},_hierarchyKey:null,hierarchyKey:function(n){return arguments.length===1?(this._hierarchyKey=n,n):this._hierarchyKey},_hierarchyLevelKey:null,hierarchyLevelKey:function(n){return arguments.length===1?(this._hierarchyLevelKey=n,n):this._hierarchyLevelKey},_caption:null,caption:function(n){return arguments.length===1?(this._caption=n,n):this._caption},_sortKey:null,sortKey:function(n){return arguments.length===1?(this._sortKey=n,n):this._sortKey},_isExpandable:!1,isExpandable:function(n){return arguments.length===1?(this._isExpandable=n,n):this._isExpandable},_isExpanded:!1,isExpanded:function(n){return arguments.length===1?(this._isExpanded=n,n):this._isExpanded},m:function(n,t,i){var r=!1,u,f;return(this.positionItemIndex()==-1?r=!0:i!=null&&n.item(this.positionItemIndex()).key()!=null&&(u=i.item(this.positionItemIndex()),r=n.item(this.positionItemIndex()).key().equals(u.key())),this.positionItemIndex()+1==this.positionSize())?r:(f=this.n(n,t,this.positionItemIndex()+1,i),r&&f)},ab:function(){},q:null,n:function(n,t,i,r){var u=this,s,f=n.item(i),e,o,h;return u.containsKey(f.key())?(h=u.item(f.key()),s=h.m(n,t,r)):(e=u.l(f,t,i,u.positionSize()),e.isExpandable(f.isExpandable()),u.q.containsKey(e.key())&&(u.q.remove(e.key()),e.isExpanded(!0)),f.parentKey()!=null&&(o=null,function(){var n=u.tryGetValue(f.parentKey(),o);return o=n.value,n.ret}()?o.isExpanded(!0):u.q.containsKey(f.parentKey())||u.q.add(f.parentKey(),null)),s=e.m(n,t,r),u.add(f.key(),e),u.positionItemDepthMin()==-1?u.positionItemDepthMin(f.depth()):u.positionItemDepthMin(Math.min(u.positionItemDepthMin(),f.depth())),u.positionItemDepthMax()==Number.MAX_VALUE?u.positionItemDepthMax(f.depth()):u.positionItemDepthMax(Math.max(u.positionItemDepthMax(),f.depth())),u.ab(n,e)),s},getIndex2:function(n){for(var i=new Array(n.count()),t=0;t<i.length;t++)i[t]=n.item(t).key();return this.getIndex(i)},getIndex:function(n){return this.s(n,n.length)},s:function(n,t){var r=this,i;return r.positionItemIndex()==t-1?r.positionIndex():function(){var t=r.tryGetValue(n[r.positionItemIndex()+1],i);return i=t.value,t.ret}()?i.count()==0?i.positionIndex():i.s(n,t):-1},$type:new n.ig.Type("PositionItemInfo$2",n.ig.Dictionary$2.prototype.$type.specialize(0,1))},!0);n.ig.util.defType("PositionResolver$2","Object",{$tKey:null,$tSortKey:null,k:0,b:null,t:null,u:null,init:function(t,i,r,u){this.k=0;this.$tKey=t;this.$tSortKey=i;this.$type=this.$type.specialize(this.$tKey,this.$tSortKey);n.ig.Object.prototype.init.call(this);this.positions(r.toList$1(n.ig.IPosition$2.prototype.$type.specialize(this.$tKey,this.$tSortKey)));this.positionSize(u)},getPositionIndexCompleted:null,_positions:null,positions:function(n){return arguments.length===1?(this._positions=n,n):this._positions},_positionSize:0,positionSize:function(n){return arguments.length===1?(this._positionSize=n,n):this._positionSize},rootPositionInfo:function(){return this.b==null&&(this.b=this.d(this.positionSize())),this.b},d:function(t){return new n.ig.PositionItemInfo$2(this.$tKey,this.$tSortKey,null,-1,-1,t)},hasUnregisterdPositions:function(){return this.k<this.positions().count()},completeRegisterPositions:function(){this.hasUnregisterdPositions()&&this.o(null)},resolveParentPositionItem:function(t,i){var r,e,f,u,o,s;if(i=-1,r=n.ig.util.cast(n.ig.IHierarchicalPositionItem$2.prototype.$type.specialize(this.$tKey,this.$tSortKey),t),r==null||r.parentKey()==null)return{ret:null,parentPositionIndex:i};for(e=r.position().indexOf(r),f=new Array(r.position().itemsCount()),u=0;u<r.position().itemsCount();u++)f[u]=r.position().item(u).key();return(f[e]=r.parentKey(),i=this.rootPositionInfo().getIndex(f),i==-1)?{ret:null,parentPositionIndex:i}:(o=this.positions().__inner[i],s=o.item(e),{ret:s,parentPositionIndex:i})},getHostPositionItemInfo:function(n,t){for(var u,f=this,i=f.rootPositionInfo(),e=n.item(t),r=0;r<t;r++)if(function(){var t=i.tryGetValue(n.item(r).key(),u);return u=t.value,t.ret}())i=u;else{i=null;break}return i==null?null:i.containsKey(e.key())?i:null},h:function(t,i){var e=this,r,s,f,o,u;if(e.rootPositionInfo().count()==0)return null;for(r=e.rootPositionInfo(),s=t.position().indexOf(t),f=0;f<s;f++)if(function(){var n=r.tryGetValue(t.position().item(f).key(),o);return o=n.value,n.ret}())r=o;else{r=null;break}return r==null?null:r.containsKey(t.key())?(u=new n.ig.List$1(n.ig.Number.prototype.$type,0),e.s(t.key(),r,u),i==n.ig.ListSortDirection.prototype.descending)?(u.sort1(function(n,t){return n==t?0:n>t?-1:1}),u):(u.sort1(function(n,t){return n==t?0:n>t?1:-1}),u):null},s:function(t,i,r){for(var f=this,e=i.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(f.$tKey,f.$tSortKey),function(n){return t.equals(n.parentKey())}).getEnumerator(),u;e.moveNext();)(u=e.current(),u.count()==0?r.add(u.positionIndex()):f.r(u,r),u.isExpanded())&&u.positionItemDepth()<i.positionItemDepthMax()&&f.s(u.key(),i,r)},r:function(t,i){for(var u=this,f=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(u.$tKey,u.$tSortKey),function(n){return n.parentKey()==null}).getEnumerator(),r;f.moveNext();)(r=f.current(),r.count()==0?i.add(r.positionIndex()):u.r(r,i),r.isExpanded())&&r.positionItemDepth()<t.positionItemDepthMax()&&u.s(r.key(),t,i)},getChildren:function(t,i){var r=this,u,f;return r.hasUnregisterdPositions()&&r.completeRegisterPositions(),u=r.getHostPositionItemInfo(t,i),f=t.item(i),u.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(r.$tKey,r.$tSortKey),function(n){return f.key().equals(n.parentKey())})},isMemberExpanded:function(t){var r=this,s,h,i,u,e,o,f;if(r.hasUnregisterdPositions()&&r.completeRegisterPositions(),s=r.getPositionIndex(t.position()),s==-1||r.rootPositionInfo().count()==0)return n.ig.util.toNullable(Boolean,null);for(h=t.position().indexOf(t),i=r.rootPositionInfo(),u=0;u<h;u++)if(function(){var n=i.tryGetValue(t.position().item(u).key(),e);return e=n.value,n.ret}())i=e;else{i=null;break}if(i==null||!i.containsKey(t.key()))return n.ig.util.toNullable(Boolean,null);for(o=null,f=i.values().getEnumerator();f.moveNext();)if(t.key().equals(f.current().parentKey())){o=f.current();break}return n.ig.util.toNullable(Boolean,o!=null)},getPositionIndex:function(n){if(n==null||n.itemsCount()!=this.positionSize())return-1;if(n.isEmpty()&&this.positions().count()==1&&this.positions().__inner[0].isEmpty())return 0;if(this.k>0){var t=this.m(n);if(t>-1)return t;if(this.k==this.positions().count())return-1}return this.o(n)},m:function(t){return t.isEmpty()&&this.positions().count()==1&&this.positions().__inner[0].isEmpty()?0:this.rootPositionInfo().getIndex2(t.getItems().toList$1(n.ig.IPositionItem$2.prototype.$type.specialize(this.$tKey,this.$tSortKey)))},o:function(n){for(var r,u,f=n==null,i=-1,t=this.k;t<this.positions().count();t++)if(r=this.positions().__inner[t],u=this.rootPositionInfo().m(r,t,n),this.k++,i==-1&&u&&(i=t,!f))break;return i},$type:new n.ig.Type("PositionResolver$2",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("LevelSortDirection","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.sortBehavior(n.ig.LevelSortBehavior.prototype.system)},_levelUniqueName:null,levelUniqueName:function(n){return arguments.length===1?(this._levelUniqueName=n,n):this._levelUniqueName},_sortDirection:null,sortDirection:function(n){return arguments.length===1?(this._sortDirection=n,n):this._sortDirection},_sortBehavior:null,sortBehavior:function(n){return arguments.length===1?(this._sortBehavior=n,n):this._sortBehavior},$type:new n.ig.Type("LevelSortDirection",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("TaskExtensions","Object",{init:function(){n.ig.Object.prototype.init.call(this)},continueWithTask$1:function(t,i){var u=this,r=new n.ig.TaskCompletionSource$1(t,0);return u.e(function(n){if(n.a()==null)try{i(n).i(function(n){if(n.a()==null){r.e(n.m());return}r.d(n.a())})}catch(u){var t;t=u;r.d(t)}else r.d(n.a())}),r.b()},continueWithTask$2:function(n,t,i){var r=this;return r.continueWithTask$1(t,function(n){return i(n)})},$type:new n.ig.Type("TaskExtensions",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("HierarchyFilterView","Object",{d:null,c:null,e:null,init:function(t){this.e=new n.ig.Dictionary$2(String,n.ig.FilterMember.prototype.$type,0);n.ig.Object.prototype.init.call(this);this.hierarchy(t);this.c=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.FilterMember.prototype.$type),0);this.d=new n.ig.Dictionary$2(String,n.ig.FilterMember.prototype.$type,0)},filterMemberExpansionChanged:null,filterMemberSelectionChanged:null,_hierarchy:null,hierarchy:function(n){return arguments.length===1?(this._hierarchy=n,n):this._hierarchy},addFiltersForMembers:function(n){for(var t=n.getEnumerator(),i;t.moveNext();)i=t.current(),this.addFilterForMember(i)},addFilterForMember:function(t){var i=this,r,u;i.d.containsKey(t.uniqueName())||(r=new n.ig.FilterMember(t),r.propertyChanged=n.ig.Delegate.prototype.combine(r.propertyChanged,i.o.runOn(i)),r.selectionChanged=n.ig.Delegate.prototype.combine(r.selectionChanged,i.p.runOn(i)),function(){var n=i.c.tryGetValue(t.levelDepth(),u);return u=n.value,n.ret}()||(u=new n.ig.List$1(n.ig.FilterMember.prototype.$type,0),i.c.add(t.levelDepth(),u)),i.d.add(t.uniqueName(),r),i.e.add(t.uniqueName(),r),u.add(r),i.j(r),i.m(r))},tryGetFilterMember:function(n,t){var i=this;return{ret:function(){var r=i.d.tryGetValue(n,t);return t=r.value,r.ret}(),filterMember:t}},getRootFilterMembers:function(){for(var n=-1,i=this.c.keys().getEnumerator(),t;i.moveNext();)t=i.current(),n=n==-1?t:Math.min(t,n);return n==-1?null:this.c.item(n)},getSelectedFilterItems:function(){for(var r=this.getRootFilterMembers(),i=new n.ig.List$1(n.ig.FilterMember.prototype.$type,0),e=0,o=r.getEnumerator(),u,f,t;o.moveNext();)u=o.current(),u.isSelected().hasValue()==!0&&u.isSelected().value()==!0&&e++;if(e==r.count())return i;for(f=r.getEnumerator();f.moveNext();)t=f.current(),t.isSelected().hasValue()==!1?this.n(t,i):t.isSelected().hasValue()==!0&&t.isSelected().value()==!0&&i.add(t);return i},p:function(t){this.filterMemberSelectionChanged!=null&&this.filterMemberSelectionChanged(this,new n.ig.FilterMemberStateChangedEventArgs(t))},o:function(t,i){i.propertyName()=="IsExpanded"&&this.filterMemberExpansionChanged!=null&&this.filterMemberExpansionChanged(this,new n.ig.FilterMemberStateChangedEventArgs(t))},n:function(n,t){var i,r;if(n.isSelected().hasValue()==!0&&n.isSelected().value()==!0)t.add(n);else{if(n.children()==null)return;for(i=n.children().getEnumerator();i.moveNext();)r=i.current(),this.n(r,t)}},m:function(t){var u=this,r=t.member().parentUniqueName(),i;String.isNullOrEmpty(r)||function(){var n=u.d.tryGetValue(r,i);return i=n.value,n.ret}()&&(i.n(t),i.isSelected().hasValue()==!0&&i.isSelected().value()==!1&&t.isSelected(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!1)))},j:function(n){var u=this,f=n.member().levelDepth(),t,i,r;if(function(){var n=u.c.tryGetValue(f+1,t);return t=n.value,n.ret}())for(i=t.getEnumerator();i.moveNext();)r=i.current(),r.member().parentUniqueName()==n.member().uniqueName()&&n.n(r)},$type:new n.ig.Type("HierarchyFilterView",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("FilterMember","Object",{l:n.ig.util.toNullable(n.ig.Boolean.prototype.$type,null),c:!1,e:!1,d:!1,init:function(t){this.e=!1;this.d=!1;n.ig.Object.prototype.init.call(this);var i=n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!0);this.l=i;this.member(t);this.k(0);this.j(0)},selectionChanged:null,propertyChanged:null,_parent:null,parent:function(n){return arguments.length===1?(this._parent=n,n):this._parent},_member:null,member:function(n){return arguments.length===1?(this._member=n,n):this._member},isExpandable:function(){return this.member().childrenCardinality()>0},isExpanded:function(n){return arguments.length===1?(this.c!=n&&(this.c=n,this.o("IsExpanded")),n):this.c},isSelected:function(t){var e,u,i,f,r;if(arguments.length===1){if(e=t,u=n.ig.util.toNullable(n.ig.Boolean.prototype.$type,null),n.ig.util.nullableEquals(this.l,e)==!1){if(i=this.l,this.l=t,!this.d&&this.l.hasValue()==!0&&this.children()!=null)for(f=this.children().getEnumerator();f.moveNext();)r=f.current(),r.e=!0,r.isSelected(this.l),r.e=!1;if(this.parent()!=null&&(i.hasValue()==!0&&i.value()==!1?(this.l.hasValue()==!1&&this.p(!0),this.q(!1)):i.hasValue()==!1?(this.l.hasValue()==!0&&this.l.value()==!1&&this.q(!0),this.p(!1)):this.l.hasValue()==!0&&this.l.value()==!1?this.q(!0):this.l.hasValue()==!1&&this.p(!0),!this.e)){this.parent().d=!0;var o=this.parent().k(),s=this.parent().j(),h=this.parent().children().count();s==0?o==0?this.parent().isSelected(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!0)):o==h?this.parent().isSelected(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!1)):this.parent().isSelected(u):this.parent().isSelected(u);this.parent().d=!1}this.o("IsSelected");this.e||this.d||this.selectionChanged!=null&&this.selectionChanged(this,n.ig.EventArgs.prototype.empty)}return t}return this.l},q:function(n){n?this.parent().k(this.parent().k()+1):this.parent().k(this.parent().k()-1)},p:function(n){n?this.parent().j(this.parent().j()+1):this.parent().j(this.parent().j()-1)},_children:null,children:function(n){return arguments.length===1?(this._children=n,n):this._children},n:function(t){this.children()==null&&this.children(new n.ig.List$1(n.ig.FilterMember.prototype.$type,0));t.parent(this);this.children().add(t);this.o("Children")},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},o:function(t){this.propertyChanged!=null&&this.propertyChanged(this,new n.ig.PropertyChangedEventArgs(t))},$type:new n.ig.Type("FilterMember",n.ig.Object.prototype.$type,[n.ig.INotifyPropertyChanged.prototype.$type])},!0);n.ig.util.defType("FilterMemberStateChangedEventArgs","EventArgs",{init:function(t){n.ig.EventArgs.prototype.init.call(this);this.filterMember(t)},_filterMember:null,filterMember:function(n){return arguments.length===1?(this._filterMember=n,n):this._filterMember},$type:new n.ig.Type("FilterMemberStateChangedEventArgs",n.ig.EventArgs.prototype.$type)},!0);n.ig.util.defType("ResultSorter$1","Object",{$t:null,_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},init:function(t,i,r,u){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.Object.prototype.init.call(this);this.a(i);this.d(r);this.c(u)},b:function(){},e:function(t,i,r){var u,o,f,s,e,h,c;for(t.e(),u=t.d(),o=new Array(u.count()),f=0;f<u.count();f++)s=u.item(f),r.add(s,f);for(e=0;e<u.count();e++)h=u.item(e),c=i.tuples().__inner[h],o[e]=c;return new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,1,o)},$type:new n.ig.Type("ResultSorter$1",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("ResultHeaderSorter","ResultSorter$1",{f:null,_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},init:function(t,i,r,u){var f,e;for(n.ig.ResultSorter$1.prototype.init.call(this,n.ig.AxisHeaderSortingVisitor.prototype.$type,t,i,r),this.f=new n.ig.Dictionary$2(String,n.ig.LevelSortDirection.prototype.$type,1,u.count()),f=u.getEnumerator();f.moveNext();)e=f.current(),this.f.item(e.levelUniqueName(),e)},b:function(){var t=this,s,h,l,a,d,v,y,g;if(t.h(new n.ig.List$1(n.ig.LevelSortDirection.prototype.$type,0)),t.g(new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type)),0)),t.a().isEmpty())return t.a();var e=new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0),o=0,i=1,p=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),w=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0);if(t.c()){var u=t.a().axes().item(o),b=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type),0),nt=new n.ig.AxisHeaderSortingVisitor(u,t.f,t.h(),b),tt=t.e(nt,u,p),it=function(){var t=new n.ig.OlapResultAxis(tt,u.tupleSize());return t.name(u.name()),t}();e.add(it);t.g().item(u.name(),b);i=u.tuples().count();o++}if(t.d()){var f=t.a().axes().item(o),k=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type),0),rt=new n.ig.AxisHeaderSortingVisitor(f,t.f,t.h(),k),ut=t.e(rt,f,w),ft=function(){var t=new n.ig.OlapResultAxis(ut,f.tupleSize());return t.name(f.name()),t}();e.add(ft);t.g().item(f.name(),k)}for(s=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,2,t.a().cells().count()),h=t.a().cells().getEnumerator();h.moveNext();){var et=h.current(),c=et.clone(),r=c.cellOrdinal();t.c()&&(l=r%i,a=p.item(l),l!=a&&(d=n.ig.intDivide(r,i),r=d*i+a));t.d()&&(v=n.ig.intDivide(r,i),y=w.item(v),v!=y&&(g=r%i,r=y*i+g));c.cellOrdinal(r);s.add(c)}return function(){var i=new n.ig.OlapResult;return i.isEmpty(t.a().isEmpty()),i.axes(e),i.cells(s),i}()},$type:new n.ig.Type("ResultHeaderSorter",n.ig.ResultSorter$1.prototype.$type.specialize(n.ig.AxisHeaderSortingVisitor.prototype.$type))},!0);n.ig.util.defType("AxisTupleVisitor","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},init:function(t){n.ig.Object.prototype.init.call(this);this.a(t)},e:function(){var t=this,u;t.a().positionResolver().hasUnregisterdPositions()&&t.a().positionResolver().completeRegisterPositions();t.d(new n.ig.List$1(n.ig.Number.prototype.$type,2,t.a().tuples().count()));for(var i=t.a().positionResolver().rootPositionInfo(),f=i.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==i.positionItemDepthMin()}),r=t.c(i,f).getEnumerator();r.moveNext();)u=r.current(),t.f(i,u)},b:function(){},c:function(){},f:function(t,i){var r=this,e=i.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==i.positionItemDepthMin()}),u,o,s,f,h;if(e.count$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type))>0)for(u=e.getEnumerator();u.moveNext();)o=u.current(),r.f(i,o);else r.d().add(i.positionIndex());for(s=r.b(t,i),f=s.getEnumerator();f.moveNext();)h=f.current(),r.f(t,h)},$type:new n.ig.Type("AxisTupleVisitor",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("AxisHeaderSortingVisitor","AxisTupleVisitor",{h:null,i:null,g:null,init:function(t,i,r,u){n.ig.AxisTupleVisitor.prototype.init.call(this,t);this.h=i;this.i=r;this.g=u},b:function(t,i){var f=this,r=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==i.key()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,u,e;return r.count()>0&&(o=r.item(0),function(){var n=f.h.tryGetValue(o.hierarchyLevelKey(),u);return u=n.value,n.ret}()&&(r=u.sortBehavior()==n.ig.LevelSortBehavior.prototype.system?u.sortDirection()==n.ig.ListSortDirection.prototype.ascending?r.orderBy$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),n.ig.Object.prototype.$type,function(n){return n.sortKey()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):r.orderByDescending$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),n.ig.Object.prototype.$type,function(n){return n.sortKey()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):u.sortDirection()==n.ig.ListSortDirection.prototype.ascending?r.orderBy$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),String,function(n){return n.caption()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):r.orderByDescending$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),String,function(n){return n.caption()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),f.i.select$2(n.ig.LevelSortDirection.prototype.$type,String,function(n){return n.levelUniqueName()}).contains$1(String,u.levelUniqueName())||f.i.add(u),function(){var n=f.g.tryGetValue(o.positionItemIndex(),e);return e=n.value,n.ret}()||(e=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type,0),f.g.add(i.positionItemIndex(),e)),e.item(i.positionItemDepth(),u.sortDirection()))),r},c:function(t,i){var e=this,r=i.toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),o,u,f;return r.count()>0&&(o=r.item(0),o.hierarchyLevelKey()!=null&&function(){var n=e.h.tryGetValue(o.hierarchyLevelKey(),u);return u=n.value,n.ret}()&&(r=u.sortBehavior()==n.ig.LevelSortBehavior.prototype.system?u.sortDirection()==n.ig.ListSortDirection.prototype.ascending?r.orderBy$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),n.ig.Object.prototype.$type,function(n){return n.sortKey()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):r.orderByDescending$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),n.ig.Object.prototype.$type,function(n){return n.sortKey()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):u.sortDirection()==n.ig.ListSortDirection.prototype.ascending?r.orderBy$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),String,function(n){return n.caption()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)):r.orderByDescending$2(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),String,function(n){return n.caption()}).toList$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),e.i.add(u),function(){var n=e.g.tryGetValue(o.positionItemIndex(),f);return f=n.value,n.ret}()||(f=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.ListSortDirection.prototype.$type,0),e.g.add(t.positionItemIndex(),f)),f.item(t.positionItemDepth(),u.sortDirection()))),r},$type:new n.ig.Type("AxisHeaderSortingVisitor",n.ig.AxisTupleVisitor.prototype.$type)},!0);n.ig.util.defType("ResultColumnValueSorter","ResultSorter$1",{f:null,_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},init:function(t,i,r,u){n.ig.ResultSorter$1.prototype.init.call(this,n.ig.AxisValueSortingVisitor.prototype.$type,t,i,r);this.f=u},b:function(){var t=this,o,r,p,w,u,e,b,s,l,k,d,ft;if(t.g(new n.ig.List$1(n.ig.TupleSortDirection.prototype.$type,0)),!t.d()||t.a().isEmpty())return t.a();var v=new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0),h=0,i=null,f=1;t.c()&&(i=t.a().axes().item(h),f=i.tuples().count(),v.add(i.clone()),h++);for(var c=t.a().axes().item(h),nt=t.a().axes().item(h).tuples().count(),y=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Object.prototype.$type,1,t.a().cells().count()),tt=t.a().cells().getEnumerator();tt.moveNext();)o=tt.current(),r=null,function(){var n=o.properties().tryGetValue("Value",r);return r=n.value,n.ret}()?y.item(o.cellOrdinal(),r):(function(){var n=o.properties().tryGetValue("FmtValue",r);return r=n.value,n.ret}(),y.item(o.cellOrdinal(),r));for(p=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(n.ig.TupleSortDirection.prototype.$type,n.ig.Array.prototype.$type),2,t.f.count()),w=t.f.getEnumerator();w.moveNext();)if(u=w.current(),i!=null&&u.memberNames()!=null?(i.positionResolver().hasUnregisterdPositions()&&i.positionResolver().completeRegisterPositions(),e=i.positionResolver().rootPositionInfo().getIndex(u.memberNames()),u.tupleIndex(e)):e=u.tupleIndex(),e>-1&&e<f){for(b=new Array(nt),s=0;s<nt;s++)l=null,function(){var n=y.tryGetValue(s*f+e,l);return l=n.value,n.ret}(),b[s]=l;p.add(new n.ig.KeyValuePair$2(n.ig.TupleSortDirection.prototype.$type,n.ig.Array.prototype.$type,1,u,b));t.g().add(u)}var it=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),et=new n.ig.AxisValueSortingVisitor(c,p),ot=t.e(et,c,it),st=function(){var t=new n.ig.OlapResultAxis(ot,c.tupleSize());return t.name(c.name()),t}();for(v.add(st),k=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,2,t.a().cells().count()),d=t.a().cells().getEnumerator();d.moveNext();){var ht=d.current(),g=ht.clone(),a=g.cellOrdinal(),rt=n.ig.intDivide(a,f),ut=it.item(rt);rt!=ut&&(ft=a%f,a=ut*f+ft);g.cellOrdinal(a);k.add(g)}return function(){var i=new n.ig.OlapResult;return i.isEmpty(t.a().isEmpty()),i.axes(v),i.cells(k),i}()},$type:new n.ig.Type("ResultColumnValueSorter",n.ig.ResultSorter$1.prototype.$type.specialize(n.ig.AxisValueSortingVisitor.prototype.$type))},!0);n.ig.util.defType("AxisValueSortingVisitor","AxisTupleVisitor",{g:null,init:function(t,i){n.ig.AxisTupleVisitor.prototype.init.call(this,t);this.g=i},b:function(t,i){var r=this,u=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==i.key()});return r.c(t,u)},c:function(t,i){var r=i.toArray$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type)),u,f;return r.length>0&&(u=this.g.toArray$1(n.ig.KeyValuePair$2.prototype.$type.specialize(n.ig.TupleSortDirection.prototype.$type,n.ig.Array.prototype.$type)),f=function(t){var i=function(n,t,i){var r=n(t,i);return r<0?-1:r>0?1:!isNaN(parseFloat(r))&&isFinite(r)?r:0};return function(r,u){for(var l,a,e,o,s,h=[],c=[],f=0;f<t.length;f++)l=t[f].key(),a=t[f].value(),e=l.sortDirection()===n.ig.ListSortDirection.prototype.ascending?1:-1,comparer=l.comparer(),o=a[r.positionIndex()],s=a[u.positionIndex()],t.length===1?(h=e*i(comparer,o,s),c=e*i(comparer,s,o)):(h.push(e*i(comparer,o,s)),c.push(e*i(comparer,s,o)));return h<c?-1:h>c?1:0}},r.sort(f(u))),r},$type:new n.ig.Type("AxisValueSortingVisitor",n.ig.AxisTupleVisitor.prototype.$type)},!0);n.ig.util.defType("TupleSortDirection","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_tupleIndex:0,tupleIndex:function(n){return arguments.length===1?(this._tupleIndex=n,n):this._tupleIndex},_memberNames:null,memberNames:function(n){return arguments.length===1?(this._memberNames=n,n):this._memberNames},_sortDirection:null,sortDirection:function(n){return arguments.length===1?(this._sortDirection=n,n):this._sortDirection},_comparer:null,comparer:function(n){return arguments.length===1?(this._comparer=n,n):this._comparer},$type:new n.ig.Type("TupleSortDirection",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DataSourceBase","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_dataSource:null,dataSource:function(n){return arguments.length===1?(this._dataSource=n,n):this._dataSource},isInitialized:function(){return this.dataSource().isInitialized()},_isModified:!1,isModified:function(n){return arguments.length===1?(this._isModified=n,n):this._isModified},_isUpdating:!1,isUpdating:function(n){return arguments.length===1?(this._isUpdating=n,n):this._isUpdating},initialize:function(){var t=this.dataSource().initialize().c(),i=this;return this._isInitializedAttached||(this._isInitializedAttached=!0,t.always(function(t){var r={error:null,metadataTreeRoot:null};this.state()==="rejected"?r.error=t:r.metadataTreeRoot=t;n(i).trigger("initialized",r);i._isInitializedAttached=!1})),t},cubes:function(){return this.dataSource().cubes().inner()},cube:function(){return this.dataSource().cube()},setCube:function(t){var i=this;return i.dataSource().setCube(t).j(n.ig.OlapMetadataTreeItem.prototype.$type,function(n){return n.m()}).c()},metadataTree:function(){return this.dataSource().metadataTree()},addRowItem:function(t){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null&&(this.dataSource().rowAxis().add(t),this.isModified(!0))},insertRowItem:function(t,i){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,i)!==null&&(this.dataSource().rowAxis().insert(t,i),this.isModified(!0))},removeRowItem:function(t){(n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null||n.ig.util.cast(n.ig.MeasureList.prototype.$type,t)!==null)&&(this.dataSource().rowAxis().remove(t),this.isModified(!0))},addColumnItem:function(t){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null&&(this.dataSource().columnAxis().add(t),this.isModified(!0))},insertColumnItem:function(t,i){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,i)!==null&&(this.dataSource().columnAxis().insert(t,i),this.isModified(!0))},removeColumnItem:function(t){(n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null||n.ig.util.cast(n.ig.MeasureList.prototype.$type,t)!==null)&&(this.dataSource().columnAxis().remove(t),this.isModified(!0))},addFilterItem:function(t){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null&&(this.dataSource().filters().add(t),this.isModified(!0))},insertFilterItem:function(t,i){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,i)!==null&&(this.dataSource().filters().insert(t,i),this.isModified(!0))},removeFilterItem:function(t){n.ig.util.cast(n.ig.Hierarchy.prototype.$type,t)!==null&&(this.dataSource().filters().remove(t),this.isModified(!0))},addMeasureItem:function(t){n.ig.util.cast(n.ig.Measure.prototype.$type,t)!==null&&(this.dataSource().measures().add(t),this.isModified(!0))},insertMeasureItem:function(t,i){n.ig.util.cast(n.ig.Measure.prototype.$type,i)!==null&&(this.dataSource().measures().insert(t,i),this.isModified(!0))},removeMeasureItem:function(t){n.ig.util.cast(n.ig.Measure.prototype.$type,t)!==null&&(this.dataSource().measures().remove(t),this.isModified(!0))},setMeasureListIndex:function(n){this.dataSource().measureListIndex(n);this.isModified(!0)},setMeasureListLocation:function(t){switch(t){case"rows":this.dataSource().measureListLocation(n.ig.MeasureListLocation.prototype.rows);break;case"columns":this.dataSource().measureListLocation(n.ig.MeasureListLocation.prototype.columns)}this.isModified(!0)},getMeasureListLocation:function(){switch(this.dataSource().measureListLocation()){case n.ig.MeasureListLocation.prototype.rows:return"rows";case n.ig.MeasureListLocation.prototype.columns:return"columns";default:return null}},expandTupleMember:function(n,t,i){this.dataSource().expandTupleMember(n,t,i)},collapseTupleMember:function(n,t,i){this.dataSource().collapseTupleMember(n,t,i)},rowAxis:function(){return this.dataSource().rowAxis().inner()},columnAxis:function(){return this.dataSource().columnAxis().inner()},filters:function(){return this.dataSource().filters().inner()},measures:function(){return this.dataSource().measures().inner()},result:function(){return this.dataSource().result()},bindCollectionChanged:function(t){var i=t,r=this.dataSource(),u=function(t,i){t.collectionChanged=n.ig.Delegate.prototype.combine(t.collectionChanged,i)};n.isFunction(i.filters)&&u(r._filters,i.filters);n.isFunction(i.rowAxis)&&u(r._rowAxis,i.rowAxis);n.isFunction(i.columnAxis)&&u(r._columnAxis,i.columnAxis);n.isFunction(i.measures)&&u(r._measures,i.measures)},unbindCollectionChanged:function(t){var i=t,r=this.dataSource();unbindCollectionChanged=function(t,i){t.collectionChanged=n.ig.Delegate.prototype.remove(t.collectionChanged,i)};n.isFunction(i.filters)&&unbindCollectionChanged(r._filters,i.filters);n.isFunction(i.rowAxis)&&unbindCollectionChanged(r._rowAxis,i.rowAxis);n.isFunction(i.columnAxis)&&unbindCollectionChanged(r._columnAxis,i.columnAxis);n.isFunction(i.measures)&&unbindCollectionChanged(r._measures,i.measures)},clearPendingChanges:function(){this.dataSource().clearPendingChanges()},update:function(){var i=this.dataSource().update().c(),t=this;return this.isUpdating()||(this.isUpdating(!0),i.always(function(i){var r={error:null,result:null};this.state()==="rejected"?r.error=i:r.result=i;t.isUpdating(!1);t.isModified(!1);n(t).trigger("updated",r)})),i},getCoreElement:function(n,t){return this.dataSource().getCoreElement(n,t)},getCoreElements:function(n,t){return this.dataSource().getCoreElements(n,t).inner()},getMembersOfHierarchy:function(n){return this.dataSource().getMembersOfHierarchy(n).c()},getMembersOfLevel:function(n){return this.dataSource().getMembersOfLevel(n).c()},tryGetMember:function(n){var i=this,t;return function(){var r=i.dataSource().tryGetMember(n,t);return t=r.member,r.ret}()?t:null},tryGetMembersForLevel:function(t){var r=this,i=new n.ig.ArrayListCollection$1(n.ig.Member.prototype.$type),u=function(){var n=r.dataSource().tryGetMembersForLevel(t,i);return i=n.members,n.ret}();return u?i.inner():new n.ig.ArrayListCollection$1(n.ig.Member.prototype.$type).inner()},getMembersOfMember:function(n){return this.dataSource().getMembersOfMember(n).c()},addFilterMember:function(n,t){this.dataSource().addFilterMember(n,t);this.isModified(!0)},removeAllFilterMembers:function(n){this.dataSource().removeAllFilterMembers(n);this.isModified(!0)},getFilterMemberNames:function(n){return this.dataSource().getFilterMemberNames(n).inner()},getDimension:function(t){var i=this;return i.dataSource().getCoreElement(function(n){return n.uniqueName()==t},n.ig.Dimension.prototype.$type)},getHierarchy:function(t){var i=this;return i.dataSource().getCoreElement(function(n){return n.uniqueName()==t},n.ig.Hierarchy.prototype.$type)},getLevel:function(t){var i=this;return i.dataSource().getCoreElement(function(n){return n.uniqueName()==t},n.ig.Level.prototype.$type)},getMeasure:function(t){var i=this;return i.dataSource().getCoreElement(function(n){return n.uniqueName()==t},n.ig.Measure.prototype.$type)},getMeasureList:function(){return this.dataSource().getCoreElement(null,n.ig.MeasureList.prototype.$type)},$type:new n.ig.Type("DataSourceBase",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("jQueryUtils","Object",{init:function(){n.ig.Object.prototype.init.call(this)},c:function(t,i){if(i==null)return null;var u=i,r=new n.ig.Dictionary$2(String,t,0);return function(t,i){for(var u=n.ig.Dictionary.prototype.getDictionary(t),f=u.keys(),r,e;f.moveNext();)r=f.current(),e=u.item(r),i.add(r,e)}(u,r),r},i:function(n,t){if(t==null)return null;var i=t;return i.__inner.proxy},convertToObjectDictionary:function(t){return n.ig.jQueryUtils.prototype.c(n.ig.Object.prototype.$type,t)},convertToStringDictionary:function(t){return n.ig.jQueryUtils.prototype.c(String,t)},convertFromObjectDictionary:function(t){return n.ig.jQueryUtils.prototype.i(n.ig.Object.prototype.$type,t)},convertFromStringDictionary:function(t){return n.ig.jQueryUtils.prototype.i(String,t)},createJavascriptObject:function(){return{}},getJavascriptObjectProperty:function(n,t){var i=n,r=t;return i[r]},setJavascriptObjectProperty:function(n,t,i){var r=n,u=t,f=i;r[u]=f},getJavascriptObjectMethodResult:function(n,t,i){i=Array.prototype.slice.call(arguments,2);var r=n,u=t,f=i;return r[u].call(r,f)},$type:new n.ig.Type("jQueryUtils",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapUtilities","Object",{init:function(){n.ig.Object.prototype.init.call(this)},dateMemberProvider:function(t,i,r,u){if(String.isNullOrEmpty(t)||String.isNullOrEmpty(i))return null;var o=i,f=u,e=r,s,h,c,l;t=t.toLowerCase();switch(t){case"year":return(f==null&&(f="yyyy"),e==null)?function(t){return n.ig.formatter(new Date(t[o]),"date",f)}:function(t){return e.replace("{0}",n.ig.formatter(new Date(t[o]),"date",f))};case"semester":return e==null&&(e="H{0}"),s=n.ig.OlapUtilities.prototype.dateMemberProvider("year",i,null,null),function(n){var t=s(n);return e.replace("{0}",Math.floor(new Date(n[o]).getMonth()/6)+1).replace("{1}",t)};case"quarter":return e==null&&(e="Q{0}"),s=n.ig.OlapUtilities.prototype.dateMemberProvider("year",i,null,null),h=n.ig.OlapUtilities.prototype.dateMemberProvider("semester",i,null,null),function(n){var t=s(n),i=h(n);return e.replace("{0}",Math.floor(new Date(n[o]).getMonth()/3)+1).replace("{1}",i).replace("{2}",t)};case"month":return(f==null&&(f="MMMM"),e==null)?function(t){return n.ig.formatter(new Date(t[o]),"date",f)}:(s=n.ig.OlapUtilities.prototype.dateMemberProvider("year",i,null,null),h=n.ig.OlapUtilities.prototype.dateMemberProvider("semester",i,null,null),c=n.ig.OlapUtilities.prototype.dateMemberProvider("quarter",i,null,null),function(t){var i=s(t),r=h(t),u=c(t);return e.replace("{0}",n.ig.formatter(new Date(t[o]),"date",f)).replace("{1}",u).replace("{2}",r).replace("{3}",i)});case"date":return(f==null&&(f="MM/dd/yyyy"),e==null)?function(t){return n.ig.formatter(new Date(t[o]),"date",f)}:(s=n.ig.OlapUtilities.prototype.dateMemberProvider("year",i,null,null),h=n.ig.OlapUtilities.prototype.dateMemberProvider("semester",i,null,null),c=n.ig.OlapUtilities.prototype.dateMemberProvider("quarter",i,null,null),l=n.ig.OlapUtilities.prototype.dateMemberProvider("month",i,null,null),function(t){var i=s(t),r=h(t),u=c(t),a=l(t);return e.replace("{0}",n.ig.formatter(new Date(t[o]),"date",f)).replace("{1}",a).replace("{2}",u).replace("{3}",r).replace("{4}",i)})}return null},getDateHierarchy:function(t,i,r,u,f,e){var g=this,s,c,p,a,l,w,v,y,o;if(String.isNullOrEmpty(t))return null;if(i==null||i.length==0)i=function(){var n=[];return n.add("year"),n.add("quarter"),n.add("month"),n.add("date"),n}();else for(s=0;s<i.length;s++)i[s]=i[s].toLowerCase();r==null&&(r="Dates");u==null&&(u=r);var b=r,k=u,h=e,d=i;if(f==null)for(f=new Array(i.length),c=0;c<f.length;c++)o=i[c],f[c]=o.substr(0,1).toUpperCase()+o.substr(1,o.length)+"s";for(p=f,a=new Array(i.length),l=0;l<i.length;l++)w=i[l],a[l]=n.ig.OlapUtilities.prototype.dateMemberProvider(w,t,null,null);for(v=[],y=0,h!=null&&h!=""&&(y=1,v[0]={name:h,caption:h,memberProvider:function(){return h}}),o=0;o<a.length;o++)v[o+y]={name:d[o],caption:p[o],memberProvider:a[o]};return{name:b,caption:k,levels:v}},sumAggregator:function(n,t){var r=n,i=t;return function(n){for(var u=0,e=!0,t,f=0;f<n.length;f++)t=n[f][r],t!==null&&t!==undefined&&(e=!1,u+=t);return e?null:i!=null?u.toFixed(i):u}},avgAggregator:function(n,t){var r=n,i=t;return function(n){var u;i==null&&(i=2);var f=0,e=0,o=!0,t;for(u=0;u<n.length;u++)t=n[u][r],t!==null&&t!==undefined&&(o=!1,f+=t,e++);return o?null:(f/e).toFixed(i)}},minAggregator:function(n){var t=n;return function(n){for(var i=n[0][t],r=1;r<n.length;r++)i=Math.min(i,n[r][t]);return i}},maxAggregator:function(n){var t=n;return function(n){for(var i=n[0][t],r=1;r<n.length;r++)i=Math.max(i,n[r][t]);return i}},countAggregator:function(){return function(n){return n.length}},$type:new n.ig.Type("OlapUtilities",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("OlapTableView","Object",{a:null,init:function(t,i,r,u){n.ig.Object.prototype.init.call(this);var f=this.b(u);this.a=new n.ig.TableViewImpl(t,i,r,f)},rowHeaders:function(){return this.a.rowHeaders()==null?null:this.a.rowHeaders().inner()},columnHeaders:function(){return this.a.columnHeaders()==null?null:this.a.columnHeaders().inner()},resultCells:function(){return this.a.resultCells()==null?null:this.a.resultCells().inner()},columnSortDirections:function(t){var u,t,i,r;if(arguments.length===1){for(this.a.columnSortDirections().clear(),i=t.getEnumerator();i.moveNext();)r=i.current(),u=this.d(r),this.a.columnSortDirections().add(u);return t}for(t=new n.ig.Array,i=this.a.columnSortDirections().getEnumerator();i.moveNext();)r=i.current(),t.add(this.n(r));return t},appliedColumnSortDirections:function(){for(var t=new n.ig.Array,i=this.a.appliedColumnSortDirections().getEnumerator(),r;i.moveNext();)r=i.current(),t.add(this.n(r));return t},levelSortDirections:function(t){var u,t,i,r;if(arguments.length===1){for(this.a.levelSortDirections().clear(),i=t.getEnumerator();i.moveNext();)r=i.current(),u=this.c(r),this.a.levelSortDirections().add(u);return t}for(t=new n.ig.Array,i=this.a.levelSortDirections().getEnumerator();i.moveNext();)r=i.current(),t.add(this.m(r));return t},appliedLevelSortDirections:function(){for(var t=new n.ig.Array,i=this.a.appliedLevelSortDirections().getEnumerator(),r;i.moveNext();)r=i.current(),t.add(this.m(r));return t},appliedSortDirectionsMap:function(){for(var i=n.ig.jQueryUtils.prototype.createJavascriptObject(),r=this.a.appliedSortDirectionsMap().getEnumerator(),t,c;r.moveNext();){for(var u=r.current(),f=n.ig.jQueryUtils.prototype.createJavascriptObject(),e=u.value().getEnumerator();e.moveNext();){for(var o=e.current(),s=n.ig.jQueryUtils.prototype.createJavascriptObject(),h=o.value().getEnumerator();h.moveNext();)t=h.current(),c=t.value()==n.ig.ListSortDirection.prototype.ascending?"ascending":"descending",s[t.key()]=c;f[o.key()]=s}i[u.key()]=f}return i},initialize:function(){this.a.initialize()},b:function(t){var e=this,i=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"isParentInFrontForColumns"),r=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"isParentInFrontForRows"),u=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"compactColumnHeaders"),f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"compactRowHeaders");return function(){var t=new n.ig.TableViewSettings;return t.c(i),t.d(r),t.a(u),t.b(f),t}()},d:function(t){var o=this,f=n.ig.util.cast(n.ig.Array.prototype.$type,n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"memberNames")),e=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"tupleIndex"),i=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"sortDirection"),u=n.ig.ListSortDirection.prototype.ascending,r;return String.isNullOrEmpty(i)||(i=i.toLowerCase(),i=="descending"&&(u=n.ig.ListSortDirection.prototype.descending)),r=null,r=n.isFunction(t.comparer)?t.comparer:function(n,t){return parseFloat(n||-Infinity)-parseFloat(t||-Infinity)},function(){var t=new n.ig.TupleSortDirection;return t.memberNames(f),t.tupleIndex(e),t.sortDirection(u),t.comparer(r),t}()},n:function(t){var i=n.ig.jQueryUtils.prototype.createJavascriptObject();return n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"memberNames",t.memberNames()),n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"tupleIndex",t.tupleIndex()),n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"sortDirection",t.sortDirection()==n.ig.ListSortDirection.prototype.ascending?"ascending":"descending"),t.comparer()!=null&&n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"comparer",t.comparer()),i},c:function(t){var f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"levelUniqueName"),r=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"sortDirection"),u=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"sortBehavior"),i;return String.isNullOrEmpty(f)?null:(i=new n.ig.LevelSortDirection,i.sortDirection(n.ig.ListSortDirection.prototype.ascending),i.sortBehavior(n.ig.LevelSortBehavior.prototype.system),i.levelUniqueName(f),String.isNullOrEmpty(r)||(r=r.toLowerCase(),r=="descending"&&i.sortDirection(n.ig.ListSortDirection.prototype.descending)),String.isNullOrEmpty(u)||(u=u.toLowerCase(),u=="alphabetical"&&i.sortBehavior(n.ig.LevelSortBehavior.prototype.alphabetical)),i)},m:function(t){var i=n.ig.jQueryUtils.prototype.createJavascriptObject();return n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"levelUniqueName",t.levelUniqueName()),n.ig.jQueryUtils.prototype.setJavascriptObjectProperty(i,"sortDirection",t.sortDirection()==n.ig.ListSortDirection.prototype.ascending?"ascending":"descending"),i},$type:new n.ig.Type("OlapTableView",n.ig.Object.prototype.$type)},!0);n.ig.LevelSortBehavior.prototype.alphabetical=0;n.ig.LevelSortBehavior.prototype.system=1;n.ig.OlapMetadataTreeItemType.prototype.cube=0;n.ig.OlapMetadataTreeItemType.prototype.dimension=1;n.ig.OlapMetadataTreeItemType.prototype.group=2;n.ig.OlapMetadataTreeItemType.prototype.userDefinedHierarchy=3;n.ig.OlapMetadataTreeItemType.prototype.systemEnabledHierarchy=4;n.ig.OlapMetadataTreeItemType.prototype.parentChildHierarchy=5;n.ig.OlapMetadataTreeItemType.prototype.measure=6;n.ig.OlapMetadataTreeItemType.prototype.level1=7;n.ig.OlapMetadataTreeItemType.prototype.level2=8;n.ig.OlapMetadataTreeItemType.prototype.level3=9;n.ig.OlapMetadataTreeItemType.prototype.level4=10;n.ig.OlapMetadataTreeItemType.prototype.level5=11;n.ig.OlapMetadataTreeItemType.prototype.kpiRoot=12;n.ig.OlapMetadataTreeItemType.prototype.kpi=13;n.ig.OlapMetadataTreeItemType.prototype.kpiValue=14;n.ig.OlapMetadataTreeItemType.prototype.kpiGoal=15;n.ig.OlapMetadataTreeItemType.prototype.kpiStatus=16;n.ig.OlapMetadataTreeItemType.prototype.kpiTrend=17;n.ig.OlapMetadataTreeItemType.prototype.kpiWeight=18;n.ig.MeasureListLocation.prototype.rows=0;n.ig.MeasureListLocation.prototype.columns=1;n.ig.HeaderCellsLayoutOrientation.prototype.horizontal=0;n.ig.HeaderCellsLayoutOrientation.prototype.vertical=1;n.ig.MemberType.prototype.unknown=0;n.ig.MemberType.prototype.regular=1;n.ig.MemberType.prototype.all=2;n.ig.MemberType.prototype.measure=3;n.ig.MemberType.prototype.formula=4;n.ig.CardinalityType.prototype.one=0;n.ig.CardinalityType.prototype.many=1;n.ig.AggregatorType.prototype.unknown=0;n.ig.AggregatorType.prototype.sum=1;n.ig.AggregatorType.prototype.count=2;n.ig.AggregatorType.prototype.min=3;n.ig.AggregatorType.prototype.max=4;n.ig.AggregatorType.prototype.average=5;n.ig.AggregatorType.prototype.variance=6;n.ig.AggregatorType.prototype.std=7;n.ig.AggregatorType.prototype.distinctCount=8;n.ig.AggregatorType.prototype.none=9;n.ig.AggregatorType.prototype.averageOfChildren=10;n.ig.AggregatorType.prototype.firstNonEmpty=13;n.ig.AggregatorType.prototype.lastNonEmpty=14;n.ig.AggregatorType.prototype.byAccount=15;n.ig.AggregatorType.prototype.calculated=127;n.ig.HierarchyOrigin.prototype.userDefined=1;n.ig.HierarchyOrigin.prototype.systemEnabled=2;n.ig.HierarchyOrigin.prototype.systemInternal=4;n.ig.DimensionType.prototype.unknown=0;n.ig.DimensionType.prototype.time=1;n.ig.DimensionType.prototype.measure=2;n.ig.DimensionType.prototype.other=3;n.ig.DimensionType.prototype.quantitative=5;n.ig.DimensionType.prototype.accounts=6;n.ig.DimensionType.prototype.customers=7;n.ig.DimensionType.prototype.products=8;n.ig.DimensionType.prototype.scenario=9;n.ig.DimensionType.prototype.utility=10;n.ig.DimensionType.prototype.currency=11;n.ig.DimensionType.prototype.rates=12;n.ig.DimensionType.prototype.channel=13;n.ig.DimensionType.prototype.promotion=14;n.ig.DimensionType.prototype.organization=15;n.ig.DimensionType.prototype.billOfMaterials=16;n.ig.DimensionType.prototype.geography=17;n.ig.CubeType.prototype.cube=0;n.ig.CubeType.prototype.dimension=1;n.ig.CubeType.prototype.unknown=2;n.ig.AxisDefinitionParser.prototype.e="[";n.ig.AxisDefinitionParser.prototype.f="]";n.ig.AxisDefinitionParser.prototype.i="{";n.ig.AxisDefinitionParser.prototype.j="}";n.ig.AxisDefinitionParser.prototype.h=",";n.ig.CoreOlapElementParser.prototype.d="[";n.ig.CoreOlapElementParser.prototype.e="]";n.ig.CoreOlapElementParser.prototype.g=".";n.ig.CoreOlapElementParser.prototype.i="&";n.ig.util.extCopy(n.ig.TaskExtensions,[[[n.ig.Task,n.ig.Task$1],["continueWithTask$1","continueWithTask$2"]]]);n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ArrayListCollection$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ArrayListCollection$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ArrayListCollection$1],["ofType$1","cast$1"]]])}(jQuery),$.ig=$.ig||{},function(n){n.ig.$currDefinitions={};n.ig.util.bulkDefine(["IFlatDataAxisProvider:a","OlapResultAxis:b","Object:c","Type:d","Boolean:e","ValueType:f","Void:g","String:h","IComparable:i","Number:j","Number:k","Single:l","Number:m","String:n","Array:o","RegExp:p","RuntimeTypeHandle:q","MethodInfo:r","MethodBase:s","MemberInfo:t","ParameterInfo:u","TypeCode:v","Enum:w","ConstructorInfo:x","PositionResolver$2:y","List$1:z","IList$1:aa","ICollection$1:ab","IEnumerable$1:ac","IEnumerable:ad","IEnumerator:ae","IEnumerator$1:af","IArrayList:ag","Array:ah","ICollection:ai","CompareCallback:aj","MulticastDelegate:ak","IntPtr:al","IList:am","IDisposable:an","IArray:ao","Script:ap","Date:aq","Date:ar","Number:as","Func$3:at","Action$1:au","PositionItemInfo$2:av","Dictionary$2:aw","IDictionary$2:ax","IDictionary:ay","Dictionary:az","IEqualityComparer$1:a0","KeyValuePair$2:a1","NotImplementedException:a2","Error:a3","IHierarchicalPositionItem$2:a4","IPositionItem$2:a5","IPosition$2:a6","Math:a7","Number:a8","Number:a9","Number:ba","Number:bb","Number:bc","Number:bd","Number:be","Enumerable:bf","Func$2:bg","IOrderedEnumerable$1:bh","SortedList$1:bi","ArgumentNullException:bj","EventHandler$1:bk","Delegate:bl","ListSortDirection:bm","Nullable$1:bn","OlapResultTuple:bo","ReadOnlyCollection$1:bp","OlapResultAxisMember:bq","Task$1:br","Task:bs","JQueryPromise:bt","Action:bu","AggregateException:bv","TaskStatus:bw","TaskCompletionSource$1:bx","JQueryDeferred:by","JQuery:bz","JQueryObject:b0","Element:b1","ElementAttributeCollection:b2","ElementCollection:b3","WebStyle:b4","ElementNodeType:b5","Document:b6","EventListener:b7","IElementEventHandler:b8","ElementEventHandler:b9","ElementAttribute:ca","JQueryPosition:cb","JQueryCallback:cc","JQueryEvent:cd","JQueryUICallback:ce","FlatDataAxisProvider:cf","FlatDataProvider:cg","IFlatDataProvider:ch","IOlapDiscoverDataProvider:ci","TableMetadata:cj","RowMetadata:ck","DataSourceMetadata:cl","CubeMetadata:cm","MeasuresDimensionMetadata:cn","ArrayListCollection$1:co","INotifyCollectionChanged:cp","NotifyCollectionChangedEventHandler:cq","NotifyCollectionChangedEventArgs:cr","EventArgs:cs","NotifyCollectionChangedAction:ct","KeyValueItem:cu","Level:cv","ICoreOlapElement:cw","InvalidOperationException:cx","Hierarchy:cy","HierarchyOrigin:cz","Member:c0","MemberType:c1","TaskFactory:c2","OlapResult:c3","AxisElement:c4","DataMemberMetadata:c5","Measure:c6","AggregatorType:c7","CellMetadata:c8","OlapResultCell:c9","KeyListPair$1:da","Cube:db","CubeType:dc","MeasureMetadata:dd","Dimension:de","DimensionType:df","DimensionMetadata:dg","HierarchyMetadata:dh","LevelMetadata:di","FlatDataAxisProviderHelper:dj","CubeMetaItemsCache:dk","MeasureGroupMetaItemsCache:dl","MeasureGroupDimension:dm","CardinalityType:dn","Kpi:dp","Tuple$2:dq","KpiMeasure:dr","MeasureList:ds","FlatDataPartialAxisProvider:dt","FlatDataSourceImpl:du","OlapDataSource:dv","IOlapDataSource:dw","OlapMetadataTreeItem:dx","OlapMetadataTreeItemType:dy","MeasureListLocation:dz","MeasureGroup:d0","DataSourceBaseOptions:d1","IOlapDataProviderFactory:d2","OlapResultView:d3","NotSupportedException:d4","PositionInfo:d5","TaskExtensions:d6","AxisDefinitionParser:d7","Debug:d8","MetaTreeHelper:d9","HierarchyItemPosition:ea","KpiDimension:eb","FlatDataSourceOptions:ec","IFlatDataProviderFactory:ed","DefaultFlatDataProviderFactory:ee","ResultViewHelper:ef","CoreOlapElementParser:eg","ArgumentException:eh","OlapFlatDataSource:ei","DataSourceBase:ej","jQueryUtils:ek","AbstractEnumerable:em","Func$1:en","AbstractEnumerator:eo","GenericEnumerable$1:ep","GenericEnumerator$1:eq"]);n.ig.util.defType("IFlatDataAxisProvider","Object",{$type:new n.ig.Type("IFlatDataAxisProvider",null)},!0);n.ig.util.defType("FlatDataAxisProvider","Object",{h:null,c:null,a:null,init:function(t,i,r){var u=this;this.i=null;this.b=null;this.f=!1;this.g=!1;n.ig.Object.prototype.init.call(this);this.a=r;this.d(t);this.h=i.select$2(n.ig.ICoreOlapElement.prototype.$type,n.ig.ICoreOlapElement.prototype.$type,function(n){return n}).toList$1(n.ig.ICoreOlapElement.prototype.$type);this.c=new n.ig.FlatDataAxisProviderHelper(t,i.count(),r)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_axis:null,axis:function(n){return arguments.length===1?(this._axis=n,n):this._axis},e:function(){return this.c.c()},i:null,b:null,f:!1,g:!1,n:function(t){var i=this;i.axis()!=null?(i.b=i.axis(),i.i=t.select$2(n.ig.ICoreOlapElement.prototype.$type,n.ig.ICoreOlapElement.prototype.$type,function(n){return n}).toList$1(n.ig.ICoreOlapElement.prototype.$type),i.f=!0):(i.c=new n.ig.FlatDataAxisProviderHelper(i.d(),t.count(),i.a),i.h=t)},o:function(){this.axis()!=null&&(this.g=!0)},j:function(t){var i=this,s,v,e,u,h,c,l,o,r,a,w,b;i.f=!1;var y=i.i,k=i.b,p=new n.ig.TaskCompletionSource$1(n.ig.OlapResultAxis.prototype.$type,0),f=new n.ig.List$1(String,0);for(s=0;s<i.h.count();s++){if(v=i.h.item(s),n.ig.util.cast(n.ig.MeasureList.prototype.$type,v)!==null){f.add(i.d().d().a().b().c());continue}f.add(v.uniqueName())}for(i.h=y,e=new n.ig.List$1(String,0),u=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(String,n.ig.Number.prototype.$type),0),h=0;h<i.h.count();h++){if(c=i.h.item(h),n.ig.util.cast(n.ig.MeasureList.prototype.$type,c)!==null){e.add(i.d().d().a().b().c());continue}e.add(c.uniqueName());u.add(new n.ig.KeyValuePair$2(String,n.ig.Number.prototype.$type,1,c.uniqueName(),0))}if(l=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(String,n.ig.Number.prototype.$type),0),f.count()>0){for(o=-1,r=0;r<e.count();r++){if(r==f.count()||f.item(r)!=e.item(r))break;o=r}if(o<u.count()-1)for(a=o+1;a<u.count();a++)l.add(u.item(a));else l=u;return w=new Array(i.h.count()),b=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),i.c.l(l).i(function(n){return i.p(o,y,w,n.m(),b,k.name(),p,!0)}),p.b()}return i.generateAxis(t)},generateAxis:function(t){var i=this,u,r,f,e,o,a,v;if(i.g||i.f)return u=null,i.g&&(u=i.k(t)),i.f&&(u=i.j(t)),u;if(r=new n.ig.TaskCompletionSource$1(n.ig.OlapResultAxis.prototype.$type,0),i.axis()!=null)return r.e(i.axis()),r.b();var y=new Array(i.h.count()),s=new n.ig.List$1(String,0),h=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),c=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(String,n.ig.Number.prototype.$type),0),l=i.h;for(f=0;f<i.h.count();f++){if(e=i.h.item(f),n.ig.util.cast(n.ig.MeasureList.prototype.$type,e)!==null){s.add(i.d().d().a().b().c());continue}s.add(e.uniqueName());c.add(new n.ig.KeyValuePair$2(String,n.ig.Number.prototype.$type,1,e.uniqueName(),0))}return o=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(String,n.ig.Number.prototype.$type),0),a=i.d().e().d(),o=c,v=i.c.l(o),v.i(function(u){i.c.n(l,0,y,u.m(),a,null,h);i.axis(function(){var i=new n.ig.OlapResultAxis(h,l.count());return i.name(t),i}());r.e(i.axis())}),r.b()},p:function(t,i,r,u,f,e,o,s){var h=this,c=h.e(),l;s&&(h.c=new n.ig.FlatDataAxisProviderHelper(h.d(),i.count(),h.a));t>-1&&c.rootPositionInfo().count()>0?h.c.o(i,t,c.rootPositionInfo(),r,u,f):(l=h.d().e().d().where$1(n.ig.RowMetadata.prototype.$type,function(n){return!n.a()}).toList$1(n.ig.RowMetadata.prototype.$type),h.c.n(i,0,r,u,l,null,f));h.axis(function(){var t=new n.ig.OlapResultAxis(f,i.count());return t.name(e),t}());o.e(h.axis())},l:function(t){var i,r;if(this.axis()==null)throw new n.ig.InvalidOperationException(0);for(i=t.getEnumerator();i.moveNext();)r=i.current(),this.c.d(r.key(),r.value())},m:function(t){for(var r=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(n.ig.OlapResultTuple.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.RowMetadata.prototype.$type)),0),u=t.e().getEnumerator(),i,f;u.moveNext();)i=u.current(),f=t.getTupleRowsMetadata(i),r.add(new n.ig.KeyValuePair$2(n.ig.OlapResultTuple.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.RowMetadata.prototype.$type),1,i,f));this.l(r)},k:function(t){var i=this,u,r,o,l,s,f,h;i.g=!1;var c=new n.ig.TaskCompletionSource$1(n.ig.OlapResultAxis.prototype.$type,0),e=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(n.ig.OlapResultTuple.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.RowMetadata.prototype.$type)),0),a=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0);for(u=0;u<i.c.c().positions().count();u++)r=i.c.c().positions().__inner[u],o=i.d().u(r.members().toArray$1(n.ig.OlapResultAxisMember.prototype.$type),r.itemsCount()).where$1(n.ig.RowMetadata.prototype.$type,function(n){return!n.a()}).toList$1(n.ig.RowMetadata.prototype.$type),o.count()>0&&a.add(r),e.add(new n.ig.KeyValuePair$2(n.ig.OlapResultTuple.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.RowMetadata.prototype.$type),1,r,o));for(e.count()>0&&i.l(e),l=new Array(i.h.count()),s=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(String,n.ig.Number.prototype.$type),0),f=0;f<i.h.count();f++)(h=i.h.item(f),n.ig.util.cast(n.ig.MeasureList.prototype.$type,h)===null)&&s.add(new n.ig.KeyValuePair$2(String,n.ig.Number.prototype.$type,1,h.uniqueName(),0));return i.c.l(s).i(function(r){return i.p(i.h.count()-1,i.h,l,r.m(),new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),t,c,!1)}),c.b()},getTupleRowsMetadata:function(n){return this.c.i(n)},$type:new n.ig.Type("FlatDataAxisProvider",n.ig.Object.prototype.$type,[n.ig.IFlatDataAxisProvider.prototype.$type])},!0);n.ig.util.defType("FlatDataAxisProviderHelper","Object",{a:null,e:null,_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},init:function(t,i,r){n.ig.Object.prototype.init.call(this);this.a=r;this.b(t);this.e=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.IList$1.prototype.$type.specialize(n.ig.RowMetadata.prototype.$type),0);this.c(new n.ig.PositionResolver$2(String,n.ig.Object.prototype.$type,new n.ig.List$1(n.ig.IPosition$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),0),i));this.h(this.c().positions())},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},i:function(n){var i=this,t=null,r=i.c().getPositionIndex(n);return r>-1&&function(){var n=i.e.tryGetValue(r,t);return t=n.value,n.ret}(),t},d:function(n,t){var i=this.c().getPositionIndex(n);return i==-1?(this.e.add(this.h().count(),t),this.h().add(n),!0):(this.e.item(i,t),!1)},o:function(t,i,r,u,f,e){for(var h=this,l=r.positionItemDepthMin(),c=r.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.positionItemDepth()==l}).getEnumerator(),o;c.moveNext();)if(o=c.current(),o.positionItemIndex()==i||o.count()==0)o.count()==0&&(i=o.positionItemIndex()),h.m(r,o,u,t,i,f,e);else{var a=o.positionItem(),v=a.clone(),s=new Array(t.count());n.ig.Array.prototype.copy(u,0,s,0,t.count());s[o.positionItemIndex()]=v;h.o(t,i,o,s,f,e)}},m:function(t,i,r,u,f,e,o){var s=this,k=i.positionItem(),d=k.clone(),h=new Array(u.count()),l,a,w,v,b;if(n.ig.Array.prototype.copy(r,0,h,0,u.count()),h[i.positionItemIndex()]=d,l=s.b().u(h,i.positionItemIndex()+1).toList$1(n.ig.RowMetadata.prototype.$type),l.count()>0){if(f<u.count()-1)s.n(u,f+1,h,e,l,null,o);else{var c=new n.ig.OlapResultTuple(h),y=l.where$1(n.ig.RowMetadata.prototype.$type,function(n){return!n.a()}).toList$1(n.ig.RowMetadata.prototype.$type),p=s.c().getPositionIndex(c);for(p==-1?(s.e.add(s.h().count(),y),s.h().add(c)):s.h().item(p,c),a=0;a<h.length;a++)w=h[a],w.position(c);y.count()>0&&o.add(c)}if(i.isExpanded())for(v=t.values().where$1(n.ig.PositionItemInfo$2.prototype.$type.specialize(String,n.ig.Object.prototype.$type),function(n){return n.parentKey()==i.key()}).getEnumerator();v.moveNext();)b=v.current(),s.m(t,b,r,u,f,e,o)}},n:function(t,i,r,u,f,e,o){var s=this,w=t.item(i),b,tt,h,k,d,l,c,g,et,ot,it,rt,a,v,st,nt,lt;if(n.ig.util.cast(n.ig.Hierarchy.prototype.$type,w)!==null){for(b=u.item(w.uniqueName()),e!=null&&(b=b.where$1(n.ig.Member.prototype.$type,function(n){return n.parentUniqueName()==e})),tt=b.getEnumerator();tt.moveNext();)if(h=tt.current(),function(){var n=s.b().i(h.uniqueName(),k);return k=n.memberId,n.ret}(),d=f.where$1(n.ig.RowMetadata.prototype.$type,function(n){return n.d(h.levelUniqueName())==k}).toList$1(n.ig.RowMetadata.prototype.$type),d.count()>0)if(l=new Array(t.count()),n.ig.Array.prototype.copy(r,0,l,0,t.count()),c=new n.ig.OlapResultAxisMember,c.caption(h.caption()),c.hierarchyUniqueName(h.hierarchyUniqueName()),c.levelNumber(h.levelDepth()),c.levelUniqueName(h.levelUniqueName()),c.uniqueName(h.uniqueName()),c.displayInfo(h.childrenCardinality()),c.properties().add("PARENT_UNIQUE_NAME",h.parentUniqueName()),c.properties().add("memberId",k.toString()),l[i]=c,i==t.count()-1){var ut=d.where$1(n.ig.RowMetadata.prototype.$type,function(n){return!n.a()}).toList$1(n.ig.RowMetadata.prototype.$type),y=new n.ig.OlapResultTuple(l),ft=s.c().getPositionIndex(y);for(ft==-1?(s.e.add(s.h().count(),ut),s.h().add(y)):s.h().item(ft,y),g=0;g<l.length;g++)et=l[g],et.position(y);ut.count()>0&&o.add(y)}else s.n(t,i+1,l,u,d,null,o)}else if(n.ig.util.cast(n.ig.MeasureList.prototype.$type,w)!==null)for(ot=w,it=ot.measures().getEnumerator();it.moveNext();)if(rt=it.current(),a=new Array(t.count()),n.ig.Array.prototype.copy(r,0,a,0,t.count()),v=new n.ig.OlapResultAxisMember,v.caption(rt.caption()),st=s.j(s.b().d().a().b().c()),v.hierarchyUniqueName(st),v.levelNumber(0),v.uniqueName(rt.uniqueName()),a[i]=v,i==t.count()-1){var p=new n.ig.OlapResultTuple(a),ht=f.where$1(n.ig.RowMetadata.prototype.$type,function(n){return!n.a()}).toList$1(n.ig.RowMetadata.prototype.$type),ct=s.c().getPositionIndex(p);for(ct==-1?(s.e.add(s.h().count(),ht),s.h().add(p)):s.h().item(ct,p),nt=0;nt<a.length;nt++)lt=a[nt],lt.position(p);ht.count()>0&&o.add(p)}else s.n(t,i+1,a,u,f,null,o)},l:function(t){var e=this,o=e.a,u,r,i;if(t.count()==0)return u=new n.ig.TaskCompletionSource$1(n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type)),0),u.e(new n.ig.Dictionary$2(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type),0)),u.b();for(r=new n.ig.Dictionary$2(String,n.ig.Level.prototype.$type,0),i=0;i<t.count();i++){var f=t.item(i).key(),s=t.item(i).value(),h=o.x().where$1(n.ig.Level.prototype.$type,function(n){return n.hierarchyUniqueName()==f&&n.depth()==s}).firstOrDefault$1(n.ig.Level.prototype.$type);r.containsKey(f)||r.add(f,h)}return e.k(r)},j:function(n){return n.substr(0,1)!="["&&(n="["+n),n.substr(n.length-1,1)!="]"&&(n+="]"),n},k:function(t){for(var u=this,c=u.a,f=new n.ig.Dictionary$2(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type),0),i=new n.ig.List$1(String,0),l=t.getEnumerator(),r,e,o,s,p,h,w,b;l.moveNext();)r=l.current(),e=r.value().uniqueName(),c.c(e)&&function(){var n=c.j(e,o);return o=n.members,n.ret}()?f.add(r.key(),o):i.add(r.key());if(i.count()==0)return s=new n.ig.TaskCompletionSource$1(n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type)),0),s.e(f),s.b();for(var a=new Array(i.count()),v=0,y=i.getEnumerator();y.moveNext();)p=y.current(),h=new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0),h.add(function(){var i=new n.ig.KeyValueItem;return i.a("LEVEL_UNIQUE_NAME"),i.b(t.item(p).uniqueName()),i}()),a[v]=u.b().discoverMembersAsync(null,h),v++;return w=new n.ig.TaskFactory,b=w.d(n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type)),a,function(n){return u.g(n,i,f)}),b},g:function(n,t,i){for(var u,f,e,o,r=0;r<t.count();r++)if(u=t.__inner[r],!i.containsKey(u)){for(f=n[r].m(),e=f.getEnumerator();e.moveNext();)o=e.current(),this.a.aa(o);i.add(u,f)}return i},f:function(t,i){for(var f,o,r,s=this,e=new n.ig.Dictionary$2(String,n.ig.Level.prototype.$type,0),u=0;u<i.count();u++){if(f=t[u],f.a()!=null||f.b())return null;o=i.item(u);r=f.m().where$1(n.ig.Level.prototype.$type,function(n){return n.depth()==o}).firstOrDefault$1(n.ig.Level.prototype.$type);r==null||e.containsKey(r.hierarchyUniqueName())||e.add(r.hierarchyUniqueName(),r)}return e},$type:new n.ig.Type("FlatDataAxisProviderHelper",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("FlatDataPartialAxisProvider","Object",{b:null,d:null,a:null,init:function(t,i,r,u){n.ig.Object.prototype.init.call(this);this.c(t);this.b=new n.ig.FlatDataAxisProviderHelper(t,i.count(),u);this.a=r;this.d=i},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_axis:null,axis:function(n){return arguments.length===1?(this._axis=n,n):this._axis},generateAxis:function(t){var i=this,u=new n.ig.TaskCompletionSource$1(n.ig.OlapResultAxis.prototype.$type,0),r,s,h;if(i.axis()!=null)return u.e(i.axis()),u.b();var c=new Array(i.a.position().itemsCount()),l=new n.ig.List$1(n.ig.OlapResultTuple.prototype.$type,0),f=i.a.position().indexOf(i.a),e=i.a.position(),o=new n.ig.List$1(n.ig.KeyValuePair$2.prototype.$type.specialize(String,n.ig.Number.prototype.$type),0);for(r=0;r<i.a.position().itemsCount();r++)if(r<f)c[r]=i.a.position().members().item(r).clone();else if(r==f){if(n.ig.util.cast(n.ig.MeasureList.prototype.$type,i.d.item(r))!==null)continue;s=e.members().item(r);o.add(new n.ig.KeyValuePair$2(String,n.ig.Number.prototype.$type,1,s.hierarchyUniqueName(),s.depth()+1))}else{if(n.ig.util.cast(n.ig.MeasureList.prototype.$type,i.d.item(r))!==null)continue;h=e.members().item(r);o.add(new n.ig.KeyValuePair$2(String,n.ig.Number.prototype.$type,1,h.hierarchyUniqueName(),h.depth()))}return i.b.l(o).i(function(r){var o=i.c().u(e.members().toArray$1(n.ig.OlapResultAxisMember.prototype.$type),f+1).toList$1(n.ig.RowMetadata.prototype.$type);i.b.n(i.d,f,c,r.m(),o,i.a.uniqueName(),l);i.axis(function(){var i=new n.ig.OlapResultAxis(l,e.itemsCount());return i.name(t),i}());u.e(i.axis())}),u.b()},getTupleRowsMetadata:function(n){return this.b.i(n)},e:function(){return this.b.h()},$type:new n.ig.Type("FlatDataPartialAxisProvider",n.ig.Object.prototype.$type,[n.ig.IFlatDataAxisProvider.prototype.$type])},!0);n.ig.util.defType("IFlatDataProvider","Object",{$type:new n.ig.Type("IFlatDataProvider",null,[n.ig.IOlapDiscoverDataProvider.prototype.$type])},!0);n.ig.util.defType("FlatDataProvider","Object",{v:null,x:null,z:null,ab:null,n:null,p:null,r:null,j:null,k:null,ad:null,q:null,l:null,_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},init:function(t,i){var r=this;this.r=new n.ig.Dictionary$2(String,n.ig.Number.prototype.$type,0);this.j=new n.ig.Dictionary$2(String,n.ig.DataMemberMetadata.prototype.$type,0);this.k=new n.ig.Dictionary$2(String,n.ig.DataMemberMetadata.prototype.$type,0);this.m=new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.DataMemberMetadata.prototype.$type),0);n.ig.Object.prototype.init.call(this);this.ah(t);this.d(i);this.e(new n.ig.TableMetadata(t));i.a()!=null&&(i.a().b()==null?i.a().b(function(){var t=new n.ig.MeasuresDimensionMetadata;return t.b("Measures"),t.c("Measures"),t}()):(String.isNullOrEmpty(i.a().b().b())&&i.a().b().b("Measures"),String.isNullOrEmpty(i.a().b().c())&&i.a().b().c("Measures")))},_ah:null,ah:function(n){return arguments.length===1?(this._ah=n,n):this._ah},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},discoverCatalogsAsync:function(){throw new n.ig.NotImplementedException;},discoverCubesAsync:function(){var t=new n.ig.TaskCompletionSource$1(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Cube.prototype.$type),0);return this.v==null&&(this.v=this.w()),t.e(this.v),t.b()},discoverDimensionsAsync:function(){var t=new n.ig.TaskCompletionSource$1(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Dimension.prototype.$type),0);return this.x==null&&(this.x=this.y()),t.e(this.x),t.b()},discoverHierarchiesAsync:function(){var t=new n.ig.TaskCompletionSource$1(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Hierarchy.prototype.$type),0);return this.z==null&&(this.z=this.aa()),t.e(this.z),t.b()},discoverLevelsAsync:function(t,i){var r=new n.ig.TaskCompletionSource$1(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Level.prototype.$type),0),u=this.s(t,i);return r.e(u),r.b()},s:function(t,i){var r=this,u,f,e;return r.ab==null&&(r.n=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.Level.prototype.$type),0),r.ab=r.ac()),u=null,f=null,i!=null&&(u=i.where$1(n.ig.KeyValueItem.prototype.$type,function(n){return n.a()=="HIERARCHY_UNIQUE_NAME"}).firstOrDefault$1(n.ig.KeyValueItem.prototype.$type),f=i.where$1(n.ig.KeyValueItem.prototype.$type,function(n){return n.a()=="LEVEL_UNIQUE_NAME"}).firstOrDefault$1(n.ig.KeyValueItem.prototype.$type)),e=u!=null?r.ab.where$1(n.ig.Level.prototype.$type,function(n){return n.hierarchyUniqueName()==u.b()}):r.ab.toList$1(n.ig.Level.prototype.$type),f!=null&&(e=e.where$1(n.ig.Level.prototype.$type,function(n){return n.uniqueName()==f.b()})),e},discoverMeasuresAsync:function(){var t=new n.ig.TaskCompletionSource$1(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Measure.prototype.$type),0);return this.ad==null&&(this.q=new n.ig.Dictionary$2(String,n.ig.Func$3.prototype.$type.specialize(n.ig.IEnumerable.prototype.$type,n.ig.CellMetadata.prototype.$type,n.ig.Object.prototype.$type),0),this.ad=this.ae(this.q)),t.e(this.ad),t.b()},discoverMeasureGroupsAsync:function(){throw new n.ig.NotImplementedException;},discoverMeasureGroupDimensionsAsync:function(){throw new n.ig.NotImplementedException;},discoverMembersAsync:function(t,i){var r=new n.ig.TaskCompletionSource$1(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Member.prototype.$type),0),u=this.t(t,i);return r.e(u),r.b()},discoverKpisAsync:function(){var t=new n.ig.TaskCompletionSource$1(n.ig.IEnumerable$1.prototype.$type.specialize(n.ig.Kpi.prototype.$type),0);return t.e(new n.ig.List$1(n.ig.Kpi.prototype.$type,0)),t.b()},t:function(t,i){var r=this,u,f,s,e,v,c,it,y,p,rt,w,b,k,d,g;r.l==null&&(r.l=new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.Member.prototype.$type),0));var l=i.where$1(n.ig.KeyValueItem.prototype.$type,function(n){return n.a()=="HIERARCHY_UNIQUE_NAME"}).firstOrDefault$1(n.ig.KeyValueItem.prototype.$type),a=i.where$1(n.ig.KeyValueItem.prototype.$type,function(n){return n.a()=="LEVEL_UNIQUE_NAME"}).firstOrDefault$1(n.ig.KeyValueItem.prototype.$type),o=i.where$1(n.ig.KeyValueItem.prototype.$type,function(n){return n.a()=="MEMBER_UNIQUE_NAME"}).firstOrDefault$1(n.ig.KeyValueItem.prototype.$type);if(r.ab==null&&(r.ab=r.ac()),u=null,f=r.ab,l!=null&&(f=f.where$1(n.ig.Level.prototype.$type,function(n){return n.hierarchyUniqueName()==l.b()}).toList$1(n.ig.Level.prototype.$type)),a!=null){var nt=f.where$1(n.ig.Level.prototype.$type,function(n){return n.uniqueName()==a.b()}).first$1(n.ig.Level.prototype.$type),ut=nt.hierarchyUniqueName(),ft=nt.depth(),tt=0;o!=null&&(tt=1);f=f.where$1(n.ig.Level.prototype.$type,function(n){return n.hierarchyUniqueName()==ut&&n.depth()<=ft+tt}).toList$1(n.ig.Level.prototype.$type)}else if(o!=null)throw new n.ig.InvalidOperationException(1,"LEVEL_UNIQUE_NAME restriction is required for MEMBER_UNIQUE_NAME restriction.");for(u=new Array(f.count()),s=0;s<f.count();s++)u[s]=f.item(s);if(e=null,u.length>0){var h=u[0],et=r.z.where$1(n.ig.Hierarchy.prototype.$type,function(n){return n.uniqueName()==h.hierarchyUniqueName()}).first$1(n.ig.Hierarchy.prototype.$type),ot=r.e().d();if(r.al(u,0,".",null,et,ot),l!=null&&a==null&&o==null){for(v=new n.ig.List$1(n.ig.Member.prototype.$type,0),c=0;c<u.length;c++)for(it=u[c],!function(){var n=r.l.tryGetValue(it.uniqueName(),y);return y=n.value,n.ret}(),p=y.values().getEnumerator();p.moveNext();)rt=p.current(),v.add(rt);e=v}else if(h=u[u.length-1],o==null)!function(){var n=r.l.tryGetValue(h.uniqueName(),w);return w=n.value,n.ret}(),e=w.values();else{for(!function(){var n=r.l.tryGetValue(h.uniqueName(),b);return b=n.value,n.ret}(),k=new n.ig.List$1(n.ig.Member.prototype.$type,0),d=b.values().getEnumerator();d.moveNext();)g=d.current(),g.parentUniqueName()==o.b()&&k.add(g);e=k}}else e=new n.ig.List$1(n.ig.Member.prototype.$type,0);return e},ak:function(t,i,r){var s=this,u=new n.ig.List$1(n.ig.Task.prototype.$type,0),h,e,f,c,o,l;if(t!=null&&u.add(t.generateAxis("Axis0")),i!=null&&(h=t==null?"Axis0":"Axis1",u.add(i.generateAxis(h))),u.count()>0){for(e=new Array(u.count()),f=0;f<u.count();f++)e[f]=u.item(f);return c=new n.ig.TaskFactory,c.d(n.ig.OlapResult.prototype.$type,e,function(){return s.c(t,i,r)})}return o=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),l=s.c(null,null,r),o.e(l),o.b()},am:function(t){for(var i=this,it=new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.DataMemberMetadata.prototype.$type)),0),dt=t.getEnumerator(),u,a,v,s,f,e,o,rt,y,ft,p,r,et,ot,h,st,c,ht,ct,w,b,lt,ni,k,d,at,vt,ti,l,g,ii,yt,pt,ri,wt,nt,bt,tt,kt;dt.moveNext();)if(u=dt.current(),u.a().count()>0)for(a=0;a<u.a().count();a++)v=u.a().item(a),function(){var n=i.j.tryGetValue(v,s);return s=n.value,n.ret}()&&(function(){var n=it.tryGetValue(u.b(),f);return f=n.value,n.ret}()||(f=new n.ig.Dictionary$2(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.DataMemberMetadata.prototype.$type),0),it.add(u.b(),f)),function(){var n=f.tryGetValue(s.a().levelDepth(),e);return e=n.value,n.ret}()||(e=new n.ig.Dictionary$2(String,n.ig.DataMemberMetadata.prototype.$type,0),f.add(s.a().levelDepth(),e)),e.containsKey(v)||e.add(v,s));for(o=new n.ig.Dictionary$2(String,n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.DataMemberMetadata.prototype.$type),0),rt=it.getEnumerator();rt.moveNext();){var ui=rt.current(),gt=ui.value(),ut=gt.orderBy$2(n.ig.KeyValuePair$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.DataMemberMetadata.prototype.$type)),n.ig.Number.prototype.$type,function(n){return n.key()}).select$2(n.ig.KeyValuePair$2.prototype.$type.specialize(n.ig.Number.prototype.$type,n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.DataMemberMetadata.prototype.$type)),n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.DataMemberMetadata.prototype.$type),function(n){return n.value()}).toList$1(n.ig.IDictionary$2.prototype.$type.specialize(String,n.ig.DataMemberMetadata.prototype.$type));for(y=ut.count()-1;y>=0;y--)for(ft=ut.item(y).select$2(n.ig.KeyValuePair$2.prototype.$type.specialize(String,n.ig.DataMemberMetadata.prototype.$type),n.ig.DataMemberMetadata.prototype.$type,function(n){return n.value()}).toList$1(n.ig.DataMemberMetadata.prototype.$type),p=0;p<ft.count();p++)r=ft.item(p),et=r.a().levelDepth(),et>0&&(function(){var n=gt.tryGetValue(et-1,ot);return ot=n.value,n.ret}()&&ot.containsKey(r.a().parentUniqueName())||(function(){var n=o.tryGetValue(r.a().parentUniqueName(),h);return h=n.value,n.ret}()||(h=new n.ig.Dictionary$2(String,n.ig.DataMemberMetadata.prototype.$type,0),o.add(r.a().parentUniqueName(),h)),h.add(r.a().uniqueName(),r)));for(st=ut.item(0),c=st.values().first$1(n.ig.DataMemberMetadata.prototype.$type),String.isNullOrEmpty(c.a().parentUniqueName())||(c=i.j.item(c.a().parentUniqueName())),ht=new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0),ht.add(function(){var t=new n.ig.KeyValueItem;return t.a("LEVEL_UNIQUE_NAME"),t.b(c.a().levelUniqueName()),t}()),ct=i.t(null,ht).toList$1(n.ig.Member.prototype.$type),w=0;w<ct.count();w++)b=ct.item(w),st.containsKey(b.uniqueName())||o.containsKey(b.uniqueName())||o.add(b.uniqueName(),new n.ig.Dictionary$2(String,n.ig.DataMemberMetadata.prototype.$type,0))}for(lt=i.m.keys().getEnumerator();lt.moveNext();)if(ni=lt.current(),function(){var n=i.j.tryGetValue(ni,k);return k=n.value,n.ret}())for(d=0;d<k.d().count();d++)at=k.d().item(d),at.a()&&at.h();for(i.m=o,vt=i.m.keys().getEnumerator();vt.moveNext();)if(ti=vt.current(),function(){var n=i.j.tryGetValue(ti,l);return l=n.value,n.ret}()&&!i.g(l))for(g=0;g<l.d().count();g++)ii=l.d().item(g),ii.f();for(yt=i.m.keys().getEnumerator();yt.moveNext();)if(pt=yt.current(),function(){var n=i.j.tryGetValue(pt,ri);return ri=n.value,n.ret}())for(wt=i.m.item(pt).values().toList$1(n.ig.DataMemberMetadata.prototype.$type),nt=0;nt<wt.count();nt++)for(bt=wt.item(nt),tt=0;tt<bt.d().count();tt++)kt=bt.d().item(tt),kt.a()&&kt.h()},g:function(n){for(var r=this,t=n.a().parentUniqueName(),i;!String.isNullOrEmpty(t);){if(r.m.containsKey(t))return!0;if(function(){var n=r.j.tryGetValue(t,i);return i=n.value,n.ret}())t=i.a().parentUniqueName();else return!1}return!1},m:null,u:function(t,i){for(var v,u,s,o,f,h,c,y,p,l=this,r=null,a=-1,e=0;e<i;e++)v=t[e],u=null,function(){var n=l.h(v.uniqueName(),s);return s=n.memberMetadata,n.ret}()&&(u=s.d()),u!=null&&(r==null||r.count()>u.count())&&(a=e,r=u);for(r==null&&(r=l.e().d().toList$1(n.ig.RowMetadata.prototype.$type)),o=r,f=0;f<i;f++)f!=a&&(h=t[f],function(){var n=h.properties().tryGetValue("memberId",c);return c=n.value,n.ret}()&&(y=h.levelUniqueName(),p=n.ig.Number.prototype.parseInt(c),o=o.where$1(n.ig.RowMetadata.prototype.$type,function(n){return n.d(y)==p})));return o},i:function(n,t){var i=this;return{ret:function(){var r=i.r.tryGetValue(n,t);return t=r.value,r.ret}(),memberId:t}},h:function(n,t){var i=this;return{ret:function(){var r=i.j.tryGetValue(n,t);return t=r.value,r.ret}(),memberMetadata:t}},a:function(t,i){for(var r=new n.ig.ArrayListCollection$1(t),u=i.getEnumerator(),f;u.moveNext();)f=u.current(),r.add(f);return r},c:function(t,i,r){var o=this,f=null,u,h,ht,dt,gt,k,v,lt,d,at,g,nt,vt,yt,c,pt,y,l,ii,rt,w;t!=null&&(f=t.axis());u=null;i!=null&&(u=i.axis());var bt=o.f(f,u,r),ut=bt[0],ft=bt[1],e=null,a=-1,s=null,b=new n.ig.Dictionary$2(String,n.ig.Number.prototype.$type,0),et=new n.ig.Array,ot=new n.ig.Array,st=new n.ig.Array;for(h=0;h<r.count();h++)b.add(r.item(h).uniqueName(),h),et.add(r.item(h));if(ut=="none"&&r.count()>0&&(e=r.item(0).uniqueName(),a=b.item(e),s=o.q.item(e)),f==null&&u==null){if(ht=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,0),s!=null){for(var ri=o.e().d().where$1(n.ig.RowMetadata.prototype.$type,function(n){return!n.a()}),ct=new n.ig.Array,kt=ri.select$2(n.ig.RowMetadata.prototype.$type,n.ig.Object.prototype.$type,function(n){return n.e()}).getEnumerator();kt.moveNext();)dt=kt.current(),ct.add(dt);ct.length>0&&(gt=new n.ig.CellMetadata(0,0,0,a,ot,st,et),k=s(ct,gt),k!=null&&(v=new n.ig.OlapResultCell,v.cellOrdinal(0),v.properties().add("Value",k),v.properties().add("FmtValue",k.toString()),ht.add(v)))}return o.b(null,null,ht)}if(u!=null)for(lt=u.tuples(),d=0;d<lt.count();d++)ot.add(lt.__inner[d]);if(f!=null)for(at=f.tuples(),g=0;g<at.count();g++)st.add(at.__inner[g]);for(nt=1,f!=null&&(nt=f.tuples().count()),vt=1,u!=null&&(vt=u.tuples().count()),yt=new n.ig.List$1(n.ig.OlapResultCell.prototype.$type,0),c=0;c<vt;c++)for(pt=null,y=null,u!=null&&(y=u.tuples().__inner[c],pt=i.getTupleRowsMetadata(y),ut=="rows"&&(e=y.members().item(ft).uniqueName(),a=b.item(e),s=o.q.item(e))),l=0;l<nt;l++){var p=pt,tt=null,it=null;if(f!=null&&(it=f.tuples().__inner[l],tt=t.getTupleRowsMetadata(it),ut=="columns"&&(e=it.members().item(ft).uniqueName(),a=b.item(e),s=o.q.item(e))),p!=null?tt!=null&&(p=o.ag(p,tt,y,it,ft)):p=tt,s!=null){for(var ni=c*nt+l,ui=new n.ig.CellMetadata(c,l,ni,a,ot,st,et),wt=new n.ig.Array,ti=p.select$2(n.ig.RowMetadata.prototype.$type,n.ig.Object.prototype.$type,function(n){return n.e()}).getEnumerator();ti.moveNext();)ii=ti.current(),wt.add(ii);wt.length>0&&(rt=s(wt,ui),rt!=null&&(w=new n.ig.OlapResultCell,w.cellOrdinal(ni),w.properties().add("Value",rt.toString()),w.properties().add("FmtValue",rt.toString()),yt.add(w)))}}return o.b(f,u,yt)},b:function(t,i,r){var f=this,u=function(){var t=new n.ig.OlapResult;return t.axes(new n.ig.List$1(n.ig.OlapResultAxis.prototype.$type,0)),t}();return t!=null&&u.axes().add(t),i!=null&&u.axes().add(i),u.cells(r),u.isEmpty(i==null&&t==null&&r.count()==0),u},ag:function(t,i,r,u,f){var c=this,e,o,s,h;for(i.count()<t.count()&&(t=i,u=r),e=0;e<u.members().count();e++)e!=f&&(o=u.members().item(e),function(){var n=o.properties().tryGetValue("memberId",s);return s=n.value,n.ret}()&&(h=n.ig.Number.prototype.parseInt(s),t=t.where$1(n.ig.RowMetadata.prototype.$type,function(n){return n.d(o.levelUniqueName())==h}).toList$1(n.ig.RowMetadata.prototype.$type)));return t},f:function(n,t,i){var h=this,c=h.aj(h.d().a().b().c()),f="none",e=-1,o,r,l,s,u,a;if(i.count()>0){if(n!=null&&n.tuples().count()>0)for(o=n.tuples().__inner[0],r=0;r<o.members().count();r++)if(l=o.members().item(r),l.hierarchyUniqueName()==c){f="columns";e=r;break}if(f=="none"&&t!=null&&t.tuples().count()>0)for(s=t.tuples().__inner[0],u=0;u<s.members().count();u++)if(a=s.members().item(u),a.hierarchyUniqueName()==c){f="rows";e=u;break}}return function(){var n=[];return n.add(f),n.add(e),n}()},al:function(t,i,r,u,f,e){var h=this,s=t[i],et=h.p.item(s.uniqueName()),ot=h.ab.where$1(n.ig.Level.prototype.$type,function(n){return n.hierarchyUniqueName()==f.uniqueName()&&n.depth()==s.depth()+1}).firstOrDefault$1(n.ig.Level.prototype.$type),rt=null,c,k,v,l,y,b,it;u!=null&&(rt=u.uniqueName()),function(){var n=h.l.tryGetValue(s.uniqueName(),c);return c=n.value,n.ret}()||(c=new n.ig.Dictionary$2(String,n.ig.Member.prototype.$type,0),h.l.add(s.uniqueName(),c));for(var a=new n.ig.List$1(n.ig.KeyListPair$1.prototype.$type.specialize(n.ig.RowMetadata.prototype.$type),0),ut=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.RowMetadata.prototype.$type),0),ft=e.getEnumerator();ft.moveNext();)k=ft.current(),v=et(k.e()),v!=null&&(function(){var n=ut.tryGetValue(v,l);return l=n.value,n.ret}()||(l=new n.ig.List$1(n.ig.RowMetadata.prototype.$type,0),ut.add(v,l),a.add(new n.ig.KeyListPair$1(n.ig.RowMetadata.prototype.$type,1,v,l))),l.add(k));for(y=0;y<a.count();y++){var d=a.item(y).b(),g=a.item(y).a(),nt=r+"&"+h.aj(d),tt=s.uniqueName()+nt,o,p,w;if(!function(){var n=c.tryGetValue(tt,o);return o=n.value,n.ret}())for(o=new n.ig.Member,o.caption(d),o.dimensionUniqueName(s.dimensionUniqueName()),o.hierarchyUniqueName(s.hierarchyUniqueName()),o.levelDepth(s.depth()),o.levelUniqueName(s.uniqueName()),o.name(d),o.parentLevel(s.depth()-1),o.parentUniqueName(rt),o.uniqueName(tt),ot!=null&&o.childrenCardinality(1),u!=null&&u.childrenCardinality(u.childrenCardinality()+1),c.add(tt,o),p=h.r.count(),h.r.add(o.uniqueName(),p),w=new n.ig.DataMemberMetadata(o,nt,p,c.count()),h.j.add(o.uniqueName(),w),h.k.add(o.uniqueName(),w),b=0;b<g.count();b++)it=g.item(b),it.g(s.uniqueName(),p),w.h(it);i+1<t.length&&h.al(t,i+1,nt,o,f,g)}u!=null&&u.childrenCardinality(a.count())},aj:function(n){return n.substr(0,1)!="["&&(n="["+n),n.substr(n.length-1,1)!="]"&&(n+="]"),n},af:null,o:null,w:function(){var i=new n.ig.List$1(n.ig.Cube.prototype.$type,0),t;return this.d()==null||this.d().a()==null?i:(t=new n.ig.Cube,t.caption(this.d().a().c()),t.name(this.d().a().e()),t.description(this.d().a().d()),i.add(t),i)},ae:function(t){var u=new n.ig.List$1(n.ig.Measure.prototype.$type,0),e,f,r,i;if(this.d()==null||this.d().a()==null||this.d().a().b()==null||this.d().a().b().a()==null)return u;for(e=this.d().a().b().c(),f=this.d().a().b().a().getEnumerator();f.moveNext();)r=f.current(),i=new n.ig.Measure,i.caption(r.e()),i.defaultFormatString(r.d()),i.measureDisplayFolder(r.c()),i.name(r.f()),i.uniqueName(this.aj(e)+"."+this.aj(r.f())),u.add(i),t.item(i.uniqueName(),r.b());return u},y:function(){var r,u,f,t,i;if((this.v==null&&(this.v=this.w()),r=new n.ig.List$1(n.ig.Dimension.prototype.$type,0),this.d()==null||this.d().a()==null)||(u=new n.ig.Dimension,u.dimensionType(n.ig.DimensionType.prototype.measure),u.caption(this.d().a().b().b()),u.uniqueName(this.aj(this.d().a().b().c())),r.add(u),this.d().a().a()==null))return r;for(this.af=new n.ig.List$1(n.ig.DimensionMetadata.prototype.$type,0),f=this.d().a().a().getEnumerator();f.moveNext();)t=f.current(),this.af.add(t),i=new n.ig.Dimension,i.caption(t.b()),i.defaultHierarchy(t.c()),i.uniqueName(this.aj(t.e())),i.name(t.e()),i.description(t.d()),r.add(i);return r},aa:function(){var t=this,f,o,s,r,e,h,u,i;if((t.x==null&&(t.x=t.y()),f=new n.ig.List$1(n.ig.Hierarchy.prototype.$type,0),t.d()==null||t.d().a()==null)||(o=new n.ig.Hierarchy,o.uniqueName(t.aj(t.d().a().b().c())),o.dimensionUniqueName(t.aj(t.d().a().b().c())),f.add(o),t.d().a().a()==null))return f;for(t.o=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.HierarchyMetadata.prototype.$type),0),s=0;s<t.af.count();s++)if(r=t.af.item(s),r.a()!=null)for(function(){var n=t.o.tryGetValue(r.e(),e);return e=n.value,n.ret}()||(e=new n.ig.List$1(n.ig.HierarchyMetadata.prototype.$type,0),t.o.add(r.e(),e)),h=r.a().getEnumerator();h.moveNext();)u=h.current(),e.add(u),i=new n.ig.Hierarchy,i.caption(u.b()),i.description(u.c()),i.dimensionUniqueName(t.aj(r.e())),i.hierarchyDisplayFolder(u.d()),i.name(u.e()),i.uniqueName(i.dimensionUniqueName()+"."+t.aj(i.name())),f.add(i);return f},ac:function(){var t=this,f,r,c,e,l,w,a,v,o,y,u,s,p,i,h;if((t.z==null&&(t.z=t.aa()),t.p=new n.ig.Dictionary$2(String,n.ig.Func$2.prototype.$type.specialize(n.ig.Object.prototype.$type,String),0),f=new n.ig.List$1(n.ig.Level.prototype.$type,0),t.d()==null||t.d().a()==null)||(r=new n.ig.Level,r.hierarchyUniqueName(t.aj(t.d().a().b().c())),r.uniqueName(r.hierarchyUniqueName()+".[MeasuresLevel]"),r.depth(-1),f.add(r),t.d().a().a()==null))return f;for(c=new n.ig.HierarchyMetadata,c.e(t.d().a().b().c()),c.b(t.d().a().b().b()),e=new n.ig.List$1(n.ig.HierarchyMetadata.prototype.$type,0),e.add(c),l=0;l<t.af.count();l++)if(w=t.af.item(l),function(){var n=t.o.tryGetValue(w.e(),a);return a=n.value,n.ret}())for(v=0;v<a.count();v++)e.add(a.item(v));for(o=0;o<e.count();o++)if(y=e.item(o),y.a()!=null)for(u=t.z.item(o),s=0;s<y.a().count();s++)p=y.a().item(s),i=new n.ig.Level,i.caption(p.b()),i.depth(s),i.dimensionUniqueName(u.dimensionUniqueName()),i.hierarchyUniqueName(u.uniqueName()),i.name(p.c()),i.uniqueName(u.uniqueName()+"."+t.aj(i.name())),f.add(i),function(){var n=t.n.tryGetValue(u.uniqueName(),h);return h=n.value,n.ret}()||(h=new n.ig.List$1(n.ig.Level.prototype.$type,0),t.n.add(u.uniqueName(),h)),h.add(i),t.p.item(i.uniqueName(),p.a());return f},$type:new n.ig.Type("FlatDataProvider",n.ig.Object.prototype.$type,[n.ig.IFlatDataProvider.prototype.$type])},!0);n.ig.util.defType("KeyListPair$1","Object",{$t:null,_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(t,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.Object.prototype.init.call(this);this.b(String.empty());this.a(new n.ig.List$1(this.$t,0))},init1:function(t,i,r,u){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.Object.prototype.init.call(this);this.b(r);this.a(u)},$type:new n.ig.Type("KeyListPair$1",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("CellMetadata","Object",{init:function(t,i,r,u,f,e,o){n.ig.Object.prototype.init.call(this);this.rowIndex(t);this.columnIndex(i);this.cellOrdinal(r);this.measureIndex(u);this.rowTuples(f);this.columnTuples(e);this.measures(o)},_rowIndex:0,rowIndex:function(n){return arguments.length===1?(this._rowIndex=n,n):this._rowIndex},_columnIndex:0,columnIndex:function(n){return arguments.length===1?(this._columnIndex=n,n):this._columnIndex},_cellOrdinal:0,cellOrdinal:function(n){return arguments.length===1?(this._cellOrdinal=n,n):this._cellOrdinal},_measureIndex:0,measureIndex:function(n){return arguments.length===1?(this._measureIndex=n,n):this._measureIndex},_rowTuples:null,rowTuples:function(n){return arguments.length===1?(this._rowTuples=n,n):this._rowTuples},_columnTuples:null,columnTuples:function(n){return arguments.length===1?(this._columnTuples=n,n):this._columnTuples},_measures:null,measures:function(n){return arguments.length===1?(this._measures=n,n):this._measures},$type:new n.ig.Type("CellMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("CubeMetadata","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.a(new n.ig.ArrayListCollection$1(n.ig.DimensionMetadata.prototype.$type))},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("CubeMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasuresDimensionMetadata","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("MeasuresDimensionMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DataMemberMetadata","Object",{init:function(t,i,r,u){n.ig.Object.prototype.init.call(this);this.a(t);this.g(i);this.e(r);this.f(u);this.d(new n.ig.List$1(n.ig.RowMetadata.prototype.$type,0))},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_f:0,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},c:function(){var t=this;return t.d().where$1(n.ig.RowMetadata.prototype.$type,function(n){return n.a()==!1}).toList$1(n.ig.RowMetadata.prototype.$type)},h:function(n){this.d().add(n)},b:function(n){return this.d().remove(n)?!0:!1},$type:new n.ig.Type("DataMemberMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DataSourceMetadata","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("DataSourceMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("DimensionMetadata","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("DimensionMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("HierarchyMetadata","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("HierarchyMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("LevelMetadata","Object",{init:function(){n.ig.Object.prototype.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("LevelMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("MeasureMetadata","Object",{init:function(){n.ig.Object.prototype.init.call(this);this.a(n.ig.AggregatorType.prototype.sum)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("MeasureMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("RowMetadata","Object",{b:null,c:0,init:function(t){n.ig.Object.prototype.init.call(this);this.b=new n.ig.Dictionary$2(String,n.ig.Number.prototype.$type,0);this.c=0;this.a(!1);this.e(t)},g:function(n,t){this.b.containsKey(n)||this.b.item(n,t)},d:function(n){var i=this,t;return function(){var r=i.b.tryGetValue(n,t);return t=r.value,r.ret}(),t},f:function(){this.c++;this.a(!0)},h:function(){this.c--;this.a(this.c>0)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_a:!1,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("RowMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("TableMetadata","Object",{e:null,a:null,c:null,f:0,init:function(t){var i,r,u,s,f,o,e;if(n.ig.Object.prototype.init.call(this),i=0,r=n.ig.util.cast(n.ig.IList.prototype.$type,t),r!=null)i=r.count();else for(u=t.getEnumerator();u.moveNext();)s=u.current(),i++;for(this.c=new n.ig.List$1(n.ig.RowMetadata.prototype.$type,0),this.a=new Array(i),f=t.getEnumerator();f.moveNext();)o=f.current(),e=new n.ig.RowMetadata(o),this.h(e),this.c.add(e);this.e=new n.ig.List$1(String,0)},d:function(){return this.c},b:function(){return this.a},g:function(){return this.f},h:function(n){this.f==this.a.length&&this.i();this.a[this.f++]=n},j:function(t,i){this.f==this.a.length&&this.i();n.ig.Array.prototype.copy(this.a,t,this.a,t+1,this.f-t);this.a[t]=i;this.f++},k:function(t){var i=this;i.f--;n.ig.Array.prototype.copy(i.a,t+1,i.a,t,i.f-t),function(){var t=n.ig.Array.prototype.resize$1(n.ig.RowMetadata.prototype.$type,i.a,i.f);return i.a=t.array,t.ret}()},i:function(){var t=new Array(this.f+1);n.ig.Array.prototype.copy(this.a,0,t,0,this.f);this.a=t},$type:new n.ig.Type("TableMetadata",n.ig.Object.prototype.$type)},!0);n.ig.util.defType("FlatDataSourceImpl","OlapDataSource",{a3:null,dataProvider:function(){return this.a3==null&&(this.a3=this.dataProviderFactory().createDataProvider()),this.a3},init:function(t){this.a7=new n.ig.List$1(n.ig.FlatDataAxisProvider.prototype.$type,0);n.ig.OlapDataSource.prototype.init.call(this,t);this.flatDataSourceOptions(t);this.dataProviderFactory(t.dataProviderFactory())},h:function(){return new n.ig.DefaultFlatDataProviderFactory(this.flatDataSourceOptions().itemsSource(),this.flatDataSourceOptions().dataSourceMetadata())},_flatDataSourceOptions:null,flatDataSourceOptions:function(n){return arguments.length===1?(this._flatDataSourceOptions=n,n):this._flatDataSourceOptions},am:function(){var t=this,i=new n.ig.TaskCompletionSource$1(n.ig.OlapMetadataTreeItem.prototype.$type,0);return t.isInitialized()?(i.e(t.metadataTree()),i.b()):(t.columnAxis().collectionChanged=n.ig.Delegate.prototype.combine(t.columnAxis().collectionChanged,t.bb.runOn(t)),t.rowAxis().collectionChanged=n.ig.Delegate.prototype.combine(t.rowAxis().collectionChanged,t.bf.runOn(t)),t.filters().collectionChanged=n.ig.Delegate.prototype.combine(t.filters().collectionChanged,t.bc.runOn(t)),t.measures().collectionChanged=n.ig.Delegate.prototype.combine(t.measures().collectionChanged,t.bd.runOn(t)),t.aq(null).continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return t.an(t.cubes().first$1(n.ig.Cube.prototype.$type).name())}).continueWithTask$1(n.ig.OlapMetadataTreeItem.prototype.$type,function(){return t.ak()}))},ah:function(){var f=this,r=f.dataProvider(),t=new n.ig.List$1(n.ig.Task.prototype.$type,0),u,i,e;return t.add(r.discoverDimensionsAsync(null,null)),t.add(r.discoverHierarchiesAsync(null,null)),t.add(r.discoverLevelsAsync(null,null)),t.add(r.discoverMeasuresAsync(null,null)),t.add(r.discoverKpisAsync(null,null)),u=new Array(t.count()),t.copyTo(u,0),i=new n.ig.CubeMetaItemsCache,f.c(i),e=new n.ig.TaskFactory,e.c(u,function(n){var t=n[0],r=n[1],u=n[2],f=n[3],e=n[4];i.y(f.m());i.t(t.m());i.u(r.m());i.x(u.m());i.v(e.m())})},bh:function(t,i){var u=0,r=this.measureListIndex(),f,e,o,s;t&&(f=this.a2(u),f!=null&&this.measureListLocation()==n.ig.MeasureListLocation.prototype.columns&&r>-1&&(e=f.e().rootPositionInfo(),e!=null&&this.be(e,r-1)),u++);i&&(o=this.a2(u),o!=null&&this.measureListLocation()==n.ig.MeasureListLocation.prototype.rows&&r>-1&&(s=o.e().rootPositionInfo(),s!=null&&this.be(s,r-1)))},be:function(n,t){var i,r;if(n.positionItemIndex()==t)n.clear();else for(i=n.values().getEnumerator();i.moveNext();)r=i.current(),this.be(r,t)},ai:function(){var t=this,w=t.a8(),s,i,r,u,h,c,a,e,v,nt,y,tt,p,it;if(!String.isNullOrEmpty(w))return s=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),s.d(new n.ig.InvalidOperationException(1,w)),s.b();if(i=t.columnAxis().count()>0,r=t.rowAxis().count()>0,!r&&!i&&t.measures().count()==0)return u=function(){var t=new n.ig.OlapResult;return t.isEmpty(!0),t}(),h=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),h.e(u),t.l(new n.ig.OlapResultView(u,u,!1,!1)),t.result(u),t.clearPendingChanges(),h.b();var rt=t.m(),ut=t.s(),ft=t.r()||t.p(),et=t.n(),b=t.ae().count()>0,k=t.ad().count()>0,ot=t.af.count()>0;if(!rt&&!ut&&!ft&&!et&&!b&&!k&&!ot)return c=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),c.e(t.result()),c.b();t.r()&&t.bh(i,r);var l=null,f=null,o=0,d="Axis0",g=t.m();for(t.r()&&i&&t.measureListIndex()>-1&&t.measureListLocation()==n.ig.MeasureListLocation.prototype.columns&&(g=!0),l=t.a1(t.columnAxis(),g,o),t.m(!1),l!=null&&(o++,d="Axis1"),a=t.s(),t.r()&&r&&t.measureListIndex()>-1&&t.measureListLocation()==n.ig.MeasureListLocation.prototype.rows&&(a=!0),f=t.a1(t.rowAxis(),a,o),t.s(!1),f!=null&&(f.axis()!=null&&f.axis().name(d),o++),t.r(!1),t.n(!1),e=new n.ig.List$1(n.ig.AxisElement.prototype.$type,0),v=t.u().getEnumerator();v.moveNext();)nt=v.current(),e.add(nt);for(y=t.w().getEnumerator();y.moveNext();)tt=y.current(),e.add(tt);for(p=t.v().getEnumerator();p.moveNext();)it=p.current(),e.add(it);return t.a9(e,i,r,b,k,l,f)},a9:function(t,i,r,u,f,e,o){var s=this,p,g,h,w,b,c,l,d,a,ft,et;if(s.af.count()>0){for(s.dataProvider().am(t),p=s.a7.getEnumerator();p.moveNext();)g=p.current(),g.o();s.af.clear()}if(s.a6(i,r),s.ba(i,r,!0),u||f){if(h=null,i&&(w=s.ae(),b=w.where$1(n.ig.PositionInfo.prototype.$type,function(n){return n.c()=="Axis0"}).toList$1(n.ig.PositionInfo.prototype.$type),b.count()>0)){c=b.item(0);w.remove(c);var ot=s.result().axes().item(0).tuples().__inner[c.b()],nt=ot.members().item(c.a()),k=new n.ig.FlatDataPartialAxisProvider(s.dataProvider(),s.columnAxis(),nt,s.c()),st=k.generateAxis("Axis0");h=st.continueWithTask$1(n.ig.OlapResult.prototype.$type,function(){return s.dataProvider().ak(k,o,s.measures())});h=h.continueWithTask$2(n.ig.OlapResult.prototype.$type,n.ig.OlapResult.prototype.$type,function(t){var r,i;return s.d("Axis0",t.m()).tuples().count()==0&&nt.displayInfo(0),r=s.l(),s.l(s.l().extend(t.m(),"Axis0")),s.result(s.l().visibleResult()),n.ig.ResultViewHelper.prototype.f("Axis0",r,s.l()),n.ig.ResultViewHelper.prototype.e(c.c(),c.b(),c.a(),!0,s.l()),e.m(k),e.axis(s.d("Axis0",s.result())),i=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),i.e(s.l().visibleResult()),n.ig.ResultViewHelper.prototype.c(c.b(),c.a(),!0,e.e()),i.b()})}if(r){var v=i?"Axis1":"Axis0",tt=s.ae(),it=tt.where$1(n.ig.PositionInfo.prototype.$type,function(n){return n.c()==v}).toList$1(n.ig.PositionInfo.prototype.$type);if(u&&it.count()>0){l=it.item(0);tt.remove(l);var ht=s.result().axes().where$1(n.ig.OlapResultAxis.prototype.$type,function(n){return n.name()==v}).first$1(n.ig.OlapResultAxis.prototype.$type).tuples().__inner[l.b()],rt=ht.members().item(l.a()),ut,y=new n.ig.FlatDataPartialAxisProvider(s.dataProvider(),s.rowAxis(),rt,s.c());ut=h!=null?h.continueWithTask$1(n.ig.OlapResultAxis.prototype.$type,function(){return y.generateAxis(v)}):y.generateAxis(v);h=ut.continueWithTask$1(n.ig.OlapResult.prototype.$type,function(){return s.dataProvider().ak(e,y,s.measures())});h=h.continueWithTask$2(n.ig.OlapResult.prototype.$type,n.ig.OlapResult.prototype.$type,function(t){var u,e,f;return s.l()==null&&s.l(new n.ig.OlapResultView(s.result(),s.result(),i,r)),u=s.l().hasColumns()?"Axis1":"Axis0",s.d(u,t.m()).tuples().count()==0&&rt.displayInfo(0),e=s.l(),s.l(s.l().extend(t.m(),u)),s.result(s.l().visibleResult()),n.ig.ResultViewHelper.prototype.f(u,e,s.l()),n.ig.ResultViewHelper.prototype.e(l.c(),l.b(),l.a(),!0,s.l()),f=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),f.e(s.l().visibleResult()),o.m(y),o.axis(s.d(u,s.result())),n.ig.ResultViewHelper.prototype.c(l.b(),l.a(),!0,o.e()),f.b()})}}return h!=null?h:(d=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),d.e(s.result()),d.b())}return(a=new n.ig.TaskCompletionSource$1(n.ig.OlapResult.prototype.$type,0),e==null&&o==null&&s.measures().count()==0)?(ft=function(){var t=new n.ig.OlapResult;return t.isEmpty(!0),t}(),s.result(ft),a.e(s.result()),a.b()):(et=s.dataProvider().ak(e,o,s.measures()),et.continueWithTask$2(n.ig.OlapResult.prototype.$type,n.ig.OlapResult.prototype.$type,function(t){return s.l(new n.ig.OlapResultView(t.m(),t.m(),i,r)),s.result(s.l().visibleResult()),s.clearPendingChanges(),a.e(s.result()),a.b()}))},a8:function(){for(var r,e,u,o,s,a,h,f,c,t=this,i=new n.ig.Dictionary$2(String,String,0),l=0;l<t.columnAxis().count();l++)if(r=t.columnAxis().item(l),n.ig.util.cast(n.ig.MeasureList.prototype.$type,r)===null){if(i.containsKey(r.uniqueName()))return"the "+r.uniqueName()+" hierarchy is used twice in columns";i.add(r.uniqueName(),"columns")}for(e=0;e<t.rowAxis().count();e++)if(u=t.rowAxis().item(e),n.ig.util.cast(n.ig.MeasureList.prototype.$type,u)===null){if(i.containsKey(u.uniqueName()))return"the "+u.uniqueName()+" hierarchy is used in rows and in columns";i.add(u.uniqueName(),"rows")}for(o=0;o<t.filters().count();o++){if(s=t.filters().item(o),function(){var n=i.tryGetValue(s.uniqueName(),a);return a=n.value,n.ret}())return"the "+s.uniqueName()+" hierarchy is used in filters and in "+a;i.add(s.uniqueName(),"filters")}for(h=0;h<t.measures().count();h++){if(f=t.measures().item(h),function(){var n=i.tryGetValue(f.uniqueName(),c);return c=n.value,n.ret}())return c=="measures"?"the "+f.uniqueName()+" measure is used twice in measures":"the "+f.uniqueName()+" measure is used in measures and in "+c;i.add(f.uniqueName(),"measures")}return null},a6:function(t,i){for(var e,o,p,w,ut,b,ft,v,u,et,s,k,d,h,g,ot,c,nt,tt,l,it,r=this,f=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.PositionInfo.prototype.$type),0),rt=r.l(),a=r.ae(),y=0;y<a.count();y++)e=a.item(y),function(){var n=f.tryGetValue(e.c(),o);return o=n.value,n.ret}()||(o=new n.ig.List$1(n.ig.PositionInfo.prototype.$type,0),f.add(e.c(),o)),r.l()==null&&r.l(new n.ig.OlapResultView(r.result(),r.result(),t,i)),p=r.l().expandTupleMember(e.c(),e.b(),e.a()),p!=null&&(o.add(e),r.l(p),r.result(r.l().visibleResult()));for(w=f.getEnumerator();w.moveNext();)for(ut=w.current(),b=ut.value().getEnumerator();b.moveNext();)ft=b.current(),a.remove(ft);if(v=0,u="Axis0",t){if(et=f.keys().where$1(String,function(n){return n==u}).firstOrDefault$1(String)!=null,s=r.a2(v),s!=null&&et&&(k=f.item(u),k.count()>0)){for(n.ig.ResultViewHelper.prototype.f(u,rt,r.l()),d=k.getEnumerator();d.moveNext();)h=d.current(),n.ig.ResultViewHelper.prototype.e(u,h.b(),h.a(),!0,r.l()),n.ig.ResultViewHelper.prototype.c(h.b(),h.a(),!0,s.e());g=r.d(u,r.result());s.axis(g);n.ig.ResultViewHelper.prototype.b(g.positionResolver(),s.e())}v++;u="Axis1"}if(i&&(ot=f.keys().where$1(String,function(n){return n==u}).firstOrDefault$1(String)!=null,c=r.a2(v),c!=null&&ot&&(nt=f.item(u),nt.count()>0))){for(n.ig.ResultViewHelper.prototype.f(u,rt,r.l()),tt=nt.getEnumerator();tt.moveNext();)l=tt.current(),n.ig.ResultViewHelper.prototype.e(u,l.b(),l.a(),!0,r.l()),n.ig.ResultViewHelper.prototype.c(l.b(),l.a(),!0,c.e());it=r.d(u,r.result());c.axis(it);n.ig.ResultViewHelper.prototype.b(it.positionResolver(),c.e())}return a.count()>0},ba:function(t,i,r){var u=this,h,e,s,c,f,nt,l,y,p,w,tt,it,a,b,k,d,rt;if(u.result()!=null){var v=u.ad(),o=new n.ig.Dictionary$2(String,n.ig.IList$1.prototype.$type.specialize(n.ig.PositionInfo.prototype.$type),0),g=u.l();for(h=0;h<v.count();h++)e=v.item(h),function(){var n=o.tryGetValue(e.c(),s);return s=n.value,n.ret}()||(s=new n.ig.List$1(n.ig.PositionInfo.prototype.$type,0),o.add(e.c(),s)),s.add(e),r&&(u.l()==null?u.l(new n.ig.OlapResultView(u.result(),u.result(),t,i)):(u.l(u.l().collapseTupleMember(e.c(),e.b(),e.a())),u.result(u.l().visibleResult())));if(c=0,f="Axis0",t){if(nt=o.keys().where$1(String,function(n){return n==f}).firstOrDefault$1(String)!=null,l=u.a2(c),l!=null&&nt&&(y=o.item(f),y.count()>0)){for(n.ig.ResultViewHelper.prototype.f(f,g,u.l()),p=y.getEnumerator();p.moveNext();)w=p.current(),n.ig.ResultViewHelper.prototype.c(w.b(),w.a(),!1,l.e());tt=u.d(f,u.result());l.axis(tt)}c++;f="Axis1"}if(i&&(it=o.keys().where$1(String,function(n){return n==f}).firstOrDefault$1(String)!=null,a=u.a2(c),a!=null&&it&&(b=o.item(f),b.count()>0))){for(n.ig.ResultViewHelper.prototype.f(f,g,u.l()),k=b.getEnumerator();k.moveNext();)d=k.current(),n.ig.ResultViewHelper.prototype.c(d.b(),d.a(),!1,a.e());rt=u.d(f,u.result());a.axis(rt)}v.clear()}},a1:function(t,i,r){var u=null;return t.count()>0&&(u=this.a2(r),i&&(u!=null?u.n(t):(u=new n.ig.FlatDataAxisProvider(this.dataProvider(),t,this.c()),this.bg(r,u)))),u},bg:function(n,t){this.a7.item(n,t)},a2:function(n){return n<this.a7.count()?this.a7.item(n):null},getMembersOfLevel:function(t){var i=this,u=new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0),f=t,r;return u.add(function(){var i=new n.ig.KeyValueItem;return i.a("LEVEL_UNIQUE_NAME"),i.b(t),i}()),r=i.dataProvider().discoverMembersAsync(null,u),r.i(function(n){for(var t=n.m().getEnumerator(),r;t.moveNext();)r=t.current(),i.c().aa(r);i.c().ac(f)}),r},getMembersOfHierarchy:function(t){var r=this,o=t,s=new n.ig.CoreOlapElementParser(t),u=s.b(),i,f,e;if(u.count()<2)throw new n.ig.ArgumentException(1,"Specified value: "+t+" is not valid.",t);return i=new n.ig.KeyValueItem,i.a("HIERARCHY_UNIQUE_NAME"),i.b(u.item(0)+"."+u.item(1)),f=new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0),f.add(i),e=r.dataProvider().discoverMembersAsync(null,f),e.i(function(n){for(var t=n.m().getEnumerator(),i;t.moveNext();)i=t.current(),r.c().aa(i);r.c().ab(o)}),e},getMembersOfMember:function(t){var e=this,o=new n.ig.CoreOlapElementParser(t),i=o.b(),r=new n.ig.KeyValueItem,u,f;if(i.count()<3)throw new n.ig.ArgumentException(1,"Specified value: "+t+" is not valid.",t);switch(i.count()){case 1:r.a("DIMENSION_UNIQUE_NAME");r.b(i.item(0));break;case 2:r.a("HIERARCHY_UNIQUE_NAME");r.b(i.item(0)+"."+i.item(1));break;default:r.a("LEVEL_UNIQUE_NAME");r.b(i.item(0)+"."+i.item(1)+"."+i.item(2))}return u=new n.ig.List$1(n.ig.KeyValueItem.prototype.$type,0),u.add(r),u.add(function(){var i=new n.ig.KeyValueItem;return i.a("MEMBER_UNIQUE_NAME"),i.b(t),i}()),f=e.dataProvider().discoverMembersAsync(null,u),f.i(function(n){for(var t=n.m().getEnumerator(),i;t.moveNext();)i=t.current(),e.c().aa(i)}),f},bb:function(t,i){if(this.m(!0),this.bi(0,this.columnAxis(),this.rowAxis()),this.ay(i,this.u()),this.a0(i,this.columnAxis()),i.action()!=n.ig.NotifyCollectionChangedAction.prototype.reset&&this.columnAxis()!=null){var r=Math.max(i.newStartingIndex(),i.oldStartingIndex());this.bj("Axis0",r)}},bf:function(t,i){if(this.s(!0),this.bi(1,this.rowAxis(),this.columnAxis()),this.ay(i,this.w()),this.a0(i,this.rowAxis()),i.action()!=n.ig.NotifyCollectionChangedAction.prototype.reset&&this.rowAxis()!=null){var r=this.columnAxis()==null?"Axis0":"Axis1",u=Math.max(i.newStartingIndex(),i.oldStartingIndex());this.bj(r,u)}},a7:null,bi:function(n,t,i){t.count()>0?i.count()>0?this.a7.count()<2&&this.a7.insert(n,null):this.a7.count()==0&&this.a7.insert(0,null):this.a7.count()>0&&(this.a7.count()>1?this.a7.removeAt(n):this.a7.removeAt(0))},bj:function(n,t){for(var e,i,o,u=this.ae(),f=this.ad(),r=f.count()-1;r>=0;r--)e=f.item(r),e.c()==n&&e.a()>=t&&f.removeAt(r);for(i=u.count()-1;i>=0;i--)o=u.item(i),o.c()==n&&o.a()>=t&&u.removeAt(i)},bc:function(n,t){this.n(!0);this.ay(t,this.v())},bd:function(){this.r(!0);this.az()},$type:new n.ig.Type("FlatDataSourceImpl",n.ig.OlapDataSource.prototype.$type)},!0);n.ig.util.defType("IFlatDataProviderFactory","Object",{$type:new n.ig.Type("IFlatDataProviderFactory",null,[n.ig.IOlapDataProviderFactory.prototype.$type])},!0);n.ig.util.defType("DefaultFlatDataProviderFactory","Object",{b:null,a:null,init:function(t,i){n.ig.Object.prototype.init.call(this);this.b=t;this.a=i},createDataProvider:function(){return new n.ig.FlatDataProvider(this.b,this.a)},$type:new n.ig.Type("DefaultFlatDataProviderFactory",n.ig.Object.prototype.$type,[n.ig.IFlatDataProviderFactory.prototype.$type])},!0);n.ig.util.defType("FlatDataSourceOptions","DataSourceBaseOptions",{init:function(){n.ig.DataSourceBaseOptions.prototype.init.call(this)},_itemsSource:null,itemsSource:function(n){return arguments.length===1?(this._itemsSource=n,n):this._itemsSource},_dataSourceMetadata:null,dataSourceMetadata:function(n){return arguments.length===1?(this._dataSourceMetadata=n,n):this._dataSourceMetadata},_dataProviderFactory:null,dataProviderFactory:function(n){return arguments.length===1?(this._dataProviderFactory=n,n):this._dataProviderFactory},$type:new n.ig.Type("FlatDataSourceOptions",n.ig.DataSourceBaseOptions.prototype.$type)},!0);n.ig.util.defType("OlapFlatDataSource","DataSourceBase",{a5:null,init:function(t){if(this.a5=null,n.ig.DataSourceBase.prototype.init.call(this),t==null)throw new n.ig.ArgumentNullException("options");this.a5=t;this.a7(this.a5)},a3:function(t){var r=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"metadata"),i,u;if(r==null)throw new n.ig.InvalidOperationException(1,"metadata is null or undefined.");return i=new n.ig.DataSourceMetadata,u=this.a2(r),i.a(u),i},a2:function(t){var r=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"cube"),i;if(r==null)throw new n.ig.InvalidOperationException(1,"metadata.cube is null or undefined.");if(i=new n.ig.CubeMetadata,i.e(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"name")),String.isNullOrEmpty(i.e()))throw new n.ig.InvalidOperationException(1,"cube.name is null, empty or undefined");return i.c(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"caption")),String.isNullOrEmpty(i.c())&&i.c(i.e()),i.b(this.a4(r)),i.d(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"description")),i.a(this.ay(r)),i},a4:function(t){var u=this,i=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"measuresDimension");if(i==null)return null;var f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(i,"caption"),e=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(i,"name"),r=function(){var t=new n.ig.MeasuresDimensionMetadata;return t.b(f),t.c(e),t}();return r.a(u.a1(i)),r},ay:function(t){var f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"dimensions"),e,u,i,r;if(f==null)return null;for(e=new n.ig.ArrayListCollection$1(n.ig.DimensionMetadata.prototype.$type),u=0;u<f.length;u++){if(i=new n.ig.DimensionMetadata,e.add(i),r=f[u],i.e(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"name")),String.isNullOrEmpty(i.e()))throw new n.ig.InvalidOperationException(1,"dimension.name is null, empty or undefined");i.b(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"caption"));String.isNullOrEmpty(i.b())&&i.b(i.e());i.c(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"defaultHierarchy"));i.a(this.az(r));i.d(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"description"))}return e},a1:function(t){var f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"measures"),e,u,i,r;if(f==null)return null;for(e=new n.ig.ArrayListCollection$1(n.ig.MeasureMetadata.prototype.$type),u=0;u<f.length;u++){if(i=new n.ig.MeasureMetadata,e.add(i),r=f[u],i.f(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"name")),String.isNullOrEmpty(i.f()))throw new n.ig.InvalidOperationException(1,"measure.name is null, empty or undefined");if(i.e(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"caption")),String.isNullOrEmpty(i.e())&&i.e(i.f()),i.d(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"displayFormat")),i.c(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"displayFolder")),i.b(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"aggregator")),i.b()==null)throw new n.ig.InvalidOperationException(1,"aggregator is null or undefined for measureMetadata: "+i.f());}return e},az:function(t){var f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"hierarchies"),e,u,i,r;if(f==null)return null;for(e=new n.ig.ArrayListCollection$1(n.ig.HierarchyMetadata.prototype.$type),u=0;u<f.length;u++){if(i=new n.ig.HierarchyMetadata,e.add(i),r=f[u],i.e(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"name")),String.isNullOrEmpty(i.e()))throw new n.ig.InvalidOperationException(1,"hierarchy.hierarchyName is null, empty or undefined");if(i.b(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"caption")),String.isNullOrEmpty(i.b())&&i.b(i.e()),i.d(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(r,"displayFolder")),i.a(this.a0(r)),i.a()==null||i.a().count()==0)throw new n.ig.InvalidOperationException(1,"levelKeys is null, empty or undefined for hierarchyMetadata: "+i.e());}return e},a0:function(t){var f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t,"levels"),e,r,i,u;if(f==null)return null;for(e=new n.ig.ArrayListCollection$1(n.ig.LevelMetadata.prototype.$type),r=0;r<f.length;r++){if(i=new n.ig.LevelMetadata,e.add(i),u=f[r],i.c(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(u,"name")),String.isNullOrEmpty(i.c()))throw new n.ig.InvalidOperationException(1,"level.name is null, empty or undefined");if(i.b(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(u,"caption")),String.isNullOrEmpty(i.b())&&i.b(i.c()),i.a(n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(u,"memberProvider")),i.a()==null)throw new n.ig.InvalidOperationException(1,"levelMetadata.memberProvider is null or undefined");}return e},a7:function(t){var i=t,u=this.a6(t),f=i.dataSource,r;!i.dataSource&&i.dataSourceUrl&&(i.dataSource=i.dataSourceUrl);r={callback:this.dataSourceDataResolved,callee:this,dataSource:i.dataSource,defaultChildrenDataProperty:i.bindings.childDataProperty,responseDataType:i.responseDataType,localSchemaTransform:i.dataSourceType&&i.dataSourceType==="xml"?!0:!1,schema:u};i.dataSourceType&&(r.type=i.dataSourceType);i.responseDataKey&&(r.responseDataKey=i.responseDataKey);i.dataSource instanceof n.ig.DataSource||(i.dataSource=new n.ig.DataSource(r));i.dataSource.dataBind(this.dataSourceDataResolved,this)},dataSourceDataResolved:function(){var t=this,i=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t.a5,"dataSource");if(i==null)throw new n.ig.InvalidOperationException(1,"dataSource is null or undefined");var r=t.a3(t.a5),u=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t.a5,"measures"),f=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t.a5,"filters"),e=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t.a5,"columns"),o=n.ig.jQueryUtils.prototype.getJavascriptObjectProperty(t.a5,"rows"),s=n.ig.jQueryUtils.prototype.getJavascriptObjectMethodResult(i,"data"),h=function(){var t=new n.ig.FlatDataSourceOptions;return t.measures(u),t.filters(f),t.columns(e),t.rows(o),t.itemsSource(s),t.dataSourceMetadata(r),t}();t.dataSource(new n.ig.FlatDataSourceImpl(h))},a6:function(n){var u=n,i={},r=u,t=u.bindings;return t==null?(r.bindings={},i.text={name:"Text",type:"string"},r.bindings.textKey="Text",i.value={name:"Value",type:"string"},r.bindings.valueKey="Value",i.imageUrl={name:"ImageUrl",type:"string"},r.bindings.imageUrlKey="ImageUrl",i.navigateUrl={name:"NavigateUrl",type:"string"},r.bindings.navigateUrlKey="NavigateUrl",i.childData={name:"Nodes",type:"object"},r.bindings.childDataProperty="Nodes",i.target={name:"Target",type:"string"},r.bindings.targetKey="Target",t=r.bindings):r.dataSourceType==="xml"&&t.searchFieldXPath&&(i.searchField=t.searchFieldXPath),i.fields=[],t.textKey&&(i.fields.push({name:t.textKey,type:"string",xpath:t.textXPath}),i.textKey=t.textKey),t.valueKey&&(i.fields.push({name:t.valueKey,type:"string",xpath:t.valueXPath}),i.valueKey=t.valueKey),t.navigateUrlKey&&(i.fields.push({name:t.navigateUrlKey,type:"string",xpath:t.navigateUrlXPath}),i.navigateUrlKey=t.navigateUrlKey),t.imageUrlKey&&(i.fields.push({name:t.imageUrlKey,type:"string",xpath:t.imageUrlXPath}),i.imageUrlKey=t.imageUrlKey),t.targetKey&&(i.fields.push({name:t.targetKey,type:"string"}),i.targetKey=t.targetKey),t.expandedKey&&(i.fields.push({name:"Expanded",type:"boolean"}),i.expandedKey=t.expandedKey),t.primaryKey&&(i.fields.push({name:t.primaryKey,type:"string"}),i.primaryKey=t.primaryKey),t.childDataProperty&&(i.fields.push({name:t.childDataProperty,type:"object",xpath:t.childDataXPath}),i.childDataProperty=t.childDataProperty),!i.searchField&&r.responseDataKey&&(i.searchField=r.responseDataKey),i},$type:new n.ig.Type("OlapFlatDataSource",n.ig.DataSourceBase.prototype.$type)},!0);n.ig.FlatDataProvider.prototype.ai="(All)";n.ig.util.extCopy(n.ig.TaskExtensions,[[[n.ig.Task,n.ig.Task$1],["continueWithTask$1","continueWithTask$2"]]]);n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2],["ofType$1","cast$1"]]])}(jQuery),function(n){var t=function(n){return n===null||n===undefined},i=n.ui.draggable.prototype.widgetFullName||n.ui.draggable.prototype.widgetName,r=n.ui.igTree.prototype.widgetFullName||n.ui.igTree.prototype.widgetName;n.ig=n.ig||{};n.ig.Pivot=n.ig.Pivot||{};n.ig.Pivot._pivotShared=n.ig.Pivot._pivotShared||{_isInstance:function(n,i){return i!==undefined&&!t(n)&&n.$type&&n.$type.name===i},_const:{index:0,dragCursorAt:{top:-10,left:10},dragHelperMarkup:"<div class='ui-widget ui-corner-all ui-igpivot-draghelper'><p><span><\/span><strong>{0}<\/strong><\/p><\/div>",touchEvents:{mousedown:"touchstart",mouseover:"mouseover",mouseout:"mouseover"},ie:!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())},_insertIndex:0,_showLastLevelExpanders:!0,_createDataSource:function(i,r){var f=null,u;return!t(i)&&(this._isInstance(i,"OlapXmlaDataSource")||this._isInstance(i,"OlapFlatDataSource"))?f=i:t(r)||(u=n.extend({},r),delete u.xmlaOptions,delete u.flatDataOptions,t(r.xmlaOptions)||t(r.xmlaOptions.serverUrl)?t(r.flatDataOptions)||t(r.flatDataOptions.dataSource)&&t(r.flatDataOptions.dataSourceUrl)||(u=n.extend(u,r.flatDataOptions),f=new n.ig.OlapFlatDataSource(u)):(u=n.extend(u,r.xmlaOptions),f=new n.ig.OlapXmlaDataSource(u))),f},_isTouch:function(){var n=typeof Modernizr=="object"&&window.Modernizr.touch===!0;return(!n||navigator.appVersion.indexOf("Windows")!==-1)&&navigator.appVersion.indexOf("Windows")!==-1&&navigator.appVersion.indexOf("Tablet")!==-1?!0:!1},_addingKpiMetadataItems:function(t,i){var f,r,e,o,s,h,c,u;return f=t.getCoreElement(function(n){return n.uniqueName()===i},n.ig.Kpi.prototype.getType()),u=[],e=f.kpiValue(),o=f.kpiGoal(),s=f.kpiStatus(),h=f.kpiTrend(),c=f.kpiWeight(),null!==e&&""!==e&&(r=t.getCoreElement(function(n){return n.uniqueName()===e},n.ig.Measure.prototype.getType()),null===r&&(r=t.getCoreElement(function(n){return n.uniqueName()===e},n.ig.KpiMeasure.prototype.getType())),u.push(r)),null!==o&&""!==o&&(r=t.getCoreElement(function(n){return n.uniqueName()===o},n.ig.Measure.prototype.getType()),null===r&&(r=t.getCoreElement(function(n){return n.uniqueName()===o},n.ig.KpiMeasure.prototype.getType())),u.push(r)),null!==s&&""!==s&&(r=t.getCoreElement(function(n){return n.uniqueName()===s},n.ig.KpiMeasure.prototype.getType()),u.push(r)),null!==h&&""!==h&&(r=t.getCoreElement(function(n){return n.uniqueName()===h},n.ig.KpiMeasure.prototype.getType()),u.push(r)),null!==c&&""!==c&&(r=t.getCoreElement(function(n){return n.uniqueName()===c},n.ig.KpiMeasure.prototype.getType()),u.push(r)),u},_getEvent:function(n){return this._isTouch()?this._const.touchEvents[n]:n},_makeDroppable:function(t){var i=this;this._isTouch()||t.droppable({tolerance:"pointer",accept:function(n){return n.hasClass("ui-igpivot-dragover")===!1&&n.closest("li.ui-igtree-node").length===0&&(n.hasClass("ui-igpivot-metadataitem")||n.find(".ui-igpivot-metadataitem:first").length>0)},over:function(t,r){var e=!0,f=n(r.helper.html()),u=r.draggable,o,s;if(u.hasClass("ui-igpivot-metadataitem")||(u=u.find(".ui-igpivot-metadataitem:first")),u.length>0)o=u.attr("data-type"),s=u.attr("data-name");else return!1;n.isFunction(i.options.customMoveValidation)&&(e=i.options.customMoveValidation.call(i.element,i.widgetName,o,s));r.helper.hasClass("ui-igpivot-draghelper")&&(e?(f.find("span").removeClass("ui-icon-plus ui-icon-cancel").addClass("ui-icon-close").siblings("strong"),r.helper.removeClass(i.css.dropIndicator).addClass(i.css.invalidDropIndicator).html(f)):(f.find("span").removeClass("ui-icon-plus ui-icon-close").addClass("ui-icon-cancel").siblings("strong"),r.helper.removeClass(i.css.dropIndicator).addClass(i.css.invalidDropIndicator).html(f)))},out:function(t,r){var u=n(r.helper.html());r.helper.hasClass("ui-igpivot-draghelper")&&(u.find("span").removeClass("ui-icon-close ui-icon-plus").addClass("ui-icon-cancel").siblings("strong"),r.helper.removeClass(i.css.dropIndicator).addClass(i.css.invalidDropIndicator).html(u))},drop:function(t,r){var f=r.draggable,c=!0,o,e,s,u,l,a,h;if(r.draggable.unbind("."+i.widgetName),f.hasClass("ui-igpivot-metadataitem")||(f=f.find(".ui-igpivot-metadataitem:first")),f.length>0)o=f.attr("data-type"),s=f.attr("data-name");else return!1;if(n.isFunction(i.options.customMoveValidation)&&(h=n(this).attr("data-role"),a=h===undefined?i.widgetName:h,c=i.options.customMoveValidation.call(i.element,a,o,s)),!c)return!1;switch(o){case n.ig.Dimension.prototype.getType().typeName():e=n.ig.Dimension.prototype.getType();break;case n.ig.Hierarchy.prototype.getType().typeName():e=n.ig.Hierarchy.prototype.getType();break;case n.ig.Measure.prototype.getType().typeName():e=n.ig.Measure.prototype.getType();break;case n.ig.MeasureList.prototype.getType().typeName():e=n.ig.MeasureList.prototype.getType();break;case n.ig.Kpi.prototype.getType().typeName():e=n.ig.Kpi.prototype.getType();break;case n.ig.KpiMeasure.prototype.getType().typeName():e=n.ig.KpiMeasure.prototype.getType();break;default:return!1}return(u=i._ds.getCoreElement(function(n){return n.uniqueName()===s},e),u&&(l=i._triggerMetadataRemoving(t,f,u),l))?(i._ds.removeFilterItem(u),i._ds.removeRowItem(u),i._ds.removeColumnItem(u),i._ds.removeMeasureItem(u),i._triggerMetadataRemoved(t,u),i._updateDataSource(),!0):!1}})},_createDropAreaOptions:function(){var t=this;return{greedy:!0,tolerance:"pointer",activeClass:this.css.activeDropArea,accept:function(i){return t._accept(n(this),i)},over:function(n,i){t._onDraggableOver(n,i)},out:function(n,i){t._onDraggableOut(n,i)},drop:function(i,r){var u=r.draggable,e,f;return(u.hasClass("ui-igpivot-metadataitem")||(u=u.find(".ui-igpivot-metadataitem:first")),u.length>0)?(e=u.attr("data-type"),f=u.attr("data-name"),f||(f="null"),t._onDrop(i,r,n(this),u,e,f)):!1}}},_onDataSourceCollectionChanged:function(t,r,u,f){var c,e,o,l,a,v,h,y,s;c=r.action();switch(c){case n.ig.NotifyCollectionChangedAction.prototype.add:e=r.newItems().__inner;h=r.newStartingIndex();h===0?this._createMetadataElement(e[0],f,"prependTo",u):(y=u.find(".ui-igpivot-metadataitem")[h-1],this._createMetadataElement(e[0],f,"insertAfter",y));break;case n.ig.NotifyCollectionChangedAction.prototype.remove:for(e=r.oldItems().__inner,v=function(t,i){return n(i).attr("data-name")===a},s=function(t,r){var u=n(r).data(i);u&&u.destroy()},o=0,l=e.length;o<l;o++)this._isInstance(e[o],"MeasureList")?u.find(".ui-igpivot-metadataitem[data-type="+n.ig.MeasureList.prototype.getType().typeName()+"]").each(s).remove():(a=e[o].uniqueName(),u.find(".ui-igpivot-metadataitem").filter(v).each(s).remove());break;case n.ig.NotifyCollectionChangedAction.prototype.reset:s=function(t,r){var u=n(r).data(i);u&&u.destroy()};u.find(".ui-igpivot-metadataitem").each(s).remove()}},_createMetadataElement:function(t,i,r,u){var f=this,s=this.options.dragAndDropSettings,o,e;return e="<li ",this._isInstance(t,"MeasureList")&&t.caption()===null?t.caption(n.ig.PivotShared.locale.measureList):e+="data-name='"+t.uniqueName()+"' ",e+="title='"+t.caption()+"' data-type='"+t.getType().typeName()+"'>",this._isInstance(t,"Hierarchy")&&!i&&(e+="<span style='display:block; float:left;' class='ui-icon "+this.css.filterIcon+"'><\/span>"),this.widget()[0].className.indexOf("ui-igpivotdataselector ui-droppable")!==-1&&u!==undefined?(e+="<div style='float:left; display:block; width: calc(100%",e+="Hierarchy"===t.getType().typeName()?" - 28px":" - 16px",e+=");overflow-x:hidden !important; text-overflow:ellipsis !important;'>",e+="<span data-role='caption'>",e+=t.caption(),e+="<\/span>",e+="<\/div>"):e+="<span data-role='caption'>"+t.caption()+"<\/span>",i||(e+="<span class='ui-icon ui-icon-close'><\/span>"),e+="<\/li>",o=n(e).addClass(this.css.metadataItem),o[r](u),i||(o.find("span.ui-icon-pivot-smallfilter").click(function(n){return f._createFilterDropDown(n,this,t),!1}),o.find("span.ui-icon-close").click(function(n){var i=f._triggerMetadataRemoving(n,o,t);return i?(f._ds.removeFilterItem(t),f._ds.removeRowItem(t),f._ds.removeColumnItem(t),f._ds.removeMeasureItem(t),f._triggerMetadataRemoved(n,t),f._updateDataSource(),!1):!1}),this._isTouch()||o.draggable({appendTo:s.appendTo,containment:s.containment,opacity:s.dragOpacity,zIndex:s.zIndex,cursorAt:this._const.dragCursorAt,revert:!1,cancel:".ui-icon",helper:function(t){var r=n(t.target).closest(".ui-igpivot-metadataitem").find("span[data-role='caption']"),i=n(f._const.dragHelperMarkup.replace("{0}",r.text()));return i.addClass(f.css.invalidDropIndicator).find("span").addClass("ui-icon"),i},start:function(n,i){return f._triggerDragStart(n,i,t)},drag:function(n,i){return f._triggerDrag(n,i,t)},over:function(n,t){f._onDraggableOver(n,t)},out:function(n,t){f._onDraggableOut(n,t)},stop:function(n,t){f._triggerDragStop(n,t)}}),o.click(function(n){f._createMetadataItemDropDown(n,this,t)})),o},_accept:function(t,i){var o,r,u=!1,f,e,s=this._ds;if(i.hasClass("ui-igpivot-metadataitem")||(i=i.find(".ui-igpivot-metadataitem:first")),r=i.attr("data-type"),o=t.attr("data-role"),e=s.getCoreElement(function(t){return t.dimensionType()===n.ig.DimensionType.prototype.measure},n.ig.Dimension.prototype.getType()),f=i.text()===e.name()||i.text()===e.caption(),r)switch(o){case"rows":case"columns":u=r===n.ig.Hierarchy.prototype.getType().typeName()||r===n.ig.Dimension.prototype.getType().typeName()&&!f||r===n.ig.MeasureList.prototype.getType().typeName();break;case"filters":u=r===n.ig.Hierarchy.prototype.getType().typeName()||r===n.ig.Dimension.prototype.getType().typeName()&&!f;break;case"measures":u=(r===n.ig.Measure.prototype.getType().typeName()||r===n.ig.Kpi.prototype.getType().typeName()||r===n.ig.KpiMeasure.prototype.getType().typeName()||f)&&"MeasureList"!==i.attr("data-type")}return u},_onDraggableOver:function(t,i){var s=this,f=!0,u=n(i.helper.html()),r=i.draggable,e,o;if(i.draggable.addClass("ui-igpivot-dragover"),r.hasClass("ui-igpivot-metadataitem")||(r=r.find(".ui-igpivot-metadataitem:first")),r.length>0)e=r.attr("data-type"),o=r.attr("data-name");else return!1;if(n.isFunction(this.options.customMoveValidation)&&(f=this.options.customMoveValidation.call(this.element,n(t.target).attr("data-role"),e,o)),i.helper.hasClass("ui-igpivot-draghelper")&&(f?(u.find("span").removeClass("ui-icon-cancel ui-icon-close").addClass("ui-icon-plus").siblings("strong"),i.helper.removeClass(this.css.invalidDropIndicator).addClass(this.css.dropIndicator).html(u)):(u.find("span").removeClass("ui-icon-plus ui-icon-close").addClass("ui-icon-cancel").siblings("strong"),i.helper.removeClass(this.css.dropIndicator).addClass(this.css.invalidDropIndicator).html(u))),!f)return!1;i.draggable.bind("drag."+this.widgetName,function(n,t){s._onDraggableDrag(n,t)})},_onDraggableDrag:function(t,i){var r=n(t.originalEvent.target),u="<li class='"+this.css.insertItem+"'><\/li>";r.hasClass("ui-igpivot-insertitem")&&(!this._const.ie||this._const.ie&&document.documentMode!==8)||(n(document).find(".ui-igpivot-insertitem").remove(),r.is("span")&&(r=r.closest(".ui-igpivot-metadataitem")),r.parent().hasClass("ui-igpivot-droparea")||r.hasClass("ui-igpivot-droparea"))&&(r.is(".ui-igpivot-metadataitem")?this._shouldAppendToTarget(r,i)?(this._insertIndex=r.index()+1,n(u).insertAfter(r)):r.index()===0?(this._insertIndex=0,n(u).insertBefore(r)):(this._insertIndex=r.index(),n(u).insertBefore(r)):r.is(".ui-igpivot-droparea")&&(r=r.find(".ui-igpivot-metadataitem:last"),this._insertIndex=r.index()+1,n(u).insertAfter(r)))},_onDraggableOut:function(t,i){var r=n(i.helper.html()),u;i.draggable.removeClass("ui-igpivot-dragover");u=i.draggable.closest("li.ui-igtree-node").length===0?"ui-icon-close":"ui-icon-cancel";i.helper.hasClass("ui-igpivot-draghelper")&&(r.find("span").removeClass("ui-icon-plus").addClass(u).siblings("strong"),i.helper.removeClass(this.css.dropIndicator).addClass(this.css.invalidDropIndicator).html(r));i.draggable.unbind("drag."+this.widgetName);n(document).find(".ui-igpivot-insertitem").remove();this._insertIndex=0},_getDefaultHierarchy:function(t,i,r,u){var f,e,o;if(t=i.substr(1,i.length-2),null!==r.getDimension(i)&&n.ig.DimensionType.prototype.measure===r.getDimension(i).dimensionType()){for(f=r.metadataTree().children().length-1;f>=0;f--)if(i===r.metadataTree().children()[f].item().uniqueName()){for(e=r.metadataTree().children()[f];null!==e.children();)e=e.children()[0];i=e.item().uniqueName();o=r.getMeasure(i)}}else if(u===n.ig.Dimension.prototype.getType().typeName()){for(f=r.metadataTree().children().length-1;f>=0;f--)if(t===r.metadataTree().children()[f].item().name()||t===r.metadataTree().children()[f].item().name().replace(" ","")){if(typeof r.metadataTree().children()[f].item().defaultHierarchy=="function"&&r.metadataTree().children()[f].item().defaultHierarchy())i=r.metadataTree().children()[f].item().defaultHierarchy();else if(null!==r.metadataTree().children()[f].children()[0].item())i=r.metadataTree().children()[f].children()[0].item().uniqueName();else{for(e=r.metadataTree().children()[f].children()[0];null===e.item();)e=e.children()[0];i=e.item().uniqueName()}break}o=r.getHierarchy(i)}else o=null;return o},_onDrop:function(t,r,u,f,e,o){var h=this._ds,b=!0,p=n(u).attr("data-role"),l=this._insertIndex,s,a,y,v,w,c,k,d;if(r.draggable.unbind("."+this.widgetName),n(document).find(".ui-igpivot-insertitem").remove(),n.isFunction(this.options.customMoveValidation)&&(b=this.options.customMoveValidation.call(this.element,n(t.target).attr("data-role"),e,o)),!b)return!1;switch(e){case n.ig.Dimension.prototype.getType().typeName():a=n.ig.Dimension.prototype.getType();break;case n.ig.Hierarchy.prototype.getType().typeName():a=n.ig.Hierarchy.prototype.getType();break;case n.ig.Measure.prototype.getType().typeName():a=n.ig.Measure.prototype.getType();break;case n.ig.Kpi.prototype.getType().typeName():a=n.ig.Kpi.prototype.getType();break;case n.ig.KpiMeasure.prototype.getType().typeName():a=n.ig.KpiMeasure.prototype.getType();break;case n.ig.MeasureList.prototype.getType().typeName():a=n.ig.MeasureList.prototype.getType();break;default:return!1}if(s=this._getDefaultHierarchy(d,o,h,e),null===s&&(s=h.getCoreElement(function(n){return n.uniqueName()===o},a)),!s)return!1;if(k=this._triggerMetadataDropping(t,r,u,f,s,l),k){if(y=(v=n.inArray(s,h.filters()))>-1?"filters":(v=n.inArray(s,h.rowAxis()))>-1?"rows":(v=n.inArray(s,h.columnAxis()))>-1?"columns":(v=n.inArray(s,h.measures()))>-1||s instanceof Array?"measures":null,y!==null&&y===p&&v<l&&l--,this._isInstance(s,"MeasureList"))h.setMeasureListLocation(p),h.setMeasureListIndex(l);else{this._isInstance(s,"Hierarchy")&&(w=h.getFilterMemberNames(o));switch(y){case"filters":h.removeFilterItem(s);break;case"rows":h.removeRowItem(s);break;case"columns":h.removeColumnItem(s);break;case"measures":if(s instanceof Array)for(c=0;c<s.length;c++)h.removeMeasureItem(s[c]);else h.removeMeasureItem(s)}switch(p){case"filters":h.insertFilterItem(l,s);break;case"rows":h.insertRowItem(l,s);break;case"columns":h.insertColumnItem(l,s);break;case"measures":if(s instanceof Array)for(c=0;c<s.length;c++)h.addMeasureItem(s[c]);else if(s instanceof n.ig.Kpi)for(s=this._addingKpiMetadataItems(h,s.name()),c=0;c<s.length;c++)h.removeMeasureItem(s[c]),h.addMeasureItem(s[c]);else h.insertMeasureItem(l,s)}if(this._isInstance(s,"Hierarchy"))for(c=0;c<w.length;c++)h.addFilterMember(o,w[c])}return this.widgetName==="igPivotGrid"&&r.draggable.data(i)&&delete r.draggable.data(i).plugins.stop,this._updateDataSource(),this._triggerMetadataDropped(t,r,u,f,s,l),!0}return!1},_createMetadataItemDropDown:function(t,i,r){var u=this,h=this.options,k=this._ds,e,b,f,o,v,l,y,a,s,d,p,w,c;if(e=n(i).closest(".ui-igpivot-droparea").attr("data-role"),s=n.isFunction(this.options.customMoveValidation)?function(n){return u.options.customMoveValidation.call(u.element,n,r.getType().name,r.uniqueName()||undefined)}:function(){return!0},b=n(this.options.dropDownParent).first(),f=n("<div class='"+this.css.metadataItemDropDown+"'><\/div>"),f.data("efh","1"),f.appendTo(b).bind(this._getEvent("mousedown"),function(n){n.stopPropagation()}),o=n("<ul class='ui-widget'><\/ul>").appendTo(f),p=this._getDefaultHierarchy(d,r.uniqueName(),k,r.getType().typeName()),p&&(r=p),w=n("li[data-name='"+r.uniqueName()+"']"),0<w.length&&(e=w.parent().attr("data-role")),this._isInstance(r,"Measure")||this._isInstance(r,"Kpi")?!h.disableMeasuresDropArea&&e!=="measures"&&s("measures")&&n("<li><span class='ui-icon ui-icon-pivot-measures'><\/span>"+n.ig.PivotShared.locale.addToMeasures+"<\/li>").appendTo(o).click(function(){if(u._isInstance(r,"Kpi")){for(a=u._addingKpiMetadataItems(u._ds,n(i).attr("data-name")),c=0;c<a.length;c++)u._ds.removeMeasureItem(a[c]),u._ds.addMeasureItem(a[c]);f.remove();u._updateDataSource()}else u._ds.removeMeasureItem(r),u._ds.addMeasureItem(r),f.remove(),u._updateDataSource()}):this._isInstance(r,"MeasureList")?(v=function(n,t){u._ds.setMeasureListLocation(n);u._ds.setMeasureListIndex(t);f.remove();u._updateDataSource()},!h.disableColumnsDropArea&&e!=="columns"&&s("columns")&&n("<li><span class='ui-icon ui-icon-pivot-clumns'><\/span>"+n.ig.PivotShared.locale.addToColumns+"<\/li>").appendTo(o).click(function(){v("columns",u._ds.columnAxis().length)}),!h.disableRowsDropArea&&e!=="rows"&&s("rows")&&n("<li><span class='ui-icon ui-icon-pivot-rows'><\/span>"+n.ig.PivotShared.locale.addToRows+"<\/li>").appendTo(o).click(function(){v("rows",u._ds.rowAxis().length)})):(l=function(n){var t,i=r.uniqueName(),e=u._ds.getFilterMemberNames(i);for(u._ds.removeFilterItem(r),u._ds.removeColumnItem(r),u._ds.removeRowItem(r),u._ds[n](r),t=0;t<e.length;t++)u._ds.addFilterMember(i,e[t]);f.remove();u._updateDataSource()},!h.disableFiltersDropArea&&e!=="filters"&&s("filters")&&n("<li><span class='ui-icon ui-icon-pivot-filters'><\/span>"+n.ig.PivotShared.locale.addToFilters+"<\/li>").appendTo(o).click(function(){l("addFilterItem")}),!h.disableColumnsDropArea&&e!=="columns"&&s("columns")&&n("<li><span class='ui-icon ui-icon-pivot-columns'><\/span>"+n.ig.PivotShared.locale.addToColumns+"<\/li>").appendTo(o).click(function(){l("addColumnItem")}),!h.disableRowsDropArea&&e!=="rows"&&s("rows")&&n("<li><span class='ui-icon ui-icon-pivot-rows'><\/span>"+n.ig.PivotShared.locale.addToRows+"<\/li>").appendTo(o).click(function(){l("addRowItem")})),y=f.find("li"),y.length===0){f.remove();return}f.css("position","absolute").position({of:i,my:"left top",at:"left bottom"});y.bind(this._getEvent("mouseover"),function(){n(this).addClass("ui-state-hover")}).bind(this._getEvent("mouseout"),function(){n(this).removeClass("ui-state-hover")});n(document).bind(this._getEvent("mousedown")+"."+this.widgetName,function(){f.remove();n(document).unbind("."+u.widgetName)})},_createFilterDropDown:function(t,i,r){var s=this,h,e,c,u,a,o,f,l;l=this._triggerFilterDropDownOpening(t,r);l&&(h=r.uniqueName(),e=new n.ig.HierarchyFilterView(r),c=n(this.options.dropDownParent).first(),u=n("<div class='"+this.css.filterDropDown+"'><\/div>"),u.data("efh","1"),u.css("position","absolute").attr("data-hierarchy",h).appendTo(c).position({of:i,my:"left top",at:"left bottom"}).bind(this._getEvent("mousedown"),function(n){n.stopPropagation()}),a=n("<div class='"+this.css.filterMembers+"'><\/div>").appendTo(u),o=n("<div class='ui-igpivot-filterdropdown-buttoncontainer'><\/div>").appendTo(u),f=function(n){s._removeFilterDropDown(n,u,r)},n("<button><\/button>").attr("data-role","ok").text(n.ig.PivotShared.locale.ok).appendTo(o).igButton().igButton("disable").click(function(n){s._onFilterOk(n,u,e,r)}),n("<button><\/button>").attr("data-role","cancel").text(n.ig.PivotShared.locale.cancel).appendTo(o).igButton().click(f),n(document).bind(this._getEvent("mousedown")+"."+this.widgetName,f),this._loadFilterMembers(e,r,f),this._triggerFilterDropDownOpened(t,u,r))},_loadFilterMembers:function(t,i,r){var w=this,f,s,e,h,a,o,c,l,v,y,p,u;if(f=this._ds,s=i.uniqueName(),h=f.getFilterMemberNames(s),h.length>0){for(c=[],l=0,u=0;u<h.length;u++)o=f.tryGetMember(h[u]),o&&(c.push(o),o.levelDepth()>l&&(l=o.levelDepth()));for(v=f.getCoreElements(function(n){return n.hierarchyUniqueName()===s&&n.depth()<=l},n.ig.Level.prototype.getType()),u=0;u<v.length;u++)y=f.tryGetMembersForLevel(v[u].uniqueName()),t.addFiltersForMembers(y);for(e=t.getRootFilterMembers(),e=e?e.__inner:[],u=0;u<e.length;u++)e[u].isSelected(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!1));for(u=0;u<c.length;u++)a=t.tryGetFilterMember(c[u].uniqueName()).filterMember,a&&a.isSelected(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,!0))}p=f.getCoreElement(function(n){return n.depth()===0&&n.hierarchyUniqueName()===s},n.ig.Level.prototype.getType());this._ds.getMembersOfLevel(p.uniqueName()).done(function(n){w._onFilterMembersLoaded(t,n,i)}).fail(r)},_onFilterMembersLoaded:function(t,i,r){var f,u,e;f=r.uniqueName();t.addFiltersForMembers(i);u=n(".ui-igpivot-filterdropdown").filter(function(){return n(this).attr("data-hierarchy")===f});u.length>0&&(e=n(u[0]).find(".ui-igpivot-filtermembers"),this._initTree(e,t))},_getScrollBarWidth:function(){var t=n('<div style="width: 100px; height: 100px; position: absolute; top: -10000px; left: -10000px; overflow: scroll"><\/div>').appendTo(n(document.body)),i;return i=t[0].offsetWidth-t[0].clientWidth,t.remove(),i},_getElementSize:function(t){var i=n('<div style="width: 5000px; height: 5000px; position: absolute; top: -10000px; left: -10000px;"><\/div>').appendTo(n(document.body)),r,u,f;return u=t.css("position"),f=t.css("float"),t.css({position:"relative",float:"left"}),t.appendTo(i),r=[t.width(),t.height()],t.css("position",u),t.css("float",f),t.detach(),i.remove(),r},_arrangeDropDown:function(t){var c=this,i,r,l,a,v,y,p,w,b,e,k,u,d,g,nt,o,s,h,tt,it,f,rt,ut;ut=30;i=n(".ui-igpivot-filterdropdown");r=n(".ui-igpivot-filterdropdown .ui-igpivot-filtermembers");l=r.height();a=n(".ui-igpivot-filterdropdown-buttoncontainer").innerHeight();v=parseInt(i.css("top").replace("px",""),10);y=n(document).scrollTop();s=n(window).height();h=window.innerHeight;p=s>h?s:h;w=y+p;b=w-a-ut;e=Math.floor(b-v);k=parseInt(i.css("left").replace("px",""),10);u=n("body").css("left");u=u==="auto"?0:parseInt(u.replace("px",""),10);d=n("body").width();g=u+d;nt=g;o=Math.floor(nt-k);r.css("max-height",e);i.css("max-width",o);tt=parseInt(i.css("padding-left").replace("px",""),10)+parseInt(i.css("padding-right").replace("px",""),10)+parseInt(i.css("border-left-width").replace("px",""),10)+parseInt(i.css("border-right-width").replace("px",""),10);rt=r[0].scrollTop;r.detach();it=c._getElementSize(r);i.prepend(r);r[0].scrollTop=rt;f=it[0]+c._getScrollBarWidth()+parseInt(r.css("padding-right").replace("px",""),10)+tt;f=Math.max(f,parseInt(i.css("min-width").replace("px",""),10));i.css("width",f);(l>e||t===!1)&&(f<=o?r.css("overflow-x","hidden"):r.css("overflow-x","auto"))},_initTree:function(t,i){var f=this,o=this._ds,e,u;n(t).siblings(".ui-igpivot-filterdropdown-buttoncontainer").children(".ui-igbutton[data-role=ok]").igButton("enable");e=function(t,i){for(var f,u,e,r=0;r<i.length;r++)e=i[r].filterMember,f=e.isSelected(),u=f.hasValue()?f.value()?"on":"off":"partial",n(t).find(".ui-igtree-node[data-value='"+i[r].uniqueName+"']").children("[data-role=checkbox]").attr("data-chk",u).children("span").removeClass("ui-state-disabled ui-igcheckbox-normal-on ui-igcheckbox-normal-partial ui-igcheckbox-normal-off").addClass("ui-igcheckbox-normal-"+u+(u==="partial"?" ui-igcheckbox-normal-on ui-state-disabled":""))};u=this._parseFilterMembers(i.getRootFilterMembers());t.igTree({dataSource:u,loadOnDemand:!0,checkboxMode:"triState",bindings:{textKey:"caption",valueKey:"uniqueName",childDataProperty:"children"},nodeCollapsed:function(){f._arrangeDropDown(!1)},nodeCheckstateChanged:function(t,i){var u,r;u=n(this).siblings(".ui-igpivot-filterdropdown-buttoncontainer").children(".ui-igbutton[data-role=ok]");i.newCheckedNodes&&i.newCheckedNodes.length>0?u.igButton("enable"):u.igButton("disable");r=n(i.node.element).children("[data-role=checkbox]").attr("data-chk");r=r==="partial"?null:r==="on"?!0:!1;i.node.data.filterMember.isSelected(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,r))},nodeExpanded:function(t,i){f._arrangeDropDown(!0);var r,u,e;if(!n.ig.Pivot._pivotShared._showLastLevelExpanders&&(e=i.node.element,u=i.node.data.children,u!==null&&0<u.length))for(r=0;r<u.length;r++)null!==u[r].children&&0===u[r].children.length&&e.find(".ui-igtree-node").eq(r).find("span:first").css("display","none")}}).css("overflow-x","hidden").data(r)._executeUrlRequest=function(t){var c=this,s=this.nodeDataFor(t.attr("data-path")),r,h,l;r=t.children("ul");n("<li style='width:20px; height:20px;' data-role='loading'>&nbsp;<\/li>").appendTo(r);r.show();h=r.children("li").igLoading({includeVerticalOffset:!0,cssClass:"ui-igpivotgrid-tree-blockarea"}).data("igLoading").indicator();h.show();this._populatingNode={ul:r,node:t,indicator:h};l=o.getCoreElements(function(n){return n.hierarchyUniqueName()===s.member.hierarchyUniqueName()},n.ig.Level.prototype.$type);n.ig.Pivot._pivotShared._showLastLevelExpanders=!0;o.getMembersOfMember(s.member.uniqueName()).done(function(r){var o;r.item(0)&&l.length-1===r.item(0).levelDepth()&&(n.ig.Pivot._pivotShared._showLastLevelExpanders=!1);i.addFiltersForMembers(r);o=f._parseFilterMembers(s.filterMember.children());c._populateNodeData(!0,"",{data:function(){return o}});c._updateParentState(t);e(t,s.children);f._triggerFilterMembersLoaded(t,u,o)})};e(t,u);this._triggerFilterMembersLoaded(t,u,u)},_parseFilterMembers:function(n){var u,t,f,i,r;if(n===null)return[];for(n=n.__inner,u=[],r=0;r<n.length;r++)f=n[r],i=f.member(),t={},t.filterMember=f,t.member=i,t.caption=i.caption(),t.uniqueName=i.uniqueName(),t.children=[],u.push(t);return u},_onFilterOk:function(n,t,i,r){var o=this._ds,s=r.uniqueName(),e,f,u,h;for(e=i.getSelectedFilterItems().__inner,f=[],u=0;u<e.length;u++)f.push(e[u].member().uniqueName());if(h=this._triggerFilterDropDownOk(n,t,r,f),h){for(o.removeAllFilterMembers(s),u=0;u<f.length;u++)o.addFilterMember(s,f[u]);this._updateDataSource();this._removeFilterDropDown(n,t,r)}},_removeFilterDropDown:function(t,i,r){var u;u=this._triggerFilterDropDownClosing(t,i,r);u&&(i.find(".ui-igtree").igTree("destroy"),i.find(".ui-button").igButton("destroy"),i.remove(),n(document).unbind("."+this.widgetName),this._triggerFilterDropDownClosed(t,r))},_triggerDataSourceInitialized:function(n,t){this._trigger("dataSourceInitialized",n,t)},_triggerDataSourceUpdated:function(n,t){this._trigger("dataSourceUpdated",n,t)},_triggerDragStart:function(n,t,i){var r={helper:t.helper,offset:t.offset,originalPosition:t.originalPosition,position:t.position,metadata:i};return this._trigger("dragStart",n,r)},_triggerDrag:function(n,t,i){var r={helper:t.helper,offset:t.offset,originalPosition:t.originalPosition,position:t.position,metadata:i};return this._trigger("drag",n,r)},_triggerDragStop:function(n,t){this._trigger("dragStop",n,t)},_triggerMetadataDropping:function(n,t,i,r,u){var f={helper:t.helper,offset:t.offset,position:t.position,targetElement:i,metadata:r,metadataIndex:u};return this._trigger("metadataDropping",n,f)},_triggerMetadataDropped:function(n,t,i,r,u,f){var e={helper:t.helper,offset:t.offset,position:t.position,targetElement:i,draggedElement:r,metadata:u,metadataIndex:f};this._trigger("metadataDropped",n,e)},_triggerMetadataRemoving:function(n,t,i){var r={targetElement:t,metadata:i};return this._trigger("metadataRemoving",n,r)},_triggerMetadataRemoved:function(n,t){var i={metadata:t};this._trigger("metadataRemoved",n,i)},_triggerFilterDropDownOpening:function(n,t){var i={hierarchy:t};return this._trigger("filterDropDownOpening",n,i)},_triggerFilterDropDownOpened:function(n,t,i){var r={dropDownElement:t,hierarchy:i};this._trigger("filterDropDownOpened",n,r)},_triggerFilterMembersLoaded:function(n,t,i){var r={parent:n,rootFilterMembers:t,filterMembers:i};this._trigger("filterMembersLoaded",null,r)},_triggerFilterDropDownOk:function(n,t,i,r){var u={dropDownElement:t,hierarchy:i,filterMembers:r};return this._trigger("filterDropDownOk",n,u)},_triggerFilterDropDownClosing:function(n,t,i){var r={dropDownElement:t,hierarchy:i};return this._trigger("filterDropDownClosing",n,r)},_triggerFilterDropDownClosed:function(n,t){var i={hierarchy:t};this._trigger("filterDropDownClosed",n,i)}};n.widget("ui.igOlapDataSourceWidget",{_create:function(){this._ds=n.ig.Pivot._pivotShared._createDataSource(null,this.options.dataSourceOptions)},dataSource:function(){return this._ds}})}(jQuery),function(n){var t=n.ui.droppable.prototype.widgetFullName||n.ui.droppable.prototype.widgetName;n.widget("ui.igPivotDataSelector",{css:{dataSelector:"ui-igpivotdataselector",dataSelectorRoot:"ui-igpivotdataselector-root",catalog:"ui-igpivotdataselector-catalog",cube:"ui-igpivotdataselector-cube",measureGroup:"ui-igpivotdataselector-measuregroup",metadata:"ui-igpivotdataselector-metadata ui-widget-content",metadataItem:"ui-igpivot-metadataitem ui-widget ui-corner-all ui-state-default",dropAreasTable:"ui-igpivotdataselector-dropareas",dropArea:"ui-igpivot-droparea ui-widget-content",activeDropArea:"active",filtersIcon:"ui-icon ui-icon-pivot-filters",columnsIcon:"ui-icon ui-icon-pivot-columns",rowsIcon:"ui-icon ui-icon-pivot-rows",measuresIcon:"ui-icon ui-icon-pivot-measures",updateLayout:"ui-igpivotdataselector-updatelayout",dropIndicator:"ui-state-highlight",invalidDropIndicator:"ui-state-error",insertItem:"ui-igpivot-insertitem ui-state-highlight ui-corner-all",metadataItemDropDown:"ui-igpivot-metadatadropdown ui-widget ui-widget-content",filterIcon:"ui-icon ui-icon-pivot-smallfilter",filterDropDown:"ui-igpivot-filterdropdown ui-widget ui-widget-content",filterMembers:"ui-igpivot-filtermembers"},options:{width:250,height:null,dataSource:null,dataSourceOptions:{xmlaOptions:{serverUrl:null,catalog:null,cube:null,measureGroup:null,requestOptions:{withCredentials:!1,beforeSend:null},enableResultCache:!0,discoverProperties:null,executeProperties:null,mdxSettings:{nonEmptyOnRows:!0,nonEmptyOnColumns:!0,addCalculatedMembersOnRows:!0,addCalculatedMembersOnColumns:!0,dimensionPropertiesOnRows:[],dimensionPropertiesOnColumns:[]}},flatDataOptions:{dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,responseDataType:null,metadata:{cube:{name:null,caption:null,measuresDimension:{name:null,caption:null,measures:[{name:null,caption:null,aggregator:null,displayFolder:null}]},dimensions:[{name:null,caption:null,hierarchies:[{name:null,caption:null,displayFolder:null,levels:[{name:null,caption:null,memberProvider:null}]}]}]}}},measures:null,filters:null,rows:null,columns:null},deferUpdate:!1,dragAndDropSettings:{appendTo:"body",containment:!1,zIndex:10},dropDownParent:"body",disableRowsDropArea:!1,disableColumnsDropArea:!1,disableMeasuresDropArea:!1,disableFiltersDropArea:!1,customMoveValidation:null},events:{dataSelectorRendered:null,dataSourceInitialized:null,dataSourceUpdated:null,deferUpdateChanged:null,dragStart:null,drag:null,dragStop:null,metadataDropping:null,metadataDropped:null,metadataRemoving:null,metadataRemoved:null,filterDropDownOpening:null,filterDropDownOpened:null,filterMembersLoaded:null,filterDropDownOk:null,filterDropDownClosing:null,filterDropDownClosed:null},_deferUpdate:!1,_create:function(){var t=this,i=this.element[0].nodeName.toUpperCase();if(i!=="DIV")throw new Error(i+n.ig.PivotDataSelector.locale.invalidBaseElement);this.element.addClass(this.css.dataSelector);this._onFiltersChanged=function(n,i){var r=t.element.find(".ui-igpivot-droparea[data-role=filters]");t._onDataSourceCollectionChanged(n,i,r,t.options.disableFiltersDropArea)};this._onRowAxisChanged=function(n,i){var r=t.element.find(".ui-igpivot-droparea[data-role=rows]");t._onDataSourceCollectionChanged(n,i,r,t.options.disableRowsDropArea)};this._onColumnAxisChanged=function(n,i){var r=t.element.find(".ui-igpivot-droparea[data-role=columns]");t._onDataSourceCollectionChanged(n,i,r,t.options.disableColumnsDropArea)};this._onMeasuresChanged=function(n,i){var r=t.element.find(".ui-igpivot-droparea[data-role=measures]");t._onDataSourceCollectionChanged(n,i,r,t.options.disableMeasuresDropArea)};this._setDataSource();this._makeDroppable(this.element)},_setOption:function(i,r){var u,f;switch(i){case"dataSource":this._clearDataSource();this.options.dataSourceOptions=null;this.options.dataSource=this._createDataSource(r,null);this._setDataSource();break;case"dataSourceOptions":this._clearDataSource();this.options.dataSourceOptions=r;this.options.dataSource=this._createDataSource(null,r);this._setDataSource();break;case"deferUpdate":n.Widget.prototype._setOption.apply(this,arguments);this._deferUpdate=r;this.element.find(".ui-igpivotdataselector-deferupdate").attr("checked",r);this.element.find(".ui-igpivotdataselector-updatelayout").igButton(r?"enable":"disable");break;case"width":n.Widget.prototype._setOption.apply(this,arguments);this.element.width(r);this.element.find(".ui-igpivotdataselector-catalog, .ui-igpivotdataselector-cube, .ui-igpivotdataselector-measuregroup").igCombo("option","width",this.element.children(".ui-igpivotdataselector-root").width());break;case"height":n.Widget.prototype._setOption.apply(this,arguments);this.element.height(r);break;case"dragAndDropSettings":n.Widget.prototype._setOption.apply(this,arguments);this.element.find(":ui-draggable").each(function(t,i){var u=n(i);u.draggable("option","appendTo",r.appendTo);u.draggable("option","containment",r.containment);u.draggable("option","zIndex",r.zIndex)});break;case"disableRowsDropArea":n.Widget.prototype._setOption.apply(this,arguments);u=this.element.find(".ui-igpivot-droparea[data-role=rows]");r?(f=u.data(t),f&&f.destroy()):this._isTouch()||u.droppable(this._createDropAreaOptions());this._fillDropArea(u,this._ds.rowAxis(),this.options.disableRowsDropArea);break;case"disableColumnsDropArea":n.Widget.prototype._setOption.apply(this,arguments);u=this.element.find(".ui-igpivot-droparea[data-role=columns]");r?(f=u.data(t),f&&f.destroy()):this._isTouch()||u.droppable(this._createDropAreaOptions());this._fillDropArea(u,this._ds.columnAxis(),this.options.disableColumnsDropArea);break;case"disableMeasuresDropArea":n.Widget.prototype._setOption.apply(this,arguments);u=this.element.find(".ui-igpivot-droparea[data-role=measures]");r?(f=u.data(t),f&&f.destroy()):this._isTouch()||u.droppable(this._createDropAreaOptions());this._fillDropArea(u,this._ds.measures(),this.options.disableMeasuresDropArea);break;case"disableFiltersDropArea":n.Widget.prototype._setOption.apply(this,arguments);u=this.element.find(".ui-igpivot-droparea[data-role=filters]");r?(f=u.data(t),f&&f.destroy()):this._isTouch()||u.droppable(this._createDropAreaOptions());this._fillDropArea(u,this._ds.filters(),this.options.disableFiltersDropArea)}},_initUI:function(){var r=this,l=this._ds,u,h,s,o,t,i,f,e,a,c;this.options.width&&this.element.width(this.options.width);this.options.height&&this.element.height(this.options.height);u=n("<div class='ui-widget "+this.css.dataSelectorRoot+"'><\/div>").appendTo(this.element);this._isInstance(l,"OlapXmlaDataSource")&&(h={textKey:"_caption",valueKey:"_name",mode:"dropdown",enableClearButton:!1,width:u.width()},n("<input class='"+this.css.catalog+"' />").appendTo(u).igCombo(n.extend({nullText:n.ig.PivotDataSelector.locale.catalog,selectionChanged:function(n,t){r._onCatalogSelected(t.items[0].value)}},h)),n("<input class='"+this.css.cube+"' />").appendTo(u).igCombo(n.extend({nullText:n.ig.PivotDataSelector.locale.cube,selectionChanged:function(n,t){r._onCubeSelected(t.items[0].value)}},h)),n("<input class='"+this.css.measureGroup+"' />").appendTo(u).igCombo(n.extend({nullText:n.ig.PivotDataSelector.locale.measureGroup,selectionChanged:function(n,t){r._onMeasureGroupSelected(t.items[0].value)}},h)));n("<div class='"+this.css.metadata+"'><\/div>").appendTo(u).addClass().igTree({initialExpandDepth:0,bindings:{nodeContentTemplate:"<span class='ui-igpivot-metadataitem' data-name='${name}' data-type='${type}'><span class='${image}'/>${caption}<\/span>",childDataProperty:"children"},rendered:function(n,t){t.owner.element.removeAttr("data-scroll")}});s=this._createDropAreaOptions();o=n("<table class='"+this.css.dropAreasTable+"'><\/table>").appendTo(u);t=n("<tr><\/tr>").appendTo(o);i=n("<th><\/th>").appendTo(t);n("<span class='"+this.css.filtersIcon+"'><\/span>").appendTo(i);n("<span><\/span>").text(n.ig.PivotDataSelector.locale.filters).appendTo(i);i=n("<th><\/th>").appendTo(t);n("<span class='"+this.css.columnsIcon+"'><\/span>").appendTo(i);n("<span><\/span>").text(n.ig.PivotDataSelector.locale.columns).appendTo(i);t=n("<tr><\/tr>").appendTo(o);f=n("<td><\/td>").appendTo(t);e=n("<ul class='"+this.css.dropArea+"' data-role='filters'><\/ul>").appendTo(f);this.options.disableFiltersDropArea||this._isTouch()||e.droppable(s);f=n("<td><\/td>").appendTo(t);e=n("<ul class='"+this.css.dropArea+"' data-role='columns'><\/ul>").appendTo(f);this.options.disableColumnsDropArea||this._isTouch()||e.droppable(s);t=n("<tr><\/tr>").appendTo(o);i=n("<th><\/th>").appendTo(t);n("<span class='"+this.css.rowsIcon+"'><\/span>").appendTo(i);n("<span><\/span>").text(n.ig.PivotDataSelector.locale.rows).appendTo(i);i=n("<th><\/th>").appendTo(t);n("<span class='"+this.css.measuresIcon+"'><\/span>").appendTo(i);n("<span><\/span>").text(n.ig.PivotDataSelector.locale.measures).appendTo(i);t=n("<tr><\/tr>").appendTo(o);f=n("<td><\/td>").appendTo(t);e=n("<ul class='"+this.css.dropArea+"' data-role='rows'><\/ul>").appendTo(f);this.options.disableRowsDropArea||this._isTouch()||e.droppable(s);f=n("<td><\/td>").appendTo(t);e=n("<ul class='"+this.css.dropArea+"' data-role='measures'><\/ul>").appendTo(f);this.options.disableMeasuresDropArea||this._isTouch()||e.droppable(s);this._isTouch()&&o.find(".ui-igpivot-droparea").igScroll();this._deferUpdate=this.options.deferUpdate;c=n("<label><\/label>").appendTo(u).text(n.ig.PivotDataSelector.locale.deferUpdate);a=n("<input class='ui-igpivotdataselector-deferupdate' type='checkbox' />").prependTo(c).change(function(t){r._deferUpdate=n(t.target).is(":checked");r._deferUpdate?r.element.find(".ui-igpivotdataselector-updatelayout").igButton("enable"):(r.element.find(".ui-igpivotdataselector-updatelayout").igButton("disable"),r._updateDataSource());r._triggerDeferUpdateChanged(r._deferUpdate)});n("<button class='"+this.css.updateLayout+"'><\/button>").attr("title",n.ig.PivotDataSelector.locale.updateLayout).appendTo(u).igButton({text:!1,icons:{primary:"ui-icon-refresh"}}).igButton(this._deferUpdate?"enable":"disable").click(function(){r._updateDataSource(!0)});this._triggerDataSelectorRendered()},_clearUI:function(){this.element.find(".ui-igpivotdataselector-catalog, .ui-igpivotdataselector-cube, .ui-igpivotdataselector-measuregroup").igCombo("destroy");this.element.find(".ui-igpivotdataselector-metadata").igTree("destroy");this.element.find(".ui-igpivot-droparea .ui-igpivot-metadataitem.ui-draggable").draggable("destroy").remove();this.element.empty()},_setDataSource:function(){var i=this,t;(this._ds=t=this._createDataSource(this.options.dataSource,this.options.dataSourceOptions),this._initUI(),t)&&(this.timestamp=(new Date).getTime(),n(t).bind("initialized.dataselector"+this.timestamp,function(n,t){i._onDataSourceInitialized(n,t)}),n(t).bind("updated.dataselector"+this.timestamp,function(n,t){i._onDataSourceUpdated(n,t)}),t.isInitialized()?(this._isInstance(t,"OlapXmlaDataSource")?this._onCatalogSelected(this._getItemName(t.catalog()),!0):this._fillMetadata(t.metadataTree()),t.bindCollectionChanged({filters:this._onFiltersChanged,rowAxis:this._onRowAxisChanged,columnAxis:this._onColumnAxisChanged,measures:this._onMeasuresChanged})):t.initialize())},_clearDataSource:function(){this._ds&&(n(this._ds).unbind("updated.dataselector"),this._ds.unbindCollectionChanged({filters:this._onFiltersChanged,rowAxis:this._onRowAxisChanged,columnAxis:this._onColumnAxisChanged,measures:this._onMeasuresChanged}));this._filterMembersCache=[];this._clearUI()},_onDataSourceInitialized:function(t,i){var r=this._ds,u=n.extend({owner:this,dataSource:r},i);r.bindCollectionChanged({filters:this._onFiltersChanged,rowAxis:this._onRowAxisChanged,columnAxis:this._onColumnAxisChanged,measures:this._onMeasuresChanged});this._triggerDataSourceInitialized(t,u);i.error||(this._isInstance(r,"OlapXmlaDataSource")?this._onCatalogSelected(this._getItemName(r.catalog()),!0):this._fillMetadata(r.metadataTree()))},_updateDataSource:function(n){var t=this._ds,i=n||this._deferUpdate===!1;i&&t.cube()!==null&&t.update()},_onDataSourceUpdated:function(t,i){var r=this._ds,u=n.extend({owner:this,dataSource:r},i);this._triggerDataSourceUpdated(t,u)},_getItemName:function(n){return n&&n.name()},_fillCombo:function(t,i,r){var f=typeof r,u=null;f==="number"?u=[{index:r}]:f==="object"&&r!==null&&n.isFunction(r.name)&&(u=[{value:r.name()}]);this.element.find(t).igCombo("option","dataSource",i).igCombo("option","selectedItems",u)},_clearCombo:function(n){this.element.find(n).igCombo("option","dataSource",[])},_fillMetadata:function(t){var i=this,e=function(t){var r={},s=!0,o,i,f,u;switch(t.type()){case n.ig.OlapMetadataTreeItemType.prototype.cube:i="cube";break;case n.ig.OlapMetadataTreeItemType.prototype.dimension:i="dimension";break;case n.ig.OlapMetadataTreeItemType.prototype.group:i="folder";s=!1;break;case n.ig.OlapMetadataTreeItemType.prototype.userDefinedHierarchy:i="hierarchymultiple";break;case n.ig.OlapMetadataTreeItemType.prototype.systemEnabledHierarchy:i="hierarchysingle";break;case n.ig.OlapMetadataTreeItemType.prototype.parentChildHierarchy:i="hierarchydirect";break;case n.ig.OlapMetadataTreeItemType.prototype.measure:i="measure";break;case n.ig.OlapMetadataTreeItemType.prototype.level1:i="level1";break;case n.ig.OlapMetadataTreeItemType.prototype.level2:i="level2";break;case n.ig.OlapMetadataTreeItemType.prototype.level3:i="level3";break;case n.ig.OlapMetadataTreeItemType.prototype.level4:i="level4";break;case n.ig.OlapMetadataTreeItemType.prototype.level5:i="level5";break;case n.ig.OlapMetadataTreeItemType.prototype.kpiRoot:case n.ig.OlapMetadataTreeItemType.prototype.kpi:i="kpi";break;case n.ig.OlapMetadataTreeItemType.prototype.kpiValue:i="kpi value";break;case n.ig.OlapMetadataTreeItemType.prototype.kpiGoal:i="kpi goal";break;case n.ig.OlapMetadataTreeItemType.prototype.kpiStatus:i="kpi status";break;case n.ig.OlapMetadataTreeItemType.prototype.kpiTrend:i="kpi trend";break;case n.ig.OlapMetadataTreeItemType.prototype.kpiWeight:i="kpi weight";break;default:i="folder"}if(r.caption=t.caption(),r.image=i,s&&(o=t.item(),r.name=o.uniqueName(),r.type=o.getType().typeName()),f=t.children(),f)for(r.children=[],u=0;u<f.length;u++)r.children[u]=e(f[u]);return r},o=t===null?[]:[e(t)],u=this.options.dragAndDropSettings,r,f;r=this.element.find(".ui-igpivotdataselector-metadata").igTree("option","dataSource",o);f=r.find(".ui-igpivot-metadataitem[data-type='Kpi'],.ui-igpivot-metadataitem[data-type='Measure'],.ui-igpivot-metadataitem[data-type='Dimension'],.ui-igpivot-metadataitem[data-type='Hierarchy'],.ui-igpivot-metadataitem[data-type='KpiMeasure']");this._isTouch()||f.draggable({appendTo:u.appendTo,containment:u.containment,zIndex:u.zIndex,cursorAt:this._const.dragCursorAt,revert:!1,helper:function(){var t;return t=n(i._const.dragHelperMarkup.replace("{0}",n(this).text())),t.addClass(i.css.invalidDropIndicator).find("span").addClass("ui-icon  ui-icon-cancel"),t},start:function(t,u){return i._triggerDragStart(t,u,r.igTree("nodeDataFor",n(this).attr("data-path")))},drag:function(t,u){return i._triggerDrag(t,u,r.igTree("nodeDataFor",n(this).attr("data-path")))},over:function(n,t){i._onDraggableOver(n,t)},out:function(n,t){i._onDraggableOut(n,t)},stop:function(n,t){i._triggerDragStop(n,t)}});f.click(function(t){var f=r.igTree("nodeDataFor",n(this).closest("li").attr("data-path")),e=f.name,o=n.ig[f.type].prototype.getType(),u;u=i._ds.getCoreElement(function(n){return n.uniqueName()===e},o);u&&i._createMetadataItemDropDown(t,this,u)});this._fillDropArea(".ui-igpivot-droparea[data-role=filters]",this._ds.filters(),this.options.disableFiltersDropArea);this._fillDropArea(".ui-igpivot-droparea[data-role=rows]",this._ds.rowAxis(),this.options.disableRowsDropArea);this._fillDropArea(".ui-igpivot-droparea[data-role=columns]",this._ds.columnAxis(),this.options.disableColumnsDropArea);this._fillDropArea(".ui-igpivot-droparea[data-role=measures]",this._ds.measures(),this.options.disableMeasuresDropArea)},_fillDropArea:function(n,t,i){var r,u;for(n=n.jquery?n:this.element.find(n),n.empty(),r=0,u=t.length;r<u;r++)this._createMetadataElement(t[r],i,"appendTo",n)},_clearMetadata:function(){this.element.find(".ui-igpivotdataselector-metadata").igTree("option","dataSource",[])},_onCatalogSelected:function(n,t){var r=this,i=this._ds,u=function(){r._fillCombo(".ui-igpivotdataselector-catalog",i.catalogs(),i.catalog());r._fillCombo(".ui-igpivotdataselector-cube",i.cubes(),i.cube());r._onCubeSelected(r._getItemName(i.cube()),t)};this._clearCombo(".ui-igpivotdataselector-cube");n===null?u():i.setCatalog(n).done(u)},_onCubeSelected:function(t,i){var u=this,r=this._ds,f=function(){var f=r.cube()&&(r.measureGroup()||0),t=r.measureGroups().slice();t.splice(0,0,{_caption:n.ig.PivotDataSelector.locale.measureGroupAll,_name:null});u._fillCombo(".ui-igpivotdataselector-measuregroup",t,f);u._onMeasureGroupSelected(u._getItemName(r.measureGroup()),i)};this._clearCombo(".ui-igpivotdataselector-measuregroup");t===null?f():r.setCube(t).done(f)},_onMeasureGroupSelected:function(n,t){var i=this,r=this._ds,u=function(){i._fillMetadata(r.metadataTree());t||i._updateDataSource()};this._clearMetadata();n===null?u():r.setMeasureGroup(n).done(u)},_shouldAppendToTarget:function(n,t){return n.offset().top+n.height()/2<t.offset.top+this._const.dragCursorAt.top},update:function(){this._ds.update()},destroy:function(){return this._clearDataSource(),this.element.removeClass(this.css.dataSelector),n(this._ds).unbind("updated.dataselector"+this.timestamp),n(this._ds).unbind("initialized.dataselector"+this.timestamp),n.Widget.prototype.destroy.apply(this),this},_triggerDataSelectorRendered:function(){var n={owner:this};this._trigger("dataSelectorRendered",null,n)},_triggerDeferUpdateChanged:function(n){var t={owner:this,deferUpdate:n};this._trigger("deferUpdateChanged",null,t)}});n.extend(!0,n.ui.igPivotDataSelector.prototype,n.ig.Pivot._pivotShared);n.extend(n.ui.igPivotDataSelector,{version:"14.1.20141.2031"})}(jQuery),function(n){function t(){this[0]=[]}t.prototype=[];t.prototype.set=function(n,t,i){this.length<n+1&&this.setRowCount(n+1);this[0].length<t+1&&this.setColumnCount(t+1);this[n][t]=i};t.prototype.setRowCount=function(n){var t,i=this.length;for(this.length=n,t=i;t<n;t++)this[t]=[],this[t].length=this[0].length};t.prototype.setColumnCount=function(n){for(var t=0;t<this.length;t++)this[t].length=n};var i=function(n){return n===null||n===undefined},r=n.ui.igGrid.prototype.widgetFullName||n.ui.igGrid.prototype.widgetName;n.widget("ui.igPivotGrid",{css:{pivotGrid:"ui-igpivotgrid",pivotGridHeader:"ui-igpivotgrid-header",expandButton:"ui-iggrid-headerbutton ui-icon ui-icon-plus",collapseButton:"ui-iggrid-headerbutton ui-iggrid-headerbuttonexpanded ui-icon ui-icon-minus",rowsAscending:"ui-iggrid-sortindicator ui-icon ui-icon-triangle-1-n",rowsDescending:"ui-iggrid-sortindicator ui-icon ui-icon-triangle-1-s",headerRowsAscending:"ui-iggrid-sortindicator ui-icon ui-icon-triangle-1-n",headerRowsDescending:"ui-iggrid-sortindicator ui-icon ui-icon-triangle-1-s",headerColumnsAscending:"ui-iggrid-sortindicator ui-icon ui-icon-triangle-1-n",headerColumnsDescending:"ui-iggrid-sortindicator ui-icon ui-icon-triangle-1-s",blockArea:"ui-igpivotgrid-blockarea",metadataItem:"ui-igpivot-metadataitem ui-widget ui-corner-all ui-state-default",dropAreaHeader:"ui-igpivot-dropareaheader ui-iggrid-header ui-widget-header",scrollButton:"ui-iggrid-headerbutton",scrollLeft:"ui-icon ui-icon-triangle-1-w",scrollRight:"ui-icon ui-icon-triangle-1-e",dropArea:"ui-igpivot-droparea",overlayDropArea:"ui-igpivot-overlaydroparea",activeDropArea:"active",dropIndicator:"ui-state-highlight",invalidDropIndicator:"ui-state-error",insertItem:"ui-igpivot-insertitem ui-state-highlight ui-corner-all",metadataItemDropDown:"ui-igpivot-metadatadropdown ui-widget ui-widget-content",filterIcon:"ui-icon ui-icon-pivot-smallfilter",filterDropDown:"ui-igpivot-filterdropdown ui-widget ui-widget-content",filterMembers:"ui-igpivot-filtermembers"},options:{width:null,height:null,dataSource:null,dataSourceOptions:{xmlaOptions:{serverUrl:null,catalog:null,cube:null,measureGroup:null,requestOptions:{withCredentials:!1,beforeSend:null},enableResultCache:!0,discoverProperties:null,executeProperties:null,mdxSettings:{nonEmptyOnRows:!0,nonEmptyOnColumns:!0,addCalculatedMembersOnRows:!0,addCalculatedMembersOnColumns:!0,dimensionPropertiesOnRows:[],dimensionPropertiesOnColumns:[]}},flatDataOptions:{dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,responseDataType:null,metadata:{cube:{name:null,caption:null,measuresDimension:{name:null,caption:null,measures:[{name:null,caption:null,aggregator:null,displayFolder:null}]},dimensions:[{name:null,caption:null,hierarchies:[{name:null,caption:null,displayFolder:null,levels:[{name:null,caption:null,memberProvider:null}]}]}]}}},measures:null,filters:null,rows:null,columns:null},deferUpdate:!1,isParentInFrontForColumns:!1,isParentInFrontForRows:!0,compactColumnHeaders:!1,compactRowHeaders:!0,compactColumnHeaderIndentation:30,compactRowHeaderIndentation:20,defaultRowHeaderWidth:200,allowSorting:!1,firstSortDirection:"ascending",allowHeaderRowsSorting:!1,allowHeaderColumnsSorting:!1,levelSortDirections:[{levelUniqueName:null,sortDirection:null}],firstLevelSortDirection:"ascending",gridOptions:{defaultColumnWidth:null,fixedHeaders:!0,caption:null,features:[],tabIndex:0,alternateRowStyles:!0,enableHoverStyles:!1},dragAndDropSettings:{appendTo:"body",containment:!1,zIndex:10},dropDownParent:"body",disableRowsDropArea:!1,disableColumnsDropArea:!1,disableMeasuresDropArea:!1,disableFiltersDropArea:!1,hideRowsDropArea:!1,hideColumnsDropArea:!1,hideMeasuresDropArea:!1,hideFiltersDropArea:!1,customMoveValidation:null},events:{dataSourceInitialized:null,dataSourceUpdated:null,pivotGridHeadersRendered:null,pivotGridRendered:null,tupleMemberExpanding:null,tupleMemberExpanded:null,tupleMemberCollapsing:null,tupleMemberCollapsed:null,sorting:null,sorted:null,headersSorting:null,headersSorted:null,dragStart:null,drag:null,dragStop:null,metadataDropping:null,metadataDropped:null,metadataRemoving:null,metadataRemoved:null,filterDropDownOpening:null,filterDropDownOpened:null,filterMembersLoaded:null,filterDropDownOk:null,filterDropDownClosing:null,filterDropDownClosed:null},_const:{emptyCell:{headerText:"&nbsp;",key:"empty_cell",axisName:"empty_axis",memberIndex:0,tupleIndex:0},hoverScrollOffset:5,hoverScrollInterval:50},_headerScrollOffsets:{},_gridScrollOffsets:{top:0,left:0},_create:function(){var t=this;this._onFiltersChanged=function(i,r){var u=n("#"+t.element.attr("id")+"_filters .ui-igpivot-droparea");t._onDataSourceCollectionChanged(i,r,u,t.options.disableFiltersDropArea);t._updateDropArea(u,t._ds.filters(),t.options.disableFiltersDropArea,t.options.disableFiltersDropArea?n.ig.PivotGrid.locale.disabledFiltersHeader:n.ig.PivotGrid.locale.filtersHeader)};this._onRowAxisChanged=function(i,r){var u=n("#"+t.element.attr("id")+"_rows .ui-igpivot-droparea");t._onDataSourceCollectionChanged(i,r,u,t.options.disableRowsDropArea);t._updateDropArea(u,t._ds.rowAxis(),t.options.disableRowsDropArea,t.options.disableRowsDropArea?n.ig.PivotGrid.locale.disabledRowsHeader:n.ig.PivotGrid.locale.rowsHeader)};this._onColumnAxisChanged=function(i,r){var u=n("#"+t.element.attr("id")+"_columns .ui-igpivot-droparea");t._onDataSourceCollectionChanged(i,r,u,t.options.disableColumnsDropArea);t._updateDropArea(u,t._ds.columnAxis(),t.options.disableColumnsDropArea,t.options.disableColumnsDropArea?n.ig.PivotGrid.locale.disabledColumnsHeader:n.ig.PivotGrid.locale.columnsHeader);t._columnsChanged=!0};this._onMeasuresChanged=function(i,r){var u=n("#"+t.element.attr("id")+"_measures .ui-igpivot-droparea");t._onDataSourceCollectionChanged(i,r,u,t.options.disableMeasuresDropArea);t._updateDropArea(u,t._ds.measures(),t.options.disableMeasuresDropArea,t.options.disableMeasuresDropArea?n.ig.PivotGrid.locale.disabledMeasuresHeader:n.ig.PivotGrid.locale.measuresHeader)};this.element.addClass(this.css.pivotGrid);this._setDataSource()},_setOption:function(t,i){var r;switch(t){case"dataSource":this._clearDataSource();this.options.dataSourceOptions=null;this.options.dataSource=this._createDataSource(i,null);this._setDataSource();break;case"dataSourceOptions":this._clearDataSource();this.options.dataSourceOptions=i;this.options.dataSource=this._createDataSource(null,i);this._setDataSource();break;case"deferUpdate":n.Widget.prototype._setOption.apply(this,arguments);i===!1&&this.updateGrid();break;case"width":case"height":n.Widget.prototype._setOption.apply(this,arguments);r=this.grid();r&&r.option(t,i);break;case"levelSortDirections":case"isParentInFrontForColumns":case"isParentInFrontForRows":case"compactColumnHeaders":case"compactRowHeaders":n.Widget.prototype._setOption.apply(this,arguments);this._createTableView(this._ds);this._onGridUpdated();break;case"dragAndDropSettings":n.Widget.prototype._setOption.apply(this,arguments);this.element.find(":ui-draggable").each(function(t,r){var u=n(r);u.draggable("option","appendTo",i.appendTo);u.draggable("option","containment",i.containment);u.draggable("option","zIndex",i.zIndex)});break;default:n.Widget.prototype._setOption.apply(this,arguments);this._onGridUpdated()}},_setDataSource:function(){var t=this,i;(this._renderEmptyGrid(),this._ds=i=this._createDataSource(this.options.dataSource,this.options.dataSourceOptions),i)&&(this.timestamp=(new Date).getTime(),n(i).bind("initialized.pivotgrid"+this.timestamp,function(i,r){var u=n.extend({owner:t,dataSource:t._ds},r);t._triggerDataSourceInitialized(i,u);t._onGridUpdated()}),n(i).bind("updated.pivotgrid"+this.timestamp,function(i,r){var u=n.extend({owner:t,dataSource:t._ds},r);t._triggerDataSourceUpdated(i,u);t._onGridUpdated()}),i.isInitialized()?(i.bindCollectionChanged({filters:this._onFiltersChanged,rowAxis:this._onRowAxisChanged,columnAxis:this._onColumnAxisChanged,measures:this._onMeasuresChanged}),this._onGridUpdated()):this._updateGrid(!0).always(function(){i.bindCollectionChanged({filters:t._onFiltersChanged,rowAxis:t._onRowAxisChanged,columnAxis:t._onColumnAxisChanged,measures:t._onMeasuresChanged})}))},_updateDropArea:function(n,t,i,r){this._ds.isUpdating()||this._isTouch()||(n.empty().css({display:"",overflow:"",margin:"",padding:""}).siblings().remove(),this._fillDropArea(n,t,i,r),this._measureDropArea(n))},_clearDataSource:function(){var t=this.grid();this._ds&&(n(this._ds).unbind("updated.pivotgrid"),this._ds.unbindCollectionChanged({filters:this._onFiltersChanged,rowAxis:this._onRowAxisChanged,columnAxis:this._onColumnAxisChanged,measures:this._onMeasuresChanged}));t&&(t.destroy(),this.element.empty())},_createTableView:function(t){var f,e,o,u,s,h,c,r;s=this._columnsChanged?[]:this.appliedColumnSortDirections();u=function(t){var r,u={};if(n.isArray(t))for(r=0;r<t.length;r++)i(t[r].levelUniqueName)||(u[t[r].levelUniqueName]=t[r]);return u};h=u(this.appliedLevelSortDirections());c=u(this.options.levelSortDirections);r=n.extend(c,h);r=n.map(r,function(n){return n});f={isParentInFrontForColumns:this.options.isParentInFrontForColumns,isParentInFrontForRows:this.options.isParentInFrontForRows,compactRowHeaders:this.options.compactRowHeaders,compactColumnHeaders:this.options.compactColumnHeaders};e=t.columnAxis().length>0;o=t.rowAxis().length>0;this._tableView=new n.ig.OlapTableView(t.result(),e,o,f);this._tableView.columnSortDirections(s);this._tableView.levelSortDirections(r);this._tableView.initialize();this._columnsChanged=!1},_configureOptions:function(i){var u=this,e,f,o,s,h,r;return this._rowsMatrix=new t,this._fillMatrixWithHeaderCells(this._rowsMatrix,this._tableView.rowHeaders()),this._maxMemberIndex=i.columnAxis().length-1,e=this._generateAllGridColumns(this._tableView.columnHeaders()),f=this._generateDataColumns(this._tableView.columnHeaders()),o=this._transformGridData(this._tableView.resultCells(),f,f.length,this._rowsMatrix.length),s={dataSource:o},h=new n.ig.DataSource(s),r={headerRendered:function(n,t){u._ds&&u._onGridHeadersRendered(n,t)},dataRendered:function(n,t){u._ds&&u._onDataRendered(n,t)}},n.extend(!0,r,this.options.gridOptions),r.dataSource=h,r.columns=e,r.autoGenerateColumns=!1,r.virtualization=!1,r.fixedFooters=!1,r.autoFormat=!1,r.renderCheckBoxes=!1,r.autoFitLastColumn=!1,r.autoAdjustHeight=!0,r.width=this.options.width,r.height=this.options.height,n.merge(r.features,[{name:"MultiColumnHeaders"}]),r},_fillMatrixWithHeaderCells:function(n,t){var y,p,w,b,k,i,d,r,f,h,c,l,a,g,nt,tt,u,it,v,e,o,s,rt;if(!t||t.length===0){n.set(0,0,"<th class='ui-iggrid-header ui-widget-header'><\/th>");return}for(w=this.options.allowHeaderRowsSorting,y="<span data-expand='true' class='"+this.css.expandButton+"' style='margin-left: $$margin$$px;'><\/span>",p="<span data-expand='false' class='"+this.css.collapseButton+"' style='margin-left: $$margin$$px;'><\/span>",b="<span data-sortheader='asc' class='"+this.css.headerRowsAscending+"'><\/span>",k="<span data-sortheader='desc' class='"+this.css.headerRowsDescending+"'><\/span>",d=this._tableView.appliedSortDirectionsMap(),s=0;s<t.length;s++)i=t[s],f=i.caption(),h=i.rowSpan(),c=i.columnSpan(),l=i.rowIndex(),a=i.columnIndex(),g=i.axisName(),nt=i.tupleIndex(),tt=i.memberIndex(),it=i.isExpandable(),v=i.isExpanded(),rt="ui-iggrid-header ui-widget-header "+this.css.pivotGridHeader,r="<th $$data-sortheader$$ class='"+rt+"' title='"+f+"' data-skip='true' rowspan='"+h+"' colspan='"+c+"' data-axis='"+g+"' data-tuple='"+nt+"' data-member='"+tt+"'>",it?(o=this.options.compactRowHeaders?this.options.compactRowHeaderIndentation*i.levelNumber():0,e=v?p:y,e=e.replace("$$margin$$",o),r+=e,r+="<span class='ui-iggrid-headertext'>"+f+"<\/span>",v?(u=d[i.axisName()],u&&(u=u[i.hierarchyNumber()],u&&(u=u[i.levelNumber()])),u==="ascending"?r=r.replace("$$data-sortheader$$","data-sortheader='ascending'")+b:u==="descending"?r=r.replace("$$data-sortheader$$","data-sortheader='descending'")+k:w&&(r=r.replace("$$data-sortheader$$","data-sortheader=''"))):r=r.replace("$$data-sortheader$$","")):(o=this.options.compactRowHeaders?this.options.compactRowHeaderIndentation*(i.levelNumber()+1):0,f="<span class='ui-iggrid-headertext' style='margin-left:"+o+"px;'>"+f+"<\/span>",r+=f),r+="<\/th>",n.set(l+h-1,a+c-1,undefined),n.set(l,a,r)},_generateAllGridColumns:function(n){var i=[],t;if(!n||n.length===0)return[this._const.emptyCell];for(t=0;t<n.length;t++)i[n[t].rowIndex()]||(i[n[t].rowIndex()]=[]),i[n[t].rowIndex()].push(n[t]);return this._maxLevel=i.length,this._processHeadersTree(i)},_generateDataColumns:function(n){var i=[],t;if(!n||n.length===0)return[this._const.emptyCell];for(t=0;t<n.length;t++)n[t].memberIndex()===this._maxMemberIndex&&(n[t].columnSpan()!==1||n[t].isExpandable()!==!1&&n[t].isExpanded()?this.options.compactColumnHeaders&&i.push({headerText:n[t].caption(),key:n[t].axisName()+"_"+n[t].tupleIndex()+"_"+n[t].memberIndex()+"_"+n[t].isExpandable()}):i.push({headerText:n[t].caption(),key:n[t].axisName()+"_"+n[t].tupleIndex()+"_"+n[t].memberIndex()+"_"+n[t].isExpandable()}));return i},_transformGridData:function(n,t,i,r){var f=[],e,u,o;if(!n||n.length===0){if(r>0){for(u=0;u<r;u++)f.push({});return f}return[{}]}for(u=0;u<r;u++)f.push({});for(u=0;u<n.length;u++)e=n[u].cellOrdinal(),o=e%i,f[Math.floor(e/i)][t[o].key]=n[u].formattedValue();return f},_processHeadersTree:function(n){for(var r=[],i,u,f,t=0;n.length>=1&&t<n[0].length;t++)this._createHeader(r,n[0][t]);for(t=1;t<n.length;t++)for(f=this._parentsForLevel(t,r),i=0;i<n[t].length;i++)u=this._findParent(f,n[t][i]),u?this._createHeader(u,n[t][i]):t-1>=1&&this._findAndCreateUp(t-1,t,r,n,n[t][i]);return r},_findAndCreateUp:function(n,t,i,r,u){for(var f,o,s=this._parentsForLevel(n,i),e=0;e<r[t].length;e++)f=r[t][e],f.axisName()===u.axisName()&&f.columnIndex()===u.columnIndex()&&f.memberIndex()===u.memberIndex()&&f.tupleIndex()===u.tupleIndex()&&f.caption()===u.caption()&&(o=this._findParent(s,f,t-n+1),o?this._createHeader(o,f):n-1>=1&&this._findAndCreateUp(n-1,t,i,r,u))},_parentsForLevel:function(n,t){for(var r=[],i=0;i<t.length;i++)this._parentsForLevelRecursive(r,t[i],1,n);return r},_parentsForLevelRecursive:function(n,t,i,r){var f=t.rowspan>1?t.rowspan-1:0,u;if(i===r)n.push(t);else if(i<r&&t.group!==null&&t.group!==undefined)for(u=0;u<t.group.length;u++)this._parentsForLevelRecursive(n,t.group[u],i+1+f,r)},_createHeader:function(n,t){var i={headerText:t.caption(),key:t.axisName()+"_"+t.tupleIndex()+"_"+t.memberIndex()+"_"+t.isExpandable(),rowspan:t.rowSpan(),colSpan:t.columnSpan(),colIndex:t.columnIndex(),axisName:t.axisName(),tupleIndex:t.tupleIndex(),memberIndex:t.memberIndex(),expandable:t.isExpandable(),expanded:t.isExpanded(),hierarchyNumber:t.hierarchyNumber(),levelNumber:t.levelNumber()};!this.options.compactColumnHeaders&&(t.columnSpan()>1||t.columnSpan()===1&&t.isExpanded()&&t.isExpandable())&&(i.group=[]);n.push(i)},_findParent:function(n,t,i){var r;if(!n||n.length===undefined||n.length===null)return null;for(r=0;r<n.length;r++)if((i===undefined||i!==undefined&&n[r].rowspan===i)&&n[r].colSpan+n[r].colIndex>=t.columnSpan()+t.columnIndex()&&n[r].colIndex<=t.columnIndex())return n[r].group||(n[r].group=[]),n[r].group;return null},grid:function(){return this.element.data(r)},updateGrid:function(){this._updateGrid(!1,!0)},_updateGrid:function(t,i){var f=this._ds,u,e=i||this.options.deferUpdate===!1;if(t||e)return this.element.data(r)&&(u=this.grid().container(),n("#"+this.grid().element.attr("id")+"_columns_overlay").css("display","none"),n("#"+this.grid().element.attr("id")+"_measures_overlay").css("display","none"),u.css("position","relative"),n("<div class='"+this.css.blockArea+"'><\/div>").appendTo(u).data("efh","1")),t?f.initialize():f.update()},_onGridUpdated:function(){var n=this._ds,t;this._createTableView(n);t=this._configureOptions(n);this._renderGrid(t)},_renderEmptyGrid:function(){var t;t=n.extend(!0,{},this.options.gridOptions);t.width=this.options.width;t.height=this.options.height;this.element.igGrid(t)},_renderGrid:function(t){var u=this.element.attr("id"),i,r;i=this.grid();i&&(this._gridScrollOffsets.top=i.scrollContainer().scrollTop(),this._gridScrollOffsets.left=n("#"+u+"_hscroller").scrollLeft(),this.element.igGrid("destroy"),this.element.empty());this.element.igGrid(t);r=this.grid().container();r.addClass(this.css.pivotGrid);this._makeDroppable(r)},_onGridHeadersRendered:function(t,i){var c=this,l=i.owner._oldCols,f=i.table,r=this.element.attr("id"),k,p,d,e,w,y,g,h,a,o,u,b=this._ds,tt,s,rt,v,it,nt;if(f.addClass(this.css.pivotGrid),i.owner._renderRecord=function(n,t){return c._renderPivotRecord.call(this,c._rowsMatrix,n,t)},(l===null||l===undefined)&&(l=i.owner.options.columns),k={},n.each(this._tableView.appliedColumnSortDirections(),function(n,t){k[t.tupleIndex]=t.sortDirection}),this._processHeaderMarkupRecursive(this.grid().element[0].id,l,k,this._tableView.appliedSortDirectionsMap()),p=f.find("tr").first(),d=p.parent(),e=this._rowsMatrix.length>0?this._rowsMatrix[0].length:1,w=this._maxLevel,y=i.owner.options.columns.length,g=e+y,f.find(".ui-igpivot-droparea[data-role=rows], .ui-igpivot-droparea[data-role=columns], .ui-igpivot-droparea[data-role=measures], .ui-igpivot-droparea[data-role=filters]").length===0?(a=this._createDropAreaOptions(),this.options.hideRowsDropArea?n("<th rowSpan='"+w+"' colSpan='"+e+"' data-skip='true' class='ui-iggrid-header ui-widget-header'><\/th>").prependTo(p):(u=n("<th id='"+r+"_rows' rowSpan='"+w+"' colSpan='"+e+"' data-skip='true' class='"+this.css.dropAreaHeader+"'><\/th>").prependTo(p),u.height(u.height()),o=n("<ul data-role='rows' class='"+this.css.dropArea+"'><\/ul>").appendTo(u),this.options.disableRowsDropArea||this._isTouch()||o.droppable(a)),this.options.hideColumnsDropArea&&this.options.hideMeasuresDropArea||(h=n("<tr><\/tr>").prependTo(d)),this.options.hideColumnsDropArea?this.options.hideMeasuresDropArea||n("<th rowSpan='1' colSpan='"+y+"' data-skip='true' class='ui-iggrid-header ui-widget-header'><\/th>").prependTo(h):(u=n("<th id='"+r+"_columns' rowSpan='1' colSpan='"+y+"' data-skip='true' class='"+this.css.dropAreaHeader+"'><\/th>").prependTo(h),o=n("<ul data-role='columns' class='"+this.css.dropArea+"'><\/ul>").appendTo(u),this.options.disableColumnsDropArea||this._isTouch()||(o.droppable(a),n("#"+r+"_columns_overlay").length<1&&n("<div id='"+r+"_columns_overlay' data-role='columns' class='"+this.css.overlayDropArea+"'><\/div>").appendTo("body").droppable(a))),this.options.hideMeasuresDropArea?this.options.hideColumnsDropArea||n("<th rowSpan='1' colSpan='"+e+"' data-skip='true' class='ui-iggrid-header ui-widget-header'><\/th>").prependTo(h):(u=n("<th id='"+r+"_measures' rowSpan='1' colSpan='"+e+"' data-skip='true' class='"+this.css.dropAreaHeader+"'><\/th>").prependTo(h),o=n("<ul data-role='measures' class='"+this.css.dropArea+"'><\/ul>").appendTo(u),this.options.disableMeasuresDropArea||this._isTouch()||o.droppable(a)),this.options.hideFiltersDropArea||(h=n("<tr><\/tr>").prependTo(d),u=n("<th id='"+r+"_filters' rowSpan='1' colSpan='"+g+"' data-skip='true' class='"+this.css.dropAreaHeader+"'><\/th>").prependTo(h),o=n("<ul data-role='filters' class='"+this.css.dropArea+"'><\/ul>").appendTo(u),this.options.disableFiltersDropArea||this._isTouch()||o.droppable(a))):(n("#"+r+"_rows").attr("rowSpan",w).attr("colSpan",e),n("#"+r+"_columns").attr("rowSpan",1).attr("colSpan",y),n("#"+r+"_measures").attr("rowSpan",1).attr("colSpan",e),n("#"+r+"_fiters").attr("rowSpan",1).attr("colSpan",g)),s=f.find("colgroup"),s.length===0){for(it=this.grid()._isMultiColumnGrid?f.find("th[data-isheadercell]").length:l.length,s="<colgroup>",v=0;v<it;v++)s+="<col><\/col>";s+="<\/colgroup>";s=n(s).prependTo(f)}for(tt=this._rowsMatrix.length>0?this._rowsMatrix[0].length:1,v=0;v<tt;v++)rt=n("<col><\/col>").prependTo(s).attr("data-skip","true");this.options.allowSorting&&(nt=f.find(".ui-igpivotgrid-header[data-sort]"),nt.children(".ui-iggrid-headertext,.ui-iggrid-sortindicator").bind("click",function(n){c._onSort(n)}),nt.filter("[data-axis='empty_axis']").bind("click",function(n){c._onSort(n)}));this.options.allowHeaderColumnsSorting&&f.find(".ui-igpivotgrid-header[data-sortheader]").children(".ui-iggrid-headertext,.ui-iggrid-sortindicator").bind("click",function(n){c._onSortHeader(n)});this.options.hideFiltersDropArea||this._fillDropArea("#"+r+"_filters .ui-igpivot-droparea",b.filters(),this.options.disableFiltersDropArea,this.options.disableFiltersDropArea?n.ig.PivotGrid.locale.disabledFiltersHeader:n.ig.PivotGrid.locale.filtersHeader);this.options.hideRowsDropArea||this._fillDropArea("#"+r+"_rows .ui-igpivot-droparea",b.rowAxis(),this.options.disableRowsDropArea,this.options.disableRowsDropArea?n.ig.PivotGrid.locale.disabledRowsHeader:n.ig.PivotGrid.locale.rowsHeader);this.options.hideColumnsDropArea||this._fillDropArea("#"+r+"_columns .ui-igpivot-droparea",b.columnAxis(),this.options.disableColumnsDropArea,this.options.disableColumnsDropArea?n.ig.PivotGrid.locale.disabledColumnsHeader:n.ig.PivotGrid.locale.columnsHeader);this.options.hideMeasuresDropArea||this._fillDropArea("#"+r+"_measures .ui-igpivot-droparea",b.measures(),this.options.disableMeasuresDropArea,this.options.disableMeasuresDropArea?n.ig.PivotGrid.locale.disabledMeasuresHeader:n.ig.PivotGrid.locale.measuresHeader);this._measureHeaders(l);f.find("thead span.ui-iggrid-headerbutton.ui-icon").bind("click",function(n){return c._onToggleTupleMember(n),!1});this._triggerPivotGridHeadersRendered(t,i)},_renderPivotRecord:function(t,r,u){var e,l=this.options.primaryKey,a=this.options.accessibilityRendering,o=this,f="",s=this.options.columns,h,c="";for(f+="<tr",u%2!=0&&this.options.alternateRowStyles&&(f+=" class='"+o.css.recordAltClass+"'"),i(l)?i(r.ig_pk)||(f+=" data-id='"+r.ig_pk+"'"):f+=" data-id='"+this._kval_from_key(l,r)+"'",this.options.virtualization&&this.options.virtualizationMode==="continuous"&&(f+=" data-row-idx='"+u+"'"),f+=a?" role='row'>":">",e=0;e<t[u].length;e++)t[u][e]&&(c+=t[u][e]);return c!==""&&(f+=c),h=!0,n(s).each(function(n){s[n].hidden||s[n].fixed===!0||(h=!1,f+=a?'<td role="gridcell" aria-describedby="'+this.key+'"':"<td",s[n].template&&s[n].template.length?(temp=o._renderTemplatedCell(r,this),f+=temp.indexOf("<td")===0?temp.substring(3):">"+temp,f=o._editCellStyle(f,r,this.key)):f+=o._addCellStyle(r,this.key?this.key:n)+">"+o._renderCell(r[this.key?this.key:n],this,r),f+="<\/td>")}),h&&(f+="<td role='gridcell'><\/td>"),f+="<\/tr>"},_processHeaderMarkupRecursive:function(t,i,r,u){var f,e,h,s,o,c,l,a,v,y,p,w,b;for(a=this.options.allowSorting,v=this.options.allowHeaderColumnsSorting,c="<span data-expand='true' class='"+this.css.expandButton+"'/>",l="<span data-expand='false' class='"+this.css.collapseButton+"'/>",y="<span data-sort='asc' class='"+this.css.rowsAscending+"'/>",p="<span data-sort='desc' class='"+this.css.rowsDescending+"'/>",w="<span data-sortheader='asc' class='"+this.css.headerColumnsAscending+"'><\/span>",b="<span data-sortheader='desc' class='"+this.css.headerColumnsDescending+"'><\/span>",f=0;f<i.length;f++)e=n("#"+t+"_"+i[f].key),e.addClass(this.css.pivotGridHeader).attr("data-axis",i[f].axisName).attr("data-member",i[f].memberIndex).attr("data-tuple",i[f].tupleIndex),i[f].axisName!==this._const.emptyCell.axisName&&e.attr("title",i[f].headerText),this.options.compactColumnHeaders&&i[f].levelNumber>0&&e.css("padding-top",this.options.compactColumnHeaderIndentation*i[f].levelNumber),s=i[f].expandable,h=i[f].expanded,s&&!h?n(c).insertBefore(e.children(".ui-iggrid-headertext")):s&&h&&(n(l).insertBefore(e.children(".ui-iggrid-headertext")),o=u[i[f].axisName],o&&(o=o[i[f].hierarchyNumber],o&&(o=o[i[f].levelNumber])),o==="ascending"?(e.attr("data-sortheader","ascending"),n(w).appendTo(e)):o==="descending"?(e.attr("data-sortheader","descending"),n(b).appendTo(e)):v&&e.attr("data-sortheader","")),s&&(!s||h)||(o=r[i[f].tupleIndex],o==="ascending"?(e.attr("data-sort","ascending"),n(y).appendTo(e)):o==="descending"?(e.attr("data-sort","descending"),n(p).appendTo(e)):a&&e.attr("data-sort","")),i[f].group&&this._processHeaderMarkupRecursive(t,i[f].group,r,u)},_fillDropArea:function(t,i,r,u){var e=n(t),f,o;if(e.empty(),i.length>0)for(f=0,o=i.length;f<o;f++)this._createMetadataElement(i[f],r,"appendTo",e);else e.text(u)},_measureHeaders:function(t){var h=this,c=this.element.attr("id"),e=this.grid(),i=e.headersTable(),u,o,f,r,s,l;u=this._rowsMatrix.length>0?this._rowsMatrix[0].length:1;this.options.defaultRowHeaderWidth?(i.find("col:lt("+u+")").width(this.options.defaultRowHeaderWidth),this._isTouch()?i.find(".ui-igpivot-droparea[data-role=rows], .ui-igpivot-droparea[data-role=columns], .ui-igpivot-droparea[data-role=measures], .ui-igpivot-droparea[data-role=filters]").each(function(t,i){n(i).wrap(n("<div style='overflow: hidden;'><\/div>")).parent("div").igScroll()}):i.find(".ui-igpivot-droparea[data-role=rows], .ui-igpivot-droparea[data-role=columns], .ui-igpivot-droparea[data-role=measures], .ui-igpivot-droparea[data-role=filters]").each(function(){h._measureDropArea(n(this))}),o=this.options.defaultRowHeaderWidth*u):(f=0,i.find("#"+c+"_measures, #"+c+"_rows").each(function(t,i){var r,u;r=n(i).clone(!1);r.children(".ui-igpivot-droparea").append("<li class='"+h.css.insertItem+"'><\/li>");u=n("<div class='ui-widget ui-widget-header ui-iggrid ui-igpivotgrid'><\/div>").append(r).css({position:"absolute",visibility:"hidden",height:"auto",width:"auto",overflow:"visible","text-overflow":"clip",left:"-1000px",top:"-1000px"}).appendTo(document.body);f=Math.max(f,u.outerWidth(!0));u.remove()}),i.find("col:lt("+u+")").width(Math.ceil(f/u)),o=f);e.options.defaultColumnWidth?i.find("col:gt("+u+")").width(e.options.defaultColumnWidth):(r=i.find("th:not(.ui-igpivot-dropareaheader):first"),s=n("<th class='"+r.attr("class")+"' style='position:absolute;visibility:hidden;height:auto;width:auto;overflow:visible;text-overflow:clip;left:-1000px;top:-1000px;'><\/th>").css({"font-family":r.css("fontFamily"),"font-size":r.css("fontSize"),"font-size-adjust":r.css("fontSizeAdjust"),"font-stretch":r.css("fontStretch"),"font-style":r.css("fontStyle"),"font-variant":r.css("fontVariant"),"font-weight":r.css("fontWeight")}).appendTo(document.body),l=this._measureHeadersRecursive(this.grid().element[0].id,t,s,u),s.remove());(i.find("col").length-u==1||o+l<i.width())&&i.find("col:last").width("auto")},_measureHeadersRecursive:function(t,i,r,u){for(var s,o,e=0,f=0;f<i.length;f++){if(i[f].axisName===this._const.emptyCell.axisName)break;s=n("#"+t+"_"+i[f].key);i[f].group?e+=this._measureHeadersRecursive(t,i[f].group,r,u):(o=r.html(s[0].innerHTML)[0].offsetWidth+10,e+=o,this.grid().headersTable().find("col:eq("+(s.data("columnIndex")+u)+")").width(o),i[f].width=o)}return e},_measureDropArea:function(t){var r=this,u,f,h,c,e,i,l,a,v,y,o,s,p,w;f=t.parent("th");u=f.attr("id");h=n(f).clone(!1);h.children(".ui-igpivot-droparea").append("<li class='"+r.css.insertItem+"'><\/li>");c=n("<div class='ui-widget ui-widget-header ui-iggrid ui-igpivotgrid'><\/div>").append(h).css({position:"absolute",visibility:"hidden",height:"auto",width:"auto",overflow:"visible","text-overflow":"clip",left:"-1000px",top:"-1000px"}).appendTo(document.body);e=f.width();c.find(".ui-igpivot-droparea").outerWidth(!0)>e?(t.css({display:"inline-block",overflow:"hidden",margin:0,padding:0}),v=n("<span class='"+this.css.scrollButton+"'><a class='"+this.css.scrollLeft+"' /><\/span>").insertBefore(t),y=n("<span class='"+this.css.scrollButton+"'><a class='"+this.css.scrollRight+"' /><\/span>").insertAfter(t),0===e?t.width("auto"):t.width(e-v.outerWidth(!0)-y.outerWidth(!0)),i=this._headerScrollOffsets[u]||0,l=0,a=t[0].scrollWidth,o=function(){i<l&&(i=l);i>a&&(i=a);t.scrollLeft(i);r._headerScrollOffsets[u]=i},o(),p=this._getEvent("mouseover"),w=this._getEvent("mouseout"),v.bind(p,function(){s=setInterval(function(){i-=r._const.hoverScrollOffset;o()},r._const.hoverScrollInterval)}).bind(w,function(){clearInterval(s)}),y.bind(p,function(){s=setInterval(function(){i+=r._const.hoverScrollOffset;o()},r._const.hoverScrollInterval)}).bind(w,function(){clearInterval(s)})):delete this._headerScrollOffsets[u];c.remove()},_getKPIs:function(t){for(var i,f,e=[],u=t.measures(),r=u.length-1;r>=0;r--)f={},"KpiMeasure"===u[r].getType().typeName()&&(i=t.getCoreElements(function(n){return n.uniqueName()===u[r].uniqueName()},n.ig.KpiMeasure.prototype.getType())),undefined!==i&&1===i.length&&null!==i[0].graphic()&&(f.name=i[0].caption(),f.graphic=i[0].graphic(),e.push(f));return e},_getKPICells:function(t,i){var o,h,a,p,c,r,u,f,e,w,l,v,y,s;if(0!==t.length){if(1===i.measures().length)t[0].cells=n("."+this.css.pivotGrid+" td");else for(e=t.length-1;e>=0;e--){t[e].cells=n();o=n();o=o.add("th.ui-igpivotgrid-header[title='"+t[e].name+"']");switch(i.getMeasureListLocation()){case"rows":for(f=0;f<o.length;f++)for(w=parseInt(o.eq(f).attr("rowspan"),10),s=o.eq(f).parent(),r=0;r<w;r++){for(u=0;u<s.find("td").length;u++)t[e].cells=t[e].cells.add(s.find("td").eq(u)[0]);s=s.next()}break;case"columns":for(y=0,a=[],h=o.parent().find("th[data-skip!=true]"),r=0,u=0;r<h.length;r++){if(v=parseInt(h.eq(r).attr("colspan"),10),l=isNaN(v)?1:v,h.eq(r)[0]===o.eq(u)[0]){for(f=0;f<l;f++)a.push(r+f+y);u++}y+=l>1?l-1:0}for(c=n("."+this.css.pivotGrid+" tbody tr"),p=c.find("td"),r=0;r<c.length;r++)for(u=0,f=0;u<p.length;u++)u===a[f]&&(t[e].cells=t[e].cells.add(c.eq(r).find("td").eq(u)[0]),f++)}}return t}return[]},_addKPIImages:function(n){for(var u,r,f,e,o,t,i=0;i<n.length;i++)for(u=0;u<n[i].cells.length;u++)if(f=n[i].cells.eq(u),!isNaN(f.text())){r="<div class='ui-igpivotgrid-kpis'";r+=" title='"+f.text()+"'";r+=" style='background-position: ";e=parseFloat(f.text());o=0<e?0:0>e?32:16;switch(n[i].graphic.toLowerCase()){case"road signs":t=0;break;case"traffic light":t=16;break;case"variance arrow":t=32;break;case"standart arrow":t=48;break;case"status arrow - ascending":t=64;break;case"status arrow - descending":t=80;break;case"faces":t=96;break;case"shapes":t=112;break;case"cylinder":t=128;break;case"gauge - ascending":t=144;break;case"gauge - descending":t=160;break;case"thermometer":t=176}r+="-"+o+"px -"+t+"px";r+="'><\/div>";n[i].cells.eq(u)[0].innerHTML=r}},_onDataRendered:function(t,i){var v=this,r=this.element.attr("id"),o=i.owner.element,u=this.grid(),y=this._createDropAreaOptions(),s=this._ds,a,h,f,e,c,l;if("OlapXmlaDataSource"===s.getType().typeName()&&(l=this._getKPIs(s),l=this._getKPICells(l,s),this._addKPIImages(l,s)),o.addClass(this.css.pivotGrid),o.find("tbody th > span[data-expand]").bind("click",function(n){return v._onToggleTupleMember(n),!1}),this.options.allowHeaderRowsSorting&&o.find("tbody th.ui-igpivotgrid-header[data-sortheader]").children(".ui-iggrid-headertext,.ui-iggrid-sortindicator").bind("click",function(n){v._onSortHeader(n)}),u.options.fixedHeaders){for(a=u.headersTable().find("colgroup").find("col"),h=o.find("colgroup"),h.empty(),f=0;f<a.length;f++)for(h.append(n("<col><\/col>")),c=a.eq(f)[0].attributes,e=0;e<c.length;e++)h.find("col").eq(f).attr(c.item(e).name,c.item(e).value);u._setGridContentWidth(u.headersTable().width());u.scrollContainer().scrollTop(this._gridScrollOffsets.top);n("#"+r+"_hscroller").scrollLeft(this._gridScrollOffsets.left)}this.options.disableRowsDropArea||this._isTouch()||n("#"+r+"_rows_overlay").length<1&&n("<div id='"+r+"_rows_overlay' data-role='rows' class='"+this.css.overlayDropArea+"'><\/div>").appendTo("body").droppable(y);this.options.disableMeasuresDropArea||this._isTouch()||n("#"+r+"_measures_overlay").length<1&&n("<div id='"+r+"_measures_overlay' data-role='measures' class='"+this.css.overlayDropArea+"'><\/div>").appendTo("body").droppable(y);this._positionOverlayDropAreas();this._triggerPivotGridRendered(t,i)},_positionOverlayDropAreas:function(){var l=this.element.attr("id"),i=this.grid().headersTable().find("thead"),a=this.grid().element.find("tbody"),u,r,v,f,e,y,p,t,w,b,o,s,h,k,c;u=i.find("th[data-axis]:first").position();v=0;i.find("tr[data-header-row], tr[data-mch-level]").each(function(n,t){v+=t.scrollHeight});(this.options.height!==null||this.options.width!==null)&&(h=this.element.attr("id"),y=n("#"+h+"_container").length===1?n("#"+h+"_container"):n("#"+h+"_table_container"),p=y.parent(),t=y.position());this.options.height!==null?r={top:this.grid().headersTable().height()+t.top,left:t.left}:this.options.width!==null&&(k=this.grid().headersTable().find("tr").eq(0).height(),r=this.grid().headersTable().find("tr[data-mch-level]").length===0?{top:3*k+t.top,left:t.left}:{top:2*k+this.grid().headersTable().find("tr[data-mch-level]").length*this.grid().headersTable().find("tr[data-mch-level]").eq(0).height()+t.top,left:t.left});this.options.height!==null||this.options.width!==null?(w=u.top+t.top+2*parseInt(p.css("paddingTop")[0].replace("px",""),10),b=u.left+t.left,o=r.top+2*parseInt(p.css("paddingTop")[0].replace("px",""),10),s=r.left):(r=this.grid().headersTable().find("tbody tr:first").position(),w=u.top+i.parent().parent().position().top,b=u.left+i.parent().parent().position().left,o=r.top+i.parent().parent().position().top,s=r.left+i.parent().parent().position().left);c=i.find("tr").eq(1).find("th").eq(1);n("#"+l+"_columns_overlay").css({top:w,left:b,width:c.width()+2*(parseInt(c.css("paddingLeft")[0].substr(0),10)+parseInt(c.css("borderLeftWidth")[0].substr(0),10)),height:v,display:"block"});e=i.find("tr").eq(1).find("th:first");f=e.width()+2*(parseInt(e.css("paddingLeft")[0].replace("px",""),10)+parseInt(e.css("borderLeftWidth")[0].replace("px",""),10));n("#"+l+"_rows_overlay").css({top:o,left:s,width:f,height:a[0].scrollHeight,display:"block"});n("#"+l+"_measures_overlay").css({top:o,left:s+f,width:a[0].scrollWidth-f,height:a[0].scrollHeight,display:"block"})},_updateDataSource:function(n){this._updateGrid(!1,n)},_shouldAppendToTarget:function(n,t){return n.offset().left+n.width()/2<t.offset.left+this._const.dragCursorAt.left},_onToggleTupleMember:function(t){var f=this,s=n(t.target),o=s.closest("th"),i,r,u,h,e;this._performsToggle||this._ds.isModified()||(i=o.attr("data-axis"),r=parseInt(o.attr("data-member"),10),u=parseInt(o.attr("data-tuple"),10),h=s.attr("data-expand")==="true",h?(e=this._triggerTupleMemberExpanding(t,i,r,u),e&&(this._ds.expandTupleMember(i,u,r),this._performsToggle=!0,this._updateGrid(!1,!0).done(function(){f._triggerTupleMemberExpanded(null,i,r,u)}).always(function(){f._performsToggle=!1}))):(e=this._triggerTupleMemberCollapsing(t,i,r,u),e&&(this._ds.collapseTupleMember(i,u,r),this._performsToggle=!0,this._updateGrid(!1,!0).done(function(){f._triggerTupleMemberCollapsed(t,i,r,u)}).always(function(){f._performsToggle=!1}))))},_onSort:function(t){var a=this,v=n(t.target).closest("th"),s,e,h,c,o,y,f,i,u,p,w,r,b,l;if(!this._ds.isModified()){if(s=v.attr("data-axis"),e=parseInt(v.attr("data-tuple"),10),s!==this._const.emptyCell.axisName){for(o=this._ds.result().axes().__inner,r=0;r<o.length;r++)if(s===o[r].name()){c=o[r];break}if(!c)return;for(y=c.tuples().item(e),f=[],l=y.members().getEnumerator();l.moveNext();)f.push(l.current().uniqueName());h=f.join("|")}else f=null,h="";for(i=this._tableView.columnSortDirections(),r=0;r<i.length;r++)if(i[r].memberNames&&i[r].memberNames.join("|")===h||i[r].tupleIndex===e){u=i[r];break}t.ctrlKey||(i=[]);u?(u.sortDirection=u.sortDirection==="ascending"?"descending":"ascending",t.ctrlKey||i.push(u)):(u={memberNames:f,tupleIndex:e,sortDirection:this.options.firstSortDirection},i.push(u));b=this._triggerSorting(t,i);b&&(p=n.grep(this._tableView.levelSortDirections(),function(t){var i,r;return(i=a._ds.getCoreElement(function(n){return n.uniqueName()===t.levelUniqueName},n.ig.Level.prototype.getType()),i)?(r=i.hierarchyUniqueName(),n.grep(a._ds.rowAxis(),function(n){return n.uniqueName()===r}).length===0):!1}),this._tableView.levelSortDirections(p),this._tableView.columnSortDirections(i),this._tableView.initialize(),w=this._configureOptions(this._ds),this._renderGrid(w),this._triggerSorted(t,i,this._tableView.appliedColumnSortDirections()))}},_onSortHeader:function(t){var o=n(t.target).closest("th"),l,a,v,s,f,y,h,e,c,p,r,u,w,i,b;if(!this._ds.isModified()){for(l=o.attr("data-axis"),a=parseInt(o.attr("data-tuple"),10),v=parseInt(o.attr("data-member"),10),f=this._ds.result().axes().__inner,i=0;i<f.length;i++)if(l===f[i].name()){s=f[i];break}if(s&&(y=s.tuples().item(a),h=y.members().item(v),e=this._ds.getCoreElement(function(n){return n.hierarchyUniqueName()===h.hierarchyUniqueName()&&n.depth()===h.depth()+1},n.ig.Level.prototype.getType()),e)){for(c=e.uniqueName(),r=this._tableView.appliedLevelSortDirections(),i=0;i<r.length;i++)if(r[i].levelUniqueName===c){u=r[i];break}u?u.sortDirection=u.sortDirection==="ascending"?"descending":"ascending":(u={levelUniqueName:c,sortDirection:this.options.firstLevelSortDirection},r.push(u));b=this._triggerHeadersSorting(t,r);b&&(p=e.hierarchyUniqueName(),n.grep(this._ds.rowAxis(),function(n){return n.uniqueName()===p}).length>0&&this._tableView.columnSortDirections([]),this._tableView.levelSortDirections(r),this._tableView.initialize(),w=this._configureOptions(this._ds),this._renderGrid(w),this._triggerHeadersSorted(t,r,this._tableView.appliedLevelSortDirections()))}}},expandTupleMember:function(t,i,r,u){var o=this._ds,f,s,e;if(f=o.columnAxis().length>0,s=o.rowAxis().length>0,this._ds.isModified())return!1;if(t==="columnAxis"&&f?f&&(e="Axis0"):t==="rowAxis"&&s&&(e=f?"Axis1":"Axis0"),!e)throw new Error(n.ig.PivotGrid.locale.noSuchAxis);this._ds.expandTupleMember(e,i,r);u&&this._updateGrid(null,!0)},collapseTupleMember:function(t,i,r,u){var o=this._ds,f,s,e;if(f=o.columnAxis().length>0,s=o.rowAxis().length>0,this._ds.isModified())return!1;if(t==="columnAxis"&&f?f&&(e="Axis0"):t==="rowAxis"&&s&&(e=f?"Axis1":"Axis0"),!e)throw new Error(n.ig.PivotGrid.locale.noSuchAxis);this._ds.collapseTupleMember(e,i,r);u&&this._updateGrid()},appliedColumnSortDirections:function(){return this._tableView?this._tableView.appliedColumnSortDirections():[]},appliedLevelSortDirections:function(){return this._tableView?this._tableView.appliedLevelSortDirections():[]},destroy:function(){var t=this.grid();t&&t.destroy();n("#"+this.element.attr("id")+"_container_block").remove();this.element.removeClass(this.css.pivotGrid);n(this._ds).unbind("initialized.pivotgrid"+this.timestamp);n(this._ds).unbind("updated.pivotgrid"+this.timestamp);n.Widget.prototype.destroy.call(this)},_triggerPivotGridHeadersRendered:function(n,t){var i={owner:this,grid:t.owner,table:t.table};this._trigger("pivotGridHeadersRendered",n,i)},_triggerPivotGridRendered:function(n,t){var i={owner:this,grid:t.owner};this._trigger("pivotGridRendered",n,i)},_triggerTupleMemberExpanding:function(n,t,i,r){var u={owner:this,dataSource:this._ds,axisName:t,memberIndex:i,tupleIndex:r};return this._trigger("tupleMemberExpanding",n,u)},_triggerTupleMemberExpanded:function(n,t,i,r){var u={owner:this,dataSource:this._ds,axisName:t,memberIndex:i,tupleIndex:r};this._trigger("tupleMemberExpanded",n,u)},_triggerTupleMemberCollapsing:function(n,t,i,r){var u={owner:this,dataSource:this._ds,axisName:t,memberIndex:i,tupleIndex:r};return this._trigger("tupleMemberCollapsing",n,u)},_triggerTupleMemberCollapsed:function(n,t,i,r){var u={owner:this,dataSource:this._ds,axisName:t,memberIndex:i,tupleIndex:r};this._trigger("tupleMemberCollapsed",n,u)},_triggerSorting:function(n,t){var i={owner:this,sortDirections:t};return this._trigger("sorting",n,i)},_triggerSorted:function(n,t,i){var r={owner:this,sortDirections:t,appliedSortDirections:i};this._trigger("sorted",n,r)},_triggerHeadersSorting:function(n,t){var i={owner:this,levelSortDirections:t};return this._trigger("headersSorting",n,i)},_triggerHeadersSorted:function(n,t,i){var r={owner:this,levelSortDirections:t,appliedLevelSortDirections:i};this._trigger("headersSorted",n,r)}});n.extend(!0,n.ui.igPivotGrid.prototype,n.ig.Pivot._pivotShared);n.extend(n.ui.igPivotGrid,{version:"14.1.20141.2031"})}(jQuery),function(n){var t=n.ui.igPivotGrid.prototype.widgetFullName||n.ui.igPivotGrid.prototype.widgetName,i=n.ui.igPivotDataSelector.prototype.widgetFullName||n.ui.igPivotDataSelector.prototype.widgetName,r=n.ui.igSplitter.prototype.widgetFullName||n.ui.igSplitter.prototype.widgetName;n.widget("ui.igPivotView",{options:{width:null,height:null,dataSource:null,dataSourceOptions:{xmlaOptions:{serverUrl:null,catalog:null,cube:null,measureGroup:null,requestOptions:{withCredentials:!1,beforeSend:null},enableResultCache:!0,discoverProperties:null,executeProperties:null,mdxSettings:{nonEmptyOnRows:!0,nonEmptyOnColumns:!0,addCalculatedMembersOnRows:!0,addCalculatedMembersOnColumns:!0,dimensionPropertiesOnRows:[],dimensionPropertiesOnColumns:[]}},flatDataOptions:{dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,responseDataType:null,metadata:{cube:{name:null,caption:null,measuresDimension:{name:null,caption:null,measures:[{name:null,caption:null,aggregator:null,displayFolder:null}]},dimensions:[{name:null,caption:null,hierarchies:[{name:null,caption:null,displayFolder:null,levels:[{name:null,caption:null,memberProvider:null}]}]}]}}},measures:null,filters:null,rows:null,columns:null},pivotGridOptions:{isParentInFrontForColumns:!1,isParentInFrontForRows:!0,compactColumnHeaders:!1,compactRowHeaders:!0,compactColumnHeaderIndentation:30,compactRowHeaderIndentation:20,defaultRowHeaderWidth:200,allowSorting:!1,firstSortDirection:"ascending",allowHeaderRowsSorting:!1,allowHeaderColumnsSorting:!1,levelSortDirections:[{levelUniqueName:null,sortDirection:null}],firstLevelSortDirection:"ascending",gridOptions:{defaultColumnWidth:null,fixedHeaders:!0,caption:null,features:[],tabIndex:0,alternateRowStyles:!0,enableHoverStyles:!1},dragAndDropSettings:{appendTo:"body",containment:!1,zIndex:10},dropDownParent:"body",disableRowsDropArea:!1,disableColumnsDropArea:!1,disableMeasuresDropArea:!1,disableFiltersDropArea:!1,hideRowsDropArea:!1,hideColumnsDropArea:!1,hideMeasuresDropArea:!1,hideFiltersDropArea:!1,customMoveValidation:null},dataSelectorOptions:{dragAndDropSettings:{appendTo:"body",containment:!1,zIndex:10},dropDownParent:"body",customMoveValidation:null},pivotGridPanel:{resizable:!0,collapsible:!1,collapsed:!1,size:null},dataSelectorPanel:{location:"right",resizable:!0,collapsible:!0,collapsed:!1,size:250}},_create:function(){var h=this,u,t,i,f,e,o,r,s;if(u=this.element[0].nodeName.toUpperCase(),u!=="DIV")throw new Error(u+n.ig.PivotDataSelector.locale.invalidBaseElement);this.element.addClass("ui-igpivotview");this.options.width&&this.element.width(this.options.width);this.options.height&&this.element.height(this.options.height);r=this.options.dataSelectorPanel.location;t=n("<div><\/div>").appendTo(this.element);i=n("<div><\/div>").appendTo(t);f=n("<table><\/table>").attr("id",this.element.attr("id")+"_pivotGrid").appendTo(i);i=n("<div><\/div>")[r==="right"?"appendTo":"prependTo"](t);e=n("<div><\/div>").attr("id",this.element.attr("id")+"_dataSelector").appendTo(i);o=[this.options.pivotGridPanel,this.options.dataSelectorPanel];r!=="right"&&o.reverse();s=n.ig.Pivot._pivotShared._createDataSource(this.options.dataSource,this.options.dataSourceOptions);e.igPivotDataSelector(n.extend(!0,this.options.dataSelectorOptions,{dataSource:s}));t.igSplitter({width:this.options.width||this.element.width(),height:this.options.height||this.element.height(),panels:o}).bind("igsplitterresizeended igsplitterexpanded igsplittercollapsed",function(){h._setSize()}).bind("igsplitterresizestarted",function(){n(".ui-igpivot-metadatadropdown,.ui-igpivot-filterdropdown").remove()});n.ui.igSplitter.prototype.css.verticalPanel&&n(n.ui.igSplitter.prototype.css.verticalPanel.replace(/ui-/g,".ui-").replace(/ /g,"")).css("overflow","hidden");f.igPivotGrid(n.extend(!0,this.options.pivotGridOptions,{dataSource:s,width:(r==="right"?t.igSplitter("firstPanel"):t.igSplitter("secondPanel")).width(),height:t.igSplitter("option","height")}));t.igSplitter("refreshLayout");this._setSize();e.bind("igpivotdataselectordeferupdatechanged",function(n,t){f.igPivotGrid("option","deferUpdate",t.deferUpdate)})},_setOption:function(t,i){switch(t){case"dataSource":this.options.dataSourceOptions=null;this.options.dataSource=n.ig.Pivot._pivotShared._createDataSource(i,null);this.dataSelector().option("dataSource",this.options.dataSource);this.pivotGrid().option("dataSource",this.options.dataSource);break;case"dataSourceOptions":this.options.dataSourceOptions=i;this.options.dataSource=n.ig.Pivot._pivotShared._createDataSource(null,i);this.dataSelector().option("dataSource",this.options.dataSource);this.pivotGrid().option("dataSource",this.options.dataSource);break;case"width":case"height":n.Widget.prototype._setOption.call(this,arguments);this.splitter().element[t](i);this._setSize()}},_setSize:function(){var n=this.splitter(),r=this.pivotGrid(),u=this.dataSelector(),f=this.element.height(),e,t,i;e=this.options.dataSelectorPanel.location;e==="right"?(t=n.firstPanel().width(),i=n.secondPanel().width()):(t=n.secondPanel().width(),i=n.firstPanel().width());r.option("width",t);r.option("height",f);u.option("width",i);u.option("height",f)},pivotGrid:function(){try{return this.element.find(":ui-igPivotGrid").data(t)}catch(n){if(n==="Syntax error, unrecognized expression: Syntax error, unrecognized expression: ui-igPivotGrid"||n.message==="Syntax error, unrecognized expression: ui-igPivotGrid")return this.element.find(":ui-igpivotgrid").data(t);throw n;}},dataSelector:function(){try{return this.element.find(":ui-igPivotDataSelector").data(i)}catch(n){if(n==="Syntax error, unrecognized expression: Syntax error, unrecognized expression: ui-igPivotDataSelector"||n.message==="Syntax error, unrecognized expression: ui-igPivotDataSelector")return this.element.find(":ui-igpivotdataselector").data(i);throw n;}},splitter:function(){try{return this.element.find(":ui-igSplitter").data(r)}catch(n){if(n==="Syntax error, unrecognized expression: Syntax error, unrecognized expression: ui-igSplitter"||n.message==="Syntax error, unrecognized expression: ui-igSplitter")return this.element.find(":ui-igsplitter").data(r);throw n;}},destroy:function(){this.element.removeClass("ui-igpivotview");try{this.element.find(":ui-igPivotGrid").igPivotGrid("destroy");this.element.find(":ui-igPivotDataSelector").igPivotDataSelector("destroy");this.element.find(":ui-igSplitter").igSplitter("destroy").remove()}catch(t){if(typeof t=="string"){if(t.indexOf("unrecognized expression: ui-ig")!==-1){this.element.find(":ui-igpivotgrid").igPivotGrid("destroy");this.element.find(":ui-igpivotdataselector").igPivotDataSelector("destroy");this.element.find(":ui-igsplitter").igSplitter("destroy").remove();n.Widget.prototype.destroy.call(this);return}}else if(t.message.indexOf("unrecognized expression: ui-ig")!==-1){this.element.find(":ui-igpivotgrid").igPivotGrid("destroy");this.element.find(":ui-igpivotdataselector").igPivotDataSelector("destroy");this.element.find(":ui-igsplitter").igSplitter("destroy").remove();n.Widget.prototype.destroy.call(this);return}throw t;}}});n.extend(n.ui.igPivotView,{version:"14.1.20141.2031"})}(jQuery),function(n){var t=function(n){return n===null||n===undefined||typeof n=="number"&&isNaN(n)};n.widget("ui.igRating",{options:{vertical:!1,value:null,valueHover:null,voteCount:5,voteWidth:0,voteHeight:0,swapDirection:!1,valueAsPercent:!0,focusable:!0,precision:"whole",precisionZeroVote:.25,roundedDecimalPlaces:3,theme:null,validatorOptions:null,cssVotes:null},css:{normal:"ui-igrating ui-state-default ui-widget-content",active:"ui-igrating-active",selected:"ui-igrating-selected ui-state-highlight",hover:"ui-igrating-hover ui-state-hover",vote:"ui-igrating-vote ui-icon ui-icon-star",voteSelected:"ui-igrating-voteselected",voteDisabled:"ui-igrating-votedisabled ui-state-disabled",voteHover:"ui-igrating-votehover",voteDisabledSelected:"ui-igrating-votedisabledselected ui-state-disabled"},events:{hoverChange:null,valueChange:null},_create:function(){var f,s,c,l={fontSize:"1px",width:"100%",height:"100%",position:"relative",overflow:"hidden"},r=this.options,e=this.element,i=this,h=this.css,a=this._count(r),u=e[0].style,o=r.inputName;i._old={width:u.width,height:u.height,html:e[0].innerHTML};o||(e[0].innerHTML="");r.theme&&e.addClass(r.theme);i._swap=r.swapDirection;i._rtl=e.css("direction")==="rtl";i._rtl&&(i._swap=!i._swap,e.css("direction","ltr"));i._hasHov=0;c=i._elem=n("<div/>").css(l).addClass(h.normal).appendTo(e).bind(i._evts={mousedown:function(n){i._doEvt(n,1)},mousemove:function(n){i._doEvt(n,2)},mouseleave:function(n){i._doEvt(n,3)}});s=n("<div/>").css(l).appendTo(c);r.focusable&&(u={left:"5px",top:"5px",opacity:.1,position:"absolute",width:"1px",height:"1px",padding:"0px",zIndex:-1,border:"0px",outline:0},i._foc=n('<input type="button"/>').css(u).appendTo(s).focus(function(n){r.disabled||i._fcs||(i._fcs=1,i._hasHov<2&&(i._hasHov+=2),i._hov&&(i._doVal(i._valH,1,n),i._hov.css("visibility","visible")),i._elem.addClass(h.active))}).blur(function(){!r.disabled&&i._fcs&&(i._fcs=null,i._hasHov%=2,i._hov&&i._hasHov===0&&i._hov.css("visibility","hidden"),i._elem.removeClass(h.active))}).keydown(function(t){var l,s=0,u=t.keyCode,e=n.ui.keyCode,f=i._valH,h=i._swap?-1:1,c=r.vertical,o=1/i._count(r);if(!r.disabled){if(l=f,o/=i._prec(r),u===e.SPACE||u===e.ENTER){i._doVal(f,!1,t);return}if(u===e.HOME?f=0:u===e.END?f=1:u===e.PAGE_DOWN?f+=o*4:u===e.PAGE_UP?f-=o*4:u===e.UP&&c?f+=s=-o*h:u===e.DOWN&&c?f+=s=o*h:u!==e.LEFT||c?u!==e.RIGHT||c||(f+=s=o*h):f+=s=-o*h,u>32&&u<41)try{t.preventDefault();t.stopPropagation()}catch(a){}for(u=0;u<3;u++)if(l!==(f=Math.max(Math.min(f,1),0))&&i._doVal(f,1,t)&&s)f+=s;else break}}));i._doVotes(r,s);o&&(f=n('input[name="'+o+'"]'),f.length<=0&&(f=n("#"+o)),u=f[0]?f[0].value:null,u&&(r.value=i._toNum(u,r)));i._val=i._toNum(r.value,r);u=r.valueHover;i._valH=t(u)?i._val:i._toNum(u,r);r.valueAsPercent||(i._val/=a,i._valH/=a);i.validator();i._set=!0;i._doVal(i._val,null,f?2:f);i._doVal(i._valH,1);delete i._set},_toNum:function(n,t){return n?(t=t._vsFormat,typeof n=="string"&&(n=parseFloat(t?n.replace(t,"_").replace(/[`,\. \':]/g,"").replace("_","."):n)),isNaN(n)||n<0?0:n):0},_count:function(n){return n=parseInt(n.voteCount,10),isNaN(n)?5:Math.max(n,1)},_doVotes:function(t,i){var v,y,p,u,f,c,e,s,d=i,w=this._count(t),l={width:"100%",height:"100%"},b={left:"0px",top:"0px",position:"absolute",overflow:"hidden",border:"none",background:"none"},h=-1,r=this,o=this.css,a=this._elem,g=this.element,k={touchstart:function(t){t.preventDefault();n(this).trigger("mousedown")}};for(i||(i=r._div.parent(),r._div.remove(),r._hov.remove(),r._sel.remove(),r._selSwap=r._hovSwap=null),c=r._div=n("<div/>").addClass(o.vote).css(b).appendTo(i),t.vertical||c.css("whiteSpace","nowrap"),u=parseInt(t.voteHeight,10),f=parseInt(t.voteWidth,10),(isNaN(u)||u<2)&&(u=c.css("height"),u=!u||u.indexOf("px")<1?16:parseInt(u,10)),(isNaN(f)||f<2)&&(f=c.css("width"),f=!f||f.indexOf("px")<1?16:parseInt(f,10)),c.removeClass(o.vote),y=r._sel=n("<div/>").addClass(o.selected).css(l).css(b).appendTo(i),t.vertical||y.css("whiteSpace","nowrap"),v=r._hov=n("<div/>").addClass(o.hover).css(l).css(b).css("visibility","hidden").appendTo(i),t.vertical||v.css("whiteSpace","nowrap"),r._swap&&!t.vertical&&(r._hovSwap=v=n("<div/>").css(l).appendTo(r._hov),r._selSwap=y=n("<div/>").css(l).appendTo(r._sel)),p={display:t.vertical?"block":"inline-block",width:f,height:u,textIndent:"0px",overflow:"visible"};++h<w;)e=n("<span />").addClass(o.vote).css(p).appendTo(c).bind(k),t.disabled&&e.addClass(o.voteDisabled),s=t.cssVotes?t.cssVotes[h]:null,s&&s[0]&&e.addClass(s[0]),e[0]._i=h,e=n("<span />").addClass(o.vote).addClass(o.voteSelected).css(p).appendTo(y).bind(k),t.disabled&&e.addClass(o.voteDisabledSelected),s&&s[1]&&e.addClass(s[1]),e[0]._i=h,r._swap&&!r._selSwap&&(r._selSwap=e),e=n("<span />").addClass(o.vote).addClass(o.voteHover).css(p).appendTo(v).bind(k),s&&s[2]&&e.addClass(s[2]),e[0]._i=h,r._swap&&!r._hovSwap&&(r._hovSwap=e);t.vertical?(r._size=u,u*=w):(r._size=f,f*=w);a.css({height:u+"px",width:f+"px"});try{u+=(h=Math.max(a.outerHeight()-a.innerHeight(),0))>10?2:h;f+=(h=Math.max(a.outerWidth()-a.innerWidth(),0))>10?2:h}catch(nt){}g.css({height:u+"px",width:f+"px"});c.css(l);d||r.value(r.value())},validator:function(n){var t=this.options.validatorOptions,i=this._foc,r=this._validator;return r&&(n||!t)?(r.destroy(),delete this._validator):!r&&!n&&t&&i&&i.igValidator&&(t.element=this.element.find(":first-child"),this._validator=i.igValidator(t).data("igValidator")),this._validator},validate:function(){return this._validator?this._validator.validate():null},_doEvt:function(n,t){var r,i=this,u=this.options;if(!u.disabled){if(t===3){i._hasHov-=i._hasHov%2;i._hov&&i._hasHov===0&&(i._hov[0].style.visibility="hidden");return}if(r=i._valFromEvt(n),!(r<0)){if(t===1){if(!i._sel)return;if(r=i._lastHov||r,i._doVal(r,!1,n),i._doVal(r,1,n),i._foc&&document.hasFocus&&!document.hasFocus())return setTimeout(function(){i.focus()},0);i.focus()}if(t===2){if(i._lastHov=r,!i._hov)return;i._hasHov%2==0&&i._hasHov++;i._hov[0].style.visibility="visible";i._doVal(r,1,n)}n.preventDefault()}}},_setOption:function(t,i){var r,e,u,f=this.options;if(f[t]===i||t==="swapDirection"||t==="vertical"||t==="focusable")return this;if(e=this._count(f),t==="disabled"){if(r=n("SPAN",this._div),u=this.css.voteDisabled,r.length!==e)return this;i?r.addClass(u):r.removeClass(u);r=n("SPAN",this._sel);u=this.css.voteDisabledSelected;r.length!==e&&this._selSwap&&(r=n("SPAN",this._selSwap));r.length===e&&(i?r.addClass(u):r.removeClass(u))}return(t==="theme"&&(f.theme&&this.element.removeClass(f.theme),i&&this.element.addClass(i)),f[t]=i,typeof i=="function")?this:(this._set=!0,(t==="precision"||t==="valueAsPercent")&&(this._doVal(this._val,!1,1),this._doVal(this._valH,1,1)),(t.indexOf("vote")===0||t==="theme"||t==="cssVotes")&&this._doVotes(f),t.indexOf("value")>=0&&this._doVal(i,t.length>6,1,1),t==="validatorOptions"&&this.validator(),delete this._set,this)},_evtOffset:function(n,i){var r,f=n.originalEvent||n,u="offset"+i;return t(r=n[u])&&t(r=f[u])&&t(r=n[u="layer"+i])&&(r=f[u]),r||1},_valFromEvt:function(i){var u,o,e,f,s,h=this.options,r=i?i.target:null;return(s=r&&r.nodeName==="SPAN"?r._i:null,t(s))?-1:(r.unselectable||(r.unselectable="on"),f=this._evtOffset(i,h.vertical?"Y":"X"),u=this._size,o=-(h.vertical?r.offsetTop:r.offsetLeft),this._swap&&n.ig.util.isFF&&o<u&&(f+=o),u*=s,u>f&&(f+=u),e=f/this._count(h)/this._size,this._swap&&(e=1-e),Math.max(Math.min(e,1),0))},_doVal:function(t,i,r,u){var h,c,s,l,o=this.options,f=i?this._hov:this._sel,a=this._size,e=this._swap?i?this._hovSwap:this._selSwap:null;if(f&&(f=f[0],f&&(f=f.style)),f){if(l=this._count(o),u&&(t=parseFloat(t)),isNaN(t)?t=-1:u&&!o.valueAsPercent&&(t/=l),r&&r.type&&t>=0){if(u=this._fixVal(i?this._valH:this._val,1),s=this._fixVal(t,1),u===s)return 1;if(!this._trigger(i?"hoverChange":"valueChange",r,{value:s,oldValue:u}))return}t<0&&i&&(t=this._val);t=this._fixVal(t);r&&(u=this._round(o.valueAsPercent?t:t*l,o),i?(this._valH=t,o.valueHover=u):(r!==2&&(this._val=t,o.value=u),h=o.inputName,h&&(c=n('input[name="'+h+'"]'),c.length===0&&(c=n('<input type="hidden" name="'+h+'" />').appendTo(this.element.parent())),s=o._vsFormat,c.val(s?u.toString().replace(".",s):u))));!i&&this._foc&&this._foc.val(this._fixVal(t,1));e&&(t=1-t);t=Math.floor(t*a*l+.3);t+="px";e&&(e=e[0],e&&(e=e.style));o.vertical?e?(f.top=t,e.marginTop="-"+t):f.height=t:e?(f.left=t,e.marginLeft="-"+t):f.width=t}},_prec:function(n){return n=this._set?null:n.precision,n&&(n=n.toLowerCase()),n==="half"?2:n==="whole"?1:4},_fixVal:function(n,t,i){var u,f,r=this.options;return(i=i||this._prec(r),f=this._count(r),n=Math.max(Math.min(n,1),0),i<4&&(u=f*i,n*=u,n=n<r.precisionZeroVote?0:Math.floor(Math.floor(n+.99)+.499*i)/u),!t)?n:(r.valueAsPercent||(n*=f,n=i>1?n:Math.floor(n+.1)),this._round(n,r))},_round:function(n,t){var r=1,i=parseInt(t.roundedDecimalPlaces,10);if(isNaN(i)||i<0)return n;for(i=Math.min(15,Math.max(i,this._prec(t)<4?3:t.valueAsPercent?1:0));i-->0;)r*=10;return Math.round(n*r)/r},value:function(n){return typeof n!="number"?this._fixVal(this._val,1,4):(this._set=!0,this._doVal(n,!1,1,1),delete this._set,this)},valueHover:function(n){return typeof n!="number"?this._fixVal(this._valH,1,4):(this._set=!0,this._doVal(n,1,1,1),delete this._set,this)},hasFocus:function(){return this._fcs===1},focus:function(){if(this._foc)try{this._foc[0].focus()}catch(n){}return this},destroy:function(){var i=this.options,r=this._old,t=this.element;return this._elem?(this.validator(1),this._foc&&this._foc.unbind().remove(),this._elem.remove(),i.theme&&t.removeClass(i.theme),t[0].style.width=r.width,t[0].style.height=r.height,i.inputName||(t[0].innerHTML=r.html),this._rtl&&t.css("direction","rtl"),n.Widget.prototype.destroy.apply(this,arguments),this._elem=this._hov=this._sel=this._selSwap=this._hovSwap=this._foc=this._evts=null,this):this}});n.extend(n.ui.igRating,{version:"14.1.20141.2031"})}(jQuery),function(n){n.widget("ui.igToolbarButton",n.ui.igButton,{options:{allowToggling:!0,isSelected:!1},css:{toolbarButtonWidget:"ui-igtoolbarbutton"},events:{activating:"activating",activated:"activated",deactivating:"deactivating",deactivated:"deactivated"},_setOption:function(t,i){this.options[t]!==i&&n.ui.igButton.prototype._setOption.apply(this,arguments)},_create:function(){n.ui.igButton.prototype._create.apply(this);this._setupElement();this._attachToolbarBtnEvents()},_setupElement:function(){this.element.addClass(this.css.toolbarButtonWidget).attr("tabindex","1")},_onBlur:function(n){var i,t=this.options;t.disabled||(i=this._trigger("blur",n),i&&(this.element.removeClass(t.css.buttonFocusClasses),t.allowToggling||this.element.removeClass(t.css.buttonActiveClasses)))},_onMouseDown:function(n){var i,r=this.element,t=this.options;t.disabled||(i=this._trigger("mousedown",n),i&&(r.removeClass(t.css.buttonHoverClasses),t.allowToggling||r.addClass(t.css.buttonActiveClasses)))},_onMouseUp:function(n){var i,t=this.options;t.disabled||(i=this._trigger("mouseup",n),i&&(this.element.removeClass(t.css.buttonHoverClasses),t.allowToggling||this.element.removeClass(t.css.buttonActiveClasses)))},_onEnterKey:function(t){t.keyCode===n.ui.keyCode.ENTER&&this.element.mousedown()},_triggerActivating:function(n){var t={owner:this};return this._trigger(this.events.activating,n,t)},_triggerActivated:function(n){var t={owner:this};return this._trigger(this.events.activated,n,t)},_triggerDeactivating:function(n){var t={owner:this};return this._trigger(this.events.deactivating,n,t)},_triggerDeactivated:function(n){var t={owner:this};return this._trigger(this.events.deactivated,n,t)},_attachToolbarBtnEvents:function(){var i,r=this.options,t=this;this.element.click(function(n){r.allowToggling&&(r.isSelected?(i=t._triggerDeactivating(n),i&&(t.deactivate(n),t.element.addClass(r.css.buttonHoverClasses))):(i=t._triggerActivating(n),i&&t.activate(n)))});this.element.on("keypress",n.proxy(this._onEnterKey,this))},toggle:function(){var n=this.options;n.disabled!==!0&&n.allowToggling!==!1&&(n.isSelected=!n.isSelected,this.element.toggleClass(n.css.buttonActiveClasses))},activate:function(n){var t=this.options;t.disabled!==!0&&t.allowToggling!==!1&&(t.isSelected=!0,this.element.addClass(t.css.buttonActiveClasses),n&&this._triggerActivated(n))},deactivate:function(n){var t=this.options;t.disabled!==!0&&t.allowToggling!==!1&&(t.isSelected=!1,this.element.removeClass(t.css.buttonActiveClasses).removeClass(t.css.buttonFocusClasses),n&&this._triggerDeactivated(n))},widget:function(){return this.element},destroy:function(){n.ui.igButton.prototype.destroy.call(this);this.element.off().removeClass("")}});n.extend(n.ui.igToolbarButton,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igColorPicker",{options:{colors:[["#ffffff","#000000","#EEECE1","#1F497D","#4F81BD","#C0504D","#9BBB59","#8064A2","#4BACC6","#F79646"],["#F2F2F2","#7F7F7F","#DDD9C3","#C6D9F0","#DBE5F1","#F2DCDB","#EBF1DD","#E5E0EC","#DBEEF3","#FDEADA"],["#D8D8D8","#595959","#C4BD97","#8DB3E2","#B8CCE4","#E5B9B7","#D7E3BC","#CCC1D9","#B7DDE8","#FAC08F"],["#BFBFBF","#3F3F3F","#938953","#548DD4","#95B3D7","#D99694","#C3D69B","#B2A1C7","#92CDDC","#FAC08F"],["#A5A5A5","#262626","#494429","#17365D","#366092","#953734","#76923C","#5F497A","#31859B","#E36C09"],["#7F7F7F","#0C0C0C","#1D1B10","#0F243E","#244061","#632423","#4F6128","#3F3151","#205867","#974806"]],standardColors:["#C00000","#FF0000","#FFC000","#FFFF00","#92D050","#00B050","#00B0F0","#0070C0","#002060","#7030A0"]},events:{colorSelected:"colorSelected"},css:{standardColorsRow:"ui-colorpicker-standardcolors",baseClass:"ui-igColorPicker"},_create:function(){var t,r,f,e,u=n.extend(!0,[],this.options.colors),i='<ul class="color-table">';for(u.push(this.options.standardColors),e=u.length,t=0;t<e;t++){for(i+="<li><ul>",f=u[t].length,r=0;r<f;r++)i+='<li class="color-item"><a href="#"><span class="color" style="background-color: '+u[t][r]+';"><\/span><\/a><\/li>';i+="<\/ul><\/li>"}i+="<\/ul>";this._colorTable=n(i).appendTo(this.element);n(".color-table > li:last ul").addClass(this.css.standardColorsRow)},_getColor:function(n){return n.css("background-color")},_init:function(){this.element.addClass(this.css.baseClass);this._colorTable.children().first().addClass("color-table-first-row");this._bindEvents()},_bindEvents:function(){var t=this;this._colorTable.delegate("a","click",function(i){var r=n(i.target);i.preventDefault();t._changeSelectedColor(r);t._trigger(t.events.colorSelected,i,{color:t._getColor(r)})})},_changeSelectedColor:function(n){this._colorTable.find("span.selected-color").removeClass("selected-color");n.is("a")&&(n=n.children());n.addClass("selected-color")}});n.extend(n.ui.igColorPicker,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igColorPickerSplitButton",n.ui.igSplitButton,{options:{items:[],defaultColor:"#000",hasDefaultIcon:!0},_create:function(){n.ui.igSplitButton.prototype._create.call(this);this._setButtonColorIndicator(this.options.defaultColor)},_createItemsList:function(){var t,i;this._options.popover=n('<div id="'+this._id("_popover")+'"><\/div>').appendTo(this.element);i=n.ig.util.isTouchDevice()?{direction:"bottom",closeOnBlur:!1,width:480,height:360,maxWidth:480,maxHeight:360,defaultMaxWidth:null}:{direction:"bottom",closeOnBlur:!1,width:220,defaultMaxWidth:null};this._options.popover.igPopover(i);t=this._options.popover.igPopover("container");this._options.itemsList=t.igColorPicker()},_attachEvents:function(){n.ui.igSplitButton.prototype._attachEvents.call(this);this._options.itemsList.on("igcolorpickercolorselected",n.proxy(this._onColorSelect,this));this._options.defaultButton.on("igtoolbarbuttonclick",n.proxy(this._onDefaultButtonClick,this));this.element.on("igcolorpickersplitbuttoncollapsing",n.proxy(this._preventCollapsing,this))},collapse:function(n){var t=this._options;t.popover.igPopover("hide");this.element.removeClass(this.css.active);t.expandButton.removeClass(this.css.focus);t.isExpanded=!1;n&&this._triggerCollapsed(n)},expand:function(n){var t=this._options;t.popover.igPopover("show",this.element);this.element.addClass(this.css.active);t.isExpanded=!0;n&&this._triggerExpanded(n)},_onItemClick:function(){return!1},_onColorSelect:function(n,t){this._setButtonColorIndicator(t.color);this.options.defaultColor=t.color;this._trigger("colorSelected",n,{value:t.color,item:this.element});this.collapse()},setColor:function(n){this._setButtonColorIndicator(n);this.options.defaultColor=n;this.collapse()},_onDefaultButtonClick:function(n){n.stopPropagation();this._trigger("colorSelected",n,{value:this.options.defaultColor,item:this.element})},_setButtonColorIndicator:function(n){this._options.defaultButton.children(":first").css("border-bottom-color",n);this.options.hasDefaultIcon||(this._options.defaultButton.children(":first").css("background-color",n),this._options.defaultButton.children(":first").css("background-image","none"))},_preventCollapsing:function(){return!1},destroy:function(){n.ui.igSplitButton.prototype.destroy.apply(this,arguments)}});n.extend(n.ui.igColorPickerSplitButton,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.ig=n.ig||{};n.ig.igToolbarItemBaseDescriptor=Class.extend({settings:{width:null,height:null,props:{scope:{value:null}}},_updatedProperties:[],init:function(t){this.settings=n.extend(!0,{},this.settings,t);this.name=t.name;this.type=t.type;this.settings.scope&&(this.settings.props.scope=this.settings.scope)},updateProperty:function(n,t){this.settings.props[n].value=t;this._updatedProperties.push(this.settings.props[n])},getProperty:function(n){return this.settings.props[n]},getUpdatedProperties:function(){return this._updatedProperties},getProperties:function(){return this.settings.props},callbackRenderer:function(){if(this.settings.callbackRenderer&&n.isFunction(this.settings.callbackRenderer))return this.settings.callbackRenderer()},handler:function(){return this.settings.handler}});n.ig.igToolbarButtonDescriptor=n.ig.igToolbarItemBaseDescriptor.extend({settings:{props:{onlyIcons:{value:!0},labelText:{value:"&nbsp;"}}},init:function(n){this._super(n)}});n.ig.igToolbarSplitButtonDescriptor=n.ig.igToolbarItemBaseDescriptor.extend({settings:{props:{items:[]}},init:function(n){this._super(n)}});n.ig.igToolbarComboDescriptor=n.ig.igToolbarItemBaseDescriptor.extend({settings:{props:{valueKey:{value:"text"},textKey:{value:"value"},enableCheckboxes:{value:!1},dropDownOnFocus:{value:!0},selectedItems:{value:[{index:0}]},enableClearButton:{value:!1},dataSource:{value:null},mode:{value:"dropdown"},dropDownAsChild:{value:!0},focusOnSelect:{value:!1}}},init:function(n){this._super(n);this.settings.dataSource&&(this.settings.props.dataSource.value=this.settings.dataSource)}});n.widget("ui.igToolbar",{options:{height:null,width:null,allowCollapsing:!0,collapseButtonIcon:"ui-igbutton-collapsed",expandButtonIcon:"ui-igbutton-expanded",name:"",displayName:"",items:[],isExpanded:!0},events:{toolbarButtonClick:"toolbarButtonClick",toolbarComboOpening:"toolbarComboOpening",toolbarComboSelected:"toolbarComboSelected",toolbarMouseDown:"toolbarMouseDown",toolbarCustomItemClick:"toolbarCustomItemClick",itemRemoved:"itemRemoved",itemAdded:"itemAdded",collapsing:"collapsing",collapsed:"collapsed",expanding:"expanding",expanded:"expanded",itemDisable:"itemDisable",itemEnabled:"itemEnabled"},css:{toolbarWidget:"ui-widget ui-widget-content ui-igtoolbar ui-corner-all",toolbarWrapperConteiner:"ui-widget ui-widget-content ui-igtoolbar ui-corner-all",toolbarCollapsedButton:"ui-state-default ui-igbutton-all-caps",igToolbarSeparator:"ig-toolbar-separator ui-widget-content"},_id:function(n){return this.element[0].id+n},widget:function(){return this.element},_create:function(){var n=this.options;for(this._tbHash={},j=0;j<n.items.length;j++){n.items[j].type||(n.items[j].type="custom");itemDescriptor=n.items[j]=this._getToolbarItemDescriptor(n.items[j]);this._tbHash={toolbarOpts:n};this._tbHash.isExpanded=!1;for(property in itemDescriptor.getProperties())itemDescriptor.getProperties().hasOwnProperty(property)&&(this._tbHash===undefined&&(this._tbHash={}),this._tbHash[property]=itemDescriptor)}this._render();this._createItems()},getToolbarHash:function(){return this._tbHash},_getToolbarItemDescriptor:function(n){return new this._toolbarItemsDescriptors[n.type](n)},_toolbarItemsDescriptors:{button:n.ig.igToolbarButtonDescriptor,0:n.ig.igToolbarButtonDescriptor,combo:n.ig.igToolbarComboDescriptor,1:n.ig.igToolbarComboDescriptor,splitButton:n.ig.igToolbarSplitButtonDescriptor,2:n.ig.igToolbarSplitButtonDescriptor,splitButtonColor:n.ig.igToolbarSplitButtonDescriptor,3:n.ig.igToolbarSplitButtonDescriptor,custom:n.ig.igToolbarItemBaseDescriptor},_init:function(){this._attachEvents();this.options.isExpanded||(this.buttonsList.hide(),this.collapseBtn.igToolbarButton("toggle").children(":first").switchClass(this.options.collapseButtonIcon,this.options.expandButtonIcon));this._width=this.collapseBtn.outerWidth(!0)+this.buttonsList.width();this._height=this.element.height()},_render:function(){var t=this.options;this.element.addClass(this.css.toolbarWidget);this.element.width(this.options.width).height(this.options.height);this.collapseBtn=n('<div tabIndex="0" id="'+this._id("_collapseButton")+'"><\/div>').appendTo(this.element).igToolbarButton({onlyIcons:!0,labelText:"&nbsp;",title:n.ig.Toolbar.locale.collapseButtonTitle+" "+this.options.displayName,icons:{primary:t.collapseButtonIcon}});this.toolbarBody=this.element.find("#"+this._id("_toolbar"));this.buttonsList=n('<span id="'+this._id("_toolbar_buttons")+'" style="display:inline-block"><\/span>').appendTo(this.element)},_onCollapse:function(t){var o,u,f,i=this.options,e,r=this,s,h;i.allowCollapsing&&(i.isExpanded?(u="collapsed",f="collapsing",i.isExpanded=!1,e=this.element.height(),this.collapseBtn.attr("title",n.ig.Toolbar.locale.expandButtonTitle+" "+this.options.displayName).children(":first").switchClass(this.options.collapseButtonIcon,this.options.expandButtonIcon),s="hidden",h="0.0"):(u="expanded",f="expanding",i.isExpanded=!0,e=this._width,this.buttonsList.show(),this.collapseBtn.attr("title",n.ig.Toolbar.locale.collapseButtonTitle+" "+this.options.displayName).children(":first").switchClass(this.options.expandButtonIcon,this.options.collapseButtonIcon),s="visible",h="1"),t.stopPropagation(),o=this._trigger(this.events[f],t,{owner:this,toolbarElement:this.element,toolbar:{}}),o&&(this.element.css({overflow:"hidden"}),this.element.animate({width:e},300,null,function(){i.isExpanded||r.buttonsList.hide();r._trigger(r.events[u],t,{owner:r,toolbarElement:r.element,toolbar:{}})})))},_setOption:function(t,i){n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"allowCollapsing":this.options.allowCollapsing=i;break;case"items":this._updateItems(i)}},_isSelectedAction:function(n,t){t.value&&n.addClass("ui-state-active")},_createItems:function(){var i=this.options,t,e=this,r={},u,f={button:"igToolbarButton",combo:"igCombo",splitButton:"igSplitButton",splitButtonColor:"igColorPickerSplitButton"},o=function(f,o){var s=i.items[t].scope||e;if(o.action!==undefined&&n.isFunction(s[o.action])){s[o.action](u,o,r);return}r[f]=o.value};for(this.buttonsList.empty(),t=0;t<i.items.length;t++)if(r={},u=(i.items[t].callbackRenderer()||n('<div tabIndex="0"><\/div>')).attr("id",this._id("_item_"+i.items[t].name)).appendTo(this.buttonsList),n.each(i.items[t].getProperties(),o),f.hasOwnProperty(i.items[t].type)){u[f[i.items[t].type]](r);continue}},_updateItems:function(t){for(var o=this.options,r,i,e,f,s,u=0;u<t.length;u++)for(r=t[u].getUpdatedProperties(),f=this.getItem(t[u].name),e=o.items[u].scope||this,i=0;i<r.length;i++){if(r[i].action!==undefined&&n.isFunction(e[r[i].action])){e[r[i].action](f,r[i]);continue}t[u]instanceof n.ig.igToolbarButtonDescriptor&&f.igToolbarButton("option",s,r[i]);o.items[u]instanceof n.ig.igToolbarComboDescriptor&&f.igCombo("option",s,r[i])}},_tooltipAction:function(n,t,i){i!==undefined?i.title=t.value:n.igToolbarButton("option","title",t.value)},_buttonIconAction:function(n,t,i){i!==undefined?i.icons={primary:t.value}:n.igToolbarButton("option","icons",{primary:t.value})},_comboDataSourceAction:function(n,t,i){i!==undefined?i.dataSource=t.value:n.igCombo("option","dataSource",t.value)},_comboWidthAction:function(n,t,i){i!==undefined?i.width=t.value:n.igCombo("option","width",t.value)},_comboHeightAction:function(n,t,i){i!==undefined?i.height=t.value:n.igCombo("option","height",t.value)},_spltBtnTooltipAction:function(){},_comboSelectedItem:function(n,t,i){i!==undefined?i.selectedItems=[{value:t.value}]:n.igCombo("option","selectedItems",[{value:t.value}])},_spltButtonColorAction:function(n,t,i){i!==undefined?i.defaultColor=t.value:n.igColorPickerSplitButton("option","defaultColor",t.value)},_comboDropDownListWidth:function(n,t,i){i!==undefined?i.dropDownWidth=t.value:n.igCombo("option","dropDownWidth",t.value)},_getWidgetType:function(n){var t,i;if(n!==undefined){t=n.data();for(i in t)if(t.hasOwnProperty(i)&&t[i].widgetName)return t[i].widgetName}},_isWidgetSupported:function(n){for(var t=0;t<this.supportedWidgets.length;t++)if(this.supportedWidgets[t].name===n)return!0},_attachEvents:function(){this.element.delegate(".ui-widget","igtoolbarbuttonclick igsplitbuttonclick igcolorpickersplitbuttoncolorselected",n.proxy(this._onToolbarItemInteraction,this));this.element.delegate(":ui-igCombo","igcomboselectionchanged",n.proxy(this._onComboListItemClick,this));this.collapseBtn.bind("igtoolbarbuttonclick",n.proxy(this._onCollapse,this))},_onToolbarItemInteraction:function(t,i){var o,f=n(t.target).parentsUntil(":ui-igToolbar").eq(-2),r,e,u=this.options;f.length===0&&(f=n(t.target));r=this.buttonsList.children().index(f);switch(t.type){case"igtoolbarbuttonclick":e=this.events.toolbarButtonClick;break;default:e=this.events.toolbarCustomItemClick;o=i.value}this._trigger(e,t,{name:i.name||u.items[r].name,value:o,handler:u.items[r].handler(),scope:u.items[r].getProperty("scope"),itemProperties:u.items[r].getProperties(),toolbarItem:f,toolbarName:u.name})},_onComboListItemClick:function(t,i){var u,r;u=this.buttonsList.children().index(n(t.currentTarget));r=this.options.items[u];this._trigger(this.events.toolbarComboSelected,t,{name:r.name,value:i.items[0].value,handler:r.handler(),scope:r.getProperty("scope"),itemProperties:r.getProperties(),toolbarItem:i.owner,toolbarName:this.options.name})},getItem:function(n){var t;return isNaN(parseInt(n,10))?typeof n=="string"&&(t=this.buttonsList.find("#"+this._id("_item_"+n)),t.length)?t:void 0:this.buttonsList.children().eq(n)},addItem:function(n){this._isWidgetSupported(n.type)&&(this.options.items.push(n),this._createItems(),this._trigger(this.events.itemAdded))},removeItem:function(n){this.buttonsList.eq(n).remove();this._trigger(this.events.itemremoved)},disableItem:function(n,t){var i=this.getItem(n),r=this._getWidgetType(i);r&&(i[this._getWidgetType(i)]("option","disabled",t),this._trigger(this.events.itemDisable,{isDisabled:t}))},activateItem:function(n,t){var i=this.getItem(n),r=t?i.addClass:i.removeClass;r.call(this,"ui-state-active");i.igToolbarButton("options","isSelected",t);this._trigger(this.events.itemActivated,{isActivated:t})},deactivateAll:function(){this.buttonsList.find(".ui-igbutton.ui-state-active").removeClass("ui-state-active").igToolbarButton("option","isSelected",!1)},_setCollapseExpandButtonIcon:function(){this.options.collapseButtonIcon&&this.collapseBtn.switchClass("ui-icon-triangle-1-w",this.options.collapseButtonIcon)},destroy:function(){n.Widget.prototype.destroy.apply(this,arguments);this.element.undelegate();this.element.unbind();delete this.buttonsList;delete this.collapseBtn;delete this.toolbarBody;this.element.remove()}});n.extend(n.ui.igToolbar,{version:"14.1.20141.2031"})}(jQuery),function(n){n.widget("ui.igTileManager",{css:{container:"ui-widget ui-igtilemanager ui-widget-content",leftPanel:"ui-igtilemanager-left",rightPanel:"ui-igtilemanager-right",header:"ui-widget-header ui-igtile-header",content:"ui-widget-content ui-igtile",innerContainer:"ui-igtile-inner-container",minimized:"ui-igtile-minimized",maximized:"ui-igtile-maximized",minimizeButton:"ig-button ig-tile-minimize-button",minimizeIcon:"ui-icon ig-tile-minimize-icon",hoverClass:"ui-state-hover",hidden:"ui-helper-hidden",overflowHidden:"ui-helper-overflow-hidden",overflowVisible:"ui-helper-overflow-visible",visibilityHidden:"ui-helper-visibility-hidden",splitterNoScroll:"ui-igsplitter-no-scroll"},options:{width:null,height:null,columnWidth:null,columnHeight:null,cols:null,rows:null,marginLeft:0,marginTop:0,rearrangeItems:!0,items:null,dataSource:null,minimizedState:null,maximizedState:null,maximizedTileIndex:null,rightPanelCols:1,rightPanelTilesWidth:null,rightPanelTilesHeight:null,showRightPanelScroll:!0,showSplitter:!0,preventMaximizingSelector:"a, input",animationDuration:500,dataSourceUrl:null,responseDataKey:null,responseDataType:null,dataSourceType:null,requestType:"GET",responseContentType:null},events:{dataBinding:"dataBinding",dataBound:"dataBound",rendering:"rendering",rendered:"rendered",tileRendering:"tileRendering",tileRendered:"tileRendered",tileMaximizing:"tileMaximizing",tileMaximized:"tileMaximized",tileMinimizing:"tileMinimizing",tileMinimized:"tileMinimized"},_selectors:{tileSelector:".ui-igtile",minimizeBtnSelector:"> .ig-tile-minimize-button",minimizeIconSelector:"> .ig-tile-minimize-icon",maximizedSelector:"> .ui-igtile-maximized",leftPanelSelector:"> .ui-igtilemanager-left",rightPanelSelector:"> .ui-igtilemanager-right",splitbarSelector:"> .ui-igsplitter-splitbar-vertical",innerContainerSelector:"> .ui-igtile-inner-container"},_createWidget:function(){n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){var n=this.options;this._options={fromMarkup:!1,animating:!1,useMaximizedTileIndex:!1,tiles:null,maximizedTile:null,leftPanel:null,rightPanel:null,rightPanelWidth:0,gridLayout:null,layoutManagerElement:null,elementHandlers:{},windowHandlers:{}};this.element.addClass(this.css.container);n.width&&this.element.css("width",n.width);n.height&&this.element.css("height",n.height);this.options.tileSelector=this.options.tileSelector||this._selectors.tileSelector;n.dataSource!==null?this.dataBind():(this._options.fromMarkup=!0,this._initFromMarkup());this._attachEvents()},_setOption:function(t,i){if(this.options[t]!==i){var e=this,r=this._options,f=this.options.animationDuration,u;n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"dataSource":this.dataBind();break;case"dataSourceUrl":this.dataBind();break;case"width":this.options.animationDuration=0;r.useMaximizedTileIndex||this.minimize();this.element.width(this.options.width);this.reflow(!0);this.options.animationDuration=f;break;case"height":this.options.animationDuration=0;r.useMaximizedTileIndex||this.minimize();this.element.height(this.options.height);this.reflow(!0);this.options.animationDuration=f;break;case"columnWidth":case"columnHeight":case"cols":case"rows":case"marginLeft":case"marginTop":case"rearrangeItems":u={};u[t]=i;r.layoutManagerElement.igLayoutManager("option","gridLayout",u);r.gridLayout=this.layoutManager()._opt.gridLayout;break;case"items":if(i.length!==r.tiles.length)throw new Error(n.ig.TileManager.locale.setOptionItemsLengthError);r.layoutManagerElement.igLayoutManager("option","items",this.options.items);r.gridLayout=this.layoutManager()._opt.gridLayout;break;case"minimizedState":r.tiles.not(r.maximizedTile).each(function(){e._toMinimizedState(n(this))});break;case"maximizedState":r.maximizedTile&&this._toMaximizedState(r.maximizedTile);break;case"maximizedTileIndex":this._toMinimizedState(r.maximizedTile);r.maximizedTile=r.tiles.filter("[data-index="+this.options.maximizedTileIndex+"]");this._toMaximizedState(r.maximizedTile);break;case"rightPanelCols":r.maximizedTile&&!r.useMaximizedTileIndex&&(this._setRightPanelSize(),this._positionRightPanelTiles(r.tiles.not(r.maximizedTile),parseInt(r.maximizedTile.attr("data-index"),10),!1,!1,null));break;case"rightPanelTilesWidth":r.maximizedTile&&!r.useMaximizedTileIndex&&(this._setRightPanelSize(),this._positionRightPanelTiles(r.tiles.not(r.maximizedTile),parseInt(r.maximizedTile.attr("data-index"),10),!1,!0,null));break;case"rightPanelTilesHeight":r.maximizedTile&&!r.useMaximizedTileIndex&&(this._setRightPanelSize(),this._positionRightPanelTiles(r.tiles.not(r.maximizedTile),parseInt(r.maximizedTile.attr("data-index"),10),!1,!0,null));break;case"showRightPanelScroll":r.useMaximizedTileIndex||(i?r.rightPanel.removeClass(this.css.overflowHidden):r.rightPanel.addClass(this.css.overflowHidden),r.maximizedTile&&this._setRightPanelSize());break;case"showSplitter":this.options.showSplitter?this.element.find(this._selectors.splitbarSelector).removeClass(this.css.visibilityHidden):this.element.find(this._selectors.splitbarSelector).addClass(this.css.visibilityHidden);break;case"animationDuration":this.layoutManager().options.gridLayout.animationDuration=i}}},_initFromMarkup:function(){var n,t=this.element.children(),i=t.filter(this.options.tileSelector);i.length?(n=i,t.not(n).addClass(this.css.hidden)):n=this.element.children();n.wrap("<div>");this._initLayoutManager(n)},_renderData:function(t,i,r){var u=this._options;if(this._triggerDataBound(t,i,r._data),t)u.layoutManagerElement&&(u.layoutManagerElement.igLayoutManager("destroy"),u.useMaximizedTileIndex||this.element.igSplitter("destroy"),this._resetInternalOptions()),this.element.empty(),this._initLayoutManager(r._data);else throw new Error(n.ig.TileManager.locale.renderDataError);},_resetInternalOptions:function(){var n=this._options;n.gridLayout=null;n.layoutManagerElement=null;n.leftPanel=null;n.rightPanel=null;n.maximizedTile=null;n.tiles=null;n.animating=!1},_initDataSource:function(){var t=this.options,i;!t.dataSource&&t.dataSourceUrl&&(t.dataSource=t.dataSourceUrl);t.dataSource instanceof n.ig.DataSource||(i={callback:this._renderData,callee:this,dataSource:t.dataSource,requestType:t.requestType,responseContentType:t.responseContentType,responseDataType:t.responseDataType,localSchemaTransform:!1},t.responseDataKey&&(i.responseDataKey=t.responseDataKey),t.dataSourceType&&(i.dataSourceType=t.dataSourceType),t.dataSource=new n.ig.DataSource(i))},_tileRendered:function(t,i){var u=this._options,f=i.item,e=u.useMaximizedTileIndex&&this.options.maximizedTileIndex===i.index,r;u.fromMarkup?(r=f.children(),u.useMaximizedTileIndex||r.prepend(this._renderMinimizeButton()),e?this.options.maximizedState&&r.children().not(this.options.maximizedState).addClass(this.css.hidden):this.options.minimizedState&&r.children().not(this.options.minimizedState).addClass(this.css.hidden)):(r=n("<div/>").appendTo(f),e?r.html(this._renderMaximizedState(i.index)):r.html(this._renderMinimizedState(i.index)));r.addClass(this.css.innerContainer);f.addClass(this.css.content).addClass(e?this.css.maximized:this.css.minimized);this._triggerTileRendered(t,i)},_initLayoutManager:function(t){var u=this,i=this.options,r=this._options,f=[],s,e,o;if(i.items&&n.extend(f,i.items),t.length>f.length)for(s=t.length-f.length,o=0;o<s;o++)f.push({});else f.splice(t.length);e=this._triggerRendering(t,f);e&&(typeof i.maximizedTileIndex=="number"&&t.length>=i.maximizedTileIndex?(r.useMaximizedTileIndex=!0,this.element.addClass(this.css.overflowHidden),r.layoutManagerElement=this.element,this.element.igLayoutManager(n.extend(!0,{},{layoutMode:"grid",items:f,destroyItems:!1,gridLayout:{columnWidth:i.columnWidth,columnHeight:i.columnHeight,cols:i.cols,rows:i.rows,marginLeft:i.marginLeft,marginTop:i.marginTop,rearrangeItems:i.rearrangeItems,animationDuration:i.animationDuration,overrideConfigOnSetOption:!1,useOffset:!1},itemRendered:function(n,t){e=u._triggerTileRendering(n,t);e&&u._tileRendered(n,t)},rendered:function(){u.element.removeClass(u.css.overflowHidden);r.tiles=n(this).data("igLayoutManager")._opt.gridLayout.elements;u._triggerRendered()}})),r.maximizedTile=r.tiles.filter("[data-index="+i.maximizedTileIndex+"]")):(this._addPanels(),r.leftPanel.addClass(this.css.overflowHidden),this._renderSplitter(),r.layoutManagerElement=r.leftPanel,r.leftPanel.igLayoutManager(n.extend(!0,{},{layoutMode:"grid",items:f,destroyItems:!1,gridLayout:{columnWidth:i.columnWidth,columnHeight:i.columnHeight,cols:i.cols,rows:i.rows,marginLeft:i.marginLeft,marginTop:i.marginTop,rearrangeItems:i.rearrangeItems,animationDuration:i.animationDuration,overrideConfigOnSetOption:!1,useOffset:!1},itemRendered:function(n,t){e=u._triggerTileRendering(n,t);e&&u._tileRendered(n,t)},rendered:function(){r.leftPanel.removeClass(u.css.overflowHidden);r.tiles=n(this).data("igLayoutManager")._opt.gridLayout.elements;u._triggerRendered()},internalResizing:function(){if(r.maximizedTile)return!1},internalResized:function(n){r.maximizedTile&&(r.animating=!1,n&&u._triggerTileMinimized(n,r.maximizedTile),r.maximizedTile=null)}}))),r.gridLayout=this.layoutManager()._opt.gridLayout)},_toMaximizedState:function(n){var t=n.find(this._selectors.innerContainerSelector);n.removeClass(this.css.minimized).addClass(this.css.maximized);this._options.fromMarkup?this.options.maximizedState?(t.children().not(this.options.maximizedState).addClass(this.css.hidden),t.find(this.options.maximizedState+", "+this._selectors.minimizeBtnSelector).removeClass(this.css.hidden)):t.children().removeClass(this.css.hidden):t.html((this._options.useMaximizedTileIndex?"":this._renderMinimizeButton())+this._renderMaximizedState(n.attr("data-index")))},_toMinimizedState:function(n){var t=n.find(this._selectors.innerContainerSelector);n.removeClass(this.css.maximized).addClass(this.css.minimized);this._options.fromMarkup?this.options.minimizedState?(t.children().not(this.options.minimizedState).addClass(this.css.hidden),t.find(this.options.minimizedState).removeClass(this.css.hidden)):t.children().removeClass(this.css.hidden):t.html(this._renderMinimizedState(n.attr("data-index")))},_renderMaximizedState:function(t){return this.options.maximizedState?n.ig.tmpl(this.options.maximizedState,this.options.dataSource.data()[t]):this._renderMinimizedState(t)},_renderMinimizedState:function(t){return this.options.minimizedState?n.ig.tmpl(this.options.minimizedState,this.options.dataSource.data()[t]):""},_renderMinimizeButton:function(){return'<span class="'+this.css.minimizeButton+'"><span class="'+this.css.minimizeIcon+'"><\/span><\/span>'},_addPanels:function(){var t=this._options,u=this.element.children(),i=n("<div/>").addClass(this.css.leftPanel),r=n("<div/>").addClass(this.css.rightPanel+" "+this.css.hidden);i.appendTo(this.element);r.appendTo(this.element);t.leftPanel=i;t.rightPanel=r;this.options.showRightPanelScroll||t.rightPanel.addClass(this.css.overflowHidden);u.appendTo(t.leftPanel)},_removePanels:function(){this.element.find(this._selectors.leftPanelSelector).children().appendTo(this.element);this.element.find(this._selectors.leftPanelSelector+", "+this._selectors.rightPanelSelector).remove();this._options.leftPanel=null;this._options.rightPanel=null},_renderSplitter:function(){var i=this,t=this._options;this.element.igSplitter({panels:[{size:"100%"}],layoutRefreshing:function(){return!1},resizeStarted:function(){t.rightPanelWidth=t.rightPanel.width()},resizeEnded:function(){var u=t.gridLayout,r=t.rightPanel.width(),f=i._getRightPanelTilesWidth(),c=i._getRightPanelTilesHeight(),o=t.tiles.not(t.maximizedTile),e,s,h;e=t.rightPanelWidth>r?Math.floor(r/(f+u.marginLeft)):Math.ceil(r/(f+u.marginLeft));h=i.options.showRightPanelScroll&&Math.ceil(o.length/e)*(c+u.marginTop)>t.rightPanel.height();h&&(e=t.rightPanelWidth>r?Math.floor((r-n.ig.util.getScrollWidth())/(f+u.marginLeft)):Math.ceil((r-n.ig.util.getScrollWidth())/(f+u.marginLeft)));s=i.options.rightPanelCols;i.options.rightPanelCols=e;i._setRightPanelSize();s!==i.options.rightPanelCols&&i._positionRightPanelTiles(o,parseInt(t.maximizedTile.attr("data-index"),10),!1,!1,null);t.rightPanelWidth=r}});this._hideSplitterElements()},_attachEvents:function(){var t=this,i=this._options,e=".ig-tile-minimize-button",o=".ui-igtile-minimized",u=this.splitter(),r=i.elementHandlers,f;r.minimizedTileClick=function(r){var e=n(r.target),u=n(this);(t._stopEventPropagation(r),e.is(t.options.preventMaximizingSelector))||i.animating||(i.animating=!0,u.removeClass(t.css.hoverClass),f=t._triggerTileMaximizing(r,u),i.maximizedTile&&t._triggerTileMinimizing(r,i.maximizedTile,u),f?t.maximize(u,r):i.animating=!1)};r.miminimizedTileMouseOver=function(r){t._stopEventPropagation(r);i.animating||u&&u._isDrag||n(this).addClass(t.css.hoverClass)};r.minimizedTileMouseOut=function(i){t._stopEventPropagation(i);n(this).removeClass(t.css.hoverClass)};r.minimizeBtnClick=function(n){t._stopEventPropagation(n);i.animating||(i.animating=!0,f=t._triggerTileMinimizing(n,i.maximizedTile),f?t.minimize(n):i.animating=!1)};r.minimizeBtnMouseOver=function(r){t._stopEventPropagation(r);i.animating||u&&u._isDrag||n(this).find(t._selectors.minimizeIconSelector).addClass(t.css.hoverClass)};r.minimizeBtnMouseOut=function(i){t._stopEventPropagation(i);n(this).find(t._selectors.minimizeIconSelector).removeClass(t.css.hoverClass)};this.element.on("click",o,r.minimizedTileClick).on("mouseover",o,r.miminimizedTileMouseOver).on("mouseout",o,r.minimizedTileMouseOut).on("click",e,r.minimizeBtnClick).on("mouseover",e,r.minimizeBtnMouseOver).on("mouseout",e,r.minimizeBtnMouseOut);i.windowHandlers.resize=function(){i.maximizedTile&&!i.useMaximizedTileIndex&&t._setRightPanelSize()};n(window).on("resize",i.windowHandlers.resize)},_stopEventPropagation:function(n){n.stopPropagation&&n.stopPropagation();(n.cancelBubble!==null||n.cancelBubble!==undefined)&&(n.cancelBubble=!0)},_getRightPanelTilesWidth:function(){return this.options.rightPanelTilesWidth||this._options.gridLayout.columnWidth},_getRightPanelTilesHeight:function(){return this.options.rightPanelTilesHeight||this._options.gridLayout.columnHeight},_setRightPanelSize:function(){var o=this,t=this.options,r=this._options,i=r.gridLayout,s=i.columnWidth+2*i.marginLeft,h=this._getRightPanelTilesWidth()+i.marginLeft,y=this._getRightPanelTilesHeight()+i.marginTop,p=r.rightPanel.height(),u=this.element.find(this._selectors.splitbarSelector).outerWidth(!0),c=n.ig.util.getScrollWidth(),f,l,e,a,v=function(){return o.options.showRightPanelScroll&&Math.ceil((r.tiles.length-1)/o.options.rightPanelCols)*y>p};t.rightPanelCols<1&&(t.rightPanelCols=1);f=Math.max(Math.floor((this.element.width()-s-u-(v()?c:0))/h),1);t.rightPanelCols>f&&(t.rightPanelCols=f);e=t.rightPanelCols*h+(v()?c:0);l=e+s+u;this.element.css("min-width",l);a=this.element.width()-e-2*i.marginLeft-u;this.element.igSplitter("setFirstPanelSize",a)},_positionRightPanelTiles:function(t,i,r,u,f){var y=this,l=this.options,o=this._options,e=o.gridLayout,h=this._getRightPanelTilesWidth(),c=this._getRightPanelTilesHeight(),a=r?o.rightPanel.position().left-e.marginLeft:0,v=r?o.rightPanel.scrollTop():0,s=l.rightPanelCols;t.each(function(){var b=n(this),t=parseInt(b.attr("data-index"),10),y,p,w;t>i?(p=Math.floor((t-1)/s)*(c+e.marginTop)+e.marginTop,y=(t-1)%s*(h+e.marginLeft)+e.marginLeft/2):(p=Math.floor(t/s)*(c+e.marginTop)+e.marginTop,y=t%s*(h+e.marginLeft)+e.marginLeft/2);w={top:p-v,left:y+a};u&&(w.width=h,w.height=c);b.animate(w,l.animationDuration,function(){r&&b.css({left:y,top:p}).appendTo(o.rightPanel);f&&f.apply(this)})})},_hideSplitterElements:function(){var n=this._options;n.rightPanel.addClass(this.css.hidden+" "+this.css.splitterNoScroll);this.element.find(this._selectors.splitbarSelector).addClass(this.css.hidden);n.leftPanel.width("100%");this.options.showSplitter||this.element.find(this._selectors.splitbarSelector).addClass(this.css.visibilityHidden)},_showSplitterElements:function(){this._options.rightPanel.removeClass(this.css.hidden+" "+this.css.splitterNoScroll);this.element.find(this._selectors.splitbarSelector).removeClass(this.css.hidden)},_toMaximizedView:function(n,t){var i=this._options,r=i.gridLayout.marginLeft;i.tiles.css({left:"-="+r});i.leftPanel.css({marginLeft:r,marginRight:r});this._setRightPanelSize();this._showSplitterElements();this._positionRightPanelTiles(i.tiles.not(n),parseInt(n.attr("data-index"),10),!0,!0,null);this._maximizeTile(n,t)},_maximizedTileSwap:function(n,t){var f=this,i=this._options,e=i.gridLayout,o=i.tiles.not(i.maximizedTile),r=i.maximizedTile,s=parseInt(r.attr("data-index"),10),u=parseInt(n.attr("data-index"),10),h=i.rightPanel.position().left-e.marginLeft;this._toMinimizedState(r);this._positionRightPanelTiles(r,u,!0,!0,function(){var n=s-1,e;n===u&&(n-=1);e=i.tiles.filter("[data-index="+n+"]");e.length>0?r.insertAfter(e):r.prependTo(i.rightPanel);t&&f._triggerTileMinimized(t,r)});this._positionRightPanelTiles(o.not(n),u,!1,!1,null);n.css({left:"+="+h,top:"-="+i.rightPanel.scrollTop()}).appendTo(i.leftPanel);this._maximizeTile(n,t)},_maximizeTile:function(n,t){var r=this,i=this._options,u=i.gridLayout.marginTop,f=n.find(this._selectors.innerContainerSelector);this._toMaximizedState(n);f.addClass(this.css.overflowHidden);n.animate({width:"100%",height:this.element.height()-2*u,top:u,left:0},this.options.animationDuration,function(){i.leftPanel.removeClass(r.css.overflowVisible);f.removeClass(r.css.overflowHidden);i.maximizedTile=n;i.animating=!1;t&&r._triggerTileMaximized(t,n)})},_maximizeTileWithCustomIndex:function(n,t){var r,u,f=this,e=this._options,o=this.options.animationDuration,i=e.maximizedTile,h={width:n.outerWidth(),height:n.outerHeight(),top:n.css("top"),left:n.css("left")},c={width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")},s=function(t){for(u=0;u<t.length;u++)r=t[u],r.item.is(i)?r.item=n:r.item.is(n)&&(r.item=i)};this._toMaximizedState(n);this._toMinimizedState(i);i.animate(h,o,function(){t&&f._triggerTileMinimized(t,i)});n.animate(c,o,function(){var i=f.layoutManager()._opt.gridLayout;s(i.items);s(i.sortedItems);e.maximizedTile=n;e.animating=!1;t&&f._triggerTileMaximized(t,n)})},maximize:function(n,t){var i=this._options;n&&(i.maximizedTile&&i.maximizedTile.attr("data-index")===n.attr("data-index")||(i.useMaximizedTileIndex?this._maximizeTileWithCustomIndex(n,t):(i.leftPanel.addClass(this.css.overflowVisible).removeClass(this.css.overflowHidden),i.maximizedTile?this._maximizedTileSwap(n,t):this._toMaximizedView(n,t))))},minimize:function(t){var o=this,i=this._options,r=i.maximizedTile,u=i.gridLayout,e=i.rightPanel.position().left,f;r&&(this.element.css("min-width",0),f=parseInt(r.attr("data-index"),10),i.leftPanel.width(i.leftPanel.outerWidth(!0)).height(i.leftPanel.outerHeight(!0)).css({margin:0}),this._toMinimizedState(r),r.css({width:r.outerWidth(),height:r.outerHeight(),top:u.marginTop,left:u.marginLeft}),i.tiles.not(r).each(function(){var t=n(this);t.css({left:"+="+e,top:"-="+i.rightPanel.scrollTop()});parseInt(t.attr("data-index"),10)>f?t.appendTo(i.leftPanel):t.insertBefore(r)}),this._hideSplitterElements(),this.reflow(!0,t))},maximizedTile:function(){return this._options.maximizedTile||null},minimizedTiles:function(){var n=this._options.tiles.not(this._options.maximizedTile);return n.length>0?n:null},splitter:function(){return this._options.useMaximizedTileIndex?null:this.element.data("igSplitter")},layoutManager:function(){return this._options.layoutManagerElement.data("igLayoutManager")},reflow:function(n,t){this.layoutManager().reflow(n,t)},widget:function(){return this.element},_triggerDataBinding:function(){var n={owner:this,dataSource:this.options.dataSource};return this._trigger(this.events.dataBinding,null,n)},_triggerDataBound:function(n,t,i){var r={owner:this,success:n,errorMessage:t,dataView:i};this._trigger(this.events.dataBound,null,r)},_triggerRendering:function(n,t){var i={owner:this,tiles:n,items:t};return this._trigger(this.events.rendering,null,i)},_triggerRendered:function(){this._trigger(this.events.rendered,null,{owner:this})},_triggerTileRendering:function(n,t){var i={owner:this,tile:t.item};return this._trigger(this.events.tileRendering,n,i)},_triggerTileRendered:function(n,t){var i={owner:this,tile:t.item};return this._trigger(this.events.tileRendered,n,i)},_triggerTileMaximizing:function(n,t){var i={owner:this,tile:t,minimizingTile:this._options.maximizedTile||null};return this._trigger(this.events.tileMaximizing,n,i)},_triggerTileMaximized:function(n,t){var i={owner:this,tile:t};this._trigger(this.events.tileMaximized,n,i)},_triggerTileMinimizing:function(n,t,i){var r={owner:this,tile:t,maximizingTile:i||null};return this._trigger(this.events.tileMinimizing,n,r)},_triggerTileMinimized:function(n,t){var i={owner:this,tile:t};this._trigger(this.events.tileMinimized,n,i)},dataBind:function(){var n;this._initDataSource();n=this._triggerDataBinding();n&&this.options.dataSource.dataBind(this._renderData,this)},_destroyTiles:function(){var i=this,t=this._options;t.layoutManagerElement.igLayoutManager("destroy");t.useMaximizedTileIndex||this.element.igSplitter("destroy");t.fromMarkup?t.useMaximizedTileIndex?t.tiles.each(function(){var t=n(this);t.children().removeClass(i.css.innerContainer).appendTo(i.element).find("."+i.css.hidden).removeClass(i.css.hidden);t.remove()}):(this._removePanels(),this.element.children().children().unwrap()):this.element.empty()},_removeEventHandlers:function(){var u=this._options,t=u.elementHandlers,i=".ig-tile-minimize-button",r=".ui-igtile-minimized";this.element.off("click",r,t.minimizedTileClick).off("mouseover",r,t.miminimizedTileMouseOver).off("mouseout",r,t.minimizedTileMouseOut).off("click",i,t.minimizeBtnClick).off("mouseover",i,t.minimizeBtnMouseOver).off("mouseout",i,t.minimizeBtnMouseOut);n(window).off("resize",u.windowHandlers.resize)},destroy:function(){return n.Widget.prototype.destroy.apply(this,arguments),this.element.removeClass(this.css.container),this._destroyTiles(),this._removeEventHandlers(),this}});n.extend(n.ui.igTileManager,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igBrowseButton",n.ui.igButton,{_const:{filePickerWidth:"220px",filePickerHeight:"30px"},css:{filePickerClass:"ui-igbrowsebutton-filepicker"},options:{autoselect:!0,multipleFiles:!1,container:null},_id:function(n){return this.element[0].id+n},_create:function(){var t=this._id("_fp"),i=this;n.extend(n.ui.igBrowseButton.prototype.options,n.ui.igButton.prototype.options);n.extend(n.ui.igBrowseButton.prototype.css,n.ui.igButton.prototype.css);n.ui.igButton.prototype._create.apply(this);this._createFilePicker(t);this._attachBrowseButtonEvents();this.options.disabled===!0?this._enableFilePicker(!0):this.element.bind({click:function(n){n.preventDefault()},drop:function(n){var t=n.originalEvent.dataTransfer.files;return(n.stopPropagation(),n.preventDefault(),t===null||t===undefined)?!1:i._trigger("fileselect",n,{files:t,multiple:!0})?!1:void 0}})},_createFilePicker:function(t){n("#"+t).remove();var i="",r=this.options.container;this.options.multipleFiles===!0&&(i=' multiple=""');r||(r=n(document.body));this.filePicker=n('<input type="file" id="'+t+'"'+i+"/>").appendTo(n(document.body));this.filePicker.css({position:"absolute",margin:"-5px 0 0 -175px",padding:"0",width:"1px",height:"1px",fontSize:"14px",opacity:"0",cursor:"pointer",display:"block",zIndex:"1000000",filter:"alpha(opacity=0)"});this._setTitle(this.options.title)},_setTitle:function(t){var i=n("#"+this._id("_fp"));t===!1?i.removeAttr("title"):i.attr("title",t)},_attachBrowseButtonEvents:function(){var n=this;this.mouseMoveEvent={mousemove:function(t){n._mousemove(t)}};this._internalEvents={mouseover:function(t){n._mousemove(t);n._attachMouseMove(!0)}};n.element.bind(this._internalEvents);n._filePickerBindChange()},_filePickerBindChange:function(){var t=this,r,i=n("#"+this._id("_fp"));t.tempClicked=!1;t._filePickerEvents={change:function(n){var u=null,f=!1;r=t._fileFromPath(i.val());i[0].files&&(u=i[0].files,f=!0);t._mousemove(n);!t._trigger("fileselect",n,{filePath:r,files:u,multiple:f})},click:function(n){if(!t._trigger("click",n))return!1}};i.bind(t._filePickerEvents)},attachFilePicker:function(t,i){var r=this,c,l,f,e,o,s=r.element,u=this.filePicker,a=s.offset(),v=parseInt(a.left,10),y=parseInt(a.top,10),h=u[0];c=parseInt(v+s[0].offsetWidth,10);l=parseInt(y+s[0].offsetHeight,10);t.pageX>=v&&t.pageX<=c&&t.pageY>=y&&t.pageY<=l&&(o=n.ig.util.getRelativeOffset(u),f=t.pageY,e=t.pageX,f-=o.top,e-=o.left,h.style.top=f+"px",h.style.left=e+"px",i===!0?u.css({width:"1px",height:"1px"}):(r.isVisibleFilePicker=!0,u.css({width:r._const.filePickerWidth,height:r._const.filePickerHeight})),h.style.display="block",r._onMouseOver(t))},getFilePicker:function(){var t=this._id("_fp"),i=n("#"+t);return i.attr("id","").css({display:"none"}),this._createFilePicker(t),this._filePickerBindChange(),i},_mousemove:function(t){var i=this,h,c,f,e,r=i.element,u=this.filePicker,o,l=n.ig.util.offset(r).left,a=n.ig.util.offset(r).top,s=u[0];h=parseInt(l+r[0].offsetWidth,10);c=parseInt(a+r[0].offsetHeight,10);t.pageX>=l&&t.pageX<=h&&t.pageY>=a&&t.pageY<=c?(o=n.ig.util.getRelativeOffset(u),f=t.pageY,e=t.pageX,f-=o.top,e-=o.left,s.style.top=f+"px",s.style.left=e+"px",i.isVisibleFilePicker||(u.css({width:i._const.filePickerWidth,height:i._const.filePickerHeight}),i.isVisibleFilePicker=!0),s.style.display="block",i._onMouseOver(t)):(i.isVisibleFilePicker&&(u.css({width:"1px",height:"1px"}),i.isVisibleFilePicker=!1),i._attachMouseMove(!1),i._onMouseOut(t))},_attachMouseMove:function(t){t?n(document).bind(this.mouseMoveEvent):n(document).unbind(this.mouseMoveEvent)},_setOption:function(t,i){n.ui.igButton.prototype._setOption.apply(this,arguments);n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"disabled":this._enableFilePicker(i);n.ui.igButton.prototype._setOption.apply(this,arguments);break;case"title":this._setTitle(i)}},_enableFilePicker:function(t){var i=n("#"+this._id("_fp"));t===!1?(this.isVisibleFilePicker=!1,this._attachMouseMove(!0),this.element.bind(this._internalEvents).mouseover()):(this._attachMouseMove(!1),i.css({width:"1px",height:"1px"}),this.element.unbind(this._internalEvents))},destroy:function(){this.element.unbind(this._internalEvents);this.element.unbind(this.mouseMoveEvent);n.Widget.prototype.destroy.apply(this,arguments);n.ui.igButton.prototype.destroy.apply(this);n("#"+this._id("_fp")).remove()},_fileFromPath:function(n){return n.replace(/(\/|\\)$/,"")}});n.extend(n.ui.igBrowseButton,{version:"14.1.20141.2031"});n.widget("ui.igUpload",{_const:{fileNameLimit:100,AjaxQueueName:"uploadrequestsqueue",debug:!0,isProgressBarAnimationEnabled:!0,isProgressBarRange:!1,timeoutGetFileSize:1e3,status:{NotStarted:0,Started:1,Finished:2,NoSuchFile:3,Canceled:4},errorCode:{MimeTypeValidation:1,FileSizeExceeded:2},clientSideErrorCode:{maxAllowedUploadingFiles:1,extensionValidation:2,startUpload:3,ajaxErrorGetFileStatus:4,ajaxErrorCancelUpload:5,removeFileUpload:6,ajaxErrorRequestFileSize:7,checkCanUpload:8},fileStatusNoError:-1,progressUpdateInterval:800,animateProgressBarInterval:10,showHideDetailsAnimationTimeout:500,doubleCheckRequestInterval:1e3,removeSingleUploadAnimationTimeout:300,maxUploadFilesDefault:-1},defaultFileExtensionIcons:[{ext:[],css:"ui-icon ui-icon-document ui-igupload-progressbar-icon ui-igupload-progressbar-icon-default",def:!0},{ext:["exe","app"],css:"ui-icon ui-icon-gear ui-igupload-progressbar-icon ui-igupload-progressbar-icon-exe",def:!1},{ext:["gif","jpg","jpeg","png","bmp","yuv","tif","thm","psd"],css:"ui-icon ui-icon-image ui-igupload-progressbar-icon ui-igupload-progressbar-icon-images",def:!1},{ext:["mp3","wav","mp4","aac","mid","wma","ra","iff","aif","m3u","mpa"],css:"ui-icon ui-icon-volume-on ui-icon ui-icon-image ui-igupload-progressbar-icon ui-igupload-progressbar-icon-music",def:!1},{ext:["doc","docx","xls","xlsx","txt","ppt","pptx","pdf"],css:"ui-icon ui-icon-document ui-igupload-progressbar-icon ui-igupload-progressbar-icon-docs",def:!1},{ext:["3gp","asf","asx","avi","flv","mov","mp4","mpg","rm","swf","vob","wmv"],css:"ui-icon ui-icon-video ui-igupload-progressbar-icon ui-igupload-progressbar-icon-video",def:!1}],css:{clearClass:"ui-helper-clearfix",hiddenClass:"ui-helper-hidden",baseClassIE6:"ui-ie6",baseClassIE7:"ui-ie7",baseClassMoz:"ui-moz",baseClassOpera:"ui-opera",baseClassWebkit:"ui-webkit",startupBrowseButtonClasses:"ui-igstartupbrowsebutton",baseClass:"ui-widget ui-widget ui-widget-content ui-corner-all ui-igupload",baseMainContainerClass:"ui-igupload-basemaincontainer",multipleDialogClasses:"ui-iguploadmultiple",singleDialogClass:"ui-iguploadsingle",browseButtonClass:"ui-igupload-browsebutton",containerClass:"ui-igupload-container ui-widget-content",uploadProgressClass:"ui-igupload-uploadprogress",fileInfoMainContainer:"ui-igupload-fimaincontainer",progressContainer:"ui-helper-clearfix",progressBarUploadClass:"ui-igupload-progressbar-upload ui-igupload-progressbar-upload-single ui-helper-clearfix",progressBarFileNameClass:"ui-igupload-progressbar-filename",progressBarFileSizeClass:"ui-igupload-progressbar-filesize",progressBarInnerHTMLContainerClass:"ui-igupload-progressbar-container ui-helper-clearfix",containerButtonCancelClass:"ui-container-button-cancel-class  ui-helper-clearfix",summaryProgressBarClass:"ui-igupload-summaryprogressbar",summaryProgressContainerClass:"ui-igupload-summaryprogresscontainer",summaryProgressbarLabelClass:"ui-igupload-summaryprogress-label",summaryInformationContainerClass:"ui-igupload-summaryinformation-container ui-helper-clearfix",summaryUploadedFilesLabelClass:"ui-igupload-summaryuploadedfiles-label",summaryShowHideDetailsButtonClass:"ui-igupload-showhidedetails-button",summaryButtonClass:"ui-igupload-summary-button",summaryProgressBarInnerProgress:"ui-igupload-summaryprogres_summpbar_progress",summaryProgressBarSecondaryLabel:"ui-igupload-summaryprogress-label ui-igupload-summaryprogress-secondary-label",containerFUS:"ui-widget-content ui-igupload-progress-container ui-corner-all ui-helper-clearfix"},options:{width:"",height:"",autostartupload:!1,labelUploadButton:n.ig.Upload.locale.labelUploadButton,labelAddButton:n.ig.Upload.locale.labelAddButton,labelClearAllButton:n.ig.Upload.locale.labelClearAllButton,labelSummaryTemplate:n.ig.Upload.locale.labelSummaryTemplate,labelSummaryProgressBarTemplate:n.ig.Upload.locale.labelSummaryProgressBarTemplate,labelShowDetails:n.ig.Upload.locale.labelShowDetails,labelHideDetails:n.ig.Upload.locale.labelHideDetails,labelSummaryProgressButtonCancel:n.ig.Upload.locale.labelSummaryProgressButtonCancel,labelSummaryProgressButtonContinue:n.ig.Upload.locale.labelSummaryProgressButtonContinue,labelSummaryProgressButtonDone:n.ig.Upload.locale.labelSummaryProgressButtonDone,labelProgressBarFileNameContinue:n.ig.Upload.locale.labelProgressBarFileNameContinue,errorMessageMaxFileSizeExceeded:n.ig.Upload.locale.errorMessageFileSizeExceeded,errorMessageGetFileStatus:n.ig.Upload.locale.errorMessageGetFileStatus,errorMessageCancelUpload:n.ig.Upload.locale.errorMessageCancelUpload,errorMessageNoSuchFile:n.ig.Upload.locale.errorMessageNoSuchFile,errorMessageOther:n.ig.Upload.locale.errorMessageOther,errorMessageValidatingFileExtension:n.ig.Upload.locale.errorMessageValidatingFileExtension,errorMessageAJAXRequestFileSize:n.ig.Upload.locale.errorMessageAJAXRequestFileSize,errorMessageTryToRemoveNonExistingFile:n.ig.Upload.locale.errorMessageTryToRemoveNonExistingFile,errorMessageTryToStartNonExistingFile:n.ig.Upload.locale.errorMessageTryToStartNonExistingFile,errorMessageMaxUploadedFiles:n.ig.Upload.locale.errorMessageMaxUploadedFiles,errorMessageMaxSimultaneousFiles:n.ig.Upload.locale.errorMessageMaxSimultaneousFiles,uploadUrl:"ig_fua34sf345sdf13sdf3454erdsf2345asd3425df5235d54df345.aspx",progressUrl:"IGUploadStatusHandler.ashx",allowedExtensions:[],showFileExtensionIcon:!0,css:null,fileExtensionIcons:[{ext:[],css:"",def:!1}],mode:"single",multipleFiles:!1,maxUploadedFiles:-1,maxSimultaneousFilesUploads:1,fileSizeMetric:"auto",controlId:"",fileSizeDecimalDisplay:2},events:{fileSelecting:"fileSelecting",fileSelected:"fileSelected",fileUploading:"fileUploading",fileUploaded:"fileUploaded",fileUploadAborted:"fileUploadAborted",cancelAllClicked:"cancelAllClicked",onError:"onError"},summaryButtonModes:{cancel:1,startupload:2,done:3},container:function(){return this._isDivElement?this.element:n("#"+this.element[0].id+"_wrprinit")},widget:function(){return this.element},_id:function(n,t){var i=this.element[0].id;return t!==undefined?i+"_"+t+"_"+n:i+n},_create:function(){this.allCancelled=!1;this.fileInfoData={formNumber:0,iframe:{ids:[]},pendingQueueIDs:[],uploadingIDs:[],batch:[],lastId:-1,filesInfo:[],countUploadingFiles:0,countTotalFiles:0,fileSizeUploaded:0,fileSizeTotal:0};this._renderStartupBrowseButton();this.container().bind("drop",n.proxy(this._dropFiles,this)).width(this.options.width).height(this.options.height);this._attachFakeIframe();this._analyzeFileExtensionIcons();n(document).bind("dragenter."+this.element[0].id,n.proxy(this._docEnter,this));n(document).bind("dragover."+this.element[0].id,n.proxy(this._docOver,this));n(document).bind("dragleave."+this.element[0].id,n.proxy(this._docLeave,this))},_dropFiles:function(t){var r=n("#"+this._id("_ibb")).is(":visible"),i={files:t.originalEvent.dataTransfer.files,multiple:!0};return t.preventDefault(),this._docLeave(t),r?this._initBrowserFileSelect(t,i):this._onBrowseButtonFileSelected(t,!1,i),!1},_docEnter:function(n){return clearTimeout(this._doc_leave_timer),n.preventDefault(),!1},_docOver:function(n){return clearTimeout(this._doc_leave_timer),n.preventDefault(),!1},_docLeave:function(n){var t=this;this._doc_leave_timer=setTimeout(function(){t._docLeave(n)},200)},_analyzeFileExtensionIcons:function(){var t,u,r=this.options.fileExtensionIcons,f,i=n.extend(!0,[],this.defaultFileExtensionIcons),o=i.length,e=[],s=!1;if(r===undefined||r===null){this.options.fileExtensionIcons=i;return}if(f=r.length,f===1&&r[0].css===""){this.options.fileExtensionIcons=i;return}for(u=0;u<f;u++){for(t=0;t<o;t++)i[t].ext=this._removeCommonElementsInArrays(i[t].ext,r[u].ext);r[u].def===!0&&(s=!0);e.push(r[u])}for(t=0;t<o;t++)(i[t].ext.length>0||s===!1&&i[t].def===!0)&&e.push(i[t]);this.options.fileExtensionIcons=e},_removeCommonElementsInArrays:function(t,i){return n.grep(t,function(t){return n.inArray(t,i)===-1})},_attachFakeIframe:function(){var t=this._id("_tempIframe");(n.ig.util.isIE7||n.ig.util.isIE8||n.ig.util.isIEQuircks)&&(n("#"+t).remove(),setTimeout(n('<iframe src="javascript:false;" id="'+t+'" style="display: none;"><\/iframe>').appendTo(n("#"+this._id("_fu"))),300))},_renderStartupBrowseButton:function(){var i=this,u,r,f=i.css,t=i.element,e=i.options,s=this._id("_ibb"),l=e.mode==="multiple"&&e.multipleFiles,h=this._id("_wrprinit"),o,c;if(this.element.is("div")){for(this._isDivElement=!0,this.originalElement=t,o=t,this._initialAttributes=[],u=this.element[0].attributes,r=0;r<u.length;r++)u[r].name!=="id"&&this._initialAttributes.push({name:u[r].name,value:u[r].value});this._initialHTML=this.element.html();this.element.empty()}else this.originalElement=t,o='<div id="'+h+'" class="ig-upload-container"><\/div>',t.wrap(o),t.hide(),t=n("#"+h);s=this._id("_ibb");n.ig.util.isIE7?t.addClass(f.baseClassIE7):n.ig.util.isOpera?t.addClass(f.baseClassOpera):n.ig.util.isOpera?t.addClass(f.baseClassMoz):n.ig.util.isOpera&&t.addClass(f.baseClassWebkit);c=n("<button><\/button>").appendTo(t).attr("id",s).addClass(f.startupBrowseButtonClasses);c.igBrowseButton({multipleFiles:l,labelText:e.labelUploadButton,container:this.container(),title:n.ig.Upload.locale.titleUploadFileButtonInit,fileselect:function(n,t){i._initBrowserFileSelect(n,t)},disabled:e.disabled,click:function(n){var t=!1;return i._trigger(i.events.fileSelecting,n)===!1&&(t=!0),!t}})},_initBrowserFileSelect:function(t,i){var r;(i&&i.files&&i.files.length!==0||(r=n("#"+this._id("_ibb_fp")),this._validateFileExtension(r[0].value,!0)!==!1))&&this._checkMaxUploadingFilesCount(1,!0)===!0&&(n("#"+this._id("_ibb")).css({display:"none"}),this._HTMLUpload(),this._onBrowseButtonFileSelected(t,!0,i))},_HTMLUpload:function(){var h=this._id("_fu"),c=this._id("_bmncntr"),i=this.options,l=this.container(),u=this,r=u.css,e=this._id("_fc"),o=this._id("_bb"),s=this._id("_clrabtn"),a=this._id("_fi_main_cntnr"),f,t="";i.mode==="single"?(t+='<div  class="'+r.singleDialogClass+'" id="$baseMainContainerId">',t+='   <div id="$uploaderId$" class="$baseMainContainerClass">',t+='       <div id="$fileContainerId$"><\/div>',t+='       <button id="$browseButtonId$" class="$browseButtonClass$"><\/button>',t+="   <\/div>",t+="<\/div>"):i.mode==="multiple"&&(t='<div class="'+r.multipleDialogClasses+'" id="$baseMainContainerId">',t+='   <div  id="$uploaderId$" class="$baseMainContainerClass">',t+='       <div id="$uploaderFilesContainer" class="$fuMainContainerClass">',t+='           <button id="$browseButtonId$" class="$browseButtonClass$"><\/button>',t+='           <button id="$clearAllButtonId$"><\/button>',t+='           <div id="$fileContainerId$"><\/div>',t+="       <\/div>",t+="   <\/div>",t+="<\/div>");t=t.replace("$uploaderId$",h).replace("$browseButtonId$",o).replace("$baseMainContainerId",c).replace("$browseButtonClass$",r.browseButtonClass).replace("$fileContainerId$",e).replace("$clearAllButtonId$",s).replace("$uploaderFilesContainer",a).replace("$fuMainContainerClass",r.fileInfoMainContainer).replace("$baseMainContainerClass",r.baseMainContainerClass);n(t).appendTo(l).css({width:i.width,height:i.height}).addClass(r.baseClass);f=n("#"+s);f.length>0&&f.igButton({title:n.ig.Upload.locale.titleClearAllButton,labelText:i.labelClearAllButton,disabled:!0,click:function(n){n.preventDefault();u.clearAll()},css:{buttonClasses:"ui-igbutton ui-igupload-button-clear-all",buttonHoverClasses:"",buttonActiveClasses:"",buttonFocusClasses:"",buttonLabelClass:""}});n("#"+o).igBrowseButton({multipleFiles:i.mode==="multiple"&&i.multipleFiles,labelText:this.options.labelAddButton,container:this.container(),title:n.ig.Upload.locale.titleAddFileButton,fileselect:function(n,t){u._onBrowseButtonFileSelected(n,!1,t)},click:function(n){var t=!1;return u._trigger(u.events.fileSelecting,n)===!1&&(t=!0),!t}});n("#"+e).addClass(r.containerClass);i.mode==="multiple"&&u._spbRenderInit()},_disableBrowseButton:function(t){n("#"+this._id("_bb")).igBrowseButton("option","disabled",t);n("#"+this._id("_ibb")).igBrowseButton("option","disabled",t)},_checkMaxUploadingFilesCount:function(n,t){(n===null||n===undefined)&&(n=1);var i=this.options,r=!0,u=this.fileInfoData.countTotalFiles+n;return i.maxUploadedFiles!==this._const.maxUploadFilesDefault&&i.maxUploadedFiles!==null&&u>i.maxUploadedFiles&&(r=!1,t===!0&&this._setError(i.errorMessageMaxUploadedFiles,this._const.clientSideErrorCode.maxAllowedUploadingFiles,"clientside")),r},_onBrowseButtonFileSelected:function(n,t,i){var r=this,f=this.fileInfoData,u=r.options,e=1;if(i&&i.files&&i.files.length>=1&&(e=i.files.length),r._checkMaxUploadingFilesCount(e,!0)===!1){if(i.multiple===!0)return;r._disableBrowseButton(!0);return}u.maxUploadedFiles!==null&&u.maxUploadedFiles!==this._const.maxUploadFilesDefault&&u.maxUploadedFiles===f.countTotalFiles+e&&r._disableBrowseButton(!0);u.mode==="single"?f.iframe.ids.length===0&&(r._removeSingleUpload(f.lastId),r._attachIframe(n,t,f.files)===!0&&r._disableBrowseButton(!0)):u.mode==="multiple"&&r._attachIframe(n,t,i)===!1&&r._disableBrowseButton(!1)},clearAll:function(){var i=this.container(),n=i.data("finishedIDs"),t,r;if(n!==undefined){for(r=n.length,t=0;t<r;t++)this._removeSingleUpload(n[t]);n=[];i.data("finishedIDs",n);this._disableClearAllButton()}},_enableClearAllButton:function(){n("#"+this._id("_clrabtn")).igButton({disabled:!1})},_disableClearAllButton:function(){n("#"+this._id("_clrabtn")).igButton("option","disabled",!0)},_attachIframe:function(t,i,r){var e,u,f,o=n("#"+this._id("_bb"));return r&&r.files&&(u=r.files),f=i===!0?n("#"+this._id("_ibb")).igBrowseButton("getFilePicker"):o.igBrowseButton("getFilePicker"),f[0].files&&(u===null||u===undefined)&&(u=f[0].files),u&&u.length>=1?(e=this._uploadMultiple(u),f.remove()):e=this._createForm(f),e},_uploadMultiple:function(n){for(var i,r=n.length,u=this.fileInfoData,f=u.formNumber,t=0;t<r;t++)i=this._html5createForm(n[t],t,f);return i},_html5upload:function(n){var t=new XMLHttpRequest,r=new FormData,u=this.options,i=this,e=this.fileInfoData.filesInfo[n].file,o=this.fileInfoData.filesInfo[n].key,s=u.controlId,f=t.upload,h=u.uploadUrl+"?key="+o+"&cid="+s+"&multiple=true";t.open("POST",h);t.withCredentials="true";r.append(this._id("_frm",n)+"_if",e);f.addEventListener("progress",function(t){i._html5progress(t,n)},!1);f.addEventListener("error",function(){i._getFileStatus(n,!0)},!1);this.fileInfoData.filesInfo[n].xhr=t;t.onload=function(r){t.status>=200&&t.status<=299?t.responseText&&i._html5progress(r,n,!0):i._getFileStatus(n,!0)};t.send(r)},_html5progress:function(n,t,i){var u=this,f,r={};n.lengthComputable||i?(r.bytesUploaded=n.loaded,isNaN(r.bytesUploaded)&&(r.bytesUploaded=0),isNaN(n.total)&&(n.total=0),i?(f=this._getFileInfo(t),r.total=r.bytesUploaded=f.sizeBytes,r.status=u._const.status.Finished):r.status=u._const.status.Started,r.size=n.total,u._setFileStatus(t,!0,r)):u.cancelUpload(t)},_html5createForm:function(n,t,i){var r=this,f=r.options,h=n.name,o=n.size,e=this.fileInfoData,u=e.formNumber++,c=r._randomString(30),s=r._const.status.Started;return r._validateFileExtension(n.name,!0)===!1?(f.mode==="multiple"&&r._spbRenderProgress(),f.maxUploadedFiles!==null&&f.maxUploadedFiles>=e.countTotalFiles+1&&r._disableBrowseButton(!1),!1):(isNaN(o)&&(o=0),e.filesInfo[u]={path:h,key:c,sizeBytes:o,uploadedBytes:0,status:r._const.status.NotStarted,checksNoSuchFile:0,innerStatus:r._const.status.NotStarted,multipleFiles:!0,file:n,formNumber:i},e.countTotalFiles++,r._spbRenderProgress(),r._HTMLSingleUpload(u),this._saveFileSize(o,u),f.autostartupload===!0?r._checkCanUpload()===!0?r.startUpload(u):(r._addPendingId(u),s=r._const.status.NotStarted):f.mode==="single"?r._showSingleUploadStartUpload(!0,u):(r._addIDBatch(u),s=r._const.status.NotStarted),e.iframe.ids[e.iframe.ids.fileId]={id:u,status:s},f.mode==="multiple"&&r._spbCheckModeButton(),r._trigger(r.events.fileSelected,null,{fileId:u,filePath:r._getOnlyFileName(h)}),!0)},_createForm:function(t){var i=this,u=i.options,f=this.fileInfoData,r=f.formNumber++,o=this._id("_ifrm",r),s=this._id("_frm",r),c,e=i._randomString(30),h=i._const.status.Started,l=u.controlId,a=u.uploadUrl+"?key="+e+"&cid="+l;return i._validateFileExtension(t[0].value,!0)===!1?(t.remove(),u.mode==="multiple"&&i._spbRenderProgress(),u.maxUploadedFiles!==null&&u.maxUploadedFiles>=f.countTotalFiles+1&&i._disableBrowseButton(!1),!1):(f.filesInfo[r]={path:t.val(),key:e,sizeBytes:0,uploadedBytes:0,status:i._const.status.NotStarted,checksNoSuchFile:0,innerStatus:i._const.status.NotStarted},f.countTotalFiles++,i._spbRenderProgress(),n('<iframe src="javascript:false;" id="'+o+'" name="'+o+'"><\/iframe>').appendTo(n(document.body)).css({display:"none"}),c=n('<form method="post" enctype="multipart/form-data"><\/form>').attr("id",s).attr("target",o).attr("action",a).appendTo(n(document.body)),t.attr("name",s+"_if").attr("id",s+"_if").appendTo(c),i._HTMLSingleUpload(r),u.autostartupload===!0?i._checkCanUpload()===!0?i.startUpload(r):(i._addPendingId(r),h=i._const.status.NotStarted,i._getFileSize(r,e)):u.mode==="single"?(i._showSingleUploadStartUpload(!0,r),i._getFileSize(r,e)):(i._addIDBatch(r),h=i._const.status.NotStarted,i._getFileSize(r,e)),f.iframe.ids[f.iframe.ids.fileId]={id:r,status:h},u.mode==="multiple"&&i._spbCheckModeButton(),i._trigger(i.events.fileSelected,event,{fileId:r,filePath:i._getOnlyFileName(t.val())}),!0)},_showSingleUploadStartUpload:function(){var t=this,f=t.options,i="_strtuplbtn",r=n("#"+this._id(i)),u=n("#"+this._id("_bb"));r.length===0&&(n('<button id="'+t._id(i)+'"><\/button>').appendTo(n("#"+t._id("_fu"))).igButton({labelText:f.labelSummaryProgressButtonContinue,title:n.ig.Upload.locale.titleSingleUploadButtonContinue,click:function(n){n.preventDefault();t.startUpload(t.fileInfoData.formNumber-1,n);u.igBrowseButton("attachFilePicker",n,!0)}}),r=n("#"+this._id(i)));u.hide();r.show()},_removeIframe:function(t){var i=this,r=this.fileInfoData,u=this._id("_ifrm",t),f=this._id("_frm",t),e=n("#"+i._id("_bb"));n("#"+u).remove();n("#"+f).remove();r.iframe.ids=i._removeElementArrayById(r.iframe.ids,t);i.options.mode==="single"&&(e.igBrowseButton("option","disabled",!1),r.lastId=t);this._attachFakeIframe()},_HTMLSingleUpload:function(t){var i=this,v=this.options,f=i.css,y=i._id("_fc"),s=i._id("_fus",t),h=i._id("_snglpbar",t),c=i._id("_icn",t),e=i._id("_cbtn",t),p=n("#"+y),u=this.fileInfoData.filesInfo[t].path,r,l=i._id("_pbrflnm",t),w=i._id("_pbrflsz",t),a,o,b=i._getFileExtensionIconPath(i._getFileExtension(u));r='<div id="'+s+'">';r+='   <div class="'+f.containerFUS+'">';r+='       <div class="'+f.containerButtonCancelClass+'">';r+='           <button id="'+e+'"><\/button>';r+="       <\/div>";r+='       <div class="'+f.progressContainer+'">';r+='           <div class="'+f.progressBarInnerHTMLContainerClass+'" title="'+u+'">';r+='               <span id="'+c+'" class="'+b+'"><\/span>';r+='               <span class="'+f.progressBarFileNameClass+'" id="'+l+'"><\/span>';r+='               <span class="'+f.progressBarFileSizeClass+'" id="'+w+'"><\/span>';r+="           <\/div>";r+='           <div id="'+h+'" class="'+f.progressBarUploadClass+'"><\/div>';r+="       <\/div>";r+="   <\/div>";r+="<\/div>";n(r).appendTo(p);n("#"+s).addClass(f.uploadProgressClass+" "+f.clearClass);o=n("#"+h);n("#"+e).igButton({onlyIcons:!0,icons:{primary:"ui-icon-closethick"},title:n.ig.Upload.locale.titleCancelUploadButton,click:function(r){r.preventDefault();i.cancelUpload(t);n("#"+e).igButton("option","disabled",!0).igButton("option","icons",{primary:"ui-icon-check",secondary:null})},css:{buttonClasses:"ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-igbutton ui-igupload-cancel-button",buttonHoverClasses:"ui-state-hover",buttonActiveClasses:"ui-state-active",buttonFocusClasses:"ui-state-focus",buttonLabelClass:"ui-button-text",buttonDisabledClass:"ui-state-disabled",buttonPrimaryIconClass:"ui-button-icon-primary ui-icon",buttonMainElementPrimaryIconClass:" ui-button-text-icon-primary",buttonMainElementSecondaryIconClass:" ui-button-text-icon-secondary",buttonSecondaryIconClass:"ui-button-icon-secondary ui-icon",buttonIconsOnly:"ui-button-icons-only",buttonIconOnly:"ui-button-icon-only",buttonIcons:"ui-button-text-icons",buttonTextOnlyClass:"ui-button-text-only"}});o.igProgressBar({animate:i._const.isProgressBarAnimationEnabled,animateTimeout:i._const.animateProgressBarInterval,range:i._const.isProgressBarRange,value:0});v.showFileExtensionIcon||n("#"+c).css("display","none");a=n("#"+l);u=i._getOnlyFileName(u);o.data("originalFileName",u);u.length>i._const.fileNameLimit&&(u=u.substr(0,i._const.fileNameLimit));a.text(i._formatFilePath(u));i._renderFileName(t,0,u)},_renderFileName:function(t,i,r){var f=this,s=f.options,u=r,h="",l,e=n("#"+f._id("_pbrflnm",t)),o=n("#"+f._id("_pbrflsz",t)),c=n("#"+f._id("_snglpbar",t)).width(),a=n("#"+f._id("_snglpbar",t)),v=o.width();if(e.length!==0){if((u===undefined||u===null)&&(u=a.data("fileName")),c<=0)u=s.labelProgressBarFileNameContinue,e.text(u);else{for(i!==0&&i!==undefined&&i!==null&&(l=o.text(),v=o.text(f._formatFileSize(i)+"/"+f._formatFileSize(i)).width(),o.text(l));e.position().left+e.width()+v>=c&&h!==u;)h=u,u=u.substr(0,u.length/2),h===u&&u.length-1>1&&(u=u.substr(0,(u.length-1)/2)),e.text(u+s.labelProgressBarFileNameContinue);e.position().left+e.width()+o.width()>=c&&(u=s.labelProgressBarFileNameContinue)}a.data("fileName",u)}},_removeSingleUpload:function(t){var i=this,r=i._id("_fus",t),u=r+"_"+i._randomString(20);i.options.mode==="multiple"?(n("#"+r).attr("id",u),i._renderAnimatedRemovingUpload(u)):i.options.mode==="single"&&n("#"+r).hide().remove()},_renderAnimatedRemovingUpload:function(t){n("#"+t).slideUp(this._const.removeSingleUploadAnimationTimeout,function(){n(this).remove()})},startUpload:function(t){var i=this,f=i._id("_frm",t),r=this.fileInfoData,u=!1;if(t===null||r.filesInfo[t]===null||r.filesInfo[t]===undefined){i._setError(i.options.errorMessageTryToStartNonExistingFile.replace("{0}",t),i._const.clientSideErrorCode.startUpload,"clientside");return}r.filesInfo[t].status===i._const.status.NotStarted&&(u=r.filesInfo[t].multipleFiles,u!==!0?n("#"+f).submit():this._html5upload(t),i._addUploadingID(t),i._removeIDBatch(t),i._spbCheckModeButton(),r.filesInfo[t].status=i._const.status.Started,r.filesInfo[t].innerStatus=i._const.status.Started,i._spbRenderProgress(),this.options.mode==="single"&&(n("#"+i._id("_strtuplbtn")).hide(),n("#"+i._id("_bb")).igBrowseButton("option","disabled",!0).show()),u!==!0)&&setTimeout(function(){i._getFileStatus(t,!0)},i._const.progressUpdateInterval)},_setFileStatus:function(n,t,i){var r=this,a=r.options,o=!1,f="",s=0,e=0,u=this._getFileInfo(n),c=this.fileInfoData,p=r._getKey(n),h=c.filesInfo[n],w=h.path,l,v,y="";if(p===null||p===undefined||(s=parseInt(i.bytesUploaded,10),f=parseInt(i.status,10),e=parseInt(i.size,10),y=i.serverMessage,o=f===r._const.status.Finished,l=parseInt(i.error,10),v=!isNaN(l)&&l!==r._const.fileStatusNoError,h.innerStatus===r._const.status.Canceled&&v))return!1;if(v===!0&&f!==r._const.status.NoSuchFile)return r._removeUploadSetError(n,a.errorMessageOther.replace("{0}",l),l,"serverside",y),!1;if(u!==null&&u.status!==r._const.status.Canceled&&(c.fileSizeUploaded-=u.uploadedBytes,u.sizeBytes===0||u.sizeBytes===null?(u.sizeBytes=e,c.fileSizeTotal+=e):u.sizeBytes!==e&&(e=u.sizeBytes),o&&c.countUploadingFiles++,s===0&&u.uploadedBytes>0&&(s=u.uploadedBytes),u.uploadedBytes=s,u.status=f,c.fileSizeUploaded+=u.uploadedBytes,r._spbRenderProgress(),r._trigger(r.events.fileUploading,null,{fileId:n,filePath:r._getOnlyFileName(w),totalSize:e,uploadedBytes:s,fileStatus:f})===!1&&r.cancelUpload(n)),o||f===r._const.status.Started){if(o&&(r._removeUploadingID(n),a.mode==="multiple"&&(r._spbCheckModeButton(),r._submitNextPendingId())),r._renderStatus(n,s,e,o,t),!o)return!0}else if(f===r._const.status.NoSuchFile){if(h!==null&&h!==undefined&&h.checksNoSuchFile===0)return h.checksNoSuchFile++,!0;r._removeUploadSetError(n,a.errorMessageNoSuchFile,"nosuchfilekeyid","serverside",y)}return!1},_getFileStatus:function(t,i){var r=this,f=r.options,u=r._getKey(t);u!==null&&u!==undefined&&(u=u.replace("-$#","").replace("#$-",""),n.ajaxQueue("uploadrequestsqueue",{url:r._formatURL(f.progressUrl,n.param({key:u,command:"status"})),dataType:"json",cache:!1,success:function(n){r._setFileStatus(t,i,n)===!0&&setTimeout(function(){r._getFileStatus(t,!1)},r._const.progressUpdateInterval)},error:function(){r._setError(f.errorMessageGetFileStatus,r._const.clientSideErrorCode.ajaxErrorGetFileStatus,"clientside")}}))},_removeUploadSetError:function(n,t,i,r,u){var f=this,e=this.options;f._removeIframe(n);f._removeFileUpload(n);f._setError(t,i,r,u);e.mode==="multiple"&&(f._spbCheckModeButton(),f._submitNextPendingId())},cancelUpload:function(t){var i=this,f=i.options,s=i._id("_snglpbar",t),o=n("#"+s),h=n("#"+i._id("_frm",t)+"_if"),c=h.val(),u=0,e=0,l=this._getKey(t),r=this._getFileInfo(t);u=o.data("totalSize");e=o.data("bytesUploaded");u===undefined&&(u=0);e===undefined&&(e=0);r!==null&&(r.status===i._const.status.Started?(r.innerStatus=i._const.status.Canceled,r.multipleFiles===!0?(r.xhr.abort(),i._onCancelUpload(t)):n.ajaxQueue("uploadrequestsqueue",{url:i._formatURL(f.progressUrl,n.param({key:l,command:"cancel"})),dataType:"json",cache:!1,success:function(){i._onCancelUpload(t)},error:function(){i._setError(f.errorMessageCancelUpload,i._const.clientSideErrorCode.ajaxErrorCancelUpload,"clientside");i._removeFileUpload(t)}})):r.status===i._const.status.NotStarted&&(f.mode==="single"&&(n("#"+this._id("_strtuplbtn")).hide(),n("#"+this._id("_bb")).igBrowseButton("option","disabled","false").show()),i._trigger(i.events.fileUploadAborted,null,{fileId:t,filePath:i._getOnlyFileName(c),uploadedBytes:0,totalSize:u,status:i._const.status.NotStarted}),i._removeFileUpload(t)))},_onCancelUpload:function(t){var i=this,f=i.options,u=null,r=null,e=this._getFileInfo(t),o=e.path;f.autostartupload===!1&&f.mode==="multiple"&&(u=n("#"+i._id("_spbtncncl")),r=u.data("ids"),r=i._removeElementFromArray(r,t),u.data("ids",r));i._trigger(i.events.fileUploadAborted,null,{fileId:t,filePath:i._getOnlyFileName(o),uploadedBytes:0,totalSize:0,status:i._const.status.Canceled});i._removeFileUpload(t)},_removeFileUpload:function(t){var i=this,o=i.options,h=i._id("_cbtn",t),c=i._id("_snglpbar",t),s=n("#"+c),u=0,f=0,e=this.fileInfoData,r=this._getFileInfo(t);if(r===null){i._setError(o.errorMessageTryToRemoveNonExistingFile.replace("{0}",t),i._const.clientSideErrorCode.removeFileUpload,"clientside");return}u=s.data("totalSize");f=s.data("bytesUploaded");u===undefined&&(u=0);f===undefined&&(f=0);e.countTotalFiles--;r.status=i._const.status.Canceled;e.fileSizeUploaded-=r.uploadedBytes;e.fileSizeTotal-=r.sizeBytes;i._spbRenderProgress();o.mode==="multiple"&&(i._removeUploadingID(t),i._removePendingId(t),i._removeIDBatch(t),this.allCancelled===!1&&i._submitNextPendingId(),i._spbCheckModeButton());n("#"+h).remove();i._removeIframe(t);i._removeSingleUpload(t);i._disableBrowseButton(!i._checkMaxUploadingFilesCount())},_getKey:function(n){var t=this.fileInfoData.filesInfo[n];return t!==null&&t!==undefined?t.key:null},_singleFileUploadFinished:function(t){var u=this.container(),r=this,i;n("#"+r._id("_cbtn",t)).igButton("option","disabled",!0).igButton("option","icons",{primary:"ui-icon-check",secondary:null});r._removeIframe(t);r.options.mode==="multiple"&&(r._enableClearAllButton(),i=u.data("finishedIDs"),i===undefined&&(i=[]),i.push(t),u.data("finishedIDs",i))},_renderStatus:function(t,i,r,u){var f=this,o,c=n("#"+f._id("_pbrflsz",t)),l=f._id("_snglpbar",t),e=n("#"+l),s=0,h;if(u&&(i=r,f._singleFileUploadFinished(t)),r!==0&&isNaN(i)===!1&&isNaN(r)===!1&&(s=i/r*100),e.data("totalSize",r),e.data("bytesUploaded",i),h=e.data("isFileNameRendered"),o=e.data("originalFileName"),e.igProgressBar("option","value",s),c.text(f._formatFileSize(i)+"/"+f._formatFileSize(r)),h!==!0&&(e.data("isFileNameRendered",!0),f._renderFileName(t,r)),u&&(f._trigger(f.events.fileUploaded,null,{fileId:t,filePath:o,totalSize:i}),f._checkMaxUploadingFilesCount()===!1)){f._disableBrowseButton(!0);return}},_formatURL:function(n,t){return n.indexOf("?")===-1&&(n+="?"),n+t},_showHideIcons:function(t){var i=this.fileInfoData.filesInfo;for(var r in i)i[r]!==undefined&&n("#"+this._id("_icn",r)).css(t)},_setWidthHeightAllUploads:function(t,i){var r=this.fileInfoData.filesInfo,f=i?"height":"width";for(var u in r)r[u]!==undefined&&n("#"+this._id("_snglpbar",u)).igProgressBar("option",f,t)},_setOption:function(t,i){var r=this.options.mode,u=this.options.autostartupload;n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"width":this.container().width(i);n("#"+this._id("_bmncntr")).width(i);this._reRenderFileSizeMetrics();this._reRenderFileNames();break;case"height":this.container().height(i);n("#"+this._id("_bmncntr")).height(i);break;case"labelUploadButton":n("#"+this._id("_ibb")).igBrowseButton("option","labelText",i);break;case"labelAddButton":n("#"+this._id("_bb")).igBrowseButton("option","labelText",i);break;case"labelClearAllButton":n("#"+this._id("_clrabtn")).igButton("option","labelText",i);break;case"labelSummaryTemplate":case"labelSummaryProgressBarTemplate":this._spbRenderProgress();break;case"labelShowDetails":case"labelHideDetails":this._setShowHideDetailsButtonText(n("#"+this._id("_shdbtn")).is("hidden"));n("#"+this._id("_shdbtn")).text(i);break;case"labelSummaryProgressButtonCancel":this.spbButtonMode===this.summaryButtonModes.cancel&&n("#"+this._id("_spbtncncl")).igButton("option","labelText",i);break;case"labelSummaryProgressButtonContinue":this.spbButtonMode===this.summaryButtonModes.startupload&&n("#"+this._id("_spbtncncl")).igButton("option","labelText",i);break;case"labelSummaryProgressButtonDone":this.spbButtonMode===this.summaryButtonModes.done&&n("#"+this._id("_spbtncncl")).igButton("option","labelText",i);break;case"showFileExtensionIcon":this._showHideIcons({display:i?"block":"none"});break;case"fileSizeMetric":this._reRenderFileSizeMetrics();break;case"fileSizeDecimalDisplay":this._reRenderFileSizeMetrics();break;case"maxUploadedFiles":this._disableBrowseButton(!this._checkMaxUploadingFilesCount());break;case"mode":r!==i&&(this._destroyMarkup(),this._create());break;case"disabled":this._disableBrowseButton(i);break;case"autostartupload":i===!0&&i!==u&&this._spbSubmitAllButton()}},_reRenderFileSizeMetrics:function(){for(var r=this.fileInfoData.filesInfo,s=r.length,e=0,i=this,u,f,o,t=0;t<s;t++)(f=n("#"+i._id("_pbrflsz",t)),f.length!==0)&&(u=r[t].sizeBytes,e=r[t].uploadedBytes,o=n("#"+i._id("_snglpbar",t)),f.text(i._formatFileSize(e)+"/"+i._formatFileSize(u)),o.data("isFileNameRendered",!0),i._renderFileName(t,u),n("#"+i._id("_summpbrlbl_1")).width(n("#"+this._id("_summpbar")).width()));this._spbRenderProgress()},_destroyMarkup:function(){var t,i,r=n("#"+this._id("_ibb")),u=n("#"+this._id("_bb")),f=n("#"+this._id("_bmncntr"));if(this._isDivElement||this.originalElement.show().unwrap(),this.originalElement.show().unwrap(),r.igBrowseButton("destroy"),u.igBrowseButton("destroy"),r.remove(),f.remove(),this._isDivElement){for(this.element.empty(),i=this.element[0].attributes,t=0;t<i.length;t++)i[t].name!=="id"&&this.element.removeAttr(i[t].name);for(t=0;t<this._initialAttributes.length;t++)this._initialAttributes[t].name!=="id"&&this.element.attr(this._initialAttributes[t].name,this._initialAttributes[t].value);this.element.html(this._initialHTML)}else this.container().remove()},destroy:function(){this._destroyMarkup();n.Widget.prototype.destroy.apply(this,arguments)},_getFileSize:function(t,i){var r=this,s=this.options,e=this._id("_fszfrm",t),o=n("#"+r._id("_frm",t)+"_if"),u=this._id("_fszifrm",t),f,h=r._formatURL(s.uploadUrl,n.param({key:i,command:"fileSize"}));n('<iframe src="javascript:false;" id="'+u+'" name="'+u+'"><\/iframe>').appendTo(n(document.body)).css({display:"none"});n('<form method="post" id="'+e+'" target="'+u+'" enctype="multipart/form-data"><\/form>').appendTo(n(document.body)).css({display:"none"}).attr("action",h);f=n("#"+e);o.appendTo(f);f.submit();f.remove();n("#"+u).ready(function(){setTimeout(function(){r._sendRequestFileSize(t,i)},r._const.timeoutGetFileSize)});o.appendTo(n("#"+r._id("_frm",t)))},_removeGetFileSizeHTML:function(t){var i=n("#"+this._id("_fszifrm",t)),r=n("#"+this._id("_fszfrm",t));i.remove();r.remove()},_sendRequestFileSize:function(t,i){var r=this,u=this.options,f=this._getFileInfo(t);f.sizeBytes===0&&n.ajaxQueue("uploadrequestsqueue",{url:r._formatURL(u.progressUrl,n.param({key:i,command:"fileSize"})),dataType:"json",cache:!1,success:function(n){var i=parseInt(n.fileSize,10);r._saveFileSize(i,t);r._removeGetFileSizeHTML(t)},error:function(){r._setError(u.errorMessageAJAXRequestFileSize,r._const.clientSideErrorCode.ajaxErrorRequestFileSize,"clientside");r._removeGetFileSizeHTML(t)}})},_saveFileSize:function(t,i){var r=this,f=r._id("_snglpbar",i),e=n("#"+f),o=this.fileInfoData,u=this._getFileInfo(i);isNaN(t)!==!0&&(e.data("totalSize",t),u!==null&&(u.sizeBytes=t,o.fileSizeTotal+=t,r._spbRenderProgress()),r._renderStatus(i,0,t,!1,!1))},_onShowHideDetailsClick:function(){var i=this,t=n("#"+i._id("_fc")),r=t.css("margin-top"),u=t.css("margin-bottom");n.ig.util.isIE7||n.ig.util.isIEQuircks?(i._setShowHideDetailsButtonText(t.is(":hidden")),t.is(":hidden")?(t.show(),i._reRenderFileNames()):t.hide(),i._setShowHideDetailsButtonText(t.is(":hidden"))):(t.css({"margin-top":0,"margin-bottom":0}),t.slideToggle(i._const.showHideDetailsAnimationTimeout,function(){t.css({"margin-top":r,"margin-bottom":u});i._setShowHideDetailsButtonText(t.is(":hidden"));t.is(":hidden")===!1&&i._reRenderFileNames()}))},_reRenderFileNames:function(){for(var r=this.fileInfoData.filesInfo,u=r.length,i,t=0;t<u;t++)i=n("#"+this._id("_snglpbar",t)).data("originalFileName"),n("#"+this._id("_pbrflnm",t)).text(i),this._renderFileName(t,0,i)},_setShowHideDetailsButtonText:function(t){var r=this.options,i=n("#"+this._id("_shdbtn"));t?(i.text(r.labelShowDetails),i.attr("title",n.ig.Upload.locale.titleShowDetailsButton)):(i.text(r.labelHideDetails),i.attr("title",n.ig.Upload.locale.titleHideDetailsButton))},getFileInfoData:function(){return this.fileInfoData},cancelAll:function(){var t,f=this.fileInfoData,i=f.uploadingIDs,e=i.length,r=f.pendingQueueIDs,o=r.length,u=f.batch,s=u.length;for(this.allCancelled=!0,t=0;t<e;t++)i[t]!==undefined&&this.cancelUpload(i[t]);for(t=0;t<o;t++)r[t]!==undefined&&this.cancelUpload(r[t]);for(t=0;t<s;t++)u[t]!==undefined&&this.cancelUpload(u[t]);i=[];r=[];u=[];n("#"+this._id("_spbtncncl")).data("ids",[]);this.allCancelled=!1},_submitAllFormsUpload:function(){for(var i=this,t,r=this.fileInfoData.batch,u=r.length,f=[],n=0;n<u;n++)t=r[n],i._checkCanUpload()?i.startUpload(t):(i._addPendingId(t),f.push(t));this.fileInfoData.batch=[]},_spbRenderInit:function(){var r=this,u=this.options,i=r.css,y=this._id("_fu"),o=u.labelSummaryProgressButtonContinue,s=this._id("_spbcntr"),h=this._id("_summpbrlbl"),c=this._id("_summpbar"),p=this._id("_summplbl"),f=this._id("_shdbtn"),l=this._id("_spbtncncl"),w=this._id("_spdtlbtn"),e,t="",a,v=n.ig.Upload.locale.titleSummaryProgressButtonContinue;t+='<div id="$summaryProgressContainerId$">';t+='   <div  class="'+i.summaryInformationContainerClass+'">';t+='       <span id="$summaryProgressLabelId$" class="'+i.summaryUploadedFilesLabelClass+'"><\/span><a href="javascript:void(0);" id="$showHideDetailsId$" class="'+i.summaryShowHideDetailsButtonClass+'">$labelShowHideDetails$<\/a>';t+="   <\/div>";t+='   <div class="'+i.clearClass+'">';t+='       <button id="$summaryProgressButtonCancelId$"><\/button>';t+='       <div id="$summaryProgressBarId$"><\/div>';t+="   <\/div>";t+="<\/div>";t=t.replace("$summaryProgressContainerId$",s).replace("$summaryProgressLabelId$",p).replace("$summaryProgressDetailsButtonId$",w).replace("$summaryProgressBarId$",c).replace("$showHideDetailsId$",f).replace("$labelShowHideDetails$",u.labelHideDetails).replace("$labelSummaryProgressButtonCancel$",u.labelSummaryProgressButtonCancel).replace("$summaryProgressButtonCancelId$",l);n(t).appendTo(n("#"+y));a={IDs:{},CurrentUploadedFiles:0,CurrentUploadedSize:0,TotalFileSize:0,TotalFiles:0,UploadingFiles:0};n("#"+s).data("progressData",a).addClass(i.summaryProgressContainerClass+" "+i.clearClass);e=n("#"+c);n('<span id="'+h+'"><\/span>').addClass(i.summaryProgressbarLabelClass).appendTo(e.igProgressBar({animate:r._const.isProgressBarAnimationEnabled,animateTimeout:r._const.animateProgressBarInterval,range:r._const.isProgressBarRange,value:0}).addClass(i.summaryProgressBarClass));n('<div id="'+h+'_1"><\/div>').width(e.width()).addClass(i.summaryProgressBarSecondaryLabel).appendTo(n("#"+this._id("_summpbar_progress")).addClass(i.summaryProgressBarInnerProgress));n("#"+f).bind({click:function(n){n.preventDefault();r._onShowHideDetailsClick()}});n.ig.Upload.locale.titleHideDetailsButton!==!1&&n("#"+f).attr("title",n.ig.Upload.locale.titleHideDetailsButton);u.autostartupload&&(o=u.labelSummaryProgressButtonCancel,v=n.ig.Upload.locale.titleSummaryProgressButtonCancel,this.spbButtonMode=this.summaryButtonModes.cancel);n("#"+l).igButton({labelText:o,title:v,disabled:!1,click:function(n){n.preventDefault();r._spbOnClickButton(n)}}).addClass(i.summaryButtonClass)},_spbRenderProgress:function(){var e=this.options,o=n("#"+this._id("_summpbar")),s=n("#"+this._id("_summplbl")),h=n("#"+this._id("_summpbrlbl")),c=n("#"+this._id("_summpbrlbl_1")),u="",r=0,t=this.fileInfoData,i=t.fileSizeTotal,f=t.fileSizeUploaded;i!==0&&isNaN(i)===!1?r=f/i*100:i===0&&(r=0);t.countUploadingFiles===t.countTotalFiles&&(r=t.countTotalFiles===0?0:100,t.fileSizeUploaded=i,f=i);o.igProgressBar("option","value",r);u=e.labelSummaryProgressBarTemplate.replace("{0}",this._formatFileSize(f)).replace("{1}",this._formatFileSize(i)).replace("{2}",r);s.html(e.labelSummaryTemplate.replace("{0}",t.countUploadingFiles).replace("{1}",t.countTotalFiles));h.text(u);c.text(u)},_spbOnClickButton:function(n){var t=this.summaryButtonModes,i=this.spbButtonMode;n.preventDefault();i===t.cancel?(this._trigger(this.events.cancelAllClicked,n),this.cancelAll()):i===t.startupload&&this._spbSubmitAllButton()},_spbSubmitAllButton:function(){this._submitAllFormsUpload();this._spbCheckModeButton()},_spbCheckModeButton:function(){var n=this.fileInfoData;this.options.autostartupload?n.pendingQueueIDs.length>0||n.uploadingIDs.length>0?this._spbSetCancelButton():this._spbSetButtonDone():n.pendingQueueIDs.length===0&&n.uploadingIDs.length===0?n.batch.length>0?this._spbSetContinueButton():this._spbSetButtonDone():this._spbSetCancelButton()},_spbSetButtonDone:function(){var t=this.options,i=n("#"+this._id("_spbtncncl"));this.spbButtonMode=this.summaryButtonModes.done;i.igButton("option","labelText",t.labelSummaryProgressButtonDone).igButton("option","title",n.ig.Upload.locale.titleSummaryProgressButtonDone).igButton("option","disabled",!0)},_spbSetContinueButton:function(){var t=this.options,i=n("#"+this._id("_spbtncncl"));this.spbButtonMode=this.summaryButtonModes.startupload;i.igButton({title:n.ig.Upload.locale.titleSummaryProgressButtonContinue,labelText:t.labelSummaryProgressButtonContinue,disabled:!1})},_spbSetCancelButton:function(){var t=n("#"+this._id("_spbtncncl"));this.spbButtonMode=this.summaryButtonModes.cancel;t.igButton("option","labelText",this.options.labelSummaryProgressButtonCancel).igButton("option","title",n.ig.Upload.locale.titleSummaryProgressButtonCancel).igButton("option","disabled",!1)},_getFileInfo:function(n){var t=this.fileInfoData.filesInfo[n];return t===undefined||t===null?null:t},_formatFilePath:function(n){var t=n.lastIndexOf("/");return n=n.replace(/(\/|\\)$/,""),t===-1&&(t=n.lastIndexOf("\\")),n.substring(t+1)},_checkCanUpload:function(){var n=this.options,r=this.fileInfoData,i=!0,t=n.maxSimultaneousFilesUploads;return n.mode==="multiple"&&t!==null&&r.uploadingIDs.length>=t&&(i=!1,t<=0&&this._setError(n.errorMessageMaxSimultaneousFiles,this._const.clientSideErrorCode.checkCanUpload,"clientside")),i},_addPendingId:function(n){this.fileInfoData.pendingQueueIDs.push(n)},_removePendingId:function(n){var i=this.fileInfoData.pendingQueueIDs,t;return n!==undefined&&n!==null?(t=n,this.fileInfoData.pendingQueueIDs=this._removeElementFromArray(i,t)):(t=i.shift(),t===undefined&&(t=null)),t},_addUploadingID:function(n){this.fileInfoData.uploadingIDs.push(n)},_removeUploadingID:function(n){this.fileInfoData.uploadingIDs=this._removeElementFromArray(this.fileInfoData.uploadingIDs,n)},_addIDBatch:function(n){this.fileInfoData.batch.push(n)},_removeIDBatch:function(n){this.fileInfoData.batch=this._removeElementFromArray(this.fileInfoData.batch,n)},_submitNextPendingId:function(){var n=this,t;n._checkCanUpload()===!0&&(t=n._removePendingId(),t!==null&&n.startUpload(t))},_randomString:function(n){for(var r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",u="",i,t=0;t<n;t++)i=Math.floor(Math.random()*r.length),u+=r.substring(i,i+1);return u},_cutFilePath:function(n,t){var i=n.length;if(i<=t)return n},_getOnlyFileName:function(n){var t="";return n===null||n===undefined?"":(n.indexOf("/")!==-1?t="/":n.indexOf("\\")!==-1&&(t="\\"),t!==""&&(n=n.substr(n.lastIndexOf(t)+1)),n)},_getFileExtension:function(n){return n.substring(n.lastIndexOf(".")+1)},_validateFileExtension:function(t,i){var u="",f=this.options.allowedExtensions,r;return f.length===0?!0:(u=t.substring(t.lastIndexOf(".")+1),r=n.inArray(u,f)>=0,i===!0&&r===!1&&this._setError(this.options.errorMessageValidatingFileExtension,this._const.clientSideErrorCode.extensionValidation,"clientside"),r)},_getFileExtensionIconPath:function(t){var r=this.options.fileExtensionIcons,i,u="",f=r.length;for(t=String(t).toLowerCase(),i=0;i<f;i++){if(r[i].ext!==undefined&&(r[i].ext===t||n.inArray(t,r[i].ext)!==-1)){u=r[i].css;break}u===""&&(r[i].def===!0||n.isArray(r[i].ext)&&r[i].ext.length===0)&&(u=r[i].css)}return u},_setError:function(n,t,i,r){var u=this.options,f=this._const.errorCode;if(r===undefined&&(r=""),i==="serverside")switch(t){case f.MimeTypeValidation:n=u.errorMessageValidatingFileExtension;break;case f.FileSizeExceeded:n=u.errorMessageMaxFileSizeExceeded}this._spbCheckModeButton();this._trigger(this.events.onError,null,{errorCode:t,errorMessage:n,errorType:i,serverMessage:r})},_formatFileSize:function(n){var i=this.options.fileSizeMetric,t=n;switch(i){case"bytes":t=n+"B";break;case"kbytes":t=this._convertToKBytes(n);break;case"mbytes":t=this._convertToMBytes(n);break;case"gbytes":t=this._convertToGBytes(n);break;case"auto":t=n<1024?n+"B":n<1048576?this._convertToKBytes(n):n<1073741824?this._convertToMBytes(n):this._convertToGBytes(n)}return t},_convertToKBytes:function(n){var t=n/1024;return t.toFixed(this.options.fileSizeDecimalDisplay)+"KB"},_convertToMBytes:function(n){var t=n/1048576;return t.toFixed(this.options.fileSizeDecimalDisplay)+"MB"},_convertToGBytes:function(n){var t=n/1073741824;return t.toFixed(this.options.fileSizeDecimalDisplay)+"GB"},_removeElementArrayById:function(t,i){return t===undefined||t===null?[]:n.grep(t,function(n){return n.id!==i})},_removeElementFromArray:function(t,i){return t===undefined||t===null?[]:n.grep(t,function(n){return n!==i})}});n.extend(n.ui.igUpload,{version:"14.1.20141.2031"})}(jQuery),function(n){var r="=id",t=null,i={},f=function(n){try{n.preventDefault();n.stopPropagation()}catch(t){}},u=function(n,t){var i=n.id;return!i&&t&&(n._fid=t),i||n._fid};n.widget("ui.igValidator",{options:{showIcon:null,animationShow:null,animationHide:null,enableTargetErrorCss:null,alignment:null,keepFocus:null,onchange:null,onblur:null,formSubmit:null,onsubmit:null,bodyAsParent:!0,required:!1,minLength:-1,maxLength:-1,min:null,max:null,regExp:null,checkboxesName:!1,locale:null,errorLabel:null,element:null,theme:null,errorMessage:null},css:{label:"ui-igvalidator ui-widget ui-state-error ui-corner-all",icon:"ui-igvalidator-icon ui-icon ui-icon-alert",target:"ui-igvalidator-target"},locale:{defaultMessage:"Please fix this field",selectMessage:"Please select a value",rangeSelectMessage:"Please select no more than {0} and not less than {1} items",minSelectMessage:"Please select at least {0} items",maxSelectMessage:"Please select no more than {0} items",rangeLengthMessage:"Please enter a value between {0} and {1} characters long",minLengthMessage:"Please enter at least {0} characters",maxLengthMessage:"Please enter no more than {0} characters",requiredMessage:"This field is required",regExpMessage:"Please fix pattern of this field",maskMessage:"Please fill all required positions",dateFieldsMessage:"Please enter values in date fields",invalidDayMessage:"Invalid day of month. Please enter correct day",dateMessage:"Please enter a valid date",numberMessage:"Please enter a valid number",rangeMessage:"Please enter a value between {0} and {1}",minMessage:"Please enter a value greater than or equal to {0}",maxMessage:"Please enter a value less than or equal to {0}"},events:{checkValue:null,validation:null,errorShowing:null,errorHiding:null,errorShown:null,errorHidden:null},_create:function(){var i,r,f,u=this.options,t=this,e=n.ui.igValidator.defaults;for(i in u)u.hasOwnProperty(i)&&u[i]===null&&e[i]!==undefined&&(u[i]=e[i]);f=t.element;t._state=3;t._focTime=0;t._init0();r=f[0].nodeName;r==="SELECT"?r=5:(r=f[0].type,r=r==="checkbox"?u.checkboxesName?6:4:r==="radio"?6:0);t._elem=r!==6?f:n("[name="+f[0].name+"]").map(function(){return this.form===f[0].form?this:null});t._t=r;u.ctl||u.combo||(t._evts={keydown:function(n){i=n.keyCode;(i<15||i>20)&&t._evt(n,i===9?null:t,i===9)},change:function(n){t._evt(n,t)},cut:function(n){t._evt(n,t)},paste:function(n){t._evt(n,t)},beforecut:function(n){t._evt(n,t)},drop:function(n){t._evt(n,t)},dragend:function(n){t._evt(n,t)},blur:function(n){t._evt(n,t,1)}},t._elem.bind(t._evts),u.element&&(t._evtsE={mousedown:function(n){t._evt(n,t)},mouseup:function(n){t._evt(n)}},u.element.bind(t._evtsE)))},_evt:function(t,i,r){var u=this.options;r&&!u.onblur||!r&&!u.onchange||n.ig&&n.ig.util&&n.ig.util.evtButton(t)||(i?setTimeout(function(){i.validate(t)},20):this.validate(t))},_loc:function(t,i){t+=i?"":"Message";var r=this.options,u=r.errorMessage||r[t]||(r.locale?r.locale[t]:null);return u=u||(n.ig&&n.ig.Validator&&n.ig.Validator.locale?n.ig.Validator.locale[t]:null),u||this.locale[t]},_foc1:function(n){return n=n.keepFocus,n&&this._t!==6&&!(n.indexOf&&n.indexOf("n")===0)?n==="once"||n===1?1:2:null},_onTab:function(n){if(n&&n.keyCode===9&&this._foc1(this.options)===2)return f(n),1},_init0:function(t){var e,c,o,s=this._id,h=this.options;(t?this._doError():h.ctl&&(h.ctl._validator=this),e=this.element[0].form,e)&&(c=u(e,"fid"),s||(s=this.element[0].id,s||(r+=r.length,s=r),this._id=s),o=i[c],!t&&(h.onsubmit||h.formSubmit)?(!e._ig_onsubmit&&h.onsubmit&&(e._ig_onsubmit=1,n(e).submit(function(n){var t=i[u(this)];t&&t.validate(n)})),!e._ig_formsubmit&&h.formSubmit&&(e._ig_formsubmit=e.submit,e.submit=function(){var n=i[u(this)];n&&n.validate()||this._ig_formsubmit&&this._ig_formsubmit()}),o||(o=i[c]={ctls:{},validate:function(t){var i,r=!1,e=1,u=this.ctls;for(i in u)u.hasOwnProperty(i)&&u[i].validate(t,e)&&(r=!0,n.ui.igValidator.defaults.showAllErrorsOnSubmit||(e=2));return t&&r&&f(t),r}}),o.ctls[s]=this):o&&o.ctls&&o.ctls[s]&&delete o.ctls[s])},getLocaleOption:function(n){return this._loc(n,1)},isMessageDisplayed:function(){return this._state>6},isValidState:function(){return!(this._state>=6||this.validate(null,null,1))},hide:function(n){this._doError(null,null,n?5:6)},validate:function(t,i,r){var f,s,o,e=null,a="Length",l=this._t,h=-1,u=this.options,c=this.element;if(c&&c.closest("body").length!==0){if(l>3?(a="Select",h=o=l===5?c[0].multiple?n("option:selected",c[0]).length:c[0].selectedIndex:this._elem.filter(":checked").length):(o=c.hasClass("ui-igcombo-nulltext")?"":c.val(),h=o.length),u.ctl&&delete u.ctl._invPlus,s={owner:this,message:this._loc("default"),value:u.ctl?u.ctl.value():o},!this._trigger("checkValue",t,s))return u.ctl&&!r&&(u.ctl._invPlus=s.message),r?2:this._doError(s.message,t,i);if(h===0)if(r){if(u.required)return 2}else if(!u.required)return this._doError(null,t,i);return(f=u.regExp,f&&h>0&&(f.test||(f=new RegExp(f.toString())),e=f.test(o)?null:this._loc("regExp"),u.ctl&&(u.ctl._invPlus=e)),e||!u.required||h!==0&&o||(e=this._loc(l>4?"select":"required")),e||(f=u.minLength,s=u.maxLength,h>=0&&(f>h||s>0&&s<h)&&(e=f>0&&s>0?this._loc("range"+a).replace("{0}",s).replace("{1}",f):this._loc((f>0?"min":"max")+a).replace("{0}",f>0?f:s),u.ctl&&(u.ctl._invPlus=e))),e)?r?e:this._doError(e,t,i):u.ctl?(f=u.ctl._doInvalid(null,9),f=f?f.message:null,r?f:this._doError(f,t,i)):(f=(typeof u.min=="number"?1:0)+(typeof u.max=="number"?2:0),!e&&l<2&&h>0&&f>0&&(o=parseFloat(o),isNaN(o)?e=this._loc("number"):f===3&&(o<u.min||o>u.max)?e=this._loc("range").replace("{0}",u.min).replace("{1}",u.max):f===1&&o<u.min?e=this._loc("min").replace("{0}",u.min):f===2&&o>u.max&&(e=this._loc("max").replace("{0}",u.max))),r?e:this._doError(e,t,i))}},_xyCheck:function(n){var i,r,t=this._xy;t&&(this._elem&&this._elem[0].offsetWidth&&(r=t.e.offset(),i=r.left-t.x,i!==t.x0&&(t.x0=i,this._dd.css("left",t.xDD+i+"px")),i=r.top-t.y,i!==t.y0&&(t.y0=i,this._dd.css("top",t.yDD+i+"px"))),(n||!r)&&(delete this._xy,clearInterval(t.i)),r||this._doError())},_doError:function(i,r,u){var b,v,y,nt,c,p,k,o,a,w,tt,s,ft,et,d,it=1,f=this,g=f.css,rt="left",ut="top",ot=f._state,l=i,e=f._lbl,h=f.options;if(u||(u=0),a=h.ctl,w=h.alignment==="bottom"?0:h.alignment==="left"?-1:1,!i&&e&&(i=e[0]._txt),!(ot<6)||l){if(tt=e&&e[0]._txt===i&&!f._changed,this._changed=null,l&&f._onTab(r)&&tt)return 2;if(l&&tt&&ot>5)return t===f&&f._focus(h,u,r),2;if(!u&&l&&t&&(new Date).getTime()-t._focTime<100)return 2;if(p={owner:f,message:i,invalid:!!l},!(u<5)||f._trigger("validation",r,p)){if(f._state=l?6:1,k=h.element||f.element,v=a?a._element:k,h.enableTargetErrorCss&&(l?v.addClass(g.target):u!==5&&v.removeClass(g.target)),u===2)return 2;if(!f._trigger(l?"errorShowing":"errorHiding",r,p))return 1;if(l||e){if(i=p.message,f._state++,b=!h.bodyAsParent,b&&(rt="marginLeft",ut="marginTop"),s=h.errorLabel,typeof s=="string"&&(s=n("body").find('[data-valmsg-for="'+s+'"]').removeClass("field-validation-valid").addClass("field-validation-error")),!s||s.length&&s.find||(s=null),s?e=s:e||(e=f.element[0].id,e&&(e=' for="'+e+'"'),e=n("<label"+e+"/>").addClass(g.label).css({position:"absolute",visibility:"hidden"}),e[0].unselectable="on",e.html(i),e[0]._id=98,f._dd=h.theme?n("<span/>").addClass(h.theme).css("position","absolute").append(e):e,b?MSApp.execUnsafeLocalFunction(function(){f._dd.prependTo(v.parent())}):MSApp.execUnsafeLocalFunction(function(){f._dd.appendTo(n("body"))})),f._lbl=e,l){e[0]._txt=i;s?e.html(i).show():(f._dd.css(rt,"0px").css(ut,"0px"),h.showIcon&&((i===" "||i==="&nbsp;")&&(i=""),i='<span class="'+g.icon+'"><\/span><span style="display:inline-block;width:18px;"><\/span>'+i),e.html(i),e.css("width","auto").css("height","auto"),e[0]._width0=e[0].offsetWidth,e[0]._height0=e[0].offsetHeight,f._width=Math.max(e.width(),5),f._height=Math.max(e.height(),10),h.showIcon&&(f._height=Math.max(e.children()[0].offsetHeight,f._height)));try{v.parentsUntil(document.body).add(v).add(k).add(e).each(function(){o=this.style?this.style.zIndex:0;o=o?parseInt(o,10):null;o&&!isNaN(o)&&o>it&&(it=o)})}catch(st){}e.css("zIndex",it);f._focTime=0;t=f}if(y=function(){l?e.css("filter",""):(s?s.html(" ").hide():f._dd.remove(),f._dd=f._lbl=t=null);f._state++},l)return f._focus(h,u,r),o=h.animationShow,o<5&&(o=null),s?e.css("opacity",0).show():(e.css({opacity:o?0:1,height:(o?0:f._height)+"px",width:Math.floor(f._width/(o&&w>=0?2:1))+"px",display:"",visibility:"visible"}),d=a&&a._swap?f.element:k,c=d.offset(),b||(ft=c.left,et=c.top),c.top+=w?0:d.outerHeight(),a&&a._swap&&(c.left-=a._leftShift()),w&&(c.left+=w<0?-e[0].offsetWidth:v[0].offsetWidth),b?(nt=e.offset(),c.left-=nt.left,c.top-=nt.top):f._xy={x0:0,y0:0,x:ft,y:et,e:d,xDD:c.left,yDD:c.top,i:setInterval(function(){f._xyCheck()},300)},f._dd.css(rt,c.left+"px").css(ut,c.top+"px")),o?e.animate(s?{opacity:1}:{opacity:1,height:f._height,width:f._width},o,null,y):y(),f._trigger("errorShown",r,p),2;f._xyCheck(!0);o=h.animationHide;o<5&&(o=null);o?s?e.animate({opacity:0},o,null,y):e.animate({opacity:.6},Math.floor(o*.34)).animate({opacity:0,height:0,width:Math.floor(f._width/(w<0?1:2))},Math.floor(o*.66),null,y):y();f._trigger("errorHidden",r,p)}}}},_focus:function(t,i,r){var u=!i&&this._foc1(t)?this.element:null;r=r&&r.keyCode!==9?r.type:"";u&&!(t.ctl&&t.ctl._fcs)&&(this._foc1(t)!==1||!this._focTime)&&r.indexOf("key")<0&&r.indexOf("mouse")<0&&(n.ui.igValidator._keepFoc=t.ctl,r=n.ui.igValidator._dd,r&&r._doDrop(),this._focTime=(new Date).getTime(),setTimeout(function(){try{u.focus()}catch(n){}},0))},_setOption:function(t,i){return this.options[t]===i?this:(n.Widget.prototype._setOption.apply(this,arguments),typeof i!="function"&&t!=="locale"&&this._init0(),this)},destroy:function(){if(!this._elem)return this;var t=this.options;return t.ctl||(this._elem.unbind(this._evts),this._evtsE&&t.element.unbind(this._evtsE)),this._init0(1),t.element=t.ctl=this._evts=this._evtsE=this._elem=null,n.Widget.prototype.destroy.apply(this,arguments),this}});n.ui.igValidator._act=function(t,i){var f,r,u=n.ui.igValidator;if(u){if(f=u._dd,!f||f._ddOn&&(f._field||f.mainElem)||(f=null,delete u._dd),r=u._keepFoc,r&&!r._field&&(r=null,delete u._keepFoc),i==="drop"){if(r&&r!==t&&!r.validate())return!0;u._dd=t;return}if(i==="hide"){f===t&&delete u._dd;return}return i||r!==t||delete u._keepFoc,r&&r!==t}};n.extend(n.ui.igValidator,{version:"14.1.20141.2031"});n.ui.igValidator.defaults={showAllErrorsOnSubmit:!1,showIcon:!0,animationShow:300,animationHide:300,enableTargetErrorCss:!0,alignment:"bottom",keepFocus:null,onchange:!0,onblur:!0,formSubmit:!1,onsubmit:!0}}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igHtmlEditor",{options:{showFormattingToolbar:!0,showTextToolbar:!0,showInsertObjectToolbar:!0,showCopyPasteToolbar:!0,width:725,height:350,toolbarSettings:[],customToolbars:[],inputName:"source",value:""},events:{rendered:"rendered",rendering:"rendering",actionExecuting:"actionExecuting",actionExecuted:"actionExecuted",toolbarCollapsing:"toolbarCollapsing",toolbarCollapsed:"toolbarCollapsed",toolbarExpanding:"toolbarExpanding",toolbarExpanded:"toolbarExpanded",cut:"cut",copy:"copy",paste:"paste",undo:"undo",redo:"redo"},css:{htmlEditor:"ui-widget ui-widget-content ui-corner-all ui-ightmleditor ui-helper-clearfix",htmlEditorContent:"ui-ightmleditor-content",toolbarsContainer:"ui-igtoolbars-holder",pathFinder:"ui-igPathFinder",workspaceIframe:"ui-widget-content"},defaultToolbars:[{name:"textToolbar",displayName:n.ig.HtmlEditor.locale.defaultToolbars.textToolbar,isExpanded:!0,collapseButtonIcon:"ui-igbutton-collapse",expandButtonIcon:"ui-igbutton-expand",items:[{name:"Bold",type:"button",scope:null,props:{allowToggling:{value:!0},isBold:{value:!1,action:"_isSelectedAction"},boldButtonTooltip:{value:n.ig.HtmlEditor.locale.boldButtonTitle,action:"_tooltipAction"},boldButtonIcon:{value:"ui-igbutton-bold",action:"_buttonIconAction"}}},{name:"Italic",type:"button",props:{isItalic:{value:!1,action:"_isSelectedAction"},italicButtonTooltip:{value:n.ig.HtmlEditor.locale.italicButtonTitle,action:"_tooltipAction"},italicButtonIcon:{value:"ui-igbutton-italic",action:"_buttonIconAction"}}},{name:"Underline",type:"button",props:{isUnderline:{value:!1,action:"_isSelectedAction"},underlineButtonTooltip:{value:n.ig.HtmlEditor.locale.underlineButtonTitle,action:"_tooltipAction"},underlineButtonIcon:{value:"ui-igbutton-underline",action:"_buttonIconAction"}}},{name:"Strikethrough",type:"button",props:{isStrikethrough:{value:!1,action:"_isSelectedAction"},strikethroughButtonTooltip:{value:n.ig.HtmlEditor.locale.strikethroughButtonTitle,action:"_tooltipAction"},strikethroughButtonIcon:{value:"ui-igbutton-strikethrough",action:"_buttonIconAction"}}},{name:"fontFamily",type:"combo",scope:null,handler:"_fontNamePlg",props:{fontFamilyComboWidth:{value:135,action:"_comboWidthAction"},fontFamilyComboHeight:{value:"",action:"_comboHeightAction"},fontFamilies:{value:n.ig.HtmlEditor.locale.fontNames[/^win/gi.test(navigator.platform)?"win":"mac"],action:"_comboDataSourceAction"},selectedFontFamily:{value:"Times New Roman",action:"_comboSelectedItem"}}},{type:"combo",name:"fontSize",scope:null,handler:"_fontSizePlg",props:{fontSizeComboWidth:{value:75,action:"_comboWidthAction"},fontSizeComboHeight:{value:"",action:"_comboHeightAction"},fontSizes:{value:n.ig.HtmlEditor.locale.fontSizes,action:"_comboDataSourceAction"},selectedFontSize:{value:"1",action:"_comboSelectedItem"},fontSizeItemsListWidth:{value:100,action:"_comboDropDownListWidth"}}},{type:"combo",name:"formatsList",scope:null,handler:"_formatsListPlg",props:{formatsListComboWidth:{value:125,action:"_comboWidthAction"},formatsListComboHeight:{value:"",action:"_comboHeightAction"},formatsList:{value:n.ig.HtmlEditor.locale.formatsList,action:"_comboDataSourceAction"},selectedFormat:{value:"p",action:"_comboSelectedItem"}}}]},{name:"formattingToolbar",displayName:n.ig.HtmlEditor.locale.defaultToolbars.formattingToolbar,isExpanded:!0,collapseButtonIcon:"ui-igbutton-collapse",expandButtonIcon:"ui-igbutton-expand",items:[{name:"justifyleft",type:"button",props:{isJustifyleft:{value:!1,action:"_isSelectedAction"},justifyleftButtonTooltip:{value:n.ig.HtmlEditor.locale.alignTextLeftButtonTitle,action:"_tooltipAction"},justifyleftButtonIcon:{value:"ui-igbutton-justifyleft",action:"_buttonIconAction"}}},{name:"justifycenter",type:"button",props:{isJustifycenter:{value:!1,action:"_isSelectedAction"},justifycenterButtonTooltip:{value:n.ig.HtmlEditor.locale.alignTextCenterButtonTitle,action:"_tooltipAction"},justifycenterButtonIcon:{value:"ui-igbutton-justifycenter",action:"_buttonIconAction"}}},{name:"justifyright",type:"button",props:{isJustifyright:{value:!1,action:"_isSelectedAction"},justifyrightButtonTooltip:{value:n.ig.HtmlEditor.locale.alignTextRightButtonTitle,action:"_tooltipAction"},justifyrightButtonIcon:{value:"ui-igbutton-justifyright",action:"_buttonIconAction"}}},{name:"justifyfull",type:"button",props:{isJustifyfull:{value:!1,action:"_isSelectedAction"},justifyfullButtonTooltip:{value:n.ig.HtmlEditor.locale.justifyButtonTitle,action:"_tooltipAction"},justifyfullButtonIcon:{value:"ui-igbutton-justifyfull",action:"_buttonIconAction"}}},{name:"InsertUnorderedList",type:"button",props:{isUnorderedList:{value:!1,action:"_isSelectedAction"},insertUnorderedListTooltip:{value:n.ig.HtmlEditor.locale.bulletsButtonTitle,action:"_tooltipAction"},insertUnorderedListButtonIcon:{value:"ui-igbutton-unorderedlist",action:"_buttonIconAction"}}},{name:"InsertOrderedList",type:"button",props:{isOrderedList:{value:!1,action:"_isSelectedAction"},insertOrderedListTooltip:{value:n.ig.HtmlEditor.locale.numbersButtonTitle,action:"_tooltipAction"},insertOrderedListButtonIcon:{value:"ui-igbutton-orderedlist",action:"_buttonIconAction"}}},{name:"outdent",type:"button",props:{outdentButtonTooltip:{value:n.ig.HtmlEditor.locale.decreaseIndentButtonTitle,action:"_tooltipAction"},outdentButtonIcon:{value:"ui-igbutton-removeindent",action:"_buttonIconAction"}}},{name:"indent",type:"button",props:{indentTooltip:{value:n.ig.HtmlEditor.locale.increaseIndentButtonTitle,action:"_tooltipAction"},indentButtonIcon:{value:"ui-igbutton-indent",action:"_buttonIconAction"}}},{name:"textColor",type:"splitButtonColor",handler:"_fontColorPlg",props:{items:{value:[{name:"textColor",label:n.ig.HtmlEditor.locale.fontColorButtonTitle,iconClass:"ui-igbutton-forecolor"}]},defaultItemName:{value:"textColor"},selectedTextColor:{value:"red",action:"_spltButtonColorAction"}}},{name:"backgroundTextColor",type:"splitButtonColor",handler:"_fontBackgroundColorPlg",props:{items:{value:[{name:"backgroundTextColor",label:n.ig.HtmlEditor.locale.textHighlightButtonTitle,iconClass:"ui-igbutton-backcolor"}]},defaultItemName:{value:"backgroundTextColor"},selectedTextBackgroundColor:{value:"",action:"_spltButtonColorAction"}}}]},{name:"insertObjectToolbar",displayName:n.ig.HtmlEditor.locale.defaultToolbars.insertObjectToolbar,isExpanded:!0,collapseButtonIcon:"ui-igbutton-collapse",expandButtonIcon:"ui-igbutton-expand",items:[{name:"image",type:"button",handler:"_insertImageDialogPlg",props:{isImage:{value:!1,action:"_isSelectedAction"},imageButtonTooltip:{value:n.ig.HtmlEditor.locale.insertPictureButtonTitle,action:"_tooltipAction"},imageButtonIcon:{value:"ui-igbutton-addimage",action:"_buttonIconAction"}}},{name:"link",type:"button",handler:"_insertLinkPlg",props:{isLink:{value:!1,action:"_isSelectedAction"},linkButtonTooltip:{value:n.ig.HtmlEditor.locale.insertLinkButtonTitle,action:"_tooltipAction"},linkButtonIcon:{value:"ui-igbutton-addlink",action:"_buttonIconAction"}}},{name:"table",type:"button",handler:"_insertTablePlg",props:{isTable:{value:!1,action:"_isSelectedAction"},tableButtonTooltip:{value:n.ig.HtmlEditor.locale.insertTableButtonTitle,action:"_tooltipAction"},tableButtonIcon:{value:"ui-igbutton-table",action:"_buttonIconAction"}}},{name:"addRow",type:"button",handler:"_addTableRowPlg",props:{allowToggling:{value:!1},isAddRow:{value:!1,action:"_isSelectedAction"},addRowButtonTooltip:{value:n.ig.HtmlEditor.locale.addRowButtonTitle,action:"_tooltipAction"},addRowButtonIcon:{value:"ui-igbutton-addrow",action:"_buttonIconAction"}}},{name:"addColumn",type:"button",handler:"_addTableColumnPlg",props:{allowToggling:{value:!1},isAddColumn:{value:!1,action:"_isSelectedAction"},addColumnButtonTooltip:{value:n.ig.HtmlEditor.locale.addColumnButtonTitle,action:"_tooltipAction"},addColumnButtonIcon:{value:"ui-igbutton-addcolumn",action:"_buttonIconAction"}}},{name:"removeRow",type:"button",handler:"_removeTableRowPlg",props:{allowToggling:{value:!1},isRemoveRow:{value:!1,action:"_isSelectedAction"},removeRowButtonTooltip:{value:n.ig.HtmlEditor.locale.removeRowButtonTitle,action:"_tooltipAction"},removeRowButtonIcon:{value:"ui-igbutton-removerow",action:"_buttonIconAction"}}},{name:"removeColumn",type:"button",handler:"_removeTableColumnPlg",props:{allowToggling:{value:!1},isRemoveColumn:{value:!1,action:"_isSelectedAction"},removeColumnButtonTooltip:{value:n.ig.HtmlEditor.locale.removeColumnButtonTitle,action:"_tooltipAction"},removeColumnButtonIcon:{value:"ui-igbutton-removecolumn",action:"_buttonIconAction"}}}]},{name:"copyPasteToolbar",displayName:n.ig.HtmlEditor.locale.defaultToolbars.copyPasteToolbar,isExpanded:!0,collapseButtonIcon:"ui-igbutton-collapse",expandButtonIcon:"ui-igbutton-expand",items:[{name:"copy",type:"button",scope:null,props:{isCopy:{value:!1,action:"_isSelectedAction"},copyButtonTooltip:{value:n.ig.HtmlEditor.locale.copyButtonTitle,action:"_tooltipAction"},copyButtonIcon:{value:"ui-igbutton-copy",action:"_buttonIconAction"}}},{name:"cut",type:"button",scope:null,props:{isCut:{value:!1,action:"_isSelectedAction"},cutButtonTooltip:{value:n.ig.HtmlEditor.locale.cutButtonTitle,action:"_tooltipAction"},cutButtonIcon:{value:"ui-igbutton-cut",action:"_buttonIconAction"}}},{name:"paste",type:"button",scope:null,props:{isPaste:{value:!1,action:"_isSelectedAction"},pasteButtonTooltip:{value:n.ig.HtmlEditor.locale.pasteButtonTitle,action:"_tooltipAction"},pasteButtonIcon:{value:"ui-igbutton-paste",action:"_buttonIconAction"}}},{name:"undo",type:"button",scope:null,props:{allowToggling:{value:!1},isUndo:{value:!1,action:"_isSelectedAction"},undoButtonTooltip:{value:n.ig.HtmlEditor.locale.undoButtonTitle,action:"_tooltipAction"},undoButtonIcon:{value:"ui-igbutton-undo",action:"_buttonIconAction"}}},{name:"redo",type:"button",scope:null,props:{allowToggling:{value:!1},isRedo:{value:!1,action:"_isSelectedAction"},redoButtonTooltip:{value:n.ig.HtmlEditor.locale.redoButtonTitle,action:"_tooltipAction"},redoButtonIcon:{value:"ui-igbutton-redo",action:"_buttonIconAction"}}}]}],NODE:new n.ig.XmlNodeType,_toolbarsActiveState:{},_isDirty:!1,_createWidget:function(){this._allToolbars=[];n.Widget.prototype._createWidget.apply(this,arguments)},_id:function(n){return this.element[0].id+n},widget:function(){return this.element},_render:function(){var t="",i=this.options.inputName;this.element.addClass(this.css.htmlEditor);t+='<div id="'+this._id("_toolbars")+'" class="'+this.css.toolbarsContainer+'"><\/div>';t+='<div id="'+this._id("_content")+'" class="'+this.css.htmlEditorContent+'">';t+='<iframe class="'+this.css.workspaceIframe+'" id="'+this._id("_editor")+'"><\/iframe>';t+='<textarea name="'+i+'" id="'+this._id("_source")+'"><\/textarea>';t+="<\/div>";n(t).appendTo(this.element);n("#"+this._id("_source")).hide();this.element.height(this.options.height);this.element.width(this.options.width)},_createWorkspace:function(t){var i='<!DOCTYPE html><html><head><title>igHtmlEditor<\/title><\/head><body contentEditable="true" spellcheck="false" style="-webkit-tap-highlight-color: rgba(255, 255, 255, 0);"><p>',r,u;document.all||(i+="<br />");i+="<\/p><\/body><\/html>";this.workspace=this.element.find("#"+this._id("_editor"))[0];this.workspace.contentWindow.document.open("text/html","replace");this.workspace.contentWindow.document.write(i);this.workspace.contentWindow.document.close();t&&t.length>0&&n(this.workspace).contents().find("body").html(t);n.ig.util.isWebKit&&(this.workspace.contentWindow.document.body.contentEditable=!0);document.all||(r=!1,u=!0,this.workspace.contentWindow.document.execCommand("styleWithCSS",r,u))},_getToolbar:function(n){return isNaN(parseInt(n,10))?typeof n=="string"?this._toolbars.find("#"+this._id("_toolbars_"+n)):void 0:this._toolbars.eq(n)},_getToolbarSettings:function(t){return n.map(this.options.toolbarSettings,function(n){if(n.name===t)return n})[0]},_getFirefoxVersion:function(){if(n.ig.util.isFF)return parseInt(window.navigator.userAgent.match(/\bFirefox\/[0-9\.]+\b/)[0].split("/").reverse()[0],10)},_create:function(){var t=this._trigger(this.events.rendering,null,{owner:this}),i=this.options.value||this.element.html();this.element.empty();t&&(this._render(),this._allToolbars=n.extend(!0,[],this.defaultToolbars.concat(this.options.customToolbars)),this._toolbars=this.element.find("#"+this._id("_toolbars")),this._initToolbars(this.options,this._toolbars,this._allToolbars),this._setActiveToolbars(),this._createWorkspace(i),this._domPathToolbar(),this._resizeWorkspace(),this._trigger(this.events.rendered,null,{owner:this}))},_resizeWorkspace:function(){var t=this.element.height(),i=n("#"+this._id("_editor"));t-=n("#"+this._id("_toolbars")).outerHeight(!0);t-=n(".ui-igbutton-viewsource").outerHeight(!0);t-=i.outerHeight(!0)-i.height();i.height(t);n("#"+this._id("_source")).height(t)},_init:function(){this._bindToToolbarEvents();this._bindWorkspaceEvents();this.sourceWindow=this.element.find("#"+this._id("_source"));this._initFontsCombos();this._initFormatsListCombo();this._initFontSizeCombo();this._analyser=new n.ig.ToolbarHelper(this.workspace.contentWindow,this._toolbars.children());var t=this;this._onSelectionChange(function(){t._initialWorkspaceFormatting()})},_initFontsCombos:function(){var n=this._getToolbar("textToolbar").igToolbar("getItem","fontFamily").addClass("ui-combo-fontfamily");n.igCombo("option",{itemTemplate:'<span style="font-family: ${value}" unselectable="on">${text}<\/span>'})},_initFormatsListCombo:function(){var n=this._getToolbar("textToolbar").igToolbar("getItem","formatsList");n.igCombo("option","itemTemplate",'<${text} unselectable="on">${value}<\/${text}>')},_initFontSizeCombo:function(){var n=this._getToolbar("textToolbar").igToolbar("getItem","fontSize");n.igCombo("option",{itemTemplate:'<span unselectable="on">${value}<\/span>'})},_setOption:function(t,i){var r=this,u=[];t!==undefined&&i!==undefined&&(t==="toolbarSettings"?n.each(i,function(t,i){n.each(i,function(n,t){n!=="name"&&(r._tbHash[i.name][n].updateProperty(n,t),u.push(r._tbHash[i.name][n]))});r._getToolbar(r._allToolbars[t].name).igToolbar("option","items",u)}):this._toolbarsActiveState[t]?this._showToolbar(this._toolbarsActiveState[t].name,i):t==="width"?this.element.width(i):t==="height"&&this.element.find("#"+this._id("_editor")).height(i),n.Widget.prototype._setOption.apply(this,arguments))},_showToolbar:function(n,t){t?this._getToolbar(n).removeClass("hidden").show():this._getToolbar(n).addClass("hidden").hide()},_setActiveToolbars:function(){var t=this,i=this.options;n.each(i,function(n,r){t._toolbarsActiveState[n]&&(t._toolbarsActiveState[n].value=r,i[n]=r)})},_initToolbars:function(t,i,r){var o,u,e,s,f,h;for(this._tbHash=[],u=0;u<r.length;u++)h=this._getToolbarSettings(r[u].name),n.extend(r[u],h),o=n('<span id="'+this._id("_toolbars")+"_"+r[u].name+'"><\/span>').appendTo(i).igToolbar(r[u]),this._tbHash[r[u].name]=o.igToolbar("getToolbarHash"),s=n.camelCase("show-"+r[u].name),this._toolbarsActiveState[s]={name:r[u].name,value:!0},this._isToolbarActive(r[u].name)||o.hide().addClass("hidden");for(u=0;u<t.toolbarSettings.length;u++)for(f in t.toolbarSettings[u])if(t.toolbarSettings[u].hasOwnProperty(f)){if(e=t.toolbarSettings[u].name,this._tbHash[e].toolbarOpts[f]!==undefined&&f!=="name"){this._tbHash[e].toolbarOpts[f]=t.toolbarSettings[u][f];continue}if(this._tbHash[e][f]===undefined||this._tbHash[e]===undefined)continue;this._tbHash[e][f].getProperty(f).value=t.toolbarSettings[u][f]}},_initialWorkspaceFormatting:function(){for(var r=this.options,i,t,u={isBold:"bold",isItalic:"italic",isUnderline:"underline",isStrikethrough:"strikethrough"},n=0;n<r.toolbarSettings.length;n++){i=r.toolbarSettings[n];for(t in i)i.hasOwnProperty(t)&&u.hasOwnProperty(t)&&this._execCommand(u[t])}},_isToolbarActive:function(n){for(var t in this._toolbarsActiveState)if(this._toolbarsActiveState.hasOwnProperty(t)&&this._toolbarsActiveState[t].name===n)return this._toolbarsActiveState[t].value},_execCommand:function(n,t){this._selectionWrapperSaved.focus();this._selectionWrapperSaved.execCommand(n.toLowerCase(),t);this._onSelectionChange()},_hideDialogs:function(){this.element.find(":ui-igLinkPropertiesDialog").igLinkPropertiesDialog("hide");this.element.find(":ui-igTablePropertiesDialog").igTablePropertiesDialog("hide");this.element.find(":ui-igImagePropertiesDialog").igImagePropertiesDialog("hide")},_bindToToolbarEvents:function(){var t=this,r=".ui-splitbutton-arrow",i={igtoolbarcollapsing:this.events.toolbarCollapsing,igtoolbarcollapsed:this.events.toolbarCollapsed,igtoolbarexpanding:this.events.toolbarExpanding,igtoolbarexpanded:this.events.toolbarExpanded};this._toolbars.delegate(":ui-igToolbar","igtoolbartoolbarbuttonclick igtoolbartoolbarcomboselected igtoolbartoolbarcustomitemclick igtoolbarcollapsing igtoolbarcollapsed igtoolbarexpanding igtoolbarexpanded",function(u,f){var o=f.scope,e=f.handler,h=n(u.originalEvent.currentTarget),s;if(delete f.scope,delete f.handler,t._hideDialogs(),h.is(r)){u.stopImmediatePropagation();return}if(i.hasOwnProperty(u.type)){t._resizeWorkspace();t._trigger(i[u.type],u,f);return}f.selectedItem=t._selectionWrapperSaved&&t._selectionWrapperSaved.getSelectedItem();s=t._trigger(t.events.actionExecuting,u,{owner:t,toolbar:f.toolbarName,actionName:f.name});s&&(e||o?e&&!o?t[e](t.workspace.contentWindow.document,f):e&&o&&e.call(f.scope,t.workspace.contentWindow.document,f):t._execCommand(f.name,f.value),t._trigger(t.events.actionExecuted,u,{owner:t,toolbar:f.toolbarName,actionName:f.name}),u.stopImmediatePropagation())})},_bindWorkspaceEvents:function(){var t=this,i={webKitIE:{CTRLZ:90,CTRLY:89},moz:{CTRLZ:90,CTRLY:89}};n(this.workspace.contentWindow.document).find("html").bind("click",function(i){var r=n(i.target);r.is("html")&&t.workspace.contentWindow.document.body.focus();t._isDirty=!0;t._hideDialogs();i.stopPropagation()}).bind("mouseup",function(){t._onSelectionChange()});n(this.workspace.contentWindow.document).bind("keydown",function(n){t._isDirty=!0;n.ctrlKey&&(n.which===i.webKitIE.CTRLZ||n.which===i.moz.CTRLZ)&&t._trigger(t.events.undo,n,{owner:t});n.ctrlKey&&(n.which===i.webKitIE.CTRLY||n.which===i.moz.CTRLY)&&t._trigger(t.events.redo,n,{owner:t});t._onSelectionChange()});n(this.workspace.contentWindow.document).bind("cut copy paste",function(n){t._trigger(n.type,n,{owner:t})});this.element.bind("ightmleditoractionexecuted",function(n,i){(i.actionName.toLowerCase()===t.events.undo||i.actionName.toLowerCase()===t.events.redo)&&(t._trigger(i.actionName.toLowerCase(),n,{owner:t}),n.stopImmediatePropagation())});n(document).click(function(i){var r=n(i.target).parents();r.is(".ui-igpopover")||r.is(".ui-igcombo-list")||t._hideDialogs()})},_viewSource:function(){var t=n(this.workspace),i=t.contents().find("body");t.is(":visible")?(i.attr("contentEditable",!1),this.sourceWindow.val(n.trim(i.html())),t.hide(),this.sourceWindow.show()):(i.attr("contentEditable",!0),i.html(n.trim(this.sourceWindow.val())),t.show(),this.sourceWindow.hide(),this.sourceWindow.val(encodeURI(this.sourceWindow.val())))},_viewSourcePlg:function(){this._viewSource()},_insertImageDialogPlg:function(t,i){var r=n("<img>",this.workspace.contentWindow.document),u=this;i.selectedItem.is("img")&&(r=i.selectedItem);this._imageDialog=n("#"+this._id("_imageDialog"));this._imageDialog.length?this._imageDialog.igImagePropertiesDialog("option","isHidden")?this._imageDialog.igImagePropertiesDialog("show",r):this._imageDialog.igImagePropertiesDialog("hide",r):this._imageDialog=n('<div id="'+this._id("_imageDialog")+'"><\/div>').appendTo(this.element).igImagePropertiesDialog({item:r,target:i.toolbarItem,applyform:function(n,t){u._selectionWrapperSaved.focus();u._selectionWrapperSaved.replaceNode(t.image)}})},_insertLinkPlg:function(t,i){var f=this,u=this._selectionWrapperSaved.getSelectedItem(),e=u[0].nodeType,r=n("<a><\/a>",this.workspace.contentWindow.document);u.parent().is("a")?r=u.parent():(e===this.NODE._Text||e===this.NODE._Element)&&r.html(this._selectionWrapperSaved.getSelectionAsText());this._insertLinkDialog?this._insertLinkDialog.igLinkPropertiesDialog("option","isHidden")?this._insertLinkDialog.igLinkPropertiesDialog("show",r):this._insertLinkDialog.igLinkPropertiesDialog("hide",r):this._insertLinkDialog=n('<div id="'+this._id("_linkDialog")+'"><\/div>').appendTo(this.element).igLinkPropertiesDialog({item:r,target:i.toolbarItem,applyform:function(n,t){f._selectionWrapperSaved.focus();f._selectionWrapperSaved.replaceNode(t.anchor)}})},_fontNamePlg:function(n,t){this._execCommand("fontname",t.value)},_fontSizePlg:function(n,t){this._execCommand("fontsize",t.value)},_formatsListPlg:function(n,t){this._execCommand("formatBlock","<"+t.value+">")},_insertTablePlg:function(t,i){var r=n("<table><\/table>",this.workspace.contentWindow.document),u=this;if(i.selectedItem.is("table")&&(r=i.selectedItem),!this.insertTableDialog){this.insertTableDialog=n("<div id='"+this._id("_tableDialog")+"'<\/div>").appendTo(this.element).igTablePropertiesDialog({item:r,target:i.toolbarItem,applyform:function(n,t){u._selectionWrapperSaved.insertTable(t.table)}});return}if(this.insertTableDialog.igTablePropertiesDialog("option","isHidden")){this.insertTableDialog.igTablePropertiesDialog("show",r);return}this.insertTableDialog.igTablePropertiesDialog("option","isHidden")||this.insertTableDialog.igTablePropertiesDialog("hide")},_addTableRowPlg:function(){var n=this._selectionWrapperSaved.getSelectedItem();n.is("table")?n.tableManipulator("addRow"):n.is("td")&&n.parents("table").first().tableManipulator("addRow",n.parent().index())},_removeTableRowPlg:function(){var n=this._selectionWrapperSaved.getSelectedItem();n.is("table")?n.tableManipulator("removeRow"):n.is("td")&&n.parents("table").first().tableManipulator("removeRow",n.parent().index())},_addTableColumnPlg:function(){var n=this._selectionWrapperSaved.getSelectedItem();n.is("table")?n.tableManipulator("addColumn"):n.is("td")&&n.parents("table").first().tableManipulator("addColumn",n.index())},_removeTableColumnPlg:function(){var n=this._selectionWrapperSaved.getSelectedItem();n.is("table")?n.tableManipulator("removeColumn"):n.is("td")&&n.parents("table").first().tableManipulator("removeColumn",n.index())},_fontColorPlg:function(n,t){this._execCommand("forecolor",t.value)},_fontBackgroundColorPlg:function(n,t){var i=this._getFirefoxVersion()?"hilitecolor":"backcolor";this._execCommand(i,t.value)},_domPathToolbar:function(){var t=this,i="#"+this._id("_toolbars_insertObjectToolbar_item_"),r=i+"addRow",u=i+"addColumn",f=i+"removeRow",e=i+"removeColumn",o=r+", "+u+", "+f+", "+e;this._viewSourceBtn=n('<div class="ui-igbutton-viewsource"><\/div>').appendTo(this.element).igButton({labelText:"&nbsp;",title:n.ig.HtmlEditor.locale.viewSourceButtonTitle,icons:{primary:"ui-igbutton-viewsource-icon"},onlyIcons:!0,click:function(){t._viewSourcePlg();t._domPathToolbar.igPathFinder("option","disabled")?(t._domPathToolbar.igPathFinder("option","disabled",!1),t._toolbars.find(":ui-igToolbarButton").not(o).igToolbarButton("option","disabled",!1).end().end().find(":ui-igCombo").igCombo("enable"),t._analyser._disableUnsupportedItems(),t._onSelectionChange()):(t._domPathToolbar.igPathFinder("option","disabled",!0),t._toolbars.find(":ui-igToolbarButton").igToolbarButton("option","disabled",!0).end().find(":ui-igCombo").igCombo("disable"))}});this._domPathToolbar=n('<div id="'+this._id("_domPathToolbar")+'"><\/div>').appendTo(this.element).igPathFinder({click:function(n,i){var r=t._selectionWrapperSaved;(t.workspace.contentWindow.document.body.focus(),t._domPathToolbar.igPathFinder("option","disabled"))||(n.preventDefault(),i.item.is("html")?r.select(i.item.children("body")):i.item.is("body")?r.select(i.item):r.select(i.item))}})},_cutPlg:function(){this._execCommand("cut")},_copyPlg:function(){this._execCommand("copy")},_pastePlg:function(){this._execCommand("paste")},_onSelectionChange:function(t){var i=this,r,u=n(this.workspace).contents().find("body"),f=t||function(){var t=this.getSelectedItem();t&&(t.is("p")||t.is(":header"))&&t.children("span").length>0?t=t.children("span").first():t&&(t.is("p")||t.is(":header"))&&t.children("font").length>0&&(t=t.children("font").first());t[0].nodeType===i.NODE._Text&&(t=t.parent());i._analyser.analyse(t);t.length&&i._domPathToolbar.igPathFinder("option","items",n.merge(t,t.parents()))};r=new n.ig.SelectionWrapper(this.workspace.contentWindow,function(){i._selectionWrapperSaved=this;i.sourceWindow.val(encodeURI(u.html()));f.call(this)})},_destroyPopovers:function(){var t=this.element[0];n(':data("igPopover")').each(function(){n.contains(t,this)&&n(this).igPopover("destroy")})},getContent:function(t){return t==="text"?n(this.workspace).contents().find("body").text():t==="html"?n(this.workspace).contents().find("body").html():void 0},setContent:function(t,i){i==="text"?n(this.workspace).contents().find("body").text(t):i==="html"&&n(this.workspace).contents().find("body").html(t);this.sourceWindow.val(encodeURI(t))},destroy:function(){n.Widget.prototype.destroy.apply(this,arguments);n(this.workspace.contentWindow).undelegate();this._destroyPopovers();this._viewSourceBtn.igButton("destroy");this.element.removeClass(this.css.htmlEditor).find("#"+this._id("_content")).removeClass(this.css.htmlEditorContent).end().find("#"+this._id("_domPathToolbar")).removeClass(this.css.pathFinder).end().find("#"+this._id("_toolbars")).removeClass(this.css.toolbarsContainer).end().find(":ui-igToolbar").igToolbar("destroy").end().empty()},executeAction:function(n,t){this._selectionWrapperSaved.execCommand(n.toLowerCase(),t);this._onSelectionChange()},isDirty:function(){return this._isDirty},contentWindow:function(){return this.workspace.contentWindow},contentDocument:function(){return this.contentWindow().document},contentEditable:function(){return this.contentDocument().body},selection:function(){return this._selectionWrapperSaved._getSelection()},range:function(){return this._selectionWrapperSaved._getRange()},insertAtCaret:function(t){var r,i;if(n.ig.util.isDomElement(t)&&(t=n(t)),t instanceof n)t=n("<div />").append(t).html();else if(typeof t!="string")return;r=n(t,this._selectionWrapperSaved._document)[0];i=this.range();this._selectionWrapperSaved._isIeOld?i.pasteHTML(t):i.insertNode(r)}});n.widget("ui.igPathFinder",{options:{items:null},css:{button:"ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-igbutton ui-widget-content",buttonLabel:"ui-button-text",stateDefault:"ui-state-default",firstButton:"ui-first-button",overflowMarker:"ui-igpathfinder-overflowMarker"},_create:function(){this._addStyles()},_addStyles:function(){this.element.addClass("ui-igPathFinder")},_setOption:function(t,i){n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"items":this._updateToolbar();break;case"disabled":this.element.find("button").attr("disabled",i).attr("aria-disabled",i)}},_addOverflowMarker:function(){var t=n("<div>...<\/div>").addClass(this.css.overflowMarker).addClass(this.css.stateDefault);t.prependTo(this.element)},_updateToolbar:function(){var r,f,e,i,u=this,t=this.options,o=[],s="",h=n(".ui-igbutton-viewsource"),c=20,l=h.parent().width()-h.outerWidth(!0)-c,a=!1;if(t.items.length){for(t.items.each(function(n,t){s='<div aria-disabled="false" style="z-index:'+n+'" class="'+u.css.button+'"><span class="'+u.css.buttonLabel+'">'+t.nodeName+"<\/span><\/div>";o.push(s)}),this.element.empty(),f=n(t.items.toArray().reverse()),i=n(o.reverse().join("")),r=i.length-1;r>=0&&!a;r--)i.removeClass(this.css.firstButton),e=i.eq(r).addClass(this.css.firstButton).prependTo(this.element),r===0&&(l+=c),this.element.outerWidth(!0)>l&&(e.remove(),i.eq(r+1).addClass(this.css.firstButton),this._addOverflowMarker(),a=!0);i.attr("disabled",t.disabled).attr("aria-disabled",t.disabled).mouseover(function(){t.disabled||n(this).addClass("ui-state-hover")}).mouseleave(function(){t.disabled||n(this).removeClass("ui-state-hover")}).click(function(r){t.disabled||(n(this).siblings(".ui-state-active").removeClass("ui-state-active"),n(this).addClass("ui-state-active"),u._trigger("click",r,{item:f.eq(i.index(this))}))})}}});n.widget("ui.igHtmlEditorPopover",{options:{item:null,target:null,isHidden:!0},css:{igHtmlEditorPropertiesDialog:"ui-ightmleditor-dialog",igHtmlEditorPropertiesDialogContainer:"ui-ightmleditor-dialog-container"},events:{apply:"applyform",cancel:"cancelform",show:"show",hide:"hide"},_id:function(n){return this.element[0].id+n},_create:function(){this.element.igPopover({closeOnBlur:!1,position:"balanced",direction:"bottom",renderCloseButton:!1,showOn:null});this.poContent=this.element.igPopover("container");this._createForm()},_init:function(){this._item=this.options.item;this.poContent.addClass(this.css.igHtmlEditorPropertiesDialog);this.element.addClass(this.css.igHtmlEditorPropertiesDialogContainer);this._attachFormEvents();this.show(this._item)},_createForm:function(){},_attachFormEvents:function(){},_dataBind:function(){},show:function(n){this._item=n;this._dataBind(n);this.options.isHidden=!1;this.element.igPopover("show",this.options.target);this._trigger(this.events.show)},hide:function(){this.options.isHidden=!0;this.options.target.igToolbarButton("option","isSelected")&&this.options.target.igToolbarButton("toggle");this.element.igPopover("hide");this._trigger(this.events.hide)}});n.widget("ui.igLinkPropertiesDialog",n.ui.igHtmlEditorPopover,{_txtUrl:"",_cbTarget:"",_attachFormEvents:function(){var t=this;this.poContent.find("#"+this._id("_cmbOpenIn")).igCombo({selectedItems:[{index:0}],enableClearButton:!1,width:155});this.poContent.find("#"+this._id("_btnCancel")).igButton({click:function(){t.hide()}});this.poContent.find("#"+this._id("_btnApply")).igButton({click:function(n){n.stopImmediatePropagation();t._item.attr({href:t._txtUrl.val(),target:t._cbTarget.val()}).html(t._displayText.val().length>0?t._displayText.val():t._txtUrl.val());t._trigger(t.events.apply,n,{anchor:t._item});t.hide()}});this.poContent.bind("keypress",function(i){i.keyCode===n.ui.keyCode.ESCAPE&&t.hide()});this.element.bind("igpopovershown",function(){t.poContent.find("#"+t._id("_linkHref")).focus()})},_createForm:function(){var t="";t+='<div><ol class="layoutList"><li><label for="'+this._id("_linkHref")+'">'+n.ig.HtmlEditor.locale.linkNavigateToUrlDialogText+'<\/label><input autocomplete="off" id="'+this._id("_linkHref")+'" name="href" type="text" value="" /><\/li><li><label for="'+this._id("_linkDisplayText")+'">'+n.ig.HtmlEditor.locale.linkDisplayTextDialogText+'<\/label><input autocomplete="off" id="'+this._id("_linkDisplayText")+'" name="href" type="text" value="" /><\/li><li><label for="'+this._id("_cmbOpenIn")+'">'+n.ig.HtmlEditor.locale.linkOpenInDialogText+'<\/label><select id="'+this._id("_cmbOpenIn")+'" name="target"><option value="_blank">'+n.ig.HtmlEditor.locale.linkTargetNewWindowDialogText+'<\/option><option value="_self">'+n.ig.HtmlEditor.locale.linkTargetSameWindowDialogText+'<\/option><option value="_parent">'+n.ig.HtmlEditor.locale.linkTargetParentWindowDialogText+'<\/option><option value="_top">'+n.ig.HtmlEditor.locale.linkTargetTopmostWindowDialogText+'<\/option><\/select><\/li><li style="text-align:right"><button aria-disabled="false" id="'+this._id("_btnApply")+'" name="insertLink" role="button" title="'+n.ig.HtmlEditor.locale.applyButtonTitle+'" type="button">'+n.ig.HtmlEditor.locale.applyButtonTitle+'<\/button><button aria-disabled="false" id="'+this._id("_btnCancel")+'" role="button" title="'+n.ig.HtmlEditor.locale.cancelButtonTitle+'" type="button">'+n.ig.HtmlEditor.locale.cancelButtonTitle+"<\/button><\/li><\/ol><\/div>";n(t).appendTo(this.poContent)},_dataBind:function(n){this._txtUrl=this.poContent.find("#"+this._id("_linkHref")).val(n.attr("href"));this._cbTarget=this.poContent.find("#"+this._id("_cmbOpenIn")).val(n.attr("target"));this._displayText=this.poContent.find("#"+this._id("_linkDisplayText")).val(n.html())}});n.widget("ui.igTablePropertiesDialog",n.ui.igHtmlEditorPopover,{_init:function(){this.rowsNumField=this.element.find("#"+this._id("_tableRows"));this.columnsNumField=this.element.find("#"+this._id("_tableColumns"));n.ui.igHtmlEditorPopover.prototype._init.apply(this,arguments)},_createForm:function(){var t='<div><ol class="layoutList"><li><\/li><li><div class="ui-igtablepropertiesdialog-cols-rows-num"><input type="hidden" id="'+this._id("_tableRows")+'" name="tableRows" readonly="readonly" value=""><input type="hidden" id="'+this._id("_tableColumns")+'" name="tableColumns" readonly="readonly" value=""><\/div><\/li><\/ol><\/div>';n(t).appendTo(this.poContent);this._sampleTable=n('<table "'+this._id("_tableModel")+'" class="ui-igtablepropertiesdialog-sample-table"><\/table>').tableManipulator({rows:8,columns:6}).appendTo(this.poContent.find(".layoutList li:first"))},_attachFormEvents:function(){var i=this.poContent.find("table"),r=i.find("td").addClass("ui-state-default"),u=i.find("tr"),t=this;i.delegate("td","mouseover",function(i){var s=n(i.target),e=s.parent().index()+1,o=n(this).index()+1,f;for(r.removeClass("ui-state-hover"),f=0;f<e;f++)n(u.get(f)).find("td:lt("+o+")").addClass("ui-state-hover");t.rowsNumField.val(e);t.columnsNumField.val(o)});i.delegate("td","click",function(i){var r=n(i.target),u=r.parent().index()+1,f=n(this).index()+1;t._item.tableManipulator({rows:u,columns:f,addSpacingChar:!0});t._trigger(t.events.apply,i,{table:t._item.attr("border",1)});t.hide()});i.bind("mouseout",function(){r.removeClass("ui-state-hover");t.rowsNumField.val(null);t.columnsNumField.val(null)})},_dataBind:function(){this.rowsNumField.val();this.columnsNumField.val()}});n.widget("ui.igImagePropertiesDialog",n.ui.igHtmlEditorPopover,{_init:function(){this._imgSrcFld=this.poContent.find("#"+this._id("_imgSrc"));this._imgAltFld=this.poContent.find("#"+this._id("_imgAlt"));n.ui.igHtmlEditorPopover.prototype._init.apply(this,arguments)},_createForm:function(){var t="";t+='<div class="'+this.css.igImagePropertiesDialogContent+'">';t+="\t<div>";t+='\t\t<ol class="layoutList">';t+="\t\t\t<li>";t+='\t\t\t\t<label for="'+this._id("_imgSrc")+'">'+n.ig.HtmlEditor.locale.imageUrlDialogText+"<\/label>";t+='\t\t\t\t<input autocomplete="off" id="'+this._id("_imgSrc")+'" name="src" type="text" value="" />';t+="\t\t\t<\/li>";t+="\t\t\t<li>";t+='\t\t\t\t<label for="'+this._id("_imgAlt")+'">'+n.ig.HtmlEditor.locale.imageAlternativeTextDialogText+"<\/label>";t+='\t\t\t\t<input autocomplete="off" id="'+this._id("_imgAlt")+'" name="altText" type="text" value="" />';t+="\t\t\t<\/li>";t+='\t\t\t<li style="text-align:right">';t+='\t\t\t\t<button aria-disabled="false" id="'+this._id("_btnApply")+'" name="insertLink" role="button" title="'+n.ig.HtmlEditor.locale.applyButtonTitle+'" type="button">'+n.ig.HtmlEditor.locale.applyButtonTitle+"<\/button>";t+='\t\t\t\t<button aria-disabled="false" id="'+this._id("_btnCancel")+'" role="button" title="'+n.ig.HtmlEditor.locale.cancelButtonTitle+'" type="button">'+n.ig.HtmlEditor.locale.cancelButtonTitle+"<\/button>";t+="\t\t\t<\/li>";t+="\t\t<\/ol>";t+="\t<\/div>";t+="<\/div>";this.poContent.append(t)},_attachFormEvents:function(){var n=this;this.poContent.find("#"+this._id("_btnApply")).igButton({click:function(t){n._item.attr({src:n._imgSrcFld.val(),alt:n._imgAltFld.val()});n._trigger(n.events.apply,t,{image:n._item});n.hide()}}).end().find("#"+this._id("_btnCancel")).igButton({click:function(t){n._trigger(n.events.cancel,t);n.hide()}})},_dataBind:function(n){this._imgSrcFld.val(n.attr("src"));this._imgAltFld.val(n.attr("alt"))}});var r,f=0,e=0,t={document:document,rows:0,columns:0,addSpacingChar:!1},u="",i={init:function(o){return this.each(function(){var s;(n.extend(t,o),this.nodeName.toLowerCase()==="table")&&(t.addSpacingChar&&(u="&nbsp;"),r=n(this),s=i.getTableRows(),f=t.rows&&t.rows>0?t.rows:s.length,t.columns&&t.columns>0?e=t.columns:s[0]&&(e=s[0].cells.length),r.children().length||i.create())})},create:function(){var s,i,o;for(r.empty(),i=0;i<f;i++)for(s=n("<tr><\/tr>",t.document).appendTo(r),o=0;o<e;o++)n("<td>"+u+"<\/td>",t.document).appendTo(s)},addRow:function(f){var e=n("<tr><\/tr>",t.document),o;for(f?e.insertAfter(i.getTableRows().eq(f)):e.appendTo(r),o=0;o<i.getColumnsNum();o++)n("<td>"+u+"<\/td>",t.document).appendTo(e);return e},removeRow:function(n){var t=i.getTableRows();return n?t.eq(n).remove():t.last().remove()},addColumn:function(r){var f=[];return i.getTableRows().each(function(i,e){var o=n(e),s=o.children("td"),h=n("<td>"+u+"<\/td>",t.document);if(r&&s.length)return f.push(h.insertAfter(s.eq(r))[0]),!0;f.push(h.appendTo(o)[0])}),n([]).pushStack(f)},removeColumn:function(t){var r=[];return i.getTableRows().each(function(i,u){var f=n(u);if(t)return r.push(f.children("td").eq(t).remove()),!0;r.push(f.children("td:last").remove())}),n([]).pushStack(r)},getRowsNum:function(){return i.getTableRows().length},getColumnsNum:function(){return i.getTableCols().length},getTableRows:function(){return r.children("tbody").children("tr")},getTableCols:function(){return r.children("tbody").children("tr").first().children("td")}};n.fn.tableManipulator=function(t){if(i[t])return this!==r[0]&&(r=n(this)),i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return i.init.apply(this,arguments);n.error("Method "+t+" does not exist on jQuery.tableManipulator")};n.ig.SelectionWrapper=n.ig.SelectionWrapper||Class.extend({_selection:null,_range:null,_isIeOld:!1,_document:null,_commands:{insertunorderedlist:{name:"_insertList",browsers:null,args:["insertunorderedlist"]},insertorderedlist:{name:"_insertList",browsers:null,args:["insertorderedlist"]}},_css:{larger:"ui-ightmleditor-larger",smaller:"ui-ightmleditor-smaller"},NODE:new n.ig.XmlNodeType,init:function(t,i){var r=this;this._window=t;this._document=this._window.document;this._document.getSelection||(this._isIeOld=!0);this._isIeOld?(this.focus(),this._selection=this._document.selection,this._window.setTimeout(function(){r._range=r._selection.createRange();n.isFunction(i)&&i.call(r)},50)):(this._selection=this._window.getSelection(),this._window.setTimeout(function(){r._range=r._getSelection().rangeCount===0?r._document.createRange():r._selection.getRangeAt(0);n.isFunction(i)&&i.call(r)},50))},_getSelection:function(){return this._selection},_getRange:function(){return this._range},_isCommandSupportedByBrowser:function(t){var r,i;if(t!==null&&this._commands.hasOwnProperty(t.toLowerCase())&&this._commands[t].browsers!==null)for(r=this._commands[t].browsers,i=0;i<r.length;i++)if(n.browser&&n.browser.hasOwnProperty(r[i])||!n.browser&&(n.ig.util.isIE||n.ig.util.isSafari||n.ig.util.isChrome))return!0},surroundContents:function(t){var i=this._getRange();return this._isIeOld?i.pasteHTML(t.html(i.text).get(0).outerHTML):this._surroundContents(n(i.commonAncestorContainer),n(i.startContainer),n(i.endContainer),t),t},getSelectedItem:function(){var t=this._getRange(),i=n(t.commonAncestorContainer);return this._isIeOld?t.parentElement!==undefined?n(t.parentElement()):t.commonParentElement!==undefined?n(t.commonParentElement()):void 0:t.collapsed&&t.endContainer.nodeType===this.NODE._Text?i.parent().is("img")||i.parent().is("td")?i.parent():n(t.startContainer):t.collapsed?n(t.commonAncestorContainer):t.collapsed&&t.endContainer.nodeType===this.NODE._Element?n(t.commonAncestorContainer.childNodes[t.endOffset-t.startOffset]):n(t.commonAncestorContainer)},getSelectionAsText:function(){return this._getRange().text!==undefined?this._getRange().text:this._getRange().toString()},select:function(n){var t=n||this.getSelectedItem(),i;this._isIeOld?(i=this._document.body.createTextRange(),t.length===1&&i.moveToElementText(t[0]),i.select()):(this._range.selectNodeContents(t[0]),this._selection.removeAllRanges(),this._selection.addRange(this._range))},insertElement:function(n){this._isIeOld?this._getRange().pasteHTML(n.get(0).outerHTML):this._getRange().insertNode(n.get(0))},applyStyle:function(){},execCommand:function(t,i){var r=this._getRange(),f=this._commands[t]?this[this._commands[t].name]:null,h=this._commands[t]?this._commands[t].args:null,c=this._commands[t]?this._commands[t].browsers:null,u,o,e,l=this._isCommandSupportedByBrowser(t),s=!1;if(this._isIeOld)r.select(),r.execCommand(t,!1,i);else{if(e=n("<p><br /><\/p>",this._document),this._selection.isCollapsed&&r.collapsed){if(n(r.startContainer).is("body")?(u=n(r.startContainer).find(":first"),u.length||(u=n(r.startContainer)),r.selectNodeContents(u[0])):r.startContainer.nodeType===this.NODE._Document?(u=n(r.startContainer.body).find(":first"),u.length||(u=n(r.startContainer.body)),r.selectNodeContents(u[0])):r.startContainer.nodeType===this.NODE._Text?(this._updateSelection(r),this._document.execCommand(t,!1,i),s=!0):(u=n(r.startContainer),r.selectNodeContents(u[0])),s)return;u&&u.is("br")&&o&&o.is("br")&&(u.replaceWith(e),r.selectNodeContents(e[0]),this._updateSelection(r))}(n.ig.util.isIE&&n.ig.util.browserVersion>=9||n.ig.util.isOpera)&&this._updateSelection(r);n.isFunction(f)&&c===null?f.call(this,t,i):n.isFunction(f)&&l?f.apply(this,h):this._document.execCommand(t,!1,i)}},_insertList:function(t,i){var r=this,u;this._document.execCommand(t,!1,i);this._document.queryCommandState(t)||this._selection.anchorNode&&this._selection.anchorNode.nodeType===this.NODE._Text&&n(this._selection.focusNode).is("body")&&(u=n(this._selection.focusNode).contents().filter(function(){return n(this).is("br")?(n(this).remove(),!1):this.nodeType===r.NODE._Text}))},_getTextNodesOnlyCallback:function(){return this.nodeType===this.NODE._Text},_wrapPartialString:function(t,i,r,u){var f=[];return f.push(this._document.createTextNode(t.slice(0,i))),f.push(u.text(t.substring(i,r))[0]),f.push(this._document.createTextNode(t.slice(r))),n(f)},_updateSelection:function(n){this._selection.removeAllRanges();this._selection.addRange(n)},_surroundContents:function(n,t,i,r){var a=this,h,c,u,f,e,l,o=this._getSelection(),s=this._getRange(),v;if(t[0]===i[0])return s.surroundContents(r.get(0)),r;h=s.startOffset;c=s.endOffset;u=this._document.createRange();u.setStart(t.get(0),h);u.setEnd(t.get(0),t.text().length);u.surroundContents(r.clone().get(0));o.addRange(u);e=this._getLastParentUntil(t,n);l=this._getLastParentUntil(i,n);v=e.siblings();e.siblings().each(function(n,t){if(e[0]!==l[0]){var i=a._document.createRange();i.setStartBefore(t);i.setEndAfter(t);i.surroundContents(r.clone().get(0));o.addRange(i)}});f=this._document.createRange();f.setStart(i.get(0),0);f.setEnd(i.get(0),c);f.surroundContents(r.clone().get(0));o.addRange(f)},_getLastParentUntil:function(n,t){while(n.parent().length){if(n.parent()[0]===t[0])return n;n=n.parent()}},replaceNode:function(n){var t=this._getRange();t.startOffset!==t.endOffset&&t.deleteContents();t.insertNode!==undefined?t.insertNode(n[0]):t.pasteHTML!==undefined&&t.pasteHTML(n[0].outerHTML)},insertTable:function(t){var i=this.getSelectedItem(),r=n("<br>",this._document);i[0].nodeType===this.NODE._Document?(this._range.selectNodeContents(i.find("body > p:first")[0]),this._range.insertNode(t[0])):i.is("td")?t.appendTo(i):i.is("table")?i.replaceWith(t):i.is("br")?i.replaceWith(t):this._range.insertNode!==undefined?this._range.insertNode(t[0]):this._range.pasteHTML!==undefined&&(this._range.select(),this._range.pasteHTML(t[0].outerHTML));this._range.selectNodeContents!==undefined&&this._range.selectNodeContents(r.insertAfter(t)[0])},focus:function(){var t=n(this._document.body).find(":not(br):first");if(this._isIeOld){this._document.body.focus();return}if(this._range.startContainer.nodeType===this.NODE._Document||n(this._range.startContainer).is("body")){if(this._range.startContainer.nodeType===this.NODE._Text){this._document.body.focus();return}t.length!==0&&(this._range.setStart(t[0],0),this._range.setEnd(t[0],0),this._document.body.focus())}}});n.ig.ToolbarHelper=n.ig.ToolbarHelper||Class.extend({_toolbarsItemsLocation:{textToolbar:{name:"textToolbar",bold:{name:"bold"},italic:{name:"Italic"},underline:{name:"Underline"},strikethrough:{name:"Strikethrough"},fontFamily:{name:"fontFamily"},fontSize:{name:"fontSize"},formatsList:{name:"formatsList"}},formattingToolbar:{name:"formattingToolbar",justifyleft:{name:"justifyleft"},justifycenter:{name:"justifycenter"},justifyright:{name:"justifyright"},justifyfull:{name:"justifyfull"},bullets:{name:"bullets"},indent:{name:"indent"},outdent:{name:"outdent"},textColor:{name:"textColor"},backgroundTextColor:{name:"backgroundTextColor"}},insertObjectToolbar:{name:"insertObjectToolbar",image:{name:"image"},link:{name:"link"},table:{name:"table"},addRow:{name:"addRow"},addColumn:{name:"addColumn"},removeRow:{name:"removeRow"},removeColumn:{name:"removeColumn"}},copyPasteToolbar:{name:"copyPasteToolbar",copy:{name:"copy"},cut:{name:"cut"},paste:{name:"paste"},undo:{name:"undo"},redo:{name:"redo"}}},init:function(t,i){this._toolbars={};this._w=t;this._d=t.document;var r=this;i.each(function(t,i){var u=n(i).igToolbar("option","name");r._toolbars[u]=n(i)});this._initAlignButtons(i);this._disableUnsupportedItems();this._disableTableControls(!0)},_initAlignButtons:function(t){var i=this._toolbars.formattingToolbar,r={justifyleft:i.igToolbar("getItem","justifyleft"),justifycenter:i.igToolbar("getItem","justifycenter"),justifyright:i.igToolbar("getItem","justifyright"),justifyfull:i.igToolbar("getItem","justifyfull")};t.bind("igtoolbartoolbarbuttonclick",function(t,i){r.hasOwnProperty(i.name)&&n.each(r,function(n,t){if(n!==i.name&&t.igToolbarButton("option","isSelected")){t.igToolbarButton("toggle");return}})})},_disableUnsupportedItems:function(){var t=this._toolbars.copyPasteToolbar;n.ig.util.isIE||(t.igToolbar("disableItem","cut",!0),t.igToolbar("disableItem","copy",!0),t.igToolbar("disableItem","paste",!0))},_disableTableControls:function(n){var t=this._toolbars.insertObjectToolbar;!n&&this._isTableControlsDisabled?(t.igToolbar("disableItem","addColumn",!1),t.igToolbar("disableItem","removeColumn",!1),t.igToolbar("disableItem","addRow",!1),t.igToolbar("disableItem","removeRow",!1),this._isTableControlsDisabled=!1):n&&!this._isTableControlsDisabled&&(t.igToolbar("disableItem","addColumn",!0),t.igToolbar("disableItem","removeColumn",!0),t.igToolbar("disableItem","addRow",!0),t.igToolbar("disableItem","removeRow",!0),this._isTableControlsDisabled=!0)},_callbackMap:{_isBold:"_onBold",_isItalic:"_onItalic",_isUnderlined:"_onUnderlined",_isLineThrough:"_onLineThrough",_isJustifyCenter:"_onAlign",_isJustifyFull:"_onAlign",_isJustifyLeft:"_onAlign",_isJustifyRight:"_onAlign",_isOrderedList:"_onList",_isUnorderedList:"_onList",_hasFontName:"_onFontName",_hasFontSize:"_onFontSize",_isTable:"_onTable"},analyse:function(t){var i=this;this._resetToolbars();this._computedStyles=t[0].nodeType===9?this._w.getComputedStyle&&this._w.getComputedStyle(this._d.body)||this._d.body.currentStyle:this._w.getComputedStyle&&this._w.getComputedStyle(t[0])||t[0].currentStyle;t.is(":header")&&this._onHeader(t);n.each(this._callbackMap,function(r,u){var f=i[r](t);n.isFunction(i[r])&&f&&n.isFunction(i[u])&&i[u](t,f)});t.is("table")||t.is("td")||this._disableTableControls(!0)},_isBold:function(){return this._d.queryCommandState("bold")||this._computedStyles.fontWeight>=700},_isItalic:function(){return this._d.queryCommandState("italic")||this._computedStyles.fontStyle.toLowerCase()==="italic"},_isUnderlined:function(){return this._d.queryCommandState("underline")||this._computedStyles.textDecoration.toLowerCase().indexOf("underline")!==-1},_isLineThrough:function(){return this._d.queryCommandState("strikethrough")||this._computedStyles.textDecoration.toLowerCase().indexOf("line-through")!==-1},_isJustifyCenter:function(){if(this._d.queryCommandState("justifycenter"))return"justifycenter"},_isJustifyFull:function(){if(this._d.queryCommandState("justifyfull"))return"justifyfull"},_isJustifyLeft:function(){if(this._d.queryCommandState("justifyleft"))return"justifyleft"},_isJustifyRight:function(){if(this._d.queryCommandState("justifyright"))return"justifyright"},_isOrderedList:function(){if(this._d.queryCommandState("insertorderedlist"))return"InsertOrderedList"},_isUnorderedList:function(){if(this._d.queryCommandState("insertunorderedlist"))return"InsertUnorderedList"},_isTable:function(n){if(n.is("table")||n.is("td"))return!0},_checkParents:function(n,t){while(n.parent()){if(n.parent().is(t))return!0;if(n.is("body"))return;n=n.parent()}},_hasFontName:function(){var n=this._getFontFamily();return n==="serif"&&(n="Times New Roman"),n},_getFontFamily:function(){return this._computedStyles.fontFamily},_hasFontSize:function(){return this._computedStyles.fontSize},_onBold:function(){this._toolbars.textToolbar.igToolbar("getItem","Bold").igToolbarButton("toggle")},_onItalic:function(){this._toolbars.textToolbar.igToolbar("getItem","Italic").igToolbarButton("toggle")},_onUnderlined:function(){this._toolbars.textToolbar.igToolbar("getItem","Underline").igToolbarButton("toggle")},_onLineThrough:function(){this._toolbars.textToolbar.igToolbar("getItem","Strikethrough").igToolbarButton("toggle")},_onAlign:function(n,t){this._toolbars.formattingToolbar.igToolbar("getItem",t).igToolbarButton("toggle")},_onList:function(n,t){this._toolbars.formattingToolbar.igToolbar("getItem",t).igToolbarButton("toggle")},_onFontName:function(t,i){var r=this._toolbars.textToolbar.igToolbar("getItem","fontFamily");i=i.replace(/'|"/g,"");this._setComboValue(r,n.ig.HtmlEditor.locale.fontNames[/^win/gi.test(navigator.platform)?"win":"mac"],i)},_onFontSize:function(){var t=this._d.queryCommandValue("fontsize")||{"11px":1,"13px":3,"16px":4,"19px":5,"18px":7,"24px":7}[this._computedStyles.fontSize],i=t?t.toString():"",r=this._toolbars.textToolbar.igToolbar("getItem","fontSize");this._setComboValue(r,n.ig.HtmlEditor.locale.fontSizes,i)},_onHeader:function(t){var i=this._toolbars.textToolbar.igToolbar("getItem","formatsList");this._setComboValue(i,n.ig.HtmlEditor.locale.formatsList,t[0].nodeName.toLowerCase())},_onTable:function(){this._disableTableControls(!1)},_setComboValue:function(n,t,i,r){var u,f=r||"text",o=t[n.igCombo("selectedIndex")][f],e;if(i!==o)for(u=0;u<t.length;u++)if(e=t[u][f],i===e){n.igCombo("selectedIndex",u);break}},_resetToolbars:function(){n.each(this._toolbars,function(t,i){n(i).igToolbar("deactivateAll")})}});n.extend(n.ui.igHtmlEditor,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igVideoPlayer",{_const:{VOLUME_MAX:1,VOLUME_MIN:0,VIDEO_STATE_TIMEOUT:200,SCROLL_TIMEOUT:100,COMMERCIAL_SEEK_DELTA:2,SLIDE_SEEK_TIMEOUT:500,HREF:"#"},_id:function(n){return this.element[0].id+n},options:{sources:[],width:null,height:null,posterUrl:"",preload:!1,autoplay:!1,autohide:!0,volumeAutohideDelay:1e3,centerButtonHideDelay:1200,loop:!1,browserControls:!1,fullscreen:!1,volume:.5,muted:!1,title:"",showSeekTime:!0,progressLabelFormat:"${currentTime} / ${duration}",bookmarks:[{time:0,title:"",disabled:!1}],relatedVideos:[{imageUrl:"",title:"",width:null,height:null,link:"",sources:[],css:null}],banners:[{imageUrl:"",times:[],closeBanner:!0,animate:!0,visible:!0,duration:1e3,autohide:!1,hidedelay:1e4,link:null,width:null,height:null,css:null}],commercials:{linkedCommercials:[{sources:[],startTime:10,link:"",title:""}],embeddedCommercials:[{startTime:20,endTime:30,link:"",title:""}],alwaysPlayCommercials:!1,showBookmarks:!0,adMessage:{animate:!0,autoHide:!0,hideDelay:2e4,animationDuration:1e3}}},events:{ended:"ended",playing:"playing",paused:"paused",buffering:"buffering",progress:"progress",waiting:"waiting",bookmarkHit:"bookmarkHit",bookmarkClick:"bookmarkClick",enterFullScreen:"enterFullScreen",exitFullScreen:"exitFullScreen",relatedVideoClick:"relatedVideoClick",bannerVisible:"bannerVisible",bannerHidden:"bannerHidden",bannerClick:"bannerClick",browserNotSupported:"browserNotSupported"},css:{baseClasses:"ui-widget ui-igplayer",controlsClass:"ui-widget-header ui-igplayer-controls ui-igplayer-grid ui-igplayer-autohide ui-corner-all",controlsHideClass:"ui-igplayer-controls-hide",videoClass:"ui-igplayer-video",unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix",activeVideoClass:"ui-igplayer-active-video",playButtonClass:"ui-igplayer-playbutton",progressBarClass:"ui-igplayer-progressbar ui-corner-all",fullScreenClass:"ui-igplayer-fullscreen-button",fullScreenIconClass:"ui-icon ui-igbutton-icon ui-icon-arrow-4-diag",volumeControlClass:"ui-igplayer-volumecontrol",volumeSliderClass:"ui-igplayer-volumeslider",progressLabelClass:"ui-igplayer-progresslabel",bookmarkContainerClass:"ui-widget ui-igplayer-bookmark-container",bookmarkContainerHeaderClass:"ui-widget-header ui-igplayer-bookmark-header",bookmarkListClass:"ui-widget-content ui-igplayer-bookmark-list",bookmarkItemDisabledClass:"ui-igplayer-bookmark-item-disabled",bookmarkItemTimeClass:"ui-igplayer-bookmark-item-time",bookmarkItemTitleClass:"ui-igplayer-bookmark-item-title",bookmarkActiveItemClass:"ui-igplayer-bookmark-active-item",relatedVideosContainerClass:"ui-igplayer-related-video-container",relatedVideosOuterContainerClass:"ui-igplayer-related-video-outer-container",relatedVideoClass:"ui-igplayer-related-video",relatedVideoFirstClass:"ui-igplayer-related-video-first",relatedVideoLastClass:"ui-igplayer-related-video-last",relatedVideoHoverClass:"ui-igplayer-related-video-hover",relatedVideoScrollLeftClass:"ui-igplayer-related-scroller-left",relatedVideoScrollLeftIconClass:"ui-icon-triangle-1-w",relatedVideoScrollRightClass:"ui-igplayer-related-scroller-right",relatedVideoScrollRightIconClass:"ui-icon-triangle-1-e",relatedVideoScrollListClass:"ui-igplayer-related-list",relatedVideosHeaderClass:"ui-igplayer-related-video-header",relatedVideoBarClass:"ui-igplayer-related-video-bar",relatedVideoReplayClass:"ui-igplayer-related-video-replay",relatedVideoReplayIconClass:"ui-icon-arrowrefresh-1-s",bannerContainerClass:"ui-igplayer-banner-container",bannerClass:"ui-igplayer-banner ui-corner-all",bannerCloseClass:"ui-igplayer-banner-close",bannerCloseIconClass:"ui-icon-close",adMsgContainerClass:"ui-igplayer-ad-msg-container",adMsgClass:"ui-igplayer-ad-msg",adMsgCloseClass:"ui-igplayer-ad-msg-close",adMsgCloseIconClass:"ui-icon-close",linkedBookmarkClass:"ui-igplayer-linked-bookmark",adBookmarkClass:"ui-igplayer-ad-bookmark",unsupportedVideoSourceClass:"ui-igplayer-not-supported-video-source",unsupportedVideoSourceIconClass:"ui-igplayer-not-supported-video-source-icon",centerPlayButtonClass:"ui-igplayer-centerplaybutton-play",centerPauseButtonClass:"ui-igplayer-centerplaybutton-pause",centerPlayButtonIconClass:"ui-igplayer-centerplaybutton-icon",waitingIndicatorClass:"ui-igplayer-waiting",waitingIndicatorIconClass:"ui-igplayer-waiting-icon",seekTooltipClass:"ui-igplayer-seektooltip"},widget:function(){return this.element},_createWidget:function(){var t=this.options;t.bookmarks=[];t.relatedVideos=[];t.banners=[];t.commercials.linkedCommercials=[];t.commercials.embeddedCommercials=[];n.Widget.prototype._createWidget.apply(this,arguments)},_create:function(){if(this.supportsVideo=this.supports_video(),typeof Modernizr=="object"&&Modernizr.touch&&(this.options.browserControls=!0),this.element.is("div"))this.container=this.element;else if(this.element.is("video"))this.container=n("<div><\/div>").attr("id",this._id("_container")).insertBefore(this.element),this.element.appendTo(this.container);else throw new Error(n.ig.VideoPlayer.locale.nonDivException);this._oldWidth=this.element.css("width");this._oldHeight=this.element.css("height");this._renderControl()},_renderControl:function(){var t=this.options,i,r=this.css;this._prevReadyState=0;this._bookmarksRendered=!1;this.supportsVideo&&this._renderBanners();this.currentVideo=i=this._createMainVideoElement().addClass(r.videoClass);t.disabled&&this.container.addClass("ui-state-disabled");t.width&&(i.css("width",t.width),this.container.css("width",t.width));t.height&&(i.css("height",t.height),this.container.css("height",t.height));this.supportsVideo?(this._baseZIndex=parseInt(this.container.css("z-index"),10)||0,this._attachEvents(i),this._renderSources(t.sources,i),this._analyzeSource(i),setTimeout(n.proxy(this._onVideoStateChange,this),this._const.VIDEO_STATE_TIMEOUT),this._createBigPlayButton(),this._createWaitingIndicator(),this._renderEmbeddedCommercials(),this._renderCommercials(),i[0].muted=t.muted,t.muted&&n.ig.util.isWebKit?i[0].volume=0:t.volume>=this._const.VOLUME_MIN&&t.volume<=this._const.VOLUME_MAX&&(i[0].volume=t.volume),t.browserControls||this._renderControls(),this._lastPausedState=i[0].paused,t.fullscreen&&this._setOption("fullscreen",!0,!0),this._renderRelatedVideos()):(this.currentVideo.hide(),n.ig.util._renderUnsupportedBrowser(this,n.ig.VideoPlayer.locale));n("#"+this._id("_detectError")).appendTo(this.container).bind({click:function(n){n.preventDefault()}});this.container.addClass(r.baseClasses)},_createVideoElement:function(t){return n("<video><\/video>").attr("id",t)},_saveExistingVideoProperties:function(n){this._oldAutoPlay=n.attr("autoplay");this._oldPreload=n.attr("preload");this._oldLoop=n.attr("loop");this._oldPoster=n.attr("poster");this._oldControls=n.attr("controls");this._oldSrc=n.attr("src");this._oldMuted=n[0].muted;this._oldVolume=n[0].volume;n.removeAttr("autoplay");n.removeAttr("preload");n.removeAttr("loop");n.removeAttr("poster");n.removeAttr("controls");n.removeAttr("src")},_restoreExistingVideoProperties:function(n){n.attr("autoplay",this._oldAutoPlay);n.attr("preload",this._oldPreload);n.attr("loop",this._oldLoop);n.attr("poster",this._oldPoster);n.attr("controls",this._oldControls);n.attr("src",this._oldSrc);n[0].muted=this._oldMuted;n[0].volume=this._oldVolume},_createMainVideoElement:function(){var t=this.options,i=this.element.is("video"),n=i?this.element:this._createVideoElement(this._id("_video"));return i&&this._saveExistingVideoProperties(n),t.autoplay&&n.attr("autoplay",!0),n.attr("preload","metadata"),t.preload&&n.attr("preload","auto"),t.browserControls&&n.attr("controls",!0),t.loop&&n.attr("loop",!0),t.posterUrl.length>0&&n.attr("poster",t.posterUrl),n.appendTo(this.container)},_renderUnsupportedBrowser:function(){if(this._trigger(this.events.browserNotSupported)){var i=n("<div><\/div>").addClass(this.css.unsupportedBrowserClass).appendTo(this.container),t,r;r=n.ig.util.isIE?"Internet Explorer "+n.ig.util.browserVersion:n.ig.util.isOpera?"Opera "+n.ig.util.browserVersion:n.ig.util.isWebKit?"Webkit "+n.ig.util.browserVersion:n.ig.util.isFF?"Mozilla Firefox "+n.ig.util.browserVersion:n.ig.util.browserVersion;n("<div><\/div>").addClass("ui-igvideoplayer-current-browser-label").html(n.ig.VideoPlayer.locale.currentBrowser.replace("{0}",r)).appendTo(i);n("<div><\/div>").addClass("ui-igvideoplayer-non-html5-text").html(n.ig.VideoPlayer.locale.unsupportedBrowser).appendTo(i);t=n("<ul><\/ul>").addClass("ui-igplayer-browsers-list").appendTo(i);n("<a><\/a>").attr("href",n.ig.VideoPlayer.locale.chromeDownload).attr("target","_blank").addClass("ui-igplayer-chrome-icon").html(n.ig.VideoPlayer.locale.chrome8).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(t));n("<a><\/a>").attr("href",n.ig.VideoPlayer.locale.firefoxDownload).attr("target","_blank").addClass("ui-igplayer-firefox-icon").html(n.ig.VideoPlayer.locale.firefox36).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(t));n("<a><\/a>").attr("href",n.ig.VideoPlayer.locale.operaDownload).attr("target","_blank").addClass("ui-igplayer-Opera-icon").html(n.ig.VideoPlayer.locale.opera11).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(t));n("<a><\/a>").attr("href",n.ig.VideoPlayer.locale.safariDownload).attr("target","_blank").addClass("ui-igplayer-safari-icon").html(n.ig.VideoPlayer.locale.safari5).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(t));n("<a><\/a>").attr("href",n.ig.VideoPlayer.locale.ieDownload).attr("target","_blank").addClass("ui-igplayer-ie-icon").html(n.ig.VideoPlayer.locale.ie9).appendTo(n("<li><\/li>").addClass("ui-corner-all").appendTo(t));this.container.addClass("ui-igvideoplayer-non-html5")}},_renderRelatedVideoBar:function(t){var i=this.css,r=this,u=n("<div><\/div>").attr("id",this._id("_rv_bar")).addClass(i.relatedVideoBarClass).appendTo(t);n("<a><\/a>").attr("id",this._id("_rv_bar_fs")).appendTo(n("<div><\/div>").css({position:"absolute",top:0,left:0,"text-align":"right",width:"100%",height:"100%"}).appendTo(u)).igButton({link:{href:this._const.HREF},css:{buttonLabelClass:i.fullScreenIconClass}}).attr("title",n.ig.VideoPlayer.locale.enterFullscreen).addClass(i.fullScreenClass).bind({click:function(n){n.preventDefault();r._setOption("fullscreen",!r.options.fullscreen)}});n("<a><\/a>").attr("id",this._id("_rv_bar_replay")).appendTo(u).igButton({onlyIcons:!1,labelText:n.ig.VideoPlayer.locale.replayButton,icons:{primary:i.relatedVideoReplayIconClass},link:{href:this._const.HREF}}).attr("title",n.ig.VideoPlayer.locale.replayTooltip).bind({click:function(t){t.preventDefault();n(this).igButton("option","disabled")||r.togglePlay()}}).addClass(i.relatedVideoReplayClass)},_renderScrollButtons:function(t){var i=this.css,r;return n("<a><\/a>").attr("id",this._id("_rv_left")).appendTo(t).igButton({onlyIcons:!0,icons:{primary:i.relatedVideoScrollLeftIconClass},link:{href:this._const.HREF}}).addClass(i.relatedVideoScrollLeftClass).css("position","absolute").hide(),r=n("<ul><\/ul>").addClass(i.relatedVideoScrollListClass).appendTo(t),n("<a><\/a>").attr("id",this._id("_rv_right")).appendTo(t).igButton({onlyIcons:!0,icons:{primary:i.relatedVideoScrollRightIconClass},link:{href:this._const.HREF}}).addClass(i.relatedVideoScrollRightClass).css("position","absolute"),r},_renderRelatedVideos:function(){var l=this.options,f=l.relatedVideos||[],o=f.length,i=0,s=this.css,r,h,u,e=10,c,t=this;if(o>0){for(r=n("<div><\/div>").attr("id",this._id("_rvcc")).addClass(s.relatedVideosOuterContainerClass).appendTo(this.container).hide(),n("<div><div>").html(n.ig.VideoPlayer.locale.relatedVideos).addClass(s.relatedVideosHeaderClass).appendTo(r),h=n("<div><\/div>").attr("id",this._id("_rvc")).appendTo(r).addClass(s.relatedVideosContainerClass),u=this._renderScrollButtons(h),this._renderRelatedVideoBar(r),this._rvUlWidth=0,this._rvImagesToLoad=0,this._rvImagesLoaded=0,i;i<o;i++)f[i].imageUrl&&f[i].imageUrl!==""&&(c=this._renderRelatedVideo(f[i],u,i===0,i===o-1),this._rvImagesToLoad++,e+=c.outerWidth(!0));e>r.width()&&e>u.width()&&u.width(e);this.relatedScrollers=n("a",h).bind({mouseover:function(){t._isScrolling||(t._isScrolling=!0,t._leftDirection=n(this).hasClass(t.css.relatedVideoScrollLeftClass),t._rvDoScroll())},mouseout:function(){t._rvStopScroll()}});this.relatedVideoElements=n("."+this.css.relatedVideoClass.split(" ")[0],u).each(function(t){n(this).data("related-index",t)}).bind({mouseover:function(){n(this).addClass(t.css.relatedVideoHoverClass).children().filter("div").show()},mouseout:function(){n(this).removeClass(t.css.relatedVideoHoverClass).children().filter("div").hide()},click:function(i){var r=t.options.relatedVideos[n(this).data("related-index")];t._relatedVideoClick(r,n(this),i)&&(r.link&&r.link.length>0?window.open(r.link,"_blank"):r.sources&&(t._renderSources(r.sources,t.currentVideo),t._analyzeSource(t.currentVideo,!0),t.play()))}})}},_rvScrollOnce:function(){var s=n("#"+this._id("_rvc")),u=n("ul",s),f=u[0].style.left,t=parseInt(f===""||f==="auto"?"0px":f,10),h=10,i=this._leftDirection?t+h:t-h,e=n("#"+this._id("_rv_left")),r=n("#"+this._id("_rv_right")),c=u.width(),l=s.width(),o=!0;return u[0].style.left=i+"px",t===0&&i<0&&e.show(),i>=0&&t!==0&&e[0].style.display!=="none"&&(e.hide(),o=!1),l-i>=c&&r[0].style.display!=="none"?(o=!1,r.hide()):r[0].style.display==="none"&&r.show(),o},_rvDoScroll:function(){var t=this._isScrolling&&this._rvScrollOnce();t?this._scrollingTimoutId=setTimeout(n.proxy(this._rvDoScroll,this),this._const.SCROLL_TIMEOUT):this._rvStopScroll()},_rvStopScroll:function(){this._isScrolling&&(clearTimeout(this._scrollingTimoutId),this._isScrolling=!1)},_relatedVideoClick:function(n,t,i){var r={relatedVideo:n,relatedVideoElement:t};return this._trigger(this.events.relatedVideoClick,i,r)},_renderRelatedVideo:function(t,i,r,u){var o=n("<li><\/li>").appendTo(i).addClass(this.css.relatedVideoClass),f=n("<img/>").appendTo(o),e=this;return(r||u)&&o.addClass(r?this.css.relatedVideoFirstClass:this.css.relatedVideoLastClass),t.imageUrl&&t.imageUrl!==""&&f.attr("src",t.imageUrl),t.title&&t.title!==""&&f.attr("title",t.title),t.css&&t.css!==""&&f.addClass(t.css),t.width&&t.width!==""&&f.css("width",t.width),t.height&&t.height!==""&&f.css("height",t.height),n("<div><\/div>").appendTo(f.parent()).css("position","absolute").hide(),f.bind({load:function(){e._imageLoaded(this)},error:function(){e._rvImagesLoaded++;e._onImagesLoaded()},readystatechange:function(){e._imageLoaded(this)}}),o},_imageLoaded:function(t){var f=t.readyState,r=parseInt(t.style.width,10),u=parseInt(t.style.height,10),i;(!f||new RegExp("loaded|complete").test(f))&&(this._rvUlWidth+=r+parseInt(n(t).parent().css("marginRight"),10)+parseInt(n(t).parent().css("marginLeft"),10),this._rvImagesLoaded++,r>24&&u>24&&(i=r>50&&u>50?48:r>34&&u>34?32:24,n(t).parent().children().filter("div").addClass("ui-igplayer-related-video-hover-x"+i).css({width:i,height:i,top:u/2-i/2,left:r/2-i/2})));this._onImagesLoaded()},_onImagesLoaded:function(){if(this._rvImagesLoaded===this._rvImagesToLoad){var t=n("#"+this._id("_rvc"));n("ul",t).css("width",this._rvUlWidth+4);t.parent().show();this._rvUlWidth<t.width()?this.relatedScrollers.hide():n(this.relatedScrollers[1]).show();t.parent().hide();delete this._rvUlWidth;delete this._rvImagesLoaded;delete this._rvImagesToLoad}},_renderEmbeddedCommercials:function(){var i=this.options.commercials.embeddedCommercials||[],r=0,u=i.length,f=[],t;for(r;r<u;r++)t=i[r],t&&t.startTime&&t.endTime&&t.startTime<t.endTime&&f.push(t);i=f;u=i.length;i&&u>0&&(this._embeddedCommercialsShow=n.extend(!0,[],i),this._embeddedCommercialIndex=0,this._renderAdMessage())},_renderCommercials:function(){var i=this.options,r=i.commercials.linkedCommercials||[],t=this;r.length>0&&(this._createVideoElement(this._id("_com_video")).attr("preload","auto").appendTo(this.container).addClass(this.css.videoClass).bind({ended:function(){var i=n("#"+t._id("_ctrls_s")),r=i.data("igSlider").bookmarks;t._hideWaitingIndicator();t._commercialIndex++;t._commercialsShow.shift();t._commercialPlaying=!1;t.currentVideo=t._getMainVideo();t.currentVideo.show();n(this).hide();i.igSlider("option","disabled",!1);r&&r.show();t.currentVideo[0].muted=this.muted;t.currentVideo[0].play();t.currentVideo.addClass(t.css.videoClass);t.controls[t._activeControlsIndex].css("z-index","");n("#"+t._id("_seek_tooltip")).css("z-index","");n("#"+t._id("_play")).css("z-index","")},waiting:function(n){t._onVideoWaiting(n);t._waiting(this.currentSrc,this.currentTime,this.duration,n)},timeupdate:function(n){t._changeCurrentTime(n)},playing:function(i){t._hideWaitingIndicator();n("span",n("#"+t._id("_ctrls_play"))).addClass("ui-icon-pause").removeClass("ui-icon-play");t._playing(this.currentSrc,this.duration,i)},pause:function(i){n("span",n("#"+t._id("_ctrls_play"))).addClass("ui-icon-play").removeClass("ui-icon-pause");t._paused(this.currentSrc,this.duration,i)},click:function(n){n.preventDefault();var i=t.options.commercials.linkedCommercials[t._commercialIndex].link;i&&i.length>0&&window.open(i,"_blank")}}).hide(),this._buildCommercialsShow(),this._renderAdMessage())},_renderAdClose:function(t){var i=this;n("<a><\/a>").attr("id",this._id("_ad_msg_close")).appendTo(t).igButton({onlyIcons:!0,icons:{primary:this.css.adMsgCloseIconClass},link:{href:this._const.HREF}}).addClass(this.css.adMsgCloseClass).bind("click",function(n){n.preventDefault();n.stopPropagation();i.hideAdMessage()})},_renderAdMessage:function(){if(n("#"+this._id("_ad_msg_c")).length===0){var i=this.css,t;t=n("<div><\/div>").attr("id",this._id("_ad_msg_c")).addClass(i.adMsgContainerClass).prependTo(this.container).bind({mouseover:function(){n(this).addClass("ui-state-hover")},mouseout:function(){n(this).removeClass("ui-state-hover")}}).hide();n("<span><\/span>").attr("id",this._id("_ad_msg")).appendTo(t).addClass(i.adMsgClass).html(n.ig.VideoPlayer.locale.adMessage);this._renderAdClose(t)}},_showAdMessage:function(t){var r=n("#"+this._id("_ad_msg_c")),i=this.options.commercials.adMessage;this._updateAdMessage(t,!0);r.css("width",this.container.css("width"));i.animate?r.slideToggle(i.animationDuration):r.show();i.autoHide&&(this._adHideTimeout=setTimeout(n.proxy(this.hideAdMessage,this),i.hideDelay))},_updateAdMessage:function(t,i){var r=n("#"+this._id("_ad_msg"));r.is(":visible")||i?(isNaN(t)?r.html(n.ig.VideoPlayer.locale.adMessageNoDuration):(t=parseInt(t,10),t>60?r.html(n.ig.VideoPlayer.locale.adMessageLong.replace("$duration$",this._toTimeString(t))):r.html(n.ig.VideoPlayer.locale.adMessage.replace("$duration$",t))),this._isHiddenAdMessage=!1):this._isHiddenAdMessage||this._showAdMessage(t)},hideAdMessage:function(){clearTimeout(this._adHideTimeout);var t=n("#"+this._id("_ad_msg_c")),i=this.options.commercials.adMessage;t.is(":visible")&&(i.animate?t.slideToggle(i.animationDuration):t.hide(),this._isHiddenAdMessage=!0)},_buildCommercialsShow:function(){var i=this.options.commercials.linkedCommercials||[],r=i.length,t=0;for(this._commercialsShow=[],this._commercialIndex=0,t;t<r;t++)this._commercialsShow.push(i[t].startTime);this._commercialsShow=n.extend(!0,[],this._commercialsShow)},playCommercial:function(t){if(t&&t.sources){var i=n("#"+this._id("_com_video")),r=this.currentVideo.offset(),u=n("#"+this._id("_ctrls_s")),f=u.data("igSlider").bookmarks,e=n("#"+this._id("_ctrls_s_tooltip"));this._commercialPlaying=!0;n("source",i).remove();this._renderSources(t.sources,i);this._analyzeSource(i);this.currentVideo[0].pause();this.currentVideo.removeClass(this.css.videoClass);this.controls[this._activeControlsIndex].css("z-index",this._baseZIndex+5e3);n("#"+this._id("_seek_tooltip")).css("z-index",this._baseZIndex+5e3);n("#"+this._id("_play")).css("z-index",this._baseZIndex+5e3);u.igSlider("option","disabled",!0);f&&e&&(f.hide(),e.hide());i[0].muted=this.currentVideo[0].muted;i[0].play();t.link&&t.link.length>0?i.attr("title",n.ig.VideoPlayer.locale.adNewWindowTip):i.removeAttr("title");i.css("top",r.top).css("left",r.left).css("width",this.currentVideo.css("width")).css("height",this.currentVideo.css("height")).show();this.currentVideo.hide();this.currentVideo=i}},_renderBanners:function(){var r=this.options.banners||[],u=r.length,t=0,f=n("<div><\/div>").appendTo(this.container).addClass(this.css.bannerContainerClass),i;for(this._bannerShow=[],t;t<u;t++)i=r[t],i.imageUrl&&i.imageUrl.length>0&&this._renderBannerContainer(i,this._id("_banner_grid"+t),f).data("banner-index",t),this._bannerShow.push(n.extend(!0,[],i.times))},_buildBannersShow:function(){var i=this.options.banners||[],r=i.length,t=0;for(r>0&&(this._bannerShow=[]),t;t<r;t++)this._bannerShow.push(n.extend(!0,[],i[t].times))},_renderBannerClose:function(t,i){var r=this.css,u=this;n("<a><\/a>").attr("id",i+"_banner_close").appendTo(n("<div><\/div>").css({position:"absolute",top:0,left:0,"text-align":"right",width:"100%",height:"100%"}).appendTo(t)).addClass(r.bannerCloseClass).igButton({onlyIcons:!0,icons:{primary:r.bannerCloseIconClass},link:{href:this._const.HREF}}).bind("click",function(t){t.preventDefault();t.stopPropagation();u.hideBanner(n(this).parent().parent().data("banner-index"))})},_renderBannerContainer:function(t,i,r){var o=this.css,f=this,u=n("<div><\/div>").attr("id",i).appendTo(r),e=n("<img><\/img>").attr("id",i+"_img").attr("src",t.imageUrl).appendTo(u);return this.banner=u.addClass(o.bannerClass),t.visible||u.hide(),t.closeBanner&&this._renderBannerClose(u,i),t.width&&(u.css("width",t.width),e.attr("width",parseInt(t.width,10))),t.height&&(u.css("height",t.height),e.attr("height",parseInt(t.height,10))),t.css&&u.addClass(t.css),u.bind("click",function(i){var r=!0,u={bannerElement:n(i.currentTarget)};r=f._trigger(f.events.bannerClick,i,u);t.link&&t.link.length>0&&r&&window.open(t.link,"_blank")}),u},showBanner:function(t){if(this.options.banners&&t>=0&&t<this.options.banners.length){var i=this.options.banners[t],u=this._id("_banner_grid"+t),r=n("#"+u);i.animate?r.fadeIn(i.duration):r.show();this._bannerVisible(t,r);i.autohide&&(this._bannerHideTimeout=setTimeout(this._createDelegate(this,this.hideBanner,[t]),i.hidedelay))}},_createDelegate:function(n,t,i){return function(){return t.apply(n,i)}},hideBanner:function(t){if(this.options.banners&&t>=0&&t<this.options.banners.length){clearTimeout(this._bannerHideTimeout);var r=this.options.banners[t],i=n("#"+this._id("_banner_grid"+t));r.animate?i.fadeOut(r.duration):i.hide();this._bannerHidden(t,i)}},_renderSources:function(t,i){var r=this;n(t).each(function(){r._renderSource(this,i)})},_renderSource:function(t,i){var r=t.indexOf("?"),u=t.lastIndexOf(".")+1,f=r>-1?r:t.length,e=t.substring(u,f);n("<source><\/source>").attr("src",t).attr("type",("video/"+t.substring(t.lastIndexOf(".")+1,t.length)).replace("/ogv","/ogg")).appendTo(i);i.data(e,t)},_getMainVideo:function(){return this.element.is("video")?this.element:n("#"+this._id("_video"))},_setOption:function(t,i,r){var f=this.currentVideo,e=f[0],o=this._getMainVideo(),c=f.offset(),u=this.options,s=!0,h=0;if(this.options[t]!==i){switch(t){case"disabled":i?this.container.addClass("ui-state-disabled"):this.container.removeClass("ui-state-disabled");break;case"sources":n("source",o).remove();this._renderSources(i,o);this._analyzeSource(o);break;case"width":i!==u.width&&(f.css("width",i),this.container.css("width",i),u.browserControls||(n("#"+this._id("_ctrls")).parent().css("width",i),n("#"+this._id("_title_ctrls")).parent().css("width",i)),u.width=i);break;case"height":i!==u.height&&(f.css("height",i),this.container.css("height",i),u.height=i);break;case"posterUrl":i!==u.posterUrl&&(f.attr("poster",i),u.posterUrl=i);break;case"loop":i!==u.loop&&(e.loop=i,u.loop=i);break;case"browserControls":if(typeof Modernizr=="object"&&Modernizr.touch)return;i!==u.browserControls&&(i?(e.controls=!0,this._destroyControls()):(e.controls=!1,this._ensureVolume(),this._renderControls(),this._detectBuffered()),u.browserControls=i);break;case"autohide":u.browserControls||(i?this._onControlMouseOut():this._onControlMouseOver());u.autohide=i;break;case"fullscreen":if(i!==u.fullscreen||r){if(i?(s=this._enterFullScreen(e.currentSrc),s&&(this.container.data("style.position",this.container.css("position")),this.container.data("document.scrollTop",n(document).scrollTop()),this.container.data("document.scrollLeft",n(document).scrollLeft()),this.container.data("style.left",this.container.css("left")),this.container.data("style.top",this.container.css("top")),this.container.css("z-index",this._baseZIndex+1e4),n(document).scrollTop(0),n(document).scrollLeft(0),this.container.css("position","fixed").css("height","100%").css("width","100%").css("left","0px").css("top","0px"),n("#"+this._id("_ctrls")).parent().css("width","100%"),this._commercialPlaying&&(f.css("top",0).css("left",0),o.css("height","100%").css("width","100%")),f.css("height","100%").css("width","100%"),u.browserControls||n("span",n("#"+this._id("_ctrls_fs_btn"))).removeClass("ui-icon-arrow-4-diag").addClass("ui-icon-closethick"),n("#"+this._id("_rv_bar_fs")).is(":visible")&&n("span",n("#"+this._id("_rv_bar_fs"))).removeClass("ui-icon-arrow-4-diag").addClass("ui-icon-closethick"),u.bookmarks&&u.bookmarks.length>0&&n("#"+this._id("_bookmarks")).hide())):(s=this._exitFullScreen(e.currentSrc),s&&(this.container.css("position",this.container.data("style.position")).css("left",this.container.data("style.left")).css("top",this.container.data("style.top")),this.container.css("z-index",this._baseZIndex),n(document).scrollTop(this.container.data("document.scrollTop")),n(document).scrollLeft(this.container.data("document.scrollLeft")),u.height?(u.bookmarks&&u.bookmarks.length>0?(h=parseInt(u.height,10)-parseInt(n("#"+this._id("_bookmarks")).css("height"),10),this._commercialPlaying&&o.css("height",h),f.css("height",h)):(this._commercialPlaying&&o.css("height",u.height),f.css("height",u.height)),this.container.css("height",u.height)):(this._commercialPlaying&&o.css("height",""),f.css("height",""),this.container.css("height","")),u.width?(this._commercialPlaying&&o.css("width",u.width),f.css("width",u.width),n("#"+this._id("_ctrls")).parent().css("width",u.width),this.container.css("width",u.width)):(this._commercialPlaying&&o.css("width",""),f.css("width",""),n("#"+this._id("_ctrls")).parent().css("width",""),this.container.css("width","")),this._commercialPlaying&&f.css("top",c.top).css("left",c.left),u.browserControls||n("span",n("#"+this._id("_ctrls_fs_btn"))).removeClass("ui-icon-closethick").addClass("ui-icon-arrow-4-diag"),n("#"+this._id("_rv_bar_fs")).is(":visible")&&n("span",n("#"+this._id("_rv_bar_fs"))).removeClass("ui-icon-closethick").addClass("ui-icon-arrow-4-diag"),u.bookmarks&&u.bookmarks.length>0&&n("#"+this._id("_bookmarks")).show())),!s)return;n("#"+this._id("_waiting")).is(":visible")&&this._showWaitingIndicator();n("#"+this._id("_play")).is(":visible")&&this._showCenterPlayButton();n("#"+this._id("_ad_msg_c")).is(":visible")&&n("#"+this._id("_ad_msg_c")).css("width",this.container.css("width"));n("#"+this._id("_ctrls_vs")).is(":visible")&&this._hideVolumeSlider();n("#"+this._id("_detectError")).is(":visible")&&this._showUnsupportedVideoSourceMsg();n("body").toggleClass("ui-igplayer-full-screen-mode");u.browserControls||n("#"+this._id("_ctrls_fs_btn")).attr("title",i?n.ig.VideoPlayer.locale.exitFullscreen:n.ig.VideoPlayer.locale.enterFullscreen);n("#"+this._id("_rv_bar_fs")).is(":visible")&&n("#"+this._id("_rv_bar_fs")).attr("title",i?n.ig.VideoPlayer.locale.exitFullscreen:n.ig.VideoPlayer.locale.enterFullscreen);u.fullscreen=i}break;case"volume":i!==u.volume&&i>=this._const.VOLUME_MIN&&i<=this._const.VOLUME_MAX&&(u.volume=e.volume=i,i>0&&e.muted?u.muted=e.muted=!1:i!==0||e.muted||(u.muted=e.muted=!0),u.browserControls||(this._adjustVolumeButton(i),n("#"+this._id("_ctrls_vs")).igSlider("option","value",i*100)));break;case"muted":i!==u.muted&&(u.muted=e.muted=i,n("#"+this._id("_ctrls_vs")).igSlider("option","value",i?0:(u.volume!==0?u.volume:.3)*100),u.volume===0&&(u.volume=.3),i||e.volume!==0||(e.volume=u.volume),u.browserControls||this._adjustVolumeButton(n("#"+this._id("_ctrls_vs")).igSlider("option","value")));break;case"title":n("#"+this._id("_title_ctrls_t")).html(i);break;case"progressLabelFormat":u.progressLabelFormat=i;this._updateProgressLabel();break;case"alwaysPlayCommercials":i!==u.commercials.alwaysPlayCommercials&&(u.commercials.alwaysPlayCommercials=i,i&&this.resetCommercialsShow());break;case"bookmarks":this._destroyBookmarks();u.bookmarks=i;this._renderBookmarks();break;case"relatedVideos":this._destroyRelatedVideos();u.relatedVideos=i;this._renderRelatedVideos()}n.Widget.prototype._setOption.apply(this,arguments)}},_onVideoStateChange:function(){var u=this.currentVideo,t=u[0],f=this.options,r=this._prevReadyState,i=t.readyState;if(r>=t.HAVE_FUTURE_DATA&&i<=t.HAVE_CURRENT_DATA)t.ended||this._showWaitingIndicator();else if(r<=t.HAVE_CURRENT_DATA&&i===t.HAVE_FUTURE_DATA)this._hideWaitingIndicator();else if(i===t.HAVE_ENOUGH_DATA)if(r<=t.HAVE_CURRENT_DATA)this._hideWaitingIndicator();else return;this._prevReadyState=i;this._detectBuffered();this._lastPausedState!==t.paused&&(this._lastPausedState?this._showCenterPlayButton().removeClass(this.css.centerPauseButtonClass).addClass(this.css.centerPlayButtonClass):this._showCenterPlayButton().removeClass(this.css.centerPlayButtonClass).addClass(this.css.centerPauseButtonClass),setTimeout(n.proxy(this._hideCenterPlayButton,this),f.centerButtonHideDelay),this._prepareForPlay(),this._lastPausedState=t.paused);this._setOption("muted",t.muted);this._refreshDuration();this._onVideoStateChangeId=setTimeout(n.proxy(this._onVideoStateChange,this),this._const.VIDEO_STATE_TIMEOUT)},_updateTitleControlsTimeString:function(t,i){this._activeControlsIndex===1&&t&&(i||(i=t),n("span.ui-igplayer-playbutton-text",n("#"+this._id("_title_ctrls"))).attr("title",i).html(t))},_analyzeSource:function(t,i){var r=!1;this.supports_h264_baseline_video()&&t.data("mp4")!==undefined?(t.attr("src",t.data("mp4")),r=!0):this.supports_webm_video()&&t.data("webm")!==undefined?(t.attr("src",t.data("webm")),r=!0):this.supports_ogg_theora_video()&&(t.data("ogv")!==undefined?(t.attr("src",t.data("ogv")),r=!0):t.data("ogg")!==undefined&&(t.attr("src",t.data("ogg")),r=!0));t.data("sourceDetected",r);r||i?(this._hideUnsupportedVideoSourceMsg(),this.options.browserControls||this._activeControlsIndex===0&&n("#"+this._id("_ctrls_play")).igButton("option","disabled",!1)):(this._showUnsupportedVideoSourceMsg(),this.options.browserControls||this._activeControlsIndex===0&&n("#"+this._id("_ctrls_play")).igButton("option","disabled",!0))},resetCommercialsShow:function(){this._buildCommercialsShow();this._embeddedCommercialsShow=n.extend(!0,[],this.options.commercials.embeddedCommercials);this._embeddedCommercialIndex=0},_attachVideoEvents:function(t){var i=this;this._videoEvents={error:function(n){i._onVideoError(n)},progress:function(n){i._onVideoLoading(n)},waiting:function(n){i._onVideoWaiting(n);i._waiting(this.currentSrc,this.currentTime,this.duration,n)},seeking:function(){i._showWaitingIndicator()},seeked:function(){i._hideWaitingIndicator()},timeupdate:function(n){i._changeCurrentTime(n)},ended:function(t){i._showCenterPlayButton().removeClass("ui-igplayer-centerplaybutton-pause").addClass("ui-igplayer-centerplaybutton-play");i._hideWaitingIndicator();i.options.browserControls||n("span",n("#"+i._id("_ctrls_play"))).addClass("ui-icon-play").removeClass("ui-icon-pause");n("#"+i._id("_ctrls_pb")).igProgressBar("option","value",0);i.options.relatedVideos.length>0&&(i._onControlMouseOut(null),n("#"+i._id("_rvcc")).show());i._buildBannersShow();i.options.commercials.alwaysPlayCommercials&&i.resetCommercialsShow();i._ended(this.currentSrc,this.duration,t)},playing:function(t){i._hideWaitingIndicator();n("span",n("#"+i._id("_ctrls_play"))).addClass("ui-icon-pause").removeClass("ui-icon-play");i._playing(this.currentSrc,this.duration,t)},pause:function(t){n("span",n("#"+i._id("_ctrls_play"))).addClass("ui-icon-play").removeClass("ui-icon-pause");i._paused(this.currentSrc,this.duration,t)},click:function(n){var t=i.options;t.browserControls||n.preventDefault();n.button!==0||t.disabled||i._onVideoClick(!t.browserControls)},dblclick:function(n){n.preventDefault();n.button!==0||i.options.disabled||i._onVideoDblClick()},selectstart:function(){return!1},loadedmetadata:function(){i._refreshDuration()}};t.bind(this._videoEvents)},_onVideoClick:function(n){if(this._embeddedCommercialPlaying){var t=this.options.commercials.embeddedCommercials[this._embeddedCommercialIndex].link;t&&t.length>0&&window.open(t,"_blank")}else n&&this.togglePlay()},_onVideoDblClick:function(){var n=this.options;this._setOption("fullscreen",!n.fullscreen);n.browserControls||this._toggleCenterPlayButton()},_attachEvents:function(t){var i=this;this._attachVideoEvents(t);this._generalEvts={keydown:function(t){t.keyCode===n.ui.keyCode.ESCAPE?i.options.fullscreen&&(i._setOption("fullscreen",!1),t.preventDefault(),t.stopPropagation()):t.keyCode===n.ui.keyCode.SPACE&&(t.preventDefault(),t.stopPropagation(),i.togglePlay())}};this._documentEvts={contextmenu:function(t){n(t.target).is("video")&&i.options.disabled&&(t.preventDefault(),t.stopPropagation())}};n(document).bind(this._documentEvts);this.options.browserControls||(this._controlsEvts={mouseover:function(n){i._onControlMouseOver(n)},mouseout:function(n){i._onControlMouseOut(n)}},this.container.bind(this._controlsEvts));this.container.bind(this._generalEvts)},_handleKbNavigation:function(t){t.keyCode===n.ui.keyCode.HOME?(n(this.controlButtons[0]).focus(),t.stopPropagation(),t.preventDefault()):t.keyCode===n.ui.keyCode.END&&(n(this.controlButtons[this.controlButtons.length-1]).focus(),t.stopPropagation(),t.preventDefault())},_handleBlurKb:function(){this.currentVideo.removeClass(this.css.activeVideoClass)},_handleFocusKb:function(){this.currentVideo.addClass(this.css.activeVideoClass)},_onVideoLoading:function(n){this._detectBuffered(n)},_detectBuffered:function(t){var u=this.currentVideo[0],i=u.buffered,o=parseInt(u.duration,10),r=i?i.length:0,s=r>0?parseInt(i.start(r-1),10):0,f=r>0?parseInt(i.end(r-1),10):0,e=f/o*100;r>0&&this._previouslyBuffered!==e&&(this._previousBuffer&&f<parseInt(this._previousBuffer.end(0),10)&&n("#"+this._id("_ctrls_pb")).igProgressBar("option","value",s),n("#"+this._id("_ctrls_pb")).igProgressBar("option","endValue",f/o*100),this._buffering(u.currentSrc,e,t),this._previouslyBuffered=e,this._previousBuffer=i)},_getActiveControls:function(){var n=this._activeControlsIndex;return n!==undefined&&this.controls&&n>=0&&n<this.controls.length?this.controls[n].parent():null},_onControlMouseOver:function(){var t=this._getActiveControls(),i=this.options;t&&!i.browserControls&&i.autohide&&!n("#"+this._id("_rvcc")).is(":visible")&&t.show().removeClass(this.css.controlsHideClass)},_onControlMouseOut:function(){var n=this.options,t=this._getActiveControls();t&&!n.browserControls&&n.autohide&&t.addClass(this.css.controlsHideClass).hide()},_onVideoError:function(n){var t=n.target.error;switch(t.code){case t.MEDIA_ERR_NETWORK:this.play();break;case t.MEDIA_ERR_DECODE:case t.MEDIA_ERR_SRC_NOT_SUPPORTED:this._showUnsupportedVideoSourceMsg()}},_changeCurrentTime:function(t){var u=this.currentVideo[0],r=u.duration,i;r===Infinity?this._updateProgressLabel():isNaN(r)||(i=parseInt(u.currentTime,10),this._userSliding||n("#"+this._id("_ctrls_s")).igSlider("option","value",i/r*100),this._updateProgressLabel(),this._embeddedCommercialPlaying?(this._updateAdMessage(this.options.commercials.embeddedCommercials[this._embeddedCommercialIndex].endTime-i),this._checkEmbeddedCommercialShow(i)):this._commercialPlaying?this._updateAdMessage(r-i):(this._checkBannerShow(i),this._checkCommercialsShow(i),this._checkEmbeddedCommercialShow(i)));this._progress(u.currentSrc,i,r,t)},_checkBannerShow:function(n){var i=this._bannerShow||[],r=i.length,t=0;for(t;t<r;t++)i[t].length>0&&n>=i[t][0]&&(i[t].shift(),this.showBanner(t))},_checkCommercialsShow:function(n){this._commercialsShow&&this._commercialsShow.length>0&&n>=this._commercialsShow[0]&&!this._commercialPlaying&&(this._commercialPlaying=!0,n-this._commercialsShow[0]>this._const.COMMERCIAL_SEEK_DELTA&&this.currentTime(this._commercialsShow[0]),this.playCommercial(this.options.commercials.linkedCommercials[this._commercialIndex]))},_checkEmbeddedCommercialShow:function(t){if(this._embeddedCommercialsShow&&this._embeddedCommercialsShow.length>0&&!this.currentVideo[0].seeking){var i=this._embeddedCommercialsShow[0];t>=i.startTime&&!this._embeddedCommercialPlaying?(this._embeddedCommercialPlaying=!0,t-i.startTime>this._const.COMMERCIAL_SEEK_DELTA&&this.currentTime(i.startTime),n("#"+this._id("_ctrls_s")).igSlider("option","disabled",!0),this._showAdMessage(i.endTime-i.startTime),i.link&&i.link.length>0&&this.currentVideo.attr("title",n.ig.VideoPlayer.locale.adNewWindowTip)):t>=i.endTime&&this._embeddedCommercialPlaying&&(this._embeddedCommercialsShow.shift(),this._embeddedCommercialIndex++,this._embeddedCommercialPlaying=!1,this.hideAdMessage(),n("#"+this._id("_ctrls_s")).igSlider("option","disabled",!1),i.link&&i.link.length>0&&this.currentVideo.removeAttr("title"))}},_updateProgressLabel:function(){var i=this.currentVideo[0],u=n("#"+this._id("_ctrls_pl")),r=i.duration,f=parseInt(r,10),e=parseInt(i.currentTime,10),t=this.options.progressLabelFormat;t=t.replace("${currentTime}",this._toTimeString(e)).replace("${duration}",r===Infinity?n.ig.VideoPlayer.locale.liveStream:this._toTimeString(f));u.html(t)},_toTimeString:function(n){if(typeof n=="number"){var u=parseInt(n%60,10),r=parseInt(n/60,10),i=parseInt(r/60,10),f=parseInt(i/24,10),t="{0}d {1}:{2}:{3}";return r=parseInt(r%60,10),i=parseInt(i%60,10),t=t.replace("{3}",u<10?"0"+u:u).replace("{2}",r),i>0?(t=t.replace("{1}",i),t=f>0?t.replace("{0}",f):t.replace("{0}d ","")):t=t.replace("{0}d {1}:",""),t}return"NaN"},_onVideoWaiting:function(){this._showWaitingIndicator()},_createUnsupportedVideoSourceMsg:function(){var t=this.css;return this._createButton(this._id("_detectError"),t.unsupportedVideoSourceClass,t.unsupportedVideoSourceIconClass,n.ig.VideoPlayer.locale.missingVideoSource).attr("title",n.ig.VideoPlayer.locale.unsupportedVideoSource)},_showUnsupportedVideoSourceMsg:function(){var t=n("#"+this._id("_detectError"));return t.length===0&&(t=this._createUnsupportedVideoSourceMsg()),t.show()},_hideUnsupportedVideoSourceMsg:function(){n("#"+this._id("_detectError")).hide()},_createBigPlayButton:function(){var n=this,t=this.css;this._createButton(this._id("_play"),t.centerPlayButtonClass,t.centerPlayButtonIconClass,"").bind({click:function(t){t.preventDefault();t.button===0&&n._onVideoClick(!0)},dblclick:function(t){t.preventDefault();t.button===0&&n._onVideoDblClick()}})},_createButton:function(t,i,r,u){return n("<span><\/span>").html(u).addClass(r).appendTo(n("<a><\/a>").attr("id",t).attr("href",this._const.HREF).attr("tabIndex",-1).addClass("ui-state-default").addClass(i).appendTo(this.container)),n("#"+t).bind({mouseover:function(){n(this).addClass("ui-state-hover")},mouseout:function(){n(this).removeClass("ui-state-hover")}}).hide()},_showCenterPlayButton:function(){var i=this.currentVideo,t=n("#"+this._id("_play")),r=Math.floor(i.height()/2),u=Math.floor(i.width()/2),f=r-Math.floor(t.innerHeight()/2),e=u-Math.floor(t.innerWidth()/2);return t.css("position","absolute").css("left",e).css("top",f),t.show()},_toggleCenterPlayButton:function(){var i=this.currentVideo[0],r=this.options,t=this.css;i.paused||i.ended?this._showCenterPlayButton().removeClass(t.centerPauseButtonClass).addClass(t.centerPlayButtonClass):this._showCenterPlayButton().removeClass(t.centerPlayButtonClass).addClass(t.centerPauseButtonClass);setTimeout(n.proxy(this._hideCenterPlayButton,this),r.centerButtonHideDelay)},_hideCenterPlayButton:function(){return n("#"+this._id("_play")).hide()},_createWaitingIndicator:function(){var t=this.css;this._createButton(this._id("_waiting"),t.waitingIndicatorClass,t.waitingIndicatorIconClass,n.ig.VideoPlayer.locale.buffering)},_createSeekTimeToolTip:function(){n("<div><\/div>").attr("id",this._id("_seek_tooltip")).hide().igTooltip({text:"00:00",arrowLocation:"bottom"}).appendTo(this.container).addClass(this.css.seekTooltipClass)},_showSeekTimeToolTip:function(t,i,r){var u=n("#"+this._id("_seek_tooltip"));u.css("top",i-u.outerHeight()).css("left",t-u.width()/2).igTooltip("option","text",this._toTimeString(r)).show()},_showWaitingIndicator:function(){if(!n("#"+this._id("_detectError")).is(":visible")){var i=this.currentVideo,t=n("#"+this._id("_waiting")),r=Math.floor(i.height()/2),u=Math.floor(i.width()/2),f=r-Math.floor(t.innerHeight()/2),e=u-Math.floor(t.innerWidth()/2);t.css("position","absolute").css("left",e).css("top",f).show()}},_hideWaitingIndicator:function(){n("#"+this._id("_waiting")).hide()},_renderTitleControls:function(){var i=this.options.title,u=this,r,t='<div id="'+this._id("_title_ctrls")+'" class="ui-widget-header ui-igplayer-controls ui-igplayer-grid ui-igplayer-title-controls ui-corner-all">';return t+='<div class="ui-igplayer-row">',t+='<div class="ui-igplayer-container ui-igplayer-cell ui-igplayer-playback-alone">',t+='\t\t<a id="'+this._id("_title_ctrls_play")+'" class="ui-button ui-igplayer-playbutton ui-igplayer-playback-with-time ui-state-default ui-corner-all ui-priority-primary" href="'+this._const.HREF+'">',t+='\t\t\t<span title="'+n.ig.VideoPlayer.locale.play+'" class="ui-icon ui-icon-play ui-igplayer-playbutton-icon"><\/span>',t+='\t\t\t<span title="00:00" class="ui-button-text ui-igplayer-playbutton-text">00:00<\/span>',t+="\t\t<\/a>",t+="<\/div>",t+='<div id="'+this._id("_title_ctrls_t")+'" class="ui-igplayer-container ui-igplayer-cell ui-igplayer-video-title">',i&&i.length>0&&(t+=i),t+="<\/div><\/div><\/div>",r=n(t).appendTo(this.container).wrap('<div style="position:absolute; width: 100%;"><\/div>'),this.options.width&&r.parent().css("width",this.options.width),n("#"+this._id("_title_ctrls_play")).bind({click:function(n){n.preventDefault();n.button!==0||u.options.disabled||u.togglePlay()}}),r},_hideTitleControls:function(){this._activeControlsIndex!==0&&(this._activeControlsIndex=0,n("#"+this._id("_title_ctrls")).addClass(this.css.controlsHideClass).parent().remove(),n("#"+this._id("_ctrls")).parent().show())},_convertBookmarks:function(n,t,i,r){var h=t.length,o=[],f=0,u,e,s;for(f;f<h;f++)u=t[f],u[n]>0&&u[n]<i&&(s=parseInt(u[n]/i*100,10),e={value:s,secondsValue:u[n],displayTime:this._toTimeString(u[n]),index:f,title:u.title,disabled:u.disabled},r&&r.length>0&&(e.css=r),o.push(e));return o},_renderBookmarks:function(){var e=this.options,o=e.bookmarks||[],i=e.commercials,s=i.linkedCommercials||[],h=i.embeddedCommercials||[],r=this.currentVideo[0].duration,t=[],u=[],f=[];i.showBookmarks&&(s.length>0&&(u=this._convertBookmarks("startTime",s,r,this.css.linkedBookmarkClass)),h.length>0&&(f=this._convertBookmarks("startTime",h,r,this.css.adBookmarkClass)));o.length>0&&(t=this._convertBookmarks("time",o,r),t.length>0&&this._renderBookmarkArea(t));u.length>0&&n.merge(t,u);f.length>0&&n.merge(t,f);t.length>0&&n("#"+this._id("_ctrls_s")).igSlider("option","bookmarks",t);this._bookmarksRendered=!0},_renderBookmarkArea:function(t){if(t&&t.length>0){var i=this.css,h='<li class="ui-corner-all $class$"><span class="'+i.bookmarkItemTimeClass+'">$time$<\/span><span class="'+i.bookmarkItemTitleClass+'" title="$titleAttr$">$title$<\/span><\/li>',e='<div id="$id$" class="$bookmarkContainerClass$"><div class="$headerClass$">$headerText$<\/div><ul class="$bookmarkListClass$">$list$<\/ul><\/div>',o="",s,u,f=0,c=t.length,r=this;for(f;f<c;f++)u=t[f],o+=h.replace("$time$",u.displayTime).replace("$titleAttr$",u.title).replace("$title$",u.title).replace("$class$",u.disabled?i.bookmarkItemDisabledClass:"");e=e.replace("$id$",this._id("_bookmarks")).replace("$bookmarkContainerClass$",i.bookmarkContainerClass).replace("$headerClass$",i.bookmarkContainerHeaderClass).replace("$bookmarkListClass$",i.bookmarkListClass).replace("$headerText$",n.ig.VideoPlayer.locale.skipTo).replace("$list$",o);s=n(e).appendTo(this.container);this.bookmarkElements=n("li",n("#"+this._id("_bookmarks")));this.bookmarkElements.each(function(i){n(this).data("bookmark-index",t[i].index);n(this).data("bookmark-sec-value",t[i].secondsValue)});this.bookmarkElements.bind({click:function(i){var u=n(this).data("bookmark-index"),f=r.options.bookmarks[u];i.stopPropagation();i.preventDefault();f.disabled||(r.paused()&&r.togglePlay(),r.currentTime(n(this).data("bookmark-sec-value")),r._changeActiveBookmark(u),r._bookmarkClick(f,t[u],i))}});this.options.height&&(this.currentVideo.css("height",this.container.height()-s.height()),this._resizeBookmarkAreaTimeoutId=setTimeout(n.proxy(this._onPlayerResize,this),500))}},_onPlayerResize:function(){var i=this.options,t=this.container.height(),r=this.container.width(),u=n("#"+this._id("_bookmarks"));(i.height||i.width)&&(this._oldContainerHeight!==t||this._oldContainerWidth!==r)&&(this.currentVideo.css("height",t-u.height()),this._oldContainerHeight=t,this._oldContainerWidth=r);this._resizeBookmarkAreaTimeoutId=setTimeout(n.proxy(this._onPlayerResize,this),250)},_ensureVolume:function(){this.options.volume=this.currentVideo[0].volume},_renderControls:function(){n("body").addClass("ui-igplayer-normal-screen-mode");this.options.showSeekTime&&this._createSeekTimeToolTip();var s=this.currentVideo[0],t=this,r,f=[],e=this.options.autoplay,u=this._const.HREF,i='<div id="'+this._id("_ctrls")+'" class="$controlsClass$">',o;i+='\t\t\t<div class="ui-igplayer-row">';i+='\t\t\t\t<div class="ui-igplayer-container ui-igplayer-cell ui-igplayer-playback">';i+='\t\t\t\t\t<a id="$playButtonId$" class="$playButtonClass$" href="'+u+'"><\/a>';i+="\t\t\t\t<\/div>";i+='\t\t\t\t<div class="ui-igplayer-container ui-igplayer-cell ui-igplayer-progress-bar">';i+='\t\t\t\t\t<div id="$progressBarId$" class="$progressBarClass$"><\/div>';i+="\t\t\t\t<\/div>";i+='\t\t\t\t<div class="ui-igplayer-container ui-igplayer-extra">';i+='\t\t\t\t\t<div class="ui-igplayer-grid">';i+='\t\t\t\t\t\t<div class="ui-igplayer-row">';i+='\t\t\t\t\t\t\t<div class="ui-igplayer-cell">';i+='\t\t\t\t\t\t\t\t<a id="$progressLabelId$" class="$progressLabelClass$" href="'+u+'"><\/a>';i+="\t\t\t\t\t\t\t<\/div>";i+='\t\t\t\t\t\t\t<div class="ui-igplayer-cell">';i+="                               <div>";i+='                                   <div id="$volumeSliderId$" class="$volumeSliderClass$"><\/div>';i+="\t\t\t\t\t\t\t\t\t<div>";i+='\t\t\t\t\t\t\t\t\t\t<a id="$volumeControlId$" class="$volumeControlClass$" href="'+u+'"><\/a>';i+="\t\t\t\t\t\t\t\t\t<\/div>";i+="                               <\/div>";i+="\t\t\t\t\t\t\t<\/div>";i+='\t\t\t\t\t\t\t<div class="ui-igplayer-cell">';i+='\t\t\t\t\t\t\t\t<a id="$fullScreenId$" class="$fullScreenClass$" href="'+u+'"><\/a>';i+="\t\t\t\t\t\t\t<\/div>";i+="\t\t\t\t\t\t<\/div>";i+="\t\t\t\t\t<\/div>";i+="\t\t\t\t<\/div>";i+="\t\t\t<\/div>";i+="\t\t<\/div>";i=i.replace("$playButtonClass$",this.css.playButtonClass).replace("$progressBarClass$",this.css.progressBarClass).replace("$fullScreenClass$",this.css.fullScreenClass).replace("$controlsClass$",this.css.controlsClass).replace("$volumeControlClass$",this.css.volumeControlClass).replace("$volumeSliderClass$",this.css.volumeSliderClass).replace("$progressLabelClass$",this.css.progressLabelClass);i=i.replace("$playButtonId$",this._id("_ctrls_play")).replace("$progressBarId$",this._id("_ctrls_s")).replace("$fullScreenId$",this._id("_ctrls_fs_btn")).replace("$volumeControlId$",this._id("_ctrls_vc_btn")).replace("$volumeSliderId$",this._id("_ctrls_vs")).replace("$progressLabelId$",this._id("_ctrls_pl"));r=n(i).appendTo(this.container).wrap('<div style="position:absolute; width: 100%;"><\/div>');this.options.width&&r.parent().css("width",this.options.width);f.push(r);e||s.currentTime!==0?this._activeControlsIndex=0:(r.parent().hide(),this._activeControlsIndex=1,f.push(this._renderTitleControls()));this.controls=n(f);n("#"+this._id("_ctrls_play")).bind({click:function(i){i.preventDefault();n(this).igButton("option","disabled")||t.togglePlay()}}).igButton({link:{href:this._const.HREF},css:{buttonLabelClass:"ui-icon "+(e?"ui-icon-pause ":"ui-icon-play ")+"ui-igplayer-playbutton-icon "}}).addClass("ui-priority-primary").attr("title",e?n.ig.VideoPlayer.locale.playing:n.ig.VideoPlayer.locale.paused);n("#"+this._id("_ctrls_fs_btn")).bind({click:function(n){n.preventDefault();t._setOption("fullscreen",!t.options.fullscreen)}}).igButton({link:{href:this._const.HREF},css:{buttonLabelClass:this.css.fullScreenIconClass}}).attr("title",n.ig.VideoPlayer.locale.enterFullscreen);n('<div id="'+this._id("_ctrls_pb")+'"><\/div>').appendTo(n("#"+this._id("_ctrls_s")).igSlider({slide:function(n,i){if(n.originalEvent===undefined)return!1;clearTimeout(t._slideTimeout);t._slideTimeout=setTimeout(t._createDelegate(t,t._slide,[i]),t._const.SLIDE_SEEK_TIMEOUT)},start:function(){t._userSliding=!0},stop:function(){t._userSliding=!1},bookmarkhit:function(n,i){var r=i.bookmark.index,u=t.bookmarkElements;u&&u.length>0&&(t._changeActiveBookmark(r),t._bookmarkHit(t.currentVideo[0].currentSrc,t.options.bookmarks[r],u[r],n))},bookmarkclick:function(i,r){var u;return n(r.bookmarkElement).hasClass("ui-igplayer-linked-bookmark")?u=t.options.commercials.linkedCommercials[r.bookmark.index]:n(r.bookmarkElement).hasClass("ui-igplayer-ad-bookmark")?u=t.options.commercials.embeddedCommercials[r.bookmark.index]:(u=t.options.bookmarks[r.bookmark.index],t._changeActiveBookmark(r.bookmark.index)),o=u.time?u.time:u.startTime,t.currentTime(o),t._bookmarkClick(u,r.bookmarkElement,i),!1},min:0,max:100,animate:!0}).css("display","block")).igProgressBar({range:!0,endValue:0});n("#"+this._id("_ctrls_pb")).bind({mousemove:function(i){if(t.options.showSeekTime&&this.offsetWidth>0){var e=i.pageX-this.offsetLeft-n(this).offset().left,o=parseInt(e/this.offsetWidth*100,10),r=s.duration,u,f=t.container.offset();isNaN(r)||r===Infinity||t._commercialPlaying||(u=parseInt(o*r/100,10),t._showSeekTimeToolTip(i.pageX-f.left,i.pageY-f.top,u))}},mouseout:function(){n("#"+t._id("_seek_tooltip")).hide()}});n("#"+this._id("_ctrls_pl")).bind({click:function(n){n.preventDefault()}});n("#"+this._id("_ctrls_vc_btn")).bind({mouseover:function(){t._showVolumeSlider()},mouseout:function(i){jQuery.contains(i.currentTarget,i.relatedTarget)||i.currentTarget===i.relatedTarget||(t._volumeSliderTimeoutId=setTimeout(n.proxy(t._hideVolumeSlider,t),t.options.volumeAutohideDelay))},click:function(n){n.preventDefault();t._setOption("muted",!t.options.muted)}}).igButton({link:{href:this._const.HREF},css:{buttonLabelClass:"ui-icon "+(this.options.muted?"ui-icon-volume-off ":"ui-icon-volume-on ")+"ui-igbutton-icon"}}).attr("title",n.ig.VideoPlayer.locale.volume);n("#"+this._id("_ctrls_vs")).hide().bind({mouseover:function(){t._volumeSliderMouseOut=!1;clearTimeout(t._volumeSliderTimeoutId)},mouseout:function(){t._userSlidingVolume||(t._volumeSliderTimeoutId=setTimeout(n.proxy(t._hideVolumeSlider,t),t.options.volumeAutohideDelay));t._volumeSliderMouseOut=!0}}).igSlider({slide:function(n,i){n.originalEvent!==undefined&&t._setOption("volume",parseFloat(parseInt(i.value,10)/100))},start:function(){t._userSlidingVolume=!0},stop:function(){t._userSlidingVolume=!1},min:0,max:100,step:10,orientation:"vertical",value:this.options.muted?0:this.options.volume*100});n("#"+this._id("_ctrls_vs")).data("igSlider").handle.attr("tabIndex",-1).bind({blur:function(){t._volumeSliderTimeoutId=setTimeout(n.proxy(t._hideVolumeSlider,t),t.options.volumeAutohideDelay)}});this.controlButtons=n([document.getElementById(this._id("_ctrls_play")),n("a.ui-state-default",n("#"+this._id("_ctrls_s")))[0],document.getElementById(this._id("_ctrls_vc_btn")),document.getElementById(this._id("_ctrls_fs_btn"))]);this.controlButtons.each(function(t){n(this).data("index.control-button",t)});this.controlButtons.bind({keydown:function(n){t._handleKbNavigation(n)},focus:function(n){t._handleFocusKb(n)},blur:function(n){t._handleBlurKb(n)}});n("#"+this._id("_ctrls_vc_btn")).bind({focus:function(){t._showVolumeSlider()},blur:function(){t._transferFocusFromVolumeButtonToVolumeSlider||t._hideVolumeSlider();t._transferFocusFromVolumeButtonToVolumeSlider=!1},keydown:function(i){i.keyCode===n.ui.keyCode.TAB&&(i.preventDefault(),i.stopPropagation(),t._transferFocusFromVolumeButtonToVolumeSlider=!0,n("#"+t._id("_ctrls_vs")).data("igSlider").handle.focus())}});n("#"+t._id("_ctrls_vs")).data("igSlider").handle.bind({keydown:function(i){i.keyCode===n.ui.keyCode.TAB&&(i.preventDefault(),i.stopPropagation(),n("#"+t._id("_ctrls_fs_btn")).focus())}})},_slide:function(n){var i=n.value,t=this.currentVideo[0].duration,r=t*(i/100);isNaN(t)||t===Infinity||this.currentTime(r);this._userSliding=!1},_changeActiveBookmark:function(t){var r=this._activeBookmarkIndex,i=this.bookmarkElements;i&&i.length>0&&t!==r&&(r>=0&&r<i.length&&n(i[r]).removeClass(this.css.bookmarkActiveItemClass),t>=0&&t<i.length&&(n(i[t]).addClass(this.css.bookmarkActiveItemClass),this._activeBookmarkIndex=t))},_adjustVolumeButton:function(t){var i=n("#"+this._id("_ctrls_vc_btn"));t===0?n("span",i).removeClass("ui-icon-volume-on").addClass("ui-icon-volume-off"):n("span",i).removeClass("ui-icon-volume-off").addClass("ui-icon-volume-on")},_hideVolumeSlider:function(){var t=n("#"+this._id("_ctrls_vs"));t.data("igSlider").handle.attr("tabIndex",-1);t.hide()},_showVolumeSlider:function(){clearTimeout(this._volumeSliderTimeoutId);var t=n("#"+this._id("_ctrls_vs"));t.data("igSlider").handle.removeAttr("tabIndex");t.show()},_ended:function(n,t,i){var r={source:n,duration:t};return this._trigger(this.events.ended,i,r)},_playing:function(n,t,i){var r={source:n,duration:t,currentTime:this.currentVideo[0].currentTime};return this._trigger(this.events.playing,i,r)},_paused:function(n,t,i){var r={source:n,duration:t,currentTime:this.currentVideo[0].currentTime};return this._trigger(this.events.paused,i,r)},_buffering:function(n,t,i){var r={source:n,buffered:t};return this._trigger(this.events.buffering,i,r)},_progress:function(n,t,i,r){var u={source:n,currentTime:t,duration:i};return this._trigger(this.events.progress,r,u)},_waiting:function(n,t,i,r){var u={source:n,currentTime:t,duration:i};return this._trigger(this.events.waiting,r,u)},_bookmarkHit:function(n,t,i,r){var u={source:n,bookmark:t,bookmarkElement:i};return this._trigger(this.events.bookmarkHit,r,u)},_bookmarkClick:function(n,t,i){var r={bookmark:n,bookmarkElement:t};return this._trigger(this.events.bookmarkClick,i,r)},_enterFullScreen:function(n){var t={source:n};return this._trigger(this.events.enterFullScreen,null,t)},_exitFullScreen:function(n){var t={source:n};return this._trigger(this.events.exitFullScreen,null,t)},_bannerVisible:function(n,t){var i={index:n,banner:this.options.banners[n],bannerElement:t};return this._trigger(this.events.bannerVisible,null,i)},_bannerHidden:function(n,t){var i={index:n,banner:this.options.banners[n],bannerElement:t};return this._trigger(this.events.bannerHidden,null,i)},_prepareForPlay:function(){var i=this.options,t=this.currentVideo;n("source",t).length===0&&this._renderSources(i.sources,t);t.data("sourceDetected")||this._analyzeSource(t);this._hideTitleControls();i.relatedVideos&&i.relatedVideos.length>0&&n("#"+this._id("_rvcc")).hide()},togglePlay:function(){var t=this.currentVideo[0];this._prepareForPlay();this._toggleCenterPlayButton();t.paused||t.ended?(this.options.browserControls||n("#"+this._id("_ctrls_play")).attr("title",n.ig.VideoPlayer.locale.playing),t.play()):(this.options.browserControls||n("#"+this._id("_ctrls_play")).attr("title",n.ig.VideoPlayer.locale.paused),t.pause())},play:function(){var t=this.currentVideo[0];(t.paused||t.ended)&&(this._prepareForPlay(),this._toggleCenterPlayButton(),this.options.browserControls||n("#"+this._id("_ctrls_play")).attr("title",n.ig.VideoPlayer.locale.playing),t.play())},pause:function(){var t=this.currentVideo[0];t.paused||(this._toggleCenterPlayButton(),this.options.browserControls||n("#"+this._id("_ctrls_play")).attr("title",n.ig.VideoPlayer.locale.paused),t.pause())},currentTime:function(t){var i=this.currentVideo[0],r=i.duration;if(t!==null&&t!==undefined){try{i.currentTime=t;n("#"+this._id("_ctrls_pb")).igProgressBar("option","value",(t/r).toFixed(2)*100);this._checkCommercialsShow(t);this._checkEmbeddedCommercialShow(t)}catch(u){}i.paused&&!isNaN(r)&&n("#"+this._id("_ctrls_s")).igSlider("option","value",(t/r).toFixed(2)*100)}return parseInt(i.currentTime,10)},screenshot:function(t){t&&n.type(t)==="number"||(t=1);var r=this.currentVideo[0],u=r.videoWidth*t,f=r.videoHeight*t,i=document.createElement("canvas"),e;return i.getContext&&(i.width=u,i.height=f,e=i.getContext("2d"),e.drawImage(r,0,0,u,f)),i},supports_video:function(){return!!document.createElement("video").canPlayType},supports_h264_baseline_video:function(){if(!this.supports_video())return!1;var n=document.createElement("video");return n.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')!==""},supports_ogg_theora_video:function(){if(!this.supports_video())return!1;var n=document.createElement("video");return n.canPlayType('video/ogg; codecs="theora, vorbis"')!==""},supports_webm_video:function(){if(!this.supports_video())return!1;var n=document.createElement("video");return n.canPlayType('video/webm; codecs="vp8, vorbis"')!==""},paused:function(){return this.currentVideo[0].paused},ended:function(){return this._getMainVideo()[0].ended},duration:function(){return this._refreshDuration(),this._duration},_refreshDuration:function(){var t=this.currentVideo[0].duration;t!==this._duration&&(this._duration=t,t===Infinity?(this._updateTitleControlsTimeString(n.ig.VideoPlayer.locale.live,n.ig.VideoPlayer.locale.liveStream),n("#"+this._id("_ctrls_s")).data("igSlider").handle.hide(),n("#"+this._id("_ctrls_s")).igSlider("option","disabled",!0)):isNaN(t)||(this._commercialPlaying?this._showAdMessage(parseInt(t,10)):(this._updateTitleControlsTimeString(this._toTimeString(t)),!this._bookmarksRendered&&t>0&&this._renderBookmarks())))},seeking:function(){return this.currentVideo[0].seeking},destroy:function(){var t=this.css;clearTimeout(this._scrollingTimoutId);clearTimeout(this._volumeSliderTimeoutId);clearTimeout(this._onVideoStateChangeId);clearTimeout(this._resizeBookmarkAreaTimeoutId);this._oldWidth&&this.element.css("width",this._oldWidth);this._oldHeight&&this.element.css("height",this._oldHeight);this.container.unbind(this._generalEvts);n(document).unbind(this._documentEvts);this._controlsEvts&&this.container.unbind(this._controlsEvts);this.container.removeClass(t.baseClasses);n("#"+this._id("_ctrls_s")).igSlider("destroy");n("#"+this._id("_ctrls_pb")).igProgressBar("destroy");n("#"+this._id("_ctrls_vs")).igSlider("destroy");n("#"+this._id("_seek_tooltip")).igTooltip("destroy");this._commercialsShow&&(delete this._commercialsShow,delete this._commercialIndex,delete this._commercialPlaying);this._embeddedCommercialsShow&&(delete this._embeddedCommercialPlaying,delete this._embeddedCommercialIndex,delete this._embeddedCommercialsShow);delete this.bookmarkElements;delete this.relatedVideoElements;delete this.controlButtons;delete this._bannerShow;delete this.banner;this.element.is("video")?(this.element.unbind(this._videoEvents),this.element.removeClass(t.videoClass),this._restoreExistingVideoProperties(this.element),n(":not(video)",this.container).remove(),this.element.unwrap()):this.container.children().remove();n.Widget.prototype.destroy.apply(this,arguments)},_destroyBookmarks:function(){this.bookmarkElements&&this.bookmarkElements.length>0&&(this.bookmarkElements.unbind(),this.bookmarkElements.removeData(),delete this.bookmarkElements,n("#"+this._id("_bookmarks")).remove(),n("#"+this._id("_ctrls_s")).igSlider("clearBookmarks"),this._bookmarksRendered=!1)},_destroyRelatedVideos:function(){var t=this.options.relatedVideos;t&&t.length>0&&(n("#"+this._id("_rvcc")).remove(),delete this.relatedVideoElements,t=[])},_destroyControls:function(){var t=this.options.browserControls;t||(n("#"+this._id("_ctrls_play")).igButton("destroy"),n("#"+this._id("_ctrls_vc_btn")).igButton("destroy"),n("#"+this._id("_ctrls_fs_btn")).igButton("destroy"),n("#"+this._id("_ctrls_pb")).igProgressBar("destroy"),n("#"+this._id("_ctrls_s")).igSlider("destroy"),n("#"+this._id("_ctrls_vs")).igSlider("destroy"),this.controls.each(function(){n(this).parent().remove()}),delete this.controls,delete this.controlButtons,delete this._activeControlsIndex)}});n.extend(n.ui.igVideoPlayer,{version:"14.1.20141.2031"})}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["AbstractEnumerable:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","IEnumerable:x","IEnumerator:y","Func$1:z","MulticastDelegate:aa","IntPtr:ab","AbstractEnumerator:ac","IEnumerable$1:ad","IEnumerator$1:ae","ICollection$1:af","IList$1:ag","IArrayList:ah","Array:ai","ICollection:aj","CompareCallback:ak","List$1:al","IList:am","IDisposable:an","IArray:ao","Script:ap","Date:aq","Date:ar","Number:as","Func$3:at","Action$1:au","Collection$1:av","IDictionary$2:aw","Dictionary$2:ax","IDictionary:ay","Dictionary:az","IEqualityComparer$1:a0","KeyValuePair$2:a1","NotImplementedException:a2","Error:a3","GenericEnumerable$1:a4","GenericEnumerator$1:a5","INotifyCollectionChanged:a6","NotifyCollectionChangedEventHandler:a7","NotifyCollectionChangedEventArgs:a8","EventArgs:a9","NotifyCollectionChangedAction:ba","LinkedList$1:bb","LinkedListNode$1:bc","ObservableCollection$1:bd","INotifyPropertyChanged:be","PropertyChangedEventHandler:bf","PropertyChangedEventArgs:bg","Delegate:bh","Queue$1:bi","ReadOnlyCollection$1:bj","ReadOnlyObservableCollection$1:bk","NameValueCollection:bl","Stack$1:bm","ReverseArrayEnumerator$1:bn","IComparer$1:bo","Expression:bp","MethodCallExpression:bq","LambdaExpression:br","ParameterExpression:bs","MemberExpression:bt","IOrderedEnumerable$1:bu","Queryable:bv","IQueryable:bw","IQueryProvider:bx","IQueryable$1:by","Enumerable:bz","Func$2:b0","SortedList$1:b1","Math:b2","Number:b3","Number:b4","Number:b5","Number:b6","Number:b7","Number:b8","Number:b9","ArgumentNullException:ca","IGrouping$2:cb","DependencyObject:cc","DependencyProperty:cd","PropertyMetadata:ce","PropertyChangedCallback:cf","DependencyPropertyChangedEventArgs:cg","DependencyPropertiesCollection:ch","UnsetValue:ci","Binding:cj","PropertyPath:ck","Test:cl","Activator:cm","AggregateException:cn","ArgumentException:co","ArgumentOutOfRangeException:cp","AsyncCompletedEventArgs:cq","AsyncCompletedEventHandler:cr","ListSortDirection:cs","Convert:ct","Environment:cu","InvalidOperationException:cv","Debug:cw","IEquatable$1:cx","BinaryReader:cy","ICredentials:cz","NetworkCredential:c0","Uri:c1","UploadStringCompletedEventHandler:c2","UploadStringCompletedEventArgs:c3","WebClient:c4","Encoding:c5","UTF8Encoding:c6","UnicodeEncoding:c7","WebHeaderCollection:c8","Task$1:c9","Task:da","JQueryPromise:db","Action:dc","TaskStatus:dd","TaskCompletionSource$1:de","JQueryDeferred:df","JQuery:dg","JQueryObject:dh","Element:di","ElementAttributeCollection:dj","ElementCollection:dk","WebStyle:dl","ElementNodeType:dm","Document:dn","EventListener:dp","IElementEventHandler:dq","ElementEventHandler:dr","ElementAttribute:ds","JQueryPosition:dt","JQueryCallback:du","JQueryEvent:dv","JQueryUICallback:dw","FaultCode:dx","FaultException:dy","FaultReason:dz","FaultException$1:d0","StringBuilder:d1","BinaryFileDownloader:d2","Random:d3","TaskFactory:d4","Tuple$2:d5","JavaScriptSerializer:d6","UIElement:d7","Transform:d8","UIElementCollection:d9","FrameworkElement:ea","Visibility:eb","Style:ec","Control:ed","Thickness:ee","HorizontalAlignment:ef","VerticalAlignment:eg","ContentControl:eh","DataTemplate:ei","DataTemplateRenderHandler:ej","DataTemplateRenderInfo:ek","DataTemplatePassInfo:el","DataTemplateMeasureHandler:em","DataTemplateMeasureInfo:en","DataTemplatePassHandler:eo","Panel:ep","Canvas:eq","Image:er","TextBlock:es","Brush:et","Color:eu","CornerRadius:ev","Key:ew","ModifierKeys:ex","MouseEventArgs:ey","Point:ez","MouseButtonEventArgs:e0","LinearGradientBrush:e1","GradientStop:e2","DoubleCollection:e3","FillRule:e4","GeometryType:e5","Geometry:e6","GeometryCollection:e7","GeometryGroup:e8","LineGeometry:e9","RectangleGeometry:fa","Rect:fb","Size:fc","EllipseGeometry:fd","PathGeometry:fe","PathFigureCollection:ff","PathFigure:fg","PathSegmentCollection:fh","PathSegmentType:fi","PathSegment:fj","LineSegment:fk","BezierSegment:fl","PolyBezierSegment:fm","PointCollection:fn","PolyLineSegment:fo","ArcSegment:fp","SweepDirection:fq","PenLineCap:fr","Stretch:fs","RotateTransform:ft","TranslateTransform:fu","ScaleTransform:fv","TransformGroup:fw","TransformCollection:fx","CoerceValueCallback:fy","Shape:fz","Line:f0","Path:f1","Polygon:f2","Polyline:f3","Rectangle:f4","StyleTypedPropertyAttribute:f5","Attribute:f6","TemplatePartAttribute:f7","TemplateVisualStateAttribute:f8","XObject:f9","XmlNode:ga","XmlNodeList:gb","XmlNamedNodeMap:gc","XmlNodeType:gd","XmlDocument:ge","XmlElement:gf","XmlLinkedNode:gg","XmlAttribute:gh","XmlUtils:gi","XAttribute:gj","XNode:gk","XContainer:gl","XElement:gm","XName:gn","XNamespace:go","XDocument:gp"]);n.ig.util.defType("Visibility:eb","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("Visibility",n.ig.$ep.$type)},!0);n.ig.util.defType("VerticalAlignment:eg","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("VerticalAlignment",n.ig.$ep.$type)},!0);n.ig.util.defType("Stretch:fs","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("Stretch",n.ig.$ep.$type)},!0);n.ig.util.defType("PenLineCap:fr","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("PenLineCap",n.ig.$ep.$type)},!0);n.ig.util.defType("HorizontalAlignment:ef","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("HorizontalAlignment",n.ig.$ep.$type)},!0);n.ig.util.defType("SweepDirection:fq","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("SweepDirection",n.ig.$ep.$type)},!0);n.ig.util.defType("PathSegmentType:fi","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("PathSegmentType",n.ig.$ep.$type)},!0);n.ig.util.defType("GeometryType:e5","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("GeometryType",n.ig.$ep.$type)},!0);n.ig.util.defType("FillRule:e4","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("FillRule",n.ig.$ep.$type)},!0);n.ig.util.defType("ModifierKeys:ex","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ModifierKeys",n.ig.$ep.$type)},!0);n.ig.util.defType("Key:ew","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("Key",n.ig.$ep.$type)},!0);n.ig.util.defType("TaskStatus:dd","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("TaskStatus",n.ig.$ep.$type)},!0);n.ig.util.defType("ListSortDirection:cs","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ListSortDirection",n.ig.$ep.$type)},!0);n.ig.util.defType("NotifyCollectionChangedAction:ba","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("NotifyCollectionChangedAction",n.ig.$ep.$type)},!0);n.ig.util.defType("AbstractEnumerable:a","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},getEnumerator:function(){return new t.ac(this.a().getEnumerator())},$type:new n.ig.Type("AbstractEnumerable",n.ig.$ot,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("AbstractEnumerator:ac","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},current:function(){return this.a.current()},moveNext:function(){return this.a.moveNext()},reset:function(){this.a.reset()},$type:new n.ig.Type("AbstractEnumerator",n.ig.$ot,[n.ig.IEnumerator.prototype.$type])},!0);n.ig.util.defType("IEnumerable$1:ad","Object",{$type:new n.ig.Type("IEnumerable$1",null,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("ICollection$1:af","Object",{$type:new n.ig.Type("ICollection$1",null,[t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("IList$1:ag","Object",{$type:new n.ig.Type("IList$1",null,[t.$af.$type.specialize(0),t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("IArrayList:ah","Object",{$type:new n.ig.Type("IArrayList",null)},!0);n.ig.util.defType("List$1:al","Object",{$t:null,__inner:null,init:function(t,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.e={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.__inner=new n.ig.Array},init1:function(t,i,r){var u,f;if(this.e={},this.$t=t,this.$type=this.$type.specialize(this.$t),n.ig.$op.init.call(this),this.__inner=new n.ig.Array,!this.b(0,r))for(u=r.getEnumerator();u.moveNext();)f=u.current(),this.add1(f)},init2:function(t){this.e={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.__inner=new n.ig.Array},o:function(n,t){this.__inner[n]=t},j:function(n,t){this.__inner.insert(n,t)},f:function(n){this.__inner.add(n)},m:function(n){this.__inner.removeAt(n)},h:function(){this.__inner.clear()},item:function(n,t){return arguments.length===2?(this.o(n,t),t):this.__inner[n]},indexOf:function(n){return this.__inner.indexOf(n)},insert:function(n,t){this.j(n,t)},removeAt:function(n){this.m(n)},count:function(){return this.__inner.length},isReadOnly:function(){return!1},add1:function(n){this.f(n)},clear:function(){this.h()},contains1:function(n){return this.__inner.contains(n)},copyTo:function(n,t){for(var i=0;i<this.__inner.length;i++)n[t+i]=this.__inner[i]},remove1:function(n){var t=this.indexOf(n);return t<0?!1:(this.m(t),!0)},getEnumerator:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__inner.getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerator$1(this.$t,i())},asArrayList:function(){return this.__inner},b:function(i,r){var s=n.ig.util.cast(t.$ah.$type,r),e,f,u,o;if(s!=null)return this.__inner.insertRange1(i,s.asArrayList()),!0;if(e=n.ig.util.cast(t.$ao.$type,r),e!=null)return this.__inner.insertRange(i,e.asArray()),!0;if(f=n.ig.util.cast(t.$ag.$type.specialize(this.$t),r),f!=null){for(u=0;u<f.count();u++)this.__inner.insert(i+u,f.item(u));return!0}return(o=n.isArray(r)?r:null,o!=null)?(this.__inner.insertRange(i,o),!0):!1},insertRange1:function(n,t){var i,r,u;if(!this.b(n,t))for(i=0,r=t.getEnumerator();r.moveNext();)u=r.current(),this.__inner.insert(n+i,u),i++},insertRange:function(n,t){var i,r,u;if(!this.b(n,t))for(i=0,r=t.getEnumerator();r.moveNext();)u=r.current(),this.__inner.insert(n+i,u),i++},removeRange:function(n,t){this.__inner.splice(n,t)},copyTo1:function(n,t){this.__inner.copyTo(n,t)},isFixedSize:function(){return!1},add:function(n){return this.f(n),this.__inner.length-1},contains:function(n){return this.__inner.contains(n)},indexOf1:function(n){return this.__inner.indexOf(n)},insert1:function(n,t){this.j(n,t)},remove:function(n){var t=this.indexOf1(n);this.m(t)},sort:function(){var i=this,r=null;r=i.$t==Number?function(n,t){var i=n,r=t;return i<r?-1:i==r?0:1}:i.$t==n.ig.Single.prototype.$type?function(n,t){var i=n,r=t;return i<r?-1:i==r?0:1}:i.$t==n.ig.Number.prototype.$type?function(n,t){var i=n,r=t;return i<r?-1:i==r?0:1}:i.$t==t.$aq.$type?function(n,t){var i=n,r=t;return i.getTime()<r.getTime()?-1:i.getTime()==r.getTime()?0:1}:function(n,t){return n.compareTo(t)};i.r(r)},r:function(n){this.__inner.sort(n)},sort1:function(n){var t=this;t.__inner.sort(function(t,i){var r=t,u=i;return n(r,u)})},_capacity:0,capacity:function(n){return arguments.length===1?(this._capacity=n,n):this._capacity},addRange:function(n){for(var t=n.getEnumerator(),i;t.moveNext();)i=t.current(),this.__inner.add(i)},toArray:function(){return this.__inner.slice(0)},forEach:function(){},isSynchronized:function(){return!0},e:null,syncRoot:function(){return this.e},$type:new n.ig.Type("List$1",n.ig.$ot,[t.$ag.$type.specialize(0),t.$ah.$type,n.ig.IList.prototype.$type])},!0);n.ig.util.defType("Collection$1:av","List$1",{$t:null,init:function(n){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init.call(this,this.$t)},s:function(){return this},$type:new n.ig.Type("Collection$1",t.$al.$type.specialize(0))},!0);n.ig.util.defType("KeyValuePair$2:a1","ValueType",{$tKey:null,$tValue:null,init:function(t,i,r){if(r>0){switch(r){case 1:this.init1.apply(this,arguments)}return}this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.ValueType.prototype.init.call(this)},a:null,c:null,init1:function(t,i,r,u,f){this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.ValueType.prototype.init.call(this);this.a=u;this.c=f},key:function(){return this.a},value:function(){return this.c},$type:new n.ig.Type("KeyValuePair$2",n.ig.ValueType.prototype.$type)},!0);n.ig.util.defType("IDictionary$2:aw","Object",{$type:new n.ig.Type("IDictionary$2",null,[t.$af.$type.specialize(t.$a1.$type.specialize(this.$tKey,this.$tValue)),t.$ad.$type.specialize(t.$a1.$type.specialize(this.$tKey,this.$tValue)),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("Dictionary$2:ax","Object",{$tKey:null,$tValue:null,__inner:null,__keys:null,init:function(t,i,r){if(r>0){switch(r){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.g=null;this._useToString=!1;this.a=!1;this._needsEnsure=!1;this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.__inner=new n.ig.Dictionary(0);this.__keys=new n.ig.Dictionary(0)},init1:function(t,i,r,u){this.g=null;this._useToString=!1;this.a=!1;this._needsEnsure=!1;this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.__inner=new n.ig.Dictionary(1,u);this.__keys=new n.ig.Dictionary(0)},g:null,init2:function(t,i,r,u){this.g=null;this._useToString=!1;this.a=!1;this._needsEnsure=!1;this.$tKey=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.__inner=new n.ig.Dictionary(0);this.__keys=new n.ig.Dictionary(0);this.g=u},count:function(){return this.__inner.count()},item:function(n,t){return arguments.length===2?(this.__inner.item(this.i(n),t),this.__keys.item(this.i(n),n),t):this.__inner.item(this.i(n))},length:function(){return this.__inner.length()},containsKey:function(n){return this.__inner.containsKey(this.i(n))},remove:function(n){var t=this.i(n);return this.__keys.containsKey(t)?(this.__inner.remove(t),this.__keys.remove(t),!0):!1},clear:function(){this.__inner.clear();this.__keys.clear()},_useToString:!1,a:!1,_needsEnsure:!1,j:function(n){this.a||(this.a=!0,this._needsEnsure=typeof n=="object",this._needsEnsure||(this._useToString=!n.getHashCode))},i:function(t){return(this.j(t),this._needsEnsure&&n.ig.util.ensureUniqueId(t),this.g!=null)?this.g.getHashCode(t).toString():this._useToString?t.toString():t.getHashCode().toString()},add:function(n,t){this.__inner.item(this.i(n),t);this.__keys.item(this.i(n),n)},tryGetValue:function(n,t){return this.__inner.containsKey(this.i(n))?(t=this.__inner.item(this.i(n)),{ret:!0,value:t}):(t=null,{ret:!1,value:t})},keys:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__keys.values().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(this.$tKey,i)},values:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__inner.values().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(this.$tValue,i)},isReadOnly:function(){return!1},add1:function(n){this.add(n.key(),n.value())},contains:function(n){return this.containsKey(n.key())},copyTo:function(){throw new t.a2;},remove1:function(n){return this.remove(n.key()),!0},f:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__keys.values().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=new t.a1(this.$tKey,this.$tValue,1,this.$a,this.$this.__inner.item(this.$this.i(this.$a))),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(t.$a1.$type.specialize(this.$tKey,this.$tValue),r)},getEnumerator:function(){return this.f().getEnumerator()},$type:new n.ig.Type("Dictionary$2",n.ig.$ot,[n.ig.IDictionary$2.prototype.$type.specialize(0,1),n.ig.IDictionary.prototype.$type])},!0);n.ig.util.defType("GenericEnumerable$1:a4","Object",{$t:null,a:null,init:function(t,i){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=i},getEnumerator:function(){return new t.a5(this.$t,this.a().getEnumerator())},$type:new n.ig.Type("GenericEnumerable$1",n.ig.$ot,[t.$ad.$type.specialize(0)])},!0);n.ig.util.defType("IEnumerator$1:ae","Object",{$type:new n.ig.Type("IEnumerator$1",null,[n.ig.IEnumerator.prototype.$type])},!0);n.ig.util.defType("GenericEnumerator$1:a5","Object",{$t:null,a:null,init:function(t,i){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=i},current:function(){return this.a.current()},moveNext:function(){return this.a.moveNext()},reset:function(){this.a.reset()},$type:new n.ig.Type("GenericEnumerator$1",n.ig.$ot,[t.$ae.$type.specialize(0)])},!0);n.ig.util.defType("INotifyCollectionChanged:a6","Object",{$type:new n.ig.Type("INotifyCollectionChanged",null)},!0);n.ig.util.defType("NotifyCollectionChangedEventArgs:a8","EventArgs",{init:function(i,r){if(i>0){switch(i){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}t.$a9.init.call(this);this.f=r;this.c=new t.al(n.ig.$op.$type,0);this.b=new t.al(n.ig.$op.$type,0)},init1:function(i,r,u,f){var e=this;t.$a9.init.call(this);this.f=r;this.c=new t.al(n.ig.$op.$type,0);(this.f==1||this.f==2)&&(this.c.add(u),this.i=f);this.b=this.f!=1?function(){var i=new t.al(n.ig.$op.$type,0);return i.add(u),i}():new t.al(n.ig.$op.$type,0);this.h=f},init2:function(i,r,u,f,e){var o=this;t.$a9.init.call(this);this.f=r;this.h=e;this.i=e;this.b=function(){var i=new t.al(n.ig.$op.$type,0);return i.add(u),i}();this.c=function(){var i=new t.al(n.ig.$op.$type,0);return i.add(f),i}()},f:null,action:function(){return this.f},b:null,newItems:function(){return this.b},h:0,newStartingIndex:function(){return this.h},c:null,oldItems:function(){return this.c},i:0,oldStartingIndex:function(){return this.i},$type:new n.ig.Type("NotifyCollectionChangedEventArgs",t.$a9.$type)},!0);n.ig.util.defType("LinkedList$1:bb","Object",{$t:null,init:function(t){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this)},a:null,c:function(){return this.a},b:null,d:function(){return this.b},e:function(n){if(this.a==null)this.a=new t.bc(this.$t,1,n),this.b=this.a;else{var i=this.a;this.a=new t.bc(this.$t,1,n);this.a.a=i;i.b=this.a}},f:function(n){if(this.b==null)this.a=new t.bc(this.$t,1,n),this.b=this.a;else{var i=this.b;this.b=new t.bc(this.$t,1,n);this.b.b=i;i.a=this.b}},g:function(n){this.a==n&&(this.a=n.a,n.a!=null&&(n.a.b=null));this.b==n&&(this.b=n.b,n.b!=null&&(n.b.a=null));n.b!=null&&(n.b.a=n.a);n.a!=null&&(n.a.b=n.b);n.a=null;n.b=null},$type:new n.ig.Type("LinkedList$1",n.ig.$ot)},!0);n.ig.util.defType("LinkedListNode$1:bc","Object",{$t:null,_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},b:null,a:null,init:function(t,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this)},init1:function(t,i,r){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.c(r)},$type:new n.ig.Type("LinkedListNode$1",n.ig.$ot)},!0);n.ig.util.defType("ObservableCollection$1:bd","List$1",{$t:null,init:function(n,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init.call(this,this.$t)},init1:function(n,i,r){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init1.call(this,this.$t,1,r)},init2:function(n,i,r){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$al.init2.call(this,this.$t,2,r)},o:function(n,i){var u=this.__inner[n],r;t.$al.o.call(this,n,i);this.propertyChanged!=null&&this.t(new t.bg("Item[]"));this.collectionChanged!=null&&(r=new t.a8(2,2,i,u,n),this.s(r))},h:function(){if(t.$al.h.call(this),this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]"))),this.collectionChanged!=null){var n=new t.a8(0,4);this.s(n)}},j:function(n,i){if(t.$al.j.call(this,n,i),this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]"))),this.collectionChanged!=null){var r=new t.a8(1,0,i,n);this.s(r)}},f:function(n){if(t.$al.f.call(this,n),this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]"))),this.collectionChanged!=null){var i=new t.a8(1,0,n,this.count()-1);this.s(i)}},m:function(n){var r=this.__inner[n],i;t.$al.m.call(this,n);this.propertyChanged!=null&&(this.t(new t.bg("Count")),this.t(new t.bg("Item[]")));this.collectionChanged!=null&&(i=new t.a8(1,1,r,n),this.s(i))},collectionChanged:null,propertyChanged:null,t:function(n){this.propertyChanged!=null&&this.propertyChanged(this,n)},s:function(n){this.collectionChanged!=null&&this.collectionChanged(this,n)},$type:new n.ig.Type("ObservableCollection$1",t.$al.$type.specialize(0),[t.$a6.$type,t.$be.$type])},!0);n.ig.util.defType("Queue$1:bi","Collection$1",{$t:null,init:function(n){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$av.init.call(this,this.$t)},dequeue:function(){var n=this.count()-1,t=this.__inner[n];return this.m(n),t},enqueue:function(n){this.f(n)},peek:function(){var n=this.count()-1;return this.__inner[n]},$type:new n.ig.Type("Queue$1",t.$av.$type.specialize(0))},!0);n.ig.util.defType("ReadOnlyCollection$1:bj","Object",{$t:null,init:function(t,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}this.c={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this)},init1:function(t,i,r){this.c={};this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=r},a:null,item:function(n,t){return arguments.length===2?(this.a.item(n,t),t):this.a.item(n)},indexOf:function(n){return this.a.indexOf(n)},insert:function(){},removeAt:function(){},count:function(){return this.a.count()},isReadOnly:function(){return!0},add1:function(){},clear:function(){},contains1:function(n){return this.a.contains(n)},copyTo:function(n,t){this.a.copyTo(n,t)},remove1:function(){return!1},getEnumerator:function(){return this.a.getEnumerator()},isFixedSize:function(){return!0},add:function(){return-1},contains:function(n){return this.a.contains(n)},indexOf1:function(n){return this.a.indexOf(n)},insert1:function(){},remove:function(){},copyTo1:function(n,t){this.a.copyTo(n,t)},b:function(){return this.a},isSynchronized:function(){return!0},c:null,syncRoot:function(){return this.c},$type:new n.ig.Type("ReadOnlyCollection$1",n.ig.$ot,[t.$ag.$type.specialize(0),n.ig.IList.prototype.$type])},!0);n.ig.util.defType("ReadOnlyObservableCollection$1:bk","ReadOnlyCollection$1",{$t:null,init:function(n){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$bj.init.call(this,this.$t)},collectionChanged:null,propertyChanged:null,$type:new n.ig.Type("ReadOnlyObservableCollection$1",t.$bj.$type.specialize(0),[t.$a6.$type,t.$be.$type])},!0);n.ig.util.defType("NameValueCollection:bl","Object",{a:null,init:function(){n.ig.$op.init.call(this);this.a=new t.ax(String,String,0)},item:function(n,t){return arguments.length===2?(this.a.containsKey(n)?this.a.item(n,t):this.a.add(n,t),t):this.a.containsKey(n)?this.a.item(n):null},$type:new n.ig.Type("NameValueCollection",n.ig.$ot)},!0);n.ig.util.defType("Stack$1:bm","Object",{$t:null,init:function(t){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.b=new n.ig.Array},b:null,push:function(n){this.b.add(n)},peek:function(){return this.b.length<1?null:this.b[this.b.length-1]},pop:function(){var n=this.b[this.b.length-1];return this.b.removeAt(this.b.length-1),n},count:function(){return this.b.length},clear:function(){this.b.clear()},contains:function(n){return this.b.contains(n)},getEnumerator:function(){return new t.bn(this.$t,this.b)},$type:new n.ig.Type("Stack$1",n.ig.$ot,[t.$ad.$type.specialize(0)])},!0);n.ig.util.defType("ReverseArrayEnumerator$1:bn","Object",{$t:null,b:0,a:null,init:function(t,i){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a=i;this.b=i.length},current:function(){return this.a[this.b]},moveNext:function(){return this.b--,this.b>=0},reset:function(){this.b=this.a.length},$type:new n.ig.Type("ReverseArrayEnumerator$1",n.ig.$ot,[t.$ae.$type.specialize(0)])},!0);n.ig.util.defType("IComparer$1:bo","Object",{$type:new n.ig.Type("IComparer$1",null)},!0);n.ig.util.defType("Expression:bp","Object",{init:function(){n.ig.$op.init.call(this)},c:function(n,t,i,r){return r=Array.prototype.slice.call(arguments,3),null},a:function(n,t){return t=Array.prototype.slice.call(arguments,1),null},b:function(){return null},d:function(){return null},e:function(){return null},$type:new n.ig.Type("Expression",n.ig.$ot)},!0);n.ig.util.defType("MemberExpression:bt","Expression",{init:function(){t.$bp.init.call(this)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},g:function(){return null},$type:new n.ig.Type("MemberExpression",t.$bp.$type)},!0);n.ig.util.defType("ParameterExpression:bs","Expression",{init:function(){t.$bp.init.call(this)},_f:!1,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},$type:new n.ig.Type("ParameterExpression",t.$bp.$type)},!0);n.ig.util.defType("LambdaExpression:br","Expression",{init:function(){t.$bp.init.call(this)},$type:new n.ig.Type("LambdaExpression",t.$bp.$type)},!0);n.ig.util.defType("MethodCallExpression:bq","Expression",{init:function(){t.$bp.init.call(this)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},h:function(){return null},$type:new n.ig.Type("MethodCallExpression",t.$bp.$type)},!0);n.ig.util.defType("IOrderedEnumerable$1:bu","Object",{$type:new n.ig.Type("IOrderedEnumerable$1",null,[t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("Queryable:bv","Object",{init:function(){n.ig.$op.init.call(this)},asQueryable:function(){return null},$type:new n.ig.Type("Queryable",n.ig.$ot)},!0);n.ig.util.defType("Enumerable:bz","Object",{init:function(){n.ig.$op.init.call(this)},where$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=7;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$state=t(this.$b)?4:6;break;case 4:return this.$current=this.$b,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$state=this.$c.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},where$11:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:0,$c:null,$d:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$b=0;this.$state=1;break;case 1:this.$d=this.$this.getEnumerator();this.$state=7;break;case 2:this.$c=this.$d.current();this.$state=3;break;case 3:this.$state=t(this.$c,this.$b)?4:6;break;case 4:return this.$current=this.$c,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$b++;this.$state=7;break;case 7:this.$state=this.$d.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},select$2:function(t,i,r){var u=this,f=function(){return function(n,t,i){return{$state:0,$this:u,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:return this.$b=this.$c.current(),this.$current=i(this.$b),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i,r)};return new n.ig.GenericEnumerable$1(i,f)},selectMany$2:function(t,i,r){var u=this,f=function(){return function(n,t,i){return{$state:0,$this:u,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$e=i(this.$b).getEnumerator();this.$state=6;break;case 4:return this.$d=this.$e.current(),this.$current=this.$d,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=this.$e.moveNext()?4:7;break;case 7:this.$state=8;break;case 8:this.$state=this.$c.moveNext()?2:9;break;case 9:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i,r)};return new n.ig.GenericEnumerable$1(i,f)},ofType$1:function(t){var i=this,r=function(){return function(t){return{$state:0,$this:i,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.getEnumerator();this.$state=7;break;case 2:this.$a=this.$b.current();this.$state=3;break;case 3:this.$state=n.ig.util.cast(t,this.$a)!==null?4:6;break;case 4:return this.$current=this.$a,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$state=this.$b.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t)};return new n.ig.GenericEnumerable$1(t,r)},last$1:function(i){var r=n.ig.util.cast(t.$ag.$type.specialize(i),this),u,f,e;if(r!=null)return r.item(r.count()-1);for(u=null,f=this.getEnumerator();f.moveNext();)e=f.current(),u=e;return u},first$1:function(){for(var n=this.getEnumerator();n.moveNext();)return n.current();return null},firstOrDefault$1:function(){for(var n=this.getEnumerator();n.moveNext();)return n.current();return null},orderBy$2:function(i,r,u){var e=this,f=new t.b1(i,e);return f.sort1(function(i,r){var o=i,s=r,f=u(o),e=u(s);return n.ig.util.cast(t.$h.$type,f)!==null?n.ig.util.cast(t.$h.$type,f).compareTo(e):f.toString().compareTo(e.toString())}),f},orderByDescending$2:function(i,r,u){var e=this,f=new t.b1(i,e);return f.sort1(function(i,r){var o=r,s=i,f=u(o),e=u(s);return n.ig.util.cast(t.$h.$type,f)!==null?n.ig.util.cast(t.$h.$type,f).compareTo(e):f.toString().compareTo(e.toString())}),f},toList$1:function(n){return new t.al(n,1,this)},d:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=n;this.$state=5;break;case 2:return this.$current=this.$c,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$c++;this.$state=5;break;case 5:this.$state=this.$c<t?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(n.ig.Number.prototype.$type,u)},concat$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:return this.$b=this.$c.current(),this.$current=this.$b,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()?2:5;break;case 5:this.$state=6;break;case 6:this.$e=t.getEnumerator();this.$state=9;break;case 7:return this.$d=this.$e.current(),this.$current=this.$d,this.$state=8,!0;case 8:this.$state=9;break;case 9:this.$state=this.$e.moveNext()?7:10;break;case 10:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},max:function(){for(var i=!0,n=0,r=this.getEnumerator(),t;r.moveNext();)t=r.current(),i?(i=!1,n=t):n=Math.max(n,t);return n},max$1:function(t,i){return this.select$2(t,n.ig.Number.prototype.$type,i).max()},min:function(){for(var i=!0,n=0,r=this.getEnumerator(),t;r.moveNext();)t=r.current(),i?(i=!1,n=t):n=Math.min(n,t);return n},min$1:function(t,i){return this.select$2(t,n.ig.Number.prototype.$type,i).max()},count$1:function(){for(var n=0,t=this.getEnumerator(),i;t.moveNext();)i=t.current(),n++;return n},reverse$1:function(i){var r=this,u=function(){return function(n){return{$state:0,$this:r,$current:null,$a:null,$b:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$a=new t.al(n,1,this.$this);this.$state=1;break;case 1:this.$b=this.$a.count()-1;this.$state=5;break;case 2:return this.$current=this.$a.__inner[this.$b],this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$b--;this.$state=5;break;case 5:this.$state=this.$b>0?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(i)};return new n.ig.GenericEnumerable$1(i,u)},cast$1:function(i){var u,r,f,e;if(this==null)throw new t.ca("source");if(u=n.ig.util.cast(t.$ad.$type.specialize(i),this),u!=null)return u;for(r=new t.al(i,0),f=this.getEnumerator();f.moveNext();)e=f.current(),n.ig.util.cast(i,e)!==null?r.add1(e):r.add1(null);return r},take$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=9;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$state=t>0?4:6;break;case 4:return t--,this.$current=this.$b,this.$state=5,!0;case 5:this.$state=8;break;case 6:return this.$state=-2,!1;case 7:this.$state=8;break;case 8:this.$state=9;break;case 9:this.$state=this.$c.moveNext()?2:10;break;case 10:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},skip$1:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$b:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$state=t<=0?4:6;break;case 4:return this.$current=this.$b,this.$state=5,!0;case 5:this.$state=7;break;case 6:t--;this.$state=7;break;case 7:this.$state=8;break;case 8:this.$state=this.$c.moveNext()?2:9;break;case 9:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(t,u)},any$1:function(){for(var n=this.getEnumerator(),t;n.moveNext();)return t=n.current(),!0;return!1},contains$1:function(n,t){for(var i=this.getEnumerator(),r;i.moveNext();)if(r=i.current(),r===t)return!0;return!1},union$1:function(){return null},toArray$1:function(n){var i=new t.al(n,1,this);return i.asArrayList()},elementAt$1:function(i,r){var u=n.ig.util.cast(t.$ag.$type.specialize(i),this);return u!=null?u.item(r):this.skip$1(i,r).first$1(i)},sum:function(){for(var n=0,t=this.getEnumerator(),i;t.moveNext();)i=t.current(),n+=i;return n},sum$1:function(n,t){return this.select$2(n,Number,t).sum()},$type:new n.ig.Type("Enumerable",n.ig.$ot)},!0);n.ig.util.defType("SortedList$1:b1","List$1",{$tElement:null,init:function(n,i){this.$tElement=n;this.$type=this.$type.specialize(this.$tElement);t.$al.init1.call(this,this.$tElement,1,i)},getEnumerator:function(){return t.$al.getEnumerator.call(this)},$type:new n.ig.Type("SortedList$1",t.$al.$type.specialize(0),[t.$bu.$type.specialize(0)])},!0);n.ig.util.defType("IGrouping$2:cb","Object",{$type:new n.ig.Type("IGrouping$2",null,[t.$ad.$type.specialize(0),n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("IArray:ao","Object",{$type:new n.ig.Type("IArray",null)},!0);n.ig.util.defType("DependencyObject:cc","Object",{init:function(){n.ig.$op.init.call(this);this._localValues=new n.ig.Dictionary(0);this.a=new n.ig.Dictionary(0)},_localValues:null,a:null,c:function(n){return this._localValues.containsKey(n.name())?this._localValues.item(n.name()):n.k().b()},g:function(n,i){if(n.b()){var r=null,u=this._localValues.proxy[n.__name];typeof u!="undefined"&&(r=u);this._localValues.item(n.__name,i);n.k().d()(this,new t.cg(n,i,r))}else this._localValues.item(n.__name,i)},e:function(n){this._localValues.remove(n.__name)},d:function(n){return this._localValues.containsKey(n.__name)?this._localValues.item(n.name()):t.$cd.c},f:function(n,t){n!=null&&this.a.item(n.name(),t)},$type:new n.ig.Type("DependencyObject",n.ig.$ot)},!0);n.ig.util.defType("DependencyProperty:cd","Object",{__name:null,f:null,j:null,a:!1,b:function(){return this.a},init:function(t,i,r){this.a=!1;n.ig.$op.init.call(this);this.__name=t;this.f=i;this.j=r;this.a=this.j!=null&&this.j.d()!=null?!0:!1},k:function(){return this.j},propertyType:function(){return this.f},name:function(){return this.__name},i:function(n,i,r,u){return t.$ch.c().e(n,i,r,u)},h:function(n,i){if(i==null)return null;var r=t.$ch.c().d(i.typeName()+n);return r!=null?r:t.$cd.h(n,i.baseType)},$type:new n.ig.Type("DependencyProperty",n.ig.$ot)},!0);n.ig.util.defType("Test:cl","DependencyObject",{init:function(){var r=this,i;t.$cc.init.call(this);i=new t.al(n.ig.Number.prototype.$type,0);i.where$1(n.ig.Number.prototype.$type,function(){return!0})},j:function(){},i:function(n,t){for(var i=t;i<n.length;i++);},$type:new n.ig.Type("Test",t.$cc.$type)},!0);n.ig.util.defType("IQueryable:bw","Object",{$type:new n.ig.Type("IQueryable",null)},!0);n.ig.util.defType("IQueryable$1:by","Object",{$type:new n.ig.Type("IQueryable$1",null,[t.$bw.$type])},!0);n.ig.util.defType("IQueryable:bw","Object",{$type:new n.ig.Type("IQueryable",null)},!0);n.ig.util.defType("IQueryable$1:by","Object",{$type:new n.ig.Type("IQueryable$1",null,[t.$bw.$type])},!0);n.ig.util.defType("IQueryProvider:bx","Object",{$type:new n.ig.Type("IQueryProvider",null)},!0);n.ig.util.defType("Activator:cm","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){return null},b:function(n,t){return t=Array.prototype.slice.call(arguments,1),null},c:function(){return null},$type:new n.ig.Type("Activator",n.ig.$ot)},!0);n.ig.util.defType("AggregateException:cn","Error",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}t.$a3.init.call(this)},init1:function(n,i){t.$a3.init1.call(this,1,i)},init2:function(n,i,r){t.$a3.init2.call(this,2,i,r)},$type:new n.ig.Type("AggregateException",t.$a3.$type)},!0);n.ig.util.defType("ArgumentException:co","Error",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$a3.init1.call(this,1,i)},init1:function(n,i){t.$a3.init1.call(this,1,i)},$type:new n.ig.Type("ArgumentException",t.$a3.$type)},!0);n.ig.util.defType("ArgumentNullException:ca","Error",{init:function(n){t.$a3.init1.call(this,1,n+" cannot be null.")},$type:new n.ig.Type("ArgumentNullException",t.$a3.$type)},!0);n.ig.util.defType("ArgumentOutOfRangeException:cp","ArgumentException",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$co.init.call(this,i+" is out of range.")},init1:function(n,i){t.$co.init.call(this,i)},$type:new n.ig.Type("ArgumentOutOfRangeException",t.$co.$type)},!0);n.ig.util.defType("AsyncCompletedEventArgs:cq","EventArgs",{d:null,b:!1,f:null,init:function(n,i,r){t.$a9.init.call(this);this.b=i;this.d=n;this.f=r},error:function(){return this.d},cancelled:function(){return this.b},userState:function(){return this.f},h:function(){if(this.error()!=null)throw this.error();},$type:new n.ig.Type("AsyncCompletedEventArgs",t.$a9.$type)},!0);n.ig.util.defType("Convert:ct","Object",{init:function(){n.ig.$op.init.call(this)},g:function(n){return n},e:function(n){return n},d:function(n){return n},f:function(n){return n},a:function(n){return n},c:function(n){return n},b:function(n){return n},h:function(n){if(n>=0){var t=Math.floor(n),r=n-t,u=Math.ceil(n)-n;return(r>u||r==u&&(t&1)>0)&&t++,t}var i=Math.ceil(n),f=i-n,e=n-Math.floor(n);return(f>e||f==e&&(i&1)>0)&&i--,i},i:function(n){return parseInt(n)},$type:new n.ig.Type("Convert",n.ig.$ot)},!0);n.ig.util.defType("Environment:cu","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){return"\n"},$type:new n.ig.Type("Environment",n.ig.$ot)},!0);n.ig.util.defType("InvalidOperationException:cv","Error",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$a3.init1.call(this,1,"Invalid operation")},init1:function(n,i){t.$a3.init1.call(this,1,i)},$type:new n.ig.Type("InvalidOperationException",t.$a3.$type)},!0);n.ig.util.defType("Debug:cw","Object",{init:function(){n.ig.$op.init.call(this)},b:function(){},c:function(){},a:function(){},$type:new n.ig.Type("Debug",n.ig.$ot)},!0);n.ig.util.defType("IEquatable$1:cx","Object",{$type:new n.ig.Type("IEquatable$1",null)},!0);n.ig.util.defType("BinaryReader:cy","Object",{__data:null,d:!1,k:null,canRead:function(){return this.k<this.__data.length},currentPosition:function(){return this.k},length:function(){return this.__data.length},e:!1,init:function(t,i){this.__data=null;this.d=!1;this.k=0;this.e=!1;n.ig.$op.init.call(this);this.__data=t;this.d=i;var r=this.__data;typeof Uint8Array!="undefined"&&r instanceof Uint8Array&&(this.e=!0)},g:function(n){return this.e?this.__data[n]&255:this.__data.charCodeAt(n)&255},a:function(n,t){var r=new Array(t),i;if(this.e)for(i=0;i<t;i++)r[i]=this.__data[n+i]&255;else for(i=0;i<t;i++)r[i]=this.__data.charCodeAt(n+i)&255;return r},b:function(n,t){var r=new Array(t),i;if(this.e)for(i=0;i<t;i++)r[i]=this.__data[n+(t-1-i)]&255;else for(i=0;i<t;i++)r[i]=this.__data.charCodeAt(n+(t-1-i))&255;return r},readByte:function(){var n=this.g(this.k);return this.k=this.k+1,n},readBytes:function(n){var t=this.a(this.k,n);return this.k=this.k+n,t},readUInt32:function(){var n=0;return this.d?(n=n+(this.g(this.k)<<24),this.k=this.k+1,n=n+(this.g(this.k)<<16),this.k=this.k+1,n=n+(this.g(this.k)<<8),this.k=this.k+1,n=n+this.g(this.k),this.k=this.k+1):(n=n+this.g(this.k),this.k=this.k+1,n=n+(this.g(this.k)<<8),this.k=this.k+1,n=n+(this.g(this.k)<<16),this.k=this.k+1,n=n+(this.g(this.k)<<24),this.k=this.k+1),n},readUInt16:function(){var n=0;return this.d?(n=n+(this.g(this.k)<<8),this.k=this.k+1,n=n+this.g(this.k),this.k=this.k+1):(n=n+this.g(this.k),this.k=this.k+1,n=n+(this.g(this.k)<<8),this.k=this.k+1),n},readInt32:function(){var n=0;return this.d?(n=n+(this.g(this.k)<<24),this.k=this.k+1,n=n+(this.g(this.k)<<16),this.k=this.k+1,n=n+(this.g(this.k)<<8),this.k=this.k+1,n=n+this.g(this.k),this.k=this.k+1):(n=n+this.g(this.k),this.k=this.k+1,n=n+(this.g(this.k)<<8),this.k=this.k+1,n=n+(this.g(this.k)<<16),this.k=this.k+1,n=n+(this.g(this.k)<<24),this.k=this.k+1),n>2147483647&&(n=n-4294967296),n},readDouble:function(){var f=this.b(this.k,8),o,n,e,h;this.k=this.k+8;o=f[0]>>7;n=0;n=n+(f[1]>>4);n=n+((f[0]&127)<<4);for(var i=1,s=f[1],r=1/2,t=0,u=!1,t=5;t<=8;t++)(s&1<<8-t)>0&&(i=i+r,u=!0),r=r/2;for(e=2;e<8;e++)for(s=f[e],t=1;t<=8;t++)(s&1<<8-t)>0&&(i=i+r,u=!0),r=r/2;return n==0&&!u?0:(n==0&&u&&(n=1,i=i-1),n==1860&&!u)?o==1?0:0:n==1860&&u?NaN:(h=n-1023,Math.pow(-1,o)*Math.pow(2,h)*i)},readSingle:function(){var f=this.b(this.k,4),o,n,e,h;this.k=this.k+4;o=f[0]>>7;n=0;n=n+(f[1]>>7);n=n+((f[0]&127)<<1);for(var i=1,s=f[1],r=1/2,t=0,u=!1,t=2;t<=8;t++)(s&1<<8-t)>0&&(i=i+r,u=!0),r=r/2;for(e=2;e<4;e++)for(s=f[e],t=1;t<=8;t++)(s&1<<8-t)>0&&(i=i+r,u=!0),r=r/2;return n==0&&!u?0:(n==0&&u&&(n=1,i=i-1),n==255&&!u)?o==1?0:0:n==255&&u?NaN:(h=n-127,Math.pow(-1,o)*Math.pow(2,h)*i)},$type:new n.ig.Type("BinaryReader",n.ig.$ot)},!0);n.ig.util.defType("ICredentials:cz","Object",{$type:new n.ig.Type("ICredentials",null)},!0);n.ig.util.defType("NetworkCredential:c0","Object",{init:function(n,i,r){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$c0.init1.call(this,1,i,r,String.empty())},init1:function(t,i,r,u){n.ig.$op.init.call(this);this.c(i);this.b(r);this.a(u)},getCredential:function(){return this},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("NetworkCredential",n.ig.$ot,[t.$cz.$type])},!0);n.ig.util.defType("UploadStringCompletedEventArgs:c3","AsyncCompletedEventArgs",{i:null,init:function(n,i,r,u){t.$cq.init.call(this,i,r,u);this.i=n},result:function(){return this.h(),this.i},$type:new n.ig.Type("UploadStringCompletedEventArgs",t.$cq.$type)},!0);n.ig.util.defType("WebClient:c4","Object",{init:function(){n.ig.$op.init.call(this);this.c(new t.c8)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},uploadStringCompleted:null,h:function(n,i,r,u){var f=this;f.e(n,i,r).i(function(n){if(f.uploadStringCompleted!=null){var i=null,r=null;try{i=n.m()}catch(e){r=e}f.uploadStringCompleted(f,new t.c3(i,r,n.g()==6,u))}})},e:function(i,r,u){var f=i.value(),e=r,o=u,s=this.c().item("Content-Type"),h=this.a(),c=n.ig.util.ajax(f,s,o,e,h);return new t.c9(String,c,null)},g:function(n,t){n.e(t)},f:function(n,i,r,u){n.d(new t.a3(1,u))},$type:new n.ig.Type("WebClient",n.ig.$ot)},!0);n.ig.util.defType("WebHeaderCollection:c8","NameValueCollection",{init:function(){t.$bl.init.call(this)},$type:new n.ig.Type("WebHeaderCollection",t.$bl.$type)},!0);n.ig.util.defType("FaultCode:dx","Object",{init:function(t){n.ig.$op.init.call(this);this.a(t)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("FaultCode",n.ig.$ot)},!0);n.ig.util.defType("FaultException:dy","Error",{init:function(n,i,r){t.$a3.init.call(this);this.reason(n);this.code(i);this.action(r)},_action:null,action:function(n){return arguments.length===1?(this._action=n,n):this._action},_code:null,code:function(n){return arguments.length===1?(this._code=n,n):this._code},_reason:null,reason:function(n){return arguments.length===1?(this._reason=n,n):this._reason},$type:new n.ig.Type("FaultException",t.$a3.$type)},!0);n.ig.util.defType("FaultException$1:d0","FaultException",{$tDetail:null,init:function(n,i,r,u,f){this.$tDetail=n;this.$type=this.$type.specialize(this.$tDetail);t.$dy.init.call(this,r,u,f);this.detail(i)},_detail:null,detail:function(n){return arguments.length===1?(this._detail=n,n):this._detail},$type:new n.ig.Type("FaultException$1",t.$dy.$type)},!0);n.ig.util.defType("FaultReason:dz","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},toString:function(){return this.a},$type:new n.ig.Type("FaultReason",n.ig.$ot)},!0);n.ig.util.defType("StringBuilder:d1","Object",{_internal:null,internal:function(n){return arguments.length===1?(this._internal=n,n):this._internal},init:function(){n.ig.$op.init.call(this);this._internal=[]},d:function(n){return this._internal.push(n),this},e:function(n){var t=n.b();return this._internal.push(t),this},c:function(n){return this._internal.push(n),this},f:function(n){return this._internal.push(n+String.fromCharCode(10)),this},g:function(n,t){return this._internal.splice(n,0,t),this},h:function(n,t){return this._internal.splice(n,0,t),this},i:function(n,t){return this._internal.splice(n,t),this},b:function(){return this._internal.join("")},$type:new n.ig.Type("StringBuilder",n.ig.$ot)},!0);n.ig.util.defType("BinaryFileDownloader:d2","Object",{init:function(){n.ig.$op.init.call(this)},a:function(t,i,r){n.ig.util.getBinary(t,i,r)},$type:new n.ig.Type("BinaryFileDownloader",n.ig.$ot)},!0);n.ig.util.defType("NotImplementedException:a2","Error",{init:function(){t.$a3.init1.call(this,1,"not implemented")},$type:new n.ig.Type("NotImplementedException",t.$a3.$type)},!0);n.ig.util.defType("Random:d3","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){return Math.random()},b:function(n){return Math.round(this.a()*(n-1))},c:function(n,t){return n+Math.round(this.a()*(t-n-1))},$type:new n.ig.Type("Random",n.ig.$ot)},!0);n.ig.util.defType("Encoding:c5","Object",{init:function(){n.ig.$op.init.call(this)},uTF8:function(){return t.$c5.g==null&&(t.$c5.g=new t.c6),t.$c5.g},unicode:function(){return t.$c5.f==null&&(t.$c5.f=new t.c7),t.$c5.f},getString:function(){return""},getBytes2:function(){},getBytes:function(n,t,i){var r=new Array(this.getByteCount(n,t,i));return this.getBytes2(n,t,i,r,0),r},getBytes1:function(n){var r,i;if(n==null)throw new t.ca("input");for(r=new Array(n.length),i=0;i<n.length;i++)r[i]=n.charAt(i);return this.getBytes(r,0,r.length)},getByteCount:function(){},$type:new n.ig.Type("Encoding",n.ig.$ot)},!0);n.ig.util.defType("UnicodeEncoding:c7","Encoding",{init:function(){t.$c5.init.call(this)},getString:function(t,i,r){for(var f="",u=i;u<r;u=u+2){if(t[u]==0)break;if(u+1>=r)f=f+"�";else{var e=t[u].toString(16),o=t[u+1].toString(16),s=n.ig.Number.prototype.parseInt(o+e,16);f=f+String.fromCharCode(s)}}return f},getByteCount:function(){return 0},getBytes2:function(){return 0},getBytes:function(n,i,r){return t.$c5.getBytes.call(this,n,i,r)},getBytes1:function(t){for(var u,r=new Array(t.length*2),i=0;i<t.length;i++)u=t.charCodeAt(i).toString(16).padLeft(4,"0"),r[2*i]=n.ig.Number.prototype.parseInt(u.substr(2),16),r[2*i+1]=n.ig.Number.prototype.parseInt(u.substr(0,2),16);return r},$type:new n.ig.Type("UnicodeEncoding",t.$c5.$type)},!0);n.ig.util.defType("UTF8Encoding:c6","Encoding",{init:function(){t.$c5.init.call(this)},getString:function(n,t,i){for(var u="",r=t;r<i;r++){if(n[r]==0)break;u=u+String.fromCharCode(n[r])}return decodeURIComponent(escape(u))},getByteCount:function(){return 0},getBytes2:function(){return 0},getBytes:function(n,i,r){return t.$c5.getBytes.call(this,n,i,r)},getBytes1:function(n){for(var i=new Array(n.length),r=unescape(encodeURIComponent(n)),t=0;t<r.length;t++)i[t]=r.charCodeAt(t);return i},$type:new n.ig.Type("UTF8Encoding",t.$c5.$type)},!0);n.ig.util.defType("Task:da","Object",{_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$da.init1.call(this,1,i,null)},init1:function(i,r,u){var f=this,e,o;n.ig.$op.init.call(this);e=function(){};o=function(n){n==null?f.b(!0):f.a(new t.cn(2,"Exception occurred during task execution",n))};this.c(r.done(e).fail(o));this.d(u)},g:function(){if(this.b())return 6;switch(this.c().state()){case"pending":return 0;case"resolved":return 5;case"rejected":return 7;default:return 0}},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},e:function(n){var i=this,r=function(){return n(i)},u=function(){return n(i)},f=i.c().done(r).fail(u);return new t.da(0,f)},f:function(n,i){var u=this,r=new t.de(n,0),f=function(){try{var n=i(u);r.e(n)}catch(t){r.d(t)}},e=function(){return f()},o=function(){return f()};return u.c().done(e).fail(o),r.b()},$type:new n.ig.Type("Task",n.ig.$ot)},!0);n.ig.util.defType("Task$1:c9","Task",{$tResult:null,init:function(n,i,r){var u=this,f,e;this.h=!1;this.$tResult=n;this.$type=this.$type.specialize(this.$tResult);t.$da.init1.call(this,1,i,r);f=function(n){var t=n;u.l=t;u.h=!0};e=function(){u.h=!0};this.c().done(f).fail(e)},h:!1,l:null,m:function(){if(!this.h)throw"Result is not ready yet";if(this.a()!=null)throw this.a();return this.l},i:function(n){var i=this;return t.$da.e.call(i,function(t){return n(t)})},j:function(t,i){var r=this,u=function(n){return i(n)};return r.k(n.ig.$op.$type,u).k(t,function(n){return n.m()})},k:function(n,i){return t.$da.f.call(this,n,i)},$type:new n.ig.Type("Task$1",t.$da.$type)},!0);n.ig.util.defType("TaskCompletionSource$1:de","Object",{$tResult:null,_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(n,i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}this.$tResult=n;this.$type=this.$type.specialize(this.$tResult);t.$de.init1.call(this,this.$tResult,1,null)},init1:function(i,r,u){this.$tResult=i;this.$type=this.$type.specialize(this.$tResult);n.ig.$op.init.call(this);this.a(n.ig.util.deferred());this.b(new t.c9(this.$tResult,this.a().promise(),u))},c:function(){this.a().reject(null)},d:function(n){this.a().reject(n)},e:function(n){this.a().resolve(n)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("TaskCompletionSource$1",n.ig.$ot)},!0);n.ig.util.defType("TaskFactory:d4","Object",{init:function(){n.ig.$op.init.call(this)},c:function(n,i){var r=this;return new t.da(0,r.b(r.a(n)).always(function(){return i(n)}))},d:function(n,i,r){var f=this,u=new t.de(n,0);return f.b(f.a(i)).always(function(){try{var n=r(i);u.e(n)}catch(t){u.d(t)}}),u.b()},e:function(t,i,r,u){var f=this,e=function(n){return u(n)};return f.d(n.ig.$op.$type,r,e).j(i,function(n){return n.m()})},a:function(n){for(var i=new Array(n.length),t=0;t<n.length;t++)i[t]=n[t].c();return i},b:function(t){var i=t;return function(t){function i(){var i=n.ig.util.deferred(),u,t,r;if(arguments.length===0)return i.resolve(),i;for(u=arguments.length,t=!0,r=0;r<arguments.length;r++)arguments[r].done(function(){t=t&&!0}).fail(function(){t=t&&!1}).always(function(){u--;u<=0&&(t?i.resolve():i.reject())});return i}return i.apply(n,t)}(i)},$type:new n.ig.Type("TaskFactory",n.ig.$ot)},!0);n.ig.util.defType("Tuple$2:d5","Object",{$t1:null,$t2:null,_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},init:function(t,i,r,u){this.$t1=t;this.$t2=i;this.$type=this.$type.specialize(this.$t1,this.$t2);n.ig.$op.init.call(this);this.a(r);this.b(u)},$type:new n.ig.Type("Tuple$2",n.ig.$ot)},!0);n.ig.util.defType("Uri:c1","Object",{init:function(t){n.ig.$op.init.call(this);this.value(t)},_value:null,value:function(n){return arguments.length===1?(this._value=n,n):this._value},$type:new n.ig.Type("Uri",n.ig.$ot)},!0);n.ig.util.defType("JavaScriptSerializer:d6","Object",{init:function(){n.ig.$op.init.call(this)},a:function(n){var t=n;return JSON.parse(t)},b:function(n){var t=n;return JSON.stringify(t)},$type:new n.ig.Type("JavaScriptSerializer",n.ig.$ot)},!0);n.ig.util.defType("UIElement:d7","DependencyObject",{init:function(){t.$cc.init.call(this)},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},$type:new n.ig.Type("UIElement",t.$cc.$type)},!0);n.ig.util.defType("UIElementCollection:d9","ObservableCollection$1",{u:null,init:function(n){t.$bd.init.call(this,t.$d7.$type);this.u=n},s:function(n){var i,u,r,f;if(t.$bd.s.call(this,n),n.oldItems()!=null)for(i=n.oldItems().getEnumerator();i.moveNext();)u=i.current(),u.u(null);if(n.newItems()!=null)for(r=n.newItems().getEnumerator();r.moveNext();)f=r.current(),f.u(this.u)},h:function(){for(var n=this.getEnumerator(),i;n.moveNext();)i=n.current(),i.u(null);t.$bd.h.call(this)},$type:new n.ig.Type("UIElementCollection",t.$bd.$type.specialize(t.$d7.$type))},!0);n.ig.util.defType("FrameworkElement:ea","UIElement",{init:function(){this.__opacity=1;t.$d7.init.call(this);this.__opacity=1;this.q(0);this.__visibility=0;this.width(NaN);this.height(NaN)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},__visibility:null,visibility:function(n){return arguments.length===1?(this.__visibility=n,n):this.__visibility},_width:0,width:function(n){return arguments.length===1?(this._width=n,n):this._width},_height:0,height:function(n){return arguments.length===1?(this._height=n,n):this._height},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_q:0,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_dataContext:null,dataContext:function(n){return arguments.length===1?(this._dataContext=n,n):this._dataContext},__opacity:0,opacity:function(n){return arguments.length===1?(this.__opacity=n,this.t(),n):this.__opacity},t:function(){},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},$type:new n.ig.Type("FrameworkElement",t.$d7.$type)},!0);n.ig.util.defType("Control:ed","FrameworkElement",{init:function(){t.$ea.init.call(this)},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},z:function(){},_aa:null,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_ac:null,ac:function(n){return arguments.length===1?(this._ac=n,n):this._ac},$type:new n.ig.Type("Control",t.$ea.$type)},!0);n.ig.util.defType("ContentControl:eh","Control",{init:function(){t.$ed.init.call(this)},_content:null,content:function(n){return arguments.length===1?(this._content=n,n):this._content},_ae:null,ae:function(n){return arguments.length===1?(this._ae=n,n):this._ae},$type:new n.ig.Type("ContentControl",t.$ed.$type)},!0);n.ig.util.defType("Panel:ep","FrameworkElement",{init:function(){t.$ea.init.call(this);this.y(new t.d9(this))},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},$type:new n.ig.Type("Panel",t.$ea.$type)},!0);n.ig.util.defType("Canvas:eq","Panel",{init:function(){t.$ep.init.call(this)},$type:new n.ig.Type("Canvas",t.$ep.$type)},!0);n.ig.util.defType("Image:er","FrameworkElement",{init:function(){t.$ea.init.call(this)},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_y:!1,y:function(n){return arguments.length===1?(this._y=n,n):this._y},$type:new n.ig.Type("Image",t.$ea.$type)},!0);n.ig.util.defType("TextBlock:es","FrameworkElement",{init:function(){t.$ea.init.call(this)},z:null,aa:function(n){return arguments.length===1?(this.z!=n&&(this.z=n,this.y(-1)),n):this.z},_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},_y:0,y:function(n){return arguments.length===1?(this._y=n,n):this._y},$type:new n.ig.Type("TextBlock",t.$ea.$type)},!0);n.ig.util.defType("CornerRadius:ev","Object",{init:function(t,i){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.$op.init.call(this);this.a(this.b(this.c(this.d(i))))},init1:function(t,i,r,u,f){n.ig.$op.init.call(this);this.c(i);this.d(r);this.b(u);this.a(f)},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},$type:new n.ig.Type("CornerRadius",n.ig.$ot)},!0);n.ig.util.defType("DataTemplate:ei","Object",{init:function(){n.ig.$op.init.call(this)},_render:null,render:function(n){return arguments.length===1?(this._render=n,n):this._render},_measure:null,measure:function(n){return arguments.length===1?(this._measure=n,n):this._measure},_passStarting:null,passStarting:function(n){return arguments.length===1?(this._passStarting=n,n):this._passStarting},_passCompleted:null,passCompleted:function(n){return arguments.length===1?(this._passCompleted=n,n):this._passCompleted},$type:new n.ig.Type("DataTemplate",n.ig.$ot)},!0);n.ig.util.defType("DataTemplatePassInfo:el","Object",{init:function(){n.ig.$op.init.call(this)},renderContext:null,context:null,viewportTop:0,viewportLeft:0,viewportWidth:0,viewportHeight:0,isHitTestRender:!1,passID:null,$type:new n.ig.Type("DataTemplatePassInfo",n.ig.$ot)},!0);n.ig.util.defType("DataTemplateMeasureInfo:en","Object",{init:function(){n.ig.$op.init.call(this)},renderContext:null,context:null,width:0,height:0,isConstant:!1,data:null,passInfo:null,renderOffsetX:0,renderOffsetY:0,$type:new n.ig.Type("DataTemplateMeasureInfo",n.ig.$ot)},!0);n.ig.util.defType("DataTemplateRenderInfo:ek","Object",{init:function(){n.ig.$op.init.call(this)},renderContext:null,context:null,xPosition:0,yPosition:0,availableWidth:0,availableHeight:0,data:null,isHitTestRender:!1,passInfo:null,renderOffsetX:0,renderOffsetY:0,$type:new n.ig.Type("DataTemplateRenderInfo",n.ig.$ot)},!0);n.ig.util.defType("Binding:cj","Object",{init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}this.a=!1;n.ig.$op.init.call(this)},init1:function(i,r){this.a=!1;n.ig.$op.init.call(this);this.e=new t.ck(r)},c:null,d:function(n){return arguments.length===1?(this.c=n,n):this.c},e:null,f:function(n){return arguments.length===1?(this.e=n,n):this.e},a:!1,b:function(n){return arguments.length===1?(this.a=n,n):this.a},$type:new n.ig.Type("Binding",n.ig.$ot)},!0);n.ig.util.defType("UnsetValue:ci","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("UnsetValue",n.ig.$ot)},!0);n.ig.util.defType("DependencyPropertiesCollection:ch","Object",{a:null,c:function(){return t.$ch.b==null&&(t.$ch.b=new t.ch),t.$ch.b},init:function(){n.ig.$op.init.call(this);this.a==null&&(this.a=new n.ig.Dictionary(0))},d:function(n){return this.a.item(n)},e:function(n,i,r,u){var f=new t.cd(n,i,u);return this.a.item(r.typeName()+n,f),f},$type:new n.ig.Type("DependencyPropertiesCollection",n.ig.$ot)},!0);n.ig.util.defType("DependencyPropertyChangedEventArgs:cg","Object",{a:null,b:null,init:function(t,i,r){n.ig.$op.init.call(this);this.a=i;this.b=r;this.e=t},e:null,f:function(n){return arguments.length===1?(this.e=n,n):this.e},c:function(){return this.a},d:function(){return this.b},$type:new n.ig.Type("DependencyPropertyChangedEventArgs",n.ig.$ot)},!0);n.ig.util.defType("MouseEventArgs:ey","EventArgs",{init:function(){t.$a9.init.call(this)},_position:null,position:function(n){return arguments.length===1?(this._position=n,n):this._position},_originalSource:null,originalSource:function(n){return arguments.length===1?(this._originalSource=n,n):this._originalSource},getPosition:function(){return this.position()},$type:new n.ig.Type("MouseEventArgs",t.$a9.$type)},!0);n.ig.util.defType("MouseButtonEventArgs:e0","MouseEventArgs",{init:function(){t.$ey.init.call(this)},_handled:!1,handled:function(n){return arguments.length===1?(this._handled=n,n):this._handled},$type:new n.ig.Type("MouseButtonEventArgs",t.$ey.$type)},!0);n.ig.util.defType("Brush:et","Object",{init:function(){n.ig.$op.init.call(this);this.__fill=null;this.d=null},_isGradient:!1,_isRadialGradient:!1,_isImageFill:!1,__fill:null,fill:function(n){return arguments.length===1?(this.__fill=n,n):this.__fill},d:null,h:null,color:function(n){if(arguments.length===1)return this.h=n,this.d=this.h.colorString(),this.__fill=this.d,n;if(this.__fill==this.d)return this.h;var n=new t.eu;return this.__fill!=null&&(n.colorString(this.__fill),this.h=n,this.d=this.__fill),n},create:function(i){var r=new t.et,u;if(!i)return null;if(typeof i=="string")r=new n.ig.Brush,r.fill(i);else if(i.type=="linearGradient"&&(r=new n.ig.LinearGradientBrush,i.startPoint&&i.endPoint&&(r._useCustomDirection=!0,r._startX=i.startPoint.x,r._startY=i.startPoint.y,r._endX=i.endPoint.x,r._endY=i.endPoint.y),i.colorStops)){for(stops=[],u=0;u<i.colorStops.length;u++)colorStop=new n.ig.GradientStop,colorStop._offset=i.colorStops[u].offset,colorStop.__fill=i.colorStops[u].color,stops.push(colorStop);r._gradientStops=stops}return r},$type:new n.ig.Type("Brush",n.ig.$ot)},!0);n.ig.util.defType("LinearGradientBrush:e1","Brush",{init:function(){t.$et.init.call(this);this._useCustomDirection=!1;this._startX=0;this._startY=0;this._endX=0;this._endY=1;this._isAbsolute=!1;this._gradientStops=new Array(0);this._isGradient=!0},_useCustomDirection:!1,_startX:0,_startY:0,_endX:0,_endY:0,_isAbsolute:!1,_gradientStops:null,clone:function(){var n=new t.e1,i;if(n._startX=this._startX,n._startY=this._startY,n._endX=this._endX,n._endY=this._endY,n._useCustomDirection=this._useCustomDirection,n._isAbsolute=this._isAbsolute,this._gradientStops!=null)for(n._gradientStops=new Array(this._gradientStops.length),i=0;i<this._gradientStops.length;i++)n._gradientStops[i]=this._gradientStops[i].clone();return n},$type:new n.ig.Type("LinearGradientBrush",t.$et.$type)},!0);n.ig.util.defType("GradientStop:e2","Object",{init:function(){this.__fill=null;this.b=null;n.ig.$op.init.call(this);this._offset=0},_offset:0,clone:function(){var n=new t.e2;return n._offset=this._offset,n.__fill=this.__fill,n},__fill:null,fill:function(n){return arguments.length===1?(this.__fill=n,n):this.__fill},b:null,e:null,color:function(n){if(arguments.length===1)return this.e=n,this.b=this.e.colorString(),this.__fill=this.b,n;if(this.__fill==this.b)return this.e;var n=new t.eu;return this.__fill!=null&&(n.colorString(this.__fill),this.e=n,this.b=this.__fill),n},$type:new n.ig.Type("GradientStop",n.ig.$ot)},!0);n.ig.util.defType("Color:eu","Object",{init:function(){n.ig.$op.init.call(this);this.__a=0;this.__r=0;this.__g=0;this.__b=0;this.__colorString="";this.a=!0},__a:null,f:function(n){return arguments.length===1?(this.__a=Math.round(n),this.a=!0,n):this.__a},__r:null,i:function(n){return arguments.length===1?(this.__r=Math.round(n),this.a=!0,n):this.__r},__g:null,h:function(n){return arguments.length===1?(this.__g=Math.round(n),this.a=!0,n):this.__g},__b:null,g:function(n){return arguments.length===1?(this.__b=Math.round(n),this.a=!0,n):this.__b},__colorString:null,colorString:function(n){return arguments.length===1?(this.__colorString=n,this.l(),n):(this.a&&(this.a=!1,this.m()),this.__colorString)},a:!1,m:function(){this.__colorString="rgba("+this.__r+","+this.__g+","+this.__b+","+this.__a/255+")"},l:function(){var t=n.ig.util.stringToColor(this.__colorString);this.__a=typeof t.a!="undefined"?Math.round(t.a):0;this.__r=typeof t.r!="undefined"?Math.round(t.r):0;this.__g=typeof t.g!="undefined"?Math.round(t.g):0;this.__b=typeof t.b!="undefined"?Math.round(t.b):0},n:function(n,i,r,u){var f=new t.eu;return f.__a=n|0,f.__r=i|0,f.__g=r|0,f.__b=u|0,f.a=!0,f},$type:new n.ig.Type("Color",n.ig.$ot)},!0);n.ig.util.defType("DoubleCollection:e3","List$1",{init:function(){t.$al.init.call(this,Number)},$type:new n.ig.Type("DoubleCollection",t.$al.$type.specialize(Number))},!0);n.ig.util.defType("Geometry:e6","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){},$type:new n.ig.Type("Geometry",n.ig.$ot)},!0);n.ig.util.defType("GeometryCollection:e7","List$1",{init:function(){t.$al.init.call(this,t.$e6.$type)},$type:new n.ig.Type("GeometryCollection",t.$al.$type.specialize(t.$e6.$type))},!0);n.ig.util.defType("GeometryGroup:e8","Geometry",{init:function(){t.$e6.init.call(this);this.c(new t.e7)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},a:function(){return 0},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("GeometryGroup",t.$e6.$type)},!0);n.ig.util.defType("LineGeometry:e9","Geometry",{init:function(){t.$e6.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},a:function(){return 1},$type:new n.ig.Type("LineGeometry",t.$e6.$type)},!0);n.ig.util.defType("RectangleGeometry:fa","Geometry",{init:function(){t.$e6.init.call(this)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},a:function(){return 2},$type:new n.ig.Type("RectangleGeometry",t.$e6.$type)},!0);n.ig.util.defType("EllipseGeometry:fd","Geometry",{init:function(){t.$e6.init.call(this)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},a:function(){return 3},$type:new n.ig.Type("EllipseGeometry",t.$e6.$type)},!0);n.ig.util.defType("PathGeometry:fe","Geometry",{init:function(){t.$e6.init.call(this);this.b(new t.ff)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},a:function(){return 4},$type:new n.ig.Type("PathGeometry",t.$e6.$type)},!0);n.ig.util.defType("PathFigure:fg","Object",{init:function(){n.ig.$op.init.call(this);this.__segments=new t.fh;this.__isClosed=!1;this.__isFilled=!0},__segments:null,segments:function(n){return arguments.length===1?(this.__segments=n,n):this.__segments},__startPoint:null,startPoint:function(n){return arguments.length===1?(this.__startPoint=n,n):this.__startPoint},__isFilled:!1,isFilled:function(n){return arguments.length===1?(this.__isFilled=n,n):this.__isFilled},__isClosed:!1,isClosed:function(n){return arguments.length===1?(this.__isClosed=n,n):this.__isClosed},$type:new n.ig.Type("PathFigure",n.ig.$ot)},!0);n.ig.util.defType("PathFigureCollection:ff","List$1",{init:function(){t.$al.init.call(this,t.$fg.$type)},$type:new n.ig.Type("PathFigureCollection",t.$al.$type.specialize(t.$fg.$type))},!0);n.ig.util.defType("PathSegment:fj","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){},$type:new n.ig.Type("PathSegment",n.ig.$ot)},!0);n.ig.util.defType("PathSegmentCollection:fh","List$1",{init:function(){t.$al.init.call(this,t.$fj.$type)},$type:new n.ig.Type("PathSegmentCollection",t.$al.$type.specialize(t.$fj.$type))},!0);n.ig.util.defType("LineSegment:fk","PathSegment",{b:null,c:function(n){return arguments.length===1?(this.b=n,n):this.b},init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$fj.init.call(this);this.c(i)},init1:function(){t.$fj.init.call(this)},a:function(){return 0},$type:new n.ig.Type("LineSegment",t.$fj.$type)},!0);n.ig.util.defType("BezierSegment:fl","PathSegment",{b:null,e:function(n){return arguments.length===1?(this.b=n,n):this.b},c:null,f:function(n){return arguments.length===1?(this.c=n,n):this.c},d:null,g:function(n){return arguments.length===1?(this.d=n,n):this.d},init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$fj.init.call(this)},init1:function(n,i,r,u){t.$fj.init.call(this);this.e(i);this.f(r);this.g(u)},a:function(){return 1},$type:new n.ig.Type("BezierSegment",t.$fj.$type)},!0);n.ig.util.defType("PolyBezierSegment:fm","PathSegment",{init:function(){t.$fj.init.call(this);this.b(new t.fn(0))},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},a:function(){return 2},$type:new n.ig.Type("PolyBezierSegment",t.$fj.$type)},!0);n.ig.util.defType("PolyLineSegment:fo","PathSegment",{init:function(){t.$fj.init.call(this);this.__points=new t.fn(0)},__points:null,points:function(n){return arguments.length===1?(this.__points=n,n):this.__points},a:function(){return 3},$type:new n.ig.Type("PolyLineSegment",t.$fj.$type)},!0);n.ig.util.defType("ArcSegment:fp","PathSegment",{init:function(){t.$fj.init.call(this);this.b(!1);this.e(0)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},a:function(){return 4},$type:new n.ig.Type("ArcSegment",t.$fj.$type)},!0);n.ig.util.defType("Transform:d8","DependencyObject",{init:function(){t.$cc.init.call(this)},$type:new n.ig.Type("Transform",t.$cc.$type)},!0);n.ig.util.defType("RotateTransform:ft","Transform",{init:function(){t.$d8.init.call(this)},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},$type:new n.ig.Type("RotateTransform",t.$d8.$type)},!0);n.ig.util.defType("TranslateTransform:fu","Transform",{init:function(){t.$d8.init.call(this)},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},$type:new n.ig.Type("TranslateTransform",t.$d8.$type)},!0);n.ig.util.defType("ScaleTransform:fv","Transform",{init:function(){t.$d8.init.call(this)},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},$type:new n.ig.Type("ScaleTransform",t.$d8.$type)},!0);n.ig.util.defType("TransformGroup:fw","Transform",{_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},init:function(){t.$d8.init.call(this);this.h(new t.fx)},$type:new n.ig.Type("TransformGroup",t.$d8.$type)},!0);n.ig.util.defType("TransformCollection:fx","List$1",{init:function(){t.$al.init.call(this,t.$d8.$type)},$type:new n.ig.Type("TransformCollection",t.$al.$type.specialize(t.$d8.$type))},!0);n.ig.util.defType("Thickness:ee","Object",{init:function(t,i){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.$op.init.call(this);this.b(this.c(this.d(this.e(i))))},init1:function(t,i,r,u,f){n.ig.$op.init.call(this);this.c(i);this.e(r);this.d(u);this.b(f)},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},a:function(n){return this.b()==n.b()&&this.e()==n.e()&&this.c()==n.c()&&this.d()==n.d()},$type:new n.ig.Type("Thickness",n.ig.$ot)},!0);n.ig.util.defType("Point:ez","Object",{init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.$op.init.call(this);this.__x=0;this.__y=0},x:function(n){return arguments.length===1?(this.__x=n,n):this.__x},y:function(n){return arguments.length===1?(this.__y=n,n):this.__y},__x:0,__y:0,init1:function(t,i,r){n.ig.$op.init.call(this);this.__x=i;this.__y=r},$type:new n.ig.Type("Point",n.ig.$ot)},!0);n.ig.util.defType("PointCollection:fn","List$1",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$al.init.call(this,t.$ez.$type)},init1:function(n,i){t.$al.init.call(this,t.$ez.$type);this.__inner=i.__inner},$type:new n.ig.Type("PointCollection",t.$al.$type.specialize(t.$ez.$type))},!0);n.ig.util.defType("PropertyMetadata:ce","Object",{a:null,b:function(n){return arguments.length===1?(this.a=n,n):this.a},c:null,d:function(n){return arguments.length===1?(this.c=n,n):this.c},init:function(t,i){if(t>0){switch(t){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}n.ig.$op.init.call(this);this.b(i);this.d(null)},init1:function(t,i){n.ig.$op.init.call(this);this.b(null);this.d(i)},init2:function(t,i,r){n.ig.$op.init.call(this);this.b(i);this.d(r)},$type:new n.ig.Type("PropertyMetadata",n.ig.$ot)},!0);n.ig.util.defType("PropertyPath:ck","Object",{a:null,b:function(n){return arguments.length===1?(this.a=n,n):this.a},init:function(t){n.ig.$op.init.call(this);this.b(t)},$type:new n.ig.Type("PropertyPath",n.ig.$ot)},!0);n.ig.util.defType("Rect:fb","Object",{init:function(t,i,r,u,f){if(t>0){switch(t){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break;case 3:this.init3.apply(this,arguments);break;case 4:this.init4.apply(this,arguments)}return}n.ig.$op.init.call(this);this.top(r);this.left(i);this.width(u);this.height(f)},init1:function(t,i,r,u){n.ig.$op.init.call(this);this.top(r);this.left(i);this.width(u.b());this.height(u.a())},init2:function(t,i,r){n.ig.$op.init.call(this);this.top(Math.min(i.__y,r.__y));this.left(Math.min(i.__x,r.__x));this.width(Math.max(Math.max(i.__x,r.__x)-this.left(),0));this.height(Math.max(Math.max(i.__y,r.__y)-this.top(),0))},init3:function(t,i,r){n.ig.$op.init.call(this);this.top(i.__y);this.left(i.__x);this.width(r.b());this.height(r.a())},init4:function(){n.ig.$op.init.call(this);this.top(0);this.left(0);this.width(0);this.height(0)},n:0,x:function(n){return arguments.length===1?(this.n=n,this.j=this.n,this.k=this.j+this.m,n):this.n},o:0,y:function(n){return arguments.length===1?(this.o=n,this.l=this.o,this.h=this.l+this.i,n):this.o},m:0,width:function(n){return arguments.length===1?(this.m=n,this.k=this.j+this.m,n):this.m},i:0,height:function(n){return arguments.length===1?(this.i=n,this.h=this.l+this.i,n):this.i},l:0,top:function(n){return arguments.length===1?(this.l=n,this.y(this.l),n):this.l},j:0,left:function(n){return arguments.length===1?(this.j=n,this.x(this.j),n):this.j},k:0,right:function(n){return arguments.length===1?(this.k=n,this.m=this.k-this.j,n):this.k},h:0,bottom:function(n){return arguments.length===1?(this.h=n,this.i=this.h-this.l,n):this.h},isEmpty:function(){return this.m<0},empty:function(){return new t.fb(0,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY)},equals:function(n){return n==null?!1:n.x()==this.x()&&n.y()==this.y()&&n.width()==this.width()&&n.height()==this.height()?!0:!1},d:function(n,t){return n>=this.n&&n-this.m<=this.n&&t>=this.o&&t-this.i<=this.o},containsLocation:function(n,t){return!this.isEmpty()&&this.d(n,t)},containsPoint:function(n){return this.containsLocation(n.__x,n.__y)},containsRect:function(n){return!this.isEmpty()&&!n.isEmpty()&&this.n<=n.n&&this.o<=n.o&&this.n+this.m>=n.n+n.m&&this.o+this.i>=n.o+n.i},intersectsWith:function(n){return!(n.left()>this.right()||n.right()<this.left()||n.top()>this.bottom()||n.bottom()<this.top())},intersect:function(n){this.intersectsWith(n)||(this.l=Number.POSITIVE_INFINITY,this.j=Number.POSITIVE_INFINITY,this.m=Number.NEGATIVE_INFINITY,this.i=Number.NEGATIVE_INFINITY);var r=Math.max(this.x(),n.x()),u=Math.max(this.y(),n.y()),t=Math.min(this.x()+this.width(),n.x()+n.width())-r,i=Math.min(this.y()+this.height(),n.y()+n.height())-u;t<0&&(t=0);i<0&&(i=0);this.m=t;this.i=i;this.n=r;this.o=u;this.j=this.n;this.l=this.o;this.k=this.j+this.m;this.h=this.l+this.i},union:function(n){var f,e;if(this.isEmpty()){this.n=n.x();this.o=n.y();this.m=n.width();this.i=n.height();this.j=this.n;this.l=this.o;this.k=this.j+this.m;this.h=this.l+this.i;return}if(!n.isEmpty()){var r=Math.min(this.x(),n.x()),u=Math.min(this.y(),n.y()),t=this.width(),i=this.height();n.width()==Number.POSITIVE_INFINITY||this.width()==Number.POSITIVE_INFINITY?t=Number.POSITIVE_INFINITY:(f=Math.max(this.right(),n.right()),t=f-r);n.height()==Number.POSITIVE_INFINITY||this.height()==Number.POSITIVE_INFINITY?i=Number.POSITIVE_INFINITY:(e=Math.max(this.bottom(),n.bottom()),i=e-u);this.n=r;this.o=u;this.m=t;this.i=i;this.j=this.n;this.l=this.o;this.k=this.j+this.m;this.h=this.l+this.i}},$type:new n.ig.Type("Rect",n.ig.$ot)},!0);n.ig.util.defType("Shape:fz","FrameworkElement",{init:function(){this.__fill=null;this.__stroke=null;t.$ea.init.call(this)},__fill:null,fill:function(n){return arguments.length===1?(this.__fill=n,n):this.__fill},__stroke:null,stroke:function(n){return arguments.length===1?(this.__stroke=n,n):this.__stroke},_y:!1,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_z:0,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_af:null,af:function(n){return arguments.length===1?(this._af=n,n):this._af},_aa:0,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},$type:new n.ig.Type("Shape",t.$ea.$type)},!0);n.ig.util.defType("Line:f0","Shape",{init:function(){t.$fz.init.call(this);this.ag(0);this.ah(0);this.ai(0);this.aj(0)},_ag:0,ag:function(n){return arguments.length===1?(this._ag=n,n):this._ag},_ah:0,ah:function(n){return arguments.length===1?(this._ah=n,n):this._ah},_ai:0,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_aj:0,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},$type:new n.ig.Type("Line",t.$fz.$type)},!0);n.ig.util.defType("Path:f1","Shape",{init:function(){t.$fz.init.call(this)},_ak:null,ak:function(n){return arguments.length===1?(this._ak=n,n):this._ak},ag:0,ah:function(n){return arguments.length===1?(this.ag=n,n):this.ag},ai:0,aj:function(n){return arguments.length===1?(this.ai=n,n):this.ai},$type:new n.ig.Type("Path",t.$fz.$type)},!0);n.ig.util.defType("Polygon:f2","Shape",{init:function(){t.$fz.init.call(this);this.ag(new t.fn(0))},_ag:null,ag:function(n){return arguments.length===1?(this._ag=n,n):this._ag},$type:new n.ig.Type("Polygon",t.$fz.$type)},!0);n.ig.util.defType("Polyline:f3","Shape",{init:function(){t.$fz.init.call(this);this.ag(new t.fn(0))},_ag:null,ag:function(n){return arguments.length===1?(this._ag=n,n):this._ag},$type:new n.ig.Type("Polyline",t.$fz.$type)},!0);n.ig.util.defType("Rectangle:f4","Shape",{al:null,ag:0,ai:function(n){return arguments.length===1?(this.ag=n,n):this.ag},ah:0,aj:function(n){return arguments.length===1?(this.ah=n,n):this.ah},init:function(){t.$fz.init.call(this);this.al=new t.fb(0,0,0,0,0)},ak:function(){},$type:new n.ig.Type("Rectangle",t.$fz.$type)},!0);n.ig.util.defType("Size:fc","Object",{init:function(t,i){n.ig.$op.init.call(this);this.b(t);this.a(i)},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("Size",n.ig.$ot)},!0);n.ig.util.defType("Style:ec","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("Style",n.ig.$ot)},!0);n.ig.util.defType("StyleTypedPropertyAttribute:f5","Attribute",{init:function(){t.$f6.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("StyleTypedPropertyAttribute",t.$f6.$type)},!0);n.ig.util.defType("TemplatePartAttribute:f7","Attribute",{init:function(){t.$f6.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("TemplatePartAttribute",t.$f6.$type)},!0);n.ig.util.defType("TemplateVisualStateAttribute:f8","Attribute",{init:function(){t.$f6.init.call(this)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("TemplateVisualStateAttribute",t.$f6.$type)},!0);n.ig.util.defType("XObject:f9","Object",{init:function(t){n.ig.$op.init.call(this);this.backingNode(t)},_backingNode:null,backingNode:function(n){return arguments.length===1?(this._backingNode=n,n):this._backingNode},c:function(){},toString:function(){return this.backingNode()!=null?t.$gi.xmlNodeToString(this.backingNode()):""},$type:new n.ig.Type("XObject",n.ig.$ot)},!0);n.ig.util.defType("XAttribute:gj","XObject",{init:function(n){t.$f9.init.call(this,n)},e:function(n){this.backingNode(this.backingNode().cloneNode(!0));n.setAttributeNode(this.backingNode())},c:function(){return 2},d:function(){return t.$gi.b(this.backingNode())},$type:new n.ig.Type("XAttribute",t.$f9.$type)},!0);n.ig.util.defType("XNode:gk","XObject",{init:function(n){t.$f9.init.call(this,n)},$type:new n.ig.Type("XNode",t.$f9.$type)},!0);n.ig.util.defType("XContainer:gl","XNode",{init:function(n){t.$gk.init.call(this,n)},h:function(n){for(var i,r=null,e=this.backingNode(),f=e.childNodes,o=f.length,s=n.c(),h=n.d(),u=0;u<o;u++)i=f.item(u),i.namespaceURI==h&&i.nodeType==1&&t.$gi.d(i)==s&&(r=i);return r==null?null:new t.gm(0,r)},d:function(){return this.f(null)},e:function(n){return this.f(n)},f:function(n){for(var i,r,f=new t.al(t.$gm.$type,0),u=0;u<this.backingNode().childNodes.length;u++)i=this.backingNode().childNodes.item(u),i.nodeType==1&&(r=!1,n!=null?t.$gi.d(i)==n.c()&&i.namespaceURI==n.d()&&(r=!0):r=!0,r&&f.add1(new t.gm(0,i)));return f},g:function(i){var r=this.backingNode(),u;u=n.ig.util.cast(t.$gp.$type,this)!==null?this.backingNode():this.backingNode().ownerDocument;n.ig.util.cast(t.$gj.$type,i)!==null?i.e(r):n.ig.util.cast(t.$gm.$type,i)!==null&&i.j(r,u)},$type:new n.ig.Type("XContainer",t.$gk.$type)},!0);n.ig.util.defType("XDocument:gp","XContainer",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$gl.init.call(this,i)},init1:function(){t.$gl.init.call(this,t.$gi.j())},c:function(){return 9},i:function(n){return new t.gp(0,t.$gi.n(n))},$type:new n.ig.Type("XDocument",t.$gl.$type)},!0);n.ig.util.defType("XElement:gm","XContainer",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments)}return}t.$gl.init.call(this,i)},init1:function(n,i){t.$gm.init2.call(this,2,i,null)},init2:function(n,i,r){t.$gl.init.call(this,t.$gi.o(i.c(),i.d()));var u=r==null?"":r.toString();this.i(u)},i:function(n){return arguments.length===1?(t.$gi.h(this.backingNode(),n),n):t.$gi.c(this.backingNode())},c:function(){return 1},l:function(){return t.$gn.e(t.$gi.d(this.backingNode()),this.backingNode().namespaceURI)},k:function(n){return new t.gj(t.$gi.i(this.backingNode(),n.c(),n.d()))},j:function(n,i){this.backingNode().ownerDocument!=i&&this.backingNode(t.$gi.p(i,this.backingNode()));n.appendChild(this.backingNode())},$type:new n.ig.Type("XElement",t.$gl.$type)},!0);n.ig.util.defType("XmlUtils:gi","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){return!!window.DOMParser},m:function(n){var t=n;return(new DOMParser).parseFromString(t,"text/xml")},l:function(n){var t=n;return function(n){var t=new ActiveXObject("Microsoft.XMLDOM");return t.async=!1,t.loadXML(n),t}(t)},f:function(n){var t=n;return(new XMLSerializer).serializeToString(t)},e:function(n){var t=n;return t.xml},k:function(){return new ActiveXObject("Microsoft.XMLDOM")},n:function(n){return t.$gi.a()?t.$gi.m(n):t.$gi.l(n)},xmlNodeToString:function(n){return t.$gi.a()?t.$gi.f(n):t.$gi.e(n)},j:function(){var n;return t.$gi.a()?(n=t.$gi.m("<dummy/>"),n.removeChild(n.documentElement)):n=t.$gi.k(),n},o:function(n,i){var r=t.$gi.j(),u,f;return t.$gi.a()?r.createElementNS(i,n):(u=n,f=i,r.createNode(1,u,f))},c:function(n){if(t.$gi.a())return n.textContent;var i=n;return i.text},h:function(n,i){if(t.$gi.a())n.textContent=i;else{var r=n,u=i;r.text=u}},p:function(n,i){return t.$gi.a()?n.importNode(i,!0):i},d:function(n){if(t.$gi.a())return n.localName;var i=n;return i.baseName},i:function(n,i,r){if(t.$gi.a())return n.getAttributeNodeNS(r,i);var u=n,f=i,e=r;return u.attributes.getQualifiedItem(f,e)},b:function(n){if(t.$gi.a())return n.nodeValue;var i=n;return i.value},$type:new n.ig.Type("XmlUtils",n.ig.$ot)},!0);n.ig.util.defType("XName:gn","Object",{a:null,b:null,init:function(t,i){n.ig.$op.init.call(this);this.a=t;this.b=i},c:function(){return this.a},d:function(){return this.b},f:function(){return t.$go.c(this.b)},e:function(n,i){return new t.gn(n,i)},$type:new n.ig.Type("XName",n.ig.$ot)},!0);n.ig.util.defType("XNamespace:go","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},c:function(n){return new t.go(n)},d:function(){return t.$go.c("http://www.w3.org/2000/xmlns/")},b:function(){return this.a},$type:new n.ig.Type("XNamespace",n.ig.$ot)},!0);t.$eb.visible=0;t.$eb.collapsed=1;t.$eg.top=0;t.$eg.center=1;t.$eg.bottom=2;t.$eg.stretch=3;t.$fs.none=0;t.$fs.fill=1;t.$fs.uniform=2;t.$fs.uniformToFill=3;t.$fr.flat=0;t.$fr.square=1;t.$fr.round=2;t.$fr.triangle=3;t.$ef.left=0;t.$ef.center=1;t.$ef.right=2;t.$ef.stretch=3;t.$fq.counterclockwise=0;t.$fq.clockwise=1;t.$fi.line=0;t.$fi.bezier=1;t.$fi.polyBezier=2;t.$fi.polyLine=3;t.$fi.arc=4;t.$e5.group=0;t.$e5.line=1;t.$e5.rectangle=2;t.$e5.ellipse=3;t.$e5.path=4;t.$e4.evenOdd=0;t.$e4.nonzero=1;t.$ex.none=0;t.$ex.alt=1;t.$ex.control=2;t.$ex.shift=4;t.$ex.windows=8;t.$ex.apple=8;t.$ew.none=0;t.$ew.back=1;t.$ew.tab=2;t.$ew.enter=3;t.$ew.shift=4;t.$ew.ctrl=5;t.$ew.alt=6;t.$ew.capsLock=7;t.$ew.escape=8;t.$ew.space=9;t.$ew.pageUp=10;t.$ew.pageDown=11;t.$ew.end=12;t.$ew.home=13;t.$ew.left=14;t.$ew.up=15;t.$ew.right=16;t.$ew.down=17;t.$ew.insert=18;t.$ew.del=19;t.$ew.d0=20;t.$ew.d1=21;t.$ew.d2=22;t.$ew.d3=23;t.$ew.d4=24;t.$ew.d5=25;t.$ew.d6=26;t.$ew.d7=27;t.$ew.d8=28;t.$ew.d9=29;t.$ew.a=30;t.$ew.b=31;t.$ew.c=32;t.$ew.d=33;t.$ew.e=34;t.$ew.f=35;t.$ew.g=36;t.$ew.h=37;t.$ew.i=38;t.$ew.j=39;t.$ew.k=40;t.$ew.l=41;t.$ew.m=42;t.$ew.n=43;t.$ew.o=44;t.$ew.p=45;t.$ew.q=46;t.$ew.r=47;t.$ew.s=48;t.$ew.t=49;t.$ew.u=50;t.$ew.v=51;t.$ew.w=52;t.$ew.x=53;t.$ew.y=54;t.$ew.z=55;t.$ew.f1=56;t.$ew.f2=57;t.$ew.f3=58;t.$ew.f4=59;t.$ew.f5=60;t.$ew.f6=61;t.$ew.f7=62;t.$ew.f8=63;t.$ew.f9=64;t.$ew.f10=65;t.$ew.f11=66;t.$ew.f12=67;t.$ew.numPad0=68;t.$ew.numPad1=69;t.$ew.numPad2=70;t.$ew.numPad3=71;t.$ew.numPad4=72;t.$ew.numPad5=73;t.$ew.numPad6=74;t.$ew.numPad7=75;t.$ew.numPad8=76;t.$ew.numPad9=77;t.$ew.multiply=78;t.$ew.add=79;t.$ew.subtract=80;t.$ew.decimal=81;t.$ew.divide=82;t.$ew.unknown=255;t.$dd.created=0;t.$dd.ranToCompletion=5;t.$dd.canceled=6;t.$dd.faulted=7;t.$cs.ascending=0;t.$cs.descending=1;t.$ba.add=0;t.$ba.remove=1;t.$ba.replace=2;t.$ba.reset=4;t.$cd.c=new t.ci;t.$cl.h="UseLightweightMarkers";t.$cl.k=t.$cd.i("UseLightweightMarkers",t.$d.$type,t.$cl.$type,new t.ce(2,!1,function(i,r){n.ig.util.cast(t.$cl.$type,i).j("UseLightweightMarkers",r.d(),r.c())}));t.$c5.g=null;t.$c5.f=null;t.$ch.b=null;n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ICollection$1,n.ig.IEnumerable$1,n.ig.IList$1,n.ig.List$1,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.AbstractEnumerable,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ICollection$1,n.ig.IEnumerable$1,n.ig.IList$1,n.ig.List$1,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.ICollection$1,n.ig.IEnumerable$1,n.ig.IList$1,n.ig.List$1,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.AbstractEnumerable,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1],["ofType$1","cast$1"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["BrushCollection:a","ObservableCollection$1:b","List$1:c","Object:d","Type:e","Boolean:f","ValueType:g","Void:h","String:i","IComparable:j","Number:k","Number:l","Single:m","Number:n","String:o","Array:p","RegExp:q","RuntimeTypeHandle:r","MethodInfo:s","MethodBase:t","MemberInfo:u","ParameterInfo:v","TypeCode:w","Enum:x","ConstructorInfo:y","IList$1:z","ICollection$1:aa","IEnumerable$1:ab","IEnumerable:ac","IEnumerator:ad","IEnumerator$1:ae","IArrayList:af","Array:ag","ICollection:ah","CompareCallback:ai","MulticastDelegate:aj","IntPtr:ak","IList:al","IDisposable:am","IArray:an","Script:ao","Date:ap","Date:aq","Number:ar","Func$3:as","Action$1:at","INotifyCollectionChanged:au","NotifyCollectionChangedEventHandler:av","NotifyCollectionChangedEventArgs:aw","EventArgs:ax","NotifyCollectionChangedAction:ay","INotifyPropertyChanged:az","PropertyChangedEventHandler:a0","PropertyChangedEventArgs:a1","Delegate:a2","InterpolationMode:a3","Brush:a4","Color:a5","Number:a6","Math:a7","Number:a8","Number:a9","Number:ba","Number:bb","Number:bc","Number:bd","Random:be","MathUtil:bf","RuntimeHelpers:bg","RuntimeFieldHandle:bh","ColorUtil:bi","EventProxy:bj","Rect:bk","Size:bl","Point:bm","ModifierKeys:bn","Func$2:bo","MouseWheelHandler:bp","GestureHandler:bq","ContactHandler:br","TouchHandler:bs","MouseOverHandler:bt","MouseHandler:bu","KeyHandler:bv","Key:bw","DOMEventProxy:bx","JQueryObject:by","Element:bz","ElementAttributeCollection:b0","ElementCollection:b1","WebStyle:b2","ElementNodeType:b3","Document:b4","EventListener:b5","IElementEventHandler:b6","ElementEventHandler:b7","ElementAttribute:b8","JQueryPosition:b9","JQueryCallback:ca","JQueryEvent:cb","JQueryUICallback:cc","MSGesture:cd","JQuery:ce","JQueryDeferred:cf","JQueryPromise:cg","Action:ch","Callback:ci","window:cj","MouseEventArgs:ck","UIElement:cl","DependencyObject:cm","Dictionary:cn","DependencyProperty:co","PropertyMetadata:cp","PropertyChangedCallback:cq","DependencyPropertyChangedEventArgs:cr","DependencyPropertiesCollection:cs","UnsetValue:ct","Binding:cu","PropertyPath:cv","Transform:cw","TrendCalculators:cx","TrendLineType:cy","UnknownValuePlotting:cz","ErrorBarCalculatorReference:c0","ErrorBarCalculatorType:c1","IErrorBarCalculator:c2","IFastItemColumn$1:c3","IFastItemColumnPropertyName:c4","EventHandler$1:c5","ErrorMessageDisplayingEventArgs:c6","IFastItemColumnInternal:c7","FastItemColumn:c8","IFastItemsSource:c9","NotImplementedException:da","Error:db","FastReflectionHelper:dc","FastItemDateTimeColumn:dd","FastItemObjectColumn:de","FastItemIntColumn:df","FastItemsSource:dg","Dictionary$2:dh","IDictionary$2:di","IDictionary:dj","IEqualityComparer$1:dk","KeyValuePair$2:dl","FastItemsSourceEventAction:dm","FastItemsSourceEventArgs:dn","ArgumentException:dp","ColumnReference:dq","IRenderer:dr","Rectangle:ds","Shape:dt","FrameworkElement:du","Visibility:dv","Style:dw","DoubleCollection:dx","Path:dy","Geometry:dz","GeometryType:d0","TextBlock:d1","Polygon:d2","PointCollection:d3","Polyline:d4","DataTemplateRenderInfo:d5","DataTemplatePassInfo:d6","ContentControl:d7","Control:d8","Thickness:d9","HorizontalAlignment:ea","VerticalAlignment:eb","DataTemplate:ec","DataTemplateRenderHandler:ed","DataTemplateMeasureHandler:ee","DataTemplateMeasureInfo:ef","DataTemplatePassHandler:eg","Line:eh","RectChangedEventArgs:ei","RectChangedEventHandler:ej","CanvasRenderScheduler:ek","ISchedulableRender:el","RenderingContext:em","CanvasViewRenderer:en","CanvasContext2D:eo","CanvasContext:ep","TextMetrics:eq","ImageData:er","CanvasElement:es","Gradient:et","LinearGradientBrush:eu","GradientStop:ev","GeometryGroup:ew","GeometryCollection:ex","FillRule:ey","PathGeometry:ez","PathFigureCollection:e0","LineGeometry:e1","RectangleGeometry:e2","EllipseGeometry:e3","ArcSegment:e4","PathSegment:e5","PathSegmentType:e6","SweepDirection:e7","PathFigure:e8","PathSegmentCollection:e9","LineSegment:fa","PolyLineSegment:fb","BezierSegment:fc","PolyBezierSegment:fd","GeometryUtil:fe","Tuple$2:ff","TransformGroup:fg","TransformCollection:fh","TranslateTransform:fi","RotateTransform:fj","ScaleTransform:fk","GradientDirection:fl","DependencyObjectNotifier:fm","InteractionState:fn","IOverviewPlusDetailControl:fo","NavigationSettings:fp","OverviewPlusDetailPaneMode:fq","PropertyChangedEventArgs$1:fr","XamOverviewPlusDetailPane:fs","XamOverviewPlusDetailPaneView:ft","XamOverviewPlusDetailPaneViewManager:fu","DivElement:fv","DoubleAnimator:fw","EasingFunctionHandler:fx","ImageElement:fy","RectUtil:fz","ArgumentNullException:f0","XamMultiScaleTileSource:f1","Uri:f2","XamMultiScaleImage:f3","XamMultiScaleImageView:f4","StackPool$1:f5","Stack$1:f6","ReverseArrayEnumerator$1:f7","Func$1:f8","Image:f9","Tile:ga","WriteableBitmap:gb","IMapRenderDeferralHandler:gc","IEasingFunction:gd","Convert:ge","Debug:gf","Pair$2:gg","MapTileSource:gh","BingMapsTileSource:gi","StringBuilder:gj","CloudMadeTileSource:gk","OpenStreetMapTileSource:gl","ArrayUtil:gm","Comparison$1:gn","BrushUtil:go","CssHelper:gp","CssGradientUtil:gq","Clipper:gr","EdgeClipper:gs","LeftClipper:gt","BottomClipper:gu","RightClipper:gv","TopClipper:gw","EasingFunctions:gx","FontUtil:gy","FontInfo:gz","Extensions:g0","Panel:g1","UIElementCollection:g2","Enumerable:g3","IOrderedEnumerable$1:g4","SortedList$1:g5","Flattener:g6","SpiralTodo:g7","InterpolationUtil:g8","Func$5:g9","Numeric:ha","LeastSquaresFit:hb","PathFigureUtil:hc","PointCollectionUtil:hd","PolygonUtil:he","PolySimplification:hf","IPool$1:hg","IIndexedPool$1:hh","Pool$1:hi","IHashPool$2:hj","HashPool$2:hk","RearrangedList$1:hl","ISmartPlaceable:hm","SmartPosition:hn","SmartPlaceableWrapper$1:ho","SmartPlacer:hp","IVisualData:hq","PrimitiveVisualDataList:hr","PrimitiveVisualData:hs","PrimitiveAppearanceData:ht","BrushAppearanceData:hu","AppearanceHelper:hv","LinearGradientBrushAppearanceData:hw","GradientStopAppearanceData:hx","SolidBrushAppearanceData:hy","EllipseGeometryData:hz","GeometryData:h0","GetPointsSettings:h1","RectangleGeometryData:h2","LineGeometryData:h3","PathGeometryData:h4","PathFigureData:h5","LineSegmentData:h6","SegmentData:h7","PolylineSegmentData:h8","ArcSegmentData:h9","PolyBezierSegmentData:ia","LabelAppearanceData:ib","ShapeTags:ic","LabelAppearanceDataList:id","RectangleVisualData:ie","LineVisualData:ig","PolyLineVisualData:ih","PolygonVisualData:ii","PathVisualData:ij","AbstractEnumerable:ik","AbstractEnumerator:il","GenericEnumerable$1:im","GenericEnumerator$1:io"]);n.ig.util.defType("SmartPosition:hn","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("SmartPosition",n.ig.$ep.$type)},!0);n.ig.util.defType("InterpolationMode:a3","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("InterpolationMode",n.ig.$ep.$type)},!0);n.ig.util.defType("OverviewPlusDetailPaneMode:fq","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("OverviewPlusDetailPaneMode",n.ig.$ep.$type)},!0);n.ig.util.defType("InteractionState:fn","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("InteractionState",n.ig.$ep.$type)},!0);n.ig.util.defType("GradientDirection:fl","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("GradientDirection",n.ig.$ep.$type)},!0);n.ig.util.defType("FastItemsSourceEventAction:dm","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("FastItemsSourceEventAction",n.ig.$ep.$type)},!0);n.ig.util.defType("ErrorBarCalculatorType:c1","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ErrorBarCalculatorType",n.ig.$ep.$type)},!0);n.ig.util.defType("ErrorBarCalculatorReference:c0","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ErrorBarCalculatorReference",n.ig.$ep.$type)},!0);n.ig.util.defType("UnknownValuePlotting:cz","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("UnknownValuePlotting",n.ig.$ep.$type)},!0);n.ig.util.defType("TrendLineType:cy","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("TrendLineType",n.ig.$ep.$type)},!0);n.ig.util.defType("BrushCollection:a","ObservableCollection$1",{init:function(){t.$b.init.call(this,t.$a4.$type);this.u=0},selectRandom:function(){return this.item(t.$a.w.b(this.count()))},interpolateRandom:function(){return this.getInterpolatedBrush(t.$a.w.a()*(this.count()-1))},interpolationMode:function(n){return arguments.length===1?(this.u!=n&&(this.u=n,this.s(new t.aw(0,4))),n):this.u},u:null,item:function(n,i){return arguments.length===2?(t.$b.item.call(this,n,i),i):n<0||n>=this.count()?null:t.$b.item.call(this,n)},getInterpolatedBrush:function(n){if(isNaN(n))return null;n=t.$bf.c(n,0,this.count()-1);var i=Math.floor(n);return i==n?this.item(i):this.y(n-i,this.item(i),this.item(i+1),this.interpolationMode())},y:function(n,i,r,u){var e=i.color(),o=r.color(),s=e.getInterpolation(n,o,u),f=new t.a4;return f.color(s),f},$type:new n.ig.Type("BrushCollection",t.$b.$type.specialize(t.$a4.$type))},!0);n.ig.util.defType("EventProxy:bj","Object",{init:function(){n.ig.$op.init.call(this);this.u=!1},onMouseWheel:null,onPinchStarted:null,onPinchDelta:null,onGestureCompleted:null,onContactStarted:null,onDragStarted:null,onContactMoved:null,onDragDelta:null,onContactCompleted:null,onDragCompleted:null,onMouseLeave:null,onMouseOver:null,onMouseEnter:null,onMouseDown:null,onMouseUp:null,onDoubleTap:null,onHold:null,onKeyDown:null,onKeyUp:null,_az:null,az:function(n){return arguments.length===1?(this._az=n,n):this._az},_ay:null,ay:function(n){return arguments.length===1?(this._ay=n,n):this._ay},_aa:!1,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},d:function(){},af:function(){},z:function(n,t){return this.onMouseWheel!=null&&!this.w()?this.onMouseWheel(n,t):!1},aw:function(n,t){if(this.onPinchStarted!=null&&!this.w())this.onPinchStarted(n,t)},av:function(n,t){if(this.onPinchDelta!=null&&!this.w())this.onPinchDelta(n,t)},ao:function(n,t){if(this.onGestureCompleted!=null&&!this.w())this.onGestureCompleted(n,t)},aj:function(n,t){if(this.onContactStarted!=null&&!this.w())this.onContactStarted(n,t)},an:function(n){if(this.onDragStarted!=null&&!this.w())this.onDragStarted(n)},ai:function(n,t){if(this.onContactMoved!=null&&!this.w())this.onContactMoved(n,t)},am:function(n){if(this.onDragDelta!=null&&!this.w())this.onDragDelta(n)},ah:function(n,t){if(this.onContactCompleted!=null&&!this.w())this.onContactCompleted(n,t)},al:function(n){if(this.onDragCompleted!=null&&!this.w())this.onDragCompleted(n)},as:function(n){if(this.onMouseLeave!=null&&!this.w())this.onMouseLeave(n)},at:function(n,t,i){if(this.onMouseOver!=null&&!this.w())this.onMouseOver(n,t,i)},ar:function(n){if(this.onMouseEnter!=null&&!this.w())this.onMouseEnter(n)},aq:function(n){if(this.onMouseDown!=null&&!this.w())this.onMouseDown(n)},au:function(n){if(this.onMouseUp!=null&&!this.w())this.onMouseUp(n)},x:function(n){return this.onKeyDown!=null&&!this.w()?this.onKeyDown(n):!1},y:function(n){return this.onKeyUp!=null&&!this.w()?this.onKeyUp(n):!1},ak:function(n){if(this.onDoubleTap!=null&&!this.w())this.onDoubleTap(n)},ap:function(n){if(this.onHold!=null&&!this.w())this.onHold(n)},ad:function(){},u:!1,w:function(n){return arguments.length===1?(this.u=n,this.ag(),n):this.u},_v:!1,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_ac:null,ac:function(n){return arguments.length===1?(this._ac=n,n):this._ac},ag:function(){},ae:function(){},ax:function(){},$type:new n.ig.Type("EventProxy",n.ig.$ot)},!0);n.ig.util.defType("DOMEventProxy:bx","EventProxy",{_bq:null,bq:function(n){return arguments.length===1?(this._bq=n,n):this._bq},d:function(){var n=new t.bx(this.bq());return n.v(this.v()),n},cs:function(n){this.w()||n.preventDefault()},bn:0,bx:null,a2:!1,_bj:null,bj:function(n){return arguments.length===1?(this._bj=n,n):this._bj},init:function(n){var i=this;this.bn=0;this.bx="";this.a2=!1;this.a4=!1;this.bh=0;this.bi=0;this.bb=0;this.bc=0;this.bl=0;this.bg=1;this.a5=!1;this.bk=-1;this.bo=-1;this.c2=null;this.be=0;this.bf=0;this.bd=5;this.a0=!1;this.br=null;this.a3=!1;this.a1=!1;t.$bj.init.call(this);this.ac(function(){return!0});this.v(!1);t.$bx.bm++;this.bn=t.$bx.bm;this.bx=".DOMProxy"+this.bn.toString();this.ay(0);this.bq(n);t.$bx.a8=!1;try{t.$bx.a8=window.navigator.msPointerEnabled&&MSGesture!==undefined}catch(r){}t.$bx.a9=!1;try{t.$bx.a9=window.navigator.pointerEnabled}catch(u){}t.$bx.bw=this.bv();this.ae(this.bq(),"");this.ab(function(){return!0})},ae:function(i,r){var f=i,u=this.bx+r,o,s,e;t.$bx.a8||(f.bind("mousemove"+u,this.b7.runOn(this)),f.bind("mouseleave"+u,this.b6.runOn(this)),f.bind("mousedown"+u,this.b5.runOn(this)),f.bind("mouseup"+u,this.b9.runOn(this)),n(window).bind("mouseup"+u,this.c0.runOn(this)));f.bind("keydown"+u,this.b2.runOn(this));f.bind("keyup"+u,this.b4.runOn(this));t.$bx.a8&&(o=this.bq()[0],t.$bx.cq(o),s=this.bq()[0],e=new MSGesture,e.target=s,this.bj(e),f.bind("MSGestureStart"+u,this.b1.runOn(this)),f.bind("MSGestureChange"+u,this.bz.runOn(this)),f.bind("MSGestureEnd"+u,this.b0.runOn(this)),t.$bx.a9?(f.bind("pointerdown"+u,this.cc.runOn(this)),f.bind("pointerup"+u,this.cf.runOn(this)),f.bind("pointercancel"+u,this.cb.runOn(this)),f.bind("pointermove"+u,this.cd.runOn(this)),f.bind("pointerout"+u,this.ce.runOn(this)),f.bind("lostpointercapture"+u,this.ca.runOn(this))):(f.bind("MSPointerDown"+u,this.cc.runOn(this)),f.bind("MSPointerUp"+u,this.cf.runOn(this)),f.bind("MSPointerCancel"+u,this.cb.runOn(this)),f.bind("MSPointerMove"+u,this.cd.runOn(this)),f.bind("MSPointerOut"+u,this.ce.runOn(this)),f.bind("MSLostPointerCapture"+u,this.ca.runOn(this))));f.bind("DOMMouseScroll"+u,this.b8.runOn(this));f.bind("mousewheel"+u,this.b8.runOn(this));f.bind("gesturestart"+u,this.b1.runOn(this));f.bind("gesturechange"+u,this.bz.runOn(this));f.bind("gestureend"+u,this.b0.runOn(this));f.bind("touchstart"+u,this.ci.runOn(this));f.bind("touchmove"+u,this.ch.runOn(this));f.bind("touchend"+u,this.cg.runOn(this))},a4:!1,cn:function(){if(t.$bx.a8&&!this.a4){var n=this.bq()[0];t.$bx.cq(n)}},cq:function(n){t.$bx.a9?n.style.touchAction="none":n.style.msTouchAction="none";n.style.msUserSelect="none"},cj:function(n){t.$bx.a9?n.style.touchAction="auto":n.style.msTouchAction="auto";n.style.msUserSelect="auto"},ck:function(){if(t.$bx.a8&&this.a4){var n=this.bq()[0];t.$bx.cj(n)}},ag:function(){t.$bj.ag.call(this);this.w()?this.ck():this.cn()},bv:function(){var n=-1;return/Trident\/([\d.]+)/.exec(navigator.userAgent)!=null&&(n=parseFloat(RegExp.$1)),n},bh:0,bi:0,bb:0,bc:0,bl:0,_bu:null,bu:function(n){return arguments.length===1?(this._bu=n,n):this._bu},_bt:null,bt:function(n){return arguments.length===1?(this._bt=n,n):this._bt},cp:function(n){var o=t.$bx.bw>=6,u=n.originalEvent;if((typeof n.pageX=="undefined"||o)&&u.clientX!=null){var f=n.target.ownerDocument,e=f?f:document,i=e.documentElement,r=e.body,s=u.clientX,h=u.clientY,c=i&&i.scrollLeft||r&&r.scrollLeft||0,l=i&&i.scrollTop||r&&r.scrollTop||0,a=i&&i.clientLeft||r&&r.clientLeft||0,v=i&&i.clientTop||r&&r.clientTop||0;n.pageX=s+(c-a);n.pageY=h+(l-v)}},c3:function(n){var h=t.$bx.bw>=6,f=n[0],e=f.ownerDocument,i=e?e.documentElement:null,o=i?i.msContentZoomFactor:null,r=i.body,u;if(o&&o>1||h){var s=f.getBoundingClientRect(),c=s.left,l=s.top,a=i&&i.scrollLeft||r&&r.scrollLeft||0,v=i&&i.scrollTop||r&&r.scrollTop||0,y=i&&i.clientLeft||r&&r.clientLeft||0,p=i&&i.clientTop||r&&r.clientTop||0,w=c+a-y,b=l+v-p;return new t.bk(0,w,b,0,0)}return u=n.offset(),new t.bk(0,u.left,u.top,0,0)},cy:function(i){t.$bx.cp(i);var r=t.$bx.c3(this.bq());this.bh=i.pageX-r.left();this.bi=i.pageY-r.top();this.bb=this.bh-this.az().left();this.bc=this.bi-this.az().top();this.bu({__x:this.bh,__y:this.bi,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.bt({__x:this.bb,__y:this.bc,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},cz:function(i){if(t.$bx.cp(i),t.$bx.a8){var f=i.pageX,e=i.pageY,r=t.$bx.c3(this.bq());this.bh=f-r.left();this.bi=e-r.top()}else{if(this.bl=0,!i.originalEvent.targetTouches||i.originalEvent.targetTouches.length<1)return;this.bl=i.originalEvent.targetTouches.length;var o=i.originalEvent.targetTouches[0].pageX,s=i.originalEvent.targetTouches[0].pageY,u=t.$bx.c3(this.bq());this.bh=o-u.left();this.bi=s-u.top()}this.bb=this.bh-this.az().left();this.bc=this.bi-this.az().top();this.bu({__x:this.bh,__y:this.bi,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.bt({__x:this.bb,__y:this.bc,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},b8:function(n){var t,i;this.cx(n);this.ab()(this.bu())&&(t=0,n.wheelDelta&&(t=n.wheelDelta/120),n.originalEvent&&n.originalEvent.wheelDelta&&(t=n.originalEvent.wheelDelta/120),n.detail&&(t=-n.detail/3),n.originalEvent&&n.originalEvent.detail&&(t=-n.originalEvent.detail/3),t=t/10,i=this.z(this.bt(),t),i&&this.cs(n))},bg:0,cf:function(n){var t=this.a6(n),i;t&&(this.bl--,this.bl<0&&(this.bl=0));this.bl<2&&this.a2&&t?(this.a2=!1,i=n.originalEvent.scale,this.ao(this.bt(),i)):t?this.cg(n):this.b9(n)},ca:function(n){var t=this.a6(n),i;t&&(this.bl--,this.bl<0&&(this.bl=0));this.bl<2&&this.a2&&t&&(this.a2=!1,i=n.originalEvent.scale,this.ao(this.bt(),i))},cb:function(n){var t=this.a6(n),i;t&&(this.bl--,this.bl<0&&(this.bl=0));this.bl<2&&this.a2&&t&&(this.a2=!1,i=n.originalEvent.scale,this.ao(this.bt(),i))},cc:function(n){var i=this.a6(n),r,u;this.bj()!=null&&i&&(this.bl++,this.bj().addPointer(n.originalEvent.pointerId));r=this.bq()[0];t.$bx.a9?r.setPointerCapture(n.originalEvent.pointerId):r.msSetPointerCapture(n.originalEvent.pointerId);this.bl>1&&!this.a2&&i?(this.a2=!0,this.cz(n),u=n.originalEvent.scale,this.aw(this.bt(),u)):i?this.ci(n):this.b5(n)},a6:function(n){var i=n.originalEvent;return t.$bx.a9?i.pointerType=="touch":i.pointerType==i.MSPOINTER_TYPE_TOUCH},cd:function(n){var t=this.a6(n);this.a2||(t?this.ch(n):this.b7(n))},ce:function(n){var t=this.a6(n);this.a2||t||this.b6(n)},b1:function(n){if(this.a7(!0),this.cx(n),this.cz(n),this.cm(),this.ab()(this.bu())){if(this.cs(n),t.$bx.a8&&(this.bg=1),t.$bx.a8&&this.bl<2)return;var i=n.originalEvent.scale;this.aw(this.bt(),i)}},bz:function(n){if(this.a7(!0),this.cx(n),this.cz(n),this.ab()(this.bu())){if(this.cs(n),t.$bx.a8&&this.bl<2)return;var i=n.originalEvent.scale;this.av(this.bt(),i)}},b0:function(n){this.cs(n);var i=n.originalEvent.scale;this.a7(!1);this.cx(n);this.cz(n);(!t.$bx.a8||this.a2)&&this.ao(this.bt(),i)},a5:!1,bs:null,ci:function(n){this.a7(!0);this.cx(n);this.cz(n);this.bs=this.bt();this.ab()(this.bu())&&(this.v()?this.a5=!0:this.cs(n),this.at(this.bu(),!1,!0),this.aq(this.bu()),this.aj(this.bt(),!0),this.cu())},bk:0,bo:0,c2:null,be:0,bf:0,bd:0,cu:function(){this.bk==-1&&(this.be=this.bu().__x,this.bf=this.bu().__y,this.bk=window.setTimeout(this.cr.runOn(this),1500))},cm:function(){(Math.abs(this.be-this.bu().__x)>this.bd||Math.abs(this.bf-this.bu().__y)>this.bd)&&this.cv()},cv:function(){this.bk!=-1&&(window.clearTimeout(this.bk),this.bk=-1)},cr:function(){this.bk=-1;this.a5&&(this.a5=!1,this.by());this.ap(this.bt())},a0:!1,br:null,a3:!1,ch:function(n){this.a7(!0);this.cx(n);this.cz(n);this.a5&&this.ab()(this.bu())&&this.ba()&&(this.a5=!1,this.by());this.cm();this.cw();this.ab()(this.bu())&&this.bl==1&&!this.a5&&(this.cs(n),this.a0?(this.at(this.bu(),!0,!0),this.ai(this.bt(),!0),this.am(this.bt())):(this.a0=!0,this.br=this.bt(),this.an(this.br)))},ba:function(){var t={__x:this.bs.__x-this.bt().__x,__y:this.bs.__y-this.bt().__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return Math.abs(t.__x)<2&&Math.abs(t.__y)<2?!1:(Math.abs(t.__x)>Math.abs(t.__y)&&(t.__y=0),Math.abs(t.__y)>Math.abs(t.__x)&&(t.__x=0),this.ac()(t))},cg:function(n){this.a7(!1);this.cx(n);this.cz(n);this.cv();this.a5&&(this.a5=!1,this.by());this.cs(n);this.at(this.bu(),!1,!0);this.au(this.bu());this.bl==0&&(this.ct(this.bu()),this.co());this.a0&&this.bl==0&&(this.a0=!1,this.br=null,this.al(this.bt()),this.co());this.ah(this.bt(),!0)},co:function(){this.a3&&(this.bo==-1?this.bo=window.setTimeout(this.cl.runOn(this),500):(window.clearTimeout(this.bo),this.bo=-1,this.bo=window.setTimeout(this.cl.runOn(this),500)))},by:function(){this.a3=!0;this.bo!=-1&&(window.clearTimeout(this.bo),this.bo=-1)},cl:function(){this.a3=!1},ct:function(n){this.c2==null?(this.c2=new t.bk(0,n.__x-50,n.__y-50,100,100),window.setTimeout(this.cw.runOn(this),500)):n.__x>=this.c2.x()&&n.__x<=this.c2.right()&&n.__y>=this.c2.y()&&n.__y<=this.c2.bottom()&&(this.cw(),this.ak(n))},cw:function(){this.c2=null},_a7:!1,a7:function(n){return arguments.length===1?(this._a7=n,n):this._a7},b6:function(n){this.a5||this.a3||(this.cy(n),this.a7()&&(this.a7(!1),this.as(this.bt())))},b7:function(n){if(!this.a5&&!this.a3){this.cy(n);this.cx(n);var i=new t.ck;i.position(this.bu());this.ab()(this.bu())?(this.a7()||(this.a7(!0),this.ar(this.bu())),this.at(this.bu(),!0,!1),this.ai(this.bt(),!1)):this.a7()&&this.b6(n)}},a1:!1,b5:function(n){this.a5||this.a3||(this.bq().focus(),this.cy(n),this.cx(n),this.ab()(this.bu())&&(this.a1=!0,this.aq(this.bu()),this.aj(this.bt(),!1),this.cs(n)))},c0:function(n){this.a5||this.a3||this.a1&&this.b9(n)},b9:function(n){this.a5||this.a3||(this.cx(n),this.a1=!1,this.au(this.bu()),this.ah(this.bt(),!1),this.cs(n))},b2:function(n){this.b3(n,!0)},b4:function(n){this.b3(n,!1)},c1:function(n){var t=0;switch(n.which){case 33:t=10;break;case 34:t=11;break;case 36:t=13;break;case 37:t=14;break;case 38:t=15;break;case 39:t=16;break;case 40:t=17;break;case 9:t=2;break;case 32:t=9;break;case 13:t=3;break;case 27:t=8;break;case 16:t=4;break;case 17:t=5;break;case 18:t=6;break;default:112<=n.which&&n.which<=123&&(t=56+n.which-112)}return t},b3:function(n,i){var r=t.$bx.c1(n),f=r!=0,u;this.cx(n);f&&this.ab()(this.bu())&&(u=!1,u=i?this.x(r):this.y(r),u&&this.cs(n))},cx:function(n){this.ay(0);n.shiftKey&&this.ay(this.ay()|4);n.altKey&&this.ay(this.ay()|1);n.ctrlKey&&this.ay(this.ay()|2);this.aa(n.button==2)},ad:function(){var i=t.$bx.c3(this.bq()),r=i.left(),u=i.top();return{__x:r,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},ax:function(n,t){var i=n,r=this.bx+t;i.unbind(r)},af:function(){this.bq()!=null&&(this.bq().unbind(this.bx),this.bq(null))},$type:new n.ig.Type("DOMEventProxy",t.$bj.$type)},!0);n.ig.util.defType("TrendCalculators:cx","Object",{init:function(){n.ig.$op.init.call(this)},g:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:null,$d:0,$e:0,$f:0,$g:0,$h:0,$i:0,$j:null,$k:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=new Array(t);this.$d=0;this.$state=1;break;case 1:this.$d=0;this.$state=4;break;case 2:this.$c[this.$d]=0;this.$state=3;break;case 3:this.$d++;this.$state=4;break;case 4:this.$state=this.$d<t?2:5;break;case 5:this.$e=NaN;this.$f=NaN;this.$g=NaN;this.$h=NaN;this.$d=0;this.$state=6;break;case 6:this.$j=n.getEnumerator();this.$state=18;break;case 7:this.$i=this.$j.current();this.$state=8;break;case 8:this.$state=isNaN(this.$i)?16:9;break;case 9:this.$k=this.$d%t;this.$state=10;break;case 10:this.$state=this.$d==0?11:12;break;case 11:this.$g=1;this.$h=this.$f=this.$e=this.$i;this.$state=15;break;case 12:this.$state=this.$d<t?13:14;break;case 13:this.$g+=this.$d+1;this.$e+=this.$i;this.$f+=(this.$d+1)*this.$i;this.$h=this.$f/this.$g;this.$state=15;break;case 14:this.$f=this.$f+t*this.$i-this.$e;this.$h=this.$f/this.$g;this.$e=this.$e+this.$i-this.$c[this.$k];this.$state=15;break;case 15:this.$c[this.$k]=this.$i;++this.$d;this.$state=16;break;case 16:return this.$current=this.$h,this.$state=17,!0;case 17:this.$state=18;break;case 18:this.$state=this.$j.moveNext()?7:19;break;case 19:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},b:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,$d:0,$e:0,$f:0,$g:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=0;this.$d=NaN;this.$e=2/(1+t);this.$state=1;break;case 1:this.$g=n.getEnumerator();this.$state=11;break;case 2:this.$f=this.$g.current();this.$state=3;break;case 3:this.$state=isNaN(this.$f)?9:4;break;case 4:this.$state=5;break;case 5:this.$state=this.$c<t?6:7;break;case 6:this.$d=isNaN(this.$d)?this.$f:(this.$d*this.$c+this.$f)/(this.$c+1);this.$state=8;break;case 7:this.$d=(this.$f-this.$d)*this.$e+this.$d;this.$state=8;break;case 8:++this.$c;this.$state=9;break;case 9:return this.$current=this.$d,this.$state=10,!0;case 10:this.$state=11;break;case 11:this.$state=this.$g.moveNext()?2:12;break;case 12:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},c:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,$d:0,$e:0,$f:0,$g:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=0;this.$d=NaN;this.$e=1/t;this.$state=1;break;case 1:this.$g=n.getEnumerator();this.$state=11;break;case 2:this.$f=this.$g.current();this.$state=3;break;case 3:this.$state=isNaN(this.$f)?9:4;break;case 4:this.$state=5;break;case 5:this.$state=this.$c<t?6:7;break;case 6:this.$d=isNaN(this.$d)?this.$f:(this.$d*this.$c+this.$f)/(this.$c+1);this.$state=8;break;case 7:this.$d=(this.$f-this.$d)*this.$e+this.$d;this.$state=8;break;case 8:++this.$c;this.$state=9;break;case 9:return this.$current=this.$d,this.$state=10,!0;case 10:this.$state=11;break;case 11:this.$state=this.$g.moveNext()?2:12;break;case 12:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},a:function(t){var i=this,r=function(){return function(n){return{$state:0,$this:i,$current:null,$b:0,$c:0,$d:0,$e:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$b=NaN;this.$c=0;this.$state=1;break;case 1:this.$e=n.getEnumerator();this.$state=7;break;case 2:this.$d=this.$e.current();this.$state=3;break;case 3:this.$state=isNaN(this.$d)?5:4;break;case 4:this.$b=isNaN(this.$b)?this.$d:(this.$b*this.$c+this.$d)/(this.$c+1);++this.$c;this.$state=5;break;case 5:return this.$current=this.$b,this.$state=6,!0;case 6:this.$state=7;break;case 7:this.$state=this.$e.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t)};return new n.ig.GenericEnumerable$1(Number,r)},e:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:null,$d:0,$e:0,$f:0,$g:null,$h:0,$i:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=new Array(t);this.$d=0;this.$state=1;break;case 1:this.$d=0;this.$state=4;break;case 2:this.$c[this.$d]=0;this.$state=3;break;case 3:this.$d++;this.$state=4;break;case 4:this.$state=this.$d<t?2:5;break;case 5:this.$d=0;this.$e=NaN;this.$state=6;break;case 6:this.$g=n.getEnumerator();this.$state=16;break;case 7:this.$f=this.$g.current();this.$state=8;break;case 8:this.$state=isNaN(this.$f)?14:9;break;case 9:this.$h=this.$f/t;this.$i=this.$d%t;this.$state=10;break;case 10:this.$state=this.$d<t?11:12;break;case 11:this.$e=isNaN(this.$e)?this.$f:(this.$e*this.$d+this.$f)/(this.$d+1);this.$state=13;break;case 12:this.$e=this.$e+this.$h-this.$c[this.$i];this.$state=13;break;case 13:this.$c[this.$i]=this.$h;++this.$d;this.$state=14;break;case 14:return this.$current=this.$e,this.$state=15,!0;case 15:this.$state=16;break;case 16:this.$state=this.$g.moveNext()?7:17;break;case 17:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},d:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:null,$d:0,$e:0,$f:0,$g:null,$h:0,$i:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=new Array(t);this.$d=0;this.$state=1;break;case 1:this.$d=0;this.$state=4;break;case 2:this.$c[this.$d]=0;this.$state=3;break;case 3:this.$d++;this.$state=4;break;case 4:this.$state=this.$d<t?2:5;break;case 5:this.$d=0;this.$e=NaN;this.$state=6;break;case 6:this.$g=n.getEnumerator();this.$state=16;break;case 7:this.$f=this.$g.current();this.$state=8;break;case 8:this.$state=isNaN(this.$f)?14:9;break;case 9:this.$h=this.$f;this.$i=this.$d%t;this.$state=10;break;case 10:this.$state=this.$d<t?11:12;break;case 11:this.$e=isNaN(this.$e)?this.$h:this.$e+this.$h;this.$state=13;break;case 12:this.$e=this.$e+this.$h-this.$c[this.$i];this.$state=13;break;case 13:this.$c[this.$i]=this.$h;++this.$d;this.$state=14;break;case 14:return this.$current=this.$e,this.$state=15,!0;case 15:this.$state=16;break;case 16:this.$state=this.$g.moveNext()?7:17;break;case 17:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},f:function(i,r){var u=this,f=function(){return function(n,i){return{$state:0,$this:u,$current:null,$c:null,$d:null,$e:null,$f:0,$g:0,$h:0,$i:0,$j:0,$k:0,$l:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=t.$cx.e(n,i).getEnumerator();this.$d=n.getEnumerator();this.$e=new Array(i);this.$f=0;this.$state=1;break;case 1:this.$f=0;this.$state=4;break;case 2:this.$e[this.$f]=0;this.$state=3;break;case 3:this.$f++;this.$state=4;break;case 4:this.$state=this.$f<i?2:5;break;case 5:this.$f=0;this.$state=6;break;case 6:this.$state=24;break;case 7:this.$e[this.$f++%i]=this.$d.current();this.$g=0;this.$state=8;break;case 8:this.$state=this.$f<i?9:16;break;case 9:this.$h=0;this.$state=10;break;case 10:this.$i=0;this.$state=13;break;case 11:this.$j=this.$c.current()-this.$e[this.$i];this.$g+=this.$j*this.$j;this.$h++;this.$state=12;break;case 12:this.$i++;this.$state=13;break;case 13:this.$state=this.$i<this.$f?11:14;break;case 14:return this.$current=Math.sqrt(this.$g/this.$h),this.$state=15,!0;case 15:this.$state=23;break;case 16:this.$state=17;break;case 17:this.$h=0;this.$state=20;break;case 18:this.$i=this.$c.current()-this.$e[this.$h];this.$g+=this.$i*this.$i;this.$state=19;break;case 19:++this.$h;this.$state=20;break;case 20:this.$state=this.$h<i?18:21;break;case 21:return this.$current=Math.sqrt(this.$g/i),this.$state=22,!0;case 22:this.$state=23;break;case 23:this.$state=24;break;case 24:this.$state=this.$d.moveNext()&&this.$c.moveNext()?7:25;break;case 25:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(i,r)};return new n.ig.GenericEnumerable$1(Number,f)},$type:new n.ig.Type("TrendCalculators",n.ig.$ot)},!0);n.ig.util.defType("IErrorBarCalculator:c2","Object",{$type:new n.ig.Type("IErrorBarCalculator",null)},!0);n.ig.util.defType("ErrorMessageDisplayingEventArgs:c6","EventArgs",{init:function(n){t.$ax.init.call(this);this.errorMessage(n)},b:null,errorMessage:function(n){return arguments.length===1?(this.b=n,n):this.b},$type:new n.ig.Type("ErrorMessageDisplayingEventArgs",t.$ax.$type)},!0);n.ig.util.defType("IFastItemColumnInternal:c7","Object",{$type:new n.ig.Type("IFastItemColumnInternal",null)},!0);n.ig.util.defType("IFastItemColumnPropertyName:c4","Object",{$type:new n.ig.Type("IFastItemColumnPropertyName",null)},!0);n.ig.util.defType("IFastItemColumn$1:c3","Object",{$type:new n.ig.Type("IFastItemColumn$1",null,[t.$z.$type.specialize(0),t.$c4.$type])},!0);n.ig.util.defType("FastItemColumn:c8","Object",{k:null,d:!1,init:function(t,i,r,u){this.k=null;this.d=!1;this.__propertyName=null;n.ig.$op.init.call(this);this.k=r;this.d=u;this.propertyName(i);this.c(t)},c:function(n){return arguments.length===1?(this.b=n,this.reset(),n):this.b},b:null,__propertyName:null,propertyName:function(n){return arguments.length===1?(this.__propertyName=n,n):this.__propertyName},minimum:function(n){var t,n;if(arguments.length===1)return this.i=n,n;if(isNaN(this.i)&&this.e()!=null)for(this.i=Number.POSITIVE_INFINITY,t=this.e().getEnumerator();t.moveNext();)n=t.current(),isNaN(n)||(this.i=Math.min(this.i,n));return this.i},i:0,maximum:function(n){var t,n;if(arguments.length===1)return this.h=n,n;if(isNaN(this.h)&&this.e()!=null)for(this.h=Number.NEGATIVE_INFINITY,t=this.e().getEnumerator();t.moveNext();)n=t.current(),isNaN(n)||(this.h=Math.max(this.h,n));return this.h},h:0,item:function(n,t){return arguments.length===2?(this.e().__inner[n]=t,t):this.e().__inner[n]},getEnumerator:function(){return this.e().getEnumerator()},contains:function(n){return this.e().contains(n)},copyTo:function(n,t){this.e().copyTo(n,t)},count:function(){return this.e().count()},isReadOnly:function(){return!0},indexOf:function(n){return this.e().indexOf(n)},add:function(){throw new t.da;},clear:function(){throw new t.da;},remove:function(){throw new t.da;},insert:function(){throw new t.da;},removeAt:function(){throw new t.da;},reset:function(){return this.e(null),this.minimum(NaN),this.maximum(NaN),this.c()!=null?this.insertRange(0,this.c().count()):!0},insertRange:function(n,i){var h=new Array(i),p=this.b.asArray(),u,o=this.minimum(),s=this.maximum(),c=isNaN(this.minimum()),l=isNaN(this.maximum()),a=0,r,w=this.k,e=null,v,f,y;if(this.k!=null||this.d)for(f=n;f<n+i;++f)e=p[f],u=e==null?NaN:e[this.__propertyName],this.d&&typeof u=="function"&&(u=u()),w!=null&&(u=w(u)),r=u==null?NaN:u,v=r!=r,(c||r<o)&&(o=r,c=v),(l||r>s)&&(s=r,l=v),h[a]=r,a++;else for(f=n;f<n+i;++f)e=p[f],u=e==null?NaN:e[this.__propertyName],r=u==null?NaN:u,y=r!=r,(c||r<o)&&(o=r,c=y),(l||r>s)&&(s=r,l=y),h[a]=r,a++;return this.minimum(o),this.maximum(s),this.e()==null?this.e(new t.c(Number,1,h)):this.e().insertRange(n,h),!0},removeRange:function(n,t){for(var i=n;i<n+t&&!isNaN(this.minimum())&&!isNaN(this.maximum());++i)this.item(i)==this.minimum()&&this.minimum(NaN),this.item(i)==this.maximum()&&this.maximum(NaN);return this.e().removeRange(n,t),!0},replaceMinMax:function(n,t){if(isNaN(n)){isNaN(t)||(isNaN(this.minimum())||this.minimum(Math.min(t,this.minimum())),isNaN(this.maximum())||this.maximum(Math.max(t,this.maximum())));return}if(isNaN(t)){this.minimum(!isNaN(this.minimum())&&n==this.minimum()?NaN:this.minimum());this.maximum(!isNaN(this.maximum())&&n==this.maximum()?NaN:this.maximum());return}isNaN(this.minimum())||(n==this.minimum()&&t>this.minimum()?this.minimum(NaN):this.minimum(Math.min(t,this.minimum())));isNaN(this.maximum())||(n==this.maximum()&&t<this.maximum()?this.maximum(NaN):this.maximum(Math.max(t,this.maximum())))},replaceRange:function(n,t){for(var u,r,f=!1,i=0;i<t;++i)u=this.e().__inner[n+i],r=this.j(this.c().item(n+i)),u!=r&&(this.e().__inner[n+i]=r,f=!0,this.replaceMinMax(u,r));return f},a:null,j:function(t){if(t==null)return NaN;var i=t;return(t=i[this.__propertyName],this.d&&(i=t,typeof i=="function"&&(t=i())),this.k!=null&&(t=this.k(t)),t==null)?NaN:t},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},getSortedIndices1:function(i,r){for(var e=this,u=new t.c(n.ig.Number.prototype.$type,2,i.count()),f=0;f<i.count();f++)u.add(f);return u.sort1(function(n,t){var u=i.item(n),f=i.item(t);return r(u,f)}),u},f:function(){var n=this;return t.$c8.getSortedIndices1(n.e(),function(n,t){var i=n,r=t;return i<r?-1:i>r?1:0})},asArray:function(){return this.e().asArrayList()},$type:new n.ig.Type("FastItemColumn",n.ig.$ot,[t.$c7.$type,t.$c3.$type.specialize(Number)])},!0);n.ig.util.defType("FastItemDateTimeColumn:dd","Object",{l:null,d:!1,init:function(t,i,r,u){this.__propertyName=null;this.f=!1;this.e=!1;n.ig.$op.init.call(this);this.l=r;this.d=u;this.propertyName(i);this.c(t)},c:function(n){return arguments.length===1?(this.b=n,this.reset(),n):this.b},b:null,__propertyName:null,propertyName:function(n){return arguments.length===1?(this.__propertyName=n,n):this.__propertyName},f:!1,e:!1,minimum:function(n){var t,n;if(arguments.length===1)return this.j=n,n;if(!this.f&&this.g()!=null){for(t=this.g().getEnumerator();t.moveNext();)n=t.current(),n<this.j&&(this.j=n);this.g().count()>0&&(this.f=!0)}return this.j},j:null,maximum:function(n){var t,n;if(arguments.length===1)return this.i=n,n;if(!this.e&&this.g()!=null){for(t=this.g().getEnumerator();t.moveNext();)n=t.current(),n>this.i&&(this.i=n);this.g().count()>0&&(this.e=!0)}return this.i},i:null,item:function(n){if(arguments.length===2)throw new t.da;else return this.g().__inner[n]},getEnumerator:function(){return this.g().getEnumerator()},contains:function(n){return this.g().contains(n)},copyTo:function(n,t){this.g().copyTo(n,t)},count:function(){return this.g().count()},isReadOnly:function(){return!0},indexOf:function(n){return this.g().indexOf(n)},add:function(){throw new t.da;},clear:function(){throw new t.da;},remove:function(){throw new t.da;},insert:function(){throw new t.da;},removeAt:function(){throw new t.da;},reset:function(){return this.g(null),this.f=!1,this.e=!1,this.c()!=null?this.insertRange(0,this.c().count()):!0},insertRange:function(n,i){var s=new Array(i),c=this.b.asArray(),u,e=this.minimum(),o=this.maximum(),r,h=0,l=this.l,f;if(this.l!=null||this.d)for(f=n;f<n+i;++f)u=c[f][this.__propertyName],this.d&&typeof u=="function"&&(u=u()),l!=null&&(u=l(u)),r=u==null?new Date:u,this.f?r<e&&(e=r):(e=r,this.f=!0),this.e?r>o&&(o=r):(o=r,this.e=!0),s[h]=r,h++;else for(f=n;f<n+i;++f)u=c[f][this.__propertyName],r=u==null?new Date:u,this.f?r<e&&(e=r):(e=r,this.f=!0),this.e?r>o&&(o=r):(o=r,this.e=!0),s[h]=r,h++;return this.minimum(e),this.maximum(o),this.g()==null?this.g(new t.c(t.$ap.$type,1,s)):this.g().insertRange(n,s),!0},removeRange:function(n,t){for(var i=n;i<n+t;++i)this.item(i)==this.minimum()&&(this.f=!1),this.item(i)==this.maximum()&&(this.e=!1);return this.g().removeRange(n,t),!0},replaceMinMax:function(n,i){if(n!=t.$ap.minValue()){i!=t.$ap.minValue()&&(this.minimum(i<this.minimum()?i:this.minimum()),this.maximum(i>this.maximum()?i:this.maximum()));return}this.minimum(i<this.minimum()?i:this.minimum());this.maximum(i>this.maximum()?i:this.maximum())},replaceRange:function(n,t){for(var u,r,f=!1,i=0;i<t;++i)u=this.g().__inner[n+i],r=this.k(this.c().item(n+i)),u!=r&&(this.g().__inner[n+i]=r,f=!0,this.replaceMinMax(u,r));return f},a:null,k:function(n){if(n==null)return t.$ap.minValue();var i=n;return(n=i[this.__propertyName],this.d&&(i=n,typeof i=="function"&&(n=i())),this.l!=null&&(n=this.l(n)),n==null)?t.$ap.minValue():n},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},getSortedIndices:function(){var n=this;return t.$c8.getSortedIndices1(n.g(),function(n,t){var i=n,r=t;return i<r?-1:i>r?1:0})},asArray:function(){return this.g().asArrayList()},$type:new n.ig.Type("FastItemDateTimeColumn",n.ig.$ot,[t.$c7.$type,t.$c3.$type.specialize(t.$ap.$type)])},!0);n.ig.util.defType("FastItemObjectColumn:de","Object",{g:null,d:!1,init:function(t,i,r,u){n.ig.$op.init.call(this);this.g=r;this.d=u;this.propertyName(i);this.c(t)},c:function(n){return arguments.length===1?(this.b=n,this.reset(),n):this.b},b:null,__propertyName:null,propertyName:function(n){return arguments.length===1?(this.__propertyName=n,n):this.__propertyName},minimum:function(n){return arguments.length===1?(this.i=n,n):this.i},i:null,maximum:function(n){return arguments.length===1?(this.h=n,n):this.h},h:null,item:function(n){if(arguments.length===2)throw new t.da;else return this.f().__inner[n]},getEnumerator:function(){return this.f().getEnumerator()},contains:function(n){return this.f().contains(n)},copyTo:function(n,t){this.f().copyTo(n,t)},count:function(){return this.f().count()},isReadOnly:function(){return!0},indexOf:function(n){return this.f().indexOf(n)},add:function(){throw new t.da;},clear:function(){throw new t.da;},remove:function(){throw new t.da;},insert:function(){throw new t.da;},removeAt:function(){throw new t.da;},reset:function(){return this.f(null),this.c()!=null?this.insertRange(0,this.c().count()):!0},insertRange:function(i,r){for(var o,u=this,f=function(){var i=new t.c(n.ig.$op.$type,0);return i.capacity(r),i}(),e=i;e<i+r;++e)o=u.j(u.c().item(e)),f.add(o);return u.f()==null?u.f(f):u.f().insertRange(i,f),!0},replaceRange:function(n,t){for(var f,r,u=!1,i=0;i<t;++i)f=this.f().__inner[n+i],r=this.j(this.c().item(n+i)),f!=r&&(this.f().__inner[n+i]=r,u=!0);return u},removeRange:function(n,t){return this.f().removeRange(n,t),!0},a:null,j:function(n){if(n==null)return null;var t=n;return n=t[this.__propertyName],this.d&&(t=n,typeof t=="function"&&(n=t())),this.g!=null&&(n=this.g(n)),n},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},e:function(){var n=this;return t.$c8.getSortedIndices1(n.f(),function(n,t){var i=parseFloat(n),r=parseFloat(t);return i<r?-1:i>r?1:0})},asArray:function(){return this.f().asArrayList()},$type:new n.ig.Type("FastItemObjectColumn",n.ig.$ot,[t.$c7.$type,t.$c3.$type.specialize(n.ig.$op.$type)])},!0);n.ig.util.defType("FastItemIntColumn:df","Object",{g:null,d:!1,init:function(t,i,r,u){this.__propertyName=null;n.ig.$op.init.call(this);this.g=r;this.d=u;this.propertyName(i);this.c(t)},c:function(n){return arguments.length===1?(this.b=n,this.reset(),n):this.b},b:null,__propertyName:null,propertyName:function(n){return arguments.length===1?(this.__propertyName=n,n):this.__propertyName},minimum:function(n){return arguments.length===1?(this.i=n,n):this.i},i:0,maximum:function(n){return arguments.length===1?(this.h=n,n):this.h},h:0,item:function(n){if(arguments.length===2)throw new t.da;else return this.f().__inner[n]},getEnumerator:function(){return this.f().getEnumerator()},contains:function(n){return this.f().contains(n)},copyTo:function(n,t){this.f().copyTo(n,t)},count:function(){return this.f().count()},isReadOnly:function(){return!0},indexOf:function(n){return this.f().indexOf(n)},add:function(){throw new t.da;},clear:function(){throw new t.da;},remove:function(){throw new t.da;},insert:function(){throw new t.da;},removeAt:function(){throw new t.da;},reset:function(){return this.f(null),this.c()!=null?this.insertRange(0,this.c().count()):!0},insertRange:function(i,r){var e=new Array(r),s=this.b.asArray(),u,a=this.minimum(),v=this.maximum(),o=0,h=this.g,c,f,l;if(this.g!=null||this.d)for(f=i;f<i+r;++f)u=s[f][this.__propertyName],this.d&&typeof u=="function"&&(u=u()),h!=null&&(u=h(u)),c=u==null?0:u,e[o]=c,o++;else for(f=i;f<i+r;++f)u=s[f][this.__propertyName],l=u==null?0:u,e[o]=l,o++;return this.f()==null?this.f(new t.c(n.ig.Number.prototype.$type,1,e)):this.f().insertRange(i,e),!0},replaceRange:function(n,t){for(var f,r,u=!1,i=0;i<t;++i)f=this.f().__inner[n+i],r=this.j(this.c().item(n+i)),f!=r&&(this.f().__inner[n+i]=r,u=!0);return u},removeRange:function(n,t){return this.f().removeRange(n,t),!0},a:null,j:function(n){var t=n;return(n=t[this.__propertyName],this.d&&(t=n,typeof t=="function"&&(n=t())),this.g!=null&&(n=this.g(n)),n==null)?0:n},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},e:function(){var n=this;return t.$c8.getSortedIndices1(n.f(),function(n,t){var i=n,r=t;return i<r?-1:i>r?1:0})},asArray:function(){return this.f().asArrayList()},$type:new n.ig.Type("FastItemIntColumn",n.ig.$ot,[t.$c7.$type,t.$c3.$type.specialize(n.ig.Number.prototype.$type)])},!0);n.ig.util.defType("IFastItemsSource:c9","Object",{$type:new n.ig.Type("IFastItemsSource",null)},!0);n.ig.util.defType("FastItemsSource:dg","Object",{init:function(){this.b=new t.dh(String,t.$dq.$type,0);this.c=new t.c(n.ig.$op.$type,0);this.a=null;n.ig.$op.init.call(this)},event:null,m:function(n,i,r){this.event!=null&&this.event(this,new t.dn(0,n,i,r))},n:function(n,i){this.event!=null&&this.event(this,new t.dn(1,n,i))},itemsSource:function(n){var t,i;if(arguments.length===1){if(this.d==n)return;for(this.detach(),this.d=n,this.c.clear(),this.a=null,this.attach(),t=this.b.values().getEnumerator();t.moveNext();)i=t.current(),i.a.reset();return this.m(1,0,this.c.count()),n}return this.d},detach:function(){},attach:function(){this.c.insertRange1(this.c.count(),this.d)},g:function(n,t){var i,r,u,f;if(this.a!=null){for(i=0;i<t.count();++i)this.a.add(t.item(i),n+i);for(r=n;r<this.c.count();++r)this.a.item(this.c.__inner[r],r+t.count())}for(this.c.insertRange1(n,t),u=this.b.values().getEnumerator();u.moveNext();)f=u.current(),f.a.insertRange(n,t.count());this.m(1,n,t.count())},i:function(n,t){var r,f,i,u,e;if(this.c.removeRange(n,t.count()),this.a!=null){for(r=t.getEnumerator();r.moveNext();)f=r.current(),this.a.remove(f);for(i=n;i<this.c.count();++i)this.a.item(this.c.__inner[i],i)}for(u=this.b.values().getEnumerator();u.moveNext();)e=u.current(),e.a.removeRange(n,t.count());this.m(0,n,t.count())},j:function(n,t,i){for(var f,o,u,e,s,r=0;r<i.count();++r)this.c.__inner[n+r]=i.item(r);if(this.a!=null){for(f=t.getEnumerator();f.moveNext();)o=f.current(),this.a.remove(o);for(u=0;u<i.count();++u)this.a.add(i.item(u),n+u)}for(e=this.b.values().getEnumerator();e.moveNext();)s=e.current(),s.a.replaceRange(n,i.count());this.m(2,n,t.count())},k:function(){var n,t;for(this.c.clear(),this.a=null,this.c.insertRange1(0,this.d),n=this.b.values().getEnumerator();n.moveNext();)t=n.current(),t.a.reset();this.m(4,0,this.c.count())},h:function(n,i){var u=this,r=null,f=u.indexOf(n);if(f==-1)throw new t.dp(0,"item");(function(){var n=u.b.tryGetValue(i,r);return r=n.value,n.ret})()&&r.a.replaceRange(f,1),function(){var n=u.b.tryGetValue(i+"_object",r);return r=n.value,n.ret}()&&r.a.replaceRange(f,1);u.n(f,i)},count:function(){return this.c.count()},item:function(n){return this.c.__inner[n]},getEnumerator:function(){return this.c.getEnumerator()},indexOf:function(i){var r=this,f,o,s,u,e;if(r.a==null&&r.c.count()>0)for(r.a=new t.dh(n.ig.$op.$type,n.ig.Number.prototype.$type,0),o=r.c,s=r.a,u=0;u<r.c.count();u++)e=o.__inner[u],r.a.containsKey(e)||r.a.add(e,u);return function(){var n=r.a.tryGetValue(i,f);return f=n.value,n.ret}()?f:-1},registerColumnDateTime:function(i,r,u){var e=this,o=null,f;return i!=null&&(f=null,function(){var n=e.b.tryGetValue(i,f);return f=n.value,n.ret}()||(f=new t.dq(new t.dd(e,i,r,u)),e.b.add(i,f)),f.b(f.b()+1),o=n.ig.util.cast(t.$c3.$type.specialize(t.$ap.$type),f.a)),o},registerColumnObject:function(i,r,u){var e=this,o=null,s=i+"_object",f;return i!=null&&(f=null,function(){var n=e.b.tryGetValue(s,f);return f=n.value,n.ret}()||(f=new t.dq(new t.de(e,i,r,u)),e.b.add(s,f)),f.b(f.b()+1),o=n.ig.util.cast(t.$c3.$type.specialize(n.ig.$op.$type),f.a)),o},registerColumnInt:function(i,r,u){var e=this,f;return i==null&&(i=""),f=null,function(){var n=e.b.tryGetValue(i,f);return f=n.value,n.ret}()||(f=new t.dq(new t.df(e,i,r,u)),e.b.add(i,f)),f.b(f.b()+1),n.ig.util.cast(t.$c3.$type.specialize(n.ig.Number.prototype.$type),f.a)},registerColumn:function(i,r,u){var e=this,f;return i==null&&(i=""),f=null,function(){var n=e.b.tryGetValue(i,f);return f=n.value,n.ret}()||(f=new t.dq(new t.c8(e,i,r,u)),e.b.add(i,f)),f.b(f.b()+1),n.ig.util.cast(t.$c3.$type.specialize(Number),f.a)},deregisterColumn:function(i){var f=this,u=i!=null?i.propertyName():null,e=u,r;n.ig.util.cast(t.$c3.$type.specialize(n.ig.$op.$type),i)!==null&&(e+="_object");u!=null&&(r=null,function(){var n=f.b.tryGetValue(u,r);return r=n.value,n.ret}()&&(r.b(r.b()-1),r.b()==0&&f.b.remove(e)))},b:null,d:null,c:null,a:null,asArray:function(){return this.c.asArrayList()},handleCollectionChanged:function(n){switch(n.action()){case 0:this.g(n.newStartingIndex(),n.newItems());break;case 1:this.i(n.oldStartingIndex(),n.oldItems());break;case 2:this.j(n.newStartingIndex(),n.oldItems(),n.newItems());break;case 4:this.k()}},$type:new n.ig.Type("FastItemsSource",n.ig.$ot,[n.ig.IEnumerable.prototype.$type,t.$c9.$type])},!0);n.ig.util.defType("ColumnReference:dq","Object",{init:function(t){n.ig.$op.init.call(this);this.a=t;this.b(0)},a:null,_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("ColumnReference",n.ig.$ot)},!0);n.ig.util.defType("FastItemsSourceEventArgs:dn","EventArgs",{init:function(n,i,r,u){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$ax.init.call(this);this.action(i);this.position(r);this.count(u);this.propertyName(null)},init1:function(n,i,r){t.$ax.init.call(this);this.action(3);this.position(i);this.count(1);this.propertyName(r)},_action:null,action:function(n){return arguments.length===1?(this._action=n,n):this._action},_position:0,position:function(n){return arguments.length===1?(this._position=n,n):this._position},_count:0,count:function(n){return arguments.length===1?(this._count=n,n):this._count},_propertyName:null,propertyName:function(n){return arguments.length===1?(this._propertyName=n,n):this._propertyName},$type:new n.ig.Type("FastItemsSourceEventArgs",t.$ax.$type)},!0);n.ig.util.defType("FastReflectionHelper:dc","Object",{init:function(t,i){n.ig.$op.init.call(this);this.b(t);this.e(i)},__propertyName:null,e:function(n){this.__propertyName=n},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},c:function(n){var t=n;return t[this.__propertyName]},a:function(){return!1},$type:new n.ig.Type("FastReflectionHelper",n.ig.$ot)},!0);n.ig.util.defType("IRenderer:dr","Object",{$type:new n.ig.Type("IRenderer",null)},!0);n.ig.util.defType("RectChangedEventArgs:ei","EventArgs",{init:function(n,i){t.$ax.init.call(this);this.oldRect(n);this.newRect(i)},_oldRect:null,oldRect:function(n){return arguments.length===1?(this._oldRect=n,n):this._oldRect},_newRect:null,newRect:function(n){return arguments.length===1?(this._newRect=n,n):this._newRect},$type:new n.ig.Type("RectChangedEventArgs",t.$ax.$type)},!0);n.ig.util.defType("CanvasRenderScheduler:ek","Object",{init:function(){this.b=!0;this.a=!1;this.e=-1;n.ig.$op.init.call(this);this.d(new t.c(t.$el.$type,0));this.c(new t.c(t.$ek.$type,0))},b:!1,_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},h:function(n){this.b=!0;this.d().add(n)},n:function(n){this.b=!0;this.d().remove(n)},l:function(){this.b=!0;this.j()},a:!1,e:0,j:function(){this.a||(this.a=!0,this.e=window.setTimeout(this.g.runOn(this),0))},k:function(){this.j()},f:function(){this.e!=-1&&(window.clearTimeout(this.e),this.e=-1);this.a&&this.g()},g:function(){if(this.e=-1,this.a){if(this.a=!1,this.c().count()>0)for(var n=0;n<this.c().count();n++)this.c().__inner[n].f();this.b&&this.m();this.i()}},i:function(){for(var u,n,f,t,e,r=!0,i=0;i<this.d().count();i++)u=this.d().__inner[i],u.preRender();for(n=0;n<this.d().count();n++)f=this.d().__inner[n],f.undirty(r),r=!1;for(t=0;t<this.d().count();t++)e=this.d().__inner[t],e.postRender()},m:function(){var n=this;n.d().sort1(function(n,t){var i=n,r=t;return i.index()<r.index()?-1:i.index()>r.index()?1:0});n.b=!1},$type:new n.ig.Type("CanvasRenderScheduler",n.ig.$ot)},!0);n.ig.util.defType("CanvasViewRenderer:en","Object",{init:function(){n.ig.$op.init.call(this);this.a=!1;this.b=!1;this.c=1},h:null,getUnderlyingContext:function(){return this.h},data:function(n){return arguments.length===1?(this.h=n,n):this.h},j:function(n,i,r,u,f,e,o){return t.$en.i(this.h,n,i,r,u,f,e,o)},i:function(n,t,i,r,u,f,e,o){var l,v,y,p,w,s,h,c,a,b;for(t._useCustomDirection?(s=u-i,v=i+t._startX*s,p=i+t._endX*s,s=f-r,y=r+t._startY*s,w=r+t._endY*s,o&&(h=e/2,v-=h,p+=h,y-=h,w+=h),l=n.createLinearGradient(v,y,p,w)):(o&&(c=e/2,i-=c,u+=c,r-=c,f+=c),l=n.createLinearGradient(i,r,i,f)),a=0;a<t._gradientStops.length;a++)b=t._gradientStops[a],l.addColorStop(b._offset,b.__fill);return l},renderRectangle:function(n){var r,e,o;if(n.__visibility==0){var t=n.l(),i=n.m(),u=n.width(),f=n.height(),s=n.ai(),h=n.aj();this.h.beginPath();this.h.globalAlpha=n.__opacity*this.c;s>0||h>0?(s>u/2&&(s=u/2),h>f/2&&(h=f/2),r=Math.min(s,h),this.h.beginPath(),this.h.moveTo(t+r,i),this.h.lineTo(t+u-r,i),this.h.arc(t+u-r,i+r,r,3/2*3.14159265358979,0,!1),this.h.lineTo(t+u,i+f-r),this.h.arc(t+u-r,i+f-r,r,0,3.14159265358979/2,!1),this.h.lineTo(t+r,i+f),this.h.arc(t+r,i+f-r,r,3.14159265358979/2,3.14159265358979,!1),this.h.lineTo(t,i+r),this.h.arc(t+r,i+r,r,3.14159265358979,3/2*3.14159265358979,!1),this.h.closePath()):this.h.rect(t,i,u,f);e=n.__fill;o=n.__stroke;e!=null&&(this.h.fillStyle=e._isGradient&&i==i&&t==t?this.j(e,t,i,t+u,i+f,n.z(),!1):e.__fill,this.h.fill());o!=null&&(this.h.strokeStyle=o._isGradient&&i==i&&t==t?this.j(o,t,i,t+u,i+f,n.z(),!0):o.__fill,this.h.lineWidth=n.z(),this.h.stroke());this.h.globalAlpha=1}},f:0,d:0,g:0,e:0,a:!1,b:!1,renderPath:function(n){if(n.__visibility==0){this.h.beginPath();(n.__opacity<1||this.c<1)&&(this.h.globalAlpha=n.__opacity*this.c);var t=n.__fill,i=n.__stroke;this.a=t!=null&&t._isGradient||i!=null&&i._isGradient;this.a&&(this.d=-Number.MAX_VALUE,this.e=-Number.MAX_VALUE,this.f=Number.MAX_VALUE,this.g=Number.MAX_VALUE,this.b=!1);this.renderGeometry(n.ak());t!=null&&(this.h.fillStyle=t._isGradient&&this.b?this.j(t,this.f,this.g,this.d,this.e,n.z(),!1):n.__fill.__fill,this.h.fill());i!=null&&(this.h.strokeStyle=i._isGradient&&this.b?this.j(i,this.f,this.g,this.d,this.e,n.z(),!0):n.__stroke.__fill,this.h.lineWidth=n.z(),this.h.stroke());(n.__opacity<1||this.c<1)&&(this.h.globalAlpha=1)}},renderGeometry:function(n){var i,t;if(n!=null){i=n.a();switch(i){case 0:for(t=0;t<n.c().count();t++)this.renderGeometry(n.c().__inner[t]);break;case 4:this.r(n);break;case 1:this.p(n);break;case 2:this.u(n);break;case 3:this.n(n)}}},n:function(i){var r=this;r.h.moveTo(i.d().__x,i.d().__y-i.c());r.k={__x:i.d().__x,__y:i.d().__y-i.c(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};var a=function(){var r=new t.e4;return r.d({__x:i.d().__x,__y:i.d().__y+i.c(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r.b(!1),r.f(new t.bl(i.b(),i.c())),r}(),v=function(){var r=new t.e4;return r.d({__x:i.d().__x,__y:i.d().__y-i.c(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r.b(!1),r.f(new t.bl(i.b(),i.c())),r}(),y=r.a;if(r.a=!1,r.l(a),r.l(v),r.a=y,r.a){var u=i.d().__x-i.b(),f=i.d().__y+i.b(),e=i.d().__x-i.c(),o=i.d().__y+i.c(),s=r.d,h=r.e,c=r.f,l=r.g;r.f=u<c?u:c;r.g=e<l?e:l;r.d=f>s?f:s;r.e=o>h?o:h;r.b=!0}},r:function(n){for(var i=n.b(),r=i.count(),t=0;t<r;t++)this.o(i.__inner[t])},o:function(n){var r=n==null?null:n.__startPoint,t,i,f,c,u;if(r!=null){if(t=r.__x,i=r.__y,this.h.moveTo(t,i),this.a){var e=this.d,o=this.e,s=this.f,h=this.g;this.f=t<s?t:s;this.g=i<h?i:h;this.d=t>e?t:e;this.e=i>o?i:o;this.b=!0}for(this.k=r,f=n.__segments,c=f.count(),u=0;u<c;u++)this.v(f.__inner[u]);n.__isClosed&&(this.k.__x!=t||this.k.__y!=i)&&this.h.closePath()}},v:function(n){var t=n.a();switch(t){case 0:this.q(n);break;case 3:this.t(n);break;case 4:this.l(n);break;case 1:this.m(n);break;case 2:this.s(n)}},k:null,x:function(n,t,i,r,u,f,e,o){for(var h,a,k,v,d,c,l,y=this.f,p=this.g,w=this.d,b=this.e,s=0;s<=1;s+=1/50)h=1-s,a=h*h,k=a*h,v=s*s,d=v*s,c=k*n+3*a*s*i+3*h*v*u+d*e,l=k*t+3*a*s*r+3*h*v*f+d*o,y=c<y?c:y,p=l<p?l:p,w=c>w?c:w,b=l>b?l:b;this.f=y;this.g=p;this.d=w;this.e=b;this.b=!0},m:function(n){this.h.bezierCurveTo(n.e().__x,n.e().__y,n.f().__x,n.f().__y,n.g().__x,n.g().__y);this.a&&this.x(this.k.__x,this.k.__y,n.e().__x,n.e().__y,n.f().__x,n.f().__y,n.g().__x,n.g().__y)},s:function(n){for(var t=0,f=n.b().count(),e=n.b(),r=this.k,u=this.k,i=this.k,o=this.a;t<f;)t+1<f&&t+2<f&&(r=e.__inner[t],u=e.__inner[t+1],i=e.__inner[t+2],this.h.bezierCurveTo(r.__x,r.__y,u.__x,u.__y,i.__x,i.__y),o&&(this.x(this.k.__x,this.k.__y,r.__x,r.__y,u.__x,u.__y,i.__x,i.__y),this.k=i)),t=t+3;this.k=i},w:function(i,r,u,f,e){var o=new t.c(t.$bm.$type,0),v,a;o.add(i);o.add({__x:i.__x+Math.cos(r)*f,__y:i.__y+Math.sin(r)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o.add({__x:i.__x+Math.cos(u)*f,__y:i.__y+Math.sin(u)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});for(var s=3.14159265358979*2,h=3.14159265358979/2,c=3.14159265358979,l=3.14159265358979*3/2;r<0;)r+=s;while(r>s)r-=s;while(u<0)u+=s;while(u>s)u-=s;e?((0>u&&0<r||s>u&&s<r||r<u)&&o.add({__x:i.__x+Math.cos(0)*f,__y:i.__y+Math.sin(0)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h>u&&h<r&&o.add({__x:i.__x+Math.cos(h)*f,__y:i.__y+Math.sin(h)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),c>u&&c<r&&o.add({__x:i.__x+Math.cos(c)*f,__y:i.__y+Math.sin(c)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),l>u&&l<r&&o.add({__x:i.__x+Math.cos(l)*f,__y:i.__y+Math.sin(l)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})):((0>r&&0<u||s>r&&s<u||u<r)&&o.add({__x:i.__x+Math.cos(0)*f,__y:i.__y+Math.sin(0)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h>r&&h<u&&o.add({__x:i.__x+Math.cos(h)*f,__y:i.__y+Math.sin(h)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),c>r&&c<u&&o.add({__x:i.__x+Math.cos(c)*f,__y:i.__y+Math.sin(c)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),l>r&&l<u&&o.add({__x:i.__x+Math.cos(l)*f,__y:i.__y+Math.sin(l)*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));var y=Number.MAX_VALUE,p=Number.MAX_VALUE,w=-Number.MAX_VALUE,b=-Number.MAX_VALUE;for(v=0;v<o.count();v++)a=o.__inner[v],y=Math.min(y,a.__x),p=Math.min(p,a.__y),w=Math.max(w,a.__x),b=Math.max(b,a.__y);this.f=Math.min(this.f,y);this.g=Math.min(this.g,p);this.d=Math.max(this.d,w);this.e=Math.max(this.e,b);this.b=!0},l:function(i){var u=this.k,f=i.d();i.f().b()!=i.f().a()&&(this.h.save(),this.h.scale(i.f().b()/i.f().a(),1),u={__x:u.__x*(i.f().a()/i.f().b()),__y:u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:f.__x*(i.f().a()/i.f().b()),__y:f.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});var s=i.e()==0,r=t.$fe.i(u,f,i.f().a(),s,i.b()),e=Math.atan2(u.__y-r.__y,u.__x-r.__x),o=Math.atan2(f.__y-r.__y,f.__x-r.__x),h=Math.abs(o-e)<3.14159265358979;i.b()==h&&(e<o?e+=2*3.14159265358979:o+=2*3.14159265358979);isNaN(r.__x)||isNaN(r.__y)||isNaN(i.f().a())||isNaN(e)||isNaN(o)||(this.h.arc(r.__x,r.__y,i.f().a(),e,o,s),this.a&&this.w(r,e,o,i.f().a(),s));this.k=i.d();i.f().b()!=i.f().a()&&this.h.restore()},q:function(n){var t=n.c().__x,i=n.c().__y;if(this.h.lineTo(t,i),this.k=n.c(),this.a){var r=this.d,u=this.e,f=this.f,e=this.g;this.f=t<f?t:f;this.g=i<e?i:e;this.d=t>r?t:r;this.e=i>u?i:u;this.b=!0}},t:function(n){var r=n.__points,c=r.count(),u,f;if(this.a){var e=this.f,o=this.g,s=this.d,h=this.e,t,i;for(u=0;u<c;u++)t=r.__inner[u].__x,i=r.__inner[u].__y,this.h.lineTo(t,i),e=t<e?t:e,o=i<o?i:o,s=t>s?t:s,h=i>h?i:h;this.f=e;this.g=o;this.d=s;this.e=h;this.b=!0}else for(f=0;f<c;f++)this.h.lineTo(r.__inner[f].__x,r.__inner[f].__y);this.k=n.__points.__inner[c-1]},u:function(n){if(this.h.rect(n.d().left(),n.d().top(),n.d().width(),n.d().height()),this.a){var t=n.d(),i=this.f,r=this.g,u=this.d,f=this.e,e=t.left(),o=t.right(),s=t.top(),h=t.bottom();this.f=e<i?e:i;this.g=s<r?s:r;this.d=o>u?o:u;this.e=h>f?h:f;this.b=!0}},p:function(n){if(this.h.moveTo(n.c().__x,n.c().__y),this.h.lineTo(n.b().__x,n.b().__y),this.a){var t=n.c(),i=n.b(),r=this.f,u=this.g,f=this.d,e=this.e,o=t.__x<i.__x?t.__x:i.__x,s=t.__x>i.__x?t.__x:i.__x,h=t.__y<i.__y?t.__y:i.__y,c=t.__y>i.__y?t.__y:i.__y;this.f=o<r?o:r;this.g=h<u?h:u;this.d=s>f?s:f;this.e=c>e?c:e;this.b=!0}},renderTextBlock:function(n){n.__visibility==0&&((n.__opacity<1||this.c<1)&&(this.h.globalAlpha=n.__opacity*this.c),this.h.fillStyle=n.ab().__fill,this.h.textBaseline="top",this.h.fillText(n.aa(),n.l(),n.m()),(n.__opacity<1||this.c<1)&&(this.h.globalAlpha=1))},renderTextBlockInRect:function(n){this.renderTextBlock(n)},renderPolygon:function(n){var c,l;if(n.ag()!=null&&!(n.ag().count()<1)){this.h.beginPath();this.h.globalAlpha=n.__opacity*this.c;var r=n.ag(),a=r.__inner[0],s=n.__fill,h=n.__stroke;if(this.a=s!=null&&s._isGradient||h!=null&&h._isGradient,this.a){var u=Number.MAX_VALUE,f=-Number.MAX_VALUE,e=Number.MAX_VALUE,o=-Number.MAX_VALUE,t=a.__x,i=a.__y;for(u=t<u?t:u,e=i<e?i:e,f=t>f?t:f,o=i>o?i:o,this.h.moveTo(t,i),c=1;c<r.count();c++)t=r.__inner[c].__x,i=r.__inner[c].__y,this.h.lineTo(t,i),u=t<u?t:u,e=i<e?i:e,f=t>f?t:f,o=i>o?i:o;this.h.closePath();this.f=u;this.g=e;this.d=f;this.e=o}else{for(this.h.moveTo(a.__x,a.__y),l=1;l<r.count();l++)this.h.lineTo(r.__inner[l].__x,r.__inner[l].__y);this.h.closePath()}s!=null&&(this.h.fillStyle=s._isGradient?this.j(s,this.f,this.g,this.d,this.e,n.z(),!1):s.__fill,this.h.fill());h!=null&&(this.h.strokeStyle=h._isGradient?this.j(h,this.f,this.g,this.d,this.e,n.z(),!0):h.__fill,this.h.lineWidth=n.z(),this.h.stroke());this.h.globalAlpha=1}},renderPolyline:function(n){var c,l;if(n.ag()!=null&&!(n.ag().count()<1)){this.h.beginPath();this.h.globalAlpha=n.__opacity*this.c;var r=n.ag(),a=r.__inner[0],s=n.__fill,h=n.__stroke;if(this.a=s!=null&&s._isGradient||h!=null&&h._isGradient,this.a){var u=Number.MAX_VALUE,f=-Number.MAX_VALUE,e=Number.MAX_VALUE,o=-Number.MAX_VALUE,t=a.__x,i=a.__y;for(u=t<u?t:u,e=i<e?i:e,f=t>f?t:f,o=i>o?i:o,this.h.moveTo(t,i),c=1;c<r.count();c++)t=r.__inner[c].__x,i=r.__inner[c].__y,this.h.lineTo(t,i),u=t<u?t:u,e=i<e?i:e,f=t>f?t:f,o=i>o?i:o;this.f=u;this.g=e;this.d=f;this.e=o}else for(this.h.moveTo(a.__x,a.__y),l=1;l<r.count();l++)this.h.lineTo(r.__inner[l].__x,r.__inner[l].__y);s!=null&&(this.h.fillStyle=s._isGradient?this.j(s,this.f,this.g,this.d,this.e,n.z(),!1):s.__fill,this.h.fill());h!=null&&(this.h.strokeStyle=h._isGradient?this.j(h,this.f,this.g,this.d,this.e,n.z(),!0):h.__fill,this.h.lineWidth=n.z(),this.h.stroke());this.h.globalAlpha=1}},renderContentControl:function(n,t){if(t.__visibility!=1){t.__opacity==1&&this.c==1||n.isHitTestRender||(this.h.globalAlpha=t.__opacity*this.c);var i=t.ae();i!=null&&i.render()!=null&&(n.context=this.h,n.xPosition=t.l(),n.yPosition=t.m(),n.data=t.content(),i.render()(n));this.h.globalAlpha=1}},applyTransform:function(i){var s,f,c,h,r;if(n.ig.util.cast(t.$fg.$type,i)!==null)for(s=i,f=s.h().count()-1;f>=0;f--)c=s.h().__inner[f],this.applyTransform(c);else if(n.ig.util.cast(t.$fi.$type,i)!==null)h=i,this.h.translate(h.h(),h.i());else if(n.ig.util.cast(t.$fj.$type,i)!==null){var u=i,l=u.h()*3.14159265358979/180,e=Math.cos(l),o=Math.sin(l),a=u.i()*(1-e)+u.j()*o,v=u.j()*(1-e)-u.i()*o;this.h.transform(e,o,o*-1,e,a,v)}else n.ig.util.cast(t.$fk.$type,i)!==null&&(r=i,this.h.transform(r.j(),0,0,r.k(),r.h()-r.j()*r.h(),r.i()-r.k()*r.i()))},renderLine:function(n){var t,i;if(n.__visibility==0){if(this.h.beginPath(),this.h.globalAlpha=n.__opacity*this.c,this.h.moveTo(n.ag(),n.ai()),this.h.lineTo(n.ah(),n.aj()),this.a){this.f=Number.MAX_VALUE;this.d=-Number.MAX_VALUE;this.g=Number.MAX_VALUE;this.e=-Number.MAX_VALUE;var r=this.f,u=this.g,f=this.d,e=this.e,o=n.ag()<n.ah()?n.ag():n.ah(),s=n.ag()>n.ah()?n.ag():n.ah(),h=n.ai()<n.aj()?n.ai():n.aj(),c=n.ai()>n.aj()?n.ai():n.aj();this.f=o<r?o:r;this.g=h<u?h:u;this.d=s>f?s:f;this.e=c>e?c:e}t=n.__fill;i=n.__stroke;t!=null&&(this.h.fillStyle=t._isGradient?this.j(t,this.f,this.g,this.d,this.d,n.z(),!1):t.__fill,this.h.fill());i!=null&&(this.h.strokeStyle=i._isGradient?this.j(i,this.f,this.g,this.d,this.d,n.z(),!0):n.__stroke.__fill,this.h.lineWidth=n.z(),this.h.stroke());this.h.globalAlpha=1}},setRectangleClip:function(n){this.h.beginPath();this.h.rect(n.left(),n.top(),n.width(),n.height());this.h.clip()},save:function(){this.h.save()},restore:function(){this.h.restore()},scale:function(n,t){this.h.scale(n,t)},translate:function(n,t){this.h.translate(n,t)},clearRectangle:function(n,t,i,r){this.h.clearRect(n,t,i,r)},drawImage:function(n,t,i,r,u,f){t!=1&&(this.h.globalAlpha=t*this.c);this.h.drawImage(n,i,r,u,f);t!=1&&(this.h.globalAlpha=1)},drawImage1:function(n,t,i,r,u,f,e,o,s,h){t!=1&&(this.h.globalAlpha=t*this.c);this.h.drawImage(n,i,r,u,f,e,o,s,h);t!=1&&(this.h.globalAlpha=1)},getPixelAt:function(n,t){var r=this.h.getImageData(n,t,1,1),i=new Array(4);return i[0]=r.data[0],i[1]=r.data[1],i[2]=r.data[2],i[3]=r.data[3],i},getFont:function(){return this.h.font},setFont:function(n){this.h.font!=n&&(this.h.font=n)},measureTextWidth:function(n){var t=this.h.measureText(n);return t.width},c:0,setOpacity:function(n){this.c=n},applyStyle:function(n,i){var o=this;if(i!=null){var r=null,u=null,f=NaN,e=NaN;i.fill&&(r=i.fill);i.stroke&&(u=i.stroke);i.strokeThickness&&(f=i.strokeThickness);i.opacity&&(e=i.opacity);r!=null&&(n.__fill=function(){var n=new t.a4;return n.fill(r),n}());u!=null&&(n.__stroke=function(){var n=new t.a4;return n.fill(u),n}());isNaN(f)||n.z(f);isNaN(e)||(n.__opacity=e)}},enableDropShadow:function(n,t,i,r){this.h.shadowColor=n;this.h.shadowBlur=t;this.h.shadowOffsetX=i;this.h.shadowOffsetY=r},disableDropShadow:function(){this.h.shadowColor="rgba(0,0,0,0)";this.h.shadowBlur=0;this.h.shadowOffsetX=0;this.h.shadowOffsetY=0},$type:new n.ig.Type("CanvasViewRenderer",n.ig.$ot,[t.$dr.$type])},!0);n.ig.util.defType("RenderingContext:em","Object",{a:null,e:function(){return this.a.getUnderlyingContext()},init:function(t,i){this.a=null;n.ig.$op.init.call(this);this.a=t;this.a!=null&&this.a.data(i)},c:function(){return!0},t:function(n){this.a.renderRectangle(n)},q:function(n){this.a.renderPath(n)},o:function(n){this.a.renderGeometry(n)},u:function(n){this.a.renderTextBlock(n)},v:function(n,t){this.a.renderTextBlockInRect(n,t)},r:function(n){this.a.renderPolygon(n)},s:function(n){this.a.renderPolyline(n)},n:function(n,t){this.a.renderContentControl(n,t)},h:function(n){this.a.applyTransform(n)},p:function(n){this.a.renderLine(n)},x:function(){this.a.save()},w:function(){this.a.restore()},ab:function(n){this.a.setRectangleClip(n)},y:function(n,t){this.a.scale(n,t)},ac:function(n,t){this.a.translate(n,t)},i:function(n,t,i,r){this.a.clearRectangle(n,t,i,r)},l:function(n,t,i,r,u,f,e,o,s,h){this.a.drawImage1(n,t,i,r,u,f,e,o,s,h)},k:function(n,t,i,r,u,f){this.a.drawImage(n,t,i,r,u,f)},b:function(n,t){return this.a.getPixelAt(n,t)},f:function(){return this.a.getFont()},z:function(n){this.a.setFont(n)},d:function(n){return this.a.measureTextWidth(n)},aa:function(n){this.a.setOpacity(n)},g:function(n,t){this.a.applyStyle(n,t)},m:function(n,t,i,r){this.a.enableDropShadow(n,t,i,r)},j:function(){this.a.disableDropShadow()},$type:new n.ig.Type("RenderingContext",n.ig.$ot)},!0);n.ig.util.defType("DependencyObjectNotifier:fm","DependencyObject",{init:function(){t.$cm.init.call(this)},h:function(n){this.propertyChanged!=null&&this.propertyChanged(this,new t.a1(n))},propertyChanged:null,$type:new n.ig.Type("DependencyObjectNotifier",t.$cm.$type,[t.$az.$type])},!0);n.ig.util.defType("IOverviewPlusDetailControl:fo","Object",{$type:new n.ig.Type("IOverviewPlusDetailControl",null)},!0);n.ig.util.defType("ISchedulableRender:el","Object",{$type:new n.ig.Type("ISchedulableRender",null)},!0);n.ig.util.defType("NavigationSettings:fp","DependencyObjectNotifier",{init:function(){t.$fm.init.call(this)},allowPan:function(n){return arguments.length===1?(this.g(t.$fp.allowPanProperty,n),n):this.c(t.$fp.allowPanProperty)},k:function(i){var r=n.ig.util.cast(t.$fp.$type,i);r!=null&&r.h("AllowPan")},allowZoom:function(n){return arguments.length===1?(this.g(t.$fp.allowZoomProperty,n),n):this.c(t.$fp.allowZoomProperty)},l:function(i){var r=n.ig.util.cast(t.$fp.$type,i);r!=null&&r.h("AllowZoom")},$type:new n.ig.Type("NavigationSettings",t.$fm.$type)},!0);n.ig.util.defType("PropertyChangedEventArgs$1:fr","PropertyChangedEventArgs",{$t:null,init:function(n,i,r,u){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$a1.init.call(this,i);this.oldValue(r);this.newValue(u)},_oldValue:null,oldValue:function(n){return arguments.length===1?(this._oldValue=n,n):this._oldValue},_newValue:null,newValue:function(n){return arguments.length===1?(this._newValue=n,n):this._newValue},$type:new n.ig.Type("PropertyChangedEventArgs$1",t.$a1.$type)},!0);n.ig.util.defType("XamOverviewPlusDetailPane:fs","Control",{_view:null,view:function(n){return arguments.length===1?(this._view=n,n):this._view},init:function(){this.ah=!1;this.aj=!1;t.$d8.init.call(this);this.view(new t.ft(this));this.view().as();this.y(t.$fs.$type);this.a5({__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},windowChanging:null,cl:function(n){if(n==null)throw new t.f0("e");this.immediate()&&this.window(n.newValue());this.windowChanging!=null&&this.windowChanging(this,n)},windowChanged:null,ck:function(n){this.windowChanged!=null&&this.windowChanged(this,n)},thumbnailSizeChanged:null,cj:function(n){this.thumbnailSizeChanged!=null&&this.thumbnailSizeChanged(this,n)},immediate:function(n){return arguments.length===1?(this.g(t.$fs.immediateProperty,n),n):this.c(t.$fs.immediateProperty)},world:function(n){return arguments.length===1?(this.g(t.$fs.worldProperty,n),n):this.c(t.$fs.worldProperty)},worldStyle:function(n){return arguments.length===1?(this.g(t.$fs.worldStyleProperty,n),n):this.c(t.$fs.worldStyleProperty)},window:function(n){return arguments.length===1?(this.g(t.$fs.windowProperty,n),n):this.c(t.$fs.windowProperty)},windowStyle:function(n){return arguments.length===1?(this.g(t.$fs.windowStyleProperty,n),n):this.c(t.$fs.windowStyleProperty)},preview:function(n){return arguments.length===1?(this.g(t.$fs.previewProperty,n),n):this.c(t.$fs.previewProperty)},previewStyle:function(n){return arguments.length===1?(this.g(t.$fs.previewStyleProperty,n),n):this.c(t.$fs.previewStyleProperty)},shrinkToThumbnail:function(n){return arguments.length===1?(this.g(t.$fs.shrinkToThumbnailProperty,n),n):this.c(t.$fs.shrinkToThumbnailProperty)},ci:function(n,t){n.ch(t.d(),t.c())},ch:function(n,t){t?this.b0(0):this.b0(2)},mode:function(n){return arguments.length===1?(this.g(t.$fs.modeProperty,n),n):this.c(t.$fs.modeProperty)},b6:function(n,t){n.b5(t.d(),t.c())},b5:function(n,t){this.b0(t)},b0:function(n){switch(n){case 1:this.view().ai();this.isZoomable()?this.view().al():this.view().ak();break;case 2:this.view().aj();this.isZoomable()?this.view().al():this.view().ak();break;case 0:this.view().aj();this.view().ak()}},cv:function(){this.shrinkToThumbnail()?this.b0(0):this.b0(2)},ad:null,surfaceViewer:function(i){var r,u;return arguments.length===1?(this.ad!=null&&(r=n.ig.util.cast(t.$az.$type,this.ad),r!=null&&(r.propertyChanged=n.ig.Delegate.prototype.remove(r.propertyChanged,this.ct.runOn(this)))),this.ad=i,this.ad!=null&&(u=n.ig.util.cast(t.$az.$type,this.ad),u!=null&&(u.propertyChanged=n.ig.Delegate.prototype.combine(u.propertyChanged,this.ct.runOn(this)))),this.view().a2(),i):this.ad},ct:function(n,t){switch(t.propertyName()){case"DefaultInteraction":this.view().a4(this.ad.defaultInteraction())}},previewViewportdRect:function(){var n=this.de(this.world());return new t.bk(0,0,0,n.width(),n.height())},zoomTo100ButtonVisibility:function(n){return arguments.length===1?(this.g(t.$fs.zoomTo100ButtonVisibilityProperty,n),n):this.c(t.$fs.zoomTo100ButtonVisibilityProperty)},scaleToFitButtonVisibility:function(n){return arguments.length===1?(this.g(t.$fs.scaleToFitButtonVisibilityProperty,n),n):this.c(t.$fs.scaleToFitButtonVisibilityProperty)},interactionStatesToolVisibility:function(n){return arguments.length===1?(this.g(t.$fs.interactionStatesToolVisibilityProperty,n),n):this.c(t.$fs.interactionStatesToolVisibilityProperty)},zoomLevelLargeChange:function(n){return arguments.length===1?(this.g(t.$fs.zoomLevelLargeChangeProperty,n),n):this.c(t.$fs.zoomLevelLargeChangeProperty)},ai:!1,isZoomable:function(n){return arguments.length===1?(this.ai=n,this.cv(),n):this.ai},viewport:function(){return this.view().be()},_at:!1,at:function(n){return arguments.length===1?(this._at=n,n):this._at},getDesiredSize:function(n){var i=n.b(),r=n.a(),u=this.world().isEmpty()?1:this.world().width()/this.world().height();return Number.isInfinity(r)?(Number.isInfinity(i)&&(i=128),r=i/u):Number.isInfinity(i)&&(i=r*u),new t.bl(i,r)},_am:!1,am:function(n){return arguments.length===1?(this._am=n,n):this._am},_a5:null,a5:function(n){return arguments.length===1?(this._a5=n,n):this._a5},b7:function(){this.shrinkToThumbnail()&&this.b0(1)},b8:function(){this.shrinkToThumbnail()&&this.b0(0)},ap:function(n){switch(n){case 8:if(this.am())return this.view().af(),this.am(!1),this.preview(t.$bk.empty()),!0}return!1},b9:function(n){var r;if(this.ak||(this.ah=!1),this.a4=n,r=this.de(this.world()),r.containsPoint(n)!=!1){var u=this.viewport(),f=u.isEmpty()?t.$bk.empty():this.world(),i=f.isEmpty()?t.$bk.empty():this.window();this.a5(this.a6(n));i.isEmpty()==!1&&this.view().k()&&(this.am(!0),i=new t.bk(0,this.a5().__x-.5*i.width(),this.a5().__y-.5*i.height(),i.width(),i.height()),this.mobileMode()||this.cl(new t.fr(t.$bk.$type,"Window",this.window(),i)))}},a4:null,ca:function(n,i,r){var f,e;(isNaN(this.a5().__x)||isNaN(this.a5().__y))&&this.a5(this.a6(n));f=2;r&&(f=10);var o=!1,h=this.a7(this.a5()),s=new t.bk(2,h,n);s.width()>f&&s.height()>f&&(o=!0);this.ak||o&&(this.ah=!1);this.a4=n;var c=this.viewport(),l=c.isEmpty()?t.$bk.empty():this.world(),u=l.isEmpty()?t.$bk.empty():this.window();this.am()&&(e=this.a6(n),u=new t.bk(0,e.__x-.5*u.width(),e.__y-.5*u.height(),u.width(),u.height()),this.cl(new t.fr(t.$bk.$type,"Window",this.window(),u)))},aq:function(n){var r;this.a4=n;var u=this.viewport(),f=u.isEmpty()?t.$bk.empty():this.world(),i=f.isEmpty()?t.$bk.empty():this.window();return this.am()&&!this.ah?(this.view().af(),this.am(!1),r=this.a6(n),i=new t.bk(0,r.__x-.5*i.width(),r.__y-.5*i.height(),i.width(),i.height()),this.mobileMode()||this.ck(new t.fr(t.$bk.$type,"Window",this.window(),i)),!0):!1},ar:function(n){var i=this.window().getCenter(),r=1-t.$bf.c(n,-.5,.5),u=i.__x-r*(i.__x-this.window().left()),e=i.__y+r*(this.window().bottom()-i.__y),o=i.__x+r*(this.window().right()-i.__x),f=i.__y-r*(i.__y-this.window().top()),s=new t.bk(0,u,f,o-u,e-f);return this.ck(new t.fr(t.$bk.$type,"Window",this.window(),s)),!0},ah:!1,aw:0,cd:function(){this.ak=!0;this.ah=!0;this.aw=1},cc:function(n){this.view().r()?this.by(n):(this.bz(n),this.aw=n)},cb:function(n){this.ak=!1;this.ah=!1;this.view().r()?this.by(n):this.bz(n)},bz:function(i){var f=i-this.aw;if(f!=0){var e=.03,r=f<0?1+e:1-e,u={__x:this.window().x()+this.window().width()/2,__y:this.window().y()+this.window().height()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o={__x:this.window().x()-u.__x,__y:this.window().y()-u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},s=new t.bk(0,o.__x*r+u.__x,o.__y*r+u.__y,this.window().width()*r,this.window().height()*r);this.ck(new t.fr(t.$bk.$type,"Window",this.window(),s))}},by:function(i){var r=1/i,u={__x:this.window().x()+this.window().width()/2,__y:this.window().y()+this.window().height()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:this.window().x()-u.__x,__y:this.window().y()-u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},e=new t.bk(0,f.__x*r+u.__x,f.__y*r+u.__y,this.window().width()*r,this.window().height()*r);this.ck(new t.fr(t.$bk.$type,"Window",this.window(),e))},propertyChanged:null,cf:function(n){this.ce(new t.a1(n))},ce:function(n){this.propertyChanged!=null&&this.propertyChanged(this,n);switch(n.propertyName()){case"World":this.refresh(!1);break;case"Window":this.refresh(!1);break;case"Preview":this.refresh(!1)}},cs:function(){this.view().az()},a6:function(i){var r=this.viewport(),u=r.isEmpty()?t.$bk.empty():this.world();if(!u.isEmpty()){var f=r.width()/r.height()>u.width()/u.height()?r.height()/u.height():r.width()/u.width(),e=.5*(r.left()+r.right()-(u.left()+u.right())*f),o=.5*(r.top()+r.bottom()-(u.top()+u.bottom())*f);return{__x:(i.__x-e)/f,__y:(i.__y-o)/f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}}return{__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},a7:function(i){var r=this.viewport(),u=r.isEmpty()?t.$bk.empty():this.world();if(!u.isEmpty()){var f=r.width()/r.height()>u.width()/u.height()?r.height()/u.height():r.width()/u.width(),e=.5*(r.left()+r.right()-(u.left()+u.right())*f),o=.5*(r.top()+r.bottom()-(u.top()+u.bottom())*f);return{__x:i.__x*f+e,__y:i.__y*f+o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}}return{__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},de:function(n){var i=this.viewport(),r=i.isEmpty()?t.$bk.empty():this.world();if(!r.isEmpty()&&!n.isEmpty()){var u=i.width()/i.height()>r.width()/r.height()?i.height()/r.height():i.width()/r.width(),f=.5*(i.left()+i.right()-(r.left()+r.right())*u),e=.5*(i.top()+i.bottom()-(r.top()+r.bottom())*u);return new t.bk(0,n.left()*u+f,n.top()*u+e,n.width()*u,n.height()*u)}return t.$bk.empty()},refresh:function(n){var t=this;if(t.cu(),!n){t.at()||(t.at(!0),t.view().ay(function(){return t.refresh(!0)}));return}t.at(!1);var i=t.de(t.world()),r=t.de(t.window()),u=t.de(t.preview());if(t.__visibility!=0||i.isEmpty()||isNaN(i.x())||isNaN(i.y())){t.at(!1);return}t.view().a7(i);t.view().aw(i);t.view().a6(i,r);t.view().a5(i,u);t.surfaceViewer()!=null&&t.surfaceViewer().renderPreview();t.view().am()},_updatingSliderRanges:!1,updatingSliderRanges:function(n){return arguments.length===1?(this._updatingSliderRanges=n,n):this._updatingSliderRanges},cu:function(){var i,r;if(this.__visibility==0&&this.surfaceViewer()!=null&&this.view().n()&&(i=this.surfaceViewer().viewportRect(),r=this.surfaceViewer().worldRect(),!i.isEmpty()&&!r.isEmpty())){this.updatingSliderRanges(!0);var u=this.view().t(),n=this.surfaceViewer().minimumZoomLevel(),t=this.surfaceViewer().maximumZoomLevel();isNaN(n)&&(n=Math.min(i.width()/r.width(),i.height()/r.height()),n=Math.min(n,.5),n=Math.min(n,u));isNaN(t)&&(t=2,t=Math.max(t,u));this.view().a1(n);this.view().a0(t);this.updatingSliderRanges(!1)}},b2:function(n){this.surfaceViewer()!=null&&this.surfaceViewer().defaultInteraction(n)},cg:function(){this.surfaceViewer()!=null&&this.surfaceViewer().scaleToFit()},cm:function(){this.surfaceViewer()!=null&&this.surfaceViewer().zoomTo100()},b1:function(){this.refresh(!1)},provideContainer:function(n){this.view().ap(n)},provideContext:function(n){this.view().aq(n)},provideEventSource:function(n){this.view().ar(n)},aj:!1,mobileMode:function(n){if(arguments.length===1){var t=this.aj;return this.aj=n,t!=this.aj&&this.view().an(this.aj),n}return this.aj},arrange:function(n){this.view().ae(n)},pushZoomLevel:function(n){this.view().ax(n)},b4:function(){if(this.a4!=null){var i=this.a6(this.a4),r=this.viewport(),u=r.isEmpty()?t.$bk.empty():this.world(),n=u.isEmpty()?t.$bk.empty():this.window();n=new t.bk(0,i.__x-.5*n.width(),i.__y-.5*n.height(),n.width(),n.height());this.ck(new t.fr(t.$bk.$type,"Window",this.window(),this.window()))}},ak:!1,pinching:function(){return this.ak},b3:function(){this.ak=!1;this.a5({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("XamOverviewPlusDetailPane",t.$d8.$type,[t.$az.$type])},!0);n.ig.util.defType("XamOverviewPlusDetailPaneView:ft","Object",{_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},init:function(i){this.a=null;this.i=!1;this.__loadingEle=null;this.__backgroundImage=null;this.x=0;this.w=0;n.ig.$op.init.call(this);this.be(t.$bk.empty());this.d(i);this.bk(new t.bl(0,0))},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},as:function(){var i=this,r,u;i.f(new t.fw(0,1,300));i.f().propertyChanged=n.ig.Delegate.prototype.combine(i.f().propertyChanged,i.ad.runOn(i));i.j(!0);i.e(new t.fu(i));r=i.d();u=typeof Modernizr!="undefined"&&Modernizr.touch||i.e().f()&&n.support.touch;r.mobileMode(u);i.bj(function(){var n=new t.dy;return n.y(!0),n.ak(new t.e2),n}());i.bj().ak().d(t.$bk.empty());i.bg(function(){var n=new t.dy;return n.y(!0),n.ak(new t.e2),n}());i.bi(function(){var n=new t.dy;return n.y(!1),n.ak(new t.ew),n}());n.ig.util.cast(t.$ew.$type,i.bi().ak()).c().add(new t.ez);n.ig.util.cast(t.$ew.$type,i.bi().ak()).c().add(new t.ez);i.bh(function(){var n=new t.dy;return n.y(!1),n.ak(new t.ew),n}());n.ig.util.cast(t.$ew.$type,i.bh().ak()).c().add(new t.ez);n.ig.util.cast(t.$ew.$type,i.bh().ak()).c().add(new t.ez);i.u(0);i.v(0);i.l(!1)},ad:function(){this.m()?this.v(this.u()+this.f().transitionProgress()*(1-this.u())):this.v(this.u()-this.f().transitionProgress()*this.u());this.v()>=1?(this.p(!0),this.ae(this.bc()),this.d().refresh(!1)):this.p()&&(this.p(!1),this.e().ac(),this.ae(this.bc()),this.d().refresh(!1));this.am()},_s:!1,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_p:!1,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_u:0,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_v:0,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_j:!1,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_m:!1,m:function(n){return arguments.length===1?(this._m=n,n):this._m},ai:function(){this.m()||(this.m(!0),this.j()?(this.u(this.v()),this.f().stop(),this.f().start()):(this.u(1),this.v(1),this.am()))},ah:function(){},aj:function(){this.m()&&(this.m(!1),this.j()?(this.u(this.v()),this.f().stop(),this.f().start()):(this.u(1),this.v(1),this.am()))},al:function(){},ak:function(){},_bj:null,bj:function(n){return arguments.length===1?(this._bj=n,n):this._bj},_bi:null,bi:function(n){return arguments.length===1?(this._bi=n,n):this._bi},_bh:null,bh:function(n){return arguments.length===1?(this._bh=n,n):this._bh},_bg:null,bg:function(n){return arguments.length===1?(this._bg=n,n):this._bg},bb:null,be:function(n){return arguments.length===1?(this.bb=n,this.c()!=null&&this.c().az(this.bb),n):this.bb},az:function(){},_bf:null,bf:function(n){return arguments.length===1?(this._bf=n,n):this._bf},_bd:null,bd:function(n){return arguments.length===1?(this._bd=n,n):this._bd},a7:function(n){if(this.bf(n),this.aa()!=null){var h=this.aa(),i=n.width()/this.x,r=n.height()/this.w,u=i<r?i:r,f=this.x*u,e=this.w*u,o=n.width()-f,s=n.height()-e;this.bd(new t.bk(0,this.bf().left()+o/2,this.bf().top()+s/2,f,e))}this.bj().ak().d(n);this.bj().__visibility=n.isEmpty()?1:0},a6:function(n,t){this.bi().ak().c().__inner[0].b(this.ba(n.inflate(2)));this.bi().ak().c().__inner[1].b(this.a9(t));this.bi().__visibility=t.isEmpty()?1:0},a5:function(n,t){this.bh().ak().c().__inner[0].b(this.ba(n.inflate(2)));this.bh().ak().c().__inner[1].b(this.a9(t));this.bh().__visibility=t.isEmpty()?1:0},a9:function(i){var u=new t.e0,r=new t.e8;return r.__isClosed=!0,r.__startPoint={__x:i.left(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r.__segments.add(new t.fa(0,{__x:i.left(),__y:i.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.fa(0,{__x:i.right(),__y:i.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.fa(0,{__x:i.right(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.fa(0,{__x:i.left(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),u.add(r),u},ba:function(i){var u=new t.e0,r=new t.e8;return r.__isClosed=!0,r.__startPoint={__x:i.left(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r.__segments.add(new t.fa(0,{__x:i.right(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.fa(0,{__x:i.right(),__y:i.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.fa(0,{__x:i.left(),__y:i.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.fa(0,{__x:i.left(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),u.add(r),u},a2:function(){},n:function(){return this.g()!=null},af:function(){},k:function(){return!0},aw:function(n){var i=!1,r;Math.round(this.bk().b())!=Math.round(n.width())&&(i=!0,this.e().as(n.width()));Math.round(this.bk().a())!=Math.round(n.height())&&(i=!0,this.e().ar(n.height()));r=this.bk();this.bk(new t.bl(n.width(),n.height()));i&&this.d().cj(new t.fr(t.$bl.$type,"ThumbnailSize",r,this.bk()))},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},aq:function(n){this.g(n)},a:null,b:function(n){return arguments.length===1?(this.a!=null&&this.a.n(this),this.a=n,this.a!=null&&(this.a.h(this),this.am()),n):this.a},am:function(){this.i||this.b()==null||(this.i=!0,this.b().j())},i:!1,isDirty:function(n){return arguments.length===1?(this.i=n,n):this.i},ab:null,__loadingEle:null,ac:function(t){var i;if(arguments.length===1){if(this.ab=t,this.ab!=null){this.__loadingEle=n("<img><\/img>");var r=this.__loadingEle[0],u=this,i=this.__loadingEle;i.bind("load readystatechange",function(n){(this.complete||this.readyState=="complete"&&n.type=="readystatechange")&&u.downloadCompleted(n)});r.src=this.ab}else this.__loadingEle!=null&&(i=this.__loadingEle,i.unbind("load readystatechange"),this.__loadingEle=null),this.aa(null);return t}return this.ab},downloadCompleted:function(){this.__loadingEle[0].complete&&this.aa(this.__loadingEle[0])},__backgroundImage:null,x:0,w:0,aa:function(n){if(arguments.length===1){if(this.__backgroundImage=n,this.__backgroundImage!=null){var t=this.__backgroundImage;this.x=t.width;this.w=t.height}else this.x=0,this.w=0;return this.bf()!=null&&this.a7(this.bf()),this.am(),n}return this.__backgroundImage},undirty:function(){var t;if((this.isDirty(!1),this.g()!=null)&&this.d().__visibility!=1&&this.g().c()){var i=1,r=1,n=1;if(i=.6+this.v()*(1-.6),r=.6+this.v()*(1-.6),n=.7+this.v()*(1-.7),this.bg().__opacity=n,this.bg().z(1),this.e().ag(this.bg()),this.bj().__opacity=n,this.bj().z(1),this.e().am(this.bj()),this.bi().__opacity=n,this.bi().z(1.5),this.e().al(this.bi()),this.bh().__opacity=n,this.bh().z(2),this.e().ah(this.bh()),t=this.bj().ak().d(),t.isEmpty())return;this.g().x();this.g().ac(this.bc().right(),this.bc().bottom());this.g().y(i,r);this.g().ac(-this.bc().right(),-this.bc().bottom());this.g().q(this.bg());this.e().z(this.g(),t);this.g().ab(t);this.g().q(this.bj());this.aa()!=null&&this.g().k(this.aa(),n,this.bd().left(),this.bd().top(),this.bd().width(),this.bd().height());this.g().q(this.bh());this.g().q(this.bi());this.g().w()}},index:function(){return 1e4},postRender:function(){},a4:function(){},ap:function(n){if(this.o(window.navigator.msPointerEnabled),this.o()&&this.r(!0),n==null){this.c()!=null&&this.c().af();this.e().ae(null);this.h(null);this.c(null);return}this.e().ae(n);this.h(this.e().c())},a8:function(n){if(!this.l()){var t=n,i=this.d().surfaceViewer();i.zoomLevel(t)}},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},ar:function(t){var i=this;t!=null&&(i.c(t.d()),i.c().ab(i.q.runOn(i)),i.c().onMouseWheel=n.ig.Delegate.prototype.combine(i.c().onMouseWheel,function(n,t){return i.d().ar(t)}),i.c().onPinchDelta=n.ig.Delegate.prototype.combine(i.c().onPinchDelta,function(n,t){return i.d().cc(t)}),i.c().onPinchStarted=n.ig.Delegate.prototype.combine(i.c().onPinchStarted,function(n){return i.d().cd(n)}),i.c().onGestureCompleted=n.ig.Delegate.prototype.combine(i.c().onGestureCompleted,function(n){return i.d().b3(n)}),i.c().onMouseUp=n.ig.Delegate.prototype.combine(i.c().onMouseUp,function(n){return i.d().aq(n)}),i.c().onMouseDown=n.ig.Delegate.prototype.combine(i.c().onMouseDown,i.d().b9.runOn(i.d())),i.c().onMouseEnter=n.ig.Delegate.prototype.combine(i.c().onMouseEnter,function(){return i.d().b7()}),i.c().onMouseOver=n.ig.Delegate.prototype.combine(i.c().onMouseOver,function(n,t,r){return i.d().ca(n,t,r)}),i.c().onKeyDown=n.ig.Delegate.prototype.combine(i.c().onKeyDown,i.d().ap.runOn(i.d())),i.c().onMouseLeave=n.ig.Delegate.prototype.combine(i.c().onMouseLeave,i.ao.runOn(i)),i.c().az(i.be()),i.e().a(i.c()))},ao:function(t){this.q({__x:this.be().left()+t.__x,__y:this.be().top()+t.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})||this.d().b8()},q:function(n){if(n==null||this.d().__visibility!=0)return!1;var t=n.__x,i=n.__y;return t>=this.bc().left()&&i>=this.bc().top()&&t<this.bc().left()+this.bc().width()&&i<this.bc().top()+this.bc().height()?!0:!1},an:function(n){n?(this.j(!1),this.e()!=null&&this.d().__visibility==0&&this.e().aa()):(this.j(!0),this.e()!=null&&(this.e().y(),this.aj(),this.v(0),this.u(0),this.e().ac()))},_bc:null,bc:function(n){return arguments.length===1?(this._bc=n,n):this._bc},ae:function(n){this.bc(n);this.bg().ak().d(this.bc());var i=n.height()-4,r=n.width()-4;this.v()>=1&&!this.d().mobileMode()&&(i-=20,this.e().ao(this.bc(),r,i));this.e().j()!=null&&(this.s()?this.e().j().show():this.e().ab(!0));this.be(new t.bk(0,this.bc().left()+2,this.bc().top()+2,r,i));this.am()},_l:!1,l:function(n){return arguments.length===1?(this._l=n,n):this._l},ax:function(n){this.l(!0);this.e().x(n);this.l(!1)},au:function(){this.d().cm()},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_bk:null,bk:function(n){return arguments.length===1?(this._bk=n,n):this._bk},av:function(){},a3:function(t,i){this.q({__x:t,__y:i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})||this.d().b8()},t:function(){return this.e().h()},a1:function(n){this.e().aj(n)},a0:function(n){this.e().ai(n)},ay:function(n){this.e().af(n)},at:function(){this.d().b4()},_r:!1,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_o:!1,o:function(n){return arguments.length===1?(this._o=n,n):this._o},preRender:function(){},$type:new n.ig.Type("XamOverviewPlusDetailPaneView",n.ig.$ot,[t.$el.$type])},!0);n.ig.util.defType("XamOverviewPlusDetailPaneViewManager:fu","Object",{_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_sliderEnabled:!1,sliderEnabled:function(n){return arguments.length===1?(this._sliderEnabled=n,n):this._sliderEnabled},_isJqueryMobile:!1,isJqueryMobile:function(n){return arguments.length===1?(this._isJqueryMobile=n,n):this._isJqueryMobile},o:null,n:null,q:null,r:null,p:null,b:null,init:function(i){var r,u,f,e,o;this.o="Overview";this.n="Close";this.q="Zoom In";this.r="Zoom Out";this.p="Reset Zoom";this.d=!1;n.ig.$op.init.call(this);this.b=i;this.isJqueryMobile(typeof n.mobile!="undefined"&&n.mobile!==null);r=null;n.ig.Chart&&n.ig.Chart.locale&&n.ig.Chart.locale.overview&&(r=n.ig.Chart.locale.overview);u=null;n.ig.Chart&&n.ig.Chart.locale&&n.ig.Chart.locale.close&&(u=n.ig.Chart.locale.close);f=null;n.ig.Chart&&n.ig.Chart.locale&&n.ig.Chart.locale.zoomIn&&(f=n.ig.Chart.locale.zoomIn);e=null;n.ig.Chart&&n.ig.Chart.locale&&n.ig.Chart.locale.zoomOut&&(e=n.ig.Chart.locale.zoomOut);o=null;n.ig.Chart&&n.ig.Chart.locale&&n.ig.Chart.locale.resetZoom&&(o=n.ig.Chart.locale.resetZoom);r!=null&&(this.o=r);u!=null&&(this.n=u);f!=null&&(this.q=f);e!=null&&(this.r=e);o!=null&&(this.p=o);this.m(n("<canvas><\/canvas>"));this.c(new t.em(new t.en,this.m()[0].getContext("2d")))},ae:function(t){var i,r,s,u;if(t==null){this.i(null);this.k(null);this.l(null);return}this.i(n(t));i=n('<div class="ui-chart-toolbar"><\/div>');i.hide();this.k(i);this.i().append(i);this.ad();this.b.d().mobileMode()||this.ab(!0);r=n('<ul class="ui-widget" style="margin: 0; padding: 0"><\/ul>');i.append(r);s=n('<div class="ui-chart-slider"><\/div>');u=this.isJqueryMobile()?n("<input type='range' style='display:none;' max='100' min='0' />"):n("<div><\/div>");s.append(u);this.l(u);u.slider&&(u.slider({mini:!0}),this.sliderEnabled(!0));this.sliderEnabled()&&u.bind(this.isJqueryMobile()?"change":"slide",this.ap.runOn(this));var f=n("<button><\/button>"),e=n("<button><\/button>"),o=n("<button><\/button>"),h=this.r,c=this.q,l=this.p;this.isJqueryMobile()?(f=n("<div title="+h+"><\/div>"),f.buttonMarkup({iconpos:"notext",icon:"zoomout",mini:!0,inline:!0,corners:!1}),e=n("<div title="+c+"><\/div>"),e.buttonMarkup({iconpos:"notext",icon:"zoomin",mini:!0,inline:!0,corners:!1}),o=n("<div title="+l+"><\/div>"),o.buttonMarkup({iconpos:"notext",icon:"reset",mini:!0,inline:!0,corners:!1})):(f.button({icons:{primary:"ui-icon-zoomout"},label:h,text:!1}),e.button({icons:{primary:"ui-icon-zoomin"},label:c,text:!1}),o.button({icons:{primary:"ui-icon-arrow-4-diag"},label:l,text:!1}));f.click(this.av.runOn(this));e.click(this.au.runOn(this));o.click(this.at.runOn(this));this.s(r,f,!0);this.s(r,s,!1);this.s(r,e,!0);this.s(r,o,!0);i.mouseleave(this.ak.runOn(this))},ad:function(){var t=n('<button toggle="closed" class="ui-chart-opd-button"><\/button>'),i=this.o;this.isJqueryMobile()?(t=n('<div toggle="closed" class="ui-chart-opd-button"><\/div>'),t.html(i).buttonMarkup({icon:"arrow-d",iconpos:"left"})):t.button({icons:{secondary:"ui-icon-carat-1-s"},label:i});this.b.s()||t.hide();t.click(this.aq.runOn(this));this.j(t);this.i().append(t)},ak:function(n){t.$bx.cp(n);var i=this.a().ad(),r=n.pageX-i.__x,u=n.pageY-i.__y;this.b.a3(r,u)},s:function(i,r,u){var e="",f;u&&(e='class="ui-corner-all" ');f=n("<li><\/li>");u?f.mousedown(t.$fu.v).mouseup(t.$fu.w).hover(t.$fu.t,t.$fu.u):f.addClass("ui-chart-slider-holder");f.append(r);i.append(f)},av:function(n){this.x(this.h()-.05);this.b.a8(this.h());n.preventDefault()},au:function(n){this.x(this.h()+.05);this.b.a8(this.h());n.preventDefault()},x:function(n){if(this.sliderEnabled()){var t=this.l();this.isJqueryMobile()?t.slider("refresh",Math.round(n*100),!0,!1):t.slider("option","value",Math.round(n*100))}},at:function(n){this.b.au();n.preventDefault()},aq:function(n){this.j().attr("toggle")=="closed"||this.isJqueryMobile()&&this.j().attr("data-toggle")=="closed"?this.an():this.ab(!1);this.b.d().refresh(!0);n.preventDefault()},h:function(){if(this.sliderEnabled()){var n=this.l();return this.isJqueryMobile()?parseInt(n.val()||0)/100:n.slider("option","value")/100}return 0},aj:function(n){var i=Math.round(n*100),t;this.sliderEnabled()&&(t=this.l(),this.isJqueryMobile()?t.attr("min",i):t.slider("option","min",i))},ai:function(n){var i=Math.round(n*100),t;this.sliderEnabled()&&(t=this.l(),this.isJqueryMobile()?t.attr("max",i):t.slider("option","max",i))},v:function(){},w:function(){},t:function(){},u:function(){},ap:function(n,t){var i=(t?t.value:n.target.value)/100;this.b.a8(i)},as:function(n){this.m().attr("width",n.toString())},ar:function(n){this.m().attr("height",n.toString())},ag:function(n){var i=this;n.__stroke=function(){var n=new t.a4;return n.fill("#AEB8C2"),n}();n.__fill=function(){var n=new t.a4;return n.fill("#C6CFD9"),n}()},am:function(n){var i=this;n.__stroke=function(){var n=new t.a4;return n.fill("rgba(92,105,124,.4)"),n}();n.__fill=function(){var n=new t.a4;return n.fill("rgba(147,159,175,0)"),n}()},al:function(n){var i=this;n.__stroke=function(){var n=new t.a4;return n.fill("rgba(68,76,88,.6)"),n}();n.__fill=function(){var n=new t.a4;return n.fill("rgba(92,105,118,.1)"),n}()},ah:function(n){var i=this;n.__stroke=function(){var n=new t.a4;return n.fill("#2A3037"),n}()},z:function(n,t){n.k(this.m()[0],1,t.left(),t.top(),t.width(),t.height())},ao:function(n,t,i){this.k().css("top",(n.top()+2+i).toString()+"px");this.k().css("left",(n.left()+2).toString()+"px");this.k().css("width",t.toString()+"px");this.k().css("height","20px");this.k().show()},d:!1,aa:function(){this.b.d().mode(1);this.k()!=null&&this.k().hide()},y:function(){this.b.d().mode(0)},an:function(){this.d=!0;this.b.d().__visibility=0;this.aa();var n=this.j(),t=this.n;this.isJqueryMobile()?(n.find(".ui-btn-text").html(t),n.find(".ui-icon").removeClass("ui-icon-arrow-d").addClass("ui-icon-delete")):(n.button("option","icons",{secondary:"ui-icon-close"}),n.button("option","label",t));this.j().attr("toggle","open").attr("data-toggle","open");this.k().css("left",(this.b.d().view().bc().left()+5).toString()+"px");this.k().css("width",(this.b.d().view().bc().width()-10).toString()+"px");this.k().css("top",(this.b.d().view().bc().height()-this.k().height()).toString()+"px");this.k().show()},ab:function(n){if(this.d){this.d=!1;this.b.d().__visibility=1;var t=this.j(),i=this.o;this.isJqueryMobile()?(t.find(".ui-btn-text").html(i),t.find(".ui-icon").removeClass("ui-icon-delete").addClass("ui-icon-arrow-d")):(t.button("option","icons",{secondary:"ui-icon-carat-1-s"}),t.button("option","label",i));this.j().attr("toggle","closed").attr("data-toggle","closed");this.b.d().mode(0);this.k().hide();this.b.at()}n&&this.j().hide()},ac:function(){this.k().hide()},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},af:function(n){window.setTimeout(n,0)},f:function(){return this.isJqueryMobile()},$type:new n.ig.Type("XamOverviewPlusDetailPaneViewManager",n.ig.$ot)},!0);n.ig.util.defType("XamMultiScaleTileSource:f1","DependencyObject",{init:function(n,i,r,u,f){t.$cm.init.call(this);this.m=n;this.l=i;this.k(r);this.i(u);this.j(f)},m:null,o:function(n){return arguments.length===1?(this.m=n,this.r(0,0,0,0),n):this.m},l:null,n:function(n){return arguments.length===1?(this.l=n,this.r(0,0,0,0),n):this.l},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},h:null,p:function(i,r,u){var f=new t.c(n.ig.$op.$type,0),e;return this.q(i,r,u,f),e=null,f.count()>0&&(e=n.ig.util.cast(t.$f2.$type,f.__inner[0])),e},q:function(){},r:function(n,t,i,r){this.h!=null&&this.h.invalidateTileLayer(n,t,i,r)},$type:new n.ig.Type("XamMultiScaleTileSource",t.$cm.$type)},!0);n.ig.util.defType("MapTileSource:gh","XamMultiScaleTileSource",{init:function(n,i,r,u,f){t.$f1.init.call(this,n,i,r,u,f)},$type:new n.ig.Type("MapTileSource",t.$f1.$type)},!0);n.ig.util.defType("BingMapsTileSource:gi","MapTileSource",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$gh.init.call(this,1073741824,1073741824,256,256,0)},init1:function(n,i,r){t.$gi.init.call(this);this.tilePath(i);this.subDomains(r)},tilePath:function(n){return arguments.length===1?(this.g(t.$gi.tilePathProperty,n),n):this.c(t.$gi.tilePathProperty)},subDomains:function(n){return arguments.length===1?(this.g(t.$gi.subDomainsProperty,n),n):this.c(t.$gi.subDomainsProperty)},z:function(){},u:null,cultureName:function(n){return arguments.length===1?(this.g(t.$gi.cultureNameProperty,n),n):this.c(t.$gi.cultureNameProperty)},q:function(i,r,u,f){var o,e,s;if(!this.s()){f.clear();return}this.tilePath()!=null&&(i-=8,i>0&&(o=this.w(i,r,u),e=this.tilePath(),e=e.replace("{culture}",this.u),e=e.replace("{quadkey}",o),s=n.ig.Number.prototype.parseInt(o.substr(o.length-1,1)),e=e.replace("{subdomain}",this.subDomains().__inner[s]),e=e.replace("&token={token}",""),f.add(new t.f2(e))))},s:function(){return!0},w:function(n,i,r){for(var u,e,o=new t.gj,f=n;f>0;--f)u="0",e=1<<f-1,(i&e)!=0&&u++,(r&e)!=0&&(u++,u++),o.c(u);return o.b()},y:function(i,r){var u=i,f,e;(r.f()==t.$gi.subDomainsProperty||r.f()==t.$gi.tilePathProperty|r.f()==t.$gi.cultureNameProperty)&&(r.f()==t.$gi.subDomainsProperty&&(f=n.ig.util.cast(t.$b.$type.specialize(String),r.d()),e=n.ig.util.cast(t.$b.$type.specialize(String),r.c()),f!=null&&(f.collectionChanged=n.ig.Delegate.prototype.remove(f.collectionChanged,u.z.runOn(u))),e!=null&&(e.collectionChanged=n.ig.Delegate.prototype.combine(e.collectionChanged,u.z.runOn(u)))),r.f()==t.$gi.cultureNameProperty&&(u.u=r.c()),u.r(0,0,0,0))},$type:new n.ig.Type("BingMapsTileSource",t.$gh.$type)},!0);n.ig.util.defType("CloudMadeTileSource:gk","MapTileSource",{s:null,init:function(){t.$gh.init.call(this,134217728,134217728,256,256,0);this.s=new t.be},key:function(n){return arguments.length===1?(this.g(t.$gk.keyProperty,n),n):this.c(t.$gk.keyProperty)},parameter:function(n){return arguments.length===1?(this.g(t.$gk.parameterProperty,n),n):this.c(t.$gk.parameterProperty)},q:function(n,i,r,u){var e=this,s=n-8,o,f;s>0&&(o=function(){var n=[];return n.add("a"),n.add("b"),n.add("c"),n}(),f=t.$gk.x,f=f.replace("{S}",o[e.s.b(o.length)]),f=f.replace("{K}",e.key()==null?"":e.key()),f=f.replace("{P}",e.parameter()==null?"":e.parameter()),f=f.replace("{Z}",s.toString()),f=f.replace("{X}",i.toString()),f=f.replace("{Y}",r.toString()),u.add(new t.f2(f)))},y:function(n,i){var r=n;i.f()==t.$gk.parameterProperty&&r.r(0,0,0,0)},$type:new n.ig.Type("CloudMadeTileSource",t.$gh.$type)},!0);n.ig.util.defType("OpenStreetMapTileSource:gl","MapTileSource",{init:function(){t.$gh.init.call(this,134217728,134217728,256,256,0)},q:function(n,i,r,u){var e=n-8,f;e>0&&(f=t.$gl.s,f=f.replace("{Z}",e.toString()),f=f.replace("{X}",i.toString()),f=f.replace("{Y}",r.toString()),u.add(new t.f2(f)))},$type:new n.ig.Type("OpenStreetMapTileSource",t.$gh.$type)},!0);n.ig.util.defType("ArrayUtil:gm","Object",{init:function(){n.ig.$op.init.call(this)},shuffle$1:function(){var r,n,i,u;if(this!=null)for(r=new t.be,n=this.count()-1;n>0;--n)i=r.b(n),u=this.item(n),this.item(n,this.item(i)),this.item(i,u)},insertionIndex$11:function(t,i){for(var u=-1,f=0,e=this.count(),r;u==-1;)if(e<=f)u=f;else{r=n.ig.intDivide(f+e,2);switch(Math.sign(i.compareTo(this.item(r)))){case-1:e=r;break;case 0:u=r;break;case 1:f=r+1}}return u},insertionIndex$1:function(t,i,r){for(var f=-1,e=0,o=this.count(),u;f==-1;)if(o<=e)f=e;else{u=n.ig.intDivide(e+o,2);switch(Math.sign(i(r,this.item(u)))){case-1:o=u;break;case 0:f=u;break;case 1:e=u+1}}return f},binarySearch$1:function(n,t){for(var i=0,u=this.count()-1,r,f;i<=u;)if(r=i+(u-i>>1),f=t(this.item(r)),f<0)u=r-1;else if(f>0)i=r+1;else return r;return~i},$type:new n.ig.Type("ArrayUtil",n.ig.$ot)},!0);n.ig.util.defType("BrushUtil:go","Object",{init:function(){n.ig.$op.init.call(this)},getLightened:function(n){var i=this,r,u,f,e;if(i==null)return i;if(i._isGradient){for(r=i.clone(),u=0;u<r._gradientStops.length;u++)f=r._gradientStops[u],f.color(f.color().getLightened(n));return r}return e=i.color().getLightened(n),function(){var n=new t.a4;return n.color(e),n}()},g:function(n,i,r,u){var a=this,h=new t.a4,c,l;if(n==null&&r==null)return h.__fill="transparent",h;var f=null,e=null,o=null,s=null;return(n==null?(c=r._isGradient?function(){var n=new t.a5;return n.f(0),n.i(255),n.h(255),n.g(255),n}():function(){var n=new t.a5;return n.f(0),n.i(r.color().i()),n.h(r.color().h()),n.g(r.color().g()),n}(),f=function(){var n=new t.a4;return n.color(c),n}()):n._isGradient?o=n:f=n,r==null?(l=n._isGradient?function(){var n=new t.a5;return n.f(0),n.i(255),n.h(255),n.g(255),n}():function(){var i=new t.a5;return i.f(0),i.i(n.color().i()),i.h(n.color().h()),i.g(n.color().g()),i}(),e=function(){var n=new t.a4;return n.color(l),n}()):r._isGradient?s=r:e=r,f!=null&&e!=null)?t.$go.k(f,i,e,u):f!=null&&s!=null?t.$go.j(f,i,s,u):o!=null&&e!=null?t.$go.j(e,1-i,o,u):o!=null&&s!=null?t.$go.i(o,i,s,u):h},k:function(n,i,r,u){var f=new t.a4;return f.color(n.color().getInterpolation(i,r.color(),u)),f},j:function(n,i,r,u){var f=new t.eu;return f._gradientStops=t.$go.e(n.color(),i,r._gradientStops,u),r._useCustomDirection&&(f._useCustomDirection=!0,f._startX=r._startX,f._startY=r._startY,f._endX=r._endX,f._endY=r._endY),f},i:function(n,i,r,u){var f=new t.eu;return f._gradientStops=t.$go.d(n._gradientStops,i,r._gradientStops,u),(n._useCustomDirection||r._useCustomDirection)&&(f._useCustomDirection=!0,f._startX=n._startX+i*(r._startX-n._startX),f._startY=n._startY+i*(r._startY-n._startY),f._endX=(1-i)*n._endX+i*r._endX,f._endY=(1-i)*n._endY+i*r._endY),f},e:function(n,i,r,u){for(var o=this,e=new Array(r.length),f=0;f<r.length;++f)e[f]=function(){var e=new t.ev;return e._offset=r[f]._offset,e.color(n.getInterpolation(i,r[f].color(),u)),e}();return e},d:function(n,i,r,u){for(var h=this,o=Math.min(n.length,r.length),s=Math.max(n.length,r.length),e=new Array(s),f=0;f<o;++f)e[f]=function(){var e=new t.ev;return e._offset=(1-i)*n[f]._offset+i*r[f]._offset,e.color(n[f].color().getInterpolation(i,r[f].color(),u)),e}();for(;f<n.length;++f)e[f]=function(){var e=new t.ev;return e._offset=(1-i)*n[f]._offset+i*r[r.length-1]._offset,e.color(n[f].color().getInterpolation(i,r[r.length-1].color(),u)),e}();for(;f<r.length;++f)e[f]=function(){var e=new t.ev;return e._offset=(1-i)*n[n.length-1]._offset+i*r[f]._offset,e.color(n[n.length-1].color().getInterpolation(i,r[f].color(),u)),e}();return e},c:function(n,i){var r=new Array(2),u,f;return i.addClass(n),u=new t.a4,u.__fill=i.css("background-color"),f=new t.a4,f.__fill=i.css("border-top-color"),i.removeClass(n),r[0]=u,r[1]=f,r},a:function(i,r,u,f,e){var b=this,o,l,s,a,v,y,h,c,p,w;if(u=new t.a,f=new t.a,l=new t.c(String,0),l.add("background-color"),l.add("border-top-color"),s=t.$gp.g(),a=!1,r!=null?(r.append(s),a=!jQuery.contains(document.documentElement,r[0]),a&&n("body").append(r)):n("body").append(s),v=t.$gp.d(s,"ui-"+i+"-palette-",l),y=v.count(),y==0)for(e==null&&(e=function(){var n=[];return n.add("#B1BFC9"),n.add("#50a8be"),n.add("#798995"),n.add("#fc6754"),n.add("#4F606C"),n.add("#fec33c"),n.add("#374650"),n.add("#3c6399"),n.add("#162C3B"),n.add("#91af49"),n}()),h=0;h<e.length-1;h+=2)o=new t.a4,o.__fill=e[h],f.add(o),o=new t.a4,o.__fill=e[h+1],u.add(o);for(c=0;c<y;c++)p=new t.a4,p.__fill=v.__inner[c].__inner[0],w=new t.a4,w.__fill=v.__inner[c].__inner[1],u.add(p),f.add(w);return s.remove(),a&&r.remove(),{brushes:u,outlines:f}},b:function(i,r,u,f,e,o,s){var st=this,c,v,h,p,w,k,it,d,g,nt,rt,tt,ut;e=new t.a;o=new t.a;s==null&&(s=function(){var n=[];return n.add("#B1BFC9"),n.add("#50a8be"),n.add("#798995"),n.add("#fc6754"),n.add("#4F606C"),n.add("#fec33c"),n.add("#374650"),n.add("#3c6399"),n.add("#162C3B"),n.add("#91af49"),n}());c=t.$gp.g();v=!1;f!=null?(f.append(c),v=!jQuery.contains(document.documentElement,f[0]),v&&n("body").append(f)):n("body").append(c);h=new t.c(String,0);h.add("background-image");var ft=t.$gp.d(c,i,h),l=ft.count(),et=t.$gp.d(c,r,h),y=et.count();for(p=0;p<l;p++)e.add(t.$gq.d(ft.__inner[p].__inner[0]));for(w=0;w<y;w++)o.add(t.$gq.d(et.__inner[w].__inner[0]));h.clear();var ot=0,a=Math.min(l,y),b=null;if(l==0&&h.add("background-color"),y==0&&(h.add("border-top-color"),ot=l==0?1:0),h.count()>0&&(b=t.$gp.d(c,u,h),a=b.count()),l==0)if(a>0)for(k=0;k<a;k++)it=new t.a4,it.__fill=b.__inner[k].__inner[0],e.add(it);else for(d=0;d<s.length-1;d+=2)g=new t.a4,g=new t.a4,g.__fill=s[d+1],e.add(g);if(y==0)if(a>0)for(nt=0;nt<a;nt++)rt=new t.a4,rt.__fill=b.__inner[nt].__inner[ot],o.add(rt);else for(tt=0;tt<s.length-1;tt+=2)ut=new t.a4,ut.__fill=s[tt],o.add(ut);return c.remove(),v&&f.remove(),{brushes:e,outlines:o}},f:function(i,r,u,f,e){var o=null,s=t.$gp.g(),h=!1,c,l;return f!=null?(f.append(s),h=!jQuery.contains(document.documentElement,f[0]),h&&n("body").append(f)):n("body").append(s),c=t.$gp.q(s,i,"background-image"),c!=null&&(o=t.$gq.d(c)),o==null&&(o=new t.a4,l=t.$gp.q(s,r,u),o.__fill=l!=null?l:e),s.remove(),h&&f.remove(),o},$type:new n.ig.Type("BrushUtil",n.ig.$ot)},!0);n.ig.util.defType("Clipper:gr","Object",{i:function(n){if(arguments.length===1){this.b!=null&&this.b.clear();this.b=null;this.h=n;var t=this.h;return this.c!=null&&(this.c.dst(t),t=this.c,this.b=this.c),this.a!=null&&(this.a.dst(t),t=this.a,this.a.__nextClipper=this.b,this.b=this.a),this.d!=null&&(this.d.dst(t),t=this.d,this.d.__nextClipper=this.b,this.b=this.d),this.e!=null&&(this.e.dst(t),t=this.e,this.e.__nextClipper=this.b,this.b=this.e),this.g=t,n}return this.h},g:null,b:null,h:null,c:null,a:null,d:null,e:null,init:function(i,r,u){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}var f=this;n.ig.$op.init.call(this);this.c=function(){var n=new t.gt;return n._edge=r.left(),n._isClosed=u,n}();this.a=function(){var n=new t.gu;return n._edge=r.bottom(),n._isClosed=u,n}();this.d=function(){var n=new t.gv;return n._edge=r.right(),n._isClosed=u,n}();this.e=function(){var n=new t.gw;return n._edge=r.top(),n._isClosed=u,n}()},init1:function(i,r,u,f,e,o){var s=this;n.ig.$op.init.call(this);this.c=isNaN(r)?null:function(){var n=new t.gt;return n._edge=r,n._isClosed=o,n}();this.a=isNaN(u)?null:function(){var n=new t.gu;return n._edge=u,n._isClosed=o,n}();this.d=isNaN(f)?null:function(){var n=new t.gv;return n._edge=f,n._isClosed=o,n}();this.e=isNaN(e)?null:function(){var n=new t.gw;return n._edge=e,n._isClosed=o,n}()},j:function(n){this.g.add(n)},f:function(n){return arguments.length===1?(this.c!=null&&(this.c._isClosed=n),this.a!=null&&(this.a._isClosed=n),this.d!=null&&(this.d._isClosed=n),this.e!=null&&(this.e._isClosed=n),n):(this.c==null||this.c._isClosed)&&(this.a==null||this.a._isClosed)&&(this.d==null||this.d._isClosed)&&(this.e==null||this.e._isClosed)},$type:new n.ig.Type("Clipper",n.ig.$ot)},!0);n.ig.util.defType("EdgeClipper:gs","Object",{init:function(){n.ig.$op.init.call(this);this.c=!0;this.f=!1},dst:function(n){return arguments.length===1?(this._dst!=n&&(this.c=!0,this._dst=n),n):this._dst},_dst:null,__nextClipper:null,nextClipper:function(n){return arguments.length===1?(this.__nextClipper=n,n):this.__nextClipper},c:!1,j:null,l:null,g:!1,_isClosed:!1,f:!1,add:function(n){var t=this.e(n);this.c?(this.c=!1,this.j=n):!0&&(t?(this.g?this._isClosed||this.f||(this.dst().add(this.l),this.f=!0):this.dst().add(this.k(this.l,n)),this.dst().add(n)):this.g&&(this._isClosed||this.f||(this.dst().add(this.l),this.f=!0),this.dst().add(this.k(this.l,n))));this.l=n;this.g=t},clear:function(){this._isClosed&&!this.c&&this.add(this.j);this.__nextClipper!=null&&this.__nextClipper.clear();this.c=!0;this.f=!1},e:function(){},k:function(){},getEnumerator:function(){return null},isReadOnly:function(){return!1},count:function(){return 0},remove:function(){return!1},removeAt:function(){},copyTo:function(){},contains:function(){return!1},item:function(t,i){return arguments.length===2?i:{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},insert:function(){},indexOf:function(){return-1},$type:new n.ig.Type("EdgeClipper",n.ig.$ot,[t.$z.$type.specialize(t.$bm.$type)])},!0);n.ig.util.defType("LeftClipper:gt","EdgeClipper",{init:function(){t.$gs.init.call(this)},_edge:0,e:function(n){return n.__x>=this._edge},k:function(t,i){return{__x:this._edge,__y:t.__y+(i.__y-t.__y)*(this._edge-t.__x)/(i.__x-t.__x),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},$type:new n.ig.Type("LeftClipper",t.$gs.$type)},!0);n.ig.util.defType("BottomClipper:gu","EdgeClipper",{init:function(){t.$gs.init.call(this)},_edge:0,e:function(n){return n.__y<=this._edge},k:function(t,i){return{__x:t.__x+(i.__x-t.__x)*(this._edge-t.__y)/(i.__y-t.__y),__y:this._edge,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},$type:new n.ig.Type("BottomClipper",t.$gs.$type)},!0);n.ig.util.defType("RightClipper:gv","EdgeClipper",{init:function(){t.$gs.init.call(this)},_edge:0,e:function(n){return n.__x<=this._edge},k:function(t,i){return{__x:this._edge,__y:t.__y+(i.__y-t.__y)*(this._edge-t.__x)/(i.__x-t.__x),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},$type:new n.ig.Type("RightClipper",t.$gs.$type)},!0);n.ig.util.defType("TopClipper:gw","EdgeClipper",{init:function(){t.$gs.init.call(this)},_edge:0,e:function(n){return n.__y>=this._edge},k:function(t,i){return{__x:t.__x+(i.__x-t.__x)*(this._edge-t.__y)/(i.__y-t.__y),__y:this._edge,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},$type:new n.ig.Type("TopClipper",t.$gs.$type)},!0);n.ig.util.defType("ColorUtil:bi","Object",{init:function(){n.ig.$op.init.call(this)},p:function(n){return t.$a5.n(n,t.$bi.f.c(0,255),t.$bi.f.c(0,255),t.$bi.f.c(0,255))},q:function(n){var i=n.getAHSV();return t.$bi.j(i[0],t.$bi.f.c(0,359),i[2],i[3])},getInterpolation:function(n,i,r){var f=this;switch(r){case 1:var u=this.getAHSV(),e=i.getAHSV(),o=u[1]>=0?u[1]:e[1],s=e[1]>=0?e[1]:u[1];return o>=0&&s>=0&&Math.abs(s-o)>180&&(s>o?o+=360:s+=360),n=Math.max(0,Math.min(1,n)),t.$bi.j(u[0]+n*(e[0]-u[0]),o+n*(s-o),u[2]+n*(e[2]-u[2]),u[3]+n*(e[3]-u[3]));case 0:return t.$a5.n(f.__a+n*(i.__a-f.__a),f.__r+n*(i.__r-f.__r),f.__g+n*(i.__g-f.__g),f.__b+n*(i.__b-f.__b))}return this},k:function(n,i,r){var u=n[1]>=0?n[1]:r[1],f=r[1]>=0?r[1]:n[1];return u>=0&&f>=0&&Math.abs(f-u)>180&&(f>u?u+=360:f+=360),i=Math.max(0,Math.min(1,i)),t.$bi.j(n[0]+i*(r[0]-n[0]),u+i*(f-u),n[2]+i*(r[2]-n[2]),n[3]+i*(r[3]-n[3]))},getLightened:function(n){var i=this.getAHSL();return n<0?t.$bi.i(i[0],i[1],i[2],i[3]*(1-t.$bf.c(-n,0,1))):t.$bi.i(i[0],i[1],i[2],i[3]+t.$bf.c(n,0,1)*(1-i[3]))},getAHSL:function(){var n=new Array(4),f=this.i()/255,e=this.h()/255,o=this.g()/255,r=Math.min(Math.min(f,e),o),i=Math.max(Math.max(f,e),o),u=i-r;return n[0]=this.f()/255,n[3]=(i+r)/2,u==0?(n[1]=-1,n[2]=0):(n[1]=t.$bi.d(i,u,f,e,o),n[2]=n[3]<.5?u/(i+r):u/(2-i-r)),n},getAHSV:function(){var o=this.f()/255,r=this.i()/255,u=this.h()/255,f=this.g()/255,s=Math.min(r,Math.min(u,f)),i=Math.max(r,Math.max(u,f)),e=i-s,n=new Array(4);return n[0]=o,n[3]=i,e==0?(n[1]=-1,n[2]=0):(n[1]=t.$bi.d(i,e,r,u,f),n[2]=e/i),n},i:function(n,i,r,u){var e,o,s;if(r==0)e=u,o=u,s=u;else{var f=u<.5?u*(1+r):u+r-u*r,h=2*u-f,c=i/360;e=t.$bi.c(h,f,c+1/3);o=t.$bi.c(h,f,c);s=t.$bi.c(h,f,c-1/3)}return t.$a5.n(n*255,e*255,o*255,s*255)},j:function(n,i,r,u){for(var f,e,o;i>=360;)i-=360;if(r==0)f=u,e=u,o=u;else{i/=60;var l=Math.floor(i),a=i-l,s=u*(1-r),h=u*(1-r*a),c=u*(1-r*(1-a));switch(l){case 0:f=u;e=c;o=s;break;case 1:f=h;e=u;o=s;break;case 2:f=s;e=u;o=c;break;case 3:f=s;e=h;o=u;break;case 4:f=c;e=s;o=u;break;default:f=u;e=s;o=h}}return t.$a5.n(n*255,f*255,e*255,o*255)},d:function(n,t,i,r,u){var f=i==n?(r-u)/t:r==n?2+(u-i)/t:4+(i-r)/t;return f*=60,f<0&&(f+=360),f},c:function(n,t,i){return(i=i<0?i+1:i>1?i-1:i,i<1/6)?n+(t-n)*6*i:i<1/2?t:i<2/3?n+(t-n)*6*(2/3-i):n},h:function(){if(t.$bi.g==null){t.$bi.g=new Array(100);t.$bi.g[0]=t.$a5.n(255,70,130,180);t.$bi.g[1]=t.$a5.n(255,65,105,225);t.$bi.g[2]=t.$a5.n(255,100,149,237);t.$bi.g[3]=t.$a5.n(255,176,196,222);t.$bi.g[4]=t.$a5.n(255,123,104,238);t.$bi.g[5]=t.$a5.n(255,106,90,205);t.$bi.g[6]=t.$a5.n(255,72,61,139);t.$bi.g[7]=t.$a5.n(255,25,25,112);for(var n=8;n<100;n++)t.$bi.g[n]=t.$a5.n(255,t.$bi.f.b(255),t.$bi.f.b(255),t.$bi.f.b(255))}return t.$bi.g},o:function(n){return n%=100,t.$bi.h()[n]},e:function(n){var t=n.f()/255,i=n.i()*t,r=n.h()*t,u=n.g()*t;return n.f()<<24|i<<16|r<<8|u},l:function(n){return n.color()},$type:new n.ig.Type("ColorUtil",n.ig.$ot)},!0);n.ig.util.defType("CssGradientUtil:gq","Object",{init:function(){n.ig.$op.init.call(this)},d:function(n){var i,l,s=1,a=0,h,c,v=!1,r,e=n.match(/hsl\([\s\S]+?\)[\s\S]*?[,\)]|rgba?\([\s\S]+?\)[\s\S]*?[,\)]|[^\(\)]*?[,\)]/gim),u,o,f;if(e==null||e.length<=1)return null;for(u=new t.eu,h=e.length,i=e[0],i.contains("to")||i.contains("deg")?(l=t.$gq.b(i),u._useCustomDirection=!0,o=t.$gq.a(l),u._startX=o[0].__x,u._startY=o[0].__y,u._endX=o[1].__x,u._endY=o[1].__y,r=new Array(h-1)):(r=new Array(h),s=0);s<h;s++)f=new t.ev,i=e[s],i=i.replace(/^\s\s*/,"").replace(/\s\s*$/,"").replace(/[,\)]?$/,""),c=i.search(/\s*\d*%\s*$/),c!=-1?(f.__fill=i.substr(0,c),f._offset=parseFloat(i.substr(c+1))/100):(f.__fill=i,f._offset=-1,v=!0),r[a]=f,a++;return v&&(r[0]._offset==-1&&(r[0]._offset=0),r[r.length-1]._offset==-1&&(r[r.length-1]._offset=1),t.$gq.c(r),u._gradientStops=r),u},c:function(t){for(var u,o,c,r=-1,f=-1,s=0,h=!1,e,i=f+1;i<t.length;i++)if(e=t[i],e._offset!=-1){if(r=Math.max(r,e._offset),e._offset=r,h){for(o=1,c=n.ig.intDivide(r-s,i-f),u=f+1;u<i;u++)t[u]._offset=s+c*o,o++;h=!1}f=i;s=r}else h=!0},b:function(n){return n.contains("deg")?parseFloat(n):/to\s*top\s*/i.test(n)?0:/to\s*right\s*top\s*/i.test(n)?45:/to\s*right\s*/i.test(n)?90:/to\s*right\s*bottom\s*/i.test(n)?135:/to\s*bottom\s*/i.test(n)?180:/to\s*left\s*bottom\s*/i.test(n)?225:/to\s*left\s*/i.test(n)?270:/to\s*left\s*top\s*/i.test(n)?315:180},a:function(n){var f=new Array(2),r=new t.bm(0),u=new t.bm(0),i=t.$fe.e(n),e,o,s,h,c,l,a,v;return i>=0&&i<=45?(e=Math.tan(t.$bf.u(i)),r.__x=.5-.5*e,r.__y=1,u.__x=.5+.5*e,u.__y=0):i>180&&i<=225?(o=Math.tan(t.$bf.u(i-180)),r.__x=.5+.5*o,r.__y=0,u.__x=.5-.5*o,u.__y=1):i>135&&i<=180?(s=Math.tan(t.$bf.u(180-i)),r.__x=.5-.5*s,r.__y=0,u.__x=.5+.5*s,u.__y=1):i>315&&i<360?(h=Math.tan(t.$bf.u(360-i)),r.__x=.5+.5*h,r.__y=1,u.__x=.5-.5*h,u.__y=0):i>45&&i<=90?(c=Math.tan(t.$bf.u(90-i)),u.__y=.5-.5*c,u.__x=1,r.__y=.5+.5*c,r.__x=0):i>90&&i<=135?(l=Math.tan(t.$bf.u(i-90)),u.__y=.5+.5*l,u.__x=1,r.__y=.5-.5*l,r.__x=0):i>225&&i<=270?(a=Math.tan(t.$bf.u(270-i)),r.__y=.5-.5*a,r.__x=1,u.__y=.5+.5*a,u.__x=0):i>270&&i<=315&&(v=Math.tan(t.$bf.u(i-270)),r.__y=.5+.5*v,r.__x=1,u.__y=.5-.5*v,u.__x=0),f[0]=r,f[1]=u,f},$type:new n.ig.Type("CssGradientUtil",n.ig.$ot)},!0);n.ig.util.defType("CssHelper:gp","Object",{init:function(){n.ig.$op.init.call(this)},g:function(){var t=n("#fakediscoveryelementstyle"),i;return t.length==0&&(i="fakediscoveryelement\n{\n\tdisplay: block;\n   position: absolute;\n   box-sizing: content-box;\n   -moz-box-sizing: content-box;\n\tmargin: -4321px;\n\tcolor: rgb(3, 2, 1);\n   border-style: solid;\n   border-color: rgb(3, 2, 1);\n   background-color: rgb(3, 2, 1);\n   background-image: none;\n   border-width: 4321px;\n   border-radius: 4321px;\n   vertical-align: baseline;\n   text-align: justify;\n   opacity: 0.888;\n   visibility: hidden;\n   width: 4321px;\n   height: 4321px;\n}\n",t=n("<style id='fakediscoveryelementstyle'><\/style>"),t.html(i),n("head").append(t)),n("<fakediscoveryelement><\/fakediscoveryelement>")},p:function(n){return n=="color"||n=="border-color"||n=="border-top-color"||n=="border-left-color"||n=="border-right-color"||n=="border-bottom-color"||n=="background-color"?"rgb(3, 2, 1)":n=="margin-left"||n=="margin-top"||n=="margin-right"||n=="margin-bottom"?"-4321px":n=="vertical-align"?"baseline":n=="opacity"?"0.888":n=="background-image"?"none":n=="text-align"?"justify":n=="visibility"?"hidden":t.$gp.c(n)?"4321px":"DEFAULT"},f:function(n,i,r){for(var o=t.$gp.p(r),u=1,f,e;!0&&u<500;){if(f=i+u.toString(),n.addClass(f),e=n.css(r),e==o)break;u++}return u},q:function(n,i,r){n.addClass(i);var u=n.css(r);return(n.removeClass(i),r=="opacity"&&(u=Math.round(1e3*u)/1e3),t.$gp.a(u,t.$gp.p(r),r))?null:u},a:function(n,i,r){var u,f,e,o;return n==i?!0:t.$gp.c(r)&&n!=null&&n.contains("px")?(u=n.replace("px",""),f=parseFloat(u),Math.abs(Math.round(f)-4321)<2)?!0:!1:t.$gp.b(r)&&n!=null&&n.contains("px")?(e=n.replace("px",""),o=parseFloat(e),Math.abs(Math.round(o)+4321)<2)?!0:!1:n==i},c:function(n){return n=="width"||n=="height"||n=="border-top-width"||n=="border-left-width"||n=="border-right-width"||n=="border-bottom-width"||n=="border-top-left-radius"},b:function(n){return n=="margin-top"||n=="margin-left"||n=="margin-right"||n=="margin-bottom"},d:function(n,i,r){for(var c=new t.c(t.$c.$type.specialize(String),0),f=1,e=!1,o,s,u;!e&&f<500;){for(o=i+f.toString(),n.addClass(o),s=new t.c(String,0),u=0;u<r.count();u++){var h=r.__inner[u],a=t.$gp.p(h),l=n.css(h);if(t.$gp.a(l,a,h)){e=!0;break}s.add(l)}n.removeClass(o);e||c.add(s);f++}return c},$type:new n.ig.Type("CssHelper",n.ig.$ot)},!0);n.ig.util.defType("EasingFunctions:gx","Object",{init:function(){n.ig.$op.init.call(this)},cubicEase:function(n){return(n/=1/2,n<1)?1/2*n*n*n+0:(n-=2,1/2*(n*n*n+2)+0)},$type:new n.ig.Type("EasingFunctions",n.ig.$ot)},!0);n.ig.util.defType("FontUtil:gy","Object",{init:function(){n.ig.$op.init.call(this)},b:function(t){var i=n("<span>M<\/span>"),u=n("body"),r;return u.append(i),i.css("font",t),r=i.attr("offsetHeight"),isNaN(r)&&(r=i[0].offsetHeight),i.remove(),parseInt(r)},c:function(n){var t=String.empty(),r=n.css("font-style"),u=n.css("font-variant"),f=n.css("font-weight"),e=n.css("font-size"),o=n.css("line-height"),s=n.css("font-family"),i=!0;return r.length>0&&(i?i=!1:t+=" ",t+=r),u.length>0&&(i?i=!1:t+=" ",t+=u),f.length>0&&(i?i=!1:t+=" ",t+=f),e.length>0&&(i?i=!1:t+=" ",t+=e),o.length>0&&(i?i=!1:t+="/",t+=o),s.length>0&&(i?i=!1:t+=" ",t+=s),t},a:function(i,r){var f=new t.gz,e=r,u=n("<div><\/div>");u.css("font",e);var o=u.css("font-style"),s=u.css("font-variant"),h=u.css("font-weight"),c=u.css("font-size"),l=u.css("line-height"),a=u.css("font-family");return u=null,f.c(a.replace("'","")),f.e(t.$gy.d(o)),f.g(t.$gy.d(h.toString())),f.f(s),f.b(parseFloat(l)),f.a(parseFloat(c)),f},d:function(n){if(String.isNullOrEmpty(n))return String.empty();var t=n.substr(0,1).toUpperCase();return n.length>1&&(t+=n.substr(1)),t},$type:new n.ig.Type("FontUtil",n.ig.$ot)},!0);n.ig.util.defType("FontInfo:gz","Object",{init:function(){n.ig.$op.init.call(this);this.a(NaN);this.b(NaN)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},$type:new n.ig.Type("FontInfo",n.ig.$ot)},!0);n.ig.util.defType("DoubleAnimator:fw","Object",{needsFlush:function(){return this.transitionProgress()==0},flush:function(){this.x(!0)},k:0,transitionProgress:function(n){return arguments.length===1?(this.k=n,this.propertyChanged!=null&&this.propertyChanged(this,new t.a1("TransitionProgress")),n):this.k},q:0,intervalMilliseconds:function(n){return arguments.length===1?(this.q=n,n):this.q},a:null,easingFunction:function(n){return arguments.length===1?(this.a=n,n):this.a},i:0,j:0,l:function(n){return arguments.length===1?(this.i=n,n):this.i},n:function(n){return arguments.length===1?(this.j=n,n):this.j},init:function(t,i,r){this.a=null;this.i=0;this.j=0;this.d=!1;this.p=-1;this.r=0;n.ig.$op.init.call(this);this.i=t;this.j=i;this.q=r;this.c(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){window.setTimeout(n,1e3/60)})},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},d:!1,e:function(n){return arguments.length===1?(this.d=n,n):this.d},start:function(){this.k=0;this.r=0;this.h=t.$ap.now();this.d||(this.d=!0,this.c()(this.tick.runOn(this)))},stop:function(){this.d=!1;this.k=0;this.r=0},h:null,p:0,r:0,tick:function(){this.x(!1)},x:function(n){var u,i,r,f;if(!this.d){this.stop();return}if(u=t.$ap.now(),i=u.getTime()-this.h.getTime(),i>this.q&&(i=this.q),i-this.r<16&&i!=this.q&&!n){this.c()(this.tick.runOn(this));return}this.r=i;r=i/this.q;this.a!=null&&(r=this.a(r));f=this.i+(this.j-this.i)*r;n||(i==this.q?this.stop():this.c()(this.tick.runOn(this)));this.transitionProgress(f)},getElapsedMilliseconds:function(){return this.d?t.$ap.now().getTime()-this.h.getTime():0},animationActive:function(){return this.d},propertyChanged:null,$type:new n.ig.Type("DoubleAnimator",n.ig.$ot,[t.$az.$type])},!0);n.ig.util.defType("Extensions:g0","Object",{init:function(){n.ig.$op.init.call(this)},reset1:function(){this.b().clear();this.b().add(new t.e8);this.b().removeAt(0)},reset:function(){this.c().clear();this.c().add(new t.ez);this.c().removeAt(0)},detach:function(){var i,r;if(this!=null){if(i=n.ig.util.cast(t.$g1.$type,this.u()),i!=null){i.y().remove(this);return}if(r=n.ig.util.cast(t.$d7.$type,this.u()),r!=null){r.content(null);return}}},transferChildrenTo:function(n){for(var u=new t.c(t.$cl.$type,0),f=this.y().ofType$1(t.$cl.$type).getEnumerator(),e,i,r;f.moveNext();)e=f.current(),u.add(e);for(i=u.getEnumerator();i.moveNext();)r=i.current(),this.y().remove(r),n.y().add(r)},isPlottable:function(){return!isNaN(this.__x)&&!isNaN(this.__y)&&!Number.isInfinity(this.__x)&&!Number.isInfinity(this.__y)},isPlottable1:function(){return!isNaN(this.left())&&!isNaN(this.right())&&!isNaN(this.top())&&!isNaN(this.bottom())&&!Number.isInfinity(this.left())&&!Number.isInfinity(this.right())&&!Number.isInfinity(this.top())&&!Number.isInfinity(this.bottom())},$type:new n.ig.Type("Extensions",n.ig.$ot)},!0);n.ig.util.defType("Flattener:g6","Object",{init:function(){n.ig.$op.init.call(this)},g:function(n,i,r,u,f){var ut=this,b,v;(isNaN(f)||f<=0)&&(f=1);var a=new t.c(Number,0),c=new t.f6(t.$g7.$type),o=(u-i)/(r-n),l=i-o*n,k=o*o,d=l*l,g=l*o;for(c.push(function(){var n=new t.g7;return n.a=0,n.b=1,n}());c.count()!=0;){var e=c.pop(),nt=i+e.a*(u-i),s=n+e.a*(r-n),y=s*s,tt=y*s,it=i+e.b*(u-i),h=n+e.b*(r-n),p=h*h,rt=p*h,w;w=o==0?d*(h-s)/2+g*(p-y)/2+k*(rt-tt)/6:(Math.pow(l+o*h,3)-Math.pow(l+o*s,3))/(6*o);b=.5*nt*it*Math.sin(h-s);w-b>f?(v=.5*(e.a+e.b),c.push(function(){var n=new t.g7;return n.a=v,n.b=e.b,n}()),c.push(function(){var n=new t.g7;return n.a=e.a,n.b=v,n}())):a.add(e.a)}return a.add(1),a},f:function(i,r,u,f){var e=new t.c(n.ig.Number.prototype.$type,0);return t.$g6.d(e,r,u,0,i-1,f),e},d:function(n,i,r,u,f,e){var o=this;return t.$g6.e(n,function(n){return n},i,r,u,f,e)},c:function(n,i,r,u,f,e,o){var s=this;return t.$g6.e(n,function(n){return i.item(n)},r,u,f,e,o)},e:function(n,i,r,u,f,e,o){var s,h,c,l;if(f>e)return n;for(s=r(i(f)),h=u(i(f));(isNaN(s)||isNaN(h))&&f<e;)++f,s=r(i(f)),h=u(i(f));for(c=r(i(e)),l=u(i(e));(isNaN(c)||isNaN(l))&&f<e;)--e,c=r(i(e)),l=u(i(e));return f==e?(n.add(i(f)),n):(n.add(i(f)),t.$g6.n(n,i,r,u,f,e,o),n.add(i(e)),n)},h:function(n,i,r,u,f,e){var o,s,h,c;if(u>f)return n;for(o=i[u],s=r[u];(isNaN(o)||isNaN(s))&&u<f;)++u,o=i[u],s=r[u];for(h=i[f],c=r[f];(isNaN(h)||isNaN(c))&&u<f;)--f,h=i[f],c=r[f];return u==f?(n.add(u),n):(n.add(u),t.$g6.l(n,i,r,u,f,e),n.add(f),n)},a:function(n,i,r,u,f){var e,o;return r?(e=0,o=1):u?(e=0,o=2):(e=2,o=3),t.$g6.b(n,i,e,o,f)},b:function(i,r,u,f,e){var o=new t.c(n.ig.Number.prototype.$type,0);return t.$g6.j(o,r,u,f,0,i-1,e),o},i:function(n,i,r,u,f,e,o){var s,h;return r?(s=0,h=1):u?(s=0,h=2):(s=2,h=3),t.$g6.j(n,i,s,h,f,e,o)},j:function(n,i,r,u,f,e,o){var s,c,l,h,a,v;if(f>e)return n;for(s=i.__inner[f],c=s[r],l=s[u];(isNaN(c)||isNaN(l))&&f<e;)++f,s=i.__inner[f],c=s[r],l=s[u];for(h=i.__inner[e],a=h[r],v=h[u];(isNaN(a)||isNaN(v))&&f<e;)--e,h=i.__inner[e],a=h[r],v=h[u];return f==e?(n.add(f),n):(n.add(f),t.$g6.m(n,i,r,u,f,e,o),n.add(e),n)},l:function(n,i,r,u,f,e){for(var c=i[u],l=r[u],a,v,y,w,o,s,ot,p,tt,it,rt,b,k,h,d,g,ft,et;(isNaN(c)||isNaN(l))&&u<f;)++u,c=i[u],l=r[u];for(a=i[f],v=r[f];(isNaN(a)||isNaN(v))&&u<f;)--f,a=i[f],v=r[f];if(!(u+1>=f)){if(y=-1,w=e*e,o=a-c,s=v-l,ot=o*o+s*s,ot==0)for(p=u+1;p<f;++p)(tt=i[p],it=r[p],isNaN(tt)||isNaN(it))||(o=a-tt,s=v-it,rt=o*o+s*s,rt>=w&&(w=rt,y=p));else for(b=a-c,k=v-l,h=u+1;h<f;++h)if(d=i[h],g=r[h],!isNaN(d)&&!isNaN(g)){var nt=NaN,st=i[h]-c,ht=r[h]-l,ut=b*st+k*ht;ut<=0?(o=c-d,s=l-g,nt=o*o+s*s):(ft=b*b+k*k,ft<=ut?(o=a-d,s=v-g,nt=o*o+s*s):(et=ut/ft,o=c+et*b-d,s=l+et*k-g,nt=o*o+s*s));nt>=w&&(w=nt,y=h)}y!=-1&&(t.$g6.l(n,i,r,u,y,e),n.add(y),t.$g6.l(n,i,r,y,f,e));return}},m:function(n,i,r,u,f,e,o){for(var k=i.__inner[f],b,a,v,y,d,s,h,at,g,et,ut,ft,ot,nt,tt,it,st,p,w,ct,lt,c=k[r],l=k[u];c!=c||l!=l&&f<e;)++f,k=i.__inner[f],c=k[r],l=k[u];for(b=i.__inner[e],a=b[r],v=b[u];a!=a||v!=v&&f<e;)--e,b=i.__inner[e],a=b[r],v=b[u];if(!(f+1>=e)){if(y=-1,d=o*o,s=a-c,h=v-l,at=s*s+h*h,at==0)for(g=f+1;g<e;++g)(et=i.__inner[g],ut=et[r],ft=et[u],ut==ut&&ft==ft)&&(s=a-ut,h=v-ft,ot=s*s+h*h,ot>=d&&(d=ot,y=g));else for(nt=a-c,tt=v-l,it=f+1;it<e;++it)if(st=i.__inner[it],p=st[r],w=st[u],p==p&&w==w){var rt=NaN,vt=p-c,yt=w-l,ht=nt*vt+tt*yt;ht<=0?(s=c-p,h=l-w,rt=s*s+h*h):(ct=nt*nt+tt*tt,ct<=ht?(s=a-p,h=v-w,rt=s*s+h*h):(lt=ht/ct,s=c+lt*nt-p,h=l+lt*tt-w,rt=s*s+h*h));rt>=d&&(d=rt,y=it)}y!=-1&&(t.$g6.m(n,i,r,u,f,y,o),n.add(y),t.$g6.m(n,i,r,u,y,e,o));return}},n:function(n,i,r,u,f,e,o){for(var h=r(i(f)),c=u(i(f)),l,a,y,nt,tt,it,p,w,s,b,k,ut,ft;(isNaN(h)||isNaN(c))&&f<e;)++f,h=r(i(f)),c=u(i(f));for(l=r(i(e)),a=u(i(e));(isNaN(l)||isNaN(a))&&f<e;)--e,l=r(i(e)),a=u(i(e));if(!(f+1>=e)){var v=-1,g=o,et=t.$bf.j(l-h,a-c);if(et==0)for(y=f+1;y<e;++y)(nt=r(i(y)),tt=u(i(y)),isNaN(nt)||isNaN(tt))||(it=t.$bf.j(l-nt,a-tt),it>=g&&(g=it,v=y));else for(p=l-h,w=a-c,s=f+1;s<e;++s)if(b=r(i(s)),k=u(i(s)),!isNaN(b)&&!isNaN(k)){var d=NaN,ot=r(i(s))-h,st=u(i(s))-c,rt=p*ot+w*st;rt<=0?d=t.$bf.j(h-b,c-k):(ut=p*p+w*w,ut<=rt?d=t.$bf.j(l-b,a-k):(ft=rt/ut,d=t.$bf.j(h+ft*p-b,c+ft*w-k)));d>=g&&(g=d,v=s)}v!=-1&&(t.$g6.n(n,i,r,u,f,v,o),n.add(i(v)),t.$g6.n(n,i,r,u,v,e,o));return}},k:function(i,r,u){var h=new t.d3(0),w,d,k,g,nt,tt,it,rt;if(i<5){for(w=0;w<i;++w)h.add({__x:r(w),__y:u(w),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});return h}h.add({__x:r(0),__y:u(0),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});var ot=i-1,ut,o={__x:r(0),__y:u(0),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:r(1),__y:u(1),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},c={__x:r(2),__y:u(2),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ft,et,a={__x:f.__x-o.__x,__y:f.__y-o.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},s=t.$bf.j(a.__x,a.__y),l={__x:c.__x-f.__x,__y:c.__y-f.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},b=t.$bf.j(l.__x,l.__y),e,v,y=.1,p=.3;for(e={__x:c.__x-o.__x,__y:c.__y-o.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},d=t.$bf.j(e.__x,e.__y),e.__x/=d,e.__y/=d,v=.5+(a.__x*l.__x+a.__y*l.__y)/(2*s*b),h.add({__x:f.__x-e.__x*(y+p*v)*s,__y:f.__y-e.__y*(y+p*v)*s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h.add(f),k=1;k<ot-1;++k)ut=o,o=f,f=c,c={__x:r(k+2),__y:u(k+2),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ft=a,et=s,a=l,s=b,l={__x:c.__x-f.__x,__y:c.__y-f.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},b=t.$bf.j(l.__x,l.__y),g=e,nt=v,e={__x:c.__x-o.__x,__y:c.__y-o.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},tt=t.$bf.j(e.__x,e.__y),e.__x/=tt,e.__y/=tt,v=.5+(a.__x*l.__x+a.__y*l.__y)/(2*s*b),h.add({__x:o.__x+g.__x*(y+p*nt)*s,__y:o.__y+g.__y*(y+p*nt)*s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h.add({__x:f.__x-e.__x*(y+p*v)*s,__y:f.__y-e.__y*(y+p*v)*s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h.add(f);return ut=o,o=f,f=c,ft=a,et=s,a=l,s=b,it=e,rt=v,h.add({__x:o.__x+it.__x*(y+p*rt)*s,__y:o.__y+it.__y*(y+p*rt)*s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h.add(f),h},$type:new n.ig.Type("Flattener",n.ig.$ot)},!0);n.ig.util.defType("SpiralTodo:g7","Object",{init:function(){n.ig.$op.init.call(this)},a:0,b:0,$type:new n.ig.Type("SpiralTodo",n.ig.$ot)},!0);n.ig.util.defType("GeometryUtil:fe","Object",{init:function(){n.ig.$op.init.call(this)},e:function(n){if(isNaN(n)||Number.isInfinity(n))return n;while(n>360)n-=360;while(n<0)n+=360;return n},a:function(n){return Math.atan(n)},f:function(n,t){return(t.__y-n.__y)/(t.__x-n.__x)},b:function(n){return 1-Math.pow(n.height()/2,2)/Math.pow(n.width()/2,2)},k:function(t,i,r,u,f){var o=Math.cos(t),s=Math.sin(t),e=Math.sqrt(u*u/(1-i*Math.pow(o,2)));return e*=f,{__x:e*o+r.__x,__y:e*s+r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},g:function(i,r,u,f,e){return u?t.$fe.h({__x:i/2,__y:r/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f,e):{__x:i/2,__y:r/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},h:function(t,i,r){i=i/180*3.14159265358979;var u=t.__y+r*Math.sin(i),f=t.__x+r*Math.cos(i);return{__x:f,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},j:function(t,i,r){var u=i.__x-t.__x,f=i.__y-t.__y,e=Math.sqrt(u*u+f*f);return u=u/e*r,f=f/e*r,{__x:t.__x+u,__y:t.__y+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},d:function(n,t){var i=Math.abs(t.__x-n.__x),r=Math.abs(t.__y-n.__y);return Math.sqrt(i*i+r*r)},i:function(t,i,r,u,f){var a={__x:(t.__x+i.__x)/2,__y:(t.__y+i.__y)/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},s=i.__x-t.__x,h=i.__y-t.__y,p=Math.sqrt(s*s+h*h),e=h,o=s*-1,l;f==u&&(e=h*-1,o=s);l=Math.max(Math.abs(e),Math.abs(o));e=e/l;o=o/l;var v=Math.sqrt(e*e+o*o),w=e/v,b=o/v,y=p/2,c=Math.sqrt(r*r-y*y);isNaN(c)&&(c=0);var k=c*w,d=c*b;return{__x:a.__x+k,__y:a.__y+d,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},c:function(n,t){var r=Math.sqrt(Math.pow(t.__x-n.__x,2)+Math.pow(t.__y-n.__y,2)),i=Math.acos((t.__x-n.__x)/r);return t.__y-n.__y<0&&(i=2*3.14159265358979-i),i},l:function(i,r,u,f){var a=i.__x-u.__x,v=i.__y-u.__y,y=r.__x-u.__x,p=r.__y-u.__y,o=y-a,e=p-v,w=Math.sqrt(o*o+e*e),s=a*p-y*v,b=f*f,h=w*w,k=s*s,c=b*h-k,l;if(c<0)return new t.ff(t.$bm.$type,t.$bm.$type,{__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});l=1;e<0&&(l=-1);var d=(s*e+l*o*Math.sqrt(c))/h,g=(s*e-l*o*Math.sqrt(c))/h,nt=(-1*s*o+Math.abs(e)*Math.sqrt(c))/h,tt=(-1*s*o-Math.abs(e)*Math.sqrt(c))/h;return new t.ff(t.$bm.$type,t.$bm.$type,{__x:d+u.__x,__y:nt+u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:g+u.__x,__y:tt+u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("GeometryUtil",n.ig.$ot)},!0);n.ig.util.defType("InterpolationUtil:g8","Object",{init:function(){n.ig.$op.init.call(this)},a:function(i,r,u,f){var c=1-r,s,y,l,p,h;i==null&&(i=new t.c(t.$bm.$type,0));u==null&&(u=new t.c(t.$bm.$type,0));var e=u.count(),o=f.count(),a=Math.max(e,o),v=i.count();for(v<a&&i.insertRange(v,new Array(a-v)),v>a&&i.removeRange(a,v-a),s=0;s<Math.min(e,o);++s)i.__inner[s]={__x:u.__inner[s].__x*c+f.__inner[s].__x*r,__y:u.__inner[s].__y*c+f.__inner[s].__y*r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(e<o)for(y=e>0?u.__inner[e-1]:{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},l=e;l<o;++l)i.__inner[l]={__x:y.__x*c+f.__inner[l].__x*r,__y:y.__y*c+f.__inner[l].__y*r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(e>o)for(p=o>0?f.__inner[o-1]:{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},h=o;h<e;++h)i.__inner[h]=i.__inner[h]={__x:u.__inner[h].__x*c+p.__x*r,__y:u.__inner[h].__y*c+p.__y*r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return i},b:function(n,i,r,u,f,e,o){var y=1-r,p,w,c,b,a,k,v;i==null&&(i=new t.c(n,0));u==null&&(u=new t.c(n,0));var s=u.count(),h=f.count(),l=Math.max(s,h);for(i.count()<l&&(p=l-i.count(),w=new Array(p),i.insertRange(i.count(),w)),i.count()>l&&i.removeRange(l,i.count()-l),c=0;c<Math.min(s,h);++c)i.__inner[c]=o(r,y,u.__inner[c],f.__inner[c]);if(s<h)for(b=s>0?u.__inner[s-1]:e(),a=s;a<h;++a)i.__inner[a]=o(r,y,b,f.__inner[a]);if(s>h)for(k=h>0?f.__inner[h-1]:e(),v=h;v<s;++v)i.__inner[v]=o(r,y,u.__inner[v],k);return i},$type:new n.ig.Type("InterpolationUtil",n.ig.$ot)},!0);n.ig.util.defType("Numeric:ha","Object",{init:function(){n.ig.$op.init.call(this)},e:function(n,t,i,r,u){var f,o=n.count(),s=new Array(o),e;if(t.__inner[0]==0)return!1;for(e=t.__inner[0],u.__inner[0]=r.__inner[0]/e,f=1;f<o;f++){if(s[f]=i.__inner[f-1]/e,e=t.__inner[f]-n.__inner[f]*s[f],e==0)return!1;u.__inner[f]=(r.__inner[f]-n.__inner[f]*u.__inner[f-1])/e}for(f=o-2;f>=0;f--)u.__inner[f]-=s[f+1]*u.__inner[f+1];return!0},d:function(n,t){for(var l,o,s,h,nt,tt,k,w,f,d,a,u,c,it,r=n.getLength(0),v=new Array(r),y=new Array(r),p=new Array(r),b=0;b<r;b++)p[b]=0;for(l=0;l<r;l++){var g=0,e=0,i=0;for(o=0;o<r;o++)if(p[o]!=1)for(s=0;s<r;s++)p[s]==0&&Math.abs(n[o][s])>=g&&(g=Math.abs(n[o][s]),e=o,i=s);if(++p[i],e!=i){for(h=0;h<r;h++)nt=n[e][h],n[e][h]=n[i][h],n[i][h]=nt;tt=t[e];t[e]=t[i];t[i]=tt}if(y[l]=e,v[l]=i,n[i][i]==0)return!1;for(k=1/n[i][i],n[i][i]=1,w=0;w<r;w++)n[i][w]*=k;for(t[i]*=k,f=0;f<r;f++)if(f!=i){for(d=n[f][i],n[f][i]=0,a=0;a<r;a++)n[f][a]-=n[i][a]*d;t[f]-=t[i]*d}}for(u=r-1;u>=0;u--)if(y[u]!=v[u])for(c=0;c<r;c++)it=n[c][y[u]],n[c][y[u]]=n[c][v[u]],n[c][v[u]]=it;return!0},c:function(n,i,r,u,f){for(var o,s=new t.c(Number,0),e=0;e<n;++e){while(e<n&&(isNaN(i(e))||isNaN(r(e))))s.add(NaN),++e;for(o=e;e<n&&!isNaN(i(e))&&!isNaN(r(e));)++e;if(--e,e-o>0)s.addRange(t.$ha.b(o,e-o+1,i,r,u,f));else for(;o<=e;++o)s.add(NaN)}return s.toArray()},b:function(n,i,r,u,f,e){var o=this;return t.$ha.a(i,function(t){return r(t+n)},function(t){return u(t+n)},f,e)},a:function(n,t,i,r,u){var o=new Array(n-1),e=new Array(n),f,h,c,l,a,s;for(e[0]=isNaN(r)?0:-.5,o[0]=isNaN(r)?0:3/(t(1)-t(0))*((i(1)-i(0))/(t(1)-t(0))-r),f=1;f<n-1;f++)h=(t(f)-t(f-1))/(t(f+1)-t(f-1)),c=h*e[f-1]+2,e[f]=(h-1)/c,o[f]=(i(f+1)-i(f))/(t(f+1)-t(f))-(i(f)-i(f-1))/(t(f)-t(f-1)),o[f]=(6*o[f]/(t(f+1)-t(f-1))-h*o[f-1])/c;for(l=isNaN(u)?0:.5,a=isNaN(u)?0:3/(t(n-1)-t(n-2))*(u-(i(n-1)-i(n-2))/(t(n-1)-t(n-2))),e[n-1]=(a-l*o[n-2])/(l*e[n-2]+1),s=n-2;s>=0;s--)e[s]=e[s]*e[s+1]+o[s];return e},f:function(n,t,i,r,u,f,e){var h=r-t,o=(r-n)/h,s=(n-t)/h;return o*i+s*u+((o*o*o-o)*f+(s*s*s-s)*e)*h*h/6},h:function(n,i,r,u){for(var s=new t.e0,o=0,f=-1,h=NaN,c=NaN,e=0;e<n;e++)h=i(e),c=r(e),(isNaN(h)||isNaN(c))&&(f=e-1,f-o>0&&s.add(t.$ha.g(o,f,i,r,u)),o=e+1);return isNaN(h)||isNaN(c)||(f=n-1),f-o>0&&s.add(t.$ha.g(o,f,i,r,u)),s},g:function(i,r,u,f,e){var lt=this,c,ut,ht,o,v,y,nt;if(e=.5*t.$bf.c(isNaN(e)?.5:e,0,1),c=new t.e8,ut=r-i+1,ut<2)return c;if(ut==2)return c.__startPoint={__x:u(i),__y:f(i),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ht=function(){var r=new t.fa(1);return r.c({__x:u(i+1),__y:f(i+1),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r}(),c.__segments.add(ht),c;for(var a=new t.fd,s=u(i),h=f(i),ft=u(i+1),et=f(i+1);ft==s&&et==h&&i+1<=r;)i++,ft=u(i+1),et=f(i+1);var k=ft-s,d=et-h,g=Math.sqrt(k*k+d*d);for(o=i+1;o<r;++o)if(v=u(o),y=f(o),v!=s||y!=h){var p=u(o+1)-u(o-1),w=f(o+1)-f(o-1),l=p*p+w*w;l<.01&&(p=-(f(o+1)-f(o)),w=u(o+1)-u(o),l=p*p+w*w);l=Math.sqrt(l);nt=e*Math.sqrt((v-s)*(v-s)+(y-h)*(y-h));l>.01&&(a.b().add({__x:s+k*nt/g,__y:h+d*nt/g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),a.b().add({__x:v-p*nt/l,__y:y-w*nt/l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),a.b().add({__x:v,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s=v,h=y,k=p,d=w,g=l)}var b=r,tt=u(b),it=f(b),ot=u(b)-u(b-1),st=f(b)-f(b-1),ct=ot*ot+st*st,rt=e*Math.sqrt((tt-s)*(tt-s)+(it-h)*(it-h));return a.b().add({__x:s+k*rt/g,__y:h+d*rt/g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),a.b().add({__x:tt-ot*rt/ct,__y:it-st*rt/ct,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),a.b().add({__x:tt,__y:it,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),c.__startPoint={__x:u(i),__y:f(i),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},c.__segments.add(a),c},$type:new n.ig.Type("Numeric",n.ig.$ot)},!0);n.ig.util.defType("LeastSquaresFit:hb","Numeric",{aa:function(){return t.$hb.t()&&t.$hb.u()&&t.$hb.s()&&t.$hb.w()&&t.$hb.x()&&t.$hb.r()&&t.$hb.y()&&t.$hb.z()},init:function(){t.$ha.init.call(this)},k:function(n,t,i){for(var u,s,l,a,v=this,h=0,e=0,r=0,c=0,f=0,o=0;o<n;++o)u=t(o),s=i(o),isNaN(u)||isNaN(s)||(h+=s,e+=u*u,r+=u,c+=u*s,++f);return f<2?null:(l=(h*e-r*c)/(f*e-r*r),a=(f*c-r*h)/(f*e-r*r),function(){var n=[];return n.add(l),n.add(a),n}())},ad:function(n,t){return n.length!=2?NaN:n[0]+n[1]*t},t:function(){for(var r,e,u,o,s,h,i,l=this,c=new t.be,n=new Array(2),f=0;f<n.length;++f)n[f]=10*c.a();for(r=new t.c(Number,0),e=new t.c(Number,0),u=-100;u<100;++u)o=u,s=t.$hb.ad(n,o),isNaN(s)||(r.add(o),e.add(s));for(h=t.$hb.k(r.count(),function(n){return r.__inner[n]},function(n){return e.__inner[n]}),i=0;i<n.length;++i)Math.abs(n[i]-h[i])>.0001;return!0},l:function(n,t,i){for(var o,s,f,c,v,y=this,l=0,h=0,r=0,a=0,u=0,e=0;e<n;++e)o=t(e),s=i(e),!isNaN(o)&&!isNaN(s)&&o>0&&(f=Math.log(o),l+=s*f,h+=s,r+=f,a+=f*f,++u);return u<2?null:(c=(u*l-h*r)/(u*a-r*r),v=(h-c*r)/u,function(){var n=[];return n.add(v),n.add(c),n}())},ae:function(n,t){return n.length!=2||t<0||Number.isInfinity(t)||isNaN(t)?NaN:n[0]+n[1]*Math.log(t)},u:function(){for(var r,e,u,o,s,h,i,l=this,c=new t.be,n=new Array(2),f=0;f<n.length;++f)n[f]=10*c.a();for(r=new t.c(Number,0),e=new t.c(Number,0),u=1;u<100;++u)o=u,s=t.$hb.ae(n,o),isNaN(s)||(r.add(o),e.add(s));for(h=t.$hb.l(r.count(),function(n){return r.__inner[n]},function(n){return e.__inner[n]}),i=0;i<n.length;++i)Math.abs(n[i]-h[i])>.0001;return!0},j:function(n,t,i){for(var f,r,l,v,y,p=this,e=0,h=0,u=0,c=0,o=0,a=0,s=0;s<n;++s)f=t(s),r=i(s),!isNaN(f)&&!isNaN(r)&&r>0&&(l=Math.log(r),e+=f*f*r,h+=r*l,u+=f*r,c+=f*r*l,o+=r,++a);return a<2?null:(v=(e*h-u*c)/(o*e-u*u),y=(o*c-u*h)/(o*e-u*u),function(){var n=[];return n.add(Math.exp(v)),n.add(y),n}())},ac:function(n,t){return n.length!=2||t<0||Number.isInfinity(t)||isNaN(t)?NaN:n[0]*Math.exp(n[1]*t)},s:function(){for(var r,e,u,o,s,h,i,l=this,c=new t.be,n=new Array(2),f=0;f<n.length;++f)n[f]=2*c.a();for(r=new t.c(Number,0),e=new t.c(Number,0),u=1;u<100;++u)o=u,s=t.$hb.ac(n,o),isNaN(s)||(r.add(o),e.add(s));for(h=t.$hb.j(r.count(),function(n){return r.__inner[n]},function(n){return e.__inner[n]}),i=0;i<n.length;++i)if(Math.abs(n[i]-h[i])>.0001)return!1;return!0},n:function(n,t,i){for(var s,h,e,c,l,y,p=this,a=0,u=0,o=0,v=0,f=0,r=0;r<n;++r)s=t(r),h=i(r),!isNaN(s)&&!isNaN(h)&&s>0&&h>0&&(e=Math.log(t(r)),c=Math.log(i(r)),a+=e*c,u+=e,o+=c,v+=e*e,++f);return f<2?null:(l=(f*a-u*o)/(f*v-u*u),y=Math.exp((o-l*u)/f),function(){var n=[];return n.add(y),n.add(l),n}())},ag:function(n,t){return n.length!=2||t<0||Number.isInfinity(t)||isNaN(t)?NaN:n[0]*Math.pow(t,n[1])},w:function(){for(var u,e,i,o,r,h=this,s=new t.be,n=new Array(2),f=0;f<n.length;++f)n[f]=10*s.a();for(u=new t.c(Number,0),e=new t.c(Number,0),i=-100;i<100;++i)u.add(i),e.add(t.$hb.ag(n,i));for(o=t.$hb.n(u.count(),function(n){return u.__inner[n]},function(n){return e.__inner[n]}),r=0;r<n.length;++r)if(Math.abs(n[r]-o[r])>.0001)return!1;return!0},o:function(n,i,r){return t.$hb.m(n,2,i,r)},ah:function(n,i){return t.$hb.af(n,i)},x:function(){return t.$hb.v(2)},i:function(n,i,r){return t.$hb.m(n,3,i,r)},ab:function(n,i){return t.$hb.af(n,i)},r:function(){return t.$hb.v(3)},p:function(n,i,r){return t.$hb.m(n,4,i,r)},ai:function(n,i){return t.$hb.af(n,i)},y:function(){return t.$hb.v(4)},q:function(n,i,r){return t.$hb.m(n,5,i,r)},aj:function(n,i){return t.$hb.af(n,i)},z:function(){return t.$hb.v(5)},m:function(n,i,r,u){for(var p,f,a,w,o,b,k,v,s,h,c,d,g,l,e=new Array(1+2*i),y=0;y<e.length;y++)e[y]=0;for(p=function(){for(var t=new Array($firstRank=i+1),r=t,n=0;n<$firstRank;n++)r[n]=new Array(i+1);return t}(),f=new Array(i+1),a=0;a<f.length;a++)f[a]=0;for(w=0,o=0;o<n;++o)if(b=1,k=r(o),!isNaN(k)&&!isNaN(u(o)))for(v=0;v<e.length;++v)e[v]+=b,b*=k,++w;if(w<i)return null;for(s=0;s<=i;++s)for(h=0;h<=i;++h)p[s][h]=e[s+h];for(c=0;c<n;++c)if(d=r(c),g=u(c),!isNaN(d)&&!isNaN(g))for(l=0;l<=i;++l)f[l]+=Math.pow(d,l)*g;return t.$ha.d(p,f)?f:null},af:function(n,t){var r,i;if(n.length<1||Number.isInfinity(t)||isNaN(t))return NaN;for(r=0,i=0;i<n.length;++i)r+=n[i]*Math.pow(t,i);return r},v:function(n){for(var u,o,f,s,h,c,i,a=this,l=new t.be,r=new Array(n+1),e=0;e<r.length;++e)r[e]=2*l.a();for(u=new t.c(Number,0),o=new t.c(Number,0),f=-100;f<100;++f)s=f,h=t.$hb.af(r,s),isNaN(h)||(u.add(s),o.add(h));for(c=t.$hb.m(u.count(),n,function(n){return u.__inner[n]},function(n){return o.__inner[n]}),i=0;i<n;++i)if(Math.abs(r[i]-c[i])>.0001)return!1;return!0},$type:new n.ig.Type("LeastSquaresFit",t.$ha.$type)},!0);n.ig.util.defType("MathUtil:bf","Object",{init:function(){n.ig.$op.init.call(this)},b:function(n){var t=this;return Math.log(n+Math.sqrt(n*n+1))},j:function(n,t){var i=this;return Math.sqrt(n*n+t*t)},v:function(n){var t=this;return n*n},h:function(n){var e=this,t;if(n<=0)return NaN;var r=function(){var n=[];return n.add(57.1562356658629),n.add(-59.5979603554755),n.add(14.1360979747417),n.add(-.49191381609762),n.add(339946499848119e-19),n.add(465236289270486e-19),n.add(-983744753048796e-19),n.add(.000158088703224912),n.add(-.000210264441724105),n.add(.000217439618115213),n.add(-.000164318106536764),n.add(844182239838528e-19),n.add(-261908384015814e-19),n.add(368991826595316e-20),n}(),u=n,f=(n+.5)*Math.log(n+5.2421875)-(n+5.2421875),i=.999999999999997;for(t=0;t<14;t++)i+=r[t]/++u;return f+Math.log(2.506628274631*i/n)},c:function(n,t,i){return Math.min(i,Math.max(t,n))},u:function(n){return 3.14159265358979*n/180},e:function(n){return 180*n/3.14159265358979},s:function(n,i,r){var w=this,e=Math.floor(n)&255,o=Math.floor(i)&255,u=Math.floor(r)&255;n-=Math.floor(n);i-=Math.floor(i);r-=Math.floor(r);var f=t.$bf.g(n),s=t.$bf.g(i),p=t.$bf.g(r),h=t.$bf.a[e]+o,c=t.$bf.a[h]+u,l=t.$bf.a[h+1]+u,a=t.$bf.a[e+1]+o,v=t.$bf.a[a]+u,y=t.$bf.a[a+1]+u;return t.$bf.k(p,t.$bf.k(s,t.$bf.k(f,t.$bf.i(t.$bf.a[c],n,i,r),t.$bf.i(t.$bf.a[v],n-1,i,r)),t.$bf.k(f,t.$bf.i(t.$bf.a[l],n,i-1,r),t.$bf.i(t.$bf.a[y],n-1,i-1,r))),t.$bf.k(s,t.$bf.k(f,t.$bf.i(t.$bf.a[c+1],n,i,r-1),t.$bf.i(t.$bf.a[v+1],n-1,i,r-1)),t.$bf.k(f,t.$bf.i(t.$bf.a[l+1],n,i-1,r-1),t.$bf.i(t.$bf.a[y+1],n-1,i-1,r-1))))},g:function(n){return n*n*n*(n*(n*6-15)+10)},k:function(n,t,i){return t+n*(i-t)},i:function(n,t,i,r){var u=n&15,f=u<8?t:i,e=u<4?i:u==12||u==14?t:r;return((u&1)==0?f:-f)+((u&2)==0?e:-e)},q:function(n){if(n==0)return 0;if(n<0)return-t.$bf.p(-n);var r=Math.floor(Math.log10(n)),i=n/t.$bf.f(10,r),u=i<2?1:i<5?2:i<10?5:10;return u*t.$bf.f(10,r)},r:function(n){if(n==0)return 0;if(n<0)return-t.$bf.r(-n);var r=Math.floor(Math.log10(n)),i=n/t.$bf.f(10,r),u=i<1?1:i<3?2:i<7?5:10;return u*t.$bf.f(10,r)},p:function(n){if(n==0)return 0;if(n<0)return-t.$bf.q(-n);var r=Math.floor(Math.log10(n)),i=n/t.$bf.f(10,r),u=i<=1?1:i<=2?2:i<=5?5:10;return u*t.$bf.f(10,r)},f:function(n,t){for(var i=1;t>0;--t)i*=n;for(;t<0;++t)i/=n;return i},o:function(n,t,i){return Math.min(n,Math.min(t,i))},m:function(n,t,i){return Math.max(n,Math.max(t,i))},n:function(n){var t,i;for(n=Array.prototype.slice.call(arguments,0),t=n[0],i=1;i<n.length;++i)t=Math.min(t,n[i]);return t},l:function(n){var t,i;for(n=Array.prototype.slice.call(arguments,0),t=n[0],i=1;i<n.length;++i)t=Math.max(t,n[i]);return t},$type:new n.ig.Type("MathUtil",n.ig.$ot)},!0);n.ig.util.defType("PathFigureUtil:hc","Object",{init:function(){n.ig.$op.init.call(this)},duplicate1:function(){for(var n=new t.e0,i=this.getEnumerator(),r;i.moveNext();)r=i.current(),n.add(r.duplicate());return n},duplicate:function(){var r=this,u,e,f,i,n,s,o,l;if(r==null)return null;for(u=new t.e9,e=r.__segments.getEnumerator();e.moveNext();){f=e.current();switch(f.a()){case 4:i=f;n=new t.e4;n.b(i.b());n.d(i.d());n.c(i.c());n.f(i.f());n.e(i.e());u.add(n);break;case 0:s=f;o=new t.fa(1);o.c(s.c());u.add(o);break;case 3:for(var a=f,h=new t.fb,c=a.__points.getEnumerator();c.moveNext();)l=c.current(),h.__points.add(l);u.add(h)}}return function(){var n=new t.e8;return n.isClosed(r.__isClosed),n.isFilled(r.__isFilled),n.startPoint(r.__startPoint),n.segments(u),n}()},$type:new n.ig.Type("PathFigureUtil",n.ig.$ot)},!0);n.ig.util.defType("PointCollectionUtil:hd","Object",{init:function(){n.ig.$op.init.call(this)},flattenTo:function(n,i){var r=this,f,u,e;if(n!=null&&(n.clear(),r.count()>=2))for(f=t.$g6.f(r.count(),function(n){return r.item(n).__x},function(n){return r.item(n).__y},i),u=f.getEnumerator();u.moveNext();)e=u.current(),n.add(r.item(e))},getBounds1:function(){for(var i=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,u=Number.NEGATIVE_INFINITY,e=this.getEnumerator(),r;e.moveNext();)r=e.current(),i=Math.min(i,r.__x),n=Math.min(n,r.__y),f=Math.max(f,r.__x),u=Math.max(u,r.__y);return Number.isInfinity(i)||Number.isInfinity(n)||Number.isInfinity(n)||Number.isInfinity(u)?t.$bk.empty():new t.bk(0,i,n,f-i,u-n)},getBounds:function(){for(var n=t.$bk.empty(),i=this.getEnumerator(),r;i.moveNext();)r=i.current(),n.union(r.getBounds1());return n},getBounds2:function(){for(var i=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,u=Number.NEGATIVE_INFINITY,r,e=0;e<this.count();e++)r=this.item(e),i=Math.min(i,r.__x),n=Math.min(n,r.__y),f=Math.max(f,r.__x),u=Math.max(u,r.__y);return Number.isInfinity(i)||Number.isInfinity(n)||Number.isInfinity(n)||Number.isInfinity(u)?t.$bk.empty():new t.bk(0,i,n,f-i,u-n)},getBounds3:function(){for(var i=t.$bk.empty(),r,n=0;n<this.count();n++)r=this.__inner[n],i.union(r.getBounds2());return i},getBounds4:function(){for(var i=t.$bk.empty(),r,n=0;n<this.count();n++)r=this.__inner[n],i.union(r.getBounds2());return i},clipTo:function(n,t){for(var r=this.count(),i=0;i<r;i++)t.j(this.item(i));t.i(null)},getCentroid:function(){for(var r=0,u=0,t=0,f=this.getEnumerator(),i;f.moveNext();)i=f.current(),r+=i.__x,u+=i.__y,t+=1;return{__x:r/t,__y:u/t,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},toPointCollection:function(){for(var n=new t.d3(0),i=this.getEnumerator(),r;i.moveNext();)r=i.current(),n.add(r);return n},toPointList:function(){for(var n=new t.c(t.$bm.$type,0),i=this.getEnumerator(),r;i.moveNext();)r=i.current(),n.add(r);return n},toPointCollections:function(){for(var u,i=new t.c(t.$d3.$type,0),r,f=this.count(),n=0;n<f;n++)r=this.__inner[n],u=new t.d3(1,r),i.add(u);return i},$type:new n.ig.Type("PointCollectionUtil",n.ig.$ot)},!0);n.ig.util.defType("PolygonUtil:he","Object",{init:function(){n.ig.$op.init.call(this)},a:function(n,t){var u,f,i,r;if(n==null||(u=n.count(),u<4))return!1;for(f=!1,i=0,r=u-1;i<u;r=i++)n.item(i).__y>t.__y!=n.item(r).__y>t.__y&&t.__x<(n.item(r).__x-n.item(i).__x)*(t.__y-n.item(i).__y)/(n.item(r).__y-n.item(i).__y)+n.item(i).__x&&(f=!f);return f},$type:new n.ig.Type("PolygonUtil",n.ig.$ot)},!0);n.ig.util.defType("PolySimplification:hf","Object",{init:function(){n.ig.$op.init.call(this)},b:function(n,t){var r=n.a(),f=n.b(),o,s,h,i;if(r.length==0)return 0;var u=0,e=0,c=t*t;for(u++,i=0;i<r.length;i++)o=r[i]-r[e],s=f[i]-f[e],h=o*o+s*s,h>c&&(r[u]=r[i],f[u]=f[i],u++,e=i);return u},a:function(n,t){var i=t.__x-n.__x,r=t.__y-n.__y;return i*i+r*r},$type:new n.ig.Type("PolySimplification",n.ig.$ot)},!0);n.ig.util.defType("IPool$1:hg","Object",{$type:new n.ig.Type("IPool$1",null)},!0);n.ig.util.defType("IIndexedPool$1:hh","Object",{$type:new n.ig.Type("IIndexedPool$1",null,[t.$hg.$type.specialize(0)])},!0);n.ig.util.defType("Pool$1:hi","Object",{$t:null,init:function(i){this.$t=i;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.a(new t.c(this.$t,0));this.b(new t.c(this.$t,0))},_create:null,create:function(n){return arguments.length===1?(this._create=n,n):this._create},_disactivate:null,disactivate:function(n){return arguments.length===1?(this._disactivate=n,n):this._disactivate},_activate:null,activate:function(n){return arguments.length===1?(this._activate=n,n):this._activate},_destroy:null,destroy:function(n){return arguments.length===1?(this._destroy=n,n):this._destroy},item:function(n){return n>=this.c()&&this.c(n+1),this.a().__inner[n]},clear:function(){this.c(0)},c:function(n){var u,f,e,t,i,r;if(arguments.length===1){for(u=this.a().count();n>this.a().count()&&this.b().count()>0;)f=this.b().__inner[this.b().count()-1],this.a().add(f),this.b().removeAt(this.b().count()-1),this.activate()!=null&&this.activate()(f);while(n>this.a().count()&&this.b().count()==0)e=this.create()(),this.a().add(e),this.activate()!=null&&this.activate()(e);for(t=2;u!=0;)u>>=1,t<<=1;while(n<this.a().count())i=this.a().__inner[this.a().count()-1],this.a().removeAt(this.a().count()-1),this.disactivate()!=null&&this.disactivate()(i),this.b().count()<t?this.b().add(i):this.destroy()!=null&&this.destroy()(i);if(t<this.b().count()){for(r=t;r<this.b().count();++r)this.destroy()(this.b().__inner[r]);this.b().removeRange(t,this.b().count()-t)}return n}return this.a().count()},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},d:function(n){for(var i=this.b().getEnumerator(),r,t,u;i.moveNext();)r=i.current(),n(r);for(t=this.a().getEnumerator();t.moveNext();)u=t.current(),n(u)},$type:new n.ig.Type("Pool$1",n.ig.$ot,[t.$hh.$type.specialize(0)])},!0);n.ig.util.defType("IHashPool$2:hj","Object",{$type:new n.ig.Type("IHashPool$2",null,[t.$hg.$type.specialize(0)])},!0);n.ig.util.defType("HashPool$2:hk","Object",{$tKey:null,$tValue:null,_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},init:function(i,r){this.$tKey=i;this.$tValue=r;this.$type=this.$type.specialize(this.$tKey,this.$tValue);n.ig.$op.init.call(this);this.d(new t.c(this.$tValue,0));this.b(new t.dh(this.$tKey,this.$tValue,0))},_create:null,create:function(n){return arguments.length===1?(this._create=n,n):this._create},_disactivate:null,disactivate:function(n){return arguments.length===1?(this._disactivate=n,n):this._disactivate},_activate:null,activate:function(n){return arguments.length===1?(this._activate=n,n):this._activate},_destroy:null,destroy:function(n){return arguments.length===1?(this._destroy=n,n):this._destroy},item:function(n){var t=this,i;return function(){var r=t.b().tryGetValue(n,i);return i=r.value,r.ret}()||(t.d().count()>0?(i=t.d().__inner[t.d().count()-1],t.d().removeAt(t.d().count()-1)):i=t.create()(),t.activate()!=null&&t.activate()(i),t.b().item(n,i)),i},c:function(){return this.b().keys()},a:function(n){return this.b().containsKey(n)},g:function(n){var t=this,r,f,i,u;if(function(){var i=t.b().tryGetValue(n,r);return r=i.value,i.ret}()){for(t.b().remove(n),t.disactivate()!=null&&t.disactivate()(r),t.d().add(r),f=t.b().count(),i=2;f!=0;)f>>=1,i<<=1;if(i<t.d().count()){for(u=i;u<t.d().count();++u)t.destroy()(t.d().__inner[u]);t.d().removeRange(i,t.d().count()-i)}}},clear:function(){for(var i=new t.c(this.$tKey,0),r=this.b().keys().getEnumerator(),u,n,f;r.moveNext();)u=r.current(),i.add(u);for(n=i.getEnumerator();n.moveNext();)f=n.current(),this.g(f)},e:function(){return this.b().count()},f:function(n){for(var i=this.d().getEnumerator(),r,t,u;i.moveNext();)r=i.current(),n(r);for(t=this.b().values().getEnumerator();t.moveNext();)u=t.current(),n(u)},$type:new n.ig.Type("HashPool$2",n.ig.$ot,[t.$hj.$type.specialize(0,1)])},!0);n.ig.util.defType("RearrangedList$1:hl","Object",{$t:null,b:null,a:null,init:function(t,i,r){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.b=i;this.a=r},indexOf:function(n){var t=this.b.indexOf(n);return t==-1?-1:this.a.indexOf(t)},insert:function(){throw new t.da;},removeAt:function(){throw new t.da;},item:function(n){if(arguments.length===2)throw new t.da;else return this.b.item(this.a.item(n))},add:function(){throw new t.da;},clear:function(){this.a.clear()},contains:function(n){return this.b.contains(n)},copyTo:function(){throw new t.da;},count:function(){return this.a.count()},isReadOnly:function(){return!0},remove:function(){throw new t.da;},getEnumerator:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:0,$b:null,current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.a.getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$this.b.item(this.$a),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerator$1(this.$t,i())},$type:new n.ig.Type("RearrangedList$1",n.ig.$ot,[t.$z.$type.specialize(0)])},!0);n.ig.util.defType("RectUtil:fz","Object",{init:function(){n.ig.$op.init.call(this)},getCenter:function(){return this.isEmpty()?{__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}:{__x:.5*(this.left()+this.right()),__y:.5*(this.bottom()+this.top()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getArea:function(){return this.isEmpty()?0:this.width()*this.height()},duplicate:function(){return this.isEmpty()?this:new t.bk(0,this.left(),this.top(),this.width(),this.height())},getLeader:function(t){var i,r,u,f,e;return this.containsPoint(t)?t:(i={__x:this.left()+.5*this.width(),__y:this.top()+.5*this.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r={__x:t.__x-i.__x,__y:t.__y-i.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r.__x!=0&&(u=(this.left()-i.__x)/r.__x,f=i.__y+u*r.__y,f>this.top()&&f<this.bottom()))?u>0?{__x:this.left(),__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}:{__x:this.right(),__y:i.__y-u*r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}:(u=(this.top()-i.__y)/r.__y,e=i.__x+u*r.__x,u>0?{__x:e,__y:this.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}:{__x:i.__x-u*r.__x,__y:this.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},getDistanceSquared1:function(n){return this.isEmpty()?NaN:t.$fz.getDistanceSquared(this,n.__x,n.__y)},getDistanceSquared2:function(n){if(this.isEmpty())return Number.POSITIVE_INFINITY;var i=t.$fz.getDistanceSquared(this,n.left(),n.top());return i>0&&(i=Math.min(i,t.$fz.getDistanceSquared(this,n.left(),n.bottom()))),i>0&&(i=Math.min(i,t.$fz.getDistanceSquared(this,n.right(),n.bottom()))),i>0&&(i=Math.min(i,t.$fz.getDistanceSquared(this,n.right(),n.top()))),i>0&&(i=Math.min(i,t.$fz.getDistanceSquared(n,this.left(),this.top()))),i>0&&(i=Math.min(i,t.$fz.getDistanceSquared(n,this.left(),this.bottom()))),i>0&&(i=Math.min(i,t.$fz.getDistanceSquared(n,this.right(),this.bottom()))),i>0&&(i=Math.min(i,t.$fz.getDistanceSquared(n,this.right(),this.top()))),i},getDistanceSquared:function(n,t){var i=n-this.left(),r=t-this.top(),u=this.width()*i,f=this.height()*r,e,o;return u>0&&(e=this.width()*this.width(),i-=u<e?u/e*this.width():this.width()),f>0&&(o=this.height()*this.height(),r-=f<o?f/o*this.height():this.height()),i*i+r*r},contains:function(n){return this.isEmpty()||n.isEmpty()?!1:this.left()>n.left()?!1:this.right()<n.right()?!1:this.top()>n.top()?!1:this.bottom()<n.bottom()?!1:!0},intersectsWith:function(n){return this.isEmpty()||n.isEmpty()?!1:this.right()<n.left()?!1:this.left()>n.right()?!1:this.top()>n.bottom()?!1:this.bottom()<n.top()?!1:!0},intersectionArea:function(n){var t,i;return this.isEmpty()||n.isEmpty()?0:(t=Math.min(this.right(),n.right())-Math.max(this.left(),n.left()),t<=0)?0:(i=Math.min(this.bottom(),n.bottom())-Math.max(this.top(),n.top()),i<=0)?0:t*i},getInflated:function(n,i){return this.isEmpty()?this:new t.bk(0,this.x()-n,this.y()-i,Math.max(0,this.width()+2*n),Math.max(0,this.height()+2*i))},inflate1:function(n,t){this.x(this.x()-n);this.y(this.y()-t);var i=this.width()+2*n,r=this.height()+2*t;return this.width(i>1?i:1),this.height(r>1?r:1),this},inflate:function(n){var u=this.x()-n,f=this.y()-n,i=this.width()+n+n,r=this.height()+n+n,e=i>0?i:0,o=r>0?r:0;return new t.bk(0,u,f,e,o)},round:function(){return this.x(Math.round(this.x())),this.y(Math.round(this.y())),this.width(Math.round(this.width())),this.height(Math.round(this.height())),this},isNull:function(){return this.x()==0&&this.y()==0&&this.width()==0&&this.height()==0},size:function(){return new t.bl(this.width(),this.height())},normalize:function(n){return this.normalize1(n.size())},normalize1:function(n){var t=this;return t.x(this.x()/n.b()),t.y(this.y()/n.a()),t.width(this.width()/n.b()),t.height(this.height()/n.a()),t},getTopLeft:function(){return{__x:this.x(),__y:this.y(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getTopRight:function(){return{__x:this.x()+this.width(),__y:this.y(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getBottomLeft:function(){return{__x:this.x(),__y:this.y()+this.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getBottomRight:function(){return{__x:this.x()+this.width(),__y:this.y()+this.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getCorners:function(){var n=this;return function(){var i=new t.c(t.$bm.$type,0);return i.add(n.getTopLeft()),i.add(n.getTopRight()),i.add(n.getBottomRight()),i.add(n.getBottomLeft()),i}()},rotateAboutCenter:function(n){var i,r,u;return(n=t.$fe.e(n),n==0||n==180)?new t.bk(0,this.left(),this.top(),this.width(),this.height()):(i=this.getCenter(),n==90||n==270)?(r=this.height()/2,u=this.width()/2,new t.bk(0,i.__x-r,i.__y-u,this.height(),this.width())):this.rotateAboutPoint(i.__x,i.__y,n)},rotateAboutPoint:function(n,i,r){for(var c,l,a=this.getCorners(),v=t.$bf.u(r),y=Math.cos(v),p=Math.sin(v),f=Number.MAX_VALUE,e=Number.MAX_VALUE,o=-Number.MAX_VALUE,s=-Number.MAX_VALUE,u,h=0;h<a.count();h++)u=a.__inner[h],c=y*(u.__x-n)-p*(u.__y-i)+n,l=p*(u.__x-n)+y*(u.__y-i)+i,f=Math.min(f,l),e=Math.min(e,c),o=Math.max(o,c),s=Math.max(s,l);return new t.bk(0,e,f,o-e,s-f)},$type:new n.ig.Type("RectUtil",n.ig.$ot)},!0);n.ig.util.defType("ISmartPlaceable:hm","Object",{$type:new n.ig.Type("ISmartPlaceable",null)},!0);n.ig.util.defType("SmartPlaceableWrapper$1:ho","Object",{$t:null,init:function(t){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.d(!1)},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},j:null,k:function(n){return arguments.length===1?(this.j=n,n):this.j},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},getSmartPositions:function(){return this.d()?t.$ho.a:t.$ho.b},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},i:function(){return this.h()},getSmartBounds:function(n){var r=this.i(),u=r.b(),f=r.a(),i;return i=this.f(n,u,f),new t.bk(0,this.g().__x+i.__x,this.g().__y+i.__y,u,f)},opacity:function(n){return arguments.length===1?(this.k().__opacity=n,n):this.k().__opacity},smartPosition:function(t){if(arguments.length===1){this.c=t;var r=this.i(),u=r.a(),f=r.b(),i;return i=this.f(this.c,f,u),this.e({__x:this.g().__x+i.__x,__y:this.g().__y+i.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),t}return this.c},c:null,f:function(t,i,r){var u=.25;switch(t){case 0:return{__x:-i*u,__y:-r*u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};case 1:return{__x:0,__y:-r*u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};case 2:return{__x:i*u,__y:-r*u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};case 3:return{__x:-i*u,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};case 4:return{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};case 5:return{__x:i*u,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};case 6:return{__x:-i*u,__y:r*u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};case 7:return{__x:0,__y:r*u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};default:return{__x:i*u,__y:r*u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}}},$type:new n.ig.Type("SmartPlaceableWrapper$1",n.ig.$ot,[t.$hm.$type])},!0);n.ig.util.defType("SmartPlacer:hp","Object",{init:function(){this.a=new t.c(t.$bk.$type,0);n.ig.$op.init.call(this);this.e(t.$bk.empty());this.c(.3);this.b(2)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},d:function(n){var i=this,s,h,f,r,a,v,c;if(n!=null){var u=Number.MAX_VALUE,e=t.$bk.empty(),l=7,o=!1;for(s=0;s<n.getSmartPositions().length;s++)if(h=n.getSmartPositions()[s],f=n.getSmartBounds(h),i.e().isEmpty()||i.e().containsRect(f)){for(r=0,a=i.a.getEnumerator();a.moveNext();)v=a.current(),r+=f.intersectionArea(v);if(r==0){u=r;l=h;e=f;o=!0;break}r<u&&(u=r,l=h,e=f,o=!0)}c=0;o&&(c=u/e.getArea());!o||c>i.c()?n.opacity(0):(u>0?n.opacity(Math.pow(1-t.$bf.c(0,c,1),i.b())):n.opacity(1),n.smartPosition(l),i.a.add(e))}},a:null,$type:new n.ig.Type("SmartPlacer",n.ig.$ot)},!0);n.ig.util.defType("StackPool$1:f5","Object",{$t:null,init:function(i){this.$t=i;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.d=!1;this.f=new t.dh(this.$t,n.ig.$op.$type,0);this.h=new t.f6(this.$t);this.g=new t.f6(this.$t)},n:function(){var n;return this.h.count()!=0?n=this.h.pop():(n=this.g.count()!=0?this.g.pop():this.i()(),this.a()(n)),this.f.add(n,null),n},m:function(n){if(this.f.remove(n),this.e())this.h.push(n);else{this.b()(n);var i=t.$f5.l(this.f.count());this.g.count()<i?this.c()(n):this.g.push(n)}},e:function(n){var i,r,u;if(arguments.length===1){if(this.d!=n&&(this.d=n,!this.d)){for(i=t.$f5.l(this.f.count());this.h.count()>0&&this.g.count()<=i;)r=this.h.pop(),this.b()(r),this.g.push(r);while(this.h.count()>0)u=this.h.pop(),this.b()(u),this.c()(u);while(this.g.count()>i)this.c()(this.g.pop())}return n}return this.d},d:!1,j:function(){return this.f.count()},k:function(){return this.g.count()},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},l:function(n){for(var t=2;n>t;)t=t<<1;return t},f:null,h:null,g:null,$type:new n.ig.Type("StackPool$1",n.ig.$ot)},!0);n.ig.util.defType("IVisualData:hq","Object",{$type:new n.ig.Type("IVisualData",null)},!0);n.ig.util.defType("PrimitiveVisualData:hs","Object",{init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.$op.init.call(this)},init1:function(i,r){n.ig.$op.init.call(this);this.name(r);this.tags(new t.ic);this.appearance(new t.ht)},_appearance:null,appearance:function(n){return arguments.length===1?(this._appearance=n,n):this._appearance},_tags:null,tags:function(n){return arguments.length===1?(this._tags=n,n):this._tags},type:function(){},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},scaleByViewport:function(n){this.appearance().j(n)},getPoints:function(n){var i=new t.c(t.$c.$type.specialize(t.$bm.$type),0);return this.getPointsOverride(i,n),i},getPointsOverride:function(){},serialize:function(){var n=new t.gj,i;for(n.f("{"),n.f("appearance: "+(this.appearance()!=null?this.appearance().serialize():"null")+", "),n.f("tags: ["),i=0;i<this.tags().count();i++)i!=0&&n.d(", "),n.d("'"+this.tags().__inner[i]+"'");return n.f("],"),n.f("type: '"+this.type()+"', "),n.f("name: '"+this.name()+"', "),n.f(this.e()),n.f("}"),n.b()},e:function(){return""},$type:new n.ig.Type("PrimitiveVisualData",n.ig.$ot,[t.$hq.$type])},!0);n.ig.util.defType("PrimitiveVisualDataList:hr","List$1",{init:function(){t.$c.init.call(this,t.$hs.$type)},containingTag:function(n){for(var i,r,f=new t.hr,u=0;u<this.count();u++)for(i=this.__inner[u],r=0;r<i.tags().count();r++)if(i.tags().__inner[r]==n){f.add(i);break}return f},serialize:function(){var i=new t.gj,n;for(i.d("{ items: ["),n=0;n<this.count();n++)n!=0&&i.d(", "),i.d(this.__inner[n].serialize());return i.b()},$type:new n.ig.Type("PrimitiveVisualDataList",t.$c.$type.specialize(t.$hs.$type),[t.$hq.$type])},!0);n.ig.util.defType("LabelAppearanceData:ib","Object",{init:function(){n.ig.$op.init.call(this)},_text:null,text:function(n){return arguments.length===1?(this._text=n,n):this._text},_horizontalAlignment:null,horizontalAlignment:function(n){return arguments.length===1?(this._horizontalAlignment=n,n):this._horizontalAlignment},_verticalAlignment:null,verticalAlignment:function(n){return arguments.length===1?(this._verticalAlignment=n,n):this._verticalAlignment},_textAlignment:null,textAlignment:function(n){return arguments.length===1?(this._textAlignment=n,n):this._textAlignment},_textWrapping:null,textWrapping:function(n){return arguments.length===1?(this._textWrapping=n,n):this._textWrapping},_textPosition:null,textPosition:function(n){return arguments.length===1?(this._textPosition=n,n):this._textPosition},_labelBrush:null,labelBrush:function(n){return arguments.length===1?(this._labelBrush=n,n):this._labelBrush},_labelBrushExtended:null,labelBrushExtended:function(n){return arguments.length===1?(this._labelBrushExtended=n,n):this._labelBrushExtended},_angle:0,angle:function(n){return arguments.length===1?(this._angle=n,n):this._angle},_opacity:0,opacity:function(n){return arguments.length===1?(this._opacity=n,n):this._opacity},_visibility:!1,visibility:function(n){return arguments.length===1?(this._visibility=n,n):this._visibility},_font:null,font:function(n){return arguments.length===1?(this._font=n,n):this._font},_fontFamily:null,fontFamily:function(n){return arguments.length===1?(this._fontFamily=n,n):this._fontFamily},_fontSize:0,fontSize:function(n){return arguments.length===1?(this._fontSize=n,n):this._fontSize},_fontWeight:null,fontWeight:function(n){return arguments.length===1?(this._fontWeight=n,n):this._fontWeight},_fontStyle:null,fontStyle:function(n){return arguments.length===1?(this._fontStyle=n,n):this._fontStyle},_fontStretch:null,fontStretch:function(n){return arguments.length===1?(this._fontStretch=n,n):this._fontStretch},_marginLeft:0,marginLeft:function(n){return arguments.length===1?(this._marginLeft=n,n):this._marginLeft},_marginRight:0,marginRight:function(n){return arguments.length===1?(this._marginRight=n,n):this._marginRight},_marginTop:0,marginTop:function(n){return arguments.length===1?(this._marginTop=n,n):this._marginTop},_marginBottom:0,marginBottom:function(n){return arguments.length===1?(this._marginBottom=n,n):this._marginBottom},serialize:function(){var n=new t.gj;return n.f("{"),n.f("text: '"+(this.text()!=null?this.text():"")+"', "),this.textAlignment()!=null&&n.f('textAlignment: "'+this.textAlignment()+'", '),this.textWrapping()!=null&&n.f('textWrapping: "'+this.textWrapping()+'", '),n.f("labelBrush: "+(this.labelBrush()!=null?t.$hv.serializeColor(this.labelBrush()):"null")+", "),n.f("labelBrushExtended: "+(this.labelBrushExtended()!=null?this.labelBrushExtended().serialize():"null")+", "),n.f("angle: "+this.angle()+", "),n.f("marginLeft: "+this.marginLeft()+", "),n.f("marginRight: "+this.marginRight()+", "),n.f("marginTop: "+this.marginTop()+", "),n.f("marginBottom: "+this.marginBottom()+", "),n.f("opacity: "+this.opacity()+", "),n.f("visibility: "+(this.visibility()?"true":"false")+", "),this.horizontalAlignment()!=null&&n.f('horizontalAlignment: "'+this.horizontalAlignment()+'", '),this.verticalAlignment()!=null&&n.f('verticalAlignment: "'+this.verticalAlignment()+'", '),this.font()!=null&&n.f('font: "'+this.font()+'",'),this.fontFamily()!=null&&n.f('fontFamily: "'+this.fontFamily()+'",'),n.f('fontWeight: "'+this.fontWeight()+'",'),n.f('fontStyle: "'+this.fontStyle()+'",'),n.f('fontStretch: "'+this.fontStretch()+'",'),n.f("fontSize: "+this.fontSize()),n.f("}"),n.b()},$type:new n.ig.Type("LabelAppearanceData",n.ig.$ot,[t.$hq.$type])},!0);n.ig.util.defType("LabelAppearanceDataList:id","List$1",{init:function(){t.$c.init.call(this,t.$ib.$type)},serialize:function(){var i=new t.gj,n;for(i.d("{ items: ["),n=0;n<this.count();n++)n!=0&&i.d(", "),i.d(this.__inner[n].serialize());return i.b()},$type:new n.ig.Type("LabelAppearanceDataList",t.$c.$type.specialize(t.$ib.$type),[t.$hq.$type])},!0);n.ig.util.defType("BrushAppearanceData:hu","Object",{init:function(){n.ig.$op.init.call(this)},type:function(){},serialize:function(){return'{ type: "'+this.type()+'", '+this.a()+" }"},a:function(){return""},$type:new n.ig.Type("BrushAppearanceData",n.ig.$ot,[t.$hq.$type])},!0);n.ig.util.defType("SolidBrushAppearanceData:hy","BrushAppearanceData",{init:function(){t.$hu.init.call(this)},type:function(){return"solid"},_colorValue:null,colorValue:function(n){return arguments.length===1?(this._colorValue=n,n):this._colorValue},a:function(){return"colorValue: "+(this.colorValue()!=null?t.$hv.serializeColor(this.colorValue()):"null")},$type:new n.ig.Type("SolidBrushAppearanceData",t.$hu.$type)},!0);n.ig.util.defType("LinearGradientBrushAppearanceData:hw","BrushAppearanceData",{init:function(){t.$hu.init.call(this);this.stops(new t.c(t.$hx.$type,0))},type:function(){return"linear"},_startX:0,startX:function(n){return arguments.length===1?(this._startX=n,n):this._startX},_startY:0,startY:function(n){return arguments.length===1?(this._startY=n,n):this._startY},_endX:0,endX:function(n){return arguments.length===1?(this._endX=n,n):this._endX},_endY:0,endY:function(n){return arguments.length===1?(this._endY=n,n):this._endY},_stops:null,stops:function(n){return arguments.length===1?(this._stops=n,n):this._stops},a:function(){var n=new t.gj,i;for(n.d("startX: "+this.startX()+", endX: "+this.endX()+", startY: "+this.startY()+", endY: "+this.endY()),n.d(", stops: ["),i=0;i<this.stops().count();i++)i>0&&n.d(", "),n.d(this.stops().__inner[i].serialize());return n.d("]"),n.b()},$type:new n.ig.Type("LinearGradientBrushAppearanceData",t.$hu.$type)},!0);n.ig.util.defType("GradientStopAppearanceData:hx","Object",{init:function(){n.ig.$op.init.call(this)},_colorValue:null,colorValue:function(n){return arguments.length===1?(this._colorValue=n,n):this._colorValue},_offset:0,offset:function(n){return arguments.length===1?(this._offset=n,n):this._offset},serialize:function(){return"{ colorValue: "+(this.colorValue()!=null?t.$hv.serializeColor(this.colorValue()):"null")+", offset: "+this.offset()+" }"},$type:new n.ig.Type("GradientStopAppearanceData",n.ig.$ot,[t.$hq.$type])},!0);n.ig.util.defType("PrimitiveAppearanceData:ht","Object",{init:function(){n.ig.$op.init.call(this)},_stroke:null,stroke:function(n){return arguments.length===1?(this._stroke=n,n):this._stroke},_strokeExtended:null,strokeExtended:function(n){return arguments.length===1?(this._strokeExtended=n,n):this._strokeExtended},_fill:null,fill:function(n){return arguments.length===1?(this._fill=n,n):this._fill},_fillExtended:null,fillExtended:function(n){return arguments.length===1?(this._fillExtended=n,n):this._fillExtended},_strokeThickness:0,strokeThickness:function(n){return arguments.length===1?(this._strokeThickness=n,n):this._strokeThickness},_visibility:null,visibility:function(n){return arguments.length===1?(this._visibility=n,n):this._visibility},_opacity:0,opacity:function(n){return arguments.length===1?(this._opacity=n,n):this._opacity},_canvasLeft:0,canvasLeft:function(n){return arguments.length===1?(this._canvasLeft=n,n):this._canvasLeft},_canvasTop:0,canvasTop:function(n){return arguments.length===1?(this._canvasTop=n,n):this._canvasTop},_canvaZIndex:0,canvaZIndex:function(n){return arguments.length===1?(this._canvaZIndex=n,n):this._canvaZIndex},_dashArray:null,dashArray:function(n){return arguments.length===1?(this._dashArray=n,n):this._dashArray},_dashCap:0,dashCap:function(n){return arguments.length===1?(this._dashCap=n,n):this._dashCap},j:function(n){this.canvasLeft((this.canvasLeft()-n.left())/n.width());this.canvasTop((this.canvasTop()-n.top())/n.height())},serialize:function(){var n=new t.gj;return n.f("{"),n.f("stroke: "+(this.stroke()!=null?t.$hv.serializeColor(this.stroke()):"null")+", "),n.f("fill: "+(this.fill()!=null?t.$hv.serializeColor(this.fill()):"null")+", "),n.f("strokeExtended: "+(this.strokeExtended()!=null?this.strokeExtended().serialize():"null")+", "),n.f("fillExtended: "+(this.fillExtended()!=null?this.fillExtended().serialize():"null")+", "),n.f("strokeThickness: "+this.strokeThickness()+", "),n.f("visibility: "+(this.visibility()==0?"true":"false")+", "),n.f("opacity: "+this.opacity()+", "),n.f("canvasLeft: "+this.canvasLeft()+", "),n.f("canvasTop: "+this.canvasTop()+", "),n.f("canvasZIndex: "+this.canvaZIndex()+", "),n.f("dashArray: null, "),n.f("dashCap: "+this.dashCap()),n.f("}"),n.b()},$type:new n.ig.Type("PrimitiveAppearanceData",n.ig.$ot,[t.$hq.$type])},!0);n.ig.util.defType("GetPointsSettings:h1","Object",{init:function(){n.ig.$op.init.call(this)},_ignoreFigureStartPoint:!1,ignoreFigureStartPoint:function(n){return arguments.length===1?(this._ignoreFigureStartPoint=n,n):this._ignoreFigureStartPoint},$type:new n.ig.Type("GetPointsSettings",n.ig.$ot)},!0);n.ig.util.defType("RectangleVisualData:ie","PrimitiveVisualData",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$hs.init1.call(this,1,"rect1")},_width:0,width:function(n){return arguments.length===1?(this._width=n,n):this._width},_height:0,height:function(n){return arguments.length===1?(this._height=n,n):this._height},_radiusX:0,radiusX:function(n){return arguments.length===1?(this._radiusX=n,n):this._radiusX},_radiusY:0,radiusY:function(n){return arguments.length===1?(this._radiusY=n,n):this._radiusY},e:function(){return"width: "+this.width()+", height: "+this.height()+", radiusX: "+this.radiusX()+", radiusY: "+this.radiusY()},init1:function(n,i,r){t.$hs.init1.call(this,1,i);this.width(r.width());this.height(r.height());this.radiusX(r.ai());this.radiusY(r.aj());t.$hv.getShapeAppearance(this.appearance(),r)},type:function(){return"Rectangle"},scaleByViewport:function(n){t.$hs.scaleByViewport.call(this,n);this.width(this.width()/n.width());this.height(this.height()/n.height())},getPointsOverride:function(i){var r=new t.c(t.$bm.$type,0);i.add(r);r.add({__x:this.appearance().canvasLeft(),__y:this.appearance().canvasTop(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r.add({__x:this.appearance().canvasLeft()+this.width(),__y:this.appearance().canvasTop(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r.add({__x:this.appearance().canvasLeft()+this.width(),__y:this.appearance().canvasTop()+this.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r.add({__x:this.appearance().canvasLeft(),__y:this.appearance().canvasTop()+this.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("RectangleVisualData",t.$hs.$type)},!0);n.ig.util.defType("ShapeTags:ic","List$1",{init:function(){t.$c.init.call(this,String)},$type:new n.ig.Type("ShapeTags",t.$c.$type.specialize(String))},!0);n.ig.util.defType("LineVisualData:ig","PrimitiveVisualData",{type:function(){return"Line"},init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$hs.init1.call(this,1,"line1")},init1:function(n,i,r){t.$hs.init1.call(this,1,i);this.x1(r.ag());this.y1(r.ai());this.x2(r.ah());this.y2(r.aj());t.$hv.getShapeAppearance(this.appearance(),r)},_x1:0,x1:function(n){return arguments.length===1?(this._x1=n,n):this._x1},_y1:0,y1:function(n){return arguments.length===1?(this._y1=n,n):this._y1},_x2:0,x2:function(n){return arguments.length===1?(this._x2=n,n):this._x2},_y2:0,y2:function(n){return arguments.length===1?(this._y2=n,n):this._y2},e:function(){return"x1: "+this.x1()+", y1: "+this.y1()+", x2: "+this.x2()+", y2: "+this.y2()},scaleByViewport:function(n){t.$hs.scaleByViewport.call(this,n);this.x1((this.x1()-n.left())/n.width());this.y1((this.y1()-n.top())/n.height())},getPointsOverride:function(i){var r=new t.c(t.$bm.$type,0);i.add(r);r.add({__x:this.x1(),__y:this.y1(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r.add({__x:this.x2(),__y:this.y2(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("LineVisualData",t.$hs.$type)},!0);n.ig.util.defType("PolyLineVisualData:ih","PrimitiveVisualData",{type:function(){return"Polyline"},init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$hs.init1.call(this,1,"polyLine1");this.points(new t.c(t.$bm.$type,0))},init1:function(n,i,r){t.$hs.init1.call(this,1,i);this.points(new t.c(t.$bm.$type,0));for(var u=0;u<r.ag().count();u++)this.points().add(r.ag().__inner[u]);t.$hv.getShapeAppearance(this.appearance(),r)},_points:null,points:function(n){return arguments.length===1?(this._points=n,n):this._points},e:function(){var i=new t.gj,n;for(i.f("points: ["),n=0;n<this.points().count();n++)n!=0&&i.d(", "),i.d("{ x: "+this.points().__inner[n].__x+", y: "+this.points().__inner[n].__y+"}");return i.f("]"),i.b()},scaleByViewport:function(i){t.$hs.scaleByViewport.call(this,i);for(var r=0;r<this.points().count();r++)this.points().__inner[r]={__x:(this.points().__inner[r].__x-i.left())/i.width(),__y:(this.points().__inner[r].__y-i.top())/i.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getPointsOverride:function(n){var r=new t.c(t.$bm.$type,0),i;for(n.add(r),i=0;i<this.points().count();i++)r.add(this.points().__inner[i])},$type:new n.ig.Type("PolyLineVisualData",t.$hs.$type)},!0);n.ig.util.defType("PolygonVisualData:ii","PrimitiveVisualData",{type:function(){return"Polygon"},init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$hs.init1.call(this,1,"polygon1");this.points(new t.c(t.$bm.$type,0))},init1:function(n,i,r){t.$hs.init1.call(this,1,i);this.points(new t.c(t.$bm.$type,0));for(var u=0;u<r.ag().count();u++)this.points().add(r.ag().__inner[u]);t.$hv.getShapeAppearance(this.appearance(),r)},_points:null,points:function(n){return arguments.length===1?(this._points=n,n):this._points},e:function(){var i=new t.gj,n;for(i.f("points: ["),n=0;n<this.points().count();n++)n!=0&&i.d(", "),i.d("{ x: "+this.points().__inner[n].__x+", y: "+this.points().__inner[n].__y+"}");return i.f("]"),i.b()},scaleByViewport:function(i){t.$hs.scaleByViewport.call(this,i);for(var r=0;r<this.points().count();r++)this.points().__inner[r]={__x:(this.points().__inner[r].__x-i.left())/i.width(),__y:(this.points().__inner[r].__y-i.top())/i.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getPointsOverride:function(n){var r=new t.c(t.$bm.$type,0),i;for(n.add(r),i=0;i<this.points().count();i++)r.add(this.points().__inner[i])},$type:new n.ig.Type("PolygonVisualData",t.$hs.$type)},!0);n.ig.util.defType("PathVisualData:ij","PrimitiveVisualData",{type:function(){return"Path"},init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$hs.init1.call(this,1,"path1");this.data(new t.c(t.$h0.$type,0))},init1:function(n,i,r){t.$hs.init1.call(this,1,i);this.data(t.$hv.fromGeometry(r.ak()));t.$hv.getShapeAppearance(this.appearance(),r)},_data:null,data:function(n){return arguments.length===1?(this._data=n,n):this._data},e:function(){var i=new t.gj,n;for(i.f("data: ["),n=0;n<this.data().count();n++)n!=0&&i.d(", "),i.d(this.data().__inner[n]!=null?this.data().__inner[n].serialize():"null");return i.f("]"),i.b()},scaleByViewport:function(n){var i,r;for(t.$hs.scaleByViewport.call(this,n),i=this.data().getEnumerator();i.moveNext();)r=i.current(),r.scaleByViewport(n)},getPointsOverride:function(n,t){for(var r,i=0;i<this.data().count();i++)r=this.data().__inner[i],r.getPointsOverride(n,t)},$type:new n.ig.Type("PathVisualData",t.$hs.$type)},!0);n.ig.util.defType("GeometryData:h0","Object",{init:function(){n.ig.$op.init.call(this)},type:function(){},scaleByViewport:function(){},getPointsOverride:function(){},serialize:function(){return"{ type: '"+this.type()+"', "+this.a()+"}"},a:function(){return""},$type:new n.ig.Type("GeometryData",n.ig.$ot,[t.$hq.$type])},!0);n.ig.util.defType("PathGeometryData:h4","GeometryData",{init:function(){t.$h0.init.call(this);this.figures(new t.c(t.$h5.$type,0))},type:function(){return"Path"},_figures:null,figures:function(n){return arguments.length===1?(this._figures=n,n):this._figures},a:function(){var n=new t.gj,i;for(n.f("figures: ["),i=0;i<this.figures().count();i++)i!=0&&n.d(", "),n.d(this.figures().__inner[i].serialize());return n.f("]"),n.b()},scaleByViewport:function(n){for(var t=this.figures().getEnumerator(),i;t.moveNext();)i=t.current(),i.d(n)},getPointsOverride:function(n,t){for(var r,i=0;i<this.figures().count();i++)r=this.figures().__inner[i],r.getPointsOverride(n,t)},$type:new n.ig.Type("PathGeometryData",t.$h0.$type)},!0);n.ig.util.defType("LineGeometryData:h3","GeometryData",{init:function(){t.$h0.init.call(this)},type:function(){return"Line"},_x1:0,x1:function(n){return arguments.length===1?(this._x1=n,n):this._x1},_y1:0,y1:function(n){return arguments.length===1?(this._y1=n,n):this._y1},_x2:0,x2:function(n){return arguments.length===1?(this._x2=n,n):this._x2},_y2:0,y2:function(n){return arguments.length===1?(this._y2=n,n):this._y2},a:function(){return"x1: "+this.x1()+", y1: "+this.y1()+", x2: "+this.x2()+", y2:"+this.y2()},scaleByViewport:function(n){this.x1((this.x1()-n.left())/n.width());this.y1((this.y1()-n.top())/n.height());this.x2((this.x2()-n.left())/n.width());this.y2((this.y2()-n.top())/n.height())},getPointsOverride:function(i){var r=new t.c(t.$bm.$type,0);i.add(r);r.add({__x:this.x1(),__y:this.y1(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r.add({__x:this.x2(),__y:this.y2(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("LineGeometryData",t.$h0.$type)},!0);n.ig.util.defType("RectangleGeometryData:h2","GeometryData",{init:function(){t.$h0.init.call(this)},type:function(){return"Rectangle"},_x:0,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_y:0,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_width:0,width:function(n){return arguments.length===1?(this._width=n,n):this._width},_height:0,height:function(n){return arguments.length===1?(this._height=n,n):this._height},a:function(){return"x: "+this.x()+", y: "+this.y()+", width: "+this.width()+", height: "+this.height()},scaleByViewport:function(n){this.x((this.x()-n.left())/n.width());this.y((this.y()-n.top())/n.height());this.width(this.width()/n.width());this.height(this.height()/n.height())},getPointsOverride:function(i){var r=new t.c(t.$bm.$type,0);i.add(r);r.add({__x:this.x(),__y:this.y(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r.add({__x:this.x()+this.width(),__y:this.y(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r.add({__x:this.x()+this.width(),__y:this.y()+this.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r.add({__x:this.x(),__y:this.y()+this.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("RectangleGeometryData",t.$h0.$type)},!0);n.ig.util.defType("EllipseGeometryData:hz","GeometryData",{init:function(){t.$h0.init.call(this)},type:function(){return"Ellipse"},_centerX:0,centerX:function(n){return arguments.length===1?(this._centerX=n,n):this._centerX},_centerY:0,centerY:function(n){return arguments.length===1?(this._centerY=n,n):this._centerY},_radiusX:0,radiusX:function(n){return arguments.length===1?(this._radiusX=n,n):this._radiusX},_radiusY:0,radiusY:function(n){return arguments.length===1?(this._radiusY=n,n):this._radiusY},a:function(){return"centerX: "+this.centerX()+", centerY: "+this.centerY()+", radiusX: "+this.radiusX()+", radiusY: "+this.radiusY()},scaleByViewport:function(n){this.centerX((this.centerX()-n.left())/n.width());this.centerX((this.centerY()-n.top())/n.height());this.radiusX(this.radiusX()/n.width());this.radiusY(this.radiusY()/n.height())},getPointsOverride:function(i){var r=new t.c(t.$bm.$type,0);i.add(r);r.add({__x:this.centerX(),__y:this.centerY(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("EllipseGeometryData",t.$h0.$type)},!0);n.ig.util.defType("PathFigureData:h5","Object",{init:function(i){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}n.ig.$op.init.call(this);this.segments(new t.c(t.$h7.$type,0));this.startPoint(new t.bm(0))},init1:function(i,r){var e,u,f;for(n.ig.$op.init.call(this),this.segments(new t.c(t.$h7.$type,0)),this.startPoint(r.__startPoint),e=0;e<r.__segments.count();e++){u=r.__segments.__inner[e];f=null;switch(u.a()){case 0:f=new t.h6(1,u);break;case 3:f=new t.h8(1,u);break;case 4:f=new t.h9(1,u);break;case 2:f=new t.ia(1,u)}this.segments().add(f)}},_startPoint:null,startPoint:function(n){return arguments.length===1?(this._startPoint=n,n):this._startPoint},_segments:null,segments:function(n){return arguments.length===1?(this._segments=n,n):this._segments},serialize:function(){var n=new t.gj,i;for(n.f("{"),n.f("startPoint: { x: "+this.startPoint().__x+", y: "+this.startPoint().__y+"}, "),n.f("segments: ["),i=0;i<this.segments().count();i++)i!=0&&n.d(", "),n.d(this.segments().__inner[i].serialize());return n.f("]"),n.f("}"),n.b()},d:function(t){this.startPoint({__x:(this.startPoint().__x-t.left())/t.width(),__y:(this.startPoint().__y-t.top())/t.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});for(var i=0;i<this.segments().count();i++)this.segments().__inner[i].scaleByViewport(t)},getPointsOverride:function(i,r){var f=new t.c(t.$bm.$type,0),u;for(i.add(f),r.ignoreFigureStartPoint()||f.add({__x:this.startPoint().__x,__y:this.startPoint().__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u=0;u<this.segments().count();u++)this.segments().__inner[u].getPointsOverride(f,r)},$type:new n.ig.Type("PathFigureData",n.ig.$ot,[t.$hq.$type])},!0);n.ig.util.defType("SegmentData:h7","Object",{init:function(){n.ig.$op.init.call(this)},type:function(){},scaleByViewport:function(){},getPointsOverride:function(){},serialize:function(){var n=new t.gj;return n.f("{"),n.f("type: '"+this.type()+"', "),n.f(this.a()),n.f("}"),n.b()},a:function(){return""},$type:new n.ig.Type("SegmentData",n.ig.$ot,[t.$hq.$type])},!0);n.ig.util.defType("LineSegmentData:h6","SegmentData",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$h7.init.call(this);this.point(new t.bm(0))},init1:function(n,i){t.$h7.init.call(this);this.point(i.c())},type:function(){return"Line"},_point:null,point:function(n){return arguments.length===1?(this._point=n,n):this._point},a:function(){return"point: { x: "+this.point().__x+", y: "+this.point().__y+"}"},scaleByViewport:function(t){this.point({__x:(this.point().__x-t.left())/t.width(),__y:(this.point().__y-t.top())/t.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},getPointsOverride:function(t){t.add({__x:this.point().__x,__y:this.point().__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("LineSegmentData",t.$h7.$type)},!0);n.ig.util.defType("PolylineSegmentData:h8","SegmentData",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$h7.init.call(this);this.points(new t.c(t.$bm.$type,0))},init1:function(n,i){t.$h7.init.call(this);this.points(new t.c(t.$bm.$type,0));for(var r=0;r<i.__points.count();r++)this.points().add(i.__points.__inner[r])},type:function(){return"Polyline"},_points:null,points:function(n){return arguments.length===1?(this._points=n,n):this._points},a:function(){var i=new t.gj,n;for(i.f("points: ["),n=0;n<this.points().count();n++)n!=0&&i.d(", "),i.d("{ x: "+this.points().__inner[n].__x+", y: "+this.points().__inner[n].__y+"}");return i.f("]"),i.b()},scaleByViewport:function(t){for(var i=0;i<this.points().count();i++)this.points().__inner[i]={__x:(this.points().__inner[i].__x-t.left())/t.width(),__y:(this.points().__inner[i].__y-t.top())/t.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getPointsOverride:function(t){for(var i=0;i<this.points().count();i++)t.add({__x:this.points().__inner[i].__x,__y:this.points().__inner[i].__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("PolylineSegmentData",t.$h7.$type)},!0);n.ig.util.defType("PolyBezierSegmentData:ia","SegmentData",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$h7.init.call(this);this.points(new t.c(t.$bm.$type,0))},init1:function(n,i){t.$h7.init.call(this);this.points(new t.c(t.$bm.$type,0));for(var r=0;r<i.b().count();r++)this.points().add(i.b().__inner[r])},type:function(){return"PolyBezierSpline"},_points:null,points:function(n){return arguments.length===1?(this._points=n,n):this._points},a:function(){var i=new t.gj,n;for(i.f("points: ["),n=0;n<this.points().count();n++)n!=0&&i.d(", "),i.d("{ x: "+this.points().__inner[n].__x+", y: "+this.points().__inner[n].__y+"}");return i.f("]"),i.b()},scaleByViewport:function(t){for(var i=0;i<this.points().count();i++)this.points().__inner[i]={__x:(this.points().__inner[i].__x-t.left())/t.width(),__y:(this.points().__inner[i].__y-t.top())/t.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getPointsOverride:function(t){for(var i=0;i<this.points().count();i++)t.add({__x:this.points().__inner[i].__x,__y:this.points().__inner[i].__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("PolyBezierSegmentData",t.$h7.$type)},!0);n.ig.util.defType("ArcSegmentData:h9","SegmentData",{init:function(n){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$h7.init.call(this);this.point(new t.bm(0));this.isLargeArc(!1);this.isCounterClockwise(!0);this.rotationAngle(0)},init1:function(n,i){t.$h7.init.call(this);this.point(i.d());this.isLargeArc(i.b());this.isCounterClockwise(i.e()==0);this.sizeX(i.f().b());this.sizeY(i.f().a());this.rotationAngle(i.c())},type:function(){return"Arc"},_point:null,point:function(n){return arguments.length===1?(this._point=n,n):this._point},_isLargeArc:!1,isLargeArc:function(n){return arguments.length===1?(this._isLargeArc=n,n):this._isLargeArc},_isCounterClockwise:!1,isCounterClockwise:function(n){return arguments.length===1?(this._isCounterClockwise=n,n):this._isCounterClockwise},_sizeX:0,sizeX:function(n){return arguments.length===1?(this._sizeX=n,n):this._sizeX},_sizeY:0,sizeY:function(n){return arguments.length===1?(this._sizeY=n,n):this._sizeY},_rotationAngle:0,rotationAngle:function(n){return arguments.length===1?(this._rotationAngle=n,n):this._rotationAngle},a:function(){return"point: { x: "+this.point().__x+", y: "+this.point().__y+" }, isLargeArc: "+(this.isLargeArc()?"true":"false")+", isCounterClockwise: "+(this.isCounterClockwise()?"true":"false")+", sizeX: "+this.sizeX()+", sizeY: "+this.sizeY()+", rotationAngle: "+this.rotationAngle()},scaleByViewport:function(t){this.point({__x:(this.point().__x-t.left())/t.width(),__y:(this.point().__y-t.top())/t.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.sizeX(this.sizeX()/t.width());this.sizeY(this.sizeY()/t.height())},getPointsOverride:function(t){t.add({__x:this.point().__x,__y:this.point().__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("ArcSegmentData",t.$h7.$type)},!0);n.ig.util.defType("AppearanceHelper:hv","Object",{init:function(){n.ig.$op.init.call(this)},fromBrush:function(n){return n==null?t.$a5.n(0,0,0,0):n.color()==null?t.$a5.n(0,0,0,0):n.color()},fromBrushExtended:function(n){var i,r,u,e,f,o;if(n==null)return null;if(n._isGradient){for(i=new t.hw,r=n,i.startX(r._startX),i.startY(r._startY),i.endX(r._endX),i.endY(r._endY),u=0;u<r._gradientStops.length;u++)e=r._gradientStops[u],f=new t.hx,f.colorValue(e.color()),f.offset(e._offset),i.stops().add(f);return i}return n._isRadialGradient?null:(o=new t.hy,o.colorValue(n.color()),o)},getCanvasLeft:function(n){return n.l()},getCanvasTop:function(n){return n.m()},getCanvasZIndex:function(n){return n.q()},fromPathData:function(n){return t.$hv.fromGeometry(n.ak())},fromGeometry:function(i){var f,e,r,o,u;if(i==null)return new t.c(t.$h0.$type,0);if(n.ig.util.cast(t.$ew.$type,i)!==null){for(f=new t.c(t.$h0.$type,0),e=i,r=0;r<e.c().count();r++)for(o=t.$hv.fromGeometry(e.c().__inner[r]),u=0;u<o.count();u++)f.add(o.__inner[u]);return f}if(n.ig.util.cast(t.$ez.$type,i)!==null)return t.$hv.i(i);if(n.ig.util.cast(t.$e1.$type,i)!==null)return t.$hv.g(i);if(n.ig.util.cast(t.$e2.$type,i)!==null)return t.$hv.j(i);if(n.ig.util.cast(t.$e3.$type,i)!==null)return t.$hv.e(i);throw new t.db(1,"not supported");},e:function(n){var r=new t.c(t.$h0.$type,0),i=new t.hz;return r.add(i),i.centerX(n.d().__x),i.centerY(n.d().__y),i.radiusX(n.b()),i.radiusY(n.c()),r},j:function(n){var r=new t.c(t.$h0.$type,0),i=new t.h2;return r.add(i),i.x(n.d().x()),i.y(n.d().y()),i.width(n.d().width()),i.height(n.d().height()),r},g:function(n){var r=new t.c(t.$h0.$type,0),i=new t.h3;return r.add(i),i.x1(n.c().__x),i.y1(n.c().__y),i.x2(n.b().__x),i.y2(n.b().__y),r},i:function(n){var r=new t.c(t.$h0.$type,0),u=new t.h4,i,f,e;for(r.add(u),i=0;i<n.b().count();i++)f=n.b().__inner[i],e=new t.h5(1,f),u.figures().add(e);return r},getShapeAppearance:function(n,i){n.stroke(t.$hv.fromBrush(i.__stroke));n.fill(t.$hv.fromBrush(i.__fill));n.strokeExtended(t.$hv.fromBrushExtended(i.__stroke));n.fillExtended(t.$hv.fromBrushExtended(i.__fill));n.strokeThickness(i.z());n.dashArray(null);i.af()!=null&&n.dashArray(i.af().asArrayList());n.dashCap(i.aa());n.visibility(i.__visibility);n.opacity(i.__opacity);n.canvasLeft(t.$hv.getCanvasLeft(i));n.canvasTop(t.$hv.getCanvasTop(i));n.canvaZIndex(t.$hv.getCanvasZIndex(i))},fromTextElement:function(i,r){var u=new t.ib,f=i,o,e,c,l,s,h,a;if(u.text(f.aa()),u.labelBrush(t.$hv.fromBrush(f.ab())),u.labelBrushExtended(t.$hv.fromBrushExtended(f.ab())),u.visibility(f.__visibility==0?!0:!1),u.opacity(f.__opacity),r.c()!=null&&u.fontFamily(r.c()),isNaN(r.a())||u.fontSize(r.a()),r.g()!=null&&u.fontWeight(r.g()),r.e()!=null&&u.fontStyle(r.e()),r.d()!=null&&u.fontStretch(r.e()),o=0,e=f.h(),n.ig.util.cast(t.$fj.$type,e)!==null)c=n.ig.util.cast(t.$fj.$type,e),o=c.h();else if(n.ig.util.cast(t.$fg.$type,e)!==null)for(l=n.ig.util.cast(t.$fg.$type,e),s=l.h().getEnumerator();s.moveNext();)if(h=s.current(),n.ig.util.cast(t.$fj.$type,h)!==null){a=n.ig.util.cast(t.$fj.$type,h);o=a.h();break}return u.angle(o),u},serializeColor:function(n){return"{ r: "+n.i()+", g: "+n.h()+", b: "+n.g()+", a: "+n.f()+"}"},serializeItems:function(n,t,i,r){var u,f,e;if(i!=null){for(r||n.d(", "),n.d(t),n.d(": ["),u=!1,f=i.getEnumerator();f.moveNext();)e=f.current(),u?n.f(", "):u=!0,n.d(e.serialize());return n.f("]"),!0}return!1},serializeItem:function(n,t,i,r){return i!=null?(r||n.d(", "),n.d(t),n.d(": "),n.f(i.serialize()),!0):!1},$type:new n.ig.Type("AppearanceHelper",n.ig.$ot)},!0);n.ig.util.defType("Tile:ga","Object",{init:function(){n.ig.$op.init.call(this)},b:0,c:0,d:0,f:null,e:null,a:null,g:function(){var n=Math.pow(2,-this.d),i=Math.pow(2,-this.d);return new t.bk(0,this.b*n,this.c*i,n,i)},$type:new n.ig.Type("Tile",n.ig.$ot)},!0);n.ig.util.defType("WriteableBitmap:gb","Object",{init:function(i,r){n.ig.$op.init.call(this);this.b(i);this.a(r);this.d(t.$bk.empty())},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},$type:new n.ig.Type("WriteableBitmap",n.ig.$ot)},!0);n.ig.util.defType("IMapRenderDeferralHandler:gc","Object",{$type:new n.ig.Type("IMapRenderDeferralHandler",null)},!0);n.ig.util.defType("XamMultiScaleImage:f3","Control",{init:function(){this.aq=new t.c(t.$ga.$type,0);this.an=!1;this.ap=new t.c(t.$gg.$type.specialize(t.$ga.$type,t.$gb.$type),0);this.ar=new t.c(t.$ga.$type,0);this.al=!1;t.$d8.init.call(this);this.bx(t.$bk.empty());this.tileScheduler(new t.ek);this.ai(new t.f4(this));this.y(t.$f3.$type);this.a1(this.viewportOrigin());this.at(this.viewportWidth())},ak:null,_ai:null,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},af:null,deferralHandler:function(n){return arguments.length===1?(this.af!=null&&this.af.unRegister(this),this.af=n,this.af!=null&&this.af.register(this,this.bm.runOn(this)),n):this.af},source:function(n){return arguments.length===1?(this.g(t.$f3.sourceProperty,n),n):this.c(t.$f3.sourceProperty)},viewportOrigin:function(n){return arguments.length===1?(this.g(t.$f3.viewportOriginProperty,n),n):this.c(t.$f3.viewportOriginProperty)},_a1:null,a1:function(n){return arguments.length===1?(this._a1=n,n):this._a1},viewportWidth:function(n){return arguments.length===1?(this.g(t.$f3.viewportWidthProperty,n),n):this.c(t.$f3.viewportWidthProperty)},_at:0,at:function(n){return arguments.length===1?(this._at=n,n):this._at},useSprings:function(n){return arguments.length===1?(this.g(t.$f3.useSpringsProperty,n),n):this.c(t.$f3.useSpringsProperty)},springsEasingFunction:function(n){return arguments.length===1?(this.g(t.$f3.springsEasingFunctionProperty,n),n):this.c(t.$f3.springsEasingFunctionProperty)},propertyChanged:null,bf:function(n){this.propertyChanged!=null&&this.propertyChanged(this,n);switch(n.propertyName()){case"Source":this.source()!=null&&(this.source().h=this);this.bk();this.bn();this.bl();break;case"ViewportOrigin":this.bo();break;case"ViewportWidth":this.bo();break;case"UseSprings":this.useSprings()||this.ai().r()}},_az:0,az:function(n){return arguments.length===1?(this._az=n,n):this._az},_a0:0,a0:function(n){return arguments.length===1?(this._a0=n,n):this._a0},bn:function(){this.br();this.source()!=null&&(this.az(t.$ge.h(Math.logBase(this.source().k(),2))),this.a0(t.$ge.h(Math.logBase(this.source().o(),2))))},invalidateTileLayer:function(){this.bk();this.bn();this.bl()},as:null,a2:null,au:0,bo:function(){this.useSprings()?(this.as=t.$ap.now(),this.a2=this.a1(),this.au=this.at(),this.ai().al()):(this.a1(this.viewportOrigin()),this.at(this.viewportWidth()),this.bl())},bp:function(){var f=t.$ap.now().getTime()-this.as.getTime(),e=f/1e3,r=t.$bf.c(e/2,0,1),i=this.springsEasingFunction()!=null?this.springsEasingFunction().ease(r):r,u=1-i;this.at(this.au*u+this.viewportWidth()*i);this.a1({__x:this.a2.__x*u+this.viewportOrigin().__x*i,__y:this.a2.__y*u+this.viewportOrigin().__y*i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r>=1&&this.ai().an();this.bl()},aq:null,ay:function(n,t,i){for(var r=0;r<this.aq.count();++r)if(this.aq.__inner[r].b==n&&this.aq.__inner[r].c==t&&this.aq.__inner[r].d==i)return r;return-1},bm:function(){var i=this,nt,f,o,s,a,r,h,c,u;if(i.an=!1,i.al=!1,i.source()!=null&&i.ai().f()&&i.bx().width()!=0&&i.bx().height()!=0){nt=Math.ceil(i.bx().width()/i.source().k());f=Math.max(1,Math.floor(-Math.logBase(i.at()/nt,2)));f>=i.a0()-8&&(f=i.a0()-9);var tt=Math.round(Math.pow(2,f)),v=i.at(),ft=i.bx().height()*v/i.bx().width(),e=i.source().o()/Math.pow(2,f),l=i.source().n()/Math.pow(2,f),y=Math.max(Math.floor(i.a1().__x*i.source().o()/e),0),et=Math.min(Math.ceil((i.a1().__x+v)*i.source().o()/e),tt),p=Math.max(Math.floor(i.a1().__y*i.source().n()/l),0),ot=Math.min(Math.ceil((i.a1().__y+ft)*i.source().o()/l),tt),st=(y*e-i.a1().__x*i.source().o())/e,ht=(p*l-i.a1().__y*i.source().n())/l,it=v*i.source().o()/e*(i.source().k()/i.bx().width()),w=new t.c(t.$ga.$type,0);for(o=y;o<et;++o)for(s=p;s<ot;++s)a=i.ay(o,s,f),a>=0?(w.add(i.aq.__inner[a]),i.aq.removeAt(a)):w.add(function(){var n=new t.ga;return n.b=o,n.c=s,n.d=f,n}());for(i.ak.e(!0),i.br(),i.aq=w,r=0;r<i.aq.count();++r){if(i.aq.__inner[r].f==null)if(t.$gf.a(i.aq.__inner[r].e==null),i.aq.__inner[r].f=i.ak.n(),i.aq.__inner[r].f.__opacity=1,i.ai().ah(i.aq.__inner[r].f),h=i.ah(i.aq.__inner[r]),h!=null)i.aq.__inner[r].f.z(h);else{for(c=null,u=function(){var n=new t.ga;return n.b=i.aq.__inner[r].b,n.c=i.aq.__inner[r].c,n.d=i.aq.__inner[r].d,n}();u.d>=0&&c==null;)u.b=u.b>>1,u.c=u.c>>1,u.d=u.d-1,c=i.ah(u);if(c!=null){var b=Math.pow(2,i.aq.__inner[r].d-u.d),k=n.ig.intDivide(256,b),ct=k*(i.aq.__inner[r].b%b),lt=k*(i.aq.__inner[r].c%b);i.aq.__inner[r].e=i.ak.n();i.aq.__inner[r].e.__opacity=1;i.ai().ai(i.aq.__inner[r].e);h=i.ai().a(k,c,ct,lt);i.aq.__inner[r].e.z(h)}i.ai().s(i.aq.__inner[r])}var d=i.source().k()/it,g=i.source().i()/it,rt=(i.aq.__inner[r].b-y+st)*d,ut=(i.aq.__inner[r].c-p+ht)*g;i.aq.__inner[r].f.width(d+.5);i.aq.__inner[r].f.height(g+.5);i.ai().aj(i.aq.__inner[r].f,rt,ut);i.aq.__inner[r].e!=null&&(i.aq.__inner[r].e.width(d+.5),i.aq.__inner[r].e.height(g+.5),i.ai().aj(i.aq.__inner[r].e,rt,ut))}i.ak.e(!1);i.ai().ae()}},an:!1,bl:function(){this.source()!=null&&this.ai().f()&&this.bx().width()!=0&&this.bx().height()!=0&&(this.an||(this.an=!0,this.ai().q(this.bm.runOn(this))))},br:function(){for(var n=0;n<this.aq.count();++n)this.ai().p(this.aq.__inner[n]),this.ba(this.aq.__inner[n]),this.aq.__inner[n].f!=null&&(this.ak.m(this.aq.__inner[n].f),this.aq.__inner[n].f.z(null),this.aq.__inner[n].f=null),t.$gf.a(this.aq.__inner[n].f==null),t.$gf.a(this.aq.__inner[n].e==null)},bk:function(){this.ap.clear()},ah:function(n){for(var t=0;t<this.ap.count();++t)if(this.ap.__inner[t].a().b==n.b&&this.ap.__inner[t].a().c==n.c&&this.ap.__inner[t].a().d==n.d)return this.ap.__inner[t].b();return null},a9:function(n,i){this.ap.add(new t.gg(t.$ga.$type,t.$gb.$type,n,i))},ap:null,ar:null,am:function(){return this.ar.count()!=0},imageTilesReady:null,al:!1,bd:function(){var n=!0;this.am()&&(n=!1);this.ai().d()||(n=!1);n&&!this.al&&this.imageTilesReady!=null&&this.imageTilesReady(this,new t.ax);this.al=n},bq:function(n){t.$gf.a(n.f!=null);n.e!=null?(n.a=t.$ap.now(),this.ar.add(n),this.ai().ak()):this.bd()},ba:function(n){if(n.e!=null){this.ak.m(n.e);n.e.z(null);n.e=null;for(var i=0;i<this.ar.count();++i)if(this.ar.__inner[i]==n){this.ar.removeAt(i);break}this.ar.count()==0&&this.ai().am();t.$gf.a(n.e==null)}},bb:function(){for(var r=t.$ap.now(),n=0;n<this.ar.count();){var u=r.getTime()-this.ar.__inner[n].a.getTime(),f=u/1e3,i=f/.5;i=t.$bf.c(i,0,1);this.ar.__inner[n].e.__opacity=1-i;i>=1?(this.ak.m(this.ar.__inner[n].e),this.ar.__inner[n].e.z(null),this.ar.__inner[n].e=null,this.ar.removeAt(n)):++n;this.ai().v()}this.ar.count()==0&&this.ai().am()},_bx:null,bx:function(n){return arguments.length===1?(this._bx=n,n):this._bx},bg:function(){this.at(this.viewportWidth());this.a1(this.viewportOrigin());this.bl()},provideContainer:function(n){this.ai().aa(n)},provideContext:function(n){this.ai().ac(n)},provideViewport:function(n){this.ai().ad(n)},_tileScheduler:null,tileScheduler:function(n){return arguments.length===1?(this._tileScheduler=n,n):this._tileScheduler},be:function(){this.imagesChanged!=null&&this.imagesChanged(this,new t.ax)},imagesChanged:null,$type:new n.ig.Type("XamMultiScaleImage",t.$d8.$type,[t.$az.$type])},!0);n.ig.util.defType("Pair$2:gg","Object",{$t1:null,$t2:null,init:function(t,i,r,u){this.$t1=t;this.$t2=i;this.$type=this.$type.specialize(this.$t1,this.$t2);n.ig.$op.init.call(this);this.a(r);this.b(u)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("Pair$2",n.ig.$ot)},!0);n.ig.util.defType("IEasingFunction:gd","Object",{$type:new n.ig.Type("IEasingFunction",null)},!0);n.ig.util.defType("XamMultiScaleImageView:f4","Object",{_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},init:function(i){var r=this,u;for(this.h=new t.c(t.$ga.$type,0),this.g=new t.c(t.$ga.$type,0),this.l=-1,this.k=-1,this.ap=t.$bk.empty(),n.ig.$op.init.call(this),this.b(i),this.b().tileScheduler().h(this),this.i(new t.c(t.$f9.$type,0)),this.b().ak=function(){var n=new t.f5(t.$f9.$type);return n.i(r.ao.runOn(r)),n.a(r.w.runOn(r)),n.b(r.y.runOn(r)),n.c(r.x.runOn(r)),n}(),u=0;u<4;++u)this.g.add(null)},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},ao:function(){return new t.f9},w:function(n){this.i().add(n)},y:function(n){this.i().remove(n)},x:function(){},aj:function(n,t,i){n.l(t);n.m(i)},p:function(t){for(var r,i=0;i<this.g.count();++i)if(t==this.g.__inner[i]){if(t.f!=null&&t.f.z()!=null){var f=t.f.z(),e=f.c(),u=n(e);u.unbind("load");u.unbind("readystatechange")}this.g.__inner[i]=null;return}for(r=0;r<this.h.count();++r)if(this.h.__inner[r]==t){this.h.removeAt(r);break}},s:function(n){var t=this;t.h.add(n);t.h.sort1(function(n,t){var i=0,r=0;return(n.e!=null&&(i=n.e.z().b()),t.e!=null&&(r=t.e.z().b()),i<r)?-1:i>r?1:0});t.o()},o:function(){var i=-1,r,f,u,e,o,s;if(this.h.count()>0)for(r=0;r<this.g.count();++r)if(this.g.__inner[r]==null){i=r;break}i>=0&&(this.g.__inner[i]=this.h.__inner[0],f=new t.gb(this.b().source().k(),this.b().source().i()),this.g.__inner[i].f.z(f),u=n("<img><\/img>"),e=u[0],f.c(e),o=this,u.bind("load readystatechange",function(n){(this.complete||this.readyState=="complete"&&n.type=="readystatechange")&&o.downloadCompleted(n,i)}),u.bind("error",function(n){o.downloadError(n,i)}),this.h.removeAt(0),s=this.b().source().p(this.g.__inner[i].d+8,this.g.__inner[i].b,this.g.__inner[i].c),e.src=s.value())},h:null,g:null,downloadError:function(t,i){var r=this.g.__inner[i],u;this.g.__inner[i]=null;r!=null&&r.f!=null&&r.f.z()!=null&&(u=n(r.f.z()),u.unbind("load"),u.unbind("readystatechange"));this.o();this.z()},downloadCompleted:function(t,i){var r=this.g.__inner[i],u=!0,f,e;if(r!=null&&r.f!=null&&r.f.z()!=null&&(u=!1,f=r.f.z().c(),f.complete||(u=!0),f.width==0&&f.height==0&&(u=!0)),this.g.__inner[i]=null,u){this.o();this.z();return}e=n(r.f.z());e.unbind("load");e.unbind("readystatechange");this.b().a9(r,r.f.z());r.f!=null&&this.b().bq(r);this.o();this.z()},a:function(n,i,r,u){var f=new t.gb(n,n);return f.c(i.c()),i.d().isEmpty()||(r+=Math.round(i.d().left()),u+=Math.round(i.d().top())),f.d(new t.bk(0,r,u,n,n)),f},ah:function(n){n.q(0)},ai:function(n){n.q(1)},f:function(){return!0},q:function(n){this.b().deferralHandler()!=null?this.b().deferralHandler().deferredRefresh():window.setTimeout(n,0)},l:0,k:0,al:function(){this.l==-1&&(this.l=window.setInterval(this.b().bp.runOn(this.b()),50))},an:function(){this.l!=-1&&(window.clearInterval(this.l),this.l=-1)},ak:function(){this.k==-1&&(this.k=window.setInterval(this.b().bb.runOn(this.b()),50))},am:function(){this.k!=-1&&(window.clearInterval(this.k),this.k=-1)},r:function(){this.l!=-1&&(this.am(),this.b().bg())},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},aa:function(i){this.m(n(i));this.m().css("position","relative");this.n(n('<canvas style="position : absolute; top : 0; left : 0" />'));this.m().append(this.n());this.c(new t.em(new t.en,this.n()[0].getContext("2d")));this.ab(this.m().width(),this.m().height())},ab:function(n,i){this.n().attr("width",n.toString());this.n().attr("height",i.toString());this.b().bx(new t.bk(0,0,0,n,i));this.b().bl()},ae:function(){this.z()},index:function(){return 0},postRender:function(){},_isDirty:!1,isDirty:function(n){return arguments.length===1?(this._isDirty=n,n):this._isDirty},z:function(){this.c()!=null&&(this.isDirty()||(this.isDirty(!0),this.b().tileScheduler().j()))},undirty:function(){this.isDirty(!1);this.af()},ap:null,af:function(){var n,i,t,r;if(this.c()!=null){for(this.ap.isEmpty()||this.c().i(this.ap.left(),this.ap.top(),this.ap.width(),this.ap.height()),this.ap=this.b().bx(),n=0;n<this.i().count();n++)i=this.i().__inner[n],i.q()==0&&this.ag(i);for(t=0;t<this.i().count();t++)r=this.i().__inner[t],r.q()==1&&this.ag(r);this.b().bd();this.b().be()}},d:function(){for(var t=!0,n=0;n<this.g.count();n++)this.g.__inner[n]!=null&&(t=!1);return t},ag:function(n){if(this.c()!=null){var t=n.z(),i=n.__opacity;if(t!=null&&t.c()!=null&&!this.e(t.c()))if(t.d().isEmpty())this.c().k(t.c(),i,Math.round(n.l()+this.b().bx().left()),Math.round(n.m()+this.b().bx().top()),n.width(),n.height());else{if(t.d().width()<1||t.d().height()<1)return;this.c().l(t.c(),i,t.d().left(),t.d().top(),t.d().width(),t.d().height(),Math.round(n.l()+this.b().bx().left()),Math.round(n.m()+this.b().bx().top()),n.width(),n.height())}}},e:function(n){var t=n;return t.complete?t.width==0&&t.height==0?!0:!1:!0},v:function(){this.z()},ac:function(n){this.c(n);this.z()},ad:function(n){this.b().bx(n);this.b().bl()},preRender:function(){},$type:new n.ig.Type("XamMultiScaleImageView",n.ig.$ot,[t.$el.$type])},!0);t.$hn.leftTop=0;t.$hn.centerTop=1;t.$hn.rightTop=2;t.$hn.leftCenter=3;t.$hn.centerCenter=4;t.$hn.rightCenter=5;t.$hn.leftBottom=6;t.$hn.centerBottom=7;t.$hn.rightBottom=8;t.$a3.rGB=0;t.$a3.hSV=1;t.$fq.minimal=0;t.$fq.full=1;t.$fq.compact=2;t.$fn.none=0;t.$fn.dragZoom=1;t.$fn.dragPan=2;t.$fn.auto=3;t.$fl.topBottom=0;t.$fl.bottomTop=1;t.$fl.leftRight=2;t.$fl.rightLeft=3;t.$fl.radial=4;t.$dm.remove=0;t.$dm.insert=1;t.$dm.replace=2;t.$dm.change=3;t.$dm.reset=4;t.$c1.fixed=0;t.$c1.percentage=1;t.$c1.data=2;t.$c1.standardDeviation=3;t.$c1.standardError=4;t.$c0.x=0;t.$c0.y=1;t.$cz.linearInterpolate=0;t.$cz.dontPlot=1;t.$cy.none=0;t.$cy.linearFit=1;t.$cy.quadraticFit=2;t.$cy.cubicFit=3;t.$cy.quarticFit=4;t.$cy.quinticFit=5;t.$cy.logarithmicFit=6;t.$cy.exponentialFit=7;t.$cy.powerLawFit=8;t.$cy.simpleAverage=9;t.$cy.exponentialAverage=10;t.$cy.modifiedAverage=11;t.$cy.cumulativeAverage=12;t.$cy.weightedAverage=13;t.$a.w=new t.be;t.$bx.bm=0;t.$bx.a8=null;t.$bx.a9=null;t.$bx.bw=null;t.$bx.bp=-1;t.$fp.allowPanProperty=t.$co.i("AllowPan",t.$f.$type,t.$fp.$type,new t.cp(2,!0,t.$fp.k));t.$fp.allowZoomProperty=t.$co.i("AllowZoom",t.$f.$type,t.$fp.$type,new t.cp(2,!0,t.$fp.l));t.$fs.az=2;t.$fs.bi="SizeStates";t.$fs.bj="Full";t.$fs.bk="Minimal";t.$fs.br="ZoomableStates";t.$fs.bm="ZoomEnabled";t.$fs.bl="ZoomDisabled";t.$fs.bg="Root";t.$fs.ba="ContentPresenter";t.$fs.bv="ZoomOut";t.$fs.bu="ZoomLevel";t.$fs.bs="ZoomIn";t.$fs.bw="ZoomTo100";t.$fs.bh="ScaleToFit";t.$fs.a8="ButtonCursor";t.$fs.bb="DragPan";t.$fs.bc="DragZoom";t.$fs.a9="ButtonsGrid";t.$fs.bd="Immediate";t.$fs.immediateProperty=t.$co.i("Immediate",t.$f.$type,t.$fs.$type,new t.cp(2,!0,function(i,r){n.ig.util.cast(t.$fs.$type,i).ce(new t.fr(t.$f.$type,"Immediate",r.d(),r.c()))}));t.$fs.bp="World";t.$fs.worldProperty=t.$co.i("World",t.$bk.$type,t.$fs.$type,new t.cp(2,t.$bk.empty(),function(i,r){n.ig.util.cast(t.$fs.$type,i).ce(new t.fr(t.$bk.$type,"World",r.d(),r.c()))}));t.$fs.bq="WorldStyle";t.$fs.worldStyleProperty=t.$co.i("WorldStyle",t.$dw.$type,t.$fs.$type,new t.cp(1,function(i,r){n.ig.util.cast(t.$fs.$type,i).ce(new t.fr(t.$dw.$type,"WorldStyle",n.ig.util.cast(t.$dw.$type,r.d()),n.ig.util.cast(t.$dw.$type,r.c())))}));t.$fs.bn="Window";t.$fs.windowProperty=t.$co.i("Window",t.$bk.$type,t.$fs.$type,new t.cp(2,t.$bk.empty(),function(i,r){n.ig.util.cast(t.$fs.$type,i).ce(new t.fr(t.$bk.$type,"Window",r.d(),r.c()))}));t.$fs.bo="WindowStyle";t.$fs.windowStyleProperty=t.$co.i("WindowStyle",t.$dw.$type,t.$fs.$type,new t.cp(1,function(i,r){n.ig.util.cast(t.$fs.$type,i).ce(new t.fr(t.$dw.$type,"WindowStyle",n.ig.util.cast(t.$dw.$type,r.d()),n.ig.util.cast(t.$dw.$type,r.c())))}));t.$fs.be="Preview";t.$fs.previewProperty=t.$co.i("Preview",t.$bk.$type,t.$fs.$type,new t.cp(2,t.$bk.empty(),function(i,r){n.ig.util.cast(t.$fs.$type,i).ce(new t.fr(t.$bk.$type,"Preview",r.d(),r.c()))}));t.$fs.bf="PreviewStyle";t.$fs.previewStyleProperty=t.$co.i("PreviewStyle",t.$dw.$type,t.$fs.$type,new t.cp(1,function(i,r){n.ig.util.cast(t.$fs.$type,i).ce(new t.fr(t.$dw.$type,"PreviewStyle",n.ig.util.cast(t.$dw.$type,r.d()),n.ig.util.cast(t.$dw.$type,r.c())))}));t.$fs.shrinkToThumbnailProperty=t.$co.i("ShrinkToThumbnail",t.$f.$type,t.$fs.$type,new t.cp(2,!0,t.$fs.ci));t.$fs.modeProperty=t.$co.i("Mode",t.$fq.$type,t.$fs.$type,new t.cp(2,0,t.$fs.b6));t.$fs.zoomTo100ButtonVisibilityProperty=t.$co.i("ZoomTo100ButtonVisibility",t.$dv.$type,t.$fs.$type,new t.cp(2,0,function(n,t){return n.cf("ZoomTo100ButtonVisibility",t.d(),t.c())}));t.$fs.scaleToFitButtonVisibilityProperty=t.$co.i("ScaleToFitButtonVisibility",t.$dv.$type,t.$fs.$type,new t.cp(2,0,function(n,t){return n.cf("ScaleToFitButtonVisibility",t.d(),t.c())}));t.$fs.interactionStatesToolVisibilityProperty=t.$co.i("InteractionStatesToolVisibility",t.$dv.$type,t.$fs.$type,new t.cp(2,0,function(n,t){return n.cf("InteractionStatesToolVisibility",t.d(),t.c())}));t.$fs.bt="ZoomLevelLargeChange";t.$fs.zoomLevelLargeChangeProperty=t.$co.i("ZoomLevelLargeChange",Number,t.$fs.$type,new t.cp(2,1,function(n,t){return n.cf("ZoomLevelLargeChange",t.d(),t.c())}));t.$fs.ax=10;t.$fs.ay=2;t.$gi.tilePathProperty=t.$co.i("TilePath",String,t.$gi.$type,new t.cp(2,null,t.$gi.y));t.$gi.subDomainsProperty=t.$co.i("SubDomains",t.$b.$type.specialize(String),t.$gi.$type,new t.cp(2,null,t.$gi.y));t.$gi.cultureNameProperty=t.$co.i("CultureName",String,t.$gi.$type,new t.cp(2,null,t.$gi.y));t.$gk.x="http://{S}.tile.cloudmade.com/{K}/{P}/256/{Z}/{X}/{Y}.png";t.$gk.u="Key";t.$gk.keyProperty=t.$co.i("Key",String,t.$gk.$type,new t.cp(1,null));t.$gk.w="Parameter";t.$gk.parameterProperty=t.$co.i("Parameter",String,t.$gk.$type,new t.cp(2,null,t.$gk.y));t.$gl.s="http://tile.openstreetmap.org/{Z}/{X}/{Y}.png";t.$bi.f=new t.be;t.$bi.g=null;t.$gp.j="-4321px";t.$gp.i="rgb(3, 2, 1)";t.$gp.h="none";t.$gp.l="justify";t.$gp.m="baseline";t.$gp.k="0.888";t.$gp.n="hidden";t.$gp.o="4321px";t.$gp.e=500;t.$bf.t=(1+Math.sqrt(5))/2;t.$bf.w=Math.sqrt(2);t.$bf.d=3.14159265358979/180;t.$bf.a=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180,151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180];t.$ho.a=[4];t.$ho.b=[4,5,2,1,8,7,0,3,6];t.$f3.a4="Source";t.$f3.sourceProperty=t.$co.i("Source",t.$f1.$type,t.$f3.$type,new t.cp(2,null,function(i,r){i.bf(new t.fr(t.$f1.$type,"Source",n.ig.util.cast(t.$f1.$type,r.d()),n.ig.util.cast(t.$f1.$type,r.c())))}));t.$f3.a7="ViewportOrigin";t.$f3.viewportOriginProperty=t.$co.i("ViewportOrigin",t.$bm.$type,t.$f3.$type,new t.cp(2,{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,i){n.bf(new t.fr(t.$bm.$type,"ViewportOrigin",i.d(),i.c()))}));t.$f3.a8="ViewportWidth";t.$f3.viewportWidthProperty=t.$co.i("ViewportWidth",Number,t.$f3.$type,new t.cp(2,1,function(n,i){n.bf(new t.fr(Number,"ViewportWidth",i.d(),i.c()))}));t.$f3.a6="UseSprings";t.$f3.useSpringsProperty=t.$co.i("UseSprings",t.$f.$type,t.$f3.$type,new t.cp(2,!1,function(n,i){n.bf(new t.fr(t.$f.$type,"UseSprings",i.d(),i.c()))}));t.$f3.a5="SpringsEasingFunction";t.$f3.springsEasingFunctionProperty=t.$co.i("SpringsEasingFunction",t.$gd.$type,t.$f3.$type,new t.cp(2,null,function(n,i){n.bf(new t.fr(t.$gd.$type,"SpringsEasingFunction",i.d(),i.c()))}));t.$f4.j=-1;n.ig.util.extCopy(n.ig.ArrayUtil,[[[n.ig.EdgeClipper,n.ig.RearrangedList$1,n.ig.IList$1,n.ig.List$1,n.ig.ReadOnlyCollection$1,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);n.ig.util.extCopy(n.ig.BrushUtil,[[[n.ig.Brush],["getLightened"]]]);n.ig.util.extCopy(n.ig.ColorUtil,[[[n.ig.Color],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);n.ig.util.extCopy(n.ig.Extensions,[[[n.ig.PathGeometry],["reset1"]],[[n.ig.GeometryGroup],["reset"]],[[n.ig.FrameworkElement],["detach"]],[[n.ig.Panel],["transferChildrenTo"]],[[n.ig.Point],["isPlottable"]],[[n.ig.Rect],["isPlottable1"]]]);n.ig.util.extCopy(n.ig.PathFigureUtil,[[[n.ig.PathFigureCollection],["duplicate1"]],[[n.ig.PathFigure],["duplicate"]]]);n.ig.util.extCopy(n.ig.PointCollectionUtil,[[[n.ig.RearrangedList$1,n.ig.IList$1,n.ig.List$1,n.ig.ReadOnlyCollection$1,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper],["flattenTo","getBounds2","clipTo"]],[[n.ig.RearrangedList$1,n.ig.IEnumerable$1,n.ig.ICollection$1,n.ig.IList$1,n.ig.List$1,n.ig.IDictionary$2,n.ig.Dictionary$2,n.ig.GenericEnumerable$1,n.ig.ReadOnlyCollection$1,n.ig.Stack$1,n.ig.IOrderedEnumerable$1,n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[n.ig.List$1],["getBounds3","getBounds4","toPointCollections"]]]);n.ig.util.extCopy(n.ig.RectUtil,[[[n.ig.Rect],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]]);n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper,n.ig.RearrangedList$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["ofType$1","cast$1"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["IProvidesViewport:a","Void:b","ValueType:c","Object:d","Type:e","Boolean:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","Rect:x","Size:y","Point:z","Math:aa","Number:ab","Number:ac","Number:ad","Number:ae","Number:af","Number:ag","Number:ah","Number:ai","Series:aj","Control:ak","FrameworkElement:al","UIElement:am","DependencyObject:an","Dictionary:ao","IEnumerable:ap","IEnumerator:aq","DependencyProperty:ar","PropertyMetadata:as","PropertyChangedCallback:at","MulticastDelegate:au","IntPtr:av","DependencyPropertyChangedEventArgs:aw","DependencyPropertiesCollection:ax","UnsetValue:ay","Script:az","Binding:a0","PropertyPath:a1","Transform:a2","Visibility:a3","Style:a4","Thickness:a5","HorizontalAlignment:a6","VerticalAlignment:a7","INotifyPropertyChanged:a8","PropertyChangedEventHandler:a9","PropertyChangedEventArgs:ba","SeriesView:bb","ISchedulableRender:bc","XamDataChart:bd","SeriesViewer:be","SeriesViewerView:bf","CanvasRenderScheduler:bg","List$1:bh","IList$1:bi","ICollection$1:bj","IEnumerable$1:bk","IEnumerator$1:bl","IArrayList:bm","Array:bn","ICollection:bo","CompareCallback:bp","IList:bq","IDisposable:br","IArray:bs","Date:bt","Date:bu","Func$3:bv","Action$1:bw","Callback:bx","window:by","RenderingContext:bz","IRenderer:b0","Rectangle:b1","Shape:b2","Brush:b3","Color:b4","DoubleCollection:b5","Path:b6","Geometry:b7","GeometryType:b8","TextBlock:b9","Polygon:ca","PointCollection:cb","Polyline:cc","DataTemplateRenderInfo:cd","DataTemplatePassInfo:ce","ContentControl:cf","DataTemplate:cg","DataTemplateRenderHandler:ch","DataTemplateMeasureHandler:ci","DataTemplateMeasureInfo:cj","DataTemplatePassHandler:ck","Line:cl","XamOverviewPlusDetailPane:cm","XamOverviewPlusDetailPaneView:cn","XamOverviewPlusDetailPaneViewManager:co","JQueryObject:cp","Element:cq","ElementAttributeCollection:cr","ElementCollection:cs","WebStyle:ct","ElementNodeType:cu","Document:cv","EventListener:cw","IElementEventHandler:cx","ElementEventHandler:cy","ElementAttribute:cz","JQueryPosition:c0","JQueryCallback:c1","JQueryEvent:c2","JQueryUICallback:c3","EventProxy:c4","ModifierKeys:c5","Func$2:c6","MouseWheelHandler:c7","Delegate:c8","GestureHandler:c9","ContactHandler:da","TouchHandler:db","MouseOverHandler:dc","MouseHandler:dd","KeyHandler:de","Key:df","JQuery:dg","JQueryDeferred:dh","JQueryPromise:di","Action:dj","CanvasViewRenderer:dk","CanvasContext2D:dl","CanvasContext:dm","TextMetrics:dn","ImageData:dp","CanvasElement:dq","Gradient:dr","LinearGradientBrush:ds","GradientStop:dt","GeometryGroup:du","GeometryCollection:dv","FillRule:dw","PathGeometry:dx","PathFigureCollection:dy","LineGeometry:dz","RectangleGeometry:d0","EllipseGeometry:d1","ArcSegment:d2","PathSegment:d3","PathSegmentType:d4","SweepDirection:d5","PathFigure:d6","PathSegmentCollection:d7","LineSegment:d8","PolyLineSegment:d9","BezierSegment:ea","PolyBezierSegment:eb","GeometryUtil:ec","Tuple$2:ed","TransformGroup:ee","TransformCollection:ef","TranslateTransform:eg","RotateTransform:eh","ScaleTransform:ei","DivElement:ej","DOMEventProxy:ek","MSGesture:el","MouseEventArgs:em","EventArgs:en","DoubleAnimator:eo","EasingFunctionHandler:ep","ImageElement:eq","RectUtil:er","MathUtil:es","RuntimeHelpers:et","RuntimeFieldHandle:eu","PropertyChangedEventArgs$1:ev","InteractionState:ew","OverviewPlusDetailPaneMode:ex","IOverviewPlusDetailControl:ey","EventHandler$1:ez","ArgumentNullException:e0","Error:e1","OverviewPlusDetailViewportHost:e2","SeriesCollection:e3","ObservableCollection$1:e4","INotifyCollectionChanged:e5","NotifyCollectionChangedEventHandler:e6","NotifyCollectionChangedEventArgs:e7","NotifyCollectionChangedAction:e8","AxisCollection:e9","SeriesViewerViewManager:fa","AxisTitlePosition:fb","PointerTooltipStyle:fc","BrushCollection:fd","InterpolationMode:fe","Random:ff","ColorUtil:fg","CssHelper:fh","CssGradientUtil:fi","FontUtil:fj","FontInfo:fk","DataContext:fl","SeriesViewerComponentsFromView:fm","SeriesViewerSurfaceViewer:fn","Canvas:fo","Panel:fp","UIElementCollection:fq","RectChangedEventHandler:fr","RectChangedEventArgs:fs","RenderSurface:ft","StackedSeriesBase:fu","CategorySeries:fv","MarkerSeries:fw","MarkerSeriesView:fx","Marker:fy","MarkerTemplates:fz","Dictionary$2:f0","IDictionary$2:f1","IDictionary:f2","IEqualityComparer$1:f3","KeyValuePair$2:f4","NotImplementedException:f5","HashPool$2:f6","IHashPool$2:f7","IPool$1:f8","Func$1:f9","Pool$1:ga","IIndexedPool$1:gb","MarkerType:gc","SeriesVisualData:gd","PrimitiveVisualDataList:ge","IVisualData:gf","PrimitiveVisualData:gg","PrimitiveAppearanceData:gh","BrushAppearanceData:gi","StringBuilder:gj","AppearanceHelper:gk","LinearGradientBrushAppearanceData:gl","GradientStopAppearanceData:gm","SolidBrushAppearanceData:gn","EllipseGeometryData:go","GeometryData:gp","GetPointsSettings:gq","RectangleGeometryData:gr","LineGeometryData:gs","PathGeometryData:gt","PathFigureData:gu","LineSegmentData:gv","SegmentData:gw","PolylineSegmentData:gx","ArcSegmentData:gy","PolyBezierSegmentData:gz","LabelAppearanceData:g0","ShapeTags:g1","PointerTooltipVisualDataList:g2","MarkerVisualDataList:g3","MarkerVisualData:g4","PointerTooltipVisualData:g5","RectangleVisualData:g6","PolygonVisualData:g7","PolyLineVisualData:g8","IHasCategoryModePreference:g9","IHasCategoryAxis:ha","CategoryAxisBase:hb","Axis:hc","AxisView:hd","AxisLabelPanelBase:he","AxisLabelPanelBaseView:hf","AxisLabelSettings:hg","AxisLabelsLocation:hh","PropertyUpdatedEventHandler:hi","PropertyUpdatedEventArgs:hj","PathRenderingInfo:hk","NumericAxisBase:hl","NumericAxisBaseView:hm","NumericAxisRenderer:hn","AxisRendererBase:ho","ShouldRenderHandler:hp","ScaleValueHandler:hq","AxisRenderingParametersBase:hr","RangeInfo:hs","TickmarkValues:ht","TickmarkValuesInitializationParameters:hu","CategoryMode:hv","Func$4:hw","GetGroupCenterHandler:hx","GetUnscaledGroupCenterHandler:hy","RenderStripHandler:hz","RenderLineHandler:h0","ShouldRenderLinesHandler:h1","ShouldRenderContentHandler:h2","RenderAxisLineHandler:h3","DetermineCrossingValueHandler:h4","ShouldRenderLabelHandler:h5","GetLabelLocationHandler:h6","LabelPosition:h7","TransformToLabelValueHandler:h8","AxisLabelManager:h9","GetLabelForItemHandler:ia","CreateRenderingParamsHandler:ib","SnapMajorValueHandler:ic","AdjustMajorValueHandler:id","CategoryAxisRenderingParameters:ie","LogarithmicTickmarkValues:ig","LogarithmicNumericSnapper:ih","Snapper:ii","LinearTickmarkValues:ij","LinearNumericSnapper:ik","AxisRangeChangedEventArgs:il","AxisRange:im","IEquatable$1:io","AutoRangeCalculator:ip","NumericYAxis:iq","StraightNumericAxisBase:ir","StraightNumericAxisBaseView:is","NumericScaler:it","ScalerParams:iu","NumericScaleMode:iv","LogarithmicScaler:iw","IScaler:ix","AxisOrientation:iy","NumericYAxisView:iz","VerticalAxisLabelPanel:i0","VerticalAxisLabelPanelView:i1","TitleSettings:i2","NumericAxisRenderingParameters:i3","VerticalLogarithmicScaler:i4","VerticalLinearScaler:i5","LinearScaler:i6","NumericRadiusAxis:i7","NumericRadiusAxisView:i8","Enumerable:i9","IOrderedEnumerable$1:ja","SortedList$1:jb","PolarAxisRenderingManager:jc","ViewportUtils:jd","PolarAxisRenderingParameters:je","IPolarRadialRenderingParameters:jf","RadialAxisRenderingParameters:jg","RadialAxisLabelPanel:jh","HorizontalAxisLabelPanelBase:ji","HorizontalAxisLabelPanelBaseView:jj","RadialAxisLabelPanelView:jk","NumericAngleAxis:jl","IAngleScaler:jm","NumericAngleAxisView:jn","AngleAxisLabelPanel:jo","AngleAxisLabelPanelView:jp","Extensions:jq","CategoryAngleAxis:jr","CategoryAngleAxisView:js","CategoryAxisBaseView:jt","CategoryAxisRenderer:ju","LinearCategorySnapper:jv","IFastItemsSource:jw","IFastItemColumn$1:jx","IFastItemColumnPropertyName:jy","CategoryTickmarkValues:jz","AxisComponentsForView:j0","AxisComponentsFromView:j1","AxisFormatLabelHandler:j2","XamDataChartView:j3","VisualExportHelper:j4","IFastItemsSourceProvider:j5","ContentInfo:j6","AxisRangeChangedEventHandler:j7","ChartContentManager:j8","ChartContentType:j9","FragmentBase:ka","HorizontalAnchoredCategorySeries:kb","AnchoredCategorySeries:kc","IIsCategoryBased:kd","ICategoryScaler:ke","IBucketizer:kf","IDetectsCollisions:kg","IHasSingleValueCategory:kh","IHasCategoryTrendline:ki","IHasTrendline:kj","TrendLineType:kk","IPreparesCategoryTrendline:kl","TrendResolutionParams:km","AnchoredCategorySeriesView:kn","CategorySeriesView:ko","ISupportsMarkers:kp","CategoryBucketCalculator:kq","ISortingAxis:kr","CategoryFrame:ks","Frame:kt","BrushUtil:ku","CategoryTrendLineManagerBase:kv","TrendLineManagerBase$1:kw","Clipper:kx","EdgeClipper:ky","LeftClipper:kz","BottomClipper:k0","RightClipper:k1","TopClipper:k2","Flattener:k3","Stack$1:k4","ReverseArrayEnumerator$1:k5","SpiralTodo:k6","FastItemsSourceEventAction:k7","SortingTrendLineManager:k8","TrendFitCalculator:k9","LeastSquaresFit:la","Numeric:lb","TrendAverageCalculator:lc","CategoryTrendLineManager:ld","AnchoredCategoryBucketCalculator:le","CategoryDateTimeXAxis:lf","CategoryDateTimeXAxisView:lg","TimeAxisDisplayType:lh","FastItemDateTimeColumn:li","IFastItemColumnInternal:lj","FastItemColumn:lk","FastReflectionHelper:ll","HorizontalAxisLabelPanel:lm","CoercionInfo:ln","FastItemsSourceEventArgs:lo","SortedListView$1:lp","ArrayUtil:lq","Comparison$1:lr","CategoryLineRasterizer:ls","UnknownValuePlotting:lt","Action$5:lu","PenLineCap:lv","CategoryFramePreparer:lw","CategoryFramePreparerBase:lx","FramePreparer:ly","ISupportsErrorBars:lz","DefaultSupportsMarkers:l0","DefaultProvidesViewport:l1","DefaultSupportsErrorBars:l2","PreparationParams:l3","CategoryYAxis:l4","CategoryYAxisView:l5","SyncSettings:l6","NumericXAxis:l7","NumericXAxisView:l8","HorizontalLogarithmicScaler:l9","HorizontalLinearScaler:ma","ValuesHolder:mb","LineSeries:mc","LineSeriesView:md","PathVisualData:me","CategorySeriesRenderManager:mf","AssigningCategoryStyleEventArgs:mg","AssigningCategoryStyleEventArgsBase:mh","GetCategoryItemsHandler:mi","HighlightingInfo:mj","HighlightingState:mk","AssigningCategoryMarkerStyleEventArgs:ml","HighlightingManager:mm","SplineSeriesBase:mn","SplineSeriesBaseView:mo","SplineType:mp","CollisionAvoider:mq","SafeSortedReadOnlyDoubleCollection:mr","SafeReadOnlyDoubleCollection:ms","ReadOnlyCollection$1:mt","SafeEnumerable:mu","AreaSeries:mv","AreaSeriesView:mw","LegendTemplates:mx","PieChartBase:my","PieChartBaseView:mz","PieChartViewManager:m0","PieChartVisualData:m1","PieSliceVisualDataList:m2","PieSliceVisualData:m3","PieSliceDataContext:m4","Slice:m5","SliceView:m6","PieLabel:m7","MouseButtonEventArgs:m8","FastItemsSource:m9","ArgumentException:na","ColumnReference:nb","FastItemObjectColumn:nc","FastItemIntColumn:nd","LabelsPosition:ne","LeaderLineType:nf","OthersCategoryType:ng","IndexCollection:nh","LegendBase:ni","LegendBaseView:nj","LegendBaseViewManager:nk","GradientData:nl","GradientStopData:nm","DataChartLegendMouseButtonEventArgs:nn","DataChartMouseButtonEventArgs:no","ChartLegendMouseEventArgs:np","ChartMouseEventArgs:nq","DataChartLegendMouseButtonEventHandler:nr","DataChartLegendMouseEventHandler:ns","PieChartFormatLabelHandler:nt","SliceClickEventHandler:nu","SliceClickEventArgs:nv","ItemLegend:nw","ItemLegendView:nx","LegendItemInfo:ny","BubbleSeries:nz","ScatterBase:n0","ScatterBaseView:n1","MarkerManagerBase:n2","MarkerManagerBucket:n3","ScatterTrendLineManager:n4","NumericMarkerManager:n5","OwnedPoint:n6","CollisionAvoidanceType:n7","SmartPlacer:n8","ISmartPlaceable:n9","SmartPosition:oa","SmartPlaceableWrapper$1:ob","ScatterAxisInfoCache:oc","ScatterErrorBarSettings:od","ErrorBarSettingsBase:oe","EnableErrorBars:of","ErrorBarCalculatorReference:og","IErrorBarCalculator:oh","ErrorBarCalculatorType:oi","ScatterFrame:oj","ScatterFrameBase$1:ok","DictInterpolator$3:ol","Action$6:om","SyncLink:on","ChartCollection:oo","FastItemsSourceReference:op","SyncManager:oq","SyncLinkManager:or","Debug:os","ErrorBarsHelper:ot","BubbleSeriesView:ou","BubbleMarkerManager:ov","SizeScale:ow","BrushScale:ox","ScaleLegend:oy","ScaleLegendView:oz","CustomPaletteBrushScale:o0","BrushSelectionMode:o1","ValueBrushScale:o2","FunnelSliceDataContext:o3","XamFunnelChart:o4","IItemProvider:o5","MessageHandler:o6","MessageHandlerEventHandler:o7","Message:o8","ServiceProvider:o9","MessageChannel:pa","MessageEventHandler:pb","Array:pc","XamFunnelConnector:pd","XamFunnelController:pe","SliceInfoList:pf","SliceInfoUnaryComparison:pg","SliceInfo:ph","SliceAppearance:pi","PointList:pj","FunnelSliceVisualData:pk","Bezier:pl","Array:pm","BezierPoint:pn","BezierOp:po","BezierPointComparison:pp","DoubleColumn:pq","ObjectColumn:pr","XamFunnelView:ps","IOuterLabelWidthDecider:pt","IFunnelLabelSizeDecider:pu","MouseLeaveMessage:pv","InteractionMessage:pw","MouseMoveMessage:px","MouseButtonMessage:py","MouseButtonAction:pz","MouseButtonType:p0","SetAreaSizeMessage:p1","RenderingMessage:p2","RenderSliceMessage:p3","RenderOuterLabelMessage:p4","TooltipValueChangedMessage:p5","TooltipUpdateMessage:p6","FunnelDataContext:p7","PropertyChangedMessage:p8","ConfigurationMessage:p9","ClearMessage:qa","ClearTooltipMessage:qb","ContainerSizeChangedMessage:qc","ViewportChangedMessage:qd","ViewPropertyChangedMessage:qe","OuterLabelAlignment:qf","FunnelSliceDisplay:qg","SliceSelectionManager:qh","DataUpdatedMessage:qi","ItemsSourceAction:qj","DictionaryEntry:qk","FunnelFrame:ql","UserSelectedItemsChangedMessage:qm","LabelSizeChangedMessage:qn","FrameRenderCompleteMessage:qo","IntColumn:qp","IntColumnComparison:qq","Convert:qr","SelectedItemsChangedMessage:qs","ModelUpdateMessage:qt","SliceClickedMessage:qu","FunnelSliceClickedEventHandler:qv","FunnelSliceClickedEventArgs:qw","FunnelChartVisualData:qx","FunnelSliceVisualDataList:qy","WaterfallSeries:qz","WaterfallSeriesView:q0","CategoryTransitionInMode:q1","FinancialSeries:q2","FinancialSeriesView:q3","FinancialBucketCalculator:q4","CategoryTransitionSourceFramePreparer:q5","TransitionInSpeedType:q6","AssigningCategoryStyleEventHandler:q7","FinancialValueList:q8","FinancialEventHandler:q9","FinancialEventArgs:ra","FinancialCalculationDataSource:rb","CalculatedColumn:rc","FinancialCalculationSupportingCalculations:rd","ColumnSupportingCalculation:re","SupportingCalculation$1:rf","SupportingCalculationStrategy:rg","DataSourceSupportingCalculation:rh","ProvideColumnValuesStrategy:ri","StepLineSeries:rj","StepLineSeriesView:rk","StepAreaSeries:rl","StepAreaSeriesView:rm","RangeAreaSeries:rn","HorizontalRangeCategorySeries:ro","RangeCategorySeries:rp","IHasHighLowValueCategory:rq","RangeCategorySeriesView:rr","RangeCategoryBucketCalculator:rs","RangeCategoryFramePreparer:rt","DefaultCategoryTrendlineHost:ru","DefaultCategoryTrendlinePreparer:rv","DefaultHighLowValueProvider:rw","HighLowValuesHolder:rx","CategoryMarkerManager:ry","RangeValueList:rz","RangeAreaSeriesView:r0","LineFragment:r1","LineFragmentView:r2","LineFragmentBucketCalculator:r3","IStacked100Series:r4","StackedFragmentSeries:r5","StackedAreaSeries:r6","HorizontalStackedSeriesBase:r7","StackedSplineAreaSeries:r8","AreaFragment:r9","AreaFragmentView:sa","AreaFragmentBucketCalculator:sb","SplineAreaFragment:sc","SplineFragmentBase:sd","SplineAreaFragmentView:se","StackedSeriesManager:sf","StackedSeriesCollection:sg","StackedSeriesView:sh","StackedBucketCalculator:si","StackedLineSeries:sj","StackedSplineSeries:sk","StackedColumnSeries:sl","StackedColumnSeriesView:sm","StackedColumnBucketCalculator:sn","ColumnFragment:so","ColumnFragmentView:sp","StackedBarSeries:sq","VerticalStackedSeriesBase:sr","IBarSeries:ss","StackedBarSeriesView:st","StackedBarBucketCalculator:su","BarFragment:sv","SplineFragment:sw","SplineFragmentView:sx","SplineFragmentBucketCalculator:sy","Nullable$1:sz","DefaultSingleValueProvider:s0","SingleValuesHolder:s1","RenderRequestedEventArgs:s2","ChartTitleVisualData:s3","VisualDataSerializer:s4","AxisVisualData:s5","AxisLabelVisualDataList:s6","AxisLabelVisualData:s7","AssigningCategoryMarkerStyleEventHandler:s8","SeriesComponentsForView:s9","StackedSeriesFramePreparer:ta","StackedSeriesCreatedEventHandler:tb","StackedSeriesCreatedEventArgs:tc","StackedSeriesVisualData:td","SeriesVisualDataList:te","LabelPanelArranger:tf","LabelPanelsArrangeState:tg","Action$2:th","ChartVisualData:ti","AxisVisualDataList:tj","WindowResponse:tk","SeriesViewerComponentsForView:tl","DataChartCursorEventHandler:tm","ChartCursorEventArgs:tn","DataChartMouseButtonEventHandler:to","DataChartMouseEventHandler:tp","AnnotationLayer:tq","AnnotationLayerView:tr","GridMode:ts","DataChartAxisRangeChangedEventHandler:tt","ChartAxisRangeChangedEventArgs:tu","RadialBase:tv","RadialBaseView:tw","RadialBucketCalculator:tx","SeriesRenderer$2:ty","SeriesRenderingArguments:tz","RadialFrame:t0","RadialAxes:t1","PolarBase:t2","PolarBaseView:t3","PolarTrendLineManager:t4","PolarLinePlanner:t5","AngleRadiusPair:t6","PolarAxisInfoCache:t7","PolarFrame:t8","PolarAxes:t9","SeriesComponentsFromView:ua","EasingFunctions:ub","TrendCalculators:uc","CategoryHighlightLayer:ud","CategoryHighlightLayerView:ue","CategoryHighlightLayerFrame:uf","CategoryHighlightFrameRect:ug","CategoryItemHighlightLayer:uh","CategoryItemHighlightLayerView:ui","CategoryItemHighlightType:uj","CategoryItemHighlightLayerFrame:uk","ItemHighlightFrameRect:ul","CategoryToolTipLayer:um","CategoryToolTipLayerView:un","PointerTooltip:uo","PointerTooltipView:up","PointerTooltipPointerLocation:uq","CategoryTooltipLayerPosition:ur","CategoryToolTipLayerFrame:us","CategoryTooltipSeriesInfo:ut","CategoryToolTipCollisionInfo:uu","CrosshairLayer:uv","CrosshairLayerView:uw","CrosshairLayerFrame:ux","ItemToolTipLayer:uy","ItemToolTipLayerView:uz","ItemTooltipLayerFrame:u0","Func$5:u1","InterpolationUtil:u2","ItemTooltipCollisionInfo:u3","AxisLabelInfo:u4","CategoryXAxis:u5","CategoryXAxisView:u6","GetSnapperInfoStrategy:u7","BarFramePreparer:u8","BarTrendFitCalculator:u9","BarTrendLineManager:va","VerticalAnchoredCategorySeries:vb","BarSeries:vc","BarSeriesView:vd","BarBucketCalculator:ve","PointSeries:vf","PointSeriesView:vg","RangeColumnSeries:vh","RangeColumnSeriesView:vi","SplineAreaSeriesView:vj","SplineAreaSeries:vk","ColumnSeries:vl","ColumnSeriesView:vm","SplineSeries:vn","SplineSeriesView:vo","DataSourceManager:vp","Arc:vq","ArcView:vr","Ring:vs","RingControl:vt","RingSeriesBase:vu","XamDoughnutChart:vv","RingCollection:vw","RingSeriesCollection:vx","SliceCollection:vy","SliceItem:vz","ArcItem:v0","XamDoughnutChartView:v1","RingSeriesBaseView:v2","DoughnutChartVisualData:v3","RingSeriesVisualDataList:v4","RingSeriesVisualData:v5","RingVisualDataList:v6","RingVisualData:v7","ArcVisualDataList:v8","ArcVisualData:v9","SliceVisualDataList:wa","SliceVisualData:wb","DoughnutChartLabelVisualData:wc","RingControlView:wd","Legend:we","LegendView:wf","HoleDimensionsChangedEventHandler:wg","HoleDimensionsChangedEventArgs:wh","HierarchicalRingSeries:wi","IgQueue$1:wj","Node:wk","RingSeries:wl","IndicatorDisplayType:wm","FinancialIndicator:wn","FinancialIndicatorView:wo","FinancialIndicatorBucketCalculator:wp","IndicatorRenderer:wq","PathFigureUtil:wr","StrategyBasedIndicator:ws","IndicatorCalculationStrategy:wt","AbsoluteVolumeOscillatorIndicator:wu","AbsoluteVolumeOscillatorIndicatorStrategy:wv","AccumulationDistributionIndicator:ww","AccumulationDistributionIndicatorStrategy:wx","StreamingIndicatorCalculationStrategy:wy","AverageDirectionalIndexIndicator:wz","AverageDirectionalIndexIndicatorStrategy:w0","AverageTrueRangeIndicator:w1","AverageTrueRangeIndicatorStrategy:w2","FinancialOverlay:w3","BollingerBandsOverlay:w4","BollingerBandsOverlayView:w5","BollingerBandsBucketCalculator:w6","BollingerBandWidthIndicator:w7","BollingerBandWidthIndicatorStrategy:w8","ChaikinOscillatorIndicator:w9","ChaikinOscillatorIndicatorStrategy:xa","ChaikinVolatilityIndicator:xb","ChaikinVolatilityIndicatorStrategy:xc","CommodityChannelIndexIndicator:xd","CommodityChannelIndexIndicatorStrategy:xe","CustomIndicator:xf","CustomIndicatorStrategy:xg","PriceChannelOverlayView:xh","PriceChannelOverlay:xi","PriceChannelBucketCalculator:xj","DetrendedPriceOscillatorIndicator:xk","DetrendedPriceOscillatorIndicatorStrategy:xl","EaseOfMovementIndicator:xm","EaseOfMovementIndicatorStrategy:xn","FastStochasticOscillatorIndicator:xo","FastStochasticOscillatorIndicatorStrategy:xp","PercentKCalculationStrategy:xq","ForceIndexIndicator:xr","ForceIndexIndicatorStrategy:xs","FullStochasticOscillatorIndicator:xt","FullStochasticOscillatorIndicatorStrategy:xu","ItemwiseIndicatorCalculationStrategy:xv","ItemwiseStrategyBasedIndicator:xw","ItemwiseStrategyCalculationStrategy:xx","MarketFacilitationIndexIndicator:xy","MarketFacilitationIndexIndicatorStrategy:xz","MassIndexIndicator:x0","MassIndexIndicatorStrategy:x1","MedianPriceIndicator:x2","MedianPriceIndicatorStrategy:x3","MoneyFlowIndexIndicator:x4","MoneyFlowIndexIndicatorStrategy:x5","MovingAverageConvergenceDivergenceIndicator:x6","MovingAverageConvergenceDivergenceIndicatorStrategy:x7","NegativeVolumeIndexIndicator:x8","NegativeVolumeIndexIndicatorStrategy:x9","OnBalanceVolumeIndicator:ya","OnBalanceVolumeIndicatorStrategy:yb","PercentagePriceOscillatorIndicator:yc","PercentagePriceOscillatorIndicatorStrategy:yd","PercentageVolumeOscillatorIndicator:ye","PercentageVolumeOscillatorIndicatorStrategy:yf","PositiveVolumeIndexIndicator:yg","PositiveVolumeIndexIndicatorStrategy:yh","PriceVolumeTrendIndicator:yi","PriceVolumeTrendIndicatorStrategy:yj","RateOfChangeAndMomentumIndicator:yk","RateOfChangeAndMomentumIndicatorStrategy:yl","RelativeStrengthIndexIndicator:ym","RelativeStrengthIndexIndicatorStrategy:yn","SlowStochasticOscillatorIndicator:yo","SlowStochasticOscillatorIndicatorStrategy:yp","StandardDeviationIndicator:yq","StandardDeviationIndicatorStrategy:yr","StochRSIIndicator:ys","StochRSIIndicatorStrategy:yt","TRIXIndicator:yu","TRIXIndicatorStrategy:yv","TypicalPriceIndicator:yw","TypicalPriceIndicatorStrategy:yx","UltimateOscillatorIndicator:yy","UltimateOscillatorIndicatorCalculationStrategy:yz","WeightedCloseIndicator:y0","WeightedCloseIndicatorStrategy:y1","WilliamsPercentRIndicator:y2","WilliamsPercentRIndicatorStrategy:y3","SliceInfoComparison:y4","XamFunnelSlice:y5","TemplateChangedMessage:y6","AnchoredRadialSeries:y7","AnchoredRadialSeriesView:y8","RadialTrendLineManager:y9","AnchoredRadialBucketCalculator:za","RadialAreaSeries:zb","RadialAreaSeriesView:zc","HighDensityScatterSeries:zd","HighDensityScatterSeriesView:ze","KDTree2D:zf","KDTreeNode2D:zg","PointData:zh","SearchData:zi","Monitor:zj","KDTreeThunk:zk","KNearestResults:zl","KNearestResult:zm","SearchArgs:zn","ProgressiveLoadStatusEventArgs:zo","MouseMoveThunk:zp","ScatterMouseOverEventArgs:zq","ScatterLineSeries:zr","ScatterLineSeriesView:zs","ScatterSplineSeries:zt","ScatterSplineSeriesView:zu","PathRenderer:zv","IFlattener:zw","NaNSegmenter:zx","DefaultFlattener:zy","RearrangedList$1:zz","HighlightingMode:z0","SyncSettingsConverter:z1","PriceDisplayType:z2","WindowMode:z3","CategoryErrorBarSettings:z4","FinancialPriceSeries:z5","FinancialPriceSeriesView:z6","FinancialPriceBucketCalculator:z7","XamPieChart:z8","XamPieChartView:z9","PolarLineSeriesBase:aaa","PolarLineSeriesBaseView:aab","PolarAreaSeries:aac","PolarAreaSeriesView:aad","PolarLineSeries:aae","PolarLineSeriesView:aaf","PolarScatterSeries:aag","PolarScatterSeriesView:aah","PolarSplineAreaSeries:aai","PolarSplineAreaSeriesView:aaj","PolarSplineSeries:aak","PolarSplineSeriesView:aal","RadialColumnSeries:aam","RadialColumnSeriesView:aan","RadialLineSeries:aao","RadialLineSeriesView:aap","RadialPieSeries:aaq","RadialPieSeriesView:aar","SliceCoords:aas","ScatterSeries:aat","ScatterSeriesView:aau","Stacked100BarBucketCalculator:aav","Stacked100ColumnBucketCalculator:aaw","Stacked100AreaSeries:aax","Stacked100BarSeries:aay","Stacked100BarSeriesView:aaz","Stacked100ColumnSeries:aa0","Stacked100ColumnSeriesView:aa1","Stacked100LineSeries:aa2","Stacked100SplineAreaSeries:aa3","Stacked100SplineSeries:aa4","ChartTitleVisualDataList:aa5","StringColumn:aa6","ColumnUtil:aa7","AbstractEnumerable:aa8","AbstractEnumerator:aa9","GenericEnumerable$1:aba","GenericEnumerator$1:abb"]);n.ig.util.defType("ItemsSourceAction:qj","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ItemsSourceAction",n.ig.$ep.$type)},!0);n.ig.util.defType("EnableErrorBars:of","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("EnableErrorBars",n.ig.$ep.$type)},!0);n.ig.util.defType("WindowResponse:tk","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("WindowResponse",n.ig.$ep.$type)},!0);n.ig.util.defType("WindowMode:z3","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("WindowMode",n.ig.$ep.$type)},!0);n.ig.util.defType("SplineType:mp","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("SplineType",n.ig.$ep.$type)},!0);n.ig.util.defType("PriceDisplayType:z2","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("PriceDisplayType",n.ig.$ep.$type)},!0);n.ig.util.defType("OthersCategoryType:ng","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("OthersCategoryType",n.ig.$ep.$type)},!0);n.ig.util.defType("MarkerType:gc","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("MarkerType",n.ig.$ep.$type)},!0);n.ig.util.defType("LabelsPosition:ne","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("LabelsPosition",n.ig.$ep.$type)},!0);n.ig.util.defType("GridMode:ts","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("GridMode",n.ig.$ep.$type)},!0);n.ig.util.defType("AxisOrientation:iy","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("AxisOrientation",n.ig.$ep.$type)},!0);n.ig.util.defType("CategoryMode:hv","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("CategoryMode",n.ig.$ep.$type)},!0);n.ig.util.defType("AxisLabelsLocation:hh","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("AxisLabelsLocation",n.ig.$ep.$type)},!0);n.ig.util.defType("TransitionInSpeedType:q6","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("TransitionInSpeedType",n.ig.$ep.$type)},!0);n.ig.util.defType("HighlightingState:mk","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("HighlightingState",n.ig.$ep.$type)},!0);n.ig.util.defType("HighlightingMode:z0","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("HighlightingMode",n.ig.$ep.$type)},!0);n.ig.util.defType("CollisionAvoidanceType:n7","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("CollisionAvoidanceType",n.ig.$ep.$type)},!0);n.ig.util.defType("ChartContentType:j9","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ChartContentType",n.ig.$ep.$type)},!0);n.ig.util.defType("MouseButtonAction:pz","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("MouseButtonAction",n.ig.$ep.$type)},!0);n.ig.util.defType("MouseButtonType:p0","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("MouseButtonType",n.ig.$ep.$type)},!0);n.ig.util.defType("OuterLabelAlignment:qf","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("OuterLabelAlignment",n.ig.$ep.$type)},!0);n.ig.util.defType("FunnelSliceDisplay:qg","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("FunnelSliceDisplay",n.ig.$ep.$type)},!0);n.ig.util.defType("TimeAxisDisplayType:lh","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("TimeAxisDisplayType",n.ig.$ep.$type)},!0);n.ig.util.defType("LeaderLineType:nf","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("LeaderLineType",n.ig.$ep.$type)},!0);n.ig.util.defType("IndicatorDisplayType:wm","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("IndicatorDisplayType",n.ig.$ep.$type)},!0);n.ig.util.defType("BrushSelectionMode:o1","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("BrushSelectionMode",n.ig.$ep.$type)},!0);n.ig.util.defType("CategoryTransitionInMode:q1","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("CategoryTransitionInMode",n.ig.$ep.$type)},!0);n.ig.util.defType("NumericScaleMode:iv","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("NumericScaleMode",n.ig.$ep.$type)},!0);n.ig.util.defType("AxisTitlePosition:fb","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("AxisTitlePosition",n.ig.$ep.$type)},!0);n.ig.util.defType("PointerTooltipPointerLocation:uq","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("PointerTooltipPointerLocation",n.ig.$ep.$type)},!0);n.ig.util.defType("CategoryTooltipLayerPosition:ur","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("CategoryTooltipLayerPosition",n.ig.$ep.$type)},!0);n.ig.util.defType("CategoryItemHighlightType:uj","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("CategoryItemHighlightType",n.ig.$ep.$type)},!0);n.ig.util.defType("IProvidesViewport:a","Object",{$type:new n.ig.Type("IProvidesViewport",null)},!0);n.ig.util.defType("Series:aj","Control",{_view:null,view:function(n){return arguments.length===1?(this._view=n,n):this._view},_uniqueIndex:0,_jq:null,jq:function(n){return arguments.length===1?(this._jq=n,n):this._jq},init:function(){var i=this;this.bh=!0;this.bi=!1;this.be=!1;this.ar=new t.s9;this.bj=!1;this.bd=!1;t.$ak.init.call(this);this._uniqueIndex=t.$aj.dy++;this.cl(!0);this.jq(t.$x.empty());this.view(this.au());this.view().bv(t.$x.empty());this.hc(this.view());this.view().l(!0);this.view().ao();this.view().l(!1);this.y(t.$aj.$type);this.bc=function(n,t){i.h3(t.oldRect(),t.newRect())};this.aq=function(n,t){i.hh(n,t.propertyName(),t.oldValue(),t.newValue())};this.dw=function(n,t){i.seriesViewer()!=null&&(i.cl(!0),i.seriesViewer().g3());i.gj(t.action(),t.position(),t.count(),t.propertyName())};this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,function(n,t){i.hh(n,t.propertyName(),t.oldValue(),t.newValue())});this.rootCanvas(new t.fo);this.a5(new t.eo(0,1,this.transitionDuration()));this.a5().propertyChanged=n.ig.Delegate.prototype.combine(this.a5().propertyChanged,this.gb.runOn(this));this.f(t.$aj.je,function(){var n=new t.a0(1,"Visibility");return n.d(i),n}())},gb:function(){this.du(this.a5().transitionProgress())},_a5:null,a5:function(n){return arguments.length===1?(this._a5=n,n):this._a5},hc:function(){},ha:function(){this.gc(this.actualLegend(),this.actualLegend());this.bb()==null&&this.syncLink()!=null&&this.itemsSource()!=null&&this.bb(n.ig.util.cast(t.$j5.$type,this.syncLink()).getFastItemsSource(this.itemsSource()));this.view().ar()},hb:function(){this.gg();this.bb()!=null&&this.syncLink()!=null&&this.itemsSource()!=null&&this.bb(n.ig.util.cast(t.$j5.$type,this.syncLink()).releaseFastItemsSource(this.itemsSource()));this.view().as()},au:function(){return new t.bb(this)},_rootCanvas:null,rootCanvas:function(n){return arguments.length===1?(this._rootCanvas=n,n):this._rootCanvas},cq:function(){return!1},getExactItemIndex:function(n){return this.getItemIndex(n)},getItemIndex:function(){return-1},getItem:function(){return null},ef:function(n,t){return n.getItem(t)},isAnnotationLayer:function(){return!1},isVertical:function(){return!1},isPolar:function(){return!1},isScatter:function(){return!1},isRadial:function(){return!1},isStacked:function(){return!1},isFinancial:function(){return!1},isRange:function(){return!1},isCategory:function(){return!1},isDefaultCrosshairBehaviorDisabled:function(){return!1},isDefaultTooltipBehaviorDisabled:function(){return!1},c8:function(){return Number.POSITIVE_INFINITY},c9:function(n,t,i,r,u,f,e){var c,l,v,b,k,d,a,y,g;if(i==null||t<0||t>f-1)return Number.POSITIVE_INFINITY;var h,o=NaN,s=NaN,p=NaN,w=NaN;return i.isSorting()?(c=i,h=e(n),l=Math.floor(h),v=Math.ceil(h),w=h-l,l>=0&&l<f?(b=c.getUnscaledValueAt(c.sortedIndices().__inner[l]),o=i.getScaledValue(b,r)+u):o=NaN,v>=0&&v<f?(k=c.getUnscaledValueAt(c.sortedIndices().__inner[v]),s=i.getScaledValue(k,r)+u):s=NaN,isNaN(o)&&!isNaN(s)&&(o=s),isNaN(s)&&!isNaN(o)&&(s=o),t>=0&&t<f&&(d=c.getUnscaledValueAt(c.sortedIndices().__inner[t]),p=i.getScaledValue(d,r)+u)):(h=this.getExactItemIndex(n),a=Math.floor(h),y=Math.ceil(h),w=h-a,o=a>=0&&a<f?i.getScaledValue(a,r)+u:NaN,s=y>=0&&y<f?i.getScaledValue(y,r)+u:NaN,isNaN(o)&&!isNaN(s)&&(o=s),isNaN(s)&&!isNaN(o)&&(s=o),t>=0&&t<f&&(p=i.getScaledValue(t,r)+u)),g=o+w*(s-o),Math.abs(p-g)},cs:function(){return!1},dk:function(n,t,i,r,u,f,e,o){var c,a;if(n==null)return NaN;var p=this.cs(),s=this.d5(t,o,i,f,n),h=this.d3(t,o,i,f,n),l=this.c8(t,s,i,r,u),v=this.c8(t,h,i,r,u),w=s,b=h,y=i.isSorting();if(y&&!p&&(c=i,s>=0&&s<c.sortedIndices().count()&&(s=c.sortedIndices().__inner[s]),h>=0&&s<c.sortedIndices().count()&&(h=c.sortedIndices().__inner[h])),a=l/(v+l),l==0&&(a=0),v==0&&(a=1),!e){if(v<=l){if(h>=0&&h<n.count())return n.item(h)}else if(s>=0&&s<n.count())return n.item(s);return NaN}return this.dd(a,n,s,h,w,b,u,y)},dd:function(n,t,i,r,u,f,e,o){var h=NaN,s;return(i>=0&&i<t.count()&&(h=t.item(i)),s=NaN,r>=0&&r<t.count()&&(s=t.item(r)),f==0)?s:u==t.count()-1?h:isNaN(s)&&e!=0&&n<=.5&&!o?h:isNaN(h)&&e!=0&&n>=.5&&!o?s:h*(1-n)+s*n},d5:function(n,t,i,r,u){var s;if(i==null)return-1;var h=i.isSorting(),c=this.cs(),o=null;h&&(o=i);var e=-1,f=-1,l=-1;if(h){if(e=r(n),isNaN(e))return-1;f=Math.floor(e);l=Math.ceil(e)}else{if(e=this.getExactItemIndex(n),isNaN(e))return-1;f=Math.floor(e);l=Math.ceil(e)}if(u==null||f<0||f>u.count()-1)return-1;if(!t)return f;for(s=NaN,h&&!c?f<o.sortedIndices().count()&&o.sortedIndices().__inner[f]<u.count()&&(s=u.item(o.sortedIndices().__inner[f])):s=u.item(f);isNaN(s);){if(f--,f<0||f>u.count()-1)return-1;s=h&&!c?u.item(o.sortedIndices().__inner[f]):u.item(f)}return f},d3:function(n,t,i,r,u){var c=this.cs(),h=i.isSorting(),o=null,s;h&&(o=i);var e=-1,l=-1,f=-1;if(h){if(e=r(n),isNaN(e))return-1;l=Math.floor(e);f=Math.ceil(e)}else{if(e=this.getExactItemIndex(n),isNaN(e))return-1;l=Math.floor(e);f=Math.ceil(e)}if(u==null||f<0||f>u.count()-1)return-1;if(!t)return f;for(s=NaN,h&&!c?f<o.sortedIndices().count()&&o.sortedIndices().__inner[f]<u.count()&&(s=u.item(o.sortedIndices().__inner[f])):s=u.item(f);isNaN(s);){if(f++,f<0||f>u.count()-1)return-1;s=h&&!c?u.item(o.sortedIndices().__inner[f]):u.item(f)}return f},dc:function(n,i){var r=this.view().bw(),u=this.view().bv(),o,f,e;if(r.isEmpty()||u.isEmpty()||(o=null,i.isSorting()&&(o=i),f=new t.iu(r,u,i.isInverted()),this.seriesViewer()==null))return-1;if(f.b=this.seriesViewer().effectiveViewport(),e=0,i.isVertical()){var s=i.getUnscaledValue(u.top(),f),c=i.getUnscaledValue(u.bottom(),f),l=(n.__y-r.top())/r.height();e=s+(c-s)*l}else{var h=i.getUnscaledValue(u.left(),f),a=i.getUnscaledValue(u.right(),f),v=(n.__x-r.left())/r.width();e=h+(a-h)*v}return i.isDateTime(),o.getExactUnsortedIndexClosestToUnscaledValue(e)},getPreviousOrExactIndex:function(){return-1},getNextOrExactIndex:function(){return-1},getSeriesValue:function(){return NaN},getSeriesValuePosition:function(){return{__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},et:function(i,r,u,f,e,o,s,h,c){var d,l,g,nt,v,a,it,y,rt,tt;if(e==null||o==null||this.view()==null||this.view().bw().isEmpty()||this.view().bv().isEmpty())return{__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(d=new t.iu(this.view().bw(),this.view().bv(),e.isInverted()),d.b=this.seriesViewer().effectiveViewport(),o.isVertical()?(l=i.__y,l=this.view().bv().top()+this.view().bv().height()*(l-this.view().bw().top())/this.view().bw().height()):(l=i.__x,l=this.view().bv().left()+this.view().bv().width()*(l-this.view().bw().left())/this.view().bw().width()),r||o==null)o.isCategory()&&!o.isDateTime()&&o.categoryMode()!=0&&(y=.5*o.getCategorySize(this.view().bw(),this.view().bv()),this.isVertical()&&(y=y*-1),o.isInverted()&&(y=y*-1),l-=y,l+=f);else{g=h!=null?h(i,u):this.getPreviousOrExactIndex(i,u);nt=c!=null?c(i,u):this.getNextOrExactIndex(i,u);v=new t.iu(this.view().bw(),this.view().bv(),o.isInverted());v.b=this.seriesViewer().viewportRect();var k=this.c8(i,g,o,v,f),p=this.c8(i,nt,o,v,f),w=nt,b=g;o.isSorting()&&(a=o,w>=0&&w<a.sortedIndices().count()&&(w=a.getUnscaledValueAt(a.sortedIndices().__inner[w])),b>=0&&b<a.sortedIndices().count()&&(b=a.getUnscaledValueAt(a.sortedIndices().__inner[b])));p+k!=0&&(it=p/(k+p),Math.abs(it-.5)<1e-7&&(p=k));l=p<=k?o.getScaledValue(w,v)+f:o.getScaledValue(b,v)+f}return rt=s!=null?s(i,r,u):this.getSeriesValue(i,r,u),tt=e.getScaledValue(rt,d),o.isVertical()?{__x:tt,__y:l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}:{__x:l,__y:tt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getSeriesHighValue:function(n,t,i){return this.getSeriesValue(n,t,i)},getSeriesHighValuePosition:function(n,t,i){return this.getSeriesValuePosition(n,t,i)},getSeriesLowValue:function(n,t,i){return this.getSeriesValue(n,t,i)},getSeriesLowValuePosition:function(n,t,i){return this.getSeriesValuePosition(n,t,i)},getSeriesValuePositionFromSeriesPixel:function(n,t,i){var r=this.toWorldPosition(n);return this.getSeriesValuePosition(r,t,i)},getSeriesValueFromSeriesPixel:function(n,t,i){var r=this.toWorldPosition(n);return this.getSeriesValue(r,t,i)},getSeriesHighValuePositionFromSeriesPixel:function(n,t,i){var r=this.toWorldPosition(n);return this.getSeriesHighValuePosition(r,t,i)},getSeriesHighValueFromSeriesPixel:function(n,t,i){var r=this.toWorldPosition(n);return this.getSeriesHighValue(r,t,i)},getSeriesLowValuePositionFromSeriesPixel:function(n,t,i){var r=this.toWorldPosition(n);return this.getSeriesLowValuePosition(r,t,i)},getSeriesLowValueFromSeriesPixel:function(n,t,i){var r=this.toWorldPosition(n);return this.getSeriesLowValue(r,t,i)},getItemIndexFromSeriesPixel:function(n){var t=this.toWorldPosition(n);return this.getItemIndex(t)},getExactItemIndexFromSeriesPixel:function(n){var t=this.toWorldPosition(n);return this.getExactItemIndex(t)},getItemFromSeriesPixel:function(n){var t=this.toWorldPosition(n);return this.getItem(t)},propertyChanged:null,propertyUpdated:null,raisePropertyChanged:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},hasMarkers:function(){return!1},getActualMarkerBrush:function(){return null},getActualMarkerOutlineBrush:function(){return null},getActualMarkerTemplate:function(){return null},toWorldPosition:function(t){var i=this.view().bv(),r=this.view().bw();return{__x:r.left()+r.width()*(t.__x-i.left())/i.width(),__y:r.top()+r.height()*(t.__y-i.top())/i.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},fromWorldPosition:function(t){var i=this.view().bv(),r=this.view().bw(),u=i.left()+(t.__x-r.left())/r.width()*i.width(),f=i.top()+(t.__y-r.top())/r.height()*i.height();return{__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},eg:function(n,t){var r=this.view().b(n),i=r!=null?r.item():null;if(i==null){var f=this.view().bv(),e=this.view().bw(),u=this.toWorldPosition(t);i=this.getItem(u)}return i},scrollIntoView:function(){return!1},ad:function(){return new t.im(NaN,NaN)},renderSeries:function(n){if(this.cj(!1),this.seriesViewer()!=null&&(this.seriesViewer().ah().x(0,this,this.ae(),n),this.renderRequested!=null)){var i=new t.s2;i.animate(n);this.renderRequested(this,i);n=i.animate()}},renderRequested:null,gm:function(n){this.hq(n);this.cj(!1)},hq:function(){this.cn()&&!this.ci()&&this.cn(!1)},_cm:!1,cm:function(n){return arguments.length===1?(this._cm=n,n):this._cm},gf:function(){this.cm()&&!this.cn()&&(this.a5().intervalMilliseconds(Math.max(this.dl(),this.dm())),this.gi())},gi:function(){},_av:null,av:function(n){return arguments.length===1?(this._av=n,n):this._av},hr:function(n){this.av()==null&&(this.av(this.au()),this.av().n(!0),this.seriesViewer()!=null&&this.seriesViewer().ae().h(this.av()),this.av().ao());this.av().bv(n)},getViewInfo:function(n,t){return n=this.view().bv(),t=this.view().bw(),{viewportRect:n,windowRect:t}},ct:function(){return n.ig.util.cast(t.$sd.$type,this)!==null||n.ig.util.cast(t.$ka.$type,this)!==null?!0:this.__visibility==0},gh:function(n){n&&this.cl(!0)},bm:function(){return this.bn(this.view())},bn:function(n){var t=n.bv(),i=n.bw();return this.ct(t,i,n)?!1:(this.gh(!0,n),!0)},hd:function(n,t){this.view().bv(t);this.h2(n,t);this.seriesViewer()!=null&&this.seriesViewer().ah().z(0,this,this.ae(),t)},h3:function(){},h2:function(){},_ae:null,ae:function(n){return arguments.length===1?(this._ae=n,n):this._ae},bh:!1,cl:function(n){return arguments.length===1?(this.bh=n,n):this.bh},gp:function(n){n.gn()},gz:function(){this.ck(!1);this.cl(!0);this.seriesViewer()!=null&&this.seriesViewer().g3()},gy:function(){this.ck(!1);this.cl(!0);this.seriesViewer()!=null&&this.seriesViewer().g2()},isIndexed:function(){return!0},isUsableInLegend:function(){return!0},g1:function(){this.view().ak()},notifyVisualPropertiesChanged:function(){this.he()},he:function(){this.view().av();this.hg(!1)},hf:function(){this.view().av();this.hg(!0)},_cj:!1,cj:function(n){return arguments.length===1?(this._cj=n,n):this._cj},_ck:!1,ck:function(n){return arguments.length===1?(this._ck=n,n):this._ck},hg:function(n){if(this.ae()!=null&&!this.ae().c()){var t=this.view().bv(),i=this.view().bw(),r=this.ct(t,i,this.view()),u=this.seriesViewer()!=null&&this.seriesViewer().isThumbnailRequired()&&this.av()!=null&&this.ct(this.av().bv(),this.av().bw(),this.av());r&&(n?(this.cj(!0),this.gm(!1)):(this.renderSeries(!1),this.cj(!0)));u&&(this.cl()||(this.gy(),this.ck(!0)))}},bi:!1,cn:function(n){return arguments.length===1?(this.bi=n,n):this.bi},hh:function(i,r,u,f){switch(r){case"SyncLink":n.ig.util.cast(t.$on.$type,u)!=null&&(n.ig.util.cast(t.$on.$type,u).propertyUpdated=n.ig.Delegate.prototype.remove(n.ig.util.cast(t.$on.$type,u).propertyUpdated,this.aq),this.hn(n.ig.util.cast(t.$j5.$type,u)));n.ig.util.cast(t.$on.$type,f)!=null&&(n.ig.util.cast(t.$on.$type,f).propertyUpdated=n.ig.Delegate.prototype.combine(n.ig.util.cast(t.$on.$type,f).propertyUpdated,this.aq),this.hm(n.ig.util.cast(t.$j5.$type,f)));this.index()==-1&&this.index(t.$bd.mk(this));break;case"Brushes":case"MarkerOutlines":case"MarkerBrushes":case"Outlines":this.gn();break;case"SeriesViewer":n.ig.util.cast(t.$be.$type,u)!=null&&(n.ig.util.cast(t.$be.$type,u).windowRectChanged=n.ig.Delegate.prototype.remove(n.ig.util.cast(t.$be.$type,u).windowRectChanged,this.bc),n.ig.util.cast(t.$be.$type,u).series().collectionChanged=n.ig.Delegate.prototype.remove(n.ig.util.cast(t.$be.$type,u).series().collectionChanged,this.c4),n.ig.util.cast(t.$be.$type,u).propertyUpdated=n.ig.Delegate.prototype.remove(n.ig.util.cast(t.$be.$type,u).propertyUpdated,this.aq),n.ig.util.cast(t.$be.$type,u).ah().y(0,this),this.view().ag(u));n.ig.util.cast(t.$be.$type,f)!=null&&(n.ig.util.cast(t.$be.$type,f).windowRectChanged=n.ig.Delegate.prototype.combine(n.ig.util.cast(t.$be.$type,f).windowRectChanged,this.bc),n.ig.util.cast(t.$be.$type,f).series().collectionChanged=n.ig.Delegate.prototype.combine(n.ig.util.cast(t.$be.$type,f).series().collectionChanged,this.c4),n.ig.util.cast(t.$be.$type,f).propertyUpdated=n.ig.Delegate.prototype.combine(n.ig.util.cast(t.$be.$type,f).propertyUpdated,this.aq),this.ae(n.ig.util.cast(t.$be.$type,f).ah().i(0,this,this.gm.runOn(this))),this.view().ac(f),this.hy(),this._uniqueIndex=this.seriesViewer().d0());(this.index()==-1||f==null)&&this.index(t.$bd.mk(this));this.actualLegend(this.an());this.gd(n.ig.util.cast(t.$bd.$type,u),n.ig.util.cast(t.$bd.$type,f));break;case"Title":this.view()!=null&&this.view().au();break;case"LegendItemBadgeTemplate":case"LegendItemTemplate":this.view().bf();break;case"Brush":case"Outline":case"DashArray":case"DashCap":this.gn();this.he();break;case"Index":u!=f&&(this.gn(),this.he());break;case"RadiusX":case"RadiusY":case"RoundedCornersLocation":this.he();break;case"AreaFillOpacity":this.hy();this.he();break;case"StartCap":case"EndCap":case"MiterLimit":this.he();break;case"IsDropShadowEnabled":this.g1();this.he();break;case"UseSingleShadow":case"ShadowColor":case"ShadowBlur":case"ShadowOffsetX":case"ShadowOffsetY":this.he();break;case"ActualBrush":case"ActualOutline":case"Thickness":this.he();this.view().bf();this.toolTip()!=null&&this.view().bh(this.toolTip());break;case"Visibility":this.view().bi();break;case"ItemsSource":this.syncLink()!=null&&this.hm(this.syncLink());break;case"FastItemsSource":u!=f&&f!=null&&this.cn(!0);this.gz();n.ig.util.cast(t.$jw.$type,u)!=null&&(n.ig.util.cast(t.$jw.$type,u).event=n.ig.Delegate.prototype.remove(n.ig.util.cast(t.$jw.$type,u).event,this.dw));n.ig.util.cast(t.$jw.$type,f)!=null&&(n.ig.util.cast(t.$jw.$type,f).event=n.ig.Delegate.prototype.combine(n.ig.util.cast(t.$jw.$type,f).event,this.dw));break;case"Legend":f!=null&&(i==this?n.ig.util.cast(t.$ni.$type,f).aq(this):n.ig.util.cast(t.$bd.$type,i)!==null&&n.ig.util.cast(t.$ni.$type,f).ao(i));this.actualLegend(this.an());break;case"ActualLegend":this.gc(n.ig.util.cast(t.$ni.$type,u),n.ig.util.cast(t.$ni.$type,f));break;case"LegendItem":this.ge(n.ig.util.cast(t.$ak.$type,u),n.ig.util.cast(t.$ak.$type,f));break;case"LegendItemVisibility":this.view().ap();break;case"ToolTip":this.view().bh(this.toolTip());break;case"CrosshairPoint":this.seriesViewer()!=null&&(this.bo()||this.seriesViewer().ia(this,this.getItem(this.seriesViewer().crosshairPoint())));break;case"Resolution":this.renderSeries(!1);this.gy();break;case"TransitionDuration":case"TransitionEasingFunction":this.a5().stop();this.a5().intervalMilliseconds(this.transitionDuration());this.a5().easingFunction(this.transitionEasingFunction());this.renderSeries(!1);break;case"DiscreteLegendItemTemplate":this.renderSeries(!1);break;case"VisibilityProxy":u!=f&&this.renderSeries(!1);this.gy();this.view().bi();break;case"IsHighlightingEnabled":this.bk(this.br());this.renderSeries(!1)}},br:function(){return this.isHighlightingEnabled()&&this.b2()},b2:function(){return!1},_bo:!1,bo:function(n){return arguments.length===1?(this._bo=n,n):this._bo},gl:function(n){n.bo(!0)},syncLink:function(n){if(arguments.length===1){if(this.syncLink()!=n){var t=this.syncLink();this.ax=n;this.raisePropertyChanged("SyncLink",t,this.syncLink())}return n}return this.ax},ax:null,seriesViewer:function(n){if(arguments.length===1){if(this.seriesViewer()!=n){var t=this.seriesViewer();this.a3=n;this.raisePropertyChanged("SeriesViewer",t,this.a3)}return n}return this.a3},a3:null,chart:function(i){return arguments.length===1?(this.seriesViewer(i),i):n.ig.util.cast(t.$bd.$type,this.seriesViewer())},c4:null,aq:null,bc:null,itemsSource:function(n){return arguments.length===1?(this.g(t.$aj.itemsSourceProperty,n),n):this.c(t.$aj.itemsSourceProperty)},bb:function(n){return arguments.length===1?(this.g(t.$aj.im,n),n):this.c(t.$aj.im)},dw:null,gj:function(){},legend:function(n){return arguments.length===1?(this.g(t.$aj.legendProperty,n),n):this.c(t.$aj.legendProperty)},legendItem:function(n){if(arguments.length===1){if(this.legendItem()!=n){var t=this.legendItem();this.h5=n;this.raisePropertyChanged("LegendItem",t,this.h5)}return n}return this.h5},h5:null,ei:function(){return this.h4()},h4:function(){var r=this,i=n.ig.util.cast(t.$cf.$type,r.legendItem()),u=r.legendItemTemplate();return u!=null?(i==null&&(i=new t.cf),i.content(function(){var n=new t.fl;return n.series(r),n.item(null),n}()),i.ae(u)):i=null,i},actualLegend:function(n){if(arguments.length===1){if(this.actualLegend()!=n){var t=this.al;this.al=n;this.raisePropertyChanged("ActualLegend",t,this.al)}return n}return this.al},al:null,legendItemVisibility:function(n){return arguments.length===1?(this.g(t.$aj.legendItemVisibilityProperty,n),n):this.c(t.$aj.legendItemVisibilityProperty)},legendItemBadgeTemplate:function(n){return arguments.length===1?(this.g(t.$aj.legendItemBadgeTemplateProperty,n),n):this.c(t.$aj.legendItemBadgeTemplateProperty)},legendItemTemplate:function(n){return arguments.length===1?(this.g(t.$aj.legendItemTemplateProperty,n),n):this.c(t.$aj.legendItemTemplateProperty)},discreteLegendItemTemplate:function(n){return arguments.length===1?(this.g(t.$aj.discreteLegendItemTemplateProperty,n),n):this.c(t.$aj.discreteLegendItemTemplateProperty)},index:function(n){return arguments.length===1?(this.g(t.$aj.indexProperty,n),n):this.c(t.$aj.indexProperty)},h1:function(){this.hz()},gn:function(){this.hz()},hz:function(){(this.gy(),this.index()<0)||(this.brush()!=null?(this.view().a2(),this.view().ad()):this.actualBrush(this.seriesViewer()==null?null:this.seriesViewer().kv(this.index())),this.outline()!=null?(this.view().a3(),this.view().ae()):this.actualOutline(this.seriesViewer()==null?null:this.seriesViewer().k1(this.index())))},transitionEasingFunction:function(n){return arguments.length===1?(this.g(t.$aj.transitionEasingFunctionProperty,n),n):this.c(t.$aj.transitionEasingFunctionProperty)},transitionInEasingFunction:function(n){return arguments.length===1?(this.g(t.$aj.transitionInEasingFunctionProperty,n),n):this.c(t.$aj.transitionInEasingFunctionProperty)},_bq:!1,bq:function(n){return arguments.length===1?(this._bq=n,n):this._bq},transitionDuration:function(n){return arguments.length===1?(this.g(t.$aj.transitionDurationProperty,n),n):this.c(t.$aj.transitionDurationProperty)},du:function(n){return arguments.length===1?(this.g(t.$aj.jc,n),n):this.c(t.$aj.jc)},bl:function(){return this.a5().animationActive()},hw:function(){this.a5().start()},resolution:function(n){return arguments.length===1?(this.g(t.$aj.resolutionProperty,n),n):this.c(t.$aj.resolutionProperty)},title:function(n){return arguments.length===1?(this.g(t.$aj.titleProperty,n),n):this.c(t.$aj.titleProperty)},brush:function(n){return arguments.length===1?(this.g(t.$aj.brushProperty,n),n):this.c(t.$aj.brushProperty)},actualBrush:function(n){return arguments.length===1?(this.g(t.$aj.actualBrushProperty,n),n):this.c(t.$aj.actualBrushProperty)},outline:function(n){return arguments.length===1?(this.g(t.$aj.outlineProperty,n),n):this.c(t.$aj.outlineProperty)},actualOutline:function(n){return arguments.length===1?(this.g(t.$aj.actualOutlineProperty,n),n):this.c(t.$aj.actualOutlineProperty)},miterLimit:function(n){return arguments.length===1?(this.g(t.$aj.miterLimitProperty,n),n):this.c(t.$aj.miterLimitProperty)},thickness:function(n){return arguments.length===1?(this.g(t.$aj.thicknessProperty,n),n):this.c(t.$aj.thicknessProperty)},dashCap:function(n){return arguments.length===1?(this.g(t.$aj.dashCapProperty,n),n):this.c(t.$aj.dashCapProperty)},dashArray:function(n){return arguments.length===1?(this.g(t.$aj.dashArrayProperty,n),n):this.c(t.$aj.dashArrayProperty)},toolTip:function(n){return arguments.length===1?(this.g(t.$aj.toolTipProperty,n),n):this.c(t.$aj.toolTipProperty)},isHighlightingEnabled:function(n){return arguments.length===1?(this.g(t.$aj.isHighlightingEnabledProperty,n),n):this.c(t.$aj.isHighlightingEnabledProperty)},isDropShadowEnabled:function(n){return arguments.length===1?(this.g(t.$aj.isDropShadowEnabledProperty,n),n):this.c(t.$aj.isDropShadowEnabledProperty)},bz:function(){return!0},shadowBlur:function(n){return arguments.length===1?(this.g(t.$aj.shadowBlurProperty,n),n):this.c(t.$aj.shadowBlurProperty)},shadowColor:function(n){return arguments.length===1?(this.g(t.$aj.shadowColorProperty,n),n):this.c(t.$aj.shadowColorProperty)},useSingleShadow:function(n){return arguments.length===1?(this.g(t.$aj.useSingleShadowProperty,n),n):this.c(t.$aj.useSingleShadowProperty)},shadowOffsetX:function(n){return arguments.length===1?(this.g(t.$aj.shadowOffsetXProperty,n),n):this.c(t.$aj.shadowOffsetXProperty)},shadowOffsetY:function(n){return arguments.length===1?(this.g(t.$aj.shadowOffsetYProperty,n),n):this.c(t.$aj.shadowOffsetYProperty)},_bk:!1,bk:function(n){return arguments.length===1?(this._bk=n,n):this._bk},areaFillOpacity:function(n){return arguments.length===1?(this.g(t.$aj.areaFillOpacityProperty,n),n):this.c(t.$aj.areaFillOpacityProperty)},actualAreaFillOpacity:function(n){return arguments.length===1?(this.g(t.$aj.actualAreaFillOpacityProperty,n),n):this.c(t.$aj.actualAreaFillOpacityProperty)},hy:function(){var i=n.ig.util.cast(t.$bd.$type,this.seriesViewer());i!=null&&this.actualAreaFillOpacity(isNaN(this.areaFillOpacity())?i.l6().ef():this.areaFillOpacity())},be:!1,isDefaultToolTipSelected:function(n){return arguments.length===1?(this.be=n,n):this.be},ag:function(n){var i=this;return function(){var r=new t.fl;return r.series(i),r.item(n),r}()},transitionInDuration:function(n){return arguments.length===1?(this.g(t.$aj.transitionInDurationProperty,n),n):this.c(t.$aj.transitionInDurationProperty)},transitionInSpeedType:function(n){return arguments.length===1?(this.g(t.$aj.transitionInSpeedTypeProperty,n),n):this.c(t.$aj.transitionInSpeedTypeProperty)},az:function(){return 1},_ec:null,ec:function(n){return arguments.length===1?(this._ec=n,n):this._ec},ho:function(){this.view().ay()},replayTransitionIn:function(){this.cn(!0);this.renderSeries(!0)},gs:function(){},wMA:function(n,i){return t.$uc.g(n,i)},eMA:function(n,i){return t.$uc.b(n,i)},mMA:function(n,i){return t.$uc.c(n,i)},cMA:function(n){return t.$uc.a(n)},sMA:function(n,i){return t.$uc.e(n,i)},movingSum:function(n,i){return t.$uc.d(n,i)},sTDEV:function(n,i){return t.$uc.f(n,i)},toEnumerableRange:function(t,i,r){var u=this,f=function(){return function(n,t,i){return{$state:0,$this:u,$current:null,$d:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$d=t;this.$state=5;break;case 2:return this.$current=n(this.$d),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$d++;this.$state=5;break;case 5:this.$state=this.$d<i?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i,r)};return new n.ig.GenericEnumerable$1(Number,f)},toEnumerable:function(n,i){return t.$aj.toEnumerableRange(n,0,i)},startCap:function(n){return arguments.length===1?(this.g(t.$aj.startCapProperty,n),n):this.c(t.$aj.startCapProperty)},endCap:function(n){return arguments.length===1?(this.g(t.$aj.endCapProperty,n),n):this.c(t.$aj.endCapProperty)},ar:null,as:function(){return this.ar},ht:function(n){this.h0(n)},dl:function(){return this.transitionDuration()},dm:function(){return this.transitionInDuration()},_eh:null,eh:function(n){return arguments.length===1?(this._eh=n,n):this._eh},_cd:!1,cd:function(n){return arguments.length===1?(this._cd=n,n):this._cd},_ce:!1,ce:function(n){return arguments.length===1?(this._ce=n,n):this._ce},bj:!1,co:function(n){return arguments.length===1?(this.bj=n,n):this.bj},ch:function(){return this.co()},bf:!1,b4:function(n){return arguments.length===1?(this.bf=n,n):this.bf},bg:!1,b5:function(n){return arguments.length===1?(this.bg=n,n):this.bg},ah:function(){return null},ai:function(){return null},_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},_ak:null,ak:function(n){return arguments.length===1?(this._ak=n,n):this._ak},gt:function(n,t,i,r){var s;if(!this.seriesViewer().b5()&&this.bk()&&this.seriesViewer()!=null){var f=null,u=null,e=this.seriesViewer().ap(),o=this.seriesViewer().a8();r&&this.aj()!=null?f=this.aj():(f=this.ah(n,t),this.aj()!=null&&this.aj()!=f&&this.seriesViewer()!=null&&e.p(this.aj()),this.aj(f));this.hasMarkers()&&(r&&this.ak()!=null?u=this.ak():(u=this.ai(n,t),this.ak()!=null&&this.ak()!=u&&e.p(this.ak()),this.ak(u)));s=!0;r?(e.p(f),u!=null&&e.p(u)):(i||!s)&&(e.q(f),u!=null&&e.q(u));!o.animationActive()&&o.intervalMilliseconds()>0&&o.start();o.intervalMilliseconds()==0&&this.seriesViewer().i4(1)}},g4:function(n,t,i){this.view().ai();this.cd(!0);var r=this.eg(t,n);this.eh(r);this.seriesViewer()==null||this.ae().c()||this.view().bg(n,r,i);this.bf=!1;this.ch()&&r==null&&(this.bf=!0);this.seriesViewer()==null||this.bf||(this.ch()&&(this.bg=!0),this.gt(r,this.toWorldPosition(n),!0,!1),this.seriesViewer().hr(this,r,i))},simulateHover:function(n){var t=this,i=null,u=null,r,f=function(){var i=t.seriesViewer().a6().f(n,!1,r);return r=i.context,i.ret}();if(f!=t){t.cd()&&t.g5(n,null,null);return}i=r;t.cd()||t.g4(n,i,u);t.g7(n,i,u)},g7:function(n,t,i){this.cd(!0);var r=this.eg(t,n);this.view().bg(n,r,i);r!=null&&this.eh(r);this.seriesViewer()!=null&&r!=null&&this.bf&&(this.bf=!1,this.bg=!0,this.gt(r,this.toWorldPosition(n),!0,!1),this.seriesViewer().hr(this,r,i));this.seriesViewer()==null||this.ch()&&r==null||this.bf||(this.gt(r,this.toWorldPosition(n),!0,!1),this.seriesViewer().hv(this,r,i));r==null&&!this.bf&&this.ch()&&(this.gt(r,this.toWorldPosition(n),!1,!0),this.seriesViewer().hs(this,this.eh(),i),this.bg=!1,this.bf=!0)},g5:function(n,t,i){this.view().aj();this.cd(!1);var r=this.eh();this.view().al();this.seriesViewer()!=null&&(this.bg||!this.ch())&&(this.bg=!1,this.bf=!1,this.gt(r,this.toWorldPosition(n),!1,!0),this.seriesViewer().hs(this,r,i))},g2:function(n,t,i){this.ce(!0);this.seriesViewer()!=null&&this.seriesViewer().ht(this,this.eg(t,n),i)},g6:function(n,t,i){this.ce(!1);this.seriesViewer()!=null&&this.cd()&&this.seriesViewer().hu(this,this.eg(t,n),i)},g3:function(n,t,i){this.ce()&&this.g6(n,t,i);this.cd()&&this.g5(n,t,i)},g8:function(n,t,i){this.seriesViewer()!=null&&this.seriesViewer().hw(this,this.eg(t,n),i)},g9:function(n,t,i){this.seriesViewer()!=null&&this.seriesViewer().hx(this,this.eg(t,n),i)},gd:function(n,t){this.actualLegend()!=null&&this.legendItem()!=null&&(t==null&&this.actualLegend().children().contains(this.legendItem())&&this.actualLegend().children().remove(this.legendItem()),t==null||this.actualLegend().children().contains(this.legendItem())||this.legendItemVisibility()==1||this.actualLegend().av(this.legendItem(),this))},gg:function(){this.actualLegend()!=null&&this.legendItem()!=null&&this.actualLegend().children().remove(this.legendItem())},gc:function(n,t){this.legendItem()!=null&&(n!=null&&n.children().contains(this.legendItem())&&n.children().remove(this.legendItem()),this.seriesViewer()==null||t==null||t.children().contains(this.legendItem())||this.legendItemVisibility()==1||t.av(this.legendItem(),this))},ge:function(n,t){this.actualLegend()!=null&&n!=null&&this.actualLegend().children().contains(n)&&this.actualLegend().children().remove(n);this.seriesViewer()!=null&&this.actualLegend()!=null&&t!=null&&this.legendItemVisibility()!=1&&this.actualLegend().av(t,this)},hn:function(n){this.bb(n.releaseFastItemsSource(this.itemsSource()))},hm:function(n){this.bb(n.getFastItemsSource(this.itemsSource()))},an:function(){return this.legend()!=null?this.legend():this.seriesViewer()!=null&&this.seriesViewer().legend()!=null?this.seriesViewer().legend():null},ci:function(){return!1},cg:function(n){return n&&this.dl()>0||this.bl()||this.cn()&&this.ci()&&this.dm()>0},gk:function(n){n!=null&&n.deregisterSeries(this)},hl:function(n){n!=null&&n.registerSeries(this)},at:function(){return this.view().f()},h0:function(n){this.view().a4(n)},hu:function(n,t){this.view().be(n,t)},provideContext:function(n,t){this.view().an(n,t)},provideViewport:function(n){this.hd(this.jr(),n)},handleCollectionChanged:function(n){this.bb()!=null&&this.bb().handleCollectionChanged(n)},notifySetItem:function(n,i,r){this.handleCollectionChanged(new t.e7(2,2,r,i,n))},notifyClearItems:function(){this.handleCollectionChanged(new t.e7(0,4))},notifyInsertItem:function(n,i){this.handleCollectionChanged(new t.e7(1,0,i,n))},notifyRemoveItem:function(n,i){this.handleCollectionChanged(new t.e7(1,1,i,n))},styleUpdated:function(){this.renderSeries(!1)},_tooltipTemplate:null,tooltipTemplate:function(n){return arguments.length===1?(this._tooltipTemplate=n,n):this._tooltipTemplate},_flattenEventArgs:null,flattenEventArgs:function(n){return arguments.length===1?(this._flattenEventArgs=n,n):this._flattenEventArgs},__coercionMethods:null,coercionMethods:function(n){return arguments.length===1?(this.__coercionMethods=n,n):this.__coercionMethods},bd:!1,expectFunctions:function(n){return arguments.length===1?(this.bd=n,n):this.bd},getHitDataContext:function(){return null},a8:function(n){if(n==null)return this.bb().registerColumn(null,null,!1);var i=null,r=t.$be.getCoercionMethod(n,this.coercionMethods());return n=r.b(),i=r.a(),this.bb().registerColumn(n,i,this.expectFunctions())},a9:function(n){if(n==null)return this.bb().registerColumnInt(null,null,!1);var i=null,r=t.$be.getCoercionMethod(n,this.coercionMethods());return n=r.b(),i=r.a(),this.bb().registerColumnInt(n,i,this.expectFunctions())},ba:function(n){if(n==null)return this.bb().registerColumnObject(null,null,!1);var i=null,r=t.$be.getCoercionMethod(n,this.coercionMethods());return n=r.b(),i=r.a(),this.bb().registerColumnObject(n,i,this.expectFunctions())},jr:function(){return this.view()!=null?this.view().bv():t.$x.empty()},exportVisualData:function(){var n=new t.gd;return n.viewport(this.jr()),n.type(this.getType().typeName()),n.name(this.name()),n.opacity(this.__opacity),this.go(n),this.view().ah(n),n},go:function(){},$type:new n.ig.Type("Series",t.$ak.$type,[t.$a8.$type,t.$a.$type])},!0);n.ig.util.defType("AnnotationLayer:tq","Series",{init:function(){this.j1={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};this.j2={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};t.$aj.init.call(this);this.j4({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},au:function(){return new t.tr(this)},hc:function(n){t.$aj.hc.call(this,n);this.jt(n)},jy:function(n){return n==null?!1:n.isAnnotationLayer()?!1:n==this?!1:n.ct(n.view().bv(),n.view().bw(),n.view())},_jt:null,jt:function(n){return arguments.length===1?(this._jt=n,n):this._jt},useIndex:function(n){return arguments.length===1?(this.g(t.$tq.useIndexProperty,n),n):this.c(t.$tq.useIndexProperty)},useLegend:function(n){return arguments.length===1?(this.g(t.$tq.useLegendProperty,n),n):this.c(t.$tq.useLegendProperty)},cursorPosition:function(n){return arguments.length===1?(this.g(t.$tq.cursorPositionProperty,n),n):this.c(t.$tq.cursorPositionProperty)},isDefaultCrosshairDisabled:function(n){return arguments.length===1?(this.g(t.$tq.isDefaultCrosshairDisabledProperty,n),n):this.c(t.$tq.isDefaultCrosshairDisabledProperty)},isDefaultCrosshairBehaviorDisabled:function(){return this.isDefaultCrosshairDisabled()},isIndexed:function(){return this.useIndex()||this.useLegend()},isUsableInLegend:function(){return this.useLegend()},hh:function(i,r,u,f){var e,o,s,h;t.$aj.hh.call(this,i,r,u,f);switch(r){case"SeriesViewer":e=u;o=f;e!=null&&(this.kp(e.series()),e.series().collectionChanged=n.ig.Delegate.prototype.remove(e.series().collectionChanged,this.km.runOn(this)),n.ig.util.cast(t.$bd.$type,e)!==null&&(s=e,this.ko(s.axes()),s.axes().collectionChanged=n.ig.Delegate.prototype.remove(s.axes().collectionChanged,this.ka.runOn(this))));o!=null&&(this.kk(o.series()),o.series().collectionChanged=n.ig.Delegate.prototype.combine(o.series().collectionChanged,this.km.runOn(this)),n.ig.util.cast(t.$bd.$type,o)!==null&&(h=o,this.kj(h.axes()),h.axes().collectionChanged=n.ig.Delegate.prototype.combine(h.axes().collectionChanged,this.ka.runOn(this))));break;case"UseLegend":case"UseIndex":this.isIndexed()?this.index()==-1&&this.index(t.$bd.mk(this)):(this.index(-1),this.actualBrush(null),this.actualOutline(null));this.seriesViewer()!=null&&this.seriesViewer().hh();this.renderSeries(!0);break;case"TransitionProgress":if(this.jw().d(this.du(),this.jv(),this.ju()),this.bn(this.view()))return;this.du()==1?this.kl(this.ju(),this.view()):this.kl(this.jw(),this.view());break;case"IsDefaultCrosshairDisabled":this.seriesViewer()!=null&&this.seriesViewer().hf();break;case"CursorPosition":this.j4(this.cursorPosition());this.ke(this.cursorPosition())}},_j4:null,j4:function(n){return arguments.length===1?(this._j4=n,n):this._j4},kp:function(t){for(var r=t.getEnumerator(),i;r.moveNext();)i=r.current(),i==this||(i.renderRequested=n.ig.Delegate.prototype.remove(i.renderRequested,this.kn.runOn(this)));this.renderSeries(!0)},ko:function(t){for(var r=t.getEnumerator(),i;r.moveNext();)i=r.current(),i.renderRequested=n.ig.Delegate.prototype.remove(i.renderRequested,this.kb.runOn(this));this.renderSeries(!0)},kk:function(t){for(var r=t.getEnumerator(),i;r.moveNext();)i=r.current(),i==this||(i.renderRequested=n.ig.Delegate.prototype.combine(i.renderRequested,this.kn.runOn(this)));this.renderSeries(!0)},kj:function(t){for(var r=t.getEnumerator(),i;r.moveNext();)i=r.current(),i.renderRequested=n.ig.Delegate.prototype.combine(i.renderRequested,this.kb.runOn(this));this.renderSeries(!0)},kb:function(n,t){this.kf(n,t.animate())},kn:function(n,t){this.kg(n,t.animate())},kf:function(){},kg:function(){},km:function(n,t){this.kh(t)},ka:function(n,t){this.kd(t)},ku:function(){return this.actualBrush()!=null?this.actualBrush():this.brush()},kv:function(){return this.actualOutline()!=null?this.actualOutline():this.outline()},kd:function(t){var i,r,u,f;if(t.oldItems()!=null)for(i=t.oldItems().getEnumerator();i.moveNext();)r=i.current(),r.renderRequested=n.ig.Delegate.prototype.remove(r.renderRequested,this.kb.runOn(this));if(t.newItems()!=null)for(u=t.newItems().getEnumerator();u.moveNext();)f=u.current(),f.renderRequested=n.ig.Delegate.prototype.combine(f.renderRequested,this.kb.runOn(this));this.renderSeries(!0)},kh:function(t){var i,r,u,f;if(t.oldItems()!=null)for(i=t.oldItems().getEnumerator();i.moveNext();)r=i.current(),r.renderRequested=n.ig.Delegate.prototype.remove(r.renderRequested,this.kn.runOn(this));if(t.newItems()!=null)for(u=t.newItems().getEnumerator();u.moveNext();)f=u.current(),f.renderRequested=n.ig.Delegate.prototype.combine(f.renderRequested,this.kn.runOn(this));this.renderSeries(!0)},_jv:null,jv:function(n){return arguments.length===1?(this._jv=n,n):this._jv},_ju:null,ju:function(n){return arguments.length===1?(this._ju=n,n):this._ju},_jw:null,jw:function(n){return arguments.length===1?(this._jw=n,n):this._jw},h3:function(){this.renderSeries(!1)},h2:function(){this.renderSeries(!0)},hq:function(n){if(t.$aj.hq.call(this,n),!this.bn(this.view()))if(this.cg(n)&&!this.cj()){var i=this.jv();this.bl()?(this.a5().needsFlush()&&this.a5().flush(),this.jv(this.jw()),this.jw(i)):(this.jv(this.ju()),this.ju(i));this.ki(this.ju(),this.view());this.hw()}else this.cj()||this.ki(this.ju(),this.view()),this.kl(this.ju(),this.view())},isAnnotationLayer:function(){return!0},ki:function(){},kl:function(){this.jt().b2()},j1:null,moveCursorPoint:function(n){(this.j1.__x!=n.__x||this.j1.__y!=n.__y)&&(this.j1=n,this.ke(n))},j9:function(i){var r={__x:this.j2.__x,__y:this.j2.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(i.isVertical()){if(isNaN(this.j2.__y))return new t.ed(t.$f.$type,t.$z.$type,!1,r);if(isNaN(this.j2.__x))return r.__x=0,new t.ed(t.$f.$type,t.$z.$type,!0,r)}else{if(isNaN(this.j2.__x))return new t.ed(t.$f.$type,t.$z.$type,!1,r);if(isNaN(this.j2.__y))return r.__y=0,new t.ed(t.$f.$type,t.$z.$type,!0,r)}return new t.ed(t.$f.$type,t.$z.$type,!0,r)},ke:function(n){if(isNaN(this.j4().__x)&&isNaN(this.j4().__y)){if(isNaN(n.__x)&&isNaN(n.__y)){this.jt().b1();return}this.jt().b3();this.j2=n}else this.j2=this.j4();this.renderSeries(!0)},j2:null,ct:function(n,i,r){var u=t.$aj.ct.call(this,n,i,r);return this.view().p()?u:!1},$type:new n.ig.Type("AnnotationLayer",t.$aj.$type)},!0);n.ig.util.defType("SeriesView:bb","Object",{_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},init:function(i){this.bt=t.$x.empty();this.bp=new t.b3;this.__toolTipObject=null;this.z=null;this.e=new t.ua;this.j=!0;this.k=!1;this.i=!1;n.ig.$op.init.call(this);this.o(!0);this.d(i);this.n(!1);this.bx=new t.b1},ao:function(){var n=this;n.n()||(n.d().legendItemTemplate(function(){var i=new t.cg;return i.render(n.bo()),i.measure(n.bl()),i}()),n.d().legendItemBadgeTemplate(function(){var i=new t.cg;return i.render(n.bm()),i.measure(n.bj()),i}()),n.d().discreteLegendItemTemplate(function(){var i=new t.cg;return i.render(n.bn()),i.measure(n.bk()),i}()),n.c(new t.fl),n.c().series(n.d()),n.d().transitionInEasingFunction(t.$ub.cubicEase),n.ab())},av:function(){this.am()},af:function(){},bn:function(){return t.$mx.c},bk:function(){return t.$mx.b},bo:function(){return t.$mx.e},bl:function(){return t.$mx.d},bm:function(){return t.$mx.k},bj:function(){return t.$mx.j},_isDirty:!1,isDirty:function(n){return arguments.length===1?(this._isDirty=n,n):this._isDirty},index:function(){var i=n.ig.util.cast(t.$bd.$type,this.d().chart()),r=0;return i!=null&&(i.gridMode()==2||i.gridMode()==0)&&(r=i.axes().count()),r+this.d().seriesViewer().series().indexOf(this.d())},am:function(){this.d().seriesViewer()!=null&&(this.isDirty()||(this.isDirty(!0),this.i?this.d().seriesViewer().ae().k(this.g(),this.h()):this.d().seriesViewer().canvasRenderScheduler().k(this.g(),this.h())))},undirty:function(n){this.isDirty(!1);this.az(n)},bx:null,aq:function(){this.am()},az:function(n){var r,i,u,f;this.g()!=null&&(this.bt.isEmpty()&&(this.bt=this.bv()),r=this.bt,i=this.d().seriesViewer().getContainerRect(),this.g().c()&&(this.d().seriesViewer()!=null&&this.d().seriesViewer().actualPixelScalingRatio()!=1&&(this.g().x(),this.g().y(this.d().seriesViewer().actualPixelScalingRatio(),this.d().seriesViewer().actualPixelScalingRatio())),n&&this.g().i(i.left(),i.top(),i.width(),i.height()),n&&this.d().seriesViewer().plotAreaBackground()!=null&&(this.bx.m(this.bv().top()),this.bx.l(this.bv().left()),this.bx.width(this.bv().width()),this.bx.height(this.bv().height()),this.bx.__fill=this.d().seriesViewer().plotAreaBackground(),this.g().t(this.bx)),this.d().seriesViewer()!=null&&this.d().seriesViewer().actualPixelScalingRatio()!=1&&this.g().w()),this.h()!=null&&this.o()&&this.h().c()&&(this.d().seriesViewer()!=null&&this.d().seriesViewer().actualPixelScalingRatio()!=1&&(this.h().x(),this.h().y(this.d().seriesViewer().actualPixelScalingRatio(),this.d().seriesViewer().actualPixelScalingRatio())),!r.isEmpty()&&n&&this.h().i(r.left(),r.top(),r.width(),r.height()),this.a5(!0),this.a1(this.h(),!0),this.a0(this.h(),!0),this.d().seriesViewer()!=null&&this.d().seriesViewer().actualPixelScalingRatio()!=1&&this.h().w()),this.g().c()&&this.o()&&(this.d().seriesViewer()!=null&&this.d().seriesViewer().actualPixelScalingRatio()!=1&&(this.g().x(),this.g().y(this.d().seriesViewer().actualPixelScalingRatio(),this.d().seriesViewer().actualPixelScalingRatio())),this.g().x(),this.n()||this.d().jq()==null||this.d().jq().isEmpty()||this.d().jq().width()==1&&this.d().jq().height()==1?this.g().ab(this.bv()):this.g().ab(new t.x(0,this.bv().left()+this.bv().width()*this.d().jq().left(),this.bv().top()+this.bv().height()*this.d().jq().top(),this.bv().width()*this.d().jq().width(),this.bv().height()*this.d().jq().height())),this.a5(!1),this.g().aa(this.d().__opacity),this.d().isDropShadowEnabled()&&this.d().bz()&&!this.n()?(this.d().useSingleShadow()?(this.g().m(this.d().shadowColor().colorString(),0,this.d().shadowOffsetX(),this.d().shadowOffsetY()),u=this.d().seriesViewer().a6().l().m(),f=this.d().seriesViewer().a6().l().w(),u.i(i.left(),i.top(),i.width(),i.height()),this.a1(u,!1),this.a0(u,!1),this.g().k(f[0],1,0,0,i.width(),i.height())):(this.g().m(this.d().shadowColor().colorString(),this.d().shadowBlur(),this.d().shadowOffsetX(),this.d().shadowOffsetY()),this.a1(this.g(),!1),this.a0(this.g(),!1)),this.g().j()):(this.a1(this.g(),!1),this.a0(this.g(),!1)),this.g().aa(1),this.g().w(),this.d().seriesViewer()!=null&&this.d().seriesViewer().actualPixelScalingRatio()!=1&&this.g().w()))},bt:null,a8:function(n,t,i){i?this.ba(n,t):this.a9(n,t)},bb:function(n,t,i){i?this.bd(n,t):this.bc(n,t)},u:function(n,t){return t?this.v(n):this.w(n)},v:function(){return null},w:function(){return null},a9:function(){},bc:function(){},ba:function(){},bd:function(){},a5:function(n){n?this.a7():this.a6()},a6:function(){},a7:function(){},bp:null,bs:function(){return this.br()},br:function(){var r=this.d()._uniqueIndex,n=(r+1)*1e3,u=(n&63)<<2,t,i;return n=n>>6,t=(n&63)<<2,n=n>>6,i=(n&63)<<2,this.bp.__fill="rgb("+u+","+t+","+i+")",this.bp},a1:function(){this.bt=this.bv()},a0:function(){},at:function(){},ai:function(){},aj:function(){},al:function(){if(this.__toolTipObject!=null&&this.q()){this.q(!1);var n=this.c();this.__toolTipObject.hideToolTip&&this.__toolTipObject.hideToolTip(n)}},__toolTipObject:null,z:null,bh:function(t){var i=this.__toolTipObject;this.z=null;this.__toolTipObject=null;n.ig.util.cast(String,t)!==null||typeof t=="string"?this.z=t:(this.__toolTipObject=t,this.__toolTipObject!=null?(this.__toolTipObject.css("position","absolute"),this.__toolTipObject.css("top","0"),this.__toolTipObject.css("left","0"),this.__toolTipObject.css("z-index","10000"),this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&this.__toolTipObject.css("border-color",this.d().actualOutline().__fill)):this.j||i==null||(this.d().seriesViewer().im(i),this.j=!0))},e:null,f:function(){return this.e},a4:function(){},p:function(){return!0},as:function(){},ar:function(){},a2:function(){this.d().actualBrush(null)},ad:function(){this.d().actualBrush(this.d().brush())},a3:function(){this.d().actualOutline(null)},ae:function(){this.d().actualOutline(this.d().outline())},b:function(i){return n.ig.util.cast(t.$fl.$type,i)!==null?i:null},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_q:!1,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},j:!1,k:!1,bg:function(t,i){var r=!1;if((this.d().seriesViewer()!=null&&(r=this.d().seriesViewer().bu()),!r)&&this.d().seriesViewer()!=null&&!this.d().seriesViewer().dragCrosshairActivated()){this.q(!0);this.y(t);this.x(i);this.c().item(i);var u=this.d().seriesViewer().getContainerOffsets(),f={__x:t.__x+15+u.b(),__y:t.__y+15+u.a(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},e=this.c();this.__toolTipObject!=null&&(this.k&&(this.k=!1,this.__toolTipObject.remove(),this.__toolTipObject.css("position","absolute"),this.__toolTipObject.addClass(this.d().seriesViewer().tooltipStyle()),this.d().seriesViewer().addTooltipToView(this.__toolTipObject),this.__toolTipObject.hide()),this.j&&(this.d().seriesViewer().addTooltipToView(this.__toolTipObject),this.j=!1),e.hideOthers=!0,this.__toolTipObject.updateToolTip&&this.__toolTipObject.updateToolTip(e),this.__toolTipObject.offset&&this.__toolTipObject.offset({left:f.__x,top:f.__y}))}},be:function(t,i){var f,e,r,u;this.q(!0);f={__x:t.__x+this.bv().left(),__y:t.__y+this.bv().top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};e=this.d().eg(null,f);this.c()!=null&&(this.c().series(this.d()),this.c().item(e));r=this.__toolTipObject;u=this.c();u!=null&&(u.hideOthers=!1);this.k||r==null||(this.k=!0,r.remove(),r.css("position","relative"),r.css("top",""),r.css("left",""),r.removeClass(this.d().seriesViewer().tooltipStyle()));this.__toolTipObject!=null&&r.updateToolTip&&r.updateToolTip(u);r!=null&&i(r)},getDefaultTooltipTemplate:function(){var n="<div class='ui-chart-default-tooltip-content'><span";return this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&(n+=" style='color:"+this.d().actualOutline().__fill+"'"),n+(">"+this.d().title()+"<\/span><\/div>")},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},an:function(n,t){this.g(n);this.h(t)},bu:null,bv:function(n){return arguments.length===1?(this.bu=n,n):this.bu},bw:function(){return this.n()?t.$bd.lj:this.d().seriesViewer()!=null?this.d().seriesViewer().actualWindowRect():t.$x.empty()},i:!1,n:function(n){return arguments.length===1?(this.i=n,n):this.i},ag:function(n){n!=null&&(n.canvasRenderScheduler().n(this),this.d().av()!=null&&n.ae().n(this.d().av()))},ac:function(n){n!=null&&(n.canvasRenderScheduler().h(this),this.d().av()!=null&&(n.ae().h(this.d().av()),this.d().av().am()),this.am())},postRender:function(){this.aw()},aw:function(){},a:function(){return null},ax:function(n){this.d().av().g(n.a())},ah:function(){},bf:function(){var n,t;this.l()||this.d().seriesViewer()!=null&&(n=this.d().legend()!=null?this.d().legend():this.d().seriesViewer().legend(),n!=null&&this.d().legendItem()!=null&&n.children().contains(this.d().legendItem())&&(n.children().remove(this.d().legendItem()),t=this.d().ei(),t.content().actualItemBrush(this.d().actualBrush()),t.content().outline(this.d().outline()),t.content().thickness(this.d().thickness()),n.av(this.d().legendItem(),this.d())))},ap:function(){this.d().gc(this.d().actualLegend(),this.d().actualLegend())},au:function(){this.d().gc(this.d().actualLegend(),this.d().actualLegend())},getViewInfo:function(n,t){return n=this.bv(),t=this.bw(),{viewportRect:n,windowRect:t}},m:function(){return this.g()!=null},_o:!1,o:function(n){return arguments.length===1?(this._o=n,n):this._o},bi:function(){this.o(this.d().__visibility==0);this.am()},ay:function(){},bq:function(n,t){return n==null?n:n.getLightened(t)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(5);this.d().shadowOffsetX(5);this.d().shadowOffsetY(5)},ak:function(){},preRender:function(){this.d().seriesViewer()!=null&&this.d().seriesViewer().ensureCorrectSize()},_l:!1,l:function(n){return arguments.length===1?(this._l=n,n):this._l},$type:new n.ig.Type("SeriesView",n.ig.$ot,[t.$bc.$type,t.$a.$type])},!0);n.ig.util.defType("AnnotationLayerView:tr","SeriesView",{init:function(n){this.bz=!1;this.b0=-1;t.$bb.init.call(this,n);this.by(n)},_by:null,by:function(n){return arguments.length===1?(this._by=n,n):this._by},bz:!1,b0:0,b4:function(){this.bz&&(this.bz=!1,this.b0=-1,this.by().j2={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},this.by().renderSeries(!0))},b1:function(){this.bz=!0;this.b0=window.setTimeout(this.b4.runOn(this),300)},b3:function(){this.bz==!0&&(this.bz=!1,this.b0!=-1&&(window.clearTimeout(this.b0),this.b0=-1))},b2:function(){this.am()},$type:new n.ig.Type("AnnotationLayerView",t.$bb.$type)},!0);n.ig.util.defType("CategoryHighlightLayer:ud","AnnotationLayer",{init:function(){t.$tq.init.call(this);var n=new t.uf,i=new t.uf,r=new t.uf,u=this.transitionDuration()/1e3;this.jv(n);this.ju(i);this.jw(r);this.y(t.$ud.$type)},au:function(){return new t.ue(this)},hc:function(n){t.$tq.hc.call(this,n);this.kx(n)},_kx:null,kx:function(n){return arguments.length===1?(this._kx=n,n):this._kx},targetAxis:function(n){return arguments.length===1?(this.g(t.$ud.targetAxisProperty,n),n):this.c(t.$ud.targetAxisProperty)},useInterpolation:function(n){return arguments.length===1?(this.g(t.$ud.useInterpolationProperty,n),n):this.c(t.$ud.useInterpolationProperty)},bandHighlightWidth:function(n){return arguments.length===1?(this.g(t.$ud.bandHighlightWidthProperty,n),n):this.c(t.$ud.bandHighlightWidthProperty)},kf:function(n,t){(this.targetAxis()==null||this.targetAxis()==n)&&(this.ae().c()||this.renderSeries(t))},ky:function(n){return n!=null&&n.bj()},ki:function(i,r){var u,e,s,o,f;if(t.$tq.ki.call(this,i,r),u=i,u.i().clear(),e=this.useInterpolation(),!isNaN(this.j2.__x)||!isNaN(this.j2.__y))if(this.targetAxis()!=null)this.ky(this.targetAxis())&&this.k5(this.targetAxis(),u,e);else if(n.ig.util.cast(t.$bd.$type,this.seriesViewer())!==null)for(s=this.seriesViewer(),o=s.axes().getEnumerator();o.moveNext();)f=o.current(),n.ig.util.cast(t.$hb.$type,f)!==null&&this.ky(f)&&this.k5(f,u,e)},k5:function(t,i,r){var u,f,e;this.view()==null||this.view().bw().isEmpty()||this.view().bv().isEmpty()||(u=this.j2.__x,t.isVertical()&&isNaN(u)&&(u=0),u=this.view().bv().left()+this.view().bv().width()*(u-this.view().bw().left())/this.view().bw().width(),f=this.j2.__y,!t.isVertical()&&isNaN(f)&&(f=0),f=this.view().bv().top()+this.view().bv().height()*(f-this.view().bw().top())/this.view().bw().height(),e=t.getCategoryBoundingBox({__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r,this.bandHighlightWidth()),this.k4(e,i,t))},k4:function(n,i,r){var u=new t.ug;u.b(n.left());u.e(n.top());u.c(n.right());u.a(n.bottom());u.g(this.ku());u.h(this.kv());u.g()==null&&u.g(this.kx().cd(r.actualStroke()));u.h()==null&&u.h(this.kx().cd(r.actualStroke()));u.d(this.thickness());u.f(r.getHashCode());n.isEmpty()||i.i().add(u.f(),u)},kl:function(n,i){var e,o;t.$tq.kl.call(this,n,i);for(var u=this.kx().b6(),s=n,r=0,f=s.i().values().getEnumerator();f.moveNext();)e=f.current(),o=u.item(r),this.k6(e,o),r++;u.c(r)},k6:function(n,t){if(isNaN(n.b())||isNaN(n.e())||isNaN(n.a())||isNaN(n.c())||isNaN(n.d())){t.__visibility=1;return}this.kx().b8(t,n.b(),n.e(),n.c()-n.b(),n.a()-n.e());t.__fill=n.g();t.__stroke=n.h();t.z(n.d());this.dashArray()!=null?t.af(this.dashArray()):t.af(null);t.aa(this.dashCap())},hh:function(n,i,r,u){t.$tq.hh.call(this,n,i,r,u);switch(i){case"TargetAxis":this.renderSeries(!0);break;case"UseInterpolation":this.renderSeries(!0)}},$type:new n.ig.Type("CategoryHighlightLayer",t.$tq.$type)},!0);n.ig.util.defType("Frame:kt","Object",{init:function(){n.ig.$op.init.call(this)},d:function(){},b:function(t,i,r,u){var f=r.count(),e=u.count(),l=Math.max(f,e),s=1-i,o,a,h,v,c;for(t.count()<l&&t.insertRange(t.count(),new Array(l-t.count())),t.count()>l&&t.removeRange(l,t.count()-l),o=0;o<Math.min(f,e);++o)t.__inner[o]={__x:r.__inner[o].__x*s+u.__inner[o].__x*i,__y:r.__inner[o].__y*s+u.__inner[o].__y*i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(f<e)for(a=f>0?r.__inner[f-1]:{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},h=f;h<e;++h)t.__inner[h]={__x:a.__x*s+u.__inner[h].__x*i,__y:a.__y*s+u.__inner[h].__y*i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(f>e)for(v=e>0?u.__inner[e-1]:{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},c=e;c<f;++c)t.__inner[c]={__x:r.__inner[c].__x*s+v.__x*i,__y:r.__inner[c].__y*s+v.__y*i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},f:function(t,i,r,u,f){var h=r.count(),c=u.count(),v=Math.max(h,c),w=1-i,e,o,s,y,l,p,a;for(t.count()<v&&t.insertRange(t.count(),new Array(v-t.count())),t.count()>v&&t.removeRange(v,t.count()-v),s=0;s<Math.min(h,c);++s)e=i*f.__inner[s],e=e>1?1:e,o=1-e,t.__inner[s]={__x:r.__inner[s].__x*o+u.__inner[s].__x*e,__y:r.__inner[s].__y*o+u.__inner[s].__y*e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(h<c)for(y=h>0?r.__inner[h-1]:{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},l=h;l<c;++l)e=i*f.__inner[l],e=e>1?1:e,o=1-e,t.__inner[l]={__x:y.__x*o+u.__inner[l].__x*e,__y:y.__y*o+u.__inner[l].__y*e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(h>c)for(p=c>0?u.__inner[c-1]:{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},a=c;a<h;++a)e=i*f.__inner[a],e=e>1?1:e,o=1-e,t.__inner[a]={__x:r.__inner[a].__x*o+p.__x*e,__y:r.__inner[a].__y*o+p.__y*e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},a:function(n,t,i,r){var u=i.count(),f=r.count(),e=Math.max(u,f),l=1-t,a,c,o,v,s,y,h;if(n.count()<e){for(a=new Array(e-n.count()),c=0;c<e-n.count();c++)a[c]=0;n.insertRange(n.count(),a)}for(n.count()>e&&n.removeRange(e,n.count()-e),o=0;o<Math.min(u,f);++o)n.__inner[o]=i.__inner[o]*l+r.__inner[o]*t;if(u<f)for(v=u>0?i.__inner[u-1]:0,s=u;s<f;++s)n.__inner[s]=v*l+r.__inner[s]*t;if(u>f)for(y=f>0?r.__inner[f-1]:0,h=f;h<u;++h)n.__inner[h]=i.__inner[h]*l+y*t},e:function(n,t,i,r,u){var e=i.count(),o=r.count(),h=Math.max(e,o),b=1-t,y,v,f,c,s,p,l,w,a;if(n.count()<h){for(y=new Array(h-n.count()),v=0;v<h-n.count();v++)y[v]=0;n.insertRange(n.count(),y)}for(n.count()>h&&n.removeRange(h,n.count()-h),s=0;s<Math.min(e,o);++s)f=t*u.__inner[s],f=f>1?1:f,c=1-f,n.__inner[s]=i.__inner[s]*c+r.__inner[s]*f;if(e<o)for(p=e>0?i.__inner[e-1]:0,l=e;l<o;++l)f=t*u.__inner[l],f=f>1?1:f,c=1-f,n.__inner[l]=p*c+r.__inner[l]*f;if(e>o)for(w=o>0?r.__inner[o-1]:0,a=o;a<e;++a)f=t*u.__inner[a],f=f>1?1:f,c=1-f,n.__inner[a]=i.__inner[a]*c+w*f},g:function(n,i,r,u){return t.$ku.g(i,n,r,u)},c:function(n,i,r,u,f){var b=this,e=r.count(),o=u.count(),s=Math.max(e,o),y=function(){var n=new t.b3;return n.fill("transparent"),n}(),k=1-i,v,a,h,p,c,w,l;if(n.count()<s){for(v=new Array(s-n.count()),a=0;a<s-n.count();a++)v[a]=new t.b3;n.insertRange(n.count(),v)}for(n.count()>s&&n.removeRange(s,n.count()-s),h=0;h<Math.min(e,o);++h)n.__inner[h]=t.$kt.g(i,r.__inner[h],u.__inner[h],f);if(e<o)for(p=e>0?r.__inner[e-1]:y,c=e;c<o;++c)n.__inner[c]=t.$kt.g(i,p,u.__inner[c],f);if(e>o)for(w=o>0?u.__inner[o-1]:y,l=o;l<e;++l)n.__inner[l]=t.$kt.g(i,r.__inner[l],w,f)},$type:new n.ig.Type("Frame",n.ig.$ot)},!0);n.ig.util.defType("CategoryHighlightLayerFrame:uf","Frame",{init:function(){var i=this;t.$kt.init.call(this);this.i(new t.f0(n.ig.Number.prototype.$type,t.$ug.$type,0));this.h=new t.ol(n.ig.Number.prototype.$type,t.$ug.$type,t.$uf.$type,this.j.runOn(this),function(n){return n.f()},function(){return!0},function(){return new t.ug})},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},h:null,j:function(n,i,r,u){u!=null?n.f(u.f()):r!=null?n.f(r.f()):n.f(0);r==null||isNaN(r.e())?n.e(u!=null?u.e():NaN):u==null||isNaN(u.e())?n.e(NaN):n.e(r.e()+i*(u.e()-r.e()));r==null||isNaN(r.b())?n.b(u!=null?u.b():NaN):u==null||isNaN(u.b())?n.b(NaN):n.b(r.b()+i*(u.b()-r.b()));r==null||isNaN(r.c())?n.c(u!=null?u.c():NaN):u==null||isNaN(u.c())?n.c(NaN):n.c(r.c()+i*(u.c()-r.c()));r==null||isNaN(r.a())?n.a(u!=null?u.a():NaN):u==null||isNaN(u.a())?n.a(NaN):n.a(r.a()+i*(u.a()-r.a()));r==null||isNaN(r.d())?n.d(u!=null?u.d():NaN):u==null||isNaN(u.d())?n.d(NaN):n.d(r.d()+i*(u.d()-r.d()));r==null||r.g()==null?n.g(u!=null?u.g():null):u==null||u.g()==null?n.g(null):n.g(t.$ku.g(r.g(),i,u.g(),0));r==null||r.h()==null?n.h(u!=null?u.h():null):u==null||u.h()==null?n.h(null):n.h(t.$ku.g(r.h(),i,u.h(),0))},d:function(n,t,i){var r=t,u=i;this.h.e(this.i(),n,r.i(),u.i(),r,u)},$type:new n.ig.Type("CategoryHighlightLayerFrame",t.$kt.$type)},!0);n.ig.util.defType("CategoryHighlightFrameRect:ug","Object",{_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},init:function(){n.ig.$op.init.call(this);this.f(0);this.e(NaN);this.b(NaN);this.c(NaN);this.b(NaN);this.a(NaN);this.d(NaN)},$type:new n.ig.Type("CategoryHighlightFrameRect",n.ig.$ot)},!0);n.ig.util.defType("CategoryHighlightLayerView:ue","AnnotationLayerView",{init:function(n){t.$tr.init.call(this,n);this.b5(n);this.b7(new t.bh(t.$b1.$type,0))},_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},_b6:null,b6:function(n){return arguments.length===1?(this._b6=n,n):this._b6},ao:function(){var n=this;t.$tr.ao.call(n);n.b6(function(){var i=new t.ga(t.$b1.$type);return i.create(n.ce.runOn(n)),i.activate(n.b9.runOn(n)),i.disactivate(n.cb.runOn(n)),i.destroy(n.ca.runOn(n)),i}())},_b7:null,b7:function(n){return arguments.length===1?(this._b7=n,n):this._b7},ce:function(){var n=new t.b1;return n.y(!1),this.b7().add(n),n},b9:function(n){n.__visibility=0},cb:function(n){n.__visibility=1},ca:function(n){this.b7().remove(n)},cc:function(n){return n==null?n:n.getLightened(.1)},cd:function(n){var t,r,u,i;if(n!=null){if(t=n.getLightened(.3),t._isGradient){if(r=t,r._gradientStops!=null)for(u=0;u<r._gradientStops.length;u++)i=r._gradientStops[u],i.color().f(Math.round(i.color().f()*.2)),i.color(i.color())}else t.color().f(Math.round(t.color().f()*.2)),t.color(t.color());return t}return null},b8:function(n,t,i,r,u){n.__visibility=0;n.l(t);n.m(i);n.width(r);n.height(u)},a1:function(n,i){var r,u;if(t.$tr.a1.call(this,n,i),n.c()&&!i)for(r=0;r<this.b7().count();r++)u=this.b7().__inner[r],u.__visibility==0&&n.t(u)},ah:function(n){var i,r;for(t.$tr.ah.call(this,n),i=0;i<this.b7().count();i++)r=new t.g6(1,"catItemRect",this.b7().__inner[i]),r.tags().add("Main"),r.tags().add("CategoryItem"),n.shapes().add(r)},$type:new n.ig.Type("CategoryHighlightLayerView",t.$tr.$type)},!0);n.ig.util.defType("CategoryItemHighlightLayer:uh","AnnotationLayer",{init:function(){this.k1=!1;this.k0=!0;this.k4=10;t.$tq.init.call(this);var n=new t.uk,i=new t.uk,r=new t.uk;this.jv(n);this.ju(i);this.jw(r);this.y(t.$uh.$type)},au:function(){return new t.ui(this)},hc:function(n){t.$tq.hc.call(this,n);this.kw(n)},_kw:null,kw:function(n){return arguments.length===1?(this._kw=n,n):this._kw},targetSeries:function(n){return arguments.length===1?(this.g(t.$uh.targetSeriesProperty,n),n):this.c(t.$uh.targetSeriesProperty)},useInterpolation:function(n){return arguments.length===1?(this.g(t.$uh.useInterpolationProperty,n),n):this.c(t.$uh.useInterpolationProperty)},highlightType:function(n){return arguments.length===1?(this.g(t.$uh.highlightTypeProperty,n),n):this.c(t.$uh.highlightTypeProperty)},markerTemplate:function(n){return arguments.length===1?(this.g(t.$uh.markerTemplateProperty,n),n):this.c(t.$uh.markerTemplateProperty)},bandHighlightWidth:function(n){return arguments.length===1?(this.g(t.$uh.bandHighlightWidthProperty,n),n):this.c(t.$uh.bandHighlightWidthProperty)},skipUnknownValues:function(n){return arguments.length===1?(this.g(t.$uh.skipUnknownValuesProperty,n),n):this.c(t.$uh.skipUnknownValuesProperty)},kg:function(n,t){(this.targetSeries()==null||this.targetSeries()==n)&&(this.ae().c()||this.renderSeries(t))},jy:function(n){if(!t.$tq.jy.call(this,n))return!1;var i=this.j9(n);return i.a()?!0:!1},ki:function(n,i){var r,u,f,e;if(t.$tq.ki.call(this,n,i),r=n,u=this.useInterpolation(),r.i().clear(),!isNaN(this.j2.__x)||!isNaN(this.j2.__y))if(this.jy(this.targetSeries()))this.le(this.targetSeries(),r,u);else for(f=this.seriesViewer().series().getEnumerator();f.moveNext();)e=f.current(),this.jy(e)&&this.le(e,r,u)},k1:!1,k0:!1,hh:function(n,i,r,u){t.$tq.hh.call(this,n,i,r,u);switch(i){case"TargetSeries":this.renderSeries(!0);break;case"UseInterpolation":this.k1=u;this.renderSeries(!0);break;case"HighlightType":this.renderSeries(!0);break;case"BandHighlightWidth":this.k4=this.bandHighlightWidth();this.renderSeries(!0);break;case"SkipUnknownValues":this.k0=u;this.renderSeries(!0)}},k4:0,le:function(i,r){var e,v,y,c,l,u,f,p,a;if(this.view()!=null&&!this.view().bw().isEmpty()&&!this.view().bv().isEmpty()&&(i.isCategory()||i.isFinancial())&&(e=i,e.categoryAxis()!=null)){v=this.j2.__x;v=this.view().bv().left()+this.view().bv().width()*(v-this.view().bw().left())/this.view().bw().width();y=this.j2.__y;y=this.view().bv().top()+this.view().bv().height()*(y-this.view().bw().top())/this.view().bw().height();var w=this.skipUnknownValues(),b=!0,k=n.ig.util.cast(t.$g9.$type,i),o=0;if(k!=null&&(o=k.preferredCategoryMode(e.categoryAxis()),o==2&&(b=!1)),c=!0,b&&this.highlightType()!=2||(c=!1),this.highlightType()==1&&(c=!0),l=this.j9(i),l.a())if(c)u=i.getSeriesValuePosition(l.b(),this.useInterpolation(),w),o==0||e.categoryAxis().isSorting()||(f=u.__x,i.isFinancial()?(f-=i.getOffsetValue(),f+=i.getCategoryWidth()*.5,u={__x:f,__y:u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):i.isCategory()&&(f-=i.getOffsetValue(),f+=i.getCategoryWidth()*.5,u={__x:f,__y:u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),isNaN(u.__x)||isNaN(u.__y)||(u=this.toWorldPosition(u)),this.lc(u,r,i);else{if(p=i.getSeriesValuePosition(l.b(),this.useInterpolation(),w),i.isVertical()){var d=p.__y,g=e.categoryAxis(),s=this.k4;if(o!=0&&(s=g.fy(this.view().bw(),this.view().bv())),isNaN(s)||Number.isInfinity(s))return;a=new t.x(0,this.jr().left(),d-s/2,this.jr().width(),s)}else{var nt=p.__x,tt=e.categoryAxis(),h=this.k4;if(o!=0&&(h=tt.fy(this.view().bw(),this.view().bv())),isNaN(h)||Number.isInfinity(h))return;a=new t.x(0,nt-h/2,this.jr().top(),h,this.jr().height())}a.intersect(this.view().bv());this.ld(a,r,i)}}},lc:function(i,r,u){var f=new t.ul,e,o;if(f.b(i.__x),f.e(i.__y),f.i(this.ku()),f.j(this.kv()),f.i()==null&&(u.hasMarkers()?f.i(this.kw().ck(u.getActualMarkerBrush())):f.i(this.kw().ck(u.actualBrush()))),f.j()==null&&(u.hasMarkers()?f.j(this.kw().ck(u.getActualMarkerOutlineBrush())):f.j(this.kw().ck(u.actualOutline()))),f.d(this.thickness()),f.f(u.getHashCode()),f.g(this.ky(u,i)),e=n.ig.util.cast(t.$fw.$type,u)!==null?u.actualMarkerTemplate():null,e==null||e==t.$fw.nullMarkerTemplate()){o=t.$fw.resolveMarkerType(u,2);switch(o){case 3:e=this.seriesViewer().circleMarkerTemplate();break;case 4:e=this.seriesViewer().triangleMarkerTemplate();break;case 5:e=this.seriesViewer().pyramidMarkerTemplate();break;case 6:e=this.seriesViewer().squareMarkerTemplate();break;case 7:e=this.seriesViewer().diamondMarkerTemplate();break;case 8:e=this.seriesViewer().pentagonMarkerTemplate();break;case 9:e=this.seriesViewer().hexagonMarkerTemplate();break;case 10:e=this.seriesViewer().tetragramMarkerTemplate();break;case 11:e=this.seriesViewer().pentagramMarkerTemplate();break;case 12:e=this.seriesViewer().hexagramMarkerTemplate()}}f.h(this.markerTemplate()!=null?this.markerTemplate():e);isNaN(f.b())||isNaN(f.e())||r.i().add(f.f(),f)},ky:function(n,i){var f=this,r=n.getItem(i),u=n.getExactItemIndex(i);return f.useInterpolation()&&u!=Math.floor(u)&&(r=null),function(){var i=new t.fl;return i.series(n),i.item(r),i}()},ld:function(n,i,r){var u=new t.ul;u.b(n.left());u.e(n.top());u.c(n.right());u.a(n.bottom());u.i(this.ku());u.j(this.kv());u.i()==null&&r!=null&&u.i(this.kw().cl(r.actualBrush()));u.j()==null&&r!=null&&u.j(this.kw().cl(r.actualOutline()));u.d(this.thickness());u.f(r.getHashCode());n.isEmpty()||i.i().add(u.f(),u)},kl:function(n,i){var r,h,c;t.$tq.kl.call(this,n,i);for(var e=this.kw().b8(),o=this.kw().b7(),u=0,f=0,l=n,s=l.i().values().getEnumerator();s.moveNext();)r=s.current(),r.h()!=null?(h=o.item(f),this.lf(r,h),f++):(c=e.item(u),this.lg(r,c),u++);e.c(u);o.c(f)},lf:function(t,i){var f,u,r;if(isNaN(t.b())||isNaN(t.e())||isNaN(t.d())||t.g()==null){i.__visibility=1;return}if(f={__x:t.b(),__y:t.e(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u=t.g(),u.itemBrush(t.i()),r=u.series().getSeriesValuePosition(f,this.bl()||this.k1,this.k0),isNaN(r.__x)||isNaN(r.__y)){i.__visibility=1;return}this.kw().ce(i,r.__x,r.__y);i.ae(t.h());i.content(t.g())},lg:function(n,t){if(isNaN(n.b())||isNaN(n.e())||isNaN(n.a())||isNaN(n.c())||isNaN(n.d())){t.__visibility=1;return}this.kw().cf(t,n.b(),n.e(),n.c()-n.b(),n.a()-n.e());t.__fill=n.i();t.__stroke=n.j();t.z(n.d());this.dashArray()!=null?t.af(this.dashArray()):t.af(null);t.aa(this.dashCap())},$type:new n.ig.Type("CategoryItemHighlightLayer",t.$tq.$type)},!0);n.ig.util.defType("CategoryItemHighlightLayerFrame:uk","Frame",{init:function(){var i=this;t.$kt.init.call(this);this.i(new t.f0(n.ig.Number.prototype.$type,t.$ul.$type,0));this.h=new t.ol(n.ig.Number.prototype.$type,t.$ul.$type,t.$uk.$type,this.j.runOn(this),function(n){return n.f()},function(){return!0},function(){return new t.ul})},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},h:null,j:function(n,i,r,u){u!=null?n.f(u.f()):r!=null?n.f(r.f()):n.f(0);r==null||isNaN(r.e())?n.e(u!=null?u.e():NaN):u==null||isNaN(u.e())?n.e(NaN):n.e(r.e()+i*(u.e()-r.e()));r==null||isNaN(r.b())?n.b(u!=null?u.b():NaN):u==null||isNaN(u.b())?n.b(NaN):n.b(r.b()+i*(u.b()-r.b()));r==null||isNaN(r.c())?n.c(u!=null?u.c():NaN):u==null||isNaN(u.c())?n.c(NaN):n.c(r.c()+i*(u.c()-r.c()));r==null||isNaN(r.a())?n.a(u!=null?u.a():NaN):u==null||isNaN(u.a())?n.a(NaN):n.a(r.a()+i*(u.a()-r.a()));r==null||isNaN(r.d())?n.d(u!=null?u.d():NaN):u==null||isNaN(u.d())?n.d(NaN):n.d(r.d()+i*(u.d()-r.d()));r==null||r.i()==null?n.i(u!=null?u.i():null):u==null||u.i()==null?n.i(null):n.i(t.$ku.g(r.i(),i,u.i(),0));r==null||r.j()==null?n.j(u!=null?u.j():null):u==null||u.j()==null?n.j(null):n.j(t.$ku.g(r.j(),i,u.j(),0));r==null||r.h()==null?n.h(u!=null?u.h():null):u==null||u.j()==null?n.h(null):n.h(u.h());r==null||r.g()==null?n.g(u!=null?u.g():null):u==null||u.j()==null?n.g(null):n.g(u.g())},d:function(n,t,i){var r=t,u=i;this.h.e(this.i(),n,r.i(),u.i(),r,u)},$type:new n.ig.Type("CategoryItemHighlightLayerFrame",t.$kt.$type)},!0);n.ig.util.defType("ItemHighlightFrameRect:ul","Object",{_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},init:function(){n.ig.$op.init.call(this);this.f(0);this.e(NaN);this.b(NaN);this.c(NaN);this.b(NaN);this.a(NaN);this.d(NaN)},$type:new n.ig.Type("ItemHighlightFrameRect",n.ig.$ot)},!0);n.ig.util.defType("CategoryItemHighlightLayerView:ui","AnnotationLayerView",{init:function(n){t.$tr.init.call(this,n);this.b5(n);this.b9(new t.bh(t.$cf.$type,0));this.ca(new t.bh(t.$b1.$type,0))},_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},_b8:null,b8:function(n){return arguments.length===1?(this._b8=n,n):this._b8},_b7:null,b7:function(n){return arguments.length===1?(this._b7=n,n):this._b7},ao:function(){var n=this;t.$tr.ao.call(n);n.b8(function(){var i=new t.ga(t.$b1.$type);return i.create(n.cm.runOn(n)),i.activate(n.cg.runOn(n)),i.disactivate(n.ci.runOn(n)),i.destroy(n.ch.runOn(n)),i}());n.b7(function(){var i=new t.ga(t.$cf.$type);return i.create(n.cj.runOn(n)),i.activate(n.cb.runOn(n)),i.disactivate(n.cd.runOn(n)),i.destroy(n.cc.runOn(n)),i}())},_b9:null,b9:function(n){return arguments.length===1?(this._b9=n,n):this._b9},_ca:null,ca:function(n){return arguments.length===1?(this._ca=n,n):this._ca},cm:function(){var n=new t.b1;return n.y(!1),this.ca().add(n),n},cg:function(n){n.__visibility=0},ci:function(n){n.__visibility=1},ch:function(n){this.ca().remove(n)},cj:function(){var n=new t.cf;return this.b9().add(n),n},cb:function(n){n.__visibility=0},cd:function(n){n.__visibility=1},cc:function(n){this.b9().remove(n)},ck:function(n){return n==null?n:n.getLightened(.3)},cl:function(n){var t,r,u,i;if(n!=null){if(t=n.getLightened(.3),t._isGradient){if(r=t,r._gradientStops!=null)for(u=0;u<r._gradientStops.length;u++)i=r._gradientStops[u],i.color().f(Math.round(i.color().f()*.3)),i.color(i.color())}else t.color().f(Math.round(t.color().f()*.3)),t.color(t.color());return t}return null},cf:function(n,t,i,r,u){n.__visibility=0;n.l(t);n.m(i);n.width(r);n.height(u)},ce:function(n,t,i){n.l(t);n.m(i)},bc:function(n,i){var f,r,u;t.$tr.bc.call(this,n,i);f=n;r=f.content();r!=null&&(r.itemBrush()!=null&&r.actualItemBrush(r.itemBrush()),u=r.series(),u.hasMarkers()&&r.outline(u.getActualMarkerOutlineBrush()),r.thickness(.5))},a1:function(n,i){var h,a,e,u,f,c,v,s,r,o,p,l;if(t.$tr.a1.call(this,n,i),n.c()&&!i){for(h=0;h<this.ca().count();h++)a=this.ca().__inner[h],a.__visibility==0&&n.t(a);if(this.b9().count()>0){e=new t.ce;e.isHitTestRender=i;e.context=n.e();e.viewportTop=this.bv().top();e.viewportLeft=this.bv().left();e.viewportWidth=this.bv().width();e.viewportHeight=this.bv().height();e.passID="ItemMarkers";u=new t.cd;u.isHitTestRender=i;u.passInfo=e;f=new t.cj;f.passInfo=e;c=!1;v=n.e();f.context=v;u.context=v;var w=0,b=0,y=new t.f0(t.$cg.$type,t.$cg.$type,0);for(s=0;s<this.b9().count();s++)(r=this.b9().__inner[s],o=r.ae(),y.containsKey(o)||(y.add(o,o),o!=null&&o.passStarting()!=null&&o.passStarting()(e)),r.__visibility!=1)&&(this.bb(r,s,i),c?(u.availableWidth=w,u.availableHeight=b):(f.data=r.content(),f.width=r.width(),f.height=r.height(),o.measure()!=null&&(f.data=r.content(),o.measure()(f),c=f.isConstant,c&&(w=f.width,b=f.height)),u.availableWidth=f.width,u.availableHeight=f.height),isNaN(r.width())||Number.isInfinity(r.width())||(u.availableWidth=r.width()),isNaN(r.height())||Number.isInfinity(r.height())||(u.availableHeight=r.height()),n.n(u,r),r.k(u.availableWidth),r.j(u.availableHeight));for(p=y.keys().getEnumerator();p.moveNext();)l=p.current(),l!=null&&l.passCompleted()!=null&&l.passCompleted()(e)}}},ah:function(i){var r,u,f;for(t.$tr.ah.call(this,i),r=0;r<this.ca().count();r++)u=new t.g6(1,"catItemRect",this.ca().__inner[r]),u.tags().add("Main"),u.tags().add("CategoryItem"),i.shapes().add(u);for(f=0;f<this.b9().count();f++)i.markerShapes().add(this.b6(n.ig.util.cast(t.$cf.$type,this.b9().__inner[f])))},b6:function(i){var r=new t.g4,u=new t.gh,f;return r.x(i.l()),r.y(i.m()),r.index(-1),r.contentTemplate(i.ae()),n.ig.util.cast(t.$fl.$type,i.content())!==null&&(f=i.content(),u.fill(t.$gk.fromBrush(f.actualItemBrush())),u.stroke(t.$gk.fromBrush(f.outline()))),r.visibility(i.__visibility),r.markerAppearance(u),i.ae()==this.d().seriesViewer().circleMarkerTemplate()?r.markerType("Circle"):i.ae()==this.d().seriesViewer().diamondMarkerTemplate()?r.markerType("Diamond"):i.ae()==this.d().seriesViewer().hexagonMarkerTemplate()?r.markerType("Hexagon"):i.ae()==this.d().seriesViewer().hexagramMarkerTemplate()?r.markerType("Hexagram"):i.ae()==this.d().seriesViewer().pentagonMarkerTemplate()?r.markerType("Pentagon"):i.ae()==this.d().seriesViewer().pentagramMarkerTemplate()?r.markerType("Pentagram"):i.ae()==this.d().seriesViewer().pyramidMarkerTemplate()?r.markerType("Pyramid"):i.ae()==this.d().seriesViewer().squareMarkerTemplate()?r.markerType("Square"):i.ae()==this.d().seriesViewer().tetragramMarkerTemplate()?r.markerType("Tetragram"):i.ae()==this.d().seriesViewer().triangleMarkerTemplate()?r.markerType("Triangle"):r.markerType("None"),r},$type:new n.ig.Type("CategoryItemHighlightLayerView",t.$tr.$type)},!0);n.ig.util.defType("CategoryToolTipLayer:um","AnnotationLayer",{init:function(){t.$tq.init.call(this);var n=new t.us,i=new t.us,r=new t.us;this.jv(n);this.ju(i);this.jw(r);this.y(t.$um.$type)},au:function(){return new t.un(this)},hc:function(n){t.$tq.hc.call(this,n);this.ky(n)},_ky:null,ky:function(n){return arguments.length===1?(this._ky=n,n):this._ky},isDefaultTooltipBehaviorDisabled:function(){return!0},targetAxis:function(n){return arguments.length===1?(this.g(t.$um.targetAxisProperty,n),n):this.c(t.$um.targetAxisProperty)},useInterpolation:function(n){return arguments.length===1?(this.g(t.$um.useInterpolationProperty,n),n):this.c(t.$um.useInterpolationProperty)},toolTipPosition:function(n){return arguments.length===1?(this.g(t.$um.toolTipPositionProperty,n),n):this.c(t.$um.toolTipPositionProperty)},hh:function(n,i,r,u){t.$tq.hh.call(this,n,i,r,u);switch(i){case"TargetAxis":this.renderSeries(!0);break;case"UseInterpolation":this.renderSeries(!0);break;case"ToolTipPosition":this.renderSeries(!0);break;case"SeriesViewer":this.ky().ch()}},kf:function(n,t){this.targetAxis()==n&&(this.ae().c()||this.renderSeries(t))},kg:function(n,t){this.ae().c()||this.renderSeries(t)},ki:function(i,r){var u,o,e,h,c,f,s,p,w;if(t.$tq.ki.call(this,i,r),u=i,o=this.useInterpolation(),u.n(NaN),u.m(NaN),u.i(NaN),u.j(NaN),u.m(NaN),u.n(NaN),isNaN(this.j2.__x)&&isNaN(this.j2.__y)){this.ky().cf(this.ky().cb());return}if(this.targetAxis()!=null){if(e=this.targetAxis(),e==null||!e.isCategory()||e.isAngular())return;if(!e.bj())return;h=e;c=this.kz(h.bw(),o);this.k5(c,u,o)}else if(n.ig.util.cast(t.$bd.$type,this.seriesViewer())!==null){for(var b=this.seriesViewer(),l=!0,a=!1,v=new t.bh(t.$aj.$type,0),y=b.axes().getEnumerator();y.moveNext();)if(f=y.current(),f.isCategory()&&!f.isAngular()){if(!f.bj())continue;if(l)l=!1,a=f.isVertical();else if(f.isVertical()!=a)continue;for(s=f.bw().getEnumerator();s.moveNext();)p=s.current(),v.add(p)}w=this.kz(v,o);this.k5(w,u,o)}},kz:function(i,r){for(var u,d,p,o,w,c,v,f,e,l,s=Number.MAX_VALUE,h=-Number.MAX_VALUE,b=new t.bh(t.$fl.$type,0),k=new t.bh(n.ig.$op.$type,0),a=!1,y=0;y<i.count();y++)if((u=i.item(y),u.isFinancial()||u.isCategory())&&!u.isStacked()&&(d=u,d.categoryAxis().bj())){if(1)a=u.isVertical();else if(a!=u.isVertical())continue;(p=this.j9(u),p.a())&&(o=u.getSeriesValuePosition(p.b(),r,!1),a?isNaN(o.__y)||(s=Math.min(s,o.__y),h=Math.max(h,o.__y)):isNaN(o.__x)||(s=Math.min(s,o.__x),h=Math.max(h,o.__x)),w=this.k1(u),w!=null)&&(c=null,v=u.getItem(this.j2),u.isDefaultToolTipSelected()&&v!=null?c=u.ag(v):(c=new t.fl,c.item(v),c.series(u)),b.add(c),k.add(w))}return f=0,e=0,a?(e=(s+h)/2,f=this.jr().right(),(this.toolTipPosition()==2||this.toolTipPosition()==1)&&(f=this.jr().left()),(e<0||e>this.jr().bottom())&&(e=NaN)):(f=(s+h)/2,e=this.jr().top(),(this.toolTipPosition()==2||this.toolTipPosition()==1)&&(e=this.jr().bottom()),(f<0||f>this.jr().right())&&(f=NaN)),l=new t.ut,l.c({__x:f,__y:e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),l.a(b),l.b(k),l},k5:function(n,t){var f=n.c(),w=n.a(),tt=n.b(),h,b,v,k,g,nt,s,a,u;f=this.ky().cd(f);var it=0,ut=this.view().bv(),d=this.ky().cb();if(this.ky().ce(),h=!1,w.count()==0){this.ky().al();return}for(b=!1,v=0;v<w.count();v++)k=w.__inner[v].series(),h=k.isVertical(),g=w.__inner[v],nt=tt.__inner[v],this.ky().b8(k,nt,g)&&(b=!0),it++;if(!b){this.ky().cf(d);return}var i=this.ky().ci(d),y=0,l=0,e=0,o=0,c=!1,r=!1,rt=!1,p=this.toolTipPosition();p==0&&(rt=!0);(p==2||p==3)&&(r=!0);(p==2||p==1)&&(c=!0);s=this.ky().cj();h?(!c&&!r&&f.__x+(i.b()+10)>s.b()&&(r=!0),c&&!r&&f.__x-(i.b()+10)<0&&(r=!0)):(!c&&!r&&f.__y-(i.a()+10)<0&&(r=!0),c&&!r&&f.__y+(i.a()+10)>s.a()&&(r=!0));a=10;u=5;c?h?(u=i.b()+a,r&&(u=0)):(u=5,r&&(u=u+i.a()+a)):(h||(u=i.a()+a),r&&(u=h?u+i.b()+a:0));h?(l=0-(a+5),c&&(l=l*-1+i.b()),y=i.a()/2,o=f.__y-i.a()/2,e=f.__x-u):(y=i.a()+10+5,c&&(y=0-(a+5)),l=i.b()/2,e=f.__x-i.b()/2,o=f.__y-u);h?(o<0&&(y-=0-o,o=0),o+i.a()>s.a()&&(y+=o+i.a()-s.a(),o=s.a()-i.a())):(e<0&&(l-=0-e,e=0),e+i.b()>s.b()&&(l+=e+i.b()-s.b(),e=s.b()-i.b()));t.m(e);t.n(o);t.i(l);t.j(y);t.l(i.b());t.k(i.a())},k1:function(n){return n.toolTip()},kl:function(n,i){t.$tq.kl.call(this,n,i);var r=n,h=i.bv().left(),c=i.bv().right(),l=i.bv().top(),a=i.bv().bottom(),u=this.ky().cb();if(isNaN(r.m())||isNaN(r.n())||isNaN(r.i())||isNaN(r.j())){this.ky().cf(u);return}var f=r.m(),e=r.n(),o=r.i(),s=r.j();this.ky().cg(u,f,e,o,s)},$type:new n.ig.Type("CategoryToolTipLayer",t.$tq.$type)},!0);n.ig.util.defType("CategoryToolTipCollisionInfo:uu","Object",{init:function(){n.ig.$op.init.call(this)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("CategoryToolTipCollisionInfo",n.ig.$ot)},!0);n.ig.util.defType("CategoryToolTipLayerFrame:us","Frame",{h:0,n:function(n){return arguments.length===1?(this.h=n,n):this.h},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},init:function(){t.$kt.init.call(this);this.m(NaN);this.n(NaN);this.i(NaN);this.j(NaN);this.l(NaN);this.k(NaN)},d:function(n,t,i){var r=t,u=i;isNaN(r.m())?this.m(u.m()):this.m(r.m()+(u.m()-r.m())*n);isNaN(r.n())?this.n(u.n()):this.n(r.n()+(u.n()-r.n())*n);isNaN(r.i())?this.i(u.i()):this.i(r.i()+(u.i()-r.i())*n);isNaN(r.j())?this.j(u.j()):this.j(r.j()+(u.j()-r.j())*n);isNaN(r.l())?this.l(u.l()):this.l(r.l()+(u.l()-r.l())*n);isNaN(r.k())?this.k(u.m()):this.k(r.k()+(u.k()-r.k())*n)},$type:new n.ig.Type("CategoryToolTipLayerFrame",t.$kt.$type)},!0);n.ig.util.defType("CategoryTooltipSeriesInfo:ut","Object",{init:function(){n.ig.$op.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("CategoryTooltipSeriesInfo",n.ig.$ot)},!0);n.ig.util.defType("CategoryToolTipLayerView:un","AnnotationLayerView",{init:function(n){this.b6=null;this.__tooltips=null;this.b9=null;this.b7=!1;t.$tr.init.call(this,n);this.b5(n);this.htmlTest(/^[^<]*(<[\w\W]+>)[^>]*$/)},_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},b6:null,__tooltips:null,b9:null,b7:!1,cb:function(){return this.b6==null&&(this.b6=new t.uo,this.b6.eventSink(this.d().seriesViewer().a6().m()),this.__tooltips=n("<div><\/div>"),this.b9=n("<div><\/div>"),this.b6.__visibility=0),this.b6},ao:function(){t.$tr.ao.call(this);this.b6!=null&&(this.b6.__visibility=1)},af:function(){t.$tr.af.call(this);this.b6!=null&&(this.b6.destroy(),this.b6=null)},_htmlTest:null,htmlTest:function(n){return arguments.length===1?(this._htmlTest=n,n):this._htmlTest},b8:function(t,i,r){var f,u,e;t.tooltipTemplate()=="default"&&t.tooltipTemplate(t.view().getDefaultTooltipTemplate());var o=t.tooltipTemplate(),h=r,s=n.ig.tmpl!==null;return s?t.flattenEventArgs()==null?!1:(f=t.flattenEventArgs()(r),u=n.ig.tmpl(o,f).toString(),this.htmlTest().test(u)||(u="<span>"+u+"<\/span>"),e=n(u),this.__tooltips.append(e),!0):!1},ci:function(n){var i=n,u,r;return i.content(this.__tooltips),u=new t.y(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i.pointerVisibility(1),r=i.cj(new t.y(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),i.pointerVisibility(0),r},cd:function(t){var r=0,u=0,i;return this.d().seriesViewer()!=null&&(i=this.d().seriesViewer().getContainerOffsets(),r+=i.b(),u+=i.a()),{__x:r+t.__x,__y:u+t.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},cg:function(t,i,r,u,f){var e=t,o=e.content();e.pointerPosition({__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});e.__visibility=0;e.l(i);e.m(r)},cj:function(){var i=n(window).width(),r=n(window).height();return new t.y(i,r)},cf:function(){this.__tooltips.children().remove();this.b9.children().remove();this.b6.__visibility=1},ce:function(){if(this.__tooltips!=null){var n=this.__tooltips;this.__tooltips=this.b9;this.b9=n;this.__tooltips.children().remove()}},ch:function(){},a1:function(n,i){var r,u;if(t.$tr.a1.call(this,n,i),!i){r=null;this.d().seriesViewer()!=null&&(r=this.d().seriesViewer().a6().l().f());var e=0,o=0,f=this.d().seriesViewer();f!=null&&(u=f.a6().l().bf(),e+=u.b(),o+=u.a());this.b6!=null&&(this.b6.pointerTooltipStyle(r),this.b6.render(this.b6.l(),this.b6.m()))}},ah:function(i){var e,r,h,u;t.$tr.ah.call(this,i);var f=this.b6,o=0,s=0;for(this.d().seriesViewer()!=null&&(e=this.d().seriesViewer().getContainerOffsets(),o+=e.b(),s+=e.a()),r=f.exportVisualData(),r.offsetX(f.l()-o),r.offsetY(f.m()-s),r.categoryNames(new t.bh(String,0)),h=this.__tooltips.children().length,u=0;u<h;u++){var c=u.toString(),l=n(this.__tooltips.children()[c]).text(),a=l.toString();r.categoryNames().add(a)}i.pointerTooltips().add(r)},$type:new n.ig.Type("CategoryToolTipLayerView",t.$tr.$type)},!0);n.ig.util.defType("CrosshairLayer:uv","AnnotationLayer",{init:function(){t.$tq.init.call(this);var n=new t.ux,i=new t.ux,r=new t.ux,u=this.transitionDuration()/1e3;this.jv(n);this.ju(i);this.jw(r);this.y(t.$uv.$type)},au:function(){return new t.uw(this)},hc:function(n){t.$tq.hc.call(this,n);this.kw(n)},_kw:null,kw:function(n){return arguments.length===1?(this._kw=n,n):this._kw},targetSeries:function(n){return arguments.length===1?(this.g(t.$uv.targetSeriesProperty,n),n):this.c(t.$uv.targetSeriesProperty)},useInterpolation:function(n){return arguments.length===1?(this.g(t.$uv.useInterpolationProperty,n),n):this.c(t.$uv.useInterpolationProperty)},verticalLineVisibility:function(n){return arguments.length===1?(this.g(t.$uv.verticalLineVisibilityProperty,n),n):this.c(t.$uv.verticalLineVisibilityProperty)},horizontalLineVisibility:function(n){return arguments.length===1?(this.g(t.$uv.horizontalLineVisibilityProperty,n),n):this.c(t.$uv.horizontalLineVisibilityProperty)},skipUnknownValues:function(n){return arguments.length===1?(this.g(t.$uv.skipUnknownValuesProperty,n),n):this.c(t.$uv.skipUnknownValuesProperty)},kg:function(n,t){(this.targetSeries()==null||this.targetSeries()==n)&&(this.ae().c()||this.renderSeries(t))},ki:function(n,i){var u,f;t.$tq.ki.call(this,n,i);var r=n,e=this.useInterpolation(),o=this.skipUnknownValues();if(r.h().clear(),r.i().clear(),r.j().clear(),this.jy(this.targetSeries()))this.k5(this.targetSeries(),r,e,o);else for(u=this.seriesViewer().series().getEnumerator();u.moveNext();)f=u.current(),this.jy(f)&&this.k5(f,r,e,o)},jy:function(n){if(!t.$tq.jy.call(this,n))return!1;var i=this.j9(n);return i.a()?!0:!1},k5:function(n,t,i,r){var e=this.j9(n),f,u;e.a()&&(f=e.b(),f=n.getSeriesValuePosition(f,i,r),u=this.actualBrush(),u==null&&(u=this.brush()),u==null&&(u=n.actualBrush(),u!=null&&(u=this.kw().cc(u))),t.j().add(u),t.h().add(f.__y),t.i().add(f.__x))},kl:function(i,r){var u,f,o,l,s,a;t.$tq.kl.call(this,i,r);var v=this.kw().b6(),e=i,w=e.h().count(),h=0,b=r.bv().left(),k=r.bv().right(),d=r.bv().top(),g=r.bv().bottom(),nt=this.verticalLineVisibility()==0,tt=this.horizontalLineVisibility()==0;for(u=0;u<w;u++){f=v.item(h);h++;f.__stroke=e.j().__inner[u];f.z(this.thickness());f.__fill=e.j().__inner[u];f.af(this.dashArray());f.aa(this.dashCap());var y=Math.floor(e.h().__inner[u]),p=Math.floor(e.i().__inner[u]),c=new t.dx;nt&&(o=new t.d6,o.__startPoint={__x:p,__y:d,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},l=new t.d8(1),l.c({__x:p,__y:g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.__segments.add(l),c.b().add(o));tt&&(s=new t.d6,s.__startPoint={__x:b,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},a=new t.d8(1),a.c({__x:k,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s.__segments.add(a),c.b().add(s));f.ak(c)}v.c(h)},hh:function(n,i,r,u){t.$tq.hh.call(this,n,i,r,u);switch(i){case"HorizontalLineVisibility":this.renderSeries(!0);break;case"VerticalLineVisibility":this.renderSeries(!0);break;case"TargetSeries":this.renderSeries(!0);break;case"UseInterpolation":this.renderSeries(!0)}},$type:new n.ig.Type("CrosshairLayer",t.$tq.$type)},!0);n.ig.util.defType("CrosshairLayerFrame:ux","Frame",{_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},init:function(){t.$kt.init.call(this);this.h(new t.bh(Number,0));this.i(new t.bh(Number,0));this.j(new t.bh(t.$b3.$type,0))},d:function(n,i,r){var u=i,f=r;t.$kt.a(this.h(),n,u.h(),f.h());t.$kt.a(this.i(),n,u.i(),f.i());t.$kt.c(this.j(),n,u.j(),f.j(),0)},$type:new n.ig.Type("CrosshairLayerFrame",t.$kt.$type)},!0);n.ig.util.defType("CrosshairLayerView:uw","AnnotationLayerView",{init:function(n){t.$tr.init.call(this,n);this.b5(n);this.b7(new t.bh(t.$b6.$type,0))},_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},_b6:null,b6:function(n){return arguments.length===1?(this._b6=n,n):this._b6},_b7:null,b7:function(n){return arguments.length===1?(this._b7=n,n):this._b7},ao:function(){var n=this;t.$tr.ao.call(n);n.b6(function(){var i=new t.ga(t.$b6.$type);return i.create(n.cd.runOn(n)),i.activate(n.b8.runOn(n)),i.disactivate(n.ca.runOn(n)),i.destroy(n.b9.runOn(n)),i}())},cd:function(){var n=new t.b6;return n.h(new t.eg),this.b7().add(n),n},b8:function(n){n.__visibility=0},ca:function(n){n.__visibility=1},b9:function(n){this.b7().remove(n)},cb:function(i,r,u,f){var o=this,e;(i.ak()==null||i.ak().b().__x!=f||i.ak().c().__x!=u)&&(e=function(){var i=new t.dz;return i.c({__x:u,__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b({__x:f,__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),i.ak(e))},cc:function(n){return n==null?n:n.getLightened(.1)},a1:function(n,i){var r,u;if(t.$tr.a1.call(this,n,i),n.c()&&!i)for(r=0;r<this.b7().count();r++)u=this.b7().__inner[r],u.__visibility==0&&n.q(u)},ah:function(n){var i,r;for(t.$tr.ah.call(this,n),i=0;i<this.b7().count();i++)r=new t.me(1,"crosshairLine",this.b7().__inner[i]),r.tags().add("Main"),r.tags().add("Crosshair"),n.shapes().add(r)},$type:new n.ig.Type("CrosshairLayerView",t.$tr.$type)},!0);n.ig.util.defType("ItemToolTipLayer:uy","AnnotationLayer",{init:function(){t.$tq.init.call(this);var n=new t.u0,i=new t.u0,r=new t.u0,u=this.transitionDuration()/1e3;this.jv(n);this.ju(i);this.jw(r);this.y(t.$uy.$type)},au:function(){return new t.uz(this)},hc:function(n){t.$tq.hc.call(this,n);this.kw(n)},_kw:null,kw:function(n){return arguments.length===1?(this._kw=n,n):this._kw},isDefaultTooltipBehaviorDisabled:function(){return!0},targetSeries:function(n){return arguments.length===1?(this.g(t.$uy.targetSeriesProperty,n),n):this.c(t.$uy.targetSeriesProperty)},useInterpolation:function(n){return arguments.length===1?(this.g(t.$uy.useInterpolationProperty,n),n):this.c(t.$uy.useInterpolationProperty)},skipUnknownValues:function(n){return arguments.length===1?(this.g(t.$uy.skipUnknownValuesProperty,n),n):this.c(t.$uy.skipUnknownValuesProperty)},hh:function(n,i,r,u){t.$tq.hh.call(this,n,i,r,u);switch(i){case"TargetSeries":this.renderSeries(!0);break;case"UseInterpolation":this.renderSeries(!0);break;case"SkipUnknownValues":this.renderSeries(!0)}},kg:function(n,t){(this.targetSeries()==null||this.targetSeries()==n)&&(this.ae().c()||this.renderSeries(t))},jy:function(n){if(!t.$tq.jy.call(this,n))return!1;var i=this.j9(n);return i.a()?!0:!1},ki:function(n,i){var u,f,e;t.$tq.ki.call(this,n,i);var r=n,o=this.kw().b6(),s=this.useInterpolation(),h=this.skipUnknownValues();if(r.m().clear(),r.n().clear(),r.l().clear(),r.i().clear(),r.h().clear(),r.p().clear(),r.o().clear(),r.k().clear(),r.j().clear(),r.q().clear(),isNaN(this.j2.__x)&&isNaN(this.j2.__y)){o.c(0);return}if(u=0,this.jy(this.targetSeries()))this.k6(this.targetSeries(),r,s,h,0),u++;else{for(f=this.seriesViewer().series().getEnumerator();f.moveNext();)e=f.current(),this.jy(e)&&(this.k6(e,r,s,h,u),u++);this.k5(r)}o.c(u)},k5:function(i){for(var u,d,s,h,c,b,k,v=this,r=new t.bh(t.$u3.$type,0),f=0;f<i.h().count();f++)(u=new t.u3,u.d(f),u.e({__x:i.h().__inner[f],__y:i.i().__inner[f],$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u.c(i.k().__inner[f]),u.a(i.j().__inner[f]),u.b(i.m().__inner[f]),isNaN(u.e().__x)||isNaN(u.e().__y))||r.add(u);if(r.sort1(function(n,t){return n.e().__y<t.e().__y?-1:n.e().__y>t.e().__y?1:n.b()<t.b()?-1:n.b()>t.b()?1:0}),d=v.ky(r),d){for(s=0;s<r.count()-1;s++){var l=r.__inner[s],e=r.__inner[s+1],y=new t.x(0,l.e().__x,l.e().__y,l.c(),l.a()),g=new t.x(0,e.e().__x,e.e().__y,e.c(),e.a());(y.intersectsWith(g)||y.top()>g.bottom())&&e.e({__x:e.e().__x,__y:y.bottom()+1,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}for(r.__inner[r.count()-1].e().__y+r.__inner[r.count()-1].a()>v.view().bv().height()&&r.__inner[r.count()-1].e({__x:r.__inner[r.count()-1].e().__x,__y:r.__inner[r.count()-1].e().__y-(r.__inner[r.count()-1].e().__y+r.__inner[r.count()-1].a()-v.view().bv().height()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h=r.count()-1;h>=1;h--){var a=r.__inner[h],o=r.__inner[h-1],p=new t.x(0,a.e().__x,a.e().__y,a.c(),a.a()),w=new t.x(0,o.e().__x,o.e().__y,o.c(),o.a());(p.intersectsWith(w)||p.top()<w.bottom())&&o.e({__x:o.e().__x,__y:p.top()-(w.height()+1),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}for(c=0;c<r.count();c++)b=r.__inner[c].d(),k=r.__inner[c],i.h().__inner[b]=k.e().__x,i.i().__inner[b]=k.e().__y}},ky:function(n){var f,i;if(n.count()<=1)return!1;for(f=this.view().bv(),i=0;i<n.count()-1;i++){var r=n.__inner[i],u=n.__inner[i+1],e=new t.x(0,r.e().__x,r.e().__y,r.c(),r.a()),o=new t.x(0,u.e().__x,u.e().__y,u.c(),u.a());if(e.intersectsWith(o))return!0}return!1},k6:function(n,i,r,u,f){var k=this.j9(n),o,g,c,l,a,v,y;if(k.a()){var h=n.getSeriesValuePosition(k.b(),r,u),nt=this.kw().b6(),p=this.k1(n),d=this.j2;r||(d=this.toWorldPosition(h));var w=n.getItem(d),b=nt.item(f),e=this.view().bv(),s=null;(n.isDefaultToolTipSelected()&&w!=null?s=n.ag(w):(s=new t.fl,s.item(w),s.series(n)),this.kw().b7(n,b,p,s))&&(o=this.kw().cg(b,p,s),i.n().add(b),i.o().add(s),i.p().add(p),g=h.__x,c=h.__x,c=Math.max(c,e.left()),c=Math.min(c,e.right()),i.l().add(c),l=h.__y,l=Math.max(l,e.top()),l=Math.min(l,e.bottom()),i.m().add(l),a=h.__x+10,a+o.b()>e.right()&&(a=g-o.b()-10),a<e.left()&&(a=e.left()),i.h().add(a),v=h.__y-o.a()-10,v+o.a()>e.bottom()&&(v=e.bottom()-o.a()-10),v<e.top()&&(v=e.top()),i.i().add(v),i.k().add(o.b()),i.j().add(o.a()),y=this.actualBrush(),y==null&&(y=this.brush()),y==null&&(y=n.actualBrush()),i.q().add(y))}},k1:function(n){return n.toolTip()},kl:function(n,i){var r;t.$tq.kl.call(this,n,i);var u=n,y=u.m().count(),s=i.bv().left(),h=i.bv().right(),c=i.bv().top(),l=i.bv().bottom();for(r=0;r<y;r++){if(isNaN(u.l().__inner[r])||isNaN(u.m().__inner[r])||isNaN(u.h().__inner[r])||isNaN(u.i().__inner[r])||u.p().__inner[r]==null||u.o().__inner[r]==null){this.kw().ce(u.n().__inner[r]);continue}var e=u.h().__inner[r],o=u.i().__inner[r],a=u.k().__inner[r],v=u.j().__inner[r],f=!1;if(e<s&&Math.abs(e-s)>1&&(f=!0),o<c&&Math.abs(o-c)>1&&(f=!0),e+a>h&&Math.abs(e+a-h)>1&&(f=!0),o+v>l&&Math.abs(o+v-l)>1&&(f=!0),f){this.kw().ce(u.n().__inner[r]);continue}var p=u.n().__inner[r],w=Math.min(u.h().__inner[r],u.l().__inner[r]),b=Math.min(u.i().__inner[r],u.m().__inner[r]),k=u.l().__inner[r]-u.h().__inner[r],d=u.m().__inner[r]-u.i().__inner[r];this.kw().cf(p,w,b,k,d)}},$type:new n.ig.Type("ItemToolTipLayer",t.$tq.$type)},!0);n.ig.util.defType("ItemTooltipCollisionInfo:u3","Object",{init:function(){n.ig.$op.init.call(this)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("ItemTooltipCollisionInfo",n.ig.$ot)},!0);n.ig.util.defType("ItemTooltipLayerFrame:u0","Frame",{_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_q:null,q:function(n){return arguments.length===1?(this._q=n,n):this._q},init:function(){t.$kt.init.call(this);this.m(new t.bh(Number,0));this.l(new t.bh(Number,0));this.i(new t.bh(Number,0));this.h(new t.bh(Number,0));this.p(new t.bh(n.ig.$op.$type,0));this.o(new t.bh(n.ig.$op.$type,0));this.n(new t.bh(n.ig.$op.$type,0));this.k(new t.bh(Number,0));this.j(new t.bh(Number,0));this.q(new t.bh(t.$b3.$type,0))},d:function(i,r,u){var f=this,e=r,o=u;t.$kt.a(f.m(),i,e.m(),o.m());t.$kt.a(f.l(),i,e.l(),o.l());t.$kt.a(f.i(),i,e.i(),o.i());t.$kt.a(f.h(),i,e.h(),o.h());t.$kt.a(f.k(),i,e.k(),o.k());t.$kt.a(f.j(),i,e.j(),o.j());t.$kt.c(f.q(),i,e.q(),o.q(),0);t.$u2.b(n.ig.$op.$type,f.p(),i,e.p(),o.p(),function(){return null},function(n,t,i,r){return r});t.$u2.b(n.ig.$op.$type,f.o(),i,e.o(),o.o(),function(){return null},function(n,t,i,r){return r});t.$u2.b(n.ig.$op.$type,f.n(),i,e.n(),o.n(),function(){return null},function(n,t,i,r){return r})},$type:new n.ig.Type("ItemTooltipLayerFrame",t.$kt.$type)},!0);n.ig.util.defType("ItemToolTipLayerView:uz","AnnotationLayerView",{init:function(n){t.$tr.init.call(this,n);this.b5(n);this.b8(new t.bh(t.$uo.$type,0))},_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},_b6:null,b6:function(n){return arguments.length===1?(this._b6=n,n):this._b6},ao:function(){var i=this;t.$tr.ao.call(i);i.b6(function(){var r=new t.ga(n.ig.$op.$type);return r.create(i.b9.runOn(i)),r.activate(i.cb.runOn(i)),r.disactivate(i.cd.runOn(i)),r.destroy(i.cc.runOn(i)),r}());i.htmlTest(/^[^<]*(<[\w\W]+>)[^>]*$/)},af:function(){var n,i;for(t.$tr.af.call(this),n=0;n<this.b6().a().count();n++)this.b6().a().__inner[n].destroy();for(i=0;i<this.b6().b().count();i++)this.b6().b().__inner[i].destroy();this.b6().clear()},_b8:null,b8:function(n){return arguments.length===1?(this._b8=n,n):this._b8},b9:function(){var n=new t.uo;return n.__visibility=1,n.eventSink(this.d().seriesViewer().a6().m()),this.b8().add(n),n},cb:function(n){var t=n},cd:function(n){var t=n;t.__visibility=1},cc:function(n){var t=n;t.unbind();t.content(null);this.b8().remove1(n)},_htmlTest:null,htmlTest:function(n){return arguments.length===1?(this._htmlTest=n,n):this._htmlTest},b7:function(t,i,r,u){var s=i,e,f,o;t.tooltipTemplate()=="default"&&t.tooltipTemplate(t.view().getDefaultTooltipTemplate());var h=t.tooltipTemplate(),l=u,c=n.ig.tmpl!==null;return c?t.flattenEventArgs()==null?!1:(e=t.flattenEventArgs()(u),f=n.ig.tmpl(h,e).toString(),this.htmlTest().test(f)||(f="<span>"+f+"<\/span>"),o=n(f),s.content(o),!0):!1},cg:function(n){var i=n,u=i.content(),f=new t.y(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),r;return i.pointerVisibility(1),r=i.cj(new t.y(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),i.pointerVisibility(0),r},cf:function(t,i,r,u,f){var o=null,e,s;this.d().seriesViewer()!=null&&(o=this.d().seriesViewer().a6().l().f());e=t;e.pointerTooltipStyle(o);s=e.content();e.pointerPosition({__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});e.__visibility=0;e.l(i);e.m(r)},ce:function(n){if(n!=null){var t=n;t.__visibility=1}},a1:function(n,i){var u,r;if(t.$tr.a1.call(this,n,i),!i){var f=0,e=0,o=this.d().seriesViewer();for(o!=null&&(u=o.a6().l().bf(),f+=u.b(),e+=u.a()),r=0;r<this.b8().count();r++)this.b8().__inner[r].render(this.b8().__inner[r].l()+f,this.b8().__inner[r].m()+e)}},ah:function(n){var f,r,u,i,e,o;for(t.$tr.ah.call(this,n),f=this.b6().a().getEnumerator();f.moveNext();)(r=f.current(),r.__visibility==0)&&(u=r,i=u.exportVisualData(),i.offsetX(u.l()),i.offsetY(u.m()),i.categoryNames(new t.bh(String,0)),e=r.content().text(),o=e.toString(),i.categoryNames().add(o),n.pointerTooltips().add(i))},$type:new n.ig.Type("ItemToolTipLayerView",t.$tr.$type)},!0);n.ig.util.defType("PointerTooltip:uo","ContentControl",{init:function(){var i=this;this.ax={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};this.af=0;this.aq=0;this.ap=0;this.am=!1;t.$cf.init.call(this);this.y(t.$uo.$type);this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,function(n,t){i.bu(n,t.propertyName(),t.oldValue(),t.newValue())});this.ai(new t.up(this))},_ai:null,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},pointerPosition:function(n){return arguments.length===1?(this.g(t.$uo.pointerPositionProperty,n),n):this.c(t.$uo.pointerPositionProperty)},pointerInset:function(n){return arguments.length===1?(this.g(t.$uo.pointerInsetProperty,n),n):this.c(t.$uo.pointerInsetProperty)},pointerWidth:function(n){return arguments.length===1?(this.g(t.$uo.pointerWidthProperty,n),n):this.c(t.$uo.pointerWidthProperty)},pointerVisibility:function(n){return arguments.length===1?(this.g(t.$uo.pointerVisibilityProperty,n),n):this.c(t.$uo.pointerVisibilityProperty)},pointerLocation:function(n){return arguments.length===1?(this.g(t.$uo.pointerLocationProperty,n),n):this.c(t.$uo.pointerLocationProperty)},actualPointerStartPosition:function(n){return arguments.length===1?(this.g(t.$uo.actualPointerStartPositionProperty,n),n):this.c(t.$uo.actualPointerStartPositionProperty)},actualPointerFirstPosition:function(n){return arguments.length===1?(this.g(t.$uo.actualPointerFirstPositionProperty,n),n):this.c(t.$uo.actualPointerFirstPositionProperty)},actualPointerSecondPosition:function(n){return arguments.length===1?(this.g(t.$uo.actualPointerSecondPositionProperty,n),n):this.c(t.$uo.actualPointerSecondPositionProperty)},actualBoxTopLeftPosition:function(n){return arguments.length===1?(this.g(t.$uo.actualBoxTopLeftPositionProperty,n),n):this.c(t.$uo.actualBoxTopLeftPositionProperty)},actualBoxTopRightPosition:function(n){return arguments.length===1?(this.g(t.$uo.actualBoxTopRightPositionProperty,n),n):this.c(t.$uo.actualBoxTopRightPositionProperty)},actualBoxBottomLeftPosition:function(n){return arguments.length===1?(this.g(t.$uo.actualBoxBottomLeftPositionProperty,n),n):this.c(t.$uo.actualBoxBottomLeftPositionProperty)},actualBoxBottomRightPosition:function(n){return arguments.length===1?(this.g(t.$uo.actualBoxBottomRightPositionProperty,n),n):this.c(t.$uo.actualBoxBottomRightPositionProperty)},actualBoxWidth:function(n){return arguments.length===1?(this.g(t.$uo.actualBoxWidthProperty,n),n):this.c(t.$uo.actualBoxWidthProperty)},actualBoxHeight:function(n){return arguments.length===1?(this.g(t.$uo.actualBoxHeightProperty,n),n):this.c(t.$uo.actualBoxHeightProperty)},actualBoxFullHeight:function(n){return arguments.length===1?(this.g(t.$uo.actualBoxFullHeightProperty,n),n):this.c(t.$uo.actualBoxFullHeightProperty)},actualBoxFullWidth:function(n){return arguments.length===1?(this.g(t.$uo.actualBoxFullWidthProperty,n),n):this.c(t.$uo.actualBoxFullWidthProperty)},pointerPoints:function(n){return arguments.length===1?(this.g(t.$uo.pointerPointsProperty,n),n):this.c(t.$uo.pointerPointsProperty)},pointerOutlinePoints:function(n){return arguments.length===1?(this.g(t.$uo.pointerOutlinePointsProperty,n),n):this.c(t.$uo.pointerOutlinePointsProperty)},bv:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},propertyChanged:null,propertyUpdated:null,bu:function(n,t){switch(t){case"PointerPosition":this.bt();break;case"PointerVisibility":this.bt()}},_by:null,by:function(n){return arguments.length===1?(this._by=n,n):this._by},_ch:null,ch:function(n){return arguments.length===1?(this._ch=n,n):this._ch},_ci:null,ci:function(n){return arguments.length===1?(this._ci=n,n):this._ci},_ao:!1,ao:function(n){return arguments.length===1?(this._ao=n,n):this._ao},br:function(){this.ai().e(this.content())&&this.bt()},bt:function(){this.ao(!0)},ax:null,af:null,aq:0,ap:0,an:function(n,t){return Math.abs(n-t)<1e-5?!0:!1},cj:function(i){var h,d,g,nt,tt,it;this.ao(!1);var b=0,k=0,ot=this.ai().s(i);if(b=ot.b(),k=ot.a(),this.af==this.pointerLocation()&&this.an(this.ax.__x,this.pointerPosition().__x)&&this.an(this.ax.__y,this.pointerPosition().__y))return this.actualBoxWidth(b),this.actualBoxHeight(k),this.pointerVisibility()==0&&(b+=this.aq,k+=this.ap,this.actualBoxFullWidth(this.actualBoxWidth()+this.aq),this.actualBoxFullHeight(this.actualBoxHeight()+this.ap)),new t.y(b,k);var r={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},st={__x:b*.5,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:b,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u={__x:b,__y:k,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ht={__x:b*.5,__y:k,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},s={__x:0,__y:k,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ct={__x:0,__y:k*.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},lt={__x:b,__y:k*.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ft=b,et=k,rt=b,ut=k,a={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},v={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},y={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},p={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},e=this.pointerInset(),o=this.pointerWidth(),w=this.pointerLocation(),l=this.pointerPosition(),at=0,vt=0,yt=Math.pow(r.__x-l.__x,2)+Math.pow(r.__y-l.__y,2),pt=Math.pow(st.__x-l.__x,2)+Math.pow(st.__y-l.__y,2),wt=Math.pow(f.__x-l.__x,2)+Math.pow(f.__y-l.__y,2),bt=Math.pow(lt.__x-l.__x,2)+Math.pow(lt.__y-l.__y,2),kt=Math.pow(u.__x-l.__x,2)+Math.pow(u.__y-l.__y,2),dt=Math.pow(ht.__x-l.__x,2)+Math.pow(ht.__y-l.__y,2),gt=Math.pow(s.__x-l.__x,2)+Math.pow(s.__y-l.__y,2),ni=Math.pow(ct.__x-l.__x,2)+Math.pow(ct.__y-l.__y,2),c=Number.MAX_VALUE;c=Math.min(c,yt);c=Math.min(c,pt);c=Math.min(c,wt);c=Math.min(c,bt);c=Math.min(c,kt);c=Math.min(c,dt);c=Math.min(c,gt);c=Math.min(c,ni);w==0&&(c==yt&&(w=12,l.__x>=r.__x&&(w=1)),c==ni&&(w=11),c==gt&&(w=10,l.__x>=s.__x&&(w=9)),c==wt&&(w=4,l.__x<=f.__x&&(w=3)),c==bt&&(w=5),c==kt&&(w=6,l.__x<=u.__x&&(w=7)),c==pt&&(w=2),c==dt&&(w=8));h=3;switch(w){case 1:a={__x:r.__x+e,__y:r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:r.__x+e+o,__y:r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:r.__x+e,__y:r.__y+h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:r.__x+e+o,__y:r.__y+h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 2:a={__x:(r.__x+f.__x)/2-o/2,__y:r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:(r.__x+f.__x)/2+o/2,__y:r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:(r.__x+f.__x)/2-o/2,__y:r.__y+h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:(r.__x+f.__x)/2+o/2,__y:r.__y+h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 3:a={__x:f.__x-e,__y:r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:f.__x-e-o,__y:r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:f.__x-e,__y:r.__y+h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:f.__x-e-o,__y:r.__y+h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 4:a={__x:f.__x,__y:f.__y+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:f.__x,__y:f.__y+e+o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:f.__x-h,__y:f.__y+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:f.__x-h,__y:f.__y+e+o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 5:a={__x:f.__x,__y:(f.__y+u.__y)/2-o/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:f.__x,__y:(f.__y+u.__y)/2+o/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:f.__x-h,__y:(f.__y+u.__y)/2-o/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:f.__x-h,__y:(f.__y+u.__y)/2+o/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 6:a={__x:u.__x,__y:u.__y-e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:u.__x,__y:u.__y-e-o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:u.__x-h,__y:u.__y-e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:u.__x-h,__y:u.__y-e-o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 7:a={__x:u.__x-e,__y:u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:u.__x-e-o,__y:u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:u.__x-e,__y:u.__y-h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:u.__x-e-o,__y:u.__y-h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 8:a={__x:(s.__x+u.__x)/2-o/2,__y:u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:(s.__x+u.__x)/2+o/2,__y:u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:(s.__x+u.__x)/2-o/2,__y:u.__y-h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:(s.__x+u.__x)/2+o/2,__y:u.__y-h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 9:a={__x:s.__x+e,__y:s.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:s.__x+e+o,__y:s.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:s.__x+e,__y:s.__y-h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:s.__x+e+o,__y:s.__y-h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 10:a={__x:r.__x,__y:s.__y-e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:r.__x,__y:s.__y-e-o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:r.__x+h,__y:s.__y-e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:r.__x+h,__y:s.__y-e-o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 11:a={__x:r.__x,__y:(r.__y+s.__y)/2-o/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:r.__x,__y:(r.__y+s.__y)/2+o/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:r.__x+h,__y:(r.__y+s.__y)/2-o/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:r.__x+h,__y:(r.__y+s.__y)/2+o/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};break;case 12:a={__x:r.__x,__y:r.__y+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:r.__x,__y:r.__y+e+o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};y={__x:r.__x+h,__y:r.__y+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p={__x:r.__x+h,__y:r.__y+e+o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}}return(d={__x:l.__x,__y:l.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},d.__y<r.__y?(g=r.__y-d.__y,d={__x:d.__x,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ut+=g,r={__x:r.__x,__y:r.__y+g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:f.__x,__y:f.__y+g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},s={__x:s.__x,__y:s.__y+g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u={__x:u.__x,__y:u.__y+g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},a={__x:a.__x,__y:a.__y+g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},v={__x:v.__x,__y:v.__y+g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},y={__x:y.__x,__y:y.__y+g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},p={__x:p.__x,__y:p.__y+g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):ut=Math.max(d.__y,et),d.__x<r.__x?(nt=r.__x-d.__x,d={__x:0,__y:d.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},rt+=nt,r={__x:r.__x+nt,__y:r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:f.__x+nt,__y:f.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},s={__x:s.__x+nt,__y:s.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u={__x:u.__x+nt,__y:u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},a={__x:a.__x+nt,__y:a.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},v={__x:v.__x+nt,__y:v.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},y={__x:y.__x+nt,__y:y.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},p={__x:p.__x+nt,__y:p.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):rt=Math.max(d.__x,ft),at=rt-ft,vt=ut-et,this.aq=at,this.ap=vt,this.af=this.pointerLocation(),this.ax=this.pointerPosition(),this.actualPointerStartPosition(d),this.actualPointerFirstPosition(a),this.actualPointerSecondPosition(v),this.actualBoxWidth(ft),this.actualBoxHeight(et),this.actualBoxFullWidth(rt),this.actualBoxFullHeight(ut),this.actualBoxTopLeftPosition(r),this.actualBoxTopRightPosition(f),this.actualBoxBottomRightPosition(u),this.actualBoxBottomLeftPosition(s),tt=new t.cb(0),tt.add(p),tt.add(this.actualPointerSecondPosition()),tt.add(this.actualPointerStartPosition()),tt.add(this.actualPointerFirstPosition()),tt.add(y),this.pointerPoints(tt),this.ch()!=null&&this.ch().ag(tt),it=new t.cb(0),it.add(this.actualPointerSecondPosition()),it.add(this.actualPointerStartPosition()),it.add(this.actualPointerFirstPosition()),this.pointerOutlinePoints(it),this.ci()!=null&&this.ci().ag(it),this.pointerVisibility()==1)?new t.y(b,k):new t.y(rt,ut)},destroy:function(){this.unbind();this.ai().p()},render:function(n,i){this.ao()&&this.cj(new t.y(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY));this.ai().q(n,i)},_eventSink:null,eventSink:function(n){return arguments.length===1?(this._eventSink=n,n):this._eventSink},am:!1,bind:function(){this.am||this.eventSink()!=null&&this.ai().k()!=null&&(this.am=!0,this.eventSink().ae(this.ai().k(),"pointerTooltip"+this.getHashCode()))},unbind:function(){this.am&&(this.eventSink()!=null&&this.ai().k()!=null&&(this.am=!1,this.eventSink().ax(this.ai().k(),"pointerTooltip"+this.getHashCode())),this.eventSink(null))},_pointerTooltipStyle:null,pointerTooltipStyle:function(n){return arguments.length===1?(this._pointerTooltipStyle=n,n):this._pointerTooltipStyle},exportVisualData:function(){return this.ai().b()},$type:new n.ig.Type("PointerTooltip",t.$cf.$type,[t.$a8.$type])},!0);n.ig.util.defType("PointerTooltipView:up","Object",{init:function(i){this.d=!1;this.i=0;this.h=0;this.g=-1;this.f=-1;n.ig.$op.init.call(this);this.a(i);this.a().ch(new t.ca);this.a().ci(new t.cc);this.k(null)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},s:function(){var i=n(this.a().content()).clone(),r=new t.y(0,0),u=n("body");return this.m()==null&&(this.m(n('<div class="ui-chart-pointer-tooltip-container" style="position: absolute; visibility: hidden; top : 0; left : 0"><\/div>')),this.o(n('<div style="position: relative"><\/div>')),this.n(n('<div class="ui-chart-pointer-tooltip-content-container" style="position : absolute; top : 0; left : 0" /><\/div>')),this.m().append(this.o()),this.o().append(this.n())),this.m().remove(),u.append(this.m()),this.n().append(i),r=new t.y(this.n().outerWidth(!0),this.n().outerHeight(!0)),this.m().remove(),i.remove(),r},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},r:null,d:!1,i:0,h:0,q:function(i,r){var u=this,o,s,e,h,c,l,f,a,v;if(u.k()==null&&(u.k(n('<div class="ui-chart-pointer-tooltip-container" style="position : absolute; top : 0; left : 0"><\/div>')),o=n("<div><\/div>"),o.css("position","relative"),u.j(n('<canvas style="position : absolute; top : 0; left : 0" />')),u.l(n('<div class="ui-chart-pointer-tooltip-content-container" style="position : absolute; top : 0; left : 0" /><\/div>')),o.append(u.j()),o.append(u.l()),u.k().append(o),u.c(new t.bz(new t.dk,u.j()[0].getContext("2d"))),u.k().hide(),n("body").append(u.k())),u.a().bind(),u.a().__visibility==1&&u.d){u.k().hide();u.d=!1;return}if(s=null,u.a().content()!=null&&(s=n(u.a().content()),s.remove()),u.l().children().remove(),s!=null){var y=u.l()[0],w=u.a().actualBoxTopLeftPosition().__x.toString()+"px",b=u.a().actualBoxTopLeftPosition().__y.toString()+"px";y.style.left=w;y.style.top=b;u.l().append(s)}e=u.a().pointerTooltipStyle();h=1;e!=null&&(h=isNaN(e.b())?1:e.b());c=Math.ceil(u.a().actualBoxFullWidth()+h*2);l=Math.ceil(u.a().actualBoxFullHeight()+h*2);c!=u.i||l!=u.h?(u.j().attr("width",c.toString()),u.j().attr("height",l.toString()),u.i=c,u.h=l):u.c().i(0,0,u.i,u.h);f=new t.b1;f.width(u.a().actualBoxWidth());f.height(u.a().actualBoxHeight());f.l(u.a().actualBoxTopLeftPosition().__x);f.m(u.a().actualBoxTopLeftPosition().__y);e!=null?(f.__fill=e.c()!=null?e.c():function(){var n=new t.b3;return n.fill("white"),n}(),f.__stroke=e.d()!=null?e.d():function(){var n=new t.b3;return n.fill("black"),n}(),f.z(isNaN(e.b())?1:e.b()),f.ai(isNaN(e.a())?0:e.a()),f.aj(isNaN(e.a())?0:e.a())):(f.__fill=function(){var n=new t.b3;return n.fill("white"),n}(),f.__stroke=function(){var n=new t.b3;return n.fill("black"),n}(),f.z(1));u.r=f;a=u.a().ch();v=u.a().ci();a.__fill=f.__fill;v.__stroke=f.__stroke;u.c().t(f);u.c().r(a);u.c().s(v);var k=i+"px",d=r+"px",p=u.k();p[0].style.left=k;p[0].style.top=d;u.a().__visibility!=0||u.d||(u.k().show(),u.d=!0)},b:function(){var n=new t.g5;return n.pointerFillShape(new t.g7(1,"fillShape",this.a().ch())),n.pointerOutlineShape(new t.g8(1,"outlineShape",this.a().ci())),n.boxShape(new t.g6(1,"boxShape",this.r)),n.viewport(new t.x(0,0,0,this.a().actualBoxFullWidth(),this.a().actualBoxFullHeight())),n},g:0,f:0,e:function(){var i=this.g,r=this.f,n=this.s(new t.y(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY));return n.b()!=i||n.a()!=r?!0:!1},p:function(){this.k().hide();this.k().remove();this.k(null);this.m(null);this.o(null);this.n(null);this.k(null);this.j(null);this.l(null)},$type:new n.ig.Type("PointerTooltipView",n.ig.$ot)},!0);n.ig.util.defType("PointerTooltipStyle:fc","Object",{init:function(){n.ig.$op.init.call(this);this.b(NaN);this.a(NaN)},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("PointerTooltipStyle",n.ig.$ot)},!0);n.ig.util.defType("AxisLabelPanelBaseView:hf","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_ar:null,ar:function(n){return arguments.length===1?(this._ar=n,n):this._ar},init:function(i){this.aq=t.$x.empty();this.e=0;this.f=NaN;n.ig.$op.init.call(this);this.a(i)},y:function(i,r,u,f,e,o){var s=n.ig.util.cast(t.$b9.$type,i),c,l,a,h;s!=null&&(s.__visibility=0,r.width()==0&&r.height()==0&&(s.__visibility=1),c=r.height()-(f+o),l=r.width()-(u+e),s.l(r.left()+u),s.m(r.top()+f),l<0&&(l=0),c<0&&(c=0),s.j(c),s.k(l),s.h()!=null&&(a=s.h(),h=a.h().__inner[0],h.i(h.i()+s.l()),h.j(h.j()+s.m())))},ab:function(n){var t=n;t.h(null)},ae:function(){},af:function(){},ag:function(i,r){var h=this,f=n.ig.util.cast(t.$al.$type,i),e=0,o=0,u=new t.ee,s=function(){var n=new t.eh;return n.h(r),n.i(e),n.j(o),n}();u.h().add(s);f.h(u)},w:function(n,t){for(var r=n.aa().length,i=n.aa(),u=n.aa();this.t(n)>t&&r>0;)r--,i=i.substr(0,r)+"…",n.aa(i);return n.aa(u),i},ac:function(){for(var f=this.d(),u=f.getEnumerator(),i,r;u.moveNext();)i=u.current(),r=n.ig.util.cast(t.$al.$type,i),r!=null&&this.a().bt(r),this.a().bn(i)},d:function(){var n=this.a().aq(),t=this.a().ap();return this.a().z().bs()?t:n},i:function(){return this.e},k:function(n){return this.i(n)+this.o()+this.l()},ak:function(){var n=this;n.ar(function(){var n=new t.b6;return n.ak(new t.du),n.y(!1),n}())},j:function(n){var t=n;return t!=null&&t.aa()!=null?this.c().d(t.aa()):0},t:function(n){var t=n;return t!=null&&t.aa()!=null?this.j(n)+this.m()+this.n():0},aa:function(){this.a().a0(this.a().ac().extent())},ah:function(){this.ad();this.a().b7(new t.y(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY))},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},ai:function(n){this.c(n)},x:function(){if(!this.a().b3().isEmpty()){var n=this.a().ay;this.a().b6(new t.y(this.a().b3().width(),this.a().b3().height()));this.a().ay!=n&&(this.a().z().chart().gu(),this.aj())}},aj:function(){},aq:null,al:function(){var u,f,e,i,r;if(this.c()!=null&&this.c().c()){for(this.a().z().seriesViewer()!=null&&this.a().z().seriesViewer().actualPixelScalingRatio()!=1&&(this.c().x(),this.c().y(this.a().z().seriesViewer().actualPixelScalingRatio(),this.a().z().seriesViewer().actualPixelScalingRatio())),this.ad(),this.aq=this.a().b3(),u=this.a().z().chart().ky(),this.a().ac()!=null&&this.a().ac().textColor()!=null&&(u=this.a().ac().textColor()),f=this.d().getEnumerator();f.moveNext();)e=f.current(),i=n.ig.util.cast(t.$b9.$type,e),i!=null&&(i.ab(u),i.h()!=null&&(this.c().x(),this.c().h(i.h())),this.c().u(i),i.h()!=null&&this.c().w());this.am();u=this.ao();this.c().z(this.v());r=this.a().z().d5();r!=null&&(r.ab(u),r.h()!=null&&(this.c().x(),this.c().h(r.h())),this.c().u(r),r.h()!=null&&this.c().w());this.a().z().seriesViewer()!=null&&this.a().z().seriesViewer().actualPixelScalingRatio()!=1&&this.c().w()}},v:function(){var n=this.a().z().seriesViewer().es(),t;return this.a().z().titleSettings()!=null&&this.a().z().titleSettings().textStyle()!=null?n=this.a().z().titleSettings().textStyle():(t=this.a().z().seriesViewer().eq(),String.isNullOrEmpty(t)==!1&&(n=t)),n},ao:function(){var n=this.a().z().chart().ky(),t;return this.a().z().titleSettings()!=null&&this.a().z().titleSettings().textColor()!=null?n=this.a().z().titleSettings().textColor():(t=this.a().z().seriesViewer().kw(),t!=null&&(n=t)),n},u:null,ad:function(){if(this.c()!=null){var n=this.a().z().seriesViewer().es();this.a().ac()!=null&&this.a().ac().textStyle()!=null&&(n=this.a().ac().textStyle());this.u!=n&&this.an();this.c().z(n)}},e:0,an:function(){var i,n,r;if(this.a().z()!=null&&this.a().z().seriesViewer()!=null){if(this.a().ac()==null||this.a().ac().textStyle()==null){this.e=this.a().z().seriesViewer().a6().at();return}this.e==0&&(this.e=this.a().z().seriesViewer().a6().at());i=this.e;n=this.a().z().seriesViewer().es();this.a().ac()!=null&&this.a().ac().textStyle()!=null&&(n=this.a().ac().textStyle());r=t.$fj.b(n);this.e=r;i!=this.e&&this.a().z().seriesViewer().gu()}},f:0,g:function(){if(this.a().z().title()==null)return 0;if(!isNaN(this.f))return this.f;var n=this.v();return this.f=t.$fj.b(n),this.f},h:function(){var n=this.a().z().d5();return n!=null&&n.aa()!=null?(this.c().z(this.v()),this.c().d(n.aa())):0},am:function(){this.ar().__stroke=this.a().z().tickStroke()==null?this.a().z().chart().ku():this.a().z().tickStroke();this.ar().z(this.a().z().tickStrokeThickness());this.c().q(this.ar())},z:function(){},s:function(){return this.a().z().titleSettings()==null||isNaN(this.a().z().titleSettings().topMargin())?this.a().z().seriesViewer().lt().e():Math.max(0,this.a().z().titleSettings().topMargin())},p:function(){return this.a().z().titleSettings()==null||isNaN(this.a().z().titleSettings().bottomMargin())?this.a().z().seriesViewer().lt().b():Math.max(0,this.a().z().titleSettings().bottomMargin())},q:function(){return this.a().z().titleSettings()==null||isNaN(this.a().z().titleSettings().leftMargin())?this.a().z().seriesViewer().lt().c():Math.max(0,this.a().z().titleSettings().leftMargin())},r:function(){return this.a().z().titleSettings()==null||isNaN(this.a().z().titleSettings().rightMargin())?this.a().z().seriesViewer().lt().d():Math.max(0,this.a().z().titleSettings().rightMargin())},ap:function(){return n.ig.util.cast(t.$du.$type,this.ar().ak()).c()},b:function(){var i=this,u=function(){var n=new t.hk;return n.d(i.a().z().tickStroke()),n.b(i.a().z().tickStrokeThickness()),n}(),r;return i.a().z()!=null&&n.ig.util.cast(t.$bd.$type,i.a().z().chart())!==null&&(r=i.a().z().chart(),r.alignsGridLinesToPixels()&&r.a4()!=2&&r.a4()!=1&&u.a(!0)),u},o:function(){return this.a().ac()==null?0:Math.max(0,this.a().ac().topMargin())},m:function(){return this.a().ac()==null?0:Math.max(0,this.a().ac().leftMargin())},n:function(){return this.a().ac()==null?0:Math.max(0,this.a().ac().rightMargin())},l:function(){return this.a().ac()==null?0:Math.max(0,this.a().ac().bottomMargin())},$type:new n.ig.Type("AxisLabelPanelBaseView",n.ig.$ot)},!0);n.ig.util.defType("AngleAxisLabelPanelView:jp","AxisLabelPanelBaseView",{_as:null,as:function(n){return arguments.length===1?(this._as=n,n):this._as},init:function(n){t.$hf.init.call(this,n);this.as(n)},ak:function(){t.$hf.ak.call(this);this.as().b9(!0)},at:function(n){var i,h;for(this.as().cd(-Number.MAX_VALUE),this.as().ca(-Number.MAX_VALUE),this.as().cc(-Number.MAX_VALUE),this.as().cb(-Number.MAX_VALUE),i=0;i<this.a().at().count();i++){var f=this.a().at().__inner[i],c=this.a().ar().__inner[i],e=this.as().cf()(c.a()),o=this.j(f),s=this.i(f),r=o+this.m()+this.n(),u=s+this.o()+this.l(),l=e.__x-r/2,a=e.__y-u/2;this.as().cc(Math.max(o,this.as().cc()));this.as().cb(Math.max(s,this.as().cb()));this.as().cd(Math.max(r,this.as().cd()));this.as().ca(Math.max(u,this.as().ca()));h=new t.x(0,l,a,r,u);n.add(h)}},l:function(){return 0},m:function(){return 0},n:function(){return 0},o:function(){return 0},$type:new n.ig.Type("AngleAxisLabelPanelView",t.$hf.$type)},!0);n.ig.util.defType("AxisLabelPanelBase:he","Panel",{aa:function(){return new t.hf(this)},bu:function(){},_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},init:function(){this.ay=50;t.$fp.init.call(this);this.b4(t.$x.empty());this.b3(t.$x.empty());this.ab(this.aa());this.bu(this.ab());this.ab().ak();this.at(new t.bh(t.$al.$type,0));this.ar(new t.bh(t.$h7.$type,0));this.aw(new t.bh(t.$x.$type,0));this.al(!1);this.ak(!1);this.am(!1);this.ai(!1)},_bd:0,bd:function(n){return arguments.length===1?(this._bd=n,n):this._bd},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_as:null,as:function(n){return arguments.length===1?(this._as=n,n):this._as},_ar:null,ar:function(n){return arguments.length===1?(this._ar=n,n):this._ar},_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},_b3:null,b3:function(n){return arguments.length===1?(this._b3=n,n):this._b3},_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},ax:0,az:function(n){return arguments.length===1?(this.ax=n,n):this.ax},_at:null,at:function(n){return arguments.length===1?(this._at=n,n):this._at},_aw:null,aw:function(n){return arguments.length===1?(this._aw=n,n):this._aw},_ac:null,ac:function(n){return arguments.length===1?(this._ac=n,n):this._ac},_ai:!1,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_ak:!1,ak:function(n){return arguments.length===1?(this._ak=n,n):this._ak},_al:!1,al:function(n){return arguments.length===1?(this._al=n,n):this._al},_am:!1,am:function(n){return arguments.length===1?(this._am=n,n):this._am},_bf:null,bf:function(n){return arguments.length===1?(this._bf=n,n):this._bf},_ag:!1,ag:function(n){return arguments.length===1?(this._ag=n,n):this._ag},ah:function(n){for(var i,t=0;t<n.count()-1;t++)for(i=t;i<n.count()-1;i++)if(n.__inner[t].intersectsWith(n.__inner[i+1]))return!0;return!1},be:function(n,t){return{ret:0,rectangles:t}},au:function(){return null},bm:function(){},bi:function(){},a3:function(){return this.ac()!=null?this.ac().angle():0},a7:function(){return this.z().titleSettings()!=null?this.z().titleSettings().angle():0},aj:function(n){if(n==0&&!this.z().isAngular()&&this.ac()!=null)if(this.z().isVertical()){if(!this.ac().showFirstLabel()&&this.z().seriesViewer().getActualWindowScaleVertical()==1)return!1}else if(!this.ac().showFirstLabel()&&this.z().seriesViewer().getActualWindowScaleHorizontal()==1)return!1;return!0},a2:function(n){return this.ab().j(n)},bc:function(n){return this.ab().t(n)},a4:function(n){return this.ab().k(n)},a1:function(n){return this.ab().i(n)},av:function(){if(this.y().count()<1||this.ar().count()==0)return new t.bh(t.$x.$type,0);this.at(new t.bh(t.$al.$type,0));this.aw(new t.bh(t.$x.$type,0));this.bm();this.ab().ac();var n=this.a3();return(n%360==0&&this.ak(!1),this.at().count()==0)?new t.bh(t.$x.$type,0):(this.aw(this.au()),this.aw())},a6:function(n,t){var i=n*(3.14159265358979/180);return Math.abs(t.b()*Math.cos(i))+Math.abs(t.a()*Math.sin(i))},a5:function(n,t){var i=n*(3.14159265358979/180);return Math.abs(t.a()*Math.cos(i))+Math.abs(t.b()*Math.sin(i))},ba:function(){return this.ab().h()},a8:function(){return this.ab().g()},a9:function(){if(this.z().title()==null)return 0;var n=this.a8(),i=this.ba(),r=new t.x(0,0,0,i,n),u=this.a7(),f=r.rotateAboutCenter(u);return f.height()+this.ab().s()+this.ab().p()},bb:function(){if(this.z().title()==null)return 0;var n=this.a8(),i=this.ba(),r=new t.x(0,0,0,i,n),u=this.a7(),f=r.rotateAboutCenter(u);return f.width()+this.ab().q()+this.ab().r()},b6:function(n){var r,i;if(this.z()==null||this.y().count()==0||(this.bl(n),this.bo(),this.bk(n),this.aw(this.av()),this.at().count()!=this.aw().count()))return n;var u=this.ab().m(),f=this.ab().o(),e=this.ab().n(),o=this.ab().l();if(this.ak())for(r=0;r<this.at().count();r++)this.aj(r,this.aw().__inner[r])&&this.ab().y(this.at().__inner[r],this.aw().__inner[r],u,f,e,o),this.bx(this.at().__inner[r],this.a3());for(i=0;i<this.at().count();i++)this.ak()||this.ab().ab(this.at().__inner[i]),this.aj(i,this.aw().__inner[i])?this.ab().y(this.at().__inner[i],this.aw().__inner[i],u,f,e,o):this.ab().y(this.at().__inner[i],new t.x(0,0,0,0,0),u,f,e,o);return this.bi(n),n},b2:function(){return t.$x.empty()},bl:function(){if(this.z().d5()!=null){this.ab().af(this.z().d5(),new t.y(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY));var u=Math.abs(this.a7()-0)>1e-6,n=this.b2(),f=n.left()+n.width()/2,e=n.top()+n.height()/2,i=this.ba()+this.ab().q()+this.ab().r(),r=this.a8()+this.ab().s()+this.ab().p(),o=i/2,s=r/2,h=new t.x(0,f-o,e-s,i,r);u?this.by(this.z().d5()):this.ab().ab(this.z().d5());this.ab().y(this.z().d5(),h,this.ab().q(),this.ab().s(),this.ab().r(),this.ab().p())}},bk:function(n){this.ab().z(n)},bo:function(){},ao:function(){var r,i,u,f;if(n.ig.util.cast(t.$hb.$type,this.z())!==null)return this.z().ft();if(n.ig.util.cast(t.$hl.$type,this.z())!==null){for(r=new t.bh(Number,0),i=0;i<this.z().actualTickmarkValues().h().length;i++)u=this.z().actualTickmarkValues().h()[i],f=new t.iu(this.z().seriesViewer().windowRect(),this.z().fb(),this.z().bf()),r.add(this.z().getScaledValue(u,f));return r}return null},ad:function(){var n=this.ac()!=null?this.ac().c():this.ae();return this.z().crossingAxis()==null&&(n==4?n=5:n==5?n=4:n==6?n=7:n==7&&(n=6)),n},b0:function(i,r,u,f,e,o){if(r>=e.left()&&r<=e.right()){o.a()&&(r=this.z().bz(r,e.left(),e.right(),o));var s=new t.dz;s.c({__x:r,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s.b({__x:r,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add(s)}},br:function(i,r,u,f,e,o){if(r<=e.bottom()&&r>=e.top()){o.a()&&(r=this.z().bz(r,e.top(),e.bottom(),o));var s=new t.dz;s.c({__x:u,__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s.b({__x:f,__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add(s)}},bx:function(n){var t=this.a3();this.ab().ag(n,t)},by:function(n){var t=this.a7();this.bq(n,t)},bq:function(i,r){var u=this,e=n.ig.util.cast(t.$al.$type,i),o=u.a8(),s=u.ba(),h=.5*s,c=.5*o,l=function(){var n=new t.eh;return n.h(r),n.i(h),n.j(c),n}(),f=new t.ee;f.h().add(l);e.h(f)},b7:function(){for(var r=this.y().getEnumerator(),u,i,n;r.moveNext();)u=r.current(),this.ab().ae(u);return i=this.z()==null||this.ay<=0||isNaN(this.ay)?50:this.ay,this.z()!=null&&(this.z().bw()==null||this.z().bw().count()==0)&&this.ac()!=null&&!isNaN(this.ac().extent())&&this.z().a9()&&(i=this.ac().extent()),n=new t.y(i,i),Number.isInfinity(n.b())&&n.b(50),Number.isInfinity(n.a())&&n.a(50),n},a0:function(n){return arguments.length===1?(this.g(t.$he.b1,n),n):this.c(t.$he.b1)},ay:0,af:function(n){return n==null?this.z().seriesViewer().af(this.z()):n.position()==0?this.z()!=null&&this.z().seriesViewer()!=null?this.z().seriesViewer().af(this.z()):4:n.position()},ae:function(){return 1},an:function(){return!0},ap:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.y().getEnumerator();this.$state=7;break;case 2:this.$a=this.$b.current();this.$state=3;break;case 3:this.$state=this.$a!=this.$this.z().d5()&&this.$a!=this.$this.ab().ar()?4:6;break;case 4:return this.$current=this.$a,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$state=this.$b.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(n.ig.$op.$type,i)},bh:function(n,t,i){return this.ab().w(t,i)},bn:function(n){(this.bf()==null||this.a2(this.bf())<this.a2(n))&&this.bf(n)},bt:function(n){this.at().add(n)},aq:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$a=0;this.$state=5;break;case 2:return this.$current=this.$this.z().a2().item(this.$a),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$a++;this.$state=5;break;case 5:this.$state=this.$a<this.$this.z().a2().c()?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(n.ig.$op.$type,i)},bp:function(){this.bz()},bz:function(){this.aw(this.av())},bs:function(){this.ab().ah()},bv:function(n){this.ab().ai(n)},bj:function(){this.ab().x()},bw:function(){this.ab().al()},$type:new n.ig.Type("AxisLabelPanelBase",t.$fp.$type)},!0);n.ig.util.defType("AngleAxisLabelPanel:jo","AxisLabelPanelBase",{aa:function(){return new t.jp(this)},bu:function(n){t.$he.bu.call(this,n);this.b8(n)},_b8:null,b8:function(n){return arguments.length===1?(this._b8=n,n):this._b8},init:function(){t.$he.init.call(this)},_b9:!1,b9:function(n){return arguments.length===1?(this._b9=n,n):this._b9},_cf:null,cf:function(n){return arguments.length===1?(this._cf=n,n):this._cf},aj:function(n,i){return i.isPlottable1()?this.z()==null||this.z().fb().isEmpty()?t.$he.aj.call(this,n,i):!0:!1},_cd:0,cd:function(n){return arguments.length===1?(this._cd=n,n):this._cd},_ca:0,ca:function(n){return arguments.length===1?(this._ca=n,n):this._ca},_cc:0,cc:function(n){return arguments.length===1?(this._cc=n,n):this._cc},_cb:0,cb:function(n){return arguments.length===1?(this._cb=n,n):this._cb},au:function(){var n=new t.bh(t.$x.$type,0),r,i;if(this.at().count()!=this.ar().count())return n;if(this.b8().at(n),r=!1,this.ai(this.ah(n)),this.z().a9()?(r=!0,this.b8().aa()):(r=!0,this.a0(this.cd()/2),this.a0(this.a0()+this.ce())),r)for(i=0;i<n.count();i++){var f=this.at().__inner[i],o=this.ar().__inner[i],u=n.__inner[i],e=this.cf()(o.a()),s=e.__x-this.a2(f)/2,h=e.__y-this.a1(f)/2;u.x(s);u.y(h);n.__inner[i]=u}return n},ce:function(){var s=this,f,i,e,r,u,o;return(i=s.z(),f=null,i!=null&&(f=n.ig.util.cast(t.$bd.$type,i.seriesViewer())),f==null||i==null)?0:(e=f.axes().where$1(t.$hc.$type,function(r){return(n.ig.util.cast(t.$jl.$type,r)!==null||n.ig.util.cast(t.$jr.$type,r)!==null)&&n.ig.util.cast(t.$jo.$type,r.aj())!==null&&n.ig.util.cast(t.$jo.$type,r.aj()).at().count()>0&&!r.a9()&&!r.a8()&&(r.crossingAxis()==null||s.z().crossingAxis()==null||n.ig.util.cast(t.$i7.$type,r.crossingAxis()).g7()==n.ig.util.cast(t.$i7.$type,i.crossingAxis()).g7())}).toList$1(t.$hc.$type),r=e.indexOf(i),r==-1)?0:(u=0,o=5,r==0?u+=o:(u+=e.__inner[r-1].aj().a0(),u+=e.__inner[r].aj().a0()*2+o),u)},ae:function(){return 4},an:function(n){return n==4||n==5},$type:new n.ig.Type("AngleAxisLabelPanel",t.$he.$type)},!0);n.ig.util.defType("AutoRangeCalculator:ip","Object",{init:function(){n.ig.$op.init.call(this)},b:function(n){return n.fb().width()},a:function(n){return n.fb().height()},c:function(i,r,u,f,e,o,s){var v,y,l,a,h,c,p,w,b,k;return o=!isNaN(r)&&!Number.isInfinity(r)?r:Number.POSITIVE_INFINITY,s=!isNaN(u)&&!Number.isInfinity(u)?u:Number.NEGATIVE_INFINITY,(Number.isInfinity(o)||Number.isInfinity(s))&&i!=null&&(v=i.fi(),v!=null&&(o=Math.min(o,v.c()),s=Math.max(s,v.b()))),Number.isInfinity(o)||Number.isInfinity(s)||(o==s&&o!=0&&(o*=o>0?.9:1.1,s*=s>0?1.1:.9),o==s&&o==0&&(s=1),r>u&&(y=u,u=r,r=y),l=isNaN(r)||Number.isInfinity(r)?o:r,a=isNaN(u)||Number.isInfinity(u)?s:u,f?(l<=0&&(l=a>1?1:Math.pow(e,Math.floor(Math.logBase(a,e)))),o=isNaN(r)||Number.isInfinity(r)?Math.pow(e,Math.floor(Math.logBase(l,e))):l,s=isNaN(u)||Number.isInfinity(u)?Math.pow(e,Math.ceil(Math.logBase(a,e))):a):(h=Math.pow(10,Math.floor(Math.log10(a-l))-1),c=t.$ip.b(i),n.ig.util.cast(t.$iq.$type,i)!==null&&(c=t.$ip.a(i)),n.ig.util.cast(t.$i7.$type,i)!==null&&c>0&&(p=i.g7(),w=i.g6(),c=Math.min(t.$ip.b(i),t.$ip.a(i))*(p-w)/2,c=Math.max(c,14)),i!=null&&c>0&&!i.hasUserMinimum()&&!i.hasUserMaximum()&&(b=new t.ik(0,o,s,c),h=b.e()),o=!(isNaN(r)||Number.isInfinity(r))||isNaN(o)||isNaN(h)||h==0?l:h*Math.floor(o/h),!(isNaN(u)||Number.isInfinity(u))||isNaN(s)||isNaN(h)||h==0?s=a:(k=Math.ceil(s/h),s=h*k))),{minimumValue:o,maximumValue:s}},$type:new n.ig.Type("AutoRangeCalculator",n.ig.$ot)},!0);n.ig.util.defType("Axis:hc","Control",{ap:function(){return new t.hd(this)},_aq:null,aq:function(n){return arguments.length===1?(this._aq=n,n):this._aq},dl:function(){},isCategory:function(){return!1},isNumeric:function(){return!1},isAngular:function(){return!1},isRadial:function(){return!1},isVertical:function(){return!1},isSorting:function(){return!1},isDateTime:function(){return!1},init:function(){var i=this;this.e9=t.$x.empty();this.a5=!1;this.a4=!1;this.ae=new t.j0;this.ak=new t.hg;t.$ak.init.call(this);this.aq(this.ap());this.dl(this.aq());this.aq().ad();this.a2(function(){var n=new t.ga(t.$b9.$type);return n.create(i.aq().at.runOn(i.aq())),n.activate(i.aq().am.runOn(i.aq())),n.disactivate(i.aq().ao.runOn(i.aq())),n.destroy(i.aq().an.runOn(i.aq())),n}());this.fa(t.$x.empty());this.bx(new t.bh(n.ig.$op.$type,0));this.bv(new t.bh(t.$h7.$type,0));this.aj(this.ai());this.aj().ac(this.labelSettings());this.aj().z(this);this.bw(new t.bh(t.$aj.$type,0));this.y(t.$hc.$type);this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,function(n,t){return i.dn(n,t.propertyName(),t.oldValue(),t.newValue())});this.a3=function(n,t){return i.d3(t.oldRect(),t.newRect())};this.aq().s();this.da();this.aj().ac(this.labelSettings())},formatLabel:function(n){return arguments.length===1?(this.g(t.$hc.formatLabelProperty,n),n):this.c(t.$hc.formatLabelProperty)},di:function(n,t){n.equals(t)||this.d2(n,t)},ai:function(){},onApplyTemplate:function(){t.$ak.z.call(this);this.aq().af()},_rootCanvas:null,rootCanvas:function(n){return arguments.length===1?(this._rootCanvas=n,n):this._rootCanvas},at:function(n){if(arguments.length===1){if(this.at()!=n){var t=this.at();this.as=n;this.dq("FastItemsSourceProvider",t,this.as)}return n}return this.as},as:null,seriesViewer:function(n){if(arguments.length===1){if(this.seriesViewer()!=n){var t=this.seriesViewer();this.a0=n;this.dq("SeriesViewer",t,this.a0)}return n}return this.a0},a0:null,chart:function(i){return arguments.length===1?(this.seriesViewer(i),i):n.ig.util.cast(t.$bd.$type,this.seriesViewer())},a3:null,_d5:null,d5:function(n){return arguments.length===1?(this._d5=n,n):this._d5},title:function(n){return arguments.length===1?(this.g(t.$hc.titleProperty,n),n):this.c(t.$hc.titleProperty)},stroke:function(n){return arguments.length===1?(this.g(t.$hc.strokeProperty,n),n):this.c(t.$hc.strokeProperty)},actualStroke:function(n){return arguments.length===1?(this.g(t.$hc.actualStrokeProperty,n),n):this.c(t.$hc.actualStrokeProperty)},strokeThickness:function(n){return arguments.length===1?(this.g(t.$hc.strokeThicknessProperty,n),n):this.c(t.$hc.strokeThicknessProperty)},strokeDashArray:function(n){return arguments.length===1?(this.g(t.$hc.strokeDashArrayProperty,n),n):this.c(t.$hc.strokeDashArrayProperty)},strip:function(n){return arguments.length===1?(this.g(t.$hc.stripProperty,n),n):this.c(t.$hc.stripProperty)},majorStroke:function(n){return arguments.length===1?(this.g(t.$hc.majorStrokeProperty,n),n):this.c(t.$hc.majorStrokeProperty)},actualMajorStroke:function(n){return arguments.length===1?(this.g(t.$hc.actualMajorStrokeProperty,n),n):this.c(t.$hc.actualMajorStrokeProperty)},majorStrokeThickness:function(n){return arguments.length===1?(this.g(t.$hc.majorStrokeThicknessProperty,n),n):this.c(t.$hc.majorStrokeThicknessProperty)},majorStrokeDashArray:function(n){return arguments.length===1?(this.g(t.$hc.majorStrokeDashArrayProperty,n),n):this.c(t.$hc.majorStrokeDashArrayProperty)},minorStroke:function(n){return arguments.length===1?(this.g(t.$hc.minorStrokeProperty,n),n):this.c(t.$hc.minorStrokeProperty)},actualMinorStroke:function(n){return arguments.length===1?(this.g(t.$hc.actualMinorStrokeProperty,n),n):this.c(t.$hc.actualMinorStrokeProperty)},minorStrokeThickness:function(n){return arguments.length===1?(this.g(t.$hc.minorStrokeThicknessProperty,n),n):this.c(t.$hc.minorStrokeThicknessProperty)},minorStrokeDashArray:function(n){return arguments.length===1?(this.g(t.$hc.minorStrokeDashArrayProperty,n),n):this.c(t.$hc.minorStrokeDashArrayProperty)},tickStroke:function(n){return arguments.length===1?(this.g(t.$hc.tickStrokeProperty,n),n):this.c(t.$hc.tickStrokeProperty)},tickStrokeThickness:function(n){return arguments.length===1?(this.g(t.$hc.tickStrokeThicknessProperty,n),n):this.c(t.$hc.tickStrokeThicknessProperty)},tickStrokeDashArray:function(n){return arguments.length===1?(this.g(t.$hc.tickStrokeDashArrayProperty,n),n):this.c(t.$hc.tickStrokeDashArrayProperty)},tickLength:function(n){return arguments.length===1?(this.g(t.$hc.tickLengthProperty,n),n):this.c(t.$hc.tickLengthProperty)},_by:0,by:function(n){return arguments.length===1?(this._by=n,n):this._by},dy:function(){if(this.tickLength()>0){this.by(this.tickLength());return}var i=n.ig.util.cast(t.$bd.$type,this.seriesViewer());if(i!=null&&isNaN(this.tickLength())&&this.isCategory()&&(this.isVertical()||this.an()==0)){this.by(i.l6().eg());return}this.by(0)},isDisabled:function(n){return arguments.length===1?(this.g(t.$hc.isDisabledProperty,n),n):this.c(t.$hc.isDisabledProperty)},isInverted:function(n){return arguments.length===1?(this.g(t.$hc.isInvertedProperty,n),n):this.c(t.$hc.isInvertedProperty)},_bf:!1,bf:function(n){return arguments.length===1?(this._bf=n,n):this._bf},labelSettings:function(n){return arguments.length===1?(this.g(t.$hc.labelSettingsProperty,n),n):this.c(t.$hc.labelSettingsProperty)},labelPanelStyle:function(n){return arguments.length===1?(this.g(t.$hc.labelPanelStyleProperty,n),n):this.c(t.$hc.labelPanelStyleProperty)},crossingAxis:function(n){return arguments.length===1?(this.g(t.$hc.crossingAxisProperty,n),n):this.c(t.$hc.crossingAxisProperty)},crossingValue:function(n){return arguments.length===1?(this.g(t.$hc.crossingValueProperty,n),n):this.c(t.$hc.crossingValueProperty)},rangeChanged:null,dr:function(n){this.rangeChanged!=null&&this.rangeChanged(this,n)},titleSettings:function(n){return arguments.length===1?(this.g(t.$hc.titleSettingsProperty,n),n):this.c(t.$hc.titleSettingsProperty)},e9:null,fb:function(n){return arguments.length===1?(this.e9=n,n):this.fa().isEmpty()?this.e9:this.fa()},_fa:null,fa:function(n){return arguments.length===1?(this._fa=n,n):this._fa},dz:function(){var i=0,r=n.ig.util.cast(t.$bd.$type,this.seriesViewer());r!=null&&r.gridMode()==0&&(i=1);this.aq().ar(i)},bt:function(){return this.seriesViewer()!=null},bj:function(){var n=t.$x.empty();return this.seriesViewer()!=null&&(n=this.seriesViewer().windowRect()),this.bt(this.fb(),n,this.aq())},_bx:null,bx:function(n){return arguments.length===1?(this._bx=n,n):this._bx},_bv:null,bv:function(n){return arguments.length===1?(this._bv=n,n):this._bv},_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},d2:function(n,t){this.fb(t);this.bl(!0);this.updateRange();this.du(!1);this.seriesViewer()!=null&&this.seriesViewer().ah().z(1,this,this.ar(),t)},a5:!1,bl:function(n){return arguments.length===1?(this.a5=n,n):this.a5},d3:function(){this.bl(!0);this.du(!0)},ds:function(){this.du(!1)},_ar:null,ar:function(n){return arguments.length===1?(this._ar=n,n):this._ar},dn:function(i,r,u,f){var e,o,a,l,h,c,s;switch(r){case"SeriesViewer":e=n.ig.util.cast(t.$be.$type,u);e!=null&&(e.windowRectChanged=n.ig.Delegate.prototype.remove(e.windowRectChanged,this.a3),e.ah().y(1,this),this.aq().x(e));o=n.ig.util.cast(t.$be.$type,f);o!=null&&(o.windowRectChanged=n.ig.Delegate.prototype.combine(o.windowRectChanged,this.a3),this.ar(o.ah().i(1,this,this.de.runOn(this))),this.aq().r(o),this.bm()&&!this.ar().e()&&(this.bm(!1),this.updateRange()),this.dx(),this.dy());break;case"IsDisabled":this.du(!1);break;case"IsInverted":for(this.bf(this.isInverted()),a=new t.il(0,0,1,1),this.dd(a),l=this.bw().getEnumerator();l.moveNext();)h=l.current(),h.gs(),h.seriesViewer()!=null&&h.gy();break;case"Label":n.ig.util.cast(t.$cg.$type,f)!==null?this.bs(!0):this.bs(!1);this.bl(!0);this.dw();this.du(!1);break;case"MajorStrokeThickness":case"MinorStrokeThickness":case"StrokeThickness":this.du(!1);break;case"LabelPanelStyle":this.aq().ae(f);this.du(!1);break;case"LabelSettings":c=n.ig.util.cast(t.$hg.$type,f);c!=null?(c.registerAxis(this),this.ak=c):this.ak=new t.hg;this.aj()!=null&&this.aj().ac(this.ak);this.aq().k()&&this.aq().t(this.ak);this.bl(!0);this.du(!1);break;case"Title":this.aq().ag();break;case"TitleSettings":s=n.ig.util.cast(t.$i2.$type,f);s!=null?s.registerAxis(this):s=new t.i2;this.d5()!=null&&this.d5().dataContext(s);this.aq().ag();this.du(!1);break;case"TickLength":this.bl(!0);this.dy();this.aq().aa();this.du(!1);break;case"CrossingAxis":this.seriesViewer()!=null&&this.seriesViewer().gu();break;case"MinorStroke":this.dx();f!=null?(this.bo(!0),this.du(!1)):this.bo(!1);break;case"Stroke":case"MajorStroke":this.dx();this.du(!1);break;case"StrokeDashArray":case"MajorStrokeDashArray":case"MinorStrokeDashArray":case"FormatLabel":case"TickStroke":case"TickStrokeThickness":case"TickStrokeDashArray":case"ActualStroke":case"ActualMajorStroke":case"ActualMinorStroke":this.du(!1)}},_coercionMethods:null,coercionMethods:function(n){return arguments.length===1?(this._coercionMethods=n,n):this._coercionMethods},a4:!1,expectFunctions:function(n){return arguments.length===1?(this.a4=n,n):this.a4},_bo:!1,bo:function(n){return arguments.length===1?(this._bo=n,n):this._bo},dw:function(){this.a2().c(0);this.aq().k()&&this.aq().aj()},_bs:!1,bs:function(n){return arguments.length===1?(this._bs=n,n):this._bs},dk:function(n,i,r,u){var f=Math.min(i,r),o=Math.max(i,r),e;f<u.bottom()&&o>u.top()&&(e=new t.d0,e.d(new t.x(0,u.left(),f,u.width(),o-f)),n.add(e))},dj:function(i,r,u,f){if(r<=u.bottom()&&r>=u.top()){f.a()&&(r=this.bz(r,u.top(),u.bottom(),f));var e=new t.dz;e.c({__x:u.left(),__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});e.b({__x:u.right(),__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add(e)}},d1:function(n,i,r,u){var f=Math.min(i,r),o=Math.max(i,r),e;o>u.left()&&f<u.right()&&(e=new t.d0,e.d(new t.x(0,f,u.top(),o-f,u.height())),n.add(e))},d0:function(i,r,u,f){if(r>=u.left()&&r<=u.right()){f.a()&&(r=this.bz(r,u.left(),u.right(),f));var e=new t.dz;e.c({__x:r,__y:u.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});e.b({__x:r,__y:u.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add(e)}},bz:function(n,t,i,r){var u=n,f,e;return r!=null&&r.b()>0&&(f=r.b()%2,(f==0||f==1)&&(e=1,u=Math.floor(n),u+.5<n&&(e=-1,u=Math.ceil(n)),f==1&&(u+=.5*e),u>=i?u-=1:u<=t&&(u+=1))),u},dc:function(n){this.aq().w(n)},db:function(){this.a2().c(0);this.aq().u();this.bx().clear();this.bv().clear()},renderAxis:function(){this.du(!1)},du:function(n){if(this.seriesViewer()!=null&&(this.seriesViewer().ah().x(1,this,this.ar(),n),this.renderRequested!=null)){var i=new t.s2;i.animate(n);this.renderRequested(this,i);n=i.animate()}},renderRequested:null,de:function(n){var i,r,u;this.aq().j()||(i=0,this.bv()!=null&&this.bv().count()>0&&(i=this.bv().last$1(t.$h7.$type).a()),this.dv(n),r=1,this.bv()!=null&&this.bv().count()>0&&(r=this.bv().last$1(t.$h7.$type).a()),u=!1,(r!=i||this.bl())&&(this.bl(!1),this.aq().k()&&(this.aq().aa(),u=!0)),this.aq().z(),u||this.df())},df:function(){this.aq().k()&&(this.a9()||this.aq().y())},_bm:!1,bm:function(n){return arguments.length===1?(this._bm=n,n):this._bm},updateRange:function(){return this.updateRange1(!1)},updateRange1:function(n){if(n||this.seriesViewer()==null){var t=this.br();return t&&this.bl(!0),this.bm(!1),t}return this.bm()||(this.bm(!0),this.seriesViewer().ah().w(this,this.ar())),!1},br:function(){return!1},dv:function(){},dx:function(){var i=n.ig.util.cast(t.$bd.$type,this.seriesViewer()),s,u,h,f;if(i!=null){var r=null,e=null,o=null;if(this.isCategory()&&!this.isAngular()){for(r=i.defaultAxisStroke(),s=this.bw().getEnumerator();s.moveNext();)if(u=s.current(),u.isScatter()||u.isRadial()||u.isPolar()||u.isRadial()){e=i.defaultAxisMajorStroke();o=i.defaultAxisMinorStroke();break}}else if(this.isNumeric()&&!this.isAngular()){for(e=i.defaultAxisMajorStroke(),o=i.defaultAxisMinorStroke(),r=this.crossingAxis()!=null?i.defaultAxisStroke():null,h=this.bw().getEnumerator();h.moveNext();)if(f=h.current(),f.isScatter()||f.isRadial()||f.isPolar()||f.isRadial()){r=i.defaultAxisStroke();break}}else(this.isAngular()||this.an()==3)&&(r=i.defaultAxisStroke(),e=i.defaultAxisMajorStroke(),o=i.defaultAxisMinorStroke());this.actualStroke(this.stroke()!=null?this.stroke():r);this.actualMajorStroke(this.majorStroke()!=null?this.majorStroke():e);this.actualMinorStroke(this.minorStroke()!=null?this.minorStroke():o)}},propertyChanged:null,propertyUpdated:null,dq:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},_bw:null,bw:function(n){return arguments.length===1?(this._bw=n,n):this._bw},registerSeries:function(n){var t=this.bw().contains(n);return t||this.bw().add(n),this.dx(),!t},deregisterSeries:function(n){var t=this.bw().contains(n);return t&&this.bw().remove(n),this.dx(),t},label:function(n){return arguments.length===1?(this.g(t.$hc.labelProperty,n),n):this.c(t.$hc.labelProperty)},cd:function(n){return this.aq().l(n)},getScaledValue:function(){return 0},getScaledValue1:function(n,i,r){var u=new t.iu(i,r,this.isInverted());return this.getScaledValue(n,u)},getScaledValueList:function(){},getUnscaledValue:function(){return 0},getUnscaledValue1:function(n,i,r){var u=new t.iu(i,r,this.isInverted());return this.getUnscaledValue(n,u)},getUnscaledValueList:function(){},scaleValue:function(n){var i=new t.iu(this.seriesViewer().windowRect(),this.fb(),this.isInverted());return i.b=this.seriesViewer().effectiveViewport(),this.getScaledValue(n,i)},an:function(){},_fg:null,fg:function(n){return arguments.length===1?(this._fg=n,n):this._fg},dm:function(){this.fa(new t.x(0,0,0,this.fg().b(),this.fg().a()))},ae:null,af:function(){return this.ae.a(this.aj()),this.ae},a9:function(){return this.labelSettings()==null?!1:this.labelSettings().h()},da:function(){this.aq().q()},dd:function(n){this.dr(n)},_a2:null,a2:function(n){return arguments.length===1?(this._a2=n,n):this._a2},fc:function(){return this.ag().a()},fd:function(){return this.ag().b()},ff:function(){return this.aq().c().d()},fe:function(){return this.ag().c()},av:function(){return t.$oq.a(this.a0)},ag:function(){return this.aq().c()},ak:null,al:function(){return this.ak},dp:function(n,t){this.aj()!=null&&this.aj().bv(n);this.aq().ac(n,t)},a8:function(){return!1},ay:function(n,i,r){var f=new t.s3,s=this.aq().az(),o;f.viewport(s);o=this.aq().a0(r);f.textPlotArea(o);var h=r.__visibility==0&&r.u()!=null,c=this.aj().ab().v(),e=this.aq().a6(r),l=t.$fj.a(r,c),u=t.$gk.fromTextElement(r,l);return u.marginLeft(e.c()),u.marginRight(e.d()),u.marginTop(e.e()),u.marginBottom(e.b()),u.fontStretch("Normal"),u.textWrapping("Wrap"),u.visibility(h),this.titleSettings()!=null&&(u.horizontalAlignment(this.titleSettings().horizontalAlignment().toString()),u.verticalAlignment(this.titleSettings().verticalAlignment().toString()),u.textPosition(this.titleSettings().position().toString())),f.appearance(u),f},exportVisualData:function(){var i=this,r=new t.s5,a,l,v,y,w,b,s,f,e,o,u,p,c;for(r.viewport(i.fb()),r.labelsViewport(i.aq().az()),r.type(i.getType().typeName()),r.name(i.name()),r.axisLine(new t.me(1,"axisLine",i.aq().a1())),r.tickMarks(new t.me(1,"tickMarks",i.aj().ab().ar())),r.minorLines(new t.me(1,"minorLines",i.aq().a3())),r.majorLines(new t.me(1,"majorLines",i.aq().a2())),r.strips(new t.me(1,"strips",i.aq().a4())),i.title()!=null?(a=i.ay(i.seriesViewer(),r.type(),i.d5()),r.title(a)):r.title(null),l=i.seriesViewer().es(),i.labelSettings()!=null&&i.labelSettings().textStyle()!=null&&(l=i.labelSettings().textStyle()),s=n.ig.util.cast(t.$du.$type,i.aj().ab().ar().ak()).c(),f=1;f<s.count();f++)e=n.ig.util.cast(t.$dz.$type,s.__inner[f]),o=n.ig.util.cast(t.$dz.$type,s.__inner[f-1]),v=e.c().__x-e.b().__x,y=e.c().__y-e.b().__y,w=o.c().__x-o.b().__x,b=o.c().__y-o.b().__y,1==f&&r.tickMarksLength(Math.sqrt(Math.pow(v,2)+Math.pow(y,2)));for(u=0;u<i.aj().ar().count();u++){var k=i.aj().ar().__inner[u],d=i.aj().as().__inner[u],h=function(){var n=new t.s7;return n.labelPosition(k.a()),n.labelValue(d),n.panelPosition(i.aq().n()),n}();u<i.aj().at().count()&&(p=t.$fj.a(i.aj().at().__inner[u],l),h.appearance(t.$gk.fromTextElement(i.aj().at().__inner[u],p)),c=i.a2().a().__inner[u],h.position(i.aq().m(c)),h.size(new t.y(c.k(),c.j())));r.labels().add(h)}return r},bu:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:0,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$a=0;this.$state=5;break;case 2:return this.$b=this.$this.bw().__inner[this.$a],this.$current=this.$b,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$a++;this.$state=5;break;case 5:this.$state=this.$a<this.$this.bw().count()?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(t.$aj.$type,r)},$type:new n.ig.Type("Axis",t.$ak.$type,[t.$a8.$type])},!0);n.ig.util.defType("AxisCollection:e9","ObservableCollection$1",{init:function(){var i=this;t.$e4.init.call(this,t.$hc.$type);this.propertyChanged=n.ig.Delegate.prototype.combine(this.propertyChanged,function(n,r){if(r.propertyName()=="Name")for(var u=0;u<i.count();++u)i.__inner[u].name()==r.propertyName()&&i.s(new t.e7(2,2,i.__inner[u],i.__inner[u],u))})},collectionResetting:null,h:function(){this.collectionResetting!=null&&this.collectionResetting(this,null);t.$e4.h.call(this)},$type:new n.ig.Type("AxisCollection",t.$e4.$type.specialize(t.$hc.$type))},!0);n.ig.util.defType("AxisComponentsForView:j0","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("AxisComponentsForView",n.ig.$ot)},!0);n.ig.util.defType("AxisComponentsFromView:j1","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("AxisComponentsFromView",n.ig.$ot)},!0);n.ig.util.defType("AxisLabelInfo:u4","Object",{init:function(){n.ig.$op.init.call(this)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("AxisLabelInfo",n.ig.$ot)},!0);n.ig.util.defType("AxisLabelManager:h9","Object",{_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},init:function(){var t=this;n.ig.$op.init.call(this);this.c(function(){})},k:function(n,t){this.f().clear();this.e().clear();this.b().z(this.a());this.b().b5(n);this.b().b4(t);(t.isEmpty()||n.isEmpty())&&this.o(0);this.a().a2().c()==0&&this.b().y().clear()},h:function(n,t){this.f().add(n);this.e().add(t)},p:function(){this.b().as(this.f());this.b().ar(this.e())},i:function(){},j:function(){},g:function(n){this.b().y().add(n)},n:function(n){this.b().bd(n)},l:function(n){this.c()(n)},q:function(n){return this.a().a2().item(n)},o:function(n){this.a()!=null&&this.a().a2().c(n)},d:function(){return this.a()==null||this.a().labelSettings()==null?!1:this.a().labelSettings().visibility()!=0},m:function(){this.a().a2().c(0);this.a().aj().at().clear()},$type:new n.ig.Type("AxisLabelManager",n.ig.$ot)},!0);n.ig.util.defType("LabelPosition:h7","Object",{_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(t){n.ig.$op.init.call(this);this.a(t)},$type:new n.ig.Type("LabelPosition",n.ig.$ot)},!0);n.ig.util.defType("AxisLabelSettings:hg","Object",{init:function(){var t=this;this.at=null;this.b=1;this.ax=0;this.f=!0;this.j=0;this.l=NaN;this.m=2;this.n=2;this.o=2;this.k=2;this.ar=0;this.av=1;n.ig.$op.init.call(this);this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,function(n,i){return t.an(n,i.propertyName(),i.oldValue(),i.newValue())})},x:null,textStyle:function(n){if(arguments.length===1){var t=this.x;return this.x=n,this.ao("TextStyle",t,n),n}return this.x},at:null,textColor:function(n){if(arguments.length===1){var t=this.at;return this.at=n,this.ao("TextColor",t,n),n}return this.at},location:function(n){if(arguments.length===1){var t=this.b;return this.b=n,this.ao("Location",t,n),n}return this.b},b:null,visibility:function(n){if(arguments.length===1){var t=this.ax;return this.ax=n,this.ao("Visibility",t,n),n}return this.ax},ax:null,showFirstLabel:function(n){if(arguments.length===1){var t=this.f;return this.f=n,this.ao("ShowFirstLabel",t,n),n}return this.f},f:!1,_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},registerAxis:function(n){this.a(n)},unregisterAxis:function(){this.a(null)},angle:function(n){if(arguments.length===1){var t=this.j;return this.j=n,this.ao("Angle",t,n),n}return this.j},j:0,extent:function(n){if(arguments.length===1){var t=this.l;return this.l=n,this.ao("Extent",t,n),n}return this.l},l:0,margin:function(n){return this.topMargin(this.rightMargin(this.bottomMargin(this.leftMargin(n)))),n},leftMargin:function(n){if(arguments.length===1){var t=this.m;return this.m=n,this.ao("LeftMargin",t,n),n}return this.m},m:0,rightMargin:function(n){if(arguments.length===1){var t=this.n;return this.n=n,this.ao("RightMargin",t,n),n}return this.n},n:0,topMargin:function(n){if(arguments.length===1){var t=this.o;return this.o=n,this.ao("TopMargin",t,n),n}return this.o},o:0,bottomMargin:function(n){if(arguments.length===1){var t=this.k;return this.k=n,this.ao("BottomMargin",t,n),n}return this.k},k:0,ar:null,horizontalAlignment:function(n){if(arguments.length===1){var t=this.ar;return this.ar=n,this.ao("HorizontalAlignment",t,n),n}return this.ar},av:null,verticalAlignment:function(n){if(arguments.length===1){var t=this.av;return this.av=n,this.ao("VerticalAlignment",t,n),n}return this.av},propertyChanged:null,propertyUpdated:null,ao:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},an:function(n,t){switch(t){case"Location":this.c(this.location())}if(this.a()!=null&&this.a().chart()!=null)switch(t){case"Angle":this.a().bl(!0);this.a().renderAxis();break;case"Location":case"Extent":case"Visibility":case"TextStyle":case"HorizontalAlignment":case"VerticalAlignment":case"TopMargin":case"RightMargin":case"BottomMargin":case"LeftMargin":this.a().bl(!0);this.a().seriesViewer()!=null&&this.a().seriesViewer().gu();this.a().renderAxis();break;case"TextColor":this.a().renderAxis()}},g:function(){return this.j!=0},h:function(){return!isNaN(this.l)},$type:new n.ig.Type("AxisLabelSettings",n.ig.$ot,[t.$a8.$type])},!0);n.ig.util.defType("TitleSettings:i2","AxisLabelSettings",{init:function(){this.az=0;t.$hg.init.call(this);this.horizontalAlignment(1);this.leftMargin(NaN);this.rightMargin(NaN);this.topMargin(NaN);this.bottomMargin(NaN)},az:null,position:function(n){if(arguments.length===1){var t=this.az;return this.az=n,this.ao("AxisTitlePosition",t,n),n}return this.az},an:function(n,i,r,u){if(t.$hg.an.call(this,n,i,r,u),this.a()!=null&&this.a().seriesViewer()!=null)switch(i){case"AxisTitlePosition":this.a().bl(!0);this.a().renderAxis()}},$type:new n.ig.Type("TitleSettings",t.$hg.$type)},!0);n.ig.util.defType("AxisRange:im","Object",{init:function(t,i){n.ig.$op.init.call(this);this.c(t);this.b(i)},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},equals:function(n){return n!=null&&this.c()==n.c()&&this.b()==n.b()},equals1:function(i){return this.equals(n.ig.util.cast(t.$im.$type,i))},getHashCode:function(){return n.ig.$op.getHashCode.call(this)},$type:new n.ig.Type("AxisRange",n.ig.$ot,[t.$io.$type.specialize(t.$im.$type)])},!0);n.ig.util.defType("Snapper:ii","Object",{init:function(){n.ig.$op.init.call(this)},a:function(n,t){var i=1;if(t>0)for(;t>0;--t)i*=n;else for(;t<0;++t)i/=n;return i},b:function(n,t){var r=Math.floor(Math.log10(n)),i=n/Math.pow(10,r),u,f;return t?(u=i<1.5?1:i<3?2:i<7?5:10,u*Math.pow(10,r)):(f=i<=1?1:i<=2?2:i<=5?5:10,f*Math.pow(10,r))},d:function(n){var i=t.$bu.zero;return n.totalDays()>1?i=t.$bu.fromDays(Math.ceil(n.totalDays())):n.totalHours()>1?i=t.$bu.fromHours(Math.ceil(n.totalHours())):n.totalMinutes()>1?i=t.$bu.fromMinutes(Math.ceil(n.totalMinutes())):n.totalSeconds()>1?i=t.$bu.fromSeconds(Math.ceil(n.totalSeconds())):n.totalMilliseconds()>1&&(i=t.$bu.fromMilliseconds(Math.ceil(n.totalMilliseconds()))),i},$type:new n.ig.Type("Snapper",n.ig.$ot)},!0);n.ig.util.defType("LinearNumericSnapper:ik","Snapper",{init:function(n,i,r,u){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$ii.init.call(this);this.h(i,r,u,10)},init1:function(n,i,r,u,f){t.$ii.init.call(this);this.h(i,r,u,f)},h:function(n,i,r,u){var f,e,o,s;this.e(NaN);this.g(0);this.f(0);f=Math.min(u,r/7);f>0&&(e=t.$ii.b(i-n,!1),this.e(t.$ii.b(e/(f-1),!0)),o=Math.floor(n/this.e())*this.e(),s=Math.ceil(i/this.e())*this.e(),f=Math.round((s-o)/this.e()),r/f>70?this.f(10):r/f>35?this.f(5):r/f>14&&this.f(2),this.g(Math.max(-Math.floor(Math.log10(this.e())),0)))},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_g:0,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_f:0,f:function(n){return arguments.length===1?(this._f=n,n):this._f},$type:new n.ig.Type("LinearNumericSnapper",t.$ii.$type)},!0);n.ig.util.defType("LogarithmicNumericSnapper:ih","Snapper",{init:function(n,i,r){t.$ii.init.call(this);this.e(1);this.f(r)},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:0,f:function(n){return arguments.length===1?(this._f=n,n):this._f},$type:new n.ig.Type("LogarithmicNumericSnapper",t.$ii.$type)},!0);n.ig.util.defType("LinearCategorySnapper:jv","Snapper",{init:function(n,i,r,u){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$jv.init1.call(this,1,i,r,u,NaN,0)},init1:function(n,i,r,u,f){var e,o,s,h;t.$ii.init.call(this);this.e(f);this.f(0);e=Math.min(10,u/7);e>0&&(o=t.$ii.b(r-i,!1),isNaN(this.e())&&this.e(t.$ii.b(o/(e-1),!0)),this.e()<1&&this.e(1),s=Math.floor(i/this.e())*this.e(),h=Math.ceil(r/this.e())*this.e(),e=Math.round((h-s)/this.e()),u/e>70?this.f(10):u/e>35?this.f(5):u/e>14&&this.f(2))},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:0,f:function(n){return arguments.length===1?(this._f=n,n):this._f},$type:new n.ig.Type("LinearCategorySnapper",t.$ii.$type)},!0);n.ig.util.defType("AxisView:hd","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(i){this.b=new t.j1;this.ay=t.$x.empty();n.ig.$op.init.call(this);this.a(i);this.a5=new t.b1},ad:function(){var n=this;n.a1(function(){var n=new t.b6;return n.ak(new t.du),n}());n.a4(function(){var n=new t.b6;return n.ak(new t.du),n.y(!1),n.stroke(null),n}());n.a2(function(){var n=new t.b6;return n.ak(new t.du),n.y(!1),n}());n.a3(function(){var n=new t.b6;return n.ak(new t.du),n.y(!1),n}());n.a().majorStrokeThickness(1);n.a().strokeThickness(1)},ae:function(){},_a1:null,a1:function(n){return arguments.length===1?(this._a1=n,n):this._a1},_a2:null,a2:function(n){return arguments.length===1?(this._a2=n,n):this._a2},_a4:null,a4:function(n){return arguments.length===1?(this._a4=n,n):this._a4},_a3:null,a3:function(n){return arguments.length===1?(this._a3=n,n):this._a3},at:function(){return new t.b9},am:function(n){n.__visibility=0;n.u()==null&&this.a().aj().y().add(n)},ao:function(n){n.__visibility=1},an:function(n){this.a().aj().y().contains(n)&&this.a().aj().y().remove(n)},af:function(){},k:function(){return!0},index:function(){var i=n.ig.util.cast(t.$bd.$type,this.a().chart()),r=0;return i==null?0:(i!=null&&i.gridMode()==1&&(r=i.series().count()),r+i.axes().indexOf(this.a()))},aa:function(){this.d().bs();this.d().bj()},y:function(){this.d().bp()},u:function(){this.d()!=null&&this.d().y().clear();this.w(n.ig.util.cast(t.$du.$type,this.a1().ak()).c());this.w(n.ig.util.cast(t.$du.$type,this.a4().ak()).c());this.w(n.ig.util.cast(t.$du.$type,this.a2().ak()).c());this.w(n.ig.util.cast(t.$du.$type,this.a3().ak()).c());this.ab()},ar:function(n){this.a1().__visibility=n;this.a2().__visibility=n;this.a4().__visibility=n;this.a3().__visibility=n},aj:function(){},t:function(){this.a().bl(!0);this.a().seriesViewer()!=null&&this.a().seriesViewer().gu();this.a().renderAxis()},b:null,c:function(){return this.b.a(this.a1()),this.b.b(this.a2()),this.b.c(this.a3()),this.b.d(this.a4()),this.b},w:function(n){n!=null&&n.clear()},au:function(){return n.ig.util.cast(t.$du.$type,this.a1().ak()).c()},e:function(){var i=this,u=function(){var n=new t.hk;return n.d(i.a().stroke()),n.b(i.a().strokeThickness()),n.e(i.a().strokeDashArray()),n}(),r;return n.ig.util.cast(t.$bd.$type,i.a().chart())!==null&&(r=i.a().chart(),r.alignsGridLinesToPixels()&&r.a4()!=2&&r.a4()!=1&&u.a(!0)),u},ax:function(){return n.ig.util.cast(t.$du.$type,this.a4().ak()).c()},av:function(){return n.ig.util.cast(t.$du.$type,this.a2().ak()).c()},f:function(){var i=this,u=function(){var n=new t.hk;return n.d(i.a().majorStroke()),n.b(i.a().majorStrokeThickness()),n.e(i.a().majorStrokeDashArray()),n}(),r;return n.ig.util.cast(t.$bd.$type,i.a().chart())!==null&&(r=i.a().chart(),r.alignsGridLinesToPixels()&&r.a4()!=2&&r.a4()!=1&&u.a(!0)),u},aw:function(){return n.ig.util.cast(t.$du.$type,this.a3().ak()).c()},g:function(){var i=this,u=function(){var n=new t.hk;return n.d(i.a().minorStroke()),n.b(i.a().minorStrokeThickness()),n.e(i.a().minorStrokeDashArray()),n}(),r;return n.ig.util.cast(t.$bd.$type,i.a().chart())!==null&&(r=i.a().chart(),r.alignsGridLinesToPixels()&&r.a4()!=2&&r.a4()!=1&&u.a(!0)),u},d:function(){return this.a().af().a()},ap:function(n,t,i){this.d().z(n);this.d().b5(t);this.d().b4(i);this.ab()},v:function(){this.d().y().clear();this.ab()},al:function(n){this.d().bd(n);this.ab()},aq:function(n,t){this.d().as(n);this.d().ar(t)},ak:function(n){this.d().az(n)},s:function(){},l:function(n){if(this.a().formatLabel()!=null)return this.a().formatLabel()(n);var i=this.a().label(),t=typeof n[i]!="undefined"?n[i]:i;return this.a().expectFunctions()&&typeof t=="function"&&(t=t()),t},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},ac:function(n,t){this.h(n);this.i(t)},_isDirty:!1,isDirty:function(n){return arguments.length===1?(this._isDirty=n,n):this._isDirty},ab:function(){this.a().chart()!=null&&(this.isDirty()||(this.isDirty(!0),this.a().chart().canvasRenderScheduler().j()))},undirty:function(n){this.isDirty(!1);this.ah(n)},a5:null,ah:function(n){var t,r,i;this.h()!=null&&(this.h().c()&&(this.a().seriesViewer()!=null&&this.a().seriesViewer().actualPixelScalingRatio()!=1&&(this.h().x(),this.h().y(this.a().seriesViewer().actualPixelScalingRatio(),this.a().seriesViewer().actualPixelScalingRatio())),t=this.a().chart().getContainerRect(),n&&this.h().i(t.left(),t.top(),t.width(),t.height()),n&&this.a().seriesViewer().plotAreaBackground()!=null&&(this.a5.m(this.a().fb().top()),this.a5.l(this.a().fb().left()),this.a5.width(this.a().fb().width()),this.a5.height(this.a().fb().height()),this.a5.__fill=this.a().seriesViewer().plotAreaBackground(),this.h().t(this.a5)),this.h().x(),this.h().ab(this.a().fb()),this.ai(),this.h().w(),this.a().seriesViewer()!=null&&this.a().seriesViewer().actualPixelScalingRatio()!=1&&this.h().w()),this.i().c()&&(this.a().seriesViewer()!=null&&this.a().seriesViewer().actualPixelScalingRatio()!=1&&(this.i().x(),this.i().y(this.a().seriesViewer().actualPixelScalingRatio(),this.a().seriesViewer().actualPixelScalingRatio())),r=this.ay,i=this.a().chart().getContainerRect(),!r.isEmpty()&&n&&this.i().i(i.left(),i.top(),i.width(),i.height()),this.a().seriesViewer()!=null&&this.a().seriesViewer().actualPixelScalingRatio()!=1&&this.i().w()))},postRender:function(){this.d().bw()},ay:null,ai:function(){this.h().c()&&(this.a1().__stroke=this.a().actualStroke(),this.a4().__fill=this.a().strip(),this.a3().__stroke=this.a().actualMinorStroke(),this.a2().__stroke=this.a().actualMajorStroke(),this.a3().z(this.a().minorStrokeThickness()),this.a2().z(this.a().majorStrokeThickness()),this.a1().z(this.a().strokeThickness()),this.a3().af(this.a().minorStrokeDashArray()),this.a2().af(this.a().majorStrokeDashArray()),this.a1().af(this.a().strokeDashArray()),this.ay=this.a().fb(),this.h().q(this.a1()),this.h().q(this.a4()),this.h().q(this.a2()),this.h().q(this.a3()))},z:function(){this.ab()},x:function(n){n!=null&&n.canvasRenderScheduler().n(this)},r:function(n){n!=null&&(n.canvasRenderScheduler().h(this),this.ab())},j:function(){return this.h()==null},ag:function(){if(!this.a().isAngular()&&!this.a().isRadial()){if(this.a().title()==null){this.a().d5(null);this.a().bl(!0);this.a().renderAxis();return}if(this.a().d5()==null){var n=new t.b9;n.aa(this.a().title());n.dataContext(this.a().titleSettings());this.a().d5(n)}else this.a().d5().aa(this.a().title()),this.a().d5().dataContext(this.a().titleSettings());this.a().bl(!0);this.a().renderAxis()}},q:function(){var n,i=new t.hg;this.a().isAngular()?(n="ui-angular-axis-labels",i.margin(0)):this.a().isVertical()?(n="ui-vertical-axis-labels",i.location(2)):this.a().an()==3?(n="ui-radial-axis-labels",i.location(5)):(n="ui-horizontal-axis-labels",i.location(1));this.p(i,n)},as:function(){if(this.a().seriesViewer()!=null){var n=this.a().seriesViewer().l6(),t=n.el(),i=n.ek();this.a().stroke()==null&&(t==null?this.a().stroke(n.ej()):t.color().f()!=0&&this.a().stroke(t));this.a().majorStroke()==null&&(i==null?this.a().majorStroke(n.ej()):i.color().f()!=0&&this.a().majorStroke(i))}},p:function(i,r){var u=t.$fh.g(),a=n("body");a.append(u);var f=t.$fh.q(u,r,"margin-top"),e=t.$fh.q(u,r,"margin-right"),o=t.$fh.q(u,r,"margin-bottom"),s=t.$fh.q(u,r,"margin-left"),h=t.$fh.q(u,r,"text-align"),c=t.$fh.q(u,r,"vertical-align"),l=t.$fh.q(u,r,"color");if(f!=null&&i.topMargin(parseFloat(f)),e!=null&&i.rightMargin(parseFloat(e)),o!=null&&i.bottomMargin(parseFloat(o)),s!=null&&i.leftMargin(parseFloat(s)),l!=null&&(i.textColor()==null&&i.textColor(new t.b3),i.textColor().__fill=l),h!=null)switch(h){case"right":i.horizontalAlignment(2);break;case"left":i.horizontalAlignment(0);break;default:i.horizontalAlignment(1)}if(c!=null)switch(c){case"top":i.verticalAlignment(0);break;case"bottom":i.verticalAlignment(2);break;default:i.verticalAlignment(1)}u.remove();this.a().labelSettings(i)},preRender:function(){this.a().seriesViewer()!=null&&this.a().seriesViewer().ensureCorrectSize()},m:function(t){return{__x:t.l(),__y:t.m(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},n:function(){return{__x:this.a().aj().b3().left(),__y:this.a().aj().b3().top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},az:function(){return this.a().aj().b3()},o:function(t){return{__x:t.l(),__y:t.m(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},a0:function(n){return t.$j4.a(n)},a6:function(){var n=this.a().aj().ab().q(),i=this.a().aj().ab().s(),r=this.a().aj().ab().r(),u=this.a().aj().ab().p();return new t.a5(1,n,i,r,u)},$type:new n.ig.Type("AxisView",n.ig.$ot,[t.$bc.$type])},!0);n.ig.util.defType("IScaler:ix","Object",{$type:new n.ig.Type("IScaler",null)},!0);n.ig.util.defType("ICategoryScaler:ke","Object",{$type:new n.ig.Type("ICategoryScaler",null,[t.$ix.$type])},!0);n.ig.util.defType("CategoryAxisBase:hb","Axis",{ap:function(){return new t.jt(this)},dl:function(n){t.$hc.dl.call(this,n);this.fi(n)},_fi:null,fi:function(n){return arguments.length===1?(this._fi=n,n):this._fi},init:function(){this.f2=0;this.f3=0;this.f5=0;this.fn=!1;t.$hc.init.call(this);this.ft(new t.bh(Number,0))},bt:function(n,i,r){var u=t.$hc.bt.call(this,n,i,r);return u?this.itemsSource()!=null&&this.f3>0:!1},go:function(){this.fm()!=null&&this.at()!=null&&this.itemsSource()!=null&&this.fm(this.at().releaseFastItemsSource(this.itemsSource()))},gn:function(){this.fm()==null&&this.at()!=null&&this.itemsSource()!=null&&this.fm(this.at().getFastItemsSource(this.itemsSource()))},_ft:null,ft:function(n){return arguments.length===1?(this._ft=n,n):this._ft},isCategory:function(){return!0},getCategoryBoundingBox:function(n,i,r){return this.isAngular()?t.$x.empty():this.getCategoryBoundingBoxHelper(n,i,r,this.isVertical())},getCategoryBoundingBoxHelper:function(n,i,r,u){var f=0,o=n.__x,l=this.fb().left(),a=this.fb().right(),e,h,v,y,c,p,w,b,s;if(u&&(o=n.__y,l=this.fb().top(),a=this.fb().bottom()),e=this.ft(),u&&!this.isInverted()||!u&&this.isInverted())for(e=new t.bh(Number,0),h=this.ft().count()-1;h>=0;h--)e.add(this.ft().__inner[h]);if(this.categoryMode()==0){if(i)return v=u?new t.x(0,this.fb().left(),n.__y-r/2,this.fb().width(),r):new t.x(0,n.__x-r/2,this.fb().top(),r,this.fb().height()),v.intersect(this.fb()),v;if(o>a||o<l)return t.$x.empty();for(y=Number.MAX_VALUE,c=-1,f=0;f<e.count();f++)p=Math.abs(e.__inner[f]-o),p<y&&(y=p,c=f);return c==-1?t.$x.empty():(w=e.__inner[c],b=u?new t.x(0,this.fb().left(),w-r/2,this.fb().width(),r):new t.x(0,w-r/2,this.fb().top(),r,this.fb().height()),b.intersect(this.fb()),b)}for(f=0;f<e.count();f++)if(e.__inner[f]>o)break;return f==0?t.$x.empty():o>a?t.$x.empty():o<l?t.$x.empty():(s=this.fb().right(),u&&(s=this.fb().bottom()),f<e.count()&&(s=e.__inner[f]),u?new t.x(0,this.fb().left(),e.__inner[f-1],this.fb().width(),s-e.__inner[f-1]):new t.x(0,e.__inner[f-1],this.fb().top(),s-e.__inner[f-1],this.fb().height()))},fm:function(n){return arguments.length===1?(this.g(t.$hb.fastItemsSourceProperty,n),n):this.c(t.$hb.fastItemsSourceProperty)},fl:null,itemsSource:function(n){return arguments.length===1?(this.g(t.$hb.itemsSourceProperty,n),n):this.c(t.$hb.itemsSourceProperty)},f2:0,f3:0,itemsCount:function(n){return arguments.length===1?(this.f2=n,this.f3=this.f2,n):this.f2},categoryMode:function(n){if(arguments.length===1){if(this.fj!=n){var t=this.fj;this.fj=n;this.dq("CategoryMode",t,n)}return n}return this.fj},fj:null,gap:function(n){return arguments.length===1?(this.g(t.$hb.gapProperty,n),n):this.c(t.$hb.gapProperty)},overlap:function(n){return arguments.length===1?(this.g(t.$hb.overlapProperty,n),n):this.c(t.$hb.overlapProperty)},useClusteringMode:function(n){return arguments.length===1?(this.g(t.$hb.useClusteringModeProperty,n),n):this.c(t.$hb.useClusteringModeProperty)},f6:function(n){if(arguments.length===1){if(n!=this.f5){var t=this.f5;this.f5=n;this.dq("GroupCount",t,this.f5)}return n}return this.f5},f5:0,getUnscaledValue:function(){return NaN},getUnscaledValue2:function(){return NaN},getCategorySize:function(){return NaN},fy:function(){return NaN},getGroupCenter:function(){return NaN},unscaleValue:function(n){var i=this.seriesViewer().windowRect(),r=this.fb(),u=new t.iu(i,r,this.isInverted());return this.getUnscaledValue(n,u)},fs:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:null,$b:null,$c:null,$d:null,$e:null,$f:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.bw().getEnumerator();this.$state=4;break;case 2:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$b.moveNext()?2:5;break;case 5:this.$state=6;break;case 6:this.$state=this.$this.seriesViewer()!=null&&this.$this.seriesViewer().b0()&&this.$this.fp(this.$this.seriesViewer())?7:20;break;case 7:this.$state=8;break;case 8:this.$d=this.$this.seriesViewer().ck().getEnumerator();this.$state=18;break;case 9:this.$c=this.$d.current();this.$state=10;break;case 10:this.$state=this.$c!=this.$this.seriesViewer()?11:17;break;case 11:this.$state=12;break;case 12:this.$f=this.$c.series().getEnumerator();this.$state=15;break;case 13:return this.$e=this.$f.current(),this.$current=this.$e,this.$state=14,!0;case 14:this.$state=15;break;case 15:this.$state=this.$f.moveNext()?13:16;break;case 16:this.$state=17;break;case 17:this.$state=18;break;case 18:this.$state=this.$d.moveNext()?9:19;break;case 19:this.$state=20;break;case 20:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(t.$aj.$type,r)},fo:function(n){return this.bw().contains(n)},fp:function(){return!1},fr:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:null,$b:null,$c:null,$d:null,$e:null,$f:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$a=n.ig.util.cast(t.$bd.$type,this.$this.seriesViewer());this.$state=1;break;case 1:this.$state=this.$a!=null&&this.$a.b0()&&this.$this.fp(this.$a)?2:21;break;case 2:this.$state=3;break;case 3:this.$c=this.$a.ck().getEnumerator();this.$state=19;break;case 4:this.$b=this.$c.current();this.$state=5;break;case 5:this.$state=this.$b!=this.$this.seriesViewer()?6:18;break;case 6:this.$d=n.ig.util.cast(t.$bd.$type,this.$b);this.$state=7;break;case 7:this.$state=this.$d!=null?8:17;break;case 8:this.$state=9;break;case 9:this.$f=this.$d.axes().getEnumerator();this.$state=15;break;case 10:this.$e=this.$f.current();this.$state=11;break;case 11:this.$state=n.ig.util.cast(t.$hb.$type,this.$e)!==null?12:14;break;case 12:return this.$current=n.ig.util.cast(t.$hb.$type,this.$e),this.$state=13,!0;case 13:this.$state=14;break;case 14:this.$state=15;break;case 15:this.$state=this.$f.moveNext()?10:16;break;case 16:this.$state=17;break;case 17:this.$state=18;break;case 18:this.$state=19;break;case 19:this.$state=this.$c.moveNext()?4:20;break;case 20:this.$state=21;break;case 21:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(t.$hb.$type,r)},fn:!1,gr:function(i){var f,e,o,s,h,c;if(!this.fn)try{this.fn=!0;for(var r=0,u=0,l=!1,a=this.fs().getEnumerator();a.moveNext();)f=a.current(),e=n.ig.util.cast(t.$g9.$type,f),e!=null&&(o=e.preferredCategoryMode(this),o==2&&(r=2,l=!0,this.fo(f)&&u++),o!=1||l||(r=1));for(s=this.useClusteringMode(),h=this.fr().getEnumerator();h.moveNext();)c=h.current(),c.useClusteringMode()&&(s=!0),i&&c.gr(!1);r==0&&s&&(r=2,u==0&&(u=1));this.categoryMode(r);this.f6(u)}finally{this.fn=!1}},dn:function(i,r,u,f){var o,c,s,l,e,a,h,v;t.$hc.dn.call(this,i,r,u,f);switch(r){case"FastItemsSourceProvider":n.ig.util.cast(t.$j5.$type,u)!=null&&this.fm(n.ig.util.cast(t.$j5.$type,u).releaseFastItemsSource(this.itemsSource()));n.ig.util.cast(t.$j5.$type,f)!=null&&this.fm(n.ig.util.cast(t.$j5.$type,f).getFastItemsSource(this.itemsSource()));this.itemsCount(0);this.fm()!=null&&this.itemsCount(this.fm().count());this.gr(!0);break;case"ItemsSource":this.at()!=null&&this.fm(this.at().getFastItemsSource(this.itemsSource()));break;case"FastItemsSource":if(o=n.ig.util.cast(t.$jw.$type,u),this.gf(),this.bl(!0),o!=null&&(o.event=n.ig.Delegate.prototype.remove(o.event,this.gi.runOn(this))),this.itemsCount(0),this.fm()!=null&&this.itemsCount(this.fm().count()),this.fm()!=null)for(this.fm().event=n.ig.Delegate.prototype.combine(this.fm().event,this.gi.runOn(this)),this.du(!1),c=this.bu().getEnumerator();c.moveNext();)s=c.current(),s.renderSeries(!1),s.seriesViewer()!=null&&s.gy();else for(this.db(),l=this.bu().getEnumerator();l.moveNext();)e=l.current(),e.gh(!0,e.view()),e.seriesViewer()!=null&&e.gy();break;case"ItemsCount":this.dr(new t.il(0,0,u-1,f-1));this.du(!1);break;case"UseClusteringMode":this.bl(!0);this.gs();this.du(!1);this.gg();break;case"CategoryMode":this.bl(!0);this.du(!1);this.gp();this.gg();break;case"Overlap":case"Gap":for(this.bl(!0),a=this.bu().getEnumerator();a.moveNext();)h=a.current(),h.cl(!0),v=n.ig.util.cast(t.$g9.$type,h),v!=null&&v.preferredCategoryMode(this)==2&&h.renderSeries(!1);this.du(!1);this.seriesViewer()!=null&&this.seriesViewer().g2();break;case"CrossingValue":case"CrossingAxis":this.bl(!0);this.du(!0)}},gg:function(){for(var n=this.bu().getEnumerator(),t;n.moveNext();)t=n.current(),t.renderSeries(!1)},gi:function(n,t){switch(t.action()){case 3:case 0:case 1:case 2:case 4:this.fm()!=null&&this.itemsCount(this.fm().count());this.du(!1)}this.fm()!=null&&this.itemsCount(this.fm().count())},gs:function(){for(var f=!1,e=!1,o=this.bw().getEnumerator(),s,r,u,i;o.moveNext();)(s=o.current(),r=n.ig.util.cast(t.$g9.$type,s),r!=null)&&(u=r.preferredCategoryMode(this),f|=u==1,e|=u==2);i=e?2:f?1:0;i==0&&this.useClusteringMode()&&(i=1,this.f6()==0&&this.f6(1));this.categoryMode(i)},registerSeries:function(i){var o=t.$hc.registerSeries.call(this,i),r,f,e,u;if(o){if(this.gr(!0),r=n.ig.util.cast(t.$g9.$type,i),r!=null&&r.preferredCategoryMode(this)==2)for(f=this.bu().getEnumerator();f.moveNext();)e=f.current(),u=n.ig.util.cast(t.$g9.$type,e),u!=null&&u!=r&&u.preferredCategoryMode(this)==2&&e.renderSeries(!1);this.du(!1);this.updateRange()}return o},deregisterSeries:function(i){var e=t.$hc.deregisterSeries.call(this,i),r,u,f,o;if(e){if(this.gr(!0),r=n.ig.util.cast(t.$g9.$type,i),r!=null&&r.preferredCategoryMode(this)!=0)for(u=this.bu().getEnumerator();u.moveNext();)f=u.current(),o=n.ig.util.cast(t.$g9.$type,f),o!=null&&f.renderSeries(!1);this.du(!1)}return e},gp:function(){for(var r=null,f=this.bu().getEnumerator(),e,u,i;f.moveNext();)e=f.current(),u=n.ig.util.cast(t.$fv.$type,e),u!=null&&(i=u.ku(),i!=null&&i.crossingAxis()==this&&(r=i));r!=null&&r.renderAxis()},gf:function(){this.fl=this.fm()},gq:function(){var n=this.labelSettings(),i;n==null&&(n=new t.hg);n.visibility()==1?this.a2().c(0):(i=0,i=this.fi().a8(this.bx()),this.a2().c(i))},handleCollectionChanged:function(n){this.fm()!=null&&this.fm().handleCollectionChanged(n)},notifySetItem:function(n,i,r){this.handleCollectionChanged(new t.e7(2,2,r,i,n))},notifyClearItems:function(){this.handleCollectionChanged(new t.e7(0,4))},notifyInsertItem:function(n,i){this.handleCollectionChanged(new t.e7(1,0,i,n))},notifyRemoveItem:function(n,i){this.handleCollectionChanged(new t.e7(1,1,i,n))},$type:new n.ig.Type("CategoryAxisBase",t.$hc.$type,[t.$ke.$type])},!0);n.ig.util.defType("IAngleScaler:jm","Object",{$type:new n.ig.Type("IAngleScaler",null)},!0);n.ig.util.defType("CategoryAngleAxis:jr","CategoryAxisBase",{ap:function(){return new t.js(this)},dl:function(n){t.$hb.dl.call(this,n);this.g1(n)},_g1:null,g1:function(n){return arguments.length===1?(this._g1=n,n):this._g1},isAngular:function(){return!0},g6:null,init:function(){this.g7=!1;this.g9=NaN;this.ha=0;this.hi=1;t.$hb.init.call(this);this.y(t.$jr.$type);this.g3(this.g2());this.g6=new t.jc},ai:function(){var i=this,r=new t.jo;return r.cf(function(r){var u=i.seriesViewer()!=null?i.seriesViewer().actualWindowRect():t.$x.empty(),f=u.isEmpty()?t.$x.empty():i.fb();return i.hk(r,{__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u,f,i.aj().a0())}),r},_g3:null,g3:function(n){return arguments.length===1?(this._g3=n,n):this._g3},g7:!1,hg:function(n){return Math.round(n*Math.pow(10,10))/Math.pow(10,10)},g9:0,g2:function(){var i=this,u=function(){var n=new t.h9;return n.a(i),n.e(i.bv()),n.f(i.bx()),n.b(i.aj()),n}(),r;return i.labelSettings()!=null&&i.labelSettings().registerAxis(i),r=new t.ju(u),r.t(function(){var n=i.aq().au(),t=i.aq().ax(),r=i.aq().av(),u=i.aq().aw();i.dz();i.dc(n);i.dc(t);i.dc(r);i.dc(u)}),r.n(function(n,t){return!t.isEmpty()&&!n.isEmpty()&&i.g5()!=null}),r.c(function(n,t){return i.g0(n,t)}),r.u(function(){i.g7||(i.g7=!0,i.g5().updateRange(),i.g7=!1)}),r.f(function(n){var t=n,r;return t>i.fm().count()-1&&(t-=i.fm().count()),r=i.fm().item(t),i.cd(r)}),r.b().c(function(r){var u,e,f;if((i.labelSettings()==null||i.labelSettings().visibility()==0)&&i.g5()!=null&&i.g9!=r){if(u=n.ig.util.cast(t.$bd.$type,i.seriesViewer()),u==null)return;for(i.g9=r,i.aj().az(r),u.gu(),e=u.axes().getEnumerator();e.moveNext();)f=e.current(),f!=i&&n.ig.util.cast(t.$jo.$type,f.aj())!==null&&f.aq().aa()}}),r.j(function(r,u,f){var e=n.ig.util.cast(t.$jg.$type,r);i.g6.m(u,f,r.u(),r.v(),e.minLength(),e.maxLength(),e.center())}),r.k(function(r,u,f,e){var o=n.ig.util.cast(t.$jg.$type,r);i.g6.n(u,f,e,o.u(),r.v(),o.minLength(),o.maxLength(),o.center())}),r.l(function(n,t){return i.getScaledAngle(t)}),r.p(function(n,t){return i.hg(t-i.ha)<0?!1:i.hg(t-i.ha-2*3.14159265358979)>0?!1:!0}),r.i(function(r){var u=n.ig.util.cast(t.$jg.$type,r);u.e()==u.j().__inner[0]&&i.g6.i(r.q(),r.m(),r.u(),r.v(),u.center(),u.minAngle(),u.maxAngle())}),r.d(function(n){n.m(i.hb());n.o(n.m())}),r.o(function(r,u,f){var o=n.ig.util.cast(t.$jg.$type,r),e;return f?!1:(e=i.hk(u,o.center(),r.v(),r.u(),0),e.__x<r.u().right()&&e.__x>=r.u().left()&&e.__y<r.u().bottom()&&e.__y>=r.u().top())?!0:!1}),r.a(function(n,r,u,f){var h=new t.iu(n.v(),n.u(),i.isInverted()),o=r,e,s;return i.categoryMode()!=0&&(e=u*f+1,e=Math.min(e,i.f3),s=i.getScaledValue(e,h),o=(r+s)/2),o}),r.e(i.getGroupCenter.runOn(i)),r.h(i.he.runOn(i)),r},hk:function(i,r,u,f,e){var c=this.hb(),h=t.$jd.b(e,u,f),o,s;return this.labelSettings()!=null&&(this.labelSettings().c()==5||this.labelSettings().c()==1)&&(h*=-1),o=r.__x+(c+h)*Math.cos(i),s=r.__y+(c+h)*Math.sin(i),o=t.$jd.c(o,u,f),s=t.$jd.f(s,u,f),{__x:o,__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},hb:function(){return this.g5()==null?0:this.a8()?this.g5().getScaledValue2(this.crossingValue()):this.g5().ha()},g0:function(i,r){var h,c;if(this.fm()==null)return null;var u=new t.jg,l=this.fm().count()-1,a=this.aq().au(),v=this.aq().ax(),y=this.aq().av(),p=this.aq().aw();u.q(a);u.t(v);u.r(y);u.s(p);u.k(l);u.l(0);u.h(!1);u.u(i);u.v(r);u.g(this.g8());u.n(this.interval());u.p(this.label());var w=this.g6.f(r),b=this.g6.g(r),k=.5*this.g5().g7(),s=.5*this.g5().g6(),e=w,o=b,f=this.g5().ha();return isNaN(f)||Number.isInfinity(f)?null:(o>=k&&(o=f),e<s&&(e=s),h=i.width(),this.g6.k(r,u,0,this.fm().count(),this.isInverted(),this.getUnscaledAngle.runOn(this),h),c={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u.center(c),u.maxLength(o),u.minLength(e),u.effectiveMaximum(f),u.z(this.fm().count()),u.w(this.categoryMode()),u.y(!0),u.x(this.isInverted()),u.aa(this.f6()),u.f(new t.jz),u.i(this.bo()),u)},getMinMaxAngle:function(n,t,i){var r=this;return function(){var u=r.g6.l(n,t,i);return t=u.minAngle,i=u.maxAngle,u.ret}(),{visibleMinimum:t,visibleMaximum:i}},onApplyTemplate:function(){t.$hb.onApplyTemplate.call(this);this.du(!1)},g4:null,g5:function(i){if(arguments.length===1)return this.g4=i,i;if(this.g4!=null)return this.g4;var i=n.ig.util.cast(t.$bd.$type,this.seriesViewer());return i!=null?i.axes().ofType$1(t.$i7.$type).firstOrDefault$1(t.$i7.$type):this.g4},startAngleOffset:function(n){return arguments.length===1?(this.g(t.$jr.startAngleOffsetProperty,n),n):this.c(t.$jr.startAngleOffsetProperty)},ha:0,getCategorySize:function(){return 2*3.14159265358979/this.f3},fy:function(n,i){var f=isNaN(this.gap())?0:t.$es.c(this.gap(),0,1),r=0,u;return isNaN(this.overlap())||(r=Math.min(this.overlap(),1)),u=1-.5*f,this.getCategorySize(n,i)*u/(this.f6()-(this.f6()-1)*r)},getGroupCenter:function(n,i,r){var e=.5,u,f;if(this.f6()>1){u=isNaN(this.gap())?0:t.$es.c(this.gap(),0,1);f=0;isNaN(this.overlap())||(f=Math.min(this.overlap(),1));var o=1-.5*u,s=o/(this.f6()-(this.f6()-1)*f),h=(o-s)/(this.f6()-1);e=.25*u+.5*s+n*h}return this.getCategorySize(i,r)*e},he:function(n){var u=.5,i,r;if(this.f6()>1){i=isNaN(this.gap())?0:t.$es.c(this.gap(),0,1);r=0;isNaN(this.overlap())||(r=Math.min(this.overlap(),1));var f=1-.5*i,e=f/(this.f6()-(this.f6()-1)*r),o=(f-e)/(this.f6()-1);u=.25*i+.5*e+n*o}return u},dv:function(n){t.$hb.dv.call(this,n);var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=i.isEmpty()?t.$x.empty():this.fb();this.g3().x(n,r,i)},hd:function(n,t){var i=this,r,f,u;return(function(){var n=i.g6.l(t,r,f);return r=n.minAngle,f=n.maxAngle,n.ret}(),r==0)?i.isInverted()?i.f3:0:(u=i.getUnscaledAngle(r),(u<0||u>i.f3)&&(u=i.getUnscaledAngle(r+3.14159265358979*2)),u)},hc:function(n,t){var r=this,f,i,u;return(function(){var n=r.g6.l(t,f,i);return f=n.minAngle,i=n.maxAngle,n.ret}(),i>3.14159265358979*2&&(i=i-3.14159265358979*2),i==3.14159265358979*2)?r.isInverted()?0:r.f3:(u=r.getUnscaledAngle(i),(u<0||u>r.f3)&&(u=r.getUnscaledAngle(i+3.14159265358979*2)),u)},getScaledAngle:function(n){var t=this.f3,i=t>=2?n/t:t==1?.5:NaN;return this.bf()&&(i=1-i),i*2*3.14159265358979+this.ha},getUnscaledAngle:function(n){var t=(n-this.ha)/(2*3.14159265358979);return this.isInverted()&&(t=1-t),t*this.f3},getScaledValue:function(n){return this.getScaledAngle(n)},dn:function(i,r,u,f){var e,s,h,c,l,a,v,o;t.$hb.dn.call(this,i,r,u,f);e=n.ig.util.cast(t.$bd.$type,this.seriesViewer());switch(r){case"CrossingAxis":s=n.ig.util.cast(t.$i7.$type,f);this.hp(s);s!=null&&s.hk(this);this.bl(!0);this.du(!1);break;case"StartAngleOffset":for(this.ha=this.startAngleOffset();this.ha<0;)this.ha+=360;while(this.ha>=360)this.ha-=360;for(this.ha=this.ha*3.14159265358979/180,this.bl(!0),this.du(!1),h=this.bw().getEnumerator();h.moveNext();)c=h.current(),c.renderSeries(!1),c.gy();break;case"Label":if(e!=null)for(l=e.axes().getEnumerator();l.moveNext();)a=l.current(),a.bl(!0),a.renderAxis();break;case"CrossingValue":if(e!=null)for(v=e.axes().getEnumerator();v.moveNext();)o=v.current(),(n.ig.util.cast(t.$jl.$type,o)!==null||n.ig.util.cast(t.$jr.$type,o)!==null)&&(o.bl(!0),o.renderAxis());break;case"LabelSettings":this.g3(this.g2());this.hn();this.bl(!0);this.du(!1)}},hn:function(){this.g9=NaN},hp:function(n){this.g5(n)},interval:function(n){return arguments.length===1?(this.g(t.$jr.intervalProperty,n),n):this.c(t.$jr.intervalProperty)},g8:function(){return!1},an:function(){return 2},br:function(){var n,i;return this.fm()==null?!1:(n=this.fm().count(),n!=this.hj())?(i=new t.il(1,1,this.hj(),n),this.hj(n),this.dr(i),!0):!1},hi:0,hj:function(n){return arguments.length===1?(this.hi=n,n):this.hi},$type:new n.ig.Type("CategoryAngleAxis",t.$hb.$type,[t.$jm.$type])},!0);n.ig.util.defType("CategoryAxisBaseView:jt","AxisView",{_a7:null,a7:function(n){return arguments.length===1?(this._a7=n,n):this._a7},init:function(n){t.$hd.init.call(this,n);this.a7(n)},a8:function(i){for(var u,f=0,r=0;r<i.count();r++)u=n.ig.util.cast(t.$al.$type,i.__inner[r]),u==null?(u=this.a().a2().item(r),n.ig.util.cast(t.$b9.$type,u).aa(i.__inner[r]==null?"":i.__inner[r].toString()),f++):this.d().y().add(u);return f},$type:new n.ig.Type("CategoryAxisBaseView",t.$hd.$type)},!0);n.ig.util.defType("CategoryAngleAxisView:js","CategoryAxisBaseView",{_a9:null,a9:function(n){return arguments.length===1?(this._a9=n,n):this._a9},init:function(n){t.$jt.init.call(this,n);this.a9(n)},$type:new n.ig.Type("CategoryAngleAxisView",t.$jt.$type)},!0);n.ig.util.defType("ISortingAxis:kr","Object",{$type:new n.ig.Type("ISortingAxis",null)},!0);n.ig.util.defType("CategoryDateTimeXAxis:lf","CategoryAxisBase",{init:function(){t.$hb.init.call(this);this.y(t.$lf.$type);this.hd=new Date;this.hc=new Date},ap:function(){return new t.lg(this)},dl:function(n){t.$hb.dl.call(this,n);this.g0(n)},_g0:null,g0:function(n){return arguments.length===1?(this._g0=n,n):this._g0},isSorting:function(){return!0},isDateTime:function(){return!0},displayType:function(n){return arguments.length===1?(this.g(t.$lf.displayTypeProperty,n),n):this.c(t.$lf.displayTypeProperty)},minimumValue:function(n){return arguments.length===1?(this.g(t.$lf.minimumValueProperty,n),n):this.c(t.$lf.minimumValueProperty)},maximumValue:function(n){return arguments.length===1?(this.g(t.$lf.maximumValueProperty,n),n):this.c(t.$lf.maximumValueProperty)},interval:function(n){return arguments.length===1?(this.g(t.$lf.intervalProperty,n),n):this.c(t.$lf.intervalProperty)},bt:function(n,i,r){var u=t.$hb.bt.call(this,n,i,r);return u?this.actualMinimumValue()!=this.actualMaximumValue():!1},ai:function(){return new t.lm},getCategorySize:function(n,t){return t.width()/(this.f3*n.width())},getGroupCenter:function(n,t,i){return this.getCategorySize(t,i)*.5},fy:function(n,i){var r=isNaN(this.gap())?0:t.$es.c(this.gap(),0,1),u=1-.5*r;return this.getCategorySize(n,i)*u},ha:null,hb:function(n){return arguments.length===1?(this.ha=n,n):this.ha},dv:function(i){var u,h,y,ot,k,d,g,o,nt,e,st,ht,a,it,p,w,wt;t.$hb.dv.call(this,i);var f=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=f.isEmpty()?t.$x.empty():this.fb(),v=new t.iu(f,r,this.isInverted()),rt=this.aq().au(),ut=this.aq().ax(),b=this.aq().av(),ft=this.aq().aw(),bt=this.aq().e(),et=this.aq().f(),kt=this.aq().g();if(this.dz(),this.dc(rt),this.dc(ut),this.dc(b),this.dc(ft),this.bx().clear(),this.bv().clear(),this.ft().clear(),this.aj().z(this),this.aj().b5(f),this.aj().b4(r),(f.isEmpty()||r.isEmpty())&&this.a2().c(0),this.a2().c()==0&&this.aj().y().clear(),this.labelSettings()!=null&&this.labelSettings().registerAxis(this),this.hy(),!f.isEmpty()&&!r.isEmpty()&&(this.displayType()!=1||this.g3()!=null)){if(u=r.bottom(),h=u-r.top(),this.crossingAxis()!=null&&(y=n.ig.util.cast(t.$iq.$type,this.crossingAxis()),y!=null&&(ot=new t.iu(f,r,y.isInverted()),u=this.crossingValue(),u=y.getScaledValue(u,ot),h=u-r.top(),u<r.top()?u=r.top():u>r.bottom()&&(u=r.bottom()),h<0?h=0:h>r.height()&&(h=r.height()))),isNaN(u)&&(u=0),this.dj(rt,u,r,bt),this.aj().az(h),this.displayType()==1){if(k=this.getFirstVisibleIndex(f,r),d=this.getLastVisibleIndex(f,r),k<0||d<0)return;for(g=NaN,o=k;o<=d;o++)(nt=this.hb()==null?o:this.hb().__inner[o],e=this.getScaledValue(this.g3().item(nt).getTime(),v),e!=g)&&((g=e,this.categoryMode()==2&&(e+=this.isInverted()?-this.getGroupCenter(o,f,r):this.getGroupCenter(o,f,r)),e<r.left()||e>r.right())||(this.d0(b,e,r,et),this.ft().add(e),this.fm()!=null&&o<this.fm().count()&&(st=this.fm().item(nt),ht=t.$hb.cd.call(this,st),isNaN(e)||Number.isInfinity(e)||(this.bx().add(ht),this.bv().add(new t.h7(e))))))}else{var ct=this.getUnscaledValue(r.left(),v),lt=this.getUnscaledValue(r.right(),v),at=Math.min(ct,lt),vt=Math.max(ct,lt),tt=new t.ik(0,at,vt,r.width()),c=this.g6()?this.hj():tt.e(),yt=Math.floor((at-this.actualMinimumValue().getTime())/c),dt=Math.ceil((vt-this.actualMinimumValue().getTime())/c),l=0;this.categoryMode()==2&&(l=this.getGroupCenter(0,f,r),l=this.isInverted()?-l:l);var pt=Math.ceil(r.right()),gt=Math.floor(r.left()),s=this.getScaledValue(this.actualMinimumValue().getTime()+yt*c,v)+l;for(a=yt;a<=dt;a++){if(it=this.getScaledValue(this.actualMinimumValue().getTime()+(a+1)*c,v)+l,!isNaN(s)&&!Number.isInfinity(s)){if(p=Math.round(s),p<=pt&&(a%2==0&&this.d1(ut,s,it,r),this.d0(b,s,r,et),this.ft().add(s),this.bo()))for(w=1;w<tt.f();++w)wt=this.getScaledValue(this.actualMinimumValue().getTime()+a*c+w*c/tt.f(),v)+l,this.d0(ft,wt,r,kt);if(p>=gt&&p<=pt){var ni=this.actualMinimumValue().getTime()+a*c,ti=Math.floor(ni),ii=new Date(ti),ri=this.cd(ii);this.bx().add(ri);this.bv().add(new t.h7(s))}}s=it}}(this.labelSettings()==null||this.labelSettings().visibility()==0)&&this.crossingAxis()!=null&&this.labelSettings()!=null&&(this.labelSettings().location()==4||this.labelSettings().location()==5)&&this.seriesViewer().gu();this.aj().as(this.bx());this.aj().ar(this.bv());this.gq()}},hj:function(){return this.hm()},hy:function(){var f=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),o=f.isEmpty()?t.$x.empty():this.fb(),i=new Date,r=new Date,e,s,h,c,u,l,a,v;f.isEmpty()||o.isEmpty()||this.g3()==null||(e=n.ig.util.cast(t.$li.$type,this.g3()),e!=null?this.hb()==null&&this.hb(e.getSortedIndices()):this.hb(null),this.g3().count()>0&&(s=this.hb()==null?0:this.hb().__inner[0],h=this.hb()==null?this.g3().count()-1:this.hb().__inner[this.g3().count()-1],i=this.g3().item(s),r=this.g3().item(h),this.g6(!1),this.categoryMode()==2&&(c=r.getTime()-i.getTime(),u=Math.round(c*1.25/this.f3/2),u==0&&(u=1),l=i.getTime(),a=r.getTime(),i=new Date(l-u),r=new Date(a+u))));this.g9()&&(i=this.minimumValue());this.g8()&&(r=this.maximumValue());this.g7()&&(this.hm(this.interval()),v=Math.abs(r.getTime()-i.getTime()),this.g6(this.g5()||this.displayType()==1||1*v/this.hj()>o.width()/f.width()?!1:!0));this.actualMinimumValue(i);this.actualMaximumValue(r)},g7:function(){return this.interval()!=0},g5:function(){return this.hm()==0},g9:function(){return this.minimumValue()!=null},g8:function(){return this.maximumValue()!=null},hd:null,actualMinimumValue:function(n){var t,i;return arguments.length===1?(t=this.hd!=n,t&&(i=this.hd,this.hd=n,this.dq("ActualMinimumValue",i,n)),n):this.hd},hc:null,actualMaximumValue:function(n){var t,i;return arguments.length===1?(t=this.hc!=n,t&&(i=this.hc,this.hc=n,this.dq("ActualMaximumValue",i,n)),n):this.hc},_g6:!1,g6:function(n){return arguments.length===1?(this._g6=n,n):this._g6},hl:null,hm:function(n){return arguments.length===1?(this.hl=n,n):this.hl},getScaledValue:function(n,t){var r,i;return r=this.actualMaximumValue()==this.actualMinimumValue()?-1:(n-this.actualMinimumValue().getTime())/(this.actualMaximumValue().getTime()-this.actualMinimumValue().getTime()),i=0,this.categoryMode()==2&&(i=this.getGroupCenter(0,t.d,t.c)),this.isInverted()&&(r=1-r,i=-i),t.c.left()+t.c.width()*(r-t.d.left())/t.d.width()-i},getUnscaledValue:function(n,t){return this.getUnscaledValue2(n,t.d,t.c,this.categoryMode())},getUnscaledValue2:function(n,t,i){var r=t.left()+t.width()*(n-i.left())/i.width();return this.isInverted()&&(r=1-r),Math.floor(this.actualMinimumValue().getTime()+r*(this.actualMaximumValue().getTime()-this.actualMinimumValue().getTime()))},hg:function(n){return this.g3()==null?t.$bt.minValue():this.g3().item(n)},dateTimeMemberPath:function(n){return arguments.length===1?(this.g(t.$lf.dateTimeMemberPathProperty,n),n):this.c(t.$lf.dateTimeMemberPathProperty)},g3:function(n){if(arguments.length===1){if(this.g2!=n){var t=this.g2;this.g2=n;this.dq("DateTimeColumn",t,this.g2)}return n}return this.g2},g2:null,g4:function(n){if(n==null)return this.fm().registerColumnDateTime(null,null,!1);var i=null,r=t.$be.getCoercionMethod(n,this.coercionMethods());return n=r.b(),i=r.a(),this.fm().registerColumnDateTime(n,i,this.expectFunctions())},dn:function(i,r,u,f){var e,o;t.$hb.dn.call(this,i,r,u,f);switch(r){case"FastItemsSource":e=n.ig.util.cast(t.$jw.$type,u);e!=null&&(e.deregisterColumn(this.g3()),this.g3(null),e.event=n.ig.Delegate.prototype.remove(e.event,this.hx.runOn(this)));o=n.ig.util.cast(t.$jw.$type,f);o!=null&&(this.hb(null),this.g3(this.g4(this.dateTimeMemberPath())),o.event=n.ig.Delegate.prototype.combine(o.event,this.hx.runOn(this)));this.hz(!1);break;case"DateTimeMemberPath":this.fm()!=null&&(this.fm().deregisterColumn(this.g3()),this.g3(this.g4(this.dateTimeMemberPath())),this.hb(null));break;case"DisplayType":this.bl(!0);this.aj().ag(this.displayType()==1);this.du(!1);break;case"MinimumValue":this.updateRange();this.hz(!1);break;case"MaximumValue":this.updateRange();this.hz(!1);break;case"Interval":this.bl(!0);this.du(!1)}},hx:function(){this.hb(null)},hz:function(n){var t,i;if(this.dv(n),this.fm()!=null)for(t=this.bu().getEnumerator();t.moveNext();)i=t.current(),i.renderSeries(n)},br:function(){var n=this.actualMinimumValue().getTime(),i=this.actualMaximumValue().getTime(),r=this.g9()?this.minimumValue().getTime():this.actualMinimumValue().getTime(),u=this.g8()?this.maximumValue().getTime():this.actualMaximumValue().getTime(),f=new t.il(n,r,i,u);return this.dr(f),!0},sortedIndices:function(){if(this.hb()==null){var i=n.ig.util.cast(t.$li.$type,this.g3());i!=null?this.hb(i.getSortedIndices()):this.hb(null)}return this.hb()},getFirstVisibleIndex:function(n,i){var u=new t.iu(n,i,this.isInverted()),f,o,e,r,s;for(this.isInverted()?(o=this.getUnscaledValue(i.left(),u),f=this.getUnscaledValue(i.right(),u)):(f=this.getUnscaledValue(i.left(),u),o=this.getUnscaledValue(i.right(),u)),e=0,r=0;r<this.hb().count();r++){if(this.g3()==null)break;if(s=this.g3().item(this.hb().__inner[r]),s.getTime()>=f)break;e=r}return e},getLastVisibleIndex:function(n,i){var u=new t.iu(n,i,this.isInverted()),h,f,e,o,r,s,c;for(this.isInverted()?(f=this.getUnscaledValue(i.left(),u),h=this.getUnscaledValue(i.right(),u)):(h=this.getUnscaledValue(i.left(),u),f=this.getUnscaledValue(i.right(),u)),e=this.hb().count()-1,o=e,r=e;r>=0;r--){if(this.g3()==null||this.hb().count()<=r)break;if(s=this.hb().__inner[r],s>=this.g3().count())break;if(c=this.g3().item(s),c.getTime()<f)break;o=Math.min(r+1,this.hb().count()-1)}return o},getUnscaledValueAt:function(n){if(this.g3()==null)return NaN;var t=this.g2.item(n),i=t.getTime();return i},getExactUnsortedIndexClosestToUnscaledValue:function(n){var r=this,o=new t.lp(t.$bt.$type,this.g3(),r.sortedIndices()),c=n,s=new Date(c),i=this.hk(n,s,o),e;if(i>=0&&i<r.sortedIndices().count()&&i-1>=0&&i-1<r.sortedIndices().count()){var h=s.getTime()-o.item(i-1).getTime(),l=o.item(i).getTime()-s.getTime(),u=i-1,f=i;return u<0&&f>=0?f:f>r.sortedIndices().count()-1&&u<r.sortedIndices().count()?u:u<0&&f<0?-1:u>r.sortedIndices().count()-1&&f>r.sortedIndices().count()-1?-1:(e=h/(h+l),isNaN(e)&&(e=0),u+e)}return i>=0&&i<r.sortedIndices().count()?i:-1},hk:function(n,i,r){var e=this,o=e,u,f;if(e.g3()==null||o.sortedIndices()==null)return-1;for(u=-1,f=r.binarySearch$1(t.$bt.$type,function(n){return i<n?-1:i>n?1:0}),u=f>=0?f:~f;u>=0&&u<r.count()&&u-1>=0&&r.item(u)==r.item(u-1);)u--;return u},getIndexClosestToUnscaledValue:function(n){var r=this,u=new t.lp(t.$bt.$type,this.g3(),r.sortedIndices()),s=n,f=new Date(s),i=this.hk(n,f,u),e,o;return(i>=0&&i<r.sortedIndices().count()&&i-1>=0&&i-1<r.sortedIndices().count()&&(e=f-u.item(i-1),o=u.item(i)-f,e<o&&(i=i-1)),i>=0&&i<r.sortedIndices().count())?r.sortedIndices().__inner[i]:-1},notifyDataChanged:function(){this.hb(null);this.renderAxis()},an:function(){return 0},$type:new n.ig.Type("CategoryDateTimeXAxis",t.$hb.$type,[t.$kr.$type])},!0);n.ig.util.defType("CategoryDateTimeXAxisView:lg","CategoryAxisBaseView",{_a9:null,a9:function(n){return arguments.length===1?(this._a9=n,n):this._a9},init:function(n){t.$jt.init.call(this,n);this.a9(n)},$type:new n.ig.Type("CategoryDateTimeXAxisView",t.$jt.$type)},!0);n.ig.util.defType("AxisRenderingParametersBase:hr","Object",{init:function(){n.ig.$op.init.call(this);this.j(new t.bh(t.$hs.$type,0))},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_t:null,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_r:null,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_s:null,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_q:null,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_o:0,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_n:0,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_g:!1,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_h:!1,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_i:!1,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},$type:new n.ig.Type("AxisRenderingParametersBase",n.ig.$ot)},!0);n.ig.util.defType("CategoryAxisRenderingParameters:ie","AxisRenderingParametersBase",{init:function(){t.$hr.init.call(this)},_z:0,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_y:!1,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_aa:0,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_x:!1,x:function(n){return arguments.length===1?(this._x=n,n):this._x},$type:new n.ig.Type("CategoryAxisRenderingParameters",t.$hr.$type)},!0);n.ig.util.defType("AxisRendererBase:ho","Object",{init:function(i){var r=this;n.ig.$op.init.call(this);this.t(function(){});this.n(function(){return!1});this.u(function(){});this.l(function(n,t){return t});this.k(function(){});this.j(function(){});this.p(function(){return!1});this.m(function(n,t){return r.p()(n,t)});this.i(function(){});this.d(function(){});this.o(function(){return!1});this.g(function(n,i){return new t.h7(i)});this.s(function(n,t){return t});this.f(function(){return null});this.q(function(n,t){return t});this.a(function(n,t){return t});this.b(i);this.c(function(){return null})},_t:null,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_s:null,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_q:null,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},x:function(i,r,u){var e=this,f,s,o;if(e.w(u,r),e.n()(r,u)){if(e.u()(),f=e.c()(r,u),e.w(u,r),f==null){e.aa();return}for(f.j().count()>1&&!f.g()&&e.ab(f),s=f.j().getEnumerator();s.moveNext();)if((o=s.current(),f.e(o),!isNaN(o.c())&&!Number.isInfinity(o.c())&&!isNaN(o.d())&&!Number.isInfinity(o.d()))&&o.d()!=o.c()){e.d()(f);e.b().l(f.m());var h=0,c=0,l=!1,a=function(n){return n};e.e()!=null&&(a=e.h());n.ig.util.cast(t.$ie.$type,f)!==null&&(h=f.w(),c=f.aa(),l=f.x());f.f(e.r(f));f.f().o(function(){var n=new t.hu;return n.l(f.e().d()),n.k(f.e().c()),n.g(f.l()),n.f(f.k()),n.i(f.e().b()),n.d(f.g()),n.j(f.n()),n.h(f.e().a()),n.n(f.e().e()),n.a(h),n.o(c),n.q(f.v()),n.p(f.u()),n.e(l),n.c(a),n}());e.y(f)}e.z()}},aa:function(){this.b().m()},ab:function(i){var h=this,f=-Number.MAX_VALUE,e=-Number.MAX_VALUE,c=0,l=0,a=!1,v=function(n){return n},o,r,s,u;for(h.e()!=null&&(v=h.h()),n.ig.util.cast(t.$ie.$type,i)!==null&&(c=i.w(),l=i.aa(),a=i.x()),o=i.j().getEnumerator();o.moveNext();)r=o.current(),i.e(r),i.f().o(function(){var n=new t.hu;return n.l(r.d()),n.k(r.c()),n.g(i.l()),n.f(i.k()),n.i(r.b()),n.d(i.g()),n.j(i.n()),n.h(r.a()),n.n(r.e()),n.a(c),n.o(l),n.q(i.v()),n.p(i.u()),n.e(a),n.c(v),n}()),r.a(i.f().j()),r.e(i.f().n()),isNaN(i.f().j())||(f=Math.max(f,i.f().j()),e=Math.max(e,i.f().n()));for(s=i.j().getEnumerator();s.moveNext();)u=s.current(),u.a()==f?(u.a(-1),u.e(-1)):(u.a(f),u.e(e))},w:function(n,t){this.t()();this.b().k(n,t);this.b().p()},z:function(){var r,u,f,i;if(this.b().p(),this.b().d())this.b().o(0);else{for(r=0,u=this.b().f().getEnumerator();u.moveNext();)f=u.current(),i=n.ig.util.cast(t.$al.$type,f),i==null?(i=this.b().q(r),i.aa(f.toString()),r++):this.b().g(i);this.b().o(r)}},r:function(n){return n.f()},y:function(n){var r=n.f().h(),c=n.f().i(),i,t,o,h,s,l,a;for(this.b().n(this.l()(n,n.f().j())),this.i()(n),i=0;i<r.length;i++){var u=n.f().l()+i,v=r[i],f=v,e=0;e=i<r.length-1?r[i+1]:Number.POSITIVE_INFINITY;f=this.q()(n,f,u,n.f().j());e=this.q()(n,e,u,n.f().j());t=this.l()(n,f);o=this.l()(n,e);this.p()(n,t)&&(u%2==0&&this.m()(n,o)&&!Number.isInfinity(o)&&this.k()(n,n.t(),t,o),n.b(n.c()),this.j()(n,n.r(),t),n.b(null));t=this.a()(n,t,u,n.f().j());isNaN(t)||Number.isInfinity(t)||!this.o()(n,t,i==r.length-1)||(h=this.v(n,f,u,n.f().j()),h!=null&&this.b().h(h,this.g()(n,t)))}if(n.i())for(s=0;s<c.length;s++)l=c[s],a=this.l()(n,l),n.b(n.d()),this.j()(n,n.s(),a),n.b(null)},v:function(){return null},$type:new n.ig.Type("AxisRendererBase",n.ig.$ot)},!0);n.ig.util.defType("CategoryAxisRenderer:ju","AxisRendererBase",{init:function(n){t.$ho.init.call(this,n)},ac:function(i,r,u,f,e){var s=n.ig.util.cast(t.$ie.$type,i),h=0,o,c,l;return s!=null&&(h=s.w()),o=new t.jv(1,i.e().d(),i.e().c(),i.e().b(),i.n(),h),r=o.e(),i.e().a()!=-1&&(r=i.e().a()),c=Math.floor((i.e().d()-i.l())/r),l=Math.ceil((i.e().c()-i.l())/r),f=c,e=l,u=o.f(),i.e().e()!=-1&&(u=i.e().e()),{interval:r,minorCount:u,first:f,last:e}},v:function(i,r,u,f){var e=n.ig.util.cast(t.$ie.$type,i),o,s;if(e==null)return null;if(o=0,o=f>=1?u*Math.floor(f):u*f*2%2==0?Math.floor(u*f):-1,s=null,e.z()>0&&o<e.z()&&o>=0||e.y()){while(o>=e.z()&&e.y())o-=e.z();s=this.f()(o)}return s},ad:function(i,r,u,f,e){var o=n.ig.util.cast(t.$ie.$type,i),s,h,c,l;if(o.w()!=0&&o.aa()!=0)for(s=0;s<r;s++)for(h=0;h<o.aa();h++)c=this.e()(h,i.v(),i.u()),o.x()&&(c=-c),l=this.l()(i,s+e*r)+c,i.b(i.d()),this.j()(i,i.s(),l),i.b(null)},$type:new n.ig.Type("CategoryAxisRenderer",t.$ho.$type)},!0);n.ig.util.defType("CategoryXAxis:u5","CategoryAxisBase",{ap:function(){return new t.u6(this)},dl:function(n){t.$hb.dl.call(this,n);this.g0(n)},_g0:null,g0:function(n){return arguments.length===1?(this._g0=n,n):this._g0},init:function(){this.g3=1;this.g2=1;t.$hb.init.call(this);this.ft(new t.bh(Number,0));this.y(t.$u5.$type)},g3:0,g5:function(n){return arguments.length===1?(this.g3=n,n):this.g3},g2:0,g4:function(n){return arguments.length===1?(this.g2=n,n):this.g2},ai:function(){return new t.lm},getCategorySize:function(n,t){return t.width()/(this.f3*n.width())},fy:function(n,i){var u=isNaN(this.gap())?0:t.$es.c(this.gap(),0,1),f=isNaN(this.overlap())?0:Math.min(this.overlap(),1);var e=1-.5*u,r=this.f6()==0?1:this.f6();return this.getCategorySize(n,i)*e/(r-(r-1)*f)},getGroupCenter:function(n,i,r){var e=.5,u,f;if(this.f6()>1){u=isNaN(this.gap())?0:t.$es.c(this.gap(),0,1);f=0;isNaN(this.overlap())||(f=Math.min(this.overlap(),1));var o=1-.5*u,s=o/(this.f6()-(this.f6()-1)*f),h=(o-s)/(this.f6()-1);e=.25*u+.5*s+n*h}return this.getCategorySize(i,r)*e},scrollIntoView:function(n){var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),e=this.fb(),u=new t.x(0,0,0,1,1),o=new t.iu(u,u,this.isInverted()),f=!i.isEmpty()&&!e.isEmpty()&&this.fm()!=null?this.fm().indexOf(n):-1,r=f>-1?this.getScaledValue(f,o):NaN;!isNaN(r)&&this.seriesViewer().b0()&&(isNaN(r)||(r<i.left()+.1*i.width()&&(r=r+.4*i.width(),i.x(r-.5*i.width())),r>i.right()-.1*i.width()&&(r=r-.4*i.width(),i.x(r-.5*i.width()))),this.seriesViewer().i9(i))},getScaledValue:function(n,t){var i=this.categoryMode()==0?this.f3-1:this.f3,r;return i<0&&(i=0),r=i>=1?n/i:i==0?.5:NaN,this.bf()&&(r=1-r),t.c.left()+t.c.width()*(r-t.d.left())/t.d.width()},getUnscaledValue:function(n,t){return this.getUnscaledValue2(n,t.d,t.c,this.categoryMode())},getUnscaledValue2:function(n,t,i,r){var f=t.left()+(n-i.left())*t.width()/i.width(),u;return this.bf()&&(f=1-f),u=r==0?this.f3-1:this.f3,u<0&&(u=0),f*u},dv:function(i){var s,h,f,c,w,ft,lt,at,e,g,b,k,d,vt,v,yt,nt,p,pt,wt;t.$hb.dv.call(this,i);var a=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=this.fb(),o=new t.iu(a,r,this.isInverted()),tt=this.aq().au(),it=this.aq().ax(),rt=this.aq().av(),ut=this.aq().aw(),bt=this.aq().e(),kt=this.aq().f(),dt=this.aq().g(),y=this.fm();if((this.dz(),this.dc(tt),this.dc(it),this.dc(rt),this.dc(ut),this.bx().clear(),this.bv().clear(),this.ft().clear(),this.aq().ap(this,a,r),(a.isEmpty()||r.isEmpty())&&this.a2().c(0),this.a2().c()==0&&this.aq().v(),this.labelSettings()!=null&&this.labelSettings().registerAxis(this),this.itemsSource()!=null&&y!=null&&y.count()!=0)&&!a.isEmpty()&&!r.isEmpty()){s=this.getUnscaledValue(r.left(),o);h=this.getUnscaledValue(r.right(),o);this.isInverted()?(s=Math.ceil(s),h=Math.floor(h)):(s=Math.floor(s),h=Math.ceil(h));f=r.bottom();c=f-r.top();this.crossingAxis()!=null&&(w=n.ig.util.cast(t.$iq.$type,this.crossingAxis()),w!=null&&(ft=new t.iu(a,r,w.isInverted()),f=this.crossingValue(),f=w.getScaledValue(f,ft),c=f-r.top(),f<r.top()?f=r.top():f>r.bottom()&&(f=r.bottom()),c<0?c=0:c>r.height()&&(c=r.height())));this.dj(tt,f,r,bt);this.aq().ak(c);var et=Math.min(s,h),ot=Math.max(s,h),u=new t.jv(1,et,ot,r.width(),this.interval(),this.categoryMode()),st=Math.floor((+et)/u.e()),ht=Math.ceil((+ot)/u.e());if(!isNaN(st)&&!isNaN(ht)){var ct=st,gt=ht,l=this.getScaledValue(0+ct*u.e(),o);for(this.aq().al(this.getScaledValue(u.e(),o)),lt=Math.ceil(r.right()),at=Math.floor(r.left()),e=ct;e<=gt;++e){if(g=this.getScaledValue(0+(e+1)*u.e(),o),l<=r.right()&&(e%2==0&&this.d1(it,l,g,r),this.d0(rt,l,r,kt),this.ft().add(l),this.categoryMode()!=0&&this.f6()!=0&&this.bo()))for(b=0;b<u.e();b++)for(k=0;k<this.f6();k++)d=this.getGroupCenter(k,a,r),this.isInverted()&&(d=-d),vt=this.getScaledValue(b+e*u.e(),o)+d,this.d0(ut,vt,r,dt);v=l;this.categoryMode()!=0&&(yt=this.getScaledValue(e*u.e()+1,o),v=(l+yt)/2);nt=Math.round(v);nt>=at&&nt<=lt&&(p=0,p=u.e()>=1?e*Math.floor(u.e()):e*u.e()*2%2==0?Math.floor(e*u.e()):-1,y!=null&&p<y.count()&&p>=0&&(pt=y.item(p),wt=this.cd(pt),isNaN(v)||Number.isInfinity(v)||(this.bx().add(wt),this.bv().add(new t.h7(v)))));l=g}}(this.labelSettings()==null||this.labelSettings().visibility()==0)&&this.crossingAxis()!=null&&this.labelSettings()!=null&&(this.labelSettings().location()==4||this.labelSettings().location()==5)&&this.seriesViewer().gu();this.aq().aq(this.bx(),this.bv());this.gq()}},br:function(){var n,i;return this.fm()==null?!1:(n=this.fm().count(),n!=this.g4())?(i=new t.il(1,1,this.g4(),n),this.g4(n),this.dr(i),!0):!1},interval:function(n){return arguments.length===1?(this.g(t.$u5.intervalProperty,n),n):this.c(t.$u5.intervalProperty)},fp:function(n){if(n==null)return!1;var t=this.av();return t==null?!1:t.synchronizeHorizontally()},an:function(){return 0},$type:new n.ig.Type("CategoryXAxis",t.$hb.$type)},!0);n.ig.util.defType("CategoryXAxisView:u6","CategoryAxisBaseView",{_a9:null,a9:function(n){return arguments.length===1?(this._a9=n,n):this._a9},init:function(n){t.$jt.init.call(this,n);this.a9(n)},$type:new n.ig.Type("CategoryXAxisView",t.$jt.$type)},!0);n.ig.util.defType("CategoryYAxis:l4","CategoryAxisBase",{ap:function(){return new t.l5(this)},dl:function(n){t.$hb.dl.call(this,n);this.g0(n)},_g0:null,g0:function(n){return arguments.length===1?(this._g0=n,n):this._g0},isVertical:function(){return!0},getCategoryBoundingBox:function(n,t,i){return this.getCategoryBoundingBoxHelper(n,t,i,!0)},init:function(){this.g3=1;this.g2=1;t.$hb.init.call(this);this.ft(new t.bh(Number,0));this.y(t.$l4.$type)},interval:function(n){return arguments.length===1?(this.g(t.$l4.intervalProperty,n),n):this.c(t.$l4.intervalProperty)},g3:0,g5:function(n){return arguments.length===1?(this.g3=n,n):this.g3},g2:0,g4:function(n){return arguments.length===1?(this.g2=n,n):this.g2},getScaledValue:function(n,t){var i=this.categoryMode()==0?this.f3-1:this.f3,r;return i<0&&(i=0),r=i>=1?n/i:i==0?.5:NaN,this.bf()||(r=1-r),t.c.top()+t.c.height()*(r-t.d.top())/t.d.height()},getUnscaledValue:function(n,t){return this.getUnscaledValue2(n,t.d,t.c,this.categoryMode())},getUnscaledValue2:function(n,t,i,r){var f=t.top()+(n-i.top())*t.height()/i.height(),u;return this.bf()||(f=1-f),u=r==0?this.f3-1:this.f3,u<0&&(u=0),f*u},ai:function(){return new t.i0},getCategorySize:function(n,t){return t.height()/(this.f3*n.height())},fy:function(n,i){var u=0,r,f,e;return isNaN(this.gap())||(u=t.$es.c(this.gap(),0,1)),r=0,isNaN(this.overlap())||(r=Math.min(this.overlap(),1)),f=1-.5*u,e=this.getCategorySize(n,i)*f/(this.f6()-(this.f6()-1)*r),e},getGroupCenter:function(n,i,r){var e=.5,u,f;if(this.f6()>1){u=0;isNaN(this.gap())||(u=t.$es.c(this.gap(),0,1));f=0;isNaN(this.overlap())||(f=Math.min(this.overlap(),1));var o=1-.5*u,s=o/(this.f6()-(this.f6()-1)*f),h=(o-s)/(this.f6()-1);e=.25*u+.5*s+n*h}return this.getCategorySize(i,r)*e},scrollIntoView:function(n){var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),e=this.fb(),u=new t.x(0,0,0,1,1),o=new t.iu(u,u,this.isInverted()),f=!i.isEmpty()&&!e.isEmpty()&&this.fm()!=null?this.fm().indexOf(n):-1,r=f>-1?this.getScaledValue(f,o):NaN;!isNaN(r)&&this.seriesViewer().b0()&&(isNaN(r)||(r<i.top()+.1*i.height()&&(r=r+.4*i.height(),i.y(r-.5*i.height())),r>i.bottom()-.1*i.height()&&(r=r-.4*i.height(),i.y(r-.5*i.height()))),this.seriesViewer().i9(i))},br:function(){var n,i;return this.fm()==null?!1:(n=this.fm().count(),n!=this.g4())?(i=new t.il(1,1,this.g4(),n),this.g4(n),this.dr(i),!0):!1},fp:function(n){if(n==null)return!1;var t=this.av();return t==null?!1:t.synchronizeVertically()},dv:function(i){var s,h,f,c,p,rt,e,d,w,b,k,ht,a,ct,y,lt,at;t.$hb.dv.call(this,i);var v=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=this.fb(),o=new t.iu(v,r,this.isInverted()),g=this.aq().au(),nt=this.aq().ax(),tt=this.aq().av(),it=this.aq().aw(),vt=this.aq().e(),yt=this.aq().f(),pt=this.aq().g();if((this.dz(),this.dc(g),this.dc(nt),this.dc(tt),this.dc(it),this.bx().clear(),this.bv().clear(),this.ft().clear(),this.aq().ap(this,v,r),(v.isEmpty()||r.isEmpty())&&this.a2().c(0),this.a2().c()==0&&this.aq().v(),this.labelSettings()!=null&&this.labelSettings().registerAxis(this),this.itemsSource()!=null&&this.fm()!=null&&this.fm().count()!=0)&&!v.isEmpty()&&!r.isEmpty()){s=this.getUnscaledValue(r.top(),o);h=this.getUnscaledValue(r.bottom(),o);this.isInverted()?(s=Math.floor(s),h=Math.ceil(h)):(s=Math.ceil(s),h=Math.floor(h));f=r.left();c=0;this.crossingAxis()!=null&&(p=n.ig.util.cast(t.$l7.$type,this.crossingAxis()),p!=null&&(rt=new t.iu(v,r,p.isInverted()),f=this.crossingValue(),f=p.getScaledValue(f,rt),c=f-r.left(),f<r.left()?f=r.left():f>r.right()&&(f=r.right()),c<0?c=0:c>r.width()&&(c=r.width())));this.d0(g,f,r,vt);this.aq().ak(c);var ut=Math.min(s,h),ft=Math.max(s,h),u=new t.jv(1,ut,ft,r.height(),this.interval(),this.categoryMode()),et=Math.floor((+ut)/u.e()),ot=Math.ceil((+ft)/u.e());if(!isNaN(et)&&!isNaN(ot)){var st=et,wt=ot,l=this.getScaledValue(0+st*u.e(),o);for(this.aj().bd(this.getScaledValue(u.e(),o)),e=st;e<=wt;++e){if(d=this.getScaledValue(0+(e+1)*u.e(),o),l<=r.bottom()&&(e%2==0&&this.dk(nt,l,d,r),this.dj(tt,l,r,yt),this.ft().add(l),this.categoryMode()!=0&&this.f6()!=0&&this.bo()))for(w=0;w<u.e();w++)for(b=0;b<this.f6();b++)k=this.getGroupCenter(b,v,r),this.isInverted()||(k=-k),ht=this.getScaledValue(w+e*u.e(),o)+k,this.dj(it,ht,r,pt);a=l;this.categoryMode()!=0&&(ct=this.getScaledValue(e*u.e()+1,o),a=(l+ct)/2);a<=r.bottom()&&a>=r.top()&&(y=0,y=u.e()>=1?e*Math.floor(u.e()):e*u.e()*2%2==0?Math.floor(e*u.e()):-1,this.fm()!=null&&y<this.fm().count()&&y>=0&&(lt=this.fm().item(y),at=this.cd(lt),isNaN(a)||Number.isInfinity(a)||(this.bx().add(at),this.bv().add(new t.h7(a)))));l=d}}(this.labelSettings()==null||this.labelSettings().visibility()==0)&&this.crossingAxis()!=null&&this.labelSettings()!=null&&(this.labelSettings().location()==6||this.labelSettings().location()==7)&&this.seriesViewer().gu();this.aq().aq(this.bx(),this.bv());this.gq()}},an:function(){return 1},$type:new n.ig.Type("CategoryYAxis",t.$hb.$type)},!0);n.ig.util.defType("CategoryYAxisView:l5","CategoryAxisBaseView",{_a9:null,a9:function(n){return arguments.length===1?(this._a9=n,n):this._a9},init:function(n){t.$jt.init.call(this,n);this.a9(n)},$type:new n.ig.Type("CategoryYAxisView",t.$jt.$type)},!0);n.ig.util.defType("HorizontalAxisLabelPanelBase:ji","AxisLabelPanelBase",{init:function(){t.$he.init.call(this)},aa:function(){return new t.jj(this)},bu:function(n){t.$he.bu.call(this,n);this.b8(n)},_b8:null,b8:function(n){return arguments.length===1?(this._b8=n,n):this._b8},_ck:0,ck:function(n){return arguments.length===1?(this._ck=n,n):this._ck},_ch:0,ch:function(n){return arguments.length===1?(this._ch=n,n):this._ch},_cj:0,cj:function(n){return arguments.length===1?(this._cj=n,n):this._cj},_ci:0,ci:function(n){return arguments.length===1?(this._ci=n,n):this._ci},bm:function(){this.b8().au()},ca:function(){return this.ac()!=null&&this.ac().g()&&this.a3()%360!=0},cb:function(){return this.ai()&&!this.ak()},au:function(){var i=this,u=new t.bh(t.$x.$type,0),c,v,y,p,g,e,w,b,r,tt,it,st,rt,ut,ft,o,d;if(i.al(!1),i.ak(!1),i.am(!1),c=i.ac()!=null?i.ac().angle():0,v=c*3.14159265358979/180,i.ca()&&i.ak(!0),i.b8().av(u,v),i.ai(i.ai()||i.ah(u)),i.ai()?i.cm(u):i.cn(),i.z().a9()?i.ab().aa():(y=c*(3.14159265358979/180),p=Math.abs(i.cj()*Math.sin(y))+Math.abs(i.ci()*Math.cos(y)),p+=i.ab().o()+i.ab().l(),g=i.a9(),i.a0(p+g+i.z().by())),i.ak())for(e=0;e<u.count();e++)w=u.__inner[e],w.x(i.ar().__inner[e].a()),u.__inner[e]=w;if(b=0,i.cb()&&(b=function(){var n=i.be(i.ch(),u);return u=n.rectangles,n.ret}()),i.ai()&&!i.al()&&b>0&&i.b8().at()&&i.am(!0),i.ai()&&i.b9()){var s=i.b3().width(),et=i.cf(),ot=i.ce(),k=i.ar().count()>1?i.ar().__inner[1].a()-i.ar().__inner[0].a():s,f=Math.abs(k*.8),nt=0,l=Math.abs(Math.atan(i.ch()/k)*180/3.14159265358979);for(r=0;r<u.count();r++){i.ag()&&(r>0&&r<u.count()-1?(tt=i.ar().count()>1?i.ar().__inner[r].a()-(u.__inner[r-1].x()+u.__inner[r-1].width()):s,it=i.ar().count()>1?u.__inner[r+1].x()-i.ar().__inner[r].a():s,f=Math.abs(Math.min(Math.abs(tt*2),Math.abs(it*2))*.8)):(r==0&&(st=i.ar().count()>1?u.__inner[r+1].x()-i.ar().__inner[r].a():s,f=Math.abs(k*2*.8)),r==u.count()-1&&(rt=i.ar().count()>1?i.ar().__inner[r].a()-(u.__inner[r-1].x()+u.__inner[r-1].width()):s,f=Math.abs(rt*2*.8))));ut=Math.min(u.__inner[r].width(),f);nt=i.ak()?i.ar().__inner[r].a():i.ar().__inner[r].a()-ut/2;var a=t.$ec.e(c),ht=a>=l&&a<=180-l||a>=180+l&&a<=360-l,h=u.__inner[r];i.ak()&&ht&&(ft=i.bc(i.at().__inner[r]),f=Math.min(et/Math.abs(Math.sin(v)),ft));h.x(nt);h.width(Math.min(f,h.width()));u.__inner[r]=h;n.ig.util.cast(t.$b9.$type,i.at().__inner[r])!==null||i.at().__inner[r].width(Math.min(f,h.width()));o=n.ig.util.cast(t.$b9.$type,i.at().__inner[r]);o!=null&&(d=i.bh(r,o,f),i.am()?o.height(ot):o.aa().equals(d)||(o.aa(d),i.at().__inner[r].width(Math.min(f,i.a2(i.at().__inner[r]))),i.cj(Math.min(i.cj(),i.at().__inner[r].width()))))}}return i.cc()&&i.cl(u),u},cl:function(n){this.b8().aw(n)},cm:function(){},cn:function(){},bx:function(n){var r=this,h=0,c=r.ci()/2,u=new t.ee,i=t.$ec.e(r.a3()),e=function(){var n=new t.eh;return n.h(i),n.i(h),n.j(c),n}(),f=0,o=0,s;i!=0&&i!=360&&(i>0&&i<180?f=-Math.sin(t.$es.u(i))*(r.ci()/2):(e.i(r.cj()),o=-r.cj(),f=-Math.sin(t.$es.u(i-180))*(r.ci()/2)));s=function(){var n=new t.eg;return n.i(f),n.h(o),n}();u.h().add(e);u.h().add(s);n.h(u)},cc:function(){return!this.al()&&!this.ak()},b9:function(){return!0},be:function(n,i){var r=0,e=new t.bh(t.$x.$type,0),o=this.cg()+this.b3().top(),s=this.cf(),h=o+s,f,u;if(n*3<=this.ay)r=3;else if(n*2<=this.ay)r=2;else return{ret:r,rectangles:i};for(f=0;f<i.count();f++)u=i.__inner[f].duplicate(),f%r==0?u.y(o):f%r==r-1?u.y(h-u.height()):u.y(o+s/2-u.height()/2),e.add(u);return this.ai(this.ah(e)),this.ai()||(this.al(!0),i=e),{ret:r,rectangles:i}},b2:function(){var o=this.af(this.z().titleSettings()),u=this.a9(),i=this.ad(),n=0;o==3?(n+=this.b3().top(),(i==1||i==5)&&(n+=this.z().by())):(n=this.b3().bottom()-u,(i==4||i==0)&&(n-=this.z().by()));var r=this.bb(),f=0,e=this.z().titleSettings()==null?1:this.z().titleSettings().horizontalAlignment();return f=e==0?this.b3().left():e==2?this.b3().right()-r:this.b3().left()+this.b3().width()/2-r/2,new t.x(0,f,n,r,u)},b7:function(n){var f,u,r,i;for(this.y().contains(this.z().d5())==!1&&this.z().d5()!=null&&this.y().add(this.z().d5()),f=this.y().getEnumerator();f.moveNext();)u=f.current(),u!=this.z().d5()&&u!=this.ab().ar()&&this.ab().ae(u);return r=this.z()==null||this.ay<=0||isNaN(this.ay)?50:this.ay,this.z()!=null&&(this.z().bw()==null||this.z().bw().count()==0)&&this.ac()!=null&&!isNaN(this.ac().extent())&&this.z().a9()&&(r=this.ac().extent()),r>n.a()&&(r=n.a()),i=new t.y(50,r),Number.isInfinity(i.b())&&i.b(50),Number.isInfinity(i.a())&&i.a(50),i},cg:function(){var n=0,i=this.af(this.z().titleSettings()),t;return i==3&&(n+=this.a9()),t=this.ad(),(t==1||t==5)&&(n+=this.z().by()),n},cd:function(){var n=0,i=this.af(this.z().titleSettings()),t;return i==4&&(n+=this.a9()),t=this.ad(),(t==0||t==4)&&(n+=this.z().by()),n},cf:function(){var n=this.ay-this.cg()-this.cd();return n<0&&(n=0),n},ce:function(){var n=this.cf()-this.ab().o()-this.ab().l();return n<0&&(n=0),n},bo:function(){var f=this.ab().ap(),e,t,n,i,r,o,u,s;if((this.z().dc(f),this.ac()==null||this.ac().visibility()==0)&&(e=this.z().by(),e!=0)&&(t=this.ao(),t!=null)){for(n=this.b3().top(),r=this.ad(),r==0||r==4?(n=this.b3().bottom(),i=n-this.z().by()):i=n+this.z().by(),o=this.ab().b(),u=t.getEnumerator();u.moveNext();)s=u.current(),this.b0(f,s,n,i,this.b4(),o);this.y().contains(this.ab().ar())||this.y().add(this.ab().ar())}},$type:new n.ig.Type("HorizontalAxisLabelPanelBase",t.$he.$type)},!0);n.ig.util.defType("HorizontalAxisLabelPanel:lm","HorizontalAxisLabelPanelBase",{init:function(){t.$ji.init.call(this)},ae:function(){return 1},an:function(n){return n==5||n==4||n==1||n==0},$type:new n.ig.Type("HorizontalAxisLabelPanel",t.$ji.$type)},!0);n.ig.util.defType("HorizontalAxisLabelPanelBaseView:jj","AxisLabelPanelBaseView",{_as:null,as:function(n){return arguments.length===1?(this._as=n,n):this._as},init:function(n){t.$hf.init.call(this,n);this.as(n)},au:function(){},av:function(n,i){var v=this.a().a9(),y=this.as().cg(),r,h,c,f,u,e,o,s,l,a;this.as().ch(-Number.MAX_VALUE);this.as().ck(-Number.MAX_VALUE);this.as().ci(-Number.MAX_VALUE);this.as().cj(-Number.MAX_VALUE);var p=this.m(),w=this.n(),b=this.o(),k=this.l(),d=this.a().b3().top(),g=this.a().b3().height()-v;for(r=0;r<this.a().at().count();r++){if(this.a().ar()==null||r>=this.a().ar().count())break;s=this.a().at().__inner[r];e=this.j(s);o=this.i(s);u=e+p+w;f=o+b+k;h=this.a().ak()?this.a().ar().__inner[r].a():this.a().ar().__inner[r].a()-u/2;c=d+y;this.as().ch(Math.max(f,this.as().ch()));this.as().ck(Math.max(u,this.as().ck()));this.as().ci(Math.max(o,this.as().ci()));this.as().cj(Math.max(e,this.as().cj()));l=new t.x(0,h,c,u,f);n.add(l);a=u*Math.abs(Math.sin(i));this.a().ai(a>g)}},at:function(){return!1},aw:function(n){var l=this.a().a9(),r,f,i,t,e;r=this.as().cg();f=this.as().cd();var o=this.a().ac()!=null?this.a().ac().verticalAlignment():1,a=this.a().ay,s=n.count(),u=this.a().b3(),h=this.as().cf(),c=h/2;for(i=0;i<s;i++){t=n.__inner[i];e=t.height()/2;switch(o){case 0:t.y(u.top()+r);break;case 1:case 3:t.y(u.top()+r+c-e);break;case 2:t.y(u.bottom()-f-t.height())}}},$type:new n.ig.Type("HorizontalAxisLabelPanelBaseView",t.$hf.$type)},!0);n.ig.util.defType("NumericAxisBase:hl","Axis",{ap:function(){return new t.hm(this)},dl:function(n){t.$hc.dl.call(this,n);this.fj(n)},_fj:null,fj:function(n){return arguments.length===1?(this._fj=n,n):this._fj},isNumeric:function(){return!0},init:function(){t.$hc.init.call(this);this.gc(10)},minimumValue:function(n){return arguments.length===1?(this.g(t.$hl.minimumValueProperty,n),n):this.c(t.$hl.minimumValueProperty)},actualMinimumValue:function(n){if(arguments.length===1){if(this.actualMinimumValue()!=n){var t=this.f2;this.f2=n;this.f6(Math.log(this.actualMinimumValue()));this.dq("ActualMinimumValue",t,this.actualMinimumValue())}return n}return this.f2},f2:0,_f6:0,f6:function(n){return arguments.length===1?(this._f6=n,n):this._f6},maximumValue:function(n){return arguments.length===1?(this.g(t.$hl.maximumValueProperty,n),n):this.c(t.$hl.maximumValueProperty)},actualMaximumValue:function(n){if(arguments.length===1){if(this.actualMaximumValue()!=n){var t=this.f0;this.f0=n;this.f5(Math.log(this.actualMaximumValue()));this.dq("ActualMaximumValue",t,this.actualMaximumValue())}return n}return this.f0},f0:0,_f5:0,f5:function(n){return arguments.length===1?(this._f5=n,n):this._f5},interval:function(n){return arguments.length===1?(this.g(t.$hl.intervalProperty,n),n):this.c(t.$hl.intervalProperty)},referenceValue:function(n){return arguments.length===1?(this.g(t.$hl.referenceValueProperty,n),n):this.c(t.$hl.referenceValueProperty)},isLogarithmic:function(n){return arguments.length===1?(this.g(t.$hl.isLogarithmicProperty,n),n):this.c(t.$hl.isLogarithmicProperty)},fs:!1,actualIsLogarithmic:function(n){if(arguments.length===1){if(this.actualIsLogarithmic()!=n){var t=this.fs;t!=n&&(this.fs=n,this.dq("ActualIsLogarithmic",t,this.actualIsLogarithmic()))}return n}return this.fs},fy:function(){return this.actualIsLogarithmic()&&this.actualMinimumValue()>0&&this.gc()>1},logarithmBase:function(n){return arguments.length===1?(this.g(t.$hl.logarithmBaseProperty,n),n):this.c(t.$hl.logarithmBaseProperty)},_gc:0,gc:function(n){return arguments.length===1?(this._gc=n,n):this._gc},_fl:null,fl:function(n){return arguments.length===1?(this._fl=n,n):this._fl},_fz:!1,fz:function(n){return arguments.length===1?(this._fz=n,n):this._fz},dv:function(i){var r=this,u,f;if(t.$hc.dv.call(r,i),r.fy()&&r.seriesViewer()!=null){if(u=r.fm(r.fb(),r.seriesViewer().actualWindowRect()),u==null)return;for(f=0;f<u.j().count();f++){var o=r.logarithmBase(),e=u.j().__inner[f],s=Math.min(e.d(),e.c()),h=Math.max(e.d(),e.c()),c=Math.floor(Math.logBase(s,o)),l=Math.ceil(Math.logBase(h,o));l-c<2?n.ig.util.cast(t.$ig.$type,r.fp)!==null&&(r.fp=new t.ij):r.fp=r.tickmarkValues()!=null?r.tickmarkValues():function(){var n=new t.ig;return n.t(o),n}()}}},dn:function(n,i,r,u){t.$hc.dn.call(this,n,i,r,u);switch(i){case"MinimumValue":this.updateRange();this.du(!1);break;case"MaximumValue":this.updateRange();this.du(!1);break;case"IsLogarithmic":this.fz(!0);this.actualIsLogarithmic(this.isLogarithmic());break;case"CrossingValue":case"CrossingAxis":case"Interval":this.bl(!0);this.du(!1);break;case"LogarithmBase":this.fz(!0);this.gc(this.logarithmBase());this.actualIsLogarithmic()&&(this.updateRange(),this.gq(),this.du(!1));break;case"ReferenceValue":var f=new t.il(this.actualMinimumValue(),this.actualMinimumValue(),this.actualMaximumValue(),this.actualMaximumValue());this.dr(f);this.bl(!0);this.du(!1);break;case"LabelSettings":this.fl(this.fk());this.bl(!0);this.du(!1);break;case"TickmarkValues":this.gs();break;case"ActualIsLogarithmic":this.updateRange();this.gq();this.bl(!0);this.gs();this.du(!1);break;case"ActualTickmarkValues":this.bl(!0);this.du(!1)}},gq:function(){for(var n=this.bu().getEnumerator(),t;n.moveNext();)t=n.current(),t.renderSeries(!1)},fi:function(){var n=new t.im(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY),u=!1,r,f,i;if(this.seriesViewer()!=null)for(r=this.bu().getEnumerator();r.moveNext();)f=r.current(),i=f.ad(this),i!=null&&(u=!0,n=new t.im(Math.min(n.c(),i.c()),Math.max(n.b(),i.b())));return u?n:null},go:function(n,i,r,u,f,e,o){var s=this;return function(){var s=t.$ip.c(n,i,r,u,f,e,o);return e=s.minimumValue,o=s.maximumValue,s.ret}(),{actualMinimumValue:e,actualMaximumValue:o}},br:function(){var n=this,f=n.actualIsLogarithmic()&&!isNaN(n.logarithmBase())&&!Number.isInfinity(n.logarithmBase())&&n.logarithmBase()>1,i,r,u;return(function(){var t=n.go(n,n.minimumValue(),n.maximumValue(),f,n.logarithmBase(),i,r);return i=t.actualMinimumValue,r=t.actualMaximumValue,t.ret}(),i!=n.actualMinimumValue()||r!=n.actualMaximumValue()||n.fz())?(n.fz(!1),u=new t.il(n.actualMinimumValue(),i,n.actualMaximumValue(),r),n.actualMinimumValue(i),n.actualMaximumValue(r),n.dr(u),n.gr(u),n.du(!0),!0):!1},gr:function(){},registerSeries:function(n){var i=t.$hc.registerSeries.call(this,n);return i&&this.updateRange(),i},deregisterSeries:function(n){var i=t.$hc.deregisterSeries.call(this,n);return i&&this.updateRange(),i},fk:function(){var n=this,r=function(){var i=new t.h9;return i.a(n),i.e(n.bv()),i.f(n.bx()),i.b(n.aj()),i}(),i;return n.labelSettings()!=null&&n.labelSettings().registerAxis(n),i=new t.hn(r),i.t(function(){var t=n.aq().au(),i=n.aq().ax(),r=n.aq().av(),u=n.aq().aw();n.dz();n.dc(t);n.dc(i);n.dc(r);n.dc(u)}),i.n(function(n,t){return!t.isEmpty()&&!n.isEmpty()}),i.c(function(t,i){return n.fm(t,i)}),i.f(function(t){return n.cd(t)}),i},fn:function(){return new t.i3},gp:function(){},fo:function(){return null},fm:function(n,t){var i=this.fn(),r=this.aq().au(),u=this.aq().ax(),f=this.aq().av(),e=this.aq().aw(),o=this.aq().e(),s=this.aq().f(),h=this.aq().g();return i.q(r),i.t(u),i.r(f),i.s(e),i.a(o),i.c(s),i.d(h),i.k(this.actualMaximumValue()),i.l(this.actualMinimumValue()),i.h(this.hasUserMaximum()),i.f(this.actualTickmarkValues()),i.u(n),i.v(t),i.g(this.fu()),i.n(this.interval()),i.p(this.label()),this.label()==null&&this.formatLabel()!=null&&i.p("Format"),i.i(this.bo()),i},unscaleValue:function(n){var i=new t.iu(this.seriesViewer().windowRect(),this.fb(),this.isInverted());return i.b=this.seriesViewer().effectiveViewport(),this.getUnscaledValue(n,i)},fu:function(){return!isNaN(this.interval())},hasUserMinimum:function(){return!isNaN(this.minimumValue())},hasUserMaximum:function(){return!isNaN(this.maximumValue())},gs:function(){this.tickmarkValues()!=null?this.actualTickmarkValues(this.tickmarkValues()):this.actualIsLogarithmic()?(this.actualTickmarkValues(new t.ig),this.fj().a8()):this.actualTickmarkValues(new t.ij)},tickmarkValues:function(i){return arguments.length===1?(this.g(t.$hl.tickmarkValuesProperty,i),i):n.ig.util.cast(t.$ht.$type,this.c(t.$hl.tickmarkValuesProperty))},fp:null,actualTickmarkValues:function(n){if(arguments.length===1){var t=this.fp,i=t!=n;return i&&(this.fp=n,this.dq("ActualTickmarkValues",t,n)),n}return this.fp==null&&this.gs(),this.fp},$type:new n.ig.Type("NumericAxisBase",t.$hc.$type)},!0);n.ig.util.defType("NumericAngleAxis:jl","NumericAxisBase",{ap:function(){return new t.jn(this)},dl:function(n){t.$hl.dl.call(this,n);this.g0(n)},_g0:null,g0:function(n){return arguments.length===1?(this._g0=n,n):this._g0},_g3:null,g3:function(n){return arguments.length===1?(this._g3=n,n):this._g3},isAngular:function(){return!0},init:function(){this.g4=!1;this.g5=NaN;this.g6=0;t.$hl.init.call(this);this.y(t.$jl.$type);this.g3(new t.jc);this.fl(this.fk())},ai:function(){var i=this,r=new t.jo;return r.cf(function(r){var u=i.seriesViewer()!=null?i.seriesViewer().actualWindowRect():t.$x.empty(),f=u.isEmpty()?t.$x.empty():i.fb();return i.hb(r,{__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u,f,i.aj().a0())}),r},g7:function(){return this.g2()==null?0:this.a8()?this.g2().getScaledValue2(this.crossingValue()):this.g2().ha()},g9:function(n){return Math.round(n*Math.pow(10,10))/Math.pow(10,10)},g4:!1,g5:0,fk:function(){var i=this,r=t.$hl.fk.call(i);return r.b().c(function(r){var u,e,f;if((i.labelSettings()==null||i.labelSettings().visibility()==0)&&i.g2()!=null&&i.g5!=r){if(u=n.ig.util.cast(t.$bd.$type,i.seriesViewer()),u==null)return;for(i.g5=r,i.aj().az(r),u.gu(),e=u.axes().getEnumerator();e.moveNext();)f=e.current(),f!=i&&n.ig.util.cast(t.$jo.$type,f.aj())!==null&&f.aq().aa()}}),r.d(function(n){n.m(i.g7());n.o(n.m())}),r.i(function(r){var u=n.ig.util.cast(t.$je.$type,r);u.e()==u.j().__inner[0]&&i.g3().i(r.q(),r.m(),r.u(),r.v(),u.center(),u.minAngle(),u.maxAngle())}),r.j(function(r,u,f){var e=n.ig.util.cast(t.$je.$type,r);i.g3().m(u,f,r.u(),r.v(),e.minLength(),e.maxLength(),e.center())}),r.k(function(r,u,f,e){var o=n.ig.util.cast(t.$je.$type,r);i.g3().n(u,f,e,o.u(),r.v(),o.minLength(),o.maxLength(),o.center())}),r.c(function(r,u){return n.ig.util.cast(t.$je.$type,i.fm(r,u))}),r.u(function(){i.g4||(i.g4=!0,i.g2().updateRange(),i.g4=!1)}),r.l(function(n,t){return i.getScaledAngle(t)}),r.n(function(n,t){return!t.isEmpty()&&!n.isEmpty()&&i.g2()!=null}),r.p(function(n,t){return i.g9(t-i.g6)<0?!1:i.g9(t-i.g6-2*3.14159265358979)>0?!1:!0}),r.o(function(r,u,f){var o=n.ig.util.cast(t.$je.$type,r),s=i.hb(i.getScaledAngle(o.k()),o.center(),r.v(),r.u(),0),e=i.hb(u,o.center(),r.v(),r.u(),0);return f&&t.$es.j(s.__x-e.__x,s.__y-e.__y)<2?!1:e.__x<r.u().right()&&e.__x>=r.u().left()&&e.__y<r.u().bottom()&&e.__y>=r.u().top()?!0:!1}),r.q(function(i,r){return r<i.l()&&n.ig.util.cast(t.$ig.$type,i.f())!==null?i.l():r>i.k()&&(n.ig.util.cast(t.$ig.$type,i.f())!==null||i.h())?i.k():r}),r},hb:function(i,r,u,f,e){var c=this.g7(),h=t.$jd.b(e,u,f),o,s;return this.labelSettings()!=null&&(this.labelSettings().c()==5||this.labelSettings().c()==1)&&(h*=-1),o=r.__x+(c+h)*Math.cos(i),s=r.__y+(c+h)*Math.sin(i),o=t.$jd.c(o,u,f),s=t.$jd.f(s,u,f),{__x:o,__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getScaledValue:function(n){return this.getScaledAngle(n)},getScaledAngle1:function(n,t,i){var r=0;return r=t?(Math.log(n)-this.f6())/(this.f5()-this.f6()):(n-this.actualMinimumValue())/(this.actualMaximumValue()-this.actualMinimumValue()),i&&(r=1-r),r*2*3.14159265358979+this.g6},getScaledAngle:function(n){return this.getScaledAngle1(n,this.fy(),this.bf())},getUnscaledAngle:function(n){var t=(n-this.g6)/(2*3.14159265358979);return this.isInverted()&&(t=1-t),this.fy()?Math.exp(t*(this.f5()-this.f6())+this.f6()):this.actualMinimumValue()+t*(this.actualMaximumValue()-this.actualMinimumValue())},startAngleOffset:function(n){return arguments.length===1?(this.g(t.$jl.startAngleOffsetProperty,n),n):this.c(t.$jl.startAngleOffsetProperty)},g6:0,dn:function(i,r,u,f){var e,o,h,c,l,v,a,s;t.$hl.dn.call(this,i,r,u,f);e=n.ig.util.cast(t.$bd.$type,this.seriesViewer());switch(r){case"CrossingAxis":o=n.ig.util.cast(t.$i7.$type,f);this.hf(o);o!=null&&o.hk(this);this.du(!1);break;case"StartAngleOffset":for(this.g6=this.startAngleOffset();this.g6<0;)this.g6+=360;while(this.g6>=360)this.g6-=360;for(this.g6=this.startAngleOffset()*3.14159265358979/180,this.du(!1),h=this.bu().getEnumerator();h.moveNext();)c=h.current(),c.renderSeries(!1),c.gy();break;case"Label":if(e!=null)for(l=e.axes().getEnumerator();l.moveNext();)v=l.current(),v.renderAxis();break;case"CrossingValue":if(e!=null)for(a=e.axes().getEnumerator();a.moveNext();)s=a.current(),(n.ig.util.cast(t.$jl.$type,s)!==null||n.ig.util.cast(t.$jr.$type,s)!==null)&&s.renderAxis();break;case"LabelSettings":this.fl(this.fk());this.hd();this.bl(!0);this.du(!1)}},hd:function(){this.g5=NaN},fn:function(){return new t.je},fm:function(i,r){var u=n.ig.util.cast(t.$je.$type,t.$hl.fm.call(this,i,r)),l=this.g3().f(r),a=this.g3().g(r),v=.5*this.g2().g7(),s=.5*this.g2().g6(),e=l,o=a,f=this.g2().ha(),h,c;return isNaN(f)||Number.isInfinity(f)?null:(o>=v&&(o=f),e<s&&(e=s),h=i.width(),this.g3().k(r,u,this.actualMinimumValue(),this.actualMaximumValue(),this.isInverted(),this.getUnscaledAngle.runOn(this),h),c={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u.center(c),u.maxLength(o),u.minLength(e),u.effectiveMaximum(f),u)},getMinMaxAngle:function(n,t,i){var r=this;return function(){var u=r.g3().l(n,t,i);return t=u.minAngle,i=u.maxAngle,u.ret}(),{minAngle:t,maxAngle:i}},dv:function(n){t.$hl.dv.call(this,n);var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=i.isEmpty()?t.$x.empty():this.fb();this.fl().x(n,r,i)},g1:null,g2:function(i){if(arguments.length===1)return this.g1=i,i;if(this.g1!=null)return this.g1;var i=n.ig.util.cast(t.$bd.$type,this.seriesViewer());return i!=null?i.axes().ofType$1(t.$i7.$type).firstOrDefault$1(t.$i7.$type):this.g1},hf:function(n){this.g2(n)},d2:function(n,i){t.$hl.d2.call(this,n,i);(i.height()!=n.height()||i.width()!=n.width())&&this.updateRange()},an:function(){return 2},$type:new n.ig.Type("NumericAngleAxis",t.$hl.$type,[t.$jm.$type])},!0);n.ig.util.defType("NumericAxisBaseView:hm","AxisView",{_a7:null,a7:function(n){return arguments.length===1?(this._a7=n,n):this._a7},init:function(n){t.$hd.init.call(this,n);this.a7(n)},a8:function(){},$type:new n.ig.Type("NumericAxisBaseView",t.$hd.$type)},!0);n.ig.util.defType("NumericAngleAxisView:jn","NumericAxisBaseView",{_a9:null,a9:function(n){return arguments.length===1?(this._a9=n,n):this._a9},init:function(n){t.$hm.init.call(this,n);this.a9(n)},$type:new n.ig.Type("NumericAngleAxisView",t.$hm.$type)},!0);n.ig.util.defType("StraightNumericAxisBase:ir","NumericAxisBase",{init:function(){t.$hl.init.call(this);this.hf()},ap:function(){return new t.is(this)},dl:function(n){t.$hl.dl.call(this,n);this.g5(n)},_g5:null,g5:function(n){return arguments.length===1?(this._g5=n,n):this._g5},scaleMode:function(n){return arguments.length===1?(this.g(t.$ir.scaleModeProperty,n),n):this.c(t.$ir.scaleModeProperty)},scaler:function(n){return arguments.length===1?(this.g(t.$ir.scalerProperty,n),n):this.c(t.$ir.scalerProperty)},hd:function(i,r){var u=n.ig.util.cast(t.$ir.$type,i);u.hf();u.dq("Scaler",r.d(),r.c())},g3:function(){return null},g2:null,g1:function(n){var t,i;return arguments.length===1?(t=this.g2!=n,t&&(i=this.g2,this.g2=n,this.dq("ActualScaler",i,n)),n):(this.g2==null&&this.hf(),this.g2)},go:function(n,t,i,r,u,f,e){var o=this;return function(){var r=o.g1().r(n,t,i,f,e);return f=r.actualMinimumValue,e=r.actualMaximumValue,r.ret}(),{actualMinimumValue:f,actualMaximumValue:e}},he:function(n){var t=this.g6();this.g6(!0);n.invoke();this.g6(t)},_g6:!1,g6:function(n){return arguments.length===1?(this._g6=n,n):this._g6},hf:function(){var n=this.scaler();if(n==null&&(n=this.fo()),this.g1(n),this.g1()==null)throw new t.e0("ActualScaler");this.ha()},ha:function(){this.g5().ba()},dn:function(i,r,u,f){if(!this.g6()){t.$hl.dn.call(this,i,r,u,f);switch(r){case"LogarithmBase":this.hf();break;case"IsLogarithmic":this.hf();break;case"ScaleMode":this.hf();break;case"Scaler":this.hf();break;case"ActualScaler":this.actualIsLogarithmic(n.ig.util.cast(t.$iw.$type,this.g1())!==null);this.ha();this.updateRange();this.du(!1);break;case"ActualMaximumValue":this.hb();break;case"ActualMinimumValue":this.hc();this.hf()}}},hc:function(){this.g1().v(this.actualMinimumValue())},hb:function(){this.g1().u(this.actualMaximumValue())},$type:new n.ig.Type("StraightNumericAxisBase",t.$hl.$type)},!0);n.ig.util.defType("NumericRadiusAxis:i7","NumericAxisBase",{ap:function(){return new t.i8(this)},dl:function(n){t.$hl.dl.call(this,n);this.g2(n)},_g2:null,g2:function(n){return arguments.length===1?(this._g2=n,n):this._g2},isRadial:function(){return!0},g3:null,init:function(){this.g5=NaN;t.$hl.init.call(this);this.y(t.$i7.$type);this.g7(this.radiusExtentScale());this.g6(this.innerRadiusExtentScale());this.g3=new t.jc;this.fl(this.fk())},ai:function(){return new t.jh},_g4:!1,g4:function(n){return arguments.length===1?(this._g4=n,n):this._g4},g8:function(n){return n==null?0:n},g5:0,fk:function(){var i=this,r=t.$hl.fk.call(i);return r.b().c(function(n){(i.labelSettings()==null||i.labelSettings().visibility()==0)&&i.g1()!=null&&(i.labelSettings()==null||i.labelSettings().c()==4||i.labelSettings().c()==5)&&i.g5!=n&&(i.g5=n,i.aj().az(n),i.seriesViewer().gu())}),r.j(function(r,u,f){var e=n.ig.util.cast(t.$je.$type,r);i.g3.i(u,f,e.u(),e.v(),e.center(),e.minAngle(),e.maxAngle())}),r.k(function(r,u,f,e){if(f!=e){var o=n.ig.util.cast(t.$je.$type,r);i.g3.j(u,f,e,o.u(),o.v(),o.center(),o.minAngle(),o.maxAngle())}}),r.l(function(n,t){return i.getScaledValue2(t)}),r.p(function(i,r){var u=n.ig.util.cast(t.$je.$type,i);return r<=u.effectiveMaximum()}),r.m(function(i,r){var u=n.ig.util.cast(t.$je.$type,i);return r<=u.effectiveMaximum()}),r.i(function(r){var u=n.ig.util.cast(t.$je.$type,r);i.g3.m(r.q(),u.crossingAngleRadians(),r.u(),r.v(),u.minLength(),u.maxLength(),u.center())}),r.d(function(r){var u,f,e;r.m(i.labelSettings()==null||i.labelSettings().c()==4||i.labelSettings().c()==0?r.u().top():r.u().bottom());r.o(r.m());u=n.ig.util.cast(t.$je.$type,r);u.crossingAngleRadians(i.g8(i.crossingValue())*3.14159265358979/180);(i.labelSettings()==null||i.labelSettings().c()==4||i.labelSettings().c()==5)&&(u.m(t.$jd.f(.5,u.v(),u.u())-r.u().top()),u.o(u.m()),f=n.ig.util.cast(t.$jh.$type,i.aj()),f!=null&&(e=0,i.labelSettings()!=null&&i.labelSettings().c()==4&&(e=1),f.cv({__x:t.$jd.c(.5,u.v(),u.u()),__y:e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f.cs(u.crossingAngleRadians())))}),r.o(function(r,u){var f=n.ig.util.cast(t.$je.$type,r),s,h,e,o;return i.g1()==null?!1:u>f.effectiveMaximum()?!1:(s=!1,s=i.labelSettings()==null||i.labelSettings().c()==4||i.labelSettings().c()==5,h=0,s&&(h=i.g9()),e=f.center().__x+u*Math.cos(h),o=f.center().__y+u*Math.sin(h),e=t.$jd.c(e,f.v(),f.u()),o=t.$jd.f(o,f.v(),f.u()),e<=r.u().right()&&e>=r.u().left()&&(o<=r.u().bottom()&&o>=r.u().top()||!s))?!0:!1}),r.g(function(i,r){var u=n.ig.util.cast(t.$je.$type,i);return new t.h7(t.$jd.c(u.center().__x+r,u.v(),u.u()))}),r.q(function(n,t){return t<n.l()?n.l():t>n.k()?n.k():t}),r},getScaledValue:function(n){return this.getScaledValue2(n)},hc:function(n,t,i,r,u){var f=0;return f=t?n<=0?(Math.log(this.actualMinimumValue())-this.f6())/(this.f5()-this.f6()):(Math.log(n)-this.f6())/(this.f5()-this.f6()):(n-this.actualMinimumValue())/(this.actualMaximumValue()-this.actualMinimumValue()),i&&(f=1-f),f=u+f*(r-u),f/2},getScaledValue2:function(n){return this.hc(n,this.fy(),this.bf(),this.g7(),this.g6())},getUnscaledValue2:function(n){var t=n*2;return t=(t-this.g6())/(this.g7()-this.g6()),this.isInverted()&&(t=1-t),this.fy()?Math.exp(t*(this.f5()-this.f6())+this.f6()):this.actualMinimumValue()+t*(this.actualMaximumValue()-this.actualMinimumValue())},radiusExtentScale:function(n){return arguments.length===1?(this.g(t.$i7.radiusExtentScaleProperty,n),n):this.c(t.$i7.radiusExtentScaleProperty)},_g7:0,g7:function(n){return arguments.length===1?(this._g7=n,n):this._g7},innerRadiusExtentScale:function(n){return arguments.length===1?(this.g(t.$i7.innerRadiusExtentScaleProperty,n),n):this.c(t.$i7.innerRadiusExtentScaleProperty)},_g6:0,g6:function(n){return arguments.length===1?(this._g6=n,n):this._g6},dn:function(i,r,u,f){var s,l,h,c,e,o;switch(r){case"CrossingValue":this.g9(this.g8(this.crossingValue())*3.14159265358979/180)}t.$hl.dn.call(this,i,r,u,f);switch(r){case"RadiusExtentScale":for(this.g7(this.radiusExtentScale()),this.g7()<0&&this.g7(.1),this.g7()>1&&this.g7(1),this.g6()>=this.g7()&&(this.g6(this.g7()-.01),this.g6()<0&&(this.g6(0),this.g7(.01))),this.bl(!0),this.du(!1),this.g1()!=null&&this.g1().renderAxis(),s=this.bu().getEnumerator();s.moveNext();)l=s.current(),l.renderSeries(!1);break;case"InnerRadiusExtentScale":for(this.g6(this.innerRadiusExtentScale()),this.g6()<0&&this.g6(.1),this.g6()>1&&this.g6(1),this.g6()>=this.g7()&&(this.g6(this.g7()-.01),this.g6()<0&&(this.g6(0),this.g7(.01))),this.bl(!0),this.du(!1),this.g1()!=null&&this.g1().renderAxis(),h=this.bu().getEnumerator();h.moveNext();)c=h.current(),c.cl(!0),c.renderSeries(!1);this.seriesViewer()!=null&&this.seriesViewer().g2();break;case"CrossingAxis":e=n.ig.util.cast(t.$jl.$type,f);o=n.ig.util.cast(t.$jr.$type,f);e==null&&o==null&&this.hk(null);e!=null&&(this.hk(e),e.hf(this));o!=null&&(this.hk(o),o.hp(this));this.bl(!0);this.du(!1);break;case"IsInverted":this.g1()!=null&&(this.g1().bl(!0),this.g1().du(!1))}},_g9:0,g9:function(n){return arguments.length===1?(this._g9=n,n):this._g9},hk:function(n){this.g1(n)},g0:null,g1:function(i){var r,i;return arguments.length===1?(this.g0=i,i):(r=this,r.g0!=null)?r.g0:(i=n.ig.util.cast(t.$bd.$type,r.seriesViewer()),i!=null)?i.axes().where$1(t.$hc.$type,function(i){return n.ig.util.cast(t.$jl.$type,i)!==null||n.ig.util.cast(t.$jr.$type,i)!==null}).firstOrDefault$1(t.$hc.$type):r.g0},fn:function(){return new t.je},fm:function(i,r){var u=this,f=n.ig.util.cast(t.$je.$type,t.$hl.fm.call(u,i,r)),b=u.g3.f(r),k=u.g3.g(r),d=.5*u.g7(),g=.5*u.g6(),o,e,tt,it,c,l,y,a,v,p,w;r==t.$be.lj?(e=u.actualMaximumValue(),o=u.actualMinimumValue()):(e=Math.min(k,d),o=u.getUnscaledValue2(b),e=u.getUnscaledValue2(e),function(){var n=u.hl(i,r,o,e);return o=n.visibleMinimum,e=n.visibleMaximum,n.ret}());var nt={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},s=b,h=k,rt=Math.min(i.width(),i.height())*(u.g7()-u.g6())/2;return f.center(nt),tt=Math.max(h,s),it=Math.min(s,h),f.maxLength(tt),f.minLength(it),c=Math.min(o,e),l=Math.max(o,e),c<u.actualMinimumValue()&&(c=u.actualMinimumValue()),l>u.actualMaximumValue()&&(l=u.actualMaximumValue()),f.j().add(function(){var n=new t.hs;return n.d(c),n.c(l),n.b(rt),n}()),y=n.ig.util.cast(t.$jm.$type,u.g1()),y!=null&&(function(){var n=y.getMinMaxAngle(r,a,v);return a=n.minAngle,v=n.maxAngle,n.ret}(),f.minAngle(Math.min(a,v)),f.maxAngle(Math.max(a,v))),p=u.ha(),h>=d&&(h=p),s<g&&(s=g),f.minLength(s),f.maxLength(h),f.effectiveMaximum(p),f.f(u.actualTickmarkValues()),w=n.ig.util.cast(t.$ij.$type,f.f()),w!=null&&w.s(u.hg(nt,f.minLength(),f.maxLength(),r,i)),f},hl:function(i,r,u,f){var e={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},c=0,h,o,s;return c=this.isInverted()?this.getScaledValue2(this.actualMinimumValue()):this.getScaledValue2(this.actualMaximumValue()),h=0,this.crossingValue()!=null&&(h=this.g9()),o=e.__x+c*Math.cos(h),s=e.__y+c*Math.sin(h),e.__x=t.$jd.c(e.__x,r,i),e.__y=t.$jd.f(e.__y,r,i),o=t.$jd.c(o,r,i),s=t.$jd.f(s,r,i),o>=i.left()&&o<=i.right()&&s>=i.top()&&s<=i.bottom()&&(f=this.isInverted()?this.actualMinimumValue():this.actualMaximumValue()),e.__x>=i.left()&&e.__x<=i.right()&&e.__y>=i.top()&&e.__y<=i.bottom()&&(u=this.isInverted()?this.actualMaximumValue():this.actualMinimumValue()),{visibleMinimum:u,visibleMaximum:f}},hg:function(n,i,r,u,f){var e=t.$jd.d(r-i,u,f),o=e/Math.min(f.width(),f.height());return o>.7?10:5},ha:function(){return this.isInverted()?this.getScaledValue2(this.actualMinimumValue()):this.getScaledValue2(this.actualMaximumValue())},gr:function(){this.g1()!=null&&this.g1().renderAxis()},dv:function(n){t.$hl.dv.call(this,n);var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=i.isEmpty()?t.$x.empty():this.fb();this.fl().x(n,r,i)},d2:function(n,i){t.$hl.d2.call(this,n,i);(i.height()!=n.height()||i.width()!=n.width())&&this.updateRange()},hj:function(i,r,u){var f=n.ig.util.cast(t.$jf.$type,this.fm(r,u));f!=null&&this.g3.j(i.c(),f.minLength(),f.maxLength(),r,u,f.center(),f.minAngle(),f.maxAngle())},an:function(){return 3},$type:new n.ig.Type("NumericRadiusAxis",t.$hl.$type)},!0);n.ig.util.defType("NumericRadiusAxisView:i8","NumericAxisBaseView",{_a9:null,a9:function(n){return arguments.length===1?(this._a9=n,n):this._a9},init:function(n){t.$hm.init.call(this,n);this.a9(n)},$type:new n.ig.Type("NumericRadiusAxisView",t.$hm.$type)},!0);n.ig.util.defType("NumericXAxis:l7","StraightNumericAxisBase",{ap:function(){return new t.l8(this)},dl:function(n){t.$ir.dl.call(this,n);this.hi(n)},_hi:null,hi:function(n){return arguments.length===1?(this._hi=n,n):this._hi},init:function(){t.$ir.init.call(this);this.y(t.$l7.$type);this.fl(this.fk())},ai:function(){return new t.lm},fk:function(){var i=this,r=t.$ir.fk.call(i);return r.b().c(function(n){(i.labelSettings()==null||i.labelSettings().visibility()==0)&&i.crossingAxis()!=null&&(i.aj().az(n),i.labelSettings()!=null&&(i.labelSettings().location()==4||i.labelSettings().location()==5)&&i.seriesViewer().gu())}),r.j(function(n,t,r){i.d0(t,r,n.u(),n.b())}),r.k(function(n,t,r,u){i.d1(t,r,u,n.u())}),r.l(function(n,r){var u=new t.iu(n.v(),n.u(),i.bf());return i.getScaledValue(r,u)}),r.p(function(){return!0}),r.i(function(n){i.dj(n.q(),n.m(),n.u(),n.a())}),r.d(function(r){var e,u,f;r.m(r.u().bottom());e=new t.iu(r.v(),r.u(),i.bf());i.crossingAxis()!=null&&i.crossingAxis().seriesViewer()!=null&&(r.m(i.crossingValue()),r.m(i.crossingAxis().getScaledValue(r.m(),e)),u=n.ig.util.cast(t.$hb.$type,i.crossingAxis()),u!=null&&u.categoryMode()==2&&(f=.5*u.getCategorySize(r.v(),r.u()),u.isInverted()||(f=-f),r.m(r.m()+f)),r.o(r.m()-r.u().top()),r.m()<r.u().top()?r.m(r.u().top()):r.m()>r.u().bottom()&&r.m(r.u().bottom()),r.o()<0?r.o(0):r.o()>r.u().height()&&r.o(r.u().height()))}),r.o(function(n,t){var i=Math.round(t);return i>=Math.floor(n.u().left())&&i<=Math.ceil(n.u().right())}),r},getScaledValue:function(n,t){return this.g2!=null?this.g2.n(n,t):this.g1().n(n,t)},getUnscaledValue:function(n,t){return this.g2!=null?this.g2.o(n,t):this.g1().o(n,t)},getScaledValueList:function(n,t,i,r){if(this.g2!=null){this.g2.s(n,t,i,r);return}this.g1().s(n,t,i,r)},getUnscaledValueList:function(n,t,i,r){if(this.g2!=null){this.g2.h(n,t,i,r);return}this.g1().h(n,t,i,r)},fm:function(n,i){var r=this,e=t.$ir.fm.call(r,n,i),o=new t.iu(i,n,r.isInverted()),u=NaN,f=NaN,s,h;return r.isInverted()||i.right()!=1?r.isInverted()&&i.left()==0&&(u=r.actualMaximumValue()):f=r.actualMaximumValue(),isNaN(u)&&(u=r.getUnscaledValue(n.left(),o)),isNaN(f)&&(f=r.getUnscaledValue(n.right(),o)),s=Math.min(u,f),h=Math.max(u,f),e.j().add(function(){var i=new t.hs;return i.d(s),i.c(h),i.b(n.width()),i}()),e},dv:function(n){t.$ir.dv.call(this,n);var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=i.isEmpty()?t.$x.empty():this.fb();this.fl().x(n,r,i)},d2:function(n,i){t.$ir.d2.call(this,n,i);i.height()!=n.height()&&this.updateRange()},an:function(){return 0},fo:function(){if(this.isLogarithmic())return new t.l9;switch(this.scaleMode()){case 0:return new t.ma;case 1:return new t.l9}return null},$type:new n.ig.Type("NumericXAxis",t.$ir.$type,[t.$ix.$type])},!0);n.ig.util.defType("StraightNumericAxisBaseView:is","NumericAxisBaseView",{_a9:null,a9:function(n){return arguments.length===1?(this._a9=n,n):this._a9},init:function(n){t.$hm.init.call(this,n);this.a9(n)},ba:function(){this.a9().g1().u(this.a9().actualMaximumValue());this.a9().g1().v(this.a9().actualMinimumValue())},$type:new n.ig.Type("StraightNumericAxisBaseView",t.$hm.$type)},!0);n.ig.util.defType("NumericXAxisView:l8","StraightNumericAxisBaseView",{_bb:null,bb:function(n){return arguments.length===1?(this._bb=n,n):this._bb},init:function(n){t.$is.init.call(this,n);this.bb(n)},$type:new n.ig.Type("NumericXAxisView",t.$is.$type)},!0);n.ig.util.defType("NumericYAxis:iq","StraightNumericAxisBase",{ap:function(){return new t.iz(this)},init:function(){t.$ir.init.call(this);this.y(t.$iq.$type);this.fl(this.fk())},ai:function(){return new t.i0},isVertical:function(){return!0},getScaledValue:function(n,t){return this.g2!=null?this.g2.n(n,t):this.g1().n(n,t)},getScaledValueList:function(n,t,i,r){if(this.g2!=null){this.g2.s(n,t,i,r);return}this.g1().s(n,t,i,r)},getUnscaledValue:function(n,t){return this.g2!=null?this.g2.o(n,t):this.g1().o(n,t)},getUnscaledValueList:function(n,t,i,r){if(this.g2!=null){this.g2.h(n,t,i,r);return}this.g1().h(n,t,i,r)},fk:function(){var i=this,r=t.$ir.fk.call(i);return r.b().c(function(n){(i.labelSettings()==null||i.labelSettings().visibility()==0)&&(i.aj().az(n),i.labelSettings()!=null&&(i.labelSettings().location()==7||i.labelSettings().location()==6)&&i.seriesViewer().gu())}),r.j(function(n,t,r){i.dj(t,r,n.u(),n.b())}),r.k(function(n,t,r,u){i.dk(t,r,u,n.u())}),r.l(function(n,r){var u=new t.iu(n.v(),n.u(),i.bf());return i.getScaledValue(r,u)}),r.p(function(){return!0}),r.i(function(n){i.d0(n.q(),n.m(),n.u(),n.a())}),r.d(function(r){var e,u,f;r.m(r.u().left());e=new t.iu(r.v(),r.u(),i.bf());i.crossingAxis()!=null&&i.crossingAxis().seriesViewer()!=null&&(r.m(i.crossingValue()),r.m(i.crossingAxis().getScaledValue(r.m(),e)),u=n.ig.util.cast(t.$hb.$type,i.crossingAxis()),u!=null&&u.categoryMode()==2&&(f=.5*u.getCategorySize(r.v(),r.u()),u.isInverted()&&(f=-f),r.m(r.m()+f)),r.o(r.m()-r.u().left()),r.m()<r.u().left()?r.m(r.u().left()):r.m()>r.u().right()&&r.m(r.u().right()),r.o()<0?r.o(0):r.o()>r.u().width()&&r.o(r.u().width()))}),r.o(function(n,t){var i=Math.round(t);return i>=Math.floor(n.u().top())&&i<=Math.ceil(n.u().bottom())}),r},fm:function(n,i){var r=this,e=t.$ir.fm.call(r,n,i),o=new t.iu(i,n,r.isInverted()),u=NaN,f=NaN;r.isInverted()||i.top()!=0?r.isInverted()&&i.bottom()==1&&(u=r.actualMaximumValue()):f=r.actualMaximumValue();isNaN(u)&&(u=r.getUnscaledValue(n.bottom(),o));isNaN(f)&&(f=r.getUnscaledValue(n.top(),o));var s=Math.min(u,f),h=Math.max(u,f),c=function(){var i=new t.hs;return i.d(s),i.c(h),i.b(n.height()),i}();return e.j().add(c),e},dv:function(n){t.$ir.dv.call(this,n);var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=this.fb();this.fl().x(n,r,i)},d2:function(n,i){t.$ir.d2.call(this,n,i);i.height()!=n.height()&&this.updateRange()},an:function(){return 1},fo:function(){if(this.isLogarithmic())return new t.i4;switch(this.scaleMode()){case 0:return new t.i5;case 1:return new t.i4}return null},g3:function(){return new t.i5},$type:new n.ig.Type("NumericYAxis",t.$ir.$type,[t.$ix.$type])},!0);n.ig.util.defType("NumericYAxisView:iz","StraightNumericAxisBaseView",{init:function(n){t.$is.init.call(this,n);this.bb(n)},_bb:null,bb:function(n){return arguments.length===1?(this._bb=n,n):this._bb},$type:new n.ig.Type("NumericYAxisView",t.$is.$type)},!0);n.ig.util.defType("PolarAxes:t9","Object",{_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(t,i){this.e={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};n.ig.$op.init.call(this);this.b(t);this.a(i)},e:null,c:function(n,i,r,u,f){var e=this.e.__x+i*f(n);return t.$jd.c(e,r,u)},f:function(t,i,r,u,f,e,o,s,h,c){var v=this.a().getScaledAngle1(t,f,e),y=this.b().hc(i,o,s,h,c),p=this.e.__x,w=this.e.__y,l=p+y*Math.cos(v),a=w+y*Math.sin(v);return l=u.left()+u.width()*(l-r.left())/r.width(),a=u.top()+u.height()*(a-r.top())/r.height(),{__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},g:function(t,i,r,u,f,e,o){var v=Math.min(i!=null?i.count():0,r!=null?r.count():0),s;t.clear();var l,a,y=this.e.__x,p=this.e.__y,h,c,w=Math.min(this.a().actualMinimumValue(),this.a().actualMaximumValue()),b=Math.max(this.a().actualMinimumValue(),this.a().actualMaximumValue()),k=Math.min(this.b().actualMaximumValue(),this.b().actualMinimumValue()),d=Math.max(this.b().actualMaximumValue(),this.b().actualMinimumValue()),g=this.a().fy(),nt=this.a().isInverted(),tt=this.b().fy(),it=this.b().isInverted(),rt=this.b().g7(),ut=this.b().g6();for(s=0;s<v;s++)i.item(s)<=b&&i.item(s)>=w&&r.item(s)<=d&&r.item(s)>=k||isNaN(i.item(s))||isNaN(r.item(s))?(l=this.a().getScaledAngle1(i.item(s),g,nt),a=this.b().hc(r.item(s),tt,it,rt,ut),h=y+a*e(s,l),c=p+a*o(s,l),h=f.left()+f.width()*(h-u.left())/u.width(),c=f.top()+f.height()*(c-u.top())/u.height(),t.add({__x:h,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})):t.add({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},h:function(n,i,r,u,f,e){var s=t.$jd.a(n,r,u),h=t.$jd.e(i,r,u),c=Math.sqrt(Math.pow(s-this.e.__x,2)+Math.pow(h-this.e.__y,2)),o=Math.acos((s-this.e.__x)/c);return h-this.e.__y<0&&(o=2*3.14159265358979-o),f=this.a().getUnscaledAngle(o),e=this.b().getUnscaledValue2(c),{unscaledAngle:f,unscaledRadius:e}},d:function(n,i,r,u,f){var e=this.e.__y+i*f(n);return t.$jd.f(e,r,u)},$type:new n.ig.Type("PolarAxes",n.ig.$ot)},!0);n.ig.util.defType("PolarAxisRenderingManager:jc","Object",{init:function(){n.ig.$op.init.call(this)},p:function(i,r,u,f,e,o){var w=this,l=t.$jd.d(i,e,o),s=t.$jd.g(i,e,o),a=t.$jd.c(r.__x,e,o),v=t.$jd.f(r.__y,e,o),h;if(f-u<3.14159265358979&&f-u>0){var y={__x:t.$jd.c(r.__x+i*Math.cos(u),e,o),__y:t.$jd.f(r.__y+i*Math.sin(u),e,o),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},p={__x:t.$jd.c(r.__x+i*Math.cos(f),e,o),__y:t.$jd.f(r.__y+i*Math.sin(f),e,o),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},c=new t.d6;return c.__startPoint=y,c.__isClosed=!1,c.__segments.add(function(){var n=new t.d2;return n.b(!1),n.d(p),n.f(new t.y(l,s)),n.e(1),n}()),c}return h=new t.d6,h.__startPoint={__x:a,__y:v-s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},h.__isClosed=!0,h.__segments.add(function(){var i=new t.d2;return i.b(!1),i.d({__x:a,__y:v+s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.f(new t.y(l,s)),i.e(1),i}()),h.__segments.add(function(){var i=new t.d2;return i.b(!1),i.d({__x:a,__y:v-s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.f(new t.y(l,s)),i.e(1),i}()),h},j:function(i,r,u,f,e,o,s,h){var w=this,a=Math.min(r,u),y=Math.max(r,u),p=new t.dx,c=null,b=null,l=null,k=null,g,nt,tt,v,it,d;a>0&&(c=w.p(a,o,s,h,e,f),h-s<3.14159265358979&&h-s>0&&(g=n.ig.util.cast(t.$d2.$type,c.__segments.__inner[0]),g!=null&&(nt={__x:t.$jd.c(o.__x+y*Math.cos(h),e,f),__y:t.$jd.f(o.__y+y*Math.sin(h),e,f),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},b=function(){var n=new t.d8(1);return n.c(nt),n}())));y>0&&(l=w.p(y,o,s,h,e,f));a>0&&h-s<3.14159265358979&&h-s>0&&(tt=l.__startPoint,v=n.ig.util.cast(t.$d2.$type,l.__segments.__inner[0]),v!=null&&(l.__startPoint=v.d(),v.d(tt),v.e(0),it={__x:t.$jd.c(o.__x+a*Math.cos(s),e,f),__y:t.$jd.f(o.__y+a*Math.sin(s),e,f),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},k=function(){var n=new t.d8(1);return n.c(it),n}()));b!=null&&k!=null?(c.__segments.add(b),d=l.__segments.__inner[0],l.__segments.remove(d),c.__segments.add(d),c.__segments.add(k),c.__isClosed=!0,p.b().add(c)):(c!=null&&(p.b().add(c),w.o(l)),l!=null&&p.b().add(l));i.add(p)},o:function(i){var r,u,e,f;if(i.__segments.count()>1){r=n.ig.util.cast(t.$d2.$type,i.__segments.__inner[0]);u=n.ig.util.cast(t.$d2.$type,i.__segments.__inner[1]);i.__segments.__inner[0]=u;i.__segments.__inner[1]=r;var o=u.d(),s=i.__startPoint,h=r.d();i.__startPoint=o;u.d(h);r.d(s);r.e(0);u.e(0)}else e=i.__startPoint,f=n.ig.util.cast(t.$d2.$type,i.__segments.__inner[0]),f!=null&&(i.__startPoint=f.d(),f.d(e),f.e(0))},i:function(n,i,r,u,f,e,o){if(i>0){var s=new t.dx;s.b().add(this.p(i,f,e,o,u,r));n.add(s)}},n:function(i,r,u,f,e,o,s,h){var et=this,v=Math.min(r,u),y=Math.max(r,u),p=!1,c,tt;y-v>3.14159265358979&&(p=!0);var it=Math.cos(v),rt=Math.sin(v),l=h.__x+it*o,a=h.__y+rt*o,w=h.__x+it*s,b=h.__y+rt*s,ut=Math.cos(y),ft=Math.sin(y),k=h.__x+ut*o,d=h.__y+ft*o,g=h.__x+ut*s,nt=h.__y+ft*s;l=t.$jd.c(l,e,f);a=t.$jd.f(a,e,f);w=t.$jd.c(w,e,f);b=t.$jd.f(b,e,f);k=t.$jd.c(k,e,f);d=t.$jd.f(d,e,f);g=t.$jd.c(g,e,f);nt=t.$jd.f(nt,e,f);c=new t.d6;c.__startPoint={__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};c.__isClosed=!0;c.__segments.add(function(){var i=new t.d8(1);return i.c({__x:w,__y:b,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());c.__segments.add(function(){var i=new t.d2;return i.d({__x:g,__y:nt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.f(new t.y(t.$jd.d(s,e,f),t.$jd.g(s,e,f))),i.e(1),i.b(p),i}());c.__segments.add(function(){var i=new t.d8(1);return i.c({__x:k,__y:d,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());c.__segments.add(function(){var i=new t.d2;return i.d({__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.f(new t.y(t.$jd.d(o,e,f),t.$jd.g(o,e,f))),i.e(0),i.b(p),i}());tt=new t.dx;tt.b().add(c);i.add(tt)},m:function(i,r,u,f,e,o,s){var h=new t.dz,y=Math.cos(r),p=Math.sin(r),c=s.__x+y*e,l=s.__y+p*e,a=s.__x+y*o,v=s.__y+p*o;c=t.$jd.c(c,f,u);l=t.$jd.f(l,f,u);a=t.$jd.c(a,f,u);v=t.$jd.f(v,f,u);h.c({__x:c,__y:l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});h.b({__x:a,__y:v,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add(h)},a:function(n,t){return n.__x>=t.left()&&n.__x<=t.right()},b:function(n,t){return n.__y>=t.top()&&n.__y<=t.bottom()},c:function(n,t){var i=Math.sqrt(Math.pow(n.__x-t.left(),2)+Math.pow(n.__y-t.top(),2)),r=Math.sqrt(Math.pow(n.__x-t.right(),2)+Math.pow(n.__y-t.top(),2)),u=Math.sqrt(Math.pow(n.__x-t.right(),2)+Math.pow(n.__y-t.bottom(),2)),f=Math.sqrt(Math.pow(n.__x-t.left(),2)+Math.pow(n.__y-t.bottom(),2));return Math.min(i,Math.min(r,Math.min(u,f)))},d:function(n,t){var i=Math.sqrt(Math.pow(n.__x-t.left(),2)+Math.pow(n.__y-t.top(),2)),r=Math.sqrt(Math.pow(n.__x-t.right(),2)+Math.pow(n.__y-t.top(),2)),u=Math.sqrt(Math.pow(n.__x-t.right(),2)+Math.pow(n.__y-t.bottom(),2)),f=Math.sqrt(Math.pow(n.__x-t.left(),2)+Math.pow(n.__y-t.bottom(),2));return Math.max(i,Math.max(r,Math.max(u,f)))},f:function(t){var i={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return this.a(i,t)&&this.b(i,t)?0:this.a(i,t)?i.__y<t.top()?t.top()-i.__y:i.__y-t.bottom():this.b(i,t)?i.__x<t.left()?t.left()-i.__x:i.__x-t.right():this.c(i,t)},g:function(t){var i={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return this.d(i,t)},e:function(n,t){var r=Math.sqrt(Math.pow(t.__x-n.__x,2)+Math.pow(t.__y-n.__y,2)),i=Math.acos((t.__x-n.__x)/r);return t.__y-n.__y<0&&(i=2*3.14159265358979-i),i},h:function(n,t){return(n.__y-.5)*t.__x+(.5-n.__x)*t.__y+(n.__x*.5-.5*n.__y)},l:function(t,i,r){var u={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(this.a(u,t)&&this.b(u,t))return i=0,r=3.14159265358979*2,{minAngle:i,maxAngle:r};var f=this.e(u,{__x:t.left(),__y:t.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o=this.e(u,{__x:t.right(),__y:t.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s=this.e(u,{__x:t.right(),__y:t.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),e=this.e(u,{__x:t.left(),__y:t.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});return this.b(u,t)&&t.left()>u.__x?(i=f,r=2*3.14159265358979+e,{minAngle:i,maxAngle:r}):(i=Math.min(f,Math.min(o,Math.min(s,e))),r=Math.max(f,Math.max(o,Math.max(s,e))),{minAngle:i,maxAngle:r})},k:function(i,r,u,f,e,o,s){var nt=this,a,h,b,k,c,l,v,y,p,w;if(function(){var n=nt.l(i,a,h);return a=n.minAngle,h=n.maxAngle,n.ret}(),b=Math.min(a,h),k=Math.max(a,h),n.ig.util.cast(t.$je.$type,r)!==null?(n.ig.util.cast(t.$je.$type,r).minAngle(b),n.ig.util.cast(t.$je.$type,r).maxAngle(k)):n.ig.util.cast(t.$jg.$type,r)!==null&&(n.ig.util.cast(t.$jg.$type,r).minAngle(b),n.ig.util.cast(t.$jg.$type,r).maxAngle(k)),a==0&&h==3.14159265358979*2){var d=u,g=f,tt=Math.min(d,g),it=Math.max(d,g);r.j().add(function(){var n=new t.hs;return n.d(tt),n.c(it),n.b(s),n}());return}h>3.14159265358979*2&&(h=h-3.14159265358979*2);c=o(a);l=o(h);(c<u||c>f)&&(c=o(a+3.14159265358979*2));(l<u||l>f)&&(l=o(h+3.14159265358979*2));v=Math.min(c,l);y=Math.max(c,l);!e&&c>l||e&&c<l?(p=f-y,w=v-u,r.j().add(function(){var n=new t.hs;return n.d(y),n.c(f),n.b(p/(p+w)*s),n}()),r.j().add(function(){var n=new t.hs;return n.d(u),n.c(v),n.b(w/(p+w)*s),n}())):r.j().add(function(){var n=new t.hs;return n.d(v),n.c(y),n.b(s),n}())},$type:new n.ig.Type("PolarAxisRenderingManager",n.ig.$ot)},!0);n.ig.util.defType("IPolarRadialRenderingParameters:jf","Object",{$type:new n.ig.Type("IPolarRadialRenderingParameters",null)},!0);n.ig.util.defType("NumericAxisRenderingParameters:i3","AxisRenderingParametersBase",{init:function(){t.$hr.init.call(this)},$type:new n.ig.Type("NumericAxisRenderingParameters",t.$hr.$type)},!0);n.ig.util.defType("PolarAxisRenderingParameters:je","NumericAxisRenderingParameters",{init:function(){t.$i3.init.call(this)},_minLength:0,minLength:function(n){return arguments.length===1?(this._minLength=n,n):this._minLength},_maxLength:0,maxLength:function(n){return arguments.length===1?(this._maxLength=n,n):this._maxLength},_center:null,center:function(n){return arguments.length===1?(this._center=n,n):this._center},_minAngle:0,minAngle:function(n){return arguments.length===1?(this._minAngle=n,n):this._minAngle},_maxAngle:0,maxAngle:function(n){return arguments.length===1?(this._maxAngle=n,n):this._maxAngle},_crossingAngleRadians:0,crossingAngleRadians:function(n){return arguments.length===1?(this._crossingAngleRadians=n,n):this._crossingAngleRadians},_effectiveMaximum:0,effectiveMaximum:function(n){return arguments.length===1?(this._effectiveMaximum=n,n):this._effectiveMaximum},$type:new n.ig.Type("PolarAxisRenderingParameters",t.$i3.$type,[t.$jf.$type])},!0);n.ig.util.defType("RadialAxisRenderingParameters:jg","CategoryAxisRenderingParameters",{init:function(){t.$ie.init.call(this)},_minLength:0,minLength:function(n){return arguments.length===1?(this._minLength=n,n):this._minLength},_maxLength:0,maxLength:function(n){return arguments.length===1?(this._maxLength=n,n):this._maxLength},_center:null,center:function(n){return arguments.length===1?(this._center=n,n):this._center},_crossingAngleRadians:0,crossingAngleRadians:function(n){return arguments.length===1?(this._crossingAngleRadians=n,n):this._crossingAngleRadians},_minAngle:0,minAngle:function(n){return arguments.length===1?(this._minAngle=n,n):this._minAngle},_maxAngle:0,maxAngle:function(n){return arguments.length===1?(this._maxAngle=n,n):this._maxAngle},_effectiveMaximum:0,effectiveMaximum:function(n){return arguments.length===1?(this._effectiveMaximum=n,n):this._effectiveMaximum},$type:new n.ig.Type("RadialAxisRenderingParameters",t.$ie.$type,[t.$jf.$type])},!0);n.ig.util.defType("RadialAxes:t1","Object",{_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(t,i){this.f={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};n.ig.$op.init.call(this);this.b(t);this.a(i)},f:null,d:function(n,i,r,u){var f=this.f.__x+i*Math.cos(n);return t.$jd.c(f,r,u)},g:function(t,i,r,u,f,e,o){var v=Math.min(i!=null?i.count():0,r!=null?r.count():0),y=!1,l,a,p,w,h,c,s;for(t.count()==v&&(y=!0),p=this.f.__x,w=this.f.__y,s=0;s<v;s++)l=this.a().getScaledAngle(i.item(s)),a=this.b().getScaledValue2(r.item(s)),h=p+a*e(s,l),c=w+a*o(s,l),h=f.left()+f.width()*(h-u.left())/u.width(),c=f.top()+f.height()*(c-u.top())/u.height(),y?t.item(s,{__x:h,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):t.add({__x:h,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},h:function(n,i,r,u,f,e){var s=t.$jd.a(n,r,u),h=t.$jd.e(i,r,u),c=Math.sqrt(Math.pow(s-this.f.__x,2)+Math.pow(h-this.f.__y,2)),o=Math.acos((s-this.f.__x)/c);return h-this.f.__y<0&&(o=2*3.14159265358979-o),f=this.a().getUnscaledAngle(o),e=this.b().getUnscaledValue2(c),{unscaledAngle:f,unscaledRadius:e}},e:function(n,i,r,u){var f=this.f.__y+i*Math.sin(n);return t.$jd.f(f,r,u)},c:function(n){var i=Math.sqrt(Math.pow(n.__x-this.f.__x,2)+Math.pow(n.__y-this.f.__y,2)),t=Math.acos((n.__x-this.f.__x)/i);return n.__y-this.f.__y<0&&(t=2*3.14159265358979-t),t},$type:new n.ig.Type("RadialAxes",n.ig.$ot)},!0);n.ig.util.defType("RadialAxisLabelPanel:jh","HorizontalAxisLabelPanelBase",{init:function(){t.$ji.init.call(this);this.cr=new t.bh(n.ig.Number.prototype.$type,0)},aa:function(){return new t.jk(this)},bu:function(n){t.$ji.bu.call(this,n);this.co(n)},_co:null,co:function(n){return arguments.length===1?(this._co=n,n):this._co},_cv:null,cv:function(n){return arguments.length===1?(this._cv=n,n):this._cv},_cs:0,cs:function(n){return arguments.length===1?(this._cs=n,n):this._cs},cq:function(){return this.z().labelSettings()!=null&&this.z().labelSettings().c()!=5&&this.z().labelSettings().c()!=4},cp:function(){return!this.cq()},cb:function(){return this.ai()&&(!this.ak()||this.a3()==-180)},cc:function(){return!this.al()},bi:function(n){t.$ji.bi.call(this,n);this.cs()%360==0||this.cq()?this.co().az():this.co().ay(n)},a3:function(){var n=t.$ji.a3.call(this);return this.cp()&&(n-=this.cs()*180/3.14159265358979),n},ca:function(){return this.a3()%360!=0},b9:function(){if(this.cq())return!0;var n=this.cs()*180/3.14159265358979;return n<30||n>330||n>150&&n<210?!0:!1},cr:null,bx:function(n,t){var r=t*3.14159265358979/180,i=Math.abs(Math.sin(r));this.z().labelSettings()!=null&&this.z().labelSettings().c()==4&&(i=i*-1);this.co().a0(n,t,i)},cu:function(){for(var n=Number.MAX_VALUE,t=this.ar().getEnumerator(),i;t.moveNext();)i=t.current(),n=Math.min(i.a(),n);return n},ct:function(){for(var n=-Number.MAX_VALUE,t=this.ar().getEnumerator(),i;t.moveNext();)i=t.current(),n=Math.max(i.a(),n);return n},cm:function(i){var r=this,u,f;u=r.z().isInverted()?r.cu():r.ct();f=r.ar().where$1(t.$h7.$type,function(n){return n.a()==u}).select$2(t.$h7.$type,n.ig.Number.prototype.$type,function(n){return r.ar().indexOf(n)});r.cr=f.toList$1(n.ig.Number.prototype.$type);r.ai(r.ah(i.where$1(t.$x.$type,function(n,t){return!r.cr.contains(t)}).toList$1(t.$x.$type)))},aj:function(n,i){return this.cr.contains(n)?!1:t.$ji.aj.call(this,n,i)},cn:function(){this.cr=new t.bh(n.ig.Number.prototype.$type,0);t.$ji.cn.call(this)},ae:function(){return 5},an:function(n){return n==5||n==4||n==1||n==0},bo:function(){},$type:new n.ig.Type("RadialAxisLabelPanel",t.$ji.$type)},!0);n.ig.util.defType("RadialAxisLabelPanelView:jk","HorizontalAxisLabelPanelBaseView",{_ax:null,ax:function(n){return arguments.length===1?(this._ax=n,n):this._ax},init:function(n){t.$jj.init.call(this,n);this.ax(n)},a0:function(){},az:function(){},ay:function(){},aj:function(){t.$jj.aj.call(this);this.a().b6(new t.y(this.a().b3().width(),this.a().b3().height()))},$type:new n.ig.Type("RadialAxisLabelPanelView",t.$jj.$type)},!0);n.ig.util.defType("PathRenderingInfo:hk","Object",{init:function(){n.ig.$op.init.call(this)},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_a:!1,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("PathRenderingInfo",n.ig.$ot)},!0);n.ig.util.defType("NumericAxisRenderer:hn","AxisRendererBase",{init:function(n){t.$ho.init.call(this,n)},v:function(n,t){var i;return n.p()!=null?i=this.f()(t):(t=Math.round(t*1e6)/1e6,i=t.toString()),i},$type:new n.ig.Type("NumericAxisRenderer",t.$ho.$type)},!0);n.ig.util.defType("RangeInfo:hs","Object",{init:function(){n.ig.$op.init.call(this);this.a(-1);this.e(-1)},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},$type:new n.ig.Type("RangeInfo",n.ig.$ot)},!0);n.ig.util.defType("NumericScaler:it","DependencyObject",{init:function(){t.$an.init.call(this)},r:function(n,t,i,r,u){return{actualMinimumValue:r,actualMaximumValue:u}},j:function(n){return arguments.length===1?(this.g(t.$it.y,n),n):this.c(t.$it.y)},i:function(n){return arguments.length===1?(this.g(t.$it.x,n),n):this.c(t.$it.x)},m:0,l:0,v:function(n){this.j(n)},u:function(n){this.i(n)},t:function(n){switch(n){case"ActualMinimumValue":this.m=this.j();this.w();break;case"ActualMaximumValue":this.l=this.i();this.w()}},w:function(){isNaN(this.j())||isNaN(this.i())||Number.isInfinity(this.j())||Number.isInfinity(this.i())||this.j()<-Number.MAX_VALUE||this.i()>Number.MAX_VALUE?this.k(this.i()-this.j()):this.k(this.i()-this.j())},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},o:function(){},n:function(){},h:function(n,i,r,u){for(var e=new t.bh(Number,2,n.count()),f=i;f<r;f++)e.add(this.o(n.item(f),u));return e},s:function(n,t,i,r){for(var u=t;u<i;u++)n.item(u,this.n(n.item(u),r))},$type:new n.ig.Type("NumericScaler",t.$an.$type)},!0);n.ig.util.defType("LinearScaler:i6","NumericScaler",{init:function(){t.$it.init.call(this)},r:function(n,i,r,u,f){var s=this,e,o;return function(){var u=t.$ip.c(n,i,r,!1,-1,e,o);return e=u.minimumValue,o=u.maximumValue,u.ret}(),u=e,f=o,{actualMinimumValue:u,actualMaximumValue:f}},$type:new n.ig.Type("LinearScaler",t.$it.$type)},!0);n.ig.util.defType("HorizontalLinearScaler:ma","LinearScaler",{init:function(){t.$i6.init.call(this)},o:function(n,t){return this.ab(n,t.d,t.c,t.a)},n:function(n,t){return this.aa(n,t.d,t.c,t.a)},z:function(t){return n.isArray(t)?t:null},s:function(n,t,i,r){var h,a=r.d,v=r.c,c=r.b,y=r.a,g=!c.isEmpty(),p=this.k(),w=this.m,nt=c.left(),tt=c.width(),b=a.left(),k=a.width(),it=v.left(),d=v.width(),o=this.z(n),s=!1,u,e,l,f;for(o!=null&&(s=!0),u=t;u<i;u++)h=s?o[u]:n.item(u),g?(e=(h-w)/p,y&&(e=1-e),e=nt+tt*+e/1,l=(e-b*d)/k,s?o[u]=l:n.item(u,l)):(f=(h-w)/p,y&&(f=1-f),f=it+d*(f-b)/k,s?o[u]=f:n.item(u,f))},ab:function(n,t,i,r){var u=t.left()+t.width()*(n-i.left())/i.width();return r&&(u=1-u),this.m+u*this.k()},aa:function(n,t,i,r){var u=(n-this.m)/this.k();return r&&(u=1-u),i.left()+i.width()*(u-t.left())/t.width()},$type:new n.ig.Type("HorizontalLinearScaler",t.$i6.$type)},!0);n.ig.util.defType("LogarithmicScaler:iw","NumericScaler",{init:function(){t.$it.init.call(this)},_aa:0,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_z:0,z:function(n){return arguments.length===1?(this._z=n,n):this._z},t:function(n,i,r){t.$it.t.call(this,n,i,r);switch(n){case"ActualMinimumValue":this.aa(Math.log(this.j()));break;case"ActualMaximumValue":this.z(Math.log(this.i()))}},r:function(n,i,r,u,f){var s=this,e,o;return function(){var u=t.$ip.c(n,i,r,!0,n.logarithmBase(),e,o);return e=u.minimumValue,o=u.maximumValue,u.ret}(),u=e,f=o,{actualMinimumValue:u,actualMaximumValue:f}},$type:new n.ig.Type("LogarithmicScaler",t.$it.$type)},!0);n.ig.util.defType("HorizontalLogarithmicScaler:l9","LogarithmicScaler",{init:function(){t.$iw.init.call(this)},o:function(n,t){return this.ac(n,t.d,t.c,t.a)},n:function(n,t){return this.ab(n,t.d,t.c,t.a)},ac:function(n,t,i,r){var u=t.left()+t.width()*(n-i.left())/i.width();return r&&(u=1-u),Math.exp(u*(this.z()-this.aa())+this.aa())},ab:function(n,t,i,r){if(isNaN(n))return NaN;var u=0;return u=n<=0?(Math.log(this.m)-this.aa())/(this.z()-this.aa()):(Math.log(n)-this.aa())/(this.z()-this.aa()),r&&(u=1-u),i.left()+i.width()*(u-t.left())/t.width()},$type:new n.ig.Type("HorizontalLogarithmicScaler",t.$iw.$type)},!0);n.ig.util.defType("ScalerParams:iu","Object",{init:function(i,r,u){n.ig.$op.init.call(this);this.d=i;this.c=r;this.b=t.$x.empty();this.a=u},d:null,c:null,b:null,a:!1,$type:new n.ig.Type("ScalerParams",n.ig.$ot)},!0);n.ig.util.defType("VerticalLinearScaler:i5","LinearScaler",{init:function(){t.$i6.init.call(this)},o:function(n,t){return this.ab(n,t.d,t.c,t.a)},n:function(n,t){return this.aa(n,t.d,t.c,t.a)},z:function(t){return n.isArray(t)?t:null},s:function(n,t,i,r){var h,a=r.d,v=r.c,c=r.b,y=r.a,g=!c.isEmpty(),p=this.k(),w=this.m,nt=c.top(),tt=c.height(),b=a.top(),k=a.height(),it=v.top(),d=v.height(),o=this.z(n),s=!1,u,e,l,f;for(o!=null&&(s=!0),u=t;u<i;u++)h=s?o[u]:n.item(u),g?(e=(h-w)/p,y||(e=1-e),e=nt+tt*+e/1,l=(e-b*d)/k,s?o[u]=l:n.item(u,l)):(f=(h-w)/p,y||(f=1-f),f=it+d*(f-b)/k,s?o[u]=f:n.item(u,f))},aa:function(n,t,i,r){var u=(n-this.m)/this.k();return r||(u=1-u),i.top()+i.height()*(u-t.top())/t.height()},ab:function(n,t,i,r){var u=t.top()+t.height()*(n-i.top())/i.height();return r||(u=1-u),this.m+u*this.k()},$type:new n.ig.Type("VerticalLinearScaler",t.$i6.$type)},!0);n.ig.util.defType("VerticalLogarithmicScaler:i4","LogarithmicScaler",{init:function(){t.$iw.init.call(this)},o:function(n,t){return this.ac(n,t.d,t.c,t.a)},n:function(n,t){return this.ab(n,t.d,t.c,t.a)},ab:function(n,t,i,r){if(isNaN(n))return NaN;var u;return u=n<=0?(Math.log(this.m)-this.aa())/(this.z()-this.aa()):(Math.log(n)-this.aa())/(this.z()-this.aa()),r||(u=1-u),i.top()+i.height()*(u-t.top())/t.height()},ac:function(n,t,i,r){var u=t.top()+t.height()*(n-i.top())/i.height();return r||(u=1-u),Math.exp(u*(this.z()-this.aa())+this.aa())},$type:new n.ig.Type("VerticalLogarithmicScaler",t.$iw.$type)},!0);n.ig.util.defType("TickmarkValues:ht","DependencyObject",{init:function(){t.$an.init.call(this)},o:function(n){this.k(n.k())},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},h:function(){},i:function(){},_n:0,n:function(n){return arguments.length===1?(this._n=n,n):this._n},$type:new n.ig.Type("TickmarkValues",t.$an.$type)},!0);n.ig.util.defType("CategoryTickmarkValues:jz","TickmarkValues",{init:function(){t.$ht.init.call(this);this.r=null},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_v:0,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_t:!1,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_q:null,q:function(n){return arguments.length===1?(this._q=n,n):this._q},o:function(n){var r,u,i;t.$ht.o.call(this,n);r=n.a();this.p(r);this.v(n.o());this.w(n.p());this.x(n.q());this.t(n.e());this.q(n.c());u=new t.jv(1,n.l(),n.k(),n.i(),n.j(),r);i=u.e();n.h()!=-1&&(i=n.h());var e=Math.floor((n.l()-n.g())/i),o=Math.ceil((n.k()-n.g())/i),s=e,h=o,f=u.f();n.n()!=-1&&(f=n.n());this.j(i);this.l(s);this.m(h);this.n(f);this.u(n.g())},_u:0,u:function(n){return arguments.length===1?(this._u=n,n):this._u},r:null,h:function(){var r=this.l(),t=this.m()-r+1,i,n,u;for((this.r==null||this.r.length!=t)&&(this.r=new Array(t)),i=this.r,n=0;n<t;++n)u=this.u()+(n+r)*this.j(),i[n]=u;return i},s:null,i:function(){var n=this.j(),c=this.m(),l=this.l(),t=this.v(),a=this.p(),i,e,o,s,v,h,r,u,f,y,p;for(n=Math.min(n,20),i=0,e=l;e<c;++e)if(a!=0&&t!=0)for(o=0;o<n;o++)for(s=0;s<t;s++)i++;for((this.s==null||this.s.length!=i)&&(this.s=new Array(i)),v=this.s,h=0,r=l;r<c;++r)if(a!=0&&t!=0)for(u=0;u<n;u++)for(f=0;f<t;f++)y=this.q()(f),p=u+r*n+y,v[h]=p,h++;return this.s},$type:new n.ig.Type("CategoryTickmarkValues",t.$ht.$type)},!0);n.ig.util.defType("LinearTickmarkValues:ij","TickmarkValues",{init:function(){this.p=null;this.q=null;t.$ht.init.call(this);this.s(0)},_s:0,s:function(n){return arguments.length===1?(this._s=n,n):this._s},o:function(n){t.$ht.o.call(this,n);var i;i=this.s()!=0?new t.ik(1,n.l(),n.k(),n.i(),this.s()):new t.ik(0,n.l(),n.k(),n.i());this.j(i.e());n.d()&&n.j()>0&&(n.k()-n.l())/n.j()<1e3&&this.j(n.j());n.h()!=-1&&this.j(n.h());this.l(Math.floor((n.l()-n.g())/this.j()));this.m(Math.ceil((n.k()-n.g())/this.j()));this.n(i.f());n.n()!=-1&&this.n(n.n());this.r(n.g())},_r:0,r:function(n){return arguments.length===1?(this._r=n,n):this._r},p:null,h:function(){var t=0,r=this.l(),i,n,u;for(isNaN(this.j())||(t=this.m()-r+1),(this.p==null||this.p.length!=t)&&(this.p=new Array(t)),i=this.p,n=0;n<t;++n)u=this.r()+(n+r)*this.j(),i[n]=u;return i},q:null,i:function(){for(var n,y,o,s,t,i,h,c=this.l(),l=this.m(),r=this.n(),u=this.j(),a=this.r(),p=this.k(),v=u/r,f=0,e=c;e<l;++e)for(n=1;n<r;++n)y=a+e*u+n*v,y<=p&&f++;for((this.q==null||this.q.length!=f)&&(this.q=new Array(f)),o=this.q,s=0,t=c;t<l;++t)for(i=1;i<r;++i)h=a+t*u+i*v,h<=this.k()&&(o[s]=h,s++);return o},$type:new n.ig.Type("LinearTickmarkValues",t.$ht.$type)},!0);n.ig.util.defType("LogarithmicTickmarkValues:ig","TickmarkValues",{init:function(){t.$ht.init.call(this);this.p=null;this.q=null},o:function(n){t.$ht.o.call(this,n);var i=new t.ih(n.l(),n.k(),this.t(),n.i());this.j(1);this.n(i.f());this.l(Math.floor(Math.logBase(Math.max(494065645841247e-338,n.l()),this.t())));this.m(Math.ceil(Math.logBase(Math.max(494065645841247e-338,n.k()),this.t())))},t:function(n){return arguments.length===1?(this.g(t.$ig.v,n),n):this.c(t.$ig.v)},r:function(n){var t=n*this.j();return Math.pow(this.t(),t)},p:null,h:function(){for(var h,r,u,n,f,e=this.l(),o=this.m(),s=this.k(),t=0,i=e;i<=o;++i)h=this.r(i),h<=s&&t++;for((this.p==null||this.p.length!=t)&&(this.p=new Array(t)),r=this.p,u=0,n=e;n<=o;++n)f=this.r(n),f<=s&&(r[u]=f,u++);return r},q:null,i:function(){for(var a,v,i,y,f,e,n,p,w,r,o,s=this.l(),h=this.m(),c=this.t(),b=this.n(),l=this.k(),u=0,t=s;t<=h;++t)for(a=this.r(t),v=Math.pow(c,t),i=1;i<this.n()-1;++i)y=a+i*v,y<=l&&u++;for((this.q==null||this.q.length!=u)&&(this.q=new Array(u)),f=this.q,e=0,n=s;n<=h;++n)for(p=this.r(n),w=Math.pow(c,n),r=1;r<this.n()-1;++r)o=p+r*w,o<=l&&(f[e]=o,e++);return f},$type:new n.ig.Type("LogarithmicTickmarkValues",t.$ht.$type)},!0);n.ig.util.defType("TickmarkValuesInitializationParameters:hu","Object",{init:function(){n.ig.$op.init.call(this)},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_g:0,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_f:0,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_n:0,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_o:0,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_q:null,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("TickmarkValuesInitializationParameters",n.ig.$ot)},!0);n.ig.util.defType("ViewportUtils:jd","Object",{init:function(){n.ig.$op.init.call(this)},c:function(n,t,i){return i.left()+i.width()*(n-t.left())/t.width()},a:function(n,t,i){return(n-i.left())*t.width()/i.width()+t.left()},f:function(n,t,i){return i.top()+i.height()*(n-t.top())/t.height()},e:function(n,t,i){return(n-i.top())*t.height()/i.height()+t.top()},d:function(n,t,i){return i.width()*n/t.width()},b:function(n,t,i){return t.width()*n/i.width()},g:function(n,t,i){return i.height()*n/t.height()},$type:new n.ig.Type("ViewportUtils",n.ig.$ot)},!0);n.ig.util.defType("FramePreparer:ly","Object",{init:function(i,r){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}t.$ly.init1.call(this,1,n.ig.util.cast(t.$kp.$type,r),n.ig.util.cast(t.$a.$type,r),n.ig.util.cast(t.$lz.$type,r))},init1:function(i,r,u,f){n.ig.$op.init.call(this);this.c(new t.l0);this.a(new t.l1);this.b(new t.l2);r!=null&&this.c(r);u!=null&&this.a(u);f!=null&&this.b(f)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},d:function(){},$type:new n.ig.Type("FramePreparer",n.ig.$ot)},!0);n.ig.util.defType("CategoryFramePreparerBase:lx","FramePreparer",{init:function(i,r){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}t.$lx.init1.call(this,1,r,n.ig.util.cast(t.$kp.$type,r),n.ig.util.cast(t.$a.$type,r),n.ig.util.cast(t.$lz.$type,r),n.ig.util.cast(t.$kf.$type,r))},init1:function(n,i,r,u,f,e){t.$ly.init1.call(this,1,r,u,f);this.f(i);this.e(e)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},l:function(){},_m:!1,m:function(n){return arguments.length===1?(this._m=n,n):this._m},g:function(i){var u=this,r=new t.l3,f,e,o,s,h,c;return(r.f(u.f().useHighMarkerFidelity()),r.b(u.f().scaler()),r.c(u.f().yScaler()),r.d(n.ig.util.cast(t.$kr.$type,r.b())),r.a(n.ig.util.cast(t.$ks.$type,i)),r.a()==null||r.b()==null||r.c()==null)?null:(function(){var n=u.e().getBucketInfo(f,e,o,s);return f=n.firstBucket,e=n.lastBucket,o=n.bucketSize,s=n.resolution,n.ret}(),r.i(f),r.j(e),r.h(o),r.g(s),r.j()<r.i())?null:(function(){var n=u.a().getViewInfo(c,h);return c=n.viewportRect,h=n.windowRect,n.ret}(),r.l(h),r.k(c),r.l()==t.$x.empty()||r.k()==t.$x.empty())?null:(u.f()!=null&&n.ig.util.cast(t.$ka.$type,u.f())!==null&&u.e()!=null&&r.e(!0),r)},n:function(i,r,u){var e=this.f().currentCategoryMode(),f=0;e==0&&i.categoryMode()!=0&&(e=1);switch(e){case 0:f=0;break;case 1:f=.5*i.getCategorySize(r,u);break;case 2:f=i.getGroupCenter(this.f().currentMode2Index(),r,u)}return n.ig.util.cast(t.$l4.$type,i)!==null?i.isInverted()||(f=-f):i.isInverted()&&(f=-f),f},o:function(n){return this.n(n.b(),n.l(),n.k())},d:function(i,r){var u=this.g(i),o,s,h,e,c,a;if(u!=null&&this.e()!=null){u.a().h.clear();u.a().r.clear();u.a().p.clear();u.a().q.clear();u.a().o.clear();u.a().i.clear();var v=this.c().shouldDisplayMarkers(),l=this.o(u),f=this.h(u);if(u.d()==null||u.d().sortedIndices().count()==f.a()){if(u.d()!=null&&n.ig.util.cast(t.$lf.$type,u.d())!==null&&u.d().hy(),this.e().cacheValues(),this.m()&&u.d()!=null&&u.d().sortedIndices().count()>0){for(o=u.d().sortedIndices().__inner[u.i()],this.v(f,o,!0,u.e());(isNaN(f.d())||isNaN(f.e()))&&u.i()>0;)u.i(u.i()-1),o=u.d().sortedIndices().__inner[u.i()],this.v(f,o,!0,u.e());for(s=u.d().sortedIndices().__inner[u.j()],this.v(f,s,!0,u.e());(isNaN(f.d())||isNaN(f.e()))&&u.j()<f.a()-1;)u.j(u.j()+1),s=u.d().sortedIndices().__inner[u.j()],this.v(f,s,!0,u.e())}if(this.m()&&u.d()==null){for(h=u.i(),e=this.e().getBucket(h);(isNaN(e[1])||isNaN(e[2]))&&u.i()>0;)u.i(u.i()-1),h=u.i(),e=this.e().getBucket(h);for(c=u.j(),e=this.e().getBucket(c);(isNaN(e[1])||isNaN(e[2]))&&u.j()<n.ig.intDivide(f.a(),u.h());)u.j(u.j()+1),c=u.j(),e=this.e().getBucket(c)}this.t(u,f,l);a=this.p(u,f,l,v,!1);this.c().updateMarkerCount(a);this.s(n.ig.util.cast(t.$ks.$type,i),r);this.e().unCacheValues();return}}},q:function(n){return n},s:function(){},p:function(i,r,u,f){var e=this,y=0,p=!1,a=null,b=!1,l=i.d()!=null,k=i.l(),d=i.k(),g=n.ig.util.cast(t.$hl.$type,i.c())!==null&&n.ig.util.cast(t.$hl.$type,i.c()).fy(),rt=i.f(),ut=e.f().provideCollisionDetector(),nt=0,v=new t.iu(k,d,i.b().isInverted()),w=new t.iu(k,d,i.c().isInverted()),h,s,tt,it,o,ft,c;for(l&&(nt=e.q(i.b().getUnscaledValue(2,v)-i.b().getUnscaledValue(1,v)),b=e.k()),h=i.i();h<=i.j();++h)s=l?function(){var n=e.j(i,h,r,nt,p,a,u);return h=n.currentIndex,p=n.isCluster,a=n.endBucket,n.ret}():e.e().getBucket(h),tt=!g||g&&s[1]>0,it=s[0],isNaN(s[0])||(e.u(i,s,u,l,v,w),i.a().h.add(s),p&&b&&a!=null&&(e.u(i,a,u,l,v,w),i.a().h.add(a)),f&&tt&&(o=h*i.h(),ft=o,l&&i.d().sortedIndices()!=null&&o>=0&&o<i.d().sortedIndices().count()&&(o=i.d().sortedIndices().__inner[o]),c=s,rt&&o<r.a()&&(c=new Array(s.length),c[0]=it,e.v(r,o,!0,i.e()),c[1]=r.d(),c[2]=r.e(),e.u(i,c,u,l,v,w)),e.l(i.a(),c,ut,Math.min(o,r.a()-1),y,i.a().h.count()-1)&&++y));return y},k:function(){return n.ig.util.cast(t.$mc.$type,this.f())!==null||n.ig.util.cast(t.$mn.$type,this.f())!==null||n.ig.util.cast(t.$mv.$type,this.f())!==null||n.ig.util.cast(t.$rj.$type,this.f())!==null||n.ig.util.cast(t.$rl.$type,this.f())!==null||n.ig.util.cast(t.$rn.$type,this.f())!==null||n.ig.util.cast(t.$r1.$type,this.f())!==null||n.ig.util.cast(t.$r9.$type,this.f())!==null},v:function(){},r:function(){},i:function(){},j:function(i,r,u,f,e,o,s){var h=this,b,nt,tt,a,w;o=null;e=!1;var p=n.ig.util.cast(t.$fv.$type,h.f()),rt=n.ig.util.cast(t.$rp.$type,h.f()),ut=n.ig.util.cast(t.$kc.$type,h.f()),k=i.k(),d=i.l(),y=new t.iu(d,k,i.b().isInverted()),it=new t.iu(d,k,i.c().isInverted()),v=i.e();if(i.d()==null||i.d().sortedIndices()==null||i.d().sortedIndices().count()==0)return{ret:function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}(),currentIndex:r,isCluster:e,endBucket:o};if(p!=null&&p.bb()!=null&&p.bb().count()<i.d().sortedIndices().count())return{ret:function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}(),currentIndex:r,isCluster:e,endBucket:o};var c=i.d().sortedIndices().__inner[r],l=i.d().getUnscaledValueAt(c),g=l;for(h.v(u,c,!1,v);r<i.j();){if(c=i.d().sortedIndices().__inner[r+1],g=i.d().getUnscaledValueAt(c),h.v(u,c,!0,v),g-l>=f||isNaN(u.d())||isNaN(u.e())){e&&(nt=i.d().sortedIndices().__inner[r],h.v(u,nt,!0,v),o=function(){var n=[];return n.add(i.b().getScaledValue(l+f,y)),n.add(u.d()),n.add(u.e()),n}());break}if(!e&&h.k()&&(tt=i.d().sortedIndices().__inner[r],h.v(u,tt,!0,v),a=function(){var n=[];return n.add(i.b().getScaledValue(l,y)),n.add(u.d()),n.add(u.e()),n}(),!isNaN(a[0])))if(isNaN(a[1])||isNaN(a[2]))break;else h.u(i,a,s,i.d()!=null,y,it),i.a().h.add(a),e=!0;r++;h.r(u,c,v)}return w=NaN,isNaN(l)||(w=i.b().getScaledValue(l,y)),b=h.i(w,u),{ret:b,currentIndex:r,isCluster:e,endBucket:o}},u:function(){},t:function(){},h:function(){},$type:new n.ig.Type("CategoryFramePreparerBase",t.$ly.$type)},!0);n.ig.util.defType("CategoryFramePreparer:lw","CategoryFramePreparerBase",{init:function(i,r){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}t.$lw.init1.call(this,1,r,n.ig.util.cast(t.$kp.$type,r),n.ig.util.cast(t.$a.$type,r),n.ig.util.cast(t.$lz.$type,r),n.ig.util.cast(t.$kf.$type,r))},init1:function(i,r,u,f,e,o){t.$lx.init1.call(this,1,r,u,f,e,o);this.w(new t.ru);n.ig.util.cast(t.$ki.$type,r)!==null&&this.w(n.ig.util.cast(t.$ki.$type,r));this.x(new t.s0);n.ig.util.cast(t.$kh.$type,r)!==null&&this.x(n.ig.util.cast(t.$kh.$type,r))},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},l:function(i,r,u,f,e,o){var s=r[0],h=r[1],c=new t.x(0,s-5,h-5,11,11);return!isNaN(s)&&!isNaN(h)&&!Number.isInfinity(s)&&!Number.isInfinity(h)&&u.tryAdd(c)?(i.p.add({__x:s,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.c().updateMarkerTemplate(e,f,o),!0):!1},h:function(){var n=new t.s1,i=this.x().valueColumn();return n.f(i),n},u:function(n,t,i,r,u,f){t[0]=r?t[0]+i:n.b().getScaledValue(t[0],u)+i;t[1]=n.c().getScaledValue(t[1],f);t[2]=n.h()>1||r?n.c().getScaledValue(t[2],f):t[1]},t:function(i,r,u){var f=this,o;if(f.w().trendLineType()!=0&&f.w().trendlinePreparer()!=null&&!(f.w().trendLinePeriod()<1)){var s=new t.iu(i.l(),i.k(),i.b().isInverted()),h=new t.iu(i.l(),i.k(),i.c().isInverted()),e=r.f();i.d()!=null&&i.d().sortedIndices()!=null&&(e=new t.mr(e,i.d().sortedIndices()));o=function(){var n=new t.km;return n.c(i.h()),n.d(i.i()),n.e(i.j()),n.a(u),n.b(i.g()),n.f(i.k()),n}();f.w().trendLineType()!=0&&(n.ig.util.cast(t.$ss.$type,f.w())!==null?f.w().trendlinePreparer().prepareLine(i.a().q,f.w().trendLineType(),e,f.w().trendLinePeriod(),function(n){return i.c().getScaledValue(n,h)},function(n){return i.b().getScaledValue(n,s)},o):f.w().trendlinePreparer().prepareLine(i.a().q,f.w().trendLineType(),e,f.w().trendLinePeriod(),function(n){return i.b().getScaledValue(n,s)},function(n){return i.c().getScaledValue(n,h)},o))}},v:function(n,t,i,r){var u=n,s=u.f(),f=this.q(s.item(t)),e=f,o;r&&(o=this.e().getBucket(t),f=o[1],e=o[1]);i?(u.d(f),u.e(e)):(u.b(f),u.c(e))},r:function(n,t,i){var r=n,f=r.f(),u,e;t<f.count()&&(i?(e=this.e().getBucket(t),u=e[1]):u=this.q(f.item(t)),r.b(Math.min(r.b(),u)),r.c(Math.max(r.c(),u)))},i:function(n,t){var r=this,i=t;return function(){var t=[];return t.add(r.q(n)),t.add(i.b()),t.add(i.c()),t}()},$type:new n.ig.Type("CategoryFramePreparer",t.$lx.$type)},!0);n.ig.util.defType("BarFramePreparer:u8","CategoryFramePreparer",{init:function(i,r){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}t.$u8.init1.call(this,1,r,n.ig.util.cast(t.$kp.$type,r),n.ig.util.cast(t.$a.$type,r),n.ig.util.cast(t.$lz.$type,r),n.ig.util.cast(t.$kf.$type,r))},init1:function(i,r,u,f,e,o){t.$lw.init1.call(this,1,r,u,f,e,o);this.w(new t.ru);n.ig.util.cast(t.$ki.$type,r)!==null&&this.w(n.ig.util.cast(t.$ki.$type,r));this.x(new t.s0);n.ig.util.cast(t.$kh.$type,r)!==null&&this.x(n.ig.util.cast(t.$kh.$type,r))},l:function(i,r,u,f,e,o){var s=r[1],h=r[0],c=new t.x(0,s-5,h-5,11,11);return!isNaN(s)&&!isNaN(h)&&!Number.isInfinity(s)&&!Number.isInfinity(h)&&u.tryAdd(c)?(i.p.add({__x:s,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.c().updateMarkerTemplate(e,f,o),!0):!1},t:function(n,i,r){var u=this,e;if(u.w().trendLineType()!=0&&u.w().trendlinePreparer()!=null&&!(u.w().trendLinePeriod()<1)){var o=new t.iu(n.l(),n.k(),n.b().isInverted()),s=new t.iu(n.l(),n.k(),n.c().isInverted()),f=i.f();n.d()!=null&&n.d().sortedIndices()!=null&&(f=new t.mr(f,n.d().sortedIndices()));e=function(){var i=new t.km;return i.c(n.h()),i.d(n.i()),i.e(n.j()),i.a(r),i.b(n.g()),i.f(n.k()),i}();u.w().trendLineType()!=0&&u.w().trendlinePreparer().prepareLine(n.a().q,u.w().trendLineType(),f,u.w().trendLinePeriod(),function(t){return n.c().getScaledValue(t,s)},function(t){return n.b().getScaledValue(t,o)},e)}},$type:new n.ig.Type("BarFramePreparer",t.$lw.$type)},!0);n.ig.util.defType("BarTrendFitCalculator:u9","Object",{init:function(){n.ig.$op.init.call(this)},a:function(i,r,u,f,e,o,s,h,c,l,a){var p;if(f==null)switch(r){case 1:f=t.$la.k(e,s,o);break;case 2:f=t.$la.o(e,s,o);break;case 3:f=t.$la.i(e,s,o);break;case 4:f=t.$la.p(e,s,o);break;case 5:f=t.$la.q(e,s,o);break;case 7:f=t.$la.j(e,s,o);break;case 6:f=t.$la.l(e,s,o);break;case 8:f=t.$la.n(e,s,o);break;default:throw new t.f5;}if(f==null)return null;for(p=0;p<u.f().height();p+=2){var w=p/(u.f().height()-1),y=l+w*(a-l),v=NaN;switch(r){case 1:v=t.$la.ad(f,y);break;case 2:v=t.$la.ah(f,y);break;case 3:v=t.$la.ab(f,y);break;case 4:v=t.$la.ai(f,y);break;case 5:v=t.$la.aj(f,y);break;case 7:v=t.$la.ac(f,y);break;case 6:v=t.$la.ae(f,y);break;case 8:v=t.$la.ag(f,y);break;default:throw new t.f5;}v=h(v);y=c(y);isNaN(v)||Number.isInfinity(v)||i.add({__x:v,__y:y+u.a(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}return f},$type:new n.ig.Type("BarTrendFitCalculator",n.ig.$ot)},!0);n.ig.util.defType("TrendLineManagerBase$1:kw","Object",{$tTrendColumn:null,_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(i){this.w=function(){var n=new t.cc;return n.y(!1),n}();this.$tTrendColumn=i;this.$type=this.$type.specialize(this.$tTrendColumn);n.ig.$op.init.call(this);this.e(new t.bh(this.$tTrendColumn,0))},x:function(){return this.w},w:null,t:function(n){this.u(n,null)},c:function(n){return n==1||n==2||n==3||n==4||n==5||n==6||n==7||n==8},b:function(n){return n==9||n==10||n==11||n==12||n==13},u:function(n,t){var r,i;if(this.x().ag().clear(),t!=null&&t.i(this.x().ag()),n!=null)for(r=n.getEnumerator();r.moveNext();)i=r.current(),isNaN(i.__x)||isNaN(i.__y)||(t!=null?t.j(i):this.x().ag().add(i));this.x().y(this.x().ag().count()>0)},r:function(n,t,i){this.s(n,t,i,null)},s:function(n,i,r,u){var o=this,f,e;for(u!=null&&u.i(r),f=t.$k3.f(n.count(),function(t){return n.item(t).__x},function(t){return n.item(t).__y},i.b()).getEnumerator();f.moveNext();)e=f.current(),u!=null?u.j(n.item(e)):r.add(n.item(e))},n:function(n,t){n!=null&&t!=null&&(this.x().u()!=null&&this.q(),n.y().add(this.x()))},q:function(){if(this.x()!=null){var i=n.ig.util.cast(t.$fp.$type,this.x().u());i!=null&&i.y().remove(this.x())}},o:function(){this.x().ag().clear()},v:function(){this.a(null);this.e().clear()},p:function(n){switch(n){case 3:case 2:case 1:case 0:case 4:this.v()}},d:function(n,t){var i=!1;switch(t){case"TrendLineType":case"TrendLinePeriod":this.v();i=!0;break;case"TrendLineThickness":i=!0;break;case"FastItemsSource":i=!0;this.v()}return i},$type:new n.ig.Type("TrendLineManagerBase$1",n.ig.$ot)},!0);n.ig.util.defType("IPreparesCategoryTrendline:kl","Object",{$type:new n.ig.Type("IPreparesCategoryTrendline",null)},!0);n.ig.util.defType("CategoryTrendLineManagerBase:kv","TrendLineManagerBase$1",{init:function(){t.$kw.init.call(this,Number)},prepareLine:function(){},y:function(i,r,u,f){var s=this,e,o;return r!=null&&n.ig.util.cast(t.$kr.$type,r)!==null?(i!=null&&i.q(),e=new t.k8(function(i){var f=i,u=n.ig.util.cast(t.$kr.$type,r);return u!=null&&(i=Math.min(i,u.sortedIndices().count()-1),f=u.sortedIndices().__inner[i]),u.getUnscaledValueAt(f)},function(n,i,u){var f=new t.iu(u,i,r.isInverted());return r.getUnscaledValue(n,f)}),e.n(u,f),e):(n.ig.util.cast(t.$ld.$type,i)!==null)?i:(i!=null&&i.q(),o=new t.ld,o.n(u,f),o)},$type:new n.ig.Type("CategoryTrendLineManagerBase",t.$kw.$type.specialize(Number),[t.$kl.$type])},!0);n.ig.util.defType("CategoryTrendLineManager:ld","CategoryTrendLineManagerBase",{init:function(){t.$kv.init.call(this)},prepareLine:function(i,r,u,f,e,o,s){var h=this,p=s.d()*s.c(),w=s.e()*s.c(),a=new t.bh(t.$z.$type,0),l,c,v,y;if(r==0){h.a(null);h.e().clear();return}if(h.c(r)&&(h.e().clear(),h.a(t.$k9.a(a,r,s,h.a(),u.count(),function(n){return n+1},function(n){return u.item(n)},function(n){return e(n-1)},o,p+1,w+1))),h.b(r))for(h.a(null),t.$lc.b(r,h.e(),u,f),l=s.d();l<=s.e();l+=1)c=l*s.c(),c>=0&&c<h.e().count()&&(v=e(c),y=o(h.e().__inner[c]),a.add({__x:v+s.a(),__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));h.r(a,s,i)},$type:new n.ig.Type("CategoryTrendLineManager",t.$kv.$type)},!0);n.ig.util.defType("BarTrendLineManager:va","CategoryTrendLineManager",{init:function(){t.$ld.init.call(this)},prepareLine:function(i,r,u,f,e,o,s){var h=this,p=s.d()*s.c(),w=s.e()*s.c(),a=new t.bh(t.$z.$type,0),l,c,v,y;if(r==0){h.a(null);h.e().clear();return}if(h.c(r)&&(h.e().clear(),h.a(t.$u9.a(a,r,s,h.a(),u.count(),function(n){return u.item(n)},function(n){return n+1},e,function(n){return o(n-1)},p+1,w+1))),h.b(r))for(h.a(null),t.$lc.b(r,h.e(),u,f),l=s.d();l<=s.e();l+=1)c=l*s.c(),c>=0&&c<h.e().count()&&(v=e(h.e().__inner[c]),y=o(c),a.add({__x:v,__y:y+s.a(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));h.r(a,s,i)},$type:new n.ig.Type("BarTrendLineManager",t.$ld.$type)},!0);n.ig.util.defType("BrushScale:ox","DependencyObject",{init:function(){var i=this;this.h=null;t.$an.init.call(this);this.l(new t.bh(t.$aj.$type,0));this.brushes(new t.fd);this.brushes().collectionChanged=n.ig.Delegate.prototype.combine(this.brushes().collectionChanged,this.m.runOn(this));this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,function(n,t){return i.n(n,t.propertyName(),t.oldValue(),t.newValue())})},m:function(){for(var t=this.l().getEnumerator(),n;t.moveNext();)n=t.current(),n.renderSeries(!1),n.gy()},brushes:function(t){var i,r;if(arguments.length===1){for(this.h!=null&&(this.h.collectionChanged=n.ig.Delegate.prototype.remove(this.h.collectionChanged,this.m.runOn(this))),this.h=t,this.h!=null&&(this.h.collectionChanged=n.ig.Delegate.prototype.combine(this.h.collectionChanged,this.m.runOn(this))),i=this.l().getEnumerator();i.moveNext();)r=i.current(),r.renderSeries(!1),r.gy();return t}return this.h},h:null,_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},registerSeries:function(n){var t=this.l().contains(n);t||this.l().add(n)},unregisterSeries:function(n){var t=this.l().contains(n);t&&this.l().remove(n)},getBrush:function(n){return this.brushes()==null||n<0||n>=this.brushes().count()?null:this.brushes().item(n)},isReady:function(){return!0},s:function(n){return this.brushes()==null||this.brushes().count()==0||n<0?null:this.brushes().getInterpolatedBrush(n)},propertyChanged:null,propertyUpdated:null,o:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},n:function(){for(var t=this.l().getEnumerator(),n;t.moveNext();)n=t.current(),n.renderSeries(!1),n.gy()},$type:new n.ig.Type("BrushScale",t.$an.$type,[t.$a8.$type])},!0);n.ig.util.defType("MarkerManagerBase:n2","Object",{_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},init:function(t,i,r,u,f){n.ig.$op.init.call(this);this.h(t);this.g(i);this.a(r);this.e(u);this.f(f)},l:function(){},j:function(){},d:function(i,r){for(var e=new t.bh(n.ig.Number.prototype.$type,0),o=new t.bh(n.ig.Number.prototype.$type,0),s=r.getEnumerator(),u,f;s.moveNext();)u=s.current(),i.item(u).e().count()>0?e.add(u):o.add(u);return f=new t.bh(n.ig.Number.prototype.$type,0),f.addRange(e),f.addRange(o),f},k:function(i,r,u,f){for(var w=this,s,h,e,o;i>0;)if(i<u.count())for(t.$n2.b()||(s=u,s.shuffle$1(n.ig.Number.prototype.$type)),u=w.d(r,u),h=i,e=0;e<h;e++){var c=e,l=r.item(u.__inner[c]),a,b=function(){var n=l.f(a);return a=n.wasPriority,n.ret}();f.add(b);i--;l.a()&&r.remove(u.__inner[c])}else{for(o=u.getEnumerator();o.moveNext();){var v=o.current(),y=r.item(v),p,k=function(){var n=y.f(p);return p=n.wasPriority,n.ret}();f.add(k);i--;y.a()&&r.remove(v)}u=new t.bh(n.ig.Number.prototype.$type,1,r.keys())}},i:function(n,t,i,r){var o=t.left(),s=t.right(),h=t.top(),c=t.bottom(),u,f,e;if(!n.isEmpty()&&!t.isEmpty())for(u=0;u<i.count();++u)(f=i.item(u).__x,isNaN(f))||(e=i.item(u).__y,isNaN(e))||f<o||f>s||e<h||e>c||r.add(u)},c:function(i,r,u,f){for(var y=this,c=new Array(f.count()),l=y.f()().getEnumerator(),s;l.moveNext();)s=l.current(),s!=-1&&(c[s]=!0);for(var p=Math.floor(i.width()/u),h=new t.f0(n.ig.Number.prototype.$type,t.$n3.$type,0),a=r.getEnumerator();a.moveNext();){var o=a.current(),w=f.item(o).__x,b=f.item(o).__y,k=Math.floor(b/u),d=Math.floor(w/u),v=k*p+d,e;(function(){var n=h.tryGetValue(v,e);return e=n.value,n.ret})()||(e=new t.n3,h.add(v,e));c[o]?e.e().add(o):e.d().add(o)}return h},$type:new n.ig.Type("MarkerManagerBase",n.ig.$ot)},!0);n.ig.util.defType("BubbleMarkerManager:ov","MarkerManagerBase",{_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},init:function(n,i,r,u,f){t.$n2.init.call(this,n,i,r,u,f);this.o(new t.bh(Number,0));this.n(new t.bh(t.$fy.$type,0))},l:function(i,r,u,f,e){var l=this.e()(),c,o,s,a,h;if(i.clear(),this.o().clear(),this.n().clear(),c=new t.bh(n.ig.Number.prototype.$type,0),r=Math.max(0,r),o=null,this.i(u,f,l,c),r>=c.count())o=c;else{o=new t.bh(n.ig.Number.prototype.$type,0);var p=Math.max(8,e),v=this.c(f,c,p,l),y=new t.bh(n.ig.Number.prototype.$type,1,v.keys());t.$n2.b()&&y.sort();this.k(r,v,y,o)}for(s=0;s<o.count();++s){var w=l[o.__inner[s]].__x,b=l[o.__inner[s]].__y,k=this.m().item(o.__inner[s]);this.o().add(k);a=this.h()(this.g()(o.__inner[s]));n.ig.util.cast(t.$fl.$type,a.content()).item(this.g()(o.__inner[s]));h=new t.n6;h.a(n.ig.util.cast(t.$fl.$type,a.content()).item());h.c({__x:w,__y:b,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.containsKey(h.a())||(i.add(h.a(),h),this.n().add(a))}},j:function(i){var o=this,r=new t.bh(n.ig.$op.$type,1,i.keys()),u;for(t.$n2.b()&&r.sort1(function(n,t){var r=i.item(n),u=i.item(t),f=Math.pow(r.c().__x,2)+Math.pow(r.c().__y,2),e=Math.pow(u.c().__x,2)+Math.pow(u.c().__y,2);return f.compareTo(e)}),u=r.getEnumerator();u.moveNext();){var s=u.current(),f=i.item(s),e=o.h()(f.a());e.ah(r.indexOf(s));e.l(f.c().__x);e.m(f.c().__y)}o.a()(i)},$type:new n.ig.Type("BubbleMarkerManager",t.$n2.$type)},!0);n.ig.util.defType("MarkerSeries:fw","Series",{_jt:null,jt:function(n){return arguments.length===1?(this._jt=n,n):this._jt},init:function(){t.$aj.init.call(this)},hc:function(n){t.$aj.hc.call(this,n);this.jt(n)},hasMarkers:function(){return!0},getActualMarkerBrush:function(){return this.actualMarkerBrush()},getActualMarkerOutlineBrush:function(){return this.actualMarkerOutline()},getActualMarkerTemplate:function(){return this.ka},markerType:function(n){return arguments.length===1?(this.g(t.$fw.markerTypeProperty,n),n):this.c(t.$fw.markerTypeProperty)},markerTemplate:function(n){return arguments.length===1?(this.g(t.$fw.markerTemplateProperty,n),n):this.c(t.$fw.markerTemplateProperty)},actualMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$fw.actualMarkerTemplateProperty,n),n):this.c(t.$fw.actualMarkerTemplateProperty)},ka:null,nullMarkerTemplate:function(){return t.$fw.j8==null&&(t.$fw.j8=new t.cg),t.$fw.j8},markerBrush:function(n){return arguments.length===1?(this.g(t.$fw.markerBrushProperty,n),n):this.c(t.$fw.markerBrushProperty)},actualMarkerBrush:function(n){return arguments.length===1?(this.g(t.$fw.actualMarkerBrushProperty,n),n):this.c(t.$fw.actualMarkerBrushProperty)},markerOutline:function(n){return arguments.length===1?(this.g(t.$fw.markerOutlineProperty,n),n):this.c(t.$fw.markerOutlineProperty)},actualMarkerOutline:function(n){return arguments.length===1?(this.g(t.$fw.actualMarkerOutlineProperty,n),n):this.c(t.$fw.actualMarkerOutlineProperty)},markerStyle:function(n){return arguments.length===1?(this.g(t.$fw.markerStyleProperty,n),n):this.c(t.$fw.markerStyleProperty)},useLightweightMarkers:function(n){return arguments.length===1?(this.g(t.$fw.useLightweightMarkersProperty,n),n):this.c(t.$fw.useLightweightMarkersProperty)},jw:function(){return this.ka!=null&&(this.markerType()!=1&&this.markerType()!=0||this.markerTemplate()!=null)},hh:function(i,r,u,f){t.$aj.hh.call(this,i,r,u,f);switch(r){case"MarkerBrush":case"MarkerType":case"MarkerOutline":case"MarkerTemplate":this.hz();this.he();break;case"ActualMarkerTemplate":if(this.ka=f,u==t.$fw.nullMarkerTemplate()||f==t.$fw.nullMarkerTemplate()||u==null||f!=null){this.jt().ce();var e=n.ig.util.cast(t.$fx.$type,this.av());e!=null&&e.ce();this.renderSeries(!1)}this.gy();break;case"UseLightweightMarkers":this.jt().cl(this.useLightweightMarkers());this.renderSeries(!1)}},getMarkerTemplatePropertyName:function(n){switch(n){case 3:return"CircleMarkerTemplate";case 4:return"TriangleMarkerTemplate";case 5:return"PyramidMarkerTemplate";case 6:return"SquareMarkerTemplate";case 7:return"DiamondMarkerTemplate";case 8:return"PentagonMarkerTemplate";case 9:return"HexagonMarkerTemplate";case 10:return"TetragramMarkerTemplate";case 11:return"PentagramMarkerTemplate";case 12:return"HexagramMarkerTemplate";default:case 0:case 1:return null}},resolveMarkerType:function(n,t){var u=this,i=n.seriesViewer()!=null?t:1,r;return i==2&&(r=function(){var n=[];return n.add(3),n.add(4),n.add(8),n.add(10),n.add(7),n.add(6),n.add(9),n.add(11),n.add(5),n.add(12),n}(),i=n.index()>=0?r[n.index()%r.length]:1),i},hz:function(){if(t.$aj.hz.call(this),!(this.index()<0)){if(this.jt().b3())this.jt().cc(),this.jt().b6();else{var i=t.$fw.resolveMarkerType(this,this.markerType()),n=t.$fw.getMarkerTemplatePropertyName(i);n==null?this.actualMarkerTemplate(t.$fw.nullMarkerTemplate()):this.jt().b9(n)}this.markerBrush()!=null?(this.jt().ca(),this.jt().b7()):this.actualMarkerBrush(this.seriesViewer()==null?null:this.seriesViewer().getMarkerBrushByIndex(this.index()));this.markerOutline()!=null?(this.jt().cb(),this.jt().b8()):this.actualMarkerOutline(this.seriesViewer()==null?null:this.seriesViewer().getMarkerOutlineByIndex(this.index()))}},go:function(i){var r=this;t.$aj.go.call(r,i);r.jt().cd(function(u){var f=new t.g4,e=new t.gh,o;f.x(u.l());f.y(u.m());e.fill(t.$b4.n(0,0,0,0));e.stroke(t.$b4.n(0,0,0,0));f.index(-1);f.contentTemplate(u.ae());u.content()!=null&&n.ig.util.cast(t.$fl.$type,u.content())!==null&&u.__visibility==0&&(o=u.content(),e.fill(t.$gk.fromBrush(o.actualItemBrush())),e.fillExtended(t.$gk.fromBrushExtended(o.actualItemBrush())),e.stroke(t.$gk.fromBrush(o.outline())),e.strokeExtended(t.$gk.fromBrushExtended(o.outline())),e.strokeThickness(r.thickness()),o.item()!=null&&f.index(r.bb().indexOf(o.item())));f.visibility(u.__visibility);e.visibility(u.__visibility);f.markerAppearance(e);r.ka==r.seriesViewer().circleMarkerTemplate()?f.markerType("Circle"):r.ka==r.seriesViewer().diamondMarkerTemplate()?f.markerType("Diamond"):r.ka==r.seriesViewer().hexagonMarkerTemplate()?f.markerType("Hexagon"):r.ka==r.seriesViewer().hexagramMarkerTemplate()?f.markerType("Hexagram"):r.ka==r.seriesViewer().pentagonMarkerTemplate()?f.markerType("Pentagon"):r.ka==r.seriesViewer().pentagramMarkerTemplate()?f.markerType("Pentagram"):r.ka==r.seriesViewer().pyramidMarkerTemplate()?f.markerType("Pyramid"):r.ka==r.seriesViewer().squareMarkerTemplate()?f.markerType("Square"):r.ka==r.seriesViewer().tetragramMarkerTemplate()?f.markerType("Tetragram"):r.ka==r.seriesViewer().triangleMarkerTemplate()?f.markerType("Triangle"):f.markerType("None");i.markerShapes().add(f)})},getHitDataContext:function(n){var t=this.jt().bz(n),i=null;return t!=null&&(i=t.content()),i},$type:new n.ig.Type("MarkerSeries",t.$aj.$type)},!0);n.ig.util.defType("ISupportsErrorBars:lz","Object",{$type:new n.ig.Type("ISupportsErrorBars",null)},!0);n.ig.util.defType("ScatterBase:n0","MarkerSeries",{au:function(){return new t.n1(this)},hc:function(n){t.$fw.hc.call(this,n);this.kv(n)},_kv:null,kv:function(n){return arguments.length===1?(this._kv=n,n):this._kv},isScatter:function(){return!0},init:function(){t.$fw.init.call(this);this.kz(new t.oj);this.mk=t.$x.empty();this.mj=t.$x.empty()},_ku:null,ku:function(n){return arguments.length===1?(this._ku=n,n):this._ku},xAxis:function(n){return arguments.length===1?(this.g(t.$n0.xAxisProperty,n),n):this.c(t.$n0.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$n0.yAxisProperty,n),n):this.c(t.$n0.yAxisProperty)},xMemberPath:function(n){return arguments.length===1?(this.g(t.$n0.xMemberPathProperty,n),n):this.c(t.$n0.xMemberPathProperty)},k3:function(n){if(arguments.length===1){if(this.k2!=n){var t=this.k3();this.k2=n;this.raisePropertyChanged("XColumn",t,this.k3())}return n}return this.k2},k2:null,yMemberPath:function(n){return arguments.length===1?(this.g(t.$n0.yMemberPathProperty,n),n):this.c(t.$n0.yMemberPathProperty)},k5:function(n){if(arguments.length===1){if(this.k4!=n){var t=this.k5();this.k4=n;this.raisePropertyChanged("YColumn",t,this.k5())}return n}return this.k4},k4:null,trendLineType:function(n){return arguments.length===1?(this.g(t.$n0.trendLineTypeProperty,n),n):this.c(t.$n0.trendLineTypeProperty)},trendLineBrush:function(n){return arguments.length===1?(this.g(t.$n0.trendLineBrushProperty,n),n):this.c(t.$n0.trendLineBrushProperty)},actualTrendLineBrush:function(n){return arguments.length===1?(this.g(t.$n0.actualTrendLineBrushProperty,n),n):this.c(t.$n0.actualTrendLineBrushProperty)},trendLineThickness:function(n){return arguments.length===1?(this.g(t.$n0.trendLineThicknessProperty,n),n):this.c(t.$n0.trendLineThicknessProperty)},trendLineDashCap:function(n){return arguments.length===1?(this.g(t.$n0.trendLineDashCapProperty,n),n):this.c(t.$n0.trendLineDashCapProperty)},trendLineDashArray:function(n){return arguments.length===1?(this.g(t.$n0.trendLineDashArrayProperty,n),n):this.c(t.$n0.trendLineDashArrayProperty)},trendLinePeriod:function(n){return arguments.length===1?(this.g(t.$n0.trendLinePeriodProperty,n),n):this.c(t.$n0.trendLinePeriodProperty)},markerCollisionAvoidance:function(n){return arguments.length===1?(this.g(t.$n0.markerCollisionAvoidanceProperty,n),n):this.c(t.$n0.markerCollisionAvoidanceProperty)},trendLineZIndex:function(n){return arguments.length===1?(this.g(t.$n0.trendLineZIndexProperty,n),n):this.c(t.$n0.trendLineZIndexProperty)},maximumMarkers:function(n){return arguments.length===1?(this.g(t.$n0.maximumMarkersProperty,n),n):this.c(t.$n0.maximumMarkersProperty)},gs:function(){t.$fw.gs.call(this);this.xAxis()!=null&&this.xAxis().du(!1);this.yAxis()!=null&&this.yAxis().du(!1)},errorBarSettings:function(n){return arguments.length===1?(this.g(t.$n0.errorBarSettingsProperty,n),n):this.c(t.$n0.errorBarSettingsProperty)},hh:function(i,r,u,f){t.$fw.hh.call(this,i,r,u,f);this.kv().cq().d(i,r,u,f)&&(this.renderSeries(!1),this.gy());switch(r){case"FastItemsSource":n.ig.util.cast(t.$jw.$type,u)!=null&&(n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.k3()),n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.k5()),this.k3(null),this.k5(null));n.ig.util.cast(t.$jw.$type,f)!=null&&(this.k3(this.a8(this.xMemberPath())),this.k5(this.a8(this.yMemberPath())));(this.yAxis()==null||this.yAxis().updateRange())&&(this.xAxis()==null||this.xAxis().updateRange())||this.renderSeries(!1);break;case"XAxis":u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);(this.xAxis()==null||this.xAxis().updateRange())&&(f!=null||u==null)||this.renderSeries(!1);this.gy();break;case"YAxis":u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);(this.yAxis()==null||this.yAxis().updateRange())&&(f!=null||u==null)||this.renderSeries(!1);this.gy();break;case"XMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.k3()),this.k3(this.a8(this.xMemberPath())));break;case"XColumn":this.kv().cq().v();this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!1);break;case"YMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.k5()),this.k5(this.a8(this.yMemberPath())));break;case"YColumn":this.kv().cq().v();this.yAxis()==null||this.yAxis().updateRange()||this.renderSeries(!1);break;case"MarkerCollisionAvoidance":this.renderSeries(!1);this.gy();break;case"MaximumMarkers":this.renderSeries(!1);this.gy();break;case"TransitionProgress":this.k0.d(this.du(),this.ky,this.kx);this.lo();try{if(this.bn(this.view()))return;Math.round(this.du()*1e5)/1e5==1?this.ly(this.kx,this.kv()):this.ly(this.k0,this.kv())}finally{this.lz()}break;case"TrendLineBrush":this.hz();break;case"ErrorBarSettings":this.errorBarSettings()!=null&&this.errorBarSettings().p(this);this.renderSeries(!1);this.gy();break;case"TrendLineType":this.gy()}},lz:function(){this.mj=t.$x.empty();this.mk=t.$x.empty()},mj:null,mk:null,lo:function(){var n=this;(function(){var t=n.getViewInfo(n.mj,n.mk);return n.mj=t.viewportRect,n.mk=t.windowRect,t.ret})()},k8:function(n,t){return t!=3?!0:n==null?!0:this.xMemberPath()==n||this.yMemberPath()==n?!0:!1},gj:function(n,t,i,r){var u=!1;this.k8(r,n)&&(this.kv().cq().p(n,t,i,r),this.xAxis()==null||this.xAxis().updateRange()||(u=!0),this.yAxis()==null||this.yAxis().updateRange()||(u=!0),u&&this.renderSeries(!0))},ls:function(n){this.lt(n,null)},lt:function(i,r){var u=this,l=u.k3()!=null?u.k3().count():0,a=u.k5()!=null?u.k5().count():0,v=Math.min(l,a),e,s,c,o,h,f;if(v<=u.maximumMarkers()){for(i.o().clear(),e=new t.bh(t.$n6.$type,0),s=i.w().values().getEnumerator();s.moveNext();)c=s.current(),e.add(c);for(o=u.bb(),e.sort1(function(n,t){var i=o.indexOf(n.a()),r=o.indexOf(t.a());return i<r?-1:i>r?1:0}),r!=null&&r.i(i.o()),h=e.getEnumerator();h.moveNext();)f=h.current(),o.indexOf(f.a())>=0&&(r!=null?r.j(f.c()):i.o().add({__x:f.c().__x,__y:f.c().__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}))}},ad:function(n){return n!=null&&n==this.xAxis()&&this.k3()!=null?new t.im(this.k3().minimum(),this.k3().maximum()):n!=null&&n==this.yAxis()&&this.k5()!=null?new t.im(this.k5().minimum(),this.k5().maximum()):null},getItem:function(){return null},getItemIndex:function(){return-1},scrollIntoView:function(n){var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),o=this.seriesViewer()!=null?this.seriesViewer().viewportRect():t.$x.empty(),e=new t.x(0,0,0,1,1),s=new t.iu(e,e,this.xAxis().isInverted()),h=new t.iu(e,e,this.yAxis().isInverted()),f=!i.isEmpty()&&!o.isEmpty()&&this.bb()!=null?this.bb().indexOf(n):-1,r=this.xAxis()!=null&&this.k3()!=null&&f<this.k3().count()?this.xAxis().getScaledValue(this.k3().item(f),s):NaN,u=this.yAxis()!=null&&this.k5()!=null&&f<this.k5().count()?this.yAxis().getScaledValue(this.k5().item(f),h):NaN;return isNaN(r)||(r<i.left()+.1*i.width()&&(r=r+.4*i.width(),i.x(r-.5*i.width())),r>i.right()-.1*i.width()&&(r=r-.4*i.width(),i.x(r-.5*i.width()))),isNaN(u)||(u<i.top()+.1*i.height()&&(u=u+.4*i.height(),i.y(u-.5*i.height())),u>i.bottom()-.1*i.height()&&(u=u-.4*i.height(),i.y(u-.5*i.height()))),this.syncLink()!=null&&this.syncLink().al(this.seriesViewer(),i),f>=0},h2:function(){this.renderSeries(!1)},h3:function(){this.renderSeries(!1)},ky:null,k0:null,kx:null,lp:function(i,r,u,f){var e=this,o,s,h,a,v;i.i(new t.f0(n.ig.$op.$type,t.$n6.$type,1,r));var y=e.bb(),c,l,p=function(){var n=new t.iu(u,f,e.ku().d());return n.b=e.seriesViewer().effectiveViewport(),n}(),w=function(){var n=new t.iu(u,f,e.ku().e());return n.b=e.seriesViewer().effectiveViewport(),n}();for(o=0;o<r;o++)c=e.k3().item(o),l=e.k5().item(o),s={__x:e.ku().a().getScaledValue(c,p),__y:e.ku().b().getScaledValue(l,w),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},Number.isInfinity(s.__x)||Number.isInfinity(s.__y)||(h=y.item(o),i.i().containsKey(h)||(a={__x:c,__y:l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},v={__x:s.__x,__y:s.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i.i().add(h,function(){var n=new t.n6;return n.a(h),n.b(a),n.c(v),n}())))},lr:function(n,i){var r=this,s;n.k().clear();n.p().clear();n.j().clear();n.l().clear();n.m().clear();n.n().clear();var o=Math.min(r.k3()!=null?r.k3().count():0,r.k5()!=null?r.k5().count():0),f=i.bw(),u=i.bv(),e=new t.iu(f,u,r.xAxis().isInverted());if(e.b=r.seriesViewer().effectiveViewport(),s=new t.iu(f,u,r.yAxis().isInverted()),s.b=r.seriesViewer().effectiveViewport(),!(o<1)){r.ku(function(){var n=new t.oc;return n.a(r.xAxis()),n.b(r.yAxis()),n.d(r.xAxis().isInverted()),n.e(r.yAxis().isInverted()),n.c(r.bb()),n}());o<=r.maximumMarkers()&&r.lp(n,o,f,u);r.jw()&&i.co().l(n.k(),r.maximumMarkers(),f,u,r.resolution());var h=function(){var i=new t.kx(0,u,!1);return i.i(n.p()),i}(),c=r.xAxis().getUnscaledValue(u.left(),e),l=r.xAxis().getUnscaledValue(u.right(),e);i.cq().y(n.p(),r.trendLineType(),r.k3(),r.k5(),r.trendLinePeriod(),function(n){return r.xAxis().getScaledValue(n,e)},function(n){return r.yAxis().getScaledValue(n,s)},function(){var n=new t.km;return n.b(r.resolution()),n.f(u),n.g(f),n}(),h,c,l);r.lq(n,i)}},gh:function(n,i){t.$fw.gh.call(this,n,i);var r=i;r.cy(n)},ly:function(n,i){var r=this,u=i.bv(),f;r.ku(function(){var n=new t.oc;return n.a(r.xAxis()),n.b(r.yAxis()),n.d(r.xAxis().isInverted()),n.e(r.yAxis().isInverted()),n}());r.jw()&&i.co().j(n.k(),r.useLightweightMarkers());i.ck();f=function(){var n=new t.kx(1,NaN,u.bottom(),NaN,u.top(),!1);return n.i(i.cq().x().ag()),n}();i.cq().u(n.p(),f);r.lv(n,i)},lq:function(n,i){var r=this,u=new t.ot(r,i),b,o,s,k,d,tt,l,it,rt,a,ut,g,nt,ft,v,et,ot,y,st;if(r.errorBarSettings()!=null){var f=r.errorBarSettings().horizontalCalculator(),e=r.errorBarSettings().verticalCalculator(),p=0,w=0,h=0,c=0;for(f!=null&&u.c(f)&&(function(){var n=u.k(f,p);return p=n.position,n.ret}(),function(){var n=u.l(f,r.ku().a(),h);return h=n.errorBarSize,n.ret}()),e!=null&&u.c(e)&&(function(){var n=u.k(e,w);return w=n.position,n.ret}(),function(){var n=u.l(e,r.ku().b(),c);return c=n.errorBarSize,n.ret}()),b=n.k().keys().getEnumerator();b.moveNext();)o=b.current(),s=n.k().item(o),f!=null&&(f.getCalculatorType()==1?(tt=r.ku().a(),r.errorBarSettings().horizontalCalculatorReference()==0?(k=s.c().__x,d=r.ku().a()):(k=s.c().__y,d=r.ku().b()),function(){var n=u.h(k,f,d,tt,h);return h=n.errorBarSize,n.ret}()):f.getCalculatorType()==2&&(l=f.getItemColumn(),it=r.bb().indexOf(o),l!=null&&it<l.count()?(rt=l.item(r.bb().indexOf(o)),function(){var n=u.j(rt,r.ku().a(),h);return h=n.errorBarSize,n.ret}()):h=NaN),a=new t.n6,ut=u.d(f,r.ku().a(),s.c(),p),a.c(ut),a.a(s.a()),n.j().add(o,a),n.m().add(o,h)),e!=null&&(e.getCalculatorType()==1?(ft=r.ku().b(),r.errorBarSettings().verticalCalculatorReference()==0?(g=s.c().__x,nt=r.ku().a()):(g=s.c().__y,nt=r.ku().b()),function(){var n=u.h(g,e,nt,ft,c);return c=n.errorBarSize,n.ret}()):e.getCalculatorType()==2&&(v=e.getItemColumn(),et=r.bb().indexOf(o),v!=null&&et<v.count()?(ot=v.item(r.bb().indexOf(o)),function(){var n=u.j(ot,r.ku().b(),c);return c=n.errorBarSize,n.ret}()):c=NaN),y=new t.n6,st=u.e(e,r.ku().b(),s.c(),w),y.c(st),y.a(s.a()),n.l().add(o,y),n.n().add(o,c))}},lv:function(n,t){if(!t.m()||this.errorBarSettings()==null){t.cz();return}this.lw(n,t);this.lx(n,t)},lw:function(n,i){var r,u,e;i.cw();for(var o=new t.ot(this,i),f=new t.dx,h=this.errorBarSettings().horizontalCalculator(),s=n.k().keys().getEnumerator();s.moveNext();)r=s.current(),h!=null&&n.m().containsKey(r)&&(u=n.m().item(r),isNaN(u)||(e=n.j().item(r).c(),(this.errorBarSettings().enableErrorBarsHorizontal()==1||this.errorBarSettings().enableErrorBarsHorizontal()==2)&&o.f(f,e,u,!0),(this.errorBarSettings().enableErrorBarsHorizontal()==1||this.errorBarSettings().enableErrorBarsHorizontal()==3)&&o.f(f,e,u,!1)));i.c0(f)},lx:function(n,i){var r,u,f;i.cx();for(var e=new t.ot(this,i),o=new t.dx,h=this.errorBarSettings().verticalCalculator(),s=n.k().keys().getEnumerator();s.moveNext();)r=s.current(),h!=null&&n.n().containsKey(r)&&(u=n.n().item(r),isNaN(u)||(f=n.l().item(r).c(),(this.errorBarSettings().enableErrorBarsVertical()==1||this.errorBarSettings().enableErrorBarsVertical()==2)&&e.g(o,f,u,!0),(this.errorBarSettings().enableErrorBarsVertical()==1||this.errorBarSettings().enableErrorBarsVertical()==3)&&e.g(o,f,u,!1)))},ct:function(n,i,r){var u=!0;return(!t.$fw.ct.call(this,n,i,r)||i.isEmpty()||n.isEmpty()||this.xAxis()==null||this.yAxis()==null||this.xAxis().seriesViewer()==null||this.yAxis().seriesViewer()==null||this.k3()==null||this.k5()==null||this.k3().count()==0||this.k5().count()==0||this.bb()==null||this.bb().count()!=this.k3().count()||this.bb().count()!=this.k5().count()||this.xAxis().seriesViewer()==null||this.yAxis().seriesViewer()==null||this.xAxis().actualMinimumValue()==this.xAxis().actualMaximumValue()||this.yAxis().actualMinimumValue()==this.yAxis().actualMaximumValue())&&(u=!1),u},getViewInfo:function(n,t){return!this.mj.isEmpty()&&!this.mk.isEmpty()?(n=this.mj,t=this.mk,{viewportRect:n,windowRect:t}):(n=this.view().bv(),t=this.view().bw(),{viewportRect:n,windowRect:t})},hq:function(n){this.lo();try{if(this.bn(this.view()))return;if(this.bb()!=null&&this.bb().count()>this.maximumMarkers()&&(n=!1),this.cg(n)&&!this.cj()){var t=this.ky;this.bl()?(this.a5().needsFlush()&&this.a5().flush(),this.ky=this.k0,this.k0=t):(this.ky=this.kx,this.kx=t);this.lr(this.kx,this.kv());this.hw()}else this.cj()||this.lr(this.kx,this.kv()),this.ly(this.kx,this.kv())}finally{this.lz()}},hz:function(){(t.$fw.hz.call(this),this.index()<0)||this.kv().c3()},_kz:null,kz:function(n){return arguments.length===1?(this._kz=n,n):this._kz},hr:function(i,r){if(t.$fw.hr.call(this,i,r),!this.cl()){this.view().ax(r);return}if(this.view().ax(r),!this.bn(this.av())){var u=n.ig.util.cast(t.$n1.$type,this.av());this.ck()||(this.kz(new t.oj),this.lr(this.kz(),u));this.ck(!1);this.ly(this.kz(),u);this.cl(!1)}},lu:function(i,r){for(var e=new t.bh(n.ig.$op.$type,0),o=r.c().getEnumerator(),u,f,s;o.moveNext();)u=o.current(),i.containsKey(u)||e.add(u);for(f=e.getEnumerator();f.moveNext();)s=f.current(),r.g(s)},k7:function(n,i,r,u){var f=this,o,w,b,e;if(i==null||i.length!=f.ku().c().count())for(i=new Array(f.ku().c().count()),o=0;o<f.ku().c().count();o++)i[o]=new t.z(0);var c=function(){var n=new t.iu(r,u,f.xAxis().isInverted());return n.b=f.seriesViewer().effectiveViewport(),n}(),l=function(){var n=new t.iu(r,u,f.yAxis().isInverted());return n.b=f.seriesViewer().effectiveViewport(),n}(),a=f.ku().a().getUnscaledValue(u.left(),c),v=f.ku().a().getUnscaledValue(u.right(),c),y=f.ku().b().getUnscaledValue(u.bottom(),l),p=f.ku().b().getUnscaledValue(u.top(),l);f.ku().d()&&(w=a,a=v,v=w);f.ku().e()&&(b=y,y=p,p=b);var k=f.ku(),d=k.a(),g=k.b(),s,h,nt=f.k3(),tt=f.k5();for(e=0;e<f.ku().c().count();e++)s=nt.item(e),h=tt.item(e),s>=a&&s<=v&&h>=y&&h<=p?(i[e].__x=d.getScaledValue(s,c),i[e].__y=g.getScaledValue(h,l)):(i[e].__x=NaN,i[e].__y=NaN);return i},k6:function(n,t){var u;(t==null||t.length!=n.e())&&(t=new Array(n.e()));for(var i=0,f=this.bb(),r=n.c().getEnumerator();r.moveNext();)u=r.current(),t[i]=f.indexOf(u),i++;return t},go:function(n){t.$fw.go.call(this,n);var i=new t.g8(1,"trendLine",this.kv().cq().x());i.tags().add("Trend");n.shapes().add(i)},$type:new n.ig.Type("ScatterBase",t.$fw.$type,[t.$lz.$type])},!0);n.ig.util.defType("BubbleSeries:nz","ScatterBase",{au:function(){return new t.ou(this)},hc:function(n){t.$n0.hc.call(this,n);this.mm(n)},_mm:null,mm:function(n){return arguments.length===1?(this._mm=n,n):this._mm},init:function(){t.$n0.init.call(this);this.y(t.$nz.$type);this.ky=new t.oj;this.k0=new t.oj;this.kx=new t.oj},_nj:null,nj:function(n){return arguments.length===1?(this._nj=n,n):this._nj},_ni:null,ni:function(n){return arguments.length===1?(this._ni=n,n):this._ni},mr:function(){return this.ms()},_mv:null,mv:function(n){return arguments.length===1?(this._mv=n,n):this._mv},radiusMemberPath:function(n){return arguments.length===1?(this.g(t.$nz.radiusMemberPathProperty,n),n):this.c(t.$nz.radiusMemberPathProperty)},ms:function(n){if(arguments.length===1){if(this.mp!=n){var t=this.ms();this.mp=n;this.raisePropertyChanged("RadiusColumn",t,this.ms())}return n}return this.mp},mp:null,radiusScale:function(n){return arguments.length===1?(this.g(t.$nz.radiusScaleProperty,n),n):this.c(t.$nz.radiusScaleProperty)},labelMemberPath:function(n){return arguments.length===1?(this.g(t.$nz.labelMemberPathProperty,n),n):this.c(t.$nz.labelMemberPathProperty)},mt:null,mu:function(n){if(arguments.length===1){if(this.mt!=n){var t=this.mu();this.mt=n;this.raisePropertyChanged("LabelColumn",t,this.mu())}return n}return this.mt},fillMemberPath:function(n){return arguments.length===1?(this.g(t.$nz.fillMemberPathProperty,n),n):this.c(t.$nz.fillMemberPathProperty)},fillScale:function(n){return arguments.length===1?(this.g(t.$nz.fillScaleProperty,n),n):this.c(t.$nz.fillScaleProperty)},mo:null,mq:function(n){if(arguments.length===1){if(this.mo!=n){var t=this.mq();this.mo=n;this.raisePropertyChanged("FillColumn",t,this.mq())}return n}return this.mo},lp:function(i,r,u,f){var e=this,o,s,h,a;r<=e.maximumMarkers()&&i.i(new t.f0(n.ig.$op.$type,t.$n6.$type,1,r));var v=e.bb(),c,l,y=new t.iu(u,f,e.ku().d()),p=new t.iu(u,f,e.ku().e());for(o=0;o<r;o++)c=e.k3().item(o),l=e.k5().item(o),s={__x:e.ku().a().getScaledValue(c,y),__y:e.ku().b().getScaledValue(l,p),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},Number.isInfinity(s.__x)||Number.isInfinity(s.__y)||(h=v.item(o),r<=e.maximumMarkers()&&(i.i().containsKey(h)||(a={__x:c,__y:l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i.i().add(h,function(){var n=new t.n6;return n.a(h),n.b(a),n.c(s),n}()))))},ly:function(i,r){var u=this,f,e;u.ku(function(){var n=new t.oc;return n.a(u.xAxis()),n.b(u.yAxis()),n.d(u.xAxis().isInverted()),n.e(u.yAxis().isInverted()),n}());f=n.ig.util.cast(t.$ou.$type,r);f.co().j(i.k(),u.useLightweightMarkers());r.ck();e=function(){var n=new t.kx(1,NaN,r.bv().bottom(),NaN,r.bv().top(),!1);return n.i(r.cq().x().ag()),n}();r.cq().u(i.p(),e)},lr:function(i,r){var u=this,e,h;i.k().clear();i.p().clear();e=n.ig.util.cast(t.$ou.$type,r);h=e.co();h.m(u.ms());var c=Math.min(u.k3()!=null?u.k3().count():0,u.k5()!=null?u.k5().count():0),o=r.bw(),f=r.bv(),s=new t.iu(o,f,u.xAxis().isInverted()),l=new t.iu(o,f,u.yAxis().isInverted());if(!(c<1)){u.ku(function(){var n=new t.oc;return n.a(u.xAxis()),n.b(u.yAxis()),n.d(u.xAxis().isInverted()),n.e(u.yAxis().isInverted()),n.c(u.bb()),n}());u.lp(i,c,o,f);e.co().l(i.k(),u.maximumMarkers(),o,f,u.resolution());e.da();e.db();u.na();var a=function(){var n=new t.kx(0,f,!1);return n.i(i.p()),n}(),v=u.xAxis().getUnscaledValue(f.left(),s),y=u.xAxis().getUnscaledValue(f.right(),s);e.cq().y(i.p(),u.trendLineType(),u.k3(),u.k5(),u.trendLinePeriod(),function(n){return u.xAxis().getScaledValue(n,s)},function(n){return u.yAxis().getScaledValue(n,l)},function(){var n=new t.km;return n.b(u.resolution()),n.f(f),n.g(o),n}(),a,v,y)}},na:function(){var i,r;this.seriesViewer()!=null&&(i=n.ig.util.cast(t.$nw.$type,this.actualLegend()),i!=null&&(i.a9(this),this.m9(),i.bb(this)),r=n.ig.util.cast(t.$oy.$type,this.actualLegend()),r!=null&&(r.bi(),r.bg(this)))},mw:function(n,t,i,r,u){if(u<=n||isNaN(u)||Number.isInfinity(u))return i;if(u>=t)return r;return i+(r-i)/(t-n)*(u-n)},mx:function(n,i,r,u,f,e){var o=Math.logBase(e,f),s=Math.logBase(n,f),h=Math.logBase(i,f);return t.$nz.mw(s,h,r,u,o)},ct:function(n,i,r){var u=t.$n0.ct.call(this,n,i,r);return(this.ms()==null||this.bb()==null||this.ms().count()==0||this.bb().count()!=this.ms().count())&&(u=!1),u},k8:function(n,t){return t!=3?!0:n==null?!0:this.xMemberPath()==n||this.yMemberPath()==n||this.radiusMemberPath()==n?!0:!1},m9:function(){var i=this,o=n.ig.util.cast(t.$nw.$type,i.actualLegend()),r,u,f,e;if(o!=null&&i.bb()!=null)for(i.mv(new t.bh(t.$am.$type,0)),r=0;r<i.bb().count();r++)u=null,n.ig.util.cast(t.$o2.$type,i.fillScale())!==null&&i.mq()!=null?u=i.fillScale().getBrushByIndex(r,i.mq()):n.ig.util.cast(t.$o0.$type,i.fillScale())!==null?u=i.fillScale().getBrush1(r,i.bb().count()):i.fillScale()!=null&&(u=i.fillScale().getBrush(r)),f=new t.cf,e=i.mu()!=null&&i.mu().item(r)!=null?i.mu().item(r).toString():"",f.content(function(){var n=new t.fl;return n.series(i),n.item(i.bb().item(r)),n.itemBrush(u),n.itemLabel(e),n}()),f.ae(i.discreteLegendItemTemplate()),i.mv().add(f)},gj:function(n,i,r,u){t.$n0.gj.call(this,n,i,r,u);this.na()},hh:function(i,r,u,f){var o,e,s,h,c,l;t.$n0.hh.call(this,i,r,u,f);switch(r){case"FastItemsSource":n.ig.util.cast(t.$jw.$type,u)!=null&&(n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.ms()),n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.mq()),n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.mu()),this.ms(null),this.mq(null),this.mu(null));n.ig.util.cast(t.$jw.$type,f)!=null&&(this.ms(this.a8(this.radiusMemberPath())),String.isNullOrEmpty(this.fillMemberPath())||this.mq(this.a8(this.fillMemberPath())),this.mu(this.ba(this.labelMemberPath())));this.renderSeries(!1);this.na();break;case"RadiusMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.ms()),this.ms(this.a8(this.radiusMemberPath())),this.na());break;case"RadiusColumn":this.kv().cq().v();this.renderSeries(!1);this.gz();break;case"RadiusScale":this.renderSeries(!1);this.gy();break;case"FillScale":this.renderSeries(!1);this.na();this.gy();break;case"FillColumn":this.renderSeries(!1);this.gy();break;case"FillMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.mq()),this.mq(this.a8(this.fillMemberPath())),this.na());break;case"LabelMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.mu()),this.mu(this.ba(this.labelMemberPath())),this.na());break;case"ActualLegend":if(o=n.ig.util.cast(t.$nw.$type,u),o!=null&&o.a9(this),e=n.ig.util.cast(t.$oy.$type,u),e!=null){if(s=!0,h=null,this.seriesViewer()!=null)for(c=this.seriesViewer().series().getEnumerator();c.moveNext();)l=c.current(),l.legend()==e&&(h=l,s=!1);s?e.bi():e.bg(h)}this.na()}},nc:function(n,i,r,u){var l=this.ms().minimum(),a=this.ms().maximum(),e,o,h,p,s,f,c;if(this.radiusScale()!=null){var v=this.radiusScale().minimumValue(),y=this.radiusScale().maximumValue(),w=this.radiusScale().logarithmBase();if(this.radiusScale().j().contains(this)||this.radiusScale().j().add(this),this.radiusScale().isLogarithmic())for(e=0;e<i.count();e++)i.__inner[e]=t.$nz.mx(l,a,v,y,w,i.__inner[e]);else for(o=0;o<i.count();o++)i.__inner[o]=t.$nz.mw(l,a,v,y,i.__inner[o])}if(u)for(h=r.width(),this.view().bv().isEmpty()?this.seriesViewer()==null||this.seriesViewer().viewportRect().isEmpty()||(h=this.seriesViewer().viewportRect().width()):h=this.view().bv().width(),p=r.width()/h,s=0;s<i.count();s++)i.__inner[s]=i.__inner[s]*p;for(f=0;f<n.count();f++)c=n.__inner[f],c.width(Math.max(0,i.__inner[f])),c.height(Math.max(0,i.__inner[f]))},nb:function(i){var s,l,u,a,f,r,e;this.fillScale()==null||this.fillScale().l().contains(this)||this.fillScale().l().add(this);var h=n.ig.util.cast(t.$o0.$type,this.fillScale()),o=n.ig.util.cast(t.$o2.$type,this.fillScale()),c=this.fillScale(),v=this.fillScale()==null||!this.fillScale().isReady()||o!=null&&this.fillMemberPath()==null;if(v){this.mm().c9();s=n.ig.util.cast(t.$ou.$type,this.av());s!=null&&s.c9();return}for(l=i.count(),u=0;u<l;u++)a=i.__inner[u],f=n.ig.util.cast(t.$fl.$type,a.content()),f!=null&&(r=null,e=this.bb().indexOf(f.item()),h!=null?r=h.getBrush1(e,this.bb().count()):o!=null?r=o.getBrushByIndex(e,this.mq()):c!=null&&(r=c.getBrush(e)),f.itemBrush(r))},$type:new n.ig.Type("BubbleSeries",t.$n0.$type)},!0);n.ig.util.defType("MarkerSeriesView:fx","SeriesView",{_b2:null,b2:function(n){return arguments.length===1?(this._b2=n,n):this._b2},init:function(n){this.by=new t.fy;t.$bb.init.call(this,n);this.by=new t.fy;this.by.content(new t.fl);this.b2(n)},ao:function(){var n=this;t.$bb.ao.call(n);n.b5(new t.bh(t.$fy.$type,0));n.cm=function(){var n=new t.cg;return n.render(t.$fz.c),n.measure(t.$fz.b),n}()},ce:function(){for(var n=this.b5().getEnumerator(),t;n.moveNext();)t=n.current(),t.ae(this.b2().ka);this.am()},cl:function(){},_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},b1:function(){var i=this,n=new t.fy;return n.content(function(){var n=new t.fl;return n.series(i.d()),n}()),n.ae(i.b2().ka),i.b5().add(n),n},cd:function(){},ch:function(n){n.__visibility=0},cj:function(n){n.__visibility=1},ci:function(n){this.b5().remove(n)},b3:function(){return this.b2().markerTemplate()!=null},cc:function(){this.b2().actualMarkerTemplate(null)},b6:function(){this.b2().actualMarkerTemplate(this.b2().markerTemplate())},b9:function(n){switch(n){case"CircleMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().circleMarkerTemplate());break;case"TriangleMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().triangleMarkerTemplate());break;case"PyramidMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().pyramidMarkerTemplate());break;case"SquareMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().squareMarkerTemplate());break;case"DiamondMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().diamondMarkerTemplate());break;case"PentagonMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().pentagonMarkerTemplate());break;case"HexagonMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().hexagonMarkerTemplate());break;case"TetragramMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().tetragramMarkerTemplate());break;case"PentagramMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().pentagramMarkerTemplate());break;case"HexagramMarkerTemplate":this.b2().actualMarkerTemplate(this.b2().seriesViewer().hexagramMarkerTemplate())}},ca:function(){this.b2().actualMarkerBrush(null)},b7:function(){this.b2().actualMarkerBrush(this.b2().markerBrush())},cb:function(){this.b2().actualMarkerOutline(null)},b8:function(){this.b2().actualMarkerOutline(this.b2().markerOutline())},ck:function(){this.am()},_b4:!1,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},bc:function(n,i){if(t.$bb.bc.call(this,n,i),!this.b4()){var u=n,r=u.content();r!=null&&(r.actualItemBrush(this.b2().actualMarkerBrush()),r.itemBrush()!=null&&r.actualItemBrush(r.itemBrush()),r.outline(this.b2().actualMarkerOutline()),r.thickness(.5))}},by:null,bd:function(n,i){var r;t.$bb.bd.call(this,n,i);r=n;this.by.__visibility=r.__visibility;this.by.ae(r.ae());this.by.width(r.width());this.by.height(r.height());this.by.k(r.k());this.by.j(r.j());this.by.l(r.l());this.by.m(r.m());var e=this.bs(i),u=this.by.content(),f=r.content();u.item(f.item());u.series(f.series());u.thickness(f.thickness());u!=null&&(u.actualItemBrush(e),u.outline(e),u.thickness(4))},a:function(n){return n>=0&&n<this.b5().count()?this.b5().__inner[n].content():t.$bb.a.call(this,n)},cm:null,a0:function(n,i){var e,u,f,s,h,o,r,c;if(t.$bb.a0.call(this,n,i),n.c()){e=new t.ce;e.isHitTestRender=i;e.context=n.e();e.viewportTop=this.bv().top();e.viewportLeft=this.bv().left();e.viewportWidth=this.bv().width();e.viewportHeight=this.bv().height();e.passID="Markers";u=new t.cd;u.isHitTestRender=i;u.passInfo=e;f=new t.cj;f.passInfo=e;s=!1;h=n.e();f.context=h;u.context=h;var l=0,a=0,v=!0;for(this.b2().ka!=null&&this.b2().ka.passStarting()!=null&&this.b2().ka.passStarting()(e),o=0;o<this.b5().count();o++)(r=this.b5().__inner[o],r.__visibility!=1)&&(this.bb(r,o,i),i&&(r=this.by),s?(u.availableWidth=l,u.availableHeight=a):(f.data=r.content(),f.width=r.width(),f.height=r.height(),f.renderOffsetX=0,f.renderOffsetY=0,f.renderContext=n,c=r.ae(),c.measure()!=null&&(f.data=r.content(),c.measure()(f),s=f.isConstant,s&&(l=f.width,a=f.height)),u.availableWidth=f.width,u.availableHeight=f.height,u.renderOffsetX=f.renderOffsetX,u.renderOffsetY=f.renderOffsetY,u.renderContext=n),isNaN(r.width())||Number.isInfinity(r.width())||(u.availableWidth=r.width()),isNaN(r.height())||Number.isInfinity(r.height())||(u.availableHeight=r.height()),v=!1,n.n(u,r),r.k(u.availableWidth),r.j(u.availableHeight),r.af=u.renderOffsetX,r.ag=u.renderOffsetY);this.b2().ka!=null&&this.b2().ka.passCompleted()!=null&&this.b2().ka.passCompleted()(e)}},cf:function(n){n.create(this.b1.runOn(this));n.destroy(this.ci.runOn(this));n.activate(this.ch.runOn(this));n.disactivate(this.cj.runOn(this))},cg:function(n){n.create(this.b1.runOn(this));n.destroy(this.ci.runOn(this));n.activate(this.ch.runOn(this));n.disactivate(this.cj.runOn(this))},bz:function(n){var t=this.b0(n,0);return t==null&&(t=this.b0(n,3)),t},b0:function(n,t){for(var i,r,u,f,e,o=this.b5().count()-1;o>=0;o--)if((i=this.b5().__inner[o],i.__visibility!=1&&i.__opacity!=0)&&(r=i.k()/2+t,u=i.j()/2+t,f=i.af,e=i.ag,i.l()+f-r<=n.__x&&i.l()+f+r>=n.__x&&i.m()+e-u<=n.__y&&i.m()+e+u>=n.__y))return i;return null},$type:new n.ig.Type("MarkerSeriesView",t.$bb.$type)},!0);n.ig.util.defType("ScatterBaseView:n1","MarkerSeriesView",{_co:null,co:function(n){return arguments.length===1?(this._co=n,n):this._co},_cv:null,cv:function(n){return arguments.length===1?(this._cv=n,n):this._cv},_cp:null,cp:function(n){return arguments.length===1?(this._cp=n,n):this._cp},_cu:null,cu:function(n){return arguments.length===1?(this._cu=n,n):this._cu},init:function(i){this.c4=null;t.$fx.init.call(this,i);this.cp(i);this.cr(new t.f6(n.ig.$op.$type,t.$fy.$type));this.cf(this.cr());this.cq(new t.n4)},_c5:null,c5:function(n){return arguments.length===1?(this._c5=n,n):this._c5},_c6:null,c6:function(n){return arguments.length===1?(this._c6=n,n):this._c6},_cq:null,cq:function(n){return arguments.length===1?(this._cq=n,n):this._cq},ao:function(){t.$fx.ao.call(this);this.co(this.cn());this.c5(new t.b6);this.c6(new t.b6);this.n()||this.cp().maximumMarkers(2e3)},c4:null,c7:function(n){this.c4==null&&(this.c4=new t.cj,this.c4.context=this.g().e());this.c4.width=n.width();this.c4.height=n.height();this.c4.data=n.content();var i=n.ae();return i.measure()!=null&&i.measure()(this.c4),new t.y(this.c4.width,this.c4.height)},cn:function(){var n=this,i=new t.n5(1,function(t){return n.cr().item(t)},function(t){return n.cp().ku().c().item(t)},n.c2.runOn(n),n.ct.runOn(n),n.cs.runOn(n),function(){return n.cp().markerCollisionAvoidance()});return i.o(n.c7.runOn(n)),i},c2:function(n){this.cp().lu(n,this.cr())},ct:function(){return this.cv(this.cp().k7(this.cr(),this.cv(),this.bw(),this.bv())),this.cv()},cs:function(){return this.cu(this.cp().k6(this.cr(),this.cu())),this.cu()},cw:function(){},c0:function(){},cx:function(){},c1:function(){},c3:function(){this.cp().trendLineBrush()!=null?this.cp().actualTrendLineBrush(this.cp().trendLineBrush()):this.cp().actualTrendLineBrush(this.cp().actualBrush())},_cr:null,cr:function(n){return arguments.length===1?(this._cr=n,n):this._cr},cd:function(n){this.cr().f(n)},cz:function(){},a0:function(n,i){if(n.c()&&this.cp().trendLineType()!=0&&!i){var r=this.cq().x();r.z(this.cp().trendLineThickness());r.__stroke=this.cp().actualTrendLineBrush();r.af(this.cp().trendLineDashArray());r.aa(this.cp().trendLineDashCap());n.s(r)}t.$fx.a0.call(this,n,i)},cy:function(n){n&&(this.cz(),this.cr().clear());this.cq().o();this.am()},getDefaultTooltipTemplate:function(){var n="<div class='ui-chart-default-tooltip-content'><span";return this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&(n+=" style='color:"+this.d().actualOutline().__fill+"'"),n+(">"+this.cp().title()+"<\/span><br/><span>x: <\/span><span class='ui-priority-primary'>${item."+this.cp().xMemberPath()+"}<\/span><br/><span>y: <\/span><span class='ui-priority-primary'>${item."+this.cp().yMemberPath()+"}<\/span><\/div>")},$type:new n.ig.Type("ScatterBaseView",t.$fx.$type)},!0);n.ig.util.defType("BubbleSeriesView:ou","ScatterBaseView",{_c8:null,c8:function(n){return arguments.length===1?(this._c8=n,n):this._c8},init:function(n){t.$n1.init.call(this,n);this.c8(n);this.cq(new t.n4)},ao:function(){var n=this;t.$n1.ao.call(n);n.n()||(n.b2().markerType(2),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.p),n.measure(t.$mx.j),n}()))},cn:function(){var n=this;return new t.ov(function(t){return n.cr().item(t)},function(t){return n.d().bb().item(t)},n.c2.runOn(n),n.ct.runOn(n),n.cs.runOn(n))},da:function(){var n=this.co();this.c8().nc(n.n(),n.o(),this.bv(),this==this.d().av());this.am()},db:function(){var n=this.co();this.c8().nb(n.n())},c9:function(){for(var f=this.co(),r=f.n().getEnumerator(),u,i;r.moveNext();)u=r.current(),i=n.ig.util.cast(t.$fl.$type,u.content()),i!=null&&i.itemBrush(null)},getDefaultTooltipTemplate:function(){var n="<div class='ui-chart-default-tooltip-content'><span";return this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&(n+=" style='color:"+this.d().actualOutline().__fill+"'"),n+=">"+this.c8().title()+"<\/span><br/><span>(${item."+this.c8().xMemberPath()+"}, ${item."+this.c8().yMemberPath()+"})<\/span>",String.isNullOrEmpty(this.c8().radiusMemberPath())||(n+="<span>, Radius: ${item."+this.c8().radiusMemberPath()+"}<\/span>"),n+"<\/div>"},$type:new n.ig.Type("BubbleSeriesView",t.$n1.$type)},!0);n.ig.util.defType("CustomPaletteBrushScale:o0","BrushScale",{init:function(){t.$ox.init.call(this)},brushSelectionMode:function(n){return arguments.length===1?(this.g(t.$o0.brushSelectionModeProperty,n),n):this.c(t.$o0.brushSelectionModeProperty)},getBrush1:function(n,i){if(this.brushes()==null||this.brushes().count()==0)return null;if(this.brushSelectionMode()==0)return t.$ox.getBrush.call(this,n%this.brushes().count());var r=t.$nz.mw(0,i-1,0,this.brushes().count()-1,n);return this.s(r)},isReady:function(){return this.brushes()!=null&&this.brushes().count()>0},$type:new n.ig.Type("CustomPaletteBrushScale",t.$ox.$type)},!0);n.ig.util.defType("SizeScale:ow","DependencyObject",{init:function(){var i=this;t.$an.init.call(this);this.j(new t.bh(t.$aj.$type,0));this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,function(n,t){return i.r(n,t.propertyName(),t.oldValue(),t.newValue())})},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},minimumValue:function(n){return arguments.length===1?(this.g(t.$ow.minimumValueProperty,n),n):this.c(t.$ow.minimumValueProperty)},maximumValue:function(n){return arguments.length===1?(this.g(t.$ow.maximumValueProperty,n),n):this.c(t.$ow.maximumValueProperty)},isLogarithmic:function(n){return arguments.length===1?(this.g(t.$ow.isLogarithmicProperty,n),n):this.c(t.$ow.isLogarithmicProperty)},logarithmBase:function(n){return arguments.length===1?(this.g(t.$ow.logarithmBaseProperty,n),n):this.c(t.$ow.logarithmBaseProperty)},propertyChanged:null,propertyUpdated:null,s:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},r:function(){for(var t=this.j().getEnumerator(),n;t.moveNext();)n=t.current(),n.renderSeries(!1),n.seriesViewer()!=null&&n.gy()},$type:new n.ig.Type("SizeScale",t.$an.$type,[t.$a8.$type])},!0);n.ig.util.defType("ValueBrushScale:o2","BrushScale",{init:function(){t.$ox.init.call(this)},minimumValue:function(n){return arguments.length===1?(this.g(t.$o2.minimumValueProperty,n),n):this.c(t.$o2.minimumValueProperty)},maximumValue:function(n){return arguments.length===1?(this.g(t.$o2.maximumValueProperty,n),n):this.c(t.$o2.maximumValueProperty)},isLogarithmic:function(n){return arguments.length===1?(this.g(t.$o2.isLogarithmicProperty,n),n):this.c(t.$o2.isLogarithmicProperty)},logarithmBase:function(n){return arguments.length===1?(this.g(t.$o2.logarithmBaseProperty,n),n):this.c(t.$o2.logarithmBaseProperty)},getBrushByIndex:function(n,t){if(t==null||this.brushes()==null||this.brushes().count()==0||n<0||n>=t.count())return null;if(t.count()==0)return this.brushes().item(0);var i=isNaN(this.minimumValue())||Number.isInfinity(this.minimumValue())?t.minimum():this.minimumValue(),r=isNaN(this.maximumValue())||Number.isInfinity(this.maximumValue())?t.maximum():this.maximumValue(),u=t.item(n);return i==r?u==i?this.brushes().item(0):null:this.ai(i,r,u)},getBrushByValue:function(n,t){if(t==null||this.brushes()==null||this.brushes().count()==0)return null;if(t.count()<=1)return this.brushes().item(0);var i=isNaN(this.minimumValue())||Number.isInfinity(this.minimumValue())?t.minimum():this.minimumValue(),r=isNaN(this.maximumValue())||Number.isInfinity(this.maximumValue())?t.maximum():this.maximumValue();return n<i?null:n>r?null:this.ai(i,r,n)},ai:function(n,t,i){if(this.isLogarithmic()&&this.logarithmBase()>0){var r=Math.logBase(n,this.logarithmBase()),u=Math.logBase(t,this.logarithmBase()),f=Math.logBase(i,this.logarithmBase());return this.ah(r,u,f)}return this.ah(n,t,i)},ah:function(n,t,i){if(i<n||i>t)return null;var r=(i-n)/(t-n),u=r*(this.brushes().count()-1);return this.s(u)},isReady:function(){return this.brushes()!=null&&this.brushes().count()>0},$type:new n.ig.Type("ValueBrushScale",t.$ox.$type)},!0);n.ig.util.defType("IHasCategoryAxis:ha","Object",{$type:new n.ig.Type("IHasCategoryAxis",null)},!0);n.ig.util.defType("IHasCategoryModePreference:g9","Object",{$type:new n.ig.Type("IHasCategoryModePreference",null,[t.$ha.$type])},!0);n.ig.util.defType("CategorySeries:fv","MarkerSeries",{_k0:null,k0:function(n){return arguments.length===1?(this._k0=n,n):this._k0},au:function(){return new t.ko(this)},_k4:null,k4:function(n){return arguments.length===1?(this._k4=n,n):this._k4},hc:function(n){t.$fw.hc.call(this,n);this.k4(n)},preferredCategoryMode:function(){return 0},categoryAxis:function(){return this.kv()},kv:function(){return this.kt()},isCategory:function(){return!0},init:function(){this.kx=new t.ks(3);this.kz=new t.ks(3);this.kw=new t.ks(3);this.ky=new t.ks(3);t.$fw.init.call(this);this.k3=new t.mf;this.k7(new t.q5);this.ml=new t.x(0,0,0,1,1);this.lf(!1);this.le(!1);this.y(t.$fv.$type)},onApplyTemplate:function(){t.$fw.z.call(this);this.k4().cn().f(this.resolution())},isCustomCategoryStyleAllowed:function(n){return arguments.length===1?(this.g(t.$fv.isCustomCategoryStyleAllowedProperty,n),n):this.c(t.$fv.isCustomCategoryStyleAllowedProperty)},isCustomCategoryMarkerStyleAllowed:function(n){return arguments.length===1?(this.g(t.$fv.isCustomCategoryMarkerStyleAllowedProperty,n),n):this.c(t.$fv.isCustomCategoryMarkerStyleAllowedProperty)},_lf:!1,lf:function(n){return arguments.length===1?(this._lf=n,n):this._lf},_le:!1,le:function(n){return arguments.length===1?(this._le=n,n):this._le},assigningCategoryStyle:null,assigningCategoryMarkerStyle:null,lm:function(){return this.assigningCategoryStyle!=null&&this.lf()||this.isHighlightingEnabled()},ln:function(){return this.assigningCategoryMarkerStyle!=null&&this.le()||this.isHighlightingEnabled()},md:function(n){this.assigningCategoryStyle!=null&&this.lf()&&this.assigningCategoryStyle(this,n)},mc:function(n){this.assigningCategoryMarkerStyle!=null&&this.le()&&this.assigningCategoryMarkerStyle(this,n)},getCategoryItems:function(){return null},gh:function(n,i){t.$fw.gh.call(this,n,i);n&&this.l7(i)},as:function(){return t.$fw.as.call(this)},gs:function(){var n,i;t.$fw.gs.call(this);n=this.kt();n!=null&&n.du(!1);i=this.ku();i!=null&&i.du(!1)},useHighMarkerFidelity:function(n){return arguments.length===1?(this.g(t.$fv.useHighMarkerFidelityProperty,n),n):this.c(t.$fv.useHighMarkerFidelityProperty)},h3:function(n,i){t.$fw.h3.call(this,n,i);this.k4().cn().f(this.resolution());this.renderSeries(!1)},transitionInMode:function(n){return arguments.length===1?(this.g(t.$fv.transitionInModeProperty,n),n):this.c(t.$fv.transitionInModeProperty)},isTransitionInEnabled:function(n){return arguments.length===1?(this.g(t.$fv.isTransitionInEnabledProperty,n),n):this.c(t.$fv.isTransitionInEnabledProperty)},h2:function(n,i){this.cm()&&this.du()<.05&&(this.seriesViewer()==null||!this.seriesViewer().b5())&&this.cn(!0);t.$fw.h2.call(this,n,i);this.k4().cn().f(this.resolution());this.renderSeries(!1)},hh:function(n,i,r,u){t.$fw.hh.call(this,n,i,r,u);switch(i){case"SeriesViewer":var f=this.ku(),e=this.kt();r!=null&&u==null&&(this.gk(e),this.gk(f));r==null&&u!=null&&(this.hl(e),this.hl(f));this.k4().cn().f(this.resolution());this.renderSeries(!1);break;case"SyncLink":this.syncLink()!=null&&this.seriesViewer()!=null&&this.k4().cn().f(this.resolution());this.renderSeries(!1);break;case"TransitionProgress":if(this.kz.d(this.du(),this.kx,this.kw),this.bn(this.view()))return;this.du()==1?(this.kw.w(),this.me(this.kw,this.k4()),this.cm()&&(this.cm(!1),this.gi(),this.a5().intervalMilliseconds(this.dl()),this.a5().easingFunction(this.transitionEasingFunction()))):this.me(this.kz,this.k4());break;case"ErrorBarSettings":this.gy();break;case"UseHighMarkerFidelity":this.renderSeries(!1);break;case"IsCustomCategoryStyleAllowed":this.lf(this.lh());this.renderSeries(!1);break;case"IsCustomCategoryMarkerStyleAllowed":this.le(this.lg());this.renderSeries(!1)}},lh:function(){return this.isCustomCategoryStyleAllowed()},lg:function(){return this.isCustomCategoryMarkerStyleAllowed()},lt:function(n){return this.dc(n,this.kt())},ly:function(i){var r=this.view().bw(),u=this.view().bv();if(r.isEmpty()||u.isEmpty())return-1;var f=this.kt(),s=n.ig.util.cast(t.$kr.$type,f),e=new t.iu(r,u,f.isInverted()),o=f.getUnscaledValue(u.left(),e),h=f.getUnscaledValue(u.right(),e),c=(i.__x-r.left())/r.width(),l=o+(h-o)*c;return s.getIndexClosestToUnscaledValue(l)},getOffsetValue:function(){},getCategoryWidth:function(){},getItem:function(i){var r=0,u=this.kt();if(n.ig.util.cast(t.$kr.$type,u)!==null){if(r=this.ly(i),r==-1)return null}else r=this.getItemIndex(i);return r>=0&&this.bb()!=null&&r<this.bb().count()?this.bb().item(r):null},getItemIndex:function(n){return Math.round(this.getExactItemIndex(n))},getExactItemIndex:function(n){var i=this.view().bw(),r=this.view().bv(),u=-1,t=this.kt();if(t!=null&&!i.isEmpty()&&!r.isEmpty()){var f=t.getUnscaledValue2(r.left(),i,r,t.categoryMode()),o=t.getUnscaledValue2(r.right(),i,r,t.categoryMode()),s=(n.__x-i.left())/i.width(),e=f+s*(o-f);t.categoryMode()!=0&&(e-=.5);u=e}return u},_lb:null,lb:function(n){return arguments.length===1?(this._lb=n,n):this._lb},_lc:null,lc:function(n){return arguments.length===1?(this._lc=n,n):this._lc},li:function(){return!1},l0:function(n){var f=this.kw,y,p,w,i,l,e,a,r,v,o;this.bl()&&(f=this.kz);var s=this.view().bv(),h=this.view().bw(),c=this.kv(),b=new t.iu(h,s,c.isInverted()),u=0;if(c.isVertical()?(y=(n.__y-h.top())/h.height(),u=y*s.height()+s.top()):(p=(n.__x-h.left())/h.width(),u=p*s.width()+s.left()),c.isInverted()){for(w=f.h.count(),i=0,i=w-1;i>=0;i--)if(l=f.h.__inner[i],e=null,i>0&&(e=f.h.__inner[i-1]),l[0]<=u&&e==null||e[0]>=u)return e!=null?Math.abs(l[0]-u)<Math.abs(e[0]-u)?i:i-1:i;return i}for(a=f.h.count(),r=0,r=0;r<a;r++)if(v=f.h.__inner[r],o=null,r<a-1&&(o=f.h.__inner[r+1]),v[0]<=u&&o==null||o[0]>=u)return o!=null?Math.abs(v[0]-u)<Math.abs(o[0]-u)?r:r+1:r;return r},ai:function(n,t){var i=this.la(n,t,this.lc());return this.lc(i),i},b2:function(){return!0},ah:function(n,t){var i,r;return this.li()?(i=this.k9(n,t,this.lb()),this.lb(i),i):(r=this.k8(n,t,this.lb()),this.lb(r),r)},lr:function(){return this.k4().cq().a()},la:function(n,i,r){var o,f,u,a,v,s,y,p,c,h,w,b,l,e;if(!this.jw()||(o=this.kw,this.bl()&&(o=this.kz),f=this.fromWorldPosition(i),u=this.lr(),u==null)||(a=u.count(),a==0))return null;if(v=u.__inner[0].aj(),this.isVertical())for(s=o.h.__inner[u.__inner[0].aj()][0],y=(f.__y-s)*(f.__y-s),c=0;c<a;c++)s=o.h.__inner[u.__inner[c].aj()][0],p=(f.__y-s)*(f.__y-s),p<=y&&(y=p,v=u.__inner[c].aj());else for(h=o.h.__inner[u.__inner[0].aj()][0],w=(f.__x-h)*(f.__x-h),l=0;l<a;l++)h=o.h.__inner[u.__inner[l].aj()][0],b=(f.__x-h)*(f.__x-h),b<=w&&(w=b,v=u.__inner[l].aj());return(e=new t.mj,e.series(this),e.isMarker(!0),e.startIndex(v),e.endIndex(e.startIndex()),r!=null&&r.startIndex()==e.startIndex()&&r.endIndex()==e.endIndex())?r:e},k9:function(i,r,u){var v=this.bb().count(),y=this.k4().cn().d,p=this.k4().cn().e,s=this.k4().cn().c,a=this.kv(),f=-1,o=-1,c,h,l,e;return(a.isSorting()?(c=this.kw,this.bl()&&(c=this.kz),h=this.l0(r),f=h,o=h):(l=this.getItemIndex(r),f=Math.floor(n.ig.intDivide(l,s))*s,o=f+(s-1)),u!=null&&u.startIndex()==f&&u.endIndex()==o)?u:(e=new t.mj,e.series(this),e.startIndex(f),e.endIndex(o),e)},k8:function(n,i,r){var u=new t.mj;return(u.series(this),u.startIndex(0),u.endIndex(this.bb().count()-1),r!=null&&r.startIndex()==u.startIndex()&&r.endIndex()==u.endIndex())?r:u},kx:null,kz:null,kw:null,ky:null,k3:null,l9:function(n,t,i,r,u,f){var o=this.bk();this.k3.ab(n,t,i,r,u,f,o);var e=this.k3.a(),s=null,h=this.bb();o&&this.seriesViewer()!=null&&(s=this.seriesViewer().ap().a(this,h,r,e.startIndex(),e.endIndex(),!0),e.highlightingInfo(s));e.isThumbnail(f);this.mc(e);this.k3.z(s,f,o)},ma:function(n,t,i,r,u,f){var o=this.bk();this.k3.ac(n,t,i,r,u,f,o);var e=this.k3.b(),s=null,h=this.bb();o&&this.seriesViewer()!=null&&(s=this.seriesViewer().ap().a(this,h,r,e.startIndex(),e.endIndex(),!1),e.highlightingInfo(s));e.isThumbnail(f);this.md(e);this.k3.aa(s,f,o)},ct:function(n,i,r){var u=t.$fw.ct.call(this,n,i,r),f;return u&=this.lq(this.kt()),u&=this.lq(this.ku()),f=r,(!r.m()||i.isEmpty()||n.isEmpty()||this.bb()==null)&&(u=!1),u||(f.cn().c=0),u},lq:function(i){var r,u;if(i==null||i.seriesViewer()==null)return!1;if(r=n.ig.util.cast(t.$hb.$type,i),r!=null){if(r.itemsSource()==null||r.f3<1)return!1}else if(u=n.ig.util.cast(t.$hl.$type,i),u!=null)return u.actualMinimumValue()!=u.actualMaximumValue();return!0},ci:function(){return this.isTransitionInEnabled()},k5:function(){return 12},_k7:null,k7:function(n){return arguments.length===1?(this._k7=n,n):this._k7},gi:function(){t.$fw.gi.call(this);this.kx.w();this.kw.w();this.kz.w()},hq:function(n){if(t.$fw.hq.call(this,n),this.k4().cn().f(this.resolution()),!this.bn(this.view())){if(this.cj()){this.bl()?this.me(this.kz,this.k4()):this.me(this.kw,this.k4());return}if(this.cg(n)){var i=this.kx;this.bl()?(this.a5().needsFlush()&&this.a5().flush(),this.kx=this.kz,this.kz=i):(this.kx=this.kw,this.kw=i);this.mb(this.kw,this.k4());this.cn()&&(this.a5().stop(),this.a5().intervalMilliseconds(this.dm()),this.a5().easingFunction(this.transitionInEasingFunction()!=null?this.transitionInEasingFunction():this.transitionEasingFunction()),this.k7().p(this.kx,this.kw,this.isVertical(),this.kt(),this.ku(),this.transitionInMode(),this.k5(),this.transitionInSpeedType(),this.az(),this.lv.runOn(this),this.k4().bv()));this.gf();this.hw();this.cn()&&(this.cn(!1),this.cm(!0))}else this.mb(this.kw,this.k4()),this.me(this.kw,this.k4())}},az:function(){return 3},lv:function(){return this.isVertical()?this.jr().left():this.jr().bottom()},lz:function(){for(var f=0,o=this.kt(),e=this.seriesViewer().series().getEnumerator(),r,i,u;e.moveNext();){if(r=e.current(),r==this)return f;i=n.ig.util.cast(t.$fv.$type,r);i!=null&&(u=n.ig.util.cast(t.$hb.$type,i.kt()),u==o&&i.preferredCategoryMode(u)==2&&f++)}return-1},xAxis:function(){return this.kt()},yAxis:function(){return this.ku()},l8:function(n,i){var r,u,o,s;this.k3.w(this,this.ln(),this.getCategoryItems.runOn(this),this.lw(n),this.lx(n));var h=this.k3.a(),c=h!=null,f=this.kv();if(f!=null){var l=new t.iu(n.bw(),n.bv(),f.isInverted()),a=this.bb().count(),e=n,v=i.h,y=e.cn().d,w=e.cn().e,p=e.cn().c,b=y*p;for(r=0;r<n.cq().c();r++)u=n.cq().item(r),o=u.content(),c&&(s=u.aj(),this.l9(v,s,a,f,l,n.n())),this.k3.ad(u,o)}},me:function(n,t){this.jq(n.aa());t.aq()},ml:null,mm:function(){return this.ml},mb:function(n){n.v()},lw:function(n){return n.cn().c},lx:function(n){return n.cn().d},l7:function(n){var t=n;t.cq().c(0)},hr:function(i,r){if(t.$fw.hr.call(this,i,r),!this.cl()){this.view().ax(r);return}var u=n.ig.util.cast(t.$ko.$type,this.av());(u.cn().f(this.resolution()),this.view().ax(r),this.bn(this.av()))||(this.mf(),this.cl(!1))},mf:function(){var i=n.ig.util.cast(t.$ko.$type,this.av());this.ck()||this.mb(this.ky,i);this.ck(!1);this.me(this.ky,i)},kt:function(){},ku:function(){},lo:function(){},k1:function(i){var r=n.ig.util.cast(t.$ko.$type,i);return r!=null&&r==this.av()?new t.lw(1,n.ig.util.cast(t.$kd.$type,this),n.ig.util.cast(t.$kp.$type,r),this.seriesViewer().a6().o(),this,r.cn()):this.k0()},$type:new n.ig.Type("CategorySeries",t.$fw.$type,[t.$g9.$type,t.$lz.$type])},!0);n.ig.util.defType("IIsCategoryBased:kd","Object",{$type:new n.ig.Type("IIsCategoryBased",null)},!0);n.ig.util.defType("IHasSingleValueCategory:kh","Object",{$type:new n.ig.Type("IHasSingleValueCategory",null)},!0);n.ig.util.defType("IHasTrendline:kj","Object",{$type:new n.ig.Type("IHasTrendline",null)},!0);n.ig.util.defType("IHasCategoryTrendline:ki","Object",{$type:new n.ig.Type("IHasCategoryTrendline",null,[t.$kj.$type])},!0);n.ig.util.defType("AnchoredCategorySeries:kc","CategorySeries",{_mo:null,mo:function(n){return arguments.length===1?(this._mo=n,n):this._mo},au:function(){return new t.kn(this)},hc:function(n){t.$fv.hc.call(this,n);this.mo(n)},_mt:!1,mt:function(n){return arguments.length===1?(this._mt=n,n):this._mt},init:function(){t.$fv.init.call(this);this.mp(new t.ls);this.k0(new t.lw(1,this,this.k4(),this,this,this.k4().cn()))},_mp:null,mp:function(n){return arguments.length===1?(this._mp=n,n):this._mp},valueMemberPath:function(n){return arguments.length===1?(this.g(t.$kc.valueMemberPathProperty,n),n):this.c(t.$kc.valueMemberPathProperty)},valueColumn:function(n){if(arguments.length===1){if(this.mq!=n){var t=this.mq;this.mq=n;this.mt()||this.raisePropertyChanged("ValueColumn",t,this.mq)}return n}return this.mq},mq:null,trendLineType:function(n){return arguments.length===1?(this.g(t.$kc.trendLineTypeProperty,n),n):this.c(t.$kc.trendLineTypeProperty)},trendLineBrush:function(n){return arguments.length===1?(this.g(t.$kc.trendLineBrushProperty,n),n):this.c(t.$kc.trendLineBrushProperty)},actualTrendLineBrush:function(n){return arguments.length===1?(this.g(t.$kc.actualTrendLineBrushProperty,n),n):this.c(t.$kc.actualTrendLineBrushProperty)},trendLineThickness:function(n){return arguments.length===1?(this.g(t.$kc.trendLineThicknessProperty,n),n):this.c(t.$kc.trendLineThicknessProperty)},trendLineDashCap:function(n){return arguments.length===1?(this.g(t.$kc.trendLineDashCapProperty,n),n):this.c(t.$kc.trendLineDashCapProperty)},trendLineDashArray:function(n){return arguments.length===1?(this.g(t.$kc.trendLineDashArrayProperty,n),n):this.c(t.$kc.trendLineDashArrayProperty)},trendLinePeriod:function(n){return arguments.length===1?(this.g(t.$kc.trendLinePeriodProperty,n),n):this.c(t.$kc.trendLinePeriodProperty)},trendLineZIndex:function(n){return arguments.length===1?(this.g(t.$kc.trendLineZIndexProperty,n),n):this.c(t.$kc.trendLineZIndexProperty)},scrollIntoView:function(i){var r=this.view().bw(),l=this.view().bv(),o=new t.x(0,0,0,1,1),s=!r.isEmpty()&&!l.isEmpty()&&this.bb()!=null?this.bb().indexOf(i):-1,e=this.kt(),h=this.ku(),c=new t.iu(o,o,e.isInverted()),a=new t.iu(o,o,h.isInverted()),u=e!=null?e.getScaledValue(s,c):NaN,v=e!=null?this.k0().n(n.ig.util.cast(t.$ke.$type,e),c.d,c.c):0,f;return u+=v,f=h!=null&&this.valueColumn()!=null&&s<this.valueColumn().count()?h.getScaledValue(this.valueColumn().item(s),a):NaN,isNaN(u)||(u<r.left()+.1*r.width()&&(u=u+.4*r.width(),r.x(u-.5*r.width())),u>r.right()-.1*r.width()&&(u=u-.4*r.width(),r.x(u-.5*r.width()))),isNaN(f)||(f<r.top()+.1*r.height()&&(f=f+.4*r.height(),r.y(f-.5*r.height())),f>r.bottom()-.1*r.height()&&(f=f-.4*r.height(),r.y(f-.5*r.height()))),this.syncLink()!=null&&this.syncLink().al(this.seriesViewer(),r),s>=0},ms:function(n,t,i){var r,u;if(t<n||n<0||n>this.valueColumn().count()||t<0||t>this.valueColumn().count()||i==null)return null;var f=new Array(t-n+1),e=i.isSorting(),o=null;for(e&&(o=i.sortedIndices()),r=n;r<=t;r++)u=r,e&&(u=o.__inner[u]),f[r-n]=this.bb().item(r);return f},hh:function(i,r,u,f){var e,o;t.$fv.hh.call(this,i,r,u,f);this.mo().cx().d(i,r,u,f)&&(this.renderSeries(!1),this.gy());switch(r){case"FastItemsSource":n.ig.util.cast(t.$jw.$type,u)!=null&&(n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.valueColumn()),this.valueColumn(null));n.ig.util.cast(t.$jw.$type,f)!=null&&this.valueColumn(this.a8(this.valueMemberPath()));e=n.ig.util.cast(t.$hl.$type,this.ku());e==null||e.updateRange()||(this.mo().cn().f(this.resolution()),this.renderSeries(!1));break;case"ValueMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.valueColumn()),this.valueColumn(this.a8(this.valueMemberPath())));this.mx(this.valueMemberPath());break;case"ValueColumn":this.mo().cx().v();o=n.ig.util.cast(t.$hl.$type,this.ku());o==null||o.updateRange()||(this.mo().cn().f(this.resolution()),this.renderSeries(!1));break;case"TrendLineBrush":this.hz();break;case"ErrorBarSettings":this.renderSeries(!1);break;case"TrendLineType":this.gy()}},ad:function(n){return this.valueColumn()==null||this.valueColumn().count()==0?null:n==this.kt()?new t.im(0,this.valueColumn().count()-1):n==this.ku()?new t.im(this.valueColumn().minimum(),this.valueColumn().maximum()):null},gj:function(n,t,i,r){switch(n){case 4:case 1:case 0:this.mo().cn().f(this.resolution())}this.mo().cx().p(n,t,i,r)},lv:function(){return this.mu(this.k4())},mu:function(i){var u=0,f=i.bw(),e=i.bv(),r=n.ig.util.cast(t.$iq.$type,this.ku()),o;return f.isEmpty()||e.isEmpty()||r==null||(o=new t.iu(f,e,r.isInverted()),u=r.getScaledValue(r.referenceValue(),o)),u},m4:function(i,r,u){var e=this.mu(u),f;i.count()>0&&(f=e,i.add({__x:i.last$1(t.$z.$type).__x,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.add({__x:i.first$1(t.$z.$type).__x,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}))},mn:function(n,i,r,u){var f=null;if(i>-1&&!u.isEmpty()&&!r.isEmpty()){var e=n.__inner[0][0]<r.left()-2e3?r.left()-10:NaN,o=r.bottom()+10,s=n.__inner[i][0]>r.right()+2e3?r.right()+10:NaN,h=r.top()-10;f=new t.kx(1,e,o,s,h,!1)}return f},ct:function(n,i,r){var u=t.$fv.ct.call(this,n,i,r),f=r;return(this.valueColumn()==null||this.valueColumn().count()==0||f.cn().c<1)&&(u=!1),u},gh:function(n,i){t.$fv.gh.call(this,n,i);var r=i;r.ct();r.cx().o()},mb:function(n,i){t.$fv.mb.call(this,n,i);this.k1(i).d(n,i)},me:function(i,r){t.$fv.me.call(this,i,r);var u=n.ig.util.cast(t.$kn.$type,r);u.b4(!0);u.cx().t(i.q);this.jw()&&(t.$ry.b(this,i.p,r.cq(),this.useLightweightMarkers()),this.l8(r,i),r.ck());this.m1(i,r)},m1:function(){},hz:function(){(t.$fv.hz.call(this),this.index()<0)||(this.mo().c1(),this.trendLineBrush()!=null?this.mo().cz():this.mo().cy())},eg:function(n,i){return n==this.mo().cx().x()?null:t.$fv.eg.call(this,n,i)},currentCategoryMode:function(){return this.preferredCategoryMode(n.ig.util.cast(t.$hb.$type,this.kt()))},scaler:function(){return n.ig.util.cast(t.$ke.$type,this.kt())},yScaler:function(){return n.ig.util.cast(t.$ix.$type,this.ku())},bucketizer:function(){return this.mo().cn()},currentMode2Index:function(){return this.lz()},provideCollisionDetector:function(){return new t.mq},trendlinePreparer:function(){return this.mo().cx()},_mx:null,mx:function(n){return arguments.length===1?(this._mx=n,n):this._mx},m2:function(){},m3:function(){},go:function(n){t.$fv.go.call(this,n);var i=new t.g8(1,"trendLine",this.mo().cx().x());i.tags().add("Trend");n.shapes().add(i)},$type:new n.ig.Type("AnchoredCategorySeries",t.$fv.$type,[t.$kd.$type,t.$kh.$type,t.$ki.$type])},!0);n.ig.util.defType("VerticalAnchoredCategorySeries:vb","AnchoredCategorySeries",{init:function(){t.$kc.init.call(this)},xAxis:function(n){return arguments.length===1?(this.g(t.$vb.xAxisProperty,n),n):this.c(t.$vb.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$vb.yAxisProperty,n),n):this.c(t.$vb.yAxisProperty)},isVertical:function(){return!0},kv:function(){return this.yAxis()},getOffsetValue:function(){return this.k0().n(this.yAxis(),this.view().bw(),this.view().bv())},getCategoryWidth:function(){return this.yAxis().getCategorySize(this.view().bw(),this.view().bv())},getNextOrExactIndex:function(n,t){return this.d3(n,t,this.yAxis(),this.lt.runOn(this),this.valueColumn())},getPreviousOrExactIndex:function(n,t){return this.d5(n,t,this.yAxis(),this.lt.runOn(this),this.valueColumn())},c8:function(n,t,i,r,u){return this.valueColumn()==null?Number.POSITIVE_INFINITY:this.c9(n,t,this.yAxis(),r,u,this.valueColumn().count(),this.lt.runOn(this))},getSeriesValue:function(n,i,r){if(this.seriesViewer()==null)return NaN;var u=new t.iu(this.seriesViewer().actualWindowRect(),this.view().bv(),this.yAxis().isInverted()),f=this.k0().n(this.yAxis(),this.seriesViewer().actualWindowRect(),this.view().bv());return this.dk(this.valueColumn(),n,this.yAxis(),u,f,this.lt.runOn(this),i,r)},getSeriesValuePosition:function(n,t,i){return this.et(n,t,i,this.k0().n(this.yAxis(),this.view().bw(),this.view().bv()),this.xAxis(),this.yAxis(),null,null,null)},kt:function(){return this.xAxis()},ku:function(){return this.yAxis()},m2:function(i){this.xAxis(n.ig.util.cast(t.$l7.$type,i))},m3:function(i){this.yAxis(n.ig.util.cast(t.$l4.$type,i))},lo:function(){return this.xAxis()!=null&&this.xAxis().updateRange()},getCategoryItems:function(n,t){return this.ms(n,t,this.yAxis())},getExactItemIndex:function(n){var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=this.view().bv(),u=-1;if(this.yAxis()!=null&&!i.isEmpty()&&!r.isEmpty()){var f=this.yAxis().getUnscaledValue2(r.top(),i,r,this.yAxis().categoryMode()),o=this.yAxis().getUnscaledValue2(r.bottom(),i,r,this.yAxis().categoryMode()),s=(n.__y-i.top())/i.height(),e=f+s*(o-f);this.yAxis().categoryMode()!=0&&(e-=.5);u=e}return u},lt:function(n){return this.dc(n,this.ku())},getItemIndex:function(n){return Math.round(this.getExactItemIndex(n))},getItem:function(n){var t=this.getItemIndex(n);return t>=0&&this.bb()!=null&&t<this.bb().count()?this.bb().item(t):null},hh:function(i,r,u,f){t.$kc.hh.call(this,i,r,u,f);switch(r){case"XAxis":u!=f&&(this.gk(n.ig.util.cast(t.$hc.$type,u)),this.hl(n.ig.util.cast(t.$hc.$type,f)),this.k4().cn().f(this.resolution()),this.renderSeries(!1),this.gy());break;case"YAxis":u!=f&&(this.gk(n.ig.util.cast(t.$hc.$type,u)),this.hl(n.ig.util.cast(t.$hc.$type,f)),this.k4().cn().f(this.resolution()),this.lo(),this.renderSeries(!1),this.gy())}},$type:new n.ig.Type("VerticalAnchoredCategorySeries",t.$kc.$type)},!0);n.ig.util.defType("IBarSeries:ss","Object",{$type:new n.ig.Type("IBarSeries",null)},!0);n.ig.util.defType("BarSeries:vc","VerticalAnchoredCategorySeries",{au:function(){return new t.vd(this)},k5:function(){return 1},hc:function(n){t.$vb.hc.call(this,n);this.nm(n)},_nm:null,nm:function(n){return arguments.length===1?(this._nm=n,n):this._nm},li:function(){return!0},init:function(){t.$vb.init.call(this);this.y(t.$vc.$type);this.k0(new t.u8(1,this,this.nm(),this,this,this.nm().cn()))},k1:function(i){var r=n.ig.util.cast(t.$ko.$type,i);return r!=null&&r==this.av()?new t.u8(1,this,n.ig.util.cast(t.$kp.$type,r),this.seriesViewer().a6().o(),this,r.cn()):this.k0()},onApplyTemplate:function(){t.$vb.onApplyTemplate.call(this)},radiusX:function(n){return arguments.length===1?(this.g(t.$vc.radiusXProperty,n),n):this.c(t.$vc.radiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$vc.radiusYProperty,n),n):this.c(t.$vc.radiusYProperty)},preferredCategoryMode:function(){return 2},gh:function(i,r){t.$vb.gh.call(this,i,r);var u=n.ig.util.cast(t.$vd.$type,r);i&&u!=null&&u.c4()!=null&&u.c4().c(0)},lz:function(){for(var u=0,f=this.seriesViewer().series().getEnumerator(),r,i;f.moveNext();){if(r=f.current(),r==this)return u;i=n.ig.util.cast(t.$ss.$type,r);i!=null&&i.yAxis()==this.yAxis()&&i.getPreferredCategoryMode()==2&&u++}return t.$os.b(!1,"CategorySeries.GetMode2Index failed to find series"),-1},mu:function(n){var i=0,r=n.bw(),u=n.bv(),f=new t.iu(r,u,this.xAxis().isInverted());return r.isEmpty()||u.isEmpty()||this.xAxis()==null||(i=this.xAxis().getScaledValue(this.xAxis().referenceValue(),f)),i},ad:function(n){return this.valueColumn()==null||this.valueColumn().count()==0?null:n==this.yAxis()?new t.im(0,this.valueColumn().count()-1):n==this.xAxis()?new t.im(this.valueColumn().minimum(),this.valueColumn().maximum()):null},scrollIntoView:function(n){var i=this.view().bw(),o=this.view().bv(),f=new t.x(0,0,0,1,1),e=!i.isEmpty()&&!o.isEmpty()&&this.bb()!=null?this.bb().indexOf(n):-1,s=new t.iu(f,f,this.xAxis().isInverted()),h=new t.iu(f,f,this.yAxis().isInverted()),r=this.yAxis()!=null?this.yAxis().getScaledValue(e,h):NaN,c=this.yAxis()!=null?this.k0().n(this.yAxis(),f,f):0,u;return r+=c,u=this.xAxis()!=null&&this.valueColumn()!=null&&e<this.valueColumn().count()?this.xAxis().getScaledValue(this.valueColumn().item(e),s):NaN,isNaN(u)||(u<i.left()+.1*i.width()&&(u=u+.4*i.width(),i.x(u-.5*i.width())),u>i.right()-.1*i.width()&&(u=u-.4*i.width(),i.x(u-.5*i.width()))),isNaN(r)||(r<i.top()+.1*i.height()&&(r=r+.4*i.height(),i.y(r-.5*i.height())),r>i.bottom()-.1*i.height()&&(r=r-.4*i.height(),i.y(r-.5*i.height()))),this.syncLink()!=null&&this.syncLink().al(this.seriesViewer(),i),e>=0},me:function(i,r){var e,v,w,nt,b,u,f;if(t.$vb.me.call(this,i,r),e=i.h,r.m()){var a=r.bw(),o=r.bv(),k=new t.iu(a,o,this.xAxis().isInverted()),d=this.yAxis(),g=new t.iu(a,o,this.yAxis().isInverted()),y=this.xAxis(),p=y.getScaledValue(y.referenceValue(),k),s=this.yAxis().fy(a,o),h=n.ig.util.cast(t.$vd.$type,r);if(isNaN(s)||Number.isInfinity(s)||isNaN(p)){h.c4().c(0);return}for(this.k3.x(this,this.lm(),this.yAxis(),this.getCategoryItems.runOn(this),this.lw(r),this.lx(r)),this.k3.p=this.radiusX(),this.k3.q=this.radiusY(),this.k3.j=this.radiusX(),this.k3.k=this.radiusY(),v=!1,w=this.k3.b(),w!=null&&(v=!0),nt=this.xAxis().isSorting(),b=this.valueColumn().count(),u=0;u<e.count();++u){var tt=e.__inner[u][0]-.5*s,c=e.__inner[u][1],l=p;l=Math.max(l,-100);c=Math.min(c,o.right()+100);f=h.c4().item(u);f.height(s);f.width(Math.abs(c-l));v&&this.ma(e,u,b,d,g,r.n());this.k3.ae(f,!1,!1,!1,!1);f.ai(this.k3.j);f.aj(this.k3.k);h.c9(f,Math.min(c,l),tt)}h.c4().c(e.count());r.cu(i)}},gj:function(n,t,i,r){switch(n){case 4:case 1:case 0:this.mo().cn().f(this.resolution())}this.mo().cx().p(n,t,i,r);switch(n){case 4:this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!0);break;case 1:this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!0);break;case 0:this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!0);break;case 2:this.valueMemberPath()!=null&&this.mo().cn().c>0&&this.renderSeries(!0);break;case 3:r==this.valueMemberPath()&&(this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!0))}},hh:function(i,r,u,f){t.$vb.hh.call(this,i,r,u,f);switch(r){case"XAxis":u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);this.mo().cn().f(this.resolution());this.xAxis()!=null&&this.xAxis().updateRange()&&this.renderSeries(!1);break;case"YAxis":u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);this.mo().cx(t.$kv.y(this.mo().cx(),this.yAxis(),this.rootCanvas(),this));this.mo().cn().f(this.resolution());this.renderSeries(!1);break;case"FastItemsSource":this.xAxis()==null||this.xAxis().updateRange()||(this.mo().cn().f(this.resolution()),this.renderSeries(!1));break;case"ValueColumn":this.xAxis()==null||this.xAxis().updateRange()||(this.mo().cn().f(this.resolution()),this.renderSeries(!1));break;case"SeriesViewer":u!=null&&f==null&&(this.gk(this.xAxis()),this.gk(this.yAxis()));u==null&&f!=null&&(this.hl(this.xAxis()),this.hl(this.yAxis()));this.mo().cn().f(this.resolution());this.renderSeries(!1)}},getPreferredCategoryMode:function(){return this.preferredCategoryMode(this.yAxis())},currentCategoryMode:function(){return this.preferredCategoryMode(this.yAxis())},scaler:function(){return this.yAxis()},yScaler:function(){return this.xAxis()},$type:new n.ig.Type("BarSeries",t.$vb.$type,[t.$kd.$type,t.$ss.$type])},!0);n.ig.util.defType("ISupportsMarkers:kp","Object",{$type:new n.ig.Type("ISupportsMarkers",null)},!0);n.ig.util.defType("CategorySeriesView:ko","MarkerSeriesView",{_cp:null,cp:function(n){return arguments.length===1?(this._cp=n,n):this._cp},_cs:0,cs:function(n){return arguments.length===1?(this._cs=n,n):this._cs},cr:function(n){return this.cs()!=n.u()?!0:!1},cu:function(n){this.cs(n.u())},init:function(n){var i=this;t.$fx.init.call(this,n);this.cs(-1);this.cp(n);this.cn(this.co());this.cq(function(){var n=new t.ga(t.$fy.$type);return n.create(i.b1.runOn(i)),n.activate(i.ch.runOn(i)),n.disactivate(i.cj.runOn(i)),n.destroy(i.ci.runOn(i)),n}())},updateMarkerTemplate:function(n,t,i){if(!this.b2().useLightweightMarkers()){var r=this.cq().item(n),u=r.content();u.item(this.d().bb().item(t));r.ai(t);r.aj(i)}},_cn:null,cn:function(n){return arguments.length===1?(this._cn=n,n):this._cn},co:function(){return new t.kq(this)},_cq:null,cq:function(n){return arguments.length===1?(this._cq=n,n):this._cq},shouldDisplayMarkers:function(){return this.cp().jw()},updateMarkerCount:function(n){this.cq().c(n)},cd:function(n){this.cq().d(n)},ct:function(){},$type:new n.ig.Type("CategorySeriesView",t.$fx.$type,[t.$kp.$type])},!0);n.ig.util.defType("AnchoredCategorySeriesView:kn","CategorySeriesView",{_cw:null,cw:function(n){return arguments.length===1?(this._cw=n,n):this._cw},init:function(n){t.$ko.init.call(this,n);this.cw(n);this.cx(new t.ld)},_cx:null,cx:function(n){return arguments.length===1?(this._cx=n,n):this._cx},c1:function(){this.cw().actualTrendLineBrush(null)},cz:function(){this.cw().actualTrendLineBrush(this.cw().trendLineBrush())},cy:function(){this.cw().actualTrendLineBrush(this.cw().actualBrush())},co:function(){return new t.le(this)},c0:function(){this.cn().cacheValues()},c2:function(){this.cn().unCacheValues()},a0:function(n,i){if(n.c()&&this.cw().trendLineType()!=0&&!i){var r=this.cx().x();r.z(this.cw().trendLineThickness());r.__stroke=this.cw().actualTrendLineBrush();r.af(this.cw().trendLineDashArray());r.aa(this.cw().trendLineDashCap());n.s(r)}t.$ko.a0.call(this,n,i)},getDefaultTooltipTemplate:function(){var r="<div class='ui-chart-default-tooltip-content'>",i=null,u;return this.cw().kt().isCategory()?i=this.cw().kt():this.cw().ku().isCategory()&&(i=this.cw().ku()),u=n.ig.util.cast(t.$lf.$type,i),u!=null?r+="<span>${item."+u.dateTimeMemberPath()+"}<\/span><br/>":i!=null&&i.label()!=null&&(r+="<span>${item."+i.label()+"}<\/span><br/>"),r+="<span",this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&(r+=" style='color:"+this.d().actualOutline().__fill+"'"),r+(">${series.title}: <\/span><span class='ui-priority-primary'>${item."+this.cw().valueMemberPath()+"}<\/span><\/div>")},$type:new n.ig.Type("AnchoredCategorySeriesView",t.$ko.$type)},!0);n.ig.util.defType("BarSeriesView:vd","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){var i=this;this.da=new t.b1;t.$kn.init.call(this,n);this.c3(n);this.c4(function(){var n=new t.ga(t.$b1.$type);return n.create(i.db.runOn(i)),n.activate(i.c6.runOn(i)),n.disactivate(i.c8.runOn(i)),n.destroy(i.c7.runOn(i)),n}());this.cx(new t.va)},_c4:null,c4:function(n){return arguments.length===1?(this._c4=n,n):this._c4},ao:function(){var n=this;t.$kn.ao.call(n);n.c5(new t.bh(t.$b1.$type,0));n.n()||(n.d().resolution(4),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}()))},db:function(){var n=new t.b1;return this.c5().add(n),n.__visibility=1,n},_c5:null,c5:function(n){return arguments.length===1?(this._c5=n,n):this._c5},c6:function(n){n.__visibility=0},c8:function(n){n.__visibility=1},c7:function(n){this.c5().remove(n)},c9:function(n,t,i){this.isDirty()||this.am();n.m(i);n.l(t)},co:function(){return new t.ve(this)},ba:function(n,i){t.$kn.ba.call(this,n,i);var r=n,u=this.bs(i);r.__fill=u;r.__stroke=u;r.z(this.d().thickness())},w:function(n){return this.c5().__inner[n]},da:null,v:function(n){var t=this.c5().__inner[n],i;return this.da.l(t.l()),this.da.m(t.m()),this.da.width(t.width()),this.da.height(t.height()),i=this.bs(n),this.da.__fill=i,this.da.__stroke=i,this.da.z(this.d().thickness()+3),this.da},a1:function(n,i){var r,u;if(t.$kn.a1.call(this,n,i),n.c())for(r=0;r<this.c5().count();r++)u=this.u(r,i),this.a8(u,r,i),n.t(u)},ah:function(n){var f=this,s,u,h,i;t.$kn.ah.call(f,n);for(var e=0,r=new t.bh(t.$b1.$type,0),o=f.c4().a().getEnumerator();o.moveNext();)s=o.current(),r.add(s);for(r.sort1(function(n,t){return n.m()>t.m()?-1:n.m()<t.m()?1:0}),u=r.getEnumerator();u.moveNext();)h=u.current(),i=new t.g6(1,"column"+e,h),i.tags().add("Main"),i.tags().add("Fill"),n.shapes().add(i);e++},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(5);this.d().shadowOffsetX(5);this.d().shadowOffsetY(-5)},$type:new n.ig.Type("BarSeriesView",t.$kn.$type)},!0);n.ig.util.defType("IBucketizer:kf","Object",{$type:new n.ig.Type("IBucketizer",null)},!0);n.ig.util.defType("CategoryBucketCalculator:kq","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(i){if(n.ig.$op.init.call(this),i==null)throw new t.e0("view");this.a(i);this.d=-1;this.e=this.e;this.c=0},d:0,e:0,c:0,getBucket:function(){return null},getErrorBucket:function(){return NaN},f:function(i){var u=this.a().bw(),r=this.a().bv(),f=n.ig.util.cast(t.$hb.$type,this.a().cp().kt()),h=this.a().cp().bb(),e,o,s,c;if(u.isEmpty()||r.isEmpty()||f==null||h==null||h.count()==0){this.c=0;return}e=n.ig.util.cast(t.$kr.$type,f);e==null||e.sortedIndices()==null?(o=Math.floor(f.getUnscaledValue2(r.left(),u,r,0)),s=Math.ceil(f.getUnscaledValue2(r.right(),u,r,0)),f.isInverted()&&(s=Math.ceil(f.getUnscaledValue2(r.left(),u,r,0)),o=Math.floor(f.getUnscaledValue2(r.right(),u,r,0))),c=Math.floor((s-o+1)*i/r.width()),this.c=Math.max(1,c),this.d=Math.max(0,Math.floor(o/this.c)-1),this.e=Math.ceil(s/this.c)):(this.d=e.getFirstVisibleIndex(u,r),this.e=e.getLastVisibleIndex(u,r),this.c=1)},getBucketInfo:function(n,t,i,r){return n=this.d,t=this.e,i=this.c,r=this.a().cp().resolution(),{firstBucket:n,lastBucket:t,bucketSize:i,resolution:r}},cacheValues:function(){},unCacheValues:function(){},$type:new n.ig.Type("CategoryBucketCalculator",n.ig.$ot,[t.$kf.$type])},!0);n.ig.util.defType("AnchoredCategoryBucketCalculator:le","CategoryBucketCalculator",{init:function(n){t.$kq.init.call(this,n);this.g(n)},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},getBucket:function(n){for(var t,f=this,h=f.h,c=h.length,u=Math.min(n*f.c,c-1),e=Math.min(u+f.c-1,c-1),i=NaN,r=NaN,o=!0,s=u;s<=e;++s)t=h[s],o?isNaN(t)||(i=t,r=t,o=!1):isNaN(t)||(i=i<t?i:t,r=r>t?r:t);return o?function(){var n=[];return n.add(.5*(u+e)),n.add(NaN),n.add(NaN),n}():function(){var n=[];return n.add(.5*(u+e)),n.add(i),n.add(r),n}()},h:null,cacheValues:function(){this.h=this.g().cw().valueColumn().asArray()},unCacheValues:function(){this.h=null},$type:new n.ig.Type("AnchoredCategoryBucketCalculator",t.$kq.$type)},!0);n.ig.util.defType("BarBucketCalculator:ve","CategoryBucketCalculator",{init:function(n){t.$kq.init.call(this,n);this.g(n)},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},f:function(i){var u=this.a().bw(),r=this.a().bv(),s=this.a().cp().bb(),h;if(u.isEmpty()||r.isEmpty()||this.g().c3().yAxis()==null||s==null||s.count()==0){this.c=0;return}var f=n.ig.util.cast(t.$vc.$type,this.a().cp()),e=Math.floor(f.yAxis().getUnscaledValue2(r.top(),u,r,0)),o=Math.ceil(f.yAxis().getUnscaledValue2(r.bottom(),u,r,0));f.yAxis().isInverted()||(o=Math.ceil(f.yAxis().getUnscaledValue2(r.top(),u,r,0)),e=Math.floor(f.yAxis().getUnscaledValue2(r.bottom(),u,r,0)));h=Math.floor((o-e+1)*i/r.height());this.c=Math.max(1,h);this.d=Math.max(0,Math.floor(e/this.c)-1);this.e=Math.ceil(o/this.c)},getBucket:function(n){for(var i,f=this,s=f.h,h=s.length,r=Math.min(n*f.c,h-1),e=Math.min(r+f.c-1,h-1),t=NaN,u=NaN,o=r;o<=e;++o)i=s[o],isNaN(t)?(t=i,u=i):isNaN(i)||(t=Math.min(t,i),u=Math.max(u,i));return isNaN(t)?function(){var n=[];return n.add(.5*(r+e)),n.add(NaN),n.add(NaN),n}():function(){var n=[];return n.add(.5*(r+e)),n.add(t),n.add(u),n}()},h:null,cacheValues:function(){this.h=this.g().c3().valueColumn().asArray()},unCacheValues:function(){this.h=null},$type:new n.ig.Type("BarBucketCalculator",t.$kq.$type)},!0);n.ig.util.defType("RangeCategoryBucketCalculator:rs","CategoryBucketCalculator",{_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},init:function(n){this.i=null;this.h=null;t.$kq.init.call(this,n);this.g(n)},getBucket:function(n){for(var f,e,v=this.i,y=this.h,p=this.i.length,w=this.h.length,b=Math.min(p,w),c=n*this.c,a=Math.min(c+this.c-1,b-1),t=NaN,i=NaN,l=!0,o,s,r,u,h=c;h<=a;++h)o=v[h],s=y[h],o<s?(r=o,u=s):(u=o,r=s),l?(isNaN(r)||(t=isNaN(t)?r:Math.min(t,r),isNaN(i)||(i=Math.max(i,r))),isNaN(u)||(i=isNaN(i)?u:Math.max(i,u),isNaN(t)||(t=Math.min(t,u))),isNaN(t)||isNaN(i)||(l=!1)):(isNaN(r)||(t=t<r?t:r,i=i>r?i:r),isNaN(u)||(t=t<u?t:u,i=i>u?i:u));return l?(e=new Array(3),e[0]=NaN,e[1]=NaN,e[2]=NaN,e):(f=new Array(3),f[0]=.5*(c+a),f[1]=t,f[2]=i,f)},i:null,h:null,cacheValues:function(){this.i=this.g().cw().lowColumn().asArray();this.h=this.g().cw().highColumn().asArray()},unCacheValues:function(){this.i=null;this.h=null},$type:new n.ig.Type("RangeCategoryBucketCalculator",t.$kq.$type)},!0);n.ig.util.defType("HorizontalAnchoredCategorySeries:kb","AnchoredCategorySeries",{init:function(){t.$kc.init.call(this)},xAxis:function(n){return arguments.length===1?(this.g(t.$kb.xAxisProperty,n),n):this.c(t.$kb.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$kb.yAxisProperty,n),n):this.c(t.$kb.yAxisProperty)},getOffsetValue:function(){return this.k0().n(this.ni(),this.view().bw(),this.view().bv())},getCategoryWidth:function(){return this.ni().getCategorySize(this.view().bw(),this.view().bv())},getSeriesValue:function(n,i,r){if(this.seriesViewer()==null)return NaN;var u=new t.iu(this.seriesViewer().actualWindowRect(),this.view().bv(),this.ni().isInverted()),f=this.k0().n(this.ni(),this.seriesViewer().actualWindowRect(),this.view().bv());return this.dk(this.valueColumn(),n,this.ni(),u,f,this.lt.runOn(this),i,r)},getPreviousOrExactIndex:function(n,t){return this.d5(n,t,this.ni(),this.lt.runOn(this),this.valueColumn())},getNextOrExactIndex:function(n,t){return this.d3(n,t,this.ni(),this.lt.runOn(this),this.valueColumn())},c8:function(n,t,i,r,u){return this.valueColumn()==null?Number.POSITIVE_INFINITY:this.c9(n,t,this.ni(),r,u,this.valueColumn().count(),this.lt.runOn(this))},getSeriesValuePosition:function(n,t,i){return this.et(n,t,i,this.k0().n(this.ni(),this.view().bw(),this.view().bv()),this.nj(),this.ni(),null,null,null)},kt:function(){return this.ni()},ku:function(){return this.nj()},m2:function(i){this.xAxis(n.ig.util.cast(t.$hb.$type,i))},m3:function(i){this.yAxis(n.ig.util.cast(t.$iq.$type,i))},lo:function(){return this.nj()!=null&&this.nj().updateRange()},_ni:null,ni:function(n){return arguments.length===1?(this._ni=n,n):this._ni},_nj:null,nj:function(n){return arguments.length===1?(this._nj=n,n):this._nj},nm:function(n){this.ni(n)},nn:function(n){this.nj(n)},getCategoryItems:function(n,t){return this.ms(n,t,this.ni())},hh:function(i,r,u,f){switch(r){case"XAxis":this.nm(this.xAxis());this.mo().cx(t.$kv.y(this.mo().cx(),this.ni(),this.rootCanvas(),this))}t.$kc.hh.call(this,i,r,u,f);switch(r){case"XAxis":u!=f&&(this.gk(n.ig.util.cast(t.$hc.$type,u)),this.hl(n.ig.util.cast(t.$hc.$type,f)),this.nm(this.xAxis()),this.k4().cn().f(this.resolution()),this.renderSeries(!1),this.gy());break;case"YAxis":u!=f&&(this.gk(n.ig.util.cast(t.$hc.$type,u)),this.hl(n.ig.util.cast(t.$hc.$type,f)),this.nn(this.yAxis()),this.k4().cn().f(this.resolution()),this.lo(),this.renderSeries(!1),this.gy())}},gj:function(i,r,u,f){t.$kc.gj.call(this,i,r,u,f);this.ni()!=null&&n.ig.util.cast(t.$kr.$type,this.ni())!==null&&n.ig.util.cast(t.$kr.$type,this.ni()).notifyDataChanged();switch(i){case 4:this.ni()!=null&&this.ni().updateRange();this.nj()==null||this.nj().updateRange()||this.renderSeries(!0);break;case 1:this.ni()!=null&&this.ni().updateRange();this.nj()==null||this.nj().updateRange()||this.renderSeries(!0);break;case 0:this.ni()!=null&&this.ni().updateRange();this.nj()==null||this.nj().updateRange()||this.renderSeries(!0);break;case 2:this.mx()!=null&&this.mo().cn().c>0&&this.nj()!=null&&!this.nj().updateRange()&&this.renderSeries(!0);break;case 3:f==this.mx()&&(this.ni()!=null&&this.ni().updateRange(),this.nj()==null||this.nj().updateRange()||this.renderSeries(!0))}},$type:new n.ig.Type("HorizontalAnchoredCategorySeries",t.$kc.$type)},!0);n.ig.util.defType("PointSeries:vf","HorizontalAnchoredCategorySeries",{au:function(){return new t.vg(this)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},hc:function(n){t.$kb.hc.call(this,n);this.nq(n)},init:function(){t.$kb.init.call(this);this.y(t.$vf.$type)},me:function(n,i){t.$kb.me.call(this,n,i)},hh:function(n,i,r,u){t.$kb.hh.call(this,n,i,r,u)},$type:new n.ig.Type("PointSeries",t.$kb.$type)},!0);n.ig.util.defType("PointSeriesView:vg","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){t.$kn.init.call(this,n);this.c3(n)},ao:function(){var n=this;t.$kn.ao.call(n);n.n()||(n.b2().markerType(2),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.p),n.measure(t.$mx.j),n}()))},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(2);this.d().shadowOffsetY(2);this.d().useSingleShadow(!1)},$type:new n.ig.Type("PointSeriesView",t.$kn.$type)},!0);n.ig.util.defType("IHasHighLowValueCategory:rq","Object",{$type:new n.ig.Type("IHasHighLowValueCategory",null)},!0);n.ig.util.defType("RangeCategorySeries:rp","CategorySeries",{au:function(){return new t.rr(this)},hc:function(n){t.$fv.hc.call(this,n);this.mo(n)},_mo:null,mo:function(n){return arguments.length===1?(this._mo=n,n):this._mo},init:function(){t.$fv.init.call(this);this.mn(new t.rt(1,this,this.mo(),this,this,this.mo().cn()))},_mn:null,mn:function(n){return arguments.length===1?(this._mn=n,n):this._mn},lowMemberPath:function(n){return arguments.length===1?(this.g(t.$rp.lowMemberPathProperty,n),n):this.c(t.$rp.lowMemberPathProperty)},lowColumn:function(n){if(arguments.length===1){if(this.mr!=n){var t=this.mr;this.mr=n;this.raisePropertyChanged("LowColumn",t,this.mr)}return n}return this.mr},mr:null,highMemberPath:function(n){return arguments.length===1?(this.g(t.$rp.highMemberPathProperty,n),n):this.c(t.$rp.highMemberPathProperty)},highColumn:function(n){if(arguments.length===1){if(this.mp!=n){var t=this.mp;this.mp=n;this.raisePropertyChanged("HighColumn",t,this.mp)}return n}return this.mp},mp:null,k5:function(){return 11},me:function(n,i){t.$fv.me.call(this,n,i);t.$ry.b(this,n.p,i.cq(),this.useLightweightMarkers());this.l8(i,n)},mz:function(n,t,i,r,u,f){this.mo().cx(n,t,i,r,u,f)},scrollIntoView:function(i){var s=new t.x(0,0,0,1,1),r=this.view()!=null?this.view().bw():t.$x.empty(),a=this.view()!=null?this.view().bv():t.$x.empty(),e=!r.isEmpty()&&!a.isEmpty()&&this.bb()!=null?this.bb().indexOf(i):-1,o=this.kt(),h=this.ku(),u,v,y,l;if(o!=null?(v=new t.iu(s,s,o.isInverted()),u=o.getScaledValue(e,v)):u=NaN,y=o!=null?this.mn().n(n.ig.util.cast(t.$ke.$type,o),new t.x(0,0,0,1,1),new t.x(0,0,0,1,1)):0,u+=y,e>=0&&r!=null&&a!=null){if(isNaN(u)||(u<r.left()+.1*r.width()&&(u=u+.4*r.width()),u>r.right()-.1*r.width()&&(u=u-.4*r.width()),r.x(u-.5*r.width())),h!=null&&this.highColumn()!=null&&e<this.highColumn().count()){var p=new t.iu(s,s,h.isInverted()),c=h.getScaledValue(this.highColumn().item(e),p),f=h.getScaledValue(this.lowColumn().item(e),p);isNaN(c)||isNaN(f)||(l=Math.abs(f-c),r.height()<l?(r.height(l),r.y(Math.min(f,c))):(f<r.top()+.1*r.height()&&(f=f+.4*r.height()),f>r.bottom()-.1*r.height()&&(f=f-.4*r.height()),r.y(f-.5*r.height())))}this.syncLink()!=null&&this.syncLink().al(this.seriesViewer(),r)}return e>=0},hh:function(i,r,u,f){t.$fv.hh.call(this,i,r,u,f);switch(r){case"FastItemsSource":n.ig.util.cast(t.$jw.$type,u)!=null&&(n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.lowColumn()),n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.highColumn()),this.lowColumn(null),this.highColumn(null));n.ig.util.cast(t.$jw.$type,f)!=null&&(this.lowColumn(this.a8(this.lowMemberPath())),this.highColumn(this.a8(this.highMemberPath())));this.lo()||(this.k4().cn().f(this.resolution()),this.renderSeries(!1));break;case"LowMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.lowColumn()),this.lowColumn(this.a8(this.lowMemberPath())));break;case"LowColumn":this.lo()||(this.k4().cn().f(this.resolution()),this.renderSeries(!1));break;case"HighMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.highColumn()),this.highColumn(this.a8(this.highMemberPath())));break;case"HighColumn":this.lo()||(this.k4().cn().f(this.resolution()),this.renderSeries(!1))}},ad:function(n){var u,i,r;return this.lowColumn()==null||this.lowColumn().count()==0||this.highColumn()==null||this.highColumn().count()==0?null:n==this.kt()?(u=Math.min(this.lowColumn().count(),this.highColumn().count()),new t.im(0,u-1)):n==this.ku()?(i=Math.min(this.lowColumn().minimum(),this.highColumn().minimum()),r=Math.max(this.lowColumn().maximum(),this.highColumn().maximum()),new t.im(Math.min(i,r),Math.max(i,r))):null},gj:function(i,r,u,f){this.kt()!=null&&n.ig.util.cast(t.$kr.$type,this.kt())!==null&&n.ig.util.cast(t.$kr.$type,this.kt()).notifyDataChanged();switch(i){case 3:(f==this.lowMemberPath()||f==this.highMemberPath())&&(this.lo()||this.renderSeries(!0));break;case 1:this.k4().cn().f(this.resolution());this.lo()||this.renderSeries(!0);break;case 0:this.k4().cn().f(this.resolution());this.lo()||this.renderSeries(!0);break;case 2:this.lowMemberPath()!=null&&this.highMemberPath()!=null&&this.k4().cn().c>0&&!this.lo()&&this.renderSeries(!0);break;case 4:this.k4().cn().f(this.resolution());this.lo()||this.renderSeries(!0)}},ct:function(n,i,r){var u=t.$fv.ct.call(this,n,i,r);return(this.lowColumn()==null||this.lowColumn().count()==0||this.highColumn()==null||this.highColumn().count()==0)&&(u=!1),u},mb:function(n,i){t.$fv.mb.call(this,n,i);this.mn().d(n,i)},currentCategoryMode:function(){return this.preferredCategoryMode(n.ig.util.cast(t.$hb.$type,this.kt()))},scaler:function(){return n.ig.util.cast(t.$ke.$type,this.kt())},yScaler:function(){return n.ig.util.cast(t.$ix.$type,this.ku())},bucketizer:function(){return this.k4().cn()},currentMode2Index:function(){return this.lz()},provideCollisionDetector:function(){return new t.mq},hr:function(i,r){var f=this.cl(),u;if(t.$fv.hr.call(this,i,r),!f){this.view().ax(r);return}(this.view().ax(r),this.bn(this.av()))||(u=new t.rt(1,this,n.ig.util.cast(t.$kp.$type,this.av()),this.seriesViewer().a6().o(),this,this.av().cn()),this.ck()||(this.ky=new t.ks(3),this.ky.v(),u.d(this.ky,this.av())),this.ck(!1),this.me(this.ky,this.av()),this.cl(!1))},$type:new n.ig.Type("RangeCategorySeries",t.$fv.$type,[t.$kd.$type,t.$rq.$type])},!0);n.ig.util.defType("HorizontalRangeCategorySeries:ro","RangeCategorySeries",{init:function(){t.$rp.init.call(this)},xAxis:function(n){return arguments.length===1?(this.g(t.$ro.xAxisProperty,n),n):this.c(t.$ro.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$ro.yAxisProperty,n),n):this.c(t.$ro.yAxisProperty)},kt:function(){return this.xAxis()},ku:function(){return this.yAxis()},isRange:function(){return!0},getOffsetValue:function(){return this.mn().n(this.xAxis(),this.view().bw(),this.view().bv())},getCategoryWidth:function(){return this.xAxis().getCategorySize(this.view().bw(),this.view().bv())},getNextOrExactIndex:function(n,i){return this.d3(n,i,this.xAxis(),this.lt.runOn(this),new t.rz(this.highColumn(),this.lowColumn()))},getPreviousOrExactIndex:function(n,i){return this.d5(n,i,this.xAxis(),this.lt.runOn(this),new t.rz(this.highColumn(),this.lowColumn()))},c8:function(n,t,i,r,u){if(i==null)return Number.POSITIVE_INFINITY;var f=this.xAxis().f3;return this.c9(n,t,this.xAxis(),r,u,f,this.lt.runOn(this))},getSeriesValue:function(n,i,r){if(this.seriesViewer()==null)return NaN;var u=new t.iu(this.seriesViewer().actualWindowRect(),this.view().bv(),this.xAxis().isInverted()),f=this.mn().n(this.xAxis(),this.seriesViewer().actualWindowRect(),this.view().bv());return this.dk(new t.rz(this.highColumn(),this.lowColumn()),n,this.xAxis(),u,f,this.lt.runOn(this),i,r)},getSeriesLowValue:function(n,i,r){if(this.seriesViewer()==null)return NaN;var u=new t.iu(this.seriesViewer().actualWindowRect(),this.view().bv(),this.xAxis().isInverted()),f=this.mn().n(this.xAxis(),this.seriesViewer().actualWindowRect(),this.view().bv());return this.dk(this.lowColumn(),n,this.xAxis(),u,f,this.lt.runOn(this),i,r)},getSeriesHighValue:function(n,i,r){if(this.seriesViewer()==null)return NaN;var u=new t.iu(this.seriesViewer().actualWindowRect(),this.view().bv(),this.xAxis().isInverted()),f=this.mn().n(this.xAxis(),this.seriesViewer().actualWindowRect(),this.view().bv());return this.dk(this.highColumn(),n,this.xAxis(),u,f,this.lt.runOn(this),i,r)},getSeriesHighValuePosition:function(n,t,i){var r=this;return r.et(n,t,i,r.mn().n(r.xAxis(),r.view().bw(),r.view().bv()),r.yAxis(),r.xAxis(),r.getSeriesHighValue.runOn(r),function(n,t){return r.d5(n,t,r.xAxis(),r.lt.runOn(r),r.highColumn())},function(n,t){return r.d3(n,t,r.xAxis(),r.lt.runOn(r),r.highColumn())})},getSeriesLowValuePosition:function(n,t,i){var r=this;return r.et(n,t,i,r.mn().n(r.xAxis(),r.view().bw(),r.view().bv()),r.yAxis(),r.xAxis(),r.getSeriesLowValue.runOn(r),function(n,t){return r.d5(n,t,r.xAxis(),r.lt.runOn(r),r.lowColumn())},function(n,t){return r.d3(n,t,r.xAxis(),r.lt.runOn(r),r.lowColumn())})},getSeriesValuePosition:function(n,t,i){return this.et(n,t,i,this.mn().n(this.xAxis(),this.view().bw(),this.view().bv()),this.yAxis(),this.xAxis(),null,null,null)},lo:function(){return this.yAxis()!=null&&this.yAxis().updateRange()},hh:function(i,r,u,f){t.$rp.hh.call(this,i,r,u,f);switch(r){case"XAxis":this.gk(n.ig.util.cast(t.$hc.$type,u));this.hl(n.ig.util.cast(t.$hc.$type,f));this.k4().cn().f(this.resolution());this.renderSeries(!1);this.gy();break;case"YAxis":this.gk(n.ig.util.cast(t.$hc.$type,u));this.hl(n.ig.util.cast(t.$hc.$type,f));this.k4().cn().f(this.resolution());this.lo();this.renderSeries(!1);this.gy()}},$type:new n.ig.Type("HorizontalRangeCategorySeries",t.$rp.$type)},!0);n.ig.util.defType("RangeAreaSeries:rn","HorizontalRangeCategorySeries",{au:function(){return new t.r0(this)},hc:function(n){t.$ro.hc.call(this,n);this.m6(n)},_m6:null,m6:function(n){return arguments.length===1?(this._m6=n,n):this._m6},init:function(){t.$ro.init.call(this);this.y(t.$rn.$type)},preferredCategoryMode:function(){return 0},gh:function(n,i){t.$ro.gh.call(this,n,i);var r=i;r.cz()},me:function(i,r){var s,o,e,h,u,c,f,l,a,v;for(t.$ro.me.call(this,i,r),s=i.h.count(),o=new t.bh(n.ig.Array.prototype.$type,2,s),e=0;e<s;e++)h=i.h.__inner[e],u=new Array(4),u[0]=h[0],u[1]=h[1],c=i.h.__inner[i.h.count()-1-e],u[2]=c[0],u[3]=c[2],o.add(u);f=n.ig.util.cast(t.$r0.$type,r);this.k3.x(this,this.lm(),this.xAxis(),this.getCategoryItems.runOn(this),this.lw(r),this.lx(r));l=!1;a=this.k3.b();a!=null&&(l=!0);l&&(v=new t.iu(r.bw(),r.bv(),this.xAxis().isInverted()),this.ma(o,-1,this.lowColumn().count(),this.xAxis(),v,r.n()));var y=f.c7(),p=f.c9(),w=f.c3();this.k3.ae(y,!0,!1,!0,!0);this.k3.ae(p,!0,!1,!0,!0);this.k3.ae(w,!1,!0,!1,!1);r.cr(i)&&(f.c0(i.h.count(),o,!1),r.cu(i));f.c3().__opacity=this.k3.i*this.actualAreaFillOpacity()},$type:new n.ig.Type("RangeAreaSeries",t.$ro.$type)},!0);n.ig.util.defType("RangeCategorySeriesView:rr","CategorySeriesView",{_cw:null,cw:function(n){return arguments.length===1?(this._cw=n,n):this._cw},init:function(n){t.$ko.init.call(this,n);this.cw(n)},cx:function(i,r,u,f,e,o){var c,l,a,v;i.ag().clear();r.ag().clear();u.ag().clear();var w=t.$k3.a(f,e,!0,o,this.d().resolution()),b=t.$k3.a(f,e,!1,o,this.d().resolution()),k=w.count(),d=b.count(),h,s,y,p;for(c=0;c<k;c++)h=w.item(c),s=e.__inner[h],y=s[0],p=s[1],i.ag().add({__x:y,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r.ag().add({__x:y,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});for(v=0;v<d;v++)h=b.item(v),s=e.__inner[h],o?(l=s[0],a=s[2]):(l=s[2],a=s[3]),u.ag().add({__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r.ag().add({__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.y(i.ag().count()>0);r.y(r.ag().count()>0);u.y(u.ag().count()>0)},co:function(){return new t.rs(this)},getDefaultTooltipTemplate:function(){var r="<div class='ui-chart-default-tooltip-content'>",i=null,u;return this.cw().kt().isCategory()?i=this.cw().kt():this.cw().ku().isCategory()&&(i=this.cw().ku()),u=n.ig.util.cast(t.$lf.$type,i),u!=null?r+="<span>${item."+u.dateTimeMemberPath()+"}<\/span><br/>":i!=null&&i.label()!=null&&(r+="<span>${item."+i.label()+"}<\/span><br/>"),r+="<span",this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&(r+=" style='color:"+this.d().actualOutline().__fill+"'"),r+(">"+this.cw().title()+": <\/span><span class='ui-priority-primary'>${item."+this.cw().lowMemberPath()+"} - ${item."+this.cw().highMemberPath()+"}<\/span><\/div>")},$type:new n.ig.Type("RangeCategorySeriesView",t.$ko.$type)},!0);n.ig.util.defType("RangeAreaSeriesView:r0","RangeCategorySeriesView",{_cy:null,cy:function(n){return arguments.length===1?(this._cy=n,n):this._cy},init:function(n){this.c6=new t.cc;this.c2=new t.ca;this.c8=new t.cc;this.c5=new t.cc;this.c4=new t.cc;this.c1=new t.ca;t.$rr.init.call(this,n);this.cy(n)},ao:function(){var n=this;t.$rr.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},c6:null,c2:null,c8:null,c7:function(){return this.c6},c3:function(){return this.c2},c9:function(){return this.c8},cz:function(){this.c2.ag().clear();this.c6.ag().clear();this.c8.ag().clear()},c0:function(n,t,i){this.cx(this.c6,this.c2,this.c8,n,t,i);this.am()},c5:null,c4:null,c1:null,a7:function(){t.$rr.a7.call(this);this.c4.ag(this.c6.ag());this.c5.ag(this.c8.ag());this.c1.ag(this.c2.ag());var n=this.br();this.c4.__stroke=n;this.c4.z(this.d().thickness()+3);this.c5.__stroke=n;this.c5.z(this.d().thickness()+3);this.c1.__fill=n;this.c1.__opacity=1},a1:function(n,i){t.$rr.a1.call(this,n,i);n.c()&&(i?(n.r(this.c1),n.s(this.c4),n.s(this.c5)):(n.r(this.c2),n.s(this.c6),n.s(this.c8)))},ah:function(n){var r,i,u;t.$rr.ah.call(this,n);r=new t.g8(1,"lowerShape",this.c6);r.tags().add("Lower");i=new t.g8(1,"upperShape",this.c8);i.tags().add("Upper");i.tags().add("Main");u=new t.g7(1,"fillShape",this.c2);u.tags().add("Fill");n.shapes().add(r);n.shapes().add(i);n.shapes().add(u)},$type:new n.ig.Type("RangeAreaSeriesView",t.$rr.$type)},!0);n.ig.util.defType("RangeCategoryFramePreparer:rt","CategoryFramePreparerBase",{init:function(i,r){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}t.$rt.init1.call(this,1,r,n.ig.util.cast(t.$kp.$type,r),n.ig.util.cast(t.$a.$type,r),n.ig.util.cast(t.$lz.$type,r),n.ig.util.cast(t.$kf.$type,r))},init1:function(i,r,u,f,e,o){t.$lx.init1.call(this,1,r,u,f,e,o);this.w(new t.ru);n.ig.util.cast(t.$ki.$type,r)!==null&&this.w(n.ig.util.cast(t.$ki.$type,r));this.x(new t.rw);n.ig.util.cast(t.$rq.$type,r)!==null&&this.x(n.ig.util.cast(t.$rq.$type,r))},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},l:function(t,i,r,u,f,e){var o=i[0],s=i[1],h=i[2];return!isNaN(o)&&!isNaN(s)&&!isNaN(h)?(t.p.add({__x:o,__y:(s+h)/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.c().updateMarkerTemplate(f,u,e),!0):!1},v:function(n,t,i){var r=n,s=r.f(),h=r.g(),u=this.q(s.item(t)),f=this.q(h.item(t)),e=Math.max(u,f),o=Math.min(u,f);i?(r.d(o),r.e(e)):(r.c(e),r.b(o))},r:function(n,t){var i=n,f=i.f(),e=i.g(),r=this.q(f.item(t)),u=this.q(e.item(t));isNaN(r)||(i.c(Math.max(i.c(),r)),i.b(Math.min(i.b(),r)));isNaN(u)||(i.c(Math.max(i.c(),u)),i.b(Math.min(i.b(),u)))},i:function(n,t){var r=this,i=t;return function(){var t=[];return t.add(r.q(n)),t.add(i.b()),t.add(i.c()),t}()},u:function(n,t,i,r,u,f){t[0]=r?t[0]+i:n.b().getScaledValue(t[0],u)+i;t[1]=n.c().getScaledValue(t[1],f);t[2]=n.c().getScaledValue(t[2],f)},h:function(){var n=new t.rx;return n.f(this.x().highColumn()),n.g(this.x().lowColumn()),n},$type:new n.ig.Type("RangeCategoryFramePreparer",t.$lx.$type)},!0);n.ig.util.defType("ValuesHolder:mb","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},$type:new n.ig.Type("ValuesHolder",n.ig.$ot)},!0);n.ig.util.defType("HighLowValuesHolder:rx","ValuesHolder",{init:function(){t.$mb.init.call(this)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},a:function(){return this.f()==null||this.g()==null?0:Math.min(this.f().count(),this.g().count())},$type:new n.ig.Type("HighLowValuesHolder",t.$mb.$type)},!0);n.ig.util.defType("DefaultHighLowValueProvider:rw","Object",{init:function(){n.ig.$op.init.call(this)},highColumn:function(){return new t.bh(Number,0)},lowColumn:function(){return new t.bh(Number,0)},$type:new n.ig.Type("DefaultHighLowValueProvider",n.ig.$ot,[t.$rq.$type])},!0);n.ig.util.defType("RangeValueList:rz","Object",{a:null,b:null,init:function(t,i){n.ig.$op.init.call(this);this.a=t;this.b=i},indexOf:function(){throw new t.f5;},insert:function(){throw new t.f5;},removeAt:function(){throw new t.f5;},item:function(n){var i,r,u,f;if(arguments.length===2)throw new t.f5;else return(i=NaN,r=NaN,this.a!=null&&n>=0&&n<this.a.count()&&(i=this.a.item(n)),this.b!=null&&n>=0&&n<this.b.count()&&(r=this.b.item(n)),u=isNaN(i),f=isNaN(r),!u&&!f)?(i+r)/2:u?f?NaN:r:i},add:function(){throw new t.f5;},clear:function(){throw new t.f5;},contains:function(){throw new t.f5;},copyTo:function(){throw new t.f5;},count:function(){var t=0,i=0,n;return this.a!=null&&(t=this.a.count()),this.b!=null&&(i=this.b.count()),n=0,n=Math.max(n,t),Math.max(n,i)},isReadOnly:function(){return!0},remove:function(){throw new t.f5;},getEnumerator:function(){throw new t.f5;},$type:new n.ig.Type("RangeValueList",n.ig.$ot,[t.$bi.$type.specialize(Number)])},!0);n.ig.util.defType("RangeColumnSeries:vh","HorizontalRangeCategorySeries",{au:function(){return new t.vi(this)},hc:function(n){t.$ro.hc.call(this,n);this.m6(n)},_m6:null,m6:function(n){return arguments.length===1?(this._m6=n,n):this._m6},init:function(){t.$ro.init.call(this);this.y(t.$vh.$type)},radiusX:function(n){return arguments.length===1?(this.g(t.$vh.radiusXProperty,n),n):this.c(t.$vh.radiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$vh.radiusYProperty,n),n):this.c(t.$vh.radiusYProperty)},li:function(){return!0},preferredCategoryMode:function(){return 2},gh:function(n,i){t.$ro.gh.call(this,n,i);var r=i;n&&r.cz()!=null&&r.cz().c(0)},me:function(i,r){var h,a,u;t.$ro.me.call(this,i,r);var o=n.ig.util.cast(t.$vi.$type,r),f=i.h,c=r.bw(),l=r.bv(),s=this.xAxis().fy(c,l);if(isNaN(s)||Number.isInfinity(s)){o.cz().c(0);return}this.k3.x(this,this.lm(),this.xAxis(),this.getCategoryItems.runOn(this),this.lw(r),this.lx(r));this.k3.p=this.radiusX();this.k3.q=this.radiusY();this.k3.j=this.radiusX();this.k3.k=this.radiusY();h=!1;a=this.k3.b();a!=null&&(h=!0);var d=this.xAxis().isSorting(),y=this.lowColumn().count(),p=this.xAxis(),w=new t.iu(c,l,this.xAxis().isInverted());for(u=0;u<f.count();++u){var b=f.__inner[u][0]-.5*s,v=Math.min(f.__inner[u][1],f.__inner[u][2]),k=Math.max(f.__inner[u][1],f.__inner[u][2]),e=o.cz().item(u);e.width(s);e.height(Math.abs(k-v));h&&this.ma(f,u,y,p,w,r.n());this.k3.ae(e,!1,!1,!1,!1);e.ai(this.k3.j);e.aj(this.k3.k);o.c4(e,b,v)}o.cz().c(f.count());r.cu(i)},$type:new n.ig.Type("RangeColumnSeries",t.$ro.$type)},!0);n.ig.util.defType("RangeColumnSeriesView:vi","RangeCategorySeriesView",{_cy:null,cy:function(n){return arguments.length===1?(this._cy=n,n):this._cy},init:function(n){var i=this;this.c5=new t.b1;t.$rr.init.call(this,n);this.cy(n);this.cz(function(){var n=new t.ga(t.$b1.$type);return n.create(i.c6.runOn(i)),n.activate(i.c1.runOn(i)),n.disactivate(i.c3.runOn(i)),n.destroy(i.c2.runOn(i)),n}())},_cz:null,cz:function(n){return arguments.length===1?(this._cz=n,n):this._cz},ao:function(){var n=this;t.$rr.ao.call(n);n.c0(new t.bh(t.$b1.$type,0));n.n()||(n.d().resolution(4),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}()))},_c0:null,c0:function(n){return arguments.length===1?(this._c0=n,n):this._c0},c6:function(){var n=new t.b1;return this.c0().add(n),n.__visibility=1,n},c1:function(n){n.__visibility=0},c3:function(n){n.__visibility=1},c2:function(n){this.c0().remove(n)},c4:function(n,t,i){this.isDirty()||this.am();n.m(i);n.l(t)},w:function(n){return this.c0().__inner[n]},c5:null,v:function(n){var t=this.c0().__inner[n],i;return this.c5.__visibility=t.__visibility,this.c5.l(t.l()),this.c5.m(t.m()),this.c5.width(t.width()),this.c5.height(t.height()),i=this.bs(n),this.c5.__fill=i,this.c5.__stroke=i,this.c5.z(this.d().thickness()+3),this.c5},a1:function(n,i){var r,u;if(t.$rr.a1.call(this,n,i),n.c())for(r=0;r<this.c0().count();r++)u=this.u(r,i),this.a8(u,r,i),n.t(u)},ah:function(n){var f=this,s,u,h,i;t.$rr.ah.call(f,n);for(var e=0,r=new t.bh(t.$b1.$type,0),o=f.cz().a().getEnumerator();o.moveNext();)s=o.current(),r.add(s);for(r.sort1(function(n,t){return n.l()<t.l()?-1:n.l()>t.l()?1:0}),u=r.getEnumerator();u.moveNext();)h=u.current(),i=new t.g6(1,"column"+e,h),i.tags().add("Main"),i.tags().add("Fill"),n.shapes().add(i);e++},$type:new n.ig.Type("RangeColumnSeriesView",t.$rr.$type)},!0);n.ig.util.defType("SplineSeriesBaseView:mo","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){t.$kn.init.call(this,n);this.c3(n)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(1);this.d().shadowOffsetY(4);this.d().useSingleShadow(!1)},$type:new n.ig.Type("SplineSeriesBaseView",t.$kn.$type)},!0);n.ig.util.defType("SplineAreaSeriesView:vj","SplineSeriesBaseView",{_c4:null,c4:function(n){return arguments.length===1?(this._c4=n,n):this._c4},init:function(n){this.dd=new t.b6;this.dh=new t.b6;this.df=new t.b6;this.di=new t.b6;this.c7=new t.b6;this.c9=new t.b6;this.c8=new t.b6;this.da=new t.b6;t.$mo.init.call(this,n);this.c4(n)},ao:function(){var n=this;t.$mo.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},dd:null,dh:null,df:null,di:null,db:function(){return this.dh},dc:function(){return this.di},de:function(){return this.dd},dg:function(){return this.df},c5:function(){this.dd.ak(null);this.df.ak(null);this.dh.ak(null);this.di.ak(null);this.am()},c6:function(i,r,u,f,e,o,s){this.cw().mp().a(n.ig.util.cast(t.$kr.$type,this.cp().kt())!==null?!0:!1);this.cw().mp().h(this.dd,this.dh,this.df,this.di,i,r,u,f,e,o,s);this.am()},c7:null,c9:null,c8:null,da:null,a7:function(){t.$mo.a7.call(this);this.c7.ak(this.dd.ak());this.c9.ak(this.dh.ak());this.c8.ak(this.df.ak());this.da.ak(this.di.ak());var n=this.br();this.c7.__fill=n;this.c7.__opacity=1;this.c8.__fill=n;this.c8.__opacity=1;this.c9.__stroke=n;this.c9.z(this.d().thickness()+3);this.da.__stroke=n;this.da.z(this.d().thickness()+3)},a1:function(n,i){t.$mo.a1.call(this,n,i);i?(n.q(this.c7),n.q(this.c8),n.q(this.c9),n.q(this.da)):(n.q(this.dd),n.q(this.df),n.q(this.dh),n.q(this.di))},ah:function(n){var r,i,u,f;t.$mo.ah.call(this,n);r=new t.me(1,"lowerShape",this.dh);r.tags().add("Lower");i=new t.me(1,"upperShape",this.di);i.tags().add("Upper");i.tags().add("Main");u=new t.me(1,"translucentShape",this.dd);u.tags().add("Translucent");f=new t.me(1,"fillShape",this.df);f.tags().add("Fill");n.shapes().add(r);n.shapes().add(i);n.shapes().add(u);n.shapes().add(f)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(5);this.d().shadowOffsetX(1);this.d().shadowOffsetY(-3)},$type:new n.ig.Type("SplineAreaSeriesView",t.$mo.$type)},!0);n.ig.util.defType("VerticalAxisLabelPanel:i0","AxisLabelPanelBase",{init:function(){t.$he.init.call(this)},aa:function(){return new t.i1(this)},bu:function(n){t.$he.bu.call(this,n);this.b8(n)},_b8:null,b8:function(n){return arguments.length===1?(this._b8=n,n):this._b8},_ch:0,ch:function(n){return arguments.length===1?(this._ch=n,n):this._ch},_ce:0,ce:function(n){return arguments.length===1?(this._ce=n,n):this._ce},_cg:0,cg:function(n){return arguments.length===1?(this._cg=n,n):this._cg},_cf:0,cf:function(n){return arguments.length===1?(this._cf=n,n):this._cf},bm:function(){this.b8().at()},a7:function(){return this.z().titleSettings()!=null?this.z().titleSettings().angle():-90},ca:function(){var n=0,i=this.af(this.z().titleSettings()),t;return i==1&&(n+=this.bb()),t=this.ad(),(t==3||t==7)&&(n+=this.z().by()),n},cc:function(){var n=0,i=this.af(this.z().titleSettings()),t;return i==2&&(n+=this.bb()),t=this.ad(),(t==2||t==6)&&(n+=this.z().by()),n},cd:function(){var n=this.ay-this.ca()-this.cc();return n<0&&(n=0),n},cb:function(){var n=this.cd()-this.ab().m()-this.ab().n();return n<0&&(n=0),n},au:function(){var u=new t.bh(t.$x.$type,0),o,nt,i,f,y,p,r,ut,ft,et,c,s,w;this.al(!1);this.ak(!1);this.ac()!=null&&this.ac().g()&&this.a3()%360!=0&&this.ak(!0);this.ch(-Number.MAX_VALUE);this.ce(-Number.MAX_VALUE);this.cg(-Number.MAX_VALUE);this.cf(-Number.MAX_VALUE);var l=this.ab().m(),ot=this.ab().o(),a=this.ab().n(),st=this.ab().l(),ht=this.ca();for(o=0;o<this.at().count();o++){var b=this.at().__inner[o],k=this.a1(b),d=this.a2(b),v=k+ot+st,g=d+l+a,ct=this.b3().left()+ht,lt=this.ar().__inner[o].a()-v/2;this.ch(Math.max(g,this.ch()));this.ce(Math.max(v,this.ce()));this.cg(Math.max(d,this.cg()));this.cf(Math.max(k,this.cf()));nt=new t.x(0,ct,lt,g,v);u.add(nt)}if(i=0,this.ak()&&(i=this.a3()%360,i<0&&(i+=360)),this.z().a9())this.ab().aa();else{var tt=i*(3.14159265358979/180),at=Math.abs(this.cg()*Math.cos(tt))+Math.abs(this.cf()*Math.sin(tt)),vt=this.bb();this.a0(at+l+a+vt+this.z().by())}if(this.ak())for(f=0;f<u.count();f++)y=u.__inner[f],y.y(this.ar().__inner[f].a()-this.ce()/2),u.__inner[f]=y;if(p=!1,!this.ak()&&this.ch()<=this.ay&&(p=!0),!p){var yt=this.b3().height(),it=this.cd(),e=it,rt=this.ar().count()>1?Math.abs(this.ar().__inner[1].a()-this.ar().__inner[0].a()):yt,h=Math.abs(Math.asin(rt/this.ch())*(180/3.14159265358979)),pt=i>=h&&i<=180-h||i-180>=h&&i-180<=180-h;for(r=0;r<u.count();r++)this.ak()&&(ut=i*(3.14159265358979/180),ft=this.bc(this.at().__inner[r]),e=Math.min(it/Math.abs(Math.cos(ut)),ft),pt&&(et=i>0&&i<90?3.14159265358979/180*(90-i):i>270&&i<360?3.14159265358979/180*(i-270):0,e=rt/Math.cos(et))),c=u.__inner[r],c.width(Math.min(c.width(),e+l+a)),u.__inner[r]=c,n.ig.util.cast(t.$b9.$type,this.at().__inner[r])!==null||this.at().__inner[r].width(e),s=n.ig.util.cast(t.$b9.$type,this.at().__inner[r]),s!=null&&(w=this.bh(r,s,e),s.aa().equals(w)||(s.aa(w),this.at().__inner[r].width(e)))}return this.b9()&&this.ci(u),u},ci:function(n){this.b8().au(n,this.ch())},bx:function(n){var r=this,s=0,h=r.cf()/2,f=new t.ee,i=t.$ec.e(r.a3()),e=function(){var n=new t.eh;return n.h(i),n.i(s),n.j(h),n}(),u=0,c=0,o;i!=0&&i!=360&&(i-=90,i>0&&i<180?(e.i(r.cg()),u=-r.cg()+r.cf()/2,u=u+Math.sin(t.$es.u(i-180))*(r.cf()/2)):u=i>=180?u-Math.cos(t.$es.u(i))*(r.cf()/2):u+Math.cos(t.$es.u(i))*(r.cf()/2));o=function(){var n=new t.eg;return n.h(u),n.i(c),n}();f.h().add(e);f.h().add(o);n.h(f)},b9:function(){return!this.al()&&!this.ak()},b2:function(){var o=this.af(this.z().titleSettings()),u=this.bb(),i=this.ad(),n=0;o==1?(n+=this.b3().left(),(i==3||i==7)&&(n+=this.z().by())):(n=this.b3().right()-u,(i==6||i==2)&&(n-=this.z().by()));var r=this.a9(),f=0,e=this.z().titleSettings()==null?1:this.z().titleSettings().verticalAlignment();return f=e==0?this.b3().top():e==2?this.b3().bottom()-r:this.b3().top()+this.b3().height()/2-r/2,new t.x(0,n,f,u,r)},af:function(n){return n==null?this.z().seriesViewer().ag(this.z()):n.position()==0?this.z()!=null&&this.z().seriesViewer()!=null?this.z().seriesViewer().ag(this.z()):1:n.position()},ae:function(){return 2},an:function(n){return n==2||n==3||n==6||n==7},b7:function(n){var f,r,u,i;for(this.y().contains(this.z().d5())==!1&&this.z().d5()!=null&&this.y().add(this.z().d5()),f=this.y().getEnumerator();f.moveNext();)r=f.current(),r!=this.z().d5()&&r!=this.ab().ar()&&this.ab().ae(r);return u=this.z()==null||this.ay<=0||isNaN(this.ay)?50:this.ay,u>n.b()&&(u=n.b()),i=new t.y(u,50),Number.isInfinity(i.b())&&i.b(50),Number.isInfinity(i.a())&&i.a(50),i},bo:function(){var e=this.ab().ap(),t,i,n,r,u,o,f,s;if((this.z().dc(e),this.ac()==null||this.ac().visibility()==0)&&(t=this.z().by(),t!=0)&&(i=this.ao(),i!=null)){for(n=this.b3().left(),u=this.ad(),u==2||u==6?(n=this.b3().right(),r=n-t):r=n+t,o=this.ab().b(),f=i.getEnumerator();f.moveNext();)s=f.current(),this.br(e,s,n,r,this.b4(),o);this.y().contains(this.ab().ar())||this.y().add(this.ab().ar())}},$type:new n.ig.Type("VerticalAxisLabelPanel",t.$he.$type)},!0);n.ig.util.defType("VerticalAxisLabelPanelView:i1","AxisLabelPanelBaseView",{_as:null,as:function(n){return arguments.length===1?(this._as=n,n):this._as},init:function(n){t.$hf.init.call(this,n);this.as(n)},at:function(){},v:function(){var n=this.a().z().seriesViewer().es(),t;return this.a().z().titleSettings()!=null&&this.a().z().titleSettings().textStyle()!=null?n=this.a().z().titleSettings().textStyle():(t=this.a().z().seriesViewer().er(),String.isNullOrEmpty(t)==!1&&(n=t)),n},ao:function(){var n=this.a().z().chart().ky(),t;return this.a().z().titleSettings()!=null&&this.a().z().titleSettings().textColor()!=null?n=this.a().z().titleSettings().textColor():(t=this.a().z().seriesViewer().kx(),t!=null&&(n=t)),n},au:function(n){var r,f,i,t,e;r=this.as().ca();f=this.as().cc();var o=this.a().ac()!=null?this.a().ac().horizontalAlignment():1,c=this.a().ay,s=this.as().cd(),h=s/2,u=this.a().b3();for(i=0;i<n.count();i++){t=n.__inner[i];e=t.width()/2;switch(o){case 0:t.x(u.left()+r);break;case 1:case 3:t.x(u.left()+r+h-e);break;case 2:t.x(u.right()-f-t.width())}}},$type:new n.ig.Type("VerticalAxisLabelPanelView",t.$hf.$type)},!0);n.ig.util.defType("AreaSeries:mv","HorizontalAnchoredCategorySeries",{au:function(){return new t.mw(this)},k5:function(){return 1},hc:function(n){t.$kb.hc.call(this,n);this.nq(n)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},init:function(){t.$kb.init.call(this);this.y(t.$mv.$type)},preferredCategoryMode:function(){return 0},gh:function(n,i){t.$kb.gh.call(this,n,i);var r=i;r.c4()},me:function(i,r){var u=this,o,s,h,p;t.$kb.me.call(u,i,r);var a=r.cn().c,f=n.ig.util.cast(t.$mw.$type,r),e=i.h;u.k3.x(u,u.lm(),u.ni(),u.getCategoryItems.runOn(u),u.lw(r),u.lx(r));o=!1;s=u.k3.b();s!=null&&(o=!0);o&&(h=new t.iu(r.bw(),r.bv(),u.ni().isInverted()),u.ma(e,-1,u.valueColumn().count(),u.ni(),h,r.n()));var v=f.da(),y=f.db(),c=f.dd(),l=f.df();u.k3.ae(v,!0,!1,!0,!0);u.k3.ae(y,!0,!1,!0,!0);u.k3.ae(c,!1,!0,!1,!1);u.k3.ae(l,!1,!0,!1,!1);r.cr(i)&&(f.c5(e.count(),e,!0,a,u.resolution(),function(n){return u.m4(n,i.h.count(),r)},u.unknownValuePlotting()),r.cu(i));p=u.ku();c.__opacity=u.k3.i*u.actualAreaFillOpacity();l.__opacity=.5*u.k3.i*u.actualAreaFillOpacity()},unknownValuePlotting:function(n){return arguments.length===1?(this.g(t.$mv.unknownValuePlottingProperty,n),n):this.c(t.$mv.unknownValuePlottingProperty)},hh:function(n,i,r,u){t.$kb.hh.call(this,n,i,r,u);switch(i){case"UnknownValuePlotting":this.k0().m(this.unknownValuePlotting()==0);this.renderSeries(!1);this.gy()}},$type:new n.ig.Type("AreaSeries",t.$kb.$type)},!0);n.ig.util.defType("AreaSeriesView:mw","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){this.dc=new t.b6;this.dg=new t.b6;this.de=new t.b6;this.dh=new t.b6;this.c6=new t.b6;this.c8=new t.b6;this.c7=new t.b6;this.c9=new t.b6;t.$kn.init.call(this,n);this.c3(n)},ao:function(){var n=this;t.$kn.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},da:function(){return this.dg},db:function(){return this.dh},dd:function(){return this.dc},df:function(){return this.de},dc:null,dg:null,de:null,dh:null,c4:function(){this.dc.ak(null);this.de.ak(null);this.dg.ak(null);this.dh.ak(null);this.am()},c5:function(i,r,u,f,e,o,s){this.cw().mp().a(n.ig.util.cast(t.$kr.$type,this.cp().kt())!==null?!0:!1);this.cw().mp().h(this.dc,this.dg,this.de,this.dh,i,r,u,f,e,o,s);this.am()},c6:null,c8:null,c7:null,c9:null,a7:function(){t.$kn.a7.call(this);this.c6.ak(this.dc.ak());this.c8.ak(this.dg.ak());this.c7.ak(this.de.ak());this.c9.ak(this.dh.ak());var n=this.br();this.c6.__fill=n;this.c6.__opacity=1;this.c7.__fill=n;this.c7.__opacity=1;this.c8.__stroke=n;this.c8.z(this.d().thickness()+3);this.c9.__stroke=n;this.c9.z(this.d().thickness()+3)},a1:function(n,i){t.$kn.a1.call(this,n,i);i?(n.q(this.c6),n.q(this.c7),n.q(this.c8),n.q(this.c9)):(n.q(this.dc),n.q(this.de),n.q(this.dg),n.q(this.dh))},ah:function(n){var r,i,u,f;t.$kn.ah.call(this,n);r=new t.me(1,"lowerShape",this.dg);r.tags().add("Lower");i=new t.me(1,"upperShape",this.dh);i.tags().add("Upper");i.tags().add("Main");u=new t.me(1,"translucentShape",this.dc);u.tags().add("Translucent");f=new t.me(1,"fillShape",this.de);f.tags().add("Fill");n.shapes().add(r);n.shapes().add(i);n.shapes().add(u);n.shapes().add(f)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(5);this.d().shadowOffsetX(1);this.d().shadowOffsetY(-3)},$type:new n.ig.Type("AreaSeriesView",t.$kn.$type)},!0);n.ig.util.defType("CategoryFrame:ks","Frame",{init:function(i){this.h=new t.bh(n.ig.Array.prototype.$type,0);this.r=new t.bh(n.ig.Single.prototype.$type,0);this.k=new t.bh(Number,0);this.p=new t.bh(t.$z.$type,0);this.l=new t.bh(Number,0);this.q=new t.bh(t.$z.$type,0);this.n=new t.bh(Number,0);this.o=new t.bh(t.$z.$type,0);this.j=new t.bh(Number,0);this.i=new t.bh(Number,0);this.m=new t.bh(Number,0);t.$kt.init.call(this);this.z=new t.x(0,0,0,1,1);this.t=i;this.x()},z:null,h:null,r:null,k:null,p:null,l:null,q:null,n:null,o:null,j:null,i:null,m:null,_u:0,u:function(n){return arguments.length===1?(this._u=n,n):this._u},t:0,d:function(i,r,u){var lt,at,vt,yt,nt,c,pt,l,a,wt,v,tt,et,it,rt,bt,y,ot,kt,p,ct,st,ut,w,dt,b,ft,gt,k,o,d;this.x();var f=n.ig.util.cast(t.$ks.$type,r),e=n.ig.util.cast(t.$ks.$type,u),s=f.h.count(),h=e.h.count(),g=Math.max(s,h),ni=Math.max(f.p.count(),e.p.count()),ti=Math.max(f.q.count(),e.q.count()),ii=Math.max(f.r.count(),e.r.count()),ri=Math.max(f.o.count(),e.o.count()),ht=f.m.count()>0;if(ht&&this.y(this.m,i,f.m,e.m,g),lt=f.l.count()>0,lt&&this.y(this.l,i,f.l,e.l,ni),at=f.n.count()>0,at&&this.y(this.n,i,f.n,e.n,ti),vt=f.k.count()>0,vt&&this.y(this.k,i,f.k,e.k,ii),yt=f.j.count()>0,yt&&this.y(this.j,i,f.j,e.j,ri),this.h.count()<g)while(this.h.count()<g)this.h.add(new Array(this.t));if(this.h.count()>g&&this.h.removeRange(g,this.h.count()-g),ht)for(nt=0,c=0;c<Math.min(s,h);++c)for(pt=this.h.__inner[c],nt=i*this.m.__inner[c],nt=nt>1?1:nt,l=0;l<this.t;++l)pt[l]=f.h.__inner[c][l]+nt*(e.h.__inner[c][l]-f.h.__inner[c][l]);else for(a=0;a<Math.min(s,h);++a)for(wt=this.h.__inner[a],v=0;v<this.t;++v)wt[v]=f.h.__inner[a][v]+i*(e.h.__inner[a][v]-f.h.__inner[a][v]);if(s<h){for(tt=new Array(this.t),et=this.t-1;et>=0;--et)tt[et]=f.h.count()>0?f.h.__inner[f.h.count()-1][et]:0;if(ht)for(it=0,rt=s;rt<h;++rt)for(bt=this.h.__inner[rt],it=i*this.m.__inner[rt],it=it>1?1:it,y=this.t-1;y>=0;--y)bt[y]=tt[y]+it*(e.h.__inner[rt][y]-tt[y]);else for(ot=s;ot<h;++ot)for(kt=this.h.__inner[ot],p=this.t-1;p>=0;--p)kt[p]=tt[p]+i*(e.h.__inner[ot][p]-tt[p])}if(s>h){for(ct=new Array(this.t),st=this.t-1;st>=0;--st)ct[st]=e.h.count()>0?e.h.__inner[e.h.count()-1][st]:0;if(ht)for(ut=0,w=h;w<s;++w)for(dt=this.h.__inner[w],ut=i*this.m.__inner[w],ut=ut>1?1:ut,b=this.t-1;b>=0;--b)dt[b]=f.h.__inner[w][b]+ut*(ct[b]-f.h.__inner[w][b]);else for(ft=h;ft<s;++ft)for(gt=this.h.__inner[ft],k=this.t-1;k>=0;--k)gt[k]=f.h.__inner[ft][k]+i*(ct[k]-f.h.__inner[ft][k])}lt?t.$kt.f(this.p,i,f.p,e.p,this.l):t.$kt.b(this.p,i,f.p,e.p);at?t.$kt.f(this.q,i,f.q,e.q,this.n):t.$kt.b(this.q,i,f.q,e.q);vt?t.$kt.f(this.o,i,f.o,e.o,this.k):t.$kt.b(this.o,i,f.o,e.o);yt?t.$kt.e(this.i,i,f.i,e.i,this.j):t.$kt.a(this.i,i,f.i,e.i);o=f.aa();d=e.aa();o==null&&(o=this.z);d==null&&(d=this.z);var ui=o.left()+(d.left()-o.left())*i,fi=o.top()+(d.top()-o.top())*i,ei=o.width()+(d.width()-o.width())*i,oi=o.height()+(d.height()-o.height())*i;this.aa(new t.x(0,ui,fi,ei,oi))},y:function(n,i,r,u,f){var e,s,o;if(u.count()==0)for(e=0;e<r.count();e++)u.add(r.__inner[e]);else t.$kt.a(n,i,r,u);if(n.count()<f)for(s=n.count(),o=0;o<f-s;o++)n.add(1)},w:function(){this.m.clear();this.n.clear();this.l.clear();this.k.clear();this.j.clear()},v:function(){this.x();this.w();this.aa(this.z)},x:function(){t.$ks.s++;t.$ks.s>=Number.MAX_VALUE-1&&(t.$ks.s=0);this.u(t.$ks.s)},_aa:null,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},$type:new n.ig.Type("CategoryFrame",t.$kt.$type)},!0);n.ig.util.defType("SingleValuesHolder:s1","ValuesHolder",{init:function(){t.$mb.init.call(this)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},a:function(){return this.f()!=null?this.f().count():0},$type:new n.ig.Type("SingleValuesHolder",t.$mb.$type)},!0);n.ig.util.defType("DefaultSingleValueProvider:s0","Object",{init:function(){n.ig.$op.init.call(this)},valueColumn:function(){return new t.bh(Number,0)},$type:new n.ig.Type("DefaultSingleValueProvider",n.ig.$ot,[t.$kh.$type])},!0);n.ig.util.defType("PreparationParams:l3","Object",{init:function(){n.ig.$op.init.call(this)},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_g:0,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:!1,f:function(n){return arguments.length===1?(this._f=n,n):this._f},$type:new n.ig.Type("PreparationParams",n.ig.$ot)},!0);n.ig.util.defType("CategoryLineRasterizer:ls","Object",{init:function(){n.ig.$op.init.call(this);this.b=new t.cb(0)},_a:!1,a:function(n){return arguments.length===1?(this._a=n,n):this._a},b:null,c:function(n){return arguments.length===1?(this.b=n,n):this.b},l:function(n,i,r,u,f,e,o,s,h,c){var k=this,rt=new t.dx,ut=new t.dx,ft=new t.dx,nt,d,p,et,pt,w,ct,lt,b,wt,at,bt,tt,vt,kt,it,yt;n.ak(rt);i.ak(ut);r.ak(ft);rt.b(new t.dy);ut.b(new t.dy);ft.b(new t.dy);var l=new t.bh(t.$d9.$type,0),a=new t.bh(t.$d9.$type,0),v=new t.bh(t.$d9.$type,0),y=new t.bh(t.$d9.$type,0);if(o==0||o==1){for(nt=o==1?s:null,d=0,p=0;p<u;p++)if(isNaN(f.__inner[p][1])){if(et=p-d,pt=o==0&&et>0||o==1&&et>1,pt){if(o==1||l.count()==0){var dt=new t.d9,gt=new t.d9,ni=new t.d9,ti=new t.d9;l.add(dt);a.add(gt);v.add(ni);y.add(ti)}k.j(l.__inner[l.count()-1].__points,a.__inner[a.count()-1].__points,v.__inner[v.count()-1].__points,y.__inner[y.count()-1].__points,d,p-1,f,e,nt,h,c)}d=p+1}if(o==1||l.count()==0){var ii=new t.d9,ri=new t.d9,ui=new t.d9,fi=new t.d9;l.add(ii);a.add(fi);v.add(ri);y.add(ui)}k.j(l.__inner[l.count()-1].__points,a.__inner[a.count()-1].__points,v.__inner[v.count()-1].__points,y.__inner[y.count()-1].__points,d,u-1,f,e,nt,h,c);nt==null&&l.count()==1&&s!=null&&(k.e(l.__inner[0],s),a.count()==1&&k.e(a.__inner[0],s))}else l.add(new t.d9),a.add(new t.d9),v.add(new t.d9),y.add(new t.d9),k.i(l.__inner[0].__points,a.__inner[0].__points,v.__inner[0].__points,y.__inner[0].__points,u,f,e,s,h,c);for(w=0;w<l.count();w++){var ot=l.__inner[w],st=a.__inner[w],ht=v.__inner[w],g=y.__inner[w];if(ot.__points.count()>0&&(ct=function(){var n=new t.d6;return n.startPoint(ot.__points.__inner[0]),n}(),ct.__segments.add(ot),rt.b().add(ct)),st.__points.count()>0&&(lt=function(){var n=new t.d6;return n.startPoint(st.__points.__inner[0]),n}(),lt.__segments.add(st),ft.b().add(lt)),ht.__points.count()>0&&g.__points.count()>0){if(b=new t.d9,s!=null){for(wt=s.f(),s.f(!0),s.i(b.__points),at=ht.__points.getEnumerator();at.moveNext();)bt=at.current(),s.j(bt);for(tt=g.__points.count()-1;tt>=0;tt--)s.j(g.__points.__inner[tt]);s.i(null);s.f(wt)}else{for(vt=ht.__points.getEnumerator();vt.moveNext();)kt=vt.current(),b.__points.add(kt);for(it=g.__points.count()-1;it>=0;it--)b.__points.add(g.__points.__inner[it])}b.__points.count()>0&&(yt=function(){var n=new t.d6;return n.startPoint(b.__points.__inner[0]),n}(),yt.__segments.add(b),ut.b().add(yt))}}},e:function(n,i){var f=n.__points,r,u;for(i.i(n.__points=new t.cb(0)),r=f.getEnumerator();r.moveNext();)u=r.current(),i.j(u);i.i(null)},k:function(n,t,i,r,u,f,e,o,s,h){n.ag().clear();i.ag().clear();r.ag().clear();t.ag().clear();this.i(n.ag(),t.ag(),i.ag(),r.ag(),u,f,e,o,s,h);n.y(n.ag().count()>0);i.y(i.ag().count()>0);r.y(r.ag().count()>0);t.y(t.ag().count()>0)},i:function(n,t,i,r,u,f,e,o,s,h){this.j(n,t,i,r,0,u-1,f,e,o,s,h)},f:function(i,r,u,f,e,o,s){var v=t.$k3.i(new t.bh(n.ig.Number.prototype.$type,0),f,e,o,r,u,s),c=0,b=v.count(),h,l,a,y,k,p,d,w,g;if(e)for(y=0;y<b;y++)c=v.__inner[y],h=f.__inner[c],l=h[0],a=h[1],k={__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i.add(k);else if(o)for(p=0;p<b;p++)c=v.__inner[p],h=f.__inner[c],l=h[0],a=h[2],d={__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i.add(d);else for(w=0;w<b;w++)c=v.__inner[w],h=f.__inner[c],l=h[2],a=h[3],g={__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i.add(g)},d:function(n,t,i){i.i(n);for(var r=0;r<t.count();r++)i.j(t.__inner[r]);i.i(null)},j:function(n,i,r,u,f,e,o,s,h,c,l){var y,p,g,a,v,w,nt,b,tt,k,it,d,rt;if(e>-1)if(c!=1||this.a()){for(a=new t.cb(0),v=new t.cb(0),this.f(a,f,e,o,!0,s,l),this.f(v,f,e,o,!1,s,l),w=a.getEnumerator();w.moveNext();)nt=w.current(),r.add(nt);for(b=v.getEnumerator();b.moveNext();)tt=b.current(),u.add(tt);if(h!=null)this.d(n,a,h,l),this.d(i,v,h,l);else{for(k=a.getEnumerator();k.moveNext();)it=k.current(),n.add(it);for(d=v.getEnumerator();d.moveNext();)rt=d.current(),i.add(rt)}}else if(y=new t.cb(0),this.f(y,f,e,o,!0,s,l),h!=null)this.d(n,y,h,l);else for(p=y.getEnumerator();p.moveNext();)g=p.current(),n.add(g)},h:function(n,i,r,u,f,e,o,s,h,c,l){var d=this,g=new t.dx,nt=new t.dx,tt=new t.dx,it=new t.dx,k,w,rt,at,b,st,ht,ct,lt;n.ak(g);i.ak(nt);r.ak(tt);u.ak(it);g.b(new t.dy);nt.b(new t.dy);tt.b(new t.dy);it.b(new t.dy);var v=new t.bh(t.$d9.$type,0),a=new t.bh(t.$d9.$type,0),y=new t.bh(t.$d9.$type,0),p=new t.bh(t.$d9.$type,0);if(l==0||l==1){for(k=0,w=0;w<f;w++)if(isNaN(e.__inner[w][1])){if(rt=w-k,at=l==0&&rt>0||l==1&&rt>1,at){if(l==1||a.count()==0){var vt=new t.d9,yt=new t.d9,pt=new t.d9,wt=new t.d9;v.add(vt);a.add(yt);y.add(pt);p.add(wt)}d.g(v.__inner[v.count()-1].__points,a.__inner[a.count()-1].__points,y.__inner[y.count()-1].__points,p.__inner[p.count()-1].__points,k,w-1,e,o,s,h);l==1&&c(v.__inner[v.count()-1].__points,a.__inner[a.count()-1].__points,y.__inner[y.count()-1].__points,p.__inner[p.count()-1].__points,!1)}k=w+1}if(l==1||a.count()==0){var bt=new t.d9,kt=new t.d9,dt=new t.d9,gt=new t.d9;v.add(bt);a.add(kt);y.add(dt);p.add(gt)}d.g(v.__inner[v.count()-1].__points,a.__inner[a.count()-1].__points,y.__inner[y.count()-1].__points,p.__inner[p.count()-1].__points,k,f-1,e,o,s,h);c(v.__inner[v.count()-1].__points,a.__inner[a.count()-1].__points,y.__inner[y.count()-1].__points,p.__inner[p.count()-1].__points,!0)}else v.add(new t.d9),a.add(new t.d9),y.add(new t.d9),p.add(new t.d9),d.g(v.__inner[0].__points,a.__inner[0].__points,y.__inner[0].__points,p.__inner[0].__points,0,f-1,e,o,s,h),c(v.__inner[0].__points,a.__inner[0].__points,y.__inner[0].__points,p.__inner[0].__points,!0);for(b=0;b<a.count();b++){var ut=v.__inner[b],ft=a.__inner[b],et=y.__inner[b],ot=p.__inner[b];ut.__points.count()>0&&(st=function(){var n=new t.d6;return n.startPoint(ut.__points.__inner[0]),n}(),st.__segments.add(ut),g.b().add(st));ft.__points.count()>0&&(ht=function(){var n=new t.d6;return n.startPoint(ft.__points.__inner[0]),n}(),ht.__segments.add(ft),nt.b().add(ht));et.__points.count()>0&&(ct=function(){var n=new t.d6;return n.startPoint(et.__points.__inner[0]),n}(),ct.__segments.add(et),tt.b().add(ct));ot.__points.count()>0&&(lt=function(){var n=new t.d6;return n.startPoint(ot.__points.__inner[0]),n}(),lt.__segments.add(ot),it.b().add(lt))}},g:function(i,r,u,f,e,o,s,h,c,l){var b,d,g,nt,tt;if(this.c().clear(),c!=1||this.a()){var ft=t.$k3.i(new t.bh(n.ig.Number.prototype.$type,0),s,!0,h,e,o,l),et=t.$k3.i(new t.bh(n.ig.Number.prototype.$type,0),s,!1,h,e,o,l),st=ft.count(),ht=et.count(),k=0,a,v,y;for(d=0;d<st;d++)k=ft.__inner[d],a=s.__inner[k],v=a[0],y=a[1],i.add({__x:v,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r.add({__x:v,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u.add({__x:v,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.c().add({__x:v,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});for(tt=ht-1;tt>=0;tt--)k=et.__inner[tt],a=s.__inner[k],h?(g=a[0],nt=a[2]):(g=a[2],nt=a[3]),f.add({__x:g,__y:nt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u.add({__x:g,__y:nt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}else{var rt=t.$k3.i(new t.bh(n.ig.Number.prototype.$type,0),s,!0,h,e,o,l),ot=rt.count(),ut=0,it,p,w;for(b=0;b<ot;b++)ut=rt.__inner[b],it=s.__inner[ut],p=it[0],w=it[1],i.add({__x:p,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f.add({__x:p,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.c().add({__x:p,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}},$type:new n.ig.Type("CategoryLineRasterizer",n.ig.$ot)},!0);n.ig.util.defType("CategoryTransitionSourceFramePreparer:q5","Object",{init:function(){n.ig.$op.init.call(this);this.a=new t.ff},p:function(n,i,r,u,f,e,o,s,h,c,l){var v,y,a,w,p;n.aa(new t.x(0,0,0,1,1));n.h.clear();n.r.clear();n.p.clear();n.q.clear();n.o.clear();n.i.clear();v=!1;y=!1;f!=null&&(v=f.isInverted());u!=null&&(y=u.isInverted());a=e;a==0&&(a=o);switch(a){case 1:w=c();this.t(n,i,w,r);break;case 7:this.r(n,i,!1,r,l);break;case 9:this.s(n,i,!0,r,l);break;case 10:this.s(n,i,!1,r,l);break;case 8:this.r(n,i,!0,r,l);break;case 2:this.u(n,i,!1);break;case 3:this.u(n,i,!0);break;case 4:this.v(n,i,!0);break;case 5:this.v(n,i,!1);break;case 6:this.j(n,i);n.aa(new t.x(0,.5,.5,0,0));break;case 16:r?this.s(n,i,v,r,l):this.r(n,i,y,r,l);break;case 17:r?this.s(n,i,!v,r,l):this.r(n,i,!y,r,l);break;case 18:r?this.r(n,i,y,r,l):this.s(n,i,v,r,l);break;case 19:r?this.r(n,i,!y,r,l):this.s(n,i,!v,r,l);break;case 12:r?this.v(n,i,v):this.u(n,i,y);break;case 13:r?this.v(n,i,!v):this.u(n,i,!y);break;case 14:r?this.u(n,i,y):this.v(n,i,v);break;case 15:r?this.u(n,i,!y):this.v(n,i,!v);break;case 11:this.q(n,i)}s==0&&(s=h);n.w();i.w();switch(s){case 3:this.b(n.h.count(),a,n.m,i.m,u,f,r,l);this.b(n.p.count(),a,n.l,i.l,u,f,r,l);this.b(n.q.count(),a,n.n,i.n,u,f,r,l);this.b(n.o.count(),a,n.k,i.k,u,f,r,l);this.b(n.i.count(),a,n.j,i.j,u,f,r,l);break;case 2:p=c();this.d(n.h.count(),p,a,n.h,i.h,n.m,i.m,u,f,r,l);this.f(n.p.count(),p,a,n.p,i.p,n.l,i.l,u,f,r,l);this.f(n.q.count(),p,a,n.q,i.q,n.n,i.n,u,f,r,l);this.f(n.o.count(),p,a,n.o,i.o,n.k,i.k,u,f,r,l);this.e(n.i.count(),p,a,n.i,i.i,n.j,i.j,u,f,r,l);break;case 4:this.c(n.h.count(),a,n.m,i.m);this.c(n.p.count(),a,n.l,i.l);this.c(n.q.count(),a,n.n,i.n);this.c(n.o.count(),a,n.k,i.k);this.c(n.i.count(),a,n.j,i.j)}},a:null,c:function(n,t,i,r){if(n!=0)for(var u=0;u<n;u++)i.add(1+this.a.a()),r.add(1+this.a.a())},d:function(n,t,i,r,u,f,e,o,s,h,c){var tt,b,l,k,v,d,g,it,nt,a,rt;if(n!=0){tt=!1;b=s;h&&(b=o);b!=null&&(tt=b.isInverted());var y=c.bottom(),p=c.bottom(),w=c.top();for(h&&(p=c.right(),w=c.left()),tt&&(p=c.top(),w=c.bottom(),h&&(p=c.left(),w=c.right())),t=Math.max(t,Math.min(w,p)),t=Math.min(t,Math.max(w,p)),y=0,k=0;k<n;k++)for(l=u.__inner[k],v=1;v<l.length;v++)isNaN(l[v])||Number.isInfinity(l[v])||(y=Math.max(y,Math.abs(t-l[v])));for(nt=0;nt<n;nt++){for(l=u.__inner[nt],d=Math.abs(l[1]-t),g=Math.abs(l[1]-t),a=1;a<l.length;a++)isNaN(l[a])||Number.isInfinity(l[a])||(d=Math.max(Math.abs(l[a]-t),d),g=Math.min(Math.abs(l[a]-t),g));rt=(d+g)/2;it=isNaN(rt)||y==0?1:rt/y;f.add(2-it);e.add(2-it)}}},f:function(n,t,i,r,u,f,e,o,s,h,c){var d,p,l,w,g,b,k;if(n!=0){d=!1;p=s;h&&(p=o);p!=null&&(d=p.isInverted());var a=c.bottom(),v=c.bottom(),y=c.top();for(h&&(v=c.right(),y=c.left()),d&&(v=c.top(),y=c.bottom(),h&&(v=c.left(),y=c.right())),t=Math.max(t,Math.min(y,v)),t=Math.min(t,Math.max(y,v)),a=0,w=0;w<n;w++)if(l=u.__inner[w],h){if(isNaN(l.__x)||Number.isInfinity(l.__x))continue;a=Math.max(a,Math.abs(l.__x-t))}else{if(isNaN(l.__y)||Number.isInfinity(l.__y))continue;a=Math.max(a,Math.abs(l.__y-t))}for(b=0;b<n;b++)l=u.__inner[b],k=h?l.__x:l.__y,g=isNaN(k)||Number.isInfinity(k)||a==0?1:Math.abs(k-t)/a,f.add(2-g),e.add(2-g)}},e:function(n,t,i,r,u,f,e,o,s,h,c){var d,p,l,w,g,b,k;if(n!=0){d=!1;p=s;h&&(p=o);p!=null&&(d=p.isInverted());var a=c.bottom(),v=c.bottom(),y=c.top();for(h&&(v=c.right(),y=c.left()),d&&(v=c.top(),y=c.bottom(),h&&(v=c.left(),y=c.right())),t=Math.max(t,Math.min(y,v)),t=Math.min(t,Math.max(y,v)),a=0,w=0;w<n;w++)(l=u.__inner[w],isNaN(l)||Number.isInfinity(l))||(a=Math.max(a,Math.abs(l-t)));for(b=0;b<n;b++)l=u.__inner[b],k=l,g=a==0||isNaN(k)||Number.isInfinity(k)?1:Math.abs(k-t)/a,f.add(2-g),e.add(2-g)}},b:function(n,t,i,r,u,f,e){var s,c,o,h;if(n!=0)for(s=u,e&&(s=f),c=!1,s!=null&&(c=s.isInverted()),h=0;h<n;h++)o=n==1?1:h/(n-1),o=1-o,i.add(1+o),r.add(1+o)},q:function(n,t){var h,c,i,u,f,l,e,r,o,a,v,s;for(n.h.clear(),n.r.clear(),n.p.clear(),n.q.clear(),n.o.clear(),n.i.clear(),this.g(n.h,t.h),this.i(n.r,t.r),this.k(n.p,t.p),this.k(n.q,t.q),this.k(n.o,t.o),this.h(n.i,t.i),h=n.h.count(),c=n.h,e=0;e<h;e++){for(i=c.__inner[e],u=i[1],f=i[1],r=2;r<i.length;r++)u=Math.min(u,i[r]),f=Math.max(f,i[r]);for(l=(u+f)/2,o=1;o<i.length;o++)i[o]=l}for(a=n.i.count(),v=n.i,s=0;s<a;s++)v.__inner[s]=0},u:function(n,i,r){r?(this.j(n,i),n.aa(new t.x(0,1,0,0,1))):(this.j(n,i),n.aa(new t.x(0,0,0,0,1)))},v:function(n,i,r){r?(this.j(n,i),n.aa(new t.x(0,0,0,1,0))):(this.j(n,i),n.aa(new t.x(0,0,1,1,0)))},j:function(n,t){n.h.clear();n.r.clear();n.p.clear();n.q.clear();n.o.clear();n.i.clear();this.g(n.h,t.h);this.i(n.r,t.r);this.k(n.p,t.p);this.k(n.q,t.q);this.k(n.o,t.o);this.h(n.i,t.i)},o:function(t,i,r,u,f){for(var h=i.count(),e,s,o=0;o<h;o++)e=i.__inner[o],s=f?r?{__x:u,__y:e.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}:{__x:e.__x,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}:r?{__x:e.__x,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}:{__x:u,__y:e.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},t.add(s)},k:function(t,i){for(var e=i.count(),r,f,u=0;u<e;u++)r=i.__inner[u],f={__x:r.__x,__y:r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},t.add(f)},g:function(n,t){for(var i,e=t.count(),o=t,r,u,s=n,f=0;f<e;f++){for(u=o.__inner[f],r=new Array(u.length),i=0;i<r.length;i++)r[i]=u[i];s.add(r)}},l:function(n,t,i,r,u){for(var s,e,c=t.count(),l=t,f,o,a=n,h=0;h<c;h++){if(o=l.__inner[h],f=new Array(o.length),u)for(f[0]=o[0],s=1;s<f.length;s++)f[s]=r;else for(f[0]=r,e=1;e<f.length;e++)f[e]=o[e];a.add(f)}},n:function(n,t){for(var u=t.count(),r,i=0;i<u;i++)r=t.__inner[i],n.add(r)},i:function(n,t){for(var u=t.count(),r,i=0;i<u;i++)r=t.__inner[i],n.add(r)},h:function(n,t){for(var u=t.count(),r,i=0;i<u;i++)r=t.__inner[i],n.add(r)},m:function(n,t){for(var u=t.count(),r,i=0;i<u;i++)r=t.__inner[i],n.add(r)},r:function(n,t,i,r,u){var e=u.right(),f;i||(e=u.left());f=!1;r&&(f=!0);this.l(n.h,t.h,r,e,f);this.n(n.r,t.r);this.o(n.p,t.p,r,e,f);this.o(n.q,t.q,r,e,f);this.o(n.o,t.o,r,e,f);this.m(n.i,t.i,r,e,f)},s:function(n,t,i,r,u){var e=u.bottom(),f;i&&(e=u.top());f=!0;r&&(f=!1);this.l(n.h,t.h,r,e,f);this.n(n.r,t.r);this.o(n.p,t.p,r,e,f);this.o(n.q,t.q,r,e,f);this.o(n.o,t.o,r,e,f);this.m(n.i,t.i,r,e,f)},t:function(n,t,i,r){this.l(n.h,t.h,r,i,!0);this.n(n.r,t.r);this.o(n.p,t.p,r,i,!0);this.o(n.q,t.q,r,i,!0);this.o(n.o,t.o,r,i,!0);this.m(n.i,t.i,r,i,!0)},$type:new n.ig.Type("CategoryTransitionSourceFramePreparer",n.ig.$ot)},!0);n.ig.util.defType("CategorySeriesRenderManager:mf","Object",{init:function(){n.ig.$op.init.call(this)},ah:null,ai:null,l:0,ao:null,aq:null,j:0,k:0,i:0,h:0,as:null,ar:null,am:null,an:null,r:0,ap:null,at:null,p:0,q:0,o:0,n:0,av:null,au:null,ak:null,al:null,m:0,f:!1,e:!1,af:null,ag:null,g:0,_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},c:null,s:0,t:0,w:function(n,i,r,u,f){this.s=u;this.t=f;this.e=!1;this.ak=n.actualMarkerBrush();this.al=n.actualMarkerOutline();this.m=1;this.af=this.ak;this.ag=this.al;this.g=this.m;var e=i;this.a(null);e&&(this.a(new t.ml),this.a().maxAllSeriesHighlightingProgress(0),this.a().sumAllSeriesHighlightingProgress(0),n.seriesViewer()!=null&&(this.a().maxAllSeriesHighlightingProgress(n.seriesViewer().ap().l()),this.a().sumAllSeriesHighlightingProgress(n.seriesViewer().ap().n())),this.a().getItems(r))},x:function(n,i,r,u,f,e){this.s=f;this.t=e;this.f=!1;this.am=n.actualBrush();this.an=n.actualOutline();this.r=n.thickness();this.ap=n.dashArray();this.at=n.dashCap();this.p=0;this.q=0;this.o=1;this.n=n.miterLimit();this.av=n.startCap();this.au=n.endCap();this.ah=this.am;this.ai=this.an;this.l=this.r;this.ao=this.ap;this.aq=this.at;this.j=this.p;this.k=this.q;this.i=this.o;this.h=this.n;this.as=this.av;this.ar=this.au;this.c=r;var o=i;this.b(null);o&&(this.b(new t.mg),this.b().maxAllSeriesHighlightingProgress(0),this.b().sumAllSeriesHighlightingProgress(0),n.seriesViewer()!=null&&(this.b().maxAllSeriesHighlightingProgress(n.seriesViewer().ap().k()),this.b().sumAllSeriesHighlightingProgress(n.seriesViewer().ap().m())),this.b().getItems(u))},ae:function(n,t,i,r,u){var f=this.ah;u&&(f=this.ai);i?n.__fill=f:(t?n.__stroke=f:(n.__fill=f,n.__stroke=this.ai),n.z(this.l),n.af(this.ao),n.aa(this.aq),r);n.__opacity=this.i},ad:function(n,t){n.__opacity=this.g;t.itemBrush(this.af);t.actualItemBrush(t.itemBrush());t.outline(this.ag);t.thickness(.5)},d:function(n,t){var i=this.s,u=Math.min(t*i,n-1),f=Math.min(u+i-1,n-1),r=new Array(2);return r[0]=Math.min(u+this.t*i,n-1),r[1]=Math.min(f+this.t*i,n-1),r},u:function(n){if(n!=null){var t=n.progress();t=t*.5;this.ah=this.aj(this.ah,t);this.ai=this.aj(this.ai,t)}},aj:function(n,t){return n==null?n:n.getLightened(t)},v:function(n){if(n!=null){var t=n.progress();t=t*.5;this.af=this.aj(this.af,t);this.ag=this.aj(this.ag,t)}},y:function(n,t,i,r,u,f,e,o,s){var h,c,v,l,a;r==-1?t?(n.hasDateRange(!0),n.startDate(f.actualMinimumValue()),n.endDate(f.actualMaximumValue())):(n.hasDateRange(!1),n.startIndex(0),n.endIndex(u-1)):t?(h=f.getUnscaledValue(i.__inner[r][0],e),c=h,r+1<i.count()&&(c=f.getUnscaledValue(i.__inner[r+1][0],e)),n.hasDateRange(!0),n.startDate(new Date(h)),n.endDate(new Date(c)),f.isInverted()&&(v=n.endDate(),n.endDate(n.startDate()),n.startDate(v)),s?(n.startIndex(r),n.endIndex(r)):(l=this.d(u,r),n.startIndex(l[0]),n.endIndex(l[1]))):s?(n.startIndex(r),n.endIndex(r)):(a=this.d(u,r),n.hasDateRange(!1),n.startIndex(a[0]),n.endIndex(a[1]))},ac:function(n,t,i,r,u,f){this.ah=this.am;this.ai=this.an;this.l=this.r;this.ao=this.ap;this.aq=this.at;this.j=this.p;this.k=this.q;this.i=this.o;var e=this.b(),o=r.isSorting();this.y(e,o,n,t,i,r,u,f,!1);e.fill(this.ah);e.stroke(this.ai);e.strokeThickness(this.l);e.strokeDashArray(this.ao);e.strokeDashCap(this.aq);e.radiusX(this.j);e.radiusY(this.k);e.opacity(this.i);e.isNegativeShape(this.f);e.highlightingHandled(!1)},aa:function(n,t,i){var r=this.b();this.ah=r.fill();this.ai=r.stroke();this.l=r.strokeThickness();this.ao=r.strokeDashArray();this.aq=r.strokeDashCap();this.j=r.radiusX();this.k=r.radiusY();this.i=r.opacity();!i||r.highlightingHandled()||t||this.u(n)},ab:function(n,t,i,r,u,f){this.af=this.ak;this.ag=this.al;this.g=this.m;var e=this.a(),o=r.isSorting();this.y(e,o,n,t,i,r,u,f,!0);e.fill(this.af);e.stroke(this.ag);e.opacity(this.g);e.isNegativeShape(this.e);e.highlightingHandled(!1)},z:function(n,t,i){var r=this.a();this.af=r.fill();this.ag=r.stroke();this.g=r.opacity();!i||r.highlightingHandled()||t||this.v(n)},$type:new n.ig.Type("CategorySeriesRenderManager",n.ig.$ot)},!0);n.ig.util.defType("ColumnSeries:vl","HorizontalAnchoredCategorySeries",{au:function(){return new t.vm(this)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},hc:function(n){t.$kb.hc.call(this,n);this.nq(n)},k5:function(){return 1},init:function(){t.$kb.init.call(this);this.y(t.$vl.$type)},radiusX:function(n){return arguments.length===1?(this.g(t.$vl.radiusXProperty,n),n):this.c(t.$vl.radiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$vl.radiusYProperty,n),n):this.c(t.$vl.radiusYProperty)},li:function(){return!0},preferredCategoryMode:function(){return 2},gh:function(n,i){t.$kb.gh.call(this,n,i);var r=i;n&&r.c4()!=null&&r.c4().c(0)},me:function(n,i){var f,a,y,g,p,r,u;if(t.$kb.me.call(this,n,i),f=n.h,i.p()){var l=i.bw(),e=i.bv(),w=new t.iu(l,e,this.nj().isInverted()),b=new t.iu(l,e,this.ni().isInverted()),v=this.nj(),k=v.getScaledValue(v.referenceValue(),w),o=this.ni().fy(l,e),d=this.ni(),s=i;if(isNaN(o)||Number.isInfinity(o)){s.c4().c(0);return}for(this.k3.x(this,this.lm(),this.ni(),this.getCategoryItems.runOn(this),this.lw(i),this.lx(i)),this.k3.p=this.radiusX(),this.k3.q=this.radiusY(),this.k3.j=this.radiusX(),this.k3.k=this.radiusY(),a=!1,y=this.k3.b(),y!=null&&(a=!0),g=this.ni().isSorting(),p=this.valueColumn().count(),r=0;r<f.count();++r){var nt=f.__inner[r][0]-.5*o,h=f.__inner[r][1],c=k;h=Math.max(h,-100);c=Math.min(c,e.bottom()+100);u=s.c4().item(r);u.width(o);u.height(Math.abs(c-h));a&&this.ma(f,r,p,d,b,i.n());this.k3.ae(u,!1,!1,!1,!1);u.ai(this.k3.j);u.aj(this.k3.k);s.c9(u,nt,Math.min(c,h))}s.c4().c(f.count());i.cu(n)}},$type:new n.ig.Type("ColumnSeries",t.$kb.$type)},!0);n.ig.util.defType("ColumnSeriesView:vm","AnchoredCategorySeriesView",{ao:function(){var n=this;t.$kn.ao.call(n);n.c5(new t.bh(t.$b1.$type,0));n.n()||(n.d().resolution(4),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}()))},_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){var i=this;this.da=new t.b1;t.$kn.init.call(this,n);this.c3(n);this.c4(function(){var n=new t.ga(t.$b1.$type);return n.create(i.db.runOn(i)),n.activate(i.c6.runOn(i)),n.disactivate(i.c8.runOn(i)),n.destroy(i.c7.runOn(i)),n}())},db:function(){var n=new t.b1;return this.c5().add(n),n.__visibility=1,n},_c5:null,c5:function(n){return arguments.length===1?(this._c5=n,n):this._c5},c6:function(n){n.__visibility=0},c8:function(n){n.__visibility=1},c7:function(n){this.c5().remove(n)},c9:function(n,t,i){this.isDirty()||this.am();n.m(i);n.l(t)},w:function(n){return this.c5().__inner[n]},da:null,v:function(n){var t=this.c5().__inner[n],i;return this.da.__visibility=t.__visibility,this.da.l(t.l()),this.da.m(t.m()),this.da.width(t.width()),this.da.height(t.height()),i=this.bs(n),this.da.__fill=i,this.da.__stroke=i,this.da.z(this.d().thickness()+3),this.da},a1:function(n,i){var f,r,u;if(t.$kn.a1.call(this,n,i),f=!1,n.c())for(r=0;r<this.c5().count();r++)u=this.u(r,i),this.a8(u,r,i),n.t(u)},_c4:null,c4:function(n){return arguments.length===1?(this._c4=n,n):this._c4},ah:function(n){var f=this,s,u,h,i;t.$kn.ah.call(f,n);for(var e=0,r=new t.bh(t.$b1.$type,0),o=f.c4().a().getEnumerator();o.moveNext();)s=o.current(),r.add(s);for(r.sort1(function(n,t){return n.l()<t.l()?-1:n.l()>t.l()?1:0}),u=r.getEnumerator();u.moveNext();)h=u.current(),i=new t.g6(1,"column"+e,h),i.tags().add("Main"),i.tags().add("Fill"),n.shapes().add(i);e++},$type:new n.ig.Type("ColumnSeriesView",t.$kn.$type)},!0);n.ig.util.defType("DefaultSupportsMarkers:l0","Object",{init:function(){n.ig.$op.init.call(this)},shouldDisplayMarkers:function(){return!1},updateMarkerCount:function(){},updateMarkerTemplate:function(){},$type:new n.ig.Type("DefaultSupportsMarkers",n.ig.$ot,[t.$kp.$type])},!0);n.ig.util.defType("DefaultProvidesViewport:l1","Object",{init:function(){n.ig.$op.init.call(this)},getViewInfo:function(n,i){return n=t.$x.empty(),i=t.$x.empty(),{viewportRect:n,windowRect:i}},$type:new n.ig.Type("DefaultProvidesViewport",n.ig.$ot,[t.$a.$type])},!0);n.ig.util.defType("DefaultSupportsErrorBars:l2","Object",{init:function(){n.ig.$op.init.call(this)},xAxis:function(){return null},yAxis:function(){return null},$type:new n.ig.Type("DefaultSupportsErrorBars",n.ig.$ot,[t.$lz.$type])},!0);n.ig.util.defType("LineSeries:mc","HorizontalAnchoredCategorySeries",{au:function(){return new t.md(this)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},hc:function(n){t.$kb.hc.call(this,n);this.nq(n)},init:function(){t.$kb.init.call(this);this.y(t.$mc.$type)},preferredCategoryMode:function(){return 0},gh:function(n,i){t.$kb.gh.call(this,n,i);var r=i;r.c4()},me:function(i,r){var e,o,s;t.$kb.me.call(this,i,r);var c=r.cn().c,f=n.ig.util.cast(t.$md.$type,r),u=i.h;this.k3.x(this,this.lm(),this.ni(),this.getCategoryItems.runOn(this),this.lw(r),this.lx(r));e=!1;o=this.k3.b();o!=null&&(e=!0);e&&(s=new t.iu(r.bw(),r.bv(),this.ni().isInverted()),this.ma(u,-1,this.valueColumn().count(),this.ni(),s,r.n()));var l=f.da(),a=f.db(),h=f.c9();this.k3.ae(l,!0,!1,!0,!1);this.k3.ae(a,!0,!1,!0,!1);this.k3.ae(h,!1,!0,!1,!1);h.__opacity=.75*this.k3.i;r.cr(i)&&(f.c5(u.count(),u,!0,this.unknownValuePlotting(),this.mn(u,u.count()-1,r.bv(),r.bw()),c,this.resolution()),r.cu(i))},unknownValuePlotting:function(n){return arguments.length===1?(this.g(t.$mc.unknownValuePlottingProperty,n),n):this.c(t.$mc.unknownValuePlottingProperty)},hh:function(n,i,r,u){t.$kb.hh.call(this,n,i,r,u);switch(i){case"UnknownValuePlotting":this.k0().m(this.unknownValuePlotting()==0);this.renderSeries(!1);this.gy()}},$type:new n.ig.Type("LineSeries",t.$kb.$type)},!0);n.ig.util.defType("LineSeriesView:md","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){this.dd=new t.b6;this.dc=new t.b6;this.de=new t.b6;this.c8=new t.b6;this.c7=new t.b6;this.c6=new t.b6;t.$kn.init.call(this,n);this.c3(n)},dd:null,dc:null,de:null,da:function(){return this.dd},db:function(){return this.de},c9:function(){return this.dc},c4:function(){this.dc.ak(null);this.dd.ak(null);this.de.ak(null);this.am()},c5:function(i,r,u,f,e,o,s){this.c3().mp().a(n.ig.util.cast(t.$kr.$type,this.cp().kt())!==null?!0:!1);this.c3().mp().l(this.dd,this.dc,this.de,i,r,u,f,e,o,s);this.am()},a6:function(){t.$kn.a6.call(this)},c8:null,c7:null,c6:null,a7:function(){t.$kn.a7.call(this);this.c7.ak(this.dd.ak());this.c8.ak(this.de.ak());this.c6.ak(this.dc.ak());var n=this.br();this.c7.__stroke=n;this.c7.z(this.d().thickness()+3);this.c8.__stroke=n;this.c8.z(this.d().thickness()+3);this.c6.__fill=n;this.c6.__opacity=1},a1:function(n,i){t.$kn.a1.call(this,n,i);n.c()&&(i?(n.q(this.c6),n.q(this.c7),n.q(this.c8)):(n.q(this.dc),n.q(this.dd),n.q(this.de)))},ah:function(n){var i,r,u;t.$kn.ah.call(this,n);i=new t.me(1,"lowerShape",this.dd);i.tags().add("Lower");i.tags().add("Main");r=new t.me(1,"upperShape",this.de);r.tags().add("Upper");u=new t.me(1,"translucentShape",this.dc);u.tags().add("Translucent");n.shapes().add(i);n.shapes().add(r);n.shapes().add(u)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(1);this.d().shadowOffsetY(4);this.d().useSingleShadow(!1)},$type:new n.ig.Type("LineSeriesView",t.$kn.$type)},!0);n.ig.util.defType("SplineSeriesBase:mn","HorizontalAnchoredCategorySeries",{init:function(){t.$kb.init.call(this)},au:function(){return new t.mo(this)},hc:function(n){t.$kb.hc.call(this,n);this.nq(n)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},_ns:null,ns:function(n){return arguments.length===1?(this._ns=n,n):this._ns},nw:function(n){return n},ny:function(i,r,u,f,e,o){var s=this,c=n.ig.util.cast(t.$kr.$type,f),v,rt,h,ut,l,k;if(c!=null){var et=new t.iu(r,u,f.isInverted()),ot=new t.iu(r,u,e.isInverted()),nt=s.jw(),a=0,st=s.nv(f,r,u),ht=function(n){return n},ct=function(n){return s.valueColumn().item(c.sortedIndices().__inner[n])},tt=s.k4().cn().e,it=s.k4().cn().d,lt=Math.ceil(u.width()/(tt-it)),at=new t.mq,vt=s.k4().cn().c;if(vt<=0||it<=0&&tt<=0){s.k4().cq().c(a);return}for(v=0,rt=0,h=it;h<tt+1;++h){if(ut=null,l=h*vt,c!=null&&c.sortedIndices()!=null&&l>=0&&l<c.sortedIndices().count()&&(l=c.sortedIndices().__inner[l]),h>=s.valueColumn().count()-1){nt&&s.nt(i,i.h.last$1(n.ig.Array.prototype.$type),at,Math.min(l,s.bb().count()-1),a,o,v-1)&&++a;break}var ft=ht(h),yt=ct(h),pt=ht(h+1),dt=ct(h+1),y=pt-ft,gt=s.ns()[h],ni=s.ns()[h+1],ti=c.getUnscaledValueAt(c.sortedIndices().__inner[h]),wt=f.getScaledValue(ti,et)+st,b=e.getScaledValue(yt,ot);for(i.h.add(function(){var n=[];return n.add(wt),n.add(b),n.add(b),n}()),v++,rt=v,k=1;k<lt;++k){var bt=k/lt,d=ft+y*bt,p=(pt-d)/y,w=(d-ft)/y,g=p*yt+w*dt+((p*p*p-p)*gt+(w*w*w-w)*ni)*y*y/6,kt=c.getUnscaledValueAt(c.sortedIndices().__inner[h]),ii=c.getUnscaledValueAt(c.sortedIndices().__inner[h+1]),ri=kt+(ii-kt)*bt;d=f.getScaledValue(ri,et)+st;g=e.getScaledValue(g,ot);i.h.add(function(){var n=[];return n.add(d),n.add(g),n.add(g),n}());v++}nt&&(ut=function(){var n=[];return n.add(wt),n.add(b),n.add(b),n}());nt&&s.nt(i,ut,at,Math.min(l,s.bb().count()-1),a,o,rt-1)&&++a}s.k4().cq().c(a)}},nt:function(i,r,u,f,e,o,s){var h=r[0],c=r[1],a=new t.x(0,h-5,c-5,11,11),l;return!isNaN(h)&&!isNaN(c)&&u.tryAdd(a)?(i.p.add({__x:h,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),l=o.cq().item(e),n.ig.util.cast(t.$fl.$type,l.content()).item(this.bb().item(f)),l.aj(s),!0):!1},mb:function(i,r){var u=this,ot,ct,st,c,ht,e,f,it;if((t.$kb.mb.call(u,i,r),!(i.h.count()<=1))&&r.cn().c!=0){var b=r.bw(),l=r.bv(),s=u.ni(),o=u.nj(),k=new t.iu(b,l,s.isInverted()),h=new t.iu(b,l,o.isInverted());i.h.clear();i.p.clear();var ut=u.jw(),a=0,ft=n.ig.util.cast(t.$kr.$type,u.ni());if(ft==null||ft.sortedIndices().count()==u.bb().count()){var d=u.nv(s,b,l),et=function(n){return n},g=function(n){return u.valueColumn().item(n)},nt=r.cn().c;(u.ns()==null||u.ns().length!=u.valueColumn().count())&&nt==1&&(ot=u.splineType()==0?NaN:0,u.ni()!=null&&n.ig.util.cast(t.$kr.$type,u.ni())!==null&&n.ig.util.cast(t.$kr.$type,u.ni()).sortedIndices()!=null&&(ct=new t.mr(u.valueColumn(),n.ig.util.cast(t.$kr.$type,u.ni()).sortedIndices()),g=function(n){return ct.item(n)}),u.ns(t.$lb.c(u.valueColumn().count(),et,g,ot,ot)));var lt=r.cn().e,at=r.cn().d,vt=Math.ceil(l.width()/(lt-at)),yt=new t.mq;if(ft!=null){u.ny(i,b,l,s,o,r);return}for(st=r,st.c0(),c=0,ht=0,e=at;e<=lt;++e){if(f=null,nt==1){if(e>=u.valueColumn().count()-1){ut&&u.nt(i,i.h.__inner[i.h.count()-1],yt,Math.min(e*nt,u.bb().count()-1),a,r,c-1)&&++a;break}var tt=et(e),pt=g(e),wt=et(e+1),kt=g(e+1),v=wt-tt,dt=u.ns()[e],gt=u.ns()[e+1],ni=s.getScaledValue(tt,k)+d,bt=o.getScaledValue(pt,h);for(i.h.add(function(){var n=[];return n.add(ni),n.add(bt),n.add(bt),n}()),c++,ht=c,it=1;it<vt;++it){var y=tt+v*it/vt,p=(wt-y)/v,w=(y-tt)/v,rt=p*pt+w*kt+((p*p*p-p)*dt+(w*w*w-w)*gt)*v*v/6;y=s.getScaledValue(y,k)+d;rt=o.getScaledValue(rt,h);i.h.add(function(){var n=[];return n.add(y),n.add(rt),n.add(rt),n}());c++}ut&&(f=r.cn().getBucket(e),f[0]=s.getScaledValue(f[0],k)+d,f[1]=o.getScaledValue(f[1],h),f[2]=o.getScaledValue(f[2],h))}else f=r.cn().getBucket(e),isNaN(f[0])||(f[0]=s.getScaledValue(f[0],k)+d,f[1]=o.getScaledValue(f[1],h),f[2]=o.getScaledValue(f[2],h),i.h.add(f),c++);ut&&u.nt(i,f,yt,Math.min(e*nt,u.bb().count()-1),a,r,ht-1)&&++a}st.c2();r.cq().c(a)}}},nu:function(n,t,i,r,u,f,e){var o=r-t,c=t+o*n,s=(r-c)/o,h=(c-t)/o;return s*i+h*u+((s*s*s-s)*f+(h*h*h-h)*e)*o*o/6},dd:function(n,t,i,r,u,f,e,o){var h=NaN,s;if(i>=0&&i<t.count()&&(h=t.item(i)),s=NaN,r>=0&&r<t.count()&&(s=t.item(r)),f==0)return s;if(u==t.count()-1||isNaN(s)&&e!=0&&n<=.5&&!o)return h;if(isNaN(h)&&e!=0&&n>=.5&&!o)return s;var a=u,v=f,y=h,p=s,c=NaN,l=NaN;return this.ns()!=null&&u>=0&&u<this.ns().length&&(c=this.ns()[u]),this.ns()!=null&&f>=0&&f<this.ns().length&&(l=this.ns()[f]),this.nu(n,a,y,v,p,c,l)},nv:function(n,t,i){var u=this.preferredCategoryMode(n),r;u==0&&n.categoryMode()!=0&&(u=1);r=0;switch(u){case 0:r=0;break;case 1:r=.5*n.getCategorySize(t,i);break;case 2:r=n.getGroupCenter(this.index(),t,i)}return n.isInverted()&&(r=-r),r},splineType:function(n){return arguments.length===1?(this.g(t.$mn.splineTypeProperty,n),n):this.c(t.$mn.splineTypeProperty)},nz:function(){this.ns(null)},hh:function(n,i,r,u){switch(i){case"ValueColumn":case"FastItemsSource":this.nz()}t.$kb.hh.call(this,n,i,r,u);switch(i){case"SplineType":this.nz();this.renderSeries(!1);this.gy()}},gj:function(n,i,r,u){this.nz();t.$kb.gj.call(this,n,i,r,u)},$type:new n.ig.Type("SplineSeriesBase",t.$kb.$type)},!0);n.ig.util.defType("SplineAreaSeries:vk","SplineSeriesBase",{au:function(){return new t.vj(this)},k5:function(){return 1},hc:function(n){t.$mn.hc.call(this,n);this.n1(n)},_n1:null,n1:function(n){return arguments.length===1?(this._n1=n,n):this._n1},init:function(){t.$mn.init.call(this);this.y(t.$vk.$type)},preferredCategoryMode:function(){return 0},gh:function(n,i){t.$mn.gh.call(this,n,i);var r=i;r.c5()},me:function(i,r){var u=this,e,s,h,p;t.$mn.me.call(u,i,r);var a=u.k4().cn().c,f=n.ig.util.cast(t.$vj.$type,r),o=i.h;u.k3.x(u,u.lm(),u.ni(),u.getCategoryItems.runOn(u),u.lw(r),u.lx(r));e=!1;s=u.k3.b();s!=null&&(e=!0);e&&(h=new t.iu(r.bw(),r.bv(),u.ni().isInverted()),u.ma(o,-1,u.valueColumn().count(),u.ni(),h,r.n()));var v=f.db(),y=f.dc(),c=f.de(),l=f.dg();u.k3.ae(v,!0,!1,!0,!0);u.k3.ae(y,!0,!1,!0,!0);u.k3.ae(c,!1,!0,!1,!1);u.k3.ae(l,!1,!0,!1,!1);c.__opacity=u.k3.i*u.actualAreaFillOpacity();l.__opacity=.5*u.k3.i*u.actualAreaFillOpacity();r.cr(i)&&(f.c6(i.h.count(),o,!0,a,u.resolution(),function(n){return u.m4(n,i.h.count(),r)},1),r.cu(i));p=u.ku()},$type:new n.ig.Type("SplineAreaSeries",t.$mn.$type)},!0);n.ig.util.defType("SplineSeries:vn","SplineSeriesBase",{au:function(){return new t.vo(this)},hc:function(n){t.$mn.hc.call(this,n);this.n1(n)},_n1:null,n1:function(n){return arguments.length===1?(this._n1=n,n):this._n1},init:function(){t.$mn.init.call(this);this.y(t.$vn.$type)},preferredCategoryMode:function(){return 0},gh:function(n,i){t.$mn.gh.call(this,n,i);var r=i;r.c5()},me:function(i,r){var e,o,s;t.$mn.me.call(this,i,r);var c=r,l=c.cn().c,f=n.ig.util.cast(t.$vo.$type,r),u=i.h;this.k3.x(this,this.lm(),this.ni(),this.getCategoryItems.runOn(this),this.lw(r),this.lx(r));e=!1;o=this.k3.b();o!=null&&(e=!0);e&&(s=new t.iu(r.bw(),r.bv(),this.ni().isInverted()),this.ma(u,-1,this.valueColumn().count(),this.ni(),s,r.n()));var a=f.db(),v=f.dc(),h=f.da();this.k3.ae(a,!0,!1,!0,!1);this.k3.ae(v,!0,!1,!0,!1);this.k3.ae(h,!1,!0,!1,!1);h.__opacity=.75*this.k3.i;r.cr(i)&&(f.c6(u.count(),u,!0,1,this.mn(u,u.count()-1,r.bv(),r.bw()),l,this.resolution()),r.cu(i))},$type:new n.ig.Type("SplineSeries",t.$mn.$type)},!0);n.ig.util.defType("SplineSeriesView:vo","SplineSeriesBaseView",{_c4:null,c4:function(n){return arguments.length===1?(this._c4=n,n):this._c4},init:function(n){this.de=new t.b6;this.dd=new t.b6;this.df=new t.b6;this.c9=new t.b6;this.c8=new t.b6;this.c7=new t.b6;t.$mo.init.call(this,n);this.c4(n)},de:null,dd:null,df:null,db:function(){return this.de},dc:function(){return this.df},da:function(){return this.dd},c5:function(){this.dd.ak(null);this.de.ak(null);this.df.ak(null);this.am()},c6:function(i,r,u,f,e,o,s){this.cw().mp().a(n.ig.util.cast(t.$kr.$type,this.cp().kt())!==null?!0:!1);this.cw().mp().l(this.de,this.dd,this.df,i,r,u,f,e,o,s);this.am()},c9:null,c8:null,c7:null,a7:function(){t.$mo.a7.call(this);this.c8.ak(this.de.ak());this.c9.ak(this.df.ak());this.c7.ak(this.dd.ak());var n=this.br();this.c8.__stroke=n;this.c8.z(this.d().thickness()+3);this.c9.__stroke=n;this.c9.z(this.d().thickness()+3);this.c7.__fill=n;this.c7.__opacity=1},a1:function(n,i){t.$mo.a1.call(this,n,i);n.c()&&(i?(n.q(this.c7),n.q(this.c8),n.q(this.c9)):(n.q(this.dd),n.q(this.de),n.q(this.df)))},ah:function(n){var i,r,u;t.$mo.ah.call(this,n);i=new t.me(1,"lowerShape",this.de);i.tags().add("Lower");i.tags().add("Main");r=new t.me(1,"upperShape",this.df);r.tags().add("Upper");u=new t.me(1,"translucentShape",this.dd);u.tags().add("Translucent");n.shapes().add(i);n.shapes().add(r);n.shapes().add(u)},$type:new n.ig.Type("SplineSeriesView",t.$mo.$type)},!0);n.ig.util.defType("StepAreaSeries:rl","HorizontalAnchoredCategorySeries",{au:function(){return new t.rm(this)},hc:function(n){t.$kb.hc.call(this,n);this.nq(n)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},init:function(){t.$kb.init.call(this);this.y(t.$rl.$type)},preferredCategoryMode:function(){return 1},gh:function(n,i){t.$kb.gh.call(this,n,i);var r=i;r.c4()},nr:function(t,i,r,u,f){return i?f?(t&1)==0||n.ig.intDivide(t,2)+1>=r.h.count()?r.h.__inner[n.ig.intDivide(t,2)][0]:r.h.__inner[n.ig.intDivide(t,2)+1][0]:r.h.__inner[n.ig.intDivide(t,2)][0]+((t&1)==1?-u:u):f?(t&1)==0||n.ig.intDivide(t,2)+1>=r.h.count()?r.h.__inner[n.ig.intDivide(t,2)][0]:r.h.__inner[n.ig.intDivide(t,2)+1][0]:r.h.__inner[n.ig.intDivide(t,2)][0]+((t&1)==0?-u:u)},k5:function(){return 1},me:function(i,r){var u=this,h,c,l,v,f,o,y,p,tt;t.$kb.me.call(u,i,r);var w=r.bw(),b=r.bv(),a=n.ig.util.cast(t.$kr.$type,u.ni())!=null,s=u.ni()!=null?.5*u.ni().getCategorySize(w,b):0;for(u.ni()!=null&&u.ni().isInverted()&&(s=-s),h=i.h.count()*2,c=new t.bh(n.ig.Array.prototype.$type,2,h),u.k3.x(u,u.lm(),u.ni(),u.getCategoryItems.runOn(u),u.lw(r),u.lx(r)),l=!1,v=u.k3.b(),v!=null&&(l=!0),f=0;f<h;f++)o=new Array(4),o[0]=u.nr(f,!1,i,s,a),o[1]=i.h.__inner[n.ig.intDivide(f,2)][1],o[2]=u.nr(f,!0,i,s,a),o[3]=i.h.__inner[n.ig.intDivide(f,2)][2],c.add(o);y=u.k4().cn().c;l&&(p=new t.iu(r.bw(),r.bv(),u.ni().isInverted()),u.ma(c,-1,u.valueColumn().count(),u.ni(),p,r.n()));var e=n.ig.util.cast(t.$rm.$type,r),k=e.df(),d=e.dh(),g=e.db(),nt=e.dd();u.k3.ae(k,!0,!1,!0,!0);u.k3.ae(d,!0,!1,!0,!0);u.k3.ae(g,!1,!0,!1,!1);u.k3.ae(nt,!1,!0,!1,!1);r.cr(i)&&(e.c5(h,c,!1,y,u.resolution(),function(n){return u.m4(n,2*i.h.count(),r)},1),r.cu(i));tt=u.ku();e.db().__opacity=u.actualAreaFillOpacity();e.dd().__opacity=.5*u.actualAreaFillOpacity()},currentCategoryMode:function(){return this.ni()!=null&&n.ig.util.cast(t.$kr.$type,this.ni())!==null?(this.ni().categoryMode(0),0):1},$type:new n.ig.Type("StepAreaSeries",t.$kb.$type,[t.$kd.$type])},!0);n.ig.util.defType("StepAreaSeriesView:rm","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){this.da=new t.b6;this.de=new t.b6;this.dc=new t.b6;this.dg=new t.b6;this.c6=new t.b6;this.c8=new t.b6;this.c7=new t.b6;this.c9=new t.b6;t.$kn.init.call(this,n);this.c3(n)},ao:function(){var n=this;t.$kn.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},da:null,de:null,dc:null,dg:null,db:function(){return this.da},df:function(){return this.de},dd:function(){return this.dc},dh:function(){return this.dg},c4:function(){this.da.ak(null);this.dc.ak(null);this.de.ak(null);this.dg.ak(null);this.am()},c5:function(i,r,u,f,e,o,s){this.cw().mp().a(n.ig.util.cast(t.$kr.$type,this.cp().kt())!==null?!0:!1);this.cw().mp().h(this.da,this.de,this.dc,this.dg,i,r,u,f,e,o,s);this.am()},c6:null,c8:null,c7:null,c9:null,a7:function(){t.$kn.a7.call(this);this.c6.ak(this.da.ak());this.c8.ak(this.de.ak());this.c7.ak(this.dc.ak());this.c9.ak(this.dg.ak());var n=this.br();this.c6.__fill=n;this.c6.__opacity=1;this.c7.__fill=n;this.c7.__opacity=1;this.c8.__stroke=n;this.c8.z(this.d().thickness()+3);this.c9.__stroke=n;this.c9.z(this.d().thickness()+3)},a1:function(n,i){t.$kn.a1.call(this,n,i);i?(n.q(this.c6),n.q(this.c7),n.q(this.c8),n.q(this.c9)):(n.q(this.da),n.q(this.dc),n.q(this.de),n.q(this.dg))},ah:function(n){var r,i,u,f;t.$kn.ah.call(this,n);r=new t.me(1,"lowerShape",this.de);r.tags().add("Lower");i=new t.me(1,"upperShape",this.dg);i.tags().add("Upper");i.tags().add("Main");u=new t.me(1,"translucentShape",this.da);u.tags().add("Translucent");f=new t.me(1,"fillShape",this.dc);f.tags().add("Fill");n.shapes().add(r);n.shapes().add(i);n.shapes().add(u);n.shapes().add(f)},$type:new n.ig.Type("StepAreaSeriesView",t.$kn.$type)},!0);n.ig.util.defType("StepLineSeries:rj","HorizontalAnchoredCategorySeries",{au:function(){return new t.rk(this)},hc:function(n){t.$kb.hc.call(this,n);this.nq(n)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},init:function(){t.$kb.init.call(this);this.y(t.$rj.$type)},onApplyTemplate:function(){t.$kb.onApplyTemplate.call(this)},preferredCategoryMode:function(){return 1},gh:function(n,i){t.$kb.gh.call(this,n,i);var r=i;r.c4()},nr:function(t,i,r,u,f,e){var o;return i?e?(o=(t&1)==0,o||n.ig.intDivide(t,2)+1<0)?r.h.__inner[n.ig.intDivide(t,2)][0]:r.h.count()==n.ig.intDivide(t,2)+1?r.h.__inner[n.ig.intDivide(t,2)][0]:r.h.__inner[n.ig.intDivide(t,2)+1][0]:(o=(t&1)==0,r.h.__inner[n.ig.intDivide(t,2)][0]+(o?u:-u)):e?(o=(t&1)==0,o||n.ig.intDivide(t,2)+1>=r.h.count())?r.h.__inner[n.ig.intDivide(t,2)][0]:r.h.count()==n.ig.intDivide(t,2)+1?r.h.__inner[n.ig.intDivide(t,2)][0]:r.h.__inner[n.ig.intDivide(t,2)+1][0]:(o=(t&1)==0,r.h.__inner[n.ig.intDivide(t,2)][0]+(o?-u:u))},me:function(i,r){var u,e,f,o,s,w,y,b,k;t.$kb.me.call(this,i,r);var g=r.bw(),nt=r.bv(),l=n.ig.util.cast(t.$kr.$type,this.ni())!=null,a=this.ni().isInverted(),h=0;this.ni()!=null&&(h=.5*this.ni().getCategorySize(g,nt));var p=i.h,c=2*p.count(),v=new t.bh(n.ig.Array.prototype.$type,2,c);if(this.ni().isInverted())for(f=0;f<c;f++)o=new Array(4),o[0]=this.nr(f,!0,i,h,a,l),o[1]=i.h.__inner[n.ig.intDivide(f,2)][1],o[2]=this.nr(f,!0,i,h,a,l),o[3]=i.h.__inner[n.ig.intDivide(f,2)][2],v.add(o);else for(u=0;u<c;u++)e=new Array(4),e[0]=this.nr(u,!1,i,h,a,l),e[1]=i.h.__inner[n.ig.intDivide(u,2)][1],e[2]=this.nr(u,!0,i,h,a,l),e[3]=i.h.__inner[n.ig.intDivide(u,2)][2],v.add(e);s=n.ig.util.cast(t.$rk.$type,r);w=s.cn().c;this.k3.x(this,this.lm(),this.ni(),this.getCategoryItems.runOn(this),this.lw(r),this.lx(r));y=!1;b=this.k3.b();b!=null&&(y=!0);y&&(k=new t.iu(r.bw(),r.bv(),this.ni().isInverted()),this.ma(p,-1,this.valueColumn().count(),this.ni(),k,r.n()));var tt=s.da(),it=s.db(),d=s.c9();this.k3.ae(tt,!0,!1,!0,!1);this.k3.ae(it,!0,!1,!0,!1);this.k3.ae(d,!1,!0,!1,!1);d.__opacity=.75*this.k3.i;r.cr(i)&&(s.c5(c,v,!1,1,this.mn(v,c-1,r.bv(),r.bw()),w,this.resolution()),r.cu(i))},currentCategoryMode:function(){return this.ni()!=null&&n.ig.util.cast(t.$kr.$type,this.ni())!==null?(this.ni().categoryMode(0),0):1},$type:new n.ig.Type("StepLineSeries",t.$kb.$type,[t.$kd.$type])},!0);n.ig.util.defType("StepLineSeriesView:rk","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){this.dd=new t.b6;this.dc=new t.b6;this.de=new t.b6;this.c8=new t.b6;this.c7=new t.b6;this.c6=new t.b6;t.$kn.init.call(this,n);this.c3(n)},dd:null,dc:null,de:null,da:function(){return this.dd},db:function(){return this.de},c9:function(){return this.dc},c4:function(){this.dc.ak(null);this.dd.ak(null);this.de.ak(null);this.am()},c5:function(i,r,u,f,e,o,s){this.cw().mp().a(n.ig.util.cast(t.$kr.$type,this.cp().kt())!==null?!0:!1);this.cw().mp().l(this.dd,this.dc,this.de,i,r,u,f,e,o,s);this.am()},c8:null,c7:null,c6:null,a7:function(){t.$kn.a7.call(this);this.c7.ak(this.dd.ak());this.c8.ak(this.de.ak());this.c6.ak(this.dc.ak());var n=this.br();this.c7.__stroke=n;this.c7.z(this.d().thickness()+3);this.c8.__stroke=n;this.c8.z(this.d().thickness()+3);this.c6.__fill=n;this.c6.__opacity=1},a1:function(n,i){t.$kn.a1.call(this,n,i);n.c()&&(i?(n.q(this.c6),n.q(this.c7),n.q(this.c8)):(n.q(this.dc),n.q(this.dd),n.q(this.de)))},ah:function(n){var i,r,u;t.$kn.ah.call(this,n);i=new t.me(1,"lowerShape",this.dd);i.tags().add("Lower");i.tags().add("Main");r=new t.me(1,"upperShape",this.de);r.tags().add("Upper");u=new t.me(1,"translucentShape",this.dc);u.tags().add("Translucent");n.shapes().add(i);n.shapes().add(r);n.shapes().add(u)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(1);this.d().shadowOffsetY(4);this.d().useSingleShadow(!1)},$type:new n.ig.Type("StepLineSeriesView",t.$kn.$type)},!0);n.ig.util.defType("WaterfallSeries:qz","HorizontalAnchoredCategorySeries",{au:function(){return new t.q0(this)},hc:function(n){t.$kb.hc.call(this,n);this.nq(n)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},init:function(){t.$kb.init.call(this);this.y(t.$qz.$type)},preferredCategoryMode:function(){return 2},negativeBrush:function(n){return arguments.length===1?(this.g(t.$qz.negativeBrushProperty,n),n):this.c(t.$qz.negativeBrushProperty)},radiusX:function(n){return arguments.length===1?(this.g(t.$qz.radiusXProperty,n),n):this.c(t.$qz.radiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$qz.radiusYProperty,n),n):this.c(t.$qz.radiusYProperty)},li:function(){return!0},hh:function(n,i,r,u){t.$kb.hh.call(this,n,i,r,u);switch(i){case"RadiusY":case"RadiusX":case"NegativeBrush":this.renderSeries(!1)}},k5:function(){return 1},gh:function(n,i){t.$kb.gh.call(this,n,i);this.nq().c4().c(0)},me:function(n,i){var v=i,s,it,f,e,rt,h;t.$kb.me.call(this,n,i);var nt=i.bw(),tt=i.bv(),c=this.ni().fy(nt,tt),ut=this.radiusX(),ft=this.radiusY(),l,a=this.mu(i),o=NaN,y=v.c4(),r,u=0;this.k3.x(this,this.lm(),this.ni(),this.getCategoryItems.runOn(this),this.lw(i),this.lx(i));this.k3.p=this.radiusX();this.k3.q=this.radiusY();this.k3.j=this.radiusX();this.k3.k=this.radiusY();s=!1;it=this.k3.b();it!=null&&(s=!0);var et=this.ni().isSorting(),p=this.valueColumn().count(),w=n.h,b=this.ni(),k=new t.iu(nt,tt,this.ni().isInverted()),d=this.actualBrush(),g=this.negativeBrush();for(n.h.count()>0&&(l=n.h.__inner[0][0]-.5*c,f=n.h.__inner[0][1],isNaN(f)?o=a:(f>a?(r=y.item(u),u++,v.c9(r,l,a),r.width(c),r.height(Math.abs(a-f)),this.k3.am=g,this.k3.ah=g,this.k3.f=!0,s&&this.ma(w,0,p,b,k,i.n()),this.k3.ae(r,!1,!1,!1,!1),r.ai(this.k3.j),r.aj(this.k3.k)):(r=y.item(u),u++,v.c9(r,l,f),r.width(c),r.height(Math.abs(f-a)),this.k3.am=d,this.k3.ah=d,this.k3.f=!1,s&&this.ma(w,0,p,b,k,i.n()),this.k3.ae(r,!1,!1,!1,!1),r.ai(this.k3.j),r.aj(this.k3.k)),o=f)),e=1;e<n.h.count();++e)rt=n.h.__inner[e],l=n.h.__inner[e][0]-.5*c,h=rt[1],isNaN(h)||(r=y.item(u),u++,v.c9(r,l,Math.min(o,h)),r.width(c),r.height(Math.abs(o-h)),this.k3.am=d,this.k3.ah=d,this.k3.f=!1,o>h?s&&this.ma(w,e,p,b,k,i.n()):(this.k3.am=g,this.k3.ah=g,this.k3.f=!0,s&&this.ma(w,e,p,b,k,i.n())),this.k3.ae(r,!1,!1,!1,!1),r.ai(this.k3.j),r.aj(this.k3.k),o=h);y.c(u);i.cu(n)},$type:new n.ig.Type("WaterfallSeries",t.$kb.$type)},!0);n.ig.util.defType("WaterfallSeriesView:q0","AnchoredCategorySeriesView",{ao:function(){var n=this;t.$kn.ao.call(n);n.c5(new t.bh(t.$b1.$type,0));n.n()||(n.d().resolution(4),n.c3().negativeBrush(function(){var n=new t.b3;return n.fill("#415460"),n}()),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.q),n.measure(t.$mx.j),n}()))},_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){var i=this;this.da=new t.b1;t.$kn.init.call(this,n);this.c3(n);this.c4(function(){var n=new t.ga(t.$b1.$type);return n.create(i.db.runOn(i)),n.activate(i.c6.runOn(i)),n.disactivate(i.c8.runOn(i)),n.destroy(i.c7.runOn(i)),n}())},db:function(){var n=new t.b1;return this.c5().add(n),n.__visibility=1,n},_c5:null,c5:function(n){return arguments.length===1?(this._c5=n,n):this._c5},c6:function(n){n.__visibility=0},c8:function(n){n.__visibility=1},c7:function(n){this.c5().remove(n)},c9:function(n,t,i){var r=!1;n.m()!=i&&(r=!0,n.m(i));n.l()!=t&&(r=!0,n.l(t));r&&this.am()},w:function(n){return this.c5().__inner[n]},da:null,v:function(n){var t=this.c5().__inner[n],i;return this.da.__visibility=t.__visibility,this.da.l(t.l()),this.da.m(t.m()),this.da.width(t.width()),this.da.height(t.height()),i=this.bs(n),this.da.__fill=i,this.da.__stroke=i,this.da.z(this.d().thickness()+3),this.da},a1:function(n,i){var f,r,u;if(t.$kn.a1.call(this,n,i),f=!1,n.c())for(r=0;r<this.c5().count();r++)u=this.u(r,i),this.a8(u,r,i),n.t(u)},_c4:null,c4:function(n){return arguments.length===1?(this._c4=n,n):this._c4},ah:function(n){var r=this,h,f,e,i;t.$kn.ah.call(r,n);for(var o=0,u=new t.bh(t.$b1.$type,0),s=r.c4().a().getEnumerator();s.moveNext();)h=s.current(),u.add(h);for(u.sort1(function(n,t){return n.l()<t.l()?-1:n.l()>t.l()?1:0}),f=u.getEnumerator();f.moveNext();)e=f.current(),i=new t.g6(1,"column"+o,e),i.tags().add("Main"),n.shapes().add(i),e.__fill==r.d().actualBrush()?i.tags().add("Positive"):i.tags().add("Negative");o++},$type:new n.ig.Type("WaterfallSeriesView",t.$kn.$type)},!0);n.ig.util.defType("MarkerTemplates:fz","Object",{init:function(){n.ig.$op.init.call(this)},n:function(n,i,r){var u,v,c,a;if(n.beginPath(),u=i.actualItemBrush(),v=i.outline(),u!=null)if(u._isGradient){var h=r.availableWidth/2,y=r.availableHeight/2,f=r.xPosition-h,e=r.yPosition-h;f+=r.renderOffsetX;e+=r.renderOffsetY;c=t.$dk.i(n,u,f,e,f+r.availableWidth,e+r.availableHeight,i.thickness(),!1);n.fillStyle=c}else n.fillStyle!=u.__fill&&(n.fillStyle=u.__fill);if(i.outline()!=null){if(i.outline()._isGradient){var l=r.availableWidth/2,p=r.availableHeight/2,o=r.xPosition-l,s=r.yPosition-l;o+=r.renderOffsetX;s+=r.renderOffsetY;a=t.$dk.i(n,i.outline(),o,s,o+r.availableWidth,s+r.availableHeight,i.thickness(),!0);n.strokeStyle=a}else n.strokeStyle!=i.outline().__fill&&(n.strokeStyle=i.outline().__fill);n.lineWidth=i.thickness()}},a:function(n,t){t.actualItemBrush()!=null&&n.fill();t.outline()!=null&&n.stroke();n.closePath()},b:function(n){n.isConstant=!0;n.width=8;n.height=8},d:function(n){var i=n.context,r=n.data,u;t.$fz.n(i,r,n);u=Math.min(n.availableWidth,n.availableHeight)/2;i.arc(n.xPosition,n.yPosition,u,0,3.14159265358979*2,!1);t.$fz.a(i,r)},m:function(n){var i=n.context,f=n.data;t.$fz.n(i,f,n);var o=n.availableHeight/2,e=n.availableWidth/2,r=n.xPosition-e,u=n.yPosition-o;i.moveTo(r,u);i.lineTo(r+e,u+n.availableHeight);i.lineTo(r+n.availableWidth,u+0);i.lineTo(r,u);t.$fz.a(i,f)},j:function(n){var i=n.context,f=n.data;t.$fz.n(i,f,n);var o=n.availableHeight/2,e=n.availableWidth/2,r=n.xPosition-e,u=n.yPosition-o;i.moveTo(r,u+n.availableHeight);i.lineTo(r+e,u+0);i.lineTo(r+n.availableWidth,u+n.availableHeight);i.lineTo(r,u+n.availableHeight);t.$fz.a(i,f)},k:function(n){var i=n.context,r=n.data;t.$fz.n(i,r,n);var u=n.availableHeight/2,f=n.availableWidth/2,e=n.xPosition-f,o=n.yPosition-u;i.rect(e,o,n.availableWidth,n.availableHeight);t.$fz.a(i,r)},c:function(n){var i=n.context,r=n.data;t.$fz.n(i,r,n);var u=n.availableHeight/2,f=n.availableWidth/2,e=n.xPosition-f,o=n.yPosition-u;i.rect(e|0,o|0,n.availableWidth,n.availableHeight);t.$fz.a(i,r)},e:function(n){var i=n.context,o=n.data;t.$fz.n(i,o,n);var f=n.availableHeight/2,e=n.availableWidth/2,r=n.xPosition-e,u=n.yPosition-f;i.moveTo(r+0,u+f);i.lineTo(r+e,u+n.availableHeight);i.lineTo(r+n.availableWidth,u+f);i.lineTo(r+e,u+0);i.lineTo(r+0,u+f);t.$fz.a(i,o)},h:function(n){var i=n.context,f=n.data;t.$fz.n(i,f,n);var e=n.availableHeight/2,o=n.availableWidth/2,r=n.xPosition-o,u=n.yPosition-e;i.moveTo(r+4/8*n.availableWidth,u+0);i.lineTo(r+.1956/8*n.availableWidth,u+2.764/8*n.availableHeight);i.lineTo(r+1.65/8*n.availableWidth,u+7.236/8*n.availableHeight);i.lineTo(r+6.35/8*n.availableWidth,u+7.236/8*n.availableHeight);i.lineTo(r+7.8044/8*n.availableWidth,u+2.764/8*n.availableHeight);i.lineTo(r+4/8*n.availableWidth,u+0);t.$fz.a(i,f)},f:function(n){var i=n.context,f=n.data;t.$fz.n(i,f,n);var e=n.availableHeight/2,o=n.availableWidth/2,r=n.xPosition-o,u=n.yPosition-e;i.moveTo(r+4/8*n.availableWidth,u+0);i.lineTo(r+.356/8*n.availableWidth,u+2/8*n.availableHeight);i.lineTo(r+.356/8*n.availableWidth,u+6/8*n.availableHeight);i.lineTo(r+4/8*n.availableWidth,u+n.availableHeight);i.lineTo(r+7.464/8*n.availableWidth,u+6/8*n.availableHeight);i.lineTo(r+7.464/8*n.availableWidth,u+2/8*n.availableHeight);i.lineTo(r+4/8*n.availableWidth,u+0);t.$fz.a(i,f)},l:function(n){var i=n.context,f=n.data;t.$fz.n(i,f,n);var e=n.availableHeight/2,o=n.availableWidth/2,r=n.xPosition-o,u=n.yPosition-e;i.moveTo(r+4/8*n.availableWidth,u+0);i.lineTo(r+2.5856/8*n.availableWidth,u+2.5856/8*n.availableHeight);i.lineTo(r+0*n.availableWidth,u+4/8*n.availableHeight);i.lineTo(r+2.5856/8*n.availableWidth,u+5.4144/8*n.availableHeight);i.lineTo(r+4/8*n.availableWidth,u+1*n.availableHeight);i.lineTo(r+5.4144/8*n.availableWidth,u+5.4144/8*n.availableHeight);i.lineTo(r+1*n.availableWidth,u+4/8*n.availableHeight);i.lineTo(r+5.4144/8*n.availableWidth,u+2.5856/8*n.availableHeight);i.lineTo(r+4/8*n.availableWidth,u+0);t.$fz.a(i,f)},i:function(n){var i=n.context,f=n.data;t.$fz.n(i,f,n);var e=n.availableHeight/2,o=n.availableWidth/2,r=n.xPosition-o,u=n.yPosition-e;i.moveTo(r+4/8*n.availableWidth,u+0);i.lineTo(r+2.8244/8*n.availableWidth,u+2.382/8*n.availableHeight);i.lineTo(r+.1956/8*n.availableWidth,u+2.764/8*n.availableHeight);i.lineTo(r+2.098/8*n.availableWidth,u+4.618/8*n.availableHeight);i.lineTo(r+1.6488/8*n.availableWidth,u+7.236/8*n.availableHeight);i.lineTo(r+4/8*n.availableWidth,u+6/8*n.availableHeight);i.lineTo(r+6.3512/8*n.availableWidth,u+7.236/8*n.availableHeight);i.lineTo(r+5.902/8*n.availableWidth,u+4.618/8*n.availableHeight);i.lineTo(r+7.8044/8*n.availableWidth,u+2.764/8*n.availableHeight);i.lineTo(r+5.1756/8*n.availableWidth,u+2.382/8*n.availableHeight);i.lineTo(r+4/8*n.availableWidth,u+0);t.$fz.a(i,f)},g:function(n){var i=n.context,f=n.data;t.$fz.n(i,f,n);var e=n.availableHeight/2,o=n.availableWidth/2,r=n.xPosition-o,u=n.yPosition-e;i.moveTo(r+4/8*n.availableWidth,u+0);i.lineTo(r+3/8*n.availableWidth,u+2.268/8*n.availableHeight);i.lineTo(r+.536/8*n.availableWidth,u+2/8*n.availableHeight);i.lineTo(r+2/8*n.availableWidth,u+4/8*n.availableHeight);i.lineTo(r+.536/8*n.availableWidth,u+6/8*n.availableHeight);i.lineTo(r+3/8*n.availableWidth,u+5.732/8*n.availableHeight);i.lineTo(r+4/8*n.availableWidth,u+1*n.availableHeight);i.lineTo(r+5/8*n.availableWidth,u+5.732/8*n.availableHeight);i.lineTo(r+7.464/8*n.availableWidth,u+6/8*n.availableHeight);i.lineTo(r+6/8*n.availableWidth,u+4/8*n.availableHeight);i.lineTo(r+7.464/8*n.availableWidth,u+2/8*n.availableHeight);i.lineTo(r+5/8*n.availableWidth,u+2.268/8*n.availableHeight);i.lineTo(r+4/8*n.availableWidth,u+0);t.$fz.a(i,f)},$type:new n.ig.Type("MarkerTemplates",n.ig.$ot)},!0);n.ig.util.defType("DataSourceManager:vp","Object",{c:null,b:null,a:null,d:null,init:function(){n.ig.$op.init.call(this);this.c=new t.f0(n.ig.$op.$type,n.ig.$op.$type,0);this.b=new t.f0(n.ig.$op.$type,n.ig.$op.$type,0);this.a=new t.f0(n.ig.$op.$type,n.ig.Number.prototype.$type,0);this.d=new t.f0(String,n.ig.$op.$type,0)},e:function(n,t){var i,r;this.c.containsKey(n)&&this.f(n);this.c.add(n,t);i=t.dataView();this.b.containsKey(i)&&this.b.remove(i);this.b.add(i,t);r=t.id;this.d.containsKey(r)&&this.d.remove(r);this.d.add(r,t);this.a.containsKey(t)?this.a.item(t,this.a.item(t)+1):this.a.add(t,1);n.itemsSource(i)},f:function(n){var i=target_.itemsSource(),t,r;(this.c.remove(n),this.b.containsKey(i))&&(t=this.b.item(i),this.a.item(t,this.a.item(t)-1),this.a.item(t)==0&&(this.a.remove(t),this.b.remove(i),r=t.id,this.d.remove(r)))},$type:new n.ig.Type("DataSourceManager",n.ig.$ot)},!0);n.ig.util.defType("PieChartBase:my","Control",{an:function(){return new t.mz(this)},dq:function(n){this.ao(n)},_ao:null,ao:function(n){return arguments.length===1?(this._ao=n,n):this._ao},init:function(){var i=this,r;this.a3=!1;this.a6=!1;this.a5=!1;this.a7=!1;this.a4=!1;this.af=new t.nh;this.ag=new t.nh;this.b5=null;t.$ak.init.call(this);this.fc(t.$x.empty());r=this.an();this.dq(r);r.ap();this.y(t.$my.$type);this.be(new t.bh(n.ig.Number.prototype.$type,0));this.bd(new t.bh(n.ig.Number.prototype.$type,0));this.bf(new t.bh(n.ig.$op.$type,0));this.aq=function(n,t){i.du(n,t.propertyName(),t.oldValue(),t.newValue())};this.bi=function(){i.d1();i.d0()};this.bj=function(){i.allowSliceExplosion()&&(i.dt(),i.ds(),i.d1(),i.dz())};this.bk=function(n,t){i.d3(t)};this.b1=function(n,t){i.da(t.action(),t.position(),t.count(),t.propertyName())};this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,this.aq);this.selectedSlices().collectionChanged=n.ig.Delegate.prototype.combine(this.selectedSlices().collectionChanged,this.bk);this.a7=!0;this.explodedSlices().collectionChanged=n.ig.Delegate.prototype.combine(this.explodedSlices().collectionChanged,this.bj);this.a4=!0;this.a2=function(){var n=new t.ga(t.$m5.$type);return n.create(i.ao().f.runOn(i.ao())),n.activate(i.ao().ay.runOn(i.ao())),n.disactivate(i.ao().a0.runOn(i.ao())),n.destroy(i.ao().az.runOn(i.ao())),n}();this.a1=function(){var n=new t.ga(t.$m7.$type);return n.create(i.ao().c.runOn(i.ao())),n.activate(i.ao().ah.runOn(i.ao())),n.disactivate(i.ao().aj.runOn(i.ao())),n.destroy(i.ao().ai.runOn(i.ao())),n}()},a3:!1,a6:!1,a5:!1,a7:!1,a4:!1,aq:null,bi:null,bk:null,bj:null,b1:null,au:function(n){return arguments.length===1?(this.g(t.$my.eh,n),n):this.c(t.$my.eh)},av:null,ax:function(n){if(arguments.length===1){if(this.av!=n){var t=this.av;this.av=n;this.dw("ValueColumn",t,this.av)}return n}return this.av},_bw:0,bw:function(n){return arguments.length===1?(this._bw=n,n):this._bw},_b0:0,b0:function(n){return arguments.length===1?(this._b0=n,n):this._b0},_be:null,be:function(n){return arguments.length===1?(this._be=n,n):this._be},_bd:null,bd:function(n){return arguments.length===1?(this._bd=n,n):this._bd},_bf:null,bf:function(n){return arguments.length===1?(this._bf=n,n):this._bf},_bn:0,bn:function(n){return arguments.length===1?(this._bn=n,n):this._bn},_bg:null,bg:function(n){return arguments.length===1?(this._bg=n,n):this._bg},bo:function(){return this.innerExtent()},itemsSource:function(n){return arguments.length===1?(this.g(t.$my.itemsSourceProperty,n),n):this.c(t.$my.itemsSourceProperty)},innerExtent:function(n){if(arguments.length===1){var i=n;return(isNaN(n)||Number.isInfinity(n))&&(i=0),n<0&&(i=0),n>100&&(i=100),this.g(t.$my.innerExtentProperty,i),n}return this.c(t.$my.innerExtentProperty)},valueMemberPath:function(n){return arguments.length===1?(this.g(t.$my.valueMemberPathProperty,n),n):this.c(t.$my.valueMemberPathProperty)},labelMemberPath:function(n){return arguments.length===1?(this.g(t.$my.labelMemberPathProperty,n),n):this.c(t.$my.labelMemberPathProperty)},ay:null,az:function(n){if(arguments.length===1){if(this.ay!=n){var t=this.az();this.ay=n;this.dw("LabelColumn",t,this.az())}return n}return this.ay},labelsPosition:function(n){return arguments.length===1?(this.g(t.$my.labelsPositionProperty,n),n):this.c(t.$my.labelsPositionProperty)},leaderLineVisibility:function(n){return arguments.length===1?(this.g(t.$my.leaderLineVisibilityProperty,n),n):this.c(t.$my.leaderLineVisibilityProperty)},leaderLineStyle:function(n){return arguments.length===1?(this.g(t.$my.leaderLineStyleProperty,n),n):this.c(t.$my.leaderLineStyleProperty)},leaderLineType:function(n){return arguments.length===1?(this.g(t.$my.leaderLineTypeProperty,n),n):this.c(t.$my.leaderLineTypeProperty)},leaderLineMargin:function(n){return arguments.length===1?(this.g(t.$my.leaderLineMarginProperty,n),n):this.c(t.$my.leaderLineMarginProperty)},toolTip:function(n){return arguments.length===1?(this.g(t.$my.toolTipProperty,n),n):this.c(t.$my.toolTipProperty)},othersCategoryThreshold:function(n){return arguments.length===1?(this.g(t.$my.othersCategoryThresholdProperty,n),n):this.c(t.$my.othersCategoryThresholdProperty)},othersCategoryType:function(n){return arguments.length===1?(this.g(t.$my.othersCategoryTypeProperty,n),n):this.c(t.$my.othersCategoryTypeProperty)},othersCategoryText:function(n){return arguments.length===1?(this.g(t.$my.othersCategoryTextProperty,n),n):this.c(t.$my.othersCategoryTextProperty)},explodedRadius:function(n){return arguments.length===1?(this.g(t.$my.explodedRadiusProperty,n),n):this.c(t.$my.explodedRadiusProperty)},bl:function(){var n=this.explodedRadius();return isNaN(n)||Number.isInfinity(n)||n<0?0:n>1?1:n},radiusFactor:function(n){return arguments.length===1?(this.g(t.$my.radiusFactorProperty,n),n):this.c(t.$my.radiusFactorProperty)},bm:function(){var n=this.radiusFactor();return isNaN(n)||Number.isInfinity(n)||n<0?0:n>1?1:n},allowSliceSelection:function(n){return arguments.length===1?(this.g(t.$my.allowSliceSelectionProperty,n),n):this.c(t.$my.allowSliceSelectionProperty)},allowSliceExplosion:function(n){return arguments.length===1?(this.g(t.$my.allowSliceExplosionProperty,n),n):this.c(t.$my.allowSliceExplosionProperty)},explodedSlices:function(t){return arguments.length===1?(this.af.collectionChanged=n.ig.Delegate.prototype.remove(this.af.collectionChanged,this.bj),this.a4=!1,this.af=t,this.af!=null&&(this.af.collectionChanged=n.ig.Delegate.prototype.combine(this.af.collectionChanged,this.bj),this.a4=!0),this.allowSliceExplosion()&&(this.dt(),this.ds(),this.d1(),this.dz()),t):this.af},af:null,legend:function(n){return arguments.length===1?(this.g(t.$my.legendProperty,n),n):this.c(t.$my.legendProperty)},labelExtent:function(n){return arguments.length===1?(this.g(t.$my.labelExtentProperty,n),n):this.c(t.$my.labelExtentProperty)},startAngle:function(n){return arguments.length===1?(this.g(t.$my.startAngleProperty,n),n):this.c(t.$my.startAngleProperty)},sweepDirection:function(n){return arguments.length===1?(this.g(t.$my.sweepDirectionProperty,n),n):this.c(t.$my.sweepDirectionProperty)},selectedSlices:function(t){return arguments.length===1?(this.ag.collectionChanged=n.ig.Delegate.prototype.remove(this.ag.collectionChanged,this.bk),this.a7=!1,this.ag=t,this.ag!=null&&(this.ag.collectionChanged=n.ig.Delegate.prototype.combine(this.ag.collectionChanged,this.bk),this.a7=!0),this.allowSliceSelection()&&(this.dt(),this.ds(),this.d1(),this.dz(),this.d0()),t):this.ag},ag:null,othersCategoryStyle:function(n){return arguments.length===1?(this.g(t.$my.othersCategoryStyleProperty,n),n):this.c(t.$my.othersCategoryStyleProperty)},selectedStyle:function(n){return arguments.length===1?(this.g(t.$my.selectedStyleProperty,n),n):this.c(t.$my.selectedStyleProperty)},toolTipStyle:function(n){return arguments.length===1?(this.g(t.$my.toolTipStyleProperty,n),n):this.c(t.$my.toolTipStyleProperty)},brushes:function(n){return arguments.length===1?(this.g(t.$my.brushesProperty,n),n):this.c(t.$my.brushesProperty)},outlines:function(n){return arguments.length===1?(this.g(t.$my.outlinesProperty,n),n):this.c(t.$my.outlinesProperty)},legendItemTemplate:function(n){return arguments.length===1?(this.g(t.$my.legendItemTemplateProperty,n),n):this.c(t.$my.legendItemTemplateProperty)},legendItemBadgeTemplate:function(n){return arguments.length===1?(this.g(t.$my.legendItemBadgeTemplateProperty,n),n):this.c(t.$my.legendItemBadgeTemplateProperty)},labelTemplate:function(i){return arguments.length===1?(this.g(t.$my.labelTemplateProperty,i),i):n.ig.util.cast(t.$cg.$type,this.c(t.$my.labelTemplateProperty))},isSurfaceInteractionDisabled:function(n){return arguments.length===1?(this.g(t.$my.isSurfaceInteractionDisabledProperty,n),n):this.c(t.$my.isSurfaceInteractionDisabledProperty)},formatLabel:function(n){return arguments.length===1?(this.g(t.$my.formatLabelProperty,n),n):this.c(t.$my.formatLabelProperty)},sliceClick:null,dp:function(n,t){this.sliceClick!=null&&this.sliceClick(n,t)},a2:null,a1:null,dc:function(n,t){!this.explodedSlices().contains(n.az())&&t&&this.explodedSlices().add(n.az());this.explodedSlices().contains(n.az())&&!t&&this.explodedSlices().remove(n.az())},d4:function(n,t){!this.selectedSlices().contains(n.az())&&t&&this.selectedSlices().add(n.az());this.selectedSlices().contains(n.az())&&!t&&this.selectedSlices().remove(n.az())},d5:function(n){this.ao().aw(n)},b3:function(n){return this.ao().u(n)},fb:function(){return new t.x(0,0,0,0,0)},ba:function(n){var u=n.ad(),e,i;if(u==null)return!1;var r=u.a3(),f=this.sweepDirection()==1?u.ax():u.ar(),o=this.sweepDirection()==1?u.ar():u.ax(),s=!1,h=!1,c=t.$ec.h(r,f,u.aw()),l=t.$ec.h(r,o,u.aw());return(f=t.$my.bq(c.__x,r.__x,c.__y,r.__y),o=t.$my.bq(l.__x,r.__x,l.__y,r.__y),this.bb(u)&&(h=!0),e=t.$es.j(n.ak().right()-r.__x,n.ak().top()-r.__y),e>u.aw())?!1:(e=t.$es.j(n.ak().right()-r.__x,n.ak().bottom()-r.__y),e>u.aw())?!1:(e=t.$es.j(n.ak().left()-r.__x,n.ak().top()-r.__y),e>u.aw())?!1:(e=t.$es.j(n.ak().left()-r.__x,n.ak().bottom()-r.__y),e>u.aw())?!1:h?!0:(f>o&&(f=f-360,s=!0),i=t.$my.bq(n.ak().right(),r.__x,n.ak().top(),r.__y),s&&i>180&&i<360&&(i=i-360),i<f||i>o)?!1:(i=t.$my.bq(n.ak().right(),r.__x,n.ak().bottom(),r.__y),s&&i>180&&i<360&&(i=i-360),i<f||i>o)?!1:(i=t.$my.bq(n.ak().left(),r.__x,n.ak().top(),r.__y),s&&i>180&&i<360&&(i=i-360),i<f||i>o)?!1:(i=t.$my.bq(n.ak().left(),r.__x,n.ak().bottom(),r.__y),s&&i>180&&i<360&&(i=i-360),i<f||i>o)?!1:!0},by:function(n){return Math.round(n*Math.pow(10,5))/Math.pow(10,5)},bb:function(n){return t.$my.by(Math.abs(n.ar()-n.ax()))==360},bq:function(n,i,r,u){var e=t.$es.j(n-i,r-u),f=Math.asin((r-u)/e)*180/3.14159265358979;return n<i&&(f=180-f),n>i&&(f=360+f),f==360&&(f=0),t.$ec.e(f)},d8:function(n){for(var i,r,t=0;t<n.count();t++)for(i=t+1;i<n.count();i++)n.__inner[t].ak().top()>n.__inner[i].ak().top()&&(r=n.__inner[t],n.__inner[t]=n.__inner[i],n.__inner[i]=r)},d2:function(n){var o,ct,lt,k,d,y,s,p,g,h,f,c,w,tt,l,e,rt,r,i,kt,ut;if(n.count()!=0){var b=this.ao().bi().width(),ft=this.ao().bi().height(),a=n.count(),et=n.__inner[0].ad().aw(),v=n.__inner[0].ad().a3(),ot=!0,st=0,u=Number.POSITIVE_INFINITY,ht=Number.NEGATIVE_INFINITY;for(o=0;o<a-1;o++)ct=n.__inner[o],lt=n.__inner[o+1],ct.ak().intersectsWith(lt.ak())&&st++;for(k=0,d=n.getEnumerator();d.moveNext();)y=d.current(),u=Math.min(u,y.ak().height()),ht=Math.max(ht,y.ak().height()),k+=y.ak().height();if(k>ft&&(ot=!1),ot&&st>0){for(s=0;s<a-1;s++)for(p=s+1;p<a;p++)if(g=n.__inner[s],h=n.__inner[p],g.ak().intersectsWith(h.ak())){f=h.ak();f.y(Math.min(g.ak().bottom()+.01,ft-u));var at=this.labelExtent()+et,vt=Math.abs(v.__y-(f.y()+u/2)),nt=Math.sqrt(Math.abs(at*at-vt*vt)),yt=t.$ec.e(h.ae());yt>90&&yt<270&&(nt=(f.width()+nt)*-1);f.x(v.__x+nt);h.ak(f)}for(c=a-1;c>0;c--)for(w=c-1;w>=0;w--)if(tt=n.__inner[c],l=n.__inner[w],tt.ak().intersectsWith(l.ak())){e=l.ak();e.y(Math.max(tt.ak().top()-u-.01,0));var pt=this.labelExtent()+et,wt=Math.abs(v.__y-(e.y()+u/2)),it=Math.sqrt(Math.abs(pt*pt-wt*wt)),bt=t.$ec.e(l.ae());bt>90&&bt<270&&(it=(e.width()+it)*-1);e.x(v.__x+it);l.ak(e)}}for(rt=n.getEnumerator();rt.moveNext();)r=rt.current(),i=r.ak(),i.left()>b||i.right()<0?(r.__visibility=1,this.leaderLineType()==0?r.al().__visibility=1:r.am().__visibility=1):i.left()<0?(kt=Math.abs(i.x()),i.x(0),kt>i.width()&&i.width(0),r.ak(i)):i.right()>b&&(ut=i.right()-b,ut>i.width()?i.width(0):i.width(i.width()-ut),r.ak(i))}},da:function(){this.dy()},dy:function(){this.dr();this.dt();this.ds();this.d1();this.dz();this.d0();this.ao().bb()},dr:function(){var r,i,n,t,u,f;if((this.b0(0),this.bw(0),this.be().clear(),this.bd().clear(),this.bf().clear(),this.itemsSource()!=null&&this.au()!=null)&&this.ax()!=null&&this.ax().count()!=0){for(r=this.ax().getEnumerator();r.moveNext();)(i=r.current(),isNaN(i)||Number.isInfinity(i)||i<=0)||this.b0(this.b0()+i);for(n=0;n<this.ax().count();n++)(t=this.ax().item(n),isNaN(t)||Number.isInfinity(t)||t<=0)||(u=this.othersCategoryType()==1?t/this.b0():t,f=this.othersCategoryType()==1?this.othersCategoryThreshold()/100:this.othersCategoryThreshold(),u<=f?(this.bw(this.bw()+t),this.bd().add(n),this.bf().add(this.au().item(n))):this.be().add(n))}},dt:function(){var i,f,e,n;if(this.itemsSource()==null||this.au()==null){this.a2.c(0);return}var r=this.be().count(),o=this.bd().count()>0,s=t.$my.by(this.bn()),u=t.$my.by(this.bn());for(o&&r++,i=0;i<r;i++)f=!1,i==r-1&&o?(e=this.bw(),f=!0):e=this.ax().item(this.be().__inner[i]),this.sweepDirection()==1?u+=t.$my.by(Math.abs(e)*360/this.b0()):u-=t.$my.by(Math.abs(e)*360/this.b0()),n=this.a2.item(i),n.aq(!0),n.ax(s),n.ar(u),n.av(n.au(this.bo())),n.ao(f),n.as(this.bl()),n.az(i),n.dataContext(f?this.bf():this.au().item(this.be().__inner[i])),n.isExploded(this.explodedSlices().contains(i)),n.isSelected(this.selectedSlices().contains(i)),s=u,n.aq(!1);this.a2.c(r)},ds:function(){var i=this,o,r,h,e,u,v,c,y,l,a,p,f,s;if(i.itemsSource()==null||i.au()==null){i.a1.c(0);return}if(i.az()==null||i.az().count()==0||i.labelsPosition()==0){i.a1.c(0);return}for(o=i.be().count(),i.bd().count()>0&&o++,i.ao().ak(),r=0;r<o;r++){if(h=String.empty(),e=!1,r==o-1&&i.bd().count()>0)u=i.othersCategoryText(),e=!0,i.formatLabel()!=null&&(v=function(){var n=new t.m4;return n.series(i),n.item(e?i.bf():i.au().item(i.be().__inner[r])),n.itemLabel(u),n.percentValue(i.br(i.a2.item(r))),n.isOthersSlice(e),n}(),c=v,c=c.flatten(),u=i.formatLabel()(c)),null!=u&&(h=u.toString());else{if(u=i.az().item(i.be().__inner[r]),i.formatLabel()!=null&&(y=function(){var n=new t.m4;return n.series(i),n.item(e?i.bf():i.au().item(i.be().__inner[r])),n.itemLabel(u),n.percentValue(i.br(i.a2.item(r))),n.isOthersSlice(e),n}(),l=y,l=l.flatten(),a=i.formatLabel()(l),u=null==a?i.az().item(i.be().__inner[r]):a),p=u,p===undefined)throw new Error(n.ig.Chart.locale.invalidLabelBinding);null!=u&&(h=u.toString())}f=i.a1.item(r);s=i.a2.item(r);s.ag(f);f.ae(t.$ec.e((s.ax()+s.ar())/2));f.ad(s);f.af(function(){var n=new t.b9;return n.aa(h),n}());i.labelTemplate()==null&&(f.dataContext(e?i.bf():i.au().item(i.be().__inner[r])),f.ag(i.ao()));f.__visibility=0;f.ak(i.ao().bh(f))}i.a1.c(o)},_fc:null,fc:function(n){return arguments.length===1?(this._fc=n,n):this._fc},d1:function(){var r,i,e;if(this.itemsSource()!=null&&this.au()!=null){r=this.ao().bk();this.fc(new t.x(0,0,0,r.b(),r.a()));for(var o={__x:r.b()/2,__y:r.a()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u=Math.min(r.a()/2,r.b()/2)*this.bm(),f=this.a2.a().getEnumerator();f.moveNext();)i=f.current(),e=t.$ec.g(r.b(),r.a(),!0,(i.ax()+i.ar())/2,u*this.bl()),i.aq(!0),i.av(i.au(this.bo())),i.aw(u),i.as(this.bl()),i.a4(o),i.a2(e),this.d5(i),i.aq(!1);this.ao().bb()}},dz:function(){var ot=this.ao().bi().width(),y=this.ao().bi().height(),n,u,et,c,w,b,k,l,d,f,g,a,nt,v,tt,e,it,o;if(y!=0&&ot!=0){if(this.a1.a().count()==0||this.labelsPosition()==0){this.a1.c(0);return}for(var s=new t.bh(t.$m7.$type,0),h=new t.bh(t.$m7.$type,0),rt=new t.bh(t.$m7.$type,0),ut=new t.bh(t.$m7.$type,0),ft=this.a1.a().getEnumerator();ft.moveNext();)if(n=ft.current(),u=n.ad(),u!=null){var p=u.a3(),i=n.ak().width(),r=n.ak().height();if((this.labelsPosition()==1||this.labelsPosition()==4)&&(et=u.aw()*u.av()/100,c=t.$ec.h(p,n.ae(),u.aw()-(u.aw()-et)/2),n.ak(new t.x(0,c.__x-i/2,c.__y-r/2,i,r)),w=this.ba(n,c),w||this.labelsPosition()==1)){rt.add(n);n.ad().af().leaderLineType()==0?n.al().__visibility=1:n.am().__visibility=1;n.__visibility=w||this.labelsPosition()!=1?0:1;continue}if((this.labelsPosition()==2||this.labelsPosition()==4)&&(b=5,k=n.ae()*3.14159265358979/180,b+=Math.abs(n.ak().width()/2*Math.cos(k))+Math.abs(n.ak().height()/2*Math.sin(k)),l=t.$ec.h(p,n.ae(),u.aw()-b),n.ak(new t.x(0,l.__x-i/2,l.__y-r/2,i,r)),d=this.ba(n,l),d||this.labelsPosition()==2)){ut.add(n);n.ad().af().leaderLineType()==0?n.al().__visibility=1:n.am().__visibility=1;n.__visibility=d||this.labelsPosition()!=2?0:1;continue}f=t.$ec.h(p,n.ae(),u.aw()+this.labelExtent());n.__visibility=0;n.ah();n.ae()<90&&n.ae()>=0?(n.ak(new t.x(0,f.__x,f.__y,i,r)),s.add(n)):n.ae()<180&&n.ae()>=90?(n.ak(new t.x(0,f.__x-i,f.__y,i,r)),h.add(n)):n.ae()<270&&n.ae()>=180?(n.ak(new t.x(0,f.__x-i,f.__y-r,i,r)),h.add(n)):(n.ak(new t.x(0,f.__x,f.__y-r,i,r)),s.add(n));n.ak().y()<0&&n.ak(new t.x(0,n.ak().x(),0,n.ak().width(),n.ak().height()));n.ak().bottom()>y&&n.ak(new t.x(0,n.ak().x(),y-n.ak().height(),n.ak().width(),n.ak().height()))}for(t.$my.d8(s),this.d2(s),t.$my.d8(h),this.d2(h),g=rt.getEnumerator();g.moveNext();)a=g.current(),this.ao().a6(a,a.ak().x(),a.ak().y());for(nt=ut.getEnumerator();nt.moveNext();)v=nt.current(),this.ao().a6(v,v.ak().x(),v.ak().y());for(tt=s.getEnumerator();tt.moveNext();)e=tt.current(),this.ao().a6(e,e.ak().x(),e.ak().y()),e.ad().af().leaderLineType()==0?e.ai():e.aj();for(it=h.getEnumerator();it.moveNext();)o=it.current(),this.ao().a6(o,o.ak().x(),o.ak().y()),o.ad().af().leaderLineType()==0?o.ai():o.aj();this.ao().bb()}},d0:function(){var i=this,u=n.ig.util.cast(t.$nw.$type,i.legend()),f;if(u!=null){if(i.az()==null||i.az().count()==0){u.a9(i);return}for(i.bg(new t.bh(t.$am.$type,0)),f=i.a2.a().getEnumerator();f.moveNext();){var r=f.current(),e=new t.cf,o=i.b3(r),s=r.bx();e.content(function(){var n=new t.m4;return n.series(i),n.slice(r),n.item(r.dataContext()),n.itemBrush(s),n.itemLabel(o!=null?o.toString():null),n.percentValue(i.br(r)),n.isOthersSlice(r.ao()),n}());i.legendItemTemplate()!=null&&e.ae(i.legendItemTemplate());i.bg().add(e)}u.aw(i.bg(),i)}},exportVisualData:function(){var n=new t.m1,i,r;for(n.viewport(this.fc()),this.ao().ae(n),i=0;i<this.a2.c();i++)r=this.a2.item(i).aj(),n.slices().add(r),this.a2.item(i).ao()&&n.othersSlice(this.a2.item(i).aj());return n.others(this.bf()),n.name(this.name()),n},aw:function(n){return this.au().registerColumn(n,null,!1)},a0:function(n){return this.au().registerColumnObject(n,null,!1)},du:function(i,r,u,f){var e=this,o,s,h,c,l;switch(r){case"ItemsSource":e.au(function(){var n=new t.m9;return n.itemsSource(f),n}());break;case"FastItemsSource":n.ig.util.cast(t.$m9.$type,u)!=null&&(n.ig.util.cast(t.$m9.$type,u).event=n.ig.Delegate.prototype.remove(n.ig.util.cast(t.$m9.$type,u).event,e.b1),e.a5=!1,n.ig.util.cast(t.$m9.$type,u).deregisterColumn(e.ax()),n.ig.util.cast(t.$m9.$type,u).deregisterColumn(e.az()),e.ax(null),e.az(null));n.ig.util.cast(t.$m9.$type,f)!=null&&(n.ig.util.cast(t.$m9.$type,f).event=n.ig.Delegate.prototype.combine(n.ig.util.cast(t.$m9.$type,f).event,e.b1),e.a5=!0,e.ax(e.aw(e.valueMemberPath())),e.az(e.a0(e.labelMemberPath())));e.dy();break;case"ValueMemberPath":e.au()!=null&&(e.au().deregisterColumn(e.ax()),e.ax(e.aw(e.valueMemberPath())));break;case"FormatLabel":case"LabelMemberPath":e.au()!=null&&(e.au().deregisterColumn(e.az()),e.az(e.a0(e.labelMemberPath())),e.ds(),e.dz(),e.d0());break;case"StartAngle":e.bn(f);e.dt();e.ds();e.d1();e.dz();break;case"ToolTip":e.ao().a9(e.toolTip());break;case"Legend":o=n.ig.util.cast(t.$nw.$type,u);o!=null&&o.a9(e);e.d0();break;case"LegendItemBadgeTemplate":case"LegendItemTemplate":e.d0();break;case"RadiusFactor":case"ExplodedRadius":case"SweepDirection":e.dt();e.ds();e.d1();e.dz();break;case"OthersCategoryStyle":case"SelectedStyle":e.d1();e.d0();break;case"Brushes":u!=null&&(s=u,s.collectionChanged=n.ig.Delegate.prototype.remove(s.collectionChanged,e.bi),e.a3=!1);f!=null&&(h=f,h.collectionChanged=n.ig.Delegate.prototype.combine(h.collectionChanged,e.bi),e.a3=!0);e.d1();e.d0();break;case"Outlines":u!=null&&(c=u,c.collectionChanged=n.ig.Delegate.prototype.remove(c.collectionChanged,e.bi),e.a6=!1);f!=null&&(l=f,l.collectionChanged=n.ig.Delegate.prototype.combine(l.collectionChanged,e.bi),e.a6=!0);e.d1();e.d0();break;case"ValueColumn":case"OthersCategoryThreshold":case"OthersCategoryType":case"AllowSliceExplosion":case"AllowSliceSelection":e.dy();break;case"LabelsPosition":e.ds();e.dz();e.ao().bb();break;case"LabelExtent":e.ds();e.dz();break;case"OthersCategoryText":e.ds();e.dz();e.d0();break;case"LeaderLineVisibility":e.dz();break;case"LeaderLineStyle":e.dz();break;case"TextStyle":e.ao().a1();break;case"LabelTemplate":e.ds();e.dz();break;case"LeaderLineType":case"LeaderLineMargin":e.a1.d(e.ao().a5.runOn(e.ao()));e.dz();break;case"IsSurfaceInteractionDisabled":e.ao().aq();break;case"InnerExtent":e.dy()}},d3:function(){this.allowSliceSelection()&&(this.dt(),this.d1(),this.d0())},propertyChanged:null,propertyUpdated:null,dw:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},d7:function(n,i){var r=new t.nv(n);this.dp(this,r);this.ao().a7(n,i)},de:function(n,t){this.ao().a7(n,t)},dg:function(n,t){this.ao().a7(n,t)},df:function(){this.ao().ac()},dn:function(){this.dy()},provideContainer:function(n){this.ao().an(n)},onContainerResized:function(n,t){this.ao().ao(n,t)},notifyContainerResized:function(){this.ao().am()},getContainerRect:function(){return this.ao().bg()},getContainerOffsets:function(){return this.ao().bj()},destroy:function(){this.removeWidgetLevelDataSource();this.ao().an(null)},flush:function(){this.ao().af()},b5:null,textStyle:function(n){if(arguments.length===1){var t=this.b5;return this.b5=n,this.dw("TextStyle",t,n),n}return this.b5},br:function(n){return n==null||this.ax()==null||this.be()==null?NaN:n.ao()?this.bw()/this.b0()*100:this.ax().item(this.be().__inner[n.az()])/this.b0()*100},notifySetItem:function(n,i,r,u){if(n.dataView&&n.dataSource&&(n=n.dataView()),n==this.itemsSource()){var f=this.au();f!=null&&f.handleCollectionChanged(new t.e7(2,2,u,r,i))}},notifyClearItems:function(n){if(n.dataView&&n.dataSource&&(n=n.dataView()),n==this.itemsSource()){var i=this.au();i.handleCollectionChanged(new t.e7(0,4))}},notifyInsertItem:function(n,i,r){if(n.dataView&&n.dataSource&&(n=n.dataView()),n==this.itemsSource()){var u=this.au();u!=null&&u.handleCollectionChanged(new t.e7(1,0,r,i))}},notifyRemoveItem:function(n,i,r){if(n.dataView&&n.dataSource&&(n=n.dataView()),n==this.itemsSource()){var u=this.au();u!=null&&u.handleCollectionChanged(new t.e7(1,1,r,i))}},setWidgetLevelDataSource:function(n){n.dataView&&n.dataSource&&(n=n.dataView());this.itemsSource(n)},removeWidgetLevelDataSource:function(){this.itemsSource(null)},styleUpdated:function(){this.ao().a1()},$type:new n.ig.Type("PieChartBase",t.$ak.$type,[t.$a8.$type])},!0);n.ig.util.defType("Arc:vq","PieChartBase",{an:function(){return new t.vr(this)},dq:function(n){t.$my.dq.call(this,n);this.fk(n)},_fk:null,fk:function(n){return arguments.length===1?(this._fk=n,n):this._fk},init:function(){this.fl=null;t.$my.init.call(this);this.y(t.$vq.$type)},fl:null,ring:function(n){if(arguments.length===1){var t=this.fl;return this.fl=n,this.fk().bn(t,this.fl),n}return this.fl},_fj:null,fj:function(n){return arguments.length===1?(this._fj=n,n):this._fj},endAngle:function(n){return arguments.length===1?(this.g(t.$vq.endAngleProperty,n),n):this.c(t.$vq.endAngleProperty)},_fo:0,fo:function(n){return arguments.length===1?(this._fo=n,n):this._fo},fp:function(){return this.ring()!=null?this.ring().i():0},dp:function(n,i){t.$my.dp.call(this,n,i);this.ring()!=null&&this.ring().c().chart().bd(n,i)},dc:function(n,i){if(this.ring()!=null&&this.ring().d()!=null&&this.ring().d().allowSliceExplosion()){t.$my.dc.call(this,n,i);var r=this.fn(n);this.ring().d().a8(r,i)}},d4:function(n,i){if(this.ring()!=null&&this.ring().d()!=null&&this.ring().d().allowSliceSelection()){t.$my.d4.call(this,n,i);var r=this.fn(n);this.ring().d().bo(r,i)}},fn:function(n){for(var i=this.fj().e().getEnumerator(),t;i.moveNext();)if(t=i.current(),t.b()==n)return t;return null},d3:function(){this.allowSliceSelection()&&(this.dt(),this.d1(),this.d0())},dt:function(){var i,f,e,n;if(this.itemsSource()==null||this.au()==null){this.a2.c(0);return}var r=this.be().count(),o=this.bd().count()>0,s=t.$my.by(this.bn()),u=t.$my.by(this.bn());for(o&&r++,i=0;i<r;i++)f=!1,i==r-1&&o?(e=this.bw(),f=!0):e=this.ax().item(this.be().__inner[i]),this.sweepDirection()==1?u+=t.$my.by(Math.abs(e)*this.endAngle()/this.b0()):u-=t.$my.by(Math.abs(e)*this.endAngle()/this.b0()),n=this.a2.item(i),n.__visibility=this.bo()>=100?1:0,n.aq(!0),n.ax(s),n.ar(u),n.av(n.au(this.bo())),n.ao(f),n.as(this.bl()),n.az(i),n.dataContext(f?this.bf():this.au().item(this.be().__inner[i])),n.isExploded(this.explodedSlices().contains(i)),n.isSelected(this.selectedSlices().contains(i)),s=u,n.aq(!1),this.fj()!=null&&this.fj().e().count()>i&&this.fj().e().__inner[i]!=null&&this.fj().e().__inner[i].b(n);this.a2.c(r)},d0:function(){var i=this,u=n.ig.util.cast(t.$nw.$type,i.legend()),f;if(u!=null){if(i.az()==null||i.az().count()==0){u.a9(i);return}for(i.bg(new t.bh(t.$am.$type,0)),f=i.a2.a().getEnumerator();f.moveNext();){var r=f.current(),e=new t.cf,o=i.b3(r),s=r.bx();e.content(function(){var n=new t.m4;return n.series(i),n.slice(r),n.item(r.dataContext()),n.itemBrush(s),n.itemLabel(o!=null?o.toString():null),n.percentValue(i.br(r)),n.isOthersSlice(r.ao()),n}());i.legendItemTemplate()!=null&&e.ae(i.legendItemTemplate());i.bg().add(e)}u.ba(i.bg(),i)}},du:function(n,i,r,u){t.$my.du.call(this,n,i,r,u);switch(i){case"EndAngle":this.fo(u);this.dt();this.ds();this.d1();this.dz()}},getContainer:function(){return this.ao().t()},$type:new n.ig.Type("Arc",t.$my.$type)},!0);n.ig.util.defType("ArcItem:v0","Object",{init:function(){n.ig.$op.init.call(this);this.i(0);this.g(360);this.e(new t.bh(t.$vz.$type,0))},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_g:0,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},m:function(n){var i=this,o=i.d()==null?n:i.d().e(),s=i.d()==null?360:i.d().d(),f=function(){var n=new t.vq;return n.othersCategoryThreshold(i.h()),n.itemsSource(i.f()),n.valueMemberPath(i.l()),n.startAngle(o),n.endAngle(s),n}(),e,u,r;for(f.dr(),f.dt(),e=new t.bh(t.$vz.$type,0),u=0;u<f.a2.c();u++)r=f.a2.item(u),e.add(function(){var n=new t.vz;return n.e(r.ax()),n.d(r.ar()-r.ax()),n.f(u),n.a(i),n.g(r.dataContext()),n.c(r.ao()),n}());i.e(e)},$type:new n.ig.Type("ArcItem",n.ig.$ot)},!0);n.ig.util.defType("PieChartBaseView:mz","Object",{init:function(i){this.k=!1;this.bf=t.$x.empty();n.ig.$op.init.call(this);this.a(i);this.b(new t.m0(this))},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},ap:function(){var n=this;n.bc(null);n.d(new t.m4);n.d().series(n.a());n.bi(t.$x.empty());n.o(new t.bh(t.$m5.$type,0));n.n(new t.bh(t.$m7.$type,0));n.a().legendItemTemplate(function(){var n=new t.cg;return n.render(t.$mx.o),n.measure(t.$mx.d),n}());n.a().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.n),n.measure(t.$mx.j),n}())},av:function(){var n=this,i=new t.fd,r=new t.fd,u,f;(function(){var t=n.b().v(i,r,u,f);return i=t.brushes,r=t.outlines,u=t.fontBrush,f=t.font,t.ret})();n.a().brushes()==null&&n.a().brushes(i);n.a().outlines()==null&&n.a().outlines(r);n.bc()==null&&n.bc(u);n.a().textStyle()!=null?n.x(n.a().textStyle()):n.x(f)},_bc:null,bc:function(n){return arguments.length===1?(this._bc=n,n):this._bc},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},an:function(n){if(n==null){this.k=!1;this.b().y(null);this.g(null);this.i(null);this.h(null);this.j(null);return}this.b().y(n);this.g(this.b().c());this.i(this.b().e());this.h(this.b().d());this.j(this.b().d())},bg:function(){return this.bi()},bj:function(){return this.b().ak()},au:function(){this.bi(this.b().ai());this.a().dn()},_bi:null,bi:function(n){return arguments.length===1?(this._bi=n,n):this._bi},k:!1,al:function(){this.k||(this.k=!0,this.b().ab(this.a2.runOn(this)))},a2:function(){this.k&&(this.k=!1,this.as())},bf:null,as:function(){this.ad();this.bf.isEmpty()||(this.j().c()&&this.j().i(this.bf.left(),this.bf.top(),this.bf.width(),this.bf.height()),this.h().c()&&this.h().i(this.bf.left(),this.bf.top(),this.bf.width(),this.bf.height()),this.i().c()&&this.i().i(this.bf.left(),this.bf.top(),this.bf.width(),this.bf.height()),this.g().c()&&this.g().i(this.bf.left(),this.bf.top(),this.bf.width(),this.bf.height()));this.at()},at:function(){var u,i,t,f,e,n,r;if(this.bf=this.bi(),this.i()!=null&&this.i().c())for(u=this.o().getEnumerator();u.moveNext();)i=u.current(),i.__visibility==0&&(t=i.ai().f(),this.b().ac(t),t.z(1),t.__opacity=i.__opacity,i.bx()!=null&&(t.__fill=i.bx()),i.by()!=null&&(t.__stroke=i.by()),i.v()!=null&&this.i().g(t,i.v()),t.h()!=null&&(this.i().x(),this.i().h(t.h())),this.i().q(t),t.h()!=null&&this.i().w());if(this.h()!=null&&this.h().c())for(f=this.x(),this.a().textStyle()!=null&&(f=this.a().textStyle()),this.h().z(f),e=this.n().getEnumerator();e.moveNext();)n=e.current(),n.__visibility==0&&(r=n.af(),r!=null&&(r.ab(this.bc()),this.h().u(r)),this.a().leaderLineType()!=0&&n.am()!=null&&(n.am().__stroke=n.ad().bx(),n.am().z(1),this.a().leaderLineStyle()!=null&&this.h().g(n.am(),this.a().leaderLineStyle()),this.h().q(n.am())),this.a().leaderLineType()==0&&n.al()!=null&&(n.al().__stroke=n.ad().bx(),n.al().z(1),this.a().leaderLineStyle()!=null&&this.h().g(n.al(),this.a().leaderLineStyle()),this.h().p(n.al())))},aa:function(n){var i=this,f=i.e(),r,u;i.a3(n);i.e()==null&&f!=null?(r=function(){var i=new t.em;return i.position(n),i}(),i.a().df(i.e(),r)):i.e()!=null&&(u=function(){var i=new t.em;return i.position(n),i}(),i.a().dg(i.e(),u))},z:function(n){var i=this,u=i.e(),r;i.a3(n);r=function(){var i=new t.em;return i.position(n),i}();i.a().df(u,r)},y:function(n){this.a3(n)},ab:function(n){var i=this,r;i.a3(n);i.e()!=null&&(r=function(){var i=new t.m8;return i.position(n),i}(),i.a().d7(i.e(),r))},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},a3:function(n){this.e(null);for(var t=0;t<this.o().count();t++)if(this.o().__inner[t].__visibility==0&&this.o().__inner[t].al(n)){this.e(this.o().__inner[t]);break}},ax:function(){this.a().dn()},ac:function(){this.ag()},a7:function(n,t){var i=t;this.a8(i.position(),n,t)},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},f:function(){var n=new t.m5;return n.af(this.a()),this.o().add(n),n},ay:function(n){n.__visibility=0},a0:function(n){n.__visibility=1},az:function(n){n.af(null);this.o().remove(n)},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},c:function(){var n=new t.m7,i;return this.a().leaderLineType()==0?n.al(new t.cl):(n.am(new t.b6),i=new t.dx,i.b().add(new t.d6),i.b().__inner[0].__segments.add(new t.ea(0)),n.am().ak(i)),this.n().add(n),n},ah:function(n){n.__visibility=0},aj:function(n){n.__visibility=1},ai:function(n){this.n().remove(n)},a5:function(n){if((this.a().leaderLineType()==0||n.am()==null)&&(this.a().leaderLineType()!=0||n.al()==null))if(this.a().leaderLineType()==0)n.am(null),n.al(new t.cl);else{n.al(null);n.am(new t.b6);var i=new t.dx;i.b().add(new t.d6);i.b().__inner[0].__segments.add(new t.ea(0));n.am().ak(i)}},aw:function(n){if(this.a().othersCategoryStyle()!=null&&n.ao())n.v(this.a().othersCategoryStyle());else if(n.isSelected()&&this.a().allowSliceSelection()&&this.a().selectedStyle()!=null)n.v(this.a().selectedStyle());else{n.v(null);var t,i;t=this.a().brushes()!=null&&n.az()>=0&&this.a().brushes().count()>0?this.a().brushes().item(n.az()%this.a().brushes().count()):null;i=this.a().outlines()!=null&&n.az()>=0&&this.a().outlines().count()>0?this.a().outlines().item(n.az()%this.a().outlines().count()):null;n.bx(t);n.by(i)}},u:function(i){if(i==null||i.ag()==null)return this.a().labelMemberPath();var u=i.ag(),r=u.af();return n.ig.util.cast(t.$b9.$type,r)!==null?n.ig.util.cast(t.$b9.$type,r).aa():r},r:function(i){var r=n.ig.util.cast(t.$b9.$type,i);return r!=null&&r.aa()!=null?this.h().d(r.aa())+0:0},a4:function(){this.p(t.$fj.b(this.b().s()))},_p:0,p:function(n){return arguments.length===1?(this._p=n,n):this._p},q:function(){return this.p()+0},bh:function(i){var r=i.af(),u,f;return n.ig.util.cast(t.$b9.$type,r)!==null?(u=this.r(r),f=this.q(r),new t.x(0,0,0,u,f)):t.$x.empty()},bk:function(){return new t.y(this.bi().width(),this.bi().height())},a6:function(i,r,u){var f=n.ig.util.cast(t.$b9.$type,i.af());f!=null&&(f.l(r),f.m(u));this.al()},a9:function(n){this.ba(n)},bb:function(){this.al()},ak:function(){this.ad()},ad:function(){var n=this.x();this.a().textStyle()!=null&&(n=this.a().textStyle());this.h()!=null&&this.h().z(n)},ao:function(n,t){this.b().z(n,t)},am:function(){this.b().x()},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_m:!1,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},ag:function(){this.m()==!0&&(this.m(!1),this.b().w(this.d()))},ba:function(n){this.b().ae(n)},a8:function(t,i){this.m(!0);this.w(t);i==null?(this.v(null),this.d().item(null)):(this.v(i.dataContext()),this.d().item(i.dataContext()));var r=this.a().getContainerOffsets(),u={__x:t.__x+15+r.b(),__y:t.__y+15+r.a(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f=this.d();this.b().ad(u,f)},a1:function(){this.av();this.a4();this.a().dy()},aq:function(){this.b().aa(this.a().isSurfaceInteractionDisabled())},t:function(){return this.b().q()},af:function(){this.k&&this.a2()},l:function(){return this.t()!=null},ae:function(n){this.b().u(n)},ar:function(){},bd:function(n){var t=this.b().ag(n.v());return t!=null?t:n.bx()},be:function(n){var t=this.b().ah(n.v());return t!=null?t:n.by()},$type:new n.ig.Type("PieChartBaseView",n.ig.$ot)},!0);n.ig.util.defType("ArcView:vr","PieChartBaseView",{_bl:null,bl:function(n){return arguments.length===1?(this._bl=n,n):this._bl},init:function(n){t.$mz.init.call(this,n);this.bl(n)},bn:function(){this.d().series(this.bl().ring().c())},bm:function(){return this.e()},bo:function(){this.bc(new t.b3);var n=this.b().q();this.bc().__fill=n.css("color");this.x(t.$fj.c(n))},$type:new n.ig.Type("ArcView",t.$mz.$type)},!0);n.ig.util.defType("DoughnutChartVisualData:v3","Object",{init:function(){n.ig.$op.init.call(this)},_series:null,series:function(n){return arguments.length===1?(this._series=n,n):this._series},_height:0,height:function(n){return arguments.length===1?(this._height=n,n):this._height},_width:0,width:function(n){return arguments.length===1?(this._width=n,n):this._width},_holeRadius:0,holeRadius:function(n){return arguments.length===1?(this._holeRadius=n,n):this._holeRadius},scaleByViewport:function(){var n,u,t,f,i,e,r,o;if(this.series()!=null)for(n=this.series().getEnumerator();n.moveNext();)for(u=n.current(),t=u.rings().getEnumerator();t.moveNext();)for(f=t.current(),i=f.arcs().getEnumerator();i.moveNext();)for(e=i.current(),r=e.a().getEnumerator();r.moveNext();)o=r.current(),o.scaleByViewport(this.viewport())},serialize:function(){var n=new t.gj,i=!0,r;if(n.f("{"),isNaN(this.width())||(i?i=!1:n.d(", "),n.d("width: "),n.f(this.width().toString())),isNaN(this.height())||(i?i=!1:n.d(", "),n.d("height: "),n.f(this.height().toString())),isNaN(this.holeRadius())||(i?i=!1:n.d(", "),n.d("holeRadius: "),n.f(this.holeRadius().toString())),this.series()!=null){for(i?i=!1:n.d(", "),n.f("series: ["),r=0;r<this.series().count();r++)r!=0&&n.d(", "),n.d(this.series().__inner[r].serialize());n.f("]")}return n.f("}"),n.b()},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},$type:new n.ig.Type("DoughnutChartVisualData",n.ig.$ot)},!0);n.ig.util.defType("RingSeriesVisualData:v5","Object",{init:function(){n.ig.$op.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_labelExtent:0,labelExtent:function(n){return arguments.length===1?(this._labelExtent=n,n):this._labelExtent},_labelsPosition:null,labelsPosition:function(n){return arguments.length===1?(this._labelsPosition=n,n):this._labelsPosition},_leaderLineType:null,leaderLineType:function(n){return arguments.length===1?(this._leaderLineType=n,n):this._leaderLineType},_leaderLineVisibility:null,leaderLineVisibility:function(n){return arguments.length===1?(this._leaderLineVisibility=n,n):this._leaderLineVisibility},_leaderLineMargin:0,leaderLineMargin:function(n){return arguments.length===1?(this._leaderLineMargin=n,n):this._leaderLineMargin},_rings:null,rings:function(n){return arguments.length===1?(this._rings=n,n):this._rings},serialize:function(){var n=new t.gj,i=!0,r;for(n.f("{"),this.name()!=null&&(i?i=!1:n.d(", "),n.d("name: "),n.f("'"+this.name()+"'")),isNaN(this.labelExtent())||(i?i=!1:n.d(", "),n.d("labelExtent: "),n.f(this.labelExtent().toString())),this.labelsPosition()!=null&&(i?i=!1:n.d(", "),n.d("labelsPosition: "),n.f(this.labelsPosition())),this.leaderLineType()!=null&&(i?i=!1:n.d(", "),n.d("leaderLineType: "),n.f(this.leaderLineType())),n.d(", leaderLineVisibility: "),n.f(this.leaderLineVisibility().toString()),isNaN(this.leaderLineMargin())||(i?i=!1:n.d(", "),n.d("leaderLineMargin: "),n.f(this.leaderLineMargin().toString())),n.f(", rings: ["),r=0;r<this.rings().count();r++)r!=0&&n.d(", "),n.d(this.rings().__inner[r].serialize());return n.f("]}"),n.b()},$type:new n.ig.Type("RingSeriesVisualData",n.ig.$ot)},!0);n.ig.util.defType("RingSeriesVisualDataList:v4","List$1",{init:function(){t.$bh.init.call(this,t.$v5.$type)},$type:new n.ig.Type("RingSeriesVisualDataList",t.$bh.$type.specialize(t.$v5.$type))},!0);n.ig.util.defType("RingVisualData:v7","Object",{init:function(){n.ig.$op.init.call(this)},_arcs:null,arcs:function(n){return arguments.length===1?(this._arcs=n,n):this._arcs},serialize:function(){var n=new t.gj,r=!0,i;if(n.f("{"),this.arcs()!=null){for(r?r=!1:n.d(", "),n.f("arcs: ["),i=0;i<this.arcs().count();i++)i!=0&&n.d(", "),n.d(this.arcs().__inner[i].c());n.f("]")}return n.f("}"),n.b()},$type:new n.ig.Type("RingVisualData",n.ig.$ot)},!0);n.ig.util.defType("RingVisualDataList:v6","List$1",{init:function(){t.$bh.init.call(this,t.$v7.$type)},$type:new n.ig.Type("RingVisualDataList",t.$bh.$type.specialize(t.$v7.$type))},!0);n.ig.util.defType("ArcVisualData:v9","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},d:function(n){for(var t=this.a().getEnumerator(),i;t.moveNext();)i=t.current(),i.scaleByViewport(n)},c:function(){var n=new t.gj,r=!0,i;if(n.f("{"),this.b()!=null&&(r?r=!1:n.d(", "),n.d("leaderLine: "),n.f(this.b().serialize())),this.a()!=null)for(r?r=!1:n.d(", "),n.f("slices: ["),i=0;i<this.a().count();i++)i!=0&&n.d(", "),n.d(this.a().__inner[i].serialize());return n.f("]}"),n.b()},$type:new n.ig.Type("ArcVisualData",n.ig.$ot)},!0);n.ig.util.defType("ArcVisualDataList:v8","List$1",{init:function(){t.$bh.init.call(this,t.$v9.$type)},$type:new n.ig.Type("ArcVisualDataList",t.$bh.$type.specialize(t.$v9.$type))},!0);n.ig.util.defType("SliceVisualData:wb","Object",{init:function(){n.ig.$op.init.call(this)},_pieSlice:null,pieSlice:function(n){return arguments.length===1?(this._pieSlice=n,n):this._pieSlice},_outline:null,outline:function(n){return arguments.length===1?(this._outline=n,n):this._outline},_labelVisualData:null,labelVisualData:function(n){return arguments.length===1?(this._labelVisualData=n,n):this._labelVisualData},_backgroundPath:null,backgroundPath:function(n){return arguments.length===1?(this._backgroundPath=n,n):this._backgroundPath},_origin:null,origin:function(n){return arguments.length===1?(this._origin=n,n):this._origin},_explodedOrigin:null,explodedOrigin:function(n){return arguments.length===1?(this._explodedOrigin=n,n):this._explodedOrigin},_isExploded:!1,isExploded:function(n){return arguments.length===1?(this._isExploded=n,n):this._isExploded},_isSelected:!1,isSelected:function(n){return arguments.length===1?(this._isSelected=n,n):this._isSelected},_index:0,index:function(n){return arguments.length===1?(this._index=n,n):this._index},_radius:0,radius:function(n){return arguments.length===1?(this._radius=n,n):this._radius},_startAngle:0,startAngle:function(n){return arguments.length===1?(this._startAngle=n,n):this._startAngle},_endAngle:0,endAngle:function(n){return arguments.length===1?(this._endAngle=n,n):this._endAngle},_visibility:null,visibility:function(n){return arguments.length===1?(this._visibility=n,n):this._visibility},scaleByViewport:function(t){this.origin({__x:(this.origin().__x-t.left())/t.width(),__y:(this.origin().__y-t.top())/t.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.explodedOrigin({__x:(this.explodedOrigin().__x-t.left())/t.width(),__y:(this.explodedOrigin().__y-t.top())/t.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},serialize:function(){var n=new t.gj,i=!0;return n.f("{"),this.pieSlice()!=null&&(i?i=!1:n.d(", "),n.d("pieSlice: "),n.f(this.pieSlice().serialize())),this.labelVisualData()!=null&&(i?i=!1:n.d(", "),n.d("labelVisualData: "),n.f(this.labelVisualData().serialize())),this.backgroundPath()!=null&&(i?i=!1:n.d(", "),n.d("backgroundPath: "),n.f(this.backgroundPath().serialize())),i?i=!1:n.d(", "),n.d("isExploded: "),n.f(this.isExploded().toString()),i?i=!1:n.d(", "),n.d("isSelected: "),n.f(this.isSelected().toString()),isNaN(this.explodedOrigin().__x)||isNaN(this.explodedOrigin().__y)||(i?i=!1:n.d(", "),n.d("explodedOrigin: "),n.f("{ x: "+this.explodedOrigin().__x.toString()+", y: "+this.explodedOrigin().__y.toString()+"}")),isNaN(this.origin().__x)||isNaN(this.origin().__y)||(i?i=!1:n.d(", "),n.d("origin: "),n.f("{ x: "+this.origin().__x.toString()+", y: "+this.origin().__y.toString()+"}")),isNaN(this.index())||(i?i=!1:n.d(", "),n.d("index: "),n.f(this.index().toString())),isNaN(this.radius())||(i?i=!1:n.d(", "),n.d("radius: "),n.f(this.radius().toString())),n.d(", visibility: "),n.f(this.visibility().toString()),isNaN(this.startAngle())||(i?i=!1:n.d(", "),n.d("startAngle: "),n.f(this.startAngle().toString())),isNaN(this.endAngle())||(i?i=!1:n.d(", "),n.d("endAngle: "),n.f(this.endAngle().toString())),n.f("}"),n.b()},$type:new n.ig.Type("SliceVisualData",n.ig.$ot)},!0);n.ig.util.defType("SliceVisualDataList:wa","List$1",{init:function(){t.$bh.init.call(this,t.$wb.$type)},$type:new n.ig.Type("SliceVisualDataList",t.$bh.$type.specialize(t.$wb.$type))},!0);n.ig.util.defType("DoughnutChartLabelVisualData:wc","Object",{init:function(){n.ig.$op.init.call(this)},_labelValue:null,labelValue:function(n){return arguments.length===1?(this._labelValue=n,n):this._labelValue},_labelSize:null,labelSize:function(n){return arguments.length===1?(this._labelSize=n,n):this._labelSize},_labelPosition:null,labelPosition:function(n){return arguments.length===1?(this._labelPosition=n,n):this._labelPosition},scaleByViewport:function(i){this.labelPosition({__x:(this.labelPosition().__x-i.left())/i.width(),__y:(this.labelPosition().__y-i.top())/i.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.labelSize(new t.y(this.labelSize().b()/i.width(),this.labelSize().a()/i.height()))},serialize:function(){return"{ labelValue: '"+this.labelValue()+"', labelSize: { width: "+this.labelSize().b()+", height: "+this.labelSize().a()+"}, labelPosition: { x: "+this.labelPosition().__x+", y: "+this.labelPosition().__y+"}}"},$type:new n.ig.Type("DoughnutChartLabelVisualData",n.ig.$ot)},!0);n.ig.util.defType("RingSeriesBase:vu","Control",{ak:null,init:function(){var r=this,i;t.$ak.init.call(this);this.ay({__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.ak=function(n,t){r.by(n,t.propertyName(),t.oldValue(),t.newValue())};this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,this.ak);this.ao(this.an());this.bv(this.ao());this.ao().k();i=n.ig.util.toNullable(t.$f.$type,null);this.isSurfaceInteractionDisabled(i)},_chart:null,chart:function(n){return arguments.length===1?(this._chart=n,n):this._chart},itemsSource:function(n){return arguments.length===1?(this.g(t.$vu.itemsSourceProperty,n),n):this.c(t.$vu.itemsSourceProperty)},valueMemberPath:function(n){return arguments.length===1?(this.g(t.$vu.valueMemberPathProperty,n),n):this.c(t.$vu.valueMemberPathProperty)},labelMemberPath:function(n){return arguments.length===1?(this.g(t.$vu.labelMemberPathProperty,n),n):this.c(t.$vu.labelMemberPathProperty)},propertyChanged:null,propertyUpdated:null,b0:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},labelsPosition:function(n){return arguments.length===1?(this.g(t.$vu.labelsPositionProperty,n),n):this.c(t.$vu.labelsPositionProperty)},leaderLineVisibility:function(n){return arguments.length===1?(this.g(t.$vu.leaderLineVisibilityProperty,n),n):this.c(t.$vu.leaderLineVisibilityProperty)},leaderLineStyle:function(n){return arguments.length===1?(this.g(t.$vu.leaderLineStyleProperty,n),n):this.c(t.$vu.leaderLineStyleProperty)},leaderLineType:function(n){return arguments.length===1?(this.g(t.$vu.leaderLineTypeProperty,n),n):this.c(t.$vu.leaderLineTypeProperty)},leaderLineMargin:function(n){return arguments.length===1?(this.g(t.$vu.leaderLineMarginProperty,n),n):this.c(t.$vu.leaderLineMarginProperty)},toolTip:function(n){return arguments.length===1?(this.g(t.$vu.toolTipProperty,n),n):this.c(t.$vu.toolTipProperty)},othersCategoryThreshold:function(n){return arguments.length===1?(this.g(t.$vu.othersCategoryThresholdProperty,n),n):this.c(t.$vu.othersCategoryThresholdProperty)},othersCategoryType:function(n){return arguments.length===1?(this.g(t.$vu.othersCategoryTypeProperty,n),n):this.c(t.$vu.othersCategoryTypeProperty)},othersCategoryText:function(n){return arguments.length===1?(this.g(t.$vu.othersCategoryTextProperty,n),n):this.c(t.$vu.othersCategoryTextProperty)},legend:function(n){return arguments.length===1?(this.g(t.$vu.legendProperty,n),n):this.c(t.$vu.legendProperty)},formatLabel:function(n){return arguments.length===1?(this.g(t.$vu.formatLabelProperty,n),n):this.c(t.$vu.formatLabelProperty)},labelExtent:function(n){return arguments.length===1?(this.g(t.$vu.labelExtentProperty,n),n):this.c(t.$vu.labelExtentProperty)},startAngle:function(n){return arguments.length===1?(this.g(t.$vu.startAngleProperty,n),n):this.c(t.$vu.startAngleProperty)},othersCategoryStyle:function(n){return arguments.length===1?(this.g(t.$vu.othersCategoryStyleProperty,n),n):this.c(t.$vu.othersCategoryStyleProperty)},selectedStyle:function(n){return arguments.length===1?(this.g(t.$vu.selectedStyleProperty,n),n):this.c(t.$vu.selectedStyleProperty)},selectedStyleResolved:function(n){if(arguments.length===1){var t=this.selectedStyleResolved();return this.b0("SelectedStyleResolved",t,n),n}return this.selectedStyle()!=null?this.selectedStyle():this.chart()!=null&&this.chart().selectedStyle()!=null?this.chart().selectedStyle():null},toolTipStyle:function(n){return arguments.length===1?(this.g(t.$vu.toolTipStyleProperty,n),n):this.c(t.$vu.toolTipStyleProperty)},brushes:function(n){return arguments.length===1?(this.g(t.$vu.brushesProperty,n),n):this.c(t.$vu.brushesProperty)},outlines:function(n){return arguments.length===1?(this.g(t.$vu.outlinesProperty,n),n):this.c(t.$vu.outlinesProperty)},legendItemTemplate:function(n){return arguments.length===1?(this.g(t.$vu.legendItemTemplateProperty,n),n):this.c(t.$vu.legendItemTemplateProperty)},legendItemBadgeTemplate:function(n){return arguments.length===1?(this.g(t.$vu.legendItemBadgeTemplateProperty,n),n):this.c(t.$vu.legendItemBadgeTemplateProperty)},labelTemplate:function(i){return arguments.length===1?(this.g(t.$vu.labelTemplateProperty,i),i):n.ig.util.cast(t.$cg.$type,this.c(t.$vu.labelTemplateProperty))},isSurfaceInteractionDisabled:function(n){return arguments.length===1?(this.g(t.$vu.isSurfaceInteractionDisabledProperty,n),n):this.c(t.$vu.isSurfaceInteractionDisabledProperty)},radiusFactor:function(n){return arguments.length===1?(this.g(t.$vu.radiusFactorProperty,n),n):this.c(t.$vu.radiusFactorProperty)},_ay:null,ay:function(n){return arguments.length===1?(this._ay=n,n):this._ay},_ao:null,ao:function(n){return arguments.length===1?(this._ao=n,n):this._ao},by:function(n,t,i,r){t=="SelectedStyle"&&this.selectedStyleResolved(r)},_rootCanvas:null,rootCanvas:function(n){return arguments.length===1?(this._rootCanvas=n,n):this._rootCanvas},an:function(){return new t.v2(this)},bv:function(){},am:function(){},bx:function(){},bw:function(){},provideContainer:function(n){this.ao().n(n)},bu:function(){this.ao()!=null&&this.ao().i()},b1:function(){},$type:new n.ig.Type("RingSeriesBase",t.$ak.$type,[t.$a8.$type])},!0);n.ig.util.defType("HierarchicalRingSeries:wi","RingSeriesBase",{init:function(){t.$vu.init.call(this);this.y(t.$wi.$type)},_rings:null,rings:function(n){return arguments.length===1?(this._rings=n,n):this._rings},childrenMemberPath:function(n){return arguments.length===1?(this.g(t.$wi.childrenMemberPathProperty,n),n):this.c(t.$wi.childrenMemberPathProperty)},am:function(){return this.itemsSource()==null?new t.vw:(this.rings(this.c4(this.itemsSource())),this.rings())},by:function(n,i,r,u){var f,a,e,o,s,h,c,l,v;if(t.$vu.by.call(this,n,i,r,u),i=="ItemsSource"&&this.bx(),i=="StartAngle"){var y=r,p=u,w=p-y;if(this.rings()!=null&&this.rings().count()>0)for(f=0;f<this.rings().count();f++)for(a=this.rings().__inner[f],e=a.g().getEnumerator();e.moveNext();)o=e.current(),o.i(o.i()+w)}if(i=="Brushes"&&this.bw(),this.rings()!=null&&this.ao().d()){for(s=!1,h=this.rings().getEnumerator();h.moveNext();)c=h.current(),c.l(),c.f()&&(s=!0);if(s)for(l=this.rings().getEnumerator();l.moveNext();)v=l.current(),v.c().ao().l()}},bx:function(){this.chart()!=null&&(this.chart().bg(),this.chart().bl())},bw:function(){var n,i,t,r;if(this.rings()!=null)for(n=this.rings().getEnumerator();n.moveNext();)for(i=n.current(),t=i.g().getEnumerator();t.moveNext();)r=t.current(),this.c9(r)},b1:function(){if(this.rings()!=null&&this.rings().count()>0){var n=this.rings().__inner[this.rings().count()-1];this.width(n.m().b());this.height(n.m().a());this.ao().m(n.k().__x,n.k().__y)}},c6:function(n){var t=this.childrenMemberPath();return n[t]!==undefined?n[t]:null},c4:function(i){var u=this,h=new t.wj(t.$v0.$type),e=new t.wj(t.$v0.$type),p=function(){var n=new t.v0;return n.k(0),n.f(i),n.l(u.valueMemberPath()),n.h(u.othersCategoryThreshold()),n}(),w,r,l,a,v,f,o,y,s;p.m(u.startAngle());w=function(){var n=new t.v0;return n.k(-1),n.f(null),n}();e.h(p);h.h(w);for(var b=new t.vw,c=null,k=-1;e.f()>0;)if(function(){var n=e.g(r);return r=n.value,n.ret}(),function(){var n=h.g(l);return l=n.value,n.ret}(),r!=null){for(a=0,v=r.e().getEnumerator();v.moveNext();)f=v.current(),o=u.c6(f.g()),(o!=null&&u.c5(o)==!1||f.c())&&(y=function(){var i=new t.v0;return i.k(r.k()+1),i.f(f.c()?function(){var i=new t.bh(n.ig.Number.prototype.$type,0);return i.add(0),i}():o),i.j(a),i.b(r),i.l(u.valueMemberPath()),i.d(f),i}(),y.m(u.startAngle()),e.h(y),h.h(r)),a++;s=u.c2(r,l,k,c);s!=c&&(b.add(s),c=s);k=r.k()}return b},c2:function(n,i,r,u){var e=this,f;return(n.i(n.d()==null?e.startAngle():n.d().e()),n.g(n.d()==null?360:n.d().d()),e.c9(n),n.k()!=r)?(f=function(){var n=new t.vs;return n.c(e),n}(),f.g().add(n),n.c(f),f):(n.c(u),u.g().add(n),u)},c5:function(n){for(var t=n.getEnumerator(),i;t.moveNext();)return i=t.current(),!1;return!0},c9:function(n){n.b()==null?n.a(this.brushes()):n.b().k()==0?(n.a(new t.fd),n.b().a()!=null&&n.a().add(n.b().a().item(n.j()%n.b().a().count()))):n.a(n.b().a())},$type:new n.ig.Type("HierarchicalRingSeries",t.$vu.$type)},!0);n.ig.util.defType("IgQueue$1:wj","Object",{$t:null,init:function(t){this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.e=0;this.b=null;this.a=null;this.c=null},e:0,b:null,a:null,c:null,d:function(){return this.e==0},f:function(){return this.e},h:function(n){this.e==0?this.b=this.a=new t.wk(n,this.b):(this.a.a=new t.wk(n,this.a.a),this.a=this.a.a);this.e++},g:function(i){if(this.c=this.b,this.e==0)throw new t.e1(1,"tried to serve from an empty Queue");return this.b=this.b.a,this.e--,i=n.ig.util.cast(this.$t,this.c.b),{value:i}},$type:new n.ig.Type("IgQueue$1",n.ig.$ot)},!0);n.ig.util.defType("Node:wk","Object",{a:null,b:null,init:function(t,i){n.ig.$op.init.call(this);this.a=i;this.b=t},$type:new n.ig.Type("Node",n.ig.$ot)},!0);n.ig.util.defType("HoleDimensionsChangedEventArgs:wh","EventArgs",{init:function(n,i){t.$en.init.call(this);this.d=n;this.b=i},d:null,center:function(){return this.d},b:0,radius:function(){return this.b},$type:new n.ig.Type("HoleDimensionsChangedEventArgs",t.$en.$type)},!0);n.ig.util.defType("Ring:vs","Object",{init:function(){var i=this;n.ig.$op.init.call(this);this.k({__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.m(new t.y(0,0));this.a(function(){var n=new t.vt;return n.af(i),n}());this.g(new t.bh(t.$v0.$type,0));this.e(!0)},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},b:null,c:function(n){return arguments.length===1?(this.b=n,this.b.ao().h(this.a()),this.a()!=null&&this.a().ah().s(n),n):this.b},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},f:function(){if(this.a()!=null&&this.a().ah().d()){var n,t;return n=this.k().__x-this.c().ay().__x,t=this.k().__y-this.c().ay().__y,this.a().ah().v(n,t),this.a().ak()}return!1},l:function(){this.a()!=null&&(this.a().width(this.m().b()),this.a().height(this.m().a()),this.c().ao().h(this.a()),this.a().al(this.g()))},$type:new n.ig.Type("Ring",n.ig.$ot)},!0);n.ig.util.defType("RingCollection:vw","ObservableCollection$1",{init:function(){t.$e4.init.call(this,t.$vs.$type)},h:function(){for(var r=this.getEnumerator(),n,i,u;r.moveNext();)if(n=r.current(),n.e()){for(i=0,u=n.a().aj.c();i<u;)n.a().aj.destroy()(n.a().aj.item(i)),i++;n.a().aj.c(0);n.a(null)}t.$e4.h.call(this)},m:function(n){var i=this.__inner[n];i.e()&&(i.a().aj.destroy()(i.a().aj.item(n)),i.a().aj.c(0),i.a(null));t.$e4.m.call(this,n)},$type:new n.ig.Type("RingCollection",t.$e4.$type.specialize(t.$vs.$type))},!0);n.ig.util.defType("RingControl:vt","Control",{init:function(){var n=this;t.$ak.init.call(this);this.y(t.$vt.$type);this.ah(this.ag());this.aq(this.ah());this.ah().r();this.aj=function(){var i=new t.ga(t.$vq.$type);return i.create(n.ah().a.runOn(n.ah())),i.activate(n.ah().l.runOn(n.ah())),i.disactivate(n.ah().n.runOn(n.ah())),i.destroy(n.ah().m.runOn(n.ah())),i}()},ai:function(){return this.af().c()},_ah:null,ah:function(n){return arguments.length===1?(this._ah=n,n):this._ah},ae:null,af:function(n){return arguments.length===1?(this.ae=n,this.ae==null?this.ah().s(null):this.ah().s(this.ae.c()),n):this.ae},aj:null,_al:null,al:function(n){return arguments.length===1?(this._al=n,n):this._al},_rootCanvas:null,rootCanvas:function(n){return arguments.length===1?(this._rootCanvas=n,n):this._rootCanvas},ag:function(){return new t.wd(this)},aq:function(){},propertyChanged:null,propertyUpdated:null,as:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},ap:function(){this.ak()},ak:function(){var t,n;if(this.al()==null)return!1;for(var i=0,r=!1,u=this.al().getEnumerator();u.moveNext();)t=u.current(),n=this.aj.item(i),n.fj(t),n.innerExtent()!=this.af().h()&&n.innerExtent(this.af().h()),(n.width()!=this.af().m().b()||n.height()!=this.af().m().a())&&n.ao().l()&&(n.width(this.af().m().b()),n.height(this.af().m().a()),this.ah().ab(n),r=!0),n.startAngle()!=t.i()&&n.startAngle(t.i()),n.endAngle()!=t.g()&&n.endAngle(t.g()),n.itemsSource()!=t.f()&&n.itemsSource(t.f()),n.brushes()!=t.a()&&n.brushes(t.a()),this.ah().t(n,0,0),i++;return this.aj.c(i),r},ar:function(n){this.ah().w(n)},ao:function(){this.ah().q()},am:function(){return this.ah().j()},$type:new n.ig.Type("RingControl",t.$ak.$type,[t.$a8.$type])},!0);n.ig.util.defType("RingControlView:wd","Object",{_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},init:function(i){this.f=new t.bh(t.$vq.$type,0);this.g=new t.bh(t.$vq.$type,0);this.e=new t.f0(t.$vq.$type,t.$cp.$type,0);this.c=null;n.ig.$op.init.call(this);this.b(i)},f:null,g:null,a:function(){var n=new t.vq;return n.m(0),n.l(0),n.ring(this.b().af()),this.f.add(n),this.z(n),n.labelExtent(this.b().ai().labelExtent()),n.formatLabel(this.b().ai().formatLabel()),n.labelMemberPath(this.b().ai().labelMemberPath()),n.labelsPosition(this.b().ai().labelsPosition()),n.labelTemplate(this.b().ai().labelTemplate()),n.valueMemberPath(this.b().ai().valueMemberPath()),this.b().ai().toolTip()!=null&&n.toolTip(this.b().ai().toolTip()),n.leaderLineVisibility(this.b().ai().leaderLineVisibility()),n.leaderLineStyle(this.b().ai().leaderLineStyle()),n.leaderLineType(this.b().ai().leaderLineType()),n.leaderLineMargin(this.b().ai().leaderLineMargin()),n.othersCategoryThreshold(this.b().ai().othersCategoryThreshold()),n.othersCategoryType(this.b().ai().othersCategoryType()),n.othersCategoryText(this.b().ai().othersCategoryText()),n.othersCategoryStyle(this.b().ai().othersCategoryStyle()),n.legend(this.b().ai().legend()),n.legendItemTemplate(this.b().ai().legendItemTemplate()),n.legendItemBadgeTemplate(this.b().ai().legendItemBadgeTemplate()),n.outlines(this.b().ai().outlines()),n.startAngle(this.b().ai().startAngle()),n.brushes(this.b().ai().brushes()),n.selectedStyle(this.b().ai().selectedStyleResolved()),n.isSurfaceInteractionDisabled(!0),n.radiusFactor(this.b().ai().radiusFactor()),n},l:function(n){var t=this.e.item(n);t!=null&&t.show();this.g.add(n)},n:function(n){var t=this.e.item(n);t!=null&&t.hide();this.g.remove(n)},m:function(n){this.o(n);this.f.remove(n)},h:function(){return this.f},r:function(){},aa:function(){this.b().ap()},t:function(n,t,i){t=t+this.b().l();i=i+this.b().m();this.c!=null&&(t=t+this.c.l(),i=i+this.c.m());(n.l()!=t||n.m()!=i)&&(n.l(t),n.m(i),this.u(n,this.e.item(n)))},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},w:function(t){var i,r,u;if(t==null){this.b().aj.c(0);this.f.clear();this.e.clear();this.g.clear();return}for(this.i(n(t)),this.i().css("position","relative"),i=this.f.getEnumerator();i.moveNext();)r=i.current(),u=this.e.item(r),this.i().append(u),r.fk().bo()},e:null,z:function(t){var i=n('<div style="position : absolute;" />');this.e.add(t,i);this.k(t,i);this.u(t,i);this.i()!=null&&this.i().append(i);t.provideContainer(i);i.css("position","absolute");i.removeClass("ui-corner-all ui-widget-content")},k:function(n,t){t.css("width",n.width().toString());t.css("height",n.height().toString())},u:function(n,t){t.css("top",n.m().toString()+"px");t.css("left",n.l().toString()+"px")},o:function(n){var t=this.e.item(n);t.remove();this.e.remove(n);n.provideContainer(null)},ab:function(n){this.k(n,n.getContainer());n.onContainerResized(n.width(),n.height())},d:function(){return!0},q:function(){},c:null,s:function(t){this.c=t;t!=null&&(t.propertyUpdated=n.ig.Delegate.prototype.combine(t.propertyUpdated,this.y.runOn(this)))},y:function(n,t){var i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it;switch(t.propertyName()){case"LabelExtent":for(i=0;i<this.f.count();i++)this.f.__inner[i].labelExtent(t.newValue());break;case"LabelMemberPath":for(r=0;r<this.f.count();r++)this.f.__inner[r].labelMemberPath(t.newValue());break;case"LabelsPosition":for(u=0;u<this.f.count();u++)this.f.__inner[u].labelsPosition(t.newValue());break;case"LabelTemplate":for(f=0;f<this.f.count();f++)this.f.__inner[f].labelTemplate(t.newValue());break;case"ValueMemberPath":for(e=0;e<this.f.count();e++)this.f.__inner[e].valueMemberPath(t.newValue());break;case"ToolTip":for(o=0;o<this.f.count();o++)this.f.__inner[o].toolTip(t.newValue());break;case"LeaderLineVisibility":for(s=0;s<this.f.count();s++)this.f.__inner[s].leaderLineVisibility(t.newValue());break;case"LeaderLineStyle":for(h=0;h<this.f.count();h++)this.f.__inner[h].leaderLineStyle(t.newValue());break;case"LeaderLineType":for(c=0;c<this.f.count();c++)this.f.__inner[c].leaderLineType(t.newValue());break;case"LeaderLineMargin":for(l=0;l<this.f.count();l++)this.f.__inner[l].leaderLineMargin(t.newValue());break;case"OthersCategoryThreshold":for(a=0;a<this.f.count();a++)this.f.__inner[a].othersCategoryThreshold(t.newValue());break;case"OthersCategoryType":for(v=0;v<this.f.count();v++)this.f.__inner[v].othersCategoryType(t.newValue());break;case"OthersCategoryText":for(y=0;y<this.f.count();y++)this.f.__inner[y].othersCategoryText(t.newValue());break;case"OthersCategoryStyle":for(p=0;p<this.f.count();p++)this.f.__inner[p].othersCategoryStyle(t.newValue());break;case"Legend":for(w=0;w<this.f.count();w++)this.f.__inner[w].legend(t.newValue());break;case"LegendItemTemplate":for(b=0;b<this.f.count();b++)this.f.__inner[b].legendItemTemplate(t.newValue());break;case"LegendItemBadgeTemplate":for(k=0;k<this.f.count();k++)this.f.__inner[k].legendItemBadgeTemplate(t.newValue());break;case"Outlines":for(d=0;d<this.f.count();d++)this.f.__inner[d].outlines(t.newValue());break;case"Brushes":for(g=0;g<this.f.count();g++)this.f.__inner[g].brushes(t.newValue());break;case"SelectedStyle":for(nt=0;nt<this.f.count();nt++)this.f.__inner[nt].selectedStyle(t.newValue());break;case"SelectedStyleResolved":for(tt=0;tt<this.f.count();tt++)this.f.__inner[tt].selectedStyle(t.newValue());break;case"RadiusFactor":for(it=0;it<this.f.count();it++)this.f.__inner[it].radiusFactor(t.newValue())}},p:function(){for(var n=this.f.getEnumerator(),t;n.moveNext();)t=n.current(),t.flush()},j:function(){return this.i()},v:function(n,t){this.b().l(n);this.b().m(t);this.x()},x:function(){for(var t,n=0;n<this.f.count();n++)t=this.f.__inner[n],this.t(t,0,0)},$type:new n.ig.Type("RingControlView",n.ig.$ot)},!0);n.ig.util.defType("RingSeries:wl","RingSeriesBase",{init:function(){var n=this,i;t.$vu.init.call(this);this.ring(function(){var i=new t.vs;return i.c(n),i.e(!1),i}());i=function(){var i=new t.v0;return i.i(n.startAngle()),i.c(n.ring()),i.l(n.valueMemberPath()),i.h(n.othersCategoryThreshold()),i}();this.ring().g().add(i);this.y(t.$wl.$type)},_ring:null,ring:function(n){return arguments.length===1?(this._ring=n,n):this._ring},by:function(n,i,r,u){if(t.$vu.by.call(this,n,i,r,u),i=="ItemsSource"&&this.bx(),i=="FormatLabel")for(var f=0;f<this.ring().a().aj.c();f++)this.ring().a().aj.item(f).formatLabel(u);i=="Brushes"&&this.bw();i=="StartAngle"&&this.ring().g()!=null&&this.ring().g().count()>0&&this.ring().g().__inner[0].i(this.startAngle());i=="ValueMemberPath"&&this.ring().g()!=null&&this.ring().g().count()>0&&(this.ring().g().__inner[0].l(this.valueMemberPath()),this.bx());this.ring()!=null&&this.ao().d()&&(this.ring().l(),this.ring().f()&&this.ring().c().ao().l())},am:function(){var n=new t.vw;return this.ring().g().__inner[0].e().count()>0&&n.add(this.ring()),n},bx:function(){this.ring()!=null&&(this.ring().g().__inner[0].f(this.itemsSource()),this.ring().g().__inner[0].m(this.startAngle()),this.chart()!=null&&(this.chart().bg(),this.chart().bl()))},bw:function(){this.ring()!=null&&this.ring().g().__inner[0].a(this.brushes())},b1:function(){this.ring()!=null&&(this.width(this.ring().m().b()),this.height(this.ring().m().a()),this.ao().m(this.ring().k().__x,this.ring().k().__y))},$type:new n.ig.Type("RingSeries",t.$vu.$type)},!0);n.ig.util.defType("RingSeriesBaseView:v2","Object",{_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},init:function(i){n.ig.$op.init.call(this);this.e(new t.bh(t.$vt.$type,0));this.c(i)},k:function(){var n=this;n.c().legendItemTemplate(function(){var n=new t.cg;return n.render(t.$mx.o),n.measure(t.$mx.d),n}());n.c().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.n),n.measure(t.$mx.j),n}())},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},h:function(n){this.e().contains(n)||this.e().add(n);this.f()!=null&&n.am()!=this.f()&&n.ar(this.f())},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},j:function(n,i,r,u,f){var e=this;return function(){var u=t.$ku.a("chart",n,i,r);return i=u.brushes,r=u.outlines,u.ret}(),u=new t.b3,u.__fill=e.f().css("color"),f=t.$fj.c(n),{brushes:i,outlines:r,fontBrush:u,font:f}},a:null,b:null,o:null,g:null,n:function(t){var i=this,r,h,u,f,e,o,s,c;if(t==null){for(r=i.e().getEnumerator();r.moveNext();)h=r.current(),h.ar(null);return}for(i.f(n(t)),function(){var n=i.j(i.f(),u,f,e,o);return u=n.brushes,f=n.outlines,e=n.fontBrush,o=n.font,n.ret}(),i.a=u,i.b=f,i.o=e,i.g=o,i.c().brushes()==null&&i.c().brushes(i.a),i.c().outlines()==null&&i.c().outlines(i.b),s=i.e().getEnumerator();s.moveNext();)c=s.current(),c.ar(i.f())},d:function(){return!0},i:function(){this.n(null)},l:function(){for(var i,t,r,n=0;n<this.e().count();n++)for(i=this.e().__inner[n],t=0;t<i.aj.a().count();t++)r=i.aj.a().__inner[t],r.flush()},m:function(t,i){this.c().l(t);this.c().m(i);this.c().ay({__x:t,__y:i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("RingSeriesBaseView",n.ig.$ot)},!0);n.ig.util.defType("RingSeriesCollection:vx","ObservableCollection$1",{init:function(){t.$e4.init.call(this,t.$vu.$type)},$type:new n.ig.Type("RingSeriesCollection",t.$e4.$type.specialize(t.$vu.$type))},!0);n.ig.util.defType("SliceItem:vz","Object",{init:function(){n.ig.$op.init.call(this)},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_f:0,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("SliceItem",n.ig.$ot)},!0);n.ig.util.defType("SliceCollection:vy","ObservableCollection$1",{init:function(){t.$e4.init.call(this,t.$vz.$type)},_v:!1,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_w:!1,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},j:function(n,i){this.contains(i)||(this.v()&&i.b()!=null?this.w()?this.u().allowSliceSelection()&&(t.$e4.j.call(this,n,i),i.b().isSelected(!0)):this.u().allowSliceExplosion()&&(t.$e4.j.call(this,n,i),i.b().isExploded(!0)):t.$e4.j.call(this,n,i))},o:function(n,i){this.contains(i)?(this.remove(i),this.j(n,i)):t.$e4.o.call(this,n,i)},m:function(n){var i=this.__inner[n];t.$e4.m.call(this,n);this.v()&&i.b()!=null&&(this.w()?i.b().isSelected(!1):i.b().isExploded(!1))},h:function(){for(var n=0;n<this.count();)this.__inner[n].b()!=null&&(this.w()?this.__inner[n].b().isSelected(!1):this.__inner[n].b().isExploded(!1));t.$e4.h.call(this)},$type:new n.ig.Type("SliceCollection",t.$e4.$type.specialize(t.$vz.$type))},!0);n.ig.util.defType("XamDoughnutChart:vv","Control",{ai:null,ag:null,am:null,al:null,ae:null,init:function(){var u=this,i,r;this.ai=new t.vx;this.ag=new t.vw;this.am=new t.vy;this.al=new t.vy;t.$ak.init.call(this);i=this.aq();this.be(i);i.p();this.y(t.$vv.$type);this.ae=function(n,t){u.bi(n,t.propertyName(),t.oldValue(),t.newValue())};this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,this.ae);this.series().collectionChanged=n.ig.Delegate.prototype.combine(this.series().collectionChanged,this.bp.runOn(this));this.am.v(!0);this.am.w(!0);this.am.u(this);this.al.v(!0);this.al.u(this);r=n.ig.util.toNullable(t.$f.$type,null);this.isSurfaceInteractionDisabled(r)},rings:function(){return this.ag},allowSliceSelection:function(n){return arguments.length===1?(this.g(t.$vv.allowSliceSelectionProperty,n),n):this.c(t.$vv.allowSliceSelectionProperty)},isSurfaceInteractionDisabled:function(n){return arguments.length===1?(this.g(t.$vv.isSurfaceInteractionDisabledProperty,n),n):this.c(t.$vv.isSurfaceInteractionDisabledProperty)},allowSliceExplosion:function(n){return arguments.length===1?(this.g(t.$vv.allowSliceExplosionProperty,n),n):this.c(t.$vv.allowSliceExplosionProperty)},series:function(){return this.ai},bp:function(n,i){var f=new t.bh(t.$vu.$type,0),u,r;if(i.oldItems()!=null)for(u=i.oldItems().getEnumerator();u.moveNext();)r=u.current(),i.newItems()!=null&&i.newItems().contains(r)||(r.bu(),this.ar().t(r));this.bg();this.bl()},innerExtent:function(n){return arguments.length===1?(this.g(t.$vv.innerExtentProperty,n),n):this.c(t.$vv.innerExtentProperty)},selectedSlices:function(n){var t,i;if(arguments.length===1){for(this.am.v(!1),this.am.u(this),this.am=n,this.am.v(!0),this.am.w(!0),t=this.am.getEnumerator();t.moveNext();)i=t.current(),i.b().isSelected(!0);return n}return this.am},explodedSlices:function(n){var t,i;if(arguments.length===1){for(this.al.v(!1),this.al.u(this),this.al=n,this.al.v(!0),this.am.w(!1),t=this.al.getEnumerator();t.moveNext();)i=t.current(),i.b().isExploded(!0);return n}return this.al},selectedStyle:function(n){return arguments.length===1?(this.g(t.$vv.selectedStyleProperty,n),n):this.c(t.$vv.selectedStyleProperty)},centerData:function(n){return arguments.length===1?(this.g(t.$vv.centerDataProperty,n),n):this.c(t.$vv.centerDataProperty)},centerDataTemplate:function(n){return arguments.length===1?(this.g(t.$vv.centerDataTemplateProperty,n),n):this.c(t.$vv.centerDataTemplateProperty)},_ar:null,ar:function(n){return arguments.length===1?(this._ar=n,n):this._ar},bo:function(n,t){this.allowSliceSelection()&&(!this.selectedSlices().contains(n)&&t&&this.selectedSlices().add(n),this.selectedSlices().contains(n)&&!t&&this.selectedSlices().remove(n))},a8:function(n,t){this.allowSliceExplosion()&&(!this.explodedSlices().contains(n)&&t&&this.explodedSlices().add(n),this.explodedSlices().contains(n)&&!t&&this.explodedSlices().remove(n))},bi:function(n,t,i,r){var u,f;if(t=="SelectedStyle")for(u=this.series().getEnumerator();u.moveNext();)f=u.current(),f.selectedStyleResolved(r)},aq:function(){return new t.v1(this)},be:function(n){this.ar(n)},bl:function(){this.bh();this.bn();this.bm();this.bf();this.ar().w()},bn:function(){for(var n=this.series().getEnumerator(),t;n.moveNext();)t=n.current(),t.b1()},bf:function(){var t=this.ar().x();if(!t.isEmpty()&&t.width()!=0&&t.height()!=0){var r={__x:t.width()/2,__y:t.height()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},u=Math.min(t.width()/2,t.height()/2),i=this.innerExtent()*u/100*.9;this.ar().u(i*2,i*2);this.ar().r(r.__x-i,r.__y-i)}},bm:function(){for(var t=!1,i=this.ag.getEnumerator(),r,n,u;i.moveNext();)r=i.current(),r.f()&&(t=!0);if(t)for(n=this.ag.getEnumerator();n.moveNext();)u=n.current(),u.c().ao().l()},bh:function(){var i=this.ar().x();if(!i.isEmpty()&&i.width()!=0&&i.height()!=0){var h={__x:i.width()/2,__y:i.height()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r=Math.min(i.width()/2,i.height()/2),u=Math.max(i.width()/2,i.height()/2);i.width()>i.height()&&(r=r+u,u=r-u,r=r-u);for(var e=(100-this.innerExtent())/100*r/this.ag.count(),a=(100-this.innerExtent())/100*u/this.ag.count(),v=this.innerExtent()*r/100,y=this.innerExtent()*u/100,o=1,c=this.ag.getEnumerator();c.moveNext();){var f=c.current(),s=v+e*o,l=y+a*o;f.i(e);f.m(new t.y(s*2,l*2));f.k({__x:h.__x-s,__y:h.__y-l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});f.h(100-e/s*100);f.l();o++}}},bg:function(){var r,n,t,f,u,i;for(this.explodedSlices().clear(),this.selectedSlices().clear(),this.ag.clear(),this.ar().j(),r=0,n=0;n<this.series().count();n++)for(t=this.series().__inner[n],t.chart(this),this.ar().i(t),f=t.am(),u=f.getEnumerator();u.moveNext();)i=u.current(),i.d(this),i.j(r),this.ag.add(i),r++},bc:function(){this.bl()},sliceClick:null,bd:function(n,t){this.sliceClick!=null&&this.sliceClick(n,t)},propertyChanged:null,propertyUpdated:null,bk:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},provideContainer:function(n){this.ar().s(n)},notifyResized:function(){this.ar().v()},getContainerID:function(){return this.ar().h()},getCenterCoordinates:function(){return this.ar().g()},getHoleRadius:function(){return this.ar().d()},flush:function(){for(var n,t,i,r,u=0;u<this.series().count();u++)for(r=this.series().__inner[u].am(),n=0;n<r.count();n++)for(i=r.__inner[n].a().ah().h(),t=0;t<i.count();t++)i.__inner[t].flush()},holeDimensionsChanged:null,bb:function(){this.holeDimensionsChanged!=null&&this.holeDimensionsChanged(this,new t.wh(this.getCenterCoordinates(),this.getHoleRadius()))},exportVisualData:function(){var n=new t.v3;return n.series(new t.v4),n.viewport(this.ar().x()),this.ar().o(n),n},$type:new n.ig.Type("XamDoughnutChart",t.$ak.$type,[t.$a8.$type])},!0);n.ig.util.defType("XamDoughnutChartView:v1","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},init:function(i){n.ig.$op.init.call(this);this.x(t.$x.empty());this.g({__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.d(0);this.c(new t.bh(t.$vu.$type,0));this.a(i)},p:function(){},w:function(){},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},i:function(n){this.c().contains(n)||(n.provideContainer(this.f()),this.c().add(n))},t:function(n){this.c().contains(n)&&(n.provideContainer(null),this.c().remove(n))},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},v:function(){if(this.f()!=null){var n=this.f().width(),i=this.f().height();this.x(new t.x(0,0,0,n,i));this.b()!=null&&this.b().az(this.x());this.a().bc()}},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},s:function(i){var f=n(i),r,u;this.f(f);r=this.f().width();u=this.f().height();this.x(new t.x(0,0,0,r,u));this.b(new t.ek(this.f()));this.b().az(this.x());this.b().onMouseOver=n.ig.Delegate.prototype.combine(this.b().onMouseOver,this.m.runOn(this));this.b().onMouseLeave=n.ig.Delegate.prototype.combine(this.b().onMouseLeave,this.l.runOn(this));this.b().onMouseDown=n.ig.Delegate.prototype.combine(this.b().onMouseDown,this.k.runOn(this));this.b().onMouseUp=n.ig.Delegate.prototype.combine(this.b().onMouseUp,this.n.runOn(this));this.v()},q:function(i,r,u){for(var e,c,o,v,l,s,f,y,p,a=n.ig.util.toNullable(t.$f.$type,null),h=this.c().count()-1;h>=0;h--){if(e=this.c().__inner[h],n.ig.util.nullableEquals(e.isSurfaceInteractionDisabled(),a)){if(!n.ig.util.nullableEquals(this.a().isSurfaceInteractionDisabled(),a)&&this.a().isSurfaceInteractionDisabled().value())continue}else if(e.isSurfaceInteractionDisabled().value())continue;for(c=e.ao().e(),o=0;o<c.count();o++)for(v=c.__inner[o],l=v.aj.a(),s=0;s<l.count();s++)if(f=l.__inner[s],y={__x:i.__x-f.l(),__y:i.__y-f.m(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r(f.ao(),y),u=="mouseUp"&&(p=f.fk().bm(),p!=null))return}},n:function(n){var t=this;t.q(n,function(n,t){return n.ab(t)},"mouseUp")},k:function(n){var t=this;t.q(n,function(n,t){return n.y(t)},"mouseDown")},l:function(n){var t=this;t.q(n,function(n,t){return n.z(t)},"mouseLeave")},m:function(n,t,i){var r=this;r.q(n,function(n,r){return n.aa(r,t,i)},"mouseOver")},h:function(){return this.f().attr("id")},r:function(){if(!this.x().isEmpty()&&this.x().width()!=0&&this.x().height()!=0){var n=this.g().__x,t=this.g().__y;this.g().__x=this.x().width()/2;this.g().__y=this.x().height()/2;(this.g().__x!=n||this.g().__y!=t)&&this.a().bb()}},u:function(n){var t=this.d();this.d(n/2);t!=this.d()&&this.a().bb()},j:function(){},o:function(i){var u=this,r,f,s,h,e,o,c;for(i.width(u.a().width()),i.height(u.a().height()),i.holeRadius(u.a().getHoleRadius()),r=0;r<u.a().series().count();r++)for(i.series().add(new t.v5),i.series().__inner[r].rings(new t.v6),i.series().__inner[r].name(u.a().series().__inner[r].name()),i.series().__inner[r].labelExtent(u.a().series().__inner[r].labelExtent()),i.series().__inner[r].leaderLineMargin(u.a().series().__inner[r].leaderLineMargin()),i.series().__inner[r].leaderLineType(u.a().series().__inner[r].leaderLineType().toString()),i.series().__inner[r].labelsPosition(u.a().series().__inner[r].labelsPosition().toString()),i.series().__inner[r].leaderLineVisibility(u.a().series().__inner[r].leaderLineVisibility()),f=0;f<u.a().series().__inner[r].am().count();f++)for(i.series().__inner[r].rings().add(new t.v7),i.series().__inner[r].rings().__inner[f].arcs(new t.v8),s=0;s<u.a().series().__inner[r].am().__inner[f].g().count();s++)for(i.series().__inner[r].rings().__inner[f].arcs().add(new t.v9),i.series().__inner[r].rings().__inner[f].arcs().__inner[s].a(new t.wa),h=0;h<u.a().series().__inner[r].am().__inner[f].g().__inner[s].e().count();h++)null!=u.a().series().__inner[r].am().__inner[f].g().__inner[s].e().__inner[h].b()&&(i.series().__inner[r].rings().__inner[f].arcs().__inner[s].a().add(new t.wb),e=new t.wb,o=u.a().series().__inner[r].am().__inner[f].g().__inner[s].e().__inner[h].b(),e.visibility(o.__visibility),e.endAngle(o.ar()),e.startAngle(o.ax()),e.radius(o.aw()),e.origin(o.a4()),e.explodedOrigin(o.a2()),e.index(o.az()),e.isExploded(o.isExploded()),e.isSelected(o.isSelected()),e.outline(o.by()),e.backgroundPath(new t.me(1,"slicePath",o.ai().f())),i.series().__inner[r].rings().__inner[f].arcs().__inner[s].a().__inner[h]=e,c=o.ag(),null!=c&&(i.series().__inner[r].rings().__inner[f].arcs().__inner[s].a().__inner[h].labelVisualData(function(){var n=new t.wc;return n.labelSize(c.ak().size()),n.labelValue(c.af().aa()),n}()),isNaN(c.l())||isNaN(c.m())||i.series().__inner[r].rings().__inner[f].arcs().__inner[s].a().__inner[h].labelVisualData().labelPosition({__x:c.l(),__y:c.m(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})))},$type:new n.ig.Type("XamDoughnutChartView",n.ig.$ot)},!0);n.ig.util.defType("AssigningCategoryStyleEventArgsBase:mh","Object",{init:function(){n.ig.$op.init.call(this)},_startIndex:0,startIndex:function(n){return arguments.length===1?(this._startIndex=n,n):this._startIndex},_endIndex:0,endIndex:function(n){return arguments.length===1?(this._endIndex=n,n):this._endIndex},_startDate:null,startDate:function(n){return arguments.length===1?(this._startDate=n,n):this._startDate},_endDate:null,endDate:function(n){return arguments.length===1?(this._endDate=n,n):this._endDate},_getItems:null,getItems:function(n){return arguments.length===1?(this._getItems=n,n):this._getItems},_fill:null,fill:function(n){return arguments.length===1?(this._fill=n,n):this._fill},_stroke:null,stroke:function(n){return arguments.length===1?(this._stroke=n,n):this._stroke},_opacity:0,opacity:function(n){return arguments.length===1?(this._opacity=n,n):this._opacity},_highlightingInfo:null,highlightingInfo:function(n){return arguments.length===1?(this._highlightingInfo=n,n):this._highlightingInfo},_maxAllSeriesHighlightingProgress:0,maxAllSeriesHighlightingProgress:function(n){return arguments.length===1?(this._maxAllSeriesHighlightingProgress=n,n):this._maxAllSeriesHighlightingProgress},_sumAllSeriesHighlightingProgress:0,sumAllSeriesHighlightingProgress:function(n){return arguments.length===1?(this._sumAllSeriesHighlightingProgress=n,n):this._sumAllSeriesHighlightingProgress},_highlightingHandled:!1,highlightingHandled:function(n){return arguments.length===1?(this._highlightingHandled=n,n):this._highlightingHandled},_hasDateRange:!1,hasDateRange:function(n){return arguments.length===1?(this._hasDateRange=n,n):this._hasDateRange},_isNegativeShape:!1,isNegativeShape:function(n){return arguments.length===1?(this._isNegativeShape=n,n):this._isNegativeShape},_isThumbnail:!1,isThumbnail:function(n){return arguments.length===1?(this._isThumbnail=n,n):this._isThumbnail},$type:new n.ig.Type("AssigningCategoryStyleEventArgsBase",n.ig.$ot)},!0);n.ig.util.defType("AssigningCategoryStyleEventArgs:mg","AssigningCategoryStyleEventArgsBase",{init:function(){t.$mh.init.call(this)},_strokeThickness:0,strokeThickness:function(n){return arguments.length===1?(this._strokeThickness=n,n):this._strokeThickness},_strokeDashArray:null,strokeDashArray:function(n){return arguments.length===1?(this._strokeDashArray=n,n):this._strokeDashArray},_strokeDashCap:null,strokeDashCap:function(n){return arguments.length===1?(this._strokeDashCap=n,n):this._strokeDashCap},_radiusX:0,radiusX:function(n){return arguments.length===1?(this._radiusX=n,n):this._radiusX},_radiusY:0,radiusY:function(n){return arguments.length===1?(this._radiusY=n,n):this._radiusY},$type:new n.ig.Type("AssigningCategoryStyleEventArgs",t.$mh.$type)},!0);n.ig.util.defType("AssigningCategoryMarkerStyleEventArgs:ml","AssigningCategoryStyleEventArgsBase",{init:function(){t.$mh.init.call(this)},$type:new n.ig.Type("AssigningCategoryMarkerStyleEventArgs",t.$mh.$type)},!0);n.ig.util.defType("ChartAxisRangeChangedEventArgs:tu","EventArgs",{init:function(n,i,r,u,f,e){t.$en.init.call(this);this.chart(n);this.axis(i);this.oldMinimumValue(r);this.minimumValue(u);this.oldMaximumValue(f);this.maximumValue(e)},_chart:null,chart:function(n){return arguments.length===1?(this._chart=n,n):this._chart},_axis:null,axis:function(n){return arguments.length===1?(this._axis=n,n):this._axis},_oldMinimumValue:0,oldMinimumValue:function(n){return arguments.length===1?(this._oldMinimumValue=n,n):this._oldMinimumValue},_minimumValue:0,minimumValue:function(n){return arguments.length===1?(this._minimumValue=n,n):this._minimumValue},_oldMaximumValue:0,oldMaximumValue:function(n){return arguments.length===1?(this._oldMaximumValue=n,n):this._oldMaximumValue},_maximumValue:0,maximumValue:function(n){return arguments.length===1?(this._maximumValue=n,n):this._maximumValue},$type:new n.ig.Type("ChartAxisRangeChangedEventArgs",t.$en.$type)},!0);n.ig.util.defType("StackedSeriesCreatedEventArgs:tc","EventArgs",{init:function(n){t.$en.init.call(this);this.c(n)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},brush:function(n){return arguments.length===1?(this.c().brush(n),n):this.c().brush()},legendItemTemplate:function(n){return arguments.length===1?(this.c().legendItemTemplate(n),n):this.c().legendItemTemplate()},legendItemBadgeTemplate:function(n){return arguments.length===1?(this.c().legendItemBadgeTemplate(n),n):this.c().legendItemBadgeTemplate()},legendItemVisibility:function(n){return arguments.length===1?(this.c().legendItemVisibility(n),n):this.c().legendItemVisibility()},outline:function(n){return arguments.length===1?(this.c().outline(n),n):this.c().outline()},dashArray:function(n){return arguments.length===1?(this.c().dashArray(n),n):this.c().dashArray()},dashCap:function(n){return arguments.length===1?(this.c().dashCap(n),n):this.c().dashCap()},index:function(){return this.c().aq()},thickness:function(n){return arguments.length===1?(this.c().thickness(n),n):this.c().thickness()},title:function(n){return arguments.length===1?(this.c().title(n),n):this.c().title()},markerBrush:function(n){return arguments.length===1?(this.c().markerBrush(n),n):this.c().markerBrush()},markerOutline:function(n){return arguments.length===1?(this.c().markerOutline(n),n):this.c().markerOutline()},markerStyle:function(n){return arguments.length===1?(this.c().markerStyle(n),n):this.c().markerStyle()},markerTemplate:function(n){return arguments.length===1?(this.c().markerTemplate(n),n):this.c().markerTemplate()},markerType:function(n){return arguments.length===1?(this.c().markerType(n),n):this.c().markerType()},startCap:function(n){return arguments.length===1?(this.c().startCap(n),n):this.c().actualStartCap()},endCap:function(n){return arguments.length===1?(this.c().endCap(n),n):this.c().actualEndCap()},$type:new n.ig.Type("StackedSeriesCreatedEventArgs",t.$en.$type)},!0);n.ig.util.defType("FinancialSeries:q2","Series",{hc:function(n){t.$aj.hc.call(this,n);this.j7(n)},_j7:null,j7:function(n){return arguments.length===1?(this._j7=n,n):this._j7},isFinancial:function(){return!0},init:function(){this.k5=new t.f0(t.$jx.$type.specialize(Number),String,0);this.k6=new t.f0(String,String,0);this.kv=!1;this.ku=!1;t.$aj.init.call(this);this.jz=new t.mf;this.kw(!1);this.j2(new t.q5);this.jx(new t.ks(3));this.y(t.$q2.$type)},negativeBrush:function(n){return arguments.length===1?(this.g(t.$q2.negativeBrushProperty,n),n):this.c(t.$q2.negativeBrushProperty)},xAxis:function(n){return arguments.length===1?(this.g(t.$q2.xAxisProperty,n),n):this.c(t.$q2.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$q2.yAxisProperty,n),n):this.c(t.$q2.yAxisProperty)},openMemberPath:function(n){return arguments.length===1?(this.g(t.$q2.openMemberPathProperty,n),n):this.c(t.$q2.openMemberPathProperty)},kj:function(n){if(arguments.length===1){if(this.ki!=n){var t=this.ki;this.ki=n;this.raisePropertyChanged("OpenColumn",t,this.ki)}return n}return this.ki},ki:null,highMemberPath:function(n){return arguments.length===1?(this.g(t.$q2.highMemberPathProperty,n),n):this.c(t.$q2.highMemberPathProperty)},kf:function(n){if(arguments.length===1){if(this.ke!=n){var t=this.ke;this.ke=n;this.raisePropertyChanged("HighColumn",t,this.ke)}return n}return this.ke},ke:null,lowMemberPath:function(n){return arguments.length===1?(this.g(t.$q2.lowMemberPathProperty,n),n):this.c(t.$q2.lowMemberPathProperty)},kh:function(n){if(arguments.length===1){if(this.kg!=n){var t=this.kg;this.kg=n;this.raisePropertyChanged("LowColumn",t,this.kg)}return n}return this.kg},kg:null,closeMemberPath:function(n){return arguments.length===1?(this.g(t.$q2.closeMemberPathProperty,n),n):this.c(t.$q2.closeMemberPathProperty)},kd:function(n){if(arguments.length===1){if(this.kc!=n){var t=this.kc;this.kc=n;this.raisePropertyChanged("CloseColumn",t,this.kc)}return n}return this.kc},kc:null,volumeMemberPath:function(n){return arguments.length===1?(this.g(t.$q2.volumeMemberPathProperty,n),n):this.c(t.$q2.volumeMemberPathProperty)},km:function(n){if(arguments.length===1){if(this.kl!=n){var t=this.kl;this.kl=n;this.raisePropertyChanged("VolumeColumn",t,this.kl)}return n}return this.kl},kl:null,isCustomCategoryStyleAllowed:function(n){return arguments.length===1?(this.g(t.$q2.isCustomCategoryStyleAllowedProperty,n),n):this.c(t.$q2.isCustomCategoryStyleAllowedProperty)},_kw:!1,kw:function(n){return arguments.length===1?(this._kw=n,n):this._kw},assigningCategoryStyle:null,k1:function(){return this.assigningCategoryStyle!=null&&this.kw()||this.isHighlightingEnabled()},ml:function(n){this.assigningCategoryStyle!=null&&this.kw()&&this.assigningCategoryStyle(this,n)},jz:null,mj:function(n,t,i,r,u,f){var o=this.bk();this.jz.ac(n,t,i,r,u,f,o);var e=this.jz.b(),s=null,h=this.bb();o&&this.seriesViewer()!=null&&(s=this.seriesViewer().ap().a(this,h,r,e.startIndex(),e.endIndex(),!1),e.highlightingInfo(s));e.isThumbnail(f);this.ml(e);this.jz.aa(s,f,o)},li:function(n){return this.dc(n,this.xAxis())},getPreviousOrExactIndex:function(n,i){return this.d5(n,i,this.xAxis(),this.li.runOn(this),new t.q8(this.kj(),this.kf(),this.kh(),this.kd(),this.km()))},getNextOrExactIndex:function(n,i){return this.d3(n,i,this.xAxis(),this.li.runOn(this),new t.q8(this.kj(),this.kf(),this.kh(),this.kd(),this.km()))},c8:function(n,t,i,r,u){if(i==null)return Number.POSITIVE_INFINITY;var f=this.xAxis().f3;return this.c9(n,t,this.xAxis(),r,u,f,this.li.runOn(this))},getOffsetValue:function(){return this.getOffset(this.view().bw(),this.view().bv())},getCategoryWidth:function(){return this.xAxis().getCategorySize(this.view().bw(),this.view().bv())},getSeriesValuePosition:function(n,t,i){return this.et(n,t,i,this.getOffset(this.view().bw(),this.view().bv()),this.yAxis(),this.xAxis(),null,null,null)},getSeriesValue:function(n,i,r){var f=this.getOffset(this.view().bw(),this.view().bv()),u=new t.iu(this.view().bw(),this.view().bv(),this.xAxis().isInverted());return u.b=this.seriesViewer().viewportRect(),this.dk(new t.q8(this.kj(),this.kf(),this.kh(),this.kd(),this.km()),n,this.xAxis(),u,f,this.li.runOn(this),i,r)},getSeriesHighValue:function(n,i,r){var f=this.getOffset(this.view().bw(),this.view().bv()),u=new t.iu(this.view().bw(),this.view().bv(),this.xAxis().isInverted());return u.b=this.seriesViewer().viewportRect(),this.dk(this.kf(),n,this.xAxis(),u,f,this.li.runOn(this),i,r)},getSeriesLowValue:function(n,i,r){var f=this.getOffset(this.view().bw(),this.view().bv()),u=new t.iu(this.view().bw(),this.view().bv(),this.xAxis().isInverted());return u.b=this.seriesViewer().viewportRect(),this.dk(this.kh(),n,this.xAxis(),u,f,this.li.runOn(this),i,r)},getSeriesCloseValue:function(n,i,r){var f=this.getOffset(this.view().bw(),this.view().bv()),u=new t.iu(this.view().bw(),this.view().bv(),this.xAxis().isInverted());return u.b=this.seriesViewer().viewportRect(),this.dk(this.kd(),n,this.xAxis(),u,f,this.li.runOn(this),i,r)},getSeriesOpenValue:function(n,i,r){var f=this.getOffset(this.view().bw(),this.view().bv()),u=new t.iu(this.view().bw(),this.view().bv(),this.xAxis().isInverted());return u.b=this.seriesViewer().viewportRect(),this.dk(this.kj(),n,this.xAxis(),u,f,this.li.runOn(this),i,r)},getSeriesVolumeValue:function(n,i,r){var f=this.getOffset(this.view().bw(),this.view().bv()),u=new t.iu(this.view().bw(),this.view().bv(),this.xAxis().isInverted());return u.b=this.seriesViewer().viewportRect(),this.dk(this.km(),n,this.xAxis(),u,f,this.li.runOn(this),i,r)},getSeriesHighValuePosition:function(n,t,i){var r=this;return r.et(n,t,i,r.getOffset(r.view().bw(),r.view().bv()),r.yAxis(),r.xAxis(),r.getSeriesHighValue.runOn(r),function(n,t){return r.d5(n,t,r.xAxis(),r.li.runOn(r),r.kf())},function(n,t){return r.d3(n,t,r.xAxis(),r.li.runOn(r),r.kf())})},getSeriesLowValuePosition:function(n,t,i){var r=this;return r.et(n,t,i,r.getOffset(r.view().bw(),r.view().bv()),r.yAxis(),r.xAxis(),r.getSeriesLowValue.runOn(r),function(n,t){return r.d5(n,t,r.xAxis(),r.li.runOn(r),r.kh())},function(n,t){return r.d3(n,t,r.xAxis(),r.li.runOn(r),r.kh())})},getSeriesOpenValuePosition:function(n,t,i){var r=this;return r.et(n,t,i,r.getOffset(r.view().bw(),r.view().bv()),r.yAxis(),r.xAxis(),r.getSeriesOpenValue.runOn(r),function(n,t){return r.d5(n,t,r.xAxis(),r.li.runOn(r),r.kj())},function(n,t){return r.d3(n,t,r.xAxis(),r.li.runOn(r),r.kj())})},getSeriesCloseValuePosition:function(n,t,i){var r=this;return r.et(n,t,i,r.getOffset(r.view().bw(),r.view().bv()),r.yAxis(),r.xAxis(),r.getSeriesCloseValue.runOn(r),function(n,t){return r.d5(n,t,r.xAxis(),r.li.runOn(r),r.kd())},function(n,t){return r.d3(n,t,r.xAxis(),r.li.runOn(r),r.kd())})},getSeriesVolumeValuePosition:function(n,t,i){var r=this;return r.et(n,t,i,r.getOffset(r.view().bw(),r.view().bv()),r.yAxis(),r.xAxis(),r.getSeriesVolumeValue.runOn(r),function(n,t){return r.d5(n,t,r.xAxis(),r.li.runOn(r),r.km())},function(n,t){return r.d3(n,t,r.xAxis(),r.li.runOn(r),r.km())})},gs:function(){t.$aj.gs.call(this);this.xAxis()!=null&&this.xAxis().du(!1);this.yAxis()!=null&&this.yAxis().du(!1)},h3:function(){this.j7().by().e(this.resolution());this.renderSeries(!1)},h2:function(){this.k2()&&this.du()<.05&&this.cn(!0);this.j7().by().e(this.resolution());this.renderSeries(!1)},k5:null,k6:null,kk:function(n,t,i){var r=this.a8(t);return this.k5.add(r,t),this.k6.add(t,i),r},mi:function(n,t){if(t!=null){n.deregisterColumn(t);var i=this.k5.item(t);this.k6.remove(i);this.k5.remove(t)}},kv:!1,hh:function(i,r,u,f){t.$aj.hh.call(this,i,r,u,f);switch(r){case"SyncLink":this.syncLink()!=null&&this.seriesViewer()!=null&&(this.j7().by().e(this.resolution()),this.renderSeries(!1));break;case"SeriesViewer":u!=null&&f==null&&(this.xAxis()!=null&&this.xAxis().deregisterSeries(this),this.yAxis()!=null&&this.yAxis().deregisterSeries(this));u==null&&f!=null&&(this.xAxis()!=null&&this.xAxis().registerSeries(this),this.yAxis()!=null&&this.yAxis().registerSeries(this));this.j7().by().e(this.resolution());this.renderSeries(!1);break;case"FastItemsSource":this.kv=!0;n.ig.util.cast(t.$jw.$type,u)!=null&&(this.mi(n.ig.util.cast(t.$jw.$type,u),this.kj()),this.mi(n.ig.util.cast(t.$jw.$type,u),this.kf()),this.mi(n.ig.util.cast(t.$jw.$type,u),this.kh()),this.mi(n.ig.util.cast(t.$jw.$type,u),this.kd()),this.mi(n.ig.util.cast(t.$jw.$type,u),this.km()),this.kj(null),this.kf(null),this.kh(null),this.kd(null),this.km(null));n.ig.util.cast(t.$jw.$type,f)!=null&&(this.openMemberPath()!=null&&this.kj(this.kk(n.ig.util.cast(t.$jw.$type,f),this.openMemberPath(),"OpenColumn")),this.highMemberPath()!=null&&this.kf(this.kk(n.ig.util.cast(t.$jw.$type,f),this.highMemberPath(),"HighColumn")),this.lowMemberPath()!=null&&this.kh(this.kk(n.ig.util.cast(t.$jw.$type,f),this.lowMemberPath(),"LowColumn")),this.closeMemberPath()!=null&&this.kd(this.kk(n.ig.util.cast(t.$jw.$type,f),this.closeMemberPath(),"CloseColumn")),this.volumeMemberPath()!=null&&this.km(this.kk(n.ig.util.cast(t.$jw.$type,f),this.volumeMemberPath(),"VolumeColumn")));this.kv=!1;this.yAxis()==null||this.yAxis().updateRange()||(this.j7().by().e(this.resolution()),this.renderSeries(!1));break;case"OpenMemberPath":this.bb()!=null&&(this.mi(this.bb(),this.kj()),this.kj(this.kk(this.bb(),this.openMemberPath(),"OpenColumn")));break;case"OpenColumn":this.yAxis()==null||this.yAxis().updateRange()||this.kv||(this.j7().by().e(this.resolution()),this.renderSeries(!1));break;case"HighMemberPath":this.bb()!=null&&(this.mi(this.bb(),this.kf()),this.kf(this.kk(this.bb(),this.highMemberPath(),"HighColumn")));break;case"HighColumn":this.yAxis()==null||this.yAxis().updateRange()||this.kv||(this.j7().by().e(this.resolution()),this.renderSeries(!1));break;case"LowMemberPath":this.bb()!=null&&(this.mi(this.bb(),this.kh()),this.kh(this.kk(this.bb(),this.lowMemberPath(),"LowColumn")));break;case"LowColumn":this.yAxis()==null||this.yAxis().updateRange()||this.kv||(this.j7().by().e(this.resolution()),this.renderSeries(!1));break;case"CloseMemberPath":this.bb()!=null&&(this.mi(this.bb(),this.kd()),this.kd(this.kk(this.bb(),this.closeMemberPath(),"CloseColumn")));break;case"CloseColumn":this.yAxis()==null||this.yAxis().updateRange()||this.kv||(this.j7().by().e(this.resolution()),this.renderSeries(!1));break;case"VolumeMemberPath":this.bb()!=null&&(this.mi(this.bb(),this.km()),this.km(this.kk(this.bb(),this.volumeMemberPath(),"VolumeColumn")));break;case"VolumeColumn":this.yAxis()==null||this.yAxis().updateRange()||this.kv||(this.j7().by().e(this.resolution()),this.renderSeries(!1));break;case"XAxis":u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);this.j7().by().e(this.resolution());this.renderSeries(!1);this.gy();break;case"YAxis":u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);this.j7().by().e(this.resolution());this.yAxis()!=null&&this.yAxis().updateRange();this.renderSeries(!1);this.gy();break;case"TransitionProgress":if(this.jy.d(this.du(),this.jw,this.jv),this.bn(this.view()))return;this.du()==1?(this.jv.w(),this.mm(this.jv,this.j7()),this.k2()&&(this.k2(!1),this.gi(),this.a5().intervalMilliseconds(this.dl()),this.a5().easingFunction(this.transitionEasingFunction()))):this.mm(this.jy,this.j7());break;case"NegativeBrush":this.renderSeries(!1);break;case"IsCustomCategoryStyleAllowed":this.kw(this.kx());this.renderSeries(!1)}},ko:function(n,t,i){var r,u;if(t<n||n<0||n>this.bb().count()||t<0||t>this.bb().count()||i==null)return null;var f=new Array(t-n+1),e=i.isSorting(),o=null;for(e&&(o=i.sortedIndices()),r=n;r<=t;r++)u=r,e&&(u=o.__inner[u]),f[r-n]=this.bb().item(r);return f},lq:function(n){return n.by().b()},lr:function(n){return n.by().c()},getCategoryItems:function(n,t){return this.ko(n,t,this.yAxis())},_ka:null,ka:function(n){return arguments.length===1?(this._ka=n,n):this._ka},ky:function(){return!1},b2:function(){return!0},ah:function(n,t){var i,r;return this.ky()?(i=this.j9(n,t,this.ka()),this.ka(i),i):(r=this.j8(n,t,this.ka()),this.ka(r),r)},lt:function(n){var o=this.jv,l,a,s,i,h,u;this.bl()&&(o=this.jy);var f=this.view().bv(),e=this.view().bw(),c=this.xAxis(),v=new t.iu(e,f,c.isInverted()),r=0;for(c.isVertical()?(l=(n.__y-e.top())/e.height(),r=l*f.height()+f.top()):(a=(n.__x-e.left())/e.width(),r=a*f.width()+f.left()),s=o.h.count(),i=0,i=0;i<s;i++)if(h=o.h.__inner[i],u=null,i<s-1&&(u=o.h.__inner[i+1]),h[0]<=r&&u==null||u[0]>=r)return u!=null?Math.abs(h[0]-r)<Math.abs(u[0]-r)?i:i+1:i;return i},j9:function(i,r,u){var v=this.bb().count(),y=this.j7().by().c(),p=this.j7().by().d(),s=this.j7().by().b(),a=this.xAxis(),f=-1,o=-1,c,h,l,e;return(a.isSorting()?(c=this.jv,this.bl()&&(c=this.jy),h=this.lt(r),f=h,o=h):(l=this.getItemIndex(r),f=Math.floor(n.ig.intDivide(l,s))*s,o=f+(s-1)),u!=null&&u.startIndex()==f&&u.endIndex()==o)?u:(e=new t.mj,e.series(this),e.startIndex(f),e.endIndex(o),e)},j8:function(n,i,r){var u=new t.mj;return(u.series(this),u.startIndex(0),u.endIndex(this.bb().count()-1),r!=null&&r.startIndex()==u.startIndex()&&r.endIndex()==u.endIndex())?r:u},kx:function(){return this.isCustomCategoryStyleAllowed()},getExactItemIndex:function(n){var t=this.view().bw(),i=this.view().bv(),r=-1;if(!t.isEmpty()&&!i.isEmpty()&this.xAxis()!=null){var u=this.xAxis().getUnscaledValue2(i.left(),t,i,this.xAxis().categoryMode()),e=this.xAxis().getUnscaledValue2(i.right(),t,i,this.xAxis().categoryMode()),o=(n.__x-t.left())/t.width(),f=u+o*(e-u);this.xAxis().categoryMode()!=0&&(f-=.5);r=f}return r},getItemIndex:function(n){return Math.round(this.getExactItemIndex(n))},ls:function(i){var r=this.view().bw(),u=this.view().bv();if(r.isEmpty()||u.isEmpty())return-1;var f=new t.iu(r,u,this.xAxis().isInverted()),o=n.ig.util.cast(t.$kr.$type,this.xAxis()),e=this.xAxis().getUnscaledValue(u.left(),f),s=this.xAxis().getUnscaledValue(u.right(),f),h=(i.__x-r.left())/r.width(),c=e+(s-e)*h;return o.getIndexClosestToUnscaledValue(c)},getItem:function(i){var r=0;if(n.ig.util.cast(t.$kr.$type,this.xAxis())!==null){if(r=this.ls(i),r==-1)return null}else r=this.getItemIndex(i);return r>=0&&this.bb()!=null&&r<this.bb().count()?this.bb().item(r):null},jw:null,jy:null,jv:null,getOffset:function(n,t){var i=0,r;if(this.xAxis()==null)return i;r=this.xAxis().categoryMode();switch(r){case 0:i=0;break;case 1:i=.5*this.xAxis().getCategorySize(n,t);break;case 2:i=this.xAxis().getGroupCenter(this.index(),n,t)}return this.xAxis().isInverted()&&(i=-i),i},transitionInMode:function(n){return arguments.length===1?(this.g(t.$q2.transitionInModeProperty,n),n):this.c(t.$q2.transitionInModeProperty)},isTransitionInEnabled:function(n){return arguments.length===1?(this.g(t.$q2.isTransitionInEnabledProperty,n),n):this.c(t.$q2.isTransitionInEnabledProperty)},ci:function(){return this.isTransitionInEnabled()},j0:function(){return 11},az:function(){return 3},_k2:!1,k2:function(n){return arguments.length===1?(this._k2=n,n):this._k2},mm:function(n,t){this.jq(n.aa());t.aq()},mz:null,m0:function(){return this.mz},mk:function(n){n.v()},ct:function(n,i,r){var u=t.$aj.ct.call(this,n,i,r),f=r;return(this.bb()==null||this.bb().count()==0||!r.m()||i.isEmpty()||n.isEmpty()||this.xAxis()==null||this.yAxis()==null||f.by().b()<1||this.xAxis().seriesViewer()==null||this.yAxis().seriesViewer()==null||this.yAxis().actualMinimumValue()==this.yAxis().actualMaximumValue()||this.xAxis().itemsSource()==null||this.xAxis().f3<1)&&(f.by().b(0),u=!1),u},getViewInfo:function(n,t){return t=this.view().bw(),n=this.view().bv(),{viewportRect:n,windowRect:t}},_j2:null,j2:function(n){return arguments.length===1?(this._j2=n,n):this._j2},lo:function(n){var i=0,r=n.bw(),u=n.bv(),f;return r.isEmpty()||u.isEmpty()||this.yAxis()==null||(f=new t.iu(r,u,this.yAxis().isInverted()),i=this.yAxis().getScaledValue(this.yAxis().referenceValue(),f)),i},gi:function(){t.$aj.gi.call(this);this.jw.w();this.jv.w();this.jy.w()},hq:function(n){var i=this,r;if(t.$aj.hq.call(i,n),i.j7().by().e(i.resolution()),!i.bn(i.view())){if(i.cj()){i.bl()?i.mm(i.jy,i.j7()):i.mm(i.jv,i.j7());return}i.cg(n)?(r=i.jw,i.bl()?(i.a5().needsFlush()&&i.a5().flush(),i.jw=i.jy,i.jy=r):(i.jw=i.jv,i.jv=r),i.mk(i.jv,i.j7()),i.cn()&&(i.a5().stop(),i.a5().intervalMilliseconds(i.dm()),i.a5().easingFunction(i.transitionInEasingFunction()!=null?i.transitionInEasingFunction():i.transitionEasingFunction()),i.j2().p(i.jw,i.jv,i.isVertical(),i.xAxis(),i.yAxis(),i.transitionInMode(),i.j0(),i.transitionInSpeedType(),i.az(),function(){return i.lo(i.j7())},i.j7().bv())),i.gf(),i.hw(),i.cn()&&(i.cn(!1),i.k2(!0))):(i.mk(i.jv,i.j7()),i.mm(i.jv,i.j7()))}},typical:null,typicalBasedOn:null,k3:function(n){for(var t=n.getEnumerator(),i;t.moveNext();){i=t.current();switch(i){case"HighColumn":if(this.kf()==null)return!1;break;case"LowColumn":if(this.kh()==null)return!1;break;case"OpenColumn":if(this.kj()==null)return!1;break;case"CloseColumn":if(this.kd()==null)return!1;break;case"VolumeColumn":if(this.km()==null)return!1}}return!0},k4:function(){return this.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,this.xAxis())!==null},k9:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:!1,$b:null,$c:0,$d:null,$e:0,$f:null,$g:0,$h:0,$i:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$a=!1;this.$state=1;break;case 1:this.$state=this.$this.typical!=null?2:11;break;case 2:this.$b=this.$this.j3(0,this.$this.bb().count());this.$this.typical(this.$this,new t.ra(0,this.$this.bb().count(),this.$b,this.$this.j4(this.$b)));this.$state=3;break;case 3:this.$state=this.$b.typicalColumn()!=null?4:10;break;case 4:this.$a=!0;this.$state=5;break;case 5:this.$d=this.$b.typicalColumn().getEnumerator();this.$state=8;break;case 6:return this.$c=this.$d.current(),this.$current=this.$c,this.$state=7,!0;case 7:this.$state=8;break;case 8:this.$state=this.$d.moveNext()?6:9;break;case 9:this.$state=10;break;case 10:this.$state=11;break;case 11:this.$state=12;break;case 12:this.$state=this.$a?30:13;break;case 13:this.$state=14;break;case 14:this.$state=this.$this.k4()&&n.ig.util.cast(t.$kr.$type,this.$this.xAxis()).sortedIndices()!=null?15:22;break;case 15:this.$b=this.$this.bb().count();this.$c=n.ig.util.cast(t.$kr.$type,this.$this.xAxis()).sortedIndices();this.$state=16;break;case 16:this.$d=0;this.$state=20;break;case 17:return this.$current=(this.$this.kf().item(this.$c.item(this.$d))+this.$this.kh().item(this.$c.item(this.$d))+this.$this.kd().item(this.$c.item(this.$d)))/3,this.$state=18,!0;case 18:this.$state=19;break;case 19:++this.$d;this.$state=20;break;case 20:this.$state=this.$d<this.$b?17:21;break;case 21:this.$state=29;break;case 22:this.$b=this.$this.bb().count();this.$state=23;break;case 23:this.$c=0;this.$state=27;break;case 24:return this.$current=(this.$this.kf().item(this.$c)+this.$this.kh().item(this.$c)+this.$this.kd().item(this.$c))/3,this.$state=25,!0;case 25:this.$state=26;break;case 26:++this.$c;this.$state=27;break;case 27:this.$state=this.$c<this.$b?24:28;break;case 28:this.$state=29;break;case 29:this.$state=30;break;case 30:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(Number,r)},k8:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:0,$b:null,$c:0,$d:0,$e:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$state=this.$this.k4()&&n.ig.util.cast(t.$kr.$type,this.$this.xAxis()).sortedIndices()!=null?2:13;break;case 2:this.$a=this.$this.kf().count();this.$b=n.ig.util.cast(t.$kr.$type,this.$this.xAxis()).sortedIndices();this.$state=3;break;case 3:this.$state=this.$a>0?4:6;break;case 4:return this.$current=this.$this.lp(this.$this.kf().item(this.$b.item(0))-this.$this.kh().item(this.$b.item(0))),this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$c=1;this.$state=11;break;case 8:return this.$current=Math.max(this.$this.lp(this.$this.kf().item(this.$b.item(this.$c))-this.$this.kh().item(this.$b.item(this.$c))),Math.max(this.$this.lp(Math.abs(this.$this.kf().item(this.$b.item(this.$c))-this.$this.kd().item(this.$b.item(this.$c-1)))),this.$this.lp(Math.abs(this.$this.kh().item(this.$b.item(this.$c))-this.$this.kd().item(this.$b.item(this.$c-1)))))),this.$state=9,!0;case 9:this.$state=10;break;case 10:++this.$c;this.$state=11;break;case 11:this.$state=this.$c<this.$a?8:12;break;case 12:this.$state=24;break;case 13:this.$a=this.$this.kf().count();this.$state=14;break;case 14:this.$state=this.$a>0?15:17;break;case 15:return this.$current=this.$this.lp(this.$this.kf().item(0)-this.$this.kh().item(0)),this.$state=16,!0;case 16:this.$state=17;break;case 17:this.$state=18;break;case 18:this.$b=1;this.$state=22;break;case 19:return this.$current=Math.max(this.$this.lp(this.$this.kf().item(this.$b)-this.$this.kh().item(this.$b)),Math.max(this.$this.lp(Math.abs(this.$this.kf().item(this.$b)-this.$this.kd().item(this.$b-1))),this.$this.lp(Math.abs(this.$this.kh().item(this.$b)-this.$this.kd().item(this.$b-1))))),this.$state=20,!0;case 20:this.$state=21;break;case 21:++this.$b;this.$state=22;break;case 22:this.$state=this.$b<this.$a?19:23;break;case 23:this.$state=24;break;case 24:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(Number,r)},k7:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:0,$b:null,$c:0,$d:0,$e:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$state=this.$this.k4()&&n.ig.util.cast(t.$kr.$type,this.$this.xAxis()).sortedIndices()!=null?2:13;break;case 2:this.$a=this.$this.kh().count();this.$b=n.ig.util.cast(t.$kr.$type,this.$this.xAxis()).sortedIndices();this.$state=3;break;case 3:this.$state=this.$a>0?4:6;break;case 4:return this.$current=this.$this.lp(this.$this.kh().item(this.$b.item(0))),this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$c=1;this.$state=11;break;case 8:return this.$current=Math.min(this.$this.lp(this.$this.kh().item(this.$b.item(this.$c))),this.$this.lp(this.$this.kd().item(this.$b.item(this.$c-1)))),this.$state=9,!0;case 9:this.$state=10;break;case 10:this.$c++;this.$state=11;break;case 11:this.$state=this.$c<this.$a?8:12;break;case 12:this.$state=24;break;case 13:this.$a=this.$this.kh().count();this.$state=14;break;case 14:this.$state=this.$a>0?15:17;break;case 15:return this.$current=this.$this.lp(this.$this.kh().item(0)),this.$state=16,!0;case 16:this.$state=17;break;case 17:this.$state=18;break;case 18:this.$b=1;this.$state=22;break;case 19:return this.$current=Math.min(this.$this.lp(this.$this.kh().item(this.$b)),this.$this.lp(this.$this.kd().item(this.$b-1))),this.$state=20,!0;case 20:this.$state=21;break;case 21:this.$b++;this.$state=22;break;case 22:this.$state=this.$b<this.$a?19:23;break;case 23:this.$state=24;break;case 24:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(Number,r)},la:function(i){return i==null?null:this.k4()&&n.ig.util.cast(t.$kr.$type,this.xAxis()).sortedIndices()!=null?new t.mr(i,n.ig.util.cast(t.$kr.$type,this.xAxis()).sortedIndices()):new t.ms(i)},ku:!1,lb:function(){var i=new t.bh(String,0),r,n;return(i.add("HighColumn"),i.add("LowColumn"),i.add("CloseColumn"),this.typicalBasedOn!=null&&this.bb()!=null&&!this.ku&&(this.ku=!0,r=this.j3(0,this.bb().count()),this.ku=!1,n=new t.ra(0,this.bb().count(),r,this.j4(r)),this.typicalBasedOn(this,n),n.basedOn()!=null&&n.basedOn().count()>0))?n.basedOn():i},lf:null,getOpenColumnAsArray:function(){var i;if(this.kj()==null)return null;if(this.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,this.xAxis())!==null){if(this.lf!=null)return this.lf.asArrayList();var r=new t.bh(Number,2,this.kj().count()),u=this.xAxis().sortedIndices(),f=this.kj().asArray();for(i=0;i<u.count();i++)r.add(f[u.__inner[i]]);return this.lf=r,this.lf.asArrayList()}return this.kj().asArray()},ld:null,getHighColumnAsArray:function(){var i;if(this.kf()==null)return null;if(this.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,this.xAxis())!==null){if(this.ld!=null)return this.ld.asArrayList();var r=new t.bh(Number,2,this.kf().count()),u=this.xAxis().sortedIndices(),f=this.kf().asArray();for(i=0;i<u.count();i++)r.add(f[u.__inner[i]]);return this.ld=r,this.ld.asArrayList()}return this.kf().asArray()},le:null,getLowColumnAsArray:function(){var i;if(this.kh()==null)return null;if(this.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,this.xAxis())!==null){if(this.le!=null)return this.le.asArrayList();var r=new t.bh(Number,2,this.kh().count()),u=this.xAxis().sortedIndices(),f=this.kh().asArray();for(i=0;i<u.count();i++)r.add(f[u.__inner[i]]);return this.le=r,this.le.asArrayList()}return this.kh().asArray()},lc:null,getCloseColumnAsArray:function(){var i;if(this.kd()==null)return null;if(this.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,this.xAxis())!==null){if(this.lc!=null)return this.lc.asArrayList();var r=new t.bh(Number,2,this.kd().count()),u=this.xAxis().sortedIndices(),f=this.kd().asArray();for(i=0;i<u.count();i++)r.add(f[u.__inner[i]]);return this.lc=r,this.lc.asArrayList()}return this.kd().asArray()},lg:null,getVolumeColumnAsArray:function(){var i;if(this.km()==null)return null;if(this.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,this.xAxis())!==null){if(this.lg!=null)return this.lg.asArrayList();var r=new t.bh(Number,2,this.km().count()),u=this.xAxis().sortedIndices(),f=this.km().asArray();for(i=0;i<u.count();i++)r.add(f[u.__inner[i]]);return this.lg=r,this.lg.asArrayList()}return this.km().asArray()},gj:function(i,r,u,f){var c,e,s,o,h;if(t.$aj.gj.call(this,i,r,u,f),this.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,this.xAxis())!==null){c=this.xAxis().sortedIndices();switch(i){case 1:for(e=r;e<u;e++)s=c.__inner[e],this.lf!=null&&this.lf.insert(e,this.kj().item(s)),this.ld!=null&&this.ld.insert(e,this.kf().item(s)),this.le!=null&&this.le.insert(e,this.kh().item(s)),this.lc!=null&&this.lc.insert(e,this.kd().item(s)),this.lg!=null&&this.lg.insert(e,this.km().item(s));break;case 0:this.lf!=null&&this.lf.removeRange(r,u);this.ld!=null&&this.ld.removeRange(r,u);this.le!=null&&this.le.removeRange(r,u);this.lc!=null&&this.lc.removeRange(r,u);this.lg!=null&&this.lg.removeRange(r,u);break;case 4:this.lf!=null&&(this.lf=new t.bh(Number,0));this.ld!=null&&(this.ld=new t.bh(Number,0));this.le!=null&&(this.le=new t.bh(Number,0));this.lc!=null&&(this.lc=new t.bh(Number,0));this.lg!=null&&(this.lg=new t.bh(Number,0));break;case 3:case 2:for(o=r;o<u;o++)h=c.__inner[o],this.lf!=null&&(this.lf.__inner[o]=this.kj().item(h)),this.ld!=null&&(this.ld.__inner[o]=this.kf().item(h)),this.le!=null&&(this.le.__inner[o]=this.kh().item(h)),this.lc!=null&&(this.lc.__inner[o]=this.kd().item(h)),this.lg!=null&&(this.lg.__inner[o]=this.km().item(h))}}},j3:function(n,i){var r=this,u=r.la(r.kj()),f=r.la(r.kd()),e=r.la(r.kf()),o=r.la(r.kh()),s=r.la(r.km());return function(){var h=new t.rb;return h.typicalColumn(new t.rc(1,new t.mu(r.k9()),r.lb())),h.trueRange(new t.rc(1,new t.mu(r.k8()),function(){var n=new t.bh(String,0);return n.add("HighColumn"),n.add("LowColumn"),n.add("CloseColumn"),n}())),h.trueLow(new t.rc(1,new t.mu(r.k7()),function(){var n=new t.bh(String,0);return n.add("LowColumn"),n.add("CloseColumn"),n}())),h.openColumn(u),h.closeColumn(f),h.highColumn(e),h.lowColumn(o),h.volumeColumn(s),h.calculateFrom(n),h.calculateCount(i),h.minimumValue(NaN),h.maximumValue(NaN),h.count(r.bb()!=null?r.bb().count():0),h}()},lp:function(n){return Number.isInfinity(n)||isNaN(n)?0:n},j4:function(n){var i=this;return function(){var r=new t.rd;return r.a(new t.re(1,t.$aj.eMA,new t.bh(String,0))),r.c(new t.re(1,t.$aj.sMA,new t.bh(String,0))),r.d(new t.re(1,t.$aj.sTDEV,new t.bh(String,0))),r.b(new t.re(1,t.$aj.movingSum,new t.bh(String,0))),r.h(new t.rh(1,function(n){return t.$aj.eMA(n.volumeColumn(),n.shortPeriod())},function(){var n=new t.bh(String,0);return n.add("VolumeColumn"),n}())),r.f(new t.rh(1,function(n){return t.$aj.eMA(n.volumeColumn(),n.longPeriod())},function(){var n=new t.bh(String,0);return n.add("VolumeColumn"),n}())),r.g(new t.rh(1,function(n){return t.$aj.eMA(n.typicalColumn(),n.shortPeriod())},n.typicalColumn().basedOn())),r.e(new t.rh(1,function(n){return t.$aj.eMA(n.typicalColumn(),n.longPeriod())},n.typicalColumn().basedOn())),r.k(t.$aj.toEnumerableRange),r.j(t.$aj.toEnumerable),r.i(i.lp.runOn(i)),r}()},categoryAxis:function(){return this.xAxis()},_jx:null,jx:function(n){return arguments.length===1?(this._jx=n,n):this._jx},hr:function(i,r){if(t.$aj.hr.call(this,i,r),!this.cl()){this.view().ax(r);return}var u=n.ig.util.cast(t.$q3.$type,this.av());(this.view().ax(r),u.by().e(this.resolution()),this.bn(this.av()))||(this.ck()||this.mk(this.jx(),u),this.ck(!1),this.mm(this.jx(),u),this.cl(!1))},$type:new n.ig.Type("FinancialSeries",t.$aj.$type,[t.$ha.$type])},!0);n.ig.util.defType("FinancialIndicator:wn","FinancialSeries",{au:function(){return new t.wo(this)},hc:function(n){t.$q2.hc.call(this,n);this.m2(n)},_m2:null,m2:function(n){return arguments.length===1?(this._m2=n,n):this._m2},init:function(){t.$q2.init.call(this);this.jw=new t.ks(3);this.jy=new t.ks(3);this.jv=new t.ks(3);this.m8(new t.bh(Number,0));this.m1(new t.im(-100,100))},nh:function(){this.yAxis()==null||this.yAxis().updateRange()||this.renderSeries(!0)},gj:function(i,r,u,f){var e=this,h,o,c,s;e.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,e.xAxis())!==null&&n.ig.util.cast(t.$kr.$type,e.xAxis()).notifyDataChanged();e.m2().b4().p(i,r,u,f);f!=null&&e.k6.containsKey(f)&&function(){var n=e.k6.tryGetValue(f,f);return f=n.value,n.ret}();e.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,e.xAxis())!==null&&(i=4,r=0,u=e.bb().count());switch(i){case 3:e.m6(r,u,f)&&(e.nj(r,u,f),e.nh(!0));break;case 2:e.m6(r,e.bb().count()-r,f)&&(e.nj(r,e.bb().count()-r,f),e.nh(!0));break;case 1:if(e.m6(r,e.bb().count()-r,f)){for(h=new Array(u),o=0;o<u;o++)h[o]=0;e.m8().insertRange(r,h);e.nj(r,e.bb().count()-r,f);e.nh(!0)}break;case 0:e.m6(r,e.bb().count()-r,f)&&(e.m8().removeRange(r,u),e.nj(r,e.bb().count()-r,f),e.nh(!0));break;case 4:if(e.m6(r,e.bb().count()-r,f)){for(e.m8(new t.bh(Number,2,e.bb().count())),c=new Array(u),s=0;s<u;s++)c[s]=0;e.m8().insertRange(0,c);e.nj(r,e.bb().count()-r,f);e.nh(!0)}}},displayType:function(n){return arguments.length===1?(this.g(t.$wn.displayTypeProperty,n),n):this.c(t.$wn.displayTypeProperty)},ignoreFirst:function(n){return arguments.length===1?(this.g(t.$wn.ignoreFirstProperty,n),n):this.c(t.$wn.ignoreFirstProperty)},trendLineType:function(n){return arguments.length===1?(this.g(t.$wn.trendLineTypeProperty,n),n):this.c(t.$wn.trendLineTypeProperty)},trendLineBrush:function(n){return arguments.length===1?(this.g(t.$wn.trendLineBrushProperty,n),n):this.c(t.$wn.trendLineBrushProperty)},actualTrendLineBrush:function(n){return arguments.length===1?(this.g(t.$wn.actualTrendLineBrushProperty,n),n):this.c(t.$wn.actualTrendLineBrushProperty)},trendLineThickness:function(n){return arguments.length===1?(this.g(t.$wn.trendLineThicknessProperty,n),n):this.c(t.$wn.trendLineThicknessProperty)},trendLineDashCap:function(n){return arguments.length===1?(this.g(t.$wn.trendLineDashCapProperty,n),n):this.c(t.$wn.trendLineDashCapProperty)},trendLineDashArray:function(n){return arguments.length===1?(this.g(t.$wn.trendLineDashArrayProperty,n),n):this.c(t.$wn.trendLineDashArrayProperty)},trendLinePeriod:function(n){return arguments.length===1?(this.g(t.$wn.trendLinePeriodProperty,n),n):this.c(t.$wn.trendLinePeriodProperty)},nd:function(){return-1},trendLineZIndex:function(n){return arguments.length===1?(this.g(t.$wn.trendLineZIndexProperty,n),n):this.c(t.$wn.trendLineZIndexProperty)},_m8:null,m8:function(n){return arguments.length===1?(this._m8=n,n):this._m8},_m1:null,m1:function(n){return arguments.length===1?(this._m1=n,n):this._m1},m5:function(){},m7:function(){},hh:function(i,r,u,f){var s,e,h,o;switch(r){case"XAxis":this.m2().cc()}t.$q2.hh.call(this,i,r,u,f);this.m2().b4().d(i,r,u,f)&&(this.renderSeries(!1),this.gy());switch(r){case"FastItemsSource":if(this.bb()!=null){for(this.m8(new t.bh(Number,2,this.bb().count())),s=new Array(this.bb().count()),e=0;e<this.bb().count();e++)s[e]=0;this.m8().insertRange(0,s);this.nj(0,this.bb().count(),null);this.yAxis()==null||this.yAxis().updateRange()||(this.j7().by().e(this.resolution()),this.renderSeries(!1))}break;case"TrendLineBrush":this.hz();break;case"DisplayType":this.gh(!0,this.view());this.renderSeries(!1);this.gy();break;case"OpenColumn":case"HighColumn":case"LowColumn":case"CloseColumn":case"VolumeColumn":if(this.bb()!=null){if(this.m8().count()!=this.bb().count()){for(this.m8(new t.bh(Number,2,this.bb().count())),h=new Array(this.bb().count()),o=0;o<this.bb().count();o++)h[o]=0;this.m8().insertRange(0,h)}this.m6(0,this.bb().count()-1,r)&&this.ni()}break;case"XAxis":this.xAxis()!=null&&(n.ig.util.cast(t.$kr.$type,this.xAxis())!==null||n.ig.util.cast(t.$kr.$type,u)!==null)&&this.ni();break;case"YAxis":case"IgnoreFirst":this.ni();this.gy();break;case"TrendLineType":this.gy()}},getSeriesValue:function(n,i,r){if(this.m8()==null)return t.$q2.getSeriesValue.call(this,n,i,r);var f=this.getOffset(this.view().bw(),this.view().bv()),u=new t.iu(this.view().bw(),this.view().bv(),this.xAxis().isInverted());return u.b=this.seriesViewer().viewportRect(),this.dk(this.m8(),n,this.xAxis(),u,f,this.li.runOn(this),i,r)},getPreviousOrExactIndex:function(n,i){return this.m8()==null?t.$q2.getPreviousOrExactIndex.call(this,n,i):this.d5(n,i,this.xAxis(),this.li.runOn(this),this.m8())},getNextOrExactIndex:function(n,i){return this.m8()==null?t.$q2.getNextOrExactIndex.call(this,n,i):this.d3(n,i,this.xAxis(),this.li.runOn(this),this.m8())},cs:function(){return!0},m6:function(n,t,i){return i==null?!0:this.m7(n,t).contains(i)?!0:!1},nj:function(n,t){this.m5(n,t)},ad:function(n){return this.bb()==null?null:n!=null&&n==this.yAxis()?this.m1():null},scrollIntoView:function(n){var f=this.bb()!=null?this.bb().indexOf(n):-1,i=this.view().bw(),h=this.view().bv(),e=new t.x(0,0,0,1,1),o,r,s,u;return f>=0&&i!=null&&h!=null&&(this.xAxis()!=null&&(o=new t.iu(e,e,this.xAxis().isInverted()),r=this.xAxis().getScaledValue(f,o),r<i.left()+.1*i.width()&&(r=r+.4*i.width()),r>i.right()-.1*i.width()&&(r=r-.4*i.width()),i.x(r-.5*i.width())),this.yAxis()!=null&&this.m8()!=null&&f<this.m8().count()&&(s=new t.iu(e,e,this.yAxis().isInverted()),u=this.yAxis().getScaledValue(this.m8().__inner[f],s),u<i.top()+.1*i.height()&&(u=u+.4*i.height()),u>i.bottom()-.1*i.height()&&(u=u-.4*i.height()),i.y(u-.5*i.height())),this.syncLink().al(this.seriesViewer(),i)),f>=0},ct:function(n,i,r){var u=t.$q2.ct.call(this,n,i,r);return(this.m8()==null||this.m8().count()==0)&&(u=!1),u},mk:function(i,r){var u=this,h,o,a,rt,tt,e,f,d,g;t.$q2.mk.call(u,i,r);var c=r.bw(),l=r.bv(),nt=u.xAxis(),p=u.yAxis(),s=new t.iu(c,l,nt.isInverted()),w=new t.iu(c,l,p.isInverted());if(i.h.clear(),i.p.clear(),i.q.clear(),h=0,o=n.ig.util.cast(t.$kr.$type,u.xAxis()),o==null||o.sortedIndices().count()==u.bb().count()){for(h=u.getOffset(c,l),a=u.nd(),a==-1&&(a=u.trendLinePeriod()),rt=n.ig.util.cast(t.$wo.$type,r),u.m2().b4().prepareLine(i.q,u.trendLineType(),u.m8(),a,function(n){return u.xAxis().getScaledValue(n,s)},function(n){return u.yAxis().getScaledValue(n,w)},function(){var n=new t.km;return n.c(r.by().b()),n.d(r.by().c()),n.e(r.by().d()),n.a(h),n.b(u.resolution()),n.f(l),n.g(c),n}()),tt=u.ne(u.xAxis().getUnscaledValue(2,s)-u.xAxis().getUnscaledValue(1,s)),e=r.by().c();e<=r.by().d();++e){if(o==null)f=r.by().getBucket(e);else{for(var b=o.sortedIndices().__inner[e],v=o.getUnscaledValueAt(b),y=u.ne(u.m8().__inner[e]),k=y,it=v;e<r.by().d();){if(b=o.sortedIndices().__inner[e+1],it=o.getUnscaledValueAt(b),it-v>tt)break;e++;d=u.ne(u.m8().__inner[e]);y=Math.min(y,d);k=Math.max(k,d)}g=NaN;isNaN(v)||(g=u.xAxis().getScaledValue(v,s));f=function(){var n=[];return n.add(u.ne(g)),n.add(y),n.add(k),n}()}isNaN(f[0])||(f[0]=u.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,u.xAxis())!==null?f[0]+h:nt.getScaledValue(f[0],s)+h,f[1]=p.getScaledValue(f[1],w),f[2]=r.by().b()>1||o!=null?p.getScaledValue(f[2],w):f[1],i.h.add(f))}return}},ne:function(n){return n},gh:function(n,i){t.$q2.gh.call(this,n,i);var r=i;r.b7(n);r.b4().o()},j0:function(){switch(this.displayType()){case 1:return 1;case 2:return 1;case 0:return 12}return 1},mm:function(i,r){var u=this,a,v,o,b,k,d;t.$q2.mm.call(u,i,r);var f=n.ig.util.cast(t.$wo.$type,r),s=function(n){return i.h.__inner[n][0]},h=function(n){return i.h.__inner[n][1]},c=function(n){return i.h.__inner[n][0]},l=function(n){return i.h.__inner[n][2]};f.b4().o();f.b4().t(i.q);var y=r.bv(),e=0,p=u.actualBrush(),w=u.negativeBrush();if(r.b1(i)){if(f.b7(!1),i.h.count()>0)switch(u.displayType()){case 0:f.cb(i.h.count(),s,h,c,l,!0);break;case 1:e=u.yAxis()!=null?u.lo(r):.5*(y.top()+y.bottom());f.b9(i.h.count(),s,h,c,l,!0,e);break;case 2:e=u.lo(r);f.ca(i.h.count(),s,h,c,l,!0,e);break;default:throw new t.f5;}r.b3(i)}a=i.h;v=u.bb().count();u.jz.x(u,u.k1(),u.xAxis(),u.getCategoryItems.runOn(u),u.lq(r),u.lr(r));o=!1;b=u.jz.b();b!=null&&(o=!0);u.jz.am=p;u.jz.ah=p;o&&(k=new t.iu(r.bw(),r.bv(),u.xAxis().isInverted()),u.jz.f=!1,u.mj(a,-1,v,u.xAxis(),k,r.n()));u.jz.ae(f.ct,!0,!1,!0,!1);u.jz.ae(f.cv,!0,!1,!0,!1);u.jz.ae(f.cu,!1,!0,!1,!1);f.cu.__opacity=.8*u.jz.i*u.actualAreaFillOpacity();u.jz.ae(f.cs,!0,!1,!1,!1);u.jz.am=w;u.jz.ah=w;o&&(d=new t.iu(r.bw(),r.bv(),u.xAxis().isInverted()),u.jz.f=!0,u.mj(a,-1,v,u.xAxis(),d,r.n()));u.jz.ae(f.cp,!0,!1,!0,!1);u.jz.ae(f.cr,!0,!1,!0,!1);u.jz.ae(f.cq,!1,!0,!1,!1);f.cq.__opacity=.8*u.jz.i*u.actualAreaFillOpacity();u.jz.ae(f.co,!0,!1,!1,!1);f.cd()},hz:function(){(t.$q2.hz.call(this),this.index()<0)||this.m2().ce()},ni:function(){this.m2().b4().v();this.m5(0,this.m8().count());this.yAxis()==null||this.yAxis().updateRange()||this.renderSeries(!1)},go:function(n){t.$q2.go.call(this,n);var i=new t.g8(1,"trendLine",this.m2().b4().x());i.tags().add("Trend");n.shapes().add(i)},$type:new n.ig.Type("FinancialIndicator",t.$q2.$type)},!0);n.ig.util.defType("StrategyBasedIndicator:ws","FinancialIndicator",{init:function(){t.$wn.init.call(this);this.ny(this.nz());this.y(this.oc())},_ny:null,ny:function(n){return arguments.length===1?(this._ny=n,n):this._ny},nz:function(){},oc:function(){},n5:function(){return-Number.MAX_VALUE},n7:function(){return-Number.MAX_VALUE},n4:function(){return-Number.MAX_VALUE},og:function(i,r,u){var e=this,f=t.$ar.i(u,n.ig.Number.prototype.$type,r,new t.as(2,i,function(i,r){n.ig.util.cast(t.$ws.$type,i).raisePropertyChanged(u,r.d(),r.c())}));return t.$ws.n2.add(u),f},of:function(n,i){return t.$ws.og(n,i,"Period")},od:function(n,i){return t.$ws.og(n,i,"LongPeriod")},oh:function(n,i){return t.$ws.og(n,i,"ShortPeriod")},m7:function(n,t){var i=this.j3(n,t),r=this.j4(i);return this.ny().b(i,r)},m5:function(n,t){var i=this.j3(n,t),u,f,r;if(t==0||!this.k3(this.m7(n,t)))return!1;for(u=this.j4(i),this.m1()!=null&&(i.minimumValue(this.m1().c()),i.maximumValue(this.m1().b())),f=this.ny().a(i,u),r=0;r<this.ignoreFirst()&&r<i.indicatorColumn().count();r++)i.indicatorColumn().item(r,NaN);return this.yAxis()!=null&&this.n1(i)&&this.yAxis().updateRange(),f},n1:function(n){var f,i,o;if(!isNaN(n.minimumValue())&&!isNaN(n.maximumValue())&&n.specifiesRange())return f=this.m1(),this.m1(new t.im(n.minimumValue(),n.maximumValue())),this.n0(f,this.m1());for(var r=Number.MAX_VALUE,u=-Number.MAX_VALUE,e=n.indicatorColumn().getEnumerator();e.moveNext();)i=e.current(),isNaN(i)||(r=Math.min(r,i),u=Math.max(u,i));return o=this.m1(),this.m1(new t.im(r,u)),this.n0(o,this.m1())},n0:function(n,t){return n==null||t==null?!0:n.c()!=t.c()?!0:n.b()!=t.b()?!0:!1},n6:function(n){return n==-Number.MAX_VALUE?0:(n>this.m8().count()&&this.m8().count()>0&&(n=this.m8().count()-1),n<1)?1:n},j3:function(n,i){var r=t.$wn.j3.call(this,n,i);return r.indicatorColumn(this.m8()),r.period(this.n6(this.n5())),r.shortPeriod(this.n6(this.n7())),r.longPeriod(this.n6(this.n4())),r.multiplier(this.n3()),r},n3:function(){return 1},oe:function(i,r){var f=this,u=t.$ar.i("Multiplier",Number,r,new t.as(2,i,function(i,r){n.ig.util.cast(t.$ws.$type,i).raisePropertyChanged("Multiplier",r.d(),r.c())}));return t.$ws.n2.add("Multiplier"),u},hh:function(n,i,r,u){t.$wn.hh.call(this,n,i,r,u);t.$ws.n2.contains(i)&&(this.yAxis()==null||this.yAxis().updateRange()||(this.j7().by().e(this.resolution()),this.m5(0,this.m8().count()),this.m2().b4().v(),this.renderSeries(!1)))},$type:new n.ig.Type("StrategyBasedIndicator",t.$wn.$type)},!0);n.ig.util.defType("AbsoluteVolumeOscillatorIndicator:wu","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.wv},oc:function(){return t.$wu.$type},shortPeriod:function(n){return arguments.length===1?(this.g(t.$wu.shortPeriodProperty,n),n):this.c(t.$wu.shortPeriodProperty)},n7:function(){return this.shortPeriod()},longPeriod:function(n){return arguments.length===1?(this.g(t.$wu.longPeriodProperty,n),n):this.c(t.$wu.longPeriodProperty)},n4:function(){return this.longPeriod()},$type:new n.ig.Type("AbsoluteVolumeOscillatorIndicator",t.$ws.$type)},!0);n.ig.util.defType("IndicatorCalculationStrategy:wt","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){},b:function(){},$type:new n.ig.Type("IndicatorCalculationStrategy",n.ig.$ot)},!0);n.ig.util.defType("AbsoluteVolumeOscillatorIndicatorStrategy:wv","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(i.h().a()),r.addRange(i.f().a()),r},a:function(n,t){for(var i=t.h().d()(n).getEnumerator(),r=t.f().d()(n).getEnumerator(),e=n.indicatorColumn(),u=0,f;i.moveNext()&&r.moveNext();)f=i.current()-r.current(),e.item(u,t.i()(f)),++u;return!0},$type:new n.ig.Type("AbsoluteVolumeOscillatorIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("AccumulationDistributionIndicator:ww","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.wx},oc:function(){return t.$ww.$type},$type:new n.ig.Type("AccumulationDistributionIndicator",t.$ws.$type)},!0);n.ig.util.defType("StreamingIndicatorCalculationStrategy:wy","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},c:function(){},$type:new n.ig.Type("StreamingIndicatorCalculationStrategy",t.$wt.$type)},!0);n.ig.util.defType("AccumulationDistributionIndicatorStrategy:wx","StreamingIndicatorCalculationStrategy",{init:function(){t.$wy.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("CloseColumn"),n.add("LowColumn"),n.add("HighColumn"),n.add("VolumeColumn"),n},a:function(n,t){for(var i=0,r=this.c(n,t).getEnumerator(),u;r.moveNext();)u=r.current(),n.indicatorColumn().item(i,u),i++;return!0},c:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,$d:0,$e:0,$f:0,$g:0,$h:0,$i:0,$j:0,$k:0,$l:0,$m:0,$n:0,$o:0,$p:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=0;this.$d=Number.POSITIVE_INFINITY;this.$e=Number.NEGATIVE_INFINITY;this.$f=n.indicatorColumn()!=null?n.indicatorColumn().count():0;this.$g=n.closeColumn()!=null?n.closeColumn().count():0;this.$h=n.highColumn()!=null?n.highColumn().count():0;this.$i=n.volumeColumn()!=null?n.volumeColumn().count():0;this.$j=Math.min(this.$f,Math.min(this.$g,Math.min(this.$h,this.$i)));this.$state=1;break;case 1:this.$k=0;this.$state=5;break;case 2:return this.$l=n.closeColumn().item(this.$k),this.$m=n.lowColumn().item(this.$k),this.$n=n.highColumn().item(this.$k),this.$o=n.volumeColumn().item(this.$k),this.$p=(this.$l-this.$m-(this.$n-this.$l))/(this.$n-this.$m),this.$c+=t.i()(this.$p*this.$o),this.$d=Math.min(this.$d,this.$c),this.$e=Math.max(this.$e,this.$c),this.$current=this.$c,this.$state=3,!0;case 3:this.$state=4;break;case 4:++this.$k;this.$state=5;break;case 5:this.$state=this.$k<this.$j?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},$type:new n.ig.Type("AccumulationDistributionIndicatorStrategy",t.$wy.$type)},!0);n.ig.util.defType("AverageDirectionalIndexIndicator:wz","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.w0},oc:function(){return t.$wz.$type},period:function(n){return arguments.length===1?(this.g(t.$wz.periodProperty,n),n):this.c(t.$wz.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("AverageDirectionalIndexIndicator",t.$ws.$type)},!0);n.ig.util.defType("AverageDirectionalIndexIndicatorStrategy:w0","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.add("LowColumn"),r.add("HighColumn"),r.addRange(n.trueRange().basedOn()),r.addRange(i.a().a()),r},j:function(n,t){return t.item(n)-t.item(n-1)},i:function(n,t,i){return i.item(n-1)-i.item(n)},h:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,$d:0,$e:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:return this.$current=0,this.$state=1,!0;case 1:this.$c=0;this.$d=0;this.$state=2;break;case 2:this.$e=1;this.$state=11;break;case 3:this.$c=this.$this.j(this.$e,n,t);this.$d=this.$this.i(this.$e,n,t);this.$state=4;break;case 4:this.$state=this.$c>this.$d&&this.$c>0?5:7;break;case 5:return this.$current=this.$c,this.$state=6,!0;case 6:this.$state=9;break;case 7:return this.$current=0,this.$state=8,!0;case 8:this.$state=9;break;case 9:this.$state=10;break;case 10:this.$e++;this.$state=11;break;case 11:this.$state=this.$e<n.count()?3:12;break;case 12:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},f:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,$d:0,$e:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:return this.$current=0,this.$state=1,!0;case 1:this.$c=0;this.$d=0;this.$state=2;break;case 2:this.$e=1;this.$state=11;break;case 3:this.$c=this.$this.j(this.$e,n,t);this.$d=this.$this.i(this.$e,n,t);this.$state=4;break;case 4:this.$state=this.$d>this.$c&&this.$d>0?5:7;break;case 5:return this.$current=this.$d,this.$state=6,!0;case 6:this.$state=9;break;case 7:return this.$current=0,this.$state=8,!0;case 8:this.$state=9;break;case 9:this.$state=10;break;case 10:this.$e++;this.$state=11;break;case 11:this.$state=this.$e<n.count()?3:12;break;case 12:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},g:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:null,$d:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=t.a().d()(this.$this.h(n.highColumn(),n.lowColumn()),n.period()).getEnumerator();this.$d=t.a().d()(n.trueRange(),n.period()).getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:return this.$current=t.i()(this.$c.current()/this.$d.current()),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()&&this.$d.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},e:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:null,$d:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=t.a().d()(this.$this.f(n.highColumn(),n.lowColumn()),n.period()).getEnumerator();this.$d=t.a().d()(n.trueRange(),n.period()).getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:return this.$current=t.i()(this.$c.current()/this.$d.current()),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()&&this.$d.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},d:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:null,$d:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=this.$this.g(n,t).getEnumerator();this.$d=this.$this.e(n,t).getEnumerator();this.$c.moveNext();this.$d.moveNext();this.$state=1;break;case 1:this.$state=4;break;case 2:return this.$current=Math.abs(t.i()((this.$c.current()-this.$d.current())/(this.$c.current()+this.$d.current()))),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()&&this.$d.moveNext()?2:5;break;case 5:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},c:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:return this.$c=t.a().d()(this.$this.d(n,t),n.period()).getEnumerator(),this.$current=0,this.$state=1,!0;case 1:this.$state=2;break;case 2:this.$state=5;break;case 3:return this.$current=this.$c.current()*100,this.$state=4,!0;case 4:this.$state=5;break;case 5:this.$state=this.$c.moveNext()?3:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},a:function(n,t){for(var r=this.c(n,t).getEnumerator(),u=n.indicatorColumn(),i=0;i<u.count();i++)r.moveNext()&&u.item(i,r.current());return!0},$type:new n.ig.Type("AverageDirectionalIndexIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("AverageTrueRangeIndicator:w1","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.w2},oc:function(){return t.$w1.$type},period:function(n){return arguments.length===1?(this.g(t.$w1.periodProperty,n),n):this.c(t.$w1.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("AverageTrueRangeIndicator",t.$ws.$type)},!0);n.ig.util.defType("AverageTrueRangeIndicatorStrategy:w2","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(n.trueRange().basedOn()),r.addRange(i.a().a()),r},a:function(n,t){for(var i=0,r=t.a().d()(n.trueRange(),n.period()).getEnumerator(),u;r.moveNext();)u=r.current(),n.indicatorColumn().item(i,u),++i;return!0},$type:new n.ig.Type("AverageTrueRangeIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("FinancialOverlay:w3","FinancialSeries",{init:function(){t.$q2.init.call(this);this.m1(!1)},gj:function(){this.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,this.xAxis())!==null&&n.ig.util.cast(t.$kr.$type,this.xAxis()).notifyDataChanged();this.j7().by().e(this.resolution());this.m2();this.yAxis()!=null&&this.yAxis().updateRange();this.renderSeries(!0)},ignoreFirst:function(n){return arguments.length===1?(this.g(t.$w3.ignoreFirstProperty,n),n):this.c(t.$w3.ignoreFirstProperty)},cs:function(){return!0},hh:function(n,i,r,u){switch(i){case"FastItemsSource":this.m1(!1);break;case"IgnoreFirst":this.m1(!1);this.renderSeries(!1);this.gy();break;case"XAxis":this.m1(!1)}t.$q2.hh.call(this,n,i,r,u)},onApplyTemplate:function(){t.$q2.z.call(this);this.renderSeries(!1)},scrollIntoView:function(n){var f=this.bb()!=null?this.bb().indexOf(n):-1,i=this.view().bw(),c=this.view().bv(),e=new t.x(0,0,0,1,1),l=new t.iu(e,e,this.xAxis().isInverted()),h=new t.iu(e,e,this.yAxis().isInverted()),u,r,o,s;return f>=0&&i!=null&&c!=null&&(this.xAxis()!=null&&(u=this.xAxis().getScaledValue(f,l),u<i.left()+.1*i.width()&&(u=u+.4*i.width()),u>i.right()-.1*i.width()&&(u=u-.4*i.width()),i.x(u-.5*i.width())),this.yAxis()!=null&&this.kh()!=null&&this.kf()!=null&&f<this.kh().count()&&f<this.kf().count()&&(r=this.yAxis().getScaledValue(this.kh().item(f),h),o=this.yAxis().getScaledValue(this.kf().item(f),h),isNaN(r)||isNaN(o)||(s=Math.abs(r-o),i.height()<s?(i.height(s),i.y(Math.min(r,o))):(r<i.top()+.1*i.height()&&(r=r+.4*i.height()),r>i.bottom()-.1*i.height()&&(r=r-.4*i.height()),i.y(r-.5*i.height())))),this.syncLink().al(this.seriesViewer(),i)),f>=0},ad:function(n){return n!=null&&n==this.yAxis()&&this.kh()!=null&&this.kf()!=null?new t.im(this.kh().minimum(),this.kf().maximum()):null},_m1:!1,m1:function(n){return arguments.length===1?(this._m1=n,n):this._m1},m2:function(){},$type:new n.ig.Type("FinancialOverlay",t.$q2.$type)},!0);n.ig.util.defType("BollingerBandsOverlay:w4","FinancialOverlay",{init:function(){this.m7=new t.bh(Number,0);this.m8=new t.bh(Number,0);t.$w3.init.call(this);this.y(t.$w4.$type);this.jw=new t.ks(4);this.jy=new t.ks(4);this.jv=new t.ks(4)},period:function(n){return arguments.length===1?(this.g(t.$w4.periodProperty,n),n):this.c(t.$w4.periodProperty)},multiplier:function(n){return arguments.length===1?(this.g(t.$w4.multiplierProperty,n),n):this.c(t.$w4.multiplierProperty)},hh:function(n,i,r,u){this.lb().contains(i)&&this.m1(!1);t.$w3.hh.call(this,n,i,r,u);switch(i){case"Period":this.m1(!1);this.renderSeries(!1);break;case"Multiplier":this.renderSeries(!1)}},m9:0,na:0,m2:function(){var n,i;this.m7.clear();this.m8.clear();n=t.$aj.sMA(new t.mu(this.k9()),this.period()).getEnumerator();i=t.$aj.sTDEV(new t.mu(this.k9()),this.period()).getEnumerator();this.na=Number.MAX_VALUE;this.m9=-Number.MAX_VALUE;for(var r=!0,u=!0,f=this.multiplier();r||u;)n.moveNext()?this.m7.add(n.current()):r=!1,i.moveNext()?this.m8.add(i.current()):u=!1,r&&u&&(this.na=Math.min(this.na,n.current()-i.current()*f),this.m9=Math.max(this.m9,n.current()+i.current()*f));return!0},ad:function(n){if(this.m7==null||this.m8==null||n==null||this.bb()==null||n!=this.yAxis())return null;return new t.im(this.na,this.m9)},m7:null,m8:null,nd:function(n){return n},mk:function(i,r){var u=this,o,l,b,f,e,it;t.$w3.mk.call(u,i,r);var y=r.bw(),p=r.bv(),g=u.xAxis(),h=u.yAxis(),c=new t.iu(y,p,g.isInverted()),w=new t.iu(y,p,h.isInverted());if(i.h.clear(),i.p.clear(),i.q.clear(),o=n.ig.util.cast(t.$kr.$type,u.xAxis()),o==null||o.sortedIndices().count()==u.bb().count())for(l=0,l=u.getOffset(y,p),u.m1()||(u.m1(u.m2()),u.yAxis()!=null&&u.yAxis().updateRange1(!0)),b=u.nd(u.xAxis().getUnscaledValue(2,c)-u.xAxis().getUnscaledValue(1,c)),f=r.by().c();f<=r.by().d();++f){if(o==null)e=r.by().getBucket(f);else{for(var k=o.sortedIndices().__inner[f],a=o.getUnscaledValueAt(k),rt=u.nd(u.m7.__inner[f]),ut=u.nd(u.m8.__inner[f]),s=rt,v=ut,nt=a,d=1;f<r.by().d();){if(k=o.sortedIndices().__inner[f+1],nt=o.getUnscaledValueAt(k),nt-a>b)break;f++;s+=u.nd(u.m7.__inner[f]);v+=u.nd(u.m8.__inner[f]);d++}s/=d;v/=d;var ft=u.nd(s-v*u.multiplier()),et=u.nd(s),ot=u.nd(s+v*u.multiplier()),tt=NaN;isNaN(a)||(tt=u.xAxis().getScaledValue(a,c));e=function(){var n=[];return n.add(u.nd(tt)),n.add(ft),n.add(et),n.add(ot),n}()}it=Math.max(1,b);!isNaN(e[0])&&f*it>=u.ignoreFirst()&&(e[0]=u.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,u.xAxis())!==null?e[0]+l:g.getScaledValue(e[0],c)+l,e[1]=h.getScaledValue(e[1],w),e[2]=h.getScaledValue(e[2],w),e[3]=h.getScaledValue(e[3],w),i.h.add(e))}},gh:function(n,i){t.$w3.gh.call(this,n,i);var r=i;r!=null&&r.b5()},getSeriesValue:function(n,i,r){if(this.m7==null)return t.$w3.getSeriesValue.call(this,n,i,r);var f=this.getOffset(this.view().bw(),this.view().bv()),u=new t.iu(this.view().bw(),this.view().bv(),this.xAxis().isInverted());return u.b=this.seriesViewer().viewportRect(),this.dk(this.m7,n,this.xAxis(),u,f,this.li.runOn(this),i,r)},getPreviousOrExactIndex:function(n,i){return this.m7==null?t.$w3.getPreviousOrExactIndex.call(this,n,i):this.d5(n,i,this.xAxis(),this.li.runOn(this),this.m7)},getNextOrExactIndex:function(n,i){return this.m7==null?t.$w3.getNextOrExactIndex.call(this,n,i):this.d3(n,i,this.xAxis(),this.li.runOn(this),this.m7)},ct:function(n,i,r){var u=t.$w3.ct.call(this,n,i,r);return this.k3(this.lb())||(u=!1),u},mm:function(i,r){var u=this,f,s;if(t.$w3.mm.call(u,i,r),f=n.ig.util.cast(t.$w5.$type,r),r.b1(i)){f.b5();var e=i.h.count(),c=function(n){return i.h.__inner[n][0]},l=function(n){return i.h.__inner[e-1-n][0]},a=function(n){return i.h.__inner[n][1]},v=function(n){return i.h.__inner[n][2]},y=function(n){return i.h.__inner[e-1-n][3]};f.b6(e,c,l,a,v,y);r.b3(i)}u.jz.x(u,u.k1(),u.xAxis(),u.getCategoryItems.runOn(u),u.lq(r),u.lr(r));var o=!1,p=u.jz.b(),w=i.h,b=u.bb().count();p!=null&&(o=!0);o&&(s=new t.iu(r.bw(),r.bv(),u.xAxis().isInverted()),u.mj(w,-1,b,u.xAxis(),s,r.n()));var k=f.cd(),d=f.ce(),g=f.cf(),h=f.b8();u.jz.ae(d,!0,!1,!0,!0);u.jz.ap=null;u.jz.ao=null;u.jz.ae(k,!0,!1,!1,!0);u.jz.ae(g,!0,!1,!1,!0);u.jz.ae(h,!1,!0,!1,!1);h.__opacity=u.jz.i*u.actualAreaFillOpacity()},au:function(){return new t.w5(this)},hc:function(i){t.$w3.hc.call(this,i);this.m6(n.ig.util.cast(t.$w5.$type,i))},_m6:null,m6:function(n){return arguments.length===1?(this._m6=n,n):this._m6},$type:new n.ig.Type("BollingerBandsOverlay",t.$w3.$type)},!0);n.ig.util.defType("FinancialBucketCalculator:q4","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(i){if(n.ig.$op.init.call(this),i==null)throw new t.e0("view");this.a(i);this.c(-1);this.d(this.d());this.b(0)},getBucket:function(){return null},getErrorBucket:function(){return NaN},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},getBucketInfo:function(n,t,i,r){return n=this.c(),t=this.d(),i=this.b(),r=this.a().b0().resolution(),{firstBucket:n,lastBucket:t,bucketSize:i,resolution:r}},e:function(i){var u=this.a().bw(),r=this.a().bv(),o,s,h;if(u.isEmpty()||r.isEmpty()||this.a().b0().xAxis()==null){this.b(0);return}var c=this.a().b0().xAxis()!=null?this.a().b0().xAxis().isInverted():!1,f=new t.iu(u,r,c),e=n.ig.util.cast(t.$kr.$type,this.a().b0().xAxis());e==null||e.sortedIndices()==null?(o=Math.floor(this.a().b0().xAxis().getUnscaledValue(r.left(),f)),s=Math.ceil(this.a().b0().xAxis().getUnscaledValue(r.right(),f)),this.a().b0().xAxis().isInverted()&&(s=Math.ceil(this.a().b0().xAxis().getUnscaledValue(r.left(),f)),o=Math.floor(this.a().b0().xAxis().getUnscaledValue(r.right(),f))),h=Math.floor((s-o+1)*i/r.width()),this.b(Math.max(1,h)),this.c(Math.floor(o/this.b())),this.d(Math.ceil(s/this.b()))):(this.c(e.getFirstVisibleIndex(u,r)),this.d(e.getLastVisibleIndex(u,r)),this.b(1))},cacheValues:function(){},unCacheValues:function(){},$type:new n.ig.Type("FinancialBucketCalculator",n.ig.$ot,[t.$kf.$type])},!0);n.ig.util.defType("BollingerBandsBucketCalculator:w6","FinancialBucketCalculator",{init:function(n){t.$q4.init.call(this,n);this.f(n)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},getBucket:function(n){var t=this,f=n*t.b(),o=Math.min(f+t.b()-1,t.a().b0().bb().count()-1),i;if(f<=o){var s=t.f().b4().multiplier(),r=0,u=0,e=0;for(i=f;i<=o;++i)isNaN(t.f().b4().m7.__inner[i])||isNaN(t.f().b4().m8.__inner[i])||(r+=t.f().b4().m7.__inner[i],u+=t.f().b4().m8.__inner[i],++e);if(e>0)return r=r/e,u=u/e,function(){var n=[];return n.add(.5*(f+o)),n.add(r-u*s),n.add(r),n.add(r+u*s),n}()}return function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n.add(NaN),n}()},$type:new n.ig.Type("BollingerBandsBucketCalculator",t.$q4.$type)},!0);n.ig.util.defType("FinancialSeriesView:q3","SeriesView",{_b0:null,b0:function(n){return arguments.length===1?(this._b0=n,n):this._b0},_by:null,by:function(n){return arguments.length===1?(this._by=n,n):this._by},_b2:0,b2:function(n){return arguments.length===1?(this._b2=n,n):this._b2},b1:function(n){return this.b2()!=n.u()?!0:!1},b3:function(n){this.b2(n.u())},init:function(n){t.$bb.init.call(this,n);this.b2(-1);this.b0(n);this.by(this.bz())},bz:function(){},ao:function(){var n=this;t.$bb.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.f),n.measure(t.$mx.j),n}())},getDefaultTooltipTemplate:function(){var i="<div class='ui-chart-default-tooltip-content'>",r=n.ig.util.cast(t.$lf.$type,this.b0().xAxis());return r!=null?i+="<span>${item."+r.dateTimeMemberPath()+"}<\/span><br/>":this.b0().xAxis().label()!=null&&(i+="<span>${item."+this.b0().xAxis().label()+"}<\/span><br/>"),i+="<span class='ui-priority-primary'",this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&(i+=" style='color:"+this.d().actualOutline().__fill+"'"),i+=">"+this.b0().title()+"<\/span><table><tr><td>Open:<\/td><td>${item."+this.b0().openMemberPath()+"}<\/td><\/tr><tr><td>High:<\/td><td>${item."+this.b0().highMemberPath()+"}<\/td><\/tr><tr><td>Low:<\/td><td>${item."+this.b0().lowMemberPath()+"}<\/td><\/tr><tr><td>Close:<\/td><td>${item."+this.b0().closeMemberPath()+"}<\/td><\/tr>",String.isNullOrEmpty(this.b0().volumeMemberPath())||(i+="<tr><td>Volume:<\/td><td>${item."+this.b0().volumeMemberPath()+"}<\/td><\/tr>"),i+"<\/table><\/div>"},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(5);this.d().shadowOffsetX(2);this.d().shadowOffsetY(2)},$type:new n.ig.Type("FinancialSeriesView",t.$bb.$type)},!0);n.ig.util.defType("BollingerBandsOverlayView:w5","FinancialSeriesView",{_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},init:function(n){this.b9=new t.ca;this.cg=new t.cc;this.ch=new t.cc;this.ci=new t.cc;this.b7=new t.ca;this.ca=new t.cc;this.cb=new t.cc;this.cc=new t.cc;t.$q3.init.call(this,n);this.b4(n)},ao:function(){var n=this;t.$q3.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},bz:function(){return new t.w6(this)},b6:function(i,r,u,f,e,o){for(var v=t.$k3.f(i,r,f,this.d().resolution()).getEnumerator(),s,c,l,a,h;v.moveNext();)s=v.current(),this.b9.ag().add({__x:r(s),__y:f(s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.cg.ag().add({__x:r(s),__y:f(s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});for(c=t.$k3.f(i,r,e,this.d().resolution()).getEnumerator();c.moveNext();)l=c.current(),this.ch.ag().add({__x:r(l),__y:e(l),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});for(a=t.$k3.f(i,u,o,this.d().resolution()).getEnumerator();a.moveNext();)h=a.current(),this.b9.ag().add({__x:u(h),__y:o(h),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.ci.ag().add({__x:u(h),__y:o(h),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.am()},b5:function(){this.b9.ag().clear();this.cg.ag().clear();this.ch.ag().clear();this.ci.ag().clear();this.am()},b8:function(){return this.b9},cd:function(){return this.cg},ce:function(){return this.ch},cf:function(){return this.ci},b9:null,cg:null,ch:null,ci:null,b7:null,ca:null,cb:null,cc:null,a7:function(){t.$q3.a7.call(this);this.b7.ag(this.b9.ag());this.ca.ag(this.cg.ag());this.cb.ag(this.ch.ag());this.cc.ag(this.ci.ag());var n=this.br();this.b7.__fill=n;this.b7.__opacity=1;this.ca.__stroke=n;this.ca.z(this.d().thickness()+3);this.cb.__stroke=n;this.cb.z(this.d().thickness()+3);this.cc.__stroke=n;this.cc.z(this.d().thickness()+3)},a1:function(n,i){t.$q3.a1.call(this,n,i);n.c()&&(i?(n.r(this.b7),n.s(this.ca),n.s(this.cb),n.s(this.cc)):(n.r(this.b9),n.s(this.cg),n.s(this.ch),n.s(this.ci)))},ah:function(n){var r,i,u,f;t.$q3.ah.call(this,n);r=new t.g7(1,"FillShape",this.b9);r.tags().add("Fill");i=new t.g8(1,"BottomLine",this.cg);i.tags().add("Main");i.tags().add("Lower");u=new t.g8(1,"CentralLine",this.ch);u.tags().add("Central");f=new t.g8(1,"TopLine",this.ci);f.tags().add("Upper");n.shapes().add(r);n.shapes().add(i);n.shapes().add(u);n.shapes().add(f)},$type:new n.ig.Type("BollingerBandsOverlayView",t.$q3.$type)},!0);n.ig.util.defType("BollingerBandWidthIndicator:w7","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.w8},oc:function(){return t.$w7.$type},period:function(n){return arguments.length===1?(this.g(t.$w7.periodProperty,n),n):this.c(t.$w7.periodProperty)},n5:function(){return this.period()},multiplier:function(n){return arguments.length===1?(this.g(t.$w7.multiplierProperty,n),n):this.c(t.$w7.multiplierProperty)},n3:function(){return this.multiplier()},$type:new n.ig.Type("BollingerBandWidthIndicator",t.$ws.$type)},!0);n.ig.util.defType("BollingerBandWidthIndicatorStrategy:w8","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(n.typicalColumn().basedOn()),r.addRange(i.c().a()),r.addRange(i.d().a()),r},a:function(n,t){for(var i=t.c().d()(n.typicalColumn(),n.period()).getEnumerator(),r=t.d().d()(n.typicalColumn(),n.period()).getEnumerator(),e=n.multiplier(),o=n.indicatorColumn(),u=0;i.moveNext()&&r.moveNext();){var f=r.current()*e,s=i.current()+f,h=i.current()-f,c=i.current(),l=t.i()((s-h)/c);o.item(u,l);u++}return!0},$type:new n.ig.Type("BollingerBandWidthIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("ChaikinOscillatorIndicator:w9","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.xa},oc:function(){return t.$w9.$type},shortPeriod:function(n){return arguments.length===1?(this.g(t.$w9.shortPeriodProperty,n),n):this.c(t.$w9.shortPeriodProperty)},n7:function(){return this.shortPeriod()},longPeriod:function(n){return arguments.length===1?(this.g(t.$w9.longPeriodProperty,n),n):this.c(t.$w9.longPeriodProperty)},n4:function(){return this.longPeriod()},$type:new n.ig.Type("ChaikinOscillatorIndicator",t.$ws.$type)},!0);n.ig.util.defType("ChaikinOscillatorIndicatorStrategy:xa","IndicatorCalculationStrategy",{_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},init:function(){t.$wt.init.call(this);this.c(new t.wx)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(this.c().b(n,i)),r.addRange(i.a().a()),r},a:function(n,t){for(var o=n.indicatorColumn(),i=this.c().c(n,t),r=t.a().d()(i,n.shortPeriod()).getEnumerator(),u=t.a().d()(i,n.longPeriod()).getEnumerator(),f=0,e;r.moveNext()&&u.moveNext();)e=r.current()-u.current(),o.item(f,e),f++;return!0},$type:new n.ig.Type("ChaikinOscillatorIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("ChaikinVolatilityIndicator:xb","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.xc},oc:function(){return t.$xb.$type},period:function(n){return arguments.length===1?(this.g(t.$xb.periodProperty,n),n):this.c(t.$xb.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("ChaikinVolatilityIndicator",t.$ws.$type)},!0);n.ig.util.defType("ChaikinVolatilityIndicatorStrategy:xc","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.add("HighColumn"),r.add("LowColumn"),r.addRange(i.a().a()),r},a:function(n,t){for(var i,u,s,c=this,h=t.j()(function(t){return n.highColumn().item(t)-n.lowColumn().item(t)},n.count()),f=t.a().d()(h,n.period()).getEnumerator(),o=n.indicatorColumn(),r=new Array(n.period()),e=0;e<n.period();e++)r[e]=0;for(i=0;f.moveNext();)u=i%n.period(),s=t.i()((f.current()-r[u])/(r[u]*100)),i<n.period()?o.item(i,0):o.item(i,s),r[u]=f.current(),i++;return!0},$type:new n.ig.Type("ChaikinVolatilityIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("CommodityChannelIndexIndicator:xd","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.xe},oc:function(){return t.$xd.$type},period:function(n){return arguments.length===1?(this.g(t.$xd.periodProperty,n),n):this.c(t.$xd.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("CommodityChannelIndexIndicator",t.$ws.$type)},!0);n.ig.util.defType("CommodityChannelIndexIndicatorStrategy:xe","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(n.typicalColumn().basedOn()),r.addRange(i.c().a()),r},a:function(n,t){for(var r,u,f,i=n.period(),c=n.typicalColumn(),l=n.indicatorColumn(),e=t.c().d()(c,i).getEnumerator(),o=c.getEnumerator(),s=new Array(i),h=0;h<i;h++)s[h]=0;for(r=0;o.moveNext()&&e.moveNext();){for(s[r%i]=o.current(),u=0,f=0;f<i;++f)u+=Math.abs(e.current()-s[f]);u/=i;l.item(r,t.i()((o.current()-e.current())/(.015*u)));++r}return!0},$type:new n.ig.Type("CommodityChannelIndexIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("CustomIndicator:xf","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.xg},oc:function(){return t.$xf.$type},m7:function(n,i){var r=this.j3(n,i),s=this.j4(r),e=new t.bh(String,0),u,f,o;if(this.oi!=null&&(u=new t.ra(r.calculateFrom(),r.calculateCount(),r,s),this.oi(this,u),u.basedOn()!=null))for(f=u.basedOn().getEnumerator();f.moveNext();)o=f.current(),e.add(o);return e},oj:null,indicator:function(n){return arguments.length===1?(this.oj=n,this.ni(),n):this.oj},oi:null,basedOnColumns:function(n){return arguments.length===1?(this.oi=n,n):this.oi},m5:function(n,i){if(t.$ws.m5.call(this,n,i),this.oj!=null){var r=this.j3(n,i);return i==0?!1:this.k3(this.m7(n,i))?(this.oj(this,new t.ra(n,i,r,this.j4(r))),this.n1(r)&&this.yAxis()!=null&&this.yAxis().updateRange(),!0):!1}return!1},$type:new n.ig.Type("CustomIndicator",t.$ws.$type)},!0);n.ig.util.defType("CustomIndicatorStrategy:xg","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},a:function(){return!0},b:function(){return new t.bh(String,0)},$type:new n.ig.Type("CustomIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("PriceChannelOverlayView:xh","FinancialSeriesView",{b9:null,ce:null,cf:null,b8:function(){return this.b9},cc:function(){return this.ce},cd:function(){return this.cf},_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},init:function(n){this.b9=new t.ca;this.ce=new t.cc;this.cf=new t.cc;this.b7=new t.ca;this.ca=new t.cc;this.cb=new t.cc;t.$q3.init.call(this,n);this.b4(n)},ao:function(){var n=this;t.$q3.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},bz:function(){return new t.xj(this)},b5:function(){this.b9.ag().clear();this.ce.ag().clear();this.cf.ag().clear();this.am()},b6:function(i,r,u,f,e){for(var c=t.$k3.f(i,r,f,this.d().resolution()).getEnumerator(),o,h,s;c.moveNext();)o=c.current(),this.b9.ag().add({__x:r(o),__y:f(o),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.ce.ag().add({__x:r(o),__y:f(o),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});for(h=t.$k3.f(i,u,e,this.d().resolution()).getEnumerator();h.moveNext();)s=h.current(),this.b9.ag().add({__x:u(s),__y:e(s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.cf.ag().add({__x:u(s),__y:e(s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.am()},b7:null,ca:null,cb:null,a7:function(){t.$q3.a7.call(this);this.b7.ag(this.b9.ag());this.ca.ag(this.ce.ag());this.cb.ag(this.cf.ag());var n=this.br();this.b7.__fill=n;this.b7.__opacity=1;this.ca.__stroke=n;this.ca.z(this.d().thickness()+3);this.cb.__stroke=n;this.cb.z(this.d().thickness()+3)},a1:function(n,i){t.$q3.a1.call(this,n,i);n.c()&&(i?(n.r(this.b7),n.s(this.ca),n.s(this.cb)):(n.r(this.b9),n.s(this.ce),n.s(this.cf)))},ah:function(n){t.$q3.ah.call(this,n);var r=new t.g7(1,"fill",this.b9),i=new t.g8(1,"bottom",this.ce),u=new t.g8(1,"top",this.cf);r.tags().add("Fill");i.tags().add("Lower");i.tags().add("Main");u.tags().add("Upper");n.shapes().add(r);n.shapes().add(i);n.shapes().add(u)},$type:new n.ig.Type("PriceChannelOverlayView",t.$q3.$type)},!0);n.ig.util.defType("DetrendedPriceOscillatorIndicator:xk","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.xl},oc:function(){return t.$xk.$type},period:function(n){return arguments.length===1?(this.g(t.$xk.periodProperty,n),n):this.c(t.$xk.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("DetrendedPriceOscillatorIndicator",t.$ws.$type)},!0);n.ig.util.defType("DetrendedPriceOscillatorIndicatorStrategy:xl","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.add("CloseColumn"),r.addRange(i.c().a()),r},a:function(t,i){for(var f,v,u,c,l=t.period(),a=t.closeColumn(),e=t.indicatorColumn(),o=i.c().d()(a,l).getEnumerator(),r=n.ig.intDivide(l,2)+1,s=new Array(r),h=0;h<r;h++)s[h]=0;for(f=1;f<Math.min(r+1,e.count());++f)v=f%r,e.item(f,0),o.moveNext(),s[v]=o.current();for(u=r+1;u<e.count();u++)c=u%r,e.item(u,a.item(u)-s[c]),o.moveNext(),s[c]=o.current();return!0},$type:new n.ig.Type("DetrendedPriceOscillatorIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("EaseOfMovementIndicator:xm","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.xn},oc:function(){return t.$xm.$type},$type:new n.ig.Type("EaseOfMovementIndicator",t.$ws.$type)},!0);n.ig.util.defType("EaseOfMovementIndicatorStrategy:xn","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("HighColumn"),n.add("LowColumn"),n.add("VolumeColumn"),n},a:function(n,t){var f=n.indicatorColumn(),r=n.highColumn(),u=n.lowColumn(),o=n.volumeColumn(),e=n.count(),i;for(e>0&&f.item(0,0),i=1;i<e;i++){var s=(r.item(i)+u.item(i))/2,h=(r.item(i-1)+u.item(i-1))/2,c=s-h,l=t.i()(o.item(i)/1e4/(r.item(i)-u.item(i)));f.item(i,t.i()(c/l))}return!0},$type:new n.ig.Type("EaseOfMovementIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("FastStochasticOscillatorIndicator:xo","StrategyBasedIndicator",{init:function(){var n=this;t.$ws.init.call(this);this.trendLineBrush(function(){var n=new t.b3;return n.fill("Blue"),n}());this.trendLineType(10);this.trendLinePeriod(3)},nz:function(){return new t.xp},oc:function(){return t.$xo.$type},period:function(n){return arguments.length===1?(this.g(t.$xo.periodProperty,n),n):this.c(t.$xo.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("FastStochasticOscillatorIndicator",t.$ws.$type)},!0);n.ig.util.defType("FastStochasticOscillatorIndicatorStrategy:xp","IndicatorCalculationStrategy",{_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},init:function(){t.$wt.init.call(this);this.c(new t.xq)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(this.c().b(n,i)),r},a:function(n,t){for(var f=this.c().c(n,t),i=0,r=f.getEnumerator(),u;r.moveNext();)u=r.current(),n.indicatorColumn().item(i,u),i++;return!0},$type:new n.ig.Type("FastStochasticOscillatorIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("FinancialIndicatorBucketCalculator:wp","FinancialBucketCalculator",{init:function(n){t.$q4.init.call(this,n);this.f(n)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},getBucket:function(n){for(var i,r=this,f=n*r.b(),o=Math.min(f+r.b()-1,r.f().b5().m8().count()-1),t=NaN,u=NaN,e=f;e<=o;++e)i=r.f().b5().m8().__inner[e],isNaN(t)?(t=i,u=i):isNaN(i)||(t=Math.min(t,i),u=Math.max(u,i));return isNaN(t)?function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}():function(){var n=[];return n.add(.5*(f+o)),n.add(t),n.add(u),n}()},$type:new n.ig.Type("FinancialIndicatorBucketCalculator",t.$q4.$type)},!0);n.ig.util.defType("FinancialIndicatorView:wo","FinancialSeriesView",{_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},init:function(n){var i=this;this.ct=function(){var n=new t.b6;return n.ak(new t.dx),n}();this.cp=function(){var n=new t.b6;return n.ak(new t.dx),n}();this.cu=function(){var n=new t.b6;return n.ak(new t.dx),n}();this.cq=function(){var n=new t.b6;return n.ak(new t.dx),n}();this.cv=function(){var n=new t.b6;return n.ak(new t.dx),n}();this.cr=function(){var n=new t.b6;return n.ak(new t.dx),n}();this.cs=function(){var n=new t.b6;return n.ak(new t.du),n}();this.co=function(){var n=new t.b6;return n.ak(new t.du),n}();this.cl=new t.b6;this.cn=new t.b6;this.cm=new t.b6;this.ck=new t.b6;this.ch=new t.b6;this.cj=new t.b6;this.ci=new t.b6;this.cg=new t.b6;t.$q3.init.call(this,n);this.b5(n);this.b6=function(){var n=new t.ga(t.$dz.$type);return n.create(i.cf.runOn(i)),n.destroy(i.b8.runOn(i)),n}();this.b4(new t.ld)},bz:function(){return new t.wp(this)},ao:function(){var n=this;t.$q3.ao.call(n);n.n()||n.b0().negativeBrush(function(){var n=new t.b3;return n.fill("#415460"),n}())},b6:null,cf:function(){return new t.dz},b8:function(){},ct:null,cp:null,cu:null,cq:null,cv:null,cr:null,cs:null,co:null,_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},b7:function(i){n.ig.util.cast(t.$dx.$type,this.ct.ak()).reset1();n.ig.util.cast(t.$dx.$type,this.cu.ak()).reset1();n.ig.util.cast(t.$dx.$type,this.cv.ak()).reset1();n.ig.util.cast(t.$dx.$type,this.cp.ak()).reset1();n.ig.util.cast(t.$dx.$type,this.cq.ak()).reset1();n.ig.util.cast(t.$dx.$type,this.cr.ak()).reset1();n.ig.util.cast(t.$du.$type,this.cs.ak()).reset();n.ig.util.cast(t.$du.$type,this.co.ak()).reset();i&&this.b6.c(0);this.am()},cd:function(){},cb:function(n,i,r,u,f,e){t.$wq.c(n,i,r,u,f,e,this.bw(),this.bv(),this.ct,this.cu,this.cv,this.cp,this.cq,this.cr,this.by().b(),this.d().resolution());this.am()},b9:function(n,i,r,u,f,e,o){t.$wq.a(n,i,r,u,f,e,this.bw(),this.bv(),this.ct,this.cu,this.cv,this.cp,this.cq,this.cr,o,this.by().b(),this.d().resolution());this.am()},ca:function(n,i,r,u,f,e,o){t.$wq.b(n,i,r,u,f,e,o,this.b6,this.cs,this.co);this.am()},ce:function(){this.b5().actualTrendLineBrush(null);this.b5().trendLineBrush()!=null?this.b5().actualTrendLineBrush(this.b5().trendLineBrush()):this.b5().actualTrendLineBrush(this.b5().actualBrush())},cl:null,cn:null,cm:null,ck:null,ch:null,cj:null,ci:null,cg:null,a7:function(){t.$q3.a7.call(this);var n=this.br();this.cl.ak(this.ct.ak());this.cn.ak(this.cv.ak());this.cm.ak(this.cu.ak());this.ck.ak(this.cs.ak());this.ch.ak(this.cp.ak());this.cj.ak(this.cr.ak());this.ci.ak(this.cq.ak());this.cg.ak(this.co.ak());this.cl.__stroke=n;this.cn.__stroke=n;this.cl.z(this.d().thickness()+3);this.cn.z(this.d().thickness()+3);this.cm.__fill=n;this.cm.__opacity=1;this.ck.__stroke=n;this.ck.z(this.d().thickness()+3);this.ch.__stroke=n;this.cj.__stroke=n;this.ch.z(this.d().thickness()+3);this.cj.z(this.d().thickness()+3);this.ci.__fill=n;this.ci.__opacity=1;this.cg.__stroke=n;this.cg.z(this.d().thickness()+3)},a1:function(n,i){t.$q3.a1.call(this,n,i);n.c()&&(i?this.b5().displayType()==2?(n.q(this.ck),n.q(this.cg)):(n.q(this.cm),n.q(this.cl),n.q(this.cn),n.q(this.ci),n.q(this.ch),n.q(this.cj)):this.b5().displayType()==2?(n.q(this.cs),n.q(this.co)):(n.q(this.cu),n.q(this.ct),n.q(this.cv),n.q(this.cq),n.q(this.cp),n.q(this.cr)))},a0:function(n,i){if(n.c()&&this.b5().trendLineType()!=0&&!i){var r=this.b4().x();r.z(this.b5().trendLineThickness());r.__stroke=this.b5().actualTrendLineBrush();r.aa(this.b5().trendLineDashCap());r.af(this.b5().trendLineDashArray());n.s(r)}t.$q3.a0.call(this,n,i)},ah:function(n){var u,h,i,f,e,r,o,s;t.$q3.ah.call(this,n);u=new t.me(1,"positiveColumnsShape",this.cs);u.tags().add("Positive");u.tags().add("Main");h=new t.me(1,"negativeColumnsShape",this.co);h.tags().add("Negative");i=new t.me(1,"positive0",this.ct);i.tags().add("Positive");i.tags().add("Main");f=new t.me(1,"positive1",this.cv);f.tags().add("Positive");e=new t.me(1,"positive01",this.cu);e.tags().add("PositiveFill");r=new t.me(1,"negative0",this.cp);r.tags().add("Negative");r.tags().add("Main");o=new t.me(1,"negative1",this.cr);o.tags().add("Negative");s=new t.me(1,"negative01",this.cq);s.tags().add("NegativeFill");n.shapes().add(i);n.shapes().add(f);n.shapes().add(e);n.shapes().add(r);n.shapes().add(o);n.shapes().add(s)},cc:function(){this.b4(t.$kv.y(this.b4(),this.b5().xAxis(),this.d().rootCanvas(),this.b5()))},$type:new n.ig.Type("FinancialIndicatorView",t.$q3.$type)},!0);n.ig.util.defType("ForceIndexIndicator:xr","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this);this.displayType(1)},nz:function(){return new t.xs},oc:function(){return t.$xr.$type},period:function(n){return arguments.length===1?(this.g(t.$xr.periodProperty,n),n):this.c(t.$xr.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("ForceIndexIndicator",t.$ws.$type)},!0);n.ig.util.defType("ForceIndexIndicatorStrategy:xs","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.add("CloseColumn"),r.add("VolumeColumn"),r.addRange(i.a().a()),r},c:function(t){var i=this,r=function(){return function(n){return{$state:0,$this:i,$current:null,$b:0,$c:null,$d:null,$e:null,$f:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$b=0;this.$c=n.closeColumn();this.$d=n.volumeColumn();this.$e=n.indicatorColumn();this.$state=1;break;case 1:this.$state=this.$c!=null&&this.$d!=null?2:3;break;case 2:this.$b=Math.min(this.$c.count(),this.$d.count());this.$state=3;break;case 3:this.$state=4;break;case 4:this.$state=this.$b>0?5:7;break;case 5:return this.$current=0,this.$state=6,!0;case 6:this.$state=7;break;case 7:this.$state=8;break;case 8:this.$f=1;this.$state=12;break;case 9:return this.$current=this.$d.item(this.$f)*(this.$c.item(this.$f)-this.$c.item(this.$f-1)),this.$state=10,!0;case 10:this.$state=11;break;case 11:++this.$f;this.$state=12;break;case 12:this.$state=this.$f<this.$b?9:13;break;case 13:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t)};return new n.ig.GenericEnumerable$1(Number,r)},a:function(n,t){var i=this.c(n),r=n.period(),o=n.indicatorColumn(),u,f,e;for(r==0||isNaN(r)||Number.isInfinity(r)||(i=t.a().d()(i,n.period())),u=0,f=i.getEnumerator();f.moveNext();)e=f.current(),o.item(u,e),++u;return!0},$type:new n.ig.Type("ForceIndexIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("FullStochasticOscillatorIndicator:xt","StrategyBasedIndicator",{init:function(){var n=this;t.$ws.init.call(this);this.trendLineBrush(function(){var n=new t.b3;return n.fill("Blue"),n}());this.trendLineType(10);this.trendLinePeriod(3)},nz:function(){return new t.xu},oc:function(){return t.$xt.$type},period:function(n){return arguments.length===1?(this.g(t.$xt.periodProperty,n),n):this.c(t.$xt.periodProperty)},n5:function(){return this.period()},smoothingPeriod:function(n){return arguments.length===1?(this.g(t.$xt.smoothingPeriodProperty,n),n):this.c(t.$xt.smoothingPeriodProperty)},n7:function(){return this.smoothingPeriod()},triggerPeriod:function(n){return arguments.length===1?(this.g(t.$xt.triggerPeriodProperty,n),n):this.c(t.$xt.triggerPeriodProperty)},n4:function(){return this.triggerPeriod()},nd:function(){return this.triggerPeriod()},$type:new n.ig.Type("FullStochasticOscillatorIndicator",t.$ws.$type)},!0);n.ig.util.defType("FullStochasticOscillatorIndicatorStrategy:xu","IndicatorCalculationStrategy",{_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},init:function(){t.$wt.init.call(this);this.c(new t.xq)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(this.c().b(n,i)),r.addRange(i.a().a()),r},a:function(n,t){for(var f=this.c().c(n,t),e=t.a().d()(f,n.shortPeriod()),i=0,r=e.getEnumerator(),u;r.moveNext();)u=r.current(),n.indicatorColumn().item(i,u),i++;return!0},$type:new n.ig.Type("FullStochasticOscillatorIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("PercentKCalculationStrategy:xq","StreamingIndicatorCalculationStrategy",{init:function(){t.$wy.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("HighColumn"),n.add("LowColumn"),n.add("CloseColumn"),n},c:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,$d:null,$e:null,$f:0,$g:0,$h:0,$i:0,$j:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=n.period();this.$d=n.highColumn();this.$e=n.lowColumn();this.$state=1;break;case 1:this.$f=0;this.$state=16;break;case 2:this.$g=Math.min(this.$c,this.$f);this.$h=-Number.MAX_VALUE;this.$i=Number.MAX_VALUE;this.$state=3;break;case 3:this.$j=0;this.$state=12;break;case 4:this.$state=5;break;case 5:this.$state=isNaN(this.$d.item(this.$f-this.$j))?7:6;break;case 6:this.$h=Math.max(this.$h,this.$d.item(this.$f-this.$j));this.$state=7;break;case 7:this.$state=8;break;case 8:this.$state=isNaN(this.$e.item(this.$f-this.$j))?10:9;break;case 9:this.$i=Math.min(this.$i,this.$e.item(this.$f-this.$j));this.$state=10;break;case 10:this.$state=11;break;case 11:this.$j++;this.$state=12;break;case 12:this.$state=this.$j<this.$g?4:13;break;case 13:return this.$current=t.i()((n.closeColumn().item(this.$f)-this.$i)/(this.$h-this.$i)*100),this.$state=14,!0;case 14:this.$state=15;break;case 15:this.$f++;this.$state=16;break;case 16:this.$state=this.$f<n.count()?2:17;break;case 17:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},a:function(n,t){for(var i=0,r=this.c(n,t).getEnumerator(),u;r.moveNext();)u=r.current(),n.indicatorColumn().item(i,u),i++;return!0},$type:new n.ig.Type("PercentKCalculationStrategy",t.$wy.$type)},!0);n.ig.util.defType("IndicatorRenderer:wq","Object",{init:function(){n.ig.$op.init.call(this)},d:function(i,r,u,f){for(var s,c=this,e=new t.d6,h=t.$k3.c(new t.bh(n.ig.Number.prototype.$type,0),i,r,u,0,i.count()-1,f),o=0;o<h.count();o++)s=h.item(o),e.__segments.add(function(){var i=new t.d8(1);return i.c({__x:r(s),__y:u(s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());return e.__startPoint=n.ig.util.cast(t.$d8.$type,e.__segments.__inner[0]).c(),e},c:function(i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b){var rt=n.ig.util.cast(t.$dx.$type,c.ak()).b(),at=n.ig.util.cast(t.$dx.$type,v.ak()).b(),ft,g,nt,ht,ot,tt,it,lt;if(w==1){var d=new t.bh(n.ig.Number.prototype.$type,0),st=rt,ut=0;for(d.add(0),ft=0,g=1;g<i;ft=g++)nt=ut,ht=u(g)-u(ft),o&&!isNaN(ht)&&(nt=Math.sign(ht)),nt!=0&&nt!=ut&&(st.add(t.$wq.d(d,r,u,b)),ut=nt,st=ut==1?at:rt,d.clear(),d.add(ft)),d.add(g);st.add(t.$wq.d(d,r,u,b))}else{var k=new t.bh(n.ig.Number.prototype.$type,0),ct=rt,et=0;for(k.add(0),ot=0,tt=1;tt<i;ot=tt++)it=et,lt=u(tt)-u(ot),o&&!isNaN(lt)&&(it=Math.sign(lt)),it!=0&&it!=et&&(k.count()>0&&ct.add(t.$wq.d(k,r,u,b)),et=it,ct=et==1?at:rt,k.clear(),k.add(ot)),k.add(tt);k.count()>0&&ct.add(t.$wq.d(k,r,u,b))}},a:function(i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k){var fi=this,lt=n.ig.util.cast(t.$dx.$type,c.ak()).b(),at=n.ig.util.cast(t.$dx.$type,l.ak()).b(),ri=n.ig.util.cast(t.$dx.$type,v.ak()).b(),ui=n.ig.util.cast(t.$dx.$type,y.ak()).b(),vt,et,ot,gt,nt,yt,tt,pt,ht,it,ct,ii,rt,wt,ut,bt;if(b==1){var d=new t.bh(n.ig.Number.prototype.$type,0),kt=lt,dt=at,ft=0;for(d.add(0),vt=0,et=1;et<i;vt=et++)ot=ft,gt=u(et)-u(vt),o&&!isNaN(gt)&&(ot=Math.sign(gt)),ot!=0&&ot!=ft&&(d.count()>0&&(nt=t.$wq.d(d,r,u,k),yt=nt.duplicate(),yt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:n.ig.util.cast(t.$d8.$type,nt.__segments.__inner[nt.__segments.count()-1]).c().__x,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),yt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:n.ig.util.cast(t.$d8.$type,nt.__segments.__inner[0]).c().__x,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),kt.add(nt),dt.add(yt)),ft=ot,kt=ft==1?ri:lt,dt=ft==1?ui:at,d.clear(),d.add(vt)),d.add(et);tt=t.$wq.d(d,r,u,k);pt=tt.duplicate();pt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:n.ig.util.cast(t.$d8.$type,tt.__segments.__inner[tt.__segments.count()-1]).c().__x,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());pt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:n.ig.util.cast(t.$d8.$type,tt.__segments.__inner[0]).c().__x,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());kt.add(tt);dt.add(pt)}else{var g=new t.bh(n.ig.Number.prototype.$type,0),ni=lt,ti=at,st=0;for(g.add(0),ht=0,it=1;it<i;ht=it++)ct=st,ii=u(it)+e(it)-(u(ht)+e(ht)),o&&!isNaN(ii)&&(ct=Math.sign(ii)),ct!=0&&ct!=st&&(g.count()>0&&(rt=t.$wq.d(g,r,u,k),wt=rt.duplicate(),wt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:n.ig.util.cast(t.$d8.$type,rt.__segments.__inner[rt.__segments.count()-1]).c().__x,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),wt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:n.ig.util.cast(t.$d8.$type,rt.__segments.__inner[0]).c().__x,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),ni.add(rt),ti.add(wt)),st=ct,ni=st==1?ri:lt,ti=st==1?ui:at,g.clear(),g.add(ht)),g.add(it);ut=t.$wq.d(g,r,u,k);bt=ut.duplicate();bt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:n.ig.util.cast(t.$d8.$type,ut.__segments.__inner[ut.__segments.count()-1]).c().__x,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());bt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:n.ig.util.cast(t.$d8.$type,ut.__segments.__inner[0]).c().__x,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());ni.add(ut);ti.add(bt)}},b:function(i,r,u,f,e,o,s,h,c,l){for(var v,y,p=n.ig.util.cast(t.$du.$type,c.ak()),w=n.ig.util.cast(t.$du.$type,l.ak()),a=0;a<i;++a)v=h.item(a),v.c({__x:r(a),__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),v.b({__x:r(a),__y:u(a),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),y=!1,a>0?u(a)<=u(a-1)&&(y=!0):i>1&&u(a+1)<=u(a)&&(y=!0),y?p.c().add(v):w.c().add(v);h.c(i)},$type:new n.ig.Type("IndicatorRenderer",n.ig.$ot)},!0);n.ig.util.defType("ItemwiseIndicatorCalculationStrategy:xv","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){},b:function(){},$type:new n.ig.Type("ItemwiseIndicatorCalculationStrategy",n.ig.$ot)},!0);n.ig.util.defType("ItemwiseStrategyBasedIndicator:xw","StrategyBasedIndicator",{_oi:null,oi:function(n){return arguments.length===1?(this._oi=n,n):this._oi},oj:function(){},nz:function(){return new t.xx},init:function(){t.$ws.init.call(this);this.oi(this.oj());this.ny().c(this.oi())},$type:new n.ig.Type("ItemwiseStrategyBasedIndicator",t.$ws.$type)},!0);n.ig.util.defType("ItemwiseStrategyCalculationStrategy:xx","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},b:function(n,t){return this.c().b(n,t)},a:function(n,t){for(var i=!0,r=n.calculateFrom();r<n.calculateFrom()+n.calculateCount();r++)if(i=this.c().a(n,t,r),!i)return!1;return i},$type:new n.ig.Type("ItemwiseStrategyCalculationStrategy",t.$wt.$type)},!0);n.ig.util.defType("MarketFacilitationIndexIndicator:xy","ItemwiseStrategyBasedIndicator",{init:function(){t.$xw.init.call(this);this.displayType(1)},oj:function(){return new t.xz},oc:function(){return t.$xy.$type},$type:new n.ig.Type("MarketFacilitationIndexIndicator",t.$xw.$type)},!0);n.ig.util.defType("MarketFacilitationIndexIndicatorStrategy:xz","ItemwiseIndicatorCalculationStrategy",{init:function(){t.$xv.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("HighColumn"),n.add("LowColumn"),n.add("VolumeColumn"),n},a:function(n,t,i){return n.indicatorColumn().item(i,t.i()((n.highColumn().item(i)-n.lowColumn().item(i))/n.volumeColumn().item(i))),!0},$type:new n.ig.Type("MarketFacilitationIndexIndicatorStrategy",t.$xv.$type)},!0);n.ig.util.defType("MassIndexIndicator:x0","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.x1},oc:function(){return t.$x0.$type},$type:new n.ig.Type("MassIndexIndicator",t.$ws.$type)},!0);n.ig.util.defType("MassIndexIndicatorStrategy:x1","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.add("HighColumn"),r.add("LowColumn"),r.addRange(i.a().a()),r},c:function(n,i){for(var u=new t.bh(Number,0),r=0;r<Math.min(n.count(),i.count());r++)u.add(n.item(r)-i.item(r));return u},a:function(n,t){for(var u,r,o,s,i=9,h=n.highColumn(),c=n.lowColumn(),l=n.indicatorColumn(),a=t.a().d()(this.c(h,c),i).getEnumerator(),v=t.a().d()(t.a().d()(this.c(h,c),i),i).getEnumerator(),f=new Array(i),e=0;e<i;e++)f[e]=0;for(u=0,r=0;r<l.count();r++)o=r%i,u-=f[o],a.moveNext(),v.moveNext(),s=t.i()(a.current()/v.current()),u+=s,l.item(r,u),f[o]=s;return!0},$type:new n.ig.Type("MassIndexIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("MedianPriceIndicator:x2","ItemwiseStrategyBasedIndicator",{init:function(){t.$xw.init.call(this)},oj:function(){return new t.x3},oc:function(){return t.$x2.$type},$type:new n.ig.Type("MedianPriceIndicator",t.$xw.$type)},!0);n.ig.util.defType("MedianPriceIndicatorStrategy:x3","ItemwiseIndicatorCalculationStrategy",{init:function(){t.$xv.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("HighColumn"),n.add("LowColumn"),n},a:function(n,t,i){return n.indicatorColumn().item(i,(n.highColumn().item(i)+n.lowColumn().item(i))/2),!0},$type:new n.ig.Type("MedianPriceIndicatorStrategy",t.$xv.$type)},!0);n.ig.util.defType("MoneyFlowIndexIndicator:x4","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this);this.displayType(1)},nz:function(){return new t.x5},oc:function(){return t.$x4.$type},period:function(n){return arguments.length===1?(this.g(t.$x4.periodProperty,n),n):this.c(t.$x4.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("MoneyFlowIndexIndicator",t.$ws.$type)},!0);n.ig.util.defType("MoneyFlowIndexIndicatorStrategy:x5","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n){var i=new t.bh(String,0);return i.addRange(n.typicalColumn().basedOn()),i.add("VolumeColumn"),i},a:function(n,t){for(var l=n.typicalColumn().getEnumerator(),a=n.volumeColumn().getEnumerator(),e=n.period(),i=0,f=new Array(e),o,u,h,c,r,s,v,i=0;i<e;i++)f[i]=0;for(o=0,u=new Array(e),i=0;i<e;i++)u[i]=0;for(h=0,c=0,i=0;l.moveNext()&&a.moveNext();){r=i%e;s=l.current()*a.current();o-=f[r];h-=u[r];switch(Math.sign(s-c)){case-1:f[r]=0;u[r]=s;break;case 0:f[r]=0;u[r]=0;break;case 1:f[r]=s;u[r]=0}o+=f[r];h+=u[r];v=t.i()(100*o/(o+h));n.indicatorColumn().item(i,v);c=s;++i}return!0},$type:new n.ig.Type("MoneyFlowIndexIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("MovingAverageConvergenceDivergenceIndicator:x6","StrategyBasedIndicator",{init:function(){var n=this;t.$ws.init.call(this);this.trendLineBrush(function(){var n=new t.b3;return n.fill("Blue"),n}());this.trendLineType(10);this.trendLinePeriod(9)},nz:function(){return new t.x7},oc:function(){return t.$x6.$type},shortPeriod:function(n){return arguments.length===1?(this.g(t.$x6.shortPeriodProperty,n),n):this.c(t.$x6.shortPeriodProperty)},n7:function(){return this.shortPeriod()},longPeriod:function(n){return arguments.length===1?(this.g(t.$x6.longPeriodProperty,n),n):this.c(t.$x6.longPeriodProperty)},n4:function(){return this.longPeriod()},signalPeriod:function(n){return arguments.length===1?(this.g(t.$x6.signalPeriodProperty,n),n):this.c(t.$x6.signalPeriodProperty)},nd:function(){return this.signalPeriod()},$type:new n.ig.Type("MovingAverageConvergenceDivergenceIndicator",t.$ws.$type)},!0);n.ig.util.defType("MovingAverageConvergenceDivergenceIndicatorStrategy:x7","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(n.typicalColumn().basedOn()),r.addRange(i.a().a()),r},a:function(n,t){for(var i=n.typicalColumn(),o=n.indicatorColumn(),s=n.shortPeriod(),h=n.longPeriod(),r=t.a().d()(i,s).getEnumerator(),u=t.a().d()(i,h).getEnumerator(),f=0,e;r.moveNext()&&u.moveNext();)e=t.i()(r.current()-u.current()),o.item(f,e),f++;return!0},$type:new n.ig.Type("MovingAverageConvergenceDivergenceIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("NegativeVolumeIndexIndicator:x8","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.x9},oc:function(){return t.$x8.$type},$type:new n.ig.Type("NegativeVolumeIndexIndicator",t.$ws.$type)},!0);n.ig.util.defType("NegativeVolumeIndexIndicatorStrategy:x9","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("CloseColumn"),n.add("VolumeColumn"),n},a:function(n,t){var f=n.closeColumn(),s=n.volumeColumn(),r=n.indicatorColumn(),u=0,e=0,o=0,i;for(r.count()>0&&r.item(0,u),i=1;i<r.count();i++)s.item(i)<s.item(i-1)&&(e=t.i()((f.item(i)-f.item(i-1))/f.item(i-1)),u+=o!=0?e*o:e),r.item(i,u),o=u;return!0},$type:new n.ig.Type("NegativeVolumeIndexIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("OnBalanceVolumeIndicator:ya","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yb},oc:function(){return t.$ya.$type},$type:new n.ig.Type("OnBalanceVolumeIndicator",t.$ws.$type)},!0);n.ig.util.defType("OnBalanceVolumeIndicatorStrategy:yb","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("CloseColumn"),n.add("VolumeColumn"),n},a:function(n){var u=n.closeColumn(),r=n.volumeColumn(),e=n.indicatorColumn(),f=0,i,t;for(u!=null&&r!=null&&(f=Math.min(u.count(),r.count())),i=0,f>0&&(i=r.item(0),e.item(0,i)),t=1;t<f;++t){switch(Math.sign(u.item(t)-u.item(t-1))){case-1:i-=r.item(t);break;case 1:i+=r.item(t)}e.item(t,i)}return!0},$type:new n.ig.Type("OnBalanceVolumeIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("PercentagePriceOscillatorIndicator:yc","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yd},oc:function(){return t.$yc.$type},shortPeriod:function(n){return arguments.length===1?(this.g(t.$yc.shortPeriodProperty,n),n):this.c(t.$yc.shortPeriodProperty)},n7:function(){return this.shortPeriod()},longPeriod:function(n){return arguments.length===1?(this.g(t.$yc.longPeriodProperty,n),n):this.c(t.$yc.longPeriodProperty)},n4:function(){return this.longPeriod()},$type:new n.ig.Type("PercentagePriceOscillatorIndicator",t.$ws.$type)},!0);n.ig.util.defType("PercentagePriceOscillatorIndicatorStrategy:yd","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(i.g().a()),r.addRange(i.e().a()),r},a:function(n,t){for(var e=n.indicatorColumn(),r=t.g().d()(n).getEnumerator(),i=t.e().d()(n).getEnumerator(),u=0,f;r.moveNext()&&i.moveNext();)f=t.i()(100*(r.current()-i.current())/i.current()),e.item(u,f),++u;return!0},$type:new n.ig.Type("PercentagePriceOscillatorIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("PercentageVolumeOscillatorIndicator:ye","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yf},oc:function(){return t.$ye.$type},shortPeriod:function(n){return arguments.length===1?(this.g(t.$ye.shortPeriodProperty,n),n):this.c(t.$ye.shortPeriodProperty)},n7:function(){return this.shortPeriod()},longPeriod:function(n){return arguments.length===1?(this.g(t.$ye.longPeriodProperty,n),n):this.c(t.$ye.longPeriodProperty)},n4:function(){return this.longPeriod()},$type:new n.ig.Type("PercentageVolumeOscillatorIndicator",t.$ws.$type)},!0);n.ig.util.defType("PercentageVolumeOscillatorIndicatorStrategy:yf","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(i.h().a()),r.addRange(i.f().a()),r},a:function(n,t){for(var r=t.h().d()(n).getEnumerator(),i=t.f().d()(n).getEnumerator(),e=n.indicatorColumn(),u=0,f;r.moveNext()&&i.moveNext();)f=t.i()(100*(r.current()-i.current())/i.current()),e.item(u,f),++u;return!0},$type:new n.ig.Type("PercentageVolumeOscillatorIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("PositiveVolumeIndexIndicator:yg","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yh},oc:function(){return t.$yg.$type},$type:new n.ig.Type("PositiveVolumeIndexIndicator",t.$ws.$type)},!0);n.ig.util.defType("PositiveVolumeIndexIndicatorStrategy:yh","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("CloseColumn"),n.add("VolumeColumn"),n},a:function(n,t){var f=n.closeColumn(),s=n.volumeColumn(),r=n.indicatorColumn(),u=0,e=0,o=0,i;for(r.count()>0&&r.item(0,u),i=1;i<r.count();i++)s.item(i)>s.item(i-1)&&(e=t.i()((f.item(i)-f.item(i-1))/f.item(i-1)),u+=o!=0?e*o:e),r.item(i,u),o=u;return!0},$type:new n.ig.Type("PositiveVolumeIndexIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("PriceChannelOverlay:xi","FinancialOverlay",{init:function(){this.m8=new t.bh(Number,0);this.m7=new t.bh(Number,0);t.$w3.init.call(this);this.y(t.$xi.$type);this.jw=new t.ks(3);this.jy=new t.ks(3);this.jv=new t.ks(3)},period:function(n){return arguments.length===1?(this.g(t.$xi.periodProperty,n),n):this.c(t.$xi.periodProperty)},hh:function(n,i,r,u){switch(i){case"HighColumn":case"LowColumn":this.m1(!1)}t.$w3.hh.call(this,n,i,r,u);switch(i){case"Period":this.m1(!1);this.renderSeries(!1)}},ct:function(n,i,r){var u=t.$w3.ct.call(this,n,i,r);return(this.kf()==null||this.kh()==null)&&(u=!1),u},m2:function(){var n,i;this.m8.clear();this.m7.clear();var o=t.$es.c(this.period(),0,this.bb().count()),s=Math.min(this.kf().count(),this.kh().count()),f=this.la(this.kf()),e=this.la(this.kh());for(n=0;n<s;n++){var h=Math.min(o,n),r=-Number.MAX_VALUE,u=Number.MAX_VALUE;for(i=0;i<h;i++)isNaN(f.item(n-i))||(r=Math.max(r,f.item(n-i))),isNaN(e.item(n-i))||(u=Math.min(u,e.item(n-i)));n==0&&(u=e.item(0),r=f.item(0));this.m8.add(r);this.m7.add(u)}return!0},na:function(n){return n},mk:function(i,r){var u=this,h,o,v,f,e,b,it;t.$w3.mk.call(u,i,r);var l=r.bw(),a=r.bv(),s=new t.iu(l,a,u.xAxis().isInverted()),k=new t.iu(l,a,u.yAxis().isInverted()),rt=u.xAxis(),d=u.yAxis();if(i.h.clear(),i.p.clear(),i.q.clear(),h=0,o=n.ig.util.cast(t.$kr.$type,u.xAxis()),o==null||o.sortedIndices().count()==u.bb().count())for(h=u.getOffset(l,a),u.m1()||u.m1(u.m2()),v=u.na(u.xAxis().getUnscaledValue(2,s)-u.xAxis().getUnscaledValue(1,s)),f=r.by().c();f<=r.by().d();++f){if(o==null)e=r.by().getBucket(f);else{for(var y=o.sortedIndices().__inner[f],c=o.getUnscaledValueAt(y),g=u.na(u.m8.__inner[f]),nt=u.na(u.m7.__inner[f]),p=g,w=nt,tt=c;f<r.by().d();){if(y=o.sortedIndices().__inner[f+1],tt=o.getUnscaledValueAt(y),tt-c>v)break;f++;p=Math.max(g,u.na(u.m8.__inner[f]));w=Math.min(nt,u.na(u.m7.__inner[f]))}n.ig.Single.prototype.isInfinity(w)||n.ig.Single.prototype.isInfinity(p)?e=function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}():(b=NaN,isNaN(c)||(b=u.xAxis().getScaledValue(c,s)),e=function(){var n=[];return n.add(u.na(b)),n.add(w),n.add(p),n}())}it=Math.max(1,v);!isNaN(e[0])&&f*it>=u.ignoreFirst()&&(e[0]=u.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,u.xAxis())!==null?e[0]+h:rt.getScaledValue(e[0],s)+h,e[1]=d.getScaledValue(e[1],k),e[2]=d.getScaledValue(e[2],k),i.h.add(e))}},gh:function(n,i){t.$w3.gh.call(this,n,i);var r=i;r!=null&&r.b5()},mm:function(i,r){var u=this,f,s;if(t.$w3.mm.call(u,i,r),f=n.ig.util.cast(t.$xh.$type,r),f!=null){if(r.b1(i)){f.b5();var e=i.h.count(),c=function(n){return i.h.__inner[n][0]},l=function(n){return i.h.__inner[e-1-n][0]},a=function(n){return i.h.__inner[n][1]},v=function(n){return i.h.__inner[e-1-n][2]};f.b6(e,c,l,a,v);r.b3(i)}u.jz.x(u,u.k1(),u.xAxis(),u.getCategoryItems.runOn(u),u.lq(r),u.lr(r));var o=!1,y=u.jz.b(),p=i.h,w=u.bb().count();y!=null&&(o=!0);o&&(s=new t.iu(r.bw(),r.bv(),u.xAxis().isInverted()),u.mj(p,-1,w,u.xAxis(),s,r.n()));var b=f.cc(),k=f.cd(),h=f.b8();u.jz.ae(b,!0,!1,!0,!0);u.jz.ae(k,!0,!1,!0,!0);u.jz.ae(h,!1,!0,!1,!1);h.__opacity=u.jz.i*u.actualAreaFillOpacity()}},m8:null,m7:null,au:function(){return new t.xh(this)},hc:function(i){t.$w3.hc.call(this,i);this.m6(n.ig.util.cast(t.$xh.$type,i))},_m6:null,m6:function(n){return arguments.length===1?(this._m6=n,n):this._m6},getSeriesValue:function(n,i,r){if(this.seriesViewer()==null)return NaN;var u=new t.iu(this.seriesViewer().actualWindowRect(),this.view().bv(),this.xAxis().isInverted()),f=this.getOffset(this.seriesViewer().actualWindowRect(),this.view().bv());return this.dk(new t.rz(this.m8,this.m7),n,this.xAxis(),u,f,this.li.runOn(this),i,r)},getNextOrExactIndex:function(n,i){return this.m8==null||this.m7==null?t.$w3.getNextOrExactIndex.call(this,n,i):this.d3(n,i,this.xAxis(),this.li.runOn(this),new t.rz(this.m8,this.m7))},getPreviousOrExactIndex:function(n,i){return this.m8==null||this.m7==null?t.$w3.getPreviousOrExactIndex.call(this,n,i):this.d5(n,i,this.xAxis(),this.li.runOn(this),new t.rz(this.m8,this.m7))},$type:new n.ig.Type("PriceChannelOverlay",t.$w3.$type)},!0);n.ig.util.defType("PriceChannelBucketCalculator:xj","FinancialBucketCalculator",{init:function(n){t.$q4.init.call(this,n);this.f(n)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},getBucket:function(n){var t=this,r=n*t.b(),e=Math.min(r+t.b()-1,t.a().b0().bb().count()-1),i;if(r<=e){var u=-Number.MAX_VALUE,f=Number.MAX_VALUE,o=0;for(i=r;i<=e;++i)isNaN(t.f().b4().m8.__inner[i])||isNaN(t.f().b4().m7.__inner[i])||(u=Math.max(u,t.f().b4().m8.__inner[i]),f=Math.min(f,t.f().b4().m7.__inner[i]),++o);if(o>0&&f!=Number.MAX_VALUE&&u!=-Number.MAX_VALUE)return function(){var n=[];return n.add(.5*(r+e)),n.add(f),n.add(u),n}()}return function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}()},$type:new n.ig.Type("PriceChannelBucketCalculator",t.$q4.$type)},!0);n.ig.util.defType("PriceVolumeTrendIndicator:yi","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yj},oc:function(){return t.$yi.$type},$type:new n.ig.Type("PriceVolumeTrendIndicator",t.$ws.$type)},!0);n.ig.util.defType("PriceVolumeTrendIndicatorStrategy:yj","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("VolumeColumn"),n.add("CloseColumn"),n},a:function(n,t){var r=0,f=n.indicatorColumn(),o=n.volumeColumn(),u=n.closeColumn(),e=n.count(),i;for(e>0&&f.item(0,r),i=1;i<e;++i)r=r+t.i()(o.item(i)*(u.item(i)-u.item(i-1))/u.item(i-1)),f.item(i,r);return!0},$type:new n.ig.Type("PriceVolumeTrendIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("RateOfChangeAndMomentumIndicator:yk","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yl},oc:function(){return t.$yk.$type},period:function(n){return arguments.length===1?(this.g(t.$yk.periodProperty,n),n):this.c(t.$yk.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("RateOfChangeAndMomentumIndicator",t.$ws.$type)},!0);n.ig.util.defType("RateOfChangeAndMomentumIndicatorStrategy:yl","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("CloseColumn"),n},a:function(n,t){for(var s=n.closeColumn(),h=n.indicatorColumn(),u=n.period(),i=0,r=new Array(u),f,i=0;i<u;i++)r[i]=0;for(i=0,f=s.getEnumerator();f.moveNext();){var o=f.current(),e=i%u,c=t.i()(100*(o-r[e])/r[e]);h.item(i,c);r[e]=o;++i}return!0},$type:new n.ig.Type("RateOfChangeAndMomentumIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("RelativeStrengthIndexIndicator:ym","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this);this.displayType(1)},nz:function(){return new t.yn},oc:function(){return t.$ym.$type},period:function(n){return arguments.length===1?(this.g(t.$ym.periodProperty,n),n):this.c(t.$ym.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("RelativeStrengthIndexIndicator",t.$ws.$type)},!0);n.ig.util.defType("RelativeStrengthIndexIndicatorStrategy:yn","StreamingIndicatorCalculationStrategy",{init:function(){t.$wy.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("CloseColumn"),n},a:function(n,t){for(var i=0,r=this.c(n,t).getEnumerator(),u;r.moveNext();)u=r.current(),n.indicatorColumn().item(i,u),i++;return!0},c:function(t,i){var r=this,u=function(){return function(n,t){return{$state:0,$this:r,$current:null,$c:0,$d:0,$e:0,$f:0,$g:null,$h:null,$i:0,$j:0,$k:0,$l:0,$m:0,$n:0,$o:0,$p:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=n.period();this.$d=2/(this.$c+1);this.$e=0;this.$f=0;this.$g=n.indicatorColumn();this.$h=n.closeColumn();this.$state=1;break;case 1:this.$state=this.$g.count()>0?2:4;break;case 2:return this.$current=0,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=5;break;case 5:this.$i=1;this.$state=9;break;case 6:return this.$j=this.$h.item(this.$i)-this.$h.item(this.$i-1),this.$k=this.$j>0?this.$j:0,this.$l=this.$j>0?0:-this.$j,this.$e+=this.$k/(this.$c-1),this.$f+=this.$l/(this.$c-1),this.$current=0,this.$state=7,!0;case 7:this.$state=8;break;case 8:++this.$i;this.$state=9;break;case 9:this.$state=this.$i<Math.min(n.period(),this.$g.count())?6:10;break;case 10:this.$state=11;break;case 11:this.$j=n.period();this.$state=15;break;case 12:return this.$k=this.$h.item(this.$j)-this.$h.item(this.$j-1),this.$l=this.$k>0?this.$k:0,this.$m=this.$k>0?0:-this.$k,this.$e=(this.$e*(this.$c-1)+this.$l)/this.$c,this.$f=(this.$f*(this.$c-1)+this.$m)/this.$c,this.$current=t.i()(this.$e!=0?100*this.$e/(this.$e+this.$f):0),this.$state=13,!0;case 13:this.$state=14;break;case 14:++this.$j;this.$state=15;break;case 15:this.$state=this.$j<this.$g.count()?12:16;break;case 16:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t,i)};return new n.ig.GenericEnumerable$1(Number,u)},$type:new n.ig.Type("RelativeStrengthIndexIndicatorStrategy",t.$wy.$type)},!0);n.ig.util.defType("SlowStochasticOscillatorIndicator:yo","StrategyBasedIndicator",{init:function(){var n=this;t.$ws.init.call(this);this.trendLineBrush(function(){var n=new t.b3;return n.fill("Blue"),n}());this.trendLineType(10);this.trendLinePeriod(3)},nz:function(){return new t.yp},oc:function(){return t.$yo.$type},period:function(n){return arguments.length===1?(this.g(t.$yo.periodProperty,n),n):this.c(t.$yo.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("SlowStochasticOscillatorIndicator",t.$ws.$type)},!0);n.ig.util.defType("SlowStochasticOscillatorIndicatorStrategy:yp","IndicatorCalculationStrategy",{_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},init:function(){t.$wt.init.call(this);this.c(new t.xq)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(this.c().b(n,i)),r.addRange(i.a().a()),r},a:function(n,t){for(var f=this.c().c(n,t),e=t.a().d()(f,3),i=0,r=e.getEnumerator(),u;r.moveNext();)u=r.current(),n.indicatorColumn().item(i,u),i++;return!0},$type:new n.ig.Type("SlowStochasticOscillatorIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("StandardDeviationIndicator:yq","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yr},oc:function(){return t.$yq.$type},period:function(n){return arguments.length===1?(this.g(t.$yq.periodProperty,n),n):this.c(t.$yq.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("StandardDeviationIndicator",t.$ws.$type)},!0);n.ig.util.defType("StandardDeviationIndicatorStrategy:yr","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(n.typicalColumn().basedOn()),r.addRange(i.d().a()),r},a:function(n,t){for(var i=t.d().d()(n.typicalColumn(),n.period()).getEnumerator(),u=n.indicatorColumn(),r=0;i.moveNext();)u.item(r,i.current()),r++;return!0},$type:new n.ig.Type("StandardDeviationIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("StochRSIIndicator:ys","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yt},oc:function(){return t.$ys.$type},period:function(n){return arguments.length===1?(this.g(t.$ys.periodProperty,n),n):this.c(t.$ys.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("StochRSIIndicator",t.$ws.$type)},!0);n.ig.util.defType("StochRSIIndicatorStrategy:yt","IndicatorCalculationStrategy",{_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},init:function(){t.$wt.init.call(this);this.c(new t.yn)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(this.c().b(n,i)),r},a:function(n,t){for(var s=this.c().c(n,t).getEnumerator(),e=n.period(),i=0,u=new Array(e),r,c,i=0;i<e;i++)u[i]=0;for(i=0;s.moveNext();){var f=Math.min(e,i),h=-Number.MAX_VALUE,o=Number.MAX_VALUE,l=i%e;for(r=0;r<f;r++)isNaN(u[f-r-1])||(h=Math.max(h,u[f-r-1])),isNaN(u[f-r-1])||(o=Math.min(o,u[f-r-1]));u[l]=s.current();c=t.i()((s.current()-o)/(h-o));n.indicatorColumn().item(i,c);i++}return!0},$type:new n.ig.Type("StochRSIIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("TRIXIndicator:yu","StrategyBasedIndicator",{init:function(){var n=this;t.$ws.init.call(this);this.displayType(0);this.trendLineBrush(function(){var n=new t.b3;return n.fill("Blue"),n}());this.trendLineType(9);this.trendLinePeriod(9)},nz:function(){return new t.yv},oc:function(){return t.$yu.$type},period:function(n){return arguments.length===1?(this.g(t.$yu.periodProperty,n),n):this.c(t.$yu.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("TRIXIndicator",t.$ws.$type)},!0);n.ig.util.defType("TRIXIndicatorStrategy:yv","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.add("CloseColumn"),r.addRange(i.a().a()),r},a:function(n,t){var e=t.a().d()(n.closeColumn(),n.period()),o=t.a().d()(e,n.period()),i=t.a().d()(o,n.period()).getEnumerator(),u=n.indicatorColumn(),f,r;for(u.count()>0&&u.item(0,0),f=1,i.moveNext(),r=i.current();i.moveNext();)u.item(f,t.i()((i.current()-r)/r)),r=i.current(),f++;return!0},$type:new n.ig.Type("TRIXIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("TypicalPriceIndicator:yw","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yx},oc:function(){return t.$yw.$type},$type:new n.ig.Type("TypicalPriceIndicator",t.$ws.$type)},!0);n.ig.util.defType("TypicalPriceIndicatorStrategy:yx","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n){var i=new t.bh(String,0);return i.addRange(n.typicalColumn().basedOn()),i},a:function(n){for(var t=0,i=n.typicalColumn().getEnumerator(),r;i.moveNext();)r=i.current(),n.indicatorColumn().item(t,r),t++;return!0},$type:new n.ig.Type("TypicalPriceIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("UltimateOscillatorIndicator:yy","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.yz},oc:function(){return t.$yy.$type},$type:new n.ig.Type("UltimateOscillatorIndicator",t.$ws.$type)},!0);n.ig.util.defType("UltimateOscillatorIndicatorCalculationStrategy:yz","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(n,i){var r=new t.bh(String,0);return r.addRange(n.trueLow().basedOn()),r.add("CloseColumn"),r.addRange(n.trueRange().basedOn()),r.addRange(i.b().a()),r},c:function(n){for(var i=0,r=new t.bh(Number,0),u=n.trueLow().getEnumerator();u.moveNext();)r.add(n.closeColumn().item(i)-u.current()),i++;return r},a:function(n,t){for(var i=this.c(n),r=n.trueRange(),u=t.b().d()(i,7).getEnumerator(),f=t.b().d()(r,7).getEnumerator(),e=t.b().d()(i,14).getEnumerator(),o=t.b().d()(r,14).getEnumerator(),s=t.b().d()(i,28).getEnumerator(),h=t.b().d()(r,28).getEnumerator(),c=0,l,a;u.moveNext()&&f.moveNext()&&e.moveNext()&&o.moveNext()&&s.moveNext()&&h.moveNext();)l=t.i()(4*(u.current()/f.current())+2*(e.current()/o.current())+s.current()/h.current()),a=l/7*100,n.indicatorColumn().item(c,a),c++;return!0},$type:new n.ig.Type("UltimateOscillatorIndicatorCalculationStrategy",t.$wt.$type)},!0);n.ig.util.defType("WeightedCloseIndicator:y0","ItemwiseStrategyBasedIndicator",{init:function(){t.$xw.init.call(this)},oj:function(){return new t.y1},oc:function(){return t.$y0.$type},$type:new n.ig.Type("WeightedCloseIndicator",t.$xw.$type)},!0);n.ig.util.defType("WeightedCloseIndicatorStrategy:y1","ItemwiseIndicatorCalculationStrategy",{init:function(){t.$xv.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("HighColumn"),n.add("LowColumn"),n.add("CloseColumn"),n},a:function(n,t,i){return n.indicatorColumn().item(i,(n.highColumn().item(i)+n.lowColumn().item(i)+n.closeColumn().item(i)*2)/4),!0},$type:new n.ig.Type("WeightedCloseIndicatorStrategy",t.$xv.$type)},!0);n.ig.util.defType("WilliamsPercentRIndicator:y2","StrategyBasedIndicator",{init:function(){t.$ws.init.call(this)},nz:function(){return new t.y3},oc:function(){return t.$y2.$type},period:function(n){return arguments.length===1?(this.g(t.$y2.periodProperty,n),n):this.c(t.$y2.periodProperty)},n5:function(){return this.period()},$type:new n.ig.Type("WilliamsPercentRIndicator",t.$ws.$type)},!0);n.ig.util.defType("WilliamsPercentRIndicatorStrategy:y3","IndicatorCalculationStrategy",{init:function(){t.$wt.init.call(this)},b:function(){var n=new t.bh(String,0);return n.add("HighColumn"),n.add("LowColumn"),n.add("CloseColumn"),n},a:function(n,t){for(var r,s=n.period(),e=n.highColumn(),o=n.lowColumn(),i=0;i<n.count();i++){var h=Math.min(s,i),u=-Number.MAX_VALUE,f=Number.MAX_VALUE;for(r=0;r<h;r++)isNaN(e.item(i-r))||(u=Math.max(u,e.item(i-r))),isNaN(o.item(i-r))||(f=Math.min(f,o.item(i-r)));n.indicatorColumn().item(i,t.i()((n.closeColumn().item(i)-u)/(u-f)*100))}return!0},$type:new n.ig.Type("WilliamsPercentRIndicatorStrategy",t.$wt.$type)},!0);n.ig.util.defType("FunnelDataContext:p7","Object",{init:function(){n.ig.$op.init.call(this)},c:null,item:function(n){return arguments.length===1?(this.c=n,n):this.c},a:0,b:function(n){return arguments.length===1?(this.a=n,n):this.a},$type:new n.ig.Type("FunnelDataContext",n.ig.$ot)},!0);n.ig.util.defType("FunnelFrame:ql","Object",{init:function(){n.ig.$op.init.call(this);this.b(new t.pf)},c:!1,f:function(n){return arguments.length===1?(this.c=n,n):this.c},e:!1,h:function(n){return arguments.length===1?(this.e=n,n):this.e},d:!1,g:function(n){return arguments.length===1?(this.d=n,n):this.d},a:null,b:function(n){return arguments.length===1?(this.a=n,n):this.a},i:0,j:function(n){return arguments.length===1?(this.i=n,n):this.i},k:function(n,i,r,u){var l=1-u,o,a,s,v,h;n.f(r.f());n.g(r.g());n.h(r.h());n.j(i.j()*l+r.j()*u);var f=i.b().count(),e=r.b().count(),c=Math.max(f,e);for(n.b().count()<c&&n.b().insertRange(n.b().count(),new Array(c-n.b().count())),n.b().count()>c&&n.b().removeRange(c,n.b().count()-c),o=0;o<Math.min(f,e);++o)n.b().__inner[o]=t.$ph.c(n.b().__inner[o],i.b().__inner[o],r.b().__inner[o],u,l);if(f<e)for(a=f>0?i.b().__inner[f-1]:new t.ph,s=f;s<e;++s)n.b().__inner[s]=t.$ph.c(n.b().__inner[s],a,r.b().__inner[s],u,l);if(f>e)for(v=e>0?r.b().__inner[e-1]:new t.ph,h=e;h<f;++h)n.b().__inner[h]=t.$ph.c(n.b().__inner[h],i.b().__inner[h],v,u,l)},$type:new n.ig.Type("FunnelFrame",n.ig.$ot)},!0);n.ig.util.defType("IItemProvider:o5","Object",{$type:new n.ig.Type("IItemProvider",null)},!0);n.ig.util.defType("IFunnelLabelSizeDecider:pu","Object",{$type:new n.ig.Type("IFunnelLabelSizeDecider",null)},!0);n.ig.util.defType("IOuterLabelWidthDecider:pt","Object",{$type:new n.ig.Type("IOuterLabelWidthDecider",null)},!0);n.ig.util.defType("SliceInfo:ph","Object",{init:function(){n.ig.$op.init.call(this);this.b(new t.pi);this.n({__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},k:null,l:function(n){return arguments.length===1?(this.k=n,n):this.k},m:null,n:function(n){return arguments.length===1?(this.m=n,n):this.m},i:0,j:function(n){return arguments.length===1?(this.i=n,n):this.i},f:!1,h:function(n){return arguments.length===1?(this.f=n,n):this.f},a:null,b:function(n){return arguments.length===1?(this.a=n,n):this.a},e:!1,g:function(n){return arguments.length===1?(this.e=n,n):this.e},c:function(i,r,u,f,e){return i==null&&(i=new t.ph),i.g(u.g()),i.h(u.h()),i.j(u.j()),i.l(u.l()),i.n({__x:r.n().__x*e+u.n().__x*f,__y:r.n().__y*e+u.n().__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(t.$pi.f(i.b(),r.b(),u.b(),f,e)),i},d:function(){var n=new t.pk;return n.appearance(new t.gh),n.appearance().fill(t.$gk.fromBrush(this.b().al())),n.appearance().stroke(t.$gk.fromBrush(this.b().ao())),n.appearance().strokeThickness(this.b().k()),n.appearance().opacity(this.b().j()),n.index(this.j()),n.innerLabel(this.b().p().toString()),n.outerLabel(this.l().toString()),n.slicePoints(this.b().ae()),n.innerLabelPosition(this.a.x()),n.outerLabelPosition(this.m),n.outerLabelBounds(this.b().as()),n.innerLabelBounds(this.b().ar()),n.visibility(this.b().aw()),n.innerLabelAppearance(new t.g0),n.innerLabelAppearance().labelBrush(t.$gk.fromBrush(this.b().am())),n.innerLabelAppearance().text(n.innerLabel()),n.innerLabelAppearance().visibility(this.b().h()),n.outerLabelAppearance(new t.g0),n.outerLabelAppearance().labelBrush(t.$gk.fromBrush(this.b().an())),n.outerLabelAppearance().text(n.outerLabel()),n.outerLabelAppearance().visibility(this.g()),n},$type:new n.ig.Type("SliceInfo",n.ig.$ot)},!0);n.ig.util.defType("SliceAppearance:pi","Object",{init:function(){this.i=1;n.ig.$op.init.call(this);this.s={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};this.t={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};this.v={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};this.w={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};this.u={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},u:null,aa:function(n){return arguments.length===1?(this.u=n,n):this.u},v:null,ab:function(n){return arguments.length===1?(this.v=n,this.ag(),n):this.v},a:null,c:function(n){return arguments.length===1?(this.a=n,this.ag(),n):this.a},b:null,e:function(n){return arguments.length===1?(this.b=n,this.ag(),n):this.b},ad:null,ae:function(n){return arguments.length===1?(this.ad=n,n):this.ad},ag:function(){},af:function(){var i=new t.cb(0),u,h,f,c,e,o;if(this.e()!=null)for(u=this.e().getEnumerator();u.moveNext();)h=u.current(),i.add(h);else i.add(this.ab()),i.add(this.ac());if(this.c()!=null){for(f=this.c().getEnumerator();f.moveNext();)c=f.current(),i.add(c);this.e()!=null&&this.e().count()>0&&i.add(this.e().__inner[0])}else i.add(this.z()),i.add(this.y()),i.add(this.ab());if(e=0,o=Math.min(n.ig.intDivide(i.count(),2),5),o>1)for(var r=i.__inner[0],s=0,l=r.__x,a=r.__y;++e<o&&s<2;)r=i.__inner[e],s=Math.abs(r.__x-l)+Math.abs(r.__y-a),s>1&&i.add({__x:r.__x,__y:r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.ae(i)},w:null,ac:function(n){return arguments.length===1?(this.w=n,this.ag(),n):this.w},t:null,z:function(n){return arguments.length===1?(this.t=n,this.ag(),n):this.t},s:null,y:function(n){return arguments.length===1?(this.s=n,this.ag(),n):this.s},at:null,au:function(n){return arguments.length===1?(this.at=n,n):this.at},ah:null,al:function(n){return arguments.length===1?(this.ah=n,n):this.ah},ak:null,ao:function(n){return arguments.length===1?(this.ak=n,n):this.ak},n:null,p:function(n){return arguments.length===1?(this.n=n,n):this.n},r:null,x:function(n){return arguments.length===1?(this.r=n,n):this.r},g:!1,h:function(n){return arguments.length===1?(this.g=n,n):this.g&&this.n!=null},o:null,item:function(n){return arguments.length===1?(this.o=n,n):this.o},l:0,m:function(n){return arguments.length===1?(this.l=n,n):this.l},ap:null,ar:function(n){return arguments.length===1?(this.ap=n,n):this.ap},aq:null,as:function(n){return arguments.length===1?(this.aq=n,n):this.aq},ai:null,am:function(n){return arguments.length===1?(this.ai=n,n):this.ai},aj:null,an:function(n){return arguments.length===1?(this.aj=n,n):this.aj},av:null,aw:function(n){return arguments.length===1?(this.av=n,n):this.av},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},i:0,j:function(n){return arguments.length===1?(this.i=n,n):this.i},f:function(i,r,u,f,e){var o,s;return i==null&&(i=new t.pi),i.al(u.al()),i.h(u.h()),i.p(u.p()),r.h()&&u.h()?i.x({__x:r.x().__x*e+u.x().__x*f,__y:r.x().__y*e+u.x().__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):u.h()&&i.x({__x:u.x().__x*f,__y:u.x().__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.y({__x:r.y().__x*e+u.y().__x*f,__y:r.y().__y*e+u.y().__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.z({__x:r.z().__x*e+u.z().__x*f,__y:r.z().__y*e+u.z().__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.ab({__x:r.ab().__x*e+u.ab().__x*f,__y:r.ab().__y*e+u.ab().__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.ac({__x:r.ac().__x*e+u.ac().__x*f,__y:r.ac().__y*e+u.ac().__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.aa({__x:r.aa().__x*e+u.aa().__x*f,__y:r.aa().__y*e+u.aa().__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u.c()!=null?(o=r.c(),o==null&&(o=new t.pj,o.add(r.ab()),o.add(r.y())),i.c(t.$pi.d(i.c(),o,u.c(),f,e))):i.c(null),u.e()!=null?(s=r.e(),s==null&&(s=new t.pj,s.add(r.z()),s.add(r.ac())),i.e(t.$pi.d(i.e(),s,u.e(),f,e))):i.e(null),i.ao(u.ao()),i.au(u.au()),i.item(u.item()),i.m(u.m()),i.af(),i},d:function(i,r,u,f,e){var h,v,c,y,l;i==null&&(i=new t.pj);r==null&&(r=new t.pj);var o=r.count(),s=u.count(),a=Math.max(o,s);for(i.count()<a&&i.insertRange(i.count(),new Array(a-i.count())),i.count()>a&&i.removeRange(a,i.count()-a),h=0;h<Math.min(o,s);++h)i.__inner[h]={__x:r.__inner[h].__x*e+u.__inner[h].__x*f,__y:r.__inner[h].__y*e+u.__inner[h].__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(o<s)for(v=o>0?r.__inner[o-1]:{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},c=o;c<s;++c)i.__inner[c]={__x:v.__x*e+u.__inner[c].__x*f,__y:v.__y*e+u.__inner[c].__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(o>s)for(y=s>0?u.__inner[s-1]:{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},l=s;l<o;++l)i.__inner[l]={__x:r.__inner[l].__x*e+y.__x*f,__y:r.__inner[l].__y*e+y.__y*f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return i},$type:new n.ig.Type("SliceAppearance",n.ig.$ot)},!0);n.ig.util.defType("SliceInfoList:pf","List$1",{init:function(){t.$bh.init.call(this,t.$ph.$type)},indexSort:function(){var n=this;n.sort1(function(n,t){return n.j()<t.j()?-1:n.j()>t.j()?1:0})},sortByY:function(){var n=this;n.sort1(function(n,t){return n.b().aa().__y<t.b().aa().__y?-1:n.b().aa().__y>t.b().aa().__y?1:0})},getByYValue:function(n){var i=this,t;return(i.sortByY(),t=i.s(function(t){return n<t.b().ab().__y+t.b().aa().__y?-1:n>t.b().y().__y+t.b().aa().__y?1:0}),t=t>=0?i.__inner[t].j():-1,i.indexSort(),t>=0)?t:-1},s:function(n){for(var t=0,r=this.count()-1,i,u;t<=r;)if(i=t+(r-t>>1),u=n(this.__inner[i]),u<0)r=i-1;else if(u>0)t=i+1;else return i;return~t},$type:new n.ig.Type("SliceInfoList",t.$bh.$type.specialize(t.$ph.$type))},!0);n.ig.util.defType("SliceSelectionManager:qh","Object",{init:function(){n.ig.$op.init.call(this);this.e=new n.ig.Dictionary(0)},e:null,l:function(n,t){this.e.containsKey(this.f(n))?this.e.remove(this.f(n)):this.e.item(this.f(n),t)},c:function(n){return this.e.containsKey(this.f(n))},b:function(){return this.e.count()>0},d:function(n){return!this.c(n)&&this.b()},h:function(n,t){switch(n.c()){case 1:this.k(n.g(),n.f());break;case 0:this.i(n.g(),n.f());break;case 2:for(var i=0;i<n.f();i++)this.e.containsKey(this.f(i))&&this.e.item(this.f(i),t.a().item(i));break;case 4:this.g()}},i:function(t,i){var s=new n.ig.Array,h=new n.ig.Array,f,c,r,e,o,u;for(f in this.e.keysHolder)c={key:f,value:this.e[f]},r=0,r=n.ig.Number.prototype.parseInt(c.key),r>=t&&(s.add(r),h.add(this.e.item(this.f(r))));for(e=0,o=s.getEnumerator();o.moveNext();)u=o.current(),this.e.remove(this.f(u)),u-i>t&&this.e.item(this.f(u-i),h[e]),e++},k:function(t,i){var s=new n.ig.Array,h=new n.ig.Array,u,c,r,f,e,o;for(u in this.e.keysHolder)c={key:u,value:this.e[u]},r=0,r=n.ig.Number.prototype.parseInt(c.key),r>=t&&(s.add(r),h.add(this.e.item(this.f(r))));for(f=0,e=s.getEnumerator();e.moveNext();)o=e.current(),this.e.remove(this.f(o)),this.e.item(this.f(o+i),h[f]),f++},g:function(){this.e.clear()},f:function(n){return n.toString()},a:function(){var i=new Array(this.e.count()),r=0,t,u,f;for(t in this.e.keysHolder)u={key:t,value:this.e[t]},f=n.ig.Number.prototype.parseInt(u.key),i[r]=f,r++;return i},j:function(n,t){var i,r;for(this.g(),i=0;i<n.length;i++)r=n[i],this.l(r,t.a().item(r))},$type:new n.ig.Type("SliceSelectionManager",n.ig.$ot)},!0);n.ig.util.defType("XamFunnelController:pe","Object",{_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},ao:null,b9:null,ca:null,b5:null,b6:null,a6:!1,bb:!1,init:function(){var i=this;this.a6=!1;this.bb=!1;this.bl=-1;this.at=!1;n.ig.$op.init.call(this);this.aq(new t.eo(0,1,2e3));this.aq().propertyChanged=n.ig.Delegate.prototype.combine(this.aq().propertyChanged,this.cs.runOn(this));this.g(new t.ql);this.f(new t.ql);this.d(new t.ql);this.ad(new t.qh);this.ah(new t.pq);this.am(new t.pr);this.an(new t.pr);this.t(new t.pa);this.s(new t.pa);this.v(new t.o6);this.v().b(t.$p8.$type,this.c4.runOn(this));this.v().b(t.$qi.$type,this.cq.runOn(this));this.v().b(t.$qd.$type,this.db.runOn(this));this.v().b(t.$qe.$type,this.dc.runOn(this));this.v().b(t.$px.$type,this.cy.runOn(this));this.v().b(t.$py.$type,this.cw.runOn(this));this.v().b(t.$pv.$type,this.cx.runOn(this));this.v().b(t.$qm.$type,this.da.runOn(this));this.v().b(t.$qn.$type,this.cu.runOn(this));this.v().b(t.$qc.$type,function(n){return i.t().i(n)})},cs:function(){if(this.bw(this.aq().transitionProgress()),this.bw()==1&&(this.a4(!1),this.cr(this.d())),this.a4()){var n=1-this.bw();t.$ql.k(this.f(),this.g(),this.d(),this.bw());this.cr(this.f())}},ap:null,aq:function(n){return arguments.length===1?(this.ap=n,n):this.ap},ae:null,af:function(n){return arguments.length===1?(this.ae=n,n):this.ae},u:null,v:function(n){return arguments.length===1?(this.u=n,n):this.u},ag:null,ah:function(n){return arguments.length===1?(this.ag=n,n):this.ag},aj:null,am:function(n){return arguments.length===1?(this.aj=n,n):(this.a6||this.ao==null||(this.a6=this.ao.l(this.aj,this.b5)),this.aj)},ak:null,an:function(n){return arguments.length===1?(this.ak=n,n):(this.bb||this.ao==null||(this.bb=this.ao.l(this.ak,this.b6)),this.ak)},ci:null,cl:function(n){return arguments.length===1?(this.ci=n,n):this.ci},ch:null,ck:function(n){return arguments.length===1?(this.ch=n,n):this.ch},cg:null,cj:function(n){return arguments.length===1?(this.cg=n,n):this.cg},az:!1,be:function(n){return arguments.length===1?(this.az=n,n):this.az},bp:0,by:function(n){return arguments.length===1?(this.bp=n,n):this.bp},bo:0,bx:function(n){return arguments.length===1?(this.bo=n,n):this.bo},r:null,t:function(n){return arguments.length===1?(this.r=n,n):this.r},q:null,s:function(n){return arguments.length===1?(this.q=n,n):this.q},n:null,o:function(n){return arguments.length===1?(this.n=n,n):this.n},j:null,k:function(n){return arguments.length===1?(this.j=n,n):this.j},av:!1,a7:function(n){return arguments.length===1?(this.av=n,n):this.av},ay:!1,bc:function(n){return arguments.length===1?(this.ay=n,n):this.ay},bn:0,bw:function(n){return arguments.length===1?(this.bn=n,n):this.bn},ax:!1,a9:function(n){return arguments.length===1?(this.ax=n,n):this.ax},bk:0,bq:function(n){return arguments.length===1?(this.bk=n,n):this.bk},dh:null,dj:function(n){return arguments.length===1?(this.dh=n,n):((this.dh==null||this.dh.length<1)&&this.ao!=null&&(this.dh=this.ao.a3(!0)),this.dh)},di:null,dk:function(n){return arguments.length===1?(this.di=n,n):((this.di==null||this.di.length<1)&&this.ao!=null&&(this.di=this.ao.a3(!1)),this.di)},y:null,z:function(n){return arguments.length===1?(this.y=n,n):this.y},h:null,i:function(n){return arguments.length===1?(this.h=n,n):this.h},as:!1,a4:function(n){return arguments.length===1?(this.as=n,n):this.as},bm:0,bv:function(n){return arguments.length===1?(this.bm=n,n):this.bm},a0:!1,bh:function(n){return arguments.length===1?(this.a0=n,n):this.a0},cc:null,cf:function(n){return arguments.length===1?(this.cc=n,n):this.cc},cb:null,ce:function(n){return arguments.length===1?(this.cb=n,n):this.cb},ar:!1,a3:function(n){return arguments.length===1?(this.ar=n,n):this.ar},bz:0,b3:function(n){return arguments.length===1?(this.bz=n,n):this.bz},b0:0,b4:function(n){return arguments.length===1?(this.b0=n,n):this.b0},l:null,m:function(n){return arguments.length===1?(this.l=n,n):this.l},w:null,x:function(n){if(arguments.length===1){var t=this.w;return this.w=n,this.c0(t,this.w),n}return this.w},ac:null,ad:function(n){return arguments.length===1?(this.ac=n,n):this.ac},c:null,g:function(n){return arguments.length===1?(this.c=n,n):this.c},a:null,d:function(n){return arguments.length===1?(this.a=n,n):this.a},b:null,f:function(n){return arguments.length===1?(this.b=n,n):this.b},dn:null,dr:function(n){return arguments.length===1?(this.dn=n,n):this.dn},dp:null,ds:function(n){return arguments.length===1?(this.dp=n,n):this.dp},a2:!1,bj:function(n){return arguments.length===1?(this.a2=n,n):this.a2},aw:!1,a8:function(n){return arguments.length===1?(this.aw=n,n):this.aw},a1:!1,bi:function(n){return arguments.length===1?(this.a1=n,n):this.a1},au:!1,a5:function(n){return arguments.length===1?(this.au=n,n):this.au},bl:0,bt:function(){var n=this.bl;return n<0&&this.ao!=null&&(n=this.bl=this.ao.q()),n<0?1:n},c0:function(i,r){var u,f,e,o;i!=null&&(u=n.ig.util.cast(t.$pa.$type,i.b("ConfigurationMessages")),u!=null&&u.h(this.cv.runOn(this)),u=n.ig.util.cast(t.$pa.$type,i.b("InteractionMessages")),u!=null&&u.h(this.cv.runOn(this)),this.t().g(),this.s().g());r!=null&&(f=n.ig.util.cast(t.$pa.$type,r.b("ConfigurationMessages")),f!=null&&f.e(this.cv.runOn(this)),f=n.ig.util.cast(t.$pa.$type,r.b("InteractionMessages")),f!=null&&f.e(this.cv.runOn(this)),e=n.ig.util.cast(t.$pa.$type,r.b("RenderingMessages")),this.t().f(e),o=n.ig.util.cast(t.$pa.$type,r.b("ModelUpdateMessages")),this.s().f(o));this.be(!0)},cv:function(i){this.v().c(i);var r=n.ig.util.cast(t.$p2.$type,i);r!=null&&this.be(r.c());this.c5()},bg:function(){return this.bx()>0&&this.by()>0},ba:function(){return this.ah()!=null&&this.ah().a()!=null&&this.ah().a().count()>0&&this.o()!=null&&this.k()!=null&&this.dj()!=null&&this.dj().length>0&&this.dk()!=null&&this.dk().length>0&&this.bg()},c5:function(){var n;if(this.be()){if(!this.ba()){this.cp();return}this.be(!1);n=this.o().decideWidth(this.al());n>this.by()&&(n=0);this.bc()||(n=0);var t=this.by()-n,i=n>0,u=this.a7(),r=t>0;(r||i)&&this.c2(r,i,u,t,n)}},cp:function(){this.bf()&&this.bw()>0&&this.aq().stop();this.c7("LeftLabels");this.c7("RightLabels");this.c7("SliceArea");this.co();this.d().b().clear();this.f().b().clear();this.g().b().clear()},co:function(){var n=new t.qo;this.t().i(n)},c2:function(n,i,r,u,f){var e,o;this.a4()?(e=this.g(),this.g(this.f()),this.f(e)):(o=this.g(),this.g(this.d()),this.d(o));this.c3(this.d(),n,i,r,u,f);this.aq().stop();this.bw(0);this.bf()?(t.$ql.k(this.f(),this.g(),this.d(),this.bw()),this.cr(this.f()),this.a4(!0),this.aq().start()):this.cr(this.d())},bu:function(n){return isNaN(n)?0:Math.abs(n)},at:!1,c3:function(i,r,u,f,e,o){var a=e/2,ft,et,tt,c,b,p,it,ot;this.at=this.bh();this.at?this.ct(e,a):this.af(null);for(var rt=this.i()==1,g=this.ai(),nt=0,ut=g.getEnumerator();ut.moveNext();)ft=ut.current(),nt+=this.bu(this.ah().a().item(ft));nt==0&&(rt=!1);var st=this.bx()/g.values().count(),v=0,h=0;for(h=this.bt()/2,i.j(o),i.f(f),i.h(u),i.g(this.z()==0),i.b(new t.pf),et=0,tt=g.getEnumerator();tt.moveNext();){c=tt.current();b=rt?this.bu(this.ah().a().item(c))/nt*this.bx():st;var ht=this.bs(e,v+h),w=v+b,ct=this.bs(e,w-h),k=ht/2,d=ct/2,l=new t.ph,s=l.b(),y=0;y=d>k?a-d:a-k;p=v;s.al(this.dl(c));s.ao(this.dm(c));s.au(this.dq(c));r&&(l.h(!0),s.ab({__x:a-k-y+h,__y:v-p+h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s.ac({__x:a+k-y-h,__y:v-p+h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s.y({__x:a-d-y+h,__y:w-p-h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s.z({__x:a+d-y-h,__y:w-p-h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.at&&this.cm(s,v+h,w-h,a,y-h,p),s.af());f?(s.h(!0),s.x({__x:a-y,__y:(v+w)/2-p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s.p(this.b7(c)),it=this.k().decideLabelSize(l,!0),it.b()>e&&s.h(!1),it.a()>b&&s.h(!1)):(s.h(!1),s.p(this.b7(c)));(f||r)&&(s.aa({__x:y,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s.item(this.ah().a().item(c)),s.m(c));u?(l.g(!0),l.n({__x:0,__y:(v+w)/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),l.l(this.b8(c)),ot=this.k().decideLabelSize(l,!1),ot.a()>b&&l.g(!1)):(l.g(!1),l.l(this.b8(c)));l.j(c);i.b().add(l);v+=b;et++}this.c6(i);i.b().indexSort()},cm:function(i,r,u,f,e,o){for(var h,c,p=this.af().b(r),w=this.af().b(u),l=new t.pj,a=new t.pj,v=p.b,y=w.b,s=v;s<=y;s++)l.add({__x:this.af().g()[s].c.__x-e,__y:this.af().g()[s].c.__y-o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});for(e+=this.bt(),h=y;h>=v;h--)c=this.af().g()[h].c,a.add({__x:f+f-c.__x-e,__y:c.__y-o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.c(l);i.e(a)},bd:function(n,t){return n.__x!=t.__x||n.__y!=t.__y?!0:!1},ct:function(i,r){var e,o,s=0,c=this.bx(),u,f,h,l,a;s=this.bt()/2;c-=s;this.a8()?(e={__x:r-i*this.bq()/2,__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o={__x:r-i/2,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(e={__x:r-i/2,__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o={__x:r-i*this.bq()/2,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});u=this.cf().__y<this.ce().__y?this.cf():this.ce();f=this.ce().__y>this.cf().__y?this.ce():this.cf();u.__y<0&&(u.__y=0);f.__y>1&&(f.__y=1);this.a8()&&(h=f.__x,f.__x=u.__x,u.__x=h,h=u.__y,u.__y=1-f.__y,f.__y=1-h);l={__x:i*u.__x,__y:this.bx()*u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};a={__x:i*f.__x,__y:this.bx()*f.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};(this.af()==null||this.bd(e,this.af().r())||this.bd(l,this.af().s())||this.bd(a,this.af().t())||this.bd(o,this.af().u()))&&this.af(new t.pl(e,l,a,o,2,r));this.at=this.af()==null?!1:this.af().d()},b8:function(n){var i=this.an(),t=i==null?null:i.a();return t==null||n>=t.count()?null:t.item(n)},b7:function(n){var i=this.am(),t=i==null?null:i.a();return t==null||n>=t.count()?null:t.item(n)},dq:function(n){return this.ad().c(n)?this.dr():this.ad().d(n)&&this.bj()?this.ds():null},dm:function(n){return this.dk()[n%this.dk().length]},dl:function(n){return this.dj()[n%this.dj().length]},bs:function(n,t){var i=n*this.bq(),r;return this.at?(r=this.af().b(t).c.__x,(n/2-r)*2):this.a8()?n-(n-i)*((this.bx()-t)/this.bx()):n-(n-i)*(t/this.bx())},ai:function(){var n=this,i=new t.qp;return i.populate(n.ah().a().count()),i.sort(function(t,i){return n.ah().a().item(t)<n.ah().a().item(i)?n.a8()?-1:1:n.ah().a().item(t)>n.ah().a().item(i)?n.a8()?1:-1:0}),i},cr:function(n){var f,e,r,o,u,i,s;for(this.c7("LeftLabels"),this.c7("RightLabels"),this.c7("SliceArea"),n.g()?(this.c8("LeftPanel",n.j()),this.c8("RightPanel",0)):(this.c8("LeftPanel",0),this.c8("RightPanel",n.j())),this.ab(n.b()),f=n.b().getEnumerator();f.moveNext();)e=f.current(),e.h()&&(r=new t.p3,r.e("SliceArea"),r.g(e.b()),r.h=this.bt(),this.t().i(r));for(o=n.b().getEnumerator();o.moveNext();)u=o.current(),u.g()&&(i=new t.p4,n.g()?i.e("LeftLabels"):i.e("RightLabels"),i.j(u.l()),i.l(u.n()),i.h(n.j()),i.f(u),this.t().i(i));s=new t.qo;this.t().i(s)},c8:function(n,i){var r=new t.p1;r.e(n);r.i(!0);r.m(i);this.t().i(r)},bf:function(){return this.bv()>0},c7:function(n){var i=new t.qa;i.e(n);this.t().i(i)},al:function(){return this.an()},cq:function(){this.be(!0)},b1:function(n){return t.$qr.h(n)},c4:function(i){var u=i,r=u.d(),e,o,f;switch(u.g()){case"ValueColumn":this.ah().b(r);this.be(!0);break;case"InnerLabelColumn":this.a6=!1;this.b9=r;this.am().b(r);this.be(!0);break;case"InnerLabelVisibility":this.a7(r);this.be(!0);break;case"OuterLabelVisibility":this.bc(r);this.be(!0);break;case"OuterLabelColumn":this.bb=!1;this.ca=r;this.an().b(r);this.be(!0);break;case"ValueMemberPath":this.cl(n.ig.util.cast(String,r));break;case"OuterLabelMemberPath":this.ck(n.ig.util.cast(String,r));break;case"InnerLabelMemberPath":this.cj(n.ig.util.cast(String,r));break;case"BottomEdgeWidth":this.bq(r);this.bq()>1&&this.bq(1);this.bq()<.001&&this.bq(.001);this.be(!0);break;case"Brushes":this.dj(n.ig.util.cast(n.ig.Array.prototype.$type,r));this.be(!0);break;case"Outlines":this.dk(n.ig.util.cast(n.ig.Array.prototype.$type,r));this.be(!0);break;case"OuterLabelAlignment":this.z(r);this.be(!0);break;case"FunnelSliceDisplay":this.i(r);this.be(!0);break;case"FormatInnerLabel":this.am().b(this.b9);this.a6=!1;this.b5=r;this.be(!0);break;case"FormatOuterLabel":this.an().b(this.ca);this.b6=r;this.bb=!1;this.be(!0);break;case"IsInverted":this.a8(r);this.be(!0);break;case"TransitionDuration":this.aq().intervalMilliseconds(this.b1(r));this.bv(r);break;case"AllowSliceSelection":this.a3(r);break;case"SelectedSliceStyle":this.dr(r);this.be(!0);break;case"UnselectedSliceStyle":this.ds(r);this.be(!0);break;case"UseUnselectedStyle":this.bj(r);this.be(!0);break;case"UseBezierCurve":this.bh(r);this.be(!0);break;case"UpperBezierControlPoint":this.cf(r);this.be(!0);break;case"LowerBezierControlPoint":this.ce(r);this.be(!0);break;case"ItemProvider":this.m(r);break;case"ToolTip":e=new t.p5;r!=null?this.a5(!0):(this.a5(!1),o=new t.qb,this.t().i(o));e.g(r);this.t().i(e);break;case"Legend":this.cz(r);this.be(!0);break;case"LegendItemTemplate":this.dg(r);this.be(!0);break;case"LegendItemBadgeTemplate":this.df(r);this.be(!0);break;case"UseOuterLabelsForLegend":this.bi(r);this.be(!0);break;case"OutlineThickness":this.bl=r;this.be(!0);this.t().i(u);break;case"Container":f=new t.p8;f.g(u.g());f.e(u.e());f.d(r);this.t().i(f)}},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},de:null,dg:function(n){return arguments.length===1?(this.de=n,n):this.de},dd:null,df:function(n){return arguments.length===1?(this.dd=n,n):this.dd},cz:function(n){this.p()!=null&&this.p().a9(this.x().b("Model"));this.p(n)},c6:function(n){for(var i=this,s=new t.bh(t.$am.$type,0),h=n.b().getEnumerator(),f,e,o;h.moveNext();){var r=h.current(),u=new t.cf,c="";r.b().p()!=null&&(c=i.bi()&&r.l()!=null?r.l().toString():r.b().p().toString());f=null;e=null;r.b().al()!=null&&(f=r.b().al());r.b().ao()!=null&&(e=r.b().ao());o=null;i.m()!=null&&(o=i.m().getItem(r.b().m()));u.content(function(){var n=new t.o3;return n.series(i.x().b("Model")),n.item(o),n.itemBrush(f),n.itemLabel(c),n.thickness(i.bt()),n.itemOutline(e),n}());u.ae(i.dg());s.add(u)}i.p()!=null&&i.p().aw(s,i.x().b("Model"))},dc:function(i){var r=i;switch(r.g()){case"OuterLabelWidthDecider":this.o(n.ig.util.cast(t.$pt.$type,r.d()));this.be(!0);break;case"FunnelLabelSizeDecider":this.k(n.ig.util.cast(t.$pu.$type,r.d()));this.be(!0)}},db:function(n){var t=n;this.by(t.e());this.bx(t.d());this.be(!0)},cw:function(n){var t=n,i;if(t.e()!=1)if(t.c()==1)this.b4(this.b3());else if(t.c()==0){if(i=this.b4(),this.b4(-1),t.h()!=0&&t.h()!=2)return;i==this.b3()&&this.c1(i)}},c1:function(n){var u,r,i;n<0||n>this.ah().a().count()-1||(this.a3()&&(this.ad().l(n,this.ah().a().item(n)),u=this.ad().a(),r=new t.qs,r.c(u),this.s().i(r),this.be(!0)),i=new t.qu,i.c(n),i.item(this.ah().a().item(n)),this.s().i(i))},cy:function(n){var t=n;this.b3(this.b2(t.c()));this.a5()&&this.c9(t.c())},cx:function(){var n=new t.qb;this.t().i(n)},c9:function(n){var i=new t.p7,u,r;if(this.m()!=null&&this.b3()>=0&&this.b3()<this.m().count()&&i.item(this.m().getItem(this.b3())),i.b(this.b3()),i.b()<0){u=new t.qb;this.t().i(u);return}r=new t.p6;r.g(i);r.i(this.cd(n,i));this.t().i(r)},cd:function(t){return{__x:t.__x+10,__y:t.__y+10,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},b2:function(n){var i;if(!this.ba())return-1;var r=n.__y,t=n.__x,u=this.e();if(u.g()&&(t-=u.j()),i=this.aa(r),i==null)return-1;var f=this.br(),s=this.bs(f,r),e=s/2,o=f/2;return t>=o-e&&t<=o+e?i.j():-1},br:function(){var n=this.e();return this.by()-n.j()},aa:function(n){var t=this.e(),i=t.b().getByYValue(n);return i>=0&&i<t.b().count()?t.b().__inner[i]:null},e:function(){return this.a4()?this.f():this.d()},da:function(n){var t=n;this.ad().j(t.c(),this.ah());this.be(!0)},cu:function(n){this.cn(n)},cn:function(n){var i=this.e(),t;n.c()==-1?this.be(!0):(t=i.b().__inner[n.c()],n.b()?(n.d().b()>i.j()&&this.be(!0),n.d().a()!=n.e().a()&&this.be(!0),n.d().a()>t.b().z().__y-t.b().ac().__y&&this.be(!0)):n.d().a()>t.b().z().__y-t.b().ac().__y&&this.be(!0))},$type:new n.ig.Type("XamFunnelController",n.ig.$ot)},!0);n.ig.util.defType("Message:o8","Object",{init:function(){n.ig.$op.init.call(this)},toString:function(){return this.getType().toString()},$type:new n.ig.Type("Message",n.ig.$ot)},!0);n.ig.util.defType("InteractionMessage:pw","Message",{init:function(){t.$o8.init.call(this)},$type:new n.ig.Type("InteractionMessage",t.$o8.$type)},!0);n.ig.util.defType("LabelSizeChangedMessage:qn","InteractionMessage",{init:function(){t.$pw.init.call(this)},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("LabelSizeChangedMessage",t.$pw.$type)},!0);n.ig.util.defType("RenderingMessage:p2","Message",{init:function(){t.$o8.init.call(this)},d:null,e:function(n){return arguments.length===1?(this.d=n,n):this.d},b:!1,c:function(n){return arguments.length===1?(this.b=n,n):this.b},$type:new n.ig.Type("RenderingMessage",t.$o8.$type)},!0);n.ig.util.defType("RenderOuterLabelMessage:p4","RenderingMessage",{init:function(){t.$p2.init.call(this)},i:null,j:function(n){return arguments.length===1?(this.i=n,n):this.i},k:null,l:function(n){return arguments.length===1?(this.k=n,n):this.k},g:0,h:function(n){return arguments.length===1?(this.g=n,n):this.g},toString:function(){return"RenderOuterLabelMessage["+this.j().toString()+", "+this.l().toString()+", "+this.h().toString()+"]"},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},$type:new n.ig.Type("RenderOuterLabelMessage",t.$p2.$type)},!0);n.ig.util.defType("RenderSliceMessage:p3","RenderingMessage",{init:function(){t.$p2.init.call(this);this.h=1},f:null,g:function(n){return arguments.length===1?(this.f=n,n):this.f},h:0,toString:function(){return"RenderSliceMessage["+this.g().toString()+"]"},$type:new n.ig.Type("RenderSliceMessage",t.$p2.$type)},!0);n.ig.util.defType("ModelUpdateMessage:qt","Message",{init:function(){t.$o8.init.call(this)},$type:new n.ig.Type("ModelUpdateMessage",t.$o8.$type)},!0);n.ig.util.defType("SelectedItemsChangedMessage:qs","ModelUpdateMessage",{init:function(){t.$qt.init.call(this)},b:null,c:function(n){return arguments.length===1?(this.b=n,n):this.b},toString:function(){for(var i,t="SelectedItemsChangedMessage[",n=0;n<this.c().length;n++)i=this.c()[n],t+=i.toString();return t+"]"},$type:new n.ig.Type("SelectedItemsChangedMessage",t.$qt.$type)},!0);n.ig.util.defType("SliceClickedMessage:qu","ModelUpdateMessage",{init:function(){t.$qt.init.call(this)},b:0,c:function(n){return arguments.length===1?(this.b=n,n):this.b},d:null,item:function(n){return arguments.length===1?(this.d=n,n):this.d},toString:function(){return"SliceClickedMessage["+this.c().toString()+", "+this.item().toString()+"]"},$type:new n.ig.Type("SliceClickedMessage",t.$qt.$type)},!0);n.ig.util.defType("ConfigurationMessage:p9","Message",{init:function(){t.$o8.init.call(this)},$type:new n.ig.Type("ConfigurationMessage",t.$o8.$type)},!0);n.ig.util.defType("UserSelectedItemsChangedMessage:qm","ConfigurationMessage",{init:function(){t.$p9.init.call(this)},b:null,c:function(n){return arguments.length===1?(this.b=n,n):this.b},toString:function(){for(var i,t="UserSelectedItemsChanged[",n=0;n<this.c().length;n++)i=this.c()[n],t+=i.toString();return t+"]"},$type:new n.ig.Type("UserSelectedItemsChangedMessage",t.$p9.$type)},!0);n.ig.util.defType("FunnelSliceClickedEventArgs:qw","EventArgs",{init:function(){t.$en.init.call(this)},b:0,index:function(n){return arguments.length===1?(this.b=n,n):this.b},d:null,item:function(n){return arguments.length===1?(this.d=n,n):this.d},$type:new n.ig.Type("FunnelSliceClickedEventArgs",t.$en.$type)},!0);n.ig.util.defType("XamFunnelChart:o4","Control",{init:function(){var i=this;this.bf=new t.e4(n.ig.$op.$type,0);this.bc=new t.f0(n.ig.$op.$type,n.ig.$op.$type,0);this.bo=null;t.$ak.init.call(this);this.bf.collectionChanged=n.ig.Delegate.prototype.combine(this.bf.collectionChanged,this.c4.runOn(this));this.ak(new t.o6);this.ak().b(t.$qu.$type,this.c8.runOn(this));this.ak().b(t.$qs.$type,this.c5.runOn(this));this.ai(new t.pa);this.bk=function(n,t){i.cr(t.action(),t.position(),t.count(),t.propertyName())};this.c6();this.y(t.$o4.$type);this.ar(new t.pd(new t.ps,this));this.legendItemTemplate(function(){var n=new t.cg;return n.render(t.$mx.i),n.measure(t.$mx.d),n}());this.legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.h),n.measure(t.$mx.j),n}())},aq:null,aj:null,ak:function(n){return arguments.length===1?(this.aj=n,n):this.aj},c6:function(){this.c1("BottomEdgeWidth",0,this.bottomEdgeWidth());this.c1("InnerLabelVisibility",this.innerLabelVisibility(),this.innerLabelVisibility());this.c1("OuterLabelAlignment",this.outerLabelAlignment(),this.outerLabelAlignment());this.c1("FunnelSliceDisplay",this.funnelSliceDisplay(),this.funnelSliceDisplay());this.c1("UpperBezierControlPoint",this.upperBezierControlPoint(),this.upperBezierControlPoint());this.c1("LowerBezierControlPoint",this.lowerBezierControlPoint(),this.lowerBezierControlPoint());this.c7()},c7:function(){var n=new t.p8;n.g("ItemProvider");n.e(null);n.d(this);this.ai().i(n)},al:null,am:function(n){if(arguments.length===1){var t=this.al;return this.al=n,this.c2(t,this.al),n}return this.al},_ai:null,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_ar:null,ar:function(n){return arguments.length===1?(this._ar=n,n):this._ar},c2:function(i,r){var u,f,e;i!=null&&(u=n.ig.util.cast(t.$pa.$type,i.b("ModelUpdateMessages")),u!=null&&u.h(this.cu.runOn(this)),this.ai().g());r!=null&&(f=n.ig.util.cast(t.$pa.$type,r.b("ModelUpdateMessages")),f!=null&&f.e(this.cu.runOn(this)),e=n.ig.util.cast(t.$pa.$type,r.b("ConfigurationMessages")),this.ai().f(e))},cu:function(n){this.ak().c(n)},itemsSource:function(n){return arguments.length===1?(this.g(t.$o4.itemsSourceProperty,n),n):this.c(t.$o4.itemsSourceProperty)},at:function(n){return arguments.length===1?(this.g(t.$o4.df,n),n):this.c(t.$o4.df)},bk:null,cr:function(n,i,r,u){var f=this,e=function(){var n=new t.qi;return n.g(i),n.f(r),n.i(u),n}();switch(n){case 3:e.c(3);break;case 1:e.c(1);break;case 0:e.c(0);break;case 2:e.c(2);break;case 4:e.c(4)}f.c1("ValueColumn",f.aw(),f.aw());f.c1("InnerLabelColumn",f.az(),f.az());f.c1("OuterLabelColumn",f.a0(),f.a0());f.ai().i(e)},valueMemberPath:function(n){return arguments.length===1?(this.g(t.$o4.valueMemberPathProperty,n),n):this.c(t.$o4.valueMemberPathProperty)},aw:function(n){if(arguments.length===1){if(this.av!=n){var t=this.av;this.av=n;this.c1("ValueColumn",t,this.av)}return n}return this.av},av:null,brushes:function(n){return arguments.length===1?(this.g(t.$o4.brushesProperty,n),n):this.c(t.$o4.brushesProperty)},outlines:function(n){return arguments.length===1?(this.g(t.$o4.outlinesProperty,n),n):this.c(t.$o4.outlinesProperty)},bottomEdgeWidth:function(n){return arguments.length===1?(this.g(t.$o4.bottomEdgeWidthProperty,n),n):this.c(t.$o4.bottomEdgeWidthProperty)},innerLabelMemberPath:function(n){return arguments.length===1?(this.g(t.$o4.innerLabelMemberPathProperty,n),n):this.c(t.$o4.innerLabelMemberPathProperty)},az:function(n){if(arguments.length===1){if(this.ax!=n){var t=this.ax;this.ax=n;this.c1("InnerLabelColumn",t,this.az())}return n}return this.ax},ax:null,outerLabelMemberPath:function(n){return arguments.length===1?(this.g(t.$o4.outerLabelMemberPathProperty,n),n):this.c(t.$o4.outerLabelMemberPathProperty)},a0:function(n){if(arguments.length===1){if(this.ay!=n){var t=this.ay;this.ay=n;this.c1("OuterLabelColumn",t,this.a0())}return n}return this.ay},ay:null,innerLabelVisibility:function(n){return arguments.length===1?(this.g(t.$o4.innerLabelVisibilityProperty,n),n):this.c(t.$o4.innerLabelVisibilityProperty)},outerLabelVisibility:function(n){return arguments.length===1?(this.g(t.$o4.outerLabelVisibilityProperty,n),n):this.c(t.$o4.outerLabelVisibilityProperty)},outerLabelAlignment:function(n){return arguments.length===1?(this.g(t.$o4.outerLabelAlignmentProperty,n),n):this.c(t.$o4.outerLabelAlignmentProperty)},funnelSliceDisplay:function(n){return arguments.length===1?(this.g(t.$o4.funnelSliceDisplayProperty,n),n):this.c(t.$o4.funnelSliceDisplayProperty)},formatInnerLabel:function(n){return arguments.length===1?(this.g(t.$o4.formatInnerLabelProperty,n),n):this.c(t.$o4.formatInnerLabelProperty)},formatOuterLabel:function(n){return arguments.length===1?(this.g(t.$o4.formatOuterLabelProperty,n),n):this.c(t.$o4.formatOuterLabelProperty)},transitionDuration:function(n){return arguments.length===1?(this.g(t.$o4.transitionDurationProperty,n),n):this.c(t.$o4.transitionDurationProperty)},isInverted:function(n){return arguments.length===1?(this.g(t.$o4.isInvertedProperty,n),n):this.c(t.$o4.isInvertedProperty)},upperBezierControlPoint:function(n){return arguments.length===1?(this.g(t.$o4.upperBezierControlPointProperty,n),n):this.c(t.$o4.upperBezierControlPointProperty)},lowerBezierControlPoint:function(n){return arguments.length===1?(this.g(t.$o4.lowerBezierControlPointProperty,n),n):this.c(t.$o4.lowerBezierControlPointProperty)},useBezierCurve:function(n){return arguments.length===1?(this.g(t.$o4.useBezierCurveProperty,n),n):this.c(t.$o4.useBezierCurveProperty)},allowSliceSelection:function(n){return arguments.length===1?(this.g(t.$o4.allowSliceSelectionProperty,n),n):this.c(t.$o4.allowSliceSelectionProperty)},useUnselectedStyle:function(n){return arguments.length===1?(this.g(t.$o4.useUnselectedStyleProperty,n),n):this.c(t.$o4.useUnselectedStyleProperty)},selectedSliceStyle:function(n){return arguments.length===1?(this.g(t.$o4.selectedSliceStyleProperty,n),n):this.c(t.$o4.selectedSliceStyleProperty)},unselectedSliceStyle:function(n){return arguments.length===1?(this.g(t.$o4.unselectedSliceStyleProperty,n),n):this.c(t.$o4.unselectedSliceStyleProperty)},toolTip:function(n){return arguments.length===1?(this.g(t.$o4.toolTipProperty,n),n):this.c(t.$o4.toolTipProperty)},bf:null,bc:null,selectedItems:function(){return this.bf},legend:function(n){return arguments.length===1?(this.g(t.$o4.legendProperty,n),n):this.c(t.$o4.legendProperty)},legendItemTemplate:function(n){return arguments.length===1?(this.g(t.$o4.legendItemTemplateProperty,n),n):this.c(t.$o4.legendItemTemplateProperty)},legendItemBadgeTemplate:function(n){return arguments.length===1?(this.g(t.$o4.legendItemBadgeTemplateProperty,n),n):this.c(t.$o4.legendItemBadgeTemplateProperty)},useOuterLabelsForLegend:function(n){return arguments.length===1?(this.g(t.$o4.useOuterLabelsForLegendProperty,n),n):this.c(t.$o4.useOuterLabelsForLegendProperty)},c1:function(n,i,r){var u=this;u.a5(n,i,r)||u.a4(n,i,r)||u.a7(n,i,r)||u.a6(n,i,r)||u.ai().i(function(){var u=new t.p8;return u.g(n),u.e(i),u.d(r),u}())},a4:function(n,i,r){var u=this;return n=="Brushes"||n=="Outlines"?(u.ai().i(function(){var u=new t.p8;return u.g(n),u.e(i==null?null:i.toArray()),u.d(r==null?null:r.toArray()),u}()),!0):!1},a5:function(i,r,u){var f=this;return i=="ItemsSource"?(r!=null&&f.at(null),u!=null&&f.at(function(){var n=new t.m9;return n.itemsSource(f.itemsSource()),n}()),!0):i=="FastItemsSource"?(r!=null&&(n.ig.util.cast(t.$m9.$type,r).event=n.ig.Delegate.prototype.remove(n.ig.util.cast(t.$m9.$type,r).event,f.bk)),u!=null&&(n.ig.util.cast(t.$m9.$type,u).event=n.ig.Delegate.prototype.combine(n.ig.util.cast(t.$m9.$type,u).event,f.bk)),f.cs(i,r,u),!0):i=="ValueMemberPath"||i=="InnerLabelMemberPath"||i=="OuterLabelMemberPath"?(f.cs(i,r,u),!1):!1},au:function(n,t){return n.registerColumn(t,null,!1)},a1:function(n,t){return n.registerColumnObject(t,null,!1)},cs:function(i,r,u){if(this.at()==null){var f=n.ig.util.cast(t.$m9.$type,r);f!=null&&(this.aw()!=null&&f.deregisterColumn(this.aw()),this.az()!=null&&f.deregisterColumn(this.az()),this.a0()!=null&&f.deregisterColumn(this.a0()),this.aw(null),this.az(null),this.a0(null));return}if(r!=null&&n.ig.util.cast(String,r)!==null||typeof r=="string")switch(i){case"ValueMemberPath":this.at().deregisterColumn(this.aw());this.aw(null);break;case"InnerLabelMemberPath":this.at().deregisterColumn(this.az());this.az(null);break;case"OuterLabelMemberPath":this.at().deregisterColumn(this.a0());this.a0(null)}if(u!=null&&n.ig.util.cast(t.$m9.$type,u)!==null&&(this.valueMemberPath()!=null&&this.aw(this.au(u,this.valueMemberPath())),this.innerLabelMemberPath()!=null&&this.az(this.a1(u,this.innerLabelMemberPath())),this.outerLabelMemberPath()!=null&&this.a0(this.a1(u,this.outerLabelMemberPath()))),u!=null&&n.ig.util.cast(String,u)!==null||typeof u=="string")switch(i){case"ValueMemberPath":this.aw(this.au(this.at(),this.valueMemberPath()));break;case"InnerLabelMemberPath":this.az(this.a1(this.at(),this.innerLabelMemberPath()));break;case"OuterLabelMemberPath":this.a0(this.a1(this.at(),this.outerLabelMemberPath()))}},a7:function(n,i,r){var e=this,u,f;return n=="InnerLabelVisibility"||n=="OuterLabelVisibility"?(u=i==0,f=r==0,e.ai().i(function(){var i=new t.p8;return i.g(n),i.d(f),i.e(u),i}()),!0):!1},a6:function(n,i,r){if(n=="TransitionDuration"){var u=new t.p8;return u.g(n),i!=null&&u.e(i),r!=null&&u.d(r),this.ai().i(u),!0}return!1},c8:function(n){var i=n,r;this.sliceClicked!=null&&(r=new t.qw,r.index(i.c()),this.at().count()>i.c()&&i.c()>=0&&r.item(this.at().item(i.c())),this.sliceClicked(this,r))},sliceClicked:null,c5:function(){},c4:function(){},ct:function(i,r,u,f){for(var l=new t.bh(n.ig.$op.$type,0),a=i.getEnumerator(),o,s,h,c,e;a.moveNext();)o=a.current(),f.containsKey(o)||l.add(o);for(s=l.getEnumerator();s.moveNext();)h=s.current(),i.remove(h),r.remove(h);for(c=u.getEnumerator();c.moveNext();)e=c.current(),r.containsKey(e)||(i.add(e),r.add(e,e))},getItem:function(n){return this.at().item(n)},count:function(){return this.at()!=null?this.at().count():0},bo:null,provideContainer:function(n){var t=this.bo;this.bo=n;this.c1("Container",t,this.bo)},notifyResized:function(){this.ai().i(new t.qc)},notifySetItem:function(n,i,r,u){this.cw(n,new t.e7(2,2,u,r,i))},notifyClearItems:function(n){this.cw(n,new t.e7(0,4))},notifyInsertItem:function(n,i,r){this.cw(n,new t.e7(1,0,r,i))},notifyRemoveItem:function(n,i,r){this.cw(n,new t.e7(1,1,r,i))},cw:function(n,t){if(n.dataView&&n.dataSource&&(n=n.dataView()),n==this.itemsSource()){var i=this.at();i!=null&&i.handleCollectionChanged(t)}},outlineThickness:function(n){return arguments.length===1?(this.g(t.$o4.outlineThicknessProperty,n),n):this.c(t.$o4.outlineThicknessProperty)},as:function(){var n=this.ar();return n==null?null:n.c()},ao:function(){var n=this.as();return n==null?null:n.ad()},selectedIndexes:function(n){var t,i,r,n;if(arguments.length===1){if(t=this.ao(),t==null)return;for(i=this.as(),t.g(),r=n==null?0:n.length;r-->0;)t.l(n[r],i.ah().a().item(n[r]));return i.be(!0),i.c5(),n}return n=this.ao(),n==null?null:n.a()},toggleSelection:function(n){var r=this.ao(),t,i;r!=null&&(t=this.as(),i=t.ah().a().item(n),i!=null&&(t.ad().l(n,i),t.be(!0),t.c5()))},exportVisualData:function(){for(var u,n=new t.qx,r=this.ar().c().ab(),i=0;i<r.count();i++)u=r.__inner[i].d(),n.slices().add(u);return n.name(this.name()),n},$type:new n.ig.Type("XamFunnelChart",t.$ak.$type,[t.$o5.$type])},!0);n.ig.util.defType("XamFunnelConnector:pd","Object",{d:null,b:null,c:function(){return this.b},a:null,init:function(i,r){var u,f;n.ig.$op.init.call(this);u=new t.o9;u.c("ConfigurationMessages",new t.pa);u.c("RenderingMessages",new t.pa);u.c("InteractionMessages",new t.pa);u.c("ModelUpdateMessages",new t.pa);f=new t.pe;f.ao=i;f.x(u);i.d(u);this.b=f;this.d=i;r.am(u);this.a=r;u.c("Model",this.a)},f:function(n){this.d=n;var t=this.b.x();this.b.x(null);this.b.x(t);this.d.d(t)},e:function(){this.d!=null&&this.d.d(null)},$type:new n.ig.Type("XamFunnelConnector",n.ig.$ot)},!0);n.ig.util.defType("XamFunnelSlice:y5","ContentControl",{init:function(){t.$cf.init.call(this);this.y(t.$y5.$type);this.f(t.$y5.ao,new t.a0(1,"Fill"));this.f(t.$y5.ap,new t.a0(1,"Outline"))},_au:null,au:function(n){return arguments.length===1?(this._au=n,n):this._au},_af:null,af:function(n){return arguments.length===1?(this._af=n,n):this._af},ag:function(n){return arguments.length===1?(this.g(t.$y5.at,n),n):this.c(t.$y5.at)},ax:function(n){return arguments.length===1?(this.g(t.$y5.aq,n),n):this.c(t.$y5.aq)},ay:function(n){return arguments.length===1?(this.g(t.$y5.as,n),n):this.c(t.$y5.as)},av:function(n){return arguments.length===1?(this.g(t.$y5.ao,n),n):this.c(t.$y5.ao)},aw:function(n){return arguments.length===1?(this.g(t.$y5.ap,n),n):this.c(t.$y5.ap)},az:function(n){return arguments.length===1?(this.g(t.$y5.ar,n),n):this.c(t.$y5.ar)},an:function(n,i,r){var u;switch(n){case"Fill":u=new t.a0(1,"Fill");r!=null&&u.d(this);this.f(t.$y5.ao,u);break;case"Outline":u=new t.a0(1,"Outline");r!=null&&u.d(this);this.f(t.$y5.ap,u)}},$type:new n.ig.Type("XamFunnelSlice",t.$cf.$type)},!0);n.ig.util.defType("XamFunnelView:ps","Object",{b:null,c:null,d:function(n){if(arguments.length===1){var t=this.c;return this.c=n,this.ap(t,this.c),n}return this.c},a:null,ae:function(){this.a.i(new t.pv)},af:function(n){var i=new t.px;i.c(n);this.a.i(i)},ad:function(n){var i=new t.py;i.g(n);i.c(1);i.e(this.e.aa()?1:0);i.h(this.e.ay());this.a.i(i)},ag:function(n){var i=new t.py;i.g(n);i.c(0);i.e(this.e.aa()?1:0);i.h(this.e.ay());this.a.i(i)},a7:null,t:null,s:null,w:null,x:null,v:null,u:null,f:null,h:null,i:null,g:null,e:null,a5:null,a6:null,aa:null,ab:null,o:0,p:0,ah:function(){var t=this.a7,n=this.h;if(n!=null&&t!=null){var i=t.left(),r=t.top(),u=t.width(),f=t.height();n.i(i,r,u,f);n=this.f;n!=null&&n.i(i,r,u,f);n=this.g;n!=null&&n.i(i,r,u,f);n=this.i;n!=null&&n.i(i,r,u,f)}},m:0,n:0,ay:function(n){var t=n.m(),i=n.e();i=="LeftPanel"&&(this.m=t);i=="RightPanel"&&(this.n=t)},au:function(i){for(var s,f,r=i.g(),e=this.h,u=new t.ca,h=new t.cb(0),o=0;o<r.ae().count();o++)s=r.ae().__inner[o],h.add({__x:s.__x+this.m+r.aa().__x,__y:s.__y+r.aa().__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});if(u.ag(h),u.z(i.h),u.__opacity=r.j(),u.__fill=r.al(),u.__stroke=i.h<1?r.al():r.ao(),r.au()!=null&&(e.g(u,r.au()),r.al(u.__fill),r.ao(u.__stroke),r.k(u.z()),r.j(u.__opacity)),e.r(u),r.k(u.z()),r.h()){f=new t.b9;this.a6==null&&(this.a6=new t.b3,this.a6.__fill=this.z("ui-funnel-slice","color",-1));f.ab(this.a6);e.z(this.ac(!0));var c=r.p().toString(),l=e.d(c),a=this.r(!0);f.aa(c);f.m(r.x().__y+r.aa().__y-a/2);f.l(r.x().__x+this.m+r.aa().__x-l/2);r.ar(new t.x(0,f.l(),f.m(),l,a));r.aw(f.__visibility);e.u(f)}},at:function(n){var r=0;this.n>0&&(r=this.a7.width()-this.n);var u=n,f=this.g,i=new t.b9;i.aa(u.j().toString());f.z(this.ac(!1));this.a5==null&&(this.a5=new t.b3,this.a5.__fill=this.t.css("color"));i.ab(this.a5);var e=this.r(!1),o=u.l().__y-e/2,s=f.d(i.aa());i.l(r);i.m(o);u.f().b().as(new t.x(0,r,o,s,e));f.u(i)},y:null,a0:function(n){this.y=n.g()},az:function(n){this.ak(n)},ai:function(){this.ak(null)},ak:function(n){var i=0,r=0,u=null,f=null,t=this.t;t=t?t.data("igFunnelChart"):null;t!=null&&(n!=null&&(u=this.y,i=n.i().__x+6,r=n.i().__y+6,f=n.g().item()),t._fireTooltip(u,f,i,r))},ar:function(n){var t=n,i=t.g();switch(i){case"Container":this.an(t.d())}},as:function(n){window.setTimeout(n,0)},an:function(i){var o,e,r,u,f;if(i==null){this.e!=null&&this.e.af();this.t=this.s=this.w=this.v=this.x=null;this.f=this.h=this.g=this.i=null;this.e=null;return}for(o=i,e=this.t=n(o),e.css("position","relative"),r=0;r<4;r++)u=n("<canvas style='position:absolute' />"),e.append(u),f=new t.bz(new t.dk,u[0].getContext("2d")),r==0&&(this.s=u,this.f=f),r==1&&(this.w=u,this.h=f),r==2&&(this.v=u,this.g=f),r==3&&(this.x=u,this.i=f);this.u=n("<span style='position:absolute;display:none' />");e.append(this.u);this.e=new t.ek(this.x);this.e.onMouseOver=n.ig.Delegate.prototype.combine(this.e.onMouseOver,this.af.runOn(this));this.e.onMouseLeave=n.ig.Delegate.prototype.combine(this.e.onMouseLeave,this.ae.runOn(this));this.e.onMouseDown=n.ig.Delegate.prototype.combine(this.e.onMouseDown,this.ad.runOn(this));this.e.onMouseUp=n.ig.Delegate.prototype.combine(this.e.onMouseUp,this.ag.runOn(this));this.aj()},q:function(){var t=this.z("ui-funnel-slice","border-top-width",-1);return t==null?-1:n.ig.Number.prototype.parseInt(t)},ac:function(n){var i=n?this.ab:this.aa;return i==null&&(n?this.ab=i=this.z("ui-funnel-slice","font",-1):this.aa=i=t.$fj.c(this.t)),i},r:function(n){var i=n?this.p:this.o,r;return i<0&&(r=n?this.ab:this.aa,i=t.$fj.b(r),n?this.p=i:this.o=i),i},a2:null,a4:null,a3:function(n){if(this.a2!=null)return n?this.a2:this.a4;if(this.u==null)return null;this.a2=new Array(12);this.a4=new Array(12);for(var t=0;t<12;t++)this.z("ui-chart-palette-"+(t+1),"background-color",t);return n?this.a2:this.a4},z:function(n,i,r){var e=this.u,u,o,f;return e==null?null:(e.addClass(n),u=i=="font"?t.$fj.c(e):e.css(i),(u==null||u.length==0||u=="null"||u=="transparent")&&(u=null),r>=0&&(o=new t.b3,u!=null&&u.length!=u.replace("(0, 0, 0, 0","").length&&(u=null),o.__fill=u==null?t.$ps.j[r%t.$ps.j.length]:u,this.a2[r]=o,f=null,u!=null&&(f=e.css("border-top-color"),(f==null||f.length==0||f=="null"||f=="transparent")&&(f=u)),o=new t.b3,o.__fill=f==null?t.$ps.k[r%t.$ps.k.length]:f,this.a4[r]=o),e.removeClass(n),u)},av:function(n,i,r){var u=new t.p8;u.g(n);u.e(i);u.d(r);this.a.i(u)},init:function(){var r=this,i;this.o=-1;this.p=-1;this.m=0;this.n=0;this.y=null;n.ig.$op.init.call(this);this.a=new t.pa;this.ax();this.aw();i=this.b=new t.o6;i.b(t.$qa.$type,this.ah.runOn(this));i.b(t.$p3.$type,this.au.runOn(this));i.b(t.$p4.$type,this.at.runOn(this));i.b(t.$p1.$type,this.ay.runOn(this));i.b(t.$p5.$type,this.a0.runOn(this));i.b(t.$p6.$type,this.az.runOn(this));i.b(t.$qb.$type,this.ai.runOn(this));i.b(t.$p8.$type,this.ar.runOn(this));i.b(t.$qc.$type,function(){return r.aj()});this.aj()},am:function(n){this.b.c(n)},ap:function(i,r){var u,f,e;i!=null&&(u=n.ig.util.cast(t.$pa.$type,i.b("RenderingMessages")),u!=null&&u.h(this.am.runOn(this)),this.a.g());r!=null&&(f=n.ig.util.cast(t.$pa.$type,r.b("RenderingMessages")),f!=null&&f.e(this.am.runOn(this)),e=n.ig.util.cast(t.$pa.$type,r.b("InteractionMessages")),this.a.f(e))},a1:function(n,t,i){n.attr("width",t.toString());n.attr("height",i.toString())},aj:function(){var n,i,r;this.t!=null&&(n=this.t.width(),i=this.t.height(),this.a7=new t.x(0,0,0,n,i),this.e!=null&&this.e.az(this.a7),this.a1(this.s,n,i),this.a1(this.w,n,i),this.a1(this.v,n,i),this.a1(this.x,n,i),r=new t.qd,r.e(n),r.d(i),this.a.i(r))},ao:function(){this.aj()},ax:function(){var i=new t.qe;i.g("OuterLabelWidthDecider");i.e(null);i.d(n.ig.util.cast(t.$pt.$type,this));this.a.i(i)},aw:function(){var i=new t.qe;i.g("FunnelLabelSizeDecider");i.e(null);i.d(n.ig.util.cast(t.$pu.$type,this));this.a.i(i)},decideWidth:function(n){var u=n==null?null:n.a(),t,i,r;if(u==null)return 0;for(t=0,this.g.z(this.ac(!1)),i=u.getEnumerator();i.moveNext();)r=i.current(),r!=null&&(t=Math.max(this.g.d(r.toString()),t));return t},decideLabelSize:function(n,i){var r=0;return n.b().h()&&(this.g.z(this.ac(!0)),r=this.g.d(n.b().p().toString())),new t.y(r,this.r(i))},l:function(n,t){var u,i,r,f,e;if(t==null)return!0;if(u=n.a(),i=this.t,i=i?i.data("igFunnelChart"):null,u==null||i==null)return!1;for(r=u.count(),f=new Array(r);r-->0;)e=u.item(r),f[r]=t(e,r,i);return n.b(f),!0},al:function(){},aq:function(){},$type:new n.ig.Type("XamFunnelView",n.ig.$ot,[t.$pt.$type,t.$pu.$type])},!0);n.ig.util.defType("LegendBaseViewManager:nk","Object",{a:null,init:function(i){this.d=!1;n.ig.$op.init.call(this);this.a=i;this.f(new t.f0(n.ig.$op.$type,t.$cp.$type,0))},l:function(t){this.g(n(t));this.i(n("<table><\/table>"));this.i().addClass(this.a.i());this.g().append(this.i())},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},d:!1,h:function(i){var e=n.ig.util.cast(t.$cf.$type,i),f=n("<tr><\/tr>"),s,o,r,u;return f.addClass(this.a.j()),e!=null&&(s=n.ig.util.cast(t.$fl.$type,e.content()),s!=null&&e.ae()!=null&&(o=new t.ce,o.context=f,o.passID="LegendItem",r=new t.cj,r.passInfo=o,r.width=NaN,r.height=NaN,r.data=s,r.context=f,u=new t.cd,u.passInfo=o,e.ae().measure()!=null&&e.ae().measure()(r),u.context=f,u.availableWidth=r.width,u.availableHeight=r.height,u.data=s,u.xPosition=0,u.yPosition=0,e.ae().render()(u),f.find(".ui-legend-item-badge").removeClass("ui-legend-item-badge").addClass(this.a.h()),f.find(".ui-legend-item-text").removeClass("ui-legend-item-text").addClass(this.a.k()))),f},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},k:function(n,t){var i=this.h(n,this.i()),r;i.attr("id",t.toString());i.mouseup(this.a.s.runOn(this.a));i.mousedown(this.a.p.runOn(this.a));i.mouseleave(this.a.q.runOn(this.a));i.mousemove(this.a.r.runOn(this.a));this.f().add(n,i);this.i().children().size()==0||t>=this.i().children().size()?this.i().append(i):(r=this.i().children().eq(t),r.after(i))},m:function(){},n:function(n){var i=this,t;(function(){var r=i.f().tryGetValue(n,t);return t=r.value,r.ret})()&&(t.remove(),i.f().remove(n))},e:function(i){for(var f=this.f().keys().getEnumerator(),e,u,r;f.moveNext();)if(e=f.current(),u=n.ig.util.cast(t.$cf.$type,e),u!=null&&u.content()!=null&&(r=n.ig.util.cast(t.$fl.$type,u.content()),r!=null&&r.itemLabel()==i.itemLabel()&&r.series()==i.series()&&r.itemBrush()==i.itemBrush()))return!0;return!1},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},b:function(){var r=this.g().width(),u=this.g().height(),i=n('<div style="position : relative;" />');return this.j(n('<canvas style="position : absolute; top : 0; left : 0" />')),this.g().append(i),i.append(this.j()),this.c(new t.bz(new t.dk,this.j()[0].getContext("2d"))),this.j().attr("width",r.toString()),this.j().attr("height",u.toString()),this.c()},p:function(){return new t.y(this.g().width(),Math.max(10,this.g().height()-15))},o:function(n,t,i,r){var u=n.e(),f,e,o,s;for(u.beginPath(),u.moveTo(t.ag().__inner[0].__x,t.ag().__inner[0].__y),f=1;f<t.ag().count();f++)u.lineTo(t.ag().__inner[f].__x,t.ag().__inner[f].__y);for(u.lineTo(t.ag().__inner[0].__x,t.ag().__inner[0].__y),e=u.createLinearGradient(r.left(),r.top(),r.left(),r.top()+r.height()),o=i.a().getEnumerator();o.moveNext();)s=o.current(),e.addColorStop(s.a(),s.b().__fill);u.fillStyle=e;u.fill()},$type:new n.ig.Type("LegendBaseViewManager",n.ig.$ot)},!0);n.ig.util.defType("LegendBase:ni","ContentControl",{ak:function(){return new t.nj(this)},a2:function(n){this.al(n)},_al:null,al:function(n){return arguments.length===1?(this._al=n,n):this._al},init:function(){t.$cf.init.call(this);var n=this.ak();this.a2(n);n.u();this.children(new t.e4(t.$am.$type,0))},av:function(){},aw:function(){},_children:null,children:function(n){return arguments.length===1?(this._children=n,n):this._children},_aq:null,aq:function(n){return arguments.length===1?(this._aq=n,n):this._aq},_ao:null,ao:function(n){return arguments.length===1?(this._ao=n,n):this._ao},ap:function(){return this.aq()!=null?this.aq():this.ao()},propertyChanged:null,propertyUpdated:null,a4:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},legendItemMouseLeftButtonDown:null,az:function(n){this.legendItemMouseLeftButtonDown!=null&&this.legendItemMouseLeftButtonDown(this,n)},legendItemMouseLeftButtonUp:null,a0:function(n){this.legendItemMouseLeftButtonUp!=null&&this.legendItemMouseLeftButtonUp(this,n)},legendItemMouseEnter:null,ax:function(n){this.legendItemMouseEnter!=null&&this.legendItemMouseEnter(this,n)},legendItemMouseLeave:null,ay:function(n){this.legendItemMouseLeave!=null&&this.legendItemMouseLeave(this,n)},legendItemMouseMove:null,a1:function(n){this.legendItemMouseMove!=null&&this.legendItemMouseMove(this,n)},provideContainer:function(n){this.al().t(n)},legendItemsListStyle:function(n){return arguments.length===1?(this.al().i(n),n):this.al().i()},legendItemStyle:function(n){return arguments.length===1?(this.al().j(n),n):this.al().j()},legendItemBadgeStyle:function(n){return arguments.length===1?(this.al().h(n),n):this.al().h()},legendItemTextStyle:function(n){return arguments.length===1?(this.al().k(n),n):this.al().k()},$type:new n.ig.Type("LegendBase",t.$cf.$type,[t.$a8.$type])},!0);n.ig.util.defType("ScaleLegend:oy","LegendBase",{ak:function(){return new t.oz(this)},a2:function(n){t.$ni.a2.call(this,n);this.a8(n)},_a8:null,a8:function(n){return arguments.length===1?(this._a8=n,n):this._a8},legendScaleElement:function(){return this.a8().at()},minText:function(){return this.a8().ap()},maxText:function(){return this.a8().ao()},init:function(){t.$ni.init.call(this);this.y(t.$oy.$type)},br:function(n){return arguments.length===1?(this.g(t.$oy.bl,n),n):this.c(t.$oy.bl)},bo:function(n){return arguments.length===1?(this.g(t.$oy.bm,n),n):this.c(t.$oy.bm)},_bd:0,bd:function(n){return arguments.length===1?(this._bd=n,n):this._bd},_bc:0,bc:function(n){return arguments.length===1?(this._bc=n,n):this._bc},_bb:null,bb:function(n){return arguments.length===1?(this._bb=n,n):this._bb},_ba:null,ba:function(n){return arguments.length===1?(this._ba=n,n):this._ba},_a9:null,a9:function(n){return arguments.length===1?(this._a9=n,n):this._a9},_a5:null,a5:function(n){return arguments.length===1?(this._a5=n,n):this._a5},a6:null,a7:function(n){if(arguments.length===1){var i=this;return i.a6=n,i.f(t.$oy.bl,function(){var n=new t.a0(1,"Visibility");return n.d(i.a6),n}()),i.f(t.$oy.bm,function(){var n=new t.a0(1,"MarkerBrush");return n.d(i.a6),n}()),n}return this.a6},bi:function(){this.a8().al()},bn:function(i){if(this.a7()==null)return null;var r=n.ig.util.cast(t.$o0.$type,this.a7().fillScale()),u=n.ig.util.cast(t.$o2.$type,this.a7().fillScale()),f=this.a7().fillScale();return r!=null&&this.a7().bb()!=null?r.getBrush1(i,this.a7().bb().count()):u!=null?u.getBrushByIndex(i,this.a9()):f!=null?f.getBrush(i):null},bp:function(n){return n==null?this.a8().as():t.$fg.l(n)},bg:function(i){var r=n.ig.util.cast(t.$nz.$type,i);r!=null&&i.__visibility==0&&(this.ba(r.mr()),this.a5(r.fillScale()),this.a9(r.mq()),this.a7(r),this.bb(new t.e4(t.$b3.$type,0)),this.bh())},bh:function(){var f,e,o,i,r,u;if(this.legendScaleElement()!=null&&this.ba()!=null&&this.ba().count()!=0&&this.a7()!=null&&this.a7().actualLegend()==this){if(f=!1,e=n.ig.util.cast(t.$b2.$type,this.legendScaleElement()),e!=null){for(o=this.a8().af(),i=0;i<this.ba().count();i++){if(this.a5()==null||!this.a5().isReady()){this.a7()!=null&&(f=!0);break}r=NaN;this.a9()!=null&&(r=(this.a9().item(i)-this.a9().minimum())/(this.a9().maximum()-this.a9().minimum()));u=(this.ba().item(i)-this.ba().minimum())/(this.ba().maximum()-this.ba().minimum());isNaN(r)&&(r=0);isNaN(u)&&(u=r);var h=this.a7()!=null?this.bp(this.a7().actualMarkerBrush()):this.a8().as(),s=this.bn(i),c=s!=null?this.bp(s):h;this.a8().ah(o,c,u)}this.a8().am(e,f,o)}this.minText()!=null&&this.minText().aa((Math.round(this.ba().minimum()*1e3)/1e3).toString());this.maxText()!=null&&this.maxText().aa((Math.round(this.ba().maximum()*1e3)/1e3).toString())}},$type:new n.ig.Type("ScaleLegend",t.$ni.$type)},!0);n.ig.util.defType("LegendBaseView:nj","Object",{init:function(i){this.e=!1;n.ig.$op.init.call(this);this.c(i);this.d(new t.nk(this))},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},u:function(){},b:function(n){var o=this,i,r,u,f,e;return function(){var t=o.o(n,i,r,u);return i=t.chart,r=t.series,u=t.item,t.ret}(),f=new t.m8,e=new t.nn(i,r,u,f,n),e},a:function(n){var o=this,i,r,u,f,e;return function(){var t=o.o(n,i,r,u);return i=t.chart,r=t.series,u=t.item,t.ret}(),f=new t.em,e=new t.np(i,r,u,f,n),e},o:function(i,r,u,f){var e,o;return r=n.ig.util.cast(t.$be.$type,this.c().ap()),u=null,f=null,i!=null&&(e=n.ig.util.cast(t.$cf.$type,i),e!=null&&e.content()!=null&&n.ig.util.cast(t.$fl.$type,e.content())!==null&&(o=n.ig.util.cast(t.$fl.$type,e.content()),u=n.ig.util.cast(t.$aj.$type,o.series()),u!=null&&(r=u.seriesViewer()),f=o.item())),{chart:r,series:u,item:f}},n:function(){},f:function(){return!0},m:function(){},v:function(){},t:function(n){this.d().l(n)},w:function(n){this.d().n(n)},l:function(n){var t=this.c().children().indexOf1(n);this.d().k(n,t)},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},e:!1,g:function(t){var i=n(t.currentTarget).attr("id");return i==null||i==""?null:this.c().children().__inner[n.ig.Number.prototype.parseInt(i)]},r:function(n){this.e||this.c().ax(this.a(this.g(n)));this.e=!0},q:function(n){this.e&&this.c().ay(this.a(this.g(n)));this.e=!1},p:function(n){this.c().az(this.b(this.g(n)))},s:function(n){this.c().a0(this.b(this.g(n)))},$type:new n.ig.Type("LegendBaseView",n.ig.$ot)},!0);n.ig.util.defType("ScaleLegendView:oz","LegendBaseView",{init:function(n){this.aa=!1;t.$nj.init.call(this,n);this.y(n);this.ap(new t.b9);this.ao(new t.b9);this.at(new t.ca)},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_at:null,at:function(n){return arguments.length===1?(this._at=n,n):this._at},_ap:null,ap:function(n){return arguments.length===1?(this._ap=n,n):this._ap},_ao:null,ao:function(n){return arguments.length===1?(this._ao=n,n):this._ao},al:function(){},n:function(){},as:function(){return t.$b4.n(0,0,0,0)},af:function(){return new t.nl},ah:function(n,i,r){var f=this,u=n;u.a().add(function(){var n=new t.nm;return n.b(function(){var n=new t.b3;return n.color(i),n}()),n.a(r),n}())},am:function(n,t,i){t?(this.aq(this.y().a7().actualMarkerBrush()),this.x(null)):(this.aq(null),this.x(i));this.ai()},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_au:null,au:function(n){return arguments.length===1?(this._au=n,n):this._au},t:function(n){t.$nj.t.call(this,n);this.z(this.d().b(n));this.au(this.d().p());this.ai()},aa:!1,ai:function(){this.aa||(this.aa=!0,window.setTimeout(this.an.runOn(this),0))},an:function(){this.aa&&(this.aa=!1,this.ak())},ak:function(){this.z()!=null&&this.aj()},ad:function(i){var r=n.ig.util.cast(t.$b9.$type,i);return r!=null&&r.aa()!=null?this.z().d(r.aa())+0:0},ac:function(){return this.ab()+0},_ab:0,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},_ar:null,ar:function(n){return arguments.length===1?(this._ar=n,n):this._ar},aj:function(){if(this.y().a7()!=null&&this.y().a7().seriesViewer()!=null&&(this.x()!=null||this.aq()!=null)&&this.z().c()){this.z().z(this.y().a7().seriesViewer().es());this.ab(this.y().a7().seriesViewer().a6().at());this.ar(this.y().a7().seriesViewer().ky());var c=this.ad(this.ap()),l=this.ad(this.ao()),f=Math.max(c,l)+4;f>=this.au().b()&&(f=0);var r=this.au().b()-f,u=2,e=2;r=r-4;var o=this.au().a()-4,s=u+r+4,h=e,a=o,v={__x:u+3/5*r,__y:e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},y={__x:u+1*r,__y:e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},p={__x:u+1*r,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},w={__x:u,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i=this.at();i.ag().clear();i.ag().add(v);i.ag().add(y);i.ag().add(p);i.ag().add(w);this.ap().l(s);this.ap().m(h);this.ap().ab(this.ar());this.ao().l(s);this.ao().m(h+a-this.ac(this.ap()));this.ao().ab(this.ar());this.z().i(0,0,this.au().b(),this.au().a());this.x()==null&&this.aq()!=null?(i.__fill=this.aq(),this.z().r(i)):this.d().o(this.z(),i,this.x(),new t.x(0,e,u,r,o));f>0&&(this.z().u(this.ap()),this.z().u(this.ao()))}},_aq:null,aq:function(n){return arguments.length===1?(this._aq=n,n):this._aq},$type:new n.ig.Type("ScaleLegendView",t.$nj.$type)},!0);n.ig.util.defType("GradientData:nl","Object",{init:function(){n.ig.$op.init.call(this);this.a(new t.bh(t.$nm.$type,0))},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("GradientData",n.ig.$ot)},!0);n.ig.util.defType("GradientStopData:nm","Object",{init:function(){n.ig.$op.init.call(this)},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("GradientStopData",n.ig.$ot)},!0);n.ig.util.defType("ClearMessage:qa","RenderingMessage",{init:function(){t.$p2.init.call(this)},$type:new n.ig.Type("ClearMessage",t.$p2.$type)},!0);n.ig.util.defType("ClearTooltipMessage:qb","RenderingMessage",{init:function(){t.$p2.init.call(this)},$type:new n.ig.Type("ClearTooltipMessage",t.$p2.$type)},!0);n.ig.util.defType("DataUpdatedMessage:qi","ConfigurationMessage",{init:function(){t.$p9.init.call(this)},b:null,c:function(n){return arguments.length===1?(this.b=n,n):this.b},e:0,g:function(n){return arguments.length===1?(this.e=n,n):this.e},d:0,f:function(n){return arguments.length===1?(this.d=n,n):this.d},h:null,i:function(n){return arguments.length===1?(this.h=n,n):this.h},toString:function(){return"DataUpdatedMessage["+this.c().toString()+","+this.g().toString()+", "+this.f().toString()+", "+this.i().toString()+"]"},$type:new n.ig.Type("DataUpdatedMessage",t.$p9.$type)},!0);n.ig.util.defType("FrameRenderCompleteMessage:qo","RenderingMessage",{init:function(){t.$p2.init.call(this)},$type:new n.ig.Type("FrameRenderCompleteMessage",t.$p2.$type)},!0);n.ig.util.defType("MessageChannel:pa","Object",{init:function(){n.ig.$op.init.call(this);this.c=new t.pc},c:null,i:function(n){this.messageSent!=null?this.messageSent(n):this.c.push(n)},e:function(t){for(this.messageSent=n.ig.Delegate.prototype.combine(this.messageSent,t);this.c.length>0;){var i=this.c.shift();this.messageSent(i)}},messageSent:null,h:function(t){this.messageSent=n.ig.Delegate.prototype.remove(this.messageSent,t)},a:null,f:function(n){this.a=n;this.e(this.j.runOn(this))},g:function(){this.a!=null&&(this.h(this.j.runOn(this)),this.a=null)},j:function(n){this.a!=null&&this.a.i(n)},toString:function(){return"MessageQueue"},$type:new n.ig.Type("MessageChannel",n.ig.$ot)},!0);n.ig.util.defType("MessageHandler:o6","Object",{init:function(){n.ig.$op.init.call(this);this.a=new n.ig.Dictionary(0)},a:null,b:function(n,t){this.a.item(n.typeName(),t)},c:function(n){var t=this.a.item(n.getType().typeName());t!=null&&t(n)},$type:new n.ig.Type("MessageHandler",n.ig.$ot)},!0);n.ig.util.defType("MouseButtonMessage:py","InteractionMessage",{init:function(){t.$pw.init.call(this)},b:null,c:function(n){return arguments.length===1?(this.b=n,n):this.b},d:null,e:function(n){return arguments.length===1?(this.d=n,n):this.d},f:null,g:function(n){return arguments.length===1?(this.f=n,n):this.f},toString:function(){return"MouseButtonMessage["+this.c().toString()+", "+this.e().toString()+", "+this.g().toString()+"]"},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},$type:new n.ig.Type("MouseButtonMessage",t.$pw.$type)},!0);n.ig.util.defType("MouseLeaveMessage:pv","InteractionMessage",{init:function(){t.$pw.init.call(this)},b:null,c:function(n){return arguments.length===1?(this.b=n,n):this.b},toString:function(){return"MouseLeaveMessage["+this.c().toString()+"]"},$type:new n.ig.Type("MouseLeaveMessage",t.$pw.$type)},!0);n.ig.util.defType("MouseMoveMessage:px","InteractionMessage",{init:function(){t.$pw.init.call(this)},b:null,c:function(n){return arguments.length===1?(this.b=n,n):this.b},toString:function(){return"MouseMoveMessage["+this.c().toString()+"]"},$type:new n.ig.Type("MouseMoveMessage",t.$pw.$type)},!0);n.ig.util.defType("PropertyChangedMessage:p8","ConfigurationMessage",{init:function(){t.$p9.init.call(this)},f:null,g:function(n){return arguments.length===1?(this.f=n,n):this.f},c:null,e:function(n){return arguments.length===1?(this.c=n,n):this.c},b:null,d:function(n){return arguments.length===1?(this.b=n,n):this.b},toString:function(){var n="null",t="null";return this.e()!=null&&(n=this.e().toString()),this.d()!=null&&(t=this.d().toString()),"PropertyChangedMessage["+this.g().toString()+", "+n+", "+t+"]"},$type:new n.ig.Type("PropertyChangedMessage",t.$p9.$type)},!0);n.ig.util.defType("ServiceProvider:o9","Object",{init:function(){n.ig.$op.init.call(this);this.a=new n.ig.Dictionary(0)},a:null,c:function(n,t){this.a.item(n,t)},b:function(n){return this.a.item(n)},$type:new n.ig.Type("ServiceProvider",n.ig.$ot)},!0);n.ig.util.defType("SetAreaSizeMessage:p1","RenderingMessage",{init:function(){t.$p2.init.call(this)},f:!1,h:function(n){return arguments.length===1?(this.f=n,n):this.f},j:0,l:function(n){return arguments.length===1?(this.j=n,n):this.j},g:!1,i:function(n){return arguments.length===1?(this.g=n,n):this.g},k:0,m:function(n){return arguments.length===1?(this.k=n,n):this.k},toString:function(){return"SetAreaSizeMessage["+this.h().toString()+", "+this.l().toString()+", "+this.i().toString()+", "+this.m().toString()+"]"},$type:new n.ig.Type("SetAreaSizeMessage",t.$p2.$type)},!0);n.ig.util.defType("TemplateChangedMessage:y6","RenderingMessage",{init:function(){t.$p2.init.call(this)},f:null,g:function(n){return arguments.length===1?(this.f=n,n):this.f},h:null,i:function(n){return arguments.length===1?(this.h=n,n):this.h},toString:function(){return"TemplateChangedMessage["+this.g().toString()+", "+this.i().toString()+"]"},$type:new n.ig.Type("TemplateChangedMessage",t.$p2.$type)},!0);n.ig.util.defType("TooltipUpdateMessage:p6","RenderingMessage",{init:function(){t.$p2.init.call(this)},h:null,i:function(n){return arguments.length===1?(this.h=n,n):this.h},f:null,g:function(n){return arguments.length===1?(this.f=n,n):this.f},toString:function(){return"TooltipUpdateMessage["+this.i().toString()+", "+this.g().toString()+"]"},$type:new n.ig.Type("TooltipUpdateMessage",t.$p2.$type)},!0);n.ig.util.defType("TooltipValueChangedMessage:p5","RenderingMessage",{init:function(){t.$p2.init.call(this)},f:null,g:function(n){return arguments.length===1?(this.f=n,n):this.f},toString:function(){return"TooltipValueChangedMessage["+this.g().toString()+"]"},$type:new n.ig.Type("TooltipValueChangedMessage",t.$p2.$type)},!0);n.ig.util.defType("ViewportChangedMessage:qd","InteractionMessage",{init:function(){t.$pw.init.call(this)},c:0,e:function(n){return arguments.length===1?(this.c=n,n):this.c},b:0,d:function(n){return arguments.length===1?(this.b=n,n):this.b},toString:function(){return"ViewportChangedMessage["+this.e().toString()+", "+this.d().toString()+"]"},$type:new n.ig.Type("ViewportChangedMessage",t.$pw.$type)},!0);n.ig.util.defType("ContainerSizeChangedMessage:qc","InteractionMessage",{init:function(){t.$pw.init.call(this)},$type:new n.ig.Type("ContainerSizeChangedMessage",t.$pw.$type)},!0);n.ig.util.defType("ViewPropertyChangedMessage:qe","InteractionMessage",{init:function(){t.$pw.init.call(this)},f:null,g:function(n){return arguments.length===1?(this.f=n,n):this.f},c:null,e:function(n){return arguments.length===1?(this.c=n,n):this.c},b:null,d:function(n){return arguments.length===1?(this.b=n,n):this.b},toString:function(){return"ViewPropertyChangedMessage["+this.g().toString()+", "+this.e().toString()+", "+this.d().toString()+"]"},$type:new n.ig.Type("ViewPropertyChangedMessage",t.$pw.$type)},!0);n.ig.util.defType("PieChartViewManager:m0","Object",{_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},j:0,i:0,_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},a:null,init:function(t){this.j=0;this.i=0;this.g=!1;this.__toolTipObject=null;this.r=null;this.h=!0;n.ig.$op.init.call(this);this.a=t},g:!1,x:function(){var n=this.m().width(),t=this.m().height();this.z(n,t)},z:function(n,i){this.b().az(new t.x(0,0,0,n,i));this.j!=n&&(this.g=!0);this.j=n;this.i!=i&&(this.g=!0);this.i=i;this.a.au()},ai:function(){return this.aj(new t.x(0,0,0,this.j,this.i)),this.l().attr("width",this.j.toString()),this.l().attr("height",this.i.toString()),this.o().attr("width",this.j.toString()),this.o().attr("height",this.i.toString()),this.n().attr("width",this.j.toString()),this.n().attr("height",this.i.toString()),this.p().attr("width",this.j.toString()),this.p().attr("height",this.i.toString()),this.aj()},s:function(){return this.a.x()},ak:function(){var n=t.$ek.c3(this.m());return new t.y(n.left(),n.top())},af:function(n,i){var r=new Array(2),u,f;return i.addClass(n),u=new t.b3,u.__fill=i.css("background-color"),f=new t.b3,f.__fill=i.css("border-top-color"),i.removeClass(n),r[0]=u,r[1]=f,r},ab:function(n){window.setTimeout(n,0)},v:function(n,i,r,u){var f=this;return function(){var r=t.$ku.a("chart",f.m(),n,i);return n=r.brushes,i=r.outlines,r.ret}(),r=new t.b3,r.__fill=f.m().css("color"),u=t.$fj.c(f.m()),{brushes:n,outlines:i,fontBrush:r,font:u}},ac:function(n){var i=this;n.__stroke=function(){var n=new t.b3;return n.fill("#000000"),n}();n.__fill=function(){var n=new t.b3;return n.fill("#222222"),n}()},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},y:function(i){if(i==null){this.b()!=null&&this.b().af();this.m(null);this.l(null);this.o(null);this.n(null);this.p(null);this.c(null);this.e(null);this.d(null);this.f(null);this.b(null);return}var r=i;this.m(n(r));this.a.av();this.a.a4();this.m().css("position","relative");this.m().addClass("ui-corner-all ui-widget-content");this.l(n('<canvas style="position : absolute; top : 0; left : 0" />'));this.o(n('<canvas style="position : absolute; top : 0; left : 0" />'));this.n(n('<canvas style="position : absolute; top : 0; left : 0" />'));this.p(n('<canvas style="position : absolute; top : 0; left : 0" />'));this.m().append(this.l());this.m().append(this.o());this.m().append(this.n());this.m().append(this.p());this.c(new t.bz(new t.dk,this.l()[0].getContext("2d")));this.e(new t.bz(new t.dk,this.o()[0].getContext("2d")));this.d(new t.bz(new t.dk,this.n()[0].getContext("2d")));this.f(new t.bz(new t.dk,this.p()[0].getContext("2d")));this.b(new t.ek(this.p()));this.b().onMouseOver=n.ig.Delegate.prototype.combine(this.b().onMouseOver,this.a.aa.runOn(this.a));this.b().onMouseLeave=n.ig.Delegate.prototype.combine(this.b().onMouseLeave,this.a.z.runOn(this.a));this.b().onMouseDown=n.ig.Delegate.prototype.combine(this.b().onMouseDown,this.a.y.runOn(this.a));this.b().onMouseUp=n.ig.Delegate.prototype.combine(this.b().onMouseUp,this.a.ab.runOn(this.a));this.b().w(this.a.a().isSurfaceInteractionDisabled());this.z(this.m().width(),this.m().height())},t:function(n){this.m().append(n)},aa:function(n){this.b()!=null&&this.b().w(n)},q:function(){return this.m()},u:function(n){n.width(this.j);n.height(this.i)},__toolTipObject:null,r:null,h:!1,ae:function(t){this.r=null;this.__toolTipObject=null;n.ig.util.cast(String,t)!==null||typeof t=="string"?this.r=t:(this.__toolTipObject=t,this.__toolTipObject!=null&&(this.__toolTipObject.css("position","fixed"),this.__toolTipObject.css("top","0"),this.__toolTipObject.css("left","0"),this.__toolTipObject.css("z-index","10000")))},ad:function(n,t){this.__toolTipObject!=null&&(this.h&&(this.t(this.__toolTipObject),this.h=!1),t.hideOthers=!0,this.__toolTipObject.updateToolTip&&this.__toolTipObject.updateToolTip(t),this.__toolTipObject.offset&&this.__toolTipObject.offset({left:n.__x,top:n.__y}))},w:function(n){if(this.__toolTipObject!=null){var t=n;this.__toolTipObject.hideToolTip&&this.__toolTipObject.hideToolTip(t)}},ag:function(n){var r=null,i=null;return n!=null&&(n.fill&&(i=n.fill),i!=null&&(r=t.$b3.create(i))),r},ah:function(n){var r=null,i=null;return n!=null&&(n.stroke&&(i=n.stroke),i!=null&&(r=t.$b3.create(i))),r},$type:new n.ig.Type("PieChartViewManager",n.ig.$ot)},!0);n.ig.util.defType("RadialBase:tv","MarkerSeries",{hc:function(n){t.$fw.hc.call(this,n);this.kv(n)},_kv:null,kv:function(n){return arguments.length===1?(this._kv=n,n):this._kv},init:function(){var n=this;this.kx=new t.t0(3);this.ky=new t.t0(3);this.kw=new t.t0(3);t.$fw.init.call(this);this.kz(new t.ty(t.$t0.$type,t.$tw.$type,1,this.k8.runOn(this),this.k9.runOn(this),this.bl.runOn(this),this.hw.runOn(this),this.k7.runOn(this),function(){return n.kv().co().e(n.resolution())}))},k7:function(){this.a5().needsFlush()&&this.a5().flush()},categoryAxis:function(){return this.angleAxis()},_kz:null,kz:function(n){return arguments.length===1?(this._kz=n,n):this._kz},isRadial:function(){return!0},angleAxis:function(n){return arguments.length===1?(this.g(t.$tv.angleAxisProperty,n),n):this.c(t.$tv.angleAxisProperty)},valueAxis:function(n){return arguments.length===1?(this.g(t.$tv.valueAxisProperty,n),n):this.c(t.$tv.valueAxisProperty)},clipSeriesToBounds:function(n){return arguments.length===1?(this.g(t.$tv.clipSeriesToBoundsProperty,n),n):this.c(t.$tv.clipSeriesToBoundsProperty)},h3:function(){this.kv().co().e(this.resolution());this.renderSeries(!1)},h2:function(){this.kv().co().e(this.resolution());this.renderSeries(!1)},preferredCategoryMode:function(){},hh:function(i,r,u,f){t.$fw.hh.call(this,i,r,u,f);switch(r){case"SeriesViewer":u!=null&&f==null&&(this.angleAxis()!=null&&this.angleAxis().deregisterSeries(this),this.valueAxis()!=null&&this.valueAxis().deregisterSeries(this));u==null&&f!=null&&(this.angleAxis()!=null&&this.angleAxis().registerSeries(this),this.valueAxis()!=null&&this.valueAxis().registerSeries(this));this.kv().co().e(this.resolution());this.renderSeries(!1);break;case"AngleAxis":this.angleAxis()!=null&&this.valueAxis()!=null&&(this.ku=new t.t1(this.valueAxis(),this.angleAxis()));u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);this.kv().co().e(this.resolution());this.renderSeries(!1);break;case"ValueAxis":this.angleAxis()!=null&&this.valueAxis()!=null&&(this.ku=new t.t1(this.valueAxis(),this.angleAxis()));u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);this.kv().co().e(this.resolution());this.valueAxis()!=null&&this.valueAxis().updateRange()||this.renderSeries(!1);break;case"SyncLink":this.syncLink()!=null&&this.seriesViewer()!=null&&(this.kv().co().e(this.resolution()),this.renderSeries(!1));break;case"TransitionProgress":if(this.ky.d(this.du(),this.kx,this.kw),this.bn(this.view()))return;this.du()==1?this.k9(this.kw,this.kv()):this.k9(this.ky,this.kv());break;case"ClipSeriesToBounds":this.renderSeries(!1);this.gy();break;case"VisibilityProxy":u!=0&&f==0&&this.kv().co().e(this.resolution())}},getItem:function(n){var t=this.getItemIndex(n);return t>=0&&this.bb()!=null&&t<this.bb().count()?this.bb().item(t):null},getAngleFromWorld:function(n){var i=this.view().bw(),r=this.view().bv(),t;return this.angleAxis()!=null&&!i.isEmpty()&&!r.isEmpty()&&this.ku!=null?(t=this.ku.c(n),t<0&&(t+=3.14159265358979*2),t>3.14159265358979*2&&(t-=3.14159265358979*2),t):NaN},getExactItemIndex:function(n){var u=this.view().bw(),f=this.view().bv(),r=-1,t,i;return this.angleAxis()==null||u.isEmpty()||f.isEmpty()||this.ku==null||(t=this.ku.c(n),t<0&&(t+=3.14159265358979*2),t>3.14159265358979*2&&(t-=3.14159265358979*2),i=this.angleAxis().getUnscaledAngle(t),this.angleAxis().categoryMode()!=0&&(i-=.5),r=i),r},getItemIndex:function(n){var t=Math.round(this.getExactItemIndex(n));return this.bb()!=null&&t==this.bb().count()&&(t=0),t},scrollIntoView:function(){return!1},kx:null,ky:null,kw:null,k8:function(){},k9:function(){},ku:null,gs:function(){t.$fw.gs.call(this);this.angleAxis()!=null&&this.angleAxis().du(!1);this.valueAxis()!=null&&this.valueAxis().du(!1)},ct:function(n,i,r){var u=!0,f=r;return(!t.$fw.ct.call(this,n,i,r)||!r.m()||i.isEmpty()||n.isEmpty()||this.angleAxis()==null||this.angleAxis().itemsSource()==null||this.valueAxis()==null||this.ku==null||this.bb()==null||this.angleAxis().seriesViewer()==null||this.valueAxis().seriesViewer()==null||this.valueAxis().actualMinimumValue()==this.valueAxis().actualMaximumValue())&&(f.co().b(0),u=!1),u},hq:function(n){var i=this,r,u,f;if(function(){var n=i.getViewInfo(u,r);return u=n.viewportRect,r=n.windowRect,n.ret}(),!i.ct(u,r,i.view())){i.gh(!0,i.view());return}f=new t.tz(i,u,r,n,i.cj()),function(){var n=i.kz().g(f,i.kx,i.kw,i.ky,i.kv());return i.kx=n.previousFrame,i.kw=n.currentFrame,i.ky=n.transitionFrame,n.ret}()},k3:function(){for(var u=0,f=this.seriesViewer().series().getEnumerator(),r,i;f.moveNext();){if(r=f.current(),r==this)return u;i=n.ig.util.cast(t.$tv.$type,r);i!=null&&i.angleAxis()==this.angleAxis()&&i.preferredCategoryMode(i.angleAxis())==2&&u++}return t.$os.b(!1,"RadialBase.GetMode2Index failed to find series"),-1},$type:new n.ig.Type("RadialBase",t.$fw.$type,[t.$g9.$type])},!0);n.ig.util.defType("AnchoredRadialSeries:y7","RadialBase",{au:function(){return new t.y8(this)},hc:function(n){t.$tv.hc.call(this,n);this.le(n)},_le:null,le:function(n){return arguments.length===1?(this._le=n,n):this._le},init:function(){this.lw={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};t.$tv.init.call(this);this.lg(new t.t0(3));this.lf(new t.ls)},_lf:null,lf:function(n){return arguments.length===1?(this._lf=n,n):this._lf},getPreviousOrExactIndex:function(n,t){return this.d5(n,t,this.angleAxis(),null,this.lj())},getNextOrExactIndex:function(n,t){return this.d3(n,t,this.angleAxis(),null,this.lj())},c8:function(n,t,i,r,u){return this.lj()==null?Number.POSITIVE_INFINITY:this.c9(n,t,this.angleAxis(),r,u,this.lj().count(),null)},getSeriesValue:function(n,i,r){var f=this.lp(this.angleAxis(),this.view().bw(),this.view().bv()),u=new t.iu(this.view().bw(),this.view().bv(),this.angleAxis().isInverted());return u.b=this.seriesViewer().viewportRect(),this.dk(this.lj(),n,this.angleAxis(),u,f,null,i,r)},getSeriesValuePosition:function(i,r,u){var h,f,o,a,v,y,p;if(this.valueAxis()==null||this.angleAxis()==null||this.view()==null||this.view().bw().isEmpty()||this.view().bv().isEmpty())return{__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(h=new t.iu(this.view().bw(),this.view().bv(),this.valueAxis().isInverted()),h.b=this.seriesViewer().effectiveViewport(),f=this.getSeriesValue(i,r,u),f=this.valueAxis().getScaledValue(f,h),o=this.ku.c(i),!r&&this.angleAxis()!=null){var c=this.getPreviousOrExactIndex(i,u),l=this.getNextOrExactIndex(i,u),s=this.lp(this.angleAxis(),this.view().bw(),this.view().bv()),e=new t.iu(this.view().bw(),this.view().bv(),this.angleAxis().isInverted());e.b=this.seriesViewer().viewportRect();a=this.c8(i,c,this.angleAxis(),e,s);v=this.c8(i,l,this.angleAxis(),e,s);o=v<=a?this.angleAxis().getScaledValue(l,e)+s:this.angleAxis().getScaledValue(c,e)+s}return y=this.ku.d(o,f,this.view().bw(),this.view().bv()),p=this.ku.e(o,f,this.view().bw(),this.view().bv()),{__x:y,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},valueMemberPath:function(n){return arguments.length===1?(this.g(t.$y7.valueMemberPathProperty,n),n):this.c(t.$y7.valueMemberPathProperty)},lj:function(n){if(arguments.length===1){if(this.li!=n){var t=this.li;this.li=n;this.raisePropertyChanged("ValueColumn",t,this.li)}return n}return this.li},li:null,trendLineType:function(n){return arguments.length===1?(this.g(t.$y7.trendLineTypeProperty,n),n):this.c(t.$y7.trendLineTypeProperty)},trendLineBrush:function(n){return arguments.length===1?(this.g(t.$y7.trendLineBrushProperty,n),n):this.c(t.$y7.trendLineBrushProperty)},actualTrendLineBrush:function(n){return arguments.length===1?(this.g(t.$y7.actualTrendLineBrushProperty,n),n):this.c(t.$y7.actualTrendLineBrushProperty)},trendLineThickness:function(n){return arguments.length===1?(this.g(t.$y7.trendLineThicknessProperty,n),n):this.c(t.$y7.trendLineThicknessProperty)},trendLineDashCap:function(n){return arguments.length===1?(this.g(t.$y7.trendLineDashCapProperty,n),n):this.c(t.$y7.trendLineDashCapProperty)},trendLineDashArray:function(n){return arguments.length===1?(this.g(t.$y7.trendLineDashArrayProperty,n),n):this.c(t.$y7.trendLineDashArrayProperty)},trendLinePeriod:function(n){return arguments.length===1?(this.g(t.$y7.trendLinePeriodProperty,n),n):this.c(t.$y7.trendLinePeriodProperty)},trendLineZIndex:function(n){return arguments.length===1?(this.g(t.$y7.trendLineZIndexProperty,n),n):this.c(t.$y7.trendLineZIndexProperty)},ad:function(n){return n!=null&&n==this.angleAxis()&&this.lj()!=null&&this.lj().count()>0?new t.im(0,this.lj().count()-1):n!=null&&n==this.valueAxis()&&this.lj()!=null&&this.lj().count()>0?new t.im(this.lj().minimum(),this.lj().maximum()):null},hh:function(i,r,u,f){t.$tv.hh.call(this,i,r,u,f);this.le().ct().d(i,r,u,f)&&(this.renderSeries(!1),this.gy());var e=n.ig.util.cast(t.$hl.$type,this.valueAxis());switch(r){case"FastItemsSource":n.ig.util.cast(t.$jw.$type,u)!=null&&(n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.lj()),this.lj(null));n.ig.util.cast(t.$jw.$type,f)!=null&&(this.lj(this.a8(this.valueMemberPath())),this.le().co().e(this.resolution()));e==null||e.updateRange()||(this.le().co().e(this.resolution()),this.renderSeries(!1));break;case"ValueMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.lj()),this.lj(this.a8(this.valueMemberPath())));break;case"ValueColumn":e==null||e.updateRange()||(this.le().co().e(this.resolution()),this.renderSeries(!1));break;case"TrendLineBrush":this.hz();break;case"TrendLineType":this.gy()}},gj:function(n,t,i,r){switch(n){case 4:case 1:case 0:this.le().co().e(this.resolution())}this.le().ct().p(n,t,i,r);switch(n){case 4:this.valueAxis()==null||this.valueAxis().updateRange()||this.renderSeries(!0);break;case 1:this.valueAxis()==null||this.valueAxis().updateRange()||this.renderSeries(!0);break;case 0:this.valueAxis()==null||this.valueAxis().updateRange()||this.renderSeries(!0);break;case 2:this.valueMemberPath()!=null&&this.le().co().b()>0&&this.valueAxis()!=null&&!this.valueAxis().updateRange()&&this.renderSeries(!0);break;case 3:r==this.valueMemberPath()&&(this.valueAxis()==null||this.valueAxis().updateRange()||this.renderSeries(!0))}},ct:function(n,i,r){var u=t.$tv.ct.call(this,n,i,r),f=r;return(this.bb()==null||this.bb().count()==0||this.angleAxis()==null||this.lj()==null||this.angleAxis().f3==0||this.valueAxis()==null||Number.isInfinity(this.valueAxis().actualMinimumValue())||Number.isInfinity(this.valueAxis().actualMaximumValue())||f.co().b()<1)&&(u=!1),u},getOffsetValue:function(){return this.lp(this.angleAxis(),this.view().bw(),this.view().bv())},getCategoryWidth:function(){return this.angleAxis().getCategorySize(this.view().bw(),this.view().bv())},lm:function(){return!1},lp:function(n,t,i){var r=0,u=this.preferredCategoryMode(n);u==0&&n.categoryMode()!=0&&(u=1);switch(u){case 0:r=0;break;case 1:r=.5*n.getCategorySize(t,i);break;case 2:r=n.getGroupCenter(this.k3(),t,i)}return n.isInverted()&&(r=-r),r},k8:function(i,r){var u=this,o=r.bw(),e=r.bv(),k=u.angleAxis(),l=u.valueAxis(),d=l.actualMinimumValue(),g=l.actualMaximumValue(),nt,tt,a,v,c,f,it;i.h.clear();i.p.clear();i.q.clear();var rt=u.jw(),w=0,s=r,ut=new t.mq,b=0,h=r.co().d();for(b=u.lp(k,o,e),s.ct().z(u.valueAxis().g7()),s.ct().y(u.valueAxis().g6()),s.ct().aa(function(n,t){return u.lr(n,t,o,e)}),s.ct().ab(function(n,t){return u.ls(n,t,o,e)}),nt=function(){var n=new t.kx(0,e,!1);return n.i(i.q),n}(),tt=function(){var n=new t.km;return n.c(r.co().b()),n.d(r.co().c()),n.e(h),n.a(b),n.b(u.resolution()),n.f(e),n.g(o),n}(),s.ct().ac(i.q,u.trendLineType(),u.lj(),u.trendLinePeriod(),function(n){return u.angleAxis().getScaledAngle(n)},function(n){return u.valueAxis().getScaledValue2(n)},tt,nt),a=!0,u.ln(r)&&h--,v=r.co().c();v<=h;++v)if(c=v,c*r.co().b()>=u.angleAxis().f3&&(c-=n.ig.intDivide(u.angleAxis().f3,r.co().b())),f=r.co().getBucket(c),isNaN(f[0]))a&&u.lm()&&u.ll()&&h++;else{if(f[0]=k.getScaledAngle(f[0])+b,f[1]<d||f[1]>g)continue;if(f[1]=l.getScaledValue2(f[1]),r.co().b()>1){if(f[2]<d||f[2]>g)continue;f[2]=l.getScaledValue2(f[2])}else f[2]=f[1];if((isNaN(f[1])||isNaN(f[2]))&&a&&u.lm()&&u.ll()?h++:a=!1,i.h.add(f),rt){var ft=Math.min(c*r.co().b(),u.bb().count()-1),y=u.ku.d(f[0],f[1],o,e),p=u.ku.e(f[0],f[1],o,e),et=new t.x(0,y-5,p-5,11,11);isNaN(y)||isNaN(p)||Number.isInfinity(y)||Number.isInfinity(p)||!ut.tryAdd(et)||(i.p.add({__x:y,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),it=r.cp().item(w),n.ig.util.cast(t.$fl.$type,it.content()).item(u.bb().item(ft)),++w)}}r.cp().c(w);return},lr:function(n,t,i,r){return this.ku.d(n,t,i,r)},ls:function(n,t,i,r){return this.ku.e(n,t,i,r)},ln:function(n){var t=n;return!this.lm()&&t.co().c()==0&&t.co().d()==this.angleAxis().f3},ld:function(n,i,r){var f=null,e=r.bw(),u=r.bv();if(i>-1&&!e.isEmpty()&&!u.isEmpty()){var o=n.__inner[0][0]<u.left()-2e3?u.left()-10:NaN,s=u.bottom()+10,h=n.__inner[i][0]>u.right()+2e3?u.right()+10:NaN,c=u.top()-10;f=new t.kx(1,o,s,h,c,!1)}return f},lw:null,l1:function(n,t,i,r,u){n.count()>0&&r.count()>0&&(!u||this.lk())&&(n.add(this.lw),n.add(n.__inner[0]),r.add(this.lw),r.add(r.__inner[0]))},ll:function(){return!this.lk()},lk:function(){var t=this.view().bw();return!t.containsPoint({__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},gh:function(n,i){t.$tv.gh.call(this,n,i);var r=i;n&&r.cp().clear();r.ct().o()},k9:function(n,i){var u=i.bw(),f=i.bv(),r=i;r.ct().t(n.q);t.$ry.b(this,n.p,r.cp(),this.useLightweightMarkers());r.ck();this.l0(f,u,r)},l0:function(n,t,i){i.cu(n,t)},hz:function(){(t.$tv.hz.call(this),this.index()<0)||this.le().cv()},eg:function(n,i){return n==this.le().ct().x()?null:t.$tv.eg.call(this,n,i)},scrollIntoView:function(n){var t=this.view().bw(),o=this.view().bv(),u=!t.isEmpty()&&!o.isEmpty()&&this.bb()!=null?this.bb().indexOf(n):-1,e,f,i,r;return this.angleAxis()==null||this.lj()==null||this.valueAxis()==null?!1:u<0||u>this.lj().count()-1?!1:(e=this.angleAxis().getScaledAngle(u),f=this.valueAxis().getScaledValue2(this.lj().item(u)),isNaN(f)&&(f=(this.valueAxis().g6()+this.valueAxis().g7())/2),i=.5+Math.cos(e)*f,r=.5+Math.sin(e)*f,isNaN(i)||(i<t.left()+.1*t.width()&&(i=i+.4*t.width(),t.x(i-.5*t.width())),i>t.right()-.1*t.width()&&(i=i-.4*t.width(),t.x(i-.5*t.width()))),isNaN(r)||(r<t.top()+.1*t.height()&&(r=r+.4*t.height(),t.y(r-.5*t.height())),r>t.bottom()-.1*t.height()&&(r=r-.4*t.height(),t.y(r-.5*t.height()))),this.syncLink()!=null&&this.syncLink().al(this.seriesViewer(),t),u>=0)},_lg:null,lg:function(n){return arguments.length===1?(this._lg=n,n):this._lg},hr:function(i,r){if(t.$tv.hr.call(this,i,r),!this.cl()){this.view().ax(r);return}this.view().ax(r);var u=n.ig.util.cast(t.$y8.$type,this.av());(u.co().e(this.resolution()),this.bn(this.av()))||(this.ck()||(this.lg(new t.t0(3)),this.k8(this.lg(),u)),this.ck(!1),this.k9(this.lg(),u),this.cl(!1))},go:function(n){t.$tv.go.call(this,n);var i=new t.g8(1,"trendLine",this.le().ct().x());i.tags().add("Trend");n.shapes().add(i)},$type:new n.ig.Type("AnchoredRadialSeries",t.$tv.$type)},!0);n.ig.util.defType("RadialAreaSeries:zb","AnchoredRadialSeries",{au:function(){return new t.zc(this)},hc:function(n){t.$y7.hc.call(this,n);this.mf(n)},_mf:null,mf:function(n){return arguments.length===1?(this._mf=n,n):this._mf},init:function(){t.$y7.init.call(this);this.y(t.$zb.$type)},preferredCategoryMode:function(){return 0},gh:function(n,i){t.$y7.gh.call(this,n,i);this.mf().cx()},k9:function(i,r){var u,o,s,v,y;t.$y7.k9.call(this,i,r);var f=r.bw(),e=r.bv(),h=r;if(r.m()&&!f.isEmpty()&&!e.isEmpty()&&this.angleAxis()!=null&&this.valueAxis()!=null){var p=i.h,c=p.count(),l=new t.bh(n.ig.Array.prototype.$type,2,c),a=0;for(u=0;u<c;u++)o=new Array(4),l.add(o),o[0]=this.ku.d(i.h.__inner[u][0],i.h.__inner[u][1],f,e),o[1]=this.ku.e(i.h.__inner[u][0],i.h.__inner[u][1],f,e),o[2]=this.ku.d(i.h.__inner[u][0],i.h.__inner[u][2],f,e),s=i.h.__inner[u][2],o[3]=this.ku.e(i.h.__inner[u][0],s,f,e),s>a&&(a=s);v=t.$jd.c(.5,f,e);y=t.$jd.f(.5,f,e);this.lw={__x:v,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};h.cy(i.h.count(),l,!1,this.mf().co().b(),this.resolution(),this.l1.runOn(this),this.unknownValuePlotting());h.cz.__opacity=this.actualAreaFillOpacity();h.c0.__opacity=this.actualAreaFillOpacity()*.5}},unknownValuePlotting:function(n){return arguments.length===1?(this.g(t.$zb.unknownValuePlottingProperty,n),n):this.c(t.$zb.unknownValuePlottingProperty)},hh:function(n,i,r,u){t.$y7.hh.call(this,n,i,r,u);switch(i){case"UnknownValuePlotting":this.renderSeries(!1);this.gy()}},lm:function(){return!0},$type:new n.ig.Type("RadialAreaSeries",t.$y7.$type)},!0);n.ig.util.defType("RadialBaseView:tw","MarkerSeriesView",{_co:null,co:function(n){return arguments.length===1?(this._co=n,n):this._co},_cn:null,cn:function(n){return arguments.length===1?(this._cn=n,n):this._cn},init:function(n){t.$fx.init.call(this,n);this.cn(n);this.cp(new t.ga(t.$fy.$type));this.cg(this.cp())},_cp:null,cp:function(n){return arguments.length===1?(this._cp=n,n):this._cp},cd:function(n){this.cp().d(n)},_cq:0,cq:function(n){return arguments.length===1?(this._cq=n,n):this._cq},_cr:null,cr:function(n){return arguments.length===1?(this._cr=n,n):this._cr},$type:new n.ig.Type("RadialBaseView",t.$fx.$type)},!0);n.ig.util.defType("AnchoredRadialSeriesView:y8","RadialBaseView",{_cs:null,cs:function(n){return arguments.length===1?(this._cs=n,n):this._cs},init:function(n){t.$tw.init.call(this,n);this.co(new t.za(this));this.cs(n);this.ct(new t.y9)},_ct:null,ct:function(n){return arguments.length===1?(this._ct=n,n):this._ct},cu:function(){},cv:function(){this.cs().actualTrendLineBrush(null);this.cs().trendLineBrush()!=null?this.cs().actualTrendLineBrush(this.cs().trendLineBrush()):this.cs().actualTrendLineBrush(this.cs().actualBrush())},a0:function(n,i){if(n.c()&&(!i,this.cs().trendLineType()!=0&&!i)){var r=this.ct().x();r.z(this.cs().trendLineThickness());r.__stroke=this.cs().actualTrendLineBrush();r.af(this.cs().trendLineDashArray());r.aa(this.cs().trendLineDashCap());n.s(r)}t.$tw.a0.call(this,n,i)},getDefaultTooltipTemplate:function(){var n="<div class='ui-chart-default-tooltip-content'>";return this.cs().angleAxis().label()!=null&&(n+="<span>${item."+this.cs().angleAxis().label()+"}<\/span><br/>"),n+="<span",this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&(n+=" style='color:"+this.d().actualOutline().__fill+"'"),n+(">"+this.cs().title()+": <\/span><span class='ui-priority-primary'>${item."+this.cs().valueMemberPath()+"}<\/span><\/div>")},$type:new n.ig.Type("AnchoredRadialSeriesView",t.$tw.$type)},!0);n.ig.util.defType("RadialAreaSeriesView:zc","AnchoredRadialSeriesView",{_cw:null,cw:function(n){return arguments.length===1?(this._cw=n,n):this._cw},init:function(n){this.cz=new t.b6;this.c1=new t.b6;this.c0=new t.b6;this.c2=new t.b6;t.$y8.init.call(this,n);this.cw(n)},ao:function(){var n=this;t.$y8.ao.call(n);n.n()||(n.d().resolution(4),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}()))},cz:null,c1:null,c0:null,c2:null,cx:function(){this.cz.ak(null);this.c1.ak(null);this.c0.ak(null);this.c2.ak(null);this.am()},cy:function(n,t,i,r,u,f,e){this.cs().lf().h(this.cz,this.c1,this.c0,this.c2,n,t,i,r,u,f,e);this.am()},a6:function(){t.$y8.a6.call(this);this.cz.__fill=this.d().actualBrush();this.cz.__opacity=this.d().actualAreaFillOpacity();this.c0.__fill=this.d().actualBrush();this.c0.__opacity=this.d().actualAreaFillOpacity()*.5;this.c1.__stroke=this.d().actualOutline();this.c1.z(this.d().thickness());this.c1.af(this.d().dashArray());this.c1.aa(this.d().dashCap());this.c2.__stroke=this.d().actualOutline();this.c2.z(this.d().thickness());this.c2.af(this.d().dashArray());this.c2.aa(this.d().dashCap())},a7:function(){t.$y8.a7.call(this);var n=this.br();this.c1.__stroke=n;this.c1.z(this.d().thickness()+3);this.c2.__stroke=n;this.c2.z(this.d().thickness()+3);this.cz.__fill=n;this.cz.__opacity=1;this.c0.__fill=n;this.c0.__opacity=1},a1:function(n,i){t.$y8.a1.call(this,n,i);n.c()&&(n.q(this.cz),n.q(this.c0),n.q(this.c1),n.q(this.c2))},ah:function(n){var r,i,u,f;t.$y8.ah.call(this,n);r=new t.me(1,"lowerShape",this.c1);r.tags().add("Lower");i=new t.me(1,"upperShape",this.c2);i.tags().add("Upper");i.tags().add("Main");u=new t.me(1,"translucentShape",this.cz);u.tags().add("Translucent");f=new t.me(1,"fillShape",this.c0);f.tags().add("Fill");n.shapes().add(r);n.shapes().add(i);n.shapes().add(u);n.shapes().add(f)},$type:new n.ig.Type("RadialAreaSeriesView",t.$y8.$type)},!0);n.ig.util.defType("HighDensityScatterSeries:zd","Series",{init:function(){this.ks=0;this.kr=0;this.kq=0;this.kp=255;this.ko=0;this.kn=0;this.kv=255;this.ku=0;this.kt=0;this.ju=null;this.la=0;this.k9=0;this.lf=0;this.ka=!1;this.__itemIndexes=null;this.j8=null;this.j5=null;t.$aj.init.call(this);this.y(t.$zd.$type)},isScatter:function(){return!0},xAxis:function(n){return arguments.length===1?(this.g(t.$zd.xAxisProperty,n),n):this.c(t.$zd.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$zd.yAxisProperty,n),n):this.c(t.$zd.yAxisProperty)},xMemberPath:function(n){return arguments.length===1?(this.g(t.$zd.xMemberPathProperty,n),n):this.c(t.$zd.xMemberPathProperty)},j2:function(n){if(arguments.length===1){if(this.j1!=n){var t=this.j2();this.j1=n;this.raisePropertyChanged("XColumn",t,this.j2())}return n}return this.j1},j1:null,yMemberPath:function(n){return arguments.length===1?(this.g(t.$zd.yMemberPathProperty,n),n):this.c(t.$zd.yMemberPathProperty)},j4:function(n){if(arguments.length===1){if(this.j3!=n){var t=this.j4();this.j3=n;this.raisePropertyChanged("YColumn",t,this.j4())}return n}return this.j3},j3:null,useBruteForce:function(n){return arguments.length===1?(this.g(t.$zd.useBruteForceProperty,n),n):this.c(t.$zd.useBruteForceProperty)},progressiveLoad:function(n){return arguments.length===1?(this.g(t.$zd.progressiveLoadProperty,n),n):this.c(t.$zd.progressiveLoadProperty)},mouseOverEnabled:function(n){return arguments.length===1?(this.g(t.$zd.mouseOverEnabledProperty,n),n):this.c(t.$zd.mouseOverEnabledProperty)},lj:function(n){return arguments.length===1?(this.g(t.$zd.mn,n),n):this.c(t.$zd.mn)},heatMinimum:function(n){return arguments.length===1?(this.g(t.$zd.heatMinimumProperty,n),n):this.c(t.$zd.heatMinimumProperty)},heatMaximum:function(n){return arguments.length===1?(this.g(t.$zd.heatMaximumProperty,n),n):this.c(t.$zd.heatMaximumProperty)},heatMinimumColor:function(n){return arguments.length===1?(this.g(t.$zd.heatMinimumColorProperty,n),n):this.c(t.$zd.heatMinimumColorProperty)},heatMaximumColor:function(n){return arguments.length===1?(this.g(t.$zd.heatMaximumColorProperty,n),n):this.c(t.$zd.heatMaximumColorProperty)},pointExtent:function(n){return arguments.length===1?(this.g(t.$zd.pointExtentProperty,n),n):this.c(t.$zd.pointExtentProperty)},mg:function(){this.ju!=null&&(this.ju.s(),this.ju.progressiveThunkCompleted=n.ig.Delegate.prototype.remove(this.ju.progressiveThunkCompleted,this.l4.runOn(this)),this.ju=null)},hh:function(i,r,u,f){var e,o;t.$aj.hh.call(this,i,r,u,f);switch(r){case"SeriesViewer":this.seriesViewer()!=null&&(this.ka=!this.seriesViewer().effectiveViewport().isEmpty());break;case"FastItemsSource":this.mg();n.ig.util.cast(t.$jw.$type,u)!=null&&(n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.j2()),n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.j4()),this.j2(null),this.j4(null));n.ig.util.cast(t.$jw.$type,f)!=null&&(this.j2(this.a8(this.xMemberPath())),this.j4(this.a8(this.yMemberPath())));(this.yAxis()==null||this.yAxis().updateRange())&&(this.xAxis()==null||this.xAxis().updateRange())||this.renderSeries(!1);this.gz();break;case"XAxis":e=this.jv;this.jv=this.xAxis();this.mg();e!=null&&(e.rangeChanged=n.ig.Delegate.prototype.remove(e.rangeChanged,this.l7.runOn(this)));this.jv!=null&&(this.jv.rangeChanged=n.ig.Delegate.prototype.combine(this.jv.rangeChanged,this.l7.runOn(this)));u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);(this.xAxis()==null||this.xAxis().updateRange())&&(f!=null||u==null)||this.renderSeries(!1);break;case"YAxis":o=this.jx;this.jx=this.yAxis();this.mg();o!=null&&(o.rangeChanged=n.ig.Delegate.prototype.remove(o.rangeChanged,this.l7.runOn(this)));this.jx!=null&&(this.jx.rangeChanged=n.ig.Delegate.prototype.combine(this.jx.rangeChanged,this.l7.runOn(this)));u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);(this.yAxis()==null||this.yAxis().updateRange())&&(f!=null||u==null)||this.renderSeries(!1);break;case"MouseOverEnabled":this.kb=this.mouseOverEnabled();this.renderSeries(!1);break;case"XMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.j2()),this.j2(this.a8(this.xMemberPath())));break;case"XColumn":this.mg();this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!1);this.gz();break;case"YMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.j4()),this.j4(this.a8(this.yMemberPath())));break;case"YColumn":this.mg();this.yAxis()==null||this.yAxis().updateRange()||this.renderSeries(!1);this.gz();break;case"UseBruteForce":this.mg();this.renderSeries(!1);this.gy();break;case"HeatMinimum":this.renderSeries(!1);this.gy();break;case"HeatMaximum":this.renderSeries(!1);this.gy();break;case"MaxRenderDepth":this.renderSeries(!1);break;case"HeatMaximumColor":case"HeatMinimumColor":if(!this.jt().b2(this.heatMinimumColor(),this.heatMaximumColor()))return;this.ks=this.heatMinimumColor().i();this.kr=this.heatMinimumColor().h();this.kq=this.heatMinimumColor().g();this.kp=this.heatMaximumColor().i();this.ko=this.heatMaximumColor().h();this.kn=this.heatMaximumColor().g();this.kv=this.kp-this.ks;this.ku=this.ko-this.kr;this.kt=this.kn-this.kq;this.renderSeries(!1);this.gy();break;case"PointExtent":this.ld=Math.max(f-1,0);this.j9=this.ld>0;this.renderSeries(!1);this.gy();break;case"ProgressiveLoad":this.renderSeries(!1);this.gy()}},l7:function(){this.mg();this.renderSeries(!1)},ld:0,j9:!1,ks:0,kr:0,kq:0,kp:0,ko:0,kn:0,kv:0,ku:0,kt:0,ju:null,jz:null,j0:null,jv:null,jx:null,kb:!1,ct:function(n,i,r){var u=t.$aj.ct.call(this,n,i,r);return(this.yAxis()==null||this.xAxis()==null||this.xAxis().seriesViewer()==null||this.yAxis().seriesViewer()==null||this.j4()==null||this.j2()==null||this.j4().count()<1||this.j2().count()<1||this.j4().count()!=this.j2().count()||this.xAxis().actualMinimumValue()==this.xAxis().actualMaximumValue()||this.yAxis().actualMinimumValue()==this.yAxis().actualMaximumValue()||this.jr().isEmpty())&&(u=!1),u},le:0,progressiveStatus:function(n){if(arguments.length===1){var t=this.le;return this.le=n,this.raisePropertyChanged("ProgressiveStatus",t,this.le),n}return this.le},hq:function(n){t.$aj.hq.call(this,n);this.l9(n,this.view())},l9:function(i,r){var u=this,f,p,w;if(!u.bn(r)){if(u.ju==null&&!u.useBruteForce()){var e=new t.bh(t.$zh.$type,2,u.j2().count()),h=u.xAxis(),c=u.yAxis(),l=new t.x(0,0,0,1,1),a=new t.x(0,0,0,1,1),v=new t.iu(l,a,h.isInverted()),y=new t.iu(l,a,c.isInverted()),o,s;for(f=0;f<u.j2().count();f++)o=h.getScaledValue(u.j2().item(f),v),s=c.getScaledValue(u.j4().item(f),y),isNaN(o)||isNaN(s)||Number.isInfinity(o)||Number.isInfinity(s)||e.add(function(){var n=new t.zh;return n.a=o,n.b=s,n.c=f,n}());u.progressiveLoad()?(u.k9=1,u.la=Math.logBase(e.count(),2)+3,u.progressiveStatus(u.k9/u.la*100),u.progressiveLoadStatusChanged!=null&&u.progressiveLoadStatusChanged(u,new t.zo(u.progressiveStatus())),u.ju=t.$zf.b(e.toArray(),1),u.ju.progressiveThunkCompleted=n.ig.Delegate.prototype.combine(u.ju.progressiveThunkCompleted,u.l4.runOn(u)),u.ju.f()||(u.ju.progressiveThunkCompleted=n.ig.Delegate.prototype.remove(u.ju.progressiveThunkCompleted,u.l4.runOn(u))),u.gy()):(p=t.$bt.now(),u.ju=new t.zf(0,e.toArray(),1),w=t.$bt.now())}u.progressiveLoad()&&!u.useBruteForce()?u.ma(r):u.mb(r)}},lg:0,la:0,k9:0,gj:function(n,i,r,u){t.$aj.gj.call(this,n,i,r,u);this.mg();var f=!1;this.xAxis()==null||this.xAxis().updateRange()||(f=!0);this.yAxis()==null||this.yAxis().updateRange()||(f=!0);f&&this.renderSeries(!1);this.gz()},l6:function(n){var u=n,t=this.lc*this.lb,i,r;if(this.kb)if(this.__itemIndexes==null||this.__itemIndexes.length!=t)for(this.__itemIndexes=new Array(t),i=0;i<t;i++)this.__itemIndexes[i]=0;else for(r=0;r<t;r++)this.__itemIndexes[r]=0},mb:function(n){var i=this,e,o,l=null,c,s,f,a,v,h,r,u;n.n()&&(l=i.__itemIndexes),function(){var t=n.getViewInfo(o,e);return o=t.viewportRect,e=t.windowRect,t.ret}();c=n;i.jz=new t.iu(e,o,i.jv.isInverted());i.jz.b=i.seriesViewer().effectiveViewport();i.j0=new t.iu(e,o,i.jx.isInverted());i.j0.b=i.seriesViewer().effectiveViewport();i.l5(n);i.l6(n);s=i.lc*i.lb;(i.j8==null||i.j8.length!=s)&&(i.j8=new Array(s),i.j5=new Array(s));var y=i.j8.length,p=i.j8,w=i.j5;for(f=0;f<y;f++)p[f]=0,w[f]=0;for(i.lg=Math.round(i.resolution()),i.j7=c.b1(),a=i.j7.length,v=i.j7,h=0;h<a;h++)v[h]=0;r=i.heatMinimum();u=i.heatMaximum();(isNaN(r)||Number.isInfinity(r))&&(r=0);(isNaN(u)||Number.isInfinity(u))&&(u=50);i.kl=Math.min(r,u);i.kk=Math.max(r,u);i.kl<0&&(i.kl=0);i.kk<0&&(i.kk=0);i.km=i.kk-i.kl;i.useBruteForce()?i.l8(n):i.mi(n);c.ca();n.n()&&(i.__itemIndexes=l,i.jt().cb())},ma:function(n){this.ju!=null&&this.mb(n)},progressiveLoadStatusChanged:null,l4:function(){var i=this;i.jt().b9(function(){i.k9<i.la-1&&i.k9++;i.progressiveStatus(i.k9/i.la*100);i.progressiveLoadStatusChanged!=null&&i.progressiveLoadStatusChanged(i,new t.zo(i.progressiveStatus()));i.ma(i.view());i.gy();i.ju!=null&&(i.ju.f()||(i.ju.progressiveThunkCompleted=n.ig.Delegate.prototype.remove(i.ju.progressiveThunkCompleted,i.l4.runOn(i)),i.progressiveStatus(100),i.progressiveLoadStatusChanged!=null&&i.progressiveLoadStatusChanged(i,new t.zo(i.progressiveStatus()))))})},l8:function(){var o=this.j2().asArray().clone(),s,w,i,n,t,u,f,a,v,c,l,r,e;this.xAxis().getScaledValueList(o,0,o.length,this.jz);s=this.j4().asArray().clone();this.lf=0;var h=this.ld,y=this.j9,p=this.j8.length;for(this.yAxis().getScaledValueList(s,0,s.length,this.j0),w=-16777216|this.ks<<16|this.kr<<8|this.kq,i=0;i<o.length;i++)if(n=o[i],t=s[i],n=Math.floor(n),t=Math.floor(t),!(n<0)&&!(n>=this.lc)&&!(t<0)&&!(t>=this.lb))if(y)for(u=n-h,f=n+h,f=f>this.lc-1?this.lc-1:f,u=u<0?0:u,a=t+h,v=t-h,c=u;c<=f;c++)for(l=v;l<=a;l++)(r=l*this.lc+c,r<0||r>p-1)||(this.j8[r]=this.j8[r]+1,this.j5[r]=1,this.lf++,this.kb&&(this.__itemIndexes[r]=i+1));else e=t*this.lc+n,this.j8[e]=this.j8[e]+1,this.j5[e]=1,this.lf++,this.kb&&(this.__itemIndexes[e]=i+1);this.mc()},kf:null,mi:function(n){var i=this,u,r,c,l,y,f;if(function(){var t=n.getViewInfo(u,r);return u=t.viewportRect,r=t.windowRect,t.ret}(),i.ju!=null){i.kf==null?i.kf=new t.bh(t.$zg.$type,2,Math.round(u.width()*u.height())):i.kf.clear();var e=r.left(),o=r.right(),s=r.top(),h=r.bottom();i.k2=r.top();i.k0=r.height();i.k1=r.left();i.k3=r.width();i.ky=u.top();i.kw=u.height();i.kx=u.left();i.kz=u.width();i.kh=(i.seriesViewer().effectiveViewport().left()-i.kx)/i.kz;i.ki=(i.seriesViewer().effectiveViewport().top()-i.ky)/i.kw;c=(i.seriesViewer().effectiveViewport().right()-i.kx)/i.kz;i.kj=c-i.kh;l=(i.seriesViewer().effectiveViewport().bottom()-i.ky)/i.kw;i.kg=l-i.ki;i.ka&&(e=(e-i.kh)/i.kj,o=(o-i.kh)/i.kj,s=(s-i.ki)/i.kg,h=(h-i.ki)/i.kg);var a=i.resolution()/u.width()*r.width(),v=i.resolution()/u.height()*r.height(),w=Math.min(a,v),p=function(){var n=new t.zn;return n.c=e,n.a=o,n.d=s,n.b=h,n.e=a,n.f=v,n.g=i.lj(),n}();for(i.ju.t(i.kf,p,0,1,0,1),i.lf=0,f=0;f<i.kf.count();f++)y=i.kf.__inner[f],i.md(y);i.mc()}},kl:0,kk:0,km:0,ky:0,kw:0,kx:0,kz:0,k1:0,k3:0,k2:0,k0:0,kh:0,ki:0,kj:0,kg:0,md:function(n){var f,i;if(!n.g){var r=n.e!=null&&n.e.a,u=n.a==null?0:n.a.length,t=n.h-u+1;if(r&&t>0||(t=1),this.mf(n.d,t,r,n.e),u>0&&!r)for(i=0;i<u;i++)f=n.a[i],this.mf(f,t,!1,n.e);n.e!=null&&(n.e.a=!1)}},scrollIntoView:function(n){var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),o=this.seriesViewer()!=null?this.seriesViewer().viewportRect():t.$x.empty(),e=new t.x(0,0,0,1,1),s=new t.iu(e,e,this.xAxis().isInverted()),h=new t.iu(e,e,this.yAxis().isInverted()),f=!i.isEmpty()&&!o.isEmpty()&&this.bb()!=null?this.bb().indexOf(n):-1,r=this.xAxis()!=null&&this.j2()!=null&&f<this.j2().count()?this.xAxis().getScaledValue(this.j2().item(f),s):NaN,u=this.yAxis()!=null&&this.j4()!=null&&f<this.j4().count()?this.yAxis().getScaledValue(this.j4().item(f),h):NaN;return isNaN(r)||(r<i.left()+.1*i.width()&&(r=r+.4*i.width(),i.x(r-.5*i.width())),r>i.right()-.1*i.width()&&(r=r-.4*i.width(),i.x(r-.5*i.width()))),isNaN(u)||(u<i.top()+.1*i.height()&&(u=u+.4*i.height(),i.y(u-.5*i.height())),u>i.bottom()-.1*i.height()&&(u=u-.4*i.height(),i.y(u-.5*i.height()))),this.syncLink()!=null&&this.syncLink().al(this.seriesViewer(),i),f>=0},mf:function(n,t,i,r){var lt=this.li(t),b=n.c,u=this.ld,l,a,v,y,f,e,p,w;if(i){var k=r.d,d=r.b,g=r.e,nt=r.c;this.ka&&(k=this.kh+this.kj*k,d=this.kh+this.kj*d,g=this.ki+this.kg*g,nt=this.ki+this.kg*nt);var o=this.kx+this.kz*(k-this.k1)/this.k3,s=this.kx+this.kz*(d-this.k1)/this.k3,h=this.ky+this.kw*(g-this.k2)/this.k0,c=this.ky+this.kw*(nt-this.k2)/this.k0;o=Math.floor(o);s=Math.floor(s);h=Math.floor(h);c=Math.floor(c);this.j9&&(o-=u,s+=u,h-=u,c+=u);var ot=(s-o+1)*(c-h+1),tt=t/ot,st=tt;for(l=o;l<=s;l++)for(a=h;a<=c;a++)this.me(b,l,a,tt,st)}else if(v=n.a,y=n.b,this.ka&&(v=this.kh+this.kj*v,y=this.ki+this.kg*y),f=this.kx+this.kz*(v-this.k1)/this.k3,e=this.ky+this.kw*(y-this.k2)/this.k0,f=Math.floor(f),e=Math.floor(e),this.j9){var it=f-u,rt=f+u,ut=e+u,ft=e-u,ht=(rt-it+1)*(ut-ft+1),et=t/ht,ct=et;for(p=it;p<=rt;p++)for(w=ft;w<=ut;w++)this.me(b,p,w,et,ct)}else this.me(b,f,e,t,1)},lh:function(n,t){return Math.floor(255*t)<<24|Math.floor(t*(this.ks+n*this.kv))<<16|Math.floor(t*(this.kr+n*this.ku))<<8|Math.floor(t*(this.kq+n*this.kt))},li:function(n){return-16777216|Math.floor(this.ks+n*this.kv)<<16|Math.floor(this.kr+n*this.ku)<<8|Math.floor(this.kq+n*this.kt)},k4:function(n){return(n>>24&255)/255},me:function(n,t,i,r,u){if(!(t<0)&&!(t>=this.lc)&&!(i<0)&&!(i>=this.lb)){var f=i*this.lc+t;this.j8[f]=this.j8[f]+r;this.j5[f]=this.j5[f]+u;this.kb&&(this.__itemIndexes[f]=n+1);this.lf+=r}},mc:function(){for(var n=0,t=0,h=this.km,e=this.kl,c=this.kk,l=this.j8.length,a=this.j8,v=this.j5,u=this.j7,o=NaN,s=NaN,i=0,r=0,f=0;f<l;f++)n=a[f],n!=0&&(t=v[f],n=n>=c?1:n<=e?0:(n-e)/h,t>1&&(t=1),t<.2&&(t=.2),(o!=n||s!=t)&&(i=this.lh(n,t),o=n,s=t),u[r]=i>>16&255,u[r+1]=i>>8&255,u[r+2]=i&255,u[r+3]=i>>24&255),r+=4},lc:0,lb:0,j7:null,lf:0,l5:function(n){var t=n;t.b7()},au:function(){return new t.ze(this)},hc:function(n){t.$aj.hc.call(this,n);this.jt(n)},_jt:null,jt:function(n){return arguments.length===1?(this._jt=n,n):this._jt},ad:function(n){return n!=null&&n==this.xAxis()&&this.j2()!=null?new t.im(this.j2().minimum(),this.j2().maximum()):n!=null&&n==this.yAxis()&&this.j4()!=null?new t.im(this.j4().minimum(),this.j4().maximum()):null},ka:!1,h2:function(){this.seriesViewer()!=null&&(this.ka=!this.seriesViewer().effectiveViewport().isEmpty());this.renderSeries(!1)},h3:function(){this.renderSeries(!1)},__itemIndexes:null,j8:null,j5:null,getItem:function(n){var i;if(!this.kb||this.__itemIndexes==null||this.seriesViewer()==null||this.bb()==null||this.__itemIndexes.length!=this.lc*this.lb)return null;var t=this.seriesViewer().actualWindowRect(),u=(n.__x-t.left())/t.width(),f=(n.__y-t.top())/t.height(),e=Math.round(this.jr().left()+this.jr().width()*u),o=Math.round(this.jr().top()+this.jr().height()*f),r=this.lm(e,o);return r<0||r>this.__itemIndexes.length-1?null:(i=this.__itemIndexes[r]-1,i<0||i>this.bb().count())?null:this.bb().item(i)},lm:function(n,t){var i=this.lc*t+n,r;return i>0&&i<this.__itemIndexes.length&&this.__itemIndexes[i]>0?i:(r=1,i=this.lc*(t-r)+n,i>0&&i<this.__itemIndexes.length&&this.__itemIndexes[i]>0)?i:(i=this.lc*(t+r)+n,i>0&&i<this.__itemIndexes.length&&this.__itemIndexes[i]>0)?i:(i=this.lc*t+n-1,i>0&&i<this.__itemIndexes.length&&this.__itemIndexes[i]>0)?i:(i=this.lc*t+n+1,i>0&&i<this.__itemIndexes.length&&this.__itemIndexes[i]>0)?i:(i=this.lc*(t-r)+n-1,i>0&&i<this.__itemIndexes.length&&this.__itemIndexes[i]>0)?i:(i=this.lc*(t+r)+n+1,i>0&&i<this.__itemIndexes.length&&this.__itemIndexes[i]>0)?i:(i=this.lc*(t-r)+n+1,i>0&&i<this.__itemIndexes.length&&this.__itemIndexes[i]>0)?i:(i=this.lc*(t+r)+n-1,i>0&&i<this.__itemIndexes.length&&this.__itemIndexes[i]>0)?i:0},scatterMouseOver:null,mh:function(n,t,i){this.j7=n;this.lc=t;this.lb=i},co:function(){return!0},gh:function(n,i){t.$aj.gh.call(this,n,i);this.jt().b8();this.av()!=null&&this.av().b8();this.gy()},hr:function(i,r){if(t.$aj.hr.call(this,i,r),!this.cl()){this.view().ax(r);return}if(this.view().ax(r),!this.bn(this.av())){var u=n.ig.util.cast(t.$ze.$type,this.av()),f=new t.oj;this.l9(!1,u);this.cl(!1)}},$type:new n.ig.Type("HighDensityScatterSeries",t.$aj.$type)},!0);n.ig.util.defType("MouseMoveThunk:zp","Object",{init:function(){n.ig.$op.init.call(this)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("MouseMoveThunk",n.ig.$ot)},!0);n.ig.util.defType("ScatterMouseOverEventArgs:zq","EventArgs",{_axisPosition:null,axisPosition:function(n){return arguments.length===1?(this._axisPosition=n,n):this._axisPosition},_mousePosition:null,mousePosition:function(n){return arguments.length===1?(this._mousePosition=n,n):this._mousePosition},_nearestItems:null,nearestItems:function(n){return arguments.length===1?(this._nearestItems=n,n):this._nearestItems},init:function(n,i,r){t.$en.init.call(this);this.axisPosition(n);this.mousePosition(i);this.nearestItems(r)},$type:new n.ig.Type("ScatterMouseOverEventArgs",t.$en.$type)},!0);n.ig.util.defType("ProgressiveLoadStatusEventArgs:zo","EventArgs",{_currentStatus:0,currentStatus:function(n){return arguments.length===1?(this._currentStatus=n,n):this._currentStatus},init:function(n){t.$en.init.call(this);this.currentStatus(n)},$type:new n.ig.Type("ProgressiveLoadStatusEventArgs",t.$en.$type)},!0);n.ig.util.defType("HighDensityScatterSeriesView:ze","SeriesView",{init:function(n){t.$bb.init.call(this,n);this.by(n)},ao:function(){t.$bb.ao.call(this);this.n()||(this.d().resolution(4),this.by().heatMinimumColor(t.$b4.n(255,0,0,0)),this.by().heatMaximumColor(t.$b4.n(255,255,0,0)))},cb:function(){this.by().mh(this.b0,this.b5,this.b4)},_by:null,by:function(n){return arguments.length===1?(this._by=n,n):this._by},b0:null,b5:0,b4:0,_b6:null,b6:function(n){return arguments.length===1?(this._b6=n,n):this._b6},_b3:null,b3:function(n){return arguments.length===1?(this._b3=n,n):this._b3},_bz:null,bz:function(n){return arguments.length===1?(this._bz=n,n):this._bz},b7:function(){var f;this.b6()==null&&(this.b6(n("<canvas><\/canvas>")),f=this.b6()[0].getContext("2d"),this.bz(new t.bz(new t.dk,f)));var i=this.d().seriesViewer().getContainerRect(),s=Math.round(i.left()),h=Math.round(i.top()),r=Math.round(i.width()),u=Math.round(i.height()),e=this.b5,o=this.b4;this.b5=r;this.b4=u;(e!=this.b5||o!=this.b4||this.b0==null)&&(this.b6().attr("width",r.toString()),this.b6().attr("height",u.toString()),this.b3(this.bz().e().getImageData(0,0,r,u)),this.b0=this.b3().data);this.by().mh(this.b0,this.b5,this.b4)},b1:function(){return this.b0},ca:function(){var n=Math.round(this.bv().left()),t=Math.round(this.bv().left()),i=Math.round(this.bv().width()),r=Math.round(this.bv().height());this.bz().e().putImageData(this.b3(),0,0);this.am()},b9:function(n){window.setTimeout(n,0)},a1:function(n,i){var r;if(t.$bb.a1.call(this,n,i),i){if(!this.by().mouseOverEnabled())return;r=new t.b1;r.l(this.bv().left());r.m(this.bv().top());r.width(this.bv().width());r.height(this.bv().height());r.__fill=this.br();n.t(r);return}if(this.b6()!=null){var u=Math.round(this.bv().left()),f=Math.round(this.bv().top()),e=Math.round(this.bv().width()),o=Math.round(this.bv().height());this.g().l(this.b6()[0],this.d().__opacity,u,f,e,o,u,f,e,o)}},b2:function(n,t){return n!=null&&t!=null},b8:function(){if(this.b0!=null){for(var n=0;n<this.b0.length;n++)this.b0[n]=0;this.ca()}},ah:function(i){var f,r,u;if(t.$bb.ah.call(this,i),this.b0==null){i.pixels(null);return}for(f=new Array(n.ig.intDivide(this.b0.length,4)),u=0;u<n.ig.intDivide(this.b0.length,4);u++)r=u*4,f[u]=this.b0[r+3]<<24|this.b0[r]<<16|this.b0[r+1]<<8|this.b0[r+2];i.pixels(f);i.pixelWidth(this.b5)},$type:new n.ig.Type("HighDensityScatterSeriesView",t.$bb.$type)},!0);n.ig.util.defType("KDTree2D:zf","Object",{init:function(i,r,u){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}this.k=0;this.o={};this.q=new t.ff;n.ig.$op.init.call(this);this.d(this.c(r,0,r.length-1,0,u))},init1:function(){this.k=0;this.o={};this.q=new t.ff;n.ig.$op.init.call(this)},a:null,h:null,g:null,k:0,o:null,p:function(){return this.o},progressiveThunkCompleted:null,b:function(n,i){var r=new t.zf(1),u;return r.d(new t.zg),r.d().g=!0,r.a=n,r.h=new t.k4(t.$zk.$type),r.g=new t.bh(t.$zk.$type,0),u=new t.zk,u.e=0,u.b=n.length-1,u.c=0,u.d=i,u.a=r.d(),r.h.push(u),r},f:function(){if(this.h.count()==0&&this.g.count()==0)return this.a=null,!1;if(this.h.count()==0&&this.g.count()>0)return!0;for(this.k=this.h.peek().c;this.h.count()>0&&this.h.peek().c==this.k;)this.g.add(this.h.pop());return window.setTimeout(this.y.runOn(this),0),!0},e:!1,s:function(){this.e=!0},y:function(){for(var n,i=0;i<this.g.count();i++){if(this.e||this.a==null)return;this.a.length!=0&&(n=this.g.__inner[i],this.v(n.a,this.a,n.e,n.b,n.c,n.d))}this.g.clear();this.progressiveThunkCompleted!=null&&this.progressiveThunkCompleted(this,new t.en)},v:function(i,r,u,f,e,o){var c=this,l,h,a,s;if(i.g=!1,i.f=e%2==0,i.h=f-u,u==f){i.d=r[u];return}if(u>f){i.g=!0;return}if(f-u+1<=o){for(i.d=r[u],i.a=new Array(f-u+1),l=0,h=u;h<=f;h++)i.a[l++]=r[h];return}a=Math.max(n.ig.intDivide(f-u,2),1);s=c.m(r,u,f,i.f,a);i.d=r[s];u<=s-1?(i.b=function(){var n=new t.zg;return n.g=!0,n}(),i.b.h=s-1-u+1,c.h.push(function(){var n=new t.zk;return n.e=u,n.b=s-1,n.c=e+1,n.d=o,n.a=i.b,n}())):i.b=null;s+1<=f?(i.c=function(){var n=new t.zg;return n.g=!0,n}(),i.c.h=f-(s+1)+1,c.h.push(function(){var n=new t.zk;return n.e=s+1,n.b=f,n.c=e+1,n.d=o,n.a=i.c,n}())):i.c=null},c:function(i,r,u,f,e){var o=new t.zg,c,s,l,h;if(o.f=f%2==0,o.h=u-r,r==u)return o.d=i[r],o;if(r>u)return null;if(u-r+1<=e){for(o.d=i[r],o.a=new Array(u-r+1),c=0,s=r;s<=u;s++)o.a[c++]=i[s];return o}return l=Math.max(n.ig.intDivide(u-r,2),1),h=this.m(i,r,u,o.f,l),o.d=i[h],o.b=this.c(i,r,h-1,f+1,e),o.c=this.c(i,h+1,u,f+1,e),o},l:function(n,t,i,r,u){var h=t?n[u].a:n[u].b,o=n[u],f,e,s;for(n[u]=n[r],n[r]=o,f=i,e=i;e<r;e++)s=t?n[e].a:n[e].b,s<=h&&(o=n[f],n[f]=n[e],n[e]=o,f++);return o=n[r],n[r]=n[f],n[f]=o,f},q:null,m:function(n,t,i,r,u){if(t==i)return t;var o=this.q.c(t,i),f=this.l(n,r,t,i,o),e=f-t+1;return e==u?f:u<e?this.m(n,t,f-1,r,u):this.m(n,f+1,i,r,u-e)},w:function(n,t,i,r){this.x(n,t,i,r,this.d())},x:function(n,t,i,r,u){if(u!=null&&!u.g){if(u.b==null&&u.c==null){if(this.r(n,t,i,u,u.d,!0,0,r),n.a)return;if(u.a!=null&&u.a.length>0)for(var f=0;f<u.a.length;f++)if(this.r(n,t,i,u,u.a[f],!1,f,r),n.a)return;return}if(this.r(n,t,i,u,u.d,!0,0,r),!n.a)if(u.f)if(t<=u.d.a){if(this.x(n,t,i,r,u.b),n.a)return;if(this.i(t,i,u.d.a,i)<n.c&&this.x(n,t,i,r,u.c),n.a)return}else{if(this.x(n,t,i,r,u.c),n.a)return;if(this.i(t,i,u.d.a,i)<n.c&&this.x(n,t,i,r,u.b),n.a)return}else if(i<=u.d.b){if(this.x(n,t,i,r,u.b),n.a)return;if(this.i(t,i,t,u.d.b)<n.c&&this.x(n,t,i,r,u.c),n.a)return}else{if(this.x(n,t,i,r,u.c),n.a)return;if(this.i(t,i,t,u.d.b)<n.c&&this.x(n,t,i,r,u.b),n.a)return}}},r:function(n,i,r,u,f,e,o,s){var a=this,c,l,v,p,h,y;if(!n.a){if(n.e>n.f){n.a=!0;return}if(n.b.count()<s){isNaN(n.d)&&(n.d=a.i(i,r,f.a,f.b),n.c=n.d,n.g=0);n.b.add(function(){var n=new t.zm;return n.b=e,n.e=o,n.a=u,n.c=f.a,n.d=f.b,n}());n.e++;c=a.i(i,r,f.a,f.b);c<n.d&&(n.d=c);c>n.c&&(n.c=c,n.g=n.b.count()-1);return}if(l=0,l<n.c){for(l<n.d&&(n.d=l),n.b.__inner[n.g]=function(){var n=new t.zm;return n.b=e,n.e=o,n.a=u,n.c=f.a,n.d=f.b,n}(),v=0,p=0,h=0;h<n.b.count();h++)y=a.i(i,r,n.b.__inner[h].c,n.b.__inner[h].d),y>v&&(v=y,p=h);n.e++}}},i:function(n,t,i,r){return(n-i)*(n-i)+(t-r)*(t-r)},t:function(n,t,i,r,u,f){this.u(n,this.d(),t,i,r,u,f,!1,0)},u:function(n,i,r,u,f,e,o,s,h){var c,l,a,v,y,p,w,b,k,d;if(i!=null){if(c=i.e,h>r.g||o-e<r.f&&f-u<r.e){i.e==null&&(i.e=new t.zi);c=i.e;c.a=!0;c.d=u;c.b=f;c.e=e;c.c=o;n.add(i);return}if(c!=null&&(c.a=!1),i.b==null&&i.c==null){n.add(i);return}i.f?(l=u,a=i.d.a,v=e,y=o,p=i.d.a,w=f,b=e,k=o):(l=u,a=f,v=e,y=i.d.b,p=u,w=f,b=i.d.b,k=o);s?(n.add(i),this.u(n,i.b,r,l,a,v,y,!0,h+1),this.u(n,i.c,r,p,w,b,k,!0,h+1)):(d=!1,l>=r.c&&a<=r.a&&v>=r.d&&y<=r.b?(d=!0,n.add(i),this.u(n,i.b,r,l,a,v,y,!0,h+1)):r.c>a||r.a<l||r.d>y||r.b<v||(d=!0,n.add(i),this.u(n,i.b,r,l,a,v,y,!1,h+1)),p>=r.c&&w<=r.a&&b>=r.d&&k<=r.b?(d||n.add(i),this.u(n,i.c,r,p,w,b,k,!0,h+1)):r.c>w||r.a<p||r.d>k||r.b<b||(d||n.add(i),this.u(n,i.c,r,p,w,b,k,!1,h+1)))}},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},z:function(){this.n(this.d())},n:function(n){if(n==null)return 0;if(this.n(n.b)+this.n(n.c)!=n.h);return n.h+1},$type:new n.ig.Type("KDTree2D",n.ig.$ot)},!0);n.ig.util.defType("KNearestResults:zl","Object",{init:function(){n.ig.$op.init.call(this)},e:0,f:0,b:null,a:!1,d:0,c:0,g:0,$type:new n.ig.Type("KNearestResults",n.ig.$ot)},!0);n.ig.util.defType("KNearestResult:zm","Object",{init:function(){n.ig.$op.init.call(this)},e:0,b:!1,c:0,d:0,a:null,$type:new n.ig.Type("KNearestResult",n.ig.$ot)},!0);n.ig.util.defType("KDTreeThunk:zk","Object",{init:function(){n.ig.$op.init.call(this)},e:0,b:0,c:0,d:0,a:null,$type:new n.ig.Type("KDTreeThunk",n.ig.$ot)},!0);n.ig.util.defType("SearchArgs:zn","Object",{init:function(){n.ig.$op.init.call(this)},c:0,d:0,a:0,b:0,e:0,f:0,g:0,$type:new n.ig.Type("SearchArgs",n.ig.$ot)},!0);n.ig.util.defType("KDTreeNode2D:zg","Object",{init:function(){n.ig.$op.init.call(this)},g:!1,f:!1,h:0,d:null,b:null,c:null,a:null,e:null,$type:new n.ig.Type("KDTreeNode2D",n.ig.$ot)},!0);n.ig.util.defType("SearchData:zi","Object",{init:function(){n.ig.$op.init.call(this)},a:!1,d:0,b:0,e:0,c:0,$type:new n.ig.Type("SearchData",n.ig.$ot)},!0);n.ig.util.defType("PointData:zh","Object",{init:function(){n.ig.$op.init.call(this)},a:0,b:0,c:0,$type:new n.ig.Type("PointData",n.ig.$ot)},!0);n.ig.util.defType("ScatterLineSeries:zr","ScatterBase",{init:function(){var i=this,n;t.$n0.init.call(this);this.y(t.$zr.$type);this.ky=new t.oj;this.k0=new t.oj;this.kx=new t.oj;n=function(n,t){var r=i.bb().indexOf(n.a()),f,u;return r==-1||r==0?n:(f=i.bb().item(r-1),!function(){var n=t.i().tryGetValue(f,u);return u=n.value,n.ret}())?n:u};this.ky.q(n);this.k0.q(n);this.kx.q(n)},au:function(){return new t.zs(this)},lr:function(i,r){var u=this,f,s,h;t.$n0.lr.call(u,i,r);i.o().clear();i.w().clear();var a=r.bw(),o=r.bv(),y=u.resolution()*u.resolution(),e=0;u.k3()!=null&&(e=u.k3().count());u.k5()!=null&&(e=Math.min(u.k5().count(),e));var p=new t.iu(a,o,u.ku().d()),w=new t.iu(a,o,u.ku().e()),c=function(n){return u.ku().a().getScaledValue(u.k3().item(n),p)},l=function(n){return u.ku().b().getScaledValue(u.k5().item(n),w)},b=o.top()-10,k=o.bottom()+10,d=o.left()-10,g=o.right()+10,v=function(){var n=new t.kx(1,d,k,g,b,!1);return n.i(i.o()),n}();for(f=0;f<e;)if(s=f,++f,e>u.maximumMarkers()){while(f<e&&u.mn(c,l,s,f)<y)++f;v.j(u.mp(c,l,s,f-1))}else h=new t.n6,h.c({__x:c(s),__y:l(s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h.a(u.bb().item(s)),i.w().containsKey(h.a())||i.w().add(h.a(),h);e>u.maximumMarkers()&&v.i(null)},mp:function(t,i,r,u){var f;if(r==u)return{__x:t(r),__y:i(r),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};var e=0,o=0,s=u-r+1;for(f=r;f<=u;++f)e+=t(f),o+=i(f);return{__x:e/s,__y:o/s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},mn:function(n,t,i,r){var u=n(r)-n(i),f=t(r)-t(i);return u*u+f*f},ly:function(i,r){var u=this,f,e;r.cy(!1);t.$n0.ly.call(u,i,r);f=new t.x(0,r.bv().left(),r.bv().top(),r.bv().width(),r.bv().height());f.inflate1(u.thickness(),u.thickness());u.lt(i,new t.kx(0,f,!1));e=n.ig.util.cast(t.$zs.$type,r);u.ms(e.c8,i.o().count(),function(n){return i.o().__inner[n].__x},function(n){return i.o().__inner[n].__y},u.unknownValuePlotting(),u.resolution())},ms:function(n,i,r,u,f,e){var y=this,a=new t.dx,o,h,s,p,w,b,c,l,v;for(n.ak(a),a.b(new t.dy),o=new t.bh(t.$d9.$type,0),h=0,s=0;s<i;s++)(isNaN(r(s))||isNaN(u(s)))&&(p=s-h,p>0&&((f==1||o.count()==0)&&(w=new t.d9,o.add(w)),y.mr(o.__inner[o.count()-1].__points,h,s-1,r,u,e)),h=s+1);for((f==1||o.count()==0)&&(b=new t.d9,o.add(b)),y.mr(o.__inner[o.count()-1].__points,h,i-1,r,u,e),c=0;c<o.count();c++)l=o.__inner[c],l.__points.count()>0&&(v=function(){var n=new t.d6;return n.startPoint(l.__points.__inner[0]),n}(),v.__segments.add(l),a.b().add(v))},mm:function(i,r,u,f,e,o){for(var c=new t.bh(n.ig.Number.prototype.$type,0),s=f,h=e,l=h-s+1,a;l>0;)l<=512?(t.$k3.d(c,r,u,s,h,o),s=h+1):(a=s+512-1,t.$k3.d(c,r,u,s,a,o),s=a+1),l=h-s+1;return c},mr:function(i,r,u,f,e){var c,s,h,o;if(u>-1)for(c=this.resolution(),s=this.mm(new t.bh(n.ig.Number.prototype.$type,0),f,e,r,u,c),o=0;o<s.count();o++)h=s.item(o),i.add({__x:f(h),__y:e(h),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},unknownValuePlotting:function(n){return arguments.length===1?(this.g(t.$zr.unknownValuePlottingProperty,n),n):this.c(t.$zr.unknownValuePlottingProperty)},hh:function(n,i,r,u){t.$n0.hh.call(this,n,i,r,u);switch(i){case"UnknownValuePlotting":this.renderSeries(!1);this.gy()}},$type:new n.ig.Type("ScatterLineSeries",t.$n0.$type)},!0);n.ig.util.defType("ScatterLineSeriesView:zs","ScatterBaseView",{init:function(n){this.c8=new t.b6;t.$n1.init.call(this,n)},c8:null,a6:function(){t.$n1.a6.call(this);this.c8.__stroke=this.d().actualBrush();this.c8.z(this.d().thickness())},a7:function(){t.$n1.a7.call(this);var n=this.br();this.c8.__stroke=n;this.c8.z(this.d().thickness()+3)},a1:function(n,i){t.$n1.a1.call(this,n,i);n.c()&&n.q(this.c8)},cy:function(n){t.$n1.cy.call(this,n);this.c8.ak(null)},ah:function(n){t.$n1.ah.call(this,n);var i=new t.me(1,"shape",this.c8);i.tags().add("Main");n.shapes().add(i)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(1);this.d().shadowOffsetY(4);this.d().useSingleShadow(!1)},$type:new n.ig.Type("ScatterLineSeriesView",t.$n1.$type)},!0);n.ig.util.defType("ScatterSplineSeries:zt","ScatterBase",{init:function(){t.$n0.init.call(this);this.y(t.$zt.$type);this.ky=new t.oj;this.k0=new t.oj;this.kx=new t.oj},au:function(){return new t.zu(this)},stiffness:function(n){return arguments.length===1?(this.g(t.$zt.stiffnessProperty,n),n):this.c(t.$zt.stiffnessProperty)},hh:function(n,i,r,u){t.$n0.hh.call(this,n,i,r,u);switch(i){case"Stiffness":this.renderSeries(!1);this.gy()}},lr:function(i,r){var u=this,f,e,o;t.$n0.lr.call(u,i,r);i.o().clear();i.w().clear();var a=r.bw(),h=r.bv(),y=u.resolution()*u.resolution(),s=Math.min(u.k3()!=null?u.k3().count():0,u.k5()!=null?u.k5().count():0),p=new t.iu(a,h,u.ku().d()),w=new t.iu(a,h,u.ku().e()),c=function(n){return u.ku().a().getScaledValue(u.k3().item(n),p)},l=function(n){return u.ku().b().getScaledValue(u.k5().item(n),w)},v=function(){var n=new t.kx(0,h,!1);return n.i(i.o()),n}();for(f=0;f<s;){for(e=f,++f;f<s&&u.ml(c,l,e,f)<y;)++f;s>u.maximumMarkers()?v.j(u.mn(c,l,e,f-1)):(o=new t.n6,o.c({__x:c(e),__y:l(e),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.a(u.bb().item(e)),i.w().containsKey(o.a())||i.w().add(o.a(),o))}s>u.maximumMarkers()&&v.i(null)},mn:function(t,i,r,u){var f;if(r==u)return{__x:t(r),__y:i(r),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};var e=0,o=0,s=u-r+1;for(f=r;f<=u;++f)e+=t(f),o+=i(f);return{__x:e/s,__y:o/s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},ml:function(n,t,i,r){var u=n(r)-n(i),f=t(r)-t(i);return u*u+f*f},gh:function(i,r){t.$n0.gh.call(this,i,r);var u=n.ig.util.cast(t.$zu.$type,r);u.cy(!1)},ly:function(i,r){var u=this,f;u.gh(!1,r);t.$n0.ly.call(u,i,r);u.ls(i);f=n.ig.util.cast(t.$zu.$type,r);f.c8.ak(new t.dx);n.ig.util.cast(t.$dx.$type,f.c8.ak()).b(t.$lb.h(i.o().count(),function(n){return i.o().__inner[n].__x},function(n){return i.o().__inner[n].__y},u.stiffness()))},$type:new n.ig.Type("ScatterSplineSeries",t.$n0.$type)},!0);n.ig.util.defType("ScatterSplineSeriesView:zu","ScatterBaseView",{init:function(n){this.c8=new t.b6;t.$n1.init.call(this,n)},c8:null,a6:function(){t.$n1.a6.call(this);this.c8.__stroke=this.d().actualBrush();this.c8.z(this.d().thickness())},a7:function(){t.$n1.a7.call(this);var n=this.br();this.c8.__stroke=n;this.c8.z(this.d().thickness()+3)},a1:function(n,i){t.$n1.a1.call(this,n,i);n.c()&&n.q(this.c8)},cy:function(n){t.$n1.cy.call(this,n);this.c8.ak(null)},ah:function(n){t.$n1.ah.call(this,n);var i=new t.me(1,"shape",this.c8);i.tags().add("Main");n.shapes().add(i)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(1);this.d().shadowOffsetY(4);this.d().useSingleShadow(!1)},$type:new n.ig.Type("ScatterSplineSeriesView",t.$n1.$type)},!0);n.ig.util.defType("SeriesViewerComponentsForView:tl","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("SeriesViewerComponentsForView",n.ig.$ot)},!0);n.ig.util.defType("SeriesViewerComponentsFromView:fm","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("SeriesViewerComponentsFromView",n.ig.$ot)},!0);n.ig.util.defType("SeriesViewer:be","Control",{_a6:null,a6:function(n){return arguments.length===1?(this._a6=n,n):this._a6},staticInit:function(){t.$be.lj=new t.x(0,0,0,1,1)},init:function(){var i=this;this.as=new t.e3;this.k8=t.$x.empty();this.k7=t.$x.empty();this.au=new t.tl;this.be=!1;this.a3=0;this.bh=!1;this.bc=!1;this.bd=!1;this.bi=!1;this.dz=0;this.bj=!1;this.lh=t.$x.empty();this.ks=null;this.kr=null;this.c3=NaN;this.c1=NaN;this.c2=NaN;this.c0=NaN;this.cz=NaN;this.cx=NaN;this.cy=NaN;this.cw=NaN;this.bg=!1;this.d2=null;this.cj=new t.f0(String,n.ig.$op.$type,0);this.c4=NaN;this.ct=NaN;this.cv=NaN;this.cr=NaN;this.cq=20;this.cp=NaN;this.cu=NaN;this.cm=1;this.cn=0;this.co=0;this.bf=!1;this.dy=0;t.$ak.init.call(this);this.k6=t.$x.empty();this.d4={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};this.cl(t.$bt.now());this.bt(!1);this.bu(!1);this.canvasRenderScheduler(new t.bg);this.ae(new t.bg);t.$be.lj=new t.x(0,0,0,1,1);this.syncSettings(function(){var n=new t.l6;return n.synchronizeHorizontally(!0),n.synchronizeVertically(!0),n}());this.la(t.$x.empty());this.ld(t.$x.empty());this.a6(this.a5());this.hy(this.a6());this.a6().b8();this.bo(this.crosshairVisibility()==0||this.mobileMode());this.a7().thumbnailSizeChanged=n.ig.Delegate.prototype.combine(this.a7().thumbnailSizeChanged,function(){var n,t;for(i.a7().surfaceViewer().isDirty(!0),n=i.series().getEnumerator();n.moveNext();)t=n.current(),t.cl(!0)});this.actualSyncLink(new t.on);this.i6(null,this.actualSyncLink());this.ah(new t.j8(this));this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,function(n,t){i.h4(n,t.propertyName(),t.oldValue(),t.newValue())});this.series().collectionChanged=n.ig.Delegate.prototype.combine(this.series().collectionChanged,this.ir.runOn(this));this.series().collectionResetting=n.ig.Delegate.prototype.combine(this.series().collectionResetting,this.is.runOn(this));this.ap(new t.mm);this.a8(new t.eo(0,1,this.highlightingTransitionDuration()));this.a8().propertyChanged=n.ig.Delegate.prototype.combine(this.a8().propertyChanged,this.gs.runOn(this));this.a6().bf();this.gt()},series:function(){return this.as},as:null,ir:function(n,t){var u,r,f,i;if(t.oldItems()!=null)for(u=t.oldItems().getEnumerator();u.moveNext();)r=u.current(),r.syncLink(null),r.seriesViewer(null),this.ij(r),this.a6().cw(r);if(t.newItems()!=null)for(f=t.newItems().getEnumerator();f.moveNext();)i=f.current(),this.a6().ah(i)||(this.i2(i),this.a6().a8(i),i.syncLink(this.actualSyncLink()),i.seriesViewer(this),i.h1());this.g2();this.hf()},ij:function(i){n.ig.util.cast(t.$aj.$type,i)!==null?i.itemsSource(null):n.ig.util.cast(t.$hb.$type,i)!==null&&i.itemsSource(null);this.removeSpecificDataSource(i.name(),!0)},is:function(){for(var t=this.series().getEnumerator(),n;t.moveNext();)n=t.current(),n.syncLink(null),n.seriesViewer(null),this.ij(n),this.a6().cw(n)},gv:function(n,t,i,r){var f=this.viewportRect(),h=f.width(),c=f.height(),u=h/c,e=n/t,o,s;return isNaN(u)?{width:n,height:t}:((isNaN(e)||i||r||Math.abs(u-e)>.0001)&&(i&&r?n>t?t=n/u:n=t*u:i?t=n/u:n=t*u),t>1&&(o=1/t,t=1,n=n*o),n>1&&(s=1/n,n=1,t=t*s),{width:n,height:t})},br:function(){return!1},_ap:null,ap:function(n){return arguments.length===1?(this._ap=n,n):this._ap},_a8:null,a8:function(n){return arguments.length===1?(this._a8=n,n):this._a8},gs:function(){this.i4(this.a8().transitionProgress())},i4:function(n){var r=this.ap().c(n),i,t,u;for(n==1&&r&&this.a8().intervalMilliseconds()>0&&this.a8().start(),i=this.ap().g(),t=0;t<i.count();t++)u=i.__inner[t],u.hf();r||this.a8().stop()},hideToolTip:function(){this.a6().bu()},kv:function(){return null},k1:function(){return null},getMarkerBrushByIndex:function(){return null},getMarkerOutlineByIndex:function(){return null},_ah:null,ah:function(n){return arguments.length===1?(this._ah=n,n):this._ah},crosshairPoint:function(n){if(arguments.length===1){if(this.d4!=n){var t=this.d4;this.d4=n;this.h8("CrosshairPoint",t,this.d4)}return n}return this.d4},d4:null,bw:function(){return this.a4()==1||this.a4()==2},legend:function(n){return arguments.length===1?(this.g(t.$be.legendProperty,n),n):this.c(t.$be.legendProperty)},animateSeriesWhenAxisRangeChanges:function(n){return arguments.length===1?(this.g(t.$be.animateSeriesWhenAxisRangeChangesProperty,n),n):this.c(t.$be.animateSeriesWhenAxisRangeChangesProperty)},propertyChanged:null,propertyUpdated:null,h8:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},hh:function(){this.hi(this.series())},hi:function(n){for(var u=n.getEnumerator(),r,t,i;u.moveNext();)(r=u.current(),t=r.actualLegend(),t!=null)&&(i=r.legendItem(),i!=null)&&(t.children().contains(i)&&t.children().remove(i),t.children().contains(i)||r.legendItemVisibility()==1||t.av(i,r))},hr:function(i,r,u){this.ib(i,r,n.ig.util.cast(t.$em.$type,u))},hv:function(i,r,u){this.ig(i,r,n.ig.util.cast(t.$em.$type,u))},hs:function(i,r,u){this.ic(i,r,n.ig.util.cast(t.$em.$type,u))},ht:function(i,r,u){this.id(i,r,n.ig.util.cast(t.$m8.$type,u))},hu:function(i,r,u){var f=n.ig.util.cast(t.$m8.$type,u);f!=null&&this.ie(i,r,n.ig.util.cast(t.$m8.$type,u))},hw:function(){},hx:function(){},seriesCursorMouseMove:null,ia:function(n,i){this.seriesCursorMouseMove!=null&&this.bo()&&this.seriesCursorMouseMove(this,new t.tn(this,n,i))},seriesMouseLeftButtonDown:null,id:function(n,i,r){this.seriesMouseLeftButtonDown!=null&&this.seriesMouseLeftButtonDown(this,new t.no(this,n,i,r))},seriesMouseLeftButtonUp:null,ie:function(n,i,r){this.seriesMouseLeftButtonUp!=null&&this.seriesMouseLeftButtonUp(this,new t.no(this,n,i,r))},seriesMouseMove:null,ig:function(n,i,r){this.seriesMouseMove!=null&&this.seriesMouseMove(this,new t.nq(this,n,i,r))},seriesMouseEnter:null,ib:function(n,i,r){this.seriesMouseEnter!=null&&this.seriesMouseEnter(this,new t.nq(this,n,i,r))},seriesMouseLeave:null,ic:function(n,i,r){this.seriesMouseLeave!=null&&this.seriesMouseLeave(this,new t.nq(this,n,i,r))},k8:null,viewportRect:function(){return this.k8},k7:null,effectiveViewport:function(){return this.k7},lc:function(){return t.$x.empty()},i1:function(n){n.fb(this.viewportRect())},windowRect:function(n){return arguments.length===1?(this.g(t.$be.windowRectProperty,n),n):this.c(t.$be.windowRectProperty)},highlightingTransitionDuration:function(n){return arguments.length===1?(this.g(t.$be.highlightingTransitionDurationProperty,n),n):this.c(t.$be.highlightingTransitionDurationProperty)},h3:function(n,t){t.isEmpty()||(this.k8=t,this.k7=this.lc(this.k8),this.a6().dl(this.k8));this.br()&&this.actualSyncLink()!=null&&this.i9(this.actualWindowRect());this.hq(n,t)},au:null,av:function(){return this.au},isPagePanningAllowed:function(n){return arguments.length===1?(this.g(t.$be.isPagePanningAllowedProperty,n),n):this.c(t.$be.isPagePanningAllowedProperty)},isSurfaceInteractionDisabled:function(n){return arguments.length===1?(this.g(t.$be.isSurfaceInteractionDisabledProperty,n),n):this.c(t.$be.isSurfaceInteractionDisabledProperty)},isZoomingHorizontallyEnabled:function(){},isZoomingVerticallyEnabled:function(){},isZoomingEnabled:function(){return this.isZoomingHorizontallyEnabled()||this.isZoomingVerticallyEnabled()},g9:function(){t.$oq.e(this)},g4:function(){t.$oq.c(this)},a4:function(n){if(arguments.length===1){if(this.a4()!=n){this.a3=n;switch(this.a3){case 0:this.a6().c3();this.ip();this.a6().bo();break;case 1:this.a6().c5();this.a6().bu();this.ip();this.a6().bn();break;case 2:this.a6().c5();this.a6().bu();this.ip();this.a6().bp()}}return n}return this.a3},be:!1,a3:null,_la:null,la:function(n){return arguments.length===1?(this._la=n,n):this._la},_le:null,le:function(n){return arguments.length===1?(this._le=n,n):this._le},hk:function(n){this.gg(this.d6(n))},hl:function(){this.gg({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},b9:function(n,i){var r=this.actualWindowRect().left()+this.actualWindowRect().width()*n.__x/this.viewportRect().width(),u=this.actualWindowRect().top()+this.actualWindowRect().height()*n.__y/this.viewportRect().height(),f=1-t.$es.c(i,-.5,.5),e=Math.max(0,r-f*(r-this.actualWindowRect().left())),s=Math.min(1,u+f*(this.actualWindowRect().bottom()-u)),h=Math.min(1,r+f*(this.actualWindowRect().right()-r)),o=Math.max(0,u-f*(u-this.actualWindowRect().top()));return this.i9(new t.x(0,e,o,h-e,s-o)),this.isZoomingEnabled()},ha:function(n){var i=this.actualWindowRect().left()+this.actualWindowRect().width()*n.__x/this.viewportRect().width(),r=this.actualWindowRect().top()+this.actualWindowRect().height()*n.__y/this.viewportRect().height(),u=.7,f=Math.max(0,i-u*(i-this.actualWindowRect().left())),o=Math.min(1,r+u*(this.actualWindowRect().bottom()-r)),s=Math.min(1,i+u*(this.actualWindowRect().right()-i)),e=Math.max(0,r-u*(r-this.actualWindowRect().top()));this.i9(new t.x(0,f,e,s-f,o-e))},_lo:null,lo:function(n){return arguments.length===1?(this._lo=n,n):this._lo},onKeyDown:function(n){if(this.a4()==2&&n==8)return this.a6().ba(),this.a4(0),this.h2(t.$x.empty()),this.windowResponse()==1&&this.i9(this.lo()),!0;if(this.a4()==1&&n==8)return this.a6().ba(),this.a4(0),this.a6().bq(),this.h2(t.$x.empty()),!0;var i=t.$x.empty(),r=!1;switch(n){case 13:r=!0;i=new t.x(0,0,0,1,1);break;case 11:r=!0;i=new t.x(0,this.actualWindowRect().left()-.1*this.actualWindowRect().width(),this.actualWindowRect().top()-.1*this.actualWindowRect().height(),1.2*this.actualWindowRect().width(),1.2*this.actualWindowRect().height());break;case 10:r=!0;i=new t.x(0,this.actualWindowRect().left()+.1*this.actualWindowRect().width(),this.actualWindowRect().top()+.1*this.actualWindowRect().height(),.8*this.actualWindowRect().width(),.8*this.actualWindowRect().height());break;case 14:r=!0;i=new t.x(0,this.actualWindowRect().left()-.1*this.actualWindowRect().width(),this.actualWindowRect().top(),this.actualWindowRect().width(),this.actualWindowRect().height());i.x(i.x()-Math.min(i.left(),0));break;case 16:r=!0;i=new t.x(0,this.actualWindowRect().left()+.1*this.actualWindowRect().width(),this.actualWindowRect().top(),this.actualWindowRect().width(),this.actualWindowRect().height());i.x(i.x()-Math.max(i.right()-1,0));break;case 15:r=!0;i=new t.x(0,this.actualWindowRect().left(),this.actualWindowRect().top()-.1*this.actualWindowRect().height(),this.actualWindowRect().width(),this.actualWindowRect().height());i.y(i.y()-Math.min(i.top(),0));break;case 17:r=!0;i=new t.x(0,this.actualWindowRect().left(),this.actualWindowRect().top()+.1*this.actualWindowRect().height(),this.actualWindowRect().width(),this.actualWindowRect().height());i.y(i.y()-Math.max(i.bottom()-1,0))}return i.isEmpty()||i==this.actualWindowRect()||this.i9(i),r},bh:!1,_bo:!1,bo:function(n){return arguments.length===1?(this._bo=n,n):this._bo},bc:!1,bm:function(){return this.bc},cs:0,hc:function(n){n.__x>=0&&n.__y>=0&&n.__x<=this.viewportRect().width()&&n.__y<=this.viewportRect().height()?this.ix(n):this.gq()},ix:function(n){var r,t,i;if(!this.bu()&&!this.bt()&&this.bc&&this.bo()){for(r=this.viewportRect().height()>this.viewportRect().width(),this.a6().bd(r),t=this.series().getEnumerator();t.moveNext();)i=t.current(),i.__visibility==0&&i.hu(n,this.a6().a5.runOn(this.a6()));this.a6().c8()}},dragCrosshairActivated:function(){return this.bc},_tooltipStyle:null,tooltipStyle:function(n){return arguments.length===1?(this._tooltipStyle=n,n):this._tooltipStyle},iw:function(n){(this.bo()||this.isDragCrosshairEnabled()||this.bs())&&(this.bc=!0,this.la(new t.x(0,n.__x,n.__y,0,0)),this.le(new t.x(0,n.__x,n.__y,0,0)),this.a4(0),this.gg(this.d6(n)))},hp:function(n){this.iw(n);this.ix(n);this.ip()},hd:function(n,t){this.bc||this.iy(n,t)},hb:function(){this.ld(t.$x.empty());this.gq()},ca:function(){return this.bh},ho:function(){this.cs=1;this.bc=!1;this.a6().bt();this.a6().bq();this.a6().bs();this.gg({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.a6().br();this.a6().bv();this.a6().bu();this.a4(0);this.bd=!0;this.bh=!0},hn:function(n){this.a6().br();this.a6().bv();this.a6().ak()?this.gk(n):(this.gm(n),this.cs=n)},hj:function(n){this.la(new t.x(0,n.__x,n.__y,0,0));this.le(new t.x(0,n.__x,n.__y,0,0))},gl:function(n){var i=this.actualWindowRect().width(),r=this.actualWindowRect().height(),e=this.actualWindowRect().left()+i/2,o=this.actualWindowRect().top()+r/2,u,f;i=i/n;r=r/n;u=e-i/2;f=o-r/2;this.i9(new t.x(0,u,f,i,r))},hm:function(n){this.a6().ak()?this.gk(n):this.gm(n);this.la(t.$x.empty());this.bh=!1},he:function(){this.bh=!1;this.la(t.$x.empty());this.gq()},hg:function(n){this.a6().dg(n.a())},gq:function(){this.bc&&(this.gg({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.a6().bs());this.bc=!1},gk:function(i){var r=1/i,u={__x:this.windowRect().x()+this.windowRect().width()/2,__y:this.windowRect().y()+this.windowRect().height()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:this.windowRect().x()-u.__x,__y:this.windowRect().y()-u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},e=new t.x(0,f.__x*r+u.__x,f.__y*r+u.__y,this.windowRect().width()*r,this.windowRect().height()*r);this.i9(e)},gm:function(i){var f=i-this.cs;if(f!=0){var e=.03,r=f<0?1+e:1-e,u={__x:this.windowRect().x()+this.windowRect().width()/2,__y:this.windowRect().y()+this.windowRect().height()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o={__x:this.windowRect().x()-u.__x,__y:this.windowRect().y()-u.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},s=new t.x(0,o.__x*r+u.__x,o.__y*r+u.__y,this.windowRect().width()*r,this.windowRect().height()*r);this.i9(s)}},h0:function(n){this.h2(t.$x.empty());this.i9(n)},g7:function(n,t){this.bh||(this.bd=!1);this.iy(n,t)},a2:function(n){return this.defaultInteraction()!=3?this.defaultInteraction():this.a6().n(n)},iy:function(i,r){var u,f=this.a2(r);if(this.a6().dr()==0)switch(f){case 1:u=this.isZoomingEnabled()?f:0;break;default:u=f}else u=this.a6().dr()==this.dragModifier()?1:this.a6().dr()==this.panModifier()?2:0;switch(u){case 1:case 2:this.a6().bl();this.a6().cq()}this.a4(u);switch(this.a4()){case 1:this.gg({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.la(new t.x(0,i.__x,i.__y,0,0));this.le(new t.x(0,i.__x,i.__y,0,0));this.ld(new t.x(0,i.__x,i.__y,0,0));this.a6().c6();this.a6().dd(this.la());this.h2(t.$x.empty());break;case 2:this.la(new t.x(0,i.__x,i.__y,0,0));this.ld(new t.x(0,i.__x,i.__y,0,0))}this.lo(this.actualWindowRect())},_ld:null,ld:function(n){return arguments.length===1?(this._ld=n,n):this._ld},ce:function(){return this.a4()==2},cf:function(n){return this.windowResponse()==1||n},cd:function(){return this.a4()==1},g6:function(i,r){var u,s;this.la().isEmpty()&&r&&this.iy(i,r);u=2;r&&(u=10);var f=!1,o=new t.x(2,{__x:this.la().x(),__y:this.la().y(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i),e=new t.x(0,0,0,0,0);if(this.ld().isEmpty()||(e=new t.x(2,{__x:this.ld().x(),__y:this.ld().y(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i)),e.width()>u&&e.height()>u&&(f=!0),this.bh||f&&(this.bd=!1),this.bh||!this.bc&&r||this.gg(this.d6(i)),this.cd()&&(f?(s=this.ll(o),this.h2(s)):this.h2(t.$x.empty()),this.a6().dd(o)),this.ce()){var h=this.viewportRect(),l=this.actualWindowRect().left()+this.actualWindowRect().width()*(this.la().x()-i.__x)/h.width(),a=this.actualWindowRect().top()+this.actualWindowRect().height()*(this.la().y()-i.__y)/h.height(),c=new t.x(0,l,a,this.actualWindowRect().width(),this.actualWindowRect().height());this.cf(r)?(this.h2(t.$x.empty()),this.i9(c),this.la(new t.x(3,i,new t.y(0,0))),this.le(new t.x(3,i,new t.y(0,0)))):this.h2(c)}this.le(new t.x(3,i,new t.y(0,0)));this.a6().bc(i)},bd:!1,bi:!1,g5:function(i,r){var u=2,e,f,o,s;if(r&&(u=10),!this.bd&&(e=!1,f=new t.x(2,{__x:this.la().x(),__y:this.la().y(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i),f.width()>u&&f.height()>u&&(e=!0),this.a4()==1&&(this.a6().bq(),e&&this.i9(this.ll(f))),this.a4()==2)){var h=this.viewportRect(),c=this.actualWindowRect().left()+this.actualWindowRect().width()*(this.la().x()-i.__x)/h.width(),l=this.actualWindowRect().top()+this.actualWindowRect().height()*(this.la().y()-i.__y)/h.height();this.i9(new t.x(0,c,l,this.actualWindowRect().width(),this.actualWindowRect().height()))}o=!1;s=new t.x(2,{__x:this.ld().x(),__y:this.ld().y(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i);(s.width()>u||s.height()>u)&&(o=!0);o&&(this.bi=!0);this.a4(0);this.h2(t.$x.empty());this.a6().be();this.bi=!1;this.a6().br();this.a6().bv();r&&(this.a6().bu(),this.a6().br(),this.a6().bv(),this.a6().bs())},i7:function(n,i){i.propertyName()=="SyncChannel"&&t.$oq.b(this,i.oldValue(),i.newValue())},i6:function(t,i){var r,u;for(t!=null&&(t.y().remove(this),t.propertyUpdated=n.ig.Delegate.prototype.remove(t.propertyUpdated,this.propertyUpdated)),i!=null&&(i.y().add(this),i.propertyUpdated=n.ig.Delegate.prototype.combine(i.propertyUpdated,this.propertyUpdated)),r=this.series().getEnumerator();r.moveNext();)u=r.current(),u.syncLink(this.actualSyncLink()),u.seriesViewer(this)},gg:function(n){this.actualSyncLink().ah(this,n)},i9:function(n){this.actualSyncLink().al(this,n)},h2:function(n){this.actualSyncLink().ai(this,n)},h1:function(n){this.windowResponse()==1?(this.h2(t.$x.empty()),this.i9(n)):this.h2(n)},b0:function(){return this.actualSyncLink()!=null},ck:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:null,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$state=this.$this.actualSyncLink()==null?2:4;break;case 2:return this.$state=-2,!1;case 3:this.$state=4;break;case 4:this.$state=5;break;case 5:this.$b=this.$this.actualSyncLink().charts().getEnumerator();this.$state=8;break;case 6:return this.$a=this.$b.current(),this.$current=this.$a,this.$state=7,!0;case 7:this.$state=8;break;case 8:this.$state=this.$b.moveNext()?6:9;break;case 9:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(t.$be.$type,r)},d6:function(t){var i=this.viewportRect(),r=this.actualWindowRect().left()+this.actualWindowRect().width()*t.__x/i.width(),u=this.actualWindowRect().top()+this.actualWindowRect().height()*t.__y/i.height();return{__x:r,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},ll:function(n){var i=this.viewportRect(),r=this.actualWindowRect().left()+this.actualWindowRect().width()*n.left()/i.width(),u=this.actualWindowRect().top()+this.actualWindowRect().height()*n.top()/i.height(),f=this.actualWindowRect().left()+this.actualWindowRect().width()*n.right()/i.width(),e=this.actualWindowRect().top()+this.actualWindowRect().height()*n.bottom()/i.height();return new t.x(0,r,u,f-r,e-u)},windowRectChanged:null,ih:function(n,i){this.windowRectChanged!=null&&n!=i&&this.windowRectChanged(this,new t.fs(n,i))},hz:function(n,t){this.ih(n,t)},cb:function(n,t){return n.width()!=t.width()||n.height()!=t.height()||n.x()!=t.x()||n.y()!=t.y()?!0:!1},actualWindowRectChanged:null,h6:function(n,i){this.actualWindowRectChanged!=null&&this.cb(n,i)&&this.actualWindowRectChanged(this,new t.fs(n,i))},resetZoom:function(){this.a6().c0()},gridAreaRectChanged:null,h7:function(n,i){this.gridAreaRectChanged!=null&&n!=i&&this.gridAreaRectChanged(this,new t.fs(n,i))},bx:function(){return!1},hq:function(n,t){this.h7(n,t);this.bx()&&(n==null||n.isEmpty()||n.width()==0||n.height()==0)?this.i9(this.windowRect()):this.gt()},windowResponse:function(n){return arguments.length===1?(this.g(t.$be.windowResponseProperty,n),n):this.c(t.$be.windowResponseProperty)},_bp:!1,bp:function(n){return arguments.length===1?(this._bp=n,n):this._bp},windowRectMinWidth:function(n){return arguments.length===1?(this.g(t.$be.windowRectMinWidthProperty,n),n):this.c(t.$be.windowRectMinWidthProperty)},_syncChannel:null,syncChannel:function(n){return arguments.length===1?(this._syncChannel=n,n):this._syncChannel},aw:null,actualSyncLink:function(n){if(arguments.length===1){var t=this.aw;return this.aw=n,this.h8("ActualSyncLink",t,this.aw),n}return this.aw},gu:function(){this.a6().c1()},overviewPlusDetailPaneVisibility:function(n){return arguments.length===1?(this.g(t.$be.overviewPlusDetailPaneVisibilityProperty,n),n):this.c(t.$be.overviewPlusDetailPaneVisibilityProperty)},a7:function(){return this.a6().k().a()},crosshairVisibility:function(n){return arguments.length===1?(this.g(t.$be.crosshairVisibilityProperty,n),n):this.c(t.$be.crosshairVisibilityProperty)},isDragCrosshairEnabled:function(n){return arguments.length===1?(this.g(t.$be.isDragCrosshairEnabledProperty,n),n):this.c(t.$be.isDragCrosshairEnabledProperty)},plotAreaBorderBrush:function(n){return arguments.length===1?(this.g(t.$be.plotAreaBorderBrushProperty,n),n):this.c(t.$be.plotAreaBorderBrushProperty)},actualPlotAreaBorderBrush:function(n){return arguments.length===1?(this.g(t.$be.actualPlotAreaBorderBrushProperty,n),n):this.c(t.$be.actualPlotAreaBorderBrushProperty)},plotAreaBackground:function(n){return arguments.length===1?(this.g(t.$be.plotAreaBackgroundProperty,n),n):this.c(t.$be.plotAreaBackgroundProperty)},plotAreaMinWidth:function(n){return arguments.length===1?(this.g(t.$be.plotAreaMinWidthProperty,n),n):this.c(t.$be.plotAreaMinWidthProperty)},plotAreaMinHeight:function(n){return arguments.length===1?(this.g(t.$be.plotAreaMinHeightProperty,n),n):this.c(t.$be.plotAreaMinHeightProperty)},bn:function(){return this.a4()==0&&!this.bh&&!this.bi},bk:function(){var t,n;if(this.actualSyncLink()!=null&&this.actualSyncLink().charts().count()>0){if(t=!0,t=this.bn(),!t)return!1;for(n=0;n<this.actualSyncLink().charts().count();n++)if(!this.actualSyncLink().charts().item(n).bn())return!1;return!0}return this.bn()},ip:function(){var i=this.crosshairPoint(),s=i,h=this.bk(),r,f,e,t,u,o;for(h||(s={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r=0;r<this.series().count();r++)f=this.series().__inner[r],f.isAnnotationLayer()&&f.moveCursorPoint(s);e=this.a4()==0&&!this.bt()&&(this.bo()||this.bc)&&!this.bh&&!this.bi;t=this.viewportRect();!e||isNaN(i.__x)||t.isEmpty()?this.a6().bv():(u=t.width()*(i.__x-this.actualWindowRect().left())/this.actualWindowRect().width(),this.a6().dj(t.left()+u,t.top(),t.left()+u,t.bottom()),this.a6().da(),this.a6().df(u));!e||isNaN(i.__y)||t.isEmpty()?this.a6().br():(o=t.height()*(i.__y-this.actualWindowRect().top())/this.actualWindowRect().height(),this.a6().de(t.left(),t.top()+o,t.right(),t.top()+o),this.a6().c7())},dz:0,notifyCrosshairUpdate:function(){},i8:function(n,i){var r=this.windowRectMinWidth();this.windowRect(new t.x(0,this.actualWindowPositionHorizontal(),this.actualWindowPositionVertical(),t.$es.c(n,r,1),t.$es.c(i,r,1)))},getActualWindowScaleHorizontal:function(){return 1},getActualWindowScaleVertical:function(){return 1},h4:function(i,r,u,f){switch(r){case"Title":this.a6().cl();break;case"Subtitle":this.a6().cl();break;case"TitleHorizontalAlignment":this.a6().cj(u,f);this.a6().cl();break;case"SubtitleHorizontalAlignment":this.a6().cg(u,f);this.a6().cl();break;case"TitleTextStyle":case"TitleTextColor":case"SubtitleTextStyle":case"SubtitleTextColor":case"TitleTopMargin":case"TitleLeftMargin":case"TitleRightMargin":case"TitleBottomMargin":case"SubtitleTopMargin":case"SubtitleLeftMargin":case"SubtitleRightMargin":case"SubtitleBottomMargin":this.a6().cl();break;case"PixelScalingRatio":isNaN(this.pixelScalingRatio())||this.pixelScalingRatio()<=0?this.actualPixelScalingRatio(1):this.actualPixelScalingRatio(this.pixelScalingRatio());break;case"ActualPixelScalingRatio":this.a6().cp();break;case"IsPagePanningAllowed":this.a6().bw();break;case"ActualSyncLink":this.i6(n.ig.util.cast(t.$on.$type,u),n.ig.util.cast(t.$on.$type,f));break;case"CrosshairVisibility":this.crosshairVisibility()!=1?this.bo(!0):this.bo(this.mobileMode());this.ip();break;case"CrosshairPoint":this.ip();this.notifyCrosshairUpdate();break;case"WindowRect":this.actualSyncLink()!=null&&(this.dz++,this.i9(f),this.dz--);this.windowRect().equals(u)||this.dz!=0||this.hz(u,this.windowRect());this.gt();break;case"WindowPositionHorizontal":this.actualWindowPositionHorizontal(this.windowPositionHorizontal());break;case"WindowPositionVertical":this.actualWindowPositionVertical(this.windowPositionVertical());break;case"ActualWindowPositionVertical":case"ActualWindowPositionHorizontal":this.cg()||this.i8(this.getActualWindowScaleHorizontal(),this.getActualWindowScaleVertical());break;case"IsSurfaceInteractionDisabled":this.a6().b9();break;case"HighlightingTransitionDuration":this.a8().intervalMilliseconds(this.highlightingTransitionDuration());break;case"OverviewPlusDetailPaneVisibility":this.mobileMode()?(this.bj=this.overviewPlusDetailPaneVisibility()==0,this.a7().view().s(this.bj),this.gu()):(this.bj=this.overviewPlusDetailPaneVisibility()==0,this.a7().view().s(!1),this.a6().co(),this.a6().dh(),this.gu());break;case"ActualWindowRect":f.equals(u)||this.gc();f.width()==1&&f.height()==1&&u.isEmpty()&&this.ci(!0);this.h6(u,f);break;case"PlotAreaBackground":this.a6().ce(f)}},i5:function(){this.a7()!=null&&this.a7().isZoomable(this.isZoomingEnabled())},bj:!1,_cg:!1,cg:function(n){return arguments.length===1?(this._cg=n,n):this._cg},defaultInteraction:function(n){return arguments.length===1?(this.g(t.$be.defaultInteractionProperty,n),n):this.c(t.$be.defaultInteractionProperty)},dragModifier:function(n){return arguments.length===1?(this.g(t.$be.dragModifierProperty,n),n):this.c(t.$be.dragModifierProperty)},panModifier:function(n){return arguments.length===1?(this.g(t.$be.panModifierProperty,n),n):this.c(t.$be.panModifierProperty)},lh:null,previewRect:function(n){if(arguments.length===1){var t=this.lh;return this.lh=n,this.lh.isEmpty()?this.a6().bt():(this.a6().di(this.viewportRect(),this.lk(this.previewRect())),this.a6().c9(),this.h8("PreviewRect",t,this.lh)),n}return this.lh},_cl:null,cl:function(n){return arguments.length===1?(this._cl=n,n):this._cl},_ci:!1,ci:function(n){return arguments.length===1?(this._ci=n,n):this._ci},i0:function(){this.actualWindowPositionHorizontal(this.actualWindowRect().x());this.actualWindowPositionVertical(this.actualWindowRect().y())},gc:function(){this.ci(!1);this.cl(t.$bt.now());this.ap().o();this.a8().animationActive()&&this.a8().stop();var n=this.cg();this.cg(!0);this.i0();this.cg(n);this.a6().bu();this.a6().dk(this.actualWindowRect())},windowPositionHorizontal:function(n){return arguments.length===1?(this.g(t.$be.windowPositionHorizontalProperty,n),n):this.c(t.$be.windowPositionHorizontalProperty)},windowPositionVertical:function(n){return arguments.length===1?(this.g(t.$be.windowPositionVerticalProperty,n),n):this.c(t.$be.windowPositionVerticalProperty)},lk:function(n){if(this.viewportRect().isEmpty())return t.$x.empty();var i=this.viewportRect(),r=i.left()+i.width()*(n.left()-this.actualWindowRect().left())/this.actualWindowRect().width(),u=i.top()+i.height()*(n.top()-this.actualWindowRect().top())/this.actualWindowRect().height(),f=i.left()+i.width()*(n.right()-this.actualWindowRect().left())/this.actualWindowRect().width(),e=i.top()+i.height()*(n.bottom()-this.actualWindowRect().top())/this.actualWindowRect().height();return new t.x(0,r,u,f-r,e-u)},refreshCompleted:null,h9:function(){this.refreshCompleted!=null&&this.refreshCompleted(this,new t.en)},a5:function(){},hy:function(){this.i5()},crosshairLineStyle:function(n){return arguments.length===1?(this.g(t.$be.crosshairLineStyleProperty,n),n):this.c(t.$be.crosshairLineStyleProperty)},previewPathStyle:function(n){return arguments.length===1?(this.g(t.$be.previewPathStyleProperty,n),n):this.c(t.$be.previewPathStyleProperty)},zoombarStyle:function(n){return arguments.length===1?(this.g(t.$be.zoombarStyleProperty,n),n):this.c(t.$be.zoombarStyleProperty)},circleMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.circleMarkerTemplateProperty,n),n):this.c(t.$be.circleMarkerTemplateProperty)},triangleMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.triangleMarkerTemplateProperty,n),n):this.c(t.$be.triangleMarkerTemplateProperty)},pyramidMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.pyramidMarkerTemplateProperty,n),n):this.c(t.$be.pyramidMarkerTemplateProperty)},squareMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.squareMarkerTemplateProperty,n),n):this.c(t.$be.squareMarkerTemplateProperty)},diamondMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.diamondMarkerTemplateProperty,n),n):this.c(t.$be.diamondMarkerTemplateProperty)},pentagonMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.pentagonMarkerTemplateProperty,n),n):this.c(t.$be.pentagonMarkerTemplateProperty)},hexagonMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.hexagonMarkerTemplateProperty,n),n):this.c(t.$be.hexagonMarkerTemplateProperty)},tetragramMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.tetragramMarkerTemplateProperty,n),n):this.c(t.$be.tetragramMarkerTemplateProperty)},pentagramMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.pentagramMarkerTemplateProperty,n),n):this.c(t.$be.pentagramMarkerTemplateProperty)},hexagramMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$be.hexagramMarkerTemplateProperty,n),n):this.c(t.$be.hexagramMarkerTemplateProperty)},title:function(n){return arguments.length===1?(this.g(t.$be.titleProperty,n),n):this.c(t.$be.titleProperty)},titleHorizontalAlignment:function(n){return arguments.length===1?(this.g(t.$be.titleHorizontalAlignmentProperty,n),n):this.c(t.$be.titleHorizontalAlignmentProperty)},subtitleHorizontalAlignment:function(n){return arguments.length===1?(this.g(t.$be.subtitleHorizontalAlignmentProperty,n),n):this.c(t.$be.subtitleHorizontalAlignmentProperty)},d8:null,titleTextStyle:function(n){if(arguments.length===1){var t=this.d8;return this.d8=n,this.h8("TitleTextStyle",t,n),n}return this.d8},d7:null,subtitleTextStyle:function(n){if(arguments.length===1){var t=this.d7;return this.d7=n,this.h8("SubtitleTextStyle",t,n),n}return this.d7},ks:null,titleTextColor:function(n){if(arguments.length===1){var t=this.ks;return this.ks=n,this.h8("TitleTextColor",t,n),n}return this.ks},kr:null,subtitleTextColor:function(n){if(arguments.length===1){var t=this.kr;return this.kr=n,this.h8("SubtitleTextColor",t,n),n}return this.kr},c3:0,titleTopMargin:function(n){if(arguments.length===1){var t=this.c3;return this.c3=n,this.h8("TitleTopMargin",t,n),n}return this.c3},c1:0,titleLeftMargin:function(n){if(arguments.length===1){var t=this.c1;return this.c1=n,this.h8("TitleLeftMargin",t,n),n}return this.c1},c2:0,titleRightMargin:function(n){if(arguments.length===1){var t=this.c2;return this.c2=n,this.h8("TitleRightMargin",t,n),n}return this.c2},c0:0,titleBottomMargin:function(n){if(arguments.length===1){var t=this.c0;return this.c0=n,this.h8("TitleBottomMargin",t,n),n}return this.c0},cz:0,subtitleTopMargin:function(n){if(arguments.length===1){var t=this.cz;return this.cz=n,this.h8("SubtitleTopMargin",t,n),n}return this.cz},cx:0,subtitleLeftMargin:function(n){if(arguments.length===1){var t=this.cx;return this.cx=n,this.h8("SubtitleLeftMargin",t,n),n}return this.cx},cy:0,subtitleRightMargin:function(n){if(arguments.length===1){var t=this.cy;return this.cy=n,this.h8("SubtitleRightMargin",t,n),n}return this.cy},cw:0,subtitleBottomMargin:function(n){if(arguments.length===1){var t=this.cw;return this.cw=n,this.h8("SubtitleBottomMargin",t,n),n}return this.cw},subtitle:function(n){return arguments.length===1?(this.g(t.$be.subtitleProperty,n),n):this.c(t.$be.subtitleProperty)},lt:function(){return this.a6().ea()},lu:function(){return this.a6().eb()},af:function(n){return this.a6().c(n)},ag:function(n){return this.a6().d(n)},ky:function(){},es:function(){},ku:function(){},_tooltipTemplate:null,tooltipTemplate:function(n){return arguments.length===1?(this._tooltipTemplate=n,n):this._tooltipTemplate},provideContainer:function(n){this.a6().b5(n)},onContainerResized:function(n,t){this.a6().b6(n,t)},notifyContainerResized:function(){this.a6().b1()},getContainerRect:function(){return this.a6().d3()},ensureCorrectSize:function(){this.a6().bh()},getContainerOffsets:function(){return this.a6().d9()},er:function(){return this.a6().a3()},eq:function(){return this.a6().a0()},kw:function(){return this.a6().ds()},kx:function(){return this.a6().dv()},attachSeries:function(n){this.a6().a8(n)},removeSeries:function(n){this.a6().cw(n)},_canvasRenderScheduler:null,canvasRenderScheduler:function(n){return arguments.length===1?(this._canvasRenderScheduler=n,n):this._canvasRenderScheduler},_ae:null,ae:function(n){return arguments.length===1?(this._ae=n,n):this._ae},bg:!1,mobileMode:function(n){if(arguments.length===1){var t=this.bg;return this.bg=n,t!=this.bg&&this.a6().by(this.bg),n}return this.bg},_syncSettings:null,syncSettings:function(n){return arguments.length===1?(this._syncSettings=n,n):this._syncSettings},addTooltipToView:function(n){this.a6().a6(n)},im:function(n){this.a6().cx(n)},notifySetItem:function(n,i,r,u){n.dataView&&n.dataSource&&(n=n.dataView());var f=this.actualSyncLink().peekItemsSource(n);f!=null&&f.handleCollectionChanged(new t.e7(2,2,u,r,i))},notifyClearItems:function(n){n.dataView&&n.dataSource&&(n=n.dataView());var i=this.actualSyncLink().peekItemsSource(n);i!=null&&i.handleCollectionChanged(new t.e7(0,4))},notifyInsertItem:function(n,i,r){n.dataView&&n.dataSource&&(n=n.dataView());var u=this.actualSyncLink().peekItemsSource(n);u!=null&&u.handleCollectionChanged(new t.e7(1,0,r,i))},notifyRemoveItem:function(n,i,r){n.dataView&&n.dataSource&&(n=n.dataView());var u=this.actualSyncLink().peekItemsSource(n);u!=null&&u.handleCollectionChanged(new t.e7(1,1,r,i))},d2:null,cj:null,_manageDataSources:!1,manageDataSources:function(n){return arguments.length===1?(this._manageDataSources=n,n):this._manageDataSources},destroy:function(){for(var n,i=new t.bh(t.$aj.$type,0),r=0;r<this.series().count();r++)i.add(this.series().__inner[r]);for(n=0;n<i.count();n++)i.__inner[n].view()!=null&&i.__inner[n].view().af(),this.series().remove(i.__inner[n]),this.removeSpecificDataSource(i.__inner[n].name(),!0),i.__inner[n].itemsSource(null),i.__inner[n].provideContext(null,null);this.gj();this.removeWidgetLevelDataSource();this.a6().b5(null)},gj:function(){},setWidgetLevelDataSource:function(n){n.dataView&&n.dataSource&&(n=n.dataView());this.d2=n;this.i3()},removeWidgetLevelDataSource:function(){this.d2=null;this.i3()},setSpecificDataSource:function(n,t){t.dataView&&t.dataSource&&(t=t.dataView());this.cj.containsKey(n)?this.cj.item(n,t):this.cj.add(n,t);this.i3()},removeSpecificDataSource:function(n,t){this.cj.containsKey(n)&&this.cj.remove(n);t||this.i3()},it:function(n,t){n.itemsSource()!=t&&n.itemsSource(t)},i2:function(i){var u,e,r,f;this.manageDataSources()&&(n.ig.util.cast(t.$aj.$type,i)!==null&&(u=i,this.cj.containsKey(u.name())?(e=this.cj.item(u.name()),this.it(u,e)):this.it(u,this.d2)),n.ig.util.cast(t.$hb.$type,i)!==null&&(r=i,this.cj.containsKey(r.name())?(f=this.cj.item(r.name()),r.itemsSource()!=f&&r.itemsSource(f)):r.itemsSource()!=this.d2&&r.itemsSource(this.d2)))},i3:function(){var n,t;if(this.manageDataSources())for(n=this.series().getEnumerator();n.moveNext();)t=n.current(),this.i2(t)},c4:0,topMargin:function(n){return arguments.length===1?(this.c4=n,this.gu(),n):this.c4},ct:0,leftMargin:function(n){return arguments.length===1?(this.ct=n,this.gu(),n):this.ct},cv:0,rightMargin:function(n){return arguments.length===1?(this.cv=n,this.gu(),n):this.cv},cr:0,bottomMargin:function(n){return arguments.length===1?(this.cr=n,this.gu(),n):this.cr},cq:0,autoMarginWidth:function(n){return arguments.length===1?(this.cq=n,this.gu(),n):this.cq},cp:0,autoMarginHeight:function(n){return arguments.length===1?(this.cp=n,this.gu(),n):this.cp},shouldAddAutoMargins:function(){return!1},cu:0,pixelScalingRatio:function(n){if(arguments.length===1){var t=this.cu;return this.cu=n,this.h8("PixelScalingRatio",t,this.cu),n}return this.cu},cm:0,actualPixelScalingRatio:function(n){if(arguments.length===1){var t=this.cm;return this.cm=n,this.h8("ActualPixelScalingRatio",t,this.cm),n}return this.cm},getCoercionMethod:function(n,i){var r=new t.ln,u;if(r.b(n),r.a(null),u=t.$be.parseMemberPath(n),u.b()==null)return r;if(i!=null){var f=i,e=u.b(),o=null;typeof f[e]!="undefined"&&(o=f[e]);r.b(u.a());r.a(o)}return r},parseMemberPath:function(n){var i=n.split("!");return i.length==2?new t.ed(String,String,i[0],i[1]):new t.ed(String,String,n,null)},overviewPlusDetailPaneBackgroundImageUri:function(n){return arguments.length===1?(this.a7().view().ac(n),n):this.a7().view().ac()},k6:null,actualWindowRect:function(n){var t,i;return arguments.length===1?(t=this.k6!=n,t&&(i=this.k6,this.k6=n,this.h8("ActualWindowRect",i,n)),n):this.k6},gt:function(){this.actualWindowRect(this.lb())},lb:function(){return new t.x(0,Math.min(1,Math.max(0,this.windowRect().left())),Math.min(1,Math.max(0,this.windowRect().top())),Math.min(1,Math.max(0,this.windowRect().width())),Math.min(1,Math.max(0,this.windowRect().height())))},cn:0,actualWindowPositionHorizontal:function(n){if(arguments.length===1){var t=this.cn;return this.cn=n,this.h8("ActualWindowPositionHorizontal",t,this.cn),n}return this.cn},co:0,actualWindowPositionVertical:function(n){if(arguments.length===1){var t=this.co;return this.co=n,this.h8("ActualWindowPositionVertical",t,this.co),n}return this.co},g3:function(){this.bj&&(this.a7().surfaceViewer().isDirty(!0),this.a7().refresh(!1))},g2:function(){this.bj&&(this.a7().surfaceViewer().isDirty(!0),this.a7().refresh(!1))},flush:function(){this.ah().u();this.a6().bi();this.ah().u();this.canvasRenderScheduler().f();this.ci(!0)},useFixedAspectZoom:function(){return!1},jk:null,ai:null,ii:function(n,t){this.jk!=null&&(this.iz(this.jk),this.jk=null,this.ai=null);this.jk=n;this.ai=this.ah().i(2,n,t)},iz:function(n){this.ah().y(2,n);this.jk=null;this.ai=null},gh:function(){this.ah().x(2,this.jk,this.ai,!1)},_bt:!1,bt:function(n){return arguments.length===1?(this._bt=n,n):this._bt},_bu:!1,bu:function(n){return arguments.length===1?(this._bu=n,n):this._bu},_bs:!1,bs:function(n){return arguments.length===1?(this._bs=n,n):this._bs},hf:function(){for(var n,i=!1,r=!1,u=!1,t=0;t<this.series().count();t++)n=this.series().__inner[t],n.isDefaultCrosshairBehaviorDisabled()&&(i=!0),n.isDefaultTooltipBehaviorDisabled()&&(r=!0),n.isAnnotationLayer()&&(u=!0);this.bt(i);this.bu(r);this.bs(u)},go:function(n){this.a6().bk(n)},bf:!1,isThumbnailRequired:function(){return this.bj},gf:function(){this.a6().a9()},b5:function(){return this.a6().af()},dy:0,d0:function(){var n=this.dy;return this.dy++,n},$type:new n.ig.Type("SeriesViewer",t.$ak.$type,[t.$a8.$type])},!0);n.ig.util.defType("XamDataChart:bd","SeriesViewer",{staticInit:function(){t.$bd.mh=-Number.MAX_VALUE;t.$bd.mg=Number.MAX_VALUE},mk:function(i){var o=this,f,e,r,u;if(i.seriesViewer()==null||!i.isIndexed()||(f=t.$j3.al(i),f.count$1(t.$aj.$type)==0))return-1;if(e=f.max$1(t.$aj.$type,function(n){return n.index()})+1,n.ig.util.cast(t.$ka.$type,i)!==null||n.ig.util.cast(t.$sd.$type,i)!==null){if(r=n.ig.util.cast(t.$ka.$type,i)!==null?n.ig.util.cast(t.$ka.$type,i).parentSeries():n.ig.util.cast(t.$sd.$type,i).parentSeries(),u=n.ig.util.cast(t.$kc.$type,i),r.index()==-1||r.mt()==null||u==null||r.mt().f().indexOf(u)==-1)return-1;e=r.index()+r.mt().f().indexOf(u)}return e},init:function(){this.mc=1;this.md=1;this.l1=new t.e9;t.$be.init.call(this);this.y(t.$bd.$type);this.axes().collectionChanged=n.ig.Delegate.prototype.combine(this.axes().collectionChanged,this.m6.runOn(this));this.axes().collectionResetting=n.ig.Delegate.prototype.combine(this.axes().collectionResetting,this.m7.runOn(this))},h4:function(n,i,r,u){var f,s,e,h,o,c;t.$be.h4.call(this,n,i,r,u);switch(i){case"WindowScaleHorizontal":this.actualWindowScaleHorizontal(this.windowScaleHorizontal());break;case"WindowScaleVertical":this.actualWindowScaleVertical(this.windowScaleVertical());break;case"ActualWindowScaleHorizontal":case"ActualWindowScaleVertical":this.cg()||this.i8(this.getActualWindowScaleHorizontal(),this.getActualWindowScaleVertical());break;case"GridMode":for(this.a6().ei(u),f=this.axes().getEnumerator();f.moveNext();)s=f.current(),s.renderAxis();break;case"HorizontalZoomable":case"VerticalZoomable":this.i5();break;case"AlignsGridLinesToPixels":if(r!=u)for(e=this.axes().getEnumerator();e.moveNext();)h=e.current(),h.renderAxis();break;case"DefaultAxisStroke":case"DefaultAxisMajorStroke":case"DefaultAxisMinorStroke":for(o=this.axes().getEnumerator();o.moveNext();)c=o.current(),c.dx()}},isSquare:function(n){return arguments.length===1?(this.g(t.$bd.isSquareProperty,n),n):this.c(t.$bd.isSquareProperty)},getActualWindowScaleHorizontal:function(){return this.actualWindowScaleHorizontal()},getActualWindowScaleVertical:function(){return this.actualWindowScaleVertical()},i0:function(){t.$be.i0.call(this);this.actualWindowScaleHorizontal(this.actualWindowRect().width());this.actualWindowScaleVertical(this.actualWindowRect().height())},windowScaleHorizontal:function(n){return arguments.length===1?(this.g(t.$bd.windowScaleHorizontalProperty,n),n):this.c(t.$bd.windowScaleHorizontalProperty)},windowScaleVertical:function(n){return arguments.length===1?(this.g(t.$bd.windowScaleVerticalProperty,n),n):this.c(t.$bd.windowScaleVerticalProperty)},mc:0,actualWindowScaleHorizontal:function(n){if(arguments.length===1){var t=this.mc;return this.mc=n,this.h8("ActualWindowScaleHorizontal",t,this.mc),n}return this.mc},md:0,actualWindowScaleVertical:function(n){if(arguments.length===1){var t=this.md;return this.md=n,this.h8("ActualWindowScaleVertical",t,this.md),n}return this.md},isZoomingHorizontallyEnabled:function(){return this.horizontalZoomable()},isZoomingVerticallyEnabled:function(){return this.verticalZoomable()},horizontalZoomable:function(n){return arguments.length===1?(this.g(t.$bd.horizontalZoomableProperty,n),n):this.c(t.$bd.horizontalZoomableProperty)},verticalZoomable:function(n){return arguments.length===1?(this.g(t.$bd.verticalZoomableProperty,n),n):this.c(t.$bd.verticalZoomableProperty)},horizontalZoombarVisibility:function(n){return arguments.length===1?(this.g(t.$bd.horizontalZoombarVisibilityProperty,n),n):this.c(t.$bd.horizontalZoombarVisibilityProperty)},verticalZoombarVisibility:function(n){return arguments.length===1?(this.g(t.$bd.verticalZoombarVisibilityProperty,n),n):this.c(t.$bd.verticalZoombarVisibilityProperty)},gridMode:function(n){return arguments.length===1?(this.g(t.$bd.gridModeProperty,n),n):this.c(t.$bd.gridModeProperty)},alignsGridLinesToPixels:function(n){return arguments.length===1?(this.g(t.$bd.alignsGridLinesToPixelsProperty,n),n):this.c(t.$bd.alignsGridLinesToPixelsProperty)},brushes:function(n){return arguments.length===1?(this.g(t.$bd.brushesProperty,n),n):this.c(t.$bd.brushesProperty)},markerBrushes:function(n){return arguments.length===1?(this.g(t.$bd.markerBrushesProperty,n),n):this.c(t.$bd.markerBrushesProperty)},outlines:function(n){return arguments.length===1?(this.g(t.$bd.outlinesProperty,n),n):this.c(t.$bd.outlinesProperty)},markerOutlines:function(n){return arguments.length===1?(this.g(t.$bd.markerOutlinesProperty,n),n):this.c(t.$bd.markerOutlinesProperty)},defaultAxisStroke:function(n){return arguments.length===1?(this.g(t.$bd.defaultAxisStrokeProperty,n),n):this.c(t.$bd.defaultAxisStrokeProperty)},defaultAxisMajorStroke:function(n){return arguments.length===1?(this.g(t.$bd.defaultAxisMajorStrokeProperty,n),n):this.c(t.$bd.defaultAxisMajorStrokeProperty)},defaultAxisMinorStroke:function(n){return arguments.length===1?(this.g(t.$bd.defaultAxisMinorStrokeProperty,n),n):this.c(t.$bd.defaultAxisMinorStrokeProperty)},axes:function(){return this.l1},l1:null,m6:function(t,i){var f,r,e,s,o,u;if(i.oldItems()!=null){for(f=i.oldItems().getEnumerator();f.moveNext();)if(r=f.current(),r!=null&&(r.at(null),r.seriesViewer(null),this.ij(r),this.a6().cu(r),r.rangeChanged=n.ig.Delegate.prototype.remove(r.rangeChanged,this.m8.runOn(this)),this.a6().cv(r),r.bw()!=null))for(e=r.bu().getEnumerator();e.moveNext();)s=e.current(),s.renderSeries(!1);this.axes().count()==0&&this.resetZoom()}if(i.newItems()!=null)for(o=i.newItems().getEnumerator();o.moveNext();)u=o.current(),u!=null&&(this.i2(u),u.at(this.actualSyncLink()),u.seriesViewer(this),u.aq().as(),this.a6().a7(u),u.rangeChanged=n.ig.Delegate.prototype.combine(u.rangeChanged,this.m8.runOn(this)),this.a6().a4(u));this.g2()},m7:function(){for(var r=new t.bh(t.$aj.$type,0),h=this.axes().getEnumerator(),i,u,f,e,o,s,c;h.moveNext();){if(i=h.current(),i.bw()!=null)for(u=i.bu().getEnumerator();u.moveNext();)f=u.current(),r.contains(f)||r.add(f);i.at(null);i.seriesViewer(null);this.ij(i);this.a6().cu(i);i.rangeChanged=n.ig.Delegate.prototype.remove(i.rangeChanged,this.m8.runOn(this));this.a6().cv(i);this.resetZoom()}for(e=this.series().getEnumerator();e.moveNext();)o=e.current(),r.contains(o)||r.add(o);for(s=r.getEnumerator();s.moveNext();)c=s.current(),c.renderSeries(!1)},axisRangeChanged:null,m8:function(i,r){var u=n.ig.util.cast(t.$hc.$type,i),e,o,s,h,l,c,f;if(u!=null){for(this.g2(),this.axisRangeChanged!=null&&this.axisRangeChanged(this,new t.tu(this,u,r.oldMinimumValue(),r.minimumValue(),r.oldMaximumValue(),r.maximumValue())),u.crossingAxis()!=null&&u.crossingAxis().ds(),u.ds(),e=this.animateSeriesWhenAxisRangeChanges(),n.ig.util.cast(t.$hb.$type,u)!==null&&(e=!0),o=u.bu().getEnumerator();o.moveNext();)s=o.current(),s.cl(!0),this.g2(),s.renderSeries(e);for(h=u.seriesViewer().series().getEnumerator();h.moveNext();)l=h.current(),t.$bd.m9(u,e,l);for(c=this.axes().getEnumerator();c.moveNext();)f=c.current(),f!=u&&f.crossingAxis()!=null&&f.crossingAxis()==u&&f.ds()}},m9:function(){},i6:function(n,i){var r,u;if(t.$be.i6.call(this,n,i),this.axes()!=null)for(r=this.axes().getEnumerator();r.moveNext();)u=r.current(),u.at(this.actualSyncLink()),u.seriesViewer(this)},gridZIndex:function(){return this.gridMode()==1?2:1},seriesZIndex:function(){return this.gridMode()==1?1:2},styleUpdated:function(){var n,r,t,i;for(this.a6().db(),n=this.axes().getEnumerator();n.moveNext();)r=n.current(),r.du(!1);for(t=this.series().getEnumerator();t.moveNext();)i=t.current(),i.view().bf(),i.renderSeries(!1)},ky:function(){return this.l6().em()},gj:function(){var i,u,r,f;for(t.$be.gj.call(this),i=new t.bh(t.$hc.$type,0),u=0;u<this.axes().count();u++)i.add(this.axes().__inner[u]);for(r=0;r<i.count();r++)this.axes().remove(i.__inner[r]),n.ig.util.cast(t.$hb.$type,i.__inner[r])!==null&&(f=i.__inner[r],this.removeSpecificDataSource(f.name(),!0),f.itemsSource(null)),i.__inner[r].dp(null,null)},es:function(){return this.l6().eh()},ku:function(){return this.l6().ej()},shouldAddAutoMargins:function(){return!0},i3:function(){var n,i;if(t.$be.i3.call(this),this.manageDataSources())for(n=this.axes().getEnumerator();n.moveNext();)i=n.current(),this.i2(i)},kv:function(n){return this.nw(n,this.brushes())},nw:function(n,t){return t!=null&&t.count()>0?t.item(n%t.count()):null},getMarkerBrushByIndex:function(n){return this.nw(n,this.markerBrushes())},getMarkerOutlineByIndex:function(n){return this.nw(n,this.markerOutlines())},k1:function(n){return this.nw(n,this.outlines())},br:function(){return this.isSquare()?!0:this.l8()},l8:function(){var i=this,u=i.series().where$1(t.$aj.$type,function(i){return n.ig.util.cast(t.$tv.$type,i)!==null||n.ig.util.cast(t.$t2.$type,i)!==null}),r;return u.any$1(t.$aj.$type)?!0:(r=i.axes().where$1(t.$hc.$type,function(i){return n.ig.util.cast(t.$jl.$type,i)!==null||n.ig.util.cast(t.$i7.$type,i)!==null||n.ig.util.cast(t.$jr.$type,i)!==null}),r.any$1(t.$hc.$type))?!0:!1},a5:function(){return new t.j3(this)},hy:function(n){t.$be.hy.call(this,n);this.l6(n)},_l6:null,l6:function(n){return arguments.length===1?(this._l6=n,n):this._l6},plotAreaBackgroundContent:function(n){return arguments.length===1?(this.g(t.$bd.plotAreaBackgroundContentProperty,n),n):this.c(t.$bd.plotAreaBackgroundContentProperty)},exportVisualData:function(){for(var u,i,f,n=new t.ti,r=0;r<this.axes().count();r++)u=this.axes().__inner[r].exportVisualData(),n.axes().add(u);for(i=0;i<this.series().count();i++)f=this.series().__inner[i].exportVisualData(),n.series().add(f);return n.name(this.name()),this.go(n),this.a6().bj(n),n},$type:new n.ig.Type("XamDataChart",t.$be.$type)},!0);n.ig.util.defType("SeriesViewerView:bf","Object",{init:function(i){var r=this;this.j=new t.fm;this.d0=t.$x.empty();this.ad=!1;this.ae=!0;this.v=!1;this.aq=NaN;this.d1=t.$x.empty();this.w=!1;this.ac=!1;this.aa=!1;this.z=!1;this.dn=null;this.dm=null;this.y=!1;this.x=!1;this.ab=!0;n.ig.$op.init.call(this);this.as(0);this.ar(0);this.p(i);this.p().crosshairPoint({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.p().windowResponse(1);this.l(new t.fa(this));this.d5(function(){var n=new t.cl;return n.visibility(1),n}());this.d6(function(){var n=new t.cl;return n.visibility(1),n}())},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},b8:function(){this.p().crosshairVisibility(1);var i=this.p(),r=typeof Modernizr!="undefined"&&Modernizr.touch||typeof n.mobile!="undefined"&&n.mobile!==null&&n.support.touch;i.mobileMode(r);this.d7(new t.b6);this.d8(new t.b1);this.d8().__visibility=1;this.c4();this.i(new t.e3);this.b(new t.e9);this.q(new t.cm);this.dh();this.q().world(new t.x(0,0,0,1,1));this.q().window(this.p().windowRect());this.q().surfaceViewer(new t.fn(this.p(),this));this.p().windowRectChanged=n.ig.Delegate.prototype.combine(this.p().windowRectChanged,this.b0.runOn(this));this.p().gridAreaRectChanged=n.ig.Delegate.prototype.combine(this.p().gridAreaRectChanged,this.bz.runOn(this));this.o(new t.e2(this));this.a(new t.bg);this.a().h(this);this.a().c().add(this.p().ae());this.p().a7()!=null&&(this.p().a7().view().b(this.a()),this.q().windowChanging=n.ig.Delegate.prototype.combine(this.q().windowChanging,this.cn.runOn(this)),this.q().windowChanged=n.ig.Delegate.prototype.combine(this.q().windowChanged,this.cm.runOn(this)));this.co()},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_q:null,q:function(n){return arguments.length===1?(this._q=n,n):this._q},cn:function(n,i){var r=t.$fn.y(i.oldValue(),i.newValue(),this.p().isZoomingHorizontallyEnabled(),this.p().isZoomingVerticallyEnabled(),this.q().world()),u;r.isEmpty()?this.q().window(i.oldValue()):r.equals(i.newValue())||this.q().window(r);this.p().windowResponse()==1&&(u=this.p().viewportRect().width()/this.p().viewportRect().height(),r=new t.x(0,r.left()/u,r.top(),r.width()/u,r.height()),this.p().windowRect(r))},cm:function(n,i){var r=t.$fn.y(i.oldValue(),i.newValue(),this.p().isZoomingHorizontallyEnabled(),this.p().isZoomingVerticallyEnabled(),this.q().world()),u;r.isEmpty()?r=i.oldValue():r.equals(i.newValue())||this.q().window(r);u=this.p().viewportRect().width()/this.p().viewportRect().height();r=new t.x(0,r.left()/u,r.top(),r.width()/u,r.height());this.p().windowRect(r)},dh:function(){var i,r,n;this.p().overviewPlusDetailPaneVisibility()==0&&(i=1,this.p().viewportRect().isEmpty()==!1&&(i=this.p().viewportRect().width()/this.p().viewportRect().height()),r=this.q().world(),n=new t.x(0,0,0,i,1),this.q().world(n),(r.width()!=n.width()||r.height()!=n.height()||r.x()!=n.x()||r.y()!=n.y())&&this.q().surfaceViewer().isDirty(!0),this.q().window(new t.x(0,this.p().windowRect().left()*i,this.p().windowRect().top(),this.p().windowRect().width()*i,this.p().windowRect().height())))},b0:function(){this.dh()},bz:function(){this.dh()},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},bm:function(n,i,r){for(var f=!0,e=this.p().series().getEnumerator(),u;e.moveNext();)u=e.current(),f&&u.cl()&&(f=!1,r.a().i(0,0,n,i)),u.hr(new t.x(0,0,0,n,i),r)},c3:function(){this.l().av()},bo:function(){},c5:function(){this.l().aw()},bu:function(){for(var n=0;n<this.p().series().count();n++)this.p().series().__inner[n].view().al()},bn:function(){},bp:function(){},cw:function(i){var r=this.i().indexOf(i),u,f;if(r>=0&&this.i().removeAt(r),n.ig.util.cast(t.$fu.$type,i)!==null)for(u=i.mt().f().getEnumerator();u.moveNext();)f=u.current(),r=this.i().indexOf(f),r>=0&&this.i().removeAt(r);i.provideContext(null,null);this.cf()},cf:function(){this.i().count()==0&&(this.t()==null||this.p().viewportRect()==null||this.p().viewportRect().isEmpty()||this.t().i(this.p().viewportRect().left(),this.p().viewportRect().top(),this.p().viewportRect().width(),this.p().viewportRect().height()));this.p().canvasRenderScheduler().j()},ah:function(n){return n.hd(n.view().bv(),this.d0),this.i().contains(n)},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},a8:function(i){var r,u;if(!this.i().contains(i)&&(this.i().add(i),n.ig.util.cast(t.$fu.$type,i)!==null))for(r=i.mt().f().getEnumerator();r.moveNext();)u=r.current(),this.i().add(u);i.provideContext(this.t(),this.s());this.p().gu()},bf:function(){},ba:function(){this.bq();this.bu()},bq:function(){this.d8().__visibility=1;this.bx()},bl:function(){},cq:function(){},_d8:null,d8:function(n){return arguments.length===1?(this._d8=n,n):this._d8},_d7:null,d7:function(n){return arguments.length===1?(this._d7=n,n):this._d7},c6:function(){this.d8().__visibility=0;this.bx()},dd:function(n){this.d8().m(n.top()+this.p().viewportRect().top());this.d8().l(n.left()+this.p().viewportRect().left());this.d8().width(n.width());this.d8().height(n.height());this.d8().__stroke=this.l().ba();this.d8().__fill=null;this.d8().z(.5);this.bx()},be:function(){},ci:function(){},dj:function(n,t,i,r){this.d6().ag(n);this.d6().ai(t);this.d6().ah(i);this.d6().aj(r);this.bx()},_d6:null,d6:function(n){return arguments.length===1?(this._d6=n,n):this._d6},_d5:null,d5:function(n){return arguments.length===1?(this._d5=n,n):this._d5},da:function(){this.d6().__visibility=0;this.bx()},bv:function(){this.d6().__visibility==0&&(this.d6().__visibility=1,this.bx())},de:function(n,t,i,r){this.d5().ag(n);this.d5().ai(t);this.d5().ah(i);this.d5().aj(r);this.bx()},c7:function(){this.d5().__visibility=0;this.bx()},br:function(){this.d5().__visibility==0&&(this.d5().__visibility=1,this.bx())},bt:function(){this.d7().__visibility=1;this.bx()},dy:function(i){var u=new t.dy,r=new t.d6;return r.__isClosed=!0,r.__startPoint={__x:i.left(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r.__segments.add(new t.d8(0,{__x:i.left(),__y:i.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.d8(0,{__x:i.right(),__y:i.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.d8(0,{__x:i.right(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.d8(0,{__x:i.left(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),u.add(r),u},dz:function(i){var u=new t.dy,r=new t.d6;return r.__isClosed=!0,r.__startPoint={__x:i.left(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r.__segments.add(new t.d8(0,{__x:i.right(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.d8(0,{__x:i.right(),__y:i.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.d8(0,{__x:i.left(),__y:i.bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.d8(0,{__x:i.left(),__y:i.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),u.add(r),u},di:function(n,i){var u,f,r;i.intersect(n);u=new t.dx;u.b(this.dz(n));f=new t.dx;f.b(this.dy(i));r=new t.du;r.c().add(u);r.c().add(f);this.d7().ak(r);this.d7().__fill=this.l().ba();this.d7().__opacity=.1;this.bx()},c9:function(){this.d7().__visibility=0;this.bx()},dk:function(){},cu:function(n){var t=this.b().indexOf(n);this.b().removeAt(t);n.dp(null,null);this.c1();this.p().removeSpecificDataSource(n.name(),!0)},cv:function(){},a7:function(n){this.b().contains(n)||this.b().add(n);n.dp(this.t(),this.s());this.c1()},a4:function(){},j:null,k:function(){return this.j.a(this.q()),this.j},al:function(i){for(var s,o,f,u=i.seriesViewer().series(),e=new t.bh(t.$aj.$type,0),r=0;r<u.count();r++)if(e.add(u.__inner[r]),n.ig.util.cast(t.$fu.$type,u.__inner[r])!==null)for(s=u.__inner[r],o=s.mt().f(),f=0;f<o.count();f++)e.add(o.__inner[f]);return e},c0:function(){this.p().windowRect(new t.x(0,0,0,1,1))},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_r:null,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_t:null,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_s:null,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_ag:!1,ag:function(n){return arguments.length===1?(this._ag=n,n):this._ag},b5:function(t){var i=this;if(t==null){i.m()!=null&&i.m().af();i.l().at(null);i.r(null);i.u(null);i.t(null);i.s(null);i.m(null);i.p().a7()!=null&&(i.p().a7().provideContext(null),i.p().a7().provideContainer(null),i.p().a7().provideEventSource(null));return}i.l().at(t);i.r(i.l().i());i.u(i.l().l());i.t(i.l().k());i.s(i.l().j());i.ag(window.navigator.msPointerEnabled);i.ag()&&i.ak(!0);i.m(i.l().g());i.m().az(i.p().viewportRect());i.m().ab(i.ai.runOn(i));i.m().onContactCompleted=n.ig.Delegate.prototype.combine(i.m().onContactCompleted,i.b2.runOn(i));i.m().onContactMoved=n.ig.Delegate.prototype.combine(i.m().onContactMoved,i.b3.runOn(i));i.m().onContactStarted=n.ig.Delegate.prototype.combine(i.m().onContactStarted,i.b4.runOn(i));i.m().onDragCompleted=n.ig.Delegate.prototype.combine(i.m().onDragCompleted,i.p().hb.runOn(i.p()));i.m().onDragDelta=n.ig.Delegate.prototype.combine(i.m().onDragDelta,function(n){return i.p().hc(n)});i.m().onDragStarted=n.ig.Delegate.prototype.combine(i.m().onDragStarted,function(n){return i.p().hd(n,!0)});i.m().onGestureCompleted=n.ig.Delegate.prototype.combine(i.m().onGestureCompleted,function(n){return i.p().he(n)});i.m().onKeyDown=n.ig.Delegate.prototype.combine(i.m().onKeyDown,i.p().onKeyDown.runOn(i.p()));i.m().onMouseDown=n.ig.Delegate.prototype.combine(i.m().onMouseDown,i.ca.runOn(i));i.m().onMouseLeave=n.ig.Delegate.prototype.combine(i.m().onMouseLeave,i.cb.runOn(i));i.m().onMouseOver=n.ig.Delegate.prototype.combine(i.m().onMouseOver,i.cc.runOn(i));i.m().onMouseUp=n.ig.Delegate.prototype.combine(i.m().onMouseUp,i.cd.runOn(i));i.m().onMouseWheel=n.ig.Delegate.prototype.combine(i.m().onMouseWheel,i.p().b9.runOn(i.p()));i.m().onPinchDelta=n.ig.Delegate.prototype.combine(i.m().onPinchDelta,function(n,t){return i.p().hn(t)});i.m().onPinchStarted=n.ig.Delegate.prototype.combine(i.m().onPinchStarted,function(n){return i.p().ho(n)});i.m().onDoubleTap=n.ig.Delegate.prototype.combine(i.m().onDoubleTap,function(n){return i.p().ha(n)});i.m().onHold=n.ig.Delegate.prototype.combine(i.m().onHold,i.b7.runOn(i));i.p().a7()!=null&&(i.p().a7().provideContext(i.u()),i.p().a7().provideContainer(t),i.p().a7().provideEventSource(i.m()))},b3:function(n,t){this.p().g6(n,t)},b4:function(n,t){!t&&this.p().mobileMode()&&this.p().mobileMode(!1);t&&!this.p().mobileMode()&&this.p().mobileMode(!0);this.p().g7(n,t)},b7:function(n){this.p().hp(n)},b2:function(n,t){this.p().g5(n,t)},cs:function(){},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},dc:function(){this.at(t.$fj.b(this.p().es()))},_at:0,at:function(n){return arguments.length===1?(this._at=n,n):this._at},f:function(i,r,u){var d=Math.round(i.__x),g=Math.round(i.__y),y,p,e,o,s,h,f,l,a,w,b,v,k;if(u=null,y=d,p=g,this.p().actualPixelScalingRatio()!=1&&(y=Math.round(i.__x*this.p().actualPixelScalingRatio()),p=Math.round(i.__y*this.p().actualPixelScalingRatio())),e=this.s().b(y,p),e==null||e.length==0)return u=null,{ret:null,context:u};if((e[0]>0||e[1]>0||e[2]>0)&&e[3]==255){o=e[2];o%4!=0&&(o=o+(4-o%4));s=e[1];s%4!=0&&(s=s+(4-s%4));h=e[0];h%4!=0&&(h=h+(4-h%4));f=0;f=o>>2;f=f<<6;f=f|s>>2;f=f<<6;f=f|h>>2;l=Math.floor(n.ig.intDivide(f,1e3));l--;for(var c=null,nt=!1,tt=this.i().getEnumerator();tt.moveNext();){if(a=tt.current(),nt)break;if(w=n.ig.util.cast(t.$fu.$type,a),w!=null){for(b=w.series().getEnumerator();b.moveNext();)if(v=b.current(),v.visualSeriesLink()!=null&&v.visualSeriesLink()._uniqueIndex==l){c=v.visualSeriesLink();nt=!0;break}}else if(a._uniqueIndex==l){c=a;break}}return c!=null&&(k=c.getHitDataContext({__x:d,__y:g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),k!=null&&(u=k)),{ret:c,context:u}}return{ret:null,context:u}},_as:0,as:function(n){return arguments.length===1?(this._as=n,n):this._as},_ar:0,ar:function(n){return arguments.length===1?(this._ar=n,n):this._ar},d0:null,ad:!1,b1:function(){this.l().as()},b6:function(n,t){this.as()!=n&&(this.ad=!0);this.as(n);this.ar()!=t&&(this.ad=!0);this.ar(t);this.cl();this.c1()},c1:function(){this.ab=!0;this.p().ah().v()},ap:0,an:0,ao:0,am:0,ae:!1,v:!1,bg:function(){var n=this,p,r,g,nt,i,e,ot,st,tt,h,it,c;if(n.as()!=0&&n.ar()!=0){n.ab=!1;n.v=!1;n.ae&&(n.ck(),n.ch(),n.ae=!1);var rt=n.as(),ut=n.ar(),f=n.p().leftMargin(),o=n.p().rightMargin(),s=n.p().bottomMargin(),u=n.p().topMargin(),l=n.p().autoMarginHeight(),a=n.p().autoMarginWidth();isNaN(l)&&(l=n.at()/2);isNaN(a)&&(a=0);for(var ht=n.p().shouldAddAutoMargins(),v=new t.bh(t.$he.$type,0),ft=n.b().getEnumerator();ft.moveNext();)p=ft.current(),p.aj()!=null&&v.add(p.aj());if(ht){for(var w=!1,b=!1,k=!1,d=!1,et=v.getEnumerator();et.moveNext();)r=et.current(),t.$tf.b(r)==2&&(r.z().labelSettings()==null||r.z().labelSettings().visibility()==0)&&(w=!0),t.$tf.b(r)==3&&(r.z().labelSettings()==null||r.z().labelSettings().visibility()==0)&&(b=!0),t.$tf.b(r)==0&&(r.z().labelSettings()==null||r.z().labelSettings().visibility()==0)&&(k=!0),t.$tf.b(r)==1&&(r.z().labelSettings()==null||r.z().labelSettings().visibility()==0)&&(d=!0),r.z()!=null&&r.z().labelSettings()!=null&&r.z().labelSettings().c(r.z().labelSettings().location());(w||b)&&(!k&&isNaN(u)&&(u=l),!d&&isNaN(s)&&(s=l));(d||k)&&(!w&&isNaN(f)&&(f=a),!b&&isNaN(o)&&(o=a))}for(isNaN(u)&&(u=0),isNaN(f)&&(f=0),isNaN(o)&&(o=0),isNaN(s)&&(s=0),g=n.ax(),u+=g,nt=n.aw(),u+=nt,i=new t.x(0,f,u,rt-(f+o),ut-(u+s)),i=t.$tf.e(v,i),e=new t.y(rt-(f+o),ut-(u+s)),n.p().br()&&i.width()!=i.height()&&(i.width()<i.height()?(u+=(i.height()-i.width())/2,i.top(i.top()+(i.height()-i.width())/2),e.a(e.a()-(i.height()-i.width())),i.height(i.width())):(f+=(i.width()-i.height())/2,i.left(i.left()+(i.width()-i.height())/2),e.b(e.b()-(i.width()-i.height())),i.width(i.height()))),n.ap=u-(g+nt),n.an=f,n.ao=o,n.am=s,ot=function(){var n=new t.tg;return n.f(f),n.c(f),n.a(u+e.a()),n.b(u+e.a()),n.g(f+e.b()),n.d(f+e.b()),n.h(u),n.e(u),n}(),t.$tf.d(v,ot,i,function(n,t){n.b3().equals(t)||(n.b3(t),n.z().aq().aa())}),st=!1,n.ad&&(n.ad=!1,st=!0),n.d0=i,n.p().h3(n.p().viewportRect(),i),tt=n.b().getEnumerator();tt.moveNext();)h=tt.current(),(h.fb()==null||h.fb().isEmpty())&&(n.v=!0),h.di(h.fb(),i);for(it=n.i().getEnumerator();it.moveNext();)c=it.current(),(c.view().bv()==null||c.view().bv().isEmpty())&&(n.v=!0),c.hd(c.view().bv(),i);if(n.p().a7()!=null){var ct=n.p().a7(),lt=n.p().mobileMode()?i.width():Number.POSITIVE_INFINITY,at=n.p().mobileMode()?i.height():Number.POSITIVE_INFINITY,y=ct.getDesiredSize(new t.y(lt,at));n.p().a7().arrange(new t.x(0,i.right()-y.b(),i.bottom()-y.a(),y.b(),y.a()))}n.ct(i)}},az:function(){var n=this.p().es(),t=this.a2();return this.p().titleTextStyle()!=null?n=this.p().titleTextStyle():t==n?n="16px Arial, Helvetica, sans-serif":String.isNullOrEmpty(t)==!1&&(n=t),n},ay:function(){var n=this.p().es(),t=this.a1();return this.p().subtitleTextStyle()!=null?n=this.p().subtitleTextStyle():t==n?n="12px/normal Arial, Helvetica, sans-serif":String.isNullOrEmpty(t)==!1&&(n=t),n},dx:function(){var n=this.p().ky(),t=this.du();return this.p().titleTextColor()!=null?n=this.p().titleTextColor():t!=null&&(n=t),n},dw:function(){var n=this.p().ky(),t=this.dt();return this.p().subtitleTextColor()!=null?n=this.p().subtitleTextColor():t!=null&&(n=t),n},ax:function(){var u,i,r;return this.p().title()==null||!(n.ig.util.cast(t.$bd.$type,this.p())!==null)?0:(u=this.az(),i=0,i=t.$fj.b(u),r=this.ed(),i+(r.e()+r.b()))},aq:0,aw:function(){var r,i;return this.p().subtitle()==null||!(n.ig.util.cast(t.$bd.$type,this.p())!==null)?0:isNaN(this.aq)?(r=this.ay(),this.aq=t.$fj.b(r),i=this.ec(),this.aq+=i.e()+i.b(),this.aq):this.aq},ed:function(){var n=this.l().bl(),i=isNaN(this.p().titleTopMargin())?n.e():this.p().titleTopMargin(),r=isNaN(this.p().titleLeftMargin())?n.c():this.p().titleLeftMargin(),u=isNaN(this.p().titleRightMargin())?n.d():this.p().titleRightMargin(),f=isNaN(this.p().titleBottomMargin())?n.b():this.p().titleBottomMargin();return new t.a5(1,r,i,u,f)},ec:function(){var n=this.l().bk(),i=isNaN(this.p().subtitleTopMargin())?n.e():this.p().subtitleTopMargin(),r=isNaN(this.p().subtitleLeftMargin())?n.c():this.p().subtitleLeftMargin(),u=isNaN(this.p().subtitleRightMargin())?n.d():this.p().subtitleRightMargin(),f=isNaN(this.p().subtitleBottomMargin())?n.b():this.p().subtitleBottomMargin();return new t.a5(1,r,i,u,f)},ct:function(){},bx:function(){this.aa||(this.aa=!0,this.a().j())},d1:null,cy:function(){this.u()!=null&&(this.u().c()&&(this.p().actualPixelScalingRatio()!=1&&(this.u().x(),this.u().y(this.p().actualPixelScalingRatio(),this.p().actualPixelScalingRatio())),this.d1.isEmpty()||this.u().i(this.d1.left(),this.d1.top(),this.d1.width(),this.d1.height())),this.cz(),this.u().c()&&this.p().actualPixelScalingRatio()!=1&&this.u().w())},preRender:function(){this.l().an(this.as(),this.ar());this.cr()},cr:function(){},w:!1,cz:function(){this.u().c()&&(this.d1=new t.x(0,0,0,this.as(),this.ar()),this.u().p(this.d5()),this.u().p(this.d6()),this.u().q(this.d7()),this.u().t(this.d8()),this.u().z(this.az()),this.dn!=null&&(this.dn.ab(this.dx()),this.u().u(this.dn)),this.u().z(this.ay()),this.dm!=null&&(this.dm.ab(this.dw()),this.u().u(this.dm)))},d3:function(){return new t.x(0,0,0,this.as(),this.ar())},d9:function(){return this.l().bf()},c4:function(){var n=this;n.p().circleMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.d),n.measure(t.$fz.b),n}());n.p().triangleMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.m),n.measure(t.$fz.b),n}());n.p().pyramidMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.j),n.measure(t.$fz.b),n}());n.p().squareMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.k),n.measure(t.$fz.b),n}());n.p().diamondMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.e),n.measure(t.$fz.b),n}());n.p().pentagonMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.h),n.measure(t.$fz.b),n}());n.p().hexagonMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.f),n.measure(t.$fz.b),n}());n.p().tetragramMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.l),n.measure(t.$fz.b),n}());n.p().pentagramMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.i),n.measure(t.$fz.b),n}());n.p().hexagramMarkerTemplate(function(){var n=new t.cg;return n.render(t.$fz.g),n.measure(t.$fz.b),n}())},db:function(){this.l().ay();this.c2();var n=this.at();this.dc();n!=this.at()&&this.p().gu()},co:function(){if(this.p().a7()!=null){var n=this.p().overviewPlusDetailPaneVisibility();this.p().a7().__visibility=n;this.p().a7().refresh(!1)}},ai:function(n){var i,r,t;return n==null?!1:(i=n.__x,r=n.__y,i>=this.p().viewportRect().left()&&r>=this.p().viewportRect().top()&&i<=this.p().viewportRect().left()+this.p().viewportRect().width()&&r<=this.p().viewportRect().top()+this.p().viewportRect().height())?(t=this.p().a7(),t!=null&&t.__visibility==0&&i>=t.view().bc().left()&&r>=t.view().bc().top()&&i<=t.view().bc().left()+t.view().bc().width()&&r<=t.view().bc().top()+t.view().bc().height())?!1:!0:!1},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},cc:function(n,i,r){var u=this,f,o,s,e,a,c,l,h;if(!r&&u.p().mobileMode()&&u.p().mobileMode(!1),f=new t.em,f.position(n),u.p().a4()==2||u.p().a4()==1||u.p().ca()||u.p().a7()==null||u.p().a7().pinching()){u.h()!=null&&(u.ac&&u.cd(n),u.h().g5(f.position(),u.e(),f),u.h(null));return}if(o=null,s=function(){var t=u.f(n,!i,o);return o=t.context,t.ret}(),u.e(o),e=u.g(s),s!=null)a=!1,c=!1,u.h()!=s&&(c=!0),(u.h()==null||c)&&(a=!0),a?(c&&u.h()!=null&&(e=u.g(u.h()),u.h().g5(f.position(),o,f),e!=null&&e.g5(f.position(),o,f)),u.h(s),s.g4(f.position(),o,f),e!=null&&e.g4(f.position(),o,f)):(u.h(s),s.g7(f.position(),o,f),e!=null&&e.g7(f.position(),o,f));else for(u.h()!=null&&(e=u.g(u.h()),u.h().g5(f.position(),o,f),e!=null&&e.g5(f.position(),o,f),u.h(null)),l=0;l<u.p().series().count();l++)h=u.p().series().__inner[l],h.b5()&&(e=u.g(h),h.g5(f.position(),h.eh(),f),e!=null&&e.g5(f.position(),h.eh(),f))},g:function(i){var r=null;return i!=null&&n.ig.util.cast(t.$ka.$type,i)!==null&&(r=i.parentSeries()),i!=null&&n.ig.util.cast(t.$sd.$type,i)!==null&&(r=i.parentSeries()),r},cb:function(n){if(this.h()!=null){var r=this.g(this.h()),i=new t.em;i.position(n);this.h().g5(i.position(),null,i);r!=null&&r.g5(i.position(),null,i);this.h(null)}this.p().hl(n)},ac:!1,ca:function(n){if(this.h()!=null){this.ac=!0;var i=new t.m8;i.position(n);this.h().g2(i.position(),this.e(),i)}},cd:function(n){if(this.h()!=null){this.ac=!1;var i=new t.m8;i.position(n);this.h().g6(i.position(),this.e(),i)}},c2:function(){},dr:function(){return this.m().ay()},dl:function(){this.m()!=null&&this.m().az(this.p().viewportRect())},by:function(n){this.p().bo(this.p().mobileMode()||this.p().crosshairVisibility()==0);this.bb(n)},bb:function(n){this.p().a7()!=null&&(this.p().a7().mobileMode(n),n?(this.p().a7().__visibility=1,this.p().a7().view().s(this.p().overviewPlusDetailPaneVisibility()==0)):(this.p().a7().__visibility=this.p().overviewPlusDetailPaneVisibility(),this.p().a7().view().s(!1)),this.p().gu())},aa:!1,isDirty:function(n){return arguments.length===1?(this.aa=n,n):this.aa},undirty:function(){this.aa=!1;this.cy()},index:function(){return 10},postRender:function(){},bi:function(){this.c1()},z:!1,bs:function(){this.l().aq()},c8:function(){this.l().ax()},bd:function(){this.l().al()},a5:function(n){this.l().aj(n)},df:function(n){this.l().a3(n)},dg:function(n){this.l().a4(n)},a6:function(n){this.l().ak(n)},cx:function(n){this.l().au(n)},ce:function(){this.p().canvasRenderScheduler().j()},bc:function(){},_ak:!1,ak:function(n){return arguments.length===1?(this._ak=n,n):this._ak},n:function(){return this.p().mobileMode()?2:1},b9:function(){this.m().w(this.p().isSurfaceInteractionDisabled())},dn:null,dm:null,av:function(n,t){return n==null?0:(this.u().z(t),this.u().d(n))},au:function(n,i){return n==null?0:t.$fj.b(i)},cl:function(){this.ae=!0;this.c1()},ck:function(){var i,r,u,f;if(this.p().title()!=null&&n.ig.util.cast(t.$bd.$type,this.p())!==null){this.dn=new t.b9;this.dn.aa(this.p().title().toString());i=this.ed();r=this.av(this.dn.aa(),this.az());this.dn.l(this.as()/2-(r+i.c()+i.d())/2);this.dn.m(i.e());u=this.au(this.dn.aa(),this.az());this.dn.k(r);this.dn.j(u);f=this.dq();switch(f){case 0:this.dn.l(i.c());break;case 2:this.dn.l(Math.max(this.as()-i.d()-r,i.c()))}}else this.dn=null},ch:function(){var i,r,u,f;if(this.aq=NaN,this.p().subtitle()!=null&&n.ig.util.cast(t.$bd.$type,this.p())!==null){this.dm=new t.b9;this.dm.aa(this.p().subtitle().toString());i=this.ec();r=this.av(this.dm.aa(),this.ay());this.dm.l(this.as()/2-(r+i.c()+i.d())/2);this.dm.m(this.ax()+i.e());u=this.au(this.dm.aa(),this.ay());this.dm.k(r);this.dm.j(u);f=this.dp();switch(f){case 0:this.dm.l(i.c());break;case 2:this.dm.l(Math.max(this.as()-i.d()-r,i.c()))}}else this.dm=null},c:function(n){var r=this.l().c(),i;if(r==0){if(i=t.$tf.b(n.aj()),n.crossingAxis()==null){if(i==4)return 4;if(i==5)return 3}else{if(i==4)return 3;if(i==5)return 4}return i==0?3:4}return r},d:function(n){var r=this.l().d(),i;if(r==0){if(i=t.$tf.b(n.aj()),n.crossingAxis()==null){if(i==7)return 1;if(i==6)return 2}else{if(i==7)return 2;if(i==6)return 1}return i==3?2:1}return r},a3:function(){return this.l().ai()},dv:function(){return this.l().be()},a0:function(){return this.l().ah()},ds:function(){return this.l().bd()},a2:function(){return this.l().af()},a1:function(){return this.l().ad()},du:function(){return this.l().bc()},dt:function(){return this.l().bb()},bk:function(i){var o="",v,b,r,s,f,y,e,w;i.title(null);i.subtitle(null);var l=this.ed(),a=0,h=0;if(this.dn!=null&&(o=this.az(),v=t.$fj.a(this.dn,o),b={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},h=this.dn.j()+l.b()+l.e(),r=new t.s3,s=this.d4(),r.viewport(new t.x(0,s.left(),s.top(),s.width(),h)),r.textPlotArea(this.d2(this.dn)),r.textPlotArea(new t.x(0,this.dn.l(),this.dn.m(),this.dn.k(),this.dn.j())),a=r.height(),r.appearance(t.$gk.fromTextElement(this.dn,v)),f=this.ed(),r.appearance().marginTop(f.e()),r.appearance().marginLeft(f.c()),r.appearance().marginRight(f.d()),r.appearance().marginBottom(f.b()),y=this.dq(),r.appearance().horizontalAlignment(y.toString()),i.title(r)),this.dm!=null){o=this.ay();var k=t.$fj.a(this.dm,o),g={__x:0,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},p=this.ec(),d=this.dm.j()+p.b()+p.e(),u=new t.s3,c=this.d4();u.viewport(new t.x(0,c.left(),c.top()+h,c.width(),d));u.textPlotArea(this.d2(this.dm));u.appearance(t.$gk.fromTextElement(this.dm,k));e=this.ec();u.appearance().marginTop(e.e());u.appearance().marginLeft(e.c());u.appearance().marginRight(e.d());u.appearance().marginBottom(e.b());w=this.dp();u.appearance().horizontalAlignment(w.toString());i.subtitle(u)}},d4:function(){return new t.x(0,0,0,this.as(),this.ar())},d2:function(n){return t.$j4.a(n)},bj:function(n){n.width(this.as());n.height(this.ar());n.contentArea(this.d4());n.centralArea(new t.x(0,this.an,0,this.as()-(this.an+this.ao),this.ar()-(this.ap+this.am)));n.plotArea(this.p().viewportRect())},eb:function(){return this.l().bn()},ea:function(){return this.l().bm()},y:!1,x:!1,cg:function(){this.x=!0},cj:function(){this.y=!0},dq:function(){if(this.y)return this.p().titleHorizontalAlignment();var n=1;switch(this.l().ag()){case"left":n=0;break;case"right":n=2}return n},dp:function(){if(this.x)return this.p().subtitleHorizontalAlignment();var n=1;switch(this.l().ae()){case"left":n=0;break;case"right":n=2}return n},ab:!1,a9:function(){this.ab&&(this.bg(),this.v&&this.p().ah().u(),this.ab&&this.bg())},af:function(){return this.p().ci()?!1:t.$bt.now().getTime()-this.p().cl().getTime()<300?!0:!1},bh:function(){this.l().an(this.as(),this.ar())},bw:function(){this.l().ar(this.p().isPagePanningAllowed())},aj:function(n){var t=this.p().actualWindowRect(),i=t.top()>0,r=t.left()>0,u=t.right()<1,f=t.bottom()<1,e=n.__y<0,o=n.__y>0,s=n.__x<0,h=n.__x>0;return i&&e?!0:r&&s?!0:f&&o?!0:h&&u?!0:!1},cp:function(){this.p().canvasRenderScheduler().j();this.p().ae().j();this.a().j()},$type:new n.ig.Type("SeriesViewerView",n.ig.$ot,[t.$bc.$type])},!0);n.ig.util.defType("XamDataChartView:j3","SeriesViewerView",{init:function(n){t.$bf.init.call(this,n);this.ee(n)},_ee:null,ee:function(n){return arguments.length===1?(this._ee=n,n):this._ee},ei:function(){this.p().canvasRenderScheduler().l()},cr:function(){t.$bf.cr.call(this);this.b().count()==0&&this.t()!=null&&this.t().i(0,0,this.as(),this.ar())},c2:function(){var n=this,r,u,f,e,t,o,s,h=1,c=0,l=!1,i;(function(){var i=n.l().ap(r,u,f,e,t);return r=i.brushes,u=i.outlines,f=i.fontBrush,e=i.font,t=i.axisLineBrush,i.ret})(),function(){var t=n.l().ao(h,i,o,s,c,l);return h=t.opacity,i=t.margins,o=t.axisStroke,s=t.axisMajorStroke,c=t.categoryAxisTickLength,l=t.alignsGridLines,t.ret}();n.p().topMargin(i[0]);n.p().rightMargin(i[1]);n.p().bottomMargin(i[2]);n.p().leftMargin(i[3]);n.ee().defaultAxisStroke(t);n.ee().defaultAxisMajorStroke(t);n.ee().defaultAxisMinorStroke(t);n.ee().alignsGridLinesToPixels(l);n.el(o);n.ek(s);n.ee().brushes(r);n.ee().outlines(u);n.ee().markerBrushes(r);n.ee().markerOutlines(u);n.em(f);n.eh(e);n.ej(t);n.ef(h);n.eg(c)},_em:null,em:function(n){return arguments.length===1?(this._em=n,n):this._em},_ej:null,ej:function(n){return arguments.length===1?(this._ej=n,n):this._ej},_el:null,el:function(n){return arguments.length===1?(this._el=n,n):this._el},_ek:null,ek:function(n){return arguments.length===1?(this._ek=n,n):this._ek},_ef:0,ef:function(n){return arguments.length===1?(this._ef=n,n):this._ef},_eg:0,eg:function(n){return arguments.length===1?(this._eg=n,n):this._eg},b5:function(n){t.$bf.b5.call(this,n)},cz:function(){this.d5().z(1);this.d6().z(1);this.d5().__stroke=this.em();this.d6().__stroke=this.em();t.$bf.cz.call(this)},_eh:null,eh:function(n){return arguments.length===1?(this._eh=n,n):this._eh},$type:new n.ig.Type("XamDataChartView",t.$bf.$type)},!0);n.ig.util.defType("ChartCollection:oo","ObservableCollection$1",{init:function(){t.$e4.init.call(this,t.$be.$type)},collectionResetting:null,h:function(){this.collectionResetting!=null&&this.collectionResetting(this,null);t.$e4.h.call(this)},$type:new n.ig.Type("ChartCollection",t.$e4.$type.specialize(t.$be.$type))},!0);n.ig.util.defType("ChartContentManager:j8","DependencyObject",{j:null,o:null,q:null,r:function(n){return arguments.length===1?(this.q=n,n):this.q},init:function(n){this.j=null;this.o=new t.f0(t.$j9.$type,t.$f0.$type.specialize(t.$an.$type,t.$j6.$type),0);this.q=new t.bh(t.$aj.$type,0);this.k=!1;t.$an.init.call(this);this.m(!0);this.l(!0);this.o.add(0,new t.f0(t.$an.$type,t.$j6.$type,0));this.o.add(1,new t.f0(t.$an.$type,t.$j6.$type,0));this.o.add(2,new t.f0(t.$an.$type,t.$j6.$type,0));this.j=n},i:function(n,t,i){var r=this.h(n,t);return r.a(i),r},y:function(i,r){var f=this.o.item(i),u;f.containsKey(r)&&f.remove(r);u=n.ig.util.cast(t.$aj.$type,r);u!=null&&this.r().contains(u)&&this.r().remove(u)},k:!1,v:function(){this.k||(this.k=!0,window.setTimeout(this.s.runOn(this),0))},x:function(n,t,i,r){var u=i;u.c()?r||u.b(!1):u.b(r);u.c()||(u.c(!0),this.v())},_n:!1,n:function(n){return arguments.length===1?(this._n=n,n):this._n},h:function(i,r){var f=this,c=f.o.item(i),e=null,u;if(!function(){var n=c.tryGetValue(r,e);return e=n.value,n.ret}()&&(e=new t.j6,e.h(r),c.add(r,e),u=n.ig.util.cast(t.$aj.$type,r),u!=null&&!f.r().contains(u)))if(n.ig.util.cast(t.$ka.$type,u)!==null||n.ig.util.cast(t.$sd.$type,u)!==null){var s=n.ig.util.cast(t.$ka.$type,u),l=n.ig.util.cast(t.$sd.$type,u),h=s!=null?s.parentSeries():l.parentSeries(),a=s!=null?s.logicalSeriesLink():l.logicalSeriesLink(),o=0;f.r().indexOf(h)==0&&o++;o+=h.series().indexOf(a);f.r().count()<=o||h.series().count()==0||o==-1?f.r().add(u):f.r().insert(o,u)}else f.r().add(u);return e},u:function(){this.s()},s:function(){var n,t;if(this.j!=null&&this.o!=null&&this.k){for(this.j!=null&&this.j.gf(),this.k=!1,n=this.p().getEnumerator();n.moveNext();)t=n.current(),t.f();this.k||this.j.h9()}},p:function(){var i=this,r=function(){return function(){return{$state:0,$this:i,$current:null,$a:null,$b:null,$c:null,$d:null,$e:null,$f:null,$g:null,$h:null,$i:null,$j:null,$k:null,$l:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$a=null;this.$a=this.$this.o.item(1);this.$state=1;break;case 1:this.$c=this.$a.values().getEnumerator();this.$state=4;break;case 2:return this.$b=this.$c.current(),this.$current=this.$b,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$state=this.$c.moveNext()?2:5;break;case 5:this.$a=this.$this.o.item(0);this.$d=new t.bh(t.$j6.$type,0);this.$state=6;break;case 6:this.$f=this.$this.r().getEnumerator();this.$state=11;break;case 7:this.$e=this.$f.current();this.$state=8;break;case 8:this.$state=this.$e.isAnnotationLayer()?10:9;break;case 9:this.$d.add(this.$a.item(this.$e));this.$state=10;break;case 10:this.$state=11;break;case 11:this.$state=this.$f.moveNext()?7:12;break;case 12:this.$state=13;break;case 13:this.$h=this.$this.r().getEnumerator();this.$state=18;break;case 14:this.$g=this.$h.current();this.$state=15;break;case 15:this.$state=this.$g.isAnnotationLayer()?16:17;break;case 16:this.$d.add(this.$a.item(this.$g));this.$state=17;break;case 17:this.$state=18;break;case 18:this.$state=this.$h.moveNext()?14:19;break;case 19:this.$state=20;break;case 20:this.$j=this.$d.getEnumerator();this.$state=23;break;case 21:return this.$i=this.$j.current(),this.$current=this.$i,this.$state=22,!0;case 22:this.$state=23;break;case 23:this.$state=this.$j.moveNext()?21:24;break;case 24:this.$a=this.$this.o.item(2);this.$state=25;break;case 25:this.$l=this.$a.values().getEnumerator();this.$state=28;break;case 26:return this.$k=this.$l.current(),this.$current=this.$k,this.$state=27,!0;case 27:this.$state=28;break;case 28:this.$state=this.$l.moveNext()?26:29;break;case 29:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(t.$j6.$type,r)},t:function(){for(var u=this.o.item(1).values().getEnumerator(),f,i,e,r,o;u.moveNext();)f=u.current(),n.ig.util.cast(t.$hc.$type,f.h()).dm();for(i=this.o.item(1).values().getEnumerator();i.moveNext();)e=i.current(),e.f();for(r=this.o.item(1).values().getEnumerator();r.moveNext();)o=r.current(),n.ig.util.cast(t.$hc.$type,o.h()).fa(t.$x.empty())},_l:!1,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_m:!1,m:function(n){return arguments.length===1?(this._m=n,n):this._m},z:function(n,t,i,r){i.i(r)},w:function(n,t){t.e()||(t.e(!0),this.v())},$type:new n.ig.Type("ChartContentManager",t.$an.$type)},!0);n.ig.util.defType("ContentInfo:j6","Object",{init:function(){n.ig.$op.init.call(this)},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},d:function(){return this.i().isEmpty()?!1:this.i().width()==0&&this.i().height()==0?!1:!0},g:function(){var i,r;this.e()&&n.ig.util.cast(t.$hc.$type,this.h())!==null&&(this.e(!1),i=this.c(),this.c(!0),r=n.ig.util.cast(t.$hc.$type,this.h()).updateRange1(!0),r||this.c(i))},f:function(){var r,i;this.g();n.ig.util.cast(t.$hc.$type,this.h())!==null&&(r=n.ig.util.cast(t.$hc.$type,this.h()),r.crossingAxis()!=null&&(i=r.crossingAxis(),i.ar()!=null&&i.ar().e()&&i.ar().g()));this.c()&&(this.c(!1),this.a()(this.b()),this.b(!1))},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},$type:new n.ig.Type("ContentInfo",n.ig.$ot)},!0);n.ig.util.defType("DataContext:fl","Object",{init:function(){n.ig.$op.init.call(this)},_series:null,series:function(n){return arguments.length===1?(this._series=n,n):this._series},_item:null,item:function(n){return arguments.length===1?(this._item=n,n):this._item},_actualItemBrush:null,actualItemBrush:function(n){return arguments.length===1?(this._actualItemBrush=n,n):this._actualItemBrush},_outline:null,outline:function(n){return arguments.length===1?(this._outline=n,n):this._outline},_itemLabel:null,itemLabel:function(n){return arguments.length===1?(this._itemLabel=n,n):this._itemLabel},_itemBrush:null,itemBrush:function(n){return arguments.length===1?(this._itemBrush=n,n):this._itemBrush},_thickness:0,thickness:function(n){return arguments.length===1?(this._thickness=n,n):this._thickness},flatten:function(){var f=this.series(),n=this.item(),t=this.actualItemBrush(),i=this.outline(),r=this.itemLabel(),e=this.itemBrush(),u=this.thickness();return{item:n,itemBrush:t,outline:i,itemLabel:r,thickness:u}},$type:new n.ig.Type("DataContext",n.ig.$ot)},!0);n.ig.util.defType("PieSliceDataContext:m4","DataContext",{init:function(){t.$fl.init.call(this)},_slice:null,slice:function(n){return arguments.length===1?(this._slice=n,n):this._slice},_percentValue:0,percentValue:function(n){return arguments.length===1?(this._percentValue=n,n):this._percentValue},_isOthersSlice:!1,isOthersSlice:function(n){return arguments.length===1?(this._isOthersSlice=n,n):this._isOthersSlice},flatten:function(){var n=t.$fl.flatten.call(this),e=this.percentValue(),u=this.isOthersSlice(),i,r,f;if(n.percentValue=e,n.isOthersSlice=u,u&&this.item()!=null){for(i=[],r=this.item().getEnumerator();r.moveNext();)f=r.current(),i.push(f);n.item=i}return n},$type:new n.ig.Type("PieSliceDataContext",t.$fl.$type)},!0);n.ig.util.defType("FunnelSliceDataContext:o3","DataContext",{init:function(){t.$fl.init.call(this)},_itemOutline:null,itemOutline:function(n){return arguments.length===1?(this._itemOutline=n,n):this._itemOutline},flatten:function(){var n=t.$fl.flatten.call(this),i=this.itemOutline();return n.itemOutline=i,n},$type:new n.ig.Type("FunnelSliceDataContext",t.$fl.$type)},!0);n.ig.util.defType("LabelPanelArranger:tf","Object",{init:function(){n.ig.$op.init.call(this)},e:function(i,r){for(var c=i.getEnumerator();c.moveNext();){var f=c.current(),u=f.z(),s=u.crossingAxis();s=t.$tf.a(f,u,s);var h=t.$tf.b(f),e=0,o=0;if(e=f.ay,o=f.ay,f.z().labelSettings()!=null&&f.z().labelSettings().visibility()!=0&&(o=0,e=0),n.ig.util.cast(t.$ji.$type,f)!==null)switch(h){case 0:r.y(Math.max(0,r.top()+o));r.height(Math.max(0,r.height()-o));u.labelSettings().c(0);break;case 4:s!=null&&f.az()-r.top()<o&&n.ig.util.cast(t.$lm.$type,f)!==null?u.labelSettings().c(5):u.labelSettings().c(4);break;case 5:s!=null&&r.bottom()-f.az()<o&&n.ig.util.cast(t.$lm.$type,f)!==null?u.labelSettings()!=null&&u.labelSettings().c(4):u.labelSettings()!=null&&u.labelSettings().c(5);break;case 1:default:u.labelSettings()!=null&&u.labelSettings().c(1);r.height(Math.max(0,r.height()-o))}if(n.ig.util.cast(t.$i0.$type,f)!==null)switch(h){case 3:r.width(Math.max(0,r.width()-e));u.labelSettings().c(3);break;case 6:s!=null&&f.az()-r.left()<e?u.labelSettings().c(7):u.labelSettings().c(6);break;case 7:s!=null&&r.right()-f.az()<e?u.labelSettings().c(6):u.labelSettings().c(7);break;case 2:default:u.labelSettings()!=null&&u.labelSettings().c(2);r.x(Math.max(0,r.left()+e));r.width(Math.max(0,r.width()-e))}n.ig.util.cast(t.$jo.$type,f)!==null&&u.labelSettings()!=null&&u.labelSettings().c(h)}return r},a:function(i,r,u){return n.ig.util.cast(t.$jh.$type,i)!==null&&n.ig.util.cast(t.$i7.$type,r)!==null&&(u=n.ig.util.cast(t.$i7.$type,r).g1()),n.ig.util.cast(t.$jo.$type,i)!==null&&n.ig.util.cast(t.$jl.$type,r)!==null&&(u=n.ig.util.cast(t.$jl.$type,r).g2()),n.ig.util.cast(t.$jo.$type,i)!==null&&n.ig.util.cast(t.$jr.$type,r)!==null&&(u=n.ig.util.cast(t.$jr.$type,r).g5()),u},b:function(n){var t,i;return n==null?1:(t=n.z(),t!=null&&t.labelSettings()!=null?(i=t.labelSettings().c(),!n.an(i))?n.ae():i:n.ae())},c:function(i,r,u,f){var c=i.z(),h=c.crossingAxis();h=t.$tf.a(i,c,h);var l=t.$tf.b(i),e,o=i.ay,s=i.ay;if(i.z()==null||i.z().labelSettings()==null||i.z().labelSettings().visibility()!=1){switch(l){case 3:r.g(r.g()-s);r.d(r.d()-s);e=new t.x(0,r.g(),u.top(),s,u.height());f(i,e);break;case 2:e=new t.x(0,r.f(),u.top(),s,u.height());f(i,e);r.f(r.f()+s);r.c(r.c()+s);break;case 7:h!=null?e=new t.x(0,r.f()+i.az(),u.top(),s,u.height()):(r.d(r.d()-s),e=new t.x(0,r.d(),u.top(),s,u.height()));f(i,e);break;case 6:h!=null?e=new t.x(0,r.f()+i.az()-s,u.top(),s,u.height()):(e=new t.x(0,r.c(),u.top(),s,u.height()),r.c(r.c()+s));f(i,e);break;case 1:r.a(r.a()-o);r.b(r.b()-o);e=new t.x(0,u.left(),r.a(),u.width(),o);f(i,e);break;case 0:e=new t.x(0,u.left(),r.h(),u.width(),o);f(i,e);r.h(r.h()+o);r.e(r.e()+o);break;case 5:h!=null?e=new t.x(0,u.left(),r.h()+i.az(),u.width(),o):(r.b(r.b()-o),e=new t.x(0,u.left(),r.b(),u.width(),o));f(i,e);break;case 4:h!=null?e=new t.x(0,u.left(),r.h()+i.az()-o,u.width(),o):(e=new t.x(0,u.left(),r.e(),u.width(),o),r.e(r.e()+o));f(i,e)}n.ig.util.cast(t.$jo.$type,i)!==null&&(e=new t.x(0,u.left(),u.top(),u.width(),u.height()),f(i,e))}},d:function(n,i,r,u){for(var s=new t.bh(t.$he.$type,0),h=new t.bh(t.$he.$type,0),c=n.getEnumerator(),f,l,e,a,o,v;c.moveNext();){f=c.current();l=t.$tf.b(f);switch(l){case 1:case 2:case 0:case 3:h.add(f);break;case 5:case 6:case 4:case 7:s.add(f)}}for(e=h.getEnumerator();e.moveNext();)a=e.current(),t.$tf.c(a,i,r,u);for(o=s.getEnumerator();o.moveNext();)v=o.current(),t.$tf.c(v,i,r,u)},$type:new n.ig.Type("LabelPanelArranger",n.ig.$ot)},!0);n.ig.util.defType("LabelPanelsArrangeState:tg","Object",{init:function(){n.ig.$op.init.call(this)},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:0,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_g:0,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},$type:new n.ig.Type("LabelPanelsArrangeState",n.ig.$ot)},!0);n.ig.util.defType("LegendTemplates:mx","Object",{init:function(){n.ig.$op.init.call(this)},e:function(n){var u=n.data,r=u.series(),f=r.legendItemBadgeTemplate(),i=r.title();i==null&&(i="Series Title");t.$mx.a(n.context,n.xPosition,n.yPosition,n.availableWidth,n.availableHeight,n.data,i.toString(),f,n.passInfo)},c:function(n){var r=n.data,u=r.series(),f=u.legendItemBadgeTemplate(),i=r.itemLabel();i==null&&(i="Series Item");t.$mx.a(n.context,n.xPosition,n.yPosition,n.availableWidth,n.availableHeight,n.data,i.toString(),f,n.passInfo)},o:function(n){var r=n.data,u=r.series(),f=u.legendItemBadgeTemplate(),i=r.itemLabel();i==null&&(i="Pie Item");t.$mx.a(n.context,n.xPosition,n.yPosition,n.availableWidth,n.availableHeight,n.data,i.toString(),f,n.passInfo)},i:function(n){var r=n.data,u=r.series(),f=u.legendItemBadgeTemplate(),i=r.itemLabel();i==null&&(i="Funnel Item");t.$mx.a(n.context,n.xPosition,n.yPosition,n.availableWidth,n.availableHeight,n.data,i.toString(),f,n.passInfo)},a:function(i,r,u,f,e,o,s,h,c){var b=i,y=o,v,p,w,l,a,k;y!=null&&y.series()!=null&&(h!=null&&(v=n("<canvas><\/canvas>"),v.attr("width","18"),v.attr("height","16"),p=n("<td class='ui-legend-item-badge'><\/td>"),p.append(v),w=v[0].getContext("2d"),l=new t.cj,l.passInfo=c,l.context=w,l.width=18,l.height=16,l.data=y,h.measure()(l),a=new t.cd,a.availableWidth=isNaN(l.width)?18:Math.min(l.width,18),a.availableHeight=isNaN(l.height)?16:Math.min(l.height,16),a.passInfo=c,a.context=w,a.data=y,a.xPosition=0,a.yPosition=0,h.render()(a),b.append(p)),k=n("<td class='ui-legend-item-text'><span>"+s+"<\/span><\/td>"),b.append(k))},n:function(n){var u=n.data,e=n.context,o=new t.bz(new t.dk,e),r=u.slice(),f=u.series(),s=f.ao().bd(r),h=f.ao().be(r),i=new t.b1;i.width(n.availableWidth-r.ay()*2-2);i.height(n.availableHeight-r.ay()*2);i.l(r.ay()+1);i.m(r.ay());i.z(r.ay());i.__fill=s;i.__stroke=h;o.t(i)},h:function(n){var i=n.data,e=n.context,f,u,r;i.itemBrush()!=null&&i.actualItemBrush(i.itemBrush());i.itemOutline()!=null&&i.outline(i.itemOutline());f=new t.bz(new t.dk,e);u=i.thickness();isNaN(u)&&(u=1);r=new t.b1;r.width(n.availableWidth-u*2-2);r.height(n.availableHeight-u*2);r.l(u+1);r.m(u);r.z(u);r.__fill=i.actualItemBrush();r.__stroke=i.outline();f.t(r)},k:function(i){var u=i.data,s=i.context,e=u.series(),o,r,f;u.itemBrush()!=null?u.actualItemBrush(u.itemBrush()):u.actualItemBrush(e.actualBrush());o=new t.bz(new t.dk,s);r=new t.cl;r.ag(0);r.ai(i.availableHeight/2);r.ah(i.availableWidth);r.aj(i.availableHeight/2);r.z(e.thickness());r.__stroke=u.actualItemBrush();r.af(e.dashArray());o.p(r);f=n.ig.util.cast(t.$fw.$type,u.series());f!=null&&f.actualMarkerTemplate()!=null&&f.actualMarkerTemplate().render()!=null&&(u.outline(e.actualOutline()),t.$mx.s(f.actualMarkerTemplate(),i))},s:function(i,r){var u=new t.cj,o,f;u.passInfo=r.passInfo;u.width=11;u.height=11;u.data=r.data;u.context=r.context;u.renderContext=r.renderContext;var e=r.data,s=e.actualItemBrush(),h=e.itemBrush();n.ig.util.cast(t.$aj.$type,e.series())!==null&&e.itemBrush()==null&&(o=e.series(),e.actualItemBrush(o.getActualMarkerBrush()));i.measure()!=null&&(i.measure()(u),(isNaN(u.width)||Number.isInfinity(u.width)||u.width>11)&&(u.width=11),(isNaN(u.height)||Number.isInfinity(u.height)||u.height>11)&&(u.height=11));f=new t.cd;f.passInfo=r.passInfo;f.availableWidth=u.width;f.availableHeight=u.height;f.xPosition=r.availableWidth/2;f.yPosition=r.availableHeight/2;f.data=r.data;f.context=r.context;f.renderContext=r.renderContext;i.render()(f);e.itemBrush(h);e.actualItemBrush(s)},t:function(i){var r=null;n.ig.util.cast(t.$aj.$type,i.series())!==null&&(r=i.series());i.itemBrush()!=null?i.actualItemBrush(i.itemBrush()):r!=null?i.actualItemBrush(r.actualBrush()):i.actualItemBrush(i.itemBrush())},d:function(){},b:function(){},j:function(){},r:function(i){var c=this,r=i.data,s=i.context,e;t.$mx.t(r);var h=new t.bz(new t.dk,s),f=new t.b6,o=new t.dx,u=new t.d6;u.__isFilled=!0;u.__startPoint={__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};u.__segments.add(new t.d8(0,{__x:0,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(new t.d8(0,{__x:11,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:16,__y:9,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());u.__segments.add(new t.d8(0,{__x:16,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(new t.d8(0,{__x:5,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());o.b().add(u);f.ak(o);n.ig.util.cast(t.$aj.$type,r.series())!==null&&(f.z(r.series().thickness()),f.__stroke=r.series().actualOutline(),f.af(r.series().dashArray()));f.__fill=r.actualItemBrush();h.q(f);e=n.ig.util.cast(t.$fw.$type,r.series());e!=null&&e.actualMarkerTemplate()!=null&&e.actualMarkerTemplate().render()!=null&&(n.ig.util.cast(t.$aj.$type,r.series())!==null&&r.outline(r.series().actualOutline()),t.$mx.s(e.actualMarkerTemplate(),i))},m:function(i){var h=this,u=i.data,s=i.context,o;t.$mx.t(u);var f=new t.b6,e=new t.dx,r=new t.d6;r.__isFilled=!0;r.__startPoint={__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};r.__segments.add(new t.d8(0,{__x:0,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));r.__segments.add(new t.d8(0,{__x:11,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));r.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:16,__y:9,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());r.__segments.add(new t.d8(0,{__x:16,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));r.__segments.add(new t.d8(0,{__x:5,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));r.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());e.b().add(r);f.ak(e);n.ig.util.cast(t.$aj.$type,u.series())!==null&&(f.z(u.series().thickness()),f.__stroke=u.series().actualOutline(),f.af(u.series().dashArray()));f.__fill=u.actualItemBrush();o=new t.bz(new t.dk,s);o.q(f)},l:function(n){var r=n.data,e=n.context,u=r.series(),i,f;r.itemBrush()!=null?r.actualItemBrush(r.itemBrush()):r.actualItemBrush(u.actualBrush());i=new t.cl;i.ag(0);i.ai(n.availableHeight/2);i.ah(n.availableWidth);i.aj(n.availableHeight/2);i.z(u.thickness());i.af(u.dashArray());i.__stroke=r.actualItemBrush();f=new t.bz(new t.dk,e);f.p(i)},p:function(i){var r=i.data,u;t.$mx.t(r);u=n.ig.util.cast(t.$fw.$type,r.series());u!=null&&u.actualMarkerTemplate()!=null&&u.actualMarkerTemplate().render()!=null&&(n.ig.util.cast(t.$aj.$type,r.series())!==null&&r.outline(r.series().actualOutline()),t.$mx.s(u.actualMarkerTemplate(),i))},q:function(i){var y=this,r=i.data,a=i.context,v=r.series(),h,s;r.itemBrush()!=null?r.actualItemBrush(r.itemBrush()):r.actualItemBrush(v.actualBrush());var f=new t.b6,c=new t.dx,u=new t.d6;u.__isFilled=!0;u.__startPoint={__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};u.__segments.add(new t.d8(0,{__x:0,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(new t.d8(0,{__x:16,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(new t.d8(0,{__x:5,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());c.b().add(u);f.ak(c);n.ig.util.cast(t.$aj.$type,r.series())!==null&&(f.z(r.series().thickness()),f.__stroke=r.series().actualOutline(),f.af(r.series().dashArray()));f.__fill=r.actualItemBrush();var o=new t.b6,l=new t.dx,e=new t.d6;e.__isFilled=!0;e.__startPoint={__x:0,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};e.__segments.add(new t.d8(0,{__x:11,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));e.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:16,__y:9,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());e.__segments.add(new t.d8(0,{__x:16,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));l.b().add(e);o.ak(l);n.ig.util.cast(t.$aj.$type,r.series())!==null&&(o.z(r.series().thickness()),o.__stroke=r.series().actualOutline());n.ig.util.cast(t.$qz.$type,r.series())!==null&&(o.__fill=r.series().negativeBrush());h=new t.bz(new t.dk,a);h.q(f);h.q(o);s=n.ig.util.cast(t.$fw.$type,r.series());s!=null&&s.actualMarkerTemplate()!=null&&s.actualMarkerTemplate().render()!=null&&(n.ig.util.cast(t.$aj.$type,r.series())!==null&&r.outline(r.series().actualOutline()),t.$mx.s(s.actualMarkerTemplate(),i))},f:function(i){var v=this,r=i.data,l=i.context,a=r.series(),s;r.itemBrush()!=null?r.actualItemBrush(r.itemBrush()):r.actualItemBrush(a.actualBrush());var f=new t.b6,h=new t.dx,u=new t.d6;u.__isFilled=!0;u.__startPoint={__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};u.__segments.add(new t.d8(0,{__x:0,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(new t.d8(0,{__x:16,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(new t.d8(0,{__x:5,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());h.b().add(u);f.ak(h);n.ig.util.cast(t.$aj.$type,r.series())!==null&&(f.z(r.series().thickness()),f.__stroke=r.series().actualOutline(),f.af(r.series().dashArray()));f.__fill=r.actualItemBrush();var e=new t.b6,c=new t.dx,o=new t.d6;o.__isFilled=!0;o.__startPoint={__x:0,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};o.__segments.add(new t.d8(0,{__x:11,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));o.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:16,__y:9,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());o.__segments.add(new t.d8(0,{__x:16,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));c.b().add(o);e.ak(c);n.ig.util.cast(t.$aj.$type,r.series())!==null&&(e.z(r.series().thickness()),e.__stroke=r.series().actualOutline(),e.af(r.series().dashArray()));n.ig.util.cast(t.$q2.$type,r.series())!==null&&(e.__fill=r.series().negativeBrush());s=new t.bz(new t.dk,l);s.q(f);s.q(e)},g:function(i){var v=this,r=i.data,l=i.context,a=r.series(),s;r.itemBrush()!=null?r.actualItemBrush(r.itemBrush()):r.actualItemBrush(a.actualBrush());var f=new t.b6,h=new t.dx,u=new t.d6;u.__isFilled=!0;u.__startPoint={__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};u.__segments.add(new t.d8(0,{__x:0,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(new t.d8(0,{__x:16,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(new t.d8(0,{__x:5,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));u.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:0,__y:5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());h.b().add(u);f.ak(h);n.ig.util.cast(t.$aj.$type,r.series())!==null&&(f.z(r.series().thickness()),f.__stroke=r.series().actualOutline(),f.af(r.series().dashArray()));f.__fill=r.actualItemBrush();var e=new t.b6,c=new t.dx,o=new t.d6;o.__isFilled=!0;o.__startPoint={__x:0,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};o.__segments.add(new t.d8(0,{__x:11,__y:14,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));o.__segments.add(function(){var i=new t.d2;return i.f(new t.y(5,5)),i.b(!1),i.d({__x:16,__y:9,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());o.__segments.add(new t.d8(0,{__x:16,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));c.b().add(o);e.ak(c);n.ig.util.cast(t.$aj.$type,r.series())!==null&&(e.z(r.series().thickness()),e.__stroke=r.series().actualOutline(),e.af(r.series().dashArray()));n.ig.util.cast(t.$q2.$type,r.series())!==null&&(e.__fill=r.series().negativeBrush());s=new t.bz(new t.dk,l);s.q(f);s.q(e)},$type:new n.ig.Type("LegendTemplates",n.ig.$ot)},!0);n.ig.util.defType("Marker:fy","ContentControl",{init:function(){t.$cf.init.call(this)},_ak:null,ak:function(n){return arguments.length===1?(this._ak=n,n):this._ak},_al:null,al:function(n){return arguments.length===1?(this._al=n,n):this._al},_ah:0,ah:function(n){return arguments.length===1?(this._ah=n,n):this._ah},_ai:0,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_aj:0,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},af:0,ag:0,$type:new n.ig.Type("Marker",t.$cf.$type)},!0);n.ig.util.defType("NumericMarkerManager:n5","MarkerManagerBase",{init:function(n,i,r,u,f,e){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}var o=this;t.$n5.init1.call(this,1,i,r,u,f,e,function(){return 0})},init1:function(i,r,u,f,e,o,s){var h=this;t.$n2.init.call(this,r,u,f,e,o);this.m(!1);this.p(function(){return{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}});this.n(s)},_m:!1,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},l:function(i,r,u,f,e){var h=this.e()(),o,s;if(i.clear(),o=new t.bh(n.ig.Number.prototype.$type,0),r=Math.max(0,r),s=null,this.i(u,f,h,o),r>=o.count())s=o;else{s=new t.bh(n.ig.Number.prototype.$type,0);var a=Math.max(8,e),c=this.c(f,o,a,h),l=new t.bh(n.ig.Number.prototype.$type,1,c.keys());t.$n2.b()&&l.sort();this.k(r,c,l,s)}this.q(i,h,s)},q:function(i,r,u){for(var e,o=0;o<u.count();++o){var s=u.__inner[o],h=r[s],f=this.g()(s),c=this.h()(f);c.content()!=null&&n.ig.util.cast(t.$fl.$type,c.content()).item(f);e=new t.n6;this.m()&&e.b(this.p()(s));e.a(f);e.c({__x:h.__x,__y:h.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.containsKey(f)||i.add(f,e)}},j:function(i,r){var e=this,l=i.keys(),h,f,u,c;t.$n2.b()&&(h=new t.bh(n.ig.$op.$type,1,i.keys()),h.sort1(function(n,t){var r=i.item(n),u=i.item(t),f=Math.pow(r.c().__x,2)+Math.pow(r.c().__y,2),e=Math.pow(u.c().__x,2)+Math.pow(u.c().__y,2);return f.compareTo(e)}),l=h);f=null;u=null;switch(e.n()()){case 1:f=function(){var n=new t.n8;return n.c(.3),n.b(0),n}();u=new t.ob(t.$fy.$type);u.d(!0);break;case 2:f=function(){var n=new t.n8;return n.c(.6),n.b(2),n}();u=new t.ob(t.$fy.$type);u.d(!0);break;case 3:f=function(){var n=new t.n8;return n.c(.3),n.b(0),n}();u=new t.ob(t.$fy.$type);break;case 4:f=function(){var n=new t.n8;return n.c(.6),n.b(2),n}();u=new t.ob(t.$fy.$type)}for(c=l.getEnumerator();c.moveNext();){var a=c.current(),s=i.item(a),o=e.h()(s.a());f!=null&&u!=null?(u.k(o),u.h(e.o()(o)),u.g(s.c()),f.d(u),u.opacity()==0&&u.smartPosition(u.smartPosition()),s.c(u.e())):(o.__opacity=1,o.__visibility=0);e.r(o,s,r)}e.a()(i)},r:function(n,t){n.l(t.c().__x);n.m(t.c().__y)},$type:new n.ig.Type("NumericMarkerManager",t.$n2.$type)},!0);n.ig.util.defType("CategoryMarkerManager:ry","Object",{init:function(){n.ig.$op.init.call(this)},b:function(n,i,r,u){var e=n.jw(),f;if(r!=null&&e){for(f=0;f<i.count();++f)t.$ry.a(r,f,i,u);r.c(i.count())}},a:function(n,t,i){n.item(t).l(i.__inner[t].__x);n.item(t).m(i.__inner[t].__y)},$type:new n.ig.Type("CategoryMarkerManager",n.ig.$ot)},!0);n.ig.util.defType("MarkerManagerBucket:n3","Object",{init:function(){n.ig.$op.init.call(this)},b:null,d:function(){return this.b==null&&(this.b=new t.bh(n.ig.Number.prototype.$type,0)),this.b},c:null,e:function(){return this.c==null&&(this.c=new t.bh(n.ig.Number.prototype.$type,0)),this.c},f:function(n){var t,i;return this.e().count()>0?(t=this.e().__inner[this.e().count()-1],this.e().removeAt(this.e().count()-1),n=!0,{ret:t,wasPriority:n}):(i=this.d().__inner[this.d().count()-1],this.d().removeAt(this.d().count()-1),n=!1,{ret:i,wasPriority:n})},a:function(){return this.d().count()==0&&this.e().count()==0},$type:new n.ig.Type("MarkerManagerBucket",n.ig.$ot)},!0);n.ig.util.defType("PathRenderer:zv","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.$op.init.call(this);this.b(1)},init1:function(t,i){n.ig.$op.init.call(this);this.a(i)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},d:function(n,i,r){for(var o=t.$zx.c(i,this.b()),s=this.c(o,r),u=new t.dx,f=s.getEnumerator(),e;f.moveNext();)e=f.current(),u.b().add(e);n.ak(u)},c:function(i,r){var u=this,f=function(){return function(n,i){return{$state:0,$this:u,$current:null,$c:null,$d:null,$e:null,$f:null,$g:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$d=n.getEnumerator();this.$state=7;break;case 2:this.$c=this.$d.current();this.$state=3;break;case 3:this.$state=this.$c.take$1(t.$z.$type,2).count$1(t.$z.$type)>=2?4:6;break;case 4:return this.$e=new t.d6,this.$f=this.$c.first$1(t.$z.$type),this.$e.__startPoint=this.$f,this.$g=this.$this.e(this.$c,i),this.$e.__segments.add(this.$g),this.$current=this.$e,this.$state=5,!0;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$state=this.$d.moveNext()?2:8;break;case 8:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(i,r)};return new n.ig.GenericEnumerable$1(t.$d6.$type,f)},e:function(n,i){var r=new t.d9,u,e,f,o;if(this.a()==null)for(u=n.skip$1(t.$z.$type,1).getEnumerator();u.moveNext();)e=u.current(),r.__points.add(e);else for(f=this.a().flatten(n,i).skip$1(t.$z.$type,1).getEnumerator();f.moveNext();)o=f.current(),r.__points.add(o);return r},$type:new n.ig.Type("PathRenderer",n.ig.$ot)},!0);n.ig.util.defType("NaNSegmenter:zx","Object",{init:function(){n.ig.$op.init.call(this)},c:function(i,r){var u=this,f=function(){return function(n,i){return{$state:0,$this:u,$current:null,$c:null,$d:null,$e:!1,$f:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$c=n.getEnumerator();this.$d=new t.bh(t.$z.$type,0);this.$e=!0;this.$state=1;break;case 1:this.$state=11;break;case 2:this.$state=3;break;case 3:this.$state=t.$zx.a(this.$c.current())?4:9;break;case 4:this.$state=5;break;case 5:this.$state=this.$e||i!=1?8:6;break;case 6:return this.$e=!0,this.$f=this.$d,this.$d=new t.bh(t.$z.$type,0),this.$current=new t.mt(t.$z.$type,1,this.$f),this.$state=7,!0;case 7:this.$state=8;break;case 8:this.$state=10;break;case 9:this.$e=!1;this.$d.add(this.$c.current());this.$state=10;break;case 10:this.$state=11;break;case 11:this.$state=this.$c.moveNext()?2:12;break;case 12:return this.$current=new t.mt(t.$z.$type,1,this.$d),this.$state=13,!0;case 13:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(i,r)};return new n.ig.GenericEnumerable$1(t.$bi.$type.specialize(t.$z.$type),f)},a:function(n){return isNaN(n.__x)||isNaN(n.__y)||Number.isInfinity(n.__x)||Number.isInfinity(n.__y)},b:function(n){return!t.$zx.a(n)},$type:new n.ig.Type("NaNSegmenter",n.ig.$ot)},!0);n.ig.util.defType("IFlattener:zw","Object",{$type:new n.ig.Type("IFlattener",null)},!0);n.ig.util.defType("DefaultFlattener:zy","Object",{init:function(){n.ig.$op.init.call(this)},a:function(i,r,u,f,e,o){for(var c=new t.bh(n.ig.Number.prototype.$type,0),s=f,h=e,l=h-s+1,a;l>0;)l<=512?(t.$k3.d(c,r,u,s,h,o),s=h+1):(a=s+512-1,t.$k3.d(c,r,u,s,a,o),s=a+1),l=h-s+1;return c},c:function(i,r,u,f,e){for(var h=new t.bh(n.ig.Number.prototype.$type,0),o=u,s=f,c=s-o+1,l;c>0;)c<=512?(t.$k3.h(h,i,r,o,s,e),o=s+1):(l=o+512-1,t.$k3.h(h,i,r,o,l,e),o=l+1),c=s-o+1;return h},flatten:function(n,t){var i=this,r=function(t){return i.f(n,t)},u=function(t){return i.g(n,t)};return i.b(n,t,r,u)},d:function(n,t,i,r){return this.e(n,t,i,r)},b:function(i,r,u,f){var e=this.a(new t.bh(n.ig.Number.prototype.$type,0),u,f,0,i.count()-1,r);return new t.zz(t.$z.$type,i,e)},e:function(i,r,u,f){for(var o=this.c(i,r,0,u-1,f),s=new t.bh(t.$z.$type,0),e=0;e<o.count();e++)s.add({__x:i[o.__inner[e]],__y:r[o.__inner[e]],$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});return s},f:function(n,t){return n.item(t).__x},g:function(n,t){return n.item(t).__y},$type:new n.ig.Type("DefaultFlattener",n.ig.$ot,[t.$zw.$type])},!0);n.ig.util.defType("RenderSurface:ft","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("RenderSurface",n.ig.$ot)},!0);n.ig.util.defType("RenderRequestedEventArgs:s2","EventArgs",{init:function(){t.$en.init.call(this)},_animate:!1,animate:function(n){return arguments.length===1?(this._animate=n,n):this._animate},$type:new n.ig.Type("RenderRequestedEventArgs",t.$en.$type)},!0);n.ig.util.defType("HighlightingInfo:mj","Object",{init:function(){n.ig.$op.init.call(this);this.state(0);this.progress(0);this.isMarker(!1)},_startIndex:0,startIndex:function(n){return arguments.length===1?(this._startIndex=n,n):this._startIndex},_endIndex:0,endIndex:function(n){return arguments.length===1?(this._endIndex=n,n):this._endIndex},_state:null,state:function(n){return arguments.length===1?(this._state=n,n):this._state},_progress:0,progress:function(n){return arguments.length===1?(this._progress=n,n):this._progress},_isMarker:!1,isMarker:function(n){return arguments.length===1?(this._isMarker=n,n):this._isMarker},_series:null,series:function(n){return arguments.length===1?(this._series=n,n):this._series},$type:new n.ig.Type("HighlightingInfo",n.ig.$ot)},!0);n.ig.util.defType("HighlightingManager:mm","Object",{init:function(){this.d=new t.f0(t.$mj.$type,t.$mj.$type,0);this.f=new t.bh(t.$mj.$type,0);this.h=0;this.i=0;this.j=0;this.e=new t.f0(t.$aj.$type,t.$f.$type,0);n.ig.$op.init.call(this);this.g(new t.bh(t.$aj.$type,0))},d:null,f:null,q:function(n){n!=null&&(this.b(!0),this.d.containsKey(n)||(n.state(1),this.d.item(n,n),this.f.add(n)),n.state()==0&&n.state(1))},h:0,i:0,p:function(n){if(n!=null&&this.d.containsKey(n)){if(n.state()==1){if(n.progress()<.05){n.isMarker()?this.i=this.i+n.progress():this.h=this.h+n.progress();this.d.remove(n);this.f.remove(n);return}n.state(0)}n.state()==2&&(n.state(0),n.progress(1))}},o:function(){this.f.clear();this.d.clear()},a:function(n,t,i,r,u,f){for(var h,s=0;s<this.f.count();s++){var e=this.f.__inner[s],c=e.startIndex(),l=e.endIndex();if(r>=c&&u<=l&&e.isMarker()==f&&n==e.series()&&(e.state()==1||e.state()==2))return e}for(h=0;h<this.f.count();h++){var o=this.f.__inner[h],a=o.startIndex(),v=o.endIndex();if(r>=a&&u<=v&&o.isMarker()==f&&n==o.series()&&o.state()==0)return o}return null},j:0,_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},e:null,c:function(n){var f,s,v,l,r,y,p,tt,it,u,a,i,w,b;this.e.clear();this.g().clear();f=0;f=this.j>n?1-this.j+n:n-this.j;this.j=n;s=!1;v=new t.bh(t.$mj.$type,0);this.k(0);this.m(0);this.l(0);this.n(0);var k=!1,d=!1,h=0,e=0,c=0,o=0,g=0,nt=0;for(l=0;l<this.f.count();l++)r=this.f.__inner[l],r.state()==1&&(r.isMarker()?(k=!0,c=c+Math.min(1-r.progress(),f)):(d=!0,h=h+Math.min(1-r.progress(),f))),r.state()==0&&(r.isMarker()?(o=o+Math.min(r.progress(),f),nt++):(e=e+Math.min(r.progress(),f),g++));for(e=e+this.h,this.h=0,o=o+this.i,this.i=0,y=1,p=1,d&&e>h&&(tt=e-h,y=h/e),k&&o>c&&(it=o-c,p=c/o),a=0;a<this.f.count();a++)i=this.f.__inner[a],u=f,i.state()==0?(u=Math.min(u,i.progress()),u=i.isMarker()?u*p:u*y,i.progress(i.progress()-u)):i.progress(i.progress()+u),i.state()==2&&i.progress(1),i.progress()>1&&i.progress(1),i.progress()<0&&i.progress(0),i.isMarker()?(this.l(Math.max(i.progress(),this.l())),this.n(this.n()+i.progress())):(this.k(Math.max(i.progress(),this.k())),this.m(this.m()+i.progress())),i.state()!=0&&i.progress()!=1&&(s=!0),i.state()==0&&i.progress()!=0&&(s=!0),i.progress()==1&&i.state()==1&&i.state(2),i.progress()==0&&i.state()==0&&v.add(i),this.e.containsKey(i.series())||(this.e.add(i.series(),!0),this.g().add(i.series()));for(w=v.getEnumerator();w.moveNext();)b=w.current(),this.d.remove(b),this.f.remove(b);return this.d.count()==0&&(this.b(!1),this.k(0),this.m(0),this.l(0),this.n(0)),s||(this.j=0),s},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_n:0,n:function(n){return arguments.length===1?(this._n=n,n):this._n},$type:new n.ig.Type("HighlightingManager",n.ig.$ot)},!0);n.ig.util.defType("SeriesCollection:e3","ObservableCollection$1",{init:function(){t.$e4.init.call(this,t.$aj.$type)},collectionResetting:null,h:function(){this.collectionResetting!=null&&this.collectionResetting(this,null);t.$e4.h.call(this)},$type:new n.ig.Type("SeriesCollection",t.$e4.$type.specialize(t.$aj.$type))},!0);n.ig.util.defType("SeriesComponentsForView:s9","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("SeriesComponentsForView",n.ig.$ot)},!0);n.ig.util.defType("SeriesComponentsFromView:ua","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("SeriesComponentsFromView",n.ig.$ot)},!0);n.ig.util.defType("SeriesRenderingArguments:tz","Object",{init:function(t,i,r,u,f){n.ig.$op.init.call(this);this.c(t.transitionDuration());this.d(t);this.e(i);this.f(r);this.a(u);this.b(f)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:!1,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:!1,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("SeriesRenderingArguments",n.ig.$ot)},!0);n.ig.util.defType("SeriesRenderer$2:ty","Object",{$tFrame:null,$tView:null,_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(t,i,r,u,f,e,o,s){if(r>0){switch(r){case 1:this.init1.apply(this,arguments)}return}var h=this;this.$tFrame=t;this.$tView=i;this.$type=this.$type.specialize(this.$tFrame,this.$tView);n.ig.$op.init.call(this);this.d(u);this.e(f);this.c(function(){});this.f(e);this.b(o);this.a(s)},init1:function(t,i,r,u,f,e,o,s,h){this.$tFrame=t;this.$tView=i;this.$type=this.$type.specialize(this.$tFrame,this.$tView);n.ig.$op.init.call(this);this.d(u);this.e(f);this.c(h);this.f(e);this.b(o);this.a(s)},g:function(n,t,i,r,u){var e=0,f;return e=n.c(),n.a()&&e>0&&!n.b()?(f=t,this.f()()?(this.a()(),t=r,r=f):(t=i,i=f),this.c()(i),this.d()(i,u),this.b()()):(n.b()||(this.c()(i),this.d()(i,u)),this.e()(i,u)),{previousFrame:t,currentFrame:i,transitionFrame:r}},$type:new n.ig.Type("SeriesRenderer$2",n.ig.$ot)},!0);n.ig.util.defType("IFastItemsSourceProvider:j5","Object",{$type:new n.ig.Type("IFastItemsSourceProvider",null)},!0);n.ig.util.defType("SyncLink:on","FrameworkElement",{init:function(){var i=this;this.ac=new t.f0(n.ig.IEnumerable.prototype.$type,t.$op.$type,0);t.$al.init.call(this);this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,function(n,t){i.aj(n,t.propertyName(),t.oldValue(),t.newValue())});this.y(new t.oo);this.y().collectionChanged=n.ig.Delegate.prototype.combine(this.y().collectionChanged,this.ag.runOn(this));this.am(new t.x(0,0,0,1,1))},_syncChannel:null,syncChannel:function(n){return arguments.length===1?(this._syncChannel=n,n):this._syncChannel},aj:function(){},releaseFastItemsSource:function(n){var i=this,t;return n!=null&&(t=null,function(){var r=i.ac.tryGetValue(n,t);return t=r.value,r.ret}()&&(--t.b,t.b==0&&i.ac.remove(n))),null},_fastItemsSourceFactory:null,fastItemsSourceFactory:function(n){return arguments.length===1?(this._fastItemsSourceFactory=n,n):this._fastItemsSourceFactory},aa:function(n){var i=this;return function(){var i=new t.m9;return i.itemsSource(n),i}()},getFastItemsSource:function(n){var u=this,r,i;return t.$on.fastItemsSourceFactory()==null&&t.$on.fastItemsSourceFactory(t.$on.aa),r=null,n!=null&&(i=null,function(){var t=u.ac.tryGetValue(n,i);return i=t.value,t.ret}()||(r=t.$on.fastItemsSourceFactory()(n),i=new t.op(r),u.ac.add(n,i)),i.b++,r=i.a),r},peekItemsSource:function(n){var r=this,i=null,t;if(n!=null){if(t=null,!function(){var i=r.ac.tryGetValue(n,t);return t=i.value,i.ret}())return null;i=t.a}return i},ac:null,_am:null,am:function(n){return arguments.length===1?(this._am=n,n):this._am},an:function(n,i,r){var nt=this,e,c,w,b;if(!r.isEmpty()){e=n.windowRectMinWidth();i==n?(i.isZoomingHorizontallyEnabled()||(r.x(i.windowRect().x()),r.width(i.windowRect().width())),i.isZoomingVerticallyEnabled()||(r.y(i.windowRect().y()),r.height(i.windowRect().height()))):(c=t.$oq.a(i),c!=null&&c.synchronizeHorizontally()||(r.x(i.windowRect().x()),r.width(i.windowRect().width())),c!=null&&c.synchronizeVertically()||(r.y(i.windowRect().y()),r.height(i.windowRect().height())));var k=.5*(r.left()+r.right()),d=.5*(r.top()+r.bottom()),u=t.$es.c(r.width(),e,1),f=t.$es.c(r.height(),e,1);if(n.useFixedAspectZoom()&&!n.viewportRect().isEmpty()){var o=n.viewportRect(),p=o.width()/o.height(),l=u*o.width(),a=f*o.height(),g=l/a;g!=p&&(a*p>l?(l=a*p,u=l/o.width()):(a=l/p,f=a/o.height()))}else n.br()&&(w=!1,b=!1,Math.abs(u-n.actualWindowRect().width())>e&&(w=!0),Math.abs(f-n.actualWindowRect().height())>e&&(b=!0),function(){var t=n.gv(u,f,w,b);return u=t.width,f=t.height,t.ret}(),u=t.$es.c(u,e,1),f=t.$es.c(f,e,1));var s=k-.5*u,h=d-.5*f,v=k+.5*u,y=d+.5*f;s<0&&(s=0,v=s+u);v>1&&(v=1,s=v-u);h<0&&(h=0,y=h+f);y>1&&(y=1,h=y-f);r=new t.x(0,s,h,v-s,y-h)}return r},charts:function(){return this.y()},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},ag:function(n,t){var r,i;if(t.newItems()!=null)for(r=t.newItems().getEnumerator();r.moveNext();)i=r.current(),i.windowRect().isEmpty()&&i.windowRect(this.an(null,i,this.am()))},ah:function(n,i){for(var e=this.charts().getEnumerator(),r,f,u;e.moveNext();)r=e.current(),r==n?r.crosshairPoint(i):(f=i,u=t.$oq.a(r),u!=null&&u.synchronizeHorizontally()||(f.__x=NaN),u!=null&&u.synchronizeVertically()||(f.__y=NaN),r.crosshairPoint(f))},ai:function(n,t){for(var r=this.charts().getEnumerator(),i;r.moveNext();)i=r.current(),i.previewRect(this.an(n,i,t))},al:function(n,i){var f=i.isEmpty()||isNaN(i.x())||isNaN(i.y())||isNaN(i.width())||isNaN(i.height()),u,r;if(t.$os.b(!f,"SyncLink attempted to apply an invalid WindowRect"),!f&&!n.bp())for(u=this.charts().getEnumerator();u.moveNext();)r=u.current(),r.bp(!0),r.windowRect(this.an(n,r,i)),r.bp(!1)},propertyChanged:null,propertyUpdated:null,ak:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},$type:new n.ig.Type("SyncLink",t.$al.$type,[t.$a8.$type,t.$j5.$type])},!0);n.ig.util.defType("FastItemsSourceReference:op","Object",{init:function(t){n.ig.$op.init.call(this);this.a=t;this.b=0},a:null,b:0,$type:new n.ig.Type("FastItemsSourceReference",n.ig.$ot)},!0);n.ig.util.defType("SyncSettings:l6","FrameworkElement",{init:function(){t.$al.init.call(this)},syncChannel:function(n){return arguments.length===1?(this.g(t.$l6.syncChannelProperty,n),n):this.c(t.$l6.syncChannelProperty)},synchronizeVertically:function(n){return arguments.length===1?(this.g(t.$l6.synchronizeVerticallyProperty,n),n):this.c(t.$l6.synchronizeVerticallyProperty)},synchronizeHorizontally:function(n){return arguments.length===1?(this.g(t.$l6.synchronizeHorizontallyProperty,n),n):this.c(t.$l6.synchronizeHorizontallyProperty)},af:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},propertyChanged:null,propertyUpdated:null,$type:new n.ig.Type("SyncSettings",t.$al.$type,[t.$a8.$type])},!0);n.ig.util.defType("SyncSettingsConverter:z1","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("SyncSettingsConverter",n.ig.$ot)},!0);n.ig.util.defType("SyncLinkManager:or","Object",{instance:function(){return t.$or.b==null&&(t.$or.b=new t.or),t.$or.b},d:null,e:function(){return this.d.count()},init:function(){n.ig.$op.init.call(this);this.d=new t.f0(String,t.$on.$type,0)},getLink:function(n){var r=this,i;return function(){var t=r.d.tryGetValue(n,i);return i=t.value,t.ret}()?i:(i=new t.on,i.syncChannel(n),r.d.add(n,i),i)},releaseLink:function(n){n.charts().count()==0&&n.syncChannel()!=null&&this.d.containsKey(n.syncChannel())&&this.d.remove(n.syncChannel())},$type:new n.ig.Type("SyncLinkManager",n.ig.$ot)},!0);n.ig.util.defType("SyncManager:oq","Object",{init:function(){n.ig.$op.init.call(this)},e:function(n){var i=t.$oq.a(n);i!=null&&n.b0()&&n.syncChannel()==i.syncChannel()&&t.$oq.b(n,n.syncChannel(),null)},c:function(n){var i=t.$oq.a(n),r;i!=null&&(n.b0()&&n.syncChannel()==i.syncChannel()||(r=null,n.b0()&&(r=n.syncChannel()),t.$oq.b(n,r,i.syncChannel())))},b:function(n,i,r){var u,f;n!=null&&(String.isNullOrEmpty(r)?(u=n.actualSyncLink(),n.actualSyncLink(null),n.actualSyncLink(new t.on),u!=null&&t.$or.instance().releaseLink(u),n.syncChannel(null)):(String.isNullOrEmpty(i)||(f=n.actualSyncLink(),n.actualSyncLink(null),f!=null&&t.$or.instance().releaseLink(f)),n.actualSyncLink(t.$or.instance().getLink(r)),n.syncChannel(r)))},d:function(n,t){n.syncSettings(t)},a:function(n){return n.syncSettings()},$type:new n.ig.Type("SyncManager",n.ig.$ot)},!0);n.ig.util.defType("DefaultCategoryTrendlineHost:ru","Object",{init:function(){n.ig.$op.init.call(this);this.a=new t.rv},a:null,trendlinePreparer:function(){return this.a},trendLineType:function(){return 0},trendLinePeriod:function(){return 1},$type:new n.ig.Type("DefaultCategoryTrendlineHost",n.ig.$ot,[t.$ki.$type])},!0);n.ig.util.defType("DefaultCategoryTrendlinePreparer:rv","Object",{init:function(){n.ig.$op.init.call(this)},prepareLine:function(){},$type:new n.ig.Type("DefaultCategoryTrendlinePreparer",n.ig.$ot,[t.$kl.$type])},!0);n.ig.util.defType("TrendResolutionParams:km","Object",{init:function(){n.ig.$op.init.call(this)},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("TrendResolutionParams",n.ig.$ot)},!0);n.ig.util.defType("TrendFitCalculator:k9","Object",{init:function(){n.ig.$op.init.call(this)},a:function(i,r,u,f,e,o,s,h,c,l,a){var p;if(f==null)switch(r){case 1:f=t.$la.k(e,o,s);break;case 2:f=t.$la.o(e,o,s);break;case 3:f=t.$la.i(e,o,s);break;case 4:f=t.$la.p(e,o,s);break;case 5:f=t.$la.q(e,o,s);break;case 7:f=t.$la.j(e,o,s);break;case 6:f=t.$la.l(e,o,s);break;case 8:f=t.$la.n(e,o,s);break;default:throw new t.f5;}if(f==null)return null;for(p=0;p<u.f().width();p+=2){var w=p/(u.f().width()-1),y=l+w*(a-l),v=NaN;switch(r){case 1:v=t.$la.ad(f,y);break;case 2:v=t.$la.ah(f,y);break;case 3:v=t.$la.ab(f,y);break;case 4:v=t.$la.ai(f,y);break;case 5:v=t.$la.aj(f,y);break;case 7:v=t.$la.ac(f,y);break;case 6:v=t.$la.ae(f,y);break;case 8:v=t.$la.ag(f,y);break;default:throw new t.f5;}y=h(y);v=c(v);isNaN(v)||Number.isInfinity(v)||i.add({__x:y+u.a(),__y:v,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}return f},$type:new n.ig.Type("TrendFitCalculator",n.ig.$ot)},!0);n.ig.util.defType("TrendAverageCalculator:lc","Object",{init:function(){n.ig.$op.init.call(this)},a:function(n,i,r){var u;switch(n){case 9:case 10:case 11:case 13:r<1&&(r=1)}switch(n){case 9:u=t.$aj.sMA(i,r);break;case 10:u=t.$aj.eMA(i,r);break;case 11:u=t.$aj.mMA(i,r);break;case 12:u=t.$aj.cMA(i);break;case 13:u=t.$aj.wMA(i,r);break;default:throw new t.f5;}return u},b:function(n,i,r,u){var e,f,o;if(i.count()==0)for(e=t.$lc.a(n,r,u),f=e.getEnumerator();f.moveNext();)o=f.current(),i.add(o)},c:function(i,r,u,f,e){if(r.count()==0)for(var o=t.$lc.a(i,u,e).getEnumerator(),s=t.$lc.a(i,f,e).getEnumerator();o.moveNext()&&s.moveNext();)r.add({__x:o.current(),__y:s.current(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("TrendAverageCalculator",n.ig.$ot)},!0);n.ig.util.defType("PolarTrendLineManager:t4","TrendLineManagerBase$1",{init:function(){t.$kw.init.call(this,t.$z.$type)},ae:function(i,r,u,f,e,o,s,h,c,l,a){var v=this,tt=l,it=a,b=new t.bh(t.$z.$type,0),y,p,w,k;if(!h.g().isEmpty()&&!h.f().isEmpty()){if(y=null,p=null,u!=null&&(y=u.toList$1(Number)),f!=null&&(p=f.toList$1(Number)),w=0,y!=null&&(w=y.count()),p!=null&&(w=Math.min(w,p.count())),r==0){v.a(null);v.e().clear();return}if(v.c(r)&&(v.e().clear(),v.a(t.$k9.a(b,r,h,v.a(),w,function(n){return y.item(n)},function(n){return p.item(n)},o,s,tt,it))),v.b(r))for(v.a(null),t.$lc.c(r,v.e(),u,f,e),k=v.e().getEnumerator();k.moveNext();){var d=k.current(),g=o(d.__x),nt=s(d.__y);isNaN(g)||isNaN(nt)||b.add({__x:g,__y:nt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}b.count()>0&&v.s(b,h,i,c)}},_z:!1,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_ab:0,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},_aa:0,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_ac:null,ac:function(n){return arguments.length===1?(this._ac=n,n):this._ac},_ad:null,ad:function(n){return arguments.length===1?(this._ad=n,n):this._ad},s:function(n,i,r,u){var f=this,e;u!=null&&u.i(r);e=function(){var r=new t.t5;return r.m(function(t){return n.item(t).__x}),r.n(function(t){return n.item(t).__y}),r.a(u),r.q(n.count()),r.l(i.b()),r.o(function(t){return f.ac()(n.item(t).__x,n.item(t).__y)}),r.p(function(t){return f.ad()(n.item(t).__x,n.item(t).__y)}),r.f(f.z()),r.b(f.y()),r.ab(i.f()),r.ac(i.g()),r}();e.w()},$type:new n.ig.Type("PolarTrendLineManager",t.$kw.$type.specialize(t.$z.$type))},!0);n.ig.util.defType("RadialTrendLineManager:y9","TrendLineManagerBase$1",{init:function(){t.$kw.init.call(this,Number)},ac:function(i,r,u,f,e,o,s,h){var c=this,w=s.d()*s.c(),b=s.e()*s.c(),a=new t.bh(t.$z.$type,0),v,l,y,p;if(!s.g().isEmpty()&&!s.f().isEmpty()){if(r==0){c.a(null);c.e().clear();return}if(c.c(r)&&(c.e().clear(),c.a(t.$k9.a(a,r,s,c.a(),u.count(),function(n){return n+1},function(n){return u.item(n)},function(n){return e(n-1)},o,w+1,b+1))),c.b(r))for(c.a(null),t.$lc.b(r,c.e(),u,f),v=s.d();v<=s.e();v+=1)l=v%u.count()*s.c(),l>=0&&l<c.e().count()&&(y=e(l),p=o(c.e().__inner[l]),isNaN(y)||isNaN(p)||a.add({__x:y+s.a(),__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));a.count()>0&&c.s(a,s,i,h)}},_z:0,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_y:0,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_aa:null,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},r:function(n,t,i){this.s(n,t,i,null)},s:function(n,i,r,u){var f=this,e;u!=null&&u.i(r);e=function(){var r=new t.t5;return r.m(function(t){return n.item(t).__x}),r.n(function(t){return n.item(t).__y}),r.a(u),r.q(n.count()),r.l(i.b()),r.o(function(t){return f.aa()(n.item(t).__x,n.item(t).__y)}),r.p(function(t){return f.ab()(n.item(t).__x,n.item(t).__y)}),r.f(!0),r.ab(i.f()),r.ac(i.g()),r}();e.w()},$type:new n.ig.Type("RadialTrendLineManager",t.$kw.$type.specialize(Number))},!0);n.ig.util.defType("ScatterTrendLineManager:n4","TrendLineManagerBase$1",{init:function(){t.$kw.init.call(this,t.$z.$type)},y:function(i,r,u,f,e,o,s,h,c,l,a){var v=this,g=l,nt=a,p=new t.bh(t.$z.$type,0),y=0,w;if(u!=null&&(y=u.count()),f!=null&&(y=Math.min(y,f.count())),!h.g().isEmpty()&&!h.f().isEmpty()){if(r==0)v.a(null),v.e().clear();else if(v.c(r))v.e().clear(),v.a(t.$k9.a(p,r,h,v.a(),y,function(n){return u.item(n)},function(n){return f.item(n)},o,s,g,nt));else if(v.b(r))for(v.a(null),v.e().clear(),t.$lc.c(r,v.e(),u,f,e),w=v.e().getEnumerator();w.moveNext();){var b=w.current(),k=o(b.__x),d=s(b.__y);isNaN(k)||isNaN(d)||p.add({__x:k,__y:d,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}v.s(p,h,i,c)}},$type:new n.ig.Type("ScatterTrendLineManager",t.$kw.$type.specialize(t.$z.$type))},!0);n.ig.util.defType("SortingTrendLineManager:k8","CategoryTrendLineManagerBase",{init:function(n,i){t.$kv.init.call(this);this.z(n);this.aa(i)},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_aa:null,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},prepareLine:function(i,r,u,f,e,o,s){var h=this,b=s.d()*s.c(),a=s.e()*s.c(),v=new t.bh(t.$z.$type,0),l,c,y,p,w;if(r==0){h.a(null);h.e().clear();return}if(h.c(r)&&(h.e().clear(),h.a(t.$k9.a(v,r,s,h.a(),u.count(),function(n){return n+1},function(n){return u.item(n)},function(n){var t=Math.floor(n),i=Math.ceil(n),r=n-t,u;return u=i<=a?h.z()(t)+r*(h.z()(i)-h.z()(t)):h.z()(t)+r*(h.z()(a)-h.z()(t)),e(u)},o,b,a))),h.b(r))for(h.a(null),t.$lc.b(r,h.e(),u,f),l=s.d();l<=s.e();l+=1)c=l*s.c(),y=h.z()(c),c>=0&&c<h.e().count()&&(p=e(y),w=o(h.e().__inner[c]),v.add({__x:p+s.a(),__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));h.r(v,s,i)},$type:new n.ig.Type("SortingTrendLineManager",t.$kv.$type)},!0);n.ig.util.defType("ErrorBarSettingsBase:oe","DependencyObject",{init:function(){t.$an.init.call(this);this.l(new t.a4)},l:function(n){return arguments.length===1?(this.g(t.$oe.defaultErrorBarStyleProperty,n),n):this.c(t.$oe.defaultErrorBarStyleProperty)},propertyChanged:null,propertyUpdated:null,j:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},$type:new n.ig.Type("ErrorBarSettingsBase",t.$an.$type,[t.$a8.$type])},!0);n.ig.util.defType("CategoryErrorBarSettings:z4","ErrorBarSettingsBase",{init:function(){t.$oe.init.call(this);this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,this.z.runOn(this))},enableErrorBars:function(n){return arguments.length===1?(this.g(t.$z4.enableErrorBarsProperty,n),n):this.c(t.$z4.enableErrorBarsProperty)},errorBarCapLength:function(n){return arguments.length===1?(this.g(t.$z4.errorBarCapLengthProperty,n),n):this.c(t.$z4.errorBarCapLengthProperty)},calculator:function(n){return arguments.length===1?(this.g(t.$z4.calculatorProperty,n),n):this.c(t.$z4.calculatorProperty)},stroke:function(n){return arguments.length===1?(this.g(t.$z4.strokeProperty,n),n):this.c(t.$z4.strokeProperty)},strokeThickness:function(n){return arguments.length===1?(this.g(t.$z4.strokeThicknessProperty,n),n):this.c(t.$z4.strokeThicknessProperty)},errorBarStyle:function(n){return arguments.length===1?(this.g(t.$z4.errorBarStyleProperty,n),n):this.c(t.$z4.errorBarStyleProperty)},n:null,o:function(n){return arguments.length===1?(this.n=n,n):this.n},z:function(i,r){var u,f;switch(r.propertyName()){case"Calculator":u=n.ig.util.cast(t.$oh.$type,r.oldValue());u!=null&&(u.changed=n.ig.Delegate.prototype.remove(u.changed,this.y.runOn(this)));this.o()!=null&&(this.o().renderSeries(!1),this.o().seriesViewer()!=null&&this.o().gy());f=n.ig.util.cast(t.$oh.$type,r.newValue());f!=null&&(f.changed=n.ig.Delegate.prototype.combine(f.changed,this.y.runOn(this)));break;case"EnableErrorBars":case"ErrorBarCapLength":case"ErrorBarStyle":case"Stroke":case"StrokeThickness":this.o()!=null&&(this.o().renderSeries(!1),this.o().seriesViewer()!=null&&this.o().gy())}},y:function(i){var r=n.ig.util.cast(t.$oh.$type,i);r!=null&&(r.changed=n.ig.Delegate.prototype.remove(r.changed,this.y.runOn(this)),this.o()!=null&&this.o().renderSeries(!1),r.changed=n.ig.Delegate.prototype.combine(r.changed,this.y.runOn(this)))},$type:new n.ig.Type("CategoryErrorBarSettings",t.$oe.$type)},!0);n.ig.util.defType("ErrorBarsHelper:ot","Object",{init:function(t,i){n.ig.$op.init.call(this);this.b(t);this.a(i)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},c:function(n){var t=n.getCalculatorType();return t==1||t==2?!1:!0},k:function(n,t){return n.hasConstantPosition()&&(t=n.getPosition()),{position:t}},l:function(n,i,r){var o=this,u,f;(function(){var n=o.a().getViewInfo(f,u);return f=n.viewportRect,u=n.windowRect,n.ret})();var e=new t.iu(u,f,i.isInverted()),s=i.getScaledValue(i.referenceValue(),e),h=n.getIndependentValue();return r=Math.abs(Math.round(s-i.getScaledValue(h,e))),{errorBarSize:r}},i:function(n,i,r,u){var s=this,f,e;(function(){var n=s.a().getViewInfo(e,f);return e=n.viewportRect,f=n.windowRect,n.ret})();var o=new t.iu(f,e,r.isInverted()),h=r.getUnscaledValue(n,o),c=i.getDependentValue(h),l=r.getScaledValue(r.referenceValue(),o);return u=Math.abs(Math.round(l-r.getScaledValue(c,o))),{errorBarSize:u}},h:function(n,i,r,u,f){var h=this,e,o;(function(){var n=h.a().getViewInfo(o,e);return o=n.viewportRect,e=n.windowRect,n.ret})();var c=new t.iu(e,o,r.isInverted()),s=new t.iu(e,o,u.isInverted()),l=r.getUnscaledValue(n,c),a=i.getDependentValue(l),v=u.getScaledValue(u.referenceValue(),s);return f=Math.abs(Math.round(v-u.getScaledValue(a,s))),{errorBarSize:f}},j:function(n,i,r){var s=this,u,f,e,o;return function(){var n=s.a().getViewInfo(f,u);return f=n.viewportRect,u=n.windowRect,n.ret}(),e=new t.iu(u,f,i.isInverted()),o=i.getScaledValue(i.referenceValue(),e),r=Math.abs(Math.round(o-i.getScaledValue(n,e))),{errorBarSize:r}},g:function(){},f:function(){},d:function(n,i,r,u){var h=this,f=new t.z(0),e,o,s;return n.getCalculatorType()==3?(function(){var n=h.a().getViewInfo(o,e);return o=n.viewportRect,e=n.windowRect,n.ret}(),s=new t.iu(e,o,i.isInverted()),f.__x=Math.round(i.getScaledValue(u,s)),f.__y=Math.round(r.__y)):(f.__x=Math.round(r.__x),f.__y=Math.round(r.__y)),f},e:function(n,i,r,u){var h=this,f=new t.z(0),e,o,s;return n.getCalculatorType()==3?(function(){var n=h.a().getViewInfo(o,e);return o=n.viewportRect,e=n.windowRect,n.ret}(),s=new t.iu(e,o,i.isInverted()),f.__x=Math.round(r.__x),f.__y=Math.round(i.getScaledValue(u,s))):(f.__x=Math.round(r.__x),f.__y=Math.round(r.__y)),f},$type:new n.ig.Type("ErrorBarsHelper",n.ig.$ot)},!0);n.ig.util.defType("ScatterErrorBarSettings:od","ErrorBarSettingsBase",{init:function(){t.$oe.init.call(this);this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,this.an.runOn(this))},enableErrorBarsHorizontal:function(n){return arguments.length===1?(this.g(t.$od.enableErrorBarsHorizontalProperty,n),n):this.c(t.$od.enableErrorBarsHorizontalProperty)},horizontalCalculatorReference:function(n){return arguments.length===1?(this.g(t.$od.horizontalCalculatorReferenceProperty,n),n):this.c(t.$od.horizontalCalculatorReferenceProperty)},horizontalCalculator:function(n){return arguments.length===1?(this.g(t.$od.horizontalCalculatorProperty,n),n):this.c(t.$od.horizontalCalculatorProperty)},horizontalErrorBarCapLength:function(n){return arguments.length===1?(this.g(t.$od.horizontalErrorBarCapLengthProperty,n),n):this.c(t.$od.horizontalErrorBarCapLengthProperty)},horizontalStroke:function(n){return arguments.length===1?(this.g(t.$od.horizontalStrokeProperty,n),n):this.c(t.$od.horizontalStrokeProperty)},horizontalStrokeThickness:function(n){return arguments.length===1?(this.g(t.$od.horizontalStrokeThicknessProperty,n),n):this.c(t.$od.horizontalStrokeThicknessProperty)},horizontalErrorBarStyle:function(n){return arguments.length===1?(this.g(t.$od.horizontalErrorBarStyleProperty,n),n):this.c(t.$od.horizontalErrorBarStyleProperty)},enableErrorBarsVertical:function(n){return arguments.length===1?(this.g(t.$od.enableErrorBarsVerticalProperty,n),n):this.c(t.$od.enableErrorBarsVerticalProperty)},verticalCalculatorReference:function(n){return arguments.length===1?(this.g(t.$od.verticalCalculatorReferenceProperty,n),n):this.c(t.$od.verticalCalculatorReferenceProperty)},verticalCalculator:function(n){return arguments.length===1?(this.g(t.$od.verticalCalculatorProperty,n),n):this.c(t.$od.verticalCalculatorProperty)},verticalErrorBarCapLength:function(n){return arguments.length===1?(this.g(t.$od.verticalErrorBarCapLengthProperty,n),n):this.c(t.$od.verticalErrorBarCapLengthProperty)},verticalStroke:function(n){return arguments.length===1?(this.g(t.$od.verticalStrokeProperty,n),n):this.c(t.$od.verticalStrokeProperty)},verticalStrokeThickness:function(n){return arguments.length===1?(this.g(t.$od.verticalStrokeThicknessProperty,n),n):this.c(t.$od.verticalStrokeThicknessProperty)},verticalErrorBarStyle:function(n){return arguments.length===1?(this.g(t.$od.verticalErrorBarStyleProperty,n),n):this.c(t.$od.verticalErrorBarStyleProperty)},o:null,p:function(n){return arguments.length===1?(this.o=n,n):this.o},an:function(i,r){var u,f;switch(r.propertyName()){case"HorizontalCalculator":case"VerticalCalculator":u=n.ig.util.cast(t.$oh.$type,r.oldValue());u!=null&&(u.changed=n.ig.Delegate.prototype.remove(u.changed,this.am.runOn(this)));this.p()!=null&&(this.p().renderSeries(!1),this.p().seriesViewer()!=null&&this.p().gy());f=n.ig.util.cast(t.$oh.$type,r.newValue());f!=null&&(f.changed=n.ig.Delegate.prototype.combine(f.changed,this.am.runOn(this)));break;case"EnableErrorBarsHorizontal":case"EnableErrorBarsVertical":case"HorizontalCalculatorReference":case"HorizontalErrorBarCapLength":case"HorizontalErrorBarStyle":case"HorizontalStroke":case"HorizontalStrokeThickness":case"VerticalCalculatorReference":case"VerticalErrorBarCapLength":case"VerticalErrorBarStyle":case"VerticalStroke":case"VerticalStrokeThickness":this.p()!=null&&(this.p().renderSeries(!1),this.p().seriesViewer()!=null&&this.p().gy())}},am:function(i){var r=n.ig.util.cast(t.$oh.$type,i);r!=null&&(r.changed=n.ig.Delegate.prototype.remove(r.changed,this.am.runOn(this)),this.p()!=null&&this.p().renderSeries(!1),r.changed=n.ig.Delegate.prototype.combine(r.changed,this.am.runOn(this)))},$type:new n.ig.Type("ScatterErrorBarSettings",t.$oe.$type)},!0);n.ig.util.defType("AxisRangeChangedEventArgs:il","EventArgs",{init:function(n,i,r,u){t.$en.init.call(this);this.oldMinimumValue(n);this.minimumValue(i);this.oldMaximumValue(r);this.maximumValue(u)},_oldMinimumValue:0,oldMinimumValue:function(n){return arguments.length===1?(this._oldMinimumValue=n,n):this._oldMinimumValue},_minimumValue:0,minimumValue:function(n){return arguments.length===1?(this._minimumValue=n,n):this._minimumValue},_oldMaximumValue:0,oldMaximumValue:function(n){return arguments.length===1?(this._oldMaximumValue=n,n):this._oldMaximumValue},_maximumValue:0,maximumValue:function(n){return arguments.length===1?(this._maximumValue=n,n):this._maximumValue},$type:new n.ig.Type("AxisRangeChangedEventArgs",t.$en.$type)},!0);n.ig.util.defType("DataChartMouseButtonEventArgs:no","EventArgs",{init:function(n,i,r,u){t.$en.init.call(this);this.chart(n);this.series(i);this.item(r);this.originalEvent(u)},toString:function(){return this.chart().name()+", "+this.series().name()+", "+(this.item()!=null?this.item().toString():"")+", "+this.getPosition(null).toString()},_originalEvent:null,originalEvent:function(n){return arguments.length===1?(this._originalEvent=n,n):this._originalEvent},handled:function(n){return arguments.length===1?(this.originalEvent().handled(n),n):this.originalEvent().handled()},getPosition:function(n){return this.originalEvent().getPosition(n)},originalSource:function(){return this.originalEvent().originalSource()},_item:null,item:function(n){return arguments.length===1?(this._item=n,n):this._item},_series:null,series:function(n){return arguments.length===1?(this._series=n,n):this._series},_chart:null,chart:function(n){return arguments.length===1?(this._chart=n,n):this._chart},$type:new n.ig.Type("DataChartMouseButtonEventArgs",t.$en.$type)},!0);n.ig.util.defType("DataChartLegendMouseButtonEventArgs:nn","DataChartMouseButtonEventArgs",{init:function(n,i,r,u,f){t.$no.init.call(this,n,i,r,u);this.legendItem(f)},_legendItem:null,legendItem:function(n){return arguments.length===1?(this._legendItem=n,n):this._legendItem},$type:new n.ig.Type("DataChartLegendMouseButtonEventArgs",t.$no.$type)},!0);n.ig.util.defType("ChartMouseEventArgs:nq","EventArgs",{init:function(n,i,r,u){t.$en.init.call(this);this.chart(n);this.series(i);this.item(r);this.originalEvent(u)},toString:function(){return this.chart().name()+", "+this.series().name()+", "+(this.item()!=null?this.item().toString():"")+", "+this.getPosition(null).toString()},_originalEvent:null,originalEvent:function(n){return arguments.length===1?(this._originalEvent=n,n):this._originalEvent},getPosition:function(n){return this.originalEvent().getPosition(n)},originalSource:function(){return this.originalEvent().originalSource()},_item:null,item:function(n){return arguments.length===1?(this._item=n,n):this._item},_series:null,series:function(n){return arguments.length===1?(this._series=n,n):this._series},_chart:null,chart:function(n){return arguments.length===1?(this._chart=n,n):this._chart},$type:new n.ig.Type("ChartMouseEventArgs",t.$en.$type)},!0);n.ig.util.defType("ChartLegendMouseEventArgs:np","ChartMouseEventArgs",{init:function(n,i,r,u,f){t.$nq.init.call(this,n,i,r,u);this.legendItem(f)},_legendItem:null,legendItem:function(n){return arguments.length===1?(this._legendItem=n,n):this._legendItem},$type:new n.ig.Type("ChartLegendMouseEventArgs",t.$nq.$type)},!0);n.ig.util.defType("ChartCursorEventArgs:tn","EventArgs",{init:function(n,i,r){t.$en.init.call(this);this.seriesViewer(n);this.series(i);this.item(r)},toString:function(){return this.seriesViewer().name()+", "+this.series().name()+", "+(this.item()!=null?this.item().toString():"")},_item:null,item:function(n){return arguments.length===1?(this._item=n,n):this._item},_series:null,series:function(n){return arguments.length===1?(this._series=n,n):this._series},_seriesViewer:null,seriesViewer:function(n){return arguments.length===1?(this._seriesViewer=n,n):this._seriesViewer},chart:function(){return n.ig.util.cast(t.$bd.$type,this.seriesViewer())},$type:new n.ig.Type("ChartCursorEventArgs",t.$en.$type)},!0);n.ig.util.defType("FinancialEventArgs:ra","EventArgs",{init:function(n,i,r,u){t.$en.init.call(this);this.position(n);this.count(i);this.dataSource(r);this.supportingCalculations(u)},_position:0,position:function(n){return arguments.length===1?(this._position=n,n):this._position},_count:0,count:function(n){return arguments.length===1?(this._count=n,n):this._count},_dataSource:null,dataSource:function(n){return arguments.length===1?(this._dataSource=n,n):this._dataSource},_supportingCalculations:null,supportingCalculations:function(n){return arguments.length===1?(this._supportingCalculations=n,n):this._supportingCalculations},_basedOn:null,basedOn:function(n){return arguments.length===1?(this._basedOn=n,n):this._basedOn},$type:new n.ig.Type("FinancialEventArgs",t.$en.$type)},!0);n.ig.util.defType("PropertyUpdatedEventArgs:hj","EventArgs",{init:function(n,i,r){t.$en.init.call(this);this.propertyName(n);this.oldValue(i);this.newValue(r)},_propertyName:null,propertyName:function(n){return arguments.length===1?(this._propertyName=n,n):this._propertyName},_oldValue:null,oldValue:function(n){return arguments.length===1?(this._oldValue=n,n):this._oldValue},_newValue:null,newValue:function(n){return arguments.length===1?(this._newValue=n,n):this._newValue},$type:new n.ig.Type("PropertyUpdatedEventArgs",t.$en.$type)},!0);n.ig.util.defType("SliceClickEventArgs:nv","EventArgs",{init:function(n){(t.$en.init.call(this),this.slice(n),n!=null)&&(this.isSelected(n.isSelected()),this.isExploded(n.isExploded()))},_slice:null,slice:function(n){return arguments.length===1?(this._slice=n,n):this._slice},isSelected:function(n){return arguments.length===1?(this.d=n,this.slice().isSelected(n),n):this.d},d:!1,isExploded:function(n){return arguments.length===1?(this.c=n,this.slice().isExploded(n),n):this.c},c:!1,isOthersSlice:function(){return this.slice().ao()},dataContext:function(){return this.slice()!=null?this.slice().dataContext():null},$type:new n.ig.Type("SliceClickEventArgs",t.$en.$type)},!0);n.ig.util.defType("FinancialPriceSeries:z5","FinancialSeries",{au:function(){return new t.z6(this)},hc:function(n){t.$q2.hc.call(this,n);this.m1(n)},_m1:null,m1:function(n){return arguments.length===1?(this._m1=n,n):this._m1},init:function(){t.$q2.init.call(this);this.y(t.$z5.$type);this.jw=new t.ks(5);this.jy=new t.ks(5);this.jv=new t.ks(5)},trendLineType:function(n){return arguments.length===1?(this.g(t.$z5.trendLineTypeProperty,n),n):this.c(t.$z5.trendLineTypeProperty)},trendLineBrush:function(n){return arguments.length===1?(this.g(t.$z5.trendLineBrushProperty,n),n):this.c(t.$z5.trendLineBrushProperty)},actualTrendLineBrush:function(n){return arguments.length===1?(this.g(t.$z5.actualTrendLineBrushProperty,n),n):this.c(t.$z5.actualTrendLineBrushProperty)},trendLineThickness:function(n){return arguments.length===1?(this.g(t.$z5.trendLineThicknessProperty,n),n):this.c(t.$z5.trendLineThicknessProperty)},trendLineDashCap:function(n){return arguments.length===1?(this.g(t.$z5.trendLineDashCapProperty,n),n):this.c(t.$z5.trendLineDashCapProperty)},trendLineDashArray:function(n){return arguments.length===1?(this.g(t.$z5.trendLineDashArrayProperty,n),n):this.c(t.$z5.trendLineDashArrayProperty)},trendLinePeriod:function(n){return arguments.length===1?(this.g(t.$z5.trendLinePeriodProperty,n),n):this.c(t.$z5.trendLinePeriodProperty)},trendLineZIndex:function(n){return arguments.length===1?(this.g(t.$z5.trendLineZIndexProperty,n),n):this.c(t.$z5.trendLineZIndexProperty)},gj:function(i,r,u,f){this.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,this.xAxis())!==null&&n.ig.util.cast(t.$kr.$type,this.xAxis()).notifyDataChanged();this.m1().by().e(this.resolution());this.m1().b4().p(i,r,u,f);this.yAxis()!=null&&this.yAxis().updateRange();this.renderSeries(!0)},displayType:function(n){return arguments.length===1?(this.g(t.$z5.displayTypeProperty,n),n):this.c(t.$z5.displayTypeProperty)},hh:function(n,i,r,u){switch(i){case"XAxis":this.m1().cc()}t.$q2.hh.call(this,n,i,r,u);this.m1().b4()!=null&&this.m1().b4().d(n,i,r,u)&&(this.renderSeries(!1),this.gy());switch(i){case"DisplayType":this.rootCanvas()!=null&&(this.nc(),this.jv.x(),this.mm(this.jv,this.m1()));this.gy();break;case"TrendLineBrush":this.hz();break;case"TrendLineType":this.gy()}},nc:function(){this.m1().cg();this.av()!=null&&this.av().cg()},ad:function(n){return n!=null&&n==this.yAxis()&&this.kh()!=null&&!isNaN(this.kh().minimum())&&this.kf()!=null&&!isNaN(this.kf().maximum())?new t.im(this.kh().minimum(),this.kf().maximum()):null},scrollIntoView:function(n){var f=this.bb()!=null?this.bb().indexOf(n):-1,i=this.view().bw(),l=this.view().bv(),e=new t.x(0,0,0,1,1),h,u,s;if(f>=0&&i!=null&&l!=null){if(this.xAxis()!=null&&(h=new t.iu(e,e,this.xAxis().isInverted()),u=this.xAxis().getScaledValue(f,h),u<i.left()+.1*i.width()&&(u=u+.4*i.width()),u>i.right()-.1*i.width()&&(u=u-.4*i.width()),i.x(u-.5*i.width())),this.yAxis()!=null&&this.kh()!=null&&this.kf()!=null&&f<this.kh().count()&&f<this.kf().count()){var c=new t.iu(e,e,this.yAxis().isInverted()),r=this.yAxis().getScaledValue(this.kh().item(f),c),o=this.yAxis().getScaledValue(this.kf().item(f),c);isNaN(r)||isNaN(o)||(s=Math.abs(r-o),i.height()<s?(i.height(s),i.y(Math.min(r,o))):(r<i.top()+.1*i.height()&&(r=r+.4*i.height()),r>i.bottom()-.1*i.height()&&(r=r-.4*i.height()),i.y(r-.5*i.height())))}this.syncLink().al(this.seriesViewer(),i)}return f>=0},ct:function(n,i,r){var u=t.$q2.ct.call(this,n,i,r);return(this.kj()==null||this.kd()==null||this.kf()==null||this.kh()==null)&&(u=!1),u},m8:function(n){return n},mk:function(i,r){var u=this,a,o,st,nt,tt,s,f,w;t.$q2.mk.call(u,i,r);var p=r.bw(),v=r.bv(),b=u.xAxis(),h=u.yAxis(),c=new t.iu(p,v,b.isInverted()),l=new t.iu(p,v,h.isInverted());if(i.h.clear(),i.p.clear(),i.q.clear(),a=0,o=n.ig.util.cast(t.$kr.$type,u.xAxis()),o==null||o.sortedIndices().count()==u.bb().count()){if(a=u.getOffset(p,v),st=n.ig.util.cast(t.$z6.$type,r),u.trendLineType()!=0){for(var k=new Array(u.bb().count()),d=0,g=u.k9().getEnumerator();g.moveNext();)nt=g.current(),k[d]=nt,d++;u.m1().b4().prepareLine(i.q,u.trendLineType(),k,u.trendLinePeriod(),function(n){return u.xAxis().getScaledValue(n,c)},function(n){return u.yAxis().getScaledValue(n,l)},function(){var n=new t.km;return n.c(r.by().b()),n.d(r.by().c()),n.e(r.by().d()),n.a(a),n.b(u.resolution()),n.f(v),n}())}for(tt=u.m8(u.xAxis().getUnscaledValue(2,c)-u.xAxis().getUnscaledValue(1,c)),s=r.by().c();s<=r.by().d();++s){if(o==null)f=r.by().getBucket(s);else{for(var e=o.sortedIndices().__inner[s],y=o.getUnscaledValueAt(e),ht=u.m8(u.kj().item(e)),it=u.m8(u.kf().item(e)),rt=u.m8(u.kh().item(e)),ct=u.m8(u.kd().item(e)),lt=ht,ut=it,ft=rt,et=ct,ot=y;s<r.by().d();){if(e=o.sortedIndices().__inner[s+1],ot=o.getUnscaledValueAt(e),ot-y>tt)break;s++;ut=Math.max(it,u.m8(u.kf().item(e)));ft=Math.min(rt,u.m8(u.kh().item(e)));et=u.m8(u.kd().item(e))}w=NaN;isNaN(y)||(w=u.xAxis().getScaledValue(y,c));f=function(){var n=[];return n.add(u.m8(w)),n.add(lt),n.add(ut),n.add(ft),n.add(et),n}()}isNaN(f[0])||(f[0]=u.xAxis()!=null&&n.ig.util.cast(t.$kr.$type,u.xAxis())!==null?f[0]+a:b.getScaledValue(f[0],c)+a,f[1]=h.getScaledValue(f[1],l),f[2]=h.getScaledValue(f[2],l),f[3]=h.getScaledValue(f[3],l),f[4]=h.getScaledValue(f[4],l),i.h.add(f))}return}},gh:function(i,r){t.$q2.gh.call(this,i,r);var u=n.ig.util.cast(t.$z6.$type,r);u.ca();i&&u.b6().c(0);u.b4()!=null&&u.b4().o()},ky:function(){return!0},mm:function(i,r){var f,e,o,u;(t.$q2.mm.call(this,i,r),this.xAxis()!=null&&this.yAxis()!=null)&&(f=!1,r.b1(i)&&(f=!0,r.b3(i)),this.jz.x(this,this.k1(),this.xAxis(),this.getCategoryItems.runOn(this),this.lq(r),this.lr(r)),e=!1,o=this.jz.b(),o!=null&&(e=!0),u=n.ig.util.cast(t.$z6.$type,r),u.b9(),u.b7(!1),u.b4()!=null&&u.b4().o(),this.trendLineType()!=0&&u.b4().t(i.q),e?this.nb(i,r,f):(u.b6().c(0),this.na(i,r)))},nb:function(i,r,u){var f=this,st=f.displayType(),y=f.xAxis().fy(r.bw(),r.bv())/2,v,e,b,ot,l,ct,k,a,d,g,nt,tt;y=Math.max(y,3);v=n.ig.util.cast(t.$z6.$type,r);v.b7(!0);var s=i.h,it=0,lt=f.bb().count(),ht=f.xAxis(),at=new t.iu(f.view().bw(),f.view().bv(),ht.isInverted()),rt=f.actualBrush(),p=f.negativeBrush();for(p==null&&(p=rt),e=0;e<s.count();++e){var w=s.__inner[e][0]-y,c=s.__inner[e][0],ut=s.__inner[e][0]+y,h=s.__inner[e][1],ft=s.__inner[e][2],et=s.__inner[e][3],o=s.__inner[e][4];if(!isNaN(h)&&!isNaN(ft)&&!isNaN(et)&&!isNaN(o)){if(b=v.b6().item(it),it++,ot=h<o,l=new t.dx,u)switch(st){case 0:ot&&(ct=h,h=o,o=ct);k=new t.d6;k.__startPoint={__x:c,__y:et,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};k.__segments.add(function(){var i=new t.d8(1);return i.c({__x:c,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());a=new t.d6;a.__startPoint={__x:w,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};a.__segments.add(function(){var i=new t.d8(1);return i.c({__x:ut,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());a.__segments.add(function(){var i=new t.d8(1);return i.c({__x:ut,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());a.__segments.add(function(){var i=new t.d8(1);return i.c({__x:w,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());a.__segments.add(function(){var i=new t.d8(1);return i.c({__x:w,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());d=new t.d6;d.__startPoint={__x:c,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};d.__segments.add(function(){var i=new t.d8(1);return i.c({__x:c,__y:ft,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());l.b().add(k);l.b().add(a);l.b().add(d);break;case 1:g=new t.d6;g.__startPoint={__x:w,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};g.__segments.add(function(){var i=new t.d8(1);return i.c({__x:c,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());nt=new t.d6;nt.__startPoint={__x:c,__y:et,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};nt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:c,__y:ft,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());tt=new t.d6;tt.__startPoint={__x:c,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};tt.__segments.add(function(){var i=new t.d8(1);return i.c({__x:ut,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());l.b().add(g);l.b().add(nt);l.b().add(tt)}ot?(f.jz.am=p,f.jz.ah=p,f.jz.f=!0):(f.jz.am=rt,f.jz.ah=rt,f.jz.f=!1);f.mj(s,e,lt,ht,at,r.n());st==1?f.jz.ae(b,!0,!1,!1,!1):f.jz.ae(b,!1,!1,!1,!1);u&&b.ak(l)}}v.b6().c(it);v.cb()},na:function(i,r){var p=this,d=p.displayType(),c=p.xAxis().fy(r.bw(),r.bv())/2,u,y,h,k;c=Math.max(c,3);var w=n.ig.util.cast(t.$z6.$type,r),g=w.cj(),nt=w.ci(),e=i.h;for(u=0;u<e.count();++u){var l=e.__inner[u][0]-c,o=e.__inner[u][0],b=e.__inner[u][0]+c,s=e.__inner[u][1],a=e.__inner[u][2],v=e.__inner[u][3],f=e.__inner[u][4];if(!isNaN(s)&&!isNaN(a)&&!isNaN(v)&&!isNaN(f)){y=s<f;h=y?nt:g;switch(d){case 0:y&&(k=s,s=f,f=k);h.c().add(function(){var i=new t.dz;return i.c({__x:o,__y:v,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b({__x:o,__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());h.c().add(function(){var n=new t.d0;return n.d(new t.x(0,l,f,b-l,s-f)),n}());h.c().add(function(){var i=new t.dz;return i.c({__x:o,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b({__x:o,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());break;case 1:h.c().add(function(){var i=new t.dz;return i.c({__x:l,__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b({__x:o,__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());h.c().add(function(){var i=new t.dz;return i.c({__x:o,__y:v,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b({__x:o,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());h.c().add(function(){var i=new t.dz;return i.c({__x:o,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b({__x:b,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}())}}}},eg:function(n,i){return n==this.m1().b4().x()?null:t.$q2.eg.call(this,n,i)},hz:function(){(t.$q2.hz.call(this),this.index()<0)||this.m1().ch()},go:function(n){t.$q2.go.call(this,n);var i=new t.g8(1,"trendLine",this.m1().b4().x());i.tags().add("Trend");n.shapes().add(i)},$type:new n.ig.Type("FinancialPriceSeries",t.$q2.$type)},!0);n.ig.util.defType("FinancialPriceBucketCalculator:z7","FinancialBucketCalculator",{init:function(n){t.$q4.init.call(this,n)},getBucket:function(n){var t=this,i=n*t.b(),r=Math.min(i+t.b()-1,t.a().b0().bb().count()-1),e;if(i<=r&&i>=0&&r>=0){var o=t.a().b0().kj().item(i),u=Number.NEGATIVE_INFINITY,f=Number.POSITIVE_INFINITY,s=t.a().b0().kd().item(r);for(e=i;e<=r;++e)u=Math.max(u,t.a().b0().kf().item(e)),f=Math.min(f,t.a().b0().kh().item(e));return f=Math.min(o,f),u=Math.max(s,u),function(){var n=[];return n.add(.5*(i+r)),n.add(o),n.add(u),n.add(f),n.add(s),n}()}return function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n.add(NaN),n.add(NaN),n}()},$type:new n.ig.Type("FinancialPriceBucketCalculator",t.$q4.$type)},!0);n.ig.util.defType("FinancialPriceSeriesView:z6","FinancialSeriesView",{_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},init:function(n){var i=this;this.cm=function(){var n=new t.b6;return n.ak(new t.du),n}();this.cl=function(){var n=new t.b6;return n.ak(new t.du),n}();this.ck=new t.b6;t.$q3.init.call(this,n);this.b5(n);this.b8(new t.bh(t.$b6.$type,0));this.b4(new t.ld);this.b6(function(){var n=new t.ga(t.$b6.$type);return n.create(i.cn.runOn(i)),n.activate(i.cd.runOn(i)),n.disactivate(i.cf.runOn(i)),n.destroy(i.ce.runOn(i)),n}())},_b6:null,b6:function(n){return arguments.length===1?(this._b6=n,n):this._b6},cn:function(){var n=new t.b6;return this.b8().add(n),n.__visibility=1,n},_b8:null,b8:function(n){return arguments.length===1?(this._b8=n,n):this._b8},cd:function(n){n.__visibility=0},cf:function(n){n.__visibility=1},ce:function(n){this.b8().remove(n)},bz:function(){return new t.z7(this)},ao:function(){var n=this;t.$q3.ao.call(n);n.n()||(n.b0().negativeBrush(function(){var n=new t.b3;return n.fill("#415460"),n}()),n.b0().resolution(2),n.b0().thickness(1),n.b0().outline(function(){var n=new t.b3;return n.fill("#222222"),n}()))},cm:null,cl:null,_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},cg:function(){this.cm.__stroke=this.b5().displayType()==1?this.d().actualBrush():this.d().actualOutline();this.cl.__stroke=this.b5().displayType()==1?this.b0().negativeBrush():this.d().actualOutline()},ca:function(){this.am();this.b6().c(0);this.b9()},b9:function(){var i=n.ig.util.cast(t.$du.$type,this.cm.ak()),r=n.ig.util.cast(t.$du.$type,this.cl.ak());i.reset();r.reset()},cj:function(){return this.am(),n.ig.util.cast(t.$du.$type,this.cm.ak())},ci:function(){return this.am(),n.ig.util.cast(t.$du.$type,this.cl.ak())},ch:function(){this.b5().actualTrendLineBrush(null);this.b5().trendLineBrush()!=null?this.b5().actualTrendLineBrush(this.b5().trendLineBrush()):this.b5().actualTrendLineBrush(this.b5().actualBrush())},a6:function(){t.$q3.a6.call(this);this.cm.z(this.d().thickness());this.cm.af(this.d().dashArray());this.cm.aa(this.d().dashCap());this.b5().displayType()==1?this.cm.__stroke=this.d().actualBrush():(this.cm.__stroke=this.d().actualOutline(),this.cm.__fill=this.d().actualBrush());this.cl.z(this.d().thickness());this.cl.af(this.d().dashArray());this.cl.aa(this.d().dashCap());this.b5().displayType()==1?this.cl.__stroke=this.b0().negativeBrush():(this.cl.__stroke=this.d().actualOutline(),this.cl.__fill=this.b0().negativeBrush())},a7:function(){t.$q3.a7.call(this);var n=this.br();this.cm.z(this.d().thickness()+3);this.b5().displayType()==1?this.cm.__stroke=n:(this.cm.__stroke=n,this.cm.__fill=n);this.cl.z(this.d().thickness()+3);this.b5().displayType()==1?this.cl.__stroke=n:(this.cl.__stroke=n,this.cl.__fill=n)},w:function(n){return this.b8().__inner[n]},ck:null,v:function(n){var i=this.b8().__inner[n],t;return this.ck.__visibility=i.__visibility,this.ck.ak(i.ak()),t=this.bs(n),this.ck.__fill=t,this.ck.__stroke=t,this.ck.z(this.d().thickness()+3),this.ck},a1:function(n,i){var r,u;if(t.$q3.a1.call(this,n,i),n.c())if(this.b7())for(r=0;r<this.b8().count();r++)u=this.u(r,i),u.__visibility==0&&n.q(u);else n.q(this.cm),n.q(this.cl)},a0:function(n,i){if(n.c()&&this.b5().trendLineType()!=0&&!i){var r=this.b4().x();r.z(this.b5().trendLineThickness());r.__stroke=this.b5().actualTrendLineBrush();r.af(this.b5().trendLineDashArray());r.aa(this.b5().trendLineDashCap());n.s(r)}t.$q3.a0.call(this,n,i)},ah:function(n){var i,r;t.$q3.ah.call(this,n);i=new t.me(1,"positivePathShape",this.cm);i.tags().add("Positive");i.tags().add("Main");r=new t.me(1,"negativePathShape",this.cl);r.tags().add("Negative");n.shapes().add(i);n.shapes().add(r)},cb:function(){this.am()},_b7:!1,b7:function(n){return arguments.length===1?(this._b7=n,n):this._b7},cc:function(){this.b4(t.$kv.y(this.b4(),this.b0().xAxis(),this.d().rootCanvas(),this.b0()))},$type:new n.ig.Type("FinancialPriceSeriesView",t.$q3.$type)},!0);n.ig.util.defType("FinancialValueList:q8","Object",{d:null,b:null,a:null,c:null,e:null,init:function(t,i,r,u,f){n.ig.$op.init.call(this);this.d=t;this.b=i;this.a=u;this.c=r;this.e=f},indexOf:function(){throw new t.f5;},insert:function(){throw new t.f5;},removeAt:function(){throw new t.f5;},item:function(n){if(arguments.length===2)throw new t.f5;else{var f=NaN,i=NaN,r=NaN,u=NaN,h=NaN;this.d!=null&&n>=0&&n<this.d.count()&&(f=this.d.item(n));this.b!=null&&n>=0&&n<this.b.count()&&(i=this.b.item(n));this.c!=null&&n>=0&&n<this.c.count()&&(r=this.c.item(n));this.a!=null&&n>=0&&n<this.a.count()&&(u=this.a.item(n));this.e!=null&&n>=0&&n<this.e.count()&&(h=this.e.item(n));var c=isNaN(f),e=isNaN(i),o=isNaN(r),s=isNaN(u),l=isNaN(h);return!e&&!o&&!s?(i+r+u)/3:!e&&!o?(i+r)/2:!c&&!s?(f+u)/2:c?e?o?s?NaN:u:r:i:f}},add:function(){throw new t.f5;},clear:function(){throw new t.f5;},contains:function(){throw new t.f5;},copyTo:function(){throw new t.f5;},count:function(){var t=0,i=0,r=0,u=0,f=0,n;return this.d!=null&&(t=this.d.count()),this.b!=null&&(i=this.b.count()),this.c!=null&&(r=this.c.count()),this.a!=null&&(u=this.a.count()),this.e!=null&&(f=this.e.count()),n=0,n=Math.max(n,t),n=Math.max(n,i),n=Math.max(n,r),n=Math.max(n,u),Math.max(n,f)},isReadOnly:function(){return!0},remove:function(){throw new t.f5;},getEnumerator:function(){throw new t.f5;},$type:new n.ig.Type("FinancialValueList",n.ig.$ot,[t.$bi.$type.specialize(Number)])},!0);n.ig.util.defType("FinancialCalculationDataSource:rb","Object",{init:function(){n.ig.$op.init.call(this)},_openColumn:null,openColumn:function(n){return arguments.length===1?(this._openColumn=n,n):this._openColumn},_closeColumn:null,closeColumn:function(n){return arguments.length===1?(this._closeColumn=n,n):this._closeColumn},_highColumn:null,highColumn:function(n){return arguments.length===1?(this._highColumn=n,n):this._highColumn},_lowColumn:null,lowColumn:function(n){return arguments.length===1?(this._lowColumn=n,n):this._lowColumn},_volumeColumn:null,volumeColumn:function(n){return arguments.length===1?(this._volumeColumn=n,n):this._volumeColumn},_indicatorColumn:null,indicatorColumn:function(n){return arguments.length===1?(this._indicatorColumn=n,n):this._indicatorColumn},_typicalColumn:null,typicalColumn:function(n){return arguments.length===1?(this._typicalColumn=n,n):this._typicalColumn},_trueRange:null,trueRange:function(n){return arguments.length===1?(this._trueRange=n,n):this._trueRange},_trueLow:null,trueLow:function(n){return arguments.length===1?(this._trueLow=n,n):this._trueLow},_period:0,period:function(n){return arguments.length===1?(this._period=n,n):this._period},_shortPeriod:0,shortPeriod:function(n){return arguments.length===1?(this._shortPeriod=n,n):this._shortPeriod},_longPeriod:0,longPeriod:function(n){return arguments.length===1?(this._longPeriod=n,n):this._longPeriod},_count:0,count:function(n){return arguments.length===1?(this._count=n,n):this._count},_calculateFrom:0,calculateFrom:function(n){return arguments.length===1?(this._calculateFrom=n,n):this._calculateFrom},_calculateCount:0,calculateCount:function(n){return arguments.length===1?(this._calculateCount=n,n):this._calculateCount},_multiplier:0,multiplier:function(n){return arguments.length===1?(this._multiplier=n,n):this._multiplier},_minimumValue:0,minimumValue:function(n){return arguments.length===1?(this._minimumValue=n,n):this._minimumValue},_maximumValue:0,maximumValue:function(n){return arguments.length===1?(this._maximumValue=n,n):this._maximumValue},_specifiesRange:!1,specifiesRange:function(n){return arguments.length===1?(this._specifiesRange=n,n):this._specifiesRange},$type:new n.ig.Type("FinancialCalculationDataSource",n.ig.$ot)},!0);n.ig.util.defType("FinancialCalculationSupportingCalculations:rd","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},$type:new n.ig.Type("FinancialCalculationSupportingCalculations",n.ig.$ot)},!0);n.ig.util.defType("SupportingCalculation$1:rf","Object",{$tCalculationStrategy:null,init:function(i,r,u){if(r>0){switch(r){case 1:this.init1.apply(this,arguments)}return}this.$tCalculationStrategy=i;this.$type=this.$type.specialize(this.$tCalculationStrategy);n.ig.$op.init.call(this);this.c=u;this.b=new t.bh(String,0)},init1:function(i,r,u,f){this.$tCalculationStrategy=i;this.$type=this.$type.specialize(this.$tCalculationStrategy);n.ig.$op.init.call(this);this.c=u;this.b=new t.bh(String,1,f)},c:null,b:null,d:function(){return this.c},a:function(){return this.b},$type:new n.ig.Type("SupportingCalculation$1",n.ig.$ot)},!0);n.ig.util.defType("ColumnSupportingCalculation:re","SupportingCalculation$1",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$rf.init.call(this,t.$rg.$type,i)},init1:function(n,i,r){t.$rf.init1.call(this,t.$rg.$type,1,i,r)},$type:new n.ig.Type("ColumnSupportingCalculation",t.$rf.$type.specialize(t.$rg.$type))},!0);n.ig.util.defType("DataSourceSupportingCalculation:rh","SupportingCalculation$1",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$rf.init.call(this,t.$ri.$type,i)},init1:function(n,i,r){t.$rf.init1.call(this,t.$ri.$type,1,i,r)},$type:new n.ig.Type("DataSourceSupportingCalculation",t.$rf.$type.specialize(t.$ri.$type))},!0);n.ig.util.defType("CalculatedColumn:rc","Object",{init:function(i,r,u){if(i>0){switch(i){case 1:this.init1.apply(this,arguments)}return}n.ig.$op.init.call(this);this.__valuesProvider=r;this.c=new t.bh(String,1,u)},init1:function(i,r,u){n.ig.$op.init.call(this);this.__valuesProvider=r;this.c=new t.bh(String,1,u)},__valuesProvider:null,c:null,basedOn:function(){return this.c},getEnumerator:function(){return this.__valuesProvider.getEnumerator()},$type:new n.ig.Type("CalculatedColumn",n.ig.$ot,[t.$bk.$type.specialize(Number)])},!0);n.ig.util.defType("ItemLegend:nw","LegendBase",{ak:function(){return new t.nx(this)},a2:function(n){t.$ni.a2.call(this,n);this.a5(n)},_a5:null,a5:function(n){return arguments.length===1?(this._a5=n,n):this._a5},init:function(){var i=this;t.$ni.init.call(this);this.y(t.$nw.$type);this.children().collectionChanged=n.ig.Delegate.prototype.combine(this.children().collectionChanged,function(n,t){var r,f,u,e;if(t.oldItems()!=null)for(r=t.oldItems().getEnumerator();r.moveNext();)f=r.current(),i.a5().w(f);if(t.newItems()!=null)for(u=t.newItems().getEnumerator();u.moveNext();)e=u.current(),i.a5().l(e)})},av:function(n,t){this.al().f()&&this.bb(t)},aw:function(i,r){var s,e,o,u,f;if(this.a9(r),r!=null&&i!=null&&i.count()!=0)for(s=i.getEnumerator();s.moveNext();)e=s.current(),o=n.ig.util.cast(t.$cf.$type,e),o!=null&&o.content()!=null&&(u=n.ig.util.cast(t.$fl.$type,o.content()),u==null||this.a7(u)||(this.children().add(e),f=new t.ny,f.a(u),f.d(e),f.c(r),f.b(u.itemLabel())))},ba:function(i,r){var h=this.a8(r),s,e,o,u,f;if(r!=null&&i!=null&&i.count()!=0)for(s=i.getEnumerator();s.moveNext();)e=s.current(),o=n.ig.util.cast(t.$cf.$type,e),o!=null&&o.content()!=null&&(u=n.ig.util.cast(t.$fl.$type,o.content()),u==null||this.a7(u)||(this.children().insert(h,e),h++,f=new t.ny,f.a(u),f.d(e),f.c(r),f.b(u.itemLabel())))},bb:function(i){var r,s,e,o,u,f;if(this.a9(i),r=n.ig.util.cast(t.$nz.$type,i),r!=null&&r.mu()!=null&&r.mv()!=null&&r.mv().count()>0)for(s=r.mv().getEnumerator();s.moveNext();)e=s.current(),o=n.ig.util.cast(t.$cf.$type,e),o!=null&&o.content()!=null&&(u=n.ig.util.cast(t.$fl.$type,o.content()),u==null||this.a7(u)||(this.children().add(e),f=new t.ny,f.a(u),f.d(e),f.c(i),f.b(u.itemLabel())))},a9:function(i){var u,f,e,r,o,s,h;if(i!=null&&this.children()!=null&&this.children().count()!=0){for(u=new t.e4(t.$am.$type,0),f=this.children().getEnumerator();f.moveNext();)e=f.current(),r=n.ig.util.cast(t.$cf.$type,e),r!=null&&r.content()!=null&&(o=n.ig.util.cast(t.$fl.$type,r.content()),o!=null&&o.series()==i&&u.add(e));for(s=u.getEnumerator();s.moveNext();)h=s.current(),this.children().remove(h)}},a8:function(i){var f,u,e,o,l;if(i==null||this.children()==null||this.children().count()==0)return 0;for(var s=new t.e4(t.$am.$type,0),r=-1,h=0,c=this.children().getEnumerator();c.moveNext();)f=c.current(),u=n.ig.util.cast(t.$cf.$type,f),u!=null&&u.content()!=null&&(e=n.ig.util.cast(t.$fl.$type,u.content()),e!=null&&e.series()==i&&(r==-1&&(r=h),s.add(f))),h++;for(o=s.getEnumerator();o.moveNext();)l=o.current(),this.children().remove(l);return r==-1?this.children().count()>0?this.children().count()-1:0:r},a7:function(n){return this.a5().y(n)},_a6:null,a6:function(n){return arguments.length===1?(this._a6=n,n):this._a6},$type:new n.ig.Type("ItemLegend",t.$ni.$type)},!0);n.ig.util.defType("ItemLegendView:nx","LegendBaseView",{init:function(n){t.$nj.init.call(this,n);this.x(n)},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},u:function(){t.$nj.u.call(this)},y:function(n){return this.d().e(n)},$type:new n.ig.Type("ItemLegendView",t.$nj.$type)},!0);n.ig.util.defType("Legend:we","LegendBase",{ak:function(){return new t.wf(this)},a2:function(n){t.$ni.a2.call(this,n);this.a5(n)},_a5:null,a5:function(n){return arguments.length===1?(this._a5=n,n):this._a5},init:function(){var i=this;t.$ni.init.call(this);this.y(t.$we.$type);this.children().collectionChanged=n.ig.Delegate.prototype.combine(this.children().collectionChanged,function(n,t){var r,f,u,e;if(t.oldItems()!=null)for(r=t.oldItems().getEnumerator();r.moveNext();)f=r.current(),i.a5().w(f);if(t.newItems()!=null)for(u=t.newItems().getEnumerator();u.moveNext();)e=u.current(),i.a5().l(e)})},av:function(i,r){var f=this,c,v,p,e,u,w,o,s,h,l,a;if(n.ig.util.cast(t.$fu.$type,r)===null&&r.isUsableInLegend()){for(c=0,v=f.children().getEnumerator();v.moveNext();){if(p=v.current(),function(){var n=f.al().o(p,e,u,w);return e=n.chart,u=n.series,w=n.item,n.ret}(),r.seriesViewer()!=null&&e!=null&&(f.a6(r.seriesViewer())<f.a6(e)||f.a6(r.seriesViewer())==-1&&f.a6(e)==-1&&r.seriesViewer().getHashCode()<e.getHashCode()))break;if(r.seriesViewer()!=null&&e!=null&&r.seriesViewer()==e&&u!=null){var b=r.index(),k=u.index(),d=f.a6(r),y=f.a6(u);if((n.ig.util.cast(t.$ka.$type,r)!==null||n.ig.util.cast(t.$sd.$type,r)!==null)&&(o=n.ig.util.cast(t.$ka.$type,r)!==null?n.ig.util.cast(t.$ka.$type,r).parentSeries():n.ig.util.cast(t.$sd.$type,r).parentSeries(),o.reverseLegendOrder()&&(b=o.index()+o.mo().count()-o.mt().f().indexOf(n.ig.util.cast(t.$kc.$type,r)))),(n.ig.util.cast(t.$ka.$type,u)!==null||n.ig.util.cast(t.$sd.$type,u)!==null)&&(s=n.ig.util.cast(t.$ka.$type,u)!==null?n.ig.util.cast(t.$ka.$type,u).parentSeries():n.ig.util.cast(t.$sd.$type,u).parentSeries(),s.reverseLegendOrder()&&(k=s.index()+s.mo().count()-s.mt().f().indexOf(n.ig.util.cast(t.$kc.$type,u)))),n.ig.util.cast(t.$vc.$type,u)!==null){if(y==-1&&d==-1){c=0;break}if(d<y||y==-1)break}if(b<=k)break}c++}f.children().insert(c,i);h=new t.ny;h.d(i);h.c(r);l=n.ig.util.cast(t.$cf.$type,i);l!=null&&l.content()!=null&&(a=n.ig.util.cast(t.$fl.$type,l.content()),a!=null&&(h.a(a),h.b(a.itemLabel())))}},a6:function(){return-1},$type:new n.ig.Type("Legend",t.$ni.$type)},!0);n.ig.util.defType("LegendItemInfo:ny","Object",{init:function(){n.ig.$op.init.call(this)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("LegendItemInfo",n.ig.$ot)},!0);n.ig.util.defType("LegendView:wf","LegendBaseView",{init:function(n){t.$nj.init.call(this,n);this.x(n)},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},u:function(){t.$nj.u.call(this)},$type:new n.ig.Type("LegendView",t.$nj.$type)},!0);n.ig.util.defType("PieLabel:m7","Control",{init:function(){t.$ak.init.call(this)},_ad:null,ad:function(n){return arguments.length===1?(this._ad=n,n):this._ad},_ak:null,ak:function(n){return arguments.length===1?(this._ak=n,n):this._ak},_ae:0,ae:function(n){return arguments.length===1?(this._ae=n,n):this._ae},_af:null,af:function(n){return arguments.length===1?(this._af=n,n):this._af},_al:null,al:function(n){return arguments.length===1?(this._al=n,n):this._al},_am:null,am:function(n){return arguments.length===1?(this._am=n,n):this._am},ag:function(i){var u,r,o;if(i.a().labelsPosition()==3){this.ak(i.bh(this));u=n.ig.util.cast(t.$b9.$type,this.af());r=u.aa();i.a().d1();var s=this.ad().isExploded()?this.ad().a2():this.ad().a4(),f=t.$ec.h(s,this.ae(),this.ad().aw()+i.a().labelExtent()),e=i.bi().width();if(i.r(u)+f.__x>e&&f.__x<e){while(i.r(u)+f.__x>e)r=r.substr(0,r.length-1),u.aa(r);r.length-3>0?(r=r.substr(0,r.length-3),r=r+"..."):r=i.r("...")<this.ak().width()?"...":String.empty()}o=new t.b9;o.aa(r);this.af(o)}},ah:function(){},ai:function(){var i,u,r,f;this.al().__visibility=this.ad().af().leaderLineVisibility()!=0?this.ad().af().leaderLineVisibility():this.ad().ag().__visibility;u=this.ad().af().leaderLineMargin();r=t.$ec.h(this.ad().a3(),this.ae(),this.ad().aw());this.al().ag(r.__x);this.al().ai(r.__y);i=this.ae()<90||this.ae()>=270?{__x:this.ak().left(),__y:(this.ak().top()+this.ak().bottom())/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}:{__x:this.ak().right(),__y:(this.ak().top()+this.ak().bottom())/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};u>0&&(f=t.$ec.d(r,i),i=u<f?t.$ec.j(i,r,u):r);this.al().ah(i.__x);this.al().aj(i.__y)},aj:function(){var k,l,a,v,y,p;this.am().__visibility=this.ad().af().leaderLineVisibility()!=0?this.ad().af().leaderLineVisibility():this.ad().ag().__visibility;var w=this.ad().a3(),b=this.am().ak().b().__inner[0],s=b.__segments.__inner[0],e=this.ad().af().leaderLineMargin(),o=(this.ak().top()+this.ak().bottom())/2,i=t.$ec.h(w,this.ae(),this.ad().aw()),u=t.$ec.h(w,this.ae(),this.ad().aw()+this.ad().af().labelExtent()/2),r,h,f,c=o;if(this.ae()<90&&this.ae()>=0?(r={__x:this.ak().left()-30,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:this.ak().left(),__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):this.ae()<180&&this.ae()>=90?(r={__x:this.ak().right()+30,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:this.ak().right(),__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):this.ae()<270&&this.ae()>=180?(r={__x:this.ak().right()+30,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:this.ak().right(),__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(r={__x:this.ak().left()-30,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f={__x:this.ak().left(),__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),e>0)if(k=t.$ec.d(i,f),e<k)h=t.$ec.j(f,i,e),l=u.__x-i.__x,a=u.__y-i.__y,u=t.$ec.j(u,i,e),v=u.__x-i.__x,y=u.__y-i.__y,(l>0&&v<0||l<0&&v>0||a>0&&y<0||a<0&&y>0)&&(u=i),r=t.$ec.j(r,i,e),p=t.$ec.d(i,h)/t.$ec.d(i,f),r.__x=i.__x+(r.__x-i.__x)*p,r.__y=i.__y+(r.__y-i.__y)*p;else{this.am().__visibility=1;return}else h=f;this.ae()<180&&this.ae()>=0?u.__y>r.__y&&(u.__y=i.__y):u.__y<r.__y&&(u.__y=i.__y);b.__startPoint=i;this.ad().af().leaderLineType()==1?s.e(i):s.e(u);s.f(r);s.g(h)},$type:new n.ig.Type("PieLabel",t.$ak.$type)},!0);n.ig.util.defType("IndexCollection:nh","ObservableCollection$1",{init:function(){t.$e4.init.call(this,n.ig.Number.prototype.$type)},j:function(n,i){this.contains(i)||t.$e4.j.call(this,n,i)},o:function(n,i){this.contains(i)?(this.remove(i),this.j(n,i)):t.$e4.o.call(this,n,i)},$type:new n.ig.Type("IndexCollection",t.$e4.$type.specialize(n.ig.Number.prototype.$type))},!0);n.ig.util.defType("Slice:m5","ContentControl",{ah:function(){return new t.m6(this)},bj:function(n){this.ai(n)},_ai:null,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},init:function(){this.ak=!1;t.$cf.init.call(this);var n=this.ah();this.bj(n);n.b()},ax:function(n){return arguments.length===1?(this.g(t.$m5.bv,n),n):this.c(t.$m5.bv)},ar:function(n){return arguments.length===1?(this.g(t.$m5.bk,n),n):this.c(t.$m5.bk)},av:function(n){return arguments.length===1?(this.g(t.$m5.bp,n),n):this.c(t.$m5.bp)},au:function(n){return arguments.length===1?(this.g(t.$m5.bo,n),n):this.c(t.$m5.bo)},isSelected:function(n){return arguments.length===1?(this.g(t.$m5.bs,n),n):this.c(t.$m5.bs)},isExploded:function(n){return arguments.length===1?(this.g(t.$m5.bq,n),n):this.c(t.$m5.bq)},ao:function(n){return arguments.length===1?(this.g(t.$m5.br,n),n):this.c(t.$m5.br)},a4:function(n){return arguments.length===1?(this.g(t.$m5.bt,n),n):this.c(t.$m5.bt)},a2:function(n){return arguments.length===1?(this.g(t.$m5.bl,n),n):this.c(t.$m5.bl)},aw:function(n){return arguments.length===1?(this.g(t.$m5.bu,n),n):this.c(t.$m5.bu)},as:function(n){return arguments.length===1?(this.g(t.$m5.bm,n),n):this.c(t.$m5.bm)},az:function(n){return arguments.length===1?(this.g(t.$m5.bn,n),n):this.c(t.$m5.bn)},ay:function(n){return arguments.length===1?(this.g(t.$m5.bw,n),n):this.c(t.$m5.bw)},_bz:null,bz:function(n){return arguments.length===1?(this._bz=n,n):this._bz},_af:null,af:function(n){return arguments.length===1?(this._af=n,n):this._af},_ag:null,ag:function(n){return arguments.length===1?(this._ag=n,n):this._ag},_b0:null,b0:function(n){return arguments.length===1?(this._b0=n,n):this._b0},_a0:null,a0:function(n){return arguments.length===1?(this._a0=n,n):this._a0},_am:!1,am:function(n){return arguments.length===1?(this._am=n,n):this._am},z:function(){t.$cf.z.call(this);this.ai().c()},at:function(){var n=Math.abs(t.$my.by(this.ar()-this.ax()))==360;return n,this.aw()},b2:function(){var i=this.af()!=null&&this.af().allowSliceExplosion()?!0:!1,n=this.at();return this.isExploded()&&i?new t.x(0,this.a2().__x-n,this.a2().__y-n,n*2,n*2):new t.x(0,this.a4().__x-n,this.a4().__y-n,n*2,n*2)},a3:function(){return this.isExploded()&&this.af()!=null&&this.af().allowSliceExplosion()?this.am()?this.a0():this.a2():this.a4()},ak:!1,aq:function(n){if(arguments.length===1){var t=this.ak;return this.ak=n,t&&!this.ak&&this.bi(),n}return this.ak},bi:function(){var n=this,e,o,rt,a,v,f,dt,r,d,g,gt,u,p,ii,s;if(!n.aq()&&(e=n.ai().f(),o=n.af().fc(),!isNaN(n.ax())&&!isNaN(n.ar())&&!isNaN(n.aw())&&!isNaN(n.as())&&!(n.az()<0)&&n.af()!=null&&o.width()!=0&&o.height()!=0&&(n.a4().__x!=0||n.a4().__y!=0)&&(n.a2().__x!=0||n.a2().__y!=0))){n.bz(n.b2());var c=t.$ec.b(n.bz()),nt=n.bz().height()/2,tt=n.at(),i=n.bz().getCenter(),it=t.$m5.a1(t.$es.u(n.ax()),c,i,nt,100),l=t.$m5.a1(t.$es.u(n.ar()),c,i,nt,100),k=t.$m5.a1(t.$es.u(n.ar()),c,i,n.aw(),n.au()),ri=t.$m5.a1(t.$es.u(n.ax()),c,i,n.aw(),n.av()),ui=Math.abs(t.$my.by(n.ar()-n.ax()))==360;if(ui){if(n.au()==0){rt=function(){var r=new t.d1;return r.d(i),r.b(n.aw()),r.c(n.aw()),r}();e.ak(rt);return}if(n.au()>0){var ut=new t.y(n.aw(),n.aw()),ft=new t.y(n.aw()*n.au()/100,n.aw()*n.au()/100),et=function(){var r=new t.z(0);return r.x(i.__x-n.aw()),r.y(i.__y),r}(),ot=function(){var r=new t.z(0);return r.x(i.__x+n.aw()),r.y(i.__y),r}(),st=function(){var r=new t.z(0);return r.x(i.__x-n.aw()*n.au()/100),r.y(i.__y),r}(),ht=function(){var r=new t.z(0);return r.x(i.__x+n.aw()*n.au()/100),r.y(i.__y),r}(),ct=function(){var n=new t.d6;return n.startPoint(et),n}(),lt=new t.d7,fi=function(){var n=new t.d2;return n.f(ut),n.e(1),n.d(ot),n}();lt.add(fi);ct.__segments=lt;var at=function(){var n=new t.d6;return n.startPoint(ht),n}(),vt=new t.d7,ei=function(){var n=new t.d2;return n.f(ft),n.e(0),n.d(st),n}();vt.add(ei);at.__segments=vt;var yt=function(){var n=new t.d6;return n.startPoint(et),n}(),pt=new t.d7,oi=function(){var n=new t.d2;return n.f(ut),n.e(0),n.d(ot),n}();pt.add(oi);yt.__segments=pt;var wt=function(){var n=new t.d6;return n.startPoint(ht),n}(),bt=new t.d7,si=function(){var n=new t.d2;return n.f(ft),n.e(1),n.d(st),n}();bt.add(si);wt.__segments=bt;var hi=function(){var n=new t.dy;return n.add(ct),n.add(at),n.add(yt),n.add(wt),n}(),ci=function(){var n=new t.dx;return n.b(hi),n}(),kt=new t.du;kt.c().add(ci);e.ak(kt);return}a=function(){var n=new t.du;return n.b(0),n}();a.c().add(function(){var r=new t.d1;return r.d(i),r.b(n.aw()),r.c(n.aw()),r}());a.c().add(function(){var r=new t.d1;return r.d(i),r.b(n.aw()*n.au()/100),r.c(n.aw()*n.au()/100),r}());e.ak(a);return}v=new t.dx;e.ak(v);f=function(){var n=new t.d6;return n.isClosed(!0),n}();v.b(new t.dy);v.b().add(f);f.__startPoint=it;dt=Math.abs(n.ar()-n.ax())>180;r=new t.d2;r.d(l);r.f(new t.y(n.bz().width()/2,n.bz().height()/2));r.b(dt);n.ar()>n.ax()?r.e(1):r.e(0);f.__segments=new t.d7;f.__segments.add(r);d=new t.d8(1);d.c(k);f.__segments.add(d);var li=Math.sqrt(Math.pow(k.__x-l.__x,2)+Math.pow(k.__y-l.__y,2)),y=tt-li,h=new t.d2;if(h.d(ri),y<0&&(y=.1),h.f(new t.y(y,y)),h.b(r.b()),h.e(0),f.__segments.add(h),g=n.b1(e,it,l,n.ax(),n.ar(),i,tt),gt=!0,gt&&n.bz().height()>0&&n.bz().width()>0&&!o.containsRect(g)){u=g;p=new t.x(0,0,0,o.width(),o.height());p.intersect(u);var ni=t.$ec.e((n.ax()+n.ar())/2),ti=ni/180*3.14159265358979,w=Math.abs((u.height()-p.height())/Math.sin(ti)),b=Math.abs((u.width()-p.width())/Math.cos(ti));(isNaN(w)||Number.isInfinity(w))&&(w=0);(isNaN(b)||Number.isInfinity(b))&&(b=0);ii=Math.max(w,b);s=t.$ec.g(n.af().fc().width(),n.af().fc().height(),!0,ni,n.aw()*n.af().bl()-ii);n.ai().d(s.__x-n.a2().__x,s.__y-n.a2().__y);n.am(!0);n.a0(s);n.b0(new t.x(0,u.x()-(s.__x-n.a2().__x),u.y()-(s.__y-n.a2().__y),u.width(),u.height()))}else n.am(!1),n.ai().e()}},al:function(n){var u=this.af().fc(),i,h;if(this.__visibility==1||isNaN(this.ax())||isNaN(this.ar())||isNaN(this.aw())||isNaN(this.as())||this.az()<0||this.af()==null||u.width()==0||u.height()==0||this.a4().__x==0&&this.a4().__y==0||this.a2().__x==0&&this.a2().__y==0)return!1;var f=this.at(),e=this.au()/100*f,o=f,r=this.a4();this.isExploded()&&(r=this.a2(),this.am()&&(r=this.a0()));var c=e*e,l=o*o,s=Math.pow(n.__x-r.__x,2)+Math.pow(n.__y-r.__y,2);return s<c||s>l?!1:(i=Math.atan2(n.__y-r.__y,n.__x-r.__x),i=i*180/3.14159265358979,i=i-this.ax(),i=t.$ec.e(i),h=this.ar()-this.ax(),i>h)?!1:!0},b1:function(n,i,r,u,f,e,o){var s=new t.bh(t.$z.$type,0),h;s.add(i);s.add(r);s.add(e);u=t.$ec.e(u);f=t.$ec.e(f);(0>u&&0<f||360>u&&360<f||f<u)&&s.add(t.$ec.h(e,0,o));90>u&&90<f&&s.add(t.$ec.h(e,90,o));180>u&&180<f&&s.add(t.$ec.h(e,180,o));270>u&&270<f&&s.add(t.$ec.h(e,270,o));for(var c=Number.MAX_VALUE,l=Number.MAX_VALUE,a=-Number.MAX_VALUE,v=-Number.MAX_VALUE,y=s.getEnumerator();y.moveNext();)h=y.current(),c=Math.min(c,h.__x),l=Math.min(l,h.__y),a=Math.max(a,h.__x),v=Math.max(v,h.__y);return new t.x(0,c,l,a-c,v-l)},aj:function(){var i=new t.m3,u,r;return i.appearance(new t.gh),i.labelAppearance(new t.g0),i.leaderLineAppearance(new t.gh),i.labelAppearance().angle(this.ag().ae()),i.labelBounds(this.ag().ak()),n.ig.util.cast(t.$b9.$type,this.ag().af())!==null?(u=n.ig.util.cast(t.$b9.$type,this.ag().af()),i.label(u.aa()),i.labelAppearance().labelBrush(t.$gk.fromBrush(u.ab())),i.labelAppearance().text(u.aa()),i.labelAppearance().visibility(u.__visibility==0)):i.label(this.ag().af().toString()),i.leaderLineAppearance().fill(t.$gk.fromBrush(this.ag().al().__fill)),i.leaderLineAppearance().opacity(this.ag().al().__opacity),i.leaderLineAppearance().stroke(t.$gk.fromBrush(this.ag().al().__stroke)),i.leaderLineAppearance().strokeThickness(this.ag().al().z()),i.leaderLineAppearance().visibility(this.ag().al().__visibility),this.ai()!=null&&(r=this.ai().f(),i.slicePath(new t.me(1,"slicePath",r)),i.appearance().fill(t.$gk.fromBrush(r.__fill)),i.appearance().opacity(r.__opacity),i.appearance().stroke(t.$gk.fromBrush(r.__stroke)),i.appearance().strokeThickness(r.z()),i.appearance().visibility(r.__visibility)),i},a1:function(t,i,r,u,f){var o=Math.cos(t),s=Math.sin(t),e=Math.sqrt(u*u/(1-i*Math.pow(o,2)));return e*=f/100,{__x:e*o+r.__x,__y:e*s+r.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},_bx:null,bx:function(n){return arguments.length===1?(this._bx=n,n):this._bx},_by:null,by:function(n){return arguments.length===1?(this._by=n,n):this._by},$type:new n.ig.Type("Slice",t.$cf.$type)},!0);n.ig.util.defType("SliceView:m6","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(t){n.ig.$op.init.call(this);this.a(t)},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},b:function(){this.g(new t.b6);this.a().content(this.g())},c:function(){this.a().bi()},f:function(){return this.g()},d:function(n,i){var r=this;r.g().h(function(){var r=new t.eg;return r.h(n),r.i(i),r}())},e:function(){this.g().h(null)},$type:new n.ig.Type("SliceView",n.ig.$ot)},!0);n.ig.util.defType("XamPieChart:z8","PieChartBase",{an:function(){return new t.z9(this)},dq:function(n){t.$my.dq.call(this,n);this.fj(n)},_fj:null,fj:function(n){return arguments.length===1?(this._fj=n,n):this._fj},init:function(){t.$my.init.call(this);this.y(t.$z8.$type)},$type:new n.ig.Type("XamPieChart",t.$my.$type)},!0);n.ig.util.defType("XamPieChartView:z9","PieChartBaseView",{_bl:null,bl:function(n){return arguments.length===1?(this._bl=n,n):this._bl},init:function(n){t.$mz.init.call(this,n);this.bl(n)},$type:new n.ig.Type("XamPieChartView",t.$mz.$type)},!0);n.ig.util.defType("PolarBase:t2","MarkerSeries",{au:function(){return new t.t3(this)},hc:function(n){t.$fw.hc.call(this,n);this.kw(n)},_kw:null,kw:function(n){return arguments.length===1?(this._kw=n,n):this._kw},kx:null,isPolar:function(){return!0},init:function(){this.kz=new t.t8;this.k1=new t.t8;this.ky=new t.t8;t.$fw.init.call(this);this.k0(new t.t8);this.k1.z(this.li.runOn(this));this.kz.z(this.li.runOn(this));this.ky.z(this.li.runOn(this));this.k2(new t.ty(t.$t8.$type,t.$t3.$type,0,this.ly.runOn(this),this.l0.runOn(this),this.bl.runOn(this),this.hw.runOn(this),this.lw.runOn(this)))},lw:function(){this.a5().needsFlush()&&this.a5().flush()},lx:function(){var n=this;n.ku.g(n.kx.y(),n.k6(),n.k7(),n.ml,n.mk,function(n,t){return Math.cos(t)},function(n,t){return Math.sin(t)},!0)},_k9:null,k9:function(n){return arguments.length===1?(this._k9=n,n):this._k9},_kv:null,kv:function(n){return arguments.length===1?(this._kv=n,n):this._kv},ml:null,mk:null,_k2:null,k2:function(n){return arguments.length===1?(this._k2=n,n):this._k2},angleMemberPath:function(n){return arguments.length===1?(this.g(t.$t2.angleMemberPathProperty,n),n):this.c(t.$t2.angleMemberPathProperty)},radiusMemberPath:function(n){return arguments.length===1?(this.g(t.$t2.radiusMemberPathProperty,n),n):this.c(t.$t2.radiusMemberPathProperty)},k6:function(n){if(arguments.length===1){if(this.k4!=n){var t=this.k6();this.k4=n;this.raisePropertyChanged("AngleColumn",t,this.k6())}return n}return this.k4},k4:null,k7:function(n){if(arguments.length===1){if(this.k5!=n){var t=this.k7();this.k5=n;this.raisePropertyChanged("RadiusColumn",t,this.k7())}return n}return this.k5},k5:null,angleAxis:function(n){return arguments.length===1?(this.g(t.$t2.angleAxisProperty,n),n):this.c(t.$t2.angleAxisProperty)},radiusAxis:function(n){return arguments.length===1?(this.g(t.$t2.radiusAxisProperty,n),n):this.c(t.$t2.radiusAxisProperty)},useCartesianInterpolation:function(n){return arguments.length===1?(this.g(t.$t2.useCartesianInterpolationProperty,n),n):this.c(t.$t2.useCartesianInterpolationProperty)},maximumMarkers:function(n){return arguments.length===1?(this.g(t.$t2.maximumMarkersProperty,n),n):this.c(t.$t2.maximumMarkersProperty)},trendLineType:function(n){return arguments.length===1?(this.g(t.$t2.trendLineTypeProperty,n),n):this.c(t.$t2.trendLineTypeProperty)},trendLineBrush:function(n){return arguments.length===1?(this.g(t.$t2.trendLineBrushProperty,n),n):this.c(t.$t2.trendLineBrushProperty)},actualTrendLineBrush:function(n){return arguments.length===1?(this.g(t.$t2.actualTrendLineBrushProperty,n),n):this.c(t.$t2.actualTrendLineBrushProperty)},trendLineThickness:function(n){return arguments.length===1?(this.g(t.$t2.trendLineThicknessProperty,n),n):this.c(t.$t2.trendLineThicknessProperty)},trendLineDashCap:function(n){return arguments.length===1?(this.g(t.$t2.trendLineDashCapProperty,n),n):this.c(t.$t2.trendLineDashCapProperty)},trendLineDashArray:function(n){return arguments.length===1?(this.g(t.$t2.trendLineDashArrayProperty,n),n):this.c(t.$t2.trendLineDashArrayProperty)},trendLinePeriod:function(n){return arguments.length===1?(this.g(t.$t2.trendLinePeriodProperty,n),n):this.c(t.$t2.trendLinePeriodProperty)},trendLineZIndex:function(n){return arguments.length===1?(this.g(t.$t2.trendLineZIndexProperty,n),n):this.c(t.$t2.trendLineZIndexProperty)},clipSeriesToBounds:function(n){return arguments.length===1?(this.g(t.$t2.clipSeriesToBoundsProperty,n),n):this.c(t.$t2.clipSeriesToBoundsProperty)},kz:null,k1:null,ky:null,ku:null,gs:function(){t.$fw.gs.call(this);this.radiusAxis()!=null&&this.radiusAxis().du(!1);this.angleAxis()!=null&&this.angleAxis().du(!1)},gj:function(n,t,i,r){var u=!1;this.kw().cq().p(n,t,i,r);this.angleAxis()==null||this.angleAxis().updateRange()||(u=!0);this.radiusAxis()==null||this.radiusAxis().updateRange()||(u=!0);u&&this.renderSeries(!0)},h2:function(){this.renderSeries(!1)},h3:function(){this.renderSeries(!1)},ct:function(n,i,r){var u=!0;return(!t.$fw.ct.call(this,n,i,r)||!r.m()||i.isEmpty()||n.isEmpty()||this.angleAxis()==null||this.radiusAxis()==null||this.k6()==null||this.k7()==null||this.k6().count()==0||this.k7().count()==0||this.bb()==null||this.bb().count()!=this.k6().count()||this.bb().count()!=this.k7().count()||this.ku==null||this.angleAxis().seriesViewer()==null||this.radiusAxis().seriesViewer()==null||this.angleAxis().actualMinimumValue()==this.angleAxis().actualMaximumValue()||this.radiusAxis().actualMinimumValue()==this.radiusAxis().actualMaximumValue())&&(u=!1),u},hq:function(n){var i=this,r,u,f;if(function(){var n=i.getViewInfo(u,r);return u=n.viewportRect,r=n.windowRect,n.ret}(),!i.ct(u,r,i.view())){i.gh(!0,i.view());return}i.ml=r;i.mk=u;i.kv(new t.t7(i.angleAxis(),i.radiusAxis(),i.bb()));f=new t.tz(i,u,r,n,i.cj()),function(){var n=i.k2().g(f,i.kz,i.ky,i.k1,i.kw());return i.kz=n.previousFrame,i.ky=n.currentFrame,i.k1=n.transitionFrame,n.ret}()},li:function(n){return this.ku.f(n.__x,n.__y,this.ml,this.mk,this.kv().e(),this.kv().d(),this.kv().g(),this.kv().f(),this.kv().i(),this.kv().h())},ad:function(n){return n!=null&&n==this.angleAxis()&&this.k6()!=null?new t.im(this.k6().minimum(),this.k6().maximum()):n!=null&&n==this.radiusAxis()&&this.k7()!=null?new t.im(this.k7().minimum(),this.k7().maximum()):null},scrollIntoView:function(n){var t=this.view().bw(),o=this.view().bv(),u=!t.isEmpty()&&!o.isEmpty()&&this.bb()!=null?this.bb().indexOf(n):-1;if(this.angleAxis()==null||this.k6()==null||this.radiusAxis()==null||this.k7()==null||u<0||u>this.k6().count()-1||u>this.k7().count()-1)return!1;var f=this.angleAxis().getScaledAngle(this.k6().item(u)),e=this.radiusAxis().getScaledValue2(this.k7().item(u)),i=.5+Math.cos(f)*e,r=.5+Math.sin(f)*e;return isNaN(i)||(i<t.left()+.1*t.width()&&(i=i+.4*t.width(),t.x(i-.5*t.width())),i>t.right()-.1*t.width()&&(i=i-.4*t.width(),t.x(i-.5*t.width()))),isNaN(r)||(r<t.top()+.1*t.height()&&(r=r+.4*t.height(),t.y(r-.5*t.height())),r>t.bottom()-.1*t.height()&&(r=r-.4*t.height(),t.y(r-.5*t.height()))),this.syncLink()!=null&&this.syncLink().al(this.seriesViewer(),t),u>=0},getItem:function(){return null},getItemIndex:function(){return-1},hh:function(i,r,u,f){t.$fw.hh.call(this,i,r,u,f);this.kw().cq().d(i,r,u,f)&&(this.renderSeries(!1),this.gy());switch(r){case"FastItemsSource":n.ig.util.cast(t.$jw.$type,u)!=null&&(n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.k6()),n.ig.util.cast(t.$jw.$type,u).deregisterColumn(this.k7()),this.k6(null),this.k7(null));n.ig.util.cast(t.$jw.$type,f)!=null&&(this.k6(this.a8(this.angleMemberPath())),this.k7(this.a8(this.radiusMemberPath())));(this.radiusAxis()==null||this.radiusAxis().updateRange())&&(this.angleAxis()==null||this.angleAxis().updateRange())||this.renderSeries(!1);break;case"AngleAxis":this.angleAxis()!=null&&this.radiusAxis()!=null&&(this.ku=new t.t9(this.radiusAxis(),this.angleAxis()));u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);this.angleAxis()==null||this.angleAxis().updateRange()?u!=null&&f==null&&this.gh(!0,this.view()):this.renderSeries(!1);break;case"RadiusAxis":this.angleAxis()!=null&&this.radiusAxis()!=null&&(this.ku=new t.t9(this.radiusAxis(),this.angleAxis()));u!=null&&n.ig.util.cast(t.$hc.$type,u).deregisterSeries(this);f!=null&&n.ig.util.cast(t.$hc.$type,f).registerSeries(this);this.radiusAxis()==null||this.radiusAxis().updateRange()?u!=null&&f==null&&this.gh(!0,this.view()):this.renderSeries(!1);this.angleAxis()==null||this.angleAxis().updateRange()||this.angleAxis().ds();break;case"AngleMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.k6()),this.k6(this.a8(this.angleMemberPath())));break;case"AngleColumn":this.kw().cq().v();this.angleAxis()==null||this.angleAxis().updateRange()||this.renderSeries(!1);break;case"RadiusMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.k7()),this.k7(this.a8(this.radiusMemberPath())));break;case"RadiusColumn":this.kw().cq().v();this.radiusAxis()==null||this.radiusAxis().updateRange()||this.renderSeries(!1);break;case"UseCartesianInterpolation":this.renderSeries(!1);this.gy();break;case"MaximumMarkers":this.renderSeries(!1);this.gy();break;case"TransitionProgress":if(this.kv(new t.t7(this.angleAxis(),this.radiusAxis(),this.bb())),this.ml=this.view().bw(),this.mk=this.view().bv(),this.k1.x(this.useCartesianInterpolation()),this.k1.d(this.du(),this.kz,this.ky),this.bn(this.view()))return;this.du()==1?this.l0(this.ky,this.kw()):this.l0(this.k1,this.kw());break;case"TrendLineBrush":this.hz();break;case"ClipSeriesToBounds":this.renderSeries(!1);this.gy();break;case"TrendLineType":this.gy()}},gh:function(n,i){t.$fw.gh.call(this,n,i);var r=i;n&&r.cr().clear();r.cq().o()},kr:function(n,i){var o=this,r=n.top()-10,u=n.bottom()+10,f=n.left()-10,e=n.right()+10;return function(){var n=new t.kx(1,f,u,e,r,!1);return n.i(i),n}()},lv:function(i,r){var e=this,o,u,f,s,h;for(i.i(new t.f0(n.ig.$op.$type,t.$n6.$type,1,r)),o=e.bb(),u=0;u<r;u++)f=i.y().__inner[u],Number.isInfinity(f.__x)||Number.isInfinity(f.__y)||(s={__x:e.k6().item(u),__y:e.k7().item(u),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},h={__x:f.__x,__y:f.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i.i().add(o.item(u),function(){var n=new t.n6;return n.a(o.item(u)),n.b(s),n.c(h),n}()))},ly:function(n,i){var r=this,f=i.bw(),u=i.bv(),e;if(n.k().clear(),n.p().clear(),e=Math.min(r.k6()!=null?r.k6().count():0,r.k7()!=null?r.k7().count():0),!(e<1)){r.kv(new t.t7(r.angleAxis(),r.radiusAxis(),r.bb()));r.kx=n;r.mk=u;r.ml=f;i.co().l(n.k(),r.maximumMarkers(),f,u,r.resolution());e<=r.maximumMarkers()&&r.lv(n,e,f,u);var h=r.kr(u,n.p()),o=Math.min(r.angleAxis().actualMinimumValue(),r.angleAxis().actualMaximumValue()),s=Math.max(r.angleAxis().actualMaximumValue(),r.angleAxis().actualMinimumValue());i.cq().z(r.useCartesianInterpolation());i.cq().y(0);i.cq().ab(r.radiusAxis().g7());i.cq().aa(r.radiusAxis().g6());i.cq().ac(function(n,t){return r.ku.c(n,t,f,u,Math.cos)});i.cq().ad(function(n,t){return r.ku.d(n,t,f,u,Math.sin)});i.cq().ae(n.p(),r.trendLineType(),r.k6().where$1(Number,function(n){return n<=s&&n>=o}),r.k7(),r.trendLinePeriod(),r.angleAxis().getScaledAngle.runOn(r.angleAxis()),r.radiusAxis().getScaledValue2.runOn(r.radiusAxis()),function(){var n=new t.km;return n.b(r.resolution()),n.f(u),n.g(f),n}(),h,o,s)}},l0:function(n,i){var f=i.bw(),r=i.bv(),u;this.kv(new t.t7(this.angleAxis(),this.radiusAxis(),this.bb()));i.co().j(n.k(),this.useLightweightMarkers());i.ck();u=this.kr(r,i.cq().x().ag());i.cq().u(n.p(),u);this.lu(r,f,i)},lu:function(n,t,i){i.cu(n,t)},hz:function(){(t.$fw.hz.call(this),this.index()<0)||this.kw().cw()},_k0:null,k0:function(n){return arguments.length===1?(this._k0=n,n):this._k0},hr:function(n,i){if(t.$fw.hr.call(this,n,i),!this.cl()){this.view().ax(i);return}if(this.view().ax(i),!this.bn(this.av())){var r=this.av();this.ck()||(this.k0(new t.t8),this.ly(this.k0(),r));this.ck(!1);this.l0(this.k0(),r);this.cl(!1)}},lz:function(i,r){for(var e=new t.bh(n.ig.$op.$type,0),o=r.c().getEnumerator(),u,f,s;o.moveNext();)u=o.current(),i.containsKey(u)||e.add(u);for(f=e.getEnumerator();f.moveNext();)s=f.current(),r.g(s)},k8:function(){return this.lx(),this.kx.y().toArray()},lc:function(){for(var i=new t.bh(n.ig.Number.prototype.$type,0),f=this.bb(),r=this.kw().cr().c().getEnumerator(),u;r.moveNext();)u=r.current(),i.add(f.indexOf(u));return i},lh:function(t){return{__x:this.k6().item(t),__y:this.k7().item(t),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},go:function(n){t.$fw.go.call(this,n);var i=new t.g8(1,"trendLine",this.kw().cq().x());i.tags().add("Trend");n.shapes().add(i)},$type:new n.ig.Type("PolarBase",t.$fw.$type)},!0);n.ig.util.defType("PolarLineSeriesBase:aaa","PolarBase",{au:function(){return new t.aab(this)},hc:function(n){t.$t2.hc.call(this,n);this.mp(n)},_mp:null,mp:function(n){return arguments.length===1?(this._mp=n,n):this._mp},init:function(){t.$t2.init.call(this);this.mm(new t.zv(1,new t.zy));this.mo(new t.zv(0))},_mm:null,mm:function(n){return arguments.length===1?(this._mm=n,n):this._mm},_mo:null,mo:function(n){return arguments.length===1?(this._mo=n,n):this._mo},mq:function(){return 1},mt:function(){return!1},mv:function(){return!1},ly:function(i,r){var u=this,o;t.$t2.ly.call(u,i,r);i.o().clear();var s=r.bw(),h=r.bv(),c=u.k6()!=null?u.k6().count():0,l=u.k7()!=null?u.k7().count():0,f=Math.min(c,l),a=function(){var n=new t.t5;return n.m(function(n){return u.kv().a().getScaledAngle1(u.k6().item(n),u.kv().e(),u.kv().d())}),n.q(f),n.n(function(n){return u.radiusAxis().hc(u.k7().item(n),u.kv().g(),u.kv().f(),u.kv().i(),u.kv().h())}),n.l(u.resolution()),n.f(u.useCartesianInterpolation()),n.b(u.mq()),n.o(function(n){return u.mw(i,n)}),n.p(function(n){return u.mx(i,n)}),n.ab(h),n.ac(s),n.d(u.mv()),n.c(u.mt()),n}(),e=t.$i9.d(0,f).where$1(n.ig.Number.prototype.$type,function(n){return u.mu(n)});u.mv()&&(o=new t.bh(n.ig.Number.prototype.$type,1,t.$i9.d(0,f).where$1(n.ig.Number.prototype.$type,u.mu.runOn(u)).take$1(n.ig.Number.prototype.$type,1)),e=e.concat$1(n.ig.Number.prototype.$type,o));a.x(i.o(),e)},mw:function(n,t){return n.y().__inner[t].__x},mx:function(n,t){return n.y().__inner[t].__y},ms:function(){return!this.mr()},mr:function(){var t=this.seriesViewer().actualWindowRect();return!t.containsPoint({__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},mu:function(n){return this.k6().item(n)>=this.kv().a().actualMinimumValue()&&this.k6().item(n)<=this.kv().a().actualMaximumValue()&&this.k7().item(n)>=this.kv().b().actualMinimumValue()&&this.k7().item(n)<=this.kv().b().actualMaximumValue()||isNaN(this.k6().item(n))||isNaN(this.k7().item(n))},my:function(){},mz:function(){},gh:function(n,i){t.$t2.gh.call(this,n,i);this.my(i)},_mn:null,mn:function(n){return arguments.length===1?(this._mn=n,n):this._mn},l0:function(n,i){t.$t2.l0.call(this,n,i);this.useCartesianInterpolation()?this.mn(this.mm()):this.mn(this.mo());this.mn().b(this.mq());this.my(i);this.mz(n,i)},$type:new n.ig.Type("PolarLineSeriesBase",t.$t2.$type)},!0);n.ig.util.defType("PolarAreaSeries:aac","PolarLineSeriesBase",{au:function(){return new t.aad(this)},hc:function(n){t.$aaa.hc.call(this,n);this.m0(n)},_m0:null,m0:function(n){return arguments.length===1?(this._m0=n,n):this._m0},init:function(){t.$aaa.init.call(this);this.y(t.$aac.$type)},my:function(n){var t=n;t.c0()},mz:function(n,i){n.o().any$1(t.$z.$type)&&n.o().first$1(t.$z.$type)!=n.o().last$1(t.$z.$type)&&n.o().add(n.o().first$1(t.$z.$type));var r=i;r.c3().__opacity=this.actualAreaFillOpacity();r.c1(n.o(),this.resolution())},mv:function(){return!0},unknownValuePlotting:function(n){return arguments.length===1?(this.g(t.$aac.unknownValuePlottingProperty,n),n):this.c(t.$aac.unknownValuePlottingProperty)},mq:function(){return this.unknownValuePlotting()},$type:new n.ig.Type("PolarAreaSeries",t.$aaa.$type)},!0);n.ig.util.defType("PolarBaseView:t3","MarkerSeriesView",{_cp:null,cp:function(n){return arguments.length===1?(this._cp=n,n):this._cp},_co:null,co:function(n){return arguments.length===1?(this._co=n,n):this._co},init:function(i){t.$fx.init.call(this,i);this.cp(i);this.cr(new t.f6(n.ig.$op.$type,t.$fy.$type));this.cf(this.cr());this.cq(new t.t4)},_cq:null,cq:function(n){return arguments.length===1?(this._cq=n,n):this._cq},ao:function(){t.$fx.ao.call(this);this.co(this.cn());this.n()||(this.cp().maximumMarkers(1e3),this.b2().markerType(2))},cn:function(){var n=this,i=new t.n5(0,function(t){return n.cr().item(t)},function(t){return n.cp().kv().c().item(t)},n.cv.runOn(n),n.cs.runOn(n),n.ct.runOn(n));return i.m(!0),i.p(n.cp().lh.runOn(n.cp())),i},cv:function(n){this.cp().lz(n,this.cr())},cs:function(){return this.cp().k8(this.cr(),this.bw(),this.bv())},ct:function(){return this.cp().lc(this.cr())},cu:function(n,i){if(this.cp().clipSeriesToBounds()){var r=new t.du;this.cp().radiusAxis().hj(r,n,i)}},cw:function(){this.cp().trendLineBrush()!=null?this.cp().actualTrendLineBrush(this.cp().trendLineBrush()):this.cp().actualTrendLineBrush(this.cp().actualBrush())},_cr:null,cr:function(n){return arguments.length===1?(this._cr=n,n):this._cr},cd:function(n){this.cr().f(n)},a0:function(n,i){t.$fx.a0.call(this,n,i)},cx:function(){return t.$x.empty()},getDefaultTooltipTemplate:function(){var n="<div class='ui-chart-default-tooltip-content'><span>${item."+this.cp().angleMemberPath()+"}<\/span><br/><span";return this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&(n+=" style='color:"+this.d().actualOutline().__fill+"'"),n+(">"+this.cp().title()+": <\/span><span class='ui-priority-primary'>${item."+this.cp().radiusMemberPath()+"}<\/span><\/div>")},$type:new n.ig.Type("PolarBaseView",t.$fx.$type)},!0);n.ig.util.defType("PolarLineSeriesBaseView:aab","PolarBaseView",{_cy:null,cy:function(n){return arguments.length===1?(this._cy=n,n):this._cy},init:function(n){t.$t3.init.call(this,n);this.cy(n)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(1);this.d().shadowOffsetY(4);this.d().useSingleShadow(!1)},$type:new n.ig.Type("PolarLineSeriesBaseView",t.$t3.$type)},!0);n.ig.util.defType("PolarAreaSeriesView:aad","PolarLineSeriesBaseView",{_cz:null,cz:function(n){return arguments.length===1?(this._cz=n,n):this._cz},init:function(n){this.c4=new t.b6;this.c2=new t.b6;t.$aab.init.call(this,n);this.cz(n)},ao:function(){var n=this;t.$aab.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},c4:null,c2:null,c3:function(){return this.c2},c0:function(){this.c2.ak(null);this.c4.ak(null);this.am()},c1:function(n,i){var r=new t.bh(t.$z.$type,1,n);this.cz().mn().d(this.c4,r,i);this.cz().mn().d(this.c2,r,i);this.am()},a6:function(){t.$aab.a6.call(this);this.c4.__stroke=this.d().actualOutline();this.c4.z(this.d().thickness());this.c4.af(this.d().dashArray());this.c4.aa(this.d().dashCap());this.c2.__fill=this.d().actualBrush();this.c2.__opacity=this.d().actualAreaFillOpacity()},a7:function(){t.$aab.a7.call(this);var n=this.br();this.c4.__stroke=n;this.c4.z(this.d().thickness()+3);this.c2.__fill=n;this.c2.__opacity=1},a1:function(n,i){t.$aab.a1.call(this,n,i);n.c()&&(n.q(this.c2),n.q(this.c4))},ah:function(n){var i,r;t.$aab.ah.call(this,n);i=new t.me(1,"polarShape",this.c4);i.tags().add("Main");r=new t.me(1,"fillShape",this.c2);r.tags().add("Fill");n.shapes().add(i);n.shapes().add(r)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(5);this.d().shadowOffsetX(5);this.d().shadowOffsetY(5)},$type:new n.ig.Type("PolarAreaSeriesView",t.$aab.$type)},!0);n.ig.util.defType("PolarAxisInfoCache:t7","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_g:!1,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_f:!1,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},init:function(t,i,r){n.ig.$op.init.call(this);this.a(t);this.b(i);this.e(this.a().fy());this.d(this.a().isInverted());this.g(this.b().fy());this.f(this.b().isInverted());this.i(this.b().g7());this.h(this.b().g6());this.c(r)},$type:new n.ig.Type("PolarAxisInfoCache",n.ig.$ot)},!0);n.ig.util.defType("ScatterFrameBase$1:ok","Frame",{$t:null,init:function(i){var r=this;this.$t=i;this.$type=this.$type.specialize(this.$t);t.$kt.init.call(this);this.o(new t.bh(t.$z.$type,0));this.i(new t.f0(n.ig.$op.$type,t.$n6.$type,0));this.k(new t.f0(n.ig.$op.$type,t.$n6.$type,0));this.p(new t.bh(t.$z.$type,0));this.j(new t.f0(n.ig.$op.$type,t.$n6.$type,0));this.l(new t.f0(n.ig.$op.$type,t.$n6.$type,0));this.m(new t.f0(n.ig.$op.$type,Number,0));this.n(new t.f0(n.ig.$op.$type,Number,0));this.q(function(n){return n});this.h(new t.ol(n.ig.$op.$type,t.$n6.$type,this.$t,this.u.runOn(this),function(n){return n.a()},function(n){return!isNaN(n.c().__x)&&!isNaN(n.c().__y)},function(){return new t.n6}))},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},d:function(n,i,r){var f=i,u=r;f!=null&&u!=null&&(this.h().e(this.i(),n,f.i(),u.i(),f,u),t.$kt.b(this.o(),n,f.o(),u.o()),this.h().e(this.k(),n,f.k(),u.k(),f,u),this.h().e(this.j(),n,f.j(),u.j(),f,u),this.h().e(this.l(),n,f.l(),u.l(),f,u),this.r(this.k(),n,f,u),t.$kt.b(this.p(),n,f.p(),u.p()),this.m(u.m()),this.n(u.n()),this.t(n,f,u))},t:function(){},r:function(n,i,r,u){for(var h=this,s=r.i().values().where$1(t.$n6.$type,function(t){return!n.containsKey(t.a())}).getEnumerator(),e,o,f;s.moveNext();)(e=s.current(),function(){var n=u.i().tryGetValue(e.a(),o);return o=n.value,n.ret}()&&(o.b().__x!=e.b().__x||o.b().__y!=e.b().__y))&&((f=new t.n6,h.u(f,i,e,o,r,u),isNaN(f.c().__x)||isNaN(f.c().__y))||n.add(f.a(),f))},_q:null,q:function(n){return arguments.length===1?(this._q=n,n):this._q},s:function(t,i,r,u){r!=null?t.b({__x:r.b().__x,__y:r.b().__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):u!=null&&t.b({__x:u.b().__x,__y:u.b().__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},u:function(t,i,r,u,f,e){var h=this,o,s,c,l;if(r==null)if(u!=null)o=function(){var n=f.i().tryGetValue(u.a(),c);return c=n.value,n.ret}()?c:h.q()(u,f,e);else{t.c({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});return}else o=r,t.a()==null&&t.a(r.a());if(u==null)if(r!=null)if(function(){var n=e.i().tryGetValue(r.a(),l);return l=n.value,n.ret}())s=l;else{t.c({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});return}else{t.c({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});return}else s=u,t.a()==null&&t.a(u.a());h.s(t,i,o,s);(isNaN(o.c().__x)||isNaN(o.c().__y))&&(o=s);h.v(t,i,o,s)},v:function(t,i,r,u){var f=1-i;t.c({__x:r.c().__x*f+u.c().__x*i,__y:r.c().__y*f+u.c().__y*i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},$type:new n.ig.Type("ScatterFrameBase$1",t.$kt.$type)},!0);n.ig.util.defType("PolarFrame:t8","ScatterFrameBase$1",{init:function(){t.$ok.init.call(this,t.$t8.$type);this.y(new t.bh(t.$z.$type,0));this.x(!0)},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_x:!1,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},t:function(i,r,u){var f=n.ig.util.cast(t.$t8.$type,r),e=n.ig.util.cast(t.$t8.$type,u);f!=null&&e!=null&&t.$kt.b(this.y(),i,f.y(),e.y())},s:function(i,r,u,f){if(this.x())t.$ok.s.call(this,i,r,u,f);else if(t.$ok.s.call(this,i,r,u,f),u!=null&&f!=null&&(u.b().__x!=f.b().__x||u.b().__y!=f.b().__y)){var e=1-r;i.b({__x:u.b().__x*e+f.b().__x*r,__y:u.b().__y*e+f.b().__y*r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}},w:function(n){return!isNaN(n.__x)&&!isNaN(n.__y)&&!Number.isInfinity(n.__x)&&!Number.isInfinity(n.__y)},v:function(n,i,r,u){this.x()?t.$ok.v.call(this,n,i,r,u):r!=null&&u!=null&&(r.c().__x!=u.c().__x||r.c().__y!=u.c().__y)&&this.w(n.b())?n.c(this.z()(n.b())):t.$ok.v.call(this,n,i,r,u)},$type:new n.ig.Type("PolarFrame",t.$ok.$type.specialize(t.$t8.$type))},!0);n.ig.util.defType("AngleRadiusPair:t6","Object",{init:function(){n.ig.$op.init.call(this)},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("AngleRadiusPair",n.ig.$ot)},!0);n.ig.util.defType("PolarLinePlanner:t5","Object",{init:function(){n.ig.$op.init.call(this)},_f:!1,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_q:0,q:function(n){return arguments.length===1?(this._q=n,n):this._q},z:null,ab:function(n){return arguments.length===1?(this.z=n,n):this.z},aa:null,ac:function(n){return arguments.length===1?(this.aa=n,n):this.aa},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},g:function(){return this.m()==null||this.n()==null||this.o()==null||this.p()==null||this.ab()==t.$x.empty()||this.ac()==t.$x.empty()?!1:!0},k:function(n,t,i,r){var u=n(r)-n(i),f=t(r)-t(i);return u*u+f*f},h:function(n){var o=new t.bh(t.$t6.$type,0),h=this.l()*this.l(),s,i,r,u,f,e;for(s=n!=null?n:t.$i9.d(0,this.q()),i=s.getEnumerator(),r=!0,r=i.moveNext(),u=i.current();r;){for(f=u,r=i.moveNext(),u=i.current();r&&this.k(this.o(),this.p(),f,u)<h;)r=i.moveNext(),u=i.current();e=new t.t6;e.c(f);this.f()||(e.a(this.m()(f)),e.b(this.n()(f)));o.add(e)}return o},v:function(t){for(var r=this.h(t).getEnumerator(),i;r.moveNext();){if(i=r.current(),isNaN(i.a())||Number.isInfinity(i.a())||isNaN(i.b())||Number.isInfinity(i.b())){this.s({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});continue}this.s({__x:this.o()(i.c()),__y:this.p()(i.c()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}},j:function(){return Math.pow(this.l()/Math.max(this.ab().width()/this.ac().width(),this.ab().height()/this.ac().height()),2)},r:function(t,i){var r=.5+i*Math.cos(t),u=.5+i*Math.sin(t);r=this.z.left()+this.z.width()*(r-this.aa.left())/this.aa.width();u=this.z.top()+this.z.height()*(u-this.aa.top())/this.aa.height();this.s({__x:r,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},y:function(t){for(var c=this.j(),i=this.h(t),e=i.item(0).a(),o=i.item(0).b(),s=i.item(0).c(),r=1;r<i.count();r++){var u=i.item(r).a(),f=i.item(r).b(),h=i.item(r).c();if(isNaN(u)||Number.isInfinity(u)||isNaN(f)||Number.isInfinity(f)){this.s({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.b()!=0&&(r++,r<i.count()&&(e=i.item(r).a(),o=i.item(r).b()));continue}this.t(u,f,e,o,r,c,s>h);e=u;o=f;s=h}},t:function(n,i,r,u,f,e,o){var l=!1,s,h,c;for((n<r&&!o||n>r&&o)&&(l=!0,s=n,n=r,r=s,s=i,i=u,u=s),h=t.$k3.g(r,u,n,i,e),l&&(h=h.reverse$1(Number)),c=h.getEnumerator();c.moveNext();){var a=c.current(),v=r+a*(n-r),y=u+a*(i-u);this.r(v,y)}},u:function(n){var i=this,r=i.ab().top()-10,u=i.ab().bottom()+10,f=i.ab().left()-10,e=i.ab().right()+10;i.a()==null&&i.a(function(){var o=new t.kx(1,f,u,e,r,i.d());return o.i(n),o}())},e:function(n){return!isNaN(n.__x)&&!isNaN(n.__y)&&!Number.isInfinity(n.__x)&&!Number.isInfinity(n.__y)},s:function(n){(this.b()!=0||this.e(n))&&(this.c()?this.i().add(n):this.a().j(n))},w:function(){this.x(null,null)},x:function(n,t){(this.i(n),this.g())&&this.q()>1&&(this.u(n),this.f()?this.v(t):this.y(t),this.a().i(null))},$type:new n.ig.Type("PolarLinePlanner",n.ig.$ot)},!0);n.ig.util.defType("PolarLineSeries:aae","PolarLineSeriesBase",{au:function(){return new t.aaf(this)},hc:function(n){t.$aaa.hc.call(this,n);this.m0(n)},_m0:null,m0:function(n){return arguments.length===1?(this._m0=n,n):this._m0},init:function(){t.$aaa.init.call(this);this.y(t.$aae.$type)},my:function(n){var t=n;t.c0()},mz:function(n,t){var i=t;i.c1(n.o(),this.resolution())},unknownValuePlotting:function(n){return arguments.length===1?(this.g(t.$aae.unknownValuePlottingProperty,n),n):this.c(t.$aae.unknownValuePlottingProperty)},mq:function(){return this.unknownValuePlotting()},hh:function(n,i,r,u){t.$aaa.hh.call(this,n,i,r,u);switch(i){case"UnknownValuePlotting":this.renderSeries(!1);this.gy()}},$type:new n.ig.Type("PolarLineSeries",t.$aaa.$type)},!0);n.ig.util.defType("PolarLineSeriesView:aaf","PolarLineSeriesBaseView",{_cz:null,cz:function(n){return arguments.length===1?(this._cz=n,n):this._cz},init:function(n){this.c2=new t.b6;t.$aab.init.call(this,n);this.cz(n)},ao:function(){t.$aab.ao.call(this)},c2:null,c0:function(){this.c2.ak(null);this.am()},c1:function(n,t){this.cz().mn().d(this.c2,n,t);this.am()},a6:function(){t.$aab.a6.call(this);this.c2.__stroke=this.d().actualBrush();this.c2.z(this.d().thickness());this.c2.af(this.d().dashArray());this.c2.aa(this.d().dashCap())},a7:function(){t.$aab.a7.call(this);var n=this.br();this.c2.__stroke=n;this.c2.z(this.d().thickness()+3)},a1:function(n,i){t.$aab.a1.call(this,n,i);n.q(this.c2)},ah:function(n){t.$aab.ah.call(this,n);var i=new t.me(1,"polarShape",this.c2);i.tags().add("Main");n.shapes().add(i)},$type:new n.ig.Type("PolarLineSeriesView",t.$aab.$type)},!0);n.ig.util.defType("PolarScatterSeries:aag","PolarBase",{au:function(){return new t.aah(this)},hc:function(n){t.$t2.hc.call(this,n);this.mm(n)},_mm:null,mm:function(n){return arguments.length===1?(this._mm=n,n):this._mm},init:function(){t.$t2.init.call(this);this.y(t.$aag.$type)},$type:new n.ig.Type("PolarScatterSeries",t.$t2.$type)},!0);n.ig.util.defType("PolarScatterSeriesView:aah","PolarBaseView",{_cy:null,cy:function(n){return arguments.length===1?(this._cy=n,n):this._cy},init:function(n){t.$t3.init.call(this,n);this.cy(n)},ao:function(){var n=this;t.$t3.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.p),n.measure(t.$mx.j),n}())},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(2);this.d().shadowOffsetY(2);this.d().useSingleShadow(!1)},$type:new n.ig.Type("PolarScatterSeriesView",t.$t3.$type)},!0);n.ig.util.defType("PolarSplineAreaSeries:aai","PolarLineSeriesBase",{au:function(){return new t.aaj(this)},hc:function(n){t.$aaa.hc.call(this,n);this.m0(n)},_m0:null,m0:function(n){return arguments.length===1?(this._m0=n,n):this._m0},init:function(){t.$aaa.init.call(this);this.y(t.$aai.$type)},my:function(n){var t=n;t.c0()},mz:function(n,t){if(this.my(t),!(n.o().count()<1)){var i=t;i.c3().__opacity=this.actualAreaFillOpacity();i.c1(n.o(),this.stiffness())}},mv:function(){return!0},stiffness:function(n){return arguments.length===1?(this.g(t.$aai.stiffnessProperty,n),n):this.c(t.$aai.stiffnessProperty)},hh:function(n,i,r,u){t.$aaa.hh.call(this,n,i,r,u);switch(i){case"Stiffness":this.renderSeries(!1)}},$type:new n.ig.Type("PolarSplineAreaSeries",t.$aaa.$type)},!0);n.ig.util.defType("PolarSplineAreaSeriesView:aaj","PolarLineSeriesBaseView",{_cz:null,cz:function(n){return arguments.length===1?(this._cz=n,n):this._cz},init:function(n){this.c4=function(){var n=new t.b6;return n.ak(new t.dx),n}();this.c2=function(){var n=new t.b6;return n.ak(new t.dx),n}();t.$aab.init.call(this,n);this.cz(n)},ao:function(){var n=this;t.$aab.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},c4:null,c2:null,c3:function(){return this.c2},c0:function(){n.ig.util.cast(t.$dx.$type,this.c2.ak()).reset1();n.ig.util.cast(t.$dx.$type,this.c4.ak()).reset1();this.am()},c1:function(i,r){var u=this;n.ig.util.cast(t.$dx.$type,u.c4.ak()).b(t.$lb.h(i.count()+1,function(n){return n<i.count()?i.__inner[n].__x:i.__inner[n-i.count()].__x},function(n){return n<i.count()?i.__inner[n].__y:i.__inner[n-i.count()].__y},r));n.ig.util.cast(t.$dx.$type,u.c2.ak()).b(t.$lb.h(i.count()+1,function(n){return n<i.count()?i.__inner[n].__x:i.__inner[n-i.count()].__x},function(n){return n<i.count()?i.__inner[n].__y:i.__inner[n-i.count()].__y},r));u.am()},a6:function(){t.$aab.a6.call(this);this.c2.__fill=this.d().actualBrush();this.c2.__opacity=this.d().actualAreaFillOpacity();this.c4.__stroke=this.d().actualOutline();this.c4.z(this.d().thickness());this.c4.af(this.d().dashArray());this.c4.aa(this.d().dashCap())},a7:function(){t.$aab.a7.call(this);var n=this.br();this.c2.__fill=n;this.c2.__opacity=1;this.c4.__stroke=n;this.c4.z(this.d().thickness()+3)},a1:function(n,i){t.$aab.a1.call(this,n,i);n.c()&&(n.q(this.c2),n.q(this.c4))},ah:function(n){var i,r;t.$aab.ah.call(this,n);i=new t.me(1,"polarShape",this.c4);i.tags().add("Main");r=new t.me(1,"fillShape",this.c2);r.tags().add("Fill");n.shapes().add(i);n.shapes().add(r)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(5);this.d().shadowOffsetX(5);this.d().shadowOffsetY(5)},$type:new n.ig.Type("PolarSplineAreaSeriesView",t.$aab.$type)},!0);n.ig.util.defType("PolarSplineSeries:aak","PolarLineSeriesBase",{au:function(){return new t.aal(this)},hc:function(n){t.$aaa.hc.call(this,n);this.m0(n)},_m0:null,m0:function(n){return arguments.length===1?(this._m0=n,n):this._m0},init:function(){t.$aaa.init.call(this);this.y(t.$aak.$type)},stiffness:function(n){return arguments.length===1?(this.g(t.$aak.stiffnessProperty,n),n):this.c(t.$aak.stiffnessProperty)},hh:function(n,i,r,u){t.$aaa.hh.call(this,n,i,r,u);switch(i){case"Stiffness":this.renderSeries(!1)}},my:function(n){var t=n;t.c0()},mz:function(n,t){this.my(t);var i=t;i.c1(n.o(),this.stiffness())},$type:new n.ig.Type("PolarSplineSeries",t.$aaa.$type)},!0);n.ig.util.defType("PolarSplineSeriesView:aal","PolarLineSeriesBaseView",{_cz:null,cz:function(n){return arguments.length===1?(this._cz=n,n):this._cz},init:function(n){this.c2=function(){var n=new t.b6;return n.ak(new t.dx),n}();t.$aab.init.call(this,n);this.cz(n)},ao:function(){var i=this,n;t.$aab.ao.call(i);n=new t.dx;n.b().add(function(){return new t.d6}());i.c2.ak(n)},c2:null,c0:function(){n.ig.util.cast(t.$dx.$type,this.c2.ak()).reset1();this.am()},c1:function(i,r){var u=this;n.ig.util.cast(t.$dx.$type,u.c2.ak()).b(t.$lb.h(i.count(),function(n){return i.__inner[n].__x},function(n){return i.__inner[n].__y},r));u.am()},a6:function(){t.$aab.a6.call(this);this.c2.__stroke=this.d().actualBrush();this.c2.z(this.d().thickness());this.c2.af(this.d().dashArray());this.c2.aa(this.d().dashCap())},a7:function(){t.$aab.a7.call(this);var n=this.br();this.c2.__stroke=n;this.c2.z(this.d().thickness()+3)},a1:function(n,i){t.$aab.a1.call(this,n,i);n.q(this.c2)},ah:function(n){t.$aab.ah.call(this,n);var i=new t.me(1,"polarShape",this.c2);i.tags().add("Main");n.shapes().add(i)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(1);this.d().shadowOffsetY(4);this.d().useSingleShadow(!1)},$type:new n.ig.Type("PolarSplineSeriesView",t.$aab.$type)},!0);n.ig.util.defType("RadialBucketCalculator:tx","Object",{_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},init:function(t){n.ig.$op.init.call(this);this.a(t)},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},getBucket:function(){throw new t.f5;},getErrorBucket:function(){return NaN},getBucketInfo:function(n,t,i,r){return n=this.c(),t=this.d(),i=this.b(),r=this.a().cn().resolution(),{firstBucket:n,lastBucket:t,bucketSize:i,resolution:r}},e:function(n){var u=this.a().bw(),t=this.a().bv(),i=this.a().cn().angleAxis(),f,r;if(u.isEmpty()||t.isEmpty()||i==null||this.a().cn().bb()==null||this.a().cn().bb().count()==0){this.b(0);return}f=Math.floor(i.hd(t,u));r=Math.ceil(i.hc(t,u));i.isInverted()&&(r=Math.ceil(i.hd(t,u)),f=Math.floor(i.hc(t,u)));r<f&&(r=i.f3+r);var e=this.a().cn().valueAxis(),o=e!=null?e.g7():.75,s=Math.min(t.width(),t.height())*.5*o*2*3.14159265358979,h=Math.floor((r-f+1)*n/s);this.b(Math.max(1,h));this.c(Math.max(0,Math.floor(f/this.b())-1));this.d(Math.ceil(r/this.b()))},cacheValues:function(){},unCacheValues:function(){},$type:new n.ig.Type("RadialBucketCalculator",n.ig.$ot,[t.$kf.$type])},!0);n.ig.util.defType("AnchoredRadialBucketCalculator:za","RadialBucketCalculator",{_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},init:function(n){t.$tx.init.call(this,n);this.f(n)},getBucket:function(n){for(var i,f=this,e=f.f().cs().lj(),r=Math.min(n*f.b(),e.count()-1),o=Math.min(r+f.b()-1,e.count()-1),t=NaN,u=NaN,s=r;s<=o;++s)i=e.item(s),isNaN(t)?(t=i,u=i):isNaN(i)||(t=Math.min(t,i),u=Math.max(u,i));return isNaN(t)?function(){var n=[];return n.add(.5*(r+o)),n.add(NaN),n.add(NaN),n}():function(){var n=[];return n.add(.5*(r+o)),n.add(t),n.add(u),n}()},$type:new n.ig.Type("AnchoredRadialBucketCalculator",t.$tx.$type)},!0);n.ig.util.defType("RadialFrame:t0","CategoryFrame",{init:function(n){t.$ks.init.call(this,n)},$type:new n.ig.Type("RadialFrame",t.$ks.$type)},!0);n.ig.util.defType("RadialColumnSeries:aam","AnchoredRadialSeries",{au:function(){return new t.aan(this)},hc:function(n){t.$y7.hc.call(this,n);this.mf(n)},_mf:null,mf:function(n){return arguments.length===1?(this._mf=n,n):this._mf},init:function(){t.$y7.init.call(this);this.y(t.$aam.$type)},onApplyTemplate:function(){t.$y7.z.call(this);this.renderSeries(!1)},radiusX:function(n){return arguments.length===1?(this.g(t.$aam.radiusXProperty,n),n):this.c(t.$aam.radiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$aam.radiusYProperty,n),n):this.c(t.$aam.radiusYProperty)},preferredCategoryMode:function(n){return n!=null&&n==this.angleAxis()?2:0},gh:function(n,i){t.$y7.gh.call(this,n,i);var r=i;n&&r.cx.c(0)},k9:function(i,r){var o,c;t.$y7.k9.call(this,i,r);var k=i.h,f=r.bw(),e=r.bv(),d=this.valueAxis().fm(e,f),g=r,vt=this.valueAxis(),l=Math.max(0,.5*vt.g6());l=Math.max(l,d.minLength()*.9);var yt=t.$jd.d(l,f,e),nt=this.angleAxis().fy(f,e),a=Math.max(.1*this.valueAxis().g7(),l),tt=this.ku.d(0,a,f,e),it=this.ku.e(0,a,f,e),rt=this.ku.d(nt,a,f,e),ut=this.ku.e(nt,a,f,e),ft=Math.sqrt((tt-rt)*(tt-rt)+(it-ut)*(it-ut)),u={__x:t.$jd.c(.5,f,e),__y:t.$jd.f(.5,f,e),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};for(o=0;o<k.count();++o){var et=Math.min(i.h.__inner[o][2],d.maxLength()*1.1),ot=this.ku.d(i.h.__inner[o][0],et,f,e),st=this.ku.e(i.h.__inner[o][0],et,f,e),pt=Math.sqrt((ot-u.__x)*(ot-u.__x)+(st-u.__y)*(st-u.__y)),ht=pt,ct=yt,lt=i.h.__inner[o][0]-3.14159265358979/2,wt=g.cx.item(o),v=0-ft/2,y=ft/2,p=Math.max(ct,ht),w=Math.min(ct,ht),s=Math.cos(lt),h=Math.sin(lt),bt={__x:u.__x+(v*s-p*h),__y:u.__y+(v*h+p*s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},kt={__x:u.__x+(y*s-p*h),__y:u.__y+(y*h+p*s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},dt={__x:u.__x+(y*s-w*h),__y:u.__y+(y*h+w*s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},gt={__x:u.__x+(v*s-w*h),__y:u.__y+(v*h+w*s),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},at=new t.dx,b=new t.d6;b.__startPoint=bt;b.__isClosed=!0;c=new t.d9;c.__points.add(kt);c.__points.add(dt);c.__points.add(gt);b.__segments.add(c);at.b().add(b);wt.ak(at)}g.cx.c(k.count());this.mf().c2()},$type:new n.ig.Type("RadialColumnSeries",t.$y7.$type)},!0);n.ig.util.defType("RadialColumnSeriesView:aan","AnchoredRadialSeriesView",{_cw:null,cw:function(n){return arguments.length===1?(this._cw=n,n):this._cw},init:function(n){var i=this;t.$y8.init.call(this,n);this.cw(n);this.cx=function(){var n=new t.ga(t.$b6.$type);return n.create(i.c4.runOn(i)),n.activate(i.cz.runOn(i)),n.disactivate(i.c1.runOn(i)),n.destroy(i.c0.runOn(i)),n}()},cx:null,ao:function(){var n=this;t.$y8.ao.call(n);n.cy(new t.bh(t.$b6.$type,0));n.n()||(n.d().resolution(4),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}()))},_cy:null,cy:function(n){return arguments.length===1?(this._cy=n,n):this._cy},c4:function(){var n=new t.b6;return this.cy().add(n),n.__visibility=1,n},cz:function(n){n.__visibility=0},c1:function(n){n.__visibility=1},c0:function(n){this.cy().remove(n)},c3:function(){this.am()},a9:function(n,i){t.$y8.a9.call(this,n,i);var r=n;r.__fill=this.d().actualBrush();r.__stroke=this.d().actualOutline();r.z(this.d().thickness());r.af(this.d().dashArray());r.aa(this.d().dashCap())},ba:function(n,i){t.$y8.ba.call(this,n,i);var r=n,u=this.bs(i);r.__fill=u;r.__stroke=u;r.z(this.d().thickness()+3)},a1:function(n,i){var r,u;if(t.$y8.a1.call(this,n,i),n.c())for(r=0;r<this.cy().count();r++)u=this.cy().__inner[r],this.a8(u,r,i),n.q(u)},ah:function(n){var r,u,f,i;for(t.$y8.ah.call(this,n),r=0,u=this.cx.a().getEnumerator();u.moveNext();)f=u.current(),i=new t.me(1,"column"+r,f),i.tags().add("Main"),i.tags().add("Fill"),n.shapes().add(i),r++},c2:function(){this.am()},$type:new n.ig.Type("RadialColumnSeriesView",t.$y8.$type)},!0);n.ig.util.defType("RadialLineSeries:aao","AnchoredRadialSeries",{au:function(){return new t.aap(this)},hc:function(n){t.$y7.hc.call(this,n);this.mf(n)},_mf:null,mf:function(n){return arguments.length===1?(this._mf=n,n):this._mf},init:function(){t.$y7.init.call(this);this.y(t.$aao.$type)},onApplyTemplate:function(){t.$y7.z.call(this)},preferredCategoryMode:function(){return 0},gh:function(n,i){t.$y7.gh.call(this,n,i);var r=i;r.cx()},k9:function(i,r){var u,f,h,l;t.$y7.k9.call(this,i,r);var e=r.bw(),o=r.bv(),v=i.h,s=v.count(),c=new t.bh(n.ig.Array.prototype.$type,2,s),a=0;for(u=0;u<s;u++)f=new Array(4),c.add(f),f[0]=this.ku.d(i.h.__inner[u][0],i.h.__inner[u][1],e,o),f[1]=this.ku.e(i.h.__inner[u][0],i.h.__inner[u][1],e,o),f[2]=this.ku.d(i.h.__inner[u][0],i.h.__inner[u][2],e,o),h=i.h.__inner[u][2],f[3]=this.ku.e(i.h.__inner[u][0],h,e,o),h>a&&(a=h);l=r;l.cy(s,c,!1,this.unknownValuePlotting(),this.ld(c,s-1,r),l.co().b(),this.resolution())},unknownValuePlotting:function(n){return arguments.length===1?(this.g(t.$aao.unknownValuePlottingProperty,n),n):this.c(t.$aao.unknownValuePlottingProperty)},hh:function(n,i,r,u){t.$y7.hh.call(this,n,i,r,u);switch(i){case"UnknownValuePlotting":this.renderSeries(!1);this.gy()}},lm:function(){return!0},$type:new n.ig.Type("RadialLineSeries",t.$y7.$type)},!0);n.ig.util.defType("RadialLineSeriesView:aap","AnchoredRadialSeriesView",{_cw:null,cw:function(n){return arguments.length===1?(this._cw=n,n):this._cw},init:function(n){this.c0=new t.b6;this.cz=new t.b6;this.c1=new t.b6;t.$y8.init.call(this,n);this.cw(n)},ao:function(){t.$y8.ao.call(this)},c0:null,cz:null,c1:null,cx:function(){this.c0.ak(null);this.cz.ak(null);this.c1.ak(null);this.am()},cy:function(n,t,i,r,u,f,e){this.cs().lf().l(this.c0,this.cz,this.c1,n,t,i,r,u,f,e);this.am()},a6:function(){t.$y8.a6.call(this);this.c0.__stroke=this.d().actualBrush();this.c0.z(this.d().thickness());this.c0.af(this.d().dashArray());this.c0.aa(this.d().dashCap());this.c1.__stroke=this.d().actualBrush();this.c1.z(this.d().thickness());this.c1.af(this.d().dashArray());this.c1.aa(this.d().dashCap());this.cz.__fill=this.d().actualBrush();this.cz.__opacity=.75},a7:function(){t.$y8.a7.call(this);var n=this.br();this.c0.__stroke=n;this.c0.z(this.d().thickness()+3);this.c1.__stroke=n;this.c1.z(this.d().thickness()+3);this.cz.__fill=n;this.cz.__opacity=1},a1:function(n,i){t.$y8.a1.call(this,n,i);n.c()&&(n.q(this.cz),n.q(this.c0),n.q(this.c1))},ah:function(n){var i,r,u;t.$y8.ah.call(this,n);i=new t.me(1,"lowerShape",this.c0);i.tags().add("Lower");i.tags().add("Main");r=new t.me(1,"upperShape",this.c1);r.tags().add("Upper");u=new t.me(1,"translucentShape",this.cz);u.tags().add("Translucent");n.shapes().add(i);n.shapes().add(r);n.shapes().add(u)},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(1);this.d().shadowOffsetY(4);this.d().useSingleShadow(!1)},$type:new n.ig.Type("RadialLineSeriesView",t.$y8.$type)},!0);n.ig.util.defType("RadialPieSeries:aaq","AnchoredRadialSeries",{au:function(){return new t.aar(this)},hc:function(n){t.$y7.hc.call(this,n);this.mf(n)},_mf:null,mf:function(n){return arguments.length===1?(this._mf=n,n):this._mf},init:function(){t.$y7.init.call(this);this.y(t.$aaq.$type)},radiusX:function(n){return arguments.length===1?(this.g(t.$aaq.radiusXProperty,n),n):this.c(t.$aaq.radiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$aaq.radiusYProperty,n),n):this.c(t.$aaq.radiusYProperty)},preferredCategoryMode:function(n){return n!=null&&n==this.angleAxis()?2:0},gh:function(n,i){t.$y7.gh.call(this,n,i);var r=i;n&&r.cx!=null&&r.cx.c(0)},k9:function(i,r){var e,y;t.$y7.k9.call(this,i,r);var o=r,u=r.bw(),f=r.bv(),p=this.valueAxis().fm(f,u),s=i.h,g=this.valueAxis(),nt=Math.max(0,.5*g.g6()),h=nt;h=Math.max(h,p.minLength());var c=this.angleAxis().fy(u,f),l={__x:.5,__y:.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},w=this.radiusX(),b=this.radiusY(),tt=w>0&&b>0,v=0;for(e=0;e<s.count();++e){var it=o.cx.item(e),a=s.__inner[e][0],k=Math.min(s.__inner[e][2],p.maxLength()),d=null;d=tt?this.mm(u,f,a-c*.5,a+c*.5,h,k,l,w,b):this.mn(u,f,a-c*.5,a+c*.5,h,k,l);it.ak(d);y=s.__inner[e][2];y>v&&(v=y)}o.cq(t.$jd.d(v,u,f));o.cr({__x:t.$jd.c(l.__x,u,f),__y:t.$jd.f(l.__y,u,f),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o.cx.c(s.count());o.c2()},mn:function(n,i,r,u,f,e,o){var l=this,s=t.$aas.b(n,i,r,u,f,e,o),h=new t.d6,c;return h.__startPoint=s.d(),h.__isClosed=!0,h.__segments.add(function(){var n=new t.d8(1);return n.c(s.f()),n}()),h.__segments.add(function(){var n=new t.d2;return n.d(s.h()),n.f(s.n()),n.e(1),n.b(s.c()),n}()),h.__segments.add(function(){var n=new t.d8(1);return n.c(s.j()),n}()),h.__segments.add(function(){var n=new t.d2;return n.d(s.d()),n.f(s.m()),n.e(0),n.b(s.c()),n}()),c=new t.dx,c.b().add(h),c},mm:function(n,i,r,u,f,e,o,s,h){var p=this,c=t.$aas.a(n,i,r,u,f,e,o,s,h),l,a,v,y;return c==null?p.mn(n,i,r,u,f,e,o):(l=new t.d6,l.__startPoint=c.d(),l.__isClosed=!0,a=(r+(u-r)*.5)*180/3.14159265358979+90,v=new t.y(c.l().b()*(f/e),c.l().a()*(f/e)),l.__segments.add(function(){var n=new t.d2;return n.d(c.e()),n.f(v),n.c(a),n.e(1),n.b(!1),n}()),l.__segments.add(function(){var n=new t.d8(1);return n.c(c.f()),n}()),l.__segments.add(function(){var n=new t.d2;return n.d(c.g()),n.f(c.l()),n.c(a),n.e(1),n.b(!1),n}()),l.__segments.add(function(){var n=new t.d2;return n.d(c.h()),n.f(c.n()),n.e(1),n.b(c.c()),n}()),l.__segments.add(function(){var n=new t.d2;return n.d(c.i()),n.f(c.l()),n.c(a),n.e(1),n.b(!1),n}()),l.__segments.add(function(){var n=new t.d8(1);return n.c(c.j()),n}()),l.__segments.add(function(){var n=new t.d2;return n.d(c.k()),n.f(v),n.c(a),n.e(1),n.b(!1),n}()),l.__segments.add(function(){var n=new t.d2;return n.d(c.d()),n.f(c.m()),n.e(0),n.b(c.c()),n}()),y=new t.dx,y.b().add(l),y)},hh:function(n,i,r,u){t.$y7.hh.call(this,n,i,r,u);switch(i){case"RadiusX":case"RadiusY":this.renderSeries(!1)}},$type:new n.ig.Type("RadialPieSeries",t.$y7.$type)},!0);n.ig.util.defType("SliceCoords:aas","Object",{init:function(){n.ig.$op.init.call(this)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},b:function(i,r,u,f,e,o,s){var at=this,l=Math.min(u,f),a=Math.max(u,f),nt=Math.cos(l),tt=Math.sin(l),h=Math.max(0,e),c=o,v=s.__x+nt*h,y=s.__y+tt*h,p=s.__x+nt*c,w=s.__y+tt*c,it=Math.cos(a),rt=Math.sin(a),b=s.__x+it*h,k=s.__y+rt*h,d=s.__x+it*c,g=s.__y+rt*c;v=t.$jd.c(v,i,r);y=t.$jd.f(y,i,r);p=t.$jd.c(p,i,r);w=t.$jd.f(w,i,r);b=t.$jd.c(b,i,r);k=t.$jd.f(k,i,r);d=t.$jd.c(d,i,r);g=t.$jd.f(g,i,r);var ut={__x:v,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ft={__x:p,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},et={__x:d,__y:g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ot={__x:b,__y:k,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},st=t.$jd.d(c,i,r),ht=t.$jd.g(c,i,r),ct=t.$jd.d(h,i,r),lt=t.$jd.g(h,i,r);return function(){var n=new t.aas;return n.d(ut),n.f(ft),n.h(et),n.j(ot),n.c(a-l>3.14159265358979),n.n(new t.y(st,ht)),n.m(new t.y(ct,lt)),n}()},a:function(n,i,r,u,f,e,o,s,h){var l=t.$jd.b(h,n,i),y=e-f,c,v;if(y<0||t.$jd.d(y,n,i)<2)return null;l*2>y&&(l=y/2,h=t.$jd.d(l,n,i));var p=t.$jd.b(s,n,i),w=p/(e-l),a=Math.atan(w);return a*2>Math.abs(u-r)&&(a=Math.abs(u-r)/2,s=t.$jd.d(Math.tan(a)*(e-l),n,i)),c=t.$aas.b(n,i,r+a,u-a,f,e,o),v=t.$aas.b(n,i,r,u,f+l*(f/e),e-l,o),c.g(c.f()),c.k(c.j()),c.e(v.d()),c.f(v.f()),c.i(v.h()),c.j(v.j()),c.l(new t.y(s,h)),c},$type:new n.ig.Type("SliceCoords",n.ig.$ot)},!0);n.ig.util.defType("RadialPieSeriesView:aar","AnchoredRadialSeriesView",{_cw:null,cw:function(n){return arguments.length===1?(this._cw=n,n):this._cw},init:function(n){var i=this;t.$y8.init.call(this,n);this.cw(n);this.cx=function(){var n=new t.ga(t.$b6.$type);return n.create(i.c3.runOn(i)),n.activate(i.cz.runOn(i)),n.disactivate(i.c1.runOn(i)),n.destroy(i.c0.runOn(i)),n}()},cx:null,ao:function(){var n=this;t.$y8.ao.call(n);n.cy(new t.bh(t.$b6.$type,0));n.n()||(n.d().resolution(4),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}()))},_cy:null,cy:function(n){return arguments.length===1?(this._cy=n,n):this._cy},c3:function(){var i=this,n=function(){var n=new t.b6;return n.dataContext(function(){var n=new t.fl;return n.series(i.d()),n}()),n}();return i.cy().add(n),n.__visibility=1,n},cz:function(n){n.__visibility=0},c1:function(n){n.__visibility=1},c0:function(n){this.cy().remove(n)},a9:function(n,i){t.$y8.a9.call(this,n,i);var r=n;r.__stroke=this.d().actualOutline();r.z(this.d().thickness());r.__fill=this.d().actualBrush();r.af(this.d().dashArray());r.aa(this.d().dashCap())},ba:function(n,i){t.$y8.ba.call(this,n,i);var r=n,u=this.bs(i);r.__stroke=u;r.z(this.d().thickness());r.__fill=u},a1:function(n,i){var r,u;if(t.$y8.a1.call(this,n,i),n.c())for(r=0;r<this.cy().count();r++)u=this.cy().__inner[r],this.a8(u,r,i),n.q(u)},c2:function(){this.am()},ah:function(n){var r,u,f,i;for(t.$y8.ah.call(this,n),r=0,u=this.cx.a().getEnumerator();u.moveNext();)f=u.current(),i=new t.me(1,"slice"+r,f),i.tags().add("Main"),i.tags().add("Fill"),n.shapes().add(i),r++},$type:new n.ig.Type("RadialPieSeriesView",t.$y8.$type)},!0);n.ig.util.defType("ScatterAxisInfoCache:oc","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("ScatterAxisInfoCache",n.ig.$ot)},!0);n.ig.util.defType("DictInterpolator$3:ol","Object",{$tKey:null,$tValue:null,$tFrame:null,init:function(t,i,r,u,f,e,o){this.$tKey=t;this.$tValue=i;this.$tFrame=r;this.$type=this.$type.specialize(this.$tKey,this.$tValue,this.$tFrame);n.ig.$op.init.call(this);this.a(u);this.d(f);this.c(e);this.b(o)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},e:function(n,i,r,u,f,e){for(var o=this,a=new t.bh(o.$tKey,0),nt=n.keys().getEnumerator(),p,it,w,l,rt,b,s,ut,k;nt.moveNext();){var c=nt.current(),v,y,tt=n.item(c),ft=function(){var n=r.tryGetValue(c,v);return v=n.value,n.ret}(),et=function(){var n=u.tryGetValue(c,y);return y=n.value,n.ret}();ft||et?(o.a()(tt,i,v,y,f,e),o.c()(tt)||a.add(c)):a.add(c)}for(p=a.getEnumerator();p.moveNext();)it=p.current(),n.remove(it);for(w=r.keys().getEnumerator();w.moveNext();)if(l=w.current(),rt=r.item(l),function(){var n=u.tryGetValue(l,b);return b=n.value,n.ret}(),ut=function(){var t=n.tryGetValue(l,s);return s=t.value,t.ret}(),!ut){if(s=o.b()(),o.a()(s,i,rt,b,f,e),!o.c()(s))continue;n.add(o.d()(s),s)}for(k=u.keys().getEnumerator();k.moveNext();){var d=k.current(),ot=u.item(d),g,h,st=function(){var n=r.tryGetValue(d,g);return g=n.value,n.ret}(),ht=function(){var t=n.tryGetValue(d,h);return h=t.value,t.ret}();if(!ht&&!st){if(h=o.b()(),o.a()(h,i,g,ot,f,e),!o.c()(h))continue;n.add(o.d()(h),h)}}},$type:new n.ig.Type("DictInterpolator$3",n.ig.$ot)},!0);n.ig.util.defType("OwnedPoint:n6","Object",{init:function(){n.ig.$op.init.call(this);this.b({__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("OwnedPoint",n.ig.$ot)},!0);n.ig.util.defType("ScatterFrame:oj","ScatterFrameBase$1",{init:function(){t.$ok.init.call(this,t.$oj.$type);this.w(new t.f0(n.ig.$op.$type,t.$n6.$type,0))},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},t:function(i,r,u){t.$ok.t.call(this,i,r,u);var f=n.ig.util.cast(t.$oj.$type,r),e=n.ig.util.cast(t.$oj.$type,u);f!=null&&e!=null&&this.h().e(this.w(),i,f.w(),e.w(),f,e)},$type:new n.ig.Type("ScatterFrame",t.$ok.$type.specialize(t.$oj.$type))},!0);n.ig.util.defType("ScatterSeries:aat","ScatterBase",{au:function(){return new t.aau(this)},hc:function(n){t.$n0.hc.call(this,n);this.ml(n)},_ml:null,ml:function(n){return arguments.length===1?(this._ml=n,n):this._ml},init:function(){t.$n0.init.call(this);this.y(t.$aat.$type);this.ky=new t.oj;this.k0=new t.oj;this.kx=new t.oj},$type:new n.ig.Type("ScatterSeries",t.$n0.$type)},!0);n.ig.util.defType("ScatterSeriesView:aau","ScatterBaseView",{_c8:null,c8:function(n){return arguments.length===1?(this._c8=n,n):this._c8},init:function(n){t.$n1.init.call(this,n);this.c8(n)},ao:function(){var n=this;t.$n1.ao.call(n);n.n()||(n.b2().markerType(2),n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.p),n.measure(t.$mx.j),n}()))},ab:function(){var n=new t.b4;n.colorString("rgba(95,95,95,0.5)");this.d().shadowColor(n);this.d().shadowBlur(3);this.d().shadowOffsetX(2);this.d().shadowOffsetY(2);this.d().useSingleShadow(!1)},$type:new n.ig.Type("ScatterSeriesView",t.$n1.$type)},!0);n.ig.util.defType("CoercionInfo:ln","Object",{init:function(){n.ig.$op.init.call(this)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("CoercionInfo",n.ig.$ot)},!0);n.ig.util.defType("SeriesViewerSurfaceViewer:fn","DependencyObject",{init:function(i,r){if(this.l=!0,t.$an.init.call(this),i==null||r==null)throw new t.e0("model");this.j(i);this.j().windowRectChanged=n.ig.Delegate.prototype.combine(this.j().windowRectChanged,this.t.runOn(this));this.k(r);this.w(new t.fo);this.v()},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_n:!1,n:function(n){return arguments.length===1?(this._n=n,n):this._n},t:function(n,t){var i=this.n();this.n(!0);this.zoomLevel(1-Math.min(t.newRect().height(),t.newRect().width()));this.n(i)},i:null,j:function(i){var r,u;return arguments.length===1?(this.i!=null&&(r=n.ig.util.cast(t.$a8.$type,this.i),r!=null&&(r.propertyChanged=n.ig.Delegate.prototype.remove(r.propertyChanged,this.s.runOn(this)))),this.i=i,this.i!=null&&(u=n.ig.util.cast(t.$a8.$type,this.i),u!=null&&(u.propertyChanged=n.ig.Delegate.prototype.combine(u.propertyChanged,this.s.runOn(this)))),i):this.i},s:function(n,t){t.propertyName()=="DefaultInteraction"&&(this.h=this.j().defaultInteraction(),this.u(t.propertyName(),this.defaultInteraction(),this.defaultInteraction()))},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},zoomTo100:function(){this.j().windowRect(t.$bd.lj)},scaleToFit:function(){this.j().windowRect(t.$bd.lj)},renderPreview:function(){var n,i;this.isDirty()&&(n=new t.ft,n.a(this.k().q().view().h()),n.a()!=null&&n.a().c()&&(i=this.k().q().view().bk(),this.k().bm(i.b(),i.a(),n)),this.isDirty(!1))},worldRect:function(){return t.$bd.lj},viewportRect:function(){return this.j().viewportRect()},minimumZoomLevel:function(){return 0},maximumZoomLevel:function(){return this.j().windowRectMinWidth()==.0001?.9:1-this.j().windowRectMinWidth()},l:!1,isDirty:function(n){return arguments.length===1?(this.l=n,n):this.l},zoomLevel:function(n){return arguments.length===1?(this.g(t.$fn.zoomLevelProperty,n),n):this.c(t.$fn.zoomLevelProperty)},u:function(n,i,r){var f;this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));switch(n){case"ZoomLevel":if(r-this.minimumZoomLevel()<-1e-5){this.zoomLevel(this.minimumZoomLevel());return}if(r-this.maximumZoomLevel()>.0001){this.zoomLevel(this.maximumZoomLevel());return}if(f=this.j()!=null&&this.j().a7()!=null&&this.j().a7().updatingSliderRanges(),!this.n()&&!f){var u=1-this.zoomLevel(),e=this.j().actualWindowRect().getCenter(),o=new t.x(0,e.__x-u/2,e.__y-u/2,u,u);this.j().windowRect(t.$fn.y(this.j().windowRect(),o,this.j().isZoomingHorizontallyEnabled(),this.j().isZoomingVerticallyEnabled(),this.worldRect()))}this.v();this.j().a7()!=null&&this.j().a7().pushZoomLevel(this.zoomLevel())}},v:function(){var n=Math.round(100/(1-this.zoomLevel()));n<=1e3?this.zoomLevelDisplayText(n.toString()):this.zoomLevelDisplayText("> 1000")},p:null,zoomLevelDisplayText:function(n){var t,i;return arguments.length===1?(t=this.zoomLevelDisplayText()!=n,t&&(i=this.zoomLevelDisplayText(),this.p=n,this.u("ZoomLevelDisplayText",i,n)),n):this.p},h:null,defaultInteraction:function(n){return arguments.length===1?(this.h=n,this.j().defaultInteraction(n),n):this.h},propertyChanged:null,y:function(n,i,r,u,f){var e,o,s,h,c;r?(e=i.left(),s=i.width()):(e=n.left(),s=n.width());u?(o=i.top(),h=i.height()):(o=n.top(),h=n.height());var l=e+s,a=o+h,v=Math.max(0,f.left()-e),y=Math.max(0,l-f.right()),p=Math.max(0,f.top()-o),w=Math.max(0,a-f.bottom());return e+=v-y,o+=p-w,c=new t.x(0,e,o,s,h),c.intersect(f),c},$type:new n.ig.Type("SeriesViewerSurfaceViewer",t.$an.$type,[t.$ey.$type,t.$a8.$type])},!0);n.ig.util.defType("OverviewPlusDetailViewportHost:e2","Object",{init:function(i){if(n.ig.$op.init.call(this),i==null)throw new t.e0("view");this.a(i)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},getViewInfo:function(n,i){return n=new t.x(0,0,0,this.a().q().view().bf().width(),this.a().q().view().bf().height()),i=t.$be.lj,{viewportRect:n,windowRect:i}},$type:new n.ig.Type("OverviewPlusDetailViewportHost",n.ig.$ot,[t.$a.$type])},!0);n.ig.util.defType("SeriesViewerViewManager:fa","Object",{_r:null,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_q:null,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_s:null,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},h:null,init:function(i){this.o=0;this.n=0;this.p=1;this.z=String.empty();this.bh=new t.a5(0,0);this.aa=String.empty();this.y=String.empty();this.bg=new t.a5(0,0);this.a7=null;this.a6=null;this.x=String.empty();this.a=4;this.b=1;this.ac=String.empty();this.a9=null;this.ab=String.empty();this.a8=null;this.bi=new t.a5(0,0);this.bj=new t.a5(0,0);this.e=null;n.ig.$op.init.call(this);this.h=i},_t:null,t:function(n){return arguments.length===1?(this._t=n,n):this._t},at:function(i){if(i==null){this.g()!=null&&this.g().af();this.r(null);this.q(null);this.v(null);this.u(null);this.s(null);this.w(null);this.i(null);this.l(null);this.k(null);this.j(null);this.t(null);this.g(null);return}var r=i;this.r(n(r));this.h.c2();this.h.dc();this.ay();this.r().css("position","relative");this.q(n('<canvas style="position : absolute; top : 0; left : 0" />'));this.v(n('<canvas style="position : absolute; top : 0; left : 0;" />'));this.u(n('<canvas style="position : absolute; top : 0; left : 0" />'));this.s(n('<canvas style="position : absolute; top : 0; left : 0" />'));this.w(n('<canvas style="position : absolute; top : 0; left : 0" />'));this.r().append(this.q());this.r().append(this.u());this.r().append(this.v());this.i(new t.bz(new t.dk,this.q()[0].getContext("2d")));this.l(new t.bz(new t.dk,this.v()[0].getContext("2d")));this.k(new t.bz(new t.dk,this.u()[0].getContext("2d")));this.j(new t.bz(new t.dk,this.s()[0].getContext("2d")));this.m(new t.bz(new t.dk,this.w()[0].getContext("2d")));this.h.cs(this.i());this.h.b6(this.r().width(),this.r().height());this.g(new t.ek(this.v()));this.t(n("<div><\/div>"));this.t().hide();this.t().css("position","absolute");this.t().css("z-index","10000");this.t().addClass(this.h.p().tooltipStyle());this.r().append(this.t())},av:function(){this.v().css("cursor","default")},aw:function(){this.v().css("cursor","pointer")},ba:function(){var n=this;return function(){var n=new t.b3;return n.fill("#000000"),n}()},o:0,n:0,p:0,am:function(n,t,i){this.o=n;this.n=t;this.p=i;var r=n,u=t;i!=1&&(r=Math.round(n*i),u=Math.round(t*i));this.q().attr("width",r.toString());this.q().attr("height",u.toString());this.q().css("width",n.toString()+"px");this.q().css("height",t.toString()+"px");this.v().attr("width",r.toString());this.v().attr("height",u.toString());this.v().css("width",n.toString()+"px");this.v().css("height",t.toString()+"px");this.v().attr("tabindex","0");this.v().css("outline","0");this.u().attr("width",r.toString());this.u().attr("height",u.toString());this.u().css("width",n.toString()+"px");this.u().css("height",t.toString()+"px");this.s().attr("width",r.toString());this.s().attr("height",u.toString());this.s().css("width",n.toString()+"px");this.s().css("height",t.toString()+"px");this.w().attr("width",r.toString());this.w().attr("height",u.toString());this.w().css("width",n.toString()+"px");this.w().css("height",t.toString()+"px");this.h.p().canvasRenderScheduler().j();this.h.p().ae().j()},bf:function(){var n=t.$ek.c3(this.r());return new t.y(n.left(),n.top())},ap:function(n,i,r,u,f){var o,s,a,v,p,b,k,d,g,nt,tt,w,it,rt,ut,ft,et,ot,st,ht,e;n=new t.fd;i=new t.fd;o=new t.bh(String,0);o.add("background-image");s=t.$fh.g();this.r().append(s);var ct=t.$fh.d(s,"ui-chart-fill-palette-",o),h=ct.count(),lt=t.$fh.d(s,"ui-chart-outline-palette-",o),l=lt.count();for(a=0;a<h;a++)n.add(t.$fi.d(ct.__inner[a].__inner[0]));for(v=0;v<l;v++)i.add(t.$fi.d(lt.__inner[v].__inner[0]));o.clear();var at=0,c=Math.min(h,l),y=null;if(h==0&&o.add("background-color"),l==0&&(o.add("border-top-color"),at=h==0?1:0),o.count()>0&&(y=t.$fh.d(s,"ui-chart-palette-",o),c=y.count()),h==0)if(c>0)for(p=0;p<c;p++)b=new t.b3,b.__fill=y.__inner[p].__inner[0],n.add(b);else k=new t.b3,k.__fill="#50a8be",d=new t.b3,d.__fill="#fc6754",g=new t.b3,g.__fill="#fec33c",nt=new t.b3,nt.__fill="#3c6399",tt=new t.b3,tt.__fill="#91af49",n.add(k),n.add(d),n.add(g),n.add(nt),n.add(tt);if(l==0)if(c>0)for(w=0;w<c;w++)it=new t.b3,it.__fill=y.__inner[w].__inner[at],i.add(it);else rt=new t.b3,rt.__fill="#B1BFC9",ut=new t.b3,ut.__fill="#798995",ft=new t.b3,ft.__fill="#4F606C",et=new t.b3,et.__fill="#374650",ot=new t.b3,ot.__fill="#162C3B",i.add(rt),i.add(ut),i.add(ft),i.add(et),i.add(ot);st=t.$fh.q(s,"ui-chart-axis","border-top-color");st!=null?(f=new t.b3,f.__fill=st):(ht=new t.b3,ht.__fill="#989EA3",f=ht);s.remove();r=new t.b3;r.__fill=this.r().css("color");var vt=this.r().css("font-style"),yt=this.r().css("font-variant"),pt=this.r().css("font-weight"),wt=this.r().css("font-size"),bt=this.r().css("line-height"),kt=this.r().css("font-family");return u="",e=!0,vt.length>0&&(e?e=!1:u+=" ",u+=vt),yt.length>0&&(e?e=!1:u+=" ",u+=yt),pt.length>0&&(e?e=!1:u+=" ",u+=pt),wt.length>0&&(e?e=!1:u+=" ",u+=wt),bt.length>0&&(e?e=!1:u+="/",u+=bt),kt.length>0&&(e?e=!1:u+=" ",u+=kt),{brushes:n,outlines:i,fontBrush:r,font:u,axisLineBrush:f}},ao:function(n,i,r,u,f,e){var o=t.$fh.g(),h,c,l,a,v,y,s;this.r().append(o);h=t.$fh.q(o,"ui-chart-area-fill-opacity","opacity");n=h!=null?parseFloat(h):1;i=new Array(4);var p=t.$fh.q(o,"ui-chart-render-margins","margin-top"),w=t.$fh.q(o,"ui-chart-render-margins","margin-right"),b=t.$fh.q(o,"ui-chart-render-margins","margin-bottom"),k=t.$fh.q(o,"ui-chart-render-margins","margin-left");return i[0]=p!=null?parseFloat(p):NaN,i[1]=w!=null?parseFloat(w):NaN,i[2]=b!=null?parseFloat(b):NaN,i[3]=k!=null?parseFloat(k):NaN,r=u=null,c=t.$fh.q(o,"ui-chart-axis-stroke","border-top-color"),c!=null&&(l=new t.b3,l.__fill=c,r=l),a=t.$fh.q(o,"ui-chart-axis-major-line","border-top-color"),a!=null&&(v=new t.b3,v.__fill=a,u=v),y=t.$fh.q(o,"ui-chart-aligned-gridlines","visibility"),e=y!=null&&y=="visible",s=t.$fh.q(o,"ui-chart-category-axis-tick","height"),s!=null?(f=parseFloat(s),Math.abs(f)>4e3&&(f=0)):(s=t.$fh.q(o,"ui-chart-category-axis-tick","width"),f=s!=null?parseFloat(s):0),o.remove(),{opacity:n,margins:i,axisStroke:r,axisMajorStroke:u,categoryAxisTickLength:f,alignsGridLines:e}},al:function(){this.t().children().remove()},a3:function(n){var i=this.t(),r=t.$ek.c3(this.t()),u=this.bf();n=u.b()+this.h.p().viewportRect().left()+n;i.offset({left:n,top:r.top})},a4:function(n){var t=this.t(),i=this.t().offset(),r=this.bf();n=r.a()+this.h.p().viewportRect().top()+n;t.offset({left:i.left,top:n})},aj:function(n){var t=n;t.show();this.t().append(t)},aq:function(){this.t().hide()},ax:function(){this.t().show()},ak:function(t){n("body").append(t)},au:function(n){n.remove()},as:function(){this.h.b6(this.r().width(),this.r().height())},z:null,af:function(){return this.z},bh:null,bl:function(){return this.bh},aa:null,ag:function(){return this.aa},y:null,ae:function(){return this.y},bg:null,bk:function(){return this.bg},a7:null,bc:function(){return this.a7},a6:null,bb:function(){return this.a6},x:null,ad:function(){return this.x},a:null,c:function(){return this.a},b:null,d:function(){return this.b},ac:null,ai:function(){return this.ac},a9:null,be:function(){return this.a9},ab:null,ah:function(){return this.ab},a8:null,bd:function(){return this.a8},bi:null,bm:function(){return this.bi},bj:null,bn:function(){return this.bj},ay:function(){var i=t.$fh.g(),r=n("<div><\/div>");this.r().append(r);this.r().append(i);this.a0(r,i);this.az(r,i);this.a2(r,i);this.a1(r,i);this.a5(r,i);r.remove();i.remove()},a5:function(n,i){var h=this,u="ui-chart-pointer-tooltip",f=t.$fh.q(i,u,"background-color"),e=t.$fh.q(i,u,"border-top-color"),o=t.$fh.q(i,u,"border-top-left-radius"),s=t.$fh.q(i,u,"border-top-width"),r=new t.fc;r.a(o!=null?parseFloat(o):0);r.c(f!=null?t.$b3.create(f):function(){var n=new t.b3;return n.fill("white"),n}());r.d(e!=null?t.$b3.create(e):function(){var n=new t.b3;return n.fill("gray"),n}());r.b(s!=null?parseFloat(s):0);h.e=r},a0:function(n,i){var u=this,r="ui-chart-title";n.addClass(r);u.z=t.$fj.c(n);u.a7=function(){var i=new t.b3;return i.fill(n.css("color")),i}();n.removeClass(r);u.aa=t.$fh.q(i,r,"text-align");u.aa==null&&(u.aa="center");var f=t.$fh.q(i,r,"margin-top"),e=t.$fh.q(i,r,"margin-bottom"),o=t.$fh.q(i,r,"margin-left"),s=t.$fh.q(i,r,"margin-right"),h=f!=null?parseFloat(f):0,c=e!=null?parseFloat(e):0,l=o!=null?parseFloat(o):0,a=s!=null?parseFloat(s):0;u.bh=new t.a5(1,l,h,a,c)},az:function(n,i){var u=this,r="ui-chart-subtitle";n.addClass(r);u.x=t.$fj.c(n);u.a6=function(){var i=new t.b3;return i.fill(n.css("color")),i}();n.removeClass(r);u.y=t.$fh.q(i,r,"text-align");u.y==null&&(u.y="center");var f=t.$fh.q(i,r,"margin-top"),e=t.$fh.q(i,r,"margin-bottom"),o=t.$fh.q(i,r,"margin-left"),s=t.$fh.q(i,r,"margin-right"),h=f!=null?parseFloat(f):0,c=e!=null?parseFloat(e):0,l=o!=null?parseFloat(o):0,a=s!=null?parseFloat(s):0;u.bg=new t.a5(1,l,h,a,c)},a1:function(n,i){var u=this,r="ui-chart-horizontal-axis-title",f;n.addClass(r);u.ab=t.$fj.c(n);u.a8=function(){var i=new t.b3;return i.fill(n.css("color")),i}();n.removeClass(r);f=t.$fh.q(i,r,"vertical-align");u.a=f==null?0:f.toLowerCase()=="bottom"?4:3;var e=t.$fh.q(i,r,"margin-top"),o=t.$fh.q(i,r,"margin-bottom"),s=t.$fh.q(i,r,"margin-left"),h=t.$fh.q(i,r,"margin-right"),c=e!=null?parseFloat(e):2,l=o!=null?parseFloat(o):2,a=s!=null?parseFloat(s):2,v=h!=null?parseFloat(h):2;u.bi=new t.a5(1,a,c,v,l)},a2:function(n,i){var u=this,r="ui-chart-vertical-axis-title",f;n.addClass(r);u.ac=t.$fj.c(n);u.a9=function(){var i=new t.b3;return i.fill(n.css("color")),i}();n.removeClass(r);f=t.$fh.q(i,r,"text-align");u.b=f==null?0:f.toLowerCase()=="right"?2:1;var e=t.$fh.q(i,r,"margin-top"),o=t.$fh.q(i,r,"margin-bottom"),s=t.$fh.q(i,r,"margin-left"),h=t.$fh.q(i,r,"margin-right"),c=e!=null?parseFloat(e):0,l=o!=null?parseFloat(o):0,a=s!=null?parseFloat(s):0,v=h!=null?parseFloat(h):0;u.bj=new t.a5(1,a,c,v,l)},an:function(n,t){var i=this.h.p().actualPixelScalingRatio();(n!=this.o||t!=this.n||i!=this.p)&&this.am(n,t,this.h.p().actualPixelScalingRatio())},e:null,f:function(){return this.e},ar:function(n){this.g().v(n);this.g().ac(this.h.aj.runOn(this.h))},$type:new n.ig.Type("SeriesViewerViewManager",n.ig.$ot)},!0);n.ig.util.defType("FragmentBase:ka","HorizontalAnchoredCategorySeries",{init:function(){t.$kb.init.call(this);this.nr=null},_logicalSeriesLink:null,logicalSeriesLink:function(n){return arguments.length===1?(this._logicalSeriesLink=n,n):this._logicalSeriesLink},nr:null,parentSeries:function(n){return arguments.length===1?(this.nr=n,n):this.nr},b2:function(){return!1},bz:function(){return!1},kv:function(){return this.parentSeries()==null?null:this.parentSeries().kt()},nt:function(i,r,u,f,e,o,s,h){var c=u[0],l=u[1],a=new t.x(0,c-5,l-5,11,11);return!isNaN(c)&&!isNaN(l)&&!Number.isInfinity(c)&&!Number.isInfinity(l)&&f.tryAdd(a)?(r.p.add({__x:c,__y:l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.updateMarkerTemplate(s,o,h),!0):!1},mb:function(n,t){(n.v(),this.valueColumn()!=null&&this.parentSeries()!=null&&this.logicalSeriesLink()!=null)&&this.logicalSeriesLink().z().count()!=0&&this.logicalSeriesLink().y().count()!=0&&this.k1(t).d(n,t)},nv:function(i,r,u){var a=this.mu(u),h=a,v=this.logicalSeriesLink().u(),c=v?this.parentSeries().mt().e():this.parentSeries().mt().d(),l=c.indexOf(this),s,e,f,o;if(i.count()!=0&&l!=-1)for(s=!1,e=l;e>=0;e--){if(s)break;if(e==0){i.add({__x:i.last$1(t.$z.$type).__x,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:i.first$1(t.$z.$type).__x,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});break}if(f=n.ig.util.cast(t.$ka.$type,c.__inner[e-1]),f!=null&&f.mp()!=null&&f.mp().c().count()>0&&this.view()!=null&&f.ct(this.view().bv(),this.view().bw(),this.view()))for(s=!0,o=f.mp().c().count()-1;o>=0;o--)i.add(f.mp().c().__inner[o])}},ct:function(i,r,u){var f=t.$kb.ct.call(this,i,r,u),e=n.ig.util.cast(t.$hb.$type,this.parentSeries().kt()),o=this.parentSeries().ku();return((this.parentSeries()==null||e==null||e.itemsSource()==null||o==null||this.parentSeries().bb()==null||e.seriesViewer()==null||o.seriesViewer()==null)&&(f=!1),this.valueColumn()==null)?!1:(Number.isInfinity(this.valueColumn().minimum())&&Number.isInfinity(this.valueColumn().maximum())&&(f=!1),isNaN(this.valueColumn().minimum())&&isNaN(this.valueColumn().maximum())&&(f=!1),f)},mu:function(n){var i=0,r=n.bw(),u=n.bv(),f=new t.iu(r,u,this.yAxis().isInverted());return r.isEmpty()||u.isEmpty()||this.yAxis()==null||(i=this.yAxis().getScaledValue(0,f)),i},ad:function(){return null},nu:function(){var i,u,r,n;if(this.parentSeries()==null)return-1;for(i=this.parentSeries().index(),u=new t.cb(0),u.reverse$1(t.$z.$type),r=this.parentSeries().reverseLegendOrder()?this.parentSeries().mo().reverse$1(t.$r5.$type):this.parentSeries().mo().getEnumerator();r.moveNext();){if(n=r.current(),n.visualSeriesLink()==this)return i;this.parentSeries().actualLegend()!=null&&n.actualVisibility()==0&&n.actualLegendItemVisibility()==0&&i++}return-1},nw:function(n){n==null},hh:function(i,r,u,f){if(t.$kb.hh.call(this,i,r,u,f),this.parentSeries()!=null){var e=n.ig.util.cast(t.$hl.$type,this.parentSeries().ku());if(e!=null)switch(r){case"ValueColumn":this.mo().cx().v();e==null||e.updateRange()||(this.parentSeries().mn().cn().f(this.resolution()),this.renderSeries(!1))}}},hr:function(n,i){t.$kb.hr.call(this,n,i)},$type:new n.ig.Type("FragmentBase",t.$kb.$type)},!0);n.ig.util.defType("AreaFragment:r9","FragmentBase",{init:function(){t.$ka.init.call(this);this.y(t.$r9.$type)},au:function(){return new t.sa(this)},_nx:null,nx:function(n){return arguments.length===1?(this._nx=n,n):this._nx},hc:function(n){t.$ka.hc.call(this,n);this.nx(n)},preferredCategoryMode:function(){return 0},gh:function(n,i){t.$ka.gh.call(this,n,i);var r=i;r.c4()},me:function(i,r){var u=this,f,e;t.$ka.me.call(u,i,r);u.mp().a(n.ig.util.cast(t.$kr.$type,u.xAxis())!==null?!0:!1);f=n.ig.util.cast(t.$sa.$type,r);e=f.cn().c;u.mp().h(f.c5,f.c7,f.c6,f.c8,i.h.count(),i.h,!0,e,u.resolution(),function(n){return u.nv(n,i.h,r)},0);f.c5.__opacity=u.actualAreaFillOpacity();f.c6.__opacity=.5*u.actualAreaFillOpacity()},hy:function(){var i=n.ig.util.cast(t.$bd.$type,this.seriesViewer());i!=null&&this.actualAreaFillOpacity(isNaN(this.areaFillOpacity())?this.parentSeries().actualAreaFillOpacity():this.areaFillOpacity())},$type:new n.ig.Type("AreaFragment",t.$ka.$type)},!0);n.ig.util.defType("AreaFragmentView:sa","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},ao:function(){var n=this;t.$kn.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},init:function(n){this.c5=new t.b6;this.c7=new t.b6;this.c6=new t.b6;this.c8=new t.b6;t.$kn.init.call(this,n);this.c3(n)},c5:null,c7:null,c6:null,c8:null,c4:function(){this.c5.ak(null);this.c6.ak(null);this.c7.ak(null);this.c8.ak(null)},co:function(){return new t.sb(this)},a6:function(){t.$kn.a6.call(this);this.c5.__fill=this.d().actualBrush();this.c6.__fill=this.d().actualBrush();this.c5.__opacity=this.d().actualAreaFillOpacity();this.c6.__opacity=.5*this.d().actualAreaFillOpacity();this.c7.__stroke=this.d().actualOutline();this.c7.z(this.d().thickness());this.c7.af(this.d().dashArray());this.c7.aa(this.d().dashCap());this.c8.__stroke=this.d().actualOutline();this.c8.z(this.d().thickness());this.c8.af(this.d().dashArray());this.c8.aa(this.d().dashCap())},a7:function(){t.$kn.a7.call(this);var n=this.br();this.c5.__fill=n;this.c6.__fill=n;this.c5.__opacity=1;this.c6.__opacity=1;this.c7.__stroke=n;this.c7.z(this.d().thickness()+3);this.c8.__stroke=n;this.c8.z(this.d().thickness()+3)},a1:function(n,i){t.$kn.a1.call(this,n,i);n.q(this.c5);n.q(this.c6);n.q(this.c7);n.q(this.c8)},ah:function(n){var r,i,u,f;t.$kn.ah.call(this,n);r=new t.me(1,"lowerShape",this.c7);r.tags().add("Lower");i=new t.me(1,"upperShape",this.c8);i.tags().add("Upper");i.tags().add("Main");u=new t.me(1,"translucentShape",this.c5);u.tags().add("Translucent");f=new t.me(1,"fillShape",this.c6);f.tags().add("Fill");n.shapes().add(r);n.shapes().add(i);n.shapes().add(u);n.shapes().add(f)},$type:new n.ig.Type("AreaFragmentView",t.$kn.$type)},!0);n.ig.util.defType("ColumnFragment:so","FragmentBase",{init:function(){t.$ka.init.call(this);this.y(t.$so.$type)},au:function(){return new t.sp(this)},_nx:null,nx:function(n){return arguments.length===1?(this._nx=n,n):this._nx},hc:function(n){t.$ka.hc.call(this,n);this.nx(n)},radiusX:function(n){return arguments.length===1?(this.g(t.$so.radiusXProperty,n),n):this.c(t.$so.radiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$so.radiusYProperty,n),n):this.c(t.$so.radiusYProperty)},xAxis:function(){return this.parentSeries()!=null?n.ig.util.cast(t.$hb.$type,this.parentSeries().kt()):null},yAxis:function(){return this.parentSeries()!=null?n.ig.util.cast(t.$iq.$type,this.parentSeries().ku()):null},preferredCategoryMode:function(){return 2},kt:function(){return null},ku:function(){return null},gh:function(n,i){t.$ka.gh.call(this,n,i);var r=i;n&&r.c4()!=null&&(this.kw.p.clear(),r.c4().c(0))},ad:function(){return this.valueColumn()==null||this.valueColumn().count()==0?null:new t.im(this.valueColumn().minimum(),this.valueColumn().maximum())},ct:function(n,t,i){return this.parentSeries()==null?!1:this.parentSeries().mz(this,n,t,this.ny(i))},cq:function(){return!0},eg:function(i,r){var o=n.ig.util.cast(t.$al.$type,i),s=o!=null?n.ig.util.cast(t.$fl.$type,o.dataContext()):null,e=s!=null?s.item():null;if(e==null){var u=this.view().bv(),f=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),h={__x:f.left()+f.width()*(r.__x-u.left())/u.width(),__y:f.top()+f.height()*(r.__y-u.top())/u.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};e=this.getItem(h)}return e},getItem:function(i){var r=0;if(n.ig.util.cast(t.$kr.$type,this.xAxis())!==null){if(r=this.ly(i),r==-1)return null}else r=this.getItemIndex(i);return r>=0&&this.bb()!=null&&r<this.bb().count()?this.bb().item(r):null},ly:function(i){var r=this.view().bw(),u=this.view().bv();if(r.isEmpty()||u.isEmpty())return-1;var e=new t.iu(r,u,this.xAxis().isInverted()),s=n.ig.util.cast(t.$kr.$type,this.xAxis()),o=this.xAxis().getUnscaledValue(u.left(),e),h=this.xAxis().getUnscaledValue(u.right(),e),c=(i.__x-r.left())/r.width(),f=o+(h-o)*c;return f<=t.$bt.minValue().getTime()||f>=t.$bt.maxValue().getTime()?-1:s.getIndexClosestToUnscaledValue(f)},getItemIndex:function(n){return this.parentSeries()==null?-1:this.parentSeries().m5(n)},nt:function(i,r,u,f,e,o,s,h){var c=u[0],l=e<0?u[2]:u[1],a=new t.x(0,c-5,l-5,11,11);return!isNaN(c)&&!isNaN(l)&&!Number.isInfinity(c)&&!Number.isInfinity(l)&&f.tryAdd(a)?(r.p.add({__x:c,__y:l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.updateMarkerTemplate(s,o,h),!0):!1},ny:function(n){return n==this.av()?this.parentSeries().av():this.parentSeries().k4()},mb:function(i,r){var e,f,u,p,s,w,h;if(i.v(),this.valueColumn()!=null&&this.parentSeries()!=null&&this.logicalSeriesLink()!=null&&this.logicalSeriesLink().y().count()!=0&&this.logicalSeriesLink().z().count()!=0){e=r==this.av()?this.parentSeries().ky:this.parentSeries().kw;f=n.ig.util.cast(t.$ko.$type,this.ny(r));i.h.clear();i.p.clear();var c=f.cn().d,b=f.cn().e,l=this.parentSeries().ms().f().yScaler(),a=n.ig.util.cast(t.$kr.$type,this.parentSeries().ms().f().scaler()),v=n.ig.util.cast(t.$hl.$type,l)!==null&&n.ig.util.cast(t.$hl.$type,l).fy(),y=n.ig.util.cast(t.$si.$type,f.cn()),k=f.cn().c,o=0;for(u=c;u<=b;u++){if(p=u*k,this.__visibility!=0)break;u>=this.valueColumn().count()||u>=e.h.count()+c||(s=this.valueColumn().item(u),w=!v||v&&s>0,h=a==null?y.getBucket1(this,u,u,r.bw(),r.bv(),e):y.getBucket1(this,u,a.sortedIndices().__inner[u],r.bw(),r.bv(),e),i.h.add(h),w&&this.nt(r,i,h,this.k0().f().provideCollisionDetector(),s,p,o,u)&&o++)}r.cq().c(o)}},me:function(n,i){(t.$ka.me.call(this,n,i),this.parentSeries()!=null)&&(this.parentSeries().ne(this,n,i),t.$ry.b(this,n.p,i.cq(),this.useLightweightMarkers()))},hh:function(n,i,r,u){t.$ka.hh.call(this,n,i,r,u)},$type:new n.ig.Type("ColumnFragment",t.$ka.$type)},!0);n.ig.util.defType("BarFragment:sv","ColumnFragment",{init:function(){t.$so.init.call(this);this.y(t.$sv.$type)},xAxis:function(){return this.parentSeries()!=null?this.parentSeries().xAxis():null},yAxis:function(){return this.parentSeries()!=null?this.parentSeries().yAxis():null},kv:function(){return this.parentSeries()==null?null:this.parentSeries().ku()},nt:function(i,r,u,f,e,o,s,h){var c=u[0],l=e<0?u[2]:u[1],a=new t.x(0,l-5,c-5,11,11);return!isNaN(l)&&!isNaN(c)&&!Number.isInfinity(l)&&!Number.isInfinity(c)&&f.tryAdd(a)?(r.p.add({__x:l,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.updateMarkerTemplate(s,o,h),!0):!1},getItem:function(i){var r=0;if(n.ig.util.cast(t.$kr.$type,this.yAxis())!==null){if(r=this.ly(i),r==-1)return null}else r=this.getItemIndex(i);return r>=0&&this.bb()!=null&&r<this.bb().count()?this.bb().item(r):null},ly:function(i){var r=this.view().bw(),u=this.view().bv();if(r.isEmpty()||u.isEmpty())return-1;var e=new t.iu(r,u,this.yAxis().isInverted()),s=n.ig.util.cast(t.$kr.$type,this.yAxis()),o=this.yAxis().getUnscaledValue(u.top(),e),h=this.yAxis().getUnscaledValue(u.bottom(),e),c=(i.__y-r.top())/r.height(),f=o+(h-o)*c;return f<=t.$bt.minValue().getTime()||f>=t.$bt.maxValue().getTime()?-1:s.getIndexClosestToUnscaledValue(f)},mu:function(n){var i=0,r=n.bw(),u=n.bv(),f=new t.iu(r,u,this.xAxis().isInverted());return r.isEmpty()||u.isEmpty()||this.xAxis()==null||(i=this.xAxis().getScaledValue(0,f)),i},hh:function(n,i,r,u){if(t.$so.hh.call(this,n,i,r,u),this.parentSeries()!=null&&this.xAxis()!=null){var f=this.xAxis();switch(i){case"ValueColumn":this.mo().cx().v();f==null||f.updateRange()||(this.parentSeries().mn().cn().f(this.resolution()),this.renderSeries(!1))}}},$type:new n.ig.Type("BarFragment",t.$so.$type)},!0);n.ig.util.defType("AreaFragmentBucketCalculator:sb","AnchoredCategoryBucketCalculator",{init:function(n){t.$le.init.call(this,n)},getBucket:function(i){for(var r,c,f=this,s=Math.min(i*f.c,f.g().cw().valueColumn().count()-1),l=Math.min(s+f.c-1,f.g().cw().valueColumn().count()-1),e=NaN,h=NaN,o=n.ig.util.cast(t.$ka.$type,f.g().cw()),a=o.parentSeries(),u=s;u<=l;++u)r=f.g().cw().valueColumn().item(u),(isNaN(r)||Number.isInfinity(r))&&(r=0),c=Math.abs(a.mw()[u])+a.mv()[u],r=n.ig.util.cast(t.$r4.$type,a)!==null?c==0?0:r<0?(o.logicalSeriesLink().z().__inner[u]+r)/c*100:(o.logicalSeriesLink().y().__inner[u]+r)/c*100:r<0?o.logicalSeriesLink().z().__inner[u]+r:o.logicalSeriesLink().y().__inner[u]+r,isNaN(e)?(e=r,h=r):isNaN(r)||(e=Math.min(e,r),h=Math.max(h,r));return isNaN(e)?function(){var n=[];return n.add(.5*(s+l)),n.add(NaN),n.add(NaN),n}():function(){var n=[];return n.add(.5*(s+l)),n.add(e),n.add(h),n}()},$type:new n.ig.Type("AreaFragmentBucketCalculator",t.$le.$type)},!0);n.ig.util.defType("LineFragmentBucketCalculator:r3","AnchoredCategoryBucketCalculator",{init:function(n){t.$le.init.call(this,n)},getBucket:function(i){for(var r,c,f=this,s=Math.min(i*f.c,f.g().cw().valueColumn().count()-1),l=Math.min(s+f.c-1,f.g().cw().valueColumn().count()-1),e=NaN,h=NaN,o=n.ig.util.cast(t.$ka.$type,f.g().cw()),a=o.parentSeries(),u=s;u<=l;++u)r=f.g().cw().valueColumn().item(u),c=Math.abs(a.mw()[u])+a.mv()[u],(isNaN(r)||Number.isInfinity(r))&&(r=0),r=n.ig.util.cast(t.$r4.$type,a)!==null?c==0?0:r<0?(o.logicalSeriesLink().z().__inner[u]+r)/c*100:(o.logicalSeriesLink().y().__inner[u]+r)/c*100:r<0?o.logicalSeriesLink().z().__inner[u]+r:o.logicalSeriesLink().y().__inner[u]+r,isNaN(e)?(e=r,h=r):isNaN(r)||(e=Math.min(e,r),h=Math.max(h,r));return isNaN(e)?function(){var n=[];return n.add(.5*(s+l)),n.add(NaN),n.add(NaN),n}():function(){var n=[];return n.add(.5*(s+l)),n.add(e),n.add(h),n}()},$type:new n.ig.Type("LineFragmentBucketCalculator",t.$le.$type)},!0);n.ig.util.defType("SplineFragmentBucketCalculator:sy","AnchoredCategoryBucketCalculator",{init:function(n){t.$le.init.call(this,n)},getBucket:function(i){for(var r,c,f=this,s=Math.min(i*f.c,f.g().cw().valueColumn().count()-1),l=Math.min(s+f.c-1,f.g().cw().valueColumn().count()-1),e=NaN,h=NaN,o=n.ig.util.cast(t.$sd.$type,f.g().cw()),a=o.parentSeries(),u=s;u<=l;++u)r=f.g().cw().valueColumn().item(u),c=Math.abs(a.mw()[u])+a.mv()[u],(isNaN(r)||Number.isInfinity(r))&&(r=0),r=n.ig.util.cast(t.$r4.$type,a)!==null?c==0?0:r<0?(o.logicalSeriesLink().z().__inner[u]+r)/c*100:(o.logicalSeriesLink().y().__inner[u]+r)/c*100:r<0?o.logicalSeriesLink().z().__inner[u]+r:o.logicalSeriesLink().y().__inner[u]+r,isNaN(e)?(e=r,h=r):isNaN(r)||(e=Math.min(e,r),h=Math.max(h,r));return isNaN(e)?function(){var n=[];return n.add(.5*(s+l)),n.add(NaN),n.add(NaN),n}():function(){var n=[];return n.add(.5*(s+l)),n.add(e),n.add(h),n}()},$type:new n.ig.Type("SplineFragmentBucketCalculator",t.$le.$type)},!0);n.ig.util.defType("StackedBucketCalculator:si","CategoryBucketCalculator",{init:function(n){t.$kq.init.call(this,n)},getBucket:function(i){for(var o,s,h=this,r=n.ig.util.cast(t.$fu.$type,h.a().cp()),l=Math.min(r.mw()!=null?r.mw().length:0,r.mv()!=null?r.mv().length:0),c=Math.min(i*h.c,l-1),a=Math.min(c+h.c-1,l-1),u=NaN,f=NaN,e=c;e<=a;++e)o=Math.min(r.mw()[e],r.mv()[e]),s=Math.max(r.mw()[e],r.mv()[e]),isNaN(u)?(u=o,f=s):(isNaN(o)||(u=Math.min(u,o),f=Math.max(f,o)),isNaN(s)||(u=Math.min(u,s),f=Math.max(f,s)));return!isNaN(u)&&!isNaN(f)?function(){var n=[];return n.add(.5*(c+a)),n.add(u),n.add(f),n}():function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}()},getBucket1:function(){return null},$type:new n.ig.Type("StackedBucketCalculator",t.$kq.$type)},!0);n.ig.util.defType("StackedBarBucketCalculator:su","StackedBucketCalculator",{init:function(n){t.$si.init.call(this,n)},f:function(i){var f=this.a().bw(),r=this.a().bv(),u=n.ig.util.cast(t.$sq.$type,this.a().cp()),s=this.a().cp().bb(),e,o,h;if(f.isEmpty()||r.isEmpty()||u.yAxis()==null||s==null||s.count()==0){this.c=0;return}e=Math.floor(u.yAxis().getUnscaledValue2(r.top(),f,r,0));o=Math.ceil(u.yAxis().getUnscaledValue2(r.bottom(),f,r,0));u.yAxis().isInverted()||(o=Math.ceil(u.yAxis().getUnscaledValue2(r.top(),f,r,0)),e=Math.floor(u.yAxis().getUnscaledValue2(r.bottom(),f,r,0)));h=Math.floor((o-e+1)*i/r.height());this.c=Math.max(1,h);this.d=Math.max(0,Math.floor(e/this.c)-1);this.e=Math.ceil(o/this.c)},getBucket:function(n){return t.$si.getBucket.call(this,n)},getBucket1:function(i,r,u,f,e,o){var p=this,d=function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}(),v=n.ig.util.cast(t.$sv.$type,i),c,b;if(v==null||v.logicalSeriesLink()==null)return d;var l=n.ig.util.cast(t.$sq.$type,p.a().cp()),w=i.valueColumn().item(u),a=NaN,y=NaN,s=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY,g=Math.min(l.mw()!=null?l.mw().length:0,l.mv()!=null?l.mv().length:0),k=u*p.c,nt=Math.min(k+p.c-1,g-1);for(c=k;c<=nt;++c)w=i.valueColumn().item(c),w<0?(h=Math.min(h,v.logicalSeriesLink().z().__inner[c]+w),s=Math.max(s,v.logicalSeriesLink().z().__inner[c])):(h=Math.min(h,v.logicalSeriesLink().y().__inner[c]),s=Math.max(s,v.logicalSeriesLink().y().__inner[c]+w)),isNaN(a)?(a=h,y=s):(isNaN(h)||(a=Math.min(a,h),y=Math.max(y,h)),isNaN(s)||(a=Math.min(a,s),y=Math.max(y,s)));return b=new t.iu(f,e,l.xAxis().isInverted()),function(){var n=[];return n.add(o.h.__inner[r-p.d][0]),n.add(l.xAxis().getScaledValue(y,b)),n.add(l.xAxis().getScaledValue(a,b)),n}()},$type:new n.ig.Type("StackedBarBucketCalculator",t.$si.$type)},!0);n.ig.util.defType("Stacked100BarBucketCalculator:aav","StackedBarBucketCalculator",{init:function(n){t.$su.init.call(this,n)},getBucket:function(n){return t.$su.getBucket.call(this,n)},getBucket1:function(i,r,u,f,e,o){var w=this,h=n.ig.util.cast(t.$sq.$type,w.a().cp()),g=function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}(),v=n.ig.util.cast(t.$sv.$type,i),s,k;if(v==null||v.logicalSeriesLink()==null)return g;var b=i.valueColumn().item(u),p=0,a=NaN,y=NaN,c=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY,nt=Math.min(h.mw()!=null?h.mw().length:0,h.mv()!=null?h.mv().length:0),d=u*w.c,tt=Math.min(d+w.c-1,nt-1);for(s=d;s<=tt;++s)b=i.valueColumn().item(s),p=Math.abs(h.mw()[s])+h.mv()[s],b<0?(l=Math.min(l,(v.logicalSeriesLink().z().__inner[s]+b)/p*100),c=Math.max(c,v.logicalSeriesLink().z().__inner[s]/p*100)):(l=Math.min(l,v.logicalSeriesLink().y().__inner[s]/p*100),c=Math.max(c,(v.logicalSeriesLink().y().__inner[s]+b)/p*100)),isNaN(a)?(a=l,y=c):(isNaN(l)||(a=Math.min(a,l),y=Math.max(y,l)),isNaN(c)||(a=Math.min(a,c),y=Math.max(y,c)));return k=new t.iu(f,e,h.xAxis().isInverted()),function(){var n=[];return n.add(o.h.__inner[r-w.d][0]),n.add(h.xAxis().getScaledValue(y,k)),n.add(h.xAxis().getScaledValue(a,k)),n}()},$type:new n.ig.Type("Stacked100BarBucketCalculator",t.$su.$type)},!0);n.ig.util.defType("StackedColumnBucketCalculator:sn","StackedBucketCalculator",{init:function(n){t.$si.init.call(this,n)},getBucket:function(n){return t.$si.getBucket.call(this,n)},getBucket1:function(i,r,u,f,e,o){var p=this,d=function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}(),v=n.ig.util.cast(t.$so.$type,i),c,b;if(v==null||v.logicalSeriesLink()==null)return d;var l=n.ig.util.cast(t.$sl.$type,p.a().cp()),w=i.valueColumn().item(u),a=NaN,y=NaN,s=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY,g=Math.min(l.mw()!=null?l.mw().length:0,l.mv()!=null?l.mv().length:0),k=u*p.c,nt=Math.min(k+p.c-1,g-1);for(c=k;c<=nt;++c)w=i.valueColumn().item(c),w<0?(h=Math.min(h,v.logicalSeriesLink().z().__inner[c]+w),s=Math.max(s,v.logicalSeriesLink().z().__inner[c])):(h=Math.min(h,v.logicalSeriesLink().y().__inner[c]),s=Math.max(s,v.logicalSeriesLink().y().__inner[c]+w)),isNaN(a)?(a=h,y=s):(isNaN(h)||(a=Math.min(a,h),y=Math.max(y,h)),isNaN(s)||(a=Math.min(a,s),y=Math.max(y,s)));return b=new t.iu(f,e,l.yAxis().isInverted()),function(){var n=[];return n.add(o.h.__inner[r-p.d][0]),n.add(l.yAxis().getScaledValue(y,b)),n.add(l.yAxis().getScaledValue(a,b)),n}()},$type:new n.ig.Type("StackedColumnBucketCalculator",t.$si.$type)},!0);n.ig.util.defType("Stacked100ColumnBucketCalculator:aaw","StackedColumnBucketCalculator",{init:function(n){t.$sn.init.call(this,n)},getBucket:function(n){return t.$sn.getBucket.call(this,n)},getBucket1:function(i,r,u,f,e,o){var w=this,v=n.ig.util.cast(t.$fu.$type,w.a().cp()),g=function(){var n=[];return n.add(NaN),n.add(NaN),n.add(NaN),n}(),h=n.ig.util.cast(t.$so.$type,i),s,k;if(h==null||h.logicalSeriesLink()==null)return g;var b=i.valueColumn().item(u),a=NaN,y=NaN,c=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY,p=0,nt=Math.min(v.mw()!=null?v.mw().length:0,v.mv()!=null?v.mv().length:0),d=u*w.c,tt=Math.min(d+w.c-1,nt-1);for(s=d;s<=tt;++s)b=i.valueColumn().item(s),p=Math.abs(v.mw()[s])+v.mv()[s],b<0?(l=Math.min(l,(h.logicalSeriesLink().z().__inner[s]+b)/p*100),c=Math.max(c,h.logicalSeriesLink().z().__inner[s]/p*100)):(l=Math.min(l,h.logicalSeriesLink().y().__inner[s]/p*100),c=Math.max(c,(h.logicalSeriesLink().y().__inner[s]+b)/p*100)),isNaN(a)?(a=l,y=c):(isNaN(l)||(a=Math.min(a,l),y=Math.max(y,l)),isNaN(c)||(a=Math.min(a,c),y=Math.max(y,c)));return k=new t.iu(f,e,h.yAxis().isInverted()),function(){var n=[];return n.add(o.h.__inner[r-w.d][0]),n.add(h.yAxis().getScaledValue(y,k)),n.add(h.yAxis().getScaledValue(a,k)),n}()},$type:new n.ig.Type("Stacked100ColumnBucketCalculator",t.$sn.$type)},!0);n.ig.util.defType("ColumnFragmentView:sp","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},ao:function(){var n=this;t.$kn.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},init:function(n){var i=this;t.$kn.init.call(this,n);this.c3(n);this.c5(new t.bh(Number,0));this.c6(new t.bh(Number,0));this.c4(function(){var n=new t.ga(t.$b1.$type);return n.create(i.dc.runOn(i)),n.activate(i.c8.runOn(i)),n.disactivate(i.da.runOn(i)),n.destroy(i.c9.runOn(i)),n}());this.c7(new t.bh(t.$b1.$type,0))},_c7:null,c7:function(n){return arguments.length===1?(this._c7=n,n):this._c7},_c4:null,c4:function(n){return arguments.length===1?(this._c4=n,n):this._c4},_c5:null,c5:function(n){return arguments.length===1?(this._c5=n,n):this._c5},_c6:null,c6:function(n){return arguments.length===1?(this._c6=n,n):this._c6},dc:function(){var i=this,n=function(){var n=new t.b1;return n.dataContext(function(){var n=new t.fl;return n.series(i.d()),n}()),n}();return i.c7().add(n),n.__visibility=1,n},c8:function(n){n.__visibility=0},da:function(n){n.__visibility=1},c9:function(n){this.c7().remove(n)},a9:function(n,i){t.$kn.a9.call(this,n,i);var r=n;r.__fill=this.d().actualBrush();r.__stroke=this.d().actualOutline();r.z(this.d().thickness());r.af(this.d().dashArray());r.aa(this.d().dashCap());r.ai(this.c3().radiusX());r.aj(this.c3().radiusY())},db:function(n,t,i){var r=!1;n.m()!=i&&(r=!0,n.m(i));n.l()!=t&&(r=!0,n.l(t));r&&this.am()},ba:function(n,i){t.$kn.ba.call(this,n,i);var r=n,u=this.bs(i);r.__fill=u;r.__stroke=u;r.z(this.d().thickness()+3)},a1:function(n,i){var r,u;if(t.$kn.a1.call(this,n,i),n.c())for(r=0;r<this.c7().count();r++)u=this.c7().__inner[r],this.a8(u,r,i),n.t(u)},ah:function(n){var f=this,s,r,h,u;t.$kn.ah.call(f,n);for(var e=0,i=new t.bh(t.$b1.$type,0),o=f.c4().a().getEnumerator();o.moveNext();)s=o.current(),i.add(s);for(i.sort1(function(n,t){return n.l()<t.l()?-1:n.l()>t.l()?1:0}),r=i.getEnumerator();r.moveNext();)h=r.current(),u=new t.g6(1,"column"+e,h),u.tags().add("Main"),n.shapes().add(u);e++},getDefaultTooltipTemplate:function(){var r="<div class='ui-chart-default-tooltip-content'>",i=null,u;return this.c3().xAxis().isCategory()?i=this.c3().xAxis():this.c3().yAxis().isCategory()&&(i=this.c3().yAxis()),u=n.ig.util.cast(t.$lf.$type,i),u!=null&&(r+="<span>${item."+u.dateTimeMemberPath()+"}<\/span><br/>"),i!=null&&i.label()!=null&&(r+="<span>${item."+i.label()+"}<\/span><br/>"),r+="<span",this.d().actualOutline()!=null&&this.d().actualOutline().color()!=null&&(r+=" style='color:"+this.d().actualOutline().__fill+"'"),r+(">"+this.c3().title()+": <\/span><span class='ui-priority-primary'>${item."+this.c3().valueMemberPath()+"}<\/span><\/div>")},$type:new n.ig.Type("ColumnFragmentView",t.$kn.$type)},!0);n.ig.util.defType("LineFragment:r1","FragmentBase",{init:function(){t.$ka.init.call(this);this.y(t.$r1.$type)},au:function(){return new t.r2(this)},_nx:null,nx:function(n){return arguments.length===1?(this._nx=n,n):this._nx},hc:function(n){t.$ka.hc.call(this,n);this.nx(n)},preferredCategoryMode:function(){return 0},gh:function(n,i){t.$ka.gh.call(this,n,i);var r=i;r.c4()},me:function(i,r){var u=this,e,f;t.$ka.me.call(u,i,r);var o=function(n){return i.h.__inner[n][0]},s=function(n){return i.h.__inner[n][1]},h=function(n){return i.h.__inner[n][0]},c=function(n){return i.h.__inner[n][2]};u.mp().a(n.ig.util.cast(t.$kr.$type,u.xAxis())!==null?!0:!1);e=r.cn().c;f=n.ig.util.cast(t.$r2.$type,r);u.mp().l(f.c6,f.c5,f.c7,i.h.count(),i.h,!0,0,u.mn(i.h,i.h.count()-1,r.bv(),r.bw()),e,u.resolution())},$type:new n.ig.Type("LineFragment",t.$ka.$type)},!0);n.ig.util.defType("LineFragmentView:r2","AnchoredCategorySeriesView",{_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},init:function(n){this.c6=new t.b6;this.c5=new t.b6;this.c7=new t.b6;t.$kn.init.call(this,n);this.c3(n)},c6:null,c5:null,c7:null,c4:function(){this.c5.ak(null);this.c6.ak(null);this.c7.ak(null)},co:function(){return new t.r3(this)},a6:function(){t.$kn.a6.call(this);this.c6.__stroke=this.d().actualBrush();this.c6.z(this.d().thickness());this.c6.af(this.d().dashArray());this.c6.aa(this.d().dashCap());this.c7.__stroke=this.d().actualBrush();this.c7.z(this.d().thickness());this.c7.af(this.d().dashArray());this.c7.aa(this.d().dashCap());this.c5.__fill=this.d().actualBrush();this.c5.__opacity=.75},a7:function(){t.$kn.a7.call(this);var n=this.br();this.c6.__stroke=n;this.c6.z(this.d().thickness()+3);this.c7.__stroke=n;this.c7.z(this.d().thickness()+3);this.c5.__fill=n;this.c5.__opacity=1},a1:function(n,i){t.$kn.a1.call(this,n,i);n.c()&&(n.q(this.c5),n.q(this.c6),n.q(this.c7))},ah:function(n){var i,r,u;t.$kn.ah.call(this,n);i=new t.me(1,"lowerShape",this.c6);i.tags().add("Lower");i.tags().add("Main");r=new t.me(1,"upperShape",this.c7);r.tags().add("Upper");u=new t.me(1,"translucentShape",this.c5);u.tags().add("Translucent");n.shapes().add(i);n.shapes().add(r);n.shapes().add(u)},$type:new n.ig.Type("LineFragmentView",t.$kn.$type)},!0);n.ig.util.defType("SplineFragmentBase:sd","SplineSeriesBase",{init:function(){t.$mn.init.call(this);this.n2=null},_logicalSeriesLink:null,logicalSeriesLink:function(n){return arguments.length===1?(this._logicalSeriesLink=n,n):this._logicalSeriesLink},n2:null,parentSeries:function(n){return arguments.length===1?(this.n2=n,n):this.n2},bz:function(){return!1},preferredCategoryMode:function(){return 0},nt:function(i,r,u,f,e,o,s){var h=r[0],c=r[1],a=new t.x(0,h-5,c-5,11,11),l;return!isNaN(h)&&!isNaN(c)&&!Number.isInfinity(h)&&!Number.isInfinity(c)&&u.tryAdd(a)?(i.p.add({__x:h,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),l=o.cq().item(e),n.ig.util.cast(t.$fl.$type,l.content()).item(this.bb().item(f)),l.aj(s),!0):!1},ct:function(i,r,u){var f=t.$mn.ct.call(this,i,r,u),e=n.ig.util.cast(t.$hb.$type,this.parentSeries().kt()),o=this.parentSeries().ku();return((this.parentSeries()==null||e==null||e.itemsSource()==null||o==null||this.parentSeries().bb()==null||e.seriesViewer()==null||o.seriesViewer()==null)&&(f=!1),this.valueColumn()==null)?!1:(Number.isInfinity(this.valueColumn().minimum())&&Number.isInfinity(this.valueColumn().maximum())&&(f=!1),isNaN(this.valueColumn().minimum())&&isNaN(this.valueColumn().maximum())&&(f=!1),f)},ad:function(){return null},n4:function(i,r,u,f,e,o){var s=this,c=n.ig.util.cast(t.$kr.$type,f),v,h,ut,l,d,ni;if(c!=null){var b=new t.iu(r,u,f.isInverted()),st=new t.iu(r,u,e.isInverted()),ui=s.nw(f.getUnscaledValue(2,b)-f.getUnscaledValue(1,b)),tt=s.jw(),a=0,ht=s.nv(f,r,u),ct=function(n){return Math.abs(s.parentSeries().mw()[n])+s.parentSeries().mv()[n]},lt=function(n){return n},at=function(i){var r=c.sortedIndices().__inner[i];return n.ig.util.cast(t.$r4.$type,s.parentSeries())!==null?s.valueColumn().item(r)<0?(s.logicalSeriesLink().z().__inner[r]+s.valueColumn().item(r))/ct(r)*100:(s.logicalSeriesLink().y().__inner[r]+s.valueColumn().item(r))/ct(r)*100:s.valueColumn().item(r)<0?s.logicalSeriesLink().z().__inner[r]+s.valueColumn().item(r):s.logicalSeriesLink().y().__inner[r]+s.valueColumn().item(r)},it=s.k4().cn().e,rt=s.k4().cn().d,vt=Math.ceil(u.width()/(it-rt)),yt=new t.mq,pt=s.k4().cn().c;if(pt<=0||rt<=0&&it<=0){s.k4().cq().c(a);return}for(v=0,h=rt;h<it+1;++h){if(ut=null,l=h*pt,c!=null&&c.sortedIndices()!=null&&l>=0&&l<c.sortedIndices().count()&&(l=c.sortedIndices().__inner[l]),h>=s.valueColumn().count()-1){tt&&s.nt(i,i.h.last$1(n.ig.Array.prototype.$type),yt,Math.min(l,s.bb().count()-1),a,o,v-1)&&++a;break}var ft=lt(h),et=at(h),wt=lt(h+1),bt=at(h+1),y=wt-ft,ti=s.ns()[h],ii=s.ns()[h+1],ri=c.getUnscaledValueAt(c.sortedIndices().__inner[h]),kt=f.getScaledValue(ri,b)+ht,k=e.getScaledValue(et,st);for(i.h.add(function(){var n=[];return n.add(kt),n.add(k),n.add(k),n}()),v++,d=1;d<vt;++d){var dt=d/vt,g=ft+y*dt,p=(wt-g)/y,w=(g-ft)/y,nt=p*et+w*bt+((p*p*p-p)*ti+(w*w*w-w)*ii)*y*y/6,ot=c.getUnscaledValueAt(c.sortedIndices().__inner[h]),gt=c.getUnscaledValueAt(c.sortedIndices().__inner[h+1]);if(ot==gt&&et==bt)break;ni=ot+(gt-ot)*dt;g=f.getScaledValue(ni,b)+ht;nt=e.getScaledValue(nt,st);i.h.add(function(){var n=[];return n.add(g),n.add(nt),n.add(nt),n}());v++}tt&&(ut=function(){var n=[];return n.add(kt),n.add(k),n.add(k),n}());tt&&s.nt(i,ut,yt,Math.min(l,s.bb().count()-1),a,o,v-1)&&++a}s.k4().cq().c(a)}},mb:function(i,r){var u=this,g,l,at,v,ti,nt,tt,s,ii,yt,y,lt,e,o,ft;if((i.v(),u.valueColumn()!=null&&u.parentSeries()!=null&&u.logicalSeriesLink()!=null)&&u.logicalSeriesLink().z().count()!=0&&u.logicalSeriesLink().y().count()!=0&&u.k4().cn().c!=0&&(t.$mn.mb.call(u,i,r),!(i.h.count()<=1))){var a=r.bw(),h=r.bv(),f=n.ig.util.cast(t.$hb.$type,u.parentSeries().kt()),c=n.ig.util.cast(t.$iq.$type,u.parentSeries().ku()),ot=new t.iu(a,h,f.isInverted()),d=new t.iu(a,h,c.isInverted());if(i.h.clear(),i.p.clear(),g=u.jw(),l=0,r==u.av()?(at=u.parentSeries().ky,v=n.ig.util.cast(t.$ko.$type,u.parentSeries().av())):(at=u.parentSeries().kw,v=u.parentSeries().k4()),ti=v.cn().c,nt=n.ig.util.cast(t.$kr.$type,f),nt==null||nt.sortedIndices().count()==u.bb().count()){tt=u.preferredCategoryMode(f);tt==0&&f.categoryMode()!=0&&(tt=1);s=0;switch(tt){case 0:s=0;break;case 1:s=.5*f.getCategorySize(a,h);break;case 2:ii=u.index();s=f.getGroupCenter(u.index(),a,h)}f.isInverted()&&(s=-s);var st=function(n){return Math.abs(u.parentSeries().mw()[n])+u.parentSeries().mv()[n]},ht=function(n){return n},it=function(i){var r=u.valueColumn().item(i);return((isNaN(r)||Number.isInfinity(r))&&(r=0),n.ig.util.cast(t.$r4.$type,u.parentSeries())!==null)?st(i)==0?0:r<0?(u.logicalSeriesLink().z().__inner[i]+r)/st(i)*100:(u.logicalSeriesLink().y().__inner[i]+r)/st(i)*100:r<0?u.logicalSeriesLink().z().__inner[i]+r:u.logicalSeriesLink().y().__inner[i]+r},ct=r.cn().c,vt=u.splineType()==0?NaN:0;f!=null&&n.ig.util.cast(t.$kr.$type,f)!==null&&n.ig.util.cast(t.$kr.$type,f).sortedIndices()!=null&&(yt=new t.mr(u.valueColumn(),n.ig.util.cast(t.$kr.$type,f).sortedIndices()),it=function(n){return yt.item(n)});u.ns(t.$lb.c(u.valueColumn().count(),ht,it,vt,vt));var pt=v.cn().d,wt=v.cn().e,bt=Math.ceil(h.width()/(wt-pt)),kt=new t.mq;if(nt!=null){u.n4(i,a,h,f,c,r);return}for(y=0,lt=0,e=pt;e<wt+1;++e){if(e>=u.valueColumn().count())break;if(o=null,ct==1){if(e>=u.valueColumn().count()-1){g&&i.h.count()>0&&u.nt(i,i.h.__inner[i.h.count()-1],kt,Math.min(e*ct,u.bb().count()-1),l,r,y-1)&&++l;break}var rt=ht(e),dt=ht(e+1),gt=it(e),ri=it(e+1),p=dt-rt,ui=u.ns()[e],fi=u.ns()[e+1],ni=f.getScaledValue(rt,ot)+s,ut=c.getScaledValue(gt,d);for(i.h.add(function(){var n=[];return n.add(ni),n.add(ut),n.add(ut),n}()),y++,lt=y,ft=1;ft<bt;++ft){var w=rt+p*ft/bt,b=(dt-w)/p,k=(w-rt)/p,et=b*gt+k*ri+((b*b*b-b)*ui+(k*k*k-k)*fi)*p*p/6;w=f.getScaledValue(w,ot)+s;et=c.getScaledValue(et,d);i.h.add(function(){var n=[];return n.add(w),n.add(et),n.add(et),n}());y++}g&&(o=function(){var n=[];return n.add(ni),n.add(ut),n.add(ut),n}())}else o=r.cn().getBucket(e),isNaN(o[0])||(o[0]=f.getScaledValue(o[0],ot)+s,o[1]=c.getScaledValue(o[1],d),o[2]=c.getScaledValue(o[2],d),i.h.add(o));g&&u.nt(i,o,kt,Math.min(e*ct,u.bb().count()-1),l,r,lt-1)&&++l}r.cq().c(l)}}},$type:new n.ig.Type("SplineFragmentBase",t.$mn.$type)},!0);n.ig.util.defType("SplineAreaFragment:sc","SplineFragmentBase",{init:function(){t.$sd.init.call(this);this.y(t.$sc.$type)},au:function(){return new t.se(this)},hc:function(i){t.$sd.hc.call(this,i);this.n5(n.ig.util.cast(t.$se.$type,i))},_n5:null,n5:function(n){return arguments.length===1?(this._n5=n,n):this._n5},onApplyTemplate:function(){t.$sd.onApplyTemplate.call(this);this.renderSeries(!1)},_n6:null,n6:function(n){return arguments.length===1?(this._n6=n,n):this._n6},gh:function(n,i){t.$sd.gh.call(this,n,i);var r=i;r.c5()},me:function(i,r){var u=this,f,e;t.$sd.me.call(u,i,r);u.mp().a(n.ig.util.cast(t.$kr.$type,u.xAxis())!==null?!0:!1);f=n.ig.util.cast(t.$se.$type,r);e=r.cn().c;u.mp().h(f.c6,f.c8,f.c7,f.c9,i.h.count(),i.h,!0,e,u.resolution(),function(n){return u.n7(n,i.h,r)},1);f.c6.__opacity=u.actualAreaFillOpacity();f.c7.__opacity=.5*u.actualAreaFillOpacity()},n7:function(i,r,u){var a=this.mu(u),h=a,v=this.logicalSeriesLink().u(),c=v?this.parentSeries().mt().e():this.parentSeries().mt().d(),l=c.indexOf(this),s,e,f,o;if(i.count()!=0&&l!=-1)for(s=!1,e=l;e>=0;e--){if(s)break;if(e==0){i.add({__x:i.last$1(t.$z.$type).__x,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:i.first$1(t.$z.$type).__x,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});break}if(f=n.ig.util.cast(t.$sd.$type,c.__inner[e-1]),f!=null&&f.mp()!=null&&f.mp().c().count()>0&&this.view()!=null&&f.ct(this.view().bv(),this.view().bw(),this.view()))for(s=!0,o=f.mp().c().count()-1;o>=0;o--)i.add(f.mp().c().__inner[o])}},mu:function(n){var i=0,r=n.bw(),u=n.bv(),f=new t.iu(r,u,this.yAxis().isInverted());return r.isEmpty()||u.isEmpty()||this.yAxis()==null||(i=this.yAxis().getScaledValue(0,f)),i},hy:function(){var i=n.ig.util.cast(t.$bd.$type,this.seriesViewer());i!=null&&this.actualAreaFillOpacity(isNaN(this.areaFillOpacity())?this.parentSeries().actualAreaFillOpacity():this.areaFillOpacity())},$type:new n.ig.Type("SplineAreaFragment",t.$sd.$type)},!0);n.ig.util.defType("SplineAreaFragmentView:se","SplineSeriesBaseView",{_c4:null,c4:function(n){return arguments.length===1?(this._c4=n,n):this._c4},ao:function(){var n=this;t.$mo.ao.call(n);n.n()||n.d().legendItemBadgeTemplate(function(){var n=new t.cg;return n.render(t.$mx.r),n.measure(t.$mx.j),n}())},init:function(n){this.c6=new t.b6;this.c8=new t.b6;this.c7=new t.b6;this.c9=new t.b6;t.$mo.init.call(this,n);this.c4(n)},c6:null,c8:null,c7:null,c9:null,c5:function(){this.c6.ak(null);this.c7.ak(null);this.c8.ak(null);this.c9.ak(null)},a6:function(){t.$mo.a6.call(this);this.c6.__fill=this.d().actualBrush();this.c7.__fill=this.d().actualBrush();this.c6.__opacity=this.d().actualAreaFillOpacity();this.c7.__opacity=.5*this.d().actualAreaFillOpacity();this.c8.__stroke=this.d().actualOutline();this.c8.z(this.d().thickness());this.c8.af(this.d().dashArray());this.c8.aa(this.d().dashCap());this.c9.__stroke=this.d().actualOutline();this.c9.z(this.d().thickness());this.c9.af(this.d().dashArray());this.c9.aa(this.d().dashCap())},a7:function(){t.$mo.a7.call(this);var n=this.br();this.c6.__fill=n;this.c7.__fill=n;this.c7.__opacity=1;this.c6.__opacity=1;this.c8.__stroke=n;this.c8.z(this.d().thickness()+3);this.c9.__stroke=n;this.c9.z(this.d().thickness()+3)},a1:function(n,i){t.$mo.a1.call(this,n,i);n.c()&&(n.q(this.c6),n.q(this.c7),n.q(this.c8),n.q(this.c9))},ah:function(n){var r,i,u,f;t.$mo.ah.call(this,n);r=new t.me(1,"lowerShape",this.c8);r.tags().add("Lower");i=new t.me(1,"upperShape",this.c9);i.tags().add("Upper");i.tags().add("Main");u=new t.me(1,"translucentShape",this.c6);u.tags().add("Translucent");f=new t.me(1,"fillShape",this.c7);f.tags().add("Fill");n.shapes().add(r);n.shapes().add(i);n.shapes().add(u);n.shapes().add(f)},$type:new n.ig.Type("SplineAreaFragmentView",t.$mo.$type)},!0);n.ig.util.defType("SplineFragment:sw","SplineFragmentBase",{init:function(){t.$sd.init.call(this);this.y(t.$sw.$type)},au:function(){return new t.sx(this)},_n5:null,n5:function(n){return arguments.length===1?(this._n5=n,n):this._n5},hc:function(n){t.$sd.hc.call(this,n);this.n5(n)},gh:function(n,i){t.$sd.gh.call(this,n,i);var r=i;r.c5()},me:function(i,r){t.$sd.me.call(this,i,r);this.mp().a(n.ig.util.cast(t.$kr.$type,this.xAxis())!==null?!0:!1);var u=n.ig.util.cast(t.$sx.$type,r),f=u.cn().c;this.mp().l(u.c7,u.c6,u.c8,i.h.count(),i.h,!0,1,this.mn(i.h,i.h.count()-1,r.bv(),r.bw()),f,this.resolution())},$type:new n.ig.Type("SplineFragment",t.$sd.$type)},!0);n.ig.util.defType("SplineFragmentView:sx","SplineSeriesBaseView",{_c4:null,c4:function(n){return arguments.length===1?(this._c4=n,n):this._c4},init:function(n){this.c7=new t.b6;this.c6=new t.b6;this.c8=new t.b6;t.$mo.init.call(this,n);this.c4(n)},co:function(){return new t.sy(this)},c7:null,c6:null,c8:null,c5:function(){this.c6.ak(null);this.c7.ak(null);this.c8.ak(null)},a6:function(){t.$mo.a6.call(this);this.c7.__stroke=this.d().actualBrush();this.c7.z(this.d().thickness());this.c7.af(this.d().dashArray());this.c7.aa(this.d().dashCap());this.c8.__stroke=this.d().actualBrush();this.c8.z(this.d().thickness());this.c8.af(this.d().dashArray());this.c8.aa(this.d().dashCap());this.c6.__fill=this.d().actualBrush();this.c6.__opacity=.75},a7:function(){t.$mo.a7.call(this);var n=this.br();this.c7.__stroke=n;this.c7.z(this.d().thickness()+3);this.c8.__stroke=n;this.c8.z(this.d().thickness()+3);this.c6.__fill=n;this.c6.__opacity=.75},a1:function(n,i){t.$mo.a1.call(this,n,i);n.c()&&(n.q(this.c6),n.q(this.c7),n.q(this.c8))},ah:function(n){var i,r,u;t.$mo.ah.call(this,n);i=new t.me(1,"lowerShape",this.c7);i.tags().add("Lower");i.tags().add("Main");r=new t.me(1,"upperShape",this.c8);r.tags().add("Upper");u=new t.me(1,"translucentShape",this.c6);u.tags().add("Translucent");n.shapes().add(i);n.shapes().add(r);n.shapes().add(u)},$type:new n.ig.Type("SplineFragmentView",t.$mo.$type)},!0);n.ig.util.defType("StackedSeriesBase:fu","CategorySeries",{init:function(){this.m0=new t.f0(String,t.$f.$type,0);t.$fv.init.call(this);this.series(new t.sg);this.series().collectionResetting=n.ig.Delegate.prototype.combine(this.series().collectionResetting,this.ng.runOn(this));this.series().collectionChanged=n.ig.Delegate.prototype.combine(this.series().collectionChanged,this.nf.runOn(this));this.ms(new t.ta(1,this,this.mu(),this,this,this.mu().cn()));this.mt(new t.sf(this));this.mp(new t.sg);this.mp().collectionChanged=n.ig.Delegate.prototype.combine(this.mp().collectionChanged,this.nf.runOn(this));this.mp().collectionResetting=n.ig.Delegate.prototype.combine(this.mp().collectionResetting,this.na.runOn(this))},b2:function(){return!1},au:function(){return new t.sh(this)},_mu:null,mu:function(n){return arguments.length===1?(this._mu=n,n):this._mu},hc:function(n){t.$fv.hc.call(this,n);this.mu(n)},hd:function(n,i){var r,u;for(t.$fv.hd.call(this,n,i),r=this.series().getEnumerator();r.moveNext();)u=r.current(),u.visualSeriesLink().view().bv(i)},_series:null,series:function(n){return arguments.length===1?(this._series=n,n):this._series},autoGenerateSeries:function(n){return arguments.length===1?(this.g(t.$fu.autoGenerateSeriesProperty,n),n):this.c(t.$fu.autoGenerateSeriesProperty)},reverseLegendOrder:function(n){return arguments.length===1?(this.g(t.$fu.reverseLegendOrderProperty,n),n):this.c(t.$fu.reverseLegendOrderProperty)},isStacked:function(){return!0},seriesCreated:null,nl:function(n){return arguments.length===1?(this.g(t.$fu.nk,n),n):this.c(t.$fu.nk)},_m4:0,m4:function(n){return arguments.length===1?(this._m4=n,n):this._m4},_m3:0,m3:function(n){return arguments.length===1?(this._m3=n,n):this._m3},_mv:null,mv:function(n){return arguments.length===1?(this._mv=n,n):this._mv},_mw:null,mw:function(n){return arguments.length===1?(this._mw=n,n):this._mw},_ms:null,ms:function(n){return arguments.length===1?(this._ms=n,n):this._ms},_mt:null,mt:function(n){return arguments.length===1?(this._mt=n,n):this._mt},_mp:null,mp:function(n){return arguments.length===1?(this._mp=n,n):this._mp},mo:function(){return this.autoGenerateSeries()?this.mp():this.series()},na:function(){for(var t=this.mp().getEnumerator(),n;t.moveNext();)n=t.current(),this.mt()!=null&&this.mt().c().contains(n)&&(n.parentSeries(null),this.mt().c().remove(n))},ng:function(){for(var t=this.series().getEnumerator(),n;t.moveNext();)n=t.current(),this.mt()!=null&&this.mt().c().contains(n)&&(n.parentSeries(null),this.mt().c().remove(n))},nf:function(n,t){var u,r,f,e,i;if(t.oldItems()!=null)for(u=t.oldItems().getEnumerator();u.moveNext();)r=u.current(),this.mt()!=null&&this.mt().c().contains(r)&&(r.parentSeries(null),this.mt().c().remove(r));if(t.newItems()!=null)for(f=t.newStartingIndex(),e=t.newItems().getEnumerator();e.moveNext();)i=e.current(),this.mt()==null||this.mt().c().contains(i)||(i.parentSeries(this),i.cu(),i.c9(),i.da(),i.dh(),i.db(),i.dc(),i.cq(),i.cr(),i.cs(),i.ct(),i.cv(),i.cw(),i.cx(),i.cy(),i.c2(),i.c3(),i.cz(),i.c0(),i.c1(),i.c2(),i.c4(),i.c5(),i.c6(),i.cp(),i.c7(),i.c8(),i.dd(),i.de(),i.df(),i.dg(),i.di(),this.autoGenerateSeries()||(this.mt().c().insert(f,i),f++));this.autoGenerateSeries()||this.nh()},k1:function(i){if(i==this.av()){var r=n.ig.util.cast(t.$ko.$type,this.av());return new t.ta(1,this,n.ig.util.cast(t.$kp.$type,r),this.seriesViewer().a6().o(),this,r.cn())}return this.ms()},mb:function(n,t){n.v();this.nd();this.k1(t).d(n,t)},gh:function(n,i){var u,r;for(t.$fv.gh.call(this,n,i),u=this.mo().getEnumerator();u.moveNext();)r=u.current(),r.visualSeriesLink()!=null&&r.visualSeriesLink().gh(n,r.visualSeriesLink().view())},nb:function(){this.nd()},nh:function(){var t=this.kt(),n;t!=null&&t.updateRange1(!0);n=this.ku();n!=null&&n.updateRange1(!0)},scrollIntoView:function(n){var f=this.bb()!=null?this.bb().indexOf(n):-1,i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),s=this.view().bv(),o,l,u,e,c;if(f>=0&&i!=null&&s!=null){if(o=this.kt(),o!=null&&(l=new t.iu(i,s,o.isInverted()),u=o.getScaledValue(f,l),u<i.left()+.1*i.width()&&(u=u+.4*i.width()),u>i.right()-.1*i.width()&&(u=u-.4*i.width()),i.x(u-.5*i.width())),e=this.ku(),e!=null&&this.mv()!=null&&f<this.mv().length){var a=new t.iu(i,s,e.isInverted()),h=e.getScaledValue(this.mv()[f],a),r=e.getScaledValue(this.mw()[f],a);isNaN(h)||isNaN(r)||(c=Math.abs(r-h),i.height()<c?(i.height(c),i.y(Math.min(r,h))):(r<i.top()+.1*i.height()&&(r=r+.4*i.height()),r>i.bottom()-.1*i.height()&&(r=r-.4*i.height()),i.y(r-.5*i.height())))}this.syncLink().al(this.seriesViewer(),i)}return f>=0},ad:function(n){if(this.mw()==null||this.mw().length==0||this.mv()==null||this.mv().length==0)return null;if(n==this.kt()){var i=Math.min(this.mw().length,this.mv().length);return new t.im(0,i-1)}return n==this.ku()?new t.im(this.m4(),this.m3()):null},jw:function(){return!1},gj:function(){this.lo();this.renderSeries(!1)},mn:function(){return this.mu()},m1:function(){var r=0,u=this.view().bw(),f=this.view().bv(),i=n.ig.util.cast(t.$iq.$type,this.ku()),e;return u.isEmpty()||f.isEmpty()||i==null||(e=new t.iu(u,f,i.isInverted()),r=i.getScaledValue(i.referenceValue(),e)),r},m2:function(){var i=n.ig.util.cast(t.$iq.$type,this.ku());return i!=null?i.referenceValue():0},m6:function(n){return this.index()<0||this.mo()==null||this.mo().count()==0?-1:this.index()+this.mo().indexOf(n)},m5:function(i){var u=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),f=this.view().bv(),e=-1,r=n.ig.util.cast(t.$hb.$type,this.kt()),h;if(r!=null&&!u.isEmpty()&&!f.isEmpty()){var o=r.getUnscaledValue2(f.left(),u,f,r.categoryMode()),c=r.getUnscaledValue2(f.right(),u,f,r.categoryMode()),l=(i.__x-u.left())/u.width(),s=o+l*(c-o);r.categoryMode()!=0&&(s-=.5);h=Math.round(s);e=h}return e},mz:function(i,r,u,f){var o=!0,s=n.ig.util.cast(t.$hb.$type,this.kt()),e=n.ig.util.cast(t.$iq.$type,this.ku()),h,c;return(!f.m()||u.isEmpty()||r.isEmpty()||s==null||s.itemsSource()==null||e==null||this.bb()==null||s.seriesViewer()==null||e.seriesViewer()==null||e.actualMinimumValue()==e.actualMaximumValue())&&(o=!1),h=f,c=h.cn().c,(i.valueColumn()==null||i.valueColumn().count()==0||c<1||i.__visibility!=0)&&(o=!1),o},m0:null,nc:function(){var n,t;if(this.seriesViewer()!=null&&this.mt()!=null&&!this.autoGenerateSeries()){for(this.mp().clear(),n=this.series().getEnumerator();n.moveNext();)t=n.current(),this.mt().c().contains(t)||this.mt().c().add(t);this.nh();return}},me:function(n,i){t.$fv.me.call(this,n,i);this.mt().g()},ne:function(){},nd:function(){var r,u,f,o,n,t,i,e;if(this.bb()!=null){for(r=this.bb().count(),this.mv(new Array(r)),this.mw(new Array(r)),u=0;u<r;u++)this.mv()[u]=0,this.mw()[u]=0;for(this.m4(Number.POSITIVE_INFINITY),this.m3(Number.NEGATIVE_INFINITY),f=0,o=this.mo().getEnumerator();o.moveNext();)if(n=o.current(),this.bb().deregisterColumn(n.n()),n.n(this.a8(n.valueMemberPath())),n.visualSeriesLink()!=null&&(n.visualSeriesLink().mt(!0),n.visualSeriesLink().valueColumn(n.n()),n.visualSeriesLink().mt(!1)),n.u(!0),n.n()!=null)for(n.y().clear(),n.z().clear(),t=0;t<n.n().count();t++)i=n.n().item(t),i<f?(n.y().add(f),n.z().add(this.mw()[t]),this.mw()[t]=this.mw()[t]+i,n.u()&&n.u(!1)):i>=f?(n.y().add(this.mv()[t]),n.z().add(f),this.mv()[t]=this.mv()[t]+i):(isNaN(i)||Number.isInfinity(i))&&(n.y().add(this.mv()[t]),n.z().add(this.mw()[t]));for(e=0;e<r;e++)this.m4(Math.min(this.m4(),this.mw()[e])),this.m3(Math.max(this.m3(),this.mv()[e]))}},hh:function(n,i,r,u){var f,pt,e,o,s,wt,h,bt,c,kt,l,dt,a,gt,v,ni,y,ti,p,ii,w,ri,b,ui,k,fi,d,ei,g,oi,nt,si,tt,hi,it,ci,rt,li,ut,ai,ft,vi,et,yi,ot,pi,st,wi,ht,bi,ct,ki,lt,di,at,gi,vt,nr,yt,tr;t.$fv.hh.call(this,n,i,r,u);switch(i){case"SeriesViewer":if(this.mo()!=null){for(f=this.mo().getEnumerator();f.moveNext();)pt=f.current(),pt.m(this.seriesViewer());this.mt().g()}break;case"ItemsSource":if(this.mo()!=null)for(e=this.mo().getEnumerator();e.moveNext();)o=e.current(),o.visualSeriesLink()!=null&&o.visualSeriesLink().itemsSource(u);break;case"FastItemsSource":this.autoGenerateSeries()&&this.nc();this.lo()||this.mu().cn().f(this.resolution());this.renderSeries(!1);break;case"AutoGenerateSeries":this.nc();break;case"ReverseLegendOrder":this.seriesViewer()!=null&&this.seriesViewer().hi(this.mt().f());break;case"SeriesVisibility":for(s=this.mo().getEnumerator();s.moveNext();)wt=s.current(),wt.di();break;case"Brush":for(h=this.mo().getEnumerator();h.moveNext();)bt=h.current(),bt.cq();break;case"DashArray":for(c=this.mo().getEnumerator();c.moveNext();)kt=c.current(),kt.cr();break;case"DashCap":for(l=this.mo().getEnumerator();l.moveNext();)dt=l.current(),dt.cs();break;case"IsDropShadowEnabled":for(a=this.mo().getEnumerator();a.moveNext();)gt=a.current(),gt.cu();break;case"ShadowBlur":for(v=this.mo().getEnumerator();v.moveNext();)ni=v.current(),ni.c9();break;case"ShadowColor":for(y=this.mo().getEnumerator();y.moveNext();)ti=y.current(),ti.da();break;case"UseSingleShadow":for(p=this.mo().getEnumerator();p.moveNext();)ii=p.current(),ii.dh();break;case"ShadowOffsetX":for(w=this.mo().getEnumerator();w.moveNext();)ri=w.current(),ri.db();break;case"ShadowOffsetY":for(b=this.mo().getEnumerator();b.moveNext();)ui=b.current(),ui.dc();break;case"EndCap":for(k=this.mo().getEnumerator();k.moveNext();)fi=k.current(),fi.ct();break;case"IsHitTestVisible":for(d=this.mo().getEnumerator();d.moveNext();)ei=d.current(),ei.cv();break;case"LegendItemBadgeTemplate":for(g=this.mo().getEnumerator();g.moveNext();)oi=g.current(),oi.cw();break;case"LegendItemTemplate":for(nt=this.mo().getEnumerator();nt.moveNext();)si=nt.current(),si.cx();break;case"LegendItemVisibility":for(tt=this.mo().getEnumerator();tt.moveNext();)hi=tt.current(),hi.cy();break;case"MarkerTemplate":for(it=this.mo().getEnumerator();it.moveNext();)ci=it.current(),ci.c2();break;case"MarkerType":for(rt=this.mo().getEnumerator();rt.moveNext();)li=rt.current(),li.c3();break;case"MarkerBrush":for(ut=this.mo().getEnumerator();ut.moveNext();)ai=ut.current(),ai.cz();break;case"MarkerOutline":for(ft=this.mo().getEnumerator();ft.moveNext();)vi=ft.current(),vi.c0();break;case"MarkerStyle":for(et=this.mo().getEnumerator();et.moveNext();)yi=et.current(),yi.c1();break;case"Opacity":for(ot=this.mo().getEnumerator();ot.moveNext();)pi=ot.current(),pi.c4();break;case"OpacityMask":for(st=this.mo().getEnumerator();st.moveNext();)wi=st.current(),wi.c5();break;case"AreaFillOpacity":for(ht=this.mo().getEnumerator();ht.moveNext();)bi=ht.current(),bi.cp();break;case"Outline":for(ct=this.mo().getEnumerator();ct.moveNext();)ki=ct.current(),ki.c6();break;case"StartCap":for(lt=this.mo().getEnumerator();lt.moveNext();)di=lt.current(),di.dd();break;case"Thickness":for(at=this.mo().getEnumerator();at.moveNext();)gi=at.current(),gi.de();break;case"ToolTip":for(vt=this.mo().getEnumerator();vt.moveNext();)nr=vt.current(),nr.df();break;case"UseLightweightMarkers":for(yt=this.mo().getEnumerator();yt.moveNext();)tr=yt.current(),tr.dg()}},currentCategoryMode:function(){return this.preferredCategoryMode(n.ig.util.cast(t.$hb.$type,this.kt()))},scaler:function(){return n.ig.util.cast(t.$ke.$type,this.kt())},yScaler:function(){return n.ig.util.cast(t.$ix.$type,this.ku())},bucketizer:function(){return this.k4().cn()},currentMode2Index:function(){return this.lz()},provideCollisionDetector:function(){return new t.mq},ci:function(){return!1},bz:function(){return!1},hr:function(n,i){var f=this.cl(),r,u;if(t.$fv.hr.call(this,n,i),!f){this.view().ax(i);return}if(this.view().ax(i),!this.bn(this.av())){for(r=this.series().getEnumerator();r.moveNext();)u=r.current(),u.visualSeriesLink().hr(n,i);this.cl(!1)}},exportVisualData:function(){var n=new t.td,r,u,i;for(n.viewport(this.jr()),n.type(this.getType().typeName()),n.name(this.name()),r=this.series().getEnumerator();r.moveNext();)u=r.current(),i=new t.gd,i.viewport(this.jr()),i.type(u.getType().typeName()),u.visualSeriesLink().view().ah(i),n.fragmentSeries().add(i);return this.go(n),this.view().ah(n),n},$type:new n.ig.Type("StackedSeriesBase",t.$fv.$type,[t.$kd.$type])},!0);n.ig.util.defType("HorizontalStackedSeriesBase:r7","StackedSeriesBase",{init:function(){t.$fu.init.call(this)},xAxis:function(n){return arguments.length===1?(this.g(t.$r7.xAxisProperty,n),n):this.c(t.$r7.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$r7.yAxisProperty,n),n):this.c(t.$r7.yAxisProperty)},getOffsetValue:function(){return this.ms().n(this.xAxis(),this.view().bw(),this.view().bv())},getCategoryWidth:function(){return this.xAxis().getCategorySize(this.view().bw(),this.view().bv())},kt:function(){return this.xAxis()},ku:function(){return this.yAxis()},lo:function(){return this.yAxis()!=null&&this.yAxis().updateRange()},hy:function(){var r=n.ig.util.cast(t.$bd.$type,this.seriesViewer()),i,u;if(r!=null)for(this.actualAreaFillOpacity(isNaN(this.areaFillOpacity())?r.l6().ef():this.areaFillOpacity()),i=this.mo().getEnumerator();i.moveNext();)u=i.current(),u.cp()},hh:function(i,r,u,f){t.$fu.hh.call(this,i,r,u,f);switch(r){case"XAxis":u!=f&&(this.gk(n.ig.util.cast(t.$hc.$type,u)),this.hl(n.ig.util.cast(t.$hc.$type,f)),this.k4().cn().f(this.resolution()),this.renderSeries(!1),this.gy());break;case"YAxis":u!=f&&(this.gk(n.ig.util.cast(t.$hc.$type,u)),this.hl(n.ig.util.cast(t.$hc.$type,f)),this.k4().cn().f(this.resolution()),this.lo(),this.renderSeries(!1),this.gy())}},$type:new n.ig.Type("HorizontalStackedSeriesBase",t.$fu.$type)},!0);n.ig.util.defType("StackedAreaSeries:r6","HorizontalStackedSeriesBase",{init:function(){t.$r7.init.call(this);this.y(t.$r6.$type)},onApplyTemplate:function(){t.$r7.onApplyTemplate.call(this);this.renderSeries(!1)},ad:function(n){return this.itemsSource()==null?null:n==this.xAxis()?new t.im(0,this.bb().count()-1):n==this.yAxis()?(this.nd(),new t.im(this.m4(),this.m3())):null},preferredCategoryMode:function(){return 0},$type:new n.ig.Type("StackedAreaSeries",t.$r7.$type)},!0);n.ig.util.defType("IStacked100Series:r4","Object",{$type:new n.ig.Type("IStacked100Series",null)},!0);n.ig.util.defType("Stacked100AreaSeries:aax","StackedAreaSeries",{init:function(){t.$r6.init.call(this);this.y(t.$aax.$type)},onApplyTemplate:function(){t.$r6.onApplyTemplate.call(this);this.renderSeries(!1)},nd:function(){var i,r,n,u;if(t.$r6.nd.call(this),this.bb()!=null){for(i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,n=0;n<this.bb().count();n++){if(u=Math.abs(this.mw()[n])+this.mv()[n],u==0){i=Math.min(i,0);r=Math.max(r,0);continue}i=Math.min(i,this.mw()[n]/u*100);r=Math.max(r,this.mv()[n]/u*100)}this.m4(i);this.m3(r)}},$type:new n.ig.Type("Stacked100AreaSeries",t.$r6.$type,[t.$r4.$type])},!0);n.ig.util.defType("VerticalStackedSeriesBase:sr","StackedSeriesBase",{init:function(){t.$fu.init.call(this)},xAxis:function(n){return arguments.length===1?(this.g(t.$sr.xAxisProperty,n),n):this.c(t.$sr.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$sr.yAxisProperty,n),n):this.c(t.$sr.yAxisProperty)},kv:function(){return this.yAxis()},getOffsetValue:function(){return this.ms().n(this.yAxis(),this.view().bw(),this.view().bv())},getCategoryWidth:function(){return this.yAxis().getCategorySize(this.view().bw(),this.view().bv())},isVertical:function(){return!0},kt:function(){return this.xAxis()},ku:function(){return this.yAxis()},lo:function(){return this.xAxis()!=null&&this.xAxis().updateRange()},hh:function(i,r,u,f){t.$fu.hh.call(this,i,r,u,f);switch(r){case"XAxis":u!=f&&(this.gk(n.ig.util.cast(t.$hc.$type,u)),this.hl(n.ig.util.cast(t.$hc.$type,f)),this.k4().cn().f(this.resolution()),this.renderSeries(!1),this.gy());break;case"YAxis":u!=f&&(this.gk(n.ig.util.cast(t.$hc.$type,u)),this.hl(n.ig.util.cast(t.$hc.$type,f)),this.k4().cn().f(this.resolution()),this.lo(),this.renderSeries(!1),this.gy())}},$type:new n.ig.Type("VerticalStackedSeriesBase",t.$fu.$type)},!0);n.ig.util.defType("StackedBarSeries:sq","VerticalStackedSeriesBase",{init:function(){t.$sr.init.call(this);this.y(t.$sq.$type)},onApplyTemplate:function(){t.$sr.onApplyTemplate.call(this);this.renderSeries(!1)},au:function(){return new t.st(this)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},hc:function(n){t.$sr.hc.call(this,n);this.nq(n)},radiusX:function(n){return arguments.length===1?(this.g(t.$sq.radiusXProperty,n),n):this.c(t.$sq.radiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$sq.radiusYProperty,n),n):this.c(t.$sq.radiusYProperty)},mn:function(){return this.nq()},preferredCategoryMode:function(){return 2},lz:function(){for(var u=0,f=this.seriesViewer().series().getEnumerator(),r,i;f.moveNext();){if(r=f.current(),r==this)return u;i=n.ig.util.cast(t.$ss.$type,r);i!=null&&i.yAxis()==this.yAxis()&&i.getPreferredCategoryMode()==2&&u++}return t.$os.b(!1,"CategorySeries.GetMode2Index failed to find series"),-1},m1:function(){var n=0,i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=this.view().bv(),u=new t.iu(i,r,this.xAxis().isInverted());return i.isEmpty()||r.isEmpty()||this.xAxis()==null||(n=this.xAxis().getScaledValue(this.xAxis().referenceValue(),u)),n},m2:function(){return this.xAxis()!=null?this.xAxis().referenceValue():0},ad:function(n){return this.itemsSource()==null?null:n==this.yAxis()?new t.im(0,this.bb().count()-1):n==this.xAxis()?(this.nd(),new t.im(this.m4(),this.m3())):null},scrollIntoView:function(n){var f=this.bb()!=null?this.bb().indexOf(n):-1,i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),c=this.view().bv(),e=new t.x(0,0,0,1,1),h=new t.iu(e,e,this.xAxis().isInverted()),l=new t.iu(e,e,this.yAxis().isInverted()),u,o,r,s;return f>=0&&i!=null&&c!=null&&(this.yAxis()!=null&&(u=this.yAxis().getScaledValue(f,l),u<i.top()+.1*i.height()&&(u=u+.4*i.height()),u>i.bottom()-.1*i.height()&&(u=u-.4*i.height()),i.y(u-.5*i.height())),this.xAxis()!=null&&this.mv()!=null&&f<this.mv().length&&(o=this.xAxis().getScaledValue(this.mv()[f],h),r=this.xAxis().getScaledValue(this.mw()[f],h),isNaN(o)||isNaN(r)||(s=Math.abs(r-o),i.width()<s?(i.width(s),i.x(Math.min(r,o))):(r<i.left()+.1*i.width()&&(r=r+.4*i.width()),r>i.right()-.1*i.width()&&(r=r-.4*i.width()),i.x(r-.5*i.width())))),this.syncLink().al(this.seriesViewer(),i)),f>=0},ct:function(n,t,i){var r=!0,u=i;return(!i.m()||t.isEmpty()||n.isEmpty()||this.yAxis()==null||this.yAxis().itemsSource()==null||this.xAxis()==null||this.bb()==null||this.xAxis().seriesViewer()==null||this.yAxis().seriesViewer()==null||this.xAxis().actualMinimumValue()==this.xAxis().actualMaximumValue())&&(u.cn().c=0,r=!1),r},gj:function(n){switch(n){case 4:case 1:case 0:this.k4().cn().f(this.resolution())}switch(n){case 4:this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!0);break;case 1:this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!0);break;case 0:this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!0);break;case 2:this.k4().cn().c>0&&this.renderSeries(!0);break;case 3:this.xAxis()==null||this.xAxis().updateRange()||this.renderSeries(!0)}},getItemIndex:function(n){var i=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():t.$x.empty(),r=this.view().bv(),u=-1,o;if(this.yAxis()!=null&&!i.isEmpty()&&!r.isEmpty()){var f=this.yAxis().getUnscaledValue2(r.top(),i,r,this.yAxis().categoryMode()),s=this.yAxis().getUnscaledValue2(r.bottom(),i,r,this.yAxis().categoryMode()),h=(n.__y-i.top())/i.height(),e=f+h*(s-f);this.yAxis().categoryMode()!=0&&(e-=.5);o=Math.round(e);u=o}return u},getItem:function(n){var t=this.getItemIndex(n);return t>=0&&this.bb()!=null&&t<this.bb().count()?this.bb().item(t):null},nh:function(){this.xAxis()!=null&&this.xAxis().updateRange1(!0);this.yAxis()!=null&&this.yAxis().updateRange1(!0)},m5:function(n){return this.getItemIndex(n)},mz:function(n,t,i,r){var u=!0,f;return(!r.m()||i.isEmpty()||t.isEmpty()||this.yAxis()==null||this.yAxis().itemsSource()==null||this.xAxis()==null||this.bb()==null||this.xAxis().seriesViewer()==null||this.yAxis().seriesViewer()==null)&&(u=!1),f=r,(n.valueColumn()==null||n.valueColumn().count()==0||f.cn().c<1)&&(u=!1),u},ne:function(i,r,u){var v=n.ig.util.cast(t.$sv.$type,i),o=n.ig.util.cast(t.$sp.$type,u),e,s,a,f,l;if(this.ct(u.bv(),u.bw(),u)&&v!=null&&o!=null){if(e=this.yAxis().fy(u.bw(),u.bv()),isNaN(e)||Number.isInfinity(e)){v.nx().c4().c(0);return}for(s=0,a=r.h.getEnumerator();a.moveNext();)if(f=a.current(),!Number.isInfinity(f[0])&&!isNaN(f[0])&&!Number.isInfinity(f[1])&&!Number.isInfinity(f[2])&&!isNaN(f[1])&&!isNaN(f[2])){var y=f[0]-.5*e,h=f[1],c=f[2];c=Math.max(c,-100);h=Math.min(h,u.bv().right()+100);l=o.c4().item(s);l.height(e);l.width(Math.abs(h-c));o.db(l,Math.min(h,c),y);s++}o.c4().c(s)}},hh:function(n,i,r,u){var f,e;t.$sr.hh.call(this,n,i,r,u);switch(i){case"RadiusX":case"RadiusY":for(f=this.mo().getEnumerator();f.moveNext();)e=f.current(),e.c7(),e.c8();this.renderSeries(!1);break;case"SyncLink":this.xAxis()!=null&&this.xAxis().updateRange();break;case"FastItemsSource":this.xAxis()==null||this.xAxis().updateRange()||this.nq().cn().f(this.resolution());this.renderSeries(!1);break;case"SeriesViewer":r!=null&&u==null&&(this.gk(this.xAxis()),this.gk(this.yAxis()));r==null&&u!=null&&(this.hl(this.xAxis()),this.hl(this.yAxis()));this.nq().cn().f(this.resolution());this.renderSeries(!1);this.xAxis()!=null&&this.xAxis().updateRange()}},getPreferredCategoryMode:function(){return this.preferredCategoryMode(this.yAxis())},currentCategoryMode:function(){return this.preferredCategoryMode(this.yAxis())},scaler:function(){return this.yAxis()},yScaler:function(){return this.xAxis()},$type:new n.ig.Type("StackedBarSeries",t.$sr.$type,[t.$kd.$type,t.$ss.$type])},!0);n.ig.util.defType("Stacked100BarSeries:aay","StackedBarSeries",{init:function(){t.$sq.init.call(this);this.y(t.$aay.$type)},onApplyTemplate:function(){t.$sq.onApplyTemplate.call(this);this.renderSeries(!1)},au:function(){return new t.aaz(this)},_nx:null,nx:function(n){return arguments.length===1?(this._nx=n,n):this._nx},hc:function(n){t.$sq.hc.call(this,n);this.nx(n)},mn:function(){return this.nx()},nd:function(){var i,r,n,u;if(t.$sq.nd.call(this),this.bb()!=null){for(i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,n=0;n<this.bb().count();n++){if(u=Math.abs(this.mw()[n])+this.mv()[n],u==0){i=Math.min(i,0);r=Math.max(r,0);continue}i=Math.min(i,this.mw()[n]/u*100);r=Math.max(r,this.mv()[n]/u*100)}this.m4(i);this.m3(r)}},$type:new n.ig.Type("Stacked100BarSeries",t.$sq.$type,[t.$r4.$type])},!0);n.ig.util.defType("StackedSeriesView:sh","CategorySeriesView",{_cw:null,cw:function(n){return arguments.length===1?(this._cw=n,n):this._cw},cx:null,cy:function(){return this.cx},cz:null,c0:function(){return this.cz},init:function(n){this.cx=new t.fo;this.cz=new t.fp;t.$ko.init.call(this,n);this.cw(n)},co:function(){return new t.si(this)},ao:function(){t.$ko.ao.call(this)},al:function(){t.$ko.al.call(this);for(var n=0;n<this.cw().mt().f().count();n++)this.cw().mt().f().__inner[n].view().al()},an:function(n,i){var r,u;for(t.$ko.an.call(this,n,i),r=this.cw().series().getEnumerator();r.moveNext();)u=r.current(),u.visualSeriesLink().view().an(n,i)},ab:function(){var e=!0,o=5,r=5,u=5,i=this.d(),f;n.ig.util.cast(t.$r6.$type,i)!==null||n.ig.util.cast(t.$r8.$type,i)!==null?(r=1,u=-3):n.ig.util.cast(t.$sj.$type,i)!==null||n.ig.util.cast(t.$sk.$type,i)!==null?(o=3,r=1,u=4,e=!1):n.ig.util.cast(t.$sl.$type,i)!==null&&(r=5,u=0);f=new t.b4;f.colorString("rgba(95,95,95,0.5)");i.shadowColor(f);i.shadowBlur(o);i.shadowOffsetX(r);i.shadowOffsetY(u);i.useSingleShadow(e)},$type:new n.ig.Type("StackedSeriesView",t.$ko.$type)},!0);n.ig.util.defType("StackedBarSeriesView:st","StackedSeriesView",{_c1:null,c1:function(n){return arguments.length===1?(this._c1=n,n):this._c1},init:function(n){t.$sh.init.call(this,n);this.c1(n)},co:function(){return new t.su(this)},$type:new n.ig.Type("StackedBarSeriesView",t.$sh.$type)},!0);n.ig.util.defType("Stacked100BarSeriesView:aaz","StackedBarSeriesView",{_c2:null,c2:function(n){return arguments.length===1?(this._c2=n,n):this._c2},init:function(n){t.$st.init.call(this,n);this.c2(n)},co:function(){return new t.aav(this)},$type:new n.ig.Type("Stacked100BarSeriesView",t.$st.$type)},!0);n.ig.util.defType("StackedColumnSeries:sl","HorizontalStackedSeriesBase",{init:function(){t.$r7.init.call(this);this.y(t.$sl.$type)},au:function(){return new t.sm(this)},_nq:null,nq:function(n){return arguments.length===1?(this._nq=n,n):this._nq},hc:function(n){t.$r7.hc.call(this,n);this.nq(n)},radiusX:function(n){return arguments.length===1?(this.g(t.$sl.radiusXProperty,n),n):this.c(t.$sl.radiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$sl.radiusYProperty,n),n):this.c(t.$sl.radiusYProperty)},mn:function(){return this.nq()},preferredCategoryMode:function(){return 2},ad:function(n){return this.itemsSource()==null?null:n==this.xAxis()?new t.im(0,this.bb().count()-1):n==this.yAxis()?(this.nd(),new t.im(this.m4(),this.m3())):null},ne:function(i,r,u){var a=n.ig.util.cast(t.$so.$type,i),o=n.ig.util.cast(t.$sp.$type,u),e,s,v,f,l;if(this.ct(u.bv(),u.bw(),u)&&a!=null&&o!=null&&a!=null){if(e=this.xAxis().fy(u.bw(),u.bv()),isNaN(e)||Number.isInfinity(e)){a.nx().c4().c(0);return}for(s=0,v=r.h.getEnumerator();v.moveNext();)if(f=v.current(),!Number.isInfinity(f[0])&&!isNaN(f[0])&&!Number.isInfinity(f[1])&&!Number.isInfinity(f[2])&&!isNaN(f[1])&&!isNaN(f[2])){var y=f[0]-.5*e,h=f[1],c=f[2];h=Math.max(h,-100);c=Math.min(c,u.bv().bottom()+100);l=o.c4().item(s);l.width(e);l.height(Math.abs(c-h));o.db(l,y,Math.min(c,h));s++}o.c4().c(s)}},hh:function(n,i,r,u){var f,e;t.$r7.hh.call(this,n,i,r,u);switch(i){case"RadiusX":case"RadiusY":for(f=this.mo().getEnumerator();f.moveNext();)e=f.current(),e.c7(),e.c8();this.renderSeries(!1);break;case"SyncLink":this.yAxis()!=null&&this.yAxis().updateRange();break;case"SeriesViewer":this.yAxis()!=null&&this.yAxis().updateRange()}},$type:new n.ig.Type("StackedColumnSeries",t.$r7.$type)},!0);n.ig.util.defType("Stacked100ColumnSeries:aa0","StackedColumnSeries",{init:function(){t.$sl.init.call(this);this.y(t.$aa0.$type)},onApplyTemplate:function(){t.$sl.onApplyTemplate.call(this);this.renderSeries(!1)},au:function(){return new t.aa1(this)},_nx:null,nx:function(n){return arguments.length===1?(this._nx=n,n):this._nx},hc:function(n){t.$sl.hc.call(this,n);this.nx(n)},mn:function(){return this.nx()},nd:function(){var i,r,n,u;if(t.$sl.nd.call(this),this.bb()!=null){for(i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,n=0;n<this.bb().count();n++){if(u=Math.abs(this.mw()[n])+this.mv()[n],u==0){i=Math.min(i,0);r=Math.max(r,0);continue}i=Math.min(i,this.mw()[n]/u*100);r=Math.max(r,this.mv()[n]/u*100)}this.m4(i);this.m3(r)}},$type:new n.ig.Type("Stacked100ColumnSeries",t.$sl.$type,[t.$r4.$type])},!0);n.ig.util.defType("StackedColumnSeriesView:sm","StackedSeriesView",{init:function(n){t.$sh.init.call(this,n)},co:function(){return new t.sn(this)},$type:new n.ig.Type("StackedColumnSeriesView",t.$sh.$type)},!0);n.ig.util.defType("Stacked100ColumnSeriesView:aa1","StackedColumnSeriesView",{_c1:null,c1:function(n){return arguments.length===1?(this._c1=n,n):this._c1},init:function(n){t.$sm.init.call(this,n);this.c1(n)},co:function(){return new t.aaw(this)},$type:new n.ig.Type("Stacked100ColumnSeriesView",t.$sm.$type)},!0);n.ig.util.defType("StackedLineSeries:sj","HorizontalStackedSeriesBase",{init:function(){t.$r7.init.call(this);this.y(t.$sj.$type)},onApplyTemplate:function(){t.$r7.onApplyTemplate.call(this);this.renderSeries(!1)},ad:function(n){return this.itemsSource()==null?null:n==this.xAxis()?new t.im(0,this.bb().count()-1):n==this.yAxis()?(this.nd(),new t.im(this.m4(),this.m3())):null},preferredCategoryMode:function(){return 0},$type:new n.ig.Type("StackedLineSeries",t.$r7.$type)},!0);n.ig.util.defType("Stacked100LineSeries:aa2","StackedLineSeries",{init:function(){t.$sj.init.call(this);this.y(t.$aa2.$type)},onApplyTemplate:function(){t.$sj.onApplyTemplate.call(this);this.renderSeries(!1)},nd:function(){var i,r,n,u;if(t.$sj.nd.call(this),this.bb()!=null){for(i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,n=0;n<this.bb().count();n++){if(u=Math.abs(this.mw()[n])+this.mv()[n],u==0){i=Math.min(i,0);r=Math.max(r,0);continue}i=Math.min(i,this.mw()[n]/u*100);r=Math.max(r,this.mv()[n]/u*100)}this.m4(i);this.m3(r)}},$type:new n.ig.Type("Stacked100LineSeries",t.$sj.$type,[t.$r4.$type])},!0);n.ig.util.defType("StackedSplineAreaSeries:r8","HorizontalStackedSeriesBase",{init:function(){t.$r7.init.call(this);this.y(t.$r8.$type)},onApplyTemplate:function(){t.$r7.onApplyTemplate.call(this);this.renderSeries(!1)},ad:function(n){return this.itemsSource()==null?null:n==this.xAxis()?new t.im(0,this.bb().count()-1):n==this.yAxis()?(this.nd(),new t.im(this.m4(),this.m3())):null},preferredCategoryMode:function(){return 0},$type:new n.ig.Type("StackedSplineAreaSeries",t.$r7.$type)},!0);n.ig.util.defType("Stacked100SplineAreaSeries:aa3","StackedSplineAreaSeries",{init:function(){t.$r8.init.call(this);this.y(t.$aa3.$type)},onApplyTemplate:function(){t.$r8.onApplyTemplate.call(this);this.renderSeries(!1)},nd:function(){var i,r,n,u;if(t.$r8.nd.call(this),this.bb()!=null){for(i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,n=0;n<this.bb().count();n++){if(u=Math.abs(this.mw()[n])+this.mv()[n],u==0){i=Math.min(i,0);r=Math.max(r,0);continue}i=Math.min(i,this.mw()[n]/u*100);r=Math.max(r,this.mv()[n]/u*100)}this.m4(i);this.m3(r)}},$type:new n.ig.Type("Stacked100SplineAreaSeries",t.$r8.$type,[t.$r4.$type])},!0);n.ig.util.defType("StackedSplineSeries:sk","HorizontalStackedSeriesBase",{init:function(){t.$r7.init.call(this);this.y(t.$sk.$type)},onApplyTemplate:function(){t.$r7.onApplyTemplate.call(this);this.renderSeries(!1)},ad:function(n){return this.itemsSource()==null?null:n==this.xAxis()?new t.im(0,this.bb().count()-1):n==this.yAxis()?(this.nd(),new t.im(this.m4(),this.m3())):null},preferredCategoryMode:function(){return 0},$type:new n.ig.Type("StackedSplineSeries",t.$r7.$type)},!0);n.ig.util.defType("Stacked100SplineSeries:aa4","StackedSplineSeries",{init:function(){t.$sk.init.call(this);this.y(t.$aa4.$type)},onApplyTemplate:function(){t.$sk.onApplyTemplate.call(this);this.renderSeries(!1)},nd:function(){var i,r,n,u;if(t.$sk.nd.call(this),this.bb()!=null){for(i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,n=0;n<this.bb().count();n++){if(u=Math.abs(this.mw()[n])+this.mv()[n],u==0){i=Math.min(i,0);r=Math.max(r,0);continue}i=Math.min(i,this.mw()[n]/u*100);r=Math.max(r,this.mv()[n]/u*100)}this.m4(i);this.m3(r)}},$type:new n.ig.Type("Stacked100SplineSeries",t.$sk.$type,[t.$r4.$type])},!0);n.ig.util.defType("StackedFragmentSeries:r5","DependencyObject",{init:function(){var i=this;t.$an.init.call(this);this.y(new t.bh(Number,0));this.z(new t.bh(Number,0));this.x(new t.bh(n.ig.Array.prototype.$type,0));this.propertyUpdated=n.ig.Delegate.prototype.combine(this.propertyUpdated,function(n,t){i.cn(n,t.propertyName(),t.oldValue(),t.newValue())})},brush:function(n){return arguments.length===1?(this.g(t.$r5.brushProperty,n),n):this.c(t.$r5.brushProperty)},actualBrush:function(n){return arguments.length===1?(this.g(t.$r5.actualBrushProperty,n),n):this.c(t.$r5.actualBrushProperty)},dashArray:function(n){return arguments.length===1?(this.g(t.$r5.dashArrayProperty,n),n):this.c(t.$r5.dashArrayProperty)},actualDashArray:function(n){return arguments.length===1?(this.g(t.$r5.actualDashArrayProperty,n),n):this.c(t.$r5.actualDashArrayProperty)},dashCap:function(n){return arguments.length===1?(this.g(t.$r5.dashCapProperty,n),n):this.c(t.$r5.dashCapProperty)},actualDashCap:function(n){return arguments.length===1?(this.g(t.$r5.actualDashCapProperty,n),n):this.c(t.$r5.actualDashCapProperty)},isDropShadowEnabled:function(n){return arguments.length===1?(this.g(t.$r5.isDropShadowEnabledProperty,n),n):this.c(t.$r5.isDropShadowEnabledProperty)},actualIsDropShadowEnabled:function(n){return arguments.length===1?(this.g(t.$r5.actualIsDropShadowEnabledProperty,n),n):this.c(t.$r5.actualIsDropShadowEnabledProperty)},shadowBlur:function(n){return arguments.length===1?(this.g(t.$r5.shadowBlurProperty,n),n):this.c(t.$r5.shadowBlurProperty)},actualShadowBlur:function(n){return arguments.length===1?(this.g(t.$r5.actualShadowBlurProperty,n),n):this.c(t.$r5.actualShadowBlurProperty)},shadowColor:function(n){return arguments.length===1?(this.g(t.$r5.shadowColorProperty,n),n):this.c(t.$r5.shadowColorProperty)},actualShadowColor:function(n){return arguments.length===1?(this.g(t.$r5.actualShadowColorProperty,n),n):this.c(t.$r5.actualShadowColorProperty)},useSingleShadow:function(n){return arguments.length===1?(this.g(t.$r5.useSingleShadowProperty,n),n):this.c(t.$r5.useSingleShadowProperty)},actualUseSingleShadow:function(n){return arguments.length===1?(this.g(t.$r5.actualUseSingleShadowProperty,n),n):this.c(t.$r5.actualUseSingleShadowProperty)},shadowOffsetX:function(n){return arguments.length===1?(this.g(t.$r5.shadowOffsetXProperty,n),n):this.c(t.$r5.shadowOffsetXProperty)},actualShadowOffsetX:function(n){return arguments.length===1?(this.g(t.$r5.actualShadowOffsetXProperty,n),n):this.c(t.$r5.actualShadowOffsetXProperty)},shadowOffsetY:function(n){return arguments.length===1?(this.g(t.$r5.shadowOffsetYProperty,n),n):this.c(t.$r5.shadowOffsetYProperty)},actualShadowOffsetY:function(n){return arguments.length===1?(this.g(t.$r5.actualShadowOffsetYProperty,n),n):this.c(t.$r5.actualShadowOffsetYProperty)},endCap:function(n){return arguments.length===1?(this.g(t.$r5.endCapProperty,n),n):this.c(t.$r5.endCapProperty)},actualEndCap:function(n){return arguments.length===1?(this.g(t.$r5.actualEndCapProperty,n),n):this.c(t.$r5.actualEndCapProperty)},isHitTestVisible:function(n){return arguments.length===1?(this.g(t.$r5.isHitTestVisibleProperty,n),n):this.c(t.$r5.isHitTestVisibleProperty)},actualIsHitTestVisible:function(n){return arguments.length===1?(this.g(t.$r5.actualIsHitTestVisibleProperty,n),n):this.c(t.$r5.actualIsHitTestVisibleProperty)},legendItemBadgeTemplate:function(n){return arguments.length===1?(this.g(t.$r5.legendItemBadgeTemplateProperty,n),n):this.c(t.$r5.legendItemBadgeTemplateProperty)},actualLegendItemBadgeTemplate:function(n){return arguments.length===1?(this.g(t.$r5.actualLegendItemBadgeTemplateProperty,n),n):this.c(t.$r5.actualLegendItemBadgeTemplateProperty)},legendItemTemplate:function(n){return arguments.length===1?(this.g(t.$r5.legendItemTemplateProperty,n),n):this.c(t.$r5.legendItemTemplateProperty)},actualLegendItemTemplate:function(n){return arguments.length===1?(this.g(t.$r5.actualLegendItemTemplateProperty,n),n):this.c(t.$r5.actualLegendItemTemplateProperty)},legendItemVisibility:function(n){return arguments.length===1?(this.g(t.$r5.legendItemVisibilityProperty,n),n):this.c(t.$r5.legendItemVisibilityProperty)},actualLegendItemVisibility:function(n){return arguments.length===1?(this.g(t.$r5.actualLegendItemVisibilityProperty,n),n):this.c(t.$r5.actualLegendItemVisibilityProperty)},markerBrush:function(n){return arguments.length===1?(this.g(t.$r5.markerBrushProperty,n),n):this.c(t.$r5.markerBrushProperty)},actualMarkerBrush:function(n){return arguments.length===1?(this.g(t.$r5.actualMarkerBrushProperty,n),n):this.c(t.$r5.actualMarkerBrushProperty)},markerOutline:function(n){return arguments.length===1?(this.g(t.$r5.markerOutlineProperty,n),n):this.c(t.$r5.markerOutlineProperty)},actualMarkerOutline:function(n){return arguments.length===1?(this.g(t.$r5.actualMarkerOutlineProperty,n),n):this.c(t.$r5.actualMarkerOutlineProperty)},markerStyle:function(n){return arguments.length===1?(this.g(t.$r5.markerStyleProperty,n),n):this.c(t.$r5.markerStyleProperty)},actualMarkerStyle:function(n){return arguments.length===1?(this.g(t.$r5.actualMarkerStyleProperty,n),n):this.c(t.$r5.actualMarkerStyleProperty)},markerTemplate:function(n){return arguments.length===1?(this.g(t.$r5.markerTemplateProperty,n),n):this.c(t.$r5.markerTemplateProperty)},actualMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$r5.actualMarkerTemplateProperty,n),n):this.c(t.$r5.actualMarkerTemplateProperty)},markerType:function(n){return arguments.length===1?(this.g(t.$r5.markerTypeProperty,n),n):this.c(t.$r5.markerTypeProperty)},actualMarkerType:function(n){return arguments.length===1?(this.g(t.$r5.actualMarkerTypeProperty,n),n):this.c(t.$r5.actualMarkerTypeProperty)},name:function(n){return arguments.length===1?(this.g(t.$r5.nameProperty,n),n):this.c(t.$r5.nameProperty)},opacity:function(n){return arguments.length===1?(this.g(t.$r5.opacityProperty,n),n):this.c(t.$r5.opacityProperty)},actualOpacity:function(n){return arguments.length===1?(this.g(t.$r5.actualOpacityProperty,n),n):this.c(t.$r5.actualOpacityProperty)},opacityMask:function(n){return arguments.length===1?(this.g(t.$r5.opacityMaskProperty,n),n):this.c(t.$r5.opacityMaskProperty)},actualOpacityMask:function(n){return arguments.length===1?(this.g(t.$r5.actualOpacityMaskProperty,n),n):this.c(t.$r5.actualOpacityMaskProperty)},outline:function(n){return arguments.length===1?(this.g(t.$r5.outlineProperty,n),n):this.c(t.$r5.outlineProperty)},actualOutline:function(n){return arguments.length===1?(this.g(t.$r5.actualOutlineProperty,n),n):this.c(t.$r5.actualOutlineProperty)},areaFillOpacity:function(n){return arguments.length===1?(this.g(t.$r5.areaFillOpacityProperty,n),n):this.c(t.$r5.areaFillOpacityProperty)},actualAreaFillOpacity:function(n){return arguments.length===1?(this.g(t.$r5.actualAreaFillOpacityProperty,n),n):this.c(t.$r5.actualAreaFillOpacityProperty)},radiusX:function(n){return arguments.length===1?(this.g(t.$r5.radiusXProperty,n),n):this.c(t.$r5.radiusXProperty)},actualRadiusX:function(n){return arguments.length===1?(this.g(t.$r5.actualRadiusXProperty,n),n):this.c(t.$r5.actualRadiusXProperty)},radiusY:function(n){return arguments.length===1?(this.g(t.$r5.radiusYProperty,n),n):this.c(t.$r5.radiusYProperty)},actualRadiusY:function(n){return arguments.length===1?(this.g(t.$r5.actualRadiusYProperty,n),n):this.c(t.$r5.actualRadiusYProperty)},startCap:function(n){return arguments.length===1?(this.g(t.$r5.startCapProperty,n),n):this.c(t.$r5.startCapProperty)},actualStartCap:function(n){return arguments.length===1?(this.g(t.$r5.actualStartCapProperty,n),n):this.c(t.$r5.actualStartCapProperty)},thickness:function(n){return arguments.length===1?(this.g(t.$r5.thicknessProperty,n),n):this.c(t.$r5.thicknessProperty)},actualThickness:function(n){return arguments.length===1?(this.g(t.$r5.actualThicknessProperty,n),n):this.c(t.$r5.actualThicknessProperty)},title:function(n){return arguments.length===1?(this.g(t.$r5.titleProperty,n),n):this.c(t.$r5.titleProperty)},toolTip:function(n){return arguments.length===1?(this.g(t.$r5.toolTipProperty,n),n):this.c(t.$r5.toolTipProperty)},actualToolTip:function(n){return arguments.length===1?(this.g(t.$r5.actualToolTipProperty,n),n):this.c(t.$r5.actualToolTipProperty)},useLightweightMarkers:function(n){return arguments.length===1?(this.g(t.$r5.useLightweightMarkersProperty,n),n):this.c(t.$r5.useLightweightMarkersProperty)},actualUseLightweightMarkers:function(n){return arguments.length===1?(this.g(t.$r5.actualUseLightweightMarkersProperty,n),n):this.c(t.$r5.actualUseLightweightMarkersProperty)},valueMemberPath:function(n){return arguments.length===1?(this.g(t.$r5.valueMemberPathProperty,n),n):this.c(t.$r5.valueMemberPathProperty)},visibility:function(n){return arguments.length===1?(this.g(t.$r5.visibilityProperty,n),n):this.c(t.$r5.visibilityProperty)},actualVisibility:function(n){return arguments.length===1?(this.g(t.$r5.actualVisibilityProperty,n),n):this.c(t.$r5.actualVisibilityProperty)},_parentSeries:null,parentSeries:function(n){return arguments.length===1?(this._parentSeries=n,n):this._parentSeries},_aq:0,aq:function(n){return arguments.length===1?(this._aq=n,n):this._aq},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_visualSeriesLink:null,visualSeriesLink:function(n){return arguments.length===1?(this._visualSeriesLink=n,n):this._visualSeriesLink},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_u:!1,u:function(n){return arguments.length===1?(this._u=n,n):this._u},di:function(){this.parentSeries()!=null&&(this.actualVisibility(this.parentSeries().__visibility!=0?1:this.visibility()),this.visualSeriesLink()!=null&&(this.visualSeriesLink().__visibility=this.actualVisibility()))},c2:function(){this.parentSeries()!=null&&(this.actualMarkerTemplate(this.markerTemplate()!=null?this.markerTemplate():this.parentSeries().markerTemplate()),this.visualSeriesLink()!=null&&this.visualSeriesLink().markerTemplate(this.actualMarkerTemplate()))},c3:function(){if(this.parentSeries()!=null){var n=this.markerType()==0?1:this.markerType();this.actualMarkerType(this.markerType()==0?this.parentSeries().markerType():n);this.visualSeriesLink()!=null&&this.visualSeriesLink().markerType(this.actualMarkerType())}},cq:function(){this.parentSeries()!=null&&(this.actualBrush(this.brush()!=null?this.brush():this.parentSeries().brush()),this.visualSeriesLink()!=null&&this.visualSeriesLink().brush(this.actualBrush()))},cr:function(){this.parentSeries()!=null&&(this.actualDashArray(this.dashArray()!=null?this.dashArray():this.parentSeries().dashArray()),this.visualSeriesLink()!=null&&this.visualSeriesLink().dashArray(this.actualDashArray()))},cs:function(){this.parentSeries()!=null&&(this.actualDashCap(this.dashCap()),this.visualSeriesLink()!=null&&this.visualSeriesLink().dashCap(this.actualDashCap()))},cu:function(){this.parentSeries()!=null&&(this.isDropShadowEnabled()==null?this.actualIsDropShadowEnabled(this.parentSeries().isDropShadowEnabled()):this.actualIsDropShadowEnabled(this.isDropShadowEnabled()),this.visualSeriesLink()!=null&&this.visualSeriesLink().isDropShadowEnabled(this.actualIsDropShadowEnabled()))},c9:function(){this.parentSeries()!=null&&(this.actualShadowBlur(isNaN(this.shadowBlur())?this.parentSeries().shadowBlur():this.shadowBlur()),this.visualSeriesLink()==null||isNaN(this.actualShadowBlur())||this.visualSeriesLink().shadowBlur(this.actualShadowBlur()))},da:function(){this.parentSeries()!=null&&(this.actualShadowColor(this.shadowColor()!=null?this.shadowColor():this.parentSeries().shadowColor()),this.visualSeriesLink()!=null&&this.actualShadowColor()!=null&&this.visualSeriesLink().shadowColor(this.actualShadowColor()))},dh:function(){this.parentSeries()!=null&&(this.useSingleShadow()==null?this.actualUseSingleShadow(this.parentSeries().useSingleShadow()):this.actualUseSingleShadow(this.useSingleShadow()),this.visualSeriesLink()!=null&&this.visualSeriesLink().useSingleShadow(this.actualUseSingleShadow()))},db:function(){this.parentSeries()!=null&&(this.actualShadowOffsetX(isNaN(this.shadowOffsetX())?this.parentSeries().shadowOffsetX():this.shadowOffsetX()),this.visualSeriesLink()==null||isNaN(this.actualShadowOffsetX())||this.visualSeriesLink().shadowOffsetX(this.actualShadowOffsetX()))},dc:function(){this.parentSeries()!=null&&(this.actualShadowOffsetY(isNaN(this.shadowOffsetY())?this.parentSeries().shadowOffsetY():this.shadowOffsetY()),this.visualSeriesLink()==null||isNaN(this.actualShadowOffsetY())||this.visualSeriesLink().shadowOffsetY(this.actualShadowOffsetY()))},ct:function(){this.parentSeries()!=null&&(this.actualEndCap(this.endCap()),this.visualSeriesLink()!=null&&this.visualSeriesLink().endCap(this.actualEndCap()))},cv:function(){this.parentSeries()!=null&&this.actualIsHitTestVisible(this.isHitTestVisible())},cw:function(){this.parentSeries()!=null&&(this.actualLegendItemBadgeTemplate(this.legendItemBadgeTemplate()!=null?this.legendItemBadgeTemplate():this.parentSeries().legendItemBadgeTemplate()),this.visualSeriesLink()!=null&&(this.actualLegendItemBadgeTemplate()!=null?this.visualSeriesLink().legendItemBadgeTemplate(this.actualLegendItemBadgeTemplate()):this.visualSeriesLink().legendItemBadgeTemplate(null)))},cx:function(){this.parentSeries()!=null&&(this.actualLegendItemTemplate(this.legendItemTemplate()!=null?this.legendItemTemplate():this.parentSeries().legendItemTemplate()),this.visualSeriesLink()!=null&&(this.actualLegendItemTemplate()!=null?this.visualSeriesLink().legendItemTemplate(this.actualLegendItemTemplate()):this.visualSeriesLink().legendItemTemplate(null)))},cy:function(){this.parentSeries()!=null&&(this.actualLegendItemVisibility(this.parentSeries().legendItemVisibility()!=0?1:this.legendItemVisibility()),this.visualSeriesLink()!=null&&this.visualSeriesLink().legendItemVisibility(this.actualLegendItemVisibility()))},cz:function(){this.parentSeries()!=null&&(this.actualMarkerBrush(this.markerBrush()!=null?this.markerBrush():this.parentSeries().markerBrush()),this.visualSeriesLink()!=null&&this.visualSeriesLink().markerBrush(this.actualMarkerBrush()))},c0:function(){this.parentSeries()!=null&&(this.actualMarkerOutline(this.markerOutline()!=null?this.markerOutline():this.parentSeries().markerOutline()),this.visualSeriesLink()!=null&&this.visualSeriesLink().markerOutline(this.actualMarkerOutline()))},c1:function(){this.parentSeries()!=null&&(this.actualMarkerStyle(this.markerStyle()!=null?this.markerStyle():this.parentSeries().markerStyle()),this.visualSeriesLink()!=null&&(this.actualMarkerStyle()!=null?this.visualSeriesLink().markerStyle(this.actualMarkerStyle()):this.visualSeriesLink().markerStyle(null)))},c4:function(){this.parentSeries()!=null&&(this.actualOpacity(isNaN(this.opacity())?this.parentSeries().__opacity:this.opacity()),this.visualSeriesLink()!=null&&(this.visualSeriesLink().__opacity=this.actualOpacity()))},c5:function(){},c6:function(){this.parentSeries()!=null&&(this.actualOutline(this.outline()!=null?this.outline():this.parentSeries().outline()),this.visualSeriesLink()!=null&&this.visualSeriesLink().outline(this.actualOutline()))},cp:function(){if(this.parentSeries()!=null){var i=NaN;n.ig.util.cast(t.$r6.$type,this.parentSeries())!==null&&(i=n.ig.util.cast(t.$r6.$type,this.parentSeries()).actualAreaFillOpacity());n.ig.util.cast(t.$r8.$type,this.parentSeries())!==null&&(i=n.ig.util.cast(t.$r8.$type,this.parentSeries()).actualAreaFillOpacity());this.actualAreaFillOpacity(isNaN(this.areaFillOpacity())?i:this.areaFillOpacity());this.visualSeriesLink()!=null&&(n.ig.util.cast(t.$r9.$type,this.visualSeriesLink())!==null&&this.visualSeriesLink().areaFillOpacity(this.actualAreaFillOpacity()),n.ig.util.cast(t.$sc.$type,this.visualSeriesLink())!==null&&this.visualSeriesLink().areaFillOpacity(this.actualAreaFillOpacity()))}},c7:function(){if(this.parentSeries()!=null){var i=NaN;n.ig.util.cast(t.$sl.$type,this.parentSeries())!==null&&(i=n.ig.util.cast(t.$sl.$type,this.parentSeries()).radiusX());n.ig.util.cast(t.$sq.$type,this.parentSeries())!==null&&(i=n.ig.util.cast(t.$sq.$type,this.parentSeries()).radiusX());this.actualRadiusX(isNaN(i)?this.radiusX():i);this.visualSeriesLink()!=null&&(n.ig.util.cast(t.$so.$type,this.visualSeriesLink())!==null&&this.visualSeriesLink().radiusX(this.actualRadiusX()),n.ig.util.cast(t.$sv.$type,this.visualSeriesLink())!==null&&this.visualSeriesLink().radiusX(this.actualRadiusX()))}},c8:function(){if(this.parentSeries()!=null){var i=NaN;n.ig.util.cast(t.$sl.$type,this.parentSeries())!==null&&(i=n.ig.util.cast(t.$sl.$type,this.parentSeries()).radiusY());n.ig.util.cast(t.$sq.$type,this.parentSeries())!==null&&(i=n.ig.util.cast(t.$sq.$type,this.parentSeries()).radiusY());this.actualRadiusY(isNaN(i)?this.radiusY():i);this.visualSeriesLink()!=null&&(n.ig.util.cast(t.$so.$type,this.visualSeriesLink())!==null&&this.visualSeriesLink().radiusY(this.actualRadiusY()),n.ig.util.cast(t.$sv.$type,this.visualSeriesLink())!==null&&this.visualSeriesLink().radiusY(this.actualRadiusY()))}},dd:function(){this.parentSeries()!=null&&(this.actualStartCap(this.startCap()),this.visualSeriesLink()!=null&&this.visualSeriesLink().startCap(this.actualStartCap()))},de:function(){this.parentSeries()!=null&&(this.actualThickness(isNaN(this.thickness())?this.parentSeries().thickness():this.thickness()),this.visualSeriesLink()!=null&&this.visualSeriesLink().thickness(this.actualThickness()))},df:function(){this.parentSeries()!=null&&this.visualSeriesLink()!=null&&this.visualSeriesLink().toolTip(this.toolTip())},dg:function(){this.parentSeries()!=null&&(this.actualUseLightweightMarkers(this.useLightweightMarkers()),this.visualSeriesLink()!=null&&this.visualSeriesLink().useLightweightMarkers(this.actualUseLightweightMarkers()))},propertyChanged:null,propertyUpdated:null,co:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.ba(n));this.propertyUpdated!=null&&this.propertyUpdated(this,new t.hj(n,i,r))},cn:function(n,t,i,r){if(this.parentSeries()!=null){switch(t){case"Title":if(this.parentSeries()==null||this.visualSeriesLink()==null)return;this.visualSeriesLink().title(r);break;case"Visibility":this.di();break;case"Brush":this.cq();break;case"DashArray":this.cr();break;case"DashCap":this.cs();break;case"IsDropShadowEnabled":this.cu();break;case"ShadowBlur":this.c9();break;case"ShadowColor":this.da();break;case"UseSingleShadow":this.dh();break;case"ShadowOffsetX":this.db();break;case"ShadowOffsetY":this.dc();break;case"EndCap":this.ct();break;case"IsHitTestVisible":this.cv();break;case"MarkerTemplate":this.c2();break;case"MarkerType":this.c3();break;case"LegendItemBadgeTemplate":this.cw();break;case"LegendItemTemplate":this.cx();break;case"LegendItemVisibility":this.cy();break;case"MarkerBrush":this.cz();break;case"MarkerOutline":this.c0();break;case"MarkerStyle":this.c1();break;case"Opacity":this.c4();break;case"OpacityMask":this.c5();break;case"Outline":this.c6();break;case"AreaFillOpacity":this.cp();break;case"RadiusX":this.c7();break;case"RadiusY":this.c8();break;case"StartCap":this.dd();break;case"Thickness":this.de();break;case"ToolTip":this.df();break;case"UseLightweightMarkers":this.dg()}this.parentSeries().renderSeries(!1)}},$type:new n.ig.Type("StackedFragmentSeries",t.$an.$type,[t.$a8.$type])},!0);n.ig.util.defType("StackedSeriesCollection:sg","ObservableCollection$1",{init:function(){t.$e4.init.call(this,t.$r5.$type)},collectionResetting:null,h:function(){this.collectionResetting!=null&&this.collectionResetting(this,null);t.$e4.h.call(this)},$type:new n.ig.Type("StackedSeriesCollection",t.$e4.$type.specialize(t.$r5.$type))},!0);n.ig.util.defType("StackedSeriesFramePreparer:ta","CategoryFramePreparer",{init:function(n,i){if(n>0){switch(n){case 1:this.init1.apply(this,arguments)}return}t.$lw.init.call(this,i)},init1:function(n,i,r,u,f,e){t.$lw.init1.call(this,1,i,r,u,f,e)},h:function(){var i=new t.s1,r,u;return n.ig.util.cast(t.$sl.$type,this.f())!==null||n.ig.util.cast(t.$sq.$type,this.f())!==null?(r=n.ig.util.cast(t.$fu.$type,this.f()),r.mo().count()>0&&i.f(r.mo().__inner[0].n()),i):(u=this.x().valueColumn(),i.f(u),i)},p:function(i,r,u,f){for(var e,k,d,o,it,h,s=this,a=0,v=!1,y,p=i.d()!=null,g=s.f().provideCollisionDetector(),nt=i.f(),l=new t.iu(i.l(),i.k(),i.b().isInverted()),w=new t.iu(i.l(),i.k(),i.c().isInverted()),tt=i.b().getUnscaledValue(2,l)-i.b().getUnscaledValue(1,l),rt=i.l(),ut=i.k(),b=n.ig.util.cast(t.$hl.$type,i.c())!==null&&n.ig.util.cast(t.$hl.$type,i.c()).fy(),c=i.i();c<=i.j();++c)e=i.d()==null?s.e().getBucket(c):function(){var n=s.j(i,c,r,tt,v,y,u);return c=n.currentIndex,v=n.isCluster,y=n.endBucket,n.ret}(),k=!b||b&&e[1]>0,d=e[0],isNaN(e[0])||(s.u(i,e,u,p,l,w),i.a().h.add(e),o=c*i.h(),it=o,i.d()!=null&&i.d().sortedIndices()!=null&&o>=0&&o<i.d().sortedIndices().count()&&(o=i.d().sortedIndices().__inner[o]),h=e,nt&&(h=new Array(e.length),h[0]=d,s.v(r,o,!0,i.e()),h[1]=r.d(),h[2]=r.e(),s.u(i,h,u,p,l,w)),f&&k&&s.l(i.a(),h,g,Math.min(o,r.a()-1),a,i.a().h.count()-1)&&++a);return a},l:function(i,r,u,f,e,o){var s=r[0],h=r[1],c;return(n.ig.util.cast(t.$ss.$type,this.c())!==null&&(h=r[0],s=r[1]),c=new t.x(0,s-5,h-5,11,11),!isNaN(s)&&!isNaN(h)&&!Number.isInfinity(s)&&!Number.isInfinity(h)&&u.tryAdd(c))?(i.p.add({__x:s,__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),this.c().updateMarkerTemplate(e,f,o),!0):!1},$type:new n.ig.Type("StackedSeriesFramePreparer",t.$lw.$type)},!0);n.ig.util.defType("StackedSeriesManager:sf","Object",{init:function(i){var r=this;(n.ig.$op.init.call(this),i!=null)&&(this.b(i),this.f(new t.e4(t.$kc.$type,0)),this.c(new t.sg),this.e(new t.e4(t.$kc.$type,0)),this.d(new t.e4(t.$kc.$type,0)),this.i(this.b().mu().cy()),this.j(this.b().mu().c0()),this.c().collectionChanged=n.ig.Delegate.prototype.combine(this.c().collectionChanged,function(n,t){var i,u,f,e,o,s;if(t.oldItems()!=null)for(i=t.oldItems().getEnumerator();i.moveNext();)u=i.current(),r.f().contains(u.visualSeriesLink())&&r.f().remove(u.visualSeriesLink());if(t.newItems()!=null)for(f=t.newStartingIndex(),e=t.newItems().getEnumerator();e.moveNext();)o=e.current(),s=r.a(o),r.f().insert(f,s),f++}),this.f().collectionChanged=n.ig.Delegate.prototype.combine(this.f().collectionChanged,function(n,t){var f,i,e,u;if(t.oldItems()!=null)for(f=t.oldItems().getEnumerator();f.moveNext();)i=f.current(),i.gh(!0,i.view()),i.seriesViewer(null),i.syncLink(null),i.itemsSource(null),i.legend(null),r.j()!=null&&r.j().y().contains(i)&&r.j().y().remove(i),r.b().seriesViewer()!=null&&r.b().seriesViewer().removeSeries(i);if(t.newItems()!=null)for(e=t.newItems().getEnumerator();e.moveNext();)u=e.current(),u.seriesViewer(r.b().seriesViewer()),u.syncLink(r.b().syncLink()),r.j().y().contains(u)||r.j().y().add(u),r.b().seriesViewer()!=null&&r.b().seriesViewer().attachSeries(u);r.g()}))},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},a:function(i){var r,u,f,e,o,s;return n.ig.util.cast(t.$sj.$type,this.b())!==null?(r=new t.r1,r.parentSeries(this.b()),i.visualSeriesLink(r),r.logicalSeriesLink(i),this.h(r,i),r):n.ig.util.cast(t.$sl.$type,this.b())!==null?(u=new t.so,u.parentSeries(this.b()),i.visualSeriesLink(u),u.logicalSeriesLink(i),this.h(u,i),u):n.ig.util.cast(t.$sq.$type,this.b())!==null?(f=new t.sv,f.parentSeries(n.ig.util.cast(t.$sq.$type,this.b())),i.visualSeriesLink(f),f.logicalSeriesLink(i),this.h(f,i),f):n.ig.util.cast(t.$r6.$type,this.b())!==null?(e=new t.r9,e.parentSeries(this.b()),i.visualSeriesLink(e),e.logicalSeriesLink(i),this.h(e,i),e):n.ig.util.cast(t.$sk.$type,this.b())!==null?(o=new t.sw,o.parentSeries(this.b()),i.visualSeriesLink(o),o.logicalSeriesLink(i),this.h(o,i),o):n.ig.util.cast(t.$r8.$type,this.b())!==null?(s=new t.sc,s.parentSeries(this.b()),i.visualSeriesLink(s),s.logicalSeriesLink(i),this.h(s,i),s):null},h:function(i,r){var e,o,u,f;i.brush(r.actualBrush());i.dashArray(r.actualDashArray());i.dashCap(r.actualDashCap());i.endCap(r.actualEndCap());i.itemsSource(this.b().itemsSource());i.legend(this.b().actualLegend());i.legendItemVisibility(r.actualLegendItemVisibility());i.markerBrush(r.actualMarkerBrush());i.markerOutline(r.actualMarkerOutline());i.markerStyle(r.actualMarkerStyle());i.markerTemplate(r.actualMarkerTemplate());i.markerType(r.actualMarkerType());i.miterLimit(this.b().miterLimit());i.__opacity=r.opacity();i.outline(r.actualOutline());i.resolution(this.b().resolution());i.startCap(r.actualStartCap());i.thickness(r.actualThickness());i.title(r.title());i.useLightweightMarkers(r.actualUseLightweightMarkers());i.valueMemberPath(r.valueMemberPath());i.__visibility=r.actualVisibility();e=n.ig.util.cast(t.$r9.$type,i);e!=null&&e.actualAreaFillOpacity(r.actualAreaFillOpacity());o=n.ig.util.cast(t.$sc.$type,i);o!=null&&o.actualAreaFillOpacity(r.actualAreaFillOpacity());u=n.ig.util.cast(t.$so.$type,i);u!=null&&(u.radiusX(r.actualRadiusX()),u.radiusY(r.actualRadiusY()));f=n.ig.util.cast(t.$sv.$type,i);f!=null&&(f.radiusX(r.actualRadiusX()),f.radiusY(r.actualRadiusY()));i.toolTip(r.toolTip());i.isDropShadowEnabled(r.actualIsDropShadowEnabled());i.useSingleShadow(r.actualUseSingleShadow());r.c9();r.da();r.db();r.dc()},g:function(){var r,i;for(this.e().clear(),this.d().clear(),r=this.f().getEnumerator();r.moveNext();)i=r.current(),i.cl(!0),i.seriesViewer(this.b().seriesViewer()),i.syncLink(this.b().syncLink()),i.index(this.b().m6(this.c().__inner[this.f().indexOf(i)])),this.c().__inner[this.f().indexOf(i)].u()?this.e().add(i):this.d().add(i),(n.ig.util.cast(t.$sj.$type,this.b())!==null||n.ig.util.cast(t.$r6.$type,this.b())!==null||n.ig.util.cast(t.$sk.$type,this.b())!==null||n.ig.util.cast(t.$r8.$type,this.b())!==null)&&(i.m2(this.b().kt()),i.m3(this.b().ku())),i.renderSeries(!1)},$type:new n.ig.Type("StackedSeriesManager",n.ig.$ot)},!0);n.ig.util.defType("Bezier:pl","Object",{j:0,l:function(){return this.j},n:null,r:function(){return this.n},o:null,s:function(){return this.o},p:null,t:function(){return this.p},q:null,u:function(){return this.q},k:0,init:function(i,r,u,f,e,o){this.k=Number.MAX_VALUE;this.i=new t.pm;n.ig.$op.init.call(this);this.n=i;this.o=r;this.p=u;this.q=f;this.j=e;this.k=o;this.d(this.c())},_d:!1,d:function(n){return arguments.length===1?(this._d=n,n):this._d},e:null,g:function(n){return arguments.length===1?(this.e=n,n):this.e},f:null,h:function(n){return arguments.length===1?(this.f=n,n):this.f},a:function(i){var r=1-i,u=r*r,o=u*r,f=i*i,s=f*i,h={__x:o*this.n.__x+3*u*i*this.o.__x+3*r*f*this.p.__x+s*this.q.__x,__y:o*this.n.__y+3*u*i*this.o.__y+3*r*f*this.p.__y+s*this.q.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},e=new t.pn;return e.c=h,e.a=i,e},i:null,c:function(){var f,s,h,e,o,c,l;for(this.g(new n.ig.Array),this.h(new n.ig.Array),f=new t.po,f.b=0,f.a=1,this.i.clear(),this.i.push(f),s=0;this.i.length>0;){var u=this.i.pop(),i=this.a(u.b),r=this.a(u.a),a=(r.c.__x-i.c.__x)*(r.c.__x-i.c.__x)+(r.c.__y-i.c.__y)*(r.c.__y-i.c.__y);if(a<this.j){if(i.b=s++,r.b=s++,this.g().add(i),this.g().add(r),i.c.__x>this.k||r.c.__x>this.k)return!1}else h=(u.b+u.a)/2,e=new t.po,e.b=u.b,e.a=h,o=new t.po,o.b=h,o.a=u.a,this.i.push(o),this.i.push(e)}for(c=this.g().getEnumerator();c.moveNext();)l=c.current(),this.h().add(l);return this.v(),!0},v:function(){var n=this;n.h().sort(function(n,t){var i=n,r=t;return i.c.__y<r.c.__y?-1:i.c.__y>r.c.__y?1:0})},b:function(n){var i=this,t=i.m(function(t){return n<t.c.__y?-1:n>t.c.__y?1:0});t<0&&(t=~t);t<0&&(t=0);t>i.h().length-1&&(t=i.h().length-1);var r=100000001,u=1e8,f=100000002;return(u=Math.abs(i.h()[t].c.__y-n),t-1>=0&&(r=Math.abs(i.h()[t-1].c.__y-n)),t+1<i.h().length&&(f=Math.abs(i.h()[t+1].c.__y-n)),u<=r&&u<=f)?i.h()[t]:r<=u&&r<=f&&t-1>0?i.h()[t-1]:f<=r&&f<=u&&t+1<i.h().length?i.h()[t+1]:i.h()[t]},m:function(n){for(var t=0,r=this.h().length-1,i,u;t<=r;)if(i=t+(r-t>>1),u=n(this.h()[i]),u<0)r=i-1;else if(u>0)t=i+1;else return i;return~t},$type:new n.ig.Type("Bezier",n.ig.$ot)},!0);n.ig.util.defType("BezierOp:po","Object",{init:function(){n.ig.$op.init.call(this)},b:0,a:0,$type:new n.ig.Type("BezierOp",n.ig.$ot)},!0);n.ig.util.defType("BezierPoint:pn","Object",{init:function(){n.ig.$op.init.call(this)},c:null,a:0,b:0,$type:new n.ig.Type("BezierPoint",n.ig.$ot)},!0);n.ig.util.defType("ChartVisualData:ti","Object",{init:function(){n.ig.$op.init.call(this);this.axes(new t.tj);this.series(new t.te)},_axes:null,axes:function(n){return arguments.length===1?(this._axes=n,n):this._axes},_series:null,series:function(n){return arguments.length===1?(this._series=n,n):this._series},_title:null,title:function(n){return arguments.length===1?(this._title=n,n):this._title},_subtitle:null,subtitle:function(n){return arguments.length===1?(this._subtitle=n,n):this._subtitle},_width:0,width:function(n){return arguments.length===1?(this._width=n,n):this._width},_height:0,height:function(n){return arguments.length===1?(this._height=n,n):this._height},_contentArea:null,contentArea:function(n){return arguments.length===1?(this._contentArea=n,n):this._contentArea},_centralArea:null,centralArea:function(n){return arguments.length===1?(this._centralArea=n,n):this._centralArea},_plotArea:null,plotArea:function(n){return arguments.length===1?(this._plotArea=n,n):this._plotArea},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_isViewportScaled:!1,isViewportScaled:function(n){return arguments.length===1?(this._isViewportScaled=n,n):this._isViewportScaled},scaleByViewport:function(){for(var t=this.axes().getEnumerator(),i,n,r;t.moveNext();)i=t.current(),i.l();for(n=this.series().getEnumerator();n.moveNext();)r=n.current(),r.j();this.title()!=null&&this.title().e();this.subtitle()!=null&&this.subtitle().e()},getBounds:function(){return new t.x(0,0,0,this.width(),this.height())},serialize:function(){var n=new t.gj,i,r;for(n.f("{"),n.f("name: "+this.name()+","),n.f("width: "+this.width()+","),n.f("height: "+this.height()+","),n.f("plotArea: { left: "+this.plotArea().left()+", top: "+this.plotArea().top()+", width: "+this.plotArea().width()+", height: "+this.plotArea().height()+"}, "),n.f("contentArea: { left: "+this.contentArea().left()+", top: "+this.contentArea().top()+", width: "+this.contentArea().width()+", height: "+this.contentArea().height()+"}, "),n.f("centralArea: { left: "+this.centralArea().left()+", top: "+this.centralArea().top()+", width: "+this.centralArea().width()+", height: "+this.centralArea().height()+"}, "),n.f("isViewportScaled: "+(this.isViewportScaled()?"true":"false")+", "),n.f("axes: ["),i=0;i<this.axes().count();i++)i!=0&&n.d(", "),n.d(this.axes().__inner[i].serialize());for(n.f("],"),n.f("series: ["),r=0;r<this.series().count();r++)r!=0&&n.d(", "),n.d(this.series().__inner[r].serialize());return n.f("]"),this.title()!=null&&n.f(", title: "+this.title().serialize()),this.subtitle()!=null&&n.f(", subtitle: "+this.subtitle().serialize()),n.f("}"),n.b()},getSerializedSeriesPoints:function(n,i,r){for(var c,l,a,u,o,s,f,h=new t.bh(t.$bh.$type.specialize(t.$z.$type),0),e=0;e<this.series().count();e++)if(this.series().__inner[e].name()==n)for(c=this.series().__inner[e].shapes().containingTag(i),l=0;l<c.count();l++)a=c.__inner[e],a.getPointsOverride(h,r);for(u=new t.gj,u.f("["),o=0;o<h.count();o++){for(s=h.__inner[o],u.f("["),f=0;f<s.count();f++)f!=0&&u.d(", "),u.d("{ x: "+s.__inner[f].__x+", y: "+s.__inner[f].__y+"}");u.f("]")}return u.f("]"),u.b()},$type:new n.ig.Type("ChartVisualData",n.ig.$ot)},!0);n.ig.util.defType("ChartTitleVisualData:s3","Object",{init:function(){n.ig.$op.init.call(this);this.appearance(new t.g0)},width:function(){return this.viewport().width()},height:function(){return this.viewport().height()},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},_textPlotArea:null,textPlotArea:function(n){return arguments.length===1?(this._textPlotArea=n,n):this._textPlotArea},_appearance:null,appearance:function(n){return arguments.length===1?(this._appearance=n,n):this._appearance},serialize:function(){var n=new t.gj;return n.f("{"),n.f("viewport: "+this.viewport().serialize()+", "),n.f("textPlotArea: "+this.textPlotArea().serialize()+", "),n.f("appearance: "+this.appearance().serialize()),n.f("}"),n.b()},f:function(n){var i=(this.textPlotArea().x()-n.left())/n.width(),r=(this.textPlotArea().y()-n.top())/n.height(),u=this.textPlotArea().width()/n.width(),f=this.textPlotArea().height()/n.height();this.textPlotArea(new t.x(0,i,r,u,f))},e:function(){var n=(this.textPlotArea().x()-this.viewport().left())/this.viewport().width(),i=(this.textPlotArea().y()-this.viewport().top())/this.viewport().height(),r=this.textPlotArea().width()/this.viewport().width(),u=this.textPlotArea().height()/this.viewport().height();this.textPlotArea(new t.x(0,n,i,r,u))},h:function(n){var i=this.textPlotArea().x()*n.width(),r=this.textPlotArea().y()*n.height(),u=this.textPlotArea().width()*n.width(),f=this.textPlotArea().height()*n.height();this.textPlotArea(new t.x(0,i,r,u,f))},g:function(){var n=this.textPlotArea().x()*this.viewport().width(),i=this.textPlotArea().y()*this.viewport().height(),r=this.textPlotArea().width()*this.viewport().width(),u=this.textPlotArea().height()*this.viewport().height();this.textPlotArea(new t.x(0,n,i,r,u))},$type:new n.ig.Type("ChartTitleVisualData",n.ig.$ot)},!0);n.ig.util.defType("ChartTitleVisualDataList:aa5","List$1",{init:function(){t.$bh.init.call(this,t.$s3.$type)},$type:new n.ig.Type("ChartTitleVisualDataList",t.$bh.$type.specialize(t.$s3.$type))},!0);n.ig.util.defType("PieChartVisualData:m1","Object",{init:function(){n.ig.$op.init.call(this);this.slices(new t.m2);this.others(new t.bh(n.ig.$op.$type,0))},_slices:null,slices:function(n){return arguments.length===1?(this._slices=n,n):this._slices},_othersSlice:null,othersSlice:function(n){return arguments.length===1?(this._othersSlice=n,n):this._othersSlice},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},_width:0,width:function(n){return arguments.length===1?(this._width=n,n):this._width},_height:0,height:function(n){return arguments.length===1?(this._height=n,n):this._height},_others:null,others:function(n){return arguments.length===1?(this._others=n,n):this._others},_isViewportScaled:!1,isViewportScaled:function(n){return arguments.length===1?(this._isViewportScaled=n,n):this._isViewportScaled},scaleByViewport:function(){if(!this.isViewportScaled()){this.isViewportScaled(!0);for(var n=0;n<this.slices().count();n++)this.slices().__inner[n].scaleByViewport(this.viewport());this.othersSlice()!=null&&this.othersSlice().scaleByViewport(this.viewport())}},serialize:function(){var n=new t.gj,i;for(n.f("{"),n.f("name: "+this.name()+","),n.f("width: "+this.width()+","),n.f("height: "+this.height()+","),n.f("isViewportScaled: "+(this.isViewportScaled()?"true":"false")+", "),n.f("slices: ["),i=0;i<this.slices().count();i++)i!=0&&n.d(", "),n.d(this.slices().__inner[i].serialize());return n.f("],"),n.f("viewport: { left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()+"}"),n.f("}"),n.b()},$type:new n.ig.Type("PieChartVisualData",n.ig.$ot)},!0);n.ig.util.defType("FunnelChartVisualData:qx","Object",{init:function(){n.ig.$op.init.call(this);this.slices(new t.qy)},_slices:null,slices:function(n){return arguments.length===1?(this._slices=n,n):this._slices},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},$type:new n.ig.Type("FunnelChartVisualData",n.ig.$ot)},!0);n.ig.util.defType("SeriesVisualData:gd","Object",{init:function(){n.ig.$op.init.call(this);this.shapes(new t.ge);this.markerShapes(new t.g3);this.pointerTooltips(new t.g2)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_type:null,type:function(n){return arguments.length===1?(this._type=n,n):this._type},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},_opacity:0,opacity:function(n){return arguments.length===1?(this._opacity=n,n):this._opacity},_shapes:null,shapes:function(n){return arguments.length===1?(this._shapes=n,n):this._shapes},_pointerTooltips:null,pointerTooltips:function(n){return arguments.length===1?(this._pointerTooltips=n,n):this._pointerTooltips},_markerShapes:null,markerShapes:function(n){return arguments.length===1?(this._markerShapes=n,n):this._markerShapes},_pixels:null,pixels:function(n){return arguments.length===1?(this._pixels=n,n):this._pixels},_pixelWidth:0,pixelWidth:function(n){return arguments.length===1?(this._pixelWidth=n,n):this._pixelWidth},j:function(){for(var i=this.shapes().getEnumerator(),r,n,u,t,f;i.moveNext();)r=i.current(),r.scaleByViewport(this.viewport());for(n=this.markerShapes().getEnumerator();n.moveNext();)u=n.current(),u.g(this.viewport());for(t=this.pointerTooltips().getEnumerator();t.moveNext();)f=t.current(),f.scaleByViewport(this.viewport())},serialize:function(){var n=new t.gj,i,r,u,f;for(n.f("{"),n.f('name: "'+this.name()+'",'),n.f('type: "'+this.type()+'", '),n.f("opacity: "+this.opacity()+", "),n.f("viewport: { left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()+"}, "),n.f("shapes: ["),i=0;i<this.shapes().count();i++)i!=0&&n.d(", "),n.d(this.shapes().__inner[i].serialize());for(n.f("],"),n.f("pointerTooltips: ["),r=0;r<this.pointerTooltips().count();r++)r!=0&&n.d(", "),n.d(this.pointerTooltips().__inner[r].serialize());for(n.f("],"),n.f("markerShapes: ["),u=0;u<this.markerShapes().count();u++)u!=0&&n.d(", "),n.d(this.markerShapes().__inner[u].serialize());if(n.f("]"),this.pixels()!=null){for(n.f(", pixels: ["),f=0;f<this.pixels().length;f++)f!=0&&n.d(", "),n.d(this.pixels()[f].toString());n.f("], ");n.f("pixelWidth: "+this.pixelWidth()+", ")}return n.f("}"),n.b()},$type:new n.ig.Type("SeriesVisualData",n.ig.$ot)},!0);n.ig.util.defType("SeriesVisualDataList:te","List$1",{init:function(){t.$bh.init.call(this,t.$gd.$type)},$type:new n.ig.Type("SeriesVisualDataList",t.$bh.$type.specialize(t.$gd.$type))},!0);n.ig.util.defType("MarkerVisualData:g4","Object",{init:function(){n.ig.$op.init.call(this)},_x:0,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_y:0,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_index:0,index:function(n){return arguments.length===1?(this._index=n,n):this._index},_markerAppearance:null,markerAppearance:function(n){return arguments.length===1?(this._markerAppearance=n,n):this._markerAppearance},_markerType:null,markerType:function(n){return arguments.length===1?(this._markerType=n,n):this._markerType},_contentTemplate:null,contentTemplate:function(n){return arguments.length===1?(this._contentTemplate=n,n):this._contentTemplate},_visibility:null,visibility:function(n){return arguments.length===1?(this._visibility=n,n):this._visibility},serialize:function(){return"{ x: "+this.x()+", y: "+this.y()+", index: "+this.index()+", markerAppearance: "+(this.markerAppearance()!=null?this.markerAppearance().serialize():"null")+', markerType: "'+this.markerType()+'", visibility: '+(this.visibility()==0?"true":"false")+"}"},g:function(n){this.x((this.x()-n.left())/n.width());this.y((this.y()-n.top())/n.height())},$type:new n.ig.Type("MarkerVisualData",n.ig.$ot)},!0);n.ig.util.defType("MarkerVisualDataList:g3","List$1",{init:function(){t.$bh.init.call(this,t.$g4.$type)},$type:new n.ig.Type("MarkerVisualDataList",t.$bh.$type.specialize(t.$g4.$type))},!0);n.ig.util.defType("AxisVisualData:s5","Object",{init:function(){n.ig.$op.init.call(this);this.tickMarksLength(0);this.labels(new t.s6);this.title(new t.s3)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_type:null,type:function(n){return arguments.length===1?(this._type=n,n):this._type},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},_tickMarksLength:0,tickMarksLength:function(n){return arguments.length===1?(this._tickMarksLength=n,n):this._tickMarksLength},_tickMarks:null,tickMarks:function(n){return arguments.length===1?(this._tickMarks=n,n):this._tickMarks},_labels:null,labels:function(n){return arguments.length===1?(this._labels=n,n):this._labels},_axisLine:null,axisLine:function(n){return arguments.length===1?(this._axisLine=n,n):this._axisLine},_majorLines:null,majorLines:function(n){return arguments.length===1?(this._majorLines=n,n):this._majorLines},_minorLines:null,minorLines:function(n){return arguments.length===1?(this._minorLines=n,n):this._minorLines},_strips:null,strips:function(n){return arguments.length===1?(this._strips=n,n):this._strips},_labelsPlotArea:null,labelsPlotArea:function(n){return arguments.length===1?(this._labelsPlotArea=n,n):this._labelsPlotArea},_labelsViewport:null,labelsViewport:function(n){return arguments.length===1?(this._labelsViewport=n,n):this._labelsViewport},_title:null,title:function(n){return arguments.length===1?(this._title=n,n):this._title},l:function(){var t=!0,n,i;for((this.type()=="NumericYAxis"||this.type()=="CategoryYAxis")&&(t=!1),n=this.labels().getEnumerator();n.moveNext();)i=n.current(),i.g(this.labelsViewport(),t);this.tickMarks().scaleByViewport(this.labelsViewport());this.axisLine().scaleByViewport(this.labelsViewport());this.title()!=null&&this.title().f(this.labelsViewport());this.majorLines().scaleByViewport(this.viewport());this.minorLines().scaleByViewport(this.viewport());this.strips().scaleByViewport(this.viewport())},serialize:function(){var n=new t.gj,i;for(n.f("{"),n.f('name: "'+this.name()+'",'),n.f('type: "'+this.type()+'", '),n.f('tickMarksLength: "'+this.tickMarksLength().toString()+'", '),n.f("viewport: "+this.viewport().serialize()+", "),n.f("labelsViewport: "+this.labelsViewport().serialize()+", "),this.labelsPlotArea()!=null&&n.f("labelsPlotArea: "+this.labelsPlotArea().serialize()+", "),n.f("labels: ["),i=0;i<this.labels().count();i++)i!=0&&n.d(", "),n.d(this.labels().__inner[i].serialize());return n.f("],"),this.title()!=null&&n.f("title: "+(this.title()!=null?this.title().serialize():"null")+", "),n.f("axisLine: "+(this.axisLine()!=null?this.axisLine().serialize():"null")+", "),n.f("tickMarks: "+(this.tickMarks()!=null?this.tickMarks().serialize():"null")+", "),this.axisLine()!=null&&(n.f("majorLines: "+(this.majorLines()!=null?this.majorLines().serialize():"null")+", "),n.f("minorLines: "+(this.minorLines()!=null?this.minorLines().serialize():"null")+", "),n.f("strips: "+(this.strips()!=null?this.strips().serialize():"null"))),n.f("}"),n.b()},$type:new n.ig.Type("AxisVisualData",n.ig.$ot)},!0);n.ig.util.defType("AxisVisualDataList:tj","List$1",{init:function(){t.$bh.init.call(this,t.$s5.$type)},$type:new n.ig.Type("AxisVisualDataList",t.$bh.$type.specialize(t.$s5.$type))},!0);n.ig.util.defType("PieSliceVisualData:m3","Object",{init:function(){n.ig.$op.init.call(this);this.labelBounds(t.$x.empty())},_label:null,label:function(n){return arguments.length===1?(this._label=n,n):this._label},_labelBounds:null,labelBounds:function(n){return arguments.length===1?(this._labelBounds=n,n):this._labelBounds},_appearance:null,appearance:function(n){return arguments.length===1?(this._appearance=n,n):this._appearance},_labelAppearance:null,labelAppearance:function(n){return arguments.length===1?(this._labelAppearance=n,n):this._labelAppearance},_leaderLineAppearance:null,leaderLineAppearance:function(n){return arguments.length===1?(this._leaderLineAppearance=n,n):this._leaderLineAppearance},_slicePath:null,slicePath:function(n){return arguments.length===1?(this._slicePath=n,n):this._slicePath},scaleByViewport:function(n){this.slicePath()!=null&&this.slicePath().scaleByViewport(n);var i=(this.labelBounds().left()-n.left())/n.width(),r=(this.labelBounds().top()-n.top())/n.height(),u=(this.labelBounds().right()-n.left())/n.width(),f=(this.labelBounds().bottom()-n.top())/n.height();this.labelBounds(new t.x(0,i,r,u-i,f-r))},serialize:function(){var n=new t.gj;return n.f("{"),this.label()!=null&&n.f("label: "+this.label()+", "),this.appearance()!=null&&n.f(" : "+this.appearance().serialize()+", "),this.labelAppearance()!=null&&n.f(" : "+this.labelAppearance().serialize()+", "),this.leaderLineAppearance()!=null&&n.f(" : "+this.leaderLineAppearance().serialize()+", "),this.slicePath()!=null&&n.f(" : "+this.slicePath().serialize()),n.f("labelBounds: { left: "+this.labelBounds().left()+", top: "+this.labelBounds().top()+", width: "+this.labelBounds().width()+", height: "+this.labelBounds().height()+"}"),n.f("}"),n.b()},$type:new n.ig.Type("PieSliceVisualData",n.ig.$ot)},!0);n.ig.util.defType("PieSliceVisualDataList:m2","List$1",{init:function(){t.$bh.init.call(this,t.$m3.$type)},$type:new n.ig.Type("PieSliceVisualDataList",t.$bh.$type.specialize(t.$m3.$type))},!0);n.ig.util.defType("FunnelSliceVisualData:pk","Object",{init:function(){n.ig.$op.init.call(this);this.appearance(new t.gh);this.slicePoints(new t.cb(0))},_isSelected:!1,isSelected:function(n){return arguments.length===1?(this._isSelected=n,n):this._isSelected},_index:0,index:function(n){return arguments.length===1?(this._index=n,n):this._index},_innerLabel:null,innerLabel:function(n){return arguments.length===1?(this._innerLabel=n,n):this._innerLabel},_outerLabel:null,outerLabel:function(n){return arguments.length===1?(this._outerLabel=n,n):this._outerLabel},_appearance:null,appearance:function(n){return arguments.length===1?(this._appearance=n,n):this._appearance},_innerLabelAppearance:null,innerLabelAppearance:function(n){return arguments.length===1?(this._innerLabelAppearance=n,n):this._innerLabelAppearance},_outerLabelAppearance:null,outerLabelAppearance:function(n){return arguments.length===1?(this._outerLabelAppearance=n,n):this._outerLabelAppearance},_slicePoints:null,slicePoints:function(n){return arguments.length===1?(this._slicePoints=n,n):this._slicePoints},_innerLabelPosition:null,innerLabelPosition:function(n){return arguments.length===1?(this._innerLabelPosition=n,n):this._innerLabelPosition},_outerLabelPosition:null,outerLabelPosition:function(n){return arguments.length===1?(this._outerLabelPosition=n,n):this._outerLabelPosition},_outerLabelBounds:null,outerLabelBounds:function(n){return arguments.length===1?(this._outerLabelBounds=n,n):this._outerLabelBounds},_innerLabelBounds:null,innerLabelBounds:function(n){return arguments.length===1?(this._innerLabelBounds=n,n):this._innerLabelBounds},_visibility:null,visibility:function(n){return arguments.length===1?(this._visibility=n,n):this._visibility},$type:new n.ig.Type("FunnelSliceVisualData",n.ig.$ot)},!0);n.ig.util.defType("FunnelSliceVisualDataList:qy","List$1",{init:function(){t.$bh.init.call(this,t.$pk.$type)},$type:new n.ig.Type("FunnelSliceVisualDataList",t.$bh.$type.specialize(t.$pk.$type))},!0);n.ig.util.defType("AxisLabelVisualData:s7","Object",{_labelValue:null,labelValue:function(n){return arguments.length===1?(this._labelValue=n,n):this._labelValue},_labelPosition:0,labelPosition:function(n){return arguments.length===1?(this._labelPosition=n,n):this._labelPosition},_position:null,position:function(n){return arguments.length===1?(this._position=n,n):this._position},_panelPosition:null,panelPosition:function(n){return arguments.length===1?(this._panelPosition=n,n):this._panelPosition},_appearance:null,appearance:function(n){return arguments.length===1?(this._appearance=n,n):this._appearance},_size:null,size:function(n){return arguments.length===1?(this._size=n,n):this._size},init:function(){n.ig.$op.init.call(this);this.position({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.size(new t.y(NaN,NaN));this.panelPosition({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},serialize:function(){var n=new t.gj;return n.f("{"),n.f("position: { x: "+this.position().__x+", y: "+this.position().__y+"},"),n.f("size: { width: "+this.size().b()+", height: "+this.size().a()+"},"),n.f("labelPosition: "+this.labelPosition()+","),n.f("appearance: "+(this.appearance()!=null?this.appearance().serialize():"null")),n.f("}"),n.b()},g:function(i,r){var u,f,e,o;r?this.labelPosition((this.labelPosition()-i.left())/i.width()):this.labelPosition((this.labelPosition()-i.top())/i.height());u=(this.position().__x-i.left())/i.width();f=(this.position().__y-i.top())/i.height();this.position({__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});e=this.size().b()/i.width();o=this.size().a()/i.height();this.size(new t.y(e,o))},$type:new n.ig.Type("AxisLabelVisualData",n.ig.$ot)},!0);n.ig.util.defType("AxisLabelVisualDataList:s6","List$1",{init:function(){t.$bh.init.call(this,t.$s7.$type)},$type:new n.ig.Type("AxisLabelVisualDataList",t.$bh.$type.specialize(t.$s7.$type))},!0);n.ig.util.defType("PointerTooltipVisualData:g5","Object",{init:function(){n.ig.$op.init.call(this)},_boxShape:null,boxShape:function(n){return arguments.length===1?(this._boxShape=n,n):this._boxShape},_pointerFillShape:null,pointerFillShape:function(n){return arguments.length===1?(this._pointerFillShape=n,n):this._pointerFillShape},_pointerOutlineShape:null,pointerOutlineShape:function(n){return arguments.length===1?(this._pointerOutlineShape=n,n):this._pointerOutlineShape},_offsetX:0,offsetX:function(n){return arguments.length===1?(this._offsetX=n,n):this._offsetX},_offsetY:0,offsetY:function(n){return arguments.length===1?(this._offsetY=n,n):this._offsetY},_categoryNames:null,categoryNames:function(n){return arguments.length===1?(this._categoryNames=n,n):this._categoryNames},serialize:function(){var i="",r,u,n;if(this.categoryNames()!=null){for(r=this.categoryNames().getEnumerator();r.moveNext();)u=r.current(),i+="'"+u+"',";i!=""&&(i=i.substr(0,i.length-1))}return n=new t.gj,n.f("{"),n.f("offsetX: "+this.offsetX()+", "),n.f("offsetY: "+this.offsetY()+", "),n.f("boxShape: "+this.boxShape().serialize()+", "),n.f("pointerFillShape: "+this.pointerFillShape().serialize()+", "),n.f("viewport: { left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()+"}, "),n.f("pointerOutlineShape: "+this.pointerOutlineShape().serialize()+", "),n.f("categoryNames: ["+i+"]"),n.f("}"),n.b()},scaleByViewport:function(n){this.boxShape().scaleByViewport(this.viewport());this.pointerFillShape().scaleByViewport(this.viewport());this.pointerOutlineShape().scaleByViewport(this.viewport());this.offsetX((this.offsetX()-n.left())/n.width());this.offsetY((this.offsetY()-n.top())/n.height())},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},$type:new n.ig.Type("PointerTooltipVisualData",n.ig.$ot)},!0);n.ig.util.defType("PointerTooltipVisualDataList:g2","List$1",{init:function(){t.$bh.init.call(this,t.$g5.$type)},$type:new n.ig.Type("PointerTooltipVisualDataList",t.$bh.$type.specialize(t.$g5.$type))},!0);n.ig.util.defType("StackedSeriesVisualData:td","SeriesVisualData",{init:function(){t.$gd.init.call(this);this.fragmentSeries(new t.te)},_fragmentSeries:null,fragmentSeries:function(n){return arguments.length===1?(this._fragmentSeries=n,n):this._fragmentSeries},$type:new n.ig.Type("StackedSeriesVisualData",t.$gd.$type)},!0);n.ig.util.defType("VisualExportHelper:j4","Object",{init:function(){n.ig.$op.init.call(this)},a:function(i){var c={__x:i.l(),__y:i.m(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r=new t.x(0,c.__x,c.__y,i.k(),i.j()),f=i.h(),v,s,e,h;if(f==null)return r;var o=0,l=0,a=0,u=null;if(n.ig.util.cast(t.$eh.$type,f)!==null)u=n.ig.util.cast(t.$eh.$type,f),o=u.h();else if(n.ig.util.cast(t.$ee.$type,f)!==null)for(v=n.ig.util.cast(t.$ee.$type,f),s=v.h().getEnumerator();s.moveNext();)e=s.current(),n.ig.util.cast(t.$eh.$type,e)!==null&&(u=n.ig.util.cast(t.$eh.$type,e),o=u.h()),n.ig.util.cast(t.$eg.$type,e)!==null&&(h=n.ig.util.cast(t.$eg.$type,e),l=h.h(),a=h.i());return u!=null&&(r=r.rotateAboutPoint(u.i(),u.j(),o)),r.x(r.x()+l),r.y(r.y()+a),r},$type:new n.ig.Type("VisualExportHelper",n.ig.$ot)},!0);n.ig.util.defType("VisualDataSerializer:s4","Object",{init:function(){n.ig.$op.init.call(this)},serialize:function(){return"{ left: "+this.left()+", top: "+this.top()+", width: "+this.width()+", height: "+this.height()+" }"},$type:new n.ig.Type("VisualDataSerializer",n.ig.$ot)},!0);n.ig.util.defType("IDetectsCollisions:kg","Object",{$type:new n.ig.Type("IDetectsCollisions",null)},!0);n.ig.util.defType("CollisionAvoider:mq","Object",{init:function(){this.a=new t.bh(t.$x.$type,0);n.ig.$op.init.call(this)},tryAdd:function(n){for(var t=this,i=t.a.count()-1;i>=0;--i){if(n.left()>t.a.__inner[i].right())break;if(t.a.__inner[i].intersectsWith(n))return!1}return t.a.count()==0||n.right()>=t.a.__inner[t.a.count()-1].right()?t.a.add(n):(t.a.add(n),t.a.sort1(function(n,t){return Math.sign(n.right()-t.right())})),!0},clear:function(){this.a.clear()},a:null,$type:new n.ig.Type("CollisionAvoider",n.ig.$ot,[t.$kg.$type])},!0);n.ig.util.defType("DoubleColumn:pq","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},b:function(n){this.a(n)},$type:new n.ig.Type("DoubleColumn",n.ig.$ot)},!0);n.ig.util.defType("StringColumn:aa6","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},b:function(n){this.a(n)},$type:new n.ig.Type("StringColumn",n.ig.$ot)},!0);n.ig.util.defType("ObjectColumn:pr","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},b:function(n){this.a(n)},$type:new n.ig.Type("ObjectColumn",n.ig.$ot)},!0);n.ig.util.defType("IntColumn:qp","Object",{init:function(){n.ig.$op.init.call(this);this.values(new t.bh(n.ig.Number.prototype.$type,0))},populate:function(n){for(var t=0;t<n;t++)this.values().add(t)},_values:null,values:function(n){return arguments.length===1?(this._values=n,n):this._values},sort:function(n){var t=this;t.values().sort1(function(t,i){return n(t,i)})},getEnumerator:function(){return this.values().getEnumerator()},$type:new n.ig.Type("IntColumn",n.ig.$ot,[n.ig.IEnumerable.prototype.$type])},!0);n.ig.util.defType("ColumnUtil:aa7","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("ColumnUtil",n.ig.$ot)},!0);n.ig.util.defType("PointList:pj","List$1",{init:function(){t.$bh.init.call(this,t.$z.$type)},$type:new n.ig.Type("PointList",t.$bh.$type.specialize(t.$z.$type))},!0);n.ig.util.defType("SafeEnumerable:mu","Object",{a:null,init:function(t){n.ig.$op.init.call(this);this.a=t},c:function(n){return Number.isInfinity(n)||isNaN(n)?0:n},b:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:0,$b:null,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$state=this.$this.a==null?2:4;break;case 2:return this.$state=-2,!1;case 3:this.$state=4;break;case 4:this.$state=5;break;case 5:this.$b=this.$this.a.getEnumerator();this.$state=8;break;case 6:return this.$a=this.$b.current(),this.$current=this.$this.c(this.$a),this.$state=7,!0;case 7:this.$state=8;break;case 8:this.$state=this.$b.moveNext()?6:9;break;case 9:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(Number,i)},getEnumerator:function(){return this.b().getEnumerator()},$type:new n.ig.Type("SafeEnumerable",n.ig.$ot,[t.$bk.$type.specialize(Number)])},!0);n.ig.util.defType("SafeReadOnlyDoubleCollection:ms","Object",{a:null,b:function(n){return Number.isInfinity(n)||isNaN(n)?0:n},init:function(i){n.ig.$op.init.call(this);this.a=new t.mt(Number,1,i)},indexOf:function(n){return this.a.indexOf(n)},insert:function(i,r){n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).insert(i,r)},removeAt:function(i){n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).removeAt(i)},item:function(i,r){return arguments.length===2?(n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).item(i,r),r):this.b(this.a.item(i))},add:function(i){n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).add(i)},clear:function(){n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).clear()},contains:function(n){return this.a.contains(n)},copyTo:function(n,t){for(var i=t;i<n.length;i++)n[i]=this.item(i)},count:function(){return this.a.count()},isReadOnly:function(){return n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).isReadOnly()},remove:function(i){return n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).remove(i)},getEnumerator:function(){return new t.mu(this.a).getEnumerator()},$type:new n.ig.Type("SafeReadOnlyDoubleCollection",n.ig.$ot,[t.$bi.$type.specialize(Number)])},!0);n.ig.util.defType("SafeSortedReadOnlyDoubleCollection:mr","Object",{a:null,b:null,c:function(n){return Number.isInfinity(n)||isNaN(n)?0:n},init:function(i,r){n.ig.$op.init.call(this);this.a=new t.ms(i);this.b=r},indexOf:function(n){var t=this.a.indexOf(n);return this.b.indexOf(t)},insert:function(i,r){n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).insert(i,r)},removeAt:function(i){n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).removeAt(i)},item:function(i,r){if(arguments.length===2)return n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).item(i,r),r;var r=this.b.item(i);return this.c(this.a.item(r))},add:function(i){n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).add(i)},clear:function(){n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).clear()},contains:function(n){return this.a.contains(n)},copyTo:function(n,t){for(var i=t;i<n.length;i++)n[i]=this.item(i)},count:function(){return this.a.count()},isReadOnly:function(){return n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).isReadOnly()},remove:function(i){return n.ig.util.cast(t.$bi.$type.specialize(Number),this.a).remove(i)},getEnumerator:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:0,current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$a=0;this.$state=5;break;case 2:return this.$current=this.$this.item(this.$a),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$a++;this.$state=5;break;case 5:this.$state=this.$a<this.$this.a.count()?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerator$1(Number,i())},$type:new n.ig.Type("SafeSortedReadOnlyDoubleCollection",n.ig.$ot,[t.$bi.$type.specialize(Number)])},!0);n.ig.util.defType("SortedListView$1:lp","Object",{$t:null,c:null,d:null,init:function(t,i,r){this.c=null;this.d=null;this.$t=t;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.c=r;this.d=i},add:function(){throw new t.f5;},clear:function(){throw new t.f5;},contains:function(n){return this.d.contains(n)},indexOf:function(n){return this.c.indexOf(this.d.indexOf(n))},insert:function(){throw new t.f5;},isFixedSize:function(){return!0},isReadOnly:function(){return!0},remove:function(){throw new t.f5;},removeAt:function(){throw new t.f5;},item:function(n){if(arguments.length===2)throw new t.f5;else return this.d.item(this.c.item(n))},count:function(){return this.d.count()},isSynchronized:function(){throw new t.f5;},syncRoot:function(){throw new t.f5;},getEnumerator:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:0,current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$a=0;this.$state=5;break;case 2:return this.$current=this.$this.item(this.$a),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$a++;this.$state=5;break;case 5:this.$state=this.$a<this.$this.count()?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.AbstractEnumerator(i())},copyTo:function(){throw new t.f5;},$type:new n.ig.Type("SortedListView$1",n.ig.$ot,[t.$bi.$type.specialize(0)])},!0);t.$qj.remove=0;t.$qj.insert=1;t.$qj.replace=2;t.$qj.change=3;t.$qj.reset=4;t.$of.none=0;t.$of.both=1;t.$of.positive=2;t.$of.negative=3;t.$tk.deferred=0;t.$tk.immediate=1;t.$z3.none=0;t.$z3.synched=1;t.$z3.zoomable=2;t.$mp.natural=0;t.$mp.clamped=1;t.$z2.candlestick=0;t.$z2.oHLC=1;t.$ng.number=0;t.$ng.percent=1;t.$gc.unset=0;t.$gc.none=1;t.$gc.automatic=2;t.$gc.circle=3;t.$gc.triangle=4;t.$gc.pyramid=5;t.$gc.square=6;t.$gc.diamond=7;t.$gc.pentagon=8;t.$gc.hexagon=9;t.$gc.tetragram=10;t.$gc.pentagram=11;t.$gc.hexagram=12;t.$ne.none=0;t.$ne.center=1;t.$ne.insideEnd=2;t.$ne.outsideEnd=3;t.$ne.bestFit=4;t.$ts.none=0;t.$ts.beforeSeries=1;t.$ts.behindSeries=2;t.$iy.horizontal=0;t.$iy.vertical=1;t.$iy.angular=2;t.$iy.radial=3;t.$hv.mode0=0;t.$hv.mode1=1;t.$hv.mode2=2;t.$hh.outsideTop=0;t.$hh.outsideBottom=1;t.$hh.outsideLeft=2;t.$hh.outsideRight=3;t.$hh.insideTop=4;t.$hh.insideBottom=5;t.$hh.insideLeft=6;t.$hh.insideRight=7;t.$q6.auto=0;t.$q6.normal=1;t.$q6.valueScaled=2;t.$q6.indexScaled=3;t.$q6.random=4;t.$mk.outward=0;t.$mk.inward=1;t.$mk.static=2;t.$z0.closest=0;t.$z0.directlyOver=1;t.$n7.none=0;t.$n7.omit=1;t.$n7.fade=2;t.$n7.omitAndShift=3;t.$n7.fadeAndShift=4;t.$j9.series=0;t.$j9.axis=1;t.$j9.background=2;t.$pz.up=0;t.$pz.down=1;t.$p0.left=0;t.$p0.right=1;t.$qf.left=0;t.$qf.right=1;t.$qg.uniform=0;t.$qg.weighted=1;t.$lh.continuous=0;t.$lh.discrete=1;t.$nf.straight=0;t.$nf.arc=1;t.$nf.spline=2;t.$wm.line=0;t.$wm.area=1;t.$wm.column=2;t.$o1.select=0;t.$o1.interpolate=1;t.$q1.auto=0;t.$q1.fromZero=1;t.$q1.sweepFromLeft=2;t.$q1.sweepFromRight=3;t.$q1.sweepFromTop=4;t.$q1.sweepFromBottom=5;t.$q1.sweepFromCenter=6;t.$q1.accordionFromLeft=7;t.$q1.accordionFromRight=8;t.$q1.accordionFromTop=9;t.$q1.accordionFromBottom=10;t.$q1.expand=11;t.$q1.sweepFromCategoryAxisMinimum=12;t.$q1.sweepFromCategoryAxisMaximum=13;t.$q1.sweepFromValueAxisMinimum=14;t.$q1.sweepFromValueAxisMaximum=15;t.$q1.accordionFromCategoryAxisMinimum=16;t.$q1.accordionFromCategoryAxisMaximum=17;t.$q1.accordionFromValueAxisMinimum=18;t.$q1.accordionFromValueAxisMaximum=19;t.$iv.linear=0;t.$iv.logarithmic=1;t.$fb.auto=0;t.$fb.left=1;t.$fb.right=2;t.$fb.top=3;t.$fb.bottom=4;t.$uq.auto=0;t.$uq.topLeft=1;t.$uq.topMiddle=2;t.$uq.topRight=3;t.$uq.rightTop=4;t.$uq.rightMiddle=5;t.$uq.rightBottom=6;t.$uq.bottomRight=7;t.$uq.bottomMiddle=8;t.$uq.bottomLeft=9;t.$uq.leftBottom=10;t.$uq.leftMiddle=11;t.$uq.leftTop=12;t.$ur.auto=0;t.$ur.outsideStart=1;t.$ur.insideStart=2;t.$ur.insideEnd=3;t.$ur.outsideEnd=4;t.$uj.auto=0;t.$uj.marker=1;t.$uj.shape=2;t.$aj.fg="MouseOver";t.$aj.fh="Normal";t.$aj.dy=0;t.$aj.ga="VisibilityProxy";t.$aj.je=t.$ar.i("VisibilityProxy",t.$a3.$type,t.$aj.$type,new t.as(2,0,function(n,t){n.raisePropertyChanged("VisibilityProxy",t.d(),t.c())}));t.$aj.fk="RootCanvas";t.$aj.c7=1e-7;t.$aj.fr="SyncLink";t.$aj.fl="SeriesViewer";t.$aj.e9="ItemsSource";t.$aj.itemsSourceProperty=t.$ar.i("ItemsSource",n.ig.IEnumerable.prototype.$type,t.$aj.$type,new t.as(2,null,function(i,r){var u=n.ig.util.cast(t.$aj.$type,i);u.syncLink()!=null&&n.ig.util.cast(t.$j5.$type,u.syncLink()).releaseFastItemsSource(r.d());n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("ItemsSource",r.d(),r.c())}));t.$aj.e5="FastItemsSource";t.$aj.im=t.$ar.i("FastItemsSource",t.$jw.$type,t.$aj.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("FastItemsSource",r.d(),r.c())}));t.$aj.legendProperty=t.$ar.i("Legend",t.$ni.$type,t.$aj.$type,new t.as(2,null,function(i,r){var u=n.ig.util.cast(t.$aj.$type,i);u.raisePropertyChanged("Legend",r.d(),r.c())}));t.$aj.fb="LegendItem";t.$aj.ex="ActualLegend";t.$aj.fd="LegendItemVisibility";t.$aj.legendItemVisibilityProperty=t.$ar.i("LegendItemVisibility",t.$a3.$type,t.$aj.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("LegendItemVisibility",r.d(),r.c())}));t.$aj.fa="LegendItemBadgeTemplate";t.$aj.legendItemBadgeTemplateProperty=t.$ar.i("LegendItemBadgeTemplate",t.$cg.$type,t.$aj.$type,new t.as(2,null,function(i,r){var u=n.ig.util.cast(t.$aj.$type,i);u.raisePropertyChanged("LegendItemBadgeTemplate",r.d(),r.c());u.legendItem(u.h4())}));t.$aj.fc="LegendItemTemplate";t.$aj.legendItemTemplateProperty=t.$ar.i("LegendItemTemplate",t.$cg.$type,t.$aj.$type,new t.as(2,null,function(i,r){var u=n.ig.util.cast(t.$aj.$type,i);u.raisePropertyChanged("LegendItemTemplate",r.d(),r.c());u.legendItem(u.h4())}));t.$aj.e3="DiscreteLegendItemTemplate";t.$aj.discreteLegendItemTemplateProperty=t.$ar.i("DiscreteLegendItemTemplate",t.$cg.$type,t.$aj.$type,new t.as(2,null,function(i,r){var u=n.ig.util.cast(t.$aj.$type,i);u.raisePropertyChanged("DiscreteLegendItemTemplate",r.d(),r.c())}));t.$aj.e6="Index";t.$aj.indexProperty=t.$ar.i("Index",n.ig.Number.prototype.$type,t.$aj.$type,new t.as(2,-1,function(i,r){var u=n.ig.util.cast(t.$aj.$type,i);u.raisePropertyChanged("Index",r.d(),r.c());u.legendItem(u.h4())}));t.$aj.fw="TransitionEasingFunction";t.$aj.fy="TransitionInEasingFunction";t.$aj.transitionEasingFunctionProperty=t.$ar.i("TransitionEasingFunction",t.$ep.$type,t.$aj.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("TransitionEasingFunction",r.d(),r.c())}));t.$aj.transitionInEasingFunctionProperty=t.$ar.i("TransitionInEasingFunction",t.$ep.$type,t.$aj.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("TransitionInEasingFunction",r.d(),r.c())}));t.$aj.fv="TransitionDuration";t.$aj.transitionDurationProperty=t.$ar.i("TransitionDuration",n.ig.Number.prototype.$type,t.$aj.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("TransitionDuration",r.d(),r.c())}));t.$aj.f0="TransitionProgress";t.$aj.jc=t.$ar.i("TransitionProgress",Number,t.$aj.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("TransitionProgress",r.d(),r.c())}));t.$aj.dz=10;t.$aj.cp=!1;t.$aj.fj="Resolution";t.$aj.resolutionProperty=t.$ar.i("Resolution",Number,t.$aj.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("Resolution",r.d(),r.c())}));t.$aj.ft="Title";t.$aj.titleProperty=t.$ar.i("Title",n.ig.$op.$type,t.$aj.$type,new t.as(2,"Series Title",function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("Title",r.d(),r.c())}));t.$aj.e0="Brush";t.$aj.brushProperty=t.$ar.i("Brush",t.$b3.$type,t.$aj.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("Brush",r.d(),r.c())}));t.$aj.ew="ActualBrush";t.$aj.actualBrushProperty=t.$ar.i("ActualBrush",t.$b3.$type,t.$aj.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("ActualBrush",r.d(),r.c())}));t.$aj.fi="Outline";t.$aj.outlineProperty=t.$ar.i("Outline",t.$b3.$type,t.$aj.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("Outline",r.d(),r.c())}));t.$aj.ey="ActualOutline";t.$aj.actualOutlineProperty=t.$ar.i("ActualOutline",t.$b3.$type,t.$aj.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("ActualOutline",r.d(),r.c())}));t.$aj.fe="LineJoin";t.$aj.ff="MiterLimit";t.$aj.miterLimitProperty=t.$ar.i("MiterLimit",Number,t.$aj.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("MiterLimit",r.d(),r.c())}));t.$aj.fs="Thickness";t.$aj.thicknessProperty=t.$ar.i("Thickness",Number,t.$aj.$type,new t.as(2,1.5,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("Thickness",r.d(),r.c())}));t.$aj.e2="DashCap";t.$aj.dashCapProperty=t.$ar.i("DashCap",t.$lv.$type,t.$aj.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("DashCap",r.d(),r.c())}));t.$aj.e1="DashArray";t.$aj.dashArrayProperty=t.$ar.i("DashArray",t.$b5.$type,t.$aj.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("DashArray",r.d(),r.c())}));t.$aj.fu="ToolTip";t.$aj.toolTipProperty=t.$ar.i("ToolTip",n.ig.$op.$type,t.$aj.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("ToolTip",r.d(),r.c())}));t.$aj.e8="IsHighlightingEnabled";t.$aj.isHighlightingEnabledProperty=t.$ar.i("IsHighlightingEnabled",t.$f.$type,t.$aj.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("IsHighlightingEnabled",r.d(),r.c())}));t.$aj.e7="IsDropShadowEnabled";t.$aj.isDropShadowEnabledProperty=t.$ar.i("IsDropShadowEnabled",t.$f.$type,t.$aj.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("IsDropShadowEnabled",r.d(),r.c())}));t.$aj.fm="ShadowBlur";t.$aj.shadowBlurProperty=t.$ar.i("ShadowBlur",Number,t.$aj.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("ShadowBlur",r.d(),r.c())}));t.$aj.fn="ShadowColor";t.$aj.shadowColorProperty=t.$ar.i("ShadowColor",t.$b4.$type,t.$aj.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("ShadowColor",r.d(),r.c())}));t.$aj.f9="UseSingleShadow";t.$aj.useSingleShadowProperty=t.$ar.i("UseSingleShadow",t.$f.$type,t.$aj.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("UseSingleShadow",r.d(),r.c())}));t.$aj.fo="ShadowOffsetX";t.$aj.shadowOffsetXProperty=t.$ar.i("ShadowOffsetX",Number,t.$aj.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("ShadowOffsetX",r.d(),r.c())}));t.$aj.fp="ShadowOffsetY";t.$aj.shadowOffsetYProperty=t.$ar.i("ShadowOffsetY",Number,t.$aj.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("ShadowOffsetY",r.d(),r.c())}));t.$aj.ez="AreaFillOpacity";t.$aj.areaFillOpacityProperty=t.$ar.i("AreaFillOpacity",Number,t.$aj.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("AreaFillOpacity",r.d(),r.c())}));t.$aj.ev="ActualAreaFillOpacity";t.$aj.actualAreaFillOpacityProperty=t.$ar.i("ActualAreaFillOpacity",Number,t.$aj.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("ActualAreaFillOpacity",r.d(),r.c())}));t.$aj.fx="TransitionInDuration";t.$aj.transitionInDurationProperty=t.$ar.i("TransitionInDuration",n.ig.Number.prototype.$type,t.$aj.$type,new t.as(2,1e3,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("TransitionInDuration",r.d(),r.c())}));t.$aj.fz="TransitionInSpeedType";t.$aj.transitionInSpeedTypeProperty=t.$ar.i("TransitionInSpeedType",t.$q6.$type,t.$aj.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("TransitionInSpeedType",r.d(),r.c())}));t.$aj.fq="StartCap";t.$aj.startCapProperty=t.$ar.i("StartCap",t.$lv.$type,t.$aj.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("StartCap",r.d(),r.c())}));t.$aj.e4="EndCap";t.$aj.endCapProperty=t.$ar.i("EndCap",t.$lv.$type,t.$aj.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$aj.$type,i).raisePropertyChanged("EndCap",r.d(),r.c())}));t.$aj.f3="TrendLineDashArray";t.$aj.f7="TrendLineType";t.$aj.f5="TrendLinePeriod";t.$aj.f2="TrendLineBrush";t.$aj.f1="ActualTrendLineBrush";t.$aj.f6="TrendLineThickness";t.$aj.f4="TrendLineDashCap";t.$aj.f8="TrendLineZIndex";t.$tq.j7="UseIndex";t.$tq.useIndexProperty=t.$ar.i("UseIndex",t.$f.$type,t.$tq.$type,new t.as(2,!1,function(n,t){n.raisePropertyChanged("UseIndex",t.d(),t.c())}));t.$tq.j8="UseLegend";t.$tq.useLegendProperty=t.$ar.i("UseLegend",t.$f.$type,t.$tq.$type,new t.as(2,!1,function(n,t){n.raisePropertyChanged("UseLegend",t.d(),t.c())}));t.$tq.j5="CursorPosition";t.$tq.cursorPositionProperty=t.$ar.i("CursorPosition",t.$z.$type,t.$tq.$type,new t.as(2,{__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,t){n.raisePropertyChanged("CursorPosition",t.d(),t.c())}));t.$tq.j6="IsDefaultCrosshairDisabled";t.$tq.isDefaultCrosshairDisabledProperty=t.$ar.i("IsDefaultCrosshairDisabled",t.$f.$type,t.$tq.$type,new t.as(2,!0,function(n,t){n.raisePropertyChanged("IsDefaultCrosshairDisabled",t.d(),t.c())}));t.$bb.s=1e3;t.$bb.r=3;t.$ud.k2="TargetAxis";t.$ud.targetAxisProperty=t.$ar.i("TargetAxis",t.$hb.$type,t.$ud.$type,new t.as(2,null,function(n,t){n.raisePropertyChanged("TargetAxis",t.d(),t.c())}));t.$ud.k3="UseInterpolation";t.$ud.useInterpolationProperty=t.$ar.i("UseInterpolation",t.$f.$type,t.$ud.$type,new t.as(2,!1,function(n,t){n.raisePropertyChanged("UseInterpolation",t.d(),t.c())}));t.$ud.k1="BAndHighlightWidth";t.$ud.bandHighlightWidthProperty=t.$ar.i("BAndHighlightWidth",Number,t.$ud.$type,new t.as(2,10,function(n,t){n.raisePropertyChanged("BAndHighlightWidth",t.d(),t.c())}));t.$uh.la="TargetSeries";t.$uh.targetSeriesProperty=t.$ar.i("TargetSeries",t.$aj.$type,t.$uh.$type,new t.as(2,null,function(n,t){n.raisePropertyChanged("TargetSeries",t.d(),t.c())}));t.$uh.lb="UseInterpolation";t.$uh.useInterpolationProperty=t.$ar.i("UseInterpolation",t.$f.$type,t.$uh.$type,new t.as(2,!1,function(n,t){n.raisePropertyChanged("UseInterpolation",t.d(),t.c())}));t.$uh.k7="HighlightType";t.$uh.highlightTypeProperty=t.$ar.i("HighlightType",t.$uj.$type,t.$uh.$type,new t.as(2,0,function(n,t){n.raisePropertyChanged("HighlightType",t.d(),t.c())}));t.$uh.k8="MarkerTemplate";t.$uh.markerTemplateProperty=t.$ar.i("MarkerTemplate",t.$cg.$type,t.$uh.$type,new t.as(2,null,function(n,t){n.raisePropertyChanged("MarkerTemplate",t.d(),t.c())}));t.$uh.k6="BandHighlightWidth";t.$uh.bandHighlightWidthProperty=t.$ar.i("BandHighlightWidth",Number,t.$uh.$type,new t.as(2,10,function(n,t){n.raisePropertyChanged("BandHighlightWidth",t.d(),t.c())}));t.$uh.k9="SkipUnknownValues";t.$uh.skipUnknownValuesProperty=t.$ar.i("SkipUnknownValues",t.$f.$type,t.$uh.$type,new t.as(2,!0,function(n,t){n.raisePropertyChanged("SkipUnknownValues",t.d(),t.c())}));t.$um.k2="TargetAxis";t.$um.targetAxisProperty=t.$ar.i("TargetAxis",t.$hc.$type,t.$um.$type,new t.as(2,null,function(n,t){n.raisePropertyChanged("TargetAxis",t.d(),t.c())}));t.$um.k4="UseInterpolation";t.$um.useInterpolationProperty=t.$ar.i("UseInterpolation",t.$f.$type,t.$um.$type,new t.as(2,!1,function(n,t){n.raisePropertyChanged("UseInterpolation",t.d(),t.c())}));t.$um.k3="ToolTipPosition";t.$um.toolTipPositionProperty=t.$ar.i("ToolTipPosition",t.$ur.$type,t.$um.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$um.$type,i).raisePropertyChanged("ToolTipPosition",r.d(),r.c())}));t.$uv.k2="TargetSeries";t.$uv.targetSeriesProperty=t.$ar.i("TargetSeries",t.$aj.$type,t.$uv.$type,new t.as(2,null,function(n,t){n.raisePropertyChanged("TargetSeries",t.d(),t.c())}));t.$uv.k3="UseInterpolation";t.$uv.useInterpolationProperty=t.$ar.i("UseInterpolation",t.$f.$type,t.$uv.$type,new t.as(2,!0,function(n,t){n.raisePropertyChanged("UseInterpolation",t.d(),t.c())}));t.$uv.k4="VerticalLineVisibility";t.$uv.verticalLineVisibilityProperty=t.$ar.i("VerticalLineVisibility",t.$a3.$type,t.$uv.$type,new t.as(2,0,function(n,t){n.raisePropertyChanged("VerticalLineVisibility",t.d(),t.c())}));t.$uv.k0="HorizontalLineVisibility";t.$uv.horizontalLineVisibilityProperty=t.$ar.i("HorizontalLineVisibility",t.$a3.$type,t.$uv.$type,new t.as(2,0,function(n,t){n.raisePropertyChanged("HorizontalLineVisibility",t.d(),t.c())}));t.$uv.k1="SkipUnknownValues";t.$uv.skipUnknownValuesProperty=t.$ar.i("SkipUnknownValues",t.$f.$type,t.$uv.$type,new t.as(2,!0,function(n,t){n.raisePropertyChanged("SkipUnknownValues",t.d(),t.c())}));t.$uy.k3="TargetSeries";t.$uy.targetSeriesProperty=t.$ar.i("TargetSeries",t.$aj.$type,t.$uy.$type,new t.as(2,null,function(n,t){n.raisePropertyChanged("TargetSeries",t.d(),t.c())}));t.$uy.k4="UseInterpolation";t.$uy.useInterpolationProperty=t.$ar.i("UseInterpolation",t.$f.$type,t.$uy.$type,new t.as(2,!1,function(n,t){n.raisePropertyChanged("UseInterpolation",t.d(),t.c())}));t.$uy.k2="SkipUnknownValues";t.$uy.skipUnknownValuesProperty=t.$ar.i("SkipUnknownValues",t.$f.$type,t.$uy.$type,new t.as(2,!0,function(n,t){n.raisePropertyChanged("SkipUnknownValues",t.d(),t.c())}));t.$uo.bn="PointerPosition";t.$uo.pointerPositionProperty=t.$ar.i("PointerPosition",t.$z.$type,t.$uo.$type,new t.as(2,{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,t){n.bv("PointerPosition",t.d(),t.c())}));t.$uo.bj="PointerInset";t.$uo.pointerInsetProperty=t.$ar.i("PointerInset",Number,t.$uo.$type,new t.as(2,7.5,function(n,t){n.bv("PointerInset",t.d(),t.c())}));t.$uo.bp="PointerWidth";t.$uo.pointerWidthProperty=t.$ar.i("PointerWidth",Number,t.$uo.$type,new t.as(2,5,function(n,t){n.bv("PointerWidth",t.d(),t.c())}));t.$uo.bo="PointerVisibility";t.$uo.pointerVisibilityProperty=t.$ar.i("PointerVisibility",t.$a3.$type,t.$uo.$type,new t.as(2,0,function(n,t){n.bv("PointerVisibility",t.d(),t.c())}));t.$uo.bk="PointerLocation";t.$uo.pointerLocationProperty=t.$ar.i("PointerLocation",t.$uq.$type,t.$uo.$type,new t.as(2,0,function(n,t){n.bv("PointerLocation",t.d(),t.c())}));t.$uo.bi="ActualPointerStartPosition";t.$uo.actualPointerStartPositionProperty=t.$ar.i("ActualPointerStartPosition",t.$z.$type,t.$uo.$type,new t.as(2,{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,t){n.bv("ActualPointerStartPosition",t.d(),t.c())}));t.$uo.bg="ActualPointerFirstPosition";t.$uo.actualPointerFirstPositionProperty=t.$ar.i("ActualPointerFirstPosition",t.$z.$type,t.$uo.$type,new t.as(2,{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,t){n.bv("ActualPointerFirstPosition",t.d(),t.c())}));t.$uo.bh="ActualPointerSecondPosition";t.$uo.actualPointerSecondPositionProperty=t.$ar.i("ActualPointerSecondPosition",t.$z.$type,t.$uo.$type,new t.as(2,{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,t){n.bv("ActualPointerSecondPosition",t.d(),t.c())}));t.$uo.bd="ActualBoxTopLeftPosition";t.$uo.actualBoxTopLeftPositionProperty=t.$ar.i("ActualBoxTopLeftPosition",t.$z.$type,t.$uo.$type,new t.as(2,{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,t){n.bv("ActualBoxTopLeftPosition",t.d(),t.c())}));t.$uo.be="ActualBoxTopRightPosition";t.$uo.actualBoxTopRightPositionProperty=t.$ar.i("ActualBoxTopRightPosition",t.$z.$type,t.$uo.$type,new t.as(2,{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,t){n.bv("ActualBoxTopRightPosition",t.d(),t.c())}));t.$uo.a8="ActualBoxBottomLeftPosition";t.$uo.actualBoxBottomLeftPositionProperty=t.$ar.i("ActualBoxBottomLeftPosition",t.$z.$type,t.$uo.$type,new t.as(2,{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,t){n.bv("ActualBoxBottomLeftPosition",t.d(),t.c())}));t.$uo.a9="ActualBoxBottomRightPosition";t.$uo.actualBoxBottomRightPositionProperty=t.$ar.i("ActualBoxBottomRightPosition",t.$z.$type,t.$uo.$type,new t.as(2,{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(n,t){n.bv("ActualBoxBottomRightPosition",t.d(),t.c())}));t.$uo.bf="ActualBoxWidth";t.$uo.actualBoxWidthProperty=t.$ar.i("ActualBoxWidth",Number,t.$uo.$type,new t.as(2,0,function(n,t){n.bv("ActualBoxWidth",t.d(),t.c())}));t.$uo.bc="ActualBoxHeight";t.$uo.actualBoxHeightProperty=t.$ar.i("ActualBoxHeight",Number,t.$uo.$type,new t.as(2,0,function(n,t){n.bv("ActualBoxHeight",t.d(),t.c())}));t.$uo.ba="ActualBoxFullHeight";t.$uo.actualBoxFullHeightProperty=t.$ar.i("ActualBoxFullHeight",Number,t.$uo.$type,new t.as(2,0,function(n,t){n.bv("ActualBoxFullHeight",t.d(),t.c())}));t.$uo.bb="ActualBoxFullWidth";t.$uo.actualBoxFullWidthProperty=t.$ar.i("ActualBoxFullWidth",Number,t.$uo.$type,new t.as(2,0,function(n,t){n.bv("ActualBoxFullWidth",t.d(),t.c())}));t.$uo.bm="PointerPoints";t.$uo.pointerPointsProperty=t.$ar.i("PointerPoints",t.$cb.$type,t.$uo.$type,new t.as(2,null,function(n,t){n.bv("PointerPoints",t.d(),t.c())}));t.$uo.bl="PointerOutlinePoints";t.$uo.pointerOutlinePointsProperty=t.$ar.i("PointerOutlinePoints",t.$cb.$type,t.$uo.$type,new t.as(2,null,function(n,t){n.bv("PointerOutlinePoints",t.d(),t.c())}));t.$he.bg="Extent";t.$he.b1=t.$ar.i("Extent",Number,t.$he.$type,new t.as(2,50,function(n,t){n.ay=t.c()}));t.$hc.cl="FormatLabel";t.$hc.formatLabelProperty=t.$ar.i("FormatLabel",t.$j2.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("FormatLabel",r.d(),r.c())}));t.$hc.cx="RootCanvas";t.$hc.ck="FastItemsSourceProvider";t.$hc.cy="SeriesViewer";t.$hc.c8="Title";t.$hc.titleProperty=t.$ar.i("Title",String,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("Title",r.d(),r.c())}));t.$hc.c1="Stroke";t.$hc.strokeProperty=t.$ar.i("Stroke",t.$b3.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("Stroke",r.d(),r.c())}));t.$hc.ch="ActualStroke";t.$hc.actualStrokeProperty=t.$ar.i("ActualStroke",t.$b3.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("ActualStroke",r.d(),r.c())}));t.$hc.c2="StrokeThickness";t.$hc.strokeThicknessProperty=t.$ar.i("StrokeThickness",Number,t.$hc.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("StrokeThickness",r.d(),r.c())}));t.$hc.c0="StrokeDashArray";t.$hc.strokeDashArrayProperty=t.$ar.i("StrokeDashArray",t.$b5.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("StrokeDashArray",r.d(),r.c())}));t.$hc.cz="Strip";t.$hc.stripProperty=t.$ar.i("Strip",t.$b3.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("Strip",r.d(),r.c())}));t.$hc.cs="MajorStroke";t.$hc.majorStrokeProperty=t.$ar.i("MajorStroke",t.$b3.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("MajorStroke",r.d(),r.c())}));t.$hc.cf="ActualMajorStroke";t.$hc.actualMajorStrokeProperty=t.$ar.i("ActualMajorStroke",t.$b3.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("ActualMajorStroke",r.d(),r.c())}));t.$hc.ct="MajorStrokeThickness";t.$hc.majorStrokeThicknessProperty=t.$ar.i("MajorStrokeThickness",Number,t.$hc.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("MajorStrokeThickness",r.d(),r.c())}));t.$hc.cr="MajorStrokeDashArray";t.$hc.majorStrokeDashArrayProperty=t.$ar.i("MajorStrokeDashArray",t.$b5.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("MajorStrokeDashArray",r.d(),r.c())}));t.$hc.cv="MinorStroke";t.$hc.minorStrokeProperty=t.$ar.i("MinorStroke",t.$b3.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("MinorStroke",r.d(),r.c())}));t.$hc.cg="ActualMinorStroke";t.$hc.actualMinorStrokeProperty=t.$ar.i("ActualMinorStroke",t.$b3.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("ActualMinorStroke",r.d(),r.c())}));t.$hc.cw="MinorStrokeThickness";t.$hc.minorStrokeThicknessProperty=t.$ar.i("MinorStrokeThickness",Number,t.$hc.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("MinorStrokeThickness",r.d(),r.c())}));t.$hc.cu="MinorStrokeDashArray";t.$hc.minorStrokeDashArrayProperty=t.$ar.i("MinorStrokeDashArray",t.$b5.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("MinorStrokeDashArray",r.d(),r.c())}));t.$hc.c5="TickStroke";t.$hc.tickStrokeProperty=t.$ar.i("TickStroke",t.$b3.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("TickStroke",r.d(),r.c())}));t.$hc.c6="TickStrokeThickness";t.$hc.tickStrokeThicknessProperty=t.$ar.i("TickStrokeThickness",Number,t.$hc.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("TickStrokeThickness",r.d(),r.c())}));t.$hc.c4="TickStrokeDashArray";t.$hc.tickStrokeDashArrayProperty=t.$ar.i("TickStrokeDashArray",t.$b5.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("TickStrokeDashArray",r.d(),r.c())}));t.$hc.c3="TickLength";t.$hc.tickLengthProperty=t.$ar.i("TickLength",Number,t.$hc.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("TickLength",r.d(),r.c())}));t.$hc.cm="IsDisabled";t.$hc.isDisabledProperty=t.$ar.i("IsDisabled",t.$f.$type,t.$hc.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("IsDisabled",r.d(),r.c())}));t.$hc.cn="IsInverted";t.$hc.isInvertedProperty=t.$ar.i("IsInverted",t.$f.$type,t.$hc.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("IsInverted",r.d(),r.c())}));t.$hc.cq="LabelSettings";t.$hc.labelSettingsProperty=t.$ar.i("LabelSettings",t.$hg.$type,t.$hc.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("LabelSettings",r.d(),r.c())}));t.$hc.co="LabelPanelStyle";t.$hc.labelPanelStyleProperty=t.$ar.i("LabelPanelStyle",t.$a4.$type,t.$hc.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("LabelPanelStyle",r.d(),r.c())}));t.$hc.ci="CrossingAxis";t.$hc.crossingAxisProperty=t.$ar.i("CrossingAxis",t.$hc.$type,t.$hc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("CrossingAxis",r.d(),r.c())}));t.$hc.cj="CrossingValue";t.$hc.crossingValueProperty=t.$ar.i("CrossingValue",n.ig.$op.$type,t.$hc.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("CrossingValue",r.d(),r.c())}));t.$hc.c9="TitleSettings";t.$hc.titleSettingsProperty=t.$ar.i("TitleSettings",t.$i2.$type,t.$hc.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("TitleSettings",r.d(),r.c())}));t.$hc.cp="Label";t.$hc.labelProperty=t.$ar.i("Label",n.ig.$op.$type,t.$hc.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$hc.$type,i).dq("Label",r.d(),r.c())}));t.$hg.aj="TextStyle";t.$hg.ah="TextColor";t.$hg.ad="Location";t.$hg.am="Visibility";t.$hg.ag="ShowFirstLabel";t.$hg.y="Angle";t.$hg.aa="Extent";t.$hg.ae="Margin";t.$hg.ac="LeftMargin";t.$hg.af="RightMargin";t.$hg.ak="TopMargin";t.$hg.z="BottomMargin";t.$hg.ab="HorizontalAlignment";t.$hg.al="VerticalAlignment";t.$hg.extentPropertyDefault=50;t.$i2.a1="AxisTitlePosition";t.$ii.c=7;t.$hb.f8="FastItemsSource";t.$hb.fastItemsSourceProperty=t.$ar.i("FastItemsSource",t.$jw.$type,t.$hb.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hb.$type,i).dq("FastItemsSource",r.d(),r.c())}));t.$hb.gc="ItemsSource";t.$hb.itemsSourceProperty=t.$ar.i("ItemsSource",n.ig.IEnumerable.prototype.$type,t.$hb.$type,new t.as(2,null,function(i,r){var u=n.ig.util.cast(t.$hb.$type,i);u.at()!=null&&u.at().releaseFastItemsSource(r.d());n.ig.util.cast(t.$hb.$type,i).dq("ItemsSource",r.d(),r.c())}));t.$hb.gb="ItemsCount";t.$hb.f7="CategoryMode";t.$hb.f9="Gap";t.$hb.gapProperty=t.$ar.i("Gap",Number,t.$hb.$type,new t.as(2,.2,function(i,r){n.ig.util.cast(t.$hb.$type,i).dq("Gap",r.d(),r.c())}));t.$hb.gd="Overlap";t.$hb.overlapProperty=t.$ar.i("Overlap",Number,t.$hb.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$hb.$type,i).dq("Overlap",r.d(),r.c())}));t.$hb.ge="UseClusteringMode";t.$hb.useClusteringModeProperty=t.$ar.i("UseClusteringMode",t.$f.$type,t.$hb.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$hb.$type,i).dq("UseClusteringMode",r.d(),r.c())}));t.$hb.ga="GroupCount";t.$jr.hm="StartAngleOffset";t.$jr.startAngleOffsetProperty=t.$ar.i("StartAngleOffset",Number,t.$jr.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$jr.$type,i).dq("StartAngleOffset",r.d(),r.c())}));t.$jr.hl="Interval";t.$jr.intervalProperty=t.$ar.i("Interval",Number,t.$jr.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$jr.$type,i).dq("Interval",r.d(),r.c());n.ig.util.cast(t.$jr.$type,i).du(!1)}));t.$lf.ht="DisplayType";t.$lf.displayTypeProperty=t.$ar.i("DisplayType",t.$lh.$type,t.$lf.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$lf.$type,i).dq("DisplayType",r.d(),r.c())}));t.$lf.hw="MinimumValue";t.$lf.minimumValueProperty=t.$ar.i("MinimumValue",t.$bt.$type,t.$lf.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$lf.$type,i).dq("MinimumValue",r.d(),r.c())}));t.$lf.hv="MaximumValue";t.$lf.maximumValueProperty=t.$ar.i("MaximumValue",t.$bt.$type,t.$lf.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$lf.$type,i).dq("MaximumValue",r.d(),r.c())}));t.$lf.hu="Interval";t.$lf.intervalProperty=t.$ar.i("Interval",n.ig.Number.prototype.$type,t.$lf.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$lf.$type,i).dq("Interval",r.d(),r.c())}));t.$lf.hp="ActualMinimumValue";t.$lf.ho="ActualMaximumValue";t.$lf.hs="DateTimeMemberPath";t.$lf.dateTimeMemberPathProperty=t.$ar.i("DateTimeMemberPath",String,t.$lf.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$lf.$type,i).dq("DateTimeMemberPath",r.d(),r.c())}));t.$lf.hq="DateTimeColumn";t.$u5.g6="Interval";t.$u5.intervalProperty=t.$ar.i("Interval",Number,t.$u5.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$u5.$type,i).dq("Interval",r.d(),r.c());n.ig.util.cast(t.$u5.$type,i).du(!1)}));t.$l4.g6="Interval";t.$l4.intervalProperty=t.$ar.i("Interval",Number,t.$l4.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$l4.$type,i).dq("Interval",r.d(),r.c());n.ig.util.cast(t.$l4.$type,i).du(!1)}));t.$hl.gl="MinimumValue";t.$hl.minimumValueProperty=t.$ar.i("MinimumValue",Number,t.$hl.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$hl.$type,i).dq("MinimumValue",r.d(),r.c())}));t.$hl.gf="ActualMinimumValue";t.$hl.gk="MaximumValue";t.$hl.maximumValueProperty=t.$ar.i("MaximumValue",Number,t.$hl.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$hl.$type,i).dq("MaximumValue",r.d(),r.c())}));t.$hl.ge="ActualMaximumValue";t.$hl.gh="Interval";t.$hl.intervalProperty=t.$ar.i("Interval",Number,t.$hl.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$hl.$type,i).dq("Interval",r.d(),r.c())}));t.$hl.gm="ReferenceValue";t.$hl.referenceValueProperty=t.$ar.i("ReferenceValue",Number,t.$hl.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$hl.$type,i).dq("ReferenceValue",r.d(),r.c())}));t.$hl.gi="IsLogarithmic";t.$hl.isLogarithmicProperty=t.$ar.i("IsLogarithmic",t.$f.$type,t.$hl.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$hl.$type,i).dq("IsLogarithmic",r.d(),r.c())}));t.$hl.gd="ActualIsLogarithmic";t.$hl.gj="LogarithmBase";t.$hl.logarithmBaseProperty=t.$ar.i("LogarithmBase",n.ig.Number.prototype.$type,t.$hl.$type,new t.as(2,10,function(i,r){n.ig.util.cast(t.$hl.$type,i).dq("LogarithmBase",r.d(),r.c())}));t.$hl.gn="TickmarkValues";t.$hl.tickmarkValuesProperty=t.$ar.i("TickmarkValues",t.$ht.$type,t.$hl.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$hl.$type,i).dq("TickmarkValues",r.d(),r.c())}));t.$hl.gg="ActualTickmarkValues";t.$jl.hc="StartAngleOffset";t.$jl.startAngleOffsetProperty=t.$ar.i("StartAngleOffset",Number,t.$jl.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$jl.$type,i).dq("StartAngleOffset",r.d(),r.c())}));t.$ir.g8="ScaleMode";t.$ir.scaleModeProperty=t.$ar.i("ScaleMode",t.$iv.$type,t.$ir.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$ir.$type,i).dq("ScaleMode",r.d(),r.c())}));t.$ir.g9="Scaler";t.$ir.scalerProperty=t.$ar.i("Scaler",t.$it.$type,t.$ir.$type,new t.as(2,null,t.$ir.hd));t.$ir.g7="ActualScaler";t.$i7.hi="RadiusExtentScale";t.$i7.radiusExtentScaleProperty=t.$ar.i("RadiusExtentScale",Number,t.$i7.$type,new t.as(2,.75,function(i,r){n.ig.util.cast(t.$i7.$type,i).dq("RadiusExtentScale",r.d(),r.c())}));t.$i7.hh="InnerRadiusExtentScale";t.$i7.innerRadiusExtentScaleProperty=t.$ar.i("InnerRadiusExtentScale",Number,t.$i7.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$i7.$type,i).dq("InnerRadiusExtentScale",r.d(),r.c())}));t.$it.q="ActualMinimumValue";t.$it.y=t.$ar.i("ActualMinimumValue",Number,t.$it.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$it.$type,i).t("ActualMinimumValue",r.d(),r.c())}));t.$it.p="ActualMaximumValue";t.$it.x=t.$ar.i("ActualMaximumValue",Number,t.$it.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$it.$type,i).t("ActualMaximumValue",r.d(),r.c())}));t.$ig.s=494065645841247e-338;t.$ig.u="LogarithmBase";t.$ig.v=t.$ar.i("LogarithmBase",n.ig.Number.prototype.$type,t.$ig.$type,new t.as(2,10,function(){}));t.$kw.h="TrendLineDashArray";t.$kw.l="TrendLineType";t.$kw.j="TrendLinePeriod";t.$kw.g="TrendLineBrush";t.$kw.f="ActualTrendLineBrush";t.$kw.k="TrendLineThickness";t.$kw.i="TrendLineDashCap";t.$kw.m="TrendLineZIndex";t.$fw.j6="MarkerType";t.$fw.markerTypeProperty=t.$ar.i("MarkerType",t.$gc.$type,t.$fw.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$fw.$type,i).raisePropertyChanged("MarkerType",r.d(),r.c())}));t.$fw.j5="MarkerTemplate";t.$fw.markerTemplateProperty=t.$ar.i("MarkerTemplate",t.$cg.$type,t.$fw.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$fw.$type,i).raisePropertyChanged("MarkerTemplate",r.d(),r.c())}));t.$fw.j0="ActualMarkerTemplate";t.$fw.actualMarkerTemplateProperty=t.$ar.i("ActualMarkerTemplate",t.$cg.$type,t.$fw.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$fw.$type,i).raisePropertyChanged("ActualMarkerTemplate",r.d(),r.c())}));t.$fw.j8=null;t.$fw.j2="MarkerBrush";t.$fw.markerBrushProperty=t.$ar.i("MarkerBrush",t.$b3.$type,t.$fw.$type,new t.as(1,function(i,r){var u=n.ig.util.cast(t.$fw.$type,i);u.raisePropertyChanged("MarkerBrush",r.d(),r.c())}));t.$fw.jy="ActualMarkerBrush";t.$fw.actualMarkerBrushProperty=t.$ar.i("ActualMarkerBrush",t.$b3.$type,t.$fw.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$fw.$type,i).raisePropertyChanged("ActualMarkerBrush",r.d(),r.c())}));t.$fw.j3="MarkerOutline";t.$fw.markerOutlineProperty=t.$ar.i("MarkerOutline",t.$b3.$type,t.$fw.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$fw.$type,i).raisePropertyChanged("MarkerOutline",r.d(),r.c())}));t.$fw.jz="ActualMarkerOutline";t.$fw.actualMarkerOutlineProperty=t.$ar.i("ActualMarkerOutline",t.$b3.$type,t.$fw.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$fw.$type,i).raisePropertyChanged("ActualMarkerOutline",r.d(),r.c())}));t.$fw.j4="MarkerStyle";t.$fw.markerStyleProperty=t.$ar.i("MarkerStyle",t.$a4.$type,t.$fw.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$fw.$type,i).raisePropertyChanged("MarkerStyle",r.d(),r.c())}));t.$fw.j7="UseLightweightMarkers";t.$fw.useLightweightMarkersProperty=t.$ar.i("UseLightweightMarkers",t.$f.$type,t.$fw.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$fw.$type,i).raisePropertyChanged("UseLightweightMarkers",r.d(),r.c())}));t.$n0.lg="XAxis";t.$n0.xAxisProperty=t.$ar.i("XAxis",t.$l7.$type,t.$n0.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("XAxis",r.d(),r.c())}));t.$n0.lk="YAxis";t.$n0.yAxisProperty=t.$ar.i("YAxis",t.$iq.$type,t.$n0.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("YAxis",r.d(),r.c())}));t.$n0.lj="XMemberPath";t.$n0.xMemberPathProperty=t.$ar.i("XMemberPath",String,t.$n0.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("XMemberPath",r.d(),r.c())}));t.$n0.lh="XColumn";t.$n0.ln="YMemberPath";t.$n0.yMemberPathProperty=t.$ar.i("YMemberPath",String,t.$n0.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("YMemberPath",r.d(),r.c())}));t.$n0.ll="YColumn";t.$n0.trendLineTypeProperty=t.$ar.i("TrendLineType",t.$kk.$type,t.$n0.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("TrendLineType",r.d(),r.c())}));t.$n0.trendLineBrushProperty=t.$ar.i("TrendLineBrush",t.$b3.$type,t.$n0.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("TrendLineBrush",r.d(),r.c())}));t.$n0.actualTrendLineBrushProperty=t.$ar.i("ActualTrendLineBrush",t.$b3.$type,t.$n0.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("ActualTrendLineBrush",r.d(),r.c())}));t.$n0.trendLineThicknessProperty=t.$ar.i("TrendLineThickness",Number,t.$n0.$type,new t.as(2,1.5,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("TrendLineThickness",r.d(),r.c())}));t.$n0.trendLineDashCapProperty=t.$ar.i("TrendLineDashCap",t.$lv.$type,t.$n0.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("TrendLineDashCap",r.d(),r.c())}));t.$n0.trendLineDashArrayProperty=t.$ar.i("TrendLineDashArray",t.$b5.$type,t.$n0.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("TrendLineDashArray",r.d(),r.c())}));t.$n0.trendLinePeriodProperty=t.$ar.i("TrendLinePeriod",n.ig.Number.prototype.$type,t.$n0.$type,new t.as(2,7,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("TrendLinePeriod",r.d(),r.c())}));t.$n0.le="MarkerCollisionAvoidance";t.$n0.markerCollisionAvoidanceProperty=t.$ar.i("MarkerCollisionAvoidance",t.$n7.$type,t.$n0.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("MarkerCollisionAvoidance",r.d(),r.c())}));t.$n0.trendLineZIndexProperty=t.$ar.i("TrendLineZIndex",n.ig.Number.prototype.$type,t.$n0.$type,new t.as(2,1001,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("TrendLineZIndex",r.d(),r.c())}));t.$n0.lf="MaximumMarkers";t.$n0.maximumMarkersProperty=t.$ar.i("MaximumMarkers",n.ig.Number.prototype.$type,t.$n0.$type,new t.as(2,400,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("MaximumMarkers",r.d(),r.c())}));t.$n0.ld="ErrorBarSettings";t.$n0.errorBarSettingsProperty=t.$ar.i("ErrorBarSettings",t.$od.$type,t.$n0.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$n0.$type,i).raisePropertyChanged("ErrorBarSettings",r.d(),r.c())}));t.$nz.m7="RadiusMemberPath";t.$nz.radiusMemberPathProperty=t.$ar.i("RadiusMemberPath",String,t.$nz.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$nz.$type,i).raisePropertyChanged("RadiusMemberPath",r.d(),r.c())}));t.$nz.m5="RadiusColumn";t.$nz.m8="RadiusScale";t.$nz.radiusScaleProperty=t.$ar.i("RadiusScale",t.$ow.$type,t.$nz.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$nz.$type,i).raisePropertyChanged("RadiusScale",r.d(),r.c())}));t.$nz.m4="LabelMemberPath";t.$nz.labelMemberPathProperty=t.$ar.i("LabelMemberPath",String,t.$nz.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$nz.$type,i).raisePropertyChanged("LabelMemberPath",r.d(),r.c())}));t.$nz.m2="LabelColumn";t.$nz.m0="FillMemberPath";t.$nz.fillMemberPathProperty=t.$ar.i("FillMemberPath",String,t.$nz.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$nz.$type,i).raisePropertyChanged("FillMemberPath",r.d(),r.c())}));t.$nz.m1="FillScale";t.$nz.fillScaleProperty=t.$ar.i("FillScale",t.$ox.$type,t.$nz.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$nz.$type,i).raisePropertyChanged("FillScale",r.d(),r.c())}));t.$nz.my="FillColumn";t.$o0.u="BrushSelectionMode";t.$o0.brushSelectionModeProperty=t.$ar.i("BrushSelectionMode",t.$o1.$type,t.$o0.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$o0.$type,i).o("BrushSelectionMode",r.d(),r.c())}));t.$ow.q="MinimumValue";t.$ow.minimumValueProperty=t.$ar.i("MinimumValue",Number,t.$ow.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$ow.$type,i).s("MinimumValue",r.d(),r.c())}));t.$ow.p="MaximumValue";t.$ow.maximumValueProperty=t.$ar.i("MaximumValue",Number,t.$ow.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$ow.$type,i).s("MaximumValue",r.d(),r.c())}));t.$ow.n="IsLogarithmic";t.$ow.isLogarithmicProperty=t.$ar.i("IsLogarithmic",t.$f.$type,t.$ow.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$ow.$type,i).s("IsLogarithmic",r.d(),r.c())}));t.$ow.o="LogarithmBase";t.$ow.logarithmBaseProperty=t.$ar.i("LogarithmBase",n.ig.Number.prototype.$type,t.$ow.$type,new t.as(2,10,function(i,r){n.ig.util.cast(t.$ow.$type,i).s("LogarithmBase",r.d(),r.c())}));t.$o2.aa="MinimumValue";t.$o2.minimumValueProperty=t.$ar.i("MinimumValue",Number,t.$o2.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$o2.$type,i).o("MinimumValue",r.d(),r.c())}));t.$o2.z="MaximumValue";t.$o2.maximumValueProperty=t.$ar.i("MaximumValue",Number,t.$o2.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$o2.$type,i).o("MaximumValue",r.d(),r.c())}));t.$o2.x="IsLogarithmic";t.$o2.isLogarithmicProperty=t.$ar.i("IsLogarithmic",t.$f.$type,t.$o2.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$o2.$type,i).o("IsLogarithmic",r.d(),r.c())}));t.$o2.y="LogarithmBase";t.$o2.logarithmBaseProperty=t.$ar.i("LogarithmBase",n.ig.Number.prototype.$type,t.$o2.$type,new t.as(2,10,function(i,r){n.ig.util.cast(t.$o2.$type,i).o("LogarithmBase",r.d(),r.c())}));t.$fv.l3="IsCustomCategoryStyleAllowed";t.$fv.isCustomCategoryStyleAllowedProperty=t.$ar.i("IsCustomCategoryStyleAllowed",t.$f.$type,t.$fv.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$fv.$type,i).raisePropertyChanged("IsCustomCategoryStyleAllowed",r.d(),r.c())}));t.$fv.l2="IsCustomCategoryMarkerStyleAllowed";t.$fv.isCustomCategoryMarkerStyleAllowedProperty=t.$ar.i("IsCustomCategoryMarkerStyleAllowed",t.$f.$type,t.$fv.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$fv.$type,i).raisePropertyChanged("IsCustomCategoryMarkerStyleAllowed",r.d(),r.c())}));t.$fv.l1="ErrorBarSettings";t.$fv.l6="UseHighMarkerFidelity";t.$fv.useHighMarkerFidelityProperty=t.$ar.i("UseHighMarkerFidelity",t.$f.$type,t.$fv.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$fv.$type,i).raisePropertyChanged("UseHighMarkerFidelity",r.d(),r.c())}));t.$fv.l5="TransitionInMode";t.$fv.transitionInModeProperty=t.$ar.i("TransitionInMode",t.$q1.$type,t.$fv.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$fv.$type,i).raisePropertyChanged("TransitionInMode",r.d(),r.c())}));t.$fv.l4="IsTransitionInEnabled";t.$fv.isTransitionInEnabledProperty=t.$ar.i("IsTransitionInEnabled",t.$f.$type,t.$fv.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$fv.$type,i).raisePropertyChanged("IsTransitionInEnabled",r.d(),r.c())}));t.$kc.m0="ValueMemberPath";t.$kc.valueMemberPathProperty=t.$ar.i("ValueMemberPath",String,t.$kc.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$kc.$type,i).raisePropertyChanged("ValueMemberPath",r.d(),r.c())}));t.$kc.my="ValueColumn";t.$kc.trendLineTypeProperty=t.$ar.i("TrendLineType",t.$kk.$type,t.$kc.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$kc.$type,i).raisePropertyChanged("TrendLineType",r.d(),r.c())}));t.$kc.trendLineBrushProperty=t.$ar.i("TrendLineBrush",t.$b3.$type,t.$kc.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$kc.$type,i).raisePropertyChanged("TrendLineBrush",r.d(),r.c())}));t.$kc.actualTrendLineBrushProperty=t.$ar.i("ActualTrendLineBrush",t.$b3.$type,t.$kc.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$kc.$type,i).raisePropertyChanged("ActualTrendLineBrush",r.d(),r.c())}));t.$kc.trendLineThicknessProperty=t.$ar.i("TrendLineThickness",Number,t.$kc.$type,new t.as(2,1.5,function(i,r){n.ig.util.cast(t.$kc.$type,i).raisePropertyChanged("TrendLineThickness",r.d(),r.c())}));t.$kc.trendLineDashCapProperty=t.$ar.i("TrendLineDashCap",t.$lv.$type,t.$kc.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$kc.$type,i).raisePropertyChanged("TrendLineDashCap",r.d(),r.c())}));t.$kc.trendLineDashArrayProperty=t.$ar.i("TrendLineDashArray",t.$b5.$type,t.$kc.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$kc.$type,i).raisePropertyChanged("TrendLineDashArray",r.d(),r.c())}));t.$kc.trendLinePeriodProperty=t.$ar.i("TrendLinePeriod",n.ig.Number.prototype.$type,t.$kc.$type,new t.as(2,7,function(i,r){n.ig.util.cast(t.$kc.$type,i).raisePropertyChanged("TrendLinePeriod",r.d(),r.c())}));t.$kc.trendLineZIndexProperty=t.$ar.i("TrendLineZIndex",n.ig.Number.prototype.$type,t.$kc.$type,new t.as(2,1001,function(i,r){n.ig.util.cast(t.$kc.$type,i).raisePropertyChanged("TrendLineZIndex",r.d(),r.c())}));t.$vb.ni="XAxis";t.$vb.xAxisProperty=t.$ar.i("XAxis",t.$l7.$type,t.$vb.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vb.$type,i).raisePropertyChanged("XAxis",r.d(),r.c())}));t.$vb.nj="YAxis";t.$vb.yAxisProperty=t.$ar.i("YAxis",t.$l4.$type,t.$vb.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vb.$type,i).raisePropertyChanged("YAxis",r.d(),r.c())}));t.$vc.np="RadiusX";t.$vc.radiusXProperty=t.$ar.i("RadiusX",Number,t.$vc.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$vc.$type,i).raisePropertyChanged("RadiusX",r.d(),r.c())}));t.$vc.nq="RadiusY";t.$vc.radiusYProperty=t.$ar.i("RadiusY",Number,t.$vc.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$vc.$type,i).raisePropertyChanged("RadiusY",r.d(),r.c())}));t.$kb.nk="XAxis";t.$kb.xAxisProperty=t.$ar.i("XAxis",t.$hb.$type,t.$kb.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$kb.$type,i).raisePropertyChanged("XAxis",r.d(),r.c())}));t.$kb.nl="YAxis";t.$kb.yAxisProperty=t.$ar.i("YAxis",t.$iq.$type,t.$kb.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$kb.$type,i).raisePropertyChanged("YAxis",r.d(),r.c())}));t.$rp.my="LowMemberPath";t.$rp.lowMemberPathProperty=t.$ar.i("LowMemberPath",String,t.$rp.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$rp.$type,i).raisePropertyChanged("LowMemberPath",r.d(),r.c())}));t.$rp.mw="LowColumn";t.$rp.mv="HighMemberPath";t.$rp.highMemberPathProperty=t.$ar.i("HighMemberPath",String,t.$rp.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$rp.$type,i).raisePropertyChanged("HighMemberPath",r.d(),r.c())}));t.$rp.mt="HighColumn";t.$ro.m2="XAxis";t.$ro.xAxisProperty=t.$ar.i("XAxis",t.$hb.$type,t.$ro.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$ro.$type,i).raisePropertyChanged("XAxis",r.d(),r.c())}));t.$ro.m3="YAxis";t.$ro.yAxisProperty=t.$ar.i("YAxis",t.$iq.$type,t.$ro.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$ro.$type,i).raisePropertyChanged("YAxis",r.d(),r.c())}));t.$vh.m9="RadiusX";t.$vh.radiusXProperty=t.$ar.i("RadiusX",Number,t.$vh.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$vh.$type,i).raisePropertyChanged("RadiusX",r.d(),r.c())}));t.$vh.na="RadiusY";t.$vh.radiusYProperty=t.$ar.i("RadiusY",Number,t.$vh.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$vh.$type,i).raisePropertyChanged("RadiusY",r.d(),r.c())}));t.$mv.ns="UnknownValuePlotting";t.$mv.unknownValuePlottingProperty=t.$ar.i("UnknownValuePlotting",t.$lt.$type,t.$mv.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$mv.$type,i).raisePropertyChanged("UnknownValuePlotting",r.d(),r.c())}));t.$ks.s=0;t.$vl.nt="RadiusX";t.$vl.radiusXProperty=t.$ar.i("RadiusX",Number,t.$vl.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$vl.$type,i).raisePropertyChanged("RadiusX",r.d(),r.c())}));t.$vl.nu="RadiusY";t.$vl.radiusYProperty=t.$ar.i("RadiusY",Number,t.$vl.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$vl.$type,i).raisePropertyChanged("RadiusY",r.d(),r.c())}));t.$mc.ns="UnknownValuePlotting";t.$mc.unknownValuePlottingProperty=t.$ar.i("UnknownValuePlotting",t.$lt.$type,t.$mc.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$mc.$type,i).raisePropertyChanged("UnknownValuePlotting",r.d(),r.c())}));t.$mn.nx="SplineType";t.$mn.splineTypeProperty=t.$ar.i("SplineType",t.$mp.$type,t.$mn.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$mn.$type,i).raisePropertyChanged("SplineType",r.d(),r.c())}));t.$qz.nt="NegativeBrush";t.$qz.negativeBrushProperty=t.$ar.i("NegativeBrush",t.$b3.$type,t.$qz.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$qz.$type,i).raisePropertyChanged("NegativeBrush",r.d(),r.c())}));t.$qz.nu="RadiusX";t.$qz.radiusXProperty=t.$ar.i("RadiusX",Number,t.$qz.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$qz.$type,i).raisePropertyChanged("RadiusX",r.d(),r.c())}));t.$qz.nv="RadiusY";t.$qz.radiusYProperty=t.$ar.i("RadiusY",Number,t.$qz.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$qz.$type,i).raisePropertyChanged("RadiusY",r.d(),r.c())}));t.$my.b9="ContentPresenter";t.$my.cb="FastItemsSource";t.$my.eh=t.$ar.i("FastItemsSource",t.$m9.$type,t.$my.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("FastItemsSource",r.d(),r.c())}));t.$my.c7="ValueColumn";t.$my.b2=30;t.$my.cf="ItemsSource";t.$my.itemsSourceProperty=t.$ar.i("ItemsSource",n.ig.IEnumerable.prototype.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("ItemsSource",r.d(),r.c())}));t.$my.cd="InnerExtent";t.$my.innerExtentProperty=t.$ar.i("InnerExtent",Number,t.$my.$type,new t.as(2,0,function(n,t){n.dw("InnerExtent",t.d(),t.c())}));t.$my.c9="ValueMemberPath";t.$my.valueMemberPathProperty=t.$ar.i("ValueMemberPath",String,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("ValueMemberPath",r.d(),r.c())}));t.$my.cj="LabelMemberPath";t.$my.labelMemberPathProperty=t.$ar.i("LabelMemberPath",String,t.$my.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LabelMemberPath",r.d(),r.c())}));t.$my.cg="LabelColumn";t.$my.ck="LabelsPosition";t.$my.labelsPositionProperty=t.$ar.i("LabelsPosition",t.$ne.$type,t.$my.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LabelsPosition",r.d(),r.c())}));t.$my.cp="LeaderLineVisibility";t.$my.leaderLineVisibilityProperty=t.$ar.i("LeaderLineVisibility",t.$a3.$type,t.$my.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LeaderLineVisibility",r.d(),r.c())}));t.$my.cn="LeaderLineStyle";t.$my.leaderLineStyleProperty=t.$ar.i("LeaderLineStyle",t.$a4.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LeaderLineStyle",r.d(),r.c())}));t.$my.co="LeaderLineType";t.$my.leaderLineTypeProperty=t.$ar.i("LeaderLineType",t.$nf.$type,t.$my.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LeaderLineType",r.d(),r.c())}));t.$my.cm="LeaderLineMargin";t.$my.leaderLineMarginProperty=t.$ar.i("LeaderLineMargin",Number,t.$my.$type,new t.as(2,6,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LeaderLineMargin",r.d(),r.c())}));t.$my.c5="ToolTip";t.$my.toolTipProperty=t.$ar.i("ToolTip",n.ig.$op.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("ToolTip",r.d(),r.c())}));t.$my.cw="OthersCategoryThreshold";t.$my.othersCategoryThresholdProperty=t.$ar.i("OthersCategoryThreshold",Number,t.$my.$type,new t.as(2,3,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("OthersCategoryThreshold",r.d(),r.c())}));t.$my.cx="OthersCategoryType";t.$my.othersCategoryTypeProperty=t.$ar.i("OthersCategoryType",t.$ng.$type,t.$my.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("OthersCategoryType",r.d(),r.c())}));t.$my.cv="OthersCategoryText";t.$my.othersCategoryTextProperty=t.$ar.i("OthersCategoryText",String,t.$my.$type,new t.as(2,"Others",function(i,r){n.ig.util.cast(t.$my.$type,i).dw("OthersCategoryText",r.d(),r.c())}));t.$my.ca="ExplodedRadius";t.$my.explodedRadiusProperty=t.$ar.i("ExplodedRadius",Number,t.$my.$type,new t.as(2,.2,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("ExplodedRadius",r.d(),r.c())}));t.$my.cz="RadiusFactor";t.$my.radiusFactorProperty=t.$ar.i("RadiusFactor",Number,t.$my.$type,new t.as(2,.9,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("RadiusFactor",r.d(),r.c())}));t.$my.b7="AllowSliceSelection";t.$my.allowSliceSelectionProperty=t.$ar.i("AllowSliceSelection",t.$f.$type,t.$my.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("AllowSliceSelection",r.d(),r.c())}));t.$my.b6="AllowSliceExplosion";t.$my.allowSliceExplosionProperty=t.$ar.i("AllowSliceExplosion",t.$f.$type,t.$my.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("AllowSliceExplosion",r.d(),r.c())}));t.$my.cs="Legend";t.$my.legendProperty=t.$ar.i("Legend",t.$ni.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("Legend",r.d(),r.c())}));t.$my.ch="LabelExtent";t.$my.labelExtentProperty=t.$ar.i("LabelExtent",Number,t.$my.$type,new t.as(2,10,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LabelExtent",r.d(),r.c())}));t.$my.c1="StartAngle";t.$my.startAngleProperty=t.$ar.i("StartAngle",Number,t.$my.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("StartAngle",r.d(),r.c())}));t.$my.c2="SweepDirection";t.$my.sweepDirectionProperty=t.$ar.i("SweepDirection",t.$d5.$type,t.$my.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("SweepDirection",r.d(),r.c())}));t.$my.ct="OthersCategoryStyle";t.$my.othersCategoryStyleProperty=t.$ar.i("OthersCategoryStyle",t.$a4.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("OthersCategoryStyle",r.d(),r.c())}));t.$my.c0="SelectedStyle";t.$my.selectedStyleProperty=t.$ar.i("SelectedStyle",t.$a4.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("SelectedStyle",r.d(),r.c())}));t.$my.c6="ToolTipStyle";t.$my.toolTipStyleProperty=t.$ar.i("ToolTipStyle",t.$a4.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("ToolTipStyle",r.d(),r.c())}));t.$my.b8="Brushes";t.$my.brushesProperty=t.$ar.i("Brushes",t.$fd.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("Brushes",r.d(),r.c())}));t.$my.cy="Outlines";t.$my.outlinesProperty=t.$ar.i("Outlines",t.$fd.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("Outlines",r.d(),r.c())}));t.$my.cr="LegendItemTemplate";t.$my.legendItemTemplateProperty=t.$ar.i("LegendItemTemplate",t.$cg.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LegendItemTemplate",r.d(),r.c())}));t.$my.cq="LegendItemBadgeTemplate";t.$my.legendItemBadgeTemplateProperty=t.$ar.i("LegendItemBadgeTemplate",t.$cg.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LegendItemBadgeTemplate",r.d(),r.c())}));t.$my.cl="LabelTemplate";t.$my.labelTemplateProperty=t.$ar.i("LabelTemplate",t.$cg.$type,t.$my.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("LabelTemplate",r.d(),r.c())}));t.$my.ce="IsSurfaceInteractionDisabled";t.$my.isSurfaceInteractionDisabledProperty=t.$ar.i("IsSurfaceInteractionDisabled",t.$f.$type,t.$my.$type,new t.as(2,!1,function(n,t){n.dw("IsSurfaceInteractionDisabled",t.d(),t.c())}));t.$my.cc="FormatLabel";t.$my.formatLabelProperty=t.$ar.i("FormatLabel",t.$nt.$type,t.$my.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$my.$type,i).dw("FormatLabel",r.d(),r.c())}));t.$my.c4="TextStyle";t.$vq.fs="EndAngle";t.$vq.endAngleProperty=t.$ar.i("EndAngle",Number,t.$vq.$type,new t.as(2,360,function(i,r){n.ig.util.cast(t.$vq.$type,i).dw("EndAngle",r.d(),r.c())}));t.$mz.s=0;t.$vu.a2="ItemsSource";t.$vu.itemsSourceProperty=t.$ar.i("ItemsSource",n.ig.IEnumerable.prototype.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("ItemsSource",r.d(),r.c())}));t.$vu.bt="ValueMemberPath";t.$vu.valueMemberPathProperty=t.$ar.i("ValueMemberPath",String,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("ValueMemberPath",r.d(),r.c())}));t.$vu.a5="LabelMemberPath";t.$vu.labelMemberPathProperty=t.$ar.i("LabelMemberPath",String,t.$vu.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LabelMemberPath",r.d(),r.c())}));t.$vu.a6="LabelsPosition";t.$vu.labelsPositionProperty=t.$ar.i("LabelsPosition",t.$ne.$type,t.$vu.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LabelsPosition",r.d(),r.c())}));t.$vu.bb="LeaderLineVisibility";t.$vu.leaderLineVisibilityProperty=t.$ar.i("LeaderLineVisibility",t.$a3.$type,t.$vu.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LeaderLineVisibility",r.d(),r.c())}));t.$vu.a9="LeaderLineStyle";t.$vu.leaderLineStyleProperty=t.$ar.i("LeaderLineStyle",t.$a4.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LeaderLineStyle",r.d(),r.c())}));t.$vu.ba="LeaderLineType";t.$vu.leaderLineTypeProperty=t.$ar.i("LeaderLineType",t.$nf.$type,t.$vu.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LeaderLineType",r.d(),r.c())}));t.$vu.a8="LeaderLineMargin";t.$vu.leaderLineMarginProperty=t.$ar.i("LeaderLineMargin",Number,t.$vu.$type,new t.as(2,6,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LeaderLineMargin",r.d(),r.c())}));t.$vu.bq="ToolTip";t.$vu.toolTipProperty=t.$ar.i("ToolTip",n.ig.$op.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("ToolTip",r.d(),r.c())}));t.$vu.bi="OthersCategoryThreshold";t.$vu.othersCategoryThresholdProperty=t.$ar.i("OthersCategoryThreshold",Number,t.$vu.$type,new t.as(2,3,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("OthersCategoryThreshold",r.d(),r.c())}));t.$vu.bj="OthersCategoryType";t.$vu.othersCategoryTypeProperty=t.$ar.i("OthersCategoryType",t.$ng.$type,t.$vu.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("OthersCategoryType",r.d(),r.c())}));t.$vu.bh="OthersCategoryText";t.$vu.othersCategoryTextProperty=t.$ar.i("OthersCategoryText",String,t.$vu.$type,new t.as(2,"Others",function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("OthersCategoryText",r.d(),r.c())}));t.$vu.be="Legend";t.$vu.legendProperty=t.$ar.i("Legend",t.$ni.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("Legend",r.d(),r.c())}));t.$vu.a0="FormatLabel";t.$vu.formatLabelProperty=t.$ar.i("FormatLabel",t.$c6.$type.specialize(n.ig.$op.$type,String),t.$vu.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("FormatLabel",r.d(),r.c())}));t.$vu.a3="LabelExtent";t.$vu.labelExtentProperty=t.$ar.i("LabelExtent",Number,t.$vu.$type,new t.as(2,10,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LabelExtent",r.d(),r.c())}));t.$vu.bp="StartAngle";t.$vu.startAngleProperty=t.$ar.i("StartAngle",Number,t.$vu.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("StartAngle",r.d(),r.c())}));t.$vu.bf="OthersCategoryStyle";t.$vu.othersCategoryStyleProperty=t.$ar.i("OthersCategoryStyle",t.$a4.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("OthersCategoryStyle",r.d(),r.c())}));t.$vu.bn="SelectedStyle";t.$vu.selectedStyleProperty=t.$ar.i("SelectedStyle",t.$a4.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("SelectedStyle",r.d(),r.c())}));t.$vu.bo="SelectedStyleResolved";t.$vu.br="ToolTipStyle";t.$vu.toolTipStyleProperty=t.$ar.i("ToolTipStyle",t.$a4.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("ToolTipStyle",r.d(),r.c())}));t.$vu.az="Brushes";t.$vu.brushesProperty=t.$ar.i("Brushes",t.$fd.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("Brushes",r.d(),r.c())}));t.$vu.bk="Outlines";t.$vu.outlinesProperty=t.$ar.i("Outlines",t.$fd.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("Outlines",r.d(),r.c())}));t.$vu.bd="LegendItemTemplate";t.$vu.legendItemTemplateProperty=t.$ar.i("LegendItemTemplate",t.$cg.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LegendItemTemplate",r.d(),r.c())}));t.$vu.bc="LegendItemBadgeTemplate";t.$vu.legendItemBadgeTemplateProperty=t.$ar.i("LegendItemBadgeTemplate",t.$cg.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LegendItemBadgeTemplate",r.d(),r.c())}));t.$vu.a7="LabelTemplate";t.$vu.labelTemplateProperty=t.$ar.i("LabelTemplate",t.$cg.$type,t.$vu.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("LabelTemplate",r.d(),r.c())}));t.$vu.a1="IsSurfaceInteractionDisabled";t.$vu.isSurfaceInteractionDisabledProperty=t.$ar.i("IsSurfaceInteractionDisabled",n.ig.Nullable$1.prototype.$type.specialize(t.$f.$type),t.$vu.$type,new t.as(2,null,function(n,t){n.b0("IsSurfaceInteractionDisabled",t.d(),t.c())}));t.$vu.bl="RadiusFactor";t.$vu.radiusFactorProperty=t.$ar.i("RadiusFactor",Number,t.$vu.$type,new t.as(2,.9,function(i,r){n.ig.util.cast(t.$vu.$type,i).b0("RadiusFactor",r.d(),r.c())}));t.$vu.bm="RootCanvas";t.$wi.c8="ChildrenMemberPath";t.$wi.childrenMemberPathProperty=t.$ar.i("ChildrenMemberPath",String,t.$wi.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$wi.$type,i).b0("ChildrenMemberPath",r.d(),r.c())}));t.$vt.an="RootCanvas";t.$vv.a0="AllowSliceSelection";t.$vv.allowSliceSelectionProperty=t.$ar.i("AllowSliceSelection",t.$f.$type,t.$vv.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$vv.$type,i).bk("AllowSliceSelection",r.d(),r.c())}));t.$vv.a6="IsSurfaceInteractionDisabled";t.$vv.isSurfaceInteractionDisabledProperty=t.$ar.i("IsSurfaceInteractionDisabled",n.ig.Nullable$1.prototype.$type.specialize(t.$f.$type),t.$vv.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vv.$type,i).bk("IsSurfaceInteractionDisabled",r.d(),r.c())}));t.$vv.az="AllowSliceExplosion";t.$vv.allowSliceExplosionProperty=t.$ar.i("AllowSliceExplosion",t.$f.$type,t.$vv.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$vv.$type,i).bk("AllowSliceExplosion",r.d(),r.c())}));t.$vv.a3="ContentPresenter";t.$vv.a5="InnerExtent";t.$vv.innerExtentProperty=t.$ar.i("InnerExtent",Number,t.$vv.$type,new t.as(2,40,function(n,t){var i=t.c();if(i<0||i>100){t.d()!=null&&n.innerExtent(t.d());return}n.bl();n.bk("InnerExtent",t.d(),t.c())}));t.$vv.a7="SelectedStyle";t.$vv.selectedStyleProperty=t.$ar.i("SelectedStyle",t.$a4.$type,t.$vv.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vv.$type,i).bk("SelectedStyle",r.d(),r.c())}));t.$vv.a1="CenterData";t.$vv.centerDataProperty=t.$ar.i("CenterData",n.ig.$op.$type,t.$vv.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vv.$type,i).bk("CenterData",r.d(),r.c())}));t.$vv.a2="CenterDataTemplate";t.$vv.centerDataTemplateProperty=t.$ar.i("CenterDataTemplate",t.$cg.$type,t.$vv.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$vv.$type,i).bk("CenterDataTemplate",r.d(),r.c())}));t.$q2.l8="NegativeBrush";t.$q2.negativeBrushProperty=t.$ar.i("NegativeBrush",t.$b3.$type,t.$q2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("NegativeBrush",r.d(),r.c())}));t.$q2.mg="XAxis";t.$q2.xAxisProperty=t.$ar.i("XAxis",t.$hb.$type,t.$q2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("XAxis",r.d(),r.c())}));t.$q2.mh="YAxis";t.$q2.yAxisProperty=t.$ar.i("YAxis",t.$iq.$type,t.$q2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("YAxis",r.d(),r.c())}));t.$q2.mb="OpenMemberPath";t.$q2.openMemberPathProperty=t.$ar.i("OpenMemberPath",String,t.$q2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("OpenMemberPath",r.d(),r.c())}));t.$q2.l9="OpenColumn";t.$q2.l2="HighMemberPath";t.$q2.highMemberPathProperty=t.$ar.i("HighMemberPath",String,t.$q2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("HighMemberPath",r.d(),r.c())}));t.$q2.l0="HighColumn";t.$q2.l7="LowMemberPath";t.$q2.lowMemberPathProperty=t.$ar.i("LowMemberPath",String,t.$q2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("LowMemberPath",r.d(),r.c())}));t.$q2.l5="LowColumn";t.$q2.lz="CloseMemberPath";t.$q2.closeMemberPathProperty=t.$ar.i("CloseMemberPath",String,t.$q2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("CloseMemberPath",r.d(),r.c())}));t.$q2.lx="CloseColumn";t.$q2.mf="VolumeMemberPath";t.$q2.volumeMemberPathProperty=t.$ar.i("VolumeMemberPath",String,t.$q2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("VolumeMemberPath",r.d(),r.c())}));t.$q2.md="VolumeColumn";t.$q2.l3="IsCustomCategoryStyleAllowed";t.$q2.isCustomCategoryStyleAllowedProperty=t.$ar.i("IsCustomCategoryStyleAllowed",t.$f.$type,t.$q2.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("IsCustomCategoryStyleAllowed",r.d(),r.c())}));t.$q2.mc="TransitionInMode";t.$q2.transitionInModeProperty=t.$ar.i("TransitionInMode",t.$q1.$type,t.$q2.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("TransitionInMode",r.d(),r.c())}));t.$q2.l4="IsTransitionInEnabled";t.$q2.isTransitionInEnabledProperty=t.$ar.i("IsTransitionInEnabled",t.$f.$type,t.$q2.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$q2.$type,i).raisePropertyChanged("IsTransitionInEnabled",r.d(),r.c())}));t.$wn.nf="DisplayType";t.$wn.displayTypeProperty=t.$ar.i("DisplayType",t.$wm.$type,t.$wn.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("DisplayType",r.d(),r.c())}));t.$wn.ng="IgnoreFirst";t.$wn.ignoreFirstProperty=t.$ar.i("IgnoreFirst",n.ig.Number.prototype.$type,t.$q2.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("IgnoreFirst",r.d(),r.c())}));t.$wn.trendLineTypeProperty=t.$ar.i("TrendLineType",t.$kk.$type,t.$wn.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("TrendLineType",r.d(),r.c())}));t.$wn.trendLineBrushProperty=t.$ar.i("TrendLineBrush",t.$b3.$type,t.$wn.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("TrendLineBrush",r.d(),r.c())}));t.$wn.actualTrendLineBrushProperty=t.$ar.i("ActualTrendLineBrush",t.$b3.$type,t.$wn.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("ActualTrendLineBrush",r.d(),r.c())}));t.$wn.trendLineThicknessProperty=t.$ar.i("TrendLineThickness",Number,t.$wn.$type,new t.as(2,1.5,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("TrendLineThickness",r.d(),r.c())}));t.$wn.trendLineDashCapProperty=t.$ar.i("TrendLineDashCap",t.$lv.$type,t.$wn.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("TrendLineDashCap",r.d(),r.c())}));t.$wn.trendLineDashArrayProperty=t.$ar.i("TrendLineDashArray",t.$b5.$type,t.$wn.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("TrendLineDashArray",r.d(),r.c())}));t.$wn.trendLinePeriodProperty=t.$ar.i("TrendLinePeriod",n.ig.Number.prototype.$type,t.$wn.$type,new t.as(2,7,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("TrendLinePeriod",r.d(),r.c())}));t.$wn.trendLineZIndexProperty=t.$ar.i("TrendLineZIndex",n.ig.Number.prototype.$type,t.$wn.$type,new t.as(2,1001,function(i,r){n.ig.util.cast(t.$wn.$type,i).raisePropertyChanged("TrendLineZIndex",r.d(),r.c())}));t.$ws.n2=new t.bh(String,0);t.$ws.oa="Period";t.$ws.n8="LongPeriod";t.$ws.ob="ShortPeriod";t.$ws.n9="Multiplier";t.$wu.shortPeriodProperty=t.$ws.oh(10,t.$wu.$type);t.$wu.longPeriodProperty=t.$ws.od(30,t.$wu.$type);t.$wz.periodProperty=t.$ws.of(14,t.$wz.$type);t.$w1.periodProperty=t.$ws.of(14,t.$w1.$type);t.$w3.m4="IgnoreFirst";t.$w3.ignoreFirstProperty=t.$ar.i("IgnoreFirst",n.ig.Number.prototype.$type,t.$w3.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$w3.$type,i).raisePropertyChanged("IgnoreFirst",r.d(),r.c())}));t.$w4.nf="Period";t.$w4.periodProperty=t.$ar.i("Period",n.ig.Number.prototype.$type,t.$w4.$type,new t.as(2,14,function(i,r){n.ig.util.cast(t.$w4.$type,i).raisePropertyChanged("Period",r.d(),r.c())}));t.$w4.ne="Multiplier";t.$w4.multiplierProperty=t.$ar.i("Multiplier",Number,t.$w4.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$w4.$type,i).raisePropertyChanged("Multiplier",r.d(),r.c())}));t.$w7.periodProperty=t.$ws.of(20,t.$w7.$type);t.$w7.ok="Multiplier";t.$w7.multiplierProperty=t.$ws.oe(2,t.$w7.$type);t.$w9.shortPeriodProperty=t.$ws.oh(3,t.$w9.$type);t.$w9.longPeriodProperty=t.$ws.od(10,t.$w9.$type);t.$xb.periodProperty=t.$ws.of(10,t.$xb.$type);t.$xd.periodProperty=t.$ws.of(20,t.$xd.$type);t.$xk.periodProperty=t.$ws.of(20,t.$xk.$type);t.$xo.periodProperty=t.$ws.of(14,t.$xo.$type);t.$xr.periodProperty=t.$ws.of(0,t.$xr.$type);t.$xt.periodProperty=t.$ws.of(14,t.$xt.$type);t.$xt.ol="SmoothingPeriod";t.$xt.smoothingPeriodProperty=t.$ws.og(3,t.$xt.$type,"SmoothingPeriod");t.$xt.om="TriggerPeriod";t.$xt.triggerPeriodProperty=t.$ws.og(3,t.$xt.$type,"TriggerPeriod");t.$x4.periodProperty=t.$ws.of(14,t.$x4.$type);t.$x6.shortPeriodProperty=t.$ws.oh(10,t.$x6.$type);t.$x6.longPeriodProperty=t.$ws.od(30,t.$x6.$type);t.$x6.ol="SignalPeriod";t.$x6.signalPeriodProperty=t.$ws.og(9,t.$x6.$type,"SignalPeriod");t.$yc.shortPeriodProperty=t.$ws.oh(10,t.$yc.$type);t.$yc.longPeriodProperty=t.$ws.od(30,t.$yc.$type);t.$ye.shortPeriodProperty=t.$ws.oh(10,t.$ye.$type);t.$ye.longPeriodProperty=t.$ws.od(30,t.$ye.$type);t.$xi.nb="Period";t.$xi.periodProperty=t.$ar.i("Period",n.ig.Number.prototype.$type,t.$xi.$type,new t.as(2,14,function(i,r){n.ig.util.cast(t.$xi.$type,i).raisePropertyChanged("Period",r.d(),r.c())}));t.$yk.periodProperty=t.$ws.of(14,t.$yk.$type);t.$ym.periodProperty=t.$ws.of(14,t.$ym.$type);t.$yo.periodProperty=t.$ws.of(14,t.$yo.$type);t.$yq.periodProperty=t.$ws.of(20,t.$yq.$type);t.$ys.periodProperty=t.$ws.of(14,t.$ys.$type);t.$yu.periodProperty=t.$ws.of(15,t.$yu.$type);t.$y2.periodProperty=t.$ws.of(14,t.$y2.$type);t.$o4.b4="ItemsSource";t.$o4.itemsSourceProperty=t.$ar.i("ItemsSource",n.ig.IEnumerable.prototype.$type,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("ItemsSource",r.d(),r.c())}));t.$o4.bv="FastItemsSource";t.$o4.df=t.$ar.i("FastItemsSource",t.$m9.$type,t.$o4.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("FastItemsSource",r.d(),r.c())}));t.$o4.cq="ValueMemberPath";t.$o4.valueMemberPathProperty=t.$ar.i("ValueMemberPath",String,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("ValueMemberPath",r.d(),r.c())}));t.$o4.co="ValueColumn";t.$o4.bu="Brushes";t.$o4.brushesProperty=t.$ar.i("Brushes",t.$fd.$type,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("Brushes",r.d(),r.c())}));t.$o4.ce="Outlines";t.$o4.outlinesProperty=t.$ar.i("Outlines",t.$fd.$type,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("Outlines",r.d(),r.c())}));t.$o4.bt="BottomEdgeWidth";t.$o4.bh=.35;t.$o4.bottomEdgeWidthProperty=t.$ar.i("BottomEdgeWidth",Number,t.$o4.$type,new t.as(2,.35,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("BottomEdgeWidth",r.d(),r.c())}));t.$o4.b1="InnerLabelMemberPath";t.$o4.innerLabelMemberPathProperty=t.$ar.i("InnerLabelMemberPath",String,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("InnerLabelMemberPath",r.d(),r.c())}));t.$o4.bz="InnerLabelColumn";t.$o4.cc="OuterLabelMemberPath";t.$o4.outerLabelMemberPathProperty=t.$ar.i("OuterLabelMemberPath",String,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("OuterLabelMemberPath",r.d(),r.c())}));t.$o4.ca="OuterLabelColumn";t.$o4.b2="InnerLabelVisibility";t.$o4.innerLabelVisibilityProperty=t.$ar.i("InnerLabelVisibility",t.$a3.$type,t.$o4.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("InnerLabelVisibility",r.d(),r.c())}));t.$o4.cd="OuterLabelVisibility";t.$o4.outerLabelVisibilityProperty=t.$ar.i("OuterLabelVisibility",t.$a3.$type,t.$o4.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("OuterLabelVisibility",r.d(),r.c())}));t.$o4.b9="OuterLabelAlignment";t.$o4.outerLabelAlignmentProperty=t.$ar.i("OuterLabelAlignment",t.$qf.$type,t.$o4.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("OuterLabelAlignment",r.d(),r.c())}));t.$o4.by="FunnelSliceDisplay";t.$o4.funnelSliceDisplayProperty=t.$ar.i("FunnelSliceDisplay",t.$qg.$type,t.$o4.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("FunnelSliceDisplay",r.d(),r.c())}));t.$o4.bw="FormatInnerLabel";t.$o4.formatInnerLabelProperty=t.$ar.i("FormatInnerLabel",t.$hw.$type.specialize(n.ig.$op.$type,n.ig.Number.prototype.$type,n.ig.$op.$type,String),t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("FormatInnerLabel",r.d(),r.c())}));t.$o4.bx="FormatOuterLabel";t.$o4.formatOuterLabelProperty=t.$ar.i("FormatOuterLabel",t.$hw.$type.specialize(n.ig.$op.$type,n.ig.Number.prototype.$type,n.ig.$op.$type,String),t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("FormatOuterLabel",r.d(),r.c())}));t.$o4.ci="TransitionDuration";t.$o4.transitionDurationProperty=t.$ar.i("TransitionDuration",n.ig.Number.prototype.$type,t.$o4.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("TransitionDuration",r.d(),r.c())}));t.$o4.b3="IsInverted";t.$o4.isInvertedProperty=t.$ar.i("IsInverted",t.$f.$type,t.$o4.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("IsInverted",r.d(),r.c())}));t.$o4.ck="UpperBezierControlPoint";t.$o4.upperBezierControlPointProperty=t.$ar.i("UpperBezierControlPoint",t.$z.$type,t.$o4.$type,new t.as(2,{__x:.5,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("UpperBezierControlPoint",r.d(),r.c())}));t.$o4.b8="LowerBezierControlPoint";t.$o4.lowerBezierControlPointProperty=t.$ar.i("LowerBezierControlPoint",t.$z.$type,t.$o4.$type,new t.as(2,{__x:.5,__y:1,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("LowerBezierControlPoint",r.d(),r.c())}));t.$o4.cl="UseBezierCurve";t.$o4.useBezierCurveProperty=t.$ar.i("UseBezierCurve",t.$f.$type,t.$o4.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("UseBezierCurve",r.d(),r.c())}));t.$o4.bs="AllowSliceSelection";t.$o4.allowSliceSelectionProperty=t.$ar.i("AllowSliceSelection",t.$f.$type,t.$o4.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("AllowSliceSelection",r.d(),r.c())}));t.$o4.cn="UseUnselectedStyle";t.$o4.useUnselectedStyleProperty=t.$ar.i("UseUnselectedStyle",t.$f.$type,t.$o4.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("UseUnselectedStyle",r.d(),r.c())}));t.$o4.cg="SelectedSliceStyle";t.$o4.selectedSliceStyleProperty=t.$ar.i("SelectedSliceStyle",t.$a4.$type,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("SelectedSliceStyle",r.d(),r.c())}));t.$o4.cj="UnselectedSliceStyle";t.$o4.unselectedSliceStyleProperty=t.$ar.i("UnselectedSliceStyle",t.$a4.$type,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("UnselectedSliceStyle",r.d(),r.c())}));t.$o4.ch="ToolTip";t.$o4.toolTipProperty=t.$ar.i("ToolTip",n.ig.$op.$type,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("ToolTip",r.d(),r.c())}));t.$o4.b7="Legend";t.$o4.legendProperty=t.$ar.i("Legend",t.$nw.$type,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("Legend",r.d(),r.c())}));t.$o4.b6="LegendItemTemplate";t.$o4.legendItemTemplateProperty=t.$ar.i("LegendItemTemplate",t.$cg.$type,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("LegendItemTemplate",r.d(),r.c())}));t.$o4.b5="LegendItemBadgeTemplate";t.$o4.legendItemBadgeTemplateProperty=t.$ar.i("LegendItemBadgeTemplate",t.$cg.$type,t.$o4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("LegendItemBadgeTemplate",r.d(),r.c())}));t.$o4.cm="UseOuterLabelsForLegend";t.$o4.useOuterLabelsForLegendProperty=t.$ar.i("UseOuterLabelsForLegend",t.$f.$type,t.$o4.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("UseOuterLabelsForLegend",r.d(),r.c())}));t.$o4.cf="OutlineThickness";t.$o4.bj=-1;t.$o4.outlineThicknessProperty=t.$ar.i("OutlineThickness",Number,t.$o4.$type,new t.as(2,-1,function(i,r){n.ig.util.cast(t.$o4.$type,i).c1("OutlineThickness",r.d(),r.c())}));t.$y5.am="StrokeThickness";t.$y5.at=t.$ar.i("StrokeThickness",Number,t.$y5.$type,new t.as(2,1,function(){}));t.$y5.aj="Fill";t.$y5.aq=t.$ar.i("Fill",t.$b3.$type,t.$y5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$y5.$type,i).an("Fill",r.d(),r.c())}));t.$y5.al="Outline";t.$y5.as=t.$ar.i("Outline",t.$b3.$type,t.$y5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$y5.$type,i).an("Outline",r.d(),r.c())}));t.$y5.ah="ActualFill";t.$y5.ao=t.$ar.i("ActualFill",t.$b3.$type,t.$y5.$type,new t.as(1,null));t.$y5.ai="ActualOutline";t.$y5.ap=t.$ar.i("ActualOutline",t.$b3.$type,t.$y5.$type,new t.as(1,null));t.$y5.ak="LabelVisibility";t.$y5.ar=t.$ar.i("LabelVisibility",t.$a3.$type,t.$y5.$type,new t.as(2,0,function(){}));t.$ps.j=["#7000ff","#70ff00","#00f0f0","#ff0070","#ff00ff"];t.$ps.k=["#7000dd","#70dd00","#00d0d0","#dd0070","#dd00dd"];t.$oy.be="ParentVisibility";t.$oy.bl=t.$ar.i("ParentVisibility",t.$a3.$type,t.$oy.$type,new t.as(2,0,function(i,r){r.c()!=0?n.ig.util.cast(t.$oy.$type,i).bi():n.ig.util.cast(t.$oy.$type,i).bh()}));t.$oy.bf="SeriesMarkerBrush";t.$oy.bm=t.$ar.i("SeriesMarkerBrush",t.$b3.$type,t.$oy.$type,new t.as(1,function(i){n.ig.util.cast(t.$oy.$type,i).bh()}));t.$oz.ag="LegendScale";t.$oz.ae=0;t.$tv.k4="AngleAxis";t.$tv.angleAxisProperty=t.$ar.i("AngleAxis",t.$jr.$type,t.$tv.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$tv.$type,i).raisePropertyChanged("AngleAxis",r.d(),r.c())}));t.$tv.k6="ValueAxis";t.$tv.valueAxisProperty=t.$ar.i("ValueAxis",t.$i7.$type,t.$tv.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$tv.$type,i).raisePropertyChanged("ValueAxis",r.d(),r.c())}));t.$tv.k5="ClipSeriesToBounds";t.$tv.clipSeriesToBoundsProperty=t.$ar.i("ClipSeriesToBounds",t.$f.$type,t.$tv.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$tv.$type,i).raisePropertyChanged("ClipSeriesToBounds",r.d(),r.c())}));t.$y7.lz="ValueMemberPath";t.$y7.valueMemberPathProperty=t.$ar.i("ValueMemberPath",String,t.$y7.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$y7.$type,i).raisePropertyChanged("ValueMemberPath",r.d(),r.c())}));t.$y7.lx="ValueColumn";t.$y7.trendLineTypeProperty=t.$ar.i("TrendLineType",t.$kk.$type,t.$y7.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$y7.$type,i).raisePropertyChanged("TrendLineType",r.d(),r.c())}));t.$y7.trendLineBrushProperty=t.$ar.i("TrendLineBrush",t.$b3.$type,t.$y7.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$y7.$type,i).raisePropertyChanged("TrendLineBrush",r.d(),r.c())}));t.$y7.actualTrendLineBrushProperty=t.$ar.i("ActualTrendLineBrush",t.$b3.$type,t.$y7.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$y7.$type,i).raisePropertyChanged("ActualTrendLineBrush",r.d(),r.c())}));t.$y7.trendLineThicknessProperty=t.$ar.i("TrendLineThickness",Number,t.$y7.$type,new t.as(2,1.5,function(i,r){n.ig.util.cast(t.$y7.$type,i).raisePropertyChanged("TrendLineThickness",r.d(),r.c())}));t.$y7.trendLineDashCapProperty=t.$ar.i("TrendLineDashCap",t.$lv.$type,t.$y7.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$y7.$type,i).raisePropertyChanged("TrendLineDashCap",r.d(),r.c())}));t.$y7.trendLineDashArrayProperty=t.$ar.i("TrendLineDashArray",t.$b5.$type,t.$y7.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$y7.$type,i).raisePropertyChanged("TrendLineDashArray",r.d(),r.c())}));t.$y7.trendLinePeriodProperty=t.$ar.i("TrendLinePeriod",n.ig.Number.prototype.$type,t.$y7.$type,new t.as(2,7,function(i,r){n.ig.util.cast(t.$y7.$type,i).raisePropertyChanged("TrendLinePeriod",r.d(),r.c())}));t.$y7.trendLineZIndexProperty=t.$ar.i("TrendLineZIndex",n.ig.Number.prototype.$type,t.$y7.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$y7.$type,i).raisePropertyChanged("TrendLineZIndex",r.d(),r.c())}));t.$zb.mh="UnknownValuePlotting";t.$zb.unknownValuePlottingProperty=t.$ar.i("UnknownValuePlotting",t.$lt.$type,t.$zb.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$zb.$type,i).raisePropertyChanged("UnknownValuePlotting",r.d(),r.c())}));t.$zd.lw="XAxis";t.$zd.xAxisProperty=t.$ar.i("XAxis",t.$l7.$type,t.$zd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("XAxis",r.d(),r.c())}));t.$zd.l0="YAxis";t.$zd.yAxisProperty=t.$ar.i("YAxis",t.$iq.$type,t.$zd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("YAxis",r.d(),r.c())}));t.$zd.lz="XMemberPath";t.$zd.xMemberPathProperty=t.$ar.i("XMemberPath",String,t.$zd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("XMemberPath",r.d(),r.c())}));t.$zd.lx="XColumn";t.$zd.l3="YMemberPath";t.$zd.yMemberPathProperty=t.$ar.i("YMemberPath",String,t.$zd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("YMemberPath",r.d(),r.c())}));t.$zd.l1="YColumn";t.$zd.lv="UseBruteForce";t.$zd.useBruteForceProperty=t.$ar.i("UseBruteForce",t.$f.$type,t.$zd.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("UseBruteForce",r.d(),r.c())}));t.$zd.lu="ProgressiveLoad";t.$zd.progressiveLoadProperty=t.$ar.i("ProgressiveLoad",t.$f.$type,t.$zd.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("ProgressiveLoad",r.d(),r.c())}));t.$zd.ls="MouseOverEnabled";t.$zd.mouseOverEnabledProperty=t.$ar.i("MouseOverEnabled",t.$f.$type,t.$zd.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("MouseOverEnabled",r.d(),r.c())}));t.$zd.lr="MaxRenderDepth";t.$zd.mn=t.$ar.i("MaxRenderDepth",n.ig.Number.prototype.$type,t.$zd.$type,new t.as(2,Number.MAX_VALUE,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("MaxRenderDepth",r.d(),r.c())}));t.$zd.lq="HeatMinimum";t.$zd.heatMinimumProperty=t.$ar.i("HeatMinimum",Number,t.$zd.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("HeatMinimum",r.d(),r.c())}));t.$zd.lo="HeatMaximum";t.$zd.heatMaximumProperty=t.$ar.i("HeatMaximum",Number,t.$zd.$type,new t.as(2,50,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("HeatMaximum",r.d(),r.c())}));t.$zd.lp="HeatMinimumColor";t.$zd.heatMinimumColorProperty=t.$ar.i("HeatMinimumColor",t.$b4.$type,t.$zd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("HeatMinimumColor",r.d(),r.c())}));t.$zd.ln="HeatMaximumColor";t.$zd.heatMaximumColorProperty=t.$ar.i("HeatMaximumColor",t.$b4.$type,t.$zd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("HeatMaximumColor",r.d(),r.c())}));t.$zd.lt="PointExtent";t.$zd.pointExtentProperty=t.$ar.i("PointExtent",n.ig.Number.prototype.$type,t.$zd.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$zd.$type,i).raisePropertyChanged("PointExtent",r.d(),r.c())}));t.$zr.mo=512;t.$zr.mq="UnknownValuePlotting";t.$zr.unknownValuePlottingProperty=t.$ar.i("UnknownValuePlotting",t.$lt.$type,t.$zr.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$zr.$type,i).raisePropertyChanged("UnknownValuePlotting",r.d(),r.c())}));t.$zt.mo="Stiffness";t.$zt.stiffnessProperty=t.$ar.i("Stiffness",Number,t.$zt.$type,new t.as(2,.5,function(i,r){n.ig.util.cast(t.$zt.$type,i).raisePropertyChanged("Stiffness",r.d(),r.c())}));t.$be.ej="CrosshairPoint";t.$be.e1="Legend";t.$be.legendProperty=t.$ar.i("Legend",t.$ni.$type,t.$be.$type,new t.as(2,null,function(i,r){var u=n.ig.util.cast(t.$be.$type,i);u.h8("Legend",r.d(),r.c())}));t.$be.ef="AnimateSeriesWhenAxisRangeChanges";t.$be.animateSeriesWhenAxisRangeChangesProperty=t.$ar.i("AnimateSeriesWhenAxisRangeChanges",t.$f.$type,t.$be.$type,new t.as(2,!1,function(i,r){var u=n.ig.util.cast(t.$be.$type,i);u.h8("AnimateSeriesWhenAxisRangeChanges",r.d(),r.c())}));t.$be.f8="WindowRect";t.$be.windowRectProperty=t.$ar.i("WindowRect",t.$x.$type,t.$be.$type,new t.as(2,new t.x(0,0,0,1,1),function(i,r){n.ig.util.cast(t.$be.$type,i).h8("WindowRect",r.d(),r.c())}));t.$be.ev="HighlightingTransitionDuration";t.$be.highlightingTransitionDurationProperty=t.$ar.i("HighlightingTransitionDuration",n.ig.Number.prototype.$type,t.$be.$type,new t.as(2,300,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("HighlightingTransitionDuration",r.d(),r.c())}));t.$be.ez="IsPagePanningAllowed";t.$be.isPagePanningAllowedProperty=t.$ar.i("IsPagePanningAllowed",t.$f.$type,t.$be.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("IsPagePanningAllowed",r.d(),r.c())}));t.$be.e0="IsSurfaceInteractionDisabled";t.$be.isSurfaceInteractionDisabledProperty=t.$ar.i("IsSurfaceInteractionDisabled",t.$f.$type,t.$be.$type,new t.as(2,!1,function(n,t){n.h8("IsSurfaceInteractionDisabled",t.d(),t.c())}));t.$be.db=10;t.$be.dc=2;t.$be.f9="WindowResponse";t.$be.windowResponseProperty=t.$ar.i("WindowResponse",t.$tk.$type,t.$be.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("WindowResponse",r.d(),r.c())}));t.$be.f7="WindowRectMinWidth";t.$be.windowRectMinWidthProperty=t.$ar.i("WindowRectMinWidth",Number,t.$be.$type,new t.as(2,.0001,function(i,r){return n.ig.util.cast(t.$be.$type,i).h8("WindowRectMinWidth",r.d(),r.c())}));t.$be.eb="ActualSyncLink";t.$be.e3="OverviewPlusDetailPaneVisibility";t.$be.overviewPlusDetailPaneVisibilityProperty=t.$ar.i("OverviewPlusDetailPaneVisibility",t.$a3.$type,t.$be.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("OverviewPlusDetailPaneVisibility",r.d(),r.c())}));t.$be.ek="CrosshairVisibility";t.$be.crosshairVisibilityProperty=t.$ar.i("CrosshairVisibility",t.$a3.$type,t.$be.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("CrosshairVisibility",r.d(),r.c())}));t.$be.ey="IsDragCrosshairEnabled";t.$be.isDragCrosshairEnabledProperty=t.$ar.i("IsDragCrosshairEnabled",t.$f.$type,t.$be.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("IsDragCrosshairEnabled",r.d(),r.c())}));t.$be.fa="PlotAreaBorderBrush";t.$be.plotAreaBorderBrushProperty=t.$ar.i("PlotAreaBorderBrush",t.$b3.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("PlotAreaBorderBrush",r.d(),r.c())}));t.$be.ea="ActualPlotAreaBorderBrush";t.$be.actualPlotAreaBorderBrushProperty=t.$ar.i("ActualPlotAreaBorderBrush",t.$b3.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("ActualPlotAreaBorderBrush",r.d(),r.c())}));t.$be.fb="PlotAreaBorderThickness";t.$be.e9="PlotAreaBackground";t.$be.plotAreaBackgroundProperty=t.$ar.i("PlotAreaBackground",t.$b3.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("PlotAreaBackground",r.d(),r.c())}));t.$be.fd="PlotAreaMinWidth";t.$be.plotAreaMinWidthProperty=t.$ar.i("PlotAreaMinWidth",Number,t.$be.$type,new t.as(2,50,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("PlotAreaMinWidth",r.d(),r.c())}));t.$be.fc="PlotAreaMinHeight";t.$be.plotAreaMinHeightProperty=t.$ar.i("PlotAreaMinHeight",Number,t.$be.$type,new t.as(2,50,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("PlotAreaMinHeight",r.d(),r.c())}));t.$be.el="DefaultInteraction";t.$be.defaultInteractionProperty=t.$ar.i("DefaultInteraction",t.$ew.$type,t.$be.$type,new t.as(2,3,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("DefaultInteraction",r.d(),r.c())}));t.$be.eo="DragModifier";t.$be.dragModifierProperty=t.$ar.i("DragModifier",t.$c5.$type,t.$be.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("DragModifier",r.d(),r.c())}));t.$be.e4="PanModifier";t.$be.panModifierProperty=t.$ar.i("PanModifier",t.$c5.$type,t.$be.$type,new t.as(2,4,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("PanModifier",r.d(),r.c())}));t.$be.f5="WindowPositionHorizontal";t.$be.windowPositionHorizontalProperty=t.$ar.i("WindowPositionHorizontal",Number,t.$be.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("WindowPositionHorizontal",r.d(),r.c())}));t.$be.f6="WindowPositionVertical";t.$be.windowPositionVerticalProperty=t.$ar.i("WindowPositionVertical",Number,t.$be.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("WindowPositionVertical",r.d(),r.c())}));t.$be.eh="ContentPresenter";t.$be.ei="CrosshairLineStyle";t.$be.crosshairLineStyleProperty=t.$ar.i("CrosshairLineStyle",t.$a4.$type,t.$be.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("CrosshairLineStyle",r.d(),r.c())}));t.$be.ew="Idle";t.$be.en="Dragging";t.$be.e5="Panning";t.$be.ex="Inking";t.$be.ep="Erasing";t.$be.fe="PreviewPathStyle";t.$be.previewPathStyleProperty=t.$ar.i("PreviewPathStyle",t.$a4.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("PreviewPathStyle",r.d(),r.c())}));t.$be.lj=t.$x.empty();t.$be.ga="ZoombarStyle";t.$be.zoombarStyleProperty=t.$ar.i("ZoombarStyle",t.$a4.$type,t.$be.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("ZoombarStyle",r.d(),r.c())}));t.$be.eg="CircleMarkerTemplate";t.$be.circleMarkerTemplateProperty=t.$ar.i("CircleMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("CircleMarkerTemplate",r.d(),r.c())}));t.$be.f4="TriangleMarkerTemplate";t.$be.triangleMarkerTemplateProperty=t.$ar.i("TriangleMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("TriangleMarkerTemplate",r.d(),r.c())}));t.$be.ff="PyramidMarkerTemplate";t.$be.pyramidMarkerTemplateProperty=t.$ar.i("PyramidMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("PyramidMarkerTemplate",r.d(),r.c())}));t.$be.fg="SquareMarkerTemplate";t.$be.squareMarkerTemplateProperty=t.$ar.i("SquareMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("SquareMarkerTemplate",r.d(),r.c())}));t.$be.em="DiamondMarkerTemplate";t.$be.diamondMarkerTemplateProperty=t.$ar.i("DiamondMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("DiamondMarkerTemplate",r.d(),r.c())}));t.$be.e6="PentagonMarkerTemplate";t.$be.pentagonMarkerTemplateProperty=t.$ar.i("PentagonMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("PentagonMarkerTemplate",r.d(),r.c())}));t.$be.et="HexagonMarkerTemplate";t.$be.hexagonMarkerTemplateProperty=t.$ar.i("HexagonMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("HexagonMarkerTemplate",r.d(),r.c())}));t.$be.fs="TetragramMarkerTemplate";t.$be.tetragramMarkerTemplateProperty=t.$ar.i("TetragramMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("TetragramMarkerTemplate",r.d(),r.c())}));t.$be.e7="PentagramMarkerTemplate";t.$be.pentagramMarkerTemplateProperty=t.$ar.i("PentagramMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("PentagramMarkerTemplate",r.d(),r.c())}));t.$be.eu="HexagramMarkerTemplate";t.$be.hexagramMarkerTemplateProperty=t.$ar.i("HexagramMarkerTemplate",t.$cg.$type,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("HexagramMarkerTemplate",r.d(),r.c())}));t.$be.fx="Title";t.$be.titleProperty=t.$ar.i("Title",String,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("Title",r.d(),r.c())}));t.$be.fv="TitleHorizontalAlignment";t.$be.titleHorizontalAlignmentProperty=t.$ar.i("TitleHorizontalAlignment",t.$a6.$type,t.$be.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("TitleHorizontalAlignment",r.d(),r.c())}));t.$be.fj="SubtitleHorizontalAlignment";t.$be.subtitleHorizontalAlignmentProperty=t.$ar.i("SubtitleHorizontalAlignment",t.$a6.$type,t.$be.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("SubtitleHorizontalAlignment",r.d(),r.c())}));t.$be.f1="TitleTextStyle";t.$be.fp="SubtitleTextStyle";t.$be.fz="TitleTextColor";t.$be.fn="SubtitleTextColor";t.$be.f2="TitleTopMargin";t.$be.fw="TitleLeftMargin";t.$be.fy="TitleRightMargin";t.$be.fu="TitleBottomMargin";t.$be.fq="SubtitleTopMargin";t.$be.fk="SubtitleLeftMargin";t.$be.fm="SubtitleRightMargin";t.$be.fi="SubtitleBottomMargin";t.$be.fl="Subtitle";t.$be.subtitleProperty=t.$ar.i("Subtitle",String,t.$be.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$be.$type,i).h8("Subtitle",r.d(),r.c())}));t.$be.e8="PixelScalingRatio";t.$be.d9="ActualPixelScalingRatio";t.$be.ee="ActualWindowRect";t.$be.ec="ActualWindowPositionHorizontal";t.$be.ed="ActualWindowPositionVertical";t.$be.staticInit&&!t.$be.seriesViewerStaticInitCalled&&(t.$be.staticInit(),t.$be.seriesViewerStaticInitCalled=!0);t.$bd.mh=null;t.$bd.mg=null;t.$bd.mx="IsSquare";t.$bd.isSquareProperty=t.$ar.i("IsSquare",t.$f.$type,t.$bd.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("IsSquare",r.d(),r.c())}));t.$bd.m4="WindowScaleHorizontal";t.$bd.windowScaleHorizontalProperty=t.$ar.i("WindowScaleHorizontal",Number,t.$bd.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("WindowScaleHorizontal",r.d(),r.c())}));t.$bd.m5="WindowScaleVertical";t.$bd.windowScaleVerticalProperty=t.$ar.i("WindowScaleVertical",Number,t.$bd.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("WindowScaleVertical",r.d(),r.c())}));t.$bd.mn="ActualWindowScaleHorizontal";t.$bd.mo="ActualWindowScaleVertical";t.$bd.mv="HorizontalZoomable";t.$bd.horizontalZoomableProperty=t.$ar.i("HorizontalZoomable",t.$f.$type,t.$bd.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("HorizontalZoomable",r.d(),r.c())}));t.$bd.m2="VerticalZoomable";t.$bd.verticalZoomableProperty=t.$ar.i("VerticalZoomable",t.$f.$type,t.$bd.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("VerticalZoomable",r.d(),r.c())}));t.$bd.mw="HorizontalZoombarVisibility";t.$bd.horizontalZoombarVisibilityProperty=t.$ar.i("HorizontalZoombarVisibility",t.$a3.$type,t.$bd.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("HorizontalZoombarVisibility",r.d(),r.c())}));t.$bd.m3="VerticalZoombarVisibility";t.$bd.verticalZoombarVisibilityProperty=t.$ar.i("VerticalZoombarVisibility",t.$a3.$type,t.$bd.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("VerticalZoombarVisibility",r.d(),r.c())}));t.$bd.mu="GridMode";t.$bd.gridModeProperty=t.$ar.i("GridMode",t.$ts.$type,t.$bd.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("GridMode",r.d(),r.c())}));t.$bd.alignsGridLinesToPixelsProperty=t.$ar.i("AlignsGridLinesToPixels",t.$f.$type,t.$bd.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("AlignsGridLinesToPixels",r.d(),r.c())}));t.$bd.mp="AlignsGridLinesToPixels";t.$bd.mq="Brushes";t.$bd.brushesProperty=t.$ar.i("Brushes",t.$fd.$type,t.$bd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("Brushes",r.d(),r.c())}));t.$bd.my="MarkerBrushes";t.$bd.markerBrushesProperty=t.$ar.i("MarkerBrushes",t.$fd.$type,t.$bd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("MarkerBrushes",r.d(),r.c())}));t.$bd.m0="Outlines";t.$bd.outlinesProperty=t.$ar.i("Outlines",t.$fd.$type,t.$bd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("Outlines",r.d(),r.c())}));t.$bd.mz="MarkerOutlines";t.$bd.markerOutlinesProperty=t.$ar.i("MarkerOutlines",t.$fd.$type,t.$bd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("MarkerOutlines",r.d(),r.c())}));t.$bd.mt="DefaultAxisStroke";t.$bd.defaultAxisStrokeProperty=t.$ar.i("DefaultAxisStroke",t.$b3.$type,t.$bd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("DefaultAxisStroke",r.d(),r.c())}));t.$bd.mr="DefaultAxisMajorStroke";t.$bd.defaultAxisMajorStrokeProperty=t.$ar.i("DefaultAxisMajorStroke",t.$b3.$type,t.$bd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("DefaultAxisMajorStroke",r.d(),r.c())}));t.$bd.ms="DefaultAxisMinorStroke";t.$bd.defaultAxisMinorStrokeProperty=t.$ar.i("DefaultAxisMinorStroke",t.$b3.$type,t.$bd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("DefaultAxisMinorStroke",r.d(),r.c())}));t.$bd.m1="PlotAreaBackgroundContent";t.$bd.plotAreaBackgroundContentProperty=t.$ar.i("PlotAreaBackgroundContent",t.$al.$type,t.$bd.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$bd.$type,i).h8("PlotAreaBackgroundContent",r.d(),r.c())}));t.$bd.staticInit&&!t.$bd.xamDataChartStaticInitCalled&&(t.$bd.staticInit(),t.$bd.xamDataChartStaticInitCalled=!0);t.$zy.h=512;t.$l6.ac="SyncChannel";t.$l6.syncChannelProperty=t.$ar.i("SyncChannel",String,t.$l6.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$l6.$type,i).af("SyncChannel",r.d(),r.c())}));t.$l6.ae="SynchronizeVertically";t.$l6.synchronizeVerticallyProperty=t.$ar.i("SynchronizeVertically",t.$f.$type,t.$l6.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$l6.$type,i).af("SynchronizeVertically",r.d(),r.c())}));t.$l6.ad="SynchronizeHorizontally";t.$l6.synchronizeHorizontallyProperty=t.$ar.i("SynchronizeHorizontally",t.$f.$type,t.$l6.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$l6.$type,i).af("SynchronizeHorizontally",r.d(),r.c())}));t.$or.b=null;t.$oe.i="DefaultErrorBarStyle";t.$oe.defaultErrorBarStyleProperty=t.$ar.i("DefaultErrorBarStyle",t.$a4.$type,t.$oe.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$oe.$type,i).j("DefaultErrorBarStyle",r.d(),r.c())}));t.$z4.t="EnableErrorBars";t.$z4.enableErrorBarsProperty=t.$ar.i("EnableErrorBars",t.$of.$type,t.$z4.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$z4.$type,i).j("EnableErrorBars",r.d(),r.c())}));t.$z4.u="ErrorBarCapLength";t.$z4.errorBarCapLengthProperty=t.$ar.i("ErrorBarCapLength",n.ig.Number.prototype.$type,t.$z4.$type,new t.as(2,6,function(i,r){n.ig.util.cast(t.$z4.$type,i).j("ErrorBarCapLength",r.d(),r.c())}));t.$z4.s="Calculator";t.$z4.calculatorProperty=t.$ar.i("Calculator",t.$oh.$type,t.$z4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$z4.$type,i).j("Calculator",r.d(),r.c())}));t.$z4.w="Stroke";t.$z4.strokeProperty=t.$ar.i("Stroke",t.$b3.$type,t.$z4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$z4.$type,i).j("Stroke",r.d(),r.c())}));t.$z4.x="StrokeThickness";t.$z4.strokeThicknessProperty=t.$ar.i("StrokeThickness",Number,t.$z4.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$z4.$type,i).j("StrokeThickness",r.d(),r.c())}));t.$z4.v="ErrorBarStyle";t.$z4.errorBarStyleProperty=t.$ar.i("ErrorBarStyle",t.$a4.$type,t.$z4.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$z4.$type,i).j("ErrorBarStyle",r.d(),r.c())}));t.$od.y="EnableErrorBarsHorizontal";t.$od.enableErrorBarsHorizontalProperty=t.$ar.i("EnableErrorBarsHorizontal",t.$of.$type,t.$od.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$od.$type,i).j("EnableErrorBarsHorizontal",r.d(),r.c())}));t.$od.ab="HorizontalCalculatorReference";t.$od.horizontalCalculatorReferenceProperty=t.$ar.i("HorizontalCalculatorReference",t.$og.$type,t.$od.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$od.$type,i).j("HorizontalCalculatorReference",r.d(),r.c())}));t.$od.aa="HorizontalCalculator";t.$od.horizontalCalculatorProperty=t.$ar.i("HorizontalCalculator",t.$oh.$type,t.$od.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$od.$type,i).j("HorizontalCalculator",r.d(),r.c())}));t.$od.ac="HorizontalErrorBarCapLength";t.$od.horizontalErrorBarCapLengthProperty=t.$ar.i("HorizontalErrorBarCapLength",n.ig.Number.prototype.$type,t.$od.$type,new t.as(2,6,function(i,r){n.ig.util.cast(t.$od.$type,i).j("HorizontalErrorBarCapLength",r.d(),r.c())}));t.$od.ae="HorizontalStroke";t.$od.horizontalStrokeProperty=t.$ar.i("HorizontalStroke",t.$b3.$type,t.$od.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$od.$type,i).j("HorizontalStroke",r.d(),r.c())}));t.$od.af="HorizontalStrokeThickness";t.$od.horizontalStrokeThicknessProperty=t.$ar.i("HorizontalStrokeThickness",Number,t.$od.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$od.$type,i).j("HorizontalStrokeThickness",r.d(),r.c())}));t.$od.ad="HorizontalErrorBarStyle";t.$od.horizontalErrorBarStyleProperty=t.$ar.i("HorizontalErrorBarStyle",t.$a4.$type,t.$od.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$od.$type,i).j("HorizontalErrorBarStyle",r.d(),r.c())}));t.$od.z="EnableErrorBarsVertical";t.$od.enableErrorBarsVerticalProperty=t.$ar.i("EnableErrorBarsVertical",t.$of.$type,t.$od.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$od.$type,i).j("EnableErrorBarsVertical",r.d(),r.c())}));t.$od.ah="VerticalCalculatorReference";t.$od.verticalCalculatorReferenceProperty=t.$ar.i("VerticalCalculatorReference",t.$og.$type,t.$od.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$od.$type,i).j("VerticalCalculatorReference",r.d(),r.c())}));t.$od.ag="VerticalCalculator";t.$od.verticalCalculatorProperty=t.$ar.i("VerticalCalculator",t.$oh.$type,t.$od.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$od.$type,i).j("VerticalCalculator",r.d(),r.c())}));t.$od.ai="VerticalErrorBarCapLength";t.$od.verticalErrorBarCapLengthProperty=t.$ar.i("VerticalErrorBarCapLength",n.ig.Number.prototype.$type,t.$od.$type,new t.as(2,6,function(i,r){n.ig.util.cast(t.$od.$type,i).j("VerticalErrorBarCapLength",r.d(),r.c())}));t.$od.ak="VerticalStroke";t.$od.verticalStrokeProperty=t.$ar.i("VerticalStroke",t.$b3.$type,t.$od.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$od.$type,i).j("VerticalStroke",r.d(),r.c())}));t.$od.al="VerticalStrokeThickness";t.$od.verticalStrokeThicknessProperty=t.$ar.i("VerticalStrokeThickness",Number,t.$od.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$od.$type,i).j("VerticalStrokeThickness",r.d(),r.c())}));t.$od.aj="VerticalErrorBarStyle";t.$od.verticalErrorBarStyleProperty=t.$ar.i("VerticalErrorBarStyle",t.$a4.$type,t.$od.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$od.$type,i).j("VerticalErrorBarStyle",r.d(),r.c())}));t.$z5.trendLineTypeProperty=t.$ar.i("TrendLineType",t.$kk.$type,t.$z5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$z5.$type,i).raisePropertyChanged("TrendLineType",r.d(),r.c())}));t.$z5.trendLineBrushProperty=t.$ar.i("TrendLineBrush",t.$b3.$type,t.$z5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$z5.$type,i).raisePropertyChanged("TrendLineBrush",r.d(),r.c())}));t.$z5.actualTrendLineBrushProperty=t.$ar.i("ActualTrendLineBrush",t.$b3.$type,t.$z5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$z5.$type,i).raisePropertyChanged("ActualTrendLineBrush",r.d(),r.c())}));t.$z5.trendLineThicknessProperty=t.$ar.i("TrendLineThickness",Number,t.$z5.$type,new t.as(2,1.5,function(i,r){n.ig.util.cast(t.$z5.$type,i).raisePropertyChanged("TrendLineThickness",r.d(),r.c())}));t.$z5.trendLineDashCapProperty=t.$ar.i("TrendLineDashCap",t.$lv.$type,t.$z5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$z5.$type,i).raisePropertyChanged("TrendLineDashCap",r.d(),r.c())}));t.$z5.trendLineDashArrayProperty=t.$ar.i("TrendLineDashArray",t.$b5.$type,t.$z5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$z5.$type,i).raisePropertyChanged("TrendLineDashArray",r.d(),r.c())}));t.$z5.trendLinePeriodProperty=t.$ar.i("TrendLinePeriod",n.ig.Number.prototype.$type,t.$z5.$type,new t.as(2,7,function(i,r){n.ig.util.cast(t.$z5.$type,i).raisePropertyChanged("TrendLinePeriod",r.d(),r.c())}));t.$z5.trendLineZIndexProperty=t.$ar.i("TrendLineZIndex",n.ig.Number.prototype.$type,t.$z5.$type,new t.as(2,1001,function(i,r){n.ig.util.cast(t.$z5.$type,i).raisePropertyChanged("TrendLineZIndex",r.d(),r.c())}));t.$z5.m9="DisplayType";t.$z5.displayTypeProperty=t.$ar.i("DisplayType",t.$z2.$type,t.$z5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$z5.$type,i).raisePropertyChanged("DisplayType",r.d(),r.c())}));t.$z5.m4=3;t.$we.a7="Orientation";t.$m5.bg="StartAngle";t.$m5.bv=t.$ar.i("StartAngle",Number,t.$m5.$type,new t.as(2,0,function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.a5="EndAngle";t.$m5.bk=t.$ar.i("EndAngle",Number,t.$m5.$type,new t.as(2,0,function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.ba="InnerExtentStart";t.$m5.bp=t.$ar.i("InnerExtentStart",Number,t.$m5.$type,new t.as(2,0,function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.a9="InnerExtentEnd";t.$m5.bo=t.$ar.i("InnerExtentEnd",Number,t.$m5.$type,new t.as(2,0,function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.bd="IsSelected";t.$m5.bs=t.$ar.i("IsSelected",t.$f.$type,t.$m5.$type,new t.as(2,!1,function(i,r){var u=n.ig.util.cast(t.$m5.$type,i),f=r.c();u.af().d4(u,f)}));t.$m5.bb="IsExploded";t.$m5.bq=t.$ar.i("IsExploded",t.$f.$type,t.$m5.$type,new t.as(2,!1,function(i,r){var u=n.ig.util.cast(t.$m5.$type,i),f=r.c();u.af().dc(u,f)}));t.$m5.bc="IsOtherSlice";t.$m5.br=t.$ar.i("IsOtherSlice",t.$f.$type,t.$m5.$type,new t.as(2,!1,function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.be="Origin";t.$m5.bt=t.$ar.i("Origin",t.$z.$type,t.$m5.$type,new t.as(2,new t.z(0),function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.a6="ExplodedOrigin";t.$m5.bl=t.$ar.i("ExplodedOrigin",t.$z.$type,t.$m5.$type,new t.as(2,new t.z(0),function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.bf="Radius";t.$m5.bu=t.$ar.i("Radius",Number,t.$m5.$type,new t.as(2,0,function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.a7="ExplodedRadius";t.$m5.bm=t.$ar.i("ExplodedRadius",Number,t.$m5.$type,new t.as(2,0,function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.a8="Index";t.$m5.bn=t.$ar.i("Index",n.ig.Number.prototype.$type,t.$m5.$type,new t.as(2,-1,function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$m5.bh="StrokeThickness";t.$m5.bw=t.$ar.i("StrokeThickness",Number,t.$m5.$type,new t.as(2,1,function(i){return n.ig.util.cast(t.$m5.$type,i).bi()}));t.$t2.lm="AngleMemberPath";t.$t2.angleMemberPathProperty=t.$ar.i("AngleMemberPath",String,t.$t2.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("AngleMemberPath",r.d(),r.c())}));t.$t2.ls="RadiusMemberPath";t.$t2.radiusMemberPathProperty=t.$ar.i("RadiusMemberPath",String,t.$t2.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("RadiusMemberPath",r.d(),r.c())}));t.$t2.lk="AngleColumn";t.$t2.lq="RadiusColumn";t.$t2.lj="AngleAxis";t.$t2.angleAxisProperty=t.$ar.i("AngleAxis",t.$jl.$type,t.$t2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("AngleAxis",r.d(),r.c())}));t.$t2.lp="RadiusAxis";t.$t2.radiusAxisProperty=t.$ar.i("RadiusAxis",t.$i7.$type,t.$t2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("RadiusAxis",r.d(),r.c())}));t.$t2.lt="UseCartesianInterpolation";t.$t2.useCartesianInterpolationProperty=t.$ar.i("UseCartesianInterpolation",t.$f.$type,t.$t2.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("UseCartesianInterpolation",r.d(),r.c())}));t.$t2.lo="MaximumMarkers";t.$t2.maximumMarkersProperty=t.$ar.i("MaximumMarkers",n.ig.Number.prototype.$type,t.$t2.$type,new t.as(2,400,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("MaximumMarkers",r.d(),r.c())}));t.$t2.trendLineTypeProperty=t.$ar.i("TrendLineType",t.$kk.$type,t.$t2.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("TrendLineType",r.d(),r.c())}));t.$t2.trendLineBrushProperty=t.$ar.i("TrendLineBrush",t.$b3.$type,t.$t2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("TrendLineBrush",r.d(),r.c())}));t.$t2.actualTrendLineBrushProperty=t.$ar.i("ActualTrendLineBrush",t.$b3.$type,t.$t2.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("ActualTrendLineBrush",r.d(),r.c())}));t.$t2.trendLineThicknessProperty=t.$ar.i("TrendLineThickness",Number,t.$t2.$type,new t.as(2,1.5,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("TrendLineThickness",r.d(),r.c())}));t.$t2.trendLineDashCapProperty=t.$ar.i("TrendLineDashCap",t.$lv.$type,t.$t2.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("TrendLineDashCap",r.d(),r.c())}));t.$t2.trendLineDashArrayProperty=t.$ar.i("TrendLineDashArray",t.$b5.$type,t.$t2.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("TrendLineDashArray",r.d(),r.c())}));t.$t2.trendLinePeriodProperty=t.$ar.i("TrendLinePeriod",n.ig.Number.prototype.$type,t.$t2.$type,new t.as(2,7,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("TrendLinePeriod",r.d(),r.c())}));t.$t2.trendLineZIndexProperty=t.$ar.i("TrendLineZIndex",n.ig.Number.prototype.$type,t.$t2.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("TrendLineZIndex",r.d(),r.c())}));t.$t2.ln="ClipSeriesToBounds";t.$t2.clipSeriesToBoundsProperty=t.$ar.i("ClipSeriesToBounds",t.$f.$type,t.$t2.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$t2.$type,i).raisePropertyChanged("ClipSeriesToBounds",r.d(),r.c())}));t.$aac.m2="UnknownValuePlotting";t.$aac.unknownValuePlottingProperty=t.$ar.i("UnknownValuePlotting",t.$lt.$type,t.$aac.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$aac.$type,i).raisePropertyChanged("UnknownValuePlotting",r.d(),r.c())}));t.$aae.m2="UnknownValuePlotting";t.$aae.unknownValuePlottingProperty=t.$ar.i("UnknownValuePlotting",t.$lt.$type,t.$aae.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$aae.$type,i).raisePropertyChanged("UnknownValuePlotting",r.d(),r.c())}));t.$aai.m2="Stiffness";t.$aai.stiffnessProperty=t.$ar.i("Stiffness",Number,t.$aai.$type,new t.as(2,.5,function(i,r){n.ig.util.cast(t.$aai.$type,i).raisePropertyChanged("Stiffness",r.d(),r.c())}));t.$aak.m2="Stiffness";t.$aak.stiffnessProperty=t.$ar.i("Stiffness",Number,t.$aak.$type,new t.as(2,.5,function(i,r){n.ig.util.cast(t.$aak.$type,i).raisePropertyChanged("Stiffness",r.d(),r.c())}));t.$aam.mi="RadiusX";t.$aam.radiusXProperty=t.$ar.i("RadiusX",Number,t.$aam.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$aam.$type,i).raisePropertyChanged("RadiusX",r.d(),r.c())}));t.$aam.mj="RadiusY";t.$aam.radiusYProperty=t.$ar.i("RadiusY",Number,t.$aam.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$aam.$type,i).raisePropertyChanged("RadiusY",r.d(),r.c())}));t.$aao.mh="UnknownValuePlotting";t.$aao.unknownValuePlottingProperty=t.$ar.i("UnknownValuePlotting",t.$lt.$type,t.$aao.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$aao.$type,i).raisePropertyChanged("UnknownValuePlotting",r.d(),r.c())}));t.$aaq.mi="RadiusX";t.$aaq.radiusXProperty=t.$ar.i("RadiusX",Number,t.$aaq.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$aaq.$type,i).raisePropertyChanged("RadiusX",r.d(),r.c())}));t.$aaq.mj="RadiusY";t.$aaq.radiusYProperty=t.$ar.i("RadiusY",Number,t.$aaq.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$aaq.$type,i).raisePropertyChanged("RadiusY",r.d(),r.c())}));t.$fn.r="ZoomLevel";t.$fn.zoomLevelProperty=t.$ar.i("ZoomLevel",Number,t.$fn.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$fn.$type,i).u("ZoomLevel",r.d(),r.c())}));t.$fn.q="ZoomLevelDisplayText";t.$so.n1="RadiusX";t.$so.radiusXProperty=t.$ar.i("RadiusX",Number,t.$so.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$so.$type,i).raisePropertyChanged("RadiusX",r.d(),r.c())}));t.$so.n2="RadiusY";t.$so.radiusYProperty=t.$ar.i("RadiusY",Number,t.$so.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$so.$type,i).raisePropertyChanged("RadiusY",r.d(),r.c())}));t.$fu.m7="AutoGenerateSeries";t.$fu.autoGenerateSeriesProperty=t.$ar.i("AutoGenerateSeries",t.$f.$type,t.$fu.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$fu.$type,i).raisePropertyChanged("AutoGenerateSeries",r.d(),r.c())}));t.$fu.m8="ReverseLegendOrder";t.$fu.reverseLegendOrderProperty=t.$ar.i("ReverseLegendOrder",t.$f.$type,t.$fu.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$fu.$type,i).raisePropertyChanged("ReverseLegendOrder",r.d(),r.c())}));t.$fu.m9="SeriesVisibility";t.$fu.nk=t.$ar.i("SeriesVisibility",t.$a3.$type,t.$fu.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$fu.$type,i).raisePropertyChanged("SeriesVisibility",r.d(),r.c())}));t.$r7.nm="XAxis";t.$r7.xAxisProperty=t.$ar.i("XAxis",t.$hb.$type,t.$r7.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$r7.$type,i).raisePropertyChanged("XAxis",r.d(),r.c())}));t.$r7.nn="YAxis";t.$r7.yAxisProperty=t.$ar.i("YAxis",t.$iq.$type,t.$r7.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$r7.$type,i).raisePropertyChanged("YAxis",r.d(),r.c())}));t.$sr.nm="XAxis";t.$sr.xAxisProperty=t.$ar.i("XAxis",t.$l7.$type,t.$sr.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$sr.$type,i).raisePropertyChanged("XAxis",r.d(),r.c())}));t.$sr.nn="YAxis";t.$sr.yAxisProperty=t.$ar.i("YAxis",t.$l4.$type,t.$sr.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$sr.$type,i).raisePropertyChanged("YAxis",r.d(),r.c())}));t.$sq.nt="RadiusX";t.$sq.radiusXProperty=t.$ar.i("RadiusX",Number,t.$sq.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$sq.$type,i).raisePropertyChanged("RadiusX",r.d(),r.c())}));t.$sq.nu="RadiusY";t.$sq.radiusYProperty=t.$ar.i("RadiusY",Number,t.$sq.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$sq.$type,i).raisePropertyChanged("RadiusY",r.d(),r.c())}));t.$sl.nt="RadiusX";t.$sl.radiusXProperty=t.$ar.i("RadiusX",Number,t.$sl.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$sl.$type,i).raisePropertyChanged("RadiusX",r.d(),r.c())}));t.$sl.nu="RadiusY";t.$sl.radiusYProperty=t.$ar.i("RadiusY",Number,t.$sl.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$sl.$type,i).raisePropertyChanged("RadiusY",r.d(),r.c())}));t.$r5.bp="Brush";t.$r5.brushProperty=t.$ar.i("Brush",t.$b3.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("Brush",r.d(),r.c())}));t.$r5.av="ActualBrush";t.$r5.actualBrushProperty=t.$ar.i("ActualBrush",t.$b3.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualBrush",r.d(),r.c())}));t.$r5.bq="DashArray";t.$r5.dashArrayProperty=t.$ar.i("DashArray",t.$b5.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("DashArray",r.d(),r.c())}));t.$r5.aw="ActualDashArray";t.$r5.actualDashArrayProperty=t.$ar.i("ActualDashArray",t.$b5.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualDashArray",r.d(),r.c())}));t.$r5.br="DashCap";t.$r5.dashCapProperty=t.$ar.i("DashCap",t.$lv.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("DashCap",r.d(),r.c())}));t.$r5.ax="ActualDashCap";t.$r5.actualDashCapProperty=t.$ar.i("ActualDashCap",t.$lv.$type,t.$r5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualDashCap",r.d(),r.c())}));t.$r5.bt="IsDropShadowEnabled";t.$r5.isDropShadowEnabledProperty=t.$ar.i("IsDropShadowEnabled",n.ig.Nullable$1.prototype.$type.specialize(t.$f.$type),t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("IsDropShadowEnabled",r.d(),r.c())}));t.$r5.az="ActualIsDropShadowEnabled";t.$r5.actualIsDropShadowEnabledProperty=t.$ar.i("ActualIsDropShadowEnabled",t.$f.$type,t.$r5.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualIsDropShadowEnabled",r.d(),r.c())}));t.$r5.ca="ShadowBlur";t.$r5.shadowBlurProperty=t.$ar.i("ShadowBlur",Number,t.$r5.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ShadowBlur",r.d(),r.c())}));t.$r5.be="ActualShadowBlur";t.$r5.actualShadowBlurProperty=t.$ar.i("ActualShadowBlur",Number,t.$r5.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualShadowBlur",r.d(),r.c())}));t.$r5.cb="ShadowColor";t.$r5.shadowColorProperty=t.$ar.i("ShadowColor",t.$b4.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ShadowColor",r.d(),r.c())}));t.$r5.bf="ActualShadowColor";t.$r5.actualShadowColorProperty=t.$ar.i("ActualShadowColor",t.$b4.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualShadowColor",r.d(),r.c())}));t.$r5.cj="UseSingleShadow";t.$r5.useSingleShadowProperty=t.$ar.i("UseSingleShadow",t.$f.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("UseSingleShadow",r.d(),r.c())}));t.$r5.bm="ActualUseSingleShadow";t.$r5.actualUseSingleShadowProperty=t.$ar.i("ActualUseSingleShadow",t.$f.$type,t.$r5.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualUseSingleShadow",r.d(),r.c())}));t.$r5.cc="ShadowOffsetX";t.$r5.shadowOffsetXProperty=t.$ar.i("ShadowOffsetX",Number,t.$r5.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ShadowOffsetX",r.d(),r.c())}));t.$r5.bg="ActualShadowOffsetX";t.$r5.actualShadowOffsetXProperty=t.$ar.i("ActualShadowOffsetX",Number,t.$r5.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualShadowOffsetX",r.d(),r.c())}));t.$r5.cd="ShadowOffsetY";t.$r5.shadowOffsetYProperty=t.$ar.i("ShadowOffsetY",Number,t.$r5.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ShadowOffsetY",r.d(),r.c())}));t.$r5.bh="ActualShadowOffsetY";t.$r5.actualShadowOffsetYProperty=t.$ar.i("ActualShadowOffsetY",Number,t.$r5.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualShadowOffsetY",r.d(),r.c())}));t.$r5.bs="EndCap";t.$r5.endCapProperty=t.$ar.i("EndCap",t.$lv.$type,t.$r5.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("EndCap",r.d(),r.c())}));t.$r5.ay="ActualEndCap";t.$r5.actualEndCapProperty=t.$ar.i("ActualEndCap",t.$lv.$type,t.$r5.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualEndCap",r.d(),r.c())}));t.$r5.bu="IsHitTestVisible";t.$r5.isHitTestVisibleProperty=t.$ar.i("IsHitTestVisible",t.$f.$type,t.$r5.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("IsHitTestVisible",r.d(),r.c())}));t.$r5.a0="ActualIsHitTestVisible";t.$r5.actualIsHitTestVisibleProperty=t.$ar.i("ActualIsHitTestVisible",t.$f.$type,t.$r5.$type,new t.as(2,!0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualIsHitTestVisible",r.d(),r.c())}));t.$r5.bv="LegendItemBadgeTemplate";t.$r5.legendItemBadgeTemplateProperty=t.$ar.i("LegendItemBadgeTemplate",t.$cg.$type,t.$r5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("LegendItemBadgeTemplate",r.d(),r.c())}));t.$r5.a1="ActualLegendItemBadgeTemplate";t.$r5.actualLegendItemBadgeTemplateProperty=t.$ar.i("ActualLegendItemBadgeTemplate",t.$cg.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualLegendItemBadgeTemplate",r.d(),r.c())}));t.$r5.bw="LegendItemTemplate";t.$r5.legendItemTemplateProperty=t.$ar.i("LegendItemTemplate",t.$cg.$type,t.$r5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("LegendItemTemplate",r.d(),r.c())}));t.$r5.a2="ActualLegendItemTemplate";t.$r5.actualLegendItemTemplateProperty=t.$ar.i("ActualLegendItemTemplate",t.$cg.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualLegendItemTemplate",r.d(),r.c())}));t.$r5.bx="LegendItemVisibility";t.$r5.legendItemVisibilityProperty=t.$ar.i("LegendItemVisibility",t.$a3.$type,t.$r5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("LegendItemVisibility",r.d(),r.c())}));t.$r5.a3="ActualLegendItemVisibility";t.$r5.actualLegendItemVisibilityProperty=t.$ar.i("ActualLegendItemVisibility",t.$a3.$type,t.$r5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualLegendItemVisibility",r.d(),r.c())}));t.$r5.by="MarkerBrush";t.$r5.markerBrushProperty=t.$ar.i("MarkerBrush",t.$b3.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("MarkerBrush",r.d(),r.c())}));t.$r5.a4="ActualMarkerBrush";t.$r5.actualMarkerBrushProperty=t.$ar.i("ActualMarkerBrush",t.$b3.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualMarkerBrush",r.d(),r.c())}));t.$r5.bz="MarkerOutline";t.$r5.markerOutlineProperty=t.$ar.i("MarkerOutline",t.$b3.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("MarkerOutline",r.d(),r.c())}));t.$r5.a5="ActualMarkerOutline";t.$r5.actualMarkerOutlineProperty=t.$ar.i("ActualMarkerOutline",t.$b3.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualMarkerOutline",r.d(),r.c())}));t.$r5.b0="MarkerStyle";t.$r5.markerStyleProperty=t.$ar.i("MarkerStyle",t.$a4.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("MarkerStyle",r.d(),r.c())}));t.$r5.a6="ActualMarkerStyle";t.$r5.actualMarkerStyleProperty=t.$ar.i("ActualMarkerStyle",t.$a4.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualMarkerStyle",r.d(),r.c())}));t.$r5.b1="MarkerTemplate";t.$r5.markerTemplateProperty=t.$ar.i("MarkerTemplate",t.$cg.$type,t.$r5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("MarkerTemplate",r.d(),r.c())}));t.$r5.a7="ActualMarkerTemplate";t.$r5.actualMarkerTemplateProperty=t.$ar.i("ActualMarkerTemplate",t.$cg.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualMarkerTemplate",r.d(),r.c())}));t.$r5.b2="MarkerType";t.$r5.markerTypeProperty=t.$ar.i("MarkerType",t.$gc.$type,t.$r5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("MarkerType",r.d(),r.c())}));t.$r5.a8="ActualMarkerType";t.$r5.actualMarkerTypeProperty=t.$ar.i("ActualMarkerType",t.$gc.$type,t.$r5.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualMarkerType",r.d(),r.c())}));t.$r5.b4="Name";t.$r5.nameProperty=t.$ar.i("Name",String,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("Name",r.d(),r.c())}));t.$r5.b6="Opacity";t.$r5.opacityProperty=t.$ar.i("Opacity",Number,t.$r5.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("Opacity",r.d(),r.c())}));t.$r5.ba="ActualOpacity";t.$r5.actualOpacityProperty=t.$ar.i("ActualOpacity",Number,t.$r5.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualOpacity",r.d(),r.c())}));t.$r5.b5="OpacityMask";t.$r5.opacityMaskProperty=t.$ar.i("OpacityMask",t.$b3.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("OpacityMask",r.d(),r.c())}));t.$r5.a9="ActualOpacityMask";t.$r5.actualOpacityMaskProperty=t.$ar.i("ActualOpacityMask",t.$b3.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualOpacityMask",r.d(),r.c())}));t.$r5.b7="Outline";t.$r5.outlineProperty=t.$ar.i("Outline",t.$b3.$type,t.$r5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("Outline",r.d(),r.c())}));t.$r5.bb="ActualOutline";t.$r5.actualOutlineProperty=t.$ar.i("ActualOutline",t.$b3.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualOutline",r.d(),r.c())}));t.$r5.bo="AreaFillOpacity";t.$r5.areaFillOpacityProperty=t.$ar.i("AreaFillOpacity",Number,t.$r5.$type,new t.as(2,NaN,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("AreaFillOpacity",r.d(),r.c())}));t.$r5.au="ActualAreaFillOpacity";t.$r5.actualAreaFillOpacityProperty=t.$ar.i("ActualAreaFillOpacity",Number,t.$r5.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualAreaFillOpacity",r.d(),r.c())}));t.$r5.b8="RadiusX";t.$r5.radiusXProperty=t.$ar.i("RadiusX",Number,t.$r5.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("RadiusX",r.d(),r.c())}));t.$r5.bc="ActualRadiusX";t.$r5.actualRadiusXProperty=t.$ar.i("ActualRadiusX",Number,t.$r5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualRadiusX",r.d(),r.c())}));t.$r5.b9="RadiusY";t.$r5.radiusYProperty=t.$ar.i("RadiusY",Number,t.$r5.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("RadiusY",r.d(),r.c())}));t.$r5.bd="ActualRadiusY";t.$r5.actualRadiusYProperty=t.$ar.i("ActualRadiusY",Number,t.$r5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualRadiusY",r.d(),r.c())}));t.$r5.ce="StartCap";t.$r5.startCapProperty=t.$ar.i("StartCap",t.$lv.$type,t.$r5.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("StartCap",r.d(),r.c())}));t.$r5.bi="ActualStartCap";t.$r5.actualStartCapProperty=t.$ar.i("ActualStartCap",t.$lv.$type,t.$r5.$type,new t.as(2,2,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualStartCap",r.d(),r.c())}));t.$r5.cf="Thickness";t.$r5.thicknessProperty=t.$ar.i("Thickness",Number,t.$r5.$type,new t.as(2,1.5,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("Thickness",r.d(),r.c())}));t.$r5.bj="ActualThickness";t.$r5.actualThicknessProperty=t.$ar.i("ActualThickness",Number,t.$r5.$type,new t.as(2,1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualThickness",r.d(),r.c())}));t.$r5.cg="Title";t.$r5.titleProperty=t.$ar.i("Title",n.ig.$op.$type,t.$r5.$type,new t.as(2,"Series Title",function(i,r){n.ig.util.cast(t.$r5.$type,i).co("Title",r.d(),r.c())}));t.$r5.ch="ToolTip";t.$r5.toolTipProperty=t.$ar.i("ToolTip",n.ig.$op.$type,t.$r5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ToolTip",r.d(),r.c())}));t.$r5.bk="ActualToolTip";t.$r5.actualToolTipProperty=t.$ar.i("ActualToolTip",n.ig.$op.$type,t.$r5.$type,new t.as(1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualToolTip",r.d(),r.c())}));t.$r5.ci="UseLightweightMarkers";t.$r5.useLightweightMarkersProperty=t.$ar.i("UseLightweightMarkers",t.$f.$type,t.$r5.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("UseLightweightMarkers",r.d(),r.c())}));t.$r5.bl="ActualUseLightweightMarkers";t.$r5.actualUseLightweightMarkersProperty=t.$ar.i("ActualUseLightweightMarkers",t.$f.$type,t.$r5.$type,new t.as(2,!1,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualUseLightweightMarkers",r.d(),r.c())}));t.$r5.cl="ValueMemberPath";t.$r5.valueMemberPathProperty=t.$ar.i("ValueMemberPath",String,t.$r5.$type,new t.as(2,null,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ValueMemberPath",r.d(),r.c())}));t.$r5.cm="Visibility";t.$r5.visibilityProperty=t.$ar.i("Visibility",t.$a3.$type,t.$r5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("Visibility",r.d(),r.c())}));t.$r5.bn="ActualVisibility";t.$r5.actualVisibilityProperty=t.$ar.i("ActualVisibility",t.$a3.$type,t.$r5.$type,new t.as(2,0,function(i,r){n.ig.util.cast(t.$r5.$type,i).co("ActualVisibility",r.d(),r.c())}));n.ig.util.extCopy(n.ig.VisualDataSerializer,[[[n.ig.Rect],["serialize"]]]);n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1,n.ig.RangeValueList,n.ig.FinancialValueList,n.ig.CalculatedColumn,n.ig.IntColumn,n.ig.SafeEnumerable,n.ig.SafeReadOnlyDoubleCollection,n.ig.SafeSortedReadOnlyDoubleCollection,n.ig.SortedListView$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper,n.ig.RearrangedList$1,n.ig.RangeValueList,n.ig.FinancialValueList,n.ig.CalculatedColumn,n.ig.SafeEnumerable,n.ig.SafeReadOnlyDoubleCollection,n.ig.SafeSortedReadOnlyDoubleCollection,n.ig.SortedListView$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1,n.ig.RangeValueList,n.ig.FinancialValueList,n.ig.CalculatedColumn,n.ig.IntColumn,n.ig.SafeEnumerable,n.ig.SafeReadOnlyDoubleCollection,n.ig.SafeSortedReadOnlyDoubleCollection,n.ig.SortedListView$1],["ofType$1","cast$1"]]]);n.ig.util.extCopy(n.ig.ArrayUtil,[[[n.ig.EdgeClipper,n.ig.RearrangedList$1,n.ig.RangeValueList,n.ig.FinancialValueList,n.ig.SafeReadOnlyDoubleCollection,n.ig.SafeSortedReadOnlyDoubleCollection,n.ig.SortedListView$1],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);n.ig.util.extCopy(n.ig.BrushUtil,[[[],["getLightened"]]]);n.ig.util.extCopy(n.ig.ColorUtil,[[[],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);n.ig.util.extCopy(n.ig.Extensions,[[[],["reset1"]],[[],["reset"]],[[],["detach"]],[[],["transferChildrenTo"]],[[],["isPlottable"]],[[],["isPlottable1"]]]);n.ig.util.extCopy(n.ig.PathFigureUtil,[[[],["duplicate1"]],[[],["duplicate"]]]);n.ig.util.extCopy(n.ig.PointCollectionUtil,[[[n.ig.RearrangedList$1,n.ig.RangeValueList,n.ig.FinancialValueList,n.ig.SafeReadOnlyDoubleCollection,n.ig.SafeSortedReadOnlyDoubleCollection,n.ig.SortedListView$1],["flattenTo","getBounds2","clipTo"]],[[n.ig.RearrangedList$1,n.ig.RangeValueList,n.ig.FinancialValueList,n.ig.CalculatedColumn,n.ig.SafeEnumerable,n.ig.SafeReadOnlyDoubleCollection,n.ig.SafeSortedReadOnlyDoubleCollection,n.ig.SortedListView$1],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[],["getBounds3","getBounds4","toPointCollections"]]]);n.ig.util.extCopy(n.ig.RectUtil,[[[],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["SphericalMercatorHorizontalScaler:a","HorizontalLinearScaler:b","LinearScaler:c","NumericScaler:d","DependencyObject:e","Object:f","Type:g","Boolean:h","ValueType:i","Void:j","String:k","IComparable:l","Number:m","Number:n","Single:o","Number:p","String:q","Array:r","RegExp:s","RuntimeTypeHandle:t","MethodInfo:u","MethodBase:v","MemberInfo:w","ParameterInfo:x","TypeCode:y","Enum:z","ConstructorInfo:aa","Dictionary:ab","IEnumerable:ac","IEnumerator:ad","DependencyProperty:ae","PropertyMetadata:af","PropertyChangedCallback:ag","MulticastDelegate:ah","IntPtr:ai","DependencyPropertyChangedEventArgs:aj","DependencyPropertiesCollection:ak","UnsetValue:al","Script:am","Binding:an","PropertyPath:ao","NumericAxisBase:ap","Axis:aq","Control:ar","FrameworkElement:as","UIElement:at","Transform:au","Visibility:av","Style:aw","Thickness:ax","HorizontalAlignment:ay","VerticalAlignment:az","INotifyPropertyChanged:a0","PropertyChangedEventHandler:a1","PropertyChangedEventArgs:a2","AxisView:a3","ISchedulableRender:a4","Path:a5","Shape:a6","Brush:a7","Color:a8","Number:a9","Math:ba","Number:bb","Number:bc","Number:bd","Number:be","Number:bf","Number:bg","Number:bh","DoubleCollection:bi","List$1:bj","IList$1:bk","ICollection$1:bl","IEnumerable$1:bm","IEnumerator$1:bn","IArrayList:bo","Array:bp","ICollection:bq","CompareCallback:br","IList:bs","IDisposable:bt","IArray:bu","Date:bv","Date:bw","Func$3:bx","Action$1:by","Geometry:bz","GeometryType:b0","XamDataChart:b1","SeriesViewer:b2","SeriesViewerView:b3","CanvasRenderScheduler:b4","Callback:b5","window:b6","RenderingContext:b7","IRenderer:b8","Rectangle:b9","Rect:ca","Size:cb","Point:cc","TextBlock:cd","Polygon:ce","PointCollection:cf","Polyline:cg","DataTemplateRenderInfo:ch","DataTemplatePassInfo:ci","ContentControl:cj","DataTemplate:ck","DataTemplateRenderHandler:cl","DataTemplateMeasureHandler:cm","DataTemplateMeasureInfo:cn","DataTemplatePassHandler:co","Line:cp","XamOverviewPlusDetailPane:cq","XamOverviewPlusDetailPaneView:cr","XamOverviewPlusDetailPaneViewManager:cs","JQueryObject:ct","Element:cu","ElementAttributeCollection:cv","ElementCollection:cw","WebStyle:cx","ElementNodeType:cy","Document:cz","EventListener:c0","IElementEventHandler:c1","ElementEventHandler:c2","ElementAttribute:c3","JQueryPosition:c4","JQueryCallback:c5","JQueryEvent:c6","JQueryUICallback:c7","EventProxy:c8","ModifierKeys:c9","Func$2:da","MouseWheelHandler:db","Delegate:dc","GestureHandler:dd","ContactHandler:de","TouchHandler:df","MouseOverHandler:dg","MouseHandler:dh","KeyHandler:di","Key:dj","JQuery:dk","JQueryDeferred:dl","JQueryPromise:dm","Action:dn","CanvasViewRenderer:dp","CanvasContext2D:dq","CanvasContext:dr","TextMetrics:ds","ImageData:dt","CanvasElement:du","Gradient:dv","LinearGradientBrush:dw","GradientStop:dx","GeometryGroup:dy","GeometryCollection:dz","FillRule:d0","PathGeometry:d1","PathFigureCollection:d2","LineGeometry:d3","RectangleGeometry:d4","EllipseGeometry:d5","ArcSegment:d6","PathSegment:d7","PathSegmentType:d8","SweepDirection:d9","PathFigure:ea","PathSegmentCollection:eb","LineSegment:ec","PolyLineSegment:ed","BezierSegment:ee","PolyBezierSegment:ef","GeometryUtil:eg","Tuple$2:eh","TransformGroup:ei","TransformCollection:ej","TranslateTransform:ek","RotateTransform:el","ScaleTransform:em","DivElement:en","DOMEventProxy:eo","MSGesture:ep","MouseEventArgs:eq","EventArgs:er","DoubleAnimator:es","EasingFunctionHandler:et","ImageElement:eu","RectUtil:ev","MathUtil:ew","RuntimeHelpers:ex","RuntimeFieldHandle:ey","PropertyChangedEventArgs$1:ez","InteractionState:e0","OverviewPlusDetailPaneMode:e1","IOverviewPlusDetailControl:e2","EventHandler$1:e3","ArgumentNullException:e4","Error:e5","OverviewPlusDetailViewportHost:e6","IProvidesViewport:e7","SeriesCollection:e8","ObservableCollection$1:e9","INotifyCollectionChanged:fa","NotifyCollectionChangedEventHandler:fb","NotifyCollectionChangedEventArgs:fc","NotifyCollectionChangedAction:fd","AxisCollection:fe","SeriesViewerViewManager:ff","AxisTitlePosition:fg","PointerTooltipStyle:fh","BrushCollection:fi","InterpolationMode:fj","Random:fk","ColorUtil:fl","CssHelper:fm","CssGradientUtil:fn","FontUtil:fo","FontInfo:fp","Series:fq","SeriesView:fr","DataContext:fs","SeriesComponentsFromView:ft","EasingFunctions:fu","LegendTemplates:fv","PieChartBase:fw","PieChartBaseView:fx","PieChartViewManager:fy","BrushUtil:fz","PieChartVisualData:f0","PieSliceVisualDataList:f1","PieSliceVisualData:f2","PrimitiveAppearanceData:f3","IVisualData:f4","BrushAppearanceData:f5","StringBuilder:f6","AppearanceHelper:f7","LinearGradientBrushAppearanceData:f8","GradientStopAppearanceData:f9","SolidBrushAppearanceData:ga","EllipseGeometryData:gb","GeometryData:gc","GetPointsSettings:gd","RectangleGeometryData:ge","LineGeometryData:gf","PathGeometryData:gg","PathFigureData:gh","LineSegmentData:gi","SegmentData:gj","PolylineSegmentData:gk","ArcSegmentData:gl","PolyBezierSegmentData:gm","LabelAppearanceData:gn","PathVisualData:go","PrimitiveVisualData:gp","ShapeTags:gq","PieSliceDataContext:gr","Slice:gs","SliceView:gt","PieLabel:gu","MouseButtonEventArgs:gv","FastItemsSource:gw","IFastItemsSource:gx","IFastItemColumn$1:gy","IFastItemColumnPropertyName:gz","Dictionary$2:g0","IDictionary$2:g1","IDictionary:g2","IEqualityComparer$1:g3","KeyValuePair$2:g4","NotImplementedException:g5","IFastItemColumnInternal:g6","FastItemsSourceEventAction:g7","FastItemsSourceEventArgs:g8","ArgumentException:g9","ColumnReference:ha","FastItemDateTimeColumn:hb","FastItemColumn:hc","FastReflectionHelper:hd","FastItemObjectColumn:he","FastItemIntColumn:hf","LabelsPosition:hg","LeaderLineType:hh","OthersCategoryType:hi","IndexCollection:hj","LegendBase:hk","LegendBaseView:hl","LegendBaseViewManager:hm","GradientData:hn","GradientStopData:ho","DataChartLegendMouseButtonEventArgs:hp","DataChartMouseButtonEventArgs:hq","ChartLegendMouseEventArgs:hr","ChartMouseEventArgs:hs","PropertyUpdatedEventHandler:ht","PropertyUpdatedEventArgs:hu","DataChartLegendMouseButtonEventHandler:hv","DataChartLegendMouseEventHandler:hw","PieChartFormatLabelHandler:hx","Pool$1:hy","IIndexedPool$1:hz","IPool$1:h0","Func$1:h1","SliceClickEventHandler:h2","SliceClickEventArgs:h3","ItemLegend:h4","ItemLegendView:h5","LegendItemInfo:h6","BubbleSeries:h7","ScatterBase:h8","MarkerSeries:h9","MarkerSeriesView:ia","Marker:ib","MarkerTemplates:ic","HashPool$2:id","IHashPool$2:ie","MarkerType:ig","SeriesVisualData:ih","PrimitiveVisualDataList:ii","PointerTooltipVisualDataList:ij","MarkerVisualDataList:ik","MarkerVisualData:il","PointerTooltipVisualData:im","RectangleVisualData:io","PolygonVisualData:ip","PolyLineVisualData:iq","ISupportsErrorBars:ir","ScatterBaseView:is","MarkerManagerBase:it","MarkerManagerBucket:iu","ArrayUtil:iv","Comparison$1:iw","ScatterTrendLineManager:ix","TrendLineManagerBase$1:iy","TrendLineType:iz","Clipper:i0","EdgeClipper:i1","LeftClipper:i2","BottomClipper:i3","RightClipper:i4","TopClipper:i5","TrendResolutionParams:i6","Flattener:i7","Stack$1:i8","ReverseArrayEnumerator$1:i9","SpiralTodo:ja","Canvas:jb","Panel:jc","UIElementCollection:jd","TrendFitCalculator:je","LeastSquaresFit:jf","Numeric:jg","TrendAverageCalculator:jh","NumericMarkerManager:ji","OwnedPoint:jj","CollisionAvoidanceType:jk","SmartPlacer:jl","ISmartPlaceable:jm","SmartPosition:jn","SmartPlaceableWrapper$1:jo","ScatterAxisInfoCache:jp","NumericXAxis:jq","StraightNumericAxisBase:jr","StraightNumericAxisBaseView:js","NumericAxisBaseView:jt","NumericScaleMode:ju","LogarithmicScaler:jv","AutoRangeCalculator:jw","AxisRange:jx","IEquatable$1:jy","NumericYAxis:jz","IScaler:j0","ScalerParams:j1","AxisOrientation:j2","NumericYAxisView:j3","AxisLabelPanelBase:j4","AxisLabelPanelBaseView:j5","AxisLabelSettings:j6","AxisLabelsLocation:j7","PathRenderingInfo:j8","CategoryAxisBase:j9","ICategoryScaler:ka","CategoryMode:kb","CategoryAxisBaseView:kc","IFastItemsSourceProvider:kd","IHasCategoryModePreference:ke","IHasCategoryAxis:kf","AxisRangeChangedEventArgs:kg","CategorySeries:kh","CategoryFramePreparer:ki","CategoryFramePreparerBase:kj","FramePreparer:kk","ISupportsMarkers:kl","DefaultSupportsMarkers:km","DefaultProvidesViewport:kn","DefaultSupportsErrorBars:ko","Frame:kp","IBucketizer:kq","IIsCategoryBased:kr","IDetectsCollisions:ks","CategoryFrame:kt","PreparationParams:ku","ISortingAxis:kv","FragmentBase:kw","HorizontalAnchoredCategorySeries:kx","AnchoredCategorySeries:ky","IHasSingleValueCategory:kz","IHasCategoryTrendline:k0","IHasTrendline:k1","IPreparesCategoryTrendline:k2","AnchoredCategorySeriesView:k3","CategorySeriesView:k4","CategoryBucketCalculator:k5","CategoryTrendLineManagerBase:k6","Func$4:k7","SortingTrendLineManager:k8","CategoryTrendLineManager:k9","AnchoredCategoryBucketCalculator:la","CategoryDateTimeXAxis:lb","CategoryDateTimeXAxisView:lc","TimeAxisDisplayType:ld","HorizontalAxisLabelPanel:le","HorizontalAxisLabelPanelBase:lf","HorizontalAxisLabelPanelBaseView:lg","LabelPosition:lh","LinearNumericSnapper:li","Snapper:lj","CoercionInfo:lk","SortedListView$1:ll","CategoryLineRasterizer:lm","UnknownValuePlotting:ln","Action$5:lo","PenLineCap:lp","SyncLink:lq","ChartCollection:lr","FastItemsSourceReference:ls","SyncManager:lt","SyncSettings:lu","SyncLinkManager:lv","Debug:lw","Enumerable:lx","IOrderedEnumerable$1:ly","SortedList$1:lz","CategoryMarkerManager:l0","CollisionAvoider:l1","StackedFragmentSeries:l2","StackedSeriesBase:l3","StackedSeriesView:l4","StackedBucketCalculator:l5","StackedSeriesManager:l6","StackedSeriesCollection:l7","StackedLineSeries:l8","HorizontalStackedSeriesBase:l9","XamDataChartView:ma","LineFragment:mb","LineFragmentView:mc","LineFragmentBucketCalculator:md","IStacked100Series:me","StackedColumnSeries:mf","StackedColumnSeriesView:mg","StackedColumnBucketCalculator:mh","ColumnFragment:mi","ColumnFragmentView:mj","StackedBarSeries:mk","VerticalStackedSeriesBase:ml","CategoryYAxis:mm","CategoryYAxisView:mn","VerticalAxisLabelPanel:mo","VerticalAxisLabelPanelView:mp","TitleSettings:mq","LinearCategorySnapper:mr","IBarSeries:ms","StackedBarSeriesView:mt","StackedBarBucketCalculator:mu","BarFragment:mv","StackedAreaSeries:mw","AreaFragment:mx","AreaFragmentView:my","AreaFragmentBucketCalculator:mz","StackedSplineSeries:m0","SplineFragment:m1","SplineFragmentBase:m2","SplineSeriesBase:m3","SplineSeriesBaseView:m4","SplineType:m5","SafeSortedReadOnlyDoubleCollection:m6","SafeReadOnlyDoubleCollection:m7","ReadOnlyCollection$1:m8","SafeEnumerable:m9","SplineFragmentView:na","SplineFragmentBucketCalculator:nb","StackedSplineAreaSeries:nc","SplineAreaFragment:nd","SplineAreaFragmentView:ne","StackedSeriesFramePreparer:nf","ValuesHolder:ng","SingleValuesHolder:nh","StackedSeriesCreatedEventHandler:ni","StackedSeriesCreatedEventArgs:nj","RenderSurface:nk","StackedSeriesVisualData:nl","SeriesVisualDataList:nm","Nullable$1:nn","LineSeries:no","LineSeriesView:np","CategorySeriesRenderManager:nq","AssigningCategoryStyleEventArgs:nr","AssigningCategoryStyleEventArgsBase:ns","GetCategoryItemsHandler:nt","HighlightingInfo:nu","HighlightingState:nv","AssigningCategoryMarkerStyleEventArgs:nw","HighlightingManager:nx","AreaSeries:ny","AreaSeriesView:nz","CategoryTransitionInMode:n0","StepLineSeries:n1","StepLineSeriesView:n2","StepAreaSeries:n3","StepAreaSeriesView:n4","RangeAreaSeries:n5","HorizontalRangeCategorySeries:n6","RangeCategorySeries:n7","IHasHighLowValueCategory:n8","RangeCategorySeriesView:n9","RangeCategoryBucketCalculator:oa","RangeCategoryFramePreparer:ob","DefaultCategoryTrendlineHost:oc","DefaultCategoryTrendlinePreparer:od","DefaultHighLowValueProvider:oe","HighLowValuesHolder:of","RangeValueList:og","RangeAreaSeriesView:oh","DefaultSingleValueProvider:oi","CategoryTransitionSourceFramePreparer:oj","TransitionInSpeedType:ok","AssigningCategoryStyleEventHandler:ol","AssigningCategoryMarkerStyleEventHandler:om","SeriesComponentsForView:on","TickmarkValues:oo","TickmarkValuesInitializationParameters:op","GetGroupCenterHandler:oq","GetUnscaledGroupCenterHandler:or","NumericAxisRenderer:os","AxisRendererBase:ot","ShouldRenderHandler:ou","ScaleValueHandler:ov","AxisRenderingParametersBase:ow","RangeInfo:ox","RenderStripHandler:oy","RenderLineHandler:oz","ShouldRenderLinesHandler:o0","ShouldRenderContentHandler:o1","RenderAxisLineHandler:o2","DetermineCrossingValueHandler:o3","ShouldRenderLabelHandler:o4","GetLabelLocationHandler:o5","TransformToLabelValueHandler:o6","AxisLabelManager:o7","GetLabelForItemHandler:o8","CreateRenderingParamsHandler:o9","SnapMajorValueHandler:pa","AdjustMajorValueHandler:pb","CategoryAxisRenderingParameters:pc","NumericAxisRenderingParameters:pd","VerticalLogarithmicScaler:pe","VerticalLinearScaler:pf","NumericRadiusAxis:pg","NumericRadiusAxisView:ph","PolarAxisRenderingManager:pi","ViewportUtils:pj","PolarAxisRenderingParameters:pk","IPolarRadialRenderingParameters:pl","RadialAxisRenderingParameters:pm","RadialAxisLabelPanel:pn","RadialAxisLabelPanelView:po","NumericAngleAxis:pp","IAngleScaler:pq","NumericAngleAxisView:pr","AngleAxisLabelPanel:ps","AngleAxisLabelPanelView:pt","Extensions:pu","CategoryAngleAxis:pv","CategoryAngleAxisView:pw","CategoryAxisRenderer:px","CategoryTickmarkValues:py","LogarithmicTickmarkValues:pz","LogarithmicNumericSnapper:p0","LinearTickmarkValues:p1","NumericXAxisView:p2","HorizontalLogarithmicScaler:p3","ScatterErrorBarSettings:p4","ErrorBarSettingsBase:p5","EnableErrorBars:p6","ErrorBarCalculatorReference:p7","IErrorBarCalculator:p8","ErrorBarCalculatorType:p9","ScatterFrame:qa","ScatterFrameBase$1:qb","DictInterpolator$3:qc","Action$6:qd","ErrorBarsHelper:qe","BubbleSeriesView:qf","BubbleMarkerManager:qg","SizeScale:qh","BrushScale:qi","ScaleLegend:qj","ScaleLegendView:qk","CustomPaletteBrushScale:ql","BrushSelectionMode:qm","ValueBrushScale:qn","FunnelSliceDataContext:qo","XamFunnelChart:qp","IItemProvider:qq","MessageHandler:qr","MessageHandlerEventHandler:qs","Message:qt","ServiceProvider:qu","MessageChannel:qv","MessageEventHandler:qw","Array:qx","XamFunnelConnector:qy","XamFunnelController:qz","SliceInfoList:q0","SliceInfoUnaryComparison:q1","SliceInfo:q2","SliceAppearance:q3","PointList:q4","FunnelSliceVisualData:q5","Bezier:q6","Array:q7","BezierPoint:q8","BezierOp:q9","BezierPointComparison:ra","DoubleColumn:rb","ObjectColumn:rc","XamFunnelView:rd","IOuterLabelWidthDecider:re","IFunnelLabelSizeDecider:rf","MouseLeaveMessage:rg","InteractionMessage:rh","MouseMoveMessage:ri","MouseButtonMessage:rj","MouseButtonAction:rk","MouseButtonType:rl","SetAreaSizeMessage:rm","RenderingMessage:rn","RenderSliceMessage:ro","RenderOuterLabelMessage:rp","TooltipValueChangedMessage:rq","TooltipUpdateMessage:rr","FunnelDataContext:rs","PropertyChangedMessage:rt","ConfigurationMessage:ru","ClearMessage:rv","ClearTooltipMessage:rw","ContainerSizeChangedMessage:rx","ViewportChangedMessage:ry","ViewPropertyChangedMessage:rz","OuterLabelAlignment:r0","FunnelSliceDisplay:r1","SliceSelectionManager:r2","DataUpdatedMessage:r3","ItemsSourceAction:r4","DictionaryEntry:r5","FunnelFrame:r6","UserSelectedItemsChangedMessage:r7","LabelSizeChangedMessage:r8","FrameRenderCompleteMessage:r9","IntColumn:sa","IntColumnComparison:sb","Convert:sc","SelectedItemsChangedMessage:sd","ModelUpdateMessage:se","SliceClickedMessage:sf","FunnelSliceClickedEventHandler:sg","FunnelSliceClickedEventArgs:sh","FunnelChartVisualData:si","FunnelSliceVisualDataList:sj","WaterfallSeries:sk","WaterfallSeriesView:sl","FinancialSeries:sm","FinancialSeriesView:sn","FinancialBucketCalculator:so","FinancialValueList:sp","FinancialEventHandler:sq","FinancialEventArgs:sr","FinancialCalculationDataSource:ss","CalculatedColumn:st","FinancialCalculationSupportingCalculations:su","ColumnSupportingCalculation:sv","SupportingCalculation$1:sw","SupportingCalculationStrategy:sx","DataSourceSupportingCalculation:sy","ProvideColumnValuesStrategy:sz","ContentInfo:s0","RectChangedEventHandler:s1","RectChangedEventArgs:s2","ChartContentManager:s3","ChartContentType:s4","RenderRequestedEventArgs:s5","TrendCalculators:s6","SeriesViewerComponentsFromView:s7","SeriesViewerSurfaceViewer:s8","LabelPanelArranger:s9","LabelPanelsArrangeState:ta","Action$2:tb","ChartVisualData:tc","AxisVisualDataList:td","ChartTitleVisualData:te","VisualDataSerializer:tf","AxisVisualData:tg","AxisLabelVisualDataList:th","AxisLabelVisualData:ti","VisualExportHelper:tj","WindowResponse:tk","SeriesViewerComponentsForView:tl","DataChartCursorEventHandler:tm","ChartCursorEventArgs:tn","DataChartMouseButtonEventHandler:to","DataChartMouseEventHandler:tp","AnnotationLayer:tq","AnnotationLayerView:tr","GridMode:ts","AxisRangeChangedEventHandler:tt","DataChartAxisRangeChangedEventHandler:tu","ChartAxisRangeChangedEventArgs:tv","RadialBase:tw","RadialBaseView:tx","RadialBucketCalculator:ty","SeriesRenderer$2:tz","SeriesRenderingArguments:t0","RadialFrame:t1","RadialAxes:t2","PolarBase:t3","PolarBaseView:t4","PolarTrendLineManager:t5","PolarLinePlanner:t6","AngleRadiusPair:t7","PolarAxisInfoCache:t8","PolarFrame:t9","PolarAxes:ua","AxisComponentsForView:ub","AxisComponentsFromView:uc","AxisFormatLabelHandler:ud","SphericalMercatorVerticalScaler:ue","ColorScale:uf","ColorScaleInterpolationMode:ug","CustomPaletteColorScale:uh","BingMapsImageryStyle:ui","BingResponse:uj","BingResourceSet:uk","ImageryMetadata:ul","GeographicMapImagery:um","GeographicMapImageryView:un","XamMultiScaleImage:uo","XamMultiScaleImageView:up","StackPool$1:uq","Image:ur","Tile:us","WriteableBitmap:ut","XamMultiScaleTileSource:uu","Uri:uv","IMapRenderDeferralHandler:uw","IEasingFunction:ux","Pair$2:uy","XamGeographicMap:uz","XamGeographicMapView:u0","OpenStreetMapImagery:u1","OpenStreetMapTileSource:u2","MapTileSource:u3","ItfConverter:u4","TriangulationSource:u5","TriangulationSourcePointRecord:u6","Triangulator:u7","TriangulatorContext:u8","LinkedList$1:u9","LinkedListNode$1:va","HalfEdgeSet:vb","EdgeComparer:vc","HalfEdge:vd","PointTester:ve","Triangle:vf","TriangulationStatusEventHandler:vg","TriangulationStatusEventArgs:vh","BinaryReader:vi","BinaryFileDownloader:vj","AsyncCompletedEventHandler:vk","AsyncCompletedEventArgs:vl","GeographicScatterAreaSeries:vm","GeographicXYTriangulatingSeries:vn","GeographicMapSeriesHost$1:vo","HostSeriesView$1:vp","GeographicXYTriangulatingSeriesView:vq","XYTriangulatingSeries:vr","ScatterAreaSeries:vs","ScatterAreaSeriesView:vt","TriangleRasterizer:vu","GeographicScatterAreaSeriesView:vv","BingMapsMapImagery:vw","BingMapsMapImageryView:vx","BingMapsTileSource:vy","CloudMadeMapImagery:vz","CloudMadeMapImageryView:v0","CloudMadeTileSource:v1","GeographicShapeSeriesBaseView:v2","GeographicShapeSeriesBase:v3","ShapeSeriesBase:v4","ShapeSeriesViewBase:v5","FlattenedShape:v6","ShapeHitRegion:v7","StyleSelector:v8","PolygonUtil:v9","PointCollectionUtil:wa","PolySimplification:wb","DefaultFlattener:wc","IFlattener:wd","RearrangedList$1:we","GeographicPolylineSeriesView:wf","GeographicPolylineSeries:wg","PolylineSeries:wh","PolylineSeriesView:wi","GeographicProportionalSymbolSeriesView:wj","GeographicProportionalSymbolSeries:wk","GeographicContourLineSeries:wl","ContourLineSeries:wm","ContourLineSeriesView:wn","ContourValueResolver:wo","LinearContourValueResolver:wp","ContourBuilder:wq","PolylineBuilder:wr","GeographicContourLineSeriesView:ws","GeographicHighDensityScatterSeries:wt","GeographicHighDensityScatterSeriesView:wu","HighDensityScatterSeries:wv","HighDensityScatterSeriesView:ww","KDTree2D:wx","KDTreeNode2D:wy","PointData:wz","SearchData:w0","Monitor:w1","KDTreeThunk:w2","KNearestResults:w3","KNearestResult:w4","SearchArgs:w5","ProgressiveLoadStatusEventArgs:w6","GeographicShapeSeries:w7","GeographicShapeSeriesView:w8","ShapeSeries:w9","ShapeSeriesView:xa","ShapeAxisInfoCache:xb","GeographicSymbolSeries:xc","GeographicSymbolSeriesView:xd","ScatterSeries:xe","ScatterSeriesView:xf","GeographicTileSeries:xg","TileSeries:xh","TileSeriesView:xi","ShapefileConverter:xj","DependencyObjectNotifier:xk","ShapefileRecord:xl","ShapeFileUtil:xm","Header:xn","ShapeType:xo","XBaseField:xp","XBaseDataType:xq","Encoding:xr","UTF8Encoding:xs","UnicodeEncoding:xt","TestEnum:xu","console:xv","AbstractEnumerable:xw","AbstractEnumerator:xx","GenericEnumerable$1:xy","GenericEnumerator$1:xz"]);n.ig.util.defType("ShapeType:xo","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ShapeType",n.ig.$ep.$type)},!0);n.ig.util.defType("XBaseDataType:xq","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("XBaseDataType",n.ig.$ep.$type)},!0);n.ig.util.defType("BingMapsImageryStyle:ui","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("BingMapsImageryStyle",n.ig.$ep.$type)},!0);n.ig.util.defType("ColorScaleInterpolationMode:ug","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("ColorScaleInterpolationMode",n.ig.$ep.$type)},!0);n.ig.util.defType("SphericalMercatorHorizontalScaler:a","HorizontalLinearScaler",{ag:null,init:function(){t.$b.init.call(this);this.ag=new t.ca(0,0,0,1,1)},o:function(n,t){if(t.b.isEmpty())return this.af(n,t.d,t.c,t.a);var i=n*t.d.width()+t.d.left()*t.c.width();return this.af(i,this.ag,t.b,t.a)},n:function(n,t){if(t.b.isEmpty())return this.ad(n,t.d,t.c,t.a);var i=this.ad(n,this.ag,t.b,t.a);return(i-t.d.left()*t.c.width())/t.d.width()},ac:function(t){return n.isArray(t)?t:null},s:function(n,t,i,r){var h,a=r.d,v=r.c,c=r.b,y=r.a,g=!c.isEmpty(),p=this.k(),w=this.m,nt=c.left(),tt=c.width(),b=a.left(),k=a.width(),it=v.left(),d=v.width(),rt=this.ag.left(),ut=this.ag.width(),o=this.ac(n),s=!1,u,e,l,f;for(o!=null&&(s=!0),u=t;u<i;u++)h=s?o[u]:n.item(u),g?(e=(h-w)/p,y&&(e=1-e),e=nt+tt*(e-rt)/ut,l=(e-b*d)/k,s?o[u]=l:n.item(u,l)):(f=(h-w)/p,y&&(f=1-f),f=it+d*(f-b)/k,s?o[u]=f:n.item(u,f))},r:function(n,t,i,r,u){return r=n.minimumValue(),u=n.maximumValue(),{actualMinimumValue:r,actualMaximumValue:u}},af:function(n,t,i,r){var u=t.left()+t.width()*(n-i.left())/i.width();return r&&(u=1-u),this.m+u*this.k()},ad:function(n,t,i,r){var u=(n-this.m)/this.k();return r&&(u=1-u),i.left()+i.width()*(u-t.left())/t.width()},ae:function(n,t,i,r,u){var f=(n-this.m)/this.k();return u&&(f=1-f),i.left()+i.width()*(f-t.left())/t.width()},$type:new n.ig.Type("SphericalMercatorHorizontalScaler",t.$b.$type)},!0);n.ig.util.defType("SphericalMercatorVerticalScaler:ue","VerticalLinearScaler",{ar:null,o:function(n,t){if(t.b.isEmpty())return this.ao(n,t.d,t.c,t.a);var i=n*t.d.height()+t.d.top()*t.c.height();return this.ao(i,this.ar,t.b,t.a)},n:function(n,t){if(t.b.isEmpty())return this.al(n,t.d,t.c,t.a);var i=this.al(n,this.ar,t.b,t.a);return(i-t.d.top()*t.c.height())/t.d.height()},ac:function(t){return n.isArray(t)?t:null},s:function(n,i,r,u){var e,p=u.d,w=u.c,v=u.b,et=u.a,tt=!v.isEmpty(),ot=this.k(),st=this.m,it=v.top(),b=v.height(),k=p.top(),d=p.height(),rt=w.top(),y=w.height(),ut=this.ar.top(),ft=this.ar.height(),h=this.ac(n),g=.0174532925199433,c,s,l,f,nt,a=!1,o;for(h!=null&&(a=!0),o=i;o<r;o++)e=a?h[o]:n.item(o),tt?(e<t.$ue.ae&&(e=t.$ue.ae),e>t.$ue.ad&&(e=t.$ue.ad),c=e*g,s=Math.sin(c),l=.5*Math.log((1+s)/(1-s)),f=(this.af-l)*b/this.ag,f=it+f,nt=(f-ut*b)/ft,f=(nt-k*y)/d,a?h[o]=f:n.item(o,f)):(e<t.$ue.ae&&(e=t.$ue.ae),e>t.$ue.ad&&(e=t.$ue.ad),c=e*g,s=Math.sin(c),l=.5*Math.log((1+s)/(1-s)),f=(this.af-l)*y/this.ag,f=rt+f,f=(f-k*y)/d,a?h[o]=f:n.item(o,f))},r:function(n,t,i,r,u){return r=this.ah(n.minimumValue()),u=this.ah(n.maximumValue()),{actualMinimumValue:r,actualMaximumValue:u}},t:function(n,i,r){t.$pf.t.call(this,n,i,r);switch(n){case"ActualMinimumValue":case"ActualMaximumValue":this.af=t.$ue.aj(this.l);this.ag=t.$ue.aj(this.l)-t.$ue.aj(this.m)}},af:0,ag:0,ap:function(){return t.$ue.ad},aq:function(){return t.$ue.ae},init:function(){t.$pf.init.call(this);this.ar=new t.ca(0,0,0,1,1)},ao:function(n,i,r){var u=(n-r.top())*i.width()+i.top()*r.height();return u=t.$ue.aj(this.l)-u/(r.height()/this.ag),t.$ue.an(u)},al:function(n,t,i){var r=i.top()+this.ak(n,i.height());return(r-t.top()*i.height())/t.width()},am:function(n,t,i,r){var u=this.ak(n,r.height());return(u-t.top()*i.height())/t.width()},ak:function(n,i){n=n>t.$ue.ae?n<t.$ue.ad?n:t.$ue.ad:t.$ue.ae;var r=t.$ue.aj(n);return(this.af-r)*i/this.ag},aj:function(n){var i=n*.0174532925199433,t=Math.sin(i);return.5*Math.log((1+t)/(1-t))},an:function(n){return n=Math.exp(2*n),Math.asin((n-1)/(n+1))/.0174532925199433},ah:function(n){return n<t.$ue.ae?t.$ue.ae:n>t.$ue.ad?t.$ue.ad:n},$type:new n.ig.Type("SphericalMercatorVerticalScaler",t.$pf.$type)},!0);n.ig.util.defType("ColorScale:uf","DependencyObject",{init:function(){t.$e.init.call(this)},getColor:function(){},h:function(n){this.propertyChanged!=null&&this.propertyChanged(this,new t.a2(n))},propertyChanged:null,$type:new n.ig.Type("ColorScale",t.$e.$type,[t.$a0.$type])},!0);n.ig.util.defType("CustomPaletteColorScale:uh","ColorScale",{init:function(){this.n=null;this.q=NaN;this.p=NaN;this.m=!0;this.l=!0;this.j=0;t.$uf.init.call(this);this.ac=t.$a8.n(0,0,0,0);this.n=new t.e9(t.$a8.$type,0);this.n.collectionChanged=n.ig.Delegate.prototype.combine(this.n.collectionChanged,this.x.runOn(this))},minimumValue:function(n){return arguments.length===1?(this.g(t.$uh.minimumValueProperty,n),n):this.c(t.$uh.minimumValueProperty)},maximumValue:function(n){return arguments.length===1?(this.g(t.$uh.maximumValueProperty,n),n):this.c(t.$uh.maximumValueProperty)},n:null,palette:function(t){return arguments.length===1?(this.n!=null&&(this.n.collectionChanged=n.ig.Delegate.prototype.remove(this.n.collectionChanged,this.x.runOn(this))),this.n=t,this.n!=null&&(this.n.collectionChanged=n.ig.Delegate.prototype.combine(this.n.collectionChanged,this.x.runOn(this))),this.h("Palette",this.palette(),this.palette()),t):this.n},x:function(){this.h("Palette",this.palette(),this.palette())},ac:null,h:function(n,i,r){t.$uf.h.call(this,n,i,r);switch(n){case"MinimumValue":this.q=this.minimumValue();this.m=isNaN(this.q);break;case"MaximumValue":this.p=this.maximumValue();this.l=isNaN(this.p);break;case"InterpolationMode":this.j=this.interpolationMode()}},q:0,p:0,m:!1,l:!1,j:null,getColor:function(n,t,i,r){var u,s;if(this.n==null||this.n.count()==0||r==null)return this.ac;var e=this.m?t:this.q,h=this.l?i:this.p,f=(n-e)/(h-e);if(isNaN(f)||f<0||f>1)return this.ac;if(u=f*(this.n.count()-1),this.j==2||this.j==1){var o=Math.floor(u),c=Math.ceil(u),l=this.n.__inner[o],a=this.n.__inner[c],v=u-o,y=this.j==2?1:0;return l.getInterpolation(v,a,y)}return s=Math.round(u),this.n.__inner[s]},interpolationMode:function(n){return arguments.length===1?(this.g(t.$uh.interpolationModeProperty,n),n):this.c(t.$uh.interpolationModeProperty)},providePalette:function(n){for(var u,f,e=this,r=new t.e9(t.$a8.$type,0),i=0;i<n.length;i++)u=n[i],f=function(){var n=new t.a8;return n.colorString(u),n}(),r.add(f);e.palette(r)},$type:new n.ig.Type("CustomPaletteColorScale",t.$uf.$type)},!0);n.ig.util.defType("BingResponse:uj","Object",{init:function(){n.ig.$op.init.call(this);this.a(new t.bj(t.$uk.$type,0))},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("BingResponse",n.ig.$ot)},!0);n.ig.util.defType("BingResourceSet:uk","Object",{init:function(){n.ig.$op.init.call(this);this.a(new t.bj(t.$ul.$type,0))},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("BingResourceSet",n.ig.$ot)},!0);n.ig.util.defType("ImageryMetadata:ul","Object",{init:function(){n.ig.$op.init.call(this);this.a(new t.bj(String,0))},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("ImageryMetadata",n.ig.$ot)},!0);n.ig.util.defType("GeographicMapImagery:um","Control",{init:function(n){this.ai=null;t.$ar.init.call(this);this.y(t.$um.$type);this.ak(n);this.ae(this.ad());this.ay(this.ae())},ay:function(){},ad:function(){return new t.un(this)},_ae:null,ae:function(n){return arguments.length===1?(this._ae=n,n):this._ae},af:null,deferralHandler:function(n){return arguments.length===1?(this.af=n,this.aj()!=null&&this.aj().deferralHandler(n),n):this.af},as:function(){this.imageTilesReady!=null&&this.imageTilesReady(this,new t.er)},aw:function(){this.aj().imageTilesReady=n.ig.Delegate.prototype.combine(this.aj().imageTilesReady,this.as.runOn(this));this.aj().deferralHandler(this.deferralHandler());this.aj().imagesChanged=n.ig.Delegate.prototype.combine(this.aj().imagesChanged,this.ar.runOn(this))},a1:function(){this.aj()!=null&&this.ae().b()},ax:function(n){switch(n){case"WindowRect":this.a1();break;case"GeographicMap":this.ae().b()}this.propertyChanged!=null&&this.propertyChanged(this,new t.a2(n))},windowRect:function(n){return arguments.length===1?(this.g(t.$um.windowRectProperty,n),n):this.c(t.$um.windowRectProperty)},geographicMap:function(n){return arguments.length===1?(this.g(t.$um.geographicMapProperty,n),n):this.c(t.$um.geographicMapProperty)},av:function(n,t){n.au(t.d(),t.c())},au:function(n,t){this.ax("GeographicMap",n,t)},clearTileCache:function(){this.aj()!=null&&this.aj().invalidateTileLayer(0,0,0,0)},imageTilesReady:null,ai:null,aj:function(n){return arguments.length===1?(this.ai=n,this.propertyChanged!=null&&this.propertyChanged(this,new t.a2("MultiScaleImage")),n):this.ai},_ak:null,ak:function(n){return arguments.length===1?(this._ak=n,n):this._ak},propertyChanged:null,a5:function(i){var e;if(this.geographicMap()==null||i.b()<1||i.a()<1)return i;var r=new t.ca(0,0,0,i.b(),i.a()),u=this.geographicMap().m8(r),f=t.$uz.m3,c=this.geographicMap().actualWorldRect(),l=Math.min(this.windowRect().height(),this.windowRect().width()),a=c.width()/f.width();this.aj().viewportWidth(r.width()/u.width()*l*a);var o=this.geographicMap().xAxis(),s=this.geographicMap().yAxis(),h=new t.j1(this.windowRect(),r,o.isInverted());h.b=u;e=new t.j1(this.windowRect(),r,s.isInverted());e.b=u;var v=o.getScaledValue(f.left(),h),y=s.getScaledValue(f.bottom(),e),p=-v/r.width()*this.aj().viewportWidth(),w=-y/r.height()*this.aj().viewportWidth()*(r.height()/r.width());return this.aj().viewportOrigin({__x:p,__y:w,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i},az:function(n){this.ae().c(n)},a0:function(n){this.ae().d(n)},imagesChanged:null,ar:function(n,t){this.imagesChanged!=null&&this.imagesChanged(this,t)},at:function(){this.ae().b()},$type:new n.ig.Type("GeographicMapImagery",t.$ar.$type,[t.$a0.$type])},!0);n.ig.util.defType("BingMapsMapImagery:vw","GeographicMapImagery",{init:function(){t.$um.init.call(this,new t.vy(0));this.a7().h();this.actualBingImageryRestUri(t.$vw.bt)},ad:function(){return new t.vx(this)},ay:function(n){t.$um.ay.call(this,n);this.a7(n)},_a7:null,a7:function(n){return arguments.length===1?(this._a7=n,n):this._a7},_isInitialized:!1,isInitialized:function(n){return arguments.length===1?(this._isInitialized=n,n):this._isInitialized},isDeferredLoad:function(n){return arguments.length===1?(this.g(t.$vw.isDeferredLoadProperty,n),n):this.c(t.$vw.isDeferredLoadProperty)},b5:function(){this.cc()},tilePath:function(n){return arguments.length===1?(this.g(t.$vw.tilePathProperty,n),n):this.c(t.$vw.tilePathProperty)},b8:function(n,t){n.b6("TilePath",t.d(),t.c())},subDomains:function(n){return arguments.length===1?(this.g(t.$vw.subDomainsProperty,n),n):this.c(t.$vw.subDomainsProperty)},b7:function(n,t){n.b6("SubDomains",t.d(),t.c())},bg:null,actualTilePath:function(n){if(arguments.length===1){var t=this.bg;return this.bg=n,this.b6("ActualTilePath",t,this.bg),n}return this.bg},bc:null,actualSubDomains:function(n){if(arguments.length===1){var t=this.bc;return this.bc=n,this.b6("ActualSubDomains",t,this.bc),n}return this.bc},bh:null,bingImageryRestUri:function(n){if(arguments.length===1){var t=this.bh;return this.bh=n,this.b6("BingImageryRestUri",t,this.bh),n}return this.bh},bf:null,actualBingImageryRestUri:function(n){if(arguments.length===1){var t=this.bf;return this.bf=n,this.ax("ActualBingImageryRestUri",t,this.bf),n}return this.bf},cultureName:function(n){return arguments.length===1?(this.g(t.$vw.cultureNameProperty,n),n):this.c(t.$vw.cultureNameProperty)},b3:function(n,t){n.b6("CultureName",t.d(),t.c())},apiKey:function(n){return arguments.length===1?(this.g(t.$vw.apiKeyProperty,n),n):this.c(t.$vw.apiKeyProperty)},b2:function(){this.cc()},imageryStyle:function(n){return arguments.length===1?(this.g(t.$vw.imageryStyleProperty,n),n):this.c(t.$vw.imageryStyleProperty)},b4:function(){this.cc()},requestMapSettings:function(){this.ca(!0)},ca:function(){},bb:function(){return this.tilePath()==null&&this.subDomains()==null?!0:!1},cc:function(){if(this.isInitialized(!1),t.$lw.c("Validating"),!this.ba()){this.cb("",null);return}this.isDeferredLoad()||this.ca(!1)},ba:function(){return String.isNullOrEmpty(this.apiKey())||this.apiKey().length<20?!1:!0},b0:function(){},cb:function(){},b1:function(){},bz:function(){this.ae().b();this.cc();this.b6("SubDomains",this.actualSubDomains(),this.actualSubDomains())},b6:function(i,r,u){var o,f,e;switch(i){case"TilePath":this.b0();this.actualTilePath(u);this.a7().j();this.ae().b();break;case"CultureName":this.a7().g();this.ae().b();break;case"ImageryStyle":this.cc();break;case"SubDomains":this.b0();o=r;f=u;this.actualSubDomains()!=null&&(this.actualSubDomains().collectionChanged=n.ig.Delegate.prototype.remove(this.actualSubDomains().collectionChanged,this.bz.runOn(this)));this.actualSubDomains(f);this.actualSubDomains()!=null&&(f.collectionChanged=n.ig.Delegate.prototype.combine(f.collectionChanged,this.bz.runOn(this)));this.a7().i();this.ae().b();break;case"ActualTilePath":e=u;String.isNullOrEmpty(e)&&this.cc();break;case"BingImageryRestUri":this.actualBingImageryRestUri(u);this.b0();this.cc();break;case"ActualBingImageryRestUri":this.b0();this.cc()}t.$um.ax.call(this,i,r,u)},$type:new n.ig.Type("BingMapsMapImagery",t.$um.$type)},!0);n.ig.util.defType("GeographicMapImageryView:un","Object",{init:function(i){n.ig.$op.init.call(this);this.e(t.$ca.empty());this.a(i);this.a().aj(new t.uo);this.a().aj().source(this.a().ak());this.a().aw()},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},b:function(){this.e().isEmpty()||this.a().a5(new t.cb(this.e().width(),this.e().height()))},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},c:function(n){this.a().aj().provideContext(n)},d:function(n){this.e(n);this.a().aj().provideViewport(n);this.a().at()},$type:new n.ig.Type("GeographicMapImageryView",n.ig.$ot)},!0);n.ig.util.defType("BingMapsMapImageryView:vx","GeographicMapImageryView",{init:function(n){t.$un.init.call(this,n);this.f(n)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},h:function(){this.f().subDomains(new t.e9(String,0));this.f().ak().tilePath(this.f().actualTilePath());this.f().ak().subDomains(this.f().actualSubDomains());this.f().ak().cultureName(this.f().cultureName())},j:function(){this.f().ak().tilePath(this.f().actualTilePath())},g:function(){this.f().ak().cultureName(this.f().cultureName())},i:function(){this.f().ak().subDomains(this.f().actualSubDomains())},$type:new n.ig.Type("BingMapsMapImageryView",t.$un.$type)},!0);n.ig.util.defType("CloudMadeMapImagery:vz","GeographicMapImagery",{init:function(){t.$um.init.call(this,new t.v1);this.a6().g()},ad:function(){return new t.v0(this)},ay:function(n){t.$um.ay.call(this,n);this.a6(n)},_a6:null,a6:function(n){return arguments.length===1?(this._a6=n,n):this._a6},key:function(n){return arguments.length===1?(this.g(t.$vz.keyProperty,n),n):this.c(t.$vz.keyProperty)},bb:function(n,t){n.bd("Key",t.d(),t.c())},parameter:function(n){return arguments.length===1?(this.g(t.$vz.parameterProperty,n),n):this.c(t.$vz.parameterProperty)},bc:function(n,t){n.bd("Parameter",t.d(),t.c())},bd:function(n,i,r){switch(n){case"Key":this.a6().h();this.ae().b();break;case"Parameter":this.a6().i();this.ae().b()}t.$um.ax.call(this,n,i,r)},$type:new n.ig.Type("CloudMadeMapImagery",t.$um.$type)},!0);n.ig.util.defType("CloudMadeMapImageryView:v0","GeographicMapImageryView",{init:function(n){t.$un.init.call(this,n);this.f(n)},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},h:function(){this.f().ak().key(this.f().key())},i:function(){this.f().ak().parameter(this.f().parameter())},g:function(){this.f().ak().key(this.f().key());this.f().ak().parameter(this.f().parameter())},$type:new n.ig.Type("CloudMadeMapImageryView",t.$un.$type)},!0);n.ig.util.defType("OpenStreetMapImagery:u1","GeographicMapImagery",{init:function(){t.$um.init.call(this,new t.u2)},$type:new n.ig.Type("OpenStreetMapImagery",t.$um.$type)},!0);n.ig.util.defType("HostSeriesView$1:vp","SeriesView",{$t:null,init:function(n,i){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$fr.init.call(this,i);this.by(i)},_by:null,by:function(n){return arguments.length===1?(this._by=n,n):this._by},an:function(n,i){t.$fr.an.call(this,n,i)},bz:function(){this.by().j2().itemsSource(this.by().itemsSource());this.by().j2().index(this.by().index());this.by().j2().brush(this.by().brush());this.by().j2().outline(this.by().outline());this.by().j2().resolution(this.by().resolution());this.by().j2().transitionDuration(this.by().transitionDuration());this.by().j2().__opacity=this.by().__opacity},b0:function(){this.by().j2().itemsSource(this.by().itemsSource())},b2:function(){this.by().j2().resolution(this.by().resolution())},b3:function(){this.by().j2().transitionDuration(this.by().transitionDuration())},b1:function(){this.by().j2().__opacity=this.by().__opacity},$type:new n.ig.Type("HostSeriesView$1",t.$fr.$type)},!0);n.ig.util.defType("GeographicShapeSeriesBaseView:v2","HostSeriesView$1",{init:function(n){t.$vp.init.call(this,t.$v4.$type,n);this.b4(n)},_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},bz:function(){t.$vp.bz.call(this);this.b4().j2().shapeMemberPath(this.b4().shapeMemberPath());this.b4().j2().brush(this.b4().actualBrush());this.b4().j2().outline(this.b4().actualOutline())},b7:function(){if(this.b4().seriesViewer()==null){this.b4().j2().xAxis(null);this.b4().j2().yAxis(null);return}this.b4().j2().xAxis(this.b4().seriesViewer().xAxis());this.b4().j2().yAxis(this.b4().seriesViewer().yAxis())},b5:function(){this.b4().j2().brush(this.b4().actualBrush())},b6:function(){this.b4().j2().outline(this.b4().actualOutline())},b9:function(){this.b4().j2().shapeMemberPath(this.b4().shapeMemberPath())},ca:function(){this.b4().j2().thickness(this.b4().thickness())},b8:function(){this.b4().j2().shapeFilterResolution(this.b4().shapeFilterResolution())},$type:new n.ig.Type("GeographicShapeSeriesBaseView",t.$vp.$type.specialize(t.$v4.$type))},!0);n.ig.util.defType("GeographicPolylineSeriesView:wf","GeographicShapeSeriesBaseView",{init:function(n){t.$v2.init.call(this,n);this.cb(n)},_cb:null,cb:function(n){return arguments.length===1?(this._cb=n,n):this._cb},bz:function(){t.$v2.bz.call(this);this.cb().j2().shapeStyleSelector(this.cb().shapeStyleSelector());this.cb().j2().shapeStyle(this.cb().shapeStyle())},cc:function(){this.cb().j2().shapeStyleSelector(this.cb().shapeStyleSelector())},cd:function(){this.cb().j2().shapeStyle(this.cb().shapeStyle())},$type:new n.ig.Type("GeographicPolylineSeriesView",t.$v2.$type)},!0);n.ig.util.defType("GeographicProportionalSymbolSeriesView:wj","HostSeriesView$1",{init:function(n){t.$vp.init.call(this,t.$h7.$type,n);this.b4(n)},_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},bz:function(){t.$vp.bz.call(this);this.b4().j2().xMemberPath(this.b4().longitudeMemberPath());this.b4().j2().yMemberPath(this.b4().latitudeMemberPath());this.b4().j2().markerType(this.b4().markerType());this.b4().j2().markerTemplate(this.b4().markerTemplate());this.b4().j2().radiusMemberPath(this.b4().radiusMemberPath());this.b4().j2().radiusScale(this.b4().radiusScale());this.b4().j2().labelMemberPath(this.b4().labelMemberPath());this.b4().j2().fillMemberPath(this.b4().fillMemberPath());this.b4().j2().fillScale(this.b4().fillScale())},b9:function(){this.b4().j2().xMemberPath(this.b4().longitudeMemberPath())},b8:function(){this.b4().j2().yMemberPath(this.b4().latitudeMemberPath())},cd:function(){this.b4().j2().markerType(this.b4().markerType())},cc:function(){this.b4().j2().markerTemplate(this.b4().markerTemplate())},ce:function(){this.b4().j2().maximumMarkers(this.b4().maximumMarkers())},cg:function(){this.b4().j2().xAxis(this.b4().seriesViewer().xAxis())},ch:function(){this.b4().j2().yAxis(this.b4().seriesViewer().yAxis())},cf:function(){if(this.b4().seriesViewer()==null){this.b4().j2().xAxis(null);this.b4().j2().yAxis(null);return}this.b4().j2().xAxis(this.b4().seriesViewer().xAxis());this.b4().j2().yAxis(this.b4().seriesViewer().yAxis())},ca:function(){this.b4().j2().markerBrush(this.b4().markerBrush())},cb:function(){this.b4().j2().markerOutline(this.b4().markerOutline())},ci:function(){this.b4().j2().radiusMemberPath(this.b4().radiusMemberPath())},cj:function(){this.b4().j2().radiusScale(this.b4().radiusScale())},b7:function(){this.b4().j2().labelMemberPath(this.b4().labelMemberPath())},b6:function(){this.b4().j2().fillScale(this.b4().fillScale())},b5:function(){this.b4().j2().fillMemberPath(this.b4().fillMemberPath())},$type:new n.ig.Type("GeographicProportionalSymbolSeriesView",t.$vp.$type.specialize(t.$h7.$type))},!0);n.ig.util.defType("GeographicMapSeriesHost$1:vo","Series",{$t:null,init:function(n){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$fq.init.call(this);this.j2(this.j1())},j0:null,j2:function(n){if(arguments.length===1){var t=this.j2()!=n;return t&&(this.j0=n,this.jx()),n}return this.j0},jx:function(){this.gl(this.j2());this.jt().bz()},getItem:function(n){return this.ef(this.j2(),n)},j1:function(){},au:function(){return new t.vp(this.$t,this)},hc:function(n){t.$fq.hc.call(this,n);this.jt(n)},_jt:null,jt:function(n){return arguments.length===1?(this._jt=n,n):this._jt},visibleFromScale:function(n){return arguments.length===1?(this.g(t.$vo.visibleFromScaleProperty,n),n):this.c(t.$vo.visibleFromScaleProperty)},hh:function(i,r,u,f){t.$fq.hh.call(this,i,r,u,f);switch(r){case"SeriesViewer":this.j2().seriesViewer(this.seriesViewer());u!=null&&u.removeSeries(this.j2());f!=null&&this.seriesViewer().attachSeries(this.j2());this.j2().provideViewport(this.jr());this.j2().index(this.index());this.gp(this.j2());this._uniqueIndex=this.j2()._uniqueIndex;var e=n.ig.util.cast(t.$b2.$type,u);e!=null&&(e.actualWindowRectChanged=n.ig.Delegate.prototype.remove(e.actualWindowRectChanged,this.jy.runOn(this)));this.seriesViewer()!=null&&(this.seriesViewer().actualWindowRectChanged=n.ig.Delegate.prototype.combine(this.seriesViewer().actualWindowRectChanged,this.jy.runOn(this)));this.jw();break;case"SyncLink":this.j2().syncLink(this.syncLink());break;case"VisibleFromScale":this.jw();break;case"Index":this.j2().index(this.index());break;case"ItemsSource":this.jt().b0();break;case"Resolution":this.jt().b2();break;case"TransitionDuration":this.jt().b3();break;case"Opacity":this.jt().b1()}},jw:function(){this.seriesViewer()!=null&&this.j2()!=null&&(this.j2().__visibility=this.seriesViewer().actualWindowRect().width()>this.visibleFromScale()?1:0)},jy:function(){this.jw()},renderSeries:function(n){t.$fq.renderSeries.call(this,n);this.j2()!=null&&this.j2().renderSeries(n)},getHitDataContext:function(n){return this.j2().getHitDataContext(n)},styleUpdated:function(){t.$fq.styleUpdated.call(this);this.j2().styleUpdated()},coercionMethods:function(n){return arguments.length===1?(this.__coercionMethods=n,this.j2().coercionMethods(n),n):this.__coercionMethods},go:function(n){var i,r,f,u,e;if(t.$fq.go.call(this,n),this.j2()!=null){for(i=this.j2().exportVisualData(),r=i.shapes().getEnumerator();r.moveNext();)f=r.current(),n.shapes().add(f);for(u=i.markerShapes().getEnumerator();u.moveNext();)e=u.current(),n.markerShapes().add(e);n.pixels(i.pixels());n.pixelWidth(i.pixelWidth())}},$type:new n.ig.Type("GeographicMapSeriesHost$1",t.$fq.$type)},!0);n.ig.util.defType("GeographicXYTriangulatingSeries:vn","GeographicMapSeriesHost$1",{init:function(){t.$vo.init.call(this,t.$vr.$type)},au:function(){return new t.vq(this)},hc:function(n){t.$vo.hc.call(this,n);this.j3(n)},_j3:null,j3:function(n){return arguments.length===1?(this._j3=n,n):this._j3},longitudeMemberPath:function(n){return arguments.length===1?(this.g(t.$vn.longitudeMemberPathProperty,n),n):this.c(t.$vn.longitudeMemberPathProperty)},latitudeMemberPath:function(n){return arguments.length===1?(this.g(t.$vn.latitudeMemberPathProperty,n),n):this.c(t.$vn.latitudeMemberPathProperty)},trianglesSource:function(n){return arguments.length===1?(this.g(t.$vn.trianglesSourceProperty,n),n):this.c(t.$vn.trianglesSourceProperty)},triangleVertexMemberPath1:function(n){return arguments.length===1?(this.g(t.$vn.triangleVertexMemberPath1Property,n),n):this.c(t.$vn.triangleVertexMemberPath1Property)},triangleVertexMemberPath2:function(n){return arguments.length===1?(this.g(t.$vn.triangleVertexMemberPath2Property,n),n):this.c(t.$vn.triangleVertexMemberPath2Property)},triangleVertexMemberPath3:function(n){return arguments.length===1?(this.g(t.$vn.triangleVertexMemberPath3Property,n),n):this.c(t.$vn.triangleVertexMemberPath3Property)},hh:function(n,i,r,u){t.$vo.hh.call(this,n,i,r,u);switch(i){case"SeriesViewer":this.j3().b7();break;case"LongitudeMemberPath":this.j3().b6();break;case"LatitudeMemberPath":this.j3().b5();break;case"TrianglesSource":this.j3().b8();break;case"TriangleVertexMemberPath1":this.j3().b9();break;case"TriangleVertexMemberPath2":this.j3().ca();break;case"TriangleVertexMemberPath3":this.j3().cb()}},$type:new n.ig.Type("GeographicXYTriangulatingSeries",t.$vo.$type.specialize(t.$vr.$type))},!0);n.ig.util.defType("GeographicContourLineSeries:wl","GeographicXYTriangulatingSeries",{init:function(){t.$vn.init.call(this);this.y(t.$wl.$type)},jx:function(){var n=this;t.$vn.jx.call(n);n.j2().f(t.$wm.valueMemberPathProperty,function(){var i=new t.an(1,"ValueMemberPath");return i.d(n),i}());n.j2().f(t.$wm.fillScaleProperty,function(){var i=new t.an(1,"FillScale");return i.d(n),i}())},_km:null,km:function(n){return arguments.length===1?(this._km=n,n):this._km},j1:function(){return this.km(new t.wm),this.km().triangulationStatusChanged=n.ig.Delegate.prototype.combine(this.km().triangulationStatusChanged,this.kv.runOn(this)),this.km()},kv:function(n,t){this.triangulationStatusChanged!=null&&this.triangulationStatusChanged(this,t)},valueMemberPath:function(n){return arguments.length===1?(this.g(t.$wl.valueMemberPathProperty,n),n):this.c(t.$wl.valueMemberPathProperty)},fillScale:function(n){return arguments.length===1?(this.g(t.$wl.fillScaleProperty,n),n):this.c(t.$wl.fillScaleProperty)},au:function(){return new t.ws(this)},hc:function(n){t.$vn.hc.call(this,n);this.kq(n)},_kq:null,kq:function(n){return arguments.length===1?(this._kq=n,n):this._kq},valueResolver:function(n){return arguments.length===1?(this.g(t.$wl.valueResolverProperty,n),n):this.c(t.$wl.valueResolverProperty)},hh:function(n,i,r,u){t.$vn.hh.call(this,n,i,r,u);switch(i){case"FillScale":this.kq().cd();break;case"ValueMemberPath":this.kq().ce();break;case"ValueResolver":this.km().valueResolver(this.valueResolver());break;case"Thickness":this.km().thickness(this.thickness());break;case"DashArray":this.km().dashArray(this.dashArray());break;case"DashCap":this.km().dashCap(this.dashCap());break;case"MiterLimit":this.km().miterLimit(this.miterLimit())}},triangulationStatusChanged:null,$type:new n.ig.Type("GeographicContourLineSeries",t.$vn.$type)},!0);n.ig.util.defType("GeographicXYTriangulatingSeriesView:vq","HostSeriesView$1",{init:function(n){t.$vp.init.call(this,t.$vr.$type,n);this.b4(n)},_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},bz:function(){t.$vp.bz.call(this);this.b4().j2().xMemberPath(this.b4().longitudeMemberPath());this.b4().j2().yMemberPath(this.b4().latitudeMemberPath());this.b4().j2().trianglesSource(this.b4().trianglesSource());this.b4().j2().triangleVertexMemberPath1(this.b4().triangleVertexMemberPath1());this.b4().j2().triangleVertexMemberPath2(this.b4().triangleVertexMemberPath2());this.b4().j2().triangleVertexMemberPath3(this.b4().triangleVertexMemberPath3())},b7:function(){if(this.b4().seriesViewer()==null){this.b4().j2().xAxis(null);this.b4().j2().yAxis(null);return}this.b4().j2().xAxis(this.b4().seriesViewer().xAxis());this.b4().j2().yAxis(this.b4().seriesViewer().yAxis())},b6:function(){this.b4().j2().xMemberPath(this.b4().longitudeMemberPath())},b5:function(){this.b4().j2().yMemberPath(this.b4().latitudeMemberPath())},b8:function(){this.b4().j2().trianglesSource(this.b4().trianglesSource())},b9:function(){this.b4().j2().triangleVertexMemberPath1(this.b4().triangleVertexMemberPath1())},ca:function(){this.b4().j2().triangleVertexMemberPath2(this.b4().triangleVertexMemberPath2())},cb:function(){this.b4().j2().triangleVertexMemberPath3(this.b4().triangleVertexMemberPath3())},$type:new n.ig.Type("GeographicXYTriangulatingSeriesView",t.$vp.$type.specialize(t.$vr.$type))},!0);n.ig.util.defType("GeographicContourLineSeriesView:ws","GeographicXYTriangulatingSeriesView",{init:function(n){t.$vq.init.call(this,n);this.cc(n)},_cc:null,cc:function(n){return arguments.length===1?(this._cc=n,n):this._cc},bz:function(){t.$vq.bz.call(this);this.cc().j2()!=null&&(this.cc().km().fillScale(this.cc().fillScale()),this.cc().km().valueMemberPath(this.cc().valueMemberPath()))},cd:function(){this.cc().km()!=null&&this.cc().km().fillScale(this.cc().fillScale())},ce:function(){this.cc().km()!=null&&this.cc().km().valueMemberPath(this.cc().valueMemberPath())},$type:new n.ig.Type("GeographicContourLineSeriesView",t.$vq.$type)},!0);n.ig.util.defType("GeographicHighDensityScatterSeries:wt","GeographicMapSeriesHost$1",{init:function(){t.$vo.init.call(this,t.$wv.$type);this.y(t.$wt.$type)},au:function(){return new t.wu(this)},hc:function(n){t.$vo.hc.call(this,n);this.j4(n)},_j4:null,j4:function(n){return arguments.length===1?(this._j4=n,n):this._j4},j1:function(){return new t.wv},_j3:null,j3:function(n){return arguments.length===1?(this._j3=n,n):this._j3},latitudeMemberPath:function(n){return arguments.length===1?(this.g(t.$wt.latitudeMemberPathProperty,n),n):this.c(t.$wt.latitudeMemberPathProperty)},longitudeMemberPath:function(n){return arguments.length===1?(this.g(t.$wt.longitudeMemberPathProperty,n),n):this.c(t.$wt.longitudeMemberPathProperty)},useBruteForce:function(n){return arguments.length===1?(this.g(t.$wt.useBruteForceProperty,n),n):this.c(t.$wt.useBruteForceProperty)},progressiveLoad:function(n){return arguments.length===1?(this.g(t.$wt.progressiveLoadProperty,n),n):this.c(t.$wt.progressiveLoadProperty)},mouseOverEnabled:function(n){return arguments.length===1?(this.g(t.$wt.mouseOverEnabledProperty,n),n):this.c(t.$wt.mouseOverEnabledProperty)},heatMinimum:function(n){return arguments.length===1?(this.g(t.$wt.heatMinimumProperty,n),n):this.c(t.$wt.heatMinimumProperty)},heatMaximum:function(n){return arguments.length===1?(this.g(t.$wt.heatMaximumProperty,n),n):this.c(t.$wt.heatMaximumProperty)},heatMinimumColor:function(n){return arguments.length===1?(this.g(t.$wt.heatMinimumColorProperty,n),n):this.c(t.$wt.heatMinimumColorProperty)},heatMaximumColor:function(n){return arguments.length===1?(this.g(t.$wt.heatMaximumColorProperty,n),n):this.c(t.$wt.heatMaximumColorProperty)},pointExtent:function(n){return arguments.length===1?(this.g(t.$wt.pointExtentProperty,n),n):this.c(t.$wt.pointExtentProperty)},progressiveLoadStatusChanged:null,kb:0,progressiveStatus:function(n){if(arguments.length===1){var t=this.kb;return this.kb=n,this.raisePropertyChanged("ProgressiveStatus",t,this.kb),n}return this.kb},jx:function(){t.$vo.jx.call(this);this.j2().progressiveLoadStatusChanged=n.ig.Delegate.prototype.combine(this.j2().progressiveLoadStatusChanged,this.kq.runOn(this))},kq:function(n,t){this.progressiveStatus(t.currentStatus());this.progressiveLoadStatusChanged!=null&&this.progressiveLoadStatusChanged(this,t)},hh:function(n,i,r,u){t.$vo.hh.call(this,n,i,r,u);switch(i){case"SeriesViewer":this.j4().ce();break;case"LongitudeMemberPath":this.j4().ca();break;case"LatitudeMemberPath":this.j4().b9();break;case"UseBruteForce":this.j4().cf();break;case"ProgressiveLoad":this.j4().cd();break;case"MouseOverEnabled":this.j4().cb();break;case"XAxis":this.j4().cg();break;case"YAxis":this.j4().ch();break;case"HeatMinimum":this.j4().b8();break;case"HeatMaximum":this.j4().b6();break;case"HeatMinimumColor":this.j4().b7();break;case"HeatMaximumColor":this.j4().b5();break;case"PointExtent":this.j4().cc()}},co:function(){return!0},$type:new n.ig.Type("GeographicHighDensityScatterSeries",t.$vo.$type.specialize(t.$wv.$type))},!0);n.ig.util.defType("GeographicHighDensityScatterSeriesView:wu","HostSeriesView$1",{init:function(n){t.$vp.init.call(this,t.$wv.$type,n);this.b4(n)},_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},bz:function(){t.$vp.bz.call(this);this.b4().j2().xMemberPath(this.b4().longitudeMemberPath());this.b4().j2().yMemberPath(this.b4().latitudeMemberPath());this.b4().j2().useBruteForce(this.b4().useBruteForce());this.b4().j2().progressiveLoad(this.b4().progressiveLoad());this.b4().j2().mouseOverEnabled(this.b4().mouseOverEnabled());this.b4().j2().heatMinimum(this.b4().heatMinimum());this.b4().j2().heatMaximum(this.b4().heatMaximum())},ca:function(){this.b4().j2().xMemberPath(this.b4().longitudeMemberPath())},b9:function(){this.b4().j2().yMemberPath(this.b4().latitudeMemberPath())},cf:function(){this.b4().j2().useBruteForce(this.b4().useBruteForce())},cd:function(){this.b4().j2().progressiveLoad(this.b4().progressiveLoad())},cb:function(){this.b4().j2().mouseOverEnabled(this.b4().mouseOverEnabled())},b8:function(){this.b4().j2().heatMinimum(this.b4().heatMinimum())},b6:function(){this.b4().j2().heatMaximum(this.b4().heatMaximum())},ce:function(){if(this.b4().seriesViewer()==null){this.b4().j2().xAxis(null);this.b4().j2().yAxis(null);return}this.b4().j2().xAxis(this.b4().seriesViewer().xAxis());this.b4().j2().yAxis(this.b4().seriesViewer().yAxis())},cg:function(){this.b4().j2().xAxis(this.b4().seriesViewer().xAxis())},ch:function(){this.b4().j2().yAxis(this.b4().seriesViewer().yAxis())},b7:function(){this.b4().j2().heatMinimumColor(this.b4().heatMinimumColor())},b5:function(){this.b4().j2().heatMaximumColor(this.b4().heatMaximumColor())},cc:function(){this.b4().j2().pointExtent(this.b4().pointExtent())},$type:new n.ig.Type("GeographicHighDensityScatterSeriesView",t.$vp.$type.specialize(t.$wv.$type))},!0);n.ig.util.defType("GeographicShapeSeriesBase:v3","GeographicMapSeriesHost$1",{init:function(){t.$vo.init.call(this,t.$v4.$type)},au:function(){return new t.v2(this)},_j3:null,j3:function(n){return arguments.length===1?(this._j3=n,n):this._j3},hc:function(n){t.$vo.hc.call(this,n);this.j3(n)},shapeMemberPath:function(n){return arguments.length===1?(this.g(t.$v3.shapeMemberPathProperty,n),n):this.c(t.$v3.shapeMemberPathProperty)},hh:function(n,i,r,u){t.$vo.hh.call(this,n,i,r,u);switch(i){case"SeriesViewer":this.j3().b7();break;case"ActualBrush":this.j3().b5();break;case"ActualOutline":this.j3().b6();break;case"ShapeMemberPath":this.j3().b9();break;case"Thickness":this.j3().ca();break;case"ShapeFilterResolution":this.j3().b8()}},shapeFilterResolution:function(n){return arguments.length===1?(this.g(t.$v3.shapeFilterResolutionProperty,n),n):this.c(t.$v3.shapeFilterResolutionProperty)},co:function(){return!0},$type:new n.ig.Type("GeographicShapeSeriesBase",t.$vo.$type.specialize(t.$v4.$type))},!0);n.ig.util.defType("GeographicPolylineSeries:wg","GeographicShapeSeriesBase",{init:function(){t.$v3.init.call(this);this.y(t.$wg.$type)},au:function(){return new t.wf(this)},hc:function(n){t.$v3.hc.call(this,n);this.kb(n)},_kb:null,kb:function(n){return arguments.length===1?(this._kb=n,n):this._kb},shapeStyleSelector:function(n){return arguments.length===1?(this.g(t.$wg.shapeStyleSelectorProperty,n),n):this.c(t.$wg.shapeStyleSelectorProperty)},shapeStyle:function(n){return arguments.length===1?(this.g(t.$wg.shapeStyleProperty,n),n):this.c(t.$wg.shapeStyleProperty)},j1:function(){return new t.wh},hh:function(n,i,r,u){t.$v3.hh.call(this,n,i,r,u);switch(i){case"ShapeStyleSelector":this.kb().cc();break;case"ShapeStyle":this.kb().cd()}},$type:new n.ig.Type("GeographicPolylineSeries",t.$v3.$type)},!0);n.ig.util.defType("GeographicProportionalSymbolSeries:wk","GeographicMapSeriesHost$1",{init:function(){t.$vo.init.call(this,t.$h7.$type);this.y(t.$wk.$type)},au:function(){return new t.wj(this)},hc:function(n){t.$vo.hc.call(this,n);this.j7(n)},_j7:null,j7:function(n){return arguments.length===1?(this._j7=n,n):this._j7},j1:function(){return new t.h7},_j4:null,j4:function(n){return arguments.length===1?(this._j4=n,n):this._j4},latitudeMemberPath:function(n){return arguments.length===1?(this.g(t.$wk.latitudeMemberPathProperty,n),n):this.c(t.$wk.latitudeMemberPathProperty)},longitudeMemberPath:function(n){return arguments.length===1?(this.g(t.$wk.longitudeMemberPathProperty,n),n):this.c(t.$wk.longitudeMemberPathProperty)},markerType:function(n){return arguments.length===1?(this.g(t.$wk.markerTypeProperty,n),n):this.c(t.$wk.markerTypeProperty)},markerTemplate:function(n){return arguments.length===1?(this.g(t.$wk.markerTemplateProperty,n),n):this.c(t.$wk.markerTemplateProperty)},markerBrush:function(n){return arguments.length===1?(this.g(t.$wk.markerBrushProperty,n),n):this.c(t.$wk.markerBrushProperty)},markerOutline:function(n){return arguments.length===1?(this.g(t.$wk.markerOutlineProperty,n),n):this.c(t.$wk.markerOutlineProperty)},maximumMarkers:function(n){return arguments.length===1?(this.g(t.$wk.maximumMarkersProperty,n),n):this.c(t.$wk.maximumMarkersProperty)},radiusMemberPath:function(n){return arguments.length===1?(this.g(t.$wk.radiusMemberPathProperty,n),n):this.c(t.$wk.radiusMemberPathProperty)},radiusScale:function(n){return arguments.length===1?(this.g(t.$wk.radiusScaleProperty,n),n):this.c(t.$wk.radiusScaleProperty)},labelMemberPath:function(n){return arguments.length===1?(this.g(t.$wk.labelMemberPathProperty,n),n):this.c(t.$wk.labelMemberPathProperty)},fillMemberPath:function(n){return arguments.length===1?(this.g(t.$wk.fillMemberPathProperty,n),n):this.c(t.$wk.fillMemberPathProperty)},fillScale:function(n){return arguments.length===1?(this.g(t.$wk.fillScaleProperty,n),n):this.c(t.$wk.fillScaleProperty)},hh:function(n,i,r,u){t.$vo.hh.call(this,n,i,r,u);switch(i){case"SeriesViewer":this.j7().cf();break;case"LongitudeMemberPath":this.j7().b9();break;case"LatitudeMemberPath":this.j7().b8();break;case"MarkerType":this.j7().cd();break;case"MarkerTemplate":this.j7().cc();break;case"MaximumMarkers":this.j7().ce();break;case"XAxis":this.j7().cg();break;case"YAxis":this.j7().ch();break;case"MarkerBrush":this.j7().ca();break;case"MarkerOutline":this.j7().cb();break;case"RadiusMemberPath":this.j7().ci();break;case"RadiusScale":this.j7().cj();break;case"LabelMemberPath":this.j7().b7();break;case"FillMemberPath":this.j7().b5();break;case"FillScale":this.j7().b6()}},$type:new n.ig.Type("GeographicProportionalSymbolSeries",t.$vo.$type.specialize(t.$h7.$type))},!0);n.ig.util.defType("GeographicScatterAreaSeries:vm","GeographicXYTriangulatingSeries",{init:function(){t.$vn.init.call(this);this.y(t.$vm.$type)},colorMemberPath:function(n){return arguments.length===1?(this.g(t.$vm.colorMemberPathProperty,n),n):this.c(t.$vm.colorMemberPathProperty)},km:null,colorScale:function(n){var t,i;return arguments.length===1?(t=this.km!=n,t&&(i=this.km,this.km=n,this.raisePropertyChanged("ColorScale",i,this.km),this.ko()!=null&&this.ko().colorScale(n)),n):this.km},_ko:null,ko:function(n){return arguments.length===1?(this._ko=n,n):this._ko},j1:function(){return this.ko(new t.vs),this.ko().triangulationStatusChanged=n.ig.Delegate.prototype.combine(this.ko().triangulationStatusChanged,this.ku.runOn(this)),this.ko()},ku:function(n,t){this.triangulationStatusChanged!=null&&this.triangulationStatusChanged(this,t)},au:function(){return new t.vv(this)},hc:function(n){t.$vn.hc.call(this,n);this.kq(n)},_kq:null,kq:function(n){return arguments.length===1?(this._kq=n,n):this._kq},hh:function(n,i,r,u){t.$vn.hh.call(this,n,i,r,u);switch(i){case"ColorMemberPath":this.kq().cd();break;case"ColorScale":this.kq().ce()}},triangulationStatusChanged:null,co:function(){return!0},$type:new n.ig.Type("GeographicScatterAreaSeries",t.$vn.$type)},!0);n.ig.util.defType("GeographicScatterAreaSeriesView:vv","GeographicXYTriangulatingSeriesView",{init:function(n){t.$vq.init.call(this,n);this.cc(n)},_cc:null,cc:function(n){return arguments.length===1?(this._cc=n,n):this._cc},bz:function(){t.$vq.bz.call(this);this.cc().ko()!=null&&(this.cc().ko().colorMemberPath(this.cc().colorMemberPath()),this.cc().ko().colorScale(this.cc().colorScale()))},cd:function(){this.cc().ko()!=null&&this.cc().ko().colorMemberPath(this.cc().colorMemberPath())},ce:function(){this.cc().ko()!=null&&this.cc().ko().colorScale(this.cc().colorScale())},$type:new n.ig.Type("GeographicScatterAreaSeriesView",t.$vq.$type)},!0);n.ig.util.defType("GeographicShapeSeries:w7","GeographicShapeSeriesBase",{init:function(){t.$v3.init.call(this);this.y(t.$w7.$type)},au:function(){return new t.w8(this)},_kd:null,kd:function(n){return arguments.length===1?(this._kd=n,n):this._kd},hc:function(n){t.$v3.hc.call(this,n);this.kd(n)},j1:function(){return new t.w9},shapeStyleSelector:function(n){return arguments.length===1?(this.g(t.$w7.shapeStyleSelectorProperty,n),n):this.c(t.$w7.shapeStyleSelectorProperty)},shapeStyle:function(n){return arguments.length===1?(this.g(t.$w7.shapeStyleProperty,n),n):this.c(t.$w7.shapeStyleProperty)},markerType:function(n){return arguments.length===1?(this.g(t.$w7.markerTypeProperty,n),n):this.c(t.$w7.markerTypeProperty)},markerTemplate:function(n){return arguments.length===1?(this.g(t.$w7.markerTemplateProperty,n),n):this.c(t.$w7.markerTemplateProperty)},markerBrush:function(n){return arguments.length===1?(this.g(t.$w7.markerBrushProperty,n),n):this.c(t.$w7.markerBrushProperty)},markerOutline:function(n){return arguments.length===1?(this.g(t.$w7.markerOutlineProperty,n),n):this.c(t.$w7.markerOutlineProperty)},markerStyle:function(n){return arguments.length===1?(this.g(t.$w7.markerStyleProperty,n),n):this.c(t.$w7.markerStyleProperty)},markerCollisionAvoidance:function(n){return arguments.length===1?(this.g(t.$w7.markerCollisionAvoidanceProperty,n),n):this.c(t.$w7.markerCollisionAvoidanceProperty)},hh:function(n,i,r,u){t.$v3.hh.call(this,n,i,r,u);switch(i){case"MarkerTemplate":this.kd().cg();break;case"MarkerCollisionAvoidance":this.kd().cd();break;case"MarkerType":this.kd().ch();break;case"MarkerBrush":this.kd().cc();break;case"MarkerOutline":this.kd().ce();break;case"MarkerStyle":this.kd().cf();break;case"ShapeStyleSelector":this.kd().ci();break;case"ShapeStyle":this.kd().cj()}},$type:new n.ig.Type("GeographicShapeSeries",t.$v3.$type)},!0);n.ig.util.defType("GeographicShapeSeriesView:w8","GeographicShapeSeriesBaseView",{init:function(n){t.$v2.init.call(this,n);this.cb(n);this.n()||this.cb().shapeMemberPath("points")},_cb:null,cb:function(n){return arguments.length===1?(this._cb=n,n):this._cb},bz:function(){t.$v2.bz.call(this);this.cb().j2().shapeStyle(this.cb().shapeStyle());this.cb().j2().shapeStyleSelector(this.cb().shapeStyleSelector());this.cb().j2().markerTemplate(this.cb().markerTemplate());this.cb().j2().markerCollisionAvoidance(this.cb().markerCollisionAvoidance())},cg:function(){this.cb().j2().markerTemplate(this.cb().markerTemplate())},cd:function(){this.cb().j2().markerCollisionAvoidance(this.cb().markerCollisionAvoidance())},ch:function(){this.cb().j2().markerType(this.cb().markerType())},cc:function(){this.cb().j2().markerBrush(this.cb().markerBrush())},ce:function(){this.cb().j2().markerOutline(this.cb().markerOutline())},cf:function(){this.cb().j2().markerStyle(this.cb().markerStyle())},ci:function(){this.cb().j2().shapeStyleSelector(this.cb().shapeStyleSelector())},cj:function(){this.cb().j2().shapeStyle(this.cb().shapeStyle())},$type:new n.ig.Type("GeographicShapeSeriesView",t.$v2.$type)},!0);n.ig.util.defType("GeographicSymbolSeries:xc","GeographicMapSeriesHost$1",{init:function(){t.$vo.init.call(this,t.$xe.$type);this.y(t.$xc.$type)},au:function(){return new t.xd(this)},hc:function(n){t.$vo.hc.call(this,n);this.j6(n)},_j6:null,j6:function(n){return arguments.length===1?(this._j6=n,n):this._j6},j1:function(){return new t.xe},_j5:null,j5:function(n){return arguments.length===1?(this._j5=n,n):this._j5},latitudeMemberPath:function(n){return arguments.length===1?(this.g(t.$xc.latitudeMemberPathProperty,n),n):this.c(t.$xc.latitudeMemberPathProperty)},longitudeMemberPath:function(n){return arguments.length===1?(this.g(t.$xc.longitudeMemberPathProperty,n),n):this.c(t.$xc.longitudeMemberPathProperty)},markerType:function(n){return arguments.length===1?(this.g(t.$xc.markerTypeProperty,n),n):this.c(t.$xc.markerTypeProperty)},markerCollisionAvoidance:function(n){return arguments.length===1?(this.g(t.$xc.markerCollisionAvoidanceProperty,n),n):this.c(t.$xc.markerCollisionAvoidanceProperty)},markerTemplate:function(n){return arguments.length===1?(this.g(t.$xc.markerTemplateProperty,n),n):this.c(t.$xc.markerTemplateProperty)},markerBrush:function(n){return arguments.length===1?(this.g(t.$xc.markerBrushProperty,n),n):this.c(t.$xc.markerBrushProperty)},markerOutline:function(n){return arguments.length===1?(this.g(t.$xc.markerOutlineProperty,n),n):this.c(t.$xc.markerOutlineProperty)},maximumMarkers:function(n){return arguments.length===1?(this.g(t.$xc.maximumMarkersProperty,n),n):this.c(t.$xc.maximumMarkersProperty)},hh:function(n,i,r,u){t.$vo.hh.call(this,n,i,r,u);switch(i){case"SeriesViewer":this.j6().cd();break;case"LongitudeMemberPath":this.j6().b6();break;case"LatitudeMemberPath":this.j6().b5();break;case"MarkerCollisionAvoidance":this.j6().b8();break;case"MarkerType":this.j6().cb();break;case"MarkerTemplate":this.j6().ca();break;case"MaximumMarkers":this.j6().cc();break;case"XAxis":this.j6().ce();break;case"YAxis":this.j6().cf();break;case"MarkerBrush":this.j6().b7();break;case"MarkerOutline":this.j6().b9()}},$type:new n.ig.Type("GeographicSymbolSeries",t.$vo.$type.specialize(t.$xe.$type))},!0);n.ig.util.defType("GeographicSymbolSeriesView:xd","HostSeriesView$1",{init:function(n){t.$vp.init.call(this,t.$xe.$type,n);this.b4(n)},_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},bz:function(){t.$vp.bz.call(this);this.b4().j2().xMemberPath(this.b4().longitudeMemberPath());this.b4().j2().yMemberPath(this.b4().latitudeMemberPath());this.b4().j2().markerType(this.b4().markerType());this.b4().j2().markerTemplate(this.b4().markerTemplate())},b6:function(){this.b4().j2().xMemberPath(this.b4().longitudeMemberPath())},b5:function(){this.b4().j2().yMemberPath(this.b4().latitudeMemberPath())},cb:function(){this.b4().j2().markerType(this.b4().markerType())},ca:function(){this.b4().j2().markerTemplate(this.b4().markerTemplate())},cc:function(){this.b4().j2().maximumMarkers(this.b4().maximumMarkers())},ce:function(){this.b4().j2().xAxis(this.b4().seriesViewer().xAxis())},cf:function(){this.b4().j2().yAxis(this.b4().seriesViewer().yAxis())},cd:function(){if(this.b4().seriesViewer()==null){this.b4().j2().xAxis(null);this.b4().j2().yAxis(null);return}this.b4().j2().xAxis(this.b4().seriesViewer().xAxis());this.b4().j2().yAxis(this.b4().seriesViewer().yAxis())},b8:function(){this.b4().j2().markerCollisionAvoidance(this.b4().markerCollisionAvoidance())},b7:function(){this.b4().j2().markerBrush(this.b4().markerBrush())},b9:function(){this.b4().j2().markerOutline(this.b4().markerOutline())},$type:new n.ig.Type("GeographicSymbolSeriesView",t.$vp.$type.specialize(t.$xe.$type))},!0);n.ig.util.defType("GeographicTileSeries:xg","GeographicShapeSeriesBase",{init:function(){this.ka=null;t.$v3.init.call(this);this.y(t.$xg.$type)},tileImagery:function(n){var t,i;return arguments.length===1?(t=n!=this.tileImagery(),t&&(i=this.tileImagery(),this.kb=n,this.raisePropertyChanged("TileImagery",i,n)),n):this.kb},kb:null,clearTileCache:function(){this.tileImagery()!=null&&this.tileImagery().clearTileCache()},hh:function(n,i,r,u){t.$v3.hh.call(this,n,i,r,u);switch(i){case"TileImagery":this.j2()!=null&&this.j2().tileImagery(this.tileImagery())}},ka:null,jx:function(){t.$v3.jx.call(this);this.j2().tileImagery(this.tileImagery());this.ka!=null&&(this.ka.imageTilesReady=n.ig.Delegate.prototype.remove(this.ka.imageTilesReady,this.kf.runOn(this)));this.ka=this.j2();this.ka!=null&&(this.ka.imageTilesReady=n.ig.Delegate.prototype.combine(this.ka.imageTilesReady,this.kf.runOn(this)))},j1:function(){return new t.xh},imageTilesReady:null,kf:function(){this.imageTilesReady!=null&&this.imageTilesReady(this,new t.er)},$type:new n.ig.Type("GeographicTileSeries",t.$v3.$type)},!0);n.ig.util.defType("XYTriangulatingSeries:vr","Series",{init:function(){t.$fq.init.call(this)},xMemberPath:function(n){return arguments.length===1?(this.g(t.$vr.xMemberPathProperty,n),n):this.c(t.$vr.xMemberPathProperty)},yMemberPath:function(n){return arguments.length===1?(this.g(t.$vr.yMemberPathProperty,n),n):this.c(t.$vr.yMemberPathProperty)},jx:null,jz:function(n){var t,i;return arguments.length===1?(t=this.jz()!=n,t&&(i=this.jz(),this.jx=n,this.raisePropertyChanged("XColumn",i,this.jz())),n):this.jx},jy:null,j0:function(n){var t,i;return arguments.length===1?(t=this.j0()!=n,t&&(i=this.j0(),this.jy=n,this.raisePropertyChanged("YColumn",i,this.j0())),n):this.jy},xAxis:function(n){return arguments.length===1?(this.g(t.$vr.xAxisProperty,n),n):this.c(t.$vr.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$vr.yAxisProperty,n),n):this.c(t.$vr.yAxisProperty)},_j9:!1,j9:function(n){return arguments.length===1?(this._j9=n,n):this._j9},hq:function(){var n=this.bb()!=null&&this.j8()==null&&this.ka()==null&&this.jz()!=null&&this.j0()!=null&&this.jz().count()>=3&&this.j0().count()>=3&&!this.j9();n&&(this.kx(),this.j9(!0))},kx:function(){this.jw=new t.u7(this.bb().count(),this.jz(),this.j0());this.jw.triangulationStatusChanged=n.ig.Delegate.prototype.combine(this.jw.triangulationStatusChanged,this.ky.runOn(this));this.jw.w()},kv:function(){this.jw!=null&&(this.jw.p(),this.jw.triangulationStatusChanged=n.ig.Delegate.prototype.remove(this.jw.triangulationStatusChanged,this.ky.runOn(this)),this.jw=null)},jw:null,triangulationStatusChanged:null,ky:function(i,r){var u=this,f;if(u.triangulationStatusChanged!=null&&u.triangulationStatusChanged(u,new t.vh(r.currentStatus())),r.currentStatus()>=100){if(u.jw==null)return;u.jw.triangulationStatusChanged=n.ig.Delegate.prototype.remove(u.jw.triangulationStatusChanged,u.ky.runOn(u));u.ka(u.jw.l());u.jw=null;f=function(){var n=new t.gw;return n.itemsSource(u.ka()),n}();u.j5(u.j4(f,"v1"));u.j6(u.j4(f,"v2"));u.j7(u.j4(f,"v3"));u.renderSeries(!1)}},j4:function(n,i){if(i==null)return n.registerColumnInt(null,null,!1);var r=null,u=t.$b2.getCoercionMethod(i,this.coercionMethods());return i=u.b(),r=u.a(),n.registerColumnInt(i,r,this.expectFunctions())},hh:function(i,r,u,f){var e=this,h,c,o,s;t.$fq.hh.call(e,i,r,u,f);switch(r){case"FastItemsSource":h=n.ig.util.cast(t.$gx.$type,u);h!=null&&(h.deregisterColumn(e.jz()),h.deregisterColumn(e.j0()),e.jz(null),e.j0(null));e.kw();c=n.ig.util.cast(t.$gx.$type,f);c!=null&&(e.jz(e.a8(e.xMemberPath())),e.j0(e.a8(e.yMemberPath())));e.renderSeries(!1);break;case"XMemberPath":e.bb()!=null&&(e.bb().deregisterColumn(e.jz()),e.jz(e.a8(e.xMemberPath())));e.kw();e.renderSeries(!1);break;case"YMemberPath":e.bb()!=null&&(e.bb().deregisterColumn(e.j0()),e.j0(e.a8(e.yMemberPath())));e.kw();e.renderSeries(!1);break;case"XAxis":u!=null&&n.ig.util.cast(t.$aq.$type,u).deregisterSeries(e);f!=null&&n.ig.util.cast(t.$aq.$type,f).registerSeries(e);(e.xAxis()==null||e.xAxis().updateRange())&&(f!=null||u==null)||e.renderSeries(!1);break;case"YAxis":u!=null&&n.ig.util.cast(t.$aq.$type,u).deregisterSeries(e);f!=null&&n.ig.util.cast(t.$aq.$type,f).registerSeries(e);(e.yAxis()==null||e.yAxis().updateRange())&&(f!=null||u==null)||e.renderSeries(!1);break;case"TrianglesSource":e.trianglesSource()!=null?(e.kv(),e.j8(function(){var n=new t.gw;return n.itemsSource(e.trianglesSource()),n}())):e.j8(null);break;case"FastTrianglesSource":o=n.ig.util.cast(t.$gx.$type,u);o!=null&&(o.deregisterColumn(e.j5()),o.deregisterColumn(e.j6()),o.deregisterColumn(e.j7()),e.j5(null),e.j6(null),e.j7(null));s=n.ig.util.cast(t.$gx.$type,f);s!=null&&(e.j5(e.j4(s,e.triangleVertexMemberPath1())),e.j6(e.j4(s,e.triangleVertexMemberPath2())),e.j7(e.j4(s,e.triangleVertexMemberPath3())));e.renderSeries(!1);break;case"TriangleVertexMemberPath1":e.j8()!=null&&(e.j8().deregisterColumn(e.j5()),e.j5(e.j4(e.j8(),e.triangleVertexMemberPath1())));e.renderSeries(!1);break;case"TriangleVertexMemberPath2":e.j8()!=null&&(e.j8().deregisterColumn(e.j6()),e.j6(e.j4(e.j8(),e.triangleVertexMemberPath2())));e.renderSeries(!1);break;case"TriangleVertexMemberPath3":e.j8()!=null&&(e.j8().deregisterColumn(e.j7()),e.j7(e.j4(e.j8(),e.triangleVertexMemberPath3())));e.renderSeries(!1)}},ct:function(n,i,r){return t.$fq.ct.call(this,n,i,r)&&this.bb()!=null&&this.xAxis()!=null&&this.yAxis()!=null&&n.width()>0&&n.height()>0&&this.j5()!=null&&this.j5().count()>0&&this.j6()!=null&&this.j6().count()>0&&this.j7()!=null&&this.j7().count()>0&&this.jz()!=null&&this.jz().count()>0&&this.j0()!=null&&this.j0().count()>0},kw:function(){this.trianglesSource()==null&&(this.ka(null),this.j5(null),this.j6(null),this.j7(null),this.j9(!1))},_ka:null,ka:function(n){return arguments.length===1?(this._ka=n,n):this._ka},gs:function(){t.$fq.gs.call(this);this.xAxis()!=null&&this.xAxis().renderAxis();this.yAxis()!=null&&this.yAxis().renderAxis()},gj:function(n,i,r,u){t.$fq.gj.call(this,n,i,r,u);this.kw();this.renderSeries(!1)},ad:function(n){return n!=null&&n==this.xAxis()&&this.jz()!=null?new t.jx(this.jz().minimum(),this.jz().maximum()):n!=null&&n==this.yAxis()&&this.j0()!=null?new t.jx(this.j0().minimum(),this.j0().maximum()):null},h3:function(){this.renderSeries(!1)},h2:function(){this.renderSeries(!1)},trianglesSource:function(n){return arguments.length===1?(this.g(t.$vr.trianglesSourceProperty,n),n):this.c(t.$vr.trianglesSourceProperty)},j8:function(n){return arguments.length===1?(this.g(t.$vr.kz,n),n):this.c(t.$vr.kz)},triangleVertexMemberPath1:function(n){return arguments.length===1?(this.g(t.$vr.triangleVertexMemberPath1Property,n),n):this.c(t.$vr.triangleVertexMemberPath1Property)},triangleVertexMemberPath2:function(n){return arguments.length===1?(this.g(t.$vr.triangleVertexMemberPath2Property,n),n):this.c(t.$vr.triangleVertexMemberPath2Property)},triangleVertexMemberPath3:function(n){return arguments.length===1?(this.g(t.$vr.triangleVertexMemberPath3Property,n),n):this.c(t.$vr.triangleVertexMemberPath3Property)},j1:null,j5:function(n){var t,i;return arguments.length===1?(t=this.j5()!=n,t&&(i=this.j5(),this.j1=n,this.raisePropertyChanged("TriangleVertexColumn1",i,this.j5())),n):this.j1},j2:null,j6:function(n){var t,i;return arguments.length===1?(t=this.j6()!=n,t&&(i=this.j6(),this.j2=n,this.raisePropertyChanged("TriangleVertexColumn2",i,this.j6())),n):this.j2},j3:null,j7:function(n){var t,i;return arguments.length===1?(t=this.j7()!=n,t&&(i=this.j7(),this.j3=n,this.raisePropertyChanged("TriangleVertexColumn3",i,this.j7())),n):this.j3},$type:new n.ig.Type("XYTriangulatingSeries",t.$fq.$type)},!0);n.ig.util.defType("ContourLineSeries:wm","XYTriangulatingSeries",{init:function(){t.$vr.init.call(this);this.y(t.$wm.$type);this.valueResolver(new t.wp)},_k8:null,k8:function(n){return arguments.length===1?(this._k8=n,n):this._k8},au:function(){return this.k8(new t.wn(this)),this.k8()},valueMemberPath:function(n){return arguments.length===1?(this.g(t.$wm.valueMemberPathProperty,n),n):this.c(t.$wm.valueMemberPathProperty)},lc:null,ld:function(n){var t,i;return arguments.length===1?(t=this.ld()!=n,t&&(i=this.ld(),this.lc=n,this.raisePropertyChanged("ValueColumn",i,this.ld())),n):this.lc},hh:function(i,r,u,f){var e,h,o,s;t.$vr.hh.call(this,i,r,u,f);switch(r){case"FastItemsSource":e=n.ig.util.cast(t.$gx.$type,u);e!=null&&(e.deregisterColumn(this.ld()),this.ld(null));h=n.ig.util.cast(t.$gx.$type,f);h!=null&&this.ld(this.a8(this.valueMemberPath()));this.renderSeries(!1);break;case"ValueMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.ld()),this.ld(this.a8(this.valueMemberPath())));this.renderSeries(!1);break;case"ValueResolver":this.renderSeries(!1);break;case"FillScale":o=u;s=f;o!=null&&o.unregisterSeries(this);s!=null&&s.registerSeries(this);this.renderSeries(!1);break;case"ActualBrush":this.renderSeries(!1)}},gh:function(n,i){t.$vr.gh.call(this,n,i);n&&i.b5(n)},hq:function(i){var r=this,ut,k,ct,lt,w,gt,d,ft,et,b,rt,s,o,ot,pt,st,ht,ii,bt,kt,dt;if(t.$vr.hq.call(r,i),!r.bn(r.view())){(function(){var n=r.getViewInfo(k,ut);return k=n.viewportRect,ut=n.windowRect,n.ret})();ct=new t.j1(ut,k,r.xAxis().isInverted());ct.b=r.seriesViewer().effectiveViewport();lt=new t.j1(ut,k,r.yAxis().isInverted());lt.b=r.seriesViewer().effectiveViewport();var ri=r.xAxis(),ui=r.yAxis(),fi=r.j5().count(),p,ei=r.jz().asArray();p=ei.slice(0);gt=r.j0().asArray();w=gt.slice(0);var at=r.ld().asArray(),oi=r.j5().asArray(),si=r.j6().asArray(),hi=r.j7().asArray(),ci=r.valueResolver().h(r.ld()),vt=new t.bj(Number,1,ci).toArray();for(ri.getScaledValueList(p,0,p.length,ct),ui.getScaledValueList(w,0,w.length,lt),d=vt.length,ft=new Array(d),et=0;et<d;++et)ft[et]=new t.wq;var li=r.jr().top(),ai=r.jr().left(),vi=r.jr().right(),yi=r.jr().bottom(),g,nt,tt,it,yt=p.length;for(b=0;b<fi;b++){var h=oi[b],c=si[b],l=hi[b];if(!(h>=yt)&&!(c>=yt)&&!(l>=yt)&&!(h<0)&&!(c<0)&&!(l<0)){var pi=p[h],wi=w[h],u={__x:pi,__y:wi,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},bi=p[c],ki=w[c],f={__x:bi,__y:ki,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},di=p[l],gi=w[l],e={__x:di,__y:gi,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(g=f.__y<e.__y?f.__y:e.__y,g=u.__y<g?u.__y:g,nt=f.__y>e.__y?f.__y:e.__y,nt=u.__y>nt?u.__y:nt,tt=f.__x<e.__x?f.__x:e.__x,tt=u.__x<tt?u.__x:tt,it=f.__x>e.__x?f.__x:e.__x,it=u.__x>it?u.__x:it,g<yi&&nt>li&&tt<vi&&it>ai){var a=at[h],v=at[c],y=at[l];if(isNaN(a)||isNaN(v)||isNaN(y))continue;for(rt=0;rt<d;rt++){s=vt[rt];o=ft[rt];switch((a<s?1:0)|(v<s?2:0)|(y<s?4:0)){case 1:o.d(o.k(h,u.__x,u.__y,a,c,f.__x,f.__y,v,s),o.k(l,e.__x,e.__y,y,h,u.__x,u.__y,a,s));break;case 2:o.d(o.k(c,f.__x,f.__y,v,l,e.__x,e.__y,y,s),o.k(h,u.__x,u.__y,a,c,f.__x,f.__y,v,s));break;case 3:o.d(o.k(c,f.__x,f.__y,v,l,e.__x,e.__y,y,s),o.k(l,e.__x,e.__y,y,h,u.__x,u.__y,a,s));break;case 4:o.d(o.k(l,e.__x,e.__y,y,h,u.__x,u.__y,a,s),o.k(c,f.__x,f.__y,v,l,e.__x,e.__y,y,s));break;case 5:o.d(o.k(h,u.__x,u.__y,a,c,f.__x,f.__y,v,s),o.k(c,f.__x,f.__y,v,l,e.__x,e.__y,y,s));break;case 6:o.d(o.k(l,e.__x,e.__y,y,h,u.__x,u.__y,a,s),o.k(h,u.__x,u.__y,a,c,f.__x,f.__y,v,s))}}}}}for(ot=new t.i0(0,k.inflate(2),!1),pt=new t.bj(t.$bj.$type.specialize(t.$bj.$type.specialize(t.$cc.$type)),0),st=0;st<d;++st){var wt=ft[st],ni=new t.bj(t.$bj.$type.specialize(t.$cc.$type),0),ti=wt.c();for(ht=0;ht<ti.count();ht++){for(ii=ti.__inner[ht],bt=new t.bj(t.$cc.$type,0),ot.i(bt),kt=ii.getEnumerator();kt.moveNext();)dt=kt.current(),ot.j({__x:wt.g().item(dt),__y:wt.h().item(dt),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});ot.i(null);ni.add(bt)}pt.add(ni)}r.k8().b4(pt,vt)}},fillScale:function(n){return arguments.length===1?(this.g(t.$wm.fillScaleProperty,n),n):this.c(t.$wm.fillScaleProperty)},k9:null,valueResolver:function(t){var i,r;return arguments.length===1?(i=t!=this.valueResolver(),i&&(this.k9!=null&&(this.k9.updated=n.ig.Delegate.prototype.remove(this.k9.updated,this.lj.runOn(this))),r=this.k9,this.k9=t,this.k9!=null&&(this.k9.updated=n.ig.Delegate.prototype.combine(this.k9.updated,this.lj.runOn(this))),this.raisePropertyChanged("ValueResolver",r,t),this.renderSeries(!1)),t):this.k9},lj:function(){this.renderSeries(!1)},ct:function(n,i,r){return t.$vr.ct.call(this,n,i,r)&&this.valueResolver()!=null&&this.jz()!=null&&this.j0()!=null&&this.j5()!=null&&this.j6()!=null&&this.j7()!=null&&this.jz().count()>0&&this.j0().count()>0&&this.j5().count()>0&&this.j6().count()>0&&this.j7().count()>0},$type:new n.ig.Type("ContourLineSeries",t.$vr.$type)},!0);n.ig.util.defType("PolylineBuilder:wr","Object",{init:function(){n.ig.$op.init.call(this);this.a=new t.g0(n.ig.Number.prototype.$type,t.$bj.$type.specialize(n.ig.Number.prototype.$type),0);this.b=new t.g0(n.ig.Number.prototype.$type,t.$bj.$type.specialize(n.ig.Number.prototype.$type),0)},e:function(){this.a.clear();this.b.clear()},c:function(){for(var i=new t.bj(t.$bj.$type.specialize(n.ig.Number.prototype.$type),0),r=this.a.values().getEnumerator(),u;r.moveNext();)u=r.current(),i.add(u);return i},d:function(i,r){var f=this,u=null,e=null,o;(function(){var n=f.b.tryGetValue(i,u);return u=n.value,n.ret})(),function(){var n=f.a.tryGetValue(r,e);return e=n.value,n.ret}();u==null&&e==null&&(o=new t.bj(n.ig.Number.prototype.$type,0),o.add(i),o.add(r),f.a.add(i,o),f.b.add(r,o));u==null&&e!=null&&(f.a.remove(r),e.insert(0,i),f.a.add(i,e));u!=null&&e==null&&(f.b.remove(i),u.add(r),f.b.add(r,u));u!=null&&e!=null&&(u==e?(u.add(r),f.b.remove(i)):(f.a.remove(e.__inner[0]),f.b.remove(e.__inner[e.count()-1]),f.b.remove(u.__inner[u.count()-1]),u.addRange(e),f.b.add(u.__inner[u.count()-1],u)))},a:null,b:null,$type:new n.ig.Type("PolylineBuilder",n.ig.$ot)},!0);n.ig.util.defType("ContourBuilder:wq","PolylineBuilder",{init:function(){t.$wr.init.call(this);this.f=new t.g0(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0);this.i=new t.bj(n.ig.Single.prototype.$type,0);this.j=new t.bj(n.ig.Single.prototype.$type,0)},e:function(){t.$wr.e.call(this);this.f.clear();this.i.clear();this.j.clear()},g:function(){return this.i},h:function(){return this.j},k:function(n,t,i,r,u,f,e,o,s){var h=this,a=Math.min(n,u)+4294967296*Math.max(n,u),c=-1,l;return function(){var n=h.f.tryGetValue(a,c);return c=n.value,n.ret}()||(c=h.i.count(),l=(s-r)/(o-r),h.f.add(a,c),h.i.add(t+l*(f-t)),h.j.add(i+l*(e-i))),c},f:null,i:null,j:null,$type:new n.ig.Type("ContourBuilder",t.$wr.$type)},!0);n.ig.util.defType("ContourLineSeriesView:wn","SeriesView",{_bz:null,bz:function(n){return arguments.length===1?(this._bz=n,n):this._bz},_by:null,by:function(n){return arguments.length===1?(this._by=n,n):this._by},init:function(n){var i=this;this.b1=new t.bj(t.$a7.$type,0);this.b0=null;t.$fr.init.call(this,n);this.b2(new t.bj(t.$a5.$type,0));this.by(n);this.bz(function(){var n=new t.hy(t.$a5.$type);return n.create(i.b9.runOn(i)),n.destroy(i.b8.runOn(i)),n.activate(i.b6.runOn(i)),n.disactivate(i.b7.runOn(i)),n}())},_b2:null,b2:function(n){return arguments.length===1?(this._b2=n,n):this._b2},b9:function(){var i=this,n=new t.a5;return n.dataContext(function(){var n=new t.fs;return n.series(i.d()),n}()),i.b2().add(n),n},b6:function(n){n.__visibility=0},b7:function(n){n.__visibility=1},b8:function(n){this.b2().remove(n)},b1:null,b0:null,b4:function(n,i){var r=this,u=0,f,e,s,h,c,o;for(r.b0=i,r.b1.clear(),f=0;f<i.length;f++){var l=i[f],a=n.__inner[u],v=new t.d1;for(e=0;e<a.count();e++)(s=a.__inner[e],s.count()!=0)&&(h=s.toPointCollection(),c=function(){var n=new t.ea;return n.isClosed(!1),n.isFilled(!1),n.startPoint(h.__inner[0]),n}(),c.__segments.add(function(){var n=new t.ed;return n.points(h),n}()),v.b().add(c));r.bz().item(u).ak(v);r.bz().item(u).dataContext()!=null&&r.bz().item(u).dataContext().item(l);r.by().fillScale()!=null?(o=r.by().fillScale().getBrushByValue(l,r.by().ld()),o==null&&(o=r.d().actualBrush()),r.b1.add(o)):r.b1.add(r.d().actualBrush());u++}r.bz().c(u);r.am()},a9:function(n,i){t.$fr.a9.call(this,n,i);var r=n;r.__stroke=this.b1.__inner[i];r.z(this.d().thickness());r.v()!=null&&this.g().g(r,r.v())},ba:function(n,i){t.$fr.ba.call(this,n,i);var r=n,u=this.bs(i);r.__stroke=u;r.z(this.d().thickness()+3)},a1:function(n,i){var r,u;for(t.$fr.a1.call(this,n,i),r=0;r<this.b2().count();r++)u=this.b2().__inner[r],u.__visibility!=1&&(this.a8(u,r,i),n.q(u))},b5:function(){this.bz().c(0);this.am()},ah:function(n){var u=this,i,f,r,e;if(t.$fr.ah.call(u,n),i=new t.bj(t.$eh.$type.specialize(Number,t.$a5.$type),0),u.b0!=null)for(f=0;f<u.bz().c();f++)i.add(new t.eh(Number,t.$a5.$type,u.b0[f],u.bz().item(f)));for(i.sort1(function(n,t){return n.a()<t.a()?-1:n.a()>t.a()?1:0}),r=0;r<i.count();r++)i.__inner[r].b().__visibility!=1&&(e=new t.go(1,"contour"+r,i.__inner[r].b()),e.tags().add("Main"),n.shapes().add(e))},$type:new n.ig.Type("ContourLineSeriesView",t.$fr.$type)},!0);n.ig.util.defType("ContourValueResolver:wo","DependencyObject",{init:function(){t.$e.init.call(this)},h:function(){},j:function(){this.updated!=null&&this.updated(this,t.$er.empty)},updated:null,$type:new n.ig.Type("ContourValueResolver",t.$e.$type)},!0);n.ig.util.defType("LinearContourValueResolver:wp","ContourValueResolver",{init:function(){t.$wo.init.call(this)},k:function(n){return arguments.length===1?(this.g(t.$wp.m,n),n):this.c(t.$wp.m)},h:function(t){var i=this,r=function(){return function(n){return{$state:0,$this:i,$current:null,$b:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=0;this.$state=5;break;case 2:return this.$current=n.minimum()+(n.maximum()-n.minimum())*(this.$b+1)/(this.$this.k()+1),this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$b++;this.$state=5;break;case 5:this.$state=this.$b<this.$this.k()?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}(t)};return new n.ig.GenericEnumerable$1(Number,r)},$type:new n.ig.Type("LinearContourValueResolver",t.$wo.$type)},!0);n.ig.util.defType("ShapeSeriesBase:v4","Series",{init:function(){this.ju=null;this.jw=null;this.j5=null;this.j7=null;this.j6=null;this.j4=null;t.$fq.init.call(this);this.kj(this.shapeFilterResolution());this.kc(new t.g0(n.ig.Number.prototype.$type,t.$v6.$type,0));this.k6=t.$ca.empty()},shapeMemberPath:function(n){return arguments.length===1?(this.g(t.$v4.shapeMemberPathProperty,n),n):this.c(t.$v4.shapeMemberPathProperty)},j2:null,j3:function(n){var t,i;return arguments.length===1?(t=this.j3()!=n,t&&(i=this.j3(),this.j2=n,this.raisePropertyChanged("ShapeColumn",i,this.j3())),n):this.j2},xAxis:function(n){return arguments.length===1?(this.g(t.$v4.xAxisProperty,n),n):this.c(t.$v4.xAxisProperty)},yAxis:function(n){return arguments.length===1?(this.g(t.$v4.yAxisProperty,n),n):this.c(t.$v4.yAxisProperty)},j8:function(t){return n.isArray(t)},convertToListList:function(i){for(var o,r,s=new t.bj(t.$bj.$type.specialize(t.$cc.$type),0),u,f,h,c,e=0;e<i.length;e++){for(u=i[e],o=new t.bj(t.$cc.$type,0),r=0;r<u.length;r++)f=u[r],h=f.x,c=f.y,o.add({__x:h,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s.add(o)}return s},ba:function(n){if(this.bb()!=null&&this.j8(this.itemsSource())&&n!=null&&n.split("!").length!=2){this.coercionMethods()==null&&this.coercionMethods({});var i=this.coercionMethods();i.convertToListList=this.convertToListList;n+="!convertToListList"}return t.$fq.ba.call(this,n)},hh:function(i,r,u,f){var o,h,s,e;t.$fq.hh.call(this,i,r,u,f);switch(r){case"FastItemsSource":o=n.ig.util.cast(t.$gx.$type,u);o!=null&&(o.deregisterColumn(this.j3()),o.deregisterColumn(this.j1()),this.j3(null),this.j1(null));h=n.ig.util.cast(t.$gx.$type,f);h!=null&&(this.j3(this.ba(this.shapeMemberPath())),this.j1(this.a8(this.fillMemberPath())));this.renderSeries(!1);break;case"ShapeMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.j3()),this.j3(this.ba(this.shapeMemberPath())));break;case"ShapeColumn":this.kx();break;case"FillMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.j1()),this.j1(this.a8(this.fillMemberPath())));break;case"XAxis":case"YAxis":this.ju=this.xAxis();this.jw=this.yAxis();s=u;e=f;this.ky(s);this.kw(e);(e==null||e.updateRange())&&(e!=null||s==null)||this.renderSeries(!1);break;case"MarkerCollisionAvoidance":this.renderSeries(!1);break;case"Resolution":this.kh=this.resolution();break;case"ActualBrush":this.renderSeries(!1);break;case"ShapeFilterResolution":this.kj(this.shapeFilterResolution());this.renderSeries(!1)}},ju:null,jw:null,kh:0,_kg:null,kg:function(n){return arguments.length===1?(this._kg=n,n):this._kg},kx:function(){var i,r;if(this.kg(null),this.j3()!=null)for(this.kg(new t.bj(t.$ca.$type,2,this.j3().count())),i=0;i<this.j3().count();i++)n.ig.util.cast(t.$bm.$type.specialize(t.$bm.$type.specialize(t.$cc.$type)),this.j3().item(i))!==null?this.kg().add(this.j3().item(i).getBounds()):n.ig.util.cast(t.$bm.$type.specialize(t.$cc.$type),this.j3().item(i))!==null&&(r=this.j3().item(i),this.kg().add(r.getBounds1()))},kd:function(n,t,i,r){var u=t;return this.ke(n,u,i,r)},j5:null,j7:null,j6:null,j4:null,j9:function(){return!0},_kc:null,kc:function(n){return arguments.length===1?(this._kc=n,n):this._kc},kb:function(){return!1},hq:function(){var n=this,v,i,o,r,k,d,g,nt,f,e,et,ot,tt,ht,u,p,it,rt,w,b,ut;if(!n.bn(n.view())&&(function(){var t=n.getViewInfo(i,v);return i=t.viewportRect,v=t.windowRect,t.ret}(),!(i.width()<1)&&!(i.height()<1)&&n.j3()!=null)){var ct=n.xAxis(),lt=n.yAxis(),ft=n.seriesViewer().effectiveViewport(),y=new t.j1(v,i,ct.isInverted());y.b=ft;o=new t.j1(v,i,lt.isInverted());o.b=ft;n.jy().cp(i.width(),i.height());n.jy().cn();r=new t.ca(0,0,0,0,0);f=n.j3().count();(n.j7==null||n.j7.length!=f)&&(n.j7=new Array(f),n.j5=new Array(f),n.j6=new Array(f),n.j4=new Array(f));var s=n.j7,h=n.j5,c=n.j6,l=n.j4,a;for(e=0;e<f;e++)a=n.kg().__inner[e],s[e]=a.top(),h[e]=a.left(),c[e]=a.right(),l[e]=a.bottom();n.ju.getScaledValueList(h,0,h.length,y);n.ju.getScaledValueList(c,0,c.length,y);n.jw.getScaledValueList(s,0,s.length,o);n.jw.getScaledValueList(l,0,l.length,o);n.jy().co(h,s,c,l);et=n.j3();ot=n.bb();n.kz();var at=i.left(),vt=i.right(),yt=i.top(),pt=i.bottom(),st=null;for(st=n.k6.isEmpty()?null:new t.i0(1,n.k6.left(),n.k6.bottom(),n.k6.right(),n.k6.top(),n.j9()),tt=n.kb(),tt&&n.kc().clear(),u=0;u<f;u++)if(g=h[u],k=s[u],d=l[u],nt=c[u],r.x(Math.min(g,nt)),r.y(Math.min(k,d)),r.width(Math.max(g,nt)-r.x()),r.height(Math.max(k,d)-r.y()),r.intersectsWith(i)){if(ht=r.x()<at||r.y()<yt||r.x()>vt||r.y()>pt?st:null,p=n.kd(ht,et.item(u),y,o),tt){for(it=0,rt=null,w=0;w<p.count();w++)b=p.__inner[w],ut=b.b().width()*b.b().height(),ut>it&&(it=ut,rt=b);n.kc().add(u,rt)}n.jy().cc(u,ot.item(u),r,p)}n.jy().cm()}},gs:function(){t.$fq.gs.call(this);this.xAxis()!=null&&this.xAxis().renderAxis();this.yAxis()!=null&&this.yAxis().renderAxis()},h3:function(){this.renderSeries(!1)},h2:function(){this.renderSeries(!1)},fillScale:function(n){return arguments.length===1?(this.g(t.$v4.fillScaleProperty,n),n):this.c(t.$v4.fillScaleProperty)},fillMemberPath:function(n){return arguments.length===1?(this.g(t.$v4.fillMemberPathProperty,n),n):this.c(t.$v4.fillMemberPathProperty)},j0:null,j1:function(n){var t,i;return arguments.length===1?(t=this.j1()!=n,t&&(i=this.j1(),this.j0=n,this.raisePropertyChanged("FillColumn",i,this.j1())),n):this.j0},gj:function(n,i,r,u){var f,e;t.$fq.gj.call(this,n,i,r,u);switch(n){case 3:u==this.shapeMemberPath()&&(this.kg().__inner[i]=this.j3().item(i).getBounds3());break;case 1:for(f=i;f<i+r;f++)this.kg().insert(f,this.j3().item(f).getBounds3());break;case 0:this.kg().removeRange(i,r);break;case 2:for(e=i;e<i+r;e++)this.kg().__inner[e]=this.j3().item(e).getBounds3();break;case 4:this.kx()}this.renderSeries(!1)},ct:function(n,i,r){return t.$fq.ct.call(this,n,i,r)&&(this.j3()!=null||!this.ka())&&this.xAxis()!=null&&this.yAxis()!=null&&this.kg()!=null&&this.kg().count()==this.j3().count()&&n.width()>0&&n.height()>0},ka:function(){return!0},hc:function(i){t.$fq.hc.call(this,i);this.jy(n.ig.util.cast(t.$v5.$type,i))},_jy:null,jy:function(n){return arguments.length===1?(this._jy=n,n):this._jy},ke:function(n,i,r,u){for(var e,o=new t.bj(t.$v6.$type,0),s,h=i.count(),f=0;f<h;f++)(s=i.__inner[f],e=this.jt(n,s,r,u),e!=null)&&o.add(e);return o},jt:function(n,i,r,u){for(var d,g,w,b,p,a,h=this.kv(i,r,u),k=h.a(),nt=h.b(),tt=k.length,f=Number.MAX_VALUE,e=Number.MAX_VALUE,o=-Number.MAX_VALUE,s=-Number.MAX_VALUE,c,l,v=0;v<tt;v++)c=k[v],l=nt[v],f=c<f?c:f,e=l<e?l:e,o=c>o?c:o,s=l>s?l:s;if((d=!(f>this.k6.right()||o<this.k6.left()||e>this.k6.bottom()||s<this.k6.top()),!d)||(g=n!=null&&(f<this.k6.left()||e<this.k6.top()||o>this.k6.right()||s>this.k6.bottom()),w=new t.ca(0,f,e,o-f,s-e),!this.jy().b6(w)))return null;f=f<this.k6.left()?this.k6.left():f;o=o>this.k6.right()?this.k6.right():o;e=e<this.k6.top()?this.k6.top():e;s=s>this.k6.bottom()?this.k6.bottom():s;var it=t.$wb.b(h,this.resolution()),y=(new t.wc).d(h.a(),h.b(),it,this.kh),rt=y.count();if(g){for(b=new t.bj(t.$cc.$type,0),n.i(b),p=0;p<rt;p++)n.j(y.__inner[p]);n.i(null);y=b}return a=new t.v6,a.a(y),a.b(new t.ca(0,f,e,o-f,s-e)),a.c(w),a},kv:function(i,r,u){for(var h=this.ju,c=this.jw,s=i.count(),e=new Array(s),o=new Array(s),f=0;f<s;f++)e[f]=i.__inner[f].__x,o[f]=i.__inner[f].__y;return h.getScaledValueList(e,0,e.length,r),c.getScaledValueList(o,0,o.length,u),new t.eh(n.ig.Array.prototype.$type,n.ig.Array.prototype.$type,e,o)},k6:null,kz:function(){this.jy().ct()},gh:function(n,i){t.$fq.gh.call(this,n,i);var r=i;r.ch()},kw:function(n){n!=null&&n.registerSeries(this)},ky:function(n){n!=null&&n.deregisterSeries(this)},getHitDataContext:function(n){var r=this.jy().cv(n),i=null;return(r!=null&&(i=r.dataContext()),i!=null)?i:t.$fq.getHitDataContext.call(this,n)},kk:function(n){return this.bb().item(n)},co:function(){return!0},shapeFilterResolution:function(n){return arguments.length===1?(this.g(t.$v4.shapeFilterResolutionProperty,n),n):this.c(t.$v4.shapeFilterResolutionProperty)},_kj:0,kj:function(n){return arguments.length===1?(this._kj=n,n):this._kj},$type:new n.ig.Type("ShapeSeriesBase",t.$fq.$type)},!0);n.ig.util.defType("PolylineSeries:wh","ShapeSeriesBase",{init:function(){t.$v4.init.call(this);this.y(t.$wh.$type)},au:function(){return new t.wi(this)},hc:function(n){t.$v4.hc.call(this,n);this.k7(n)},_k7:null,k7:function(n){return arguments.length===1?(this._k7=n,n):this._k7},j9:function(){return!1},shapeStyleSelector:function(n){return arguments.length===1?(this.g(t.$wh.shapeStyleSelectorProperty,n),n):this.c(t.$wh.shapeStyleSelectorProperty)},shapeStyle:function(n){return arguments.length===1?(this.g(t.$wh.shapeStyleProperty,n),n):this.c(t.$wh.shapeStyleProperty)},hh:function(n,i,r,u){t.$v4.hh.call(this,n,i,r,u);switch(i){case"ShapeStyle":this.k7().cr(this.shapeStyle());this.renderSeries(!1);break;case"ShapeStyleSelector":this.k7().cs(this.shapeStyleSelector());this.renderSeries(!1)}},$type:new n.ig.Type("PolylineSeries",t.$v4.$type)},!0);n.ig.util.defType("ShapeSeriesViewBase:v5","SeriesView",{init:function(n){this.b7=new t.bj(t.$v7.$type,0);this.bz=null;this.cz=null;t.$fr.init.call(this,n);this.by(n);this.b1(this.b0());this.b9(new t.bj(t.$a5.$type,0))},b0:function(){var n=this;return function(){var i=new t.hy(t.$as.$type);return i.create(n.cu.runOn(n)),i.activate(n.cj.runOn(n)),i.disactivate(n.ck.runOn(n)),i.destroy(n.cl.runOn(n)),i}()},b6:function(n){return n.width()>=this.by().kj()&&n.height()>=this.by().kj()},b8:function(n){for(var f,r=new t.bj(t.$cf.$type,0),u,e=n.count(),i=0;i<e;i++)u=n.__inner[i],f=new t.cf(1,u.a()),r.add(f);return r},_by:null,by:function(n){return arguments.length===1?(this._by=n,n):this._by},b7:null,cc:function(n,i,r,u){var h,s,e,o,f;if(u!=null&&u.count()>0&&(h=t.$v5.b8(u),r.intersect(this.bv()),this.b6(r)&&(s=this.cx(n,h),s!=null))){for(e=this.cw(this.cb(),i),o=0;o<u.count();o++)f=new t.v7,f.d=u.__inner[o].b(),f.a=u.__inner[o].a(),f.b=n,f.c=e,this.b7.add(f);this.ci(e);this.ce(e,s);this.cg(e,i);this.cb(this.cb()+1)}},cw:function(n,t){var i=this.b1().item(this.cb());return i.dataContext()!=null&&i.dataContext().item(t),i},ce:function(){},cf:function(n,t){t.__fill==null&&(t.__fill=n.d().actualBrush());t.__stroke==null&&(t.__stroke=n.d().actualOutline())},cg:function(n,t){n!=null&&(this.bz!=null&&n.v(this.bz.selectStyle(t,n)),n.v()==null&&n.v(this.cz))},ci:function(){},cd:function(n,t){for(var i,u=Math.floor(n.left()),f=Math.ceil(n.right()),e=Math.floor(n.top()),o=Math.ceil(n.bottom()),r=u;r<f;r++)for(i=e;i<o;i++)this.cq(r,i,t)},cq:function(){},cx:function(){},cn:function(){this.cb(0)},cm:function(){this.b1().c(this.cb());this.am()},_cb:0,cb:function(n){return arguments.length===1?(this._cb=n,n):this._cb},cp:function(){},ch:function(){this.b1().c(0);this.am()},_b9:null,b9:function(n){return arguments.length===1?(this._b9=n,n):this._b9},cu:function(){var n=this,r=n.by(),i=function(){var n=new t.a5;return n.dataContext(function(){var n=new t.fs;return n.series(r),n}()),n}();return n.b9().add(i),i},cj:function(n){n.__visibility=0},ck:function(n){n.dataContext().item(null);n.__visibility=1},cl:function(n){this.b9().remove1(n)},_b1:null,b1:function(n){return arguments.length===1?(this._b1=n,n):this._b1},cy:function(n,i,r){var o,f,h,e,s,u;if(i==null)return null;for(o=new t.d1,h=i.count(),e=0;e<h;e++)(f=i.__inner[e],f.count()<1)||(s=new t.ed,s.__points=f,u=new t.ea,u.__isFilled=r,u.__isClosed=r,u.__startPoint=f.__inner[0],u.__segments.add(s),o.b().add(u));return o},a9:function(n,i){t.$fr.a9.call(this,n,i);var r=n;r.__fill=this.d().actualBrush();r.__stroke=this.d().actualOutline();r.z(this.d().thickness());r.v()!=null&&this.g().g(r,r.v())},ba:function(n,i){t.$fr.ba.call(this,n,i);var r=n,u=this.bs(i);r.__fill=u;r.__stroke=u;r.z(this.d().thickness()+3)},a1:function(n,i){var r,u;for(t.$fr.a1.call(this,n,i),r=0;r<this.b9().count();r++)u=this.b9().__inner[r],u.__visibility!=1&&(this.a8(u,r,i),n.q(u))},bz:null,cz:null,cs:function(n){this.bz=n},cr:function(n){this.cz=n},cv:function(n){var r;if(this.b7.count()==0)return null;var u=n.__x,f=n.__y,e=this.b7.count(),o=this.b7,i=null;for(r=0;r<e;r++)if(i=o.__inner[r],u>=i.d.left()&&u<=i.d.right()&&f>=i.d.top()&&f<=i.d.bottom()&&t.$v9.a(i.a,n))return i.c;return null},b3:null,b5:null,b4:null,b2:null,co:function(n,t,i,r){this.b3=n;this.b5=t;this.b4=i;this.b2=r;this.b7.clear()},ct:function(){var n=this,r=n.bv(),i=function(){var i=new t.a5;return i.v(n.cz),i}();n.g()!=null&&n.g().g(i,i.v());n.by().k6=r.inflate(i.z())},ah:function(i){var o=this,r,f,e,u,s;for(t.$fr.ah.call(o,i),r=new t.bj(t.$eh.$type.specialize(t.$cc.$type,t.$a5.$type),0),f=0;f<o.b7.count();f++)e=o.b7.__inner[f],r.add(new t.eh(t.$cc.$type,t.$a5.$type,{__x:e.d.left(),__y:e.d.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},e.c));for(r.sort1(function(n,t){return n.a().__x<t.a().__x?-1:n.a().__x>t.a().__x?1:n.a().__y<t.a().__y?-1:n.a().__y>t.a().__y?1:0}),u=0;u<r.count();u++)r.__inner[u].b().__visibility!=1&&(s=new t.go(1,"shape"+u,r.__inner[u].b()),s.tags().add("Main"),i.shapes().add(s))},$type:new n.ig.Type("ShapeSeriesViewBase",t.$fr.$type)},!0);n.ig.util.defType("PolylineSeriesView:wi","ShapeSeriesViewBase",{init:function(n){t.$v5.init.call(this,n)},cx:function(n,t){return this.cy(n,t,!1)},cg:function(n,i){t.$v5.cg.call(this,n,i);t.$v5.cf(this,n,i)},ce:function(i,r){var u=n.ig.util.cast(t.$a5.$type,i);u!=null&&u.ak(r)},ci:function(n){t.$v5.ci.call(this,n)},a9:function(n,i){t.$v5.a9.call(this,n,i);var r=n;r.__fill=null},ba:function(n,i){t.$v5.ba.call(this,n,i);var r=n;r.__fill=null},b6:function(n){return n.width()>=this.by().kj()||n.height()>=this.by().kj()},$type:new n.ig.Type("PolylineSeriesView",t.$v5.$type)},!0);n.ig.util.defType("ScatterAreaSeries:vs","XYTriangulatingSeries",{le:null,init:function(){t.$vr.init.call(this);this.y(t.$vs.$type)},k8:null,colorScale:function(t){var i,r;return arguments.length===1?(i=this.k8!=t,i&&(r=this.k8,this.k8!=null&&(this.k8.propertyChanged=n.ig.Delegate.prototype.remove(this.k8.propertyChanged,this.lm.runOn(this))),this.k8=t,this.k8!=null&&(this.k8.propertyChanged=n.ig.Delegate.prototype.combine(this.k8.propertyChanged,this.lm.runOn(this))),this.raisePropertyChanged("ColorScale",r,this.k8)),t):this.k8},lm:function(){this.renderSeries(!1)},colorMemberPath:function(n){return arguments.length===1?(this.g(t.$vs.colorMemberPathProperty,n),n):this.c(t.$vs.colorMemberPathProperty)},lc:null,ld:function(n){var t,i;return arguments.length===1?(t=this.ld()!=n,t&&(i=this.ld(),this.lc=n,this.raisePropertyChanged("ColorColumn",i,this.ld())),n):this.lc},co:function(){return!0},hh:function(i,r,u,f){var e,o;t.$vr.hh.call(this,i,r,u,f);switch(r){case"FastItemsSource":e=n.ig.util.cast(t.$gx.$type,u);e!=null&&(e.deregisterColumn(this.ld()),this.ld(null));o=n.ig.util.cast(t.$gx.$type,f);o!=null&&this.ld(this.a8(this.colorMemberPath()));this.renderSeries(!1);break;case"ColorMemberPath":this.bb()!=null&&(this.bb().deregisterColumn(this.ld()),this.ld(this.a8(this.colorMemberPath())));this.renderSeries(!1);break;case"ColorScale":this.renderSeries(!1)}},hq:function(n){var i=this,r,u,e;if(t.$vr.hq.call(i,n),!i.bn(i.view())){(function(){var n=i.getViewInfo(u,r);return u=n.viewportRect,r=n.windowRect,n.ret})();var f=null,h=i.xAxis(),c=i.yAxis(),o=i.seriesViewer().effectiveViewport(),s=new t.j1(r,u,h.isInverted());s.b=o;e=new t.j1(r,u,c.isInverted());e.b=o;f=i.lb(s,e);f!=null?i.la().b5(f):i.la().b7(null)}},ll:function(){var n=Math.round(this.jr().width())*Math.round(this.jr().height()),t,i;if(this.le==null||this.le.length!=n)for(this.le=new Array(n),t=0;t<n;t++)this.le[t]=0;else for(i=0;i<n;i++)this.le[i]=0},getItem:function(n){var l=Math.round(this.jr().width()),y=Math.round(this.jr().height()),t;if(this.le==null||this.le.length!=l*y||this.j5()==null||this.j5().count()<1||this.j6()==null||this.j6().count()<1||this.j7()==null||this.j7().count()<1)return null;var r=this.seriesViewer().windowRect(),u=(n.__x-r.left())/r.width(),f=(n.__y-r.top())/r.height(),p=Math.round(l*u),w=Math.round(y*f),a=l*w+p;if(a<0||a>this.le.length-1||(t=this.le[a]-1,t<0||t>this.j5().count()))return null;var v=this.lf().length,i=this.j5().item(t),e=this.j6().item(t),o=this.j7().item(t);if(i>=v||e>=v||o>=v)return null;var b=(this.lf()[i]-this.jr().left())/this.jr().width(),k=(this.lg()[i]-this.jr().top())/this.jr().height(),d=(this.lf()[e]-this.jr().left())/this.jr().width(),g=(this.lg()[e]-this.jr().top())/this.jr().height(),nt=(this.lf()[o]-this.jr().left())/this.jr().width(),tt=(this.lg()[o]-this.jr().top())/this.jr().height(),s=Math.pow(b-u,2)+Math.pow(k-f,2),h=Math.pow(d-u,2)+Math.pow(g-f,2),c=Math.pow(nt-u,2)+Math.pow(tt-f,2);return s<h&&s<c?this.bb().item(i):h<s&&h<c?this.bb().item(e):c<s&&c<h?this.bb().item(o):this.bb().item(i)},_lf:null,lf:function(n){return arguments.length===1?(this._lf=n,n):this._lf},_lg:null,lg:function(n){return arguments.length===1?(this._lg=n,n):this._lg},lb:function(i,r){var u=this,it=u.xAxis(),rt=u.yAxis(),ut=u.j5().count(),s,ft=u.jz().asArray(),h,nt,k,d,c;s=ft.slice(0);nt=u.j0().asArray();h=nt.slice(0);var g=u.ld().asArray(),et=u.j5().asArray(),ot=u.j6().asArray(),st=u.j7().asArray();u.lf(s);u.lg(h);it.getScaledValueList(s,0,s.length,i);rt.getScaledValueList(h,0,h.length,r);k=u.colorScale();k==null&&(k=function(){var n=new t.uh;return n.palette(new t.e9(t.$a8.$type,1,function(){var n=[];return n.add(t.$a8.n(0,0,0,0)),n.add(t.$a8.n(1,0,0,0)),n}())),n.interpolationMode(2),n}());var tt=u.la().bz(i.c,k,u.ld()),ht=u.jr().top(),ct=u.jr().left(),lt=u.jr().right(),at=u.jr().bottom(),l,a,v,y;for(u.ll(),d=s.length,c=0;c<ut;c++){var p=et[c],w=ot[c],b=st[c];if(!(p>=d)&&!(w>=d)&&!(b>=d)&&!(p<0)&&!(w<0)&&!(b<0)){var vt=s[p],yt=h[p],f={__x:vt,__y:yt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},pt=s[w],wt=h[w],e={__x:pt,__y:wt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},bt=s[b],kt=h[b],o={__x:bt,__y:kt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};if(l=e.__y<o.__y?e.__y:o.__y,l=f.__y<l?f.__y:l,a=e.__y>o.__y?e.__y:o.__y,a=f.__y>a?f.__y:a,v=e.__x<o.__x?e.__x:o.__x,v=f.__x<v?f.__x:v,y=e.__x>o.__x?e.__x:o.__x,y=f.__x>y?f.__x:y,l<at&&a>ht&&v<lt&&y>ct){var dt=g[p],gt=g[w],ni=g[b];tt.p(c,u.le,f,e,o,dt,gt,ni)}}}return tt},gh:function(n,i){t.$vr.gh.call(this,n,i);var r=i;r.b4()},au:function(){return new t.vt(this)},hc:function(i){t.$vr.hc.call(this,i);this.la(n.ig.util.cast(t.$vt.$type,i))},_la:null,la:function(n){return arguments.length===1?(this._la=n,n):this._la},$type:new n.ig.Type("ScatterAreaSeries",t.$vr.$type)},!0);n.ig.util.defType("TriangleRasterizer:vu","Object",{init:function(i,r,u,f,e,o,s){if(this.k=0,this.j=0,this.a=null,this.d=null,n.ig.$op.init.call(this),i==null||r==null||e==null)throw new t.e5(0);this.c=i;this.b(r);this.e(e);this.m(o);this.l(s);this.g=u;this.f=f},c:null,k:0,m:function(n){return arguments.length===1?(this.k=n,n):this.k},j:0,l:function(n){return arguments.length===1?(this.j=n,n):this.j},g:0,i:function(n){return arguments.length===1?(this.g=n,n):this.g},f:0,h:function(n){return arguments.length===1?(this.f=n,n):this.f},a:null,b:function(n){return arguments.length===1?(this.a=n,n):this.a},d:null,e:function(n){return arguments.length===1?(this.d=n,n):this.d},p:function(n,t,i,r,u,f,e,o){var vt=this.k,b=this.j,l,a,h;r.__y>u.__y&&(l=r,r=u,u=l,a=e,e=o,o=a);i.__y>u.__y&&(l=i,i=u,u=l,a=f,f=o,o=a);i.__y>r.__y&&(l=i,i=r,r=l,a=f,f=e,e=a);var s=Math.round(i.__y),v=Math.round(r.__y),y=Math.round(u.__y);if(y!=s&&!isNaN(f)&&!isNaN(e)&&!isNaN(o)){var tt=(r.__x-i.__x)*(u.__y-i.__y)-(u.__x-i.__x)*(r.__y-i.__y)>=0,ht=Math.max(0,s),ct=Math.min(b-1,v);for(h=ht;h<ct;++h){var it=(h-s)/(v-s),rt=i.__x+it*(r.__x-i.__x),ut=f+it*(e-f),ft=(h-s)/(y-s),et=i.__x+ft*(u.__x-i.__x),ot=f+ft*(o-f);tt?this.o(n,t,h,Math.floor(et),Math.ceil(rt),ot,ut):this.o(n,t,h,Math.floor(rt),Math.ceil(et),ut,ot)}var lt=Math.min(b-1,Math.max(0,v)),at=Math.min(b-1,y),p=0,k=r.__x+p*(u.__x-r.__x),d=e+p*(o-e),c=lt,st=y-s,w=(c-s)/st,g=i.__x+w*(u.__x-i.__x),nt=f+w*(o-f);do tt?this.o(n,t,c,Math.floor(g),Math.ceil(k),nt,d):this.o(n,t,c,Math.floor(k),Math.ceil(g),d,nt),++c,p=(c-v)/(y-v),k=r.__x+p*(u.__x-r.__x),d=e+p*(o-e),w=(c-s)/st,g=i.__x+w*(u.__x-i.__x),nt=f+w*(o-f);while(c<at)}},o:function(n,t,i,r,u,f,e){for(var a,s,h=this.k,l=r>0?r:0,v=u<h-1?u:h-1,o=i*h*4+l*4,y=e-f,p=1/(u-r),w=this.d,b=this.g,k=this.f,d=i*h,c=l;c<=v;c++)a=f+y*(c-r)*p,s=this.a.getColor(a,b,k,w),this.c[o]=s.__r,this.c[o+1]=s.__g,this.c[o+2]=s.__b,this.c[o+3]=s.__a,t[d+c]=n+1,o+=4},n:function(){},$type:new n.ig.Type("TriangleRasterizer",n.ig.$ot)},!0);n.ig.util.defType("ScatterAreaSeriesView:vt","SeriesView",{_by:null,by:function(n){return arguments.length===1?(this._by=n,n):this._by},init:function(n){t.$fr.init.call(this,n);this.by(n)},b6:function(){},_b2:null,b2:function(n){return arguments.length===1?(this._b2=n,n):this._b2},_b3:null,b3:function(n){return arguments.length===1?(this._b3=n,n):this._b3},_b0:null,b0:function(n){return arguments.length===1?(this._b0=n,n):this._b0},b1:function(){var i;this.b3()==null&&(this.b3(n("<canvas><\/canvas>")),i=this.b3()[0].getContext("2d"),this.b0(new t.b7(new t.dp,i)));var f=Math.round(this.bv().left()),e=Math.round(this.bv().left()),r=Math.round(this.bv().width()),u=Math.round(this.bv().height());return this.b3().attr("width",r.toString()),this.b3().attr("height",u.toString()),this.b2(this.b0().e().getImageData(0,0,r,u)),this.b2().data},bz:function(n,i,r){var e=Math.round(this.bv().left()),o=Math.round(this.bv().left()),u=Math.round(this.bv().width()),f=Math.round(this.bv().height());return new t.vu(this.b1(),i,r.minimum(),r.maximum(),r,u,f)},b5:function(){this.b7(null)},b4:function(){this.b0()!=null&&this.b0().i(this.bv().left(),this.bv().top(),this.bv().width(),this.bv().height());this.am()},a1:function(n,i){var r;if(t.$fr.a1.call(this,n,i),this.b3()!=null)if(i)r=new t.b9,r.l(this.bv().left()),r.m(this.bv().top()),r.width(this.bv().width()),r.height(this.bv().height()),r.__fill=this.br(),n.t(r);else{var u=Math.round(this.bv().left()),f=Math.round(this.bv().left()),e=Math.round(this.bv().width()),o=Math.round(this.bv().height());n.k(this.b3()[0],1,u,f,e,o)}},b7:function(){var n=Math.round(this.bv().left()),t=Math.round(this.bv().left()),i=Math.round(this.bv().width()),r=Math.round(this.bv().height());this.b0().e().putImageData(this.b2(),0,0);this.am()},$type:new n.ig.Type("ScatterAreaSeriesView",t.$fr.$type)},!0);n.ig.util.defType("ShapeSeries:w9","ShapeSeriesBase",{init:function(){var i=this;this.la=new t.j1(t.$w9.ma,t.$w9.ma,!1);this.lb=new t.j1(t.$w9.ma,t.$w9.ma,!1);t.$v4.init.call(this);this.y(t.$w9.$type);this.k9=new t.ji(1,function(n){return i.ld().c3().item(n)},function(n){return i.lc().d().item(n)},function(r){for(var e=new t.bj(n.ig.$op.$type,0),o=i.ld().c3().c().getEnumerator(),u,f,s;o.moveNext();)u=o.current(),r.containsKey(u)||e.add(u);for(f=e.getEnumerator();f.moveNext();)s=f.current(),i.ld().c3().g(s)},function(){var e,a,v,n,f,p,o;if(i.lg==null||i.lg.length!=i.lc().d().count())for(i.lg=new Array(i.lc().d().count()),e=0;e<i.lc().d().count();e++)i.lg[e]=new t.cc(0);var s=i.lc().a().getUnscaledValue(i.la.c.left(),i.la),h=i.lc().a().getUnscaledValue(i.la.c.right(),i.la),c=i.lc().b().getUnscaledValue(i.lb.c.bottom(),i.lb),l=i.lc().b().getUnscaledValue(i.lb.c.top(),i.lb);i.lc().e()&&(a=s,s=h,h=a);i.lc().f()&&(v=c,c=l,l=v);var y=i.lc(),g=y.a(),nt=y.b(),r,u,w=i.la.c.left(),b=i.la.c.right(),k=i.lb.c.top(),d=i.lb.c.bottom();for(n=0;n<i.lc().d().count();n++)r=0,u=0,f=null,function(){var t=i.kc().tryGetValue(n,f);return f=t.value,t.ret}(),f==null?(i.lg[n].__x=NaN,i.lg[n].__y=NaN):(p=f.c(),o=p.getCenter(),r=o.__x,u=o.__y,r>=w&&r<=b&&u>=k&&u<=d?(i.lg[n].__x=r,i.lg[n].__y=u):(i.lg[n].__x=NaN,i.lg[n].__y=NaN));return i.lg},function(){var r;(i.lf==null||i.lf.length!=i.ld().c3().e())&&(i.lf=new Array(i.ld().c3().e()));for(var n=0,u=i.bb(),t=i.ld().c3().c().getEnumerator();t.moveNext();)r=t.current(),i.lf[n]=u.indexOf(r),n++;return i.lf},function(){return i.markerCollisionAvoidance()});this.k9.o(this.ld().di.runOn(this.ld()))},kb:function(){return this.lh()},hq:function(i){var r=this,u,f,e,o;(t.$v4.hq.call(r,i),r.bn(r.view()))||(function(){var n=r.getViewInfo(u,f);return u=n.viewportRect,f=n.windowRect,n.ret}(),e=r.seriesViewer().effectiveViewport(),r.la=new t.j1(f,u,r.xAxis().isInverted()),r.la.b=e,r.lb=new t.j1(f,u,r.yAxis().isInverted()),r.lb.b=e,u.width()<1||u.height()<1)||(r.lc(function(){var n=new t.xb;return n.a(r.xAxis()),n.b(r.yAxis()),n.e(r.xAxis().isInverted()),n.f(r.yAxis().isInverted()),n.d(r.bb()),n.c(r.j3()),n}()),r.lh()&&(o=new t.g0(n.ig.$op.$type,t.$jj.$type,0),r.k9.l(o,400,f,u,r.resolution()),r.k9.j(o,!1)))},lh:function(){return this.actualMarkerTemplate()!=null&&(this.markerType()!=1&&this.markerType()!=0||this.markerTemplate()!=null)},au:function(){return new t.xa(this)},hc:function(n){t.$v4.hc.call(this,n);this.ld(n)},_ld:null,ld:function(n){return arguments.length===1?(this._ld=n,n):this._ld},_lc:null,lc:function(n){return arguments.length===1?(this._lc=n,n):this._lc},k9:null,lg:null,lf:null,la:null,lb:null,hasMarkers:function(){return!0},getActualMarkerBrush:function(){return this.actualMarkerBrush()},getActualMarkerOutlineBrush:function(){return this.actualMarkerOutline()},getActualMarkerTemplate:function(){return this.actualMarkerTemplate()},shapeStyleSelector:function(n){return arguments.length===1?(this.g(t.$w9.shapeStyleSelectorProperty,n),n):this.c(t.$w9.shapeStyleSelectorProperty)},shapeStyle:function(n){return arguments.length===1?(this.g(t.$w9.shapeStyleProperty,n),n):this.c(t.$w9.shapeStyleProperty)},markerType:function(n){return arguments.length===1?(this.g(t.$w9.markerTypeProperty,n),n):this.c(t.$w9.markerTypeProperty)},markerTemplate:function(n){return arguments.length===1?(this.g(t.$w9.markerTemplateProperty,n),n):this.c(t.$w9.markerTemplateProperty)},actualMarkerTemplate:function(n){return arguments.length===1?(this.g(t.$w9.actualMarkerTemplateProperty,n),n):this.c(t.$w9.actualMarkerTemplateProperty)},markerBrush:function(n){return arguments.length===1?(this.g(t.$w9.markerBrushProperty,n),n):this.c(t.$w9.markerBrushProperty)},actualMarkerBrush:function(n){return arguments.length===1?(this.g(t.$w9.actualMarkerBrushProperty,n),n):this.c(t.$w9.actualMarkerBrushProperty)},markerOutline:function(n){return arguments.length===1?(this.g(t.$w9.markerOutlineProperty,n),n):this.c(t.$w9.markerOutlineProperty)},actualMarkerOutline:function(n){return arguments.length===1?(this.g(t.$w9.actualMarkerOutlineProperty,n),n):this.c(t.$w9.actualMarkerOutlineProperty)},markerStyle:function(n){return arguments.length===1?(this.g(t.$w9.markerStyleProperty,n),n):this.c(t.$w9.markerStyleProperty)},markerCollisionAvoidance:function(n){return arguments.length===1?(this.g(t.$w9.markerCollisionAvoidanceProperty,n),n):this.c(t.$w9.markerCollisionAvoidanceProperty)},hz:function(){if(t.$v4.hz.call(this),this.markerTemplate()!=null)this.ld().c9();else{var i=t.$h9.resolveMarkerType(this,this.markerType()),n=t.$h9.getMarkerTemplatePropertyName(i);n==null?this.actualMarkerTemplate(t.$h9.nullMarkerTemplate()):this.ld().c6(n)}this.markerBrush()!=null?this.ld().c7():this.actualMarkerBrush(this.seriesViewer()==null?null:this.seriesViewer().getMarkerBrushByIndex(this.index()));this.markerOutline()!=null?this.ld().c8():this.actualMarkerOutline(this.seriesViewer()==null?null:this.seriesViewer().getMarkerOutlineByIndex(this.index()))},hh:function(n,i,r,u){t.$v4.hh.call(this,n,i,r,u);switch(i){case"MarkerBrush":case"MarkerType":case"MarkerOutline":case"MarkerTemplate":this.hz();this.renderSeries(!1);break;case"ActualMarkerTemplate":(r==t.$h9.nullMarkerTemplate()||u==t.$h9.nullMarkerTemplate()||r==null||u!=null)&&(this.ld().db(),this.renderSeries(!1));this.renderSeries(!1);break;case"ShapeStyle":this.ld().cr(this.shapeStyle());this.renderSeries(!1);break;case"ShapeStyleSelector":this.ld().cs(this.shapeStyleSelector());this.renderSeries(!1)}},getHitDataContext:function(n){var r=this.ld().c0(n),i=null;return(r!=null&&(i=r.content()),i!=null)?i:t.$v4.getHitDataContext.call(this,n)},$type:new n.ig.Type("ShapeSeries",t.$v4.$type)},!0);n.ig.util.defType("ShapeAxisInfoCache:xb","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_e:!1,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:!1,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("ShapeAxisInfoCache",n.ig.$ot)},!0);n.ig.util.defType("FlattenedShape:v6","Object",{init:function(){n.ig.$op.init.call(this)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("FlattenedShape",n.ig.$ot)},!0);n.ig.util.defType("ShapeSeriesView:xa","ShapeSeriesViewBase",{init:function(i){this.c4=!1;this.dh=null;t.$v5.init.call(this,i);this.c2(i);this.c3(new t.id(n.ig.$op.$type,t.$ib.$type));this.c5(new t.bj(t.$ib.$type,0));this.dc(this.c3())},_c2:null,c2:function(n){return arguments.length===1?(this._c2=n,n):this._c2},cx:function(n,t){return this.cy(n,t,!0)},cg:function(n,i){t.$v5.cg.call(this,n,i);t.$v5.cf(this,n,i)},ce:function(n,t){var i=n;i!=null&&i.ak(t)},c4:!1,_c3:null,c3:function(n){return arguments.length===1?(this._c3=n,n):this._c3},da:function(n){this.c3().f(n)},dc:function(n){n.create(this.c1.runOn(this));n.destroy(this.de.runOn(this));n.activate(this.dd.runOn(this));n.disactivate(this.df.runOn(this))},c1:function(){var n=this,i=new t.ib;return n.c4||i.content(function(){var i=new t.fs;return i.series(n.d()),i}()),i.ae(n.d().actualMarkerTemplate()),n.c5().add(i),i},_c5:null,c5:function(n){return arguments.length===1?(this._c5=n,n):this._c5},de:function(n){n.content(null);this.c5().remove(n)},dd:function(n){n.__visibility=0},df:function(i){i.content()!=null&&n.ig.util.cast(t.$fs.$type,i.content()).item(null);i.__visibility=1},dg:function(n){this.c4=n},ci:function(n){t.$v5.ci.call(this,n)},bc:function(n,i){t.$v5.bc.call(this,n,i);var u=n,r=u.content();r!=null&&(this.c2().actualMarkerBrush()!=null?r.actualItemBrush(this.c2().actualMarkerBrush()):r.actualItemBrush(this.by().actualBrush()),this.c2().actualMarkerBrush()!=null?r.outline(this.c2().actualMarkerOutline()):r.outline(this.by().actualOutline()),r.thickness(.5))},bd:function(n,i){t.$v5.bd.call(this,n,i);var f=n,u=this.bs(i),r=f.content();r!=null&&(r.actualItemBrush(u),r.outline(u),r.thickness(4))},a0:function(n,i){var e,r,f,s,h,o,u,c;t.$v5.a0.call(this,n,i);e=new t.ci;e.isHitTestRender=i;e.context=n.e();e.viewportTop=this.bv().top();e.viewportLeft=this.bv().left();e.viewportWidth=this.bv().width();e.viewportHeight=this.bv().height();e.passID="Markers";r=new t.ch;r.passInfo=e;r.isHitTestRender=i;f=new t.cn;f.passInfo=e;s=!1;h=n.e();f.context=h;r.context=h;var l=0,a=0,v=!0;for(this.c2().actualMarkerTemplate()!=null&&this.c2().actualMarkerTemplate().passStarting()!=null&&this.c2().actualMarkerTemplate().passStarting()(e),o=0;o<this.c5().count();o++)(u=this.c5().__inner[o],u.__visibility!=1)&&(this.bb(u,o,i),s?(r.availableWidth=l,r.availableHeight=a):(f.width=u.width(),f.height=u.height(),f.renderOffsetX=0,f.renderOffsetY=0,f.renderContext=n,c=u.ae(),c.measure()!=null&&(f.data=u.content(),c.measure()(f),s=f.isConstant,s&&(l=f.width,a=f.height)),r.availableWidth=f.width,r.availableHeight=f.height,r.renderOffsetX=f.renderOffsetX,r.renderOffsetY=f.renderOffsetY,r.renderContext=n),isNaN(u.width())||Number.isInfinity(u.width())||(r.availableWidth=u.width()),isNaN(u.height())||Number.isInfinity(u.height())||(r.availableHeight=u.height()),v=!1,n.n(r,u),u.k(r.availableWidth),u.j(r.availableHeight),u.af=r.renderOffsetX,u.ag=r.renderOffsetY);this.c2().actualMarkerTemplate()!=null&&this.c2().actualMarkerTemplate().passCompleted()!=null&&this.c2().actualMarkerTemplate().passCompleted()(e)},c9:function(){this.c2().actualMarkerTemplate(null);this.c2().actualMarkerTemplate(this.c2().markerTemplate())},c7:function(){this.c2().actualMarkerBrush(null);this.c2().actualMarkerBrush(this.c2().markerBrush())},c8:function(){this.c2().actualMarkerOutline(null);this.c2().actualMarkerOutline(this.c2().markerOutline())},c6:function(n){switch(n){case"CircleMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().circleMarkerTemplate());break;case"TriangleMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().triangleMarkerTemplate());break;case"PyramidMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().pyramidMarkerTemplate());break;case"SquareMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().squareMarkerTemplate());break;case"DiamondMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().diamondMarkerTemplate());break;case"PentagonMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().pentagonMarkerTemplate());break;case"HexagonMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().hexagonMarkerTemplate());break;case"TetragramMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().pentagonMarkerTemplate());break;case"PentagramMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().pentagramMarkerTemplate());break;case"HexagramMarkerTemplate":this.c2().actualMarkerTemplate(this.c2().seriesViewer().hexagramMarkerTemplate())}},db:function(){for(var n=this.c5().getEnumerator(),t;n.moveNext();)t=n.current(),t.ae(this.c2().actualMarkerTemplate());this.am()},dh:null,di:function(n){this.dh==null&&(this.dh=new t.cn,this.dh.context=this.g().e());this.dh.width=n.width();this.dh.height=n.height();this.dh.data=n.content();var i=n.ae();return i.measure()!=null&&i.measure()(this.dh),new t.cb(this.dh.width,this.dh.height)},c0:function(n){for(var t,i,r,u,f,e=this.c5().count()-1;e>=0;e--)if((t=this.c5().__inner[e],t.__visibility!=1&&t.__opacity!=0)&&(i=t.k()/2+3,r=t.j()/2+3,u=t.af,f=t.ag,t.l()+u-i<=n.__x&&t.l()+u+i>=n.__x&&t.m()+f-r<=n.__y&&t.m()+f+r>=n.__y))return t;return null},$type:new n.ig.Type("ShapeSeriesView",t.$v5.$type)},!0);n.ig.util.defType("ShapeHitRegion:v7","Object",{init:function(){n.ig.$op.init.call(this)},d:null,a:null,b:0,c:null,$type:new n.ig.Type("ShapeHitRegion",n.ig.$ot)},!0);n.ig.util.defType("TileSeries:xh","ShapeSeriesBase",{init:function(){t.$v4.init.call(this);this.lc=null;this.ld=!1},au:function(){return new t.xi(this)},hc:function(n){t.$v4.hc.call(this,n);this.k7(n)},ka:function(){return!1},_k7:null,k7:function(n){return arguments.length===1?(this._k7=n,n):this._k7},tileImagery:function(n){var t,i;return arguments.length===1?(t=n!=this.tileImagery(),t&&(i=this.tileImagery(),this.k9=n,this.raisePropertyChanged("TileImagery",i,n)),n):this.k9},k9:null,k8:null,la:function(n){if(arguments.length===1){var t=this.k8;return this.k8=n,this.raisePropertyChanged("ActualTileImagery",t,this.k8),n}return this.k8},hh:function(i,r,u,f){t.$v4.hh.call(this,i,r,u,f);var o,e;switch(r){case"TileImagery":o=u;e=f;o!=null&&(o.propertyChanged=n.ig.Delegate.prototype.remove(o.propertyChanged,this.lg.runOn(this)));e!=null&&(e.propertyChanged=n.ig.Delegate.prototype.combine(e.propertyChanged,this.lg.runOn(this)));this.k7().c7(o,e);this.renderSeries(!1);break;case"ActualTileImagery":o=u;e=f;o!=null&&(o.imageTilesReady=n.ig.Delegate.prototype.remove(o.imageTilesReady,this.lh.runOn(this)),o.deferralHandler(null));e!=null&&(e.imageTilesReady=n.ig.Delegate.prototype.combine(e.imageTilesReady,this.lh.runOn(this)),e.deferralHandler(this));this.k7().c6(o,e);e!=null&&n.ig.util.cast(t.$uz.$type,this.seriesViewer())!==null&&(e.geographicMap(this.seriesViewer()),this.li(),this.k7().c3(this.seriesViewer().actualWindowRect()));break;case"ActualWindowRect":this.k7().c3(f);break;case"WorldRect":this.k7().da(f)}},lg:function(n,t){t.propertyName()=="MultiScaleImage"&&this.li()},imageTilesReady:null,lh:function(){this.imageTilesReady!=null&&this.imageTilesReady(this,new t.er);this.ld||this.k7().c8()},lc:null,register:function(n,t){this.lc=t},unRegister:function(){this.lc=null},deferredRefresh:function(){this.renderSeries(!1)},h2:function(n,i){this.k7().c9();t.$v4.h2.call(this,n,i)},ld:!1,hq:function(n){var i=this,r,u;(function(){var n=i.view().getViewInfo(r,u);return r=n.viewportRect,u=n.windowRect,n.ret})();i.li();t.$v4.hq.call(i,n);i.lc!=null&&(i.ld=!0,i.lc(n),i.ld=!1);i.k7().c8()},li:function(){var n=this,t,i;(function(){var r=n.view().getViewInfo(t,i);return t=r.viewportRect,i=r.windowRect,r.ret})();n.tileImagery()!=null&&n.tileImagery().aj()!=null&&(n.tileImagery()!=n.la()&&n.la(n.tileImagery()),n.la()==null||t.isEmpty()||(n.la().width()!=t.width()&&n.la().width(t.width()),n.la().height()!=t.height()&&n.la().height(t.height())))},gh:function(n,i){t.$v4.gh.call(this,n,i);i.c4()},$type:new n.ig.Type("TileSeries",t.$v4.$type,[t.$uw.$type])},!0);n.ig.util.defType("TileSeriesView:xi","ShapeSeriesViewBase",{init:function(n){this.db=new t.dy;t.$v5.init.call(this,n);this.c0(n)},_c0:null,c0:function(n){return arguments.length===1?(this._c0=n,n):this._c0},ce:function(n,t){t.b().count()>0&&this.db.c().add(t)},cx:function(n,t){return this.cy(n,t,!0)},cw:function(){return null},ci:function(){},cg:function(){},db:null,cn:function(){t.$v5.cn.call(this);this.db.c().clear()},cm:function(){t.$v5.cm.call(this);this.am()},c3:function(n){this.c0().tileImagery()!=null&&this.c0().tileImagery().windowRect(n)},_c2:null,c2:function(n){return arguments.length===1?(this._c2=n,n):this._c2},_c1:null,c1:function(n){return arguments.length===1?(this._c1=n,n):this._c1},c6:function(i,r){if(this.c2()==null){this.c2(n("<canvas><\/canvas>"));var u=this.c2()[0].getContext("2d");this.c1(new t.b7(new t.dp,u));this.c2().attr("width",this.bv().width().toString());this.c2().attr("height",this.bv().height().toString())}i!=null&&(i.az(null),i.imagesChanged=n.ig.Delegate.prototype.remove(i.imagesChanged,this.c5.runOn(this)));r!=null&&(r.az(this.c1()),r.a0(this.bv()),r.imagesChanged=n.ig.Delegate.prototype.combine(r.imagesChanged,this.c5.runOn(this)))},c5:function(){this.c0().renderSeries(!1)},c7:function(){},c9:function(){this.c2()!=null&&(this.c2().attr("width",this.bv().width().toString()),this.c2().attr("height",this.bv().height().toString()));this.c0().tileImagery()!=null&&this.c0().tileImagery().a0(this.bv())},a1:function(n,i){if((t.$v5.a1.call(this,n,i),!i)&&this.c2()!=null){var r=Math.round(this.bv().left()),u=Math.round(this.bv().top()),f=Math.round(this.bv().width()),e=Math.round(this.bv().height());this.g().l(this.c2()[0],1,r,u,f,e,r,u,f,e)}},c8:function(){this.am()},c4:function(){},da:function(){this.c0().tileImagery()!=null&&this.c0().tileImagery().at()},$type:new n.ig.Type("TileSeriesView",t.$v5.$type)},!0);n.ig.util.defType("ShapefileRecord:xl","DependencyObject",{init:function(){t.$e.init.call(this)},fields:null,points:null,j:function(n){this.propertyChanged!=null&&this.propertyChanged(this,new t.a2(n))},propertyChanged:null,$type:new n.ig.Type("ShapefileRecord",t.$e.$type,[t.$a0.$type])},!0);n.ig.util.defType("ShapefileConverter:xj","DependencyObjectNotifier",{init:function(){var i=this;t.$xk.init.call(this);this.records(new t.e9(t.$xl.$type,0));this.records().collectionChanged=n.ig.Delegate.prototype.combine(this.records().collectionChanged,function(n,t){i.collectionChanged!=null&&i.collectionChanged(i,t)})},worldRect:function(n){if(arguments.length===1){if(this.w!=n){var t=this.w;this.w=n;this.t("WorldRect",t,this.w)}return n}return this.w},w:null,shapefileSource:function(i){return arguments.length===1?(this.g(t.$xj.shapefileSourceProperty,i),i):n.ig.util.cast(t.$uv.$type,this.c(t.$xj.shapefileSourceProperty))},databaseSource:function(i){return arguments.length===1?(this.g(t.$xj.databaseSourceProperty,i),i):n.ig.util.cast(t.$uv.$type,this.c(t.$xj.databaseSourceProperty))},t:function(n){switch(n){case"ShapefileSource":case"DatabaseSource":this.shapefileSource()!=null&&this.databaseSource()!=null&&this.q()}this.h(n)},importCompleted:null,r:function(n){this.importCompleted!=null&&this.importCompleted(this,n)},q:function(){var n=this,i=null,r=null,u=function(){i!=null&&r!=null&&(n.s(i,r),n.r(new t.vl(null,!1,null)))};t.$vj.a(n.shapefileSource().value(),function(n){i=new t.vi(n,!1);u()},function(n){throw new t.e5(1,"shape file download error: "+n);});t.$vj.a(n.databaseSource().value(),function(n){r=new t.vi(n,!1);u()},function(n){throw new t.e5(1,"dbf file download error: "+n);})},s:function(n,i){var o=t.$xm.a(n,i),u,f,e,r;for(this.worldRect(o.e()),u=n.currentPosition(),f=n.length();u<f;)e=t.$xm.e(o,n,i),r=e,r.fields!=null&&(r.fieldValues=r.fields.__inner.proxy),this.records().add(e),u=n.currentPosition(),f=n.length()},i:null,records:function(n){return arguments.length===1?(this.i=n,n):this.i},collectionChanged:null,indexOf:function(n){return this.i.indexOf(n)},insert:function(n,t){this.i.insert(n,t)},removeAt:function(n){this.i.removeAt(n)},item:function(n,t){return arguments.length===2?(this.i.__inner[n]=t,t):this.i.__inner[n]},add:function(n){this.i.add(n)},clear:function(){this.i.clear()},contains:function(n){return this.i.contains(n)},copyTo:function(n,t){this.i.copyTo(n,t)},count:function(){return this.i.count()},isReadOnly:function(){return this.i.isReadOnly()},remove:function(n){return this.i.remove(n)},getEnumerator:function(){return this.i.getEnumerator()},$type:new n.ig.Type("ShapefileConverter",t.$xk.$type,[t.$bk.$type.specialize(t.$xl.$type),t.$fa.$type])},!0);n.ig.util.defType("ShapeFileUtil:xm","Object",{a:function(n,i){var f,s,r,e,h,c,o,u,l;if(t.$xm.j==null&&t.$xm.l(),f=new t.xn,s=t.$xm.k(n.readInt32()),s!=9994)throw new t.e5(1,"Corrupt Shp file - incorrect file code");if(n.readInt32(),n.readInt32(),n.readInt32(),n.readInt32(),n.readInt32(),t.$xm.k(n.readInt32()),n.readInt32(),f.a(n.readInt32()),r=new t.cc(0),e=new t.cc(0),r.__x=n.readDouble(),r.__y=n.readDouble(),e.__x=n.readDouble(),e.__y=n.readDouble(),n.readDouble(),n.readDouble(),n.readDouble(),n.readDouble(),f.e(new t.ca(0,r.__x,r.__y,e.__x-r.__x,e.__y-r.__y)),i!=null){if(h=i.readByte(),h!=3)throw new t.e5(1,"Corrupt Dbf file - wrong version number");for(i.readByte(),i.readByte(),i.readByte(),i.readUInt32(),i.readUInt16(),c=i.readUInt16(),i.readBytes(2),i.readBytes(1),i.readBytes(1),i.readBytes(4),i.readBytes(8),i.readBytes(1),i.readBytes(1),i.readBytes(2),o=0;o<c-1;)u=new t.xp,u.c=t.$xr.uTF8().getString(i.readBytes(11),0,10).replace("\0",""),l=t.$xr.uTF8().getString(i.readBytes(1),0,1).charAt(0),u.a=t.$xm.j.item(l),i.readBytes(4),u.b=i.readByte(),i.readBytes(15),f.b.add(u),o+=u.b;if(i.readByte()!=13)throw new t.e5(1,"Corrup Dbf file - Missing field descriptor array terminator");}return f},e:function(i,r,u){var p=t.$xm.k(r.readInt32()),w=t.$xm.k(r.readInt32()),l=r.readInt32(),f=null,s,h,c,a,v;switch(l){case 1:f=t.$xm.i(r);break;case 3:f=t.$xm.b(r);break;case 5:f=t.$xm.f(r);break;case 13:f=t.$xm.d(r);break;case 15:f=t.$xm.h(r)}if(f==null)throw new t.e5(1,"Corrupt Shp file - failed to read "+l.toString());if(u!=null)for(u.readBytes(1),f.fields=new t.g0(String,n.ig.$op.$type,0),s=i.b.getEnumerator();s.moveNext();){var e=s.current(),y=u.readBytes(e.b),o=t.$xr.uTF8().getString(y,0,e.b);switch(e.a){case 1:h=parseFloat(o);isNaN(h)||f.fields.add(e.c,h);break;case 5:c=parseFloat(o);isNaN(c)||f.fields.add(e.c,c);break;case 0:f.fields.add(e.c,o.trim());break;case 3:a=o;v=Date.parse(a);f.fields.add(e.c,v);break;default:throw new t.e5(1,"Unrecognized field type");}}return f},k:function(n){return(n&255)<<24|(n&65280)<<8|(n&16711680)>>8|(n&4278190080)>>24},i:function(n){var r=this,i=function(){var i=new t.cc(0);return i.x(n.readDouble()),i.y(n.readDouble()),i}();return function(){var n=new t.xl;return n.points=new t.bj(t.$bj.$type.specialize(t.$cc.$type),1,function(){var n=[];return n.add(new t.bj(t.$cc.$type,1,function(){var n=[];return n.add(i),n}())),n}()),n}()},d:function(n){var o=this,f,i,e=function(){var r=t.$xm.c(n,f,i);return f=r.numParts,i=r.numPoints,r.ret}(),r,u;for(n.readDouble(),n.readDouble(),r=0;r<i;r++)n.readDouble();for(n.readDouble(),n.readDouble(),u=0;u<i;u++)n.readDouble();return e},c:function(n,i,r){var y=this,f=new t.cc(0),e=function(){var i=new t.cc(0);return i.x(n.readDouble()),i.y(n.readDouble()),i}(),v=function(){var i=new t.cc(0);return i.x(n.readDouble()),i.y(n.readDouble()),i}(),p=new t.ca(0,e.__x,e.__y,v.__x-e.__x,v.__y-e.__y),o,s,c,u,l,h,a;for(i=n.readInt32(),r=n.readInt32(),o=new Array(i),s=0;s<i;++s)o[s]=n.readInt32();for(c=new t.bj(t.$bj.$type.specialize(t.$cc.$type),0),u=0;u<i;++u){for(l=(u<i-1?o[u+1]:r)-o[u],h=new t.bj(t.$cc.$type,2,l-1),a=0;a<l;++a)f=new t.cc(0),f.__x=n.readDouble(),f.__y=n.readDouble(),h.add(f);h.count()>0&&c.add(h)}return{ret:function(){var n=new t.xl;return n.points=c,n}(),numParts:i,numPoints:r}},b:function(n){var u=this,i,r;return function(){var u=t.$xm.c(n,i,r);return i=u.numParts,r=u.numPoints,u.ret}()},h:function(n){var o=this,f,i,e=function(){var r=t.$xm.g(n,f,i);return f=r.numParts,i=r.numPoints,r.ret}(),r,u;for(n.readDouble(),n.readDouble(),r=0;r<i;r++)n.readDouble();for(n.readDouble(),n.readDouble(),u=0;u<i;u++)n.readDouble();return e},f:function(n){var u=this,i,r;return function(){var u=t.$xm.g(n,i,r);return i=u.numParts,r=u.numPoints,u.ret}()},g:function(n,i,r){var y=this,e=function(){var i=new t.cc(0);return i.x(n.readDouble()),i.y(n.readDouble()),i}(),v=function(){var i=new t.cc(0);return i.x(n.readDouble()),i.y(n.readDouble()),i}(),p=new t.ca(0,e.__x,e.__y,v.__x-e.__x,v.__y-e.__y),u=new t.cc(0),o,s,c,f,l,h,a;for(i=n.readInt32(),r=n.readInt32(),o=new Array(i),s=0;s<i;++s)o[s]=n.readInt32();for(c=new t.bj(t.$bj.$type.specialize(t.$cc.$type),0),f=0;f<i;++f){for(l=(f<i-1?o[f+1]:r)-o[f],h=new t.bj(t.$cc.$type,2,l),u=new t.cc(0),u.__x=n.readDouble(),u.__y=n.readDouble(),a=1;a<l;++a)u=new t.cc(0),u.__x=n.readDouble(),u.__y=n.readDouble(),h.add(u);h.count()>1&&c.add(h)}return{ret:function(){var n=new t.xl;return n.points=c,n}(),numParts:i,numPoints:r}},l:function(){t.$xm.j=new t.g0(t.$q.$type,t.$xq.$type,0);t.$xm.j.item("C",0);t.$xm.j.item("N",1);t.$xm.j.item("L",2);t.$xm.j.item("D",3);t.$xm.j.item("M",4);t.$xm.j.item("F",5);t.$xm.j.item("B",6);t.$xm.j.item("G",7);t.$xm.j.item("P",8);t.$xm.j.item("Y",9);t.$xm.j.item("T",10);t.$xm.j.item("I",11);t.$xm.j.item("V",12);t.$xm.j.item("X",13);t.$xm.j.item("@",14);t.$xm.j.item("O",15);t.$xm.j.item("+",16)},staticInit:function(){t.$xm.l()},$type:new n.ig.Type("ShapeFileUtil",n.ig.$ot)},!0);n.ig.util.defType("Header:xn","Object",{init:function(){n.ig.$op.init.call(this);this.b=new t.bj(t.$xp.$type,0)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},d:function(){return{__x:this.e().left(),__y:this.e().top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},c:function(){return{__x:this.e().right(),__y:this.e().bottom(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},b:null,$type:new n.ig.Type("Header",n.ig.$ot)},!0);n.ig.util.defType("XBaseField:xp","Object",{init:function(){n.ig.$op.init.call(this)},c:null,a:null,b:null,$type:new n.ig.Type("XBaseField",n.ig.$ot)},!0);n.ig.util.defType("StyleSelector:v8","Object",{init:function(){n.ig.$op.init.call(this)},selectStyle:function(){return null},$type:new n.ig.Type("StyleSelector",n.ig.$ot)},!0);n.ig.util.defType("ItfConverter:u4","DependencyObject",{init:function(){t.$e.init.call(this)},source:function(i){return arguments.length===1?(this.g(t.$u4.sourceProperty,i),i):n.ig.util.cast(t.$uv.$type,this.c(t.$u4.sourceProperty))},h:null,triangulationSource:function(n){var t,i;return arguments.length===1?(t=n!=this.triangulationSource(),t&&(i=this.h,this.h=n,this.p("TriangulationSource",i,this.triangulationSource())),n):this.h},n:function(){var n=this,i=null,r=function(){i!=null&&n.triangulationSource(t.$u5.loadItf(i));n.o(new t.vl(null,!1,null))};t.$vj.a(n.source().value(),function(n){i=new t.vi(n,!1);r()},function(n){throw new t.e5(1,"itf file download error: "+n);})},importCompleted:null,o:function(n){this.importCompleted!=null&&this.importCompleted(this,n)},q:function(n){switch(n){case"Source":this.source()!=null&&this.n()}},p:function(n,i,r){this.propertyChanged!=null&&this.propertyChanged(this,new t.a2(n));this.q(n,i,r)},propertyChanged:null,$type:new n.ig.Type("ItfConverter",t.$e.$type,[t.$a0.$type])},!0);n.ig.util.defType("Triangle:vf","Object",{init:function(){n.ig.$op.init.call(this)},v1:0,v2:0,v3:0,$type:new n.ig.Type("Triangle",n.ig.$ot)},!0);n.ig.util.defType("TriangulationSource:u5","Object",{init:function(){n.ig.$op.init.call(this)},create:function(n,i,r){for(var c,e=new t.u5,l=new Array(n),f,o,a=new Array(n),v=new Array(n),s=0,h=0,u=0;u<n;u++)f=new t.u6,o=i(u),s=o.__x,h=o.__y,f.pointX=s,f.pointY=h,f.value=r(u),l[u]=f,a[u]=s,v[u]=h;return e.points(l),c=new t.u7(n,a,v),c.v(),e.triangles(c.l().asArrayList()),e},loadItf:function(n){var u,o,i,f,s,r,e;n.readBytes(5);var h=n.readInt32(),c=n.readInt32(),a=n.readInt32(),l=n.readInt32();for(n.readBytes(l),u=new t.u5,o=new Array(h),f=0;f<h;f++)i=new t.u6,i.pointX=n.readDouble(),i.pointY=n.readDouble(),i.value=n.readSingle(),o[f]=i;for(u.points(o),s=new Array(c),e=0;e<c;e++)r=new t.vf,r.v1=n.readInt32(),r.v2=n.readInt32(),r.v3=n.readInt32(),s[e]=r;return u.triangles(s),u},_points:null,points:function(n){return arguments.length===1?(this._points=n,n):this._points},_triangles:null,triangles:function(n){return arguments.length===1?(this._triangles=n,n):this._triangles},$type:new n.ig.Type("TriangulationSource",n.ig.$ot)},!0);n.ig.util.defType("TriangulatorContext:u8","Object",{init:function(){n.ig.$op.init.call(this)},j:0,d:null,e:null,h:null,n:null,o:null,p:null,g:null,f:null,i:null,a:null,b:null,m:0,l:0,k:0,c:!1,$type:new n.ig.Type("TriangulatorContext",n.ig.$ot)},!0);n.ig.util.defType("Triangulator:u7","DependencyObject",{m:0,j:null,k:null,init:function(n,i,r){this.n=0;t.$e.init.call(this);this.m=n;this.j=i;this.k=r},w:function(){this.t();this.i().c=!0;this.s()},v:function(){this.t();this.i().c=!1;this.s()},t:function(){var o=this,r=o.m,f=o.j,e=o.k,g=new t.bj(t.$vf.$type,0),u,l,w,h,i,p;if(r>=3){for(u=function(){var i=new t.bj(n.ig.Number.prototype.$type,0);return i.capacity(r),i}(),l=0;l<r;++l)u.add(l);w=function(n,t){return f.item(n)<f.item(t)?-1:f.item(n)>f.item(t)?1:e.item(n)<e.item(t)?-1:e.item(n)>e.item(t)?1:0};u.sort1(w);var b=f.item(u.__inner[0]),k=f.item(u.__inner[r-1]),s=e.item(u.__inner[0]),a=s;for(h=1;h<r;h++)s=Math.min(s,e.item(u.__inner[h])),a=Math.max(a,f.item(u.__inner[h]));var nt=k-b,tt=a-s,c=Math.max(nt,tt),v=(k+b)/2,y=(a+s)/2,it={__x:v-20*c,__y:y-c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},rt={__x:v,__y:y+20*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ut={__x:v+20*c,__y:y-c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},d=new t.u9(t.$vf.$type),ft=new t.u9(t.$vf.$type),et=new t.vb,ot=new t.ve;d.e(function(){var n=new t.vf;return n.v1=r,n.v2=r+1,n.v3=r+2,n}());i=new t.u8;i.j=r;i.n=it;i.o=rt;i.p=ut;i.f=ft;i.a=et;i.i=u;i.b=ot;i.h=g;i.g=d;i.d=f;i.e=e;p=1;r>3e3&&(p=20);i.m=Math.ceil(r/p);i.l=0;i.k=i.m;o.n=0;o.r();o.i(i)}},r:function(){this.q()},q:function(){this.triangulationStatusChanged!=null&&this.triangulationStatusChanged(this,new t.vh(this.n))},l:function(){return this.i()==null?null:this.i().h},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},u:function(){var n=this,o,at,p,f,vt,yt,ut,ft,et;if(n.i()!=null){var ht=n.i(),i=n.i().j,ot=n.i().d,st=n.i().e,u=n.i().i,s=n.i().n,h=n.i().o,c=n.i().p,pt=n.i().h,w=n.i().g,wt=n.i().f,ct=n.i().b,e=n.i().a,lt=n.i().l,y=n.i().k,b,k,l,d,g,a,nt,tt,v,it,rt,r;for(o=lt;o<y;++o){for(e.clear(),o<i?(b=ot.item(u.__inner[o]),k=st.item(u.__inner[o])):o==i?(b=s.__x,k=s.__y):o==i+1?(b=h.__x,k=h.__y):(b=c.__x,k=c.__y),at=null,p=w.c();p!=null;p=at)at=p.a,r=p.c(),l=r.v1,a=r.v2,v=r.v3,l<i?(d=ot.item(u.__inner[l]),g=st.item(u.__inner[l])):l==i?(d=s.__x,g=s.__y):l==i+1?(d=h.__x,g=h.__y):(d=c.__x,g=c.__y),a<i?(nt=ot.item(u.__inner[a]),tt=st.item(u.__inner[a])):a==i?(nt=s.__x,tt=s.__y):a==i+1?(nt=h.__x,tt=h.__y):(nt=c.__x,tt=c.__y),v<i?(it=ot.item(u.__inner[v]),rt=st.item(u.__inner[v])):v==i?(it=s.__x,rt=s.__y):v==i+1?(it=h.__x,rt=h.__y):(it=c.__x,rt=c.__y),ct.c(b,k,d,g,nt,tt,it,rt),ct.a&&(wt.f(r),w.g(p)),ct.b&&(f=new t.vd(l,a),e.contains(f)?e.remove(f):e.add(f),f=new t.vd(a,v),e.contains(f)?e.remove(f):e.add(f),f=new t.vd(v,l),e.contains(f)?e.remove(f):e.add(f),w.g(p));for(vt=e.getEnumerator();vt.moveNext();)yt=vt.current(),ut=new t.vf,ut.v1=yt.a(),ut.v2=yt.b(),ut.v3=o,w.f(ut)}if(y==i){for(ft=wt.c();ft!=null;ft=ft.a)r=ft.c(),r.v1<i&&r.v2<i&&r.v3<i&&pt.add(function(){var n=new t.vf;return n.v1=u.__inner[r.v1],n.v2=u.__inner[r.v2],n.v3=u.__inner[r.v3],n}());for(et=w.c();et!=null;et=et.a)r=et.c(),r.v1<i&&r.v2<i&&r.v3<i&&pt.add(function(){var n=new t.vf;return n.v1=u.__inner[r.v1],n.v2=u.__inner[r.v2],n.v3=u.__inner[r.v3],n}());n.n=100;n.r()}else lt=y,y+=ht.m,y>i&&(y=i),ht.l=lt,ht.k=y,n.n+=Math.floor(5),n.r(),n.s()}},p:function(){this.i(null)},s:function(){this.i().c?window.setTimeout(this.u.runOn(this),0):this.u()},n:0,o:function(){return this.n},triangulationStatusChanged:null,$type:new n.ig.Type("Triangulator",t.$e.$type)},!0);n.ig.util.defType("TriangulationStatusEventArgs:vh","EventArgs",{_currentStatus:0,currentStatus:function(n){return arguments.length===1?(this._currentStatus=n,n):this._currentStatus},init:function(n){t.$er.init.call(this);this.currentStatus(n)},$type:new n.ig.Type("TriangulationStatusEventArgs",t.$er.$type)},!0);n.ig.util.defType("HalfEdge:vd","Object",{init:function(t,i){n.ig.$op.init.call(this);this.a(t);this.b(i)},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("HalfEdge",n.ig.$ot)},!0);n.ig.util.defType("HalfEdgeSet:vb","Object",{init:function(){n.ig.$op.init.call(this);this.b=new t.g0(t.$vd.$type,n.ig.$op.$type,2,new t.vc)},getEnumerator:function(){return this.b.keys().getEnumerator()},add:function(n){this.b.add(n,null)},remove:function(n){this.b.remove(n)},clear:function(){this.b.clear()},count:function(){return this.b.count()},contains:function(n){return this.b.containsKey(n)},b:null,$type:new n.ig.Type("HalfEdgeSet",n.ig.$ot,[t.$bm.$type.specialize(t.$vd.$type)])},!0);n.ig.util.defType("EdgeComparer:vc","Object",{init:function(){n.ig.$op.init.call(this)},equals:function(n,t){return n.a()==t.a()&&n.b()==t.b()||n.a()==t.b()&&n.b()==t.a()},getHashCode1:function(n){return 65536*Math.max(n.a(),n.b())+Math.min(n.a(),n.b())},$type:new n.ig.Type("EdgeComparer",n.ig.$ot,[t.$g3.$type.specialize(t.$vd.$type)])},!0);n.ig.util.defType("PointTester:ve","Object",{init:function(){n.ig.$op.init.call(this)},c:function(n,t,i,r,u,f,e,o){var h=Math.abs(r-f),c=Math.abs(f-o),s=0,l=0,nt;if(h==0&&c==0)return!1;if(h==0&&c!=0&&(s=(u+i)/2,l=-(e-u)/(o-f)*(s-(u+e)/2)+(f+o)/2),h!=0&&c==0&&(s=(e+u)/2,l=-(u-i)/(f-r)*(s-(i+u)/2)+(r+f)/2),h!=0&&c!=0){var y=-(u-i)/(f-r),p=-(e-u)/(o-f),w=(i+u)/2,b=(u+e)/2,k=(r+f)/2,d=(f+o)/2;s=(y*w-p*b+d-k)/(y-p);l=h>c?y*(s-w)+k:p*(s-b)+d}var a=u-s,v=f-l,g=a*a+v*v;return a=n-s,v=t-l,nt=a*a+v*v,this.b=nt<=g,this.a=s<n&&(n-s)*(n-s)>g,!0},a:!1,b:!1,$type:new n.ig.Type("PointTester",n.ig.$ot)},!0);n.ig.util.defType("TriangulationSourcePointRecord:u6","Object",{init:function(){n.ig.$op.init.call(this)},pointX:0,pointY:0,value:0,$type:new n.ig.Type("TriangulationSourcePointRecord",n.ig.$ot)},!0);n.ig.util.defType("XamGeographicMap:uz","SeriesViewer",{init:function(){var u=this,i,r;this.mb={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};this.l6=1;this.m4=t.$ca.empty();t.$b2.init.call(this);this.l7=t.$ue.aj(t.$uz.m3.bottom())-t.$ue.aj(t.$uz.m3.top());this.y(t.$uz.$type);this.backgroundContent(new t.u1);i=function(){var n=new t.jq;return n.seriesViewer(u),n}();i.isDisabled(!0);this.xAxis(i);this.xAxis().scaler(new t.a);r=function(){var n=new t.jz;return n.seriesViewer(u),n}();r.isDisabled(!0);this.yAxis(r);this.yAxis().scaler(new t.ue);this.mo();this.mv()},isZoomingHorizontallyEnabled:function(){return this.zoomable()},isZoomingVerticallyEnabled:function(){return this.zoomable()},zoomable:function(n){return arguments.length===1?(this.g(t.$uz.zoomableProperty,n),n):this.c(t.$uz.zoomableProperty)},l7:0,worldRect:function(n){return arguments.length===1?(this.g(t.$uz.worldRectProperty,n),n):this.c(t.$uz.worldRectProperty)},m2:null,actualWorldRect:function(n){var t,i;return arguments.length===1?(t=this.m2!=n,t&&(i=this.m2,this.m2=n,this.h8("ActualWorldRect",i,n)),n):this.m2},mo:function(){this.worldRect().isEmpty()||this.actualWorldRect(this.nc(this.worldRect()))},nc:function(n){var u=n.top(),f=n.left(),o=n.width(),s=n.height(),h=t.$ue.aj(n.bottom()),c=t.$ue.aj(n.top()),i=h-c,r=n.width()/t.$uz.m3.width(),w=i/r,e,l;if(i/r>this.l7)e=i/this.l7,l=e-r,f=f-l/2*t.$uz.m3.width(),o=e*t.$uz.m3.width();else if(i/r<this.l7){var v=this.l7*r,a=v-i,y=c-a/2,p=h+a/2;u=t.$ue.an(y);s=t.$ue.an(p)-u}return new t.ca(0,f,u,o,s)},backgroundContent:function(n){var t,i;return arguments.length===1?(t=n!=this.backgroundContent(),t&&(i=this.backgroundContent(),this.nf=n,this.h8("BackgroundContent",i,n)),n):this.nf},nf:null,xAxis:function(n){var t,i;return arguments.length===1?(t=n!=this.xAxis(),t&&(i=this.xAxis(),this.lx=n,this.h8("XAxis",i,n)),n):this.lx},lx:null,yAxis:function(n){var t,i;return arguments.length===1?(t=n!=this.yAxis(),t&&(i=this.yAxis(),this.lz=n,this.h8("YAxis",i,n)),n):this.lz},lz:null,_l2:null,l2:function(n){return arguments.length===1?(this._l2=n,n):this._l2},getZoomFromGeographic1:function(n){var i=this.nc(n),s=this.xAxis(),h=this.yAxis(),f=new t.j1(t.$uz.m6,this.viewportRect(),s.isInverted()),r;f.b=this.effectiveViewport();r=new t.j1(t.$uz.m6,this.viewportRect(),h.isInverted());r.b=this.effectiveViewport();var e=this.xAxis().getScaledValue(i.left(),f),c=this.xAxis().getScaledValue(i.right(),f),l=this.yAxis().getScaledValue(i.top(),r),o=this.yAxis().getScaledValue(i.bottom(),r),a=e/this.viewportRect().width(),v=o/this.viewportRect().height(),y=(c-e)/this.viewportRect().width(),p=(l-o)/this.viewportRect().height(),u=new t.ca(0,a,v,y,p);return u.intersect(t.$uz.m6),u.isEmpty()&&(u=t.$uz.m6),u},getZoomFromGeographic:function(n,i){var e=n.__x,o=i.__y,r=i.__x-n.__x,u=n.__y-i.__y,f;return r<0||u<0?t.$uz.m6:(f=new t.ca(0,e,o,r,u),this.getZoomFromGeographic1(f))},getGeographicFromZoom:function(n){var u=this.xAxis(),f=this.yAxis(),e=new t.j1(n,this.viewportRect(),u.isInverted()),i;e.b=this.effectiveViewport();i=new t.j1(n,this.viewportRect(),f.isInverted());i.b=this.effectiveViewport();var o=u.getUnscaledValue(this.effectiveViewport().left(),e),h=f.getUnscaledValue(this.effectiveViewport().top(),i),c=u.getUnscaledValue(this.effectiveViewport().right(),e),s=f.getUnscaledValue(this.effectiveViewport().bottom(),i),l=c-o,a=h-s,r=new t.ca(0,o,s,l,a);return r.intersect(t.$uz.m3),r.isEmpty()&&(r=t.$uz.m3),r},getGeographicPoint:function(t){var i=this.xAxis().unscaleValue(t.__x),r=this.yAxis().unscaleValue(t.__y);return{__x:i,__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},getWindowPoint:function(t){var i=this.xAxis().scaleValue(t.__x),r=this.yAxis().scaleValue(t.__y);return{__x:i,__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},clearTileCache:function(){var i=n.ig.util.cast(t.$um.$type,this.backgroundContent());i!=null&&i.clearTileCache()},mr:function(){},getMarkerBrushByIndex:function(n){return this.l3().en(n)},getMarkerOutlineByIndex:function(n){return this.l3().eo(n)},useFixedAspectZoom:function(){return!0},styleUpdated:function(){var n,t;for(this.l3().db(),n=this.series().getEnumerator();n.moveNext();)t=n.current(),t.styleUpdated()},mb:null,mw:function(){var t=this.xAxis().unscaleValue(this.viewportRect().left()),i=this.yAxis().unscaleValue(this.viewportRect().top());this.mb={__x:t,__y:i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},ms:function(){var f,e,o,h,s,c;if((isNaN(this.mb.__x)||isNaN(this.mb.__y))&&this.mw(),f=this.mb.__x,e=this.mb.__y,!isNaN(f)&!isNaN(e)){var n=this.actualWindowRect().left(),i=this.actualWindowRect().top(),r=this.actualWindowRect().width(),u=this.actualWindowRect().height();r>this.m5.width()||(o=new t.j1(t.$uz.m6,this.viewportRect(),this.xAxis().isInverted()),o.b=this.effectiveViewport(),h=this.xAxis().getScaledValue(f,o),n=h/this.viewportRect().width(),n+r>this.m5.right()?n=this.m5.right()-r:n<this.m5.left()&&(n=this.m5.left()));u>this.m5.height()||(s=new t.j1(t.$uz.m6,this.viewportRect(),this.yAxis().isInverted()),s.b=this.effectiveViewport(),c=this.yAxis().getScaledValue(e,s),i=c/this.viewportRect().height(),i+u>this.m5.bottom()?i=this.m5.bottom()-u:i<this.m5.top()&&(i=this.m5.top()));this.actualWindowRect(new t.ca(0,n,i,r,u))}},bx:function(){return!0},m5:null,lb:function(){var r=t.$b2.lb.call(this),u,f,n,i;if(this.xAxis()==null||this.yAxis()==null)return r;u=new t.j1(t.$uz.m6,this.viewportRect(),this.xAxis().isInverted());u.b=this.effectiveViewport();f=new t.j1(t.$uz.m6,this.viewportRect(),this.yAxis().isInverted());f.b=this.effectiveViewport();var e=this.xAxis().getScaledValue(t.$uz.m3.left(),u),s=this.xAxis().getScaledValue(t.$uz.m3.right(),u),h=this.yAxis().getScaledValue(t.$uz.m3.top(),f),o=this.yAxis().getScaledValue(t.$uz.m3.bottom(),f);return this.m5=new t.ca(0,e/this.viewportRect().width(),o/this.viewportRect().height(),(s-e)/this.viewportRect().width(),(h-o)/this.viewportRect().height()),n=r.left(),i=r.top(),this.windowRect().width()>this.m5.width()?n=.5-this.windowRect().width()/2:n+r.width()>this.m5.right()?n=this.m5.right()-this.windowRect().width():n<this.m5.left()&&(n=this.m5.left()),this.windowRect().height()>this.m5.height()?i=.5-this.windowRect().height()/2:i+this.windowRect().height()>this.m5.bottom()?i=this.m5.bottom()-this.windowRect().height():i<this.m5.top()&&(i=this.m5.top()),new t.ca(0,n,i,r.width(),r.height())},lc:function(i){var r,u,f;return i.isEmpty()?t.$ca.empty():(i.width()>i.height()?(u=n.ig.intDivide(i.width()-i.height(),2),r=new t.ca(0,i.left()+u,i.top(),i.height(),i.height())):(f=n.ig.intDivide(i.height()-i.width(),2),r=new t.ca(0,i.left(),i.top()+f,i.width(),i.width())),r)},m8:function(n){return this.lc(n)},a5:function(){return new t.u0(this)},kv:function(n){return this.l3().em(n)},k1:function(n){return this.l3().ep(n)},mn:function(n){n!=null&&n.seriesViewer(this)},hy:function(n){t.$b2.hy.call(this,n);this.l3(n)},h3:function(n,i){t.$b2.h3.call(this,n,i);this.i1(this.xAxis());this.i1(this.yAxis());n!=i&&this.ms();this.mx()},windowScale:function(n){return arguments.length===1?(this.g(t.$uz.windowScaleProperty,n),n):this.c(t.$uz.windowScaleProperty)},l6:0,actualWindowScale:function(n){if(arguments.length===1){var t=this.l6;return this.l6=n,this.h8("ActualWindowScale",t,this.l6),n}return this.l6},getActualWindowScaleHorizontal:function(){return this.actualWindowScale()},getActualWindowScaleVertical:function(){return this.actualWindowScale()},i0:function(){t.$b2.i0.call(this);var n=Math.min(this.actualWindowRect().width(),this.actualWindowRect().height());this.actualWindowScale(n)},h4:function(i,r,u,f){var e,o;switch(r){case"WindowRect":this.mw()}t.$b2.h4.call(this,i,r,u,f);switch(r){case"BackgroundContent":this.l2()!=null&&(this.l2().imageTilesReady=n.ig.Delegate.prototype.remove(this.l2().imageTilesReady,this.mp.runOn(this)),this.l2().deferralHandler(null));this.l2(n.ig.util.cast(t.$um.$type,this.backgroundContent()));this.l2()!=null&&(this.l2().imageTilesReady=n.ig.Delegate.prototype.combine(this.l2().imageTilesReady,this.mp.runOn(this)),this.l2().deferralHandler(this));this.l3().ej(n.ig.util.cast(t.$um.$type,u),n.ig.util.cast(t.$um.$type,f));this.l2()!=null&&(this.l2().geographicMap(this),this.l3().eg(this.actualWindowRect()));break;case"YAxis":case"XAxis":this.mu(u);this.mn(f);break;case"WorldRect":this.windowRect(t.$uz.m6);this.mo();this.mv();this.mw();this.actualWindowRect(this.lb());this.l3().eh();break;case"ActualWindowRect":this.l3().eg(this.actualWindowRect());break;case"ActualWorldRect":for(e=this.series().getEnumerator();e.moveNext();)o=e.current(),o.renderSeries(!1);break;case"WindowScale":this.actualWindowScale(this.windowScale());break;case"ActualWindowScale":this.cg()||this.i8(this.getActualWindowScaleHorizontal(),this.getActualWindowScaleVertical());break;case"Zoomable":this.i5()}},imageTilesReady:null,mp:function(){this.imageTilesReady!=null&&this.imageTilesReady(this,new t.er)},mu:function(n){n!=null&&n.seriesViewer(null)},mv:function(){this.xAxis()!=null&&(this.xAxis().minimumValue(this.actualWorldRect().left()),this.xAxis().maximumValue(this.actualWorldRect().right()));this.yAxis()!=null&&(this.yAxis().minimumValue(this.actualWorldRect().top()),this.yAxis().maximumValue(this.actualWorldRect().bottom()));this.xAxis().updateRange1(!0);this.yAxis().updateRange1(!0)},_l3:null,l3:function(n){return arguments.length===1?(this._l3=n,n):this._l3},ku:function(){return this.l3().ek()},es:function(){return this.l3().ef()},ky:function(){return this.l3().el()},it:function(i,r){if(n.ig.util.cast(t.$u4.$type,r)!==null){var u=r,f=i;f.itemsSource(u.triangulationSource().points());f.trianglesSource(u.triangulationSource().triangles())}else t.$b2.it.call(this,i,r)},register:function(n,t){this.ii(n,t)},unRegister:function(n){this.iz(n)},deferredRefresh:function(){this.gh()},exportVisualData:function(){var n=new t.tc,u=this.xAxis().exportVisualData(),f=this.yAxis().exportVisualData(),i,r;for(n.axes().add(u),n.axes().add(f),i=0;i<this.series().count();i++)r=this.series().__inner[i].exportVisualData(),n.series().add(r);return n.name(this.name()),this.go(n),n.contentArea(this.viewportRect()),n.centralArea(this.viewportRect()),n.plotArea(this.viewportRect()),n},mq:function(){throw new t.g5;},m4:null,nd:function(n){return arguments.length===1?(this.m4=n,n):this.m4},zoomToGeographic:function(n){this.nd(n);this.mx()},mx:function(){if(this.zoomIsReady()&&!this.nd().isEmpty()){var n=this.getZoomFromGeographic1(this.nd());this.nd(t.$ca.empty());this.i9(n)}},zoomIsReady:function(){return!this.viewportRect().isEmpty()&&!this.effectiveViewport().isEmpty()},$type:new n.ig.Type("XamGeographicMap",t.$b2.$type,[t.$uw.$type])},!0);n.ig.util.defType("XamGeographicMapView:u0","SeriesViewerView",{init:function(n){t.$b3.init.call(this,n);this.er(t.$ca.empty());this.ee(n);this.ee().dragModifier(2);this.ee().windowRectMinWidth(5e-6)},n:function(){return 2},by:function(n){this.bb(n)},_ee:null,ee:function(n){return arguments.length===1?(this._ee=n,n):this._ee},c2:function(){var n=this,u,f,t,i,r;(function(){var e=n.l().ap(u,f,t,i,r);return u=e.brushes,f=e.outlines,t=e.fontBrush,i=e.font,r=e.axisLineBrush,e.ret})();n.el(t);n.ef(i);n.ek(r)},en:function(){var n=this;return function(){var n=new t.a7;return n.fill("rgba(0,0,0,1)"),n}()},eo:function(){var n=this;return function(){var n=new t.a7;return n.fill("white"),n}()},em:function(){var n=this;return function(){var n=new t.a7;return n.fill("rgba(50,50,50,.5)"),n}()},ep:function(){var n=this;return function(){var n=new t.a7;return n.fill("white"),n}()},cs:function(n){if(t.$b3.cs.call(this,n),this.ee().backgroundContent()!=null){var i=this.ee().backgroundContent();i.az(n)}},_er:null,er:function(n){return arguments.length===1?(this._er=n,n):this._er},ct:function(n){if(t.$b3.ct.call(this,n),this.er(n),this.ee().backgroundContent()!=null){var i=this.ee().backgroundContent();i.a0(this.er())}},eq:function(){return new t.ca(0,0,0,this.er().width(),this.er().height())},eh:function(){if(this.ee().backgroundContent()!=null){var n=this.ee().backgroundContent();n.at()}},_el:null,el:function(n){return arguments.length===1?(this._el=n,n):this._el},_ek:null,ek:function(n){return arguments.length===1?(this._ek=n,n):this._ek},_ef:null,ef:function(n){return arguments.length===1?(this._ef=n,n):this._ef},eg:function(n){this.ee().l2()!=null&&this.ee().l2().windowRect(n)},ej:function(n,t){var i,r;this.ee().l2()!=null&&this.ee().l2().windowRect(this.ee().actualWindowRect());n!=null&&(i=n.aj(),i!=null&&this.ee().canvasRenderScheduler().c().remove(i.tileScheduler()),n.az(null));t!=null&&(r=t.aj(),r!=null&&this.ee().canvasRenderScheduler().c().add(r.tileScheduler()),this.er().isEmpty()||this.ct(this.er()),this.r()!=null&&this.cs(this.r()));t==null&&this.ei(this.r())},ei:function(n){n.i(this.er().left(),this.er().top(),this.er().width(),this.er().height())},cz:function(){this.d5().z(1);this.d6().z(1);this.d5().__stroke=this.el();this.d6().__stroke=this.el();t.$b3.cz.call(this)},cf:function(){t.$b3.cf.call(this)},$type:new n.ig.Type("XamGeographicMapView",t.$b3.$type)},!0);n.ig.util.defType("TestEnum:xu","Object",{init:function(){n.ig.$op.init.call(this)},a:function(){var t=this,i=function(){return function(){return{$state:0,$this:t,$current:null,$a:0,getEnumerator:function(){return this.$state===-1&&(this.$state=0),this},current:function(){return this.$current},moveNext:function(){do switch(this.$state){case 0:this.$state=1;break;case 1:this.$a=0;this.$state=5;break;case 2:return this.$current=this.$a,this.$state=3,!0;case 3:this.$state=4;break;case 4:this.$a++;this.$state=5;break;case 5:this.$state=this.$a<10?2:6;break;case 6:this.$state=-2;break;case-2:return!1}while(this.$state>0)}}}()};return new n.ig.GenericEnumerable$1(Number,i)},b:function(){for(var t=this.a(),i=t.getEnumerator(),r,n,u;i.moveNext();)r=i.current(),console.log(r.toString());for(n=t.getEnumerator();n.moveNext();)u=n.current(),console.log(u.toString())},$type:new n.ig.Type("TestEnum",n.ig.$ot)},!0);t.$xo.none=0;t.$xo.point=1;t.$xo.polyLine=3;t.$xo.polygon=5;t.$xo.polyPoint=8;t.$xo.pointZ=11;t.$xo.polyLineZ=13;t.$xo.polygonZ=15;t.$xo.polyPointZ=18;t.$xo.pointM=21;t.$xo.polyLineM=23;t.$xo.polygonM=25;t.$xo.polyPointM=28;t.$xo.polyPatch=31;t.$xq.character=0;t.$xq.number=1;t.$xq.logical=2;t.$xq.date=3;t.$xq.memo=4;t.$xq.floatingPoint=5;t.$xq.binary=6;t.$xq.general=7;t.$xq.picture=8;t.$xq.currency=9;t.$xq.dateTime=10;t.$xq.integer=11;t.$xq.variField=12;t.$xq.variant=13;t.$xq.timestamp=14;t.$xq.double1=15;t.$xq.autoIncrement=16;t.$ui.aerial=0;t.$ui.aerialWithLabels=1;t.$ui.road=2;t.$ug.select=0;t.$ug.interpolateRGB=1;t.$ug.interpolateHSV=2;t.$ue.ad=85.05112878;t.$ue.ae=-85.05112878;t.$ue.ai=3.14159265358979/180;t.$uh.v="MinimumValue";t.$uh.minimumValueProperty=t.$ae.i("MinimumValue",Number,t.$uh.$type,new t.af(2,NaN,function(i,r){n.ig.util.cast(t.$uh.$type,i).h("MinimumValue",r.d(),r.c())}));t.$uh.u="MaximumValue";t.$uh.maximumValueProperty=t.$ae.i("MaximumValue",Number,t.$uh.$type,new t.af(2,NaN,function(i,r){n.ig.util.cast(t.$uh.$type,i).h("MaximumValue",r.d(),r.c())}));t.$uh.w="Palette";t.$uh.t="InterpolationMode";t.$uh.interpolationModeProperty=t.$ae.i("InterpolationMode",t.$ug.$type,t.$uh.$type,new t.af(2,0,function(i,r){n.ig.util.cast(t.$uh.$type,i).h("InterpolationMode",r.d(),r.c())}));t.$um.ao="MultiScaleImage";t.$um.ap="WindowRect";t.$um.windowRectProperty=t.$ae.i("WindowRect",t.$ca.$type,t.$um.$type,new t.af(2,t.$ca.empty(),function(i,r){n.ig.util.cast(t.$um.$type,i).ax("WindowRect",r.d(),r.c())}));t.$um.an="GeographicMap";t.$um.geographicMapProperty=t.$ae.i("GeographicMap",t.$uz.$type,t.$um.$type,new t.af(2,null,t.$um.av));t.$vw.bt="http://dev.virtualearth.net/REST/v1/Imagery/Metadata/";t.$vw.bv="IsDeferredLoad";t.$vw.isDeferredLoadProperty=t.$ae.i("IsDeferredLoad",t.$h.$type,t.$vw.$type,new t.af(2,!1,function(i,r){return n.ig.util.cast(t.$vw.$type,i).b5(r.d(),r.c())}));t.$vw.by="TilePath";t.$vw.tilePathProperty=t.$ae.i("TilePath",String,t.$vw.$type,new t.af(2,null,t.$vw.b8));t.$vw.bw="SubDomains";t.$vw.subDomainsProperty=t.$ae.i("SubDomains",t.$e9.$type.specialize(String),t.$vw.$type,new t.af(2,null,t.$vw.b7));t.$vw.bm="ActualTilePath";t.$vw.bk="ActualSubDomains";t.$vw.bq="BingImageryRestUri";t.$vw.bj="ActualBingImageryRestUri";t.$vw.bs="CultureName";t.$vw.cultureNameProperty=t.$ae.i("CultureName",String,t.$vw.$type,new t.af(2,"en-US",t.$vw.b3));t.$vw.bo="ApiKey";t.$vw.apiKeyProperty=t.$ae.i("ApiKey",String,t.$vw.$type,new t.af(2,String.empty(),function(i,r){return n.ig.util.cast(t.$vw.$type,i).b2(r.d(),r.c())}));t.$vw.bu="ImageryStyle";t.$vw.imageryStyleProperty=t.$ae.i("ImageryStyle",t.$ui.$type,t.$vw.$type,new t.af(2,1,function(i,r){return n.ig.util.cast(t.$vw.$type,i).b4(r.d(),r.c())}));t.$vz.a8="Key";t.$vz.keyProperty=t.$ae.i("Key",String,t.$vz.$type,new t.af(2,null,t.$vz.bb));t.$vz.ba="Parameter";t.$vz.parameterProperty=t.$ae.i("Parameter",String,t.$vz.$type,new t.af(2,null,t.$vz.bc));t.$vo.jv="VisibleFromScale";t.$vo.visibleFromScaleProperty=t.$ae.i("VisibleFromScale",Number,t.$vo.$type.specialize(this.$t),new t.af(2,1,function(n,t){n.raisePropertyChanged("VisibleFromScale",t.d(),t.c())}));t.$vn.j8="LongitudeMemberPath";t.$vn.longitudeMemberPathProperty=t.$ae.i("LongitudeMemberPath",String,t.$vn.$type,new t.af(2,"pointX",function(n,t){n.raisePropertyChanged("LongitudeMemberPath",t.d(),t.c())}));t.$vn.j6="LatitudeMemberPath";t.$vn.latitudeMemberPathProperty=t.$ae.i("LatitudeMemberPath",String,t.$vn.$type,new t.af(2,"pointY",function(n,t){n.raisePropertyChanged("LatitudeMemberPath",t.d(),t.c())}));t.$vn.j9="TrianglesSource";t.$vn.trianglesSourceProperty=t.$ae.i("TrianglesSource",n.ig.IEnumerable.prototype.$type,t.$vn.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("TrianglesSource",t.d(),t.c())}));t.$vn.kb="TriangleVertexMemberPath1";t.$vn.triangleVertexMemberPath1Property=t.$ae.i("TriangleVertexMemberPath1",String,t.$vn.$type,new t.af(2,"v1",function(n,t){n.raisePropertyChanged("TriangleVertexMemberPath1",t.d(),t.c())}));t.$vn.kd="TriangleVertexMemberPath2";t.$vn.triangleVertexMemberPath2Property=t.$ae.i("TriangleVertexMemberPath2",String,t.$vn.$type,new t.af(2,"v2",function(n,t){n.raisePropertyChanged("TriangleVertexMemberPath2",t.d(),t.c())}));t.$vn.kf="TriangleVertexMemberPath3";t.$vn.triangleVertexMemberPath3Property=t.$ae.i("TriangleVertexMemberPath3",String,t.$vn.$type,new t.af(2,"v3",function(n,t){n.raisePropertyChanged("TriangleVertexMemberPath3",t.d(),t.c())}));t.$wl.kt="ValueMemberPath";t.$wl.valueMemberPathProperty=t.$ae.i("ValueMemberPath",String,t.$wl.$type,new t.af(2,"value",function(n,t){n.raisePropertyChanged("ValueMemberPath",t.d(),t.c())}));t.$wl.kr="FillScale";t.$wl.fillScaleProperty=t.$ae.i("FillScale",t.$qn.$type,t.$wl.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("FillScale",t.d(),t.c())}));t.$wl.ku="ValueResolver";t.$wl.valueResolverProperty=t.$ae.i("ValueResolver",t.$wo.$type,t.$wl.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ValueResolver",t.d(),t.c())}));t.$wt.kj="LatitudeMemberPath";t.$wt.latitudeMemberPathProperty=t.$ae.i("LatitudeMemberPath",String,t.$wt.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("LatitudeMemberPath",t.d(),t.c())}));t.$wt.kl="LongitudeMemberPath";t.$wt.longitudeMemberPathProperty=t.$ae.i("LongitudeMemberPath",String,t.$wt.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("LongitudeMemberPath",t.d(),t.c())}));t.$wt.kp="UseBruteForce";t.$wt.useBruteForceProperty=t.$ae.i("UseBruteForce",t.$h.$type,t.$wt.$type,new t.af(2,!1,function(n,t){n.raisePropertyChanged("UseBruteForce",t.d(),t.c())}));t.$wt.ko="ProgressiveLoad";t.$wt.progressiveLoadProperty=t.$ae.i("ProgressiveLoad",t.$h.$type,t.$wt.$type,new t.af(2,!0,function(n,t){n.raisePropertyChanged("ProgressiveLoad",t.d(),t.c())}));t.$wt.km="MouseOverEnabled";t.$wt.mouseOverEnabledProperty=t.$ae.i("MouseOverEnabled",t.$h.$type,t.$wt.$type,new t.af(2,!1,function(n,t){n.raisePropertyChanged("MouseOverEnabled",t.d(),t.c())}));t.$wt.kh="HeatMinimum";t.$wt.heatMinimumProperty=t.$ae.i("HeatMinimum",Number,t.$wt.$type,new t.af(2,0,function(n,t){n.raisePropertyChanged("HeatMinimum",t.d(),t.c())}));t.$wt.kf="HeatMaximum";t.$wt.heatMaximumProperty=t.$ae.i("HeatMaximum",Number,t.$wt.$type,new t.af(2,50,function(n,t){n.raisePropertyChanged("HeatMaximum",t.d(),t.c())}));t.$wt.kg="HeatMinimumColor";t.$wt.heatMinimumColorProperty=t.$ae.i("HeatMinimumColor",t.$a8.$type,t.$wt.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("HeatMinimumColor",t.d(),t.c())}));t.$wt.ke="HeatMaximumColor";t.$wt.heatMaximumColorProperty=t.$ae.i("HeatMaximumColor",t.$a8.$type,t.$wt.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("HeatMaximumColor",t.d(),t.c())}));t.$wt.kn="PointExtent";t.$wt.pointExtentProperty=t.$ae.i("PointExtent",n.ig.Number.prototype.$type,t.$wt.$type,new t.af(2,1,function(n,t){n.raisePropertyChanged("PointExtent",t.d(),t.c())}));t.$v3.j7="ShapeMemberPath";t.$v3.shapeMemberPathProperty=t.$ae.i("ShapeMemberPath",String,t.$v3.$type,new t.af(2,"points",function(i,r){n.ig.util.cast(t.$v3.$type,i).raisePropertyChanged("ShapeMemberPath",r.d(),r.c())}));t.$v3.j5="ShapeFilterResolution";t.$v3.shapeFilterResolutionProperty=t.$ae.i("ShapeFilterResolution",Number,t.$v3.$type,new t.af(2,2,function(i,r){n.ig.util.cast(t.$v3.$type,i).raisePropertyChanged("ShapeFilterResolution",r.d(),r.c())}));t.$wg.kd="ShapeStyleSelector";t.$wg.shapeStyleSelectorProperty=t.$ae.i("ShapeStyleSelector",t.$v8.$type,t.$wg.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ShapeStyleSelector",t.d(),t.c())}));t.$wg.kc="ShapeStyle";t.$wg.shapeStyleProperty=t.$ae.i("ShapeStyle",t.$aw.$type,t.$wg.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ShapeStyle",t.d(),t.c())}));t.$wk.kf="LatitudeMemberPath";t.$wk.latitudeMemberPathProperty=t.$ae.i("LatitudeMemberPath",String,t.$wk.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("LatitudeMemberPath",t.d(),t.c())}));t.$wk.kh="LongitudeMemberPath";t.$wk.longitudeMemberPathProperty=t.$ae.i("LongitudeMemberPath",String,t.$wk.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("LongitudeMemberPath",t.d(),t.c())}));t.$wk.kl="MarkerType";t.$wk.markerTypeProperty=t.$ae.i("MarkerType",t.$ig.$type,t.$wk.$type,new t.af(2,1,function(n,t){n.raisePropertyChanged("MarkerType",t.d(),t.c())}));t.$wk.kk="MarkerTemplate";t.$wk.markerTemplateProperty=t.$ae.i("MarkerTemplate",t.$ck.$type,t.$wk.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("MarkerTemplate",t.d(),t.c())}));t.$wk.ki="MarkerBrush";t.$wk.markerBrushProperty=t.$ae.i("MarkerBrush",t.$a7.$type,t.$wk.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerBrush",t.d(),t.c())}));t.$wk.kj="MarkerOutline";t.$wk.markerOutlineProperty=t.$ae.i("MarkerOutline",t.$a7.$type,t.$wk.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerOutline",t.d(),t.c())}));t.$wk.km="MaximumMarkers";t.$wk.maximumMarkersProperty=t.$ae.i("MaximumMarkers",n.ig.Number.prototype.$type,t.$wk.$type,new t.af(2,400,function(n,t){n.raisePropertyChanged("MaximumMarkers",t.d(),t.c())}));t.$wk.ko="RadiusMemberPath";t.$wk.radiusMemberPathProperty=t.$ae.i("RadiusMemberPath",String,t.$wk.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("RadiusMemberPath",t.d(),t.c())}));t.$wk.kp="RadiusScale";t.$wk.radiusScaleProperty=t.$ae.i("RadiusScale",t.$qh.$type,t.$wk.$type,new t.af(1,function(n,t){n.raisePropertyChanged("RadiusScale",t.d(),t.c())}));t.$wk.kd="LabelMemberPath";t.$wk.labelMemberPathProperty=t.$ae.i("LabelMemberPath",String,t.$wk.$type,new t.af(1,function(n,t){n.raisePropertyChanged("LabelMemberPath",t.d(),t.c())}));t.$wk.ka="FillMemberPath";t.$wk.fillMemberPathProperty=t.$ae.i("FillMemberPath",String,t.$wk.$type,new t.af(1,function(n,t){n.raisePropertyChanged("FillMemberPath",t.d(),t.c())}));t.$wk.kb="FillScale";t.$wk.fillScaleProperty=t.$ae.i("FillScale",t.$qi.$type,t.$wk.$type,new t.af(1,function(n,t){n.raisePropertyChanged("FillScale",t.d(),t.c())}));t.$vm.ks="ColorMemberPath";t.$vm.colorMemberPathProperty=t.$ae.i("ColorMemberPath",String,t.$vm.$type,new t.af(2,"value",function(n,t){n.raisePropertyChanged("ColorMemberPath",t.d(),t.c())}));t.$vm.kt="ColorScale";t.$w7.kl="ShapeStyleSelector";t.$w7.shapeStyleSelectorProperty=t.$ae.i("ShapeStyleSelector",t.$v8.$type,t.$w7.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ShapeStyleSelector",t.d(),t.c())}));t.$w7.kk="ShapeStyle";t.$w7.shapeStyleProperty=t.$ae.i("ShapeStyle",t.$aw.$type,t.$w7.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ShapeStyle",t.d(),t.c())}));t.$w7.kj="MarkerType";t.$w7.markerTypeProperty=t.$ae.i("MarkerType",t.$ig.$type,t.$w7.$type,new t.af(2,1,function(n,t){n.raisePropertyChanged("MarkerType",t.d(),t.c())}));t.$w7.ki="MarkerTemplate";t.$w7.markerTemplateProperty=t.$ae.i("MarkerTemplate",t.$ck.$type,t.$w7.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("MarkerTemplate",t.d(),t.c())}));t.$w7.ke="MarkerBrush";t.$w7.markerBrushProperty=t.$ae.i("MarkerBrush",t.$a7.$type,t.$w7.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerBrush",t.d(),t.c())}));t.$w7.kg="MarkerOutline";t.$w7.markerOutlineProperty=t.$ae.i("MarkerOutline",t.$a7.$type,t.$w7.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerOutline",t.d(),t.c())}));t.$w7.kh="MarkerStyle";t.$w7.markerStyleProperty=t.$ae.i("MarkerStyle",t.$aw.$type,t.$w7.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerStyle",t.d(),t.c())}));t.$w7.kf="MarkerCollisionAvoidance";t.$w7.markerCollisionAvoidanceProperty=t.$ae.i("MarkerCollisionAvoidance",t.$jk.$type,t.$w7.$type,new t.af(2,0,function(n,t){n.raisePropertyChanged("MarkerCollisionAvoidance",t.d(),t.c())}));t.$xc.j9="LatitudeMemberPath";t.$xc.latitudeMemberPathProperty=t.$ae.i("LatitudeMemberPath",String,t.$xc.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("LatitudeMemberPath",t.d(),t.c())}));t.$xc.kb="LongitudeMemberPath";t.$xc.longitudeMemberPathProperty=t.$ae.i("LongitudeMemberPath",String,t.$xc.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("LongitudeMemberPath",t.d(),t.c())}));t.$xc.kg="MarkerType";t.$xc.markerTypeProperty=t.$ae.i("MarkerType",t.$ig.$type,t.$xc.$type,new t.af(2,2,function(n,t){n.raisePropertyChanged("MarkerType",t.d(),t.c())}));t.$xc.kf="MarkerTemplate";t.$xc.markerTemplateProperty=t.$ae.i("MarkerTemplate",t.$ck.$type,t.$xc.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("MarkerTemplate",t.d(),t.c())}));t.$xc.kd="MarkerCollisionAvoidance";t.$xc.markerCollisionAvoidanceProperty=t.$ae.i("MarkerCollisionAvoidance",t.$jk.$type,t.$xc.$type,new t.af(2,0,function(n,t){n.raisePropertyChanged("MarkerCollisionAvoidance",t.d(),t.c())}));t.$xc.kc="MarkerBrush";t.$xc.markerBrushProperty=t.$ae.i("MarkerBrush",t.$a7.$type,t.$xc.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerBrush",t.d(),t.c())}));t.$xc.ke="MarkerOutline";t.$xc.markerOutlineProperty=t.$ae.i("MarkerOutline",t.$a7.$type,t.$xc.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerOutline",t.d(),t.c())}));t.$xc.kh="MaximumMarkers";t.$xc.maximumMarkersProperty=t.$ae.i("MaximumMarkers",n.ig.Number.prototype.$type,t.$xc.$type,new t.af(2,400,function(n,t){n.raisePropertyChanged("MaximumMarkers",t.d(),t.c())}));t.$xg.ke="TileImagery";t.$vr.kq="XMemberPath";t.$vr.xMemberPathProperty=t.$ae.i("XMemberPath",String,t.$vr.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("XMemberPath",t.d(),t.c())}));t.$vr.ku="YMemberPath";t.$vr.yMemberPathProperty=t.$ae.i("YMemberPath",String,t.$vr.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("YMemberPath",t.d(),t.c())}));t.$vr.ko="XColumn";t.$vr.ks="YColumn";t.$vr.kn="XAxis";t.$vr.xAxisProperty=t.$ae.i("XAxis",t.$jq.$type,t.$vr.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("XAxis",t.d(),t.c())}));t.$vr.kr="YAxis";t.$vr.yAxisProperty=t.$ae.i("YAxis",t.$jz.$type,t.$vr.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("YAxis",t.d(),t.c())}));t.$vr.kd="TrianglesSource";t.$vr.trianglesSourceProperty=t.$ae.i("TrianglesSource",n.ig.IEnumerable.prototype.$type,t.$vr.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("TrianglesSource",t.d(),t.c())}));t.$vr.kc="FastTrianglesSource";t.$vr.kz=t.$ae.i("FastTrianglesSource",t.$gx.$type,t.$vr.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("FastTrianglesSource",t.d(),t.c())}));t.$vr.ki="TriangleVertexMemberPath1";t.$vr.triangleVertexMemberPath1Property=t.$ae.i("TriangleVertexMemberPath1",String,t.$vr.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("TriangleVertexMemberPath1",t.d(),t.c())}));t.$vr.kk="TriangleVertexMemberPath2";t.$vr.triangleVertexMemberPath2Property=t.$ae.i("TriangleVertexMemberPath2",String,t.$vr.$type,new t.af(2,null,function(i,r){n.ig.util.cast(t.$vr.$type,i).raisePropertyChanged("TriangleVertexMemberPath2",r.d(),r.c())}));t.$vr.km="TriangleVertexMemberPath3";t.$vr.triangleVertexMemberPath3Property=t.$ae.i("TriangleVertexMemberPath3",String,t.$vr.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("TriangleVertexMemberPath3",t.d(),t.c())}));t.$vr.ke="TriangleVertexColumn1";t.$vr.kf="TriangleVertexColumn2";t.$vr.kg="TriangleVertexColumn3";t.$wm.lh="ValueMemberPath";t.$wm.valueMemberPathProperty=t.$ae.i("ValueMemberPath",String,t.$wm.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ValueMemberPath",t.d(),t.c())}));t.$wm.lf="ValueColumn";t.$wm.le="FillScale";t.$wm.fillScaleProperty=t.$ae.i("FillScale",t.$qn.$type,t.$wm.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("FillScale",t.d(),t.c())}));t.$wm.li="ValueResolver";t.$wq.l=4294967296;t.$wn.b3=3;t.$wp.l="ValueCount";t.$wp.m=t.$ae.i("ValueCount",n.ig.Number.prototype.$type,t.$wp.$type,new t.af(2,10,function(n,t){n.j("ValueCount",t.d(),t.c())}));t.$v4.ks="ShapeMemberPath";t.$v4.shapeMemberPathProperty=t.$ae.i("ShapeMemberPath",String,t.$v4.$type,new t.af(2,null,function(i,r){n.ig.util.cast(t.$v4.$type,i).raisePropertyChanged("ShapeMemberPath",r.d(),r.c())}));t.$v4.kp="ShapeColumn";t.$v4.kt="XAxis";t.$v4.xAxisProperty=t.$ae.i("XAxis",t.$jq.$type,t.$v4.$type,new t.af(2,null,function(i,r){n.ig.util.cast(t.$v4.$type,i).raisePropertyChanged("XAxis",r.d(),r.c())}));t.$v4.ku="YAxis";t.$v4.yAxisProperty=t.$ae.i("YAxis",t.$jz.$type,t.$v4.$type,new t.af(2,null,function(i,r){n.ig.util.cast(t.$v4.$type,i).raisePropertyChanged("YAxis",r.d(),r.c())}));t.$v4.ko="FillScale";t.$v4.fillScaleProperty=t.$ae.i("FillScale",t.$qn.$type,t.$v4.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("FillScale",t.d(),t.c())}));t.$v4.kn="FillMemberPath";t.$v4.fillMemberPathProperty=t.$ae.i("FillMemberPath",String,t.$v4.$type,new t.af(2,null,function(i,r){n.ig.util.cast(t.$v4.$type,i).raisePropertyChanged("FillMemberPath",r.d(),r.c())}));t.$v4.kl="FillColumn";t.$v4.kq="ShapeFilterResolution";t.$v4.shapeFilterResolutionProperty=t.$ae.i("ShapeFilterResolution",Number,t.$v4.$type,new t.af(2,2,function(n,t){n.raisePropertyChanged("ShapeFilterResolution",t.d(),t.c())}));t.$wh.la="ShapeStyleSelector";t.$wh.shapeStyleSelectorProperty=t.$ae.i("ShapeStyleSelector",t.$v8.$type,t.$wh.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ShapeStyleSelector",t.d(),t.c())}));t.$wh.k9="ShapeStyle";t.$wh.shapeStyleProperty=t.$ae.i("ShapeStyle",t.$aw.$type,t.$wh.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ShapeStyle",t.d(),t.c())}));t.$v5.ca=3;t.$vs.lk="ColorScale";t.$vs.lj="ColorMemberPath";t.$vs.colorMemberPathProperty=t.$ae.i("ColorMemberPath",String,t.$vs.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ColorMemberPath",t.d(),t.c())}));t.$vs.lh="ColorColumn";t.$w9.ma=new t.ca(0,0,0,1,1);t.$w9.ls="ShapeStyleSelector";t.$w9.shapeStyleSelectorProperty=t.$ae.i("ShapeStyleSelector",t.$v8.$type,t.$w9.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ShapeStyleSelector",t.d(),t.c())}));t.$w9.lr="ShapeStyle";t.$w9.shapeStyleProperty=t.$ae.i("ShapeStyle",t.$aw.$type,t.$w9.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ShapeStyle",t.d(),t.c())}));t.$w9.lq="MarkerType";t.$w9.markerTypeProperty=t.$ae.i("MarkerType",t.$ig.$type,t.$w9.$type,new t.af(2,1,function(n,t){n.raisePropertyChanged("MarkerType",t.d(),t.c())}));t.$w9.lp="MarkerTemplate";t.$w9.markerTemplateProperty=t.$ae.i("MarkerTemplate",t.$ck.$type,t.$w9.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("MarkerTemplate",t.d(),t.c())}));t.$w9.lk="ActualMarkerTemplate";t.$w9.actualMarkerTemplateProperty=t.$ae.i("ActualMarkerTemplate",t.$ck.$type,t.$w9.$type,new t.af(2,null,function(n,t){n.raisePropertyChanged("ActualMarkerTemplate",t.d(),t.c())}));t.$w9.ll="MarkerBrush";t.$w9.markerBrushProperty=t.$ae.i("MarkerBrush",t.$a7.$type,t.$w9.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerBrush",t.d(),t.c())}));t.$w9.li="ActualMarkerBrush";t.$w9.actualMarkerBrushProperty=t.$ae.i("ActualMarkerBrush",t.$a7.$type,t.$w9.$type,new t.af(1,function(n,t){n.raisePropertyChanged("ActualMarkerBrush",t.d(),t.c())}));t.$w9.ln="MarkerOutline";t.$w9.markerOutlineProperty=t.$ae.i("MarkerOutline",t.$a7.$type,t.$w9.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerOutline",t.d(),t.c())}));t.$w9.lj="ActualMarkerOutline";t.$w9.actualMarkerOutlineProperty=t.$ae.i("ActualMarkerOutline",t.$a7.$type,t.$w9.$type,new t.af(1,function(n,t){n.raisePropertyChanged("ActualMarkerOutline",t.d(),t.c())}));t.$w9.lo="MarkerStyle";t.$w9.markerStyleProperty=t.$ae.i("MarkerStyle",t.$aw.$type,t.$w9.$type,new t.af(1,function(n,t){n.raisePropertyChanged("MarkerStyle",t.d(),t.c())}));t.$w9.lm="MarkerCollisionAvoidance";t.$w9.markerCollisionAvoidanceProperty=t.$ae.i("MarkerCollisionAvoidance",t.$jk.$type,t.$w9.$type,new t.af(2,0,function(i,r){n.ig.util.cast(t.$w9.$type,i).raisePropertyChanged("MarkerCollisionAvoidance",r.d(),r.c())}));t.$xh.lf="TileImagery";t.$xj.n="WorldRect";t.$xj.m="ShapefileSource";t.$xj.shapefileSourceProperty=t.$ae.i("ShapefileSource",t.$uv.$type,t.$xj.$type,new t.af(2,null,function(i,r){n.ig.util.cast(t.$xj.$type,i).t("ShapefileSource",r.d(),r.c())}));t.$xj.l="DatabaseSource";t.$xj.databaseSourceProperty=t.$ae.i("DatabaseSource",t.$uv.$type,t.$xj.$type,new t.af(2,null,function(i,r){n.ig.util.cast(t.$xj.$type,i).t("DatabaseSource",r.d(),r.c())}));t.$xm.j=null;t.$xm.staticInit&&!t.$xm.shapeFileUtilStaticInitCalled&&(t.$xm.staticInit(),t.$xm.shapeFileUtilStaticInitCalled=!0);t.$u4.k="Source";t.$u4.sourceProperty=t.$ae.i("Source",t.$uv.$type,t.$u4.$type,new t.af(2,null,function(i,r){n.ig.util.cast(t.$u4.$type,i).q("Source",r.d(),r.c())}));t.$u4.l="TriangulationSource";t.$u5.e="LOCAL_CS[]";t.$uz.ml="Zoomable";t.$uz.zoomableProperty=t.$ae.i("Zoomable",t.$h.$type,t.$uz.$type,new t.af(2,!0,function(i,r){n.ig.util.cast(t.$uz.$type,i).h8("Zoomable",r.d(),r.c())}));t.$uz.m3=new t.ca(2,{__x:-180,__y:-85.05112878,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:180,__y:85.05112878,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});t.$uz.mi="WorldRect";t.$uz.worldRectProperty=t.$ae.i("WorldRect",t.$ca.$type,t.$uz.$type,new t.af(2,t.$uz.m3,function(n,t){n.h8("WorldRect",t.d(),t.c())}));t.$uz.mf="ActualWorldRect";t.$uz.mg="BackgroundContent";t.$uz.mj="XAxis";t.$uz.mk="YAxis";t.$uz.m6=new t.ca(0,0,0,1,1);t.$uz.mh="WindowScale";t.$uz.windowScaleProperty=t.$ae.i("WindowScale",Number,t.$uz.$type,new t.af(2,NaN,function(i,r){n.ig.util.cast(t.$uz.$type,i).h8("WindowScale",r.d(),r.c())}));t.$uz.me="ActualWindowScale";n.ig.util.extCopy(n.ig.VisualDataSerializer,[[[n.ig.Rect],["serialize"]]]);n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.ShapefileConverter,n.ig.HalfEdgeSet],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper,n.ig.RearrangedList$1,n.ig.ShapefileConverter,n.ig.HalfEdgeSet],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1,n.ig.IEnumerable,n.ig.ICollection,n.ig.IList,n.ig.Array,n.ig.Dictionary,n.ig.XmlNodeList,n.ig.XmlNamedNodeMap,n.ig.ShapefileConverter,n.ig.HalfEdgeSet],["ofType$1","cast$1"]]]);n.ig.util.extCopy(n.ig.ArrayUtil,[[[n.ig.EdgeClipper,n.ig.RearrangedList$1,n.ig.ShapefileConverter],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);n.ig.util.extCopy(n.ig.BrushUtil,[[[],["getLightened"]]]);n.ig.util.extCopy(n.ig.ColorUtil,[[[],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);n.ig.util.extCopy(n.ig.Extensions,[[[],["reset1"]],[[],["reset"]],[[],["detach"]],[[],["transferChildrenTo"]],[[],["isPlottable"]],[[],["isPlottable1"]]]);n.ig.util.extCopy(n.ig.PathFigureUtil,[[[],["duplicate1"]],[[],["duplicate"]]]);n.ig.util.extCopy(n.ig.PointCollectionUtil,[[[n.ig.RearrangedList$1,n.ig.ShapefileConverter],["flattenTo","getBounds2","clipTo"]],[[n.ig.RearrangedList$1,n.ig.ShapefileConverter,n.ig.HalfEdgeSet],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[],["getBounds3","getBounds4","toPointCollections"]]]);n.ig.util.extCopy(n.ig.RectUtil,[[[],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["GaugeVisualData:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","PrimitiveVisualData:x","IVisualData:y","PrimitiveAppearanceData:z","Color:aa","Number:ab","Math:ac","Number:ad","Number:ae","Number:af","Number:ag","Number:ah","Number:ai","Number:aj","Script:ak","BrushAppearanceData:al","Visibility:am","Array:an","ICollection:ao","IEnumerable:ap","IEnumerator:aq","CompareCallback:ar","MulticastDelegate:as","IntPtr:at","Rect:au","Size:av","Point:aw","StringBuilder:ax","AppearanceHelper:ay","Brush:az","LinearGradientBrushAppearanceData:a0","List$1:a1","IList$1:a2","ICollection$1:a3","IEnumerable$1:a4","IEnumerator$1:a5","IArrayList:a6","IList:a7","IDisposable:a8","IArray:a9","Date:ba","Date:bb","Func$3:bc","Action$1:bd","GradientStopAppearanceData:be","LinearGradientBrush:bf","GradientStop:bg","SolidBrushAppearanceData:bh","FrameworkElement:bi","UIElement:bj","DependencyObject:bk","Dictionary:bl","DependencyProperty:bm","PropertyMetadata:bn","PropertyChangedCallback:bo","DependencyPropertyChangedEventArgs:bp","DependencyPropertiesCollection:bq","UnsetValue:br","Binding:bs","PropertyPath:bt","Transform:bu","Style:bv","Path:bw","Shape:bx","DoubleCollection:by","Geometry:bz","GeometryType:b0","GeometryGroup:b1","GeometryCollection:b2","FillRule:b3","PathGeometry:b4","PathFigureCollection:b5","LineGeometry:b6","RectangleGeometry:b7","EllipseGeometry:b8","Error:b9","EllipseGeometryData:ca","GeometryData:cb","GetPointsSettings:cc","RectangleGeometryData:cd","LineGeometryData:ce","PathGeometryData:cf","PathFigureData:cg","PathFigure:ch","PathSegmentCollection:ci","PathSegment:cj","PathSegmentType:ck","LineSegment:cl","LineSegmentData:cm","SegmentData:cn","PolyLineSegment:co","PointCollection:cp","PolylineSegmentData:cq","ArcSegment:cr","SweepDirection:cs","ArcSegmentData:ct","PolyBezierSegment:cu","PolyBezierSegmentData:cv","LabelAppearanceData:cw","FontInfo:cx","TextBlock:cy","RotateTransform:cz","TransformGroup:c0","TransformCollection:c1","ShapeTags:c2","ScaleVisualData:c3","ScaleLabelVisualDataList:c4","ScaleTickmarkVisualDataList:c5","NeedleVisualData:c6","RangeVisualDataList:c7","ScaleLabelVisualData:c8","ScaleTickmarkVisualData:c9","RangeVisualData:da","CommonData:db","MorphSegment:dc","GeometryUtil:dd","Tuple$2:de","InterpolationUtil:df","Func$1:dg","Func$5:dh","RadialGaugeDuplicateLabelOmissionStrategy:di","RadialGaugeBackingShape:dj","RadialGaugeScaleOversweepShape:dk","RadialGaugeNeedleShape:dl","RadialGaugePivotShape:dm","RadialGaugeFrame:dn","RadialGaugeNeedleFrame:dp","BrushUtil:dq","ColorUtil:dr","Random:ds","InterpolationMode:dt","MathUtil:du","RuntimeHelpers:dv","RuntimeFieldHandle:dw","JQueryObject:dx","Element:dy","ElementAttributeCollection:dz","ElementCollection:d0","WebStyle:d1","ElementNodeType:d2","Document:d3","EventListener:d4","IElementEventHandler:d5","ElementEventHandler:d6","ElementAttribute:d7","JQueryPosition:d8","JQueryCallback:d9","JQueryEvent:ea","JQueryUICallback:eb","BrushCollection:ec","ObservableCollection$1:ed","INotifyCollectionChanged:ee","NotifyCollectionChangedEventHandler:ef","NotifyCollectionChangedEventArgs:eg","EventArgs:eh","NotifyCollectionChangedAction:ei","INotifyPropertyChanged:ej","PropertyChangedEventHandler:ek","PropertyChangedEventArgs:el","Delegate:em","CssHelper:en","JQuery:eo","JQueryDeferred:ep","JQueryPromise:eq","Action:er","CssGradientUtil:es","RadialGaugeScaleFrame:et","RadialGaugeRangeFrame:eu","BackingFrame:ev","RadialGaugeNeedlePreparer:ew","RadialGaugeNeedleParameters:ex","XamRadialGaugeView:ey","XamRadialGauge:ez","Control:e0","Thickness:e1","HorizontalAlignment:e2","VerticalAlignment:e3","DoubleAnimator:e4","EasingFunctionHandler:e5","Callback:e6","RadialGaugeRangeCollection:e7","RadialGaugeScaler:e8","StackPool$1:e9","Dictionary$2:fa","IDictionary$2:fb","IDictionary:fc","IEqualityComparer$1:fd","KeyValuePair$2:fe","NotImplementedException:ff","Stack$1:fg","ReverseArrayEnumerator$1:fh","FormatRadialGaugeLabelHandler:fi","FormatRadialGaugeLabelEventArgs:fj","AlignRadialGaugeLabelHangler:fk","AlignRadialGaugeLabelEventArgs:fl","XamRadialGaugeRange:fm","PolygonUtil:fn","RenderingContext:fo","IRenderer:fp","Rectangle:fq","Polygon:fr","Polyline:fs","DataTemplateRenderInfo:ft","DataTemplatePassInfo:fu","ContentControl:fv","DataTemplate:fw","DataTemplateRenderHandler:fx","DataTemplateMeasureHandler:fy","DataTemplateMeasureInfo:fz","DataTemplatePassHandler:f0","Line:f1","FontUtil:f2","window:f3","DivElement:f4","CanvasElement:f5","CanvasContext:f6","CanvasViewRenderer:f7","CanvasContext2D:f8","TextMetrics:f9","ImageData:ga","Gradient:gb","BezierSegment:gc","TranslateTransform:gd","ScaleTransform:ge","PathVisualData:gf","AbstractEnumerable:gg","AbstractEnumerator:gh","GenericEnumerable$1:gi","GenericEnumerator$1:gj"]);n.ig.util.defType("RadialGaugePivotShape:dm","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialGaugePivotShape",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialGaugeNeedleShape:dl","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialGaugeNeedleShape",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialGaugeScaleOversweepShape:dk","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialGaugeScaleOversweepShape",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialGaugeBackingShape:dj","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialGaugeBackingShape",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialGaugeDuplicateLabelOmissionStrategy:di","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialGaugeDuplicateLabelOmissionStrategy",n.ig.$ep.$type)},!0);n.ig.util.defType("GaugeVisualData:a","Object",{init:function(){n.ig.$op.init.call(this)},_scalePath:null,scalePath:function(n){return arguments.length===1?(this._scalePath=n,n):this._scalePath},_needlePath:null,needlePath:function(n){return arguments.length===1?(this._needlePath=n,n):this._needlePath},_backingPath:null,backingPath:function(n){return arguments.length===1?(this._backingPath=n,n):this._backingPath},_underlayPath:null,underlayPath:function(n){return arguments.length===1?(this._underlayPath=n,n):this._underlayPath},_overlayPath:null,overlayPath:function(n){return arguments.length===1?(this._overlayPath=n,n):this._overlayPath},_scale:null,scale:function(n){return arguments.length===1?(this._scale=n,n):this._scale},_scaleLabels:null,scaleLabels:function(n){return arguments.length===1?(this._scaleLabels=n,n):this._scaleLabels},_scaleTickmarks:null,scaleTickmarks:function(n){return arguments.length===1?(this._scaleTickmarks=n,n):this._scaleTickmarks},_needle:null,needle:function(n){return arguments.length===1?(this._needle=n,n):this._needle},_ranges:null,ranges:function(n){return arguments.length===1?(this._ranges=n,n):this._ranges},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},scaleByViewport:function(){var n,f,t,i,r,u;if(this.scalePath()!=null&&this.scalePath().scaleByViewport(this.viewport()),this.needlePath()!=null&&this.needlePath().scaleByViewport(this.viewport()),this.backingPath()!=null&&this.backingPath().scaleByViewport(this.viewport()),this.underlayPath()!=null&&this.underlayPath().scaleByViewport(this.viewport()),this.overlayPath()!=null&&this.overlayPath().scaleByViewport(this.viewport()),this.scaleLabels()!=null)for(n=this.scaleLabels().getEnumerator();n.moveNext();)f=n.current(),f.scaleByViewport(this.viewport());if(this.scaleTickmarks()!=null)for(t=this.scaleTickmarks().getEnumerator();t.moveNext();)i=t.current(),i.tickPath()!=null&&i.tickPath().scaleByViewport(this.viewport());if(this.ranges()!=null)for(r=this.ranges().getEnumerator();r.moveNext();)u=r.current(),u.rangePath()!=null&&u.rangePath().scaleByViewport(this.viewport())},serialize:function(){var n=new t.ax,i=!0,r,u,h,f,e,c,o,s,l;if(n.f("{"),this.scalePath()!=null&&(i?i=!1:n.d(", "),n.d("scalePath: "),n.f(this.scalePath().serialize())),this.needlePath()!=null&&(i?i=!1:n.d(", "),n.d("needlePath: "),n.f(this.needlePath().serialize())),this.backingPath()!=null&&(i?i=!1:n.d(", "),n.d("backingPath: "),n.f(this.backingPath().serialize())),this.underlayPath()!=null&&(i?i=!1:n.d(", "),n.d("underlayPath: "),n.f(this.underlayPath().serialize())),this.overlayPath()!=null&&(i?i=!1:n.d(", "),n.d("overlayPath: "),n.f(this.overlayPath().serialize())),this.scaleLabels()!=null){for(i?i=!1:n.d(", "),r=!0,n.d("scaleLabels: ["),u=this.scaleLabels().getEnumerator();u.moveNext();)h=u.current(),r?r=!1:n.d(", "),n.f(h.serialize());n.f("]")}if(this.scaleTickmarks()!=null){for(i?i=!1:n.d(", "),f=!0,n.d("scaleTickmarks: ["),e=this.scaleTickmarks().getEnumerator();e.moveNext();)c=e.current(),f?f=!1:n.d(", "),n.f(c.serialize());n.f("]")}if(this.needle()!=null&&(i?i=!1:n.d(", "),n.d("needle: "),n.f(this.needle().serialize())),this.ranges()!=null){for(i?i=!1:n.d(", "),o=!0,n.d("ranges: ["),s=this.ranges().getEnumerator();s.moveNext();)l=s.current(),o?o=!1:n.d(", "),n.f(l.serialize());n.f("]")}return this.name()!=null&&(i?i=!1:n.d(", "),n.d("name: '"),n.d(this.name()),n.f("'")),i?i=!1:n.d(", "),n.d("viewport: {"),n.d("left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()),n.f("}"),n.f("}"),n.b()},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},$type:new n.ig.Type("GaugeVisualData",n.ig.$ot)},!0);n.ig.util.defType("CommonData:db","Object",{init:function(){n.ig.$op.init.call(this)},_borderBrush:null,borderBrush:function(n){return arguments.length===1?(this._borderBrush=n,n):this._borderBrush},_borderThickness:null,borderThickness:function(n){return arguments.length===1?(this._borderThickness=n,n):this._borderThickness},$type:new n.ig.Type("CommonData",n.ig.$ot)},!0);n.ig.util.defType("ScaleVisualData:c3","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("ScaleVisualData",n.ig.$ot)},!0);n.ig.util.defType("ScaleLabelVisualData:c8","Object",{init:function(){n.ig.$op.init.call(this)},_labelValue:null,labelValue:function(n){return arguments.length===1?(this._labelValue=n,n):this._labelValue},_labelSize:null,labelSize:function(n){return arguments.length===1?(this._labelSize=n,n):this._labelSize},_labelPosition:null,labelPosition:function(n){return arguments.length===1?(this._labelPosition=n,n):this._labelPosition},_appearance:null,appearance:function(n){return arguments.length===1?(this._appearance=n,n):this._appearance},scaleByViewport:function(i){this.labelPosition({__x:(this.labelPosition().__x-i.left())/i.width(),__y:(this.labelPosition().__y-i.top())/i.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.labelSize(new t.av(this.labelSize().b()/i.width(),this.labelSize().a()/i.height()))},serialize:function(){return"{ labelValue: '"+this.labelValue()+"', labelSize: { width: "+this.labelSize().b()+", height: "+this.labelSize().a()+"}, labelPosition: { x: "+this.labelPosition().__x+", y: "+this.labelPosition().__y+"}, appearance: "+this.appearance().serialize()+"}"},$type:new n.ig.Type("ScaleLabelVisualData",n.ig.$ot)},!0);n.ig.util.defType("ScaleLabelVisualDataList:c4","List$1",{init:function(){t.$a1.init.call(this,t.$c8.$type)},$type:new n.ig.Type("ScaleLabelVisualDataList",t.$a1.$type.specialize(t.$c8.$type))},!0);n.ig.util.defType("ScaleTickmarkVisualData:c9","Object",{init:function(){n.ig.$op.init.call(this)},_tickPath:null,tickPath:function(n){return arguments.length===1?(this._tickPath=n,n):this._tickPath},serialize:function(){return"{ tickPath: "+this.tickPath().serialize()+"}"},$type:new n.ig.Type("ScaleTickmarkVisualData",n.ig.$ot)},!0);n.ig.util.defType("ScaleTickmarkVisualDataList:c5","List$1",{init:function(){t.$a1.init.call(this,t.$c9.$type)},$type:new n.ig.Type("ScaleTickmarkVisualDataList",t.$a1.$type.specialize(t.$c9.$type))},!0);n.ig.util.defType("NeedleVisualData:c6","Object",{init:function(){n.ig.$op.init.call(this)},_angle:0,angle:function(n){return arguments.length===1?(this._angle=n,n):this._angle},serialize:function(){return"{ angle: "+this.angle().toString()+"}"},$type:new n.ig.Type("NeedleVisualData",n.ig.$ot)},!0);n.ig.util.defType("RangeVisualData:da","Object",{init:function(){n.ig.$op.init.call(this)},_rangePath:null,rangePath:function(n){return arguments.length===1?(this._rangePath=n,n):this._rangePath},serialize:function(){return"{ rangePath: "+this.rangePath().serialize()+"}"},$type:new n.ig.Type("RangeVisualData",n.ig.$ot)},!0);n.ig.util.defType("RangeVisualDataList:c7","List$1",{init:function(){t.$a1.init.call(this,t.$da.$type)},$type:new n.ig.Type("RangeVisualDataList",t.$a1.$type.specialize(t.$da.$type))},!0);n.ig.util.defType("MorphSegment:dc","Object",{init:function(){n.ig.$op.init.call(this);this.f=new t.a1(t.$aw.$type,0);this.g=new t.a1(t.$aw.$type,0)},f:null,g:null,b:!1,h:0,e:!1,a:!1,d:!1,c:!1,j:function(){var u,v,f,e,s,h,y,c,l,a;if(this.g.clear(),u=20,this.b){this.f.count()==0?(f={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},e={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(f=this.f.__inner[0],e=this.f.__inner[1]);for(var o=t.$dd.i(f,e,this.h,!this.c,this.d),i=t.$dd.c(o,f),r=t.$dd.c(o,e);this.c&&r<i;)r+=3.14159265358979*2;while(!this.c&&r>i)r-=3.14159265358979*2;for(s=0,h=0;h<u;h++)v=h/u,s=this.c?i+(r-i)*v:i-(i-r)*v,this.g.add({__x:o.__x+Math.cos(s)*this.h,__y:o.__y+Math.sin(s)*this.h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}else{this.f.count()==0?(c={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},l={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(c=this.f.__inner[0],l=this.f.__inner[1]);var p=c.__x,w=c.__y,b=l.__x,k=l.__y;for(a=0;a<u;a++)y=a/u,this.g.add({__x:p+(b-p)*y,__y:w+(k-w)*y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}this.a=!0},i:function(i,r,u,f,e){var s=this,v=null,c=s.f,l=c.count(),y,o,p,h,w,b,a;if(l==0)return i;if(r.__segments.count()==0&&(y=c.__inner[0],r.__startPoint={__x:f+u*y.__x,__y:e+u*y.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s.b)l>1&&(o=new t.cr,v=o,p=c.__inner[1],o.d({__x:f+u*p.__x,__y:e+u*p.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.b(s.d),o.e(s.c?1:0),o.f(new t.av(s.h*u,s.h*u)),i=o.d());else if(h=new t.co,v=h,l>1){for(b=h.__points,a=1;a<l;a++)w=c.__inner[a],b.add({__x:f+u*w.__x,__y:e+u*w.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i=h.__points.__inner[h.__points.count()-1]}return r.__segments.add(v),i},k:function(i,r,u){var f=this,e=r.f,h=!1,o=u.f,c=!1,l,a,s;if(e.count()!=0||o.count()!=0){if(f.b=!1,f.e=!1,f.a=!1,f.d=!1,f.c=!1,r.e&&(h=!0),u.e&&(c=!0),(r.b!=u.b||r.e||u.e||r.d!=u.d||r.c!=u.c)&&(h=!0,c=!0,f.e=!0),h&&!r.e&&(r.a||r.j(u.h),e=r.g),c&&!u.e&&(u.a||u.j(r.h),o=u.g),r.e&&(e=r.g),u.e&&(o=u.g),f.g.clear(),r.b&&u.b&&(f.b=!0),t.$df.a(f.f,i,e,o),f.e){for(a=f.f.count(),s=0;s<a;s++)l=f.f.__inner[s],f.g.add({__x:l.__x,__y:l.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});f.a=!0}r.d==u.d&&(f.d=u.d);r.c==u.c&&(f.c=u.c);f.b&&(f.h=r.h+(u.h-r.h)*i)}},l:function(){this.f.clear();this.g.clear();this.e=!1;this.a=!1;this.b=!1},$type:new n.ig.Type("MorphSegment",n.ig.$ot)},!0);n.ig.util.defType("RadialGaugeFrame:dn","Object",{init:function(){n.ig.$op.init.call(this);this.b(new t.dp);this.c(new t.et);this.a(new t.ev)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},e:function(n,t,i){this.d(t.d()+(i.d()-t.d())*n);this.b().ag(n,t.b(),i.b());this.c().x(n,t.c(),i.c());this.a().k(n,t.a(),i.a())},$type:new n.ig.Type("RadialGaugeFrame",n.ig.$ot)},!0);n.ig.util.defType("RadialGaugeNeedleFrame:dp","Object",{init:function(){n.ig.$op.init.call(this);this.d(new t.dc);this.b(new t.dc);this.t(new t.dc);this.e(new t.dc);this.f(new t.dc);this.x(new t.dc);this.v(new t.dc);this.w(new t.dc);this.z(new t.dc);this.y(new t.dc);this.u(new t.dc);this.h(new t.dc);this.g(new t.dc);this.c(new t.dc);this.s(new t.dc);this.a(new t.dc);this.q(new t.dc);this.r(new t.dc);this.i(new t.dc);this.l(new t.dc);this.m(new t.dc);this.p(new t.dc);this.j(new t.dc);this.k(new t.dc);this.n(new t.dc);this.o(new t.dc)},_ad:0,ad:function(n){return arguments.length===1?(this._ad=n,n):this._ad},_ac:0,ac:function(n){return arguments.length===1?(this._ac=n,n):this._ac},_af:0,af:function(n){return arguments.length===1?(this._af=n,n):this._af},_ab:0,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},_ak:null,ak:function(n){return arguments.length===1?(this._ak=n,n):this._ak},_aa:0,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_ae:0,ae:function(n){return arguments.length===1?(this._ae=n,n):this._ae},_ai:null,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_ah:null,ah:function(n){return arguments.length===1?(this._ah=n,n):this._ah},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_t:null,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_w:null,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_s:null,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_q:null,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_r:null,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},ag:function(n,i,r){this.ad(i.ad()+(r.ad()-i.ad())*n);this.ac(i.ac()+(r.ac()-i.ac())*n);this.af(i.af()+(r.af()-i.af())*n);this.ab(i.ab()+(r.ab()-i.ab())*n);this.aj(t.$dq.g(i.aj(),n,r.aj(),0));this.ak(t.$dq.g(i.ak(),n,r.ak(),0));this.ae(i.ae()+(r.ae()-i.ae())*n);this.aa(i.aa()+(r.aa()-i.aa())*n);this.ah(t.$dq.g(i.ah(),n,r.ah(),0));this.ai(t.$dq.g(i.ai(),n,r.ai(),0));this.d().k(n,i.d(),r.d());this.b().k(n,i.b(),r.b());this.t().k(n,i.t(),r.t());this.e().k(n,i.e(),r.e());this.f().k(n,i.f(),r.f());this.x().k(n,i.x(),r.x());this.v().k(n,i.v(),r.v());this.w().k(n,i.w(),r.w());this.z().k(n,i.z(),r.z());this.y().k(n,i.y(),r.y());this.u().k(n,i.u(),r.u());this.h().k(n,i.h(),r.h());this.g().k(n,i.g(),r.g());this.c().k(n,i.c(),r.c());this.s().k(n,i.s(),r.s());this.a().k(n,i.a(),r.a());this.q().k(n,i.q(),r.q());this.r().k(n,i.r(),r.r());this.i().k(n,i.i(),r.i());this.l().k(n,i.l(),r.l());this.m().k(n,i.m(),r.m());this.p().k(n,i.p(),r.p());this.j().k(n,i.j(),r.j());this.k().k(n,i.k(),r.k());this.n().k(n,i.n(),r.n());this.o().k(n,i.o(),r.o())},am:function(i,r,u){var s=new t.b4,e=new t.ch,f={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o;return f=this.d().i(f,e,i,r,u),f=this.b().i(f,e,i,r,u),f=this.t().i(f,e,i,r,u),f=this.e().i(f,e,i,r,u),f=this.f().i(f,e,i,r,u),f=this.x().i(f,e,i,r,u),f=this.v().i(f,e,i,r,u),f=this.w().i(f,e,i,r,u),f=this.z().i(f,e,i,r,u),f=this.y().i(f,e,i,r,u),f=this.u().i(f,e,i,r,u),f=this.h().i(f,e,i,r,u),f=this.g().i(f,e,i,r,u),f=this.c().i(f,e,i,r,u),f=this.s().i(f,e,i,r,u),f=this.a().i(f,e,i,r,u),e.__isClosed=!0,s.b().add(e),o=new t.ch,(this.q().f.count()>0||this.r().f.count()>0)&&(f=this.q().i(f,o,i,r,u),f=this.r().i(f,o,i,r,u),o.__isClosed=!0,s.b().add(o)),s},an:function(i,r,u){var s=new t.b4,f={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o=new t.ch,e;return(this.m().f.count()>0||this.p().f.count()>0)&&(f=this.m().i(f,o,i,r,u),f=this.p().i(f,o,i,r,u),o.__isClosed=!0,s.b().add(o)),e=new t.ch,(this.n().f.count()>0||this.o().f.count()>0)&&(f=this.n().i(f,e,i,r,u),f=this.o().i(f,e,i,r,u),e.__isClosed=!0,s.b().add(e)),s},al:function(i,r,u){var s=new t.b4,f={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o=new t.ch,e;return(this.i().f.count()>0||this.l().f.count()>0)&&(f=this.i().i(f,o,i,r,u),f=this.l().i(f,o,i,r,u),o.__isClosed=!0,s.b().add(o)),e=new t.ch,(this.j().f.count()>0||this.k().f.count()>0)&&(f=this.j().i(f,e,i,r,u),f=this.k().i(f,e,i,r,u),e.__isClosed=!0,s.b().add(e)),s},$type:new n.ig.Type("RadialGaugeNeedleFrame",n.ig.$ot)},!0);n.ig.util.defType("RadialGaugeRangeFrame:eu","Object",{init:function(){n.ig.$op.init.call(this)},f:0,g:0,e:0,b:0,c:0,d:0,k:null,l:null,h:0,a:function(n,i,r,u){var f=new t.eu;return f.k=t.$dq.g(r.k,n,u.k,0),f.l=t.$dq.g(r.l,n,u.l,0),f.h=i*r.h+n*u.h,f.f=i*r.f+n*u.f,f.g=i*r.g+n*u.g,f.e=i*r.e+n*u.e,f.b=i*r.b+n*u.b,f.c=i*r.c+n*u.c,f.d=i*r.d+n*u.d,f},m:function(n,i,r){var f=new t.b4,u=new t.ch,k=4,d=1/n,l=!1,e,a,v,nt,s,y,p,h,c,w,b;if(Math.abs(this.g-this.d)<d&&(l=!0),e=!1,Math.abs(this.f-this.c)<d&&(e=!0),a=!1,this.b-this.e>=2*3.14159265358979&&(a=!0),e&&l&&a){v=this.i(0,3.14159265358979,this.g,n,i,r,!0);u.__startPoint=v.a();var tt=this.i(3.14159265358979,0,this.g,n,i,r,!0),o=new t.ch,g=this.i(0,3.14159265358979,this.f,n,i,r,!1);return o.__startPoint=g.a(),nt=this.i(3.14159265358979,0,this.f,n,i,r,!1),u.__segments.add(v.b()),u.__segments.add(tt.b()),o.__segments.add(g.b()),o.__segments.add(nt.b()),f.b().add(u),f.b().add(o),f}return s=null,l?(y=this.i(this.e,this.b,this.g,n,i,r,!0),u.__startPoint=y.a(),s=y.b()):(p=this.j(this.e,this.b,this.g,this.d,n,i,r,!0,k),u.__startPoint=p.a(),s=p.b()),h=null,c=new t.cl(1),e?(w=this.i(this.e,this.b,this.f,n,i,r,!1),h=w.b(),c.c(w.a())):(b=this.j(this.e,this.b,this.f,this.c,n,i,r,!1,k),h=b.b(),c.c(b.a())),u.__segments.add(s),u.__segments.add(c),u.__segments.add(h),u.__isFilled=!0,u.__isClosed=!0,f.b().add(u),f},j:function(i,r,u,f,e,o,s,h,c){var g=new t.co,w=e*u,nt=e*f,tt=Math.max(w,nt),rt=tt+tt,it=Math.asin(c/rt)*2,y,l,p,k=nt-w,d=Math.abs(r-i),b=g.__points,a,v;if(h){for(a=i;a<r;a+=it)p=(a-i)/d,l=w+p*k,y={__x:o+Math.cos(a)*l,__y:s+Math.sin(a)*l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},b.add(y);a=r;p=(a-i)/d;l=w+p*k;y={__x:o+Math.cos(a)*l,__y:s+Math.sin(a)*l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};b.add(y)}else{for(v=r;v>i;v-=it)p=(v-r)/d,l=w+p*k,y={__x:o+Math.cos(v)*l,__y:s+Math.sin(v)*l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},b.add(y);v=i;p=(v-r)/d;l=w+p*k;y={__x:o+Math.cos(v)*l,__y:s+Math.sin(v)*l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};b.add(y)}return new t.de(t.$aw.$type,t.$cj.$type,b.__inner[0],g)},i:function(i,r,u,f,e,o,s){var h=u*f,c=new t.cr,l,a,v;return c.e(s?1:0),c.b(r-i>3.14159265358979),c.f(new t.av(h,h)),l=s?r:i,a=s?i:r,c.d({__x:e+Math.cos(l)*h,__y:o+Math.sin(l)*h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),v={__x:e+Math.cos(a)*h,__y:o+Math.sin(a)*h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},new t.de(t.$aw.$type,t.$cj.$type,v,c)},$type:new n.ig.Type("RadialGaugeRangeFrame",n.ig.$ot)},!0);n.ig.util.defType("BackingFrame:ev","Object",{init:function(){n.ig.$op.init.call(this)},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_g:0,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_f:0,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},k:function(n,i,r){this.h(i.h()+(r.h()-i.h())*n);this.l(t.$dq.g(i.l(),n,r.l(),0));this.m(t.$dq.g(i.m(),n,r.m(),0));this.g(i.g()+(r.g()-i.g())*n);this.c(i.c()+(r.c()-i.c())*n);this.e(i.e()+(r.e()-i.e())*n);this.d(i.d()+(r.d()-i.d())*n);this.b(i.b()+(r.b()-i.b())*n);this.f(i.f()+(r.f()-i.f())*n)},i:function(i,r,u,f){var e=this,o,s;i.__startPoint={__x:r*e.e()+u,__y:0+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};o=function(){var i=new t.cr;return i.d({__x:-1*r*e.e()+u,__y:0+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(!1),i.e(1),i.f(new t.av(r*e.e(),r*e.e())),i}();s=function(){var i=new t.cr;return i.d({__x:r*e.e()+u,__y:0+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(!1),i.e(1),i.f(new t.av(r*e.e(),r*e.e())),i}();i.__segments.add(o);i.__segments.add(s)},n:function(n,i,r){var o=new t.b4,u=new t.ch;if(this.g()==this.c())this.i(u,n,i,r);else{var h=this.e(),c=this.d(),f=this.g(),e=this.c(),s=this.f(),l=f,a=e;f-=s;e+=s;e-f>2*3.14159265358979?this.i(u,n,i,r):this.j(u,n,i,r)}return u.__isClosed=!0,o.b().add(u),o},a:function(n,t){return Math.abs(n-t)<1e-5},j:function(i,r,u,f){var a=this,si=a.e(),hi=a.d(),p=a.g(),w=a.c(),at=a.f(),vt=p,yt=w,gt,ii,l,ri,tt,it,ui,fi,lt,ft,ei,oi;p-=at;w+=at;var b=Math.sin(p),k=Math.cos(p),et=Math.sin(w),ot=Math.cos(w),v=a.b(),e=r*si,o=r*hi;v*2>e-o&&(v=(e-o)/2);var ci=v/(r-v),h=Math.atan(ci),d=e-v,ki=o+v,di=Math.sin(p-h),li=Math.sin(p+h),gi=Math.cos(p-h),ai=Math.cos(p+h),vi=Math.sin(w-h),nr=Math.sin(w+h),yi=Math.cos(w-h),tr=Math.cos(w+h),pt=Math.sin(vt),wt=Math.sin(yt),bt=Math.cos(vt),kt=Math.cos(yt);i.__startPoint={__x:k*d+u,__y:b*d+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};var pi=function(){var i=new t.cr;return i.d({__x:ai*e+u,__y:li*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(h*2>3.14159265358979),i.e(1),i.f(new t.av(v,v)),i}(),st=function(){var i=new t.cr;return i.d({__x:yi*e+u,__y:vi*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(w-h-(p+h)>3.14159265358979),i.e(1),i.f(new t.av(e,e)),i}(),wi=function(){var i=new t.cr;return i.d({__x:ot*d+u,__y:et*d+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(h*2>3.14159265358979),i.e(1),i.f(new t.av(v,v)),i}(),ht={__x:kt*e+u,__y:wt*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},rt={__x:kt*o+u,__y:wt*o+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},s={__x:ot*e+u,__y:et*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},g={__x:ot*o+u,__y:et*o+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},dt=s.__y,bi=s.__x;ht.__x-rt.__x!=0&&(bi=u,gt=(ht.__y-rt.__y)/(ht.__x-rt.__x),dt=gt*(u-s.__x)+s.__y);g={__x:u,__y:dt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};a.a(g.__x,s.__x)&&a.a(g.__y,s.__y)&&(g=rt);var y=t.$dd.l(g,s,{__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o),ct={__x:bt*e+u,__y:pt*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ut={__x:bt*o+u,__y:pt*o+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},c={__x:k*e+u,__y:b*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},nt={__x:k*o+u,__y:b*o+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ni=c.__y,ti=c.__x;if(ct.__x-ut.__x!=0&&(ti=u,ii=(ct.__y-ut.__y)/(ct.__x-ut.__x),ni=ii*(u-c.__x)+c.__y),nt={__x:ti,__y:ni,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},a.a(nt.__x,c.__x)&&a.a(nt.__y,c.__y)&&(nt=ut),l=t.$dd.l(nt,c,{__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o),isNaN(y.a().__x)||isNaN(y.a().__y)||isNaN(y.b().__x)||isNaN(y.b().__y)||isNaN(l.a().__x)||isNaN(l.a().__y)||isNaN(l.b().__x)||isNaN(l.b().__y))i.__startPoint={__x:k*e+u,__y:b*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i.__segments.add(st),ri=function(){var i=new t.cl(1);return i.c({__x:k*e+u,__y:b*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),i.__segments.add(ri);else if(tt=Math.pow(y.a().__x-s.__x,2)+Math.pow(y.a().__y-s.__y,2)<Math.pow(y.b().__x-s.__x,2)+Math.pow(y.b().__y-s.__y,2)?y.a():y.b(),it=Math.pow(l.a().__x-c.__x,2)+Math.pow(l.a().__y-c.__y,2)<Math.pow(l.b().__x-c.__x,2)+Math.pow(l.b().__y-c.__y,2)?l.a():l.b(),Math.pow(it.__x-s.__x,2)+Math.pow(it.__y-s.__y,2)<=Math.pow(tt.__x-s.__x,2)+Math.pow(tt.__y-s.__y,2))i.__startPoint={__x:k*e+u,__y:b*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i.__segments.add(st),ui=function(){var i=new t.cl(1);return i.c({__x:k*e+u,__y:b*e+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),i.__segments.add(ui);else{for(i.__segments.add(pi),i.__segments.add(st),i.__segments.add(wi),fi=function(){var n=new t.cl(1);return n.c(tt),n}(),i.__segments.add(fi),lt=t.$dd.c({__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},tt),ft=t.$dd.c({__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},it);ft<lt;)ft+=2*3.14159265358979;ei=function(){var n=new t.cr;return n.d(it),n.b(ft-lt>3.14159265358979),n.e(1),n.f(new t.av(o,o)),n}();i.__segments.add(ei);oi=function(){var i=new t.cl(1);return i.c({__x:k*d+u,__y:b*d+f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}();i.__segments.add(oi)}},$type:new n.ig.Type("BackingFrame",n.ig.$ot)},!0);n.ig.util.defType("RadialGaugeScaleFrame:et","Object",{init:function(){n.ig.$op.init.call(this);this.k(new t.a1(t.$eu.$type,0));this.j(new Array(0));this.i(new Array(0));this.c(new Array(0));this.e(new Array(0));this.f(new Array(0));this.d(new Array(0));this.g(new Array(0));this.h(new Array(0))},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_t:0,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_q:0,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_v:0,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_u:0,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_n:0,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_s:0,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_p:0,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_ac:null,ac:function(n){return arguments.length===1?(this._ac=n,n):this._ac},_w:0,w:function(n){return arguments.length===1?(this._w=n,n):this._w},_o:0,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_aa:null,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},_r:0,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},a:function(n,t,i,r){var e=Math.max(i.length,r.length),c=Math.min(i.length,r.length),o,s,l,u,f,h;for(t.length!=e&&(t=new Array(e)),o=0,i.length>0&&(o=i[i.length-1]),s=0,r.length>0&&(s=r[r.length-1]),l=i.length>r.length,u=0,u=0;u<c;u++)t[u]=i[u]+(r[u]-i[u])*n;for(u=c;u<e;u++)l?(f=i[u],h=s):(f=o,h=r[u]),t[u]=f+(h-f)*n;return t},b:function(n,t,i,r){var e=Math.max(i.length,r.length),c=Math.min(i.length,r.length),o,s,l,u,h,f;for(t.length!=e&&(t=new Array(e)),o=null,i.length>0&&(o=i[i.length-1]),s=null,r.length>0&&(s=r[r.length-1]),l=i.length>r.length,u=0,u=0;u<c;u++)t[u]=r[u];for(u=c;u<e;u++)l?(h=i[u],f=s):(h=o,f=r[u]),t[u]=f!=null?f:h;return t},x:function(n,i,r){this.ab(t.$dq.g(i.ab(),n,r.ab(),0));this.ac(t.$dq.g(i.ac(),n,r.ac(),0));this.aa(t.$dq.g(i.aa(),n,r.aa(),0));i.z()==null&&r.z()==null?this.z(null):this.z(t.$dq.g(i.z(),n,r.z(),0));this.t(i.t()+(r.t()-i.t())*n);this.q(i.q()+(r.q()-i.q())*n);this.s(i.s()+(r.s()-i.s())*n);this.p(i.p()+(r.p()-i.p())*n);this.r(i.r()+(r.r()-i.r())*n);this.l(i.l()+(r.l()-i.l())*n);this.v(i.v()+(r.v()-i.v())*n);this.u(i.u()+(r.u()-i.u())*n);this.n(i.n()+(r.n()-i.n())*n);this.m(i.m()+(r.m()-i.m())*n);this.w(i.w()+(r.w()-i.w())*n);this.o(i.o()+(r.o()-i.o())*n);this.j(this.a(n,this.j(),i.j(),r.j()));this.i(this.a(n,this.i(),i.i(),r.i()));this.c(this.a(n,this.c(),i.c(),r.c()));this.f(this.a(n,this.f(),i.f(),r.f()));this.d(this.a(n,this.d(),i.d(),r.d()));this.g(this.a(n,this.g(),i.g(),r.g()));this.h(this.a(n,this.h(),i.h(),r.h()));this.e(this.b(n,this.e(),i.e(),r.e()));this.y(n,this.k(),i.k(),r.k())},y:function(n,i,r,u){var f=this;t.$df.b(t.$eu.$type,i,n,r,u,function(){return new t.eu},t.$eu.a)},$type:new n.ig.Type("RadialGaugeScaleFrame",n.ig.$ot)},!0);n.ig.util.defType("RadialGaugeNeedlePreparer:ew","Object",{init:function(){n.ig.$op.init.call(this)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},e:function(n){var t=this.b();n.aj(t.t);n.ak(t.u);n.ah(t.r);n.ai(t.s);n.ae(t.o);n.aa(t.h);switch(t.b){case 0:this.i(n);break;case 1:this.j(n);break;case 2:this.n(n);break;case 4:this.l(n);break;case 5:this.k(n);break;case 3:this.g(n);break;case 7:this.h(n);break;case 8:this.m(n);break;case 6:this.o(n)}switch(t.c){case 3:this.d(n,!0,!1);break;case 5:this.d(n,!1,!1);break;case 4:this.d(n,!0,!0);break;case 6:this.d(n,!1,!0)}},d:function(t,i,r){var s=this.a(),e=s.i,h=s.g,o=s.f,u=t.m(),f;i&&(u=t.i());f=u.f;u.b=!0;u.c=!0;u.d=!1;u.h=e;f.add({__x:0+e,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});f.add({__x:0-e,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});u=t.p();i&&(u=t.l());f=u.f;u.b=!0;u.c=!0;u.d=!0;u.h=e;f.add({__x:0-e,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});f.add({__x:0+e,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r&&(u=t.n(),i&&(u=t.j()),f=u.f,u.b=!0,u.c=!1,u.d=!1,u.h=o,f.add({__x:0+o,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f.add({__x:0-o,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u=t.o(),i&&(u=t.k()),f=u.f,u.b=!0,u.c=!1,u.d=!0,u.h=o,f.add({__x:0-o,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f.add({__x:0+o,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}))},o:function(n){this.f(n,!1,!0,!1,!0)},m:function(n){this.f(n,!1,!1,!0,!0)},l:function(n){this.f(n,!1,!1,!0,!1)},n:function(n){this.f(n,!1,!0,!1,!1)},h:function(n){this.f(n,!1,!1,!1,!0)},c:function(n,t,i,r,u){var f=0;return f=i==n?0:(u-n)/(i-n),t+(r-t)*f},f:function(i,r,u,f,e){var l,ni,et,ii,ri,bt,at,st,ht,it,gt,pt;this.p(i);l=this.a();i.ad(l.m);i.ac(l.k);i.af(0);isNaN(l.l)||i.af(Math.max(i.af(),l.l));isNaN(l.i)||i.af(Math.max(i.af(),l.i));isNaN(l.q)||i.af(Math.max(i.af(),l.q));isNaN(l.e)||i.af(Math.max(i.af(),l.e));u&&(l.p=l.k,l.q=0);f&&(l.p=l.k,l.q=l.l);r&&(ni=Math.max(l.n,l.l),l.n=ni,l.l=ni,l.p=l.k,l.q=l.l);isNaN(l.p)&&(l.p=l.k);var d=l.c==1||l.c==2,y=l.n,ei=l.l;f||r||(ei=0);var p=l.q,ct=l.i,a=l.m,rt=l.k,k=l.d,v=l.p,ut=l.e,si=!0,hi=!0;isNaN(v)&&(si=!1,v=rt);isNaN(k)&&(hi=!1,k=a);var ft=l.f,ti=l.g,w=ti,b=ti,ot=this.c(a,y,v,p,ti),lt=ot,wt=l.c==2;d&&(et=t.$dd.l({__x:a,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:v,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ct),isNaN(et.a().__x)||isNaN(et.a().__y)||isNaN(et.b().__x)||isNaN(et.b().__y)?d=!1:(ii=et.a(),ri=et.b(),w=ii.__x,b=ri.__x,ot=ii.__y,lt=ri.__y,w>b&&(bt=w,w=b,b=bt,bt=ot,ot=lt,lt=bt)));wt&&(at=t.$dd.l({__x:a,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:v,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ft),wt=isNaN(at.a().__x)||isNaN(at.a().__y)||isNaN(at.b().__x)||isNaN(at.b().__y)||d?!0:!1);(a>b||rt<w)&&(d=!1,w=a,b=a);st=!1;ht=!1;d&&a>=w&&(st=!0);d&&rt<=b&&(ht=!0);(isNaN(k)||k>w)&&(k=w);v<b&&(v=b);var g=e,oi=ct,ui=ct;k+ut>w&&(g=!1);var nt=k,vt=y,tt=k,yt=y,kt=w,ci=b,fi=ot,li=lt,ai=w,dt=b,vi=ot,yi=lt;g&&(it=t.$dd.l({__x:a,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:v,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:k,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ut),isNaN(it.a().__x)||isNaN(it.a().__y)||isNaN(it.b().__x)||isNaN(it.b().__y)?g=!1:(g=!0,nt=it.a().__x,vt=it.a().__y,tt=it.b().__x,yt=it.b().__y,nt>tt&&(gt=nt,nt=tt,tt=gt,gt=vt,vt=yt,yt=gt)));st&&(g=!1);g&&a>=nt&&(st=!0,oi=ut,kt=nt,fi=vt,ci=tt,li=yt);g&&rt<=tt&&(ht=!0,ui=ut,ui=ut,ai=nt,vi=vt,dt=tt,yi=yt);var s=a,o=i.a(),h=o.f,c=y;st&&(s=kt,o.b=!0,o.d=!1,o.c=!1,o.h=oi,k=kt,a=kt,c=fi,y=fi,d=!1);ht&&(v=dt,rt=dt,d=!1);pt=st||ht||d;h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.d();h=o.f;h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=nt;c=this.c(a,y,v,p,s);h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.b();h=o.f;g&&(o.b=!0,o.d=!1,o.c=!1,o.h=ut);h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=tt;c=this.c(a,y,v,p,s);h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.t();h=o.f;h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=w;c=this.c(a,y,v,p,s);h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.e();h=o.f;pt&&(o.b=!0,o.d=!1,o.c=!1,o.h=ct);h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=b;c=this.c(a,y,v,p,s);h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.f();h=o.f;h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=v;c=this.c(a,y,v,p,s);h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.x();h=o.f;h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.v();h=o.f;h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=rt;c=this.c(v,p,rt,ei,s);h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.w();h=o.f;ht&&(s=dt,o.b=!0,o.d=!1,o.c=!1,o.h=ui);h.add({__x:s,__y:c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.z();h=o.f;h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=v;c=this.c(a,y,v,p,s);h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.y();h=o.f;h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.u();h=o.f;h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=b;c=this.c(a,y,v,p,s);h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.h();h=o.f;pt&&(o.b=!0,o.d=!1,o.c=!1,o.h=ct);h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=w;c=this.c(a,y,v,p,s);h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.g();h=o.f;h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=tt;c=this.c(a,y,v,p,s);h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.c();h=o.f;g&&(o.b=!0,o.d=!1,o.c=!1,o.h=ut);h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=nt;c=this.c(a,y,v,p,s);h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.s();h=o.f;h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=a;c=this.c(a,y,v,p,s);h.add({__x:s,__y:-1*c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});o=i.q();h=o.f;wt&&pt&&(o.b=!0,o.c=!0,o.d=!1,o.h=ft,h.add({__x:0+ft,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h.add({__x:0-ft,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));o=i.r();h=o.f;wt&&pt&&(o.b=!0,o.c=!0,o.d=!0,o.h=ft,h.add({__x:0-ft,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),h.add({__x:0+ft,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}))},g:function(n){this.f(n,!1,!1,!1,!1)},k:function(n){this.f(n,!0,!1,!1,!0)},a:function(){var n=this.b(),i=this.b().a(),s=0,h=NaN,w=NaN,b=.1,c=.14,k,d,l,a,e,o,g,nt,u,f,v,y,p;switch(n.b){case 3:w=.4;break;case 4:b=.06;break;case 7:w=.4;s=-.3;h=-.2;c=.14;break;case 5:s=-.3;h=-.2;c=.14;break;case 8:b=.06;s=-.3;h=-.2;c=.14;break;case 6:s=-.3;h=-.2;c=.14}var t=n.m,r=n.k,tt=n.c==1||n.c==2;return isNaN(t)&&(t=s),isNaN(r)&&(r=.48),k=Math.min(t,r),d=Math.max(t,r),t=k,r=d,l=n.n,isNaN(l)&&(l=.1),a=n.l,isNaN(a)&&(a=b),e=n.i,o=n.f,isNaN(e)&&(e=.2),isNaN(o)&&(o=.1),g=Math.max(e,o),nt=Math.min(e,o),e=g,o=nt,u=n.d,isNaN(u)&&(u=h),isNaN(u)||(u<t&&(u=NaN),u>0&&t<=0&&(u=NaN),u>r&&(u=r)),f=n.p,isNaN(f)&&(f=w),isNaN(f)||(f>r&&(f=NaN),f<0&&r>=0&&(f=NaN),f<t&&(f=t)),v=0,t>0&&(v=t),r<0&&(v=t),e<=0&&(e=0),y=n.e,p=n.q,isNaN(y)&&(y=c),isNaN(p)&&(p=.06),i.i=e/2,i.f=o/2,i.d=u,i.p=f,i.m=t,i.k=r,i.g=v,i.n=l/2,i.l=a/2,i.q=p/2,i.e=y/2,i},j:function(n){this.f(n,!0,!1,!1,!1)},p:function(n){n.a().l();n.d().l();n.b().l();n.t().l();n.e().l();n.f().l();n.x().l();n.v().l();n.w().l();n.z().l();n.y().l();n.u().l();n.h().l();n.g().l();n.c().l();n.s().l();n.q().l();n.r().l();n.i().l();n.l().l();n.m().l();n.p().l();n.j().l();n.k().l();n.n().l();n.o().l()},i:function(t){var s,h;this.p(t);var c=0,l=0,e=0,o=0,a=0,u=0,f=0,r=t.a(),i=r.f;i.add({__x:c,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:c,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.d();i=r.f;i.add({__x:c,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:e,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.b();i=r.f;i.add({__x:e,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:e,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});s=a;h=a;r=t.t();i=r.f;i.add({__x:e,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:s,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.e();i=r.f;i.add({__x:s,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:h,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.f();i=r.f;i.add({__x:h,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:o,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.x();i=r.f;i.add({__x:o,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:o,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.v();i=r.f;i.add({__x:o,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:l,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.w();i=r.f;i.add({__x:l,__y:u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:l,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.z();i=r.f;i.add({__x:l,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:o,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.y();i=r.f;i.add({__x:o,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:o,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.u();i=r.f;i.add({__x:o,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:h,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.h();i=r.f;i.add({__x:h,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:s,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.g();i=r.f;i.add({__x:s,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:e,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.c();i=r.f;i.add({__x:e,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:e,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r=t.s();i=r.f;i.add({__x:e,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i.add({__x:c,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},$type:new n.ig.Type("RadialGaugeNeedlePreparer",n.ig.$ot)},!0);n.ig.util.defType("RadialGaugeNeedleParameters:ex","Object",{init:function(){n.ig.$op.init.call(this)},m:0,k:0,n:0,l:0,e:0,d:0,q:0,p:0,j:0,b:null,c:null,i:0,r:null,s:null,h:0,t:null,u:null,o:0,g:0,f:0,a:function(){var n=new t.ex;return n.m=this.m,n.k=this.k,n.n=this.n,n.l=this.l,n.e=this.e,n.d=this.d,n.q=this.q,n.p=this.p,n.b=this.b,n.c=this.c,n.i=this.i,n.r=this.r,n.s=this.s,n.h=this.h,n.t=this.t,n.u=this.u,n.o=this.o,n.g=this.g,n.f=this.f,n},$type:new n.ig.Type("RadialGaugeNeedleParameters",n.ig.$ot)},!0);n.ig.util.defType("XamRadialGaugeView:ey","Object",{init:function(i){this.bh=new t.bw;this.bj=new t.bw;this.bg=new t.bw;this.bi=new t.bw;this.bk=new t.bw;this.g=["needle","needlePivot","backing","scale","tick","minorTick","label"];this.i=!1;this.j=!1;this.aa=null;this.a5=new t.az;this.a6=function(){var n=new t.az;return n.fill("black"),n}();this.q=NaN;this.w=-1;this.v=-1;this.c=null;this.d=null;n.ig.$op.init.call(this);this.e(i);this.l=new t.fa(String,t.$fa.$type.specialize(String,String),0);this.m(new t.a1(t.$cy.$type,0));this.o(new t.a1(t.$bw.$type,0));this.p(new t.a1(t.$bw.$type,0))},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},z:null,ag:function(n){n.__visibility=0},ah:function(n){n.__visibility=1},ai:function(n){this.m().remove(n)},a4:function(){var n=new t.cy;return this.m().add(n),n},ap:function(n){n.__visibility=0},aq:function(n){n.__visibility=1},ar:function(n){this.o().remove(n)},bq:function(){var n=new t.bw;return this.o().add(n),n},at:function(n){n.__visibility=0},au:function(n){n.__visibility=1},av:function(n){this.p().remove(n)},br:function(){var n=new t.bw;return this.p().add(n),n},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},bh:null,bj:null,bg:null,bi:null,bk:null,k:function(){return!0},bm:function(){return this.bh},bo:function(){return this.bj},s:function(i){var r=n.ig.util.cast(t.$cy.$type,i);return r!=null&&r.aa()!=null?this.f().d(r.aa())+0:0},bs:function(n){isNaN(this.q)&&(this.q=this.r(null));var i=this.s(n),r=this.q;return new t.av(i,r)},l:null,g:null,af:function(){var i=this,h,u,r,o,s;i.i=!0;var a=["#CED3D8","#CED3D8","#EBEDEF","#FFC73C","#617583","rgba(100,107,114,.74)","rgba(100,107,114,.74)"],v=["#B2B9C0","#B2B9C0","#B2B9C0",null,null,null,null],e=["background-color","border-color"],y=function(){var i=new t.a1(n.ig.Array.prototype.$type,0);return i.add(a),i.add(v),i}();for(i.l.clear(),h=i.g.length,u=0;u<h;u++){var c=new t.fa(String,String,0),l=i.g[u],f=new Array(e.length);for(n.ig.Array.prototype.copy(e,0,f,0,e.length),i.h("ui-radialgauge-"+l,f),r=0;r<f.length;r++)c.item(e[r],f[r]==null?y.__inner[r][u]:f[r]);i.l.item(l,c)}i.a2(),function(){var n=t.$dq.a("radialgauge-range",i.y(),o,s);return o=n.brushes,s=n.outlines,n.ret}();i.a=o;i.b=s;i.c==null&&i.e().rangeBrushes(i.a);i.d==null&&i.e().rangeOutlines(i.b);i.i=!1},a:null,b:null,a2:function(){var i,n,t;for(this.i=!0,i=this.g.length,n=0;n<i;n++)t=this.g[n],this.a1(t,this.l.item(t));this.i=!1},a1:function(n,i){for(var r=null,f=null,o=i.count(),e=i.keys().getEnumerator(),u;e.moveNext();){u=e.current();switch(u){case"background-color":r=new t.az;i.item(u)!=null&&(r.__fill=i.item(u));break;case"border-color":f=new t.az;i.item(u)!=null&&(f.__fill=i.item(u))}}switch(n){case"needle":this.ba==null&&this.e().needleBrush(r);this.bb==null&&this.e().needleOutline(f);break;case"needlePivot":this.bc==null&&this.e().needlePivotBrush(r);this.bd==null&&this.e().needlePivotOutline(f);break;case"backing":this.a7==null&&this.e().backingBrush(r);this.a8==null&&this.e().backingOutline(f);break;case"scale":this.be==null&&this.e().scaleBrush(r);break;case"tick":this.bf==null&&this.e().tickBrush(r);break;case"minorTick":this.a9==null&&this.e().minorTickBrush(r);break;case"label":this.a6=r}},h:function(i,r){var f=this.z,u;f==null&&(f=this.z=n("<span style='position:absolute;display:none' />"),n("body").append(this.z));for(var e=r.length,o=e,s=new Array(o);o-->0;)s[o]=r[o]=="font"?null:f.css(r[o]);for(f.addClass(i);e-->0;)u=r[e],u=u=="font"?t.$f2.c(f):f.css(u),r[e]=u==null||u.length==0||u=="null"||u=="transparent"||u==s[e]?null:u;return f.removeClass(i),r},u:function(t,i){var u=t==null?0:t.length,r,f,e;if(u<1)return i;if(r=t.split("."),f=r[0].length>0?n.ig.Number.prototype.parseInt(r[0]):0,r.length!=2)return f;for(u=r[1].length,e=n.ig.Number.prototype.parseInt(r[1]);u-->0;)e/=10;return e+f},i:!1,am:function(){var n=this;n.i=!0;n.e().needleBrush(function(){var n=new t.az;return n.fill("#CED3D8"),n}());n.e().needleOutline(function(){var n=new t.az;return n.fill("#B2B9C0"),n}());n.e().tickBrush(function(){var n=new t.az;return n.fill("#617583"),n}());n.e().scaleBrush(function(){var n=new t.az;return n.fill("#FFC73C"),n}());n.e().backingBrush(function(){var n=new t.az;return n.fill("#EBEDEF"),n}());n.e().backingOutline(function(){var n=new t.az;return n.fill("#B2B9C0"),n}());n.e().needlePivotBrush(function(){var n=new t.az;return n.fill("#CED3D8"),n}());n.e().needlePivotOutline(function(){var n=new t.az;return n.fill("#B2B9C0"),n}());n.e().minorTickBrush(function(){var n=new t.az;return n.fill("rgba(100,107,114,.74)"),n}());n.i=!1},j:!1,ax:function(){this.j||(this.j=!0,window.setTimeout(this.ab.runOn(this),0))},ab:function(){this.j&&(this.j=!1,this.e().ex())},flush:function(){this.j&&this.ab()},as:function(n,t,i){n.l(t);n.m(i)},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},aa:null,a5:null,ak:function(i){var e=n(i),u,f,r,o;this.y(e);u=Math.round(e.width());f=Math.round(e.height());this.y().css("position","relative");r=n("<canvas style='position:absolute'><\/canvas>");this.y().append(r);this.w=u;this.v=f;r.attr("width",u.toString());r.attr("height",f.toString());this.z==null&&(this.z=n("<span style='position:absolute;display:none' />"));this.y().append(this.z);this.e().he(new t.au(0,0,0,u,f));this.x(r);o=this.x()[0].getContext("2d");this.f(new t.fo(new t.f7,o));this.af();this.a3();this.f().z(this.aa);this.aw()},az:function(n,t){t!=null?n.ab(t):n.ab(this.a6)},a0:function(){this.af();this.a3();this.ax()},a3:function(){this.aa=t.$f2.c(this.y());this.e().font()!=null&&(this.aa=this.e().font());this.q=this.r(this.aa);this.a5=new t.az;this.a5.__fill=this.y().css("color");this.f()!=null&&this.f().z(this.aa)},ac:function(){this.aw()},a6:null,aw:function(){var n,t,i;if((this.w!=this.e().he().width()||this.v!=this.e().he().height())&&(this.x().attr("width",this.e().he().width().toString()),this.x().attr("height",this.e().he().height().toString()),this.w=Math.round(this.e().he().width()),this.v=Math.round(this.e().he().height())),this.f().i(this.e().he().left(),this.e().he().top(),this.e().he().width(),this.e().he().height()),this.f().q(this.bg),this.f().q(this.bj),this.n!=null)for(n=0;n<this.n.count();n++)this.f().q(this.n.__inner[n]);for(t=0;t<this.m().count();t++)this.f().z(this.aa),this.f().u(this.m().__inner[t]);for(i=0;i<this.o().count();i++)this.f().q(this.o().__inner[i]);this.f().x();this.f().h(this.bh.h());this.f().q(this.bk);this.f().q(this.bh);this.f().q(this.bi);this.f().w()},q:0,r:function(t){var i=n("<span>M<\/span>"),u=n("body"),r;return u.append(i),t!=null&&i.css("font",t),r=i.attr("offsetHeight"),isNaN(r)&&(r=i[0].offsetHeight),i.remove(),parseInt(r)},n:null,ay:function(n){this.n=n},bl:function(){return this.bg},bp:function(){return this.bk},bn:function(){return this.bi},w:0,v:0,al:function(){var n=Math.round(this.y().width()),i=Math.round(this.y().height());this.e().he(new t.au(0,0,0,n,i))},ad:function(i){var a,v,f,r,y,u,e,o,s,h,c,l,p;for(i.scalePath(new t.gf(1,"Scale",this.bj)),i.needlePath(new t.gf(1,"Needle",this.bh)),a=this.bh.h().h().__inner[0].h(),i.needle().angle(a),i.backingPath(new t.gf(1,"Backing",this.bg)),i.overlayPath(new t.gf(1,"Overlay",this.bi)),i.underlayPath(new t.gf(1,"Underlay",this.bk)),v=this.aa,f=this.m().getEnumerator();f.moveNext();)r=f.current(),r.__visibility==0&&(y=t.$f2.a(r,v),u=new t.c8,u.labelValue(r.aa()),u.labelPosition({__x:r.l(),__y:r.m(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u.labelSize(this.bs(r)),u.appearance(t.$ay.fromTextElement(r,y)),i.scaleLabels().add(u));for(e=this.o().getEnumerator();e.moveNext();)o=e.current(),o.__visibility==0&&(s=new t.c9,s.tickPath(new t.gf(1,"tickmarks",o)),i.scaleTickmarks().add(s));for(h=this.p().getEnumerator();h.moveNext();)c=h.current(),c.__visibility==0&&(l=new t.da,p=new t.gf(1,"range",c),l.rangePath(p),i.ranges().add(l))},ba:null,bb:null,bc:null,bd:null,a7:null,a8:null,be:null,bf:null,a9:null,aj:function(n,t,i){var u=t,r=i;if(!this.i){switch(n){case"NeedleBrush":this.ba=r;break;case"NeedleOutline":this.bb=r;break;case"NeedlePivotBrush":this.bc=r;break;case"NeedlePivotOutline":this.bd=r;break;case"BackingBrush":this.a7=r;break;case"BackingOutline":this.a8=r;break;case"ScaleBrush":this.be=r;break;case"TickBrush":this.bf=r;break;case"MinorTickBrush":this.a9=r}r==null&&this.a2()}},c:null,d:null,an:function(n,t){this.i||(this.c=t,this.c==null&&this.e().rangeBrushes(this.a))},ao:function(n,t){this.i||(this.d=t,this.d==null&&this.e().rangeOutlines(this.b))},$type:new n.ig.Type("XamRadialGaugeView",n.ig.$ot)},!0);n.ig.util.defType("XamRadialGauge:ez","Control",{init:function(){var i=this;this.bb=0;this.ba=100;this.hf=new t.av(NaN,NaN);this.a6=new t.a1(t.$cy.$type,0);this.a9=new t.a1(t.$bw.$type,0);this.a8=new t.a1(t.$bw.$type,0);this.a7=new t.a1(t.$bw.$type,0);this.bc=0;t.$e0.init.call(this);this.view(new t.ey(this));this.view().am();this.hd=t.$au.empty();this.al(new t.dn);this.ak(new t.dn);this.aj(new t.dn);this.ranges(new t.e7);this.a0(!0);this.at(new t.e4(0,1,this.transitionDuration()));this.at().propertyChanged=n.ig.Delegate.prototype.combine(this.at().propertyChanged,this.ew.runOn(this));this.y(t.$ez.$type);this.av(function(){var n=new t.e9(t.$cy.$type);return n.a(i.view().ag.runOn(i.view())),n.b(i.view().ah.runOn(i.view())),n.c(i.view().ai.runOn(i.view())),n.i(i.view().a4.runOn(i.view())),n}());this.ay(function(){var n=new t.e9(t.$bw.$type);return n.a(i.view().ap.runOn(i.view())),n.b(i.view().aq.runOn(i.view())),n.c(i.view().ar.runOn(i.view())),n.i(i.view().bq.runOn(i.view())),n}());this.aw(function(){var n=new t.e9(t.$bw.$type);return n.a(i.view().ap.runOn(i.view())),n.b(i.view().aq.runOn(i.view())),n.c(i.view().ar.runOn(i.view())),n.i(i.view().bq.runOn(i.view())),n}());this.ax(function(){var n=new t.e9(t.$bw.$type);return n.a(i.view().at.runOn(i.view())),n.b(i.view().au.runOn(i.view())),n.c(i.view().av.runOn(i.view())),n.i(i.view().br.runOn(i.view())),n}());this.aq(new t.e8(this.actualMinimumValue(),this.actualMaximumValue(),this.scaleStartAngle(),this.scaleEndAngle(),this.scaleSweepDirection()))},scaleValue:function(n){return this.aq().h(n)},unscaleValue:function(n){return this.aq().j(n)},getValueForPoint:function(i){var u=this.he(),s=Math.min(u.width()/2,u.height()/2)*this.radiusMultiplier(),f=this.c4(),e=f.__x,o=f.__y,r=t.$dd.c({__x:e,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i);return this.aq()!=null&&r<this.aq().i()&&(r+=3.14159265358979*2),this.aq()!=null&&r>this.aq().g()&&(r-=3.14159265358979*2),this.unscaleValue(r)},g4:function(n,t){return t!=null&&t.count()>0?t.item(n%t.count()):null},_view:null,view:function(n){return arguments.length===1?(this._view=n,n):this._view},ew:function(){this.transitionProgress(this.at().transitionProgress())},_at:null,at:function(n){return arguments.length===1?(this._at=n,n):this._at},rangeBrushes:function(n){return arguments.length===1?(this.g(t.$ez.rangeBrushesProperty,n),n):this.c(t.$ez.rangeBrushesProperty)},rangeOutlines:function(n){return arguments.length===1?(this.g(t.$ez.rangeOutlinesProperty,n),n):this.c(t.$ez.rangeOutlinesProperty)},minimumValue:function(n){return arguments.length===1?(this.g(t.$ez.minimumValueProperty,n),n):this.c(t.$ez.minimumValueProperty)},bb:0,actualMinimumValue:function(n){return arguments.length===1?(this.bb=n,n):this.bb},maximumValue:function(n){return arguments.length===1?(this.g(t.$ez.maximumValueProperty,n),n):this.c(t.$ez.maximumValueProperty)},ba:0,actualMaximumValue:function(n){return arguments.length===1?(this.ba=n,n):this.ba},interval:function(n){return arguments.length===1?(this.g(t.$ez.intervalProperty,n),n):this.c(t.$ez.intervalProperty)},centerX:function(n){return arguments.length===1?(this.g(t.$ez.centerXProperty,n),n):this.c(t.$ez.centerXProperty)},centerY:function(n){return arguments.length===1?(this.g(t.$ez.centerYProperty,n),n):this.c(t.$ez.centerYProperty)},value:function(n){return arguments.length===1?(this.g(t.$ez.valueProperty,n),n):this.c(t.$ez.valueProperty)},scaleStartAngle:function(n){return arguments.length===1?(this.g(t.$ez.scaleStartAngleProperty,n),n):this.c(t.$ez.scaleStartAngleProperty)},scaleEndAngle:function(n){return arguments.length===1?(this.g(t.$ez.scaleEndAngleProperty,n),n):this.c(t.$ez.scaleEndAngleProperty)},scaleSweepDirection:function(n){return arguments.length===1?(this.g(t.$ez.scaleSweepDirectionProperty,n),n):this.c(t.$ez.scaleSweepDirectionProperty)},transitionDuration:function(n){return arguments.length===1?(this.g(t.$ez.transitionDurationProperty,n),n):this.c(t.$ez.transitionDurationProperty)},transitionEasingFunction:function(n){return arguments.length===1?(this.g(t.$ez.transitionEasingFunctionProperty,n),n):this.c(t.$ez.transitionEasingFunctionProperty)},needleBrush:function(n){return arguments.length===1?(this.g(t.$ez.needleBrushProperty,n),n):this.c(t.$ez.needleBrushProperty)},needleOutline:function(n){return arguments.length===1?(this.g(t.$ez.needleOutlineProperty,n),n):this.c(t.$ez.needleOutlineProperty)},needleStartExtent:function(n){return arguments.length===1?(this.g(t.$ez.needleStartExtentProperty,n),n):this.c(t.$ez.needleStartExtentProperty)},needleEndExtent:function(n){return arguments.length===1?(this.g(t.$ez.needleEndExtentProperty,n),n):this.c(t.$ez.needleEndExtentProperty)},needleShape:function(n){return arguments.length===1?(this.g(t.$ez.needleShapeProperty,n),n):this.c(t.$ez.needleShapeProperty)},needleStartWidthRatio:function(n){return arguments.length===1?(this.g(t.$ez.needleStartWidthRatioProperty,n),n):this.c(t.$ez.needleStartWidthRatioProperty)},needleEndWidthRatio:function(n){return arguments.length===1?(this.g(t.$ez.needleEndWidthRatioProperty,n),n):this.c(t.$ez.needleEndWidthRatioProperty)},needleBaseFeatureWidthRatio:function(n){return arguments.length===1?(this.g(t.$ez.needleBaseFeatureWidthRatioProperty,n),n):this.c(t.$ez.needleBaseFeatureWidthRatioProperty)},needleBaseFeatureExtent:function(n){return arguments.length===1?(this.g(t.$ez.needleBaseFeatureExtentProperty,n),n):this.c(t.$ez.needleBaseFeatureExtentProperty)},needlePointFeatureWidthRatio:function(n){return arguments.length===1?(this.g(t.$ez.needlePointFeatureWidthRatioProperty,n),n):this.c(t.$ez.needlePointFeatureWidthRatioProperty)},needlePointFeatureExtent:function(n){return arguments.length===1?(this.g(t.$ez.needlePointFeatureExtentProperty,n),n):this.c(t.$ez.needlePointFeatureExtentProperty)},needlePivotWidthRatio:function(n){return arguments.length===1?(this.g(t.$ez.needlePivotWidthRatioProperty,n),n):this.c(t.$ez.needlePivotWidthRatioProperty)},needlePivotInnerWidthRatio:function(n){return arguments.length===1?(this.g(t.$ez.needlePivotInnerWidthRatioProperty,n),n):this.c(t.$ez.needlePivotInnerWidthRatioProperty)},needlePivotShape:function(n){return arguments.length===1?(this.g(t.$ez.needlePivotShapeProperty,n),n):this.c(t.$ez.needlePivotShapeProperty)},scaleStartExtent:function(n){return arguments.length===1?(this.g(t.$ez.scaleStartExtentProperty,n),n):this.c(t.$ez.scaleStartExtentProperty)},needlePivotBrush:function(n){return arguments.length===1?(this.g(t.$ez.needlePivotBrushProperty,n),n):this.c(t.$ez.needlePivotBrushProperty)},needlePivotOutline:function(n){return arguments.length===1?(this.g(t.$ez.needlePivotOutlineProperty,n),n):this.c(t.$ez.needlePivotOutlineProperty)},needleStrokeThickness:function(n){return arguments.length===1?(this.g(t.$ez.needleStrokeThicknessProperty,n),n):this.c(t.$ez.needleStrokeThicknessProperty)},needlePivotStrokeThickness:function(n){return arguments.length===1?(this.g(t.$ez.needlePivotStrokeThicknessProperty,n),n):this.c(t.$ez.needlePivotStrokeThicknessProperty)},scaleEndExtent:function(n){return arguments.length===1?(this.g(t.$ez.scaleEndExtentProperty,n),n):this.c(t.$ez.scaleEndExtentProperty)},labelExtent:function(n){return arguments.length===1?(this.g(t.$ez.labelExtentProperty,n),n):this.c(t.$ez.labelExtentProperty)},labelInterval:function(n){return arguments.length===1?(this.g(t.$ez.labelIntervalProperty,n),n):this.c(t.$ez.labelIntervalProperty)},tickStartExtent:function(n){return arguments.length===1?(this.g(t.$ez.tickStartExtentProperty,n),n):this.c(t.$ez.tickStartExtentProperty)},tickEndExtent:function(n){return arguments.length===1?(this.g(t.$ez.tickEndExtentProperty,n),n):this.c(t.$ez.tickEndExtentProperty)},tickStrokeThickness:function(n){return arguments.length===1?(this.g(t.$ez.tickStrokeThicknessProperty,n),n):this.c(t.$ez.tickStrokeThicknessProperty)},tickBrush:function(n){return arguments.length===1?(this.g(t.$ez.tickBrushProperty,n),n):this.c(t.$ez.tickBrushProperty)},fontBrush:function(n){return arguments.length===1?(this.g(t.$ez.fontBrushProperty,n),n):this.c(t.$ez.fontBrushProperty)},minorTickStartExtent:function(n){return arguments.length===1?(this.g(t.$ez.minorTickStartExtentProperty,n),n):this.c(t.$ez.minorTickStartExtentProperty)},minorTickEndExtent:function(n){return arguments.length===1?(this.g(t.$ez.minorTickEndExtentProperty,n),n):this.c(t.$ez.minorTickEndExtentProperty)},minorTickStrokeThickness:function(n){return arguments.length===1?(this.g(t.$ez.minorTickStrokeThicknessProperty,n),n):this.c(t.$ez.minorTickStrokeThicknessProperty)},minorTickBrush:function(n){return arguments.length===1?(this.g(t.$ez.minorTickBrushProperty,n),n):this.c(t.$ez.minorTickBrushProperty)},minorTickCount:function(n){return arguments.length===1?(this.g(t.$ez.minorTickCountProperty,n),n):this.c(t.$ez.minorTickCountProperty)},scaleBrush:function(n){return arguments.length===1?(this.g(t.$ez.scaleBrushProperty,n),n):this.c(t.$ez.scaleBrushProperty)},backingBrush:function(n){return arguments.length===1?(this.g(t.$ez.backingBrushProperty,n),n):this.c(t.$ez.backingBrushProperty)},backingOutline:function(n){return arguments.length===1?(this.g(t.$ez.backingOutlineProperty,n),n):this.c(t.$ez.backingOutlineProperty)},backingStrokeThickness:function(n){return arguments.length===1?(this.g(t.$ez.backingStrokeThicknessProperty,n),n):this.c(t.$ez.backingStrokeThicknessProperty)},backingOuterExtent:function(n){return arguments.length===1?(this.g(t.$ez.backingOuterExtentProperty,n),n):this.c(t.$ez.backingOuterExtentProperty)},backingOversweep:function(n){return arguments.length===1?(this.g(t.$ez.backingOversweepProperty,n),n):this.c(t.$ez.backingOversweepProperty)},scaleOversweep:function(n){return arguments.length===1?(this.g(t.$ez.scaleOversweepProperty,n),n):this.c(t.$ez.scaleOversweepProperty)},scaleOversweepShape:function(n){return arguments.length===1?(this.g(t.$ez.scaleOversweepShapeProperty,n),n):this.c(t.$ez.scaleOversweepShapeProperty)},backingCornerRadius:function(n){return arguments.length===1?(this.g(t.$ez.backingCornerRadiusProperty,n),n):this.c(t.$ez.backingCornerRadiusProperty)},backingInnerExtent:function(n){return arguments.length===1?(this.g(t.$ez.backingInnerExtentProperty,n),n):this.c(t.$ez.backingInnerExtentProperty)},backingShape:function(n){return arguments.length===1?(this.g(t.$ez.backingShapeProperty,n),n):this.c(t.$ez.backingShapeProperty)},ranges:function(n){return arguments.length===1?(this.g(t.$ez.rangesProperty,n),n):this.c(t.$ez.rangesProperty)},radiusMultiplier:function(n){return arguments.length===1?(this.g(t.$ez.radiusMultiplierProperty,n),n):this.c(t.$ez.radiusMultiplierProperty)},duplicateLabelOmissionStrategy:function(n){return arguments.length===1?(this.g(t.$ez.duplicateLabelOmissionStrategyProperty,n),n):this.c(t.$ez.duplicateLabelOmissionStrategyProperty)},font:function(n){return arguments.length===1?(this.g(t.$ez.fontProperty,n),n):this.c(t.$ez.fontProperty)},formatLabel:null,alignLabel:null,_a0:!1,a0:function(n){return arguments.length===1?(this._a0=n,n):this._a0},_aq:null,aq:function(n){return arguments.length===1?(this._aq=n,n):this._aq},e0:function(i,r,u){var f,e,h,o,s;switch(i){case"NeedleBrush":case"NeedleOutline":case"NeedlePivotBrush":case"NeedlePivotOutline":case"BackingBrush":case"BackingOutline":case"ScaleBrush":case"TickBrush":case"MinorTickBrush":this.view().aj(i,r,u);break;case"RangeBrushes":this.view().an(r,u);break;case"RangeOutlines":this.view().ao(r,u)}switch(i){case"BackingBrush":case"BackingOutline":case"BackingStrokeThickness":case"BackingShape":case"BackingInnerExtent":case"BackingOuterExtent":case"BackingOversweep":case"BackingCornerRadius":this.a0(!0);this.view().ax();break;case"ScaleSweepDirection":case"ScaleStartAngle":case"ScaleEndAngle":case"ScaleOversweep":case"ScaleOversweepShape":this.aq(new t.e8(this.actualMinimumValue(),this.actualMaximumValue(),this.scaleStartAngle(),this.scaleEndAngle(),this.scaleSweepDirection()));this.a0(!0);this.view().ax();break;case"MinimumValue":case"MaximumValue":f=this.minimumValue();e=this.maximumValue();(Number.isInfinity(f)||isNaN(f))&&(f=0);(Number.isInfinity(e)||isNaN(e))&&(e=100);this.actualMinimumValue(Math.min(f,e));this.actualMaximumValue(Math.max(f,e));this.aq(new t.e8(this.actualMinimumValue(),this.actualMaximumValue(),this.scaleStartAngle(),this.scaleEndAngle(),this.scaleSweepDirection()));this.a0(!0);this.view().ax();break;case"Interval":case"ScaleStartExtent":case"ScaleEndExtent":case"LabelExtent":case"TickStartExtent":case"TickEndExtent":case"TickBrush":case"ScaleBrush":case"LabelInterval":case"MinorTickCount":case"TickStrokeThickness":case"MinorTickStrokeThickness":case"MinorTickBrush":case"MinorTickStartExtent":case"MinorTickEndExtent":case"CenterX":case"CenterY":case"RadiusMultiplier":case"DuplicateLabelOmissionStrategy":this.aq(new t.e8(this.actualMinimumValue(),this.actualMaximumValue(),this.scaleStartAngle(),this.scaleEndAngle(),this.scaleSweepDirection()));this.a0(!0);this.view().ax();break;case"Value":case"NeedleStartExtent":case"NeedleEndExtent":case"NeedleBrush":case"NeedleOutline":case"NeedleStartWidth":case"NeedleEndWidthRatio":case"NeedlePivotBrush":case"NeedlePivotOutline":case"NeedleStrokeThickness":case"NeedlePivotStrokeThickness":case"NeedleBaseFeatureExtent":case"NeedleBaseFeatureWidthRatio":case"NeedlePointFeatureExtent":case"NeedlePointFeatureWidthRatio":case"NeedlePivotWidthRatio":case"NeedlePivotInnerWidthRatio":case"NeedlePivotShape":case"NeedleShape":this.a0(!0);this.view().ax();break;case"TransitionDuration":this.at().intervalMilliseconds(this.transitionDuration());this.view().ax();break;case"TransitionEasingFunction":this.at().easingFunction(this.transitionEasingFunction());break;case"TransitionProgress":if(this.transitionProgress()>=1){this.at().stop();h=this.ak();this.ak(this.al());this.al(h);this.e2();this.e3();this.e4();this.e8(this.ak());this.e9(this.ak());this.fa(this.ak());this.view().ac();return}this.aj().e(this.transitionProgress(),this.al(),this.ak());this.e8(this.aj());this.e9(this.aj());this.fa(this.aj());this.view().ac();break;case"Ranges":o=r;s=u;o!=null&&(o.collectionChanged=n.ig.Delegate.prototype.remove(o.collectionChanged,this.e7.runOn(this)));s!=null&&(s.collectionChanged=n.ig.Delegate.prototype.combine(s.collectionChanged,this.e7.runOn(this)));this.a0(!0);this.view().ax();break;case"RangeOutlines":case"RangeBrushes":this.a0(!0);this.view().ax();break;case"FontBrush":case"Font":this.view().a3();this.view().ax()}},styleUpdated:function(){this.view().a0()},e7:function(t,i){var r,u,f,e;if(i.oldItems()!=null)for(r=i.oldItems().getEnumerator();r.moveNext();)u=r.current(),u.propertyChanged=n.ig.Delegate.prototype.remove(u.propertyChanged,this.e6.runOn(this));if(i.newItems()!=null)for(f=i.newItems().getEnumerator();f.moveNext();)e=f.current(),e.propertyChanged=n.ig.Delegate.prototype.combine(e.propertyChanged,this.e6.runOn(this));this.a0(!0);this.view().ax()},e6:function(){this.a0(!0);this.view().ax()},hf:null,hd:null,he:function(n){if(arguments.length===1){var t=this.hd;return this.hd=n,t.equals(this.hd)||this.e1(t,this.hd),n}return this.hd},e1:function(){this.a0(!0);this.view().ax()},a1:function(){return!isNaN(this.actualMinimumValue())&&!isNaN(this.actualMaximumValue())&&!isNaN(this.value())&&!this.he().isEmpty()&&this.view().k()},ex:function(){if(this.a1()){if(this.a0()){var n=this.al();this.animating()?(this.at().needsFlush()&&this.at().flush(),this.al(this.aj()),this.aj(n)):(this.al(this.ak()),this.ak(n))}else this.animating()&&(this.aj().e(this.transitionProgress(),this.al(),this.ak()),this.e8(this.aj()),this.e9(this.aj()),this.fa(this.aj()));this.a0()&&(this.e3(),this.e4(),this.e2());this.a0()&&this.a3()?(this.fb(),this.aj().e(this.transitionProgress(),this.al(),this.ak()),this.e8(this.aj()),this.e9(this.aj()),this.fa(this.aj())):this.a0()&&(this.e8(this.ak()),this.e9(this.ak()),this.fa(this.ak()));this.a0(!1);this.view().ac()}},fb:function(){this.bc=0;this.at().stop();this.at().start()},a3:function(){return this.transitionDuration()>0},e8:function(n){var r=this.he(),t=this.view().bl(),i=n.a(),f=Math.min(r.width()/2,r.height()/2)*n.d(),u=this.c4(),e=u.__x,o=u.__y,s=i.n(f,e,o);t.ak(s);t.__fill=i.l();t.__stroke=i.m();t.z(i.h())},a5:null,needleContainsPoint:function(n){return this.a5==null?!1:t.$fn.a(this.a5,n)},e9:function(i){var h=this,nt=h.he(),d=i.b().ab(),ft=i.b().aj(),et=i.b().ak(),ot=i.b().ae(),tt=i.b().ah(),it=i.b().ai(),rt=i.b().aa(),y=h.view().bm(),w=h.view().bp(),b=h.view().bn(),u=i.b(),r=Math.min(nt.width()/2,nt.height()/2)*i.d(),ut=h.c4(),f=ut.__x,e=ut.__y,st=u.am(r,f,e),ht=d*180/3.14159265358979,g;y.ak(st);g=new t.c0;g.h().add(function(){var n=new t.cz;return n.i(f),n.j(e),n.h(ht),n}());y.h(g);y.__fill=ft;y.__stroke=et;y.z(ot);w.ak(u.an(r,f,e));b.ak(u.al(r,f,e));w.__fill=tt;w.__stroke=it;w.z(rt);b.__fill=tt;b.__stroke=it;b.z(rt);var p=new t.a1(t.$aw.$type,0),o=Math.cos(d),s=Math.sin(d),k=u.af()/2,c={__x:u.ad()*r,__y:k*r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},l={__x:u.ac()*r,__y:k*r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},a={__x:u.ac()*r,__y:-k*r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},v={__x:u.ad()*r,__y:-k*r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};c={__x:c.__x*o-c.__y*s+f,__y:c.__y*o+c.__x*s+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};l={__x:l.__x*o-l.__y*s+f,__y:l.__y*o+l.__x*s+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};a={__x:a.__x*o-a.__y*s+f,__y:a.__y*o+a.__x*s+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};v={__x:v.__x*o-v.__y*s+f,__y:v.__y*o+v.__x*s+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};p.add(c);p.add(l);p.add(a);p.add(v);h.a5=p},c4:function(){var t=this.he(),i=isNaN(this.centerX())?.5:this.centerX(),r=isNaN(this.centerY())?.5:this.centerY(),u=t.left()+i*t.width(),f=t.top()+r*t.height();return{__x:u,__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},ci:function(n){return Number.isInfinity(n)?NaN:n},e3:function(){var i=this.ak();i.d(this.radiusMultiplier());var e=this.he(),o=this.aq(),u=this.ck(this.value(),0),f=this.aq().h(u),r=new t.ew,n=new t.ex;n.b=this.needleShape();n.o=this.ci(this.needleStrokeThickness());n.t=this.needleBrush();n.u=this.needleOutline();n.m=this.ci(this.needleStartExtent());n.k=this.ci(this.needleEndExtent());n.d=this.ci(this.needleBaseFeatureExtent());n.e=this.ci(this.needleBaseFeatureWidthRatio());n.p=this.ci(this.needlePointFeatureExtent());n.q=this.ci(this.needlePointFeatureWidthRatio());n.i=this.ci(this.needlePivotWidthRatio());n.f=this.ci(this.needlePivotInnerWidthRatio());n.r=this.needlePivotBrush();n.s=this.needlePivotOutline();n.c=this.needlePivotShape();n.h=this.ci(this.needlePivotStrokeThickness());n.n=this.ci(this.needleStartWidthRatio());n.l=this.ci(this.needleEndWidthRatio());r.b(n);r.e(i.b());i.b().ab(f)},_al:null,al:function(n){return arguments.length===1?(this._al=n,n):this._al},_ak:null,ak:function(n){return arguments.length===1?(this._ak=n,n):this._ak},_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},a6:null,a9:null,a8:null,a7:null,fa:function(i){var u=this,pi=u.he(),f=i.c(),li=f.c(),eu=f.e(),ou=f.g(),su=f.h(),hu=f.f(),cu=f.d(),wi=f.l(),s=f.t(),h=f.q(),ot=f.j(),st=f.i(),bi=f.v(),ki=f.u(),c=f.s(),l=f.p(),lu=f.ab(),au=f.ac(),vu=f.w(),yu=f.aa(),di=f.n(),gi=f.m(),pu=f.o(),nr=u.view().bo(),ai=f.r(),tr=!0,k,pr,kr,dr,v,ut,ft,tu,iu,yt,pt,ri,ru,b,wt,fi,tt,bt,oi,it,kt,hi,ci,dt,et;(u.scaleOversweepShape()==1||u.scaleOversweepShape()==0&&u.backingShape()==0)&&(tr=!1);var r=Math.min(pi.width()/2,pi.height()/2)*i.d(),ir=u.c4(),e=ir.__x,o=ir.__y,rr=c,ur=l;c-=ai;l+=ai;k=!1;l-c>=2*3.14159265358979&&(k=!0,c=0,l=3.14159265358979);var gt=new t.b4,y=new t.ch,ht=Math.cos(c),ct=Math.sin(c),lt=Math.cos(l),at=Math.sin(l),rt=e+r*s*ht,g=o+r*s*ct,a=e+r*h*ht,p=o+r*h*ct,ni=e+r*s*lt,vt=o+r*s*at,d=e+r*h*lt,nt=o+r*h*at,wu=k;if(ai!=0&&!k&&tr){var fr=Math.cos(rr),er=Math.sin(rr),or=Math.cos(ur),sr=Math.sin(ur),hr=e+r*s*fr,bu=o+r*s*er,cr=e+r*h*fr,ku=o+r*h*er,lr=e+r*s*or,du=o+r*s*sr,ar=e+r*h*or,gu=o+r*h*sr,vr=g,yr=a;cr-hr!=0&&(yr=e,pr=(ku-bu)/(cr-hr),vr=pr*(e-a)+p);var nf={__x:yr,__y:vr,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},w=t.$dd.l(nf,{__x:a,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:e,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r*s),wr=vt,br=d;if(ar-lr!=0&&(br=e,kr=(gu-du)/(ar-lr),wr=kr*(e-d)+nt),dr={__x:br,__y:wr,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},v=t.$dd.l(dr,{__x:d,__y:nt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},{__x:e,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r*s),isNaN(w.a().__x)||isNaN(w.a().__y)||isNaN(w.b().__x)||isNaN(w.b().__y)||isNaN(v.a().__x)||isNaN(v.a().__y)||isNaN(v.b().__x)||isNaN(v.b().__y))k=!0,c=0,l=3.14159265358979;else if(ut=Math.pow(w.a().__x-a,2)+Math.pow(w.a().__y-p,2)<Math.pow(w.b().__x-a,2)+Math.pow(w.b().__y-p,2)?w.a():w.b(),ft=Math.pow(v.a().__x-d,2)+Math.pow(v.a().__y-nt,2)<Math.pow(v.b().__x-d,2)+Math.pow(v.b().__y-nt,2)?v.a():v.b(),Math.pow(ft.__x-a,2)+Math.pow(ft.__y-p,2)<=Math.pow(ut.__x-a,2)+Math.pow(ut.__y-p,2))k=!0,c=0,l=3.14159265358979;else{for(var gr=t.$dd.c({__x:e,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ut),nu=t.$dd.c({__x:e,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},ft),ti=c,ii=l;ti>3.14159265358979*2;)ti-=3.14159265358979*2;while(ii>3.14159265358979*2)ii-=3.14159265358979*2;tu=Math.min(Math.abs(gr-ti),Math.abs(3.14159265358979*2-gr-ti));iu=Math.min(Math.abs(nu-ii),Math.abs(3.14159265358979*2-nu-ii));l-c+tu+iu>=2*3.14159265358979?(k=!0,c=0,l=3.14159265358979):(rt=ut.__x,g=ut.__y,ni=ft.__x,vt=ft.__y)}}for(k&&!wu&&(ht=Math.cos(c),ct=Math.sin(c),lt=Math.cos(l),at=Math.sin(l),rt=e+r*s*ht,g=o+r*s*ct,a=e+r*h*ht,p=o+r*h*ct,ni=e+r*s*lt,vt=o+r*s*at,d=e+r*h*lt,nt=o+r*h*at),k?(y.__startPoint={__x:a,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},y.__segments.add(function(){var i=new t.cr;return i.d({__x:d,__y:nt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(!1),i.e(1),i.f(new t.av(r*h,r*h)),i}()),y.__segments.add(function(){var i=new t.cr;return i.d({__x:a,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(!1),i.e(1),i.f(new t.av(r*h,r*h)),i}()),yt=new t.ch,yt.__startPoint={__x:rt,__y:g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},yt.__segments.add(function(){var i=new t.cr;return i.d({__x:ni,__y:vt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(!1),i.e(0),i.f(new t.av(r*s,r*s)),i}()),yt.__segments.add(function(){var i=new t.cr;return i.d({__x:rt,__y:g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(!1),i.e(0),i.f(new t.av(r*s,r*s)),i}()),gt.b().add(y),gt.b().add(yt)):(y.__startPoint={__x:rt,__y:g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},y.__segments.add(function(){var i=new t.cl(1);return i.c({__x:a,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),y.__segments.add(function(){var i=new t.cr;return i.d({__x:d,__y:nt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(l-c>3.14159265358979),i.e(1),i.f(new t.av(r*h,r*h)),i}()),y.__segments.add(function(){var i=new t.cl(1);return i.c({__x:ni,__y:vt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),y.__segments.add(function(){var i=new t.cr;return i.d({__x:rt,__y:g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.b(l-c>3.14159265358979),i.e(0),i.f(new t.av(r*s,r*s)),i}()),gt.b().add(y)),nr.ak(gt),nr.__fill=lu,pt=u.av(),pt.e(!0),ri=0;ri<u.a6.count();ri++)pt.m(u.a6.__inner[ri]);for(u.a6.clear(),ru=f.z(),b=0;b<li.length;b++){var tf=e+r*wi*Math.cos(li[b]),rf=o+r*wi*Math.sin(li[b]),ui=pt.n();ui.aa(eu[b]);u.view().az(ui,ru);var yf=hu[b],pf=cu[b],uf=ou[b],ff=su[b];u.view().as(ui,tf+uf,rf+ff);u.a6.add(ui)}for(pt.e(!1),wt=u.ay(),wt.e(!0),fi=0;fi<u.a9.count();fi++)wt.m(u.a9.__inner[fi]);for(u.a9.clear(),tt=0;tt<ot.length;tt++){var ef=e+r*bi*Math.cos(ot[tt]),of=o+r*bi*Math.sin(ot[tt]),sf=e+r*ki*Math.cos(ot[tt]),hf=o+r*ki*Math.sin(ot[tt]),ei=wt.n(),uu=new t.b4,vi=new t.ch;vi.__startPoint={__x:ef,__y:of,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};vi.__segments.add(function(){var i=new t.cl(1);return i.c({__x:sf,__y:hf,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());uu.b().add(vi);ei.ak(uu);ei.__stroke=au;ei.z(vu);u.a9.add(ei)}for(wt.e(!1),bt=u.aw(),bt.e(!0),oi=0;oi<u.a7.count();oi++)bt.m(u.a7.__inner[oi]);for(u.a7.clear(),it=0;it<st.length;it++){var cf=e+r*di*Math.cos(st[it]),lf=o+r*di*Math.sin(st[it]),af=e+r*gi*Math.cos(st[it]),vf=o+r*gi*Math.sin(st[it]),si=bt.n(),fu=new t.b4,yi=new t.ch;yi.__startPoint={__x:cf,__y:lf,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};yi.__segments.add(function(){var i=new t.cl(1);return i.c({__x:af,__y:vf,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());fu.b().add(yi);si.ak(fu);si.__stroke=yu;si.z(pu);u.a7.add(si)}for(bt.e(!1),kt=u.ax(),kt.e(!0),hi=u.a8.count()-1;hi>=0;hi--)kt.m(u.a8.__inner[hi]);for(u.a8.clear(),ci=0;ci<f.k().count();ci++)dt=f.k().__inner[ci],et=kt.n(),et.ak(dt.m(r,e,o)),et.__fill=dt.k,et.__stroke=dt.l,et.z(dt.h),u.a8.add(et);u.view().ay(u.a8);kt.e(!1)},a4:function(n,t,i){var r=i/1e4,u;return(isNaN(r)&&(r=1e-5),u=Math.abs(n-t),u<r)?!0:!1},cj:function(n){return Number.isInfinity(n)?NaN:n},ck:function(n,t){return Number.isInfinity(n)||isNaN(n)?t:n},e4:function(){var n=this,i=n.ak(),c,y,p,v,nt,et,f,u,s,ot,lt,b,k,d,tt,it,w,r,rt;i.d(n.cj(n.radiusMultiplier()));isNaN(i.d())&&i.d(1);var bt=n.he(),h=n.aq(),l=n.cj(n.interval()),a=n.cj(n.labelInterval()),g=n.cj(n.minorTickCount());isNaN(l)&&(l=(n.actualMaximumValue()-n.actualMinimumValue())/10);isNaN(a)&&(a=l);isNaN(g)&&(g=3);for(var o=new t.a1(t.$de.$type.specialize(Number,Number),0),ut=h.i(),ft=h.g();ut>=3.14159265358979*2;)ut-=3.14159265358979*2;while(ft>=3.14159265358979*2)ft-=3.14159265358979*2;var ct=Math.abs(ft-ut)<.0001,pt=n.duplicateLabelOmissionStrategy()==1||n.duplicateLabelOmissionStrategy()==3,wt=n.duplicateLabelOmissionStrategy()==0||n.duplicateLabelOmissionStrategy()==3;for(c=n.actualMinimumValue();c<=n.actualMaximumValue()||n.a4(c,n.actualMaximumValue(),a);c+=a)if((!ct||!n.a4(c,n.actualMinimumValue(),a)||!pt)&&(!ct||!n.a4(c,n.actualMaximumValue(),a)||!wt)&&(o.add(new t.de(Number,Number,c,h.h(c))),a==0))break;for(y=new t.a1(Number,0),p=new t.a1(Number,0),v=n.actualMinimumValue();v<=n.actualMaximumValue()||n.a4(v,n.actualMaximumValue(),l);v+=l){for(y.add(h.h(v)),nt=0;nt<g;nt++)(et=l/(g+1)*(nt+1),et+v>n.actualMaximumValue())||p.add(h.h(et+v));if(l==0)break}for(i.c().c().length!=o.count()&&(i.c().c(new Array(o.count())),i.c().e(new Array(o.count())),i.c().f(new Array(o.count())),i.c().d(new Array(o.count())),i.c().g(new Array(o.count())),i.c().h(new Array(o.count()))),(i.c().j().length!=y.count()||i.c().i().length!=p.count())&&(i.c().j(new Array(y.count())),i.c().i(new Array(p.count()))),f=new t.fj,f.startAngle=n.aq().i(),f.endAngle=n.aq().g(),f.actualMinimumValue=n.actualMinimumValue(),f.actualMaximumValue=n.actualMaximumValue(),u=new t.fl,u.startAngle=f.startAngle,u.endAngle=f.endAngle,u.actualMinimumValue=f.actualMinimumValue,u.actualMaximumValue=f.actualMaximumValue,s=0;s<o.count();s++)f.angle=o.__inner[s].b(),u.angle=f.angle,i.c().c()[s]=o.__inner[s].b(),ot=o.__inner[s].a(),f.value=ot,f.label=(Math.round(ot*100)/100).toString(),n.formatLabel!=null&&n.formatLabel(n,f),u.value=f.value,u.label=f.label,lt=f.label,b=n.view().bs(function(){var n=new t.cy;return n.aa(lt),n}()),u.width=b.b(),u.height=b.a(),u.offsetX=b.b()/-2,u.offsetY=b.a()/-2,n.alignLabel!=null&&n.alignLabel(n,u),i.c().f()[s]=u.width,i.c().d()[s]=u.height,i.c().g()[s]=u.offsetX,i.c().h()[s]=u.offsetY,i.c().e()[s]=u.label;for(k=0;k<y.count();k++)i.c().j()[k]=y.__inner[k];for(d=0;d<p.count();d++)i.c().i()[d]=p.__inner[d];for(i.c().t(n.ck(n.scaleStartExtent(),.5)),i.c().q(n.ck(n.scaleEndExtent(),.57)),i.c().l(n.ck(n.labelExtent(),.65)),i.c().v(n.ck(n.tickStartExtent(),.5)),i.c().u(n.ck(n.tickEndExtent(),.57)),i.c().n(n.ck(n.minorTickStartExtent(),.54)),i.c().m(n.ck(n.minorTickEndExtent(),.57)),i.c().s(h.i()),i.c().p(h.g()),tt=n.scaleOversweep(),isNaN(tt)&&(tt=2.8),it=tt*3.14159265358979/180,it<0&&(it=0),i.c().r(it),i.c().ac(n.tickBrush()),i.c().z(n.fontBrush()),i.c().aa(n.minorTickBrush()),i.c().ab(n.scaleBrush()),i.c().w(n.cj(n.tickStrokeThickness())),i.c().o(n.cj(n.minorTickStrokeThickness())),isNaN(i.c().w())&&i.c().w(3),isNaN(i.c().o())&&i.c().o(2),i.c().k().clear(),w=0;w<n.ranges().count();w++){var e=n.ranges().__inner[w],at=n.cj(Math.min(e.startValue(),e.endValue())),vt=n.cj(Math.max(e.startValue(),e.endValue()));if(!isNaN(at)&&!isNaN(vt)){var st=h.h(at),ht=h.h(vt),yt=t.$e8.k(st,ht,n.scaleSweepDirection());st=yt.a();ht=yt.b();r=new t.eu;r.e=st;r.b=ht;r.k=e.brush()!=null?e.brush():n.g4(w,n.rangeBrushes());r.l=e.outline()!=null?e.outline():n.g4(w,n.rangeOutlines());r.h=n.cj(e.strokeThickness());r.f=n.cj(e.innerStartExtent());isNaN(r.f)&&(r.f=n.scaleStartExtent());r.c=n.cj(e.innerEndExtent());isNaN(r.c)&&(r.c=n.scaleStartExtent());r.g=n.cj(e.outerStartExtent());isNaN(r.g)&&(r.g=n.scaleEndExtent());r.d=n.cj(e.outerEndExtent());isNaN(r.d)&&(r.d=n.scaleEndExtent());n.scaleSweepDirection()==0&&(rt=r.f,r.f=r.c,r.c=rt,rt=r.g,r.g=r.d,r.d=rt);i.c().k().add(r)}}},e2:function(){var f=this.ak(),r,e,u;f.d(this.radiusMultiplier());var n=f.a(),c=this.backingBrush(),l=this.backingOutline(),a=this.backingStrokeThickness(),v=this.backingShape(),t=this.backingOuterExtent(),i=this.backingInnerExtent();(Number.isInfinity(i)||isNaN(i))&&(i=.12);(Number.isInfinity(t)||isNaN(t))&&(t=.82);r=this.backingCornerRadius();(Number.isInfinity(r)||isNaN(r))&&(r=4);i>t&&(e=t,t=i,i=e);var o=this.aq(),s=o.i(),h=o.g();n.l(c);n.m(l);n.h(a);v==0?(n.b(0),n.g(0),n.c(0),n.d(0),n.e(this.backingOuterExtent())):(n.b(r),u=this.backingOversweep()*3.14159265358979/180,u<0&&(u=0),3.14159265358979*2-(h-s)<u?(n.f(0),n.b(0),n.g(0),n.c(0),n.d(0),n.e(t)):(n.f(u),n.g(s),n.c(h),n.b(r),n.d(i),n.e(t)))},animating:function(){return this.at().animationActive()},bc:0,transitionProgress:function(n){if(arguments.length===1){var t=this.bc;return this.bc=n,this.e0("TransitionProgress",t,this.bc),n}return this.bc},_ay:null,ay:function(n){return arguments.length===1?(this._ay=n,n):this._ay},_aw:null,aw:function(n){return arguments.length===1?(this._aw=n,n):this._aw},_av:null,av:function(n){return arguments.length===1?(this._av=n,n):this._av},_ax:null,ax:function(n){return arguments.length===1?(this._ax=n,n):this._ax},provideContainer:function(n){this.view().ak(n)},containerResized:function(){this.view().al()},flush:function(){this.view().flush()},exportVisualData:function(){var n=new t.a;return n.viewport(this.he()),n.scaleLabels(new t.c4),n.scaleTickmarks(new t.c5),n.ranges(new t.c7),n.needle(new t.c6),this.view().ad(n),n},$type:new n.ig.Type("XamRadialGauge",t.$e0.$type)},!0);n.ig.util.defType("RadialGaugeScaler:e8","Object",{e:0,d:0,c:0,b:0,l:null,f:0,a:0,i:function(){return this.f},g:function(){return this.a},init:function(i,r,u,f,e){n.ig.$op.init.call(this);this.e=u;this.d=f;(isNaN(this.e)||Number.isInfinity(this.e))&&(this.e=135);(isNaN(this.d)||Number.isInfinity(this.d))&&(this.d=45);this.l=e;this.c=i;this.b=r;var s=t.$du.u(this.e),h=t.$du.u(this.d),o=t.$e8.k(s,h,this.l);this.f=o.a();this.a=o.b()},k:function(n,i,r){if(r==1&&i<n&&(i+=3.14159265358979*2),r==0&&n<i&&(n+=3.14159265358979*2),r==0){var u=n;n=i;i=u}return new t.de(Number,Number,n,i)},h:function(n){var t=NaN;return t=this.c==this.b?0:(n-this.c)/(this.b-this.c),this.l==0&&(t=1-t),this.f+(this.a-this.f)*t},j:function(n){var t=(n-this.f)/(this.a-this.f);return this.l==0&&(t=1-t),this.c+(this.b-this.c)*t},$type:new n.ig.Type("RadialGaugeScaler",n.ig.$ot)},!0);n.ig.util.defType("FormatRadialGaugeLabelEventArgs:fj","EventArgs",{init:function(){t.$eh.init.call(this)},actualMinimumValue:0,actualMaximumValue:0,startAngle:0,endAngle:0,angle:0,value:0,label:null,$type:new n.ig.Type("FormatRadialGaugeLabelEventArgs",t.$eh.$type)},!0);n.ig.util.defType("AlignRadialGaugeLabelEventArgs:fl","FormatRadialGaugeLabelEventArgs",{init:function(){t.$fj.init.call(this)},width:0,height:0,offsetX:0,offsetY:0,$type:new n.ig.Type("AlignRadialGaugeLabelEventArgs",t.$fj.$type)},!0);n.ig.util.defType("XamRadialGaugeRange:fm","DependencyObject",{init:function(){t.$bk.init.call(this)},y:function(){},x:function(n,i,r){this.y(n,i,r);this.propertyChanged!=null&&this.propertyChanged(this,new t.el(n))},propertyChanged:null,brush:function(n){return arguments.length===1?(this.g(t.$fm.brushProperty,n),n):this.c(t.$fm.brushProperty)},outline:function(n){return arguments.length===1?(this.g(t.$fm.outlineProperty,n),n):this.c(t.$fm.outlineProperty)},startValue:function(n){return arguments.length===1?(this.g(t.$fm.startValueProperty,n),n):this.c(t.$fm.startValueProperty)},endValue:function(n){return arguments.length===1?(this.g(t.$fm.endValueProperty,n),n):this.c(t.$fm.endValueProperty)},innerStartExtent:function(n){return arguments.length===1?(this.g(t.$fm.innerStartExtentProperty,n),n):this.c(t.$fm.innerStartExtentProperty)},innerEndExtent:function(n){return arguments.length===1?(this.g(t.$fm.innerEndExtentProperty,n),n):this.c(t.$fm.innerEndExtentProperty)},outerStartExtent:function(n){return arguments.length===1?(this.g(t.$fm.outerStartExtentProperty,n),n):this.c(t.$fm.outerStartExtentProperty)},outerEndExtent:function(n){return arguments.length===1?(this.g(t.$fm.outerEndExtentProperty,n),n):this.c(t.$fm.outerEndExtentProperty)},strokeThickness:function(n){return arguments.length===1?(this.g(t.$fm.strokeThicknessProperty,n),n):this.c(t.$fm.strokeThicknessProperty)},$type:new n.ig.Type("XamRadialGaugeRange",t.$bk.$type,[t.$ej.$type])},!0);n.ig.util.defType("RadialGaugeRangeCollection:e7","ObservableCollection$1",{init:function(){t.$ed.init.call(this,t.$fm.$type)},$type:new n.ig.Type("RadialGaugeRangeCollection",t.$ed.$type.specialize(t.$fm.$type))},!0);t.$dm.none=0;t.$dm.circle=1;t.$dm.circleWithHole=2;t.$dm.circleOverlay=3;t.$dm.circleOverlayWithHole=4;t.$dm.circleUnderlay=5;t.$dm.circleUnderlayWithHole=6;t.$dl.none=0;t.$dl.rectangle=1;t.$dl.triangle=2;t.$dl.needle=3;t.$dl.trapezoid=4;t.$dl.rectangleWithBulb=5;t.$dl.triangleWithBulb=6;t.$dl.needleWithBulb=7;t.$dl.trapezoidWithBulb=8;t.$dk.auto=0;t.$dk.circular=1;t.$dk.fitted=2;t.$dj.circular=0;t.$dj.fitted=1;t.$di.omitLast=0;t.$di.omitFirst=1;t.$di.omitNeither=2;t.$di.omitBoth=3;t.$ey.t=0;t.$ez.ed="RangeBrushes";t.$ez.rangeBrushesProperty=t.$bm.i("RangeBrushes",t.$ec.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("RangeBrushes",t.d(),t.c())}));t.$ez.ee="RangeOutlines";t.$ez.rangeOutlinesProperty=t.$bm.i("RangeOutlines",t.$ec.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("RangeOutlines",t.d(),t.c())}));t.$ez.minimumValueDefaultValue=0;t.$ez.dn="MinimumValue";t.$ez.minimumValueProperty=t.$bm.i("MinimumValue",Number,t.$ez.$type,new t.bn(2,0,function(n,t){n.e0("MinimumValue",t.d(),t.c())}));t.$ez.maximumValueDefaultValue=100;t.$ez.dm="MaximumValue";t.$ez.maximumValueProperty=t.$bm.i("MaximumValue",Number,t.$ez.$type,new t.bn(2,100,function(n,t){n.e0("MaximumValue",t.d(),t.c())}));t.$ez.dj="Interval";t.$ez.intervalProperty=t.$bm.i("Interval",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("Interval",t.d(),t.c())}));t.$ez.dd="CenterX";t.$ez.centerXProperty=t.$bm.i("CenterX",Number,t.$ez.$type,new t.bn(2,.5,function(n,t){n.e0("CenterX",t.d(),t.c())}));t.$ez.de="CenterY";t.$ez.centerYProperty=t.$bm.i("CenterY",Number,t.$ez.$type,new t.bn(2,.5,function(n,t){n.e0("CenterY",t.d(),t.c())}));t.$ez.ev="Value";t.$ez.valueProperty=t.$bm.i("Value",Number,t.$ez.$type,new t.bn(2,0,function(n,t){n.e0("Value",t.d(),t.c())}));t.$ez.el="ScaleStartAngle";t.$ez.scaleStartAngleProperty=t.$bm.i("ScaleStartAngle",Number,t.$ez.$type,new t.bn(2,135,function(n,t){n.e0("ScaleStartAngle",t.d(),t.c())}));t.$ez.eh="ScaleEndAngle";t.$ez.scaleEndAngleProperty=t.$bm.i("ScaleEndAngle",Number,t.$ez.$type,new t.bn(2,45,function(n,t){n.e0("ScaleEndAngle",t.d(),t.c())}));t.$ez.en="ScaleSweepDirection";t.$ez.scaleSweepDirectionProperty=t.$bm.i("ScaleSweepDirection",t.$cs.$type,t.$ez.$type,new t.bn(2,1,function(n,t){n.e0("ScaleSweepDirection",t.d(),t.c())}));t.$ez.es="TransitionDuration";t.$ez.transitionDurationProperty=t.$bm.i("TransitionDuration",n.ig.Number.prototype.$type,t.$ez.$type,new t.bn(2,0,function(n,t){n.e0("TransitionDuration",t.d(),t.c())}));t.$ez.et="TransitionEasingFunction";t.$ez.transitionEasingFunctionProperty=t.$bm.i("TransitionEasingFunction",t.$e5.$type,t.$ez.$type,new t.bn(2,null,function(i,r){n.ig.util.cast(t.$ez.$type,i).e0("TransitionEasingFunction",r.d(),r.c())}));t.$ez.dw="NeedleBrush";t.$ez.needleBrushProperty=t.$bm.i("NeedleBrush",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("NeedleBrush",t.d(),t.c())}));t.$ez.dz="NeedleOutline";t.$ez.needleOutlineProperty=t.$bm.i("NeedleOutline",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("NeedleOutline",t.d(),t.c())}));t.$ez.d9="NeedleStartExtent";t.$ez.needleStartExtentProperty=t.$bm.i("NeedleStartExtent",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedleStartExtent",t.d(),t.c())}));t.$ez.dx="NeedleEndExtent";t.$ez.needleEndExtentProperty=t.$bm.i("NeedleEndExtent",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedleEndExtent",t.d(),t.c())}));t.$ez.d8="NeedleShape";t.$ez.needleShapeProperty=t.$bm.i("NeedleShape",t.$dl.$type,t.$ez.$type,new t.bn(2,3,function(n,t){n.e0("NeedleShape",t.d(),t.c())}));t.$ez.ea="NeedleStartWidth";t.$ez.needleStartWidthRatioProperty=t.$bm.i("NeedleStartWidth",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedleStartWidth",t.d(),t.c())}));t.$ez.dy="NeedleEndWidthRatio";t.$ez.needleEndWidthRatioProperty=t.$bm.i("NeedleEndWidthRatio",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedleEndWidthRatio",t.d(),t.c())}));t.$ez.dv="NeedleBaseFeatureWidthRatio";t.$ez.needleBaseFeatureWidthRatioProperty=t.$bm.i("NeedleBaseFeatureWidthRatio",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedleBaseFeatureWidthRatio",t.d(),t.c())}));t.$ez.du="NeedleBaseFeatureExtent";t.$ez.needleBaseFeatureExtentProperty=t.$bm.i("NeedleBaseFeatureExtent",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedleBaseFeatureExtent",t.d(),t.c())}));t.$ez.d7="NeedlePointFeatureWidthRatio";t.$ez.needlePointFeatureWidthRatioProperty=t.$bm.i("NeedlePointFeatureWidthRatio",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedlePointFeatureWidthRatio",t.d(),t.c())}));t.$ez.d6="NeedlePointFeatureExtent";t.$ez.needlePointFeatureExtentProperty=t.$bm.i("NeedlePointFeatureExtent",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedlePointFeatureExtent",t.d(),t.c())}));t.$ez.d5="NeedlePivotWidthRatio";t.$ez.needlePivotWidthRatioProperty=t.$bm.i("NeedlePivotWidthRatio",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedlePivotWidthRatio",t.d(),t.c())}));t.$ez.d1="NeedlePivotInnerWidthRatio";t.$ez.needlePivotInnerWidthRatioProperty=t.$bm.i("NeedlePivotInnerWidthRatio",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("NeedlePivotInnerWidthRatio",t.d(),t.c())}));t.$ez.d3="NeedlePivotShape";t.$ez.needlePivotShapeProperty=t.$bm.i("NeedlePivotShape",t.$dm.$type,t.$ez.$type,new t.bn(2,3,function(n,t){n.e0("NeedlePivotShape",t.d(),t.c())}));t.$ez.d0="NeedlePivotBrush";t.$ez.needlePivotBrushProperty=t.$bm.i("NeedlePivotBrush",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("NeedlePivotBrush",t.d(),t.c())}));t.$ez.d2="NeedlePivotOutline";t.$ez.needlePivotOutlineProperty=t.$bm.i("NeedlePivotOutline",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("NeedlePivotOutline",t.d(),t.c())}));t.$ez.eb="NeedleStrokeThickness";t.$ez.needleStrokeThicknessProperty=t.$bm.i("NeedleStrokeThickness",Number,t.$ez.$type,new t.bn(2,1,function(n,t){n.e0("NeedleStrokeThickness",t.d(),t.c())}));t.$ez.d4="NeedlePivotStrokeThickness";t.$ez.needlePivotStrokeThicknessProperty=t.$bm.i("NeedlePivotStrokeThickness",Number,t.$ez.$type,new t.bn(2,1,function(n,t){n.e0("NeedlePivotStrokeThickness",t.d(),t.c())}));t.$ez.scaleStartExtentDefaultValue=.5;t.$ez.em="ScaleStartExtent";t.$ez.scaleStartExtentProperty=t.$bm.i("ScaleStartExtent",Number,t.$ez.$type,new t.bn(2,.5,function(n,t){n.e0("ScaleStartExtent",t.d(),t.c())}));t.$ez.scaleEndExtentDefaultValue=.57;t.$ez.ei="ScaleEndExtent";t.$ez.scaleEndExtentProperty=t.$bm.i("ScaleEndExtent",Number,t.$ez.$type,new t.bn(2,.57,function(n,t){n.e0("ScaleEndExtent",t.d(),t.c())}));t.$ez.labelExtentDefaultValue=.65;t.$ez.dk="LabelExtent";t.$ez.labelExtentProperty=t.$bm.i("LabelExtent",Number,t.$ez.$type,new t.bn(2,.65,function(n,t){n.e0("LabelExtent",t.d(),t.c())}));t.$ez.dl="LabelInterval";t.$ez.labelIntervalProperty=t.$bm.i("LabelInterval",Number,t.$ez.$type,new t.bn(2,NaN,function(n,t){n.e0("LabelInterval",t.d(),t.c())}));t.$ez.tickStartExtentDefaultValue=.5;t.$ez.eq="TickStartExtent";t.$ez.tickStartExtentProperty=t.$bm.i("TickStartExtent",Number,t.$ez.$type,new t.bn(2,.5,function(n,t){n.e0("TickStartExtent",t.d(),t.c())}));t.$ez.tickEndExtentDefaultValue=.57;t.$ez.ep="TickEndExtent";t.$ez.tickEndExtentProperty=t.$bm.i("TickEndExtent",Number,t.$ez.$type,new t.bn(2,.57,function(n,t){n.e0("TickEndExtent",t.d(),t.c())}));t.$ez.tickStrokeThicknessDefaultValue=3;t.$ez.er="TickStrokeThickness";t.$ez.tickStrokeThicknessProperty=t.$bm.i("TickStrokeThickness",Number,t.$ez.$type,new t.bn(2,3,function(n,t){n.e0("TickStrokeThickness",t.d(),t.c())}));t.$ez.eo="TickBrush";t.$ez.tickBrushProperty=t.$bm.i("TickBrush",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("TickBrush",t.d(),t.c())}));t.$ez.dh="FontBrush";t.$ez.fontBrushProperty=t.$bm.i("FontBrush",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("FontBrush",t.d(),t.c())}));t.$ez.minorTickStartExtentDefaultValue=.54;t.$ez.ds="MinorTickStartExtent";t.$ez.minorTickStartExtentProperty=t.$bm.i("MinorTickStartExtent",Number,t.$ez.$type,new t.bn(2,.54,function(n,t){n.e0("MinorTickStartExtent",t.d(),t.c())}));t.$ez.minorTickEndExtentDefaultValue=.57;t.$ez.dr="MinorTickEndExtent";t.$ez.minorTickEndExtentProperty=t.$bm.i("MinorTickEndExtent",Number,t.$ez.$type,new t.bn(2,.57,function(n,t){n.e0("MinorTickEndExtent",t.d(),t.c())}));t.$ez.minorTickStrokeThicknessDefaultValue=2;t.$ez.dt="MinorTickStrokeThickness";t.$ez.minorTickStrokeThicknessProperty=t.$bm.i("MinorTickStrokeThickness",Number,t.$ez.$type,new t.bn(2,2,function(n,t){n.e0("MinorTickStrokeThickness",t.d(),t.c())}));t.$ez.dp="MinorTickBrush";t.$ez.minorTickBrushProperty=t.$bm.i("MinorTickBrush",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("MinorTickBrush",t.d(),t.c())}));t.$ez.dq="MinorTickCount";t.$ez.minorTickCountProperty=t.$bm.i("MinorTickCount",Number,t.$ez.$type,new t.bn(2,3,function(n,t){n.e0("MinorTickCount",t.d(),t.c())}));t.$ez.eg="ScaleBrush";t.$ez.scaleBrushProperty=t.$bm.i("ScaleBrush",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("ScaleBrush",t.d(),t.c())}));t.$ez.c5="BackingBrush";t.$ez.backingBrushProperty=t.$bm.i("BackingBrush",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("BackingBrush",t.d(),t.c())}));t.$ez.c9="BackingOutline";t.$ez.backingOutlineProperty=t.$bm.i("BackingOutline",t.$az.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("BackingOutline",t.d(),t.c())}));t.$ez.dc="BackingStrokeThickness";t.$ez.backingStrokeThicknessProperty=t.$bm.i("BackingStrokeThickness",Number,t.$ez.$type,new t.bn(2,12,function(n,t){n.e0("BackingStrokeThickness",t.d(),t.c())}));t.$ez.backingOuterExtentDefaultValue=.82;t.$ez.c8="BackingOuterExtent";t.$ez.backingOuterExtentProperty=t.$bm.i("BackingOuterExtent",Number,t.$ez.$type,new t.bn(2,.82,function(n,t){n.e0("BackingOuterExtent",t.d(),t.c())}));t.$ez.da="BackingOversweep";t.$ez.backingOversweepProperty=t.$bm.i("BackingOversweep",Number,t.$ez.$type,new t.bn(2,3,function(n,t){n.e0("BackingOversweep",t.d(),t.c())}));t.$ez.cp=2.8;t.$ez.ej="ScaleOversweep";t.$ez.scaleOversweepProperty=t.$bm.i("ScaleOversweep",Number,t.$ez.$type,new t.bn(2,2.8,function(n,t){n.e0("ScaleOversweep",t.d(),t.c())}));t.$ez.ek="ScaleOversweepShape";t.$ez.scaleOversweepShapeProperty=t.$bm.i("ScaleOversweepShape",t.$dk.$type,t.$ez.$type,new t.bn(2,0,function(n,t){n.e0("ScaleOversweepShape",t.d(),t.c())}));t.$ez.backingCornerRadiusDefaultValue=4;t.$ez.c6="BackingCornerRadius";t.$ez.backingCornerRadiusProperty=t.$bm.i("BackingCornerRadius",Number,t.$ez.$type,new t.bn(2,4,function(n,t){n.e0("BackingCornerRadius",t.d(),t.c())}));t.$ez.backingInnerExtentDefaultValue=.12;t.$ez.c7="BackingInnerExtent";t.$ez.backingInnerExtentProperty=t.$bm.i("BackingInnerExtent",Number,t.$ez.$type,new t.bn(2,.12,function(n,t){n.e0("BackingInnerExtent",t.d(),t.c())}));t.$ez.db="BackingShape";t.$ez.backingShapeProperty=t.$bm.i("BackingShape",t.$dj.$type,t.$ez.$type,new t.bn(2,0,function(n,t){n.e0("BackingShape",t.d(),t.c())}));t.$ez.ef="Ranges";t.$ez.rangesProperty=t.$bm.i("Ranges",t.$e7.$type,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("Ranges",t.d(),t.c())}));t.$ez.ec="RadiusMultiplier";t.$ez.radiusMultiplierProperty=t.$bm.i("RadiusMultiplier",Number,t.$ez.$type,new t.bn(2,1,function(n,t){n.e0("RadiusMultiplier",t.d(),t.c())}));t.$ez.df="DuplicateLabelOmissionStrategy";t.$ez.duplicateLabelOmissionStrategyProperty=t.$bm.i("DuplicateLabelOmissionStrategy",t.$di.$type,t.$ez.$type,new t.bn(2,0,function(n,t){n.e0("DuplicateLabelOmissionStrategy",t.d(),t.c())}));t.$ez.di="Font";t.$ez.fontProperty=t.$bm.i("Font",String,t.$ez.$type,new t.bn(2,null,function(n,t){n.e0("Font",t.d(),t.c())}));t.$ez.eu="TransitionProgress";t.$fm.o="Brush";t.$fm.brushProperty=t.$bm.i("Brush",t.$az.$type,t.$fm.$type,new t.bn(2,null,function(n,t){n.x("Brush",t.d(),t.c())}));t.$fm.u="Outline";t.$fm.outlineProperty=t.$bm.i("Outline",t.$az.$type,t.$fm.$type,new t.bn(2,null,function(n,t){n.x("Outline",t.d(),t.c())}));t.$fm.v="StartValue";t.$fm.startValueProperty=t.$bm.i("StartValue",Number,t.$fm.$type,new t.bn(2,NaN,function(n,t){n.x("StartValue",t.d(),t.c())}));t.$fm.p="EndValue";t.$fm.endValueProperty=t.$bm.i("EndValue",Number,t.$fm.$type,new t.bn(2,NaN,function(n,t){n.x("EndValue",t.d(),t.c())}));t.$fm.r="InnerStartExtent";t.$fm.innerStartExtentProperty=t.$bm.i("InnerStartExtent",Number,t.$fm.$type,new t.bn(2,NaN,function(n,t){n.x("InnerStartExtent",t.d(),t.c())}));t.$fm.q="InnerEndExtent";t.$fm.innerEndExtentProperty=t.$bm.i("InnerEndExtent",Number,t.$fm.$type,new t.bn(2,NaN,function(n,t){n.x("InnerEndExtent",t.d(),t.c())}));t.$fm.t="OuterStartExtent";t.$fm.outerStartExtentProperty=t.$bm.i("OuterStartExtent",Number,t.$fm.$type,new t.bn(2,NaN,function(n,t){n.x("OuterStartExtent",t.d(),t.c())}));t.$fm.s="OuterEndExtent";t.$fm.outerEndExtentProperty=t.$bm.i("OuterEndExtent",Number,t.$fm.$type,new t.bn(2,NaN,function(n,t){n.x("OuterEndExtent",t.d(),t.c())}));t.$fm.w="StrokeThickness";t.$fm.strokeThicknessProperty=t.$bm.i("StrokeThickness",Number,t.$fm.$type,new t.bn(2,1,function(n,t){n.x("StrokeThickness",t.d(),t.c())}));n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper,n.ig.RearrangedList$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["ofType$1","cast$1"]]]);n.ig.util.extCopy(n.ig.ArrayUtil,[[[n.ig.EdgeClipper,n.ig.RearrangedList$1],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);n.ig.util.extCopy(n.ig.BrushUtil,[[[],["getLightened"]]]);n.ig.util.extCopy(n.ig.ColorUtil,[[[],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);n.ig.util.extCopy(n.ig.Extensions,[[[],["reset1"]],[[],["reset"]],[[],["detach"]],[[],["transferChildrenTo"]],[[],["isPlottable"]],[[],["isPlottable1"]]]);n.ig.util.extCopy(n.ig.PathFigureUtil,[[[],["duplicate1"]],[[],["duplicate"]]]);n.ig.util.extCopy(n.ig.PointCollectionUtil,[[[n.ig.RearrangedList$1],["flattenTo","getBounds2","clipTo"]],[[n.ig.RearrangedList$1],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[],["getBounds3","getBounds4","toPointCollections"]]]);n.ig.util.extCopy(n.ig.RectUtil,[[[],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["DeferredOperation:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","Action:x","MulticastDelegate:y","IntPtr:z","Callback:aa","window:ab","RadialMenuUpdateVisualResult:ac","RadialMenuInvalidation:ad","RadialMenuWedgePart:ae","RadialMenuPart:af","RadialMenuPointerArea:ag","RadialMenuAnimation:ah","OuterRingButtonType:ai","RadialMenuChildItemPlacement:aj","RadialMenuCheckBehavior:ak","RadialMenuValueChangedEventArgs$1:al","EventArgs:am","RadialMenuNumericValueChangedEventArgs:an","RadialMenuColorChangedEventArgs:ao","Color:ap","Number:aq","Math:ar","Number:as","Number:at","Number:au","Number:av","Number:aw","Number:ax","Number:ay","Script:az","RadialMenuItemBase:a0","Control:a1","FrameworkElement:a2","UIElement:a3","DependencyObject:a4","Dictionary:a5","IEnumerable:a6","IEnumerator:a7","DependencyProperty:a8","PropertyMetadata:a9","PropertyChangedCallback:ba","DependencyPropertyChangedEventArgs:bb","DependencyPropertiesCollection:bc","UnsetValue:bd","Binding:be","PropertyPath:bf","Transform:bg","Visibility:bh","Style:bi","Thickness:bj","HorizontalAlignment:bk","VerticalAlignment:bl","INotifyPropertyChanged:bm","PropertyChangedEventHandler:bn","PropertyChangedEventArgs:bo","Brush:bp","XamRadialMenu:bq","ObservableCollection$1:br","List$1:bs","IList$1:bt","ICollection$1:bu","IEnumerable$1:bv","IEnumerator$1:bw","IArrayList:bx","Array:by","ICollection:bz","CompareCallback:b0","IList:b1","IDisposable:b2","IArray:b3","Date:b4","Date:b5","Func$3:b6","Action$1:b7","INotifyCollectionChanged:b8","NotifyCollectionChangedEventHandler:b9","NotifyCollectionChangedEventArgs:ca","NotifyCollectionChangedAction:cb","Delegate:cc","DataTemplate:cd","DataTemplateRenderHandler:ce","DataTemplateRenderInfo:cf","DataTemplatePassInfo:cg","DataTemplateMeasureHandler:ch","DataTemplateMeasureInfo:ci","DataTemplatePassHandler:cj","EasingFunctionHandler:ck","Panel:cl","UIElementCollection:cm","RadialMenuFrame:cn","Ellipse:co","ShapeDefinition:cp","Geometry:cq","GeometryType:cr","Point:cs","ShapeUtilities:ct","AnnularSector:cu","Annulus:cv","PathBuilder:cw","PathGeometry:cx","PathFigureCollection:cy","LiteRect:cz","LiteRectExtensions:c0","Rect:c1","Size:c2","PathSegmentCollection:c3","ArcSegment:c4","PathSegment:c5","PathSegmentType:c6","SweepDirection:c7","PolyBezierSegment:c8","PointCollection:c9","LineSegment:da","PathFigure:db","Dictionary$2:dc","IDictionary$2:dd","IDictionary:de","IEqualityComparer$1:df","KeyValuePair$2:dg","NotImplementedException:dh","Error:di","RadialMenuItemPosition:dj","Debug:dk","Stack$1:dl","ReverseArrayEnumerator$1:dm","RadialMenuItemLevel:dn","RadialMenuItem:dp","Action$2:dq","RadialMenuItemBaseCollection:dr","XamRadialMenuView:ds","Element:dt","ElementAttributeCollection:du","ElementCollection:dv","WebStyle:dw","ElementNodeType:dx","Document:dy","EventListener:dz","IElementEventHandler:d0","ElementEventHandler:d1","ElementAttribute:d2","EventProxy:d3","ModifierKeys:d4","Func$2:d5","MouseWheelHandler:d6","GestureHandler:d7","ContactHandler:d8","TouchHandler:d9","MouseOverHandler:ea","MouseHandler:eb","KeyHandler:ec","Key:ed","JQuery:ee","JQueryObject:ef","JQueryPosition:eg","JQueryCallback:eh","JQueryEvent:ei","JQueryUICallback:ej","JQueryDeferred:ek","JQueryPromise:el","CssClassChain$1:em","CssProperty:en","Tuple$2:eo","RadialMenuItemToolTipVisualData:ep","IVisualData:eq","StringBuilder:er","CssDpCache:es","CssPropCacheBase$2:et","CssHelper:eu","FontUtil:ev","FontInfo:ew","CssPropCache$1:ex","Path:ey","Shape:ez","DoubleCollection:e0","TextBlock:e1","TranslateTransform:e2","RadialMenuItemView:e3","TextContainer:e4","RenderingContext:e5","IRenderer:e6","Rectangle:e7","Polygon:e8","Polyline:e9","ContentControl:fa","Line:fb","CanvasContext2D:fc","CanvasContext:fd","TextMetrics:fe","ImageData:ff","CanvasElement:fg","Gradient:fh","ImageElement:fi","ImageManager:fj","DivElement:fk","RadialMenuDOMEventProxy:fl","DOMEventProxy:fm","MSGesture:fn","MouseEventArgs:fo","CanvasViewRenderer:fp","LinearGradientBrush:fq","GradientStop:fr","GeometryGroup:fs","GeometryCollection:ft","FillRule:fu","LineGeometry:fv","RectangleGeometry:fw","EllipseGeometry:fx","PolyLineSegment:fy","BezierSegment:fz","GeometryUtil:f0","TransformGroup:f1","TransformCollection:f2","RotateTransform:f3","ScaleTransform:f4","RadialMenuUtilities:f5","ColorNameCalculator:f6","DoubleAnimator:f7","Image:f8","RadialMenuColorWell:f9","RadialMenuColorItemBase:ga","EventHandler$1:gb","RadialMenuColorItem:gc","EventHandler:gd","ColorUtil:ge","Random:gf","InterpolationMode:gg","MathUtil:gh","RuntimeHelpers:gi","RuntimeFieldHandle:gj","RadialMenuVisualData:gk","PrimitiveVisualData:gl","PrimitiveAppearanceData:gm","BrushAppearanceData:gn","AppearanceHelper:go","LinearGradientBrushAppearanceData:gp","GradientStopAppearanceData:gq","SolidBrushAppearanceData:gr","EllipseGeometryData:gs","GeometryData:gt","GetPointsSettings:gu","RectangleGeometryData:gv","LineGeometryData:gw","PathGeometryData:gx","PathFigureData:gy","LineSegmentData:gz","SegmentData:g0","PolylineSegmentData:g1","ArcSegmentData:g2","PolyBezierSegmentData:g3","LabelAppearanceData:g4","ShapeTags:g5","RadialMenuItemVisualDataList:g6","ColorWellPreviewDataList:g7","KeyTipManager:g8","CultureInfo:g9","IFormatProvider:ha","KeyTipExtensions:hb","KeyTipInfo:hc","StackPool$1:hd","Func$1:he","PathVisualData:hf","RadialMenuItemVisualData:hg","RadialMenuItemFrame:hh","ColorWellPreviewData:hi","TimedOperation:hj","RadialMenuPointerAnimationInfo:hk","TextDefinition:hl","Enumerable:hm","IOrderedEnumerable$1:hn","SortedList$1:ho","ArgumentNullException:hp","BrushUtil:hq","BrushCollection:hr","CssGradientUtil:hs","Nullable:ht","TriangleShape:hu","ArgumentOutOfRangeException:hv","ArgumentException:hw","RadialMenuNumericGauge:hx","RadialMenuNumericGaugeFrame:hy","LineSegmentShape:hz","RadialMenuNumericGaugeVisualData:h0","RadialMenuNumericGaugeTickmarkDataList:h1","RadialMenuNumericGaugeNeedleData:h2","PrimitiveVisualDataList:h3","RadialMenuNumericGaugeTickmarkData:h4","RadialMenuNumericItem:h5","EllipseSector:h6","RadialMenuItemOverlayTemplates:h7","BindingExpression:h8","PropertyStep:h9","AbstractEnumerable:ia","AbstractEnumerator:ib","GenericEnumerable$1:ic","GenericEnumerator$1:id"]);n.ig.util.defType("CssProperty:en","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("CssProperty",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialMenuCheckBehavior:ak","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialMenuCheckBehavior",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialMenuChildItemPlacement:aj","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialMenuChildItemPlacement",n.ig.$ep.$type)},!0);n.ig.util.defType("OuterRingButtonType:ai","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("OuterRingButtonType",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialMenuAnimation:ah","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialMenuAnimation",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialMenuPointerArea:ag","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialMenuPointerArea",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialMenuPart:af","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialMenuPart",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialMenuWedgePart:ae","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialMenuWedgePart",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialMenuInvalidation:ad","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialMenuInvalidation",n.ig.$ep.$type)},!0);n.ig.util.defType("RadialMenuUpdateVisualResult:ac","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("RadialMenuUpdateVisualResult",n.ig.$ep.$type)},!0);n.ig.util.defType("DeferredOperation:a","Object",{e:null,a:null,b:!1,init:function(t){n.ig.$op.init.call(this);this.a=t},c:function(){return this.e!=null},d:function(){return this.b},g:function(){if(this.e!=null){this.e=null;var n=this.b;this.b=!0;try{this.a()}finally{this.b=n}}},f:function(){this.e=null},i:function(){var n=this,t;n.e==null&&(t={},n.e=t,window.setTimeout(function(){return n.h(t)},0))},h:function(n){n==this.e&&this.g()},$type:new n.ig.Type("DeferredOperation",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuValueChangedEventArgs$1:al","EventArgs",{$t:null,c:null,b:null,init:function(n,i,r){this.$t=n;this.$type=this.$type.specialize(this.$t);t.$am.init.call(this);this.c=i;this.b=r},oldValue:function(){return this.c},newValue:function(){return this.b},$type:new n.ig.Type("RadialMenuValueChangedEventArgs$1",t.$am.$type)},!0);n.ig.util.defType("RadialMenuNumericValueChangedEventArgs:an","RadialMenuValueChangedEventArgs$1",{init:function(n,i){t.$al.init.call(this,Number,n,i)},$type:new n.ig.Type("RadialMenuNumericValueChangedEventArgs",t.$al.$type.specialize(Number))},!0);n.ig.util.defType("RadialMenuColorChangedEventArgs:ao","RadialMenuValueChangedEventArgs$1",{init:function(n,i){t.$al.init.call(this,t.$ap.$type,n,i)},$type:new n.ig.Type("RadialMenuColorChangedEventArgs",t.$al.$type.specialize(t.$ap.$type))},!0);n.ig.util.defType("RadialMenuItemBase:a0","Control",{_dataItem:null,staticInit:function(){},init:function(){var n=this;this._dataItem=null;this.am=!0;t.$a1.init.call(this);this.f(t.$a0.cz,function(){var i=new t.be(0);return i.f(new t.bf("Visibility")),i.d(n),i}())},autoRotateChildren:function(n){return arguments.length===1?(this.g(t.$a0.autoRotateChildrenProperty,n),n):this.c(t.$a0.autoRotateChildrenProperty)},checkedHighlightBrush:function(n){return arguments.length===1?(this.g(t.$a0.checkedHighlightBrushProperty,n),n):this.c(t.$a0.checkedHighlightBrushProperty)},c3:function(){return this.bb(t.$a0.checkedHighlightBrushProperty)},foreground:function(n){return arguments.length===1?(this.g(t.$a0.foregroundProperty,n),n):this.c(t.$a0.foregroundProperty)},highlightBrush:function(n){return arguments.length===1?(this.g(t.$a0.highlightBrushProperty,n),n):this.c(t.$a0.highlightBrushProperty)},c6:function(){return this.bb(t.$a0.highlightBrushProperty)},innerAreaFill:function(n){return arguments.length===1?(this.g(t.$a0.innerAreaFillProperty,n),n):this.c(t.$a0.innerAreaFillProperty)},c8:function(){return this.bb(t.$a0.innerAreaFillProperty)},innerAreaHotTrackFill:function(n){return arguments.length===1?(this.g(t.$a0.innerAreaHotTrackFillProperty,n),n):this.c(t.$a0.innerAreaHotTrackFillProperty)},innerAreaHotTrackStroke:function(n){return arguments.length===1?(this.g(t.$a0.innerAreaHotTrackStrokeProperty,n),n):this.c(t.$a0.innerAreaHotTrackStrokeProperty)},innerAreaStroke:function(n){return arguments.length===1?(this.g(t.$a0.innerAreaStrokeProperty,n),n):this.c(t.$a0.innerAreaStrokeProperty)},de:function(){return this.bb(t.$a0.innerAreaStrokeProperty)},innerAreaStrokeThickness:function(n){return arguments.length===1?(this.g(t.$a0.innerAreaStrokeThicknessProperty,n),n):this.c(t.$a0.innerAreaStrokeThicknessProperty)},a3:function(){return this.bb(t.$a0.innerAreaStrokeThicknessProperty)},am:!1,isEnabled:function(n){return arguments.length===1?(n!=this.am&&(this.am=n,this.cb("IsEnabled",!n,n)),n):this.am},isToolTipEnabled:function(n){return arguments.length===1?(this.g(t.$a0.isToolTipEnabledProperty,n),n):this.c(t.$a0.isToolTipEnabledProperty)},menu:function(){return this.c(t.$a0.menuProperty)},outerRingButtonHotTrackFill:function(n){return arguments.length===1?(this.g(t.$a0.outerRingButtonHotTrackFillProperty,n),n):this.c(t.$a0.outerRingButtonHotTrackFillProperty)},dk:function(){return this.bb(t.$a0.outerRingButtonHotTrackFillProperty)},outerRingButtonHotTrackForeground:function(n){return arguments.length===1?(this.g(t.$a0.outerRingButtonHotTrackForegroundProperty,n),n):this.c(t.$a0.outerRingButtonHotTrackForegroundProperty)},dm:function(){return this.bb(t.$a0.outerRingButtonHotTrackForegroundProperty)},outerRingButtonHotTrackStroke:function(n){return arguments.length===1?(this.g(t.$a0.outerRingButtonHotTrackStrokeProperty,n),n):this.c(t.$a0.outerRingButtonHotTrackStrokeProperty)},dp:function(){return this.bb(t.$a0.outerRingButtonHotTrackStrokeProperty)},outerRingButtonFill:function(n){return arguments.length===1?(this.g(t.$a0.outerRingButtonFillProperty,n),n):this.c(t.$a0.outerRingButtonFillProperty)},dg:function(){return this.bb(t.$a0.outerRingButtonFillProperty)},outerRingButtonForeground:function(n){return arguments.length===1?(this.g(t.$a0.outerRingButtonForegroundProperty,n),n):this.c(t.$a0.outerRingButtonForegroundProperty)},di:function(){return this.bb(t.$a0.outerRingButtonForegroundProperty)},outerRingButtonStroke:function(n){return arguments.length===1?(this.g(t.$a0.outerRingButtonStrokeProperty,n),n):this.c(t.$a0.outerRingButtonStrokeProperty)},dr:function(){return this.bb(t.$a0.outerRingButtonStrokeProperty)},outerRingButtonStrokeThickness:function(n){return arguments.length===1?(this.g(t.$a0.outerRingButtonStrokeThicknessProperty,n),n):this.c(t.$a0.outerRingButtonStrokeThicknessProperty)},a5:function(){return this.bb(t.$a0.outerRingButtonStrokeThicknessProperty)},parentItem:function(n){return arguments.length===1?(this.g(t.$a0.parentItemProperty,n),n):this.c(t.$a0.parentItemProperty)},toolTip:function(n){return arguments.length===1?(this.g(t.$a0.toolTipProperty,n),n):this.c(t.$a0.toolTipProperty)},wedgeIndex:function(n){return arguments.length===1?(this.g(t.$a0.wedgeIndexProperty,n),n):this.c(t.$a0.wedgeIndexProperty)},wedgeSpan:function(n){return arguments.length===1?(this.g(t.$a0.wedgeSpanProperty,n),n):this.c(t.$a0.wedgeSpanProperty)},a8:function(){return null},ba:function(){var n=this._dataItem;return n==null&&(n=this),n},ao:function(){return!1},ap:function(){return!1},da:function(){var n=this.bb(t.$a0.innerAreaHotTrackFillProperty);return n==null&&(n=this.c8()),n},dc:function(){var n=this.bb(t.$a0.innerAreaHotTrackStrokeProperty);return n==null&&(n=this.de()),n},_as:!1,as:function(n){return arguments.length===1?(this._as=n,n):this._as},_at:!1,at:function(n){return arguments.length===1?(this._at=n,n):this._at},a0:function(){return null},ad:function(){return 0},bd:function(){var n=this.toolTip();return n!=null?n:null},a1:function(){return NaN},ag:function(){return null},ah:function(){return new t.hg},az:function(){return null},bb:function(n){var i=this.d(n);return i==t.$a8.c&&(i=this.menu()!=null?this.menu().al().al(n):this.c(n)),i},ae:function(n){return n!=null&&n==this.ba()?this:null},aq:function(n){while(n!=null)if(n=n.parentItem(),n==this)return!0;return!1},av:function(){return!1},b7:function(){this.menu()!=null&&this.menu().dv(this)},b8:function(){var n=this.closed;null!=n&&n(this,t.$am.empty)},b9:function(){var n=this.opened;null!=n&&n(this,t.$am.empty)},aw:function(){return!0},ca:function(){},cc:function(n,t,i){t!=i&&this.cb(n,t,i)},cb:function(n){var i=this.propertyChanged;null!=i&&i(this,new t.bo(n))},ax:function(){return!1},ay:function(){return!1},cd:function(n){this.g(t.$a0.menuProperty,n)},ai:function(){return 0},closed:null,opened:null,propertyChanged:null,$type:new n.ig.Type("RadialMenuItemBase",t.$a1.$type,[t.$bm.$type])},!0);n.ig.util.defType("RadialMenuItem:dp","RadialMenuItemBase",{d3:null,staticInit:function(){},init:function(){var i=this;t.$a0.init.call(this);this.d3=new t.dr(function(n,t){n.cd(t?i.menu():null);n.parentItem(t?i:null)});this.d3.propertyChanged=n.ig.Delegate.prototype.combine(this.d3.propertyChanged,this.eq.runOn(this))},a1:function(n,i){var e=this.recentItem(),u,r,f,o,s;if(null!=e)for(u=i.getEnumerator();u.moveNext();)if(r=u.current(),f=r.item(),f.parentItem()==this&&this.d5(f)==e)return o=r.e+(r.d-r.e)/2,s=n.e+(n.d-n.e)/2,s-o;return t.$a0.a1.call(this,n,i)},ao:function(){return this.isChecked()},ae:function(n){var i=t.$a0.ae.call(this,n),r,u;if(null==i)for(r=this.items().getEnumerator();r.moveNext();)if(u=r.current(),i=u.ae(n),i!=null)break;return i},a0:function(){return this.d3},b7:function(){var u=this.checkBehavior(),r,i,f;u!=0&&(r=!this.isChecked(),(r||u!=2)&&this.eu(r));i=n.ig.util.cast(t.$dp.$type,this.parentItem());null!=i&&i.autoUpdateRecentItem()&&(f=i.d5(this),i.recentItem(f));this.ep(t.$am.empty);t.$a0.b7.call(this)},cb:function(n,i,r){switch(n){case"IsChecked":!0==r?(this.ev(),this.eo(t.$am.empty)):this.es(t.$am.empty);this.cb("DisplayAsChecked",i,r);break;case"RecentItem":this.recentItemContainer(this.dw(r))}t.$a0.cb.call(this,n,i,r)},ad:function(){var n=t.$a0.ad.call(this);return n==0&&this.items().count()>0&&this.du()==0&&(n=2),n},cd:function(n){var i,r;for(t.$a0.cd.call(this,n),i=this.a0().getEnumerator();i.moveNext();)r=i.current(),r!=null&&r.cd(n)},bd:function(){var r=t.$a0.bd.call(this),i;return r!=null?r:(i=this.header(),i!=null&&!(n.ig.util.cast(t.$a3.$type,i)!==null))?i:null},autoUpdateRecentItem:function(n){return arguments.length===1?(this.g(t.$dp.autoUpdateRecentItemProperty,n),n):this.c(t.$dp.autoUpdateRecentItemProperty)},childItemPlacement:function(n){return arguments.length===1?(this.g(t.$dp.childItemPlacementProperty,n),n):this.c(t.$dp.childItemPlacementProperty)},checkBehavior:function(n){return arguments.length===1?(this.g(t.$dp.checkBehaviorProperty,n),n):this.c(t.$dp.checkBehaviorProperty)},isChecked:function(n){return arguments.length===1?(this.g(t.$dp.isCheckedProperty,n),n):this.c(t.$dp.isCheckedProperty)},groupName:function(n){return arguments.length===1?(this.g(t.$dp.groupNameProperty,n),n):this.c(t.$dp.groupNameProperty)},header:function(n){return arguments.length===1?(this.g(t.$dp.headerProperty,n),n):this.c(t.$dp.headerProperty)},iconUri:function(n){return arguments.length===1?(this.g(t.$dp.iconUriProperty,n),n):this.c(t.$dp.iconUriProperty)},iconOverlay:function(n){return arguments.length===1?(this.g(t.$dp.iconOverlayProperty,n),n):this.c(t.$dp.iconOverlayProperty)},iconOverlayValue:function(n){return arguments.length===1?(this.g(t.$dp.iconOverlayValueProperty,n),n):this.c(t.$dp.iconOverlayValueProperty)},items:function(){return this.d3},keyTip:function(n){return arguments.length===1?(this.g(t.$dp.keyTipProperty,n),n):this.c(t.$dp.keyTipProperty)},recentItem:function(n){return arguments.length===1?(this.g(t.$dp.recentItemProperty,n),n):this.c(t.$dp.recentItemProperty)},er:function(n,t){var i=n;i.cc("RecentItemContainer",t.d(),t.c())},recentItemContainer:function(n){return arguments.length===1?(this.g(t.$dp.recentItemContainerProperty,n),n):this.c(t.$dp.recentItemContainerProperty)},du:function(){return this.ap()?0:this.childItemPlacement()},dv:function(){return new t.dp},dw:function(n){for(var i=this.items().getEnumerator(),t;i.moveNext();)if(t=i.current(),t._dataItem==n)return t;return null},d5:function(n){return n._dataItem},eq:function(n,t){switch(t.propertyName()){case"Count":this.cb("OuterRingButtonType",null,null)}},et:function(n){this.iconOverlayValue(n)},eu:function(n){this.isChecked(n)},ev:function(){var r=null,u,f,o,s,c,i,e,h,l;if(this.parentItem()!=null?r=this.parentItem().a0():this.menu()!=null&&(u=this.menu().al().w(),u!=null&&u.contains(this)&&(r=u)),r!=null)switch(this.checkBehavior()){case 2:case 3:for(f=this.groupName(),f==null&&(f=""),o=new t.bs(t.$dp.$type,0),s=r.getEnumerator();s.moveNext();)c=s.current(),i=n.ig.util.cast(t.$dp.$type,c),i!=null&&i!=this&&i.isChecked()&&(e=i.groupName(),e==null&&(e=""),f==e&&o.add(i));for(h=o.getEnumerator();h.moveNext();)l=h.current(),l.eu(!1)}},eo:function(n){var t=this.checked;null!=t&&t(this,n)},checked:null,ep:function(n){var t=this.click;null!=t&&t(this,n)},click:null,es:function(n){var t=this.unchecked;null!=t&&t(this,n)},unchecked:null,$type:new n.ig.Type("RadialMenuItem",t.$a0.$type)},!0);n.ig.util.defType("RadialMenuColorItemBase:ga","RadialMenuItem",{init:function(){t.$dp.init.call(this)},a1:function(i,r){for(var h=this.color(),e=r.getEnumerator(),u,f,o,s;e.moveNext();)if(u=e.current(),f=n.ig.util.cast(t.$ga.$type,u.item()),f!=null&&t.$f5.d(f.color(),h))return o=u.e+(u.d-u.e)/2,s=i.e+(i.d-i.e)/2,s-o;return t.$dp.a1.call(this,i,r)},dv:function(){return new t.f9},cb:function(n,i,r){var f,u;n=="Color"&&(this.computedColorName(t.$f5.b().f(this.color())),this.et(r),f=i!=null&&r!=null&&!t.$f5.d(i,r),f&&(u=this.colorChanged,null!=u&&u(this,new t.ao(i,r))));t.$dp.cb.call(this,n,i,r)},color:function(n){return arguments.length===1?(this.g(t.$ga.colorProperty,n),n):this.c(t.$ga.colorProperty)},computedColorName:function(n){return arguments.length===1?(this.g(t.$ga.computedColorNameProperty,n),n):this.c(t.$ga.computedColorNameProperty)},fd:function(n){this.color(n)},colorChanged:null,$type:new n.ig.Type("RadialMenuColorItemBase",t.$dp.$type)},!0);n.ig.util.defType("RadialMenuColorItem:gc","RadialMenuColorItemBase",{staticInit:function(){},init:function(){t.$ga.init.call(this);this.iconOverlay(t.$h7.d)},fi:function(n){var t=this.colorWellClick;null!=t&&t(this,n)},colorWellClick:null,$type:new n.ig.Type("RadialMenuColorItem",t.$ga.$type)},!0);n.ig.util.defType("RadialMenuColorWell:f9","RadialMenuColorItemBase",{staticInit:function(){},init:function(){t.$ga.init.call(this)},ao:function(){for(var i=this.parentItem(),r;n.ig.util.cast(t.$ga.$type,i)!==null;){if(r=n.ig.util.cast(t.$gc.$type,i),r!=null)return t.$f5.d(r.color(),this.color());i=i.parentItem()}return t.$ga.ao.call(this)},b7:function(){for(var i=this.parentItem(),u=this.ao(),r,f;n.ig.util.cast(t.$ga.$type,i)!==null;)r=n.ig.util.cast(t.$ga.$type,i),r.fd(this.color()),n.ig.util.cast(t.$gc.$type,r)!==null&&(f=r,f.fi(t.$am.empty)),i=i.parentItem();u!=this.ao()&&this.cb("DisplayAsChecked",u,!u);t.$ga.b7.call(this)},cb:function(n,i,r){var u,f,e,o;n=="Color"&&(u=r,this.innerAreaHotTrackFill(this.innerAreaFill(this.outerRingButtonFill(t.$f5.s(u)))),this.outerRingButtonForeground(t.$f5.s(t.$f5.w(u))),f=u.getAHSL(),e=t.$f5.u(u,f[3]<.5?60:-80),this.highlightBrush(this.outerRingButtonHotTrackFill(t.$f5.s(e))),this.outerRingButtonHotTrackForeground(t.$f5.s(t.$f5.w(e))),o=t.$f5.u(u,f[3]<.5?30:-40),this.checkedHighlightBrush(t.$f5.s(o)),this.fh());t.$ga.cb.call(this,n,i,r)},ad:function(){var n=t.$ga.ad.call(this);return n==0&&(n=1),n},bd:function(){var n=t.$ga.bd.call(this);return n==null?this.computedColorName():n},fh:function(){var n=this.menu(),i=t.$ap.n(255,255,255,255),r=n!=null?n.menuBackground():null;r!=null&&(i=r.color());this.fi(i)},fi:function(n){var i=t.$f5.f(this.color()),r=t.$f5.f(n);Math.abs(r-i)<.1?this.outerRingButtonStroke(this.innerAreaStroke(this.checkedHighlightBrush())):this.outerRingButtonStroke(this.innerAreaStroke(null));this.outerRingButtonHotTrackStroke(this.innerAreaHotTrackStroke(this.outerRingButtonStroke()))},$type:new n.ig.Type("RadialMenuColorWell",t.$ga.$type)},!0);n.ig.util.defType("RadialMenuItemBaseCollection:dr","ObservableCollection$1",{u:null,init:function(n){t.$br.init.call(this,t.$a0.$type);this.u=n},f:function(n){this.u(n,!0);t.$br.f.call(this,n)},h:function(){for(var n=this.getEnumerator(),i;n.moveNext();)i=n.current(),this.u(i,!1);t.$br.h.call(this)},j:function(n,i){this.u(i,!0);t.$br.j.call(this,n,i)},m:function(n){var i=this.__inner[n];this.u(i,!1);t.$br.m.call(this,n)},o:function(n,i){var r=this.__inner[n];this.u(r,!1);this.u(i,!0);t.$br.o.call(this,n,i)},$type:new n.ig.Type("RadialMenuItemBaseCollection",t.$br.$type.specialize(t.$a0.$type))},!0);n.ig.util.defType("RadialMenuNumericGauge:hx","RadialMenuItemBase",{dz:null,d0:0,dw:!1,d8:null,dv:!1,dt:null,staticInit:function(){},init:function(){this.d0=NaN;t.$a0.init.call(this);this.dt=new t.a(this.ek.runOn(this));this.dz=new t.bs(Number,0);this.pendingValue(this.value(NaN))},ag:function(n,i){var r=this,e,a,vt,ai,vi,nt,yt,pt,y,s,wt,bt,yi,kt,pi;if(r.ep(),e=r.dz.count(),e==0)return null;var tt=r.dx(),dt=2,gt=4,p=34,u=new t.hy,h=n.e,wi=n.d-n.e,w=wi/(tt?e:e-1),f=i.j(),c=i.g(),ni=i.h(),o=i.am(),it=Math.min(i.ak,ni.i+6),rt=Math.min(i.al,ni.j+6),b=Math.max(i.ak-p,it),k=Math.max(i.al-p,rt),ti=Math.max(b-dt,it),ii=Math.max(k-dt,rt),ut=new t.cz(1,o.__x-b,o.__y-k,b*2,k*2),ri=t.$ct.c(ut,gt,gt),l=r.value(),ft=!isNaN(l),et=ft&&l>r.dz.__inner[0]&&l<r.dz.__inner[e-1],ot=Math.max(ti-1,c.i),st=Math.max(ii-1,c.j),ui=Math.min(Math.max(c.i-c.b()/2,0),ot),fi=Math.min(Math.max(c.j-c.b()/2,0),st),ht=new t.cz(1,o.__x-ot,o.__y-st,ot*2,st*2),ct=new t.cz(1,o.__x-ui,o.__y-fi,ui*2,fi*2),ei=Math.max(i.ak-p/2,it),oi=Math.max(i.al-p/2,rt),si=new t.cz(1,o.__x-ei,o.__y-oi,ei*2,oi*2),hi=r.e3(),lt=r.e9(),bi=r.e7(),ci=lt,at=lt;for(u.j=ct,u.k=ht,a=0;a<e;a++){if(vt=r.dz.__inner[a],et&&vt==l&&(et=!1),tt||a<e-1){var li=t.$ct.a(f,b,k,ti,ii,h,h+w),v=new t.fq,d=t.$ct.q(f,h),g=t.$ct.q(f,h+w),ki=d.__x>g.__x?1:0,di=d.__y>g.__y?1:0,gi=d.__x<g.__x?1:0,nr=d.__y<g.__y?1:0;ci=at;at=lt.getInterpolation((a+1)/e,bi,0);ai=function(){var n=new t.fr;return n.color(ci),n._offset=0,n}();vi=function(){var n=new t.fr;return n.color(at),n._offset=1,n}();v._startX=ki;v._startY=di;v._endX=gi;v._endY=nr;v._gradientStops=function(){var n=[];return n.add(ai),n.add(vi),n}();li.d(v);u.b().add(li)}nt=h;tt&&(nt+=w);yt=t.$hx.du(f,ut,ri,hi,nt);u.b().add(yt);pt=t.$hx.ds(f,si,vt,nt);pt.a=yt;u.a().add(pt);h+=w}for(y=ft?r.d1(n,l):0,s=u.i(),ft&&(et&&(wt=t.$hx.du(f,ut,ri,hi,y),wt.c=s,u.b().add(wt),bt=t.$hx.ds(f,si,l,y),bt.a=s,u.a().add(bt)),s.j=t.$ct.q(ht,t.$ct.n(f,y,ht)),s.i=t.$ct.q(ct,t.$ct.n(f,y,ct)),s.b(1),s.e(r.e5())),yi=r.foreground(),kt=u.a().getEnumerator();kt.moveNext();)pi=kt.current(),pi.e=yi;return r.ai(n,i,u),u},ah:function(){return new t.h0},az:function(n){var i=this,f=new t.bs(t.$hc.$type,0),u;i.ep();for(var r=i.value(),e=isNaN(r),o=function(n){var r=n.d(),t;i.value(r.a());t=i.menu();t!=null&&t.dv(i)},s=i.dz.getEnumerator();s.moveNext();)u=s.current(),e||(u==r?e=!0:u>r&&(e=!0,f.add(function(){var u=new t.hc;return u.a(o),u.c(i.d9.runOn(i)),u.d(new t.eo(Number,t.$dj.$type,r,n)),u}()))),f.add(function(){var r=new t.hc;return r.a(o),r.c(i.d9.runOn(i)),r.d(new t.eo(Number,t.$dj.$type,u,n)),r}());return f},bb:function(n){return n.propertyType()==t.$bp.$type&&t.$a8.h(n.name(),t.$a0.$type)!=null?this.c(n):t.$a0.bb.call(this,n)},as:function(n){return arguments.length===1?(n!=this.as()&&(t.$a0.as.call(this,n),n?(this.dt.f(),this.en(this.value())):this.dt.i()),n):t.$a0.as.call(this)},at:function(n){return arguments.length===1?(n!=t.$a0.at.call(this)&&(t.$a0.at.call(this,n),this.cb("InvalidateCustomVisuals",null,null)),n):t.$a0.at.call(this)},av:function(n){return(this.ep(),this.dz.count()==0)?!1:(this.en(this.dz.__inner[n?0:this.dz.count()-1]),!0)},b7:function(){if(!isNaN(this.pendingValue())){this.as()&&(this.dw=!0);this.eo(this.pendingValue());var i=n.ig.util.cast(t.$h5.$type,this.parentItem());null==i||isNaN(this.value())||i.fc(this.value())}t.$a0.b7.call(this)},ca:function(n,i,r,u){t.$a0.ca.call(this,n,i,r,u);var f=this.d5(n,r),e=this.dw;this.dw&&(this.d8==null?this.dw=!1:t.$ct.e(f,this.pendingValue())?(Math.abs(u.__x-this.d8.__x)>16||Math.abs(u.__y-this.d8.__y)>16)&&(this.dw=!1):this.dw=!1);this.d0=n;(this.dw==!1||this.d8==null)&&(this.d8=u);this.en(f,!0);this.cb("InvalidateCustomVisuals",null,null);e&&this.dw==!1&&this.cb("ToolTipResolved",null,null)},cb:function(n,i,r){switch(n){case"PendingValueNeedleBrush":this.cb("InvalidateCustomVisuals",null,null);break;case"PendingValue":this.cb("ToolTipResolved",null,null);this.cb("InvalidateCustomVisuals",null,null);break;case"ValueNeedleBrush":case"TickBrush":case"Value":case"ReserveFirstSlice":case"TrackStartColor":case"TrackEndColor":this.cb("DirtyCustomVisuals",null,null);break;case"Ticks":this.dv=!1;this.cb("DirtyCustomVisuals",null,null)}t.$a0.cb.call(this,n,i,r)},ax:function(n,t){var u=this.pendingValue(),i,r;if(isNaN(u))return this.av(n);if(i=u,this.ep(),this.dz.count()>0){if(i=i+this.smallIncrement()*(n?1:-1),r=this.dz.count()-1,i<this.dz.__inner[0])if(t)i=this.dz.__inner[r];else return!1;else if(i>this.dz.__inner[r])if(t)i=this.dz.__inner[0];else return!1;return this.en(i),!0}return!1},ay:function(n){var r=this.pendingValue(),i,t;if(isNaN(r))return this.av(n),!0;i=r;this.ep();var u=n?0:this.dz.count()-1,f=n?this.dz.count():-1,e=n?1:-1;for(t=u;t!=f;t+=e){if(n&&this.dz.__inner[t]<=i)continue;else if(!n&&this.dz.__inner[t]>=i)continue;return this.en(this.dz.__inner[t]),!0}return!1},bd:function(){var i=t.$a0.bd.call(this),n;return i!=null?i:(n=this.pendingValue(),isNaN(n)&&(n=this.value()),!isNaN(n))?n:null},ai:function(i,r,u){var v=t.$a0.ai.call(this,i,r,u),e=n.ig.util.cast(t.$hy.$type,u),s,h;if(e==null)return v;var c=r.j(),y=this.value(),l=e.k,a=e.j,o=this.pendingValue(),f=e.h();return isNaN(o)?f.b(0):(s=isNaN(this.d0)?NaN:this.d5(this.d0,i),h=!isNaN(s)&&s==o?this.d0:this.d1(i,o),f.j=t.$ct.q(l,t.$ct.n(c,h,l)),f.i=t.$ct.q(a,t.$ct.n(c,h,a)),f.b(1),this.at()?f.e(this.e5()):this.dw&&!isNaN(y)?f.e(t.$f5.t):f.e(this.e1())),this.at()&&f.b()>0?e.i().e(t.$f5.t):e.i().e()==t.$f5.t&&e.i().e(this.e5()),f.g(null),1},pendingValue:function(n){return arguments.length===1?(this.g(t.$hx.pendingValueProperty,n),n):this.c(t.$hx.pendingValueProperty)},pendingValueNeedleBrush:function(n){return arguments.length===1?(this.g(t.$hx.pendingValueNeedleBrushProperty,n),n):this.c(t.$hx.pendingValueNeedleBrushProperty)},e1:function(){return this.bb(t.$hx.pendingValueNeedleBrushProperty)},reserveFirstSlice:function(n){return arguments.length===1?(this.g(t.$hx.reserveFirstSliceProperty,n),n):this.c(t.$hx.reserveFirstSliceProperty)},smallIncrement:function(n){return arguments.length===1?(this.g(t.$hx.smallIncrementProperty,n),n):this.c(t.$hx.smallIncrementProperty)},tickBrush:function(n){return arguments.length===1?(this.g(t.$hx.tickBrushProperty,n),n):this.c(t.$hx.tickBrushProperty)},e3:function(){return this.bb(t.$hx.tickBrushProperty)},ticks:function(n){return arguments.length===1?(this.g(t.$hx.ticksProperty,n),n):this.c(t.$hx.ticksProperty)},trackStartColor:function(n){return arguments.length===1?(this.g(t.$hx.trackStartColorProperty,n),n):this.c(t.$hx.trackStartColorProperty)},e9:function(){return this.bb(t.$hx.trackStartColorProperty)},trackEndColor:function(n){return arguments.length===1?(this.g(t.$hx.trackEndColorProperty,n),n):this.c(t.$hx.trackEndColorProperty)},e7:function(){return this.bb(t.$hx.trackEndColorProperty)},value:function(n){return arguments.length===1?(this.g(t.$hx.valueProperty,n),n):this.c(t.$hx.valueProperty)},valueNeedleBrush:function(n){return arguments.length===1?(this.g(t.$hx.valueNeedleBrushProperty,n),n):this.c(t.$hx.valueNeedleBrushProperty)},e5:function(){return this.bb(t.$hx.valueNeedleBrushProperty)},dx:function(){return this.reserveFirstSlice()},d1:function(n,t){var i,s,f,e,h;this.ep();var o=this.dx(),u=(n.d-n.e)/(o?this.dz.count():this.dz.count()-1),r=n.e;for(o&&(r+=u),i=1,s=this.dz.count();i<s;i++){if(f=this.dz.__inner[i],t<f){e=this.dz.__inner[i-1];h=(t-e)/(f-e);r+=u*h;break}r+=u}return r},d9:function(i,r){var u=r.d(),e=u.b(),o=u.a(),s=this.d1(e,o),f=t.$ct.q(this.menu().af().j(),s);return{__x:f.__x-i.b()/2,__y:f.__y-i.a()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},ek:function(){this.as()||this.en(NaN)},du:function(n,i,r,u,f){var o=this,e=function(){var u=new t.hz;return u.j=t.$ct.q(i,t.$ct.n(n,f,i)),u.i=t.$ct.q(r,t.$ct.n(n,f,r)),u}();return e.b(1),e.e(u),e},ds:function(n,i,r,u){var f=new t.hl;return f.d=1,f.g=1,f.c=r.toString(),f.b=t.$ct.q(i,t.$ct.n(n,u,i)),f},el:function(n,t){switch(t.propertyName()){case"Count":this.dv=!1}},em:function(){this.dv=!0;this.dz.clear();var n=this.ticks();null!=n&&this.dz.addRange(n);this.dz.sort()},en:function(n,t){(t!=!0&&(this.d0=NaN,this.d8=null,this.dw=!1),n!=this.pendingValue())&&this.pendingValue(n)},eo:function(n){this.value(n)},ep:function(){this.dv||this.em()},d5:function(n,t){var r,u,e;if(this.ep(),r=this.dz.count(),t==null||r==0)return NaN;if(r==1)u=this.dz.__inner[0];else{var s=this.dx(),f=(t.d-t.e)/(s?r:r-1),i=t.e;if(i<-3.14159265358979&&(i+=6.28318530717959),n<i&&(n+=6.28318530717959),s&&(i+=f),n<i)u=this.dz.__inner[0];else for(u=this.dz.__inner[r-1],e=0;e<r-1;e++){if(n<i+f){var l=1-(i+f-n)/f,h=this.dz.__inner[e],a=this.dz.__inner[e+1],o=(a-h)*l+h,c=o%this.smallIncrement();o-=c;Math.abs(c)>this.smallIncrement()/2&&(o+=this.smallIncrement());u=o;break}i+=f}}return u},pendingValueChanged:null,valueChanged:null,$type:new n.ig.Type("RadialMenuNumericGauge",t.$a0.$type)},!0);n.ig.util.defType("RadialMenuItemFrame:hh","Object",{d:null,c:null,init:function(){n.ig.$op.init.call(this);this.d=new t.bs(t.$cp.$type,0);this.c=new t.bs(t.$hl.$type,0)},b:function(){return this.d},a:function(){return this.c},e:function(){},$type:new n.ig.Type("RadialMenuItemFrame",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuNumericGaugeFrame:hy","RadialMenuItemFrame",{f:null,g:null,k:null,j:null,init:function(){t.$hh.init.call(this);this.g=new t.hz;this.b().add(this.g);this.f=new t.hz;this.b().add(this.f)},e:function(i,r,u){var o,s,f=n.ig.util.cast(t.$h0.$type,i),c,l,a,v,y,h,p,e;if(this.i()!=null)for(f.valueNeedle(new t.h2),f.valueNeedle().needlePath(new t.hf(1,"ValueNeedle",r(this.i()))),c=this.a().getEnumerator();c.moveNext();)if(l=c.current(),l.a==this.i()){o=u(l);s=t.$ev.a(o,null);f.valueNeedle().label(t.$go.fromTextElement(o,s));break}for(this.h()!=null&&this.h().b()>0&&(f.editValueNeedle(new t.h2),f.editValueNeedle().label(null),f.editValueNeedle().needlePath(new t.hf(1,"EditValueNeedle",r(this.h())))),f.tickmarks(new t.h1),a=this.a().getEnumerator();a.moveNext();)(v=a.current(),y=n.ig.util.cast(t.$cp.$type,v.a),y!=this.i())&&(h=new t.h4,o=u(v),s=t.$ev.a(o,null),h.label(t.$go.fromTextElement(o,s)),h.tickPath(new t.hf(1,"tickmark",r(y))),f.tickmarks().add(h));for(f.trackArcs(new t.h3),p=this.b().getEnumerator();p.moveNext();)(e=p.current(),e!=this.g&&e!=this.f)&&(e.c==this.g?f.valueTickLine(new t.hf(1,"valueTickLine",r(e))):n.ig.util.cast(t.$cu.$type,e)!==null&&f.trackArcs().add(new t.hf(1,"trackArc",r(e))))},h:function(){return this.f},i:function(){return this.g},$type:new n.ig.Type("RadialMenuNumericGaugeFrame",t.$hh.$type)},!0);n.ig.util.defType("RadialMenuNumericItem:h5","RadialMenuItem",{staticInit:function(){},init:function(){t.$dp.init.call(this);this.iconOverlay(t.$h7.e);this.value(NaN)},a1:function(i,r){var e=t.$dp.a1.call(this,i,r),o,s,u,f,h,c;if(isNaN(e))for(o=r.getEnumerator();o.moveNext();)s=o.current(),u=n.ig.util.cast(t.$hx.$type,s.item()),u!=null&&(f=u.pendingValue(),isNaN(f)&&(f=u.value()),isNaN(f)||(h=i.e+(i.d-i.e)/2,c=u.d1(s,f),e=h-c));return e},cb:function(n,i,r){n=="Value"&&this.et(r);t.$dp.cb.call(this,n,i,r)},value:function(n){return arguments.length===1?(this.g(t.$h5.valueProperty,n),n):this.c(t.$h5.valueProperty)},fc:function(n){this.value(n)},valueChanged:null,$type:new n.ig.Type("RadialMenuNumericItem",t.$dp.$type)},!0);n.ig.util.defType("RadialMenuFrame:cn","Object",{f:null,a:null,e:null,d:null,u:null,t:null,v:null,w:null,x:null,ag:null,ae:null,p:null,n:null,ad:null,init:function(){n.ig.$op.init.call(this);this.f=new t.co;this.a=new t.cv;this.u=new t.bs(t.$cu.$type,0);this.v=new t.bs(t.$cu.$type,0);this.w=new t.bs(t.$cu.$type,0);this.x=new t.bs(t.$cu.$type,0);this.t=new t.bs(t.$cu.$type,0);this.d=new t.co;this.e=new t.co;this.ae=new t.bs(t.$dj.$type,0);this.ag=new t.bs(t.$hu.$type,0);this.n=new t.dc(t.$dj.$type,t.$hh.$type,0);this.p=new t.dc(t.$cp.$type,t.$a0.$type,0);this.ad=new t.bs(t.$dj.$type,0)},i:function(){return this.f},b:function(){return this.a},g:function(){return this.d},h:function(){return this.e},z:function(){return this.u},y:function(){return this.t},aa:function(){return this.v},ab:function(){return this.w},ac:function(){return this.x},af:function(){return this.ae},ah:function(){return this.ag},_am:null,am:function(n){return arguments.length===1?(this._am=n,n):this._am},q:function(){return this.p},o:function(){return this.n},r:function(){return this.ad},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},ak:0,al:0,_ai:0,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_aj:0,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},c:function(n){for(var i=this.ae.getEnumerator(),t;i.moveNext();)if(t=i.current(),t.item()==n)return t;return null},l:function(n,t){for(var u=this,e=u.s(t),i,f=e.getEnumerator(),r;f.moveNext();)if(r=f.current(),function(){var n=u.p.tryGetValue(r,i);return i=n.value,n.ret}()&&i==n)return r;return null},s:function(n){var i;switch(n){case 2:i=this.w;break;case 3:i=this.x;break;case 1:i=this.v;break;case 5:i=this.t;break;case 4:i=this.ag;break;case 0:i=this.u;break;default:return t.$dk.b(!1,"Unrecognized part:"+n),null}return i},m:function(n){for(var i=this.n.keys().getEnumerator(),t;i.moveNext();)if(t=i.current(),t.item()==n)return this.ad.contains(t)?!0:(this.ad.add(t),!0);return!1},$type:new n.ig.Type("RadialMenuFrame",n.ig.$ot)},!0);n.ig.util.defType("TextDefinition:hl","Object",{init:function(){n.ig.$op.init.call(this)},c:null,e:null,d:null,g:null,b:null,a:null,f:null,$type:new n.ig.Type("TextDefinition",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuItemLevel:dn","Object",{i:null,b:null,m:null,e:null,s:0,n:0,a:null,k:null,j:!1,o:0,x:null,init:function(t,i,r,u,f){this.n=NaN;n.ig.$op.init.call(this);this.i=t;this.b=i;this.e=r;this.k=u;this.x=f;this.ab(this.k,!0)},y:function(){return this.x},c:function(n){return arguments.length===1?(this.a=n,n):this.a},l:function(){return this.m==null&&this.aa(),this.m},d:function(){return this.b},f:function(){return this.e},r:function(){return this.o},w:function(){return this.m==null&&this.aa(),this.s},ad:function(){this.j=!0;this.ab(this.k,!1);this.ag()},g:function(n){var t=this.u(n);return t<0?null:this.l().item(t)},u:function(n){var i,t,r;if(n!=null)for(i=this.l(),t=0,r=i.count();t<r;t++)if(i.item(t).item()==n)return t;return-1},v:function(n){var o=this.l(),s=Number.MAX_VALUE,h=-1,i,c,f,e;for(n=t.$ct.k(n),i=0,c=o.count();i<c;i++){for(var l=o.item(i),r=l.e,u=l.d;r<-3.14159265358979;)r+=6.28318530717959,u+=6.28318530717959;while(u>3.14159265358979)r-=6.28318530717959,u-=6.28318530717959;if(r<=n&&u>=n)return i;f=r+(u-r)/2;f=t.$ct.k(f);e=Math.abs(f-n);e<s&&(s=e,h=i)}return h},h:function(n,t){var r=this.l(),i,u;return(n==null?i=this.v(this.r()):(i=this.u(n),i>=0&&t&&(i=i==r.count()?0:i+1)),t||(i=i==0?r.count()-1:i-1),i<0)?null:(i==r.count()&&(i=0),u=r.item(i),n!=null&&u==this.h(null,t))?null:u},p:function(n,i){var r=(0+this.i.rotationInDegrees())*3.14159265358979/180;return r+=(this.i.rotationAsPercentageOfWedge()+n)*i,t.$ct.k(r)},q:function(){var n=Math.max(this.w(),this.i.minWedgeCount());return 6.28318530717959/n},ah:function(n){var f=this.l(),c=this.i.wedgePaddingInDegrees()*3.14159265358979/180,v=c/2,e=this.q(),l=this.p(n,e),o,a,s,h,i;for(this.o=l,o=f.getEnumerator();o.moveNext();){var r=o.current(),t=l+r.f*e+v,u=t+e*r.g-c;u<t&&(a=(u-t)/2,t+=a,u=t);r.e=t;r.d=u}if(isNaN(this.n)&&(this.b!=null&&this.b.autoRotateChildren()&&(s=this.e.g(this.b),s!=null&&(this.n=this.b.a1(s,f))),isNaN(this.n)&&(this.n=0)),!isNaN(this.n)&&this.n!=0)for(h=f.getEnumerator();h.moveNext();)i=h.current(),i.e=i.e+this.n,i.d=i.d+this.n},z:function(i,r){for(var o=!this.j,s=i.getEnumerator(),u,h,c,e,l,f;s.moveNext();)(u=s.current(),u.__visibility!=1)&&(o&&(u.propertyChanged=n.ig.Delegate.prototype.combine(u.propertyChanged,this.ac.runOn(this))),h=u.wedgeSpan(),c=u.wedgeIndex(),r.add(new t.dj(u,c,h)));for(e=i.getEnumerator();e.moveNext();)l=e.current(),f=n.ig.util.cast(t.$dp.$type,l),f!=null&&f.ao()&&f.du()==1&&(o&&this.ab(f.a0(),!0),this.z(f.a0(),r))},aa:function(){var f=new t.bs(t.$dj.$type,0),i,n,h,c,o,u,a;this.m=f;this.z(this.k,f);f.sort1(t.$dn.t);for(var r=new t.bs(t.$d.$type,0),e=0,s=0,l=f.getEnumerator();l.moveNext();){if(i=l.current(),i.f<0)for(s++,i.f=r.count(),n=e,h=r.count();n<h;n++)if(r.__inner[n])n==e&&(e=n+1);else{if(n+i.g>=h)break;for(c=!0,o=1;o<i.g;o++)if(r.__inner[n+o]){n+=o;c=!1;break}if(!c)continue;i.f=n;n==e&&(e=n+i.g);break}for(u=i.f,a=u+i.g;u<a;u++){while(u>=r.count())r.add(!1);r.__inner[u]||(r.__inner[u]=!0)}i.e=0;i.d=0}s>0&&s!=f.count()&&f.sort1(t.$dn.t);this.s=r.count()},t:function(n,t){return n.f>=0?t.f<0?-1:n.f==t.f?0:n.f<t.f?-1:1:t.f<0?0:1},ab:function(i,r){var u=n.ig.util.cast(t.$b8.$type,i);null!=u&&(u.collectionChanged=r?n.ig.Delegate.prototype.combine(u.collectionChanged,this.ae.runOn(this)):n.ig.Delegate.prototype.remove(u.collectionChanged,this.ae.runOn(this)))},ac:function(i,r){var u=!1,f=n.ig.util.cast(t.$dp.$type,i);switch(r.propertyName()){case"CheckedHighlightBrush":case"OuterRingButtonFill":case"OuterRingButtonForeground":case"OuterRingButtonStroke":case"OuterRingButtonStrokeThickness":case"InnerAreaFill":case"InnerAreaStroke":case"InnerAreaStrokeThickness":case"IsEnabled":case"ToolTipResolved":case"DirtyCustomVisuals":case"InvalidateCustomVisuals":u=!0;break;case"DisplayAsChecked":u=!0;f!=null&&f.du()==1&&this.af();break;case"ChildItemPlacement":case"OuterRingButtonType":case"WedgeIndex":case"WedgeSpan":case"VisibilityProxy":u=!0;this.af()}u&&this.i.dw(this,n.ig.util.cast(t.$a0.$type,i),r.propertyName())},ae:function(){this.af();this.i.dw(this,null,null)},af:function(){this.m!=null&&(this.ag(),this.m=null)},ag:function(){var i,t;if(this.m!=null)for(i=this.m.getEnumerator();i.moveNext();)t=i.current(),t.item().propertyChanged=n.ig.Delegate.prototype.remove(t.item().propertyChanged,this.ac.runOn(this)),this.ab(t.item().a0(),!1)},$type:new n.ig.Type("RadialMenuItemLevel",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuItemPosition:dj","Object",{a:null,init:function(t,i,r){n.ig.$op.init.call(this);this.a=t;this.f=i;this.g=r},item:function(){return this.a},f:0,g:0,c:0,h:null,e:0,d:0,$type:new n.ig.Type("RadialMenuItemPosition",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuPointerAnimationInfo:hk","Object",{a:null,c:null,e:0,init:function(t,i){n.ig.$op.init.call(this);this.a=t;this.c=i},item:function(){return this.a},d:function(){return this.c},f:function(n){return arguments.length===1?(this.e=n,n):this.e},$type:new n.ig.Type("RadialMenuPointerAnimationInfo",n.ig.$ot)},!0);n.ig.util.defType("ColorNameCalculator:f6","Object",{b:null,a:null,init:function(){n.ig.$op.init.call(this);this.b=new t.dc(t.$ap.$type,String,0);this.a=new t.dc(t.$ap.$type,String,0)},g:function(n,t){this.b.item(n,t)},f:function(n){var i=this,t;return function(){var r=i.a.tryGetValue(n,t);return t=r.value,r.ret}()||i.a.item(n,t=i.e(n)),t},e:function(n){for(var u=Number.MAX_VALUE,f=null,e=this.b.getEnumerator(),i,r;e.moveNext();)i=e.current(),r=t.$f6.c(i.key(),n),r<u&&(u=r,f=i.value());return f},c:function(n,i){var h=this,r,u,f,e,o,s;return function(){var i=t.$f6.h(n,r,u,f);return r=i.l,u=i.a,f=i.b,i.ret}(),function(){var n=t.$f6.h(i,e,o,s);return e=n.l,o=n.a,s=n.b,n.ret}(),Math.pow(r-e,2)+Math.pow(u-o,2)+Math.pow(f-s,2)},h:function(n,i,r,u){var f=n.i()/255,e=n.h()/255,o=n.g()/255,h=f*.412453+e*.35758+o*.180423,c=f*.212671+e*.71516+o*.072169,l=f*.019334+e*.119193+o*.950227,a=t.$f6.d(h/.95047),s=t.$f6.d(c/1),v=t.$f6.d(l/1.08883);return i=116*s-16,r=500*(a-s),u=200*(s-v),{l:i,a:r,b:u}},d:function(n){return n>.008856?Math.pow(n,1/3):7.787*n+16/116},$type:new n.ig.Type("ColorNameCalculator",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuUtilities:f5","Object",{g:function(n,t,i){return n<t?t:n>i?i:n},staticInit:function(){var i=new t.f6,n=i.g.runOn(i);n(t.$ap.n(255,240,248,255),"Alice Blue");n(t.$ap.n(255,250,235,215),"Antique White");n(t.$ap.n(255,0,255,255),"Aqua");n(t.$ap.n(255,127,255,212),"Aquamarine");n(t.$ap.n(255,240,255,255),"Azure");n(t.$ap.n(255,245,245,220),"Beige");n(t.$ap.n(255,255,228,196),"Bisque");n(t.$ap.n(255,0,0,0),"Black");n(t.$ap.n(255,255,235,205),"Blanched Almond");n(t.$ap.n(255,0,0,255),"Blue");n(t.$ap.n(255,138,43,226),"Blue Violet");n(t.$ap.n(255,165,42,42),"Brown");n(t.$ap.n(255,222,184,135),"Burly Wood");n(t.$ap.n(255,95,158,160),"Cadet Blue");n(t.$ap.n(255,127,255,0),"Chartreuse");n(t.$ap.n(255,210,105,30),"Chocolate");n(t.$ap.n(255,255,127,80),"Coral");n(t.$ap.n(255,100,149,237),"Cornflower Blue");n(t.$ap.n(255,255,248,220),"Cornsilk");n(t.$ap.n(255,220,20,60),"Crimson");n(t.$ap.n(255,0,255,255),"Cyan");n(t.$ap.n(255,0,0,139),"Dark Blue");n(t.$ap.n(255,0,139,139),"Dark Cyan");n(t.$ap.n(255,184,134,11),"Dark Goldenrod");n(t.$ap.n(255,169,169,169),"Dark Gray");n(t.$ap.n(255,0,100,0),"Dark Green");n(t.$ap.n(255,189,183,107),"Dark Khaki");n(t.$ap.n(255,139,0,139),"Dark Magenta");n(t.$ap.n(255,85,107,47),"Dark Olive Green");n(t.$ap.n(255,255,140,0),"Dark Orange");n(t.$ap.n(255,153,50,204),"Dark Orchid");n(t.$ap.n(255,139,0,0),"Dark Red");n(t.$ap.n(255,233,150,122),"Dark Salmon");n(t.$ap.n(255,143,188,143),"Dark Sea Green");n(t.$ap.n(255,72,61,139),"Dark Slate Blue");n(t.$ap.n(255,47,79,79),"Dark Slate Gray");n(t.$ap.n(255,0,206,209),"Dark Turquoise");n(t.$ap.n(255,148,0,211),"Dark Violet");n(t.$ap.n(255,255,20,147),"Deep Pink");n(t.$ap.n(255,0,191,255),"Deep Sky Blue");n(t.$ap.n(255,105,105,105),"Dim Gray");n(t.$ap.n(255,30,144,255),"Dodger Blue");n(t.$ap.n(255,178,34,34),"Firebrick");n(t.$ap.n(255,255,250,240),"Floral White");n(t.$ap.n(255,34,139,34),"Forest Green");n(t.$ap.n(255,255,0,255),"Fuchsia");n(t.$ap.n(255,220,220,220),"Gainsboro");n(t.$ap.n(255,248,248,255),"Ghost White");n(t.$ap.n(255,255,215,0),"Gold");n(t.$ap.n(255,218,165,32),"Goldenrod");n(t.$ap.n(255,128,128,128),"Gray");n(t.$ap.n(255,0,128,0),"Green");n(t.$ap.n(255,173,255,47),"Green Yellow");n(t.$ap.n(255,240,255,240),"Honeydew");n(t.$ap.n(255,255,105,180),"Hot Pink");n(t.$ap.n(255,205,92,92),"Indian Red");n(t.$ap.n(255,75,0,130),"Indigo");n(t.$ap.n(255,255,255,240),"Ivory");n(t.$ap.n(255,240,230,140),"Khaki");n(t.$ap.n(255,230,230,250),"Lavender");n(t.$ap.n(255,255,240,245),"Lavender Blush");n(t.$ap.n(255,124,252,0),"Lawn Green");n(t.$ap.n(255,255,250,205),"Lemon Chiffon");n(t.$ap.n(255,173,216,230),"Light Blue");n(t.$ap.n(255,240,128,128),"Light Coral");n(t.$ap.n(255,224,255,255),"Light Cyan");n(t.$ap.n(255,250,250,210),"Light Goldenrod Yellow");n(t.$ap.n(255,211,211,211),"Light Gray");n(t.$ap.n(255,144,238,144),"Light Green");n(t.$ap.n(255,255,182,193),"Light Pink");n(t.$ap.n(255,255,160,122),"Light Salmon");n(t.$ap.n(255,32,178,170),"Light Sea Green");n(t.$ap.n(255,135,206,250),"Light Sky Blue");n(t.$ap.n(255,119,136,153),"Light Slate Gray");n(t.$ap.n(255,176,196,222),"Light Steel Blue");n(t.$ap.n(255,255,255,224),"Light Yellow");n(t.$ap.n(255,0,255,0),"Lime");n(t.$ap.n(255,50,205,50),"Lime Green");n(t.$ap.n(255,250,240,230),"Linen");n(t.$ap.n(255,255,0,255),"Magenta");n(t.$ap.n(255,128,0,0),"Maroon");n(t.$ap.n(255,102,205,170),"Medium Aquamarine");n(t.$ap.n(255,0,0,205),"Medium Blue");n(t.$ap.n(255,186,85,211),"Medium Orchid");n(t.$ap.n(255,147,112,219),"Medium Purple");n(t.$ap.n(255,60,179,113),"Medium Sea Green");n(t.$ap.n(255,123,104,238),"Medium Slate Blue");n(t.$ap.n(255,0,250,154),"Medium Spring Green");n(t.$ap.n(255,72,209,204),"Medium Turquoise");n(t.$ap.n(255,199,21,133),"Medium Violet Red");n(t.$ap.n(255,25,25,112),"Midnight Blue");n(t.$ap.n(255,245,255,250),"Mint Cream");n(t.$ap.n(255,255,228,225),"Misty Rose");n(t.$ap.n(255,255,228,181),"Moccasin");n(t.$ap.n(255,255,222,173),"Navajo White");n(t.$ap.n(255,0,0,128),"Navy");n(t.$ap.n(255,253,245,230),"Old Lace");n(t.$ap.n(255,128,128,0),"Olive");n(t.$ap.n(255,107,142,35),"Olive Drab");n(t.$ap.n(255,255,165,0),"Orange");n(t.$ap.n(255,255,69,0),"Orange Red");n(t.$ap.n(255,218,112,214),"Orchid");n(t.$ap.n(255,238,232,170),"Pale Goldenrod");n(t.$ap.n(255,152,251,152),"Pale Green");n(t.$ap.n(255,175,238,238),"Pale Turquoise");n(t.$ap.n(255,219,112,147),"Pale Violet Red");n(t.$ap.n(255,255,239,213),"Papaya Whip");n(t.$ap.n(255,255,218,185),"Peach Puff");n(t.$ap.n(255,205,133,63),"Peru");n(t.$ap.n(255,255,192,203),"Pink");n(t.$ap.n(255,221,160,221),"Plum");n(t.$ap.n(255,176,224,230),"Powder Blue");n(t.$ap.n(255,128,0,128),"Purple");n(t.$ap.n(255,255,0,0),"Red");n(t.$ap.n(255,188,143,143),"Rosy Brown");n(t.$ap.n(255,65,105,225),"Royal Blue");n(t.$ap.n(255,139,69,19),"Saddle Brown");n(t.$ap.n(255,250,128,114),"Salmon");n(t.$ap.n(255,244,164,96),"Sandy Brown");n(t.$ap.n(255,46,139,87),"Sea Green");n(t.$ap.n(255,255,245,238),"Sea Shell");n(t.$ap.n(255,160,82,45),"Sienna");n(t.$ap.n(255,192,192,192),"Silver");n(t.$ap.n(255,135,206,235),"Sky Blue");n(t.$ap.n(255,106,90,205),"Slate Blue");n(t.$ap.n(255,112,128,144),"Slate Gray");n(t.$ap.n(255,255,250,250),"Snow");n(t.$ap.n(255,0,255,127),"Spring Green");n(t.$ap.n(255,70,130,180),"Steel Blue");n(t.$ap.n(255,210,180,140),"Tan");n(t.$ap.n(255,0,128,128),"Teal");n(t.$ap.n(255,216,191,216),"Thistle");n(t.$ap.n(255,255,99,71),"Tomato");n(t.$ap.n(255,64,224,208),"Turquoise");n(t.$ap.n(255,238,130,238),"Violet");n(t.$ap.n(255,245,222,179),"Wheat");n(t.$ap.n(255,255,255,255),"White");n(t.$ap.n(255,245,245,245),"White Smoke");n(t.$ap.n(255,255,255,0),"Yellow");n(t.$ap.n(255,154,205,50),"Yellow Green");t.$f5.a=i},u:function(n,i){return t.$ap.n(n.f(),Math.min(Math.max(n.i()+i,0),255),Math.min(Math.max(n.h()+i,0),255),Math.min(Math.max(n.g()+i,0),255))},x:function(n,i){var r;i=Array.prototype.slice.call(arguments,1);var u=t.$f5.f(n),e=-1,o=t.$f5.y;for(r=0;r<i.length;r++){var s=i[r],f=t.$f5.f(s),h=f>u?(f+.05)/(u+.05):(u+.05)/(f+.05);h>e&&(e=h,o=s)}return o},w:function(n){var i=t.$f5.f(n),r=1.05/(i+.05),u=(i+.05)/.05;return u>r?t.$f5.v:t.$f5.z},c:function(n,i,r,u){var f=new t.cz(1,0,0,i.b(),i.a());switch(r){case 0:case 3:f.x=n.__x;break;case 2:f.x=n.__x-i.b();break;case 1:f.x=n.__x-i.b()/2}switch(u){case 0:case 3:f.y=n.__y;break;case 2:f.y=n.__y-i.a();break;case 1:f.y=n.__y-i.a()/2}return f},f:function(n){var t=2.2;return Math.pow(n.i()/255,t)*.2126+Math.pow(n.h()/255,t)*.7152+Math.pow(n.g()/255,t)*.0722},b:function(){return t.$f5.a},s:function(n){var i=this;return function(){var i=new t.bp;return i.fill(n.colorString()),i}()},d:function(n,t){return n.f()==t.f()&&n.i()==t.i()&&n.h()==t.h()&&n.g()==t.g()},e:function(n){return n!=null&&n.animationActive()&&n.getElapsedMilliseconds()<n.intervalMilliseconds()},$type:new n.ig.Type("RadialMenuUtilities",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuVisualData:gk","Object",{init:function(){n.ig.$op.init.call(this)},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},_menuArea:null,menuArea:function(n){return arguments.length===1?(this._menuArea=n,n):this._menuArea},_outerRing:null,outerRing:function(n){return arguments.length===1?(this._outerRing=n,n):this._outerRing},_innerRing:null,innerRing:function(n){return arguments.length===1?(this._innerRing=n,n):this._innerRing},_innerRingFocus:null,innerRingFocus:function(n){return arguments.length===1?(this._innerRingFocus=n,n):this._innerRingFocus},_items:null,items:function(n){return arguments.length===1?(this._items=n,n):this._items},_colorWellPreviews:null,colorWellPreviews:function(n){return arguments.length===1?(this._colorWellPreviews=n,n):this._colorWellPreviews},_itemOpacity:0,itemOpacity:function(n){return arguments.length===1?(this._itemOpacity=n,n):this._itemOpacity},_outerPathOpacity:0,outerPathOpacity:function(n){return arguments.length===1?(this._outerPathOpacity=n,n):this._outerPathOpacity},_itemToolTip:null,itemToolTip:function(n){return arguments.length===1?(this._itemToolTip=n,n):this._itemToolTip},serialize:function(){var i=new t.er,n;return i.f("{"),n=!1,i.f("viewPort: { left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()+"}"),i.f(", itemOpacity: "+this.itemOpacity()),i.f(", outerPathOpacity: "+this.outerPathOpacity()),n=!0,n=t.$go.serializeItem(i,"menuArea",this.menuArea(),!n)||n,n=t.$go.serializeItem(i,"outerRing",this.outerRing(),!n)||n,n=t.$go.serializeItem(i,"innerRing",this.innerRing(),!n)||n,n=t.$go.serializeItem(i,"innerRingFocus",this.innerRingFocus(),!n)||n,n=t.$go.serializeItems(i,"items",this.items(),!n)||n,n=t.$go.serializeItems(i,"colorWellPreviews",this.colorWellPreviews(),!n)||n,i.f("}"),i.b()},$type:new n.ig.Type("RadialMenuVisualData",n.ig.$ot,[t.$eq.$type])},!0);n.ig.util.defType("RadialMenuItemVisualData:hg","Object",{init:function(){n.ig.$op.init.call(this)},_outerRingPath:null,outerRingPath:function(n){return arguments.length===1?(this._outerRingPath=n,n):this._outerRingPath},_outerRingArrowPath:null,outerRingArrowPath:function(n){return arguments.length===1?(this._outerRingArrowPath=n,n):this._outerRingArrowPath},_toolAreaPath:null,toolAreaPath:function(n){return arguments.length===1?(this._toolAreaPath=n,n):this._toolAreaPath},_checkmarkPath:null,checkmarkPath:function(n){return arguments.length===1?(this._checkmarkPath=n,n):this._checkmarkPath},_highlightPath:null,highlightPath:function(n){return arguments.length===1?(this._highlightPath=n,n):this._highlightPath},_type:null,type:function(n){return arguments.length===1?(this._type=n,n):this._type},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},serialize:function(){var n=new t.er;return n.f("{"),this.f(n,!1),n.f("}"),n.b()},f:function(n,i){return i&&n.f(", "),n.f("name: '"+this.name()+"'"),n.f(", type: '"+this.type()+"'"),i=!0,i=t.$go.serializeItem(n,"outerRingPath",this.outerRingPath(),!i)||i,i=t.$go.serializeItem(n,"outerRingArrowPath",this.outerRingArrowPath(),!i)||i,i=t.$go.serializeItem(n,"toolAreaPath",this.toolAreaPath(),!i)||i,i=t.$go.serializeItem(n,"checkmarkPath",this.checkmarkPath(),!i)||i,t.$go.serializeItem(n,"highlightPath",this.highlightPath(),!i)||i},i:function(n,i){var r=new t.hf(1,n.toString(),i);switch(n){case 0:this.outerRingPath(r);break;case 4:this.outerRingArrowPath(r);break;case 1:this.toolAreaPath(r);break;case 2:this.checkmarkPath(r);break;case 3:this.highlightPath(r)}},$type:new n.ig.Type("RadialMenuItemVisualData",n.ig.$ot,[t.$eq.$type])},!0);n.ig.util.defType("RadialMenuItemVisualDataList:g6","List$1",{init:function(){t.$bs.init.call(this,t.$hg.$type)},$type:new n.ig.Type("RadialMenuItemVisualDataList",t.$bs.$type.specialize(t.$hg.$type))},!0);n.ig.util.defType("RadialMenuItemToolTipVisualData:ep","Object",{init:function(){n.ig.$op.init.call(this)},_itemType:null,itemType:function(n){return arguments.length===1?(this._itemType=n,n):this._itemType},_itemName:null,itemName:function(n){return arguments.length===1?(this._itemName=n,n):this._itemName},_toolTipText:null,toolTipText:function(n){return arguments.length===1?(this._toolTipText=n,n):this._toolTipText},_relativeTop:0,relativeTop:function(n){return arguments.length===1?(this._relativeTop=n,n):this._relativeTop},_relativeLeft:0,relativeLeft:function(n){return arguments.length===1?(this._relativeLeft=n,n):this._relativeLeft},_width:0,width:function(n){return arguments.length===1?(this._width=n,n):this._width},_height:0,height:function(n){return arguments.length===1?(this._height=n,n):this._height},serialize:function(){var n=new t.er;return n.f("{"),n.f("itemName: '"+this.itemName()+"'"),n.f(", itemType: '"+this.itemType()+"'"),n.f(", toolTipText: '"+this.toolTipText()+"'"),n.f(", relativeTop: "+this.relativeTop()),n.f(", relativeLeft: "+this.relativeLeft()),n.f(", width: "+this.width()),n.f(", height: "+this.height()),n.f("}"),n.f("}"),n.b()},$type:new n.ig.Type("RadialMenuItemToolTipVisualData",n.ig.$ot,[t.$eq.$type])},!0);n.ig.util.defType("RadialMenuNumericGaugeVisualData:h0","RadialMenuItemVisualData",{init:function(){t.$hg.init.call(this)},_tickmarks:null,tickmarks:function(n){return arguments.length===1?(this._tickmarks=n,n):this._tickmarks},_valueNeedle:null,valueNeedle:function(n){return arguments.length===1?(this._valueNeedle=n,n):this._valueNeedle},_editValueNeedle:null,editValueNeedle:function(n){return arguments.length===1?(this._editValueNeedle=n,n):this._editValueNeedle},_valueTickLine:null,valueTickLine:function(n){return arguments.length===1?(this._valueTickLine=n,n):this._valueTickLine},_trackArcs:null,trackArcs:function(n){return arguments.length===1?(this._trackArcs=n,n):this._trackArcs},f:function(n,i){return i=t.$hg.f.call(this,n,i)||i,i=t.$go.serializeItem(n,"valueNeedle",this.valueNeedle(),!i)||i,i=t.$go.serializeItem(n,"valueTickLine",this.valueTickLine(),!i)||i,i=t.$go.serializeItem(n,"editValueNeedle",this.editValueNeedle(),!i)||i,i=t.$go.serializeItems(n,"tickmarks",this.tickmarks(),!i)||i,t.$go.serializeItems(n,"trackArcs",this.trackArcs(),!i)||i},$type:new n.ig.Type("RadialMenuNumericGaugeVisualData",t.$hg.$type)},!0);n.ig.util.defType("RadialMenuNumericGaugeTickmarkData:h4","Object",{init:function(){n.ig.$op.init.call(this)},_tickPath:null,tickPath:function(n){return arguments.length===1?(this._tickPath=n,n):this._tickPath},_label:null,label:function(n){return arguments.length===1?(this._label=n,n):this._label},_labelLeft:0,labelLeft:function(n){return arguments.length===1?(this._labelLeft=n,n):this._labelLeft},_labelTop:0,labelTop:function(n){return arguments.length===1?(this._labelTop=n,n):this._labelTop},_labelWidth:0,labelWidth:function(n){return arguments.length===1?(this._labelWidth=n,n):this._labelWidth},_labelHeight:0,labelHeight:function(n){return arguments.length===1?(this._labelHeight=n,n):this._labelHeight},serialize:function(){var n=new t.er;return n.f("{"),n.f("labelLeft: "+this.labelLeft()),n.f(", labelTop: "+this.labelTop()),n.f(", labelWidth: "+this.labelWidth()),n.f(", labelHeight: "+this.labelHeight()),t.$go.serializeItem(n,"tickPath",this.tickPath(),!1),t.$go.serializeItem(n,"label",this.label(),!1),n.f("}"),n.b()},$type:new n.ig.Type("RadialMenuNumericGaugeTickmarkData",n.ig.$ot,[t.$eq.$type])},!0);n.ig.util.defType("RadialMenuNumericGaugeTickmarkDataList:h1","List$1",{init:function(){t.$bs.init.call(this,t.$h4.$type)},$type:new n.ig.Type("RadialMenuNumericGaugeTickmarkDataList",t.$bs.$type.specialize(t.$h4.$type))},!0);n.ig.util.defType("RadialMenuNumericGaugeNeedleData:h2","Object",{init:function(){n.ig.$op.init.call(this)},_needlePath:null,needlePath:function(n){return arguments.length===1?(this._needlePath=n,n):this._needlePath},_label:null,label:function(n){return arguments.length===1?(this._label=n,n):this._label},serialize:function(){return this.label()==null?this.needlePath()==null?"{}":"{ needlePath: "+this.needlePath().serialize()+"}":this.needlePath()==null?"{ label: "+this.label().serialize()+"}":"{ needlePath: "+this.needlePath().serialize()+", label: "+this.label().serialize()+"}"},$type:new n.ig.Type("RadialMenuNumericGaugeNeedleData",n.ig.$ot,[t.$eq.$type])},!0);n.ig.util.defType("ColorWellPreviewData:hi","Object",{init:function(){n.ig.$op.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_type:null,type:function(n){return arguments.length===1?(this._type=n,n):this._type},_colorValue:null,colorValue:function(n){return arguments.length===1?(this._colorValue=n,n):this._colorValue},_previewPath:null,previewPath:function(n){return arguments.length===1?(this._previewPath=n,n):this._previewPath},serialize:function(){var n=new t.er;return n.f("{"),n.f("name: '"+this.name()+"'"),n.f(", type: '"+this.type()+"'"),n.f(", colorValue: "+(this.colorValue()!=null?t.$go.serializeColor(this.colorValue()):"null")),t.$go.serializeItem(n,"previewPath",this.previewPath(),!1),n.f("}"),n.b()},$type:new n.ig.Type("ColorWellPreviewData",n.ig.$ot,[t.$eq.$type])},!0);n.ig.util.defType("ColorWellPreviewDataList:g7","List$1",{init:function(){t.$bs.init.call(this,t.$hi.$type)},$type:new n.ig.Type("ColorWellPreviewDataList",t.$bs.$type.specialize(t.$hi.$type))},!0);n.ig.util.defType("KeyTipInfo:hc","Object",{init:function(){n.ig.$op.init.call(this);this.e=null;this.b="\0"},e:null,b:null,h:null,f:null,_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("KeyTipInfo",n.ig.$ot)},!0);n.ig.util.defType("KeyTipManager:g8","Object",{h:null,t:null,d:null,f:null,init:function(i){n.ig.$op.init.call(this);this.t=i;this.d=new t.bs(t.$hc.$type,0)},a:function(){return this.d.count()>0},e:function(){return this.d},c:function(n){for(var u,i,f=!1,r=0;r<n.length;r++)if(u=n.charAt(r),t.$g8.b(u)){for(var e=this.h+u,o=e.toUpperCase(this.f),s=!1,h=this.d.getEnumerator();h.moveNext();){if(i=h.current(),o==i.f)return this.h=null,i.a()(i),!0;if(i.f.startsWith(o)){f=s=!0;break}}s&&(this.h=e)}return f},p:function(){var n,i,r;for(this.k(),n=new t.bs(t.$hc.$type,0),i=this.d.getEnumerator();i.moveNext();)r=i.current(),String.isNullOrEmpty(r.f)&&n.add(r);this.n(n);this.l(n);this.m(n);this.o(n);this.q();this.s()},r:function(){this.d.clear();this.h=null},g:function(n,t){return n.f.compareTo(t.f)},i:function(n){var i,r,u;return(t.$dk.b(n>=0,"The index is invalid"),n<0)?null:(i=n,i<=9)?i.toString1(this.f):(r=19,i<r)?"0"+(r-i).toString1(this.f):(i-=r,i>25)?null:(u=String.fromCharCode("A"+i),"0"+u)},j:function(n){var u=n.e,i=String.empty(),r,f;if(String.isNullOrEmpty(u))return i;for(r=0;r<u.length;r++){if(f=u.charAt(r),i.length==2)break;t.$g8.b(f)&&(i+=f)}return i},k:function(){var n=t.$g9.a();this.f=n},l:function(n){for(var i,f,s,u,e,v,h,o,c,l,a,r=0;r<n.count();r++)if(i=n.__inner[r],f=i.g(),!String.isNullOrEmpty(f)){for(s=this.j(i),u=String.empty(),e=0,v=f.length;e<v;e++)if(h=f.charAt(e),t.$g8.b(h)!=!1){for(o=(s+h).toUpperCase(this.f),u.length==0&&(u=o),c=!1,l=this.d.getEnumerator();l.moveNext();)if((a=l.current(),a.f!=null)&&a.f.startsWith(o)){c=!0;break}if(c==!1){i.f=o;break}}String.isNullOrEmpty(i.f)&&(i.f=u.length==0?s:u);String.isNullOrEmpty(i.f)||(n.removeAt(r),r--)}},n:function(n){for(var i,t=n.count()-1;t>=0;t--)i=n.__inner[t],String.isNullOrEmpty(i.h)||(i.f=i.h,n.removeAt(t))},m:function(n){for(var t,r,u,f=1,i=0;i<n.count();i++){t=null;do{if(t=this.i(f++),t==null)return;for(r=this.d.getEnumerator();r.moveNext();)if(u=r.current(),u.f==t){t=null;break}if(t!=null){n.__inner[i].f=t;n.removeAt(i);i--;break}}while(1)}},o:function(n){for(var i,u,r=0;r<n.count();r++)i=n.__inner[r],i.f=this.j(i),String.isNullOrEmpty(i.f)&&(u=i.b,t.$g8.b(u)&&(i.f=u)),String.isNullOrEmpty(i.f)||(n.removeAt(r),r--)},b:function(){return!0},q:function(){for(var t,n=this.d.count()-1;n>=0;n--)t=this.d.__inner[n],String.isNullOrEmpty(t.f)&&this.d.removeAt(n)},s:function(){var u=new t.bs(t.$hc.$type,1,this.d),a=0,o,n,i,r,s,c,h,e,l,f;do for(o=!1,u.sort1(this.g.runOn(this)),n=null,i=a;i<u.count()-1;i++)if(r=u.__inner[i],s=u.__inner[i+1],r.f==s.f){for(n==null?n=new t.bs(t.$hc.$type,0):n.clear(),n.add(r),n.add(s),i+=2;i<u.count();i++){if(c=u.__inner[i],c.f!=r.f)break;n.add(c)}for(h=Math.floor(Math.log10(n.count()-1))+1,e=0;e<n.count();e++)l=n.__inner[e],f=(e+1).toString1(this.f).padLeft(h,"0"),f.length>h&&(f=f.substr(f.length-h)),l.f=String.concat(l.f,f);o=!0;break}else if(s.f.startsWith(r.f)){r.f=String.concat(r.f,r.f=="0"?"0":"1");o=!0;break}else a=i+1;while(o)},$type:new n.ig.Type("KeyTipManager",n.ig.$ot)},!0);n.ig.util.defType("KeyTipExtensions:hb","Object",{init:function(){n.ig.$op.init.call(this)},toUpper:function(){return this.toUpperCase()},toString1:function(){return this.toString()},$type:new n.ig.Type("KeyTipExtensions",n.ig.$ot)},!0);n.ig.util.defType("LiteRect:cz","ValueType",{init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.ValueType.prototype.init.call(this)},x:0,y:0,width:0,height:0,init1:function(t,i,r,u,f){n.ig.ValueType.prototype.init.call(this);this.x=i;this.y=r;this.width=u;this.height=f},$type:new n.ig.Type("LiteRect",n.ig.ValueType.prototype.$type)},!0);n.ig.util.defType("LiteRectExtensions:c0","Object",{init:function(){n.ig.$op.init.call(this)},toRect:function(){return this.isEmpty()?t.$c1.empty():new t.c1(0,this.x,this.y,this.width,this.height)},isEqual:function(n){return this.x==n.x&&this.y==n.y&&this.width==n.width&&this.height==n.height},isEmpty:function(){return this.width<0},$type:new n.ig.Type("LiteRectExtensions",n.ig.$ot)},!0);n.ig.util.defType("PathBuilder:cw","Object",{h:null,g:null,i:null,init:function(){n.ig.$op.init.call(this);this.h=new t.cx},b:function(i,r,u){var s=this;if(!i.isEmpty()){var b=u<0?0:1,k=Math.abs(u)>3.14159265358979,o=r+u,f=i.width/2,e=i.height/2,h=f*e/Math.sqrt(t.$cw.a(e*Math.cos(r))+t.$cw.a(f*Math.sin(r))),c=i.x+h*Math.cos(r)+f,l=i.y+h*Math.sin(r)+e,a=f*e/Math.sqrt(t.$cw.a(e*Math.cos(o))+t.$cw.a(f*Math.sin(o))),v=i.x+a*Math.cos(o)+f,y=i.y+a*Math.sin(o)+e,p=t.$ct.q(i,r),w=t.$ct.q(i,o);c=p.__x;l=p.__y;v=w.__x;y=w.__y;s.e({__x:c,__y:l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},!1);s.i.add(function(){var i=new t.c4;return i.d({__x:v,__y:y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i.f(new t.c2(f,e)),i.c(0),i.b(k),i.e(b),i}())}},c:function(i,r,u,f,e){var o=t.$ct.d(i,r,u,f),h=o.length,s,a,l,c;if(e)for(s=0;s<n.ig.intDivide(h,2);s++)a=o[h-s-1],o[h-s-1]=o[s],o[s]=a;for(this.e(o[0],!0),l=new t.c8,c=1;c<h;c++)l.b().add(o[c]);this.i.add(l)},d:function(n,i){var r=this;r.e(n,!1);r.i.add(function(){var n=new t.da(1);return n.c(i),n}())},f:function(){return this.h},e:function(n,i){(this.g==null||i)&&(this.g=new t.db,this.i=this.g.__segments,this.g.__startPoint=n,this.h.b().add(this.g))},a:function(n){return n*n},$type:new n.ig.Type("PathBuilder",n.ig.$ot)},!0);n.ig.util.defType("ShapeDefinition:cp","Object",{init:function(){n.ig.$op.init.call(this)},c:null,_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},a:function(){},f:function(){},$type:new n.ig.Type("ShapeDefinition",n.ig.$ot)},!0);n.ig.util.defType("Ellipse:co","ShapeDefinition",{init:function(){t.$cp.init.call(this);this.k=new t.cs(0)},k:null,i:0,j:0,a:function(n){return t.$ct.h(t.$ct.j(this.k,this.i,this.j,n),0)},f:function(n){var i=new t.cw,r=n/2;return i.c(this.k.__x,this.k.__y,this.i-r,this.j-r,!1),i.f()},$type:new n.ig.Type("Ellipse",t.$cp.$type)},!0);n.ig.util.defType("Annulus:cv","Ellipse",{init:function(){t.$co.init.call(this)},l:0,m:0,a:function(n){return t.$co.a.call(this,n)?t.$ct.f(t.$ct.j(this.k,this.l,this.m,n),0):!1},f:function(n){var r=new t.cw,i=n/2;return r.c(this.k.__x,this.k.__y,this.i-i,this.j-i,!1),r.c(this.k.__x,this.k.__y,this.l+i,this.m+i,!0),r.f()},$type:new n.ig.Type("Annulus",t.$co.$type)},!0);n.ig.util.defType("TriangleShape:hu","ShapeDefinition",{init:function(){t.$cp.init.call(this);this.i=new t.cs(0);this.j=new t.cs(0);this.k=new t.cs(0)},i:null,j:null,k:null,a:function(n){return t.$ct.p(this.i,this.j,this.k,n)<=0},f:function(){var i=this,r=new t.cx,n=new t.db;return n.__startPoint=i.i,n.__isClosed=!0,n.__segments.add(function(){var n=new t.da(1);return n.c(i.j),n}()),n.__segments.add(function(){var n=new t.da(1);return n.c(i.k),n}()),r.b().add(n),r},$type:new n.ig.Type("TriangleShape",t.$cp.$type)},!0);n.ig.util.defType("EllipseSector:h6","Ellipse",{init:function(){t.$co.init.call(this);this.l=0;this.m=0},l:0,m:0,a:function(n){return t.$ct.h(t.$ct.j(this.k,this.i,this.j,n),0)&&t.$ct.g(this.l,this.m,this.k,this.i,this.j,n)},f:function(n){var o=t.$ct.k(this.m),f,e;if(o==6.28318530717959)return t.$co.f.call(this,n);var r=new t.cw,u=n/2,i=new t.cz(1,this.k.__x-this.i,this.k.__y-this.j,this.i*2,this.j*2);return i=t.$ct.c(i,-u,-u),f=t.$ct.q(i,this.l),e=t.$ct.q(i,this.l+this.m),r.d(this.k,f),r.b(i,this.l,this.m),r.d(e,this.k),r.f()},$type:new n.ig.Type("EllipseSector",t.$co.$type)},!0);n.ig.util.defType("AnnularSector:cu","Annulus",{init:function(){t.$cv.init.call(this)},p:0,q:0,n:0,o:0,a:function(n){return t.$cv.a.call(this,n)?t.$ct.f(t.$ct.j(this.k,this.l,this.m,n),0)&&t.$ct.g(this.n,this.o,this.k,this.l,this.m,n):!1},f:function(n){if(t.$ct.f(this.q,6.28318530717959))return t.$cv.f.call(this,n);var i=new t.cw,o=n/2,r=new t.cz(1,this.k.__x-this.i,this.k.__y-this.j,this.i*2,this.j*2),u=new t.cz(1,this.k.__x-this.l,this.k.__y-this.m,this.l*2,this.m*2),f=this.q,e=this.o;return i.b(r,this.p,f),i.d(t.$ct.q(r,this.p+f),t.$ct.q(u,this.n)),i.b(u,this.n,e),i.d(t.$ct.q(u,this.n+e),t.$ct.q(r,this.p)),i.f()},$type:new n.ig.Type("AnnularSector",t.$cv.$type)},!0);n.ig.util.defType("LineSegmentShape:hz","ShapeDefinition",{init:function(){t.$cp.init.call(this);this.j=new t.cs(0);this.i=new t.cs(0)},j:null,i:null,f:function(n){var i=this;return n==0?null:function(){var n=new t.fv;return n.c(i.j),n.b(i.i),n}()},a:function(n){var t=this,r=t.b()==0?0:t.b()/2,i=function(n){return n*n},u=Math.sqrt(i(t.j.__x-t.i.__x)+i(t.j.__y-t.i.__y)),f=Math.sqrt(i(t.j.__x-n.__x)+i(t.j.__y-n.__y)),e=Math.sqrt(i(t.i.__x-n.__x)+i(t.i.__y-n.__y)),o=Math.abs(f+e-u);return o<r},$type:new n.ig.Type("LineSegmentShape",t.$cp.$type)},!0);n.ig.util.defType("ShapeUtilities:ct","Object",{init:function(){n.ig.$op.init.call(this)},e:function(n,t){return n==t?!0:Math.abs(n-t)<1e-6},a:function(i,r,u,f,e,o,s){var a,v;r<0&&(r=0);u<0&&(u=0);f<0&&(f=0);e<0&&(e=0);var h=new t.cu,c=i.x+i.width/2,l=i.y+i.height/2;return h.k={__x:c,__y:l,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},h.i=r,h.j=u,h.l=f,h.m=e,a=new t.cz(1,c-r,l-u,r*2,u*2),h.p=t.$ct.n(i,o,a),h.q=t.$ct.n(i,s,a)-h.p,v=new t.cz(1,c-f,l-e,f*2,e*2),h.n=t.$ct.n(i,s,v),h.o=t.$ct.n(i,o,v)-h.n,s>o&&t.$ct.h(h.q,0)&&(h.q=h.q+6.28318530717959,h.o=h.o-6.28318530717959),h},b:function(n){var i=n.width/2*t.$ct.m,r=n.height/2*t.$ct.m,u=n.x+n.width/2,f=n.y+n.height/2;return new t.cz(1,u-i,f-r,i*2,r*2)},d:function(t,i,r,u){var s=this,o=.552284749830794,f=r*o,e=u*o;return function(){var o=[];return o.add({__x:t,__y:i-u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t+f,__y:i-u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t+r,__y:i-e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t+r,__y:i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t+r,__y:i+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t+f,__y:i+u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t,__y:i+u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t-f,__y:i+u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t-r,__y:i+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t-r,__y:i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t-r,__y:i-e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t-f,__y:i-u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.add({__x:t,__y:i-u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o}()},q:function(t,i){var r=t.width/2,u=t.height/2,f=r*Math.cos(i),e=u*Math.sin(i);return{__x:f+r+t.x,__y:e+u+t.y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},i:function(n,i){n=t.$ct.k(n);i=t.$ct.k(i);var r=Math.abs(n-i);return Math.min(6.28318530717959-r,r)},f:function(n,i){return n>=i||t.$ct.e(n,i)},j:function(n,t,i,r){var u=r.__x-n.__x,f=r.__y-n.__y,e=u*u/(t*t)+f*f/(i*i);return e-1},p:function(n,t,i,r){var u=r,f=(t.__x-n.__x)*(i.__y-n.__y)-(i.__x-n.__x)*(t.__y-n.__y),o=Math.sign(((t.__x-u.__x)*(i.__y-u.__y)-(i.__x-u.__x)*(t.__y-u.__y))/f),e=Math.sign(((i.__x-u.__x)*(n.__y-u.__y)-(n.__x-u.__x)*(i.__y-u.__y))/f),s=Math.sign(((n.__x-u.__x)*(t.__y-u.__y)-(t.__x-u.__x)*(n.__y-u.__y))/f);return o==e&&e==s?-1:o==0||e==0||s==0?0:1},c:function(n,i,r){return n.isEmpty()||(n=new t.cz(1,n.x,n.y,n.width,n.height),n.x-=i,n.y-=r,n.width=n.width+i*2,n.height=n.height+r*2),n},g:function(n,i,r,u,f,e){var o=t.$ct.l(r,u,f,e),s,h;return(o=t.$ct.k(o),s=n+i,s<n&&(h=n,n=s,s=h),n<-3.14159265358979)?o<s||o>n+6.28318530717959:s>3.14159265358979?o>n||o<s+6.28318530717959:n<=o&&o<=s},h:function(n,i){return n<=i||t.$ct.e(n,i)},k:function(n){return n%=6.28318530717959,n>3.14159265358979?n-=6.28318530717959:n<-3.14159265358979&&(n+=6.28318530717959),n},l:function(n,t,i,r){return Math.atan2((r.__y-n.__y)*(t/i),r.__x-n.__x)},n:function(i,r,u){var o=t.$ct.q(i,r),f=u.width/2,e=u.height/2;return t.$ct.l({__x:u.x+f,__y:u.y+e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f,e,o)},$type:new n.ig.Type("ShapeUtilities",n.ig.$ot)},!0);n.ig.util.defType("TimedOperation:hj","Object",{a:null,init:function(t,i){n.ig.$op.init.call(this);this.a=t;window.setTimeout(this.c.runOn(this),i)},b:function(){this.a=null},c:function(){if(this.a!=null){var n=this.a;this.a=null;n()}},$type:new n.ig.Type("TimedOperation",n.ig.$ot)},!0);n.ig.util.defType("XamRadialMenu:bq","Control",{e4:null,e2:null,e1:null,e3:null,e0:null,ge:null,gf:null,gd:null,gc:null,ae:null,bc:null,bb:null,bd:null,ag:null,bg:null,bf:null,aw:null,be:null,av:null,aj:null,ah:null,b8:null,a0:!1,az:!1,a1:!1,b5:null,ay:null,am:null,ao:null,an:null,ai:null,ad:null,ax:null,bh:null,staticInit:function(){},init:function(){var i=this,n;this.ag=3;this.at=new t.cz(1,0,0,0,0);t.$a1.init.call(this);this.bh=new t.dr(function(n,t){return n.cd(t?i:null)});this.e4=new t.cl;this.e3=new t.cl;this.e1=new t.cl;this.e2=new t.cl;this.e0=new t.cl;this.e4.q(100);this.e3.q(200);this.e1.q(300);this.e2.q(400);this.e0.q(500);this.ad=new t.g8(this);this.bc=new t.dc(t.$ae.$type,t.$bs.$type.specialize(t.$ey.$type),0);this.bb=new t.dc(t.$ae.$type,t.$hd.$type.specialize(t.$ey.$type),0);this.bd=new t.bs(t.$hk.$type,0);this.ae=new t.cn;this.bg=new t.dl(t.$dn.$type);n=new t.ds(this);this.bf=new t.bs(t.$ey.$type,0);this.aw=function(){var i=new t.hd(t.$ey.$type);return i.a(n.bf.runOn(n)),i.b(n.bg.runOn(n)),i.i(function(){return n.b1()}),i.c(function(t){return n.at(t)}),i}();this.be=new t.bs(t.$e1.$type,0);this.av=function(){var i=new t.hd(t.$e1.$type);return i.a(n.a1.runOn(n)),i.b(n.a2.runOn(n)),i.i(n.by.runOn(n)),i.c(n.a3.runOn(n)),i}();this.al(n);this.ge=n.b2(0);this.gf=n.b2(1);this.gd=n.b2(3);this.gc=n.b2(2);n.ba();this.bg.push(new t.dn(this,null,null,n.w(),null));n.bq()},centerButtonContentWidth:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonContentWidthProperty,n),n):this.c(t.$bq.centerButtonContentWidthProperty)},centerButtonContentHeight:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonContentHeightProperty,n),n):this.c(t.$bq.centerButtonContentHeightProperty)},centerButtonClosedFill:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonClosedFillProperty,n),n):this.c(t.$bq.centerButtonClosedFillProperty)},centerButtonClosedStroke:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonClosedStrokeProperty,n),n):this.c(t.$bq.centerButtonClosedStrokeProperty)},centerButtonFill:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonFillProperty,n),n):this.c(t.$bq.centerButtonFillProperty)},centerButtonHotTrackFill:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonHotTrackFillProperty,n),n):this.c(t.$bq.centerButtonHotTrackFillProperty)},centerButtonHotTrackStroke:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonHotTrackStrokeProperty,n),n):this.c(t.$bq.centerButtonHotTrackStrokeProperty)},centerButtonContent:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonContentProperty,n),n):this.c(t.$bq.centerButtonContentProperty)},centerButtonKeyTip:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonKeyTipProperty,n),n):this.c(t.$bq.centerButtonKeyTipProperty)},centerButtonStroke:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonStrokeProperty,n),n):this.c(t.$bq.centerButtonStrokeProperty)},centerButtonStrokeThickness:function(n){return arguments.length===1?(this.g(t.$bq.centerButtonStrokeThicknessProperty,n),n):this.c(t.$bq.centerButtonStrokeThicknessProperty)},currentOpenMenuItem:function(n){return arguments.length===1?(this.g(t.$bq.currentOpenMenuItemProperty,n),n):this.c(t.$bq.currentOpenMenuItemProperty)},font:function(n){return arguments.length===1?(this.g(t.$bq.fontProperty,n),n):this.c(t.$bq.fontProperty)},isOpen:function(n){return arguments.length===1?(this.g(t.$bq.isOpenProperty,n),n):this.c(t.$bq.isOpenProperty)},items:function(){return this.bh},keyTipTemplate:function(n){return arguments.length===1?(this.g(t.$bq.keyTipTemplateProperty,n),n):this.c(t.$bq.keyTipTemplateProperty)},menuBackground:function(n){return arguments.length===1?(this.g(t.$bq.menuBackgroundProperty,n),n):this.c(t.$bq.menuBackgroundProperty)},menuItemOpenCloseAnimationDuration:function(n){return arguments.length===1?(this.g(t.$bq.menuItemOpenCloseAnimationDurationProperty,n),n):this.c(t.$bq.menuItemOpenCloseAnimationDurationProperty)},menuItemOpenCloseAnimationEasingFunction:function(n){return arguments.length===1?(this.g(t.$bq.menuItemOpenCloseAnimationEasingFunctionProperty,n),n):this.c(t.$bq.menuItemOpenCloseAnimationEasingFunctionProperty)},menuOpenCloseAnimationDuration:function(n){return arguments.length===1?(this.g(t.$bq.menuOpenCloseAnimationDurationProperty,n),n):this.c(t.$bq.menuOpenCloseAnimationDurationProperty)},menuOpenCloseAnimationEasingFunction:function(n){return arguments.length===1?(this.g(t.$bq.menuOpenCloseAnimationEasingFunctionProperty,n),n):this.c(t.$bq.menuOpenCloseAnimationEasingFunctionProperty)},minWedgeCount:function(n){return arguments.length===1?(this.g(t.$bq.minWedgeCountProperty,n),n):this.c(t.$bq.minWedgeCountProperty)},outerRingFill:function(n){return arguments.length===1?(this.g(t.$bq.outerRingFillProperty,n),n):this.c(t.$bq.outerRingFillProperty)},outerRingThickness:function(n){return arguments.length===1?(this.g(t.$bq.outerRingThicknessProperty,n),n):this.c(t.$bq.outerRingThicknessProperty)},outerRingStroke:function(n){return arguments.length===1?(this.g(t.$bq.outerRingStrokeProperty,n),n):this.c(t.$bq.outerRingStrokeProperty)},outerRingStrokeThickness:function(n){return arguments.length===1?(this.g(t.$bq.outerRingStrokeThicknessProperty,n),n):this.c(t.$bq.outerRingStrokeThicknessProperty)},rotationInDegrees:function(n){return arguments.length===1?(this.g(t.$bq.rotationInDegreesProperty,n),n):this.c(t.$bq.rotationInDegreesProperty)},rotationAsPercentageOfWedge:function(n){return arguments.length===1?(this.g(t.$bq.rotationAsPercentageOfWedgeProperty,n),n):this.c(t.$bq.rotationAsPercentageOfWedgeProperty)},wedgePaddingInDegrees:function(n){return arguments.length===1?(this.g(t.$bq.wedgePaddingInDegreesProperty,n),n):this.c(t.$bq.wedgePaddingInDegreesProperty)},a2:function(){return!0},e5:function(){return this.e0},af:function(){return this.ae},e6:function(){return this.e1},a5:function(){return this.bg.peek().y()!=null},e7:function(){return this.e2},e8:function(){return this.e3},b1:function(){return this.bg.count()},e9:function(){return this.e4},_al:null,al:function(n){return arguments.length===1?(this._al=n,n):this._al},at:null,au:function(n){if(arguments.length===1){var t=this.at;return this.at=n,t.isEqual(this.at)||this.d7(t,this.at),n}return this.at},d7:function(){this.dj(3)},a3:function(){return this.ad.a()},ba:function(){return this.aj==3&&!this.a3()&&this.al().q()},exportVisualData:function(){var i=this,u=i.ae,r=new t.gk,l,f,a,e,o,v,w,y,p,h,c,s;for(r.menuArea(new t.hf(1,"MenuArea",i.ge)),r.outerRing(new t.hf(1,"OuterRing",i.gf)),r.innerRing(new t.hf(1,"InnerRing",i.gd)),r.innerRingFocus(new t.hf(1,"InnerRingFocus",i.gc)),r.itemOpacity(i.e2.__opacity),r.outerPathOpacity(i.e4.__opacity),r.viewport(i.au().toRect()),f=new t.dc(t.$a0.$type,t.$hg.$type,0),r.items(new t.g6),a=u.af().getEnumerator();a.moveNext();)e=a.current(),o=e.item().ah(),o.type(e.item().getType().typeName()),o.name(e.item().name()),f.item(e.item(),o),function(){var n=u.o().tryGetValue(e,l);return l=n.value,n.ret}()&&l.e(o,function(n){for(var t=0,r=i.bf.count();t<r;t++)if(i.bf.__inner[t].dataContext()==n)return i.bf.__inner[t];return null},function(n){for(var t=0,r=i.be.count();t<r;t++)if(i.be.__inner[t].dataContext()==n)return i.be.__inner[t];return null}),r.items().add(o);if(i.dc(0,u,f),i.dc(4,u,f),i.dc(1,u,f),i.dc(2,u,f),i.dc(3,u,f),function(){var n=i.bc.tryGetValue(5,v);return v=n.value,n.ret}())for(r.colorWellPreviews(new t.g7),y=v.getEnumerator();y.moveNext();)p=y.current(),h=n.ig.util.cast(t.$cp.$type,p.dataContext()),t.$dk.b(null!=h,"Expected to have the associated shape"),function(){var n=u.q().tryGetValue(h,w);return w=n.value,n.ret}()&&(c=n.ig.util.cast(t.$f9.$type,h.c),s=new t.hi,s.type(c.getType().typeName()),s.name(c.name()),s.colorValue(c.color()),s.previewPath(new t.hf(1,"ColorWellPreview",p)),r.colorWellPreviews().add(s));return i.al().au(r),r},dc:function(i,r,u){var l=this,e,o,s,h,c,f;if(function(){var n=l.bc.tryGetValue(i,e);return e=n.value,n.ret}())for(h=e.getEnumerator();h.moveNext();)c=h.current(),f=n.ig.util.cast(t.$cp.$type,c.dataContext()),t.$dk.b(null!=f,"Expected to have the associated shape"),f!=null&&function(){var n=r.q().tryGetValue(f,o);return o=n.value,n.ret}()&&function(){var n=u.tryGetValue(o,s);return s=n.value,n.ret}()&&s.i(i,c)},provideContainer:function(n){this.al().a8(n)},containerResized:function(){this.al().a9()},destroy:function(){this.al().a8(null)},styleUpdated:function(){this.al().bu()},flush:function(){this.al().av()},da:function(){this.dj(3)},db:function(){var i=this,u=i.ad.e(),o,r,s;if(u.clear(),u.add(function(){var n=new t.hc;return n.h=i.centerButtonKeyTip(),n.a(function(){return i.ea()}),n.c(i.ca.runOn(i)),n}()),i.isOpen())for(o=i.bg.peek(),r=o.h(null,!0);r!=null;){var f=r.item(),h=f.az(r),e=null;h!=null?u.addRange(h):i.a4(f)?e=function(n){return i.dl(n.d().item())}:f.isEnabled()&&(e=function(n){i.ec(n.d().item())});e!=null&&(s=n.ig.util.cast(t.$dp.$type,f),u.add(function(){var n=new t.hc;return n.h=s!=null?s.keyTip():null,n.a(e),n.d(r),n.c(i.b9.runOn(i)),n}()));r=o.h(f,!0)}i.ad.p();i.ez();i.al().az();i.al().bs(u)},de:function(){if(this.a3()&&(this.ad.r(),this.al().ay(),this.ez(),this.b8!=null)){var n=this.b8;this.b8=null;this.d2(n)}},a7:function(n){var t;return t=this.isOpen()?this.ae.i():this.ae.h(),t.a(n)},dq:function(n){this.bg.peek().y()==n&&this.dn()},ds:function(){switch(this.aj){case 0:case 4:this.a5()||this.ei(null,3,!0);break;case 3:this.ez();this.es()}},dv:function(n){n!=null&&(this.de(),this.al().bp(),this.isOpen()&&this.al().bt(n),this.ax==null&&(this.ax=new t.hj(this.dt.runOn(this),1e3)))},a8:function(n){return this.ad.a()?this.ad.c(n):!1},a9:function(n,t){if(this.a3())switch(n){case 17:case 15:case 14:case 16:case 13:case 12:case 2:this.de();this.ei(null,3)}switch(n){case 8:this.bg.count()>1?this.dn():(this.de(),this.al().bp());break;case 9:case 3:this.a5()||this.eb(this.aj,this.ah,!1);break;case 2:this.a5()||this.ef(t);break;case 15:case 17:this.a5()||this.dk(this.ah,n==15);break;case 14:this.isOpen()&&(this.ei(null,3),this.ea());break;case 16:this.ah!=null&&this.a4(this.ah)&&this.dl(this.ah);break;default:if(this.al().p(n)){this.a3()?(this.de(),this.al().bp()):this.a5()||this.db();break}return!1}return!0},dy:function(){this.de();this.ez();this.ei(null,0)},d0:function(n){if(this.am!=null&&this.a3()&&this.al().q()){this.b8=n;return}this.d2(n)},dz:function(n,i){t.$dk.b(this.b5==null,"We already have a token? How should we behave?");t.$dk.b(i!=null,"We need something to identify the pointer");this.d2(n);this.b5=i;this.ah!=null&&this.aj==2&&this.ah.at(!0);this.a1=this.aj==3;this.ek()},dp:function(n,t){this.ee(n,t,!0)},d3:function(n,t){this.ee(n,t,!1)},d2:function(n){var r,i;if(!this.a5()&&(this.b8==null||n.__x!=this.b8.__x||n.__y!=this.b8.__y||!this.al().q())&&(this.de(),this.b8=n,r=this.c5(n,!this.a1),i=r.a(),this.ei(i,r.b()),i!=null&&i.as())){var u=this.ae.am(),f=t.$ct.l(u,this.ae.j().width/2,this.ae.j().height/2,n),e=this.ae.c(i);i.ca(f,this.ae.j(),e,n)}},d1:function(){this.b8=null;this.ei(null,0)},ej:function(n){this.isOpen(n)},ex:function(){var i=this,u=i.ag,l,f,r,e,o,c;if(i.ag=0,l=i.ag==2||i.ag==3||i.al().t(),u==3){i.bd.count()>0&&(i.bd.clear(),i.ep(),i.es());var y=i.bg.peek(),s=0,h=1;i.am!=null?(s=1,h=i.am.transitionProgress()):i.ao!=null&&(h=i.ao.transitionProgress(),f=i.bg.peek(),r=i.ai,s=r!=null&&r.f()==f&&n.ig.util.cast(t.$f9.$type,r.d())!==null?4:r!=null&&f.f()==r&&n.ig.util.cast(t.$f9.$type,f.d())!==null?3:2);i.d9(i.ae,y,s,h,i.ai)}else{for(var a=i.ae.r(),p=i.ae.o(),v=a.getEnumerator();v.moveNext();)e=v.current(),function(){var n=p.tryGetValue(e,o);return o=n.value,n.ret}()&&(c=e.item().ai(e,i.ae,o),c!=0&&(u==0&&(u=1),(c&2)!=0&&i.ew(o.a())));a.clear()}l&&(u==1?(i.df(i.ae),i.dg(i.ae)):i.eh(i.ae),i.al().as())},c6:function(i,r){var f=i.item(),o=n.ig.util.cast(t.$f9.$type,f)!==null?3:2,s=f.c6(),u=r.b(),e=t.$ct.a(r.j(),u.l-2,u.m-2,u.l-(2+o),u.m-(2+o),i.e+.00872664625997165,i.d-.00872664625997165);e.d(s);r.ac().add(e);r.q().item(e,f)},b9:function(i,r){var u=n.ig.util.cast(t.$dj.$type,r.d()),e=u.e+(u.d-u.e)/2,f=t.$ct.q(this.ae.j(),e);return{__x:f.__x-i.b()/2,__y:f.__y-i.a()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},ca:function(t){var r=this.al().b5(),i=this.ae.am();return{__x:i.__x-t.b()/2,__y:i.__y-r.a()/2-t.a(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},gg:function(n){if(Number.isInfinity(n.b())||Number.isInfinity(n.a())){var i=100,r=this.al().b5(),u=t.$ct.b(new t.cz(1,0,0,r.b(),r.a()));Number.isInfinity(n.b())&&n.b((this.outerRingThickness()+5+i+5)*2+u.width);Number.isInfinity(n.a())&&n.a((this.outerRingThickness()+5+i+5)*2+u.height)}return n},c7:function(){this.ax!=null&&(this.ax.b(),this.ax=null)},a4:function(n){return n.ad()==2},bz:function(n,t){for(var r,i=0,u=this.bd.count();i<u;i++)if(r=this.bd.__inner[i],r.item()==n&&r.d()==t)return i;return-1},c5:function(n,i){var r=this,f=null,u=0,w=!1,p,o,k,a,d,v,c,g,y,l,nt;if(r.ae.h().a(n))r.az&&i||(u=3);else if(r.b5!=null||r.isOpen()){if(p=r.isOpen()&&r.ae.b().a(n),o=null,r.b5!=null&&!p){var e=r.ae.am(),s=Math.abs(n.__x-e.__x),h=Math.abs(n.__y-e.__y),tt=Math.sqrt(s*s+h*h),it=t.$ct.l(e,r.ae.j().width/2,r.ae.j().height/2,n),b=t.$ct.q(r.ae.j(),it);s=Math.abs(b.__x-e.__x);h=Math.abs(b.__y-e.__y);k=Math.sqrt(s*s+h*h);w=tt>k*3;a=r.ae.k();d=t.$ct.l(e,a.width/2,a.height/2,n);n=t.$ct.q(a,d)}if(p){for(v=r.ae.z(),c=0,g=v.count();c<g;c++)if(v.__inner[c].a(n)){u=1;o=v.__inner[c];break}}else if(w)u=4;else for(y=r.ae.aa(),l=0,nt=y.count();l<nt;l++)if(y.__inner[l].a(n)){u=2;o=y.__inner[l];break}o!=null&&(function(){var n=r.ae.q().tryGetValue(o,f);return f=n.value,n.ret}()?f.isEnabled()?u!=1||r.a4(f)||(u=2):u!=2&&r.a4(f)||(f=null,u=0):u=0)}return new t.eo(t.$a0.$type,t.$ag.$type,f,u)},df:function(n){var i=this.bf,r=this.aw,u,e,h,f;for(r.e(!0),u=i.count()-1;u>=0;u--)r.m(i.__inner[u]);for(i.clear(),e=n.o().getEnumerator();e.moveNext();)for(var o=e.current(),c=o.key().item().isEnabled()?1:.3,s=o.value().b().getEnumerator();s.moveNext();)h=s.current(),f=r.n(),f.__opacity=c,t.$bq.dh(h,f),i.add(f);r.e(!1)},dg:function(n){var r=this.be,u=this.av,f,e,i,t,o;for(u.e(!0),f=r.count()-1;f>=0;f--)u.m(r.__inner[f]);for(r.clear(),e=n.o().getEnumerator();e.moveNext();)for(var s=e.current(),c=s.key().item().isEnabled()?1:.3,h=s.value().a().getEnumerator();h.moveNext();)i=h.current(),t=u.n(),t.__opacity=c,t.aa(i.c),t.dataContext(i),t.ab(i.e),o=i.f,t.l(o.x()),t.m(o.y()),r.add(t);u.e(!1)},dh:function(n,i){i.__fill=n.d();i.__stroke=n.b()==0?t.$f5.t:n.e();i.z(n.b());i.h(n.h());n.g()==null&&n.g(n.f(n.b()));i.ak(n.g());i.dataContext(n)},di:function(n,i,r){var u=this,f,e,o,s;for(function(){var t=u.bc.tryGetValue(n,f);return f=t.value,t.ret}()||u.bc.item(n,f=new t.bs(t.$ey.$type,0)),function(){var t=u.bb.tryGetValue(n,e);return e=t.value,t.ret}()||u.bb.item(n,e=function(){var i=new t.hd(t.$ey.$type);return i.a(u.al().bf.runOn(u.al())),i.b(u.al().bg.runOn(u.al())),i.i(function(){return u.al().b3(n)}),i.c(function(t){return u.al().bi(n,t)}),i}()),e.e(!0),o=f.count()-1;o>=0;o--)e.m(f.__inner[o]);for(f.clear(),s=i.getEnumerator();s.moveNext();){var l=s.current(),h=e.n(),c,a=1;r!=null&&function(){var n=r.tryGetValue(l,c);return c=n.value,n.ret}()&&!c.isEnabled()&&(a=.3);h.__opacity=a;t.$bq.dh(l,h);f.add(h)}e.e(!1)},dj:function(n){n>this.ag&&(this.ag=n);this.al().bq()},dt:function(){this.al().az();this.ax=null},dm:function(i){var r=n.ig.util.cast(t.$a0.$type,i),u,f,e;if(t.$dk.b(r==null||r.menu()==this||r.menu()==null,"The item belongs to another menu?"),r==null&&i!=null)if(u=this.bg.peek().d(),u!=null&&i==u.ba())r=u;else for(f=this.al().w().getEnumerator();f.moveNext();)if(e=f.current(),r=e.ae(i),r!=null)break;this.dl(r)},dl:function(i){var u=this.bg.peek(),s=u.d(),v,k,y,h,p,r,w,f,o;if(s!=i){while(n.ig.util.cast(t.$dp.$type,i)!==null){if(v=i,k=v.du()==0,k)break;i=v.parentItem()}if(s==i){this.ey();return}if(this.eq(),i==null||s!=null&&!s.aq(i))while(this.bg.count()>1)if(y=this.bg.pop(),y.ad(),y.d().b8(),h=this.bg.peek(),h.d()==i||h.d()!=null&&h.d().aq(i))break;if(i!=null){for(var it=this.bg.peek().d(),d=new t.dl(t.$a0.$type),c=i;c!=it;)d.push(c),c=c.parentItem();for(p=d.getEnumerator();p.moveNext();){if(r=p.current(),r.__visibility==1)break;if(w=n.ig.util.cast(t.$dp.$type,r),w==null||w.du()!=1){if(!this.a4(r))break;if(!r.aw())break;var l=this.bg.peek(),b=r.ap(),rt=b?r.a8():null,ut=b?new Array(0):r.a0(),ft=new t.dn(this,r,l,ut,rt);if(this.bg.push(ft),l!=u&&l.ah(0),l.c(r),r.b9(),b)break}}}if(this.ai=u,this.al().bb(),this.em(),this.dj(3),u.y()!=null&&this.al().ax(u.y()),f=this.bg.peek(),f.y()!=null)this.de(),this.ei(null,0),this.al().br(f.y());else if(this.al().q()&&!this.a3()&&f.f()==u&&(o=u.g(f.d()),o!=null)){f.ah(0);for(var et=o.e+(o.d-o.e)/2,g=Number.MAX_VALUE,a=null,nt=f.l().getEnumerator();nt.moveNext();){var e=nt.current(),ot=e.e+(e.d-e.e)/2,tt=Math.abs(ot-et);tt<g&&(e.item().isEnabled()||this.a4(e.item()))&&(g=tt,a=e)}a!=null?this.ei(a.item(),a.item().isEnabled()?2:1):this.ei(null,3)}this.ey();t.$f5.e(this.ao)||this.a3()&&this.db()}},dn:function(){this.bg.count()>1&&this.dl(this.bg.skip$1(t.$dn.$type,1).first$1(t.$dn.$type).d())},dr:function(){t.$f5.e(this.am)||this.eo();this.dj(3)},onInitialized:function(){this.a0||(this.a0=!0,this.currentOpenMenuItem()!=null&&this.dm(this.currentOpenMenuItem()))},dx:function(){var n=this.an.transitionProgress();this.ed(n)},ed:function(n){for(var a,s,u,h,c,f,l=this.bd,e=l.count()-1;e>=0;e--){var o=l.__inner[e],r=t.$f5.g(o.f()+n,0,1),i=o.item();switch(o.d()){case 3:a=t.$hq.g(this.centerButtonHotTrackFill(),r,this.isOpen()?this.centerButtonFill():this.centerButtonClosedFill(),0);s=t.$hq.g(this.centerButtonHotTrackStroke(),r,this.isOpen()?this.centerButtonStroke():this.centerButtonClosedStroke(),0);this.et(this.ae.g(),a);this.eu(this.ae.g(),s);this.eu(this.ae.h(),s);this.al().a7();break;case 1:u=this.ae.l(i,0);h=u!=null?this.ae.l(i,4):null;u!=null&&(u.d(t.$hq.g(i.dk(),r,i.dg(),0)),u.e(t.$hq.g(i.dp(),r,i.dr(),0)));h!=null&&h.d(t.$hq.g(i.dm(),r,i.di(),0));break;case 2:c=this.ae.l(i,3);null!=c&&c.d(t.$hq.g(i.c6(),r,null,0));f=this.ae.l(i,1);null!=f&&(f.d(t.$hq.g(i.da(),r,i.c8(),0)),f.e(t.$hq.g(i.dc(),r,i.de(),0)))}}this.dj(2)},d4:function(){t.$f5.e(this.ao)||this.eq();this.dj(3)},d5:function(i,r,u){var e,f,c,l,a;if(r!=u&&(r!=null||(e=t.$a8.h(i,t.$bq.$type),e==null||t.$ht.getUnderlyingType(e.propertyType())!=null||e.k()==null||e.k().b()!=u))){this.al().bc(i,r,u);f=!1;switch(i){case"CenterButtonKeyTip":f=!1;break;case"CurrentOpenMenuItem":this.a0&&this.dm(u);break;case"MenuOpenCloseAnimationDuration":case"MenuOpenCloseAnimationEasingFunction":case"MenuItemOpenCloseAnimationDuration":case t.$bq.cu:case"KeyTipTemplate":break;case"MenuBackground":this.et(this.ae.i(),u);f=!0;break;case"CenterButtonHotTrackFill":case"CenterButtonHotTrackStroke":case"CenterButtonFill":case"CenterButtonStroke":case"CenterButtonClosedFill":case"CenterButtonClosedStroke":this.es();break;case"CenterButtonStrokeThickness":this.ev(this.ae.g(),u);this.ez();break;case"OuterRingFill":this.et(this.ae.b(),u);break;case"OuterRingStrokeThickness":this.ev(this.ae.b(),u);break;case"OuterRingStroke":this.eu(this.ae.b(),u);break;case"CenterButtonContentHeight":case"CenterButtonContentWidth":case"CenterButtonContent":case"OuterRingThickness":case"RotationAsPercentageOfWedge":case"RotationInDegrees":case"MinWedgeCount":case"WedgePaddingInDegrees":f=!0;break;case"IsOpen":f=!0;this.eo();this.eq();var o=u==!0,s=this.e4.__opacity,h=o?1:0,v=o?h-s:s-h;o&&this.al().a5();v!=0&&(c=this.menuOpenCloseAnimationDuration(),c>0&&this.a2()?(this.am=new t.f7(s,h,Math.ceil(v*c)),this.am.easingFunction(this.menuOpenCloseAnimationEasingFunction()),this.am.propertyChanged=n.ig.Delegate.prototype.combine(this.am.propertyChanged,this.dr.runOn(this)),this.am.start(),this.am.flush()):this.a3()&&(this.db(),o||this.al().a4()));this.es();l=o?this.opened:this.closed;null!=l&&l(this,t.$am.empty);break;default:t.$dk.b(!1,"Missing property:"+i)}if(f&&this.dj(3),a=this.propertyChanged,null!=a)switch(i){case"IsOpen":case"CurrentOpenMenuItem":a(this,new t.bo(i))}}},dw:function(n,t,i){n!=this.bg.peek();var r=this.ag;if(t!=null)switch(i){case"ToolTipResolved":t==this.ah&&(this.c7(),this.al().bt(t));break;case"InvalidateCustomVisuals":r=this.af().m(t)?1:3;break;case"IsEnabled":r=2;break;default:r=3}r!=this.ag&&this.dj(r)},d6:function(){this.dj(2)},d8:function(){this.isOpen()||(this.az=!0,this.ej(!0))},dk:function(n,t){var u,r,i,f;if(this.isOpen()&&(n==null||!n.ax(t,!1)))if(u=this.bg.peek(),r=u.h(n,t),r!=null){i=r.item();do if(i.isEnabled()){this.ei(i,2);i.ax(t,!0);break}else if(this.a4(i)){this.ei(i,1);break}else if(f=u.h(i,t),f!=null)i=f.item();else{this.ei(null,3);break}while(i!=r.item())}else this.ei(null,3)},d9:function(i,r,u,f,e){var l=this,s=l.au(),iu,v,ot,h,k,a,ui,d,fi,ei,oi,si,fr,hi,ci,li,vi,ct,lt,w,gr,bi,y,kt,ft,dt,gt,di,ni,b,it;if(!s.isEmpty()){iu=r;e!=null&&u!=0&&u!=1&&f<.5&&(r=e);var c={__x:s.x+s.width/2,__y:s.y+s.height/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},et=Math.max(l.outerRingThickness(),0),at=u==1,gi=at?(1-f)*-1:0,ti=at?(1-f)*et:0,nr=f<=.5?f:1-f,vt=at?0:nr*et,rt=s.width/2-ti,ut=s.height/2-ti;et-=ti;var ii=Math.min(et,rt),ri=Math.min(et,ut),tr=l.al().b5(),ir=t.$ct.b(new t.cz(1,0,0,tr.b(),tr.a())),ru=Math.min(ir.width/2,rt-ii),uu=Math.min(ir.height/2,ut-ri),rr=rt-ii-vt,ur=ut-ri-vt;i.am(c);v=at?1:1-nr*2*.6;i.aj(v);i.j(s);i.ak=rt-ii;i.al=ut-ri;i.r().clear();ot=i.i();ot.k=c;ot.i=rt;ot.j=ut;ot.g(null);h=i.b();h.k=c;h.i=rt;h.j=ut;h.l=rr;h.m=ur;h.g(null);k=i.g();k.k=c;k.i=ru;k.j=uu;k.g(null);a=i.h();a.k=c;a.i=k.i+5;a.j=k.j+5;a.g(null);ui=r.l();d=i.q();d.clear();fi=i.af();fi.clear();fi.addRange(ui);r.ah(gi);i.ai(gi*r.q());ei=i.z();ei.clear();oi=i.ah();oi.clear();si=i.aa();si.clear();fr=i.ac();fr.clear();hi=i.ab();hi.clear();ci=i.y();ci.clear();li=i.o();li.clear();var g=Math.max(rr-1,0)*v,nt=Math.max(ur-1,0)*v,yt=Math.min(a.i+5,g)*v,pt=Math.min(a.j+5,nt)*v,fu=Math.max(g-2,0)*v,eu=Math.max(nt-2,0)*v,er=(g-(g-yt)*.56)*v,or=(nt-(nt-pt)*.56)*v,sr=Math.max(er-8,a.i),hr=Math.max(or-8,a.j),ou=Math.min(a.i+8,sr),su=Math.min(a.j+8,hr),cr=new t.cz(1,c.__x-g,c.__y-nt,g*2,nt*2),wt=new t.cz(1,c.__x-yt,c.__y-pt,yt*2,pt*2),lr=wt.height+(cr.height-wt.height)*.6,ar=wt.width+(cr.width-wt.width)*.6,ai=new t.cz(1,c.__x-ar/2,c.__y-lr/2,ar,lr),vr=h.i-vt*2,yr=h.j-vt*2,pr=h.l,wr=h.m,br=(vr+pr)/2,kr=(yr+wr)/2,dr=new t.cz(1,c.__x-br,c.__y-kr,br*2,kr*2);for(i.k(ai),vi=ui.getEnumerator();vi.moveNext();){var p=vi.current(),o=p.item(),st=p.e,bt=p.d,yi=o.ag(p,i);yi!=null&&(li.add(p,yi),l.ew(yi.a()));var ht=n.ig.util.cast(t.$f9.$type,o),pi=st,wi=bt;if(ht==null?(pi+=.00872664625997165,wi-=.00872664625997165):ht.fh(),ct=st+(bt-st)/2,lt=t.$ct.n(s,ct,ai),isNaN(lt)&&(lt=ct),p.h=t.$ct.q(ai,lt-i.ai()),p.c=lt,w=t.$ct.a(s,vr,yr,pr,wr,pi,wi),ei.add(w),d.item(w,o),gr=l.b5==null&&o==l.ah&&l.aj==1,bi=l.a4(o),bi||ht!=null){if(y=null,bi){var hu=t.$ct.n(s,ct,dr),nu=t.$ct.q(dr,hu),tt=new t.c2(5.5,11);y=function(){var i=new t.hu;return i.j={__x:tt.b(),__y:tt.a()/2,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i.k={__x:0,__y:tt.a(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},i}();kt=new t.f1;kt.h().add(function(){var n=new t.f3;return n.h(ct*180/3.14159265358979),n.i(tt.b()/2),n.j(tt.a()/2),n}());kt.h().add(function(){var n=new t.e2;return n.h(nu.__x-tt.b()/2),n.i(nu.__y-tt.a()/2),n}());y.h(kt);oi.add(y);d.item(y,o)}gr?(y!=null&&y.d(o.dm()),w.d(o.dk()),w.e(o.dp())):(y!=null&&y.d(o.di()),w.d(o.dg()),w.e(o.dr()));w.b(o.a5())}if(ft=ht!=null?t.$ct.a(s,fu,eu,er,or,st,bt):t.$ct.a(s,g,nt,yt,pt,st,bt),dt=o==l.ah&&l.aj==2,ft.d(dt?o.da():o.c8()),ft.e(dt?o.dc():o.de()),ft.b(o.a3()),si.add(ft),d.item(ft,o),o.ao()){var tu=ht!=null?3:1,cu=o.c3(),ki=t.$ct.a(s,h.l-2,h.m-2,h.l-(2+tu),h.m-(2+tu),pi,wi);ki.d(cu);hi.add(ki);d.item(ki,o)}dt&&l.c6(p,i)}if(gt=r.f(),gt!=null)for(gt.ah(0),di=gt.l().getEnumerator();di.moveNext();)ni=di.current(),b=n.ig.util.cast(t.$f9.$type,ni.item()),b!=null&&(b.fh(),it=t.$ct.a(s,sr,hr,ou,su,ni.e,ni.d),it.d(b.c8()),it.e(b.de()),it.b(b.a3()),it.c=b,ci.add(it),d.item(it,b))}},ea:function(){this.bg.count()>1?this.dn():this.ej(!this.isOpen())},eb:function(n,t,i){n==3?i||this.ea():t!=null&&(n==1&&this.a4(t)?this.dl(t):t.isEnabled()&&this.ec(t))},ec:function(n){n!=null&&n.b7()},ee:function(n,t,i){var s,e,o,h;if(this.en(),this.b5!=null){s=this.az;this.b5=null;this.az=!1;this.dj(3);var u=this.aj,f=this.ah,r=this.c5(n,!0);if(f!=null&&u==2&&f.at(!1),e=i||this.isOpen()||r.a()!=null||f==null||u!=2,this.ei(r.a(),r.b(),!0,!e),!i){if(this.isOpen()&&u==0&&r.b()==0)for(o=this.ae.y().getEnumerator();o.moveNext();)if(h=o.current(),h.a(n)){u=3;break}this.eb(u,f,s)}e||this.ax!=null||this.aj!=r.b()||this.ah!=r.a()||this.al().az()}},ef:function(n){if(this.isOpen()){this.de();var t=this.ah,i=this.aj,r=(n&4)==4,f=this.bg.peek(),u=f.g(t);if(t==null||i!=2||!t.ay(!r)){do{switch(i){case 2:r&&(u=f.h(t,!1));i=1;break;case 1:r||(u=f.h(t,!0));i=2;break;case 3:case 4:case 0:u=f.h(null,!r);i=r?1:2}if(u==null){t=null;i=3;break}if(t=u.item(),i==2&&t.isEnabled())break;if(i==1&&this.a4(t))break}while(t!=null);this.ei(t,i);this.ah!=null&&this.aj==2&&this.ah.av(!r)}}},eh:function(n){var i=this,e=i.isOpen()?1:0,r=e,u=null,o,s,f,h;i.am!=null?r=e=t.$f5.g(i.am.transitionProgress(),0,1):i.ao!=null&&(r=t.$f5.g(i.ao.transitionProgress(),0,1),r=r<=.5?1-r*2:1-(1-r)*2,o=n.aj(),u=function(){var i=new t.f4;return i.j(o),i.k(o),i.h(n.am().__x),i.i(n.am().__y),i}());i.e4.__opacity=e;i.e1.__opacity=(i.aj==4?.3:1)*r;i.e2.__opacity=i.e1.__opacity;t.$ct.e(n.ai(),0)||(s=function(){var i=new t.f3;return i.h(n.ai()*180/3.14159265358979),i.i(n.j().width/2),i.j(n.j().height/2),i}(),u==null?u=s:(f=new t.f1,f.h().add(s),f.h().add(u),u=f));i.e2.h(u);i.e1.h(i.e2.h());i.e3.__opacity=i.e1.__opacity;t.$bq.dh(n.i(),i.ge);t.$bq.dh(n.b(),i.gf);t.$bq.dh(n.g(),i.gd);t.$bq.dh(n.h(),i.gc);i.di(0,n.z(),null);i.di(4,n.ah(),null);i.di(1,n.aa(),n.q());i.di(5,n.y(),n.q());i.di(2,n.ab(),n.q());i.di(3,n.ac(),n.q());i.df(n);i.dg(n);h=i.al();h.be(n.af());i.e0.__opacity=i.az?.3:1;h.bj(n.am())},ei:function(n,i,r,u){var l,s,a,h,v,c;if((i==0||i==4)&&this.al().q()&&!this.a5()&&(i=3),i!=this.aj||n!=this.ah){var f=this.ah,e=this.aj,o=e==3;this.ah=n;this.aj=i;i!=3||this.b5==null||this.isOpen()?o&&this.en():this.ek();switch(e){case 3:case 1:case 2:this.ep();t.$dk.b(-1==this.bz(f,e),"How can we already have an animation for this area since we only animate the leave?");this.bd.add(new t.hk(f,e));this.el()}l=i!=0?this.bz(n,i):-1;l>=0&&this.bd.removeAt(l);o&&this.ez();r!=!0&&this.de();switch(i){case 4:this.ep();break;case 3:this.ez();this.es();break;case 1:s=this.ae.l(n,0);a=this.ae.l(n,4);s!=null&&(s.d(n.dk()),s.e(n.dp()));a!=null&&a.d(n.dm());break;case 2:h=this.ae.l(n,3);h==null&&(v=this.ae.c(n),v!=null&&this.c6(v,this.ae));null!=h&&h.d(n.c6());c=this.ae.l(n,1);null!=c&&(c.d(n.da()),c.e(n.dc()))}this.b5!=null&&this.isOpen()&&(this.az=!0,o&&this.a1&&n!=null&&this.a4(n)&&this.dl(n));o&&this.isOpen()&&(this.a1=!1);f!=null&&e==2&&(f.as(!1),f.at(!1));n!=null&&i==2&&(n.as(!0),this.b5!=null&&n.at(!0));this.c7();n==null||this.a3()?u!=!0&&this.al().az():this.al().bt(n);this.dj(2)}},ek:function(){this.isOpen()==!1&&this.b5!=null&&this.aj==3&&(t.$dk.b(this.ay==null,"There's already a timer?"),this.en(),this.ay=new t.hj(this.d8.runOn(this),2e3))},el:function(){if(!this.a2()){this.bd.count()>0&&(this.ed(1),this.bd.clear());return}this.an==null&&(this.an=new t.f7(0,1,250),this.an.propertyChanged=n.ig.Delegate.prototype.combine(this.an.propertyChanged,this.dx.runOn(this)));this.an.start();this.an.flush()},em:function(){this.eq();var i=this.menuItemOpenCloseAnimationDuration();i>0&&this.a2()&&(this.ao=new t.f7(0,1,i),this.ao.easingFunction(this.menuItemOpenCloseAnimationEasingFunction()),this.ao.propertyChanged=n.ig.Delegate.prototype.combine(this.ao.propertyChanged,this.d4.runOn(this)),this.ao.start(),this.ao.flush())},en:function(){null!=this.ay&&(this.ay.b(),this.ay=null)},eo:function(){this.am!=null&&(this.am.propertyChanged=n.ig.Delegate.prototype.remove(this.am.propertyChanged,this.dr.runOn(this)),this.am.stop(),this.am=null,this.isOpen()||this.al().a4(),this.a3()&&this.db())},ep:function(){var i,n,t;if(this.an!=null){for(i=this.an.transitionProgress(),n=this.bd.count()-1;n>=0;n--)t=this.bd.__inner[n],t.f(t.f()+i),t.f()>=1&&this.bd.removeAt(n);this.an.stop()}},eq:function(){if(this.ao!=null){this.ai=null;this.ao.propertyChanged=n.ig.Delegate.prototype.remove(this.ao.propertyChanged,this.d4.runOn(this));this.ao.stop();this.ao=null;var t=this.bg.peek();t.c(null);this.a3()&&this.db()}},es:function(){var i=this.aj==3&&!this.a3()&&!this.ba(),t=null,n=null;i?(t=this.centerButtonHotTrackFill(),n=this.centerButtonHotTrackStroke()):this.isOpen()?(t=this.centerButtonFill(),n=this.centerButtonStroke()):(t=this.centerButtonClosedFill(),n=this.centerButtonClosedStroke());this.et(this.ae.g(),t);this.eu(this.ae.g(),n);this.eu(this.ae.h(),n);this.al().a7()},et:function(n,t){n.d(t);this.d6(n)},eu:function(n,t){n.e(t);this.d6(n)},ev:function(n,t){n.b(t);n.g(null);this.dj(2)},ew:function(n){for(var r=this.al().bx(),u=n.getEnumerator(),i,f,e;u.moveNext();)i=u.current(),r.aa(i.c),f=this.al().b6(r),e=i.b,i.f=t.$f5.c(i.b,f,i.d,i.g).toRect()},ey:function(){var n=this.bg.peek().d(),t=null;n!=null&&(t=n.ba());this.currentOpenMenuItem(t)},ez:function(){this.ev(this.ae.h(),this.ba()?this.ae.g().b():0)},closed:null,opened:null,propertyChanged:null,$type:new n.ig.Type("XamRadialMenu",t.$a1.$type)},!0);n.ig.util.defType("CssClassChain$1:em","Object",{$t:null,f:null,c:null,e:null,d:null,init:function(i,r){this.$t=i;this.$type=this.$type.specialize(this.$t);n.ig.$op.init.call(this);this.f=r;this.e=new t.bs(t.$em.$type.specialize(this.$t),0);this.d=new t.dc(this.$t,t.$eo.$type.specialize(t.$en.$type,String),0)},a:function(n){var i=new t.em(this.$t,n);return i.c=this,this.e.add(i),i},b:function(n,i,r){return this.d.item(n,new t.eo(t.$en.$type,String,i,r)),this},$type:new n.ig.Type("CssClassChain$1",n.ig.$ot)},!0);n.ig.util.defType("XamRadialMenuView:ds","Object",{l:!1,af:0,ae:0,n:!1,_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},ai:null,k:null,aj:null,ap:null,f:null,v:null,e:null,g:null,a:null,aq:null,bz:null,ad:null,b4:null,m:!1,j:null,am:null,staticInit:function(){var n=new t.em(t.$a8.$type,"ui-radialmenu"),i;n.b(t.$bq.fontProperty,0,"12px segoe ui,tahoma,arial,sans-serif").a("ui-radialmenu-backing").b(t.$bq.menuBackgroundProperty,0,"#FFFFFF").c.a("ui-radialmenu-outerring").b(t.$bq.outerRingFillProperty,0,"#F1DAEA").b(t.$bq.outerRingStrokeProperty,1,"transparent").b(t.$bq.outerRingStrokeThicknessProperty,3,"0.0").c.a("ui-radialmenu-centerbutton").b(t.$bq.centerButtonFillProperty,0,"#FFFFFF").b(t.$bq.centerButtonStrokeProperty,1,"#80397B").b(t.$bq.centerButtonStrokeThicknessProperty,3,"1.0").a("ui-radialmenu-centerbutton-hover").b(t.$bq.centerButtonHotTrackFillProperty,0,"#EFEFEF").b(t.$bq.centerButtonHotTrackStrokeProperty,1,"#80397B").c.a("ui-radialmenu-centerbutton-closed").b(t.$bq.centerButtonClosedFillProperty,0,"#FFFFFF").b(t.$bq.centerButtonClosedStrokeProperty,1,"#80397B");t.$ds.d=n;n=new t.em(t.$a8.$type,null);n.a("ui-radialmenu-item").b(t.$a0.foregroundProperty,6,"black").a("ui-radialmenu-item-inner").b(t.$a0.innerAreaFillProperty,0,"transparent").b(t.$a0.innerAreaStrokeProperty,1,"transparent").b(t.$a0.innerAreaStrokeThicknessProperty,3,"1.0").a("ui-radialmenu-item-inner-hover").b(t.$a0.innerAreaHotTrackFillProperty,0,"transparent").b(t.$a0.innerAreaHotTrackStrokeProperty,1,"transparent").c.c.a("ui-radialmenu-item-outer").b(t.$a0.outerRingButtonFillProperty,0,"#80397B").b(t.$a0.outerRingButtonStrokeProperty,1,"transparent").b(t.$a0.outerRingButtonForegroundProperty,6,"white").b(t.$a0.outerRingButtonStrokeThicknessProperty,3,"1.0").a("ui-radialmenu-item-outer-hover").b(t.$a0.outerRingButtonHotTrackFillProperty,0,"#444444").b(t.$a0.outerRingButtonHotTrackForegroundProperty,6,"white").b(t.$a0.outerRingButtonHotTrackStrokeProperty,1,"transparent").c.c.a("ui-radialmenu-item-checkarc").b(t.$a0.checkedHighlightBrushProperty,0,"#A674A2").c.a("ui-radialmenu-item-hoverarc").b(t.$a0.highlightBrushProperty,0,"#80397B").c.c.a("ui-radialmenu-gauge").a("ui-radialmenu-gauge-pendingneedle").b(t.$hx.pendingValueNeedleBrushProperty,0,"#D6A9CE").c.a("ui-radialmenu-gauge-valueneedle").b(t.$hx.valueNeedleBrushProperty,0,"#A26497").c.a("ui-radialmenu-gauge-tick").b(t.$hx.tickBrushProperty,0,"#AE5A9D").c.a("ui-radialmenu-gauge-track-start").b(t.$hx.trackStartColorProperty,6,"rgba(200,142,188,0)").c.a("ui-radialmenu-gauge-track-end").b(t.$hx.trackEndColorProperty,6,"#C88EBC");t.$ds.c=n;i=new t.em(t.$en.$type,"ui-radialmenu-tooltip");i.b(1,1,"").b(3,3,"").b(4,4,"").b(2,2,"").b(0,0,"").b(6,6,"").b(5,5,"");t.$ds.b=i},init:function(i){this.l=!1;this.af=-1;this.ae=-1;this.n=!1;this.j=new t.cz(1,0,0,0,0);this.am=new t.cs(0);this.u=new t.dc(t.$a0.$type,t.$e3.$type,0);this.x=new t.bs(t.$e3.$type,0);this.h=new t.ep;this.y=NaN;n.ig.$op.init.call(this);this.i(i);this.v=new t.dc(String,t.$d.$type,0);this.f=new t.es(t.$ds.d);this.e=new t.es(t.$ds.c);this.g=new t.ex(t.$en.$type,t.$ds.b);t.$ds.ag++;this.aq="RadialMenuWindow"+t.$ds.ag},ar:function(){this.n&&(this.n=!1,this.i().ex())},av:function(){this.n&&this.ar()},ba:function(){this.bz=this.b0();this.i().e5().y().add(this.bz);this.a0();this.bv()},bq:function(){this.n||(this.n=!0,window.setTimeout(this.ar.runOn(this),0))},as:function(){this.bk()},bg:function(n){n.__visibility=1},bf:function(n){n.__visibility=0},b1:function(){var n=new t.ey;return this.i().e6().y().add(n),n},at:function(i){var r=n.ig.util.cast(t.$cl.$type,i.u());r!=null&&r.y().remove(i)},b3:function(n){var r=new t.ey,i=0;switch(n){case 0:i=200;break;case 4:i=300;break;case 1:i=500;break;case 5:i=600;break;case 2:i=700;break;case 3:i=800}return this.m=!1,r.q(i),this.i().e8().y().add(r),r},bi:function(i,r){var u=n.ig.util.cast(t.$cl.$type,r.u());u!=null&&u.y().remove(r)},b2:function(n){var r=new t.ey,u=this.i().e9(),i=0;switch(n){default:case 0:i=0;break;case 1:i=100;break;case 3:i=900;u=this.i().e5();break;case 2:i=1e3;u=this.i().e5()}return r.q(i),u.y().add(r),r},bh:function(i,r){var u=n.ig.util.cast(t.$cl.$type,r.u());u!=null&&u.y().remove(r)},a2:function(n){n.__visibility=1},a1:function(n){n.__visibility=0},by:function(){var n=new t.e1;return this.i().e6().y().add(n),n},a3:function(i){var r=n.ig.util.cast(t.$cl.$type,i.u());r!=null&&r.y().remove(i)},b0:function(){var i=new t.ey,u,r,f;return i.z(3),i.k(20),i.j(14),u=new t.cx,r=new t.db,r.__startPoint={__x:8.5,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r.__segments.add(new t.da(0,{__x:2,__y:6.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.__segments.add(new t.da(0,{__x:8.5,__y:13,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),u.b().add(r),f=new t.db,f.__startPoint={__x:2,__y:6.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},f.__segments.add(new t.da(0,{__x:20,__y:6.5,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),u.b().add(f),i.ak(u),i.h(new t.e2),i},t:function(){return!0},bb:function(){this.a0()},u:null,x:null,be:function(n){var i=this,u,c,e,f,r,o,l,s,h,a;for(i.x.clear(),u=0,c=n.count();u<c;u++)e=n.__inner[u],f=e.item(),function(){var n=i.u.tryGetValue(f,r);return r=n.value,n.ret}()?i.u.remove(f):r=new t.e3(f,i),r.c=e,i.x.add(r);for(o=i.u.values().getEnumerator();o.moveNext();)l=o.current(),l.h();for(i.u.clear(),s=i.x.getEnumerator();s.moveNext();)h=s.current(),a=h.item(),i.u.item(a,h)},w:function(){return this.i().items()},bj:function(n){var t=this.bz.h();t.h(n.__x-this.bz.k()/2);t.i(n.__y-this.bz.j()/2)},b5:function(){var n=new t.c2(this.i().centerButtonContentWidth(),this.i().centerButtonContentHeight());return isNaN(n.b())&&(this.b4!=null?n.b(Math.max(28,this.b4.b())):n.b(28)),isNaN(n.a())&&(this.b4!=null?n.a(Math.max(28,this.b4.a())):n.a(28)),n},bc:function(n,i,r){var u=this,f,e,o;u.l||(f=t.$a8.h(n,t.$bq.$type),null!=f&&u.f.c().containsKey(f)&&(e=u.i().d(f)!=t.$a8.c,u.v.item(n,e),e||(u.l=!0,function(){var n=u.f.c().tryGetValue(f,o);return o=n.value,n.ret}()&&u.i().g(f,o),u.l=!1)));switch(n){case"CenterButtonContent":u.ad!=null&&(u.i().e5().y().remove1(u.ad),u.ad=null,u.b4=null);String.isNullOrEmpty(r)||(u.ad=t.$fj.a.d(r,u.a6.runOn(u)));u.a0();break;case"CenterButtonContentHeight":case"CenterButtonContentWidth":u.a0()}},a6:function(n){var i=n;this.b4=new t.c2(i.width,i.height);this.i().da()},a0:function(){var n=this.bz;n.__visibility=this.i().b1()<2?1:0},o:!1,ac:null,r:function(t){if(arguments.length===1){if(t!=this.o)if(this.o=t,t||this.ac==null)t&&this.ac==null&&(this.ac=window,this.a.ae(n(this.ac),this.aq));else{var i=this.ac;this.ac=null;this.a.ax(n(i),this.aq)}return t}return this.o},a8:function(i){var r=this,y=r.aj,f=i==null?null:n(i),e,o,u,v;r.g.g(r.e.g(r.f.g(r.aj=f)));var s=function(n){r.i().d0(r.an(n))},h=function(){r.o||r.i().d1()},c=function(n){r.i().d2(r.an(n))},l=function(n){r.r()||(r.r(!0),r.i().dz(r.an(n),r))},a=function(n){r.r()&&(r.r(!1),r.i().d3(r.an(n),r))};(r.a!=null&&(r.r(!1),r.a.af(),r.a.onMouseEnter=n.ig.Delegate.prototype.remove(r.a.onMouseEnter,s),r.a.onMouseLeave=n.ig.Delegate.prototype.remove(r.a.onMouseLeave,h),r.a.onMouseOver=n.ig.Delegate.prototype.remove(r.a.onMouseOver,c),r.a.onMouseDown=n.ig.Delegate.prototype.remove(r.a.onMouseDown,l),r.a.onMouseUp=n.ig.Delegate.prototype.remove(r.a.onMouseUp,a)),f!=null)&&(e=Math.round(f.width()),o=Math.round(f.height()),r.aj.css("position","relative"),r.aj.css("visibility","hidden"),u=n("<canvas style='position:absolute'><\/canvas>"),r.aj.append(u),r.af=e,r.ae=o,u.attr("width",e.toString()),u.attr("height",o.toString()),u.css("visibility","visible"),r.i().au(new t.cz(1,0,0,e,o)),r.a=new t.fl(u),r.a.ab(r.s.runOn(r)),r.a.onMouseEnter=n.ig.Delegate.prototype.combine(r.a.onMouseEnter,s),r.a.onMouseLeave=n.ig.Delegate.prototype.combine(r.a.onMouseLeave,h),r.a.onMouseOver=n.ig.Delegate.prototype.combine(r.a.onMouseOver,c),r.a.onMouseDown=n.ig.Delegate.prototype.combine(r.a.onMouseDown,l),r.a.onMouseUp=n.ig.Delegate.prototype.combine(r.a.onMouseUp,a),r.ai=u,r.a.az(r.i().au().toRect()),v=r.ai[0].getContext("2d"),r.k=new t.e5(new t.fp,v),r.aw(),r.bw(),r.i().isOpen()?r.a5():r.a4(),r.bk())},a9:function(){var n=Math.round(this.aj.width()),i=Math.round(this.aj.height());this.i().au(new t.cz(1,0,0,n,i))},a5:function(){this.j=this.i().au();this.am=this.i().af().g().k;this.bd()},a4:function(){var n=this.i().af().g(),i=this.i().centerButtonStrokeThickness()+1;this.am=n.k;this.j=new t.cz(1,Math.floor(this.am.__x-n.i)-i,Math.floor(this.am.__y-n.j)-i,Math.ceil((n.i+i)*2),Math.ceil((n.j+i)*2));this.bd()},bd:function(){var i=this.i().au(),n=this.j;this.ai!=null&&(this.ai.attr("width",n.width.toString()),this.ai.attr("height",n.height.toString()),this.ai.css("left",n.x.toString()+"px"),this.ai.css("top",n.y.toString()+"px"));this.a.az(new t.c1(0,0,0,n.width,n.height));this.bk()},bk:function(){var i=this.i(),r=this.j,e=i.af().g(),f=e.k,n,u;f.__x==this.am.__x&&f.__y==this.am.__y||i.isOpen()||this.a4();n=this.k;n.i(0,0,r.width,r.height);(r.x!=0||r.y!=0)&&(n.x(),u=new t.e2,u.h(-r.x),u.i(-r.y),n.h(u));this.bm(n,i.e9(),!0,null);this.m||(this.m=!0,i.e8().y().sort1(this.ah.runOn(this)));this.bm(n,i.e8(),!0,null);this.bm(n,i.e6(),!1,t.$f5.s(t.$ap.n(255,0,0,0)));this.bm(n,i.e7(),!1,null,this.bn.runOn(this));this.bm(n,i.e5(),!1,null,this.bl.runOn(this));(r.x!=0||r.y!=0)&&n.w()},bn:function(n,t){for(var i=this.x.getEnumerator(),r;i.moveNext();)r=i.current(),r.i(n,this.y,t.__opacity)},bl:function(n){if(this.ad!=null&&this.b4!=null&&this.bz.__visibility==1){var t=this.i().af().am();n.k(this.ad,1,t.__x-this.b4.b()/2,t.__y-this.b4.a()/2,this.b4.b(),this.b4.a())}},bm:function(i,r,u,f,e){var c,o,s,h;if(r.__opacity>0){for(r.h()!=null&&(i.x(),i.h(r.h())),r.__opacity<1&&i.aa(r.__opacity),c=r.y().getEnumerator();c.moveNext();)o=c.current(),u||n.ig.util.cast(t.$ey.$type,o)!==null?this.bo(i,o):n.ig.util.cast(t.$f8.$type,o)!==null?(s=o,i.k(s,s.__opacity,s.l(),s.m(),s.k(),s.height())):n.ig.util.cast(t.$e1.$type,o)!==null&&(h=o,h.ab()==null&&h.ab(f),i.u(h));null!=e&&e(i,r);r.__opacity<1&&i.aa(1);r.h()!=null&&i.w()}},bo:function(n,t){t.h()!=null&&(n.x(),n.h(t.h()));n.q(t);t.h()!=null&&n.w()},bv:function(){var t,n;for(this.l=!0,t=this.f.c().getEnumerator();t.moveNext();)n=t.current(),this.v.item(n.key().name())||this.i().g(n.key(),n.value());this.l=!1},aw:function(){this.f.k();this.e.k();this.g.k();this.bv()},bu:function(){this.aw();this.bw();this.i().da()},bw:function(){this.ap=this.i().font();this.y=this.z(this.ap);this.k!=null&&this.k.z(this.ap)},ak:null,bt:function(i){var r,e,s,u,f,h;if(!i.isToolTipEnabled()){this.az();return}r=this.ak;r==null&&(this.ak=r=n("<div class='ui-radialmenu-tooltip ui-corner-all'><\/div>"),r.css("position","absolute"),r.css("visibility","visible"),r.css("white-space","nowrap"),r.css("z-index","10000"),this.aj.append(r));r.children().remove();e=i.bd();e!=null&&r.append(n("<span>"+e.toString()+"<\/span>"));this.h.toolTipText(e==null?String.empty():e.toString());this.h.itemName(i.name());this.h.itemType(i.getType().typeName());for(var l=this.g.c(),o=n.ig.util.cast(t.$f9.$type,i),c=l.getEnumerator();c.moveNext();)if(s=c.current(),String.isNullOrEmpty(s.value())){u=null;f=null;switch(s.key()){case 0:u="background-color";f=o==null?"white":o.dg().__fill;break;case 5:u="padding";f="8px 11px";break;case 6:u="color";f=o==null?"#666666":o.di().__fill;break;case 1:u="border-color";f="#808080";break;case 3:u="border-width";f="2px";break;case 4:u="border-radius";f="0";break;case 2:u="border-style";f="solid"}u!=null&&this.ak.css(u,f)}h=this.ao(r);r.css("top",h.__y.toString()+"px");r.css("left",h.__x.toString()+"px")},h:null,ao:function(i){var v=this.aj[0],c=v.getBoundingClientRect(),r=new t.cz(1,c.left,c.top,c.width,c.height),u=new t.cz(1,r.x,r.y,r.width,r.height),a=document.documentElement,l=new t.cz(1,0,0,a.clientWidth,a.clientHeight),s,f,h,e,o;return this.i().isOpen()||(s=this.b5(),r=new t.cz(1,r.x+r.width/2-s.b()/2,r.y+r.height/2-s.a()/2,s.b(),s.a()),r=t.$ct.c(r,this.i().outerRingThickness(),this.i().outerRingThickness())),r=t.$ct.c(r,6,6),f=i.outerWidth(),h=i.outerHeight(),r.y-l.y>=h?(o=r.y-u.y-h,e=(r.width-f)/2+r.x-u.x):r.x+r.width+f<=l.x+l.width?(e=r.x+r.width-u.x,o=(r.height-h)/2+r.y-u.y):r.x-f>=l.x?(e=r.x-u.x-f,o=(r.height-h)/2+r.y-u.y):(o=r.y+r.height-u.y,e=(r.width-f)/2+r.x-u.x),this.h.relativeLeft(e-u.x),this.h.relativeTop(o-u.y),this.h.width(u.width),this.h.height(u.height),{__x:e,__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},az:function(){if(this.ak!=null){var n=this.ak;this.ak=null;n.remove()}},bp:function(){},q:function(){return!1},ay:function(){},bs:function(){},p:function(){return!1},b6:function(n){isNaN(this.y)&&(this.y=this.z(null));var i=this.aa(n),r=this.y;return new t.c2(i,r)},y:0,z:function(t){var i=n("<span>M<\/span>"),u=n("body"),r;return u.append(i),t!=null&&i.css("font",t),r=i.attr("offsetHeight"),isNaN(r)&&(r=i[0].offsetHeight),i.remove(),parseInt(r)},aa:function(i){var r=n.ig.util.cast(t.$e1.$type,i);return r!=null&&r.aa()!=null?this.k.d(r.aa())+0:0},br:function(){},ax:function(){},a7:function(){this.bz.__stroke=this.i().af().g().e()},al:function(n){var i=this,r=i.e.c(),t;return function(){var i=r.tryGetValue(n,t);return t=i.value,i.ret}(),t},bx:function(){return new t.e1},ah:function(n,t){var i=n.q(),r=t.q();return i<r?-1:i>r?1:0},au:function(n){this.ak!=null&&n.itemToolTip(this.h)},s:function(n){var t=this.i();return this.r()?!0:t.a7(this.an(n))},an:function(t){return(this.j.x!=0||this.j.y!=0)&&(t={__x:t.__x+this.j.x,__y:t.__y+this.j.y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),t},$type:new n.ig.Type("XamRadialMenuView",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuDOMEventProxy:fl","DOMEventProxy",{c5:null,init:function(n){this.c5=null;t.$fm.init.call(this,n)},c6:function(){return this.c5==null&&(t.$fl.c4++,this.c5=".DOMProxyRadialMenu"+t.$fl.c4.toString()),this.c5},c7:function(n){n.preventDefault()},ae:function(n,i){n==this.bq()&&this.bq().bind("contextmenu",this.c7.runOn(this));t.$fm.ae.call(this,n,i)},ax:function(n,i){this.bq()!=null&&n==this.bq()&&this.bq().unbind("contextmenu");t.$fm.ax.call(this,n,i)},af:function(){this.bq()!=null&&this.bq().unbind("contextmenu");t.$fm.af.call(this)},$type:new n.ig.Type("RadialMenuDOMEventProxy",t.$fm.$type)},!0);n.ig.util.defType("TextContainer:e4","Object",{f:null,a:null,b:null,i:null,init:function(){n.ig.$op.init.call(this)},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},g:function(n){return arguments.length===1?(this.f!=n&&(this.f=n,this.a=null,this.b=null),n):this.f},h:function(n,t,i,r){var f=n.e(),o=this.c(),h,e,u,s;if(o!=null)for(h=this.e(f.measureText.runOn(f)),e=i,f.fillStyle=this.j().__fill,f.textBaseline="top",u=0,s=o.length;u<s;u++){switch(this.i){case 0:case 3:i=e;break;case 2:i=e-this.b[u];break;case 1:i=e-this.b[u]/2}f.fillText(o[u],i,r);r+=t}},e:function(n){var f=0,t=this.b,r,i,e,u,o;if(t==null&&(r=this.c(),r!=null))for(this.b=t=new Array(r.length),i=0,e=t.length;i<e;i++)t[i]=n(r[i]).width;if(t!=null)for(u=0,o=t.length;u<o;u++)f+=t[u];return f},d:function(n){var t=0,i=this.c();return i!=null&&(t+=i.length*n),t},c:function(){return this.a==null&&this.f!=null&&(this.a=this.f.split("\n")),this.a},$type:new n.ig.Type("TextContainer",n.ig.$ot)},!0);n.ig.util.defType("ImageManager:fj","Object",{c:null,b:null,init:function(){n.ig.$op.init.call(this);this.c=new t.dc(String,t.$fi.$type,0);this.b=new t.dc(t.$fi.$type,t.$bs.$type.specialize(t.$b7.$type.specialize(t.$fi.$type)),0)},d:function(i,r){var f=this,u,o,s,h,e;return function(){var n=f.c.tryGetValue(i,u);return u=n.value,n.ret}()||(o=n("<img />"),u=o[0],u.src=i,u.complete||(s=f,h=o,h.bind("load readystatechange",function(n){(this.complete||this.readyState=="complete"&&n.type=="readystatechange")&&s.downloadCompleted(this)}))),r!=null&&(u.complete?window.setTimeout(function(){return r(u)},0):(function(){var n=f.b.tryGetValue(u,e);return e=n.value,n.ret}()||f.b.item(u,e=new t.bs(t.$b7.$type.specialize(t.$fi.$type),0)),e.add(r))),u},downloadCompleted:function(t){var u=this,f,i,r,e;if(t.complete&&(f=n(t),f.unbind("load readystatechange"),function(){var n=u.b.tryGetValue(t,i);return i=n.value,n.ret}()))for(u.b.remove(t),r=0,e=i.count();r<e;r++)i.__inner[r](t)},$type:new n.ig.Type("ImageManager",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuItemOverlayTemplates:h7","Object",{staticInit:function(){var i=new t.cd,n;i.measure(t.$h7.a);i.render(t.$h7.c);t.$h7.e=i;n=new t.cd;n.measure(t.$h7.a);n.render(t.$h7.b);t.$h7.d=n},a:function(n){n.width<20&&(n.width=20);n.height<20&&(n.height=20)},b:function(n){var e=n.data,i=e.iconOverlayValue(),u;if(i!=null&&i.f()>0){var o=new t.e5(new t.fp,n.context),r=new t.ey,f=new t.fw;f.d(new t.c1(0,n.xPosition,n.yPosition+n.availableHeight-5,n.availableWidth,5));r.ak(f);u=new t.bp;u.color(i);r.__fill=u;o.q(r)}},c:function(n){var r=n.data,u=r.iconOverlayValue(),f,i,e;u!=null&&(f=new t.e5(new t.fp,n.context),i=new t.e1,i.aa(u.toString()),i.ab(r.bb(t.$a0.foregroundProperty)),e=r.menu().al().b6(i),i.l(n.xPosition+n.availableWidth-e.b()+8),i.m(n.yPosition-8),f.u(i))},$type:new n.ig.Type("RadialMenuItemOverlayTemplates",n.ig.$ot)},!0);n.ig.util.defType("RadialMenuItemView:e3","Object",{a:null,d:null,g:null,q:null,e:null,p:null,init:function(i,r){n.ig.$op.init.call(this);this.a=i;this.e=r;n.ig.util.cast(t.$dp.$type,i)!==null&&(this.d=new t.e4,this.d.i=1,this.d.j(i.bb(t.$a0.foregroundProperty)),this.m(),this.n(),this.o());this.f=i.isEnabled();i.propertyChanged=n.ig.Delegate.prototype.combine(i.propertyChanged,this.l.runOn(this))},item:function(){return this.a},c:null,f:!1,h:function(){this.a.propertyChanged=n.ig.Delegate.prototype.remove(this.a.propertyChanged,this.l.runOn(this))},i:function(n,t,i){var u=this.c.h,o,r,f,e,s;o=r=f=0;this.d==null||String.isNullOrEmpty(this.d.g())||(o=this.d.d(t));e=this.r(n);e!=null&&(f=e.a());this.q!=null&&(r=this.q.height());var h=o+Math.max(f,r),l=(f-r)/2,c=i*(this.f?1:.3),a=n.e();c<1&&(a.globalAlpha=c);r>0&&(s=this.q.width(),n.l(this.g,1,this.q.x(),this.q.y(),s,r,u.__x-s/2,u.__y-h/2+Math.max(l,0),s,r));f>0&&this.j(n,u.__x-e.b()/2,u.__y-h/2-Math.min(l,0),e.b(),e.a());o>0&&this.d.h(n,t,u.__x,u.__y-h/2+Math.max(f,r));c<1&&(a.globalAlpha=1)},j:function(n,i,r,u,f){var e=new t.cf;e.context=n.e();e.data=this.a;e.xPosition=i;e.yPosition=r;e.availableWidth=u;e.availableHeight=f;this.p.render()(e)},r:function(n){if(this.p!=null){var i=new t.ci;return i.context=n.e(),i.data=this.a,this.q!=null&&(i.width=this.q.width(),i.height=this.q.height()),this.p.measure()!=null&&this.p.measure()(i),new t.c2(i.width,i.height)}return null},k:function(n){if(n==this.g){var i=n;this.q=new t.c1(0,0,0,i.width,i.height);this.e.i().da()}},l:function(n,i){switch(i.propertyName()){case"Foreground":this.d!=null&&(this.d.j(this.a.bb(t.$a0.foregroundProperty)),this.e.bq());break;case"IsEnabled":this.f=this.a.isEnabled();this.e.bq();break;case"Header":this.m();break;case"IconUri":this.n();break;case"IconOverlay":this.o();break;case"IconOverlayValue":this.e.bq()}},m:function(){var r=null,u=n.ig.util.cast(t.$dp.$type,this.item()),i;u!=null&&(i=u.header(),i!=null&&(r=i.toString()));this.d.g(r);this.e.bq()},n:function(){var n=this.a.iconUri();this.g=String.isNullOrEmpty(n)?null:t.$fj.a.d(n,this.k.runOn(this));this.e.bq()},o:function(){if(n.ig.util.cast(t.$dp.$type,this.a)!==null){var i=this.a;this.p=i.iconOverlay()!=null?i.iconOverlay():null;this.e.bq()}},$type:new n.ig.Type("RadialMenuItemView",n.ig.$ot)},!0);n.ig.util.defType("CssPropCacheBase$2:et","Object",{$tProp:null,$tValue:null,b:null,e:null,f:null,a:null,d:null,init:function(t,i,r,u){this.$tProp=t;this.$tValue=i;this.$type=this.$type.specialize(this.$tProp,this.$tValue);n.ig.$op.init.call(this);this.a=r;this.d=u},g:function(n){return arguments.length===1?(this.e=n,this.b=null,null!=this.f&&this.f.remove(),n):this.e},c:function(){return this.b==null&&this.k(),this.b},k:function(){var r,n,i;this.f==null&&this.e!=null&&(this.f=t.$eu.g(),r=this.e,r.append(this.f));n=new t.dc(this.$tProp,String,0);this.j(this.a,n);i=new t.dc(this.$tProp,this.$tValue,0);this.i(this.a,i,n);this.b=i;this.f!=null&&(this.f.remove(),this.f=null)},i:function(n,t,i){var f,s,u,h;for(this.f!=null&&this.f.addClass(n.f),f=n.d.getEnumerator();f.moveNext();){var e=f.current(),o=e.key(),r=this.h(this.f,e.value().a());(r==null||r.length==0||r==i.item(o))&&(r=e.value().b());s=this.d(o,r);t.item(o,s)}for(u=0,h=n.e.count();u<h;u++)this.i(n.e.__inner[u],t,i);this.f!=null&&this.f.removeClass(n.f)},h:function(n,i){var r=null,u=null;if(n!=null){switch(i){case 0:r="background-color";break;case 1:r="border-top-color";break;case 2:r="border-top-style";break;case 3:r="border-top-width";break;case 4:r="border-top-left-radius";break;case 6:r="color";break;case 7:u=t.$ev.c(n);break;case 5:r="padding-top";break;default:return t.$dk.b(!1,"Unrecognized css property:"+i.toString()),null}r!=null&&(u=n.css(r))}return u},j:function(n,t){for(var u=n.d.getEnumerator(),r,i,f;u.moveNext();)r=u.current(),t.item(r.key(),this.h(this.f,r.value().a()));for(i=0,f=n.e.count();i<f;i++)this.j(n.e.__inner[i],t)},$type:new n.ig.Type("CssPropCacheBase$2",n.ig.$ot)},!0);n.ig.util.defType("CssPropCache$1:ex","CssPropCacheBase$2",{$tPropertyId:null,init:function(n,i){this.$tPropertyId=n;this.$type=this.$type.specialize(this.$tPropertyId);t.$et.init.call(this,this.$tPropertyId,String,i,t.$ex.l)},l:function(n,t){return t},$type:new n.ig.Type("CssPropCache$1",t.$et.$type.specialize(0,1))},!0);n.ig.util.defType("CssDpCache:es","CssPropCacheBase$2",{init:function(i){t.$et.init.call(this,t.$a8.$type,n.ig.$op.$type,i,t.$es.l)},l:function(n,i){var r=null,u,f,e;return i!=null&&(u=n.propertyType(),u==t.$bp.$type?(f=new t.bp,f.__fill=i,r=f):u===Number?r=parseInt(i,10):u==t.$ap.$type&&(e=new t.ap,e.colorString(i),r=e)),r},$type:new n.ig.Type("CssDpCache",t.$et.$type.specialize(t.$a8.$type,n.ig.$op.$type))},!0);n.ig.util.defType("BindingExpression:h8","Object",{a:null,c:null,d:null,init:function(i,r,u,f){var o,e;for(n.ig.$op.init.call(this),this.c=u,this.d=f,o=r.split("."),this.a=new Array(o.length),e=0;e<o.length;e++)this.a[e]=new t.h9(o[e]),e>0&&this.a[e-1].childStep(this.a[e]);this.a[this.a.length-1].propertyChanged=n.ig.Delegate.prototype.combine(this.a[this.a.length-1].propertyChanged,this.b.runOn(this));this.a[0].source(i)},b:function(n,i){if(i.propertyName()=="Value"){var r=this.a[this.a.length-1].value();r==t.$a8.c?this.c.e(this.d):this.c.g(this.d,r)}},$type:new n.ig.Type("BindingExpression",n.ig.$ot)},!0);n.ig.util.defType("PropertyStep:h9","Object",{g:null,c:null,d:null,a:null,init:function(t){n.ig.$op.init.call(this);this.g=t},childStep:function(n){return arguments.length===1?(this.a!=n&&(this.a!=null&&this.a.source(null),this.a=n,this.a!=null&&this.a.source(this.value())),n):this.a},source:function(i){return arguments.length===1?(this.c!=i&&(n.ig.util.cast(t.$bm.$type,this.c)!==null&&(this.c.propertyChanged=n.ig.Delegate.prototype.remove(this.c.propertyChanged,this.i.runOn(this))),this.c=i,n.ig.util.cast(t.$bm.$type,i)!==null&&(i.propertyChanged=n.ig.Delegate.prototype.combine(i.propertyChanged,this.i.runOn(this))),this.h("Source"),this.j()),i):this.c},value:function(n){return arguments.length===1?(this.d!=n&&(this.d=n,this.a!=null&&this.a.source(n),this.h("Value")),n):this.d},h:function(n){var i=this.propertyChanged;null!=i&&i(this,new t.bo(n))},i:function(n,t){(String.isNullOrEmpty(t.propertyName())||t.propertyName()==this.g||t.propertyName().length==this.g.length&&t.propertyName().toLowerCase()==this.g.toLowerCase())&&this.j()},j:function(){if(this.c==null)this.value(t.$a8.c);else if(String.isNullOrEmpty(this.g))this.value(this.c);else{var n=this.c,i=this.g;this.value(n[i]())}},propertyChanged:null,$type:new n.ig.Type("PropertyStep",n.ig.$ot,[t.$bm.$type])},!0);t.$en.backgroundColor=0;t.$en.borderTopColor=1;t.$en.borderTopStyle=2;t.$en.borderTopWidth=3;t.$en.borderTopLeftRadius=4;t.$en.paddingTop=5;t.$en.color=6;t.$en.font=7;t.$ak.none=0;t.$ak.checkBox=1;t.$ak.radioButton=2;t.$ak.radioButtonAllowAllUp=3;t.$aj.asChildren=0;t.$aj.asSiblingsWhenChecked=1;t.$aj.none=2;t.$ai.none=0;t.$ai.toolAreaClick=1;t.$ai.navigateToChildren=2;t.$ah.none=0;t.$ah.expandCollapse=1;t.$ah.navigateMenu=2;t.$ah.navigateToChildColor=3;t.$ah.navigateToParentColor=4;t.$ag.none=0;t.$ag.outerRingButton=1;t.$ag.toolArea=2;t.$ag.centerButton=3;t.$ag.disabledMenu=4;t.$af.menu=0;t.$af.outerRing=1;t.$af.innerRingFocus=2;t.$af.innerRing=3;t.$ae.outerRing=0;t.$ae.toolArea=1;t.$ae.toolCheckmark=2;t.$ae.toolHighlight=3;t.$ae.outerRingArrow=4;t.$ae.colorWellPreview=5;t.$ad.none=0;t.$ad.invalidateCustomVisuals=1;t.$ad.renderFrame=2;t.$ad.prepareFrame=3;t.$ac.noChange=0;t.$ac.updateShapes=1;t.$ac.updateTextElements=2;t.$a0.bg="DirtyCustomVisuals";t.$a0.bp="InvalidateCustomVisuals";t.$a0.be="AutoRotateChildren";t.$a0.autoRotateChildrenProperty=t.$a8.i("AutoRotateChildren",t.$d.$type,t.$a0.$type,new t.a9(2,!0,function(n,t){n.cc("AutoRotateChildren",t.d(),t.c())}));t.$a0.bf="CheckedHighlightBrush";t.$a0.checkedHighlightBrushProperty=t.$a8.i("CheckedHighlightBrush",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("CheckedHighlightBrush",t.d(),t.c())}));t.$a0.bi="Foreground";t.$a0.foregroundProperty=t.$a8.i("Foreground",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cb("Foreground",t.d(),t.c())}));t.$a0.bj="HighlightBrush";t.$a0.highlightBrushProperty=t.$a8.i("HighlightBrush",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("HighlightBrush",t.d(),t.c())}));t.$a0.bk="InnerAreaFill";t.$a0.innerAreaFillProperty=t.$a8.i("InnerAreaFill",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("InnerAreaFill",t.d(),t.c())}));t.$a0.bl="InnerAreaHotTrackFill";t.$a0.innerAreaHotTrackFillProperty=t.$a8.i("InnerAreaHotTrackFill",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("InnerAreaHotTrackFill",t.d(),t.c())}));t.$a0.bm="InnerAreaHotTrackStroke";t.$a0.innerAreaHotTrackStrokeProperty=t.$a8.i("InnerAreaHotTrackStroke",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("InnerAreaHotTrackStroke",t.d(),t.c())}));t.$a0.bn="InnerAreaStroke";t.$a0.innerAreaStrokeProperty=t.$a8.i("InnerAreaStroke",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("InnerAreaStroke",t.d(),t.c())}));t.$a0.bo="InnerAreaStrokeThickness";t.$a0.innerAreaStrokeThicknessProperty=t.$a8.i("InnerAreaStrokeThickness",Number,t.$a0.$type,new t.a9(2,1,function(n,t){n.cc("InnerAreaStrokeThickness",t.d(),t.c())}));t.$a0.bq="IsEnabled";t.$a0.isEnabledProperty=t.$a8.i("IsEnabled",t.$d.$type,t.$a0.$type,new t.a9(2,!0,function(n,t){n.cc("IsEnabled",t.d(),t.c())}));t.$a0.br="IsToolTipEnabled";t.$a0.isToolTipEnabledProperty=t.$a8.i("IsToolTipEnabled",t.$d.$type,t.$a0.$type,new t.a9(2,!0,function(n,t){n.cc("IsToolTipEnabled",t.d(),t.c())}));t.$a0.bs="Menu";t.$a0.menuProperty=t.$a8.i("Menu",t.$bq.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("Menu",t.d(),t.c())}));t.$a0.bv="OuterRingButtonHotTrackFill";t.$a0.outerRingButtonHotTrackFillProperty=t.$a8.i("OuterRingButtonHotTrackFill",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("OuterRingButtonHotTrackFill",t.d(),t.c())}));t.$a0.bw="OuterRingButtonHotTrackForeground";t.$a0.outerRingButtonHotTrackForegroundProperty=t.$a8.i("OuterRingButtonHotTrackForeground",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("OuterRingButtonHotTrackForeground",t.d(),t.c())}));t.$a0.bx="OuterRingButtonHotTrackStroke";t.$a0.outerRingButtonHotTrackStrokeProperty=t.$a8.i("OuterRingButtonHotTrackStroke",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("OuterRingButtonHotTrackStroke",t.d(),t.c())}));t.$a0.bt="OuterRingButtonFill";t.$a0.outerRingButtonFillProperty=t.$a8.i("OuterRingButtonFill",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("OuterRingButtonFill",t.d(),t.c())}));t.$a0.bu="OuterRingButtonForeground";t.$a0.outerRingButtonForegroundProperty=t.$a8.i("OuterRingButtonForeground",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("OuterRingButtonForeground",t.d(),t.c())}));t.$a0.by="OuterRingButtonStroke";t.$a0.outerRingButtonStrokeProperty=t.$a8.i("OuterRingButtonStroke",t.$bp.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("OuterRingButtonStroke",t.d(),t.c())}));t.$a0.bz="OuterRingButtonStrokeThickness";t.$a0.outerRingButtonStrokeThicknessProperty=t.$a8.i("OuterRingButtonStrokeThickness",Number,t.$a0.$type,new t.a9(2,1,function(n,t){n.cc("OuterRingButtonStrokeThickness",t.d(),t.c())}));t.$a0.b1="ParentItem";t.$a0.parentItemProperty=t.$a8.i("ParentItem",t.$a0.$type,t.$a0.$type,new t.a9(2,null,function(n,t){n.cc("ParentItem",t.d(),t.c())}));t.$a0.b2="ToolTip";t.$a0.toolTipProperty=t.$a8.i("ToolTip",n.ig.$op.$type,t.$a0.$type,new t.a9(2,null,function(n){n.cc("ToolTipResolved",null,null)}));t.$a0.b5="WedgeIndex";t.$a0.wedgeIndexProperty=t.$a8.i("WedgeIndex",n.ig.Number.prototype.$type,t.$a0.$type,new t.a9(2,-1,function(n,t){n.cc("WedgeIndex",t.d(),t.c())}));t.$a0.b6="WedgeSpan";t.$a0.wedgeSpanProperty=t.$a8.i("WedgeSpan",n.ig.Number.prototype.$type,t.$a0.$type,new t.a9(2,1,function(n,i){if(i.c()<=0)throw new t.hv(0,"WedgeSpan");n.cc("WedgeSpan",i.d(),i.c())}));t.$a0.bh="DisplayAsChecked";t.$a0.b0="OuterRingButtonType";t.$a0.b3="ToolTipResolved";t.$a0.b4="VisibilityProxy";t.$a0.cz=t.$a8.i("VisibilityProxy",t.$bh.$type,t.$a0.$type,new t.a9(2,0,function(n,t){n.cc("VisibilityProxy",t.d(),t.c())}));t.$a0.staticInit&&!t.$a0.radialMenuItemBaseStaticInitCalled&&(t.$a0.staticInit(),t.$a0.radialMenuItemBaseStaticInitCalled=!0);t.$dp.d9="AutoUpdateRecentItem";t.$dp.autoUpdateRecentItemProperty=t.$a8.i("AutoUpdateRecentItem",t.$d.$type,t.$dp.$type,new t.a9(2,!0,function(n,t){n.cc("AutoUpdateRecentItem",t.d(),t.c())}));t.$dp.eb="ChildItemPlacement";t.$dp.childItemPlacementProperty=t.$a8.i("ChildItemPlacement",t.$aj.$type,t.$dp.$type,new t.a9(2,0,function(n,t){n.cc("ChildItemPlacement",t.d(),t.c())}));t.$dp.ea="CheckBehavior";t.$dp.checkBehaviorProperty=t.$a8.i("CheckBehavior",t.$ak.$type,t.$dp.$type,new t.a9(2,0,function(n,t){n.cc("CheckBehavior",t.d(),t.c())}));t.$dp.ej="IsChecked";t.$dp.isCheckedProperty=t.$a8.i("IsChecked",t.$d.$type,t.$dp.$type,new t.a9(2,!1,function(n,t){n.cc("IsChecked",t.d(),t.c())}));t.$dp.ed="GroupName";t.$dp.groupNameProperty=t.$a8.i("GroupName",String,t.$dp.$type,new t.a9(2,null,function(n,t){n.cc("GroupName",t.d(),t.c())}));t.$dp.ee="Header";t.$dp.headerProperty=t.$a8.i("Header",n.ig.$op.$type,t.$dp.$type,new t.a9(2,null,function(n,t){n.cc("Header",t.d(),t.c())}));t.$dp.ei="IconUri";t.$dp.iconUriProperty=t.$a8.i("IconUri",String,t.$dp.$type,new t.a9(2,null,function(n,t){n.cb("IconUri",t.d(),t.c())}));t.$dp.ef="IconOverlay";t.$dp.iconOverlayProperty=t.$a8.i("IconOverlay",t.$cd.$type,t.$dp.$type,new t.a9(2,null,function(n,t){n.cc("IconOverlay",t.d(),t.c())}));t.$dp.eg="IconOverlayValue";t.$dp.iconOverlayValueProperty=t.$a8.i("IconOverlayValue",n.ig.$op.$type,t.$dp.$type,new t.a9(2,null,function(n,t){n.cc("IconOverlayValue",t.d(),t.c())}));t.$dp.el="KeyTip";t.$dp.keyTipProperty=t.$a8.i("KeyTip",String,t.$dp.$type,new t.a9(2,null,function(n,t){n.cc("KeyTip",t.d(),t.c())}));t.$dp.en="RecentItem";t.$dp.recentItemProperty=t.$a8.i("RecentItem",n.ig.$op.$type,t.$dp.$type,new t.a9(2,null,function(n,t){n.cc("RecentItem",t.d(),t.c())}));t.$dp.em="RecentItemContainer";t.$dp.recentItemContainerProperty=t.$a8.i("RecentItemContainer",n.ig.$op.$type,t.$dp.$type,new t.a9(2,null,t.$dp.er));t.$dp.staticInit&&!t.$dp.radialMenuItemStaticInitCalled&&(t.$dp.staticInit(),t.$dp.radialMenuItemStaticInitCalled=!0);t.$ga.fa="Color";t.$ga.colorProperty=t.$a8.i("Color",t.$ap.$type,t.$ga.$type,new t.a9(2,t.$ap.n(0,0,0,0),function(n,t){n.cc("Color",t.d(),t.c())}));t.$ga.fc="ComputedColorName";t.$ga.computedColorNameProperty=t.$a8.i("ComputedColorName",String,t.$ga.$type,new t.a9(2,null,function(n,t){n.cc("ComputedColorName",t.d(),t.c())}));t.$hx.eb="PendingValue";t.$hx.pendingValueProperty=t.$a8.i("PendingValue",Number,t.$hx.$type,new t.a9(2,NaN,function(n,i){var r=n,u;r.cc("PendingValue",i.d(),i.c());u=r.pendingValueChanged;null!=u&&u(r,new t.an(i.d(),i.c()))}));t.$hx.ea="PendingValueNeedleBrush";t.$hx.pendingValueNeedleBrushProperty=t.$a8.i("PendingValueNeedleBrush",t.$bp.$type,t.$hx.$type,new t.a9(2,null,function(n,t){n.cc("PendingValueNeedleBrush",t.d(),t.c())}));t.$hx.ec="ReserveFirstSlice";t.$hx.reserveFirstSliceProperty=t.$a8.i("ReserveFirstSlice",t.$d.$type,t.$hx.$type,new t.a9(2,!0,function(n,t){n.cc("ReserveFirstSlice",t.d(),t.c())}));t.$hx.ed="SmallIncrement";t.$hx.smallIncrementProperty=t.$a8.i("SmallIncrement",Number,t.$hx.$type,new t.a9(2,1,function(n,t){n.cc("SmallIncrement",t.d(),t.c())}));t.$hx.ee="TickBrush";t.$hx.tickBrushProperty=t.$a8.i("TickBrush",t.$bp.$type,t.$hx.$type,new t.a9(2,null,function(n,t){n.cc("TickBrush",t.d(),t.c())}));t.$hx.ef="Ticks";t.$hx.ticksProperty=t.$a8.i("Ticks",t.$e0.$type,t.$hx.$type,new t.a9(2,null,function(n,t){n.cc("Ticks",t.d(),t.c())}));t.$hx.eh="TrackStartColor";t.$hx.trackStartColorProperty=t.$a8.i("TrackStartColor",t.$ap.$type,t.$hx.$type,new t.a9(2,t.$ap.n(0,0,0,0),function(n,t){n.cc("TrackStartColor",t.d(),t.c())}));t.$hx.eg="TrackEndColor";t.$hx.trackEndColorProperty=t.$a8.i("TrackEndColor",t.$ap.$type,t.$hx.$type,new t.a9(2,t.$ap.n(255,0,0,0),function(n,t){n.cc("TrackEndColor",t.d(),t.c())}));t.$hx.ej="Value";t.$hx.valueProperty=t.$a8.i("Value",Number,t.$hx.$type,new t.a9(2,NaN,function(n,i){var r=n,u;r.cc("Value",i.d(),i.c());u=r.valueChanged;null!=u&&u(r,new t.an(i.d(),i.c()))}));t.$hx.ei="ValueNeedleBrush";t.$hx.valueNeedleBrushProperty=t.$a8.i("ValueNeedleBrush",t.$bp.$type,t.$hx.$type,new t.a9(2,null,function(n,t){n.cc("ValueNeedleBrush",t.d(),t.c())}));t.$hx.staticInit&&!t.$hx.radialMenuNumericGaugeStaticInitCalled&&(t.$hx.staticInit(),t.$hx.radialMenuNumericGaugeStaticInitCalled=!0);t.$h5.fb="Value";t.$h5.valueProperty=t.$a8.i("Value",Number,t.$h5.$type,new t.a9(2,NaN,function(n,i){var r=n,u;r.cc("Value",i.d(),i.c());u=r.valueChanged;null!=u&&u(r,new t.an(i.d(),i.c()))}));t.$h5.staticInit&&!t.$h5.radialMenuNumericItemStaticInitCalled&&(t.$h5.staticInit(),t.$h5.radialMenuNumericItemStaticInitCalled=!0);t.$f5.i=0;t.$f5.l=100;t.$f5.n=200;t.$f5.o=300;t.$f5.p=500;t.$f5.m=600;t.$f5.q=700;t.$f5.r=800;t.$f5.j=900;t.$f5.k=1e3;t.$f5.h=1100;t.$f5.y=function(){var n=new t.ap;return n.colorString("transparent"),n}();t.$f5.v=function(){var n=new t.ap;return n.colorString("black"),n}();t.$f5.z=function(){var n=new t.ap;return n.colorString("white"),n}();t.$f5.t=function(){var n=new t.bp;return n.color(t.$f5.y),n}();t.$f5.a=null;t.$f5.staticInit&&!t.$f5.radialMenuUtilitiesStaticInitCalled&&(t.$f5.staticInit(),t.$f5.radialMenuUtilitiesStaticInitCalled=!0);t.$ct.o=3.14159265358979*2;t.$ct.m=Math.sqrt(2);t.$bq.bm=5;t.$bq.bw=5;t.$bq.bq=2;t.$bq.bv=3.14159265358979/180*.5;t.$bq.bp=-1;t.$bq.bo=.3;t.$bq.b0=250;t.$bq.by=1e3;t.$bq.cf="CenterButtonContentWidth";t.$bq.centerButtonContentWidthProperty=t.$a8.i("CenterButtonContentWidth",Number,t.$bq.$type,new t.a9(2,28,function(n,t){n.d5("CenterButtonContentWidth",t.d(),t.c())}));t.$bq.cd="CenterButtonContentHeight";t.$bq.centerButtonContentHeightProperty=t.$a8.i("CenterButtonContentHeight",Number,t.$bq.$type,new t.a9(2,28,function(n,t){n.d5("CenterButtonContentHeight",t.d(),t.c())}));t.$bq.cb="CenterButtonClosedFill";t.$bq.centerButtonClosedFillProperty=t.$a8.i("CenterButtonClosedFill",t.$bp.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("CenterButtonClosedFill",t.d(),t.c())}));t.$bq.cc="CenterButtonClosedStroke";t.$bq.centerButtonClosedStrokeProperty=t.$a8.i("CenterButtonClosedStroke",t.$bp.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("CenterButtonClosedStroke",t.d(),t.c())}));t.$bq.cg="CenterButtonFill";t.$bq.centerButtonFillProperty=t.$a8.i("CenterButtonFill",t.$bp.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("CenterButtonFill",t.d(),t.c())}));t.$bq.ch="CenterButtonHotTrackFill";t.$bq.centerButtonHotTrackFillProperty=t.$a8.i("CenterButtonHotTrackFill",t.$bp.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("CenterButtonHotTrackFill",t.d(),t.c())}));t.$bq.ci="CenterButtonHotTrackStroke";t.$bq.centerButtonHotTrackStrokeProperty=t.$a8.i("CenterButtonHotTrackStroke",t.$bp.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("CenterButtonHotTrackStroke",t.d(),t.c())}));t.$bq.ce="CenterButtonContent";t.$bq.centerButtonContentProperty=t.$a8.i("CenterButtonContent",n.ig.$op.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("CenterButtonContent",t.d(),t.c())}));t.$bq.ck="CenterButtonKeyTip";t.$bq.centerButtonKeyTipProperty=t.$a8.i("CenterButtonKeyTip",String,t.$bq.$type,new t.a9(2,"0",function(n,t){n.d5("CenterButtonKeyTip",t.d(),t.c())}));t.$bq.cl="CenterButtonStroke";t.$bq.centerButtonStrokeProperty=t.$a8.i("CenterButtonStroke",t.$bp.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("CenterButtonStroke",t.d(),t.c())}));t.$bq.cm="CenterButtonStrokeThickness";t.$bq.centerButtonStrokeThicknessProperty=t.$a8.i("CenterButtonStrokeThickness",Number,t.$bq.$type,new t.a9(2,0,function(n,t){n.d5("CenterButtonStrokeThickness",t.d(),t.c())}));t.$bq.cn="CurrentOpenMenuItem";t.$bq.currentOpenMenuItemProperty=t.$a8.i("CurrentOpenMenuItem",n.ig.$op.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("CurrentOpenMenuItem",t.d(),t.c())}));t.$bq.cp="Font";t.$bq.fontProperty=t.$a8.i("Font",String,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("Font",t.d(),t.c())}));t.$bq.cq="IsOpen";t.$bq.isOpenProperty=t.$a8.i("IsOpen",t.$d.$type,t.$bq.$type,new t.a9(2,!1,function(n,t){n.d5("IsOpen",t.d(),t.c())}));t.$bq.cr="KeyTipTemplate";t.$bq.keyTipTemplateProperty=t.$a8.i("KeyTipTemplate",t.$cd.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("KeyTipTemplate",t.d(),t.c())}));t.$bq.cs="MenuBackground";t.$bq.menuBackgroundProperty=t.$a8.i("MenuBackground",t.$bp.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("MenuBackground",t.d(),t.c())}));t.$bq.ct="MenuItemOpenCloseAnimationDuration";t.$bq.menuItemOpenCloseAnimationDurationProperty=t.$a8.i("MenuItemOpenCloseAnimationDuration",n.ig.Number.prototype.$type,t.$bq.$type,new t.a9(2,250,function(n,t){n.d5("MenuItemOpenCloseAnimationDuration",t.d(),t.c())}));t.$bq.cu="MenuItemOpenCloseAnimationEasingFunction";t.$bq.menuItemOpenCloseAnimationEasingFunctionProperty=t.$a8.i(t.$bq.cu,t.$d5.$type.specialize(Number,Number),t.$bq.$type,new t.a9(2,null,function(n,i){n.d5(t.$bq.cu,i.d(),i.c())}));t.$bq.cv="MenuOpenCloseAnimationDuration";t.$bq.menuOpenCloseAnimationDurationProperty=t.$a8.i("MenuOpenCloseAnimationDuration",n.ig.Number.prototype.$type,t.$bq.$type,new t.a9(2,250,function(n,t){n.d5("MenuOpenCloseAnimationDuration",t.d(),t.c())}));t.$bq.cw="MenuOpenCloseAnimationEasingFunction";t.$bq.menuOpenCloseAnimationEasingFunctionProperty=t.$a8.i("MenuOpenCloseAnimationEasingFunction",t.$d5.$type.specialize(Number,Number),t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("MenuOpenCloseAnimationEasingFunction",t.d(),t.c())}));t.$bq.cx="MinWedgeCount";t.$bq.minWedgeCountProperty=t.$a8.i("MinWedgeCount",n.ig.Number.prototype.$type,t.$bq.$type,new t.a9(2,8,function(n,t){n.d5("MinWedgeCount",t.d(),t.c())}));t.$bq.cy="OuterRingFill";t.$bq.outerRingFillProperty=t.$a8.i("OuterRingFill",t.$bp.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("OuterRingFill",t.d(),t.c())}));t.$bq.c1="OuterRingThickness";t.$bq.outerRingThicknessProperty=t.$a8.i("OuterRingThickness",Number,t.$bq.$type,new t.a9(2,26,function(n,t){n.d5("OuterRingThickness",t.d(),t.c())}));t.$bq.cz="OuterRingStroke";t.$bq.outerRingStrokeProperty=t.$a8.i("OuterRingStroke",t.$bp.$type,t.$bq.$type,new t.a9(2,null,function(n,t){n.d5("OuterRingStroke",t.d(),t.c())}));t.$bq.c0="OuterRingStrokeThickness";t.$bq.outerRingStrokeThicknessProperty=t.$a8.i("OuterRingStrokeThickness",Number,t.$bq.$type,new t.a9(2,0,function(n,t){n.d5("OuterRingStrokeThickness",t.d(),t.c())}));t.$bq.c3="RotationInDegrees";t.$bq.rotationInDegreesProperty=t.$a8.i("RotationInDegrees",Number,t.$bq.$type,new t.a9(2,-90,function(n,t){n.d5("RotationInDegrees",t.d(),t.c())}));t.$bq.c2="RotationAsPercentageOfWedge";t.$bq.rotationAsPercentageOfWedgeProperty=t.$a8.i("RotationAsPercentageOfWedge",Number,t.$bq.$type,new t.a9(2,-.5,function(n,t){n.d5("RotationAsPercentageOfWedge",t.d(),t.c())}));t.$bq.c4="WedgePaddingInDegrees";t.$bq.wedgePaddingInDegreesProperty=t.$a8.i("WedgePaddingInDegrees",Number,t.$bq.$type,new t.a9(2,0,function(n,t){n.d5("WedgePaddingInDegrees",t.d(),t.c())}));t.$bq.staticInit&&!t.$bq.xamRadialMenuStaticInitCalled&&(t.$bq.staticInit(),t.$bq.xamRadialMenuStaticInitCalled=!0);t.$ds.d=null;t.$ds.c=null;t.$ds.b=null;t.$ds.ag=null;t.$ds.ab=0;t.$ds.staticInit&&!t.$ds.xamRadialMenuViewStaticInitCalled&&(t.$ds.staticInit(),t.$ds.xamRadialMenuViewStaticInitCalled=!0);t.$fl.c4=0;t.$fj.a=new t.fj;t.$h7.e=null;t.$h7.d=null;t.$h7.staticInit&&!t.$h7.radialMenuItemOverlayTemplatesStaticInitCalled&&(t.$h7.staticInit(),t.$h7.radialMenuItemOverlayTemplatesStaticInitCalled=!0);n.ig.util.extCopy(n.ig.KeyTipExtensions,[[[n.ig.String],["toUpper"]],[[n.ig.Number],["toString1"]]]);n.ig.util.extCopy(n.ig.LiteRectExtensions,[[[n.ig.LiteRect],["toRect","isEqual","isEmpty"]]]);n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper,n.ig.RearrangedList$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["ofType$1","cast$1"]]]);n.ig.util.extCopy(n.ig.ArrayUtil,[[[n.ig.EdgeClipper,n.ig.RearrangedList$1],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);n.ig.util.extCopy(n.ig.BrushUtil,[[[],["getLightened"]]]);n.ig.util.extCopy(n.ig.ColorUtil,[[[],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);n.ig.util.extCopy(n.ig.Extensions,[[[],["reset1"]],[[],["reset"]],[[],["detach"]],[[],["transferChildrenTo"]],[[],["isPlottable"]],[[],["isPlottable1"]]]);n.ig.util.extCopy(n.ig.PathFigureUtil,[[[],["duplicate1"]],[[],["duplicate"]]]);n.ig.util.extCopy(n.ig.PointCollectionUtil,[[[n.ig.RearrangedList$1],["flattenTo","getBounds2","clipTo"]],[[n.ig.RearrangedList$1],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[],["getBounds3","getBounds4","toPointCollections"]]]);n.ig.util.extCopy(n.ig.RectUtil,[[[],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["MorphSegment:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","List$1:x","IList$1:y","ICollection$1:z","IEnumerable$1:aa","IEnumerable:ab","IEnumerator:ac","IEnumerator$1:ad","IArrayList:ae","Array:af","ICollection:ag","CompareCallback:ah","MulticastDelegate:ai","IntPtr:aj","IList:ak","IDisposable:al","IArray:am","Script:an","Date:ao","Date:ap","Number:aq","Func$3:ar","Action$1:as","Point:at","GeometryUtil:au","Math:av","Number:aw","Number:ax","Number:ay","Number:az","Number:a0","Number:a1","Number:a2","Rect:a3","Size:a4","Tuple$2:a5","PathFigure:a6","PathSegmentCollection:a7","ArcSegment:a8","PathSegment:a9","PathSegmentType:ba","SweepDirection:bb","PolyLineSegment:bc","PointCollection:bd","InterpolationUtil:be","Func$1:bf","Func$5:bg","ToolTipItemVisualData:bh","BulletGraphTargetValueVisualData:bi","ValueVisualData:bj","LinearGraphVisualData:bk","PrimitiveVisualData:bl","IVisualData:bm","PrimitiveAppearanceData:bn","Color:bo","BrushAppearanceData:bp","Visibility:bq","StringBuilder:br","AppearanceHelper:bs","Brush:bt","LinearGradientBrushAppearanceData:bu","GradientStopAppearanceData:bv","LinearGradientBrush:bw","GradientStop:bx","SolidBrushAppearanceData:by","FrameworkElement:bz","UIElement:b0","DependencyObject:b1","Dictionary:b2","DependencyProperty:b3","PropertyMetadata:b4","PropertyChangedCallback:b5","DependencyPropertyChangedEventArgs:b6","DependencyPropertiesCollection:b7","UnsetValue:b8","Binding:b9","PropertyPath:ca","Transform:cb","Style:cc","Path:cd","Shape:ce","DoubleCollection:cf","Geometry:cg","GeometryType:ch","GeometryGroup:ci","GeometryCollection:cj","FillRule:ck","PathGeometry:cl","PathFigureCollection:cm","LineGeometry:cn","RectangleGeometry:co","EllipseGeometry:cp","Error:cq","EllipseGeometryData:cr","GeometryData:cs","GetPointsSettings:ct","RectangleGeometryData:cu","LineGeometryData:cv","PathGeometryData:cw","PathFigureData:cx","LineSegment:cy","LineSegmentData:cz","SegmentData:c0","PolylineSegmentData:c1","ArcSegmentData:c2","PolyBezierSegment:c3","PolyBezierSegmentData:c4","LabelAppearanceData:c5","FontInfo:c6","TextBlock:c7","RotateTransform:c8","TransformGroup:c9","TransformCollection:da","ShapeTags:db","LinearScaleVisualData:dc","LinearGraphScaleLabelVisualDataList:dd","LinearGraphScaleTickmarkVisualDataList:de","LinearGraphRangeVisualDataList:df","LinearGraphToolTipVisualData:dg","LinearGraphScaleLabelVisualData:dh","LinearGraphScaleTickmarkVisualData:di","LinearGraphRangeVisualData:dj","BulletGraphVisualData:dk","LinearGraphNeedleShape:dl","LinearScaleOrientation:dm","TitlesPosition:dn","LinearGraphFrame:dp","LinearGraphScaleFrame:dq","BrushUtil:dr","ColorUtil:ds","Random:dt","InterpolationMode:du","MathUtil:dv","RuntimeHelpers:dw","RuntimeFieldHandle:dx","JQueryObject:dy","Element:dz","ElementAttributeCollection:d0","ElementCollection:d1","WebStyle:d2","ElementNodeType:d3","Document:d4","EventListener:d5","IElementEventHandler:d6","ElementEventHandler:d7","ElementAttribute:d8","JQueryPosition:d9","JQueryCallback:ea","JQueryEvent:eb","JQueryUICallback:ec","BrushCollection:ed","ObservableCollection$1:ee","INotifyCollectionChanged:ef","NotifyCollectionChangedEventHandler:eg","NotifyCollectionChangedEventArgs:eh","EventArgs:ei","NotifyCollectionChangedAction:ej","INotifyPropertyChanged:ek","PropertyChangedEventHandler:el","PropertyChangedEventArgs:em","Delegate:en","CssHelper:eo","JQuery:ep","JQueryDeferred:eq","JQueryPromise:er","Action:es","CssGradientUtil:et","LinearGraphRectFrame:eu","LinearGraphNeedleFrame:ev","LinearGraphBackingFrame:ew","BulletGraphFrame:ex","BulletGraphScaleFrame:ey","LinearGraphScaler:ez","XamBulletGraph:e0","Control:e1","Thickness:e2","HorizontalAlignment:e3","VerticalAlignment:e4","DoubleAnimator:e5","EasingFunctionHandler:e6","Callback:e7","LinearGraphRangeCollection:e8","StackPool$1:e9","Dictionary$2:fa","IDictionary$2:fb","IDictionary:fc","IEqualityComparer$1:fd","KeyValuePair$2:fe","NotImplementedException:ff","Stack$1:fg","ReverseArrayEnumerator$1:fh","XamBulletGraphView:fi","RenderingContext:fj","IRenderer:fk","Rectangle:fl","Polygon:fm","Polyline:fn","DataTemplateRenderInfo:fo","DataTemplatePassInfo:fp","ContentControl:fq","DataTemplate:fr","DataTemplateRenderHandler:fs","DataTemplateMeasureHandler:ft","DataTemplateMeasureInfo:fu","DataTemplatePassHandler:fv","Line:fw","LinearGraphTooltipDataContext:fx","FontUtil:fy","DOMEventProxy:fz","EventProxy:f0","ModifierKeys:f1","Func$2:f2","MouseWheelHandler:f3","GestureHandler:f4","ContactHandler:f5","TouchHandler:f6","MouseOverHandler:f7","MouseHandler:f8","KeyHandler:f9","Key:ga","MSGesture:gb","window:gc","MouseEventArgs:gd","XamLinearGraphRange:ge","DivElement:gf","CanvasElement:gg","CanvasContext:gh","CanvasViewRenderer:gi","CanvasContext2D:gj","TextMetrics:gk","ImageData:gl","Gradient:gm","BezierSegment:gn","TranslateTransform:go","ScaleTransform:gp","PathVisualData:gq","ToolTipInfo:gr","FormatLinearGraphLabelHandler:gs","FormatLinearGraphLabelEventArgs:gt","AlignLinearGraphLabelHandler:gu","AlignLinearGraphLabelEventArgs:gv","PolygonUtil:gw","AbstractEnumerable:gx","AbstractEnumerator:gy","GenericEnumerable$1:gz","GenericEnumerator$1:g0"]);n.ig.util.defType("TitlesPosition:dn","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("TitlesPosition",n.ig.$ep.$type)},!0);n.ig.util.defType("LinearScaleOrientation:dm","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("LinearScaleOrientation",n.ig.$ep.$type)},!0);n.ig.util.defType("LinearGraphNeedleShape:dl","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("LinearGraphNeedleShape",n.ig.$ep.$type)},!0);n.ig.util.defType("MorphSegment:a","Object",{init:function(){n.ig.$op.init.call(this);this.f=new t.x(t.$at.$type,0);this.g=new t.x(t.$at.$type,0)},f:null,g:null,b:!1,h:0,e:!1,a:!1,d:!1,c:!1,j:function(){var u,v,f,e,s,h,y,c,l,a;if(this.g.clear(),u=20,this.b){this.f.count()==0?(f={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},e={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(f=this.f.__inner[0],e=this.f.__inner[1]);for(var o=t.$au.i(f,e,this.h,!this.c,this.d),i=t.$au.c(o,f),r=t.$au.c(o,e);this.c&&r<i;)r+=3.14159265358979*2;while(!this.c&&r>i)r-=3.14159265358979*2;for(s=0,h=0;h<u;h++)v=h/u,s=this.c?i+(r-i)*v:i-(i-r)*v,this.g.add({__x:o.__x+Math.cos(s)*this.h,__y:o.__y+Math.sin(s)*this.h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}else{this.f.count()==0?(c={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},l={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(c=this.f.__inner[0],l=this.f.__inner[1]);var p=c.__x,w=c.__y,b=l.__x,k=l.__y;for(a=0;a<u;a++)y=a/u,this.g.add({__x:p+(b-p)*y,__y:w+(k-w)*y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}this.a=!0},i:function(i,r,u,f,e){var s=this,v=null,c=s.f,l=c.count(),y,o,p,h,w,b,a;if(l==0)return i;if(r.__segments.count()==0&&(y=c.__inner[0],r.__startPoint={__x:f+u*y.__x,__y:e+u*y.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s.b)l>1&&(o=new t.a8,v=o,p=c.__inner[1],o.d({__x:f+u*p.__x,__y:e+u*p.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.b(s.d),o.e(s.c?1:0),o.f(new t.a4(s.h*u,s.h*u)),i=o.d());else if(h=new t.bc,v=h,l>1){for(b=h.__points,a=1;a<l;a++)w=c.__inner[a],b.add({__x:f+u*w.__x,__y:e+u*w.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i=h.__points.__inner[h.__points.count()-1]}return r.__segments.add(v),i},k:function(i,r,u){var f=this,e=r.f,h=!1,o=u.f,c=!1,l,a,s;if(e.count()!=0||o.count()!=0){if(f.b=!1,f.e=!1,f.a=!1,f.d=!1,f.c=!1,r.e&&(h=!0),u.e&&(c=!0),(r.b!=u.b||r.e||u.e||r.d!=u.d||r.c!=u.c)&&(h=!0,c=!0,f.e=!0),h&&!r.e&&(r.a||r.j(u.h),e=r.g),c&&!u.e&&(u.a||u.j(r.h),o=u.g),r.e&&(e=r.g),u.e&&(o=u.g),f.g.clear(),r.b&&u.b&&(f.b=!0),t.$be.a(f.f,i,e,o),f.e){for(a=f.f.count(),s=0;s<a;s++)l=f.f.__inner[s],f.g.add({__x:l.__x,__y:l.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});f.a=!0}r.d==u.d&&(f.d=u.d);r.c==u.c&&(f.c=u.c);f.b&&(f.h=r.h+(u.h-r.h)*i)}},l:function(){this.f.clear();this.g.clear();this.e=!1;this.a=!1;this.b=!1},$type:new n.ig.Type("MorphSegment",n.ig.$ot)},!0);n.ig.util.defType("ToolTipItemVisualData:bh","Object",{init:function(){n.ig.$op.init.call(this)},type:function(){},serialize:function(){},$type:new n.ig.Type("ToolTipItemVisualData",n.ig.$ot)},!0);n.ig.util.defType("BulletGraphTargetValueVisualData:bi","ToolTipItemVisualData",{init:function(){t.$bh.init.call(this)},_value:0,value:function(n){return arguments.length===1?(this._value=n,n):this._value},serialize:function(){return"{ value: "+this.value().toString()+", type: '"+this.type()+"'}"},type:function(){return"targetValue"},$type:new n.ig.Type("BulletGraphTargetValueVisualData",t.$bh.$type)},!0);n.ig.util.defType("ValueVisualData:bj","ToolTipItemVisualData",{init:function(){t.$bh.init.call(this)},_value:0,value:function(n){return arguments.length===1?(this._value=n,n):this._value},serialize:function(){return"{ value: "+this.value().toString()+", type: '"+this.type()+"'}"},type:function(){return"value"},$type:new n.ig.Type("ValueVisualData",t.$bh.$type)},!0);n.ig.util.defType("LinearGraphVisualData:bk","Object",{init:function(){n.ig.$op.init.call(this)},_scalePath:null,scalePath:function(n){return arguments.length===1?(this._scalePath=n,n):this._scalePath},_backingPath:null,backingPath:function(n){return arguments.length===1?(this._backingPath=n,n):this._backingPath},_underlayPath:null,underlayPath:function(n){return arguments.length===1?(this._underlayPath=n,n):this._underlayPath},_overlayPath:null,overlayPath:function(n){return arguments.length===1?(this._overlayPath=n,n):this._overlayPath},_scale:null,scale:function(n){return arguments.length===1?(this._scale=n,n):this._scale},_scaleLabels:null,scaleLabels:function(n){return arguments.length===1?(this._scaleLabels=n,n):this._scaleLabels},_scaleTickmarks:null,scaleTickmarks:function(n){return arguments.length===1?(this._scaleTickmarks=n,n):this._scaleTickmarks},_ranges:null,ranges:function(n){return arguments.length===1?(this._ranges=n,n):this._ranges},_toolTip:null,toolTip:function(n){return arguments.length===1?(this._toolTip=n,n):this._toolTip},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},scaleByViewport:function(){var n,f,t,i,r,u;if(this.scalePath()!=null&&this.scalePath().scaleByViewport(this.viewport()),this.backingPath()!=null&&this.backingPath().scaleByViewport(this.viewport()),this.underlayPath()!=null&&this.underlayPath().scaleByViewport(this.viewport()),this.overlayPath()!=null&&this.overlayPath().scaleByViewport(this.viewport()),this.scaleLabels()!=null)for(n=this.scaleLabels().getEnumerator();n.moveNext();)f=n.current(),f.scaleByViewport(this.viewport());if(this.scaleTickmarks()!=null)for(t=this.scaleTickmarks().getEnumerator();t.moveNext();)i=t.current(),i.tickPath()!=null&&i.tickPath().scaleByViewport(this.viewport());if(this.ranges()!=null)for(r=this.ranges().getEnumerator();r.moveNext();)u=r.current(),u.rangePath()!=null&&u.rangePath().scaleByViewport(this.viewport())},serialize:function(){var n=new t.br,i=!0,r,u,h,f,e,c,o,s,l;if(n.f("{"),this.scalePath()!=null&&(i?i=!1:n.d(", "),n.d("scalePath: "),n.f(this.scalePath().serialize())),this.backingPath()!=null&&(i?i=!1:n.d(", "),n.d("backingPath: "),n.f(this.backingPath().serialize())),this.underlayPath()!=null&&(i?i=!1:n.d(", "),n.d("underlayPath: "),n.f(this.underlayPath().serialize())),this.overlayPath()!=null&&(i?i=!1:n.d(", "),n.d("overlayPath: "),n.f(this.overlayPath().serialize())),this.scaleLabels()!=null){for(i?i=!1:n.d(", "),r=!0,n.d("scaleLabels: ["),u=this.scaleLabels().getEnumerator();u.moveNext();)h=u.current(),r?r=!1:n.d(", "),n.f(h.serialize());n.f("]")}if(this.scaleTickmarks()!=null){for(i?i=!1:n.d(", "),f=!0,n.d("scaleTickmarks: ["),e=this.scaleTickmarks().getEnumerator();e.moveNext();)c=e.current(),f?f=!1:n.d(", "),n.f(c.serialize());n.f("]")}if(this.ranges()!=null){for(i?i=!1:n.d(", "),o=!0,n.d("ranges: ["),s=this.ranges().getEnumerator();s.moveNext();)l=s.current(),o?o=!1:n.d(", "),n.f(l.serialize());n.f("]")}return this.name()!=null&&(i?i=!1:n.d(", "),n.d("name: '"),n.d(this.name()),n.f("'")),this.toolTip()!=null&&(i?i=!1:n.d(", "),n.d("toolTip: "),n.d(this.toolTip().serialize())),i?i=!1:n.d(", "),n.d("viewport: {"),n.d("left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()),n.f("}"),n.d("}"),n.b()},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},$type:new n.ig.Type("LinearGraphVisualData",n.ig.$ot)},!0);n.ig.util.defType("BulletGraphVisualData:dk","LinearGraphVisualData",{init:function(){t.$bk.init.call(this)},_targetValuePath:null,targetValuePath:function(n){return arguments.length===1?(this._targetValuePath=n,n):this._targetValuePath},_valuePath:null,valuePath:function(n){return arguments.length===1?(this._valuePath=n,n):this._valuePath},_targetValue:null,targetValue:function(n){return arguments.length===1?(this._targetValue=n,n):this._targetValue},_value:null,value:function(n){return arguments.length===1?(this._value=n,n):this._value},scaleByViewport:function(){t.$bk.scaleByViewport.call(this);this.targetValuePath()!=null&&this.targetValuePath().scaleByViewport(this.viewport());this.valuePath()!=null&&this.valuePath().scaleByViewport(this.viewport())},serialize:function(){var r=t.$bk.serialize.call(this),n=new t.br,i=r.length==0;return(this.targetValuePath()!=null&&(i?i=!1:n.d(", "),n.d("targetValuePath: "),n.f(this.targetValuePath().serialize())),this.targetValue()!=null&&(i?i=!1:n.d(", "),n.d("targetValue: "),n.f(this.targetValue().serialize())),this.valuePath()!=null&&(i?i=!1:n.d(", "),n.d("valuePath: "),n.f(this.valuePath().serialize())),this.value()!=null&&(i?i=!1:n.d(", "),n.d("value: "),n.f(this.value().serialize())),i)?r:(n.d("}"),r.substr(0,r.length-1)+n.b())},$type:new n.ig.Type("BulletGraphVisualData",t.$bk.$type)},!0);n.ig.util.defType("LinearGraphFrame:dp","Object",{init:function(){n.ig.$op.init.call(this);this.a(new t.ew);this.b(new t.eu)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},d:function(n,i,r){this.b(t.$eu.a(n,1-n,i.b(),r.b()));this.c().w(n,i.c(),r.c());this.a().d(n,i.a(),r.a())},$type:new n.ig.Type("LinearGraphFrame",n.ig.$ot)},!0);n.ig.util.defType("BulletGraphFrame:ex","LinearGraphFrame",{init:function(){t.$dp.init.call(this);this.c(new t.ey)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("BulletGraphFrame",t.$dp.$type)},!0);n.ig.util.defType("LinearGraphScaleFrame:dq","Object",{init:function(){n.ig.$op.init.call(this);this.k(new t.x(t.$eu.$type,0));this.j(new Array(0));this.i(new Array(0));this.e(new Array(0));this.d(new Array(0));this.f(new Array(0));this.c(new Array(0));this.g(new Array(0));this.h(new Array(0))},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_s:0,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_p:0,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_q:0,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_r:0,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_u:0,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_t:0,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},_v:0,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_n:0,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_aa:null,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_o:0,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},ac:function(i,r,u,f){var e=this,y=new t.cl,s=new t.a6,o=i.__x,h=i.__y,c,l,a,v;return f==1?(c=function(){var i=new t.cy(1);return i.c({__x:o+r*e.q(),__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),l=function(){var i=new t.cy(1);return i.c({__x:o+r*e.r(),__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),a=function(){var i=new t.cy(1);return i.c({__x:o+r*e.r(),__y:h+u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),v=function(){var i=new t.cy(1);return i.c({__x:o+r*e.q(),__y:h+u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()):(c=function(){var i=new t.cy(1);return i.c({__x:o,__y:r*(1-e.r()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),l=function(){var i=new t.cy(1);return i.c({__x:o+u,__y:r*(1-e.r()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),a=function(){var i=new t.cy(1);return i.c({__x:o+u,__y:r*(1-e.q()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),v=function(){var i=new t.cy(1);return i.c({__x:o,__y:r*(1-e.q()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),s.__startPoint=c.c(),s.__segments.add(l),s.__segments.add(a),s.__segments.add(v),s.__isClosed=!0,y.b().add(s),y},w:function(n,i,r){this.ab(t.$dr.g(i.ab(),n,r.ab(),0));this.aa(t.$dr.g(i.aa(),n,r.aa(),0));i.z()==null&&r.z()==null?this.z(null):this.z(t.$dr.g(i.z(),n,r.z(),0));this.s(i.s()+(r.s()-i.s())*n);this.p(i.p()+(r.p()-i.p())*n);this.q(i.q()+(r.q()-i.q())*n);this.r(i.r()+(r.r()-i.r())*n);this.l(i.l()+(r.l()-i.l())*n);this.u(i.u()+(r.u()-i.u())*n);this.t(i.t()+(r.t()-i.t())*n);this.n(i.n()+(r.n()-i.n())*n);this.m(i.m()+(r.m()-i.m())*n);this.v(i.v()+(r.v()-i.v())*n);this.o(i.o()+(r.o()-i.o())*n);this.j(this.a(n,this.j(),i.j(),r.j()));this.i(this.a(n,this.i(),i.i(),r.i()));this.e(this.a(n,this.e(),i.e(),r.e()));this.f(this.a(n,this.f(),i.f(),r.f()));this.c(this.a(n,this.c(),i.c(),r.c()));this.g(this.a(n,this.g(),i.g(),r.g()));this.h(this.a(n,this.h(),i.h(),r.h()));this.d(this.b(n,this.d(),i.d(),r.d()));this.y(n,this.k(),i.k(),r.k())},a:function(n,t,i,r){var e=Math.max(i.length,r.length),c=Math.min(i.length,r.length),o,s,l,u,f,h;for(t.length!=e&&(t=new Array(e)),o=0,i.length>0&&(o=i[i.length-1]),s=0,r.length>0&&(s=r[r.length-1]),l=i.length>r.length,u=0,u=0;u<c;u++)t[u]=i[u]+(r[u]-i[u])*n;for(u=c;u<e;u++)l?(f=i[u],h=s):(f=o,h=r[u]),t[u]=f+(h-f)*n;return t},b:function(n,t,i,r){var e=Math.max(i.length,r.length),c=Math.min(i.length,r.length),o,s,l,u,h,f;for(t.length!=e&&(t=new Array(e)),o=null,i.length>0&&(o=i[i.length-1]),s=null,r.length>0&&(s=r[r.length-1]),l=i.length>r.length,u=0,u=0;u<c;u++)t[u]=r[u];for(u=c;u<e;u++)l?(h=i[u],f=s):(h=o,f=r[u]),t[u]=f!=null?f:h;return t},y:function(n,i,r,u){var f=this;t.$be.b(t.$eu.$type,i,n,r,u,function(){return new t.eu},t.$eu.a)},x:function(n,i,r,u){var f=this;t.$be.b(t.$ev.$type,i,n,r,u,function(){return new t.ev},t.$ev.a)},$type:new n.ig.Type("LinearGraphScaleFrame",n.ig.$ot)},!0);n.ig.util.defType("BulletGraphScaleFrame:ey","LinearGraphScaleFrame",{init:function(){t.$dq.init.call(this);this.ad(new t.eu)},_ad:null,ad:function(n){return arguments.length===1?(this._ad=n,n):this._ad},w:function(n,i,r){t.$dq.w.call(this,n,i,r);this.ad(t.$eu.a(n,1-n,i.ad(),r.ad()))},$type:new n.ig.Type("BulletGraphScaleFrame",t.$dq.$type)},!0);n.ig.util.defType("LinearGraphNeedleFrame:ev","Object",{init:function(){n.ig.$op.init.call(this);this.f(new t.a);this.g(new t.a);this.d(new t.a);this.j(new t.a);this.i(new t.a);this.k(new t.a);this.e(new t.a);this.h(new t.a);this.b(new t.a);this.c(new t.a)},_n:0,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_q:0,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_p:0,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_r:null,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_s:null,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_o:0,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},a:function(n,i,r,u){var f=new t.ev;return f.n(r.n()+(u.n()-r.n())*n),f.m(r.m()+(u.m()-r.m())*n),f.q(r.q()+(u.q()-r.q())*n),f.l(r.l()+(u.l()-r.l())*n),f.p(r.p()+(u.p()-r.p())*n),f.r(t.$dr.g(r.r(),n,u.r(),0)),f.s(t.$dr.g(r.s(),n,u.s(),0)),f.o(r.o()+(u.o()-r.o())*n),f.f().k(n,r.f(),u.f()),f.g().k(n,r.g(),u.g()),f.d().k(n,r.d(),u.d()),f.j().k(n,r.j(),u.j()),f.i().k(n,r.i(),u.i()),f.k().k(n,r.k(),u.k()),f.e().k(n,r.e(),u.e()),f.h().k(n,r.h(),u.h()),f.b().k(n,r.b(),u.b()),f.c().k(n,r.c(),u.c()),f},t:function(i,r,u){var s=new t.cl,e=new t.a6,f={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o;return f=this.i().i(f,e,i,r,u),f=this.j().i(f,e,i,r,u),f=this.d().i(f,e,i,r,u),f=this.g().i(f,e,i,r,u),f=this.f().i(f,e,i,r,u),f=this.h().i(f,e,i,r,u),f=this.e().i(f,e,i,r,u),f=this.k().i(f,e,i,r,u),e.__isClosed=!0,s.b().add(e),o=new t.a6,(this.b().f.count()>0||this.c().f.count()>0)&&(f=this.b().i(f,o,i,r,u),f=this.c().i(f,o,i,r,u),o.__isClosed=!0,s.b().add(o)),s},$type:new n.ig.Type("LinearGraphNeedleFrame",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphScaler:ez","Object",{f:0,e:0,d:0,c:0,a:!1,g:0,b:0,j:function(){return this.g},h:function(){return this.b},init:function(t,i,r,u,f){n.ig.$op.init.call(this);this.f=r;this.e=u;this.a=f;this.d=t;this.c=i;this.g=r;this.b=u},i:function(n){var t=(n-this.d)/(this.c-this.d),i;return this.a&&(t=1-t),i=this.g+(this.b-this.g)*t,Math.round(i*100)/100},k:function(n){var t=(n-this.g)/(this.b-this.g);return this.a&&(t=1-t),this.d+(this.c-this.d)*t},$type:new n.ig.Type("LinearGraphScaler",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphBackingFrame:ew","Object",{init:function(){n.ig.$op.init.call(this)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},g:function(i,r,u){var f=this,l=new t.cl,e=new t.a6,o,s,h,c;return u==1?(o=function(){var r=new t.cy(1);return r.c({__x:i*f.a(),__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r}(),s=function(){var r=new t.cy(1);return r.c({__x:i*f.b(),__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r}(),h=function(){var u=new t.cy(1);return u.c({__x:i*f.b(),__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u}(),c=function(){var u=new t.cy(1);return u.c({__x:i*f.a(),__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u}()):(o=function(){var r=new t.cy(1);return r.c({__x:0,__y:i*(1-f.b()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r}(),s=function(){var u=new t.cy(1);return u.c({__x:r,__y:i*(1-f.b()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u}(),h=function(){var u=new t.cy(1);return u.c({__x:r,__y:i*(1-f.a()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u}(),c=function(){var r=new t.cy(1);return r.c({__x:0,__y:i*(1-f.a()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r}()),e.__startPoint=o.c(),e.__segments.add(s),e.__segments.add(h),e.__segments.add(c),e.__isClosed=!0,l.b().add(e),l},d:function(n,i,r){this.c(i.c()+(r.c()-i.c())*n);this.e(t.$dr.g(i.e(),n,r.e(),0));this.f(t.$dr.g(i.f(),n,r.f(),0));this.b(i.b()+(r.b()-i.b())*n);this.a(i.a()+(r.a()-i.a())*n)},$type:new n.ig.Type("LinearGraphBackingFrame",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphRectFrame:eu","Object",{init:function(){n.ig.$op.init.call(this)},e:0,f:0,b:0,c:0,g:0,d:0,i:null,j:null,h:0,k:function(i,r,u,f){var e=this,a=new t.cl,o=new t.a6,s,h,c,l;return f==1?(s=function(){var f=new t.cy(1);return f.c({__x:i.__x+r*e.b,__y:u-e.d,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f}(),h=function(){var f=new t.cy(1);return f.c({__x:i.__x+r*e.c,__y:u-e.d,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f}(),c=function(){var f=new t.cy(1);return f.c({__x:i.__x+r*e.f,__y:u-e.g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f}(),l=function(){var f=new t.cy(1);return f.c({__x:i.__x+r*e.e,__y:u-e.g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f}()):(s=function(){var i=new t.cy(1);return i.c({__x:e.g,__y:r*(1-e.f),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),h=function(){var i=new t.cy(1);return i.c({__x:e.d,__y:r*(1-e.c),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),c=function(){var i=new t.cy(1);return i.c({__x:e.d,__y:r*(1-e.b),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),l=function(){var i=new t.cy(1);return i.c({__x:e.g,__y:r*(1-e.e),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),o.__startPoint=s.c(),o.__segments.add(h),o.__segments.add(c),o.__segments.add(l),o.__isClosed=!0,a.b().add(o),a},a:function(n,i,r,u){var f=new t.eu;return f.i=t.$dr.g(r.i,n,u.i,0),f.j=t.$dr.g(r.j,n,u.j,0),f.h=i*r.h+n*u.h,f.e=i*r.e+n*u.e,f.f=i*r.f+n*u.f,f.g=i*r.g+n*u.g,f.d=i*r.d+n*u.d,f.b=i*r.b+n*u.b,f.c=i*r.c+n*u.c,f},$type:new n.ig.Type("LinearGraphRectFrame",n.ig.$ot)},!0);n.ig.util.defType("XamBulletGraph:e0","Control",{init:function(){var i=this;this.a8=0;this.a7=0;this.a6=100;this.a2=new t.x(t.$c7.$type,0);this.a3=new t.x(t.$c7.$type,0);this.a5=new t.x(t.$cd.$type,0);this.a4=new t.x(t.$cd.$type,0);t.$e1.init.call(this);this.view(new t.fi(this));this.view().a3();this.gq=t.$a3.empty();this.gp=t.$a3.empty();this.go=t.$a3.empty();this.ai(new t.ex);this.ah(new t.ex);this.ag(new t.ex);this.ranges(new t.e8);this.aw(!0);this.ap(new t.e5(0,1,this.transitionDuration()));this.ap().propertyChanged=n.ig.Delegate.prototype.combine(this.ap().propertyChanged,this.d6.runOn(this));this.y(t.$e0.$type);this.at(function(){var n=new t.e9(t.$cd.$type);return n.a(i.view().bc.runOn(i.view())),n.b(i.view().bd.runOn(i.view())),n.c(i.view().be.runOn(i.view())),n.i(i.view().cf.runOn(i.view())),n}());this.au(function(){var n=new t.e9(t.$cd.$type);return n.a(i.view().a6.runOn(i.view())),n.b(i.view().a7.runOn(i.view())),n.c(i.view().a8.runOn(i.view())),n.i(i.view().ce.runOn(i.view())),n}());this.as(function(){var n=new t.e9(t.$cd.$type);return n.a(i.view().a6.runOn(i.view())),n.b(i.view().a7.runOn(i.view())),n.c(i.view().a8.runOn(i.view())),n.i(i.view().ce.runOn(i.view())),n}());this.aq(function(){var n=new t.e9(t.$c7.$type);return n.a(i.view().ax.runOn(i.view())),n.b(i.view().ay.runOn(i.view())),n.c(i.view().az.runOn(i.view())),n.i(i.view().bt.runOn(i.view())),n}());this.ar(function(){var n=new t.e9(t.$c7.$type);return n.a(i.view().bm.runOn(i.view())),n.b(i.view().bn.runOn(i.view())),n.c(i.view().bo.runOn(i.view())),n.i(i.view().bu.runOn(i.view())),n}())},_ap:null,ap:function(n){return arguments.length===1?(this._ap=n,n):this._ap},d6:function(){this.transitionProgress(this.ap().transitionProgress())},animating:function(){return this.ap().animationActive()},a8:0,transitionProgress:function(n){if(arguments.length===1){var t=this.a8;return this.a8=n,this.ed("TransitionProgress",t,this.a8),n}return this.a8},ev:function(){this.a8=0;this.ap().stop();this.ap().start()},a0:function(){return this.transitionDuration()>0},formatLabel:null,alignLabel:null,_ai:null,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_ah:null,ah:function(n){return arguments.length===1?(this._ah=n,n):this._ah},_ag:null,ag:function(n){return arguments.length===1?(this._ag=n,n):this._ag},_al:null,al:function(n){return arguments.length===1?(this._al=n,n):this._al},orientation:function(n){return arguments.length===1?(this.g(t.$e0.orientationProperty,n),n):this.c(t.$e0.orientationProperty)},ranges:function(n){return arguments.length===1?(this.g(t.$e0.rangesProperty,n),n):this.c(t.$e0.rangesProperty)},rangeBrushes:function(n){return arguments.length===1?(this.g(t.$e0.rangeBrushesProperty,n),n):this.c(t.$e0.rangeBrushesProperty)},rangeOutlines:function(n){return arguments.length===1?(this.g(t.$e0.rangeOutlinesProperty,n),n):this.c(t.$e0.rangeOutlinesProperty)},minimumValue:function(n){return arguments.length===1?(this.g(t.$e0.minimumValueProperty,n),n):this.c(t.$e0.minimumValueProperty)},a7:0,actualMinimumValue:function(n){return arguments.length===1?(this.a7=n,n):this.a7},maximumValue:function(n){return arguments.length===1?(this.g(t.$e0.maximumValueProperty,n),n):this.c(t.$e0.maximumValueProperty)},a6:0,actualMaximumValue:function(n){return arguments.length===1?(this.a6=n,n):this.a6},targetValue:function(n){return arguments.length===1?(this.g(t.$e0.targetValueProperty,n),n):this.c(t.$e0.targetValueProperty)},targetValueName:function(n){return arguments.length===1?(this.g(t.$e0.targetValueNameProperty,n),n):this.c(t.$e0.targetValueNameProperty)},value:function(n){return arguments.length===1?(this.g(t.$e0.valueProperty,n),n):this.c(t.$e0.valueProperty)},valueName:function(n){return arguments.length===1?(this.g(t.$e0.valueNameProperty,n),n):this.c(t.$e0.valueNameProperty)},rangeInnerExtent:function(n){return arguments.length===1?(this.g(t.$e0.rangeInnerExtentProperty,n),n):this.c(t.$e0.rangeInnerExtentProperty)},rangeOuterExtent:function(n){return arguments.length===1?(this.g(t.$e0.rangeOuterExtentProperty,n),n):this.c(t.$e0.rangeOuterExtentProperty)},valueInnerExtent:function(n){return arguments.length===1?(this.g(t.$e0.valueInnerExtentProperty,n),n):this.c(t.$e0.valueInnerExtentProperty)},valueOuterExtent:function(n){return arguments.length===1?(this.g(t.$e0.valueOuterExtentProperty,n),n):this.c(t.$e0.valueOuterExtentProperty)},interval:function(n){return arguments.length===1?(this.g(t.$e0.intervalProperty,n),n):this.c(t.$e0.intervalProperty)},ticksPostInitial:function(n){return arguments.length===1?(this.g(t.$e0.ticksPostInitialProperty,n),n):this.c(t.$e0.ticksPostInitialProperty)},ticksPreTerminal:function(n){return arguments.length===1?(this.g(t.$e0.ticksPreTerminalProperty,n),n):this.c(t.$e0.ticksPreTerminalProperty)},labelInterval:function(n){return arguments.length===1?(this.g(t.$e0.labelIntervalProperty,n),n):this.c(t.$e0.labelIntervalProperty)},labelExtent:function(n){return arguments.length===1?(this.g(t.$e0.labelExtentProperty,n),n):this.c(t.$e0.labelExtentProperty)},labelsPostInitial:function(n){return arguments.length===1?(this.g(t.$e0.labelsPostInitialProperty,n),n):this.c(t.$e0.labelsPostInitialProperty)},labelsPreTerminal:function(n){return arguments.length===1?(this.g(t.$e0.labelsPreTerminalProperty,n),n):this.c(t.$e0.labelsPreTerminalProperty)},minorTickCount:function(n){return arguments.length===1?(this.g(t.$e0.minorTickCountProperty,n),n):this.c(t.$e0.minorTickCountProperty)},tickStartExtent:function(n){return arguments.length===1?(this.g(t.$e0.tickStartExtentProperty,n),n):this.c(t.$e0.tickStartExtentProperty)},tickEndExtent:function(n){return arguments.length===1?(this.g(t.$e0.tickEndExtentProperty,n),n):this.c(t.$e0.tickEndExtentProperty)},tickStrokeThickness:function(n){return arguments.length===1?(this.g(t.$e0.tickStrokeThicknessProperty,n),n):this.c(t.$e0.tickStrokeThicknessProperty)},tickBrush:function(n){return arguments.length===1?(this.g(t.$e0.tickBrushProperty,n),n):this.c(t.$e0.tickBrushProperty)},fontBrush:function(n){return arguments.length===1?(this.g(t.$e0.fontBrushProperty,n),n):this.c(t.$e0.fontBrushProperty)},valueBrush:function(n){return arguments.length===1?(this.g(t.$e0.valueBrushProperty,n),n):this.c(t.$e0.valueBrushProperty)},valueOutline:function(n){return arguments.length===1?(this.g(t.$e0.valueOutlineProperty,n),n):this.c(t.$e0.valueOutlineProperty)},valueStrokeThickness:function(n){return arguments.length===1?(this.g(t.$e0.valueStrokeThicknessProperty,n),n):this.c(t.$e0.valueStrokeThicknessProperty)},minorTickStartExtent:function(n){return arguments.length===1?(this.g(t.$e0.minorTickStartExtentProperty,n),n):this.c(t.$e0.minorTickStartExtentProperty)},minorTickEndExtent:function(n){return arguments.length===1?(this.g(t.$e0.minorTickEndExtentProperty,n),n):this.c(t.$e0.minorTickEndExtentProperty)},minorTickStrokeThickness:function(n){return arguments.length===1?(this.g(t.$e0.minorTickStrokeThicknessProperty,n),n):this.c(t.$e0.minorTickStrokeThicknessProperty)},minorTickBrush:function(n){return arguments.length===1?(this.g(t.$e0.minorTickBrushProperty,n),n):this.c(t.$e0.minorTickBrushProperty)},isScaleInverted:function(n){return arguments.length===1?(this.g(t.$e0.isScaleInvertedProperty,n),n):this.c(t.$e0.isScaleInvertedProperty)},backingBrush:function(n){return arguments.length===1?(this.g(t.$e0.backingBrushProperty,n),n):this.c(t.$e0.backingBrushProperty)},backingOutline:function(n){return arguments.length===1?(this.g(t.$e0.backingOutlineProperty,n),n):this.c(t.$e0.backingOutlineProperty)},backingStrokeThickness:function(n){return arguments.length===1?(this.g(t.$e0.backingStrokeThicknessProperty,n),n):this.c(t.$e0.backingStrokeThicknessProperty)},backingInnerExtent:function(n){return arguments.length===1?(this.g(t.$e0.backingInnerExtentProperty,n),n):this.c(t.$e0.backingInnerExtentProperty)},backingOuterExtent:function(n){return arguments.length===1?(this.g(t.$e0.backingOuterExtentProperty,n),n):this.c(t.$e0.backingOuterExtentProperty)},scaleStartExtent:function(n){return arguments.length===1?(this.g(t.$e0.scaleStartExtentProperty,n),n):this.c(t.$e0.scaleStartExtentProperty)},scaleEndExtent:function(n){return arguments.length===1?(this.g(t.$e0.scaleEndExtentProperty,n),n):this.c(t.$e0.scaleEndExtentProperty)},targetValueBrush:function(n){return arguments.length===1?(this.g(t.$e0.targetValueBrushProperty,n),n):this.c(t.$e0.targetValueBrushProperty)},targetValueBreadth:function(n){return arguments.length===1?(this.g(t.$e0.targetValueBreadthProperty,n),n):this.c(t.$e0.targetValueBreadthProperty)},targetValueInnerExtent:function(n){return arguments.length===1?(this.g(t.$e0.targetValueInnerExtentProperty,n),n):this.c(t.$e0.targetValueInnerExtentProperty)},targetValueOuterExtent:function(n){return arguments.length===1?(this.g(t.$e0.targetValueOuterExtentProperty,n),n):this.c(t.$e0.targetValueOuterExtentProperty)},targetValueOutline:function(n){return arguments.length===1?(this.g(t.$e0.targetValueOutlineProperty,n),n):this.c(t.$e0.targetValueOutlineProperty)},targetValueStrokeThickness:function(n){return arguments.length===1?(this.g(t.$e0.targetValueStrokeThicknessProperty,n),n):this.c(t.$e0.targetValueStrokeThicknessProperty)},az:function(n){return arguments.length===1?(this.g(t.$e0.fb,n),n):this.c(t.$e0.fb)},transitionDuration:function(n){return arguments.length===1?(this.g(t.$e0.transitionDurationProperty,n),n):this.c(t.$e0.transitionDurationProperty)},showToolTipTimeout:function(n){return arguments.length===1?(this.g(t.$e0.showToolTipTimeoutProperty,n),n):this.c(t.$e0.showToolTipTimeoutProperty)},toolTip:function(n){return arguments.length===1?(this.g(t.$e0.toolTipProperty,n),n):this.c(t.$e0.toolTipProperty)},_showToolTip:!1,showToolTip:function(n){return arguments.length===1?(this._showToolTip=n,n):this._showToolTip},font:function(n){return arguments.length===1?(this.g(t.$e0.fontProperty,n),n):this.c(t.$e0.fontProperty)},_au:null,au:function(n){return arguments.length===1?(this._au=n,n):this._au},_as:null,as:function(n){return arguments.length===1?(this._as=n,n):this._as},_aq:null,aq:function(n){return arguments.length===1?(this._aq=n,n):this._aq},_ar:null,ar:function(n){return arguments.length===1?(this._ar=n,n):this._ar},_at:null,at:function(n){return arguments.length===1?(this._at=n,n):this._at},getValueForPoint:function(n){var t=0,i=n.__x;return this.orientation()==1&&(t=n.__y,i=this.gt().height()),this.al().k(i-t)},exportVisualData:function(){var r=this,n=new t.dk,i,u;if(n.viewport(r.gt()),n.scaleLabels(new t.dd),n.scaleTickmarks(new t.de),n.ranges(new t.df),n.value(function(){var n=new t.bj;return n.value(r.value()),n}()),n.targetValue(function(){var n=new t.bi;return n.value(r.targetValue()),n}()),r.view().at(n),i=r.view().i(),i!=null){switch(i.d()){case"range":u=n.ranges().__inner[i.b()];break;case"value":u=n.value();break;default:u=n.targetValue()}n.toolTip(function(){var n=new t.dg;return n.item(u),n.itemBrush(t.$bs.fromBrush(i.a().brush())),n.outline(t.$bs.fromBrush(i.a().outline())),n.thickness(i.a().thickness()),n}())}return n},provideContainer:function(n){this.view().a1(n)},onMouseOver:function(n){this.showToolTip()&&(n=this.view().ao(n),this.eu(n,null))},onMouseLeave:function(){this.showToolTip()&&this.eu({__x:-1e4,__y:-1e4,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},null)},containerResized:function(){this.view().a2()},styleUpdated:function(){this.view().bl()},flush:function(){this.view().flush()},eu:function(n,i){var a=new t.gq(1,"targetValue",this.view().cc()),e=a.getPoints(new t.ct),o,s,u,h,r,c,f,l;if(e.count()>0&&(o=t.$gw.a(e.__inner[0],n),o==!0)){this.view().bk(n,i,-1,"targetvalue");return}if(s=new t.gq(1,"value",this.view().cd()),u=s.getPoints(new t.ct),u.count()>0&&(h=t.$gw.a(u.__inner[0],n),h==!0)){this.view().bk(n,i,-1,"value");return}for(r=0;r<this.a4.count();r++)if(c=new t.gq(1,"range",this.a4.__inner[r]),f=c.getPoints(new t.ct),f.count()>0&&(l=t.$gw.a(f.__inner[0],n),l==!0)){this.view().bk(n,i,r,"range");return}this.view().aw()},en:function(){var i,r,u,e,n,f,o;if(this.aw())if(i=this.ah().c(),this.orientation()==0){for(r=0,u=0;u<i.c().length;u++)r=Math.max(r,i.c()[u]);e=this.gt().height()>=r?this.gt().height()-r:this.gt().height();this.gs(new t.a3(0,0,0,this.gt().width(),e))}else{for(n=0,f=0;f<i.f().length;f++)n=Math.max(n,i.f()[f]);o=this.gt().width()>=n?this.gt().width()-n:this.gt().width();this.gs(new t.a3(0,n,0,o,this.gt().height()))}},_view:null,view:function(n){return arguments.length===1?(this._view=n,n):this._view},gq:null,gt:function(n){if(arguments.length===1){var t=this.gq;return this.gq=n,t.equals(this.gq)||this.ee(t,this.gq),n}return this.gq},gp:null,gs:function(n){return arguments.length===1?(this.gp=n,n):this.gp},go:null,gr:function(n){return arguments.length===1?(this.go=n,n):this.go},ay:function(){return!isNaN(this.actualMinimumValue())&&!isNaN(this.actualMaximumValue())&&!this.gt().isEmpty()&&this.view().p()},d7:function(){var n,i;this.ay()&&(n=this.bw(),this.al(new t.ez(this.actualMinimumValue(),this.actualMaximumValue(),n,n+this.bv(),this.isScaleInverted())),this.aw()?(i=this.ai(),this.animating()?(this.ap().needsFlush()&&this.ap().flush(),this.ai(this.ag()),this.ag(i)):(this.ai(this.ah()),this.ah(i))):this.animating()&&(this.ag().d(this.transitionProgress(),this.ai(),this.ah()),this.eo(this.ag()),this.eq(this.ag()),this.er(this.ag()),this.et(this.ag())),this.aw()&&(this.eg(),this.en(),this.ei(),this.ej(),this.eh(),this.ef()),this.aw()&&this.a0()?(this.ev(),this.ag().d(this.transitionProgress(),this.ai(),this.ah()),this.eo(this.ag()),this.eq(this.ag()),this.er(this.ag()),this.et(this.ag()),this.es(this.ag()),this.ep(this.ag())):this.aw()&&(this.eo(this.ah()),this.eq(this.ah()),this.er(this.ah()),this.et(this.ah()),this.es(this.ah()),this.ep(this.ah())),this.aw(!1),this.view().as())},a2:null,a3:null,a5:null,a4:null,eh:function(){var b=this.ah(),i=b.c(),l=this.al(),a=this.minorTickCount(),k=this.gs(),e,r,v,y,n,u,o,s,f,p,w,h,c;for(isNaN(a)&&(a=3),i.s(this.scaleStartExtent()),i.p(this.scaleEndExtent()),i.q(0),i.r(1),i.k().clear(),e=0;e<this.ranges().count();e++)(r=this.ranges().__inner[e],r.endValue()<=this.actualMinimumValue()||r.startValue()>this.actualMaximumValue())||(v=r.startValue(),y=r.endValue(),v<this.actualMinimumValue()&&(v=this.actualMinimumValue()),y>this.actualMaximumValue()&&(y=this.actualMaximumValue()),n=new t.eu,n.i=r.brush()!=null?r.brush():this.gh(e,this.rangeBrushes()),n.j=r.outline()!=null?r.outline():this.gh(e,this.rangeOutlines()),n.h=r.strokeThickness(),n.g=l.i(v),n.d=l.i(y),n.e=r.innerStartExtent(),n.b=r.innerEndExtent(),n.f=r.outerStartExtent(),n.c=r.outerEndExtent(),isNaN(n.e)&&(n.e=this.rangeInnerExtent()),n.b=r.innerEndExtent(),isNaN(n.b)&&(n.b=this.rangeInnerExtent()),n.f=r.outerStartExtent(),isNaN(n.f)&&(n.f=this.rangeOuterExtent()),n.c=r.outerEndExtent(),isNaN(n.c)&&(n.c=this.rangeOuterExtent()),i.k().add(n));if(i.z(this.fontBrush()),i.ab(this.tickBrush()),i.v(this.tickStrokeThickness()),i.u(this.tickStartExtent()),i.t(this.tickEndExtent()),i.aa(this.minorTickBrush()),i.o(this.minorTickStrokeThickness()),i.n(this.minorTickStartExtent()),i.m(this.minorTickEndExtent()),u=this.interval(),isNaN(u)&&(u=(this.actualMaximumValue()-this.actualMinimumValue())/10),u==0&&(u=this.actualMaximumValue()-this.actualMinimumValue()),o=new t.x(Number,0),s=new t.x(Number,0),u>0)for(f=this.actualMinimumValue()+this.ticksPostInitial();f<=this.actualMaximumValue()-this.ticksPreTerminal();)if(!(f>this.actualMaximumValue()-this.ticksPreTerminal())){for(o.add(l.i(f)),p=0;p<a;p++)(w=u/(a+1)*(p+1),w+f>this.actualMaximumValue()-this.ticksPreTerminal())||s.add(l.i(w+f));f=Math.round((f+u)*100)/100}for((i.j().length!=o.count()||i.i().length!=s.count())&&(i.j(new Array(o.count())),i.i(new Array(s.count()))),h=0;h<o.count();h++)i.j()[h]=o.__inner[h];for(c=0;c<s.count();c++)i.i()[c]=s.__inner[c]},gu:function(){var n=this,k=n.interval(),e=n.labelInterval(),o,h,i,r,s,c,a,l,d,y,p,w,b;if(isNaN(k)&&(k=(n.actualMaximumValue()-n.actualMinimumValue())/10),isNaN(e)&&(e=k),e==0&&(e=n.actualMaximumValue()-n.actualMinimumValue()),o=new t.x(Number,0),e>0)for(h=n.labelsPostInitial()+n.actualMinimumValue();h<=n.actualMaximumValue()-n.labelsPreTerminal();h+=e)h>n.actualMaximumValue()-n.labelsPreTerminal()||o.add(h);for(i=new Array(o.count()),r=new Array(o.count()),s=0;s<o.count();s++)c=o.__inner[s],c=Math.round(c*100)/100,a=c.toString(),l=new t.gt,l.value=c,l.label=a,n.formatLabel!=null&&n.formatLabel(n,l),a=l.label,d=n.view().cg(function(){var n=new t.c7;return n.aa(a),n}()),i[s]=d.b(),r[s]=d.a();var u=0,f=0,v=1-n.scaleEndExtent()+n.scaleStartExtent();if(n.orientation()==0){for(y=0;y<r.length;y++)f=Math.max(f,r[y]);for(p=0;p<i.length;p++)u+=i[p];i.length>0&&(u+=i[0]/2);i.length>1&&(u+=i[i.length-1]/2);i.length>0&&(u+=(i.length-1)*5);v>0&&(u=u/Math.abs(1-v))}else{for(w=0;w<i.length;w++)u=Math.max(u,i[w]);for(b=0;b<r.length;b++)f+=r[b];r.length>0&&(f-=r[0]/2);r.length>1&&(f-=r[r.length-1]/2);v>0&&(f=f/Math.abs(1-v));r.length>0&&(f+=(r.length-1)*5)}return new t.a4(u,f)},eg:function(){var n=this,v=n.ah(),r=v.c(),y=n.al(),a=n.interval(),h=n.labelInterval(),p=n.minorTickCount(),u,e,o,i,f,c,l,s;if(isNaN(a)&&(a=(n.actualMaximumValue()-n.actualMinimumValue())/10),isNaN(h)&&(h=a),h==0&&(h=n.actualMaximumValue()-n.actualMinimumValue()),u=new t.x(t.$a5.$type.specialize(Number,Number),0),h>0)for(e=n.labelsPostInitial()+n.actualMinimumValue();e<=n.actualMaximumValue()-n.labelsPreTerminal();)e>n.actualMaximumValue()-n.labelsPreTerminal()||(u.add(new t.a5(Number,Number,e,y.i(e))),e=Math.round((e+h)*100)/100);for(r.d().length!=u.count()&&(r.e(new Array(u.count())),r.d(new Array(u.count())),r.f(new Array(u.count())),r.c(new Array(u.count())),r.g(new Array(u.count())),r.h(new Array(u.count()))),r.l(n.labelExtent()),o=new t.gt,o.actualMinimumValue=n.actualMinimumValue(),o.actualMaximumValue=n.actualMaximumValue(),i=new t.gv,i.actualMinimumValue=n.actualMinimumValue(),i.actualMaximumValue=n.actualMaximumValue(),f=0;f<u.count();f++)c=u.__inner[f].a(),c=Math.round(c*100)/100,l=c.toString(),o.value=c,i.value=c,o.label=l,n.formatLabel!=null&&n.formatLabel(n,o),l=o.label,i.label=l,s=n.view().cg(function(){var n=new t.c7;return n.aa(l),n}()),i.width=s.b(),i.height=s.a(),n.orientation()==0?(i.offsetX=s.b()/-2,i.offsetY=-1*s.a()):(i.offsetX=-1*s.b(),i.offsetY=s.a()/-2),n.alignLabel!=null&&n.alignLabel(n,i),r.f()[f]=i.width,r.c()[f]=i.height,r.g()[f]=i.offsetX,r.h()[f]=i.offsetY,r.d()[f]=l,r.e()[f]=u.__inner[f].b()},ef:function(){var t=this.ah(),n=t.a();n.e(this.backingBrush());n.f(this.backingOutline());n.c(this.backingStrokeThickness());n.a(this.backingInnerExtent());n.b(this.backingOuterExtent())},ei:function(){var r=this.ah(),n=r.b(),u=this.al(),t,i;(n.e=this.targetValueInnerExtent(),n.b=this.targetValueInnerExtent(),n.f=this.targetValueOuterExtent(),n.c=this.targetValueOuterExtent(),n.i=this.targetValueBrush(),n.j=this.targetValueOutline(),n.h=this.targetValueStrokeThickness(),isNaN(this.targetValue()))||(t=u.i(this.targetValue()),i=this.targetValueBreadth()/2,n.g=t-i,n.d=t+i)},ej:function(){var e=this.ah().c(),f=this.al(),u=this.value(),i,r,n;u<=this.actualMinimumValue()||u>this.actualMaximumValue()||isNaN(u)||(i=this.actualMinimumValue(),isNaN(i)&&(i=this.actualMinimumValue()),r=this.value(),i<this.actualMinimumValue()&&(i=this.actualMinimumValue()),r>this.actualMaximumValue()&&(r=this.actualMaximumValue()),n=new t.eu,n.i=this.valueBrush(),n.j=this.valueOutline(),n.h=this.valueStrokeThickness(),n.g=f.i(i),n.d=f.i(r),n.e=this.valueInnerExtent(),n.b=this.valueInnerExtent(),n.f=this.valueOuterExtent(),n.c=this.valueOuterExtent(),e.ad(n))},gh:function(n,t){return t!=null&&t.count()>0?t.item(n%t.count()):null},es:function(i){var r=this,e=r.gs(),u=i.c(),o=r.au(),b=u.j(),ft=u.u(),et=u.t(),lt=u.ab(),at=u.v(),pt=r.as(),k=u.i(),ot=u.n(),st=u.m(),vt=u.aa(),yt=u.o(),c,f,d,s,l,a,g,nt,h,y,p,it,rt;for(o.e(!0),c=0;c<r.a5.count();c++)o.m(r.a5.__inner[c]);for(r.a5.clear(),f=r.bt(),d=r.cf(),s=0;s<b.length;s++){r.orientation()==1?(l=e.left()+f*ft,a=d-b[s],g=e.left()+f*et,nt=a):(l=e.left()+b[s],a=f*(1-ft),g=l,nt=f*(1-et));var v=o.n(),ht=new t.cl,tt=new t.a6;tt.__startPoint={__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};tt.__segments.add(function(){var i=new t.cy(1);return i.c({__x:g,__y:nt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());ht.b().add(tt);v.ak(ht);v.__stroke=lt;v.z(at);r.a5.add(v)}for(h=0;h<k.length;h++){r.orientation()==1?(y=e.left()+f*ot,p=d-k[h],it=e.left()+f*st,rt=p):(y=k[h],p=f*(1-ot),it=y,rt=f*(1-st));var w=o.n(),ct=new t.cl,ut=new t.a6;ut.__startPoint={__x:y,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};ut.__segments.add(function(){var i=new t.cy(1);return i.c({__x:it,__y:rt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());ct.b().add(ut);w.ak(ct);w.__stroke=vt;w.z(yt);r.a5.add(w)}o.e(!1)},ep:function(n){var u=this.gs(),i=n.c(),h=i.e(),c=i.d(),v=i.g(),y=i.h(),p=i.f(),w=i.c(),l=i.l(),f=this.aq(),e,t,o,s,r;for(f.e(!0),e=0;e<this.a2.count();e++)f.m(this.a2.__inner[e]);this.a2.clear();var b=i.z(),a=this.ce(),k=this.cf();for(t=0;t<c.length;t++){this.orientation()==1?(o=u.left()+a*l,s=u.top()+k-h[t]):(o=u.left()+h[t],s=u.top()+a*(1-l));r=f.n();r.aa(c[t]);this.view().bj(r,b);var nt=p[t],tt=w[t],d=v[t],g=y[t];this.view().ba(r,o+d,s+g);this.a2.add(r)}f.e(!1)},eq:function(n){var e=n.c(),r=this.at(),u,f,i,t;for(r.e(!0),u=0;u<this.a4.count();u++)r.m(this.a4.__inner[u]);this.a4.clear();var o=this.bt(),s=this.cf(),h=this.cj(),c=this.view().cb();for(c.ak(e.ac(h,o,s,this.orientation())),f=0;f<e.k().count();f++)i=e.k().__inner[f],t=r.n(),t.ak(i.k(h,o,s,this.orientation())),t.__fill=i.i,t.__stroke=i.j,t.z(i.h),this.a4.add(t);this.view().bi(this.a4);r.e(!1)},eo:function(n){var t=this.gr(),i=this.view().ca(),r=n.a(),u=this.orientation()==0?t.height():t.width(),f=this.orientation()==0?t.width():t.height(),e=r.g(u,f,this.orientation());i.ak(e);i.__fill=r.e();i.__stroke=r.f();i.z(r.c())},er:function(n){var t=this.view().cc();if(isNaN(this.targetValue())||this.targetValue()<this.actualMinimumValue()||this.targetValue()>this.actualMaximumValue()){t.ak(null);return}var i=n.b(),r=this.bt(),u=this.cf(),f=this.cj(),e=i.k(f,r,u,this.orientation());t.ak(e);t.__fill=i.i;t.__stroke=i.j;t.z(i.h)},et:function(n){var t=this.view().cd(),r=this.value();if(r<=this.actualMinimumValue()||r>this.actualMaximumValue()||isNaN(r)){t.ak(null);return}var u=n.c(),f=this.bt(),e=this.cf(),o=this.cj(),i=u.ad();t.ak(i.k(o,f,e,this.orientation()));t.__fill=i.i;t.__stroke=i.j;t.z(i.h)},ee:function(){this.aw(!0);this.view().bh()},ea:function(){this.aw(!0);this.view().bh()},bt:function(){return this.orientation()==0?this.az()?this.gt().height():this.gs().height():this.az()?this.gt().width():this.gs().width()},bv:function(){return this.orientation()==0?this.gt().width()*(this.scaleEndExtent()-this.scaleStartExtent()):this.gt().height()*(this.scaleEndExtent()-this.scaleStartExtent())},ce:function(){return this.orientation()==0?this.gt().height():this.gt().width()},cf:function(){return this.orientation()==0?this.gt().width():this.gt().height()},bw:function(){var n=this.scaleStartExtent();return this.orientation()==0?(this.isScaleInverted()&&(n=1-this.scaleEndExtent()),this.gt().left()+this.gt().width()*n):(this.isScaleInverted()&&(n=1-this.scaleEndExtent()),this.gt().top()+this.gt().height()*n)},cj:function(){var i=this.gs().left(),t;return(this.az()&&(i=0),t=this.scaleStartExtent(),this.orientation()==0)?(this.isScaleInverted()&&(t=1-this.scaleEndExtent()),{__x:i+this.gs().width()*t,__y:this.gs().top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(this.isScaleInverted()||(t=1-this.scaleEndExtent()),{__x:i,__y:this.gs().top()+this.gs().height()*t,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},ed:function(i,r,u){var s,f,e,o;switch(i){case"ValueBrush":case"TargetValueBrush":case"TargetValueOutline":case"BackingBrush":case"BackingOutline":case"TickBrush":case"MinorTickBrush":this.view().a0(i,r,u);break;case"RangeBrushes":this.view().a4(r,u);break;case"RangeOutlines":this.view().a5(r,u)}switch(i){case"TransitionDuration":this.ap().intervalMilliseconds(this.transitionDuration());this.view().bh();break;case"TransitionProgress":this.transitionProgress()>=1&&(this.ap().stop(),s=this.ah(),this.ah(this.ai()),this.ai(s),this.eg(),this.ei(),this.ej(),this.eh(),this.ef(),this.eo(this.ah()),this.eq(this.ah()),this.er(this.ah()),this.et(this.ah()),this.es(this.ah()),this.ep(this.ah()));this.ag().d(this.transitionProgress(),this.ai(),this.ah());this.eo(this.ag());this.eq(this.ag());this.er(this.ag());this.et(this.ag());this.es(this.ag());this.ep(this.ag());this.view().as();break;case"Value":case"ValueInnerExtent":case"ValueOuterExtent":case"ValueBrush":case"TargetValueBrush":case"TargetValueOutline":case"TargetValueStrokeThickness":case"TargetValueBreadth":case"TargetValueInnerExtent":case"TargetValueOuterExtent":case"BackingBrush":case"BackingOutline":case"TickBrush":case"MinorTickBrush":case"RangeBrushes":case"RangeOutlines":case"MergeViewPorts":case"TargetValue":case"TargetValueName":case"RangeInnerExtent":case"RangeOuterExtent":case"BackingStrokeThickness":case"BackingInnerExtent":case"BackingOuterExtent":case"Interval":case"LabelInterval":case"LabelExtent":case"LabelsPostInitial":case"LabelsPreTerminal":case"TicksPostInitial":case"TicksPreTerminal":case"TickStartExtent":case"TickEndExtent":case"TickStrokeThickness":case"MinorTickStartExtent":case"MinorTickEndExtent":case"MinorTickCount":case"MinorTickStrokeThickness":this.aw(!0);this.view().bh();break;case"Ranges":f=r;e=u;f!=null&&(f.collectionChanged=n.ig.Delegate.prototype.remove(f.collectionChanged,this.em.runOn(this)));e!=null&&(e.collectionChanged=n.ig.Delegate.prototype.combine(e.collectionChanged,this.em.runOn(this)));this.aw(!0);this.view().bh();break;case"Orientation":case"IsScaleInverted":case"MinimumValue":case"MaximumValue":case"ScaleEndExtent":case"ScaleStartExtent":this.actualMinimumValue(Math.min(this.minimumValue(),this.maximumValue()));this.actualMaximumValue(Math.max(this.minimumValue(),this.maximumValue()));o=this.bw();this.al(new t.ez(this.actualMinimumValue(),this.actualMaximumValue(),o,o+this.bv(),this.isScaleInverted()));this.aw(!0);this.view().bh();break;case"FontBrush":case"Font":this.view().br();this.aw(!0);this.view().bh()}},em:function(t,i){var r,u,f,e;if(i.oldItems()!=null)for(r=i.oldItems().getEnumerator();r.moveNext();)u=r.current(),u.propertyChanged=n.ig.Delegate.prototype.remove(u.propertyChanged,this.el.runOn(this));if(i.newItems()!=null)for(f=i.newItems().getEnumerator();f.moveNext();)e=f.current(),e.propertyChanged=n.ig.Delegate.prototype.combine(e.propertyChanged,this.el.runOn(this));this.aw(!0);this.view().bh()},el:function(){this.aw(!0);this.view().bh()},_aw:!1,aw:function(n){return arguments.length===1?(this._aw=n,n):this._aw},$type:new n.ig.Type("XamBulletGraph",t.$e1.$type)},!0);n.ig.util.defType("XamLinearGraphRange:ge","DependencyObject",{init:function(){t.$b1.init.call(this)},aa:function(){},z:function(n,i,r){this.aa(n,i,r);this.propertyChanged!=null&&this.propertyChanged(this,new t.em(n))},propertyChanged:null,name:function(n){return arguments.length===1?(this.g(t.$ge.nameProperty,n),n):this.c(t.$ge.nameProperty)},brush:function(n){return arguments.length===1?(this.g(t.$ge.brushProperty,n),n):this.c(t.$ge.brushProperty)},outline:function(n){return arguments.length===1?(this.g(t.$ge.outlineProperty,n),n):this.c(t.$ge.outlineProperty)},startValue:function(n){return arguments.length===1?(this.g(t.$ge.startValueProperty,n),n):this.c(t.$ge.startValueProperty)},endValue:function(n){return arguments.length===1?(this.g(t.$ge.endValueProperty,n),n):this.c(t.$ge.endValueProperty)},innerStartExtent:function(n){return arguments.length===1?(this.g(t.$ge.innerStartExtentProperty,n),n):this.c(t.$ge.innerStartExtentProperty)},innerEndExtent:function(n){return arguments.length===1?(this.g(t.$ge.innerEndExtentProperty,n),n):this.c(t.$ge.innerEndExtentProperty)},outerStartExtent:function(n){return arguments.length===1?(this.g(t.$ge.outerStartExtentProperty,n),n):this.c(t.$ge.outerStartExtentProperty)},outerEndExtent:function(n){return arguments.length===1?(this.g(t.$ge.outerEndExtentProperty,n),n):this.c(t.$ge.outerEndExtentProperty)},strokeThickness:function(n){return arguments.length===1?(this.g(t.$ge.strokeThicknessProperty,n),n):this.c(t.$ge.strokeThicknessProperty)},$type:new n.ig.Type("XamLinearGraphRange",t.$b1.$type,[t.$ek.$type])},!0);n.ig.util.defType("LinearGraphRangeCollection:e8","ObservableCollection$1",{init:function(){t.$ee.init.call(this,t.$ge.$type)},$type:new n.ig.Type("LinearGraphRangeCollection",t.$ee.$type.specialize(t.$ge.$type))},!0);n.ig.util.defType("LinearGraphTooltipDataContext:fx","DependencyObject",{init:function(){t.$b1.init.call(this)},item:function(n){return arguments.length===1?(this.g(t.$fx.itemProperty,n),n):this.c(t.$fx.itemProperty)},itemName:function(n){return arguments.length===1?(this.g(t.$fx.itemNameProperty,n),n):this.c(t.$fx.itemNameProperty)},outline:function(n){return arguments.length===1?(this.g(t.$fx.outlineProperty,n),n):this.c(t.$fx.outlineProperty)},brush:function(n){return arguments.length===1?(this.g(t.$fx.itemBrushProperty,n),n):this.c(t.$fx.itemBrushProperty)},thickness:function(n){return arguments.length===1?(this.g(t.$fx.thicknessProperty,n),n):this.c(t.$fx.thicknessProperty)},label:function(n){return arguments.length===1?(this.g(t.$fx.labelProperty,n),n):this.c(t.$fx.labelProperty)},n:function(n){this.propertyChanged!=null&&this.propertyChanged(this,new t.em(n))},propertyChanged:null,$type:new n.ig.Type("LinearGraphTooltipDataContext",t.$b1.$type,[t.$ek.$type])},!0);n.ig.util.defType("ToolTipInfo:gr","Object",{init:function(){n.ig.$op.init.call(this)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("ToolTipInfo",n.ig.$ot)},!0);n.ig.util.defType("FormatLinearGraphLabelEventArgs:gt","EventArgs",{init:function(){t.$ei.init.call(this)},actualMinimumValue:0,actualMaximumValue:0,value:0,label:null,$type:new n.ig.Type("FormatLinearGraphLabelEventArgs",t.$ei.$type)},!0);n.ig.util.defType("AlignLinearGraphLabelEventArgs:gv","FormatLinearGraphLabelEventArgs",{init:function(){t.$gt.init.call(this)},width:0,height:0,offsetX:0,offsetY:0,$type:new n.ig.Type("AlignLinearGraphLabelEventArgs",t.$gt.$type)},!0);n.ig.util.defType("XamBulletGraphView:fi","Object",{am:0,al:0,init:function(i){this.c=null;this.d=null;this.b4=null;this.b5=null;this.n=!1;this.l=["value","targetvalue","backing","scale","tick","minortick","label"];this.aq=null;this.ag=-1;this.bw=function(){var n=new t.bt;return n.fill("black"),n}();this.o=!1;this.ap=null;n.ig.$op.init.call(this);this.j(i);this.s=new t.fa(String,t.$fa.$type.specialize(String,t.$bt.$type),0);this.b8=new t.cd;this.b9=new t.cd;this.b7=new t.cd;this.b6=new t.cd;this.y(new t.x(t.$cd.$type,0));this.x(new t.x(t.$cd.$type,0));this.u(new t.x(t.$c7.$type,0));this.v(new t.x(t.$c7.$type,0))},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_ai:null,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},ak:null,_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},a3:function(){this.h(new t.fx);this.ae=this.j().showToolTipTimeout()},b9:null,b8:null,b7:null,b6:null,p:function(){return!0},cc:function(){return this.b8},cd:function(){return this.b9},cb:function(){return this.b7},ca:function(){return this.b6},b0:null,b1:null,bx:null,by:null,b2:null,b3:null,bz:null,a:null,b:null,c:null,d:null,b4:null,b5:null,n:!1,s:null,l:null,av:function(){var i=this,a,r,f,e;i.n=!0;var c=["#778899","black","#EBEDEF","#617583","#617583","rgba(100,107,114,.74)","rgba(100,107,114,.74)"],l=["#778899","black","#B2B9C0","#B2B9C0",null,null,null],y=function(){var i=new t.x(n.ig.Array.prototype.$type,0);return i.add(c),i.add(l),i}();for(i.s.clear(),a=i.l.length,r=0;r<a;r++){var o=i.l[r],v="ui-bulletgraph-"+o,s="ui-bulletgraph-"+o+"-fill",h="ui-bulletgraph-"+o+"-outline",u;(function(){var n=t.$fi.t.tryGetValue(s,u);return u=n.value,n.ret})()||(u=t.$dr.f(s,v,"background-color",i.aj(),c[r]),t.$fi.t.add(s,u)),function(){var n=t.$fi.t.tryGetValue(h,f);return f=n.value,n.ret}()||(f=t.$dr.f(h,v,"border-top-color",i.aj(),l[r]),t.$fi.t.add(h,f));e=new t.fa(String,t.$bt.$type,0);e.item("fill",u);e.item("outline",f);i.s.item(i.l[r],e)}i.bq();(t.$fi.e==null||t.$fi.f==null)&&function(){var n=t.$dr.b("ui-bulletgraph-range-fill-palette-","ui-bulletgraph-range-outline-palette-","ui-bulletgraph-range-palette-",i.aj(),t.$fi.e,t.$fi.f,function(){var n=[];return n.add("#216E99"),n.add("#216E99"),n.add("#44acd6"),n.add("#44acd6"),n.add("#cecece"),n.add("#cecece"),n}());return t.$fi.e=n.brushes,t.$fi.f=n.outlines,n.ret}();i.a=t.$fi.e;i.b=t.$fi.f;i.c==null&&i.j().rangeBrushes(i.a);i.d==null&&i.j().rangeOutlines(i.b);i.n=!1},bq:function(){var i,n,t;for(this.n=!0,i=this.l.length,n=0;n<i;n++)t=this.l[n],this.bp(t,this.s.item(t));this.n=!1},bp:function(n,t){var i=t.item("fill"),r=t.item("outline");switch(n){case"targetvalue":this.b0==null&&this.j().targetValueBrush(i);this.b1==null&&this.j().targetValueOutline(r);break;case"value":this.b4==null&&this.j().valueBrush(i);this.b5==null&&this.j().valueOutline(r);break;case"backing":this.bx==null&&this.j().backingBrush(i);this.by==null&&this.j().backingOutline(r);break;case"tick":this.b3==null&&this.j().tickBrush(i);break;case"minortick":this.bz==null&&this.j().minorTickBrush(i);break;case"label":this.bw=i}},a0:function(n,t,i){var u=t,r=i;if(!this.n){switch(n){case"TargetValueBrush":this.b0=r;break;case"TargetValueOutline":this.b1=r;break;case"BackingBrush":this.bx=r;break;case"BackingOutline":this.by=r;break;case"ValueBrush":this.b4=r;break;case"ValueOutline":this.b5=r;break;case"TickBrush":this.b3=r;break;case"MinorTickBrush":this.bz=r}r==null&&this.bq()}},a4:function(n,t){this.n||(this.c=t,this.c==null&&this.j().rangeBrushes(this.a))},a5:function(n,t){this.n||(this.d=t,this.d==null&&this.j().rangeOutlines(this.b))},m:function(i,r){var f=this.ak,u;f==null&&(f=this.ak=n("<span style='position:absolute;display:none' />"),n("body").append(this.ak));for(var e=r.length,o=e,s=new Array(o);o-->0;)s[o]=r[o]=="font"?null:f.css(r[o]);for(f.addClass(i);e-->0;)u=r[e],u=u=="font"?t.$fy.c(f):f.css(u),r[e]=u==null||u.length==0||u=="null"||u=="transparent"||u==s[e]?null:u;return f.removeClass(i),r},bl:function(){this.av();this.br();this.bh()},_r:!1,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_q:!1,q:function(n){return arguments.length===1?(this._q=n,n):this._q},ah:null,_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},ad:0,af:0,ao:function(i){var r=t.$fz.c3(this.aj());return{__x:i.__x-r.left(),__y:i.__y-r.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},aq:null,ag:0,an:null,ae:0,bk:function(n,t,i,r){this.an=n;this.ag=i;this.aq=r;this.bg();this.af=window.setTimeout(this.bs.runOn(this),this.ae);this.q(!0)},aw:function(){if(this.q()&&(window.clearTimeout(this.af),this.q(!1)),this.r()){var n=this.j().toolTip();window.clearTimeout(this.ad);n.hide();this.r(!1);this.h(null)}this.ae=this.j().showToolTipTimeout()},bg:function(){if(this.q()&&window.clearTimeout(this.af),this.r()){var t=this.j().toolTip();window.clearTimeout(this.ad);t.hide();this.r(!1);this.ae=n.ig.intDivide(this.j().showToolTipTimeout(),2)}},bs:function(){var i=this,l,e,r;i.q()&&(window.clearTimeout(i.af),i.q(!1));var s=i.ag,f=i.aq,h=i.an;i.ad=window.setTimeout(i.aw.runOn(i),10*i.j().showToolTipTimeout());l=i.j().ranges().__inner[s];i.ah!=i.j().toolTip()&&(i.ah!=null&&i.ah.remove(),i.ah=i.j().toolTip(),i.ah.css("position","absolute"),i.aj().append(i.ah));i.h(i.g(f,s));var a=i.h(),c=i.ah,v=f;if(c.updateToolTip&&c.updateToolTip(a,v),e=i.ah.find(".ui-bulletgraph-"+f+"-tooltip"),e!=null&&e.length>0){var o=function(){var n=[];return n.add("border-color"),n.add("border-width"),n.add("border-style"),n.add("border-radius"),n.add("background-color"),n.add("padding"),n.add("font-weight"),n}(),y=function(){var n=new t.x(String,0);return n.add(i.h().brush().color().colorString()),n.add("2px"),n.add("solid"),n.add("4px"),n.add("rgba(230, 230, 230, 0.74)"),n.add("4px"),n.add("bold"),n}(),p=new t.fa(String,String,0),u=new Array(o.length);for(n.ig.Array.prototype.copy(o,0,u,0,o.length),i.m("ui-bulletgraph-"+f+"-tooltip",u),r=0;r<u.length;r++)e.css(o[r],u[r]==null?y.__inner[r]:u[r])}i.ah.css("top",(h.__y+15).toString()+"px").css("left",(h.__x+15).toString()+"px");i.ah.show();i.r(!0)},g:function(n,i){var r=new t.fx,u,f,e;switch(n){case"range":u=this.j().ranges().__inner[i];r.item(u);r.itemName(u.name());r.label(u.name()+": "+u.startValue().toString()+"-"+u.endValue().toString());f=u.brush();e=u.outline();r.brush(f!=null?f:this.j().gh(i,this.a));r.outline(e!=null?e:this.j().gh(i,this.b));r.thickness(u.strokeThickness());break;case"value":r.item(this.j().value());r.itemName(this.j().valueName());r.label(this.j().valueName()!=null?this.j().valueName()+": "+this.j().value().toString():this.j().value().toString());r.brush(this.j().valueBrush());r.outline(this.j().valueOutline());r.thickness(this.j().valueStrokeThickness());break;case"targetvalue":r.item(this.j().targetValue());r.itemName(this.j().targetValueName());r.label(this.j().targetValueName()!=null?this.j().targetValueName()+": "+this.j().targetValue().toString():this.j().targetValue().toString());r.brush(this.j().targetValueBrush());r.outline(this.j().targetValueOutline());r.thickness(this.j().targetValueStrokeThickness())}return r},a1:function(i){var e=n(i),r,u,f,o;this.aj(e);r=Math.round(e.width());u=Math.round(e.height());this.aj().css("position","relative");f=n("<canvas style='position:absolute'><\/canvas>");this.aj().append(f);this.am=r;this.al=u;f.attr("width",r.toString());f.attr("height",u.toString());this.ak==null&&(this.ak=n("<span style='position:absolute;display:none' />"));this.aj().append(this.ak);this.j().gt(new t.a3(0,0,0,r,u));this.j().gr(new t.a3(0,0,0,r,u));this.ai(f);o=this.ai()[0].getContext("2d");this.k(new t.fj(new t.gi,o));this.av();this.br();this.k().z(this.ap);this.bf()},a2:function(){var n=Math.round(this.aj().width()),i=Math.round(this.aj().height());this.j().gt(new t.a3(0,0,0,n,i));this.j().gr(new t.a3(0,0,0,n,i))},as:function(){this.bf()},w:null,bi:function(n){this.w=n},bf:function(){var n,t,i;if((this.am!=this.j().gt().width()||this.al!=this.j().gt().height())&&(this.ai().attr("width",this.j().gt().width().toString()),this.ai().attr("height",this.j().gt().height().toString()),this.am=Math.round(this.j().gt().width()),this.al=Math.round(this.j().gt().height())),this.k().i(this.j().gt().left(),this.j().gt().top(),this.j().gt().width(),this.j().gt().height()),this.k().q(this.b6),this.w!=null)for(n=0;n<this.w.count();n++)this.k().q(this.w.__inner[n]);for(t=0;t<this.u().count();t++)this.k().z(this.ap),this.k().u(this.u().__inner[t]);for(i=0;i<this.x().count();i++)this.k().q(this.x().__inner[i]);this.k().q(this.b9);this.k().q(this.b8)},br:function(){this.ap=this.j().font()!=null?this.j().font():t.$fy.c(this.aj());this.z=this.aa(this.ap);this.j().fontBrush()==null&&(this.bv=new t.bt,this.bv.__fill=this.aj().css("color"),this.j().fontBrush(this.bv));this.k()!=null&&this.k().z(this.ap)},ab:function(i){var r=n.ig.util.cast(t.$c7.$type,i);return r!=null&&r.aa()!=null?this.k().d(r.aa())+0:0},cg:function(n){isNaN(this.z)&&(this.z=this.aa(null));var i=this.ab(n),r=this.z;return new t.a4(i,r)},bw:null,bj:function(n,t){t!=null?n.ab(t):n.ab(this.bw)},ba:function(n,t,i){n.l(t);n.m(i)},a9:function(){},bb:function(){},aa:function(t){var i=n("<span>M<\/span>"),u=n("body"),r;return u.append(i),t!=null&&i.css("font",t),r=i.attr("offsetHeight"),isNaN(r)&&(r=i[0].offsetHeight),i.remove(),parseInt(r)},o:!1,ap:null,bv:null,z:0,bh:function(){this.o||(this.o=!0,window.setTimeout(this.ar.runOn(this),0))},ar:function(){this.o&&(this.o=!1,this.j().d7())},flush:function(){this.o&&this.ar()},at:function(i){var a,f,r,v,u,e,o,s,h,c,l,y;for(i.scalePath(new t.gq(1,"Scale",this.b7)),i.targetValuePath(new t.gq(1,"TargetValue",this.b8)),i.valuePath(new t.gq(1,"Value",this.b9)),i.backingPath(new t.gq(1,"Backing",this.b6)),a=this.ap,f=this.u().getEnumerator();f.moveNext();)r=f.current(),r.__visibility==0&&(v=t.$fy.a(r,a),u=new t.dh,u.labelValue(r.aa()),u.labelPosition({__x:r.l(),__y:r.m(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u.labelSize(this.cg(r)),u.appearance(t.$bs.fromTextElement(r,v)),i.scaleLabels().add(u));for(e=this.x().getEnumerator();e.moveNext();)o=e.current(),o.__visibility==0&&(s=new t.di,s.tickPath(new t.gq(1,"tickmarks",o)),i.scaleTickmarks().add(s));for(h=this.w.getEnumerator();h.moveNext();)c=h.current(),c.__visibility==0&&(l=new t.dj,y=new t.gq(1,"range",c),l.rangePath(y),i.ranges().add(l))},bc:function(n){n.__visibility=0},bd:function(n){n.__visibility=1},be:function(n){this.y().remove(n)},cf:function(){var n=new t.cd;return this.y().add(n),n},bm:function(n){n.__visibility=0},bn:function(n){n.__visibility=1},bo:function(n){this.v().remove(n)},bu:function(){var n=new t.c7;return this.v().add(n),n},a6:function(n){n.__visibility=0},a7:function(n){n.__visibility=1},a8:function(n){this.x().remove(n)},ce:function(){var n=new t.cd;return this.x().add(n),n},ax:function(n){n.__visibility=0},ay:function(n){n.__visibility=1},az:function(n){this.u().remove(n)},bt:function(){var n=new t.c7;return this.u().add(n),n},i:function(){var n=this;return n.h()==null?null:function(){var i=new t.gr;return i.b(n.ag),i.c(n.an),i.d(n.aq),i.a(n.h()),i}()},$type:new n.ig.Type("XamBulletGraphView",n.ig.$ot)},!0);n.ig.util.defType("LinearScaleVisualData:dc","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("LinearScaleVisualData",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphScaleLabelVisualData:dh","Object",{init:function(){n.ig.$op.init.call(this)},_labelValue:null,labelValue:function(n){return arguments.length===1?(this._labelValue=n,n):this._labelValue},_labelSize:null,labelSize:function(n){return arguments.length===1?(this._labelSize=n,n):this._labelSize},_labelPosition:null,labelPosition:function(n){return arguments.length===1?(this._labelPosition=n,n):this._labelPosition},_appearance:null,appearance:function(n){return arguments.length===1?(this._appearance=n,n):this._appearance},scaleByViewport:function(i){this.labelPosition({__x:(this.labelPosition().__x-i.left())/i.width(),__y:(this.labelPosition().__y-i.top())/i.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.labelSize(new t.a4(this.labelSize().b()/i.width(),this.labelSize().a()/i.height()))},serialize:function(){return"{ labelValue: '"+this.labelValue()+"', labelSize: { width: "+this.labelSize().b()+", height: "+this.labelSize().a()+"}, labelPosition: { x: "+this.labelPosition().__x+", y: "+this.labelPosition().__y+"}, appearance: "+this.appearance().serialize()+"}"},$type:new n.ig.Type("LinearGraphScaleLabelVisualData",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphScaleLabelVisualDataList:dd","List$1",{init:function(){t.$x.init.call(this,t.$dh.$type)},$type:new n.ig.Type("LinearGraphScaleLabelVisualDataList",t.$x.$type.specialize(t.$dh.$type))},!0);n.ig.util.defType("LinearGraphScaleTickmarkVisualData:di","Object",{init:function(){n.ig.$op.init.call(this)},_tickPath:null,tickPath:function(n){return arguments.length===1?(this._tickPath=n,n):this._tickPath},serialize:function(){return"{ tickPath: "+this.tickPath().serialize()+"}"},$type:new n.ig.Type("LinearGraphScaleTickmarkVisualData",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphScaleTickmarkVisualDataList:de","List$1",{init:function(){t.$x.init.call(this,t.$di.$type)},$type:new n.ig.Type("LinearGraphScaleTickmarkVisualDataList",t.$x.$type.specialize(t.$di.$type))},!0);n.ig.util.defType("LinearGraphRangeVisualData:dj","ToolTipItemVisualData",{init:function(){t.$bh.init.call(this)},_rangePath:null,rangePath:function(n){return arguments.length===1?(this._rangePath=n,n):this._rangePath},serialize:function(){return"{ rangePath: "+this.rangePath().serialize()+", type: '"+this.type()+"'}"},type:function(){return"range"},$type:new n.ig.Type("LinearGraphRangeVisualData",t.$bh.$type)},!0);n.ig.util.defType("LinearGraphRangeVisualDataList:df","List$1",{init:function(){t.$x.init.call(this,t.$dj.$type)},$type:new n.ig.Type("LinearGraphRangeVisualDataList",t.$x.$type.specialize(t.$dj.$type))},!0);n.ig.util.defType("LinearGraphToolTipVisualData:dg","Object",{init:function(){n.ig.$op.init.call(this)},_item:null,item:function(n){return arguments.length===1?(this._item=n,n):this._item},_outline:null,outline:function(n){return arguments.length===1?(this._outline=n,n):this._outline},_itemBrush:null,itemBrush:function(n){return arguments.length===1?(this._itemBrush=n,n):this._itemBrush},_thickness:0,thickness:function(n){return arguments.length===1?(this._thickness=n,n):this._thickness},serialize:function(){var n=new t.br;return n.d("{ item: "),this.item()!=null&&n.d(this.item().serialize()),n.d(", "),n.d("outline: "),n.d(t.$bs.serializeColor(this.outline())),n.d(", "),n.d("itemBrush: "),n.d(t.$bs.serializeColor(this.itemBrush())),n.d(", "),n.d("thickness: "),n.d(this.thickness().toString()),n.d("}"),n.b()},$type:new n.ig.Type("LinearGraphToolTipVisualData",n.ig.$ot)},!0);t.$dn.scaleStart=0;t.$dn.scaleEnd=1;t.$dm.horizontal=0;t.$dm.vertical=1;t.$dl.custom=0;t.$dl.rectangle=1;t.$dl.triangle=2;t.$dl.needle=3;t.$dl.trapezoid=4;t.$e0.dx="TransitionProgress";t.$e0.c6="Orientation";t.$e0.orientationProperty=t.$b3.i("Orientation",t.$dm.$type,t.$e0.$type,new t.b4(2,0,function(n,t){n.ed("Orientation",t.d(),t.c())}));t.$e0.db="Ranges";t.$e0.rangesProperty=t.$b3.i("Ranges",t.$e8.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("Ranges",t.d(),t.c())}));t.$e0.c7="RangeBrushes";t.$e0.rangeBrushesProperty=t.$b3.i("RangeBrushes",t.$ed.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("RangeBrushes",t.d(),t.c())}));t.$e0.da="RangeOutlines";t.$e0.rangeOutlinesProperty=t.$b3.i("RangeOutlines",t.$ed.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("RangeOutlines",t.d(),t.c())}));t.$e0.c0="MinimumValue";t.$e0.minimumValueProperty=t.$b3.i("MinimumValue",Number,t.$e0.$type,new t.b4(2,0,function(n,t){n.ed("MinimumValue",t.d(),t.c())}));t.$e0.cy="MaximumValue";t.$e0.maximumValueProperty=t.$b3.i("MaximumValue",Number,t.$e0.$type,new t.b4(2,100,function(n,t){n.ed("MaximumValue",t.d(),t.c())}));t.$e0.dm="TargetValue";t.$e0.targetValueProperty=t.$b3.i("TargetValue",Number,t.$e0.$type,new t.b4(2,NaN,function(n,t){n.ed("TargetValue",t.d(),t.c())}));t.$e0.dj="TargetValueName";t.$e0.targetValueNameProperty=t.$b3.i("TargetValueName",String,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("TargetValueName",t.d(),t.c())}));t.$e0.d4="Value";t.$e0.valueProperty=t.$b3.i("Value",Number,t.$e0.$type,new t.b4(2,NaN,function(n,t){n.ed("Value",t.d(),t.c())}));t.$e0.d1="ValueName";t.$e0.valueNameProperty=t.$b3.i("ValueName",String,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("ValueName",t.d(),t.c())}));t.$e0.c8="RangeInnerExtent";t.$e0.rangeInnerExtentProperty=t.$b3.i("RangeInnerExtent",Number,t.$e0.$type,new t.b4(2,.2,function(n,t){n.ed("RangeInnerExtent",t.d(),t.c())}));t.$e0.c9="RangeOuterExtent";t.$e0.rangeOuterExtentProperty=t.$b3.i("RangeOuterExtent",Number,t.$e0.$type,new t.b4(2,.95,function(n,t){n.ed("RangeOuterExtent",t.d(),t.c())}));t.$e0.dz="ValueInnerExtent";t.$e0.valueInnerExtentProperty=t.$b3.i("ValueInnerExtent",Number,t.$e0.$type,new t.b4(2,.5,function(n,t){n.ed("ValueInnerExtent",t.d(),t.c())}));t.$e0.d2="ValueOuterExtent";t.$e0.valueOuterExtentProperty=t.$b3.i("ValueOuterExtent",Number,t.$e0.$type,new t.b4(2,.65,function(n,t){n.ed("ValueOuterExtent",t.d(),t.c())}));t.$e0.cs="Interval";t.$e0.intervalProperty=t.$b3.i("Interval",Number,t.$e0.$type,new t.b4(2,NaN,function(n,t){n.ed("Interval",t.d(),t.c())}));t.$e0.dr="TicksPostInitial";t.$e0.ticksPostInitialProperty=t.$b3.i("TicksPostInitial",Number,t.$e0.$type,new t.b4(2,0,function(n,t){n.ed("TicksPostInitial",t.d(),t.c())}));t.$e0.ds="TicksPreTerminal";t.$e0.ticksPreTerminalProperty=t.$b3.i("TicksPreTerminal",Number,t.$e0.$type,new t.b4(2,0,function(n,t){n.ed("TicksPreTerminal",t.d(),t.c())}));t.$e0.cv="LabelInterval";t.$e0.labelIntervalProperty=t.$b3.i("LabelInterval",Number,t.$e0.$type,new t.b4(2,NaN,function(n,t){n.ed("LabelInterval",t.d(),t.c())}));t.$e0.be=0;t.$e0.cu="LabelExtent";t.$e0.labelExtentProperty=t.$b3.i("LabelExtent",Number,t.$e0.$type,new t.b4(2,0,function(n,t){n.ed("LabelExtent",t.d(),t.c())}));t.$e0.cw="LabelsPostInitial";t.$e0.labelsPostInitialProperty=t.$b3.i("LabelsPostInitial",Number,t.$e0.$type,new t.b4(2,0,function(n,t){n.ed("LabelsPostInitial",t.d(),t.c())}));t.$e0.cx="LabelsPreTerminal";t.$e0.labelsPreTerminalProperty=t.$b3.i("LabelsPreTerminal",Number,t.$e0.$type,new t.b4(2,0,function(n,t){n.ed("LabelsPreTerminal",t.d(),t.c())}));t.$e0.c2="MinorTickCount";t.$e0.minorTickCountProperty=t.$b3.i("MinorTickCount",Number,t.$e0.$type,new t.b4(2,3,function(n,t){n.ed("MinorTickCount",t.d(),t.c())}));t.$e0.b7=.1;t.$e0.dt="TickStartExtent";t.$e0.tickStartExtentProperty=t.$b3.i("TickStartExtent",Number,t.$e0.$type,new t.b4(2,.1,function(n,t){n.ed("TickStartExtent",t.d(),t.c())}));t.$e0.dq="TickEndExtent";t.$e0.tickEndExtentProperty=t.$b3.i("TickEndExtent",Number,t.$e0.$type,new t.b4(2,.2,function(n,t){n.ed("TickEndExtent",t.d(),t.c())}));t.$e0.du="TickStrokeThickness";t.$e0.tickStrokeThicknessProperty=t.$b3.i("TickStrokeThickness",Number,t.$e0.$type,new t.b4(2,2,function(n,t){n.ed("TickStrokeThickness",t.d(),t.c())}));t.$e0.dp="TickBrush";t.$e0.tickBrushProperty=t.$b3.i("TickBrush",t.$bt.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("TickBrush",t.d(),t.c())}));t.$e0.cq="FontBrush";t.$e0.fontBrushProperty=t.$b3.i("FontBrush",t.$bt.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("FontBrush",t.d(),t.c())}));t.$e0.dy="ValueBrush";t.$e0.valueBrushProperty=t.$b3.i("ValueBrush",t.$bt.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("ValueBrush",t.d(),t.c())}));t.$e0.d3="ValueOutline";t.$e0.valueOutlineProperty=t.$b3.i("ValueOutline",t.$bt.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("ValueOutline",t.d(),t.c())}));t.$e0.d5="ValueStrokeThickness";t.$e0.valueStrokeThicknessProperty=t.$b3.i("ValueStrokeThickness",Number,t.$e0.$type,new t.b4(2,1,function(n,t){n.ed("ValueStrokeThickness",t.d(),t.c())}));t.$e0.c4="MinorTickStartExtent";t.$e0.minorTickStartExtentProperty=t.$b3.i("MinorTickStartExtent",Number,t.$e0.$type,new t.b4(2,.06,function(n,t){n.ed("MinorTickStartExtent",t.d(),t.c())}));t.$e0.c3="MinorTickEndExtent";t.$e0.minorTickEndExtentProperty=t.$b3.i("MinorTickEndExtent",Number,t.$e0.$type,new t.b4(2,.2,function(n,t){n.ed("MinorTickEndExtent",t.d(),t.c())}));t.$e0.c5="MinorTickStrokeThickness";t.$e0.minorTickStrokeThicknessProperty=t.$b3.i("MinorTickStrokeThickness",Number,t.$e0.$type,new t.b4(2,1,function(n,t){n.ed("MinorTickStrokeThickness",t.d(),t.c())}));t.$e0.c1="MinorTickBrush";t.$e0.minorTickBrushProperty=t.$b3.i("MinorTickBrush",t.$bt.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("MinorTickBrush",t.d(),t.c())}));t.$e0.ct="IsScaleInverted";t.$e0.isScaleInvertedProperty=t.$b3.i("IsScaleInverted",t.$d.$type,t.$e0.$type,new t.b4(2,!1,function(n,t){n.ed("IsScaleInverted",t.d(),t.c())}));t.$e0.ck="BackingBrush";t.$e0.backingBrushProperty=t.$b3.i("BackingBrush",t.$bt.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("BackingBrush",t.d(),t.c())}));t.$e0.cn="BackingOutline";t.$e0.backingOutlineProperty=t.$b3.i("BackingOutline",t.$bt.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("BackingOutline",t.d(),t.c())}));t.$e0.co="BackingStrokeThickness";t.$e0.backingStrokeThicknessProperty=t.$b3.i("BackingStrokeThickness",Number,t.$e0.$type,new t.b4(2,2,function(n,t){n.ed("BackingStrokeThickness",t.d(),t.c())}));t.$e0.cl="BackingInnerExtent";t.$e0.backingInnerExtentProperty=t.$b3.i("BackingInnerExtent",Number,t.$e0.$type,new t.b4(2,0,function(n,t){n.ed("BackingInnerExtent",t.d(),t.c())}));t.$e0.cm="BackingOuterExtent";t.$e0.backingOuterExtentProperty=t.$b3.i("BackingOuterExtent",Number,t.$e0.$type,new t.b4(2,1,function(n,t){n.ed("BackingOuterExtent",t.d(),t.c())}));t.$e0.dd="ScaleStartExtent";t.$e0.scaleStartExtentProperty=t.$b3.i("ScaleStartExtent",Number,t.$e0.$type,new t.b4(2,.05,function(n,t){n.ed("ScaleStartExtent",t.d(),t.c())}));t.$e0.dc="ScaleEndExtent";t.$e0.scaleEndExtentProperty=t.$b3.i("ScaleEndExtent",Number,t.$e0.$type,new t.b4(2,.95,function(n,t){n.ed("ScaleEndExtent",t.d(),t.c())}));t.$e0.dg="TargetValueBrush";t.$e0.targetValueBrushProperty=t.$b3.i("TargetValueBrush",t.$bt.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("TargetValueBrush",t.d(),t.c())}));t.$e0.df="TargetValueBreadth";t.$e0.targetValueBreadthProperty=t.$b3.i("TargetValueBreadth",Number,t.$e0.$type,new t.b4(2,3,function(n,t){n.ed("TargetValueBreadth",t.d(),t.c())}));t.$e0.dh="TargetValueInnerExtent";t.$e0.targetValueInnerExtentProperty=t.$b3.i("TargetValueInnerExtent",Number,t.$e0.$type,new t.b4(2,.3,function(n,t){n.ed("TargetValueInnerExtent",t.d(),t.c())}));t.$e0.dk="TargetValueOuterExtent";t.$e0.targetValueOuterExtentProperty=t.$b3.i("TargetValueOuterExtent",Number,t.$e0.$type,new t.b4(2,.85,function(n,t){n.ed("TargetValueOuterExtent",t.d(),t.c())}));t.$e0.dl="TargetValueOutline";t.$e0.targetValueOutlineProperty=t.$b3.i("TargetValueOutline",t.$bt.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("TargetValueOutline",t.d(),t.c())}));t.$e0.dn="TargetValueStrokeThickness";t.$e0.targetValueStrokeThicknessProperty=t.$b3.i("TargetValueStrokeThickness",Number,t.$e0.$type,new t.b4(2,1,function(n,t){n.ed("TargetValueStrokeThickness",t.d(),t.c())}));t.$e0.cz="MergeViewPorts";t.$e0.fb=t.$b3.i("MergeViewPorts",t.$d.$type,t.$e0.$type,new t.b4(2,!1,function(n,t){n.ed("MergeViewPorts",t.d(),t.c())}));t.$e0.dw="TransitionDuration";t.$e0.transitionDurationProperty=t.$b3.i("TransitionDuration",n.ig.Number.prototype.$type,t.$e0.$type,new t.b4(2,0,function(n,t){n.ed("TransitionDuration",t.d(),t.c())}));t.$e0.de="ShowToolTipTimeout";t.$e0.showToolTipTimeoutProperty=t.$b3.i("ShowToolTipTimeout",n.ig.Number.prototype.$type,t.$e0.$type,new t.b4(2,500,function(n,t){n.ed("ShowToolTipTimeout",t.d(),t.c())}));t.$e0.dv="ToolTip";t.$e0.toolTipProperty=t.$b3.i("ToolTip",n.ig.$op.$type,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("ToolTip",t.d(),t.c())}));t.$e0.cr="Font";t.$e0.fontProperty=t.$b3.i("Font",String,t.$e0.$type,new t.b4(2,null,function(n,t){n.ed("Font",t.d(),t.c())}));t.$ge.t="Name";t.$ge.nameProperty=t.$b3.i("Name",String,t.$ge.$type,new t.b4(2,null,function(n,t){n.z("Name",t.d(),t.c())}));t.$ge.o="Brush";t.$ge.brushProperty=t.$b3.i("Brush",t.$bt.$type,t.$ge.$type,new t.b4(2,null,function(n,t){n.z("Brush",t.d(),t.c())}));t.$ge.w="Outline";t.$ge.outlineProperty=t.$b3.i("Outline",t.$bt.$type,t.$ge.$type,new t.b4(2,null,function(n,t){n.z("Outline",t.d(),t.c())}));t.$ge.x="StartValue";t.$ge.startValueProperty=t.$b3.i("StartValue",Number,t.$ge.$type,new t.b4(2,NaN,function(n,t){n.z("StartValue",t.d(),t.c())}));t.$ge.p="EndValue";t.$ge.endValueProperty=t.$b3.i("EndValue",Number,t.$ge.$type,new t.b4(2,NaN,function(n,t){n.z("EndValue",t.d(),t.c())}));t.$ge.r="InnerStartExtent";t.$ge.innerStartExtentProperty=t.$b3.i("InnerStartExtent",Number,t.$ge.$type,new t.b4(2,NaN,function(n,t){n.z("InnerStartExtent",t.d(),t.c())}));t.$ge.q="InnerEndExtent";t.$ge.innerEndExtentProperty=t.$b3.i("InnerEndExtent",Number,t.$ge.$type,new t.b4(2,NaN,function(n,t){n.z("InnerEndExtent",t.d(),t.c())}));t.$ge.v="OuterStartExtent";t.$ge.outerStartExtentProperty=t.$b3.i("OuterStartExtent",Number,t.$ge.$type,new t.b4(2,NaN,function(n,t){n.z("OuterStartExtent",t.d(),t.c())}));t.$ge.u="OuterEndExtent";t.$ge.outerEndExtentProperty=t.$b3.i("OuterEndExtent",Number,t.$ge.$type,new t.b4(2,NaN,function(n,t){n.z("OuterEndExtent",t.d(),t.c())}));t.$ge.y="StrokeThickness";t.$ge.strokeThicknessProperty=t.$b3.i("StrokeThickness",Number,t.$ge.$type,new t.b4(2,1,function(n,t){n.z("StrokeThickness",t.d(),t.c())}));t.$fx.labelProperty=t.$b3.i("Label",String,t.$fx.$type,new t.b4(2,null,function(i,r){return n.ig.util.cast(t.$fx.$type,i).n("Label",r.d(),r.c())}));t.$fx.itemProperty=t.$b3.i("Item",n.ig.$op.$type,t.$fx.$type,new t.b4(2,null,function(i,r){return n.ig.util.cast(t.$fx.$type,i).n("Item",r.d(),r.c())}));t.$fx.itemNameProperty=t.$b3.i("ItemName",n.ig.$op.$type,t.$fx.$type,new t.b4(2,null,function(i,r){return n.ig.util.cast(t.$fx.$type,i).n("ItemName",r.d(),r.c())}));t.$fx.itemBrushProperty=t.$b3.i("ItemBrush",t.$bt.$type,t.$fx.$type,new t.b4(2,null,function(i,r){return n.ig.util.cast(t.$fx.$type,i).n("ItemBrush",r.d(),r.c())}));t.$fx.m="Thickness";t.$fx.thicknessProperty=t.$b3.i("Thickness",Number,t.$fx.$type,new t.b4(2,0,function(i,r){return n.ig.util.cast(t.$fx.$type,i).n("Thickness",r.d(),r.c())}));t.$fx.l="Outline";t.$fx.outlineProperty=t.$b3.i("Outline",t.$bt.$type,t.$fx.$type,new t.b4(2,null,function(i,r){n.ig.util.cast(t.$fx.$type,i).n("Outline",r.d(),r.c())}));t.$fi.t=new t.fa(String,t.$bt.$type,0);t.$fi.e=null;t.$fi.f=null;t.$fi.ac=0;n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper,n.ig.RearrangedList$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["ofType$1","cast$1"]]]);n.ig.util.extCopy(n.ig.ArrayUtil,[[[n.ig.EdgeClipper,n.ig.RearrangedList$1],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);n.ig.util.extCopy(n.ig.BrushUtil,[[[],["getLightened"]]]);n.ig.util.extCopy(n.ig.ColorUtil,[[[],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);n.ig.util.extCopy(n.ig.Extensions,[[[],["reset1"]],[[],["reset"]],[[],["detach"]],[[],["transferChildrenTo"]],[[],["isPlottable"]],[[],["isPlottable1"]]]);n.ig.util.extCopy(n.ig.PathFigureUtil,[[[],["duplicate1"]],[[],["duplicate"]]]);n.ig.util.extCopy(n.ig.PointCollectionUtil,[[[n.ig.RearrangedList$1],["flattenTo","getBounds2","clipTo"]],[[n.ig.RearrangedList$1],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[],["getBounds3","getBounds4","toPointCollections"]]]);n.ig.util.extCopy(n.ig.RectUtil,[[[],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["LinearGraphNeedleShape:a","Enum:b","ValueType:c","Object:d","Type:e","Boolean:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","Void:m","String:n","Array:o","RegExp:p","RuntimeTypeHandle:q","MethodInfo:r","MethodBase:s","MemberInfo:t","ParameterInfo:u","TypeCode:v","ConstructorInfo:w","LinearScaleOrientation:x","TitlesPosition:y","LinearGraphBackingFrame:z","Brush:aa","Color:ab","Number:ac","Math:ad","Number:ae","Number:af","Number:ag","Number:ah","Number:ai","Number:aj","Number:ak","Script:al","PathGeometry:am","Geometry:an","GeometryType:ao","PathFigureCollection:ap","List$1:aq","IList$1:ar","ICollection$1:as","IEnumerable$1:at","IEnumerable:au","IEnumerator:av","IEnumerator$1:aw","IArrayList:ax","Array:ay","ICollection:az","CompareCallback:a0","MulticastDelegate:a1","IntPtr:a2","IList:a3","IDisposable:a4","IArray:a5","Date:a6","Date:a7","Func$3:a8","Action$1:a9","PathFigure:ba","PathSegmentCollection:bb","Point:bc","LineSegment:bd","PathSegment:be","PathSegmentType:bf","BrushUtil:bg","LinearGradientBrush:bh","GradientStop:bi","ColorUtil:bj","Random:bk","InterpolationMode:bl","MathUtil:bm","RuntimeHelpers:bn","RuntimeFieldHandle:bo","JQueryObject:bp","Element:bq","ElementAttributeCollection:br","ElementCollection:bs","WebStyle:bt","ElementNodeType:bu","Document:bv","EventListener:bw","IElementEventHandler:bx","ElementEventHandler:by","ElementAttribute:bz","JQueryPosition:b0","JQueryCallback:b1","JQueryEvent:b2","JQueryUICallback:b3","BrushCollection:b4","ObservableCollection$1:b5","INotifyCollectionChanged:b6","NotifyCollectionChangedEventHandler:b7","NotifyCollectionChangedEventArgs:b8","EventArgs:b9","NotifyCollectionChangedAction:ca","INotifyPropertyChanged:cb","PropertyChangedEventHandler:cc","PropertyChangedEventArgs:cd","Delegate:ce","CssHelper:cf","JQuery:cg","JQueryDeferred:ch","JQueryPromise:ci","Action:cj","CssGradientUtil:ck","GeometryUtil:cl","Rect:cm","Size:cn","Tuple$2:co","LinearGraphFrame:cp","LinearGraphScaleFrame:cq","Func$1:cr","LinearGraphRectFrame:cs","Func$5:ct","InterpolationUtil:cu","LinearGraphNeedleFrame:cv","MorphSegment:cw","ArcSegment:cx","SweepDirection:cy","PolyLineSegment:cz","PointCollection:c0","LinearGraphNeedlePreparer:c1","LinearGraphNeedleParameters:c2","LinearGraphScaler:c3","LinearGraphVisualData:c4","PrimitiveVisualData:c5","IVisualData:c6","PrimitiveAppearanceData:c7","BrushAppearanceData:c8","Visibility:c9","StringBuilder:da","AppearanceHelper:db","LinearGradientBrushAppearanceData:dc","GradientStopAppearanceData:dd","SolidBrushAppearanceData:de","FrameworkElement:df","UIElement:dg","DependencyObject:dh","Dictionary:di","DependencyProperty:dj","PropertyMetadata:dk","PropertyChangedCallback:dl","DependencyPropertyChangedEventArgs:dm","DependencyPropertiesCollection:dn","UnsetValue:dp","Binding:dq","PropertyPath:dr","Transform:ds","Style:dt","Path:du","Shape:dv","DoubleCollection:dw","GeometryGroup:dx","GeometryCollection:dy","FillRule:dz","LineGeometry:d0","RectangleGeometry:d1","EllipseGeometry:d2","Error:d3","EllipseGeometryData:d4","GeometryData:d5","GetPointsSettings:d6","RectangleGeometryData:d7","LineGeometryData:d8","PathGeometryData:d9","PathFigureData:ea","LineSegmentData:eb","SegmentData:ec","PolylineSegmentData:ed","ArcSegmentData:ee","PolyBezierSegment:ef","PolyBezierSegmentData:eg","LabelAppearanceData:eh","FontInfo:ei","TextBlock:ej","RotateTransform:ek","TransformGroup:el","TransformCollection:em","ShapeTags:en","LinearScaleVisualData:eo","LinearGraphScaleLabelVisualDataList:ep","LinearGraphScaleTickmarkVisualDataList:eq","LinearGraphRangeVisualDataList:er","LinearGraphToolTipVisualData:es","ToolTipItemVisualData:et","LinearGraphScaleLabelVisualData:eu","LinearGraphScaleTickmarkVisualData:ev","LinearGraphRangeVisualData:ew","XamLinearGraphRange:ex","LinearGraphRangeCollection:ey","LinearGraphTooltipDataContext:ez","ToolTipInfo:e0","FormatLinearGraphLabelHandler:e1","FormatLinearGraphLabelEventArgs:e2","AlignLinearGraphLabelHandler:e3","AlignLinearGraphLabelEventArgs:e4","LinearGaugeFrame:e5","LinearGaugeScaleFrame:e6","LinearNeedleVisualDataList:e7","LinearNeedleVisualData:e8","LinearGaugeVisualData:e9","XamLinearGauge:fa","Control:fb","Thickness:fc","HorizontalAlignment:fd","VerticalAlignment:fe","DoubleAnimator:ff","EasingFunctionHandler:fg","Callback:fh","StackPool$1:fi","Dictionary$2:fj","IDictionary$2:fk","IDictionary:fl","IEqualityComparer$1:fm","KeyValuePair$2:fn","NotImplementedException:fo","Stack$1:fp","ReverseArrayEnumerator$1:fq","XamLinearGaugeView:fr","RenderingContext:fs","IRenderer:ft","Rectangle:fu","Polygon:fv","Polyline:fw","DataTemplateRenderInfo:fx","DataTemplatePassInfo:fy","ContentControl:fz","DataTemplate:f0","DataTemplateRenderHandler:f1","DataTemplateMeasureHandler:f2","DataTemplateMeasureInfo:f3","DataTemplatePassHandler:f4","Line:f5","FontUtil:f6","DOMEventProxy:f7","EventProxy:f8","ModifierKeys:f9","Func$2:ga","MouseWheelHandler:gb","GestureHandler:gc","ContactHandler:gd","TouchHandler:ge","MouseOverHandler:gf","MouseHandler:gg","KeyHandler:gh","Key:gi","MSGesture:gj","window:gk","MouseEventArgs:gl","DivElement:gm","CanvasElement:gn","CanvasContext:go","CanvasViewRenderer:gp","CanvasContext2D:gq","TextMetrics:gr","ImageData:gs","Gradient:gt","BezierSegment:gu","TranslateTransform:gv","ScaleTransform:gw","PathVisualData:gx","PolygonUtil:gy","AbstractEnumerable:gz","AbstractEnumerator:g0","GenericEnumerable$1:g1","GenericEnumerator$1:g2"]);n.ig.util.defType("TitlesPosition:y","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("TitlesPosition",n.ig.$ep.$type)},!0);n.ig.util.defType("LinearScaleOrientation:x","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("LinearScaleOrientation",n.ig.$ep.$type)},!0);n.ig.util.defType("LinearGraphNeedleShape:a","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("LinearGraphNeedleShape",n.ig.$ep.$type)},!0);n.ig.util.defType("LinearGraphBackingFrame:z","Object",{init:function(){n.ig.$op.init.call(this)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},g:function(i,r,u){var f=this,l=new t.am,e=new t.ba,o,s,h,c;return u==1?(o=function(){var r=new t.bd(1);return r.c({__x:i*f.a(),__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r}(),s=function(){var r=new t.bd(1);return r.c({__x:i*f.b(),__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r}(),h=function(){var u=new t.bd(1);return u.c({__x:i*f.b(),__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u}(),c=function(){var u=new t.bd(1);return u.c({__x:i*f.a(),__y:r,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u}()):(o=function(){var r=new t.bd(1);return r.c({__x:0,__y:i*(1-f.b()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r}(),s=function(){var u=new t.bd(1);return u.c({__x:r,__y:i*(1-f.b()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u}(),h=function(){var u=new t.bd(1);return u.c({__x:r,__y:i*(1-f.a()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u}(),c=function(){var r=new t.bd(1);return r.c({__x:0,__y:i*(1-f.a()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r}()),e.__startPoint=o.c(),e.__segments.add(s),e.__segments.add(h),e.__segments.add(c),e.__isClosed=!0,l.b().add(e),l},d:function(n,i,r){this.c(i.c()+(r.c()-i.c())*n);this.e(t.$bg.g(i.e(),n,r.e(),0));this.f(t.$bg.g(i.f(),n,r.f(),0));this.b(i.b()+(r.b()-i.b())*n);this.a(i.a()+(r.a()-i.a())*n)},$type:new n.ig.Type("LinearGraphBackingFrame",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphFrame:cp","Object",{init:function(){n.ig.$op.init.call(this);this.a(new t.z);this.b(new t.cs)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},d:function(n,i,r){this.b(t.$cs.a(n,1-n,i.b(),r.b()));this.c().w(n,i.c(),r.c());this.a().d(n,i.a(),r.a())},$type:new n.ig.Type("LinearGraphFrame",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphNeedleFrame:cv","Object",{init:function(){n.ig.$op.init.call(this);this.f(new t.cw);this.g(new t.cw);this.d(new t.cw);this.j(new t.cw);this.i(new t.cw);this.k(new t.cw);this.e(new t.cw);this.h(new t.cw);this.b(new t.cw);this.c(new t.cw)},_n:0,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_q:0,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_p:0,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_r:null,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_s:null,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_o:0,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},a:function(n,i,r,u){var f=new t.cv;return f.n(r.n()+(u.n()-r.n())*n),f.m(r.m()+(u.m()-r.m())*n),f.q(r.q()+(u.q()-r.q())*n),f.l(r.l()+(u.l()-r.l())*n),f.p(r.p()+(u.p()-r.p())*n),f.r(t.$bg.g(r.r(),n,u.r(),0)),f.s(t.$bg.g(r.s(),n,u.s(),0)),f.o(r.o()+(u.o()-r.o())*n),f.f().k(n,r.f(),u.f()),f.g().k(n,r.g(),u.g()),f.d().k(n,r.d(),u.d()),f.j().k(n,r.j(),u.j()),f.i().k(n,r.i(),u.i()),f.k().k(n,r.k(),u.k()),f.e().k(n,r.e(),u.e()),f.h().k(n,r.h(),u.h()),f.b().k(n,r.b(),u.b()),f.c().k(n,r.c(),u.c()),f},t:function(i,r,u){var s=new t.am,e=new t.ba,f={__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},o;return f=this.i().i(f,e,i,r,u),f=this.j().i(f,e,i,r,u),f=this.d().i(f,e,i,r,u),f=this.g().i(f,e,i,r,u),f=this.f().i(f,e,i,r,u),f=this.h().i(f,e,i,r,u),f=this.e().i(f,e,i,r,u),f=this.k().i(f,e,i,r,u),e.__isClosed=!0,s.b().add(e),o=new t.ba,(this.b().f.count()>0||this.c().f.count()>0)&&(f=this.b().i(f,o,i,r,u),f=this.c().i(f,o,i,r,u),o.__isClosed=!0,s.b().add(o)),s},$type:new n.ig.Type("LinearGraphNeedleFrame",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphRectFrame:cs","Object",{init:function(){n.ig.$op.init.call(this)},e:0,f:0,b:0,c:0,g:0,d:0,i:null,j:null,h:0,k:function(i,r,u,f){var e=this,a=new t.am,o=new t.ba,s,h,c,l;return f==1?(s=function(){var f=new t.bd(1);return f.c({__x:i.__x+r*e.b,__y:u-e.d,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f}(),h=function(){var f=new t.bd(1);return f.c({__x:i.__x+r*e.c,__y:u-e.d,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f}(),c=function(){var f=new t.bd(1);return f.c({__x:i.__x+r*e.f,__y:u-e.g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f}(),l=function(){var f=new t.bd(1);return f.c({__x:i.__x+r*e.e,__y:u-e.g,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),f}()):(s=function(){var i=new t.bd(1);return i.c({__x:e.g,__y:r*(1-e.f),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),h=function(){var i=new t.bd(1);return i.c({__x:e.d,__y:r*(1-e.c),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),c=function(){var i=new t.bd(1);return i.c({__x:e.d,__y:r*(1-e.b),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),l=function(){var i=new t.bd(1);return i.c({__x:e.g,__y:r*(1-e.e),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),o.__startPoint=s.c(),o.__segments.add(h),o.__segments.add(c),o.__segments.add(l),o.__isClosed=!0,a.b().add(o),a},a:function(n,i,r,u){var f=new t.cs;return f.i=t.$bg.g(r.i,n,u.i,0),f.j=t.$bg.g(r.j,n,u.j,0),f.h=i*r.h+n*u.h,f.e=i*r.e+n*u.e,f.f=i*r.f+n*u.f,f.g=i*r.g+n*u.g,f.d=i*r.d+n*u.d,f.b=i*r.b+n*u.b,f.c=i*r.c+n*u.c,f},$type:new n.ig.Type("LinearGraphRectFrame",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphScaleFrame:cq","Object",{init:function(){n.ig.$op.init.call(this);this.k(new t.aq(t.$cs.$type,0));this.j(new Array(0));this.i(new Array(0));this.e(new Array(0));this.d(new Array(0));this.f(new Array(0));this.c(new Array(0));this.g(new Array(0));this.h(new Array(0))},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_s:0,s:function(n){return arguments.length===1?(this._s=n,n):this._s},_p:0,p:function(n){return arguments.length===1?(this._p=n,n):this._p},_q:0,q:function(n){return arguments.length===1?(this._q=n,n):this._q},_r:0,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_u:0,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_t:0,t:function(n){return arguments.length===1?(this._t=n,n):this._t},_ab:null,ab:function(n){return arguments.length===1?(this._ab=n,n):this._ab},_v:0,v:function(n){return arguments.length===1?(this._v=n,n):this._v},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_n:0,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_m:0,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_aa:null,aa:function(n){return arguments.length===1?(this._aa=n,n):this._aa},_o:0,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_z:null,z:function(n){return arguments.length===1?(this._z=n,n):this._z},ac:function(i,r,u,f){var e=this,y=new t.am,s=new t.ba,o=i.__x,h=i.__y,c,l,a,v;return f==1?(c=function(){var i=new t.bd(1);return i.c({__x:o+r*e.q(),__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),l=function(){var i=new t.bd(1);return i.c({__x:o+r*e.r(),__y:h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),a=function(){var i=new t.bd(1);return i.c({__x:o+r*e.r(),__y:h+u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),v=function(){var i=new t.bd(1);return i.c({__x:o+r*e.q(),__y:h+u,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()):(c=function(){var i=new t.bd(1);return i.c({__x:o,__y:r*(1-e.r()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),l=function(){var i=new t.bd(1);return i.c({__x:o+u,__y:r*(1-e.r()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),a=function(){var i=new t.bd(1);return i.c({__x:o+u,__y:r*(1-e.q()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}(),v=function(){var i=new t.bd(1);return i.c({__x:o,__y:r*(1-e.q()),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}()),s.__startPoint=c.c(),s.__segments.add(l),s.__segments.add(a),s.__segments.add(v),s.__isClosed=!0,y.b().add(s),y},w:function(n,i,r){this.ab(t.$bg.g(i.ab(),n,r.ab(),0));this.aa(t.$bg.g(i.aa(),n,r.aa(),0));i.z()==null&&r.z()==null?this.z(null):this.z(t.$bg.g(i.z(),n,r.z(),0));this.s(i.s()+(r.s()-i.s())*n);this.p(i.p()+(r.p()-i.p())*n);this.q(i.q()+(r.q()-i.q())*n);this.r(i.r()+(r.r()-i.r())*n);this.l(i.l()+(r.l()-i.l())*n);this.u(i.u()+(r.u()-i.u())*n);this.t(i.t()+(r.t()-i.t())*n);this.n(i.n()+(r.n()-i.n())*n);this.m(i.m()+(r.m()-i.m())*n);this.v(i.v()+(r.v()-i.v())*n);this.o(i.o()+(r.o()-i.o())*n);this.j(this.a(n,this.j(),i.j(),r.j()));this.i(this.a(n,this.i(),i.i(),r.i()));this.e(this.a(n,this.e(),i.e(),r.e()));this.f(this.a(n,this.f(),i.f(),r.f()));this.c(this.a(n,this.c(),i.c(),r.c()));this.g(this.a(n,this.g(),i.g(),r.g()));this.h(this.a(n,this.h(),i.h(),r.h()));this.d(this.b(n,this.d(),i.d(),r.d()));this.y(n,this.k(),i.k(),r.k())},a:function(n,t,i,r){var e=Math.max(i.length,r.length),c=Math.min(i.length,r.length),o,s,l,u,f,h;for(t.length!=e&&(t=new Array(e)),o=0,i.length>0&&(o=i[i.length-1]),s=0,r.length>0&&(s=r[r.length-1]),l=i.length>r.length,u=0,u=0;u<c;u++)t[u]=i[u]+(r[u]-i[u])*n;for(u=c;u<e;u++)l?(f=i[u],h=s):(f=o,h=r[u]),t[u]=f+(h-f)*n;return t},b:function(n,t,i,r){var e=Math.max(i.length,r.length),c=Math.min(i.length,r.length),o,s,l,u,h,f;for(t.length!=e&&(t=new Array(e)),o=null,i.length>0&&(o=i[i.length-1]),s=null,r.length>0&&(s=r[r.length-1]),l=i.length>r.length,u=0,u=0;u<c;u++)t[u]=r[u];for(u=c;u<e;u++)l?(h=i[u],f=s):(h=o,f=r[u]),t[u]=f!=null?f:h;return t},y:function(n,i,r,u){var f=this;t.$cu.b(t.$cs.$type,i,n,r,u,function(){return new t.cs},t.$cs.a)},x:function(n,i,r,u){var f=this;t.$cu.b(t.$cv.$type,i,n,r,u,function(){return new t.cv},t.$cv.a)},$type:new n.ig.Type("LinearGraphScaleFrame",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphNeedlePreparer:c1","Object",{init:function(){n.ig.$op.init.call(this)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},c:function(n){this.d(n)},d:function(n){var t,i,f;this.f(n);t=this.a();n.n(t.outerExtent());n.m(t.innerExtent());n.q(0);isNaN(t.outerBaseWidth())||n.q(Math.max(n.q(),t.outerBaseWidth()));isNaN(t.innerBaseWidth())||n.q(Math.max(n.q(),t.innerBaseWidth()));var r=8,e=new Array(r),u=new Array(r+1);for(this.e(n,e,u,t),i=0;i<r;i++)f=e[i].f,f.add(u[i]),f.add(u[i+1])},e:function(t,i,r,u){var e=u.innerExtent(),f=u.outerExtent(),o=u.innerPointExtent(),s=u.outerPointExtent();u.scaleOrientation()==0?(e=1-e,f=1-f,o=1-o,s=1-s,i[0]=t.i(),i[1]=t.j(),i[2]=t.d(),i[3]=t.g(),i[4]=t.f(),i[5]=t.h(),i[6]=t.e(),i[7]=t.k(),r[0]={__x:-1*u.outerBaseWidth(),__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[1]={__x:u.outerBaseWidth(),__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[2]={__x:u.outerPointWidth(),__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[3]={__x:u.innerPointWidth(),__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[4]={__x:u.innerBaseWidth(),__y:e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[5]={__x:-1*u.innerBaseWidth(),__y:e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[6]={__x:-1*u.innerPointWidth(),__y:o,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[7]={__x:-1*u.outerPointWidth(),__y:s,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[8]={__x:-1*u.outerBaseWidth(),__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(i[0]=t.i(),i[1]=t.j(),i[2]=t.d(),i[3]=t.g(),i[4]=t.f(),i[5]=t.h(),i[6]=t.e(),i[7]=t.k(),r[0]={__x:f,__y:-1*u.outerBaseWidth(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[1]={__x:f,__y:u.outerBaseWidth(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[2]={__x:s,__y:u.outerPointWidth(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[3]={__x:o,__y:u.innerPointWidth(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[4]={__x:e,__y:u.innerBaseWidth(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[5]={__x:e,__y:-1*u.innerBaseWidth(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[6]={__x:o,__y:-1*u.innerPointWidth(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[7]={__x:s,__y:-1*u.outerPointWidth(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},r[8]={__x:f,__y:-1*u.outerBaseWidth(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},a:function(){var n=this.b(),l=.85,a=.25,s=n.defaultWidth(),h=n.innerExtent(),f=n.outerExtent(),c=n.innerPointExtent(),e=n.outerPointExtent(),i=n.innerBaseWidth(),t=n.outerBaseWidth(),r=n.innerPointWidth(),u=n.outerPointWidth(),o;isNaN(h)&&(h=a);isNaN(f)&&(f=l);isNaN(c)&&(c=n.needleShape()==3?.45:a);isNaN(e)&&(e=l);isNaN(t)&&(t=s);isNaN(i)&&(i=n.needleShape()==4?t*.5:s);isNaN(r)&&(r=s);isNaN(u)&&(u=s);switch(n.needleShape()){case 1:case 2:case 4:e=f;c=h}return n.needleShape()==3&&(i=0,r=t,u=t,e=f),n.needleShape()==2&&(i=0,r=0,u=t),n.needleShape()==4&&(r=i,u=t),n.needleShape()==1&&(o=Math.max(i,t),i=o,t=o,r=o,u=o),n.innerExtent(h),n.outerExtent(f),n.innerPointExtent(c),n.outerPointExtent(e),n.innerBaseWidth(i),n.outerBaseWidth(t),n.innerPointWidth(r),n.outerPointWidth(u),n},f:function(n){n.f().l();n.g().l();n.d().l();n.j().l();n.i().l();n.k().l();n.e().l();n.h().l();n.b().l();n.c().l()},$type:new n.ig.Type("LinearGraphNeedlePreparer",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphNeedleParameters:c2","Object",{init:function(){n.ig.$op.init.call(this);this.k=NaN;this.j=NaN;this.g=NaN;this.l=NaN;this.i=NaN;this.n=NaN;this.h=NaN;this.m=NaN;this.f=NaN;this.b=3},_scaleOrientation:null,scaleOrientation:function(n){return arguments.length===1?(this._scaleOrientation=n,n):this._scaleOrientation},_isScaleInverted:!1,isScaleInverted:function(n){return arguments.length===1?(this._isScaleInverted=n,n):this._isScaleInverted},k:0,outerExtent:function(n){return arguments.length===1?(this.k!=n&&(this.k=n,this.x("OuterExtent")),n):this.k},j:0,innerExtent:function(n){return arguments.length===1?(this.j!=n&&(this.j=n,this.x("InnerExtent")),n):this.j},g:0,innerBaseWidth:function(n){return arguments.length===1?(this.g!=n&&(this.g=n,this.x("InnerBaseWidth")),n):this.g},l:0,outerBaseWidth:function(n){return arguments.length===1?(this.l!=n&&(this.l=n,this.x("OuterBaseWidth")),n):this.l},i:0,innerPointWidth:function(n){return arguments.length===1?(this.i!=n&&(this.i=n,this.x("InnerPointWidth")),n):this.i},n:0,outerPointWidth:function(n){return arguments.length===1?(this.n!=n&&(this.n=n,this.x("OuterPointWidth")),n):this.n},h:0,innerPointExtent:function(n){return arguments.length===1?(this.h!=n&&(this.h=n,this.x("InnerPointExtent")),n):this.h},m:0,outerPointExtent:function(n){return arguments.length===1?(this.m!=n&&(this.m=n,this.x("OuterPointExtent")),n):this.m},f:0,defaultWidth:function(n){return arguments.length===1?(this.f!=n&&(this.f=n,this.x("DefaultWidth")),n):this.f},b:null,needleShape:function(n){return arguments.length===1?(this.b!=n&&(this.b=n,this.x("NeedleShape")),n):this.b},a:function(){var n=new t.c2;return n.outerExtent(this.outerExtent()),n.innerExtent(this.innerExtent()),n.innerBaseWidth(this.innerBaseWidth()),n.outerBaseWidth(this.outerBaseWidth()),n.innerPointExtent(this.innerPointExtent()),n.outerPointExtent(this.outerPointExtent()),n.innerPointWidth(this.innerPointWidth()),n.outerPointWidth(this.outerPointWidth()),n.needleShape(this.needleShape()),n.defaultWidth(this.defaultWidth()),n},x:function(n){this.propertyChanged!=null&&this.propertyChanged(this,new t.cd(n))},propertyChanged:null,$type:new n.ig.Type("LinearGraphNeedleParameters",n.ig.$ot,[t.$cb.$type])},!0);n.ig.util.defType("LinearGraphScaler:c3","Object",{f:0,e:0,d:0,c:0,a:!1,g:0,b:0,j:function(){return this.g},h:function(){return this.b},init:function(t,i,r,u,f){n.ig.$op.init.call(this);this.f=r;this.e=u;this.a=f;this.d=t;this.c=i;this.g=r;this.b=u},i:function(n){var t=(n-this.d)/(this.c-this.d),i;return this.a&&(t=1-t),i=this.g+(this.b-this.g)*t,Math.round(i*100)/100},k:function(n){var t=(n-this.g)/(this.b-this.g);return this.a&&(t=1-t),this.d+(this.c-this.d)*t},$type:new n.ig.Type("LinearGraphScaler",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphVisualData:c4","Object",{init:function(){n.ig.$op.init.call(this)},_scalePath:null,scalePath:function(n){return arguments.length===1?(this._scalePath=n,n):this._scalePath},_backingPath:null,backingPath:function(n){return arguments.length===1?(this._backingPath=n,n):this._backingPath},_underlayPath:null,underlayPath:function(n){return arguments.length===1?(this._underlayPath=n,n):this._underlayPath},_overlayPath:null,overlayPath:function(n){return arguments.length===1?(this._overlayPath=n,n):this._overlayPath},_scale:null,scale:function(n){return arguments.length===1?(this._scale=n,n):this._scale},_scaleLabels:null,scaleLabels:function(n){return arguments.length===1?(this._scaleLabels=n,n):this._scaleLabels},_scaleTickmarks:null,scaleTickmarks:function(n){return arguments.length===1?(this._scaleTickmarks=n,n):this._scaleTickmarks},_ranges:null,ranges:function(n){return arguments.length===1?(this._ranges=n,n):this._ranges},_toolTip:null,toolTip:function(n){return arguments.length===1?(this._toolTip=n,n):this._toolTip},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},scaleByViewport:function(){var n,f,t,i,r,u;if(this.scalePath()!=null&&this.scalePath().scaleByViewport(this.viewport()),this.backingPath()!=null&&this.backingPath().scaleByViewport(this.viewport()),this.underlayPath()!=null&&this.underlayPath().scaleByViewport(this.viewport()),this.overlayPath()!=null&&this.overlayPath().scaleByViewport(this.viewport()),this.scaleLabels()!=null)for(n=this.scaleLabels().getEnumerator();n.moveNext();)f=n.current(),f.scaleByViewport(this.viewport());if(this.scaleTickmarks()!=null)for(t=this.scaleTickmarks().getEnumerator();t.moveNext();)i=t.current(),i.tickPath()!=null&&i.tickPath().scaleByViewport(this.viewport());if(this.ranges()!=null)for(r=this.ranges().getEnumerator();r.moveNext();)u=r.current(),u.rangePath()!=null&&u.rangePath().scaleByViewport(this.viewport())},serialize:function(){var n=new t.da,i=!0,r,u,h,f,e,c,o,s,l;if(n.f("{"),this.scalePath()!=null&&(i?i=!1:n.d(", "),n.d("scalePath: "),n.f(this.scalePath().serialize())),this.backingPath()!=null&&(i?i=!1:n.d(", "),n.d("backingPath: "),n.f(this.backingPath().serialize())),this.underlayPath()!=null&&(i?i=!1:n.d(", "),n.d("underlayPath: "),n.f(this.underlayPath().serialize())),this.overlayPath()!=null&&(i?i=!1:n.d(", "),n.d("overlayPath: "),n.f(this.overlayPath().serialize())),this.scaleLabels()!=null){for(i?i=!1:n.d(", "),r=!0,n.d("scaleLabels: ["),u=this.scaleLabels().getEnumerator();u.moveNext();)h=u.current(),r?r=!1:n.d(", "),n.f(h.serialize());n.f("]")}if(this.scaleTickmarks()!=null){for(i?i=!1:n.d(", "),f=!0,n.d("scaleTickmarks: ["),e=this.scaleTickmarks().getEnumerator();e.moveNext();)c=e.current(),f?f=!1:n.d(", "),n.f(c.serialize());n.f("]")}if(this.ranges()!=null){for(i?i=!1:n.d(", "),o=!0,n.d("ranges: ["),s=this.ranges().getEnumerator();s.moveNext();)l=s.current(),o?o=!1:n.d(", "),n.f(l.serialize());n.f("]")}return this.name()!=null&&(i?i=!1:n.d(", "),n.d("name: '"),n.d(this.name()),n.f("'")),this.toolTip()!=null&&(i?i=!1:n.d(", "),n.d("toolTip: "),n.d(this.toolTip().serialize())),i?i=!1:n.d(", "),n.d("viewport: {"),n.d("left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()),n.f("}"),n.d("}"),n.b()},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},$type:new n.ig.Type("LinearGraphVisualData",n.ig.$ot)},!0);n.ig.util.defType("LinearScaleVisualData:eo","Object",{init:function(){n.ig.$op.init.call(this)},$type:new n.ig.Type("LinearScaleVisualData",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphScaleLabelVisualData:eu","Object",{init:function(){n.ig.$op.init.call(this)},_labelValue:null,labelValue:function(n){return arguments.length===1?(this._labelValue=n,n):this._labelValue},_labelSize:null,labelSize:function(n){return arguments.length===1?(this._labelSize=n,n):this._labelSize},_labelPosition:null,labelPosition:function(n){return arguments.length===1?(this._labelPosition=n,n):this._labelPosition},_appearance:null,appearance:function(n){return arguments.length===1?(this._appearance=n,n):this._appearance},scaleByViewport:function(i){this.labelPosition({__x:(this.labelPosition().__x-i.left())/i.width(),__y:(this.labelPosition().__y-i.top())/i.height(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});this.labelSize(new t.cn(this.labelSize().b()/i.width(),this.labelSize().a()/i.height()))},serialize:function(){return"{ labelValue: '"+this.labelValue()+"', labelSize: { width: "+this.labelSize().b()+", height: "+this.labelSize().a()+"}, labelPosition: { x: "+this.labelPosition().__x+", y: "+this.labelPosition().__y+"}, appearance: "+this.appearance().serialize()+"}"},$type:new n.ig.Type("LinearGraphScaleLabelVisualData",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphScaleLabelVisualDataList:ep","List$1",{init:function(){t.$aq.init.call(this,t.$eu.$type)},$type:new n.ig.Type("LinearGraphScaleLabelVisualDataList",t.$aq.$type.specialize(t.$eu.$type))},!0);n.ig.util.defType("LinearGraphScaleTickmarkVisualData:ev","Object",{init:function(){n.ig.$op.init.call(this)},_tickPath:null,tickPath:function(n){return arguments.length===1?(this._tickPath=n,n):this._tickPath},serialize:function(){return"{ tickPath: "+this.tickPath().serialize()+"}"},$type:new n.ig.Type("LinearGraphScaleTickmarkVisualData",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphScaleTickmarkVisualDataList:eq","List$1",{init:function(){t.$aq.init.call(this,t.$ev.$type)},$type:new n.ig.Type("LinearGraphScaleTickmarkVisualDataList",t.$aq.$type.specialize(t.$ev.$type))},!0);n.ig.util.defType("ToolTipItemVisualData:et","Object",{init:function(){n.ig.$op.init.call(this)},type:function(){},serialize:function(){},$type:new n.ig.Type("ToolTipItemVisualData",n.ig.$ot)},!0);n.ig.util.defType("LinearGraphRangeVisualData:ew","ToolTipItemVisualData",{init:function(){t.$et.init.call(this)},_rangePath:null,rangePath:function(n){return arguments.length===1?(this._rangePath=n,n):this._rangePath},serialize:function(){return"{ rangePath: "+this.rangePath().serialize()+", type: '"+this.type()+"'}"},type:function(){return"range"},$type:new n.ig.Type("LinearGraphRangeVisualData",t.$et.$type)},!0);n.ig.util.defType("LinearGraphRangeVisualDataList:er","List$1",{init:function(){t.$aq.init.call(this,t.$ew.$type)},$type:new n.ig.Type("LinearGraphRangeVisualDataList",t.$aq.$type.specialize(t.$ew.$type))},!0);n.ig.util.defType("LinearGraphToolTipVisualData:es","Object",{init:function(){n.ig.$op.init.call(this)},_item:null,item:function(n){return arguments.length===1?(this._item=n,n):this._item},_outline:null,outline:function(n){return arguments.length===1?(this._outline=n,n):this._outline},_itemBrush:null,itemBrush:function(n){return arguments.length===1?(this._itemBrush=n,n):this._itemBrush},_thickness:0,thickness:function(n){return arguments.length===1?(this._thickness=n,n):this._thickness},serialize:function(){var n=new t.da;return n.d("{ item: "),this.item()!=null&&n.d(this.item().serialize()),n.d(", "),n.d("outline: "),n.d(t.$db.serializeColor(this.outline())),n.d(", "),n.d("itemBrush: "),n.d(t.$db.serializeColor(this.itemBrush())),n.d(", "),n.d("thickness: "),n.d(this.thickness().toString()),n.d("}"),n.b()},$type:new n.ig.Type("LinearGraphToolTipVisualData",n.ig.$ot)},!0);n.ig.util.defType("XamLinearGraphRange:ex","DependencyObject",{init:function(){t.$dh.init.call(this)},aa:function(){},z:function(n,i,r){this.aa(n,i,r);this.propertyChanged!=null&&this.propertyChanged(this,new t.cd(n))},propertyChanged:null,name:function(n){return arguments.length===1?(this.g(t.$ex.nameProperty,n),n):this.c(t.$ex.nameProperty)},brush:function(n){return arguments.length===1?(this.g(t.$ex.brushProperty,n),n):this.c(t.$ex.brushProperty)},outline:function(n){return arguments.length===1?(this.g(t.$ex.outlineProperty,n),n):this.c(t.$ex.outlineProperty)},startValue:function(n){return arguments.length===1?(this.g(t.$ex.startValueProperty,n),n):this.c(t.$ex.startValueProperty)},endValue:function(n){return arguments.length===1?(this.g(t.$ex.endValueProperty,n),n):this.c(t.$ex.endValueProperty)},innerStartExtent:function(n){return arguments.length===1?(this.g(t.$ex.innerStartExtentProperty,n),n):this.c(t.$ex.innerStartExtentProperty)},innerEndExtent:function(n){return arguments.length===1?(this.g(t.$ex.innerEndExtentProperty,n),n):this.c(t.$ex.innerEndExtentProperty)},outerStartExtent:function(n){return arguments.length===1?(this.g(t.$ex.outerStartExtentProperty,n),n):this.c(t.$ex.outerStartExtentProperty)},outerEndExtent:function(n){return arguments.length===1?(this.g(t.$ex.outerEndExtentProperty,n),n):this.c(t.$ex.outerEndExtentProperty)},strokeThickness:function(n){return arguments.length===1?(this.g(t.$ex.strokeThicknessProperty,n),n):this.c(t.$ex.strokeThicknessProperty)},$type:new n.ig.Type("XamLinearGraphRange",t.$dh.$type,[t.$cb.$type])},!0);n.ig.util.defType("LinearGraphRangeCollection:ey","ObservableCollection$1",{init:function(){t.$b5.init.call(this,t.$ex.$type)},$type:new n.ig.Type("LinearGraphRangeCollection",t.$b5.$type.specialize(t.$ex.$type))},!0);n.ig.util.defType("LinearGraphTooltipDataContext:ez","DependencyObject",{init:function(){t.$dh.init.call(this)},item:function(n){return arguments.length===1?(this.g(t.$ez.itemProperty,n),n):this.c(t.$ez.itemProperty)},itemName:function(n){return arguments.length===1?(this.g(t.$ez.itemNameProperty,n),n):this.c(t.$ez.itemNameProperty)},outline:function(n){return arguments.length===1?(this.g(t.$ez.outlineProperty,n),n):this.c(t.$ez.outlineProperty)},brush:function(n){return arguments.length===1?(this.g(t.$ez.itemBrushProperty,n),n):this.c(t.$ez.itemBrushProperty)},thickness:function(n){return arguments.length===1?(this.g(t.$ez.thicknessProperty,n),n):this.c(t.$ez.thicknessProperty)},label:function(n){return arguments.length===1?(this.g(t.$ez.labelProperty,n),n):this.c(t.$ez.labelProperty)},n:function(n){this.propertyChanged!=null&&this.propertyChanged(this,new t.cd(n))},propertyChanged:null,$type:new n.ig.Type("LinearGraphTooltipDataContext",t.$dh.$type,[t.$cb.$type])},!0);n.ig.util.defType("ToolTipInfo:e0","Object",{init:function(){n.ig.$op.init.call(this)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("ToolTipInfo",n.ig.$ot)},!0);n.ig.util.defType("FormatLinearGraphLabelEventArgs:e2","EventArgs",{init:function(){t.$b9.init.call(this)},actualMinimumValue:0,actualMaximumValue:0,value:0,label:null,$type:new n.ig.Type("FormatLinearGraphLabelEventArgs",t.$b9.$type)},!0);n.ig.util.defType("AlignLinearGraphLabelEventArgs:e4","FormatLinearGraphLabelEventArgs",{init:function(){t.$e2.init.call(this)},width:0,height:0,offsetX:0,offsetY:0,$type:new n.ig.Type("AlignLinearGraphLabelEventArgs",t.$e2.$type)},!0);n.ig.util.defType("MorphSegment:cw","Object",{init:function(){n.ig.$op.init.call(this);this.f=new t.aq(t.$bc.$type,0);this.g=new t.aq(t.$bc.$type,0)},f:null,g:null,b:!1,h:0,e:!1,a:!1,d:!1,c:!1,j:function(){var u,v,f,e,s,h,y,c,l,a;if(this.g.clear(),u=20,this.b){this.f.count()==0?(f={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},e={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(f=this.f.__inner[0],e=this.f.__inner[1]);for(var o=t.$cl.i(f,e,this.h,!this.c,this.d),i=t.$cl.c(o,f),r=t.$cl.c(o,e);this.c&&r<i;)r+=3.14159265358979*2;while(!this.c&&r>i)r-=3.14159265358979*2;for(s=0,h=0;h<u;h++)v=h/u,s=this.c?i+(r-i)*v:i-(i-r)*v,this.g.add({__x:o.__x+Math.cos(s)*this.h,__y:o.__y+Math.sin(s)*this.h,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}else{this.f.count()==0?(c={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},l={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(c=this.f.__inner[0],l=this.f.__inner[1]);var p=c.__x,w=c.__y,b=l.__x,k=l.__y;for(a=0;a<u;a++)y=a/u,this.g.add({__x:p+(b-p)*y,__y:w+(k-w)*y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}this.a=!0},i:function(i,r,u,f,e){var s=this,v=null,c=s.f,l=c.count(),y,o,p,h,w,b,a;if(l==0)return i;if(r.__segments.count()==0&&(y=c.__inner[0],r.__startPoint={__x:f+u*y.__x,__y:e+u*y.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),s.b)l>1&&(o=new t.cx,v=o,p=c.__inner[1],o.d({__x:f+u*p.__x,__y:e+u*p.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),o.b(s.d),o.e(s.c?1:0),o.f(new t.cn(s.h*u,s.h*u)),i=o.d());else if(h=new t.cz,v=h,l>1){for(b=h.__points,a=1;a<l;a++)w=c.__inner[a],b.add({__x:f+u*w.__x,__y:e+u*w.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});i=h.__points.__inner[h.__points.count()-1]}return r.__segments.add(v),i},k:function(i,r,u){var f=this,e=r.f,h=!1,o=u.f,c=!1,l,a,s;if(e.count()!=0||o.count()!=0){if(f.b=!1,f.e=!1,f.a=!1,f.d=!1,f.c=!1,r.e&&(h=!0),u.e&&(c=!0),(r.b!=u.b||r.e||u.e||r.d!=u.d||r.c!=u.c)&&(h=!0,c=!0,f.e=!0),h&&!r.e&&(r.a||r.j(u.h),e=r.g),c&&!u.e&&(u.a||u.j(r.h),o=u.g),r.e&&(e=r.g),u.e&&(o=u.g),f.g.clear(),r.b&&u.b&&(f.b=!0),t.$cu.a(f.f,i,e,o),f.e){for(a=f.f.count(),s=0;s<a;s++)l=f.f.__inner[s],f.g.add({__x:l.__x,__y:l.__y,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});f.a=!0}r.d==u.d&&(f.d=u.d);r.c==u.c&&(f.c=u.c);f.b&&(f.h=r.h+(u.h-r.h)*i)}},l:function(){this.f.clear();this.g.clear();this.e=!1;this.a=!1;this.b=!1},$type:new n.ig.Type("MorphSegment",n.ig.$ot)},!0);n.ig.util.defType("LinearGaugeFrame:e5","LinearGraphFrame",{init:function(){t.$cp.init.call(this);this.c(new t.e6)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("LinearGaugeFrame",t.$cp.$type)},!0);n.ig.util.defType("LinearGaugeScaleFrame:e6","LinearGraphScaleFrame",{init:function(){t.$cq.init.call(this);this.ad(new t.cv)},_ad:null,ad:function(n){return arguments.length===1?(this._ad=n,n):this._ad},w:function(n,i,r){t.$cq.w.call(this,n,i,r);this.ad(t.$cv.a(n,1-n,i.ad(),r.ad()))},$type:new n.ig.Type("LinearGaugeScaleFrame",t.$cq.$type)},!0);n.ig.util.defType("LinearNeedleVisualData:e8","ToolTipItemVisualData",{init:function(){t.$et.init.call(this)},_value:0,value:function(n){return arguments.length===1?(this._value=n,n):this._value},serialize:function(){return"{ value: "+this.value().toString()+", type: '"+this.type()+"'}"},type:function(){return"needle"},$type:new n.ig.Type("LinearNeedleVisualData",t.$et.$type)},!0);n.ig.util.defType("LinearNeedleVisualDataList:e7","List$1",{init:function(){t.$aq.init.call(this,t.$e8.$type)},$type:new n.ig.Type("LinearNeedleVisualDataList",t.$aq.$type.specialize(t.$e8.$type))},!0);n.ig.util.defType("LinearGaugeVisualData:e9","LinearGraphVisualData",{init:function(){t.$c4.init.call(this)},_needlePath:null,needlePath:function(n){return arguments.length===1?(this._needlePath=n,n):this._needlePath},_needle:null,needle:function(n){return arguments.length===1?(this._needle=n,n):this._needle},scaleByViewport:function(){t.$c4.scaleByViewport.call(this);this.needlePath()!=null&&this.needlePath().scaleByViewport(this.viewport())},serialize:function(){var r=t.$c4.serialize.call(this),n=new t.da,i=r.length==0;return(this.needlePath()!=null&&(i?i=!1:n.d(", "),n.d("needlePath: "),n.f(this.needlePath().serialize())),this.needle()!=null&&(i?i=!1:n.d(", "),n.d("needle: "),n.f(this.needle().serialize())),i)?r:(n.d("}"),r.substr(0,r.length-1)+n.b())},$type:new n.ig.Type("LinearGaugeVisualData",t.$c4.$type)},!0);n.ig.util.defType("XamLinearGauge:fa","Control",{init:function(){var i=this;this.bb=0;this.ba=0;this.a9=100;this.a5=new t.aq(t.$ej.$type,0);this.a6=new t.aq(t.$ej.$type,0);this.a8=new t.aq(t.$du.$type,0);this.a7=new t.aq(t.$du.$type,0);t.$fb.init.call(this);this.view(new t.fr(this));this.view().a3();this.g4=t.$cm.empty();this.g3=t.$cm.empty();this.g2=t.$cm.empty();this.aj(new t.e5);this.ai(new t.e5);this.ah(new t.e5);this.ranges(new t.ey);this.ax(!0);this.aq(new t.ff(0,1,this.transitionDuration()));this.aq().propertyChanged=n.ig.Delegate.prototype.combine(this.aq().propertyChanged,this.eg.runOn(this));this.y(t.$fa.$type);this.au(function(){var n=new t.fi(t.$du.$type);return n.a(i.view().bc.runOn(i.view())),n.b(i.view().bd.runOn(i.view())),n.c(i.view().be.runOn(i.view())),n.i(i.view().cc.runOn(i.view())),n}());this.av(function(){var n=new t.fi(t.$du.$type);return n.a(i.view().a6.runOn(i.view())),n.b(i.view().a7.runOn(i.view())),n.c(i.view().a8.runOn(i.view())),n.i(i.view().cb.runOn(i.view())),n}());this.at(function(){var n=new t.fi(t.$du.$type);return n.a(i.view().a6.runOn(i.view())),n.b(i.view().a7.runOn(i.view())),n.c(i.view().a8.runOn(i.view())),n.i(i.view().cb.runOn(i.view())),n}());this.ar(function(){var n=new t.fi(t.$ej.$type);return n.a(i.view().ax.runOn(i.view())),n.b(i.view().ay.runOn(i.view())),n.c(i.view().az.runOn(i.view())),n.i(i.view().bt.runOn(i.view())),n}());this.as(function(){var n=new t.fi(t.$ej.$type);return n.a(i.view().bm.runOn(i.view())),n.b(i.view().bn.runOn(i.view())),n.c(i.view().bo.runOn(i.view())),n.i(i.view().bu.runOn(i.view())),n}())},_aq:null,aq:function(n){return arguments.length===1?(this._aq=n,n):this._aq},eg:function(){this.transitionProgress(this.aq().transitionProgress())},animating:function(){return this.aq().animationActive()},bb:0,transitionProgress:function(n){if(arguments.length===1){var t=this.bb;return this.bb=n,this.eo("TransitionProgress",t,this.bb),n}return this.bb},e4:function(){this.bb=0;this.aq().stop();this.aq().start()},a2:function(){return this.transitionDuration()>0},formatLabel:null,alignLabel:null,_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},_ai:null,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_ah:null,ah:function(n){return arguments.length===1?(this._ah=n,n):this._ah},_am:null,am:function(n){return arguments.length===1?(this._am=n,n):this._am},orientation:function(n){return arguments.length===1?(this.g(t.$fa.orientationProperty,n),n):this.c(t.$fa.orientationProperty)},ranges:function(n){return arguments.length===1?(this.g(t.$fa.rangesProperty,n),n):this.c(t.$fa.rangesProperty)},rangeBrushes:function(n){return arguments.length===1?(this.g(t.$fa.rangeBrushesProperty,n),n):this.c(t.$fa.rangeBrushesProperty)},rangeOutlines:function(n){return arguments.length===1?(this.g(t.$fa.rangeOutlinesProperty,n),n):this.c(t.$fa.rangeOutlinesProperty)},minimumValue:function(n){return arguments.length===1?(this.g(t.$fa.minimumValueProperty,n),n):this.c(t.$fa.minimumValueProperty)},ba:0,actualMinimumValue:function(n){return arguments.length===1?(this.ba=n,n):this.ba},maximumValue:function(n){return arguments.length===1?(this.g(t.$fa.maximumValueProperty,n),n):this.c(t.$fa.maximumValueProperty)},a9:0,actualMaximumValue:function(n){return arguments.length===1?(this.a9=n,n):this.a9},value:function(n){return arguments.length===1?(this.g(t.$fa.valueProperty,n),n):this.c(t.$fa.valueProperty)},needleShape:function(n){return arguments.length===1?(this.g(t.$fa.needleShapeProperty,n),n):this.c(t.$fa.needleShapeProperty)},needleName:function(n){return arguments.length===1?(this.g(t.$fa.needleNameProperty,n),n):this.c(t.$fa.needleNameProperty)},rangeInnerExtent:function(n){return arguments.length===1?(this.g(t.$fa.rangeInnerExtentProperty,n),n):this.c(t.$fa.rangeInnerExtentProperty)},scaleInnerExtent:function(n){return arguments.length===1?(this.g(t.$fa.scaleInnerExtentProperty,n),n):this.c(t.$fa.scaleInnerExtentProperty)},rangeOuterExtent:function(n){return arguments.length===1?(this.g(t.$fa.rangeOuterExtentProperty,n),n):this.c(t.$fa.rangeOuterExtentProperty)},scaleOuterExtent:function(n){return arguments.length===1?(this.g(t.$fa.scaleOuterExtentProperty,n),n):this.c(t.$fa.scaleOuterExtentProperty)},needleInnerExtent:function(n){return arguments.length===1?(this.g(t.$fa.needleInnerExtentProperty,n),n):this.c(t.$fa.needleInnerExtentProperty)},needleOuterExtent:function(n){return arguments.length===1?(this.g(t.$fa.needleOuterExtentProperty,n),n):this.c(t.$fa.needleOuterExtentProperty)},needleInnerBaseWidth:function(n){return arguments.length===1?(this.g(t.$fa.needleInnerBaseWidthProperty,n),n):this.c(t.$fa.needleInnerBaseWidthProperty)},needleOuterBaseWidth:function(n){return arguments.length===1?(this.g(t.$fa.needleOuterBaseWidthProperty,n),n):this.c(t.$fa.needleOuterBaseWidthProperty)},needleInnerPointWidth:function(n){return arguments.length===1?(this.g(t.$fa.needleInnerPointWidthProperty,n),n):this.c(t.$fa.needleInnerPointWidthProperty)},needleOuterPointWidth:function(n){return arguments.length===1?(this.g(t.$fa.needleOuterPointWidthProperty,n),n):this.c(t.$fa.needleOuterPointWidthProperty)},needleInnerPointExtent:function(n){return arguments.length===1?(this.g(t.$fa.needleInnerPointExtentProperty,n),n):this.c(t.$fa.needleInnerPointExtentProperty)},needleOuterPointExtent:function(n){return arguments.length===1?(this.g(t.$fa.needleOuterPointExtentProperty,n),n):this.c(t.$fa.needleOuterPointExtentProperty)},interval:function(n){return arguments.length===1?(this.g(t.$fa.intervalProperty,n),n):this.c(t.$fa.intervalProperty)},ticksPostInitial:function(n){return arguments.length===1?(this.g(t.$fa.ticksPostInitialProperty,n),n):this.c(t.$fa.ticksPostInitialProperty)},ticksPreTerminal:function(n){return arguments.length===1?(this.g(t.$fa.ticksPreTerminalProperty,n),n):this.c(t.$fa.ticksPreTerminalProperty)},labelInterval:function(n){return arguments.length===1?(this.g(t.$fa.labelIntervalProperty,n),n):this.c(t.$fa.labelIntervalProperty)},labelExtent:function(n){return arguments.length===1?(this.g(t.$fa.labelExtentProperty,n),n):this.c(t.$fa.labelExtentProperty)},labelsPostInitial:function(n){return arguments.length===1?(this.g(t.$fa.labelsPostInitialProperty,n),n):this.c(t.$fa.labelsPostInitialProperty)},labelsPreTerminal:function(n){return arguments.length===1?(this.g(t.$fa.labelsPreTerminalProperty,n),n):this.c(t.$fa.labelsPreTerminalProperty)},minorTickCount:function(n){return arguments.length===1?(this.g(t.$fa.minorTickCountProperty,n),n):this.c(t.$fa.minorTickCountProperty)},tickStartExtent:function(n){return arguments.length===1?(this.g(t.$fa.tickStartExtentProperty,n),n):this.c(t.$fa.tickStartExtentProperty)},tickEndExtent:function(n){return arguments.length===1?(this.g(t.$fa.tickEndExtentProperty,n),n):this.c(t.$fa.tickEndExtentProperty)},tickStrokeThickness:function(n){return arguments.length===1?(this.g(t.$fa.tickStrokeThicknessProperty,n),n):this.c(t.$fa.tickStrokeThicknessProperty)},tickBrush:function(n){return arguments.length===1?(this.g(t.$fa.tickBrushProperty,n),n):this.c(t.$fa.tickBrushProperty)},fontBrush:function(n){return arguments.length===1?(this.g(t.$fa.fontBrushProperty,n),n):this.c(t.$fa.fontBrushProperty)},needleBreadth:function(n){return arguments.length===1?(this.g(t.$fa.needleBreadthProperty,n),n):this.c(t.$fa.needleBreadthProperty)},needleBrush:function(n){return arguments.length===1?(this.g(t.$fa.needleBrushProperty,n),n):this.c(t.$fa.needleBrushProperty)},needleOutline:function(n){return arguments.length===1?(this.g(t.$fa.needleOutlineProperty,n),n):this.c(t.$fa.needleOutlineProperty)},needleStrokeThickness:function(n){return arguments.length===1?(this.g(t.$fa.needleStrokeThicknessProperty,n),n):this.c(t.$fa.needleStrokeThicknessProperty)},minorTickStartExtent:function(n){return arguments.length===1?(this.g(t.$fa.minorTickStartExtentProperty,n),n):this.c(t.$fa.minorTickStartExtentProperty)},minorTickEndExtent:function(n){return arguments.length===1?(this.g(t.$fa.minorTickEndExtentProperty,n),n):this.c(t.$fa.minorTickEndExtentProperty)},minorTickStrokeThickness:function(n){return arguments.length===1?(this.g(t.$fa.minorTickStrokeThicknessProperty,n),n):this.c(t.$fa.minorTickStrokeThicknessProperty)},minorTickBrush:function(n){return arguments.length===1?(this.g(t.$fa.minorTickBrushProperty,n),n):this.c(t.$fa.minorTickBrushProperty)},isScaleInverted:function(n){return arguments.length===1?(this.g(t.$fa.isScaleInvertedProperty,n),n):this.c(t.$fa.isScaleInvertedProperty)},backingBrush:function(n){return arguments.length===1?(this.g(t.$fa.backingBrushProperty,n),n):this.c(t.$fa.backingBrushProperty)},backingOutline:function(n){return arguments.length===1?(this.g(t.$fa.backingOutlineProperty,n),n):this.c(t.$fa.backingOutlineProperty)},backingStrokeThickness:function(n){return arguments.length===1?(this.g(t.$fa.backingStrokeThicknessProperty,n),n):this.c(t.$fa.backingStrokeThicknessProperty)},backingInnerExtent:function(n){return arguments.length===1?(this.g(t.$fa.backingInnerExtentProperty,n),n):this.c(t.$fa.backingInnerExtentProperty)},backingOuterExtent:function(n){return arguments.length===1?(this.g(t.$fa.backingOuterExtentProperty,n),n):this.c(t.$fa.backingOuterExtentProperty)},scaleStartExtent:function(n){return arguments.length===1?(this.g(t.$fa.scaleStartExtentProperty,n),n):this.c(t.$fa.scaleStartExtentProperty)},scaleEndExtent:function(n){return arguments.length===1?(this.g(t.$fa.scaleEndExtentProperty,n),n):this.c(t.$fa.scaleEndExtentProperty)},scaleBrush:function(n){return arguments.length===1?(this.g(t.$fa.scaleBrushProperty,n),n):this.c(t.$fa.scaleBrushProperty)},scaleOutline:function(n){return arguments.length===1?(this.g(t.$fa.scaleOutlineProperty,n),n):this.c(t.$fa.scaleOutlineProperty)},scaleStrokeThickness:function(n){return arguments.length===1?(this.g(t.$fa.scaleStrokeThicknessProperty,n),n):this.c(t.$fa.scaleStrokeThicknessProperty)},a0:function(n){return arguments.length===1?(this.g(t.$fa.fk,n),n):this.c(t.$fa.fk)},transitionDuration:function(n){return arguments.length===1?(this.g(t.$fa.transitionDurationProperty,n),n):this.c(t.$fa.transitionDurationProperty)},showToolTipTimeout:function(n){return arguments.length===1?(this.g(t.$fa.showToolTipTimeoutProperty,n),n):this.c(t.$fa.showToolTipTimeoutProperty)},toolTip:function(n){return arguments.length===1?(this.g(t.$fa.toolTipProperty,n),n):this.c(t.$fa.toolTipProperty)},_showToolTip:!1,showToolTip:function(n){return arguments.length===1?(this._showToolTip=n,n):this._showToolTip},font:function(n){return arguments.length===1?(this.g(t.$fa.fontProperty,n),n):this.c(t.$fa.fontProperty)},_av:null,av:function(n){return arguments.length===1?(this._av=n,n):this._av},_at:null,at:function(n){return arguments.length===1?(this._at=n,n):this._at},_ar:null,ar:function(n){return arguments.length===1?(this._ar=n,n):this._ar},_as:null,as:function(n){return arguments.length===1?(this._as=n,n):this._as},_au:null,au:function(n){return arguments.length===1?(this._au=n,n):this._au},getValueForPoint:function(n){var t=0,i=n.__x;return this.orientation()==1&&(t=n.__y,i=this.g7().height()),this.am().k(i-t)},a4:null,needleContainsPoint:function(n){return this.a4==null?!1:t.$gy.a(this.a4,n)},exportVisualData:function(){var r=this,n=new t.e9,i,u;if(n.viewport(r.g7()),n.scaleLabels(new t.ep),n.scaleTickmarks(new t.eq),n.ranges(new t.er),n.needle(function(){var n=new t.e8;return n.value(r.value()),n}()),r.view().at(n),i=r.view().i(),i!=null){u=null;switch(i.d()){case"range":u=n.ranges().__inner[i.b()];break;case"needle":u=n.needle()}n.toolTip(function(){var n=new t.es;return n.item(u),n.itemBrush(t.$db.fromBrush(i.a().brush())),n.outline(t.$db.fromBrush(i.a().outline())),n.thickness(i.a().thickness()),n}())}return n},provideContainer:function(n){this.view().a1(n)},onMouseOver:function(n){this.showToolTip()&&(n=this.view().ao(n),this.e3(n,null))},onMouseLeave:function(){this.showToolTip()&&this.e3({__x:-1e4,__y:-1e4,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName},null)},containerResized:function(){this.view().a2()},styleUpdated:function(){this.view().bl()},flush:function(){this.view().flush()},e3:function(n,i){var u=this.a4,e,r,o,f,s;if(u!=null&&u.count()>0&&(e=t.$gy.a(u,n),e==!0)){this.view().bk(n,i,-1,"needle");return}for(r=0;r<this.a7.count();r++)if(o=new t.gx(1,"range",this.a7.__inner[r]),f=o.getPoints(new t.d6),f.count()>0&&(s=t.$gy.a(f.__inner[0],n),s==!0)){this.view().bk(n,i,r,"range");return}this.view().aw()},ex:function(){var i,r,u,e,n,f,o;if(this.ax())if(i=this.ai().c(),this.orientation()==0){for(r=0,u=0;u<i.c().length;u++)r=Math.max(r,i.c()[u]);e=this.g7().height()>=r?this.g7().height()-r:this.g7().height();this.g6(new t.cm(0,0,0,this.g7().width(),e))}else{for(n=0,f=0;f<i.f().length;f++)n=Math.max(n,i.f()[f]);o=this.g7().width()>=n?this.g7().width()-n:this.g7().width();this.g6(new t.cm(0,n,0,o,this.g7().height()))}},_view:null,view:function(n){return arguments.length===1?(this._view=n,n):this._view},g4:null,g7:function(n){if(arguments.length===1){var t=this.g4;return this.g4=n,t.equals(this.g4)||this.ep(t,this.g4),n}return this.g4},g3:null,g6:function(n){return arguments.length===1?(this.g3=n,n):this.g3},g2:null,g5:function(n){return arguments.length===1?(this.g2=n,n):this.g2},az:function(){return!isNaN(this.actualMinimumValue())&&!isNaN(this.actualMaximumValue())&&!this.g7().isEmpty()&&this.view().p()},eh:function(){var n,i;this.az()&&(n=this.ca(),this.am(new t.c3(this.actualMinimumValue(),this.actualMaximumValue(),n,n+this.b8(),this.isScaleInverted())),this.ax()?(i=this.aj(),this.animating()?(this.aq().needsFlush()&&this.aq().flush(),this.aj(this.ah()),this.ah(i)):(this.aj(this.ai()),this.ai(i))):this.animating()&&(this.ah().d(this.transitionProgress(),this.aj(),this.ai()),this.ey(this.ah()),this.e1(this.ah()),this.e0(this.ah())),this.ax()&&(this.er(),this.ex(),this.es(),this.et(),this.eq()),this.ax()&&this.a2()?(this.e4(),this.ah().d(this.transitionProgress(),this.aj(),this.ai()),this.ey(this.ah()),this.e1(this.ah()),this.e0(this.ah()),this.e2(this.ah()),this.ez(this.ah())):this.ax()&&(this.ey(this.ai()),this.e1(this.ai()),this.e0(this.ai()),this.e2(this.ai()),this.ez(this.ai())),this.ax(!1),this.view().as())},a5:null,a6:null,a8:null,a7:null,et:function(){var b=this.ai(),i=b.c(),l=this.am(),w=this.minorTickCount(),k=this.g6(),e,r,a,v,n,u,o,s,f,y,p,h,c;for(i.s(this.scaleStartExtent()),i.p(this.scaleEndExtent()),i.q(this.scaleInnerExtent()),i.r(this.scaleOuterExtent()),i.k().clear(),e=0;e<this.ranges().count();e++)(r=this.ranges().__inner[e],r.endValue()<=this.actualMinimumValue()||r.startValue()>this.actualMaximumValue())||(a=r.startValue(),v=r.endValue(),a<this.actualMinimumValue()&&(a=this.actualMinimumValue()),v>this.actualMaximumValue()&&(v=this.actualMaximumValue()),n=new t.cs,n.i=r.brush()!=null?r.brush():this.gv(e,this.rangeBrushes()),n.j=r.outline()!=null?r.outline():this.gv(e,this.rangeOutlines()),n.h=r.strokeThickness(),n.g=l.i(a),n.d=l.i(v),n.e=r.innerStartExtent(),n.b=r.innerEndExtent(),n.f=r.outerStartExtent(),n.c=r.outerEndExtent(),isNaN(n.e)&&(n.e=this.rangeInnerExtent()),n.b=r.innerEndExtent(),isNaN(n.b)&&(n.b=this.rangeInnerExtent()),n.f=r.outerStartExtent(),isNaN(n.f)&&(n.f=this.rangeOuterExtent()),n.c=r.outerEndExtent(),isNaN(n.c)&&(n.c=this.rangeOuterExtent()),i.k().add(n));if(i.z(this.fontBrush()),i.ab(this.tickBrush()),i.v(this.tickStrokeThickness()),i.u(this.tickStartExtent()),i.t(this.tickEndExtent()),i.aa(this.minorTickBrush()),i.o(this.minorTickStrokeThickness()),i.n(this.minorTickStartExtent()),i.m(this.minorTickEndExtent()),u=this.interval(),isNaN(u)&&(u=(this.actualMaximumValue()-this.actualMinimumValue())/10),u==0&&(u=this.actualMaximumValue()-this.actualMinimumValue()),o=new t.aq(Number,0),s=new t.aq(Number,0),u>0)for(f=this.actualMinimumValue()+this.ticksPostInitial();f<=this.actualMaximumValue()-this.ticksPreTerminal();)if(!(f>this.actualMaximumValue()-this.ticksPreTerminal())){for(o.add(l.i(f)),y=0;y<w;y++)(p=u/(w+1)*(y+1),p+f>this.actualMaximumValue()-this.ticksPreTerminal())||s.add(l.i(p+f));f=Math.round((f+u)*100)/100}for((i.j().length!=o.count()||i.i().length!=s.count())&&(i.j(new Array(o.count())),i.i(new Array(s.count()))),h=0;h<o.count();h++)i.j()[h]=o.__inner[h];for(c=0;c<s.count();c++)i.i()[c]=s.__inner[c]},g8:function(){var n=this,k=n.interval(),e=n.labelInterval(),o,h,i,r,s,c,a,l,d,y,p,w,b;if(isNaN(k)&&(k=(n.actualMaximumValue()-n.actualMinimumValue())/10),isNaN(e)&&(e=k),e==0&&(e=n.actualMaximumValue()-n.actualMinimumValue()),o=new t.aq(Number,0),e>0)for(h=n.labelsPostInitial()+n.actualMinimumValue();h<=n.actualMaximumValue()-n.labelsPreTerminal();h+=e)h>n.actualMaximumValue()-n.labelsPreTerminal()||o.add(h);for(i=new Array(o.count()),r=new Array(o.count()),s=0;s<o.count();s++)c=o.__inner[s],c=Math.round(c*100)/100,a=c.toString(),l=new t.e2,l.value=c,l.label=a,n.formatLabel!=null&&n.formatLabel(n,l),a=l.label,d=n.view().cd(function(){var n=new t.ej;return n.aa(a),n}()),i[s]=d.b(),r[s]=d.a();var u=0,f=0,v=1-n.scaleEndExtent()+n.scaleStartExtent();if(n.orientation()==0){for(y=0;y<r.length;y++)f=Math.max(f,r[y]);for(p=0;p<i.length;p++)u+=i[p];i.length>0&&(u+=i[0]/2);i.length>1&&(u+=i[i.length-1]/2);i.length>0&&(u+=(i.length-1)*5);v>0&&(u=u/Math.abs(1-v))}else{for(w=0;w<i.length;w++)u=Math.max(u,i[w]);for(b=0;b<r.length;b++)f+=r[b];r.length>0&&(f-=r[0]/2);r.length>1&&(f-=r[r.length-1]/2);v>0&&(f=f/Math.abs(1-v));r.length>0&&(f+=(r.length-1)*5)}return new t.cn(u,f)},er:function(){var n=this,v=n.ai(),r=v.c(),y=n.am(),a=n.interval(),h=n.labelInterval(),p=n.minorTickCount(),u,e,o,i,f,c,l,s;if(isNaN(a)&&(a=(n.actualMaximumValue()-n.actualMinimumValue())/10),isNaN(h)&&(h=a),h==0&&(h=n.actualMaximumValue()-n.actualMinimumValue()),u=new t.aq(t.$co.$type.specialize(Number,Number),0),h>0)for(e=n.labelsPostInitial()+n.actualMinimumValue();e<=n.actualMaximumValue()-n.labelsPreTerminal();)e>n.actualMaximumValue()-n.labelsPreTerminal()||(u.add(new t.co(Number,Number,e,y.i(e))),e=Math.round((e+h)*100)/100);for(r.d().length!=u.count()&&(r.e(new Array(u.count())),r.d(new Array(u.count())),r.f(new Array(u.count())),r.c(new Array(u.count())),r.g(new Array(u.count())),r.h(new Array(u.count()))),r.l(n.labelExtent()),o=new t.e2,o.actualMinimumValue=n.actualMinimumValue(),o.actualMaximumValue=n.actualMaximumValue(),i=new t.e4,i.actualMinimumValue=n.actualMinimumValue(),i.actualMaximumValue=n.actualMaximumValue(),f=0;f<u.count();f++)c=u.__inner[f].a(),c=Math.round(c*100)/100,l=c.toString(),o.value=c,i.value=c,o.label=l,n.formatLabel!=null&&n.formatLabel(n,o),l=o.label,i.label=l,s=n.view().cd(function(){var n=new t.ej;return n.aa(l),n}()),i.width=s.b(),i.height=s.a(),n.orientation()==0?(i.offsetX=s.b()/-2,i.offsetY=-1*s.a()):(i.offsetX=-1*s.b(),i.offsetY=s.a()/-2),n.alignLabel!=null&&n.alignLabel(n,i),r.f()[f]=i.width,r.c()[f]=i.height,r.g()[f]=i.offsetX,r.h()[f]=i.offsetY,r.d()[f]=l,r.e()[f]=u.__inner[f].b()},eq:function(){var t=this.ai(),n=t.a();n.e(this.backingBrush());n.f(this.backingOutline());n.c(this.backingStrokeThickness());n.a(this.backingInnerExtent());n.b(this.backingOuterExtent())},es:function(){var r=this.value(),i,u,f;if(!isNaN(r)&&!(r<this.actualMinimumValue())&&!(r>this.actualMaximumValue())){var e=this.ai().c(),o=this.am(),n=new t.c2;n.needleShape(this.needleShape());n.isScaleInverted(this.isScaleInverted());n.scaleOrientation(this.orientation());n.outerExtent(this.needleOuterExtent());n.innerExtent(this.needleInnerExtent());n.outerPointExtent(this.needleOuterPointExtent());n.innerPointExtent(this.needleInnerPointExtent());n.outerBaseWidth(this.needleOuterBaseWidth());n.innerBaseWidth(this.needleInnerBaseWidth());n.innerPointWidth(this.needleInnerPointWidth());n.outerPointWidth(this.needleOuterPointWidth());n.defaultWidth(this.needleBreadth()*.5/this.b5());i=new t.cv;i.r(this.needleBrush());i.s(this.needleOutline());i.o(this.needleStrokeThickness());u=new t.c1;u.b(n);u.c(i);i.l(-90);f=o.i(r);i.p(f);e.ad(i)}},gv:function(n,t){return t!=null&&t.count()>0?t.item(n%t.count()):null},e2:function(i){var r=this,e=r.g6(),u=i.c(),o=r.av(),b=u.j(),ft=u.u(),et=u.t(),lt=u.ab(),at=u.v(),pt=r.at(),k=u.i(),ot=u.n(),st=u.m(),vt=u.aa(),yt=u.o(),c,f,d,s,l,a,g,nt,h,y,p,it,rt;for(o.e(!0),c=0;c<r.a8.count();c++)o.m(r.a8.__inner[c]);for(r.a8.clear(),f=r.b5(),d=r.cl(),s=0;s<b.length;s++){r.orientation()==1?(l=e.left()+f*ft,a=d-b[s],g=e.left()+f*et,nt=a):(l=e.left()+b[s],a=f*(1-ft),g=l,nt=f*(1-et));var v=o.n(),ht=new t.am,tt=new t.ba;tt.__startPoint={__x:l,__y:a,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};tt.__segments.add(function(){var i=new t.bd(1);return i.c({__x:g,__y:nt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());ht.b().add(tt);v.ak(ht);v.__stroke=lt;v.z(at);r.a8.add(v)}for(h=0;h<k.length;h++){r.orientation()==1?(y=e.left()+f*ot,p=d-k[h],it=e.left()+f*st,rt=p):(y=k[h],p=f*(1-ot),it=y,rt=f*(1-st));var w=o.n(),ct=new t.am,ut=new t.ba;ut.__startPoint={__x:y,__y:p,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};ut.__segments.add(function(){var i=new t.bd(1);return i.c({__x:it,__y:rt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),i}());ct.b().add(ut);w.ak(ct);w.__stroke=vt;w.z(yt);r.a8.add(w)}o.e(!1)},ez:function(n){var u=this.g6(),i=n.c(),h=i.e(),c=i.d(),v=i.g(),y=i.h(),p=i.f(),w=i.c(),l=i.l(),f=this.ar(),e,t,o,s,r;for(f.e(!0),e=0;e<this.a5.count();e++)f.m(this.a5.__inner[e]);this.a5.clear();var b=i.z(),a=this.ck(),k=this.cl();for(t=0;t<c.length;t++){this.orientation()==1?(o=u.left()+a*l,s=u.top()+k-h[t]):(o=u.left()+h[t],s=u.top()+a*(1-l));r=f.n();r.aa(c[t]);this.view().bj(r,b);var nt=p[t],tt=w[t],d=v[t],g=y[t];this.view().ba(r,o+d,s+g);this.a5.add(r)}f.e(!1)},e1:function(n){var t=n.c(),f=this.au(),e,c,o,u,i;for(f.e(!0),e=0;e<this.a7.count();e++)f.m(this.a7.__inner[e]);this.a7.clear();var s=this.b5(),l=this.cl(),h=this.cp(),r=this.view().ca();for(isNaN(t.q())||isNaN(t.r())||isNaN(t.s())||isNaN(t.p())?r.ak(null):(c=this.b8(),r.ak(t.ac(h,s,c,this.orientation())),r.__fill=this.scaleBrush(),r.__stroke=this.scaleOutline(),r.z(this.scaleStrokeThickness())),o=0;o<t.k().count();o++)u=t.k().__inner[o],i=f.n(),i.ak(u.k(h,s,l,this.orientation())),i.__fill=u.i,i.__stroke=u.j,i.z(u.h),this.a7.add(i);this.view().bi(this.a7);f.e(!1)},ey:function(n){var t=this.g5(),i=this.view().b8(),r=n.a(),u=this.orientation()==0?t.height():t.width(),f=this.orientation()==0?t.width():t.height(),e=r.g(u,f,this.orientation());i.ak(e);i.__fill=r.e();i.__stroke=r.f();i.z(r.c())},e0:function(n){var i,u,s,f;if(this.a4=null,i=this.view().b9(),u=this.value(),isNaN(u)||u<this.actualMinimumValue()||u>this.actualMaximumValue()){i.ak(null);return}var h=n.c(),r=h.ad(),c=this.b5(),l=this.cl(),a=c,e=r.p(),o=0;this.orientation()==1&&(e=this.g6().left(),o=l-r.p());i.ak(r.t(a,e,o));i.__fill=r.r();i.__stroke=r.s();i.z(r.o());s=new t.gx(1,"needle",i);f=s.getPoints(new t.d6);f.count()>0&&(this.a4=f.__inner[0])},ep:function(){this.ax(!0);this.view().bh()},el:function(){this.ax(!0);this.view().bh()},b5:function(){return this.orientation()==0?this.a0()?this.g7().height():this.g6().height():this.a0()?this.g7().width():this.g6().width()},b8:function(){return this.orientation()==0?this.g7().width()*(this.scaleEndExtent()-this.scaleStartExtent()):this.g7().height()*(this.scaleEndExtent()-this.scaleStartExtent())},ck:function(){return this.orientation()==0?this.g7().height():this.g7().width()},cl:function(){return this.orientation()==0?this.g7().width():this.g7().height()},ca:function(){var n=this.scaleStartExtent();return this.orientation()==0?(this.isScaleInverted()&&(n=1-this.scaleEndExtent()),this.g7().left()+this.g7().width()*n):(this.isScaleInverted()&&(n=1-this.scaleEndExtent()),this.g7().top()+this.g7().height()*n)},cp:function(){var i=this.g6().left(),t;return(this.a0()&&(i=0),t=this.scaleStartExtent(),this.orientation()==0)?(this.isScaleInverted()&&(t=1-this.scaleEndExtent()),{__x:i+this.g6().width()*t,__y:this.g6().top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}):(this.isScaleInverted()||(t=1-this.scaleEndExtent()),{__x:i,__y:this.g6().top()+this.g6().height()*t,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})},eo:function(i,r,u){var s,f,e,o;switch(i){case"BackingBrush":case"BackingOutline":case"ScaleBrush":case"ScaleOutline":case"TickBrush":case"MinorTickBrush":case"NeedleBrush":case"NeedleOutline":this.view().a0(i,r,u);break;case"RangeBrushes":this.view().a4(r,u);break;case"RangeOutlines":this.view().a5(r,u)}switch(i){case"TransitionDuration":this.aq().intervalMilliseconds(this.transitionDuration());this.view().bh();break;case"TransitionProgress":this.transitionProgress()>=1&&(this.aq().stop(),s=this.ai(),this.ai(this.aj()),this.aj(s),this.er(),this.es(),this.et(),this.eq(),this.ey(this.ai()),this.e1(this.ai()),this.e0(this.ai()),this.e2(this.ai()),this.ez(this.ai()));this.ah().d(this.transitionProgress(),this.aj(),this.ai());this.ey(this.ah());this.e1(this.ah());this.e0(this.ah());this.e2(this.ah());this.ez(this.ah());this.view().as();break;case"NeedleBrush":case"NeedleName":case"NeedleBreadth":case"Value":case"NeedleShape":case"NeedleInnerExtent":case"NeedleOuterExtent":case"NeedleInnerPointExtent":case"NeedleOuterPointExtent":case"NeedleInnerBaseWidth":case"NeedleOuterBaseWidth":case"NeedleInnerPointWidth":case"NeedleOuterPointWidth":case"NeedleStrokeThickness":case"NeedleOutline":case"BackingBrush":case"BackingOutline":case"BackingStrokeThickness":case"BackingInnerExtent":case"BackingOuterExtent":case"ScaleBrush":case"ScaleOutline":case"ScaleStrokeThickness":case"ScaleInnerExtent":case"ScaleOuterExtent":case"TickBrush":case"MinorTickBrush":case"RangeBrushes":case"RangeOutlines":case"RangeInnerExtent":case"RangeOuterExtent":case"Interval":case"LabelInterval":case"LabelExtent":case"LabelsPostInitial":case"LabelsPreTerminal":case"TicksPostInitial":case"TicksPreTerminal":case"TickStartExtent":case"TickEndExtent":case"TickStrokeThickness":case"MinorTickStartExtent":case"MinorTickEndExtent":case"MinorTickCount":case"MinorTickStrokeThickness":this.ax(!0);this.view().bh();break;case"Ranges":f=r;e=u;f!=null&&(f.collectionChanged=n.ig.Delegate.prototype.remove(f.collectionChanged,this.ew.runOn(this)));e!=null&&(e.collectionChanged=n.ig.Delegate.prototype.combine(e.collectionChanged,this.ew.runOn(this)));this.ax(!0);this.view().bh();break;case"Orientation":case"IsScaleInverted":case"MinimumValue":case"MaximumValue":case"ScaleEndExtent":case"ScaleStartExtent":this.actualMinimumValue(Math.min(this.minimumValue(),this.maximumValue()));this.actualMaximumValue(Math.max(this.minimumValue(),this.maximumValue()));o=this.ca();this.am(new t.c3(this.actualMinimumValue(),this.actualMaximumValue(),o,o+this.b8(),this.isScaleInverted()));this.ax(!0);this.view().bh();break;case"FontBrush":case"Font":this.view().br();this.ax(!0);this.view().bh()}},ew:function(t,i){var r,u,f,e;if(i.oldItems()!=null)for(r=i.oldItems().getEnumerator();r.moveNext();)u=r.current(),u.propertyChanged=n.ig.Delegate.prototype.remove(u.propertyChanged,this.ev.runOn(this));if(i.newItems()!=null)for(f=i.newItems().getEnumerator();f.moveNext();)e=f.current(),e.propertyChanged=n.ig.Delegate.prototype.combine(e.propertyChanged,this.ev.runOn(this));this.ax(!0);this.view().bh()},ev:function(){this.ax(!0);this.view().bh()},ek:function(){this.ax(!0);this.view().bh()},_ax:!1,ax:function(n){return arguments.length===1?(this._ax=n,n):this._ax},$type:new n.ig.Type("XamLinearGauge",t.$fb.$type)},!0);n.ig.util.defType("XamLinearGaugeView:fr","Object",{am:0,al:0,init:function(i){this.c=null;this.d=null;this.n=!1;this.l=["needle","backing","scale","tick","minortick","label"];this.aq=null;this.ag=-1;this.bw=function(){var n=new t.aa;return n.fill("black"),n}();this.o=!1;this.ap=null;n.ig.$op.init.call(this);this.j(i);this.s=new t.fj(String,t.$fj.$type.specialize(String,t.$aa.$type),0);this.b6=new t.du;this.b7=new t.du;this.b5=new t.du;this.y(new t.aq(t.$du.$type,0));this.x(new t.aq(t.$du.$type,0));this.u(new t.aq(t.$ej.$type,0));this.v(new t.aq(t.$ej.$type,0))},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_ai:null,ai:function(n){return arguments.length===1?(this._ai=n,n):this._ai},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},ak:null,_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},_x:null,x:function(n){return arguments.length===1?(this._x=n,n):this._x},_u:null,u:function(n){return arguments.length===1?(this._u=n,n):this._u},_v:null,v:function(n){return arguments.length===1?(this._v=n,n):this._v},a3:function(){this.h(new t.ez);this.ae=this.j().showToolTipTimeout()},b6:null,b7:null,b5:null,p:function(){return!0},b9:function(){return this.b6},ca:function(){return this.b7},b8:function(){return this.b5},b0:null,b1:null,bx:null,by:null,b2:null,b3:null,b4:null,bz:null,a:null,b:null,c:null,d:null,n:!1,s:null,l:null,av:function(){var i=this,a,r,f,e;i.n=!0;var c=["#778899","#EBEDEF","#e0e0e0","#617583","rgba(100,107,114,.74)","rgba(100,107,114,.74)"],l=["#778899","#B2B9C0","#e0e0e0",null,null,null],y=function(){var i=new t.aq(n.ig.Array.prototype.$type,0);return i.add(c),i.add(l),i}();for(i.s.clear(),a=i.l.length,r=0;r<a;r++){var o=i.l[r],v="ui-lineargauge-"+o,s="ui-lineargauge-"+o+"-fill",h="ui-lineargauge-"+o+"-outline",u;(function(){var n=t.$fr.t.tryGetValue(s,u);return u=n.value,n.ret})()||(u=t.$bg.f(s,v,"background-color",i.aj(),c[r]),t.$fr.t.add(s,u)),function(){var n=t.$fr.t.tryGetValue(h,f);return f=n.value,n.ret}()||(f=t.$bg.f(h,v,"border-top-color",i.aj(),l[r]),t.$fr.t.add(h,f));e=new t.fj(String,t.$aa.$type,0);e.item("fill",u);e.item("outline",f);i.s.item(i.l[r],e)}i.bq();(t.$fr.e==null||t.$fr.f==null)&&function(){var n=t.$bg.b("ui-lineargauge-range-fill-palette-","ui-lineargauge-range-outline-palette-","ui-lineargauge-range-palette-",i.aj(),t.$fr.e,t.$fr.f,function(){var n=[];return n.add("#216E99"),n.add("#216E99"),n.add("#44acd6"),n.add("#44acd6"),n.add("#cecece"),n.add("#cecece"),n}());return t.$fr.e=n.brushes,t.$fr.f=n.outlines,n.ret}();i.a=t.$fr.e;i.b=t.$fr.f;i.c==null&&i.j().rangeBrushes(i.a);i.d==null&&i.j().rangeOutlines(i.b);i.n=!1},bq:function(){var i,n,t;for(this.n=!0,i=this.l.length,n=0;n<i;n++)t=this.l[n],this.bp(t,this.s.item(t));this.n=!1},bp:function(n,t){var i=t.item("fill"),r=t.item("outline");switch(n){case"needle":this.b0==null&&this.j().needleBrush(i);this.b1==null&&this.j().needleOutline(r);break;case"scale":this.b2==null&&this.j().scaleBrush(i);this.b3==null&&this.j().scaleOutline(r);break;case"backing":this.bx==null&&this.j().backingBrush(i);this.by==null&&this.j().backingOutline(r);break;case"tick":this.b4==null&&this.j().tickBrush(i);break;case"minortick":this.bz==null&&this.j().minorTickBrush(i);break;case"label":this.bw=i}},a0:function(n,t,i){var u=t,r=i;if(!this.n){switch(n){case"NeedleBrush":this.b0=r;break;case"NeedleOutline":this.b1=r;break;case"BackingBrush":this.bx=r;break;case"BackingOutline":this.by=r;break;case"ScaleBrush":this.b2=r;break;case"ScaleOutline":this.b3=r;break;case"TickBrush":this.b4=r;break;case"MinorTickBrush":this.bz=r}r==null&&this.bq()}},a4:function(n,t){this.n||(this.c=t,this.c==null&&this.j().rangeBrushes(this.a))},a5:function(n,t){this.n||(this.d=t,this.d==null&&this.j().rangeOutlines(this.b))},m:function(i,r){var f=this.ak,u;f==null&&(f=this.ak=n("<span style='position:absolute;display:none' />"),n("body").append(this.ak));for(var e=r.length,o=e,s=new Array(o);o-->0;)s[o]=r[o]=="font"?null:f.css(r[o]);for(f.addClass(i);e-->0;)u=r[e],u=u=="font"?t.$f6.c(f):f.css(u),r[e]=u==null||u.length==0||u=="null"||u=="transparent"||u==s[e]?null:u;return f.removeClass(i),r},bl:function(){this.av();this.br();this.bh()},_r:!1,r:function(n){return arguments.length===1?(this._r=n,n):this._r},_q:!1,q:function(n){return arguments.length===1?(this._q=n,n):this._q},ah:null,_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},ad:0,af:0,ao:function(i){var r=t.$f7.c3(this.aj());return{__x:i.__x-r.left(),__y:i.__y-r.top(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}},aq:null,ag:0,an:null,ae:0,bk:function(n,t,i,r){this.an=n;this.ag=i;this.aq=r;this.bg();this.af=window.setTimeout(this.bs.runOn(this),this.ae);this.q(!0)},aw:function(){if(this.q()&&(window.clearTimeout(this.af),this.q(!1)),this.r()){var n=this.j().toolTip();window.clearTimeout(this.ad);n.hide();this.r(!1);this.h(null)}this.ae=this.j().showToolTipTimeout()},bg:function(){if(this.q()&&window.clearTimeout(this.af),this.r()){var t=this.j().toolTip();window.clearTimeout(this.ad);t.hide();this.r(!1);this.ae=n.ig.intDivide(this.j().showToolTipTimeout(),2)}},bs:function(){var i=this,l,e,r;i.q()&&(window.clearTimeout(i.af),i.q(!1));var s=i.ag,f=i.aq,h=i.an;i.ad=window.setTimeout(i.aw.runOn(i),10*i.j().showToolTipTimeout());l=i.j().ranges().__inner[s];i.ah!=i.j().toolTip()&&(i.ah!=null&&i.ah.remove(),i.ah=i.j().toolTip(),i.ah.css("position","absolute"),i.aj().append(i.ah));i.h(i.g(f,s));var a=i.h(),c=i.ah,v=f;if(c.updateToolTip&&c.updateToolTip(a,v),e=i.ah.find(".ui-lineargauge-"+f+"-tooltip"),e!=null&&e.length>0){var o=function(){var n=[];return n.add("border-color"),n.add("border-width"),n.add("border-style"),n.add("border-radius"),n.add("background-color"),n.add("padding"),n.add("font-weight"),n}(),y=function(){var n=new t.aq(String,0);return n.add(i.h().brush().color().colorString()),n.add("2px"),n.add("solid"),n.add("4px"),n.add("rgba(230, 230, 230, 0.74)"),n.add("4px"),n.add("bold"),n}(),p=new t.fj(String,String,0),u=new Array(o.length);for(n.ig.Array.prototype.copy(o,0,u,0,o.length),i.m("ui-lineargauge-"+f+"-tooltip",u),r=0;r<u.length;r++)e.css(o[r],u[r]==null?y.__inner[r]:u[r])}i.ah.css("top",(h.__y+15).toString()+"px").css("left",(h.__x+15).toString()+"px");i.ah.show();i.r(!0)},g:function(n,i){var r=new t.ez,u,f,e;switch(n){case"range":u=this.j().ranges().__inner[i];r.item(u);r.itemName(u.name());r.label(u.name()+": "+u.startValue().toString()+"-"+u.endValue().toString());f=u.brush();e=u.outline();r.brush(f!=null?f:this.j().gv(i,this.a));r.outline(e!=null?e:this.j().gv(i,this.b));r.thickness(u.strokeThickness());break;case"needle":r.item(this.j().value());r.itemName(this.j().needleName());r.label(this.j().needleName()!=null?this.j().needleName()+": "+this.j().value().toString():this.j().value().toString());r.brush(this.j().needleBrush());r.outline(this.j().needleOutline());r.thickness(this.j().needleStrokeThickness())}return r},a1:function(i){var e=n(i),r,u,f,o;this.aj(e);r=Math.round(e.width());u=Math.round(e.height());this.aj().css("position","relative");f=n("<canvas style='position:absolute'><\/canvas>");this.aj().append(f);this.am=r;this.al=u;f.attr("width",r.toString());f.attr("height",u.toString());this.ak==null&&(this.ak=n("<span style='position:absolute;display:none' />"));this.aj().append(this.ak);this.j().g7(new t.cm(0,0,0,r,u));this.j().g5(new t.cm(0,0,0,r,u));this.ai(f);o=this.ai()[0].getContext("2d");this.k(new t.fs(new t.gp,o));this.av();this.br();this.k().z(this.ap);this.bf()},a2:function(){var n=Math.round(this.aj().width()),i=Math.round(this.aj().height());this.j().g7(new t.cm(0,0,0,n,i));this.j().g5(new t.cm(0,0,0,n,i))},as:function(){this.bf()},w:null,bi:function(n){this.w=n},bf:function(){var n,t,i;if((this.am!=this.j().g7().width()||this.al!=this.j().g7().height())&&(this.ai().attr("width",this.j().g7().width().toString()),this.ai().attr("height",this.j().g7().height().toString()),this.am=Math.round(this.j().g7().width()),this.al=Math.round(this.j().g7().height())),this.k().i(this.j().g7().left(),this.j().g7().top(),this.j().g7().width(),this.j().g7().height()),this.k().q(this.b5),this.k().q(this.b7),this.w!=null)for(n=0;n<this.w.count();n++)this.k().q(this.w.__inner[n]);for(t=0;t<this.u().count();t++)this.k().z(this.ap),this.k().u(this.u().__inner[t]);for(i=0;i<this.x().count();i++)this.k().q(this.x().__inner[i]);this.k().q(this.b6)},br:function(){this.ap=this.j().font()!=null?this.j().font():t.$f6.c(this.aj());this.z=this.aa(this.ap);this.j().fontBrush()==null&&(this.bv=new t.aa,this.bv.__fill=this.aj().css("color"),this.j().fontBrush(this.bv));this.k()!=null&&this.k().z(this.ap)},ab:function(i){var r=n.ig.util.cast(t.$ej.$type,i);return r!=null&&r.aa()!=null?this.k().d(r.aa())+0:0},cd:function(n){isNaN(this.z)&&(this.z=this.aa(null));var i=this.ab(n),r=this.z;return new t.cn(i,r)},bw:null,bj:function(n,t){t!=null?n.ab(t):n.ab(this.bw)},ba:function(n,t,i){n.l(t);n.m(i)},a9:function(){},bb:function(){},aa:function(t){var i=n("<span>M<\/span>"),u=n("body"),r;return u.append(i),t!=null&&i.css("font",t),r=i.attr("offsetHeight"),isNaN(r)&&(r=i[0].offsetHeight),i.remove(),parseInt(r)},o:!1,ap:null,bv:null,z:0,bh:function(){this.o||(this.o=!0,window.setTimeout(this.ar.runOn(this),0))},ar:function(){this.o&&(this.o=!1,this.j().eh())},flush:function(){this.o&&this.ar()},at:function(i){var a,f,r,v,u,e,o,s,h,c,l,y;for(i.scalePath(new t.gx(1,"Scale",this.b7)),i.needlePath(new t.gx(1,"Needle",this.b6)),i.backingPath(new t.gx(1,"Backing",this.b5)),a=this.ap,f=this.u().getEnumerator();f.moveNext();)r=f.current(),r.__visibility==0&&(v=t.$f6.a(r,a),u=new t.eu,u.labelValue(r.aa()),u.labelPosition({__x:r.l(),__y:r.m(),$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),u.labelSize(this.cd(r)),u.appearance(t.$db.fromTextElement(r,v)),i.scaleLabels().add(u));for(e=this.x().getEnumerator();e.moveNext();)o=e.current(),o.__visibility==0&&(s=new t.ev,s.tickPath(new t.gx(1,"tickmarks",o)),i.scaleTickmarks().add(s));for(h=this.w.getEnumerator();h.moveNext();)c=h.current(),c.__visibility==0&&(l=new t.ew,y=new t.gx(1,"range",c),l.rangePath(y),i.ranges().add(l))},bc:function(n){n.__visibility=0},bd:function(n){n.__visibility=1},be:function(n){this.y().remove(n)},cc:function(){var n=new t.du;return this.y().add(n),n},bm:function(n){n.__visibility=0},bn:function(n){n.__visibility=1},bo:function(n){this.v().remove(n)},bu:function(){var n=new t.ej;return this.v().add(n),n},a6:function(n){n.__visibility=0},a7:function(n){n.__visibility=1},a8:function(n){this.x().remove(n)},cb:function(){var n=new t.du;return this.x().add(n),n},ax:function(n){n.__visibility=0},ay:function(n){n.__visibility=1},az:function(n){this.u().remove(n)},bt:function(){var n=new t.ej;return this.u().add(n),n},i:function(){var n=this;return n.h()==null?null:function(){var i=new t.e0;return i.b(n.ag),i.c(n.an),i.d(n.aq),i.a(n.h()),i}()},$type:new n.ig.Type("XamLinearGaugeView",n.ig.$ot)},!0);t.$y.scaleStart=0;t.$y.scaleEnd=1;t.$x.horizontal=0;t.$x.vertical=1;t.$a.custom=0;t.$a.rectangle=1;t.$a.triangle=2;t.$a.needle=3;t.$a.trapezoid=4;t.$ex.t="Name";t.$ex.nameProperty=t.$dj.i("Name",String,t.$ex.$type,new t.dk(2,null,function(n,t){n.z("Name",t.d(),t.c())}));t.$ex.o="Brush";t.$ex.brushProperty=t.$dj.i("Brush",t.$aa.$type,t.$ex.$type,new t.dk(2,null,function(n,t){n.z("Brush",t.d(),t.c())}));t.$ex.w="Outline";t.$ex.outlineProperty=t.$dj.i("Outline",t.$aa.$type,t.$ex.$type,new t.dk(2,null,function(n,t){n.z("Outline",t.d(),t.c())}));t.$ex.x="StartValue";t.$ex.startValueProperty=t.$dj.i("StartValue",Number,t.$ex.$type,new t.dk(2,NaN,function(n,t){n.z("StartValue",t.d(),t.c())}));t.$ex.p="EndValue";t.$ex.endValueProperty=t.$dj.i("EndValue",Number,t.$ex.$type,new t.dk(2,NaN,function(n,t){n.z("EndValue",t.d(),t.c())}));t.$ex.r="InnerStartExtent";t.$ex.innerStartExtentProperty=t.$dj.i("InnerStartExtent",Number,t.$ex.$type,new t.dk(2,NaN,function(n,t){n.z("InnerStartExtent",t.d(),t.c())}));t.$ex.q="InnerEndExtent";t.$ex.innerEndExtentProperty=t.$dj.i("InnerEndExtent",Number,t.$ex.$type,new t.dk(2,NaN,function(n,t){n.z("InnerEndExtent",t.d(),t.c())}));t.$ex.v="OuterStartExtent";t.$ex.outerStartExtentProperty=t.$dj.i("OuterStartExtent",Number,t.$ex.$type,new t.dk(2,NaN,function(n,t){n.z("OuterStartExtent",t.d(),t.c())}));t.$ex.u="OuterEndExtent";t.$ex.outerEndExtentProperty=t.$dj.i("OuterEndExtent",Number,t.$ex.$type,new t.dk(2,NaN,function(n,t){n.z("OuterEndExtent",t.d(),t.c())}));t.$ex.y="StrokeThickness";t.$ex.strokeThicknessProperty=t.$dj.i("StrokeThickness",Number,t.$ex.$type,new t.dk(2,1,function(n,t){n.z("StrokeThickness",t.d(),t.c())}));t.$ez.labelProperty=t.$dj.i("Label",String,t.$ez.$type,new t.dk(2,null,function(i,r){return n.ig.util.cast(t.$ez.$type,i).n("Label",r.d(),r.c())}));t.$ez.itemProperty=t.$dj.i("Item",n.ig.$op.$type,t.$ez.$type,new t.dk(2,null,function(i,r){return n.ig.util.cast(t.$ez.$type,i).n("Item",r.d(),r.c())}));t.$ez.itemNameProperty=t.$dj.i("ItemName",n.ig.$op.$type,t.$ez.$type,new t.dk(2,null,function(i,r){return n.ig.util.cast(t.$ez.$type,i).n("ItemName",r.d(),r.c())}));t.$ez.itemBrushProperty=t.$dj.i("ItemBrush",t.$aa.$type,t.$ez.$type,new t.dk(2,null,function(i,r){return n.ig.util.cast(t.$ez.$type,i).n("ItemBrush",r.d(),r.c())}));t.$ez.m="Thickness";t.$ez.thicknessProperty=t.$dj.i("Thickness",Number,t.$ez.$type,new t.dk(2,0,function(i,r){return n.ig.util.cast(t.$ez.$type,i).n("Thickness",r.d(),r.c())}));t.$ez.l="Outline";t.$ez.outlineProperty=t.$dj.i("Outline",t.$aa.$type,t.$ez.$type,new t.dk(2,null,function(i,r){n.ig.util.cast(t.$ez.$type,i).n("Outline",r.d(),r.c())}));t.$fa.ee="TransitionProgress";t.$fa.ds="Orientation";t.$fa.orientationProperty=t.$dj.i("Orientation",t.$x.$type,t.$fa.$type,new t.dk(2,0,function(n,t){n.eo("Orientation",t.d(),t.c())}));t.$fa.dx="Ranges";t.$fa.rangesProperty=t.$dj.i("Ranges",t.$ey.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("Ranges",t.d(),t.c())}));t.$fa.dt="RangeBrushes";t.$fa.rangeBrushesProperty=t.$dj.i("RangeBrushes",t.$b4.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("RangeBrushes",t.d(),t.c())}));t.$fa.dw="RangeOutlines";t.$fa.rangeOutlinesProperty=t.$dj.i("RangeOutlines",t.$b4.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("RangeOutlines",t.d(),t.c())}));t.$fa.c6="MinimumValue";t.$fa.minimumValueProperty=t.$dj.i("MinimumValue",Number,t.$fa.$type,new t.dk(2,0,function(n,t){n.eo("MinimumValue",t.d(),t.c())}));t.$fa.c4="MaximumValue";t.$fa.maximumValueProperty=t.$dj.i("MaximumValue",Number,t.$fa.$type,new t.dk(2,100,function(n,t){n.eo("MaximumValue",t.d(),t.c())}));t.$fa.ef="Value";t.$fa.valueProperty=t.$dj.i("Value",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("Value",t.d(),t.c())}));t.$fa.dq="NeedleShape";t.$fa.needleShapeProperty=t.$dj.i("NeedleShape",t.$a.$type,t.$fa.$type,new t.dk(2,3,function(n,t){n.eo("NeedleShape",t.d(),t.c())}));t.$fa.dj="NeedleName";t.$fa.needleNameProperty=t.$dj.i("NeedleName",String,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("NeedleName",t.d(),t.c())}));t.$fa.du="RangeInnerExtent";t.$fa.rangeInnerExtentProperty=t.$dj.i("RangeInnerExtent",Number,t.$fa.$type,new t.dk(2,.05,function(n,t){n.eo("RangeInnerExtent",t.d(),t.c())}));t.$fa.d0="ScaleInnerExtent";t.$fa.scaleInnerExtentProperty=t.$dj.i("ScaleInnerExtent",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("ScaleInnerExtent",t.d(),t.c())}));t.$fa.dv="RangeOuterExtent";t.$fa.rangeOuterExtentProperty=t.$dj.i("RangeOuterExtent",Number,t.$fa.$type,new t.dk(2,.65,function(n,t){n.eo("RangeOuterExtent",t.d(),t.c())}));t.$fa.d1="ScaleOuterExtent";t.$fa.scaleOuterExtentProperty=t.$dj.i("ScaleOuterExtent",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("ScaleOuterExtent",t.d(),t.c())}));t.$fa.df="NeedleInnerExtent";t.$fa.needleInnerExtentProperty=t.$dj.i("NeedleInnerExtent",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("NeedleInnerExtent",t.d(),t.c())}));t.$fa.dl="NeedleOuterExtent";t.$fa.needleOuterExtentProperty=t.$dj.i("NeedleOuterExtent",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("NeedleOuterExtent",t.d(),t.c())}));t.$fa.de="NeedleInnerBaseWidth";t.$fa.needleInnerBaseWidthProperty=t.$dj.i("NeedleInnerBaseWidth",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("NeedleInnerBaseWidth",t.d(),t.c())}));t.$fa.dk="NeedleOuterBaseWidth";t.$fa.needleOuterBaseWidthProperty=t.$dj.i("NeedleOuterBaseWidth",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("NeedleOuterBaseWidth",t.d(),t.c())}));t.$fa.dh="NeedleInnerPointWidth";t.$fa.needleInnerPointWidthProperty=t.$dj.i("NeedleInnerPointWidth",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("NeedleInnerPointWidth",t.d(),t.c())}));t.$fa.dn="NeedleOuterPointWidth";t.$fa.needleOuterPointWidthProperty=t.$dj.i("NeedleOuterPointWidth",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("NeedleOuterPointWidth",t.d(),t.c())}));t.$fa.dg="NeedleInnerPointExtent";t.$fa.needleInnerPointExtentProperty=t.$dj.i("NeedleInnerPointExtent",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("NeedleInnerPointExtent",t.d(),t.c())}));t.$fa.dm="NeedleOuterPointExtent";t.$fa.needleOuterPointExtentProperty=t.$dj.i("NeedleOuterPointExtent",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("NeedleOuterPointExtent",t.d(),t.c())}));t.$fa.cy="Interval";t.$fa.intervalProperty=t.$dj.i("Interval",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("Interval",t.d(),t.c())}));t.$fa.d8="TicksPostInitial";t.$fa.ticksPostInitialProperty=t.$dj.i("TicksPostInitial",Number,t.$fa.$type,new t.dk(2,0,function(n,t){n.eo("TicksPostInitial",t.d(),t.c())}));t.$fa.d9="TicksPreTerminal";t.$fa.ticksPreTerminalProperty=t.$dj.i("TicksPreTerminal",Number,t.$fa.$type,new t.dk(2,0,function(n,t){n.eo("TicksPreTerminal",t.d(),t.c())}));t.$fa.c1="LabelInterval";t.$fa.labelIntervalProperty=t.$dj.i("LabelInterval",Number,t.$fa.$type,new t.dk(2,NaN,function(n,t){n.eo("LabelInterval",t.d(),t.c())}));t.$fa.c0="LabelExtent";t.$fa.labelExtentProperty=t.$dj.i("LabelExtent",Number,t.$fa.$type,new t.dk(2,0,function(n,t){n.eo("LabelExtent",t.d(),t.c())}));t.$fa.c2="LabelsPostInitial";t.$fa.labelsPostInitialProperty=t.$dj.i("LabelsPostInitial",Number,t.$fa.$type,new t.dk(2,0,function(n,t){n.eo("LabelsPostInitial",t.d(),t.c())}));t.$fa.c3="LabelsPreTerminal";t.$fa.labelsPreTerminalProperty=t.$dj.i("LabelsPreTerminal",Number,t.$fa.$type,new t.dk(2,0,function(n,t){n.eo("LabelsPreTerminal",t.d(),t.c())}));t.$fa.c8="MinorTickCount";t.$fa.minorTickCountProperty=t.$dj.i("MinorTickCount",Number,t.$fa.$type,new t.dk(2,4,function(n,t){n.eo("MinorTickCount",t.d(),t.c())}));t.$fa.ea="TickStartExtent";t.$fa.tickStartExtentProperty=t.$dj.i("TickStartExtent",Number,t.$fa.$type,new t.dk(2,.05,function(n,t){n.eo("TickStartExtent",t.d(),t.c())}));t.$fa.d7="TickEndExtent";t.$fa.tickEndExtentProperty=t.$dj.i("TickEndExtent",Number,t.$fa.$type,new t.dk(2,.65,function(n,t){n.eo("TickEndExtent",t.d(),t.c())}));t.$fa.eb="TickStrokeThickness";t.$fa.tickStrokeThicknessProperty=t.$dj.i("TickStrokeThickness",Number,t.$fa.$type,new t.dk(2,2,function(n,t){n.eo("TickStrokeThickness",t.d(),t.c())}));t.$fa.d6="TickBrush";t.$fa.tickBrushProperty=t.$dj.i("TickBrush",t.$aa.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("TickBrush",t.d(),t.c())}));t.$fa.cw="FontBrush";t.$fa.fontBrushProperty=t.$dj.i("FontBrush",t.$aa.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("FontBrush",t.d(),t.c())}));t.$fa.dc="NeedleBreadth";t.$fa.needleBreadthProperty=t.$dj.i("NeedleBreadth",Number,t.$fa.$type,new t.dk(2,6,function(n,t){n.eo("NeedleBreadth",t.d(),t.c())}));t.$fa.dd="NeedleBrush";t.$fa.needleBrushProperty=t.$dj.i("NeedleBrush",t.$aa.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("NeedleBrush",t.d(),t.c())}));t.$fa.dp="NeedleOutline";t.$fa.needleOutlineProperty=t.$dj.i("NeedleOutline",t.$aa.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("NeedleOutline",t.d(),t.c())}));t.$fa.dr="NeedleStrokeThickness";t.$fa.needleStrokeThicknessProperty=t.$dj.i("NeedleStrokeThickness",Number,t.$fa.$type,new t.dk(2,1,function(n,t){n.eo("NeedleStrokeThickness",t.d(),t.c())}));t.$fa.da="MinorTickStartExtent";t.$fa.minorTickStartExtentProperty=t.$dj.i("MinorTickStartExtent",Number,t.$fa.$type,new t.dk(2,.05,function(n,t){n.eo("MinorTickStartExtent",t.d(),t.c())}));t.$fa.c9="MinorTickEndExtent";t.$fa.minorTickEndExtentProperty=t.$dj.i("MinorTickEndExtent",Number,t.$fa.$type,new t.dk(2,.35,function(n,t){n.eo("MinorTickEndExtent",t.d(),t.c())}));t.$fa.db="MinorTickStrokeThickness";t.$fa.minorTickStrokeThicknessProperty=t.$dj.i("MinorTickStrokeThickness",Number,t.$fa.$type,new t.dk(2,1,function(n,t){n.eo("MinorTickStrokeThickness",t.d(),t.c())}));t.$fa.c7="MinorTickBrush";t.$fa.minorTickBrushProperty=t.$dj.i("MinorTickBrush",t.$aa.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("MinorTickBrush",t.d(),t.c())}));t.$fa.cz="IsScaleInverted";t.$fa.isScaleInvertedProperty=t.$dj.i("IsScaleInverted",t.$f.$type,t.$fa.$type,new t.dk(2,!1,function(n,t){n.eo("IsScaleInverted",t.d(),t.c())}));t.$fa.cq="BackingBrush";t.$fa.backingBrushProperty=t.$dj.i("BackingBrush",t.$aa.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("BackingBrush",t.d(),t.c())}));t.$fa.ct="BackingOutline";t.$fa.backingOutlineProperty=t.$dj.i("BackingOutline",t.$aa.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("BackingOutline",t.d(),t.c())}));t.$fa.cu="BackingStrokeThickness";t.$fa.backingStrokeThicknessProperty=t.$dj.i("BackingStrokeThickness",Number,t.$fa.$type,new t.dk(2,2,function(n,t){n.eo("BackingStrokeThickness",t.d(),t.c())}));t.$fa.cr="BackingInnerExtent";t.$fa.backingInnerExtentProperty=t.$dj.i("BackingInnerExtent",Number,t.$fa.$type,new t.dk(2,0,function(n,t){n.eo("BackingInnerExtent",t.d(),t.c())}));t.$fa.cs="BackingOuterExtent";t.$fa.backingOuterExtentProperty=t.$dj.i("BackingOuterExtent",Number,t.$fa.$type,new t.dk(2,1,function(n,t){n.eo("BackingOuterExtent",t.d(),t.c())}));t.$fa.d3="ScaleStartExtent";t.$fa.scaleStartExtentProperty=t.$dj.i("ScaleStartExtent",Number,t.$fa.$type,new t.dk(2,.05,function(n,t){n.eo("ScaleStartExtent",t.d(),t.c())}));t.$fa.dz="ScaleEndExtent";t.$fa.scaleEndExtentProperty=t.$dj.i("ScaleEndExtent",Number,t.$fa.$type,new t.dk(2,.95,function(n,t){n.eo("ScaleEndExtent",t.d(),t.c())}));t.$fa.dy="ScaleBrush";t.$fa.scaleBrushProperty=t.$dj.i("ScaleBrush",t.$aa.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("ScaleBrush",t.d(),t.c())}));t.$fa.d2="ScaleOutline";t.$fa.scaleOutlineProperty=t.$dj.i("ScaleOutline",t.$aa.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("ScaleOutline",t.d(),t.c())}));t.$fa.d4="ScaleStrokeThickness";t.$fa.scaleStrokeThicknessProperty=t.$dj.i("ScaleStrokeThickness",Number,t.$fa.$type,new t.dk(2,1,function(n,t){n.eo("ScaleStrokeThickness",t.d(),t.c())}));t.$fa.c5="MergeViewPorts";t.$fa.fk=t.$dj.i("MergeViewPorts",t.$f.$type,t.$fa.$type,new t.dk(2,!1,function(n,t){n.eo("MergeViewPorts",t.d(),t.c())}));t.$fa.ed="TransitionDuration";t.$fa.transitionDurationProperty=t.$dj.i("TransitionDuration",n.ig.Number.prototype.$type,t.$fa.$type,new t.dk(2,0,function(n,t){n.eo("TransitionDuration",t.d(),t.c())}));t.$fa.d5="ShowToolTipTimeout";t.$fa.showToolTipTimeoutProperty=t.$dj.i("ShowToolTipTimeout",n.ig.Number.prototype.$type,t.$fa.$type,new t.dk(2,500,function(n,t){n.eo("ShowToolTipTimeout",t.d(),t.c())}));t.$fa.ec="ToolTip";t.$fa.toolTipProperty=t.$dj.i("ToolTip",n.ig.$op.$type,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("ToolTip",t.d(),t.c())}));t.$fa.cx="Font";t.$fa.fontProperty=t.$dj.i("Font",String,t.$fa.$type,new t.dk(2,null,function(n,t){n.eo("Font",t.d(),t.c())}));t.$fr.t=new t.fj(String,t.$aa.$type,0);t.$fr.e=null;t.$fr.f=null;t.$fr.ac=0;n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper,n.ig.RearrangedList$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["ofType$1","cast$1"]]]);n.ig.util.extCopy(n.ig.ArrayUtil,[[[n.ig.EdgeClipper,n.ig.RearrangedList$1],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);n.ig.util.extCopy(n.ig.BrushUtil,[[[],["getLightened"]]]);n.ig.util.extCopy(n.ig.ColorUtil,[[[],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);n.ig.util.extCopy(n.ig.Extensions,[[[],["reset1"]],[[],["reset"]],[[],["detach"]],[[],["transferChildrenTo"]],[[],["isPlottable"]],[[],["isPlottable1"]]]);n.ig.util.extCopy(n.ig.PathFigureUtil,[[[],["duplicate1"]],[[],["duplicate"]]]);n.ig.util.extCopy(n.ig.PointCollectionUtil,[[[n.ig.RearrangedList$1],["flattenTo","getBounds2","clipTo"]],[[n.ig.RearrangedList$1],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[],["getBounds3","getBounds4","toPointCollections"]]]);n.ig.util.extCopy(n.ig.RectUtil,[[[],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["SparkFrame:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","List$1:x","IList$1:y","ICollection$1:z","IEnumerable$1:aa","IEnumerable:ab","IEnumerator:ac","IEnumerator$1:ad","IArrayList:ae","Array:af","ICollection:ag","CompareCallback:ah","MulticastDelegate:ai","IntPtr:aj","IList:ak","IDisposable:al","IArray:am","Script:an","Date:ao","Date:ap","Number:aq","Func$3:ar","Action$1:as","Point:at","SparkFramePreparer:au","Func$2:av","SparklineController:aw","DependencyObject:ax","Dictionary:ay","DependencyProperty:az","PropertyMetadata:a0","PropertyChangedCallback:a1","DependencyPropertyChangedEventArgs:a2","DependencyPropertiesCollection:a3","UnsetValue:a4","Binding:a5","PropertyPath:a6","IFastItemsSourceProvider_Spark:a7","FastItemsSource:a8","IFastItemsSource:a9","IFastItemColumn$1:ba","IFastItemColumnPropertyName:bb","EventHandler$1:bc","NotifyCollectionChangedEventArgs:bd","EventArgs:be","NotifyCollectionChangedAction:bf","Dictionary$2:bg","IDictionary$2:bh","IDictionary:bi","IEqualityComparer$1:bj","KeyValuePair$2:bk","NotImplementedException:bl","Error:bm","IFastItemColumnInternal:bn","Delegate:bo","FastItemsSourceEventAction:bp","FastItemsSourceEventArgs:bq","ArgumentException:br","ColumnReference:bs","FastItemDateTimeColumn:bt","FastItemColumn:bu","Math:bv","Number:bw","Number:bx","Number:by","Number:bz","Number:b0","Number:b1","Number:b2","FastReflectionHelper:b3","FastItemObjectColumn:b4","FastItemIntColumn:b5","XamSparkline:b6","Control:b7","FrameworkElement:b8","UIElement:b9","Transform:ca","Visibility:cb","Style:cc","Thickness:cd","HorizontalAlignment:ce","VerticalAlignment:cf","Brush:cg","Color:ch","TrendLineType:ci","SparklineDisplayType:cj","UnknownValuePlotting:ck","ServiceProvider_Spark:cl","MessageChannel_Spark:cm","Message_Spark:cn","MessageEventHandler:co","Array:cp","HorizontalAxisView:cq","XamSparklineView:cr","ISchedulableRender:cs","CanvasRenderScheduler:ct","Callback:cu","window:cv","RenderingContext:cw","IRenderer:cx","Rectangle:cy","Shape:cz","DoubleCollection:c0","Rect:c1","Size:c2","Path:c3","Geometry:c4","GeometryType:c5","TextBlock:c6","Polygon:c7","PointCollection:c8","Polyline:c9","DataTemplateRenderInfo:da","DataTemplatePassInfo:db","ContentControl:dc","DataTemplate:dd","DataTemplateRenderHandler:de","DataTemplateMeasureHandler:df","DataTemplateMeasureInfo:dg","DataTemplatePassHandler:dh","Line:di","ClearMessage_Spark:dj","RenderingMessage_Spark:dk","SparkLayerType:dl","PolygonMessage_Spark:dm","ColumnMessage_Spark:dn","WinLossColumnMessage_Spark:dp","MarkerMessage_Spark:dq","NormalRangeMessage_Spark:dr","TrendLineMessage_Spark:ds","TooltipMessage_Spark:dt","ToooltipTemplateMessage_Spark:du","ContainerMessage_Spark:dv","BrushChangedMessage_Spark:dw","ContainerResizedMessage_Spark:dx","JQueryObject:dy","Element:dz","ElementAttributeCollection:d0","ElementCollection:d1","WebStyle:d2","ElementNodeType:d3","Document:d4","EventListener:d5","IElementEventHandler:d6","ElementEventHandler:d7","ElementAttribute:d8","JQueryPosition:d9","JQueryCallback:ea","JQueryEvent:eb","JQueryUICallback:ec","VisibilityMessage_Spark:ed","NumberChangedMessage_Spark:ee","ContainerSizeChangedMessage_Spark:ef","InteractionMessage_Spark:eg","MouseMoveMessage_Spark:eh","MouseLeaveMessage_Spark:ei","EventProxy:ej","ModifierKeys:ek","MouseWheelHandler:el","GestureHandler:em","ContactHandler:en","TouchHandler:eo","MouseOverHandler:ep","MouseHandler:eq","KeyHandler:er","Key:es","JQuery:et","JQueryDeferred:eu","JQueryPromise:ev","Action:ew","CanvasViewRenderer:ex","CanvasContext2D:ey","CanvasContext:ez","TextMetrics:e0","ImageData:e1","CanvasElement:e2","Gradient:e3","LinearGradientBrush:e4","GradientStop:e5","GeometryGroup:e6","GeometryCollection:e7","FillRule:e8","PathGeometry:e9","PathFigureCollection:fa","LineGeometry:fb","RectangleGeometry:fc","EllipseGeometry:fd","ArcSegment:fe","PathSegment:ff","PathSegmentType:fg","SweepDirection:fh","PathFigure:fi","PathSegmentCollection:fj","LineSegment:fk","PolyLineSegment:fl","BezierSegment:fm","PolyBezierSegment:fn","GeometryUtil:fo","Tuple$2:fp","TransformGroup:fq","TransformCollection:fr","TranslateTransform:fs","RotateTransform:ft","ScaleTransform:fu","DOMEventProxy:fv","MSGesture:fw","MouseEventArgs:fx","FontUtil:fy","FontInfo:fz","ViewportChangedMessage_Spark:f0","SparklineToolTipContext:f1","AxisRenderMessage_Spark:f2","VerticalAxisView:f3","SparklineConnector:f4","PropertyChangedMessage_Spark:f5","ConfigurationMessage_Spark:f6","DataChangedMessage_Spark:f7","Enumerable:f8","IOrderedEnumerable$1:f9","SortedList$1:ga","ArgumentNullException:gb","FastItemsSourceReference_Spark:gc","TrendCalculators:gd","LeastSquaresFit:ge","Numeric:gf","MathUtil:gg","RuntimeHelpers:gh","RuntimeFieldHandle:gi","Random:gj","MessageHandler_Spark:gk","MessageHandlerEventHandler:gl","SparklineVisualData:gm","SparklineAxisVisualData:gn","LabelAppearanceData:go","IVisualData:gp","BrushAppearanceData:gq","StringBuilder:gr","AppearanceHelper:gs","LinearGradientBrushAppearanceData:gt","GradientStopAppearanceData:gu","SolidBrushAppearanceData:gv","EllipseGeometryData:gw","GeometryData:gx","GetPointsSettings:gy","RectangleGeometryData:gz","LineGeometryData:g0","PathGeometryData:g1","PathFigureData:g2","LineSegmentData:g3","SegmentData:g4","PolylineSegmentData:g5","ArcSegmentData:g6","PolyBezierSegmentData:g7","PrimitiveAppearanceData:g8","LineVisualData:g9","PrimitiveVisualData:ha","ShapeTags:hb","PathVisualData:hc","AbstractEnumerable:hd","Func$1:he","AbstractEnumerator:hf","GenericEnumerable$1:hg","GenericEnumerator$1:hh"]);n.ig.util.defType("SparklineDisplayType:cj","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("SparklineDisplayType",n.ig.$ep.$type)},!0);n.ig.util.defType("SparkLayerType:dl","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("SparkLayerType",n.ig.$ep.$type)},!0);n.ig.util.defType("SparkFrame:a","Object",{init:function(){n.ig.$op.init.call(this);this.a=new t.x(n.ig.Array.prototype.$type,0);this.g=new t.x(t.$at.$type,0);this.e=new t.x(t.$at.$type,0);this.f=new t.x(t.$at.$type,0);this.d=new t.x(t.$at.$type,0);this.c=new t.x(t.$at.$type,0)},a:null,b:function(n){return arguments.length===1?(this.a=n,n):this.a},g:null,l:function(n){return arguments.length===1?(this.g=n,n):this.g},e:null,j:function(n){return arguments.length===1?(this.e=n,n):this.e},f:null,k:function(n){return arguments.length===1?(this.f=n,n):this.f},d:null,i:function(n){return arguments.length===1?(this.d=n,n):this.d},c:null,h:function(n){return arguments.length===1?(this.c=n,n):this.c},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},$type:new n.ig.Type("SparkFrame",n.ig.$ot)},!0);n.ig.util.defType("SparkFramePreparer:au","Object",{init:function(){n.ig.$op.init.call(this)},a:null,d:0,c:0,e:function(i){var r=this,it,at,rt,nt,tt,pt,et,b,bt,kt;r.a.o.ai(!1);i.b().clear();i.l().clear();i.j().clear();i.k().clear();i.i().clear();i.h().clear();var v=r.a.q,o=v.count(),k=r.a.az.width(),y=r.a.az.height(),dt=Math.floor((o+1)/k),p=Math.max(1,dt),ot=0,d=Math.ceil(1*o/p),st=0,ht=new t.x(Number,0),ct=r.a.n().trendLineType(),g=r.a.n().displayType(),w=r.a.n().trendLinePeriod(),lt=ct!=0&&w>=1,c=null,u=null;if(r.d=g==1||g==0?0:d==0?0:k/d/2,lt){var l=function(n){return n+1},a=function(n){return v.item(n)},gt=function(n){return r.a.w(n)},ni=function(n){return r.a.x(n)};switch(r.a.n().trendLineType()){case 9:c=t.$gd.e(v,w);break;case 10:c=t.$gd.b(v,w);break;case 11:c=t.$gd.c(v,w);break;case 12:c=t.$gd.a(v);break;case 13:c=t.$gd.g(v,w);break;case 1:u=t.$ge.k(o,l,a);break;case 2:u=t.$ge.o(o,l,a);break;case 3:u=t.$ge.i(o,l,a);break;case 4:u=t.$ge.p(o,l,a);break;case 5:u=t.$ge.q(o,l,a);break;case 7:u=t.$ge.j(o,l,a);break;case 6:u=t.$ge.l(o,l,a);break;case 8:u=t.$ge.n(o,l,a)}if(c!=null)for(it=c.getEnumerator();it.moveNext();)at=it.current(),ht.add(at);if(u!=null){rt=ot*p;nt=d*p;(g==1||g==0)&&(nt=nt-1);var ti=0+r.d,ii=k-r.d,h=0;for(r.d!=0&&(h=.5),tt=ti;tt<=ii;tt+=2){var ri=tt/(k-1),s=rt+ri*(nt-rt),e=NaN;switch(ct){case 1:e=t.$ge.ad(u,s-h);break;case 2:e=t.$ge.ah(u,s-h);break;case 3:e=t.$ge.ab(u,s-h);break;case 4:e=t.$ge.ai(u,s-h);break;case 5:e=t.$ge.aj(u,s-h);break;case 7:e=t.$ge.ac(u,s-h);break;case 6:e=t.$ge.ae(u,s-h);break;case 8:e=t.$ge.ag(u,s-h)}s=gt(s);e=ni(e);isNaN(e)||Number.isInfinity(e)||i.l().add({__x:s,__y:e,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}}}var ut=r.a.q.minimum(),vt=r.a.q.maximum(),ft=r.a.n().at(),yt=r.a.n().as();for(r.c=y-(st-ft)/(yt-ft)*y,r.c<0?r.c=0:r.c>y&&(r.c=y),pt=r.c,b=ot;b<d;b++){var f=r.b(b,p,o),wt=f[1],ui=f[2];r.f(f,o,r.a.az,ft,yt);et=f[1];f[2]<pt&&(et=f[2]);i.b().add(f);isNaN(f[0])||isNaN(f[1])||i.j().add({__x:f[0],__y:et,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});lt&&c!=null&&(bt=b*p,kt=y-(ht.__inner[bt]-ut)/(vt-ut)*y,i.l().add({__x:f[0]+r.d,__y:kt,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}));wt<st&&i.k().add({__x:f[0],__y:f[1],$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});ut==wt&&i.i().add({__x:f[0],__y:f[1],$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});vt==ui&&i.h().add({__x:f[0],__y:f[2],$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})}i.j().count()==0?i.m(i.n({__x:NaN,__y:NaN,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})):(i.m(i.j().__inner[0]),i.n(i.j().__inner[i.j().count()-1]))},b:function(n,t,i){for(var r,u,l=this,o=Math.min(n*t,i-1),h=Math.min(o+t-1,i-1),c=!0,f=0,e=0,s=o;s<=h;++s)r=l.a.q.item(s),c?(c=!1,f=r,e=r):(f=Math.min(f,r),e=Math.max(e,r));return u=function(){var n=[];return n.add(0),n.add(0),n.add(0),n}(),u[0]=.5*(o+h),u[1]=f,u[2]=e,u},f:function(n,t,i,r,u){var s=i.left(),f=i.top(),h=i.width(),e=i.height(),o;(this.a.n().displayType()==1||this.a.n().displayType()==0)&&t--;t<0&&(t=0);o=t>0?n[0]/t:t==0?.5:NaN;n[0]=s+o*h;this.a.n().displayType()==3?n[1]>0?(n[1]=f,n[2]=f):n[1]<0?(n[1]=f+e,n[2]=f+e):(n[1]=f+(1-(n[1]-r)/(u-r))*e,n[2]=f+(1-(n[2]-r)/(u-r))*e):(n[1]=f+(1-(n[1]-r)/(u-r))*e,n[2]=f+(1-(n[2]-r)/(u-r))*e)},$type:new n.ig.Type("SparkFramePreparer",n.ig.$ot)},!0);n.ig.util.defType("SparklineConnector:f4","Object",{d:null,b:null,e:null,a:null,c:null,init:function(i,r){if(n.ig.$op.init.call(this),this.e=r,i!=null){this.d=n.ig.util.cast(t.$b6.$type,i);this.a=this.d.ad();this.c=this.d.am();var u=new t.cl;u.addService("ConfigurationMessages",new t.cm);u.addService("RenderingMessages",new t.cm);u.addService("InteractionMessages",new t.cm);u.addService("Model",this.d);u.addService("View",this.e);u.addService("HorizontalAxis",this.a);u.addService("VerticalAxis",this.c);this.d.ah(u);this.e.g(u);this.a.f(u);this.c.f(u);this.b=new t.aw(u);u.addService("Controller",this.b)}},$type:new n.ig.Type("SparklineConnector",n.ig.$ot)},!0);n.ig.util.defType("IFastItemsSourceProvider_Spark:a7","Object",{$type:new n.ig.Type("IFastItemsSourceProvider_Spark",null)},!0);n.ig.util.defType("SparklineController:aw","DependencyObject",{init:function(n){var i=this;this.l=new t.au;this.k=new t.a;this.az=t.$c1.empty();t.$ax.init.call(this);this.h=n.getService("ConfigurationMessages");this.j=n.getService("RenderingMessages");this.i=n.getService("InteractionMessages");this.y=function(n,t){i.af(t.action(),t.position(),t.count(),t.propertyName())};this.n(n.getService("Model"));this.o=n.getService("View");this.h.attachTarget(this.ae.runOn(this));this.i.attachTarget(this.ah.runOn(this))},h:null,j:null,i:null,m:null,n:function(n){if(arguments.length===1){var t=this.m!=n;return t&&(this.m=n,this.as()),n}return this.m},o:null,v:function(){return this.n()!=null?this.n().itemsSource():null},p:function(n){return arguments.length===1?(this.g(t.$aw.ay,n),n):this.c(t.$aw.ay)},q:null,r:null,l:null,k:null,ab:function(){return this.n()!=null?this.n().valueMemberPath():null},aa:function(){return this.n()!=null?this.n().labelMemberPath():null},az:null,z:function(){return this.n()!=null?this.n().toolTip():null},y:null,w:function(n){var t=this.q.count(),i;return(this.n().displayType()==1||this.n().displayType()==0)&&t--,t<0&&(t=0),i=t>0?n/t:t==0?.5:NaN,this.az.left()+i*this.az.width()},x:function(n){var t=(n-this.n().at())/(this.n().as()-this.n().at());return t=1-t,this.az.top()+t*this.az.height()},u:function(){return this.v()!=null&&this.ab()!=null&&!this.az.isEmpty()&&this.az.width()>0&&this.az.height()>0&&this.n()!=null&&this.n().at()!=this.n().as()},t:function(n){return n.oldValue()!=n.newValue()?!0:!1},ar:function(i,r){var u=this,f,e;u.y==null&&(u.y=function(n,t){u.af(t.action(),t.position(),t.count(),t.propertyName())});f=n.ig.util.cast(t.$a8.$type,i);f!=null&&(f.event=n.ig.Delegate.prototype.remove(f.event,u.y));e=n.ig.util.cast(t.$a8.$type,r);e!=null&&(e.event=n.ig.Delegate.prototype.combine(e.event,u.y))},au:function(){this.n()!=null&&(this.q==null?this.n().at(this.n().as(NaN)):(isNaN(this.n().minimum())?this.n().at(this.q.minimum()):this.n().at(this.n().minimum()),isNaN(this.n().maximum())?this.n().as(this.q.maximum()):this.n().as(this.n().maximum()),this.n().at()==this.n().as()&&(Math.floor(this.n().at())<this.n().at()?this.n().at(Math.floor(this.n().at())):this.n().at(Math.floor(this.n().at())-1),Math.ceil(this.n().as())>this.n().as()?this.n().as(Math.ceil(this.n().as())):this.n().as(Math.ceil(this.n().as())+1))))},aw:function(){this.p()!=null?(this.p().deregisterColumn(this.q),this.q=this.p().registerColumn(this.ab(),null,!1)):this.q=null},at:function(){this.p()!=null?(this.p().deregisterColumn(this.r),this.r=this.p().registerColumnObject(this.aa(),null,!1),this.n().an(this.r)):this.n().an(this.r=null)},aq:function(){var n=new t.f2;this.j.sendMessage(n)},as:function(){this.p(this.getFastItemsSource(this.v()));this.aw();this.at();this.au();this.aq()},af:function(){this.aw();this.at();this.au();this.aq();this.al()},av:function(){var n=new t.du;n.template(this.z());this.j.sendMessage(n)},ae:function(i){var r=i;n.ig.util.cast(t.$f5.$type,r)!==null?this.ak(r):n.ig.util.cast(t.$ef.$type,i)!==null?this.j.sendMessage(i):n.ig.util.cast(t.$f7.$type,i)!==null&&this.ag(i)},ag:function(n){var i=this.p();if(i!=null){switch(n.b()){case 2:i.handleCollectionChanged(new t.bd(2,2,n.d(),n.e(),n.c()));break;case 0:i.handleCollectionChanged(new t.bd(1,0,n.d(),n.c()));break;case 1:i.handleCollectionChanged(new t.bd(1,1,n.e(),n.c()));break;case 4:i.handleCollectionChanged(new t.bd(0,4))}this.as()}},ah:function(i){var r=i;n.ig.util.cast(t.$f0.$type,r)!==null?this.ax(r):n.ig.util.cast(t.$ei.$type,r)!==null?this.ai(r):n.ig.util.cast(t.$eh.$type,r)!==null?this.aj(r):n.ig.util.cast(t.$ef.$type,r)!==null&&this.j.sendMessage(i)},ak:function(i){var r,u,f,e,o;switch(i.propertyName()){case"ItemsSource":this.as();break;case"ValueMemberPath":this.as();break;case"LabelMemberPath":this.as();break;case"ToolTip":this.av();break;case"Minimum":case"Maximum":this.au();this.aq();break;case"HorizontalAxisLabel":case"VerticalAxisLabel":this.aq();break;case"Brush":case"NegativeBrush":case"MarkerBrush":case"FirstMarkerBrush":case"LastMarkerBrush":case"HighMarkerBrush":case"LowMarkerBrush":case"NegativeMarkerBrush":case"TrendLineBrush":case"NormalRangeFill":r=new t.dw;r.c(n.ig.util.cast(t.$cg.$type,i.newValue()));r.b(i.propertyName());this.j.sendMessage(r);break;case"MarkerVisibility":case"FirstMarkerVisibility":case"LastMarkerVisibility":case"HighMarkerVisibility":case"LowMarkerVisibility":case"NegativeMarkerVisibility":case"NormalRangeVisibility":case"ToolTipVisibility":u=new t.ed;u.c(i.newValue());u.b(i.propertyName());this.j.sendMessage(u);this.o.ai(!0);break;case"MarkerSize":case"FirstMarkerSize":case"LastMarkerSize":case"HighMarkerSize":case"LowMarkerSize":case"NegativeMarkerSize":this.o.ai(!0);break;case"LineThickness":case"TrendLineThickness":f=new t.ee;f.b(i.newValue());f.c(i.propertyName());this.j.sendMessage(f);break;case"HorizontalAxisBrush":case"VerticalAxisBrush":case"HorizontalAxisVisibility":case"VerticalAxisVisibility":e=new t.dj;e.c(!0);this.j.sendMessage(e);break;case"Container":o=new t.dv;o.b(i.newValue());this.j.sendMessage(o)}this.t(i)&&this.al()},ax:function(n){this.az=new t.c1(0,n.newLeft(),n.newTop(),n.newWidth(),n.newHeight());this.al()},aj:function(n){var u=new t.dj,i,r;u.b(4);this.j.sendMessage(u);i=new t.dt;i.b(4);i.xOffset(n.position().__x+10);i.yOffset(n.position().__y+10);this.q!=null&&this.q.count()>0&&(r=new t.f1,r.b(this.q.maximum()),r.d(this.q.minimum()),r.a(this.q.item(0)),r.c(this.q.item(this.q.count()-1)),i.context(r));this.j.sendMessage(i)},ai:function(){var n=new t.dj;n.b(4);this.j.sendMessage(n)},ad:function(n){var i=new t.dj;i.b(n);this.j.sendMessage(i)},ac:function(){this.ad(1);this.ad(2);this.ad(16);this.ad(8)},al:function(){var n,i;if(this.ac(),this.u()){this.l.a=this;this.l.e(this.k);switch(this.n().displayType()){case 2:this.am();break;case 3:this.ap();break;case 0:case 1:this.ao()}n=new t.dr;n.k(0);n.l(this.x(this.n().normalRangeMaximum()));n.j(this.az.width());n.i(Math.abs(this.x(this.n().normalRangeMaximum())-this.x(this.n().normalRangeMinimum())));n.d(this.n().displayNormalRangeInFront());this.j.sendMessage(n);i=new t.ds;i.points(this.k.l().toArray());this.j.sendMessage(i)}},am:function(){var n=new t.dn;n.d(this.k.j());n.g(this.k.k());n.f(this.k.i());n.e(this.k.h());n.k(this.k.m());n.l(this.k.n());n.j(this.k.b().count());n.h(this.l.c);n.i(this.l.d);n.c(this.n().displayType());this.j.sendMessage(n);this.an()},ap:function(){var n=new t.dp;n.d(this.k.j());n.g(this.k.k());n.f(this.k.i());n.e(this.k.h());n.k(this.k.m());n.l(this.k.n());n.j(this.k.b().count());n.h(this.l.c);n.i(this.l.d);n.c(this.n().displayType());this.j.sendMessage(n)},ao:function(){var e,r,o,s,l,a,h,v,y;if(this.k.b().count()!=0){for(var u=new t.x(t.$x.$type.specialize(n.ig.Array.prototype.$type),0),f=new t.x(n.ig.Array.prototype.$type,0),i=!0,c=this.k.b().getEnumerator();c.moveNext();){if(e=c.current(),isNaN(e[1])||Number.isInfinity(e[1])){i||u.add(f);i=!0;continue}i&&(f=new t.x(n.ig.Array.prototype.$type,0),i=!1);f.add(e)}if(i||u.add(f),r=new t.dm,r.points(new t.x(n.ig.Array.prototype.$type,0)),this.n().unknownValuePlotting()==0){for(o=new t.x(n.ig.Array.prototype.$type,0),s=u.getEnumerator();s.moveNext();)l=s.current(),o.addRange(l);a=this.s(o);r.points().add(a)}else for(h=u.getEnumerator();h.moveNext();)v=h.current(),y=this.s(v),r.points().add(y);this.j.sendMessage(r);this.an()}},s:function(i){for(var a=this.l.c,r=new t.x(t.$at.$type,0),f,v=this.n().displayType()==1,h=i.getEnumerator(),u,e,o,s,c,l;h.moveNext();)u=h.current(),f=u[1],v&&u[2]<=a&&(f=u[2]),r.add({__x:u[0],__y:f,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});if(this.n().displayType()==0){for(e=new t.x(t.$at.$type,0),o=i.getEnumerator();o.moveNext();)s=o.current(),e.add({__x:s[0],__y:s[2],$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName});r.addRange(e.reverse$1(t.$at.$type))}return this.n().displayType()==1&&(c=r.__inner[0],l=r.__inner[r.count()-1],r.add({__x:l.__x,__y:this.l.c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName}),r.add({__x:c.__x,__y:this.l.c,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName})),r.toArray()},an:function(){var n=new t.dq;n.e(this.k.j());n.f(this.k.k());n.d(this.k.i());n.c(this.k.h());n.m(this.k.m());n.n(this.k.n());n.k(this.n().markerSize());n.g(this.n().firstMarkerSize());n.i(this.n().lastMarkerSize());n.h(this.n().highMarkerSize());n.j(this.n().lowMarkerSize());n.l(this.n().negativeMarkerSize());this.j.sendMessage(n)},getFastItemsSource:function(){var n=null,i;return this.v()!=null&&(i=null,n=new t.a8,n.itemsSource(this.v()),i=new t.gc(n),i._references++,n=i._fastItemsSource),n},releaseFastItemsSource:function(n){if(n!=null)--null._references;return null},$type:new n.ig.Type("SparklineController",t.$ax.$type,[t.$a7.$type])},!0);n.ig.util.defType("SparklineToolTipContext:f1","Object",{init:function(){n.ig.$op.init.call(this)},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("SparklineToolTipContext",n.ig.$ot)},!0);n.ig.util.defType("FastItemsSourceReference_Spark:gc","Object",{init:function(t){n.ig.$op.init.call(this);this._fastItemsSource=t;this._references=0},_fastItemsSource:null,_references:0,$type:new n.ig.Type("FastItemsSourceReference_Spark",n.ig.$ot)},!0);n.ig.util.defType("Message_Spark:cn","Object",{init:function(){n.ig.$op.init.call(this)},toString:function(){return this.getType().toString()},$type:new n.ig.Type("Message_Spark",n.ig.$ot)},!0);n.ig.util.defType("RenderingMessage_Spark:dk","Message_Spark",{init:function(){t.$cn.init.call(this)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("RenderingMessage_Spark",t.$cn.$type)},!0);n.ig.util.defType("AxisRenderMessage_Spark:f2","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("AxisRenderMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("ClearMessage_Spark:dj","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},_c:!1,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("ClearMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("ColumnMessage_Spark:dn","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("ColumnMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("ConfigurationMessage_Spark:f6","Message_Spark",{init:function(){t.$cn.init.call(this)},$type:new n.ig.Type("ConfigurationMessage_Spark",t.$cn.$type)},!0);n.ig.util.defType("ContainerMessage_Spark:dv","Message_Spark",{init:function(){t.$cn.init.call(this)},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("ContainerMessage_Spark",t.$cn.$type)},!0);n.ig.util.defType("VisibilityMessage_Spark:ed","Message_Spark",{init:function(){t.$cn.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("VisibilityMessage_Spark",t.$cn.$type)},!0);n.ig.util.defType("BrushChangedMessage_Spark:dw","Message_Spark",{init:function(){t.$cn.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("BrushChangedMessage_Spark",t.$cn.$type)},!0);n.ig.util.defType("NumberChangedMessage_Spark:ee","Message_Spark",{init:function(){t.$cn.init.call(this)},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("NumberChangedMessage_Spark",t.$cn.$type)},!0);n.ig.util.defType("ContainerResizedMessage_Spark:dx","Message_Spark",{init:function(){t.$cn.init.call(this)},_g:0,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_f:0,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:0,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_i:null,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_h:null,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_j:null,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("ContainerResizedMessage_Spark",t.$cn.$type)},!0);n.ig.util.defType("DataChangedMessage_Spark:f7","Message_Spark",{init:function(){t.$cn.init.call(this)},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("DataChangedMessage_Spark",t.$cn.$type)},!0);n.ig.util.defType("InteractionMessage_Spark:eg","Message_Spark",{init:function(){t.$cn.init.call(this)},$type:new n.ig.Type("InteractionMessage_Spark",t.$cn.$type)},!0);n.ig.util.defType("MarkerMessage_Spark:dq","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_m:null,m:function(n){return arguments.length===1?(this._m=n,n):this._m},_n:null,n:function(n){return arguments.length===1?(this._n=n,n):this._n},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_k:0,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_g:0,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},$type:new n.ig.Type("MarkerMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("MessageChannel_Spark:cm","Object",{init:function(){n.ig.$op.init.call(this);this.c=new t.cp},c:null,sendMessage:function(n){this.messageSent!=null?this.messageSent(n):this.c.push(n)},attachTarget:function(t){for(this.messageSent=n.ig.Delegate.prototype.combine(this.messageSent,t);this.c.length>0;){var i=this.c.shift();this.messageSent(i)}},messageSent:null,detachTarget:function(t){this.messageSent=n.ig.Delegate.prototype.remove(this.messageSent,t)},a:null,connectTo:function(n){this.a=n;this.attachTarget(this.sendToNext.runOn(this))},detachFromNext:function(){this.a!=null&&(this.detachTarget(this.sendToNext.runOn(this)),this.a=null)},sendToNext:function(n){this.a!=null&&this.a.sendMessage(n)},toString:function(){return"MessageQueue"},$type:new n.ig.Type("MessageChannel_Spark",n.ig.$ot)},!0);n.ig.util.defType("MessageHandler_Spark:gk","Object",{init:function(){n.ig.$op.init.call(this);this.a=new n.ig.Dictionary(0)},a:null,addHandler:function(n,t){this.a.item(n.typeName(),t)},messageReceived:function(n){var t,i=n.getType().typeName();this.a.containsKey(i)&&(t=this.a.item(i),t.c(n))},$type:new n.ig.Type("MessageHandler_Spark",n.ig.$ot)},!0);n.ig.util.defType("MouseLeaveMessage_Spark:ei","InteractionMessage_Spark",{init:function(){t.$eg.init.call(this)},$type:new n.ig.Type("MouseLeaveMessage_Spark",t.$eg.$type)},!0);n.ig.util.defType("MouseMoveMessage_Spark:eh","InteractionMessage_Spark",{init:function(){t.$eg.init.call(this)},b:null,position:function(n){return arguments.length===1?(this.b=n,n):this.b},$type:new n.ig.Type("MouseMoveMessage_Spark",t.$eg.$type)},!0);n.ig.util.defType("NormalRangeMessage_Spark:dr","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},g:0,k:function(n){return arguments.length===1?(this.g=n,n):this.g},h:0,l:function(n){return arguments.length===1?(this.h=n,n):this.h},f:0,j:function(n){return arguments.length===1?(this.f=n,n):this.f},e:0,i:function(n){return arguments.length===1?(this.e=n,n):this.e},c:!1,d:function(n){return arguments.length===1?(this.c=n,n):this.c},$type:new n.ig.Type("NormalRangeMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("PolygonMessage_Spark:dm","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},c:null,points:function(n){return arguments.length===1?(this.c=n,n):this.c},$type:new n.ig.Type("PolygonMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("PropertyChangedMessage_Spark:f5","ConfigurationMessage_Spark",{init:function(){t.$f6.init.call(this)},f:null,propertyName:function(n){return arguments.length===1?(this.f=n,n):this.f},c:null,oldValue:function(n){return arguments.length===1?(this.c=n,n):this.c},b:null,newValue:function(n){return arguments.length===1?(this.b=n,n):this.b},toString:function(){var n="null",t="null";return this.oldValue()!=null&&(n=this.oldValue().toString()),this.newValue()!=null&&(t=this.newValue().toString()),"PropertyChangedMessage["+this.propertyName()+", "+n+", "+t+"]"},$type:new n.ig.Type("PropertyChangedMessage_Spark",t.$f6.$type)},!0);n.ig.util.defType("ServiceProvider_Spark:cl","Object",{init:function(){n.ig.$op.init.call(this);this.a=new n.ig.Dictionary(0)},a:null,addService:function(n,t){this.a.item(n,t)},getService:function(n){return this.a.item(n)},$type:new n.ig.Type("ServiceProvider_Spark",n.ig.$ot)},!0);n.ig.util.defType("TooltipMessage_Spark:dt","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},c:0,xOffset:function(n){return arguments.length===1?(this.c=n,n):this.c},d:0,yOffset:function(n){return arguments.length===1?(this.d=n,n):this.d},g:null,context:function(n){return arguments.length===1?(this.g=n,n):this.g},$type:new n.ig.Type("TooltipMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("ToooltipTemplateMessage_Spark:du","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},c:null,template:function(n){return arguments.length===1?(this.c=n,n):this.c},$type:new n.ig.Type("ToooltipTemplateMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("TrendLineMessage_Spark:ds","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},c:null,points:function(n){return arguments.length===1?(this.c=n,n):this.c},$type:new n.ig.Type("TrendLineMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("ViewportChangedMessage_Spark:f0","InteractionMessage_Spark",{init:function(){t.$eg.init.call(this)},d:0,newTop:function(n){return arguments.length===1?(this.d=n,n):this.d},c:0,newLeft:function(n){return arguments.length===1?(this.c=n,n):this.c},e:0,newWidth:function(n){return arguments.length===1?(this.e=n,n):this.e},b:0,newHeight:function(n){return arguments.length===1?(this.b=n,n):this.b},toString:function(){return"ViewportChangedMessage["+this.newTop().toString()+", "+this.newLeft().toString()+", "+this.newWidth().toString()+", "+this.newHeight().toString()+"]"},$type:new n.ig.Type("ViewportChangedMessage_Spark",t.$eg.$type)},!0);n.ig.util.defType("ContainerSizeChangedMessage_Spark:ef","InteractionMessage_Spark",{init:function(){t.$eg.init.call(this)},$type:new n.ig.Type("ContainerSizeChangedMessage_Spark",t.$eg.$type)},!0);n.ig.util.defType("WinLossColumnMessage_Spark:dp","RenderingMessage_Spark",{init:function(){t.$dk.init.call(this)},_d:null,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_g:null,g:function(n){return arguments.length===1?(this._g=n,n):this._g},_k:null,k:function(n){return arguments.length===1?(this._k=n,n):this._k},_l:null,l:function(n){return arguments.length===1?(this._l=n,n):this._l},_f:null,f:function(n){return arguments.length===1?(this._f=n,n):this._f},_e:null,e:function(n){return arguments.length===1?(this._e=n,n):this._e},_i:0,i:function(n){return arguments.length===1?(this._i=n,n):this._i},_h:0,h:function(n){return arguments.length===1?(this._h=n,n):this._h},_j:0,j:function(n){return arguments.length===1?(this._j=n,n):this._j},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("WinLossColumnMessage_Spark",t.$dk.$type)},!0);n.ig.util.defType("SparklineVisualData:gm","Object",{init:function(){n.ig.$op.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_horizontalAxis:null,horizontalAxis:function(n){return arguments.length===1?(this._horizontalAxis=n,n):this._horizontalAxis},_verticalAxis:null,verticalAxis:function(n){return arguments.length===1?(this._verticalAxis=n,n):this._verticalAxis},_sparkPath:null,sparkPath:function(n){return arguments.length===1?(this._sparkPath=n,n):this._sparkPath},_negativeSparkPath:null,negativeSparkPath:function(n){return arguments.length===1?(this._negativeSparkPath=n,n):this._negativeSparkPath},_trendLinePath:null,trendLinePath:function(n){return arguments.length===1?(this._trendLinePath=n,n):this._trendLinePath},_rangePath:null,rangePath:function(n){return arguments.length===1?(this._rangePath=n,n):this._rangePath},_markersPath:null,markersPath:function(n){return arguments.length===1?(this._markersPath=n,n):this._markersPath},_negativeMarkersPath:null,negativeMarkersPath:function(n){return arguments.length===1?(this._negativeMarkersPath=n,n):this._negativeMarkersPath},_lowMarkersPath:null,lowMarkersPath:function(n){return arguments.length===1?(this._lowMarkersPath=n,n):this._lowMarkersPath},_highMarkersPath:null,highMarkersPath:function(n){return arguments.length===1?(this._highMarkersPath=n,n):this._highMarkersPath},_firstMarkerPath:null,firstMarkerPath:function(n){return arguments.length===1?(this._firstMarkerPath=n,n):this._firstMarkerPath},_lastMarkerPath:null,lastMarkerPath:function(n){return arguments.length===1?(this._lastMarkerPath=n,n):this._lastMarkerPath},$type:new n.ig.Type("SparklineVisualData",n.ig.$ot)},!0);n.ig.util.defType("SparklineAxisVisualData:gn","Object",{init:function(){n.ig.$op.init.call(this)},_name:null,name:function(n){return arguments.length===1?(this._name=n,n):this._name},_minLabel:null,minLabel:function(n){return arguments.length===1?(this._minLabel=n,n):this._minLabel},_maxLabel:null,maxLabel:function(n){return arguments.length===1?(this._maxLabel=n,n):this._maxLabel},_axisLine:null,axisLine:function(n){return arguments.length===1?(this._axisLine=n,n):this._axisLine},$type:new n.ig.Type("SparklineAxisVisualData",n.ig.$ot)},!0);n.ig.util.defType("XamSparkline:b6","Control",{init:function(){this.ae=new t.cm;this.ar=NaN;this.aq=NaN;t.$b7.init.call(this);this.y(t.$b6.$type);this.am(new t.f3(this));this.ad(new t.cq(this));this.ai=new t.f4(this,new t.cr)},ai:null,brush:function(n){return arguments.length===1?(this.g(t.$b6.brushProperty,n),n):this.c(t.$b6.brushProperty)},negativeBrush:function(n){return arguments.length===1?(this.g(t.$b6.negativeBrushProperty,n),n):this.c(t.$b6.negativeBrushProperty)},markerBrush:function(n){return arguments.length===1?(this.g(t.$b6.markerBrushProperty,n),n):this.c(t.$b6.markerBrushProperty)},negativeMarkerBrush:function(n){return arguments.length===1?(this.g(t.$b6.negativeMarkerBrushProperty,n),n):this.c(t.$b6.negativeMarkerBrushProperty)},firstMarkerBrush:function(n){return arguments.length===1?(this.g(t.$b6.firstMarkerBrushProperty,n),n):this.c(t.$b6.firstMarkerBrushProperty)},lastMarkerBrush:function(n){return arguments.length===1?(this.g(t.$b6.lastMarkerBrushProperty,n),n):this.c(t.$b6.lastMarkerBrushProperty)},highMarkerBrush:function(n){return arguments.length===1?(this.g(t.$b6.highMarkerBrushProperty,n),n):this.c(t.$b6.highMarkerBrushProperty)},lowMarkerBrush:function(n){return arguments.length===1?(this.g(t.$b6.lowMarkerBrushProperty,n),n):this.c(t.$b6.lowMarkerBrushProperty)},trendLineBrush:function(n){return arguments.length===1?(this.g(t.$b6.trendLineBrushProperty,n),n):this.c(t.$b6.trendLineBrushProperty)},horizontalAxisBrush:function(n){return arguments.length===1?(this.g(t.$b6.horizontalAxisBrushProperty,n),n):this.c(t.$b6.horizontalAxisBrushProperty)},verticalAxisBrush:function(n){return arguments.length===1?(this.g(t.$b6.verticalAxisBrushProperty,n),n):this.c(t.$b6.verticalAxisBrushProperty)},normalRangeFill:function(n){return arguments.length===1?(this.g(t.$b6.normalRangeFillProperty,n),n):this.c(t.$b6.normalRangeFillProperty)},horizontalAxisVisibility:function(n){return arguments.length===1?(this.g(t.$b6.horizontalAxisVisibilityProperty,n),n):this.c(t.$b6.horizontalAxisVisibilityProperty)},verticalAxisVisibility:function(n){return arguments.length===1?(this.g(t.$b6.verticalAxisVisibilityProperty,n),n):this.c(t.$b6.verticalAxisVisibilityProperty)},markerVisibility:function(n){return arguments.length===1?(this.g(t.$b6.markerVisibilityProperty,n),n):this.c(t.$b6.markerVisibilityProperty)},negativeMarkerVisibility:function(n){return arguments.length===1?(this.g(t.$b6.negativeMarkerVisibilityProperty,n),n):this.c(t.$b6.negativeMarkerVisibilityProperty)},firstMarkerVisibility:function(n){return arguments.length===1?(this.g(t.$b6.firstMarkerVisibilityProperty,n),n):this.c(t.$b6.firstMarkerVisibilityProperty)},lastMarkerVisibility:function(n){return arguments.length===1?(this.g(t.$b6.lastMarkerVisibilityProperty,n),n):this.c(t.$b6.lastMarkerVisibilityProperty)},lowMarkerVisibility:function(n){return arguments.length===1?(this.g(t.$b6.lowMarkerVisibilityProperty,n),n):this.c(t.$b6.lowMarkerVisibilityProperty)},highMarkerVisibility:function(n){return arguments.length===1?(this.g(t.$b6.highMarkerVisibilityProperty,n),n):this.c(t.$b6.highMarkerVisibilityProperty)},normalRangeVisibility:function(n){return arguments.length===1?(this.g(t.$b6.normalRangeVisibilityProperty,n),n):this.c(t.$b6.normalRangeVisibilityProperty)},displayNormalRangeInFront:function(n){return arguments.length===1?(this.g(t.$b6.displayNormalRangeInFrontProperty,n),n):this.c(t.$b6.displayNormalRangeInFrontProperty)},markerSize:function(n){return arguments.length===1?(this.g(t.$b6.markerSizeProperty,n),n):this.c(t.$b6.markerSizeProperty)},firstMarkerSize:function(n){return arguments.length===1?(this.g(t.$b6.firstMarkerSizeProperty,n),n):this.c(t.$b6.firstMarkerSizeProperty)},lastMarkerSize:function(n){return arguments.length===1?(this.g(t.$b6.lastMarkerSizeProperty,n),n):this.c(t.$b6.lastMarkerSizeProperty)},highMarkerSize:function(n){return arguments.length===1?(this.g(t.$b6.highMarkerSizeProperty,n),n):this.c(t.$b6.highMarkerSizeProperty)},lowMarkerSize:function(n){return arguments.length===1?(this.g(t.$b6.lowMarkerSizeProperty,n),n):this.c(t.$b6.lowMarkerSizeProperty)},negativeMarkerSize:function(n){return arguments.length===1?(this.g(t.$b6.negativeMarkerSizeProperty,n),n):this.c(t.$b6.negativeMarkerSizeProperty)},lineThickness:function(n){return arguments.length===1?(this.g(t.$b6.lineThicknessProperty,n),n):this.c(t.$b6.lineThicknessProperty)},minimum:function(n){return arguments.length===1?(this.g(t.$b6.minimumProperty,n),n):this.c(t.$b6.minimumProperty)},maximum:function(n){return arguments.length===1?(this.g(t.$b6.maximumProperty,n),n):this.c(t.$b6.maximumProperty)},itemsSource:function(n){return arguments.length===1?(this.g(t.$b6.itemsSourceProperty,n),n):this.c(t.$b6.itemsSourceProperty)},valueMemberPath:function(n){return arguments.length===1?(this.g(t.$b6.valueMemberPathProperty,n),n):this.c(t.$b6.valueMemberPathProperty)},labelMemberPath:function(n){return arguments.length===1?(this.g(t.$b6.labelMemberPathProperty,n),n):this.c(t.$b6.labelMemberPathProperty)},toolTip:function(n){return arguments.length===1?(this.g(t.$b6.toolTipProperty,n),this.toolTipVisibility(n==null||n.toString().length==0?1:0),n):this.c(t.$b6.toolTipProperty)},toolTipVisibility:function(n){return arguments.length===1?(this.g(t.$b6.toolTipVisibilityProperty,n),n):this.c(t.$b6.toolTipVisibilityProperty)},trendLineType:function(n){return arguments.length===1?(this.g(t.$b6.trendLineTypeProperty,n),n):this.c(t.$b6.trendLineTypeProperty)},trendLinePeriod:function(n){return arguments.length===1?(this.g(t.$b6.trendLinePeriodProperty,n),n):this.c(t.$b6.trendLinePeriodProperty)},trendLineThickness:function(n){return arguments.length===1?(this.g(t.$b6.trendLineThicknessProperty,n),n):this.c(t.$b6.trendLineThicknessProperty)},normalRangeMinimum:function(n){return arguments.length===1?(this.g(t.$b6.normalRangeMinimumProperty,n),n):this.c(t.$b6.normalRangeMinimumProperty)},normalRangeMaximum:function(n){return arguments.length===1?(this.g(t.$b6.normalRangeMaximumProperty,n),n):this.c(t.$b6.normalRangeMaximumProperty)},displayType:function(n){return arguments.length===1?(this.g(t.$b6.displayTypeProperty,n),n):this.c(t.$b6.displayTypeProperty)},unknownValuePlotting:function(n){return arguments.length===1?(this.g(t.$b6.unknownValuePlottingProperty,n),n):this.c(t.$b6.unknownValuePlottingProperty)},verticalAxisLabel:function(n){return arguments.length===1?(this.g(t.$b6.verticalAxisLabelProperty,n),n):this.c(t.$b6.verticalAxisLabelProperty)},horizontalAxisLabel:function(n){return arguments.length===1?(this.g(t.$b6.horizontalAxisLabelProperty,n),n):this.c(t.$b6.horizontalAxisLabelProperty)},formatLabel:function(n){return arguments.length===1?(this.g(t.$b6.formatLabelProperty,n),n):this.c(t.$b6.formatLabelProperty)},ag:null,ah:function(n){if(arguments.length===1){var t=this.ag;return this.ag=n,this.cw(t,this.ag),n}return this.ag},ae:null,af:function(n){return arguments.length===1?(this.ae=n,n):this.ae},ar:0,at:function(n){return arguments.length===1?(this.ar=n,n):this.ar},aq:0,as:function(n){return arguments.length===1?(this.aq=n,n):this.aq},_an:null,an:function(n){return arguments.length===1?(this._an=n,n):this._an},_ad:null,ad:function(n){return arguments.length===1?(this._ad=n,n):this._ad},_am:null,am:function(n){return arguments.length===1?(this._am=n,n):this._am},cw:function(n,t){n!=null&&this.af().detachFromNext();t!=null&&this.af().connectTo(t.getService("ConfigurationMessages"))},cv:function(n,i,r){var u=this;u.af().sendMessage(function(){var u=new t.f5;return u.propertyName(n),u.oldValue(i),u.newValue(r),u}())},provideContainer:function(n){var i=this;i.af().sendMessage(function(){var i=new t.f5;return i.propertyName("Container"),i.newValue(n),i}())},notifyResized:function(){this.af().sendMessage(new t.ef)},notifySetItem:function(n,i,r,u){var f=this;(n.dataView&&n.dataSource&&(n=n.dataView()),n==f.itemsSource())&&f.af().sendMessage(function(){var n=new t.f7;return n.b(2),n.e(r),n.d(u),n.c(i),n}())},notifyClearItems:function(n){var i=this;(n.dataView&&n.dataSource&&(n=n.dataView()),n==i.itemsSource())&&i.af().sendMessage(function(){var n=new t.f7;return n.b(4),n}())},notifyInsertItem:function(n,i,r){var u=this;(n.dataView&&n.dataSource&&(n=n.dataView()),n==u.itemsSource())&&u.af().sendMessage(function(){var n=new t.f7;return n.b(0),n.d(r),n.c(i),n}())},notifyRemoveItem:function(n,i,r){var u=this;(n.dataView&&n.dataSource&&(n=n.dataView()),n==u.itemsSource())&&u.af().sendMessage(function(){var n=new t.f7;return n.b(1),n.e(r),n.c(i),n}())},$type:new n.ig.Type("XamSparkline",t.$b7.$type)},!0);n.ig.util.defType("HorizontalAxisView:cq","Object",{g:null,t:null,i:null,v:null,p:0,s:0,r:0,h:null,o:0,ad:null,ac:null,ae:null,j:null,l:!1,init:function(i){var r=this;this.o=-1;this.j=["border-top-width","border-top-color","color","font"];this.l=!1;this.m=new t.bg(t.$c.$type,t.$co.$type,0);n.ig.$op.init.call(this);this.n().item(t.$f2.$type,function(i){return r.z(n.ig.util.cast(t.$f2.$type,i))});this.n().item(t.$dx.$type,function(i){return r.w(n.ig.util.cast(t.$dx.$type,i))});this.n().item(t.$f0.$type,function(i){return r.ab(n.ig.util.cast(t.$f0.$type,i))});this.g=i},k:function(){return this.l||(this.l=!0,this.h.n("ui-sparkline-axis-x",this.j)),this.j},q:function(){var t=this.o,i;return t>=0?t:(i=this.k()[0],i!=null&&(t=n.ig.Number.prototype.parseInt(i)),this.o=t=t<1?1:t,t)},e:null,f:function(n){if(arguments.length===1){var t=this.e;return this.e=n,this.h=n.getService("View"),this.y(t,this.e),n}return this.e},m:null,n:function(n){return arguments.length===1?(this.m=n,n):this.m},b:null,d:function(n){return arguments.length===1?(this.b=n,n):this.b},a:null,c:function(n){return arguments.length===1?(this.a=n,n):this.a},x:function(n){var i=this,t;(function(){var r=i.n().tryGetValue(n.getType(),t);return t=r.value,r.ret})()&&t(n)},y:function(n,t){n!=null&&this.d().detachTarget(this.x.runOn(this));t!=null&&(this.d(t.getService("RenderingMessages")),this.c(t.getService("InteractionMessages")),this.d().attachTarget(this.x.runOn(this)))},w:function(n){this.t=n.j();this.i=n.b();this.v=this.k()[3];this.v==null&&(this.v=t.$fy.c(n.j()));this.i.z(this.v);this.p=t.$fy.b(this.v);this.g!=null&&this.g.horizontalAxisVisibility()!=1&&(n.d(n.d()-this.p),n.e(this.q()))},ab:function(){this.s=this.t.width();this.r=this.p+this.q()},z:function(n){this.aa(n.c())},aa:function(n){var r=!n||this.g==null||this.g.an()==null||this.g.an().count()==0?null:this.i;if(r!=null&&r.c()){var u=this.q(),o=u/2,e=this.u(this.g.an().item(0)).toString();this.ad=new t.c6;this.ad.aa(e);this.ad.l(2);this.ac=new t.c6;this.ac.aa(e=this.u(this.g.an().item(this.g.an().count()-1)).toString());this.ac.m(this.ad.m(u));r.i(0,0,this.s,this.r);this.v!=null&&r.z(this.v);this.ac.l(this.s-r.d(e)-4);var i=this.g.horizontalAxisBrush(),f=i==null?null:i.__fill,s=i==null?null:i.color();(i=new t.cg,s==null?i.__fill=this.j[2]==null?"#000000":this.j[2]:i.color(s),this.ad.ab(this.ac.ab(i)),r.u(this.ad),r.u(this.ac),u<.5)||(i=new t.cg,f==null&&(f=this.j[1]),i.__fill=f==null?"#000000":f,this.ae=new t.di,this.ae.ag(0),this.ae.ah(this.t.width()),this.ae.ai(o),this.ae.aj(o),this.ae.__stroke=i,this.ae.z(u),r.p(this.ae))}},u:function(n){if(this.g.formatLabel()!=null)return this.g.formatLabel()(n);var t=this.g.horizontalAxisLabel();return typeof n!="undefined"?n:""},$type:new n.ig.Type("HorizontalAxisView",n.ig.$ot)},!0);n.ig.util.defType("VerticalAxisView:f3","Object",{aa:null,z:null,ai:null,ah:null,aj:null,t:0,r:0,g:null,x:null,i:null,ab:null,q:0,s:0,w:0,v:0,h:null,p:0,j:null,l:!1,init:function(i){var r=this;this.t=-1;this.r=-1;this.p=-1;this.j=["border-top-width","border-top-color","color","font","text-align"];this.l=!1;this.n=new t.bg(t.$c.$type,t.$co.$type,0);n.ig.$op.init.call(this);this.o().item(t.$f2.$type,function(i){return r.af(n.ig.util.cast(t.$f2.$type,i))});this.o().item(t.$dx.$type,function(i){return r.ac(n.ig.util.cast(t.$dx.$type,i))});this.o().item(t.$f0.$type,function(i){return r.ag(n.ig.util.cast(t.$f0.$type,i))});this.g=i},k:function(){return this.l||(this.l=!0,this.h.n("ui-sparkline-axis-y",this.j)),this.j},u:function(){var t=this.p,i;return t>=0?t:(i=this.k()[0],i!=null&&(t=n.ig.Number.prototype.parseInt(i)),this.p=t=t<1?1:t,t)},e:null,f:function(n){if(arguments.length===1){var t=this.e;return this.e=n,this.h=n.getService("View"),this.ae(t,this.e),n}return this.e},n:null,o:function(n){return arguments.length===1?(this.n=n,n):this.n},b:null,d:function(n){return arguments.length===1?(this.b=n,n):this.b},a:null,c:function(n){return arguments.length===1?(this.a=n,n):this.a},ad:function(n){var i=this,t;(function(){var r=i.o().tryGetValue(n.getType(),t);return t=r.value,r.ret})()&&t(n)},ae:function(n,t){n!=null&&this.d().detachTarget(this.ad.runOn(this));t!=null&&(this.d(t.getService("RenderingMessages")),this.c(t.getService("InteractionMessages")),this.d().attachTarget(this.ad.runOn(this)))},ac:function(n){this.x=n.k();this.i=n.c();this.ab=this.k()[3];this.ab==null&&(this.ab=t.$fy.c(n.k()));this.i.z(this.ab);this.q=t.$fy.b(this.ab);this.g!=null&&this.g.verticalAxisVisibility()!=1&&(this.m(!1),n.g(n.g()-this.s),n.f(this.u()))},ag:function(){this.w=this.s+this.u();this.v=this.x.height()},af:function(n){if(this.m(n.c())){var i=new t.dj;i.c(!0);this.d().sendMessage(i)}},m:function(n){var u,i,s,h,o,c;if(this.g==null||this.g.itemsSource()==null||this.i==null||!this.i.c()||n&&this.ah==null)return!1;if(u=!1,i=this.i,i!=null&&this.ab!=null&&i.z(this.ab),n){if(i!=null){var r=this.g.verticalAxisBrush(),f=1,e=r==null?null:r.__fill,l=this.k()[4];if(l=="left"?f=0:l=="center"&&(f=.5),this.ah.m(2),this.ah.l((this.s-this.r)*f+1),this.ai.l((this.s-this.t)*f+1),this.ai.m(this.v-this.q-2),i.i(0,0,this.w,this.v),h=r==null?null:r.color(),r=new t.cg,h==null?r.__fill=this.j[2]==null?"#000000":this.j[2]:r.color(h),this.ai.ab(this.ah.ab(r)),i.u(this.ai),i.u(this.ah),o=this.u(),c=o/2,o<.5)return u;r=new t.cg;e==null&&(e=this.j[1]);r.__fill=e==null?"#000000":e;this.aj=new t.di;this.aj.ag(this.w-c);this.aj.ah(this.w-c);this.aj.ai(0);this.aj.aj(this.v);this.aj.__stroke=r;this.aj.z(o);i.p(this.aj)}}else this.ai=new t.c6,this.ah=new t.c6,this.ai.aa(this.aa=this.y(this.g.at()).toString()),this.ah.aa(this.z=this.y(this.g.as()).toString()),i!=null&&(this.t=i.d(this.aa)+3,this.t>this.s&&(u=!0,this.s=this.t),this.r=i.d(this.z)+3,this.r>this.s&&(u=!0,this.s=this.r)),u||(s=Math.max(this.t,this.r),s<this.s&&(this.s=s,u=!0)),u&&(this.w=this.s);return u},y:function(n){if(this.g.formatLabel()!=null)return this.g.formatLabel()(n);var t=this.g.verticalAxisLabel();return typeof n!="undefined"?n:""},$type:new n.ig.Type("VerticalAxisView",n.ig.$ot)},!0);n.ig.util.defType("XamSparklineView:cr","Object",{be:null,bd:null,ab:null,aa:null,ad:null,ae:null,ac:null,k:null,l:null,m:null,j:null,r:!1,o:null,u:0,init:function(){var r=this,i;this.o=new Array(6);this.u=-1;this.bn=new t.c3;this.bl=new t.c3;this.bo=new t.c3;this.bm=new t.c3;this.bj=new t.c3;this.bk=new t.c3;this.bi=new t.c3;this.bg=new t.c3;this.bf=new t.c3;this.bh=new t.c3;this.s=new t.bg(t.$c.$type,t.$co.$type,0);this.p=!1;this.af=null;this.q=!1;n.ig.$op.init.call(this);i=this.t();i.item(t.$dj.$type,function(i){return r.ag(n.ig.util.cast(t.$dj.$type,i))});i.item(t.$dm.$type,function(i){return r.a3(n.ig.util.cast(t.$dm.$type,i))});i.item(t.$dn.$type,function(i){return r.aw(n.ig.util.cast(t.$dn.$type,i))});i.item(t.$dp.$type,function(i){return r.ba(n.ig.util.cast(t.$dp.$type,i))});i.item(t.$dq.$type,function(i){return r.az(n.ig.util.cast(t.$dq.$type,i))});i.item(t.$dr.$type,function(i){return r.a4(n.ig.util.cast(t.$dr.$type,i))});i.item(t.$ds.$type,function(i){return r.a7(n.ig.util.cast(t.$ds.$type,i))});i.item(t.$dt.$type,function(i){return r.a5(n.ig.util.cast(t.$dt.$type,i))});i.item(t.$du.$type,function(i){return r.a6(n.ig.util.cast(t.$du.$type,i))});i.item(t.$dv.$type,function(i){return r.ah(n.ig.util.cast(t.$dv.$type,i))});i.item(t.$dw.$type,function(i){return r.au(n.ig.util.cast(t.$dw.$type,i))});i.item(t.$dx.$type,function(){return r.an()});i.item(t.$ed.$type,function(i){return r.a9(n.ig.util.cast(t.$ed.$type,i))});i.item(t.$ee.$type,function(i){return r.a2(n.ig.util.cast(t.$ee.$type,i))});i.item(t.$ef.$type,function(){return r.an()});this.a(new t.ct);this.a().h(this)},bn:null,bl:null,bo:null,bm:null,bj:null,bk:null,bi:null,bg:null,bf:null,bh:null,f:null,g:function(n){if(arguments.length===1){var t=this.f;return this.f=n,this.ao(t,this.f),this.h=null,n}return this.f},b:null,d:function(n){return arguments.length===1?(this.b=n,n):this.b},c:null,e:function(n){return arguments.length===1?(this.c=n,n):this.c},s:null,t:function(n){return arguments.length===1?(this.s=n,n):this.s},ao:function(n,t){n!=null&&(this.e().detachTarget(this.am.runOn(this)),this.d(null));t!=null&&(this.e(t.getService("RenderingMessages")),this.d(t.getService("InteractionMessages")),this.e().attachTarget(this.am.runOn(this)),this.at(this.d()))},at:function(n){this.d(n)},am:function(n){var i=this,t;(function(){var r=i.t().tryGetValue(n.getType(),t);return t=r.value,r.ret})()&&t(n)},h:null,i:function(){return this.h==null&&(this.h=this.g().getService("Controller")),this.h},as:function(n){var i=new t.eh;i.position(n);this.d().sendMessage(i)},ar:function(){var n=new t.ei;this.d().sendMessage(n)},au:function(n){this.av(n.b(),n.c(),null,-1,-1)},av:function(n,i,r,u,f){var e=null,o=!0,s=!0;switch(n){case"sparkpath":case"Brush":e=this.bn;break;case"negativesparkpath":case"NegativeBrush":e=this.bl;break;case"markers":case"MarkerBrush":e=this.bj;break;case"firstmarker":case"FirstMarkerBrush":e=this.bf;break;case"lastmarker":case"LastMarkerBrush":e=this.bh;break;case"highmarker":case"HighMarkerBrush":e=this.bg;break;case"lowmarker":case"LowMarkerBrush":e=this.bi;break;case"negativemarkers":case"NegativeMarkerBrush":e=this.bk;break;case"trendline":case"TrendLineBrush":e=this.bo;s=!1;break;case"range":case"NormalRangeFill":e=this.bm;o=!1}e!=null&&(i==null&&r!=null&&(i=new t.cg,i.__fill=r),i!=null&&(s&&(r==null||e.__fill==null)&&(e.__fill=i),o&&(r==null||e.__stroke==null)&&(e.__stroke=i)),u>0&&u<1&&(e.__opacity=u),f>0&&(r==null||e.z()<=0)&&e.z(f),this.al())},a9:function(n){switch(n.b()){case"MarkerVisibility":this.bj.__visibility=n.c();break;case"FirstMarkerVisibility":this.bf.__visibility=n.c();break;case"LastMarkerVisibility":this.bh.__visibility=n.c();break;case"HighMarkerVisibility":this.bg.__visibility=n.c();break;case"LowMarkerVisibility":this.bi.__visibility=n.c();break;case"NegativeMarkerVisibility":this.bk.__visibility=n.c();break;case"NormalRangeVisibility":this.bm.__visibility=n.c();break;case"ToolTipVisibility":this.r=n.c()==0}this.al()},a2:function(n){var t=n.b();if(!(t<=0)){switch(n.c()){case"LineThickness":this.bn.z(this.bl.z(t));break;case"TrendLineThickness":this.bo.z(t)}this.al()}},ah:function(i){if(i.b()==null){this.j!=null&&this.j.af();this.ab=this.aa=this.ad=this.ae=null;return}var r=i.b();this.ab=n(r);this.ab.css("position","relative");this.aa=n("<canvas style='position:absolute' />");this.ad=n("<canvas style='position:absolute' />");this.ae=n("<canvas style='position:absolute' />");this.ac==null&&(this.ac=n("<span style='position:absolute;display:none' />"));this.ab.append(this.ac);this.ab.append(this.aa);this.ab.append(this.ad);this.ab.append(this.ae);this.k=new t.cw(new t.ex,this.aa[0].getContext("2d"));this.l=new t.cw(new t.ex,this.ad[0].getContext("2d"));this.m=new t.cw(new t.ex,this.ae[0].getContext("2d"));this.j=new t.fv(this.aa);this.j.onMouseLeave=n.ig.Delegate.prototype.combine(this.j.onMouseLeave,this.ar.runOn(this));this.j.onMouseOver=n.ig.Delegate.prototype.combine(this.j.onMouseOver,this.as.runOn(this));this.ak();this.an()},ak:function(){for(var u,i,f,r=this,e=["sparkpath","negativesparkpath","trendline","markers","firstmarker","lastmarker","highmarker","lowmarker","negativemarkers","range"],o=["#B1BFC9","#798995","#2070a0","#4F606C","#374650","#162C3B","#162C3B","#162C3B","#862C3B","#a0a0a0"],n=0;n<10;n++)u=e[n],i=["background-color","opacity","border-top-width"],r.n("ui-sparkline-"+u,i),f=t.$cr.z(i[2],n<3?n<2?2:1.5:-1),n>2&&n<9&&(r.o[n-3]=f),r.av(u,null,i[0]==null?o[n]:i[0],t.$cr.z(i[1],-1),n<3?f:-1)},z:function(n,t){var i=n==null||n.length<1?null:parseFloat(n);return i==null||i.toString()=="NaN"?t:i},n:function(i,r){var f=this.ac,u;f==null&&(f=this.ac=n("<span style='position:absolute;display:none' />"),n("body").append(this.ac));for(var e=r.length,o=e,s=new Array(o);o-->0;)s[o]=r[o]=="font"?null:f.css(r[o]);for(f.addClass(i);e-->0;)u=r[e],u=u=="font"?t.$fy.c(f):f.css(u),r[e]=u==null||u.length==0||u=="null"||u=="transparent"||u==s[e]?null:u;return f.removeClass(i),r},p:!1,an:function(){var u;if(this.ab!=null&&!this.p){this.p=!0;var h=this.ab.width(),v=this.ab.height(),r=this.aa,i=this.ad,f=this.ae,n=new t.dx;n.g(h);n.d(v);n.b(this.l);n.j(i);n.i(this.ab);n.h(r);n.c(this.m);n.k(f);n.f(0);n.e(0);this.e().sendMessage(n);var p=n.e(),c=n.f(),e=n.g()-c,l=n.d()-p,o=e.toString(),a=(h-e).toString(),s=l.toString(),y=(v-l).toString();r.css("width",o);r.css("height",s);r.attr("width",o);r.attr("height",s);r.css("marginLeft",a+"px");o=(e+c).toString();i.css("width",o+"px");i.css("height",y+"px");i.attr("width",o);i.attr("height",y);i.css("marginTop",s+"px");i.css("marginLeft",(h-e-c).toString()+"px");f.attr("width",a);f.attr("height",s);f.css("width",a);f.css("height",s);this.be=new t.c1(0,0,0,e,l);this.j.az(this.be);this.a8();u=new t.f0;u.newLeft(this.be.left());u.newTop(this.be.top());u.newHeight(this.be.height());u.newWidth(this.be.width());this.e().sendMessage(u);this.p=!1}},ai:function(n){n?this.u=-1:this.u<0&&this.a8()},a8:function(){var u=this.be.width(),f=this.be.height(),r=this.x(!0),n=new t.c1(0,r,r,u-r*2,f-r*2),i=new t.f0;i.newLeft(n.left());i.newTop(n.top());i.newHeight(n.height());i.newWidth(n.width());this.bd=n;this.d().sendMessage(i)},ag:function(n){if(this.be!=null){switch(n.b()){case 2:this.bj.ak(null);this.bf.ak(null);this.bh.ak(null);this.bg.ak(null);this.bi.ak(null);this.bk.ak(null);break;case 8:this.bm.ak(null);break;case 1:this.bn.ak(null);this.bl.ak(null);break;case 4:this.aj(null);break;case 16:this.bo.ak(null)}n.c()&&this.an();this.k!=null&&n.b()!=4&&this.k.i(this.be.left(),this.be.top(),this.be.width(),this.be.height())}},x:function(n){var t,i;return(n&&(this.u=-1),t=this.u,t>=0)?t:(t=0,i=this.i().n(),i.markerVisibility()==0&&(t=this.y(t,i.markerSize(),0)),i.firstMarkerVisibility()==0&&(t=this.y(t,i.firstMarkerSize(),1)),i.lastMarkerVisibility()==0&&(t=this.y(t,i.lastMarkerSize(),2)),i.highMarkerVisibility()==0&&(t=this.y(t,i.highMarkerSize(),3)),i.lowMarkerVisibility()==0&&(t=this.y(t,i.lowMarkerSize(),4)),i.negativeMarkerVisibility()==0&&(t=this.y(t,i.negativeMarkerSize(),5)),this.u=t,t)},y:function(n,t,i){return t>=0?t>n?t:n:this.o[i]>n?this.o[i]:n},az:function(n){this.a0(this.bj,n.e(),n.k(),0);this.a0(this.bk,n.f(),n.l(),5);this.a0(this.bi,n.d(),n.j(),4);this.a0(this.bg,n.c(),n.h(),3);this.a1(this.bf,n.m(),n.g(),1);this.a1(this.bh,n.n(),n.i(),2);this.al()},a1:function(n,i,r,u){var f=this,e=function(){var n=new t.x(t.$at.$type,0);return n.add(i),n}();f.a0(n,e,r,u)},a0:function(n,i,r,u){if(r<0&&(r=this.o[u]),n.ak(this.bc(i,r<.1?3:r)),this.i().n().displayType()!=3){var f=new t.fs;f.h(this.i().l.d);n.h(f)}else n.h(null)},bc:function(n,i){var f=new t.e6,r,u;f.b(1);for(var o=this.be.width(),s=this.be.height(),e=n.getEnumerator();e.moveNext();)(r=e.current(),r.__x<0||r.__y<0||r.__x>o||r.__y>s)||(u=new t.fd,u.b(i),u.c(i),u.d(r),f.c().add(u));return f},a3:function(n){for(var o=new t.e9,h=this.i().n().displayType()==1,s=n.points().getEnumerator(),r,f,i,u,e;s.moveNext();)if(r=s.current(),f=r.length,f!=0){for(i=new t.fi,i.__isClosed=i.__isFilled=h,i.__startPoint=r[0],u=1;u<f;u++)e=new t.fk(1),e.c(r[u]),i.__segments.add(e);o.b().add(i)}this.bn.ak(o);this.al()},bb:function(i,r){for(var u=n.ig.util.cast(t.$dp.$type,r),o=n.ig.util.cast(t.$dn.$type,r),s=new t.e6,h=u!=null?u.i():o.i(),e=u!=null?u.h():o.h(),c=h*.1,l=i.getEnumerator();l.moveNext();){var f=l.current(),v=h*2-c*2,y=Math.abs(e-f.__y),p=f.__x+c,w=f.__y>e?e:f.__y,a=new t.fc;a.d(new t.c1(0,p,w,v,y));s.c().add(a)}return s},aw:function(n){this.ax(this.bn,n.d(),n);this.ax(this.bl,n.g(),n);this.al()},ay:function(n,i,r){var u=this,f=function(){var n=new t.x(t.$at.$type,0);return n.add(i),n}();u.ax(n,f,r)},ax:function(n,t,i){n.ak(this.bb(t,i))},ba:function(n){this.ax(this.bn,n.d(),n);this.ax(this.bl,n.g(),n);this.al()},a4:function(n){var i=new t.fc;i.d(new t.c1(0,n.k(),n.l(),n.j(),n.i()));this.bm.ak(i);this.al()},a7:function(n){var u,i,e,r,f;if(n.points().length!=0){for(u=new t.e9,i=new t.fi,i.__isClosed=i.__isFilled=!1,i.__startPoint=n.points()[0],e=n.points().length,r=1;r<e;r++)f=new t.fk(1),f.c(n.points()[r]),i.__segments.add(f);u.b().add(i);this.bo.ak(u);this.al()}},af:null,a6:function(n){this.af=n.template().toString()},a5:function(n){if(!this.r){this.aj(null);return}var t=Math.round(n.xOffset()-10),i=Math.round(n.yOffset()-10),r=this.k.b(t,i);r[3]>0?this.aj(n):this.aj(null)},aj:function(n){var r=0,u=0,f=null,e=null,t=this.ab;if(t=t?t.data("igSparkline"):null,t!=null){if(n!=null){e=this.af;r=n.xOffset()+6;u=n.yOffset()+6;var i=n.context(),o=i.a(),s=i.c(),h=i.d(),c=i.b();f={First:o,Last:s,Low:h,High:c}}t._fireTooltip(e,f,r,u)}},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},q:!1,isDirty:function(n){return arguments.length===1?(this.q=n,n):this.q},al:function(){this.isDirty()||(this.isDirty(!0),this.a().k(this.k,null))},undirty:function(){this.q=!1;this.ap()},index:function(){return 10},aq:function(n,t){t.q(n)},ap:function(){var n=this.k,i;n!=null&&n.c()&&(n.q(this.bn),n.q(this.bl),this.aq(this.bj,n),this.aq(this.bf,n),this.aq(this.bh,n),this.aq(this.bg,n),this.aq(this.bi,n),this.aq(this.bk,n),n.q(this.bm),n.q(this.bo));i=new t.f2;i.c(!0);this.e().sendMessage(i);this.postRender()},postRender:function(){},preRender:function(){},$type:new n.ig.Type("XamSparklineView",n.ig.$ot,[t.$cs.$type])},!0);t.$cj.line=0;t.$cj.area=1;t.$cj.column=2;t.$cj.winLoss=3;t.$dl.sparkLayer=1;t.$dl.markerLayer=2;t.$dl.toolTipLayer=4;t.$dl.rangeLayer=8;t.$dl.trendLayer=16;t.$aw.ay=t.$az.i("FastItemsSource",t.$a8.$type,t.$aw.$type,new t.a0(1,function(i,r){n.ig.util.cast(t.$aw.$type,i).ar(r.d(),r.c())}));t.$b6.be="Brush";t.$b6.brushProperty=t.$az.i("Brush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("Brush",r.d(),r.c())}));t.$b6.b6="NegativeBrush";t.$b6.negativeBrushProperty=t.$az.i("NegativeBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("NegativeBrush",r.d(),r.c())}));t.$b6.b1="MarkerBrush";t.$b6.markerBrushProperty=t.$az.i("MarkerBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("MarkerBrush",r.d(),r.c())}));t.$b6.b7="NegativeMarkerBrush";t.$b6.negativeMarkerBrushProperty=t.$az.i("NegativeMarkerBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("NegativeMarkerBrush",r.d(),r.c())}));t.$b6.bh="FirstMarkerBrush";t.$b6.firstMarkerBrushProperty=t.$az.i("FirstMarkerBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("FirstMarkerBrush",r.d(),r.c())}));t.$b6.bu="LastMarkerBrush";t.$b6.lastMarkerBrushProperty=t.$az.i("LastMarkerBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("LastMarkerBrush",r.d(),r.c())}));t.$b6.bl="HighMarkerBrush";t.$b6.highMarkerBrushProperty=t.$az.i("HighMarkerBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("HighMarkerBrush",r.d(),r.c())}));t.$b6.by="LowMarkerBrush";t.$b6.lowMarkerBrushProperty=t.$az.i("LowMarkerBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("LowMarkerBrush",r.d(),r.c())}));t.$b6.cg="TrendLineBrush";t.$b6.trendLineBrushProperty=t.$az.i("TrendLineBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("TrendLineBrush",r.d(),r.c())}));t.$b6.bo="HorizontalAxisBrush";t.$b6.horizontalAxisBrushProperty=t.$az.i("HorizontalAxisBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("HorizontalAxisBrush",r.d(),r.c())}));t.$b6.cn="VerticalAxisBrush";t.$b6.verticalAxisBrushProperty=t.$az.i("VerticalAxisBrush",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("VerticalAxisBrush",r.d(),r.c())}));t.$b6.ca="NormalRangeFill";t.$b6.normalRangeFillProperty=t.$az.i("NormalRangeFill",t.$cg.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("NormalRangeFill",r.d(),r.c())}));t.$b6.bq="HorizontalAxisVisibility";t.$b6.horizontalAxisVisibilityProperty=t.$az.i("HorizontalAxisVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("HorizontalAxisVisibility",r.d(),r.c())}));t.$b6.cp="VerticalAxisVisibility";t.$b6.verticalAxisVisibilityProperty=t.$az.i("VerticalAxisVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("VerticalAxisVisibility",r.d(),r.c())}));t.$b6.b3="MarkerVisibility";t.$b6.markerVisibilityProperty=t.$az.i("MarkerVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("MarkerVisibility",r.d(),r.c())}));t.$b6.b9="NegativeMarkerVisibility";t.$b6.negativeMarkerVisibilityProperty=t.$az.i("NegativeMarkerVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("NegativeMarkerVisibility",r.d(),r.c())}));t.$b6.bj="FirstMarkerVisibility";t.$b6.firstMarkerVisibilityProperty=t.$az.i("FirstMarkerVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("FirstMarkerVisibility",r.d(),r.c())}));t.$b6.bw="LastMarkerVisibility";t.$b6.lastMarkerVisibilityProperty=t.$az.i("LastMarkerVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("LastMarkerVisibility",r.d(),r.c())}));t.$b6.b0="LowMarkerVisibility";t.$b6.lowMarkerVisibilityProperty=t.$az.i("LowMarkerVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("LowMarkerVisibility",r.d(),r.c())}));t.$b6.bn="HighMarkerVisibility";t.$b6.highMarkerVisibilityProperty=t.$az.i("HighMarkerVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("HighMarkerVisibility",r.d(),r.c())}));t.$b6.cd="NormalRangeVisibility";t.$b6.normalRangeVisibilityProperty=t.$az.i("NormalRangeVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("NormalRangeVisibility",r.d(),r.c())}));t.$b6.bf="DisplayNormalRangeInFront";t.$b6.displayNormalRangeInFrontProperty=t.$az.i("DisplayNormalRangeInFront",t.$d.$type,t.$b6.$type,new t.a0(2,!0,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("DisplayNormalRangeInFront",r.d(),r.c())}));t.$b6.b2="MarkerSize";t.$b6.a1=-1;t.$b6.markerSizeProperty=t.$az.i("MarkerSize",Number,t.$b6.$type,new t.a0(2,-1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("MarkerSize",r.d(),r.c())}));t.$b6.bi="FirstMarkerSize";t.$b6.firstMarkerSizeProperty=t.$az.i("FirstMarkerSize",Number,t.$b6.$type,new t.a0(2,-1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("FirstMarkerSize",r.d(),r.c())}));t.$b6.bv="LastMarkerSize";t.$b6.lastMarkerSizeProperty=t.$az.i("LastMarkerSize",Number,t.$b6.$type,new t.a0(2,-1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("LastMarkerSize",r.d(),r.c())}));t.$b6.bm="HighMarkerSize";t.$b6.highMarkerSizeProperty=t.$az.i("HighMarkerSize",Number,t.$b6.$type,new t.a0(2,-1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("HighMarkerSize",r.d(),r.c())}));t.$b6.bz="LowMarkerSize";t.$b6.lowMarkerSizeProperty=t.$az.i("LowMarkerSize",Number,t.$b6.$type,new t.a0(2,-1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("LowMarkerSize",r.d(),r.c())}));t.$b6.b8="NegativeMarkerSize";t.$b6.negativeMarkerSizeProperty=t.$az.i("NegativeMarkerSize",Number,t.$b6.$type,new t.a0(2,-1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("NegativeMarkerSize",r.d(),r.c())}));t.$b6.bx="LineThickness";t.$b6.ay=-1;t.$b6.lineThicknessProperty=t.$az.i("LineThickness",Number,t.$b6.$type,new t.a0(2,-1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("LineThickness",r.d(),r.c())}));t.$b6.b5="Minimum";t.$b6.minimumProperty=t.$az.i("Minimum",Number,t.$b6.$type,new t.a0(2,NaN,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("Minimum",r.d(),r.c())}));t.$b6.b4="Maximum";t.$b6.maximumProperty=t.$az.i("Maximum",Number,t.$b6.$type,new t.a0(2,NaN,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("Maximum",r.d(),r.c())}));t.$b6.br="ItemsSource";t.$b6.itemsSourceProperty=t.$az.i("ItemsSource",n.ig.IEnumerable.prototype.$type,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("ItemsSource",r.d(),r.c())}));t.$b6.cm="ValueMemberPath";t.$b6.valueMemberPathProperty=t.$az.i("ValueMemberPath",String,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("ValueMemberPath",r.d(),r.c())}));t.$b6.bt="LabelMemberPath";t.$b6.labelMemberPathProperty=t.$az.i("LabelMemberPath",String,t.$b6.$type,new t.a0(2,null,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("LabelMemberPath",r.d(),r.c())}));t.$b6.ce="ToolTip";t.$b6.toolTipProperty=t.$az.i("ToolTip",n.ig.$op.$type,t.$b6.$type,new t.a0(2,null,function(i,r){return n.ig.util.cast(t.$b6.$type,i).cv("ToolTip",r.d(),r.c())}));t.$b6.cf="ToolTipVisibility";t.$b6.toolTipVisibilityProperty=t.$az.i("ToolTipVisibility",t.$cb.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("ToolTipVisibility",r.d(),r.c())}));t.$b6.cj="TrendLineType";t.$b6.trendLineTypeProperty=t.$az.i("TrendLineType",t.$ci.$type,t.$b6.$type,new t.a0(2,0,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("TrendLineType",r.d(),r.c())}));t.$b6.ch="TrendLinePeriod";t.$b6.trendLinePeriodProperty=t.$az.i("TrendLinePeriod",n.ig.Number.prototype.$type,t.$b6.$type,new t.a0(2,7,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("TrendLinePeriod",r.d(),r.c())}));t.$b6.ci="TrendLineThickness";t.$b6.a8=-1;t.$b6.trendLineThicknessProperty=t.$az.i("TrendLineThickness",Number,t.$b6.$type,new t.a0(2,-1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("TrendLineThickness",r.d(),r.c())}));t.$b6.cc="NormalRangeMinimum";t.$b6.normalRangeMinimumProperty=t.$az.i("NormalRangeMinimum",Number,t.$b6.$type,new t.a0(1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("NormalRangeMinimum",r.d(),r.c())}));t.$b6.cb="NormalRangeMaximum";t.$b6.normalRangeMaximumProperty=t.$az.i("NormalRangeMaximum",Number,t.$b6.$type,new t.a0(1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("NormalRangeMaximum",r.d(),r.c())}));t.$b6.bg="DisplayType";t.$b6.displayTypeProperty=t.$az.i("DisplayType",t.$cj.$type,t.$b6.$type,new t.a0(2,0,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("DisplayType",r.d(),r.c())}));t.$b6.ck="UnknownValuePlotting";t.$b6.unknownValuePlottingProperty=t.$az.i("UnknownValuePlotting",t.$ck.$type,t.$b6.$type,new t.a0(2,1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("UnknownValuePlotting",r.d(),r.c())}));t.$b6.co="VerticalAxisLabel";t.$b6.verticalAxisLabelProperty=t.$az.i("VerticalAxisLabel",n.ig.$op.$type,t.$b6.$type,new t.a0(2,"{0:n}",function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("VerticalAxisLabel",r.d(),r.c())}));t.$b6.bp="HorizontalAxisLabel";t.$b6.horizontalAxisLabelProperty=t.$az.i("HorizontalAxisLabel",n.ig.$op.$type,t.$b6.$type,new t.a0(2,"{0}",function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("HorizontalAxisLabel",r.d(),r.c())}));t.$b6.bk="FormatLabel";t.$b6.formatLabelProperty=t.$az.i("FormatLabel",t.$av.$type.specialize(n.ig.$op.$type,String),t.$b6.$type,new t.a0(1,function(i,r){n.ig.util.cast(t.$b6.$type,i).cv("FormatLabel",r.d(),r.c())}));t.$cr.w=100;t.$cr.v=50;n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper,n.ig.RearrangedList$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["ofType$1","cast$1"]]]);n.ig.util.extCopy(n.ig.ArrayUtil,[[[n.ig.EdgeClipper,n.ig.RearrangedList$1],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);n.ig.util.extCopy(n.ig.BrushUtil,[[[],["getLightened"]]]);n.ig.util.extCopy(n.ig.ColorUtil,[[[],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);n.ig.util.extCopy(n.ig.Extensions,[[[],["reset1"]],[[],["reset"]],[[],["detach"]],[[],["transferChildrenTo"]],[[],["isPlottable"]],[[],["isPlottable1"]]]);n.ig.util.extCopy(n.ig.PathFigureUtil,[[[],["duplicate1"]],[[],["duplicate"]]]);n.ig.util.extCopy(n.ig.PointCollectionUtil,[[[n.ig.RearrangedList$1],["flattenTo","getBounds2","clipTo"]],[[n.ig.RearrangedList$1],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[],["getBounds3","getBounds4","toPointCollections"]]]);n.ig.util.extCopy(n.ig.RectUtil,[[[],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]])}(jQuery),$.ig=$.ig||{},function(n){var t={};n.ig.$currDefinitions=t;n.ig.util.bulkDefine(["BarcodeAlgorithm:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","Dictionary$2:x","IDictionary$2:y","ICollection$1:z","IEnumerable$1:aa","IEnumerable:ab","IEnumerator:ac","IEnumerator$1:ad","IDictionary:ae","Dictionary:af","IEqualityComparer$1:ag","Script:ah","KeyValuePair$2:ai","NotImplementedException:aj","Error:ak","StringBuilder:al","Number:am","Encoding:an","UTF8Encoding:ao","UnicodeEncoding:ap","ArgumentNullException:aq","BarcodeEncodedAlgorithm:ar","XamBarcode:as","Control:at","FrameworkElement:au","UIElement:av","DependencyObject:aw","DependencyProperty:ax","PropertyMetadata:ay","PropertyChangedCallback:az","MulticastDelegate:a0","IntPtr:a1","DependencyPropertyChangedEventArgs:a2","DependencyPropertiesCollection:a3","UnsetValue:a4","Binding:a5","PropertyPath:a6","Transform:a7","Visibility:a8","Style:a9","Thickness:ba","HorizontalAlignment:bb","VerticalAlignment:bc","XamBarcodeView:bd","JQueryObject:be","Element:bf","ElementAttributeCollection:bg","ElementCollection:bh","WebStyle:bi","ElementNodeType:bj","Document:bk","EventListener:bl","IElementEventHandler:bm","ElementEventHandler:bn","ElementAttribute:bo","JQueryPosition:bp","JQueryCallback:bq","JQueryEvent:br","JQueryUICallback:bs","RenderingContext:bt","IRenderer:bu","Rectangle:bv","Shape:bw","Brush:bx","Color:by","Math:bz","Number:b0","Number:b1","Number:b2","Number:b3","Number:b4","Number:b5","Number:b6","DoubleCollection:b7","List$1:b8","IList$1:b9","IArrayList:ca","Array:cb","ICollection:cc","CompareCallback:cd","IList:ce","IDisposable:cf","IArray:cg","Date:ch","Date:ci","Func$3:cj","Action$1:ck","Rect:cl","Size:cm","Point:cn","Path:co","Geometry:cp","GeometryType:cq","TextBlock:cr","Polygon:cs","PointCollection:ct","Polyline:cu","DataTemplateRenderInfo:cv","DataTemplatePassInfo:cw","ContentControl:cx","DataTemplate:cy","DataTemplateRenderHandler:cz","DataTemplateMeasureHandler:c0","DataTemplateMeasureInfo:c1","DataTemplatePassHandler:c2","Line:c3","BrushUtil:c4","LinearGradientBrush:c5","GradientStop:c6","ColorUtil:c7","Random:c8","InterpolationMode:c9","MathUtil:da","RuntimeHelpers:db","RuntimeFieldHandle:dc","BrushCollection:dd","ObservableCollection$1:de","INotifyCollectionChanged:df","NotifyCollectionChangedEventHandler:dg","NotifyCollectionChangedEventArgs:dh","EventArgs:di","NotifyCollectionChangedAction:dj","INotifyPropertyChanged:dk","PropertyChangedEventHandler:dl","PropertyChangedEventArgs:dm","Delegate:dn","CssHelper:dp","JQuery:dq","JQueryDeferred:dr","JQueryPromise:ds","Action:dt","CssGradientUtil:du","GeometryUtil:dv","Tuple$2:dw","FontUtil:dx","FontInfo:dy","Callback:dz","window:d0","DivElement:d1","CanvasElement:d2","CanvasContext:d3","CanvasViewRenderer:d4","CanvasContext2D:d5","TextMetrics:d6","ImageData:d7","Gradient:d8","GeometryGroup:d9","GeometryCollection:ea","FillRule:eb","PathGeometry:ec","PathFigureCollection:ed","LineGeometry:ee","RectangleGeometry:ef","EllipseGeometry:eg","ArcSegment:eh","PathSegment:ei","PathSegmentType:ej","SweepDirection:ek","PathFigure:el","PathSegmentCollection:em","LineSegment:en","PolyLineSegment:eo","BezierSegment:ep","PolyBezierSegment:eq","TransformGroup:er","TransformCollection:es","TranslateTransform:et","RotateTransform:eu","ScaleTransform:ev","Stretch:ew","SR:ex","EventHandler$1:ey","DataChangedEventArgs:ez","ArgumentException:e0","ErrorMessageDisplayingEventArgs:e1","BarcodeVisualData:e2","EncodingService:e3","Windows1250Encoding:e4","SingleByteEncoding:e5","IEncoding:e6","Windows1251Encoding:e7","Windows1252Encoding:e8","Windows1256Encoding:e9","UsAsciiEncoding:fa","Big5Encoding:fb","DoubleByteEncoding:fc","Big5EncodingExtended:fd","Big5EncodingExtended2:fe","Windows936Encoding:ff","Windows936EncodingExtended:fg","Windows936EncodingExtended2:fh","Windows936EncodingExtended3:fi","Ksc5601Encoding:fj","Ksc5601EncodingExtended:fk","Ksc5601EncodingExtended2:fl","Ksc5601EncodingExtended3:fm","Iso8859Dash1:fn","Iso8859Dash2:fo","Iso8859Dash3:fp","Iso8859Dash4:fq","Iso8859Dash5:fr","Iso8859Dash6:fs","Iso8859Dash7:ft","Iso8859Dash8:fu","Iso8859Dash9:fv","Iso8859Dash11:fw","Iso8859Dash13:fx","Iso8859Dash15:fy","Windows932Encoding:fz","Windows932EncodingExtended:f0","CodePage437Encoding:f1","Bch:f2","GfArithmetics:f3","Gf256:f4","ReedSolomon:f5","QRReedSolomon:f6","QRCodeBarcodeResources:f7","Gs1Helper:f8","MeasureHelper:f9","QRCodeAlgorithm:ga","QRMask:gb","GridBarcodeVisualData:gc","PrimitiveVisualData:gd","IVisualData:ge","PrimitiveAppearanceData:gf","BrushAppearanceData:gg","AppearanceHelper:gh","LinearGradientBrushAppearanceData:gi","GradientStopAppearanceData:gj","SolidBrushAppearanceData:gk","EllipseGeometryData:gl","GeometryData:gm","GetPointsSettings:gn","RectangleGeometryData:go","LineGeometryData:gp","PathGeometryData:gq","PathFigureData:gr","LineSegmentData:gs","SegmentData:gt","PolylineSegmentData:gu","ArcSegmentData:gv","PolyBezierSegmentData:gw","LabelAppearanceData:gx","ShapeTags:gy","Ecc10H:gz","Ecc10L:g0","Ecc10M:g1","Ecc10Q:g2","Ecc11H:g3","Ecc11L:g4","Ecc11M:g5","Ecc11Q:g6","Ecc12H:g7","Ecc12L:g8","Ecc12M:g9","Ecc12Q:ha","Ecc13H:hb","Ecc13L:hc","Ecc13M:hd","Ecc13Q:he","Ecc14H:hf","Ecc14L:hg","Ecc14M:hh","Ecc14Q:hi","Ecc15H:hj","Ecc15L:hk","Ecc15M:hl","Ecc15Q:hm","Ecc16H:hn","Ecc16L:ho","Ecc16M:hp","Ecc16Q:hq","Ecc17H:hr","Ecc17L:hs","Ecc17M:ht","Ecc17Q:hu","Ecc18H:hv","Ecc18L:hw","Ecc18M:hx","Ecc18Q:hy","Ecc19H:hz","Ecc19L:h0","Ecc19M:h1","Ecc19Q:h2","Ecc1H:h3","Ecc1L:h4","Ecc1M:h5","Ecc1Q:h6","Ecc20H:h7","Ecc20L:h8","Ecc20M:h9","Ecc20Q:ia","Ecc21H:ib","Ecc21L:ic","Ecc21M:id","Ecc21Q:ie","Ecc22H:ig","Ecc22L:ih","Ecc22M:ii","Ecc22Q:ij","Ecc23H:ik","Ecc23L:il","Ecc23M:im","Ecc23Q:io","Ecc24H:ip","Ecc24L:iq","Ecc24M:ir","Ecc24Q:is","Ecc25H:it","Ecc25L:iu","Ecc25M:iv","Ecc25Q:iw","Ecc26H:ix","Ecc26L:iy","Ecc26M:iz","Ecc26Q:i0","Ecc27H:i1","Ecc27L:i2","Ecc27M:i3","Ecc27Q:i4","Ecc28H:i5","Ecc28L:i6","Ecc28M:i7","Ecc28Q:i8","Ecc29H:i9","Ecc29L:ja","Ecc29M:jb","Ecc29Q:jc","Ecc2H:jd","Ecc2L:je","Ecc2M:jf","Ecc2Q:jg","Ecc30H:jh","Ecc30L:ji","Ecc30M:jj","Ecc30Q:jk","Ecc31H:jl","Ecc31L:jm","Ecc31M:jn","Ecc31Q:jo","Ecc32H:jp","Ecc32L:jq","Ecc32M:jr","Ecc32Q:js","Ecc33H:jt","Ecc33L:ju","Ecc33M:jv","Ecc33Q:jw","Ecc34H:jx","Ecc34L:jy","Ecc34M:jz","Ecc34Q:j0","Ecc35H:j1","Ecc35L:j2","Ecc35M:j3","Ecc35Q:j4","Ecc36H:j5","Ecc36L:j6","Ecc36M:j7","Ecc36Q:j8","Ecc37H:j9","Ecc37L:ka","Ecc37M:kb","Ecc37Q:kc","Ecc38H:kd","Ecc38L:ke","Ecc38M:kf","Ecc38Q:kg","Ecc39H:kh","Ecc39L:ki","Ecc39M:kj","Ecc39Q:kk","Ecc3H:kl","Ecc3L:km","Ecc3M:kn","Ecc3Q:ko","Ecc40H:kp","Ecc40L:kq","Ecc40M:kr","Ecc40Q:ks","Ecc4H:kt","Ecc4L:ku","Ecc4M:kv","Ecc4Q:kw","Ecc5H:kx","Ecc5L:ky","Ecc5M:kz","Ecc5Q:k0","Ecc6H:k1","Ecc6L:k2","Ecc6M:k3","Ecc6Q:k4","Ecc7H:k5","Ecc7L:k6","Ecc7M:k7","Ecc7Q:k8","Ecc8H:k9","Ecc8L:la","Ecc8M:lb","Ecc8Q:lc","Ecc9H:ld","Ecc9L:le","Ecc9M:lf","Ecc9Q:lg","RSP10:lh","RSP13:li","RSP15:lj","RSP16:lk","RSP17:ll","RSP18:lm","RSP20:ln","RSP22:lo","RSP24:lp","RSP26:lq","RSP28:lr","RSP30:ls","RSP7:lt","XamGridBarcodeView:lu","XamGridBarcode:lv","BarcodeGrid:lw","Panel:lx","UIElementCollection:ly","Collection$1:lz","Canvas:l0","Module:l1","Enumerable:l2","Func$2:l3","IOrderedEnumerable$1:l4","SortedList$1:l5","RowDefinition:l6","GridLength:l7","GridUnitType:l8","BarsFillMode:l9","ColumnDefinition:ma","PathVisualData:mb","QRCodeEncoder:mc","XamQRCodeBarcode:md","QRCodeErrorCorrectionLevel:me","SizeVersion:mf","EncodingMode:mg","HeaderDisplayMode:mh","Fnc1Mode:mi","EncodingSequence:mj","QRModeIndicator:mk","AbstractEnumerable:ml","Func$1:mm","AbstractEnumerator:mn","GenericEnumerable$1:mo","GenericEnumerator$1:mp"]);n.ig.util.defType("QRModeIndicator:mk","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("QRModeIndicator",n.ig.$ep.$type)},!0);n.ig.util.defType("Fnc1Mode:mi","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("Fnc1Mode",n.ig.$ep.$type)},!0);n.ig.util.defType("EncodingMode:mg","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("EncodingMode",n.ig.$ep.$type)},!0);n.ig.util.defType("QRCodeErrorCorrectionLevel:me","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("QRCodeErrorCorrectionLevel",n.ig.$ep.$type)},!0);n.ig.util.defType("SizeVersion:mf","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("SizeVersion",n.ig.$ep.$type)},!0);n.ig.util.defType("HeaderDisplayMode:mh","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("HeaderDisplayMode",n.ig.$ep.$type)},!0);n.ig.util.defType("BarsFillMode:l9","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("BarsFillMode",n.ig.$ep.$type)},!0);n.ig.util.defType("GridUnitType:l8","Enum",{init:function(){n.ig.$ep.init.call(this)},$type:new n.ig.Type("GridUnitType",n.ig.$ep.$type)},!0);n.ig.util.defType("BarcodeAlgorithm:a","Object",{staticInit:function(){t.$a.d=new t.x(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0);t.$a.d.item(-1,28591);t.$a.d.item(0,437);t.$a.d.item(1,28591);t.$a.d.item(2,t.$a.d.item(0));t.$a.d.item(3,t.$a.d.item(1));t.$a.d.item(4,28592);t.$a.d.item(5,28593);t.$a.d.item(6,28594);t.$a.d.item(7,28595);t.$a.d.item(8,28596);t.$a.d.item(9,28597);t.$a.d.item(10,28598);t.$a.d.item(11,28599);t.$a.d.item(13,874);t.$a.d.item(15,28603);t.$a.d.item(17,28605);t.$a.d.item(20,932);t.$a.d.item(21,1250);t.$a.d.item(22,1251);t.$a.d.item(23,1252);t.$a.d.item(24,1256);t.$a.d.item(25,1200);t.$a.d.item(26,65001);t.$a.d.item(27,20127);t.$a.d.item(28,950);t.$a.d.item(29,936);t.$a.d.item(30,949);t.$a.e=new t.x(n.ig.Number.prototype.$type,String,0);t.$a.e.item(-1,"iso-8859-1");t.$a.e.item(0,"Cp437");t.$a.e.item(1,t.$a.e.item(-1));t.$a.e.item(2,"Cp437");t.$a.e.item(3,t.$a.e.item(1));t.$a.e.item(4,"iso-8859-2");t.$a.e.item(5,"iso-8859-3");t.$a.e.item(6,"iso-8859-4");t.$a.e.item(7,"iso-8859-5");t.$a.e.item(8,"iso-8859-6");t.$a.e.item(9,"iso-8859-7");t.$a.e.item(10,"iso-8859-8");t.$a.e.item(11,"iso-8859-9");t.$a.e.item(13,"iso-8859-11");t.$a.e.item(15,"iso-8859-13");t.$a.e.item(17,"iso-8859-15");t.$a.e.item(20,"shift_jis");t.$a.e.item(21,"windows-1250");t.$a.e.item(22,"windows-1251");t.$a.e.item(23,"windows-1252");t.$a.e.item(24,"windows-1256");t.$a.e.item(25,"ISO-10646-UCS-2");t.$a.e.item(26,"UTF-8");t.$a.e.item(27,"ISO646-US");t.$a.e.item(28,"Big5");t.$a.e.item(29,"gb2312");t.$a.e.item(30,"KSC5601");for(var r=new t.al,i=0;i<256;i++)r.c(String.fromCharCode(i));t.$a.r=r.b()},s:function(i,r,u){var h,k,d,g,o,l,a,tt,v,y,p,w,it,b,rt,s;r=r.toUpperCase();var nt=r.length,ut=new Array(nt),ft=0;for(h=r.length-1;h>=0;h--)ut[ft++]=r.charAt(h)<="9"?r.charCodeAt(h)-"0".charCodeAt(0):10+(r.charCodeAt(h)-"A".charCodeAt(0));var c=nt*(n.ig.intDivide(u,i)+1),e=new Array(c+10),f=new Array(c+10);for(k=0;k<f.length;k++)f[k]=0;for(d=0;d<e.length;d++)e[d]=0;for(e[0]=1,g=0;g<nt;g++){for(o=0;o<c;o++){f[o]+=e[o]*ut[g];l=f[o];a=o;do tt=n.ig.intDivide(l,i),f[a]=l-tt*i,a++,f[a]+=tt,l=f[a];while(l>=i)}for(v=0;v<c;v++)e[v]=e[v]*u;for(y=0;y<c;y++){p=e[y];w=y;do it=n.ig.intDivide(p,i),e[w]=p-it*i,w++,e[w]+=it,p=e[w];while(p>=i)}}for(b=new t.al,rt=!1,s=c;s>=0;s--)f[s]!=0&&(rt=!0),rt&&(f[s]<10?b.c(String.fromCharCode(f[s]+"0".charCodeAt(0))):b.c(String.fromCharCode(f[s]+"A".charCodeAt(0)-10)));return String.isNullOrEmpty(b.b())?"0":b.b()},o:function(n,t){for(var i=1;t>0;)i*=n,t--;return i},p:function(n){for(var t=0,i=0;i<16;i++)t<<=1,t|=n&1,n>>=1;return t},m:function(t){return n.ig.Number.prototype.parseInt(t,16)},t:function(n){return t.$a.s(16,n,10)},u:function(n){return t.$a.s(10,n,16)},w:function(t,i){var r,u,f;if(i==0||String.isNullOrEmpty(t))return String.empty();if(r=i.toString().length,t.length<r||t.length==r&&n.ig.Number.prototype.parseInt(t)<i)return t;do if(f=n.ig.Number.prototype.parseInt(t.substr(0,r)),n.ig.intDivide(f,i)>0?u=t.substr(r):(f=n.ig.Number.prototype.parseInt(t.substr(0,r+1)),u=t.substr(r+1)),t=(f%i).toString()+u,t.length<=r&&n.ig.Number.prototype.parseInt(t)<i)return t;while(!String.isNullOrEmpty(u));return u},v:function(i,r){var u,e,s,f,o,c,l,a,h,v,y;if(r==0||String.isNullOrEmpty(i))return String.empty();if(u=r.toString().length,i.length<u||i.length==u&&n.ig.Number.prototype.parseInt(i)<r)return"0";e=new t.al;f=0;do{if(o=n.ig.Number.prototype.parseInt(i.substr(0,u)),n.ig.intDivide(o,r)>0){if(s=i.substr(u),f>1)for(c=1;c<f;c++)e.d("0")}else if(f>0){for(l=0;l<f;l++)e.d("0");a=u+f>i.length?i.length:u+f;o=n.ig.Number.prototype.parseInt(i.substr(0,a));s=i.substr(a)}else o=n.ig.Number.prototype.parseInt(i.substr(0,u+1)),s=i.substr(u+1);if(e.d(n.ig.intDivide(o,r).toString()),h=o%r,f=h.toString().length==u?0:u-h.toString().length,i=h.toString()+s,i.length<=u&&n.ig.Number.prototype.parseInt(i)<r){if(v=i.length+f-u,v>0)for(y=0;y<v;y++)e.d("0");break}}while(!String.isNullOrEmpty(s));return e.b()},b:function(n,t){var i,u,r;if(String.isNullOrEmpty(n)||String.isNullOrEmpty(t))return!1;for(i=0;i<n.length;i++){for(u=!1,r=0;r<t.length;r++)if(n.charAt(i).equals(t.charAt(r))){u=!0;break}if(!u)return!1}return!0},a:function(n,t,i){for(var e,f,u,o,r=0;r<n.length;r++){for(e=n[r],f=!1,u=0;u<i.getBytes1(t).length;u++)if(o=i.getBytes1(t)[u],e.equals(o)){f=!0;break}if(!f)return!1}return!0},c:function(n,i){return String.isNullOrEmpty(n)||n.length!=i?!1:t.$a.b(n,"0123456789")},n:function(n,i){var u=0,r=i;if(i<n.length)while(t.$m.isDigit(n.charAt(r))&&r<n.length)if(u++,r++,r==n.length)break;return u},$type:new n.ig.Type("BarcodeAlgorithm",n.ig.$ot)},!0);n.ig.util.defType("BarcodeEncodedAlgorithm:ar","BarcodeAlgorithm",{_y:null,y:function(n){return arguments.length===1?(this._y=n,n):this._y},init:function(n){t.$a.init.call(this);this.y(n)},z:function(){return null},aa:function(n){var i=t.$e3.x(n),r=i.getBytes2;if(!r)throw new t.ak(1,t.$ex.a("notLoadedEncoding").replace("{0}",t.$e3.w.item(n)));return i},$type:new n.ig.Type("BarcodeEncodedAlgorithm",t.$a.$type)},!0);n.ig.util.defType("Bch:f2","Object",{init:function(){n.ig.$op.init.call(this)},a:function(n,i){var r=t.$f2.b(i);for(n<<=r-1;t.$f2.b(n)>=r;)n^=i<<t.$f2.b(n)-r;return n},b:function(n){for(var t=n,i=0;t!=0;)t>>=1,i++;return i},$type:new n.ig.Type("Bch",n.ig.$ot)},!0);n.ig.util.defType("GfArithmetics:f3","Object",{init:function(t){n.ig.$op.init.call(this);this.l(t)},c:null,a:null,_l:0,l:function(n){return arguments.length===1?(this._l=n,n):this._l},q:function(n){this.c=new Array(this.l());this.a=new Array(this.l());this.c[0]=1-this.l();this.a[0]=1;for(var t=1;t<this.l();t++)this.a[t]=this.a[t-1]*2,this.a[t]>=this.l()&&(this.a[t]^=n),this.c[this.a[t]]=t},p:function(n,t){return n^t},g:function(i,r){var e=i,u=r,h,o,s,f;for(e.length>u.length&&(h=e,e=u,u=h),o=new Array(u.length),s=u.length-e.length,n.ig.Array.prototype.copy(u,0,o,0,s),f=s;f<u.length;f++)o[f]=t.$f3.p(e[f-s],u[f]);return t.$f3.f(o)},h:function(n,t){return n^t},b:function(i,r){var f,e,u;i.length>r.length?(f=new Array(i.length),n.ig.Array.prototype.copy(i,0,f,0,i.length),e=new Array(r.length),n.ig.Array.prototype.copy(r,0,e,0,r.length)):(f=new Array(r.length),n.ig.Array.prototype.copy(r,0,f,0,r.length),e=new Array(i.length),n.ig.Array.prototype.copy(i,0,e,0,i.length));var o=f.length,h=e.length,s=new Array(o);for(u=0;u<o;u++)s[u]=u<h?t.$f3.h(f[u],e[u]):f[u];return s},i:function(n,i){return t.$f3.p(n,i)},n:function(n,t){return n==0||t==0?0:this.a[(this.c[n]+this.c[t])%(this.l()-1)]},d:function(n,i){var s=this,r,u;if(n.length<1||i.length<1)return null;if(n.length==1&&n[0]==0||i.length==1&&i[0]==0)return function(){var n=[];return n.add(0),n}();var e=n.length,o=i.length,f=new Array(e+o-1);for(r=0;r<e;r++)for(u=0;u<o;u++)f[r+u]=t.$f3.p(f[r+u],s.n(n[r],i[u]));return f},e:function(n,t){var f=this,r,u,i;if(t==0)return function(){var n=[];return n.add(0),n}();if(t==1)return n;for(r=n.length,u=new Array(r),i=0;i<r;i++)u[i]=f.n(n[i],t);return u},o:function(n,t){return t==0?1-this.l():n==0?0:this.a[(this.c[n]-this.c[t]+(this.l()-1))%(this.l()-1)]},m:function(n){if(n==0)throw new t.ak(0);return this.a[255-this.c[n]]},j:function(n){if(this.a.length<n||n<0)throw new t.e0(0,"Invalid index!");return this.a[n]},k:function(n){if(this.c.length<n||n<0)throw new t.e0(0,"Invalid index!");return this.c[n]},f:function(t){var f=this,r=t,u=t.length-1,i;if(u>0&&t[0]==0){for(i=1;i<=u&&t[i]==0;)i++;i==u+1?r=function(){var n=[];return n.add(0),n}():(r=new Array(u+1-i),n.ig.Array.prototype.copy(t,i,r,0,r.length))}return r},$type:new n.ig.Type("GfArithmetics",n.ig.$ot)},!0);n.ig.util.defType("Gf256:f4","GfArithmetics",{init:function(n){t.$f3.init.call(this,256);this.q(n)},t:function(n,i){var e,r,u,f;if(n.length==0)return 0;if(i==0)return n[0];if(e=n.length-1,r=0,i==1){for(u=0;u<=e;u++)r=t.$f3.p(r,n[u]);return r}for(r=n[0],f=1;f<=e;f++)r=t.$f3.p(this.n(i,r),n[f]);return r},s:function(n,t,i){var e=this,u,f,r;if(t<0)return null;if(i==0)return function(){var n=[];return n.add(0),n}();for(u=n.length,f=new Array(u+t),r=0;r<u;r++)f[r]=e.n(n[r],i);return f},r:function(n,t){var r=this,i;return n<0?null:t==0?function(){var n=[];return n.add(0),n}():(i=new Array(n+1),i[0]=t,i)},$type:new n.ig.Type("Gf256",t.$f3.$type)},!0);n.ig.util.defType("ReedSolomon:f5","Object",{init:function(){n.ig.$op.init.call(this)},a:function(n,i,r,u,f){var e,s,o;if(n.length<i+r)throw new t.e0(0,t.$ex.a("EncodingError"));for(e=i;e<i+r;e++)n[e]=0;for(e=0;e<i;e++){for(s=t.$f3.p(n[i],n[e]),o=0;o<r;o++)n[i+o]=t.$f3.p(n[i+o+1],f.n(s,u[o]));n[i+r-1]=f.n(s,u[r-1])}},$type:new n.ig.Type("ReedSolomon",n.ig.$ot)},!0);n.ig.util.defType("QRReedSolomon:f6","ReedSolomon",{b:null,init:function(){t.$f5.init.call(this);this.b=new t.f4(285)},g:function(i,r,u,f,e){var b=t.$f6.i(r),y,o,k,d,p,w,g,v,a;if(b==null)return null;for(var c=0,s=0,l=function(){for(var t=new Array($firstRank=u.length),i=t,n=0;n<$firstRank;n++)i[n]=[];return t}(),h=0;h<u.length;)l[h]=new Array((u[h]&255)-r),h++;for(h=0;h<f;)l[s][c]=i[h],c++,c>=(u[s]&255)-r&&(c=0,s++),h++;for(s=0,y=function(){for(var t=new Array($firstRank=u.length),i=t,n=0;n<$firstRank;n++)i[n]=[];return t}();s<u.length;){for(o=new Array(l[s].length),n.ig.Array.prototype.copy(l[s],0,o,0,l[s].length),k=u[s]&255,d=k-r,c=d;c>0;)p=o[0],p!=0?(w=new Array(o.length-1),n.ig.Array.prototype.copy(o,1,w,0,o.length-1),g=b[p&255],o=t.$f3.b(w,g)):r<o.length?(v=new Array(o.length-1),n.ig.Array.prototype.copy(o,1,v,0,o.length-1),o=new Array(v.length),n.ig.Array.prototype.copy(v,0,o,0,v.length)):(a=new Array(r),n.ig.Array.prototype.copy(o,1,a,0,o.length-1),a[r-1]=0,o=new Array(a.length),n.ig.Array.prototype.copy(a,0,o,0,a.length)),c--;y[s]=o;s++}return t.$f6.c(l,y,u,f,e)},d:function(n,t,i,r){var f=function(){for(var i=new Array($firstRank=t.length),r=i,n=0;n<$firstRank;n++)r[n]=[];return i}(),o,p,u,e,l,a,v,y,s,h,c,w;for(r=new Array(t.length),o=0;o<t.length;o++)f[o]=new Array(t[o]);for(p=t[0],u=t.length;u>0&&t[u-1]!=p;)u--;for(e=p-i,l=0,a=0;a<e;a++)for(v=0;v<t.length;v++)f[v][a]=n[l++];for(y=0;y<u;y++)r[y]=e;for(s=u;s<t.length;s++)f[s][e]=n[l++],r[s]=e+1;for(h=e;h<f[0].length;h++)for(c=0;c<t.length;c++)w=c<u?h:h+1,f[c][w]=n[l++];return{ret:f,dataCodewordsPerBlock:r}},j:function(n,i){for(var y,r,l,a,f,u,o,s=new Array(i),v=!1,h=new Array(n.length),w=0,c=0;c<n.length;c++)y=n[c],h[w++]=y;for(r=0;r<i;r++)l=this.b.t(h,this.b.j(r)),s[s.length-1-r]=l,l!=0&&(v=!0);if(v==!1)return!0;if((a=t.$f4.r(i,1),a==null)||(f=this.h(a,s,i),f==null))return!1;var b=f[0],k=f[1],e=this.e(b),p=this.f(k,e);if(e==null||p==null)return!1;for(u=0;u<e.length;u++){if(o=n.length-1-this.b.k(e[u]),o<0)return!1;n[o]=t.$f3.i(h[o],p[u])}return!0},f:function(n,i){for(var o,f,u,e=i.length,s=new Array(e),r=0;r<e;r++){for(o=this.b.m(i[r]),f=1,u=0;u<e;u++)r!=u&&(f=this.b.n(f,t.$f3.p(1,this.b.n(i[u],o))));s[r]=this.b.n(this.b.t(n,o),this.b.m(f))}return s},e:function(n){var f=this,r=n.length-1,u,t,i;if(r==1)return function(){var t=[];return t.add(n[0]),t}();for(u=new Array(r),t=0,i=1;i<256&&t<r;i++)f.b.t(n,i)==0&&(u[t]=f.b.m(i),t++);return t!=r?null:u},h:function(i,r,u){var e=this,c=i,l=r,b,y,p,w;l.length>c.length&&(b=l,l=c,c=b);for(var o=c,f=l,a=function(){var n=[];return n.add(1),n}(),k=function(){var n=[];return n.add(0),n}(),v=function(){var n=[];return n.add(0),n}(),s=function(){var n=[];return n.add(1),n}();f.length>n.ig.intDivide(u,2);){var g=o,nt=a,tt=v;if(o=f,a=k,v=s,o.length==1&&o[0]==0)return null;f=g;for(var h=function(){var n=[];return n.add(0),n}(),it=o[0],rt=e.b.m(it);f.length>=o.length&&!(f.length==0&&f[0]==0);)if(y=f.length-o.length,p=e.b.n(f[0],rt),h=t.$f3.g(h,t.$f4.r(y,p)),f=t.$f3.g(f,e.b.s(o,y,p)),f==null||h==null)return null;k=t.$f3.g(e.b.d(h,a),nt);s=t.$f3.g(e.b.d(h,v),tt)}if(w=s[s.length-1],w==0)return null;var d=e.b.m(w),ut=e.b.e(s,d),ft=e.b.e(f,d);return function(){var n=[];return n.add(ut),n.add(ft),n}()},i:function(n){for(var r=function(){for(var t=new Array($firstRank=256),i=t,n=0;n<$firstRank;n++)i[n]=[];return t}(),i=0;i<256;i++)r[i]=new Array(n);return t.$f7.b("RSP"+n)},c:function(n,t,i,r,u){for(var o=0,e=0,s=new Array(u),f=0;o<r;){for(f=0;f<i.length;f++)n[f].length>e&&(s[o]=n[f][e],o++);e++}for(e=0;o<u;){for(f=0;f<i.length;f++)t[f].length>e&&(s[o]=t[f][e],o++);e++}return s},$type:new n.ig.Type("QRReedSolomon",t.$f5.$type)},!0);n.ig.util.defType("Gs1Helper:f8","Object",{staticInit:function(){var i;for(t.$f8.b=new t.x(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),t.$f8.b.item(0,20),t.$f8.b.item(1,16),t.$f8.b.item(2,16),t.$f8.b.item(10,-1),t.$f8.b.item(11,8),t.$f8.b.item(12,8),t.$f8.b.item(13,8),t.$f8.b.item(15,8),t.$f8.b.item(17,8),t.$f8.b.item(20,4),t.$f8.b.item(21,-1),t.$f8.b.item(22,-1),t.$f8.b.item(240,-1),t.$f8.b.item(241,-1),t.$f8.b.item(242,-1),t.$f8.b.item(250,-1),t.$f8.b.item(251,-1),t.$f8.b.item(253,-1),t.$f8.b.item(254,-1),t.$f8.b.item(30,-1),i=3100;i<3170;++i)t.$f8.b.item(i,10);for(i=3200;i<3380;++i)t.$f8.b.item(i,10);for(i=3400;i<3580;++i)t.$f8.b.item(i,10);for(i=3600;i<3700;++i)t.$f8.b.item(i,10);for(t.$f8.b.item(37,-1),i=3900;i<3940;++i)t.$f8.b.item(i,-1);for(t.$f8.b.item(400,-1),t.$f8.b.item(401,-1),t.$f8.b.item(402,-1),t.$f8.b.item(403,-1),i=410;i<416;++i)t.$f8.b.item(i,16);for(i=420;i<427;i++)t.$f8.b.item(i,-1);for(t.$f8.b.item(7001,-1),t.$f8.b.item(7002,-1),t.$f8.b.item(7003,-1),i=7030;i<7040;i++)t.$f8.b.item(i,-1);for(i=8001;i<8009;i++)t.$f8.b.item(i,-1);for(t.$f8.b.item(8018,-1),t.$f8.b.item(8020,-1),t.$f8.b.item(8100,-1),t.$f8.b.item(8101,-1),t.$f8.b.item(8102,-1),i=90;i<100;++i)t.$f8.b.item(i,-1)},e:function(i,r){var u,o,f,e,h,s,c;if(String.isNullOrEmpty(i))return String.empty();if(i.startsWith("(")){for(u=0,o="";u>=0;){if((f=i.indexOf(")",u),f<0)||(e=i.substr(u+1,f-(u+1)),e.length<2||!t.$f8.a(e))||(h=n.ig.Number.prototype.parseInt(e),t.$f8.b.containsKey(h)==!1)||(s=t.$f8.b.item(h),s==0))return String.empty();if(u=i.indexOf("(",f),c=u<0?i.length:u,o+=e+i.substr(f+1,c-(f+1)),s<0)u>=0&&(o+=r);else if(c-f-1+e.length!=s)return String.empty()}return o}return String.empty()},a:function(n){for(var i=0;i<n.length;i++)if(t.$m.isDigit(n.charAt(i))==!1)return!1;return!0},d:function(n){var r,u,f,t,e,i;if(String.isNullOrEmpty(n))return String.empty();for(r=0,n.length%2!=0?(u=3,f=1):(u=1,f=3),t=0;t<n.length;t++)e=n.charAt(t)-"0",r+=t%2==0?u*e:f*e;for(i=0;(r+i)%10!=0;)i++;return i.toString()},$type:new n.ig.Type("Gs1Helper",n.ig.$ot)},!0);n.ig.util.defType("MeasureHelper:f9","Object",{init:function(){n.ig.$op.init.call(this)},g:function(){return 96},h:function(){return 96},d:function(n){var i=t.$f9.g();return t.$f9.a(n*i)},f:function(n){var i=t.$f9.h();return t.$f9.a(n*i)},c:function(n){return t.$f9.b(n/t.$f9.g())},e:function(n){return t.$f9.b(n/t.$f9.h())},a:function(n){return n/25.4},b:function(n){return n*25.4},$type:new n.ig.Type("MeasureHelper",n.ig.$ot)},!0);n.ig.util.defType("QRCodeAlgorithm:ga","Object",{staticInit:function(){var u=this,n,i,r;for(t.$ga.i=function(){var n=[];return n.add(function(){var n=[];return n.add(5596),n.add(7089),n.add(3057),n.add(3993),n}()),n.add(function(){var n=[];return n.add(3391),n.add(4296),n.add(1852),n.add(2420),n}()),n.add(function(){var n=[];return n.add(2331),n.add(2953),n.add(1273),n.add(1663),n}()),n.add(function(){var n=[];return n.add(1435),n.add(1817),n.add(784),n.add(1024),n}()),n}(),t.$ga.f=function(){var n=[];return n.add(function(){var n=[];return n.add(1),n.add(1),n.add(1),n.add(1),n.add(1),n.add(1),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(0),n.add(1),n.add(1),n.add(1),n.add(0),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(0),n.add(1),n.add(1),n.add(1),n.add(0),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(0),n.add(1),n.add(1),n.add(1),n.add(0),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(1),n.add(1),n.add(1),n.add(1),n.add(1),n.add(1),n}()),n}(),t.$ga.a=function(){var n=[];return n.add(function(){var n=[];return n.add(1),n.add(1),n.add(1),n.add(1),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(0),n.add(0),n.add(0),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(0),n.add(1),n.add(0),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(0),n.add(0),n.add(0),n.add(1),n}()),n.add(function(){var n=[];return n.add(1),n.add(1),n.add(1),n.add(1),n.add(1),n}()),n}(),t.$ga.h=function(){var n=[];return n.add(function(){var n=[];return n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n}()),n}(),t.$ga.k=function(){var n=[];return n.add(function(){var n=[];return n.add(0),n}()),n.add(function(){var n=[];return n.add(0),n}()),n.add(function(){var n=[];return n.add(0),n}()),n.add(function(){var n=[];return n.add(0),n}()),n.add(function(){var n=[];return n.add(0),n}()),n.add(function(){var n=[];return n.add(0),n}()),n.add(function(){var n=[];return n.add(0),n}()),n}(),t.$ga.b=function(){var n=[];return n.add(new Array(0)),n.add(function(){var n=[];return n.add(6),n.add(18),n}()),n.add(function(){var n=[];return n.add(6),n.add(22),n}()),n.add(function(){var n=[];return n.add(6),n.add(26),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n}()),n.add(function(){var n=[];return n.add(6),n.add(34),n}()),n.add(function(){var n=[];return n.add(6),n.add(22),n.add(38),n}()),n.add(function(){var n=[];return n.add(6),n.add(24),n.add(42),n}()),n.add(function(){var n=[];return n.add(6),n.add(26),n.add(46),n}()),n.add(function(){var n=[];return n.add(6),n.add(28),n.add(50),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(54),n}()),n.add(function(){var n=[];return n.add(6),n.add(32),n.add(58),n}()),n.add(function(){var n=[];return n.add(6),n.add(34),n.add(62),n}()),n.add(function(){var n=[];return n.add(6),n.add(26),n.add(46),n.add(66),n}()),n.add(function(){var n=[];return n.add(6),n.add(26),n.add(48),n.add(70),n}()),n.add(function(){var n=[];return n.add(6),n.add(26),n.add(50),n.add(74),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(54),n.add(78),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(56),n.add(82),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(58),n.add(86),n}()),n.add(function(){var n=[];return n.add(6),n.add(34),n.add(62),n.add(90),n}()),n.add(function(){var n=[];return n.add(6),n.add(28),n.add(50),n.add(72),n.add(94),n}()),n.add(function(){var n=[];return n.add(6),n.add(26),n.add(50),n.add(74),n.add(98),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(54),n.add(78),n.add(102),n}()),n.add(function(){var n=[];return n.add(6),n.add(28),n.add(54),n.add(80),n.add(106),n}()),n.add(function(){var n=[];return n.add(6),n.add(32),n.add(58),n.add(84),n.add(110),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(58),n.add(86),n.add(114),n}()),n.add(function(){var n=[];return n.add(6),n.add(34),n.add(62),n.add(90),n.add(118),n}()),n.add(function(){var n=[];return n.add(6),n.add(26),n.add(50),n.add(74),n.add(98),n.add(122),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(54),n.add(78),n.add(102),n.add(126),n}()),n.add(function(){var n=[];return n.add(6),n.add(26),n.add(52),n.add(78),n.add(104),n.add(130),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(56),n.add(82),n.add(108),n.add(134),n}()),n.add(function(){var n=[];return n.add(6),n.add(34),n.add(60),n.add(86),n.add(112),n.add(138),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(58),n.add(86),n.add(114),n.add(142),n}()),n.add(function(){var n=[];return n.add(6),n.add(34),n.add(62),n.add(90),n.add(118),n.add(146),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(54),n.add(78),n.add(102),n.add(126),n.add(150),n}()),n.add(function(){var n=[];return n.add(6),n.add(24),n.add(50),n.add(76),n.add(102),n.add(128),n.add(154),n}()),n.add(function(){var n=[];return n.add(6),n.add(28),n.add(54),n.add(80),n.add(106),n.add(132),n.add(158),n}()),n.add(function(){var n=[];return n.add(6),n.add(32),n.add(58),n.add(84),n.add(110),n.add(136),n.add(162),n}()),n.add(function(){var n=[];return n.add(6),n.add(26),n.add(54),n.add(82),n.add(110),n.add(138),n.add(166),n}()),n.add(function(){var n=[];return n.add(6),n.add(30),n.add(58),n.add(86),n.add(114),n.add(142),n.add(170),n}()),n}(),t.$ga.g=function(){var n=[];return n.add(function(){var n=[];return n.add(8),n.add(0),n}()),n.add(function(){var n=[];return n.add(8),n.add(1),n}()),n.add(function(){var n=[];return n.add(8),n.add(2),n}()),n.add(function(){var n=[];return n.add(8),n.add(3),n}()),n.add(function(){var n=[];return n.add(8),n.add(4),n}()),n.add(function(){var n=[];return n.add(8),n.add(5),n}()),n.add(function(){var n=[];return n.add(8),n.add(7),n}()),n.add(function(){var n=[];return n.add(8),n.add(8),n}()),n.add(function(){var n=[];return n.add(7),n.add(8),n}()),n.add(function(){var n=[];return n.add(5),n.add(8),n}()),n.add(function(){var n=[];return n.add(4),n.add(8),n}()),n.add(function(){var n=[];return n.add(3),n.add(8),n}()),n.add(function(){var n=[];return n.add(2),n.add(8),n}()),n.add(function(){var n=[];return n.add(1),n.add(8),n}()),n.add(function(){var n=[];return n.add(0),n.add(8),n}()),n}(),n=new t.al,i=57408;i<=60351;i++)n.c(String.fromCharCode(i));for(r=33088;r<=40956;r++)n.c(String.fromCharCode(r));t.$ga.ac=t.$a.r+n.b();t.$ga.c=function(){var n=[];return n.add(function(){var n=[];return n.add(10),n.add(12),n.add(14),n}()),n.add(function(){var n=[];return n.add(9),n.add(11),n.add(13),n}()),n.add(function(){var n=[];return n.add(8),n.add(16),n.add(16),n}()),n.add(function(){var n=[];return n.add(8),n.add(10),n.add(12),n}()),n}();t.$ga.d=function(){var n=[];return n.add(function(){var n=[];return n.add(0),n.add(128),n.add(224),n.add(352),n.add(512),n.add(688),n.add(864),n.add(992),n.add(1232),n.add(1456),n.add(1728),n.add(2032),n.add(2320),n.add(2672),n.add(2920),n.add(3320),n.add(3624),n.add(4056),n.add(4504),n.add(5016),n.add(5352),n.add(5712),n.add(6256),n.add(6880),n.add(7312),n.add(8e3),n.add(8496),n.add(9024),n.add(9544),n.add(10136),n.add(10984),n.add(11640),n.add(12328),n.add(13048),n.add(13800),n.add(14496),n.add(15312),n.add(15936),n.add(16816),n.add(17728),n.add(18672),n}()),n.add(function(){var n=[];return n.add(0),n.add(152),n.add(272),n.add(440),n.add(640),n.add(864),n.add(1088),n.add(1248),n.add(1552),n.add(1856),n.add(2192),n.add(2592),n.add(2960),n.add(3424),n.add(3688),n.add(4184),n.add(4712),n.add(5176),n.add(5768),n.add(6360),n.add(6888),n.add(7456),n.add(8048),n.add(8752),n.add(9392),n.add(10208),n.add(10960),n.add(11744),n.add(12248),n.add(13048),n.add(13880),n.add(14744),n.add(15640),n.add(16568),n.add(17528),n.add(18448),n.add(19472),n.add(20528),n.add(21616),n.add(22496),n.add(23648),n}()),n.add(function(){var n=[];return n.add(0),n.add(72),n.add(128),n.add(208),n.add(288),n.add(368),n.add(480),n.add(528),n.add(688),n.add(800),n.add(976),n.add(1120),n.add(1264),n.add(1440),n.add(1576),n.add(1784),n.add(2024),n.add(2264),n.add(2504),n.add(2728),n.add(3080),n.add(3248),n.add(3536),n.add(3712),n.add(4112),n.add(4304),n.add(4768),n.add(5024),n.add(5288),n.add(5608),n.add(5960),n.add(6344),n.add(6760),n.add(7208),n.add(7688),n.add(7888),n.add(8432),n.add(8768),n.add(9136),n.add(9776),n.add(10208),n}()),n.add(function(){var n=[];return n.add(0),n.add(104),n.add(176),n.add(272),n.add(384),n.add(496),n.add(608),n.add(704),n.add(880),n.add(1056),n.add(1232),n.add(1440),n.add(1648),n.add(1952),n.add(2088),n.add(2360),n.add(2600),n.add(2936),n.add(3176),n.add(3560),n.add(3880),n.add(4096),n.add(4544),n.add(4912),n.add(5312),n.add(5744),n.add(6032),n.add(6464),n.add(6968),n.add(7288),n.add(7880),n.add(8264),n.add(8920),n.add(9368),n.add(9848),n.add(10288),n.add(10832),n.add(11408),n.add(12016),n.add(12656),n.add(13328),n}()),n}();t.$ga.e=function(){var n=[];return n.add(0),n.add(26),n.add(44),n.add(70),n.add(100),n.add(134),n.add(172),n.add(196),n.add(242),n.add(292),n.add(346),n.add(404),n.add(466),n.add(532),n.add(581),n.add(655),n.add(733),n.add(815),n.add(901),n.add(991),n.add(1085),n.add(1156),n.add(1258),n.add(1364),n.add(1474),n.add(1588),n.add(1706),n.add(1828),n.add(1921),n.add(2051),n.add(2185),n.add(2323),n.add(2465),n.add(2611),n.add(2761),n.add(2876),n.add(3034),n.add(3196),n.add(3362),n.add(3532),n.add(3706),n}();t.$ga.j=function(){var n=[];return n.add(0),n.add(0),n.add(7),n.add(7),n.add(7),n.add(7),n.add(7),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n.add(3),n.add(3),n.add(3),n.add(3),n.add(3),n.add(3),n.add(3),n.add(4),n.add(4),n.add(4),n.add(4),n.add(4),n.add(4),n.add(4),n.add(3),n.add(3),n.add(3),n.add(3),n.add(3),n.add(3),n.add(3),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n.add(0),n}()},$type:new n.ig.Type("QRCodeAlgorithm",n.ig.$ot)},!0);n.ig.util.defType("QRMask:gb","Object",{init:function(){n.ig.$op.init.call(this)},a:function(t,i,r){var u,f;switch(t){case 0:u=i+r&1;break;case 1:u=i&1;break;case 2:u=r%3;break;case 3:u=(i+r)%3;break;case 4:u=(i>>1)+n.ig.intDivide(r,3)&1;break;case 5:f=i*r;u=(f&1)+f%3;break;case 6:f=i*r;u=(f&1)+f%3&1;break;default:f=i*r;u=f%3+(i+r&1)&1}return u==0},g:function(n){return t.$gb.c(n)+t.$gb.d(n)+t.$gb.e(n)+t.$gb.f(n)},f:function(n){for(var i,u,f,r=0,t=0;t<n.length;t++)for(i=0;i<n[t].length;i++)n[t][i]==1&&(r+=1);return u=2*n.length,f=r/u,Math.floor(Math.abs((f*100-50)/5))*10},e:function(n){for(var i,r=0,t=0;t<n.length;t++)for(i=0;i<n[t].length;i++)i+6<n.length&&n[t][i]==1&&n[t][i+1]==0&&n[t][i+2]==1&&n[t][i+3]==1&&n[t][i+4]==1&&n[t][i+5]==0&&n[t][i+6]==1&&(i+10<n.length&&n[t][i+7]==0&&n[t][i+8]==0&&n[t][i+9]==0&&n[t][i+10]==0||i-4>=0&&n[t][i-1]==0&&n[t][i-2]==0&&n[t][i-3]==0&&n[t][i-4]==0)&&(r+=40),t+6<n[t].length&&n[t][i]==1&&n[t+1][i]==0&&n[t+2][i]==1&&n[t+3][i]==1&&n[t+4][i]==1&&n[t+5][i]==0&&n[t+6][i]==1&&(t+10<n[t].length&&n[t+7][i]==0&&n[t+8][i]==0&&n[t+9][i]==0&&n[t+10][i]==0||t-4>=0&&n[t-1][i]==0&&n[t-2][i]==0&&n[t-3][i]==0&&n[t-4][i]==0)&&(r+=40);return r},d:function(n){for(var i,r,u=0,t=0;t<n.length-1;t++)for(i=0;i<n[t].length-1;i++)(r=n[t][i],r!=-2)&&r==n[t][i+1]&&r==n[t+1][i]&&r==n[t+1][i+1]&&(u+=3);return u},c:function(n){return t.$gb.b(n,!0)+t.$gb.b(n,!1)},b:function(n,t){for(var u,f,e=0,i=0,o=-1,s=5,r=0;r<n.length;r++){for(u=0;u<n[r].length;u++)(f=t?n[r][u]:n[u][r],f!=-2)&&(f==o?(i+=1,i==s?e+=3:i>s&&(e+=1)):(i=1,o=f));i=0}return e},$type:new n.ig.Type("QRMask",n.ig.$ot)},!0);n.ig.util.defType("BarcodeVisualData:e2","Object",{init:function(){n.ig.$op.init.call(this)},_viewport:null,viewport:function(n){return arguments.length===1?(this._viewport=n,n):this._viewport},$type:new n.ig.Type("BarcodeVisualData",n.ig.$ot)},!0);n.ig.util.defType("GridBarcodeVisualData:gc","BarcodeVisualData",{init:function(){t.$e2.init.call(this)},_figuresPath:null,figuresPath:function(n){return arguments.length===1?(this._figuresPath=n,n):this._figuresPath},_figuresPathRect:null,figuresPathRect:function(n){return arguments.length===1?(this._figuresPathRect=n,n):this._figuresPathRect},scaleByViewport:function(){this.figuresPath()!=null&&this.figuresPath().scaleByViewport(this.viewport());this.figuresPathRect()!=null&&this.figuresPathRect().scaleByViewport(this.viewport())},serialize:function(){var n=new t.al,i=!0;return n.f("{"),this.figuresPath()!=null&&(i?i=!1:n.d(", "),n.d("figuresPath: "),n.f(this.figuresPath().serialize())),this.figuresPathRect()!=null&&(i?i=!1:n.d(", "),n.d("figuresPathRect: "),n.f(this.figuresPathRect().serialize())),i?i=!1:n.d(", "),n.d("viewport: {"),n.d("left: "+this.viewport().left()+", top: "+this.viewport().top()+", width: "+this.viewport().width()+", height: "+this.viewport().height()),n.f("}"),n.f("}"),n.b()},$type:new n.ig.Type("GridBarcodeVisualData",t.$e2.$type)},!0);n.ig.util.defType("EncodingService:e3","Object",{staticInit:function(){t.$e3.w=new t.x(String,String,0);t.$e3.w.item("Cp437","CP437");t.$e3.w.item("iso-8859-1","ISO-8859-1");t.$e3.w.item("iso-8859-2","ISO-8859-2");t.$e3.w.item("iso-8859-3","ISO-8859-3");t.$e3.w.item("iso-8859-4","ISO-8859-4");t.$e3.w.item("iso-8859-5","ISO-8859-5");t.$e3.w.item("iso-8859-6","ISO-8859-6");t.$e3.w.item("iso-8859-7","ISO-8859-7");t.$e3.w.item("iso-8859-8","ISO-8859-8");t.$e3.w.item("iso-8859-9","ISO-8859-9");t.$e3.w.item("iso-8859-11","ISO-8859-11");t.$e3.w.item("iso-8859-13","ISO-8859-13");t.$e3.w.item("iso-8859-15","ISO-8859-15");t.$e3.w.item("shift_jis","Shift_JIS");t.$e3.w.item("windows-1250","Windows-1250");t.$e3.w.item("windows-1251","Windows-1251");t.$e3.w.item("windows-1252","Windows-1252");t.$e3.w.item("windows-1256","Windows-1256");t.$e3.w.item("ISO-10646-UCS-2","ISO-10646-UCS-2");t.$e3.w.item("UTF-8","UTF-8");t.$e3.w.item("ISO646-US","ISO646-US");t.$e3.w.item("Big5","Big5");t.$e3.w.item("gb2312","GB2312");t.$e3.w.item("KSC5601","KSC5601")},x:function(n){if(n=="UTF-8")return t.$an.uTF8();if(n=="ISO-10646-UCS-2")return t.$an.unicode();var i=null;switch(n){case"windows-1250":t.$e3.q==null&&(t.$e3.q=new t.e4);i=t.$e3.q;break;case"windows-1251":t.$e3.r==null&&(t.$e3.r=new t.e7);i=t.$e3.r;break;case"windows-1252":t.$e3.s==null&&(t.$e3.s=new t.e8);i=t.$e3.s;break;case"windows-1256":t.$e3.t==null&&(t.$e3.t=new t.e9);i=t.$e3.t;break;case"ISO646-US":t.$e3.p==null&&(t.$e3.p=new t.fa);i=t.$e3.p;break;case"Big5":t.$e3.a==null&&(t.$e3.a=new t.fb);i=t.$e3.a;break;case"gb2312":t.$e3.v==null&&(t.$e3.v=new t.ff);i=t.$e3.v;break;case"KSC5601":t.$e3.o==null&&(t.$e3.o=new t.fj);i=t.$e3.o;break;case"iso-8859-1":t.$e3.c==null&&(t.$e3.c=new t.fn);i=t.$e3.c;break;case"iso-8859-2":t.$e3.g==null&&(t.$e3.g=new t.fo);i=t.$e3.g;break;case"iso-8859-3":t.$e3.h==null&&(t.$e3.h=new t.fp);i=t.$e3.h;break;case"iso-8859-4":t.$e3.i==null&&(t.$e3.i=new t.fq);i=t.$e3.i;break;case"iso-8859-5":t.$e3.j==null&&(t.$e3.j=new t.fr);i=t.$e3.j;break;case"iso-8859-6":t.$e3.k==null&&(t.$e3.k=new t.fs);i=t.$e3.k;break;case"iso-8859-7":t.$e3.l==null&&(t.$e3.l=new t.ft);i=t.$e3.l;break;case"iso-8859-8":t.$e3.m==null&&(t.$e3.m=new t.fu);i=t.$e3.m;break;case"iso-8859-9":t.$e3.n==null&&(t.$e3.n=new t.fv);i=t.$e3.n;break;case"iso-8859-11":t.$e3.d==null&&(t.$e3.d=new t.fw);i=t.$e3.d;break;case"iso-8859-13":t.$e3.e==null&&(t.$e3.e=new t.fx);i=t.$e3.e;break;case"iso-8859-15":t.$e3.f==null&&(t.$e3.f=new t.fy);i=t.$e3.f;break;case"shift_jis":t.$e3.u==null&&(t.$e3.u=new t.fz);i=t.$e3.u;break;case"Cp437":t.$e3.b==null&&(t.$e3.b=new t.f1);i=t.$e3.b}return i},$type:new n.ig.Type("EncodingService",n.ig.$ot)},!0);n.ig.util.defType("Ecc10H:gz","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KysrKysrLCw=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc10H",n.ig.$ot)},!0);n.ig.util.defType("Ecc10L:g0","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["VlZXVw==","Eg=="]},_resource:null,$type:new n.ig.Type("Ecc10L",n.ig.$ot)},!0);n.ig.util.defType("Ecc10M:g1","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["RUVFRUY=","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc10M",n.ig.$ot)},!0);n.ig.util.defType("Ecc10Q:g2","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KysrKysrLCw=","GA=="]},_resource:null,$type:new n.ig.Type("Ecc10Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc11H:g3","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["JCQkJSUlJSUlJSU=","GA=="]},_resource:null,$type:new n.ig.Type("Ecc11H",n.ig.$ot)},!0);n.ig.util.defType("Ecc11L:g4","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["ZWVlZQ==","FA=="]},_resource:null,$type:new n.ig.Type("Ecc11L",n.ig.$ot)},!0);n.ig.util.defType("Ecc11M:g5","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["UFFRUVE=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc11M",n.ig.$ot)},!0);n.ig.util.defType("Ecc11Q:g6","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["MjIyMjMzMzM=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc11Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc12H:g7","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KioqKioqKisrKys=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc12H",n.ig.$ot)},!0);n.ig.util.defType("Ecc12L:g8","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["dHR1dQ==","GA=="]},_resource:null,$type:new n.ig.Type("Ecc12L",n.ig.$ot)},!0);n.ig.util.defType("Ecc12M:g9","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Ojo6Ojo6Ozs=","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc12M",n.ig.$ot)},!0);n.ig.util.defType("Ecc12Q:ha","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Li4uLi8vLy8vLw==","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc12Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc13H:hb","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["ISEhISEhISEhISEhIiIiIg==","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc13H",n.ig.$ot)},!0);n.ig.util.defType("Ecc13L:hc","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["hYWFhQ==","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc13L",n.ig.$ot)},!0);n.ig.util.defType("Ecc13M:hd","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Ozs7Ozs7Ozs8","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc13M",n.ig.$ot)},!0);n.ig.util.defType("Ecc13Q:he","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LCwsLCwsLCwtLS0t","GA=="]},_resource:null,$type:new n.ig.Type("Ecc13Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc14H:hf","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["JCQkJCQkJCQkJCQlJSUlJQ==","GA=="]},_resource:null,$type:new n.ig.Type("Ecc14H",n.ig.$ot)},!0);n.ig.util.defType("Ecc14L:hg","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["kZGRkg==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc14L",n.ig.$ot)},!0);n.ig.util.defType("Ecc14M:hh","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["QEBAQEFBQUFB","GA=="]},_resource:null,$type:new n.ig.Type("Ecc14M",n.ig.$ot)},!0);n.ig.util.defType("Ecc14Q:hi","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["JCQkJCQkJCQkJCQlJSUlJQ==","FA=="]},_resource:null,$type:new n.ig.Type("Ecc14Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc15H:hj","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["JCQkJCQkJCQkJCQlJSUlJSUl","GA=="]},_resource:null,$type:new n.ig.Type("Ecc15H",n.ig.$ot)},!0);n.ig.util.defType("Ecc15L:hk","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["bW1tbW1u","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc15L",n.ig.$ot)},!0);n.ig.util.defType("Ecc15M:hl","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["QUFBQUFCQkJCQg==","GA=="]},_resource:null,$type:new n.ig.Type("Ecc15M",n.ig.$ot)},!0);n.ig.util.defType("Ecc15Q:hm","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY3Nzc3Nzc3","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc15Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc16H:hn","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLi4uLi4uLi4uLi4uLg==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc16H",n.ig.$ot)},!0);n.ig.util.defType("Ecc16L:ho","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["enp6enp7","GA=="]},_resource:null,$type:new n.ig.Type("Ecc16L",n.ig.$ot)},!0);n.ig.util.defType("Ecc16M:hp","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SUlJSUlJSUpKSg==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc16M",n.ig.$ot)},!0);n.ig.util.defType("Ecc16Q:hq","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KysrKysrKysrKysrKysrLCw=","GA=="]},_resource:null,$type:new n.ig.Type("Ecc16Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc17H:hr","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KiorKysrKysrKysrKysrKysrKw==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc17H",n.ig.$ot)},!0);n.ig.util.defType("Ecc17L:hs","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["h4iIiIiI","HA=="]},_resource:null,$type:new n.ig.Type("Ecc17L",n.ig.$ot)},!0);n.ig.util.defType("Ecc17M:ht","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SkpKSkpKSkpKSks=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc17M",n.ig.$ot)},!0);n.ig.util.defType("Ecc17Q:hu","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["MjMzMzMzMzMzMzMzMzMzMw==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc17Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc18H:hv","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KiorKysrKysrKysrKysrKysrKysr","HA=="]},_resource:null,$type:new n.ig.Type("Ecc18H",n.ig.$ot)},!0);n.ig.util.defType("Ecc18L:hw","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["lpaWlpaX","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc18L",n.ig.$ot)},!0);n.ig.util.defType("Ecc18M:hx","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["RUVFRUVFRUVFRkZGRg==","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc18M",n.ig.$ot)},!0);n.ig.util.defType("Ecc18Q:hy","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["MjIyMjIyMjIyMjIyMjIyMjIz","HA=="]},_resource:null,$type:new n.ig.Type("Ecc18Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc19H:hz","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["JycnJycnJycnKCgoKCgoKCgoKCgoKCgoKA==","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc19H",n.ig.$ot)},!0);n.ig.util.defType("Ecc19L:h0","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["jY2Njo6Ojg==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc19L",n.ig.$ot)},!0);n.ig.util.defType("Ecc19M:h1","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["RkZGR0dHR0dHR0dHR0c=","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc19M",n.ig.$ot)},!0);n.ig.util.defType("Ecc19Q:h2","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Ly8vLy8vLy8vLy8vLy8vLy8wMDAw","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc19Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc1H:h3","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Gg==","EQ=="]},_resource:null,$type:new n.ig.Type("Ecc1H",n.ig.$ot)},!0);n.ig.util.defType("Ecc1L:h4","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Gg==","Bw=="]},_resource:null,$type:new n.ig.Type("Ecc1L",n.ig.$ot)},!0);n.ig.util.defType("Ecc1M:h5","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Gg==","Cg=="]},_resource:null,$type:new n.ig.Type("Ecc1M",n.ig.$ot)},!0);n.ig.util.defType("Ecc1Q:h6","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Gg==","DQ=="]},_resource:null,$type:new n.ig.Type("Ecc1Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc20H:h7","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KysrKysrKysrKysrKysrLCwsLCwsLCwsLA==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc20H",n.ig.$ot)},!0);n.ig.util.defType("Ecc20L:h8","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["h4eHiIiIiIg=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc20L",n.ig.$ot)},!0);n.ig.util.defType("Ecc20M:h9","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Q0NDRERERERERERERERERA==","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc20M",n.ig.$ot)},!0);n.ig.util.defType("Ecc20Q:ia","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc20Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc21H:ib","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Li4uLi4uLi4uLi4uLi4uLi4uLi8vLy8vLw==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc21H",n.ig.$ot)},!0);n.ig.util.defType("Ecc21L:ic","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["kJCQkJGRkZE=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc21L",n.ig.$ot)},!0);n.ig.util.defType("Ecc21M:id","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["REREREREREREREREREREREQ=","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc21M",n.ig.$ot)},!0);n.ig.util.defType("Ecc21Q:ie","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["MjIyMjIyMjIyMjIyMjIyMjIzMzMzMzM=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc21Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc22H:ig","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ==","GA=="]},_resource:null,$type:new n.ig.Type("Ecc22H",n.ig.$ot)},!0);n.ig.util.defType("Ecc22L:ih","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["i4uMjIyMjIyM","HA=="]},_resource:null,$type:new n.ig.Type("Ecc22L",n.ig.$ot)},!0);n.ig.util.defType("Ecc22M:ii","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SkpKSkpKSkpKSkpKSkpKSko=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc22M",n.ig.$ot)},!0);n.ig.util.defType("Ecc22Q:ij","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2Njc3Nzc3Nzc3Nzc3Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc22Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc23H:ik","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc23H",n.ig.$ot)},!0);n.ig.util.defType("Ecc23L:il","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["l5eXl5iYmJiY","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc23L",n.ig.$ot)},!0);n.ig.util.defType("Ecc23M:im","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["S0tLS0xMTExMTExMTExMTExM","HA=="]},_resource:null,$type:new n.ig.Type("Ecc23M",n.ig.$ot)},!0);n.ig.util.defType("Ecc23Q:io","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY3Nzc3Nzc3Nzc3Nzc3Nw==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc23Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc24H:ip","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Li4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLy8=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc24H",n.ig.$ot)},!0);n.ig.util.defType("Ecc24L:iq","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["k5OTk5OTlJSUlA==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc24L",n.ig.$ot)},!0);n.ig.util.defType("Ecc24M:ir","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SUlJSUlJSkpKSkpKSkpKSkpKSko=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc24M",n.ig.$ot)},!0);n.ig.util.defType("Ecc24Q:is","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY3Nzc3Nzc3Nzc3Nzc3Nzc3","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc24Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc25H:it","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS4uLi4uLi4uLi4uLi4=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc25H",n.ig.$ot)},!0);n.ig.util.defType("Ecc25L:iu","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["hISEhISEhISFhYWF","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc25L",n.ig.$ot)},!0);n.ig.util.defType("Ecc25M:iv","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["S0tLS0tLS0tMTExMTExMTExMTExM","HA=="]},_resource:null,$type:new n.ig.Type("Ecc25M",n.ig.$ot)},!0);n.ig.util.defType("Ecc25Q:iw","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2Njc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc25Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc26H:ix","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Li4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLy8vLw==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc26H",n.ig.$ot)},!0);n.ig.util.defType("Ecc26L:iy","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["jo6Ojo6Ojo6Ojo+P","HA=="]},_resource:null,$type:new n.ig.Type("Ecc26L",n.ig.$ot)},!0);n.ig.util.defType("Ecc26M:iz","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SkpKSkpKSkpKSkpKSkpKSkpKSktLS0s=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc26M",n.ig.$ot)},!0);n.ig.util.defType("Ecc26Q:i0","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjMzMzMzMw==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc26Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc27H:i1","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLg==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc27H",n.ig.$ot)},!0);n.ig.util.defType("Ecc27L:i2","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["mJiYmJiYmJiZmZmZ","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc27L",n.ig.$ot)},!0);n.ig.util.defType("Ecc27M:i3","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SUlJSUlJSUlJSUlJSUlJSUlJSUlJSUpKSg==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc27M",n.ig.$ot)},!0);n.ig.util.defType("Ecc27Q:i4","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NTU1NTU1NTU2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Ng==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc27Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc28H:i5","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc28H",n.ig.$ot)},!0);n.ig.util.defType("Ecc28L:i6","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["k5OTlJSUlJSUlJSUlA==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc28L",n.ig.$ot)},!0);n.ig.util.defType("Ecc28M:i7","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SUlJSkpKSkpKSkpKSkpKSkpKSkpKSkpKSko=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc28M",n.ig.$ot)},!0);n.ig.util.defType("Ecc28Q:i8","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2Njc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc28Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc29H:i9","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS0tLS4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc29H",n.ig.$ot)},!0);n.ig.util.defType("Ecc29L:ja","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["kpKSkpKSkpOTk5OTk5M=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc29L",n.ig.$ot)},!0);n.ig.util.defType("Ecc29M:jb","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SUlJSUlJSUlJSUlJSUlJSUlJSUlJSkpKSkpKSg==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc29M",n.ig.$ot)},!0);n.ig.util.defType("Ecc29Q:jc","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NTY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc29Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc2H:jd","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LA==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc2H",n.ig.$ot)},!0);n.ig.util.defType("Ecc2L:je","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LA==","Cg=="]},_resource:null,$type:new n.ig.Type("Ecc2L",n.ig.$ot)},!0);n.ig.util.defType("Ecc2M:jf","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LA==","EA=="]},_resource:null,$type:new n.ig.Type("Ecc2M",n.ig.$ot)},!0);n.ig.util.defType("Ecc2Q:jg","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LA==","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc2Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc30H:jh","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc30H",n.ig.$ot)},!0);n.ig.util.defType("Ecc30L:ji","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["kZGRkZGSkpKSkpKSkpKS","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc30L",n.ig.$ot)},!0);n.ig.util.defType("Ecc30M:jj","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["S0tLS0tLS0tLS0tLS0tLS0tLS0xMTExMTExMTEw=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc30M",n.ig.$ot)},!0);n.ig.util.defType("Ecc30Q:jk","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nw==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc30Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc31H:jl","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc31H",n.ig.$ot)},!0);n.ig.util.defType("Ecc31L:jm","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["kZGRkZGRkZGRkZGRkZKSkg==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc31L",n.ig.$ot)},!0);n.ig.util.defType("Ecc31M:jn","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SkpLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSw==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc31M",n.ig.$ot)},!0);n.ig.util.defType("Ecc31Q:jo","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Nw==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc31Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc32H:jp","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS0tLS4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc32H",n.ig.$ot)},!0);n.ig.util.defType("Ecc32L:jq","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["kZGRkZGRkZGRkZGRkZGRkZE=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc32L",n.ig.$ot)},!0);n.ig.util.defType("Ecc32M:jr","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SkpKSkpKSkpKSktLS0tLS0tLS0tLS0tLS0tLS0tLS0tL","HA=="]},_resource:null,$type:new n.ig.Type("Ecc32M",n.ig.$ot)},!0);n.ig.util.defType("Ecc32Q:js","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2Njc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc32Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc33H:jt","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc33H",n.ig.$ot)},!0);n.ig.util.defType("Ecc33L:ju","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["kZGRkZGRkZGRkZGRkZGRkZGS","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc33L",n.ig.$ot)},!0);n.ig.util.defType("Ecc33M:jv","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SkpKSkpKSkpKSkpKSkpLS0tLS0tLS0tLS0tLS0tLS0tLS0s=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc33M",n.ig.$ot)},!0);n.ig.util.defType("Ecc33Q:jw","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc33Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc34H:jx","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Li4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4v","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc34H",n.ig.$ot)},!0);n.ig.util.defType("Ecc34L:jy","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["kZGRkZGRkZGRkZGRkZKSkpKSkg==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc34L",n.ig.$ot)},!0);n.ig.util.defType("Ecc34M:jz","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SkpKSkpKSkpKSkpKSkpLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSw==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc34M",n.ig.$ot)},!0);n.ig.util.defType("Ecc34Q:j0","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY3Nzc3Nzc3","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc34Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc35H:j1","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc35H",n.ig.$ot)},!0);n.ig.util.defType("Ecc35L:j2","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["l5eXl5eXl5eXl5eXmJiYmJiYmA==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc35L",n.ig.$ot)},!0);n.ig.util.defType("Ecc35M:j3","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["S0tLS0tLS0tLS0tLTExMTExMTExMTExMTExMTExMTExMTExMTEw=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc35M",n.ig.$ot)},!0);n.ig.util.defType("Ecc35Q:j4","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Nzc3Nzc3Nzc3Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc35Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc36H:j5","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc36H",n.ig.$ot)},!0);n.ig.util.defType("Ecc36L:j6","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["l5eXl5eXmJiYmJiYmJiYmJiYmJg=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc36L",n.ig.$ot)},!0);n.ig.util.defType("Ecc36M:j7","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["S0tLS0tLTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTA==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc36M",n.ig.$ot)},!0);n.ig.util.defType("Ecc36Q:j8","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Njc3Nzc3Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc36Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc37H:j9","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLg==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc37H",n.ig.$ot)},!0);n.ig.util.defType("Ecc37L:ka","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["mJiYmJiYmJiYmJiYmJiYmJiZmZmZ","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc37L",n.ig.$ot)},!0);n.ig.util.defType("Ecc37M:kb","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpLS0tLS0tLS0tLS0tLSw==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc37M",n.ig.$ot)},!0);n.ig.util.defType("Ecc37Q:kc","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Njc3Nzc3Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc37Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc38H:kd","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc38H",n.ig.$ot)},!0);n.ig.util.defType("Ecc38L:ke","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["mJiYmJmZmZmZmZmZmZmZmZmZmZmZmQ==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc38L",n.ig.$ot)},!0);n.ig.util.defType("Ecc38M:kf","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["SkpKSkpKSkpKSkpKSktLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tL","HA=="]},_resource:null,$type:new n.ig.Type("Ecc38M",n.ig.$ot)},!0);n.ig.util.defType("Ecc38Q:kg","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Nzc3Nzc3Nzc3Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc38Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc39H:kh","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc39H",n.ig.$ot)},!0);n.ig.util.defType("Ecc39L:ki","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["k5OTk5OTk5OTk5OTk5OTk5OTk5OUlJSU","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc39L",n.ig.$ot)},!0);n.ig.util.defType("Ecc39M:kj","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["S0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0xMTExMTEw=","HA=="]},_resource:null,$type:new n.ig.Type("Ecc39M",n.ig.$ot)},!0);n.ig.util.defType("Ecc39Q:kk","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Njc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc39Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc3H:kl","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["IyM=","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc3H",n.ig.$ot)},!0);n.ig.util.defType("Ecc3L:km","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Rg==","Dw=="]},_resource:null,$type:new n.ig.Type("Ecc3L",n.ig.$ot)},!0);n.ig.util.defType("Ecc3M:kn","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Rg==","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc3M",n.ig.$ot)},!0);n.ig.util.defType("Ecc3Q:ko","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["IyM=","Eg=="]},_resource:null,$type:new n.ig.Type("Ecc3Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc40H:kp","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["LS0tLS0tLS0tLS0tLS0tLS0tLS0uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc40H",n.ig.$ot)},!0);n.ig.util.defType("Ecc40L:kq","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["lJSUlJSUlJSUlJSUlJSUlJSUlJWVlZWVlQ==","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc40L",n.ig.$ot)},!0);n.ig.util.defType("Ecc40M:kr","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["S0tLS0tLS0tLS0tLS0tLS0tLTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTA==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc40M",n.ig.$ot)},!0);n.ig.util.defType("Ecc40Q:ks","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Njc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc40Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc4H:kt","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["GRkZGQ==","EA=="]},_resource:null,$type:new n.ig.Type("Ecc4H",n.ig.$ot)},!0);n.ig.util.defType("Ecc4L:ku","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["ZA==","FA=="]},_resource:null,$type:new n.ig.Type("Ecc4L",n.ig.$ot)},!0);n.ig.util.defType("Ecc4M:kv","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["MjI=","Eg=="]},_resource:null,$type:new n.ig.Type("Ecc4M",n.ig.$ot)},!0);n.ig.util.defType("Ecc4Q:kw","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["MjI=","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc4Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc5H:kx","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["ISEiIg==","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc5H",n.ig.$ot)},!0);n.ig.util.defType("Ecc5L:ky","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["hg==","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc5L",n.ig.$ot)},!0);n.ig.util.defType("Ecc5M:kz","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Q0M=","GA=="]},_resource:null,$type:new n.ig.Type("Ecc5M",n.ig.$ot)},!0);n.ig.util.defType("Ecc5Q:k0","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["ISEiIg==","Eg=="]},_resource:null,$type:new n.ig.Type("Ecc5Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc6H:k1","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KysrKw==","HA=="]},_resource:null,$type:new n.ig.Type("Ecc6H",n.ig.$ot)},!0);n.ig.util.defType("Ecc6L:k2","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["VlY=","Eg=="]},_resource:null,$type:new n.ig.Type("Ecc6L",n.ig.$ot)},!0);n.ig.util.defType("Ecc6M:k3","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KysrKw==","EA=="]},_resource:null,$type:new n.ig.Type("Ecc6M",n.ig.$ot)},!0);n.ig.util.defType("Ecc6Q:k4","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KysrKw==","GA=="]},_resource:null,$type:new n.ig.Type("Ecc6Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc7H:k5","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["JycnJyg=","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc7H",n.ig.$ot)},!0);n.ig.util.defType("Ecc7L:k6","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["YmI=","FA=="]},_resource:null,$type:new n.ig.Type("Ecc7L",n.ig.$ot)},!0);n.ig.util.defType("Ecc7M:k7","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["MTExMQ==","Eg=="]},_resource:null,$type:new n.ig.Type("Ecc7M",n.ig.$ot)},!0);n.ig.util.defType("Ecc7Q:k8","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["ICAhISEh","Eg=="]},_resource:null,$type:new n.ig.Type("Ecc7Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc8H:k9","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KCgoKCkp","Gg=="]},_resource:null,$type:new n.ig.Type("Ecc8H",n.ig.$ot)},!0);n.ig.util.defType("Ecc8L:la","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["eXk=","GA=="]},_resource:null,$type:new n.ig.Type("Ecc8L",n.ig.$ot)},!0);n.ig.util.defType("Ecc8M:lb","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["PDw9PQ==","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc8M",n.ig.$ot)},!0);n.ig.util.defType("Ecc8Q:lc","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["KCgoKCkp","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc8Q",n.ig.$ot)},!0);n.ig.util.defType("Ecc9H:ld","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["JCQkJCUlJSU=","GA=="]},_resource:null,$type:new n.ig.Type("Ecc9H",n.ig.$ot)},!0);n.ig.util.defType("Ecc9L:le","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["kpI=","Hg=="]},_resource:null,$type:new n.ig.Type("Ecc9L",n.ig.$ot)},!0);n.ig.util.defType("Ecc9M:lf","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Ojo6Ozs=","Fg=="]},_resource:null,$type:new n.ig.Type("Ecc9M",n.ig.$ot)},!0);n.ig.util.defType("Ecc9Q:lg","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["JCQkJCUlJSU=","FA=="]},_resource:null,$type:new n.ig.Type("Ecc9Q",n.ig.$ot)},!0);n.ig.util.defType("RSP10:lh","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["2MKfb8deX3GdwQ==","2MKfb8deX3GdwQ==","rZkj3pO8vuInnw==","dVu8sVTi4ZO6Xg==","Ry9GoTtlYdlOIw==","n+3Zzvw7PqjT4g==","6rZlf6jZ3ztpvA==","MnT6EG+HgEr0fQ==","jl6MX3bKwq+cRg==","VpwTMLGUnd4Bhw==","I8evgeV2fE272Q==","+wUw7iIoIzwmGA==","yXHK/k2vo3bSZQ==","EbNVkYrx/AdPpA==","ZOjpIN4THZT1+g==","vCp2TxlNQuVoOw==","AbwFvuyJmUMljA==","2X6a0SvXxjK4TQ==","rCUmYH81J6ECEw==","dOe5D7hreNCf0g==","RpNDH9fs+Jprrw==","nlHccBCyp+v2bg==","6wpgwURQRnhMMA==","M8j/roMOGQnR8Q==","j+KJ4ZpDW+y5yg==","VyAWjl0dBJ0kCw==","InuqPwn/5Q6eVQ==","+rk1UM6hun8DlA==","yM3PQKEmOjX36Q==","EA9QL2Z4ZURqKA==","ZVTsnjKahNfQdg==","vZZz8fXE26ZNtw==","AmUKYcUPL4ZKBQ==","2qeVDgJRcPfXxA==","r/wpv1azkWRtmg==","dz620JHtzhXwWw==","RUpMwP5qTl8EJg==","nYjTrzk0ES6Z5w==","6NNvHm3W8L0juQ==","MBHwcaqIr8y+eA==","jDuGPrPF7SnWQw==","VPkZUXSbslhLgg==","IaKl4CB5U8vx3A==","+WA6j+cnDLpsHQ==","yxTAn4igjPCYYA==","E9Zf8E/+04EFoQ==","Zo3jQRscMhK//w==","vk98LtxCbWMiPg==","A9kP3ymGtsVviQ==","2xuQsO7Y6bTySA==","rkAsAbo6CCdIFg==","doKzbn1kV1bV1w==","RPZJfhLj1xwhqg==","nDTWEdW9iG28aw==","6W9qoIFfaf4GNQ==","Ma31z0YBNo+b9A==","jYeDgF9MdGrzzw==","VUUc75gSKxtuDg==","IB6gXszwyojUUA==","+Nw/MQuulflJkQ==","yqjFIWQpFbO97A==","EmpaTqN3SsIgLQ==","ZzHm//eVq1Gacw==","v/N5kDDL9CAHsg==","BMoUwpceXhGUCg==","3AiLrVBAAWAJyw==","qVM3HASi4POzlQ==","cZGoc8P8v4IuVA==","Q+VSY6x7P8jaKQ==","myfNDGslYLlH6A==","7nxxvT/HgSr9tg==","Nr7u0viZ3ltgdw==","ipSYneHUnL4ITA==","UlYH8iaKw8+VjQ==","Jw27Q3JoIlwv0w==","/88kLLU2fS2yEg==","zbvePNqx/WdGbw==","FXlBUx3vohbbrg==","YCL94kkNQ4Vh8A==","uOBijY5THPT8MQ==","BXYRfHuXx1Kxhg==","3bSOE7zJmCMsRw==","qO8yougrebCWGQ==","cC2tzS91JsEL2A==","QllX3UDypov/pQ==","mpvIsoes+fpiZA==","78B0A9NOGGnYOg==","NwLrbBQQRxhF+w==","iyidIw1dBf0twA==","U+oCTMoDWoywAQ==","JrG+/Z7hux8KXw==","/nMhklm/5G6Xng==","zAfbgjY4ZCRj4w==","FMVE7fFmO1X+Ig==","YZ74XKWE2sZEfA==","uVxnM2LahbfZvQ==","Bq8eo1IRcZfeDw==","3m2BzJVPLuZDzg==","qzY9fcGtz3X5kA==","c/SiEgbzkARkUQ==","QYBYAml0EE6QLA==","mULHba4qTz8N7Q==","7Bl73PrIrqy3sw==","NNvksz2W8d0qcg==","iPGS/CTbszhCSQ==","UDMNk+OF7EnfiA==","JWixIrdnDdpl1g==","/aouTXA5Uqv4Fw==","z97UXR++0uEMag==","FxxLMtjgjZCRqw==","Ykf3g4wCbAMr9Q==","uoVo7EtcM3K2NA==","BxMbHb6Y6NT7gw==","39GEcnnGt6VmQg==","qoo4wy0kVjbcHA==","ckinrOp6CUdB3Q==","QDxdvIX9iQ21oA==","mP7C00Kj1nwoYQ==","7aV+YhZBN++SPw==","NWfhDdEfaJ4P/g==","iU2XQshSKntnxQ==","UY8ILQ8MdQr6BA==","JNS0nFvulJlAWg==","/BYr85ywy+jdmw==","zmLR4/M3S6Ip5g==","FqBOjDRpFNO0Jw==","Y/vyPWCL9UAOeQ==","uzltUqfVqjGTuA==","CIkomTM8vCI1FA==","0Eu39vRi41Oo1Q==","pRALR6CAAsASiw==","fdKUKGfeXbGPSg==","T6ZuOAhZ3ft7Nw==","l2TxV88Hgorm9g==","4j9N5pvlYxlcqA==","Ov3SiVy7PGjBaQ==","htekxkX2fo2pUg==","XhU7qYKoIfw0kw==","K06HGNZKwG+OzQ==","84wYdxEUnx4TDA==","wfjiZ36TH1TncQ==","GTp9CLnNQCV6sA==","bGHBue0vobbA7g==","tKNe1ipx/sddLw==","CTUtJ9+1JWEQmA==","0feySBjrehCNWQ==","pKwO+UwJm4M3Bw==","fG6RlotXxPKqxg==","ThprhuTQRLheuw==","ltj06SOOG8nDeg==","44NIWHds+lp5JA==","O0HXN7AypSvk5Q==","h2uheKl/586M3g==","X6k+F24huL8RHw==","KvKCpjrDWSyrQQ==","8jAdyf2dBl02gA==","wETn2ZIahhfC/Q==","GIZ4tlVE2WZfPA==","bd3EBwGmOPXlYg==","tR9baMb4Z4R4ow==","Cuwi+PYzk6R/EQ==","0i69lzFtzNXi0A==","p3UBJmWPLUZYjg==","f7eeSaLRcjfFTw==","TcNkWc1W8n0xMg==","lQH7NgoIrQys8w==","4FpHh17qTJ8WrQ==","OJjY6Jm0E+6LbA==","hLKup4D5UQvjVw==","XHAxyEenDnp+lg==","KSuNeRNF7+nEyA==","8ekSFtQbsJhZCQ==","w53oBrucMNKtdA==","G193aXzCb6MwtQ==","bgTL2CggjjCK6w==","tsZUt+9+0UEXKg==","C1AnRhq6CudanQ==","05K4Kd3kVZbHXA==","pskEmIkGtAV9Ag==","fgub905Y63Tgww==","TH9h5yHfaz4Uvg==","lL3+iOaBNE+Jfw==","4eZCObJj1dwzIQ==","OSTdVnU9iq2u4A==","hQ6rGWxwyEjG2w==","Xcw0dqsulzlbGg==","KJeIx//MdqrhRA==","8FUXqDiSKdt8hQ==","wiHtuFcVqZGI+A==","GuNy15BL9uAVOQ==","b7jOZsSpF3OvZw==","t3pRCQP3SAIypg==","DEM8W6Qi4jOhHg==","1IGjNGN8vUI83w==","odofhTeeXNGGgQ==","eRiA6vDAA6AbQA==","S2x6+p9Hg+rvPQ==","k67llVgZ3Jty/A==","5vVZJAz7PQjIog==","PjfGS8ulYnlVYw==","gh2wBNLoIJw9WA==","Wt8vaxW2f+2gmQ==","L4ST2kFUnn4axw==","90YMtYYKwQ+HBg==","xTL2pemNQUVzew==","HfBpyi7THjTuug==","aKvVe3ox/6dU5A==","sGlKFL1voNbJJQ==","Df855Uire3CEkg==","1T2mio/1JAEZUw==","oGYaO9sXxZKjDQ==","eKSFVBxJmuM+zA==","StB/RHPOGqnKsQ==","khLgK7SQRdhXcA==","50lcmuBypEvtLg==","P4vD9Scs+zpw7w==","g6G1uj5hud8Y1A==","W2Mq1fk/5q6FFQ==","LjiWZK3dBz0/Sw==","9voJC2qDWEyiig==","xI7zGwUE2AZW9w==","HExsdMJah3fLNg==","aRfQxZa4ZuRxaA==","sdVPqlHmOZXsqQ==","DiY2OmEtzbXrGw==","1uSpVaZzksR22g==","o78V5PKRc1fMhA==","e32KizXPLCZRRQ==","SQlwm1pIrGylOA==","kcvv9J0W8x04+Q==","5JBTRcn0Eo6Cpw==","PFLMKg6qTf8fZg==","gHi6ZRfnDxp3XQ==","WLolCtC5UGvqnA==","LeGZu4RbsfhQwg==","9SMG1EMF7onNAw==","x1f8xCyCbsM5fg==","H5Vjq+vcMbKkvw==","as7fGr8+0CEe4Q==","sgxAdXhgj1CDIA==","D5ozhI2kVPbOlw==","11is60r6C4dTVg==","ogMQWh4Y6hTpCA==","esGPNdlGtWV0yQ==","SLV1JbbBNS+AtA==","kHfqSnGfal4ddQ==","5SxW+yV9i82nKw==","Pe7JlOIj1Lw66g==","gcS/2/tulllS0Q==","WQYgtDwwySjPEA==","LF2cBWjSKLt1Tg==","9J8Daq+Md8rojw==","xuv5esAL94Ac8g==","HilmFQdVqPGBMw==","a3LapFO3SWI7bQ==","s7BFy5TpFhOmrA=="]},_resource:null,$type:new n.ig.Type("RSP10",n.ig.$ot)},!0);n.ig.util.defType("RSP13:li","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["iUnjEbERNA0uK1OEeA==","iUnjEbERNA0uK1OEeA==","D5LbIn8iaBpcVqYV8A==","hts4M84zXBdyffWRiA==","HjmrRP5E0DS4rFEq/Q==","l3BIVU9V5DmWhwKuhQ==","EatwZoFmuC7k+vc/DQ==","mOKTdzB3jCPK0aS7dQ==","PHJLiOGIvWhtRaJU5w==","tTuomVCZiWVDbvHQnw==","M+CQqp6q1XIxEwRBFw==","uqlzuy+74X8fOFfFbw==","IkvgzB/MbVzV6fN+Gg==","qwID3a7dWVH7wqD6Yg==","Ldk77mDuBUaJv1Vr6g==","pJDY/9H/MUunlAbvkg==","eOSWDd8NZ9Dailmo0w==","8a11HG4cU930oQosqw==","d3ZNL6AvD8qG3P+9Iw==","/j+uPhE+O8eo96w5Ww==","Zt09SSFJt+RiJgiCLg==","75TeWJBYg+lMDVsGVg==","aU/ma15r3/4+cK6X3g==","4AYFeu966/MQW/0Tpg==","RJbdhT6F2ri3z/v8NA==","zd8+lI+U7rWZ5Kh4TA==","SwQGp0GnsqLrmV3pxA==","wk3ltvC2hq/Fsg5tvA==","Wq92wcDBCowPY6rWyQ==","0+aV0HHQPoEhSPlSsQ==","VT2t47/jYpZTNQzDOQ==","3HRO8g7yVpt9Hl9HQQ==","8NUxGqMazr2pCbJNuw==","eZzSCxIL+rCHIuHJww==","/0fqONw4pqf1XxRYSw==","dg4JKW0pkqrbdEfcMw==","7uyaXl1eHokRpeNnRg==","Z6V5T+xPKoQ/jrDjPg==","4X5BfCJ8dpNN80Vytg==","aDeibZNtQp5j2Bb2zg==","zKd6kkKSc9XETBAZXA==","Re6Zg/ODR9jqZ0OdJA==","wzWhsD2wG8+YGrYMrA==","SnxCoYyhL8K2MeWI1A==","0p7R1rzWo+F84EEzoQ==","W9cyxw3Hl+xSyxK32Q==","3QwK9MP0y/sgtucmUQ==","VEXp5XLl//YOnbSiKQ==","iDGnF3wXqW1zg+vlaA==","AXhEBs0GnWBdqLhhEA==","h6N8NQM1wXcv1U3wmA==","DuqfJLIk9XoB/h504A==","lggMU4JTeVnLL7rPlQ==","H0HvQjNCTVTlBOlL7Q==","mZrXcf1xEUOXeRzaZQ==","ENM0YExgJU65Uk9eHQ==","tEPsn52fFAUexkmxjw==","PQoPjiyOIAgw7Ro19w==","u9E3veK9fB9CkO+kfw==","MpjUrFOsSBJsu7wgBw==","qnpH22PbxDGmahibcg==","IzOkytLK8DyIQUsfCg==","peic+Rz5rCv6PL6Ogg==","LKF/6K3omCbUF+0K+g==","/bdiNFs0gWdPEnmaaw==","dP6BJeoltWphOSoeEw==","8iW5FiQW6X0TRN+Pmw==","e2xaB5UH3XA9b4wL4w==","447JcKVwUVP3viiwlg==","ascqYRRhZV7ZlXs07g==","7BwSUtpSOUmr6I6lZg==","ZVXxQ2tDDUSFw90hHg==","wcUpvLq8PA8iV9vOjA==","SIzKrQutCAIMfIhK9A==","zlfynsWeVBV+AX3bfA==","Rx4Rj3SPYBhQKi5fBA==","3/yC+ET47Dua+4rkcQ==","VrVh6fXp2Da00NlgCQ==","0G5Z2jvahCHGrSzxgQ==","WSe6y4rLsCzohn91+Q==","hVP0OYQ55reVmCAyuA==","DBoXKDUo0rq7s3O2wA==","isEvG/sbjq3JzoYnSA==","A4jMCkoKuqDn5dWjMA==","m2pffXp9NoMtNHEYRQ==","EiO8bMtsAo4DHyKcPQ==","lPiEXwVfXplxYtcNtQ==","HbFnTrROapRfSYSJzQ==","uSG/sWWxW9/43YJmXw==","MGhcoNSgb9LW9tHiJw==","trNkkxqTM8WkiyRzrw==","P/qHgquCB8iKoHf31w==","pxgU9Zv1i+tAcdNMog==","LlH35Crkv+ZuWoDI2g==","qIrP1+TX4/EcJ3VZUg==","IcMsxlXG1/wyDCbdKg==","DWJTLvguT9rmG8vX0A==","hCuwP0k/e9fIMJhTqA==","AvCIDIcMJ8C6TW3CIA==","i7lrHTYdE82UZj5GWA==","E1v4agZqn+5et5r9LQ==","mhIbe7d7q+NwnMl5VQ==","HMkjSHlI9/QC4Tzo3Q==","lYDAWchZw/ksym9spQ==","MRAYphmm8rKLXmmDNw==","uFn7t6i3xr+ldToHTw==","PoLDhGaEmqjXCM+Wxw==","t8sgldeVrqX5I5wSvw==","Lymz4ufiIoYz8jipyg==","pmBQ81bzFosd2Wstsg==","ILtowJjASpxvpJ68Og==","qfKL0SnRfpFBj804Qg==","dYbFIycjKAo8kZJ/Aw==","/M8mMpYyHAcSusH7ew==","ehQeAVgBQBBgxzRq8w==","8139EOkQdB1O7Gfuiw==","a79uZ9ln+D6EPcNV/g==","4vaNdmh2zDOqFpDRhg==","ZC21RaZFkCTYa2VADg==","7WRWVBdUpCn2QDbEdg==","SfSOq8arlWJR1DAr5A==","wL1tune6oW9//2OvnA==","RmZVibmJ/XgNgpY+FA==","zy+2mAiYyXUjqcW6bA==","V80l7zjvRVbpeGEBGQ==","3oTG/on+cVvHUzKFYQ==","WF/+zUfNLUy1LscU6Q==","0RYd3PbcGUGbBZSQkQ==","53PEaLZoH86eJPIp1g==","bjoneQd5K8OwD6Gtrg==","6OEfSslKd9TCclQ8Jg==","Yaj8W3hbQ9nsWQe4Xg==","+UpvLEgsz/omiKMDKw==","cAOMPfk9+/cIo/CHUw==","9ti0DjcOp+B63gUW2w==","f5FXH4Yfk+1U9VaSow==","2wGP4FfgoqbzYVB9MQ==","Ukhs8ebxlqvdSgP5SQ==","1JNUwijCyryvN/ZowQ==","Xdq305nT/rGBHKXsuQ==","xTgkpKmkcpJLzQFXzA==","THHHtRi1Rp9l5lLTtA==","yqr/htaGGogXm6dCPA==","Q+Mcl2eXLoU5sPTGRA==","n5dSZWlleB5ErquBBQ==","Ft6xdNh0TBNqhfgFfQ==","kAWJRxZHEAQY+A2U9Q==","GUxqVqdWJAk2014QjQ==","ga75IZchqCr8Avqr+A==","COcaMCYwnCfSKakvgA==","jjwiA+gDwDCgVFy+CA==","B3XBElkS9D2Ofw86cA==","o+UZ7YjtxXYp6wnV4g==","Kqz6/Dn88XsHwFpRmg==","rHfCz/fPrWx1va/AEg==","JT4h3kbemWFblvxEag==","vdyyqXapFUKRR1j/Hw==","NJVRuMe4IU+/bAt7Zw==","sk5piwmLfVjNEf7q7w==","OweKmriaSVXjOq1ulw==","F6b1chVy0XM3LUBkbQ==","nu8WY6Rj5X4ZBhPgFQ==","GDQuUGpQuWlre+ZxnQ==","kX3NQdtBjWRFULX15Q==","CZ9eNus2AUePgRFOkA==","gNa9J1onNUqhqkLK6A==","Bg2FFJQUaV3T17dbYA==","j0RmBSUFXVD9/OTfGA==","K9S++vT6bBtaaOIwig==","op1d60XrWBZ0Q7G08g==","JEZl2IvYBAEGPkQleg==","rQ+GyTrJMAwoFRehAg==","Ne0Vvgq+vC/ixLMadw==","vKT2r7uviCLM7+CeDw==","On/OnHWc1DW+khUPhw==","szYtjcSN4DiQuUaL/w==","b0Jjf8p/tqPtpxnMvg==","5guAbntugq7DjEpIxg==","YNC4XbVd3rmx8b/ZTg==","6ZlbTARM6rSf2uxdNg==","cXvIOzQ7ZpdVC0jmQw==","+DIrKoUqUpp7IBtiOw==","fukTGUsZDo0JXe7zsw==","96DwCPoIOoAndr13yw==","UzAo9yv3C8uA4ruYWQ==","2nnL5prmP8auyegcIQ==","XKLz1VTVY9HctB2NqQ==","1esQxOXEV9zyn04J0Q==","TQmDs9Wz2/84TuqypA==","xEBgomSi7/IWZbk23A==","QptYkaqRs+VkGEynVA==","y9K7gBuAh+hKMx8jLA==","GsSmXO1cnqnRNouzvQ==","k41FTVxNqqT/Hdg3xQ==","FVZ9fpJ+9rONYC2mTQ==","nB+ebyNvwr6jS34iNQ==","BP0NGBMYTp1pmtqZQA==","jbTuCaIJepBHsYkdOA==","C2/WOmw6Joc1zHyMsA==","giY1K90rEoob5y8IyA==","Jrbt1AzUI8G8cynnWg==","r/8Oxb3FF8ySWHpjIg==","KSQ29nP2S9vgJY/yqg==","oG3V58Lnf9bODtx20g==","OI9GkPKQ8/UE33jNpw==","scalgUOBx/gq9CtJ3w==","Nx2dso2ym+9Yid7YVw==","vlR+ozyjr+J2oo1cLw==","YiAwUTJR+XkLvNIbbg==","62nTQINAzXQll4GfFg==","bbLrc01zkWNX6nQOng==","5PsIYvxipW55wSeK5g==","fBmbFcwVKU2zEIMxkw==","9VB4BH0EHUCdO9C16w==","c4tAN7M3QVfvRiUkYw==","+sKjJgImdVrBbXagGw==","XlJ72dPZRBFm+XBPiQ==","1xuYyGLIcBxI0iPL8Q==","UcCg+6z7LAs6r9ZaeQ==","2IlD6h3qGAYUhIXeAQ==","QGvQnS2dlCXeVSFldA==","ySIzjJyMoCjwfnLhDA==","T/kLv1K//D+CA4dwhA==","xrDoruOuyDKsKNT0/A==","6hGXRk5GUBR4Pzn+Bg==","Y1h0V/9XZBlWFGp6fg==","5YNMZDFkOA4kaZ/r9g==","bMqvdYB1DAMKQsxvjg==","9Cg8ArACgCDAk2jU+w==","fWHfEwETtC3uuDtQgw==","+7rnIM8g6Dqcxc7BCw==","cvMEMX4x3Dey7p1Fcw==","1mPczq/O7XwVepuq4Q==","Xyo/3x7f2XE7UcgumQ==","2fEH7NDshWZJLD2/EQ==","ULjk/WH9sWtnB247aQ==","yFp3ilGKPUit1sqAHA==","QROUm+CbCUWD/ZkEZA==","x8isqC6oVVLxgGyV7A==","ToFPuZ+5YV/fqz8RlA==","kvUBS5FLN8SitWBW1Q==","G7ziWiBaA8mMnjPSrQ==","nWfaae5pX97+48ZDJQ==","FC45eF94a9PQyJXHXQ==","jMyqD28P5/AaGTF8KA==","BYVJHt4e0/00MmL4UA==","g15xLRAtj+pGT5dp2A==","CheSPKE8u+doZMTtoA==","rodKw3DDiqzP8MICMg==","J86p0sHSvqHh25GGSg==","oRWR4Q/h4raTpmQXwg==","KFxy8L7w1ru9jTeTug==","sL7hh46HWph3XJMozw==","OfcClj+WbpVZd8Cstw==","vyw6pfGlMoIrCjU9Pw==","NmXZtEC0Bo8FIWa5Rw=="]},_resource:null,$type:new n.ig.Type("RSP13",n.ig.$ot)},!0);n.ig.util.defType("RSP15:lj","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["HcRvo3BKCmlpi4SXIIYa","HcRvo3BKCmlpi4SXIIYa","OpXeW+CUFNLSCxUzQBE0","J1Gx+JDeHru7gJGkYJcu","dDehtt01KLm5FipmgCJo","afPOFa1/ItDQna7xoKRy","TqJ/7T2hPGtrHT9VwDNc","U2YQTk3rNgIClrvC4LVG","6G5fcadqUG9vLFTMHUTQ","9aow0tcgWgYGp9BbPcLK","0vuBKkf+RL29J0H/XVXk","zz/uiTe0TtTUrMVofdP+","nFn+x3pfeNbWOn6qnWa4","gZ2RZAoVcr+/sfo9veCi","pswgnJrLbAQEMWuZ3XeM","uwhPP+qBZm1tuu8O/fGW","zdy+4lPUoN7eWKiFOoi9","0BjRQSOeqre30ywSGg6n","90lgubNAtAwMU722epmJ","6o0PGsMKvmVl2DkhWh+T","uesfVI7hiGdnToLjuqrV","pC9w9/6rgg4OxQZ0mizP","g37BD251nLW1RZfQ+rvh","nrqurB4/ltzczhNH2j37","JbLhk/S+8LGxdPxJJ8xt","OHaOMIT0+tjY/3jeB0p3","Hyc/yBQq5GNjf+l6Z91Z","AuNQa2Rg7goK9G3tR1tD","UYVAJSmL2AgIYtYvp+4F","TEEvhlnB0mFh6VK4h2gf","axCefskfzNraacMc5/8x","dtTx3blVxrOz4keLx3kr","h6Vh2aa1XaGhsE0XdA1n","mmEOetb/V8jIO8mAVIt9","vTC/gkYhSXNzu1gkNBxT","oPTQITZrQxoaMNyzFJpJ","85LAb3uAdRgYpmdx9C8P","7lavzAvKf3FxLePm1KkV","yQceNJsUYcrKrXJCtD47","1MNxl+tea6OjJvbVlLgh","b8s+qAHfDc7OnBnbaUm3","cg9RC3GVB6enF51MSc+t","VV7g8+FLGRwclwzoKViD","SJqPUJEBE3V1HIh/Cd6Z","G/yfHtzqJXd3ijO96Wvf","BjjwvaygLx4eAbcqye3F","IWlBRTx+MaWlgSaOqXrr","PK0u5kw0O8zMCqIZifzx","SnnfO/Vh/X9/6OWSToXa","V72wmIUr9xYWY2EFbgPA","cOwBYBX16a2t4/ChDpTu","bShuw2W/48TEaHQ2LhL0","Pk5+jShU1cbG/s/0zqey","I4oRLlge36+vdUtj7iGo","BNug1sjAwRQU9drHjraG","GR/PdbiKy319fl5QrjCc","oheASlILrRAQxLFeU8EK","v9Pv6SJBp3l5TzXJc0cQ","mIJeEbKfucLCz6RtE9A+","hUYxssLVs6urRCD6M1Yk","1iAh/I8+hamp0ps40+Ni","y+ROX/90j8DAWR+v82V4","7LX/p2+qkXt72Y4Lk/JW","8XGQBB/gmxISUgqcs3RM","E1fCr1F3ul9ffZou6BrO","DpOtDCE9sDY29h65yJzU","KcIc9LHjro2Ndo8dqAv6","NAZzV8GppOTk/QuKiI3g","Z2BjGYxCkubma7BIaDim","eqQMuvwImI+P4DTfSL68","XfW9QmzWhjQ0YKV7KCmS","QDHS4RycjF1d6yHsCK+I","+zmd3vYd6jAwUc7i9V4e","5v3yfYZX4FlZ2kp11dgE","waxDhRaJ/uLiWtvRtU8q","3GgsJmbD9IuL0V9Glckw","jw48aCsowomJR+SEdXx2","kspTy1tiyODgzGATVfps","tZviM8u81ltbTPG3NW1C","qF+NkLv23DIyx3UgFetY","3ot8TQKjGoGBJTKr0pJz","w08T7nLpEOjorrY88hRp","5B6iFuI3DlNTLieYkoNH","+drNtZJ9BDo6paMPsgVd","qrzd+9+WMjg4MxjNUrAb","t3iyWK/cOFFRuJxacjYB","kCkDoD8CJurqOA3+EqEv","je1sA09ILIODs4lpMic1","NuUjPKXJSu7uCWZnz9aj","KyFMn9WDQIeHguLw71C5","DHD9Z0VdXjw8AnNUj8eX","EbSSxDUXVFVViffDr0GN","QtKCinj8YldXH0wBT/TL","XxbtKQi2aD4+lMiWb3LR","eEdc0ZhodoWFFFkyD+X/","ZYMzcugifOzsn92lL2Pl","lPKjdvfC5/7+zdc5nBep","iTbM1YeI7ZeXRlOuvJGz","rmd9LRdW8ywsxsIK3Aad","s6MSjmcc+UVFTUad/ICH","4MUCwCr3z0dH2/1fHDXB","/QFtY1q9xS4uUHnIPLPb","2lDcm8pj25WV0OhsXCT1","x5SzOLop0fz8W2z7fKLv","fJz8B1Cot5GR4YP1gVN5","YViTpCDivfj4agdiodVj","RgkiXLA8o0ND6pbGwUJN","W81N/8B2qSoqYRJR4cRX","CKtdsY2dnygo96mTAXER","FW8yEv3XlUFBfC0EIfcL","Mj6D6m0Ji/r6/LygQWAl","L/rsSR1DgZOTdzg3YeY/","WS4dlKQWRyAglX+8pp8U","ROpyN9RcTUlJHvsrhhkO","Y7vDz0SCU/LynmqP5o4g","fn+sbDTIWZubFe4Yxgg6","LRm8Inkjb5mZg1XaJr18","MN3TgQlpZfDwCNFNBjtm","F4xieZm3e0tLiEDpZqxI","CkgN2un9cSIiA8R+RipS","sUBC5QN8F09PuStwu9vE","rIQtRnM2HSYmMq/nm13e","i9WcvuPoA52dsj5D+8rw","lhHzHZOiCfT0ObrU20zq","xXfjU95JP/b2rwEWO/ms","2LOM8K4DNZ+fJIWBG3+2","/+I9CD7dKyQkpBQle+iY","4iZSq06XIU1NL5CyW26C","Jq6ZQ6Luab6++ilczTSB","O2r24NKkY9fXca3L7bKb","HDtHGEJ6fWxs8TxvjSW1","Af8ouzIwdwUFerj4raOv","Upk49X/bQQcH7AM6TRbp","T11XVg+RS25uZ4etbZDz","aAzmrp9PVdXV5xYJDQfd","dciJDe8FX7y8bJKeLYHH","zsDGMgWEOdHR1n2Q0HBR","0wSpkXXOM7i4XfkH8PZL","9FUYaeUQLQMD3WijkGFl","6ZF3ypVaJ2pqVuw0sOd/","uvdnhNixEWhowFf2UFI5","pzMIJ6j7GwEBS9NhcNQj","gGK53zglBbq6y0LFEEMN","nabWfEhvD9PTQMZSMMUX","63InofE6yWBgooHZ97w8","9rZIAoFwwwkJKQVO1zom","0ef5+hGu3bKyqZTqt60I","zCOWWWHk19vbIhB9lysS","n0WGFywP4dnZtKu/d55U","goHptFxF67CwPy8oVxhO","pdBYTMyb9QsLv76MN49g","uBQ377zR/2JiNDobFwl6","Axx40FZQmQ8PjtUV6vjs","HtgXcyYak2ZmBVGCyn72","OYmmi7bEjd3dhcAmqunY","JE3JKMaOh7S0DkSxim/C","dyvZZotlsba2mP9zatqE","au+2xfsvu9/fE3vkSlye","Tb4HPWvxpWRkk+pAKsuw","UHponhu7rw0NGG7XCk2q","oQv4mgRbNB8fSmRLuTnm","vM+XOXQRPnZ2weDcmb/8","m54mweTPIM3NQXF4+SjS","hlpJYpSFKqSkyvXv2a7I","1TxZLNluHKamXE4tORuO","yPg2j6kkFs/P18q6GZ2U","76mHdzn6CHR0V1seeQq6","8m3o1EmwAh0d3N+JWYyg","SWWn66MxZHBwZjCHpH02","VKHISNN7bhkZ7bQQhPss","c/B5sEOlcKKibSW05GwC","bjQWEzPvesvL5qEjxOoY","PVIGXX4ETMnJcBrhJF9e","IJZp/g5ORqCg+552BNlE","B8fYBp6QWBsbew/SZE5q","GgO3pe7aUnJy8ItFRMhw","bNdGeFePlMHBEszOg7Fb","cRMp2yfFnqiomUhZozdB","VkKYI7cbgBMTGdn9w6Bv","S4b3gMdRinp6kl1q4yZ1","GODnzoq6vHh4BOaoA5Mz","BSSIbfrwthERj2I/IxUp","InU5lWouqKqqD/ObQ4IH","P7FWNhpkosPDhHcMYwQd","hLkZCfDlxK6uPpgCnvWL","mX12qoCvzsfHtRyVvnOR","vizHUhBx0Hx8NY0x3uS/","o+io8WA72hUVvgmm/mKl","8I64vy3Q7BcXKLJkHtfj","7UrXHF2a5n5+ozbzPlH5","yhtm5M1E+MXFI6dXXsbX","198JR70O8qysqCPAfkDN","Nflb7POZ0+Hhh7NyJS5P","KD00T4PT2YiIDDflBahV","D2yFtxMNxzMzjKZBZT97","EqjqFGNHzVpaByLWRblh","Qc76Wi6s+1hYkZkUpQwn","XAqV+V7m8TExGh2DhYo9","e1skAc4474qKmown5R0T","Zp9Lor5y5ePjEQiwxZsJ","3ZcEnVTzg46Oq+e+OGqf","wFNrPiS5iefnIGMpGOyF","5wLaxrRnl1xcoPKNeHur","+sa1ZcQtnTU1K3YaWP2x","qaClK4nGqzc3vc3YuEj3","tGTKiPmMoV5eNklPmM7t","kzV7cGlSv+Xlttjr+FnD","jvEU0xkYtYyMPVx82N/Z","+CXlDqBNcz8/3xv3H6by","5eGKrdAHeVZWVJ9gPyDo","wrA7VUDZZ+3t1A7EX7fG","33RU9jCTbYSEX4pTfzHc","jBJEuH14W4aGyTGRn4Sa","kdYrGw0yUe/vQrUGvwKA","toea453sT1RUwiSi35Wu","q0P1QO2mRT09SaA1/xO0","EEu6fwcnI1BQ8087AuIi","DY/V3HdtKTk5eMusImQ4","Kt5kJOezN4KC+FoIQvMW","NxoLh5f5Pevrc96fYnUM","ZHwbydoSC+np5WVdgsBK","ebh0aqpYAYCAbuHKokZQ","XunFkjqGHzs77nBuwtF+","Qy2qMUrMFVJSZfT54ldk","slw6NVUsjkBAN/5lUSMo","r5hVliVmhCkpvHrycaUy","iMnkbrW4mpKSPOtWETIc","lQ2LzcXykPv7t2/BMbQG","xmubg4gZpvn5IdQD0QFA","26/0IPhTrJCQqlCU8Yda","/P5F2GiNsisrKsEwkRB0","4ToqexjHuEJCoUWnsZZu","WjJlRPJG3i8vG6qpTGf4","R/YK54IM1EZGkC4+bOHi","YKe7HxLSyv39EL+aDHbM","fWPUvGKYwJSUmzsNLPDW","LgXE8i9z9paWDYDPzEWQ","M8GrUV85/P//hgRY7MOK","FJAaqc/n4kREBpX8jFSk","CVR1Cr+t6C0tjRFrrNK+","f4CE1wb4Lp6eb1bga6uV","YkTrdHayJPf35NJ3Sy2P","RRVajOZsOkxMZEPTK7qh","WNE1L5YmMCUl78dECzy7","C7clYdvNBicneXyG64n9","FnNKwquHDE5O8vgRyw/n","MSL7OjtZEvX1cmm1q5jJ","LOaUmUsTGJyc+e0iix7T","l+7bpqGSfvHxQwIsdu9F","iiq0BdHYdJiYyIa7Vmlf","rXsF/UEGaiMjSBcfNv5x","sL9qXjFMYEpKw5OIFnhr","49l6EHynVkhIVShK9s0t","/h0VswztXCEh3qzd1ks3","2UykS5wzQpqaXj15ttwZ","xIjL6Ox5SPPz1bnulloD"]},_resource:null,$type:new n.ig.Type("RSP15",n.ig.$ot)},!0);n.ig.util.defType("RSP16:lk","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["Ow1ovUTRHgijQSnlYjIkOw==","Ow1ovUTRHgijQSnlYjIkOw==","dhrQZ4i/PBBbglLXxGRIdg==","TRe42sxuIhj4w3syplZsTQ==","7DS9zg1jeCC2GaSzlciQ7A==","1znVc0myZigVWI1W9/q01w==","mi5tqYXcRDDtm/ZkUazYmg==","oSMFFMENWjhO2t+BM578oQ==","xWhngRrG8EBxMlV7N409xQ==","/mUPPF4X7kjSc3yeVb8Z/g==","s3K35pJ5zFAqsAes8+l1sw==","iH/fW9ao0liJ8S5JkdtRiA==","KVzaTxeliGDHK/HIokWtKQ==","ElGy8lN0lmhkatgtwHeJEg==","X0YKKJ8atHCcqaMfZiHlXw==","ZEtildvLqng/6Ir6BBPBZA==","l9DOHzSR/YDiZKr2bgd6lw==","rN2monBA44hBJYMTDDVerA==","4coeeLwuwZC55vghqmMy4Q==","2sd2xfj/35gap9HEyFEW2g==","e+Rz0TnyhaBUfQ5F+8/qew==","QOkbbH0jm6j3PCegmf3OQA==","Df6jtrFNubAP/1ySP6uiDQ==","NvPLC/Wcp7isvnV3XZmGNg==","Uripni5XDcCTVv+NWYpHUg==","abXBI2qGE8gwF9ZoO7hjaQ==","JKJ5+aboMdDI1K1ane4PJA==","H68RROI5L9hrlYS//9wrHw==","vowUUCM0deAlT1s+zELXvg==","hYF87Wfla+iGDnLbrnDzhQ==","yJbEN6uLSfB+zQnpCCafyA==","85usiu9aV/jdjCAMahS78w==","M72BPmg/5x3ZyEnx3A70Mw==","CLDpgyzu+RV6iWAUvjzQCA==","RadRWeCA2w2CShsmGGq8RQ==","fqo55KRRxQUhCzLDeliYfg==","34k88GVcnz1v0e1CScZk3w==","5IRUTSGNgTXMkMSnK/RA5A==","qZPsl+3joy00U7+VjaIsqQ==","kp6EKqkyvSWXEpZw75AIkg==","9tXmv3L5F12o+hyK64PJ9g==","zdiOAjYoCVULuzVvibHtzQ==","gM822PpGK03zeE5dL+eBgA==","u8JeZb6XNUVQOWe4TdWluw==","GuFbcX+ab30e47g5fktZGg==","IewzzDtLcXW9opHcHHl9IQ==","bPuLFvclU21FYeruui8RbA==","V/bjq7P0TWXmIMML2B01Vw==","pG1PIVyuGp07rOMHsgmOpA==","n2AnnBh/BJWY7cri0Duqnw==","0nefRtQRJo1gLrHQdm3G0g==","6Xr3+5DAOIXDb5g1FF/i6Q==","SFny71HNYr2NtUe0J8EeSA==","c1SaUhUcfLUu9G5RRfM6cw==","PkMiiNlyXq3WNxVj46VWPg==","BU5KNZ2jQKV1djyGgZdyBQ==","YQUooEZo6t1KnrZ8hYSzYQ==","WghAHQK59NXp35+Z57aXWg==","Fx/4x87X1s0RHOSrQeD7Fw==","LBKQeooGyMWyXc1OI9LfLA==","jTGVbksLkv38hxLPEEwjjQ==","tjz90w/ajPVfxjsqcn4Htg==","+ytFCcO0ru2nBUAY1Chr+w==","wCYttIdlsOUERGn9thpPwA==","ZmcffNB+0zqvjZL/pRz1Zg==","XWp3wZSvzTIMzLsaxy7RXQ==","EH3PG1jB7yr0D8AoYXi9EA==","K3CnphwQ8SJXTunNA0qZKw==","ilOist0dqxoZlDZMMNRlig==","sV7KD5nMtRK61R+pUuZBsQ==","/Ely1VWilwpCFmSb9LAt/A==","x0QaaBFziQLhV01+loIJxw==","ow94/cq4I3rev8eEkpHIow==","mAIQQI5pPXJ9/u5h8KPsmA==","1RWomkIHH2qFPZVTVvWA1Q==","7hjAJwbWAWImfLy2NMek7g==","TzvFM8fbW1popmM3B1lYTw==","dDatjoMKRVLL50rSZWt8dA==","OSEVVE9kZ0ozJDHgwz0QOQ==","Aix96Qu1eUKQZRgFoQ80Ag==","8bfRY+TvLrpN6TgJyxuP8Q==","yrq53qA+MLLuqBHsqSmryg==","h60BBGxQEqoWa2reD3/Hhw==","vKBpuSiBDKK1KkM7bU3jvA==","HYNsremMVpr78Jy6XtMfHQ==","Jo4EEK1dSJJYsbVfPOE7Jg==","a5m8ymEzaoqgcs5tmrdXaw==","UJTUdyXidIIDM+eI+IVzUA==","NN+24v4p3vo8221y/JayNA==","D9LeX7r4wPKfmkSXnqSWDw==","QsVmhXaW4upnWT+lOPL6Qg==","ecgOODJH/OLEGBZAWsDeeQ==","2OsLLPNKptqKwsnBaV4i2A==","4+ZjkbebuNIpg+AkC2wG4w==","rvHbS3v1msrRQJsWrTpqrg==","lfyz9j8khMJyAbLzzwhOlQ==","VdqeQrhBNCd2RdsOeRIBVQ==","btf2//yQKi/VBPLrGyAlbg==","I8BOJTD+CDctx4nZvXZJIw==","GM0mmHQvFj+OhqA830RtGA==","ue4jjLUiTAfAXH+97NqRuQ==","guNLMfHzUg9jHVZYjui1gg==","z/Tz6z2dcBeb3i1qKL7Zzw==","9PmbVnlMbh84nwSPSoz99A==","kLL5w6KHxGcHd451Tp88kA==","q7+RfuZW2m+kNqeQLK0Yqw==","5qgppCo4+Hdc9dyiivt05g==","3aVBGW7p5n//tPVH6MlQ3Q==","fIZEDa/kvEexbirG21esfA==","R4sssOs1ok8SLwMjuWWIRw==","CpyUaidbgFfq7HgRHzPkCg==","MZH812OKnl9JrVH0fQHAMQ==","wgpQXYzQyaeUIXH4FxV7wg==","+Qc44MgB1683YFgddSdf+Q==","tBCAOgRv9bfPoyMv03EztA==","jx3oh0C+679s4grKsUMXjw==","Lj7tk4GzsYciONVLgt3rLg==","FTOFLsVir4+Befyu4O/PFQ==","WCQ99AkMjZd5uoecRrmjWA==","YylVSU3dk5/a+655JIuHYw==","B2I33JYWOeflEySDIJhGBw==","PG9fYdLHJ+9GUg1mQqpiPA==","cXjnux6pBfe+kXZU5PwOcQ==","SnWPBlp4G/8d0F+xhs4qSg==","61aKEpt1QcdTCoAwtVDW6w==","0Fvir9+kX8/wS6nV12Ly0A==","nUxadRPKfdcIiNLncTSenQ==","pkEyyFcbY9+ryfsCEwa6pg==","zM4++L38u3RDBznjVzj3zA==","98NWRfktpXzgRhAGNQrT9w==","utTunzVDh2QYhWs0k1y/ug==","gdmGInGSmWy7xELR8W6bgQ==","IPqDNrCfw1T1Hp1QwvBnIA==","G/fri/RO3VxWX7S1oMJDGw==","VuBTUTgg/0SunM+HBpQvVg==","be077Hzx4UwN3eZiZKYLbQ==","CaZZeac6SzQyNWyYYLXKCQ==","MqsxxOPrVTyRdEV9AofuMg==","f7yJHi+FdyRptz5PpNGCfw==","RLHho2tUaSzK9heqxuOmRA==","5ZLkt6pZMxSELMgr9X1a5Q==","3p+MCu6ILRwnbeHOl09+3g==","k4g00CLmDwTfrpr8MRkSkw==","qIVcbWY3EQx877MZUys2qA==","Wx7w54ltRvShY5MVOT+NWw==","YBOYWs28WPwCIrrwWw2pYA==","LQQggAHSeuT64cHC/VvFLQ==","FglIPUUDZOxZoOgnn2nhFg==","typNKYQOPtQXejemrPcdtw==","jCcllMDfINy0Ox5DzsU5jA==","wTCdTgyxAsRM+GVxaJNVwQ==","+j3180hgHMzvuUyUCqFx+g==","nnaXZpOrtrTQUcZuDrKwng==","pXv/29d6qLxzEO+LbICUpQ==","6GxHARsUiqSL05S5ytb46A==","02EvvF/FlKwokr1cqOTc0w==","ckIqqJ7IzpRmSGLdm3ogcg==","SU9CFdoZ0JzFCUs4+UgESQ==","BFj6zxZ38oQ9yjAKXx5oBA==","P1WSclKm7IyeixnvPSxMPw==","/3O/xtXDXGmaz3ASizYD/w==","xH7Xe5ESQmE5jln36QQnxA==","iWlvoV18YHnBTSLFT1JLiQ==","smQHHBmtfnFiDAsgLWBvsg==","E0cCCNigJEks1tShHv6TEw==","KEpqtZxxOkGPl/1EfMy3KA==","ZV3Sb1AfGFl3VIZ22prbZQ==","XlC60hTOBlHUFa+TuKj/Xg==","OhvYR88FrCnr/SVpvLs+Og==","ARaw+ovUsiFIvAyM3okaAQ==","TAEIIEe6kDmwf3e+eN92TA==","dwxgnQNrjjETPl5bGu1Sdw==","1i9licJm1Ald5IHaKXOu1g==","7SINNIa3ygH+pag/S0GK7Q==","oDW17krZ6BkGZtMN7RfmoA==","mzjdUw4I9hGlJ/rojyXCmw==","aKNx2eFSoel4q9rk5TF5aA==","U64ZZKWDv+Hb6vMBhwNdUw==","HrmhvmntnfkjKYgzIVUxHg==","JbTJAy08g/GAaKHWQ2cVJQ==","hJfMF+wx2cnOsn5XcPnphA==","v5qkqqjgx8Ft81eyEsvNvw==","8o0ccGSO5dmVMCyAtJ2h8g==","yYB0zSBf+9E2cQVl1q+FyQ==","rcsWWPuUUakJmY+f0rxErQ==","lsZ+5b9FT6Gq2KZ6sI5glg==","29HGP3MrbblSG91IFtgM2w==","4Nyugjf6c7HxWvStdOoo4A==","Qf+rlvb3KYm/gCssR3TUQQ==","evLDK7ImN4EcwQLJJUbweg==","N+V78X5IFZnkAnn7gxCcNw==","DOgTTDqZC5FHQ1Ae4SK4DA==","qqkhhG2CaE7siqsc8iQCqg==","kaRJOSlTdkZPy4L5kBYmkQ==","3LPx4+U9VF63CPnLNkBK3A==","576ZXqHsSlYUSdAuVHJu5w==","Rp2cSmDhEG5akw+vZ+ySRg==","fZD09yQwDmb50iZKBd62fQ==","MIdMLeheLH4BEV14o4jaMA==","C4okkKyPMnaiUHSdwbr+Cw==","b8FGBXdEmA6duP5nxak/bw==","VMwuuDOVhgY++deCp5sbVA==","GduWYv/7pB7GOqywAc13GQ==","Itb+37squhZle4VVY/9TIg==","g/X7y3on4C4roVrUUGGvgw==","uPiTdj72/iaI4HMxMlOLuA==","9e8rrPKY3D5wIwgDlAXn9Q==","zuJDEbZJwjbTYiHm9jfDzg==","PXnvm1kTlc4O7gHqnCN4PQ==","BnSHJh3Ci8atrygP/hFcBg==","S2M//NGsqd5VbFM9WEcwSw==","cG5XQZV9t9b2LXrYOnUUcA==","0U1SVVRw7e6496VZCevo0Q==","6kA66BCh8+Ybtoy8a9nM6g==","p1eCMtzP0f7jdfeOzY+gpw==","nFrqj5gez/ZANN5rr72EnA==","+BGIGkPVZY5/3FSRq65F+A==","wxzgpwcEe4bcnX10yZxhww==","jgtYfctqWZ4kXgZGb8oNjg==","tQYwwI+7R5aHHy+jDfgptQ==","FCU11E62Ha7JxfAiPmbVFA==","LyhdaQpnA6ZqhNnHXFTxLw==","Yj/ls8YJIb6SR6L1+gKdYg==","WTKNDoLYP7YxBosQmDC5WQ==","mRSgugW9j1M1QuLtLir2mQ==","ohnIB0FskVuWA8sITBjSog==","7w5w3Y0Cs0NuwLA66k6+7w==","1AMYYMnTrUvNgZnfiHya1A==","dSAddAje93ODW0Zeu+JmdQ==","Ti11yUwP6XsgGm+72dBCTg==","AzrNE4Bhy2PY2RSJf4YuAw==","ODelrsSw1Wt7mD1sHbQKOA==","XHzHOx97fxNEcLeWGafLXA==","Z3GvhluqYRvnMZ5ze5XvZw==","KmYXXJfEQwMf8uVB3cODKg==","EWt/4dMVXQu8s8ykv/GnEQ==","sEh69RIYBzPyaRMljG9bsA==","i0USSFbJGTtRKDrA7l1/iw==","xlKqkpqnOyOp60HySAsTxg==","/V/CL952JSsKqmgXKjk3/Q==","DsRupTEsctPXJkgbQC2MDg==","NckGGHX9bNt0Z2H+Ih+oNQ==","eN6+wrmTTsOMpBrMhEnEeA==","Q9PWf/1CUMsv5TMp5nvgQw==","4vDTazxPCvNhP+yo1eUc4g==","2f271nieFPvCfsVNt9c42Q==","lOoDDLTwNuM6vb5/EYFUlA==","r+drsfAhKOuZ/Jeac7Nwrw==","y6wJJCvqgpOmFB1gd6Cxyw==","8KFhmW87nJsFVTSFFZKV8A==","vbbZQ6NVvoP9lk+3s8T5vQ==","hrux/ueEoIte12ZS0fbdhg==","J5i06iaJ+rMQDbnT4mghJw==","HJXcV2JY5LuzTJA2gFoFHA==","UYJkja42xqNLj+sEJgxpUQ==","ao8MMOrn2KvozsLhRD5Nag=="]},_resource:null,$type:new n.ig.Type("RSP16",n.ig.$ot)},!0);n.ig.util.defType("RSP17:ll","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["d0JTeHcWxVP5KY+GVTV9Y08=","d0JTeHcWxVP5KY+GVTV9Y08=","7oSm8O4sl6bvUgMRqmr6xp4=","mcb1iJk6UvUWe4yX/1+HpdE=","wRVR/cFYM1HDpAYiSdTpkSE=","tlcChbZO9gI6jYmkHOGU8m4=","L5H3DS90pPcs9gUz474TV78=","WNOkdVhiYaTV34q1totuNPA=","nyqi55+wZqKbVQxEkrXPP0I=","6Gjxn+imo/FifIPCx4CyXA0=","ca4EF3Gc8QR0Bw9VON81+dw=","BuxXbwaKNFeNLoDTbepImpM=","Xj/zGl7oVfNY8Qpm22EmrmM=","KX2gYin+kKCh2IXgjlRbzSw=","sLtV6rDEwlW3owl3cQvcaP0=","x/kGksfSBwZOiobxJD6hC7I=","I1RZ0yN9zFkrqhiIOXeDfoQ=","VBYKq1RrCQrSg5cObEL+Hcs=","zdD/I81RW//E+BuZkx15uBo=","upKsW7pHnqw90ZQfxigE21U=","4kEILuIl/wjoDh6qcKNq76U=","lQNbVpUzOlsRJ5EsJZYXjOo=","DMWu3gwJaK4HXB272smQKTs=","e4f9pnsfrf3+dZI9j/ztSnQ=","vH77NLzNqvuw/xTMq8JMQcY=","yzyoTMvbb6hJ1ptK/vcxIok=","UvpdxFLhPV1frRfdAai2h1g=","JbgOvCX3+A6mhJhbVJ3L5Bc=","fWuqyX2VmapzWxLu4hal0Oc=","Cin5sQqDXPmKcp1otyPYs6g=","k+8MOZO5DgycCRH/SHxfFnk=","5K1fQeSvy19lIJ55HUkidTY=","Rqiyu0b6hbJWSTANcu4b/BU=","MerhwzHsQOGvYL+LJ9tmn1o=","qCwUS6jWEhS5GzMc2IThOos=","325HM9/A10dAMryajbGcWcQ=","h73jRoeituOV7TYvOzrybTQ=","8P+wPvC0c7BsxLmpbg+PDns=","aTlFtmmOIUV6vzU+kVAIq6o=","HnsWzh6Y5BaDlrq4xGV1yOU=","2YIQXNlK4xDNHDxJ4FvUw1c=","rsBDJK5cJkM0NbPPtW6poBg=","Nwa2rDdmdLYiTj9YSjEuBck=","QETl1EBwseXbZ7DeHwRTZoY=","GJdBoRgS0EEOuDprqY89UnY=","b9US2W8EFRL3kbXt/LpAMTk=","9hPnUfY+R+fh6jl6A+XHlOg=","gVG0KYEogrQYw7b8VtC696c=","ZfzraGWHSet94yiFS5mYgpE=","Er64EBKRjLiEyqcDHqzl4d4=","i3hNmIur3k2SsSuU4fNiRA8=","/Doe4Py9Gx5rmKQStMYfJ0A=","pOm6laTferq+Ry6nAk1xE7A=","06vp7dPJv+lHbqEhV3gMcP8=","Sm0cZUrz7RxRFS22qCeL1S4=","PS9PHT3lKE+oPKIw/RL2tmE=","+tZJj/o3L0nmtiTB2SxXvdM=","jZQa940h6hofn6tHjBkq3pw=","FFLvfxQbuO8J5CfQc0ate00=","YxC8B2MNfbzwzahWJnPQGAI=","O8MYcjtvHBglEiLjkPi+LPI=","TIFLCkx52UvcO61lxc3DT70=","1Ue+gtVDi77KQCHyOpJE6mw=","ogXt+qJVTu0zaa50b6c5iSM=","jE15a4zpF3mskmAa5ME25So=","+w8qE/v/0ipVu++csfRLhmU=","Ysnfm2LFgN9DwGMLTqvMI7Q=","FYuM4xXTRYy66eyNG56xQPs=","TVgolk2xJChvNmY4rRXfdAs=","Ohp77jqn4XuWH+m++CCiF0Q=","o9yOZqOds46AZGUpB38lspU=","1J7dHtSLdt15TeqvUkpY0do=","E2fbjBNZcds3x2xednT52mg=","ZCWI9GRPtIjO7uPYI0GEuSc=","/eN9fP115n3YlW9P3B4DHPY=","iqEuBIpjIy4hvODJiSt+f7k=","0nKKcdIBQor0Y2p8P6AQS0k=","pTDZCaUXh9kNSuX6apVtKAY=","PPYsgTwt1SwbMWltlcrqjdc=","S7R/+Us7EH/iGObrwP+X7pg=","rxkguK+U2yCHOHiS3ba1m64=","2FtzwNiCHnN+EfcUiIPI+OE=","QZ2GSEG4TIZoanuDd9xPXTA=","Nt/VMDauidWRQ/QFIukyPn8=","bgxxRW7M6HFEnH6wlGJcCo8=","GU4iPRnaLSK9tfE2wVchacA=","gIjXtYDgf9erzn2hPgimzBE=","98qEzff2uoRS5/Inaz3br14=","MDOCXzAkvYIcbXTWTwN6pOw=","R3HRJ0cyeNHlRPtQGjYHx6M=","3rckr94IKiTzP3fH5WmAYnI=","qfV316ke73cKFvhBsFz9AT0=","8SbTovF8jtPfyXL0BteTNc0=","hmSA2oZqS4Am4P1yU+LuVoI=","H6J1Uh9QGXUwm3HlrL1p81M=","aOAmKmhG3CbJsv5j+YgUkBw=","yuXL0MoTksv621AXli8tGT8=","vaeYqL0FV5gD8t+RwxpQenA=","JGFtICQ/BW0ViVMGPEXX36E=","UyM+WFMpwD7soNyAaXCqvO4=","C/CaLQtLoZo5f1Y13/vEiB4=","fLLJVXxdZMnAVtmzis6561E=","5XQ83eVnNjzWLVUkdZE+ToA=","kjZvpZJx828vBNqiIKRDLc8=","Vc9pN1Wj9GlhjlxTBJriJn0=","Io06TyK1MTqYp9PVUa+fRTI=","u0vPx7uPY8+O3F9CrvAY4OM=","zAmcv8yZppx39dDE+8Vlg6w=","lNo4ypT7xziiKlpxTU4Lt1w=","45hrsuPtAmtbA9X3GHt21BM=","el6eOnrXUJ5NeFlg5yTxccI=","DRzNQg3Blc20UdbmshGMEo0=","6bGSA+luXpLRcUifr1iuZ7s=","nvPBe554m8EoWMcZ+m3TBPQ=","BzU08wdCyTQ+I0uOBTJUoSU=","cHdni3BUDGfHCsQIUAcpwmo=","KKTD/ig2bcMS1U695oxH9po=","X+aQhl8gqJDr/ME7s7k6ldU=","xiBlDsYa+mX9h02sTOa9MAQ=","sWI2drEMPzYErsIqGdPAU0s=","dpsw5HbeODBKJETbPe1hWPk=","AdljnAHI/WOzDctdaNgcO7Y=","mB+WFJjyr5aldkfKl4ebnmc=","713FbO/kasVcX8hMwrLm/Sg=","t45hGbeGC2GJgEL5dDmIydg=","wMwyYcCQzjJwqc1/IQz1qpc=","WQrH6VmqnMdm0kHo3lNyD0Y=","LkiUkS68WZSf+85ui2YPbAk=","BZry1gXPLvJFOcA01Z9s11Q=","ctihrnLZ66G8EE+ygKoRtBs=","6x5UJuvjuVSqa8Mlf/WWEco=","nFwHXpz1fAdTQkyjKsDrcoU=","xI+jK8SXHaOGncYWnEuFRnU=","s83wU7OB2PB/tEmQyX74JTo=","KgsF2yq7igVpz8UHNiF/gOs=","XUlWo12tT1aQ5kqBYxQC46Q=","mrBQMZp/SFDebMxwRyqj6BY=","7fIDSe1pjQMnRUP2Eh/ei1k=","dDT2wXRT3/YxPs9h7UBZLog=","A3aluQNFGqXIF0DnuHUkTcc=","W6UBzFsnewEdyMpSDv5KeTc=","LOdStCwxvlLk4UXUW8s3Gng=","tSGnPLUL7KfymslDpJSwv6k=","wmP0RMIdKfQLs0bF8aHN3OY=","Js6rBSay4qtuk9i87OjvqdA=","UYz4fVGkJ/iXulc6ud2Syp8=","yEoN9ciedQ2BwdutRoIVb04=","vwhejb+IsF546FQrE7doDAE=","59v6+Ofq0fqtN96epTwGOPE=","kJmpgJD8FKlUHlEY8Al7W74=","CV9cCAnGRlxCZd2PD1b8/m8=","fh0PcH7Qgw+7TFIJWmOBnSA=","ueQJ4rkChAn1xtT4fl0glpI=","zqZams4UQVoM71t+K2hd9d0=","V2CvElcuE68alNfp1DfaUAw=","ICL8aiA41vzjvVhvgQKnM0M=","ePFYH3hat1g2YtLaN4nJB7M=","D7MLZw9McgvPS11cYry0ZPw=","lnX+75Z2IP7ZMNHLneMzwS0=","4Tetl+Fg5a0gGV5NyNZOomI=","QzJAbUM1q0ATcPA5p3F3K0E=","NHATFTQjbhPqWX+/8kQKSA4=","rbbmna0ZPOb8IvMoDRuN7d8=","2vS15doP+bUFC3yuWC7wjpA=","gicRkIJtmBHQ1PYb7qWeumA=","9WVC6PV7XUIp/Xmdu5Dj2S8=","bKO3YGxBD7c/hvUKRM9kfP4=","G+HkGBtXyuTGr3qMEfoZH7E=","3BjiityFzeKIJfx9NcS4FAM=","q1qx8quTCLFxDHP7YPHFd0w=","MpxEejKpWkRnd/9sn65C0p0=","Rd4XAkW/nxeeXnDqyps/sdI=","HQ2zdx3d/rNLgfpffBBRhSI=","ak/gD2rLO+CyqHXZKSUs5m0=","84kVh/PxaRWk0/lO1nqrQ7w=","hMtG/4TnrEZd+nbIg0/WIPM=","YGYZvmBIZxk42uixngb0VcU=","FyRKxhdeokrB82c3yzOJNoo=","juK/To5k8L/XiOugNGwOk1s=","+aDsNvlyNewuoWQmYVlz8BQ=","oXNIQ6EQVEj7fu6T19IdxOQ=","1jEbO9YGkRsCV2EVgudgp6s=","T/fus088w+4ULO2CfbjnAno=","OLW9yzgqBr3tBWIEKI2aYTU=","/0y7Wf/4Abujj+T1DLM7aoc=","iA7oIYjuxOhapmtzWYZGCcg=","EcgdqRHUlh1M3efkptnBrBk=","ZopO0WbCU0619Ghi8+y8z1Y=","PlnqpD6gMupgK+LXRWfS+6Y=","SRu53Em297mZAm1REFKvmOk=","0N1MVNCMpUyPeeHG7w0oPTg=","p58fLKeaYB92UG5AujhVXnc=","ideLvYkmOYvpq6AuMV5aMn4=","/pXYxf4w/NgQgi+oZGsnUTE=","Z1MtTWcKri0G+aM/mzSg9OA=","EBF+NRAca37/0Cy5zgHdl68=","SMLaQEh+CtoqD6YMeIqzo18=","P4CJOD9oz4nTJimKLb/OwBA=","pkZ8sKZSnXzFXaUd0uBJZcE=","0QQvyNFEWC88dCqbh9U0Bo4=","Fv0pWhaWXyly/qxqo+uVDTw=","Yb96ImGAmnqL1yPs9t7obnM=","+HmPqvi6yI+drK97CYFvy6I=","jzvc0o+sDdxkhSD9XLQSqO0=","1+h4p9fObHixWqpI6j98nB0=","oKor36DYqStIcyXOvwoB/1I=","OWzeVzni+95eCKlZQFWGWoM=","Ti6NL070Po2nISbfFWD7Ocw=","qoPSbqpb9dLCAbimCCnZTPo=","3cGBFt1NMIE7KDcgXRykL7U=","RAd0nkR3YnQtU7u3okMjimQ=","M0Un5jNhpyfUejQx93Ze6Ss=","a5aDk2sDxoMBpb6EQf0w3ds=","HNTQ6xwVA9D4jDECFMhNvpQ=","hRIlY4UvUSXu972V65fKG0U=","8lB2G/I5lHYX3jITvqK3eAo=","NalwiTXrk3BZVLTimpwWc7g=","Qusj8UL9ViOgfTtkz6lrEPc=","2y3WedvHBNa2BrfzMPbstSY=","rG+FAazRwYVPLzh1ZcOR1mk=","9LwhdPSzoCGa8LLA00j/4pk=","g/5yDIOlZXJj2T1Ghn2CgdY=","GjiHhBqfN4d1orHReSIFJAc=","bXrU/G2J8tSMiz5XLBd4R0g=","z385Bs/cvDm/4pAjQ7BBzms=","uD1qfrjKeWpGyx+lFoU8rSQ=","Ifuf9iHwK59QsJMy6dq7CPU=","VrnMjlbm7sypmRy0vO/Ga7o=","Dmpo+w6Ej2h8RpYBCmSoX0o=","eSg7g3mSSjuFbxmHX1HVPAU=","4O7OC+CoGM6TFJUQoA5SmdQ=","l6ydc5e+3Z1qPRqW9Tsv+ps=","UFWb4VBs2pskt5xn0QWO8Sk=","JxfImSd6H8jdnhPhhDDzkmY=","vtE9Eb5ATT3L5Z92e290N7c=","yZNuaclWiG4yzBDwLloJVPg=","kUDKHJE06crnE5pFmNFnYAg=","5gKZZOYiLJkeOhXDzeQaA0c=","f8Rs7H8YfmwIQZlUMrudppY=","CIY/lAgOuz/xaBbSZ47gxdk=","7Ctg1eyhcGCUSIiresfCsO8=","m2kzrZu3tTNtYQctL/K/06A=","Aq/GJQKN58Z7Gou60K04dnE=","de2VXXWbIpWCMwQ8hZhFFT4=","LT4xKC35QzFX7I6JMxMrIc4=","WnxiUFrvhmKuxQEPZiZWQoE=","w7qX2MPV1Je4vo2YmXnR51A=","tPjEoLTDEcRBlwIezEyshB8=","cwHCMnMRFsIPHYTv6HINj60=","BEORSgQH05H2NAtpvUdw7OI=","nYVkwp09gWTgT4f+Qhj3STM=","6sc3uuorRDcZZgh4Fy2KKnw=","shSTz7JJJZPMuYLNoabkHow=","xVbAt8Vf4MA1kA1L9JOZfcM=","XJA1P1xlsjUj64HcC8we2BI=","K9JmRytzd2bawg5aXvlju10="]},_resource:null,$type:new n.ig.Type("RSP17",n.ig.$ot)},!0);n.ig.util.defType("RSP18:lm","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["7/u3cZWvx9fw3ElSrUsgQ9mS","7/u3cZWvx9fw3ElSrUsgQ9mS","w+tz4jdDk7P9pZKkR5ZAhq85","LBDEk6LsVGQNedv26t1gxXar","m8vm2W6GO3vnVzlVjjGAEUNy","dDBRqPsp/KwXi3AHI3qgUprg","WCCVO1nFqMga8qvxyafAl+xL","t9siSsxqbx/qLuKjZOzg1DXZ","K4vRr9wRdvbTrnKqAWIdIobk","xHBm3km+sSEjcjv4rCk9YV92","6GCiTetS5UUuC+AORvRdpCnd","B5sVPH79IpLe16lc67995/BP","sEA3drKXTY00+Uv/j1OdM8WW","X7uAByc4ilrEJQKtIhi9cBwE","c6tElIXU3j7JXNlbyMXdtWqv","nFDz5RB7Gek5gJAJZY799rM9","Vgu/Q6Ui7PG7QeRJAsQ6RBHV","ufAIMjCNKyZLna0br48aB8hH","leDMoZJhf0JG5HbtRVJ6wr7s","eht70AfOuJW2OD+/6BlagWd+","zcBZmsuk14pcFt0cjPW6VVKn","Ijvu614LEF2sypROIb6aFos1","DisqePznRDmhs0+4y2P60/2e","4dCdCWlIg+5RbwbqZijakCQM","fYBu7Hkzmgdo75bjA6YnZpcx","knvZneycXdCYM9+xru0HJU6j","vmsdDk5wCbSVSgRHRDBn4DgI","UZCqf9vfzmNllk0V6XtHo+Ga","5kuINRe1oXyPuK+2jZend9RD","CbA/RIIaZqt/ZObkINyHNA3R","JaD71yD2Ms9yHT0SygHn8Xt6","yltMprVZ9RiCwXRAZ0rHsqLo","rBZjhldExf9rgtWSBJV0iCK3","Q+3U98LrAiibXpzAqd5Uy/sl","b/0QZGAHVkyWJ0c2QwM0Do2O","gAanFfWokZtm+w5k7kgUTVQc","N92FXznC/oSM1ezHiqT0mWHF","2CYyLqxtOVN8CaWVJ+/U2rhX","9Db2vQ6BbTdxcH5jzTK0H878","G81BzJsuquCBrDcxYHmUXBdu","h52yKYtVswm4LKc4BfdpqqRT","aGYFWB76dN5I8O5qqLxJ6X3B","RHbBy7wWILpFiTWcQmEpLAtq","q412uim55221VXzO7yoJb9L4","HFZU8OXTiHJfe55ti8bpu+ch","863jgXB8T6Wvp9c/Jo3J+D6z","370nEtKQG8Gi3gzJzFCpPUgY","MEaQY0c/3BZSAkWbYRuJfpGK","+h3cxfJmKQ7QwzHbBlFOzDNi","FeZrtGfJ7tkgH3iJqxpuj+rw","OfavJ8Ulur0tZqN/QccOSpxb","1g0YVlCKfWrduuot7IwuCUXJ","YdY6HJzgEnU3lAiOiGDO3XAQ","ji2NbQlP1aLHSEHcJSvunqmC","oj1J/qujgcbKMZoqz/aOW98p","Tcb+jz4MRhE67dN4Yr2uGAa7","0ZYNai53X/gDbUNxBzNT7rWG","Pm26G7vYmC/zsQojqnhzrWwU","En1+iBk0zEv+yNHVQKUTaBq/","/YbJ+YybC5wOFJiH7e4zK8Mt","Sl3rs0DxZIPkOnokiQLT//b0","paZcwtVeo1QU5jN2JEnzvC9m","ibaYUXey9zAZn+iAzpSTeVnN","Zk0vIOIdMOfpQ6HSY9+zOoBf","RSzGEa6Il+PWGbc5CDfoDURz","qtdxYDsnUDQmxf5rpXzITp3h","hse185nLBFArvCWdT6Goi+tK","aTwCggxkw4fbYGzP4uqIyDLY","3ucgyMAOrJgxTo5shgZoHAcB","MRyXuVWha0/Bksc+K01IX96T","HQxTKvdNPyvM6xzIwZAomqg4","8vfkW2Li+Pw8N1WabNsI2XGq","bqcXvnKZ4RUFt8WTCVX1L8KX","gVygz+c2JsL1a4zBpB7VbBsF","rUxkXEXacqb4Elc3TsO1qW2u","QrfTLdB1tXEIzh5l44iV6rQ8","9WzxZxwf2m7i4PzGh2R1PoHl","GpdGFomwHbkSPLWUKi9VfVh3","NoeChStcSd0fRW5iwPI1uC7c","2Xw19L7zjgrvmScwbbkV+/dO","Eyd5UguqexJtWFNwCvPSSVWm","/NzOI54FvMWdhBoip7jyCow0","0MwKsDzp6KGQ/cHUTWWSz/qf","Pze9walGL3ZgIYiG4C6yjCMN","iOyfi2UsQGmKD2olhMJSWBbU","Zxco+vCDh7560yN3KYlyG89G","SwfsaVJv09p3qviBw1QS3rnt","pPxbGMfAFA2HdrHTbh8ynWB/","OKyo/de7DeS+9iHaC5HPa9NC","11cfjEIUyjNOKmiIptrvKArQ","+0fbH+D4nldDU7N+TAeP7Xx7","FLxsbnVXWYCzj/os4UyvrqXp","o2dOJLk9Np9ZoRiPhaBPepAw","TJz5VSyS8UipfVHdKOtvOUmi","YIw9xo5+pSykBIorwjYP/D8J","j3eKtxvRYvtU2MN5b30vv+ab","6Tqll/nMUhy9m2KrDKKchWbE","BsES5mxjlctNRyv5oem8xr9W","KtHWdc6Pwa9APvAPSzTcA8n9","xSphBFsgBniw4rld5n/8QBBv","cvFDTpdKaWdazFv+gpMclCW2","nQr0PwLlrrCqEBKsL9g81/wk","sRowrKAJ+tSnaclaxQVcEoqP","XuGH3TWmPQNXtYAIaE58UVMd","wrF0OCXdJOpuNRABDcCBp+Ag","LUrDSbBy4z2e6VlToIuh5Dmy","AVoH2hKet1mTkIKlSlbBIU8Z","7qGwq4cxcI5jTMv35x3hYpaL","WXqS4UtbH5GJYilUg/EBtqNS","toElkN702EZ5vmAGLroh9XrA","mpHhA3wYjCJ0x7vwxGdBMAxr","dWpWcum3S/WEG/KiaSxhc9X5","vzEa1Fzuvu0G2obiDmamwXcR","UMqtpclBeTr2Bs+woy2Ggq6D","fNppNmutLV77fxRGSfDmR9go","kyHeR/4C6okLo10U5LvGBAG6","JPr8DTJohZbhjb+3gFcm0DRj","ywFLfKfHQkERUfblLRwGk+3x","5xGP7wUrFiUcKC0Tx8FmVpta","COo4npCE0fLs9GRBaopGFULI","lLrLe4D/yBvVdPRIDwS74/H1","e0F8ChVQD8wlqL0aok+boChn","V1G4mbe8W6go0WbsSJL7ZV7M","uKoP6CITnH/YDS++5dnbJode","D3Etou5582AyI80dgTU78rKH","4Iqa03vWNLfC/4RPLH4bsWsV","zJpeQNk6YNPPhl+5xqN7dB2+","I2HpMUyVpwQ/Whbra+hbN8Qs","iliRIkENM9uxMnNyEG7NGojm","ZaMmU9Si9AxB7jogvSXtWVF0","SbPiwHZOoGhMl+HWV/iNnCff","pkhVsePhZ7+8S6iE+rOt3/5N","EZN3+y+LCKBWZUonnl9NC8uU","/mjAirokz3emuQN1MxRtSBIG","0ngEGRjImxOrwNiD2ckNjWSt","PYOzaI1nXMRbHJHRdIItzr0/","odNAjZ0cRS1inAHYEQzQOA4C","Tij3/AizgvqSQEiKvEfwe9eQ","Yjgzb6pf1p6fOZN8VpqQvqE7","jcOEHj/wEUlv5dou+9Gw/Xip","OhimVPOaflaFyziNnz1QKU1w","1eMRJWY1uYF1F3HfMnZwapTi","+fPVtsTZ7eV4bqop2KsQr+JJ","Fghix1F2KjKIsuN7deAw7Dvb","3FMuYeQv3yoKc5c7Eqr3Xpkz","M6iZEHGAGP36r95pv+HXHUCh","H7hdg9NsTJn31gWfVTy32DYK","8EPq8kbDi04HCkzN+HeXm++Y","R5jIuIqp5FHtJK5unJt3T9pB","qGN/yR8GI4Yd+Oc8MdBXDAPT","hHO7Wr3qd+IQgTzK2w03yXV4","a4gMKyhFsDXgXXWYdkYXiqzq","99j/zjg+qdzZ3eWRE8jqfB/X","GCNIv62RbgspAazDvoPKP8ZF","NDOMLA99Om8keHc1VF6q+rDu","28g7XZrS/bjUpD5n+RWKuWl8","bBMZF1a4kqc+itzEnflqbVyl","g+iuZsMXVXDOVpWWMLJKLoU3","r/hq9WH7ARTDL05g2m8q6/Oc","QAPdhPRUxsMz8wcydyQKqCoO","Jk7ypBZJ9iTasKbgFPu5kqpR","ybVF1YPmMfMqbO+yubCZ0XPD","5aWBRiEKZZcnFTREU235FAVo","Cl42N7SlokDXyX0W/ibZV9z6","vYUUfXjPzV8955+1mso5g+kj","Un6jDO1gCojNO9bnN4EZwDCx","fm5nn0+MXuzAQg0R3Vx5BUYa","kZXQ7tojmTswnkRDcBdZRp+I","DcUjC8pYgNIJHtRKFZmksCy1","4j6Uel/3RwX5wp0YuNKE8/Un","zi5Q6f0bE2H0u0buUg/kNoOM","IdXnmGi01LYEZw+8/0TEdVoe","lg7F0qTeu6nuSe0fm6gkoW/H","efVyozFxfH4elaRNNuME4rZV","VeW2MJOdKBoT7H+73D5kJ8D+","uh4BQQYy783jMDbpcXVEZBls","cEVN57NrGtVh8UKpFj+D1ruE","n776libE3QKRLQv7u3SjlWIW","s64+BYQoiWacVNANUanDUBS9","XFWJdBGHTrFsiJlf/OLjE80v","646rPt3tIa6Gpnv8mA4Dx/j2","BHUcT0hC5nl2ejKuNUUjhCFk","KGXY3Oqush17A+lY35hDQVfP","x55vrX8BdcqL36AKctNjAo5d","W86cSG96bCOyXzADF12e9D1g","tDUrOfrVq/RCg3lRuha+t+Ty","mCXvqlg5/5BP+qKnUMvecpJZ","d95Y282WOEe/Juv1/YD+MUvL","wAV6kQH8V1hVCAlWmWwe5X4S","L/7N4JRTkI+l1EAENCc+pqeA","A+4Jcza/xOuorZvy3vpeY9Er","7BW+AqMQAzxYcdKgc7F+IAi5","z3RXM++FpDhnK8RLGFklF8yV","II/gQnoqY++X940ZtRIFVBUH","DJ8k0djGN4uajlbvX89lkWOs","42SToE1p8FxqUh+98oRF0ro+","VL+x6oEDn0OAfP0elmilBo/n","u0QGmxSsWJRwoLRMOyOFRVZ1","l1TCCLZADPB92W+60f7lgCDe","eK91eSPvyyeNBSbofLXFw/lM","5P+GnDOU0s60hbbhGTs4NUpx","CwQx7aY7FRlEWf+ztHAYdpPj","JxT1fgTXQX1JICRFXq14s+VI","yO9CD5F4hqq5/G0X8+ZY8Dza","fzRgRV0S6bVT0o+0lwq4JAkD","kM/XNMi9LmKjDsbmOkGYZ9CR","vN8Tp2pRegaudx0Q0Jz4oqY6","UySk1v/+vdFeq1RCfdfY4X+o","mX/ocEqnSMncaiACGp0fU91A","doRfAd8Ijx4stmlQt9Y/EATS","WpSbkn3k23ohz7KmXQtf1XJ5","tW8s4+hLHK3RE/v08EB/lqvr","ArQOqSQhc7I7PRlXlKyfQp4y","7U+52LGOtGXL4VAFOee/AUeg","wV99SxNi4AHGmIvz0zrfxDEL","LqTKOobNJ9Y2RMKhfnH/h+iZ","svQ535a2Pj8PxFKoG/8CcVuk","XQ+OrgMZ+ej/GBv6trQiMoI2","cR9KPaH1rYzyYcAMXGlC9/Sd","nuT9TDRaalsCvYle8SJitC0P","KT/fBvgwBUTok2v9lc6CYBjW","xsRod22fwpMYTyKvOIWiI8FE","6tSs5M9zlvcVNvlZ0ljC5rfv","BS8blVrcUSDl6rALfxPipW59","Y2I0tbjBYccMqRHZHMxRn+4i","jJmDxC1uphD8dViLsYdx3Dew","oIlHV4+C8nTxDIN9W1oRGUEb","T3LwJhotNaMB0Mov9hExWpiJ","+KnSbNZHWrzr/iiMkv3Rjq1Q","F1JlHUPonWsbImHeP7bxzXTC","O0KhjuEEyQ8WW7oo1WuRCAJp","1LkW/3SrDtjmh/N6eCCxS9v7","SOnlGmTQFzHfB2NzHa5MvWjG","pxJSa/F/0OYv2yohsOVs/rFU","iwKW+FOThIIiovHXWjgMO8f/","ZPkhicY8Q1XSfriF93MseB5t","0yIDwwpWLEo4UFomk5/MrCu0","PNm0sp/5653IjBN0PtTs7/Im","EMlwIT0Vv/nF9ciC1AmMKoSN","/zLHUKi6eC41KYHQeUKsaV0f","NWmL9h3jjTa36PWQHghr2//3","2pI8h4hMSuFHNLzCs0NLmCZl","9oL4FCqgHoVKTWc0WZ4rXVDO","GXlPZb8P2VK6kS5m9NULHolc","rqJtL3Nltk1Qv8zFkDnryryF","QVnaXubKcZqgY4WXPXLLiWUX","bUkezUQmJf6tGl5h16+rTBO8","grKpvNGJ4ildxhczeuSLD8ou","HuJaWcHy+8BkRoc6H2p2+XkT","8RntKFRdPBeUms5osiFWuqCB","3Qkpu/axaHOZ4xWeWPw2f9Yq","MvKeymMer6RpP1zM9bcWPA+4","hSm8gK90wLuDEb5vkVv26Dph","atIL8TrbB2xzzfc9PBDWq+Pz","RsLPYpg3Uwh+tCzL1s22bpVY","qTl4Ew2YlN+OaGWZe4aWLUzK"]},_resource:null,$type:new n.ig.Type("RSP18",n.ig.$ot)},!0);n.ig.util.defType("RSP20:ln","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["mLnwBW9jBtxwlkUkuxbkxnl5pa4=","mLnwBW9jBtxwlkUkuxbkxnl5pa4=","LW/9Ct7GDKXgMYpIayzVkfLyV0E=","tdYND7GlCnmQp89s0DoxV4uL8u8=","Wt7nFKGRGFfdYgmQ1li3P/n5roI=","wmcXEc7yHout9Ey0bU5T+YCACyw=","d7EaHn9XFPI9U4PYvXRirgsL+cM=","7wjqGxA0Ei5Nxcb8BmKGaHJyXG0=","tKHTKF8/MK6nxBI9sbBzfu/vQRk=","LBgjLTBcNnLXUlcZCqaXuJaW5Lc=","mc4uIoH5PAtH9Zh12pym7x0dFlg=","AXfeJ+6aOtc3Y91RYYpCKWRks/Y=","7n80PP6uKPl6phutZ+jEQRYW75s=","dsbEOZHNLiUKMF6J3P4gh29vSjU=","wxDJNiBoJFyal5HlDMQR0OTkuNo=","W6k5M08LIoDqAdTBt9L1Fp2dHXQ=","dV+7UL5+YEFTlSR6f33m/MPDgjI=","7eZLVdEdZp0jA2FexGsCOrq6J5w=","WDBGWmC4bOSzpK4yFFEzbTEx1XM=","wIm2Xw/bajjDMusWr0fXq0hIcN0=","L4FcRB/veBaO9y3qqSVRwzo6LLA=","tzisQXCMfsr+YWjOEjO1BUNDiR4=","Au6hTsEpdLNuxqeiwgmEUsjIe/E=","mldRS65Kcm8eUOKGeR9glLGx3l8=","wf5oeOFBUO/0UTZHzs2Vgiwswys=","WUeYfY4iVjOEx3NjddtxRFVVZoU=","7JGVcj+HXEoUYLwPpeFAE97elGo=","dChld1DkWpZk9vkrHvek1aenMcQ=","myCPbEDQSLgpMz/XGJUivdXVbak=","A5l/aS+zTmRZpXrzo4PGe6ysyAc=","tk9yZp4WRB3JArWfc7n3LCcnOug=","LvaCY/F1QsG5lPC7yK8T6l5en0Y=","6r5roGH8wIKmN0j0/vrR5ZubGWQ=","cgebpQ6fxl7WoQ3QRew1I+LivMo=","x9GWqr86zCdGBsK8ldYEdGlpTiU=","X2hmr9BZyvs2kIeYLsDgshAQ64s=","sGCMtMBt2NV7VUFkKKJm2mJit+Y=","KNl8sa8O3gkLwwRAk7SCHBsbEkg=","nQ9xvh6r1HCbZMssQ46zS5CQ4Kc=","BbaBu3HI0qzr8o4I+JhXjenpRQk=","Xh+4iD7D8CwB81rJT0qim3R0WH0=","xqZIjVGg9vBxZR/t9FxGXQ0N/dM=","c3BFguAF/InhwtCBJGZ3CoaGDzw=","68m1h49m+lWRVJWln3CTzP//qpI=","BMFfnJ9S6HvckVNZmRIVpI2N9v8=","nHivmfAx7qesBxZ9IgTxYvT0U1E=","Ka6ilkGU5N48oNkR8j7ANX9/ob4=","sRdSky734gJMNpw1SSgk8wYGBBA=","n+HQ8N+CoMP1omyOgYc3GVhYm1Y=","B1gg9bDhph+FNCmqOpHT3yEhPvg=","so4t+gFErGYVk+bG6qviiKqqzBc=","Kjfd/24nqrplBaPiUb0GTtPTabk=","xT835H4TuJQowGUeV9+AJqGhNdQ=","XYbH4RFwvkhYViA67Mlk4NjYkHo=","6FDK7qDVtDHI8e9WPPNVt1NTYpU=","cOk668+2su24Z6pyh+WxcSoqxzs=","K0AD2IC9kG1SZn6zMDdEZ7e32k8=","s/nz3e/elrEi8DuXiyGgoc7Of+E=","Bi/+0l57nMiyV/T7WxuR9kVFjQ4=","npYO1zEYmhTCwbHf4A11MDw8KKA=","cZ7kzCEsiDqPBHcj5m/zWE5OdM0=","6ScUyU5Pjub/kjIHXXkXnjc30WM=","XPEZxv/qhJ9vNf1rjUMmyby8I4w=","xEjpw5CJgkMfo7hPNlXCD8XFhiI=","yWHWXcLlnRlRbpD14em/1ysrMsg=","UdgmWK2Gm8Uh+NXRWv9bEVJSl2Y=","5A4rVxwjkbyxXxq9isVqRtnZZYk=","fLfbUnNAl2DByV+ZMdOOgKCgwCc=","k78xSWN0hU6MDJllN7EI6NLSnEo=","CwbBTAwXg5L8mtxBjKfsLqurOeQ=","vtDMQ72yietsPRMtXJ3deSAgyws=","Jmk8RtLRjzccq1YJ54s5v1lZbqU=","fcAFdZ3arbf2qoLIUFnMqcTEc9E=","5Xn1cPK5q2uGPMfs608ob7291n8=","UK/4f0McoRIWmwiAO3UZODY2JJA=","yBYIeix/p85mDU2kgGP9/k9PgT4=","Jx7iYTxLteAryItYhgF7lj093VM=","v6cSZFMoszxbXs58PRefUEREeP0=","CnEfa+KNuUXL+QEQ7S2uB8/PihI=","ksjvbo3uv5m7b0Q0VjtKwba2L7w=","vD5tDXyb/VgC+7SPnpRZK+josPo=","JIedCBP4+4RybfGrJYK97ZGRFVQ=","kVGQB6Jd8f3iyj7H9biMuhoa57s=","CehgAs0+9yGSXHvjTq5ofGNjQhU=","5uCKGd0K5Q/fmb0fSMzuFBERHng=","fll6HLJp49OvD/g789oK0mhou9Y=","y493EwPM6ao/qDdXI+A7hePjSTk=","UzaHFmyv73ZPPnJzmPbfQ5qa7Jc=","CJ++JSOkzfalP6ayLyQqVQcH8eM=","kCZOIEzHyyrVqeOWlDLOk35+VE0=","JfBDL/1iwVNFDiz6RAj/xPX1pqI=","vUmzKpIBx481mGne/x4bAoyMAww=","UkFZMYI11aF4Xa8i+Xydav7+X2E=","yvipNO1W030Iy+oGQmp5rIeH+s8=","fy6kO1zz2QSYbCVqklBI+wwMCCA=","55dUPjOQ39jo+mBOKUasPXV1rY4=","I9+9/aMZXZv3WdgBHxNuMrCwK6w=","u2ZN+Mx6W0eHz50lpAWK9MnJjgI=","DrBA933fUT4XaFJJdD+7o0JCfO0=","lgmw8hK8V+Jn/hdtzylfZTs72UM=","eQFa6QKIRcwqO9GRyUvZDUlJhS4=","4biq7G3rQxBarZS1cl09yzAwIIA=","VG6n49xOSWnKClvZomcMnLu70m8=","zNdX5rMtT7W6nB79GXHoWsLCd8E=","l35u1fwmbTVQnco8rqMdTF9farU=","D8ee0JNFa+kgC48YFbX5iiYmzxs=","uhGT3yLgYZCwrEB0xY/I3a2tPfQ=","Iqhj2k2DZ0zAOgVQfpksG9TUmFo=","zaCJwV23dWKN/8OsePuqc6amxDc=","VRl5xDLUc779aYaIw+1Otd/fYZk=","4M90y4NxecdtzknkE9d/4lRUk3Y=","eHaEzuwSfxsdWAzAqMGbJC0tNtg=","VoAGrR1nPdqkzPx7YG6IznNzqZ4=","zjn2qHIEOwbUWrlf23hsCAoKDDA=","e+/7p8OhMX9E/XYzC0JdX4GB/t8=","41YLoqzCN6M0azMXsFS5mfj4W3E=","DF7hubz2JY15rvXrtjY/8YqKBxw=","lOcRvNOVI1EJOLDPDSDbN/PzorI=","ITEcs2IwKSiZn3+j3RrqYHh4UF0=","uYjstg1TL/TpCTqHZgwOpgEB9fM=","4iHVhUJYDXQDCO5G0d77sJyc6Ic=","epglgC07C6hznqtiasgfduXlTSk=","z04oj5yeAdHjOWQOuvIuIW5uv8Y=","V/fYivP9Bw2TryEqAeTK5xcXGmg=","uP8ykePJFSPeaufWB4ZMj2VlRgU=","IEbClIyqE/+u/KLyvJCoSRwc46s=","lZDPmz0PGYY+W22ebKqZHpeXEUQ=","DSk/nlJsH1pOzSi617x92O7utOo=","j8KxupnXJzKi3D33389js1ZWZI0=","F3tBv/a0Ie7SSnjTZNmHdS8vwSM=","oq1MsEcRK5dC7be/tOO2IqSkM8w=","OhS8tShyLUsye/KbD/VS5N3dlmI=","1RxWrjhGP2V/vjRnCZfUjK+vyg8=","TaWmq1clObkPKHFDsoEwStbWb6E=","+HOrpOaAM8Cfj74vYrsBHV1dnU4=","YMpboYnjNRzvGfsL2a3l2yQkOOA=","O2NiksboF5wFGC/Kbn8Qzbm5JZQ=","o9qSl6mLEUB1jmru1Wn0C8DAgDo=","FgyfmBguGznlKaWCBVPFXEtLctU=","jrVvnXdNHeWVv+CmvkUhmjIy13s=","Yb2Fhmd5D8vYeiZauCen8kBAixY=","+QR1gwgaCReo7GN+AzFDNDk5Lrg=","TNJ4jLm/A244S6wS0wtyY7Ky3Fc=","1GuIidbcBbJI3ek2aB2WpcvLefk=","+p0K6iepR3PxSRmNoLKFT5WV5r8=","YiT670jKQa+B31ypG6RhiezsQxE=","1/L34PlvS9YReJPFy55Q3mdnsf4=","T0sH5ZYMTQph7tbhcIi0GB4eFFA=","oEPt/oY4XyQsKxAdduoycGxsSD0=","OPod++lbWfhcvVU5zfzWthUV7ZM=","jSwQ9Fj+U4HMGppVHcbn4Z6eH3w=","FZXg8TedVV28jN9xptADJ+fnutI=","TjzZwniWd91WjQuwEQL2MXp6p6Y=","1oUpxxf1cQEmG06UqhQS9wMDAgg=","Y1MkyKZQe3i2vIH4ei4joIiI8Oc=","++rUzckzfaTGKsTcwTjHZvHxVUk=","FOI+1tkHb4qL7wIgx1pBDoODCSQ=","jFvO07ZkaVb7eUcEfEylyPr6rIo=","OY3D3AfBYy9r3ohorHaUn3FxXmU=","oTQz2WiiZfMbSM1MF2BwWQgI+8s=","ZXzaGvgr57AE63UDITWyVs3Nfek=","/cUqH5dI4Wx0fTAnmiNWkLS02Ec=","SBMnECbt6xXk2v9LShlnxz8/Kqg=","0KrXFUmO7cmUTLpv8Q+DAUZGjwY=","P6I9Dlm6/+fZiXyT920FaTQ002s=","pxvNCzbZ+TupHzm3THvhr01NdsU=","Es3ABId880I5uPbbnEHQ+MbGhCo=","inQwAegf9Z5JLrP/J1c0Pr+/IYQ=","0d0JMqcU1x6jL2c+kIXBKCIiPPA=","SWT5N8h30cLTuSIaK5Ml7ltbmV4=","/LL0OHnS27tDHu12+6kUudDQa7E=","ZAsEPRax3WcziKhSQL/wf6mpzh8=","iwPuJgaFz0l+TW6uRt12F9vbknI=","E7oeI2nmyZUO2yuK/cuS0aKiN9w=","pmwTLNhDw+yefOTmLfGjhikpxTM=","PtXjKbcgxTDu6qHCludHQFBQYJ0=","ECNhSkZVh/FXflF5XkhUqg4O/9s=","iJqRTyk2gS0n6BRd5V6wbHd3WnU=","PUycQJiTi1S3T9sxNWSBO/z8qJo=","pfVsRffwjYjH2Z4VjnJl/YWFDTQ=","Sv2GXufEn6aKHFjpiBDjlff3UVk=","0kR2W4inmXr6ih3NMwYHU46O9Pc=","Z5J7VDkCkwNqLdKh4zw2BAUFBhg=","/yuLUVZhld8au5eFWCrSwnx8o7Y=","pIKyYhlqt1/wukNE7/gn1OHhvsI=","PDtCZ3YJsYOALAZgVO7DEpiYG2w=","ie1PaMesu/oQi8kMhNTyRRMT6YM=","EVS/bajPvSZgHYwoP8IWg2pqTC0=","/lxVdrj7rwgt2ErUOaCQ6xgYEEA=","ZuWlc9eYqdRdTg/wgrZ0LWFhte4=","0zOofGY9o63N6cCcUoxFeurqRwE=","S4pYeQlepXG9f4W46ZqhvJOT4q8=","RqNn51syuivzsq0CPibcZH19VkU=","3hqX4jRRvPeDJOgmhTA4ogQE8+s=","a8ya7YX0to4TgydKVQoJ9Y+PAQQ=","83Vq6OqXsFJjFWJu7hztM/b2pKo=","HH2A8/qjonwu0KSS6H5rW4SE+Mc=","hMRw9pXApKBeRuG2U2iPnf39XWk=","MRJ9+SRlrtnO4S7ag1K+ynZ2r4Y=","qauN/EsGqAW+d2v+OERaDA8PCig=","8gK0zwQNioVUdr8/j5avGpKSF1w=","artEymtujFkk4PobNIBL3OvrsvI=","321JxdrLhiC0RzV35Lp6i2BgQB0=","R9S5wLWogPzE0XBTX6yeTRkZ5bM=","qNxT26WcktKJFLavWc4YJWtrud4=","MGWj3sr/lA75gvOL4tj84xISHHA=","hbOu0XtanndpJTznMuLNtJmZ7p8=","HQpe1BQ5mKsZs3nDifQpcuDgSzE=","M/zct+VM2mqgJ4l4QVs6mL6+1Hc=","q0Ussoov3LbQscxc+k3eXsfHcdk=","HpMhvTuK1s9AFgMwKnfvCUxMgzY=","hirRuFTp0BMwgEYUkWELzzU1Jpg=","aSI7o0Tdwj19RYDolwONp0dHevU=","8ZvLpiu+xOEN08XMLBVpYT4+31s=","RE3GqZobzpiddAqg/C9YNrW1LbQ=","3PQ2rPV4yETt4k+ERzm88MzMiBo=","h10Pn7pz6sQH45tF8OtJ5lFRlW4=","H+T/mtUQ7Bh3dd5hS/2tICgoMMA=","qjLylWS15mHn0hENm8ecd6Ojwi8=","MosCkAvW4L2XRFQpINF4sdraZ4E=","3YPoixvi8pPagZLVJrP+2aioO+w=","RToYjnSB9E+qF9fxnaUaH9HRnkI=","8OwVgcUk/jY6sBidTZ8rSFpabK0=","aFXlhKpH+OpKJl259onPjiMjyQM=","rB0MRzrOeqlVheX2wNwNgebmTyE=","NKT8QlWtfHUlE6DSe8rpR5+f6o8=","gXLxTeQIdgy1tG++q/DYEBQUGGA=","GcsBSItrcNDFIiqaEOY81m1tvc4=","9sPrU5tfYv6I5+xmFoS6vh8f4aM=","bnobVvQ8ZCL4calCrZJeeGZmRA0=","26wWWUWZblto1mYufahvL+3ttuI=","QxXmXCr6aIcYQCMKxr6L6ZSUE0w=","GLzfb2XxSgfyQffLcWx+/wkJDjg=","gAUvagqSTNuC17LvynqaOXBwq5Y=","NdMiZbs3RqIScH2DGkCrbvv7WXk=","rWrSYNRUQH5i5jinoVZPqIKC/Nc=","QmI4e8RgUlAvI/5bpzTJwPDwoLo=","2tvIfqsDVIxftbt/HCItBomJBRQ=","bw3FcRqmXvXPEnQTzBgcUQIC9/s=","97Q1dHXFWCm/hDE3dw74l3t7UlU=","2UK3F4SwGugGEMGMv6HrfSUlzRM=","QftHEuvTHDR2hoSoBLcPu1xcaL0=","9C1KHVp2Fk3mIUvE1I0+7NfXmlI=","bJS6GDUVEJGWtw7gb5vaKq6uP/w=","g5xQAyUhAr/bcsgcaflcQtzcY5E=","GyWgBkpCBGOr5I040u+4hKWlxj8=","rvOtCfvnDho7Q0JUAtWJ0y4uNNA=","NkpdDJSECMZL1QdwucNtFVdXkX4=","beNkP9uPKkah1NOxDhGYA8rKjAo=","9VqUOrTsLJrRQpaVtQd8xbOzKaQ=","QIyZNQVJJuNB5Vn5ZT1Nkjg420s=","2DVpMGoqID8xcxzd3iupVEFBfuU=","Nz2DK3oeMhF8ttoh2EkvPDMzIog=","r4RzLhV9NM0MIJ8FY1/L+kpKhyY=","GlJ+IaTYPrSch1Bps2X6rcHBdck=","guuOJMu7OGjsERVNCHMea7i40Gc="]},_resource:null,$type:new n.ig.Type("RSP20",n.ig.$ot)},!0);n.ig.util.defType("RSP22:lo","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["WbODsLb0E71FKByJHXtD/Vba5hqR9Q==","WbODsLb0E71FKByJHXtD/Vba5hqR9Q==","snsbfXH1JmeKUDgPOvaG56yp0TQ/9w==","68iYzccBNdrPeCSGJ43FGvpzNy6uAg==","efY2+uL3TM4JoHAedPER00VPv2h+8w==","IEW1SlQDX3NMiGyXaYpSLhOVWXLvBg==","y40th5MCaqmD8EgRTgeXNOnmblxBBA==","kj6uNyX2eRTG2FSYU3zUyb88iEbQ8Q==","8vFs6dnzmIESXeA86P8iu4qeY9D8+w==","q0LvWW8HizxXdfy19YRhRtxEhcptDg==","QIp3lKgGvuaYDdgz0gmkXCY3suTDDA==","GTn0JB7yrVvdJcS6z3LnoXDtVP5S+Q==","iwdaEzsE1E8b/ZAinA4zaM/R3LiCCA==","0rTZo43wx/Je1YyrgXVwlZkLOqIT/Q==","OXxBbkrx8iiRragtpvi1j2N4DYy9/w==","YM/C3vwF4ZXUhbSku4P2cjWi65YsCg==","+f/Yz6/7LR8kut14zeNEawkhxr3l6w==","oExbfxkPPqJhksHx0JgHll/7IKd0Hg==","S4TDst4OC3iu6uV39xXCjKWIF4naHA==","EjdAAmj6GMXrwvn+6m6BcfNS8ZNL6Q==","gAnuNU0MYdEtGq1muRJVuExuedWbGA==","2bpthfv4cmxoMrHvpGkWRRq0n88K7Q==","MnL1SDz5R7anSpVpg+TTX+DHqOGk7w==","a8F2+IoNVAviYongnp+QorYdTvs1Gg==","Cw60JnYItZ425z1EJRxm0IO/pW0ZEA==","Ur03lsD8piNzzyHNOGclLdVlQ3eI5Q==","uXWvWwf9k/m8twVLH+rgNy8WdFkm5w==","4MYs67EJgET5nxnCApGjynnMkkO3Eg==","cviC3JT/+VA/R01aUe13A8bwGgVn4w==","K0sBbCIL6u16b1HTTJY0/pAq/B/2Fg==","wIOZoeUK3ze1F3VVaxvx5GpZyzFYFA==","mTAaEVP+zIrwP2ncdmCyGTyDLSvJ4Q==","7+Otg0PrWj5Iaafwh9uI1hJCkWfXyw==","tlAuM/UfSYMNQbt5mqDLK0SYd31GPg==","XZi2/jIefFnCOZ//vS0OMb7rQFPoPA==","BCs1ToTqb+SHEYN2oFZNzOgxpkl5yQ==","lhWbeaEcFvBBydfu8yqZBVcNLg+pOA==","z6YYyRfoBU0E4ctn7lHa+AHXyBU4zQ==","JG6ABNDpMJfLme/hydwf4vuk/zuWzw==","fd0DtGYdIyqOsfNo1KdcH61+GSEHOg==","HRLBapoYwr9aNEfMbySqbZjc8rcrMA==","RKFC2izs0QIfHFtFcl/pkM4GFK26xQ==","r2naF+vt5NjQZH/DVdIsijR1I4MUxw==","9tpZp10Z92WVTGNKSKlvd2KvxZmFMg==","ZOT3kHjvjnFTlDfSG9W7vt2TTd9Vww==","PVd0IM4bncwWvCtbBq74Q4tJq8XENg==","1p/s7QkaqBbZxA/dISM9WXE6nOtqNA==","jyxvXb/uu6uc7BNUPFh+pCfgevH7wQ==","Fhx1TOwQdyFs03qISjjMvRtjV9oyIA==","T6/2/FrkZJwp+2YBV0OPQE25scCj1Q==","pGduMZ3lUUbmg0KHcM5KWrfKhu4N1w==","/dTtgSsRQvujq14ObbUJp+EQYPScIg==","b+pDtg7nO+9lcwqWPsndbl4s6LJM0w==","NlnABrgTKFIgWxYfI7Kekwj2DqjdJg==","3ZFYy38SHYjvIzKZBD9bifKFOYZzJA==","hCLbe8nmDjWqCy4QGUQYdKRf35zi0Q==","5O0ZpTXj76B+jpq0osfuBpH9NArO2w==","vV6aFYMX/B07poY9v7yt+8cn0hBfLg==","VpYC2EQWycf03qK7mDFo4T1U5T7xLA==","DyWBaPLi2nqx9r4yhUorHGuOAyRg2Q==","nRsvX9cUo253Luqq1jb/1dSyi2KwKA==","xKis72HgsNMyBvYjy028KIJobXgh3Q==","L2A0IqbhhQn9ftKl7MB5MngbWlaP3w==","dtO3khAVlrS4Vs4s8bs6zy7BvEweKg==","w9tHG4bLtHyQ0lP9E6sNsSSEP86ziw==","mmjEqzA/p8HV+k90DtBOTHJe2dQifg==","caBcZvc+khsagmvyKV2LVogt7vqMfA==","KBPf1kHKgaZfqnd7NCbIq973COAdiQ==","ui1x4WQ8+LKZciPjZ1ocYmHLgKbNeA==","457yUdLI6w/cWj9qeiFfnzcRZrxcjQ==","CFZqnBXJ3tUTIhvsXayahc1iUZLyjw==","UeXpLKM9zWhWCgdlQNfZeJu4t4hjeg==","MSor8l84LP2Cj7PB+1QvCq4aXB5PcA==","aJmoQunMP0DHp69I5i9s9/jAugTehQ==","g1Ewjy7NCpoI34vOwaKp7QKzjSpwhw==","2uKzP5g5GSdN95dH3NnqEFRpazDhcg==","SNwdCL3PYDOLL8Pfj6U+2etV43Yxgw==","EW+euAs7c47OB99Wkt59JL2PBWygdg==","+qcGdcw6RlQBf/vQtVO4Pkf8MkIOdA==","oxSFxXrOVelEV+dZqCj7wxEm1FifgQ==","OiSf1CkwmWO0aI6F3khJ2i2l+XNWYA==","Y5ccZJ/Eit7xQJIMwzMKJ3t/H2nHlQ==","iF+EqVjFvwQ+OLaK5L7PPYEMKEdplw==","0ewHGe4xrLl7EKoD+cWMwNfWzl34Yg==","Q9KpLsvH1a29yP6bqrlYCWjqRhsokw==","GmEqnn0zxhD44OISt8Ib9D4woAG5Zg==","8amyU7oy88o3mMaUkE/e7sRDly8XZA==","qBox4wzG4HdysNodjTSdE5KZcTWGkQ==","yNXzPfDDAeKmNW65NrdrYac7mqOqmw==","kWZwjUY3El/jHXIwK8wonPHhfLk7bg==","eq7oQIE2J4UsZVa2DEHthguSS5eVbA==","Ix1r8DfCNDhpTUo/ETque11IrY0EmQ==","sSPFxxI0TSyvlR6nQkZ6suJ0JcvUaA==","6JBGd6TAXpHqvQIuXz05T7Suw9FFnQ==","A1jeumPBa0slxSaoeLD8VU7d9P/rnw==","WutdCtU1ePZg7TohZcu/qBgHEuV6ag==","LDjqmMUg7kLYu/QNlHCFZzbGrqlkQA==","dYtpKHPU/f+dk+iEiQvGmmAcSLP1tQ==","nkPx5bTVyCVS68wCroYDgJpvf51btw==","x/ByVQIh25gXw9CLs/1Afcy1mYfKQg==","Vc7cYifXoozRG4QT4IGUtHOJEcEasw==","DH1f0pEjsTGUM5ia/frXSSVT99uLRg==","57XHH1YihOtbS7wc2ncSU98gwPUlRA==","vgZEr+DWl1YeY6CVxwxRron6Ju+0sQ==","3smGcRzTdsPK5hQxfI+n3LxYzXmYuw==","h3oFwaonZX6Pzgi4YfTkIeqCK2MJTg==","bLKdDG0mUKRAtiw+RnkhOxDxHE2nTA==","NQEevNvSQxkFnjC3WwJixkYr+lc2uQ==","pz+wi/4kOg3DRmQvCH62D/kXchHmSA==","/owzO0jQKbCGbnimFQX18q/NlAt3vQ==","FUSr9o/RHGpJFlwgMogw6FW+oyXZvw==","TPcoRjklD9cMPkCpL/NzFQNkRT9ISg==","1ccyV2rbw138ASl1WZPBDD/naBSBqw==","jHSx59wv0OC5KTX8ROiC8Wk9jg4QXg==","Z7wpKhsu5Tp2URF6Y2VH65NOuSC+XA==","Pg+qmq3a9oczeQ3zfh4EFsWUXzovqQ==","rDEErYgsj5P1oVlrLWLQ33qo13z/WA==","9YKHHT7YnC6wiUXiMBmTIixyMWZurQ==","Hkof0PnZqfR/8WFkF5RWONYBBkjArw==","R/mcYE8tukk62X3tCu8VxYDb4FJRWg==","JzZevrMoW9zuXMlJsWzjt7V5C8R9UA==","foXdDgXcSGGrdNXArBegSuOj7d7spQ==","lU1Fw8LdfbtkDPFGi5plUBnQ2vBCpw==","zP7Gc3QpbgYhJO3PluEmrU8KPOrTUg==","XsBoRFHfFxLn/LlXxZ3yZPA2tKwDow==","B3Pr9OcrBK+i1KXe2OaxmabsUraSVg==","7LtzOSAqMXVtrIFY/2t0g1yfZZg8VA==","tQjwiZbeIsgohJ3R4hA3fgpFg4KtoQ==","m6uONhGLdfg9uabnJksaf0gVfoF7Cw==","whgNhqd/ZkV4kbpuOzBZgh7PmJvq/g==","KdCVS2B+U5+36Z7oHL2cmOS8r7VE/A==","cGMW+9aKQCLywYJhAcbfZbJmSa/VCQ==","4l24zPN8OTY0Gdb5UroLrA1awekF+A==","u+47fEWIKotxMcpwT8FIUVuAJ/OUDQ==","UCajsYKJH1G+Se72aEyNS6HzEN06Dw==","CZUgATR9DOz7YfJ/dTfOtvcp9ser+g==","aVri38h47Xkv5EbbzrQ4xMKLHVGH8A==","MOlhb36M/sRqzFpS0897OZRR+0sWBQ==","2yH5ormNyx6ltH7U9EK+I24izGW4Bw==","gpJ6Eg952KPgnGJd6Tn93jj4Kn8p8g==","EKzUJSqPobcmRDbFukUpF4fEojn5Aw==","SR9XlZx7sgpjbCpMpz5q6tEeRCNo9g==","otfPWFt6h9CsFA7KgLOv8Cttcw3G9A==","+2RM6O2OlG3pPBJDncjsDX23lRdXAQ==","YlRW+b5wWOcZA3uf66heFEE0uDye4A==","O+fVSQiES1pcK2cW9tMd6RfuXiYPFQ==","0C9NhM+FfoCTU0OQ0V7Y8+2daQihFw==","iZzONHlxbT3We18ZzCWbDrtHjxIw4g==","G6JgA1yHFCkQowuBn1lPxwR7B1TgEw==","QhHjs+pzB5RVixcIgiIMOlKh4U5x5g==","qdl7fi1yMk6a8zOOpa/JIKjS1mDf5A==","8Gr4zpuGIfPf2y8HuNSK3f4IMHpOEQ==","kKU6EGeDwGYLXpujA1d8r8uq2+xiGw==","yRa5oNF309tOdocqHiw/Up1wPfbz7g==","It4hbRZ25gGBDqOsOaH6SGcDCthd7A==","e22i3aCC9bzEJr8lJNq5tTHZ7MLMGQ==","6VMM6oV0jKgC/uu9d6ZtfI7lZIQc6A==","sOCPWjOAnxVH1vc0at0ugdg/gp6NHQ==","WygXl/SBqs+IrtOyTVDrmyJMtbAjHw==","ApuUJ0J1uXLNhs87UCuoZnSWU6qy6g==","dEgjtVJgL8Z10AEXoZCSqVpX7+aswA==","LfugBeSUPHsw+B2evOvRVAyNCfw9NQ==","xjM4yCOVCaH/gDkYm2YUTvb+PtKTNw==","n4C7eJVhGhy6qCWRhh1Xs6Ak2MgCwg==","Db4VT7CXYwh8cHEJ1WGDeh8YUI7SMw==","VA2W/wZjcLU5WG2AyBrAh0nCtpRDxg==","v8UOMsFiRW/2IEkG75cFnbOxgbrtxA==","5naNgneWVtKzCFWP8uxGYOVrZ6B8MQ==","hrlPXIuTt0dnjeErSW+wEtDJjDZQOw==","3wrM7D1npPoipf2iVBTz74YTaizBzg==","NMJUIfpmkSDt3dkkc5k29XxgXQJvzA==","bXHXkUySgp2o9cWtbuJ1CCq6uxj+OQ==","/095pmlk+4luLZE1PZ6hwZWGM14uyA==","pvz6Ft+Q6DQrBY28IOXiPMNc1US/PQ==","TTRi2xiR3e7kfak6B2gnJjkv4moRPw==","FIfha65lzlOhVbWzGhNk22/1BHCAyg==","jbf7ev2bAtlRatxvbHPWwlN2KVtJKw==","1AR4yktvEWQUQsDmcQiVPwWsz0HY3g==","P8zgB4xuJL7bOuRgVoVQJf/f+G923A==","Zn9jtzqaNwOeEvjpS/4T2KkFHnXnKQ==","9EHNgB9sThdYyqxxGILHERY5ljM32A==","rfJOMKmYXaod4rD4BfmE7EDjcCmmLQ==","RjrW/W6ZaHDSmpR+InRB9rqQRwcILw==","H4lVTdhte82Xsoj3Pw8CC+xKoR2Z2g==","f0aXkyRomlhDNzxThIz0ednoSou10A==","JvUUI5KcieUGHyDamfe3hI8yrJEkJQ==","zT2M7lWdvD/JZwRcvnpynnVBm7+KJw==","lI4PXuNpr4KMTxjVowExYyObfaUb0g==","BrChacaf1pZKl0xN8H3lqpyn9ePLIw==","XwMi2XBrxSsPv1DE7QamV8p9E/la1g==","tMu6FLdq8PHAx3RCyotjTTAOJNf01A==","7Xg5pAGe40yF72jL1/AgsGbUws1lIQ==","WHDJLZdAwYSta/UaNeAXzmyRQU/IgA==","AcNKnSG00jnoQ+mTKJtUMzpLp1VZdQ==","6gvSUOa15+MnO80VDxaRKcA4kHv3dw==","s7hR4FBB9F5iE9GcEm3S1JbidmFmgg==","IYb/13W3jUqky4UEQREGHSne/ie2cw==","eDV8Z8NDnvfh45mNXGpF4H8EGD0nhg==","k/3kqgRCqy0um70Le+eA+oV3LxOJhA==","yk5nGrK2uJBrs6GCZpzDB9OtyQkYcQ==","qoGlxE6zWQW/NhUm3R81deYPIp80ew==","8zImdPhHSrj6HgmvwGR2iLDVxIWljg==","GPq+uT9Gf2I1Zi0p5+mzkkqm86sLjA==","QUk9CYmybN9wTjGg+pLwbxx8FbGaeQ==","03eTPqxEFcu2lmU4qe4kpqNAnfdKiA==","isQQjhqwBnbzvnmxtJVnW/Wae+3bfQ==","YQyIQ92xM6w8xl03kxiiQQ/pTMN1fw==","OL8L82tFIBF57kG+jmPhvFkzqtnkig==","oY8R4ji77JuJ0Shi+ANTpWWwh/Itaw==","+DySUo5P/ybM+TTr5XgQWDNqYei8ng==","E/QKn0lOyvwDgRBtwvXVQskZVsYSnA==","SkeJL/+62UFGqQzk346Wv5/DsNyDaQ==","2HknGNpMoFWAcVh8jPJCdiD/OJpTmA==","gcqkqGy4s+jFWUT1kYkBi3Yl3oDCbQ==","agI8Zau5hjIKIWBztgTEkYxW6a5sbw==","M7G/1R1NlY9PCXz6q3+HbNqMD7T9mg==","U359C+FIdBqbjMheEPxxHu8u5CLRkA==","Cs3+u1e8Z6fepNTXDYcy47n0AjhAZQ==","4QVmdpC9Un0R3PBRKgr3+UOHNRbuZw==","uLblxiZJQcBU9OzYN3G0BBVd0wx/kg==","KohL8QO/ONSSLLhAZA1gzaphW0qvYw==","czvIQbVLK2nXBKTJeXYjMPy7vVA+lg==","mPNQjHJKHrMYfIBPXvvmKgbIin6QlA==","wUDTPMS+DQ5dVJzGQ4Cl11ASbGQBYQ==","t5NkrtSrm7rlAlLqsjufGH7T0CgfSw==","7iDnHmJfiAegKk5jr0Dc5SgJNjKOvg==","Beh/06Vevd1vUmrliM0Z/9J6ARwgvA==","XFv8YxOqrmAqenZslbZaAoSg5waxSQ==","zmVSVDZc13TsoiL0xsqOyzucb0BhuA==","l9bR5ICoxMmpij5927HNNm1GiVrwTQ==","fB5JKUep8RNm8hr7/DwILJc1vnReTw==","Ja3KmfFd4q4j2gZy4UdL0cHvWG7Pug==","RWIIRw1YAzv3X7LWWsS9o/RNs/jjsA==","HNGL97usEIayd65fR7/+XqKXVeJyRQ==","9xkTOnytJVx9D4rZYDI7RFjkYszcRw==","rqqQispZNuE4J5ZQfUl4uQ4+hNZNsg==","PJQ+ve+vT/X+/8LILjWscLECDJCdQw==","ZSe9DVlbXEi7195BM07vjefY6ooMtg==","ju8lwJ5aaZJ0r/rHFMMqlx2r3aSitA==","11ymcCiuei8xh+ZOCbhpaktxO74zQQ==","Tmy8YXtQtqXBuI+Sf9jbc3fyFpX6oA==","F98/0c2kpRiEkJMbYqOYjiEo8I9rVQ==","/BenHAqlkMJL6LedRS5dlNtbx6HFVw==","paQkrLxRg38OwKsUWFUeaY2BIbtUog==","N5qKm5mn+mvIGP+MCynKoDK9qf2EUw==","bikJKy9T6daNMOMFFlKJXWRnT+cVpg==","heGR5uhS3AxCSMeDMd9MR54UeMm7pA==","3FISVl6mz7EHYNsKLKQPusjOntMqUQ==","vJ3QiKKjLiTT5W+ulyf5yP1sdUUGWw==","5S5TOBRXPZmWzXMnily6Nau2k1+Xrg==","DubL9dNWCENZtVehrdF/L1HFpHE5rA==","V1VIRWWiG/4cnUsosKo80gcfQmuoWQ==","xWvmckBUYuraRR+w49boG7gjyi14qA==","nNhlwvagcVefbQM5/q2r5u75LDfpXQ==","dxD9DzGhRI1QFSe/2SBu/BSKGxlHXw==","LqN+v4dVVzAVPTs2xFstAUJQ/QPWqg=="]},_resource:null,$type:new n.ig.Type("RSP22",n.ig.$ot)},!0);n.ig.util.defType("RSP24:lp","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["enapRrLt2GZzluVJgkg9K84B7fd/2ZB1","enapRrLt2GZzluVJgkg9K84B7fd/2ZB1","9OxPjHnHrczmMdeSGZB6VoECx/P+rz3q","jprmyssqdaqVpzLbm9hHfU8DKgSBdq2f","9cWeBfKTR4XRYrM5Mj30rB8Ek/vhQ3rJ","j7M3Q0B+n+Oi9FZwsHXJh9EFfgyemuq8","ASnRiYtU6kk3U2SrK62O+p4GVAgf7Ecj","e194zzm5Mi9ExYHiqeWz0VAHuf9gNddW","95chCvk7jhe/xHtyZHr1RT4IO+vfhvSP","jeGITEvWVnHMUp475jLIbvAJ1hygX2T6","A3tuhoD8I9tZ9azgfeqPE78K/BghKcll","eQ3HwDIR+70qY0mp/6KyOHELEe9e8FkQ","AlK/DwuoyZJupshLVkcB6SEMqBA+xY5G","eCQWSblFEfQdMC0C1A88wu8NRedBHB4z","9r7wg3JvZF6Ilx/ZT9d7v6AOb+PAarOs","jMhZxcCCvDj7AfqQzZ9GlG4PghS/syPZ","8zNCFO92AS5jlfbkyPT3inwQdsujEfUD","iUXrUl2b2UgQAxOtSrzKobIRmzzcyGV2","B98NmJaxrOKFpCF20WSN3P0SsThdvsjp","famk3iRcdIT2MsQ/Uyyw9zMTXM8iZ1ic","BvbcER3lRquy90Xd+skDJmMU5TBCUo/K","fIB1V68Ins3BYaCUeIE+Da0VCMc9ix+/","8hqTnWQi62dUxpJP41l5cOIWIsO8/bIg","iGw629bPMwEnUHcGYRFEWywXzzTDJCJV","BKRjHhZNjzncUY2WrI4Cz0IYTSB8lwGM","ftLKWKSgV1+vx2jfLsY/5IwZoNcDTpH5","8Egskm+KIvU6YFoEtR54mcMaitOCODxm","ij6F1N1n+pNJ9r9NN1ZFsg0bZyT94awT","8WH9G+TeyLwNMz6vnrP2Y10c3tud1HtF","ixdUXVYzENp+pdvmHPvLSJMdMyziDesw","BY2yl50ZZXDrAuk9hyOMNdweGShje0av","f/sb0S/0vRaYlAx0BWuxHhIf9N8cotba","+2aEKMPsAlzGN/HVjfXzCfgg7ItbIvcG","gRAtbnEB2jq1oRScD73OIjYhAXwk+2dz","D4rLpLorr5AgBiZHlGWJX3kiK3iljcrs","dfxi4gjGd/ZTkMMOFi20dLcjxo/aVFqZ","DqMaLTF/RdkXVULsv8gHpeckf3C6YY3P","dNWza4OSnb9kw6elPYA6jiklkofFuB26","+k9VoUi46BXxZJV+plh982YmuINEzrAl","gDn85/pVMHOC8nA3JBBA2KgnVXQ7FyBQ","DPGlIjrXjEt584qn6Y8GTMYo12CEpAOJ","docMZIg6VC0KZW/ua8c7ZwgpOpf7fZP8","+B3qrkMQIYefwl018B98GkcqEJN6Cz5j","gmtD6PH9+eHsVLh8cldBMYkr/WQF0q4W","+TQ7J8hEy86okTme27Ly4NksRJtl53lA","g0KSYXqpE6jbB9zXWfrPyxctqWwaPuk1","Ddh0q7GDZgJOoO4MwiKItlgug2ibSESq","d67d7QNuvmQ9NgtFQGq1nZYvbp/kkdTf","CFXGPCyaA3KlogcxRQEEg4QwmkD4MwIF","ciNvep532xTWNOJ4x0k5qEoxd7eH6pJw","/LmJsFVdrr5Dk9CjXJF+1QUyXbMGnD/v","hs8g9uewdtgwBTXq3tlD/sszsER5Ra+a","/ZBYOd4JRPd0wLQIdzzwL5s0CbsZcHjM","h+bxf2zknJEHVlFB9XTNBFU15Exmqei5","CXwXtafO6TuS8WOabqyKeRo2zkjn30Um","cwq+8xUjMV3hZ4bT7OS3UtQ3I7+YBtVT","/8LnNtWhjWUaZnxDIXvxxro4oasntfaK","hbROcGdMVQNp8JkKozPM7XQ5TFxYbGb/","Cy6ouqxmIKn8V6vROOuLkDs6ZljZGstg","cVgB/B6L+M+PwU6YuqO2u/U7i6+mw1sV","Cgd5MycyyuDLBM96E0YFaqU8MlDG9oxD","cHHQdZXfEoa4kiozkQ44QWs936e5Lxw2","/us2v171ZywtNRjoCtZ/PCQ+9aM4WbGp","hJ2f+ewYv0peo/2hiJ5CF+o/GFRHgCHc","68wVUJvFBLiRbv+3B/f7Eu1AxQu2RPMM","kbq8Fiko3N7i+Br+hb/GOSNBKPzJnWN5","HyBa3OICqXR3XyglHmeBRGxCAvhI687m","ZVbzmlDvcRIEyc1snC+8b6JD7w83Ml6T","HgmLVWlWQz1ADEyONcoPvvJEVvBXB4nF","ZH8iE9u7m1szmqnHt4IylTxFuwco3hmw","6uXE2RCR7vGmPZscLFp16HNGkQOpqLQv","kJNtn6J8NpfVq35VrhJIw71HfPTWcSRa","HFs0WmL+iq8uqoTFY40OV9NI/uBpwgeD","Zi2dHNATUsldPGGM4cUzfB1JExcWG5f2","6Ld71hs5J2PIm1NXeh10AVJKOROXbTpp","ksHSkKnU/wW7DbYe+FVJKpxL1OTotKoc","6Z6qX5BtzSr/yDf8UbD6+8xMbRuIgX1K","k+gDGSKAFUyMXtK10/jH0AJNgOz3WO0/","HXLl0+mqYOYZ+eBuSCCArU1Oquh2LkCg","ZwRMlVtHuIBqbwUnymi9hoNPRx8J99DV","GP9XRHSzBZby+wlTzwMMmJFQs8AVVQYP","Yon+AsZe3fCBbewaTUsxs19RXjdqjJZ6","7BMYyA10qFoUyt7B1pN2zhBSdDPr+jvl","lmWxjr+ZcDxnXDuIVNtL5d5TmcSUI6uQ","7TrJQYYgQhMjmbpq/T74NI5UIDv0FnzG","l0xgBzTNmnVQD18jf3bFH0BVzcyLz+yz","GdaGzf/n79/FqG345K6CYg9W58gKuUEs","Y6Avi00KN7m2PoixZua/ScFXCj91YNFZ","72h2To2Ii4FNP3Ihq3n53a9YiCvK0/KA","lR7fCD9lU+c+qZdoKTHE9mFZZdy1CmL1","G4Q5wvRPJk2rDqWzsumDiy5aT9g0fM9q","YfKQhEai/ivYmED6MKG+oOBboi9LpV8f","Gq3oS38bzAScXcEYmUQNcbBcG9ArkIhJ","YNtBDc32FGLvyyRRGwwwWn5d9idUSRg8","7kGnxwbcYch6bBaKgNR3JzFe3CPVP7Wj","lDcOgbQxua4J+vPDApxKDP9fMdSq5iXW","EKqReFgpBuRXWQ5iigIIGxVgKYDtZgQK","atw4PurE3oIkz+srCEo1MNthxHeSv5R/","5Ebe9CHuqyixaNnwk5JyTZRi7nMTyTng","njB3spMDc07C/jy5EdpPZlpjA4RsEKmV","5W8Pfaq6QWGGO71buD/8twpkunsMJX7D","nxmmOxhXmQf1rVgSOnfBnMRlV4xz/O62","EYNA8dN97K1gCmrJoa+G4YtmfYjyikMp","a/Xpt2GQNMsTnI+AI+e7ykVnkH+NU9Nc","5z2wcqESiPPonXUQ7nj9XitoEmsy4PCF","nUsZNBP/UJWbC5BZbDDAdeVp/5xNOWDw","E9H//tjVJT8OrKKC9+iHCKpq1ZjMT81v","aadWuGo4/Vl9OkfLdaC6I2RrOG+zll0a","Evgud1OBz3Y5/8Yp3EUJ8jRsgZDTo4pM","aI6HMeFsFxBKaSNgXg002fptbGeseho5","5hRh+ypGYrrfzhG7xdVzpLVuRmMtDLem","nGLIvZirutysWPTyR51Oj3tvq5RS1SfT","45nTbLdfB8o0zPiGQvb/kWlwX0tOd/EJ","me96KgWy36xHWh3PwL7CuqdxsrwxrmF8","F3Wc4M6YqgbS/S8UW2aFx+hymLiw2Mzj","bQM1pnx1cmCha8pd2S647CZzdU/PAVyW","FlxNaUXMQE/lrku/cMsLPXZ0zLCvNIvA","bCrkL/chmCmWOK728oM2Frh1IUfQ7Ru1","4rAC5TwL7YMDn5wtaVtxa/d2C0NRm7Yq","mMaro47mNeVwCXlk6xNMQDl35rQuQiZf","FA7yZk5kid2LCIP0JowK1Fd4ZKCR8QWG","bnhbIPyJUbv4nma9pMQ3/5l5iVfuKJXz","4OK96jejJBFtOVRmPxxwgtZ6o1NvXjhs","mpQUrIVO/Hcer7EvvVRNqRh7TqQQh6gZ","4ctsY7z3zlhaajDNFLH+eEh891twsn9P","m73FJQ4aFj4p/NWElvnDU4Z9GqwPa+86","FScj78UwY5S8W+dfDSGELsl+MKiOHUKl","b1GKqXfdu/LPzQIWj2m5BQd/3V/xxNLQ","y4UqoCuXCG0/3ONzDvPrJMeAlxZxiPsY","sfOD5pl60AtMSgY6jLvWDwmBeuEOUWtt","P2llLFJQpaHZ7TThF2ORckaCUOWPJ8by","RR/MauC9fceqe9GolSusWYiDvRLw/laH","PkC0pdkET+juvlBKPM4fiNiEBO2Qy4HR","RDYd42vpl46dKLUDvoYioxaF6RrvEhGk","yqz7KaDD4iQIj4fYJV5l3lmGwx5uZLw7","sNpSbxIuOkJ7GWKRpxZY9ZeHLukRvSxO","PBILqtKshnqAGJgBaokeYfmIrP2uDg+X","RmSi7GBBXhzzjn1I6MEjSjeJQQrR15/i","yP5EJqtrK7ZmKU+TcxlkN3iKaw5QoTJ9","sojtYBmG89AVv6ra8VFZHLaLhvkveKII","ydeVryA/wf9Reis4WLTqzeaMPwZPTXVe","s6E86ZLSGZki7M5x2vzX5iiN0vEwlOUr","PTvaI1n4bDO3S/yqQSSQm2eO+PWx4ki0","R01zZesVtFXE3Rnjw2ytsKmPFQLOO9jB","OLZotMThCUNcSRWXxgccrruQ4d3SmQ4b","QsDB8nYM0SUv3/DeRE8hhXWRDCqtQJ5u","zFonOL0mpI+6eMIF35dm+DqSJi4sNjPx","tiyOfg/LfOnJ7idMXd9b0/STy9lT76OE","zXP2sTZyTsaNK6au9DroAqSUciYz2nTS","twVf94SflqD+vUPndnLVKWqVn9FMA+Sn","OZ+5PU+14wprGnE87aqSVCWWtdXNdUk4","Q+kQe/1YO2wYjJR1b+Kvf+uXWCKyrNlN","zyFJvj3ah1TjjW7lon3p64WY2jYNH/qU","tVfg+I83XzKQG4usIDXUwEuZN8Fyxmrh","O80GMkQdKpgFvLl3u+2TvQSaHcXzsMd+","QbuvdPbw8v52Klw+OaWulsqb8DKMaVcL","OuTXu89JwNEy793ckEAdR5qcSc3sXIBd","QJJ+/X2kGLdBeTiVEgggbFSdpDqThRAo","zgiYN7aObR3U3gpOidBnERuejj4S8723","tH4xcQRjtXunSO8HC5haOtWfY8ltKi3C","MOOuiOh7CjH56xKmgwYYLT+ge50qqgwe","SpUHzlqW0leKfffvAU4lBvGhlmpVc5xr","xA/hBJG8p/0f2sU0mpZie76ivG7UBTH0","vnlIQiNRf5tsTCB9GN5fUHCjUZmr3KGB","xSYwjRroTbQoiaGfsTvsgSCk6GbL6XbX","v1CZy6gFldJbH0TWM3PRqu6lBZG0MOai","Mcp/AWMv4HjOuHYNqKuW16GmL5U1Rks9","S7zWR9HCOB69LpNEKuOr/G+nwmJKn9tI","x3SPghFAhCZGL2nU53ztaAGoQHb1LPiR","vQImxKOtXEA1uYydZTTQQ8+prYGK9Wjk","M5jADmiHKeqgHr5G/uyXPoCqh4ULg8V7","Se5pSNpq8YzTiFsPfKSqFU6ranJ0WlUO","MrERh+PTw6OXTdrt1UEZxB6s040Ub4JY","SMe4wVE+G8Xk2z+kVwkk79CtPnprthIt","xl1eC5oUbm9xfA1/zNFjkp+uFH7qwL+y","vCv3TSj5tgkC6ug2TpleuVGv+YmVGS/H","w9DsnAcNCx+afuRCS/Lvp0OwDVaJu/kd","uaZF2rXg03np6AELybrSjI2x4KH2Ymlo","NzyjEH7KptN8TzPQUmKV8cKyyqV3FMT3","TUoKVswnfrUP2daZ0Cqo2gyzJ1IIzVSC","NhVymfWeTJpLHFd7ec8bC1y0nq1o+IPU","TGPb30dzlPw4irIy+4cmIJK1c1oXIROh","wvk9FYxZ4VatLYDpYF9hXd22WV6WV74+","uI+UUz60OTDeu2Wg4hdcdhO3tKnpji5L","NEfNlv42hQglup8wL4ga4n24Nr1WPQ2S","TjFk0EzbXW5WLHp5rcAnybO520op5J3n","wKuCGofxKMTDi0iiNhhgtPy68U6okjB4","ut0rXDUc8KKwHa3rtFBdnzK7HLnXS6AN","wYJTkwylwo302CwJHbXuTmK8pUa3fndb","u/T61b5IGuuHTslAn/3TZay9SLHIp+cu","NW4cH3Vib0ES6fubBCWUGOO+YrVJ0Uqx","Txi1WcePtydhfx7Shm2pMy2/j0I2CNrE","IEk/8LBSDNWushzECQQQNirAUh3HzAgU","Wj+WtgK/1LPdJPmNi0wtHeTBv+q4FZhh","1KVwfMmVoRlIg8tWEJRqYKvCle45YzX+","rtPZOnt4eX87FS4fktxXS2XDeBlGuqWL","1Yyh9ULBS1B/0K/9OznkmjXEweYmj3Ld","r/oIs/AskzYMRkq0uXHZsfvFLBFZVuKo","IWDueTsG5pyZ4XhvIqmezLTGBhXYIE83","WxZHP4nrPvrqd50moOGj53rH6+Kn+d9C","194e+klpgsIRdme2bX7lcxTIafYYSvyb","rai3vPuEWqRi4IL/7zbYWNrJhAFnk2zu","IzJRdjCuLw73R7AkdO6fJZXKrgXm5cFx","WUT4MIJD92iE0VVt9qaiDlvLQ/KZPFEE","IhuA/7v6xUfAFNSPX0MR3wvM+g35CYZS","WG0puQkXHSGzgjHG3Qss9MXNF/qG0BYn","1vfPc8I9aIsmJQMdRtNriYrOPf4Hpru4","rIFmNXDQsO1Vs+ZUxJtWokTP0Al4fyvN","03p95F8kDfvNJ+ogwfDnvFbQJNZk3f0X","qQzUou3J1Z2+sQ9pQ7jal5jRySEbBG1i","J5YyaCbjoDcrFj2y2GCd6tfS4yWacsD9","XeCbLpQOeFFYgNj7WiigwRnTDtLlq1CI","Jr/j4a23Sn4cRVkZ880TEEnUty2Fnofe","XMlKpx9akhhv07xQcYUuO4fVWtr6Rxer","0lOsbdRw57L6dI6L6l1pRsjWcN57Mbo0","qCUFK2adP9SJ4mvCaBVUbQbXnSkE6CpB","JO1c7qYfg+xy45FSpYoS+WjYHz27WwmY","Xpv1qBTyW4oBdXQbJ8Iv0qbZ8srEgpnt","0AETYt/YLiCU0kbAvBpor+na2M5F9DRy","qne6JG019kbnRKOJPlJVhCfbNTk6LaQH","0SjC61SMxGmjgSJrl7fmVXfcjMZaGHNR","q15rreZhHA/QF8ciFf/bfrndYTElweMk","JcSNZy1LaaVFsPX5jiecA/beSzWkt067","X7IkIZ+mscM2JhCwDG+hKDjfpsLbbt7O","2y+72HO+Dolohe0RhPHjP9Lgvpac7v8S","oVkSnsFT1u8bEwhYBrneFBzhU2HjN29n","L8P0VAp5o0WOtDqDnWGZaVPieWViQcL4","VbVdEriUeyP9It/KHymkQp3jlJIdmFKN","Luol3YEtSQy5514otswXk83kLW19rYXb","VJyMmzPAkWrKcbthNIQquAPlwJoCdBWu","2gZqUfjq5MBf1om6r1xtxUzm6p6DArgx","oHDDF0oHPKYsQGzzLRRQ7oLnB2n82yhE","LLia0oqFgJ7XQZZj4IsWeuzohX1DaAud","Vs4zlDhoWPik13MqYsMrUSLpaIo8sZvo","2FTVXvNCLVIxcEHx+RtsLG3qQo69xzZ3","oiJ8GEGv9TRC5qS4e1NRB6Prr3nCHqYC","2X0E13gWxxsGIyVa0rbi1vPsFoaiK3FU","owutkcr7H311tcATUP7f/T3t+3Hd8uEh","LZFLWwHRatfgEvLIyyaYgHLu0XVchEy+","V+fiHbM8srGThBeBSW6lq7zvPIIjXdzL","KBz5zJzID6cLEBv1TAUUta7wyF0//woR","UmpQii4l18F4hv68zk0pnmDxJapAJppk","3PC2QOUPomvtIcxnVZVu4y/yD67BUDf7","poYfBlfieg2etyku191TyOHz4lm+iaeO","3dlnyW5bSCLacqjMfjjgGbH0W6bevHDY","p6/Oj9y2kESp5E2F/HDdMn/1tlGhZeCt","KTUoRRec5e48Q39eZ6iaTzD2nFUgE00y","U0OBA6VxPYhP1ZoX5eCnZP73caJfyt1H","34vYxmXzgbC01GCHKH/h8JD487bgef6e","pf1xgNceWdbHQoXOqjfc2175HkGfoG7r","K2eXShw0LHxS5bcVMe+bphH6NEUe1sN0","URE+DK7Z9Bohc1Jcs6emjd/72bJhD1MB","Kk5Gw5dgxjVlttO+GkIVXI/8YE0BOoRX","UDjvhSWNHlMWIDb3mAood0H9jbp+4xQi","3qIJT+6na/mDhwQsA9JvCg7+p77/lbm9","pNSgCVxKs5/wEeFlgZpSIcD/SkmATCnI"]},_resource:null,$type:new n.ig.Type("RSP24",n.ig.$ot)},!0);n.ig.util.defType("RSP26:lq","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["9jO3BIhix5hNOM4YkSjRdekqh0RGkJJNK14=","9jO3BIhix5hNOM4YkSjRdekqh0RGkJJNK14=","8WZzCA3Eky2acIEwP1C/6s9UE4iMPTmaVrw=","B1XEDIWmVLXXSE8ornhunyZ+lMzKravXfeI=","/8zmEBqVO1op4B9gfqBjyYOoJg0FenIprGU=","Cf9RFJL3/MJk2NF474iyvGqCoUlD6uBkhzs=","DqqVGBdRqHezkJ5QQfDcI0z8NYWJR0uz+tk=","+JkiHJ8zb+/+qFBI0NgNVqXWssHP19n+0Yc=","44XRIDQ3drRS3T7A/F3GjxtNTBoK9ORSRco=","FbZmJLxVsSwf5fDYbXUX+vJny15MZHYfbpQ=","EuOiKDnz5ZnIrb/www15ZdQZX5KGyd3IE3Y=","5NAVLLGRIgGFlXHoUiWoED0z2NbAWU+FOCg=","HEk3MC6iTe57PSGggv2lRpjlahcPjpZ76a8=","6nqANKbAinY2Be+4E9V0M3HP7VNJHgQ2wvE=","7S9EOCNm3sPhTaCQva0arFexeZ+Ds6/hvxM=","GxzzPKsEGVusdW6ILIXL2b6b/tvFIz2slE0=","2xe/QGhu7HWkp3yd5bqRAzaamDQU9dWkiok=","LSQIROAMK+3pn7KFdJJAdt+wH3BSZUfpodc=","KnHMSGWqf1g+1/2t2uou6fnOi7yYyOw+3DU=","3EJ7TO3IuMBz7zO1S8L/nBDkDPjeWH5z92s=","JNtZUHL71y+NR2P9mxryyrUyvjkRj6eNJuw=","0ujuVPqZELfAf63lCjIjv1wYOX1XHzXADbI=","1b0qWH8/RAIXN+LNpEpNIHpmrbGdsp4XcFA=","I46dXPddg5paDyzVNWKcVZNMKvXbIgxaWw4=","OJJuYFxZmsH2ekJdGedXjC3X1C4eATH2z0M=","zqHZZNQ7XVm7QoxFiM+G+cT9U2pYkaO75B0=","yfQdaFGdCexsCsNtJrfoZuKDx6aSPAhsmf8=","P8eqbNn/znQhMg11t585EwupQOLUrJohsqE=","x16IcEbMoZvfml09Z0c0Ra5/8iMbe0PfYyY=","MW0/dM6uZgOSopMl9m/lMEdVdWdd69GSSHg=","Njj7eEsIMrZF6twNWBeLr2Er4auXRnpFNZo=","wAtMfMNq9S4I0hIVyT9a2ogBZu/R1ugIHsQ=","qy5jgNDcxepVU/gn12k/BmwpLWgo97dVCQ8=","XR3UhFi+AnIYazY/RkHuc4UDqixuZyUYIlE=","WkgQiN0YVsfPI3kX6DmA7KN9PuCkyo7PX7M=","rHunjFV6kV+CG7cPeRFRmUpXuaTiWhyCdO0=","VOKFkMpJ/rB8s+dHqclcz++BC2UtjcV8pWo=","otEylEIrOSgxiylfOOGNugarjCFrHVcxjjQ=","pYT2mMeNbZ3mw2Z3lpnjJSDVGO2hsPzm89Y=","U7dBnE/vqgWr+6hvB7EyUMn/n6nnIG6r2Ig=","SKuyoOTrs14HjsbnKzT5iXdkYXIiA1MHTMU=","vpgFpGyJdMZKtgj/uhwo/J5O5jZkk8FKZ5s=","uc3BqOkvIHOd/kfXFGRGY7gwcvquPmqdGnk=","T/52rGFN5+vQxonPhUyXFlEa9b7orvjQMSc=","t2dUsP5+iAQubtmHVZSaQPTMR38neSEu4KA=","QVTjtHYcT5xjVhefxLxLNR3mwDth6bNjy/4=","RgEnuPO6Gym0Hli3asQlqjuYVPerRBi0thw=","sDKQvHvY3LH5Jpav++z039Ky07Pt1Ir5nUI=","cDncwLiyKZ/x9IS6MtOuBVqztVw8AmLxg4Y=","hgprxDDQ7ge8zEqio/t/cLOZMhh6kvC8qNg=","gV+vyLV2urJrhAWKDYMR75XnptSwP1tr1To=","d2wYzD0UfSomvMuSnKvAmnzNIZD2r8km/mQ=","j/U60KInEsXYFJvaTHPNzNkbk1E5eBDYL+M=","ecaN1CpF1V2VLFXC3VscuTAxFBV/6IKVBL0=","fpNJ2K/jgehCZBrqcyNyJhZPgNm1RSlCeV8=","iKD+3CeBRnAPXNTy4gujU/9lB53z1bsPUgE=","k7wN4IyFXyujKbp6zo5oikH++UY29oajxkw=","ZY+65ATnmLPuEXRiX6a5/6jUfgJwZhTu7RI=","Ytp+6IFBzAY5WTtK8d7XYI6q6s66y785kPA=","lOnJ7AkjC550YfVSYPYGFWeAbYr8Wy10u64=","bHDr8JYQZHGKyaUasC4LQ8JW30szjPSKaik=","mkNc9B5yo+nH8WsCIQbaNit8WA91HGbHQXc=","nRaY+JvU91wQuSQqj360qQ0CzMO/sc0QPJU=","ayUv/BO2MMRdgeoyHlZl3OQoS4f5IV9dF8s=","S1zGHb2ll8mqpu1Os9J+DNhSWtBQ83OqEh4=","vW9xGTXHUFHnniNWIvqveTF43ZQWY+HnOUA=","ujq1FbBhBOQw1mx+jILB5hcGSVjczkowRKI=","TAkCETgDw3x97qJmHaoQk/4szhyaXth9b/w=","tJAgDacwrJODRvIuzXIdxVv6fN1ViQGDvns=","QqOXCS9SawvOfjw2XFrMsLLQ+5kTGZPOlSU=","RfZTBar0P74ZNnMe8iKiL5Sub1XZtDgZ6Mc=","s8XkASKW+CZUDr0GYwpzWn2E6BGfJKpUw5k=","qNkXPYmS4X34e9OOT4+4g8MfFspaB5f4V9Q=","XuqgOQHwJuW1Qx2W3qdp9io1kY4clwW1fIo=","Wb9kNYRWclBiC1K+cN8HaQxLBULWOq5iAWg=","r4zTMQw0tcgvM5ym4ffWHOVhggaQqjwvKjY=","VxXxLZMH2ifRm8zuMS/bSkC3MMdffeXR+7E=","oSZGKRtlHb+cowL2oAcKP6mdt4MZ7Xec0O8=","pnOCJZ7DSQpL603eDn9koI/jI0/TQNxLrQ0=","UEA1IRahjpIG04PGn1e11WbJpAuV0E4GhlM=","kEt5XdXLe7wOAZHTVmjvD+7IwuREBqYOmJc=","ZnjOWV2pvCRDOV/Lx0A+egfiRaACljRDs8k=","YS0KVdgP6JGUcRDjaThQ5SGc0WzIO5+Uzis=","lx69UVBtLwnZSd77+BCBkMi2ViiOqw3Z5XU=","b4efTc9eQOYn4Y6zKMiMxm1g5OlBfNQnNPI=","mbQoSUc8h35q2UCrueBds4RKY60H7EZqH6w=","nuHsRcKa08u9kQ+DF5gzLKI092HNQe29Yk4=","aNJbQUr4FFPwqcGbhrDiWUsecCWL0X/wSRA=","c86ofeH8DQhc3K8TqjUpgPWFjv5O8kJc3V0=","hf0feWmeypAR5GELOx349RyvCboIYtAR9gM=","gqjbdew4niXGrC4jlWWWajrRnXbCz3vGi+E=","dJtscWRaWb2LlOA7BE1HH9P7GjKEX+mLoL8=","jAJObftpNlJ1PLBz1JVKSXYtqPNLiDB1cTg=","ejH5aXML8co4BH5rRb2bPJ8HL7cNGKI4WmY=","fWQ9ZfatpX/vTDFD68X1o7l5u3vHtQnvJ4Q=","i1eKYX7PYueidP9beu0k1lBTPD+BJZuiDNo=","4HKlnW15UiP/9RVpZLtBCrR7d7h4BMT/GxE=","FkESmeUblbuyzdtx9ZOQf11R8Pw+lFayME8=","ERTWlWC9wQ5lhZRZW+v+4HsvZDD0Of1lTa0=","5ydhkejfBpYovVpBysMvlZIF43SyqW8oZvM=","H75DjXfsaXnWFQoJGhsiwzfTUbV9frbWt3Q=","6Y30if+OruGbLcQRizPztt751vE77iSbnCo=","7tgwhXoo+lRMZYs5JUudKfiHQj3xQ49M4cg=","GOuHgfJKPcwBXUUhtGNMXBGtxXm30x0BypY=","A/d0vVlOJJetKCupmOaHha82O6Jy8CCtXts=","9cTDudEs4w/gEOWxCc5W8EYcvOY0YLLgdYU=","8pEHtVSKt7o3WKqZp7Y4b2BiKCr+zRk3CGc=","BKKwsdzocCJ6YGSBNp7pGolIr264XYt6Izk=","/DuSrUPbH82EyDTJ5kbkTCyeHa93ilKE8r4=","Cgglqcu52FXJ8PrRd241OcW0musxGsDJ2eA=","DV3hpU4fjOAeuLX52RZbpuPKDif7t2sepAI=","+25WocZ9S3hTgHvhSD6K0wrgiWO9J/lTj1w=","O2Ua3QUXvlZbUmn0gQHQCYLh74xs8RFbkZg=","zVat2Y11ec4WaqfsECkBfGvLaMgqYYMWusY=","ygNp1QjTLXvBIujEvlFv4021/ATgzCjBxyQ=","PDDe0YCx6uOMGibcL3m+lqSfe0CmXLqM7Ho=","xKn8zR+ChQxysnaU/6GzwAFJyYFpi2NyPf0=","MppLyZfgQpQ/iriMbolitehjTsUvG/E/FqM=","Nc+PxRJGFiHowvekwPEMKs4d2gnltlroa0E=","w/w4wZok0bml+jm8UdndXyc3XU2jJsilQB8=","2ODL/TEgyOIJj1c0fVwWhpmso5ZmBfUJ1FI=","LtN8+blCD3pEt5ks7HTH83CGJNIglWdE/ww=","KYa49TzkW8+T/9YEQgypbFb4sB7qOMyTgu4=","37UP8bSGnFfexxgc0yR4Gb/SN1qsqF7eqbA=","Jywt7Su187ggb0hUA/x1TxoEhZtjf4cgeDc=","0R+a6aPXNCBtV4ZMktSkOvMuAt8l7xVtU2k=","1kpe5SZxYJW6H8lkPKzKpdVQlhPvQr66Los=","IHnp4a4Tpw33Jwd8rYQb0Dx6EVep0iz3BdU=","lriROmdXM49JUcece7n8GK2ktL2g++ZJJDw=","YIsmPu819BcEaQmE6pEtbUSOM/nma3QED2I=","Z97iMmqToKLTIUasROlD8mLwpzUsxt/TcoA=","ke1VNuLxZzqeGYi01cGSh4vaIHFqVk2eWd4=","aXR3Kn3CCNVgsdj8BRmf0S4MkrClgZRgiFk=","n0fALvWgz00tiRbklDFOpMcmFfTjEQYtowc=","mBIEInAGm/j6wVnMOkkgO+FYgTgpvK363uU=","biGzJvhkXGC3+ZfUq2HxTghyBnxvLD+39bs=","dT1AGlNgRTsbjPlch+Q6l7bp+KeqDwIbYfY=","gw73HtsCgqNWtDdEFszr4l/Df+Psn5BWSqg=","hFszEl6k1haB/HhsuLSFfXm96y8mMjuBN0o=","cmiEFtbGEY7MxLZ0KZxUCJCXbGtgoqnMHBQ=","ivGmCkn1fmEybOY8+URZXjVB3qqvdXAyzZM=","fMIRDsGXufl/VCgkaGyIK9xrWe7p5eJ/5s0=","e5fVAkQx7UyoHGcMxhTmtPoVzSIjSEmomy8=","jaRiBsxTKtTlJKkUVzw3wRM/SmZl2NvlsHE=","Ta8ueg853/rt9rsBngNtG5s+LIm0DjPtrrU=","u5yZfodbGGKgznUZDyu8bnIUq83ynqGghes=","vMldcgL9TNd3hjoxoVPS8VRqPwE4Mwp3+Ak=","Svrqdoqfi086vvQpMHsDhL1AuEV+o5g601c=","smPIahWs5KDEFqRh4KMO0hiWCoSxdEHEAtA=","RFB/bp3OIziJLmp5cYvfp/G8jcD35NOJKY4=","QwW7Yhhod41eZiVR3/OxONfCGQw9SXheVGw=","tTYMZpAKsBUTXutJTttgTT7onkh72eoTfzI=","rir/WjsOqU6/K4XBYl6rlIBzYJO++te/638=","WBlIXrNsbtbyE0vZ83Z64WlZ59f4akXywCE=","X0yMUjbKOmMlWwTxXQ4Ufk8ncxsyx+4lvcM=","qX87Vr6o/ftoY8rpzCbFC6YN9F90V3xolp0=","UeYZSiGbkhSWy5qhHP7IXQPbRp67gKWWRxo=","p9WuTqn5VYzb81S5jdYZKOrxwdr9EDfbbEQ=","oIBqQixfATkMuxuRI653t8yPVRY3vZwMEaY=","VrPdRqQ9xqFBg9WJsoamwiWl0lJxLQ5BOvg=","PZbyureL9mUcAj+7rNDDHsGNmdWIDFEcLTM=","y6VFvj/pMf1ROvGjPfgSayinHpHOnMNRBm0=","zPCBsrpPZUiGcr6Lk4B89A7Zil0EMWiGe48=","OsM2tjItotDLSnCTAqitgefzDRlCofrLUNE=","wloUqq0ezT814iDb0nCg10Ilv9iNdiM1gVY=","NGmjriV8Cqd42u7DQ1hxoqsPOJzL5rF4qgg=","MzxnoqDaXhKvkqHr7SAfPY1xrFABSxqv1+o=","xQ/Qpii4mYriqm/zfAjOSGRbKxRH24ji/LQ=","3hMjmoO8gNFO3wF7UI0FkdrA1c+C+LVOaPk=","KCCUngveR0kD589jwaXU5DPqUovEaCcDQ6c=","L3VQko54E/zUr4BLb926exWUxkcOxYzUPkU=","2UbnlgYa1GSZl05T/vVrDvy+QQNIVR6ZFRs=","Id/Fipkpu4tnPx4bLi1mWFlo88KHgsdnxJw=","1+xyjhFLfBMqB9ADvwW3LbBCdIbBElUq78I=","0Lm2gpTtKKb9T58rEX3ZspY84EoLv/79kiA=","JooBhhyP7z6wd1EzgFUIx38WZw5NL2ywuX4=","5oFN+t/lGhC4pUMmSWpSHfcXAeGc+YS4p7o=","ELL6/leH3Yj1nY0+2EKDaB49hqXaaRb1jOQ=","F+c+8tIhiT0i1cIWdjrt9zhDEmkQxL0i8QY=","4dSJ9lpDTqVv7QwO5xI8gtFplS1WVC9v2lg=","GU2r6sVwIUqRRVxGN8ox1HS/J+yZg/aRC98=","734c7k0S5tLcfZJepuLgoZ2VoKjfE2TcIIE=","6CvY4si0smcLNd12CJqOPrvrNGQVvs8LXWM=","Hhhv5kDWdf9GDRNumbJfS1LBsyBTLl1Gdj0=","BQSc2uvSbKTqeH3mtTeUkuxaTfuWDWDq4nA=","8zcr3mOwqzynQLP+JB9F5wVwyr/QnfKnyS4=","9GLv0uYW/4lwCPzWimcreCMOXnMaMFlwtMw=","AlFY1m50OBE9MDLOG0/6Dcok2TdcoMs9n5I=","+sh6yvFHV/7DmGKGy5f3W2/ya/aTdxLDThU=","DPvNznklkGaOoKyeWr8mLobY7LLV54COZUs=","C64JwvyDxNNZ6OO29MdIsaCmeH4fSitZGKk=","/Z2+xnThA0sU0C2uZe+ZxEmM/zpZ2rkUM/c=","3eRXJ9rypEbj9yrSyGuCFHX27m3wCJXjNiI=","K9fgI1KQY96uz+TKWUNTYZzcaSm2mAeuHXw=","LIIkL9c2N2t5h6vi9zs9/rqi/eV8Nax5YJ4=","2rGTK19U8PM0v2X6ZhPsi1OIeqE6pT40S8A=","IiixN8BnnxzKFzWytsvh3fZeyGD1cufKmkc=","1BsGM0gFWISHL/uqJ+MwqB90TySz4nWHsRk=","007CP82jDDFQZ7SCiZteNzkK2+h5T95QzPs=","JX11O0XBy6kdX3qaGLOPQtAgXKw/30wd56U=","PmGGB+7F0vKxKhQSNDZEm267onf6/HGxc+g=","yFIxA2anFWr8EtoKpR6V7oeRJTO8bOP8WLY=","zwf1D+MBQd8rWpUiC2b7caHvsf92wUgrJVQ=","OTRCC2tjhkdmYls6mk4qBEjFNrswUdpmDgo=","wa1gF/RQ6aiYygtySpYnUu0ThHr/hgOY340=","N57XE3wyLjDV8sVq2772JwQ5Az65FpHV9NM=","MMsTH/mUeoUCuopCdcaYuCJHl/JzuzoCiTE=","xvikG3H2vR1PgkRa5O5JzcttELY1K6hPom8=","BvPoZ7KcSDNHUFZPLdETF0Nsdlnk/UBHvKs=","8MBfYzr+j6sKaJhXvPnCYqpG8R2ibdIKl/U=","95Wbb79Y2x7dINd/EoGs/Yw4ZdFowHnd6hc=","AaYsazc6HIaQGBlng6l9iGUS4pUuUOuQwUk=","+T8Od6gJc2lusEkvU3Fw3sDEUFThhzJuEM4=","Dwy5cyBrtPEjiIc3wlmhqynu1xCnF6AjO5A=","CFl9f6XN4ET0wMgfbCHPNA+QQ9xtugv0RnI=","/mrKey2vJ9y5+AYH/QkeQea6xJgrKpm5bSw=","5XY5R4arPocVjWiP0YzVmFghOkPuCaQV+WE=","E0WOQw7J+R9YtaaXQKQE7bELvQeomTZY0j8=","FBBKT4tvraqP/em/7txqcpd1KctiNJ2Pr90=","4iP9SwMNajLCxSenf/S7B35fro8kpA/ChIM=","GrrfV5w+Bd08bXfvryy2UduJHE7rc9Y8VQQ=","7IloUxRcwkVxVbn3PgRnJDKjmwqt40Rxflo=","69ysX5H6lvCmHfbfkHwJuxTdD8ZnTu+mA7g=","He8bWxmYUWjrJTjHAVTYzv33iIIh3n3rKOY=","dso0pwouYay2pNL1HwK9EhnfwwXY/yK2Py0=","gPmDo4JMpjT7nBztjipsZ/D1REGeb7D7FHM=","h6xHrwfq8oEs1FPFIFIC+NaL0I1UwhssaZE=","cZ/wq4+INRlh7J3dsXrTjT+hV8kSUolhQs8=","iQbStxC7WvafRM2VYaLe25p35QjdhVCfk0g=","fzVls5jZnW7SfAON8IoPrnNdYkybFcLSuBY=","eGChvx1/ydsFNEylXvJhMVUj9oBRuGkFxfQ=","jlMWu5UdDkNIDIK9z9qwRLwJccQXKPtI7qo=","lU/lhz4ZFxjkeew14197nQKSjx/SC8bkeuc=","Y3xSg7Z70ICpQSItcneq6Ou4CFuUm1SpUbk=","ZCmWjzPdhDV+CW0F3A/Ed83GnJdeNv9+LFs=","khohi7u/Q60zMaMdTScVAiTsG9MYpm0zBwU=","aoMDlySMLELNmfNVnf8YVIE6qRLXcbTN1oI=","nLC0k6zu69qAoT1NDNfJIWgQLlaR4SaA/dw=","m+VwnylIv29X6XJloq+nvk5uuppbTI1XgD4=","bdbHm6EqePca0bx9M4d2y6dEPd4d3B8aq2A=","rd2L52JAjdkSA65o+rgsES9FWzHMCvcStaQ=","W+484+oiSkFfO2Bwa5D9ZMZv3HWKmmVfnvo=","XLv472+EHvSIcy9YxeiT++ARSLlAN86I4xg=","qohP6+fm2WzFS+FAVMBCjgk7z/0Gp1zFyEY=","UhFt93jVtoM747EIhBhP2KztfTzJcIU7GcE=","pCLa8/C3cRt2238QFTCerUXH+niP4Bd2Mp8=","o3ce/3URJa6hkzA4u0jwMmO5brRFTbyhT30=","VUSp+/1z4jbsq/4gKmAhR4qT6fAD3S7sZCM=","Tlhax1Z3+21A3pCoBuXqnjQIFyvG/hNA8G4=","uGvtw94VPPUN5l6wl807690ikG+AboEN2zA=","vz4pz1uzaEDarhGYObVVdPtcBKNKwyraptI=","SQ2ey9PRr9iXlt+AqJ2EARJ2g+cMU7iXjYw=","sZS810ziwDdpPo/IeEWJV7egMSbDhGFpXAs=","R6cL08SAB68kBkHQ6W1YIl6KtmKFFPMkd1U=","QPLP30EmUxrzTg74RxU2vXj0Iq5PuVjzCrc=","tsF428lElIK+dsDg1j3nyJHepeoJKcq+Iek="]},_resource:null,$type:new n.ig.Type("RSP26",n.ig.$ot)},!0);n.ig.util.defType("RSP28:lr","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["/AkcDRL70JZnrmQppwz3OHV36X+1ZHmTsEo6xQ==","/AkcDRL70JZnrmQppwz3OHV36X+1ZHmTsEo6xQ==","5RI4GiTrvTHOQchSUxjzcOruz/53yPI7fZR0lw==","GRskFzYQbaep76x79BQESJ+ZJoHCrIuozd5OUg==","1yRwNEjLZ2KBgo2kpjD74MnBg+Hujfl2+jXoMw==","Ky1sOVowt/TmLOmNATwM2Ly2ap5b6YDlSn/S9g==","MjZILmwg2lNPw0X29SgIkCMvTB+ZRQtNh6GcpA==","zj9UI37bCsUobSHfUiT/qFZYpWAsIXLeN+umYQ==","s0jgaJCLzsQfGQdVUWDr3Y+fG9/BB+/s6WrNZg==","T0H8ZYJwHlJ4t2N89mwc5fro8qB0Y5Z/WSD3ow==","VlrYcrRgc/XRWM8HAngYrWVx1CG2zx3XlP658Q==","qlPEf6abo2O29qsupXTvlRAGPV4Dq2REJLSDNA==","ZGyQXNhAqaaem4rx91AQPUZemD4vihaaE18lVQ==","mGWMUcq7eTD5Ne7YUFznBTMpcUGa7m8JoxUfkA==","gX6oRvyrFJdQ2kKjpEjjTaywV8BYQuShbstRwg==","fXe0S+5QxAE3dCaKA0QUddnHvr/tJp0y3oFrBw==","e5Dd0D0LgZU+Mg6qosDLpwMjNqOfDsPFz9SHzA==","h5nB3S/wUQNZnGqDBcw8n3ZU39wqarpWf569CQ==","noLlyhngPKTwc8b48dg41+nN+V3oxjH+skDzWw==","Yov5xwsb7DKX3aLRVtTP75y6ECJdokhtAgrJng==","rLSt5HXA5ve/sIMOBPAwR8ritUJxgzqzNeFv/w==","UL2x6Wc7NmHYHucno/zHf7+VXD3E50MghatVOg==","SaaV/lErW8Zx8UtcV+jDNyAMerwGS8iISHUbaA==","ta+J80PQi1AWXy918OQ0D1V7k8OzL7Eb+D8hrQ==","yNg9uK2AT1EhKwn/86Ageoy8LXxeCSwpJr5Kqg==","NNEhtb97n8dGhW3WVKzXQvnLxAPrbVW6lvRwbw==","LcoFoolr8mDvasGtoLjTCmZS4oIpwd4SWyo+PQ==","0cMZr5uQIvaIxKWEB7QkMhMlC/2cpaeB62AE+A==","H/xNjOVLKDOgqYRbVZDbmkV9rp2whNVf3IuimQ==","4/VRgfew+KXHB+By8pwsojAKR+IF4KzMbMGYXA==","+u51lsGglQJu6EwJBogo6q+TYWPHTCdkoR/WDg==","Budpm9NbRZQJRiggoYTf0trkiBxyKF73EVXsyw==","9j2nvXoWHzd8ZBxJWZ2LUwZGbFsjHJuXg7UThQ==","CjS7sGjtz6Ebynhg/pF8a3MxhSSWeOIEM/8pQA==","Ey+fp179ogayJdQbCoV4I+yoo6VU1Gms/iFnEg==","7yaDqkwGcpDVi7AyrYmPG5nfStrhsBA/Tmtd1w==","IRnXiTLdeFX95pHt/61ws8+H77rNkWLheYD7tg==","3RDLhCAmqMOaSPXEWKGHi7rwBsV49RtyycrBcw==","xAvvkxY2xWQzp1m/rLWDwyVpIES6WZDaBBSPIQ==","OALzngTNFfJUCT2WC7l0+1AeyTsPPelJtF615A==","RXVH1eqd0fNjfRscCP1gjonZd4TiG3R7at/e4w==","uXxb2PhmAWUE0381r/GXtvyunvtXfw3o2pXkJg==","oGd/z852bMKtPNNOW+WT/mM3uHqV04ZAF0uqdA==","XG5jwtyNvFTKkrdn/OlkxhZAUQUgt//TpwGQsQ==","klE34aJWtpHi/5a4rs2bbkAY9GUMlo0NkOo20A==","blgr7LCtZgeFUfKRCcFsVjVvHRq58vSeIKAMFQ==","d0MP+4a9C6Asvl7q/dVoHqr2O5t7Xn827X5CRw==","i0oT9pRG2zZLEDrDWtmfJt+B0uTOOgalXTR4gg==","ja16bUcdnqJCVhLj+11A9AVlWvi8ElhSTGGUSQ==","caRmYFXmTjQl+HbKXFG3zHASs4cJdiHB/CuujA==","aL9Cd2P2I5OMF9qxqEWzhO+LlQbL2qppMfXg3g==","lLZeenEN8wXrub6YD0lEvJr8fHl+vtP6gb/aGw==","WokKWQ/W+cDD1J9HXW27FMyk2RlSn6EktlR8eg==","poAWVB0tKVakevtu+mFMLLnTMGbn+9i3Bh5Gvw==","v5syQys9RPENlVcVDnVIZCZKFuclV1Mfy8AI7Q==","Q5IuTjnGlGdqOzM8qXm/XFM9/5iQMyqMe4oyKA==","PuWaBdeWUGZdTxW2qj2rKYr6QSd9Fbe+pQtZLw==","wuyGCMVtgPA64XGfDTFcEf+NqFjIcc4tFUFj6g==","2/eiH/N97VeTDt3k+SVYWWAUjtkK3UWF2J8tuA==","J/6+EuGGPcH0oLnNXimvYRVjZ6a/uTwWaNUXfQ==","6cHqMZ9dNwTczZgSDA1QyUM7wsaTmE7IXz6xHA==","Fcj2PI2m55K7Y/w7qwGn8TZMK7km/Ddb73SL2Q==","DNPSK7u2ijUSjFBAXxWjuanVDTjkULzzIqrFiw==","8NrOJqlNWqN1IjRp+BlUgdyi5EdRNMVgkuD/Tg==","8XpTZ/QsPm74yDiSsicLpgyM2LZGOCszG3cmFw==","DXNPaubX7vifZly7FSv8nnn7McnzXFKgqz0c0g==","FGhrfdDHg182ifDA4T/41uZiF0gx8NkIZuNSgA==","6GF3cMI8U8lRJ5TpRjMP7pMV/jeElKCb1qloRQ==","Jl4jU7znWQx5SrU2FBfwRsVNW1eotdJF4ULOJA==","2lc/Xq4ciZoe5NEfsxsHfrA6sigd0avWUQj04Q==","w0wbSZgM5D23C31kRw8DNi+jlKnffSB+nNa6sw==","P0UHRIr3NKvQpRlN4AP0DlrUfdZqGVntLJyAdg==","QjKzD2Sn8Krn0T/H40fge4MTw2mHP8Tf8h3rcQ==","vjuvAnZcIDyAf1vuREsXQ/ZkKhYyW71MQlfRtA==","pyCLFUBMTZspkPeVsF8TC2n9DJfw9zbkj4mf5g==","WymXGFK3nQ1OPpO8F1PkMxyK5ehFk093P8OlIw==","lRbDOyxsl8hmU7JjRXcbm0rSQIhpsj2pCCgDQg==","aR/fNj6XR14B/dZK4nvsoz+lqffc1kQ6uGI5hw==","cAT7IQiHKvmoEnoxFm/o66A8j3Yees+Sdbx31Q==","jA3nLBp8+m/PvB4YsWMf09VLZgmrHrYBxfZNEA==","iuqOt8knv/vG+jY4EOfAAQ+v7hXZNuj21KOh2w==","duOSutvcb22hVFIRt+s3OXrYB2psUpFlZOmbHg==","b/i2re3MAsoIu/5qQ/8zceVBIeuu/hrNqTfVTA==","k/GqoP830lxvFZpD5PPESZA2yJQbmmNeGX3viQ==","Xc7+g4Hs2JlHeLucttc74cZubfQ3uxGALpZJ6A==","ocfijpMXCA8g1t+1EdvM2bMZhIuC32gTntxzLQ==","uNzGmaUHZaiJOXPO5c/IkSyAogpAc+O7UwI9fw==","RNXalLf8tT7ulxfnQsM/qVn3S3X1F5oo40gHug==","OaJu31mscT/Z4zFtQYcr3IAw9coYMQcaPclsvQ==","xaty0ktXoam+TVVE5ovc5PVHHLWtVX6JjYNWeA==","3LBWxX1HzA4Xovk/Ep/YrGreOjRv+fUhQF0YKg==","ILlKyG+8HJhwDJ0WtZMvlB+p00vanYyy8Bci7w==","7oYe6xFnFl1YYbzJ57fQPEnxdiv2vP5sx/yEjg==","Eo8C5gOcxss/z9jgQLsnBDyGn1RD2If/d7a+Sw==","C5Qm8TWMq2yWIHSbtK8jTKMfudWBdAxXumjwGQ==","9506/Cd3e/rxjhCyE6PUdNZoUKo0EHXECiLK3A==","B0f02o46IVmErCTb67qA9QrKtO1lJLCkmMI1kg==","+07o15zB8c/jAkDyTLZ3zX+9XZLQQMk3KIgPVw==","4lXMwKrRnGhK7eyJuKJzheAkexMS7EKf5VZBBQ==","HlzQzbgqTP4tQ4igH66EvZVTkmyniDsMVRx7wA==","0GOE7sbxRjsFLql/TYp7FcMLNwyLqUnSYvfdoQ==","LGqY49QKlq1igM1W6oaMLbZ83nM+zTBB0r3nZA==","NXG89OIa+wrLb2EtHpKIZSnl+PL8YbvpH2OpNg==","yXig+fDhK5yswQUEuZ5/XVySEY1JBcJ6rymT8w==","tA8Ush6x752btSOOutprKIVVrzKkI19Icaj49A==","SAYIvwxKPwv8G0enHdacEPAiRk0RRybbweLCMQ==","UR0sqDpaUqxV9Ovc6cKYWG+7YMzT661zDDyMYw==","rRQwpSihgjoyWo/1Ts5vYBrMibNmj9TgvHa2pg==","YytkhlZ6iP8aN64qHOqQyEyULNNKrqY+i50Qxw==","nyJ4i0SBWGl9mcoDu+Zn8Dnjxaz/yt+tO9cqAg==","hjlcnHKRNc7UdmZ4T/JjuKZ64y09ZlQF9glkUA==","ejBAkWBq5Viz2AJR6P6UgNMNClKIAi2WRkNelQ==","fNcpCrMxoMy6nipxSXpLUgnpgk76KnNhVxayXg==","gN41B6HKcFrdME5Y7na8anyeazFPTgry51yImw==","mcUREJfaHf103+IjGmK4IuMHTbCN4oFaKoLGyQ==","ZcwNHYUhzWsTcYYKvW5PGpZwpM84hvjJmsj8DA==","q/NZPvv6x647HKfV70qwssAoAa8Up4oXrSNabQ==","V/pFM+kBFzhcssP8SEZHirVf6NChw/OEHWlgqA==","TuFhJN8Rep/1XW+HvFJDwirGzlFjb3gs0Lcu+g==","suh9Kc3qqgmS8wuuG160+l+xJy7WCwG/YP0UPw==","z5/JYiO6bgilhy0kGBqgj4Z2mZE7LZyNvnx/OA==","M5bVbzFBvp7CKUkNvxZXt/MBcO6OSeUeDjZF/Q==","Ko3xeAdR0zlrxuV2SwJT/2yYVm9M5W62w+gLrw==","1oTtdRWqA68MaIFf7A6kxxnvvxD5gRclc6Ixag==","GLu5VmtxCWokBaCAvipbb0+3GnDVoGX7REmXCw==","5LKlW3mK2fxDq8SpGSasVzrA8w9gxBxo9AOtzg==","/amBTE+atFvqRGjS7TKoH6VZ1Y6iaJfAOd3jnA==","AaCdQV1hZM2N6gz7Sj5fJ9AuPPEXDO5TiZfZWQ==","//SmzvVYfNztjXA5eU4WURgFrXGMcFZmNu5MLg==","A/26w+ejrEqKIxQQ3kLhaW1yRA45FC/1hqR26w==","Guae1NGzwe0jzLhrKlblIfLrYo/7uKRdS3o4uQ==","5u+C2cNIEXtEYtxCjVoSGYeci/BO3N3O+zACfA==","KNDW+r2TG75sD/2d337tsdHELpBi/a8QzNukHQ==","1NnK969oyygLoZm0eHIaiaSzx+/XmdaDfJGe2A==","zcLu4Jl4po+iTjXPjGYewTsq4W4VNV0rsU/Qig==","Mcvy7YuDdhnF4FHmK2rp+U5dCBGgUSS4AQXqTw==","TLxGpmXTshjylHdsKC79jJeatq5Nd7mK34SBSA==","sLVaq3coYo6VOhNFjyIKtOLtX9H4E8AZb867jQ==","qa5+vEE4Dyk81b8+ezYO/H10eVA6v0uxohD13w==","VadisVPD379be9sX3Dr5xAgDkC+P2zIiElrPGg==","m5g2ki0Y1XpzFvrIjh4GbF5bNU+j+kD8JbFpew==","Z5Eqnz/jBewUuJ7hKRLxVCss3DAWnjlvlftTvg==","fooOiAnzaEu9VzKa3Qb1HLS1+rHUMrLHWCUd7A==","goMShRsIuN3a+VazegoCJMHCE85hVstU6G8nKQ==","hGR7HshT/UnTv36T247d9hsmm9ITfpWj+TrL4g==","eG1nE9qoLd+0ERq6fIIqzm5Rcq2mGuwwSXDxJw==","YXZDBOy4QHgd/rbBiJYuhvHIVCxktmeYhK6/dQ==","nX9fCf5DkO56UNLoL5rZvoS/vVPR0h4LNOSFsA==","U0ALKoCYmitSPfM3fb4mFtLnGDP982zVAw8j0Q==","r0kXJ5JjSr01k5ce2rLRLqeQ8UxIlxVGs0UZFA==","tlIzMKRzJxqcfDtlLqbVZjgJ182KO57ufptXRg==","SlsvPbaI94z70l9MiaoiXk1+PrI/X+d9ztFtgw==","NyybdljYM43MpnnGiu42K5S5gA3SeXpPEFAGhA==","yyWHe0oj4xurCB3vLeLBE+HOaXJnHQPcoBo8QQ==","0j6jbHwzjrwC57GU2fbFW35XT/OlsYh0bcRyEw==","Lje/YW7IXiplSdW9fvoyYwsgpowQ1fHn3Y5I1g==","4AjrQhATVO9NJPRiLN7Ny114A+w89IM56mXutw==","HAH3TwLohHkqipBLi9I68ygP6pOJkPqqWi/Ucg==","BRrTWDT46d6DZTwwf8Y+u7eWzBJLPHECl/GaIA==","+RPPVSYDOUjky1gZ2MrJg8LhJW3+WAiRJ7ug5Q==","CckBc49OY+uR6WxwINOdAh5DwSqvbM3xtVtfqw==","9cAdfp21s332RwhZh99qOms0KFUaCLRiBRFlbg==","7Ns5aaul3tpfqKQic8tucvStDtTYpD/KyM8rPA==","ENIlZLleDkw4BsAL1MeZSoHa56ttwEZZeIUR+Q==","3u1xR8eFBIkQa+HUhuNm4teCQstB4TSHT263mA==","IuRtStV+1B93xYX9Ie+R2qL1q7T0hU0U/ySNXQ==","O/9JXeNuubjeKimG1fuVkj1sjTU2Kca8MvrDDw==","x/ZVUPGVaS65hE2vcvdiqkgbZEqDTb8vgrD5yg==","uoHhGx/FrS+O8GslcbN235Hc2vVuayIdXDGSzQ==","Roj9Fg0+fbnpXg8M1r+B5+SrM4rbD1uO7HuoCA==","X5PZATsuEB5AsaN3IquFr3syFQsZo9AmIaXmWg==","o5rFDCnVwIgnH8dehadylw5F/HSsx6m1ke/cnw==","baWRL1cOyk0PcuaB14ONP1gdWRSA5ttrpgR6/g==","kayNIkX1Gtto3IKocI96By1qsGs1gqL4Fk5AOw==","iLepNXPld3zBMy7ThJt+T7Lzlur3LilQ25AOaQ==","dL61OGEep+qmnUr6I5eJd8eEf5VCSlDDa9o0rA==","clnco7JF4n6v22LaghNWpR1g94kwYg40eo/YZw==","jlDArqC+MujIdQbzJR+hnWgXHvaFBnenysXiog==","l0vkuZauX09hmqqI0Qul1feOOHdHqvwPBxus8A==","a0L4tIRVj9kGNM6hdgdS7YL50QjyzoWct1GWNQ==","pX2sl/qOhRwuWe9+JCOtRdShdGje7/dCgLowVA==","WXSwmuh1VYpJ94tXgy9afaHWnRdri47RMPAKkQ==","QG+Ujd5lOC3gGCcsdzteNT5Pu5apJwV5/S5Eww==","vGaIgMye6LuHtkMF0DepDUs4UukcQ3zqTWR+Bg==","wRE8yyLOLLqwwmWP03O9eJL/7FbxZeHYk+UVAQ==","PRggxjA1/CzXbAGmdH9KQOeIBSlEAZhLI68vxA==","JAME0QYlkYt+g63dgGtOCHgRI6iGrRPj7nFhlg==","2AoY3BTeQR0ZLcn0J2e5MA1mytczyWpwXjtbUw==","FjVM/2oFS9gxQOgrdUNGmFs+b7cf6BiuadD9Mg==","6jxQ8nj+m05W7owC0k+xoC5JhsiqjGE92ZrH9w==","8yd05U7u9un/ASB5Jlu16LHQoEloIOqVFESJpQ==","Dy5o6FwVJn+Yr0RQgVdC0MSnSTbdRJMGpA6zYA==","Do71qQF0QrIVRUiry2kd9xSJdcfKSH1VLZlqOQ==","8ofppBOPkiRy6yyCbGXqz2H+nLh/LATGndNQ/A==","65zNsyWf/4PbBID5mHHuh/5nujm9gI9uUA0erg==","F5XRvjdkLxW8quTQP30Zv4sQU0YI5Pb94Eckaw==","2aqFnUm/JdCUx8UPbVnmF91I9iYkxYQj16yCCg==","JaOZkFtE9UbzaaEmylURL6g/H1mRof2wZ+a4zw==","PLi9h21UmOFahg1dPkEVZzemOdhTDXYYqjj2nQ==","wLGhin+vSHc9KGl0mU3iX0LR0KfmaQ+LGnLMWA==","vcYVwZH/jHYKXE/+mgn2KpsWbhgLT5K5xPOnXw==","Qc8JzIMEXOBt8ivXPQUBEu5hh2e+K+sqdLmdmg==","WNQt27UUMUfEHYesyREFWnH4oeZ8h2CCuWfTyA==","pN0x1qfv4dGjs+OFbh3yYgSPSJnJ4xkRCS3pDQ==","auJl9dk06xSL3sJaPDkNylLX7fnlwmvPPsZPbA==","lut5+MvPO4LscKZzmzX68iegBIZQphJcjox1qQ==","j/Bd7/3fViVFnwoIbyH+urg5IgeSCpn0Q1I7+w==","c/lB4u8khrMiMW4hyC0Jgs1Oy3gnbuBn8xgBPg==","dR4oeTx/wycrd0YBaanWUBeqQ2RVRr6Q4k3t9Q==","iRc0dC6EE7FM2SIozqUhaGLdqhvgIscDUgfXMA==","kAwQYxiUfhblNo5TOrElIP1EjJoijkyrn9mZYg==","bAUMbgpvroCCmOp6nb3SGIgzZeWX6jU4L5Ojpw==","ojpYTXS0pEWq9culz5ktsN5rwIW7y0fmGHgFxg==","XjNEQGZPdNPNW6+MaJXaiKscKfoOrz51qDI/Aw==","RyhgV1BfGXRktAP3nIHewDSFD3vMA7XdZexxUQ==","uyF8WkKkyeIDGmfeO40p+EHy5gR5Z8xO1aZLlA==","xlbIEaz0DeM0bkFUOMk9jZg1WLuUQVF8Cycgkw==","Ol/UHL4P3XVTwCV9n8XKte1CscQhJSjvu20aVg==","I0TwC4gfsNL6L4kGa9HO/XLbl0XjiaNHdrNUBA==","303sBprkYESdge0vzN05xQesfjpW7drUxvluwQ==","EXK4JeQ/aoG17MzwnvnGbVH021p6zKgK8RLIoA==","7XukKPbEuhfSQqjZOfUxVSSDMiXPqNGZQVjyZQ==","9GCAP8DU17B7rQSizeE1HbsaFKQNBFoxjIa8Nw==","CGmcMtIvByYcA2CLau3CJc5t/du4YCOiPMyG8g==","+LNSFHtiXYVpIVTikvSWpBLPGZzpVObCrix5vA==","BLpOGWmZjRMOjzDLNfhhnGe48ONcMJ9RHmZDeQ==","HaFqDl+J4LSnYJywwexl1Pgh1mKenBT507gNKw==","4ah2A01yMCLAzviZZuCS7I1WPx0r+G1qY/I37g==","L5ciIDOpOufoo9lGNMRtRNsOmn0H2R+0VBmRjw==","054+LSFS6nGPDb1vk8iafK55cwKyvWYn5FOrSg==","yoUaOhdCh9Ym4hEUZ9yeNDHgVYNwEe2PKY3lGA==","NowGNwW5V0BBTHU9wNBpDESXvPzFdZQcmcff3Q==","S/uyfOvpk0F2OFO3w5R9eZ1QAkMoUwkuR0a02g==","t/KucfkSQ9cRljeeZJiKQegn6zydN3C99wyOHw==","rumKZs8CLnC4eZvlkIyOCXe+zb1fm/sVOtLATQ==","UuCWa935/ubf1//MN4B5MQLJJMLq/4KGipj6iA==","nN/CSKMi9CP3ut4TZaSGmVSRgaLG3vBYvXNc6Q==","YNbeRbHZJLWQFLo6wqhxoSHmaN1zuonLDTlmLA==","ec36UofJSRI5+xZBNrx16b5/TlyxFgJjwOcofg==","hcTmX5UymYReVXJokbCC0csIpyMEcnvwcK0Suw==","gyOPxEZp3BBXE1pIMDRdAxHsLz92WiUHYfj+cA==","fyqTyVSSDIYwvT5hlziqO2SbxkDDPlyU0bLEtQ==","ZjG33mKCYSGZUpIaYyyuc/sC4MEBktc8HGyK5w==","mjir03B5sbf+/PYzxCBZS451Cb609q6vrCawIg==","VAf/8A6iu3LWkdfslgSm49gtrN6Y19xxm80WQw==","qA7j/RxZa+SxP7PFMQhR261aRaEts6XiK4cshg==","sRXH6ipJBkMY0B++xRxVkzLDYyDvHy5K5lli1A==","TRzb5ziy1tV/fnuXYhCiq0e0il9ae1fZVhNYEQ==","MGtvrNbiEtRICl0dYVS23p5zNOC3XcrriJIzFg==","zGJzocQZwkIvpDk0xlhB5usE3Z8CObN4ONgJ0w==","1XlXtvIJr+WGS5VPMkxFrnSd+x7AlTjQ9QZHgQ==","KXBLu+Dyf3Ph5fFmlUCylgHqEmF18UFDRUx9RA==","508fmJ4pdbbJiNC5x2RNPleytwFZ0DOdcqfbJQ==","G0YDlYzSpSCuJrSQYGi6BiLFXn7stEoOwu3h4A==","Al0ngrrCyIcHyRjrlHy+Tr1ceP8uGMGmDzOvsg==","/lQ7j6g5GBFgZ3zCM3BJdsgrkYCbfLg1v3mVdw=="]},_resource:null,$type:new n.ig.Type("RSP28",n.ig.$ot)},!0);n.ig.util.defType("RSP30:ls","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["1PZNScPAS2IFRmexFtmKM7X2SBkSLuRK2MMLaoKW","1PZNScPAS2IFRmexFtmKM7X2SBkSLuRK2MMLaoKW","tfGakpudlsQKjM5/LK8JZnfxkDIkXNWUrZsW1Bkx","YQfX21hd3aYPyqnOOnaDVcIH2Cs2cjHedVgdvpun","d/8pOSsnMZUUBYH+WEMSzO7/PWRIuLc1RysstTJi","owlkcOjnevcRQ+ZPTpqY/1sJdX1allN/n+gn37D0","wg6zq7C6p1EeiU+BdOwbqpkOrVZs5GKh6rA6YStT","Fvj+4nN67DMbzygwYjWRmSz45U9+yobrMnMxC6nF","7uNSclZOYjcoCh/hsIYkhcHjesiQbXNqjlZYd2TE","OhUfO5WOKVUtTHhQpl+utnQVMtGCQ5cgVpVTHeZS","WxLI4M3T9PMihtGenCkt47YS6vq0Mab+I81Oo331","j+SFqQ4Tv5EnwLYvivCn0APkouOmH0K0+w5Fyf9j","mRx7S31pU6I8D54f6MU2SS8cR6zY1cRfyX10wlam","Teo2Ar6pGMA5Sfmu/hy8eprqD7XK+yAVEb5/qNQw","LO3h2eb0xWY2g1BgxGo/L1jt1578iRHLZOZiFk+X","+BuskCU0jgQzxTfR0rO1HO0bn4fup/WBvCVpfM0B","wduk5KycxG5QFD7ffRFIF5/b9I092ubUAayw7siV","FS3prW9cjwxVUllua8jCJCotvJQv9AKe2W+7hEoD","dCo+djcBUqpamPCgUb5BcegqZL8ZhjNArDemOtGk","oNxzP/TBGchf3pcRR2fLQl3cLKYLqNcKdPStUFMy","tiSN3Ye79ftEEb8hJVJa23Ekyel1YlHhRoecW/r3","YtLAlER7vplBV9iQM4vQ6MTSgfBnTLWrnkSXMXhh","A9UXTxwmYz9OnXFeCf1TvQbVWdtRPoR16xyKj+PG","1yNaBt/mKF1L2xbvHyTZjrMjEcJDEGA/M9+B5WFQ","Lzj2lvrSpll4HiE+zZdskl44jkWtt5W+j/romaxR","+8673zkS7Tt9WEaP207moevOxly/mXH0Vznj8y7H","mslsBGFPMJ1yku9B4Thl9CnJHneJ60AqImH+TbVg","Tj8hTaKPe/931Ijw9+Hvx5w/Vm6bxaRg+qL1Jzf2","WMffr9H1l8xsG6DAldR+XrDHsyHlDyKLyNHELJ4z","jDGS5hI13K5pXcdxgw30bQUx+zj3IcbBEBLPRhyl","7TZFPUpoAQhml26/uXt3OMc2IxPBU/cfZUrS+IcC","OcAIdImoSmpj0QkOr6L9C3LAawrTfRNVvYnZkgWU","n6tV1UUlldygKHyj+iKQLiOr9Qd6qdG1AkV9wY03","S10YnIbl3r6lbhsS7PsaHZZdvR5ohzX/2oZ2qw+h","KlrPR964AxiqpLLc1o2ZSFRaZTVe9QQhr95rFZQG","/qyCDh14SHqv4tVtwFQTe+GsLSxM2+Brdx1gfxaQ","6FR87G4CpEm0Lf1domGC4s1UyGMyEWaARW5RdL9V","PKIxpa3C7yuxa5rstLgI0XiigHogP4LKna1aHj3D","XaXmfvWfMo2+oTMijs6LhLqlWFEWTbMU6PVHoKZk","iVOrNzZfee+751STmBcBtw9TEEgEY1deMDZMyiTy","cUgHpxNr9+uIImNCSqS0q+JIj8/qxKLfjBMltunz","pb5K7tCrvImNZATzXH0+mFe+x9b46kaVVNAu3Gtl","xLmdNYj2YS+Crq09Zgu9zZW5H/3OmHdLIYgzYvDC","EE/QfEs2Kk2H6MqMcNI3/iBPV+TctpMB+Us4CHJU","BrcunjhMxn6cJ+K8EuemZwy3squifBXqyzgJA9uR","0kFj1/uMjRyZYYUNBD4sVLlB+rKwUvGgE/sCaVkH","s0a0DKPRULqWqyzDPkivAXtGIpmGIMB+ZqMf18Kg","Z7D5RWARG9iT7UtyKJElMs6waoCUDiQ0vmAUvUA2","XnDxMem5UbLwPEJ8hzPYObxwAYpHczdhA+nNL0Wi","ioa8eCp5GtD1eiXNkepSCgmGSZNVXdMr2yrGRcc0","64Fro3Ikx3b6sIwDq5zRX8uBkbhjL+L1rnLb+1yT","P3cm6rHkjBT/9uuyvUVbbH532aFxAQa/drHQkd4F","KY/YCMKeYCfkOcOC33DK9VKPPO4Py4BURMLhmnfA","/XmVQQFeK0Xhf6QzyalAxud5dPcd5WQenAHq8PVW","nH5CmlkD9uPutQ3989/DkyV+rNwrl1XA6Vn3Tm7x","SIgP05rDvYHr82pM5QZJoJCI5MU5ubGKMZr8JOxn","sJOjQ7/3M4XYNl2dN7X8vH2Te0LXHkQLjb+VWCFm","ZGXuCnw3eOfdcDosIWx2j8hlM1vFMKBBVXyeMqPw","BWI50SRqpUHSupPiGxr12gpi63DzQpGfICSDjDhX","0ZR0mOeq7iPX/PRTDcN/6b+Uo2nhbHXV+OeI5rrB","x2yKepTQAhDMM9xjb/bucJNsRiafpvM+ypS57RME","E5rHM1cQSXLJdbvSeS9kQyaaDj+NiBd0Eleyh5GS","cp0Q6A9NlNTGvxIcQ1nnFuSd1hS7+iaqZw+vOQo1","pmtdocyN37bD+XWtVYBtJVFrng2p1MLgv8ykU4ij","I0uqt4pKN6VdUPhb6UQ9XEZL9w70T793BIr6nwdu","973n/kmKfMdYFp/q/523b/O9vxfmYVs93Enx9YX4","lrowJRHXoWFX3DYkxes0OjG6ZzzQE2rjqRHsSx5f","Qkx9bNIX6gNSmlGV0zK+CYRMLyXCPY6pcdLnIZzJ","VLSDjqFtBjBJVXmlsQcvkKi0ymq89whCQ6HWKjUM","gELOx2KtTVJMEx4Up96lox1CgnOu2ewIm2LdQLea","4UUZHDrwkPRD2bfanagm9t9FWliYq93W7jrA/iw9","NbNUVfkw25ZGn9Bri3GsxWqzEkGKhTmcNvnLlK6r","zaj4xdwEVZJ1Wue6WcIZ2YeojcZkIswdityi6GOq","GV61jB/EHvBwHIALTxuT6jJexd92DChXUh+pguE8","eFliV0eZw1Z/1inFdW0Qv/BZHfRAfhmJJ0e0PHqb","rK8vHoRZiDR6kE50Y7SajEWvVe1SUP3D/4S/VvgN","ulfR/PcjZAdhX2ZEAYELFWlXsKIsmnsozfeOXVHI","bqGctTTjL2VkGQH1F1iBJtyh+Ls+tJ9iFTSFN9Ne","D6ZLbmy+8sNr06g7LS4Ccx6mIJAIxq68YGyYiUj5","21AGJ69+uaFulc+KO/eIQKtQaIka6Er2uK+T48pv","4pAOUybW88sNRMaElFV1S9mQA4PJlVmjBSZKcc/7","NmZDGuUWuKkIAqE1goz/eGxmS5rbu73p3eVBG01t","V2GUwb1LZQ8HyAj7uPp8La5hk7HtyYw3qL1cpdbK","g5fZiH6LLm0Cjm9KriP2HhuX26j/52h9cH5Xz1Rc","lW8nag3xwl4ZQUd6zBZnhzdvPueBLe6WQg1mxP2Z","QZlqI84xiTwcByDL2s/ttIKZdv6TAwrcms5trn8P","IJ69+JZsVJoTzYkF4Llu4UCertWlcTsC75ZwEOSo","9GjwsVWsH/gWi+609mDk0vVo5sy3X99IN1V7emY+","DHNcIXCYkfwlTtllJNNRzhhzeUtZ+CrJi3ASBqs/","2IURaLNY2p4gCL7UMgrb/a2FMVJL1s6DU7MZbCmp","uYLGs+sFBzgvwhcaCHxYqG+C6Xl9pP9dJusE0rIO","bXSL+ijFTFoqhHCrHqXSm9p0oWBvihsX/igPuDCY","e4x1GFu/oGkxS1ibfJBDAvaMRC8RQJ38zFs+s5ld","r3o4UZh/6ws0DT8qaknJMUN6DDYDbnm2FJg12RvL","zn3visAiNq07x5bkUD9KZIF91B01HEhoYcAoZ4Bs","GouiwwPifc8+gfFVRubAVzSLnAQnMqwiuQMjDQL6","vOD/Ys9vonn9eIT4E2atcmXgAgmO5m7CBs+HXopZ","aBayKwyv6Rv4PuNJBb8nQdAWShCcyIqI3gyMNAjP","CRFl8FTyNL339EqHP8mkFBIRkjuqurtWq1SRipNo","3ecouZcyf9/ysi02KRAuJ6fn2iK4lF8cc5ea4BH+","yx/WW+RIk+zpfQUGSyW/vosfP23GXtn3QeSr67g7","H+mbEieI2I7sO2K3Xfw1jT7pd3TUcD29mSeggTqt","fu5MyX/VBSjj8ct5Z4q22Pzur1/iAgxj7H+9P6EK","qhgBgLwVTkrmt6zIcVM860kY50bwLOgpNLy2VSOc","UgOtEJkhwE7VcpsZo+CJ96QDeMEeix2oiJnfKe6d","hvXgWVrhiyzQNPyotTkDxBH1MNgMpfniUFrUQ2wL","5/I3ggK8Vorf/lVmj0+AkdPy6PM618g8JQLJ/fes","MwR6y8F8HejauDLXmZYKomYEoOoo+Sx2/cHCl3U6","JfyEKbIG8dvBdxrn+6ObO0r8RaVWM6qdz7LznNz/","8QrJYHHGurnEMX1W7XoRCP8KDbxEHU7XF3H49l5p","kA0euymbZx/L+9SY1wySXT0N1Zdyb38JYinlSMXO","RPtT8upbLH3OvbMpwdUYboj7nY5gQZtDuuruIkdY","fTtbhmPzZhetbLonbnflZfo79oSzPIgWB2M3sELM","qc0Wz6AzLXWoKt2WeK5vVk/Nvp2hEmxc36A82sBa","yMrBFPhu8NOn4HRYQtjsA43KZraXYF2CqvghZFv9","HDyMXTuuu7GiphPpVAFmMDg8Lq+FTrnIcjsqDtlr","CsRyv0jUV4K5aTvZNjT3qRTEy+D7hD8jQEgbBXCu","3jI/9osUHOC8L1xoIO19mqEyg/npqttpmIsQb/I4","vzXoLdNJwUaz5fWmGpv+z2M1W9Lf2Oq37dMN0Wmf","a8OlZBCJiiS2o5IXDEJ0/NbDE8vN9g79NRAGu+sJ","k9gJ9DW9BCCFZqXG3vHB4DvYjEwjUft8iTVvxyYI","Ry5EvfZ9T0KAIMJ3yChL044uxFUxfx82UfZkraSe","JimTZq4gkuSP6mu58l7IhkwpHH4HDS7oJK55Ez85","8t/eL23g2YaKrAwI5IdCtfnfVGcVI8qi/G1yeb2v","5CcgzR6aNbWRYyQ4hrLTLNUnsShr6UxJzh5DchRq","MNFthN1afteUJUOJkGtZH2DR+TF5x6gDFt1IGJb8","Uda6X4UHo3Gb7+pHqh3aSqLWIRpPtZndY4VVpg1b","hSD3FkbH6BOeqY32vMRQeRcgaQNdm32Xu0ZezI/N","RpZJcwmUble6oO22z4h6uIyW8xz1nmPuCAnpIw7c","kmAEOspUJTW/5ooH2VHwizlguwXnsIek0MriSYxK","82fT4ZIJ+JOwLCPJ4ydz3vtnYy7RwrZ6pZL/9xft","J5GeqFHJs/G1akR49f757U6RKzfD7FIwfVH0nZV7","MWlgSiKzX8KupWxIl8todGJpzni9JtTbTyLFljy+","5Z8tA+FzFKCr4wv5gRLiR9efhmGvCDCRl+HO/L4o","hJj62LkuyQakKaI3u2RhEhWYXkqZegFP4rnTQiWP","UG63kXrugmShb8WGrb3rIaBuFlOLVOUFOnrYKKcZ","qHUbAV/aDGCSqvJXfw5ePU11idRl8xCEhl+xVGoY","fINWSJwaRwKX7JXmadfUDviDwc133fTOXpy6PuiO","HYSBk8RHmqSYJjwoU6FXWzqEGeZBr8UQK8SngHMp","yXLM2geH0cadYFuZRXjdaI9yUf9TgSFa8wes6vG/","34oyOHT9PfWGr3OpJ01M8aOKtLAtS6exwXSd4Vh6","C3x/cbc9dpeD6RQYMZTGwhZ8/Kk/ZUP7GbeWi9rs","anuoqu9gqzGMI73WC+JFl9R7JIIJF3IlbO+LNUFL","vo3l4yyg4FOJZdpnHTvPpGGNbJsbOZZvtCyAX8Pd","h03tl6UIqjnqtNNpspkyrxNNB5HIRIU6CaVZzcZJ","U7ug3mbI4Vvv8rTYpEC4nKa7T4jaamFw0WZSp0Tf","Mrx3BT6VPP3gOB0WnjY7yWS8l6PsGFCupD5PGd94","5ko6TP1Vd5/lfnqniO+x+tFK37r+NrTkfP1Ec13u","8LLEro4vm6z+sVKX6togY/2yOvWA/DIPTo51ePQr","JESJ503v0M779zUm/AOqUEhEcuyS0tZFlk1+Ena9","RUNePBWyDWj0PZzoxnUpBYpDqsekoOeb4xVjrO0a","kbUTddZyRgrxe/tZ0KyjNj+14t62jgPRO9Zoxm+M","aa6/5fNGyA7CvsyIAh8WKtKufVlYKfZQh/MBuqKN","vVjyrDCGg2zH+Ks5FMacGWdYNUBKBxIaXzAK0CAb","3F8ld2jbXsrIMgL3LrAfTKVf7Wt8dSPEKmgXbru8","CKloPqsbFajNdGVGOGmVfxCppXJuW8eO8qscBDkq","HlGW3Nhh+ZvWu012WlwE5jxRQD0QkUFlwNgtD5Dv","yqfblRuhsvnT/SrHTIWO1YmnCCQCv6UvGBsmZRJ5","q6AMTkP8b1/cN4MJdvMNgEug0A80zZTxbUM724ne","f1ZBB4A8JD3ZceS4YCqHs/5WmBYm43C7tYAwsQtI","2T0cpkyx+4saiJEVNarqlq89BhuPN7JbCkyU4oPr","DctR749xsOkfzvakI3NgpRrLTgKdGVYR0o+fiAF9","bMyGNNcsbU8QBF9qGQXj8NjMlimra2fPp9eCNpra","uDrLfRTsJi0VQjjbD9xpw2063jC5RYOFfxSJXBhM","rsI1n2eWyh4OjRDrben4WkHCO3/HjwVuTWe4V7GJ","ejR41qRWgXwLy3daezByafQ0c2bVoeEklaSzPTMf","GzOvDfwLXNoEAd6UQUbxPDYzq03j09D64Pyug6i4","z8XiRD/LF7gBR7klV597D4PF41Tx/TSwOD+l6Sou","N95O1Br/mbwygo70hSzOE27efNMfWsExhBrMlecv","4ygDndk/0t43xOlFk/VEINsoNMoNdCV7XNnH/2W5","gi/URoFiD3g4DkCLqYPHdRkv7OE7BhSlKYHaQf4e","VtmZD0KiRBo9SCc6v1pNRqzZpPgpKPDv8ULRK3yI","QCFn7THYqCkmhw8K3W/c34AhQbdX4nYEwzHgINVN","lNcqpPIY40sjwWi7y7ZW7DXXCa5FzJJOG/LrSlfb","9dD9f6pFPu0sC8F18cDVuffQ0YVzvqOQbqr29Mx8","ISawNmmFdY8pTabE5xlfikImmZxhkEfatmn9nk7q","GOa4QuAtP+VKnK/KSLuigTDm8pay7VSPC+AkDEt+","zBD1CyPtdIdP2sh7XmIosoUQuo+gw7DF0yMvZsno","rRci0HuwqSFAEGG1ZBSr50cXYqSWsYEbpnsy2FJP","eeFvmbhw4kNFVgYEcs0h1PLhKr2En2VRfrg5stDZ","bxmRe8sKDnBemS40EPiwTd4Zz/L6VeO6TMsIuXkc","u+/cMgjKRRJb30mFBiE6fmvvh+voewfwlAgD0/uK","2ugL6VCXmLRUFeBLPFe5K6noX8DeCTYu4VAebWAt","Dh5GoJNX09ZRU4f6Ko4zGBweF9nMJ9JkOZMVB+K7","9gXqMLZjXdJilrAr+D2GBPEFiF4igCflhbZ8ey+6","IvOneXWjFrBn0Nea7uQMN0TzwEcwrsOvXXV3Ea0s","Q/Rwoi3+yxZoGn5U1JKPYob0GGwG3PJxKC1qrzaL","lwI96+4+gHRtXBnlwksFUTMCUHUU8hY78O5hxbQd","gfrDCZ1EbEd2kzHVoH6UyB/6tTpqOJDQwp1Qzh3Y","VQyOQF6EJyVz1VZktqce+6oM/SN4FnSaGl5bpJ9O","NAtZmwbZ+oN8H/+qjNGdrmgLJQhOZEVEbwZGGgTp","4P0U0sUZseF5WZgbmggXnd39bRFcSqEOt8VNcIZ/","Zd3jxIPeWfLn8BXtJsxH5MrdBBIB0dyZDIMTvAmy","sSuujUAeEpDitnJcMBXN138rTAsT/zjT1EAY1osk","0Cx5VhhDzzbtfNuSCmNOgr0slCAljQkNoRgFaBCD","BNo0H9uDhFToOrwjHLrEsQja3Dk3o+1HedsOApIV","EiLK/aj5aGfz9ZQTfo9VKCQiOXZJaWusS6g/CTvQ","xtSHtGs5IwX2s/OiaFbfG5HUcW9bR4/mk2s0Y7lG","p9NQbzNk/qP5eVpsUiBcTlPTqURtNb445jMp3SLh","cyUdJvCktcH8Pz3dRPnWfeYl4V1/G1pyPvAit6B3","iz6xttWQO8XP+goMlkpjYQs+ftqRvK/zgtVLy212","X8j8/xZQcKfKvG29gJPpUr7INsODkku5WhZAoe/g","Ps8rJE4NrQHFdsRzuuVqB3zP7ui14HpnL05dH3RH","6jlmbY3N5mPAMKPCrDzgNMk5pvGnzp4t941WdfbR","/MGYj/63ClDb/4vyzglxreXBQ77ZBBjGxf5nfl8U","KDfVxj13QTLeuexD2ND7nlA3C6fLKvyMHT1sFN2C","STACHWUqnJTRc0WN4qZ4y5Iw04z9WM1SaGVxqkYl","ncZPVKbq1/bUNSI89H/y+CfGm5XvdikYsKZ6wMSz","pAZHIC9CnZy35CsyW90P81UG8J88CzpNDS+jUsEn","cPAKaeyC1v6yokyDTQSFwODwuIYuJd4H1eyoOEOx","EffdsrTfC1i9aOVNd3IGlSL3YK0YV+/ZoLS1htgW","xQGQ+3cfQDq4LoL8YauMppcBKLQKeQuTeHe+7FqA","0/luGQRlrAmj4arMA54dP7v5zft0s414SgSP5/NF","Bw8jUMel52ump819FUeXDA4PheJmnWkykseEjXHT","Zgj0i5/4Os2pbWSzLzEUWcwIXclQ71js55+ZM+p0","sv65wlw4ca+sKwMCOeieann+FdBCwbymP1ySWWji","SuUVUnkM/6uf7jTT61srdpTlilesZkkng3n7JaXj","nhNYG7rMtMmaqFNi/YKhRSETwk6+SK1tW7rwTyd1","/xSPwOKRaW+VYvqsx/QiEOMUGmWIOpyzLuLt8bzS","K+LCiSFRIg2QJJ0d0S2oI1biUnyaFHj59iHmmz5E","PRo8a1Irzj6L67Utsxg5unoatzPk3v4SxFLXkJeB","6exxIpHrhVyOrdKcpcGzic/s/yr28BpYHJHc+hUX","iOum+cm2WPqBZ3tSn7cw3A3rJwHAgiuGacnBRI6w","XB3rsAp2E5iEIRzjiW6677gdbxjSrM/MsQrKLgwm","+na2Ecb7zC5H2GlO3O7Xyul28RV7eA0sDsZufYSF","LoD7WAU7h0xCng7/yjdd+VyAuQxpVulm1gVlFwYT","T4csg11mWupNVKcx8EHerJ6HYSdfJNi4o114qZ20","m3Fhyp6mEYhIEsCA5phUnytxKT5NCjzye55zwx8i","jYmfKO3c/btT3eiwhK3FBgeJzHEzwLoZSe1CyLbn","WX/SYS4cttlWm48BknRPNbJ/hGgh7l5TkS5JojRx","OHgFunZBa39ZUSbPqALMYHB4XEMXnG+N5HZUHK/W","7I5I87WBIB1cF0F+vttGU8WOFFoFsovHPLVfdi1A","FJXkY5C1rhlv0navbGjzTyiVi93rFX5GgJA2CuBB","wGOpKlN15XtqlBEeerF5fJ1jw8T5O5oMWFM9YGLX","oWR+8QsoON1lXrjQQMf6KV9kG+/PSavSLQsg3vlw","dZIzuMjoc79gGN9hVh5wGuqSU/bdZ0+Y9cgrtHvm","Y2rNWruSn4x71/dRNCvhg8Zqtrmjrclzx7sav9Ij","t5yAE3hS1O5+kZDgIvJrsHOc/qCxgy05H3gR1VC1","1ptXyCAPCUhxWzkuGITo5bGbJouH8RznaiAMa8sS","Am0agePPQip0HV6fDl1i1gRtbpKV3/itsuMHAUmE","O60S9WpnCEAXzFeRof+f3XatBZhGouv4D2rek0wQ","71tfvKmnQyISijAgtyYV7sNbTYFUjA+y16nV+c6G","jlyIZ/H6noQdQJnujVCWuwFclapi/j5sovHIR1Uh","WqrFLjI61eYYBv5fm4kciLSq3bNw0NomejLDLde3","TFI7zEFAOdUDydZv+byNEZhSOPwOGlzNSEHyJn5y","mKR2hYKAcrcGj7He72UHIi2kcOUcNLiHkIL5TPzk","+aOhXtrdrxEJRRgQ1ROEd++jqM4qRolZ5drk8mdD","LVXsFxkd5HMMA3+hw8oORFpV4Nc4aG0TPRnvmOXV","1U5Ahzwpanc/xkhwEXm7WLdOf1DWz5iSgTyG5CjU","AbgNzv/pIRU6gC/BB6AxawK4N0nE4XzYWf+NjqpC","YL/aFae0/LM1SoYPPdayPsC/72Lyk00GLKeQMDHl","tEmXXGR0t9EwDOG+Kw84DXVJp3vgvalM9GSbWrNz","orFpvhcOW+Irw8mOSTqplFmxQjSedy+nxheqURq2","dkck99TOEIAuha4/X+Mjp+xHCi2MWcvtHtShO5gg","F0DzLIyTzSYhTwfxZZWg8i5A0ga6K/oza4y8hQOH","w7a+ZU9ThkQkCWBAc0wqwZu2mh+oBR55s0+374ER"]},_resource:null,$type:new n.ig.Type("RSP30",n.ig.$ot)},!0);n.ig.util.defType("RSP7:lt","Object",{init:function(){n.ig.$op.init.call(this);this._resource=["f3qapAtEdQ==","f3qapAtEdQ==","/vQpVRaI6g==","gY6z8R3Mnw==","4fVSqiwNyQ==","no/IDidJvA==","HwF7/zqFIw==","YHvhWzHBVg==","3/ekSVgajw==","oI0+7VNe+g==","IQONHE6SZQ==","XnkXuEXWEA==","PgL243QXRg==","QXhsR39TMw==","wPbftmKfrA==","v4xFEmnb2Q==","o/NVkrA0Aw==","3InPNrtwdg==","XQd8x6a86Q==","In3mY634nA==","QgYHOJw5yg==","PXydnJd9vw==","vPIubYqxIA==","w4i0yYH1VQ==","fATx2+gujA==","A35rf+Nq+Q==","gvDYjv6mZg==","/YpCKvXiEw==","nfGjccQjRQ==","4os51c9nMA==","YwWKJNKrrw==","HH8QgNnv2g==","W/uqOX1oBg==","JIEwnXYscw==","pQ+DbGvg7A==","2nUZyGCkmQ==","ug74k1Flzw==","xXRiN1ohug==","RPrRxkftJQ==","O4BLYkypUA==","hAwOcCVyiQ==","+3aU1C42/A==","evgnJTP6Yw==","BYK9gTi+Fg==","Zflc2gl/QA==","GoPGfgI7NQ==","mw11jx/3qg==","5HfvKxSz3w==","+Aj/q81cBQ==","h3JlD8YYcA==","BvzW/tvU7w==","eYZMWtCQmg==","Gf2tAeFRzA==","Zoc3peoVuQ==","5wmEVPfZJg==","mHMe8PydUw==","J/9b4pVGig==","WIXBRp4C/w==","2Qtyt4POYA==","pnHoE4iKFQ==","xgoJSLlLQw==","uXCT7LIPNg==","OP4gHa/DqQ==","R4S6uaSH3A==","tutJcvrQDA==","yZHT1vGUeQ==","SB9gJ+xY5g==","N2X6g+cckw==","Vx4b2NbdxQ==","KGSBfN2ZsA==","qeoyjcBVLw==","1pCoKcsRWg==","aRztO6LKgw==","FmZ3n6mO9g==","l+jEbrRCaQ==","6JJeyr8GHA==","iOm/kY7HSg==","95MlNYWDPw==","dh2WxJhPoA==","CWcMYJML1Q==","FRgc4ErkDw==","amKGREGgeg==","6+w1tVxs5Q==","lJavEVcokA==","9O1OSmbpxg==","i5fU7m2tsw==","ChlnH3BhLA==","dWP9u3slWQ==","yu+4qRL+gA==","tZUiDRm69Q==","NBuR/AR2ag==","S2ELWA8yHw==","KxrqAz7zSQ==","VGBwpzW3PA==","1e7DVih7ow==","qpRZ8iM/1g==","7RDjS4e4Cg==","kmp574z8fw==","E+TKHpEw4A==","bJ5Qupp0lQ==","DOWx4au1ww==","c58rRaDxtg==","8hGYtL09KQ==","jWsCELZ5XA==","MudHAt+ihQ==","TZ3dptTm8A==","zBNuV8kqbw==","s2n088JuGg==","0xIVqPOvTA==","rGiPDPjrOQ==","LeY8/eUnpg==","UpymWe5j0w==","TuO22TeMCQ==","MZksfTzIfA==","sBefjCEE4w==","z20FKCpAlg==","rxbkcxuBwA==","0Gx+1xDFtQ==","UeLNJg0JKg==","LphXggZNXw==","kRQSkG+Whg==","7m6INGTS8w==","b+A7xXkebA==","EJqhYXJaGQ==","cOFAOkObTw==","D5vankjfOg==","jhVpb1UTpQ==","8W/zy15X0A==","ccuS5Om9GA==","DrEIQOL5bQ==","jz+7sf818g==","8EUhFfRxhw==","kD7ATsWw0Q==","70Ra6s70pA==","bsrpG9M4Ow==","EbBzv9h8Tg==","rjw2rbGnlw==","0UasCbrj4g==","UMgf+KcvfQ==","L7KFXKxrCA==","T8lkB52qXg==","MLP+o5buKw==","sT1NUositA==","zkfX9oBmwQ==","0jjHdlmJGw==","rUJd0lLNbg==","LMzuI08B8Q==","U7Z0h0RFhA==","M82V3HWE0g==","TLcPeH7Apw==","zTm8iWMMOA==","skMmLWhITQ==","Dc9jPwGTlA==","crX5mwrX4Q==","8ztKahcbfg==","jEHQzhxfCw==","7DoxlS2eXQ==","k0CrMSbaKA==","Es4YwDsWtw==","bbSCZDBSwg==","KjA43ZTVHg==","VUqieZ+Raw==","1MQRiIJd9A==","q76LLIkZgQ==","y8Vqd7jY1w==","tL/w07Ocog==","NTFDIq5QPQ==","SkvZhqUUSA==","9ceclMzPkQ==","ir0GMMeL5A==","CzO1wdpHew==","dEkvZdEDDg==","FDLOPuDCWA==","a0hUmuuGLQ==","6sbna/ZKsg==","lbx9z/0Oxw==","icNtTyThHQ==","9rn36y+laA==","dzdEGjJp9w==","CE3evjktgg==","aDY/5Qjs1A==","F0ylQQOooQ==","lsIWsB5kPg==","6biMFBUgSw==","VjTJBnz7kg==","KU5Tone/5w==","qMDgU2pzeA==","17p692E3DQ==","t8GbrFD2Ww==","yLsBCFuyLg==","STWy+UZ+sQ==","Nk8oXU06xA==","xyDblhNtFA==","uFpBMhgpYQ==","OdTywwXl/g==","Rq5oZw6hiw==","JtWJPD9g3Q==","Wa8TmDQkqA==","2CGgaSnoNw==","p1s6zSKsQg==","GNd/30t3mw==","Z63le0Az7g==","5iNWil3/cQ==","mVnMLla7BA==","+SItdWd6Ug==","hli30Ww+Jw==","B9YEIHHyuA==","eKyehHq2zQ==","ZNOOBKNZFw==","G6kUoKgdYg==","mienUbXR/Q==","5V099b6ViA==","hSbcro9U3g==","+lxGCoQQqw==","e9L1+5ncNA==","BKhvX5KYQQ==","uyQqTftDmA==","xF6w6fAH7Q==","RdADGO3Lcg==","OqqZvOaPBw==","WtF459dOUQ==","JaviQ9wKJA==","pCVRssHGuw==","21/LFsqCzg==","nNtxr24FEg==","46HrC2VBZw==","Yi9Y+niN+A==","HVXCXnPJjQ==","fS4jBUII2w==","AlS5oUlMrg==","g9oKUFSAMQ==","/KCQ9F/ERA==","QyzV5jYfnQ==","PFZPQj1b6A==","vdj8syCXdw==","wqJmFyvTAg==","otmHTBoSVA==","3aMd6BFWIQ==","XC2uGQyavg==","I1c0vQfeyw==","PygkPd4xEQ==","QFK+mdV1ZA==","wdwNaMi5+w==","vqaXzMP9jg==","3t12l/I82A==","oafsM/l4rQ==","IClfwuS0Mg==","X1PFZu/wRw==","4N+AdIYrng==","n6Ua0I1v6w==","HiupIZCjdA==","YVEzhZvnAQ==","ASrS3qomVw==","flBIeqFiIg==","/977i7yuvQ==","gKRhL7fqyA=="]},_resource:null,$type:new n.ig.Type("RSP7",n.ig.$ot)},!0);n.ig.util.defType("QRCodeBarcodeResources:f7","Object",{init:function(){n.ig.$op.init.call(this)},d:function(n,i){return t.$f7.e.indexOf(n.charAt(i))},a:function(i){var f=new t.b8(n.ig.Number.prototype.$type,0),e,r,u,o=i.length;for(e=0,i.charAt(o-1)==t.$f7.c&&(e=1,i.charAt(o-2)==t.$f7.c&&(e=2),o-=4),r=0;r<o;r+=4)u=t.$f7.d(i,r)<<18|t.$f7.d(i,r+1)<<12|t.$f7.d(i,r+2)<<6|t.$f7.d(i,r+3),f.add1(u>>16),f.add1(u>>8&255),f.add1(u&255);switch(e){case 1:u=t.$f7.d(i,r)<<18|t.$f7.d(i,r+1)<<12|t.$f7.d(i,r+2)<<6;f.add1(u>>16);f.add1(u>>8&255);break;case 2:u=t.$f7.d(i,r)<<18|t.$f7.d(i,r+1)<<12;f.add1(u>>16)}return f.toArray()},b:function(i){for(var u=(new n.ig[i])._resource,f=function(){for(var t=new Array($firstRank=u.length),i=t,n=0;n<$firstRank;n++)i[n]=[];return t}(),r=0;r<u.length;r++)f[r]=t.$f7.a(u[r]);return f},$type:new n.ig.Type("QRCodeBarcodeResources",n.ig.$ot)},!0);n.ig.util.defType("SR:ex","Object",{init:function(){n.ig.$op.init.call(this)},a:function(t){var i=String.empty();return t=t.charAt(0).toLowerCase()+t.substr(1),n.ig.Barcode.locale[t]},$type:new n.ig.Type("SR",n.ig.$ot)},!0);n.ig.util.defType("XamBarcodeView:bd","Object",{init:function(i){this.ai=new t.cr;this.c=["backing","bar","label"];this.e=!1;this.f=!1;this.r=null;this.ak=new t.bx;this.al=function(){var n=new t.bx;return n.fill("black"),n}();this.i=NaN;this.n=-1;this.m=-1;n.ig.$op.init.call(this);this.a(i);this.h=new t.x(String,t.$x.$type.specialize(String,t.$bx.$type),0)},_a:null,a:function(n){return arguments.length===1?(this._a=n,n):this._a},q:null,ai:null,aj:function(){return this.ai},g:function(){return!0},k:function(i){var r=n.ig.util.cast(t.$cr.$type,i);return r!=null&&r.aa()!=null?this.b().d(r.aa())+0:0},ap:function(n){isNaN(this.i)&&(this.i=this.j(null));var i=this.k(n),r=this.i;return new t.cm(i,r)},h:null,c:null,v:function(){var i=this,s,r;i.e=!0;var e=["white","black","black"],o=["transparent",null,null],l=function(){var i=new t.b8(n.ig.Array.prototype.$type,0);return i.add(e),i.add(o),i}();for(i.h.clear(),s=i.c.length,r=0;r<s;r++){var u=i.c[r],h=t.$c4.f("ui-barcode-"+u+"-fill","ui-barcode-"+u,"background-color",i.p(),e[r]),c=t.$c4.f("ui-barcode-"+u+"-outline","ui-barcode-"+u,"border-top-color",i.p(),o[r]),f=new t.x(String,t.$bx.$type,0);f.item("fill",h);f.item("outline",c);i.h.item(i.c[r],f)}i.ag();i.e=!1},ag:function(){var i,n,t;for(this.e=!0,i=this.c.length,n=0;n<i;n++)t=this.c[n],this.af(t,this.h.item(t));this.e=!1},af:function(n,t){var i=t.item("fill"),r=t.item("outline");switch(n){case"backing":this.am==null&&this.a().backingBrush(i);this.an==null&&this.a().backingOutline(r);break;case"bar":this.ao==null&&this.a().barBrush(i);break;case"label":this.al=i}},d:function(i,r){var f=this.q,u;f==null&&(f=this.q=n("<span style='position:absolute;display:none' />"),n("body").append(this.q));for(var e=r.length,o=e,s=new Array(o);o-->0;)s[o]=r[o]=="font"?null:f.css(r[o]);for(f.addClass(i);e-->0;)u=r[e],u=u=="font"?t.$dx.c(f):f.css(u),r[e]=u==null||u.length==0||u=="null"||u=="transparent"||u==s[e]?null:u;return f.removeClass(i),r},e:!1,z:function(){this.e=!0;this.e=!1},f:!1,ac:function(){this.f||(this.f=!0,window.setTimeout(this.s.runOn(this),0))},s:function(){this.f&&(this.f=!1,this.a().a6())},flush:function(){this.f&&this.s()},aa:function(n,t,i){n.l(t);n.m(i)},_o:null,o:function(n){return arguments.length===1?(this._o=n,n):this._o},_b:null,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_p:null,p:function(n){return arguments.length===1?(this._p=n,n):this._p},r:null,ak:null,x:function(i){var e=n(i),u,f,r,o;this.p(e);u=Math.round(e.width());f=Math.round(e.height());this.p().css("position","relative");r=n("<canvas style='position:absolute'><\/canvas>");this.p().append(r);this.n=u;this.m=f;r.attr("width",u.toString());r.attr("height",f.toString());this.q==null&&(this.q=n("<span style='position:absolute;display:none' />"));this.p().append(this.q);this.a().b3(new t.cl(0,0,0,u,f));this.o(r);o=this.o()[0].getContext("2d");this.b(new t.bt(new t.d4,o));this.v();this.ah();this.b().z(this.r);this.ab()},ad:function(n,t){t!=null?n.ab(t):n.ab(this.al)},ae:function(){this.v();this.ah();this.ac()},ah:function(){this.r=t.$dx.c(this.p());this.a().font()!=null&&(this.r=this.a().font());this.i=this.j(this.r);this.ak=new t.bx;this.ak.__fill=this.p().css("color");this.b()!=null&&this.b().z(this.r)},t:function(){this.ab()},al:null,ab:function(){var n=this,i,l,a,u,o,v,s,h;if((n.n!=n.a().b3().width()||n.m!=n.a().b3().height())&&(n.o().attr("width",n.a().b3().width().toString()),n.o().attr("height",n.a().b3().height().toString()),n.n=Math.round(n.a().b3().width()),n.m=Math.round(n.a().b3().height())),n.b().i(n.a().b3().left(),n.a().b3().top(),n.a().b3().width(),n.a().b3().height()),i=new t.co,i.ak(function(){var i=new t.ef;return i.d(new t.cl(0,n.a().b3().left(),n.a().b3().top(),n.a().b3().width(),n.a().b3().height())),i}()),i.__fill=n.a().backingBrush(),i.__stroke=n.a().backingOutline(),i.z(n.a().backingStrokeThickness()*2),n.b().q(i),n.ai.aa()!=null&&n.ai.__visibility==0){var f=n.ai.aa().split(" "),r="",e=n.a().backingStrokeThickness(),c=n.a().backingStrokeThickness();for(isNaN(n.i)&&(n.i=n.j(null)),l=n.i*1.2,a=n.a().b3().width()-2*n.a().backingStrokeThickness(),u=0;u<f.length;u++)o=r+f[u]+" ",v=n.b().d(o),v>a?(s=function(){var n=new t.cr;return n.aa(r),n.m(e),n.l(c),n}(),n.ad(s,n.a().fontBrush()),n.b().z(n.r),n.b().u(s),r=f[u]+" ",e+=l):r=o;h=function(){var n=new t.cr;return n.aa(r),n.m(e),n.l(c),n}();n.ad(h,n.a().fontBrush());n.b().z(n.r);n.b().u(h)}},i:0,j:function(t){var i=n("<span>M<\/span>"),u=n("body"),r;return u.append(i),t!=null&&i.css("font",t),r=i.attr("offsetHeight"),isNaN(r)&&(r=i[0].offsetHeight),i.remove(),parseInt(r)},n:0,m:0,y:function(){var n=Math.round(this.p().width()),i=Math.round(this.p().height());this.a().b3(new t.cl(0,0,0,n,i))},am:null,an:null,ao:null,w:function(n,t,i){var u=t,r=i;if(!this.e){switch(n){case"BackingBrush":this.am=r;break;case"BackingOutline":this.an=r;break;case"BarBrush":this.ao=r}r==null&&this.ag()}},$type:new n.ig.Type("XamBarcodeView",n.ig.$ot)},!0);n.ig.util.defType("XamGridBarcodeView:lu","XamBarcodeView",{_aq:null,aq:function(n){return arguments.length===1?(this._aq=n,n):this._aq},init:function(n){t.$bd.init.call(this,n);this.aq(n);this.aq().b5(new t.lw);this.aq().b5().aa(this.aq())},ab:function(){var r,u,f,i;for(t.$bd.ab.call(this),r=this.aq().b5().ba(),r.__fill=this.a().barBrush(),this.b().q(r),u=this.aq().b5().y().getEnumerator();u.moveNext();)f=u.current(),i=n.ig.util.cast(t.$cr.$type,f),i!=null&&(this.ad(i,this.a().fontBrush()),this.b().z(this.r),this.b().u(i))},ar:function(n){this.a().a4(n);this.ac()},as:function(){var n=new t.cm(this.aq().b3().width(),this.aq().b3().height()),i=this.aq().b5().bi(n);this.aq().b5().bc(i)},at:function(){for(var v=this,y=v.aq().b5().ba().ak(),p=y.c(),r=-Number.MAX_VALUE,u=-Number.MAX_VALUE,n=Number.MAX_VALUE,i=Number.MAX_VALUE,o=p.getEnumerator(),a,e;o.moveNext();){var w=o.current(),f=w.d(),s=f.left(),h=f.right(),c=f.top(),l=f.bottom();n=s<n?s:n;i=c<i?c:i;r=h>r?h:r;u=l>u?l:u}return a=new t.cl(0,n,i,r-n,u-i),e=new t.co,e.ak(function(){var n=new t.ef;return n.d(a),n}()),e},$type:new n.ig.Type("XamGridBarcodeView",t.$bd.$type)},!0);n.ig.util.defType("BarcodeGrid:lw","Panel",{a3:null,ae:!1,init:function(){t.$lx.init.call(this);this.ao(new t.lz(t.$l6.$type));this.am(new t.lz(t.$ma.$type));this.af(new t.b8(t.$l1.$type,0));this.bj(new t.cm(0,0));this.ag(new t.b8(t.$l1.$type,0));this.ba(new t.co);this.ba().z(0);var n=new t.l0;n.y().add(this.ba());this.y().add(n)},_ba:null,ba:function(n){return arguments.length===1?(this._ba=n,n):this._ba},_af:null,af:function(n){return arguments.length===1?(this._af=n,n):this._af},_ag:null,ag:function(n){return arguments.length===1?(this._ag=n,n):this._ag},bb:null,bj:function(n){return arguments.length===1?(this.bb=n,n):this.bb},ai:null,ak:function(n){return arguments.length===1?(this.ai=n,n):this.ai},ah:null,aj:function(n){return arguments.length===1?(this.ah=n,n):this.ah},a0:0,a1:function(n){return arguments.length===1?(this.a0=n,n):this.a0},z:null,aa:function(n){return arguments.length===1?(this.z=n,n):this.z},al:null,am:function(n){return arguments.length===1?(this.al=n,n):this.al},an:null,ao:function(n){return arguments.length===1?(this.an=n,n):this.an},bc:function(i){var r,u,f,h,e,o,c,s;if(this.aa()==null)return i;if(r=i.b()==0||i.a()==0,u=new t.d9,this.aa().isValid()&&r==!1)for(f=this.af().getEnumerator();f.moveNext();)h=f.current(),u.c().add(this.a9(h));for(e=0,o=this.y().getEnumerator();o.moveNext();)c=o.current(),s=n.ig.util.cast(t.$cr.$type,c),s!=null&&(this.a4(s,i,r,this.ag().__inner[e]),e++);return this.ba().ak(u),i},bi:function(i){for(var o=new t.cm(Number.MAX_VALUE,Number.MAX_VALUE),u=this.y().getEnumerator(),f,r,e;u.moveNext();)f=u.current(),r=n.ig.util.cast(t.$cr.$type,f),r!=null&&this.bj(this.aa().view().ap(r));return this.aa()!=null&&(e=this.bf(this.bg(i),i),this.aa().barsFillMode()==1&&this.ab(i),this.aa().isValid())?e:i},a5:function(){this.ao().clear();this.am().clear();this.af().clear();this.a6();this.ba().ak(null)},a6:function(){for(var r=new t.b8(t.$cr.$type,0),u=this.y().getEnumerator(),f,e,i,o;u.moveNext();)f=u.current(),e=n.ig.util.cast(t.$cr.$type,f),r.add(e);for(i=r.getEnumerator();i.moveNext();)o=i.current(),this.y().remove(o);this.ag().clear()},ab:function(n){var i,r,u,f,e,o;return this.aa().stretch()==0?!0:(i=this.bh(),(i.a()==0||i.b()==0)&&(r=i.a()==0&&this.aa().isValid()?t.$ex.a("InvalidHeight").replace("{0}",this.ao().count().toString()).replace("{1}",n.a().toString()):t.$ex.a("InvalidWidth").replace("{0}",this.am().count().toString()).replace("{1}",n.b().toString()),this.aa().isValid()))?(u=new t.e0(0,r),this.aa().a9(u),!1):(f=this.ac(n,i),!f&&(r=t.$ex.a("SmallSize").replace("{0}",n.b().toString()).replace("{1}",n.a().toString()),this.aa().isValid()))?(e=new t.e0(0,r),this.aa().a9(e),!1):this.aa().isValid()==!1&&(o=this.ad(n,i),o)?(this.aa().a7(),!1):!0},ac:function(n,t){if(t.b()==0||t.a()==0)return!0;switch(this.aa().stretch()){case 3:return n.b()<=t.b()?n.a()>=this.a1():n.a()<=t.a()?n.b()>=this.am().count():!0;default:return n.b()>=this.am().count()&&n.a()>=this.a1()}},ad:function(n,t){var i=t.a(),r=t.b(),u=i>0&&r>0;return this.aa().stretch()==3?u&&(r<=n.b()||i<=n.a()):u&&r<=n.b()&&i<=n.a()},a9:function(n){var i=this,r=i.a3.__y+i.ay(n.c()),u=i.a3.__x+i.at(n.b()),f=i.az(n.b(),n.a()),e=i.as(n.c(),n.d()),o=new t.cl(0,u,r,f,e);return function(){var n=new t.ef;return n.d(o),n}()},a4:function(n,t,i,r){var e=this.bh(),f=this.aa().as(t,e),v,h;this.ae&&(f.__x-=this.a3.__x);var c=r.c(),o=r.b(),s=r.a(),l=this.ay(c)+f.__y,a=this.at(o)+f.__x,u=i?0:this.az(o,s);s==this.am().count()&&u<this.bj().b()&&this.aa().isValid()&&(u=this.bj().b());u==-1&&(u=e.b());v=this.bj().a();h=(u-this.bj().b())/2;n.l(a+h);n.m(l)},at:function(n){var i=0,t;if(this.aj()==null)return i;if(this.ao().count()>0)for(t=0;t<n;t++)i+=this.aj().__inner[t];return i},ay:function(n){var i=0,t;if(this.ak()==null)return i;if(this.am().count()>0)for(t=0;t<n;t++)i+=this.ak().__inner[t];return i},bf:function(n,t){return this.ae=!1,n.b()<this.bj().b()&&n.b()<=t.b()&&n.b()!=0?(this.a3=this.aa().as(this.bj(),n),n.b(this.bj().b()),this.ae=!0):this.a3=n.b()>t.b()||n.a()>t.a()?this.aa().as(t,n):this.aa().as(t,n),n.b()>t.b()&&n.b(t.b()),n.a()>t.a()&&n.a(t.a()),n},bg:function(n){var t=this.be(n);return this.bd(t)},be:function(n){var r,i;if(n.b()==0||n.a()==0)return n;var u=this.aa().cc(),f=n.a(),e=!1;this.aa().c2()!=null&&this.aa().c2().__visibility==0&&f>this.bj().a()&&!Number.isInfinity(f)&&(f-=this.bj().a(),e=!0);switch(this.aa().stretch()){case 1:return new t.cm(n.b(),n.a());case 0:return this.aa().c6(u);case 3:f*u>n.b()?(i=f,r=u*i):(r=n.b(),i=r/u);break;default:f*u>n.b()?(r=n.b(),i=r/u):(i=f,r=u*i)}return e&&(i+=this.bj().a()),r=Math.floor(r+.5),i=Math.floor(i+.5),new t.cm(r,i)},bd:function(n){if(n.b()==0||n.a()==0)return n;var i=this.ap(n.a()),r=this.aq(n.b());return new t.cm(r,i)},bh:function(){var i=this.aw(),n;return i=i==-1?0:i,n=this.ax(),n=n==-1?0:n,new t.cm(i,n)},aw:function(){return this.aj()==null?-1:this.aj().sum()},ax:function(){return this.ak()==null?-1:this.ak().sum()},ap:function(n){var r,i,u,f;if(n==0)return n;r=t.$lw.av(this.ao());this.a8(n,r);u=1;do{if(i=this.ax(),i<=0)break;if(i>n)if(f=n-u,f>0)this.a8(f,r),u++;else break}while(i>n);return i},a8:function(i,r){var u,f,e,s,o;if(this.ak(new t.b8(Number,0)),r!=0){i=i-this.bj().a();i<0&&(i=0);this.a1(0);var h=i/r,c=0,l=0,a=new t.b8(n.ig.Number.prototype.$type,0);for(u=0;u<this.ao().count();u++){if(f=this.ao().__inner[u],f.c().a())switch(this.aa().barsFillMode()){case 0:l+=f.c().c();s=Math.round(h*l);e=s-c;c=s;break;default:e=Math.floor(h*f.c().c())}else e=0,this.a1(this.a1()+1),a.add(u);this.ak().add(e)}for(o=0;o<this.a1();o++)this.ak().__inner[a.__inner[o]]=this.bj().a()/this.a1()}},aq:function(n){if(n==0)return n;var r=t.$lw.ar(this.am()),i=n;return this.aa().barsFillMode()==1&&r>0&&(i=this.au(n)),this.a7(i,r),i},au:function(n){var t=n%this.am().count();return n-t},a7:function(n,i){var r,u,f;if(this.aj(new t.b8(Number,0)),i!=0)for(var e=0,o=0,s=n/i,h=this.am().getEnumerator();h.moveNext();){if(r=h.current(),u=0,r.c().a())switch(this.aa().barsFillMode()){case 0:o+=r.c().c();f=Math.round(s*o);u=f-e;e=f;break;case 1:default:u=Math.round(s*r.c().c())}this.aj().add(u)}},as:function(n,t){var r,i;if(this.ak()==null)return 0;if(this.ao().count()>0&&n+t<=this.ao().count()){for(r=0,i=0;i<t;i++)r+=this.ak().__inner[n+i];return r}return-1},az:function(n,t){var r,i;if(this.aj()==null)return 0;if(this.am().count()>0&&n+t<=this.am().count()){for(r=0,i=0;i<t;i++)r+=this.aj().__inner[n+i];return r}return-1},av:function(n){var i=this;return n.where$1(t.$l6.$type,function(n){return n.c().a()}).sum$1(t.$l6.$type,function(n){return n.c().c()})},ar:function(n){var i=this;return n.where$1(t.$ma.$type,function(n){return n.c().a()}).sum$1(t.$ma.$type,function(n){return n.c().c()})},$type:new n.ig.Type("BarcodeGrid",t.$lx.$type)},!0);n.ig.util.defType("ColumnDefinition:ma","Object",{init:function(){n.ig.$op.init.call(this)},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},$type:new n.ig.Type("ColumnDefinition",n.ig.$ot)},!0);n.ig.util.defType("GridLength:l7","Object",{init:function(t,i){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.$op.init.call(this);this.b=i;this.d=1},init1:function(t,i,r){n.ig.$op.init.call(this);this.b=i;this.d=r},d:null,e:function(){return this.d},b:0,c:function(){return this.b},a:function(){return this.d==2},$type:new n.ig.Type("GridLength",n.ig.$ot)},!0);n.ig.util.defType("Module:l1","Object",{init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.$op.init.call(this)},init1:function(t,i,r,u,f){n.ig.$op.init.call(this);this.c(i);this.b(r);this.d(u);this.a(f)},_c:0,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},_d:0,d:function(n){return arguments.length===1?(this._d=n,n):this._d},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},$type:new n.ig.Type("Module",n.ig.$ot)},!0);n.ig.util.defType("RowDefinition:l6","Object",{init:function(){n.ig.$op.init.call(this)},_c:null,c:function(n){return arguments.length===1?(this._c=n,n):this._c},_a:0,a:function(n){return arguments.length===1?(this._a=n,n):this._a},_b:0,b:function(n){return arguments.length===1?(this._b=n,n):this._b},$type:new n.ig.Type("RowDefinition",n.ig.$ot)},!0);n.ig.util.defType("QRCodeEncoder:mc","BarcodeEncodedAlgorithm",{init:function(n){t.$ar.init.call(this,n);this.aj(n)},aq:function(){var e,c,r,p,w,v,y;this.cd();var f=this.aj().data(),h=this.aj().sizeVersion(),u=this.aj().errorCorrectionLevel(),i=new t.al;if(this.aj().eciHeaderDisplayMode()==1&&i.d(t.$mc.b4(this.aj().eciNumber())),e=this.aj().fnc1Mode(),i.d(t.$mc.b7(e,this.aj().applicationIndicator())),e==1||e==2){if(c=t.$mc.be(this.aj().encodingMode()),r=f,e==1&&(r=t.$f8.e(r,c),String.isNullOrEmpty(r))){p=t.$ex.a("InvalidAI");w=new t.e0(0,p);throw w;}f.equals(r)==!1&&(this.cb(f,r,c),f=r)}for(var l=this.bi(f,h,this.aj().encodingMode()),a=t.$mc.b5(l),n=t.$mc.bq(h,u,a.length+i.b().length),o=this.b2(l,n);a.length!=o.length;)a=o,n=t.$mc.bq(h,u,o.length+i.b().length),o=this.b2(l,n);v=t.$ga.d[u][n];i.d(o);i.d(t.$mc.b6(i.b(),u,n));var d=t.$mc.ap(i.b(),v),g=t.$mc.a0(d,v),nt=t.$ga.e[n],b,k,s="";switch(u){case 2:s="H";break;case 1:s="L";break;case 0:s="M";break;case 3:s="Q"}y=t.$f7.b("Ecc"+n+s);b=y[0];k=y[1];var tt=t.$mc.ak(g,nt,k,b),it=17+(n<<2);return t.$mc.ao(t.$mc.b5(new t.b8(String,1,tt)),it,n,u)},cb:function(n,t,i){for(var f,r=0,u=0;u<t.length;u++){if(r==n.length)break;if(this.ah()==1&&(n.charAt(r)=="("||n.charAt(r)==")")&&r++,f=t.charAt(u),f.equals(n.charAt(r))==!1&&f.equals(i)){this.bg.add(u);continue}r++}},b6:function(n,i,r){var u=String.empty(),f=t.$mc.bp(n.length,i,r);return f>0&&(u=0..toString().padLeft(f,"0")),u},bp:function(n,i,r){var f=r==0?t.$ga.d[i][40]:t.$ga.d[i][r],u;return n==f?0:(u=n%8,u=u!=0?8-u:u,u<4&&r!=0&&f-(u+n)>=8&&(u+=8),u)},b2:function(i,r){for(var s,f,e=t.$mc.b5(i),h=r<10?0:r<27?1:2,o=!1,u=0;u<i.count();u+=3)s=i.__inner[u].trimStart("0").length-1,f=t.$ga.c[s][h],i.__inner[u+1].length!=f&&(i.__inner[u+1]=t.$a.s(2,this.bf().__inner[n.ig.intDivide(u,3)].toString(),10).padLeft(f,"0"),o=!0);return o&&(e=t.$mc.b5(i)),e},cd:function(){this.cc();this.bg=new t.b8(n.ig.Number.prototype.$type,0);this.bf(new t.b8(n.ig.Number.prototype.$type,0))},b7:function(n,i){var r=new t.al,u,f,e;switch(n){case 1:r.d(101..toString().padLeft(4,"0"));break;case 2:if(r.d(1001..toString().padLeft(4,"0")),u=t.$mc.b3(i),String.isNullOrEmpty(u)){f=t.$ex.a("InvalidPropertyValue").replace("{0}","ApplicationIndicator").replace("{1}","{a-z, A-Z, 00").replace("{2}","99}");e=new t.e0(0,f);throw e;}r.d(u)}return r.b()},cc:function(){var n,i=String.empty(),r;try{i=t.$a.e.item(this.aj().eciNumber())}catch(u){r=t.$ex.a("NotSupportedEncoding").replace("{0}","Eci number").replace("{1}",this.aj().eciNumber().toString());throw new t.e0(0,r);}n=this.aa(i);this.ca(n)},bq:function(n,i,r){var u=n,e=t.$mc.bp(r,i,u),f;if(u==0)for(u=1,f=1;f<40;f++){if(t.$ga.d[i][f]>=r+e)break;u++}return u},b5:function(n){for(var i=new t.al,r=n.getEnumerator(),u;r.moveNext();)u=r.current(),i.d(u);return i.b()},ao:function(n,i,r,u){var e=t.$mc.bd(n,i,u,r),f=t.$mc.an(i,r);return f=t.$mc.av(u,e,f),f=t.$mc.ay(r,f),t.$mc.as(n,e,f)},an:function(n,i){var r=t.$mc.al(n);return r=t.$mc.au(r),r[r.length-8][8]=1,r=t.$mc.ar(i,r),t.$mc.ax(r)},ax:function(n){for(var u,r,i=8;i<n.length-8;++i){if(n[i][6]!=-1&&n[i][6]!=-2&&n[i][6]!=0&&n[i][6]!=1||n[6][i]!=-1&&n[6][i]!=-2&&n[6][i]!=0&&n[6][i]!=1){u=t.$ex.a("EncodingError");throw new t.e0(0,u);}r=(i+1)%2;n[i][6]==-1&&(n[i][6]=r);n[6][i]==-1&&(n[6][i]=r)}return n},ar:function(n,i){var f,e,o,s,h,c,r,u;if(n>=2){var l=n-1,a=t.$ga.b[l],v=t.$ga.b[l].length;for(f=0;f<v;++f)for(e=0;e<v;++e)if(o=a[f],s=a[e],i[o][s]==-1)for(h=s-2,c=o-2,r=0;r<5;r++)for(u=0;u<5;u++)i[c+r][h+u]==-1&&(i[c+r][h+u]=t.$ga.a[r][u])}return i},au:function(n){var u=t.$ga.f[0].length,i,r;return n=t.$mc.at(0,0,n),n=t.$mc.at(n.length-u,0,n),n=t.$mc.at(0,n.length-u,n),i=t.$ga.h[0].length,n=t.$mc.aw(0,i-1,n),n=t.$mc.aw(n.length-i,i-1,n),n=t.$mc.aw(0,n.length-i,n),r=t.$ga.k.length,n=t.$mc.az(r,0,n),n=t.$mc.az(n.length-r-1,0,n),t.$mc.az(r,n.length-r,n)},az:function(n,i,r){for(var f,u=0;u<7;u++){if(r[i+u][n]!=-1){f=t.$ex.a("EncodingError");throw new t.e0(0,f);}r[i+u][n]=t.$ga.k[u][0]}return r},aw:function(n,i,r){for(var f,u=0;u<8;u++){if(r[i][n+u]!=-1){f=t.$ex.a("EncodingError");throw new t.e0(0,f);}r[i][n+u]=t.$ga.h[0][u]}return r},at:function(n,i,r){for(var f,u=0;u<7;u++)for(f=0;f<7;f++)r[i+u][n+f]=t.$ga.f[u][f];return r},av:function(n,i,r){for(var o,s,f=t.$mc.am(n,i),u=0;u<f.length;u++){var e=f[f.length-1-u],h=t.$ga.g[u][0],c=t.$ga.g[u][1];r[c][h]=e;u<8?(o=r.length-u-1,r[8][o]=e):(s=r.length-7+(u-8),r[s][8]=e)}return r},am:function(n,i){var r=new t.al,u=n<<3|i,f,e,o;return r.d(t.$a.s(2,u.toString(),10).padLeft(5,"0")),f=t.$f2.a(u,1335),r.d(t.$a.s(2,f.toString(),10).padLeft(10,"0")),e=t.$a.s(2,21522..toString(),10).padLeft(15,"0"),o=t.$f3.b(t.$mc.a1(r.b()),t.$mc.a1(e)),o},a1:function(t){for(var r=new Array(t.length),i=0;i<t.length;i++)r[i]=n.ig.Number.prototype.parseInt(t.charAt(i).toString());return r},ay:function(n,i){var o,f,r,u,e;if(n>=7)for(o=t.$mc.bs(n),f=17,r=0;r<6;++r)for(u=0;u<3;++u)e=o.charAt(f)-"0",f--,i[i.length-11+u][r]=e,i[r][i.length-11+u]=e;return i},bs:function(n){var i=new t.al,r;return i.d(t.$a.s(2,n.toString(),10).padLeft(6,"0")),r=t.$f2.a(n,7973),i.d(t.$a.s(2,r.toString(),10).padLeft(12,"0")),i.b()},as:function(n,i,r){for(var c=0,o=-1,f=r.length-1,u=f,s,e,h;f>0;){for(f==6&&(f-=1);u>=0&&u<r.length;){for(s=0;s<2;++s)(e=f-s,r[u][e]==-1||r[u][e]==-2)&&(c<n.length?(h=n.charCodeAt(c)-48,++c):h=0,t.$gb.a(i,u,e)&&(h^=1),r[u][e]=h);u+=o}o=-o;u+=o;f-=2}return t.$mc.a2(r)},a2:function(n){for(var t,r=function(){for(var i=new Array($firstRank=n.length),r=i,t=0;t<$firstRank;t++)r[t]=[];return i}(),i=0;i<n.length;i++)for(t=0;t<n[i].length;t++)r[t]==null&&(r[t]=new Array(n[i].length)),r[t][i]=n[i][t];return r},al:function(n){for(var i,r=function(){for(var i=new Array($firstRank=n),r=i,t=0;t<$firstRank;t++)r[t]=[];return i}(),t=0;t<n;t++)for(r[t]=new Array(n),i=0;i<n;i++)r[t][i]=-1;return r},bd:function(n,i,r,u){for(var f,o,s=Number.MAX_VALUE,h=0,e=0;e<7;e++)f=t.$mc.an(i,u),f=t.$mc.av(r,e,f),f=t.$mc.ay(u,f),f=t.$mc.as(n,e,f),o=t.$gb.g(f),o<s&&(s=o,h=e);return h},ak:function(i,r,u,f){for(var p,s,e,l,w,h,a,o,v=0,y=new Array(i.length),c=0;c<i.length;c++)p=i[c],y[v]=n.ig.Number.prototype.parseInt(t.$a.s(10,p,2)),v++;for(s=1,e=1;e<128;e++)if(f.length==e||f[e]==0){s=e;break}if(l=new Array(s),n.ig.Array.prototype.copy(f,0,l,0,s),w=new t.f6,h=w.g(y,u[0],l,i.length,r),h==null)return null;for(a=new Array(r),o=0;o<h.length;o++)a[o]=t.$a.s(2,h[o].toString(),10).padLeft(8,"0");return a},ap:function(i,r){for(var u=0,e=new Array(n.ig.intDivide(i.length,8)),o,f,s,h;u<i.length;){for(o=new t.al,f=0;f<8;f++)o.c(i.charAt(u+f));e[n.ig.intDivide(u,8)]=o.b();u+=8}if(n.ig.intDivide(r,8)<e.length){s=t.$ex.a("InvalidVersion");h=new t.e0(0,s);throw h;}return e},a0:function(t,i){var e=n.ig.intDivide(i,8),r,u,f;if(t.length==e)return t;for(r=new Array(e),n.ig.Array.prototype.copy(t,0,r,0,t.length),u=!0,f=t.length;f<r.length;)r[f]=u?"11101100":"00010001",u=!u,f++;return r},bi:function(i,r,u){var y=r<10?0:r<27?1:2,e=u!=-1?t.$ga.c[u][y]:0,f=new t.b8(String,0),c,l,a,o,v,s,h;switch(u){case 0:if(c=t.$a.n(i,0),c!=i.length){l=t.$ex.a("WrongCompactionMode").replace("{0}","Numeric");a=new t.e0(0,l);throw a;}o=i.length;this.bf().add(o);v=o%3==0?0:o%3==1?4:7;f.add(1..toString().padLeft(4,"0"));f.add(t.$a.s(2,this.bf().__inner[0].toString(),10).padLeft(e,"0"));f.add(this.bz(i,v));break;case 1:f.add(10..toString().padLeft(4,"0"));this.ah()!=0&&(i=this.b1(i,t.$mc.be(1),0));this.bf().add(i.length);f.add(t.$a.s(2,this.bf().__inner[0].toString(),10).padLeft(e,"0"));f.add(this.bt(i));break;case 2:f.add(100..toString().padLeft(4,"0"));this.ah()!=0&&(i=this.b1(i,t.$mc.be(2),0));s=this.bv(i);h=n.ig.intDivide(s.length,8);this.bf().add(h);f.add(t.$a.s(2,h.toString(),10).padLeft(e,"0"));f.add(s);break;case 3:f.add(1e3.toString().padLeft(4,"0"));this.bf().add(i.length);f.add(t.$a.s(2,this.bf().__inner[0].toString(),10).padLeft(e,"0"));f.add(this.bx(i));break;default:return this.bj(i,r)}return f},be:function(n){return n==2?"\x1d":"%"},b3:function(n){if(t.$mc.a7(n)){if(n.length==2)return t.$a.s(2,n,10).padLeft(8,"0");if(n.length==1){var i=n.charAt(0),r=(i.charCodeAt(0)+100).toString();return t.$a.s(2,r,10).padLeft(8,"0")}}return String.empty()},b1:function(n,i,r){for(var f,e=new t.al,u=0;u<n.length;u++)f=n.charAt(u),f.equals(i)&&this.bg.contains(u+r)==!1&&e.c(f),e.c(f);return e.b()},b4:function(n){var f=111..toString().padLeft(4,"0"),i,r,u;return n<128?(r=7,i="0"):n<16384?(r=14,i="10"):(r=21,i="110"),u=t.$a.s(2,n.toString(),10).padLeft(r,"0"),i+=u,f+i},bj:function(i,r){for(var u=new t.mj(1,new t.b8(t.$mg.$type,0),new t.b8(n.ig.Number.prototype.$type,0)),s=this.ac(i,r),e=0,h,f,o;e<i.length;){h=t.$mc.ab(u);o=!1;switch(s){case 2:if(u=this.ae(i,r,e,u),f=t.$mc.ab(u),f!=2&&f!=-1){s=f;e+=u.d().__inner[u.d().count()-1];o=!1;break}o=!0;break;case 1:if(u=this.ad(i,r,e,u),f=t.$mc.ab(u),f!=1&&f!=-1){s=f;e+=u.d().__inner[u.d().count()-1];o=!1;break}o=!0;break;case 0:if(u=this.ag(i,e,u),f=t.$mc.ab(u),f!=0&&f!=-1){s=f;e+=u.d().__inner[u.d().count()-1];o=!1;break}o=!0;break;case 3:if(u=this.af(i,e,u),f=t.$mc.ab(u),f!=3&&f!=-1){s=f;e+=u.d().__inner[u.d().count()-1];o=!1;break}o=!0}o&&(h!=s&&(u.b().add(s),u.d().add(0)),u.d().__inner[u.d().count()-1]++,e++)}return this.bh(u,i,r)},bh:function(i,r,u){for(var h,f,o,a,v,y,p,e=new t.b8(String,0),c=u<10?0:u<27?1:2,l=0,s=0;s<i.b().count();s++)if(i.d().__inner[s]!=0){h=i.b().__inner[s];f=r.substr(l,i.d().__inner[s]);(h==1||h==2)&&this.ah()!=0&&(f=this.b1(f,t.$mc.be(h),l));switch(h){case 3:e.add(1e3.toString().padLeft(4,"0"));o=t.$ga.c[3][c];this.bf().add(f.length);e.add(t.$a.s(2,f.length.toString(),10).padLeft(o,"0"));e.add(this.bx(f));break;case 2:e.add(100..toString().padLeft(4,"0"));o=t.$ga.c[2][c];a=this.bv(f);v=n.ig.intDivide(a.length,8);this.bf().add(v);e.add(t.$a.s(2,v.toString(),10).padLeft(o,"0"));e.add(a);break;case 1:e.add(10..toString().padLeft(4,"0"));o=t.$ga.c[1][c];this.bf().add(f.length);e.add(t.$a.s(2,f.length.toString(),10).padLeft(o,"0"));e.add(this.bt(f));break;case 0:e.add(1..toString().padLeft(4,"0"));o=t.$ga.c[0][c];this.bf().add(f.length);e.add(t.$a.s(2,f.length.toString(),10).padLeft(o,"0"));y=f.length;p=y%3==0?0:y%3==1?4:7;e.add(this.bz(f,p))}l+=f.length}return e},af:function(n,i,r){var f,u;return n.length<=i?r:(f=n.substr(i,1),!this.a3(f)&&(u=this.b9().getBytes1(f),u.length<2))?(u=this.ca().getBytes1(f),u.length==1&&t.$mc.a8(u[0])&&(r.b().add(2),r.d().add(1)),r):r},ag:function(n,i,r){var f,e;if(n.length<=i)return r;var u=!1,o=this.b9().getBytes1(n.charAt(i).toString()),s=this.a5();return s&&t.$mc.a4(o)&&(r.b().add(3),r.d().add(1),u=!0),f=this.ca().getBytes1(n.charAt(i).toString()),e=f.length>0?f[0]:-2,!u&&t.$mc.bb(e)&&(r.b().add(2),r.d().add(1),u=!0),!u&&t.$mc.ba(e)&&(r.b().add(1),r.d().add(1)),r},ad:function(n,i,r,u){var e=this,f,h,o,c;if(n.length<=r)return u;var s=!1,l=e.a5(),a=e.b9().getBytes1(n.charAt(r).toString());return l&&t.$mc.a4(a)&&(u.b().add(3),u.d().add(1),s=!0),f=e.ca().getBytes1(n.charAt(r).toString()),h=f.length>0?f[0]:-2,!s&&t.$mc.bb(h)&&(u.b().add(2),u.d().add(1),s=!0),o=t.$mc.bo(function(){var n=[];return n.add(13),n.add(15),n.add(17),n}(),i),c=e.bl(o,"N",n,r),!s&&n.length>o+r&&(f=e.ca().getBytes1(n.charAt(r+o).toString()),h=f.length>0?f[0]:-2,c==-1&&t.$mc.ba(h)&&(u.b().add(0),u.d().add(o))),u},ae:function(n,i,r,u){var e=this,f,s,h,c;if(n.length<=r)return u;var l=e.a5(),o=!1,a=e.b9().getBytes1(n.charAt(r).toString());return l&&t.$mc.a4(a)&&(u.b().add(3),u.d().add(1),o=!0),f=t.$mc.bo(function(){var n=[];return n.add(11),n.add(15),n.add(16),n}(),i),s=e.bl(f,"EA",n,r),o||s!=-1||(u.b().add(1),u.d().add(f),o=!0),f=t.$mc.bo(function(){var n=[];return n.add(6),n.add(8),n.add(9),n}(),i),s=e.bl(f,"N",n,r),!o&&n.length>r+f&&(h=e.ca().getBytes1(n.charAt(r+f).toString()),c=h.length>0?h[0]:-2,s==-1&&t.$mc.bb(c)&&(u.b().add(0),u.d().add(f),o=!0)),f=t.$mc.bo(function(){var n=[];return n.add(6),n.add(7),n.add(8),n}(),i),s=e.bl(f,"N",n,r),!o&&n.length>r+f&&(h=e.ca().getBytes1(n.charAt(r+f).toString()),c=h.length>0?h[0]:-2,s==-1&&(t.$mc.ba(c)||t.$mc.bc(c))&&(u.b().add(0),u.d().add(f))),u},bo:function(n,t){return t<9?n[0]:t<27?n[1]:n[2]},ab:function(n){return n.b().count()==0?-1:n.b().__inner[n.b().count()-1]},ac:function(n,i){var u=this,o=u.a5(),s,f,e,r;return o&&u.a6(n)&&u.a3(n)?3:o&&t.$mc.a4(u.b9().getBytes1(n))?u.a6(n.charAt(0).toString())?3:2:t.$mc.ba(n.charAt(0))?(s=t.$mc.bo(function(){var n=[];return n.add(6),n.add(7),n.add(8),n}(),i),f=u.bl(s,"EA",n.substr(1,n.length-1),0),f!=-1&&f!=-2&&t.$mc.bb(f))?2:f==-2&&(f=u.bl(n.length-1,"EA",n.substr(1,n.length-1),0),t.$mc.bb(f))?2:1:t.$mc.bc(n.charAt(0))?(e=t.$mc.bo(function(){var n=[];return n.add(4),n.add(4),n.add(5),n}(),i),r=u.bl(e,"N",n.substr(1,n.length-1),0),r!=-2&&r!=-1&&t.$mc.bb(r))?2:r==-2&&(r=u.bl(n.length-1,"N",n.substr(1,n.length-1),0),t.$mc.bb(r))?2:(e=t.$mc.bo(function(){var n=[];return n.add(7),n.add(8),n.add(9),n}(),i),r=u.bl(e,"N",n.substr(1,n.length-1),0),r!=-2&&r!=-1&&t.$mc.ba(r))?1:r==-2&&(r=u.bl(n.length-1,"N",n.substr(1,n.length-1),0),t.$mc.ba(r))?1:0:2},a5:function(){var i=String.empty(),r=n.ig.util.cast(t.$e6.$type,this.ca());return r!=null&&(i=r.name()),i.equals("iso-8859-1")||i.equals("shift_jis")},bl:function(n,i,r,u){var c=this,o,s,h,l,e,f;if(u+n>r.length)return-2;for(o=new Array(r.length*2),s=!1,i.equals("K")&&(h=r.substr(u,n),o=c.b9().getBytes1(h),s=o.length==h.length*2),l=c.ca().getBytes1(r.substr(u)),e=0;e<n;e++)if((f=l[e],i.equals("B")&&!t.$mc.a8(f))||i.equals("EB")&&!t.$mc.bb(f)||i.equals("K")&&(s?!t.$mc.a4(function(){var n=[];return n.add(o[2*e]),n.add(o[2*e+1]),n}()):!0)||i.equals("A")&&!t.$mc.ba(f)||i.equals("EA")&&!t.$mc.ba(f)&&!t.$mc.bc(f)||i.equals("N")&&!t.$mc.bc(f))return f;return-1},bx:function(n){if(!this.a3(n))throw new t.e0(0,t.$ex.a("WrongCompactionMode").replace("{0}","Kanji"));var i=this.b9().getBytes1(n);return t.$mc.by(i)},by:function(n){for(var e,f=new t.al,o=n.length,u=0;u<o;u+=2){var s=n[u]&255,h=n[u+1]&255,i=s<<8|h,r=-1;if(i>=33088&&i<=40956?r=i-33088:i>=57408&&i<=60351&&(r=i-49472),r==-1)throw new t.e0(0,"Invalid byte sequence");e=(r>>8)*192+(r&255);f.d(t.$a.s(2,e.toString(),10).padLeft(13,"0"))}return f.b()},bv:function(n){return t.$mc.bw(this.ca().getBytes1(n))},bw:function(n){for(var u,r=new t.al,i=0;i<n.length;i++)u=n[i],r.d(t.$a.s(2,(u&255).toString(),10).padLeft(8,"0"));return r.b()},bz:function(n,i){var r=this.ca().getBytes1(n);return t.$mc.b0(r,i)},b0:function(n,i){for(var e=new t.al,r=0,o,u,f;r<n.length;){if(o=n.length-r,u=String.empty(),o>=3){u=""+String.fromCharCode(n[r])+String.fromCharCode(n[r+1])+String.fromCharCode(n[r+2]);e.d(t.$a.s(2,u,10).padLeft(10,"0"));r+=3;continue}for(f=0;f<o;f++)u+=""+String.fromCharCode(n[r+f]);e.d(t.$a.s(2,u,10).padLeft(i,"0"));break}return e.b()},bt:function(n){var i=this.ca().getBytes1(n);return t.$mc.bu(i)},bu:function(i){for(var u,c,l,o,r,s,h,a=this,f=new t.x(n.ig.Number.prototype.$type,n.ig.Number.prototype.$type,0),e=0;e<i.length;e++){if(u=i[e],!t.$mc.ba(u)&&!t.$mc.bc(u)){c=t.$ex.a("WrongCompactionMode").replace("{0}","Alphanumeric");throw new t.e0(0,c);}l=t.$mc.bn(u);f.item(u,l)}for(o=new t.al,r=0;r<i.length;)i.length-r>=2?(h=function(){var n=[];return n.add(i[r]),n.add(i[r+1]),n}(),s=f.item(h[0])*45+f.item(h[1]),r+=2):(s=f.item(i[r]),r++),o.d(t.$a.s(2,s.toString(),10).padLeft(r%2==0?11:6,"0"));return o.b()},bn:function(n){var t=0;return n>=48&&n<58?t=n-48:n>=65&&n<91?t=n-55:(n==32&&(t=36),n==36&&(t=37),n==37&&(t=38),n==42&&(t=39),n==43&&(t=40),n==45&&(t=41),n==46&&(t=42),n==47&&(t=43),n==58&&(t=44)),t},a6:function(n){for(var r,i=0;i<n.length;i++)if(r=this.b9().getBytes1(n.charAt(i).toString()),r.length==2&&t.$mc.a4(r))return!0;return!1},a3:function(n){var r=this.b9().getBytes1(n),u=r.length,i,t;if(u%2!=0)return!1;for(i=0;i<u;i+=2)if(t=r[i]&255,(t<129||t>159)&&(t<224||t>235))return!1;return!0},bc:function(n){return n>=48&&n<=57},a4:function(n){var i,t;if(n.length<2)return!1;for(i=0;i<n.length;i+=2)if(t=n[i]&255,t>=129&&t<=159||t>=224&&t<=235)return!0;return!1},a8:function(n){return n>=0&&n<=255},bb:function(n){return t.$mc.a8(n)&&!t.$mc.ba(n)&&!t.$mc.bc(n)},ba:function(n){return n>=65&&n<=90||n==32||n==36||n==37||n==42||n==43||n==45||n==46||n==47||n==58},a9:function(n){return n==3||n>=-1&&n<=999999},a7:function(n){return n.length==2&&t.$m.isDigit(n,0)&&t.$m.isDigit(n,1)||n.length==1&&(n.charAt(0)>="a"&&n.charAt(0)<="z"||n.charAt(0)>="A"&&n.charAt(0)<="Z")},_aj:null,aj:function(n){return arguments.length===1?(this._aj=n,n):this._aj},_ca:null,ca:function(n){return arguments.length===1?(this._ca=n,n):this._ca},b8:null,b9:function(){return this.b8==null&&(this.b8=this.aa("shift_jis")),this.b8},ah:function(){return this.aj().fnc1Mode()},bg:null,_bf:null,bf:function(n){return arguments.length===1?(this._bf=n,n):this._bf},ai:null,$type:new n.ig.Type("QRCodeEncoder",t.$ar.$type)},!0);n.ig.util.defType("EncodingSequence:mj","ValueType",{init:function(t){if(t>0){switch(t){case 1:this.init1.apply(this,arguments)}return}n.ig.ValueType.prototype.init.call(this)},a:null,c:null,init1:function(t,i,r){n.ig.ValueType.prototype.init.call(this);this.a=i;this.c=r},b:function(n){return arguments.length===1?(this.a=n,n):this.a},d:function(n){return arguments.length===1?(this.c=n,n):this.c},$type:new n.ig.Type("EncodingSequence",n.ig.ValueType.prototype.$type)},!0);n.ig.util.defType("DataChangedEventArgs:ez","EventArgs",{init:function(n){t.$di.init.call(this);this.newData(n)},b:null,newData:function(n){return arguments.length===1?(this.b=n,n):this.b},$type:new n.ig.Type("DataChangedEventArgs",t.$di.$type)},!0);n.ig.util.defType("XamBarcode:as","Control",{ad:function(){return new t.bd(this)},bl:function(n){this.view(n)},_view:null,view:function(n){return arguments.length===1?(this._view=n,n):this._view},init:function(){this.al=!1;this.ai=!1;t.$at.init.call(this);this.b2=t.$cl.empty();var n=this.ad();this.bl(n);n.z();this.errorMessageText(t.$ex.a("ErrorMessageText"))},al:!1,ai:!1,ah:!1,am:function(n){return arguments.length===1?(this.ah=n,n):this.ah},af:!1,aj:function(n){return arguments.length===1?(this.af=n,n):this.af},at:null,a4:function(n){return arguments.length===1?(this.at=n,n):this.at},ag:!1,isValid:function(n){return arguments.length===1?(n!=this.ag&&(this.ag=n),n):this.ag},b2:null,b3:function(n){if(arguments.length===1){var t=this.b2;return this.b2=n,t.equals(this.b2)||this.bm(t,this.b2),n}return this.b2},bm:function(){this.view().ac()},backingBrush:function(n){return arguments.length===1?(this.g(t.$as.backingBrushProperty,n),n):this.c(t.$as.backingBrushProperty)},backingOutline:function(n){return arguments.length===1?(this.g(t.$as.backingOutlineProperty,n),n):this.c(t.$as.backingOutlineProperty)},backingStrokeThickness:function(n){return arguments.length===1?(this.g(t.$as.backingStrokeThicknessProperty,n),n):this.c(t.$as.backingStrokeThicknessProperty)},barBrush:function(n){return arguments.length===1?(this.g(t.$as.barBrushProperty,n),n):this.c(t.$as.barBrushProperty)},fontBrush:function(n){return arguments.length===1?(this.g(t.$as.fontBrushProperty,n),n):this.c(t.$as.fontBrushProperty)},font:function(n){return arguments.length===1?(this.g(t.$as.fontProperty,n),n):this.c(t.$as.fontProperty)},bi:function(n,t,i){switch(n){case"BackingBrush":case"BackingOutline":case"BarBrush":this.view().w(n,t,i)}switch(n){case"BackingBrush":case"BackingOutline":case"BackingStrokeThickness":case"BarBrush":this.view().ac();break;case"FontBrush":case"Font":this.view().ah();this.view().ac()}},data:function(n){return arguments.length===1?(this.g(t.$as.dataProperty,n),n):this.c(t.$as.dataProperty)},be:function(n,t){n.bd(t.d(),t.c())},bd:function(n,i){(String.isNullOrEmpty(i)||this.aj(!1),this.am())||(this.view().ac(),this.dataChanged!=null&&this.dataChanged(this,new t.ez(i)),this.ai=!0)},errorMessageText:function(n){return arguments.length===1?(this.g(t.$as.errorMessageTextProperty,n),n):this.c(t.$as.errorMessageTextProperty)},bh:function(n,t){n.bg(t.d(),t.c())},bg:function(){},stretch:function(n){return arguments.length===1?(this.g(t.$as.stretchProperty,n),n):this.c(t.$as.stretchProperty)},bj:function(n,t){n.bk(t.d(),t.c())},bk:function(){this.view().ac()},a6:function(){var i=this.ao(),n;i==!1?(String.isNullOrEmpty(this.a4())?n=new t.ak(1,this.errorMessageText()):(n=new t.e0(0,this.a4()),this.a4(String.empty())),this.a9(n)):this.a7()},ba:function(n){this.isValid(!1);var t=this.view().aj();t!=null?(t.aa(n),t.__visibility=0):this.a4(n)},a7:function(){this.isValid(!0);var n=this.view().aj();n.__visibility=1},an:function(n){var t=String.isNullOrEmpty(n);return!t},ao:function(){return this.an(this.data())},bf:function(n){this.errorMessageDisplaying!=null&&this.errorMessageDisplaying(this,n)},bb:function(n){n.viewport(this.b3())},a9:function(i){var u=t.$ex.a("WarningString"),f=u+(n.type(i.message)==="string"?i.message:i.message()),r=new t.e1(f);this.bf(r);this.ba(r.errorMessage())},as:function(t,i){var r={__x:0,__y:0,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return r.__x=(t.b()-i.b())/2,r.__y=(t.a()-i.a())/2,r.__x=Math.round(r.__x-.5),r.__y=Math.round(r.__y-.5),r},provideContainer:function(n){this.view().x(n)},containerResized:function(){this.view().y()},flush:function(){this.view().flush()},errorMessageDisplaying:null,dataChanged:null,$type:new n.ig.Type("XamBarcode",t.$at.$type)},!0);n.ig.util.defType("XamGridBarcode:lv","XamBarcode",{cf:0,ch:function(n){return arguments.length===1?(this.cf=n,n):this.cf},cg:0,ci:function(n){return arguments.length===1?(this.cg=n,n):this.cg},_b5:null,b5:function(n){return arguments.length===1?(this._b5=n,n):this._b5},_c2:null,c2:function(n){return arguments.length===1?(this._c2=n,n):this._c2},b9:!1,cb:function(n){return arguments.length===1?(this.b9=n,n):this.b9},_b4:null,b4:function(n){return arguments.length===1?(this._b4=n,n):this._b4},ad:function(){return new t.lu(this)},bl:function(n){t.$as.bl.call(this,n);this.b8(n)},_b8:null,b8:function(n){return arguments.length===1?(this._b8=n,n):this._b8},init:function(){this.b9=!0;t.$as.init.call(this);this.y(t.$lv.$type);this.b4(new t.a);for(var n=1;t.$f9.d(this.xDimension())<1;)this.xDimension(Math.round(t.$f9.c(n)*1e3)/1e3),n+=.01},barsFillMode:function(n){return arguments.length===1?(this.g(t.$lv.barsFillModeProperty,n),n):this.c(t.$lv.barsFillModeProperty)},cw:function(n,t){n.cv(t.d(),t.c())},cv:function(){this.view().ac()},widthToHeightRatio:function(n){return arguments.length===1?(this.g(t.$lv.widthToHeightRatioProperty,n),n):this.c(t.$lv.widthToHeightRatioProperty)},cy:function(n,t){n.cx(t.d(),t.c())},cx:function(n,i){if(i<=0){var r=t.$ex.a("InvalidPropertyValue").replace("{0}","WidthToHeightRatio").replace("{1}",.001.toString()).replace("{2}",1e3.toString());this.b8().ar(r)}else this.view().ac()},xDimension:function(n){return arguments.length===1?(this.g(t.$lv.xDimensionProperty,n),n):this.c(t.$lv.xDimensionProperty)},c0:function(n,t){n.cz(t.d(),t.c())},cz:function(n,i){if(i<.01||i>100){var r=t.$ex.a("InvalidPropertyValue").replace("{0}","XDimension").replace("{1}",.01.toString()).replace("{2}",100..toString());this.b8().ar(r)}else this.view().ac()},ao:function(){return t.$as.ao.call(this)&&this.widthToHeightRatio()>0&&this.xDimension()>=.01&&this.xDimension()<=100},bk:function(n,i){t.$as.bk.call(this,n,i);this.b5()!=null&&this.view().ac()},a6:function(){if(this.b5()!=null){if(t.$as.a6.call(this),this.isValid()==!1)this.cq();else if(!this.ca()){var n=t.$ex.a("InvalidDimension"),i=new t.e0(0,n);this.a9(i);this.cq()}if(this.isValid()==!1||!this.cb()){this.b8().as();this.view().t();return}this.cb(!1);try{this.cp();this.cr();this.cs()}catch(r){this.a9(r)}this.cb(!0);this.b8().as();this.view().t()}},cp:function(){this.cq()},cr:function(){},c6:function(n){var i=150,r=100,u;return this.isValid()?(i=this.b5().am().count()*t.$f9.d(this.xDimension()),r=this.widthToHeightRatio()*t.$f9.f(this.xDimension()),this.c2()!=null&&this.c2().__visibility==0&&(u=this.view().ap(this.c2()),u.b()>i&&(i=u.b(),r=i/n),r+=u.a()),i=Math.round(i-.5),r=Math.round(r-.5),new t.cm(i,r)):(isNaN(this.width())||(i=this.width()),isNaN(this.height())||(r=this.height()),new t.cm(i,r))},cc:function(){if(!this.isValid())return 1/.5;var n=this.b5().am().count(),t=this.widthToHeightRatio();return n/t},exportVisualData:function(){var n=new t.gc;return this.bb(n),n},bb:function(n){t.$as.bb.call(this,n);var i=n;i.figuresPath(new t.mb(1,"Figures",this.b5().ba()));i.figuresPathRect(new t.mb(1,"BarcodeGrid",this.b8().at()))},cq:function(){this.b5()!=null&&this.b5().a5()},c1:function(n,i,r,u,f){var e=this,o=function(){var i=new t.cr;return i.aa(n),i}();return e.b5().ag().add(new t.l1(1,u,i,f,r)),e.b5().y().add(o),o},ck:function(n){var t,i;if(n!=null)for(t=0;t<n.length;t++){if(i=n[t],i==0)break;this.cl(i)}},cl:function(n){for(var r,u=this,i=0;i<n;i++)r=function(){var n=new t.ma;return n.c(new t.l7(1,1,2)),n}(),u.b5().am().add(r)},cn:function(n,i){var r=this;r.b5().ao().add(function(){var r=new t.l6;return r.c(new t.l7(1,n,i)),r}())},ct:function(n,t,i,r,u){var e,f;if(n!=null)for(e=0;e<n.length;e++){if(f=n[e],this.b5().am().count()+f<=u||this.b5().ao().count()+f<=i)break;this.cu(u,f,i,r,t);u+=f;t=!t}},cu:function(n,i,r,u,f){if(f){var e=new t.l1(1,r,n,u,i);this.b5().af().add(e)}},cm:function(n){for(var t=0;t<n;t++)this.cl(1)},co:function(n){for(var t=0;t<n;t++)this.cn(1,2)},cs:function(){this.k()==0||this.j()==0},ca:function(){return this.barsFillMode()==1&&this.stretch()==0?t.$f9.d(this.xDimension())>=1:!0},$type:new n.ig.Type("XamGridBarcode",t.$as.$type)},!0);n.ig.util.defType("XamQRCodeBarcode:md","XamGridBarcode",{_da:null,da:function(n){return arguments.length===1?(this._da=n,n):this._da},init:function(){var n,i,r,u;t.$lv.init.call(this);this.y(t.$md.$type);this.da(new t.mc(this));this.xDimension(.7);n=t.$e3.x("iso-8859-1");i=n.getBytes2;i?this.eciNumber(3):this.eciNumber(26);r=t.$e3.x("shift_jis");u=r.getBytes2;u?this.encodingMode(-1):this.encodingMode(2)},an:function(n){var i=t.$lv.an.call(this,n),r;return i&&(r=this.encodingMode()!=-1?t.$ga.i[this.encodingMode()][this.errorCorrectionLevel()]:0,this.encodingMode()!=-1&&n.length>r&&(i=!1)),i},ao:function(){var n=t.$lv.ao.call(this);return this.fnc1Mode()==2&&n&&(n=t.$mc.a7(this.applicationIndicator())),n&&t.$mc.a9(this.eciNumber())},cr:function(){if(this.da()!=null){this.co(4);this.cm(4);try{var n=this.da().aq();this.du(n)}catch(t){this.a9(t);this.cq();return}this.cm(4);this.co(4)}},c6:function(n){if(!this.isValid())return t.$lv.c6.call(this,n);var i,r;return i=this.b5().am().count()*t.$f9.d(this.xDimension()),r=this.b5().ao().count()*t.$f9.f(this.xDimension()),new t.cm(Math.floor(i),Math.floor(r))},cc:function(){return 1},du:function(n){for(var r,t,i,u=!1,f=0;f<n.length;f++)if(this.cn(1,2),!u){for(r=0;r<n.length;r++)this.cl(1);u=!0}for(t=0;t<n.length;t++)for(i=0;i<n.length;i++)n[i][t]!=0&&this.cu(i+4,1,t+4,1,!0)},errorCorrectionLevel:function(n){return arguments.length===1?(this.g(t.$md.errorCorrectionLevelProperty,n),n):this.c(t.$md.errorCorrectionLevelProperty)},dp:function(n,t){n.dn(t.d(),t.c())},dn:function(){this.view().ac()},sizeVersion:function(n){return arguments.length===1?(this.g(t.$md.sizeVersionProperty,n),n):this.c(t.$md.sizeVersionProperty)},dt:function(n,t){n.ds(t.d(),t.c())},ds:function(){this.view().ac()},encodingMode:function(n){return arguments.length===1?(this.g(t.$md.encodingModeProperty,n),n):this.c(t.$md.encodingModeProperty)},dm:function(n,t){n.dl(t.d(),t.c())},dl:function(){this.view().ac()},eciNumber:function(n){return arguments.length===1?(this.g(t.$md.eciNumberProperty,n),n):this.c(t.$md.eciNumberProperty)},dk:function(n,t){n.dj(t.d(),t.c())},dj:function(n,i){if(i!=n){if(!t.$mc.a9(i)){var r=t.$ex.a("InvalidPropertyValue").replace("{0}","EciNumber").replace("{1}",(-1).toString().padLeft(6,"0")).replace("{2}",999999..toString());this.b8().ar(r);return}this.view().ac()}},eciHeaderDisplayMode:function(n){return arguments.length===1?(this.g(t.$md.eciHeaderDisplayModeProperty,n),n):this.c(t.$md.eciHeaderDisplayModeProperty)},di:function(n,t){n.dh(t.d(),t.c())},dh:function(n,t){t!=n&&this.view().ac()},fnc1Mode:function(n){return arguments.length===1?(this.g(t.$md.fnc1ModeProperty,n),n):this.c(t.$md.fnc1ModeProperty)},dr:function(n,t){n.dq(t.d(),t.c())},dq:function(){this.view().ac()},applicationIndicator:function(n){return arguments.length===1?(this.g(t.$md.applicationIndicatorProperty,n),n):this.c(t.$md.applicationIndicatorProperty)},dg:function(n,t){n.df(t.d(),t.c())},df:function(n,i){if(String.isNullOrEmpty(i)&&!t.$mc.a7(i)){var r=t.$ex.a("InvalidPropertyValue").replace("{0}","ApplicationIndicator").replace("{1}","{a-z, A-Z, 00").replace("{2}","99}");this.b8().ar(r);return}this.view().ac()},$type:new n.ig.Type("XamQRCodeBarcode",t.$lv.$type)},!0);t.$mk.eci=111;t.$mk.numeric=1;t.$mk.alphanumeric=10;t.$mk.byte1=100;t.$mk.kanji=1e3;t.$mk.structuredAppend=11;t.$mk.fnc1First=101;t.$mk.fnc1Second=1001;t.$mk.terminator=0;t.$mi.none=0;t.$mi.gs1=1;t.$mi.industry=2;t.$mg.undefined=-1;t.$mg.numeric=0;t.$mg.alphanumeric=1;t.$mg.byte1=2;t.$mg.kanji=3;t.$me.low=1;t.$me.medium=0;t.$me.quartil=3;t.$me.high=2;t.$mf.undefined=0;t.$mf.version1=1;t.$mf.version2=2;t.$mf.version3=3;t.$mf.version4=4;t.$mf.version5=5;t.$mf.version6=6;t.$mf.version7=7;t.$mf.version8=8;t.$mf.version9=9;t.$mf.version10=10;t.$mf.version11=11;t.$mf.version12=12;t.$mf.version13=13;t.$mf.version14=14;t.$mf.version15=15;t.$mf.version16=16;t.$mf.version17=17;t.$mf.version18=18;t.$mf.version19=19;t.$mf.version20=20;t.$mf.version21=21;t.$mf.version22=22;t.$mf.version23=23;t.$mf.version24=24;t.$mf.version25=25;t.$mf.version26=26;t.$mf.version27=27;t.$mf.version28=28;t.$mf.version29=29;t.$mf.version30=30;t.$mf.version31=31;t.$mf.version32=32;t.$mf.version33=33;t.$mf.version34=34;t.$mf.version35=35;t.$mf.version36=36;t.$mf.version37=37;t.$mf.version38=38;t.$mf.version39=39;t.$mf.version40=40;t.$mh.hide=0;t.$mh.show=1;t.$l9.fillSpace=0;t.$l9.ensureEqualSize=1;t.$l8.auto=0;t.$l8.pixel=1;t.$l8.star=2;t.$a.x="0123456789";t.$a.q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";t.$a.r=null;t.$a.k=.001;t.$a.i=1e3;t.$a.g=3;t.$a.f=.5;t.$a.l=.01;t.$a.j=100;t.$a.h=.25;t.$a.d=null;t.$a.e=null;t.$a.staticInit&&!t.$a.barcodeAlgorithmStaticInitCalled&&(t.$a.staticInit(),t.$a.barcodeAlgorithmStaticInitCalled=!0);t.$f4.u=256;t.$f4.v=255;t.$f8.b=null;t.$f8.c=-1;t.$f8.staticInit&&!t.$f8.gs1HelperStaticInitCalled&&(t.$f8.staticInit(),t.$f8.gs1HelperStaticInitCalled=!0);t.$ga.x=57408;t.$ga.w=60351;t.$ga.q=33088;t.$ga.p=40956;t.$ga.z=6;t.$ga.m=1335;t.$ga.n=21522;t.$ga.y=7973;t.$ga.o=-2;t.$ga.t=255;t.$ga.aa="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ$%*+_./:";t.$ga.ab=t.$a.r;t.$ga.ac=null;t.$ga.v=4;t.$ga.u=4;t.$ga.l=3;t.$ga.r=999999;t.$ga.s=-1;t.$ga.i=null;t.$ga.d=null;t.$ga.c=null;t.$ga.e=null;t.$ga.j=null;t.$ga.g=null;t.$ga.f=null;t.$ga.h=null;t.$ga.k=null;t.$ga.b=null;t.$ga.a=null;t.$ga.staticInit&&!t.$ga.qRCodeAlgorithmStaticInitCalled&&(t.$ga.staticInit(),t.$ga.qRCodeAlgorithmStaticInitCalled=!0);t.$gb.i=0;t.$gb.h=7;t.$gb.j=3;t.$gb.k=3;t.$gb.l=40;t.$gb.m=10;t.$e3.q=null;t.$e3.r=null;t.$e3.s=null;t.$e3.t=null;t.$e3.p=null;t.$e3.a=null;t.$e3.v=null;t.$e3.o=null;t.$e3.c=null;t.$e3.g=null;t.$e3.h=null;t.$e3.i=null;t.$e3.j=null;t.$e3.k=null;t.$e3.l=null;t.$e3.m=null;t.$e3.n=null;t.$e3.d=null;t.$e3.e=null;t.$e3.f=null;t.$e3.u=null;t.$e3.b=null;t.$e3.w=null;t.$e3.staticInit&&!t.$e3.encodingServiceStaticInitCalled&&(t.$e3.staticInit(),t.$e3.encodingServiceStaticInitCalled=!0);t.$f7.c="=";t.$f7.e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";t.$bd.l=0;t.$lw.a2=-1;t.$mc.br=-2;t.$mc.bk=-1;t.$mc.bm=-1;t.$as.a5="RootGrid";t.$as.a0="ErrorTextBlock";t.$as.au="BackingBrush";t.$as.backingBrushProperty=t.$ax.i("BackingBrush",t.$bx.$type,t.$as.$type,new t.ay(2,null,function(n,t){n.bi("BackingBrush",t.d(),t.c())}));t.$as.av="BackingOutline";t.$as.backingOutlineProperty=t.$ax.i("BackingOutline",t.$bx.$type,t.$as.$type,new t.ay(2,null,function(n,t){n.bi("BackingOutline",t.d(),t.c())}));t.$as.aw="BackingStrokeThickness";t.$as.backingStrokeThicknessProperty=t.$ax.i("BackingStrokeThickness",Number,t.$as.$type,new t.ay(2,0,function(n,t){n.bi("BackingStrokeThickness",t.d(),t.c())}));t.$as.ax="BarBrush";t.$as.barBrushProperty=t.$ax.i("BarBrush",t.$bx.$type,t.$as.$type,new t.ay(2,null,function(n,t){n.bi("BarBrush",t.d(),t.c())}));t.$as.a2="FontBrush";t.$as.fontBrushProperty=t.$ax.i("FontBrush",t.$bx.$type,t.$as.$type,new t.ay(2,null,function(n,t){n.bi("FontBrush",t.d(),t.c())}));t.$as.a3="Font";t.$as.fontProperty=t.$ax.i("Font",String,t.$as.$type,new t.ay(2,null,function(n,t){n.bi("Font",t.d(),t.c())}));t.$as.dataProperty=t.$ax.i("Data",String,t.$as.$type,new t.ay(2,String.empty(),t.$as.be));t.$as.errorMessageTextProperty=t.$ax.i("ErrorMessageText",String,t.$as.$type,new t.ay(2,String.empty(),t.$as.bh));t.$as.stretchProperty=t.$ax.i("Stretch",t.$ew.$type,t.$as.$type,new t.ay(2,2,t.$as.bj));t.$lv.cj="BarcodeGrid";t.$lv.barsFillModeProperty=t.$ax.i("BarsFillMode",t.$l9.$type,t.$lv.$type,new t.ay(2,0,t.$lv.cw));t.$lv.widthToHeightRatioProperty=t.$ax.i("WidthToHeightRatio",Number,t.$lv.$type,new t.ay(2,3,t.$lv.cy));t.$lv.xDimensionProperty=t.$ax.i("XDimension",Number,t.$lv.$type,new t.ay(2,.25,t.$lv.c0));t.$md.errorCorrectionLevelProperty=t.$ax.i("ErrorCorrectionLevel",t.$me.$type,t.$md.$type,new t.ay(2,0,t.$md.dp));t.$md.sizeVersionProperty=t.$ax.i("SizeVersion",t.$mf.$type,t.$md.$type,new t.ay(2,0,t.$md.dt));t.$md.encodingModeProperty=t.$ax.i("EncodingMode",t.$mg.$type,t.$md.$type,new t.ay(2,-1,t.$md.dm));t.$md.eciNumberProperty=t.$ax.i("EciNumber",n.ig.Number.prototype.$type,t.$md.$type,new t.ay(2,3,t.$md.dk));t.$md.eciHeaderDisplayModeProperty=t.$ax.i("EciHeaderDisplayMode",t.$mh.$type,t.$md.$type,new t.ay(2,0,t.$md.di));t.$md.fnc1ModeProperty=t.$ax.i("Fnc1Mode",t.$mi.$type,t.$md.$type,new t.ay(2,0,t.$md.dr));t.$md.applicationIndicatorProperty=t.$ax.i("ApplicationIndicator",String,t.$md.$type,new t.ay(2,String.empty(),t.$md.dg));n.ig.util.extCopy(n.ig.Queryable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["asQueryable"]]]);n.ig.util.extCopy(n.ig.Enumerable,[[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.EdgeClipper,n.ig.RearrangedList$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[n.ig.SortedList$1,n.ig.IGrouping$2,n.ig.IFastItemColumn$1,n.ig.FastItemColumn,n.ig.FastItemDateTimeColumn,n.ig.FastItemObjectColumn,n.ig.FastItemIntColumn,n.ig.FastItemsSource,n.ig.EdgeClipper,n.ig.RearrangedList$1],["ofType$1","cast$1"]]]);n.ig.util.extCopy(n.ig.ArrayUtil,[[[n.ig.EdgeClipper,n.ig.RearrangedList$1],["shuffle$1","insertionIndex$11","insertionIndex$1","binarySearch$1"]]]);n.ig.util.extCopy(n.ig.BrushUtil,[[[],["getLightened"]]]);n.ig.util.extCopy(n.ig.ColorUtil,[[[],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);n.ig.util.extCopy(n.ig.Extensions,[[[],["reset1"]],[[],["reset"]],[[],["detach"]],[[],["transferChildrenTo"]],[[],["isPlottable"]],[[],["isPlottable1"]]]);n.ig.util.extCopy(n.ig.PathFigureUtil,[[[],["duplicate1"]],[[],["duplicate"]]]);n.ig.util.extCopy(n.ig.PointCollectionUtil,[[[n.ig.RearrangedList$1],["flattenTo","getBounds2","clipTo"]],[[n.ig.RearrangedList$1],["getBounds1","getBounds","getCentroid","toPointCollection","toPointList"]],[[],["getBounds3","getBounds4","toPointCollections"]]]);n.ig.util.extCopy(n.ig.RectUtil,[[[],["getCenter","getArea","duplicate","getLeader","getDistanceSquared1","getDistanceSquared2","getDistanceSquared","contains","intersectsWith","intersectionArea","getInflated","inflate1","inflate","round","isNull","size","normalize","normalize1","getTopLeft","getTopRight","getBottomLeft","getBottomRight","getCorners","rotateAboutCenter","rotateAboutPoint"]]])}(jQuery),function(n){n.ig.dvCommonWidget=n.ig.dvCommonWidget||Class.extend({init:function(n){this.widget=n},_createWidget:function(t,i,r){var f=this,u;this.widget=r;this.widget._duringInit=!0;t=n.extend(!1,{},t);this.widget._creationOptions=t;(!t.dataSource||n.type(t.dataSource)!=="array")&&(n.type(t.dataSource)!=="object"||t.dataSource instanceof n.ig.DataSource)||(this.widget._initialDataSource=t.dataSource,t.dataSource=null);this.widget._initialSeriesDataSource={};this.widget._initialAxesDataSource={};t.series&&(t.series=t.series.slice(0),n.each(t.series,function(t,i){(!i.name||!i.dataSource||n.type(i.dataSource)!=="array")&&(n.type(i.dataSource)!=="object"||i.dataSource instanceof n.ig.DataSource)||(f.widget._initialSeriesDataSource[i.name]=i.dataSource,i.dataSource=null)}));t.axes&&(t.axes=t.axes.slice(0),n.each(t.axes,function(t,i){(!i.name||!i.dataSource||n.type(i.dataSource)!=="array")&&(n.type(i.dataSource)!=="object"||i.dataSource instanceof n.ig.DataSource)||(f.widget._initialAxesDataSource[i.name]=i.dataSource,i.dataSource=null)}));switch(this.widget.widgetName){case"igDataChart":this.widget._axisTemplate=n.extend(!1,{},this.widget.options.axes[0]);this.widget._seriesTemplate=n.extend(!1,{},this.widget.options.series[0]);this.widget.options.legend=null;this.widget.options.series[0].legend=null;t.series===undefined&&(t.series=[]);t.axes===undefined&&(t.axes=[]);break;case"igMap":this.widget._seriesTemplate=n.extend(!1,{},this.widget.options.series[0]);t.series===undefined&&(t.series=[]);this.widget.options.backgroundContent=null}n.Widget.prototype._createWidget.apply(this.widget,[t,i]);u=r.options.series;!u||u.length!==1||u[0].name||u[0].type||u.pop();u=r.options.axis;!u||u.length!==1||u[0].name||u[0].type||u.pop()},_create:function(){var t=this.widget;if(n.ig.util._isCanvasSupported()){this.widget._notInitialized=!0;t._initialDataSource&&(t._creationOptions.dataSource=this.widget._initialDataSource,t.options.dataSource=this.widget._initialDataSource);t.options.series&&n.each(t.options.series,function(n,i){i.name&&t._initialSeriesDataSource[i.name]!==undefined&&(i.dataSource=t._initialSeriesDataSource[i.name])});t.options.axes&&n.each(t.options.axes,function(n,i){i.name&&t._initialAxesDataSource[i.name]!==undefined&&(i.dataSource=t._initialAxesDataSource[i.name])});t._pendingCrossingAxes=[];t._tooltipTemplate=null;t._tooltipTtemplates=null;t._tooltip={};this.widget._tooltipTemplates={};switch(this.widget.widgetName){case"igDataChart":t._chart=new n.ig.XamDataChart;t._chart.manageDataSources(!0);t._axes={};t._series={};t._axisOpt={};t._seriesOpt={};t._seriesSubOpt={};t._seriesSub={};this._bindDataChartEvents(t._chart);this._renderChartContainer(this.widget);this._initialDataBind();break;case"igPieChart":t._chart=new n.ig.XamPieChart;this._bindPieChartEvents(t._chart);this._renderChartContainer(this.widget);this._initialDataBind();break;case"igMap":t._chart=new n.ig.XamGeographicMap;t._chart.manageDataSources(!0);t._axes={};t._series={};t._axisOpt={};t._seriesOpt={};t._seriesSubOpt={};t._seriesSub={};this._bindMapEvents(t._chart);this._setBackgroundContent(t.options.backgroundContent)}this.widget._creationOptions.name&&this.widget._chart.name(this.widget._creationOptions.name);this.widget.dsCount===0&&this.widget._notInitialized&&this._initializeWidget(this.widget)}else n.ig.util._renderUnsupportedBrowser(t)},_converterCallback:function(){var n=this.settings.callee;n.widget.dsCount--;n.widget.dsCount===0&&n._initializeWidget(n.widget)},_initDataOptions:function(n,t){var i=this.widget,r;return n.dataSourceUrl&&(n.dataSource=n.dataSourceUrl),i._containerSourceID=i.id(),r={id:n.name||i._containerSourceID,rowAdded:this._itemAdded,rowDeleted:this._itemRemoved,rowUpdated:this._itemUpdated,rowInserted:this._itemInserted,callback:t,callee:this,responseDataKey:n.responseDataKey,primaryKey:n.primaryKey,responseTotalRecCountKey:n.responseTotalRecCountKey,dataSource:n.dataSource},n.dataSourceType!==null&&(r.type=n.dataSourceType),r},_setupDataSource:function(t,i){var r=this._initDataOptions(t,i);this.widget.dataSources===undefined&&(this.widget.dataSources={});r.dataSource instanceof n.ig.DataSource?(this.widget.dataSources[r.id]=r.dataSource,r.dataSource=this.widget.dataSources[r.id].settings.dataSource,this.widget.dataSources[r.id].settings.responseDataKey!==null&&(delete r.responseDataKey,r.schema&&(r.schema.searchField=this.widget.dataSource.settings.responseDataKey)),this.widget.dataSources[r.id].settings=this._mergeDataSourceSettings(this.widget.dataSources[r.id].settings,r),r.schema&&this.widget.dataSources[r.id]._initSchema()):this.widget.dataSources[r.id]=n.type(r.dataSource)==="string"&&r.dataSource.indexOf("$callback=?")!==-1?new n.ig.JSONPDataSource(r):new n.ig.DataSource(r)},_initCallback:function(n,t,i){var r=i.settings.callee;r.widget.dsCount--;r.widget.dsCount===0&&n&&r._initializeWidget(r.widget)},_initializeWidget:function(n){this.widget=n;this.widget.dataSources[this.widget._containerSourceID]&&this._setItemsSource(this.widget,this.widget._chart,this.widget._containerSourceID);this._setWidgetOptions(this.widget._creationOptions,n._chart);this.widget._duringInit=!1;n._creationOptions.series&&this._setCoreWidgetOption(n._chart,"series",this.widget._creationOptions.series);n._notInitialized=!1},_getNotifyTarget:function(n){var t;return this.widget.widgetName==="igPieChart"?t=this.widget._chart:n===this.widget.id()?t=this.widget._chart:(t=this._getSeriesByName(n),t||(t=this._getAxisByName(n),t||(t=this._getSubSeriesByName(null,n)))),t!==undefined?t:null},_notifyItemAdded:function(n,t,i){this.widget._chart.notifyInsertItem(n,i,t.row)},_itemAdded:function(n,t){this._notifyItemAdded(t,n,t.dataView().length-1)},_itemInserted:function(n,t){this._notifyItemAdded(t,n,n.rowIndex)},_itemUpdated:function(n,t){this.widget._chart.notifySetItem(t,n.rowIndex,n.oldRow,n.newRow)},_itemRemoved:function(n,t){this.widget._chart.notifyRemoveItem(t,n.rowIndex,n.row)},_setWidgetOptions:function(t,i){var r=this;n.each(t,function(n,t){r._setWidgetOption(i,n,t)?r.widget.options[n]=t:r._setCoreWidgetOption(i,n,t)})},_createBrushFromValue:function(t){var i,f,u,e,r;if(!t)return null;if(typeof t=="string")i=new n.ig.Brush,i.fill(t);else if(t.type=="linearGradient"&&(i=new n.ig.LinearGradientBrush,t.startPoint&&t.endPoint&&(i._useCustomDirection=!0,i._startX=t.startPoint.x,i._startY=t.startPoint.y,i._endX=t.endPoint.x,i._endY=t.endPoint.y),t.colorStops)){for(f=[],r=0;r<t.colorStops.length;r++)u=new n.ig.GradientStop,e=0,t.colorStops[r].offset&&(e=t.colorStops[r].offset),u._offset=e,u.__fill=t.colorStops[r].color,f.push(u);i._gradientStops=f}return i},_getValueFromBrush:function(n){var t={},u,i,r;if(n._isGradient){if(t.type="linearGradient",n._useCustomDirection&&(t.startPoint={},t.startPoint.x=n._startX,t.startPoint.y=n._startY,t.endPoint={},t.endPoint.x=n._endX,t.endPoint.y=n._endY),n._gradientStops)for(t.colorStops=[],r=0;r<n._gradientStops.length;r++)u=n._gradientStops[r],i={},i.offset=u._offset,i.color=u.__fill,t.colorStops.push(i);return t}return n.fill()},_setWidgetOption:function(t,i,r){var f,e,u;switch(i){case"crosshairPoint":return t.crosshairPoint(new n.ig.Point(1,r.x,r.y)),!0;case"windowRect":return t.windowRect(new n.ig.Rect(0,r.left,r.top,r.width,r.height)),!0;case"horizontalZoomable":return t.horizontalZoomable(r),!0;case"isPagePanningAllowed":return t.isPagePanningAllowed(r),!0;case"verticalZoomable":return t.verticalZoomable(r),!0;case"zoomable":return t.zoomable(r),!0;case"windowResponse":switch(r){case"deferred":t.windowResponse(0);break;case"immediate":t.windowResponse(1)}return!0;case"windowRectMinWidth":return t.windowRectMinWidth(r),!0;case"overviewPlusDetailPaneVisibility":switch(r){case"visible":t.overviewPlusDetailPaneVisibility(0);break;case"collapsed":t.overviewPlusDetailPaneVisibility(1)}return!0;case"crosshairVisibility":switch(r){case"visible":t.crosshairVisibility(0);break;case"collapsed":t.crosshairVisibility(1)}return!0;case"plotAreaBackground":return r===null?t.plotAreaBackground(null):t.plotAreaBackground(this._createBrushFromValue(r)),!0;case"defaultInteraction":switch(r){case"none":t.defaultInteraction(0);break;case"dragZoom":t.defaultInteraction(1);break;case"dragPan":t.defaultInteraction(2)}return!0;case"dragModifier":switch(r){case"none":t.dragModifier(0);break;case"alt":t.dragModifier(1);break;case"control":t.dragModifier(2);break;case"shift":t.dragModifier(4);break;case"windows":t.dragModifier(8);break;case"apple":t.dragModifier(8)}return!0;case"panModifier":switch(r){case"none":t.panModifier(0);break;case"alt":t.panModifier(1);break;case"control":t.panModifier(2);break;case"shift":t.panModifier(4);break;case"windows":t.panModifier(8);break;case"apple":t.panModifier(8)}return!0;case"previewRect":return t.previewRect(new n.ig.Rect(0,r.left,r.top,r.width,r.height)),!0;case"windowPositionHorizontal":return t.windowPositionHorizontal(r),!0;case"windowPositionVertical":return t.windowPositionVertical(r),!0;case"windowScaleHorizontal":return t.windowScaleHorizontal(r),!0;case"windowScaleVertical":return t.windowScaleVertical(r),!0;case"windowScale":return t.windowScale(r),!0;case"triangleMarkerTemplate":case"circleMarkerTemplate":case"pyramidMarkerTemplate":case"squareMarkerTemplate":case"diamondMarkerTemplate":case"pentagonMarkerTemplate":case"hexagonMarkerTemplate":case"tetragramMarkerTemplate":case"pentagramMarkerTemplate":case"hexagramMarkerTemplate":return this._setDataTemplate(t,i,r),!0;case"topMargin":return t.topMargin(r),!0;case"leftMargin":return t.leftMargin(r),!0;case"rightMargin":return t.rightMargin(r),!0;case"bottomMargin":return t.bottomMargin(r),!0;case"autoMarginWidth":return t.autoMarginWidth(r),!0;case"autoMarginHeight":return t.autoMarginHeight(r),!0;case"worldRect":return t.worldRect(new n.ig.Rect(0,r.left,r.top,r.width,r.height)),!0;case"xAxis":return t.xAxis(this._getAxisByName(r)),!0;case"yAxis":return t.yAxis(this._getAxisByName(r)),!0;case"isSquare":return t.isSquare(r),!0;case"gridMode":switch(r){case"none":t.gridMode(0);break;case"beforeSeries":t.gridMode(1);break;case"behindSeries":t.gridMode(2)}return!0;case"alignsGridLinesToPixels":return t.alignsGridLinesToPixels(r),!0;case"brushes":for(e=!0,(typeof r[0]=="string"&&r[0]==="HSV"||r[0]==="RGB")&&(r[0]==="HSV"&&(e=!1),r=r.slice(1)),f=new n.ig.BrushCollection,u=0;u<r.length;u++)f.add(this._createBrushFromValue(r[u]));return t.brushes(f),!0;case"markerBrushes":for(e=!0,(typeof r[0]=="string"&&r[0]==="HSV"||r[0]==="RGB")&&(r[0]==="HSV"&&(e=!1),r=r.slice(1)),f=new n.ig.BrushCollection,u=0;u<r.length;u++)f.add(this._createBrushFromValue(r[u]));return t.markerBrushes(f),!0;case"outlines":for(e=!0,(typeof r[0]=="string"&&r[0]==="HSV"||r[0]==="RGB")&&(r[0]==="HSV"&&(e=!1),r=r.slice(1)),f=new n.ig.BrushCollection,u=0;u<r.length;u++)f.add(this._createBrushFromValue(r[u]));return t.outlines(f),!0;case"markerOutlines":for(e=!0,(typeof r[0]=="string"&&r[0]==="HSV"||r[0]==="RGB")&&(r[0]==="HSV"&&(e=!1),r=r.slice(1)),f=new n.ig.BrushCollection,u=0;u<r.length;u++)f.add(this._createBrushFromValue(r[u]));return t.markerOutlines(f),!0;case"valueMemberPath":return t.valueMemberPath(r),!0;case"labelMemberPath":return t.labelMemberPath(r),!0;case"labelsPosition":switch(r){case"none":t.labelsPosition(0);break;case"center":t.labelsPosition(1);break;case"insideEnd":t.labelsPosition(2);break;case"outsideEnd":t.labelsPosition(3);break;case"bestFit":t.labelsPosition(4)}return!0;case"leaderLineVisibility":switch(r){case"visible":t.leaderLineVisibility(0);break;case"collapsed":t.leaderLineVisibility(1)}return!0;case"leaderLineType":switch(r){case"straight":t.leaderLineType(0);break;case"arc":t.leaderLineType(1);break;case"spline":t.leaderLineType(2)}return!0;case"leaderLineMargin":return t.leaderLineMargin(r),!0;case"leaderLineStyle":return t.leaderLineStyle(r),!0;case"othersCategoryThreshold":return t.othersCategoryThreshold(r),!0;case"formatLabel":return t.formatLabel(r),!0;case"othersCategoryStyle":return t.othersCategoryStyle(r),!0;case"othersCategoryType":switch(r){case"number":t.othersCategoryType(0);break;case"percent":t.othersCategoryType(1)}return!0;case"othersCategoryText":return t.othersCategoryText(r),!0;case"explodedRadius":return t.explodedRadius(r),!0;case"radiusFactor":return t.radiusFactor(r),!0;case"allowSliceSelection":return t.allowSliceSelection(r),!0;case"allowSliceExplosion":return t.allowSliceExplosion(r),!0;case"labelExtent":return t.labelExtent(r),!0;case"startAngle":return t.startAngle(r),!0;case"sweepDirection":switch(r){case"counterclockwise":t.sweepDirection(0);break;case"clockwise":t.sweepDirection(1)}return!0;case"selectedStyle":return t.selectedStyle(r),!0;case"legendItemTemplate":return this._setDataTemplate(t,i,r),!0;case"legendItemBadgeTemplate":return this._setDataTemplate(t,i,r),!0;case"textStyle":return t.textStyle(r),!0;case"overviewPlusDetailPaneBackgroundImageUri":return t.overviewPlusDetailPaneBackgroundImageUri(r),!0;case"isSurfaceInteractionDisabled":return t.isSurfaceInteractionDisabled(r),!0;case"animateSeriesWhenAxisRangeChanges":return t.animateSeriesWhenAxisRangeChanges(r),!0;case"innerExtent":return t.innerExtent(r),!0;case"title":return t.title(r),!0;case"subtitle":return t.subtitle(r),!0;case"titleTextStyle":return t.titleTextStyle(r),!0;case"titleTopMargin":return t.titleTopMargin(r),!0;case"titleLeftMargin":return t.titleLeftMargin(r),!0;case"titleRightMargin":return t.titleRightMargin(r),!0;case"titleBottomMargin":return t.titleBottomMargin(r),!0;case"subtitleTopMargin":return t.subtitleTopMargin(r),!0;case"subtitleLeftMargin":return t.subtitleLeftMargin(r),!0;case"subtitleRightMargin":return t.subtitleRightMargin(r),!0;case"subtitleBottomMargin":return t.subtitleBottomMargin(r),!0;case"subtitleTextStyle":return t.subtitleTextStyle(r),!0;case"titleTextColor":return r===null||r===undefined?t.titleTextColor(null):t.titleTextColor(this._createBrushFromValue(r)),!0;case"subtitleTextColor":return r===null||r===undefined?t.subtitleTextColor(null):t.subtitleTextColor(this._createBrushFromValue(r)),!0;case"titleHorizontalAlignment":switch(r){case"left":t.titleHorizontalAlignment(0);break;case"center":t.titleHorizontalAlignment(1);break;case"right":t.titleHorizontalAlignment(2)}break;case"subtitleHorizontalAlignment":switch(r){case"left":t.subtitleHorizontalAlignment(0);break;case"center":t.subtitleHorizontalAlignment(1);break;case"right":t.subtitleHorizontalAlignment(2)}break;case"highlightingTransitionDuration":return t.highlightingTransitionDuration(r),!0;case"pixelScalingRatio":return t.pixelScalingRatio(r),!0}return!1},_createAxisFromType:function(t){switch(t){case"numericX":return new n.ig.NumericXAxis;case"numericY":return new n.ig.NumericYAxis;case"categoryX":return new n.ig.CategoryXAxis;case"categoryDateTimeX":return new n.ig.CategoryDateTimeXAxis;case"categoryY":return new n.ig.CategoryYAxis;case"categoryAngle":return new n.ig.CategoryAngleAxis;case"numericAngle":return new n.ig.NumericAngleAxis;case"numericRadius":return new n.ig.NumericRadiusAxis}},_createSeriesFromType:function(t){switch(t){case"area":return new n.ig.AreaSeries;case"bar":return new n.ig.BarSeries;case"column":return new n.ig.ColumnSeries;case"line":return new n.ig.LineSeries;case"rangeArea":return new n.ig.RangeAreaSeries;case"rangeColumn":return new n.ig.RangeColumnSeries;case"splineArea":return new n.ig.SplineAreaSeries;case"spline":return new n.ig.SplineSeries;case"stepArea":return new n.ig.StepAreaSeries;case"stepLine":return new n.ig.StepLineSeries;case"waterfall":return new n.ig.WaterfallSeries;case"financial":return new n.ig.FinancialPriceSeries;case"typicalPriceIndicator":return new n.ig.TypicalPriceIndicator;case"polarArea":return new n.ig.PolarAreaSeries;case"polarLine":return new n.ig.PolarLineSeries;case"polarSpline":return new n.ig.PolarSplineSeries;case"polarSplineArea":return new n.ig.PolarSplineAreaSeries;case"polarScatter":return new n.ig.PolarScatterSeries;case"radialColumn":return new n.ig.RadialColumnSeries;case"radialLine":return new n.ig.RadialLineSeries;case"radialPie":return new n.ig.RadialPieSeries;case"radialArea":return new n.ig.RadialAreaSeries;case"scatter":return new n.ig.ScatterSeries;case"highDensityScatter":return new n.ig.HighDensityScatterSeries;case"scatterLine":return new n.ig.ScatterLineSeries;case"scatterSpline":return new n.ig.ScatterSplineSeries;case"bubble":return new n.ig.BubbleSeries;case"absoluteVolumeOscillatorIndicator":return new n.ig.AbsoluteVolumeOscillatorIndicator;case"averageTrueRangeIndicator":return new n.ig.AverageTrueRangeIndicator;case"accumulationDistributionIndicator":return new n.ig.AccumulationDistributionIndicator;case"averageDirectionalIndexIndicator":return new n.ig.AverageDirectionalIndexIndicator;case"geographicShape":return new n.ig.GeographicShapeSeries;case"geographicSymbol":return new n.ig.GeographicSymbolSeries;case"geographicScatterArea":return new n.ig.GeographicScatterAreaSeries;case"geographicContourLine":return new n.ig.GeographicContourLineSeries;case"geographicHighDensityScatter":return new n.ig.GeographicHighDensityScatterSeries;case"geographicProportionalSymbol":return new n.ig.GeographicProportionalSymbolSeries;case"geographicTileSeries":return new n.ig.GeographicTileSeries;case"geographicPolyline":return new n.ig.GeographicPolylineSeries;case"bollingerBandWidthIndicator":return new n.ig.BollingerBandWidthIndicator;case"chaikinOscillatorIndicator":return new n.ig.ChaikinOscillatorIndicator;case"chaikinVolatilityIndicator":return new n.ig.ChaikinVolatilityIndicator;case"commodityChannelIndexIndicator":return new n.ig.CommodityChannelIndexIndicator;case"detrendedPriceOscillatorIndicator":return new n.ig.DetrendedPriceOscillatorIndicator;case"easeOfMovementIndicator":return new n.ig.EaseOfMovementIndicator;case"fastStochasticOscillatorIndicator":return new n.ig.FastStochasticOscillatorIndicator;case"forceIndexIndicator":return new n.ig.ForceIndexIndicator;case"fullStochasticOscillatorIndicator":return new n.ig.FullStochasticOscillatorIndicator;case"marketFacilitationIndexIndicator":return new n.ig.MarketFacilitationIndexIndicator;case"massIndexIndicator":return new n.ig.MassIndexIndicator;case"medianPriceIndicator":return new n.ig.MedianPriceIndicator;case"moneyFlowIndexIndicator":return new n.ig.MoneyFlowIndexIndicator;case"movingAverageConvergenceDivergenceIndicator":return new n.ig.MovingAverageConvergenceDivergenceIndicator;case"negativeVolumeIndexIndicator":return new n.ig.NegativeVolumeIndexIndicator;case"onBalanceVolumeIndicator":return new n.ig.OnBalanceVolumeIndicator;case"percentagePriceOscillatorIndicator":return new n.ig.PercentagePriceOscillatorIndicator;case"percentageVolumeOscillatorIndicator":return new n.ig.PercentageVolumeOscillatorIndicator;case"positiveVolumeIndexIndicator":return new n.ig.PositiveVolumeIndexIndicator;case"priceVolumeTrendIndicator":return new n.ig.PriceVolumeTrendIndicator;case"rateOfChangeAndMomentumIndicator":return new n.ig.RateOfChangeAndMomentumIndicator;case"relativeStrengthIndexIndicator":return new n.ig.RelativeStrengthIndexIndicator;case"slowStochasticOscillatorIndicator":return new n.ig.SlowStochasticOscillatorIndicator;case"standardDeviationIndicator":return new n.ig.StandardDeviationIndicator;case"stochRSIIndicator":return new n.ig.StochRSIIndicator;case"trixIndicator":return new n.ig.TRIXIndicator;case"ultimateOscillatorIndicator":return new n.ig.UltimateOscillatorIndicator;case"weightedCloseIndicator":return new n.ig.WeightedCloseIndicator;case"williamsPercentRIndicator":return new n.ig.WilliamsPercentRIndicator;case"bollingerBandsOverlay":return new n.ig.BollingerBandsOverlay;case"priceChannelOverlay":return new n.ig.PriceChannelOverlay;case"customIndicator":return new n.ig.CustomIndicator;case"point":return new n.ig.PointSeries;case"stackedColumn":return new n.ig.StackedColumnSeries;case"stacked100Column":return new n.ig.Stacked100ColumnSeries;case"stackedArea":return new n.ig.StackedAreaSeries;case"stacked100Area":return new n.ig.Stacked100AreaSeries;case"stackedBar":return new n.ig.StackedBarSeries;case"stacked100Bar":return new n.ig.Stacked100BarSeries;case"stackedLine":return new n.ig.StackedLineSeries;case"stacked100Line":return new n.ig.Stacked100LineSeries;case"stackedSpline":return new n.ig.StackedSplineSeries;case"stacked100Spline":return new n.ig.Stacked100SplineSeries;case"stackedSplineArea":return new n.ig.StackedSplineAreaSeries;case"stacked100SplineArea":return new n.ig.Stacked100SplineAreaSeries;case"stackedFragment":return new n.ig.StackedFragmentSeries;case"crosshairLayer":return new n.ig.CrosshairLayer;case"categoryHighlightLayer":return new n.ig.CategoryHighlightLayer;case"categoryItemHighlightLayer":return new n.ig.CategoryItemHighlightLayer;case"itemToolTipLayer":return new n.ig.ItemToolTipLayer;case"categoryToolTipLayer":return new n.ig.CategoryToolTipLayer}},_clearAxes:function(n){n.xAxis&&n.xAxis(null);n.yAxis&&n.yAxis(null);n.angleAxis&&n.angleAxis(null);n.valueAxis&&n.valueAxis(null);n.radiusAxis&&n.radiusAxis(null)},_setForName:function(n,t){for(var i=n.length;i-->0;)if(n[i]&&n[i].name===t.name){n[i]=t;return}n.push(t)},_setCoreWidgetOption:function(t,i,r){var f=this,u=this.widget,o=null,w=null,c=!1,s,l,a,v,h,e=null,b=null,y,p;switch(i){case"axes":if(this.widget.widgetName==="igMap")return;n.each(r,function(t,i){if(!i.name)throw new Error(n.ig.Chart.locale.axisName);if(f.widget._series[i.name])throw new Error(n.ig.Chart.locale.nameInUse);if(o=f._getAxisByName(i.name),o&&i.remove){delete u._axes[i.name];delete u._axisOpt[i.name];var r=u.options.axes.indexOf(u._axisOpt[i.name]);u.options.axes.splice(r,1);u._chart.axes().remove(o);u.dataSources[i.name]&&(delete u.dataSources[i.name].settings,delete u.dataSources[i.name]);u._target&&u._target.name()===i.name&&(u._target=null);return}o&&(w=u._axisOpt[i.name]);o||i.remove||(o=f._createAxisFromType(i.type),o.name(i.name),c=!0);o&&(c&&(u._axes[i.name]=o,s=f._mergeIntoNewWithDataSource(u._axisTemplate,i),f._setForName(u.options.axes,s),u._axisOpt[i.name]=s),i.coercionMethods&&o.coercionMethods(i.coercionMethods),u.options.expectFunctions!==undefined&&u.options.expectFunctions&&o.expectFunctions(u.options.expectFunctions),i.expectFunctions!==undefined&&o.expectFunctions(i.expectFunctions),f._setAxisOptions(i,o),c?u.dataSources[o.name()]&&f._setItemsSource(f.widget,o,o.name()):f._mergeIntoWithDataSource(w,i),c&&u._chart.axes().add(o))});u._pendingCrossingAxes&&u._pendingCrossingAxes.length>0&&(n.each(u._pendingCrossingAxes,function(n,t){t()}),u._pendingCrossingAxes.length=0);return;case"series":u._duringInit||(h=!1,n.each(r,function(t,i){if(!i.name)throw new Error(n.ig.Chart.locale.seriesName);if(f.widget._axes[i.name])throw new Error(n.ig.Chart.locale.nameInUse);if(e=f._getSeriesByName(i.name),e&&i.remove){delete u._series[i.name];delete u._seriesOpt[i.name];delete u._seriesSubOpt[i.name];delete u._seriesSub[i.name];u.dataSources[i.name]&&(delete u.dataSources[i.name].settings,delete u.dataSources[i.name]);var r=u.options.series.indexOf(u._seriesOpt[i.name]);u.options.series.splice(r,1);u._chart.series().remove(e);f._clearAxes(e);return}e||i.remove||(e=f._createSeriesFromType(i.type),f._bindSeriesEvents(e),e.name(i.name),h=!0);e&&(b=u._seriesOpt[i.name]);e&&(h&&(u._series[i.name]=e,u._seriesSub[i.name]={},s=f._mergeIntoNewWithDataSource(u._seriesTemplate,i),f._setForName(u.options.series,s),u._seriesOpt[i.name]=s,u._seriesSubOpt[i.name]={}),i.coercionMethods&&e.coercionMethods(i.coercionMethods),u.options.expectFunctions!==undefined&&u.options.expectFunctions&&e.expectFunctions(u.options.expectFunctions),i.expectFunctions!==undefined&&e.expectFunctions(i.expectFunctions),f._setSeriesOptions(i,e,u),h?u.dataSources[e.name()]&&f._setItemsSource(f.widget,e,e.name()):f._mergeIntoWithDataSource(b,i),h&&u._chart.series().add(e))}));return;case"syncChannel":a=null;r&&r.length>0&&(a=n.ig.SyncLinkManager.prototype.instance().getLink(r));v=u._chart.actualSyncLink();v&&n.ig.SyncLinkManager.prototype.instance().releaseLink(v);a?u._chart.actualSyncLink(a):u._chart.actualSyncLink(new n.ig.SyncLink);break;case"synchronizeVertically":l=u._chart.syncSettings();l.synchronizeVertically(r);break;case"synchronizeHorizontally":l=u._chart.syncSettings();l.synchronizeHorizontally(r);break;case"legend":this._setLegend(u._chart,r);break;case"width":case"height":this._setSize(u._chart,i,r);break;case"size":r.width&&(this._setSize(u._chart,"width",r.width),u.options.width=r.width);r.height&&(this._setSize(u._chart,"height",r.height),u.options.height=r.height);return;case"explodedSlices":r.length&&(y=new n.ig.IndexCollection,n.each(r,function(n,t){y.add(t)}),u._chart.explodedSlices(y));break;case"showTooltip":r===!0&&this._addTooltip(u,u._chart,u.css.tooltip);r===!1&&this._removeTooltip(u,u._chart);break;case"tooltipTemplate":n.ig.tmpl&&(p=this._htmlCheckExpr.test(r)?r:n("#"+r).length>0?n("#"+r).text():n(r).length>0?n(r).text():r,u._tooltipTemplate=p,u._chart.tooltipTemplate&&u._chart.tooltipTemplate(p));break;case"backgroundContent":r===null&&u._chart.backgroundContent(null);u._duringInit||this._setBackgroundContent(r);break;default:return}u.options[i]=r},_htmlCheckExpr:/^[^<]*(<[\w\W]+>)[^>]*$/,_getAxisByName:function(n){if(this.widget._axes[n]===undefined){if(this.widget.widgetName==="igMap"){if(n==="xAxis")return this.widget._chart.xAxis();if(n==="yAxis")return this.widget._chart.yAxis()}return null}return this.widget._axes[n]},_getSeriesByName:function(n){return this.widget._series[n]===undefined?null:this.widget._series[n]},_setAxisOptions:function(t,i){var r=this;n.each(t,function(n,t){r._setAxisOption(i,n,t)||r._setCoreAxisOption(i,n,t);r.widget._axisOpt[i.name()][n]=t})},_setSeriesOptions:function(t,i){var r=this;n.each(t,function(n,t){r._setCoreSeriesOption(i,n,t)||r._seriesSetOption(i,n,t);n!=="series"&&(r.widget._seriesOpt[i.name()][n]=t)})},_setSubSeriesOptions:function(t,i,r){var u=this;n.each(t,function(n,t){u._setCoreSeriesOption(r,n,t)||u._seriesSetOption(r,n,t);u.widget._seriesSubOpt[i.name()][r.name()][n]=t})},_setCoreSeriesOption:function(t,i,r){var u;switch(i){case"legend":return this._setLegend(t,r),!0;case"showTooltip":return r===!0?(this._addTooltip(this.widget,t,this.widget.css.tooltip),this._setCoreSeriesOption(t,"tooltipTemplate","default")):this._removeTooltip(this.widget,t),!0;case"tooltipTemplate":return n.ig.tmpl&&(u=this._htmlCheckExpr.test(r)?r:n("#"+r).length>0?n("#"+r).text():n(r).length>0?n(r).text():r,this.widget._tooltipTemplates[t.name()]=u,t.tooltipTemplate&&t.tooltipTemplate(u),t.flattenEventArgs&&t.flattenEventArgs(n.proxy(this._getChartEvt,this))),!0;case"displayType":switch(r){case"candlestick":t.displayType(0);break;case"ohlc":t.displayType(1);break;case"line":t.displayType(0);break;case"area":t.displayType(1);break;case"column":t.displayType(2)}return!0;case"tileImagery":return r===null&&t.backgroundContent(null),this._setSeriesBackgroundContent(t,r),!0}return!1},_initMap:function(){this.widget._duringInit&&(this._renderChartContainer(this.widget),this._initialDataBind(),this.widget.dsCount===0&&this.widget._notInitialized&&this._initializeWidget(this.widget))},_setSeriesBackgroundContent:function(t,i){var r=this.widget._seriesOpt[t.name()];r.tileImagery=i;switch(i.type){case"cloudMade":t.tileImagery(this._setBackgroundOptions(new n.ig.CloudMadeMapImagery,i));break;case"bing":this._initializeBingMapsImageryForSeries(t,i);break;case"openStreet":t.tileImagery(this._setBackgroundOptions(new n.ig.OpenStreetMapImagery,i));break;default:return}},_setBackgroundContent:function(t){if(t){this.widget.options.backgroundContent=t;switch(t.type){case"cloudMade":this.widget._chart.backgroundContent(this._setBackgroundOptions(new n.ig.CloudMadeMapImagery,t));this._initMap();break;case"bing":this._initializeBingMapsImagery(t);break;case"openStreet":this.widget._chart.backgroundContent(this._setBackgroundOptions(new n.ig.OpenStreetMapImagery,t));this._initMap();break;default:return}}else this._initMap()},_initializeBingMapsImagery:function(t){var i=t.bingUrl||"http://dev.virtualearth.net/REST/v1/Imagery/Metadata/",r=t.imagerySet||"AerialWithLabels",u=t.key;n.ajax({url:i+r,data:"key="+u+"&include=ImageryProviders",success:n.proxy(this._setBingBackground,this),dataType:"jsonp",jsonp:"jsonp"})},_initializeBingMapsImageryForSeries:function(t,i){var r=i.bingUrl||"http://dev.virtualearth.net/REST/v1/Imagery/Metadata/",u=i.imagerySet||"AerialWithLabels",f=i.key,e=this;n.ajax({url:r+u,data:"key="+f+"&include=ImageryProviders",success:function(n){e._setBingBackgroundForSeries(t,n)},dataType:"jsonp",jsonp:"jsonp"})},_setBingBackgroundForSeries:function(t,i){var r,u=new n.ig.BingMapsMapImagery,f=i.resourceSets[0].resources[0],e=this.widget.options.backgroundContent.cultureName||"en-US";for(u.tilePath(f.imageUrl),u.cultureName(e),r=0;r<f.imageUrlSubdomains.length;r++)u.subDomains().add(f.imageUrlSubdomains[r]);t.tileImagery(u)},_setBingBackground:function(t){var i,r=new n.ig.BingMapsMapImagery,u,f=this.widget.options.backgroundContent.cultureName||"en-US";if(t&&t.resourceSets&&!(t.resourceSets.length<1)&&t.resourceSets[0].resources&&!(t.resourceSets[0].resources.length<1)){for(u=t.resourceSets[0].resources[0],r.tilePath(u.imageUrl),r.cultureName(f),i=0;i<u.imageUrlSubdomains.length;i++)r.subDomains().add(u.imageUrlSubdomains[i]);this.widget._chart.backgroundContent(r);this._initMap()}},_setBackgroundOptions:function(t,i){var r=this;return n.each(i,function(n,i){r._backgroundContextSetOption(t,n,i)}),t},_backgroundContextSetOption:function(n,t,i){switch(t){case"key":n.key(i);break;case"parameter":n.parameter(i);break;case"opacity":n.parameter(i)}},_setDataTemplate:function(t,i,r){var u=new n.ig.DataTemplate,f=!1;if(!r){t[i]&&t[i](null);return}r.requireThis&&(f=!0);r.render?f?u.render(n.proxy(r.render,r)):u.render(r.render):u.render(r);r.measure&&(f?u.measure(n.proxy(r.measure,r)):u.measure(r.measure));r.passStarting&&(f?u.passStarting(n.proxy(r.passStarting,r)):u.passStarting(r.passStarting));r.passCompleted&&(f?u.passCompleted(n.proxy(r.passCompleted,r)):u.passCompleted(r.passCompleted));t[i]&&t[i](u)},_seriesSetOption:function(t,i,r){var u,f;switch(i){case"legendItemVisibility":switch(r){case"visible":t.legendItemVisibility(0);break;case"collapsed":t.legendItemVisibility(1)}return!0;case"legendItemBadgeTemplate":case"legendItemTemplate":case"discreteLegendItemTemplate":case"markerTemplate":return this._setDataTemplate(t,i,r),!0;case"transitionDuration":return t.transitionDuration(r),!0;case"transitionEasingFunction":return t.transitionEasingFunction(n.ig.util.getEasingFunction(r)),!0;case"transitionInEasingFunction":return t.transitionInEasingFunction(n.ig.util.getEasingFunction(r)),!0;case"resolution":return t.resolution(r),!0;case"title":return t.title(r),!0;case"brush":return r===null?t.brush(null):t.brush(this._createBrushFromValue(r)),!0;case"outline":return r===null?t.outline(null):t.outline(this._createBrushFromValue(r)),!0;case"thickness":return t.thickness(r),!0;case"isDropShadowEnabled":return t.isDropShadowEnabled(r),!0;case"useSingleShadow":return t.useSingleShadow(r),!0;case"shadowColor":return r===null?t.shadowColor(null):(u=new n.ig.Color,u.colorString(r),t.shadowColor(u)),!0;case"shadowBlur":return t.shadowBlur(r),!0;case"shadowOffsetX":return t.shadowOffsetX(r),!0;case"shadowOffsetY":return t.shadowOffsetY(r),!0;case"markerType":switch(r){case"unset":t.markerType(0);break;case"none":t.markerType(1);break;case"automatic":t.markerType(2);break;case"circle":t.markerType(3);break;case"triangle":t.markerType(4);break;case"pyramid":t.markerType(5);break;case"square":t.markerType(6);break;case"diamond":t.markerType(7);break;case"pentagon":t.markerType(8);break;case"hexagon":t.markerType(9);break;case"tetragram":t.markerType(10);break;case"pentagram":t.markerType(11);break;case"hexagram":t.markerType(12)}return!0;case"shapeMemberPath":return t.shapeMemberPath(r),!0;case"shapeStyleSelector":return t.shapeStyleSelector(r),!0;case"shapeStyle":return t.shapeStyle(r),!0;case"markerBrush":return r===null?t.markerBrush(null):t.markerBrush(this._createBrushFromValue(r)),!0;case"markerOutline":return r===null?t.markerOutline(null):t.markerOutline(this._createBrushFromValue(r)),!0;case"markerCollisionAvoidance":switch(r){case"none":t.markerCollisionAvoidance(0);break;case"omit":t.markerCollisionAvoidance(1);break;case"fade":t.markerCollisionAvoidance(2);break;case"omitAndShift":t.markerCollisionAvoidance(3);break;case"fadeAndShift":t.markerCollisionAvoidance(4)}return!0;case"xAxis":return t.xAxis(this._getAxisByName(r)),!0;case"yAxis":return t.yAxis(this._getAxisByName(r)),!0;case"xMemberPath":return t.xMemberPath(r),!0;case"yMemberPath":return t.yMemberPath(r),!0;case"trendLineType":switch(r){case"none":t.trendLineType(0);break;case"linearFit":t.trendLineType(1);break;case"quadraticFit":t.trendLineType(2);break;case"cubicFit":t.trendLineType(3);break;case"quarticFit":t.trendLineType(4);break;case"quinticFit":t.trendLineType(5);break;case"logarithmicFit":t.trendLineType(6);break;case"exponentialFit":t.trendLineType(7);break;case"powerLawFit":t.trendLineType(8);break;case"simpleAverage":t.trendLineType(9);break;case"exponentialAverage":t.trendLineType(10);break;case"modifiedAverage":t.trendLineType(11);break;case"cumulativeAverage":t.trendLineType(12);break;case"weightedAverage":t.trendLineType(13)}return!0;case"trendLineBrush":return r===null?t.trendLineBrush(null):t.trendLineBrush(this._createBrushFromValue(r)),!0;case"trendLineThickness":return t.trendLineThickness(r),!0;case"trendLinePeriod":return t.trendLinePeriod(r),!0;case"trendLineZIndex":return t.trendLineZIndex(r),!0;case"isTransitionInEnabled":return t.isTransitionInEnabled(r),!0;case"transitionInSpeedType":switch(r){case"auto":t.transitionInSpeedType(0);break;case"normal":t.transitionInSpeedType(1);break;case"valueScaled":t.transitionInSpeedType(2);break;case"indexScaled":t.transitionInSpeedType(3);break;case"random":t.transitionInSpeedType(4)}return!0;case"transitionInMode":switch(r){case"auto":t.transitionInMode(0);break;case"fromZero":t.transitionInMode(1);break;case"sweepFromLeft":t.transitionInMode(2);break;case"sweepFromRight":t.transitionInMode(3);break;case"sweepFromTop":t.transitionInMode(4);break;case"sweepFromBottom":t.transitionInMode(5);break;case"sweepFromCenter":t.transitionInMode(6);break;case"accordionFromLeft":t.transitionInMode(7);break;case"accordionFromRight":t.transitionInMode(8);break;case"accordionFromTop":t.transitionInMode(9);break;case"accordionFromBottom":t.transitionInMode(10);break;case"expand":t.transitionInMode(11);break;case"sweepFromCategoryAxisMinimum":t.transitionInMode(12);break;case"sweepFromCategoryAxisMaximum":t.transitionInMode(13);break;case"sweepFromValueAxisMinimum":t.transitionInMode(14);break;case"sweepFromValueAxisMaximum":t.transitionInMode(15);break;case"accordionFromCategoryAxisMinimum":t.transitionInMode(16);break;case"accordionFromCategoryAxisMaximum":t.transitionInMode(17);break;case"accordionFromValueAxisMinimum":t.transitionInMode(18);break;case"accordionFromValueAxisMaximum":t.transitionInMode(19)}return!0;case"transitionInDuration":return t.transitionInDuration(r),!0;case"maximumMarkers":return t.maximumMarkers(r),!0;case"radiusMemberPath":return t.radiusMemberPath(r),!0;case"radiusScale":return t.radiusScale(this._getSizeScale(r)),!0;case"labelMemberPath":return t.labelMemberPath(r),!0;case"fillMemberPath":return t.fillMemberPath(r),!0;case"fillScale":return t.fillScale(this._getBrushScale(r)),!0;case"angleAxis":return t.angleAxis(this._getAxisByName(r)),!0;case"valueAxis":return t.valueAxis(this._getAxisByName(r)),!0;case"clipSeriesToBounds":return t.clipSeriesToBounds(r),!0;case"valueMemberPath":return t.valueMemberPath(r),!0;case"unknownValuePlotting":switch(r){case"linearInterpolate":t.unknownValuePlotting(0);break;case"dontPlot":t.unknownValuePlotting(1)}return!0;case"radiusX":return t.radiusX(r),!0;case"radiusY":return t.radiusY(r),!0;case"radius":return t.radiusX(r),t.radiusY(r),!0;case"angleMemberPath":return t.angleMemberPath(r),!0;case"radiusAxis":return t.radiusAxis(this._getAxisByName(r)),!0;case"useCartesianInterpolation":return t.useCartesianInterpolation(r),!0;case"negativeBrush":return r===null?t.negativeBrush(null):t.negativeBrush(this._createBrushFromValue(r)),!0;case"splineType":switch(r){case"natural":t.splineType(0);break;case"clamped":t.splineType(1)}return!0;case"lowMemberPath":return t.lowMemberPath(r),!0;case"highMemberPath":return t.highMemberPath(r),!0;case"openMemberPath":return t.openMemberPath(r),!0;case"closeMemberPath":return t.closeMemberPath(r),!0;case"volumeMemberPath":return t.volumeMemberPath(r),!0;case"ignoreFirst":return t.ignoreFirst(r),!0;case"period":return t.period(r),!0;case"shortPeriod":return t.shortPeriod(r),!0;case"longPeriod":return t.longPeriod(r),!0;case"trianglesSource":return t.trianglesSource(r),!0;case"triangleVertexMemberPath1":return t.triangleVertexMemberPath1(r),!0;case"triangleVertexMemberPath2":return t.triangleVertexMemberPath2(r),!0;case"triangleVertexMemberPath3":return t.triangleVertexMemberPath3(r),!0;case"colorScale":return t.colorScale(this._getColorScale(r)),!0;case"colorMemberPath":return t.colorMemberPath(r),!0;case"visibleFromScale":return t.visibleFromScale(r),!0;case"longitudeMemberPath":return t.longitudeMemberPath(r),!0;case"latitudeMemberPath":return t.latitudeMemberPath(r),!0;case"valueResolver":return t.valueResolver(this._getValueResolver(r)),!0;case"shapeFilterResolution":return t.shapeFilterResolution(r),!0;case"useBruteForce":return t.useBruteForce(r),!0;case"progressiveLoad":return t.progressiveLoad(r),!0;case"heatMinimumColor":return r===null?t.heatMinimumColor(null):(u=new n.ig.Color,u.colorString(r),t.heatMinimumColor(u)),!0;case"heatMaximumColor":return r===null?t.heatMaximumColor(null):(u=new n.ig.Color,u.colorString(r),t.heatMaximumColor(u)),!0;case"mouseOverEnabled":return t.mouseOverEnabled(r),!0;case"pointExtent":return t.pointExtent(r),!0;case"heatMinimum":return t.heatMinimum(r),!0;case"heatMaximum":return t.heatMaximum(r),!0;case"multiplier":return t.multiplier(r),!0;case"smoothingPeriod":return t.smoothingPeriod(r),!0;case"triggerPeriod":return t.triggerPeriod(r),!0;case"signalPeriod":return t.signalPeriod(r),!0;case"useHighMarkerFidelity":return t.useHighMarkerFidelity(r),!0;case"series":return this._setSubSeries(t,r),!0;case"opacity":return f=t.opacity(),t.opacity(r),t.raisePropertyChanged&&t.raisePropertyChanged("Opacity",f,r),t.renderSeries&&t.renderSeries(!1),!0;case"areaFillOpacity":return t.areaFillOpacity(r),!0;case"expectFunctions":return t.expectFunctions(r),!0;case"useInterpolation":return t.useInterpolation(r),!0;case"skipUnknownValues":return t.skipUnknownValues(r),!0;case"verticalLineVisibility":switch(r){case"visible":t.verticalLineVisibility(0);break;case"collapsed":t.verticalLineVisibility(1)}return!0;case"horizontalLineVisibility":switch(r){case"visible":t.horizontalLineVisibility(0);break;case"collapsed":t.horizontalLineVisibility(1)}return!0;case"targetSeries":return r===undefined||r===null||this._getNotifyTarget(r)===null?t.targetSeries(null):t.targetSeries(this._getNotifyTarget(r)),!0;case"targetAxis":return r===undefined||r===null||this._getNotifyTarget(r)===null?t.targetAxis(null):t.targetAxis(this._getNotifyTarget(r)),!0;case"cursorPosition":return t.cursorPosition(new n.ig.Point(1,r.x,r.y)),!0;case"bandHighlightWidth":return t.bandHighlightWidth(r),!0;case"toolTipPosition":switch(r){case"auto":t.toolTipPosition(0);break;case"outsideStart":t.toolTipPosition(1);break;case"insideStart":t.toolTipPosition(2);break;case"insideEnd":t.toolTipPosition(3);break;case"outsideEnd":t.toolTipPosition(4)}return!0;case"highlightType":switch(r){case"auto":t.highlightType(0);break;case"marker":t.highlightType(1);break;case"shape":t.highlightType(2)}return!0;case"useIndex":return t.useIndex(r),!0;case"useLegend":return t.useLegend(r),!0;case"isCustomCategoryStyleAllowed":return t.isCustomCategoryStyleAllowed(r),!0;case"isCustomCategoryMarkerStyleAllowed":return t.isCustomCategoryMarkerStyleAllowed(r),!0;case"isHighlightingEnabled":return t.isHighlightingEnabled(r),!0}return!1},_getSubSeriesByName:function(n,t){var i=null,u,r;if(n===null)for(u in this.widget._seriesSub)if(n=this._getSeriesByName(u),n!==null&&(i=this._getSubSeriesByName(n,t),i!==null))return i;return n?(r=n.name(),this.widget._seriesSub[r][t]===undefined)?null:this.widget._seriesSub[r][t]:null},_setSubSeries:function(t,i){for(var e=this,u=null,r=this.widget,h=!1,l,f=t.name(),a,c,o=-1,s=0;s<r.options.series.length;s++)if(c=r.options.series[s],c&&c.name===f){o=s;break}n.each(i,function(i,s){if(!s.name)throw new Error(n.ig.Chart.locale.seriesName);if(e._getSeriesByName(s.name))throw new Error(n.ig.Chart.locale.nameInUse);if(u=e._getSubSeriesByName(t,s.name),u&&s.remove){if(r._seriesSub[f]&&delete r._seriesSub[f][s.name],r._seriesSubOpt[f]&&(l=r._seriesSubOpt[f][s.name],delete r._seriesSubOpt[f][s.name]),o!==-1){var c=r.options.series[o].series.indexOf(l);r.options.series[o].series.splice(c,1)}t.series().remove(u);e._clearAxes(u);return}u||s.remove||(u=e._createSeriesFromType(s.type),e._bindSeriesEvents(u),u.name(s.name),h=!0);u&&(a=r._seriesSubOpt[f][s.name],h&&(r._seriesSub[f][s.name]=u,o!==-1&&e._setForName(r.options.series,s),r._seriesSubOpt[f][s.name]=s),s.coercionMethods&&u.coercionMethods(s.coercionMethods),r.options.expectFunctions!==undefined&&r.options.expectFunctions&&u.expectFunctions(r.options.expectFunctions),s.expectFunctions!==undefined&&u.expectFunctions(s.expectFunctions),e._setSubSeriesOptions(s,t,u,r),h&&t.series().add(u))})},_getValueResolver:function(t){var i;return(t.type===undefined||t.type==="linear")&&(i=new n.ig.LinearContourValueResolver),t.valueCount&&i.valueCount(t.valueCount),i},_getSizeScale:function(t){var i=new n.ig.SizeScale;return t.minimumValue&&i.minimumValue(t.minimumValue),t.maximumValue&&i.maximumValue(t.maximumValue),t.isLogarithmic&&i.isLogarithmic(t.isLogarithmic),t.logarithmBase&&i.logarithmBase(t.logarithmBase),i},_getColorScale:function(t){var r="customPalette",i=null;t.type&&(r=t.type);switch(r){case"customPalette":i=new n.ig.CustomPaletteColorScale}if(i){if(t.minimumValue&&i.minimumValue(t.minimumValue),t.maximumValue&&i.maximumValue(t.maximumValue),t.interpolationMode)switch(t.interpolationMode){case"select":i.interpolationMode(0);break;case"interpolateRGB":i.interpolationMode(1);break;case"interpolateHSV":i.interpolationMode(2)}t.palette&&i.providePalette(t.palette)}return i},_getBrushScale:function(t){var e="value",i=null,o,u,r,f;t.type&&(e=t.type);switch(e){case"value":i=new n.ig.ValueBrushScale;break;case"customPalette":i=new n.ig.CustomPaletteBrushScale}if(i){if(t.brushes){for(o=!0,r=t.brushes,(typeof r[0]=="string"&&r[0]==="HSV"||r[0]==="RGB")&&(r[0]==="HSV"&&(o=!1),r=r.slice(1)),f=new n.ig.BrushCollection,u=0;u<r.length;u++)f.add(this._createBrushFromValue(r[u]));i.brushes(f)}if(t.brushSelectionMode)switch(t.brushSelectionMode){case"select":i.brushSelectionMode(0);break;case"interpolate":i.brushSelectionMode(1)}t.minimumValue&&i.minimumValue(t.minimumValue);t.maximumValue&&i.maximumValue(t.maximumValue);t.isLogarithmic&&i.isLogarithmic(t.isLogarithmic);t.logarithmBase&&i.logarithmBase(t.logarithmBase)}return i},_setAxisOption:function(n,t,i){switch(t){case"strokeThickness":case"majorStrokeThickness":case"minorStrokeThickness":case"isInverted":case"crossingValue":case"label":case"gap":case"overlap":case"interval":case"startAngleOffset":case"minimumValue":case"maximumValue":case"referenceValue":case"isLogarithmic":case"logarithmBase":case"radiusExtentScale":case"innerRadiusExtentScale":case"dateTimeMemberPath":case"formatLabel":case"title":case"useClusteringMode":return n[t]&&n[t](i),!0;case"stroke":return n.stroke(this._createBrushFromValue(i)),!0;case"strip":return n.strip(this._createBrushFromValue(i)),!0;case"majorStroke":return n.majorStroke(this._createBrushFromValue(i)),!0;case"minorStroke":return n.minorStroke(this._createBrushFromValue(i)),!0;case"scaleMode":switch(i){case"linear":n.scaleMode(0);break;case"logarithmic":n.scaleMode(1)}return!0;case"expectFunctions":return n.expectFunctions(i),!0}},_setCoreAxisOption:function(t,i,r){var u=null,f=null,e,o=this;switch(i){case"crossingAxis":r?(e=this._getAxisByName(r),e?t.crossingAxis(e):this.widget._pendingCrossingAxes.push(function(){var n=o._getAxisByName(r);n&&t.crossingAxis(n)})):t.crossingAxis(null);break;case"labelLocation":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);switch(r){case"outsideTop":u.location(0);break;case"outsideBottom":u.location(1);break;case"outsideLeft":u.location(2);break;case"outsideRight":u.location(3);break;case"insideTop":u.location(4);break;case"insideBottom":u.location(5);break;case"insideLeft":u.location(6);break;case"insideRight":u.location(7)}t.labelSettings()||t.labelSettings(u);break;case"labelVisibility":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);switch(r){case"visible":u.visibility(0);break;case"collapsed":u.visibility(1)}t.labelSettings()||t.labelSettings(u);break;case"labelExtent":r===null&&(r=NaN);u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.extent(r);t.labelSettings()||t.labelSettings(u);break;case"labelHorizontalAlignment":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);switch(r){case"left":u.horizontalAlignment(0);break;case"center":u.horizontalAlignment(1);break;case"right":u.horizontalAlignment(2);break;case"stretch":u.horizontalAlignment(1)}t.labelSettings()||t.labelSettings(u);break;case"labelVerticalAlignment":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);switch(r){case"top":u.verticalAlignment(0);break;case"center":u.verticalAlignment(1);break;case"bottom":u.verticalAlignment(2);break;case"stretch":u.verticalAlignment(1)}t.labelSettings()||t.labelSettings(u);break;case"labelMargin":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.margin(r);t.labelSettings()||t.labelSettings(u);break;case"labelTopMargin":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.topMargin(r);t.labelSettings()||t.labelSettings(u);break;case"labelRightMargin":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.rightMargin(r);t.labelSettings()||t.labelSettings(u);break;case"labelBottomMargin":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.bottomMargin(r);t.labelSettings()||t.labelSettings(u);break;case"labelLeftMargin":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.leftMargin(r);t.labelSettings()||t.labelSettings(u);break;case"showFirstLabel":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.showFirstLabel(r);t.labelSettings()||t.labelSettings(u);break;case"labelAngle":r===null&&(r=0);u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.angle(r);t.labelSettings()||t.labelSettings(u);break;case"labelTextStyle":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.textStyle(r);t.labelSettings()||t.labelSettings(u);break;case"labelTextColor":u=t.labelSettings();u===null&&(u=new n.ig.AxisLabelSettings);u.textColor(this._createBrushFromValue(r));t.labelSettings()||t.labelSettings(u);break;case"titleAngle":r===null&&(r=0);f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);f.angle(r);t.titleSettings()||t.titleSettings(f);break;case"titleTextStyle":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);f.textStyle(r);t.titleSettings()||t.titleSettings(f);break;case"titleMargin":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);f.margin(r);t.titleSettings()||t.titleSettings(f);break;case"titleTopMargin":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);f.topMargin(r);t.titleSettings()||t.titleSettings(f);break;case"titleRightMargin":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);f.rightMargin(r);t.titleSettings()||t.titleSettings(f);break;case"titleBottomMargin":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);f.bottomMargin(r);t.titleSettings()||t.titleSettings(f);break;case"titleLeftMargin":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);f.leftMargin(r);t.titleSettings()||t.titleSettings(f);break;case"titleTextColor":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);f.textColor(this._createBrushFromValue(r));t.titleSettings()||t.titleSettings(f);break;case"titleVerticalAlignment":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);switch(r){case"top":f.verticalAlignment(0);break;case"center":f.verticalAlignment(1);break;case"bottom":f.verticalAlignment(2)}t.titleSettings()||t.titleSettings(f);break;case"titleHorizontalAlignment":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);switch(r){case"left":f.horizontalAlignment(0);break;case"center":f.horizontalAlignment(1);break;case"right":f.horizontalAlignment(2)}t.titleSettings()||t.titleSettings(f);break;case"titlePosition":f=t.titleSettings();f===null&&(f=new n.ig.TitleSettings);switch(r){case"auto":f.position(0);break;case"left":f.position(1);break;case"right":f.position(2);break;case"top":f.position(3);break;case"bottom":f.position(4)}t.titleSettings()||t.titleSettings(f);break;case"tickLength":t.tickLength(r);break;case"tickStrokeThickness":t.tickStrokeThickness(r);break;case"tickStroke":t.tickStroke(this._createBrushFromValue(r));break;case"displayType":switch(r){case"continuous":t.displayType(0);break;case"discrete":t.displayType(1)}}},_setOption:function(n,t){if(n==="dataSource"||n==="dataSourceUrl"||t&&t[0]&&(t[0].dataSource!==undefined||t[0].dataSourceUrl!==undefined)){var r={},i;n==="dataSource"||n==="dataSourceUrl"?(r.dataSource=t,i=this.widget._containerSourceID):(r=t[0],i=t[0].name,this.widget._target&&this.widget._target.name()===i&&(this.widget._target=null));this.widget._setCoreCallbackOptions={key:n,value:t};this._setupDataSource(r,this._chartDataCallBack);(i===undefined||i===null)&&(i=this.widget._containerSourceID);this.widget.dataSources[i].dataBind()}else t&&t[0]&&(t[0].shapeDataSource!==undefined||t[0].triangulatedDataSource!==undefined)?(this.widget._initConverter(t[0],this._convDataCallback),this.widget._setCoreCallbackOptions={key:n,value:t}):this._setOptionAfterInit(n,t)},_chartDataCallBack:function(n,t,i){var r=this.widget._setCoreCallbackOptions.key,u=this.widget._setCoreCallbackOptions.value;if(!n)return!1;this._setItemsSource(this.widget,this._getNotifyTarget(i.settings.id),i.settings.id);(r==="series"||r==="axes")&&this._setOptionAfterInit(r,u)},_convDataCallback:function(){var n=this.settings.callee,t=this.settings.id,i=n.widget._setCoreCallbackOptions.key,r=n.widget._setCoreCallbackOptions.value;n._setItemsSource(n.widget,n._getNotifyTarget(t),t);i==="series"&&n._setOptionAfterInit(i,r)},_setOptionAfterInit:function(n,t){this._setWidgetOption(this.widget._chart,n,t)?this.widget.options[n]=t:this._setCoreWidgetOption(this.widget._chart,n,t)},_setItemsSource:function(n,t,i){var r=n.dataSources[i];t===n._chart?r!==null?n._chart.setWidgetLevelDataSource(r):n._chart.removeWidgetLevelDataSource():r!==null?n._chart.setSpecificDataSource(i,r):n._chart.removeSpecificDataSource(i,!1)},_initialDataBind:function(){var i=this._initDataSources(),t=this;n.each(i,function(n){typeof t.widget.dataSources[n].dataBind=="function"&&t.widget.dataSources[n].dataBind()})},_initDataSources:function(){var i=this,r=this.widget,t=this.widget.options,u,f;return r.dataSources={},r.dsCount=0,(t.dataSource||t.dataSourceUrl)&&(r.dsCount++,i._setupDataSource(t,this._initCallback)),(t.shapeDataSource||t.triangulationDataSource)&&(r.dsCount++,i.widget._initConverter(t,i._converterCallback)),t.axes&&(u=t.axes,n.each(u,function(n,t){(t.dataSource||t.dataSourceUrl)&&(r.dsCount++,i._setupDataSource(t,i._initCallback))})),t.series&&(f=t.series,n.each(f,function(n,t){(t.dataSource||t.dataSourceUrl)&&(r.dsCount++,i._setupDataSource(t,i._initCallback));(t.shapeDataSource||t.triangulationDataSource)&&(r.dsCount++,i.widget._initConverter(t,i._converterCallback))})),r.dataSources},_drawCanvas:function(t,i,r){var u=document.createElement("canvas"),f;return u.width=i,u.height=r,u.style.width=i+"px",u.style.height=r+"px",f=u.getContext("2d"),n.each(t,function(n,t){f.drawImage(t,0,0,i,r)}),u},_getLegendElements:function(){var i=this.widget.options,t=[];return this.widget.options.legend&&t.push(n("#"+this.widget.options.legend.element)),i.series&&n.each(i.series,function(i,r){r&&r.legend&&t.push(n("#"+r.legend.element))}),t},_print:function(){var s=document,i=this.widget,f=this._getLegendElements(),r=n("#"+this.widget.id()),e=[],t=[],u=s.body,o=u.childNodes;i._isPrinting||(i._isPrinting=!0,n.each(o,function(n,t){t.nodeType===1&&(e[n]=t.style.display,t.style.display="none")}),t[0]=r.parent(),n(u).append(r),n.each(f,function(i,r){t[i+1]=r.parent();n(u).append(r)}),window.print(),setTimeout(function(){i._isPrinting=!1;t[0].prepend(r);n.each(f,function(n,i){t[n+1].prepend(i)});n.each(o,function(n,t){t.nodeType===1&&(t.style.display=e[n])})},1e3))},_getImage:function(t,i,r){var u,f=document.createElement("img");return t=t||n("#"+r.id()+"_chart_container").width(),i=i||n("#"+r.id()+"_chart_container").height(),u=this._drawCanvas(n("#"+r.id()+" canvas"),t,i),f.src=u.toDataURL("image/png"),f},_initSize:function(n,t){var i,r,u,e=-1,o=n._chart,f=n.element[0];for(this._oldProp={width:f.style.width,height:f.style.height};e++<1;)r=e===0?"width":"height",t[r]?u=r:(i=f.style[r],(!i||i&&i.indexOf("%")>0)&&this._setSize(o,u=r,i||500));u||this._setSize(o,"width")},_setSize:function(t,i,r){n.ig.util.setSize(this.widget.element,i,r,t,"notifyContainerResized")},_renderChartContainer:function(t){var r=t.options,i;t._isRendered||(i=n("<div id='"+t.id()+"_chart_container' style='width:100%;height:100%'><\/div>").appendTo(t.element),i.addClass(t.css.chart||t.css.map),this._chartElement=i,t._chart.provideContainer(i),this._initSize(t,r))},_setLegend:function(t,i){var r;i!==null?(i.owner=this.widget,i.type===undefined&&(i.type=this.widget.widgetName==="igPieChart"?"item":"legend"),t.legend()===null?(n("#"+i.element).data("igChartLegend")||i.data&&i.data("igChartLegend")?(r=i.element?n("#"+i.element).data("igChartLegend"):i.data("igChartLegend"),r.options.owner=this.widget.options,r._owner=this.widget):r=n("#"+i.element).igChartLegend(i).data("igChartLegend"),t.legend(r.legend)):n("#"+t.legend().name()).igChartLegend(i)):t.legend()!==null&&n("#"+t.legend().name()).length>0&&n("#"+t.legend().name()).igChartLegend("destroy")},_mergeDataSourceSettings:function(t,i){if(!t)return i;if(!i)return t;var u=t.dataSource,r=i.dataSource,f;return u&&(n.type(u)==="array"||n.type(u)==="object")&&(t.dataSource=null),r&&(n.type(r)==="array"||n.type(r)==="object")&&(i.dataSource=null),f=n.extend(!0,{},t,i),r&&(n.type(r)==="array"||n.type(r)==="object")?(i.dataSource=r,f.dataSource=r):u&&(n.type(u)==="array"||n.type(u)==="object")&&(t.dataSource=u),r===null&&(f.dataSource=null),f},_mergeIntoWithDataSource:function(t,i){var u,r,f,e=null,o=null;t.dataSource&&(u=t.dataSource);i.dataSource&&(r=i.dataSource);f=!1;i.dataSource===null&&(f=!0);t.dataSource=null;i.dataSource=null;n.extend(!0,t,i);u&&(t.dataSource=u);r&&(i.dataSource=r,t.dataSource=r);t.dataSource&&(t.dataSource&&t.dataSource.settings&&(e=t.dataSource.settings),i.dataSource&&i.dataSource.settings&&(o=i.dataSource.settings),t.dataSource.settings=this._mergeDataSourceSettings(e,o))},_mergeIntoNewWithDataSource:function(t,i){var u,f,e,r,o=null,s=null;return t.dataSource&&(u=t.dataSource),i.dataSource&&(f=i.dataSource),e=!1,i.dataSource===null&&(e=!0),t.dataSource=null,i.dataSource=null,r=n.extend(!0,{},t,i),u&&(t.dataSource=u,r.dataSource=u),f&&(i.dataSource=f,r.dataSource=f),r.dataSource&&(t.dataSource&&t.dataSource.settings&&(o=t.dataSource.settings),i.dataSource&&i.dataSource.settings&&(s=i.dataSource.settings),r.dataSource.settings=this._mergeDataSourceSettings(o,s)),r},_addTooltip:function(t,i,r){typeof t._chart.toolTip=="function"?(t._tooltip[t.id()]===undefined&&(t._tooltip[t.id()]=n('<div id="'+t.id()+'_tooltip" class="'+r+'"><\/div>')),this._bindTooltipEvents(t,t._tooltip[t.id()]),t._chart.toolTip(t._tooltip[t.id()])):(t._tooltip[i.name()]===undefined&&(t._tooltip[i.name()]=n('<div id="'+i.name()+'_tooltip" class="'+r+'"><\/div>')),this._bindTooltipEvents(t,t._tooltip[i.name()]),i.toolTip(t._tooltip[i.name()]))},_removeTooltip:function(n,t){typeof n._chart.toolTip=="function"?n._tooltip[n.id()]!==undefined&&(this._removeTooltipEvents(n,n._tooltip[n.id()]),delete n._tooltip[n.id()],n._chart.toolTip(null)):n._tooltip[t.name()]!==undefined&&(this._removeTooltipEvents(n,n._tooltip[t.name()]),delete n._tooltip[t.name()],t.toolTip(null))},_bindTooltipEvents:function(t,i){i.updateToolTip=n.ig.Delegate.prototype.combine(i.updateToolTip,jQuery.proxy(this._fireToolTip_updateToolTip,this));i.hideToolTip=n.ig.Delegate.prototype.combine(i.hideToolTip,jQuery.proxy(this._fireToolTip_hideToolTip,this))},_removeTooltipEvents:function(n,t){delete t.updateToolTip;delete t.hideToolTip},_bindMapEvents:function(t){t.seriesCursorMouseMove=n.ig.Delegate.prototype.combine(t.seriesCursorMouseMove,jQuery.proxy(this._fireChart_seriesCursorMouseMove,this));t.seriesMouseLeftButtonDown=n.ig.Delegate.prototype.combine(t.seriesMouseLeftButtonDown,jQuery.proxy(this._fireChart_seriesMouseLeftButtonDown,this));t.seriesMouseLeftButtonUp=n.ig.Delegate.prototype.combine(t.seriesMouseLeftButtonUp,jQuery.proxy(this._fireChart_seriesMouseLeftButtonUp,this));t.seriesMouseMove=n.ig.Delegate.prototype.combine(t.seriesMouseMove,jQuery.proxy(this._fireChart_seriesMouseMove,this));t.seriesMouseEnter=n.ig.Delegate.prototype.combine(t.seriesMouseEnter,jQuery.proxy(this._fireChart_seriesMouseEnter,this));t.seriesMouseLeave=n.ig.Delegate.prototype.combine(t.seriesMouseLeave,jQuery.proxy(this._fireChart_seriesMouseLeave,this));t.windowRectChanged=n.ig.Delegate.prototype.combine(t.windowRectChanged,jQuery.proxy(this._fireChart_windowRectChanged,this));t.actualWindowRectChanged=n.ig.Delegate.prototype.combine(t.actualWindowRectChanged,jQuery.proxy(this._fireChart_actualWindowRectChanged,this));t.gridAreaRectChanged=n.ig.Delegate.prototype.combine(t.gridAreaRectChanged,jQuery.proxy(this._fireChart_gridAreaRectChanged,this));t.refreshCompleted=n.ig.Delegate.prototype.combine(t.refreshCompleted,jQuery.proxy(this._fireChart_refreshCompleted,this));t.imageTilesReady=n.ig.Delegate.prototype.combine(t.imageTilesReady,jQuery.proxy(this._fireChart_imageTilesReady,this));t.notifyCrosshairUpdate=n.ig.Delegate.prototype.combine(t.notifyCrosshairUpdate,jQuery.proxy(this._notifyCrosshairUpdate,this))},_bindSeriesEvents:function(t){t.basedOnColumns!==undefined&&t.basedOnColumns(n.ig.Delegate.prototype.combine(t.basedOnColumns(),jQuery.proxy(this._fireChart_basedOnColumns,this)));t.indicator!==undefined&&t.indicator(n.ig.Delegate.prototype.combine(t.indicator(),jQuery.proxy(this._fireChart_indicator,this)));t.typical!==undefined&&(t.typical=n.ig.Delegate.prototype.combine(t.typical,jQuery.proxy(this._fireChart_typical,this)));t.typicalBasedOn!==undefined&&(t.typicalBasedOn=n.ig.Delegate.prototype.combine(t.typicalBasedOn,jQuery.proxy(this._fireChart_typicalBasedOn,this)));t.triangulationStatusChanged!==undefined&&(t.triangulationStatusChanged=n.ig.Delegate.prototype.combine(t.triangulationStatusChanged,jQuery.proxy(this._fireMap_triangulationStatusChanged,this)));t.progressiveLoadStatusChanged!==undefined&&(t.progressiveLoadStatusChanged=n.ig.Delegate.prototype.combine(t.progressiveLoadStatusChanged,jQuery.proxy(this._fireChart_progressiveLoadStatusChanged,this)));t.assigningCategoryStyle!==undefined&&(t.assigningCategoryStyle=n.ig.Delegate.prototype.combine(t.assigningCategoryStyle,jQuery.proxy(this._fireChart_assigningCategoryStyle,this)));t.assigningCategoryMarkerStyle!==undefined&&(t.assigningCategoryMarkerStyle=n.ig.Delegate.prototype.combine(t.assigningCategoryMarkerStyle,jQuery.proxy(this._fireChart_assigningCategoryMarkerStyle,this)))},_getWidgetName:function(){switch(this.widget.widgetName){case"igPieChart":case"igDataChart":return"chart";case"igMap":return"map"}},_fireChart_progressiveLoadStatusChanged:function(n,t){var i={},u=this._getWidgetName(),r=this.widget._seriesOpt[n.name()];i.currentStatus=t.currentStatus();i[u]=this.widget.options;i.series=r;r.progressiveStatus=i.currentStatus;this.widget._trigger("progressiveLoadStatusChanged",null,i)},_fireChart_scatterMouseOver:function(n,t){var i={},r=this._getWidgetName();i[r]=this.widget.options;i.args=t;i.series=n;this.widget._trigger("scatterMouseOver",null,i)},_fireChart_typicalBasedOn:function(n,t){var i={},u=this._getWidgetName(),f=this.widget._seriesOpt[n.name()],r,e=this.widget._series[n.name()],o=this;if(i[u]=this.widget.options,i.series=f,i.position=t.position(),i.count=t.count(),i.getDataSource=function(){return o._flattenDataSource(e,t.dataSource())},i.basedOn=[],i.minimumValue=t.dataSource().minimumValue(),i.maximumValue=t.dataSource().maximumValue(),this.widget._trigger("typicalBasedOn",null,i),i.basedOn!==null&&i.basedOn.length&&i.basedOn.length>0)for(r=0;r<i.basedOn.length;r++)t.basedOn().add(i.basedOn[r]);isNaN(i.minimum)||t.dataSource().minimumValue(i.minimumValue);isNaN(i.maximum)||t.dataSource().maximumValue(i.maximumValue)},_fireChart_basedOnColumns:function(n,t){var i={},u=this._getWidgetName(),f=this.widget._seriesOpt[n.name()],r,e=this.widget._series[n.name()],o=this;if(i[u]=this.widget.options,i.series=f,i.position=t.position(),i.count=t.count(),i.getDataSource=function(){return o._flattenDataSource(e,t.dataSource())},i.basedOn=[],i.minimumValue=t.dataSource().minimumValue(),i.maximumValue=t.dataSource().maximumValue(),this.widget._trigger("basedOn",null,i),i.basedOn!==null&&i.basedOn.length&&i.basedOn.length>0)for(r=0;r<i.basedOn.length;r++)t.basedOn().add(i.basedOn[r]);isNaN(i.minimum)||t.dataSource().minimumValue(i.minimumValue);isNaN(i.maximum)||t.dataSource().maximumValue(i.maximumValue)},_fireChart_indicator:function(n,t){var i={},r=this._getWidgetName(),u=this.widget._seriesOpt[n.name()],f=this.widget._series[n.name()],e=this;i[r]=this.widget.options;i.series=u;i.position=t.position();i.count=t.count();i.getDataSource=function(){return e._flattenDataSource(f,t.dataSource())};i.basedOn=t.basedOn();i.minimumValue=t.dataSource().minimumValue();i.maximumValue=t.dataSource().maximumValue();this.widget._trigger("indicator",null,i);isNaN(i.minimum)||t.dataSource().minimumValue(i.minimumValue);isNaN(i.maximum)||t.dataSource().maximumValue(i.maximumValue)},_fireChart_typical:function(t,i){var r={},e=this._getWidgetName(),o=this.widget._seriesOpt[t.name()],s=this.widget._series[t.name()],h=this,u,f;r[e]=this.widget.options;r.series=o;r.position=i.position();r.count=i.count();r.getDataSource=function(){return h._flattenDataSource(s,i.dataSource())};r.basedOn=i.basedOn();r.minimumValue=i.dataSource().minimumValue();r.maximumValue=i.dataSource().maximumValue();r.typicalColumn=[];f=i.dataSource().typicalColumn().basedOn();this.widget._trigger("typical",null,r);r.typicalColumn!==null&&r.typicalColumn.length>0?(u=new n.ig.List$1(Number,1,r.typicalColumn),i.dataSource().typicalColumn(new n.ig.CalculatedColumn(1,u,f))):i.dataSource().typicalColumn(null);isNaN(r.minimum)||i.dataSource().minimumValue(r.minimumValue);isNaN(r.maximum)||i.dataSource().maximumValue(r.maximumValue)},_flattenHighlightingInfo:function(n){var t=null;if(n===null)return t;t={};t.startIndex=n.startIndex();t.endIndex=n.endIndex();switch(n.state()){case 0:t.state="out";break;case 1:t.state="in";break;case 2:t.state="static"}return t.progress=n.progress(),t.isMarker=n.isMarker(),t},_fireChart_assigningCategoryMarkerStyle:function(t,i){var r={},e=this._getWidgetName(),o=this.widget._seriesOpt[t.name()],u,f;t.isCustomCategoryMarkerStyleAllowed&&(r[e]=this.widget.options,r.series=o,r.startIndex=i.startIndex(),r.endIndex=i.endIndex(),r.hasDateRange=i.hasDateRange(),r.hasDateRange&&(r.startDate=i.startDate(),r.endDate=i.endDate()),r.getItems=n.proxy(i.getItems(),t),r.fill=u=this._getValueFromBrush(i.fill()),r.stroke=f=this._getValueFromBrush(i.stroke()),r.opacity=i.opacity(),r.highlightingHandled=i.highlightingHandled(),r.maxAllSeriesHighlightingProgress=i.maxAllSeriesHighlightingProgress(),r.sumAllSeriesHighlightingProgress=i.sumAllSeriesHighlightingProgress(),r.highlightingInfo=this._flattenHighlightingInfo(i.highlightingInfo()),r.isNegativeShape=i.isNegativeShape(),r.isThumbnail=i.isThumbnail(),this.widget._trigger("assigningCategoryMarkerStyle",null,r),r.fill!=u&&i.fill(this._createBrushFromValue(r.fill)),r.stroke!=f&&i.stroke(this._createBrushFromValue(r.stroke)),i.opacity(r.opacity),i.highlightingHandled(r.highlightingHandled))},_fireChart_assigningCategoryStyle:function(t,i){var r={},c=this._getWidgetName(),l=this.widget._seriesOpt[t.name()],o,s,h,e,u,f;if(t.isCustomCategoryStyleAllowed){if(r[c]=this.widget.options,r.series=l,r.startIndex=i.startIndex(),r.endIndex=i.endIndex(),r.hasDateRange=i.hasDateRange(),r.hasDateRange&&(r.startDate=i.startDate(),r.endDate=i.endDate()),r.getItems=n.proxy(i.getItems(),t),r.fill=o=this._getValueFromBrush(i.fill()),r.stroke=s=this._getValueFromBrush(i.stroke()),r.strokeThickness=i.strokeThickness(),f=i.strokeDashArray(),f!==undefined&&f!==null&&(r.strokeDashArray=h=f.toArray()),r.strokeDashCap=i.strokeDashCap(),r.radiusX=i.radiusX(),r.radiusY=i.radiusY(),r.opacity=i.opacity(),r.highlightingHandled=i.highlightingHandled(),r.maxAllSeriesHighlightingProgress=i.maxAllSeriesHighlightingProgress(),r.sumAllSeriesHighlightingProgress=i.sumAllSeriesHighlightingProgress(),r.highlightingInfo=this._flattenHighlightingInfo(i.highlightingInfo()),r.isNegativeShape=i.isNegativeShape(),r.isThumbnail=i.isThumbnail(),this.widget._trigger("assigningCategoryStyle",null,r),r.fill!=o&&i.fill(this._createBrushFromValue(r.fill)),r.stroke!=s&&i.stroke(this._createBrushFromValue(r.stroke)),i.strokeThickness(r.strokeThickness),r.strokeDashArray!==h){for(e=new n.ig.DoubleCollection,u=0;u<r.strokeDashArray.length;u++)e.add(r.strokeDashArray[u]);i.strokeDashArray(e)}i.strokeDashCap(r.strokeDashCap);i.radiusX(r.radiusX);i.radiusY(r.radiusY);i.opacity(r.opacity);i.highlightingHandled(r.highlightingHandled)}},_flattenDataSource:function(n,t){var i={},r=n.getOpenColumnAsArray(),u=n.getHighColumnAsArray(),f=n.getLowColumnAsArray(),e=n.getCloseColumnAsArray(),o=n.getVolumeColumnAsArray();return i.indicatorColumn=t.indicatorColumn().asArrayList(),i.openColumn=r,i.highColumn=u,i.lowColumn=f,i.closeColumn=e,i.volumeColumn=o,i},_fireMap_triangulationStatusChanged:function(n,t){var i={},r=this._getWidgetName(),u=this.widget._seriesOpt[n.name()];i.currentStatus=t.currentStatus();i[r]=this.widget.options;i.series=u;this.widget._trigger("triangulationStatusChanged",null,i)},_bindPieChartEvents:function(t){t.sliceClick=n.ig.Delegate.prototype.combine(t.sliceClick,jQuery.proxy(this._firePieChart_sliceClick,this))},_firePieChart_sliceClick:function(n,t){var i={},r,u;i.slice={};i.slice.item=t.slice().dataContext();r=t.slice().isExploded();u=t.slice().isSelected();i.slice.isExploded=r;i.slice.isSelected=u;i.chart=this.widget.options;this.widget._trigger("sliceClick",null,i);i.slice.isExploded!==r&&t.slice().isExploded(i.slice.isExploded);i.slice.isSelected!==u&&t.slice().isSelected(i.slice.isSelected)},_bindDataChartEvents:function(t){t.seriesCursorMouseMove=n.ig.Delegate.prototype.combine(t.seriesCursorMouseMove,jQuery.proxy(this._fireChart_seriesCursorMouseMove,this));t.seriesMouseLeftButtonDown=n.ig.Delegate.prototype.combine(t.seriesMouseLeftButtonDown,jQuery.proxy(this._fireChart_seriesMouseLeftButtonDown,this));t.seriesMouseLeftButtonUp=n.ig.Delegate.prototype.combine(t.seriesMouseLeftButtonUp,jQuery.proxy(this._fireChart_seriesMouseLeftButtonUp,this));t.seriesMouseMove=n.ig.Delegate.prototype.combine(t.seriesMouseMove,jQuery.proxy(this._fireChart_seriesMouseMove,this));t.seriesMouseEnter=n.ig.Delegate.prototype.combine(t.seriesMouseEnter,jQuery.proxy(this._fireChart_seriesMouseEnter,this));t.seriesMouseLeave=n.ig.Delegate.prototype.combine(t.seriesMouseLeave,jQuery.proxy(this._fireChart_seriesMouseLeave,this));t.windowRectChanged=n.ig.Delegate.prototype.combine(t.windowRectChanged,jQuery.proxy(this._fireChart_windowRectChanged,this));t.actualWindowRectChanged=n.ig.Delegate.prototype.combine(t.actualWindowRectChanged,jQuery.proxy(this._fireChart_actualWindowRectChanged,this));t.gridAreaRectChanged=n.ig.Delegate.prototype.combine(t.gridAreaRectChanged,jQuery.proxy(this._fireChart_gridAreaRectChanged,this));t.refreshCompleted=n.ig.Delegate.prototype.combine(t.refreshCompleted,jQuery.proxy(this._fireChart_refreshCompleted,this));t.axisRangeChanged=n.ig.Delegate.prototype.combine(t.axisRangeChanged,jQuery.proxy(this._fireChart_axisRangeChanged,this));t.notifyCrosshairUpdate=n.ig.Delegate.prototype.combine(t.notifyCrosshairUpdate,jQuery.proxy(this._notifyCrosshairUpdate,this))},_getSeriesOpt:function(n){var t=this.widget,i,r;return t._seriesOpt?t._seriesOpt[n.series().name()]?t._seriesOpt[n.series().name()]:n.series().parentSeries?(i=n.series().parentSeries(),r=n.series().logicalSeriesLink(),t._seriesSubOpt[i.name()][r.name()])?t._seriesSubOpt[i.name()][r.name()]:t.options:t.options:t.options},_getChartEvt:function(n){var i={},u=this._getSeriesOpt(n),r,f=this._getWidgetName(),t=null;return i[f]=this.widget.options,i.series=u,i.series&&!i.series.title&&(i.series.title="Series Title"),i.item=n.item(),n.series&&n.series()!==null&&(t=n.series()),t!==null&&t.hostedSeries&&t.hostedSeries()!==null&&(t=t.hostedSeries()),n.actualItemBrush&&n.actualItemBrush()!==null?i.actualItemBrush=this._getValueFromBrush(n.actualItemBrush()):t!==null&&t.actualMarkerBrush&&t.actualMarkerBrush()!==null&&(i.actualItemBrush=this._getValueFromBrush(t.actualMarkerBrush())),t!==null&&t.actualBrush&&t.actualBrush()!==null&&(i.actualSeriesBrush=this._getValueFromBrush(t.actualBrush())),n.originalEvent&&n.originalEvent()!==null&&n.originalEvent().position&&n.originalEvent().position()!==null&&(r=n.originalEvent().position(),i.positionX=r.__x,i.positionY=r.__y),i},_notifyCrosshairUpdate:function(){this.widget._chart&&this.widget._chart.crosshairPoint&&(this.widget.options.crosshairPoint={x:this.widget._chart.crosshairPoint().__x,y:this.widget._chart.crosshairPoint().__y})},_fireChart_seriesCursorMouseMove:function(n,t){var i=this._getChartEvt(t);this.widget._trigger("seriesCursorMouseMove",null,i)},_fireChart_seriesMouseLeftButtonDown:function(n,t){var i=this._getChartEvt(t);this.widget._trigger("seriesMouseLeftButtonDown",null,i)},_fireChart_seriesMouseLeftButtonUp:function(n,t){var i=this._getChartEvt(t);this.widget._trigger("seriesMouseLeftButtonUp",null,i)},_fireChart_seriesMouseMove:function(n,t){var i=this._getChartEvt(t);this.widget._trigger("seriesMouseMove",null,i)},_fireChart_seriesMouseEnter:function(n,t){var i=this._getChartEvt(t);this.widget._trigger("seriesMouseEnter",null,i)},_fireChart_seriesMouseLeave:function(n,t){var i=this._getChartEvt(t);this.widget._trigger("seriesMouseLeave",null,i)},_fireChart_windowRectChanged:function(n,t){var i={},r=t.oldRect(),u=t.newRect(),f=this._getWidgetName();r&&(i.oldTop=r.top(),i.oldLeft=r.left(),i.oldWidth=r.width(),i.oldHeight=r.height());i.newTop=u.top();i.newLeft=u.left();i.newWidth=u.width();i.newHeight=u.height();i[f]=this.widget.options;this.widget.options.windowRect={top:i.newTop,left:i.newLeft,width:i.newWidth,height:i.newHeight};this.widget._trigger("windowRectChanged",null,i)},_fireChart_actualWindowRectChanged:function(n,t){var i={},r=t.oldRect(),u=t.newRect(),f=this._getWidgetName();r&&(i.oldTop=r.top(),i.oldLeft=r.left(),i.oldWidth=r.width(),i.oldHeight=r.height());i.newTop=u.top();i.newLeft=u.left();i.newWidth=u.width();i.newHeight=u.height();i[f]=this.widget.options;this.widget.options.actualWindowRect={top:i.newTop,left:i.newLeft,width:i.newWidth,height:i.newHeight};this.widget._trigger("actualWindowRectChanged",null,i)},_fireChart_gridAreaRectChanged:function(n,t){var i={},r=t.oldRect(),u=t.newRect(),f=this._getWidgetName();r&&(i.oldTop=r.top(),i.oldLeft=r.left(),i.oldWidth=r.width(),i.oldHeight=r.height());i.newTop=u.top();i.newLeft=u.left();i.newWidth=u.width();i.newHeight=u.height();i[f]=this.widget.options;this.widget.options.gridAreaRect={top:i.newTop,left:i.newLeft,width:i.newWidth,height:i.newHeight};this.widget._trigger("gridAreaRectChanged",null,i)},_fireChart_refreshCompleted:function(){var n={},t=this._getWidgetName();n[t]=this.widget.options;this.widget._trigger("refreshCompleted",null,n)},_fireChart_imageTilesReady:function(){var n={},t=this._getWidgetName();n[t]=this.widget.options;this.widget._trigger("imageTilesReady",null,n)},_fireChart_axisRangeChanged:function(n,t){var i={};i.chart=this.widget.options;i.axis=this.widget._axisOpt[t.axis().name()];i.oldMinimumValue=t.oldMinimumValue();i.oldMaximumValue=t.oldMaximumValue();i.newMinimumValue=t.minimumValue();i.newMaximumValue=t.maximumValue();this.widget._trigger("axisRangeChanged",null,i)},_fireToolTip_updateToolTip:function(t){var i={},u,r;i=this._getChartEvt(t);i.tempId=this.widget._seriesOpt?i.series.name:this.widget.id();i.element=null;i.series!==null&&(i.element=this.widget._tooltip[i.tempId]);u=this.widget._trigger(this.widget.events.tooltipShowing,null,i);i===null&&(u=!1);u&&(r=this.widget._tooltipTemplate,i.series!==null&&this.widget._tooltipTemplates[i.tempId]!==undefined&&(r=this.widget._tooltipTemplates[i.tempId]),r=="default"?t.series().view&&(r=t.series().view().getDefaultTooltipTemplate(),this.widget._tooltipTemplates[i.tempId]=r,t.series()&&t.series().isDefaultToolTipSelected&&t.series().isDefaultToolTipSelected(!0)):t.series()&&t.series().isDefaultToolTipSelected&&t.series().isDefaultToolTipSelected(!1),r&&(this.widget._tooltip[i.tempId].children().remove(),i.item===null&&(u=!1),u&&this.widget._tooltip[i.tempId].html(n.ig.tmpl(r,i))),t.hideOthers&&n.each(this.widget._tooltip,function(n,t){t.hide()}),u&&(this.widget._tooltip[i.tempId].show(),this.widget._trigger(this.widget.events.tooltipShown,null,i)))},_fireToolTip_hideToolTip:function(t){var i={},r;i=this.widget._seriesOpt?this._getChartEvt(t):t;i.tempId=this.widget._seriesOpt?i.series.name:this.widget.id();i.element=null;i.series!==null&&(i.element=this.widget._tooltip[i.tempId]);r=this.widget._trigger(this.widget.events.tooltipHiding,null,i);r&&(n.each(this.widget._tooltip,function(n,t){t.hide()}),this.widget._trigger(this.widget.events.tooltipHidden,null,i))},_destroy:function(t){var i=this._chartElement,r=this._oldProp;i&&(delete this._chartElement,i.remove(),this._setSize(t._chart),i=t.element,i.css("width",r.width),i.css("height",r.height));t._axes=null;t._series=null;t._axisOpt=null;t._seriesOpt=null;t.dataSources=null;n.each(this.widget._tooltip,function(n,t){t.hide();t.remove()});t._tooltip=null;t._tooltipTemplates=null}});n.ig.SimpleTextMarkerTemplate=n.ig.TextMarkerTemplate||Class.extend({requireThis:!0,settings:{padding:5,getText:null,backgroundColor:"rgba(255,255,255,.6)",borderColor:"rgba(20, 20, 20, .6)",borderThickness:1,textColor:"black",font:null},init:function(t){return t!==undefined&&(this.settings=n.extend(!0,{},n.ig.SimpleTextMarkerTemplate.prototype.settings,t)),this},getText:function(n,t){return t===null?"":t(n)},measure:function(n){var t=this.settings,r,u,i=n.context,f,e;t.font!==null&&(i.font=t.font);t.textColor!==null&&(i.fillStyle=t.textColor);r=n.data;u="null";r.item()!==null&&(u=this.getText(r.item(),t.getText));f=i.measureText("M").width;e=i.measureText(u).width;n.width=e+t.padding*2;n.height=f+t.padding*2},render:function(n){var i=this.settings,t=n.context,f,e,o,s,r,u;n.isHitTestRender?(t.globalAlpha=1,t.fillStyle=n.data.actualItemBrush().fill()):(t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,t.lineWidth=i.borderThickness);f=n.data;e=this.getText(f.item(),i.getText);o=n.availableWidth/2;s=n.availableHeight/2;r=n.xPosition-o;u=n.yPosition-s;n.isHitTestRender?t.fillRect(r,u,n.availableWidth,n.availableHeight):(t.fillRect(r,u,n.availableWidth,n.availableHeight),t.strokeRect(r,u,n.availableWidth,n.availableHeight),t.fillStyle=i.textColor,t.textBaseline="top",t.fillText(e,r+i.padding,u+i.padding))}})}(jQuery),typeof jQuery=="undefined")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igBaseChart",{css:{tooltip:"ui-widget-content ui-corner-all",unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix ui-html5-non-html5"},events:{dataBinding:null,dataBound:null,updateTooltip:null,hideTooltip:null},options:{width:null,height:null,tooltipTemplate:null,maxRecCount:null,dataSource:null,dataSourceType:null,dataSourceUrl:null,responseTotalRecCountKey:null,responseDataKey:null},_create:function(){var u,f,e,i,s=-1,t=this,r=t.element,o=r[0].style,h=t.options;if(t._old_state={style:{position:o.position,width:o.width,height:o.height},elems:r.find("*")},!n.ig.util._isCanvasSupported()){n.ig.util._renderUnsupportedBrowser(this);return}for(i=t._createChart(),t.dataBind();s++<1;)u=s===0?"width":"height",h[u]?e=u:(f=r[0].style[u],f&&f.indexOf("%")>0&&t._setSize(i,e=u,f));e||t._setSize(i,"width");this._beforeInitialOptions(i,r);this._setInitialOptions(i);t.css.chart&&r.addClass(t.css.chart);t._chart=i;t._dataChange();this._provideContainer(i,r)},_beforeInitialOptions:function(){},_provideContainer:function(n,t){n.provideContainer(t[0])},_setInitialOptions:function(n){var t=this.options,r=this;for(var i in t)t.hasOwnProperty(i)&&(v=t[i],v!==null&&r._set_option(n,i,v))},_fireTooltip:function(t,i,r,u){var e,f=this._t_t;if(!t){f=this._t_t_e||f;f&&f.css("display")!=="none"&&this._trigger("hideTooltip",null,e={owner:this,element:f,item:this._t_t_i})&&(f=e.element||f,f.css("display","none"));return}f||(f=this._t_t=n("<div style='position:absolute;display:none;white-space:nowrap;'><\/div>").addClass(this.css.tooltip).appendTo(this.element));t=n.ig.tmpl?n.ig.tmpl(t,i):t;r=this._trigger("updateTooltip",null,e={owner:this,element:f,text:t,item:i,x:r,y:u});this._t_t_e=f=e.element||f;this._t_t_i=e.item;r?(f.css({display:"block",left:e.x+"px",top:e.y+"px"}),e.text&&f.html(e.text)):f.css("display","none")},findIndexOfItem:function(n){for(var t=n?this.getData():null,i=t?t.length:0;i-->0;)if(n===t[i])break;return i},getDataItem:function(n){var t=this.getData();return t&&t.length>n&&n>=0?t[n]:null},getData:function(){return this._chart?this._chart.itemsSource():null},addItem:function(n){return this._dataSource&&(this._dataEvt(1,!0),this._dataSource.addRow(null,n,!0)),this},insertItem:function(n,t){return this._dataSource&&(this._dataEvt(2,!0),this._dataSource.insertRow(null,n,t,!0)),this},removeItem:function(n){return this._dataSource&&(this._dataEvt(-1,!0),this._dataSource.deleteRow(n,!0)),this},setItem:function(n,t){return this._dataSource&&(this._dataEvt(0,!0),this._dataSource.updateRow(n,t,!0)),this},notifySetItem:function(n,t,i,r){return this._chart&&(this._chart.notifySetItem(n,t,r,i),this._dataEvt(0)),this},notifyClearItems:function(n){return this._chart&&(this._chart.notifyClearItems(n),this._dataEvt(-1)),this},notifyInsertItem:function(n,t,i){return this._chart&&(this._chart.notifyInsertItem(n,t,i),this._dataEvt(2)),this},notifyRemoveItem:function(n,t,i){return this._chart&&(this._chart.notifyRemoveItem(n,t,i),this._dataEvt(-1)),this},_dataEvt:function(){},_itemAdded:function(n,t,i){var r=this._getDataSourceOwner(i);r&&(r.notifyInsertItem(t,t.dataView().length-1,n.row),this._dataEvt(1))},_itemInserted:function(n,t,i){var r=this._getDataSourceOwner(i);r&&(r.notifyInsertItem(t,n.rowIndex,n.row),this._dataEvt(2))},_itemUpdated:function(n,t,i){var r=this._getDataSourceOwner(i);r&&(r.notifySetItem(t,n.rowIndex,n.oldRow,n.newRow),this._dataEvt(0))},_itemRemoved:function(n,t,i){var r=this._getDataSourceOwner(i);r&&(r.notifyRemoveItem(t,n.rowIndex,n.row),this._dataEvt(-1))},_getValueKeyName:function(){return null},_getRemoteDataKeys:function(){return null},_getNotifyResizeName:function(){return null},_createChart:function(){return null},_set_option:function(n,t,i){return t?t.indexOf("dataSource")>=0||t.indexOf("response")>=0?(this._chart&&this.dataBind(),!0):t==="width"||t==="height"?(this._setSize(n,t,i),!0):t==="maxRecCount"?(this._chart&&this._dataChange(),!0):t==="tooltipTemplate"&&n.toolTip?(n.toolTip(i),!0):!n||!n[t]||n[t]()===i?!0:void 0:!0},_setSize:function(t,i,r){n.ig.util.setSize(this.element,i,r,t,this._getNotifyResizeName())},_getDataSourceOwner:function(){return this._chart},_dataChange:function(n,t){var i;this._getDataSourceOwner&&(t?(i=this._getDataSourceOwner(t),this._dataChangeInternal(i,n)):this._dataChangeInternal(this._chart,n))},_dataChangeInternal:function(n,t){var i,r,u=this.options.maxRecCount,f=this._dataSource,e=n;if(f&&e&&e.itemsSource&&(i=f.dataView(),r=i?i.length:0,r||this._dataLen)){if(this._dataLen=r,r&&u&&u<r){for(t=[];u-->0;)t[u]=i[u];i=t}e.itemsSource(i);t!=="no"&&this._trigger("dataBound",null,{owner:this,dataSource:f,data:i});this._dataEvt(3)}},chart:function(){return this._chart},dataBind:function(){this._dataBindInternal(this.options,null)},_dataBindInternal:function(t,i){var e,u,s,y,p,h=t,w=h.dataSourceUrl,c=h.responseDataKey,b=h.dataSourceType,v=this._getValueKeyName(),l=v?h[v]:null,r=h.dataSource,k=typeof r=="string",o=c?c.split("."):null,a=o?o.length-1:-1,f=-1;for(k&&!b&&(r=new n.ig.JSONPDataSource({dataSource:r})),u=r;u&&f++<a;)u=u[o[f]];if(u||(u=r,o=null),e=u?u[0]:null,typeof e=="string"||typeof e=="number"||e&&e.getTime){for(f=u.length,e=u,u=[],l=l||"x",v&&(h[v]=l);f-->0;)u[f]={},u[f][l]=e[f];if(o){for(e=r,f=-1;++f<a;)e=e[o[f]];e[o[a]]=u}else r=u}if(u&&!l&&v)for(l in u[0])if(u[0].hasOwnProperty(l)){h[v]=l;break}if((s={callback:this._dataChange,dataSource:r,type:b||undefined,responseDataKey:c,responseTotalRecCountKey:h.responseTotalRecCountKey,rowAdded:this._itemAdded,rowDeleted:this._itemRemoved,rowUpdated:this._itemUpdated,rowInserted:this._itemInserted},i&&(s.callback=function(n){this._dataChange(n,i)},s.rowAdded=function(n,t){this._itemAdded(n,t,i)},s.rowDeleted=function(n,t){this._itemRemoved(n,t,i)},s.rowUpdated=function(n,t){this._itemUpdated(n,t,i)},s.rowInserted=function(n,t){this._itemInserted(n,t,i)}),r instanceof n.ig.DataSource?(p=r._data&&r._data.length,s.dataSource=r.settings.dataSource,r.settings=n.extend(!0,{},r.settings,s),r.settings.callee=this):(r=new n.ig.DataSource(s),r.settings.callee=this),p||this._trigger("dataBinding",null,{owner:this,dataSource:r}))&&(this._dataSource=r,p?this._dataChange("no",i):r.dataBind(),w&&!this._urlBind)){if(y=r.settings,y.dataSource=w,y.type="remoteUrl",r._runtimeType=r.analyzeDataSource(),o=this._getRemoteDataKeys(),a=o?o.length:0,a>0){for(c=null;a-->0;)f=o[a],f&&(c=c?c+","+f:f);c&&(y.urlParamsEncoded=n.proxy(function(n,t){t&&t.filteringParams&&(t.filteringParams.keys=c)},this))}this._urlBind=1;h.dataSource||r.dataBind()}},destroy:function(){var i,u,r=this._chart,t=this._old_state,f=this.element;if(t){f.find("*").not(t.elems).remove();this.css.chart&&f.removeClass(this.css.chart);t=t.style;u=f[0].style;for(i in t)t.hasOwnProperty(i)&&u[i]!==t[i]&&(u[i]=t[i]);r&&this._setSize(r);n.Widget.prototype.destroy.apply(this,arguments);r&&r.destroy&&r.destroy();delete this._chart;delete this._old_state}}});n.extend(n.ui.igBaseChart,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igChartLegend",{options:{type:"legend",width:null,height:null,theme:"c"},css:{legend:"ui-corner-all ui-widget-content ui-chart-legend",legendItemsList:"ui-chart-legend-items-list",legendItem:"ui-chart-legend-item",legendItemBadge:"ui-chart-legend-item-badge",legendItemText:"ui-chart-legend-item-text"},events:{legendItemMouseLeftButtonDown:null,legendItemMouseLeftButtonUp:null,legendItemMouseEnter:null,legendItemMouseLeave:null},_create:function(){var i,t=this.options,r=this.element;t.type==="item"?i=new n.ig.ItemLegend:t.type==="scale"?(i=new n.ig.ScaleLegend,t.width||(t.width="100px"),t.height||(t.height="150px")):i=new n.ig.Legend;t.owner&&(this._owner=t.owner,t.owner=this._owner.options);this.legend=i;i.name(this.id());i.legendItemsListStyle(this.css.legendItemsList);i.legendItemStyle(this.css.legendItem);i.legendItemBadgeStyle(this.css.legendItemBadge);i.legendItemTextStyle(this.css.legendItemText);t.width&&(this._oldWidth=r[0].style.width,r.css("width",t.width));t.height&&(this._oldHeight=r[0].style.width,r.css("height",t.height));this._cssLegend=this.css.legend.replace("{0}",t.theme);r.addClass(this._cssLegend);this._bindLegendEvents(i);i.provideContainer(r)},_bindLegendEvents:function(t){t.legendItemMouseLeftButtonDown=n.ig.Delegate.prototype.combine(t.legendItemMouseLeftButtonDown,jQuery.proxy(this._fireLegend_ItemMouseLeftButtonDown,this));t.legendItemMouseLeftButtonUp=n.ig.Delegate.prototype.combine(t.legendItemMouseLeftButtonUp,jQuery.proxy(this._fireLegend_ItemMouseLeftButtonUp,this));t.legendItemMouseEnter=n.ig.Delegate.prototype.combine(t.legendItemMouseEnter,jQuery.proxy(this._fireLegend_ItemMouseEnter,this));t.legendItemMouseLeave=n.ig.Delegate.prototype.combine(t.legendItemMouseLeave,jQuery.proxy(this._fireLegend_ItemMouseLeave,this))},_getLegendEvt:function(n){var r,t,u=n.series?n.series():null,i=this._owner;return i?(r={legend:this.options,series:i._seriesOpt&&u?i._seriesOpt[u.name()]:i.options,chart:i,item:n._item},r[i.dvWidget?i.dvWidget._getWidgetName():i.widgetName]=i.options,t=n.legendItem&&n.legendItem()!==null&&n.legendItem().content?n.legendItem().content():null,t=t&&t.actualItemBrush?t.actualItemBrush():null,r.actualItemBrush=t?t.fill():null,t=u&&u.actualBrush?u.actualBrush():null,r.actualSeriesBrush=t?t.fill():null,r):null},_fireLegend_ItemMouseLeftButtonDown:function(n,t){this._trigger("legendItemMouseLeftButtonDown",null,this._getLegendEvt(t))},_fireLegend_ItemMouseLeftButtonUp:function(n,t){this._trigger("legendItemMouseLeftButtonUp",null,this._getLegendEvt(t))},_fireLegend_ItemMouseEnter:function(n,t){this._trigger("legendItemMouseEnter",null,this._getLegendEvt(t))},_fireLegend_ItemMouseLeave:function(n,t){this._trigger("legendItemMouseLeave",null,this._getLegendEvt(t))},_getLegend:function(){return this.legend},_setOption:function(n,t){switch(n){case"width":this.element.css("width",t);break;case"height":this.element.css("height",t)}},destroy:function(){var i,t=this.element;return n.Widget.prototype.destroy.call(this),this.legend&&(this.legend=null),t&&(t.removeClass(this._cssLegend),this.options.width&&(t[0].style.width=this._oldWidth||""),this.options.height&&(t[0].style.height=this._oldHeight||""),t.children("table").length>0&&(i=t.children("table").children("tr"),n.each(i,function(t,i){n(i).unbind("mouseleave").unbind("mouseup").unbind("mousedown").unbind("mousemove")})),t.empty()),this},widget:function(){return this.element},id:function(){return this.element[0].id}});n.extend(n.ui.igChartLegend,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igDataChart",{options:{syncChannel:null,synchronizeVertically:!0,syncrhonizeHorizontally:!1,crosshairPoint:{x:0,y:0},windowRect:null,horizontalZoomable:!1,verticalZoomable:!1,windowResponse:null,windowRectMinWidth:0,overviewPlusDetailPaneVisibility:"collapsed",crosshairVisibility:"collapsed",plotAreaBackground:null,defaultInteraction:"dragZoom",dragModifier:"none",panModifier:"shift",previewRect:null,windowPositionHorizontal:0,windowPositionVertical:0,windowScaleHorizontal:1,windowScaleVertical:1,circleMarkerTemplate:null,triangleMarkerTemplate:null,pyramidMarkerTemplate:null,squareMarkerTemplate:null,diamondMarkerTemplate:null,pentagonMarkerTemplate:null,hexagonMarkerTemplate:null,tetragramMarkerTemplate:null,pentagramMarkerTemplate:null,hexagramMarkerTemplate:null,topMargin:0,leftMargin:0,rightMargin:0,bottomMargin:0,autoMarginWidth:20,autoMarginHeight:0,isSquare:!1,gridMode:"behindSeries",brushes:null,markerBrushes:null,outlines:null,markerOutlines:null,width:null,height:null,size:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,isSurfaceInteractionDisabled:!1,animateSeriesWhenAxisRangeChanges:!1,title:null,subtitle:null,titleTextStyle:null,titleTopMargin:0,titleLeftMargin:0,titleRightMargin:0,titleBottomMargin:0,subtitleTextStyle:null,subtitleTopMargin:0,subtitleLeftMargin:0,subtitleRightMargin:0,subtitleBottomMargin:0,titleTextColor:"black",subtitleTextColor:"black",titleHorizontalAlignment:"center",subtitleHorizontalAlignment:"center",highlightingTransitionDuration:300,legend:{element:null,type:"legend",width:null,height:null},axes:[{type:null,name:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,remove:!1,labelLocation:null,labelVisibility:"visible",labelExtent:null,labelAngle:0,labelTextStyle:null,labelTextColor:null,formatLabel:null,stroke:null,strokeThickness:1,strip:null,majorStroke:null,majorStrokeThickness:1,minorStroke:null,minorStrokeThickness:1,isInverted:!1,crossingAxis:null,crossingValue:null,coercionMethods:null,label:null,gap:0,overlap:0,startAngleOffset:0,interval:0,displayType:null,minimumValue:0,maximumValue:0,dateTimeMemberPath:null,referenceValue:0,isLogarithmic:!1,logarithmBase:10,radiusExtentScale:.75,innerRadiusExtentScale:0,title:null,titleTextStyle:null,titleMargin:0,titleHorizontalAlignment:"center",titleVerticalAlignment:"center",titlePosition:"auto",titleTopMargin:0,titleLeftMargin:0,titleRightMargin:0,titleBottomMargin:0,labelHorizontalAlignment:"right",labelVerticalAlignment:"top",labelMargin:0,labelTopMargin:0,labelLeftMargin:0,labelRightMargin:0,labelBottomMargin:0,showFirstLabel:!0,titleAngle:0,tickLength:0,tickStrokeThickness:.5,tickStroke:"black",useClusteringMode:!1}],series:[{type:null,name:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,remove:!1,showTooltip:!1,tooltipTemplate:null,legend:{element:null,type:"legend",width:null,height:null},legendItemVisibility:"visible",legendItemBadgeTemplate:null,legendItemTemplate:null,discreteLegendItemTemplate:null,transitionDuration:0,transitionEasingFunction:null,resolution:1,title:null,brush:null,outline:null,thickness:0,coercionMethods:null,markerType:"none",markerTemplate:null,markerBrush:null,markerOutline:null,xAxis:null,yAxis:null,xMemberPath:null,yMemberPath:null,trendLineType:"none",trendLineBrush:null,trendLineThickness:1.5,trendLinePeriod:7,trendLineZIndex:1001,maximumMarkers:400,unknownValuePlotting:"dontPlot",radiusMemberPath:null,radiusScale:null,labelMemberPath:null,fillMemberPath:null,fillScale:null,angleAxis:null,valueAxis:null,clipSeriesToBounds:null,valueMemberPath:null,radiusX:2,radiusY:2,angleMemberPath:null,radiusAxis:null,useCartesianInterpolation:!0,negativeBrush:null,splineType:"natural",lowMemberPath:null,highMemberPath:null,openMemberPath:null,closeMemberPath:null,volumeMemberPath:null,displayType:"candlestick",ignoreFirst:0,period:0,shortPeriod:0,longPeriod:0,markerCollisionAvoidance:"none",useHighMarkerFidelity:!1,useBruteForce:!1,progressiveLoad:!0,mouseOverEnabled:!1,useSquareCutoffStyle:!1,heatMinimum:0,heatMaximum:50,heatMinimumColor:"black",heatMaximumColor:"red",series:null,isDropShadowEnabled:!1,useSingleShadow:!0,shadowColor:"rgba(95,95,95,0.5)",shadowBlur:10,shadowOffsetX:5,shadowOffsetY:5,isTransitionInEnabled:!1,transitionInSpeedType:"auto",transitionInMode:"auto",transitionInDuration:500,radius:2,areaFillOpacity:1,expectFunctions:!1,useInterpolation:!1,skipUnknownValues:!1,verticalLineVisibility:"visible",horizontalLineVisibility:"visible",targetSeries:null,targetAxis:null,isCustomCategoryStyleAllowed:!1,isCustomCategoryMarkerStyleAllowed:!1,isHighlightingEnabled:!1,bandHighlightWidth:10,highlightType:"auto",tooltipPosition:"auto",cursorPosition:null,isDefaultCrosshairDisabled:!0,useIndex:!1,useLegend:!1}],theme:"c"},css:{chart:"ui-corner-all ui-widget-content ui-chart-container",unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix  ui-html5-non-html5",tooltip:"ui-chart-tooltip ui-widget-content ui-corner-all",seriesPalettes:"ui-chart-palette-n",seriesFillPalettes:"ui-chart-fill-palette-n",seriesOutlinePalettes:"ui-chart-outline-palette-n",areaFillOpacity:"ui-chart-area-fill-opacity",axis:"ui-chart-axis",axisStroke:"ui-chart-axis-stroke",axisMajorStroke:"ui-chart-axis-major-line",alignedGridLines:"ui-chart-aligned-gridlines",categoryAxisTick:"ui-chart-category-axis-tick",horizontalAxisLabels:"ui-horizontal-axis-labels",verticalAxisLabels:"ui-vertical-axis-labels",angularAxisLabels:"ui-angular-axis-labels",radialAxisLabels:"ui-radial-axis-labels",title:"ui-chart-title",subtitle:"ui-chart-subtitle",horizontalAxisTitle:"ui-chart-horizontal-axis-title",verticalAxisTitle:"ui-chart-vertical-axis-title",legendItemsList:"ui-chart-legend-items-list",legendItemsText:"ui-chart-legend-item-text",legendItemsBadge:"ui-chart-legend-item-badge"},events:{tooltipShowing:"tooltipShowing",tooltipShown:"tooltipShown",tooltipHiding:"tooltipHiding",tooltipHidden:"tooltipHidden",browserNotSupported:"browserNotSupported",seriesCursorMouseMove:null,seriesMouseLeftButtonDown:null,seriesMouseLeftButtonUp:null,seriesMouseMove:null,seriesMouseEnter:null,seriesMouseLeave:null,windowRectChanged:null,gridAreaRectChanged:null,refreshCompleted:null,axisRangeChanged:null,typicalBasedOn:null,progressiveLoadStatusChanged:null,assigningCategoryStyle:null,assigningCategoryMarkerStyle:null},_createWidget:function(t,i){this._fixCss();this.dvWidget=new n.ig.dvCommonWidget(this);this.dvWidget._createWidget(t,i,this)},_init:function(){},_create:function(){this._fixCss();this.dvWidget._create()},_fixCss:function(){this.css.chart.indexOf("{0}")>-1&&(this.css.chart=this.css.chart.replace("{0}",this.options.theme),this.css.tooltip=this.css.tooltip.replace("{0}",this.options.theme))},_setOption:function(n,t){this.dvWidget._setOption(n,t)},widget:function(){return this.element},id:function(){return this.element[0].id},exportImage:function(n,t){return this.dvWidget._getImage(n,t,this)},destroy:function(){this._chart&&(this._chart.destroy(),this._chart=null);this.dvWidget._destroy(this);n.Widget.prototype.destroy.apply(this,arguments)},styleUpdated:function(){return this._chart.styleUpdated(),this},resetZoom:function(){return this._chart.resetZoom(),this},addItem:function(n,t){var i=t||this._containerSourceID;this.dataSources[i]&&this.dataSources[i].addRow(null,n,!0)},insertItem:function(n,t,i){var r=i||this._containerSourceID;this.dataSources[r]&&this.dataSources[r].insertRow(null,n,t,!0)},removeItem:function(n,t){var i=t||this._containerSourceID;this.dataSources[i]&&this.dataSources[i].deleteRow(n,!0)},setItem:function(n,t,i){var r=i||this._containerSourceID;this.dataSources[r]&&this.dataSources[r].updateRow(n,t,!0)},notifySetItem:function(n,t,i,r){return this._chart.notifySetItem(n,t,r,i),this},notifyClearItems:function(n){return this._chart.notifyClearItems(n),this},notifyInsertItem:function(n,t,i){return this._chart.notifyInsertItem(n,t,i),this},notifyRemoveItem:function(n,t,i){return this._chart.notifyRemoveItem(n,t,i),this},scrollIntoView:function(n,t){var i=this.dvWidget._getNotifyTarget(n);return i&&i.scrollIntoView&&i.scrollIntoView(t),this},scaleValue:function(n,t){var i=this.dvWidget._getNotifyTarget(n);return i&&i.scaleValue?i.scaleValue(t):0},unscaleValue:function(n,t){var i=this.dvWidget._getNotifyTarget(n);return i&&i.unscaleValue?i.unscaleValue(t):0},notifyVisualPropertiesChanged:function(n){var t=this.dvWidget._getNotifyTarget(n);return t&&t.notifyVisualPropertiesChanged?t.notifyVisualPropertiesChanged():this},flush:function(){this._chart.flush()},exportVisualData:function(){return this._chart.exportVisualData()},getActualMinimumValue:function(n){var t=this.dvWidget._getNotifyTarget(n);return t&&t.actualMinimumValue?t.actualMinimumValue():0},getActualMaximumValue:function(n){var t=this.dvWidget._getNotifyTarget(n);return t&&t.actualMaximumValue?t.actualMaximumValue():0},print:function(){this.dvWidget._print()},renderSeries:function(n,t){var i=this.dvWidget._getNotifyTarget(n);return i&&i.renderSeries?i.renderSeries(t):this},getItemIndex:function(t,i){var r=this.dvWidget._getNotifyTarget(t),u=new n.ig.Point(1,i.x,i.y);if(r&&r.getItemIndex)return r.getItemIndex(u)},getItem:function(t,i){var r=this.dvWidget._getNotifyTarget(t),u=new n.ig.Point(1,i.x,i.y);if(r&&r.getItem)return r.getItem(u)},_flattenPoint:function(n){return{__x:n.__x,__y:n.__y,x:n.__x,y:n.__y}},getSeriesValue:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesValue)return f.getSeriesValue(e,r,u)},getSeriesValuePosition:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesValuePosition)return this._flattenPoint(f.getSeriesValuePosition(e,r,u))},getSeriesValuePositionFromSeriesPixel:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesValuePositionFromSeriesPixel)return this._flattenPoint(f.getSeriesValuePositionFromSeriesPixel(e,r,u))},getSeriesValueFromSeriesPixel:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesValueFromSeriesPixel)return f.getSeriesValueFromSeriesPixel(e,r,u)},getSeriesHighValue:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesHighValue)return f.getSeriesHighValue(e,r,u)},getSeriesHighValuePosition:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesHighValuePosition)return this._flattenPoint(f.getSeriesHighValuePosition(e,r,u))},getSeriesHighValuePositionFromSeriesPixel:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesHighValuePositionFromSeriesPixel)return this._flattenPoint(f.getSeriesHighValuePositionFromSeriesPixel(e,r,u))},getSeriesHighValueFromSeriesPixel:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesHighValueFromSeriesPixel)return f.getSeriesHighValueFromSeriesPixel(e,r,u)},getSeriesLowValue:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesLowValue)return f.getSeriesLowValue(e,r,u)},getSeriesLowValuePosition:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesLowValuePosition)return this._flattenPoint(f.getSeriesLowValuePosition(e,r,u))},getSeriesLowValuePositionFromSeriesPixel:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesLowValuePositionFromSeriesPixel)return this._flattenPoint(f.getSeriesLowValuePositionFromSeriesPixel(e,r,u))},getSeriesLowValueFromSeriesPixel:function(t,i,r,u){var f=this.dvWidget._getNotifyTarget(t),e=new n.ig.Point(1,i.x,i.y);if(f&&f.getSeriesLowValueFromSeriesPixel)return f.getSeriesLowValueFromSeriesPixel(e,r,u)},getItemIndexFromSeriesPixel:function(t,i){var r=this.dvWidget._getNotifyTarget(t),u=new n.ig.Point(1,i.x,i.y);if(r&&r.getItemIndexFromSeriesPixel)return r.getItemIndexFromSeriesPixel(u)},getItemFromSeriesPixel:function(t,i){var r=this.dvWidget._getNotifyTarget(t),u=new n.ig.Point(1,i.x,i.y);if(r&&r.getItemFromSeriesPixel)return r.getItemFromSeriesPixel(u)},getSeriesOffsetValue:function(n){var t=this.dvWidget._getNotifyTarget(n);if(t&&t.getOffsetValue)return t.getOffsetValue()},getSeriesCategoryWidth:function(n){var t=this.dvWidget._getNotifyTarget(n);if(t&&t.getCategoryWidth)return t.getCategoryWidth()},replayTransitionIn:function(n){var t=this.dvWidget._getNotifyTarget(n);return t&&t.replayTransitionIn&&t.replayTransitionIn(),this},simulateHover:function(t,i){var r=this.dvWidget._getNotifyTarget(t);return r&&r.simulateHover&&r.simulateHover(new n.ig.Point(1,i.x,i.y)),this},moveCursorPoint:function(t,i){var r=this.dvWidget._getNotifyTarget(t);return r&&r.moveCursorPoint&&r.moveCursorPoint(new n.ig.Point(1,i.x,i.y)),this}});n.extend(n.ui.igDataChart,{version:"14.1.20141.2031"});n.widget("ui.igPieChart",{options:{width:null,height:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,valueMemberPath:null,labelMemberPath:null,labelsPosition:"center",leaderLineVisibility:"visible",leaderLineType:"straightLine",leaderLineMargin:6,othersCategoryThreshold:3,formatLabel:null,othersCategoryStyle:null,othersCategoryType:"percent",othersCategoryText:"Others",explodedRadius:.2,radiusFactor:.9,allowSliceSelection:null,allowSliceExplosion:null,explodedSlices:null,showTooltip:!1,tooltipTemplate:null,legend:{element:null,type:"item",width:null,height:null},labelExtent:10,startAngle:0,sweepDirection:"clockwise",selectedStyle:null,brushes:null,outlines:null,legendItemTemplate:null,legendItemBadgeTemplate:null,textStyle:null,theme:"c"},css:{chart:"ui-corner-all ui-widget-content ui-chart-piechart-container",unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix ui-html5-non-html5",tooltip:"ui-chart-tooltip ui-widget-content ui-corner-all"},events:{tooltipShowing:"tooltipShowing",tooltipShown:"tooltipShown",tooltipHiding:"tooltipHiding",tooltipHidden:"tooltipHidden",browserNotSupported:"browserNotSupported",sliceClick:null},_createWidget:function(t,i){this._fixCss();this.dvWidget=new n.ig.dvCommonWidget(this);this.dvWidget._createWidget(t,i,this)},_create:function(){this._fixCss();this.dvWidget._create()},_fixCss:function(){this.css.chart.indexOf("{0}")>-1&&(this.css.chart=this.css.chart.replace("{0}",this.options.theme),this.css.tooltip=this.css.tooltip.replace("{0}",this.options.theme))},_setOption:function(n,t){this.dvWidget._setOption(n,t)},addItem:function(n){this.dataSources[this.id()].addRow(n,!0)},insertItem:function(n,t){this.dataSources[this.id()].insertRow(null,n,t,!0)},removeItem:function(n){this.dataSources[this.id()].deleteRow(n,!0)},setItem:function(n,t){this.dataSources[this.id()].updateRow(n,t,!0)},exportImage:function(n,t){return this.dvWidget._getImage(n,t,this)},destroy:function(){return this._chart&&(this._chart.destroy(),this._chart=null),this.dvWidget._destroy(this),n.Widget.prototype.destroy.call(this),this},id:function(){return this.element[0].id},widget:function(){return this.element},print:function(){this.dvWidget._print()},exportVisualData:function(){return this._chart.exportVisualData()}});n.extend(n.ui.igPieChart,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){var t=function(n,t){return n===null||n===undefined||t&&typeof n=="number"&&isNaN(n)};n.widget("ui.igDoughnutChart",n.ui.igBaseChart,{css:{chart:"ui-doughnut ui-corner-all ui-widget-content",tooltip:"ui-doughnut-tooltip ui-widget-content ui-corner-all"},options:{series:[{type:"flat",showTooltip:!1,tooltipTemplate:null,itemsSource:null,valueMemberPath:null,labelMemberPath:null,labelsPosition:"center",leaderLineVisibility:"visible",leaderLineStyle:null,leaderLineType:"straight",leaderLineMargin:6,othersCategoryThreshold:3,othersCategoryType:"percent",othersCategoryText:"Others",legend:null,formatLabel:null,labelExtent:10,startAngle:0,selectedStyle:null,brushes:null,outlines:null,isSurfaceInteractionDisabled:null,radiusFactor:.9}],allowSliceSelection:null,isSurfaceInteractionDisabled:!1,allowSliceExplosion:null,innerExtent:40,selectedStyle:null},events:{tooltipShowing:"tooltipShowing",tooltipShown:"tooltipShown",tooltipHiding:"tooltipHiding",tooltipHidden:"tooltipHidden",browserNotSupported:"browserNotSupported",sliceClick:null,holeDimensionsChanged:null},_create:function(){var i=this.element[0].nodeName.toUpperCase(),t;if(i!=="DIV")throw new Error(i+n.ig.igDoughnutChart.locale.invalidBaseElement);this.css.chart&&this.element.addClass(this.css.chart);n.ui.igBaseChart.prototype._create.apply(this);this._defStyle("selected");this._defStyle("unselected");t=this._chart;t&&(t.sliceClick=n.ig.Delegate.prototype.combine(t.sliceClick,jQuery.proxy(this._fireDoughnutChart_sliceClick,this)),t.holeDimensionsChanged=n.ig.Delegate.prototype.combine(t.holeDimensionsChanged,jQuery.proxy(this._fireDoughnutChart_holeDimensionsChanged,this)))},_creationOptions:null,_createWidget:function(t,i){this._creationOptions=t;this._tooltipTemplate={};this._seriesOpt={};this._seriesColl={};this._tooltip={};this._legends={};n.Widget.prototype._createWidget.apply(this,[t,i])},_beforeInitialOptions:function(n,t){n.provideContainer(t[0])},_provideContainer:function(){},_setInitialOptions:function(n){var t=this._creationOptions,i=this;for(key in t)t.hasOwnProperty(key)&&(v=t[key],v!==null&&i._set_option(n,key,v))},_getDataSourceOwner:function(n){return this._seriesColl[n]},_fireDoughnutChart_holeDimensionsChanged:function(n,t){var i={};i.center={x:t.center().__x,y:t.center().__y};i.radius=t.radius();i.doughnut=this.options;this._trigger("holeDimensionsChanged",null,i)},_fireDoughnutChart_sliceClick:function(n,t){var i={},r=t.slice();r&&(i.slice={},i.slice.item=r.dataContext(),i.slice.isSelected=r.isSelected(),i.slice.isExploded=r.isExploded(),i.doughnut=this.options);this._trigger("sliceClick",null,i);this._chart.allowSliceSelection()===!0&&i.slice.isSelected!=r.isSelected()&&r.isSelected(i.slice.isSelected);this._chart.allowSliceExplosion()===!0&&i.slice.isExploded!=r.isExploded()&&r.isExploded(i.slice.isExploded)},_getValueKeyName:function(){return"valueMemberPath"},_getNotifyResizeName:function(){return"notifyResized"},_createChart:function(){return new n.ig.XamDoughnutChart},_setLegend:function(t,i,r){var u,e,f;i?(i.owner=this.widget,i.type===undefined&&(i.type="item"),u=i.element,u&&(u=n("#"+u)),u&&u.length===1||(e=r.getContainerID(),u=n('<div id="'+e+"_"+t.name()+'_legend" />').insertAfter(this.element),u[0]._remove=!0),t.legend()===null?(u.data("igChartLegend")||i.data&&i.data("igChartLegend")?(u=u?u.data("igChartLegend"):i.data("igChartLegend"),u.options.owner=this.widget.options,u._owner=this.widget,u._ownerCount?u._ownerCount+=1:u._ownerCount=1):(u=u.igChartLegend(i).data("igChartLegend"),u._ownerCount?u._ownerCount+=1:u._ownerCount=1),t.legend(u.legend)):(n("#"+t.legend().name()).igChartLegend(i),t.legend()._ownerCount+=1)):t.legend()!==null&&t.legend().name().length>0&&n("#"+t.legend().name()).length>0&&(u=n("#"+t.legend().name()).data().igChartLegend,u._ownerCount-=1,t.legend(null),u._ownerCount==0&&(f=u.element,u.destroy(),f[0]._remove&&f.remove()))},_htmlCheckExpr:/^[^<]*(<[\w\W]+>)[^>]*$/,_addTooltip:function(t,i,r){var u=t.getContainerID();this._tooltip[i.name()]===undefined&&(this._tooltip[i.name()]=n('<div id="'+u+"_"+i.name()+'_tooltip" class="'+r+'"><\/div>'),this._bindTooltipEvents(this,this._tooltip[i.name()]),i.toolTip(this._tooltip[i.name()]))},_removeTooltip:function(n){this._tooltip[n.name()]!==undefined&&(this._removeTooltipEvents(this._tooltip[n.name()]),delete this._tooltip[n.name()],n.toolTip(null))},_bindTooltipEvents:function(t,i){i.updateToolTip=n.ig.Delegate.prototype.combine(i.updateToolTip,jQuery.proxy(this._fireToolTip_updateToolTip,this));i.hideToolTip=n.ig.Delegate.prototype.combine(i.hideToolTip,jQuery.proxy(this._fireToolTip_hideToolTip,this))},_removeTooltipEvents:function(n){delete n.updateToolTip;delete n.hideToolTip},_fireToolTip_hideToolTip:function(t){var i={},r;i=this._getChartEvt(t);i.tempId=i.series.name;i.element=null;i.series!==null&&(i.element=this._tooltip[i.tempId]);r=this._trigger(this.events.tooltipHiding,null,i);r&&(n.each(this._tooltip,function(n,t){t.hide()}),this._trigger(this.events.tooltipHidden,null,i))},_fireToolTip_updateToolTip:function(t){var i={},r,u;i=this._getChartEvt(t);i.tempId=i.series.name;i.element=null;i.series!==null&&(i.element=this._tooltip[i.tempId]);r=this._trigger(this.events.tooltipShowing,null,i);i===null&&(r=!1);r&&(i.series!==null&&this._tooltipTemplate[i.tempId]!==undefined&&(u=this._tooltipTemplate[i.tempId]),u&&(this._tooltip[i.tempId].children().remove(),i.item===null&&(r=!1),r&&this._tooltip[i.tempId].html(n.ig.tmpl(u,i))),r&&(this._tooltip[i.tempId].show(),this._trigger(this.events.tooltipShown,null,i)))},_getChartEvt:function(n){var t={},r=this._getSeriesOpt(n),i,u=this,f=null;return t.doughnut=u.options,t.series=r,t.item=n.item(),n.series&&n.series()!==null&&(f=n.series()),n.originalEvent&&n.originalEvent()!==null&&n.originalEvent().position&&n.originalEvent().position()!==null&&(i=n.originalEvent().position(),t.positionX=i.__x,t.positionY=i.__y),t},_getSeriesOpt:function(n){var t=this;return t._seriesOpt[n.series().name()]?t._seriesOpt[n.series().name()]:t.options},_setSeriesOption:function(t,i,r,u){var s,f,o,e,h;if(i==="legend")return this._setLegend(t,r,u),!0;if(i==="showTooltip"){r===!0&&this._addTooltip(u,t,this.css.tooltip);r===!1&&this._removeTooltip(t,u);return}if(i==="tooltipTemplate"&&t.toolTip){n.ig.tmpl&&(templ=this._htmlCheckExpr.test(r)?r:n("#"+r).length>0?n("#"+r).text():n(r).length>0?n(r).text():r,this._tooltipTemplate[t.name()]=templ);return}if(i==="legendItemBadgeTemplate"||i==="legendItemTemplate"){this._setDataTemplate(t,i,r);return}if(i==="isSurfaceInteractionDisabled")return t.isSurfaceInteractionDisabled(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,r)),!0;if("othersCategoryText"==i&&null==r)r=String.empty();else if("childrenMemberPath"==i&&"RingSeriesCollection"==u.series().getType().name)return;switch(i){case"itemsSource":return t.itemsSource(r),!0;case"valueMemberPath":return t.valueMemberPath(r),!0;case"labelMemberPath":return t.labelMemberPath(r),!0;case"labelsPosition":switch(r){case"none":t.labelsPosition(0);break;case"center":t.labelsPosition(1);break;case"insideEnd":t.labelsPosition(2);break;case"outsideEnd":t.labelsPosition(3);break;case"bestFit":t.labelsPosition(4)}return!0;case"leaderLineVisibility":switch(r){case"visible":t.leaderLineVisibility(0);break;case"collapsed":t.leaderLineVisibility(1)}return!0;case"leaderLineStyle":return t.leaderLineStyle(r),!0;case"leaderLineType":switch(r){case"straight":t.leaderLineType(0);break;case"arc":t.leaderLineType(1);break;case"spline":t.leaderLineType(2)}return!0;case"leaderLineMargin":return t.leaderLineMargin(r),!0;case"othersCategoryThreshold":return t.othersCategoryThreshold(r),!0;case"othersCategoryType":switch(r){case"number":t.othersCategoryType(0);break;case"percent":t.othersCategoryType(1)}return!0;case"othersCategoryText":return t.othersCategoryText(r),!0;case"formatLabel":return t.formatLabel(r),!0;case"labelExtent":return t.labelExtent(r),!0;case"startAngle":return t.startAngle(r),!0;case"selectedStyle":return t.selectedStyle(r),!0;case"brushes":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,e=0;r&&e<r.length;e++)h=n.ig.Brush.prototype.create(r[e]),o.add(h);return t.brushes(o),!0;case"outlines":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,e=0;r&&e<r.length;e++)h=n.ig.Brush.prototype.create(r[e]),o.add(h);return t.outlines(o),!0;case"isSurfaceInteractionDisabled":return t.isSurfaceInteractionDisabled(r),!0;case"radiusFactor":return t.radiusFactor(r),!0}},_set_option:function(t,r,u){if(r==="legend")return this._setLegend(t,u,t),!0;if(r==="legendItemBadgeTemplate"||r==="legendItemTemplate"){this._setDataTemplate(t,r,u);return}if(n.ui.igBaseChart.prototype._set_option.apply(this,arguments))return!0;if(r==="series"){this._iterationFlag=!this._iterationFlag;var f=u.length;for(i=0;i<f;i++){if(!u[i].name)throw new Error("Series name is missing for series: "+i);this._seriesColl.hasOwnProperty(u[i].name)?(u[i].remove&&this._removeSeries(t,u[i]),this._updateSeries(t,u[i])):this._addSeries(t,u[i])}return!0}if(r==="isSurfaceInteractionDisabled")return t.isSurfaceInteractionDisabled(n.ig.util.toNullable(n.ig.Boolean.prototype.$type,u)),!0;switch(r){case"allowSliceSelection":return t.allowSliceSelection(u),!0;case"isSurfaceInteractionDisabled":return t.isSurfaceInteractionDisabled(u),!0;case"allowSliceExplosion":return t.allowSliceExplosion(u),!0;case"innerExtent":return t.innerExtent(u),!0;case"selectedStyle":return t.selectedStyle(u),!0}},_setDataTemplate:function(t,i,r){var u=new n.ig.DataTemplate,f=!1;if(!r){t[i]&&t[i](null);return}r.requireThis&&(f=!0);r.render?f?u.render(n.proxy(r.render,r)):u.render(r.render):u.render(r);r.measure&&(f?u.measure(n.proxy(r.measure,r)):u.measure(r.measure));r.passStarting&&(f?u.passStarting(n.proxy(r.passStarting,r)):u.passStarting(r.passStarting));r.passCompleted&&(f?u.passCompleted(n.proxy(r.passCompleted,r)):u.passCompleted(r.passCompleted));t[i]&&t[i](u)},addSeries:function(n){this._addSeries(this._chart,n)},_addSeries:function(t,i){var r;if(i&&i.remove!=!0&&this._seriesColl&&!this._seriesColl.hasOwnProperty(i.name)){r=i.type&&i.type!=="flat"?new n.ig.HierarchicalRingSeries:new n.ig.RingSeries;r.name(i.name);this._seriesOpt[i.name]={};for(currentKey in i)i.hasOwnProperty(currentKey)&&(this._setSeriesOption(r,currentKey,i[currentKey],t),this._seriesOpt[i.name][currentKey]=i[currentKey]);this._seriesColl[i.name]=r;i.dataSource&&this._dataBindInternal(i,i.name);t.series().add(r);r.selectedStyle()==null&&r.selectedStyleResolved(t.selectedStyle())}},removeSeries:function(n){this._removeSeries(this._chart,n)},_removeSeries:function(n,t){if(t&&this._seriesColl&&this._seriesColl.hasOwnProperty(t.name)){var i=this._seriesColl[t.name];i&&(delete this._seriesColl[t.name],n.series().contains(i)&&(this._setLegend(i),n.series().remove(i),this._removeTooltip(i)));this._seriesOpt[t.name]&&delete this._seriesOpt[t.name];this._tooltipTemplate[t.name]&&delete this._tooltipTemplate[t.name]}},updateSeries:function(n){this._updateSeries(this._chart,n)},_updateSeries:function(n,t){if(t&&this._seriesColl&&this._seriesColl.hasOwnProperty(t.name)){var i=this._seriesColl[t.name];if(i&&!t.remove){for(currentKey in t)t.hasOwnProperty(currentKey)&&(this._setSeriesOption(i,currentKey,t[currentKey],n),this._seriesOpt[t.name][currentKey]=t[currentKey]);this._seriesColl[t.name]=i;t.dataSource&&this._dataBindInternal(t,t.name)}}},getCenterCoordinates:function(){if(this._chart){var n=this._chart.getCenterCoordinates();return{x:n.__x,y:n.__y}}return{x:0,y:0}},getHoleRadius:function(){return this._chart?this._chart.getHoleRadius():0},exportVisualData:function(){return this._chart?this._chart.exportVisualData():null},flush:function(){this.chart()&&this.chart().flush()},_setOption:function(t,i){var r=this._chart,u=this.options;return u[t]===i?this:(n.Widget.prototype._setOption.apply(this,arguments),this._set_option(r,t,i),this)},_defStyle:function(n){var t,u,f,r={},e=n+"SliceStyle",i=this.element.find("SPAN");i.length!==1||this.options[e]||(u=i.css("background-color"),f=i.css("border-top-color"),n="ui-doughnut-slice-"+n,i.addClass(n),t=i.css("background-color"),t&&t!=="transparent"&&t!==u&&(r.fill=t),t=i.css("border-top-color"),t&&t!==f&&(r.stroke=t),t=parseFloat(i.css("opacity")),!isNaN(t)&&t>0&&t<1&&(r.opacity=t),i.removeClass(n),this._set_option(this._chart,e,r))},destroy:function(){var t,i;for(t in this._seriesColl)i=this._seriesColl[t],this._setLegend(i),this._removeTooltip(i),delete this._seriesColl[t],delete this._seriesOpt[t],delete this._tooltipTemplate[t];delete this._tooltipTemplate;delete this._seriesOpt;delete this._seriesColl;delete this._tooltip;delete this._legends;n.ui.igBaseChart.prototype.destroy.apply(this)}});n.extend(n.ui.igDoughnutChart,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){var t=function(n,t){return n===null||n===undefined||t&&typeof n=="number"&&isNaN(n)};n.widget("ui.igFunnelChart",n.ui.igBaseChart,{css:{chart:"ui-funnel ui-corner-all ui-widget-content",tooltip:"ui-funnel-tooltip ui-widget-content ui-corner-all"},options:{bezierPoints:null,legend:null,valueMemberPath:null,brushes:null,outlines:null,bottomEdgeWidth:.35,innerLabelMemberPath:null,outerLabelMemberPath:null,innerLabelVisibility:null,outerLabelVisibility:null,outerLabelAlignment:null,funnelSliceDisplay:null,formatInnerLabel:null,formatOuterLabel:null,transitionDuration:0,isInverted:null,useBezierCurve:null,allowSliceSelection:null,useUnselectedStyle:!1,selectedSliceStyle:null,unselectedSliceStyle:null,useOuterLabelsForLegend:null,outlineThickness:-1},events:{sliceClicked:null},_create:function(){n.ui.igBaseChart.prototype._create.apply(this);this._defStyle("selected");this._defStyle("unselected");var t=this._chart;t&&(t.sliceClicked=n.ig.Delegate.prototype.combine(t.sliceClicked,jQuery.proxy(this._fireFunnelChart_sliceClicked,this)))},selectedSliceItems:function(n){var i,r,t=this._chart;if(n===undefined){for(t=this.selectedSliceIndexes(),i=t?t.length:0;i-->0;)r=t[i]=this.getDataItem(t[i]),r===null&&t.splice(i,1);return t}for(i=n?n.length:0,t=[];i-->0;)r=this.findIndexOfItem(n[i]),r>=0&&(t[t.length]=r);return this.selectedSliceIndexes(t),this},selectedSliceIndexes:function(n){var i,r,t=this._chart;if(t&&n!==undefined&&n!==!0)return t.selectedIndexes(n),this;if(t=t?t.selectedIndexes():null,n)return t;for(i=t?t.length:0,n=[];i-->0;)r=n[i]=t[i],(r===null||isNaN(r)||r<0)&&n.splice(i,1);return n},isSelected:function(n){var t=this.selectedSliceIndexes(!0);return!(n===null||!t||!t.contains(typeof n=="number"?n:this.findIndexOfItem(n)))},toggleSelection:function(n){return typeof n!="number"&&(n=this.findIndexOfItem(n)),n>=0&&this._chart&&this._chart.toggleSelection(n),this},_fireFunnelChart_sliceClicked:function(n,t){var i=t.index();this._trigger("sliceClicked",null,{owner:this,index:i,item:t.item(),selected:this.isSelected(i)})},_getValueKeyName:function(){return"valueMemberPath"},_getRemoteDataKeys:function(){var n=this.options;return[n.valueMemberPath,n.innerLabelMemberPath,n.outerLabelMemberPath]},_getNotifyResizeName:function(){return"notifyResized"},_createChart:function(){return new n.ig.XamFunnelChart},_setLegend:function(t,i){var r=this._legend;(r&&(r.igChartLegend("destroy"),r[0]._remove&&r.remove(),delete this._legend,t.legend(null)),i)&&(typeof i=="string"&&(i={element:i}),r=i.element,r&&(r=n("#"+r)),i.owner=this,i.type="item",r&&r.length===1||(r=n("<div />").insertAfter(this.element),r[0]._remove=!0),this._legend=r,t.legend(r.igChartLegend(i).data("igChartLegend").legend))},_set_option:function(t,i,r){var e,s,f,o,u,h;if(i==="legend")return this._setLegend(t,r),!0;if(i==="bezierPoints"){if(u=-1,e=0,typeof r=="string")for(r=r.split(" "),e=r.length;++u<e;)isNaN(r[u]=parseFloat(r[u]))&&(e=0);return e<2&&(e=4,r=[.5,0,.5,1]),t.upperBezierControlPoint({__x:r[0],__y:r[1]}),e>3&&t.lowerBezierControlPoint({__x:r[2],__y:r[3]}),!0}if(n.ui.igBaseChart.prototype._set_option.apply(this,arguments))return!0;switch(i){case"valueMemberPath":return t.valueMemberPath(r),!0;case"brushes":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,u=0;r&&u<r.length;u++)h=n.ig.Brush.prototype.create(r[u]),o.add(h);return t.brushes(o),!0;case"outlines":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,u=0;r&&u<r.length;u++)h=n.ig.Brush.prototype.create(r[u]),o.add(h);return t.outlines(o),!0;case"bottomEdgeWidth":return t.bottomEdgeWidth(r),!0;case"innerLabelMemberPath":return t.innerLabelMemberPath(r),!0;case"outerLabelMemberPath":return t.outerLabelMemberPath(r),!0;case"innerLabelVisibility":switch(r){case"visible":t.innerLabelVisibility(0);break;case"collapsed":t.innerLabelVisibility(1)}return!0;case"outerLabelVisibility":switch(r){case"visible":t.outerLabelVisibility(0);break;case"collapsed":t.outerLabelVisibility(1)}return!0;case"outerLabelAlignment":switch(r){case"left":t.outerLabelAlignment(0);break;case"right":t.outerLabelAlignment(1)}return!0;case"funnelSliceDisplay":switch(r){case"uniform":t.funnelSliceDisplay(0);break;case"weighted":t.funnelSliceDisplay(1)}return!0;case"formatInnerLabel":return t.formatInnerLabel(r),!0;case"formatOuterLabel":return t.formatOuterLabel(r),!0;case"transitionDuration":return t.transitionDuration(r),!0;case"isInverted":return t.isInverted(r),!0;case"useBezierCurve":return t.useBezierCurve(r),!0;case"allowSliceSelection":return t.allowSliceSelection(r),!0;case"useUnselectedStyle":return t.useUnselectedStyle(r),!0;case"selectedSliceStyle":return t.selectedSliceStyle(r),!0;case"unselectedSliceStyle":return t.unselectedSliceStyle(r),!0;case"useOuterLabelsForLegend":return t.useOuterLabelsForLegend(r),!0;case"outlineThickness":return t.outlineThickness(r),!0}},_setOption:function(t,i){var r=this._chart,u=this.options;return u[t]===i?this:(n.Widget.prototype._setOption.apply(this,arguments),this._set_option(r,t,i),this)},_dataEvt:function(n,t){if(n!==0&&n!==1){var r,u,i=this._oldSel;if(t){i=this.selectedSliceItems();this._oldSel=i&&i.length?i:null;return}if(delete this._oldSel,r=this.selectedSliceIndexes(),i||r&&r.length){for(u=i?i.length:0;u-->0;)i[u]=this.findIndexOfItem(i[u]),i[u]<0?(r=null,i.splice(u,1)):r&&r[u]!==i[u]&&(r=null);r||this.selectedSliceIndexes(i||null)}}},_defStyle:function(n){var t,u,f,r={},e=n+"SliceStyle",i=this.element.find("SPAN");i.length!==1||this.options[e]||(u=i.css("background-color"),f=i.css("border-top-color"),n="ui-funnel-slice-"+n,i.addClass(n),t=i.css("background-color"),t&&t!=="transparent"&&t!==u&&(r.fill=t),t=i.css("border-top-color"),t&&t!==f&&(r.stroke=t),t=parseFloat(i.css("opacity")),!isNaN(t)&&t>0&&t<1&&(r.opacity=t),i.removeClass(n),this._set_option(this._chart,e,r))},destroy:function(){this._chart&&this._setLegend(this._chart);n.ui.igBaseChart.prototype.destroy.apply(this)}});n.extend(n.ui.igFunnelChart,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery=="undefined")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igRadialGauge",{css:{unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix ui-html5-non-html5",radialGauge:"ui-radialgauge"},events:{formatLabel:null,alignLabel:null},options:{ranges:[{name:null,startValue:0,endValue:0,outerStartExtent:0,outerEndExtent:0,innerStartExtent:0,innerEndExtent:0,brush:null,outline:null,strokeThickness:0,remove:!1}],rangeBrushes:null,rangeOutlines:null,minimumValue:0,maximumValue:0,interval:0,centerX:0,centerY:0,value:0,scaleStartAngle:0,scaleEndAngle:0,scaleSweepDirection:null,transitionDuration:0,transitionEasingFunction:null,needleBrush:null,needleOutline:null,needleStartExtent:0,needleEndExtent:0,needleShape:null,needleStartWidthRatio:0,needleEndWidthRatio:0,needleBaseFeatureWidthRatio:0,needleBaseFeatureExtent:0,needlePointFeatureWidthRatio:0,needlePointFeatureExtent:0,needlePivotWidthRatio:0,needlePivotInnerWidthRatio:0,needlePivotShape:null,scaleStartExtent:0,needlePivotBrush:null,needlePivotOutline:null,needleStrokeThickness:0,needlePivotStrokeThickness:0,scaleEndExtent:0,labelExtent:0,labelInterval:0,tickStartExtent:0,tickEndExtent:0,tickStrokeThickness:0,tickBrush:null,fontBrush:null,minorTickStartExtent:0,minorTickEndExtent:0,minorTickStrokeThickness:0,minorTickBrush:null,minorTickCount:0,scaleBrush:null,backingBrush:null,backingOutline:null,backingStrokeThickness:0,backingOuterExtent:0,backingOversweep:0,scaleOversweep:0,scaleOversweepShape:null,backingCornerRadius:0,backingInnerExtent:0,backingShape:null,radiusMultiplier:0,duplicateLabelOmissionStrategy:null,font:null,transitionProgress:0},_rangesColl:{},_setOption:function(t,i,r){var u=this._radialGauge,f=this.options;if(!r||f[t]!==i)return(n.Widget.prototype._setOption.apply(this,arguments),this._set_option(u,t,i))?this:(this._set_generated_option(u,t,i),this)},_set_generated_option:function(t,i,r){var s,f,o,e,u;switch(i){case"rangeBrushes":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,e=0;r&&e<r.length;e++)u=n.ig.Brush.prototype.create(r[e]),o.add(u);return t.rangeBrushes(o),!0;case"rangeOutlines":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,e=0;r&&e<r.length;e++)u=n.ig.Brush.prototype.create(r[e]),o.add(u);return t.rangeOutlines(o),!0;case"minimumValue":return t.minimumValue(r),!0;case"maximumValue":return t.maximumValue(r),!0;case"interval":return t.interval(r),!0;case"centerX":return t.centerX(r),!0;case"centerY":return t.centerY(r),!0;case"value":return t.value(r),!0;case"scaleStartAngle":return t.scaleStartAngle(r),!0;case"scaleEndAngle":return t.scaleEndAngle(r),!0;case"scaleSweepDirection":switch(r){case"counterclockwise":t.scaleSweepDirection(0);break;case"clockwise":t.scaleSweepDirection(1)}return!0;case"transitionDuration":return t.transitionDuration(r),!0;case"needleBrush":return r==null?t.needleBrush(null):(u=n.ig.Brush.prototype.create(r),t.needleBrush(u)),!0;case"needleOutline":return r==null?t.needleOutline(null):(u=n.ig.Brush.prototype.create(r),t.needleOutline(u)),!0;case"needleStartExtent":return t.needleStartExtent(r),!0;case"needleEndExtent":return t.needleEndExtent(r),!0;case"needleShape":switch(r){case"none":t.needleShape(0);break;case"rectangle":t.needleShape(1);break;case"triangle":t.needleShape(2);break;case"needle":t.needleShape(3);break;case"trapezoid":t.needleShape(4);break;case"rectangleWithBulb":t.needleShape(5);break;case"triangleWithBulb":t.needleShape(6);break;case"needleWithBulb":t.needleShape(7);break;case"trapezoidWithBulb":t.needleShape(8)}return!0;case"needleStartWidthRatio":return t.needleStartWidthRatio(r),!0;case"needleEndWidthRatio":return t.needleEndWidthRatio(r),!0;case"needleBaseFeatureWidthRatio":return t.needleBaseFeatureWidthRatio(r),!0;case"needleBaseFeatureExtent":return t.needleBaseFeatureExtent(r),!0;case"needlePointFeatureWidthRatio":return t.needlePointFeatureWidthRatio(r),!0;case"needlePointFeatureExtent":return t.needlePointFeatureExtent(r),!0;case"needlePivotWidthRatio":return t.needlePivotWidthRatio(r),!0;case"needlePivotInnerWidthRatio":return t.needlePivotInnerWidthRatio(r),!0;case"needlePivotShape":switch(r){case"none":t.needlePivotShape(0);break;case"circle":t.needlePivotShape(1);break;case"circleWithHole":t.needlePivotShape(2);break;case"circleOverlay":t.needlePivotShape(3);break;case"circleOverlayWithHole":t.needlePivotShape(4);break;case"circleUnderlay":t.needlePivotShape(5);break;case"circleUnderlayWithHole":t.needlePivotShape(6)}return!0;case"scaleStartExtent":return t.scaleStartExtent(r),!0;case"needlePivotBrush":return r==null?t.needlePivotBrush(null):(u=n.ig.Brush.prototype.create(r),t.needlePivotBrush(u)),!0;case"needlePivotOutline":return r==null?t.needlePivotOutline(null):(u=n.ig.Brush.prototype.create(r),t.needlePivotOutline(u)),!0;case"needleStrokeThickness":return t.needleStrokeThickness(r),!0;case"needlePivotStrokeThickness":return t.needlePivotStrokeThickness(r),!0;case"scaleEndExtent":return t.scaleEndExtent(r),!0;case"labelExtent":return t.labelExtent(r),!0;case"labelInterval":return t.labelInterval(r),!0;case"tickStartExtent":return t.tickStartExtent(r),!0;case"tickEndExtent":return t.tickEndExtent(r),!0;case"tickStrokeThickness":return t.tickStrokeThickness(r),!0;case"tickBrush":return r==null?t.tickBrush(null):(u=n.ig.Brush.prototype.create(r),t.tickBrush(u)),!0;case"fontBrush":return r==null?t.fontBrush(null):(u=n.ig.Brush.prototype.create(r),t.fontBrush(u)),!0;case"minorTickStartExtent":return t.minorTickStartExtent(r),!0;case"minorTickEndExtent":return t.minorTickEndExtent(r),!0;case"minorTickStrokeThickness":return t.minorTickStrokeThickness(r),!0;case"minorTickBrush":return r==null?t.minorTickBrush(null):(u=n.ig.Brush.prototype.create(r),t.minorTickBrush(u)),!0;case"minorTickCount":return t.minorTickCount(r),!0;case"scaleBrush":return r==null?t.scaleBrush(null):(u=n.ig.Brush.prototype.create(r),t.scaleBrush(u)),!0;case"backingBrush":return r==null?t.backingBrush(null):(u=n.ig.Brush.prototype.create(r),t.backingBrush(u)),!0;case"backingOutline":return r==null?t.backingOutline(null):(u=n.ig.Brush.prototype.create(r),t.backingOutline(u)),!0;case"backingStrokeThickness":return t.backingStrokeThickness(r),!0;case"backingOuterExtent":return t.backingOuterExtent(r),!0;case"backingOversweep":return t.backingOversweep(r),!0;case"scaleOversweep":return t.scaleOversweep(r),!0;case"scaleOversweepShape":switch(r){case"auto":t.scaleOversweepShape(0);break;case"circular":t.scaleOversweepShape(1);break;case"fitted":t.scaleOversweepShape(2)}return!0;case"backingCornerRadius":return t.backingCornerRadius(r),!0;case"backingInnerExtent":return t.backingInnerExtent(r),!0;case"backingShape":switch(r){case"circular":t.backingShape(0);break;case"fitted":t.backingShape(1)}return!0;case"radiusMultiplier":return t.radiusMultiplier(r),!0;case"duplicateLabelOmissionStrategy":switch(r){case"omitLast":t.duplicateLabelOmissionStrategy(0);break;case"omitFirst":t.duplicateLabelOmissionStrategy(1);break;case"omitNeither":t.duplicateLabelOmissionStrategy(2);break;case"omitBoth":t.duplicateLabelOmissionStrategy(3)}return!0;case"font":return t.font(r),!0;case"transitionProgress":return t.transitionProgress(r),!0}},_set_option:function(t,r,u){var f;switch(r){case"ranges":for(f=u.length,i=0;i<f;i++){if(!u[i].name)throw new Error("Range name is missing for range: "+i);this._rangesColl.hasOwnProperty(u[i].name)?(this._removeRange(t,u[i]),this._updateRange(t,u[i])):this._addRange(t,u[i])}return!0;case"width":return this._setSize(t,"width",u),!0;case"height":return this._setSize(t,"height",u),!0;case"transitionEasingFunction":return t.transitionEasingFunction(n.ig.util.getEasingFunction(u)),!0}},getRangeNames:function(){var n="";for(var t in this._rangesColl)n+=t+"\n";return n},addRange:function(n){this._addRange(this._radialGauge,n)},_addRange:function(t,i){if(i&&i.remove!=!0&&this._rangesColl&&t&&!this._rangesColl.hasOwnProperty(i.name)){var r=new n.ig.XamRadialGaugeRange;for(currentKey in i)i.hasOwnProperty(currentKey)&&this._setRangeOption(r,currentKey,i[currentKey]);this._rangesColl[i.name]=r;t.ranges()&&t.ranges().add(r)}},removeRange:function(n){this._removeRange(this._radialGauge,n)},_removeRange:function(n,t){if(t&&this._rangesColl&&n&&this._rangesColl.hasOwnProperty(t.name)){var i=this._rangesColl[t.name];i&&t.remove==!0&&(delete this._rangesColl[t.name],n.ranges()&&n.ranges().contains(i)&&n.ranges().remove(i))}},updateRange:function(n){this._updateRange(this._radialGauge,n)},_updateRange:function(n,t){if(t&&this._rangesColl&&n&&this._rangesColl.hasOwnProperty(t.name)){var i=this._rangesColl[t.name];if(i&&!t.remove){for(currentKey in t)t.hasOwnProperty(currentKey)&&this._setRangeOption(i,currentKey,t[currentKey]);this._rangesColl[t.name]=i}}},clearRanges:function(){this._radialGauge&&this._radialGauge.ranges()&&(this._radialGauge.ranges().clear(),this._rangesColl={})},_creationOptions:null,_radialGauge:null,_createWidget:function(t,i){this._creationOptions=t;n.Widget.prototype._createWidget.apply(this,[t,i])},_create:function(){var t,u,o,i,h=-1,f=this,e=f.element,s=e[0].style,r=this._creationOptions;if(f._old_state={style:{position:s.position,width:s.width,height:s.height},css:e[0].className,elems:e.find("*")},!n.ig.util._isCanvasSupported()){n.ig.util._renderUnsupportedBrowser(this);return}i=this._createGauge();f._radialGauge=i;i.formatLabel=n.ig.Delegate.prototype.combine(i.formatLabel,jQuery.proxy(this._fireRadialGauge_formatLabel,this));i.alignLabel=n.ig.Delegate.prototype.combine(i.alignLabel,jQuery.proxy(this._fireRadialGauge_alignLabel,this));r.hasOwnProperty("width")&&(e[0].style.width=r.width);r.hasOwnProperty("height")&&(e[0].style.height=r.height);i.provideContainer(e[0]);for(t in r)r.hasOwnProperty(t)&&(u=r[t],u!==null&&this._setOption(t,u,!1));while(h++<1)t=h===0?"width":"height",r[t]?(o=t,u=r[t]):u=e[0].style[t],u&&u.indexOf("%")>0&&f._setSize(i,o=t,u);o||f._setSize(i,"width");f.css&&f.css.radialGauge&&e.addClass(f.css.radialGauge)},_createGauge:function(){return this._rangesColl={},new n.ig.XamRadialGauge},_fireRadialGauge_formatLabel:function(n,t){var i={};i.actualMinimumValue=t.actualMinimumValue;i.actualMaximumValue=t.actualMaximumValue;i.startAngle=t.startAngle;i.endAngle=t.endAngle;i.angle=t.angle;i.value=t.value;i.label=t.label;i.owner=this;this._trigger("formatLabel",null,i);t.value=i.value;t.label=i.label},_fireRadialGauge_alignLabel:function(n,t){var i={};i.actualMinimumValue=t.actualMinimumValue;i.actualMaximumValue=t.actualMaximumValue;i.startAngle=t.startAngle;i.endAngle=t.endAngle;i.angle=t.angle;i.value=t.value;i.label=t.label;i.width=t.width;i.height=t.height;i.offsetX=t.offsetX;i.offsetY=t.offsetY;i.owner=this;this._trigger("alignLabel",null,i);t.value=i.value;t.label=i.label;t.offsetX=i.offsetX;t.offsetY=i.offsetY;t.width=i.width;t.height=i.height},_setSize:function(t,i,r){n.ig.util.setSize(this.element,i,r,t,this._getNotifyResizeName())},_getNotifyResizeName:function(){return"containerResized"},_setRangeOption:function(t,i,r){var u;switch(i){case"brush":u=new n.ig.Brush;u.fill(r);t.brush(u);break;case"outline":u=new n.ig.Brush;u.fill(r);t.outline(u);break;case"startValue":t.startValue(r);break;case"endValue":t.endValue(r);break;case"outerStartExtent":t.outerStartExtent(r);break;case"outerEndExtent":t.outerEndExtent(r);break;case"innerStartExtent":t.innerStartExtent(r);break;case"innerEndExtent":t.innerEndExtent(r);break;case"strokeThickness":t.strokeThickness(r)}},scaleValue:function(n){if(this._radialGauge)return this._radialGauge.scaleValue(n)},unscaleValue:function(n){if(this._radialGauge)return this._radialGauge.unscaleValue(n)},getValueForPoint:function(t,i){if(this._radialGauge){var r={__x:t,__y:i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return this._radialGauge.getValueForPoint(r)}},needleContainsPoint:function(t,i){if(this._radialGauge){var r={__x:t,__y:i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return this._radialGauge.needleContainsPoint(r)}},exportVisualData:function(){if(this._radialGauge)return this._radialGauge.exportVisualData()},flush:function(){this._radialGauge&&this._radialGauge.view()&&this._radialGauge.view().flush()},destroy:function(){var i,u,r=this._radialGauge,t=this._old_state,f=this.element;if(t){f.find("*").not(t.elems).remove();this.css.radialGauge&&f.removeClass(this.css.radialGauge);t=t.style;u=f[0].style;for(i in t)t.hasOwnProperty(i)&&u[i]!==t[i]&&(u[i]=t[i]);r&&this._setSize(r);n.Widget.prototype.destroy.apply(this,arguments);r&&r.destroy&&r.destroy();delete this._radialGauge;delete this._old_state}},styleUpdated:function(){this._radialGauge&&this._radialGauge.styleUpdated()}});n.extend(n.ui.igRadialGauge,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery=="undefined")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igRadialMenu",{css:{unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix ui-html5-non-html5",radialMenu:"ui-radialmenu",tooltip:"ui-radialmenu-tooltip ui-corner-all"},events:{closed:null,opened:null},options:{items:[{type:"button",name:null,recentItemName:null,value:NaN,pendingValue:NaN,autoRotateChildren:!0,checkedHighlightBrush:null,foreground:null,highlightBrush:null,innerAreaFill:null,innerAreaHotTrackFill:null,innerAreaHotTrackStroke:null,innerAreaStroke:null,innerAreaStrokeThickness:1,isEnabled:!0,isToolTipEnabled:!0,outerRingButtonHotTrackFill:null,outerRingButtonHotTrackForeground:null,outerRingButtonHotTrackStroke:null,outerRingButtonFill:null,outerRingButtonForeground:null,outerRingButtonStroke:null,outerRingButtonStrokeThickness:1,toolTip:null,wedgeIndex:-1,wedgeSpan:1,autoUpdateRecentItem:null,childItemPlacement:"asChildren",checkBehavior:"none",isChecked:!1,groupName:null,header:null,iconUri:null,color:null,pendingValueNeedleBrush:null,reserveFirstSlice:!1,smallIncrement:1,tickBrush:null,ticks:null,trackStartColor:null,trackEndColor:null,valueNeedleBrush:null,closed:null,opened:null,checked:null,click:null,unchecked:null,colorChanged:null,colorWellClick:null,valueChanged:null,pendingValueChanged:null}],currentOpenMenuItemName:null,centerButtonContentWidth:28,centerButtonContentHeight:28,centerButtonClosedFill:null,centerButtonClosedStroke:null,centerButtonFill:null,centerButtonHotTrackFill:null,centerButtonHotTrackStroke:null,centerButtonStroke:null,centerButtonStrokeThickness:0,font:null,isOpen:!1,menuBackground:null,menuItemOpenCloseAnimationDuration:250,menuItemOpenCloseAnimationEasingFunction:null,menuOpenCloseAnimationDuration:250,menuOpenCloseAnimationEasingFunction:null,minWedgeCount:8,outerRingFill:null,outerRingThickness:26,outerRingStroke:null,outerRingStrokeThickness:0,rotationInDegrees:-90,rotationAsPercentageOfWedge:-.5,wedgePaddingInDegrees:0},_setOption:function(t,i,r){var u=this._radialMenu,f=this.options;if(!r||f[t]!==i)return n.Widget.prototype._setOption.apply(this,arguments),this._set_option(u,t,i),this},_set_generated_option:function(n,t,i){switch(t){case"font":return n.font(i),!0}},_set_option:function(t,i,r){var u=this;switch(i){case"width":return this._setSize(t,"width",r),!0;case"height":return this._setSize(t,"height",r),!0;case"items":return t.items().clear(),this._itemKeys={},n.each(r,function(n,i){u._addItem(t,i)}),this.options.hasOwnProperty("currentOpenMenuItemName")&&this._set_option(t,"currentOpenMenuItemName",this.options.currentOpenMenuItemName),!0;case"currentOpenMenuItemName":return t.items().count()>0&&(r&&this._itemKeys.hasOwnProperty(r)?t.currentOpenMenuItem(this._itemKeys[r]):t.currentOpenMenuItem(null)),!0;case"menuItemOpenCloseAnimationEasingFunction":case"menuOpenCloseAnimationEasingFunction":return r=n.ig.util.getEasingFunction(r),t[i](r),!0;default:return this._set_generated_option(t,i,r)?!0:this._setProperty(t,i,r,!0)}},itemOption:function(t,i,r){var u=this._itemKeys[t],f,r,e;if(u===undefined)throw new Error("Specified itemKey is invalid");if(f=u._dataItem,arguments.length===1)return f;if(typeof i=="string"){if(r===undefined)return r=f[i],r===undefined&&(r=n.ui.igRadialMenu.prototype.options.items[0][i]),r;if(i=="items")throw new Error("Not supported");f[i]=r;this._setItemOption(u,i,r,!1);i=="recentItemName"&&(e=this._itemKeys[i],this._setItemOption(u,"recentItem",e===undefined?null:e._dataItem))}else throw new Error("Not supported");return!0},_addItem:function(t,i){var r,u,f,s,e,o;switch(i.type){case"coloritem":r=new n.ig.RadialMenuColorItem;break;case"colorwell":r=new n.ig.RadialMenuColorWell;break;case"numericitem":r=new n.ig.RadialMenuNumericItem;break;case"numericgauge":r=new n.ig.RadialMenuNumericGauge;break;case"list":case"button":default:r=new n.ig.RadialMenuItem}r._dataItem=i;r.__setOptionCount__=0;i.name&&(this._itemKeys[i.name]=r);for(u in i){f=i[u];switch(u){case"items":for(s=f.length,e=0;e<s;e++)this._addItem(r,f[e]);break;default:this._setItemOption(r,u,f)}}r.recentItemName&&(o=this._itemKeys[r.recentItemName],this._setItemOption(r,"recentItem",o===undefined?null:o._dataItem));t.items().add(r);r.propertyChanged=n.ig.Delegate.prototype.combine(r.propertyChanged,jQuery.proxy(this._onRadialMenuItemPropChanged,this))},_setItemOption:function(t,i,r){var u,f,e;if(!i in t)return!1;switch(i){case"closed":case"opened":case"checked":case"click":case"unchecked":case"colorWellClick":u=jQuery.proxy(this._onRadialMenuItemEvent,{self:this,eventName:i});t[i]&&(t[i]=n.ig.Delegate.prototype.remove(t[i],u));r&&(t[i]=n.ig.Delegate.prototype.combine(t[i],u));break;case"colorChanged":case"valueChanged":case"pendingValueChanged":u=jQuery.proxy(this._onRadialMenuItemValueEvent,{self:this,eventName:i});t[i]&&(t[i]=n.ig.Delegate.prototype.remove(t[i],u));r&&(t[i]=n.ig.Delegate.prototype.combine(t[i],u));break;case"recentItemName":t.recentItemName=r;break;default:if(r==="{RecentItem}"){if(f=t[i+"Property"],f===undefined)return!1;e=new n.ig.BindingExpression(t,"recentItemContainer."+i,t,f);t.bindingExpressions===undefined&&(t.bindingExpressions={});t.bindingExpressions[i]=e}else i in t&&(t.__setOptionCount__++,this._setProperty(t,i,r),t.__setOptionCount__--)}return!0},_setProperty:function(t,i,r,u){var h,f,e,o,s;if(r!==null)if(h=t[i+"Property"],h!==undefined){if(f=h.propertyType(),r===undefined)return t.clearValue(h),!0;if(n.ig.Brush.prototype.$type.equals(f))r=n.ig.Brush.prototype.create(r);else if(n.ig.DataTemplate.prototype.$type.equals(f))e=new n.ig.DataTemplate,r.render?(e.render(r.render),r.measure&&e.measure(r.measure)):e.render(r),r=e;else{if(o=n.ig.Nullable.prototype.getUnderlyingType(f),o!==null&&(f=o),typeof r=="string"&&f!==String){if(r.length===0)return!1;if(n.ig.util.canAssign(n.ig.Enum.prototype.$type,f))r=n.ig.Enum.prototype.parse(f,r,!0);else if(n.ig.Color.prototype.$type.equals(f))$clr=new n.ig.Color,$clr.colorString(r),r=$clr;else if(n.ig.Number.prototype.$type.equals(f))r=parseFloat(r);else if(n.ig.Boolean.prototype.$type.equals(f))r=r.toLowerCase()=="true";else if(n.ig.DoubleCollection.prototype.$type.equals(f))for(r=r.split(","),s=0;s<r.length;s++)r[s]=parseFloat(r[s])}o!==null&&(r=n.ig.util.toNullable(o,r))}}else if(u)return!1;return t[i](r),!0},exportVisualData:function(){if(this._radialMenu)return this._radialMenu.exportVisualData()},_creationOptions:null,_radialMenu:null,_itemKeys:null,_itemPropertyChangeHandlers:null,_menuPropertyChangeHandlers:null,_createWidget:function(t,i){this._creationOptions=t;n.Widget.prototype._createWidget.apply(this,[t,i])},_create:function(){var r,f,s,i,h=-1,t=this,e=t.element,o=e[0].style,u=this._creationOptions;if(t._old_state={style:{position:o.position,width:o.width,height:o.height,visibility:o.visibility},css:e[0].className,elems:e.find("*")},!n.ig.util._isCanvasSupported()){n.ig.util._renderUnsupportedBrowser(this);return}i=this._createMenu();t._radialMenu=i;t._itemKeys={};t._itemPropertyChangeHandlers={};t._itemPropertyChangeHandlers[n.ig.RadialMenuColorItemBase.prototype.colorProperty.name()]=function(n){n._dataItem.color=n.color().colorString()};t._itemPropertyChangeHandlers[n.ig.RadialMenuItem.prototype.isCheckedProperty.name()]=function(n){n._dataItem.isChecked=n.isChecked()};t._itemPropertyChangeHandlers[n.ig.RadialMenuNumericItem.prototype.valueProperty.name()]=t._itemPropertyChangeHandlers[n.ig.RadialMenuNumericGauge.prototype.valueProperty.name()]=function(n){var t=n.value();n._dataItem.value=t!=null&&typeof t=="object"?t.value():t};t._itemPropertyChangeHandlers[n.ig.RadialMenuNumericGauge.prototype.pendingValueProperty.name()]=function(n){var t=n.pendingValue();n._dataItem.pendingValue=t!=null&&typeof t=="object"?t.value():t};t._itemPropertyChangeHandlers[n.ig.RadialMenuItem.prototype.recentItemProperty.name()]=function(n){var t=n.recentItem();n._dataItem.recentItemName=t==null?null:t.name};t._menuPropertyChangeHandlers={};t._menuPropertyChangeHandlers[n.ig.XamRadialMenu.prototype.isOpenProperty.name()]=function(n){this.options.isOpen=n.isOpen()};t._menuPropertyChangeHandlers[n.ig.XamRadialMenu.prototype.currentOpenMenuItemProperty.name()]=function(n){var t=n.currentOpenMenuItem();this.options.currentOpenMenuItemName=t!=null&&t.name?t.name:null};i.propertyChanged=n.ig.Delegate.prototype.combine(i.propertyChanged,jQuery.proxy(this._onRadialMenuPropChanged,this));i.closed=n.ig.Delegate.prototype.combine(i.closed,jQuery.proxy(this._fireRadialMenu_closed,this));i.opened=n.ig.Delegate.prototype.combine(i.opened,jQuery.proxy(this._fireRadialMenu_opened,this));u.hasOwnProperty("width")&&(e[0].style.width=u.width);u.hasOwnProperty("height")&&(e[0].style.height=u.height);i.provideContainer(e[0]);for(r in u)u.hasOwnProperty(r)&&(f=u[r],f!==null&&this._setOption(r,f,!1));while(h++<1)r=h===0?"width":"height",u[r]?(s=r,f=u[r]):f=e[0].style[r],f&&f.indexOf("%")>0&&t._setSize(i,s=r,f);s||t._setSize(i,"width");t.css&&t.css.radialMenu&&e.addClass(t.css.radialMenu);i.onInitialized()},_createMenu:function(){return new n.ig.XamRadialMenu},_onRadialMenuItemEvent:function(n){var i=this.self,r=n._dataItem,u=r[this.eventName],t={};t.owner=i;t.item=r;u.call(i.element[0],t)},_onRadialMenuItemValueEvent:function(n,t){var f;if(!(n.__setOptionCount__>0)){var r=this.self,u=n._dataItem,i={};i.owner=r;i.item=u;switch(this.eventName){case"valueChanged":case"pendingValueChanged":if(i.oldValue=t.oldValue(),i.newValue=t.newValue(),isNaN(i.oldValue)&&isNaN(i.newValue))return;break;case"colorChanged":i.oldValue=t.oldValue();i.newValue=t.newValue();i.oldValue&&(i.oldValue=i.oldValue.colorString());i.newValue&&(i.newValue=i.newValue.colorString())}i.newValue!=i.oldValue&&(f=u[this.eventName],f.call(r.element[0],i))}},_onRadialMenuItemPropChanged:function(n,t){var i=this._itemPropertyChangeHandlers[t._propertyName];i&&i.call(this,n)},_onRadialMenuPropChanged:function(n,t){var i=this._menuPropertyChangeHandlers[t._propertyName];i&&i.call(this,n)},_fireRadialMenu_closed:function(){var n={};n.owner=this;this._trigger("closed",null,n)},_fireRadialMenu_opened:function(){var n={};n.owner=this;this._trigger("opened",null,n)},_setSize:function(t,i,r){n.ig.util.setSize(this.element,i,r,t,this._getNotifyResizeName())},_getNotifyResizeName:function(){return"containerResized"},flush:function(){this._radialMenu&&this._radialMenu.flush&&this._radialMenu.flush()},destroy:function(){var i,u,r=this._radialMenu,t=this._old_state,f=this.element;if(t){f.find("*").not(t.elems).remove();this.css.radialMenu&&f.removeClass(this.css.radialMenu);t=t.style;u=f[0].style;for(i in t)t.hasOwnProperty(i)&&u[i]!==t[i]&&(u[i]=t[i]);r&&this._setSize(r);n.Widget.prototype.destroy.apply(this,arguments);r&&r.destroy&&r.destroy();delete this._radialMenu;delete this._old_state}},styleUpdated:function(){this._radialMenu&&this._radialMenu.styleUpdated()}});n.extend(n.ui.igRadialMenu,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery=="undefined")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igBulletGraph",{css:{unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix ui-html5-non-html5",bulletGraph:"ui-bulletgraph",tooltip:"ui-bulletgraph-tooltip ui-corner-all",bulletGraphValue:"ui-bulletgraph-value",bulletGraphTargetValue:"ui-bulletgraph-targetvalue",bulletGraphBacking:"ui-bulletgraph-backing",bulletGraphTick:"ui-bulletgraph-tick",bulletGraphMinorTick:"ui-bulletgraph-minortick",bulletGraphLabel:"ui-bulletgraph-label",bulletGraphPalette:"ui-bulletgraph-range-palette-n",bulletGraphFillPalette:"ui-bulletgraph-range-fill-palette-n",bulletGraphOutlinePalette:"ui-bulletgraph-range-outline-palette-n"},events:{formatLabel:null,alignLabel:null},options:{ranges:[{name:null,value:0,startExtent:0,endExtent:0,brush:null,outline:null,strokeThickness:0,remove:!1}],rangeToolTipTemplate:null,valueToolTipTemplate:null,targetValueToolTipTemplate:null,orientation:"horizontal",rangeBrushes:null,rangeOutlines:null,minimumValue:0,maximumValue:100,targetValue:0,targetValueName:null,value:0,valueName:null,rangeInnerExtent:.2,rangeOuterExtent:.95,valueInnerExtent:.5,valueOuterExtent:.65,interval:0,ticksPostInitial:0,ticksPreTerminal:0,labelInterval:0,labelExtent:0,labelsPostInitial:0,labelsPreTerminal:0,minorTickCount:3,tickStartExtent:.1,tickEndExtent:.2,tickStrokeThickness:2,tickBrush:null,fontBrush:null,valueBrush:null,valueOutline:null,valueStrokeThickness:1,minorTickStartExtent:.06,minorTickEndExtent:.2,minorTickStrokeThickness:1,minorTickBrush:null,isScaleInverted:!1,backingBrush:null,backingOutline:null,backingStrokeThickness:2,backingInnerExtent:0,backingOuterExtent:1,scaleStartExtent:.05,scaleEndExtent:.95,targetValueBrush:null,targetValueBreadth:3,targetValueInnerExtent:.3,targetValueOuterExtent:.85,targetValueOutline:null,targetValueStrokeThickness:1,transitionDuration:0,showToolTipTimeout:0,showToolTip:null,font:null},_setOption:function(t,i,r){var u=this._bulletGraph,f=this.options;if(!r||f[t]!==i)return(n.Widget.prototype._setOption.apply(this,arguments),this._set_option(u,t,i))?this:(this._set_generated_option(u,t,i),this)},_set_generated_option:function(t,i,r){var s,f,o,e,u;switch(i){case"orientation":switch(r){case"horizontal":t.orientation(0);break;case"vertical":t.orientation(1)}return!0;case"rangeBrushes":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,e=0;r&&e<r.length;e++)u=n.ig.Brush.prototype.create(r[e]),o.add(u);return t.rangeBrushes(o),!0;case"rangeOutlines":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,e=0;r&&e<r.length;e++)u=n.ig.Brush.prototype.create(r[e]),o.add(u);return t.rangeOutlines(o),!0;case"minimumValue":return t.minimumValue(r),!0;case"maximumValue":return t.maximumValue(r),!0;case"targetValue":return t.targetValue(r),!0;case"targetValueName":return t.targetValueName(r),!0;case"value":return t.value(r),!0;case"valueName":return t.valueName(r),!0;case"rangeInnerExtent":return t.rangeInnerExtent(r),!0;case"rangeOuterExtent":return t.rangeOuterExtent(r),!0;case"valueInnerExtent":return t.valueInnerExtent(r),!0;case"valueOuterExtent":return t.valueOuterExtent(r),!0;case"interval":return t.interval(r),!0;case"ticksPostInitial":return t.ticksPostInitial(r),!0;case"ticksPreTerminal":return t.ticksPreTerminal(r),!0;case"labelInterval":return t.labelInterval(r),!0;case"labelExtent":return t.labelExtent(r),!0;case"labelsPostInitial":return t.labelsPostInitial(r),!0;case"labelsPreTerminal":return t.labelsPreTerminal(r),!0;case"minorTickCount":return t.minorTickCount(r),!0;case"tickStartExtent":return t.tickStartExtent(r),!0;case"tickEndExtent":return t.tickEndExtent(r),!0;case"tickStrokeThickness":return t.tickStrokeThickness(r),!0;case"tickBrush":return r==null?t.tickBrush(null):(u=n.ig.Brush.prototype.create(r),t.tickBrush(u)),!0;case"fontBrush":return r==null?t.fontBrush(null):(u=n.ig.Brush.prototype.create(r),t.fontBrush(u)),!0;case"valueBrush":return r==null?t.valueBrush(null):(u=n.ig.Brush.prototype.create(r),t.valueBrush(u)),!0;case"valueOutline":return r==null?t.valueOutline(null):(u=n.ig.Brush.prototype.create(r),t.valueOutline(u)),!0;case"valueStrokeThickness":return t.valueStrokeThickness(r),!0;case"minorTickStartExtent":return t.minorTickStartExtent(r),!0;case"minorTickEndExtent":return t.minorTickEndExtent(r),!0;case"minorTickStrokeThickness":return t.minorTickStrokeThickness(r),!0;case"minorTickBrush":return r==null?t.minorTickBrush(null):(u=n.ig.Brush.prototype.create(r),t.minorTickBrush(u)),!0;case"isScaleInverted":return t.isScaleInverted(r),!0;case"backingBrush":return r==null?t.backingBrush(null):(u=n.ig.Brush.prototype.create(r),t.backingBrush(u)),!0;case"backingOutline":return r==null?t.backingOutline(null):(u=n.ig.Brush.prototype.create(r),t.backingOutline(u)),!0;case"backingStrokeThickness":return t.backingStrokeThickness(r),!0;case"backingInnerExtent":return t.backingInnerExtent(r),!0;case"backingOuterExtent":return t.backingOuterExtent(r),!0;case"scaleStartExtent":return t.scaleStartExtent(r),!0;case"scaleEndExtent":return t.scaleEndExtent(r),!0;case"targetValueBrush":return r==null?t.targetValueBrush(null):(u=n.ig.Brush.prototype.create(r),t.targetValueBrush(u)),!0;case"targetValueBreadth":return t.targetValueBreadth(r),!0;case"targetValueInnerExtent":return t.targetValueInnerExtent(r),!0;case"targetValueOuterExtent":return t.targetValueOuterExtent(r),!0;case"targetValueOutline":return r==null?t.targetValueOutline(null):(u=n.ig.Brush.prototype.create(r),t.targetValueOutline(u)),!0;case"targetValueStrokeThickness":return t.targetValueStrokeThickness(r),!0;case"transitionDuration":return t.transitionDuration(r),!0;case"showToolTipTimeout":return t.showToolTipTimeout(r),!0;case"showToolTip":return t.showToolTip(r),!0;case"font":return t.font(r),!0}},_set_option:function(t,r,u){var f,e;switch(r){case"ranges":for(f=u.length,i=0;i<f;i++){if(!u[i].name)throw new Error("Range name is missing for range: "+i);this._rangesColl.hasOwnProperty(u[i].name)?(this._removeCollValue(t.ranges(),this._rangesColl,u[i]),this._updateCollValue(t.ranges(),this._rangesColl,u[i],this._setRangeOption)):this._addCollValue(t.ranges(),this._rangesColl,u[i],this._setRangeOption,function(){return new n.ig.XamLinearGraphRange})}return!0;case"width":return this._setSize(t,"width",u),!0;case"height":return this._setSize(t,"height",u),!0;case"rangeToolTipTemplate":return this._tooltipTemplates.range=this._resolveTemplate(u),!0;case"valueToolTipTemplate":return this._tooltipTemplates.value=this._resolveTemplate(u),!0;case"targetValueToolTipTemplate":return this._tooltipTemplates.targetvalue=this._resolveTemplate(u),!0;case"showToolTip":return u===!0&&(e=n("<div class='"+this.css.tooltip+"' style='white-space: nowrap; z-index: 10000;'><\/div>"),this._addTooltip(t,e,"range")),u===!1&&this._removeTooltip(t),t.showToolTip(u),!0}},_resolveTemplate:function(t){if(n.ig.tmpl)return this._htmlCheckExpr.test(t)?t:n("#"+t).length>0?n("#"+t).text():n(t).length>0?n(t).text():t},_htmlCheckExpr:/^[^<]*(<[\w\W]+>)[^>]*$/,_addTooltip:function(n,t){this._removeTooltipEvents(n,t);this._bindTooltipEvents(n,t);n.toolTip(t)},_removeTooltip:function(n){this._removeTooltipEvents(n,n.toolTip());n.toolTip(null)},_bindTooltipEvents:function(t,i){i.updateToolTip=n.ig.Delegate.prototype.combine(i.updateToolTip,jQuery.proxy(this._fireToolTip_updateToolTip,this));i.hideToolTip=n.ig.Delegate.prototype.combine(i.hideToolTip,jQuery.proxy(this._fireToolTip_hideToolTip,this))},_removeTooltipEvents:function(n,t){delete t.updateToolTip;delete t.hideToolTip},_resolveTemplateContext:function(n,t){var i={};i.itemName=n.itemName();i.itemBrush=n.brush().fill();i.outline=n.outline().fill();i.thickness=n.thickness();i.label=n.label();switch(t){case"range":i.item={name:n.item().name(),startValue:n.item().startValue(),endValue:n.item().endValue()};break;case"value":i.item={name:i.itemName,value:n.item()};break;case"targetvalue":i.item={name:i.itemName,value:n.item()}}return i},_fireToolTip_updateToolTip:function(t,i){var u,f=!0,r,e;r=this._tooltipTemplates[i];r===undefined&&(r=this._tooltipDefaultTemplates[i],this._tooltipTemplates[i]=r);this._bulletGraph.toolTip().children().remove();u=this._resolveTemplateContext(t,i);u.item===null&&(f=!1);f&&(e=n.ig.tmpl(r,u),this._bulletGraph.toolTip().html(e))},getRangeNames:function(){var n="";for(var t in this._rangesColl)n+=t+"\n";return n},addRange:function(t){this._addCollValue(this._bulletGraph.ranges(),this._rangesColl,t,this._setRangeOption,function(){return new n.ig.XamLinearGraphRange})},_addCollValue:function(n,t,i,r,u){if(i&&i.remove!=!0&&t&&!t.hasOwnProperty(i.name)){var f=u();for(currentKey in i)i.hasOwnProperty(currentKey)&&r(f,currentKey,i[currentKey]);t[i.name]=f;n.add(f)}},removeRange:function(n){this._removeCollValue(this._bulletGraph.ranges(),this._rangesColl,n)},_removeCollValue:function(n,t,i){if(i&&t&&t.hasOwnProperty(i.name)){var r=t[i.name];r&&i.remove==!0&&(delete t[i.name],n.contains(r)&&n.remove(r))}},updateRange:function(n){this._updateCollValue(this._bulletGraph.ranges(),this._rangesColl,n,this._setRangeOption)},_updateCollValue:function(n,t,i,r){if(i&&t&&t.hasOwnProperty(i.name)){var u=t[i.name];if(u&&!i.remove){for(currentKey in i)i.hasOwnProperty(currentKey)&&r(u,currentKey,i[currentKey]);t[i.name]=u}}},_creationOptions:null,_bulletGraph:null,_bulletGraphId:null,_createWidget:function(t,i){this._creationOptions=t;n.Widget.prototype._createWidget.apply(this,[t,i])},_create:function(){var i,u,o,t,h=-1,e=this,r=e.element,s=r[0].style,f=this._creationOptions;if(e._old_state={style:{position:s.position,width:s.width,height:s.height},css:r[0].className,elems:r.find("*")},!n.ig.util._isCanvasSupported()){n.ig.util._renderUnsupportedBrowser(this);return}t=this._createBulletGraph();e._bulletGraph=t;t.formatLabel=n.ig.Delegate.prototype.combine(t.formatLabel,jQuery.proxy(this._fireBulletGraph_formatLabel,this));t.alignLabel=n.ig.Delegate.prototype.combine(t.alignLabel,jQuery.proxy(this._fireBulletGraph_alignLabel,this));this._bulletGraphId=Date.now();this._tooltipTemplates={};this._rangesColl={};this._tooltipDefaultTemplates={};this._tooltipDefaultTemplates.range="<div class='ui-bulletgraph-range-tooltip' style='border-color: ${itemBrush};'><span>${label}<\/span><\/div>";this._tooltipDefaultTemplates.value="<div class='ui-bulletgraph-value-tooltip' style='border-color: ${itemBrush};'><span>${label}<\/span><\/div>";this._tooltipDefaultTemplates.targetvalue="<div class='ui-bulletgraph-targetvalue-tooltip' style='border-color: ${itemBrush};'><span>${label}<\/span><\/div>";f.hasOwnProperty("width")&&(r[0].style.width=f.width);f.hasOwnProperty("height")&&(r[0].style.height=f.height);t.provideContainer(r[0]);r.mousemove(function(i){var r=new n.ig.Point;r.x(i.pageX);r.y(i.pageY);t.onMouseOver(r,!0)});r.mouseleave(function(){t.onMouseLeave()});for(i in f)f.hasOwnProperty(i)&&(u=f[i],u!==null&&this._setOption(i,u,!1));while(h++<1)i=h===0?"width":"height",f[i]?(o=i,u=f[i]):u=r[0].style[i],u&&typeof u=="string"&&u.indexOf("%")>0&&e._setSize(t,o=i,u);o||e._setSize(t,"width");e.css&&e.css.bulletGraph&&r.addClass(e.css.bulletGraph)},_createBulletGraph:function(){return new n.ig.XamBulletGraph},_fireBulletGraph_formatLabel:function(n,t){var i={};i.actualMinimumValue=t.actualMinimumValue;i.actualMaximumValue=t.actualMaximumValue;i.value=t.value;i.label=t.label;i.owner=this;this._trigger("formatLabel",null,i);t.value=i.value;t.label=i.label},_fireBulletGraph_alignLabel:function(n,t){var i={};i.actualMinimumValue=t.actualMinimumValue;i.actualMaximumValue=t.actualMaximumValue;i.value=t.value;i.label=t.label;i.width=t.width;i.height=t.height;i.offsetX=t.offsetX;i.offsetY=t.offsetY;i.owner=this;this._trigger("alignLabel",null,i);t.value=i.value;t.label=i.label;t.offsetX=i.offsetX;t.offsetY=i.offsetY;t.width=i.width;t.height=i.height},_setSize:function(t,i,r){n.ig.util.setSize(this.element,i,r,t,this._getNotifyResizeName())},_getNotifyResizeName:function(){return"containerResized"},_setRangeOption:function(t,i,r){switch(i){case"name":t.name(r);break;case"brush":t.brush(n.ig.Brush.prototype.create(r));break;case"outline":t.outline(n.ig.Brush.prototype.create(r));break;case"startValue":t.startValue(r);break;case"endValue":t.endValue(r);break;case"innerStartExtent":t.innerStartExtent(r);break;case"innerEndExtent":t.innerEndExtent(r);break;case"outerStartExtent":t.outerStartExtent(r);break;case"outerEndExtent":t.outerEndExtent(r);break;case"strokeThickness":t.strokeThickness(r)}},exportVisualData:function(){if(this._bulletGraph)return this._bulletGraph.exportVisualData()},flush:function(){this._bulletGraph&&this._bulletGraph.view()&&this._bulletGraph.view().flush()},destroy:function(){var i,u,r=this._bulletGraph,t=this._old_state,f=this.element;if(t){f.find("*").not(t.elems).remove();this.css.bulletGraph&&f.removeClass(this.css.bulletGraph);t=t.style;u=f[0].style;for(i in t)t.hasOwnProperty(i)&&u[i]!==t[i]&&(u[i]=t[i]);r&&this._setSize(r);n.Widget.prototype.destroy.apply(this,arguments);r&&r.destroy&&r.destroy();delete this._bulletGraph;delete this._old_state}},styleUpdated:function(){this._bulletGraph&&this._bulletGraph.styleUpdated()}});n.extend(n.ui.igBulletGraph,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery=="undefined")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igLinearGauge",{css:{unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix ui-html5-non-html5",linearGauge:"ui-lineargauge",tooltip:"ui-lineargauge-tooltip ui-corner-all",linearGaugeNeedle:"ui-lineargauge-needle",linearGaugeBacking:"ui-lineargauge-backing",linearGaugeTick:"ui-lineargauge-tick",linearGaugeMinorTick:"ui-lineargauge-minortick",linearGaugeLabel:"ui-lineargauge-label",linearGaugePalette:"ui-lineargauge-range-palette-n",linearGaugeFillPalette:"ui-lineargauge-range-fill-palette-n",linearGaugeOutlinePalette:"ui-lineargauge-range-outline-palette-n"},events:{formatLabel:null,alignLabel:null},options:{ranges:[{name:null,value:0,startExtent:0,endExtent:0,brush:null,outline:null,strokeThickness:0,remove:!1}],rangeToolTipTemplate:null,needleToolTipTemplate:null,orientation:"horizontal",rangeBrushes:null,rangeOutlines:null,minimumValue:0,maximumValue:100,value:0,needleShape:null,needleName:null,rangeInnerExtent:.05,scaleInnerExtent:0,rangeOuterExtent:.65,scaleOuterExtent:0,needleInnerExtent:0,needleOuterExtent:0,needleInnerBaseWidth:0,needleOuterBaseWidth:0,needleInnerPointWidth:0,needleOuterPointWidth:0,needleInnerPointExtent:0,needleOuterPointExtent:0,interval:0,ticksPostInitial:0,ticksPreTerminal:0,labelInterval:0,labelExtent:0,labelsPostInitial:0,labelsPreTerminal:0,minorTickCount:3,tickStartExtent:.05,tickEndExtent:.65,tickStrokeThickness:2,tickBrush:null,fontBrush:null,needleBreadth:6,needleBrush:null,needleOutline:null,needleStrokeThickness:1,minorTickStartExtent:.05,minorTickEndExtent:.35,minorTickStrokeThickness:1,minorTickBrush:null,isScaleInverted:!1,backingBrush:null,backingOutline:null,backingStrokeThickness:2,backingInnerExtent:0,backingOuterExtent:1,scaleStartExtent:.05,scaleEndExtent:.95,scaleBrush:null,scaleOutline:null,scaleStrokeThickness:0,transitionDuration:0,showToolTipTimeout:0,showToolTip:null,font:null},_setOption:function(t,i,r){var u=this._bulletGraph,f=this.options;if(!r||f[t]!==i)return(n.Widget.prototype._setOption.apply(this,arguments),this._set_option(u,t,i))?this:(this._set_generated_option(u,t,i),this)},_set_generated_option:function(t,i,r){var s,f,o,e,u;switch(i){case"orientation":switch(r){case"horizontal":t.orientation(0);break;case"vertical":t.orientation(1)}return!0;case"rangeBrushes":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,e=0;r&&e<r.length;e++)u=n.ig.Brush.prototype.create(r[e]),o.add(u);return t.rangeBrushes(o),!0;case"rangeOutlines":for(s=!0,f=r?r[0]:null,(typeof f=="string"&&f=="HSV"||f=="RGB")&&(r[0]=="HSV"&&(s=!1),r=r.slice(1)),o=new n.ig.BrushCollection,e=0;r&&e<r.length;e++)u=n.ig.Brush.prototype.create(r[e]),o.add(u);return t.rangeOutlines(o),!0;case"minimumValue":return t.minimumValue(r),!0;case"maximumValue":return t.maximumValue(r),!0;case"value":return t.value(r),!0;case"needleShape":switch(r){case"custom":t.needleShape(0);break;case"rectangle":t.needleShape(1);break;case"triangle":t.needleShape(2);break;case"needle":t.needleShape(3);break;case"trapezoid":t.needleShape(4)}return!0;case"needleName":return t.needleName(r),!0;case"rangeInnerExtent":return t.rangeInnerExtent(r),!0;case"scaleInnerExtent":return t.scaleInnerExtent(r),!0;case"rangeOuterExtent":return t.rangeOuterExtent(r),!0;case"scaleOuterExtent":return t.scaleOuterExtent(r),!0;case"needleInnerExtent":return t.needleInnerExtent(r),!0;case"needleOuterExtent":return t.needleOuterExtent(r),!0;case"needleInnerBaseWidth":return t.needleInnerBaseWidth(r),!0;case"needleOuterBaseWidth":return t.needleOuterBaseWidth(r),!0;case"needleInnerPointWidth":return t.needleInnerPointWidth(r),!0;case"needleOuterPointWidth":return t.needleOuterPointWidth(r),!0;case"needleInnerPointExtent":return t.needleInnerPointExtent(r),!0;case"needleOuterPointExtent":return t.needleOuterPointExtent(r),!0;case"interval":return t.interval(r),!0;case"ticksPostInitial":return t.ticksPostInitial(r),!0;case"ticksPreTerminal":return t.ticksPreTerminal(r),!0;case"labelInterval":return t.labelInterval(r),!0;case"labelExtent":return t.labelExtent(r),!0;case"labelsPostInitial":return t.labelsPostInitial(r),!0;case"labelsPreTerminal":return t.labelsPreTerminal(r),!0;case"minorTickCount":return t.minorTickCount(r),!0;case"tickStartExtent":return t.tickStartExtent(r),!0;case"tickEndExtent":return t.tickEndExtent(r),!0;case"tickStrokeThickness":return t.tickStrokeThickness(r),!0;case"tickBrush":return r==null?t.tickBrush(null):(u=n.ig.Brush.prototype.create(r),t.tickBrush(u)),!0;case"fontBrush":return r==null?t.fontBrush(null):(u=n.ig.Brush.prototype.create(r),t.fontBrush(u)),!0;case"needleBreadth":return t.needleBreadth(r),!0;case"needleBrush":return r==null?t.needleBrush(null):(u=n.ig.Brush.prototype.create(r),t.needleBrush(u)),!0;case"needleOutline":return r==null?t.needleOutline(null):(u=n.ig.Brush.prototype.create(r),t.needleOutline(u)),!0;case"needleStrokeThickness":return t.needleStrokeThickness(r),!0;case"minorTickStartExtent":return t.minorTickStartExtent(r),!0;case"minorTickEndExtent":return t.minorTickEndExtent(r),!0;case"minorTickStrokeThickness":return t.minorTickStrokeThickness(r),!0;case"minorTickBrush":return r==null?t.minorTickBrush(null):(u=n.ig.Brush.prototype.create(r),t.minorTickBrush(u)),!0;case"isScaleInverted":return t.isScaleInverted(r),!0;case"backingBrush":return r==null?t.backingBrush(null):(u=n.ig.Brush.prototype.create(r),t.backingBrush(u)),!0;case"backingOutline":return r==null?t.backingOutline(null):(u=n.ig.Brush.prototype.create(r),t.backingOutline(u)),!0;case"backingStrokeThickness":return t.backingStrokeThickness(r),!0;case"backingInnerExtent":return t.backingInnerExtent(r),!0;case"backingOuterExtent":return t.backingOuterExtent(r),!0;case"scaleStartExtent":return t.scaleStartExtent(r),!0;case"scaleEndExtent":return t.scaleEndExtent(r),!0;case"scaleBrush":return r==null?t.scaleBrush(null):(u=n.ig.Brush.prototype.create(r),t.scaleBrush(u)),!0;case"scaleOutline":return r==null?t.scaleOutline(null):(u=n.ig.Brush.prototype.create(r),t.scaleOutline(u)),!0;case"scaleStrokeThickness":return t.scaleStrokeThickness(r),!0;case"transitionDuration":return t.transitionDuration(r),!0;case"showToolTipTimeout":return t.showToolTipTimeout(r),!0;case"showToolTip":return t.showToolTip(r),!0;case"font":return t.font(r),!0}},_set_option:function(t,r,u){var f,e;switch(r){case"ranges":for(f=u.length,i=0;i<f;i++){if(!u[i].name)throw new Error("Range name is missing for range: "+i);this._rangesColl.hasOwnProperty(u[i].name)?(this._removeCollValue(t.ranges(),this._rangesColl,u[i]),this._updateCollValue(t.ranges(),this._rangesColl,u[i],this._setRangeOption)):this._addCollValue(t.ranges(),this._rangesColl,u[i],this._setRangeOption,function(){return new n.ig.XamLinearGraphRange})}return!0;case"width":return this._setSize(t,"width",u),!0;case"height":return this._setSize(t,"height",u),!0;case"rangeToolTipTemplate":return this._tooltipTemplates.range=this._resolveTemplate(u),!0;case"actualValueTooltipTemplate":return this._tooltipTemplates.actualValue=this._resolveTemplate(u),!0;case"needleToolTipTemplate":return this._tooltipTemplates.needle=this._resolveTemplate(u),!0;case"showToolTip":return u===!0&&(e=n("<div class='"+this.css.tooltip+"' style='white-space: nowrap; z-index: 10000;'><\/div>"),this._addTooltip(t,e,"range")),u===!1&&this._removeTooltip(t),t.showToolTip(u),!0}},_resolveTemplate:function(t){if(n.ig.tmpl)return this._htmlCheckExpr.test(t)?t:n("#"+t).length>0?n("#"+t).text():n(t).length>0?n(t).text():t},_htmlCheckExpr:/^[^<]*(<[\w\W]+>)[^>]*$/,_addTooltip:function(n,t){this._removeTooltipEvents(n,t);this._bindTooltipEvents(n,t);n.toolTip(t)},_removeTooltip:function(n){this._removeTooltipEvents(n,n.toolTip());n.toolTip(null)},_bindTooltipEvents:function(t,i){i.updateToolTip=n.ig.Delegate.prototype.combine(i.updateToolTip,jQuery.proxy(this._fireToolTip_updateToolTip,this));i.hideToolTip=n.ig.Delegate.prototype.combine(i.hideToolTip,jQuery.proxy(this._fireToolTip_hideToolTip,this))},_removeTooltipEvents:function(n,t){delete t.updateToolTip;delete t.hideToolTip},_resolveTemplateContext:function(n,t){var i={};i.itemName=n.itemName();i.itemBrush=n.brush().fill();i.outline=n.outline().fill();i.thickness=n.thickness();i.label=n.label();switch(t){case"range":i.item={name:n.item().name(),startValue:n.item().startValue(),endValue:n.item().endValue()};break;case"needle":i.item={name:i.itemName,value:n.item()}}return i},_fireToolTip_updateToolTip:function(t,i){var u,f=!0,r,e;r=this._tooltipTemplates[i];r===undefined&&(r=this._tooltipDefaultTemplates[i],this._tooltipTemplates[i]=r);this._bulletGraph.toolTip().children().remove();u=this._resolveTemplateContext(t,i);u.item===null&&(f=!1);f&&(e=n.ig.tmpl(r,u),this._bulletGraph.toolTip().html(e))},getRangeNames:function(){var n="";for(var t in this._rangesColl)n+=t+"\n";return n},addRange:function(t){this._addCollValue(this._bulletGraph.ranges(),this._rangesColl,t,this._setRangeOption,function(){return new n.ig.XamLinearGraphRange})},_addCollValue:function(n,t,i,r,u){if(i&&i.remove!=!0&&t&&!t.hasOwnProperty(i.name)){var f=u();for(currentKey in i)i.hasOwnProperty(currentKey)&&r(f,currentKey,i[currentKey]);t[i.name]=f;n.add(f)}},removeRange:function(n){this._removeCollValue(this._bulletGraph.ranges(),this._rangesColl,n)},_removeCollValue:function(n,t,i){if(i&&t&&t.hasOwnProperty(i.name)){var r=t[i.name];r&&i.remove==!0&&(delete t[i.name],n.contains(r)&&n.remove(r))}},updateRange:function(n){this._updateCollValue(this._bulletGraph.ranges(),this._rangesColl,n,this._setRangeOption)},_updateCollValue:function(n,t,i,r){if(i&&t&&t.hasOwnProperty(i.name)){var u=t[i.name];if(u&&!i.remove){for(currentKey in i)i.hasOwnProperty(currentKey)&&r(u,currentKey,i[currentKey]);t[i.name]=u}}},_creationOptions:null,_bulletGraph:null,_bulletGraphId:null,_createWidget:function(t,i){this._creationOptions=t;n.Widget.prototype._createWidget.apply(this,[t,i])},_create:function(){var i,u,o,t,h=-1,e=this,r=e.element,s=r[0].style,f=this._creationOptions;if(e._old_state={style:{position:s.position,width:s.width,height:s.height},css:r[0].className,elems:r.find("*")},!n.ig.util._isCanvasSupported()){n.ig.util._renderUnsupportedBrowser(this);return}t=this._createLinearGauge();e._bulletGraph=t;t.formatLabel=n.ig.Delegate.prototype.combine(t.formatLabel,jQuery.proxy(this._fireLinearGauge_formatLabel,this));t.alignLabel=n.ig.Delegate.prototype.combine(t.alignLabel,jQuery.proxy(this._fireLinearGauge_alignLabel,this));this._bulletGraphId=Date.now();this._tooltipTemplates={};this._rangesColl={};this._needlesColl={};this._tooltipDefaultTemplates={};this._tooltipDefaultTemplates.range="<div class='ui-lineargauge-range-tooltip' style='border-color: ${itemBrush};'><span>${label}<\/span><\/div>";this._tooltipDefaultTemplates.needle="<div class='ui-lineargauge-needle-tooltip' style='border-color: ${itemBrush};'><span>${label}<\/span><\/div>";f.hasOwnProperty("width")&&(r[0].style.width=f.width);f.hasOwnProperty("height")&&(r[0].style.height=f.height);t.provideContainer(r[0]);r.mousemove(function(i){var r=new n.ig.Point;r.x(i.pageX);r.y(i.pageY);t.onMouseOver(r,!0)});r.mouseleave(function(){t.onMouseLeave()});for(i in f)f.hasOwnProperty(i)&&(u=f[i],u!==null&&this._setOption(i,u,!1));while(h++<1)i=h===0?"width":"height",f[i]?(o=i,u=f[i]):u=r[0].style[i],u&&typeof u=="string"&&u.indexOf("%")>0&&e._setSize(t,o=i,u);o||e._setSize(t,"width");e.css&&e.css.linearGauge&&r.addClass(e.css.linearGauge)},_createLinearGauge:function(){return new n.ig.XamLinearGauge},_fireLinearGauge_formatLabel:function(n,t){var i={};i.actualMinimumValue=t.actualMinimumValue;i.actualMaximumValue=t.actualMaximumValue;i.value=t.value;i.label=t.label;i.owner=this;this._trigger("formatLabel",null,i);t.value=i.value;t.label=i.label},_fireLinearGauge_alignLabel:function(n,t){var i={};i.actualMinimumValue=t.actualMinimumValue;i.actualMaximumValue=t.actualMaximumValue;i.value=t.value;i.label=t.label;i.width=t.width;i.height=t.height;i.offsetX=t.offsetX;i.offsetY=t.offsetY;i.owner=this;this._trigger("alignLabel",null,i);t.value=i.value;t.label=i.label;t.offsetX=i.offsetX;t.offsetY=i.offsetY;t.width=i.width;t.height=i.height},_setSize:function(t,i,r){n.ig.util.setSize(this.element,i,r,t,this._getNotifyResizeName())},_getNotifyResizeName:function(){return"containerResized"},_setRangeOption:function(t,i,r){switch(i){case"name":t.name(r);break;case"brush":t.brush(n.ig.Brush.prototype.create(r));break;case"outline":t.outline(n.ig.Brush.prototype.create(r));break;case"startValue":t.startValue(r);break;case"endValue":t.endValue(r);break;case"innerStartExtent":t.innerStartExtent(r);break;case"innerEndExtent":t.innerEndExtent(r);break;case"outerStartExtent":t.outerStartExtent(r);break;case"outerEndExtent":t.outerEndExtent(r);break;case"strokeThickness":t.strokeThickness(r)}},getValueForPoint:function(t,i){if(this._bulletGraph){var r={__x:t,__y:i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return this._bulletGraph.getValueForPoint(r)}},needleContainsPoint:function(t,i){if(this._bulletGraph){var r={__x:t,__y:i,$type:n.ig.Point.prototype.$type,getType:n.ig.Object.prototype.getType,getGetHashCode:n.ig.Object.prototype.getGetHashCode,typeName:n.ig.Object.prototype.typeName};return this._bulletGraph.needleContainsPoint(r)}},exportVisualData:function(){if(this._bulletGraph)return this._bulletGraph.exportVisualData()},flush:function(){this._bulletGraph&&this._bulletGraph.view()&&this._bulletGraph.view().flush()},destroy:function(){var i,u,r=this._bulletGraph,t=this._old_state,f=this.element;if(t){f.find("*").not(t.elems).remove();this.css.linearGauge&&f.removeClass(this.css.linearGauge);t=t.style;u=f[0].style;for(i in t)t.hasOwnProperty(i)&&u[i]!==t[i]&&(u[i]=t[i]);r&&this._setSize(r);n.Widget.prototype.destroy.apply(this,arguments);r&&r.destroy&&r.destroy();delete this._bulletGraph;delete this._old_state}},styleUpdated:function(){this._bulletGraph&&this._bulletGraph.styleUpdated()}});n.extend(n.ui.igLinearGauge,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){n.widget("ui.igMap",{options:{width:null,height:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,autoMarginWidth:20,autoMarginHeight:0,crosshairVisibility:"collapsed",crosshairPoint:{x:0,y:0},plotAreaBackground:null,defaultInteraction:"dragPan",dragModifier:"none",panModifier:"shift",previewRect:null,windowRect:null,zoomable:!1,windowScale:1,windowResponse:null,windowRectMinWidth:0,windowPositionHorizontal:0,windowPositionVertical:0,circleMarkerTemplate:null,triangleMarkerTemplate:null,pyramidMarkerTemplate:null,squareMarkerTemplate:null,diamondMarkerTemplate:null,pentagonMarkerTemplate:null,hexagonMarkerTemplate:null,tetragramMarkerTemplate:null,pentagramMarkerTemplate:null,hexagramMarkerTemplate:null,overviewPlusDetailPaneBackgroundImageUri:null,backgroundContent:{type:"openStreet",key:null,parameter:null,tilePath:null,imagerySet:"AerialWithLabels",bingUrl:"http://dev.virtualearth.net/REST/v1/Imagery/Metadata/"},series:[{type:null,name:null,dataSource:null,dataSourceUrl:null,dataSourceType:null,responseDataKey:null,remove:!1,showTooltip:!1,shapeDataSource:null,databaseSource:null,triangulationDataSource:null,legendItemBadgeTemplate:null,legendItemTemplate:null,discreteLegendItemTemplate:null,transitionDuration:0,resolution:1,title:null,brush:null,outline:null,thickness:0,trianglesSource:null,triangleVertexMemberPath1:null,triangleVertexMemberPath2:null,triangleVertexMemberPath3:null,colorScale:null,colorMemberPath:null,visibleFromScale:0,longitudeMemberPath:null,latitudeMemberPath:null,markerType:"none",markerTemplate:null,shapeMemberPath:null,shapeStyleSelector:null,shapeStyle:null,markerBrush:null,markerOutline:null,markerCollisionAvoidance:"none",fillScale:null,fillMemberPath:null,trendLineType:"none",trendLineBrush:null,trendLineThickness:1.5,trendLinePeriod:7,trendLineZIndex:1001,maximumMarkers:400,radiusMemberPath:null,radiusScale:null,labelMemberPath:null,clipSeriesToBounds:null,valueMemberPath:null,unknownValuePlotting:"dontPlot",angleMemberPath:null,useCartesianInterpolation:!0,stiffness:.5,negativeBrush:null,splineType:"natural",lowMemberPath:null,highMemberPath:null,openMemberPath:null,closeMemberPath:null,volumeMemberPath:null,ignoreFirst:0,period:0,shortPeriod:0,longPeriod:0,valueResolver:null,shapeFilterResolution:2,useBruteForce:!1,progressiveLoad:!0,mouseOverEnabled:!1,useSquareCutoffStyle:!1,heatMinimum:0,heatMaximum:50}],theme:"c"},css:{map:"ui-corner-all ui-widget-content",unsupportedBrowserClass:"ui-chart-non-html5-supported-message ui-helper-clearfix",tooltip:"ui-chart-tooltip ui-widget-content ui-corner-all"},events:{tooltipShowing:"tooltipShowing",tooltipShown:"tooltipShown",tooltipHiding:"tooltipHiding",tooltipHidden:"tooltipHidden",browserNotSupported:"browserNotSupported",seriesCursorMouseMove:null,seriesMouseLeftButtonDown:null,seriesMouseLeftButtonUp:null,seriesMouseMove:null,seriesMouseEnter:null,seriesMouseLeave:null,windowRectChanged:null,gridAreaRectChanged:null,refreshCompleted:null,triangulationStatusChanged:null},_createWidget:function(t,i){this._fixCss();this.dvWidget=new n.ig.dvCommonWidget(this);this.dvWidget._createWidget(t,i,this)},_create:function(){this._fixCss();this.dvWidget._create()},_fixCss:function(){this.css.map.indexOf("{0}")>-1&&(this.css.map=this.css.map.replace("{0}",this.options.theme),this.css.tooltip=this.css.tooltip.replace("{0}",this.options.theme))},_setOption:function(n,t){this.dvWidget._setOption(n,t)},destroy:function(){this._chart&&this._chart.destroy();this.dvWidget._destroy(this);n.Widget.prototype.destroy.apply(this,arguments)},id:function(){return this.element[0].id},exportImage:function(n,t){return this.dvWidget._getImage(n,t,this)},styleUpdated:function(){return this._chart.styleUpdated(),this},resetZoom:function(){return this._chart.resetZoom(),this},addItem:function(n,t){var i=t||this._containerSourceID;this.dataSources[i]&&this.dataSources[i].addRow(null,n,!0)},insertItem:function(n,t,i){var r=i||this._containerSourceID;this.dataSources[r]&&this.dataSources[r].insertRow(null,n,t,!0)},removeItem:function(n,t){var i=t||this._containerSourceID;this.dataSources[i]&&this.dataSources[i].deleteRow(n,!0)},setItem:function(n,t,i){var r=i||this._containerSourceID;this.dataSources[r]&&this.dataSources[r].updateRow(n,t,!0)},notifySetItem:function(n,t,i,r){return this._chart.notifySetItem(n,t,r,i),this},notifyClearItems:function(n){return this._chart.notifyClearItems(n),this},notifyInsertItem:function(n,t,i){return this._chart.notifyInsertItem(n,t,i),this},notifyRemoveItem:function(n,t,i){return this._chart.notifyRemoveItem(n,t,i),this},scrollIntoView:function(n,t){var i=this.dvWidget._getNotifyTarget(n);return i&&i.scrollIntoView&&i.scrollIntoView(t),this},scaleValue:function(n,t){var i=this.dvWidget._getNotifyTarget(n);return i&&i.scaleValue?i.scaleValue(t):0},unscaleValue:function(n,t){var i=this.dvWidget._getNotifyTarget(n);return i&&i.unscaleValue?i.unscaleValue(t):0},flush:function(){this._chart.flush()},exportVisualData:function(){return this._chart.exportVisualData()},getActualMinimumValue:function(n){var t=this.dvWidget._getNotifyTarget(n);return t&&t.actualMinimumValue?t.actualMinimumValue():0},getActualMaximumValue:function(n){var t=this.dvWidget._getNotifyTarget(n);return t&&t.actualMaximumValue?t.actualMaximumValue():0},notifyContainerResized:function(){this._chart.notifyContainerResized()},zoomToGeographic:function(t){var i;return t===undefined?t=this._chart.getGeographicFromZoom():(i=new n.ig.Rect(0,t.left,t.top,t.width,t.height),t=i),this._chart.zoomToGeographic(t),this},getGeographicFromZoom:function(t){var r,i,u;return t===undefined?t=this._chart.windowRect():(u=new n.ig.Rect(0,t.left,t.top,t.width,t.height),t=u),r=this._chart.getGeographicFromZoom(t),i={},i.top=r.top(),i.left=r.left(),i.width=r.width(),i.height=r.height(),i},getZoomFromGeographic:function(t){var r,i,u;return t===undefined?t=this._chart.windowRect():(u=new n.ig.Rect(0,t.left,t.top,t.width,t.height),t=u),r=this._chart.getZoomFromGeographic(t),i={},i.top=r.top(),i.left=r.left(),i.width=r.width(),i.height=r.height(),i},print:function(){this.dvWidget._print()},renderSeries:function(n,t){var i=this.dvWidget._getNotifyTarget(n);return i&&i.renderSeries?i.renderSeries(t):this},_initConverter:function(t,i){var r=t.name||this._containerSourceID,u=t.triangulationDataSource||t.shapeDataSource;this.dataSources===undefined&&(this.dataSources={});u instanceof n.ig.TriangulationDataSource||u instanceof n.ig.ShapeDataSource?(this.dataSources[r]=u.converter(),u.isBound()?i.call(this.dvWidget):(u.settings.id=r,u.settings.callee=this.dvWidget,u.settings.callback=i)):this.dataSources[r]=t.triangulationDataSource?new n.ig.TriangulationDataSource({id:r,source:t.triangulationDataSource,callback:i,callee:this.dvWidget}).dataBind().converter():new n.ig.ShapeDataSource({id:r,shapefileSource:t.shapeDataSource,databaseSource:t.databaseSource,callback:i,callee:this.dvWidget}).dataBind().converter();this.dataSources[r].id=r}});n.extend(n.ui.igMap,{version:"14.1.20141.2031"});n.ig.ShapeDataSource=n.ig.ShapeDataSource||Class.extend({settings:{id:null,shapefileSource:null,databaseSource:null,callback:null,callee:null,transformRecord:null,transformPoint:null,transformBounds:null,importCompleted:null},init:function(t){return this._uris={},this._isImported=!1,this.settings=n.extend(!0,{},n.ig.ShapeDataSource.prototype.settings,t),this._converter=new n.ig.ShapefileConverter,this._converter.importCompleted=jQuery.proxy(this._importCompleted,this),this},_importCompleted:function(){var r,u,f,t,e,s,i,o;if(this._isImported=!0,this._converter!==null&&typeof this.settings.transformBounds=="function"&&(t={left:this._converter.worldRect().left(),top:this._converter.worldRect().top(),width:this._converter.worldRect().width(),height:this._converter.worldRect().height()},this.settings.transformBounds(t),this._converter.worldRect(new n.ig.Rect(0,t.left,t.top,t.width,t.height)),this._converter.bounds=t),this._converter!==null&&(typeof this.settings.transformRecord=="function"||typeof this.settings.transformPoint=="function"))for(r=0;r<this._converter.records().count();r++){if(e=this._converter.records().item(r),typeof this.settings.transformPoint=="function")for(u=0;u<e.points.count();u++)for(s=e.points.item(u),f=0;f<s.count();f++)i=s.item(f),o={x:i.x(),y:i.y()},this.settings.transformPoint(o),i.x(o.x),i.y(o.y);typeof this.settings.transformRecord=="function"&&this.settings.transformRecord(e)}typeof this.settings.importCompleted=="function"&&this.settings.importCompleted(this);typeof this.settings.callback=="function"&&this.settings.callback.call(this)},dataBind:function(){return this.settings.shapefileSource&&(this._uris.shapefileSource=new n.ig.Uri,this._uris.shapefileSource.value(this.settings.shapefileSource),this._converter.shapefileSource(this._uris.shapefileSource)),this.settings.databaseSource&&(this._uris.databaseSource=new n.ig.Uri,this._uris.databaseSource.value(this.settings.databaseSource),this._converter.databaseSource(this._uris.databaseSource)),this},isBound:function(){return this._isImported},converter:function(){return this._converter}});n.ig.TriangulationDataSource=n.ig.TriangulationDataSource||Class.extend({settings:{id:null,source:null,triangulationSource:null,callback:null,callee:null},init:function(t){return this._uris={},this._isImported=!1,this.settings=n.extend(!0,{},n.ig.TriangulationDataSource.prototype.settings,t),this._converter=new n.ig.ItfConverter,this._converter.importCompleted=jQuery.proxy(this._importCompleted,this),this},_importCompleted:function(){this._isImported=!0;typeof this.settings.callback=="function"&&this.settings.callback.call(this)},dataBind:function(){return this.settings.source&&(this._uris.source=new n.ig.Uri,this._uris.source.value(this.settings.source),this._converter.source(this._uris.source)),this.settings.triangulationSource&&(this._uris.triangulationSource=new n.ig.Uri,this._uris.triangulationSource.value(this.settings.triangulationSource),this._converter.source(this._uris.triangulationSource)),this},isBound:function(){return this._isImported},converter:function(){return this._converter}})}(jQuery),typeof jQuery!="function")throw new Error("jQuery is undefined");if(function(n){var t=function(n,t){return n===null||n===undefined||t&&typeof n=="number"&&isNaN(n)};n.widget("ui.igSparkline",n.ui.igBaseChart,{css:{chart:"ui-sparkline ui-corner-all ui-widget-content",tooltip:"ui-sparkline-tooltip ui-widget-content ui-corner-all"},options:{brush:null,negativeBrush:null,markerBrush:null,negativeMarkerBrush:null,firstMarkerBrush:null,lastMarkerBrush:null,highMarkerBrush:null,lowMarkerBrush:null,trendLineBrush:null,horizontalAxisBrush:null,verticalAxisBrush:null,normalRangeFill:null,horizontalAxisVisibility:"collapsed",verticalAxisVisibility:"collapsed",markerVisibility:"collapsed",negativeMarkerVisibility:"collapsed",firstMarkerVisibility:"collapsed",lastMarkerVisibility:"collapsed",lowMarkerVisibility:"collapsed",highMarkerVisibility:"collapsed",normalRangeVisibility:"collapsed",displayNormalRangeInFront:"collapsed",markerSize:-1,firstMarkerSize:-1,lastMarkerSize:-1,highMarkerSize:-1,lowMarkerSize:-1,negativeMarkerSize:-1,lineThickness:-1,valueMemberPath:null,labelMemberPath:null,trendLineType:"none",trendLinePeriod:7,trendLineThickness:-1,normalRangeMinimum:0,normalRangeMaximum:0,displayType:"line",unknownValuePlotting:"dontPlot",verticalAxisLabel:null,horizontalAxisLabel:null,formatLabel:null},events:{dataBinding:null,dataBound:null},_create:function(){n.ui.igBaseChart.prototype._create.apply(this);var t=this._chart},_set_option:function(t,i,r){var u;if(n.ui.igBaseChart.prototype._set_option.apply(this,arguments))return!0;switch(i){case"brush":return r==null?t.brush(null):(u=n.ig.Brush.prototype.create(r),t.brush(u)),!0;case"negativeBrush":return r==null?t.negativeBrush(null):(u=n.ig.Brush.prototype.create(r),t.negativeBrush(u)),!0;case"markerBrush":return r==null?t.markerBrush(null):(u=n.ig.Brush.prototype.create(r),t.markerBrush(u)),!0;case"negativeMarkerBrush":return r==null?t.negativeMarkerBrush(null):(u=n.ig.Brush.prototype.create(r),t.negativeMarkerBrush(u)),!0;case"firstMarkerBrush":return r==null?t.firstMarkerBrush(null):(u=n.ig.Brush.prototype.create(r),t.firstMarkerBrush(u)),!0;case"lastMarkerBrush":return r==null?t.lastMarkerBrush(null):(u=n.ig.Brush.prototype.create(r),t.lastMarkerBrush(u)),!0;case"highMarkerBrush":return r==null?t.highMarkerBrush(null):(u=n.ig.Brush.prototype.create(r),t.highMarkerBrush(u)),!0;case"lowMarkerBrush":return r==null?t.lowMarkerBrush(null):(u=n.ig.Brush.prototype.create(r),t.lowMarkerBrush(u)),!0;case"trendLineBrush":return r==null?t.trendLineBrush(null):(u=n.ig.Brush.prototype.create(r),t.trendLineBrush(u)),!0;case"horizontalAxisBrush":return r==null?t.horizontalAxisBrush(null):(u=n.ig.Brush.prototype.create(r),t.horizontalAxisBrush(u)),!0;case"verticalAxisBrush":return r==null?t.verticalAxisBrush(null):(u=n.ig.Brush.prototype.create(r),t.verticalAxisBrush(u)),!0;case"normalRangeFill":return r==null?t.normalRangeFill(null):(u=n.ig.Brush.prototype.create(r),t.normalRangeFill(u)),!0;case"horizontalAxisVisibility":switch(r){case"visible":t.horizontalAxisVisibility(0);break;case"collapsed":t.horizontalAxisVisibility(1)}return!0;case"verticalAxisVisibility":switch(r){case"visible":t.verticalAxisVisibility(0);break;case"collapsed":t.verticalAxisVisibility(1)}return!0;case"markerVisibility":switch(r){case"visible":t.markerVisibility(0);break;case"collapsed":t.markerVisibility(1)}return!0;case"negativeMarkerVisibility":switch(r){case"visible":t.negativeMarkerVisibility(0);break;case"collapsed":t.negativeMarkerVisibility(1)}return!0;case"firstMarkerVisibility":switch(r){case"visible":t.firstMarkerVisibility(0);break;case"collapsed":t.firstMarkerVisibility(1)}return!0;case"lastMarkerVisibility":switch(r){case"visible":t.lastMarkerVisibility(0);break;case"collapsed":t.lastMarkerVisibility(1)}return!0;case"lowMarkerVisibility":switch(r){case"visible":t.lowMarkerVisibility(0);break;case"collapsed":t.lowMarkerVisibility(1)}return!0;case"highMarkerVisibility":switch(r){case"visible":t.highMarkerVisibility(0);break;case"collapsed":t.highMarkerVisibility(1)}return!0;case"normalRangeVisibility":switch(r){case"visible":t.normalRangeVisibility(0);break;case"collapsed":t.normalRangeVisibility(1)}return!0;case"displayNormalRangeInFront":return t.displayNormalRangeInFront(r),!0;case"markerSize":return t.markerSize(r),!0;case"firstMarkerSize":return t.firstMarkerSize(r),!0;case"lastMarkerSize":return t.lastMarkerSize(r),!0;case"highMarkerSize":return t.highMarkerSize(r),!0;case"lowMarkerSize":return t.lowMarkerSize(r),!0;case"negativeMarkerSize":return t.negativeMarkerSize(r),!0;case"lineThickness":return t.lineThickness(r),!0;case"valueMemberPath":return t.valueMemberPath(r),!0;case"labelMemberPath":return t.labelMemberPath(r),!0;case"trendLineType":switch(r){case"none":t.trendLineType(0);break;case"linearFit":t.trendLineType(1);break;case"quadraticFit":t.trendLineType(2);break;case"cubicFit":t.trendLineType(3);break;case"quarticFit":t.trendLineType(4);break;case"quinticFit":t.trendLineType(5);break;case"logarithmicFit":t.trendLineType(6);break;case"exponentialFit":t.trendLineType(7);break;case"powerLawFit":t.trendLineType(8);break;case"simpleAverage":t.trendLineType(9);break;case"exponentialAverage":t.trendLineType(10);break;case"modifiedAverage":t.trendLineType(11);break;case"cumulativeAverage":t.trendLineType(12);break;case"weightedAverage":t.trendLineType(13)}return!0;case"trendLinePeriod":return t.trendLinePeriod(r),!0;case"trendLineThickness":return t.trendLineThickness(r),!0;case"normalRangeMinimum":return t.normalRangeMinimum(r),!0;case"normalRangeMaximum":return t.normalRangeMaximum(r),!0;case"displayType":switch(r){case"line":t.displayType(0);break;case"area":t.displayType(1);break;case"column":t.displayType(2);break;case"winLoss":t.displayType(3)}return!0;case"unknownValuePlotting":switch(r){case"linearInterpolate":t.unknownValuePlotting(0);break;case"dontPlot":t.unknownValuePlotting(1)}return!0;case"verticalAxisLabel":return t.verticalAxisLabel(r),!0;case"horizontalAxisLabel":return t.horizontalAxisLabel(r),!0;case"formatLabel":return t.formatLabel(r),!0}},_setOption:function(t,i){var r=this._chart,u=this.options;return u[t]===i?this:(n.Widget.prototype._setOption.apply(this,arguments),this._set_option(r,t,i),this)},_getValueKeyName:function(){return"valueMemberPath"},_getRemoteDataKeys:function(){return[this.options.valueMemberPath,this.options.labelMemberPath]},_getNotifyResizeName:function(){return"notifyResized"},_createChart:function(){return new n.ig.XamSparkline},_sparkline:function(){return this._chart},destroy:function(){n.ui.igBaseChart.prototype.destroy.apply(this)}});n.extend(n.ui.igSparkline,{version:"14.1.20141.2031"})}(jQuery),typeof jQuery=="undefined")throw new Error("jQuery is undefined");(function(n){n.widget("ui.igQRCodeBarcode",{css:{unsupportedBrowserClass:"ui-html5-non-html5-supported-message ui-helper-clearfix ui-html5-non-html5",barcode:"ui-barcode",barcodeBacking:"ui-barcode-backing",barcodeBar:"ui-barcode-bar",barcodeLabel:"ui-barcode-label"},events:{errorMessageDisplaying:null,dataChanged:null},options:{backingBrush:"white",backingOutline:"transparent",backingStrokeThickness:0,barBrush:"black",fontBrush:null,font:null,data:null,errorMessageText:null,stretch:"uniform",barsFillMode:"fillSpace",widthToHeightRatio:3,xDimension:.25,errorCorrectionLevel:"medium",sizeVersion:"undefined",encodingMode:"byte",eciNumber:26,eciHeaderDisplayMode:"hide",fnc1Mode:"none",applicationIndicator:null},_setOption:function(t,i,r){var u=this._qRCodeBarcode,f=this.options;if(!r||f[t]!==i)return(n.Widget.prototype._setOption.apply(this,arguments),this._set_option(u,t,i))?this:(this._set_generated_option(u,t,i),this)},_set_generated_option:function(t,i,r){var u;switch(i){case"backingBrush":return r==null?t.backingBrush(null):(u=n.ig.Brush.prototype.create(r),t.backingBrush(u)),!0;case"backingOutline":return r==null?t.backingOutline(null):(u=n.ig.Brush.prototype.create(r),t.backingOutline(u)),!0;case"backingStrokeThickness":return t.backingStrokeThickness(r),!0;case"barBrush":return r==null?t.barBrush(null):(u=n.ig.Brush.prototype.create(r),t.barBrush(u)),!0;case"fontBrush":return r==null?t.fontBrush(null):(u=n.ig.Brush.prototype.create(r),t.fontBrush(u)),!0;case"font":return t.font(r),!0;case"data":return t.data(r),!0;case"errorMessageText":return t.errorMessageText(r),!0;case"stretch":switch(r){case"none":t.stretch(0);break;case"fill":t.stretch(1);break;case"uniform":t.stretch(2);break;case"uniformToFill":t.stretch(3)}return!0;case"barsFillMode":switch(r){case"fillSpace":t.barsFillMode(0);break;case"ensureEqualSize":t.barsFillMode(1)}return!0;case"widthToHeightRatio":return t.widthToHeightRatio(r),!0;case"xDimension":return t.xDimension(r),!0;case"errorCorrectionLevel":switch(r){case"low":t.errorCorrectionLevel(1);break;case"medium":t.errorCorrectionLevel(0);break;case"quartil":t.errorCorrectionLevel(3);break;case"high":t.errorCorrectionLevel(2)}return!0;case"sizeVersion":switch(r){case"undefined":t.sizeVersion(0);break;case"version1":t.sizeVersion(1);break;case"version2":t.sizeVersion(2);break;case"version3":t.sizeVersion(3);break;case"version4":t.sizeVersion(4);break;case"version5":t.sizeVersion(5);break;case"version6":t.sizeVersion(6);break;case"version7":t.sizeVersion(7);break;case"version8":t.sizeVersion(8);break;case"version9":t.sizeVersion(9);break;case"version10":t.sizeVersion(10);break;case"version11":t.sizeVersion(11);break;case"version12":t.sizeVersion(12);break;case"version13":t.sizeVersion(13);break;case"version14":t.sizeVersion(14);break;case"version15":t.sizeVersion(15);break;case"version16":t.sizeVersion(16);break;case"version17":t.sizeVersion(17);break;case"version18":t.sizeVersion(18);break;case"version19":t.sizeVersion(19);break;case"version20":t.sizeVersion(20);break;case"version21":t.sizeVersion(21);break;case"version22":t.sizeVersion(22);break;case"version23":t.sizeVersion(23);break;case"version24":t.sizeVersion(24);break;case"version25":t.sizeVersion(25);break;case"version26":t.sizeVersion(26);break;case"version27":t.sizeVersion(27);break;case"version28":t.sizeVersion(28);break;case"version29":t.sizeVersion(29);break;case"version30":t.sizeVersion(30);break;case"version31":t.sizeVersion(31);break;case"version32":t.sizeVersion(32);break;case"version33":t.sizeVersion(33);break;case"version34":t.sizeVersion(34);break;case"version35":t.sizeVersion(35);break;case"version36":t.sizeVersion(36);break;case"version37":t.sizeVersion(37);break;case"version38":t.sizeVersion(38);break;case"version39":t.sizeVersion(39);break;case"version40":t.sizeVersion(40)}return!0;case"encodingMode":switch(r){case"undefined":t.encodingMode(-1);break;case"numeric":t.encodingMode(0);break;case"alphanumeric":t.encodingMode(1);break;case"byte":t.encodingMode(2);break;case"kanji":t.encodingMode(3)}return!0;case"eciNumber":return t.eciNumber(r),!0;case"eciHeaderDisplayMode":switch(r){case"hide":t.eciHeaderDisplayMode(0);break;case"show":t.eciHeaderDisplayMode(1)}return!0;case"fnc1Mode":switch(r){case"none":t.fnc1Mode(0);break;case"gs1":t.fnc1Mode(1);break;case"industry":t.fnc1Mode(2)}return!0;case"applicationIndicator":return t.applicationIndicator(r),!0}},_set_option:function(n,t,i){switch(t){case"width":return this._setSize(n,"width",i),!0;case"height":return this._setSize(n,"height",i),!0}},_creationOptions:null,_qRCodeBarcode:null,_createWidget:function(t,i){this._creationOptions=t;n.Widget.prototype._createWidget.apply(this,[t,i])},_create:function(){var t,u,o,i,h=-1,f=this,e=f.element,s=e[0].style,r=this._creationOptions;if(f._old_state={style:{position:s.position,width:s.width,height:s.height},css:e[0].className,elems:e.find("*")},!n.ig.util._isCanvasSupported()){n.ig.util._renderUnsupportedBrowser(this);return}i=this._createBarcode();f._qRCodeBarcode=i;i.errorMessageDisplaying=n.ig.Delegate.prototype.combine(i.errorMessageDisplaying,jQuery.proxy(this._fireQRCodeBarcode_errorMessageDisplaying,this));i.dataChanged=n.ig.Delegate.prototype.combine(i.dataChanged,jQuery.proxy(this._fireQRCodeBarcode_dataChanged,this));r.hasOwnProperty("width")&&(e[0].style.width=r.width);r.hasOwnProperty("height")&&(e[0].style.height=r.height);i.provideContainer(e[0]);for(t in r)r.hasOwnProperty(t)&&(u=r[t],u!==null&&this._setOption(t,u,!1));while(h++<1)t=h===0?"width":"height",r[t]?(o=t,u=r[t]):u=e[0].style[t],u&&u.indexOf("%")>0&&f._setSize(i,o=t,u);o||f._setSize(i,"width");f.css&&f.css.qRCodeBarcode&&e.addClass(f.css.qRCodeBarcode)},_createBarcode:function(){return new n.ig.XamQRCodeBarcode},_fireQRCodeBarcode_dataChanged:function(n,t){var i={};i.newData=t.newData();i.owner=this;this._trigger("dataChanged",null,i)},_fireQRCodeBarcode_errorMessageDisplaying:function(n,t){var i={};i.errorMessage=t.errorMessage();i.owner=this;this._trigger("errorMessageDisplaying",null,i);t.errorMessage(i.errorMessage)},_setSize:function(t,i,r){n.ig.util.setSize(this.element,i,r,t,this._getNotifyResizeName())},_getNotifyResizeName:function(){return"containerResized"},exportVisualData:function(){if(this._qRCodeBarcode)return this._qRCodeBarcode.exportVisualData()},flush:function(){this._qRCodeBarcode&&this._qRCodeBarcode.view()&&this._qRCodeBarcode.view().flush()},destroy:function(){var i,u,r=this._qRCodeBarcode,t=this._old_state,f=this.element;if(t){f.find("*").not(t.elems).remove();this.css.qRCodeBarcode&&f.removeClass(this.css.qRCodeBarcode);t=t.style;u=f[0].style;for(i in t)t.hasOwnProperty(i)&&u[i]!==t[i]&&(u[i]=t[i]);r&&this._setSize(r);n.Widget.prototype.destroy.apply(this,arguments);r&&r.destroy&&r.destroy();delete this._qRCodeBarcode;delete this._old_state}},styleUpdated:function(){this._qRCodeBarcode&&this._qRCodeBarcode.view()&&this._qRCodeBarcode.view().styleUpdated()}});n.extend(n.ui.igQRCodeBarcode,{version:"14.1.20141.2031"})})(jQuery),function(n){n.widget("ui.igZoombar",{options:{type:"auto",target:null,clone:"auto",width:"auto",height:"70px",zoomAction:"immediate",zoomWindowMoveDistance:10,defaultZoomWindow:{left:35,width:30},zoomWindowMinWidth:5,hoverStyleAnimationDuration:500,windowPanDuration:500,tabIndex:0},events:{zoomChanging:"zoomChanging",zoomChanged:"zoomChanged",windowDragStarting:"windowDragStarting",windowDragStarted:"windowDragStarted",windowDragging:"windowDragging",windowDragEnding:"windowDragEnding",windowDragEnded:"windowDragEnded",windowResizing:"windowResizing",windowResized:"windowResized"},css:{baseClass:"ui-widget ui-helper-clearfix ui-corner-all ui-igzoombar-container",scrollBarClass:"ui-igzoombar-scrollbar",scrollBarThumbClass:"ui-state-default ui-igzoombar-scrollbar-thumb",scrollBarButtonClass:"ui-igzoombar-scrollbar-button",scrollBarLeftButtonIconClass:"ui-icon-triangle-1-w",scrollBarRightButtonIconClass:"ui-icon-triangle-1-e",maskLayerClass:"ui-igzoombar-mask",maskLayerLeftAppendixFadeClass:"ui-igzoombar-fade ui-igzoombar-fade-left-appendix",maskLayerRightAppendixFadeClass:"ui-igzoombar-fade ui-igzoombar-fade-right-appendix",maskLayerLeftFadeClass:"ui-igzoombar-fade ui-igzoombar-fade-left",maskLayerRightFadeClass:"ui-igzoombar-fade ui-igzoombar-fade-right",hoverState:"ui-state-hover",windowResizeHandleLeftClass:"ui-state-default ui-igzoombar-window-handle ui-igzoombar-window-handle-left",windowResizeHandleRightClass:"ui-state-default ui-igzoombar-window-handle ui-igzoombar-window-handle-right",windowGrabbingClass:"ui-igzoombar-window-grabbing"},_create:function(){var n=this.options;this._acc=0;this._createHandlers();this._supportedWidgets=["igDataChart"];this._provider=this._initProvider(n);this._cw={left:n.defaultZoomWindow.left/100,width:n.defaultZoomWindow.width/100};this._immediate=n.zoomAction==="immediate";n.width==="auto"&&(n.width=this._provider.targetWidth());this._renderZoombar();this._registerEvents();this._refreshWindow();this._applyZoom();this._fz=!1;this.element.css("-ms-touch-action","none")},_createWidget:function(){n.Widget.prototype._createWidget.apply(this,arguments)},destroy:function(){return this._unregisterEvents(),this._responsive&&this._responsive.removeCallback(this._callBackId),this.container().remove(),n.Widget.prototype.destroy.apply(this,arguments),this},_setOption:function(t,i){switch(t){case"zoomAction":this._immediate=i==="immediate";break;case"zoomWindowMinWidth":this._provider&&this._provider.syncMinWidth(i/100);break;case"zoomWindowMoveDistance":break;default:throw new Error(n.ig.Zoombar.locale.optionChangeNotSupported+" "+t);}n.Widget.prototype._setOption.apply(this,arguments)},widget:function(){return this.element},id:function(){return this.element[0].id},container:function(){return n("#"+this.element[0].id+"_zoombar_container")},clone:function(){return n("#"+this.element[0].id+"_zoombar_clone")},zoom:function(n,t){if(!n&&!t)return{left:this._cw.left*100,width:this._cw.width*100};n/=100;t/=100;this._zoom(n,t,!1,!0)},_renderZoombar:function(){var n,t;this._renderMainContainer();t=this._renderScrollbar();this._resetDimensions();n=this._renderClone();this._renderMaskContainer(n);this._renderScrollBarThumb(t)},_renderMainContainer:function(){this.element.css({width:this.options.width,height:this.options.height});this._isSizedDynamically()&&(this._responsive=this.element.igResponsiveContainer().data("igResponsiveContainer"),this._callBackId=this._responsive.addCallback(this._containerResizedHandler,this,5,"xy"));n("<div><\/div>").attr("id",this.element[0].id+"_zoombar_container").css({width:this.element.width(),height:this.element.height()}).addClass(this.css.baseClass).appendTo(this.element)},_renderClone:function(){var i,t,r,u;if(i=n("<div><\/div>").attr("id",this.element[0].id+"_zoombar_clone").css({"margin-left":this._buttonWidth,position:"relative"}).prependTo(this.container()),r=parseInt(this._width,10)-2*this._buttonWidth,u=parseInt(this.options.height,10)-this._buttonWidth,this._provider){if(typeof this.options.clone=="object")t=n.extend({},this.options.clone);else if(this.options.clone==="auto")t=this._provider.getBaseOpts(),t=this._provider.cleanOptsForZoom(t);else return i.css({width:r,height:u});t.width=r;t.height=u;i[this._provider.widgetName()](t);this._provider.syncMinWidth(this.options.zoomWindowMinWidth/100)}return i.children().first().removeClass("ui-corner-all ui-widget-content"),i},_renderScrollbar:function(){var t;return t=n("<div><\/div>").attr("id",this.element[0].id+"_zoombar_scrollbar").css({width:"100%",height:"16px"}).addClass(this.css.scrollBarClass).appendTo(this.container()),this._renderButton("left",t),this._renderButton("right",t),this._buttonWidth=t.children().first().outerWidth(),t},_renderButton:function(t,i){var r=this.options.tabIndex;r+=t==="left"?2:4;n("<div><\/div>").attr({id:this.element[0].id+"_zoombar_buttons_"+t,tabIndex:r}).css("float",t).addClass(this.css.scrollBarButtonClass).button({icons:{primary:t==="left"?this.css.scrollBarLeftButtonIconClass:this.css.scrollBarRightButtonIconClass},text:!1}).click(this._leftRightButtonHandler).keyup(this._leftRightButtonHandler).removeClass("ui-corner-all").appendTo(i)},_renderMaskContainer:function(t){var i=n("<div><\/div>").attr("id",this.element[0].id+"_zoombar_mask").addClass(this.css.maskLayerClass).appendTo(t);this._renderLeftRightFade(i);this._renderZoomWindowThumbs()},_renderLeftRightFade:function(t){n("<div><\/div>").attr("id",this.element[0].id+"_zoombar_mask_left_appendix").addClass(this.css.maskLayerLeftAppendixFadeClass).appendTo(t);this._lf=n("<div><\/div>").attr("id",this.element[0].id+"_zoombar_mask_left").addClass(this.css.maskLayerLeftFadeClass).appendTo(t);n("<div><\/div>").attr("id",this.element[0].id+"_zoombar_mask_right_appendix").addClass(this.css.maskLayerRightAppendixFadeClass).appendTo(t);this._rf=n("<div><\/div>").attr("id",this.element[0].id+"_zoombar_mask_right").addClass(this.css.maskLayerRightFadeClass).appendTo(t)},_renderScrollBarThumb:function(t){this._sbt=n("<span><\/span>").attr({id:this.element[0].id+"_zoombar_scrollbar_thumb",tabIndex:this.options.tabIndex+2}).addClass(this.css.scrollBarThumbClass).appendTo(t)},_renderZoomWindowThumbs:function(){n("<div><\/div>").attr({id:this.element[0].id+"_zoombar_mask_left_handle",tabIndex:this.options.tabIndex}).addClass(this.css.windowResizeHandleLeftClass).appendTo(this._lf);n("<div><\/div>").attr({id:this.element[0].id+"_zoombar_mask_right_handle",tabIndex:this.options.tabIndex+1}).addClass(this.css.windowResizeHandleRightClass).appendTo(this._rf)},_containerResized:function(){this._resetDimensions();this._refreshWindow()},_mouseWheel:function(t){var u,o=n(t.target),r,i,f,e;o.hasClass("ui-igzoombar-mask")&&((u=t.originalEvent.detail?-t.originalEvent.detail/3:t.originalEvent.wheelDelta/120,r=Math.max(this._cw.left+u/100,0),i=this._cw.width-u/50,i=r+i>1?1-r:i,i<this.options.zoomWindowMinWidth/100)||(f={zoomWindow:{left:r,width:i},owner:this},e=this._trigger(this.events.windowResizing,t,f),e&&(this._zoom(r,i,!0,!0),this._trigger(this.events.windowResized,t,f))))},_touchStart:function(t){var r,i=n(t.target);r=t.originalEvent.touches[0].pageX;this._dragStart(i,r,t)&&(i.hasClass("ui-igzoombar-scrollbar-thumb")&&i.addClass(this.css.hoverState),t.originalEvent.preventDefault())},_touchMove:function(n){this._draggedElement&&(this._dragCont(n.touches[0].pageX,n),n.stopPropagation())},_touchEnd:function(t){var i,r=n(t.target);if(this._draggedElement||r.closest("div[role='button']").length!==0||(i=r.closest(".ui-igzoombar-container"),i.length>0&&i.attr("id").startsWith(this.element[0].id)&&this._moveWindowByPageX(i,t.originalEvent.changedTouches[0].pageX)),this._dragEnd(t))this._sbt.removeClass("ui-state-hover");else return!1},_mouseDown:function(t){this._dragStart(n(t.target),t.pageX||t.originalEvent.clientX,t)&&(window.navigator.pointerEnabled?n(t.currentTarget).bind("pointermove.zoombar",this._zoombarMouseMoveHandler):window.navigator.msPointerEnabled?n(t.currentTarget).bind("MSPointerMove.zoombar",this._zoombarMouseMoveHandler):n(t.currentTarget).bind("mousemove.zoombar",this._zoombarMouseMoveHandler),t.stopPropagation(),t.preventDefault())},_mouseMove:function(n){this._draggedElement&&n.preventDefault();this._dragCont(n.pageX||n.originalEvent.clientX,n)},_mouseUp:function(t){var i,r=n(t.target);if(this._draggedElement||r.closest("div[role='button']").length!==0||(i=r.closest(".ui-igzoombar-container"),i.length>0&&i.attr("id").startsWith(this.element[0].id)&&this._moveWindowByPageX(i,t.pageX||t.originalEvent.clientX)),this._dragEnd(t))r.removeClass(this.css.windowGrabbingClass),n(t.currentTarget).unbind({"mousemove.zoombar":this._zoombarMouseMoveHandler,"pointermove.zoombar":this._zoombarMouseMoveHandler,"MSPointerMove.zoombar":this._zoombarMouseMoveHandler}),t.stopPropagation(),t.preventDefault();else return!1},_leftRightButtonClicked:function(t){var i=n(t.target),r;(i.is("span")||(i=i.children("span").first(),t.keyCode&&(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)))&&(i.hasClass(this.css.scrollBarLeftButtonIconClass)?r=this._cw.left-this.options.zoomWindowMoveDistance/100:i.hasClass(this.css.scrollBarRightButtonIconClass)&&(r=this._cw.left+this.options.zoomWindowMoveDistance/100),this._zoom(r,this._cw.width,!0,!0,!0),t.stopPropagation())},_scrollBarMouseEnter:function(){var t=this;this._sliding?this._sbt.addClass(this.css.hoverState):this._sbt.stop(!0,!0).addClass(this.css.hoverState,this.options.hoverStyleAnimationDuration,function(){t._refreshWindow();n(this).css("background-color","")})},_scrollBarMouseLeave:function(){var t=this;this._sliding?this._sbt.removeClass(this.css.hoverState):this._sbt.stop(!0,!0).removeClass(this.css.hoverState,this.options.hoverStyleAnimationDuration,function(){t._refreshWindow();n(this).css("background-color","")})},_windowKeyDown:function(t){var i=.1*Math.pow(2,-6+this._acc),r=n(t.target);if(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)this._moveKeyDown=!0,r.hasClass("ui-igzoombar-scrollbar-thumb")&&this._scrollBarMouseEnter();else if(this._moveKeyDown&&t.keyCode===n.ui.keyCode.LEFT){if(r.hasClass("ui-igzoombar-window-handle-left")){if(this._cw.left-=i,this._cw.width+=i,this._cwidth-Math.round(this._cw.left*this._cwidth)-Math.round(this._cw.width*this._cwidth)!==parseInt(this._rf.css("width"),10)){this._accelerate();return}}else if(r.hasClass("ui-igzoombar-window-handle-right")){if(this._cw.width-i<this.options.zoomWindowMinWidth/100){this._acc=0;return}this._cw.width-=i}else this._cw.left-=i;this._ensureWindow();this._refreshWindow();this._applyZoom();this._accelerate()}else if(this._moveKeyDown&&t.keyCode===n.ui.keyCode.RIGHT){if(r.hasClass("ui-igzoombar-window-handle-left")){if(this._cw.width-i<this.options.zoomWindowMinWidth/100){this._acc=0;return}if(this._cw.left+=i,this._cw.width-=i,this._cwidth-Math.round(this._cw.left*this._cwidth)-Math.round(this._cw.width*this._cwidth)!==parseInt(this._rf.css("width"),10)){this._accelerate();return}}else r.hasClass("ui-igzoombar-window-handle-right")?this._cw.width+=i:this._cw.left+=i;this._ensureWindow();this._refreshWindow();this._applyZoom();this._accelerate()}},_windowKeyUp:function(t){(t.keyCode===n.ui.keyCode.ENTER||t.keyCode===n.ui.keyCode.SPACE)&&(this._moveKeyDown=!1,n(t.target).hasClass("ui-igzoombar-scrollbar-thumb")&&this._scrollBarMouseLeave());this._acc=0},_targetWindowChanged:function(n,t){var i;this._cw.left=t.newLeft;this._cw.width=t.newWidth;this._fz||(i={previousZoom:{left:t.oldLeft*100,width:t.oldWidth*100},newZoom:{left:t.newLeft*100,width:t.newWidth*100},owner:this},this._trigger(this.events.zoomChanged,n,i),this._refreshWindow());this._fz=!1},_zoom:function(n,t,i,r,u){var f,e;return u=u&&this.options.windowPanDuration>0,f={previousZoom:this._defStore||{left:this._cw.left*100,width:this._cw.width*100},newZoom:{left:n*100,width:t*100},owner:this},e=i?this._trigger(this.events.zoomChanging,null,f):!0,e&&(this._cw.left=n,this._cw.width=t,this._ensureWindow(),u?this._refreshWindow(!0,this._applyZoom):(r&&this._refreshWindow(),this._applyZoom()),i&&this._trigger(this.events.zoomChanged,null,f)),e},_initProvider:function(t){var u=null,i=null,r,f,e;if(t.target)typeof t.target=="string"?this._target=n(t.target):t.target instanceof jQuery&&(this._target=n(t.target[0]));else throw new Error(n.ig.Zoombar.locale.zoombarTargetNotSpecified);if(typeof t.type=="string"&&t.type==="auto")for(r in this._target.data())this._target.data().hasOwnProperty(r)&&n.inArray(r,this._supportedWidgets)>-1&&(i=r);else i=t.type;if(!i||typeof i!="string")throw new Error(n.ig.Zoombar.locale.zoombarTypeNotSupported);e=this.options.clone!=="none";f=typeof this.options.clone=="object"?this.options.clone:null;switch(i.toLowerCase()){case"igdatachart":u=new n.ig.ZoombarProviderDataChart({targetObject:this._target.data("igDataChart"),cloneOptions:f,renderClone:e});break;default:throw new Error(n.ig.Zoombar.locale.zoombarTypeNotSupported);}return u},_isSizedDynamically:function(){return typeof this.options.width=="string"&&this.options.width.endsWith("%")||typeof this.options.height=="string"&&this.options.height.endsWith("%")?!0:!1},_resetDimensions:function(){var n=this.container();n.css({width:this.element.width(),height:this.element.height()});this._width=n.width();this._height=n.height();this._buttonWidth=n.children().last().children(".ui-igzoombar-scrollbar-button").outerWidth();this._cwidth=this._width-2*this._buttonWidth;this.clone()[this._provider.widgetName()]("option","width",this._width-2*this._buttonWidth);this.clone()[this._provider.widgetName()]("option","height",this._height-this._buttonWidth)},_ensureWindow:function(){this._cw.left<0&&(this._cw.left=0);this._cw.width>1&&(this._cw.width=1);this._cw.left+this._cw.width>1&&(this._cw.left=1-this._cw.width)},_refreshWindow:function(t,i){var u=this._cw,f,r,e=this;t=t&&this.options.windowPanDuration>0;i=i?n.proxy(i,this):function(){e._sliding=!1};t?(this._sliding=!0,this._sbt.stop().animate({left:Math.round(u.left*this._cwidth+this._buttonWidth)},this.options.windowPanDuration,i)):this._sbt.css("left",Math.round(u.left*this._cwidth+this._buttonWidth));f=Math.round(u.width*this._cwidth);this._sbt.css("width",f);r=Math.round(u.left*this._cwidth);t?(this._sliding=!0,this._lf.stop().animate({width:r},this.options.windowPanDuration,i).css("overflow","visible"),this._rf.stop().animate({width:this._cwidth-r-f},this.options.windowPanDuration,i).css("overflow","visible")):(this._lf.css("width",r),this._rf.css("width",this._cwidth-r-f))},_applyZoom:function(){this._sliding=!1;this._provider&&(this._fz=!0,this._provider.update(this._cw.left,this._cw.left+this._cw.width))},_dragStart:function(t,i,r){var e,u,f=t.closest(".ui-igzoombar-container");return!f||f.length===0||!f.attr("id").startsWith(this.id())?!1:(t.hasClass("ui-igzoombar-mask")||t.hasClass("ui-igzoombar-scrollbar-thumb")||t.closest(".ui-chart-container").length>0?(u={zoomWindow:{left:this._cw.left,width:this._cw.width},owner:this},e=this._trigger(this.events.windowDragStarting,r,u),e&&(this._draggedElement=this._sbt,t.addClass(this.css.windowGrabbingClass),this._trigger(this.events.windowDragStarted,r,u))):t.hasClass("ui-igzoombar-window-handle")&&(this._draggedElement=t,n("body").css("cursor","e-resize"),this._lf.css("cursor","inherit"),this._rf.css("cursor","inherit"),this._lf.parent().css("cursor","inherit")),this._draggedElement?(this._draggedElementOffset=i-this._draggedElement.offset().left+this._draggedElement.parent().offset().left+this._buttonWidth,this._immediate||(this._defStore={left:this._cw.left,width:this._cw.width}),!0):void 0)},_dragCont:function(n,t){var u=this._cw.left,f=this._cw.width,i=u,r=f,e,o=!1,s;if(this._draggedElement&&this._draggedElement instanceof jQuery){if(this._draggedElement.hasClass("ui-igzoombar-window-handle-left")){if(i=n-this._draggedElement.parent().offset().left,i=i/this._cwidth,r=f+u-i,r<this.options.zoomWindowMinWidth/100)return;i<0&&(i=0,r=f+u-i)}else if(this._draggedElement.hasClass("ui-igzoombar-window-handle-right")){if(r=(n-this._sbt.offset().left)/this._cwidth,r<this.options.zoomWindowMinWidth/100)return;u+r>1&&(r=1-u)}else this._draggedElement.hasClass("ui-igzoombar-scrollbar-thumb")&&(i=(n-this._draggedElementOffset)/this._cwidth,i<0?i=0:i+f>1&&(i=1-f),o=!0);e={zoomWindow:{left:i,width:r},owner:this};s=o?this._trigger(this.events.windowDragging,t,e):this._trigger(this.events.windowResizing,t,e);s&&(this._immediate?this._zoom(i,r,!0,!0):(this._cw.left=i,this._cw.width=r,this._refreshWindow()),o||this._trigger(this.events.windowResized,t,e))}},_dragEnd:function(t){var r,i;if(this._draggedElement)if(this._draggedElement.hasClass("ui-igzoombar-window-handle"))n("body").css("cursor",""),this._lf.css("cursor",""),this._rf.css("cursor",""),this._lf.parent().css("cursor","");else if(i={zoomWindow:{left:this._cw.left,width:this._cw.width},owner:this},r=this._trigger(this.events.windowDragEnding,t,i),r)this._trigger(this.events.windowDragEnded,t,i);else return!1;return this._draggedElement=null,this._immediate||this._zoom(this._cw.left,this._cw.width,!0,!1)||this._zoom(this._defStore.left,this._defStore.width,!1,!0),!0},_moveWindowByPageX:function(n,t){var r=(t-n.offset().left-this._buttonWidth)/this._cwidth,i;i=r-this._cw.width/2;this._zoom(i,this._cw.width,!0,!0,!0)},_accelerate:function(){this._acc=this._acc+.1},_createHandlers:function(){this._leftRightButtonHandler=n.proxy(this._leftRightButtonClicked,this);this._zoombarMouseWheelHandler=n.proxy(this._mouseWheel,this);this._zoombarTouchStartHandler=n.proxy(this._touchStart,this);this._zoombarTouchMoveHandler=n.proxy(this._touchMove,this);this._zoombarTouchEndHandler=n.proxy(this._touchEnd,this);this._zoombarMouseDownHandler=n.proxy(this._mouseDown,this);this._zoombarMouseMoveHandler=n.proxy(this._mouseMove,this);this._zoombarMouseUpHandler=n.proxy(this._mouseUp,this);this._targetWindowChangedHandler=n.proxy(this._targetWindowChanged,this);this._containerResizedHandler=n.proxy(this._containerResized,this);this._scrollbarThumbMouseEnterHandler=n.proxy(this._scrollBarMouseEnter,this);this._scrollbarThumbMouseLeaveHandler=n.proxy(this._scrollBarMouseLeave,this);this._windowKeyDownHandler=n.proxy(this._windowKeyDown,this);this._windowKeyUpHandler=n.proxy(this._windowKeyUp,this)},_registerEvents:function(){var t=n(window),i=this.container().find(".ui-igzoombar-scrollbar-thumb,.ui-igzoombar-window-handle");t.bind({"touchstart.zoombar":this._zoombarTouchStartHandler,"touchend.zoombar":this._zoombarTouchEndHandler});this.container()[0].addEventListener("touchmove",this._zoombarTouchMoveHandler);window.navigator.pointerEnabled?t.bind({"pointerdown.zoombar":this._zoombarMouseDownHandler,"pointerup.zoombar":this._zoombarMouseUpHandler}):window.navigator.msPointerEnabled?t.bind({"MSPointerDown.zoombar":this._zoombarMouseDownHandler,"MSPointerUp.zoombar":this._zoombarMouseUpHandler}):t.bind({"mousedown.zoombar":this._zoombarMouseDownHandler,"mouseup.zoombar":this._zoombarMouseUpHandler});t.bind({"mousewheel.zoombar":this._zoombarMouseWheelHandler,"DOMMouseScroll.zoombar":this._zoombarMouseWheelHandler});this._sbt.bind({"mouseenter.zoombar":this._scrollbarThumbMouseEnterHandler,"mouseleave.zoombar":this._scrollbarThumbMouseLeaveHandler});i.bind({keydown:this._windowKeyDownHandler,keyup:this._windowKeyUpHandler});this._provider.targetObject().element.bind(this._provider.event(),this._targetWindowChangedHandler)},_unregisterEvents:function(){var t=n(window),i=this.container().find(".ui-igzoombar-scrollbar-thumb,.ui-igzoombar-window-handle");t.unbind({"touchstart.zoombar":this._zoombarTouchStartHandler,"touchend.zoombar":this._zoombarTouchEndHandler});this.container()[0].removeEventListener("touchmove",this._zoombarTouchMoveHandler);window.navigator.pointerEnabled?t.unbind({"pointerdown.zoombar":this._zoombarMouseDownHandler,"pointerup.zoombar":this._zoombarMouseUpHandler}):window.navigator.msPointerEnabled?t.unbind({"MSPointerDown.zoombar":this._zoombarMouseDownHandler,"MSPointerUp.zoombar":this._zoombarMouseUpHandler}):t.unbind({"mousedown.zoombar":this._zoombarMouseDownHandler,"mouseup.zoombar":this._zoombarMouseUpHandler});t.unbind({"mousewheel.zoombar":this._zoombarMouseWheelHandler,"DOMMouseScroll.zoombar":this._zoombarMouseWheelHandler});this._sbt.unbind({"mouseenter.zoombar":this._scrollbarThumbMouseEnterHandler,"mouseleave.zoombar":this._scrollbarThumbMouseLeaveHandler});i.unbind({keydown:this._windowKeyDownHandler,keyup:this._windowKeyUpHandler});this._provider.targetObject().element.unbind(this._provider.event(),this._targetWindowChangedHandler)}});n.ig.ZoombarProviderDefault=n.ig.ZoombarProviderDefault||Class.extend({init:function(){return this},getBaseOpts:function(n){return n},cleanOptsForZoom:function(n){return n},widgetName:function(){return""},targetWidth:function(){return"100%"},syncMinWidth:function(){return!1},targetObject:function(){return this._targetObject},update:function(){return!1},event:function(){return""}});n.ig.ZoombarProviderDataChart=n.ig.ZoombarProviderDataChart||n.ig.ZoombarProviderDefault.extend({init:function(n){return this._targetObject=n.targetObject||null,this._evt="windowRectChanged",this._super(n),this},getBaseOpts:function(n){var t=n||this._targetObject.options;return this._copyRelevantOpts(t)},cleanOptsForZoom:function(n){var t;if(n.gridMode="none",n.isSurfaceInteractionDisabled=!1,n.horizontalZoomable=!1,n.verticalZoomable=!1,n.crosshairVisibility="hidden",n.series&&typeof n.series=="object")for(t=0;t<n.series.length;t++)n.series[t].showTooltip=!1,n.series[t].thickness=1,n.series[t].trendLineType&&(n.series[t].trendLineType="none");if(n.axes&&typeof n.axes=="object")for(t=0;t<n.axes.length;t++)n.axes[t].labelVisibility="collapsed";return n},widgetName:function(){return"igDataChart"},targetWidth:function(){return this._targetObject.options.width||this._targetObject._chart._width||this._super()},targetObject:function(n){if(!n)return this._targetObject;this._targetObject=n;this._targetObject.element.bind("igdatachartwindowrectchanged",this._handler)},syncMinWidth:function(n){return this._targetObject._chart.windowRectMinWidth(n),!0},update:function(t,i){var r=this._targetObject._chart.windowRect();this._targetObject._chart.windowRect(new n.ig.Rect(0,t,r.top(),Math.abs(i-t),r.height()))},event:function(){return this.widgetName().toLowerCase()+this._evt.toLowerCase()},_copyRelevantOpts:function(t){var r=n.isArray(t)?[]:{},f,e=this,u=!1,i;return n.each(t,function(o,s){if(s===null)return!0;if(n.isArray(r))i=typeof s!="object"?s:e._copyRelevantOpts(s),i!==null&&(u=!0,r.push(i));else{if(o.startsWith("title"))return;if(o.startsWith("sync"))return;if(t.type!=="financial"&&(o==="displayType"||o.startsWith("trendLine")))return;switch(o){case"dataSource":s!==null&&(u=!0,r[o]=s);break;case"legend":case"markerType":case"maximumMarkers":case"unknownValuePlotting":case"radiusX":case"radiusY":case"useCartesianInterpolation":case"splineType":case"ignoreFirst":case"period":case"shortPeriod":case"longPeriod":case"markerCollisionAvoidance":case"useHighMarkerFidelity":case"useBruteForce":case"progressiveLoad":case"mouseOverEnabled":case"heatMinimum":case"heatMaximum":case"heatMinimumColor":case"heatMaximumColor":case"maximumValue":case"minimumValue":case"radius":case"useInterpolation":case"skipUnknowns":case"verticalLineVisibility":case"horizontalLineVisibility":case"isCustomCategoryMarkerStyleAllowed":case"isTransitionInEnabled":case"transitionMode":case"transitionDuration":case"transitionInMode":case"transitionInDuration":case"bandHighlightWidth":case"highlightType":case"isCustomCategoryStyleAllowed":case"useIndex":case"useLegend":case"skipUnknownValues":break;default:s!==null&&(f=typeof s,f==="object"||n.isArray(s)?(i=e._copyRelevantOpts(s),i!==null&&(u=!0,r[o]=i)):(u=!0,r[o]=s))}}}),u>0?r:null}})}(jQuery)