//>>built
define("dojox/jq",["dijit","dojo","dojox","dojo/require!dojo/NodeList-traverse,dojo/NodeList-manipulate,dojo/io/script"],function(W,d,X){d.provide("dojox.jq");d.require("dojo.NodeList-traverse");d.require("dojo.NodeList-manipulate");d.require("dojo.io.script");(function(){function O(a,b){a=(a+"").replace(/<\s*(\w+)([^\/\>]*)\/\s*>/g,function(a,b,d){return-1==P.indexOf("|"+b+"|")?"\x3c"+b+d+"\x3e\x3c/"+b+"\x3e":a});return d._toDom(a,b)}function C(a){var b=a.indexOf("-");-1!=b&&(0==b&&(a=a.substring(1)),
a=a.replace(/-(\w)/g,function(a,b){return b.toUpperCase()}));return a}function D(a,b){if(a==b)return a;var c={},e;for(e in b)if((void 0===c[e]||c[e]!=b[e])&&void 0!==b[e]&&a!=b[e])d.isObject(a[e])&&d.isObject(b[e])?d.isArray(b[e])?a[e]=b[e]:a[e]=D(a[e],b[e]):a[e]=b[e];d.isIE&&b&&(e=b.toString,"function"==typeof e&&(e!=a.toString&&e!=c.toString&&"\nfunction toString() {\n    [native code]\n}\n"!=e)&&(a.toString=b.toString));return a}function E(a,b,c,e){if(e){var k={};k[c]=e;a.forEach(function(a){d[b](a,
k)});return a}return Math.abs(Math.round(d[b](a[0])[c]))}function s(a,b,c,e,k){var f=!1;if(f="none"==a.style.display)a.style.display="block";var h=d.getComputedStyle(a),l=Math.abs(Math.round(d._getContentBox(a,h)[b]));c=c?Math.abs(Math.round(d._getPadExtents(a,h)[b])):0;e=e?Math.abs(Math.round(d._getBorderExtents(a,h)[b])):0;b=k?Math.abs(Math.round(d._getMarginExtents(a,h)[b])):0;f&&(a.style.display="none");return c+l+e+b}function t(a){a=a.split("$$")[0];var b=a.indexOf(".");-1!=b&&(a=a.substring(0,
b));return a}function F(a,b){return 0==b.indexOf("ajax")?d.subscribe(w[b],function(c,e){var d=new f.Event(b);-1!="ajaxComplete|ajaxSend|ajaxSuccess".indexOf(b)?r(a,[d,c.ioArgs.xhr,c.ioArgs.args]):"ajaxError"==b?r(a,[d,c.ioArgs.xhr,c.ioArgs.args,e]):r(a,[d])}):d.connect(a,"on"+b,function(b){r(a,arguments)})}function G(a,b){a=a||[];a=[].concat(a);var c=a[0];if(!c||!c.preventDefault)c=b&&b.preventDefault?b:new f.Event(b),a.unshift(c);return a}function r(a,b,c){x=!0;b=b||y;9==a.nodeType&&(a=a.documentElement);
var e=a.getAttribute(m);if(e){var k=b[0],f=k.type,h=t(f),e=p[e][h],l;c&&(l=c.apply(a,b));if(!1!==l)for(var g in e)if("_connectId"!=g&&(!k._isStrict&&0==g.indexOf(f)||k._isStrict&&g==f))k[d._scopeName+"callbackId"]=g,a=e[g],k.data="undefined"!=typeof a.data?a.data:null,!1===(l=a.fn.apply(k.target,b))&&!k._isFake&&d.stopEvent(k),k.result=l;return l}}function H(a,b,c,e,k){var f=a[b];if(f){var h=-1!=c.indexOf("."),g=!1;if(e)delete f[e];else if(!h&&!k)g=!0;else if(h)if("."==c.charAt(0))for(var n in f)n.indexOf(c)==
n.length-c.length&&delete f[n];else delete f[c];else for(n in f)if(-1!=n.indexOf("$$")&&f[n].fn==k){delete f[n];break}c=!0;for(n in f)if("_connectId"!=n){c=!1;break}if(g||c)-1!=b.indexOf("ajax")?d.unsubscribe(f._connectId):d.disconnect(f._connectId),delete a[b]}}function I(a){d.isString(a)&&(a="slow"==a?700:"fast"==a?300:500);return a}function J(a){for(var b in a)if(b.indexOf("callback")==b.length-8)return b;return null}d.config.ioPublish=!0;var P="|img|meta|hr|br|input|",Q=d.global.$,R=d.global.jQuery,
f=d.global.$=d.global.jQuery=function(a,b){var c=a;if(c)if(d.isString(c))if("\x3c"==c.charAt(0))if(c=O(c),11==c.nodeType)c=c.childNodes;else return f._wrap([c],null,f);else{var e=d._NodeListCtor;d._NodeListCtor=f;var k=b;k&&k._is$?k=k[0]:d.isString(k)&&(k=d.query(k)[0]);c=d.query.call(this,c,k);d._NodeListCtor=e;return c}else{if(d.isFunction(c))return f.ready(c),f;if(c==document||c==window)return f._wrap([c],null,f);if(d.isArray(c)){e=[];for(k=0;k<c.length;k++)-1==d.indexOf(e,c[k])&&e.push(c[k]);
return f._wrap(c,null,f)}if("nodeType"in c)return f._wrap([c],null,f)}else return f._wrap([],null,f);return f._wrap(d._toArray(c),null,f)},z=d.NodeList.prototype,g=f.fn=f.prototype=d.delegate(z);f._wrap=d.NodeList._wrap;var S=/^H\d/i,q=d.query.pseudos;d.mixin(q,{has:function(a,b){return function(a){return f(b,a).length}},visible:function(a,b){return function(a){return"hidden"!=d.style(a,"visible")&&"none"!=d.style(a,"display")}},hidden:function(a,b){return function(a){return"hidden"==a.type||"hidden"==
d.style(a,"visible")||"none"==d.style(a,"display")}},selected:function(a,b){return function(a){return a.selected}},checked:function(a,b){return function(a){return"INPUT"==a.nodeName.toUpperCase()&&a.checked}},disabled:function(a,b){return function(a){return a.getAttribute("disabled")}},enabled:function(a,b){return function(a){return!a.getAttribute("disabled")}},input:function(a,b){return function(a){a=a.nodeName.toUpperCase();return"INPUT"==a||"SELECT"==a||"TEXTAREA"==a||"BUTTON"==a}},button:function(a,
b){return function(a){return"INPUT"==a.nodeName.toUpperCase()&&"button"==a.type||"BUTTON"==a.nodeName.toUpperCase()}},header:function(a,b){return function(a){return a.nodeName.match(S)}}});var K={};d.forEach("text password radio checkbox submit image reset file".split(" "),function(a){K[a]=function(b,c){return function(b){return"INPUT"==b.nodeName.toUpperCase()&&b.type==a}}});d.mixin(q,K);f.browser={mozilla:d.isMoz,msie:d.isIE,opera:d.isOpera,safari:d.isSafari};f.browser.version=d.isIE||d.isMoz||
d.isOpera||d.isSafari||d.isWebKit;f.ready=f.fn.ready=function(a){d.addOnLoad(d.hitch(null,a,f));return this};g._is$=!0;g.size=function(){return this.length};f.prop=function(a,b){return d.isFunction(b)?b.call(a):b};f.className={add:d.addClass,remove:d.removeClass,has:d.hasClass};f.makeArray=function(a){return"undefined"==typeof a?[]:a.length&&!d.isString(a)&&!("location"in a)?d._toArray(a):[a]};f.merge=function(a,b){var c=[a.length,0],c=c.concat(b);a.splice.apply(a,c);return a};f.each=function(a,b){if(d.isArrayLike(a))for(var c=
0;c<a.length&&!1!==b.call(a[c],c,a[c]);c++);else if(d.isObject(a))for(c in a)if(!1===b.call(a[c],c,a[c]))break;return this};g.each=function(a){return f.each.call(this,this,a)};g.eq=function(){var a=f();d.forEach(arguments,function(b){this[b]&&a.push(this[b])},this);return a};g.get=function(a){return a||0==a?this[a]:this};g.index=function(a){a._is$&&(a=a[0]);return this.indexOf(a)};var L=[],T=0,A=d._scopeName+"DataId",M=function(a){var b={};1==a.nodeType&&(b=a.getAttribute(A),b||(b=T++,a.setAttribute(A,
b)),(b=L[void 0])||(b=L[void 0]={}));return b};f.data=function(a,b,c){var e=null;if("events"==b){e=p[a.getAttribute(m)];b=!0;if(e)for(var d in e){b=!1;break}return b?null:e}d=M(a);"undefined"!=typeof c?d[b]=c:e=d[b];return c?this:e};f.removeData=function(a,b){var c=M(a);delete c[b];if(1==a.nodeType){var e=!0,d;for(d in c){e=!1;break}e&&a.removeAttribute(A)}return this};g.data=function(a,b){var c=null;this.forEach(function(e){c=f.data(e,a,b)});return b?this:c};g.removeData=function(a){this.forEach(function(b){f.removeData(b,
a)});return this};g.extend=function(){var a=[this],a=a.concat(arguments);return f.extend.apply(f,a)};f.extend=function(){for(var a=arguments,b,c=0;c<a.length;c++){var e=a[c];e&&d.isObject(e)&&(b?D(b,e):b=e)}return b};f.noConflict=function(a){var b=f;d.global.$=Q;a&&(d.global.jQuery=R);return b};g.attr=function(a,b){if(1==arguments.length&&d.isString(arguments[0])){var c=this[0];if(!c)return null;var e=arguments[0],f=d.attr(c,e),g=c[e];return e in c&&!d.isObject(g)&&"href"!=a?g:f||g}if(d.isObject(a))for(c in a)this.attr(c,
a[c]);else{var h=d.isFunction(b);this.forEach(function(c,e){var f=c[a];a in c&&!d.isObject(f)&&"href"!=a?c[a]=h?b.call(c,e):b:1==c.nodeType&&d.attr(c,a,h?b.call(c,e):b)})}return this};g.removeAttr=function(a){this.forEach(function(b,c){var e=b[a];a in b&&!d.isObject(e)&&"href"!=a?delete b[a]:1==b.nodeType&&("class"==a?b.removeAttribute(a):d.removeAttr(b,a))});return this};g.toggleClass=function(a,b){var c=1<arguments.length;this.forEach(function(e){d.toggleClass(e,a,c?b:!d.hasClass(e,a))});return this};
g.toggle=function(){var a=arguments;if(1<arguments.length&&d.isFunction(arguments[0])){var b=0;return this.bind("click",function(){a[b].apply(this,arguments);b+=1;b>a.length-1&&(b=0)})}var c=1==arguments.length?arguments[0]:void 0;this.forEach(function(b){var k=("undefined"==typeof c?"none"==d.style(b,"display"):c)?"show":"hide";b=f(b);b[k].apply(b,a)});return this};g.hasClass=function(a){return this.some(function(b){return d.hasClass(b,a)})};g.html=g.innerHTML;d.forEach(["filter","slice"],function(a){g[a]=
function(){var b;if(d.isFunction(arguments[0])){var c=arguments[0];arguments[0]=function(a,b){return c.call(a,a,b)}}if("filter"==a&&d.isString(arguments[0]))b=this._filterQueryResult(this,arguments[0]);else{var e=d._NodeListCtor;d._NodeListCtor=g;b=f(z[a].apply(this,arguments));d._NodeListCtor=e}return b._stash(this)}});g.map=function(a){return this._buildArrayFromCallback(a)};f.map=function(a,b){return g._buildArrayFromCallback.call(a,b)};f.inArray=function(a,b){return d.indexOf(b,a)};g.is=function(a){return a?
!!this.filter(a).length:!1};g.not=function(){var a=f.apply(f,arguments);return f(z.filter.call(this,function(b){return-1==a.indexOf(b)}))._stash(this)};g.add=function(){return this.concat.apply(this,arguments)};g.contents=function(){var a=[];this.forEach(function(b){if("IFRAME"==b.nodeName.toUpperCase())(b=b.contentDocument||b.name&&b.document&&document.getElementsByTagName("iframe")[b.name].contentWindow&&document.getElementsByTagName("iframe")[b.name].contentWindow.document||b.name&&document.frames[b.name]&&
document.frames[b.name].document||null)&&a.push(b);else{b=b.childNodes;for(var c=0;c<b.length;c++)a.push(b[c])}});return this._wrap(a)._stash(this)};g.find=function(a){var b=[];this.forEach(function(c){1==c.nodeType&&(b=b.concat(d._toArray(f(a,c))))});return this._getUniqueAsNodeList(b)._stash(this)};g.andSelf=function(){return this.add(this._parent)};g.remove=function(a){a=a?this._filterQueryResult(this,a):this;a.removeData();a.forEach(function(a){a.parentNode.removeChild(a)});return this};f.css=
function(a,b,c){b=C(b);return c?d.style(a,b,c):d.style(a,b)};g.css=function(a,b){if(d.isString(a)){a=C(a);if(2==arguments.length)return!d.isString(b)&&"zIndex"!=a&&(b+="px"),this.forEach(function(c){1==c.nodeType&&d.style(c,a,b)}),this;b=d.style(this[0],a);!d.isString(b)&&"zIndex"!=a&&(b+="px");return b}for(var c in a)this.css(c,a[c]);return this};g.height=function(a){return E(this,"contentBox","h",a)};g.width=function(a){return E(this,"contentBox","w",a)};g.innerHeight=function(){return s(this[0],
"h",!0)};g.innerWidth=function(){return s(this[0],"w",!0)};g.outerHeight=function(a){return s(this[0],"h",!0,!0,a)};g.outerWidth=function(a){return s(this[0],"w",!0,!0,a)};var p=[],N=1,m=d._scopeName+"eventid",y;f.Event=function(a){if(this==f)return new f.Event(a);"string"==typeof a?this.type=a.replace(/!/,""):d.mixin(this,a);this.timeStamp=(new Date).getTime();this._isFake=!0;this._isStrict=-1!=this.type.indexOf("!")};q=f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=this._true},
stopPropagation:function(){this.isPropagationStopped=this._true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=this.isPropagationStopped=this._true},_true:function(){return!0},_false:function(){return!1}};d.mixin(q,{isPropagationStopped:q._false,isImmediatePropagationStopped:q._false,isDefaultPrevented:q._false});var x=!1;g.triggerHandler=function(a,b,c){var d=this[0];if(d&&3!=d.nodeType&&8!=d.nodeType)return b=G(b,a),r(d,b,c)};g.trigger=function(a,b,c){b=G(b,a);var d=b[0];
a=t(d.type);y=b;currentExtraFunc=c;var k=null,g=!d.target;this.forEach(function(h){if(3!=h.nodeType&&8!=h.nodeType){9==h.nodeType&&(h=h.documentElement);d._isFake&&(d.currentTarget=h,g&&(d.target=h));if(c){var l=b.slice(1);k=c.apply(h,k=l.concat(k))}if(!1!==k){x=!1;if(h[a])try{k=h[a]()}catch(n){}else if(h["on"+a])try{k=h["on"+a]()}catch(u){}x||(k=r(h,b));h=h.parentNode;!1!==k&&(!d.isImmediatePropagationStopped()&&!d.isPropagationStopped()&&h&&1==h.nodeType)&&f(h).trigger(a,b,c)}}});currentExtraFunc=
y=null;return this};var U=0;g.bind=function(a,b,c){a=a.split(" ");c||(c=b,b=null);this.forEach(function(d){if(3!=d.nodeType&&8!=d.nodeType){9==d.nodeType&&(d=d.documentElement);var f=d.getAttribute(m);f||(f=N++,d.setAttribute(m,f),p[f]={});for(var g=0;g<a.length;g++){var h=a[g],l=t(h);l==h&&(h=l+"$$"+U++);var n=p[f];n[l]||(n[l]={_connectId:F(d,l)});n[l][h]={fn:c,data:b}}}});return this};g.unbind=function(a,b){var c=a?a[d._scopeName+"callbackId"]:null;a=(a=a&&a.type?a.type:a)?a.split(" "):a;this.forEach(function(d){if(3!=
d.nodeType&&8!=d.nodeType&&(9==d.nodeType&&(d=d.documentElement),d=d.getAttribute(m)))if(d=p[d]){var f=a;if(!f){var f=[],g;for(g in d)f.push(g)}for(var h=0;h<f.length;h++){var l=f[h],n=t(l);if("."==l.charAt(0))for(g in d)H(d,g,l,c,b);else H(d,n,l,c,b)}}});return this};g.one=function(a,b){return this.bind(a,function(){f(this).unbind(a,arguments.callee);return b.apply(this,arguments)})};g._cloneNode=function(a){var b=a.cloneNode(!0);if(1==a.nodeType)for(var c=d.query("["+m+"]",b),e=0,f;f=c[e];e++)if(d.query("["+
m+'\x3d"'+f.getAttribute(m)+'"]',a)[0]){var g=f.getAttribute(m);if(g=p[g]){var h=h=N++;f.setAttribute(m,h);var h=p[h]={},l=void 0;for(l in g){var n=h[l]={_connectId:F(f,l)},u=g[l],v;for(v in u)n[v]={fn:u[v].fn,data:u[v].data}}}}return b};d.getObject("$.event.global",!0);d.forEach("blur focus dblclick click error keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup submit ajaxStart ajaxSend ajaxSuccess ajaxError ajaxComplete ajaxStop".split(" "),function(a){g[a]=
function(b){b?this.bind(a,b):this.trigger(a);return this}});g.hide=function(a,b){a=I(a);this.forEach(function(c){var e=c.style;"none"!=d.getComputedStyle(c).display&&(e.overflow="hidden",e.display="block",a?d.anim(c,{width:0,height:0,opacity:0},a,null,function(){e.width="";e.height="";e.display="none";return b&&b.call(c)}):(d.style(c,"display","none"),b&&b.call(c)))});return this};g.show=function(a,b){a=I(a);this.forEach(function(c){var e=c.style;if("none"==d.getComputedStyle(c).display)if(a){var f=
parseFloat(e.width),g=parseFloat(e.height);if(!f||!g)e.display="block",g=d.marginBox(c),f=g.w,g=g.h;e.width=0;e.height=0;e.overflow="hidden";d.attr(c,"opacity",0);e.display="block";d.anim(c,{width:f,height:g,opacity:1},a,null,b?d.hitch(c,b):void 0)}else d.style(c,"display","block"),b&&b.call(c)});return this};f.ajaxSettings={};f.ajaxSetup=function(a){d.mixin(f.ajaxSettings,a)};var w={ajaxStart:"/dojo/io/start",ajaxSend:"/dojo/io/send",ajaxSuccess:"/dojo/io/load",ajaxError:"/dojo/io/error",ajaxComplete:"/dojo/io/done",
ajaxStop:"/dojo/io/stop"},B;for(B in w)0==B.indexOf("ajax")&&function(a){g[a]=function(b){this.forEach(function(c){d.subscribe(w[a],function(d,g){var m=new f.Event(a),h=d&&d.ioArgs,l=h&&h.xhr,h=h&&h.args;return-1!="ajaxComplete|ajaxSend|ajaxSuccess".indexOf(a)?b.call(c,m,l,h):"ajaxError"==a?b.call(c,m,l,h,g):b.call(c,m)})});return this}}(B);var V=d._xhrObj;d._xhrObj=function(a){var b=V.apply(d,arguments);return a&&a.beforeSend&&!1===a.beforeSend(b)?!1:b};f.ajax=function(a){var b=d.delegate(f.ajaxSettings),
c;for(c in a)if("data"==c&&d.isObject(a[c])&&d.isObject(b.data))for(var e in a[c])b.data[e]=a[c][e];else b[c]=a[c];a=b;b=a.url;"async"in a&&(a.sync=!a.async);!1===a.global&&(a.ioPublish=!1);if(a.data)if(e=a.data,d.isString(e))a.content=d.queryToObject(e);else{for(c in e)d.isFunction(e[c])&&(e[c]=e[c]());a.content=e}c=a.dataType;"dataType"in a?("script"==c?c="javascript":"html"==c&&(c="text"),a.handleAs=c):(c=a.handleAs="text",a.guessedType=!0);if("cache"in a)a.preventCache=!a.cache;else if("script"==
a.dataType||"jsonp"==a.dataType)a.preventCache=!0;a.error&&(a._jqueryError=a.error,delete a.error);a.handle=function(b,c){var d="success";if(b instanceof Error)d="timeout"==b.dojoType?"timeout":"error",a._jqueryError&&a._jqueryError(c.xhr,d,b);else{var e=c.args.guessedType&&c.xhr&&c.xhr.responseXML;e&&(b=e);a.success&&a.success(b,d,c.xhr)}a.complete&&a.complete(b,d,c.xhr);return b};e="jsonp"==c;if("javascript"==c){var g=b.indexOf(":"),m=b.indexOf("/");if(0<g&&g<m){var h=b.indexOf("/",m+2);-1==h&&
(h=b.length);if(location.protocol!=b.substring(0,g+1)||location.hostname!=b.substring(m+2,h))e=!0}}if(e){if("jsonp"==c){b=a.jsonp;if(!b){if((c=a.url.split("?")[1])&&(c=d.queryToObject(c)))if(b=J(c))a.url=a.url.replace(RegExp("([\x26\\?])?"+b+"\x3d?")+"\x3d?");b||(b=J(a.content))&&delete a.content[b]}a.jsonp=b||"callback"}return b=d.io.script.get(a)}b=d.xhr(a.type||"GET",a);return!1===b.ioArgs.xhr?!1:b.ioArgs.xhr};f.getpost=function(a,b,c,e,g){a={url:b,type:a};c&&(d.isFunction(c)&&!e?a.complete=c:
a.data=c);e&&(d.isString(e)&&!g?g=e:a.complete=e);g&&(a.dataType=g);return f.ajax(a)};f.get=d.hitch(f,"getpost","GET");f.post=d.hitch(f,"getpost","POST");f.getJSON=function(a,b,c){return f.getpost("GET",a,b,c,"json")};f.getScript=function(a,b){return f.ajax({url:a,success:b,dataType:"script"})};g.load=function(a,b,c){var e=this[0];if(!e||!e.nodeType||9==e.nodeType)return d.addOnLoad(a),this;e=a.split(/\s+/);a=e[0];var g=e[1],m=c||b,e=d.hitch(this,function(a,b,c){var e=a.match(/\<\s*body[^>]+>.*<\/body\s*>/i);
e&&(a=e);e=d._toDom(a);if(g){var p=f(d.create("div"));p.append(e);e=p.find(g)}else e=f(11==e.nodeType?e.childNodes:e);this.html(e);m&&setTimeout(d.hitch(this,function(){this.forEach(function(d){m.call(d,a,b,c)})}),10)});c?c=e:b=e;e="GET";b&&d.isObject(b)&&(e="POST");f.getpost(e,a,b,c,"html");return this};g.serialize=function(){return""+this.map(function(a){if("FORM"==a.nodeName.toUpperCase())return d.formToQuery(a);var b=(a.type||"").toLowerCase();if(-1=="file|submit|image|reset|button|".indexOf(b)&&
(b=d.fieldToObject(a),a.name&&null!=b)){var c={};c[a.name]=b;return d.objectToQuery(c)}}).join("\x26")};f.param=function(a){return a._is$&&a.serialize?a.serialize():d.isArray(a)?d.map(a,function(a){return f.param(a)}).join("\x26"):d.objectToQuery(a)};f.isFunction=function(){var a=d.isFunction.apply(d,arguments);a&&(a="object"!=typeof arguments[0]);return a}})()});