(function(h,e){function c(d,f,n){if(n===e&&1===d.nodeType)if(n="data-"+f.replace(gc,"-$1").toLowerCase(),n=d.getAttribute(n),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:hc.test(n)?g.parseJSON(n):n}catch(S){}g.data(d,f,n)}else n=e;return n}function p(d){for(var f in d)if(!("data"===f&&g.isEmptyObject(d[f]))&&"toJSON"!==f)return!1;return!0}function b(){return!1}function r(){return!0}function q(d){return!d||!d.parentNode||11===d.parentNode.nodeType}function a(d, f){do d=d[f];while(d&&1!==d.nodeType);return d}function j(d,f,n){f=f||0;if(g.isFunction(f))return g.grep(d,function(d,g){return!!f.call(d,g,d)===n});if(f.nodeType)return g.grep(d,function(d){return d===f===n});if("string"==typeof f){var S=g.grep(d,function(d){return 1===d.nodeType});if(jc.test(f))return g.filter(f,S,!n);f=g.filter(f,S)}return g.grep(d,function(d){return 0<=g.inArray(d,f)===n})}function o(d){var f=ob.split("|");d=d.createDocumentFragment();if(d.createElement)for(;f.length;)d.createElement(f.pop()); return d}function t(d,f){if(1===f.nodeType&&g.hasData(d)){var n,S,a;S=g._data(d);var b=g._data(f,S),c=S.events;if(c)for(n in delete b.handle,b.events={},c){S=0;for(a=c[n].length;Sf;f+=2)"margin"===n&&(b+=g.css(d,n+ia[f],!0)),a?("content"===n&&(b-=parseFloat(Q(d,"padding"+ia[f]))||0),"margin"!==n&&(b-=parseFloat(Q(d,"border"+ia[f]+"Width"))||0)):(b+=parseFloat(Q(d, "padding"+ia[f]))||0,"padding"!==n&&(b+=parseFloat(Q(d,"border"+ia[f]+"Width"))||0));return b}function F(d,f,n){var a="width"===f?d.offsetWidth:d.offsetHeight,b=!0,c=g.support.boxSizing&&"border-box"===g.css(d,"boxSizing");if(0>=a){a=Q(d,f);if(0>a||null==a)a=d.style[f];if(ya.test(a))return a;b=c&&(g.support.boxSizingReliable||a===d.style[f]);a=parseFloat(a)||0}return a+D(d,f,n||(c?"border":"content"),b)+"px"}function y(d){if(Ra[d])return Ra[d];var f=g("\x3c"+d+"\x3e").appendTo(E.body),n=f.css("display"); f.remove();if("none"===n||""===n){na=E.body.appendChild(na||g.extend(E.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!oa||!na.createElement)oa=(na.contentWindow||na.contentDocument).document,oa.write("\x3c!doctype html\x3e\x3chtml\x3e\x3cbody\x3e"),oa.close();f=oa.body.appendChild(oa.createElement(d));n=Q(f,"display");E.body.removeChild(na)}return Ra[d]=n,n}function l(d,f,n,a){var b;if(g.isArray(f))g.each(f,function(f,g){n||lc.test(d)?a(d,g):l(d+"["+("object"==typeof g?f:"")+"]",g, n,a)});else if(!n&&"object"===g.type(f))for(b in f)l(d+"["+b+"]",f[b],n,a);else a(d,f)}function z(d){return function(f,n){"string"!=typeof f&&(n=f,f="*");var a,b,c=f.toLowerCase().split(ja),W=0,k=c.length;if(g.isFunction(n))for(;Wn&&a?f:(W.resolveWith(d,[m]),!1)},m=W.promise({elem:d,props:g.extend({},f),opts:g.extend(!0,{specialEasing:{}},n),originalProperties:f,originalOptions:n,startTime:za||s(),duration:n.duration,tweens:[],createTween:function(f,n){var a=g.Tween(d,m.opts,f,n,m.opts.specialEasing[f]||m.opts.easing);return m.tweens.push(a),a},stop:function(f){for(var n=0,g=f?m.tweens.length:0;na;a+=2-f)n=ia[a],g["margin"+n]=g["padding"+n]=d;return f&&(g.opacity=g.width=d),g}function N(d){return g.isWindow(d)?d:9===d.nodeType?d.defaultView||d.parentWindow:!1}var pa,X,E=h.document,m=h.location,R=h.navigator,O=h.jQuery,Ba=h.$, rb=Array.prototype.push,ca=Array.prototype.slice,sb=Array.prototype.indexOf,nc=Object.prototype.toString,Ta=Object.prototype.hasOwnProperty,tb=String.prototype.trim,g=function(d,f){return new g.fn.init(d,f,pa)},Ca=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,ub=/\S/,ja=/\s+/,oc=ub.test(" ")?/^[\s\xA0]+|[\s\xA0]+$/g:/^\s+|\s+$/g,pc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,vb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,qc=/^[\],:{}\s]*$/,rc=/(?:^|:|,)(?:\s*\[)+/g,sc=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,tc=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g, uc=/^-ms-/,vc=/-([\da-z])/gi,wc=function(d,f){return(f+"").toUpperCase()},Da=function(){E.addEventListener?(E.removeEventListener("DOMContentLoaded",Da,!1),g.ready()):"complete"===E.readyState&&(E.detachEvent("onreadystatechange",Da),g.ready())},wb={};g.fn=g.prototype={constructor:g,init:function(d,f,n){var a,b;if(!d)return this;if(d.nodeType)return this.context=this[0]=d,this.length=1,this;if("string"==typeof d){"\x3c"===d.charAt(0)&&"\x3e"===d.charAt(d.length-1)&&3<=d.length?a=[null,d,null]:a=pc.exec(d); if(a&&(a[1]||!f)){if(a[1])return f=f instanceof g?f[0]:f,b=f&&f.nodeType?f.ownerDocument||f:E,d=g.parseHTML(a[1],b,!0),vb.test(a[1])&&g.isPlainObject(f)&&this.attr.call(d,f,!0),g.merge(this,d);if((f=E.getElementById(a[2]))&&f.parentNode){if(f.id!==a[2])return n.find(d);this.length=1;this[0]=f}return this.context=E,this.selector=d,this}return!f||f.jquery?(f||n).find(d):this.constructor(f).find(d)}return g.isFunction(d)?n.ready(d):(d.selector!==e&&(this.selector=d.selector,this.context=d.context),g.makeArray(d, this))},selector:"",jquery:"1.8.0",length:0,size:function(){return this.length},toArray:function(){return ca.call(this)},get:function(d){return null==d?this.toArray():0>d?this[this.length+d]:this[d]},pushStack:function(d,f,n){d=g.merge(this.constructor(),d);return d.prevObject=this,d.context=this.context,"find"===f?d.selector=this.selector+(this.selector?" ":"")+n:f&&(d.selector=this.selector+"."+f+"("+n+")"),d},each:function(d,f){return g.each(this,d,f)},ready:function(d){return g.ready.promise().done(d), this},eq:function(d){return d=+d,-1===d?this.slice(d):this.slice(d,d+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ca.apply(this,arguments),"slice",ca.call(arguments).join(","))},map:function(d){return this.pushStack(g.map(this,function(f,n){return d.call(f,n,f)}))},end:function(){return this.prevObject||this.constructor(null)},push:rb,sort:[].sort,splice:[].splice};g.fn.init.prototype=g.fn;g.extend=g.fn.extend=function(){var d, f,n,a,b,c,m=arguments[0]||{},k=1,j=arguments.length,o=!1;"boolean"==typeof m&&(o=m,m=arguments[1]||{},k=2);"object"!=typeof m&&!g.isFunction(m)&&(m={});for(j===k&&(m=this,--k);kn?Math.max(0,g+n):n:0;n a)return null;d=m?a:0;for(n=m?a+1:c.length;ds.indexOf(":")?"on"+s:"",a){if(d.result=e,d.target||(d.target=a),f=null!=f?g.makeArray(f):[], f.unshift(d),o=g.event.special[s]||{},!(o.trigger&&!1===o.trigger.apply(a,f))){p=[[a,o.bindType||s]];if(!b&&!o.noBubble&&!g.isWindow(a)){m=o.delegateType||s;c=Fb.test(m+s)?a:a.parentNode;for(k=a;c;c=c.parentNode)p.push([c,m]),k=c;k===(a.ownerDocument||E)&&p.push([k.defaultView||k.parentWindow||h,m])}for(m=0;m l&&I.push({elem:this,matches:o.slice(l)});for(f=0;f+~])[\x20\t\r\n\f]*/,$a=RegExp(Ya+"?(?\x3d[\\x20\\t\\r\\n\\f]*,|$)","g"), Nb=RegExp("^(?:(?!,)(?:(?:^|,)[\\x20\\t\\r\\n\\f]*"+Ya+")*?|[\\x20\\t\\r\\n\\f]*(.*?))(\\)|$)"),Hc=RegExp(Ya.slice(19,-6)+"\\x20\\t\\r\\n\\f\x3e+~])+|[\\x20\\t\\r\\n\\f]*([\\x20\\t\\r\\n\\f\x3e+~])[\\x20\\t\\r\\n\\f]*","g"),Ic=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,ab=/[\x20\t\r\n\f]*[+~]/,Jc=/:not\($/,Kc=/h\d/i,Lc=/input|select|textarea|button/i,ra=/\\(?!\\)/g,ga={ID:/^#((?:\\.|[-\w]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[-\w]|[^\x00-\xa0])+)/,NAME:/^\[name=['"]?((?:\\.|[-\w]|[^\x00-\xa0])+)['"]?\]/, TAG:RegExp("^("+"(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("[-","[-\\*")+")"),ATTR:RegExp("^"+Mb),PSEUDO:RegExp("^:((?:\\\\.|[-\\w]|[^\\x00-\\xa0])+)(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|((?:[^,]|\\\\,|(?:,(?\x3d[^\\[]*\\]))|(?:,(?\x3d[^\\(]*\\))))*))\\)|)"),CHILD:RegExp("^:(only|nth|last|first)-child(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),POS:RegExp(":(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\)|)(?\x3d[^-]|$)", "ig"),needsContext:/^[\x20\t\r\n\f]*[>+~]|:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\)|)(?=[^-]|$)/i},bb={},cb=[],db={},eb=[],La=function(d){return d.sizzleFilter=!0,d},xa=function(d){return function(f){return"input"===f.nodeName.toLowerCase()&&f.type===d}},Ob=function(d){return function(f){var a=f.nodeName.toLowerCase();return("input"===a||"button"===a)&&f.type===d}},ha=function(d){var f=!1,a=ba.createElement("div");try{f=d(a)}catch(b){}return f},Mc=ha(function(d){d.innerHTML="\x3cselect\x3e\x3c/select\x3e"; d=typeof d.lastChild.getAttribute("multiple");return"boolean"!==d&&"string"!==d}),Nc=ha(function(d){d.id=Z+0;d.innerHTML="\x3ca name\x3d'"+Z+"'\x3e\x3c/a\x3e\x3cdiv name\x3d'"+Z+"'\x3e\x3c/div\x3e";Y.insertBefore(d,Y.firstChild);var f=ba.getElementsByName&&ba.getElementsByName(Z).length===2+ba.getElementsByName(Z+0).length;return Xa=!ba.getElementById(Z),Y.removeChild(d),f}),Oc=ha(function(d){return d.appendChild(ba.createComment("")),0===d.getElementsByTagName("*").length}),Pc=ha(function(d){return d.innerHTML= "\x3ca href\x3d'#'\x3e\x3c/a\x3e",d.firstChild&&"undefined"!==typeof d.firstChild.getAttribute&&"#"===d.firstChild.getAttribute("href")}),Pb=ha(function(d){return d.innerHTML="\x3cdiv class\x3d'hidden e'\x3e\x3c/div\x3e\x3cdiv class\x3d'hidden'\x3e\x3c/div\x3e",!d.getElementsByClassName||0===d.getElementsByClassName("e").length?!1:(d.lastChild.className="e",1!==d.getElementsByClassName("e").length)}),H=function(d,f,a,b){a=a||[];f=f||ba;var g,c,m,k,j=f.nodeType;if(1!==j&&9!==j)return[];if(!d||"string"!= typeof d)return a;m=fb(f);if(!m&&!b&&(g=Ic.exec(d)))if(k=g[1])if(9===j){c=f.getElementById(k);if(!c||!c.parentNode)return a;if(c.id===k)return a.push(c),a}else{if(f.ownerDocument&&(c=f.ownerDocument.getElementById(k))&&Qc(f,c)&&c.id===k)return a.push(c),a}else{if(g[2])return qa.apply(a,fa.call(f.getElementsByTagName(d),0)),a;if((k=g[3])&&Pb&&f.getElementsByClassName)return qa.apply(a,fa.call(f.getElementsByClassName(k),0)),a}return gb(d,f,a,b,m)},K=H.selectors={cacheLength:50,match:ga,order:["ID", "TAG"],attrHandle:{},createPseudo:La,find:{ID:Xa?function(d,f,a){if("undefined"!==typeof f.getElementById&&!a)return(d=f.getElementById(d))&&d.parentNode?[d]:[]}:function(d,f,a){if("undefined"!==typeof f.getElementById&&!a)return(f=f.getElementById(d))?f.id===d||"undefined"!==typeof f.getAttributeNode&&f.getAttributeNode("id").value===d?[f]:void 0:[]},TAG:Oc?function(d,f){if("undefined"!==typeof f.getElementsByTagName)return f.getElementsByTagName(d)}:function(d,f){var a=f.getElementsByTagName(d); if("*"===d){for(var b,g=[],c=0;b=a[c];c++)1===b.nodeType&&g.push(b);return g}return a}},relative:{"\x3e":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(d){return d[1]=d[1].replace(ra,""),d[3]=(d[4]||d[5]||"").replace(ra,""),"~\x3d"===d[2]&&(d[3]=" "+d[3]+" "),d.slice(0,4)},CHILD:function(d){return d[1]=d[1].toLowerCase(),"nth"===d[1]?(d[2]||H.error(d[0]),d[3]=+(d[3]?d[4]+(d[5]||1):2*("even"===d[2]||"odd"=== d[2])),d[4]=+(d[6]+d[7]||"odd"===d[2])):d[2]&&H.error(d[0]),d},PSEUDO:function(d){var f,a=d[4];return ga.CHILD.test(d[0])?null:(a&&(f=Nb.exec(a))&&f.pop()&&(d[0]=d[0].slice(0,f[0].length-a.length-1),a=f[0].slice(0,-1)),d.splice(2,3,a||d[3]),d)}},filter:{ID:Xa?function(d){return d=d.replace(ra,""),function(f){return f.getAttribute("id")===d}}:function(d){return d=d.replace(ra,""),function(f){return(f="undefined"!==typeof f.getAttributeNode&&f.getAttributeNode("id"))&&f.value===d}},TAG:function(d){return"*"=== d?function(){return!0}:(d=d.replace(ra,"").toLowerCase(),function(f){return f.nodeName&&f.nodeName.toLowerCase()===d})},CLASS:function(d){var f=bb[d];return f||(f=bb[d]=RegExp("(^|[\\x20\\t\\r\\n\\f])"+d+"([\\x20\\t\\r\\n\\f]|$)"),cb.push(d),cb.length>K.cacheLength&&delete bb[cb.shift()]),function(d){return f.test(d.className||"undefined"!==typeof d.getAttribute&&d.getAttribute("class")||"")}},ATTR:function(d,f,a){return f?function(b){b=H.attr(b,d);var g=b+"";if(null==b)return"!\x3d"===f;switch(f){case "\x3d":return g=== a;case "!\x3d":return g!==a;case "^\x3d":return a&&0===g.indexOf(a);case "*\x3d":return a&&-1K.cacheLength&&delete db[eb.shift()],m};H.matches=function(d,f){return H(d,null,null,f)};H.matchesSelector=function(d,f){return 0d){m=c.slice(d,p.index);d=I;t=[f];Ka.test(m)&&(h&&(t=h),h=b);if(s=Jc.test(m))m= m.slice(0,-5).replace(Ka,"$\x26*");1]*)\/>/gi,Ub=/<([\w:]+)/,Yc=/\s*$/g,V={option:[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"],legend:[1,"\x3cfieldset\x3e","\x3c/fieldset\x3e"],thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"], col:[2,"\x3ctable\x3e\x3ctbody\x3e\x3c/tbody\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"],area:[1,"\x3cmap\x3e","\x3c/map\x3e"],_default:[0,"",""]},Wb=o(E),kb=Wb.appendChild(E.createElement("div"));V.optgroup=V.option;V.tbody=V.tfoot=V.colgroup=V.caption=V.thead;V.th=V.td;g.support.htmlSerialize||(V._default=[1,"X\x3cdiv\x3e","\x3c/div\x3e"]);g.fn.extend({text:function(d){return g.access(this,function(d){return d===e?g.text(this):this.empty().append((this[0]&&this[0].ownerDocument||E).createTextNode(d))}, null,d,arguments.length)},wrapAll:function(d){if(g.isFunction(d))return this.each(function(f){g(this).wrapAll(d.call(this,f))});if(this[0]){var f=g(d,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&f.insertBefore(this[0]);f.map(function(){for(var d=this;d.firstChild&&1===d.firstChild.nodeType;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(d){return g.isFunction(d)?this.each(function(f){g(this).wrapInner(d.call(this,f))}):this.each(function(){var f=g(this),a=f.contents(); a.length?a.wrapAll(d):f.append(d)})},wrap:function(d){var f=g.isFunction(d);return this.each(function(a){g(this).wrapAll(f?d.call(this,a):d)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(d){(1===this.nodeType||11===this.nodeType)&&this.appendChild(d)})},prepend:function(){return this.domManip(arguments,!0,function(d){(1===this.nodeType||11===this.nodeType)&& this.insertBefore(d,this.firstChild)})},before:function(){if(!q(this[0]))return this.domManip(arguments,!1,function(d){this.parentNode.insertBefore(d,this)});if(arguments.length){var d=g.clean(arguments);return this.pushStack(g.merge(d,this),"before",this.selector)}},after:function(){if(!q(this[0]))return this.domManip(arguments,!1,function(d){this.parentNode.insertBefore(d,this.nextSibling)});if(arguments.length){var d=g.clean(arguments);return this.pushStack(g.merge(this,d),"after",this.selector)}}, remove:function(d,f){for(var a,b=0;null!=(a=this[b]);b++)if(!d||g.filter(d,[a]).length)!f&&1===a.nodeType&&(g.cleanData(a.getElementsByTagName("*")),g.cleanData([a])),a.parentNode&&a.parentNode.removeChild(a);return this},empty:function(){for(var d,a=0;null!=(d=this[a]);a++)for(1===d.nodeType&&g.cleanData(d.getElementsByTagName("*"));d.firstChild;)d.removeChild(d.firstChild);return this},clone:function(d,a){return d=null==d?!1:d,a=null==a?d:a,this.map(function(){return g.clone(this,d,a)})},html:function(d){return g.access(this, function(d){var a=this[0]||{},b=0,c=this.length;if(d===e)return 1===a.nodeType?a.innerHTML.replace(Xc,""):e;if("string"==typeof d&&!$c.test(d)&&(g.support.htmlSerialize||!jb.test(d))&&(g.support.leadingWhitespace||!ib.test(d))&&!V[(Ub.exec(d)||["",""])[1].toLowerCase()]){d=d.replace(Tb,"\x3c$1\x3e\x3c/$2\x3e");try{for(;bj.length&&a=== E&&"\x3c"===j.charAt(0)&&!ad.test(j)&&(g.support.checkClone||!Vb.test(j))&&(g.support.html5Clone||!jb.test(j))&&(m=!0,c=g.fragments[j],k=c!==e),c||(c=a.createDocumentFragment(),g.clean(d,a,c,b),m&&(g.fragments[j]=k&&c)),{fragment:c,cacheable:m}};g.fragments={};g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,a){g.fn[d]=function(b){var c,m=0,k=[];b=g(b);var j=b.length;c=1===this.length&&this[0].parentNode;if((null==c||c&&11=== c.nodeType&&1===c.childNodes.length)&&1===j)return b[a](this[0]),this;for(;md.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(d)||[];return{browser:d[1]||"",version:d[2]||"0"}};Oa=g.uaMatch(R.userAgent);sa={};Oa.browser&&(sa[Oa.browser]=!0,sa.version=Oa.version);sa.webkit&&(sa.safari=!0);g.browser=sa;g.sub=function(){function d(a,f){return new d.fn.init(a,f)}g.extend(!0,d,this);d.superclass=this;d.fn=d.prototype=this();d.fn.constructor=d;d.sub=this.sub;d.fn.init=function(b,c){return c&& c instanceof g&&!(c instanceof d)&&(c=d(c)),g.fn.init.call(this,b,c,a)};d.fn.init.prototype=d.fn;var a=d(E);return d};var Q,na,oa,lb=/alpha\([^)]*\)/i,dd=/opacity=([^)]*)/,ed=/^(top|right|bottom|left)$/,Xb=/^margin/,kc=RegExp("^("+Ca+")(.*)$","i"),ya=RegExp("^("+Ca+")(?!px)[a-z%]+$","i"),fd=RegExp("^([-+])\x3d("+Ca+")","i"),Ra={},gd={position:"absolute",visibility:"hidden",display:"block"},Yb={letterSpacing:0,fontWeight:400,lineHeight:1},ia=["Top","Right","Bottom","Left"],qb=["Webkit","O","Moz","ms"], hd=g.fn.toggle;g.fn.extend({css:function(d,a){return g.access(this,function(d,a,f){return f!==e?g.style(d,a,f):g.css(d,a)},d,a,1b;b++)c[d+ia[b]+a]=g[b]||g[b-2]||g[0];return c}};Xb.test(d)||(g.cssHooks[d+a].set=A)});var id=/%20/g,lc=/\[\]$/,Zb=/\r?\n/g,jd=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,kd=/^(?:select|textarea)/i;g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements? g.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||kd.test(this.nodeName)||jd.test(this.type))}).map(function(d,a){var b=g(this).val();return null==b?null:g.isArray(b)?g.map(b,function(d){return{name:a.name,value:d.replace(Zb,"\r\n")}}):{name:a.name,value:b.replace(Zb,"\r\n")}}).get()}});g.param=function(d,a){var b,c=[],m=function(d,a){a=g.isFunction(a)?a():null==a?"":a;c[c.length]=encodeURIComponent(d)+"\x3d"+encodeURIComponent(a)};a===e&&(a=g.ajaxSettings&& g.ajaxSettings.traditional);if(g.isArray(d)||d.jquery&&!g.isPlainObject(d))g.each(d,function(){m(this.name,this.value)});else for(b in d)l(b,d[b],a,m);return c.join("\x26").replace(id,"+")};var la,ma,ld=/#.*$/,md=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,nd=/^(?:GET|HEAD)$/,od=/^\/\//,$b=/\?/,pd=/)<[^<]*)*<\/script>/gi,qd=/([?&])_=[^&]*/,ac=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,bc=g.fn.load,Sa={},cc={},dc=["*/"]+["*"];try{la=m.href}catch(zd){la=E.createElement("a"), la.href="",la=la.href}ma=ac.exec(la.toLowerCase())||[];g.fn.load=function(d,a,b){if("string"!=typeof d&&bc)return bc.apply(this,arguments);if(!this.length)return this;var c,m,k,j=this,o=d.indexOf(" ");return 0<=o&&(c=d.slice(o,d.length),d=d.slice(0,o)),g.isFunction(a)?(b=a,a=e):"object"==typeof a&&(m="POST"),g.ajax({url:d,type:m,dataType:"html",data:a,complete:function(d,a){b&&j.each(b,k||[d.responseText,a,d])}}).done(function(d){k=arguments;j.html(c?g("\x3cdiv\x3e").append(d.replace(pd,"")).find(c): d)}),this};g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,a){g.fn[a]=function(d){return this.on(a,d)}});g.each(["get","post"],function(d,a){g[a]=function(d,b,c,m){return g.isFunction(b)&&(m=m||c,c=b,b=e),g.ajax({type:a,url:d,data:b,success:c,dataType:m})}});g.extend({getScript:function(d,a){return g.get(d,e,a,"script")},getJSON:function(d,a,b){return g.get(d,a,b,"json")},ajaxSetup:function(d,a){return a?G(d,g.ajaxSettings):(a=d,d=g.ajaxSettings),G(d, a),d},ajaxSettings:{url:la,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(ma[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":dc},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":h.String,"text html":!0,"text json":g.parseJSON, "text xml":g.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:z(Sa),ajaxTransport:z(cc),ajax:function(d,a){function b(d,a,f,k){var n,l,h,R,u,y=a;if(2!==C){C=2;o&&clearTimeout(o);j=e;m=k||"";z.readyState=0d||304===d)if(s.ifModified&&(u=z.getResponseHeader("Last-Modified"),u&&(g.lastModified[c]=u),u=z.getResponseHeader("Etag"),u&&(g.etag[c]=u)),304===d)y="notmodified",n=!0;else{var N;a:{n=s;l=R;var v,y=n.dataTypes.slice();f=y[0];O={};q=0;n.dataFilter&&(l=n.dataFilter(l,n.dataType));if(y[1])for(N in n.converters)O[N.toLowerCase()]=n.converters[N];for(;h=y[++q];)if("*"!==h){if("*"!==f&&f!== h){N=O[f+" "+h]||O["* "+h];if(!N)for(v in O)if(u=v.split(" "),u[1]===h&&(N=O[f+" "+u[0]]||O["* "+u[0]])){!0===N?N=O[v]:!0!==O[v]&&(h=u[0],y.splice(q--,0,h));break}if(!0!==N)if(N&&n["throws"])l=N(l);else try{l=N(l)}catch(x){N={state:"parsererror",error:N?x:"No conversion from "+f+" to "+h};break a}}f=h}N={state:"success",data:l}}n=N;y=n.state;l=n.data;h=n.error;n=!h}else if(h=y,!y||d)y="error",0>d&&(d=0);z.status=d;z.statusText=""+(a||y);n?r.resolveWith(t,[l,y,z]):r.rejectWith(t,[z,y,h]);z.statusCode(T); T=e;p&&I.trigger("ajax"+(n?"Success":"Error"),[z,s,n?l:h]);F.fireWith(t,[z,y]);p&&(I.trigger("ajaxComplete",[z,s]),--g.active||g.event.trigger("ajaxStop"))}}"object"==typeof d&&(a=d,d=e);a=a||{};var c,m,k,j,o,l,p,h,s=g.ajaxSetup({},a),t=s.context||s,I=t!==s&&(t.nodeType||t instanceof g)?g(t):g.event,r=g.Deferred(),F=g.Callbacks("once memory"),T=s.statusCode||{},R={},u={},C=0,y="canceled",z={readyState:0,setRequestHeader:function(d,a){if(!C){var f=d.toLowerCase();d=u[f]=u[f]||d;R[d]=a}return this}, getAllResponseHeaders:function(){return 2===C?m:null},getResponseHeader:function(d){var a;if(2===C){if(!k)for(k={};a=md.exec(m);)k[a[1].toLowerCase()]=a[2];a=k[d.toLowerCase()]}return a===e?null:a},overrideMimeType:function(d){return C||(s.mimeType=d),this},abort:function(d){return d=d||y,j&&j.abort(d),b(0,d),this}};r.promise(z);z.success=z.done;z.error=z.fail;z.complete=F.add;z.statusCode=function(d){if(d){var a;if(2>C)for(a in d)T[a]=[T[a],d[a]];else a=d[z.status],z.always(a)}return this};s.url= ((d||s.url)+"").replace(ld,"").replace(od,ma[1]+"//");s.dataTypes=g.trim(s.dataType||"*").toLowerCase().split(ja);null==s.crossDomain&&(l=ac.exec(s.url.toLowerCase()),s.crossDomain=!(!l||l[1]==ma[1]&&l[2]==ma[2]&&(l[3]||("http:"===l[1]?80:443))==(ma[3]||("http:"===ma[1]?80:443))));s.data&&s.processData&&"string"!=typeof s.data&&(s.data=g.param(s.data,s.traditional));L(Sa,s,a,z);if(2===C)return z;p=s.global;s.type=s.type.toUpperCase();s.hasContent=!nd.test(s.type);p&&0===g.active++&&g.event.trigger("ajaxStart"); if(!s.hasContent&&(s.data&&(s.url+=($b.test(s.url)?"\x26":"?")+s.data,delete s.data),c=s.url,!1===s.cache)){l=g.now();var O=s.url.replace(qd,"$1_\x3d"+l);s.url=O+(O===s.url?($b.test(s.url)?"\x26":"?")+"_\x3d"+l:"")}(s.data&&s.hasContent&&!1!==s.contentType||a.contentType)&&z.setRequestHeader("Content-Type",s.contentType);s.ifModified&&(c=c||s.url,g.lastModified[c]&&z.setRequestHeader("If-Modified-Since",g.lastModified[c]),g.etag[c]&&z.setRequestHeader("If-None-Match",g.etag[c]));z.setRequestHeader("Accept", s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+dc+"; q\x3d0.01":""):s.accepts["*"]);for(h in s.headers)z.setRequestHeader(h,s.headers[h]);if(!s.beforeSend||!1!==s.beforeSend.call(t,z,s)&&2!==C){y="abort";for(h in{success:1,error:1,complete:1})z[h](s[h]);if(j=L(cc,s,a,z)){z.readyState=1;p&&I.trigger("ajaxSend",[z,s]);s.async&&0C)b(-1,q);else throw q; }}else b(-1,"No Transport");return z}return z.abort()},active:0,lastModified:{},etag:{}});var ec=[],rd=/\?/,Pa=/(=)\?(?=&|$)|\?\?/,sd=g.now();g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var d=ec.pop()||g.expando+"_"+sd++;return this[d]=!0,d}});g.ajaxPrefilter("json jsonp",function(d,a,b){var c,m,k,j=d.data,o=d.url,l=!1!==d.jsonp,s=l&&Pa.test(o),p=l&&!s&&"string"==typeof j&&!(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&Pa.test(j);if("jsonp"===d.dataTypes[0]||s||p)return c= d.jsonpCallback=g.isFunction(d.jsonpCallback)?d.jsonpCallback():d.jsonpCallback,m=h[c],s?d.url=o.replace(Pa,"$1"+c):p?d.data=j.replace(Pa,"$1"+c):l&&(d.url+=(rd.test(o)?"\x26":"?")+d.jsonp+"\x3d"+c),d.converters["script json"]=function(){return k||g.error(c+" was not called"),k[0]},d.dataTypes[0]="json",h[c]=function(){k=arguments},b.always(function(){h[c]=m;d[c]&&(d.jsonpCallback=a.jsonpCallback,ec.push(c));k&&g.isFunction(m)&&m(k[0]);k=m=e}),"script"});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"}, contents:{script:/javascript|ecmascript/},converters:{"text script":function(d){return g.globalEval(d),d}}});g.ajaxPrefilter("script",function(d){d.cache===e&&(d.cache=!1);d.crossDomain&&(d.type="GET",d.global=!1)});g.ajaxTransport("script",function(d){if(d.crossDomain){var a,b=E.head||E.getElementsByTagName("head")[0]||E.documentElement;return{send:function(g,c){a=E.createElement("script");a.async="async";d.scriptCharset&&(a.charset=d.scriptCharset);a.src=d.url;a.onload=a.onreadystatechange=function(d, g){if(g||!a.readyState||/loaded|complete/.test(a.readyState))a.onload=a.onreadystatechange=null,b&&a.parentNode&&b.removeChild(a),a=e,g||c(200,"success")};b.insertBefore(a,b.firstChild)},abort:function(){a&&a.onload(0,1)}}}});var ta,mb=h.ActiveXObject?function(){for(var d in ta)ta[d](0,1)}:!1,td=0;g.ajaxSettings.xhr=h.ActiveXObject?function(){var d;if(!(d=!this.isLocal&&k()))a:{try{d=new h.ActiveXObject("Microsoft.XMLHTTP");break a}catch(a){}d=void 0}return d}:k;var nb=g.ajaxSettings.xhr();g.extend(g.support, {ajax:!!nb,cors:!!nb&&"withCredentials"in nb});g.support.ajax&&g.ajaxTransport(function(d){if(!d.crossDomain||g.support.cors){var a;return{send:function(b,c){var m,k,j=d.xhr();d.username?j.open(d.type,d.url,d.async,d.username,d.password):j.open(d.type,d.url,d.async);if(d.xhrFields)for(k in d.xhrFields)j[k]=d.xhrFields[k];d.mimeType&&j.overrideMimeType&&j.overrideMimeType(d.mimeType);!d.crossDomain&&!b["X-Requested-With"]&&(b["X-Requested-With"]="XMLHttpRequest");try{for(k in b)j.setRequestHeader(k, b[k])}catch(o){}j.send(d.hasContent&&d.data||null);a=function(b,k){var o,n,l,s,p;try{if(a&&(k||4===j.readyState))if(a=e,m&&(j.onreadystatechange=g.noop,mb&&delete ta[m]),k)4!==j.readyState&&j.abort();else{o=j.status;l=j.getAllResponseHeaders();s={};(p=j.responseXML)&&p.documentElement&&(s.xml=p);try{s.text=j.responseText}catch(h){}try{n=j.statusText}catch(t){n=""}!o&&d.isLocal&&!d.crossDomain?o=s.text?200:404:1223===o&&(o=204)}}catch(I){k||c(-1,I)}s&&c(o,n,s,l)};d.async?4===j.readyState?setTimeout(a, 0):(m=++td,mb&&(ta||(ta={},g(h).unload(mb)),ta[m]=a),j.onreadystatechange=a):a()},abort:function(){a&&a(0,1)}}}});var za,Qa,ud=/^(?:toggle|show|hide)$/,vd=RegExp("^(?:([-+])\x3d|)("+Ca+")([a-z%]*)$","i"),wd=/queueHooks$/,Aa=[function(d,a,b){var c,m,k,j,o,l,e=this,s=d.style,p={},h=[],t=d.nodeType&&v(d);b.queue||(o=g._queueHooks(d,"fx"),null==o.unqueued&&(o.unqueued=0,l=o.empty.fire,o.empty.fire=function(){o.unqueued||l()}),o.unqueued++,e.always(function(){e.always(function(){o.unqueued--;g.queue(d, "fx").length||o.empty.fire()})}));1===d.nodeType&&("height"in a||"width"in a)&&(b.overflow=[s.overflow,s.overflowX,s.overflowY],"inline"===g.css(d,"display")&&"none"===g.css(d,"float")&&(!g.support.inlineBlockNeedsLayout||"inline"===y(d.nodeName)?s.display="inline-block":s.zoom=1));b.overflow&&(s.overflow="hidden",g.support.shrinkWrapBlocks||e.done(function(){s.overflow=b.overflow[0];s.overflowX=b.overflow[1];s.overflowY=b.overflow[2]}));for(c in a)m=a[c],ud.exec(m)&&(delete a[c],m!==(t?"hide":"show")&& h.push(c));if(m=h.length){k=g._data(d,"fxshow")||g._data(d,"fxshow",{});t?g(d).show():e.done(function(){g(d).hide()});e.done(function(){var a;g.removeData(d,"fxshow",!0);for(a in p)g.style(d,a,p[a])});for(c=0;cj),t="onhashchange"in e&&!o;h.hashchangeDelay=100;r.hashchange=h.extend(r.hashchange,{setup:function(){if(t)return!1;h(b.start)},teardown:function(){if(t)return!1;h(b.stop)}});c={};var C,u,B,w;c.start=function(){if(!C){var b=p();B||(B=w=function(a){return a},o&&(u=h('\x3ciframe src\x3d"javascript:0"/\x3e').hide().insertAfter("body")[0].contentWindow,w= function(){return p(u.document[q][a])},B=function(a,b){if(a!==b){var c=u.document;c.open().close();c[q].hash="#"+a}},B(p())));(function A(){var c=p(),j=w(b);c!==b?(B(b=c,j),h(e).trigger("hashchange")):j!==b&&(e[q][a]=e[q][a].replace(/#.*/,"")+"#"+j);C=setTimeout(A,h.hashchangeDelay)})()}};c.stop=function(){u||(C&&clearTimeout(C),C=0)};b=c})(jQuery,this);this.Handlebars={}; (function(h){h.VERSION="1.0.rc.1";h.helpers={};h.partials={};h.registerHelper=function(c,e,b){b&&(e.not=b);this.helpers[c]=e};h.registerPartial=function(c,e){this.partials[c]=e};h.registerHelper("helperMissing",function(c){if(2!==arguments.length)throw Error("Could not find property '"+c+"'");});var e=Object.prototype.toString;h.registerHelper("blockHelperMissing",function(c,p){var b=p.inverse||function(){},r=p.fn,q=e.call(c);"[object Function]"===q&&(c=c.call(this));return!0===c?r(this):!1===c|| null==c?b(this):"[object Array]"===q?0c.length&&(c+=this._input.substr(0,20-c.length));return(c.substr(0, 20)+(20c[0].length))if(c=e,b=q,!this.options.flex)break;if(c){if(e=c[0].match(/(?:\r\n?|\n).*/g))this.yylineno+= e.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length};this.yytext+=c[0];this.match+=c[0];this.matches=c;this.yyleng=this.yytext.length;this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]);this._more=!1;this._input=this._input.slice(c[0].length);this.matched+=c[0];c=this.performAction.call(this,this.yy, this,h[b],this.conditionStack[this.conditionStack.length-1]);this.done&&this._input&&(this.done=!1);if(c)return c}else return""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var c=this.next();return"undefined"!==typeof c?c:this.lex()},begin:function(c){this.conditionStack.push(c)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length- 1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(c){this.begin(c)},options:{},performAction:function(c,e,b){switch(b){case 0:"\\"!==e.yytext.slice(-1)&&this.begin("mu");"\\"===e.yytext.slice(-1)&&(e.yytext=e.yytext.substr(0,e.yyleng-1),this.begin("emu"));if(e.yytext)return 14;break;case 1:return 14;case 2:return"\\"!==e.yytext.slice(-1)&&this.popState(),"\\"===e.yytext.slice(-1)&&(e.yytext=e.yytext.substr(0,e.yyleng-1)),14;case 3:return 24; case 4:return 16;case 5:return 20;case 6:return 19;case 7:return 19;case 8:return 23;case 9:return 23;case 10:return e.yytext=e.yytext.substr(3,e.yyleng-5),this.popState(),15;case 11:return 22;case 12:return 35;case 13:return 34;case 14:return 34;case 15:return 37;case 17:return this.popState(),18;case 18:return this.popState(),18;case 19:return e.yytext=e.yytext.substr(1,e.yyleng-2).replace(/\\"/g,'"'),29;case 20:return e.yytext=e.yytext.substr(1,e.yyleng-2).replace(/\\"/g,'"'),29;case 21:return e.yytext= e.yytext.substr(1),27;case 22:return 31;case 23:return 31;case 24:return 30;case 25:return 34;case 26:return e.yytext=e.yytext.substr(1,e.yyleng-2),34;case 27:return"INVALID";case 28:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|$)))/,/^(?:\{\{>)/,/^(?:\{\{#)/,/^(?:\{\{\/)/,/^(?:\{\{\^)/,/^(?:\{\{\s*else\b)/,/^(?:\{\{\{)/,/^(?:\{\{&)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{)/,/^(?:=)/,/^(?:\.(?=[} ]))/,/^(?:\.\.)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}\}\})/,/^(?:\}\})/, /^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@[a-zA-Z]+)/,/^(?:true(?=[}\s]))/,/^(?:false(?=[}\s]))/,/^(?:[0-9]+(?=[}\s]))/,/^(?:[a-zA-Z0-9_$-]+(?=[=}\s\/.]))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],inclusive:!1},emu:{rules:[2],inclusive:!1},INITIAL:{rules:[0,1,28],inclusive:!0}}}};h.prototype=e;e.Parser=h;return new h}(); "undefined"!==typeof require&&"undefined"!==typeof exports&&(exports.parser=handlebars,exports.Parser=handlebars.Parser,exports.parse=function(){return handlebars.parse.apply(handlebars,arguments)},exports.main=function(h){if(!h[1])throw Error("Usage: "+h[0]+" FILE");h="undefined"!==typeof process?require("fs").readFileSync(require("path").resolve(h[1]),"utf8"):require("file").path(require("file").cwd()).join(h[1]).read({charset:"utf-8"});return exports.parser.parse(h)},"undefined"!==typeof module&& require.main===module&&exports.main("undefined"!==typeof process?process.argv.slice(1):require("system").args));Handlebars.Parser=handlebars;Handlebars.parse=function(h){Handlebars.Parser.yy=Handlebars.AST;return Handlebars.Parser.parse(h)};Handlebars.print=function(h){return(new Handlebars.PrintVisitor).accept(h)};Handlebars.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(){}};Handlebars.log=function(h,e){Handlebars.logger.log(h,e)}; (function(){Handlebars.AST={};Handlebars.AST.ProgramNode=function(h,e){this.type="program";this.statements=h;e&&(this.inverse=new Handlebars.AST.ProgramNode(e))};Handlebars.AST.MustacheNode=function(h,e,c){this.type="mustache";this.escaped=!c;this.hash=e;c=this.id=h[0];h=this.params=h.slice(1);this.isHelper=(this.eligibleHelper=c.isSimple)&&(h.length||e)};Handlebars.AST.PartialNode=function(h,e){this.type="partial";this.id=h;this.context=e};Handlebars.AST.BlockNode=function(h,e,c,p){var b=h.id;if(b.original!== p.original)throw new Handlebars.Exception(b.original+" doesn't match "+p.original);this.type="block";this.mustache=h;this.program=e;if((this.inverse=c)&&!this.program)this.isInverse=!0};Handlebars.AST.ContentNode=function(h){this.type="content";this.string=h};Handlebars.AST.HashNode=function(h){this.type="hash";this.pairs=h};Handlebars.AST.IdNode=function(h){this.type="ID";this.original=h.join(".");for(var e=[],c=0,p=0,b=h.length;p"'`]/g,c=/[&<>"'`]/,p=function(b){return h[b]||"\x26amp;"};Handlebars.Utils={escapeExpression:function(b){return b instanceof Handlebars.SafeString?b.toString():null==b||!1===b?"":!c.test(b)?b:b.replace(e,p)},isEmpty:function(b){return"undefined"===typeof b?!0:null===b?!0:!1===b?!0:"[object Array]"===Object.prototype.toString.call(b)&&0===b.length?!0:!1}}})(); Handlebars.Compiler=function(){};Handlebars.JavaScriptCompiler=function(){}; (function(h,e){h.prototype={compiler:h,disassemble:function(){for(var a=this.opcodes,b,c=[],e,h,p=0,r=a.length;pc||this.addDepth(c-1);return b},block:function(a){var b=a.mustache,c=a.program;a=a.inverse;c&&(c=this.compileProgram(c));a&&(a=this.compileProgram(a));var e=this.classifyMustache(b);"helper"===e?this.helperMustache(b,c,a):"simple"===e?(this.simpleMustache(b),this.opcode("pushProgram",c),this.opcode("pushProgram",a),this.opcode("pushLiteral","{}"),this.opcode("blockValue")): (this.ambiguousMustache(b,c,a),this.opcode("pushProgram",c),this.opcode("pushProgram",a),this.opcode("pushLiteral","{}"),this.opcode("ambiguousBlockValue"));this.opcode("append")},hash:function(a){a=a.pairs;var b,c;this.opcode("push","{}");for(var e=0,h=a.length;ethis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot);return"stack"+this.stackSlot},popStack:function(){var a=this.compileStack.pop();if(a instanceof c)return a.value;this.stackSlot--;return a},topStack:function(){var a=this.compileStack[this.compileStack.length-1];return a instanceof c?a.value:a},quotedString:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g, "\\n").replace(/\r/g,"\\r")+'"'},setupHelper:function(a,b){var c=[];this.setupParams(a,c);var e=this.nameLookup("helpers",b,"helper");return{params:c,name:e,callParams:["depth0"].concat(c).join(", "),helperMissingParams:["depth0",this.quotedString(b)].concat(c).join(", ")}},setupParams:function(a,b){var c=[],e=[],h,p;c.push("hash:"+this.popStack());h=this.popStack();if((p=this.popStack())||h)p||(this.context.aliases.self="this",p="self.noop"),h||(this.context.aliases.self="this",h="self.noop"),c.push("inverse:"+ h),c.push("fn:"+p);for(p=0;p=k.computed&&(k={value:a,computed:m})});return k.value};l.min=function(a,b,c){if(!b&&l.isArray(a)&&a[0]===+a[0])return Math.min.apply(Math,a);if(!b&&l.isEmpty(a))return Infinity;var k={computed:Infinity};z(a,function(a,m,e){m=b?b.call(c,a,m,e):a;mk?1:0}),"value")};l.groupBy=function(a,b){var c={},k=l.isFunction(b)?b:function(a){return a[b]};z(a,function(a,b){var m=k(a,b);(c[m]||(c[m]=[])).push(a)});return c};l.sortedIndex= function(a,b,c){c||(c=l.identity);for(var k=0,e=a.length;k>1;c(a[j])a.length&&(b=!0);l.reduce(c,function(c,e,j){if(b?l.last(c)!==e|| !c.length:!l.include(c,e))c.push(e),k.push(a[j]);return c},[]);return k};l.union=function(){return l.uniq(l.flatten(arguments,!0))};l.intersection=l.intersect=function(a){var b=q.call(arguments,1);return l.filter(l.uniq(a),function(a){return l.every(b,function(b){return 0<=l.indexOf(b,a)})})};l.difference=function(a){var b=l.flatten(q.call(arguments,1),!0);return l.filter(a,function(a){return!l.include(b,a)})};l.zip=function(){for(var a=q.call(arguments),b=l.max(l.pluck(a,"length")),c=Array(b),k= 0;k=arguments.length&&(b=a||0,a=0);c=arguments[2]||1;for(var k=Math.max(Math.ceil((b- a)/c),0),e=0,j=Array(k);e=a?b():function(){if(1>--a)return b.apply(this,arguments)}};l.keys=F||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[],c;for(c in a)l.has(a,c)&&(b[b.length]=c);return b};l.values=function(a){return l.map(a,l.identity)};l.functions=l.methods=function(a){var b=[],c;for(c in a)l.isFunction(a[c])&&b.push(c);return b.sort()};l.extend=function(a){z(q.call(arguments,1),function(b){for(var c in b)a[c]= b[c]});return a};l.pick=function(a){var b={};z(l.flatten(q.call(arguments,1)),function(c){c in a&&(b[c]=a[c])});return b};l.defaults=function(a){z(q.call(arguments,1),function(b){for(var c in b)null==a[c]&&(a[c]=b[c])});return a};l.clone=function(a){return!l.isObject(a)?a:l.isArray(a)?a.slice():l.extend({},a)};l.tap=function(a,b){b(a);return a};l.isEqual=function(a,b){return h(a,b,[])};l.isEmpty=function(a){if(null==a)return!0;if(l.isArray(a)||l.isString(a))return 0===a.length;for(var b in a)if(l.has(a, b))return!1;return!0};l.isElement=function(a){return!!(a&&1==a.nodeType)};l.isArray=r||function(a){return"[object Array]"==j.call(a)};l.isObject=function(a){return a===Object(a)};l.isArguments=function(a){return"[object Arguments]"==j.call(a)};l.isArguments(arguments)||(l.isArguments=function(a){return!(!a||!l.has(a,"callee"))});l.isFunction=function(a){return"[object Function]"==j.call(a)};l.isString=function(a){return"[object String]"==j.call(a)};l.isNumber=function(a){return"[object Number]"== j.call(a)};l.isFinite=function(a){return l.isNumber(a)&&isFinite(a)};l.isNaN=function(a){return a!==a};l.isBoolean=function(a){return!0===a||!1===a||"[object Boolean]"==j.call(a)};l.isDate=function(a){return"[object Date]"==j.call(a)};l.isRegExp=function(a){return"[object RegExp]"==j.call(a)};l.isNull=function(a){return null===a};l.isUndefined=function(a){return void 0===a};l.has=function(a,b){return o.call(a,b)};l.noConflict=function(){e._=c;return this};l.identity=function(a){return a};l.times= function(a,b,c){for(var k=0;k/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#x27;").replace(/\//g,"\x26#x2F;")};l.result=function(a,b){if(null==a)return null;var c=a[b];return l.isFunction(c)?c.call(a):c};l.mixin=function(b){z(l.functions(b),function(c){var k=l[c]=b[c];X.prototype[c]=function(){var b=q.call(arguments);a.call(b,this._wrapped);return E(k.apply(l,b),this._chain)}})}; var k=0;l.uniqueId=function(a){var b=k++;return a?a+b:b};l.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var s=/.^/,I={"\\":"\\","'":"'",r:"\r",n:"\n",t:"\t",u2028:"\u2028",u2029:"\u2029"},J;for(J in I)I[I[J]]=J;var T=/\\|'|\r|\n|\t|\u2028|\u2029/g,N=/\\(\\|'|r|n|t|u2028|u2029)/g,pa=function(a){return a.replace(N,function(a,b){return I[b]})};l.template=function(a,b,c){c=l.defaults(c||{},l.templateSettings);a="__p+\x3d'"+a.replace(T,function(a){return"\\"+ I[a]}).replace(c.escape||s,function(a,b){return"'+\n_.escape("+pa(b)+")+\n'"}).replace(c.interpolate||s,function(a,b){return"'+\n("+pa(b)+")+\n'"}).replace(c.evaluate||s,function(a,b){return"';\n"+pa(b)+"\n;__p+\x3d'"})+"';\n";c.variable||(a="with(obj||{}){\n"+a+"}\n");a="var __p\x3d'';var print\x3dfunction(){__p+\x3dArray.prototype.join.call(arguments, '')};\n"+a+"return __p;\n";var k=new Function(c.variable||"obj","_",a);if(b)return k(b,l);b=function(a){return k.call(this,a,l)};b.source="function("+ (c.variable||"obj")+"){\n"+a+"}";return b};l.chain=function(a){return l(a).chain()};var X=function(a){this._wrapped=a};l.prototype=X.prototype;var E=function(a,b){return b?l(a).chain():a};l.mixin(l);z("pop push reverse shift sort splice unshift".split(" "),function(a){var c=b[a];X.prototype[a]=function(){var b=this._wrapped;c.apply(b,arguments);var k=b.length;("shift"==a||"splice"==a)&&0===k&&delete b[0];return E(b,this._chain)}});z(["concat","join","slice"],function(a){var c=b[a];X.prototype[a]= function(){return E(c.apply(this._wrapped,arguments),this._chain)}});X.prototype.chain=function(){this._chain=!0;return this};X.prototype.value=function(){return this._wrapped}}).call(this); (function(){var h=this,e=h.Backbone,c=Array.prototype.slice,p=Array.prototype.splice,b;b="undefined"!==typeof exports?exports:h.Backbone={};b.VERSION="0.9.2";var r=h._;!r&&"undefined"!==typeof require&&(r=require("underscore"));var q=h.jQuery||h.Zepto||h.ender;b.setDomLibrary=function(a){q=a};b.noConflict=function(){h.Backbone=e;return this};b.emulateHTTP=!1;b.emulateJSON=!1;var a=/\s+/,j=b.Events={on:function(b,c,e){var j,l,h,o,p;if(!c)return this;b=b.split(a);for(j=this._callbacks||(this._callbacks= {});l=b.shift();)h=(p=j[l])?p.tail:{},h.next=o={},h.context=e,h.callback=c,j[l]={tail:o,next:p?p.next:h};return this},off:function(b,c,e){var j,l,h,o,p,t;if(l=this._callbacks){if(!b&&!c&&!e)return delete this._callbacks,this;for(b=b?b.split(a):r.keys(l);j=b.shift();)if(h=l[j],delete l[j],h&&(c||e))for(o=h.tail;(h=h.next)!==o;)if(p=h.callback,t=h.context,c&&p!==c||e&&t!==e)this.on(j,p,t);return this}},trigger:function(b){var e,j,l,h,o,p;if(!(l=this._callbacks))return this;o=l.all;b=b.split(a);for(p= c.call(arguments,1);e=b.shift();){if(j=l[e])for(h=j.tail;(j=j.next)!==h;)j.callback.apply(j.context||this,p);if(j=o){h=j.tail;for(e=[e].concat(p);(j=j.next)!==h;)j.callback.apply(j.context||this,e)}}return this}};j.bind=j.on;j.unbind=j.off;var o=b.Model=function(a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=L(this,"defaults"))a=r.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this._escapedAttributes={};this.cid=r.uniqueId("c");this.changed={};this._silent= {};this._pending={};this.set(a,{silent:!0});this.changed={};this._silent={};this._pending={};this._previousAttributes=r.clone(this.attributes);this.initialize.apply(this,arguments)};r.extend(o.prototype,j,{changed:null,_silent:null,_pending:null,idAttribute:"id",initialize:function(){},toJSON:function(){return r.clone(this.attributes)},get:function(a){return this.attributes[a]},escape:function(a){var b;if(b=this._escapedAttributes[a])return b;b=this.get(a);return this._escapedAttributes[a]=r.escape(null== b?"":""+b)},has:function(a){return null!=this.get(a)},set:function(a,b,c){var e,j;r.isObject(a)||null==a?(e=a,c=b):(e={},e[a]=b);c||(c={});if(!e)return this;e instanceof o&&(e=e.attributes);if(c.unset)for(j in e)e[j]=void 0;if(!this._validate(e,c))return!1;this.idAttribute in e&&(this.id=e[this.idAttribute]);b=c.changes={};var l=this.attributes,h=this._escapedAttributes,p=this._previousAttributes||{};for(j in e){a=e[j];if(!r.isEqual(l[j],a)||c.unset&&r.has(l,j))delete h[j],(c.silent?this._silent: b)[j]=!0;c.unset?delete l[j]:l[j]=a;!r.isEqual(p[j],a)||r.has(l,j)!=r.has(p,j)?(this.changed[j]=a,c.silent||(this._pending[j]=!0)):(delete this.changed[j],delete this._pending[j])}c.silent||this.change(c);return this},unset:function(a,b){(b||(b={})).unset=!0;return this.set(a,null,b)},clear:function(a){(a||(a={})).unset=!0;return this.set(r.clone(this.attributes),a)},fetch:function(a){a=a?r.clone(a):{};var c=this,e=a.success;a.success=function(b,j,l){if(!c.set(c.parse(b,l),a))return!1;e&&e(c,b)}; a.error=b.wrapError(a.error,c,a);return(this.sync||b.sync).call(this,"read",this,a)},save:function(a,c,e){var j,l;r.isObject(a)||null==a?(j=a,e=c):(j={},j[a]=c);e=e?r.clone(e):{};if(e.wait){if(!this._validate(j,e))return!1;l=r.clone(this.attributes)}a=r.extend({},e,{silent:!0});if(j&&!this.set(j,e.wait?a:e))return!1;var h=this,o=e.success;e.success=function(a,b,c){b=h.parse(a,c);e.wait&&(delete e.wait,b=r.extend(j||{},b));if(!h.set(b,e))return!1;o?o(h,a):h.trigger("sync",h,a,e)};e.error=b.wrapError(e.error, h,e);c=this.isNew()?"create":"update";c=(this.sync||b.sync).call(this,c,this,e);e.wait&&this.set(l,a);return c},destroy:function(a){a=a?r.clone(a):{};var c=this,e=a.success,j=function(){c.trigger("destroy",c,c.collection,a)};if(this.isNew())return j(),!1;a.success=function(b){a.wait&&j();e?e(c,b):c.trigger("sync",c,b,a)};a.error=b.wrapError(a.error,c,a);var l=(this.sync||b.sync).call(this,"delete",this,a);a.wait||j();return l},url:function(){var a=L(this,"urlRoot")||L(this.collection,"url")||G(); return this.isNew()?a:a+("/"==a.charAt(a.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(a){return a},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},change:function(a){a||(a={});var b=this._changing;this._changing=!0;for(var c in this._silent)this._pending[c]=!0;var e=r.extend({},a.changes,this._silent);this._silent={};for(c in e)this.trigger("change:"+c,this,this.get(c),a);if(b)return this;for(;!r.isEmpty(this._pending);){this._pending= {};this.trigger("change",this,a);for(c in this.changed)!this._pending[c]&&!this._silent[c]&&delete this.changed[c];this._previousAttributes=r.clone(this.attributes)}this._changing=!1;return this},hasChanged:function(a){return!arguments.length?!r.isEmpty(this.changed):r.has(this.changed,a)},changedAttributes:function(a){if(!a)return this.hasChanged()?r.clone(this.changed):!1;var b,c=!1,e=this._previousAttributes,j;for(j in a)if(!r.isEqual(e[j],b=a[j]))(c||(c={}))[j]=b;return c},previous:function(a){return!arguments.length|| !this._previousAttributes?null:this._previousAttributes[a]},previousAttributes:function(){return r.clone(this._previousAttributes)},isValid:function(){return!this.validate(this.attributes)},_validate:function(a,b){if(b.silent||!this.validate)return!0;a=r.extend({},this.attributes,a);var c=this.validate(a,b);if(!c)return!0;b&&b.error?b.error(this,c,b):this.trigger("error",this,c,b);return!1}});var t=b.Collection=function(a,b){b||(b={});b.model&&(this.model=b.model);b.comparator&&(this.comparator=b.comparator); this._reset();this.initialize.apply(this,arguments);a&&this.reset(a,{silent:!0,parse:b.parse})};r.extend(t.prototype,j,{model:o,initialize:function(){},toJSON:function(a){return this.map(function(b){return b.toJSON(a)})},add:function(a,b){var c,e,j,l,h,o={},t={},m=[];b||(b={});a=r.isArray(a)?a.slice():[a];c=0;for(e=a.length;c=b))this.iframe=q('\x3ciframe src\x3d"javascript:0" tabindex\x3d"-1" /\x3e').hide().appendTo("body")[0].contentWindow,this.navigate(a);this._hasPushState?q(window).bind("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!b?q(window).bind("hashchange",this.checkUrl):this._wantsHashChange&& (this._checkUrlInterval=setInterval(this.checkUrl,this.interval));this.fragment=a;a=window.location;b=a.pathname==this.options.root;if(this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!b)return this.fragment=this.getFragment(null,!0),window.location.replace(this.options.root+"#"+this.fragment),!0;this._wantsPushState&&this._hasPushState&&b&&a.hash&&(this.fragment=this.getHash().replace(x,""),window.history.replaceState({},document.title,a.protocol+"//"+a.host+this.options.root+this.fragment)); if(!this.options.silent)return this.loadUrl()},stop:function(){q(window).unbind("popstate",this.checkUrl).unbind("hashchange",this.checkUrl);clearInterval(this._checkUrlInterval);v.started=!1},route:function(a,b){this.handlers.unshift({route:a,callback:b})},checkUrl:function(){var a=this.getFragment();a==this.fragment&&this.iframe&&(a=this.getFragment(this.getHash(this.iframe)));if(a==this.fragment)return!1;this.iframe&&this.navigate(a);this.loadUrl()||this.loadUrl(this.getHash())},loadUrl:function(a){var b= this.fragment=this.getFragment(a);return r.any(this.handlers,function(a){if(a.route.test(b))return a.callback(b),!0})},navigate:function(a,b){if(!v.started)return!1;if(!b||!0===b)b={trigger:b};var c=(a||"").replace(x,"");this.fragment!=c&&(this._hasPushState?(0!=c.indexOf(this.options.root)&&(c=this.options.root+c),this.fragment=c,window.history[b.replace?"replaceState":"pushState"]({},document.title,c)):this._wantsHashChange?(this.fragment=c,this._updateHash(window.location,c,b.replace),this.iframe&& c!=this.getFragment(this.getHash(this.iframe))&&(b.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,c,b.replace))):window.location.assign(this.options.root+a),b.trigger&&this.loadUrl(a))},_updateHash:function(a,b,c){c?a.replace(a.toString().replace(/(javascript:|#).*$/,"")+"#"+b):a.hash=b}});var D=b.View=function(a){this.cid=r.uniqueId("view");this._configure(a||{});this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()},F=/^(\S+)\s*(.*)$/, y="model collection el id attributes className tagName".split(" ");r.extend(D.prototype,j,{tagName:"div",$:function(a){return this.$el.find(a)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();return this},make:function(a,b,c){a=document.createElement(a);b&&q(a).attr(b);c&&q(a).html(c);return a},setElement:function(a,b){this.$el&&this.undelegateEvents();this.$el=a instanceof q?a:q(a);this.el=this.$el[0];!1!==b&&this.delegateEvents();return this},delegateEvents:function(a){if(a|| (a=L(this,"events"))){this.undelegateEvents();for(var b in a){var c=a[b];r.isFunction(c)||(c=this[a[b]]);if(!c)throw Error('Method "'+a[b]+'" does not exist');var e=b.match(F),j=e[1],e=e[2],c=r.bind(c,this),j=j+(".delegateEvents"+this.cid);""===e?this.$el.bind(j,c):this.$el.delegate(e,j,c)}}},undelegateEvents:function(){this.$el.unbind(".delegateEvents"+this.cid)},_configure:function(a){this.options&&(a=r.extend({},this.options,a));for(var b=0,c=y.length;b?@\[\\\]\^`{|}~]/g,"\\$\x26")},expandOperation:function(h){h.slideDown()},collapseOperation:function(h){h.slideUp()}}; (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).content_type=h(function(e,c,h,b,r){function q(a){var b,c;b='\n\t\x3coption value\x3d"';c=a;typeof c===C?c=c.call(a,{hash:{}}):c===B&&(c=u.call(a,"this",{hash:{}}));if(c||0===c)b+=c;b+='"\x3e';c=a;typeof c===C?c=c.call(a,{hash:{}}):c===B&&(c=u.call(a,"this",{hash:{}}));if(c||0===c)b+=c;return b+"\x3c/option\x3e\n\t"}h=h||e.helpers;var a,j,o,t=this,C="function",u=h.helperMissing,B=void 0;e='\x3clabel for\x3d"contentType"\x3e\x3c/label\x3e\n\x3cselect name\x3d"contentType"\x3e\n'; b=(j=h.produces)||c.produces;a=h["if"];o=t.program(1,function(a,b){var c,e,r;c="\n ";e=(j=h.produces)||a.produces;r=h.each;o=t.program(2,q,b);o.hash={};o.fn=o;o.inverse=t.noop;if((e=r.call(a,e,o))||0===e)c+=e;return c+"\n"},r);o.hash={};o.fn=o;o.inverse=t.program(4,function(){return'\n \x3coption value\x3d"text/xml"\x3etext/xml\x3c/option\x3e\n'},r);if((b=a.call(c,b,o))||0===b)e+=b;return e+"\n\x3c/select\x3e\n"})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).main=h(function(e,c,h,b,r){h=h||e.helpers;var q,a,j=h.helperMissing,o=this.escapeExpression;e="\n\x3cdiv class\x3d'container' id\x3d'resources_container'\x3e\n \x3cul id\x3d'resources'\x3e\n \x3c/ul\x3e\n\n \x3cdiv class\x3d\"footer\"\x3e\n \x3cbr\x3e\n \x3cbr\x3e\n \x3ch4 style\x3d\"color: #999\"\x3e[ \x3cspan style\x3d\"font-variant: small-caps\"\x3ebase url\x3c/span\x3e: ";b=(a=h.basePath)|| c.basePath;b=document.location.origin+document.location.pathname;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=j.call(c,"basePath",{hash:{}}));e+=o(b)+"\n ";b=(a=h.apiVersion)||c.apiVersion;q=h["if"];r=this.program(1,function(b){var c,e;c='\n , \x3cspan style\x3d"font-variant: small-caps"\x3eapi version\x3c/span\x3e: ';e=(a=h.apiVersion)||b.apiVersion;"function"===typeof e?e=e.call(b,{hash:{}}):void 0===e&&(e=j.call(b,"apiVersion",{hash:{}}));return c+=o(e)+"\n "}, r);r.hash={};r.fn=r;r.inverse=this.noop;if((b=q.call(c,b,r))||0===b)e+=b;return e+"]\x3c/h4\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n"})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).operation=h(function(e,c,h,b,r){h=h||e.helpers;var q,a,j,o=h.helperMissing;q=this.escapeExpression;e="\n \x3cul class\x3d'operations' \x3e\n \x3cli class\x3d'";b=(a=h.httpMethod)||c.httpMethod;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"httpMethod",{hash:{}}));e+=q(b)+" operation' id\x3d'";b=(a=h.resourceName)||c.resourceName;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&& (b=o.call(c,"resourceName",{hash:{}}));e+=q(b)+"_";b=(a=h.nickname)||c.nickname;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"nickname",{hash:{}}));e+=q(b)+"_";b=(a=h.httpMethod)||c.httpMethod;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"httpMethod",{hash:{}}));e+=q(b)+"_";b=(a=h.number)||c.number;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"number",{hash:{}}));e+=q(b)+"'\x3e\n \x3cdiv class\x3d'heading'\x3e\n \x3ch3\x3e\n \x3cspan class\x3d'http_method'\x3e\n \x3ca href\x3d'#!/"; b=(a=h.resourceName)||c.resourceName;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"resourceName",{hash:{}}));e+=q(b)+"/";b=(a=h.nickname)||c.nickname;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"nickname",{hash:{}}));e+=q(b)+"_";b=(a=h.httpMethod)||c.httpMethod;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"httpMethod",{hash:{}}));e+=q(b)+"_";b=(a=h.number)||c.number;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c, "number",{hash:{}}));e+=q(b)+'\' class\x3d"toggleOperation"\x3e';b=(a=h.httpMethod)||c.httpMethod;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"httpMethod",{hash:{}}));e+=q(b)+"\x3c/a\x3e\n \x3c/span\x3e\n \x3cspan class\x3d'path'\x3e\n \x3ca href\x3d'#!/";b=(a=h.resourceName)||c.resourceName;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"resourceName",{hash:{}}));e+=q(b)+"/";b=(a=h.nickname)||c.nickname; "function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"nickname",{hash:{}}));e+=q(b)+"_";b=(a=h.httpMethod)||c.httpMethod;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"httpMethod",{hash:{}}));e+=q(b)+"_";b=(a=h.number)||c.number;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"number",{hash:{}}));e+=q(b)+'\' class\x3d"toggleOperation"\x3e';b=(a=h.path)||c.path;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"path",{hash:{}})); e+=q(b)+"\x3c/a\x3e\n \x3c/span\x3e\n \x3c/h3\x3e\n \x3cul class\x3d'options'\x3e\n \x3cli\x3e\n \x3ca href\x3d'#!/";b=(a=h.resourceName)||c.resourceName;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"resourceName",{hash:{}}));e+=q(b)+"/";b=(a=h.nickname)||c.nickname;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"nickname",{hash:{}}));e+=q(b)+"_";b=(a=h.httpMethod)||c.httpMethod; "function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"httpMethod",{hash:{}}));e+=q(b)+"_";b=(a=h.number)||c.number;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"number",{hash:{}}));e+=q(b)+'\' class\x3d"toggleOperation"\x3e';b=(a=h.summary)||c.summary;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"summary",{hash:{}}));if(b||0===b)e+=b;e+="\x3c/a\x3e\n \x3c/li\x3e\n \x3c/ul\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d'content' id\x3d'"; b=(a=h.resourceName)||c.resourceName;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"resourceName",{hash:{}}));e+=q(b)+"_";b=(a=h.nickname)||c.nickname;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"nickname",{hash:{}}));e+=q(b)+"_";b=(a=h.httpMethod)||c.httpMethod;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"httpMethod",{hash:{}}));e+=q(b)+"_";b=(a=h.number)||c.number;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c, "number",{hash:{}}));e+=q(b)+"_content' style\x3d'display:none'\x3e\n ";b=(a=h.notes)||c.notes;q=h["if"];j=this.program(1,function(b){var c,e;c="\n \x3ch4\x3eImplementation Notes\x3c/h4\x3e\n \x3cp\x3e";e=(a=h.notes)||b.notes;"function"===typeof e?e=e.call(b,{hash:{}}):void 0===e&&(e=o.call(b,"notes",{hash:{}}));if(e||0===e)c+=e;return c+"\x3c/p\x3e\n "},r);j.hash={};j.fn=j;j.inverse=this.noop;if((b=q.call(c,b,j))||0===b)e+=b;e+="\n "; b=(a=h.responseClass)||c.responseClass;q=h["if"];j=this.program(3,function(){return'\n \x3ch4\x3eResponse Class\x3c/h4\x3e\n \x3cp\x3e\x3cspan class\x3d"model-signature" /\x3e\x3c/p\x3e\n \x3cbr/\x3e\n \x3cdiv class\x3d"content-type" /\x3e\n '},r);j.hash={};j.fn=j;j.inverse=this.noop;if((b=q.call(c,b,j))||0===b)e+=b;e+="\n \x3cform accept-charset\x3d'UTF-8' class\x3d'sandbox'\x3e\n \x3cdiv style\x3d'margin:0;padding:0;display:inline'\x3e\x3c/div\x3e\n "; b=(a=h.parameters)||c.parameters;q=h["if"];j=this.program(5,function(){return'\n \x3ch4\x3eParameters\x3c/h4\x3e\n \x3ctable class\x3d\'fullwidth\'\x3e\n \x3cthead\x3e\n \x3ctr\x3e\n \x3cth style\x3d"width: 100px; max-width: 100px" \x3eParameter\x3c/th\x3e\n \x3cth style\x3d"width: 310px; max-width: 310px"\x3eValue\x3c/th\x3e\n \x3cth style\x3d"width: 200px; max-width: 200px"\x3eDescription\x3c/th\x3e\n \x3cth style\x3d"width: 320px; max-width: 330px"\x3eData Type\x3c/th\x3e\n \x3c/tr\x3e\n \x3c/thead\x3e\n \x3ctbody class\x3d"operation-params"\x3e\n\n \x3c/tbody\x3e\n \x3c/table\x3e\n '}, r);j.hash={};j.fn=j;j.inverse=this.noop;if((b=q.call(c,b,j))||0===b)e+=b;e+="\n ";b=(a=h.errorResponses)||c.errorResponses;q=h["if"];j=this.program(7,function(){return"\n \x3cdiv style\x3d'margin:0;padding:0;display:inline'\x3e\x3c/div\x3e\n \x3ch4\x3eStatus Codes\x3c/h4\x3e\n \x3ctable class\x3d'fullwidth'\x3e\n \x3cthead\x3e\n \x3ctr\x3e\n \x3cth\x3eHTTP Status Code\x3c/th\x3e\n \x3cth\x3eReason\x3c/th\x3e\n \x3c/tr\x3e\n \x3c/thead\x3e\n \x3ctbody class\x3d\"operation-status\"\x3e\n \n \x3c/tbody\x3e\n \x3c/table\x3e\n "}, r);j.hash={};j.fn=j;j.inverse=this.noop;if((b=q.call(c,b,j))||0===b)e+=b;e+="\n ";b=(a=h.isReadOnly)||c.isReadOnly;q=h["if"];j=this.program(9,function(){return"\n "},r);j.hash={};j.fn=j;j.inverse=this.program(11,function(){return"\n \x3cdiv class\x3d'sandbox_header'\x3e\n \x3cinput class\x3d'submit' name\x3d'commit' type\x3d'button' value\x3d'Try it out!' /\x3e\n \x3ca href\x3d'#' class\x3d'response_hider' style\x3d'display:none'\x3eHide Response\x3c/a\x3e\n \x3cimg alt\x3d'Throbber' class\x3d'response_throbber' src\x3d'images/throbber.gif' style\x3d'display:none' /\x3e\n \x3c/div\x3e\n "}, r);if((b=q.call(c,b,j))||0===b)e+=b;return e+"\n \x3c/form\x3e\n \x3cdiv class\x3d'response' style\x3d'display:none'\x3e\n \x3ch4\x3eRequest URL\x3c/h4\x3e\n \x3cdiv class\x3d'block request_url'\x3e\x3c/div\x3e\n \x3ch4\x3eResponse Body\x3c/h4\x3e\n \x3cdiv class\x3d'block response_body'\x3e\x3c/div\x3e\n \x3ch4\x3eResponse Code\x3c/h4\x3e\n \x3cdiv class\x3d'block response_code'\x3e\x3c/div\x3e\n \x3ch4\x3eResponse Headers\x3c/h4\x3e\n \x3cdiv class\x3d'block response_headers'\x3e\x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/li\x3e\n \x3c/ul\x3e\n"})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).param=h(function(e,c,h,b,r){function q(a){var b,c;b='\n\t\t\t\x3cinput type\x3d"file" name\x3d\'';c=(B=h.name)||a.name;typeof c===x?c=c.call(a,{hash:{}}):c===D&&(c=A.call(a,"name",{hash:{}}));return b+=F(c)+"'/\x3e\n\t\t"}function a(a,b){var c,e,q;c="\n\t\t\t";e=(B=h.defaultValue)||a.defaultValue;q=h["if"];w=v.program(5,j,b);w.hash={};w.fn=w;w.inverse=v.program(7,o,b);if((e=q.call(a,e,w))||0===e)c+=e;return c+"\n\t\t"} function j(a){var b,c;b="\n\t\t\t\t\x3ctextarea class\x3d'body-textarea' name\x3d'";c=(B=h.name)||a.name;typeof c===x?c=c.call(a,{hash:{}}):c===D&&(c=A.call(a,"name",{hash:{}}));b+=F(c)+"'\x3e";c=(B=h.defaultValue)||a.defaultValue;typeof c===x?c=c.call(a,{hash:{}}):c===D&&(c=A.call(a,"defaultValue",{hash:{}}));return b+=F(c)+"\x3c/textarea\x3e\n\t\t\t"}function o(a){var b,c;b="\n\t\t\t\t\x3ctextarea class\x3d'body-textarea' name\x3d'";c=(B=h.name)||a.name;typeof c===x?c=c.call(a,{hash:{}}):c===D&& (c=A.call(a,"name",{hash:{}}));return b+=F(c)+'\'\x3e\x3c/textarea\x3e\n\t\t\t\t\x3cbr /\x3e\n\t\t\t\t\x3cdiv class\x3d"content-type" /\x3e\n\t\t\t'}function t(a){var b,c;b="\n\t\t\t\x3cinput minlength\x3d'0' name\x3d'";c=(B=h.name)||a.name;typeof c===x?c=c.call(a,{hash:{}}):c===D&&(c=A.call(a,"name",{hash:{}}));b+=F(c)+"' placeholder\x3d'' type\x3d'text' value\x3d'";c=(B=h.defaultValue)||a.defaultValue;typeof c===x?c=c.call(a,{hash:{}}):c===D&&(c=A.call(a,"defaultValue",{hash:{}}));return b+=F(c)+ "'/\x3e\n\t\t"}function C(a){var b,c;b="\n\t\t\t\x3cinput minlength\x3d'0' name\x3d'";c=(B=h.name)||a.name;typeof c===x?c=c.call(a,{hash:{}}):c===D&&(c=A.call(a,"name",{hash:{}}));return b+=F(c)+"' placeholder\x3d'' type\x3d'text' value\x3d''/\x3e\n\t\t"}h=h||e.helpers;var u,B,w,v=this,x="function",A=h.helperMissing,D=void 0,F=this.escapeExpression;e="\x3ctd class\x3d'code'\x3e\x3cstrong\x3e";b=(B=h.name)||c.name;typeof b===x?b=b.call(c,{hash:{}}):b===D&&(b=A.call(c,"name",{hash:{}}));e+=F(b)+"\x3c/strong\x3e\x3c/td\x3e\n\x3ctd\x3e\n\n\t"; b=(B=h.isBody)||c.isBody;u=h["if"];w=v.program(1,function(b,c){var e,j,o;e="\n\t\t";j=(B=h.isFile)||b.isFile;o=h["if"];w=v.program(2,q,c);w.hash={};w.fn=w;w.inverse=v.program(4,a,c);if((j=o.call(b,j,w))||0===j)e+=j;return e+"\n\t"},r);w.hash={};w.fn=w;w.inverse=v.program(9,function(a,b){var c,e,j;c="\n\t\t";e=(B=h.defaultValue)||a.defaultValue;j=h["if"];w=v.program(10,t,b);w.hash={};w.fn=w;w.inverse=v.program(12,C,b);if((e=j.call(a,e,w))||0===e)c+=e;return c+"\n\t"},r);if((b=u.call(c,b,w))||0===b)e+= b;e+="\n\n\x3c/td\x3e\n\x3ctd\x3e\x3cstrong\x3e";b=(B=h.description)||c.description;typeof b===x?b=b.call(c,{hash:{}}):b===D&&(b=A.call(c,"description",{hash:{}}));if(b||0===b)e+=b;return e+'\x3c/strong\x3e\x3c/td\x3e\n\x3ctd\x3e\n\t\x3cspan class\x3d"model-signature"\x3e\x3c/span\x3e\n\x3c/td\x3e\n\n'})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).param_list=h(function(e,c,h,b,r){function q(){return"\n "}function a(){return"\n \x3coption selected\x3d\"\" value\x3d''\x3e\x3c/option\x3e\n "}function j(a){var b,c;b="\n \x3coption value\x3d'";c=(C=h.value)||a.value;typeof c===w?c=c.call(a,{hash:{}}):c===x&&(c=v.call(a,"value",{hash:{}}));b+=A(c)+"'\x3e";c=(C=h.value)||a.value;typeof c===w?c=c.call(a,{hash:{}}): c===x&&(c=v.call(a,"value",{hash:{}}));return b+=A(c)+" (default)\x3c/option\x3e\n "}function o(a){var b,c;b="\n \x3coption value\x3d'";c=(C=h.value)||a.value;typeof c===w?c=c.call(a,{hash:{}}):c===x&&(c=v.call(a,"value",{hash:{}}));b+=A(c)+"'\x3e";c=(C=h.value)||a.value;typeof c===w?c=c.call(a,{hash:{}}):c===x&&(c=v.call(a,"value",{hash:{}}));return b+=A(c)+"\x3c/option\x3e\n "}h=h||e.helpers;var t,C,u,B=this,w="function",v=h.helperMissing,x=void 0,A=this.escapeExpression; e="\x3ctd class\x3d'code'\x3e";b=(C=h.name)||c.name;typeof b===w?b=b.call(c,{hash:{}}):b===x&&(b=v.call(c,"name",{hash:{}}));e+=A(b)+"\x3c/td\x3e\n\x3ctd\x3e\n \x3cselect name\x3d'";b=(C=h.name)||c.name;typeof b===w?b=b.call(c,{hash:{}}):b===x&&(b=v.call(c,"name",{hash:{}}));e+=A(b)+"'\x3e\n ";b=(C=h.required)||c.required;t=h["if"];u=B.program(1,function(){return"\n "},r);u.hash={};u.fn=u;u.inverse=B.program(3,function(b,c){var e,j,o;e="\n ";j=(C=h.defaultValue)||b.defaultValue; o=h["if"];u=B.program(4,q,c);u.hash={};u.fn=u;u.inverse=B.program(6,a,c);if((j=o.call(b,j,u))||0===j)e+=j;return e+"\n "},r);if((b=t.call(c,b,u))||0===b)e+=b;e+="\n ";b=(C=h.allowableValues)||c.allowableValues;b=null===b||void 0===b||!1===b?b:b.descriptiveValues;t=h.each;u=B.program(8,function(a,b){var c,e,q;c="\n ";e=(C=h.isDefault)||a.isDefault;q=h["if"];u=B.program(9,j,b);u.hash={};u.fn=u;u.inverse=B.program(11,o,b);if((e=q.call(a,e,u))||0===e)c+=e;return c+"\n "}, r);u.hash={};u.fn=u;u.inverse=B.noop;if((b=t.call(c,b,u))||0===b)e+=b;e+="\n \x3c/select\x3e\n\x3c/td\x3e\n\x3ctd\x3e";b=(C=h.description)||c.description;typeof b===w?b=b.call(c,{hash:{}}):b===x&&(b=v.call(c,"description",{hash:{}}));if(b||0===b)e+=b;return e+'\x3c/td\x3e\n\x3ctd\x3e\x3cspan class\x3d"model-signature"\x3e\x3c/span\x3e\x3c/td\x3e\n'})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).param_readonly=h(function(e,c,h,b,r){h=h||e.helpers;var q,a,j,o=h.helperMissing,t=this.escapeExpression;e="\x3ctd class\x3d'code'\x3e";b=(a=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"name",{hash:{}}));e+=t(b)+"\x3c/td\x3e\n\x3ctd\x3e\n ";b=(a=h.isBody)||c.isBody;q=h["if"];j=this.program(1,function(b){var c,e;c="\n \x3ctextarea class\x3d'body-textarea' readonly\x3d'readonly' name\x3d'"; e=(a=h.name)||b.name;"function"===typeof e?e=e.call(b,{hash:{}}):void 0===e&&(e=o.call(b,"name",{hash:{}}));c+=t(e)+"'\x3e";e=(a=h.defaultValue)||b.defaultValue;"function"===typeof e?e=e.call(b,{hash:{}}):void 0===e&&(e=o.call(b,"defaultValue",{hash:{}}));return c+=t(e)+"\x3c/textarea\x3e\n "},r);j.hash={};j.fn=j;j.inverse=this.program(3,function(b){var c,e;c="\n ";e=(a=h.defaultValue)||b.defaultValue;"function"===typeof e?e=e.call(b,{hash:{}}):void 0===e&&(e=o.call(b,"defaultValue",{hash:{}})); return c+=t(e)+"\n "},r);if((b=q.call(c,b,j))||0===b)e+=b;e+="\n\x3c/td\x3e\n\x3ctd\x3e";b=(a=h.description)||c.description;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"description",{hash:{}}));if(b||0===b)e+=b;return e+'\x3c/td\x3e\n\x3ctd\x3e\x3cspan class\x3d"model-signature"\x3e\x3c/span\x3e\x3c/td\x3e\n'})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).param_readonly_required=h(function(e,c,h,b,r){h=h||e.helpers;var q,a,j,o=h.helperMissing,t=this.escapeExpression;e="\x3ctd class\x3d'code required'\x3e";b=(a=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"name",{hash:{}}));e+=t(b)+"\x3c/td\x3e\n\x3ctd\x3e\n ";b=(a=h.isBody)||c.isBody;q=h["if"];j=this.program(1,function(b){var c,e;c="\n \x3ctextarea class\x3d'body-textarea' readonly\x3d'readonly' placeholder\x3d'(required)' name\x3d'"; e=(a=h.name)||b.name;"function"===typeof e?e=e.call(b,{hash:{}}):void 0===e&&(e=o.call(b,"name",{hash:{}}));c+=t(e)+"'\x3e";e=(a=h.defaultValue)||b.defaultValue;"function"===typeof e?e=e.call(b,{hash:{}}):void 0===e&&(e=o.call(b,"defaultValue",{hash:{}}));return c+=t(e)+"\x3c/textarea\x3e\n "},r);j.hash={};j.fn=j;j.inverse=this.program(3,function(b){var c,e;c="\n ";e=(a=h.defaultValue)||b.defaultValue;"function"===typeof e?e=e.call(b,{hash:{}}):void 0===e&&(e=o.call(b,"defaultValue",{hash:{}})); return c+=t(e)+"\n "},r);if((b=q.call(c,b,j))||0===b)e+=b;e+="\n\x3c/td\x3e\n\x3ctd\x3e";b=(a=h.description)||c.description;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=o.call(c,"description",{hash:{}}));if(b||0===b)e+=b;return e+'\x3c/td\x3e\n\x3ctd\x3e\x3cspan class\x3d"model-signature"\x3e\x3c/span\x3e\x3c/td\x3e\n'})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).param_required=h(function(e,c,h,b,r){function q(a){var b,c;b='\n\t\t\t\x3cinput type\x3d"file" name\x3d\'';c=(v=h.name)||a.name;typeof c===D?c=c.call(a,{hash:{}}):c===y&&(c=F.call(a,"name",{hash:{}}));return b+=l(c)+"'/\x3e\n\t\t"}function a(a,b){var c,e,l;c="\n\t\t\t";e=(v=h.defaultValue)||a.defaultValue;l=h["if"];x=A.program(5,j,b);x.hash={};x.fn=x;x.inverse=A.program(7,o,b);if((e=l.call(a,e,x))||0===e)c+=e;return c+ "\n\t\t"}function j(a){var b,c;b="\n\t\t\t\t\x3ctextarea class\x3d'body-textarea' placeholder\x3d'(required)' name\x3d'";c=(v=h.name)||a.name;typeof c===D?c=c.call(a,{hash:{}}):c===y&&(c=F.call(a,"name",{hash:{}}));b+=l(c)+"'\x3e";c=(v=h.defaultValue)||a.defaultValue;typeof c===D?c=c.call(a,{hash:{}}):c===y&&(c=F.call(a,"defaultValue",{hash:{}}));return b+=l(c)+"\x3c/textarea\x3e\n\t\t\t"}function o(a){var b,c;b="\n\t\t\t\t\x3ctextarea class\x3d'body-textarea' placeholder\x3d'(required)' name\x3d'"; c=(v=h.name)||a.name;typeof c===D?c=c.call(a,{hash:{}}):c===y&&(c=F.call(a,"name",{hash:{}}));return b+=l(c)+'\'\x3e\x3c/textarea\x3e\n\t\t\t\t\x3cbr /\x3e\n\t\t\t\t\x3cdiv class\x3d"content-type" /\x3e\n\t\t\t'}function t(a){var b,c;b="\n\t\t\t\x3cinput class\x3d'required' type\x3d'file' name\x3d'";c=(v=h.name)||a.name;typeof c===D?c=c.call(a,{hash:{}}):c===y&&(c=F.call(a,"name",{hash:{}}));return b+=l(c)+"'/\x3e\n\t\t"}function C(a,b){var c,e,j;c="\n\t\t\t";e=(v=h.defaultValue)||a.defaultValue; j=h["if"];x=A.program(13,u,b);x.hash={};x.fn=x;x.inverse=A.program(15,B,b);if((e=j.call(a,e,x))||0===e)c+=e;return c+"\n\t\t"}function u(a){var b,c;b="\n\t\t\t\t\x3cinput class\x3d'required' minlength\x3d'1' name\x3d'";c=(v=h.name)||a.name;typeof c===D?c=c.call(a,{hash:{}}):c===y&&(c=F.call(a,"name",{hash:{}}));b+=l(c)+"' placeholder\x3d'(required)' type\x3d'text' value\x3d'";c=(v=h.defaultValue)||a.defaultValue;typeof c===D?c=c.call(a,{hash:{}}):c===y&&(c=F.call(a,"defaultValue",{hash:{}}));return b+= l(c)+"'/\x3e\n\t\t\t"}function B(a){var b,c;b="\n\t\t\t\t\x3cinput class\x3d'required' minlength\x3d'1' name\x3d'";c=(v=h.name)||a.name;typeof c===D?c=c.call(a,{hash:{}}):c===y&&(c=F.call(a,"name",{hash:{}}));return b+=l(c)+"' placeholder\x3d'(required)' type\x3d'text' value\x3d''/\x3e\n\t\t\t"}h=h||e.helpers;var w,v,x,A=this,D="function",F=h.helperMissing,y=void 0,l=this.escapeExpression;e="\x3ctd class\x3d'code required'\x3e";b=(v=h.name)||c.name;typeof b===D?b=b.call(c,{hash:{}}):b===y&&(b=F.call(c, "name",{hash:{}}));e+=l(b)+"\x3c/td\x3e\n\x3ctd\x3e\n\t";b=(v=h.isBody)||c.isBody;w=h["if"];x=A.program(1,function(b,c){var e,j,l;e="\n\t\t";j=(v=h.isFile)||b.isFile;l=h["if"];x=A.program(2,q,c);x.hash={};x.fn=x;x.inverse=A.program(4,a,c);if((j=l.call(b,j,x))||0===j)e+=j;return e+"\n\t"},r);x.hash={};x.fn=x;x.inverse=A.program(9,function(a,b){var c,e,j;c="\n\t\t";e=(v=h.isFile)||a.isFile;j=h["if"];x=A.program(10,t,b);x.hash={};x.fn=x;x.inverse=A.program(12,C,b);if((e=j.call(a,e,x))||0===e)c+=e;return c+ "\n\t"},r);if((b=w.call(c,b,x))||0===b)e+=b;e+="\n\x3c/td\x3e\n\x3ctd\x3e\n\t\x3cstrong\x3e";b=(v=h.description)||c.description;typeof b===D?b=b.call(c,{hash:{}}):b===y&&(b=F.call(c,"description",{hash:{}}));if(b||0===b)e+=b;return e+'\x3c/strong\x3e\n\x3c/td\x3e\n\x3ctd\x3e\x3cspan class\x3d"model-signature"\x3e\x3c/span\x3e\x3c/td\x3e\n'})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).resource=h(function(e,c,h){h=h||e.helpers;var b,r=h.helperMissing,q=this.escapeExpression;e="\x3cdiv class\x3d'heading'\x3e\n \x3ch2\x3e\n \x3ca href\x3d'#!/";b=(b=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"name",{hash:{}}));e+=q(b)+"' onclick\x3d\"Docs.toggleEndpointListForResource('";b=(b=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&& (b=r.call(c,"name",{hash:{}}));e+=q(b)+"');\"\x3e/";b=(b=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"name",{hash:{}}));e+=q(b)+"\x3c/a\x3e\n \x3c/h2\x3e\n \x3cul class\x3d'options'\x3e\n \x3cli\x3e\n \x3ca href\x3d'#!/";b=(b=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"name",{hash:{}}));e+=q(b)+"' id\x3d'endpointListTogger_";b=(b=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0=== b&&(b=r.call(c,"name",{hash:{}}));e+=q(b)+"'\n onclick\x3d\"Docs.toggleEndpointListForResource('";b=(b=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"name",{hash:{}}));e+=q(b)+"');\"\x3eShow/Hide\x3c/a\x3e\n \x3c/li\x3e\n \x3cli\x3e\n \x3ca href\x3d'#' onclick\x3d\"Docs.collapseOperationsForResource('";b=(b=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"name",{hash:{}}));e+=q(b)+"'); return false;\"\x3e\n List Operations\n \x3c/a\x3e\n \x3c/li\x3e\n \x3cli\x3e\n \x3ca href\x3d'#' onclick\x3d\"Docs.expandOperationsForResource('"; b=(b=h.name)||c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"name",{hash:{}}));e+=q(b)+"'); return false;\"\x3e\n Expand Operations\n \x3c/a\x3e\n \x3c/li\x3e\n \x3cli\x3e\n \x3ca href\x3d'";b=(b=h.url)||c.url;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"url",{hash:{}}));e+=q(b)+"'\x3eRaw\x3c/a\x3e\n \x3c/li\x3e\n \x3c/ul\x3e\n\x3c/div\x3e\n\x3cul class\x3d'endpoints' id\x3d'";b=(b=h.name)|| c.name;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"name",{hash:{}}));return e+=q(b)+"_endpoint_list' style\x3d'display:none'\x3e\n\n\x3c/ul\x3e\n"})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).signature=h(function(e,c,h){h=h||e.helpers;var b,r=h.helperMissing,q=this.escapeExpression;e='\x3cdiv\x3e\n\x3cul class\x3d"signature-nav"\x3e\n \x3cli\x3e\x3ca class\x3d"description-link" href\x3d"#"\x3eModel\x3c/a\x3e\x3c/li\x3e\n \x3cli\x3e\x3ca class\x3d"snippet-link" href\x3d"#"\x3eModel Schema\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e\n\x3cdiv\x3e\n\n\x3cdiv class\x3d"signature-container"\x3e\n \x3cdiv class\x3d"description"\x3e\n ';b= (b=h.signature)||c.signature;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"signature",{hash:{}}));if(b||0===b)e+=b;e+='\n \x3c/div\x3e\n\n \x3cdiv class\x3d"snippet"\x3e\n \x3cpre\x3e\x3ccode\x3e';b=(b=h.sampleJSON)||c.sampleJSON;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"sampleJSON",{hash:{}}));return e+=q(b)+'\x3c/code\x3e\x3c/pre\x3e\n \x3csmall class\x3d"notice"\x3e\x3c/small\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n\n'})})(); (function(){var h=Handlebars.template;(Handlebars.templates=Handlebars.templates||{}).status_code=h(function(e,c,h){h=h||e.helpers;var b,r=h.helperMissing,q=this.escapeExpression;e="\x3ctd width\x3d'15%' class\x3d'code'\x3e";b=(b=h.code)||c.code;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"code",{hash:{}}));e+=q(b)+"\x3c/td\x3e\n\x3ctd\x3e";b=(b=h.reason)||c.reason;"function"===typeof b?b=b.call(c,{hash:{}}):void 0===b&&(b=r.call(c,"reason",{hash:{}}));if(b||0===b)e+=b;return e+ "\x3c/td\x3e\n\n"})})(); (function(){var h,e,c,p,b,r,q,a,j={}.hasOwnProperty,o=function(a,b){function c(){this.constructor=a}for(var e in b)j.call(b,e)&&(a[e]=b[e]);c.prototype=b.prototype;a.prototype=new c;a.__super__=b.prototype;return a},t=function(){return t.__super__.constructor.apply(this,arguments)};o(t,Backbone.Router);t.prototype.dom_id="swagger_ui";t.prototype.options=null;t.prototype.api=null;t.prototype.headerView=null;t.prototype.mainView=null;t.prototype.initialize=function(a){var b=this;null==a&&(a={});null!= a.dom_id&&(this.dom_id=a.dom_id,delete a.dom_id);null==$("#"+this.dom_id)&&$("body").append('\x3cdiv id\x3d"'+this.dom_id+'"\x3e\x3c/div\x3e');this.options=a;this.options.success=function(){return b.render()};this.options.progress=function(a){return b.showMessage(a)};this.options.failure=function(a){return b.onLoadFailure(a)};this.headerView=new e({el:$("#header")});return this.headerView.on("update-swagger-ui",function(a){return b.updateSwaggerUi(a)})};t.prototype.updateSwaggerUi=function(a){this.options.discoveryUrl= a.discoveryUrl;this.options.apiKey=a.apiKey;return this.load()};t.prototype.load=function(){var a;null!=(a=this.mainView)&&a.clear();this.headerView.update(this.options.discoveryUrl,this.options.apiKey);return this.api=new SwaggerApi(this.options)};t.prototype.render=function(){this.mainView=(new c({model:this.api,el:$("#"+this.dom_id)})).render();this.showMessage();switch(this.options.docExpansion){case "full":Docs.expandOperationsForResource("");break;case "list":Docs.collapseOperationsForResource("")}if(this.options.onComplete)this.options.onComplete(this.api, this);return setTimeout(function(){return Docs.shebang()},400)};t.prototype.showMessage=function(a){null==a&&(a="");$("#message-bar").removeClass("message-fail");$("#message-bar").addClass("message-success");return $("#message-bar").html(a)};t.prototype.onLoadFailure=function(a){var b;null==a&&(a="");$("#message-bar").removeClass("message-success");$("#message-bar").addClass("message-fail");b=$("#message-bar").html(a);if(null!=this.options.onFailure)this.options.onFailure(a);return b};window.SwaggerUi= t;var C=function(){return C.__super__.constructor.apply(this,arguments)};o(C,Backbone.View);C.prototype.events={"click #explore":"showCustom","keyup #input_baseUrl":"showCustomOnKeyup","keyup #input_apiKey":"showCustomOnKeyup"};C.prototype.initialize=function(){};C.prototype.showCustomOnKeyup=function(a){if(13===a.keyCode)return this.showCustom()};C.prototype.showCustom=function(a){null!=a&&a.preventDefault();return this.trigger("update-swagger-ui",{discoveryUrl:$("#input_baseUrl").val(),apiKey:$("#input_apiKey").val()})}; C.prototype.update=function(a,b,c){null==c&&(c=!1);$("#input_baseUrl").val(a);$("#input_apiKey").val(b);if(c)return this.trigger("update-swagger-ui",{discoveryUrl:a,apiKey:b})};e=C;var u=function(){return u.__super__.constructor.apply(this,arguments)};o(u,Backbone.View);u.prototype.initialize=function(){};u.prototype.render=function(){var a,b,c,e;$(this.el).html(Handlebars.templates.main(this.model));e=this.model.apisArray;b=0;for(c=e.length;b)(<)(\/*)/g,"$1\n$2$3").replace(/[ ]*(.*)[ ]+\n/g,"$1\n").replace(/(<.+>)(.+\n)/g,"$1\n$2");b="";a=a.split("\n");c=0;e="other";j={"single-\x3esingle":0,"single-\x3eclosing":-1,"single-\x3eopening":0,"single-\x3eother":0,"closing-\x3esingle":0,"closing-\x3eclosing":-1,"closing-\x3eopening":0,"closing-\x3eother":0,"opening-\x3esingle":1, "opening-\x3eclosing":0,"opening-\x3eopening":1,"opening-\x3eother":1,"other-\x3esingle":0,"other-\x3eclosing":-1,"other-\x3eopening":0,"other-\x3eother":0};k=function(a){var h,k,o;k={single:Boolean(a.match(/<.+\/>/)),closing:Boolean(a.match(/<\/.+>/)),opening:Boolean(a.match(/<[^!?].*>/))};var p;p=[];for(h in k)(o=k[h])&&p.push(h);k=p[0];k=void 0===k?"other":k;h=e+"-\x3e"+k;e=k;c+=j[h];p=[];k=0;for(o=c;0<=o?ko;0<=o?++k:--k)p.push(" ");k=p.join("");return"opening-\x3eclosing"===h?b=b.substr(0, b.length-1)+a+"\n":b+=k+a+"\n"};o=0;for(p=a.length;o/gm,"\x26gt;")}function e(a){for(a=a.firstChild;a;a=a.nextSibling){if("CODE"==a.nodeName)return a;if(!(3==a.nodeType&&a.nodeValue.match(/\s+/)))break}}function c(a,b){return Array.prototype.map.call(a.childNodes,function(a){return 3==a.nodeType?b?a.nodeValue.replace(/\n/g,""):a.nodeValue:"BR"==a.nodeName?"\n":c(a,b)}).join("")}function p(a){var b=[];(function B(a,c){for(var e=a.firstChild;e;e= e.nextSibling)3==e.nodeType?c+=e.nodeValue.length:"BR"==e.nodeName?c+=1:1==e.nodeType&&(b.push({event:"start",offset:c,node:e}),c=B(e,c),b.push({event:"stop",offset:c,node:e}));return c})(a,0);return b}function b(a,c){function e(a,b){if(a.e&&a.eR.test(b))return a;if(a.eW)return e(a.parent,b)}function j(){var a;if(void 0!==y.sL)y.sL&&!o[y.sL]?a=h(l):(a=y.sL?b(y.sL,l):r(l),0e.keyword_count+e.r&&(e=p);p.keyword_count+p.r>c.keyword_count+c.r&&(e=c,c=p)}e.language&&(c.second_best=e);return c}function q(a,b,c){b&&(a=a.replace(/^((<[^>]+>|\t)+)/gm,function(a,c){return c.replace(/\t/g,b)}));c&&(a=a.replace(/\n/g,"\x3cbr\x3e"));return a}function a(a,e,j){var B=c(a,j),w;a:{w=(a.className+" "+a.parentNode.className).split(/\s+/);w=w.map(function(a){return a.replace(/^language-/, "")});for(var v=0;v