/*! intel-appframework - v2.1.0 - 2014-03-25 */

/*
 Intel
 @api private
*/
if(!window.af||"function"!==typeof af){var af=function(f){function x(a,b,c){var d=k.createDocumentFragment();if(c){for(c=a.length-1;0<=c;c--)d.insertBefore(a[c],d.firstChild);b.insertBefore(d,b.firstChild)}else{for(c=0;c<a.length;c++)d.appendChild(a[c]);b.appendChild(d)}}function y(a){return a in H?H[a]:H[a]=RegExp("(^|\\s)"+a+"(\\s|$)")}function l(a){for(var b=0;b<a.length;b++)a.indexOf(a[b])!==b&&(a.splice(b,1),b--);return a}function m(a,b){var c=[];if(a==h)return c;for(;a;a=a.nextSibling)1===a.nodeType&&
a!==b&&c.push(a);return c}function p(a,b){try{return b.querySelectorAll(a)}catch(c){return[]}}function n(a,b){if(a)if(a.nodeType)b[b.length++]=a;else for(var c=0,d=a.length;c<d;c++)b[b.length++]=a[c]}function q(){}function C(a,b){a.os={};a.os.webkit=b.match(/WebKit\/([\d.]+)/)?!0:!1;a.os.android=b.match(/(Android)\s+([\d.]+)/)||b.match(/Silk-Accelerated/)?!0:!1;a.os.androidICS=a.os.android&&b.match(/(Android)\s4/)?!0:!1;a.os.ipad=b.match(/(iPad).*OS\s([\d_]+)/)?!0:!1;a.os.iphone=!a.os.ipad&&b.match(/(iPhone\sOS)\s([\d_]+)/)?
!0:!1;a.os.ios7=(a.os.ipad||a.os.iphone)&&b.match(/7_/)?!0:!1;a.os.webos=b.match(/(webOS|hpwOS)[\s\/]([\d.]+)/)?!0:!1;a.os.touchpad=a.os.webos&&b.match(/TouchPad/)?!0:!1;a.os.ios=a.os.ipad||a.os.iphone;a.os.playbook=b.match(/PlayBook/)?!0:!1;a.os.blackberry10=b.match(/BB10/)?!0:!1;a.os.blackberry=a.os.playbook||a.os.blackberry10||b.match(/BlackBerry/)?!0:!1;a.os.chrome=b.match(/Chrome/)?!0:!1;a.os.opera=b.match(/Opera/)?!0:!1;a.os.fennec=b.match(/fennec/i)?!0:b.match(/Firefox/)?!0:!1;a.os.ie=b.match(/MSIE 10.0/i)||
b.match(/Trident\/7/i)?!0:!1;a.os.ieTouch=a.os.ie&&b.toLowerCase().match(/touch/i)?!0:!1;a.os.tizen=b.match(/Tizen/i)?!0:!1;a.os.supportsTouch=f.DocumentTouch&&k instanceof f.DocumentTouch||"ontouchstart"in f;a.os.kindle=b.match(/Silk-Accelerated/)?!0:!1;a.feat={};var c=k.documentElement.getElementsByTagName("head")[0];a.feat.nativeTouchScroll="undefined"!==typeof c.style["-webkit-overflow-scrolling"]&&(a.os.ios||a.os.blackberry10);a.feat.cssPrefix=a.os.webkit?"Webkit":a.os.fennec?"Moz":a.os.ie?"ms":
a.os.opera?"O":"";a.feat.cssTransformStart=!a.os.opera?"3d(":"(";a.feat.cssTransformEnd=!a.os.opera?",0)":")";a.os.android&&!a.os.webkit&&(a.os.android=!1);for(var c=["Webkit","Moz","ms","O"],d=0;d<c.length;d++)""===k.documentElement.style[c[d]+"Transform"]&&(a.feat.cssPrefix=c[d])}function z(a){return a._afmid||(a._afmid=Q++)}function E(a,b,c,d,e){b=s(b,e);return(v[z(a)]||[]).filter(function(a){return a&&(!b.e||a.e===b.e)&&(!b.ns||0!==a.ns.indexOf(b.ns))&&(!c||a.fn===c||"function"===typeof a.fn&&
"function"===typeof c&&a.fn===c)&&(!d||a.sel===d)})}function s(a,b){var c=(""+a).split(".");!0!==b&&c.pop();return{e:a,ns:c.join(".")}}function t(a,b,c){e.isObject(a)?e.each(a,c):a.split(/\s/).forEach(function(a){c(a,b)})}function F(a,b,c,d,g){var f=z(a),h=v[f]||(v[f]=[]);t(b,c,function(b,c){var f=g&&g(c,b),D=f||c,k=function(b){var c=D.apply(a,[b].concat(b.data));!1===c&&b.preventDefault();return c},f=e.extend(s(b),{fn:c,proxy:k,sel:d,del:f,i:h.length});h.push(f);a.addEventListener(f.e,k,!1)})}function G(a,
b,c,d){var e=z(a);t(b||"",c,function(b,c){E(a,b,c,d,!0).forEach(function(b){delete v[e][b.i];a.removeEventListener(b.e,b.proxy,!1)})})}function S(a){var b=e.extend({originalEvent:a},a);e.each(T,function(c,d){b[c]=function(){this[d]=U;if("stopImmediatePropagation"===c||"stopPropagation"===c)if(a.cancelBubble=!0,!a[c])return;return a[c].apply(a,arguments)};b[d]=V});return b}function W(a,b,c,d,g){F(a,b,c,d,function(b){return function(c){var f,h=e(c.target).closest(d,a).get(0);if(h)return f=e.extend(S(c),
{currentTarget:h,liveFired:a,delegateTarget:a,data:g}),b.apply(h,[f].concat([].slice.call(arguments,1)))}})}function J(a,b){if(b&&a.dispatchEvent){var c=e.Event("destroy",{bubbles:!1});a.dispatchEvent(c)}if((c=z(a))&&v[c]){for(var d in v[c])a.removeEventListener(v[c][d].e,v[c][d].proxy,!1);delete v[c]}}function K(a,b){if(a){var c=a.childNodes;if(c&&0<c.length)for(var d;d<c.length;d++)K(c[d],b);J(a,b)}}var h,k=f.document,A=[],L=A.slice,H={},X=1,Y=/<(\w+)[^>]*>/,u={},w={},M={columncount:!0,fontweight:!0,
lineheight:!0,"column-count":!0,"font-weight":!0,"line-height":!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,"z-index":!0,zoom:!0},B="object"===typeof MSApp,r=function(a,b){this.length=0;if(a){if(a instanceof r&&b==h)return a;if(af.isFunction(a))return af(k).ready(a);if(af.isArray(a)&&a.length!=h){for(var c=0;c<a.length;c++)this[this.length++]=a[c];return this}if(af.isObject(a)&&af.isObject(b)){if(a.length==h)a.parentNode==b&&(this[this.length++]=a);else for(c=0;c<a.length;c++)a[c].parentNode==b&&
(this[this.length++]=a[c]);return this}if(af.isObject(a)&&b==h)return this[this.length++]=a,this;if(b!==h){if(b instanceof r)return b.find(a)}else b=k}else return this;return this.selector(a,b)},e=function(a,b){return new r(a,b)};e.is$=function(a){return a instanceof r};e.map=function(a,b){var c,d=[],g;if(e.isArray(a))for(g=0;g<a.length;g++)c=b.apply(a[g],[a[g],g]),c!==h&&d.push(c);else if(e.isObject(a))for(g in a)a.hasOwnProperty(g)&&"length"!==g&&(c=b(a[g],[a[g],g]),c!==h&&d.push(c));return d};
e.each=function(a,b){var c;if(e.isArray(a))for(c=0;c<a.length&&!1!==b(c,a[c]);c++);else if(e.isObject(a))for(c in a)if(a.hasOwnProperty(c)&&"length"!==c&&!1===b(c,a[c]))break;return a};e.extend=function(a){a==h&&(a=this);if(1===arguments.length){for(var b in a)this[b]=a[b];return this}L.call(arguments,1).forEach(function(b){for(var d in b)a[d]=b[d]});return a};e.isArray=function(a){return a instanceof Array&&a.push!=h};e.isFunction=function(a){return"function"===typeof a&&!(a instanceof RegExp)};
e.isObject=function(a){return"object"===typeof a&&null!==a};e.fn=r.prototype={namespace:"appframework",constructor:r,forEach:A.forEach,reduce:A.reduce,push:A.push,indexOf:A.indexOf,concat:A.concat,selector:function(a,b){a=a.trim();if("#"===a[0]&&-1===a.indexOf(".")&&-1===a.indexOf(",")&&-1===a.indexOf(" ")&&-1===a.indexOf(">"))b===k?n(b.getElementById(a.replace("#","")),this):n(p(a,b),this);else if("<"===a[0]&&">"===a[a.length-1]||-1!==a.indexOf("<")&&-1!==a.indexOf(">")){var c=k.createElement("div");
B?MSApp.execUnsafeLocalFunction(function(){c.innerHTML=a.trim()}):c.innerHTML=a.trim();n(c.childNodes,this)}else n(p(a,b),this);return this},oldElement:void 0,slice:A.slice,length:0,setupOld:function(a){if(a==h)return e();a.oldElement=this;return a},map:function(a){var b,c=[],d;for(d=0;d<this.length;d++)b=a.apply(this[d],[d,this[d]]),b!==h&&c.push(b);return e(c)},each:function(a){this.forEach(function(b,c){a.call(b,c,b)});return this},ready:function(a){"complete"===k.readyState||"loaded"===k.readyState||
!e.os.ie&&"interactive"===k.readyState?a():k.addEventListener("DOMContentLoaded",a,!1);return this},find:function(a){if(0===this.length)return this;for(var b=[],c,d=0;d<this.length;d++){c=e(a,this[d]);for(var g=0;g<c.length;g++)b.push(c[g])}return e(l(b))},html:function(a,b){var c=function(){g.innerHTML=a};if(0===this.length)return this;if(a===h)return this[0].innerHTML;for(var d=0;d<this.length;d++)if(!1!==b&&e.cleanUpContent(this[d],!1,!0),B){var g=this[d];MSApp.execUnsafeLocalFunction(c)}else this[d].innerHTML=
a;return this},text:function(a){if(0===this.length)return this;if(a===h)return this[0].textContent;for(var b=0;b<this.length;b++)this[b].textContent=a;return this},css:function(a,b,c){c=c!=h?c:this[0];if(0===this.length)return this;if(b==h&&"string"===typeof a)return f.getComputedStyle(c),c.style[a]?c.style[a]:f.getComputedStyle(c)[a];for(c=0;c<this.length;c++)if(e.isObject(a))for(var d in a)this[c].style[d]="number"===typeof a[d]&&!M[d.toLowerCase()]?a[d]+"px":a[d];else this[c].style[a]="number"===
typeof b&&!M[a.toLowerCase()]?b+"px":b;return this},vendorCss:function(a,b,c){return this.css(e.feat.cssPrefix+a,b,c)},cssTranslate:function(a){return this.vendorCss("Transform","translate"+e.feat.cssTransformStart+a+e.feat.cssTransformEnd)},computedStyle:function(a){if(!(0===this.length||a==h))return f.getComputedStyle(this[0],"")[a]},empty:function(){for(var a=0;a<this.length;a++)e.cleanUpContent(this[a],!1,!0),this[a].textContent="";return this},hide:function(){if(0===this.length)return this;for(var a=
0;a<this.length;a++)"none"!==this.css("display",null,this[a])&&(this[a].setAttribute("afmOldStyle",this.css("display",null,this[a])),this[a].style.display="none");return this},show:function(){if(0===this.length)return this;for(var a=0;a<this.length;a++)"none"===this.css("display",null,this[a])&&(this[a].style.display=this[a].getAttribute("afmOldStyle")?this[a].getAttribute("afmOldStyle"):"block",this[a].removeAttribute("afmOldStyle"));return this},toggle:function(a){if(0===this.length)return this;
for(var b=!0===a,c=0;c<this.length;c++)if("none"!==this.css("display",null,this[c])&&(a==h||!1===b))this[c].setAttribute("afmOldStyle",this.css("display",null,this[c])),this[c].style.display="none";else if("none"===this.css("display",null,this[c])&&(a==h||!0===b))this[c].style.display=this[c].getAttribute("afmOldStyle")?this[c].getAttribute("afmOldStyle"):"block",this[c].removeAttribute("afmOldStyle");return this},val:function(a){if(0===this.length)return a===h?void 0:this;if(a==h)return this[0].value;
for(var b=0;b<this.length;b++)this[b].value=a;return this},attr:function(a,b){if(0===this.length)return b===h?void 0:this;if(b===h&&!e.isObject(a))return this[0].afmCacheId&&u[this[0].afmCacheId]&&u[this[0].afmCacheId][a]?u[this[0].afmCacheId][a]:this[0].getAttribute(a);for(var c=0;c<this.length;c++)if(e.isObject(a))for(var d in a)e(this[c]).attr(d,a[d]);else e.isArray(b)||e.isObject(b)||e.isFunction(b)?(this[c].afmCacheId||(this[c].afmCacheId=e.uuid()),u[this[c].afmCacheId]||(u[this[c].afmCacheId]=
{}),u[this[c].afmCacheId][a]=b):(null===b?this[c].removeAttribute(a):this[c].setAttribute(a,b),this[c].afmCacheId&&u[this[c].afmCacheId][a]&&delete u[this[c].afmCacheId][a]);return this},removeAttr:function(a){for(var b=function(b){c[d].removeAttribute(b);c[d].afmCacheId&&u[c[d].afmCacheId]&&delete u[c[d].afmCacheId][a]},c=this,d=0;d<this.length;d++)a.split(/\s+/g).forEach(b);return this},prop:function(a,b){if(0===this.length)return b===h?void 0:this;if(b===h&&!e.isObject(a)){var c;return this[0].afmCacheId&&
w[this[0].afmCacheId]&&w[this[0].afmCacheId][a]?w[this[0].afmCacheId][a]:!(c=this[0][a])&&a in this[0]?this[0][a]:c}for(c=0;c<this.length;c++)if(e.isObject(a))for(var d in a)e(this[c]).prop(d,a[d]);else e.isArray(b)||e.isObject(b)||e.isFunction(b)?(this[c].afmCacheId||(this[c].afmCacheId=e.uuid()),w[this[c].afmCacheId]||(w[this[c].afmCacheId]={}),w[this[c].afmCacheId][a]=b):null===b&&void 0!==b?e(this[c]).removeProp(a):(e(this[c]).removeProp(a),this[c][a]=b);return this},removeProp:function(a){for(var b=
function(b){c[d][b]&&(c[d][b]=void 0);c[d].afmCacheId&&w[c[d].afmCacheId]&&delete w[c[d].afmCacheId][a]},c=this,d=0;d<this.length;d++)a.split(/\s+/g).forEach(b);return this},remove:function(a){a=e(this).filter(a);if(a==h)return this;for(var b=0;b<a.length;b++)e.cleanUpContent(a[b],!0,!0),a[b]&&a[b].parentNode&&a[b].parentNode.removeChild(a[b]);return this},addClass:function(a){var b=function(a){f.hasClass(a,f[c])||e.push(a)};if(a==h)return this;for(var c=0;c<this.length;c++){var d=this[c].className,
e=[],f=this;a.split(/\s+/g).forEach(b);this[c].className+=(d?" ":"")+e.join(" ");this[c].className=this[c].className.trim()}return this},removeClass:function(a){if(a==h)return this;for(var b=function(a){d=d.replace(y(a)," ")},c=0;c<this.length;c++){if(a==h){this[c].className="";break}var d=this[c].className;"object"===typeof this[c].className&&(d=" ");a.split(/\s+/g).forEach(b);this[c].className=0<d.length?d.trim():""}return this},toggleClass:function(a,b){if(a==h)return this;for(var c=0;c<this.length;c++)"boolean"!==
typeof b&&(b=this.hasClass(a,this[c])),e(this[c])[b?"removeClass":"addClass"](a);return this},replaceClass:function(a,b){if(a==h||b==h)return this;for(var c=function(a){e=e.replace(y(a)," ")},d=0;d<this.length;d++)if(a==h)this[d].className=b;else{var e=this[d].className;a.split(/\s+/g).concat(b.split(/\s+/g)).forEach(c);e=e.trim();this[d].className=0<e.length?(e+" "+b).trim():b}return this},hasClass:function(a,b){if(0===this.length)return!1;b||(b=this[0]);return y(a).test(b.className)},append:function(a,
b,c){if(a&&a.length!=h&&0===a.length)return this;if(e.isArray(a)||e.isObject(a))a=e(a);var d;b&&e(this).add(b);for(b=0;b<this.length;b++)if(a.length&&"string"!==typeof a)a=e(a),x(a,this[b],c);else{var g=Y.test(a)?e(a):void 0;if(g==h||0===g.length)g=k.createTextNode(a);if(g instanceof r)for(var D=0,R=g.length;D<R;D++)d=g[D],d.nodeName!=h&&"script"===d.nodeName.toLowerCase()&&(!d.type||"text/javascript"===d.type.toLowerCase())?f.eval(d.innerHTML):x(e(d),this[b],c);else c!=h?this[b].insertBefore(g,this[b].firstChild):
this[b].appendChild(g)}return this},appendTo:function(a,b){e(a).append(this);return this},prependTo:function(a){e(a).append(this,null,!0);return this},prepend:function(a){return this.append(a,null,1)},insertBefore:function(a,b){if(0===this.length)return this;a=e(a).get(0);if(!a)return this;for(var c=0;c<this.length;c++)b?a.parentNode.insertBefore(this[c],a.nextSibling):a.parentNode.insertBefore(this[c],a);return this},insertAfter:function(a){this.insertBefore(a,!0)},get:function(a){a=a==h?null:a;
0>a&&(a+=this.length);if(null===a){a=[];for(var b=0;b<this.length;b++)a.push(this[b]);return a}return this[a]?this[a]:void 0},offset:function(){var a;if(0===this.length)return this;if(this[0]===f)return{left:0,top:0,right:0,bottom:0,width:f.innerWidth,height:f.innerHeight};a=this[0].getBoundingClientRect();return{left:a.left+f.pageXOffset,top:a.top+f.pageYOffset,right:a.right+f.pageXOffset,bottom:a.bottom+f.pageYOffset,width:a.right-a.left,height:a.bottom-a.top}},height:function(a){return 0===this.length?
this:a!=h?this.css("height",a):this[0]===this[0].window?f.innerHeight:this[0].nodeType===this[0].DOCUMENT_NODE?this[0].documentElement.offsetHeight:(a=this.css("height").replace("px",""))?+a:this.offset().height},width:function(a){return 0===this.length?this:a!=h?this.css("width",a):this[0]===this[0].window?f.innerWidth:this[0].nodeType===this[0].DOCUMENT_NODE?this[0].documentElement.offsetWidth:(a=this.css("width").replace("px",""))?+a:this.offset().width},parent:function(a,b){if(0===this.length)return this;
for(var c=[],d=0;d<this.length;d++)for(var g=this[d];g.parentNode&&g.parentNode!==k&&!(c.push(g.parentNode),g.parentNode&&(g=g.parentNode),!b););return this.setupOld(e(l(c)).filter(a))},parents:function(a){return this.parent(a,!0)},children:function(a){if(0===this.length)return this;for(var b=[],c=0;c<this.length;c++)b=b.concat(m(this[c].firstChild));return this.setupOld(e(b).filter(a))},siblings:function(a){if(0===this.length)return this;for(var b=[],c=0;c<this.length;c++)this[c].parentNode&&(b=
b.concat(m(this[c].parentNode.firstChild,this[c])));return this.setupOld(e(b).filter(a))},contents:function(a){if(0===this.length)return this;for(var b=[],c=0;c<this.length;c++)this[c].parentNode&&n(this[c].childNodes,b);return this.setupOld(e(b).filter(a))},closest:function(a,b){if(0===this.length)return this;var c=this[0],d=e(a,b);if(0===d.length)return e();for(;c&&-1===d.indexOf(c);)c=c!==b&&c!==k&&c.parentNode;return e(c)},filter:function(a){if(0===this.length||a==h)return this;for(var b=[],c=
0;c<this.length;c++){var d=this[c];d.parentNode&&0<=e(a,d.parentNode).indexOf(d)&&b.push(d)}return this.setupOld(e(l(b)))},not:function(a){if(0===this.length)return this;for(var b=[],c=0;c<this.length;c++){var d=this[c];d.parentNode&&-1===e(a,d.parentNode).indexOf(d)&&b.push(d)}return this.setupOld(e(l(b)))},data:function(a,b){return this.attr("data-"+a,b)},end:function(){return this.oldElement!=h?this.oldElement:e()},clone:function(a){a=!1===a?!1:!0;if(0===this.length)return this;for(var b=[],c=
0;c<this.length;c++)b.push(this[c].cloneNode(a));return e(b)},size:function(){return this.length},serialize:function(){if(0===this.length)return"";for(var a=function(a){var c=a.getAttribute("type");if("fieldset"!==a.nodeName.toLowerCase()&&(!a.disabled&&"submit"!==c&&"reset"!==c&&"button"!==c&&("radio"!==c&&"checkbox"!==c||a.checked))&&a.getAttribute("name"))if("select-multiple"===a.type)for(c=0;c<a.options.length;c++)a.options[c].selected&&b.push(a.getAttribute("name")+"="+encodeURIComponent(a.options[c].value));
else b.push(a.getAttribute("name")+"="+encodeURIComponent(a.value))},b=[],c=0;c<this.length;c++)this.slice.call(this[c].elements).forEach(a);return b.join("&")},eq:function(a){return e(this.get(a))},index:function(a){return a?this.indexOf(e(a)[0]):this.parent().children().indexOf(this[0])},is:function(a){return!!a&&0<this.filter(a).length},add:function(a){a=e(a);var b,c=a.length;for(b=0;b<c;b++)this[this.length++]=a[b];return this}};e.ajaxSettings={type:"GET",beforeSend:q,success:q,error:q,complete:q,
context:void 0,timeout:0,crossDomain:null,processData:!0};e.jsonP=function(a){if(B)return a.type="get",a.dataType=null,e.get(a);var b="jsonp_callback"+ ++X,c="",d,g=k.createElement("script");f[b]=function(d){clearTimeout(c);e(g).remove();delete f[b];a.success.call(void 0,d)};if(-1!==a.url.indexOf("callback=?"))g.src=a.url.replace(/=\?/,"="+b);else{d=a.jsonp?a.jsonp:"callback";if(-1===a.url.indexOf("?"))a.url+="?"+d+"="+b;else if(-1!==a.url.indexOf("callback=")){d=a.url.indexOf("callback=")+9;var h=
a.url.indexOf(d);-1===h&&(h=a.url.length);d=a.url.substr(d,h);a.url=a.url.replace("callback="+d,"callback="+b);d=d.replace("window.","");a.success=f[d]}else a.url+="&"+d+"="+b;g.src=a.url}a.error&&(g.onerror=function(){clearTimeout(c);a.error.call(void 0,"","error")});e("head").append(g);0<a.timeout&&(c=setTimeout(function(){a.error.call(void 0,"","timeout")},a.timeout));return{}};e.ajax=function(a){var b,c=e.Deferred();"string"===typeof a&&(a={url:a});var d=a||{},g;for(g in e.ajaxSettings)"undefined"===
typeof d[g]&&(d[g]=e.ajaxSettings[g]);try{d.url||(d.url=f.location);d.headers||(d.headers={});if(!("async"in d)||!1!==d.async)d.async=!0;d.processData&&e.isObject(d.data)&&(d.data=e.param(d.data));"get"===d.type.toLowerCase()&&d.data&&(-1===d.url.indexOf("?")?d.url+="?"+d.data:d.url+="&"+d.data);d.data&&(!d.contentType&&!1!==d.contentType)&&(d.contentType="application/x-www-form-urlencoded; charset=UTF-8");if(d.dataType)switch(d.dataType){case "script":d.dataType="text/javascript, application/javascript";
break;case "json":d.dataType="application/json";break;case "xml":d.dataType="application/xml, text/xml";break;case "html":d.dataType="text/html";break;case "text":d.dataType="text/plain";break;case "jsonp":return e.jsonP(a);default:d.dataType="text/html"}else d.dataType="text/html";if(/=\?/.test(d.url))return e.jsonP(d);null===d.crossDomain&&(d.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(d.url)&&RegExp.$2!==f.location.host);d.crossDomain||(d.headers=e.extend({"X-Requested-With":"XMLHttpRequest"},d.headers));
var h,k=d.context,s=/^([\w-]+:)\/\//.test(d.url)?RegExp.$1:f.location.protocol;b=new f.XMLHttpRequest;e.extend(b,c.promise);b.onreadystatechange=function(){var a=d.dataType;if(4===b.readyState){clearTimeout(h);var g,l=!1,t=b.getResponseHeader("content-type")||"";if(200<=b.status&&300>b.status||0===b.status&&"file:"===s){if("application/json"===t||"application/json"===a&&!/^\s*$/.test(b.responseText))try{g=JSON.parse(b.responseText)}catch(q){l=q}else if(-1!==t.indexOf("javascript"))try{g=b.responseText,
f.eval(g)}catch(m){console.log(m)}else"application/xml, text/xml"===a?g=b.responseXML:"text/html"===a?(g=b.responseText,e.parseJS(g)):g=b.responseText;0===b.status&&0===g.length&&(l=!0);l?(d.error.call(k,b,"parsererror",l),c.reject.call(k,b,"parsererror",l)):(c.resolve.call(k,g,"succes",b),d.success.call(k,g,"success",b))}else l=!0,c.reject.call(k,b,"error"),d.error.call(k,b,"error");d.complete.call(k,b,l?"error":"success")}};b.open(d.type,d.url,d.async);d.withCredentials&&(b.withCredentials=!0);
d.contentType&&(d.headers["Content-Type"]=d.contentType);for(var l in d.headers)"string"===typeof d.headers[l]&&b.setRequestHeader(l,d.headers[l]);if(!1===d.beforeSend.call(k,b,d))return b.abort(),!1;0<d.timeout&&(h=setTimeout(function(){b.onreadystatechange=q;b.abort();d.error.call(k,b,"timeout")},d.timeout));b.send(d.data)}catch(t){c.resolve(k,b,"error",t),d.error.call(k,b,"error",t)}return b};e.get=function(a,b){return this.ajax({url:a,success:b})};e.post=function(a,b,c,d){"function"===typeof b&&
(c=b,b={});d===h&&(d="html");return this.ajax({url:a,type:"POST",data:b,dataType:d,success:c})};e.getJSON=function(a,b,c){"function"===typeof b&&(c=b,b={});return this.ajax({url:a,data:b,success:c,dataType:"json"})};e.getScript=function(a,b){if(/^([\w-]+:)?\/\/([^\/]+)/.test(a)){var c=e.Deferred(),d=e.create("script",{async:!0,src:a}).get(0);d.onload=function(){b&&b();c.resolve.call(this,"success");e(this).remove()};d.onerror=function(){e(this).remove();c.reject.call(this,"success")};k.head.appendChild(d);
return c.promise}return this.ajax({url:a,success:b,dataType:"script"})};e.param=function(a,b){var c=[];if(a instanceof r)a.each(function(){c.push((b?b+"["+this.id+"]":this.id)+"="+encodeURIComponent(this.value))});else for(var d in a)if(!e.isFunction(a[d])){var g=b?b+"["+d+"]":d,f=a[d];c.push(e.isObject(f)?e.param(f,g):g+"="+encodeURIComponent(f))}return c.join("&")};e.parseJSON=function(a){return JSON.parse(a)};e.parseXML=function(a){if(B)MSApp.execUnsafeLocalFunction(function(){return(new DOMParser).parseFromString(a,
"text/xml")});else return(new DOMParser).parseFromString(a,"text/xml")};C(e,navigator.userAgent);e.__detectUA=C;e.uuid=function(){var a=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()};e.getCssMatrix=function(a){e.is$(a)&&(a=a.get(0));var b=f.WebKitCSSMatrix||f.MSCSSMatrix;if(a===h)return b?new b:{a:0,b:0,c:0,d:0,e:0,f:0};a=f.getComputedStyle(a);a=a.webkitTransform||a.transform||a[e.feat.cssPrefix+"Transform"];return b?
new b(a):a?(b=a.replace(/[^0-9\-.,]/g,"").split(","),{a:+b[0],b:+b[1],c:+b[2],d:+b[3],e:+b[4],f:+b[5]}):{a:0,b:0,c:0,d:0,e:0,f:0}};e.create=function(a,b){var c,d=new r;if(b||"<"!==a[0]){b.html&&(b.innerHTML=b.html,delete b.html);c=k.createElement(a);for(var e in b)c[e]=b[e];d[d.length++]=c}else c=k.createElement("div"),B?MSApp.execUnsafeLocalFunction(function(){c.innerHTML=a.trim()}):c.innerHTML=a,n(c.childNodes,d);return d};e.query=function(a,b){if(!a)return new r;b=b||k;return(new r).selector(a,
b)};var v={},Q=1;e.event={add:F,remove:G};e.fn.bind=function(a,b){for(var c=0,d=this.length;c<d;c++)F(this[c],a,b);return this};e.fn.unbind=function(a,b){for(var c=0,d=this.length;c<d;c++)G(this[c],a,b);return this};e.fn.one=function(a,b){return this.each(function(c,d){F(this,a,b,null,function(a,b){return function(){G(d,b,a);return a.apply(d,arguments)}})})};var U=function(){return!0},V=function(){return!1},T={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",
stopPropagation:"isPropagationStopped"};e.fn.delegate=function(a,b,c,d){e.isFunction(c)&&(d=c,c=null);for(var g=0,f=this.length;g<f;g++)W(this[g],b,d,a,c);return this};e.fn.undelegate=function(a,b,c){for(var d=0,e=this.length;d<e;d++)G(this[d],b,c,a);return this};e.fn.on=function(a,b,c,d){e.isFunction(c)&&(d=c,c=null);return b===h||e.isFunction(b)?this.bind(a,b):this.delegate(b,a,c,d)};e.fn.off=function(a,b,c){return b===h||e.isFunction(b)?this.unbind(a,b):this.undelegate(b,a,c)};e.fn.trigger=function(a,
b,c){"string"===typeof a&&(a=e.Event(a,c));a.data=b;b=0;for(c=this.length;b<c;b++)this[b].dispatchEvent(a);return this};e.Event=function(a,b){var c=k.createEvent("Events"),d=!0;if(b)for(var e in b)"bubbles"===e?d=!!b[e]:c[e]=b[e];c.initEvent(a,d,!0,null,null,null,null,null,null,null,null,null,null,null,null);return c};e.bind=function(a,b,c){if(a){a.__events||(a.__events={});e.isArray(b)||(b=[b]);for(var d=0;d<b.length;d++)a.__events[b[d]]||(a.__events[b[d]]=[]),a.__events[b[d]].push(c)}};e.trigger=
function(a,b,c){if(a){var d=!0;if(!a.__events)return d;e.isArray(b)||(b=[b]);e.isArray(c)||(c=[]);for(var g=0;g<b.length;g++)if(a.__events[b[g]])for(var f=a.__events[b[g]].slice(0),h=0;h<f.length;h++)e.isFunction(f[h])&&!1===f[h].apply(a,c)&&(d=!1);return d}};e.unbind=function(a,b,c){if(a.__events){e.isArray(b)||(b=[b]);for(var d=0;d<b.length;d++)if(a.__events[b[d]])for(var g=a.__events[b[d]],f=0;f<g.length;f++)if(c==h&&delete g[f],g[f]===c){g.splice(f,1);break}}};e.proxy=function(a,b,c){return function(){return c?
a.apply(b,c):a.apply(b,arguments)}};var Z=function(a,b){for(var c=0;c<a.length;c++)K(a[c],b)};e.cleanUpContent=function(a,b,c){if(a){var d=a.childNodes;d&&0<d.length&&e.asap(Z,{},[L.apply(d,[0]),c]);b&&J(a,c)}};var I=[],N=[],O=[];e.asap=function(a,b,c){if(!e.isFunction(a))throw"$.asap - argument is not a valid function";I.push(a);N.push(b?b:{});O.push(c?c:[]);f.postMessage("afm-asap","*")};f.addEventListener("message",function(a){a.source===f&&"afm-asap"===a.data&&(a.stopPropagation(),0<I.length&&
I.shift().apply(N.shift(),O.shift()))},!0);var P={};e.parseJS=function(a){if(a){if("string"===typeof a){var b=k.createElement("div");B?MSApp.execUnsafeLocalFunction(function(){b.innerHTML=a}):b.innerHTML=a;a=b}var c=a.getElementsByTagName("script");a=null;for(var d=0;d<c.length;d++)if(0<c[d].src.length&&!P[c[d].src]&&!B){var e=k.createElement("script");e.type=c[d].type;e.src=c[d].src;k.getElementsByTagName("head")[0].appendChild(e);P[c[d].src]=1;e=null}else f.eval(c[d].innerHTML)}};"click keydown keyup keypress submit load resize change select error".split(" ").forEach(function(a){e.fn[a]=
function(b){return b?this.bind(a,b):this.trigger(a)}});["focus","blur"].forEach(function(a){e.fn[a]=function(b){if(0!==this.length){if(b)this.bind(a,b);else for(b=0;b<this.length;b++)try{this[b][a]()}catch(c){}return this}}});e.Deferred=function(){return{reject:function(){},resolve:function(){},promise:{then:function(){},fail:function(){}}}};return e}(window);window.jq=af;"$"in window||(window.$=af);"function"===typeof define&&define.amd?define("appframework",[],function(){return af}):"undefined"!==
typeof module&&module.exports&&(module.exports.af=af,module.exports.$=af);window.numOnly||(window.numOnly=function(f){if(void 0===f||""===f)return 0;if(isNaN(parseFloat(f)))if(f.replace)f=f.replace(/[^0-9.-]/g,"");else return 0;return parseFloat(f)})};/*
 BSD - https://github.com/cburgmer/ayepromise/commit/299eb65b5ce227873b2f1724c8f5b2bfa723680a
 https://github.com/cburgmer/ayepromise
*/
(function(f,x){f.ayepromise=x()})(this,function(){var f={},x=function(){var f=!1;return function(m){return function(){f||(f=!0,m.apply(null,arguments))}}},y=function(l,m){var p=f.defer(),n=function(f,l){setTimeout(function(){var m;try{m=f(l)}catch(n){p.reject(n);return}m===p.promise?p.reject(new TypeError("Cannot resolve promise with itself")):p.resolve(m)},1)};return{promise:p.promise,callFulfilled:function(f){l&&l.call?n(l,f):p.resolve(f)},callRejected:function(f){m&&m.call?n(m,f):p.reject(f)}}};
f.defer=function(){var f=0,m,p=[],n=function(s){f=1;m=s;p.forEach(function(f){f.callFulfilled(m)})},q=function(s){f=2;m=s;p.forEach(function(f){f.callRejected(m)})},C=function(s,t){var n=y(s,t);p.push(n);1===f?n.callFulfilled(m):2===f&&n.callRejected(m);return n.promise},z=function(f){var l;try{var m=f&&f.then;l=null!==f&&"object"===typeof f&&"function"===typeof m?m.bind(f):void 0}catch(p){q(p);return}if(l){f=l;l=x();try{f(l(z),l(q))}catch(y){l(q)(y)}}else n(f)},E=x();return{resolve:E(z),reject:E(q),
promise:{then:C,fail:function(f){return C(null,f)}}}};return f});(function(f){f.Deferred=ayepromise.defer})(af);
