function getStartedSchoolID(){$.ajax({type:"POST",url:"/handlers/gettingstarted.ashx",data:{method:"GetSchoolID"},success:function(n){getSchoolIDServerRequestSuccess(n)},error:getSchoolIDServerRequestError})}function getSchoolIDServerRequestSuccess(n){var t=$.parseJSON(n);$(".lnkOnlineSubmissionForm").attr("href","https://www.btfecustomerservice.com/onlineSubmissionPage?schoolId="+t.SchoolID),$("#schoolid").text(t.SchoolID)}function getSchoolIDServerRequestError(n){console.info(n)}function openDialog(n){var t=jQuery("#"+n).dialog("open")}function openVariableDialog(n){openDialog(n),jQuery(".VariableWidth").css("overflow","visible").addClass("VariableWidth-ui-dialog")}function autoOpenFixForASPNet(n){jQuery(document).ready(function(){jQuery("#"+n).parent().appendTo(jQuery("form:first"))})}function autoOpenFixForASPNetVariable(n){jQuery(document).ready(function(){jQuery("#"+n).parent().appendTo(jQuery("form:first")),jQuery(".VariableWidth").css("overflow","visible").addClass("VariableWidth-ui-dialog")})}function closeDialog(n,t){jQuery("#"+n).dialog("close"),t&&(jQuery("#"+n+" input").val(""),jQuery("#"+n+" textarea").val(""))}(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){function u(n){return n}function f(n){return decodeURIComponent(n.replace(r," "))}function i(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t.json?JSON.parse(n):n}catch(i){}}var r=/\+/g,t=n.cookie=function(r,e,o){var l,h,s,y;if(e!==undefined)return o=n.extend({},t.defaults,o),typeof o.expires=="number"&&(l=o.expires,h=o.expires=new Date,h.setDate(h.getDate()+l)),e=t.json?JSON.stringify(e):String(e),document.cookie=[t.raw?r:encodeURIComponent(r),"=",t.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("");var a=t.raw?u:f,v=document.cookie.split("; "),c=r?undefined:{};for(s=0,y=v.length;s<y;s++){var p=v[s].split("="),w=a(p.shift()),b=a(p.join("="));if(r&&r===w){c=i(b);break}r||(c[w]=i(b))}return c};t.defaults={},n.removeCookie=function(t,i){return n.cookie(t)!==undefined?(n.cookie(t,"",n.extend({},i,{expires:-1})),!0):!1}}),function(n,t,i){function e(i,r,u){var f=t.createElement(i);return r&&(f.id=h+r),u&&(f.style.cssText=u),n(f)}function ai(){return i.innerHeight?i.innerHeight:n(i).height()}function pt(n){var i=c.length,t=(l+n)%i;return t<0?i+t:t}function y(n,t){return Math.round((/%/.test(n)?(t==="x"?k.width():ai())/100:1)*parseInt(n,10))}function yi(n,t){return n.photo||n.photoRegex.test(t)}function pi(n,t){return n.retinaUrl&&i.devicePixelRatio>1?t.replace(n.photoRegex,n.retinaSuffix):t}function wi(n){"contains"in u[0]&&!u[0].contains(n.target)&&(n.stopPropagation(),u.focus())}function bi(){var t,i=n.data(v,w);i==null?(r=n.extend({},bt),console&&console.log&&console.log("Error: cboxElement missing settings object")):r=n.extend({},i);for(t in r)n.isFunction(r[t])&&t.slice(0,2)!=="on"&&(r[t]=r[t].call(v));r.rel=r.rel||v.rel||n(v).data("rel")||"nofollow",r.href=r.href||n(v).attr("href"),r.title=r.title||v.title,typeof r.href=="string"&&(r.href=n.trim(r.href))}function ft(i,r){n(t).trigger(i),ut.trigger(i),n.isFunction(r)&&r.call(v)}function gi(){var a,n=h+"Slideshow_",i="click."+h,f,e,o,t;r.slideshow&&c[1]?(f=function(){clearTimeout(a)},e=function(){(r.loop||c[l+1])&&(a=setTimeout(s.next,r.slideshowSpeed))},o=function(){st.html(r.slideshowStop).unbind(i).one(i,t);ut.bind(dt,e).bind(kt,f).bind(gt,t),u.removeClass(n+"off").addClass(n+"on")},t=function(){f(),ut.unbind(dt,e).unbind(kt,f).unbind(gt,t);st.html(r.slideshowStart).unbind(i).one(i,function(){s.next(),o()});u.removeClass(n+"on").addClass(n+"off")},r.slideshowAuto?o():t()):u.removeClass(n+"off "+n+"on")}function wt(i){if(!at){if(v=i,bi(),c=n(v),l=0,r.rel!=="nofollow"&&(c=n("."+et).filter(function(){var t=n.data(this,w),i;return t&&(i=n(this).data("rel")||t.rel||this.rel),i===r.rel}),l=c.index(v),l===-1&&(c=c.add(v),l=c.length-1)),b.css({opacity:parseFloat(r.opacity),cursor:r.overlayClose?"pointer":"auto",visibility:"visible"}).show(),hi&&u.add(b).removeClass(hi),r.className&&u.add(b).addClass(r.className),hi=r.className,oi.html(r.close).show(),!it){if(it=lt=!0,u.css({visibility:"hidden",display:"block"}),a=e(o,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(p),d=ti.height()+ui.height()+p.outerHeight(!0)-p.height(),g=ii.width()+ri.width()+p.outerWidth(!0)-p.width(),nt=a.outerHeight(!0),tt=a.outerWidth(!0),r.w=y(r.initialWidth,"x"),r.h=y(r.initialHeight,"y"),s.position(),gi(),ft(di,r.onOpen),si.add(fi).hide(),u.focus(),t.addEventListener){t.addEventListener("focus",wi,!0);ut.one(ni,function(){t.removeEventListener("focus",wi,!0)})}if(r.returnFocus)ut.one(ni,function(){n(v).focus()})}tr()}}function ki(){!u&&t.body&&(li=!1,k=n(i),u=e(o).attr({id:w,"class":n.support.opacity===!1?h+"IE":"",role:"dialog",tabindex:"-1"}).hide(),b=e(o,"Overlay").hide(),yt=e(o,"LoadingOverlay").add(e(o,"LoadingGraphic")),rt=e(o,"Wrapper"),p=e(o,"Content").append(fi=e(o,"Title"),ei=e(o,"Current"),ct=n('<button type="button"/>').attr({id:h+"Previous"}),ht=n('<button type="button"/>').attr({id:h+"Next"}),st=e("button","Slideshow"),yt,oi=n('<button type="button"/>').attr({id:h+"Close"})),rt.append(e(o).append(e(o,"TopLeft"),ti=e(o,"TopCenter"),e(o,"TopRight")),e(o,!1,"clear:left").append(ii=e(o,"MiddleLeft"),p,ri=e(o,"MiddleRight")),e(o,!1,"clear:left").append(e(o,"BottomLeft"),ui=e(o,"BottomCenter"),e(o,"BottomRight"))).find("div div").css({float:"left"}),ot=e(o,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),si=ht.add(ct).add(ei).add(st),n(t.body).append(b,u.append(rt,ot)))}function nr(){function i(n){n.which>1||n.shiftKey||n.altKey||n.metaKey||n.control||(n.preventDefault(),wt(this))}if(u){if(!li)if(li=!0,ht.click(function(){s.next()}),ct.click(function(){s.prev()}),oi.click(function(){s.close()}),b.click(function(){r.overlayClose&&s.close()}),n(t).bind("keydown."+h,function(n){var t=n.keyCode;it&&r.escKey&&t===27&&(n.preventDefault(),s.close()),it&&r.arrowKey&&c[1]&&!n.altKey&&(t===37?(n.preventDefault(),ct.click()):t===39&&(n.preventDefault(),ht.click()))}),n.isFunction(n.fn.on))n(t).on("click."+h,"."+et,i);else n("."+et).live("click."+h,i);return!0}return!1}function tr(){var t,p,u=s.prep,w,b=++ci;if(lt=!0,f=!1,v=c[l],bi(),ft(vt),ft(kt,r.onLoad),r.h=r.height?y(r.height,"y")-nt-d:r.innerHeight&&y(r.innerHeight,"y"),r.w=r.width?y(r.width,"x")-tt-g:r.innerWidth&&y(r.innerWidth,"x"),r.mw=r.w,r.mh=r.h,r.maxWidth&&(r.mw=y(r.maxWidth,"x")-tt-g,r.mw=r.w&&r.w<r.mw?r.w:r.mw),r.maxHeight&&(r.mh=y(r.maxHeight,"y")-nt-d,r.mh=r.h&&r.h<r.mh?r.h:r.mh),t=r.href,vi=setTimeout(function(){yt.show()},100),r.inline){w=e(o).hide().insertBefore(n(t)[0]);ut.one(vt,function(){w.replaceWith(a.children())});u(n(t))}else if(r.iframe)u(" ");else if(r.html)u(r.html);else if(yi(r,t)){t=pi(r,t);n(f=new Image).addClass(h+"Photo").bind("error",function(){r.title=!1,u(e(o,"Error").html(r.imgError))}).one("load",function(){var t;b===ci&&(f.alt=n(v).attr("alt")||n(v).attr("data-alt")||"",r.retinaImage&&i.devicePixelRatio>1&&(f.height=f.height/i.devicePixelRatio,f.width=f.width/i.devicePixelRatio),r.scalePhotos&&(p=function(){f.height-=f.height*t,f.width-=f.width*t},r.mw&&f.width>r.mw&&(t=(f.width-r.mw)/f.width,p()),r.mh&&f.height>r.mh&&(t=(f.height-r.mh)/f.height,p())),r.h&&(f.style.marginTop=Math.max(r.mh-f.height,0)/2+"px"),c[1]&&(r.loop||c[l+1])&&(f.style.cursor="pointer",f.onclick=function(){s.next()}),f.style.width=f.width+"px",f.style.height=f.height+"px",setTimeout(function(){u(f)},1))});setTimeout(function(){f.src=t},1)}else t&&ot.load(t,r.data,function(t,i){b===ci&&u(i==="error"?e(o,"Error").html(r.xhrError):n(this).contents())})}var bt={transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?$/i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined},w="colorbox",h="cbox",et=h+"Element",di=h+"_open",kt=h+"_load",dt=h+"_complete",gt=h+"_cleanup",ni=h+"_closed",vt=h+"_purge",b,u,rt,p,ti,ii,ri,ui,c,k,a,ot,yt,fi,ei,st,ht,ct,oi,si,ut=n("<a/>"),r,d,g,nt,tt,v,l,f,it,lt,at,vi,s,o="div",hi,ci=0,li;n.colorbox||(n(ki),s=n.fn[w]=n[w]=function(t,i){var r=this;if(t=t||{},ki(),nr()){if(n.isFunction(r))r=n("<a/>"),t.open=!0;else if(!r[0])return r;i&&(t.onComplete=i),r.each(function(){n.data(this,w,n.extend({},n.data(this,w)||bt,t))}).addClass(et),(n.isFunction(t.open)&&t.open.call(r)||t.open)&&wt(r[0])}return r},s.position=function(n,t){function a(n){ti[0].style.width=ui[0].style.width=p[0].style.width=parseInt(n.style.width,10)-g+"px",p[0].style.height=ii[0].style.height=ri[0].style.height=parseInt(n.style.height,10)-d+"px"}var o,i=0,f=0,e=u.offset(),c,l;k.unbind("resize."+h),u.css({top:-9e4,left:-9e4}),c=k.scrollTop(),l=k.scrollLeft(),r.fixed?(e.top-=c,e.left-=l,u.css({position:"fixed"})):(i=c,f=l,u.css({position:"absolute"})),f+=r.right!==!1?Math.max(k.width()-r.w-tt-g-y(r.right,"x"),0):r.left!==!1?y(r.left,"x"):Math.round(Math.max(k.width()-r.w-tt-g,0)/2),i+=r.bottom!==!1?Math.max(ai()-r.h-nt-d-y(r.bottom,"y"),0):r.top!==!1?y(r.top,"y"):Math.round(Math.max(ai()-r.h-nt-d,0)/2),u.css({top:e.top,left:e.left,visibility:"visible"}),n=u.width()===r.w+tt&&u.height()===r.h+nt?0:n||0,rt[0].style.width=rt[0].style.height="9999px",o={width:r.w+tt+g,height:r.h+nt+d,top:i,left:f},n===0&&u.css(o),u.dequeue().animate(o,{duration:n,complete:function(){a(this),lt=!1,rt[0].style.width=r.w+tt+g+"px",rt[0].style.height=r.h+nt+d+"px",r.reposition&&setTimeout(function(){k.bind("resize."+h,s.position)},1),t&&t()},step:function(){a(this)}})},s.resize=function(n){it&&(n=n||{},n.width&&(r.w=y(n.width,"x")-tt-g),n.innerWidth&&(r.w=y(n.innerWidth,"x")),a.css({width:r.w}),n.height&&(r.h=y(n.height,"y")-nt-d),n.innerHeight&&(r.h=y(n.innerHeight,"y")),n.innerHeight||n.height||(a.css({height:"auto"}),r.h=a.height()),a.css({height:r.h}),s.position(r.transition==="none"?0:r.speed))},s.prep=function(t){function y(){return r.w=r.w||a.width(),r.w=r.mw&&r.mw<r.w?r.mw:r.w}function b(){return r.h=r.h||a.height(),r.h=r.mh&&r.mh<r.h?r.mh:r.h}if(it){var i,v=r.transition==="none"?0:r.speed;a.empty().remove(),a=e(o,"LoadedContent").append(t),a.hide().appendTo(ot.show()).css({width:y(),overflow:r.scrolling?"auto":"hidden"}).css({height:b()}).prependTo(p),ot.hide(),n(f).css({float:"none"}),i=function(){function y(){n.support.opacity===!1&&u[0].style.removeAttribute("filter")}var i=c.length,t,o="frameBorder",s="allowTransparency",f;if(it){if(f=function(){clearTimeout(vi),yt.hide(),ft(dt,r.onComplete)},fi.html(r.title).add(a).show(),i>1?(typeof r.current=="string"&&ei.html(r.current.replace("{current}",l+1).replace("{total}",i)).show(),ht[r.loop||l<i-1?"show":"hide"]().html(r.next),ct[r.loop||l?"show":"hide"]().html(r.previous),r.slideshow&&st.show(),r.preloading&&n.each([pt(-1),pt(1)],function(){var t,u,r=c[this],i=n.data(r,w);i&&i.href?(t=i.href,n.isFunction(t)&&(t=t.call(r))):t=n(r).attr("href"),t&&yi(i,t)&&(t=pi(i,t),u=new Image,u.src=t)})):si.hide(),r.iframe){t=e("iframe")[0],o in t&&(t[o]=0),s in t&&(t[s]="true"),r.scrolling||(t.scrolling="no"),n(t).attr({src:r.href,name:+new Date,"class":h+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",f).appendTo(a);ut.one(vt,function(){t.src="//about:blank"});r.fastIframe&&n(t).trigger("load")}else f();r.transition==="fade"?u.fadeTo(v,1,y):y()}},r.transition==="fade"?u.fadeTo(v,0,function(){s.position(0,i)}):s.position(v,i)}},s.next=function(){!lt&&c[1]&&(r.loop||c[l+1])&&(l=pt(1),wt(c[l]))},s.prev=function(){!lt&&c[1]&&(r.loop||l)&&(l=pt(-1),wt(c[l]))},s.close=function(){it&&!at&&(at=!0,it=!1,ft(gt,r.onCleanup),k.unbind("."+h),b.fadeTo(r.fadeOut||0,0),u.stop().fadeTo(r.fadeOut||0,0,function(){u.add(b).css({opacity:1,cursor:"auto"}).hide(),ft(vt),a.empty().remove(),setTimeout(function(){at=!1,ft(ni,r.onClosed)},1)}))},s.remove=function(){u&&(u.stop(),n.colorbox.close(),u.stop().remove(),b.remove(),at=!1,u=null,n("."+et).removeData(w).removeClass(et),n(t).unbind("click."+h))},s.element=function(){return n(v)},s.settings=bt)}(jQuery,document,window),window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function vt(n,t){return l(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function lt(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function yt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ot.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?lt(u,t):(u=(n+" "+st.join(r+" ")+r).split(" "),yt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in e);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),u.inputtypes=function(n){for(var u=0,r,f,o,h=n.length;u<h;u++)e.setAttribute("type",f=n[u]),r=e.type!=="text",r&&(e.value=nt,e.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&e.style.WebkitAppearance!==i?(s.appendChild(e),o=t.defaultView,r=o.getComputedStyle&&o.getComputedStyle(e,null).WebkitAppearance!=="textfield"&&e.offsetHeight!==0,s.removeChild(e)):/^(search|tel)$/.test(f)||(r=/^(url|email)$/.test(f)?e.checkValidity&&e.checkValidity()===!1:e.value!=nt)),ht[n[u]]=!!r;return ht}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var at="2.6.2",u={},g=!0,s=t.documentElement,o="modernizr",ut=t.createElement(o),c=ut.style,e=t.createElement("input"),nt=":)",ft={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",ot=et.split(" "),st=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ht={},w={},tt=[],it=tt.slice,b,a=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,e=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:o+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',o,'">',n,"<\/style>"].join(""),f.id=o,(h?f:e).innerHTML+=l,e.appendChild(f),h||(e.style.background="",e.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(e)),a=i(f,n),h?f.parentNode.removeChild(f):(e.parentNode.removeChild(e),s.style.overflow=v),!!a},ct=function(){function r(r,u){u=u||t.createElement(n[r]||"div"),r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),rt={}.hasOwnProperty,k,d;k=h(rt,"undefined")||h(rt.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return rt.call(n,t)},Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=it.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(it.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(it.call(arguments)))},r}),r.flexbox=function(){return f("flexWrap")},r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))},r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))},r.webgl=function(){return!!n.WebGLRenderingContext},r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:a(["@media (",y.join("touch-enabled),("),o,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i},r.geolocation=function(){return"geolocation"in navigator},r.postmessage=function(){return!!n.postMessage},r.websqldatabase=function(){return!!n.openDatabase},r.indexedDB=function(){return!!f("indexedDB",n)},r.hashchange=function(){return ct("hashchange",n)&&(t.documentMode===i||t.documentMode>7)},r.history=function(){return!!(n.history&&history.pushState)},r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n},r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n},r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")},r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")},r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)},r.backgroundsize=function(){return f("backgroundSize")},r.borderimage=function(){return f("borderImage")},r.borderradius=function(){return f("borderRadius")},r.boxshadow=function(){return f("boxShadow")},r.textshadow=function(){return t.createElement("div").style.textShadow===""},r.opacity=function(){return vt("opacity:.55"),/^0.55$/.test(c.opacity)},r.cssanimations=function(){return f("animationName")},r.csscolumns=function(){return f("columnCount")},r.cssgradients=function(){var n="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",i="linear-gradient(left top,#9f9, white);";return l((n+"-webkit- ".split(" ").join(t+n)+y.join(i+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")},r.cssreflections=function(){return f("boxReflect")},r.csstransforms=function(){return!!f("transform")},r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&a("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n},r.csstransitions=function(){return f("transition")},r.fontface=function(){var n;return a('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n},r.generatedcontent=function(){var n;return a(["#",o,"{font:0/0 a}#",o,':after{content:"',nt,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n},r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n},r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n},r.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(n){return!1}},r.sessionstorage=function(){try{return sessionStorage.setItem(o,o),sessionStorage.removeItem(o),!0}catch(n){return!1}},r.webworkers=function(){return!!n.Worker},r.applicationcache=function(){return!!n.applicationCache},r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect},r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg},r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))},r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(d in r)k(r,d)&&(b=d.toLowerCase(),u[b]=r[d](),tt.push((u[b]?"":"no-")+b));return u.input||pt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)k(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t,typeof g!="undefined"&&g&&(s.className+=" "+(t?"":"no-")+n),u[n]=t}return u},l(""),ut=e=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function c(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function o(n){var t=h[n[s]];return t||(t={},e++,n[s]=e,h[e]=t),t}function l(n,r,u){if(r||(r=t),i)return r.createElement(n);u||(u=o(r));var f;return f=u.cache[n]?u.cache[n].cloneNode():y.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),f.canHaveChildren&&!v.test(n)?u.frag.appendChild(f):f}function w(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||o(n);for(var f=r.frag.cloneNode(),u=0,e=c(),s=e.length;u<s;u++)f.createElement(e[u]);return f}function b(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag()),n.createElement=function(i){return r.shivMethods?l(i,n,t):t.createElem(i)},n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/\w+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function a(n){n||(n=t);var u=o(n);return!r.shivCSS||f||u.hasCSS||(u.hasCSS=!!p(n,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),i||b(n,u),n}var u=n.html5||{},v=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,y=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,s="_html5shiv",e=0,h={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>",f="hidden"in n,i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){f=!0,i=!0}})(),r={elements:u.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:u.shivCSS!==!1,supportsUnknownElements:i,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:a,createElement:l,createDocumentFragment:w},n.html5=r,a(t)}(this,t),u._version=at,u._prefixes=y,u._domPrefixes=st,u._cssomPrefixes=ot,u.hasEvent=ct,u.testProp=function(n){return lt([n])},u.testAllProps=f,u.testStyles=a,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(g?" js "+tt.join(" "):""),u}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function f(){var n=a.shift();v=1,n?n.t?o(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):v=0}function ut(n,i,s,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&f(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&o(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:s,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]),"object"==n?p.data=i:(p.src=i,p.type=n),p.width=p.height="0",p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)},a.splice(h,0,tt),"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:e),o(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&f()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var s=t.documentElement,o=n.setTimeout,e=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in s.style,d=k&&!!t.createRange().compareNode,g=d?s:e.parentNode,s=n.opera&&"[object Opera]"==y.call(n.opera),s=!!t.attachEvent&&!s,nt=k?"object":s?"script":"img",et=s?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift(),o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b(),t&&t(o.origUrl,e,f),s&&s(o.origUrl,e,f),r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n),u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0,i;for(i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n),u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t),u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o),o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)},u.addPrefix=function(n,t){it[n]=t},u.addFilter=function(n){p.push(n)},u.errorTimeout=1e4,null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0),t.readyState="complete"},0)),n.yepnope=b(),n.yepnope.executeStack=f,n.yepnope.injectJs=function(n,i,r,s,h,c){var a=t.createElement("script"),v,y,s=s||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?f:i||l,a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)},o(function(){v||(v=1,i(1))},s),h?a.onload():e.parentNode.insertBefore(a,e)},n.yepnope.injectCss=function(n,i,r,u,s,h){var u=t.createElement("link"),c,i=h?f:i||l;u.href=n,u.rel="stylesheet",u.type="text/css";for(c in r)u.setAttribute(c,r[c]);s||(e.parentNode.insertBefore(u,e),o(i,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(n){"use strict";function g(){v(!0)}var r={};if(n.respond=r,r.update=function(){},r.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all").matches,!r.mediaQueriesSupported){var t=n.document,u=t.documentElement,f=[],e=[],i=[],h={},y=30,o=t.getElementsByTagName("head")[0]||u,nt=t.getElementsByTagName("base")[0],s=o.getElementsByTagName("link"),c=[],p=function(){for(var r=0;r<s.length;r++){var t=s[r],i=t.href,u=t.media,f=t.rel&&t.rel.toLowerCase()==="stylesheet";!i||!f||h[i]||(t.styleSheet&&t.styleSheet.rawCssText?(b(t.styleSheet.rawCssText,i,u),h[i]=!0):(/^([a-zA-Z:]*\/\/)/.test(i)||nt)&&i.replace(RegExp.$1,"").split("/")[0]!==n.location.host||c.push({href:i,media:u}))}w()},w=function(){if(c.length){var t=c.shift();tt(t.href,function(i){b(i,t.href,t.media),h[t.href]=!0,n.setTimeout(function(){w()},0)})}},b=function(n,t,i){var s=n.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),h=s&&s.length||0,c,l,u,a,r,y,p,o;for(t=t.substring(0,t.lastIndexOf("/")),c=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},l=!h&&i,t.length&&(t+="/"),l&&(h=1),u=0;u<h;u++)for(l?(a=i,e.push(c(n))):(a=s[u].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,e.push(RegExp.$2&&c(RegExp.$2))),y=a.split(","),p=y.length,o=0;o<p;o++)r=y[o],f.push({media:r.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:e.length-1,hasquery:r.indexOf("(")>-1,minw:r.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});v()},l,k,d=function(){var i,r=t.createElement("div"),n=t.body,f=!1;return r.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=t.createElement("body"),n.style.background="none"),n.appendChild(r),u.insertBefore(n,u.firstChild),i=r.offsetWidth,f?u.removeChild(n):n.removeChild(r),i=a=parseFloat(i)},a,v=function(r){var rt="clientWidth",ut=u[rt],ft=t.compatMode==="CSS1Compat"&&ut||t.body[rt]||ut,p={},ct=s[s.length-1],et=+new Date,tt,g,nt,h,it;if(r&&l&&et-l<y){n.clearTimeout(k),k=n.setTimeout(v,y);return}l=et;for(tt in f)if(f.hasOwnProperty(tt)){var c=f[tt],w=c.minw,b=c.maxw,ot=w===null,st=b===null,ht="em";!w||(w=parseFloat(w)*(w.indexOf(ht)>-1?a||d():1)),!b||(b=parseFloat(b)*(b.indexOf(ht)>-1?a||d():1)),(!c.hasquery||(!ot||!st)&&(ot||ft>=w)&&(st||ft<=b))&&(p[c.media]||(p[c.media]=[]),p[c.media].push(e[c.rules]))}for(g in i)i.hasOwnProperty(g)&&i[g]&&i[g].parentNode===o&&o.removeChild(i[g]);for(nt in p)p.hasOwnProperty(nt)&&(h=t.createElement("style"),it=p[nt].join("\n"),h.type="text/css",h.media=nt,o.insertBefore(h,ct.nextSibling),h.styleSheet?h.styleSheet.cssText=it:h.appendChild(t.createTextNode(it)),i.push(h))},tt=function(n,t){var i=it();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState===4&&(i.status===200||i.status===304)&&t(i.responseText)},i.readyState!==4)&&i.send(null)},it=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}();p(),r.update=p,n.addEventListener?n.addEventListener("resize",g,!1):n.attachEvent&&n.attachEvent("onresize",g)}}(this),function(n){"use strict";function ut(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=v),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(h);i||(i=new ft(this,t),r.data(h,i))})}function ft(rt,ut){function wi(t){if(!cu()&&!(n(t.target).closest(ut.excludedElements,ft).length>0)){var u=t.originalEvent?t.originalEvent:t,f,e=r?u.touches[0]:u;if(et=tt,r?ot=u.touches.length:t.preventDefault(),ht=0,ct=null,pt=null,st=0,wt=0,bt=0,at=1,yt=0,lt=au(),vi=yu(),yr(),!r||ot===ut.fingers||ut.fingers===c||ii()?(ir(0,e),yi=dt(),ot==2&&(ir(1,u.touches[1]),wt=bt=rr(lt[0].start,lt[1].start)),(ut.swipeStatus||ut.pinchStatus)&&(f=vt(u,et))):f=!1,f===!1)return et=i,vt(u,et),f;hi(!0)}}function bi(n){var u=n.originalEvent?n.originalEvent:n,o,h,f,e,l;et===t||et===i||pr()||(h=r?u.touches[0]:u,f=wr(h),ei=dt(),r&&(ot=u.touches.length),et=s,ot==2&&(wt==0?(ir(1,u.touches[1]),wt=bt=rr(lt[0].start,lt[1].start)):(wr(u.touches[1]),bt=rr(lt[0].end,lt[1].end),pt=wu(lt[0].end,lt[1].end)),at=pu(wt,bt),yt=Math.abs(wt-bt)),ot===ut.fingers||ut.fingers===c||!r||ii()?(ct=du(f.start,f.end),gr(n,ct),ht=bu(f.start,f.end),st=kr(),vu(ct,ht),(ut.swipeStatus||ut.pinchStatus)&&(o=vt(u,et)),(!ut.triggerOnTouchEnd||ut.triggerOnTouchLeave)&&(e=!0,ut.triggerOnTouchLeave&&(l=gu(this),e=nf(f.end,l)),!ut.triggerOnTouchEnd&&e?et=gi(s):ut.triggerOnTouchLeave&&!e&&(et=gi(t)),(et==i||et==t)&&vt(u,et))):(et=i,vt(u,et)),o===!1&&(et=i,vt(u,et)))}function ki(n){var u=n.originalEvent;if(r&&u.touches.length>0)return hu(),!0;pr()&&(ot=pi),n.preventDefault(),ei=dt(),st=kr(),nr()?(et=i,vt(u,et)):ut.triggerOnTouchEnd||ut.triggerOnTouchEnd==!1&&et===s?(et=t,vt(u,et)):!ut.triggerOnTouchEnd&&ar()?(et=t,ti(u,et,y)):et===s&&(et=i,vt(u,et)),hi(!1)}function ni(){ot=0,ei=0,yi=0,wt=0,bt=0,at=1,yr(),hi(!1)}function di(n){var i=n.originalEvent;ut.triggerOnTouchLeave&&(et=gi(t),vt(i,et))}function ur(){ft.unbind(ui,wi),ft.unbind(fi,ni),ft.unbind(li,bi),ft.unbind(ai,ki),gt&&ft.unbind(gt,di),hi(!1)}function gi(n){var r=n,f=er(),u=fr(),e=nr();return!f||e?r=i:u&&n==s&&(!ut.triggerOnTouchEnd||ut.triggerOnTouchLeave)?r=t:!u&&n==t&&ut.triggerOnTouchLeave&&(r=i),r}function vt(n,u){var f=undefined;return tu()||hr()?f=ti(n,u,k):(nu()||ii())&&f!==!1&&(f=ti(n,u,d)),ou()&&f!==!1?f=ti(n,u,g):su()&&f!==!1?f=ti(n,u,nt):eu()&&f!==!1&&(f=ti(n,u,y)),u===i&&ni(n),u===t&&(r?n.touches.length==0&&ni(n):ni(n)),f}function ti(r,s,h){var c=undefined;if(h==k){if(ft.trigger("swipeStatus",[s,ct||null,ht||0,st||0,ot]),ut.swipeStatus&&(c=ut.swipeStatus.call(ft,r,s,ct||null,ht||0,st||0,ot),c===!1))return!1;if(s==t&&sr()){if(ft.trigger("swipe",[ct,ht,st,ot]),ut.swipe&&(c=ut.swipe.call(ft,r,ct,ht,st,ot),c===!1))return!1;switch(ct){case u:ft.trigger("swipeLeft",[ct,ht,st,ot]),ut.swipeLeft&&(c=ut.swipeLeft.call(ft,r,ct,ht,st,ot));break;case f:ft.trigger("swipeRight",[ct,ht,st,ot]),ut.swipeRight&&(c=ut.swipeRight.call(ft,r,ct,ht,st,ot));break;case e:ft.trigger("swipeUp",[ct,ht,st,ot]),ut.swipeUp&&(c=ut.swipeUp.call(ft,r,ct,ht,st,ot));break;case o:ft.trigger("swipeDown",[ct,ht,st,ot]),ut.swipeDown&&(c=ut.swipeDown.call(ft,r,ct,ht,st,ot))}}}if(h==d){if(ft.trigger("pinchStatus",[s,pt||null,yt||0,st||0,ot,at]),ut.pinchStatus&&(c=ut.pinchStatus.call(ft,r,s,pt||null,yt||0,st||0,ot,at),c===!1))return!1;if(s==t&&or())switch(pt){case l:ft.trigger("pinchIn",[pt||null,yt||0,st||0,ot,at]),ut.pinchIn&&(c=ut.pinchIn.call(ft,r,pt||null,yt||0,st||0,ot,at));break;case a:ft.trigger("pinchOut",[pt||null,yt||0,st||0,ot,at]),ut.pinchOut&&(c=ut.pinchOut.call(ft,r,pt||null,yt||0,st||0,ot,at))}}return h==y?(s===i||s===t)&&(clearTimeout(si),tr()&&!ru()?(kt=dt(),si=setTimeout(n.proxy(function(){kt=null,ft.trigger("tap",[r.target]),ut.tap&&(c=ut.tap.call(ft,r,r.target))},this),ut.doubleTapThreshold)):(kt=null,ft.trigger("tap",[r.target]),ut.tap&&(c=ut.tap.call(ft,r,r.target)))):h==g?(s===i||s===t)&&(clearTimeout(si),kt=null,ft.trigger("doubletap",[r.target]),ut.doubleTap&&(c=ut.doubleTap.call(ft,r,r.target))):h==nt&&(s===i||s===t)&&(clearTimeout(si),kt=null,ft.trigger("longtap",[r.target]),ut.longTap&&(c=ut.longTap.call(ft,r,r.target))),c}function fr(){var n=!0;return ut.threshold!==null&&(n=ht>=ut.threshold),n}function nr(){var n=!1;return ut.cancelThreshold!==null&&ct!==null&&(n=br(ct)-ht>=ut.cancelThreshold),n}function dr(){return ut.pinchThreshold!==null?yt>=ut.pinchThreshold:!0}function er(){var n;return n=ut.maxTimeThreshold?st>=ut.maxTimeThreshold?!1:!0:!0}function gr(n,t){if(ut.allowPageScroll===v||ii())n.preventDefault();else{var i=ut.allowPageScroll===b;switch(t){case u:(ut.swipeLeft&&i||!i&&ut.allowPageScroll!=p)&&n.preventDefault();break;case f:(ut.swipeRight&&i||!i&&ut.allowPageScroll!=p)&&n.preventDefault();break;case e:(ut.swipeUp&&i||!i&&ut.allowPageScroll!=w)&&n.preventDefault();break;case o:(ut.swipeDown&&i||!i&&ut.allowPageScroll!=w)&&n.preventDefault()}}}function or(){var n=cr(),t=lr(),i=dr();return n&&t&&i}function ii(){return!!(ut.pinchStatus||ut.pinchIn||ut.pinchOut)}function nu(){return!!(or()&&ii())}function sr(){var n=er(),t=fr(),i=cr(),r=lr(),u=nr();return!u&&r&&i&&t&&n}function hr(){return!!(ut.swipe||ut.swipeStatus||ut.swipeLeft||ut.swipeRight||ut.swipeUp||ut.swipeDown)}function tu(){return!!(sr()&&hr())}function cr(){return ot===ut.fingers||ut.fingers===c||!r}function lr(){return lt[0].end.x!==0}function ar(){return!!ut.tap}function tr(){return!!ut.doubleTap}function iu(){return!!ut.longTap}function vr(){if(kt==null)return!1;var n=dt();return tr()&&n-kt<=ut.doubleTapThreshold}function ru(){return vr()}function uu(){return(ot===1||!r)&&(isNaN(ht)||ht===0)}function fu(){return st>ut.longTapThreshold&&ht<it}function eu(){return!!(uu()&&ar())}function ou(){return!!(vr()&&tr())}function su(){return!!(fu()&&iu())}function hu(){oi=dt(),pi=event.touches.length+1}function yr(){oi=0,pi=0}function pr(){var n=!1,t;return oi&&(t=dt()-oi,t<=ut.fingerReleaseThreshold&&(n=!0)),n}function cu(){return!!(ft.data(h+"_intouch")===!0)}function hi(n){n===!0?(ft.bind(li,bi),ft.bind(ai,ki),gt&&ft.bind(gt,di)):(ft.unbind(li,bi,!1),ft.unbind(ai,ki,!1),gt&&ft.unbind(gt,di,!1)),ft.data(h+"_intouch",n===!0)}function ir(n,t){var i=t.identifier!==undefined?t.identifier:0;return lt[n].identifier=i,lt[n].start.x=lt[n].end.x=t.pageX||t.clientX,lt[n].start.y=lt[n].end.y=t.pageY||t.clientY,lt[n]}function wr(n){var i=n.identifier!==undefined?n.identifier:0,t=lu(i);return t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function lu(n){for(var t=0;t<lt.length;t++)if(lt[t].identifier==n)return lt[t]}function au(){for(var t=[],n=0;n<=5;n++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}function vu(n,t){t=Math.max(t,br(n)),vi[n].distance=t}function br(n){return vi[n].distance}function yu(){var n={};return n[u]=ci(u),n[f]=ci(f),n[e]=ci(e),n[o]=ci(o),n}function ci(n){return{direction:n,distance:0}}function kr(){return ei-yi}function rr(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function pu(n,t){var i=t/n*1;return i.toFixed(2)}function wu(){return at<1?a:l}function bu(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function ku(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function du(n,t){var i=ku(n,t);return i<=45&&i>=0?u:i<=360&&i>=315?u:i>=135&&i<=225?f:i>45&&i<135?o:e}function dt(){var n=new Date;return n.getTime()}function gu(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function nf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}var ri=r||!ut.fallbackToMouseEvents,ui=ri?"touchstart":"mousedown",li=ri?"touchmove":"mousemove",ai=ri?"touchend":"mouseup",gt=ri?null:"mouseleave",fi="touchcancel",ht=0,ct=null,st=0,wt=0,bt=0,at=1,yt=0,pt=0,vi=null,ft=n(rt),et="start",ot=0,lt=null,yi=0,ei=0,oi=0,pi=0,kt=0,si=null;try{ft.bind(ui,wi),ft.bind(fi,ni)}catch(tf){n.error("events not supported "+ui+","+fi+" on jQuery.swipe")}this.enable=function(){return ft.bind(ui,wi),ft.bind(fi,ni),ft},this.disable=function(){return ur(),ft},this.destroy=function(){return ur(),ft.data(h,null),ft},this.option=function(t,i){if(ut[t]!==undefined){if(i===undefined)return ut[t];ut[t]=i}else n.error("Option "+t+" does not exist on jQuery.swipe.options")}}var u="left",f="right",e="up",o="down",l="in",a="out",v="none",b="auto",k="swipe",d="pinch",y="tap",g="doubletap",nt="longtap",p="horizontal",w="vertical",c="all",it=10,tt="start",s="move",t="end",i="cancel",r="ontouchstart"in window,h="TouchSwipe",rt={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"button, input, select, textarea, a, .noSwipe"};n.fn.swipe=function(t){var r=n(this),i=r.data(h);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(!i&&(typeof t=="object"||!t))return ut.apply(this,arguments);return r},n.fn.swipe.defaults=rt,n.fn.swipe.phases={PHASE_START:tt,PHASE_MOVE:s,PHASE_END:t,PHASE_CANCEL:i},n.fn.swipe.directions={LEFT:u,RIGHT:f,UP:e,DOWN:o,IN:l,OUT:a},n.fn.swipe.pageScroll={NONE:v,HORIZONTAL:p,VERTICAL:w,AUTO:b},n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:c}}(jQuery),jQuery(document).ready(function(){var e=$.cookie("visited"),u,f,t,i,n,r;for(e===null?($.cookie("visited","yes"),$("html").addClass("alpha")):$("html").removeClass("alpha"),$.cookie("visited","yes",{expires:1,path:"/"}),$("[class*=notice] > .detail > a.close").click(function(){return $(this).parent().removeClass("show"),!1}),u=location.hostname.split("."),f=!1,t=0;t<u.length;t++)u[t]=="es"&&(f=!0);f?($(".EspanolLink").hide(),$(".EnglishLink").show()):($(".EspanolLink").show(),$(".EnglishLink").hide()),$("#aSubmissionPopup").live("click",function(){return $(this).colorbox({href:$(this).attr("href"),iframe:!0,maxWidth:"60%",maxHeight:"70%"}),!1}),$("#aBtnSubmissionPopup").live("click",function(){return $(this).colorbox({href:$(this).attr("href"),iframe:!0,maxWidth:"60%",maxHeight:"70%"}),!1}),$("html").click(function(){$(".AbModal").removeClass("shown").addClass("hidden")}),$(".Abox").click(function(n){n.stopPropagation()}),$(".Abox .AbOpen").click(function(){return $(this).siblings(".AbModal").toggleClass("hidden").toggleClass("shown"),!1}),$(".Abox .AbClose").click(function(){return $(this).parent(".AbModal").removeClass("shown").addClass("hidden"),!1}),$("[class*=modal_]").colorbox({inline:!0,transition:"none"}),$("[class*=modal_].iframe").colorbox({inline:!1,iframe:!0,transition:"none"}),$(".modal_100x100").colorbox({width:"100px",innerHeight:"100px"}),$(".modal_100x150").colorbox({width:"100px",innerHeight:"150px"}),$(".modal_100x200").colorbox({width:"100px",innerHeight:"200px"}),$(".modal_100x250").colorbox({width:"100px",innerHeight:"250px"}),$(".modal_100x300").colorbox({width:"100px",innerHeight:"300px"}),$(".modal_100x350").colorbox({width:"100px",innerHeight:"350px"}),$(".modal_100x400").colorbox({width:"100px",innerHeight:"400px"}),$(".modal_100x500").colorbox({width:"100px",innerHeight:"500px"}),$(".modal_100x600").colorbox({width:"100px",innerHeight:"600px"}),$(".modal_100x700").colorbox({width:"100px",innerHeight:"700px"}),$(".modal_100x800").colorbox({width:"100px",innerHeight:"800px"}),$(".modal_150x100").colorbox({width:"150px",innerHeight:"100px"}),$(".modal_150x150").colorbox({width:"150px",innerHeight:"150px"}),$(".modal_150x200").colorbox({width:"150px",innerHeight:"200px"}),$(".modal_150x250").colorbox({width:"150px",innerHeight:"250px"}),$(".modal_150x300").colorbox({width:"150px",innerHeight:"300px"}),$(".modal_150x350").colorbox({width:"150px",innerHeight:"350px"}),$(".modal_150x400").colorbox({width:"150px",innerHeight:"400px"}),$(".modal_150x500").colorbox({width:"150px",innerHeight:"500px"}),$(".modal_150x600").colorbox({width:"150px",innerHeight:"600px"}),$(".modal_150x700").colorbox({width:"150px",innerHeight:"700px"}),$(".modal_150x800").colorbox({width:"150px",innerHeight:"800px"}),$(".modal_200x100").colorbox({width:"200px",innerHeight:"100px"}),$(".modal_200x150").colorbox({width:"200px",innerHeight:"150px"}),$(".modal_200x200").colorbox({width:"200px",innerHeight:"200px"}),$(".modal_200x250").colorbox({width:"200px",innerHeight:"250px"}),$(".modal_200x300").colorbox({width:"200px",innerHeight:"300px"}),$(".modal_200x350").colorbox({width:"200px",innerHeight:"350px"}),$(".modal_200x400").colorbox({width:"200px",innerHeight:"400px"}),$(".modal_200x500").colorbox({width:"200px",innerHeight:"500px"}),$(".modal_200x600").colorbox({width:"200px",innerHeight:"600px"}),$(".modal_200x700").colorbox({width:"200px",innerHeight:"700px"}),$(".modal_200x800").colorbox({width:"200px",innerHeight:"800px"}),$(".modal_250x100").colorbox({width:"250px",innerHeight:"100px"}),$(".modal_250x150").colorbox({width:"250px",innerHeight:"150px"}),$(".modal_250x200").colorbox({width:"250px",innerHeight:"200px"}),$(".modal_250x250").colorbox({width:"250px",innerHeight:"250px"}),$(".modal_250x300").colorbox({width:"250px",innerHeight:"300px"}),$(".modal_250x350").colorbox({width:"250px",innerHeight:"350px"}),$(".modal_250x400").colorbox({width:"250px",innerHeight:"400px"}),$(".modal_250x500").colorbox({width:"250px",innerHeight:"500px"}),$(".modal_250x600").colorbox({width:"250px",innerHeight:"600px"}),$(".modal_250x700").colorbox({width:"250px",innerHeight:"700px"}),$(".modal_250x800").colorbox({width:"250px",innerHeight:"800px"}),$(".modal_300x100").colorbox({width:"300px",innerHeight:"100px"}),$(".modal_300x150").colorbox({width:"300px",innerHeight:"150px"}),$(".modal_300x200").colorbox({width:"300px",innerHeight:"200px"}),$(".modal_300x250").colorbox({width:"300px",innerHeight:"250px"}),$(".modal_300x300").colorbox({width:"300px",innerHeight:"300px"}),$(".modal_300x350").colorbox({width:"300px",innerHeight:"350px"}),$(".modal_300x400").colorbox({width:"300px",innerHeight:"400px"}),$(".modal_300x500").colorbox({width:"300px",innerHeight:"500px"}),$(".modal_300x600").colorbox({width:"300px",innerHeight:"600px"}),$(".modal_300x700").colorbox({width:"300px",innerHeight:"700px"}),$(".modal_300x800").colorbox({width:"300px",innerHeight:"800px"}),$(".modal_350x100").colorbox({width:"350px",innerHeight:"100px"}),$(".modal_350x150").colorbox({width:"350px",innerHeight:"150px"}),$(".modal_350x200").colorbox({width:"350px",innerHeight:"200px"}),$(".modal_350x250").colorbox({width:"350px",innerHeight:"250px"}),$(".modal_350x300").colorbox({width:"350px",innerHeight:"300px"}),$(".modal_350x350").colorbox({width:"350px",innerHeight:"350px"}),$(".modal_350x400").colorbox({width:"350px",innerHeight:"400px"}),$(".modal_350x500").colorbox({width:"350px",innerHeight:"500px"}),$(".modal_350x600").colorbox({width:"350px",innerHeight:"600px"}),$(".modal_350x700").colorbox({width:"350px",innerHeight:"700px"}),$(".modal_350x800").colorbox({width:"350px",innerHeight:"800px"}),$(".modal_400x100").colorbox({width:"400px",innerHeight:"100px"}),$(".modal_400x150").colorbox({width:"400px",innerHeight:"150px"}),$(".modal_400x200").colorbox({width:"400px",innerHeight:"200px"}),$(".modal_400x250").colorbox({width:"400px",innerHeight:"250px"}),$(".modal_400x300").colorbox({width:"400px",innerHeight:"300px"}),$(".modal_400x350").colorbox({width:"400px",innerHeight:"350px"}),$(".modal_400x400").colorbox({width:"400px",innerHeight:"400px"}),$(".modal_400x500").colorbox({width:"400px",innerHeight:"500px"}),$(".modal_400x600").colorbox({width:"400px",innerHeight:"600px"}),$(".modal_400x700").colorbox({width:"400px",innerHeight:"700px"}),$(".modal_400x800").colorbox({width:"400px",innerHeight:"800px"}),$(".modal_500x100").colorbox({width:"500px",innerHeight:"100px"}),$(".modal_500x150").colorbox({width:"500px",innerHeight:"150px"}),$(".modal_500x200").colorbox({width:"500px",innerHeight:"200px"}),$(".modal_500x250").colorbox({width:"500px",innerHeight:"250px"}),$(".modal_500x300").colorbox({width:"500px",innerHeight:"300px"}),$(".modal_500x350").colorbox({width:"500px",innerHeight:"350px"}),$(".modal_500x400").colorbox({width:"500px",innerHeight:"400px"}),$(".modal_500x500").colorbox({width:"500px",innerHeight:"500px"}),$(".modal_500x600").colorbox({width:"500px",innerHeight:"600px"}),$(".modal_500x700").colorbox({width:"500px",innerHeight:"700px"}),$(".modal_500x800").colorbox({width:"500px",innerHeight:"800px"}),$(".modal_600x100").colorbox({width:"600px",innerHeight:"100px"}),$(".modal_600x150").colorbox({width:"600px",innerHeight:"150px"}),$(".modal_600x200").colorbox({width:"600px",innerHeight:"200px"}),$(".modal_600x250").colorbox({width:"600px",innerHeight:"250px"}),$(".modal_600x300").colorbox({width:"600px",innerHeight:"300px"}),$(".modal_600x350").colorbox({width:"600px",innerHeight:"350px"}),$(".modal_600x400").colorbox({width:"600px",innerHeight:"400px"}),$(".modal_600x500").colorbox({width:"600px",innerHeight:"500px"}),$(".modal_600x600").colorbox({width:"600px",innerHeight:"600px"}),$(".modal_600x700").colorbox({width:"600px",innerHeight:"700px"}),$(".modal_600x800").colorbox({width:"600px",innerHeight:"800px"}),$(".modal_700x100").colorbox({width:"700px",innerHeight:"100px"}),$(".modal_700x150").colorbox({width:"700px",innerHeight:"150px"}),$(".modal_700x200").colorbox({width:"700px",innerHeight:"200px"}),$(".modal_700x250").colorbox({width:"700px",innerHeight:"250px"}),$(".modal_700x300").colorbox({width:"700px",innerHeight:"300px"}),$(".modal_700x350").colorbox({width:"700px",innerHeight:"350px"}),$(".modal_700x400").colorbox({width:"700px",innerHeight:"400px"}),$(".modal_700x500").colorbox({width:"700px",innerHeight:"500px"}),$(".modal_700x600").colorbox({width:"700px",innerHeight:"600px"}),$(".modal_700x700").colorbox({width:"700px",innerHeight:"700px"}),$(".modal_700x800").colorbox({width:"700px",innerHeight:"800px"}),$(".modal_800x100").colorbox({width:"800px",innerHeight:"100px"}),$(".modal_800x150").colorbox({width:"800px",innerHeight:"150px"}),$(".modal_800x200").colorbox({width:"800px",innerHeight:"200px"}),$(".modal_800x250").colorbox({width:"800px",innerHeight:"250px"}),$(".modal_800x300").colorbox({width:"800px",innerHeight:"300px"}),$(".modal_800x350").colorbox({width:"800px",innerHeight:"350px"}),$(".modal_800x400").colorbox({width:"800px",innerHeight:"400px"}),$(".modal_800x500").colorbox({width:"800px",innerHeight:"500px"}),$(".modal_800x600").colorbox({width:"800px",innerHeight:"600px"}),$(".modal_800x700").colorbox({width:"800px",innerHeight:"700px"}),$(".modal_800x800").colorbox({width:"800px",innerHeight:"800px"}),$(".modal_900x100").colorbox({width:"900px",innerHeight:"100px"}),$(".modal_900x150").colorbox({width:"900px",innerHeight:"150px"}),$(".modal_900x200").colorbox({width:"900px",innerHeight:"200px"}),$(".modal_900x250").colorbox({width:"900px",innerHeight:"250px"}),$(".modal_900x300").colorbox({width:"900px",innerHeight:"300px"}),$(".modal_900x350").colorbox({width:"900px",innerHeight:"350px"}),$(".modal_900x400").colorbox({width:"900px",innerHeight:"400px"}),$(".modal_900x500").colorbox({width:"900px",innerHeight:"500px"}),$(".modal_900x600").colorbox({width:"900px",innerHeight:"600px"}),$(".modal_900x700").colorbox({width:"900px",innerHeight:"700px"}),$(".modal_900x800").colorbox({width:"900px",innerHeight:"800px"}),$(".modal_1000x100").colorbox({width:"1000px",innerHeight:"100px"}),$(".modal_1000x150").colorbox({width:"1000px",innerHeight:"150px"}),$(".modal_1000x200").colorbox({width:"1000px",innerHeight:"200px"}),$(".modal_1000x250").colorbox({width:"1000px",innerHeight:"250px"}),$(".modal_1000x300").colorbox({width:"1000px",innerHeight:"300px"}),$(".modal_1000x350").colorbox({width:"1000px",innerHeight:"350px"}),$(".modal_1000x400").colorbox({width:"1000px",innerHeight:"400px"}),$(".modal_1000x500").colorbox({width:"1000px",innerHeight:"500px"}),$(".modal_1000x600").colorbox({width:"1000px",innerHeight:"600px"}),$(".modal_1000x700").colorbox({width:"1000px",innerHeight:"700px"}),$(".modal_1000x800").colorbox({width:"1000px",innerHeight:"800px"}),$(".modal_1100x100").colorbox({width:"1100px",innerHeight:"100px"}),$(".modal_1100x150").colorbox({width:"1100px",innerHeight:"150px"}),$(".modal_1100x200").colorbox({width:"1100px",innerHeight:"200px"}),$(".modal_1100x250").colorbox({width:"1100px",innerHeight:"250px"}),$(".modal_1100x300").colorbox({width:"1100px",innerHeight:"300px"}),$(".modal_1100x350").colorbox({width:"1100px",innerHeight:"350px"}),$(".modal_1100x400").colorbox({width:"1100px",innerHeight:"400px"}),$(".modal_1100x500").colorbox({width:"1100px",innerHeight:"500px"}),$(".modal_1100x600").colorbox({width:"1100px",innerHeight:"600px"}),$(".modal_1100x700").colorbox({width:"1100px",innerHeight:"700px"}),$(".modal_1100x800").colorbox({width:"1100px",innerHeight:"800px"}),$(".modal_1200x100").colorbox({width:"1200px",innerHeight:"100px"}),$(".modal_1200x150").colorbox({width:"1200px",innerHeight:"150px"}),$(".modal_1200x200").colorbox({width:"1200px",innerHeight:"200px"}),$(".modal_1200x250").colorbox({width:"1200px",innerHeight:"250px"}),$(".modal_1200x300").colorbox({width:"1200px",innerHeight:"300px"}),$(".modal_1200x350").colorbox({width:"1200px",innerHeight:"350px"}),$(".modal_1200x400").colorbox({width:"1200px",innerHeight:"400px"}),$(".modal_1200x500").colorbox({width:"1200px",innerHeight:"500px"}),$(".modal_1200x600").colorbox({width:"1200px",innerHeight:"600px"}),$(".modal_1200x700").colorbox({width:"1200px",innerHeight:"700px"}),$(".modal_1200x800").colorbox({width:"1200px",innerHeight:"800px"}),$(".mobileMenu").click(function(){return $("#globalNavigation").hasClass("show")?($("#globalNavigation").removeClass("show"),$(".mobileMenu").removeClass("show")):($("#globalNavigation").addClass("show"),$(".mobileMenu").addClass("show")),$(".search").removeClass("show"),$(".mobileSearch").removeClass("show"),!1}),$(".mobileSearch").click(function(){return $(".search").hasClass("show")?($(".search").removeClass("show"),$(".mobileSearch").removeClass("show")):($(".search").addClass("show"),$(".mobileSearch").addClass("show")),$("#globalNavigation").removeClass("show"),$(".mobileMenu").removeClass("show"),!1}),$(".search input").keypress(function(n){n.which==13&&$(".search input").val().length>0&&(ntptEventTag("ev=search_bt&sitekeyword="+$(".search input").val()+"&ActionType=Search"),window.location="/search?term="+$(".search input").val())}),$(".search button").click(function(){$(".search input").val().length>0&&(ntptEventTag("ev=search_bt&sitekeyword="+$(".search input").val()+"&ActionType=Search"),window.location="/search?term="+$(".search input").val())}),$("[class*=accordion] > * > a").click(function(){return $(this).toggleClass("show"),$(this).next().toggleClass("show"),!1}),$("[class*=accordion] > * > a + * > a.close").click(function(){return $(this).parent().removeClass("show"),$(this).parent().prev().removeClass("show"),!1}),$(".mm_global_faqAccordion .question").click(function(){$(this).next().slideDown(80)}),$(".mm_global_faqAccordion .icon-remove").click(function(){$(this).parent().slideUp(80)}),$(".agree[type=checkbox]").click(function(){$(this).siblings(".submit").toggleClass("not-agreed")}),$(".m-gnav").click(function(){return $(".m-search, .mm_personalNav > div").removeClass("show"),$(this).toggleClass("show"),$("#globalNavigation").toggleClass("show"),!1}),$(function(){window.PIE&&$(".mm_homepage_carousel .detail .inner, .mm_global_prompt .detail").each(function(){PIE.attach(this)})}),i=$(".streamline .attribution"),n=$(".attributionProfile a",i),n&&$.trim(n.text())&&(n.text($.trim(n.text())),$(".attributionProfile").text("By ").append(n),r=$(".attributionSource a",i),r&&$.trim(r.text())&&(n.append(","),$(".attributionSource").text("").append(r).show()),i.show()),typeof ko!="undefined"&&(ko.bindingHandlers.decodeHtmlText={update:function(n,t){$(n).text($("<div/>").html(t()).text())}})});var globalSettings={deviceType:function(){var n=!1;return typeof Modernizr!="undefined"&&(n=Modernizr.touch||Modernizr.ie10touch),jQuery(window).width()<=500&&n?"SMARTPHONE":n?"TABLET":"DESKTOP"}};(function(){function u(n){throw n;}function s(n){return function(){return n}}function h(h){function gt(n,i,u,f,e){var o=[];return n=l.j(function(){var n=i(u,e)||[];0<o.length&&(l.a.Ya(k(o),n),f&&l.r.K(f,t,[u,n,e])),o.splice(0,o.length),l.a.P(o,n)},t,{W:n,Ka:function(){return 0==o.length||!l.a.X(o[0])}}),{M:o,j:n.pa()?n:r}}function k(n){for(;n.length&&!l.a.X(n[0]);)n.splice(0,1);if(1<n.length){for(var t=n[0],r=n[n.length-1],i=[t];t!==r;){if(t=t.nextSibling,!t)return;i.push(t)}Array.prototype.splice.apply(n,[0,n.length].concat(i))}return n}function ut(n,t,i,r,u){for(var o=Math.min,l=Math.max,s=[],a=n.length,f,h=t.length,c=h-a||1,w=a+h+1,v,p,b,y,e=0;e<=a;e++)for(p=v,s.push(v=[]),b=o(h,e+c),f=l(0,e-1);f<=b;f++)v[f]=f?e?n[e-1]===t[f-1]?p[f-1]:o(p[f]||w,v[f-1]||w)+1:f+1:e+1;for(o=[],l=[],c=[],e=a,f=h;e||f;)h=s[e][f]-1,f&&h===s[e][f-1]?l.push(o[o.length]={status:i,value:t[--f],index:f}):e&&h===s[e-1][f]?c.push(o[o.length]={status:r,value:n[--e],index:e}):(o.push({status:"retained",value:t[--f]}),--e);if(l.length&&c.length)for(n=10*a,t=i=0;(u||t<n)&&(y=l[i]);i++){for(r=0;s=c[r];r++)if(y.value===s.value){y.moved=s.index,s.moved=y.index,c.splice(r,1),t=r=0;break}t+=r}return o.reverse()}function ft(r,f,e,o,s){s=s||{};var h=r&&d(r),h=h&&h.ownerDocument,c=s.templateEngine||rt;l.za.vb(e,c,h),e=c.renderTemplate(e,o,s,h),("number"!=typeof e.length||0<e.length&&"number"!=typeof e[0].nodeType)&&u(Error("Template engine must return an array of DOM nodes")),h=i;switch(f){case"replaceChildren":l.e.N(r,e),h=n;break;case"replaceNode":l.a.Ya(r,e),h=n;break;case"ignoreTargetNode":break;default:u(Error("Unknown renderMode: "+f))}return h&&(et(e,o),s.afterRender&&l.r.K(s.afterRender,t,[e,o.$data])),e}function d(n){return n.nodeType?n:0<n.length?n[0]:t}function et(n,t){if(n.length){var i=n[0],r=n[n.length-1];ot(i,r,function(n){l.Da(t,n)}),ot(i,r,function(n){l.s.ib(n,[t])})}}function ot(n,t,i){var r;for(t=l.e.nextSibling(t);n&&(r=n)!==t;)n=l.e.nextSibling(r),(1===r.nodeType||8===r.nodeType)&&i(r)}function st(n,t,i){var o,f,r,e;for(n=l.g.aa(n),o=l.g.Q,f=0;f<n.length;f++)r=n[f].key,o.hasOwnProperty(r)&&(e=o[r],"function"==typeof e?(r=e(n[f].value))&&u(Error(r)):e||u(Error("This template engine does not support the '"+r+"' binding within its templates")));return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+l.g.ba(n)+" } })()})",i.createJavaScriptEvaluatorBlock(n)+t}function ht(n,i,f,e){function c(n){return function(){return o[n]}}function a(){return o}var s=0,o,h;return l.j(function(){var y=f&&f instanceof l.z?f:new l.z(l.a.d(f)),p=y.$data,t,v;if(e&&l.eb(n,y),o=("function"==typeof i?i(y,n):i)||l.J.instance.getBindings(n,y)){if(0===s){s=1;for(t in o)v=l.c[t],v&&8===n.nodeType&&!l.e.I[t]&&u(Error("The binding '"+t+"' cannot be used with virtual elements")),v&&"function"==typeof v.init&&(v=v.init(n,c(t),a,p,y))&&v.controlsDescendantBindings&&(h!==r&&u(Error("Multiple bindings ("+h+" and "+t+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.")),h=t);s=2}if(2===s)for(t in o)(v=l.c[t])&&"function"==typeof v.update&&v.update(n,c(t),a,p,y)}},t,{W:n}),{Nb:h===r}}function ct(i,r,u){var e=n,f=1===r.nodeType;f&&l.e.Ta(r),(f&&u||l.J.instance.nodeHasBindings(r))&&(e=ht(r,t,i,u).Nb),e&&lt(i,r,!f)}function lt(n,t,i){for(var r=l.e.firstChild(t);t=r;)r=l.e.nextSibling(t),ct(n,t,i)}function at(n,i){var r=vt(n,i);return r?0<r.length?r[r.length-1].nextSibling:n.nextSibling:t}function vt(n,i){for(var r=n,f=1,e=[];r=r.nextSibling;){if(p(r)&&(f--,0===f))return e;e.push(r),a(r)&&f++}return i||u(Error("Cannot find closing comment tag to match: "+n.nodeValue)),t}function p(n){return 8==n.nodeType&&(b?n.text:n.nodeValue).match(fi)}function a(n){return 8==n.nodeType&&(b?n.text:n.nodeValue).match(ui)}function g(n,i){for(var r=t;n!=r;)r=n,n=n.replace(ti,function(n,t){return i[t]});return n}function ni(){var n=[],t=[];this.save=function(i,r){var u=l.a.i(n,i);0<=u?t[u]=r:(n.push(i),t.push(r))},this.get=function(i){return i=l.a.i(n,i),0<=i?t[i]:r}}function yt(n,i,u){function s(t){var f=i(n[t]),o;switch(typeof f){case"boolean":case"number":case"string":case"function":e[t]=f;break;case"object":case"undefined":o=u.get(f),e[t]=o!==r?o:yt(f,i,u)}}var e,o,f;if(u=u||new ni,n=i(n),!("object"==typeof n&&n!==t&&n!==r&&!(n instanceof Date)))return n;if(e=n instanceof Array?[]:{},u.save(n,e),o=n,o instanceof Array){for(f=0;f<o.length;f++)s(f);"function"==typeof o.toJSON&&s("toJSON")}else for(f in o)s(f);return e}function pt(n,i){var r;if(n)if(8==n.nodeType)r=l.s.Ua(n.nodeValue),r!=t&&i.push({sb:n,Fb:r});else if(1==n.nodeType)for(var r=0,u=n.childNodes,f=u.length;r<f;r++)pt(u[r],i)}function nt(t,r,u,f){l.c[t]={init:function(t){return l.a.f.set(t,it,{}),{controlsDescendantBindings:n}},update:function(t,i,e,o,s){e=l.a.f.get(t,it),i=l.a.d(i()),o=!u!=!i;var h=!e.Za;(h||r||o!==e.qb)&&(h&&(e.Za=l.a.Ia(l.e.childNodes(t),n)),o?(h||l.e.N(t,l.a.Ia(e.Za)),l.Ea(f?f(s,i):s,t)):l.e.Y(t),e.qb=o)}},l.g.Q[t]=i,l.e.I[t]=n}function wt(n,i,r){r&&i!==l.k.q(n)&&l.k.T(n,i),i!==l.k.q(n)&&l.r.K(l.a.Ba,t,[n,"change"])}var l="undefined"!=typeof h?h:{},w,v,bt,y,tt,it,kt,dt,rt;l.b=function(n,t){for(var i=n.split("."),r=l,u=0;u<i.length-1;u++)r=r[i[u]];r[i[i.length-1]]=t},l.p=function(n,t,i){n[t]=i},l.version="2.2.1",l.b("version",l.version),l.a=new function(){function p(n,t){if("input"!==l.a.u(n)||!n.type||"click"!=t.toLowerCase())return i;var r=n.type;return"checkbox"==r||"radio"==r}var d=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,h={},w={},a,v,y,b,k,s;h[/Firefox\/2/i.test(c.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],h.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" ");for(a in h)if(v=h[a],v.length)for(y=0,b=v.length;y<b;y++)w[v[y]]=a;for(k={propertychange:n},h=3,a=e.createElement("div"),v=a.getElementsByTagName("i");a.innerHTML="<!--[if gt IE "+ ++h+"]><i><\/i><![endif]-->",v[0];);return s=4<h?h:r,{Na:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],o:function(n,t){for(var i=0,r=n.length;i<r;i++)t(n[i])},i:function(n,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(n,t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},lb:function(n,i,r){for(var u=0,f=n.length;u<f;u++)if(i.call(r,n[u]))return n[u];return t},ga:function(n,t){var i=l.a.i(n,t);0<=i&&n.splice(i,1)},Ga:function(n){n=n||[];for(var i=[],t=0,r=n.length;t<r;t++)0>l.a.i(i,n[t])&&i.push(n[t]);return i},V:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)r.push(t(n[i]));return r},fa:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;i<u;i++)t(n[i])&&r.push(n[i]);return r},P:function(n,t){if(t instanceof Array)n.push.apply(n,t);else for(var i=0,r=t.length;i<r;i++)n.push(t[i]);return n},extend:function(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n},ka:function(n){for(;n.firstChild;)l.removeNode(n.firstChild)},Hb:function(n){n=l.a.L(n);for(var i=e.createElement("div"),t=0,r=n.length;t<r;t++)i.appendChild(l.A(n[t]));return i},Ia:function(t,i){for(var u,r=0,e=t.length,f=[];r<e;r++)u=t[r].cloneNode(n),f.push(i?l.A(u):u);return f},N:function(n,t){if(l.a.ka(n),t)for(var i=0,r=t.length;i<r;i++)n.appendChild(t[i])},Ya:function(n,t){var r=n.nodeType?[n]:n;if(0<r.length){for(var f=r[0],e=f.parentNode,i=0,u=t.length;i<u;i++)e.insertBefore(t[i],f);for(i=0,u=r.length;i<u;i++)l.removeNode(r[i])}},bb:function(n,t){7>s?n.setAttribute("selected",t):n.selected=t},D:function(n){return(n||"").replace(d,"")},Rb:function(n,t){for(var r,u=[],f=(n||"").split(t),i=0,e=f.length;i<e;i++)r=l.a.D(f[i]),""!==r&&u.push(r);return u},Ob:function(n,t){return n=n||"",t.length>n.length?i:n.substring(0,t.length)===t},tb:function(r,u){if(u.compareDocumentPosition)return 16==(u.compareDocumentPosition(r)&16);for(;r!=t;){if(r==u)return n;r=r.parentNode}return i},X:function(n){return l.a.tb(n,n.ownerDocument)},u:function(n){return n&&n.tagName&&n.tagName.toLowerCase()},n:function(t,r,e){var o=s&&k[r],h;o||"undefined"==typeof f?!o&&"function"==typeof t.addEventListener?t.addEventListener(r,e,i):"undefined"!=typeof t.attachEvent?t.attachEvent("on"+r,function(n){e.call(t,n)}):u(Error("Browser doesn't support addEventListener or attachEvent")):(p(t,r)&&(h=e,e=function(t,i){var r=this.checked;i&&(this.checked=i.nb!==n),h.call(this,t),this.checked=r}),f(t).bind(r,e))},Ba:function(t,r){if(t&&t.nodeType||u(Error("element must be a DOM node when calling triggerEvent")),"undefined"!=typeof f){var s=[];p(t,r)&&s.push({nb:t.checked}),f(t).trigger(r,s)}else"function"==typeof e.createEvent?"function"==typeof t.dispatchEvent?(s=e.createEvent(w[r]||"HTMLEvents"),s.initEvent(r,n,n,o,0,0,0,0,0,i,i,i,i,0,t),t.dispatchEvent(s)):u(Error("The supplied element doesn't support dispatchEvent")):"undefined"!=typeof t.fireEvent?(p(t,r)&&(t.checked=t.checked!==n),t.fireEvent("on"+r)):u(Error("Browser doesn't support triggering events"))},d:function(n){return l.$(n)?n():n},ua:function(n){return l.$(n)?n.t():n},da:function(n,t,i){if(t){var u=/[\w-]+/g,r=n.className.match(u)||[];l.a.o(t.match(u),function(n){var t=l.a.i(r,n);0<=t?i||r.splice(t,1):i&&r.push(n)}),n.className=r.join(" ")}},cb:function(n,i){var u=l.a.d(i),f;(u===t||u===r)&&(u=""),3===n.nodeType?n.data=u:(f=l.e.firstChild(n),!f||3!=f.nodeType||l.e.nextSibling(f)?l.e.N(n,[e.createTextNode(u)]):f.data=u,l.a.wb(n))},ab:function(n,t){if(n.name=t,7>=s)try{n.mergeAttributes(e.createElement("<input name='"+n.name+"'/>"),i)}catch(r){}},wb:function(n){9<=s&&(n=1==n.nodeType?n:n.parentNode,n.style&&(n.style.zoom=n.style.zoom))},ub:function(n){if(9<=s){var t=n.style.width;n.style.width=0,n.style.width=t}},Lb:function(n,t){n=l.a.d(n),t=l.a.d(t);for(var r=[],i=n;i<=t;i++)r.push(i);return r},L:function(n){for(var i=[],t=0,r=n.length;t<r;t++)i.push(n[t]);return i},Pb:6===s,Qb:7===s,Z:s,Oa:function(n,t){for(var r=l.a.L(n.getElementsByTagName("input")).concat(l.a.L(n.getElementsByTagName("textarea"))),f="string"==typeof t?function(n){return n.name===t}:function(n){return t.test(n.name)},u=[],i=r.length-1;0<=i;i--)f(r[i])&&u.push(r[i]);return u},Ib:function(n){return"string"==typeof n&&(n=l.a.D(n))?o.JSON&&o.JSON.parse?o.JSON.parse(n):new Function("return "+n)():t},xa:function(n,t,i){return("undefined"==typeof JSON||"undefined"==typeof JSON.stringify)&&u(Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js")),JSON.stringify(l.a.d(n),t,i)},Jb:function(n,t,i){var a,o,s,f,r,u;i=i||{};var h=i.params||{},c=i.includeFields||this.Na,a=n;if("object"==typeof n&&"form"===l.a.u(n))for(a=n.action,o=c.length-1;0<=o;o--)for(s=l.a.Oa(n,c[o]),f=s.length-1;0<=f;f--)h[s[f].name]=s[f].value;t=l.a.d(t),r=e.createElement("form"),r.style.display="none",r.action=a,r.method="post";for(u in t)n=e.createElement("input"),n.name=u,n.value=l.a.xa(l.a.d(t[u])),r.appendChild(n);for(u in h)n=e.createElement("input"),n.name=u,n.value=h[u],r.appendChild(n);e.body.appendChild(r),i.submitter?i.submitter(r):r.submit(),setTimeout(function(){r.parentNode.removeChild(r)},0)}}},l.b("utils",l.a),l.b("utils.arrayForEach",l.a.o),l.b("utils.arrayFirst",l.a.lb),l.b("utils.arrayFilter",l.a.fa),l.b("utils.arrayGetDistinctValues",l.a.Ga),l.b("utils.arrayIndexOf",l.a.i),l.b("utils.arrayMap",l.a.V),l.b("utils.arrayPushAll",l.a.P),l.b("utils.arrayRemoveItem",l.a.ga),l.b("utils.extend",l.a.extend),l.b("utils.fieldsIncludedWithJsonPost",l.a.Na),l.b("utils.getFormFields",l.a.Oa),l.b("utils.peekObservable",l.a.ua),l.b("utils.postJson",l.a.Jb),l.b("utils.parseJson",l.a.Ib),l.b("utils.registerEventHandler",l.a.n),l.b("utils.stringifyJson",l.a.xa),l.b("utils.range",l.a.Lb),l.b("utils.toggleDomNodeCssClass",l.a.da),l.b("utils.triggerEvent",l.a.Ba),l.b("utils.unwrapObservable",l.a.d),Function.prototype.bind||(Function.prototype.bind=function(n){var i=this,t=Array.prototype.slice.call(arguments);return n=t.shift(),function(){return i.apply(n,t.concat(Array.prototype.slice.call(arguments)))}}),l.a.f=new function(){var e=0,u="__ko__"+ +new Date,f={};return{get:function(n,t){var u=l.a.f.la(n,i);return u===r?r:u[t]},set:function(t,u,f){f===r&&l.a.f.la(t,i)===r||(l.a.f.la(t,n)[u]=f)},la:function(n,t){var i=n[u];if(!i||!("null"!==i&&f[i])){if(!t)return r;i=n[u]="ko"+e++,f[i]={}}return f[i]},clear:function(r){var e=r[u];return e?(delete f[e],r[u]=t,n):i}}},l.b("utils.domData",l.a.f),l.b("utils.domData.clear",l.a.f.clear),l.a.F=new function(){function t(n,t){var i=l.a.f.get(n,o);return i===r&&t&&(i=[],l.a.f.set(n,o,i)),i}function e(n){var r=t(n,i),u;if(r)for(r=r.slice(0),u=0;u<r.length;u++)r[u](n);if(l.a.f.clear(n),"function"==typeof f&&"function"==typeof f.cleanData&&f.cleanData([n]),s[n.nodeType])for(r=n.firstChild;n=r;)r=n.nextSibling,8===n.nodeType&&e(n)}var o="__ko_domNodeDisposal__"+ +new Date,h={1:n,8:n,9:n},s={1:n,9:n};return{Ca:function(i,r){"function"!=typeof r&&u(Error("Callback must be a function")),t(i,n).push(r)},Xa:function(n,u){var f=t(n,i);f&&(l.a.ga(f,u),0==f.length&&l.a.f.set(n,o,r))},A:function(n){var t,i,r;if(h[n.nodeType]&&(e(n),s[n.nodeType]))for(t=[],l.a.P(t,n.getElementsByTagName("*")),i=0,r=t.length;i<r;i++)e(t[i]);return n},removeNode:function(n){l.A(n),n.parentNode&&n.parentNode.removeChild(n)}}},l.A=l.a.F.A,l.removeNode=l.a.F.removeNode,l.b("cleanNode",l.A),l.b("removeNode",l.removeNode),l.b("utils.domNodeDisposal",l.a.F),l.b("utils.domNodeDisposal.addDisposeCallback",l.a.F.Ca),l.b("utils.domNodeDisposal.removeDisposeCallback",l.a.F.Xa),l.a.ta=function(n){var t,i;if("undefined"!=typeof f){if(f.parseHTML)t=f.parseHTML(n);else if((t=f.clean([n]))&&t[0]){for(n=t[0];n.parentNode&&11!==n.parentNode.nodeType;)n=n.parentNode;n.parentNode&&n.parentNode.removeChild(n)}}else{for(i=l.a.D(n).toLowerCase(),t=e.createElement("div"),i=i.match(/^<(thead|tbody|tfoot)/)&&[1,"<table>","<\/table>"]||!i.indexOf("<tr")&&[2,"<table><tbody>","<\/tbody><\/table>"]||(!i.indexOf("<td")||!i.indexOf("<th"))&&[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"]||[0,"",""],n="ignored<div>"+i[1]+n+i[2]+"<\/div>","function"==typeof o.innerShiv?t.appendChild(o.innerShiv(n)):t.innerHTML=n;i[0]--;)t=t.lastChild;t=l.a.L(t.lastChild.childNodes)}return t},l.a.ca=function(n,i){if(l.a.ka(n),i=l.a.d(i),i!==t&&i!==r)if("string"!=typeof i&&(i=i.toString()),"undefined"!=typeof f)f(n).html(i);else for(var e=l.a.ta(i),u=0;u<e.length;u++)n.appendChild(e[u])},l.b("utils.parseHtmlFragment",l.a.ta),l.b("utils.setHtml",l.a.ca),w={},l.s={ra:function(n){"function"!=typeof n&&u(Error("You can only pass a function to ko.memoization.memoize()"));var t=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return w[t]=n,"<!--[ko_memo:"+t+"]-->"},hb:function(i,f){var e=w[i];e===r&&u(Error("Couldn't find any memo with ID "+i+". Perhaps it's already been unmemoized."));try{return e.apply(t,f||[]),n}finally{delete w[i]}},ib:function(n,t){var u=[],r,e,i,f;for(pt(n,u),r=0,e=u.length;r<e;r++)i=u[r].sb,f=[i],t&&l.a.P(f,t),l.s.hb(u[r].Fb,f),i.nodeValue="",i.parentNode&&i.parentNode.removeChild(i)},Ua:function(n){return(n=n.match(/^\[ko_memo\:(.*?)\]$/))?n[1]:t}},l.b("memoization",l.s),l.b("memoization.memoize",l.s.ra),l.b("memoization.unmemoize",l.s.hb),l.b("memoization.parseMemoText",l.s.Ua),l.b("memoization.unmemoizeDomNodeAndDescendants",l.s.ib),l.Ma={throttle:function(n,i){n.throttleEvaluation=i;var r=t;return l.j({read:n,write:function(t){clearTimeout(r),r=setTimeout(function(){n(t)},i)}})},notify:function(n,t){return n.equalityComparer="always"==t?s(i):l.m.fn.equalityComparer,n}},l.b("extenders",l.Ma),l.fb=function(n,t,i){this.target=n,this.ha=t,this.rb=i,l.p(this,"dispose",this.B)},l.fb.prototype.B=function(){this.Cb=n,this.rb()},l.S=function(){this.w={},l.a.extend(this,l.S.fn),l.p(this,"subscribe",this.ya),l.p(this,"extend",this.extend),l.p(this,"getSubscriptionsCount",this.yb)},l.S.fn={ya:function(n,t,i){i=i||"change";var r=new l.fb(this,t?n.bind(t):n,function(){l.a.ga(this.w[i],r)}.bind(this));return this.w[i]||(this.w[i]=[]),this.w[i].push(r),r},notifySubscribers:function(t,i){i=i||"change",this.w[i]&&l.r.K(function(){l.a.o(this.w[i].slice(0),function(i){i&&i.Cb!==n&&i.ha(t)})},this)},yb:function(){var t=0,n;for(n in this.w)this.w.hasOwnProperty(n)&&(t+=this.w[n].length);return t},extend:function(n){var t=this,i,r;if(n)for(i in n)r=l.Ma[i],"function"==typeof r&&(t=r(t,n[i]));return t}},l.Qa=function(n){return"function"==typeof n.ya&&"function"==typeof n.notifySubscribers},l.b("subscribable",l.S),l.b("isSubscribable",l.Qa),v=[],l.r={mb:function(n){v.push({ha:n,La:[]})},end:function(){v.pop()},Wa:function(n){if(l.Qa(n)||u(Error("Only subscribable things can act as dependencies")),0<v.length){var t=v[v.length-1];!t||0<=l.a.i(t.La,n)||(t.La.push(n),t.ha(n))}},K:function(n,i,r){try{return v.push(t),n.apply(i,r||[])}finally{v.pop()}}},bt={undefined:n,boolean:n,number:n,string:n},l.m=function(n){function t(){return 0<arguments.length?(t.equalityComparer&&t.equalityComparer(i,arguments[0])||(t.H(),i=arguments[0],t.G()),this):(l.r.Wa(t),i)}var i=n;return l.S.call(t),t.t=function(){return i},t.G=function(){t.notifySubscribers(i)},t.H=function(){t.notifySubscribers(i,"beforeChange")},l.a.extend(t,l.m.fn),l.p(t,"peek",t.t),l.p(t,"valueHasMutated",t.G),l.p(t,"valueWillMutate",t.H),t},l.m.fn={equalityComparer:function(n,r){return n===t||typeof n in bt?n===r:i}},y=l.m.Kb="__ko_proto__",l.m.fn[y]=l.m,l.ma=function(u,f){return u===t||u===r||u[y]===r?i:u[y]===f?n:l.ma(u[y],f)},l.$=function(n){return l.ma(n,l.m)},l.Ra=function(t){return"function"==typeof t&&t[y]===l.m||"function"==typeof t&&t[y]===l.j&&t.zb?n:i},l.b("observable",l.m),l.b("isObservable",l.$),l.b("isWriteableObservable",l.Ra),l.R=function(n){0==arguments.length&&(n=[]),n===t||n===r||"length"in n||u(Error("The argument passed when initializing an observable array must be an array, or null, or undefined."));var i=l.m(n);return l.a.extend(i,l.R.fn),i},l.R.fn={remove:function(n){for(var u,r=this.t(),i=[],f="function"==typeof n?n:function(t){return t===n},t=0;t<r.length;t++)u=r[t],f(u)&&(0===i.length&&this.H(),i.push(u),r.splice(t,1),t--);return i.length&&this.G(),i},removeAll:function(n){if(n===r){var t=this.t(),i=t.slice(0);return this.H(),t.splice(0,t.length),this.G(),i}return n?this.remove(function(t){return 0<=l.a.i(n,t)}):[]},destroy:function(t){var r=this.t(),u="function"==typeof t?t:function(n){return n===t},i;for(this.H(),i=r.length-1;0<=i;i--)u(r[i])&&(r[i]._destroy=n);this.G()},destroyAll:function(t){return t===r?this.destroy(s(n)):t?this.destroy(function(n){return 0<=l.a.i(t,n)}):[]},indexOf:function(n){var t=this();return l.a.i(t,n)},replace:function(n,t){var i=this.indexOf(n);0<=i&&(this.H(),this.t()[i]=t,this.G())}},l.a.o("pop push reverse shift sort splice unshift".split(" "),function(n){l.R.fn[n]=function(){var t=this.t();return this.H(),t=t[n].apply(t,arguments),this.G(),t}}),l.a.o(["slice"],function(n){l.R.fn[n]=function(){var t=this();return t[n].apply(t,arguments)}}),l.b("observableArray",l.R),l.j=function(f,e,o){function g(){l.a.o(a,function(n){n.B()}),a=[]}function ut(){var n=h.throttleEvaluation;n&&0<=n?(clearTimeout(it),it=setTimeout(v,n)):v()}function v(){var t,f,u;if(!k)if(p&&d())w();else{k=n;try{for(t=l.a.V(a,function(n){return n.target}),l.r.mb(function(n){var i;0<=(i=l.a.i(t,n))?t[i]=r:a.push(n.ya(ut))}),f=c.call(e),u=t.length-1;0<=u;u--)t[u]&&a.splice(u,1)[0].B();p=n,h.notifySubscribers(y,"beforeChange"),y=f}finally{l.r.end()}h.notifySubscribers(y),k=i,a.length||w()}}function h(){return 0<arguments.length?("function"==typeof tt?tt.apply(e,arguments):u(Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.")),this):(p||v(),l.r.Wa(h),y)}function nt(){return!p||0<a.length}var y,p=i,k=i,c=f,rt,d;c&&"object"==typeof c?(o=c,c=o.read):(o=o||{},c||(c=o.read)),"function"!=typeof c&&u(Error("Pass a function that returns the value of the ko.computed"));var tt=o.write,b=o.disposeWhenNodeIsRemoved||o.W||t,d=o.disposeWhen||o.Ka||s(i),w=g,a=[],it=t;return e||(e=o.owner),h.t=function(){return p||v(),y},h.xb=function(){return a.length},h.zb="function"==typeof o.write,h.B=function(){w()},h.pa=nt,l.S.call(h),l.a.extend(h,l.j.fn),l.p(h,"peek",h.t),l.p(h,"dispose",h.B),l.p(h,"isActive",h.pa),l.p(h,"getDependenciesCount",h.xb),o.deferEvaluation!==n&&v(),b&&nt()&&(w=function(){l.a.F.Xa(b,arguments.callee),g()},l.a.F.Ca(b,w),rt=d,d=function(){return!l.a.X(b)||rt()}),h},l.Bb=function(n){return l.ma(n,l.j)},h=l.m.Kb,l.j[h]=l.m,l.j.fn={},l.j.fn[h]=l.j,l.b("dependentObservable",l.j),l.b("computed",l.j),l.b("isComputed",l.Bb),l.gb=function(n){return 0==arguments.length&&u(Error("When calling ko.toJS, pass the object you want to convert.")),yt(n,function(n){for(var t=0;l.$(n)&&10>t;t++)n=n();return n})},l.toJSON=function(n,t,i){return n=l.gb(n),l.a.xa(n,t,i)},l.b("toJS",l.gb),l.b("toJSON",l.toJSON),l.k={q:function(t){switch(l.a.u(t)){case"option":return t.__ko__hasDomDataOptionValue__===n?l.a.f.get(t,l.c.options.sa):7>=l.a.Z?t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?l.k.q(t.options[t.selectedIndex]):r;default:return t.value}},T:function(i,u){switch(l.a.u(i)){case"option":switch(typeof u){case"string":l.a.f.set(i,l.c.options.sa,r),"__ko__hasDomDataOptionValue__"in i&&delete i.__ko__hasDomDataOptionValue__,i.value=u;break;default:l.a.f.set(i,l.c.options.sa,u),i.__ko__hasDomDataOptionValue__=n,i.value="number"==typeof u?u:""}break;case"select":for(var f=i.options.length-1;0<=f;f--)if(l.k.q(i.options[f])==u){i.selectedIndex=f;break}break;default:(u===t||u===r)&&(u=""),i.value=u}}},l.b("selectExtensions",l.k),l.b("selectExtensions.readValue",l.k.q),l.b("selectExtensions.writeValue",l.k.T);var ti=/\@ko_token_(\d+)\@/g,ii=["true","false"],ri=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i;l.g={Q:[],aa:function(n){var i=l.a.D(n),f,e,r,u;if(3>i.length)return[];for("{"===i.charAt(0)&&(i=i.substring(1,i.length-1)),n=[],f=t,r=0;r<i.length;r++)if(u=i.charAt(r),f===t)switch(u){case'"':case"'":case"/":f=r,e=u}else if(u==e&&"\\"!==i.charAt(r-1)){u=i.substring(f,r+1),n.push(u);var h="@ko_token_"+(n.length-1)+"@",i=i.substring(0,f)+h+i.substring(r+1),r=r-(u.length-h.length),f=t}e=f=t;for(var o=0,s=t,r=0;r<i.length;r++){if(u=i.charAt(r),f===t)switch(u){case"{":f=r,s=u,e="}";break;case"(":f=r,s=u,e=")";break;case"[":f=r,s=u,e="]"}u===s?o++:u===e&&(o--,0===o&&(u=i.substring(f,r+1),n.push(u),h="@ko_token_"+(n.length-1)+"@",i=i.substring(0,f)+h+i.substring(r+1),r-=u.length-h.length,f=t))}for(e=[],i=i.split(","),f=0,r=i.length;f<r;f++)o=i[f],s=o.indexOf(":"),0<s&&s<o.length-1?(u=o.substring(s+1),e.push({key:g(o.substring(0,s),n),value:g(u,n)})):e.push({unknown:g(o,n)});return e},ba:function(n){var e="string"==typeof n?l.g.aa(n):n,f=[],r,s,o,u;for(n=[],s=0;r=e[s];s++)if(0<f.length&&f.push(","),r.key){n:{o=r.key,u=l.a.D(o);switch(u.length&&u.charAt(0)){case"'":case'"':break n;default:o="'"+u+"'"}}r=r.value,f.push(o),f.push(":"),f.push(r),r=l.a.D(r),0<=l.a.i(ii,l.a.D(r).toLowerCase())?r=i:(u=r.match(ri),r=u===t?i:u[1]?"Object("+u[1]+")"+u[2]:r),r&&(0<n.length&&n.push(", "),n.push(o+" : function(__ko_value) { "+r+" = __ko_value; }"))}else r.unknown&&f.push(r.unknown);return e=f.join(""),0<n.length&&(e=e+", '_ko_property_writers' : { "+n.join("")+" } "),e},Eb:function(t,r){for(var u=0;u<t.length;u++)if(l.a.D(t[u].key)==r)return n;return i},ea:function(n,t,i,r,u){n&&l.Ra(n)?u&&n.t()===r||n(r):(n=t()._ko_property_writers)&&n[i]&&n[i](r)}},l.b("expressionRewriting",l.g),l.b("expressionRewriting.bindingRewriteValidators",l.g.Q),l.b("expressionRewriting.parseObjectLiteral",l.g.aa),l.b("expressionRewriting.preProcessBindings",l.g.ba),l.b("jsonExpressionRewriting",l.g),l.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",l.g.ba);var b="<!--test-->"===e.createComment("test").text,ui=b?/^\x3c!--\s*ko(?:\s+(.+\s*\:[\s\S]*))?\s*--\x3e$/:/^\s*ko(?:\s+(.+\s*\:[\s\S]*))?\s*$/,fi=b?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,ei={ul:n,ol:n};l.e={I:{},childNodes:function(n){return a(n)?vt(n):n.childNodes},Y:function(n){if(a(n)){n=l.e.childNodes(n);for(var t=0,i=n.length;t<i;t++)l.removeNode(n[t])}else l.a.ka(n)},N:function(n,t){if(a(n)){l.e.Y(n);for(var r=n.nextSibling,i=0,u=t.length;i<u;i++)r.parentNode.insertBefore(t[i],r)}else l.a.N(n,t)},Va:function(n,t){a(n)?n.parentNode.insertBefore(t,n.nextSibling):n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t)},Pa:function(n,t,i){i?a(n)?n.parentNode.insertBefore(t,i.nextSibling):i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):l.e.Va(n,t)},firstChild:function(n){return a(n)?!n.nextSibling||p(n.nextSibling)?t:n.nextSibling:n.firstChild},nextSibling:function(n){return a(n)&&(n=at(n)),n.nextSibling&&p(n.nextSibling)?t:n.nextSibling},jb:function(n){return(n=a(n))?n[1]:t},Ta:function(i){var e,r,u,f;if(ei[l.a.u(i)]&&(e=i.firstChild,e))do if(1===e.nodeType){if(r=e.firstChild,u=t,r)do u?u.push(r):a(r)?(f=at(r,n),f?r=f:u=[r]):p(r)&&(u=[r]);while(r=r.nextSibling);if(r=u)for(u=e.nextSibling,f=0;f<r.length;f++)u?i.insertBefore(r[f],u):i.appendChild(r[f])}while(e=e.nextSibling)}},l.b("virtualElements",l.e),l.b("virtualElements.allowedBindings",l.e.I),l.b("virtualElements.emptyNode",l.e.Y),l.b("virtualElements.insertAfter",l.e.Pa),l.b("virtualElements.prepend",l.e.Va),l.b("virtualElements.setDomNodeChildren",l.e.N),l.J=function(){this.Ha={}},l.a.extend(l.J.prototype,{nodeHasBindings:function(n){switch(n.nodeType){case 1:return n.getAttribute("data-bind")!=t;case 8:return l.e.jb(n)!=t;default:return i}},getBindings:function(n,i){var r=this.getBindingsString(n,i);return r?this.parseBindingsString(r,i,n):t},getBindingsString:function(n){switch(n.nodeType){case 1:return n.getAttribute("data-bind");case 8:return l.e.jb(n);default:return t}},parseBindingsString:function(n,t,i){var r,f,e,o;try{return(r=this.Ha[n])||(f=this.Ha,o="with($context){with($data||{}){return{"+l.g.ba(n)+"}}}",e=new Function("$context","$element",o),r=f[n]=e),r(t,i)}catch(s){u(Error("Unable to parse bindings.\nMessage: "+s+";\nBindings value: "+n))}}}),l.J.instance=new l.J,l.b("bindingProvider",l.J),l.c={},l.z=function(n,t,i){t?(l.a.extend(this,t),this.$parentContext=t,this.$parent=t.$data,this.$parents=(t.$parents||[]).slice(0),this.$parents.unshift(this.$parent)):(this.$parents=[],this.$root=n,this.ko=l),this.$data=n,i&&(this[i]=n)},l.z.prototype.createChildContext=function(n,t){return new l.z(n,this,t)},l.z.prototype.extend=function(n){var t=l.a.extend(new l.z,this);return l.a.extend(t,n)},l.eb=function(n,t){if(2==arguments.length)l.a.f.set(n,"__ko_bindingContext__",t);else return l.a.f.get(n,"__ko_bindingContext__")},l.Fa=function(t,i,r){return 1===t.nodeType&&l.e.Ta(t),ht(t,i,r,n)},l.Ea=function(t,i){(1===i.nodeType||8===i.nodeType)&&lt(t,i,n)},l.Da=function(t,i){i&&1!==i.nodeType&&8!==i.nodeType&&u(Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node")),i=i||o.document.body,ct(t,i,n)},l.ja=function(n){switch(n.nodeType){case 1:case 8:var t=l.eb(n);if(t)return t;if(n.parentNode)return l.ja(n.parentNode)}return r},l.pb=function(n){return(n=l.ja(n))?n.$data:r},l.b("bindingHandlers",l.c),l.b("applyBindings",l.Da),l.b("applyBindingsToDescendants",l.Ea),l.b("applyBindingsToNode",l.Fa),l.b("contextFor",l.ja),l.b("dataFor",l.pb),tt={"class":"className","for":"htmlFor"},l.c.attr={update:function(n,u){var s=l.a.d(u())||{},f,e,o;for(f in s)"string"==typeof f&&(e=l.a.d(s[f]),o=e===i||e===t||e===r,o&&n.removeAttribute(f),8>=l.a.Z&&f in tt?(f=tt[f],o?n.removeAttribute(f):n[f]=e):o||n.setAttribute(f,e.toString()),"name"===f&&l.a.ab(n,o?"":e.toString()))}},l.c.checked={init:function(t,i,r){l.a.n(t,"click",function(){var u,f,e;if("checkbox"==t.type)u=t.checked;else if("radio"==t.type&&t.checked)u=t.value;else return;f=i(),e=l.a.d(f),"checkbox"==t.type&&e instanceof Array?(u=l.a.i(e,t.value),t.checked&&0>u?f.push(t.value):!t.checked&&0<=u&&f.splice(u,1)):l.g.ea(f,r,"checked",u,n)}),"radio"!=t.type||t.name||l.c.uniqueName.init(t,s(n))},update:function(n,t){var i=l.a.d(t());"checkbox"==n.type?n.checked=i instanceof Array?0<=l.a.i(i,n.value):i:"radio"==n.type&&(n.checked=n.value==i)}},l.c.css={update:function(t,r){var u=l.a.d(r()),f,e;if("object"==typeof u)for(f in u)e=l.a.d(u[f]),l.a.da(t,f,e);else u=String(u||""),l.a.da(t,t.__ko__cssValue,i),t.__ko__cssValue=u,l.a.da(t,u,n)}},l.c.enable={update:function(t,i){var r=l.a.d(i());r&&t.disabled?t.removeAttribute("disabled"):!r&&!t.disabled&&(t.disabled=n)}},l.c.disable={update:function(n,t){l.c.enable.update(n,function(){return!l.a.d(t())})}},l.c.event={init:function(t,r,u,f){var o=r()||{},e;for(e in o)(function(){var o=e;"string"==typeof o&&l.a.n(t,o,function(t){var s,h=r()[o],c,e;if(h){c=u();try{e=l.a.L(arguments),e.unshift(f),s=h.apply(f,e)}finally{s!==n&&(t.preventDefault?t.preventDefault():t.returnValue=i)}c[o+"Bubble"]===i&&(t.cancelBubble=n,t.stopPropagation&&t.stopPropagation())}})})()}},l.c.foreach={Sa:function(n){return function(){var i=n(),t=l.a.ua(i);return!t||"number"==typeof t.length?{foreach:i,templateEngine:l.C.oa}:(l.a.d(i),{foreach:t.data,as:t.as,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:l.C.oa})}},init:function(n,t){return l.c.template.init(n,l.c.foreach.Sa(t))},update:function(n,t,i,r,u){return l.c.template.update(n,l.c.foreach.Sa(t),i,r,u)}},l.g.Q.foreach=i,l.e.I.foreach=n,l.c.hasfocus={init:function(r,u,f){function e(t){r.__ko_hasfocusUpdating=n;var e=r.ownerDocument;"activeElement"in e&&(t=e.activeElement===r),e=u(),l.g.ea(e,f,"hasfocus",t,n),r.__ko_hasfocusUpdating=i}var o=e.bind(t,n),s=e.bind(t,i);l.a.n(r,"focus",o),l.a.n(r,"focusin",o),l.a.n(r,"blur",s),l.a.n(r,"focusout",s)},update:function(n,i){var r=l.a.d(i());n.__ko_hasfocusUpdating||(r?n.focus():n.blur(),l.r.K(l.a.Ba,t,[n,r?"focusin":"focusout"]))}},l.c.html={init:function(){return{controlsDescendantBindings:n}},update:function(n,t){l.a.ca(n,t())}},it="__ko_withIfBindingData",nt("if"),nt("ifnot",i,n),nt("with",n,i,function(n,t){return n.createChildContext(t)}),l.c.options={update:function(t,i,f){var c,h,a,s;"select"!==l.a.u(t)&&u(Error("options binding applies only to SELECT elements"));for(var p=0==t.length,w=l.a.V(l.a.fa(t.childNodes,function(n){return n.tagName&&"option"===l.a.u(n)&&n.selected}),function(n){return l.k.q(n)||n.innerText||n.textContent}),b=t.scrollTop,o=l.a.d(i());0<t.length;)l.A(t.options[0]),t.remove(0);if(o){for(f=f(),c=f.optionsIncludeDestroyed,"number"!=typeof o.length&&(o=[o]),f.optionsCaption&&(h=e.createElement("option"),l.a.ca(h,f.optionsCaption),l.k.T(h,r),t.appendChild(h)),i=0,a=o.length;i<a;i++)if(s=o[i],!s||!s._destroy||c){var h=e.createElement("option"),v=function(n,t,i){var r=typeof t;return"function"==r?t(n):"string"==r?n[t]:i},y=v(s,f.optionsValue,s);l.k.T(h,l.a.d(y)),s=v(s,f.optionsText,y),l.a.cb(h,s),t.appendChild(h)}for(o=t.getElementsByTagName("option"),i=c=0,a=o.length;i<a;i++)0<=l.a.i(w,l.k.q(o[i]))&&(l.a.bb(o[i],n),c++);t.scrollTop=b,p&&"value"in f&&wt(t,l.a.ua(f.value),n),l.a.ub(t)}}},l.c.options.sa="__ko.optionValueDomData__",l.c.selectedOptions={init:function(n,t,i){l.a.n(n,"change",function(){var u=t(),r=[];l.a.o(n.getElementsByTagName("option"),function(n){n.selected&&r.push(l.k.q(n))}),l.g.ea(u,i,"value",r)})},update:function(n,t){"select"!=l.a.u(n)&&u(Error("values binding applies only to SELECT elements"));var i=l.a.d(t());i&&"number"==typeof i.length&&l.a.o(n.getElementsByTagName("option"),function(n){var t=0<=l.a.i(i,l.k.q(n));l.a.bb(n,t)})}},l.c.style={update:function(n,t){var r=l.a.d(t()||{}),i,u;for(i in r)"string"==typeof i&&(u=l.a.d(r[i]),n.style[i]=u||"")}},l.c.submit={init:function(t,r,f,e){"function"!=typeof r()&&u(Error("The value for a submit binding must be a function")),l.a.n(t,"submit",function(u){var f,o=r();try{f=o.call(e,t)}finally{f!==n&&(u.preventDefault?u.preventDefault():u.returnValue=i)}})}},l.c.text={update:function(n,t){l.a.cb(n,t())}},l.e.I.text=n,l.c.uniqueName={init:function(n,t){if(t()){var i="ko_unique_"+ ++l.c.uniqueName.ob;l.a.ab(n,i)}}},l.c.uniqueName.ob=0,l.c.value={init:function(t,r,u){function o(){s=i;var n=r(),f=l.k.q(t);l.g.ea(n,u,"value",f)}var f=["change"],e=u().valueUpdate,s=i;e&&("string"==typeof e&&(e=[e]),l.a.P(f,e),f=l.a.Ga(f)),l.a.Z&&"input"==t.tagName.toLowerCase()&&"text"==t.type&&"off"!=t.autocomplete&&(!t.form||"off"!=t.form.autocomplete)&&-1==l.a.i(f,"propertychange")&&(l.a.n(t,"propertychange",function(){s=n}),l.a.n(t,"blur",function(){s&&o()})),l.a.o(f,function(n){var i=o;l.a.Ob(n,"after")&&(i=function(){setTimeout(o,0)},n=n.substring(5)),l.a.n(t,n,i)})},update:function(t,r){var e="select"===l.a.u(t),f=l.a.d(r()),u=l.k.q(t),o=f!=u;0===f&&0!==u&&"0"!==u&&(o=n),o&&(u=function(){l.k.T(t,f)},u(),e&&setTimeout(u,0)),e&&0<t.length&&wt(t,f,i)}},l.c.visible={update:function(n,t){var i=l.a.d(t()),r="none"!=n.style.display;i&&!r?n.style.display="":!i&&r&&(n.style.display="none")}},l.c.click={init:function(n,t,i,r){return l.c.event.init.call(this,n,function(){var n={};return n.click=t(),n},i,r)}},l.v=function(){},l.v.prototype.renderTemplateSource=function(){u(Error("Override renderTemplateSource"))},l.v.prototype.createJavaScriptEvaluatorBlock=function(){u(Error("Override createJavaScriptEvaluatorBlock"))},l.v.prototype.makeTemplateSource=function(n,t){if("string"==typeof n){t=t||e;var i=t.getElementById(n);return i||u(Error("Cannot find template with ID "+n)),new l.l.h(i)}if(1==n.nodeType||8==n.nodeType)return new l.l.O(n);u(Error("Unknown template type: "+n))},l.v.prototype.renderTemplate=function(n,t,i,r){return n=this.makeTemplateSource(n,r),this.renderTemplateSource(n,t,i)},l.v.prototype.isTemplateRewritten=function(t,r){return this.allowTemplateRewriting===i?n:this.makeTemplateSource(t,r).data("isRewritten")},l.v.prototype.rewriteTemplate=function(t,i,r){t=this.makeTemplateSource(t,r),i=i(t.text()),t.text(i),t.data("isRewritten",n)},l.b("templateEngine",l.v),kt=/(<[a-z]+\d*(\s+(?!data-bind=)[a-z0-9\-]+(=(\"[^\"]*\"|\'[^\']*\'))?)*\s+)data-bind=(["'])([\s\S]*?)\5/gi,dt=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g,l.za={vb:function(n,t,i){t.isTemplateRewritten(n,i)||t.rewriteTemplate(n,function(n){return l.za.Gb(n,t)},i)},Gb:function(n,t){return n.replace(kt,function(n,i,r,u,f,e,o){return st(o,i,t)}).replace(dt,function(n,i){return st(i,"<!-- ko -->",t)})},kb:function(n){return l.s.ra(function(t,i){t.nextSibling&&l.Fa(t.nextSibling,n,i)})}},l.b("__tr_ambtns",l.za.kb),l.l={},l.l.h=function(n){this.h=n},l.l.h.prototype.text=function(){var n=l.a.u(this.h),n="script"===n?"text":"textarea"===n?"value":"innerHTML",t;if(0==arguments.length)return this.h[n];t=arguments[0],"innerHTML"===n?l.a.ca(this.h,t):this.h[n]=t},l.l.h.prototype.data=function(n){if(1===arguments.length)return l.a.f.get(this.h,"templateSourceData_"+n);l.a.f.set(this.h,"templateSourceData_"+n,arguments[1])},l.l.O=function(n){this.h=n},l.l.O.prototype=new l.l.h,l.l.O.prototype.text=function(){if(0==arguments.length){var n=l.a.f.get(this.h,"__ko_anon_template__")||{};return n.Aa===r&&n.ia&&(n.Aa=n.ia.innerHTML),n.Aa}l.a.f.set(this.h,"__ko_anon_template__",{Aa:arguments[0]})},l.l.h.prototype.nodes=function(){if(0==arguments.length)return(l.a.f.get(this.h,"__ko_anon_template__")||{}).ia;l.a.f.set(this.h,"__ko_anon_template__",{ia:arguments[0]})},l.b("templateSources",l.l),l.b("templateSources.domElement",l.l.h),l.b("templateSources.anonymousTemplate",l.l.O),l.wa=function(n){n==r||n instanceof l.v||u(Error("templateEngine must inherit from ko.templateEngine")),rt=n},l.va=function(n,i,f,e,o){if(f=f||{},(f.templateEngine||rt)==r&&u(Error("Set a template engine before calling renderTemplate")),o=o||"replaceChildren",e){var s=d(e);return l.j(function(){var t=i&&i instanceof l.z?i:new l.z(l.a.d(i)),r="function"==typeof n?n(t.$data,t):n,t=ft(e,o,r,t,f);"replaceNode"==o&&(e=t,s=d(e))},t,{Ka:function(){return!s||!l.a.X(s)},W:s&&"replaceNode"==o?s.parentNode:s})}return l.s.ra(function(t){l.va(n,i,f,t,"replaceNode")})},l.Mb=function(n,i,u,f,e){function s(n,t){et(t,o),u.afterRender&&u.afterRender(t,n)}function h(i,r){o=e.createChildContext(l.a.d(i),u.as),o.$index=r;var f="function"==typeof n?n(i,o):n;return ft(t,"ignoreTargetNode",f,o,u)}var o;return l.j(function(){var n=l.a.d(i)||[];"undefined"==typeof n.length&&(n=[n]),n=l.a.fa(n,function(n){return u.includeDestroyed||n===r||n===t||!l.a.d(n._destroy)}),l.r.K(l.a.$a,t,[f,n,h,u,s])},t,{W:f})},l.c.template={init:function(t,i){var r=l.a.d(i());return"string"==typeof r||r.name||1!=t.nodeType&&8!=t.nodeType||(r=1==t.nodeType?t.childNodes:l.e.childNodes(t),r=l.a.Hb(r),new l.l.O(t).nodes(r)),{controlsDescendantBindings:n}},update:function(i,u,f,e,o){u=l.a.d(u()),f={},e=n;var s,h=t;"string"!=typeof u&&(f=u,u=f.name,"if"in f&&(e=l.a.d(f["if"])),e&&"ifnot"in f&&(e=!l.a.d(f.ifnot)),s=l.a.d(f.data)),"foreach"in f?h=l.Mb(u||i,e&&f.foreach||[],f,i,o):e?(o="data"in f?o.createChildContext(s,f.as):o,h=l.va(u||i,o,f,i)):l.e.Y(i),o=h,(s=l.a.f.get(i,"__ko__templateComputedDomDataKey__"))&&"function"==typeof s.B&&s.B(),l.a.f.set(i,"__ko__templateComputedDomDataKey__",o&&o.pa()?o:r)}},l.g.Q.template=function(n){return n=l.g.aa(n),1==n.length&&n[0].unknown||l.g.Eb(n,"name")?t:"This template engine does not support anonymous templates nested within its templates"},l.e.I.template=n,l.b("setTemplateEngine",l.wa),l.b("renderTemplate",l.va),l.a.Ja=function(n,t,i){return n=n||[],t=t||[],n.length<=t.length?ut(n,t,"added","deleted",i):ut(t,n,"deleted","added",i)},l.b("utils.compareArrays",l.a.Ja),l.a.$a=function(t,i,u,f,e){function rt(n,t){o=b[t],g!==t&&(tt[n]=o),o.na(g++),k(o.M),d.push(o),v.push(o)}function a(n,t){if(n)for(var i=0,r=t.length;i<r;i++)t[i]&&l.a.o(t[i].M,function(r){n(r,i,t[i].U)})}var s,w,ut;i=i||[],f=f||{};var w=l.a.f.get(t,"setDomNodeChildrenFromArrayMapping_lastMappingResult")===r,b=l.a.f.get(t,"setDomNodeChildrenFromArrayMapping_lastMappingResult")||[],it=l.a.V(b,function(n){return n.U}),h=l.a.Ja(it,i),d=[],c=0,g=0,nt=[],v=[];i=[];for(var tt=[],it=[],o,s=0,y,p;y=h[s];s++)switch(p=y.moved,y.status){case"deleted":p===r&&(o=b[c],o.j&&o.j.B(),nt.push.apply(nt,k(o.M)),f.beforeRemove&&(i[s]=o,v.push(o))),c++;break;case"retained":rt(s,c++);break;case"added":p!==r?rt(s,p):(o={U:y.value,na:l.m(g++)},d.push(o),v.push(o),w||(it[s]=o))}for(a(f.beforeMove,tt),l.a.o(nt,f.beforeRemove?l.A:l.removeNode),s=0,w=l.e.firstChild(t);o=v[s];s++){for(o.M||l.a.extend(o,gt(t,u,o.U,e,o.na)),c=0;h=o.M[c];w=h.nextSibling,ut=h,c++)h!==w&&l.e.Pa(t,h,ut);!o.Ab&&e&&(e(o.U,o.M,o.na),o.Ab=n)}a(f.beforeRemove,i),a(f.afterMove,tt),a(f.afterAdd,it),l.a.f.set(t,"setDomNodeChildrenFromArrayMapping_lastMappingResult",d)},l.b("utils.setDomNodeChildrenFromArrayMapping",l.a.$a),l.C=function(){this.allowTemplateRewriting=i},l.C.prototype=new l.v,l.C.prototype.renderTemplateSource=function(i){var r=!(9>l.a.Z)&&i.nodes?i.nodes():t;return r?l.a.L(r.cloneNode(n).childNodes):(i=i.text(),l.a.ta(i))},l.C.oa=new l.C,l.wa(l.C.oa),l.b("nativeTemplateEngine",l.C),l.qa=function(){var n=this.Db=function(){if("undefined"==typeof f||!f.tmpl)return 0;try{if(0<=f.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(n){}return 1}();this.renderTemplateSource=function(i,r,o){o=o||{},2>n&&u(Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later."));var s=i.data("precompiled");return s||(s=i.text()||"",s=f.template(t,"{{ko_with $item.koBindingContext}}"+s+"{{/ko_with}}"),i.data("precompiled",s)),i=[r.$data],r=f.extend({koBindingContext:r},o.templateOptions),r=f.tmpl(s,i,r),r.appendTo(e.createElement("div")),f.fragments={},r},this.createJavaScriptEvaluatorBlock=function(n){return"{{ko_code ((function() { return "+n+" })()) }}"},this.addTemplate=function(n,t){e.write("<script type='text/html' id='"+n+"'>"+t+"<\/script>")},0<n&&(f.tmpl.tag.ko_code={open:"__.push($1 || '');"},f.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},l.qa.prototype=new l.v,h=new l.qa,0<h.Db&&l.wa(h),l.b("jqueryTmplTemplateEngine",l.qa)}var n=!0,t=null,i=!1,o=window,e=document,c=navigator,f=window.jQuery,r=void 0;"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?h(module.exports||exports):"function"==typeof define&&define.amd?define(["exports"],h):h(o.ko={}),n})()