function ExecuteAction(n,t,i,r,u,f,e,o,s){function c(n,i){i&&($(i).is(":input")?$(i).val(n):e?$(i).html(n):$(i).replaceWith(n),u&&fadeInContent(i),o==2&&$(t).closest(".slick-active").length&&$(".loader").addClass("hidden"),o==3&&$(".loader").addClass("hidden"),(o==null||o==undefined)&&$(".loader").filter(function(){$(this).closest(".fnViewPaneControl").length||$(this).remove()}))}var h=$(n).closest("form"),l,a,v;if(r&&(l=h.valid(),!l))return!1;a=h.find(".field-validation-error").length;v=new FormData($(n).closest("form").get(0));s!=null&&s.ajaxValue!=null&&s.ajaxValue.abort();s={};s.ajaxValue=$.ajax({type:"POST",datatype:"json",url:i,data:v,contentType:!1,processData:!1,beforeSend:function(){if($.isArray(t)){if(u)for(var n=0;n<t.length;n++)fadeOutContent(t[n]);(o==null||o==undefined)&&$(t[0]).first().before(htmlContent)}else{u&&fadeOutContent(t);switch(o){case 0:break;case 1:$(t).find("span").toggleClass("fa-star",!1);$(t).find("span").toggleClass("fa-spinner",!0);$(t).find("span").toggleClass("fa-spin",!0);break;case 2:$(t).closest(".slick-active").length&&$(".loader").removeClass("hidden");break;case 3:$(".loader").removeClass("hidden");break;default:$(t).before(htmlContent)}}},complete:function(n,t){t=="success"&&a&&h.valid()},success:function(n){if($.isArray(t))for(var i=0;i<t.length;i++)c(n.result[i],t[i]);else n.Content?c(n.Content,t):c(n,t);n.Message;f&&f()}})}function ResetTypeAhead(){var n=$(".typeahead-container"),t;n.find(".typeahead-result").remove();t=n.first(".typeahead-query");t.removeData("typeAhead");$("*").off(".psTypeAhead");InitializeTypeAhead()}function InitializeTypeAhead(){function i(){return function(n,t,i,r){r.hasClass("empty")&&(r.find(".typeahead-empty").attr("aria-live","assertive"),r.find(".typeahead-empty").append(r.find("div")),r.find("a").remove());var u=r.find(".seeAll");return u.length&&(u.removeClass("seeAll"),u.closest("li").addClass("seeAll")),r}}function n(n){var r=n.find("input"),f=n.closest("form").attr("action"),e=r.data("tt-limit"),c=r.data("tt-url"),l=r.data("tt-search-type"),h="",o=n.find(".typeahead-yeardropdown").val(),s,u;o&&(h="&year="+o);s="";u=r.data("tt-branch");u&&(s="&branch="+u);r.typeahead({minLength:1,dynamic:!0,filter:!1,selector:{list:"dropdown-menu"},display:["Title","EntityNumberFormatted","Name","ChapterNumber","CommitteeName","GeneralLawSection"],href:function(n){return n.Url+h+s},template:function(n,i){var r={};(f=="/Search"||f=="/Laws/Search")&&(r.multipleSearch=!0);switch(i.ContentTypeName){case"Bill":r.bill=!0;break;case"Committee":r.committee=!0;break;case"Session Law":r.sessionLaw=!0;break;case"General Law":r.generalLaw=!0;break;case"Journal":r.journal=!0;break;case"Legislator":r.legislator=!0;break;case"Session":case"Hearing":case"Special Event":r.event=!0;break;case"Report":r.report=!0;break;case"Video":r.video=!0;break;case"SeeAllResults":r.seeAllResults=!0}return Handlebars.compile(t)(r)},emptyTemplate:'<div class="empty-message noResults">No results for "{{query}}" in the current General Court. <\/div> \n',source:{results:{url:[{url:c,data:{SearchTerms:"{{query}}",ResultLimit:e+1,type:l,year:o,branch:u}}]}},callback:{onNavigateBefore:function(n,t,i){i.preventInputChange=!0},onPopulateSource:function(n,t,i){return t.length==e+1&&(t.splice(e,1),t.push({ContentTypeName:"SeeAllResults",SeeAllText:"See all results for this General Court",Url:f+"?SearchTerms="+n.val(),group:i})),t},onClick:function(n,t,i,r){window.location=i.href;r.preventDefault()},onLayoutBuiltBefore:i()}})}function r(n){var r=n,u=r.data("tt-limit"),f=r.data("tt-url");r.typeahead({minLength:1,dynamic:!0,filter:!0,cache:!0,searchOnFocus:!0,selector:{list:"dropdown-menu"},display:"display",template:function(n,i){var r={};return r.locationSearch=!0,r.display=i.display,Handlebars.compile(t)(r)},emptyTemplate:'<div class="empty-message noResults">No results for "{{query}}".<\/div> \n',source:{results:{url:[{url:f,data:{SearchTerms:"{{query}}",ResultLimit:u}}]}},callback:{onPopulateSource:function(n,t){return t},onLayoutBuiltBefore:i()}})}var t=Handlebars.getTemplate("TypeAheadHomeTemplate");$(".typeahead-query").each(function(){var t=$(this);n(t)});$(".typeahead-refiner").on("change.psTypeAhead",function(){var f=$(this).closest(".fnTypeAheadWrapper"),r=f.find(".typeahead-query"),t="",u=$(this).closest(".searchFilters"),i;f.find(".typeahead-result").remove();i=u.data("tt-url-reset");u.find(".typeahead-refiner").each(function(){this.checked&&(i=$(this).data("tt-url-reset"),t!==""&&(t+=", ",i=u.data("tt-url-reset")),t+=this.id)});t===""&&(i=u.data("tt-url-reset"),t=r.find("input").data("tt-search-reset"));f.find("form").attr("action",i);r.find("input").data("tt-search-type",t);r.removeData("typeAhead");n(r)});$(".fnLocation").each(function(){var n=$(this),t=$(".fnStateControl"),i=t.val();t.length&&i!="MA"&&i!="MASSACHUSETTS"?n.parents(".typeahead-container").addClass("typeahead-container-disabled").removeClass("typeahead-container"):r(n)});$(".fnStateControl").on("change.psTypeAhead",function(){var n=$(".fnLocation"),t=$(this).val();t!=="MA"&&t!=="MASSACHUSETTS"?n.parents(".typeahead-container").addClass("typeahead-container-disabled").removeClass("typeahead-container"):(n.parents(".typeahead-container-disabled").addClass("typeahead-container").removeClass("typeahead-container-disabled"),r(n))});$(".typeahead-yeardropdown").on("change.psTypeAhead",function(){var i=$(this).closest(".typeahead-container"),t;i.find(".typeahead-result").remove();t=i.first(".typeahead-query");t.removeData("typeAhead");n(t)})}function switchModal(n){$(".modal.in").modal("hide").one("hidden.bs.modal",function(){$(n).modal("show")})}function removeEmptyAriaTags(){$('[data-aria-describedby="none"]').each(function(){$(this).removeAttr("aria-describedby")})}function toggleFollowing(n,t,i){var s=n.find("span").hasClass("mlFollowing"),r=n.data("followtype"),u=n.data("followingcode"),f=n.data("generalcourtnumber"),e='a[data-followType="'+r+'"][data-followingCode="'+u+'"][data-generalCourtNumber="'+f+'"]',o;s?(o=function(){var n='.toggle[data-followType="'+r+'"][data-followingCode="'+u+'"][data-generalCourtNumber="'+f+'"]';$(n).find("input").prop("checked",!1)},ExecuteAction(this,e,i,!1,!1,o,!1,1)):ExecuteAction(this,e,t,!1,!1,null,!1,1)}function toggleSubscribe(n,t,i){var s=n.find(":checked").length,r=n.data("followtype"),u=n.data("followingcode"),f=n.data("generalcourtnumber"),e='.toggle[data-followType="'+r+'"][data-followingCode="'+u+'"][data-generalCourtNumber="'+f+'"]',o;s?ExecuteAction(this,e,i,!1,!1,null,!1,0):(o=function(){var n='a[data-followType="'+r+'"][data-followingCode="'+u+'"][data-generalCourtNumber="'+f+'"]';$(n).find("span").addClass("mlFollowing").removeClass("mlNotFollowing")},ExecuteAction(this,e,t,!1,!1,o,!1,0));subscriptionTimeout?clearTimeout(subscriptionTimeout):$(window).unload(sendSubscriptionConfirmationEmail);subscriptionTimeout=setTimeout(sendSubscriptionConfirmationEmail,6e4)}function unsubscribeAll(){$(".toggle input").prop("checked",!1);$.ajax({url:"/MyLegislature/UnsubscribeAll",type:"POST",cache:!1})}function sendSubscriptionConfirmationEmail(){$.ajax({url:"/MyLegislature/ConfirmSubscription",type:"POST",cache:!1})}function toggleTab(n,t,i){n.preventDefault();var r=$($(t).closest("li"));return r.hasClass("active")||(r.addClass("active").siblings().removeClass("active"),ExecuteAction(this,i,t.href,null,!0,null,null,null,existingAjax),history.pushState(!0,null,t.href)),!1}function toggleContent(n,t,i,r,u,f,e){var h,o,s;return n.preventDefault(),h=$(t),o=h,u&&(o=h.parent()),o.hasClass(r)||(f?$(f).find("."+r).removeClass(r):o.siblings().removeClass(r),o.addClass(r),ExecuteAction(this,i,t.href,null,!0),s=t.href,e&&(s=s.substring(0,s.indexOf("?"))),history.pushState(!0,null,s)),!1}function onDropDownChanged(n,t,i,r,u,f,e,o){var h=$(n.target).val(),s=i;h==f||o||(s+="/"+h);fadeOutContent(r);u&&!o&&(s+=u);e&&(s=e(n,s));o&&(s=o(n,t,h,f,i,u));ExecuteAction(this,t,s,null,!1,function(){fadeInContent(r)});history.pushState(!0,null,s)}function appendToUrl(n,t){if($.isArray(t))for(var i=0;i<t.length;i++)n+="/"+t[i];else n+="/"+t;window.location.href=n}function onButtonClick(n,t,i,r,u,f){var e=t;i!=""&&(e+="/"+i);fadeOutContent(r);u&&(e+=u);ExecuteAction(this,n,e,null,!1,function(){fadeInContent(r)});f&&(e=e.substring(0,e.indexOf("?")));history.pushState(!0,null,e)}function fadeOutContent(n){$(n).removeClass("in")}function fadeInContent(n){$(n).addClass("in")}function toggleHiddenValue(n,t,i){var r=$(n),u=r.next(":hidden");u.val()=="True"?(i&&r.text(i),u.val("False")):(t&&r.text(t),u.val("True"))}function initializeFunctionalClasses(){$(".fnModalRemoveData").on("hide.bs.modal",function(){$(this).find(".modal-content").children().each(function(){$(this).empty()});$(this).find(".modal-body").html(htmlContent);$(this).removeData()});$(".fnModalStack").on("show.bs.modal",function(){$(".modal.in").css("z-index","1040")});$(".fnModalStack").on("hidden.bs.modal",function(){$(".modal.in").last().css("z-index","1050")});$(".fnEnterClick").off(".common");$(".fnEnterClick").on("keypress.common",function(n){n.keyCode==13&&(n.preventDefault(),$($(this).data("click-selector")).click())});$(".tab").length&&$(".fnSingleTab").hide()}function myLegislatureBadges(){debounceToast&&clearTimeout(debounceToast);debounceToast=setTimeout(function(){$.ajax({url:"/MyLegislature/BadgeToasts",type:"POST",cache:!1,data:{screenWidth:window.innerWidth}}).done(function(n){$(n).each(function(){var n=this.badgeUrl;toastr.info("You have earned a MyLegislature badge!",this.name,{toastClass:this.cssClass+" toast",timeOut:7e3,extendedTimeOut:5e3,positionClass:"toast-bottom-right",closeButton:!0,onclick:function(){$("#badgeModal").modal("show");$("#badgeModal").find(".modal-content").load(n)}})})})},500)}function initializeDirtyFields(){$(".fnDirtyForm .form-control .fnDirtyChanged").off(".dirty");$("form.fnDirtyForm").find(".form-control").on("input.dirty",function(){$(this).addClass("dirty");$(".success").hide();$(".success").prev("button").show();$(".fnDirtySubmit").prop("disabled",!1)});$("form.fnDirtyForm").find(".fnDirtyChanged").on("click.dirty",function(){$(this).addClass("dirty");$(".fnDirtySubmit").prop("disabled",!1)})}function restoreState(n){n.originalEvent.state&&($(window).unbind("popstate",restoreState),window.location=document.location,$(window).bind("popstate",restoreState))}function AddIconSharePointContent(){$("a.internalPdf").click(function(){return window.open(this.href,"_blank"),!1}).append(' <span class="fa fa-file-pdf-o"><\/span>')}function goToSessionLawsPage(n,t,i){n+="/"+t+"/"+i;window.location=n}function initJsTree(n,t,i,r,u,f){$("#jstree").jstree({core:{data:{url:n,data:function(n){return n.id!=="#"?{id:n.id,isExpanded:$("#tableOfContentsWrapper").attr("data-expanded"),nodeKey:n.data.nodekey,level:n.data.level,part:t,title:i,chapter:r,article:u,section:f}:{id:n.id,isExpanded:!1,part:t}}},themes:{icons:!1,dots:!1}}});$("#jstree").on("open_node.jstree",function(){$(".expandable").each(function(){($("#tableOfContentsWrapper").attr("data-expanded")=="true"&&$(this).hasClass("sr-only-expandable")||$("#tableOfContentsWrapper").attr("data-expanded")=="false"&&!$(this).hasClass("sr-only-expandable"))&&$(this).toggleClass("sr-only-expandable")})});$("#jstree").on("select_node.jstree",function(n,t){t.node.a_attr.href!=="#"?document.location.href=t.node.a_attr.href:t.instance.toggle_node(t.node)})}function toggleShowOriginal(n){return n.toggleClass("active",!0).siblings().toggleClass("active",!1),showIFrame(),!1}function showIFrame(){$("#currentContent").hasClass("active")?($("#content").toggleClass("hiddenIframe",!1),$("#originalContent").toggleClass("hiddenIframe",!0)):($("#content").toggleClass("hiddenIframe",!0),$("#originalContent").toggleClass("hiddenIframe",!1))}function QueryStringToJSON(){var t=location.search.slice(1).split("&"),n={};return t.forEach(function(t){t=t.split("=");n[t[0]]=decodeURIComponent(t[1]||"")}),JSON.parse(JSON.stringify(n))}function setCookie(n,t,i){var r=n+"="+t+";";i!=null&&(r+="expires="+i+";");document.cookie=r}function getCookie(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function deleteCookie(n){document.cookie=n+'="";path=/;Expires=Thu, 01 Jan 1970 00:00:01 GMT;'}function inProgress(){$(".fnStart").hide();$(".fnEnd").show().focus()}function startDownloadIcon(n,t){n.find(t).addBack(t).html('<span class="fa fa-spinner fa-spin"><\/span> Downloading PDF');n.attr("aria-disabled",!0);n.addClass("disabled");deleteCookie("DownloadCookie");fileDownloadCheckTimer.object!=null&&resetDownloadIcon(t);fileDownloadCheckTimer.target=n;fileDownloadCheckTimer.interval=window.setInterval(function(){var n=getCookie("DownloadCookie");n=="Download_Complete"&&resetDownloadIcon(t)},250)}function resetDownloadIcon(n){var t=fileDownloadCheckTimer.target;window.clearInterval(fileDownloadCheckTimer.interval);deleteCookie("DownloadCookie");t.attr("aria-disabled",!1);t.removeClass("disabled");t.find(n).addBack(n).html('<span class="fa fa-file-pdf-o"><\/span> Download PDF');fileDownloadCheckTimer={}}function sessionLawTypeChange(n,t){var f=$(n).val(),i=sessionLawActYears,r,u;f===t&&(i=sessionLawResolveYears);r=$(n).closest("form").find(".sessionLawYearList");u=r.val();r.empty();$.each(i,function(n){var t='<option value="'+i[n].Value+'"'+(i[n].Value===u?"selected=true":"")+">"+i[n].Text+"<\/option>";r.append(t)})}function registrationModalFormOnSuccess(n){n.url?window.location.href=n.url:($("input#Password").unbind(),$("#registrationModalForm").html(n.html),passwordTooltip(),$(".fnStart").show(),$(".fnEnd").hide())}function loginModalFormOnComplete(n){if(n.status==404)return document.location.href="/",!1;var t=JSON.parse(n.responseText);t.url?window.location.href=t.url:($("#loginModalForm").html(t.html),$(".fnStart").show(),$(".fnEnd").hide())}function loginFlyoutFormOnComplete(n){if(n.status==404)return document.location.href="/",!1;var t=JSON.parse(n.responseText);t.url?window.location.href=t.url:($("#loginFlyoutForm").html(t.html),$(".fnStart").show(),$(".fnEnd").hide())}function forgotPasswordModalFormOnComplete(n){$("#forgotPasswordModalForm").html(n.responseText)}function truncateExternalHash(){if(window.location.hash&&window.location.hash=="#_=_")if(window.history&&history.pushState)window.history.pushState("",document.title,window.location.pathname+window.location.search);else{var n={top:document.body.scrollTop,left:document.body.scrollLeft};window.location.hash="";document.body.scrollTop=n.top;document.body.scrollLeft=n.left}}function queryStringToJSON(){var t=location.search.slice(1).split("&"),n={};return t.forEach(function(t){t=t.split("=");n[t[0]]=decodeURIComponent(t[1]||"")}),JSON.parse(JSON.stringify(n))}function eventsCalendarListFormOnComplete(n){$("#eventsCalendarListForm").html(n.responseText)}function addInterest(n){if($("#txtNewInterest").val().length>30)return!1;var t=n.closest("form");$("#txtNewInterest").val()!=""&&($(".success").hide(),$(".success").prev("button").show(),$.ajax({url:"/MyLegislature/InterestsList",type:"POST",cache:!1,data:t.serialize()}).done(function(n){$("#dvInterestsList").html(n)}))}function printIFrame(){$("#content").hasClass("hidden")?(window.frames.originalFrame.focus(),window.frames.originalFrame.print()):$("#originalContent").hasClass("hidden")?(window.frames.changedFrame.focus(),window.frames.changedFrame.print()):(window.frames.printFrame.focus(),window.frames.printFrame.print())}function initDatePicker(){var r=$(".input-group.fnDatepicker > input");if(r.hasClass("fnMinDate")){var n=new Date,t=n.getDate(),i=n.getMonth()+1,u=n.getFullYear();t<10&&(t="0"+t);i<10&&(i="0"+i);n=i+"/"+t+"/"+u;r.datepicker({min:n,daysOfWeekDisabled:null,inputFormat:"MM/dd/yyyy",outputFormat:"MM/dd/yyyy"})}else r.datepicker({daysOfWeekDisabled:null,inputFormat:"MM/dd/yyyy",outputFormat:"MM/dd/yyyy"})}function passwordStrength(){var n=$(this).val();n.length>=7?$("#passwordLength").removeClass("reqUnmet").addClass("reqMet"):$("#passwordLength").removeClass("reqMet").addClass("reqUnmet");n.match(/[0-9]/)?$("#passwordNumeric").removeClass("reqUnmet").addClass("reqMet"):$("#passwordNumeric").removeClass("reqMet").addClass("reqUnmet");n.match(/[A-Z]/)?$("#passwordCapital").removeClass("reqUnmet").addClass("reqMet"):$("#passwordCapital").removeClass("reqMet").addClass("reqUnmet");n.match(/[a-z]/)?$("#passwordLower").removeClass("reqUnmet").addClass("reqMet"):$("#passwordLower").removeClass("reqMet").addClass("reqUnmet")}var subscriptionTimeout,existingAjax,debounceToast,templatePreLoad,htmlContent,fileDownloadCheckTimer,passwordTooltip;if($.fn.serializeObject=function(){var n={},t=this.serializeArray();return $.each(t,function(){n[this.name]?(n[this.name].push||(n[this.name]=[n[this.name]]),n[this.name].push(this.value||"")):n[this.name]=this.value||""}),n},$(document).ajaxError(function(n,t){t.statusText!="abort"&&t.status!=0&&toastr.error("We weren't able to process your request, please try again in a few minutes.","Error",{timeOut:5e3,preventDuplicates:!0,positionClass:"toast-bottom-right"})}),templatePreLoad=null,htmlContent=null,$(document).ready(function(){templatePreLoad===null&&(templatePreLoad=Handlebars.getTemplate("Loader"));htmlContent===null&&(htmlContent=Handlebars.compile(templatePreLoad))}),function(n){typeof define=="function"&&define.amd?define("jquery-typeahead",["jquery"],function(t){return n(t)}):typeof module=="object"&&module.exports?module.exports=function(t,i){return t===undefined&&(t=typeof window!="undefined"?require("jquery"):require("jquery")(i)),n(t)}:n(jQuery)}(function(n){"use strict";var f,t;window.Typeahead={version:"2.4.0"};var e={input:null,minLength:2,maxItem:8,dynamic:!1,delay:300,order:null,offset:!1,hint:!1,accent:!1,highlight:!0,group:!1,groupOrder:null,maxItemPerGroup:null,dropdownFilter:!1,dynamicFilter:null,backdrop:!1,backdropOnFocus:!1,cache:!1,ttl:36e5,compression:!1,suggestion:!1,searchOnFocus:!1,resultContainer:null,generateOnLoad:null,mustSelectItem:!1,href:null,display:["display"],template:null,correlativeTemplate:!1,emptyTemplate:!1,filter:!0,matcher:null,source:null,callback:{onInit:null,onReady:null,onShowLayout:null,onHideLayout:null,onSearch:null,onResult:null,onLayoutBuiltBefore:null,onLayoutBuiltAfter:null,onNavigateBefore:null,onNavigateAfter:null,onMouseEnter:null,onMouseLeave:null,onClickBefore:null,onClickAfter:null,onSendRequest:null,onReceiveRequest:null,onPopulateSource:null,onCacheSave:null,onSubmit:null},selector:{container:"typeahead-container",result:"typeahead-result",list:"typeahead-list",group:"typeahead-group",item:"typeahead-item",empty:"typeahead-empty",display:"typeahead-display",query:"typeahead-query",filter:"typeahead-filter",filterButton:"typeahead-filter-button",filterValue:"typeahead-filter-value",dropdown:"typeahead-dropdown",dropdownCaret:"typeahead-caret",button:"typeahead-button",backdrop:"typeahead-backdrop",hint:"typeahead-hint"},debug:!1},i=".typeahead",u={from:"ãàáäâẽèéëêìíïîõòóöôùúüûñç",to:"aaaaaeeeeeiiiiooooouuuunc"},o=~window.navigator.appVersion.indexOf("MSIE 9."),r=function(n,t){this.rawQuery="";this.query=n.val()||"";this.tmpSource={};this.source={};this.isGenerated=null;this.generatedGroupCount=0;this.groupCount=0;this.groupBy="group";this.result={};this.resultHtml=null;this.resultCount=0;this.resultCountPerGroup={};this.options=t;this.node=n;this.container=null;this.resultContainer=null;this.item=null;this.xhr={};this.hintIndex=null;this.filters={dropdown:{},dynamic:{}};this.requests={};this.backdrop={};this.hint={};this.__construct()};return r.prototype={extendOptions:function(){this.options.dynamic&&(this.options.cache=!1,this.options.compression=!1);this.options.cache&&(this.options.cache=function(n){var i;if(n===!0)n="localStorage";else if(typeof n=="string"&&!~["localStorage","sessionStorage"].indexOf(n))return this.options.debug&&(t.log({node:this.node.selector,"function":"extendOptions()",message:'Invalid options.cache, possible options are "localStorage" or "sessionStorage"'}),t.print()),!1;i=typeof window[n]!="undefined";try{window[n].setItem("typeahead","typeahead");window[n].removeItem("typeahead")}catch(r){i=!1}return i&&n||!1}.call(this,this.options.cache));this.options.compression&&(typeof LZString=="object"&&this.options.cache||(this.options.debug&&(t.log({node:this.node.selector,"function":"extendOptions()",message:"Missing LZString Library or options.cache, no compression will occur."}),t.print()),this.options.compression=!1));typeof this.options.maxItem=="undefined"||/^\d+$/.test(this.options.maxItem)&&this.options.maxItem!==0||(this.options.maxItem=Infinity);this.options.maxItemPerGroup&&!/^\d+$/.test(this.options.maxItemPerGroup)&&(this.options.maxItemPerGroup=null);!this.options.display||this.options.display instanceof Array||(this.options.display=[this.options.display]);!this.options.group||this.options.group instanceof Array||(this.options.group=[this.options.group]);this.options.highlight&&!~["any",!0].indexOf(this.options.highlight)&&(this.options.highlight=!1);!this.options.dynamicFilter||this.options.dynamicFilter instanceof Array||(this.options.dynamicFilter=[this.options.dynamicFilter]);this.options.accent&&(typeof this.options.accent=="object"?this.options.accent.from&&this.options.accent.to&&this.options.accent.from.length===this.options.accent.to.length||this.options.debug&&(t.log({node:this.node.selector,"function":"extendOptions()",message:'Invalid "options.accent", from and to must be defined and same length.'}),t.print()):this.options.accent=u);this.options.resultContainer&&(typeof this.options.resultContainer=="string"&&(this.options.resultContainer=n(this.options.resultContainer)),this.options.resultContainer instanceof jQuery&&this.options.resultContainer[0]?this.resultContainer=this.options.resultContainer:this.options.debug&&(t.log({node:this.node.selector,"function":"extendOptions()",message:'Invalid jQuery selector or jQuery Object for "options.resultContainer".'}),t.print()));this.options.group&&typeof this.options.group[0]=="string"&&this.options.maxItemPerGroup&&(this.groupBy=this.options.group[0]);this.options.callback&&this.options.callback.onClick&&(this.options.callback.onClickBefore=this.options.callback.onClick,delete this.options.callback.onClick);this.options.callback&&this.options.callback.onNavigate&&(this.options.callback.onNavigateBefore=this.options.callback.onNavigate,delete this.options.callback.onNavigate);this.options=n.extend(!0,{},e,this.options)},unifySourceFormat:function(){var n,i;if(this.options.source instanceof Array)return this.options.source={group:{data:this.options.source}},this.groupCount+=1,!0;(typeof this.options.source.data!="undefined"||typeof this.options.source.url!="undefined")&&(this.options.source={group:this.options.source});for(i in this.options.source)if(this.options.source.hasOwnProperty(i)){if(n=this.options.source[i],(typeof n=="string"||n instanceof Array)&&(n={url:n}),!n.data&&!n.url)return this.options.debug&&(t.log({node:this.node.selector,"function":"unifySourceFormat()",arguments:JSON.stringify(this.options.source),message:'Undefined "options.source.'+i+'.[data|url]" is Missing - Typeahead dropped'}),t.print()),!1;!n.display||n.display instanceof Array||(n.display=[n.display]);n.ignore&&(n.ignore instanceof RegExp||(this.options.debug&&(t.log({node:this.node.selector,"function":"unifySourceFormat()",arguments:JSON.stringify(n.ignore),message:"Invalid ignore RegExp."}),t.print()),delete n.ignore));this.options.source[i]=n;this.groupCount+=1}return!0},init:function(){this.helper.executeCallback.call(this,this.options.callback.onInit,[this.node]);this.container=this.node.closest("."+this.options.selector.container);this.options.debug&&(t.log({node:this.node.selector,"function":"init()",message:"OK - Typeahead activated on "+this.node.selector}),t.print())},delegateEvents:function(){var t=this,u=["focus"+i,"input"+i,"propertychange"+i,"keydown"+i,"keyup"+i,"dynamic"+i,"generateOnLoad"+i],r;this.container.off(i).on("click"+i+" touchstart"+i,function(i){t.options.dropdownFilter&&t.container.hasClass("filter")&&!n(i.target).closest("."+t.options.selector.dropdown.replace(" ","."))[0]&&t.container.removeClass("filter")});this.node.closest("form").on("submit",function(n){if(t.options.mustSelectItem&&t.helper.isEmpty(t.item)){n.preventDefault();return}return t.options.backdropOnFocus||t.hideLayout(),t.options.callback.onSubmit?t.helper.executeCallback.call(t,t.options.callback.onSubmit,[t.node,this,t.item,n]):void 0});r=!1;this.node.off(i).on(u.join(" "),function(n){switch(n.type){case"generateOnLoad":t.isGenerated===null&&t.generateSource();break;case"focus":t.options.backdropOnFocus&&(t.buildBackdropLayout(),t.showLayout());t.options.searchOnFocus&&t.query.length>=t.options.minLength&&(t.isGenerated?t.showLayout():t.isGenerated===null&&t.generateSource());case"keydown":n.keyCode&&~[9,13,27,38,39,40].indexOf(n.keyCode)&&(r=!0,t.navigate(n));break;case"keyup":t.isGenerated!==null||t.options.dynamic||t.generateSource();o&&t.node[0].value.replace(/^\s+/,"").toString().length<t.query.length&&t.node.trigger("input"+i);break;case"propertychange":if(r){r=!1;break}case"input":if(t.rawQuery=t.node[0].value.toString(),t.query=t.rawQuery.replace(/^\s+/,""),t.options.hint&&t.hint.container&&t.hint.container.val()!==""&&t.hint.container.val().indexOf(t.rawQuery)!==0&&t.hint.container.val(""),t.options.dynamic){t.isGenerated=null;t.helper.typeWatch(function(){t.query.length>=t.options.minLength?t.generateSource():t.hideLayout()},t.options.delay);return}case"dynamic":if(!t.isGenerated)break;t.searchResult();t.buildLayout();(t.result.length>0||t.options.emptyTemplate)&&t.query.length>=t.options.minLength?t.showLayout():t.hideLayout()}});this.options.generateOnLoad&&this.node.trigger("generateOnLoad"+i)},generateSource:function(){var u,n,r,i,f;if(!this.isGenerated||this.options.dynamic){if(this.generatedGroupCount=0,this.isGenerated=!1,!this.helper.isEmpty(this.xhr)){for(u in this.xhr)this.xhr.hasOwnProperty(u)&&this.xhr[u].abort();this.xhr={}}for(n in this.options.source)if(this.options.source.hasOwnProperty(n)){if(r=this.options.source[n],this.options.cache&&(i=window[this.options.cache].getItem("TYPEAHEAD_"+this.node.selector+":"+n),i)){this.options.compression&&(i=LZString.decompressFromUTF16(i));f=!1;try{i=JSON.parse(i+"");i.data&&i.ttl>(new Date).getTime()?(this.populateSource(i.data,n),f=!0,this.options.debug&&(t.log({node:this.node.selector,"function":"generateSource()",message:'Source for group "'+n+'" found in '+this.options.cache}),t.print())):window[this.options.cache].removeItem("TYPEAHEAD_"+this.node.selector+":"+n)}catch(e){}if(f)continue}if(r.data&&!r.url){this.populateSource(typeof r.data=="function"&&r.data()||r.data,n);continue}r.url&&(this.requests[n]||(this.requests[n]=this.generateRequestObject(n)))}this.handleRequests()}},generateRequestObject:function(t){var f=this,i=this.options.source[t],r,e,u;i.url instanceof Array||(i.url=[i.url]);r={request:{url:null,dataType:"json",beforeSend:function(n){f.xhr[t]=n;var r=f.requests[t].extra.beforeSend||i.url[0].beforeSend;typeof r=="function"&&r.apply(null,arguments)}},extra:{path:null,group:t,callback:{done:null,fail:null,complete:null,always:null}},validForGroup:[t]};Object.defineProperty(r.request,"beforeSend",{writable:!1});i.url[0]instanceof Object?(i.url[0].callback&&(r.extra.callback=i.url[0].callback,delete i.url[0].callback),r.request=n.extend(!0,r.request,i.url[0])):typeof i.url[0]=="string"&&(r.request.url=i.url[0]);i.url[1]&&typeof i.url[1]=="string"&&(r.extra.path=i.url[1]);r.request.dataType.toLowerCase()==="jsonp"&&(r.request.jsonpCallback="callback_"+t);for(u in this.requests)if(this.requests.hasOwnProperty(u)&&(e=JSON.stringify(this.requests[u].request),e===JSON.stringify(r.request))){this.requests[u].validForGroup.push(t);r.isDuplicated=!0;delete r.validForGroup;break}return r},handleRequests:function(){var i=this,u=Object.keys(this.requests).length,r;if(this.helper.executeCallback.call(this,this.options.callback.onSendRequest,[this.node,this.query])===!1){this.isGenerated=null;return}for(r in this.requests)this.requests.hasOwnProperty(r)&&(this.requests[r].isDuplicated||function(r,f){var h,e,o,s;if(typeof i.options.source[r].url[0]=="function"){if(h=i.options.source[r].url[0].call(i,i.query),f.request=n.extend(!0,f.request,h),typeof f.request!="object"||!f.request.url){i.options.debug&&(t.log({node:i.node.selector,"function":"handleRequests",message:'Source function must return an object containing ".url" key for group "'+r+'"'}),t.print());return}h.beforeSend&&(i.requests[r].extra.beforeSend=h.beforeSend)}if(o=!1,~f.request.url.indexOf("{{query}}")&&(o||(f=n.extend(!0,{},f),o=!0),f.request.url=f.request.url.replace("{{query}}",i.query.sanitize())),f.request.data)for(s in f.request.data)if(f.request.data.hasOwnProperty(s)&&~String(f.request.data[s]).indexOf("{{query}}")){o||(f=n.extend(!0,{},f),o=!0);f.request.data[s]=f.request.data[s].replace("{{query}}",i.query.sanitize());break}n.ajax(f.request).done(function(n,r,o){for(var s,h=0;h<f.validForGroup.length;h++)e=i.requests[f.validForGroup[h]],e.extra.callback.done instanceof Function&&(s=e.extra.callback.done(n,r,o),n=s instanceof Array&&s||n,s instanceof Array||i.options.debug&&(t.log({node:i.node.selector,"function":"Ajax.callback.done()",message:"Invalid returned data has to be an Array"}),t.print())),i.populateSource(n,e.extra.group,e.extra.path),u-=1,u===0&&i.helper.executeCallback.call(i,i.options.callback.onReceiveRequest,[i.node,i.query])}).fail(function(n,r,u){for(var o=0;o<f.validForGroup.length;o++)e=i.requests[f.validForGroup[o]],e.extra.callback.fail instanceof Function&&e.extra.callback.fail(n,r,u);i.options.debug&&(t.log({node:i.node.selector,"function":"Ajax.callback.fail()",message:"Request failed"}),t.print())}).then(function(n,t){for(var r=0;r<f.validForGroup.length;r++)e=i.requests[f.validForGroup[r]],e.extra.callback.then instanceof Function&&e.extra.callback.then(n,t)}).always(function(n,t,r){for(var u=0;u<f.validForGroup.length;u++)e=i.requests[f.validForGroup[u]],e.extra.callback.always instanceof Function&&e.extra.callback.always(n,t,r)})}(r,this.requests[r]))},populateSource:function(n,i,r){var a=this,f=this.options.source[i],e=f.url&&f.data,c,l,o,s,u,h;for(n=typeof r=="string"?this.helper.namespace(r,n):n,typeof n=="undefined"&&this.options.debug&&(t.log({node:this.node.selector,"function":"populateSource()",arguments:r,message:"Invalid data path."}),t.print()),n instanceof Array||(this.options.debug&&(t.log({node:this.node.selector,"function":"populateSource()",arguments:JSON.stringify({group:i}),message:"Invalid data type, must be Array type."}),t.print()),n=[]),e&&(typeof e=="function"&&(e=e()),e instanceof Array?n=n.concat(e):this.options.debug&&(t.log({node:this.node.selector,"function":"populateSource()",arguments:JSON.stringify(e),message:"WARNING - this.options.source."+i+".data Must be an Array or a function that returns an Array."}),t.print())),l=f.display?f.display[0]==="compiled"?f.display[1]:f.display[0]:this.options.display[0]==="compiled"?this.options.display[1]:this.options.display[0],u=0;u<n.length;u++)typeof n[u]=="string"&&(c={},c[l]=n[u],n[u]=c),n[u].group=i;if(this.options.correlativeTemplate)if(o=f.template||this.options.template,s="",typeof o=="function"&&(o=o()),o){if(this.options.correlativeTemplate instanceof Array)for(u=0;u<this.options.correlativeTemplate.length;u++)s+="{{"+this.options.correlativeTemplate[u]+"}} ";else s=o.replace(/<.+?>/g,"");for(u=0;u<n.length;u++)n[u].compiled=s.replace(/\{\{([\w\-\.]+)(?:\|(\w+))?}}/g,function(t,i){return a.helper.namespace(i,n[u],"get","")}).trim();f.display?~f.display.indexOf("compiled")||f.display.unshift("compiled"):~this.options.display.indexOf("compiled")||this.options.display.unshift("compiled")}else this.options.debug&&(t.log({node:this.node.selector,"function":"populateSource()",arguments:JSON.stringify(i),message:"WARNING - this.options.correlativeTemplate is enabled but no template was found."}),t.print());this.options.callback.onPopulateSource&&(n=this.helper.executeCallback.call(this,this.options.callback.onPopulateSource,[this.node,n,i,r]),n&&n instanceof Array||(t.log({node:this.node.selector,"function":"callback.populateSource()",message:'callback.onPopulateSource must return the "data" parameter'}),t.print()));this.tmpSource[i]=n;this.options.cache&&!window[this.options.cache].getItem("TYPEAHEAD_"+this.node.selector+":"+i)&&(this.options.callback.onCacheSave&&(n=this.helper.executeCallback.call(this,this.options.callback.onCacheSave,[this.node,n,i,r]),n&&n instanceof Array||(t.log({node:this.node.selector,"function":"callback.populateSource()",message:'callback.onCacheSave must return the "data" parameter'}),t.print())),h=JSON.stringify({data:n,ttl:(new Date).getTime()+this.options.ttl}),this.options.compression&&(h=LZString.compressToUTF16(h)),window[this.options.cache].setItem("TYPEAHEAD_"+this.node.selector+":"+i,h));this.incrementGeneratedGroup()},incrementGeneratedGroup:function(){var t,n;if(this.generatedGroupCount+=1,this.groupCount===this.generatedGroupCount){for(this.isGenerated=!0,this.xhr={},t=Object.keys(this.options.source),n=0;n<t.length;n++)this.source[t[n]]=this.tmpSource[t[n]];this.tmpSource={};this.node.trigger("dynamic"+i)}},navigate:function(n){if(this.helper.executeCallback.call(this,this.options.callback.onNavigateBefore,[this.node,this.query,n]),n.keyCode===27){n.preventDefault();this.query.length?(this.node.val(""),this.node.trigger("input"+i)):this.node.blur();return}if(this.isGenerated&&this.result.length){var r=this.resultContainer.find("> ul > li:not([data-search-group])"),u=r.filter(".active"),f=u[0]&&r.index(u)||null,t=null;if(n.keyCode===13){n.preventDefault();u.length>0?u.find("a:first")[0].click():this.node.closest("form").submit();return}if(n.keyCode===39){f?r.eq(f).find("a:first")[0].click():this.options.hint&&this.hint.container.val()!==""&&this.helper.getCaret(this.node[0])>=this.query.length&&r.find('a[data-index="'+this.hintIndex+'"]')[0].click();return}r.length>0&&u.removeClass("active");n.keyCode===38?(n.preventDefault(),u.length>0?f-1>=0&&(t=f-1,r.eq(t).addClass("active")):(t=r.length-1,r.last().addClass("active"))):n.keyCode===40&&(n.preventDefault(),u.length>0?f+1<r.length&&(t=f+1,r.eq(t).addClass("active")):(t=0,r.first().addClass("active")));n.preventInputChange&&~[38,40].indexOf(n.keyCode)&&this.buildHintLayout(t!==null&&t<this.result.length?[this.result[t]]:null);this.options.hint&&this.hint.container&&this.hint.container.css("color",n.preventInputChange?this.hint.css.color:t===null&&this.hint.css.color||this.hint.container.css("background-color")||"fff");this.node.val(t!==null&&!n.preventInputChange?this.result[t][this.result[t].matchedKey]:this.rawQuery);this.helper.executeCallback.call(this,this.options.callback.onNavigateAfter,[this.node,r,t!==null&&r.eq(t).find("a:first")||undefined,t!==null&&this.result[t]||undefined,this.query,n])}},searchResult:function(n){(n||(this.item={}),this.resetLayout(),this.helper.executeCallback.call(this,this.options.callback.onSearch,[this.node,this.query])!==!1)&&(this.query.length>=this.options.minLength&&this.searchResultData(),this.helper.executeCallback.call(this,this.options.callback.onResult,[this.node,this.query,this.result,this.resultCount,this.resultCountPerGroup]))},searchResultData:function(){var y=this,p=this.options.group&&typeof this.options.group[0]!="boolean"?this.options.group[0]:"group",f=null,r,w,e,h=this.query.toLowerCase(),o=this.options.maxItemPerGroup,ut=this.filters.dynamic&&!this.helper.isEmpty(this.filters.dynamic),g={},b,c,nt,l,ft=typeof this.options.matcher=="function"&&this.options.matcher,tt,a,k,v,s,u,it,n,d,rt,i;this.options.accent&&(h=this.helper.removeAccent.call(this,h));for(n in this.source)if(this.source.hasOwnProperty(n)&&(!this.filters.dropdown||this.filters.dropdown.key!=="group"||this.filters.dropdown.value===n))for(b=typeof this.options.source[n].filter!="undefined"?this.options.source[n].filter:this.options.filter,nt=typeof this.options.source[n].matcher=="function"&&this.options.source[n].matcher||ft,v=0;v<this.source[n].length;v++){if(this.result.length>=this.options.maxItem&&!this.options.callback.onResult)break;if(!ut||this.dynamicFilter.validate.apply(this,[this.source[n][v]])){if(r=this.source[n][v],f=p==="group"?n:r[p],f&&!this.result[f]&&(this.result[f]=[],this.resultCountPerGroup[f]=0),o&&p==="group"&&this.result[f].length>=o&&!this.options.callback.onResult)break;for(u=this.options.source[n].display||this.options.display,i=0;i<u.length;i++){if(typeof b=="function"){if(c=b.call(this,r,r[u[i]]),c===undefined)break;if(!c)continue;typeof c=="object"&&(r=c)}if(~[undefined,!0].indexOf(b)){if(e=r[u[i]],!e){this.options.debug&&(g[i]={display:u[i],data:r});continue}if(e=e.toString().toLowerCase(),this.options.accent&&(e=this.helper.removeAccent.call(this,e)),w=e.indexOf(h),this.options.correlativeTemplate&&u[i]==="compiled"&&w<0&&/\s/.test(h))for(tt=!0,a=h.split(" "),k=e,s=0;s<a.length;s++)if(a[s]!==""){if(!~k.indexOf(a[s])){tt=!1;break}k=k.replace(a[s],"")}if(w<0&&!tt)continue;if(this.options.offset&&w!==0)continue;if(this.options.source[n].ignore&&this.options.source[n].ignore.test(e))continue;if(nt){if(l=nt.call(this,r,r[u[i]]),l===undefined)break;if(!l)continue;typeof l=="object"&&(r=l)}}if(!this.filters.dropdown||this.filters.dropdown.value==r[this.filters.dropdown.key]){if(this.resultCount++,this.resultCountPerGroup[f]++,this.resultItemCount<this.options.maxItem){if(o&&this.result[f].length>=o)break;r.matchedKey=u[i];this.result[f].push(r);this.resultItemCount++}break}}if(!this.options.callback.onResult){if(this.resultItemCount>=this.options.maxItem)break;if(o&&this.result[f].length>=o&&p==="group")break}}}if(this.options.debug&&(this.helper.isEmpty(g)||(t.log({node:this.node.selector,"function":"searchResult()",arguments:JSON.stringify(g),message:"Missing keys for display, make sure options.display is set properly."}),t.print())),this.options.order){u=[];for(n in this.result)if(this.result.hasOwnProperty(n)){for(i=0;i<this.result[n].length;i++)it=this.options.source[this.result[n][i].group].display||this.options.display,~u.indexOf(it[0])||u.push(it[0]);this.result[n].sort(y.helper.sort(u,y.options.order==="asc",function(n){return n.toString().toUpperCase()}))}}for(d=[],rt=typeof this.options.groupOrder=="function"?this.options.groupOrder.apply(this,[this.node,this.query,this.result,this.resultCount,this.resultCountPerGroup]):this.options.groupOrder instanceof Array?this.options.groupOrder:typeof this.options.groupOrder=="string"&&~["asc","desc"].indexOf(this.options.groupOrder)?Object.keys(this.result).sort(y.helper.sort([],y.options.groupOrder==="asc",function(n){return n.toString().toUpperCase()})):Object.keys(this.result),i=0;i<rt.length;i++)d=d.concat(this.result[rt[i]]||[]);this.result=d},buildLayout:function(){if(this.buildHtmlLayout(),this.buildBackdropLayout(),this.buildHintLayout(),this.options.callback.onLayoutBuiltBefore){var n=this.helper.executeCallback.call(this,this.options.callback.onLayoutBuiltBefore,[this.node,this.query,this.result,this.resultHtml]);n instanceof jQuery?this.resultHtml=n:this.options.debug&&(t.log({node:this.node.selector,"function":"callback.onLayoutBuiltBefore()",message:"Invalid returned value - You must return resultHtmlList jQuery Object"}),t.print())}this.resultHtml&&this.resultContainer.html(this.resultHtml);this.options.callback.onLayoutBuiltAfter&&this.helper.executeCallback.call(this,this.options.callback.onLayoutBuiltAfter,[this.node,this.query,this.result])},buildHtmlLayout:function(){var i,t;this.options.resultContainer!==!1&&(this.resultContainer||(this.resultContainer=n("<div/>",{"class":this.options.selector.result}),this.container.append(this.resultContainer)),i=this.query.toLowerCase(),this.options.accent&&(i=this.helper.removeAccent.call(this,i)),t=this,this.resultHtml=n("<ul/>",{"class":this.options.selector.list+(t.helper.isEmpty(t.result)?" empty":""),html:function(){var r,u;if(t.options.emptyTemplate&&t.helper.isEmpty(t.result))return r=typeof t.options.emptyTemplate=="function"?t.options.emptyTemplate.call(t,t.query):t.options.emptyTemplate.replace(/\{\{query}}/gi,t.query.sanitize()),r instanceof jQuery&&r[0].nodeName==="LI"?r:n("<li/>",{"class":t.options.selector.empty,html:n("<a/>",{href:"javascript:;",html:r})});for(u in t.result)t.result.hasOwnProperty(u)&&function(r,u,f){var e=u.group,l,h,v=[],a=t.options.source[u.group].display||t.options.display,o=t.options.source[u.group].href||t.options.href,c,s;t.options.group&&(t.options.group[1]?typeof t.options.group[1]=="function"?e=t.options.group[1](u):typeof t.options.group[1]=="string"&&(e=t.options.group[1].replace(/(\{\{group}})/gi,u[t.options.group[0]]||e)):typeof t.options.group[0]!="boolean"&&u[t.options.group[0]]&&(e=u[t.options.group[0]]),n(f).find('li[data-search-group="'+e+'"]')[0]||n(f).append(n("<li/>",{"class":t.options.selector.group,html:n("<a/>",{href:"javascript:;",html:e}),"data-search-group":e})));l=n("<li/>",{"class":t.options.selector.item,html:n("<a/>",{href:function(){return o&&(typeof o=="string"?o=o.replace(/\{\{([\w\-\.]+)(?:\|(\w+))?}}/g,function(n,i,r){var f=t.helper.namespace(i,u,"get","");return r&&r==="slugify"&&(f=t.helper.slugify.call(t,f)),f}):typeof o=="function"&&(o=o(u)),u.href=o),o||"javascript:;"},"data-group":e,"data-index":r,html:function(){if(s=u.group&&t.options.source[u.group].template||t.options.template,s)typeof s=="function"&&(s=s.call(t,t.query,u)),h=s.replace(/\{\{([\w\-\.]+)(?:\|(\w+))?}}/g,function(n,r,f){var e=String(t.helper.namespace(r,u,"get","")).sanitize();return f&&f==="raw"||t.options.highlight===!0&&i&&~a.indexOf(r)&&(e=t.helper.highlight.call(t,e,i.split(" "),t.options.accent)),e});else{for(var r=0;r<a.length;r++)v.push(u[a[r]]);h='<span class="'+t.options.selector.display+'">'+String(v.join(" ")).sanitize()+"<\/span>"}(t.options.highlight===!0&&i&&!s||t.options.highlight==="any")&&(h=t.helper.highlight.call(t,h,i.split(" "),t.options.accent));n(this).append(h)},click:({item:u},function(i){if(t.options.mustSelectItem&&t.helper.isEmpty(u)){i.preventDefault();return}(t.item=u,t.helper.executeCallback.call(t,t.options.callback.onClickBefore,[t.node,n(this),u,i])!==!1)&&(i.originalEvent&&i.originalEvent.defaultPrevented||i.isDefaultPrevented()||(t.query=t.rawQuery=u[u.matchedKey].toString(),t.node.val(t.query).focus(),t.searchResult(!0),t.buildLayout(),t.hideLayout(),t.helper.executeCallback.call(t,t.options.callback.onClickAfter,[t.node,n(this),u,i])))}),mouseenter:function(i){n(this).closest("ul").find("li.active").removeClass("active");n(this).closest("li").addClass("active");t.helper.executeCallback.call(t,t.options.callback.onMouseEnter,[t.node,n(this),u,i])},mouseleave:function(i){n(this).closest("li").removeClass("active");t.helper.executeCallback.call(t,t.options.callback.onMouseLeave,[t.node,n(this),u,i])}})});t.options.group?(c=n(f).find('a[data-group="'+e+'"]:last').closest("li"),c[0]||(c=n(f).find('li[data-search-group="'+e+'"]')),n(l).insertAfter(c)):n(f).append(l)}(u,t.result[u],this)}}))},buildBackdropLayout:function(){this.options.backdrop&&(this.backdrop.container||(this.backdrop.css=n.extend({opacity:.6,filter:"alpha(opacity=60)",position:"fixed",top:0,right:0,bottom:0,left:0,"z-index":1040,"background-color":"#000"},this.options.backdrop),this.backdrop.container=n("<div/>",{"class":this.options.selector.backdrop,css:this.backdrop.css}).insertAfter(this.container)),this.container.addClass("backdrop").css({"z-index":this.backdrop.css["z-index"]+1,position:"relative"}))},buildHintLayout:function(t){var f,s,e,i,r;if(this.options.hint){if(this.node[0].scrollWidth>Math.ceil(this.node.innerWidth())){this.hint.container&&this.hint.container.val("");return}var h=this,o="",t=t||this.result,u=this.query.toLowerCase();if(this.options.accent&&(u=this.helper.removeAccent.call(this,u)),this.hintIndex=null,this.query.length>=this.options.minLength){if(this.hint.container||(this.hint.css=n.extend({"border-color":"transparent",position:"absolute",top:0,display:"inline","z-index":-1,float:"none",color:"silver","box-shadow":"none",cursor:"default","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},this.options.hint),this.hint.container=n("<input/>",{type:this.node.attr("type"),"class":this.node.attr("class"),readonly:!0,unselectable:"on",tabindex:-1,click:function(){h.node.focus()}}).addClass(this.options.selector.hint).css(this.hint.css).insertAfter(this.node),this.node.parent().css({position:"relative"})),this.hint.container.css("color",this.hint.css.color),u)for(i=0;i<t.length;i++){for(s=t[i].group,f=this.options.source[s].display||this.options.display,r=0;r<f.length;r++)if(e=String(t[i][f[r]]).toLowerCase(),this.options.accent&&(e=this.helper.removeAccent.call(this,e)),e.indexOf(u)===0){o=String(t[i][f[r]]);this.hintIndex=i;break}if(this.hintIndex!==null)break}this.hint.container.val(o.length>0&&this.rawQuery+o.substring(this.query.length)||"")}}},buildDropdownLayout:function(){function e(n){n.value==="*"?delete this.filters.dropdown:this.filters.dropdown=n;this.container.removeClass("filter").find("."+this.options.selector.filterValue).html(n.display||n.value);this.node.trigger("dynamic"+i);this.node.focus()}var r,f,u;if(this.options.dropdownFilter){if(r=this,f="all",typeof this.options.dropdownFilter=="string")f=this.options.dropdownFilter;else if(this.options.dropdownFilter instanceof Array)for(u=0;u<this.options.dropdownFilter.length;u++)if(this.options.dropdownFilter[u].value==="*"&&this.options.dropdownFilter[u].display){f=this.options.dropdownFilter[u].display;break}n("<span/>",{"class":this.options.selector.filter,html:function(){n(this).append(n("<button/>",{type:"button","class":r.options.selector.filterButton,html:"<span class='"+r.options.selector.filterValue+"'>"+f+"<\/span> <span class='"+r.options.selector.dropdownCaret+"'><\/span>",click:function(t){t.stopPropagation();r.container.toggleClass("filter");var u=i+"-dropdown-filter";if(n("html").off(u),r.container.hasClass("filter"))n("html").one("click"+u+" touchstart"+u,function(){r.container.removeClass("filter")})}}));n(this).append(n("<ul/>",{"class":r.options.selector.dropdown,html:function(){var i=r.options.dropdownFilter,f,u;if(~["string","boolean"].indexOf(typeof r.options.dropdownFilter)){i=[];for(f in r.options.source)r.options.source.hasOwnProperty(f)&&i.push({key:"group",value:f});i.push({key:"group",value:"*",display:typeof r.options.dropdownFilter=="string"&&r.options.dropdownFilter||"All"})}for(u=0;u<i.length;u++)(function(i,u,f){if(!u.key&&u.value!=="*"||!u.value){r.options.debug&&(t.log({node:r.node.selector,"function":"buildDropdownLayout()",arguments:JSON.stringify(u),message:'WARNING - Missing key or value, skipping dropdown filter."'}),t.print());return}u.value==="*"&&n(f).append(n("<li/>",{"class":"divider"}));n(f).append(n("<li/>",{html:n("<a/>",{href:"javascript:;",html:u.display||u.value,click:({item:u},function(n){n.preventDefault();e.apply(r,[u])})})}))})(u,i[u],this)}}))}}).insertAfter(r.container.find("."+r.options.selector.query))}},dynamicFilter:{isEnabled:!1,init:function(){this.options.dynamicFilter&&(this.dynamicFilter.bind.call(this),this.dynamicFilter.isEnabled=!0)},validate:function(n){var u,i=null,r=null,f;for(var t in this.filters.dynamic)if(this.filters.dynamic.hasOwnProperty(t)&&(f=~t.indexOf(".")?this.helper.namespace(t,n,"get"):n[t],this.filters.dynamic[t].modifier!=="|"||i||(i=f==this.filters.dynamic[t].value||!1),this.filters.dynamic[t].modifier==="&"))if(f==this.filters.dynamic[t].value)r=!0;else{r=!1;break}return u=i,r!==null&&(u=r,r===!0&&i!==null&&(u=i)),!!u},set:function(n,t){var i=n.match(/^([|&])?(.+)/);t?this.filters.dynamic[i[2]]={modifier:i[1]||"|",value:t}:delete this.filters.dynamic[i[2]];this.dynamicFilter.isEnabled&&(this.searchResult(),this.buildLayout())},bind:function(){for(var u=this,r,f=0;f<this.options.dynamicFilter.length;f++){if(r=this.options.dynamicFilter[f],typeof r.selector=="string"&&(r.selector=n(r.selector)),!(r.selector instanceof jQuery)||!r.selector[0]||!r.key){this.options.debug&&(t.log({node:this.node.selector,"function":"buildDynamicLayout()",message:'Invalid jQuery selector or jQuery Object for "filter.selector" or missing filter.key'}),t.print());continue}(function(n){n.selector.off(i).on("change"+i,function(){u.dynamicFilter.set.apply(u,[n.key,u.dynamicFilter.getValue(this)])}).trigger("change"+i)})(r)}},getValue:function(n){var t;return n.tagName==="SELECT"?t=n.value:n.tagName==="INPUT"&&(n.type==="checkbox"?t=n.checked&&n.getAttribute("value")||n.checked||null:n.type==="radio"&&n.checked&&(t=n.value)),t}},showLayout:function(){if(!this.container.hasClass("result")&&(this.result.length||this.options.emptyTemplate||this.options.backdropOnFocus)){var t=this;n("html").off(i).on("click"+i+" touchstart"+i,function(i){n(i.target).closest(t.container)[0]||t.hideLayout()});this.container.addClass([this.result.length||this.options.emptyTemplate&&this.query.length>=this.options.minLength?"result ":"",this.options.hint&&this.query.length>=this.options.minLength?"hint":"",this.options.backdrop||this.options.backdropOnFocus?"backdrop":""].join(" "));this.helper.executeCallback.call(this,this.options.callback.onShowLayout,[this.node,this.query])}},hideLayout:function(){(this.container.hasClass("result")||this.container.hasClass("backdrop"))&&((this.container.removeClass("result hint filter"+(this.options.backdropOnFocus&&n(this.node).is(":focus")?"":" backdrop")),this.options.backdropOnFocus&&this.container.hasClass("backdrop"))||(n("html").off(i),this.helper.executeCallback.call(this,this.options.callback.onHideLayout,[this.node,this.query])))},resetLayout:function(){this.result={};this.resultCount=0;this.resultCountPerGroup={};this.resultItemCount=0;this.resultHtml=null;this.options.hint&&this.hint.container&&this.hint.container.val("")},__construct:function(){(this.extendOptions(),this.unifySourceFormat())&&(this.dynamicFilter.init.apply(this),this.init(),this.delegateEvents(),this.buildDropdownLayout(),this.helper.executeCallback.call(this,this.options.callback.onReady,[this.node]))},helper:{isEmpty:function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},removeAccent:function(n){if(typeof n=="string"){var t=this.options.accent||u;return n.toLowerCase().replace(new RegExp("["+t.from+"]","g"),function(n){return t.to[t.from.indexOf(n)]})}},slugify:function(n){return n=String(n),n!==""&&(n=this.helper.removeAccent.call(this,n),n=n.replace(/[^-a-z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")),n},sort:function(n,t,i){var r=function(t){for(var r=0;r<n.length;r++)if(typeof t[n[r]]!="undefined")return i(t[n[r]]);return t};return t=[-1,1][+!!t],function(n,i){return n=r(n),i=r(i),t*((n>i)-(i>n))}},replaceAt:function(n,t,i,r){return n.substring(0,t)+r+n.substring(t+i)},highlight:function(n,t,i){var f,u,r;for(n=String(n),f=i&&this.helper.removeAccent.call(this,n)||n,u=[],t instanceof Array||(t=[t]),t.sort(function(n,t){return t.length-n.length}),r=t.length-1;r>=0;r--){if(t[r].trim()===""){t.splice(r,1);continue}t[r]=t[r].replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}for(f.replace(new RegExp("(?:"+t.join("|")+")(?!([^<]+)?>)","gi"),function(n,t,i){u.push({offset:i,length:n.length})}),r=u.length-1;r>=0;r--)n=this.helper.replaceAt(n,u[r].offset,u[r].length,"<strong>"+n.substr(u[r].offset,u[r].length)+"<\/strong>");return n},getCaret:function(n){var i,t,r;return n.selectionStart?n.selectionStart:document.selection?(n.focus(),i=document.selection.createRange(),i==null)?0:(t=n.createTextRange(),r=t.duplicate(),t.moveToBookmark(i.getBookmark()),r.setEndPoint("EndToStart",t),r.text.length):0},executeCallback:function(n,i){if(n){var r;if(typeof n=="function")r=n;else if((typeof n=="string"||n instanceof Array)&&(typeof n=="string"&&(n=[n,[]]),r=this.helper.namespace(n[0],window),typeof r!="function")){this.options.debug&&(t.log({node:this.selector,"function":"executeCallback()",arguments:JSON.stringify(n),message:'WARNING - Invalid callback function"'}),t.print());return}return r.apply(this,(n[1]||[]).concat(i?i:[]))}},namespace:function(n,i,r,u){var o,s;if(typeof n!="string"||n==="")return this.options.debug&&(t.log({node:_node.selector,"function":"namespace()",arguments:n,message:'ERROR - Missing namespaceString"'}),t.print()),!1;var h=n.split("."),f=i||window,r=r||"get",c=u||{},e="";for(o=0,s=h.length;o<s;o++){if(e=h[o],typeof f[e]=="undefined"){if(~["get","delete"].indexOf(r))return typeof u!="undefined"?u:undefined;f[e]={}}if(~["set","create","delete"].indexOf(r)&&o===s-1)if(r==="set"||r==="create")f[e]=c;else return delete f[e],!0;f=f[e]}return f},typeWatch:function(){var n=0;return function(t,i){clearTimeout(n);n=setTimeout(t,i)}}()}},n.fn.typeahead=n.typeahead=function(n){return f.typeahead(this,n)},f={typeahead:function(i,u){if(!u||!u.source||typeof u.source!="object"){t.log({node:i.selector||u&&u.input,"function":"$.typeahead()",arguments:JSON.stringify(u&&u.source||""),message:'Undefined "options" or "options.source" or invalid source type - Typeahead dropped'});t.print();return}if(typeof i=="function"){if(!u.input){t.log({node:i.selector,"function":"$.typeahead()",message:'Undefined "options.input" - Typeahead dropped'});t.print();return}i=n(u.input)}if(!i.length||i[0].nodeName!=="INPUT"){t.log({node:i.selector,"function":"$.typeahead()",arguments:JSON.stringify(u.input),message:"Unable to find jQuery input element - Typeahead dropped"});t.print();return}return window.Typeahead[u.input||i.selector]=new r(i,u)}},t={table:{},log:function(t){t.message&&typeof t.message=="string"&&(this.table[t.message]=n.extend({node:"","function":"",arguments:""},t))},print:function(){!r.prototype.helper.isEmpty(this.table)&&console&&console.table&&((console.group!==undefined||console.table!==undefined)&&(console.groupCollapsed("--- jQuery Typeahead Debug ---"),console.table(this.table),console.groupEnd()),this.table={})}},t.log({message:"WARNING - You are using the DEBUG version. Use /dist/jquery.typeahead.min.js in production."}),t.print(),"sanitize"in String.prototype||(String.prototype.sanitize=function(){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};return this.replace(/[&<>"'\/]/g,function(t){return n[t]})}),window.console=window.console||{log:function(){}},"trim"in String.prototype||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),"indexOf"in Array.prototype||(Array.prototype.indexOf=function(n,t){t===undefined&&(t=0);t<0&&(t+=this.length);t<0&&(t=0);for(var i=this.length;t<i;t++)if(t in this&&this[t]===n)return t;return-1}),Object.keys||(Object.keys=function(n){var t=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.push(i);return t}),r}),$(document).ready(InitializeTypeAhead),function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t():typeof define=="function"&&define.amd?define(t):typeof exports=="object"?exports.Handlebars=t():n.Handlebars=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";function o(){var n=k();return n.compile=function(t,i){return f.compile(t,i,n)},n.precompile=function(t,i){return f.precompile(t,i,n)},n.AST=l["default"],n.Compiler=f.Compiler,n.JavaScriptCompiler=v["default"],n.Parser=e.parser,n.parse=e.parse,n}var u=i(8)["default"],r;t.__esModule=!0;var s=i(1),h=u(s),c=i(2),l=u(c),e=i(3),f=i(4),a=i(5),v=u(a),y=i(6),p=u(y),w=i(7),b=u(w),k=h["default"].create;r=o();r.create=o;b["default"](r);r.Visitor=p["default"];r["default"]=r;t["default"]=r;n.exports=t["default"]},function(n,t,i){"use strict";function s(){var n=new e.HandlebarsEnvironment;return f.extend(n,e),n.SafeString=l["default"],n.Exception=v["default"],n.Utils=f,n.escapeExpression=f.escapeExpression,n.VM=o,n.template=function(t){return o.template(t,n)},n}var r=i(8)["default"],u;t.__esModule=!0;var h=i(9),e=r(h),c=i(10),l=r(c),a=i(11),v=r(a),y=i(12),f=r(y),p=i(13),o=r(p),w=i(7),b=r(w);u=s();u.create=s;b["default"](u);u["default"]=u;t["default"]=u;n.exports=t["default"]},function(n,t){"use strict";t.__esModule=!0;var i={Program:function(n,t,i,r){this.loc=r;this.type="Program";this.body=n;this.blockParams=t;this.strip=i},MustacheStatement:function(n,t,i,r,u,f){this.loc=f;this.type="MustacheStatement";this.path=n;this.params=t||[];this.hash=i;this.escaped=r;this.strip=u},BlockStatement:function(n,t,i,r,u,f,e,o,s){this.loc=s;this.type="BlockStatement";this.path=n;this.params=t||[];this.hash=i;this.program=r;this.inverse=u;this.openStrip=f;this.inverseStrip=e;this.closeStrip=o},PartialStatement:function(n,t,i,r,u){this.loc=u;this.type="PartialStatement";this.name=n;this.params=t||[];this.hash=i;this.indent="";this.strip=r},ContentStatement:function(n,t){this.loc=t;this.type="ContentStatement";this.original=this.value=n},CommentStatement:function(n,t,i){this.loc=i;this.type="CommentStatement";this.value=n;this.strip=t},SubExpression:function(n,t,i,r){this.loc=r;this.type="SubExpression";this.path=n;this.params=t||[];this.hash=i},PathExpression:function(n,t,i,r,u){this.loc=u;this.type="PathExpression";this.data=n;this.original=r;this.parts=i;this.depth=t},StringLiteral:function(n,t){this.loc=t;this.type="StringLiteral";this.original=this.value=n},NumberLiteral:function(n,t){this.loc=t;this.type="NumberLiteral";this.original=this.value=Number(n)},BooleanLiteral:function(n,t){this.loc=t;this.type="BooleanLiteral";this.original=this.value=n==="true"},UndefinedLiteral:function(n){this.loc=n;this.type="UndefinedLiteral";this.original=this.value=undefined},NullLiteral:function(n){this.loc=n;this.type="NullLiteral";this.original=this.value=null},Hash:function(n,t){this.loc=t;this.type="Hash";this.pairs=n},HashPair:function(n,t,i){this.loc=i;this.type="HashPair";this.key=n;this.value=t},helpers:{helperExpression:function(n){return!!(n.type==="SubExpression"||n.params.length||n.hash)},scopedId:function(n){return/^\.|this\b/.test(n.original)},simpleId:function(n){return n.parts.length===1&&!i.helpers.scopedId(n)&&!n.depth}}};t["default"]=i;n.exports=t["default"]},function(n,t,i){"use strict";function y(n,t){if(n.type==="Program")return n;f["default"].yy=r;r.locInfo=function(n){return new r.SourceLocation(t&&t.srcName,n)};var i=new c["default"];return i.accept(f["default"].parse(n))}var u=i(8)["default"],r;t.__esModule=!0;t.parse=y;var e=i(14),f=u(e),o=i(2),s=u(o),h=i(15),c=u(h),l=i(16),a=u(l),v=i(12);t.parser=f["default"];r={};v.extend(r,a,s["default"])},function(n,t,i){"use strict";function e(){}function v(n,t,i){if(n==null||typeof n!="string"&&n.type!=="Program")throw new u["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+n);t=t||{};"data"in t||(t.data=!0);t.compat&&(t.useDepths=!0);var r=i.parse(n,t),f=(new i.Compiler).compile(r,t);return(new i.JavaScriptCompiler).compile(f,t)}function y(n,t,i){function e(){var t=i.parse(n,f),r=(new i.Compiler).compile(t,f),u=(new i.JavaScriptCompiler).compile(r,f,undefined,!0);return i.template(u)}function o(n,t){return r||(r=e()),r.call(this,n,t)}var f=arguments[1]===undefined?{}:arguments[1],r;if(n==null||typeof n!="string"&&n.type!=="Program")throw new u["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+n);return"data"in f||(f.data=!0),f.compat&&(f.useDepths=!0),r=undefined,o._setup=function(n){return r||(r=e()),r._setup(n)},o._child=function(n,t,i,u){return r||(r=e()),r._child(n,t,i,u)},o}function s(n,t){if(n===t)return!0;if(f.isArray(n)&&f.isArray(t)&&n.length===t.length){for(var i=0;i<n.length;i++)if(!s(n[i],t[i]))return!1;return!0}}function h(n){if(!n.path.parts){var t=n.path;n.path=new r["default"].PathExpression(!1,0,[t.original+""],t.original+"",t.loc)}}var o=i(8)["default"];t.__esModule=!0;t.Compiler=e;t.precompile=v;t.compile=y;var c=i(11),u=o(c),f=i(12),l=i(2),r=o(l),a=[].slice;e.prototype={compiler:e,equals:function(n){var i=this.opcodes.length,r,u,t;if(n.opcodes.length!==i)return!1;for(t=0;t<i;t++)if(r=this.opcodes[t],u=n.opcodes[t],r.opcode!==u.opcode||!s(r.args,u.args))return!1;for(i=this.children.length,t=0;t<i;t++)if(!this.children[t].equals(n.children[t]))return!1;return!0},guid:0,compile:function(n,t){var i,r;if(this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],i=t.knownHelpers,t.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},i)for(r in i)r in i&&(t.knownHelpers[r]=i[r]);return this.accept(n)},compileProgram:function(n){var r=new this.compiler,t=r.compile(n,this.options),i=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[i]=t,this.useDepths=this.useDepths||t.useDepths,i},accept:function(n){this.sourceNode.unshift(n);var t=this[n.type](n);return this.sourceNode.shift(),t},Program:function(n){var i,r,t;for(this.options.blockParams.unshift(n.blockParams),i=n.body,r=i.length,t=0;t<r;t++)this.accept(i[t]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=n.blockParams?n.blockParams.length:0,this},BlockStatement:function(n){var t,i,r;h(n);t=n.program;i=n.inverse;t=t&&this.compileProgram(t);i=i&&this.compileProgram(i);r=this.classifySexpr(n);r==="helper"?this.helperSexpr(n,t,i):r==="simple"?(this.simpleSexpr(n),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("blockValue",n.path.original)):(this.ambiguousSexpr(n,t,i),this.opcode("pushProgram",t),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue"));this.opcode("append")},PartialStatement:function(n){var t,f,r,i;if(this.usePartial=!0,t=n.params,t.length>1)throw new u["default"]("Unsupported number of partial arguments: "+t.length,n);else t.length||t.push({type:"PathExpression",parts:[],depth:0});f=n.name.original;r=n.name.type==="SubExpression";r&&this.accept(n.name);this.setupFullMustacheParams(n,undefined,undefined,!0);i=n.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i="");this.opcode("invokePartial",r,f,i);this.opcode("append")},MustacheStatement:function(n){this.SubExpression(n);n.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ContentStatement:function(n){n.value&&this.opcode("appendContent",n.value)},CommentStatement:function(){},SubExpression:function(n){h(n);var t=this.classifySexpr(n);t==="simple"?this.simpleSexpr(n):t==="helper"?this.helperSexpr(n):this.ambiguousSexpr(n)},ambiguousSexpr:function(n,t,i){var r=n.path,u=r.parts[0],f=t!=null||i!=null;this.opcode("getContext",r.depth);this.opcode("pushProgram",t);this.opcode("pushProgram",i);this.accept(r);this.opcode("invokeAmbiguous",u,f)},simpleSexpr:function(n){this.accept(n.path);this.opcode("resolvePossibleLambda")},helperSexpr:function(n,t,i){var o=this.setupFullMustacheParams(n,t,i),f=n.path,e=f.parts[0];if(this.options.knownHelpers[e])this.opcode("invokeKnownHelper",o.length,e);else if(this.options.knownHelpersOnly)throw new u["default"]("You specified knownHelpersOnly, but used the unknown helper "+e,n);else f.falsy=!0,this.accept(f),this.opcode("invokeHelper",o.length,f.original,r["default"].helpers.simpleId(f))},PathExpression:function(n){this.addDepth(n.depth);this.opcode("getContext",n.depth);var t=n.parts[0],i=r["default"].helpers.scopedId(n),u=!n.depth&&!i&&this.blockParamIndex(t);u?this.opcode("lookupBlockParam",u,n.parts):t?n.data?(this.options.data=!0,this.opcode("lookupData",n.depth,n.parts)):this.opcode("lookupOnContext",n.parts,n.falsy,i):this.opcode("pushContext")},StringLiteral:function(n){this.opcode("pushString",n.value)},NumberLiteral:function(n){this.opcode("pushLiteral",n.value)},BooleanLiteral:function(n){this.opcode("pushLiteral",n.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(n){var i=n.pairs,t=0,r=i.length;for(this.opcode("pushHash");t<r;t++)this.pushParam(i[t].value);while(t--)this.opcode("assignToHash",i[t].key);this.opcode("popHash")},opcode:function(n){this.opcodes.push({opcode:n,args:a.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(n){n&&(this.useDepths=!0)},classifySexpr:function(n){var f=r["default"].helpers.simpleId(n.path),e=f&&!!this.blockParamIndex(n.path.parts[0]),t=!e&&r["default"].helpers.helperExpression(n),i=!e&&(t||f),o,u;return i&&!t&&(o=n.path.parts[0],u=this.options,u.knownHelpers[o]?t=!0:u.knownHelpersOnly&&(i=!1)),t?"helper":i?"ambiguous":"simple"},pushParams:function(n){for(var t=0,i=n.length;t<i;t++)this.pushParam(n[t])},pushParam:function(n){var t=n.value!=null?n.value:n.original||"",i,u;this.stringParams?(t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),n.depth&&this.addDepth(n.depth),this.opcode("getContext",n.depth||0),this.opcode("pushStringParam",t,n.type),n.type==="SubExpression"&&this.accept(n)):(this.trackIds&&(i=undefined,!n.parts||r["default"].helpers.scopedId(n)||n.depth||(i=this.blockParamIndex(n.parts[0])),i?(u=n.parts.slice(1).join("."),this.opcode("pushId","BlockParam",i,u)):(t=n.original||t,t.replace&&(t=t.replace(/^\.\//g,"").replace(/^\.$/g,"")),this.opcode("pushId",n.type,t))),this.accept(n))},setupFullMustacheParams:function(n,t,i,r){var u=n.params;return this.pushParams(u),this.opcode("pushProgram",t),this.opcode("pushProgram",i),n.hash?this.accept(n.hash):this.opcode("emptyHash",r),u},blockParamIndex:function(n){for(var i,r,t=0,u=this.options.blockParams.length;t<u;t++)if(i=this.options.blockParams[t],r=i&&f.indexOf(i,n),i&&r>=0)return[t,r]}}},function(n,t,i){"use strict";function u(n){this.value=n}function r(){}function a(n,t,i,r){var u=t.popStack(),f=0,e=i.length;for(n&&e--;f<e;f++)u=t.nameLookup(u,i[f],r);return n?[t.aliasable("this.strict"),"(",u,", ",t.quotedString(i[f]),")"]:u}var e=i(8)["default"];t.__esModule=!0;var o=i(9),s=i(11),f=e(s),h=i(12),c=i(17),l=e(c);r.prototype={nameLookup:function(n,t){return r.isValidJavaScriptVariableName(t)?[n,".",t]:[n,"['",t,"']"]},depthedLookup:function(n){return[this.aliasable("this.lookup"),'(depths, "',n,'")']},compilerInfo:function(){var n=o.COMPILER_REVISION,t=o.REVISION_CHANGES[n];return[n,t]},appendToBuffer:function(n,t,i){return h.isArray(n)||(n=[n]),n=this.source.wrap(n,t),this.environment.isSimple?["return ",n,";"]:i?["buffer += ",n,";"]:(n.appendToBuffer=!0,n)},initializeBuffer:function(){return this.quotedString("")},compile:function(n,t,i,r){var l,u,h;this.environment=n;this.options=t;this.stringParams=this.options.stringParams;this.trackIds=this.options.trackIds;this.precompile=!r;this.name=this.environment.name;this.isChild=!!i;this.context=i||{programs:[],environments:[]};this.preamble();this.stackSlot=0;this.stackVars=[];this.aliases={};this.registers={list:[]};this.hashes=[];this.compileStack=[];this.inlineStack=[];this.blockParams=[];this.compileChildren(n,t);this.useDepths=this.useDepths||n.useDepths||this.options.compat;this.useBlockParams=this.useBlockParams||n.useBlockParams;for(var a=n.opcodes,o=undefined,c=undefined,e=undefined,s=undefined,e=0,s=a.length;e<s;e++)o=a[e],this.source.currentLocation=o.loc,c=c||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new f["default"]("Compile completed with content left on stack");if(l=this.createFunctionContext(r),this.isChild)return l;for(u={compiler:this.compilerInfo(),main:l},h=this.context.programs,e=0,s=h.length;e<s;e++)h[e]&&(u[e]=h[e]);return this.environment.usePartial&&(u.usePartial=!0),this.options.data&&(u.useData=!0),this.useDepths&&(u.useDepths=!0),this.useBlockParams&&(u.useBlockParams=!0),this.options.compat&&(u.compat=!0),r?u.compilerOptions=this.options:(u.compiler=JSON.stringify(u.compiler),this.source.currentLocation={start:{line:1,column:0}},u=this.objectLiteral(u),t.srcName?(u=u.toStringWithSourceMap({file:t.destName}),u.map=u.map&&u.map.toString()):u=u.toString()),u},preamble:function(){this.lastContext=0;this.source=new l["default"](this.options.srcName)},createFunctionContext:function(n){var u="",o=this.stackVars.concat(this.registers.list),f,i,r,t,e;o.length>0&&(u+=", "+o.join(", "));f=0;for(i in this.aliases)r=this.aliases[i],this.aliases.hasOwnProperty(i)&&r.children&&r.referenceCount>1&&(u+=", alias"+ ++f+"="+i,r.children[0]="alias"+f);return t=["depth0","helpers","partials","data"],(this.useBlockParams||this.useDepths)&&t.push("blockParams"),this.useDepths&&t.push("depths"),e=this.mergeSource(u),n?(t.push(e),Function.apply(this,t)):this.source.wrap(["function(",t.join(","),") {\n  ",e,"}"])},mergeSource:function(n){var e=this.environment.isSimple,f=!this.forceBuffer,r=undefined,u=undefined,t=undefined,i=undefined;return this.source.each(function(n){n.appendToBuffer?(t?n.prepend("  + "):t=n,i=n):(t&&(u?t.prepend("buffer += "):r=!0,i.add(";"),t=i=undefined),u=!0,e||(f=!1))}),f?t?(t.prepend("return "),i.add(";")):u||this.source.push('return "";'):(n+=", buffer = "+(r?"":this.initializeBuffer()),t?(t.prepend("return buffer + "),i.add(";")):this.source.push("return buffer;")),n&&this.source.prepend("var "+n.substring(2)+(r?"":";\n")),this.source.merge()},blockValue:function(n){var r=this.aliasable("helpers.blockHelperMissing"),t=[this.contextName(0)],i;this.setupHelperArgs(n,0,t);i=this.popStack();t.splice(1,0,i);this.push(this.source.functionCall(r,"call",t))},ambiguousBlockValue:function(){var i=this.aliasable("helpers.blockHelperMissing"),n=[this.contextName(0)],t;this.setupHelperArgs("",0,n,!0);this.flushInline();t=this.topStack();n.splice(1,0,t);this.pushSource(["if (!",this.lastHelper,") { ",t," = ",this.source.functionCall(i,"call",n),"}"])},appendContent:function(n){this.pendingContent?n=this.pendingContent+n:this.pendingLocation=this.source.currentLocation;this.pendingContent=n},append:function(){if(this.isInline())this.replaceStack(function(n){return[" != null ? ",n,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var n=this.popStack();this.pushSource(["if (",n," != null) { ",this.appendToBuffer(n,undefined,!0)," }"]);this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",undefined,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("this.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(n){this.lastContext=n},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(n,t,i){var r=0;i||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(n[r++]));this.resolvePath("context",n,r,t)},lookupBlockParam:function(n,t){this.useBlockParams=!0;this.push(["blockParams[",n[0],"][",n[1],"]"]);this.resolvePath("context",t,1)},lookupData:function(n,t){n?this.pushStackLiteral("this.data(data, "+n+")"):this.pushStackLiteral("data");this.resolvePath("data",t,0,!0)},resolvePath:function(n,t,i,r){var f=this,u;if(this.options.strict||this.options.assumeObjects){this.push(a(this.options.strict,this,t,n));return}for(u=t.length;i<u;i++)this.replaceStack(function(u){var e=f.nameLookup(u,t[i],n);return r?[" && ",e]:[" != null ? ",e," : ",u]})},resolvePossibleLambda:function(){this.push([this.aliasable("this.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(n,t){this.pushContext();this.pushString(t);t!=="SubExpression"&&(typeof n=="string"?this.pushString(n):this.pushStackLiteral(n))},emptyHash:function(n){this.trackIds&&this.push("{}");this.stringParams&&(this.push("{}"),this.push("{}"));this.pushStackLiteral(n?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash);this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var n=this.hash;this.hash=this.hashes.pop();this.trackIds&&this.push(this.objectLiteral(n.ids));this.stringParams&&(this.push(this.objectLiteral(n.contexts)),this.push(this.objectLiteral(n.types)));this.push(this.objectLiteral(n.values))},pushString:function(n){this.pushStackLiteral(this.quotedString(n))},pushLiteral:function(n){this.pushStackLiteral(n)},pushProgram:function(n){n!=null?this.pushStackLiteral(this.programExpression(n)):this.pushStackLiteral(null)},invokeHelper:function(n,t,i){var f=this.popStack(),u=this.setupHelper(n,t),e=i?[u.name," || "]:"",r=["("].concat(e,f);this.options.strict||r.push(" || ",this.aliasable("helpers.helperMissing"));r.push(")");this.push(this.source.functionCall(r,"call",u.callParams))},invokeKnownHelper:function(n,t){var i=this.setupHelper(n,t);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(n,t){var u;this.useRegister("helper");u=this.popStack();this.emptyHash();var i=this.setupHelper(0,n,t),f=this.lastHelper=this.nameLookup("helpers",n,"helper"),r=["(","(helper = ",f," || ",u,")"];this.options.strict||(r[0]="(helper = ",r.push(" != null ? helper : ",this.aliasable("helpers.helperMissing")));this.push(["(",r,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},invokePartial:function(n,t,i){var u=[],r=this.setupParams(t,1,u,!1);n&&(t=this.popStack(),delete r.name);i&&(r.indent=JSON.stringify(i));r.helpers="helpers";r.partials="partials";n?u.unshift(t):u.unshift(this.nameLookup("partials",t,"partial"));this.options.compat&&(r.depths="depths");r=this.objectLiteral(r);u.push(r);this.push(this.source.functionCall("this.invokePartial","",u))},assignToHash:function(n){var f=this.popStack(),i=undefined,r=undefined,u=undefined,t;this.trackIds&&(u=this.popStack());this.stringParams&&(r=this.popStack(),i=this.popStack());t=this.hash;i&&(t.contexts[n]=i);r&&(t.types[n]=r);u&&(t.ids[n]=u);t.values[n]=f},pushId:function(n,t,i){n==="BlockParam"?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(i?" + "+JSON.stringify("."+i):"")):n==="PathExpression"?this.pushString(t):n==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:r,compileChildren:function(n,t){for(var r,e=n.children,i=undefined,u=undefined,f=0,o=e.length;f<o;f++)i=e[f],u=new this.compiler,r=this.matchExistingProgram(i),r==null?(this.context.programs.push(""),r=this.context.programs.length,i.index=r,i.name="program"+r,this.context.programs[r]=u.compile(i,t,this.context,!this.precompile),this.context.environments[r]=i,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams):(i.index=r,i.name="program"+r,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams)},matchExistingProgram:function(n){for(var i,t=0,r=this.context.environments.length;t<r;t++)if(i=this.context.environments[t],i&&i.equals(n))return t},programExpression:function(n){var i=this.environment.children[n],t=[i.index,"data",i.blockParams];return(this.useBlockParams||this.useDepths)&&t.push("blockParams"),this.useDepths&&t.push("depths"),"this.program("+t.join(", ")+")"},useRegister:function(n){this.registers[n]||(this.registers[n]=!0,this.registers.list.push(n))},push:function(n){return n instanceof u||(n=this.source.wrap(n)),this.inlineStack.push(n),n},pushStackLiteral:function(n){this.push(new u(n))},pushSource:function(n){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=undefined);n&&this.source.push(n)},replaceStack:function(n){var r=["("],t=undefined,e=undefined,o=undefined,i,s,h;if(!this.isInline())throw new f["default"]("replaceStack on non-inline");i=this.popStack(!0);i instanceof u?(t=[i.value],r=["(",t],o=!0):(e=!0,s=this.incrStack(),r=["((",this.push(s)," = ",i,")"],t=this.topStack());h=n.call(this,t);o||this.popStack();e&&this.stackSlot--;this.push(r.concat(h,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var r=this.inlineStack,n,f,t,i;for(this.inlineStack=[],n=0,f=r.length;n<f;n++)t=r[n],t instanceof u?this.compileStack.push(t):(i=this.incrStack(),this.pushSource([i," = ",t,";"]),this.compileStack.push(i))},isInline:function(){return this.inlineStack.length},popStack:function(n){var i=this.isInline(),t=(i?this.inlineStack:this.compileStack).pop();if(!n&&t instanceof u)return t.value;if(!i){if(!this.stackSlot)throw new f["default"]("Invalid stack pop");this.stackSlot--}return t},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,n=t[t.length-1];return n instanceof u?n.value:n},contextName:function(n){return this.useDepths&&n?"depths["+n+"]":"depth"+n},quotedString:function(n){return this.source.quotedString(n)},objectLiteral:function(n){return this.source.objectLiteral(n)},aliasable:function(n){var t=this.aliases[n];return t?(t.referenceCount++,t):(t=this.aliases[n]=this.source.wrap(n),t.aliasable=!0,t.referenceCount=1,t)},setupHelper:function(n,t,i){var r=[],u=this.setupHelperArgs(t,n,r,i),f=this.nameLookup("helpers",t,"helper");return{params:r,paramsInit:u,name:f,callParams:[this.contextName(0)].concat(r)}},setupParams:function(n,t,i){var r={},o=[],s=[],h=[],c=undefined,f,e,u;for(r.name=this.quotedString(n),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack()),f=this.popStack(),e=this.popStack(),(e||f)&&(r.fn=e||"this.noop",r.inverse=f||"this.noop"),u=t;u--;)c=this.popStack(),i[u]=c,this.trackIds&&(h[u]=this.popStack()),this.stringParams&&(s[u]=this.popStack(),o[u]=this.popStack());return this.trackIds&&(r.ids=this.source.generateArray(h)),this.stringParams&&(r.types=this.source.generateArray(s),r.contexts=this.source.generateArray(o)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(n,t,i,r){var u=this.setupParams(n,t,i,!0);return u=this.objectLiteral(u),r?(this.useRegister("options"),i.push("options"),["options=",u]):(i.push(u),"")}},function(){for(var t="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),i=r.RESERVED_WORDS={},n=0,u=t.length;n<u;n++)i[t[n]]=!0}();r.isValidJavaScriptVariableName=function(n){return!r.RESERVED_WORDS[n]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(n)};t["default"]=r;n.exports=t["default"]},function(n,t,i){"use strict";function r(){this.parents=[]}var u=i(8)["default"];t.__esModule=!0;var e=i(11),f=u(e),o=i(2),s=u(o);r.prototype={constructor:r,mutating:!1,acceptKey:function(n,t){var i=this.accept(n[t]);if(this.mutating){if(i&&(!i.type||!s["default"][i.type]))throw new f["default"]('Unexpected node type "'+i.type+'" found when accepting '+t+" on "+n.type);n[t]=i}},acceptRequired:function(n,t){if(this.acceptKey(n,t),!n[t])throw new f["default"](n.type+" requires "+t);},acceptArray:function(n){for(var t=0,i=n.length;t<i;t++)this.acceptKey(n,t),n[t]||(n.splice(t,1),t--,i--)},accept:function(n){if(n){this.current&&this.parents.unshift(this.current);this.current=n;var t=this[n.type](n);return(this.current=this.parents.shift(),!this.mutating||t)?t:t!==!1?n:void 0}},Program:function(n){this.acceptArray(n.body)},MustacheStatement:function(n){this.acceptRequired(n,"path");this.acceptArray(n.params);this.acceptKey(n,"hash")},BlockStatement:function(n){this.acceptRequired(n,"path");this.acceptArray(n.params);this.acceptKey(n,"hash");this.acceptKey(n,"program");this.acceptKey(n,"inverse")},PartialStatement:function(n){this.acceptRequired(n,"name");this.acceptArray(n.params);this.acceptKey(n,"hash")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:function(n){this.acceptRequired(n,"path");this.acceptArray(n.params);this.acceptKey(n,"hash")},PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(n){this.acceptArray(n.pairs)},HashPair:function(n){this.acceptRequired(n,"value")}};t["default"]=r;n.exports=t["default"]},function(n,t){(function(i){"use strict";t.__esModule=!0;t["default"]=function(n){var t=typeof i!="undefined"?i:window,r=t.Handlebars;n.noConflict=function(){t.Handlebars===n&&(t.Handlebars=r)}};n.exports=t["default"]}).call(t,function(){return this}())},function(n,t){"use strict";t["default"]=function(n){return n&&n.__esModule?n:{"default":n}};t.__esModule=!0},function(n,t,i){"use strict";function s(n,t){this.helpers=n||{};this.partials=t||{};k(this)}function k(n){n.registerHelper("helperMissing",function(){if(arguments.length===1)return undefined;throw new f["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"');});n.registerHelper("blockHelperMissing",function(t,i){var f=i.inverse,o=i.fn,u;return t===!0?o(this):t===!1||t==null?f(this):v(t)?t.length>0?(i.ids&&(i.ids=[i.name]),n.helpers.each(t,i)):f(this):(i.data&&i.ids&&(u=e(i.data),u.contextPath=r.appendContextPath(i.data.contextPath,i.name),i={data:u}),o(t,i))});n.registerHelper("each",function(n,t){function l(t,i,f){u&&(u.key=t,u.index=i,u.first=i===0,u.last=!!f,c&&(u.contextPath=c+t));h=h+p(n[t],{data:u,blockParams:r.blockParams([n[t],t],[c+t,null])})}var y,s,a;if(!t)throw new f["default"]("Must pass iterator to #each");var p=t.fn,w=t.inverse,i=0,h="",u=undefined,c=undefined;if(t.data&&t.ids&&(c=r.appendContextPath(t.data.contextPath,t.ids[0])+"."),o(n)&&(n=n.call(this)),t.data&&(u=e(t.data)),n&&typeof n=="object")if(v(n))for(y=n.length;i<y;i++)l(i,i,i===n.length-1);else{s=undefined;for(a in n)n.hasOwnProperty(a)&&(s&&l(s,i-1),s=a,i++);s&&l(s,i-1,!0)}return i===0&&(h=w(this)),h});n.registerHelper("if",function(n,t){return o(n)&&(n=n.call(this)),(t.hash.includeZero||n)&&!r.isEmpty(n)?t.fn(this):t.inverse(this)});n.registerHelper("unless",function(t,i){return n.helpers["if"].call(this,t,{fn:i.inverse,inverse:i.fn,hash:i.hash})});n.registerHelper("with",function(n,t){var u,i;return o(n)&&(n=n.call(this)),u=t.fn,r.isEmpty(n)?t.inverse(this):(t.data&&t.ids&&(i=e(t.data),i.contextPath=r.appendContextPath(t.data.contextPath,t.ids[0]),t={data:i}),u(n,t))});n.registerHelper("log",function(t,i){var r=i.data&&i.data.level!=null?parseInt(i.data.level,10):1;n.log(r,t)});n.registerHelper("lookup",function(n,t){return n&&n[t]})}function e(n){var t=r.extend({},n);return t._parent=n,t}var c=i(8)["default"],l,a,u,h;t.__esModule=!0;t.HandlebarsEnvironment=s;t.createFrame=e;var w=i(12),r=c(w),b=i(11),f=c(b);t.VERSION="3.0.1";l=6;t.COMPILER_REVISION=l;a={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};t.REVISION_CHANGES=a;var v=r.isArray,o=r.isFunction,y=r.toString,p="[object Object]";s.prototype={constructor:s,logger:u,log:h,registerHelper:function(n,t){if(y.call(n)===p){if(t)throw new f["default"]("Arg not supported with multiple helpers");r.extend(this.helpers,n)}else this.helpers[n]=t},unregisterHelper:function(n){delete this.helpers[n]},registerPartial:function(n,t){if(y.call(n)===p)r.extend(this.partials,n);else{if(typeof t=="undefined")throw new f["default"]("Attempting to register a partial as undefined");this.partials[n]=t}},unregisterPartial:function(n){delete this.partials[n]}};u={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:1,log:function(n,t){if(typeof console!="undefined"&&u.level<=n){var i=u.methodMap[n];(console[i]||console.log).call(console,t)}}};t.logger=u;h=u.log;t.log=h},function(n,t){"use strict";function i(n){this.string=n}t.__esModule=!0;i.prototype.toString=i.prototype.toHTML=function(){return""+this.string};t["default"]=i;n.exports=t["default"]},function(n,t){"use strict";function r(n,t){var f=t&&t.loc,e=undefined,o=undefined,s,u;for(f&&(e=f.start.line,o=f.start.column,n+=" - "+e+":"+o),s=Error.prototype.constructor.call(this,n),u=0;u<i.length;u++)this[i[u]]=s[i[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);f&&(this.lineNumber=e,this.column=o)}t.__esModule=!0;var i=["description","fileName","lineNumber","message","name","number","stack"];r.prototype=new Error;t["default"]=r;n.exports=t["default"]},function(n,t){"use strict";function s(n){return f[n]}function h(n){for(var i,t=1;t<arguments.length;t++)for(i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&(n[i]=arguments[t][i]);return n}function c(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1}function l(n){if(typeof n!="string"){if(n&&n.toHTML)return n.toHTML();if(n==null)return"";if(!n)return n+"";n=""+n}return o.test(n)?n.replace(e,s):n}function a(n){return n||n===0?u(n)&&n.length===0?!0:!1:!0}function v(n,t){return n.path=t,n}function y(n,t){return(n?n+".":"")+t}var i,r,u;t.__esModule=!0;t.extend=h;t.indexOf=c;t.escapeExpression=l;t.isEmpty=a;t.blockParams=v;t.appendContextPath=y;var f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},e=/[&<>"'`]/g,o=/[&<>"'`]/;i=Object.prototype.toString;t.toString=i;r=function(n){return typeof n=="function"};r(/x/)&&(t.isFunction=r=function(n){return typeof n=="function"&&i.call(n)==="[object Function]"});t.isFunction=r;u=Array.isArray||function(n){return n&&typeof n=="object"?i.call(n)==="[object Array]":!1};t.isArray=u},function(n,t,i){"use strict";function c(n){var t=n&&n[0]||1,i=u.COMPILER_REVISION,f,e;if(t!==i)if(t<i){f=u.REVISION_CHANGES[i];e=u.REVISION_CHANGES[t];throw new r["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+f+") or downgrade your runtime to an older version ("+e+").");}else throw new r["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+n[1]+").");}function l(n,t){function o(i,u,f){var o,h,s,c;if(f.hash&&(u=e.extend({},u,f.hash)),i=t.VM.resolvePartial.call(this,i,u,f),o=t.VM.invokePartial.call(this,i,u,f),o==null&&t.compile&&(f.partials[f.name]=t.compile(i,n.compilerOptions,t),o=f.partials[f.name](u,f)),o!=null){if(f.indent){for(h=o.split("\n"),s=0,c=h.length;s<c;s++){if(!h[s]&&s+1===c)break;h[s]=f.indent+h[s]}o=h.join("\n")}return o}throw new r["default"]("The partial "+f.name+" could not be compiled when running in runtime-only mode");}function u(t){var r=arguments[1]===undefined?{}:arguments[1],f=r.data,e,o;return u._setup(r),!r.partial&&n.useData&&(f=p(t,f)),e=undefined,o=n.useBlockParams?[]:undefined,n.useDepths&&(e=r.depths?[t].concat(r.depths):[t]),n.main.call(i,t,i.helpers,i.partials,f,o,e)}if(!t)throw new r["default"]("No environment passed to template");if(!n||!n.main)throw new r["default"]("Unknown template object: "+typeof n);t.VM.checkRevision(n.compiler);var i={strict:function(n,t){if(!(t in n))throw new r["default"]('"'+t+'" not defined in '+n);return n[t]},lookup:function(n,t){for(var r=n.length,i=0;i<r;i++)if(n[i]&&n[i][t]!=null)return n[i][t]},lambda:function(n,t){return typeof n=="function"?n.call(t):n},escapeExpression:e.escapeExpression,invokePartial:o,fn:function(t){return n[t]},programs:[],program:function(n,t,i,r,u){var e=this.programs[n],o=this.fn(n);return t||u||r||i?e=f(this,n,o,t,i,r,u):e||(e=this.programs[n]=f(this,n,o)),e},data:function(n,t){while(n&&t--)n=n._parent;return n},merge:function(n,t){var i=n||t;return n&&t&&n!==t&&(i=e.extend({},t,n)),i},noop:t.VM.noop,compilerInfo:n.compiler};return u.isTop=!0,u._setup=function(r){r.partial?(i.helpers=r.helpers,i.partials=r.partials):(i.helpers=i.merge(r.helpers,t.helpers),n.usePartial&&(i.partials=i.merge(r.partials,t.partials)))},u._child=function(t,u,e,o){if(n.useBlockParams&&!e)throw new r["default"]("must pass block params");if(n.useDepths&&!o)throw new r["default"]("must pass parent depths");return f(i,t,n[t],u,0,e,o)},u}function f(n,t,i,r,u,f,e){function o(t){var u=arguments[1]===undefined?{}:arguments[1];return i.call(n,t,n.helpers,n.partials,u.data||r,f&&[u.blockParams].concat(f),e&&[t].concat(e))}return o.program=t,o.depth=e?e.length:0,o.blockParams=u||0,o}function a(n,t,i){return n?n.call||i.name||(i.name=n,n=i.partials[n]):n=i.partials[i.name],n}function v(n,t,i){if(i.partial=!0,n===undefined)throw new r["default"]("The partial "+i.name+" could not be found");else if(n instanceof Function)return n(t,i)}function y(){return""}function p(n,t){return t&&"root"in t||(t=t?u.createFrame(t):{},t.root=n),t}var o=i(8)["default"];t.__esModule=!0;t.checkRevision=c;t.template=l;t.wrapProgram=f;t.resolvePartial=a;t.invokePartial=v;t.noop=y;var s=i(12),e=o(s),h=i(11),r=o(h),u=i(9)},function(n,t){"use strict";t.__esModule=!0;var i=function(){function t(){this.yy={}}var n={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,content:12,COMMENT:13,CONTENT:14,openRawBlock:15,END_RAW_BLOCK:16,OPEN_RAW_BLOCK:17,helperName:18,openRawBlock_repetition0:19,openRawBlock_option0:20,CLOSE_RAW_BLOCK:21,openBlock:22,block_option0:23,closeBlock:24,openInverse:25,block_option1:26,OPEN_BLOCK:27,openBlock_repetition0:28,openBlock_option0:29,openBlock_option1:30,CLOSE:31,OPEN_INVERSE:32,openInverse_repetition0:33,openInverse_option0:34,openInverse_option1:35,openInverseChain:36,OPEN_INVERSE_CHAIN:37,openInverseChain_repetition0:38,openInverseChain_option0:39,openInverseChain_option1:40,inverseAndProgram:41,INVERSE:42,inverseChain:43,inverseChain_option0:44,OPEN_ENDBLOCK:45,OPEN:46,mustache_repetition0:47,mustache_option0:48,OPEN_UNESCAPED:49,mustache_repetition1:50,mustache_option1:51,CLOSE_UNESCAPED:52,OPEN_PARTIAL:53,partialName:54,partial_repetition0:55,partial_option0:56,param:57,sexpr:58,OPEN_SEXPR:59,sexpr_repetition0:60,sexpr_option0:61,CLOSE_SEXPR:62,hash:63,hash_repetition_plus0:64,hashSegment:65,ID:66,EQUALS:67,blockParams:68,OPEN_BLOCK_PARAMS:69,blockParams_repetition_plus0:70,CLOSE_BLOCK_PARAMS:71,path:72,dataName:73,STRING:74,NUMBER:75,BOOLEAN:76,UNDEFINED:77,NULL:78,DATA:79,pathSegments:80,SEP:81,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",13:"COMMENT",14:"CONTENT",16:"END_RAW_BLOCK",17:"OPEN_RAW_BLOCK",21:"CLOSE_RAW_BLOCK",27:"OPEN_BLOCK",31:"CLOSE",32:"OPEN_INVERSE",37:"OPEN_INVERSE_CHAIN",42:"INVERSE",45:"OPEN_ENDBLOCK",46:"OPEN",49:"OPEN_UNESCAPED",52:"CLOSE_UNESCAPED",53:"OPEN_PARTIAL",59:"OPEN_SEXPR",62:"CLOSE_SEXPR",66:"ID",67:"EQUALS",69:"OPEN_BLOCK_PARAMS",71:"CLOSE_BLOCK_PARAMS",74:"STRING",75:"NUMBER",76:"BOOLEAN",77:"UNDEFINED",78:"NULL",79:"DATA",81:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[12,1],[10,3],[15,5],[9,4],[9,4],[22,6],[25,6],[36,6],[41,2],[43,3],[43,1],[24,3],[8,5],[8,5],[11,5],[57,1],[57,1],[58,5],[63,1],[65,3],[68,3],[18,1],[18,1],[18,1],[18,1],[18,1],[18,1],[18,1],[54,1],[54,1],[73,2],[72,1],[80,3],[80,1],[6,0],[6,2],[19,0],[19,2],[20,0],[20,1],[23,0],[23,1],[26,0],[26,1],[28,0],[28,2],[29,0],[29,1],[30,0],[30,1],[33,0],[33,2],[34,0],[34,1],[35,0],[35,1],[38,0],[38,2],[39,0],[39,1],[40,0],[40,1],[44,0],[44,1],[47,0],[47,2],[48,0],[48,1],[50,0],[50,2],[51,0],[51,1],[55,0],[55,2],[56,0],[56,1],[60,0],[60,2],[61,0],[61,1],[64,1],[64,2],[70,1],[70,2]],performAction:function(n,t,i,r,u,f){var e=f.length-1,s,o;switch(u){case 1:return f[e-1];case 2:this.$=new r.Program(f[e],null,{},r.locInfo(this._$));break;case 3:this.$=f[e];break;case 4:this.$=f[e];break;case 5:this.$=f[e];break;case 6:this.$=f[e];break;case 7:this.$=f[e];break;case 8:this.$=new r.CommentStatement(r.stripComment(f[e]),r.stripFlags(f[e],f[e]),r.locInfo(this._$));break;case 9:this.$=new r.ContentStatement(f[e],r.locInfo(this._$));break;case 10:this.$=r.prepareRawBlock(f[e-2],f[e-1],f[e],this._$);break;case 11:this.$={path:f[e-3],params:f[e-2],hash:f[e-1]};break;case 12:this.$=r.prepareBlock(f[e-3],f[e-2],f[e-1],f[e],!1,this._$);break;case 13:this.$=r.prepareBlock(f[e-3],f[e-2],f[e-1],f[e],!0,this._$);break;case 14:this.$={path:f[e-4],params:f[e-3],hash:f[e-2],blockParams:f[e-1],strip:r.stripFlags(f[e-5],f[e])};break;case 15:this.$={path:f[e-4],params:f[e-3],hash:f[e-2],blockParams:f[e-1],strip:r.stripFlags(f[e-5],f[e])};break;case 16:this.$={path:f[e-4],params:f[e-3],hash:f[e-2],blockParams:f[e-1],strip:r.stripFlags(f[e-5],f[e])};break;case 17:this.$={strip:r.stripFlags(f[e-1],f[e-1]),program:f[e]};break;case 18:s=r.prepareBlock(f[e-2],f[e-1],f[e],f[e],!1,this._$);o=new r.Program([s],null,{},r.locInfo(this._$));o.chained=!0;this.$={strip:f[e-2].strip,program:o,chain:!0};break;case 19:this.$=f[e];break;case 20:this.$={path:f[e-1],strip:r.stripFlags(f[e-2],f[e])};break;case 21:this.$=r.prepareMustache(f[e-3],f[e-2],f[e-1],f[e-4],r.stripFlags(f[e-4],f[e]),this._$);break;case 22:this.$=r.prepareMustache(f[e-3],f[e-2],f[e-1],f[e-4],r.stripFlags(f[e-4],f[e]),this._$);break;case 23:this.$=new r.PartialStatement(f[e-3],f[e-2],f[e-1],r.stripFlags(f[e-4],f[e]),r.locInfo(this._$));break;case 24:this.$=f[e];break;case 25:this.$=f[e];break;case 26:this.$=new r.SubExpression(f[e-3],f[e-2],f[e-1],r.locInfo(this._$));break;case 27:this.$=new r.Hash(f[e],r.locInfo(this._$));break;case 28:this.$=new r.HashPair(r.id(f[e-2]),f[e],r.locInfo(this._$));break;case 29:this.$=r.id(f[e-1]);break;case 30:this.$=f[e];break;case 31:this.$=f[e];break;case 32:this.$=new r.StringLiteral(f[e],r.locInfo(this._$));break;case 33:this.$=new r.NumberLiteral(f[e],r.locInfo(this._$));break;case 34:this.$=new r.BooleanLiteral(f[e],r.locInfo(this._$));break;case 35:this.$=new r.UndefinedLiteral(r.locInfo(this._$));break;case 36:this.$=new r.NullLiteral(r.locInfo(this._$));break;case 37:this.$=f[e];break;case 38:this.$=f[e];break;case 39:this.$=r.preparePath(!0,f[e],this._$);break;case 40:this.$=r.preparePath(!1,f[e],this._$);break;case 41:f[e-2].push({part:r.id(f[e]),original:f[e],separator:f[e-1]});this.$=f[e-2];break;case 42:this.$=[{part:r.id(f[e]),original:f[e]}];break;case 43:this.$=[];break;case 44:f[e-1].push(f[e]);break;case 45:this.$=[];break;case 46:f[e-1].push(f[e]);break;case 53:this.$=[];break;case 54:f[e-1].push(f[e]);break;case 59:this.$=[];break;case 60:f[e-1].push(f[e]);break;case 65:this.$=[];break;case 66:f[e-1].push(f[e]);break;case 73:this.$=[];break;case 74:f[e-1].push(f[e]);break;case 77:this.$=[];break;case 78:f[e-1].push(f[e]);break;case 81:this.$=[];break;case 82:f[e-1].push(f[e]);break;case 85:this.$=[];break;case 86:f[e-1].push(f[e]);break;case 89:this.$=[f[e]];break;case 90:f[e-1].push(f[e]);break;case 91:this.$=[f[e]];break;case 92:f[e-1].push(f[e])}},table:[{3:1,4:2,5:[2,43],6:3,13:[2,43],14:[2,43],17:[2,43],27:[2,43],32:[2,43],46:[2,43],49:[2,43],53:[2,43]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:[1,11],14:[1,18],15:16,17:[1,21],22:14,25:15,27:[1,19],32:[1,20],37:[2,2],42:[2,2],45:[2,2],46:[1,12],49:[1,13],53:[1,17]},{1:[2,1]},{5:[2,44],13:[2,44],14:[2,44],17:[2,44],27:[2,44],32:[2,44],37:[2,44],42:[2,44],45:[2,44],46:[2,44],49:[2,44],53:[2,44]},{5:[2,3],13:[2,3],14:[2,3],17:[2,3],27:[2,3],32:[2,3],37:[2,3],42:[2,3],45:[2,3],46:[2,3],49:[2,3],53:[2,3]},{5:[2,4],13:[2,4],14:[2,4],17:[2,4],27:[2,4],32:[2,4],37:[2,4],42:[2,4],45:[2,4],46:[2,4],49:[2,4],53:[2,4]},{5:[2,5],13:[2,5],14:[2,5],17:[2,5],27:[2,5],32:[2,5],37:[2,5],42:[2,5],45:[2,5],46:[2,5],49:[2,5],53:[2,5]},{5:[2,6],13:[2,6],14:[2,6],17:[2,6],27:[2,6],32:[2,6],37:[2,6],42:[2,6],45:[2,6],46:[2,6],49:[2,6],53:[2,6]},{5:[2,7],13:[2,7],14:[2,7],17:[2,7],27:[2,7],32:[2,7],37:[2,7],42:[2,7],45:[2,7],46:[2,7],49:[2,7],53:[2,7]},{5:[2,8],13:[2,8],14:[2,8],17:[2,8],27:[2,8],32:[2,8],37:[2,8],42:[2,8],45:[2,8],46:[2,8],49:[2,8],53:[2,8]},{18:22,66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{18:33,66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{4:34,6:3,13:[2,43],14:[2,43],17:[2,43],27:[2,43],32:[2,43],37:[2,43],42:[2,43],45:[2,43],46:[2,43],49:[2,43],53:[2,43]},{4:35,6:3,13:[2,43],14:[2,43],17:[2,43],27:[2,43],32:[2,43],42:[2,43],45:[2,43],46:[2,43],49:[2,43],53:[2,43]},{12:36,14:[1,18]},{18:38,54:37,58:39,59:[1,40],66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{5:[2,9],13:[2,9],14:[2,9],16:[2,9],17:[2,9],27:[2,9],32:[2,9],37:[2,9],42:[2,9],45:[2,9],46:[2,9],49:[2,9],53:[2,9]},{18:41,66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{18:42,66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{18:43,66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{31:[2,73],47:44,59:[2,73],66:[2,73],74:[2,73],75:[2,73],76:[2,73],77:[2,73],78:[2,73],79:[2,73]},{21:[2,30],31:[2,30],52:[2,30],59:[2,30],62:[2,30],66:[2,30],69:[2,30],74:[2,30],75:[2,30],76:[2,30],77:[2,30],78:[2,30],79:[2,30]},{21:[2,31],31:[2,31],52:[2,31],59:[2,31],62:[2,31],66:[2,31],69:[2,31],74:[2,31],75:[2,31],76:[2,31],77:[2,31],78:[2,31],79:[2,31]},{21:[2,32],31:[2,32],52:[2,32],59:[2,32],62:[2,32],66:[2,32],69:[2,32],74:[2,32],75:[2,32],76:[2,32],77:[2,32],78:[2,32],79:[2,32]},{21:[2,33],31:[2,33],52:[2,33],59:[2,33],62:[2,33],66:[2,33],69:[2,33],74:[2,33],75:[2,33],76:[2,33],77:[2,33],78:[2,33],79:[2,33]},{21:[2,34],31:[2,34],52:[2,34],59:[2,34],62:[2,34],66:[2,34],69:[2,34],74:[2,34],75:[2,34],76:[2,34],77:[2,34],78:[2,34],79:[2,34]},{21:[2,35],31:[2,35],52:[2,35],59:[2,35],62:[2,35],66:[2,35],69:[2,35],74:[2,35],75:[2,35],76:[2,35],77:[2,35],78:[2,35],79:[2,35]},{21:[2,36],31:[2,36],52:[2,36],59:[2,36],62:[2,36],66:[2,36],69:[2,36],74:[2,36],75:[2,36],76:[2,36],77:[2,36],78:[2,36],79:[2,36]},{21:[2,40],31:[2,40],52:[2,40],59:[2,40],62:[2,40],66:[2,40],69:[2,40],74:[2,40],75:[2,40],76:[2,40],77:[2,40],78:[2,40],79:[2,40],81:[1,45]},{66:[1,32],80:46},{21:[2,42],31:[2,42],52:[2,42],59:[2,42],62:[2,42],66:[2,42],69:[2,42],74:[2,42],75:[2,42],76:[2,42],77:[2,42],78:[2,42],79:[2,42],81:[2,42]},{50:47,52:[2,77],59:[2,77],66:[2,77],74:[2,77],75:[2,77],76:[2,77],77:[2,77],78:[2,77],79:[2,77]},{23:48,36:50,37:[1,52],41:51,42:[1,53],43:49,45:[2,49]},{26:54,41:55,42:[1,53],45:[2,51]},{16:[1,56]},{31:[2,81],55:57,59:[2,81],66:[2,81],74:[2,81],75:[2,81],76:[2,81],77:[2,81],78:[2,81],79:[2,81]},{31:[2,37],59:[2,37],66:[2,37],74:[2,37],75:[2,37],76:[2,37],77:[2,37],78:[2,37],79:[2,37]},{31:[2,38],59:[2,38],66:[2,38],74:[2,38],75:[2,38],76:[2,38],77:[2,38],78:[2,38],79:[2,38]},{18:58,66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{28:59,31:[2,53],59:[2,53],66:[2,53],69:[2,53],74:[2,53],75:[2,53],76:[2,53],77:[2,53],78:[2,53],79:[2,53]},{31:[2,59],33:60,59:[2,59],66:[2,59],69:[2,59],74:[2,59],75:[2,59],76:[2,59],77:[2,59],78:[2,59],79:[2,59]},{19:61,21:[2,45],59:[2,45],66:[2,45],74:[2,45],75:[2,45],76:[2,45],77:[2,45],78:[2,45],79:[2,45]},{18:65,31:[2,75],48:62,57:63,58:66,59:[1,40],63:64,64:67,65:68,66:[1,69],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{66:[1,70]},{21:[2,39],31:[2,39],52:[2,39],59:[2,39],62:[2,39],66:[2,39],69:[2,39],74:[2,39],75:[2,39],76:[2,39],77:[2,39],78:[2,39],79:[2,39],81:[1,45]},{18:65,51:71,52:[2,79],57:72,58:66,59:[1,40],63:73,64:67,65:68,66:[1,69],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{24:74,45:[1,75]},{45:[2,50]},{4:76,6:3,13:[2,43],14:[2,43],17:[2,43],27:[2,43],32:[2,43],37:[2,43],42:[2,43],45:[2,43],46:[2,43],49:[2,43],53:[2,43]},{45:[2,19]},{18:77,66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{4:78,6:3,13:[2,43],14:[2,43],17:[2,43],27:[2,43],32:[2,43],45:[2,43],46:[2,43],49:[2,43],53:[2,43]},{24:79,45:[1,75]},{45:[2,52]},{5:[2,10],13:[2,10],14:[2,10],17:[2,10],27:[2,10],32:[2,10],37:[2,10],42:[2,10],45:[2,10],46:[2,10],49:[2,10],53:[2,10]},{18:65,31:[2,83],56:80,57:81,58:66,59:[1,40],63:82,64:67,65:68,66:[1,69],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{59:[2,85],60:83,62:[2,85],66:[2,85],74:[2,85],75:[2,85],76:[2,85],77:[2,85],78:[2,85],79:[2,85]},{18:65,29:84,31:[2,55],57:85,58:66,59:[1,40],63:86,64:67,65:68,66:[1,69],69:[2,55],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{18:65,31:[2,61],34:87,57:88,58:66,59:[1,40],63:89,64:67,65:68,66:[1,69],69:[2,61],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{18:65,20:90,21:[2,47],57:91,58:66,59:[1,40],63:92,64:67,65:68,66:[1,69],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{31:[1,93]},{31:[2,74],59:[2,74],66:[2,74],74:[2,74],75:[2,74],76:[2,74],77:[2,74],78:[2,74],79:[2,74]},{31:[2,76]},{21:[2,24],31:[2,24],52:[2,24],59:[2,24],62:[2,24],66:[2,24],69:[2,24],74:[2,24],75:[2,24],76:[2,24],77:[2,24],78:[2,24],79:[2,24]},{21:[2,25],31:[2,25],52:[2,25],59:[2,25],62:[2,25],66:[2,25],69:[2,25],74:[2,25],75:[2,25],76:[2,25],77:[2,25],78:[2,25],79:[2,25]},{21:[2,27],31:[2,27],52:[2,27],62:[2,27],65:94,66:[1,95],69:[2,27]},{21:[2,89],31:[2,89],52:[2,89],62:[2,89],66:[2,89],69:[2,89]},{21:[2,42],31:[2,42],52:[2,42],59:[2,42],62:[2,42],66:[2,42],67:[1,96],69:[2,42],74:[2,42],75:[2,42],76:[2,42],77:[2,42],78:[2,42],79:[2,42],81:[2,42]},{21:[2,41],31:[2,41],52:[2,41],59:[2,41],62:[2,41],66:[2,41],69:[2,41],74:[2,41],75:[2,41],76:[2,41],77:[2,41],78:[2,41],79:[2,41],81:[2,41]},{52:[1,97]},{52:[2,78],59:[2,78],66:[2,78],74:[2,78],75:[2,78],76:[2,78],77:[2,78],78:[2,78],79:[2,78]},{52:[2,80]},{5:[2,12],13:[2,12],14:[2,12],17:[2,12],27:[2,12],32:[2,12],37:[2,12],42:[2,12],45:[2,12],46:[2,12],49:[2,12],53:[2,12]},{18:98,66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{36:50,37:[1,52],41:51,42:[1,53],43:100,44:99,45:[2,71]},{31:[2,65],38:101,59:[2,65],66:[2,65],69:[2,65],74:[2,65],75:[2,65],76:[2,65],77:[2,65],78:[2,65],79:[2,65]},{45:[2,17]},{5:[2,13],13:[2,13],14:[2,13],17:[2,13],27:[2,13],32:[2,13],37:[2,13],42:[2,13],45:[2,13],46:[2,13],49:[2,13],53:[2,13]},{31:[1,102]},{31:[2,82],59:[2,82],66:[2,82],74:[2,82],75:[2,82],76:[2,82],77:[2,82],78:[2,82],79:[2,82]},{31:[2,84]},{18:65,57:104,58:66,59:[1,40],61:103,62:[2,87],63:105,64:67,65:68,66:[1,69],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{30:106,31:[2,57],68:107,69:[1,108]},{31:[2,54],59:[2,54],66:[2,54],69:[2,54],74:[2,54],75:[2,54],76:[2,54],77:[2,54],78:[2,54],79:[2,54]},{31:[2,56],69:[2,56]},{31:[2,63],35:109,68:110,69:[1,108]},{31:[2,60],59:[2,60],66:[2,60],69:[2,60],74:[2,60],75:[2,60],76:[2,60],77:[2,60],78:[2,60],79:[2,60]},{31:[2,62],69:[2,62]},{21:[1,111]},{21:[2,46],59:[2,46],66:[2,46],74:[2,46],75:[2,46],76:[2,46],77:[2,46],78:[2,46],79:[2,46]},{21:[2,48]},{5:[2,21],13:[2,21],14:[2,21],17:[2,21],27:[2,21],32:[2,21],37:[2,21],42:[2,21],45:[2,21],46:[2,21],49:[2,21],53:[2,21]},{21:[2,90],31:[2,90],52:[2,90],62:[2,90],66:[2,90],69:[2,90]},{67:[1,96]},{18:65,57:112,58:66,59:[1,40],66:[1,32],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{5:[2,22],13:[2,22],14:[2,22],17:[2,22],27:[2,22],32:[2,22],37:[2,22],42:[2,22],45:[2,22],46:[2,22],49:[2,22],53:[2,22]},{31:[1,113]},{45:[2,18]},{45:[2,72]},{18:65,31:[2,67],39:114,57:115,58:66,59:[1,40],63:116,64:67,65:68,66:[1,69],69:[2,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,28],78:[1,29],79:[1,31],80:30},{5:[2,23],13:[2,23],14:[2,23],17:[2,23],27:[2,23],32:[2,23],37:[2,23],42:[2,23],45:[2,23],46:[2,23],49:[2,23],53:[2,23]},{62:[1,117]},{59:[2,86],62:[2,86],66:[2,86],74:[2,86],75:[2,86],76:[2,86],77:[2,86],78:[2,86],79:[2,86]},{62:[2,88]},{31:[1,118]},{31:[2,58]},{66:[1,120],70:119},{31:[1,121]},{31:[2,64]},{14:[2,11]},{21:[2,28],31:[2,28],52:[2,28],62:[2,28],66:[2,28],69:[2,28]},{5:[2,20],13:[2,20],14:[2,20],17:[2,20],27:[2,20],32:[2,20],37:[2,20],42:[2,20],45:[2,20],46:[2,20],49:[2,20],53:[2,20]},{31:[2,69],40:122,68:123,69:[1,108]},{31:[2,66],59:[2,66],66:[2,66],69:[2,66],74:[2,66],75:[2,66],76:[2,66],77:[2,66],78:[2,66],79:[2,66]},{31:[2,68],69:[2,68]},{21:[2,26],31:[2,26],52:[2,26],59:[2,26],62:[2,26],66:[2,26],69:[2,26],74:[2,26],75:[2,26],76:[2,26],77:[2,26],78:[2,26],79:[2,26]},{13:[2,14],14:[2,14],17:[2,14],27:[2,14],32:[2,14],37:[2,14],42:[2,14],45:[2,14],46:[2,14],49:[2,14],53:[2,14]},{66:[1,125],71:[1,124]},{66:[2,91],71:[2,91]},{13:[2,15],14:[2,15],17:[2,15],27:[2,15],32:[2,15],42:[2,15],45:[2,15],46:[2,15],49:[2,15],53:[2,15]},{31:[1,126]},{31:[2,70]},{31:[2,29]},{66:[2,92],71:[2,92]},{13:[2,16],14:[2,16],17:[2,16],27:[2,16],32:[2,16],37:[2,16],42:[2,16],45:[2,16],46:[2,16],49:[2,16],53:[2,16]}],defaultActions:{4:[2,1],49:[2,50],51:[2,19],55:[2,52],64:[2,76],73:[2,80],78:[2,17],82:[2,84],92:[2,48],99:[2,18],100:[2,72],105:[2,88],107:[2,58],110:[2,64],111:[2,11],123:[2,70],124:[2,29]},parseError:function(n){throw new Error(n);},parse:function(n){function it(){var n;return n=k.lexer.lex()||1,typeof n!="number"&&(n=k.symbols_[n]||n),n}var k=this,r=[0],f=[null],t=[],h=this.table,d="",c=0,g=0,y=0,l,nt,i,p,o,u,w,s,a,e,tt,v,b;for(this.lexer.setInput(n),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={}),l=this.lexer.yylloc,t.push(l),nt=this.lexer.options&&this.lexer.options.ranges,typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError),s={};;){if(o=r[r.length-1],this.defaultActions[o]?u=this.defaultActions[o]:((i===null||typeof i=="undefined")&&(i=it()),u=h[o]&&h[o][i]),(typeof u=="undefined"||!u.length||!u[0])&&(b="",!y)){v=[];for(a in h[o])this.terminals_[a]&&a>2&&v.push("'"+this.terminals_[a]+"'");b=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[i]||i)+"'":"Parse error on line "+(c+1)+": Unexpected "+(i==1?"end of input":"'"+(this.terminals_[i]||i)+"'");this.parseError(b,{text:this.lexer.match,token:this.terminals_[i]||i,line:this.lexer.yylineno,loc:l,expected:v})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+o+", token: "+i);switch(u[0]){case 1:r.push(i);f.push(this.lexer.yytext);t.push(this.lexer.yylloc);r.push(u[1]);i=null;p?(i=p,p=null):(g=this.lexer.yyleng,d=this.lexer.yytext,c=this.lexer.yylineno,l=this.lexer.yylloc,y>0&&y--);break;case 2:if(e=this.productions_[u[1]][1],s.$=f[f.length-e],s._$={first_line:t[t.length-(e||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(e||1)].first_column,last_column:t[t.length-1].last_column},nt&&(s._$.range=[t[t.length-(e||1)].range[0],t[t.length-1].range[1]]),w=this.performAction.call(s,d,g,c,this.yy,u[1],f,t),typeof w!="undefined")return w;e&&(r=r.slice(0,-2*e),f=f.slice(0,-1*e),t=t.slice(0,-1*e));r.push(this.productions_[u[1]][0]);f.push(s.$);t.push(s._$);tt=h[r[r.length-2]][r[r.length-1]];r.push(tt);break;case 3:return!0}}return!0}},i=function(){var n={EOF:1,parseError:function(n,t){if(this.yy.parser)this.yy.parser.parseError(n,t);else throw new Error(n);},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0],t;return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,t=n.match(/(?:\r\n?|\n).*/g),t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var i=n.length,t=n.split(/(?:\r\n?|\n)/g),r,u;return this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i-1),this.offset-=i,r=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1),u=this.yylloc.range,this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===r.length?this.yylloc.first_column:0)+r[r.length-t.length].length-t[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),t=new Array(n.length+1).join("-");return n+this.upcomingInput()+"\n"+t+"^"},next:function(){var f,n,r,e,t,u,i;if(this.done)return this.EOF;for(this._input||(this.done=!0),this._more||(this.yytext="",this.match=""),u=this._currentRules(),i=0;i<u.length;i++)if(r=this._input.match(this.rules[u[i]]),r&&(!n||r[0].length>n[0].length)&&(n=r,e=i,!this.options.flex))break;return n?(t=n[0].match(/(?:\r\n?|\n).*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-t[t.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],f=this.performAction.call(this,this.yy,this,u[e],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)?f:void 0:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n!="undefined"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return n.options={},n.performAction=function(n,t,i,r){function u(n,i){return t.yytext=t.yytext.substr(n,t.yyleng-i)}var f=r;switch(i){case 0:if(t.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):t.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 14;break;case 1:return 14;case 2:return this.popState(),14;case 3:return t.yytext=t.yytext.substr(5,t.yyleng-9),this.popState(),16;case 4:return 14;case 5:return this.popState(),13;case 6:return 59;case 7:return 62;case 8:return 17;case 9:return this.popState(),this.begin("raw"),21;case 10:return 53;case 11:return 27;case 12:return 45;case 13:return this.popState(),42;case 14:return this.popState(),42;case 15:return 32;case 16:return 37;case 17:return 49;case 18:return 46;case 19:this.unput(t.yytext);this.popState();this.begin("com");break;case 20:return this.popState(),13;case 21:return 46;case 22:return 67;case 23:return 66;case 24:return 66;case 25:return 81;case 27:return this.popState(),52;case 28:return this.popState(),31;case 29:return t.yytext=u(1,2).replace(/\\"/g,'"'),74;case 30:return t.yytext=u(1,2).replace(/\\'/g,"'"),74;case 31:return 79;case 32:return 76;case 33:return 76;case 34:return 77;case 35:return 78;case 36:return 75;case 37:return 69;case 38:return 71;case 39:return 66;case 40:return 66;case 41:return"INVALID";case 42:return 5}},n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,1,42],inclusive:!0}},n}();return n.lexer=i,t.prototype=n,n.Parser=t,new t}();t["default"]=i;n.exports=t["default"]},function(n,t,i){"use strict";function u(){}function e(n,t,i){t===undefined&&(t=n.length);var r=n[t-1],u=n[t-2];return r?r.type==="ContentStatement"?(u||!i?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:i}function o(n,t,i){t===undefined&&(t=-1);var r=n[t+1],u=n[t+2];return r?r.type==="ContentStatement"?(u||!i?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:i}function f(n,t,i){var r=n[t==null?0:t+1],u;r&&r.type==="ContentStatement"&&(i||!r.rightStripped)&&(u=r.value,r.value=r.value.replace(i?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==u)}function r(n,t,i){var r=n[t==null?n.length-1:t-1],u;if(r&&r.type==="ContentStatement"&&(i||!r.leftStripped))return u=r.value,r.value=r.value.replace(i?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==u,r.leftStripped}var c=i(8)["default"],s,h;t.__esModule=!0;s=i(6);h=c(s);u.prototype=new h["default"];u.prototype.Program=function(n){var h=!this.isRootSeen,i,t,c,u,s;for(this.isRootSeen=!0,i=n.body,t=0,c=i.length;t<c;t++)if(u=i[t],s=this.accept(u),s){var l=e(i,t,h),a=o(i,t,h),v=s.openStandalone&&l,y=s.closeStandalone&&a,p=s.inlineStandalone&&l&&a;s.close&&f(i,t,!0);s.open&&r(i,t,!0);p&&(f(i,t),r(i,t)&&u.type==="PartialStatement"&&(u.indent=/([ \t]+$)/.exec(i[t-1].original)[1]));v&&(f((u.program||u.inverse).body),r(i,t));y&&(f(i,t),r((u.inverse||u.program).body))}return n};u.prototype.BlockStatement=function(n){var c,h;this.accept(n.program);this.accept(n.inverse);var t=n.program||n.inverse,i=n.program&&n.inverse,u=i,s=i;if(i&&i.chained)for(u=i.body[0].program;s.chained;)s=s.body[s.body.length-1].program;return c={open:n.openStrip.open,close:n.closeStrip.close,openStandalone:o(t.body),closeStandalone:e((u||t).body)},n.openStrip.close&&f(t.body,null,!0),i?(h=n.inverseStrip,h.open&&r(t.body,null,!0),h.close&&f(u.body,null,!0),n.closeStrip.open&&r(s.body,null,!0),e(t.body)&&o(u.body)&&(r(t.body),f(u.body))):n.closeStrip.open&&r(t.body,null,!0),c};u.prototype.MustacheStatement=function(n){return n.strip};u.prototype.PartialStatement=u.prototype.CommentStatement=function(n){var t=n.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};t["default"]=u;n.exports=t["default"]},function(n,t,i){"use strict";function e(n,t){this.source=n;this.start={line:t.first_line,column:t.first_column};this.end={line:t.last_line,column:t.last_column}}function o(n){return/^\[.*\]$/.test(n)?n.substr(1,n.length-2):n}function s(n,t){return{open:n.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function h(n){return n.replace(/^\{\{~?\!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function c(n,t,i){var f,h,u,c;i=this.locInfo(i);var e=n?"@":"",o=[],s=0,l="";for(f=0,h=t.length;f<h;f++)if(u=t[f].part,c=t[f].original!==u,e+=(t[f].separator||"")+u,c||u!==".."&&u!=="."&&u!=="this")o.push(u);else if(o.length>0)throw new r["default"]("Invalid path: "+e,{loc:i});else u===".."&&(s++,l+="../");return new this.PathExpression(n,s,o,e,i)}function l(n,t,i,r,u,f){var e=r.charAt(3)||r.charAt(2),o=e!=="{"&&e!=="&";return new this.MustacheStatement(n,t,i,o,u,this.locInfo(f))}function a(n,t,i,u){var f,e;if(n.path.original!==i){f={loc:n.path.loc};throw new r["default"](n.path.original+" doesn't match "+i,f);}return u=this.locInfo(u),e=new this.Program([t],null,{},u),new this.BlockStatement(n.path,n.params,n.hash,e,undefined,{},{},{},u)}function v(n,t,i,u,f,e){var h,o,s;if(u&&u.path&&n.path.original!==u.path.original){h={loc:n.path.loc};throw new r["default"](n.path.original+" doesn't match "+u.path.original,h);}return t.blockParams=n.blockParams,o=undefined,s=undefined,i&&(i.chain&&(i.program.body[0].closeStrip=u.strip),s=i.strip,o=i.program),f&&(f=o,o=t,t=f),new this.BlockStatement(n.path,n.params,n.hash,t,o,n.strip,s,u&&u.strip,this.locInfo(e))}var f=i(8)["default"],u,r;t.__esModule=!0;t.SourceLocation=e;t.id=o;t.stripFlags=s;t.stripComment=h;t.preparePath=c;t.prepareMustache=l;t.prepareRawBlock=a;t.prepareBlock=v;u=i(11);r=f(u)},function(n,t,i){"use strict";function f(n,t,i){var f,r,e;if(u.isArray(n)){for(f=[],r=0,e=n.length;r<e;r++)f.push(t.wrap(n[r],i));return f}return typeof n=="boolean"||typeof n=="number"?n+"":n}function o(n){this.srcFile=n;this.source=[]}var u,r,e;t.__esModule=!0;u=i(12);r=undefined;try{!1&&(e=require("source-map"),r=e.SourceNode)}catch(s){}r||(r=function(n,t,i,r){this.src="";r&&this.add(r)},r.prototype={add:function(n){u.isArray(n)&&(n=n.join(""));this.src+=n},prepend:function(n){u.isArray(n)&&(n=n.join(""));this.src=n+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});o.prototype={prepend:function(n,t){this.source.unshift(this.wrap(n,t))},push:function(n,t){this.source.push(this.wrap(n,t))},merge:function(){var n=this.empty();return this.each(function(t){n.add(["  ",t,"\n"])}),n},each:function(n){for(var t=0,i=this.source.length;t<i;t++)n(this.source[t])},empty:function(){var n=arguments[0]===undefined?this.currentLocation||{start:{}}:arguments[0];return new r(n.start.line,n.start.column,this.srcFile)},wrap:function(n){var t=arguments[1]===undefined?this.currentLocation||{start:{}}:arguments[1];return n instanceof r?n:(n=f(n,this,t),new r(t.start.line,t.start.column,this.srcFile,n))},functionCall:function(n,t,i){return i=this.generateList(i),this.wrap([n,t?"."+t+"(":"(",i,")"])},quotedString:function(n){return'"'+(n+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(n){var u=[],t,r,i;for(t in n)n.hasOwnProperty(t)&&(r=f(n[t],this),r!=="undefined"&&u.push([this.quotedString(t),":",r]));return i=this.generateList(u),i.prepend("{"),i.add("}"),i},generateList:function(n,t){for(var r=this.empty(t),i=0,u=n.length;i<u;i++)i&&r.add(","),r.add(f(n[i],this,t));return r},generateArray:function(n,t){var i=this.generateList(n,t);return i.prepend("["),i.add("]"),i}};t["default"]=o;n.exports=t["default"]}])}),Handlebars.getTemplate=function(n){var t;return $.ajax({url:"/Handlebars/"+n+".html",success:function(n){t=n},async:!1}),t},subscriptionTimeout=!1,existingAjax={ajaxValue:null},templatePreLoad=null,htmlContent=null,$(document).ready(function(){templatePreLoad===null&&(templatePreLoad=Handlebars.getTemplate("Loader"));htmlContent===null&&(htmlContent=Handlebars.compile(templatePreLoad));initializeFunctionalClasses();AddIconSharePointContent();myLegislatureBadges();removeEmptyAriaTags();initializeDirtyFields()}),$(document).ajaxComplete(function(n,t,i){i!=null&&i.url!="/MyLegislature/BadgeToasts"&&myLegislatureBadges();initializeFunctionalClasses();removeEmptyAriaTags();initializeDirtyFields()}),$(window).bind("popstate",restoreState),navigator.userAgent.match(/Trident\/7\./))$("body").on("mousewheel",function(){if(!$("body").hasClass("modal-open")||!$("main").has("#mediaGallery")){event.preventDefault();var n=event.wheelDelta,t=window.pageYOffset;window.scrollTo(0,t-n)}});fileDownloadCheckTimer={};$(document).ready(function(){var n,t,i;truncateExternalHash();n=queryStringToJSON();t=n.authenticationStatus;t&&(i=n.provider,i&&window.history&&history.pushState&&(delete n.provider,delete n.authenticationStatus,window.history.pushState("",document.title,window.location.pathname+($.isEmptyObject(n)?"":"?"+$.param(n)))));$("#forgotPasswordModal").on("hidden.bs.modal",function(){$.post("/Account/GetForgotPasswordModalForm",function(n){$("#forgotPasswordModalForm").html(n)})})});$(function(){$('td[data-toggle="tooltip"]').each(function(){var n=$(this).clone().css({display:"inline",width:"auto",visibility:"hidden"}).appendTo("body");$(n).width()>$(this).width()?$(this).tooltip():$(this).removeAttr("title");$(n).remove()})});$(".nav-tabs-dropdown").each(function(n,t){$(t).html($(t).next("ul").find("li.active a").text()+' <span class="fa fa-caret-down"><\/span>')});$(".nav-tabs-dropdown").on("click",function(n){n.preventDefault();$(n.target).toggleClass("open").next("ul").slideToggle()});$(".nav-tabs .tab a").on("click",function(n){$(n.target).closest("ul").prev("button").html($(this).text()+' <span class="fa fa-caret-down"><\/span>')});$(window).resize(function(){$(window).width()>768&&$(".nav-tabs").removeAttr("style")});$(document).on("ready",function(){initDatePicker();$(document).on("ajaxComplete",initDatePicker)});(passwordTooltip=function(){$('[data-toggle="password-tooltip"]').tooltip({html:!0,template:'<div class="tooltip tooltip-passwordHelper" role="tooltip" aria-hidden="true"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',title:function(){return'<h2 class="h5">Your Password must have:<\/h2>   <ul class="fa-ul">       <li><span id="passwordLength" class="fa fa-li fa-check-circle reqUnmet"><\/span>7 or more characters<\/li>       <li><span id="passwordNumeric" class="fa fa-li fa-check-circle reqUnmet"><\/span>At least 1 number<\/li>       <li><span id="passwordCapital" class="fa fa-li fa-check-circle reqUnmet"><\/span>At least 1 capital letter<\/li>       <li><span id="passwordLower" class="fa fa-li fa-check-circle reqUnmet"><\/span>At least 1 lowercase letter<\/li>   <\/ul>'},trigger:"focus"})})();$(document).on("keyup focus","input.fnPasswordStrength",passwordStrength);(function(){function n(){if($(window).height()>500){var n=$(window).height()*.6-($(".modal-footer").outerHeight()+$(".modal-header").outerHeight());$("#billModal, #billPopUp").find(".modal-body").css("height",n+25);$("#printFrame,#originalFrame,#changedFrame").css("height",n)}else $("#billModal, #billPopUp").find(".modal-body").css("height","275px"),$("#printFrame,#originalFrame,#changedFrame").css("height","250px")}$(document).ajaxComplete(function(){n()});$(window).on("resize",function(){n()})})();$(document).ready(function(){var n=$("#pinslip"),i,t;n.length&&n[0].offsetHeight<n[0].scrollHeight&&(i='<a href="#" type="button" id="expandButton" class="expandPinslip"> Expand Pinslip&nbsp;<span class="fa fa-angle-double-down"><\/span><\/a>',t=$(i).insertAfter(n),t.click(function(i){i.preventDefault();n.hasClass("open")?(n.animate({"max-height":100},500),t.html('Expand Pinslip&nbsp;<span class="fa fa-angle-double-down"><\/span>')):(n.animate({"max-height":n[0].scrollHeight},500),t.html('Collapse Pinslip&nbsp;<span class="fa fa-angle-double-up"><\/span>'));n.toggleClass("open")}))});!function(n){n(["jquery"],function(n){return function(){function v(n,t,r){return u({type:f.error,iconClass:i().iconClasses.error,message:n,optionsOverride:r,title:t})}function r(r,u){return r||(r=i()),t=n("#"+r.containerId),t.length?t:(u&&(t=nt(r)),t)}function y(n,t,r){return u({type:f.info,iconClass:i().iconClasses.info,message:n,optionsOverride:r,title:t})}function p(n){o=n}function w(n,t,r){return u({type:f.success,iconClass:i().iconClasses.success,message:n,optionsOverride:r,title:t})}function b(n,t,r){return u({type:f.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:r,title:t})}function k(n){var u=i();t||r(u);h(n,u)||g(u)}function d(u){var f=i();return t||r(f),u&&0===n(":focus",u).length?void e(u):void(t.children().length&&t.remove())}function g(i){for(var u=t.children(),r=u.length-1;r>=0;r--)h(n(u[r]),i)}function h(t,i){return t&&0===n(":focus",t).length?(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){e(t)}}),!0):!1}function nt(i){return t=n("<div/>").attr("id",i.containerId).addClass(i.positionClass).attr("aria-live","polite").attr("role","alert"),t.appendTo(n(i.target)),t}function tt(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">&times;<\/button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function c(n){o&&o(n)}function u(u){function v(t){if(!n(":focus",o).length||t)return(clearTimeout(h.intervalId),o[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){e(o);f.onHidden&&"hidden"!==a.state&&f.onHidden();a.state="hidden";a.endTime=new Date;c(a)}}))}function g(){(f.timeOut>0||f.extendedTimeOut>0)&&(w=setTimeout(v,f.extendedTimeOut),h.maxHideTime=parseFloat(f.extendedTimeOut),h.hideEta=(new Date).getTime()+h.maxHideTime)}function nt(){clearTimeout(w);h.hideEta=0;o.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function tt(){var n=(h.hideEta-(new Date).getTime())/h.maxHideTime*100;b.width(n+"%")}var f=i(),p=u.iconClass||f.iconClass;if("undefined"!=typeof u.optionsOverride&&(f=n.extend(f,u.optionsOverride),p=u.optionsOverride.iconClass||p),f.preventDuplicates){if(u.message===s)return;s=u.message}l++;t=r(f,!0);var w=null,o=n("<div/>"),k=n("<div/>"),d=n("<div/>"),b=n("<div/>"),y=n(f.closeHtml),h={intervalId:null,hideEta:null,maxHideTime:null},a={toastId:l,state:"visible",startTime:new Date,options:f,map:u};return u.iconClass&&o.addClass(f.toastClass).addClass(p),u.title&&(k.append(u.title).addClass(f.titleClass),o.append(k)),u.message&&(d.append(u.message).addClass(f.messageClass),o.append(d)),f.closeButton&&(y.addClass("toast-close-button").attr("role","button"),o.prepend(y)),f.progressBar&&(b.addClass("toast-progress"),o.prepend(b)),o.hide(),f.newestOnTop?t.prepend(o):t.append(o),o[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(w=setTimeout(v,f.timeOut),h.maxHideTime=parseFloat(f.timeOut),h.hideEta=(new Date).getTime()+h.maxHideTime,f.progressBar&&(h.intervalId=setInterval(tt,10))),o.hover(nt,g),!f.onclick&&f.tapToDismiss&&o.click(v),f.closeButton&&y&&y.click(function(n){n.stopPropagation?n.stopPropagation():void 0!==n.cancelBubble&&n.cancelBubble!==!0&&(n.cancelBubble=!0);v(!0)}),f.onclick&&o.click(function(){f.onclick();v()}),c(a),f.debug&&console&&console.log(a),o}function i(){return n.extend({},tt(),a.options)}function e(n){t||(t=r());n.is(":visible")||(n.remove(),n=null,0===t.children().length&&(t.remove(),s=void 0))}var t,o,s,l=0,f={error:"error",info:"info",success:"success",warning:"warning"},a={clear:k,remove:d,error:v,getContainer:r,info:y,options:{},subscribe:p,success:w,version:"2.1.0",warning:b};return a}()})}("function"==typeof define&&define.amd?define:function(n,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)})