PageSourceSearch

https://www.fec.gov/static/js/2649-4ce5fd3f8c8d10e57fc4.js

js fec.gov collected 2026-09-24 07:25:46 UTC 43,344 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[2649],{
1"./fec/static/js/modules/filters/filter-base.js":function(t,e,i){"use strict";i.d(e,{Ay:function(){return d},eC:function(){return l}});var n=i("../node_modules/underscore/modules/escape.js"),a=i("../node_modules/jquery/dist/jquery.js");function s(t){this.$element=t,this.formType=this.getFormType(),this.modifiesFilter=this.$element.data("modifies-filter"),this.modifiesProperty=this.$element.data("modifies-property"),this.$element.on("change",this.handleChange.bind(this))}s.prototype.getFormType=function(){return this.$element.find("input[type=checkbox]").length>0?"checkbox":this.$element.find("select").length>0?"select":void 0},s.prototype.getValue=function(){let t;return"checkbox"===this.formType?(t=[],this.$element.find("input:checked").each((function(){t.push(a(this).val())}))):"select"===this.formType&&(t=this.$element.find("select").val()),t},s.prototype.handleChange=function(){this.$element.trigger("filter:modify",[{filterName:this.modifiesFilter,filterProperty:this.modifiesProperty,filterValue:this.getValue()}])};var o=i("../node_modules/jquery/dist/jquery.js");function l(t){return Array.isArray(t)?t:[t]}function d(t){this.$elm=o(t),this.$input=this.$elm.find('input:not([name^="_"])'),this.$filterLabel=this.$elm.closest(".accordion__content").prev(),this.$elm.on("click",".js-filter-feedback",(function(){o(document.body).trigger("feedback:open")})),this.name=this.$elm.data("name")||this.$input.attr("name"),this.fields=[this.name],this.lastAction,this.$elm.hasClass("js-filter-control")&&new s(this.$elm),this.$elm.hasClass("js-sub-filter")&&(this.isSubfilter=!0),this.isSubfilter||(o(document.body).on("filter:added",this.handleAddEvent.bind(this)),o(document.body).on("filter:removed",this.handleRemoveEvent.bind(this)),o(document.body).on("filter:changed",this.setLastAction.bind(this)))}d.prototype.fromQuery=function(t){return this.setValue(t[this.name]),this.loadedOnce=!0,this},d.prototype.setValue=function(t){const e=this.$input.data("temp")?this.$elm.find("#"+this.$input.data("temp")):this.$input;return e.val(function(t,e){return"checkbox"===t.attr("type")?l(e):e}(e,t)).trigger("change"),this},d.prototype.formatValue=function(t,e){let i=(0,n.A)(t.data("prefix"));const a=(0,n.A)(t.data("suffix"));let s=(0,n.A)(e);return i&&(i="$"===i?i:i+" ",s='<span class="prefix">'+i+"</span>"+s),a&&(s=s+'<span class="suffix"> '+a+"</span>"),s},d.prototype.handleAddEvent=function(t,e){if(e.name!==this.name);else{const i=e.filterLabel||this.$filterLabel;this.increment(i),this.setLastAction(t,e)}},d.prototype.handleRemoveEvent=function(t,e){if(e.name!==this.name||!0!==e.loadedOnce);else{const i=e.filterLabel||this.$filterLabel;this.decrement(i),this.setLastAction(t,e)}},d.prototype.increment=function(t){const e=t.find(".filter-count");e.html()?e.html(parseInt(e.html(),10)+1):t.append(' <span class="filter-count">1</span>')},d.prototype.decrement=function(t){const e=t.find(".filter-count");"1"===e.html()?e.remove():e.html(parseInt(e.html(),10)-1)},d.prototype.setLastAction=function(t,e){e.name!==this.name||("filter:added"===t.type?this.lastAction="Filter added":"filter:removed"===t.type?this.lastAction="Filter removed":this.lastAction="Filter changed")},d.prototype.disable=function(){this.$elm.find("input, label, button, .label").each((function(){const t=o(this);t.addClass("is-disabled").prop("disabled",!0),(t.is(":checked")||t.val())&&t.trigger("filter:disabled",{key:t.attr("id")})})),this.isEnabled=!1},d.prototype.enable=function(){this.$elm.find("input, label, button, .label").each((function(){const t=o(this);t.removeClass("is-disabled").prop("disabled",!1),t.trigger("filter:enabled",{key:t.attr("id")})})),this.isEnabled=!0}},
1"./fec/static/js/modules/filters/filter-panel.js":function(t,e,i){"use strict";i.d(e,{A:function(){return Z}});var n=i("../node_modules/underscore/modules/chain.js"),a=i("../node_modules/underscore/modules/each.js"),s=i("../node_modules/underscore/modules/extend.js"),o=i("../node_modules/underscore/modules/isEmpty.js"),l=i("../node_modules/underscore/modules/reduce.js"),d=i("../node_modules/urijs/src/URI.js"),r=i.n(d),h=i("./fec/static/js/modules/filters/filter-base.js"),c=i("../node_modules/jquery/dist/jquery.js");function u(t){h.Ay.call(this,t),this.removable=this.$elm.data("removable")||!1,this.$elm.on("change",this.handleChange.bind(this)),this.removable&&(c(document.body).on("tag:removeAll",this.handleClearFilters.bind(this)),this.$elm.on("click",".js-remove",this.removeCheckbox.bind(this)))}u.prototype=Object.create(h.Ay.prototype),u.constructor=u,u.prototype.handleChange=function(t){const e=c(t.target),i=e.attr("id"),n=this.$elm.find('label[for="'+i+'"]'),a=e.data("loaded-once")||!1,s=e.is(":checked")?"filter:added":"filter:removed";a&&(n.addClass("is-loading"),e.parent().hasClass("dropdown__item")&&this.$elm.find('button[data-name="'+e.attr("name")+'"]').addClass("is-loading")),e.trigger(s,[{key:i,value:this.formatValue(e,n.text()),loadedOnce:a,filterLabel:this.$filterLabel,name:this.name}]),e.data("loaded-once",!0)},u.prototype.removeCheckbox=function(t,e){let i=c(t.target);e&&(i=this.$selected.find("#"+e.key)),i.closest("li").remove()},u.prototype.handleClearFilters=function(){const t=this;this.$elm.find("input:checkbox:not(:checked)").each((function(){t.removeCheckbox({target:this})}))};var m=i("../node_modules/inputmask/dist/inputmask.js"),p=i.n(m),f=i("../node_modules/moment/moment.js"),y=i.n(f),g=i("../node_modules/jquery/dist/jquery.js");function v(t){h.Ay.call(this,t),this.validateInput=this.$elm.data("validate")||!1,this.$range=this.$elm.find(".js-date-range"),this.$grid=this.$elm.find(".js-date-grid"),this.$minDate=this.$elm.find(".js-min-date"),this.$maxDate=this.$elm.find(".js-max-date"),this.$submit=this.$elm.find("button"),p()({inputFormat:"mm/dd/yyyy",alias:"datetime",oncomplete:this.validate.bind(this)}).mask(this.$minDate),p()({inputFormat:"mm/dd/yyyy",alias:"datetime",oncomplete:this.validate.bind(this)}).mask(this.$maxDate),this.$input.on("change",this.handleInputChange.bind(this)),this.fields=["min_"+this.name,"max_"+this.name],this.$minDate.on("focus",this.handleMinDateSelect.bind(this)),this.$maxDate.on("focus",this.handleMaxDateSelect.bind(this)),this.$elm.on("click",".date-range__grid li",this.handleGridItemSelect.bind(this)),g(document.body).on("filter:modify",this.handleModifyEvent.bind(this)),g(document.body).on("tag:removeAll",this.handleRemoveAll.bind(this))}v.prototype=Object.create(h.Ay.prototype),v.constructor=v,v.prototype.handleInputChange=function(t){var e,i=g(t.target),n=i.val(),a=i.data("loaded-once")||!1,s=i.data("range")||!1,o=!0;i.data("removable")&&(o=!1,i.data("loaded-once",!0)),i.data("had-value")&&n.length>0?e="filter:renamed":n.length>0?(e="filter:added",i.data("had-value",!0)):(e="filter:removed",i.data("had-value",!1)),this.setupDateGrid(),a&&this.$submit.addClass("is-loading"),i.trigger(e,[{key:i.attr("id"),value:this.formatValue(i,n),loadedOnce:a,range:s,rangeName:"date",name:this.name,nonremovable:o,removeOnSwitch:!0}]),"filter:renamed"===e&&i.data("loaded-once",!0)},v.prototype.validate=function(){if(this.validateInput){var t=[this.minYear,this.maxYear],e=this.$minDate.val()?parseInt(this.$minDate.val().split("/")[2]):this.minYear,i=this.$maxDate.val()?parseInt(this.$maxDate.val().split("/")[2]):this.maxYear;t.indexOf(e)>-1&&t.indexOf(i)>-1?(this.hideWarning(),this.$elm.trigger("filters:validation",[{isValid:!0}])):(this.showWarning(),this.$elm.trigger("filters:validation",[{isValid:!1}]))}},v.prototype.fromQuery=function(t){return(t["min_"+this.name]||t["max_"+this.name])&&this.setValue([t["min_"+this.name],t["max_"+this.name]]),this},v.prototype.setValue=function(t){t=(0,h.eC)(t),this.$minDate.val(t[0]).trigger("change"),this.$maxDate.val(t[1]).trigger("change")},v.prototype.handleModifyEvent=function(t,e){var i=new Date;e.filterName===this.name&&(this.maxYear=parseInt(e.filterValue),this.minYear=this.maxYear-1,this.$minDate.val("01/01/"+this.minYear.toString()).trigger("change"),this.maxYear===i.getFullYear()?(i=y()(i).format("MM/DD/YYYY"),this.$maxDate.val(i).trigger("change")):this.$maxDate.val("12/31/"+this.maxYear.toString()).trigger("change"),this.validate())},v.prototype.handleRemoveAll=function(t,e){function i(t){t.val(""),t.data("had-value",!1),t.trigger("filter:removed",{loadedOnce:!0})}(e.forceRemove||!1)&&(i(this.$minDate),i(this.$maxDate))},v.prototype.setupDateGrid=function(){var t,e,i=this.$minDate.val().split("/"),n=this.$maxDate.val().split("/"),a=this.$grid.find(".date-range__row").eq(0),s=this.$grid.find(".date-range__row").eq(1),o=i[0],l=i[2],d=n[0],r=n[2];a.find(".date-range__year").html(this.minYear),a.find("ul").attr("data-year",this.minYear),s.find(".date-range__year").html(this.maxYear),s.find("ul").attr("data-year",this.maxYear),t=this.$grid.find('ul[data-year="'+l+'"] li[data-month="'+o+'"]'),e=this.$grid.find('ul[data-year="'+r+'"] li[data-month="'+d+'"]'),this.handleDateGridRange(t,e)},v.prototype.handleDateGridRange=function(t,e){this.$grid.find("li").removeClass(),t.addClass("selected month--begin"),e.addClass("selected month--end"),t.is(e)||(t.nextUntil(".month--end").addClass("selected"),e.prevUntil(".month--begin").addClass("selected"))},v.prototype.handleMinDateSelect=function(){var t=this,e=this.$grid.find(".month--begin"),i=this.$grid.find(".month--end");this.$grid.show().removeClass("pick-max").addClass("pick-min"),this.$grid.find(".is-active").removeClass("is-active"),e.addClass("is-active"),this.$grid.find("li").on("mouseenter",(function(){parseInt(g(this).parent().attr("data-year")+g(this).attr("data-month"))<=parseInt(i.parent().attr("data-year")+i.attr("data-month"))?(t.$grid.removeClass("is-invalid"),t.handleDateGridRange(g(this),i)):t.$grid.addClass("is-invalid")})).on("mouseleave",(function(){t.handleDateGridRange(e,i),e.addClass("is-active")}))},v.prototype.handleMaxDateSelect=function(){var t=this,e=this.$grid.find(".month--begin"),i=this.$grid.find(".month--end");this.$grid.show().removeClass("pick-min").addClass("pick-max"),this.$grid.find(".is-active").removeClass("is-active"),i.addClass("is-active"),this.$grid.find("li").on("mouseenter",(function(){parseInt(e.parent().attr("data-year")+e.attr("data-month"))<=parseInt(g(this).parent().attr("data-year")+g(this).attr("data-month"))?(t.$grid.removeClass("is-invalid"),t.handleDateGridRange(e,g(this))):t.$grid.addClass("is-invalid")})).on("mouseleave",(function(){t.handleDateGridRange(e,i),i.addClass("is-active")}))},v.prototype.handleGridItemSelect=function(t){var e=[],i=g(t.target).parent(),n=i.data("month"),a=i.parent().attr("data-year");
1if(g(t.target).hasClass("selected")&&(i=g(t.target)),this.$grid.hasClass("pick-min"))e[0]=n+"/01/"+a,e[1]=this.$maxDate.val();else{var s=new Date(a,n,0);s=s.getDate(),e[0]=this.$minDate.val(),e[1]=n+"/"+s+"/"+a}if(!this.$grid.hasClass("is-invalid")){var o=this.$grid.hasClass("pick-min")?this.$maxDate:this.$submit;this.$grid.removeClass("pick-min pick-max"),this.$grid.find("li").off("mouseenter mouseleave"),this.setValue(e),this.$grid.addClass("is-invalid"),o.trigger("focus")}},v.prototype.showWarning=function(){if(!this.showingWarning){var t='<div class="message message--error message--small">You entered a date that&apos;s outside the two-year time period. Please enter a receipt date from <strong>'+this.minYear+"-"+this.maxYear+"</strong></div>";this.$range.after(t),this.showingWarning=!0,this.$grid.hide()}},v.prototype.hideWarning=function(){this.showingWarning&&(this.$elm.find(".message").remove(),this.showingWarning=!1)};var $=i("../node_modules/underscore/modules/map.js"),b=i("../node_modules/underscore/modules/range.js"),x=i("./fec/static/js/templates/election-cycles.hbs"),k=i.n(x),w=i("../node_modules/jquery/dist/jquery.js");function C(t){h.Ay.call(this,t),this.duration=parseInt(this.$elm.data("duration")),this.cycleName=this.$elm.data("cycle-name"),this.fullName=this.$elm.data("full-name"),this.defaultCycle=this.$elm.data("default-cycle"),this.$election=this.$elm.find(".js-election"),this.$cycles=this.$elm.find(".js-cycles"),this.$cycle=this.$elm.find('input[type="hidden"][name="'+this.cycleName+'"]'),this.$full=this.$elm.find('input[type="hidden"][name="'+this.fullName+'"]'),this.loadedOnce=!1,this.$election.on("change",this.handleElectionChange.bind(this)),this.$cycles.on("change",this.handleCycleChange.bind(this)),this.fields=[this.name,this.cycleName,this.fullName]}C.prototype=Object.create(h.Ay.prototype),C.constructor=C,C.prototype.fromQuery=function(t){var e=t[this.name]||this.defaultCycle,i=t[this.cycleName]||e,n=null===t[this.fullName]||t[this.fullName];return e&&(this.$election.val(e),this.handleElectionChange({target:this.$election}),this.$cycles.find('input[value="'+i+":"+n+'"]').prop("checked",!0).trigger("change")),this},C.prototype.handleChange=function(){},C.prototype.handleElectionChange=function(t){if(2!==this.duration){var e=parseInt(w(t.target).val()),i=(0,b.A)(e-this.duration+2,e+2,2),n=(0,$.A)(i,function(t){return{name:this.name,cycle:t,min:t-1,max:t,full:!1}}.bind(this));n.unshift({name:this.name,cycle:e,min:e-this.duration+1,max:e,full:!0}),this.$cycles.html(k()(n)),this.$cycles.find("input").eq(0).prop("checked",!0).trigger("change")}},C.prototype.handleCycleChange=function(t){var e=w(t.target).val().split(":");this.$cycle.val(e[0]).trigger("change").attr("checked",!0),this.$full.val(e[1]).trigger("change"),this.setTag()},C.prototype.setTag=function(){var t=this.$election.val()+" election: "+this.$cycles.find(":checked").data("display-value"),e=this.loadedOnce?"filter:renamed":"filter:added";this.$election.trigger(e,[{key:"election",value:t,nonremovable:!0,removeOnSwitch:!1}]),this.loadedOnce=!0};var j=i("./fec/static/js/modules/filters/keyword-proximity-filter.js"),_=i("../node_modules/jquery/dist/jquery.js");function A(t){h.Ay.call(this,t),this.subfilters=this.activateSubfilters()}A.prototype=Object.create(h.Ay.prototype),A.constructor=A,A.prototype.activateSubfilters=function(){var t=[];return this.$elm.find('.js-sub-filter[data-name="'+this.name+'"]').each((function(){var e=new u(this);e.$filterLabel=_("#"+e.$elm.data("filter-label")),t.push(e)})),t},A.prototype.fromQuery=function(t){this.subfilters.forEach((function(e){e.fromQuery(t)}))};var I=i("../node_modules/jquery/dist/jquery.js");function D(t){h.Ay.call(this,t),this.id=this.$input.attr("id"),this.$submit=this.$elm.parent().find("button"),this.$input.on("change",this.handleChange.bind(this)),this.$input.on("keyup",this.handleKeyup.bind(this)),this.$input.data("inputmask")&&p()({mask:this.$input.data("inputmask")}).mask(this.$input)}D.prototype=Object.create(h.Ay.prototype),D.constructor=D,D.prototype.handleChange=function(t){const e=I(t.target),i=e.val(),n=e.data("loaded-once")||!1,a=e.data("range")||"false";let s,o=this.name.split("_")[1];if((this.name.match(/_/g)||[]).length>2){const t=this.name.split("_");o=this.name.substr(t[0].length+1)}e.data("had-value")&&i.length>0?s="filter:renamed":i.length>0?(s="filter:added",e.data("had-value",!0)):(s="filter:removed",e.data("had-value",!1)),i.length>0?this.$submit.removeClass("is-disabled"):this.$submit.addClass("is-disabled"),n&&this.$submit.addClass("is-loading"),e.trigger(s,[{key:e.attr("id"),value:this.formatValue(e,i),loadedOnce:n,name:this.name,range:a,rangeName:o}]),e.data("loaded-once",!0)},D.prototype.handleKeyup=function(){this.$submit.removeClass("is-disabled")};var q=i("../node_modules/jquery/dist/jquery.js");
1function S(t){h.Ay.call(this,t),this.$input=this.$elm.find("select"),this.name=this.$input.attr("name"),this.requiredDefault=this.$elm.data("required-default")||null,this.loadedOnce=!1,this.$input.on("change",this.handleChange.bind(this)),this.setRequiredDefault()}S.prototype=Object.create(h.Ay.prototype),S.constructor=S,S.prototype.setRequiredDefault=function(){this.requiredDefault&&(this.$input.find('option[value=""]').remove(),this.setValue(this.requiredDefault))},S.prototype.fromQuery=function(t){this.setValue(t[this.name])},S.prototype.setValue=function(t){this.$input.find("option[selected]").prop("selected",!1),this.$input.find('option[value="'+t+'"]').prop("selected",!0),this.$input.trigger("change")},S.prototype.handleChange=function(t){const e=q(t.target),i=e.val(),n=e.find(`option[value="${i}"]`);let a;e.data("had-value")&&i.length>0?a="filter:renamed":i.length>0?(a="filter:added",e.data("had-value",!0)):(a="filter:removed",e.data("had-value",!1));e.data("filter-change")&&(e.data("removeable-filter")?e.trigger(a,{key:e.attr("id"),value:this.formatValue(e,n.text()),name:this.name,nonremovable:!1,lineType:n.data("line-type")?`${n.data("line-type")} - `:"",loadedOnce:e.data("loaded-once")||!0}):e.trigger(a,[{key:e.attr("id"),value:this.formatValue(e,n.text()),name:this.name,nonremovable:!0}]))};var O=i("../node_modules/underscore/modules/escape.js"),E=i("../node_modules/jquery/dist/jquery.js");function F(t){h.Ay.call(this,t),this.id=this.$input.attr("id"),this.singleSelectOnly=t.attr("data-select-qty")&&"single"==t.attr("data-select-qty"),this.$submit=this.$elm.find("button"),this.$input.on("change",this.handleChange.bind(this)),this.$input.on("keydown",this.handleKeydown.bind(this)),this.$input.on("keyup",this.handleKeyup.bind(this)),this.$input.on("blur",this.handleBlur.bind(this)),this.$input.data("inputmask")&&p()({mask:this.$input.data("inputmask")}).mask(this.$input),this.checkboxIndex=1}F.constructor=F,F.prototype=Object.create(h.Ay.prototype),F.prototype.fromQuery=function(t){const e=this;let i=t[this.name]?(0,h.eC)(t[this.name]):[];return this.singleSelectOnly&&(i=i.slice(0,1)),i=i.reverse(),i.forEac
1h((function(t){e.appendCheckbox(t)})),this},F.prototype.handleChange=function(){const t=this.$input.val(),e=this.$input.data("loaded-once")||!1,i=this.$submit;setTimeout((function(){i.trigger("focus")}),0),t.length>0?(this.$submit.removeClass("is-disabled"),!0===this.singleSelectOnly&&(this.$elm.find('input[type="checkbox"]').trigger("click"),this.$elm.find(".js-remove").trigger("click")),this.appendCheckbox(t)):this.$submit.addClass("is-disabled"),e&&this.$submit.addClass("is-loading"),this.$input.data("loaded-once",!0)},F.prototype.handleKeydown=function(t){t&&"Enter"==t.key&&(t.preventDefault(),this.$input.trigger("blur"))},F.prototype.handleKeyup=function(){this.$submit.removeClass("is-disabled")},F.prototype.handleBlur=function(){0===this.$input.val().length&&this.$submit.addClass("is-disabled")};F.prototype.handleAddEvent=function(){},F.prototype.handleRemoveEvent=function(){},F.prototype.appendCheckbox=function(t){this.checkboxList||this.appendCheckboxList();const e={id:this.id+this.checkboxIndex.toString(),name:this.name,value:(0,O.A)(t.replace(/["]+/g,""))},i=E((t=>`\n  <li>\n    <input\n      id="${t.id}"\n      name="${t.name}"\n      value="${t.value}"\n      type="checkbox"\n      checked\n    />\n    <label for="${t.id}">"${t.value}"</label>\n    <button class="dropdown__remove js-remove">\n    <span class="u-visually-hidden">Remove</span>\n    </button>\n  </li>\n`)(e));i.appendTo(this.checkboxList.$elm),i.find("input").trigger("change"),this.$input.val(""),this.checkboxIndex++},F.prototype.appendCheckboxList=function(){const t=E('<ul class="js-filter dropdown__selected" data-filter="checkbox" data-removable="true"></ul>');this.$elm.find("label").after(t),this.checkboxList=new u(t),this.checkboxList.name=this.name};var L=i("../node_modules/jquery/dist/jquery.js");function V(t){h.Ay.call(this,t),this.removeOnSwitch=this.$elm.data("remove-on-switch")||!1,this.ignoreCount=this.$elm.data("filter-ignore-count")||!1,this.$elm.on("change",this.handleChange.bind(this)),this.setInitialValue()}V.prototype=Object.create(h.Ay.prototype),V.constructor=V,V.prototype.fromQuery=function(t){this.$elm.find('input[value="'+t[this.name]+'"]').prop("checked",!0).trigger("change")},V.prototype.handleChange=function(t){var e=L(t.target),i=L(t.target).data("tag-value"),n=this.loadedOnce?"filter:renamed":"filter:added";this.$elm.trigger(n,[{key:this.name+"-toggle",value:this.formatValue(e,i),loadedOnce:this.loadedOnce||!1,name:this.name,nonremovable:!0,removeOnSwitch:this.removeOnSwitch,ignoreCount:this.ignoreCount}]),this.loadedOnce=!0},V.prototype.setInitialValue=function(){var t=this.$elm.find("input:checked");t.length>0&&this.handleChange({target:t})};var G=i("./fec/static/js/modules/helpers.js"),T=i("./fec/static/js/modules/typeahead.js"),N=(i("../node_modules/corejs-typeahead/dist/typeahead.jquery.js"),i("../node_modules/jquery/dist/jquery.js"));const R=/^\w{9}$/;function Y(t){return function(t){return t.trim().replace(/\s+/g,"-").replace(/[^a-z0-9:._-]/gi,"")}(t)+"-checkbox"}function P(t){return t.replace(/["]+/g,"")}const Q={display:"id",source:function(t,e){e([{id:(0,G.Bb)(t)}])},templates:{suggestion:function(t){return'<span>Search for: "'+t.id+'"</span>'}}};function M(t,e,i){this.$elm=N(t),this.dataset=e,this.allowText=i,this.$field=this.$elm.find('input[type="text"]'),this.fieldName=this.$elm.data("name")||this.$field.attr("name"),this.$button=this.$elm.find("button:not(.tooltip__trigger)"),this.$selected=this.$elm.find(".dropdown__selected"),this.$elm.on("change",'input[type="text"]',this.handleChange.bind(this)),this.$elm.on("change",'input[type="checkbox"]',this.handleCheckbox.bind(this)),this.$elm.on("click",".dropdown__remove",this.removeCheckbox.bind(this)),this.$elm.on("mouseenter",".tt-suggestion",this.handleHover.bind(this)),N("body").on("filter:modify",this.changeDataset.bind(this)),this.$field.on("typeahead:selected",this.handleSelected.bind(this)),this.$field.on("typeahead:autocomplete",this.handleAutocomplete.bind(this)),this.$field.on("typeahead:render",this.setFirstItem.bind(this)),this.$field.on("keyup",this.handleKeypress.bind(this)),this.$button.on("click",this.handleSubmit.bind(this)),N(document.body).on("tag:removed",this.removeCheckbox.bind(this)),N(document.body).on("tag:removeAll",this.removeAllCheckboxes.bind(this)),this.typeaheadInit(
1),this.disableButton()}M.prototype.typeaheadInit=function(){const t={minLength:3,hint:!1,highlight:!0};this.allowText&&this.dataset?this.$field.typeahead(t,Q,this.dataset):this.allowText&&!this.dataset?this.$field.typeahead(t,Q):this.$field.typeahead(t,this.dataset),this.$elm.find(".tt-menu").attr("aria-live","polite"),this.$elm.find(".tt-input").removeAttr("aria-readonly"),this.$elm.find(".tt-input").attr("aria-expanded","false")},M.prototype.setFirstItem=function(){this.firstItem=arguments[1],N(this.$elm.find(".tt-suggestion")[0]).addClass("tt-cursor"),this.$elm.find(".tt-suggestion").length>0&&(this.enableButton(),this.$field.attr("aria-expanded","true"))},M.prototype.handleSelected=function(t,e){let i=e.id||e.name;const n=Y(i);this.appendCheckbox({name:this.fieldName,value:i,datum:e}),this.datum=null,this.$elm.find('label[for="'+n+'"]').addClass("is-loading"),this.$button.trigger("focus").addClass("is-loading")},M.prototype.handleAutocomplete=function(t,e){this.datum=e},M.prototype.handleKeypress=function(t){this.handleChange(),this.$elm.find(".tt-suggestion").length>0?this.$field.attr("aria-expanded","true"):this.$field.attr("aria-expanded","false"),13!==t.which&&"Enter"!==t.code||this.handleSubmit(t)},M.prototype.handleChange=function(){this.allowText&&this.$field.typeahead("val").length>1||this.datum?this.enableButton():(0===this.$field.typeahead("val").length||!this.allowText&&this.$field.typeahead("val").length<3)&&(this.datum=null,this.disableButton())},M.prototype.handleCheckbox=function(t){const e=N(t.target),i=e.attr("id"),n=this.$elm.find('label[for="'+i+'"]');(e.data("loaded-once")||!1)&&n.addClass("is-loading"),e.data("loaded-once",!0)},M.prototype.removeCheckbox=function(t,e){let i=N(t.target);if(e){const t=N(document.getElementById(e.key));i=this.$selected.find(t)}i.closest("li").remove()},M.prototype.removeAllCheckboxes=function(){this.$selected.empty()},M.prototype.handleHover=function(){this.$elm.find(".tt-suggestion.tt-cursor").removeClass("tt-cursor")},M.prototype.handleSubmit=function(t){this.datum?this.handleSelected(t,this.datum):this.datum||this.allowText?this.allowText&&this.$field.typeahead("val").length>0&&this.handleSelected(t,{id:this.$field.typeahead("val")}):this.handleSelected(t,this.firstItem)},M.prototype.clearInput=function(){this.$field.typeahead("val",null),this.$field.get(0).dispatchEvent(new Event("change",{bubbles:!0})),this.disableButton()},M.prototype.enableButton=function(){this.searchEnabled=!0,this.$button.removeClass("is-disabled").attr("tabindex","1").attr("disabled",!1)},M.prototype.disableButton=function(){this.searchEnabled=!1,this.$button.addClass("is-disabled").attr("tabindex","-1").attr("disabled",!1)},M.prototype.appendCheckbox=function(t){const e=this.formatCheckboxData(t);if(this.$elm.find("#"+e.id).length);else{const t=N(`\n  <li>\n    <input \n      id="${(i=e).id}"\n      name="${i.name}"\n      value="${i.value}"\n      type="checkbox"\n      checked\n    />\n    <label for="${i.id}">${i.label}</label>\n    <button class="dropdown__remove">\n    <span class="u-visually-hidden">Remove</span>\n    </button>\n  </li>\n`);t.appendTo(this.$selected),t.find("input").trigger("change"),this.clearInput()}var i},M.prototype.formatCheckboxData=function(t){var e;return{name:t.name,label:t.datum?(0,O.A)((e=t.datum,e.name?e.name+(e.id?" ("+e.id+")":""):'"'+P(e.id)+'"')):P(t.value),value:(0,O.A)(P(t.value)),id:this.fieldName+"-"+Y(t.value)}},M.prototype.getFilters=function(t){const e=this;if(this.dataset){const i=this.dataset.name+"s",n=this.dataset.name+"_id",a=t.filter((function(t){return R.test(t)}));t.forEach((function(t){e.appendCheckbox({name:e.fieldName,label:R.test(t)?"Loading&hellip;":t,value:t})})),a.length&&N.getJSON(r()(API_LOCATION).path([API_VERSION,i].join("/")).addQuery("api_key",API_KEY_PUBLIC).addQuery(n,a).toString()).done(this.updateFilters.bind(this))}},M.prototype.updateFilters=function(t){const e=this;if(this.dataset){const i=this.dataset.name+"_id";t.results.forEach((function(t){const n=t.name+" ("+t[i]+")";e.$elm.find('label[for="'+e.fieldName+"-"+t[i]+'-checkbox"]').text(n),e.$elm.find("#"+e.fieldName+"-"+t[i]+"-checkbox").trigger("filter:renamed",[{key:e.fieldName+"-"+t[i]+"-checkbox",value:n}])}))}},M.prototype.changeDataset=function(t,e){e.filterName===this.fieldName&&(this.$field.typeahead("destroy"),e.filterValue.indexOf("individual")>-1&&e.filterValue.indexOf("committee")<0?(this.dataset=null,this.allowText=!0,this.typeaheadInit(
1)):(this.dataset=T.EJ.committees,this.typeaheadInit()))};var W=i("../node_modules/jquery/dist/jquery.js");function B(t){h.Ay.call(this,t);const e=this.$elm.data("dataset"),i=void 0!==this.$elm.data("allow-text"),n=e?T.EJ[e]:null;this.typeaheadFilter=new M(this.$elm,n,i),this.typeaheadFilter.$elm.on("change",'input[type="checkbox"]',this.handleNestedChange.bind(this))}B.prototype=Object.create(h.Ay.prototype),B.constructor=B,B.prototype.fromQuery=function(t){const e=t[this.name]?(0,h.eC)(t[this.name]):[];return this.typeaheadFilter.getFilters(e),this.typeaheadFilter.$elm.find('input[type="checkbox"]').val(e),this},B.prototype.handleChange=function(){},B.prototype.handleNestedChange=function(t){const e=W(t.target),i=e.attr("id"),n=this.$elm.find('[for="'+i+'"]'),a=e.is(":checked")?"filter:added":"filter:removed";e.trigger(a,[{key:i,value:(0,O.A)(n.text()),name:e.attr("name"),loadedOnce:!0}])},B.prototype.disable=function(){this.$elm.find("input, label, button").addClass("is-disabled").prop("disabled",!0),this.$elm.find("input:checked").each((function(){W(this).trigger("filter:disabled",{key:W(this).attr("id")})}))},B.prototype.enable=function(){this.$elm.find("input, label, button").removeClass("is-disabled").prop("disabled",!1),this.$elm.find("input:checked").each((function(){W(this).trigger("filter:enabled",{key:W(this).attr("id")})}))};var U=i("../node_modules/jquery/dist/jquery.js");function H(t){this.$body=U(t),U(document.body).on("tag:removed",this.handleTagRemoved.bind(this)),this.$body.on("filters:validation",this.handleValidation.bind(this)),this.efiling=this.$body.data("efiling-filters")||!1,this.fields=[],this.isValid=!0,this.firstLoad=!0,this.filters={},this.efilingFilters={},this.processedFilters={}}const K={text:F,checkbox:u,date:v,typeahead:B,election:C,multi:A,select:S,toggle:V,range:D,"keyword-proximity":j.A};H.prototype.buildFilter=function(t){const e=t.attr("data-filter");return new(0,K[e].constructor)(t)},H.prototype.activate=function(t){const e=this,i=(0,G.GQ)(r().parseQuery(window.location.search)),s=(0,n.A)(t).map((function(t){const i=e.buildFilter(U(t));return[i.name,i]})).object().value(),o=(0,n.A)(s).pluck("fields").flatten().value();return(0,a.A)(s,(function(t){t.fromQuery(i)})),this.fields=this.fields.concat(o),s},H.prototype.activateProcessed=function(){if((0,o.A)(this.processedFilters)){const t=this.$body.find(".js-processed-filters .js-filter");this.processedFilters=this.activate(t),this.filters=this.processedFilters}},H.prototype.activateEfiling=function(){if((0,o.A)(this.efilingFilters)){const t=this.$body.find(".js-efiling-filters .js-filter");this.efilingFilters=this.activate(t),this.filters=this.efilingFilters}},H.prototype.activateDataType=function(){const t=this.$body.find("#data-type-toggle .js-filter");this.activate(t)},H.prototype.activateAll=function(){return this.efiling?this.activateDataType():this.filters=this.activate(this.$body.find(".js-filter")),this},H.prototype.serialize=function(){return(0,l.A)(this.$body.find("input,select").serializeArray(),(function(t,e){return e.value&&"_"!==e.name.slice(0,1)&&(t[e.name]?t[e.name].push(e.value):t[e.name]=[e.value]),t}),{})},H.prototype.clear=function(){(0,a.A)(this.filters,(function(t){t.setValue()}))},H.prototype.handleTagRemoved=function(t,e){const i=U(document.getElementById(e.key));if("keyword-proximity"==i.attr("data-filter")){const t=i.find('input[name="q_proximity"]'),e=i.find('input[name="max_gaps"]');t.val(""),e.val(""),t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}else if(i.length>0){const t=i.get(0).type;"checkbox"===t||"radio"===t?i.trigger("click"):"text"!==t&&"select-one"!==t||(i.val(""),i.get(0).dispatchEvent(new Event("change",{bubbles:!0})))}},H.prototype.handleValidation=function(t,e){this.isValid=e.isValid},H.prototype.switchFilters=function(t){const e=".js-"+t+"-filters",i="efiling"==t?".js-processed-filters":".js-efiling-filters";this.$body.find(i).attr("aria-hidden",!0),this.$body.find(e).attr("aria-hidden",!1),"efiling"===t&&(0,o.A)(this.efilingFilters)?this.activateEfiling():"processed"===t&&(0,o.A)(this.processedFilters)&&this.activateProcessed(),this.activateSwitchedFilters(t)},H.prototype.activateSwitchedFilters=function(t){let e=(0,G.GQ)(r().parseQuery(window.location.search));this.$body.trigger("tag:removeAll",{forceRemove:!0,fromFilterSet:!0}),(0,a.A)(this.filters,(function(t){t.loadedOnce=!1,t.$elm.find("input").data("loaded-once",!1)})),this.previousQuery&&(e=(0,s.A)({},this.previousQuery,e)),this.filters="efiling"===t?this.efilingFilters:this.processedFilters,(0,a.A)(this.filters,(function(t){t.fromQuery(e)})),this.previousQuery=e,this.firstLoad=!1};var z=i("./fec/static/js/modules/accessibility.js"),J=i("../node_modules/jquery/dist/jquery.js");const X={body:".filters",content:".filters__content",filterHeader:".js-filter-header",form:"#category-filters",focus:".js-filter-toggle",toggle:".js-filter-toggle"};function Z(t){this.isOpen=!1,this.options=Object.assign(X,t),this.$body=J(this.options.body),this.$content=this.$body.find(this.options.content),this.$form=J(this.options.form),this.$focus=J(this.options.focus),this.$toggle=J(this.options.toggle),this.$filterHeader=J(this.options.filterHeader),this.$toggle.on("click",this.toggle.bind(this)),this.$body.on("filter:added",this.handleAddEvent.bind(this)),this.$body.on("filter:removed",this.handleRemoveEvent.bind(this)),this.filterSet=new H(this.$form).activateAll(),this.setInitialDisplay()}Z.prototype.setInitialDisplay=function(){(0,G.No)()>=G.LO.LARGE?this.show():this.isOpen||this.hide()},Z.prototype.show=function(t){(0,G.Yf)()||this.$content.css("top",0),this.$body.addClass("is-open"),this.$content.attr("aria-hidden",!1),(0,z.I)(this.$form),J("body").addClass("is-showing-filters"),this.isOpen=!0,t&&this.$body.find("input, select, button:not(.js-filter-close)").first().trigger("focus")},Z.prototype.hide=function(){if(!(0,G.Yf)()){const t=this.$toggle.outerHeight()+this.$toggle.position().top;this.$content.css("top",t)}this.$body.removeClass("is-open"),this.$content.attr("aria-hidden",!0),this.$focus.trigger("focus"),(0,z.w)(this.$form),J("body").removeClass("is-showing-filters"),this.isOpen=!1},Z.prototype.toggle=function(){this.isOpen?this.hide():this.show(!0)},Z.prototype.handleAddEvent=function(t,e){if(e.ignoreCount);else{const t=this.$filterHeader.find(".filter-count");t.html()?t.html(parseInt(t.html(),10)+1):this.$filterHeader.append('<span class="filter-count">1</span>')}},Z.prototype.handleRemoveEvent=function(t,e){if(!0!==e.loadedOnce);else{const t=this.$filterHeader.find(".filter-count");"1"===t.html()?t.remove():t.html(parseInt(t.html(),10)-1)}}},
1"./fec/static/js/modules/filters/keyword-proximity-filter.js":function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var n=i("./fec/static/js/modules/filters/filter-base.js"),a=i("../node_modules/urijs/src/URI.js"),s=i.n(a),o=i("../node_modules/jquery/dist/jquery.js");const l={empty:"EMPTY",incomplete:"INCOMPLETE",valid:"VALID"};function d(t){return t&&"string"==typeof t?t.replace(/^["']|["']$/g,""):t}function r(t){n.Ay.call(this,t),this.$elm=o(t),this.$input=this.$elm.find("input"),this.$keyword0=this.$elm.find(".js-keyword").first(),this.$keyword1=this.$elm.find(".js-keyword").last(),this.$maxGaps=this.$elm.find(".js-max-gaps"),this.$keyword0.data("loaded-once",!1),this.$keyword1.data("loaded-once",!1),this.$maxGaps.data("loaded-once",!1),this.buttonDecr=document.querySelector(".button--decrement"),this.buttonIncr=document.querySelector(".button--increment"),this.timer_decInc,this.validationState=l.empty,this.$keyword0.on("change",this.handleInputChange.bind(this)),this.$keyword1.on("change",this.handleInputChange.bind(this)),this.$maxGaps.on("change",this.handleNumberChange.bind(this)),this.$keyword0.on("input",this.handleInputInput.bind(this)),this.$keyword1.on("input",this.handleInputInput.bind(this)),this.fields=["q_proximity","max_gaps"],o(document.body).on("filter:modify",this.handleModifyEvent.bind(this)),o(document.body).on("tag:removeAll",this.handleRemoveAll.bind(this)),this.buttonDecr.addEventListener("click",this.handleIncDecClick.bind(this)),this.buttonIncr.addEventListener("click",this.handleIncDecClick.bind(this))}r.prototype=Object.create(n.Ay.prototype),r.constructor=r,r.prototype.handleInputInput=function(t){this.cancelMaxGapsDelay(),(""==this.$keyword0.val()&&""==this.$keyword1.val()||this.$keyword0.val()&&this.$keyword1.val()&&this.$maxGaps.val()>0)&&this.hideWarning()},r.prototype.cancelMaxGapsDelay=function(){document.querySelector('[data-filter="max_gaps"]').classList.remove("waiting"),this.timer_decInc&&(clearTimeout(this.timer_decInc),delete this.timer_decInc)},r.prototype.waitForMaxGapsChanges=function(){this.cancelMaxGapsDelay(),requestAnimationFrame((function(){document.querySelector('[data-filter="max_gaps"]').classList.add("waiting")})),this.timer_decInc=setTimeout(this.handleNumberChange.bind(this),2e3)},r.prototype.handleNumberChange=function(t){t&&!o(t.target).data("loaded-once")?this.handleInputChange(t):t?(t.stopPropagation(),this.validationState==l.valid&&this.waitForMaxGapsChanges()):(this.handleInputChange({target:this.$maxGaps.get(0)}),this.validationState==l.valid&&this.bubbleTheChangeEvent())},r.prototype.bubbleTheChangeEvent=function(){this.$maxGaps.get(0).closest("form").dispatchEvent(new CustomEvent("change",{bubbles:!0}))},r.prototype.handleInputChange=function(t){document.querySelector('[data-filter="max_gaps"]').classList.remove("waiting");const e=d(this.$keyword0.val()),i=d(this.$keyword1.val());this.$keyword0.val()!==e&&this.$keyword0.val(e),this.$keyword1.val()!==i&&this.$keyword1.val(i);const n=this.validationState==l.valid;this.validateValues();const a=this.validationState==l.valid,s=document.querySelector('.tags [data-tag-category="keyword-proximity"]');let r;this.validationState==l.incomplete&&t.stopPropagation(),a?a&&s?r="filter:renamed":a&&(r="filter:added"):r="filter:removed";const h=!0===this.$keyword0.data("loaded-once")&&!0===this.$keyword1.data("loaded-once")&&!0===this.$maxGaps.data("loaded-once");if(r){const e=t?t.target:this.$keyword0;o(e).trigger(r,[{key:"keyword-proximity",tagElements:[{label:"Proximity keywords"},{value:this.$keyword0.val()},{label:"and"},{value:this.$keyword1.val()},{label:"with max proximity"},{value:parseInt(this.$maxGaps.val())}],loadedOnce:h,name:"keyword-proximity",nonremovable:false,removeOnSwitch:!0}])}n&&this.validationState==l.empty&&(this.$maxGaps.val(""),this.bubbleTheChangeEvent()),t&&o(t.target).data("loaded-once",!0)},r.prototype.handleIncDecClick=function(t){t.preventDefault(),t.target.closest("button")==this.buttonIncr?this.$maxGaps.get(0).stepUp():t.target.closest("button")==this.buttonDecr&&this.$maxGaps.get(0).stepDown(),this.validateValues(),this.validationState==l.valid&&this.waitForMaxGapsChanges()},r.prototype.validateValues=function(){this.validationState=l.empty,this.$maxGaps.val()||this.$maxGaps.val(0);const t=parseInt(Math.max(0,parseInt(this.$maxGaps.val())));return this.buttonDecr.classList.remove("is-active-filter"),this.buttonIncr.classList.remove("is-active-filter"),0===t?this.buttonDecr.classList.add("is-disabled"):this.buttonDecr.classList.remove("is-disabled"),t>=999?this.buttonIncr.classList.add("is-disabled"):this.buttonIncr.classList.remove("is-disabled"),this.$keyword0.val()&&""!=this.$keyword0.val()||this.$keyword1.val()&&""!=this.$keyword1.val()?this.$keyword0.val().length>0&&this.$keyword1.val().length>0&&this.$maxGaps.val()>=0?this.validationState=l.valid:this.validationState=l.incomplete:this.validationState=l.empty,this.toggleErrorMessage(),this.validationState==l.valid},r.prototype.toggleErrorMessage=function(){this.validationState==l.incomplete?this.showWarning():this.hideWarning()},r.prototype.fromQuery=function(t){if(t.q_proximity){const e="string"==typeof t.q_proximity||Array.isArray(t.q_proximity)&&1===t.q_proximity.length;this.setValue(t),e?this.clearProximityFromUrl():this.rawUrlHasQuotedProximity()&&this.cleanUrlAfterLoad()}return this},r.prototype.setValue=function(t){let e="",i="";t.q_proximity&&("string"==typeof t.q_proximity?e=d(t.q_proximity):(e=d(t.q_proximity[0]),i=d(t.q_proximity[1]))),this.$keyword0.val(e).trigger("change"),this.$keyword1.val(i).trigger("change"),t.max_gaps&&this.$maxGaps.val(parseInt(t.max_gaps)).trigger("change"),this.validateValues()},r.prototype.handleModifyEvent=function(t,e){},r.prototype.handleRemoveAll=function(t,e){},r.prototype.rawUrlHasQuotedProximity=function(){return/q_proximity=[^&]*(%22|%27|["'])/i.test(window.location.search)},r.prototype.cleanUrlAfterLoad=function(){const t=this;setTimeout((function(){const e=t.$keyword0.val(),i=t.$keyword1.val(),n=s()(window.location.search);n.removeSearch("q_proximity"),e&&n.addSearch("q_proximity",e),i&&n.addSearch("q_proximity",i);const a=n.toString();window.history.replaceState(null,"",a||window.location.pathname)}),0)},r.prototype.clearProximityFromUrl=function(){setTimeout((function(){const t=s()(window.location.search);t.removeSearch("q_proximity"),t.removeSearch("max_gaps");const e=t.toString();window.history.replaceState(null,"",e||window.location.pathname)}),0)},r.prototype.showWarning=function(){if(!this.showingWarning){const t='<div class="filter__message filter__message--error">Keyword proximity search requires two terms and a distance</div>';o('[data-filter="q_proximity"]').last().after(t),this.showingWarning=!0}},r.prototype.hideWarning=function(){this.$elm.find(".filter__message").remove(),this.showingWarning=!1}}
1,"./fec/static/js/templates/election-cycles.hbs":function(t,e,i){var n=i("../node_modules/handlebars/runtime.js");t.exports=(n.default||n).template({1:function(t,e,i,n,a){var s,o,l=null!=e?e:t.nullContext||{},d=t.hooks.helperMissing,r="function",h=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'  <label for="'+h(typeof(o=null!=(o=c(i,"name")||(null!=e?c(e,"name"):e))?o:d)===r?o.call(l,{name:"name",hash:{},data:a,loc:{start:{line:2,column:14},end:{line:2,column:22}}}):o)+"-"+h(typeof(o=null!=(o=c(i,"max")||(null!=e?c(e,"max"):e))?o:d)===r?o.call(l,{name:"max",hash:{},data:a,loc:{start:{line:2,column:23},end:{line:2,column:30}}}):o)+"-"+h(typeof(o=null!=(o=c(i,"full")||(null!=e?c(e,"full"):e))?o:d)===r?o.call(l,{name:"full",hash:{},data:a,loc:{start:{line:2,column:31},end:{line:2,column:39}}}):o)+'">\n    <input\n        id="'+h(typeof(o=null!=(o=c(i,"name")||(null!=e?c(e,"name"):e))?o:d)===r?o.call(l,{name:"name",hash:{},data:a,loc:{start:{line:4,column:12},end:{line:4,column:20}}}):o)+"-"+h(typeof(o=null!=(o=c(i,"max")||(null!=e?c(e,"max"):e))?o:d)===r?o.call(l,{name:"max",hash:{},data:a,loc:{start:{line:4,column:21},end:{line:4,column:28}}}):o)+"-"+h(typeof(o=null!=(o=c(i,"full")||(null!=e?c(e,"full"):e))?o:d)===r?o.call(l,{name:"full",hash:{},data:a,loc:{start:{line:4,column:29},end:{line:4,column:37}}}):o)+'"\n        type="radio"\n        name="_'+h(typeof(o=null!=(o=c(i,"name")||(null!=e?c(e,"name"):e))?o:d)===r?o.call(l,{name:"name",hash:{},data:a,loc:{start:{line:6,column:15},end:{line:6,column:23}}}):o)+'"\n        value="'+h(typeof(o=null!=(o=c(i,"max")||(null!=e?c(e,"max"):e))?o:d)===r?o.call(l,{name:"max",hash:{},data:a,loc:{start:{line:7,column:15},end:{line:7,column:22}}}):o)+":"+h(typeof(o=null!=(o=c(i,"full")||(null!=e?c(e,"full"):e))?o:d)===r?o.call(l,{name:"full",hash:{},data:a,loc:{start:{line:7,column:23},end:{line:7,column:31}}}):o)+'"\n        data-display-value="'+h(typeof(o=null!=(o=c(i,"min")||(null!=e?c(e,"min"):e))?o:d)===r?o.call(l,{name:"min",hash:{},data:a,loc:{start:{line:8,column:28},end:{line:8,column:35}}}):o)+"-"+h(typeof(o=null!=(o=c(i,"max")||(null!=e?c(e,"max"):e))?o:d)===r?o.call(l,{name:"max",hash:{},data:a,loc:{start:{line:8,column:36},end:{line:8,column:43}}}):o)+'"\n      />\n    <span class="button--alt">\n'+(null!=(s=c(i,"if").call(l,null!=e?c(e,"full"):e,{name:"if",hash:{},fn:t.program(2,a,0),inverse:t.noop,data:a,loc:{start:{line:11,column:6},end:{line:13,column:13}}}))?s:"")+"      "+h(typeof(o=null!=(o=c(i,"min")||(null!=e?c(e,"min"):e))?o:d)===r?o.call(l,{name:"min",hash:{},data:a,loc:{start:{line:14,column:6},end:{line:14,column:13}}}):o)+"–"+h(typeof(o=null!=(o=c(i,"max")||(null!=e?c(e,"max"):e))?o:d)===r?o.call(l,{name:"max",hash:{},data:a,loc:{start:{line:14,column:14},end:{line:14,column:21}}}):o)+"\n    </span>\n  </label>\n"},2:function(t,e,i,n,a){return"      All years:\n"},compiler:[8,">= 4.3.0"],main:function(t,e,i,n,a){var s;return null!=(s=(t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]})(i,"each").call(null!=e?e:t.nullContext||{},e,{name:"each",hash:{},fn:t.program(1,a,0),inverse:t.noop,data:a,loc:{start:{line:1,column:0},end:{line:17,column:9}}}))?s:""},useData:!0})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.