New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

politico-assets

Package Overview
Dependencies
Maintainers
2
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

politico-assets - npm Package Compare versions

Comparing version 0.2.18 to 0.2.19

2

js/lc.min.js

@@ -10,2 +10,2 @@ !function(t){function e(s){if(i[s])return i[s].exports;var a=i[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,i){"use strict";var s,a,n;"function"==typeof Symbol&&Symbol.iterator;/*!

*/
!function(o){a=[i(6)],s=o,void 0!==(n="function"==typeof s?s.apply(e,a):s)&&(t.exports=n)}(function(t){function e(t){return C.call(t).slice(8,-1).toLowerCase()}function i(t){return"string"==typeof t}function s(t){return"number"==typeof t&&!isNaN(t)}function a(t){return void 0===t}function n(t){return"date"===e(t)}function o(t,e){var i=[];return Array.from?Array.from(t).slice(e||0):(s(e)&&i.push(e),i.slice.apply(t,i))}function r(t,e){var i=o(arguments,2);return function(){return t.apply(e,i.concat(o(arguments)))}}function l(t){return t%4==0&&t%100!=0||t%400==0}function h(t,e){return[31,l(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}function c(t){var e,i,s=String(t).toLowerCase(),a=s.match(y);if(!a||0===a.length)throw new Error("Invalid date format.");for(t={source:s,parts:a},e=a.length,i=0;i<e;i++)switch(a[i]){case"dd":case"d":t.hasDay=!0;break;case"mm":case"m":t.hasMonth=!0;break;case"yyyy":case"yy":t.hasYear=!0}return t}function u(e,i){i=t.isPlainObject(i)?i:{},i.language&&(i=t.extend({},u.LANGUAGES[i.language],i)),this.$element=t(e),this.options=t.extend({},u.DEFAULTS,i),this.isBuilt=!1,this.isShown=!1,this.isInput=!1,this.isInline=!1,this.initialValue="",this.initialDate=null,this.startDate=null,this.endDate=null,this.init()}var d=t(window),p=window.document,f=t(p),g=window.Number,m="datepicker",v="click.datepicker",y=/(y|m|d)+/g,w=/\d+/g,b=/^\d{2,4}$/,k=["datepicker-top-left","datepicker-top-right","datepicker-bottom-left","datepicker-bottom-right"].join(" "),x="datepicker-hide",D=Math.min,C=Object.prototype.toString;u.prototype={constructor:u,init:function(){var e=this.options,i=this.$element,s=e.startDate,a=e.endDate,n=e.date;this.$trigger=t(e.trigger),this.isInput=i.is("input")||i.is("textarea"),this.isInline=e.inline&&(e.container||!this.isInput),this.format=c(e.format),this.oldValue=this.initialValue=this.getValue(),n=this.parseDate(n||this.initialValue),s&&(s=this.parseDate(s),n.getTime()<s.getTime()&&(n=new Date(s)),this.startDate=s),a&&(a=this.parseDate(a),s&&a.getTime()<s.getTime()&&(a=new Date(s)),n.getTime()>a.getTime()&&(n=new Date(a)),this.endDate=a),this.date=n,this.viewDate=new Date(n),this.initialDate=new Date(this.date),this.bind(),(e.autoShow||this.isInline)&&this.show(),e.autoPick&&this.pick()},build:function(){var e,i=this.options,s=this.$element;this.isBuilt||(this.isBuilt=!0,this.$picker=e=t(i.template),this.$week=e.find('[data-view="week"]'),this.$yearsPicker=e.find('[data-view="years picker"]'),this.$yearsPrev=e.find('[data-view="years prev"]'),this.$yearsNext=e.find('[data-view="years next"]'),this.$yearsCurrent=e.find('[data-view="years current"]'),this.$years=e.find('[data-view="years"]'),this.$monthsPicker=e.find('[data-view="months picker"]'),this.$yearPrev=e.find('[data-view="year prev"]'),this.$yearNext=e.find('[data-view="year next"]'),this.$yearCurrent=e.find('[data-view="year current"]'),this.$months=e.find('[data-view="months"]'),this.$daysPicker=e.find('[data-view="days picker"]'),this.$monthPrev=e.find('[data-view="month prev"]'),this.$monthNext=e.find('[data-view="month next"]'),this.$monthCurrent=e.find('[data-view="month current"]'),this.$days=e.find('[data-view="days"]'),this.isInline?t(i.container||s).append(e.addClass("datepicker-inline")):(t(p.body).append(e.addClass("datepicker-dropdown")),e.addClass(x)),this.fillWeek())},unbuild:function(){this.isBuilt&&(this.isBuilt=!1,this.$picker.remove())},bind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.on("show.datepicker",e.show),t.isFunction(e.hide)&&i.on("hide.datepicker",e.hide),t.isFunction(e.pick)&&i.on("pick.datepicker",e.pick),this.isInput&&i.on("keyup.datepicker",t.proxy(this.keyup,this)),this.isInline||(e.trigger?this.$trigger.on(v,t.proxy(this.toggle,this)):this.isInput?i.on("focus.datepicker",t.proxy(this.show,this)):i.on(v,t.proxy(this.show,this)))},unbind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.off("show.datepicker",e.show),t.isFunction(e.hide)&&i.off("hide.datepicker",e.hide),t.isFunction(e.pick)&&i.off("pick.datepicker",e.pick),this.isInput&&i.off("keyup.datepicker",this.keyup),this.isInline||(e.trigger?this.$trigger.off(v,this.toggle):this.isInput?i.off("focus.datepicker",this.show):i.off(v,this.show))},showView:function(t){var e=this.$yearsPicker,i=this.$monthsPicker,s=this.$daysPicker,a=this.format;if(a.hasYear||a.hasMonth||a.hasDay)switch(g(t)){case 2:case"years":i.addClass(x),s.addClass(x),a.hasYear?(this.fillYears(),e.removeClass(x),this.place()):this.showView(0);break;case 1:case"months":e.addClass(x),s.addClass(x),a.hasMonth?(this.fillMonths(),i.removeClass(x),this.place()):this.showView(2);break;default:e.addClass(x),i.addClass(x),a.hasDay?(this.fillDays(),s.removeClass(x),this.place()):this.showView(1)}},hideView:function(){!this.isInline&&this.options.autoHide&&this.hide()},place:function(){if(!this.isInline){var t=this.options,e=this.$element,i=this.$picker,s=f.outerWidth(),a=f.outerHeight(),n=e.outerWidth(),o=e.outerHeight(),r=i.width(),l=i.height(),h=e.offset(),c=h.left,u=h.top,d=parseFloat(t.offset)||10,p="datepicker-top-left";u>l&&u+o+l>a?(u-=l+d,p="datepicker-bottom-left"):u+=o+d,c+r>s&&(c=c+n-r,p=p.replace("left","right")),i.removeClass(k).addClass(p).css({top:u,left:c,zIndex:parseInt(t.zIndex,10)})}},trigger:function(e,i){var s=t.Event(e,i);return this.$element.trigger(s),s},createItem:function(e){var i=this.options,s=i.itemTag,a={text:"",view:"",muted:!1,picked:!1,disabled:!1,highlighted:!1},n=[];return t.extend(a,e),a.muted&&n.push(i.mutedClass),a.highlighted&&n.push(i.highlightedClass),a.picked&&n.push(i.pickedClass),a.disabled&&n.push(i.disabledClass),"<"+s+' class="'+n.join(" ")+'"'+(a.view?' data-view="'+a.view+'"':"")+">"+a.text+"</"+s+">"},fillAll:function(){this.fillYears(),this.fillMonths(),this.fillDays()},fillWeek:function(){var e,i=this.options,s=parseInt(i.weekStart,10)%7,a=i.daysMin,n="";for(a=t.merge(a.slice(s),a.slice(0,s)),e=0;e<=6;e++)n+=this.createItem({text:a[e]});this.$week.html(n)},fillYears:function(){var e,i=this.options,s=i.disabledClass||"",a=i.yearSuffix||"",n=t.isFunction(i.filter)&&i.filter,o=this.startDate,r=this.endDate,l=this.viewDate,h=l.getFullYear(),c=l.getMonth(),u=l.getDate(),d=this.date,p=d.getFullYear(),f=!1,g=!1,m=!1,v=!1,y=!1,w="";for(e=-5;e<=6;e++)d=new Date(h+e,c,u),y=-5===e||6===e,v=h+e===p,m=!1,o&&(m=d.getFullYear()<o.getFullYear(),-5===e&&(f=m)),!m&&r&&(m=d.getFullYear()>r.getFullYear(),6===e&&(g=m)),!m&&n&&(m=!1===n.call(this.$element,d)),w+=this.createItem({text:h+e,view:m?"year disabled":v?"year picked":"year",muted:y,picked:v,disabled:m});this.$yearsPrev.toggleClass(s,f),this.$yearsNext.toggleClass(s,g),this.$yearsCurrent.toggleClass(s,!0).html(h+-5+a+" - "+(h+6)+a),this.$years.html(w)},fillMonths:function(){var e,i=this.options,s=i.disabledClass||"",a=i.monthsShort,n=t.isFunction(i.filter)&&i.filter,o=this.startDate,r=this.endDate,l=this.viewDate,h=l.getFullYear(),c=l.getDate(),u=this.date,d=u.getFullYear(),p=u.getMonth(),f=!1,g=!1,m=!1,v=!1,y="";for(e=0;e<=11;e++)u=new Date(h,e,c),v=h===d&&e===p,m=!1,o&&(f=u.getFullYear()===o.getFullYear(),m=f&&u.getMonth()<o.getMonth()),!m&&r&&(g=u.getFullYear()===r.getFullYear(),m=g&&u.getMonth()>r.getMonth()),!m&&n&&(m=!1===n.call(this.$element,u)),y+=this.createItem({index:e,text:a[e],view:m?"month disabled":v?"month picked":"month",picked:v,disabled:m});this.$yearPrev.toggleClass(s,f),this.$yearNext.toggleClass(s,g),this.$yearCurrent.toggleClass(s,f&&g).html(h+i.yearSuffix||""),this.$months.html(y)},fillDays:function(){var e,i,s,a=this.options,n=a.disabledClass||"",o=a.yearSuffix||"",r=a.monthsShort,l=parseInt(a.weekStart,10)%7,c=t.isFunction(a.filter)&&a.filter,u=this.startDate,d=this.endDate,p=this.viewDate,f=p.getFullYear(),g=p.getMonth(),m=f,v=g,y=f,w=new Date,b=w.getFullYear(),k=w.getMonth(),x=w.getDate(),D=g,C=this.date,$=C.getFullYear(),S=C.getMonth(),j=C.getDate(),T=!1,M=!1,F=!1,I=!1,V=[],P=[],A=[];for(0===g?(m-=1,v=11):v-=1,e=h(m,v),C=new Date(f,g,1),s=C.getDay()-l,s<=0&&(s+=7),u&&(T=C.getTime()<=u.getTime()),i=e-(s-1);i<=e;i++)C=new Date(m,v,i),F=!1,u&&(F=C.getTime()<u.getTime()),!F&&c&&(F=!1===c.call(this.$element,C)),V.push(this.createItem({text:i,view:"day prev",muted:!0,disabled:F,highlighted:m===b&&v===k&&C.getDate()===x}));for(11===g?(y+=1,D=0):D+=1,e=h(f,g),s=42-(V.length+e),C=new Date(f,g,e),d&&(M=C.getTime()>=d.getTime()),i=1;i<=s;i++)C=new Date(y,D,i),F=!1,d&&(F=C.getTime()>d.getTime()),!F&&c&&(F=!1===c.call(this.$element,C)),P.push(this.createItem({text:i,view:"day next",muted:!0,disabled:F,highlighted:y===b&&D===k&&C.getDate()===x}));for(i=1;i<=e;i++)C=new Date(f,g,i),I=f===$&&g===S&&i===j,F=!1,u&&(F=C.getTime()<u.getTime()),!F&&d&&(F=C.getTime()>d.getTime()),!F&&c&&(F=!1===c.call(this.$element,C)),A.push(this.createItem({text:i,view:F?"day disabled":I?"day picked":"day",picked:I,disabled:F,highlighted:f===b&&g===k&&C.getDate()===x}));this.$monthPrev.toggleClass(n,T),this.$monthNext.toggleClass(n,M),this.$monthCurrent.toggleClass(n,T&&M).html(a.yearFirst?f+o+" "+r[g]:r[g]+" "+f+o),this.$days.html(V.join("")+A.join(" ")+P.join(""))},click:function(e){var i,s,a,n,o,r,l=t(e.target),h=this.viewDate;if(e.stopPropagation(),e.preventDefault(),!l.hasClass("disabled"))switch(i=h.getFullYear(),s=h.getMonth(),a=h.getDate(),r=l.data("view")){case"years prev":case"years next":i="years prev"===r?i-10:i+10,o=l.text(),n=b.test(o),n&&(i=parseInt(o,10),this.date=new Date(i,s,D(a,28))),this.viewDate=new Date(i,s,D(a,28)),this.fillYears(),n&&(this.showView(1),this.pick("year"));break;case"year prev":case"year next":i="year prev"===r?i-1:i+1,this.viewDate=new Date(i,s,D(a,28)),this.fillMonths();break;case"year current":this.format.hasYear&&this.showView(2);break;case"year picked":this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"year":i=parseInt(l.text(),10),this.date=new Date(i,s,D(a,28)),this.viewDate=new Date(i,s,D(a,28)),this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"month prev":case"month next":s="month prev"===r?s-1:"month next"===r?s+1:s,this.viewDate=new Date(i,s,D(a,28)),this.fillDays();break;case"month current":this.format.hasMonth&&this.showView(1);break;case"month picked":this.format.hasDay?this.showView(0):this.hideView(),this.pick("month");break;case"month":s=t.inArray(l.text(),this.options.monthsShort),this.date=new Date(i,s,D(a,28)),this.viewDate=new Date(i,s,D(a,28)),this.format.hasDay?this.showView(0):this.hideView(),this.pick("month");break;case"day prev":case"day next":case"day":s="day prev"===r?s-1:"day next"===r?s+1:s,a=parseInt(l.text(),10),this.date=new Date(i,s,a),this.viewDate=new Date(i,s,a),this.fillDays(),"day"===r&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}},clickDoc:function(t){for(var e,i=t.target,s=this.$element[0],a=this.$trigger[0];i!==p;){if(i===a||i===s){e=!0;break}i=i.parentNode}e||this.hide()},keyup:function(){this.update()},keyupDoc:function(t){this.isInput&&t.target!==this.$element[0]&&this.isShown&&("Tab"===t.key||9===t.keyCode)&&this.hide()},getValue:function(){var t=this.$element,e="";return this.isInput?e=t.val():this.isInline?this.options.container&&(e=t.text()):e=t.text(),e},setValue:function(t){var e=this.$element;t=i(t)?t:"",this.isInput?e.val(t):this.isInline?this.options.container&&e.text(t):e.text(t)},show:function(){this.isBuilt||this.build(),this.isShown||this.trigger("show.datepicker").isDefaultPrevented()||(this.isShown=!0,this.$picker.removeClass(x).on(v,t.proxy(this.click,this)),this.showView(this.options.startView),this.isInline||(d.on("resize.datepicker",this._place=r(this.place,this)),f.on(v,this._clickDoc=r(this.clickDoc,this)),f.on("keyup.datepicker",this._keyupDoc=r(this.keyupDoc,this)),this.place()))},hide:function(){this.isShown&&(this.trigger("hide.datepicker").isDefaultPrevented()||(this.isShown=!1,this.$picker.addClass(x).off(v,this.click),this.isInline||(d.off("resize.datepicker",this._place),f.off(v,this._clickDoc),f.off("keyup.datepicker",this._keyupDoc))))},toggle:function(){this.isShown?this.hide():this.show()},update:function(){var t=this.getValue();t!==this.oldValue&&(this.setDate(t,!0),this.oldValue=t)},pick:function(t){var e=this.$element,i=this.date;this.trigger("pick.datepicker",{view:t||"",date:i}).isDefaultPrevented()||(this.setValue(i=this.formatDate(this.date)),this.isInput&&e.trigger("change"))},reset:function(){this.setDate(this.initialDate,!0),this.setValue(this.initialValue),this.isShown&&this.showView(this.options.startView)},getMonthName:function(e,i){var n=this.options,o=n.months;return t.isNumeric(e)?e=g(e):a(i)&&(i=e),!0===i&&(o=n.monthsShort),o[s(e)?e:this.date.getMonth()]},getDayName:function(e,i,n){var o=this.options,r=o.days;return t.isNumeric(e)?e=g(e):(a(n)&&(n=i),a(i)&&(i=e)),r=!0===n?o.daysMin:!0===i?o.daysShort:r,r[s(e)?e:this.date.getDay()]},getDate:function(t){var e=this.date;return t?this.formatDate(e):new Date(e)},setDate:function(e,s){var a=this.options.filter;if(n(e)||i(e)){if(e=this.parseDate(e),t.isFunction(a)&&!1===a.call(this.$element,e))return;this.date=e,this.viewDate=new Date(e),s||this.pick(),this.isBuilt&&this.fillAll()}},setStartDate:function(t){(n(t)||i(t))&&(this.startDate=this.parseDate(t),this.isBuilt&&this.fillAll())},setEndDate:function(t){(n(t)||i(t))&&(this.endDate=this.parseDate(t),this.isBuilt&&this.fillAll())},parseDate:function(t){var e,s,a,o,r,l,h=this.format,c=[];if(n(t))return new Date(t.getFullYear(),t.getMonth(),t.getDate());if(i(t)&&(c=t.match(w)||[]),t=new Date,s=t.getFullYear(),a=t.getDate(),o=t.getMonth(),e=h.parts.length,c.length===e)for(l=0;l<e;l++)switch(r=parseInt(c[l],10)||1,h.parts[l]){case"dd":case"d":a=r;break;case"mm":case"m":o=r-1;break;case"yy":s=2e3+r;break;case"yyyy":s=r}return new Date(s,o,a)},formatDate:function(t){var e,i,s,a,o,r=this.format,l="";if(n(t))for(l=r.source,i=t.getFullYear(),a={d:t.getDate(),m:t.getMonth()+1,yy:i.toString().substring(2),yyyy:i},a.dd=(a.d<10?"0":"")+a.d,a.mm=(a.m<10?"0":"")+a.m,e=r.parts.length,o=0;o<e;o++)s=r.parts[o],l=l.replace(s,a[s]);return l},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(m)}},u.LANGUAGES={},u.DEFAULTS={autoShow:!1,autoHide:!1,autoPick:!1,inline:!1,container:null,trigger:null,language:"",format:"mm/dd/yyyy",date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:"",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],itemTag:"li",mutedClass:"muted",pickedClass:"picked",disabledClass:"disabled",highlightedClass:"highlighted",template:'<div class="datepicker-container"><div class="datepicker-panel" data-view="years picker"><ul><li data-view="years prev">&lsaquo;</li><li data-view="years current"></li><li data-view="years next">&rsaquo;</li></ul><ul data-view="years"></ul></div><div class="datepicker-panel" data-view="months picker"><ul><li data-view="year prev">&lsaquo;</li><li data-view="year current"></li><li data-view="year next">&rsaquo;</li></ul><ul data-view="months"></ul></div><div class="datepicker-panel" data-view="days picker"><ul><li data-view="month prev">&lsaquo;</li><li data-view="month current"></li><li data-view="month next">&rsaquo;</li></ul><ul data-view="week"></ul><ul data-view="days"></ul></div></div>',offset:10,zIndex:1e3,filter:null,show:null,hide:null,pick:null},u.setDefaults=function(e){e=t.isPlainObject(e)?e:{},e.language&&(e=t.extend({},u.LANGUAGES[e.language],e)),t.extend(u.DEFAULTS,e)},u.other=t.fn.datepicker,t.fn.datepicker=function(e){var s,n=o(arguments,1);return this.each(function(){var a,o,r=t(this),l=r.data(m);if(!l){if(/destroy/.test(e))return;a=t.extend({},r.data(),t.isPlainObject(e)&&e),r.data(m,l=new u(this,a))}i(e)&&t.isFunction(o=l[e])&&(s=o.apply(l,n))}),a(s)?this:s},t.fn.datepicker.Constructor=u,t.fn.datepicker.languages=u.LANGUAGES,t.fn.datepicker.setDefaults=u.setDefaults,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=u.other,this}})},function(t,e,i){"use strict";!function(t){t.fn.autocomplete=function(e){var i=this,s=t("body"),a=e.case_sensitive||"yes",n=e.min_length||0,o=e.limit_number_suggestions||666,r=[];if(i.length){var l=function(){t("#js-codeit").html("You have to code a function or a redirection to display more results ;)")};i.each(function(e){var i=t(this),s=i.attr("id"),n=t('label[for="'+s+'"]'),o=e+1,l=i.data(),h=void 0!==l.comboboxPrefixClass?l.comboboxPrefixClass+"-":"",c=void 0!==l.comboboxHelpText?l.comboboxHelpText:"Use tabulation (or down) key to access and browse suggestions after input. Confirm your choice with enter key, or esc key to close suggestions box.",u=t("#"+i.attr("list")),d=void 0!==l.comboboxButtonTitle?l.comboboxButtonTitle:"clear this field",p=void 0!==l.comboboxButtonText?l.comboboxButtonText:"X",f=void 0!==l.comboboxCaseSensitive?l.comboboxCaseSensitive:a,g=[];i.attr({"data-number":o,autocorrect:"off",autocapitalize:"off",spellcheck:"off",autocomplete:"off","aria-describedby":h+"help-text"+o,"aria-autocomplete":"list","data-lastval":"","aria-owns":h+"suggest_"+o}),u.find("option").each(function(t,e){g.push(e.value)}),r[o]="no"===f?g.sort(function(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),t==e?0:t>e?1:-1}):g.sort(),i.wrap('<div class="'+h+'container js-container" data-combobox-prefix-class="'+h+'"></div>');var m=i.parent();m.append('<div id="'+h+"suggest_"+o+'" class="js-suggest '+h+'suggestions"><div role="listbox"></div></div>'),u.remove(),m.prepend('<div id="'+h+"suggestion-text"+o+'" class="js-suggestion-text '+h+'suggestion-text invisible" aria-live="assertive"></div>'),m.prepend('<span id="'+h+"help-text"+o+'" class="'+h+'help-text invisible">'+c+"</span>"),n.attr("id","label-id-"+s),i.after('<button class="js-clear-button '+h+'clear-button" aria-label="'+d+'" title="'+d+'" aria-describedby="label-id-'+s+'" type="button">'+p+"</button>")}),s.on("keyup",".js-combobox",function(e){var i=t(this),s=i.data(),l=i.parent(),h=l.parents("form"),c=l.data(),u=void 0!==c.comboboxPrefixClass?c.comboboxPrefixClass:"",d=l.find(".js-suggest div"),p=(d.find(".js-suggestion"),l.find(".js-suggestion-text")),f=void 0!==s.suggestionSingle?s.suggestionSingle:"There is ",g=void 0!==s.suggestionPlural?s.suggestionPlural:"There are ",m=void 0!==s.suggestionWord?s.suggestionWord:"suggestion",v=void 0!==s.comboboxMinLength?Math.abs(s.comboboxMinLength):n,y=void 0!==s.comboboxCaseSensitive?s.comboboxCaseSensitive:a,w=void 0!==s.comboboxLimitNumberSuggestions?Math.abs(s.comboboxLimitNumberSuggestions):o,b=void 0!==s.comboboxSearchOption?s.comboboxSearchOption:"beginning",k=(void 0!==s.comboboxSeeMoreText&&s.comboboxSeeMoreText,i.attr("data-number")),x=i.val(),D="";if(13===e.keyCode)h.submit();else if(27!==e.keyCode){i.attr("data-lastval",x);var C=r[k].length,$=0,S=0;if(d.empty(),""!=x&&x.length>=v){for(;$<C;)S<w&&("containing"===b&&"yes"===y&&r[k][$].indexOf(x)>=0||"no"===y&&r[k][$].toUpperCase().indexOf(x.toUpperCase())>=0||"beginning"===b&&"yes"===y&&r[k][$].substring(0,x.length)===x||"no"===y&&r[k][$].substring(0,x.length).toUpperCase()===x.toUpperCase())&&(d.append('<div id="suggestion-'+k+"-"+S+'" class="js-suggestion '+u+'suggestion" tabindex="-1" role="option">'+r[k][$]+"</div>"),S++),$++;if(S>=w&&S++,S>1&&(D=g+S+" "+m+"s."),1===S&&(D=f+S+" "+m+"."),0===S&&(D=f+S+" "+m+"."),S>=0){var j=p.text();if(D!=j){var T=t("<p>").text(D);p.attr("aria-live","polite"),p.empty(),p.append(T)}}}}}).on("click",function(e){var i=t(e.target),s=t(".js-suggestion-text:not(:empty)"),a=s.parents(".js-container"),n=a.find(".js-combobox"),o=a.find(".js-suggest div");i.is(".js-suggestion")||i.is(".js-combobox")||!s.length||(n.val(n.attr("data-lastval")),o.empty(),s.empty())}).on("keydown",".js-combobox",function(e){var i=t(this),s=i.parent(),a=s.find(".js-combobox"),n=s.find(".js-suggest div"),o=n.find(".js-suggestion"),r=s.find(".js-suggestion-text"),l=void 0===i.attr("data-combobox-notab-options"),h=o.first();(!e.shiftKey&&9==e.keyCode&&l||40==e.keyCode)&&o.length&&(a.val(h.html()),o.first().focus(),e.preventDefault()),(27==e.keyCode||!1===l&&9==e.keyCode)&&(a.val(a.attr("data-lastval")),n.empty(),r.empty(),27==e.keyCode&&(e.preventDefault(),setTimeout(function(){a.focus()},300)))}).on("keydown",".js-suggestion",function(e){var i=t(this),s=i.parents(".js-container"),a=s.find(".js-combobox"),n=void 0===a.attr("data-combobox-notab-options"),o=s.find(".js-suggest div"),r=s.find(".js-suggestion-text"),h=i.next(),c=i.prev();if((27==e.keyCode||!1===n&&9==e.keyCode)&&(27==e.keyCode&&(a.val(a.attr("data-lastval")),o.empty(),r.empty(),setTimeout(function(){a.focus()},300),e.preventDefault()),!1===n&&9==e.keyCode&&(o.empty(),r.empty(),a.focus())),13!=e.keyCode&&32!=e.keyCode||(i.hasClass("js-seemore")?(a.val(a.attr("data-lastval")),o.empty(),r.empty(),setTimeout(function(){a.focus()},300),setTimeout(function(){l()},301),e.preventDefault()):(a.val(i.html()),a.attr("data-lastval",i.html()),o.empty(),r.empty(),setTimeout(function(){a.focus()},300),e.preventDefault())),!e.shiftKey&&9==e.keyCode&&n||40==e.keyCode){if(h.length)a.val(h.html()),h.focus();else if(a.val(a.attr("data-lastval")),e.shiftKey||9!=e.keyCode)setTimeout(function(){a.focus()},300);else{var u=jQuery.Event("keydown");u.which=27,u.keyCode=27,i.trigger(u)}e.preventDefault()}(e.shiftKey&&9==e.keyCode&&n||38==e.keyCode)&&(c.length?(a.val(c.html()),c.focus()):a.val(a.attr("data-lastval")).focus(),e.preventDefault())}).on("click",".js-clear-button",function(e){var i=t(this),s=i.parent(),a=s.find(".js-combobox"),n=s.find(".js-suggest div"),o=s.find(".js-suggestion-text");n.empty(),o.empty(),a.val(""),a.attr("data-lastval","")}).on("click",".js-suggestion",function(e){var i=t(this),s=i.html(),a=i.parents(".js-container"),n=a.find(".js-combobox"),o=a.find(".js-suggest div"),r=a.find(".js-suggestion-text");i.hasClass("js-seemore")?(o.empty(),r.empty(),n.focus(),l()):(n.val(s).focus(),o.empty(),r.empty())})}}}(jQuery)},function(t,e,i){"use strict";var s=i(5),a=(0,s.debounce)(function(){var t=$(this).val(),e=$(this);if(!(t.length<2)&&0==o){o=!0;var i=null!=$("#states").val()?$("#states").val().toString():"",s={text:t,jurisdiction:""!=i?i:"US"};$.ajax({type:"GET",url:"/legislative-compass/_search_committee_lookup",data:s,success:function(i){if(o=!1,null!=i&&void 0==i.success){var s=$("#committee-filter").val()||[],a=i.map(function(t){return t.name}),n=a.concat(s.filter(function(t){return a.indexOf(t)<0})),r=n.map(function(t){var e=document.createElement("option");return e.innerText=t,e});t=e.val(),$("#committee-filter").html(r).val(s).trigger("chosen:updated"),e.val(t)}}})}},333),n=function(){var t=$(this).val(),e=$(this);t.length>1&&0==o&&(o=!0,$.ajax({type:"GET",url:"http://lcapiqa.politicopro.com/service.php?getCRSIssueArea&text"+t,success:function(i){if(o=!1,null!=i&&void 0==i.success){var s=$("#committee-filter").val()||[],a=i.map(function(t){return t.name}),n=a.concat(s.filter(function(t){return a.indexOf(t)<0})),r=n.map(function(t){var e=document.createElement("option");return e.innerText=t,e});t=e.val(),$("#committee-filter").html(r).val(s).trigger("chosen:updated"),e.val(t)}}}))},o=!1;$(document).on("input","#committeeFilterList input",a).on("input","#crsIssueAreaListItem input",n)},function(t,e,i){"use strict";!function(){function t(){var i,s=this.querySelectorAll("template"),a=[],n=0;if(e){for(i=this.cloneNode(!0),s=i.content.querySelectorAll("template");s[n];n++)s[n].clone=t;return i}for(;s[n];n++)a.push(s[n].content);for(i=this.cloneNode(!0),i.content=this.content,i.clone=t,s=i.querySelectorAll("template"),n=0;s[n];n++)s[n].content=a[n],s[n].clone=t;return i}var e="content"in document.createElement("template");if(!e)for(var i,s,a,n,o,r=Array.prototype.slice.call(document.getElementsByTagName("template")),l=0;i=r[l++];){for(s=i.children,a=document.createDocumentFragment(),o=0;n=s[o];o++)a.appendChild(n);i.content=a}for(var i,r=document.querySelectorAll("template"),l=0;i=r[l++];)i.clone=t}()},function(t,e,i){"use strict";i(3),i(0),i(1),i(2),$(document).ready(function(){var t=new Date;$(".js-datepicker").datepicker({daysMin:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],endDate:t,offset:-1}),$(".js-chosen").chosen()}),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&$("html").addClass("ios")},function(t,e,i){"use strict";function s(t,e,i){var s;return function(){var a=this,n=arguments,o=function(){s=null,i||t.apply(a,n)},r=i&&!s;clearTimeout(s),s=setTimeout(o,e),r&&t.apply(a,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=s},function(t,e){t.exports=jQuery}]);
!function(o){a=[i(6)],s=o,void 0!==(n="function"==typeof s?s.apply(e,a):s)&&(t.exports=n)}(function(t){function e(t){return C.call(t).slice(8,-1).toLowerCase()}function i(t){return"string"==typeof t}function s(t){return"number"==typeof t&&!isNaN(t)}function a(t){return void 0===t}function n(t){return"date"===e(t)}function o(t,e){var i=[];return Array.from?Array.from(t).slice(e||0):(s(e)&&i.push(e),i.slice.apply(t,i))}function r(t,e){var i=o(arguments,2);return function(){return t.apply(e,i.concat(o(arguments)))}}function l(t){return t%4==0&&t%100!=0||t%400==0}function h(t,e){return[31,l(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}function c(t){var e,i,s=String(t).toLowerCase(),a=s.match(y);if(!a||0===a.length)throw new Error("Invalid date format.");for(t={source:s,parts:a},e=a.length,i=0;i<e;i++)switch(a[i]){case"dd":case"d":t.hasDay=!0;break;case"mm":case"m":t.hasMonth=!0;break;case"yyyy":case"yy":t.hasYear=!0}return t}function u(e,i){i=t.isPlainObject(i)?i:{},i.language&&(i=t.extend({},u.LANGUAGES[i.language],i)),this.$element=t(e),this.options=t.extend({},u.DEFAULTS,i),this.isBuilt=!1,this.isShown=!1,this.isInput=!1,this.isInline=!1,this.initialValue="",this.initialDate=null,this.startDate=null,this.endDate=null,this.init()}var d=t(window),f=window.document,p=t(f),g=window.Number,m="datepicker",v="click.datepicker",y=/(y|m|d)+/g,w=/\d+/g,b=/^\d{2,4}$/,k=["datepicker-top-left","datepicker-top-right","datepicker-bottom-left","datepicker-bottom-right"].join(" "),x="datepicker-hide",D=Math.min,C=Object.prototype.toString;u.prototype={constructor:u,init:function(){var e=this.options,i=this.$element,s=e.startDate,a=e.endDate,n=e.date;this.$trigger=t(e.trigger),this.isInput=i.is("input")||i.is("textarea"),this.isInline=e.inline&&(e.container||!this.isInput),this.format=c(e.format),this.oldValue=this.initialValue=this.getValue(),n=this.parseDate(n||this.initialValue),s&&(s=this.parseDate(s),n.getTime()<s.getTime()&&(n=new Date(s)),this.startDate=s),a&&(a=this.parseDate(a),s&&a.getTime()<s.getTime()&&(a=new Date(s)),n.getTime()>a.getTime()&&(n=new Date(a)),this.endDate=a),this.date=n,this.viewDate=new Date(n),this.initialDate=new Date(this.date),this.bind(),(e.autoShow||this.isInline)&&this.show(),e.autoPick&&this.pick()},build:function(){var e,i=this.options,s=this.$element;this.isBuilt||(this.isBuilt=!0,this.$picker=e=t(i.template),this.$week=e.find('[data-view="week"]'),this.$yearsPicker=e.find('[data-view="years picker"]'),this.$yearsPrev=e.find('[data-view="years prev"]'),this.$yearsNext=e.find('[data-view="years next"]'),this.$yearsCurrent=e.find('[data-view="years current"]'),this.$years=e.find('[data-view="years"]'),this.$monthsPicker=e.find('[data-view="months picker"]'),this.$yearPrev=e.find('[data-view="year prev"]'),this.$yearNext=e.find('[data-view="year next"]'),this.$yearCurrent=e.find('[data-view="year current"]'),this.$months=e.find('[data-view="months"]'),this.$daysPicker=e.find('[data-view="days picker"]'),this.$monthPrev=e.find('[data-view="month prev"]'),this.$monthNext=e.find('[data-view="month next"]'),this.$monthCurrent=e.find('[data-view="month current"]'),this.$days=e.find('[data-view="days"]'),this.isInline?t(i.container||s).append(e.addClass("datepicker-inline")):(t(f.body).append(e.addClass("datepicker-dropdown")),e.addClass(x)),this.fillWeek())},unbuild:function(){this.isBuilt&&(this.isBuilt=!1,this.$picker.remove())},bind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.on("show.datepicker",e.show),t.isFunction(e.hide)&&i.on("hide.datepicker",e.hide),t.isFunction(e.pick)&&i.on("pick.datepicker",e.pick),this.isInput&&i.on("keyup.datepicker",t.proxy(this.keyup,this)),this.isInline||(e.trigger?this.$trigger.on(v,t.proxy(this.toggle,this)):this.isInput?i.on("focus.datepicker",t.proxy(this.show,this)):i.on(v,t.proxy(this.show,this)))},unbind:function(){var e=this.options,i=this.$element;t.isFunction(e.show)&&i.off("show.datepicker",e.show),t.isFunction(e.hide)&&i.off("hide.datepicker",e.hide),t.isFunction(e.pick)&&i.off("pick.datepicker",e.pick),this.isInput&&i.off("keyup.datepicker",this.keyup),this.isInline||(e.trigger?this.$trigger.off(v,this.toggle):this.isInput?i.off("focus.datepicker",this.show):i.off(v,this.show))},showView:function(t){var e=this.$yearsPicker,i=this.$monthsPicker,s=this.$daysPicker,a=this.format;if(a.hasYear||a.hasMonth||a.hasDay)switch(g(t)){case 2:case"years":i.addClass(x),s.addClass(x),a.hasYear?(this.fillYears(),e.removeClass(x),this.place()):this.showView(0);break;case 1:case"months":e.addClass(x),s.addClass(x),a.hasMonth?(this.fillMonths(),i.removeClass(x),this.place()):this.showView(2);break;default:e.addClass(x),i.addClass(x),a.hasDay?(this.fillDays(),s.removeClass(x),this.place()):this.showView(1)}},hideView:function(){!this.isInline&&this.options.autoHide&&this.hide()},place:function(){if(!this.isInline){var t=this.options,e=this.$element,i=this.$picker,s=p.outerWidth(),a=p.outerHeight(),n=e.outerWidth(),o=e.outerHeight(),r=i.width(),l=i.height(),h=e.offset(),c=h.left,u=h.top,d=parseFloat(t.offset)||10,f="datepicker-top-left";u>l&&u+o+l>a?(u-=l+d,f="datepicker-bottom-left"):u+=o+d,c+r>s&&(c=c+n-r,f=f.replace("left","right")),i.removeClass(k).addClass(f).css({top:u,left:c,zIndex:parseInt(t.zIndex,10)})}},trigger:function(e,i){var s=t.Event(e,i);return this.$element.trigger(s),s},createItem:function(e){var i=this.options,s=i.itemTag,a={text:"",view:"",muted:!1,picked:!1,disabled:!1,highlighted:!1},n=[];return t.extend(a,e),a.muted&&n.push(i.mutedClass),a.highlighted&&n.push(i.highlightedClass),a.picked&&n.push(i.pickedClass),a.disabled&&n.push(i.disabledClass),"<"+s+' class="'+n.join(" ")+'"'+(a.view?' data-view="'+a.view+'"':"")+">"+a.text+"</"+s+">"},fillAll:function(){this.fillYears(),this.fillMonths(),this.fillDays()},fillWeek:function(){var e,i=this.options,s=parseInt(i.weekStart,10)%7,a=i.daysMin,n="";for(a=t.merge(a.slice(s),a.slice(0,s)),e=0;e<=6;e++)n+=this.createItem({text:a[e]});this.$week.html(n)},fillYears:function(){var e,i=this.options,s=i.disabledClass||"",a=i.yearSuffix||"",n=t.isFunction(i.filter)&&i.filter,o=this.startDate,r=this.endDate,l=this.viewDate,h=l.getFullYear(),c=l.getMonth(),u=l.getDate(),d=this.date,f=d.getFullYear(),p=!1,g=!1,m=!1,v=!1,y=!1,w="";for(e=-5;e<=6;e++)d=new Date(h+e,c,u),y=-5===e||6===e,v=h+e===f,m=!1,o&&(m=d.getFullYear()<o.getFullYear(),-5===e&&(p=m)),!m&&r&&(m=d.getFullYear()>r.getFullYear(),6===e&&(g=m)),!m&&n&&(m=!1===n.call(this.$element,d)),w+=this.createItem({text:h+e,view:m?"year disabled":v?"year picked":"year",muted:y,picked:v,disabled:m});this.$yearsPrev.toggleClass(s,p),this.$yearsNext.toggleClass(s,g),this.$yearsCurrent.toggleClass(s,!0).html(h+-5+a+" - "+(h+6)+a),this.$years.html(w)},fillMonths:function(){var e,i=this.options,s=i.disabledClass||"",a=i.monthsShort,n=t.isFunction(i.filter)&&i.filter,o=this.startDate,r=this.endDate,l=this.viewDate,h=l.getFullYear(),c=l.getDate(),u=this.date,d=u.getFullYear(),f=u.getMonth(),p=!1,g=!1,m=!1,v=!1,y="";for(e=0;e<=11;e++)u=new Date(h,e,c),v=h===d&&e===f,m=!1,o&&(p=u.getFullYear()===o.getFullYear(),m=p&&u.getMonth()<o.getMonth()),!m&&r&&(g=u.getFullYear()===r.getFullYear(),m=g&&u.getMonth()>r.getMonth()),!m&&n&&(m=!1===n.call(this.$element,u)),y+=this.createItem({index:e,text:a[e],view:m?"month disabled":v?"month picked":"month",picked:v,disabled:m});this.$yearPrev.toggleClass(s,p),this.$yearNext.toggleClass(s,g),this.$yearCurrent.toggleClass(s,p&&g).html(h+i.yearSuffix||""),this.$months.html(y)},fillDays:function(){var e,i,s,a=this.options,n=a.disabledClass||"",o=a.yearSuffix||"",r=a.monthsShort,l=parseInt(a.weekStart,10)%7,c=t.isFunction(a.filter)&&a.filter,u=this.startDate,d=this.endDate,f=this.viewDate,p=f.getFullYear(),g=f.getMonth(),m=p,v=g,y=p,w=new Date,b=w.getFullYear(),k=w.getMonth(),x=w.getDate(),D=g,C=this.date,$=C.getFullYear(),S=C.getMonth(),j=C.getDate(),T=!1,M=!1,I=!1,F=!1,V=[],P=[],A=[];for(0===g?(m-=1,v=11):v-=1,e=h(m,v),C=new Date(p,g,1),s=C.getDay()-l,s<=0&&(s+=7),u&&(T=C.getTime()<=u.getTime()),i=e-(s-1);i<=e;i++)C=new Date(m,v,i),I=!1,u&&(I=C.getTime()<u.getTime()),!I&&c&&(I=!1===c.call(this.$element,C)),V.push(this.createItem({text:i,view:"day prev",muted:!0,disabled:I,highlighted:m===b&&v===k&&C.getDate()===x}));for(11===g?(y+=1,D=0):D+=1,e=h(p,g),s=42-(V.length+e),C=new Date(p,g,e),d&&(M=C.getTime()>=d.getTime()),i=1;i<=s;i++)C=new Date(y,D,i),I=!1,d&&(I=C.getTime()>d.getTime()),!I&&c&&(I=!1===c.call(this.$element,C)),P.push(this.createItem({text:i,view:"day next",muted:!0,disabled:I,highlighted:y===b&&D===k&&C.getDate()===x}));for(i=1;i<=e;i++)C=new Date(p,g,i),F=p===$&&g===S&&i===j,I=!1,u&&(I=C.getTime()<u.getTime()),!I&&d&&(I=C.getTime()>d.getTime()),!I&&c&&(I=!1===c.call(this.$element,C)),A.push(this.createItem({text:i,view:I?"day disabled":F?"day picked":"day",picked:F,disabled:I,highlighted:p===b&&g===k&&C.getDate()===x}));this.$monthPrev.toggleClass(n,T),this.$monthNext.toggleClass(n,M),this.$monthCurrent.toggleClass(n,T&&M).html(a.yearFirst?p+o+" "+r[g]:r[g]+" "+p+o),this.$days.html(V.join("")+A.join(" ")+P.join(""))},click:function(e){var i,s,a,n,o,r,l=t(e.target),h=this.viewDate;if(e.stopPropagation(),e.preventDefault(),!l.hasClass("disabled"))switch(i=h.getFullYear(),s=h.getMonth(),a=h.getDate(),r=l.data("view")){case"years prev":case"years next":i="years prev"===r?i-10:i+10,o=l.text(),n=b.test(o),n&&(i=parseInt(o,10),this.date=new Date(i,s,D(a,28))),this.viewDate=new Date(i,s,D(a,28)),this.fillYears(),n&&(this.showView(1),this.pick("year"));break;case"year prev":case"year next":i="year prev"===r?i-1:i+1,this.viewDate=new Date(i,s,D(a,28)),this.fillMonths();break;case"year current":this.format.hasYear&&this.showView(2);break;case"year picked":this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"year":i=parseInt(l.text(),10),this.date=new Date(i,s,D(a,28)),this.viewDate=new Date(i,s,D(a,28)),this.format.hasMonth?this.showView(1):this.hideView(),this.pick("year");break;case"month prev":case"month next":s="month prev"===r?s-1:"month next"===r?s+1:s,this.viewDate=new Date(i,s,D(a,28)),this.fillDays();break;case"month current":this.format.hasMonth&&this.showView(1);break;case"month picked":this.format.hasDay?this.showView(0):this.hideView(),this.pick("month");break;case"month":s=t.inArray(l.text(),this.options.monthsShort),this.date=new Date(i,s,D(a,28)),this.viewDate=new Date(i,s,D(a,28)),this.format.hasDay?this.showView(0):this.hideView(),this.pick("month");break;case"day prev":case"day next":case"day":s="day prev"===r?s-1:"day next"===r?s+1:s,a=parseInt(l.text(),10),this.date=new Date(i,s,a),this.viewDate=new Date(i,s,a),this.fillDays(),"day"===r&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}},clickDoc:function(t){for(var e,i=t.target,s=this.$element[0],a=this.$trigger[0];i!==f;){if(i===a||i===s){e=!0;break}i=i.parentNode}e||this.hide()},keyup:function(){this.update()},keyupDoc:function(t){this.isInput&&t.target!==this.$element[0]&&this.isShown&&("Tab"===t.key||9===t.keyCode)&&this.hide()},getValue:function(){var t=this.$element,e="";return this.isInput?e=t.val():this.isInline?this.options.container&&(e=t.text()):e=t.text(),e},setValue:function(t){var e=this.$element;t=i(t)?t:"",this.isInput?e.val(t):this.isInline?this.options.container&&e.text(t):e.text(t)},show:function(){this.isBuilt||this.build(),this.isShown||this.trigger("show.datepicker").isDefaultPrevented()||(this.isShown=!0,this.$picker.removeClass(x).on(v,t.proxy(this.click,this)),this.showView(this.options.startView),this.isInline||(d.on("resize.datepicker",this._place=r(this.place,this)),p.on(v,this._clickDoc=r(this.clickDoc,this)),p.on("keyup.datepicker",this._keyupDoc=r(this.keyupDoc,this)),this.place()))},hide:function(){this.isShown&&(this.trigger("hide.datepicker").isDefaultPrevented()||(this.isShown=!1,this.$picker.addClass(x).off(v,this.click),this.isInline||(d.off("resize.datepicker",this._place),p.off(v,this._clickDoc),p.off("keyup.datepicker",this._keyupDoc))))},toggle:function(){this.isShown?this.hide():this.show()},update:function(){var t=this.getValue();t!==this.oldValue&&(this.setDate(t,!0),this.oldValue=t)},pick:function(t){var e=this.$element,i=this.date;this.trigger("pick.datepicker",{view:t||"",date:i}).isDefaultPrevented()||(this.setValue(i=this.formatDate(this.date)),this.isInput&&e.trigger("change"))},reset:function(){this.setDate(this.initialDate,!0),this.setValue(this.initialValue),this.isShown&&this.showView(this.options.startView)},getMonthName:function(e,i){var n=this.options,o=n.months;return t.isNumeric(e)?e=g(e):a(i)&&(i=e),!0===i&&(o=n.monthsShort),o[s(e)?e:this.date.getMonth()]},getDayName:function(e,i,n){var o=this.options,r=o.days;return t.isNumeric(e)?e=g(e):(a(n)&&(n=i),a(i)&&(i=e)),r=!0===n?o.daysMin:!0===i?o.daysShort:r,r[s(e)?e:this.date.getDay()]},getDate:function(t){var e=this.date;return t?this.formatDate(e):new Date(e)},setDate:function(e,s){var a=this.options.filter;if(n(e)||i(e)){if(e=this.parseDate(e),t.isFunction(a)&&!1===a.call(this.$element,e))return;this.date=e,this.viewDate=new Date(e),s||this.pick(),this.isBuilt&&this.fillAll()}},setStartDate:function(t){(n(t)||i(t))&&(this.startDate=this.parseDate(t),this.isBuilt&&this.fillAll())},setEndDate:function(t){(n(t)||i(t))&&(this.endDate=this.parseDate(t),this.isBuilt&&this.fillAll())},parseDate:function(t){var e,s,a,o,r,l,h=this.format,c=[];if(n(t))return new Date(t.getFullYear(),t.getMonth(),t.getDate());if(i(t)&&(c=t.match(w)||[]),t=new Date,s=t.getFullYear(),a=t.getDate(),o=t.getMonth(),e=h.parts.length,c.length===e)for(l=0;l<e;l++)switch(r=parseInt(c[l],10)||1,h.parts[l]){case"dd":case"d":a=r;break;case"mm":case"m":o=r-1;break;case"yy":s=2e3+r;break;case"yyyy":s=r}return new Date(s,o,a)},formatDate:function(t){var e,i,s,a,o,r=this.format,l="";if(n(t))for(l=r.source,i=t.getFullYear(),a={d:t.getDate(),m:t.getMonth()+1,yy:i.toString().substring(2),yyyy:i},a.dd=(a.d<10?"0":"")+a.d,a.mm=(a.m<10?"0":"")+a.m,e=r.parts.length,o=0;o<e;o++)s=r.parts[o],l=l.replace(s,a[s]);return l},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(m)}},u.LANGUAGES={},u.DEFAULTS={autoShow:!1,autoHide:!1,autoPick:!1,inline:!1,container:null,trigger:null,language:"",format:"mm/dd/yyyy",date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:"",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],itemTag:"li",mutedClass:"muted",pickedClass:"picked",disabledClass:"disabled",highlightedClass:"highlighted",template:'<div class="datepicker-container"><div class="datepicker-panel" data-view="years picker"><ul><li data-view="years prev">&lsaquo;</li><li data-view="years current"></li><li data-view="years next">&rsaquo;</li></ul><ul data-view="years"></ul></div><div class="datepicker-panel" data-view="months picker"><ul><li data-view="year prev">&lsaquo;</li><li data-view="year current"></li><li data-view="year next">&rsaquo;</li></ul><ul data-view="months"></ul></div><div class="datepicker-panel" data-view="days picker"><ul><li data-view="month prev">&lsaquo;</li><li data-view="month current"></li><li data-view="month next">&rsaquo;</li></ul><ul data-view="week"></ul><ul data-view="days"></ul></div></div>',offset:10,zIndex:1e3,filter:null,show:null,hide:null,pick:null},u.setDefaults=function(e){e=t.isPlainObject(e)?e:{},e.language&&(e=t.extend({},u.LANGUAGES[e.language],e)),t.extend(u.DEFAULTS,e)},u.other=t.fn.datepicker,t.fn.datepicker=function(e){var s,n=o(arguments,1);return this.each(function(){var a,o,r=t(this),l=r.data(m);if(!l){if(/destroy/.test(e))return;a=t.extend({},r.data(),t.isPlainObject(e)&&e),r.data(m,l=new u(this,a))}i(e)&&t.isFunction(o=l[e])&&(s=o.apply(l,n))}),a(s)?this:s},t.fn.datepicker.Constructor=u,t.fn.datepicker.languages=u.LANGUAGES,t.fn.datepicker.setDefaults=u.setDefaults,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=u.other,this}})},function(t,e,i){"use strict";!function(t){t.fn.autocomplete=function(e){var i=this,s=t("body"),a=e.case_sensitive||"yes",n=e.min_length||0,o=e.limit_number_suggestions||666,r=[];if(i.length){var l=function(){t("#js-codeit").html("You have to code a function or a redirection to display more results ;)")};i.each(function(e){var i=t(this),s=i.attr("id"),n=t('label[for="'+s+'"]'),o=e+1,l=i.data(),h=void 0!==l.comboboxPrefixClass?l.comboboxPrefixClass+"-":"",c=void 0!==l.comboboxHelpText?l.comboboxHelpText:"Use tabulation (or down) key to access and browse suggestions after input. Confirm your choice with enter key, or esc key to close suggestions box.",u=t("#"+i.attr("list")),d=void 0!==l.comboboxButtonTitle?l.comboboxButtonTitle:"clear this field",f=void 0!==l.comboboxButtonText?l.comboboxButtonText:"X",p=void 0!==l.comboboxCaseSensitive?l.comboboxCaseSensitive:a,g=[];i.attr({"data-number":o,autocorrect:"off",autocapitalize:"off",spellcheck:"off",autocomplete:"off","aria-describedby":h+"help-text"+o,"aria-autocomplete":"list","data-lastval":"","aria-owns":h+"suggest_"+o}),u.find("option").each(function(t,e){g.push(e.value)}),r[o]="no"===p?g.sort(function(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),t==e?0:t>e?1:-1}):g.sort(),i.wrap('<div class="'+h+'container js-container" data-combobox-prefix-class="'+h+'"></div>');var m=i.parent();m.append('<div id="'+h+"suggest_"+o+'" class="js-suggest '+h+'suggestions"><div role="listbox"></div></div>'),u.remove(),m.prepend('<div id="'+h+"suggestion-text"+o+'" class="js-suggestion-text '+h+'suggestion-text invisible" aria-live="assertive"></div>'),m.prepend('<span id="'+h+"help-text"+o+'" class="'+h+'help-text invisible">'+c+"</span>"),n.attr("id","label-id-"+s),i.after('<button class="js-clear-button '+h+'clear-button" aria-label="'+d+'" title="'+d+'" aria-describedby="label-id-'+s+'" type="button">'+f+"</button>")}),s.on("keyup",".js-combobox",function(e){var i=t(this),s=i.data(),l=i.parent(),h=l.parents("form"),c=l.data(),u=void 0!==c.comboboxPrefixClass?c.comboboxPrefixClass:"",d=l.find(".js-suggest div"),f=(d.find(".js-suggestion"),l.find(".js-suggestion-text")),p=void 0!==s.suggestionSingle?s.suggestionSingle:"There is ",g=void 0!==s.suggestionPlural?s.suggestionPlural:"There are ",m=void 0!==s.suggestionWord?s.suggestionWord:"suggestion",v=void 0!==s.comboboxMinLength?Math.abs(s.comboboxMinLength):n,y=void 0!==s.comboboxCaseSensitive?s.comboboxCaseSensitive:a,w=void 0!==s.comboboxLimitNumberSuggestions?Math.abs(s.comboboxLimitNumberSuggestions):o,b=void 0!==s.comboboxSearchOption?s.comboboxSearchOption:"beginning",k=(void 0!==s.comboboxSeeMoreText&&s.comboboxSeeMoreText,i.attr("data-number")),x=i.val(),D="";if(13===e.keyCode)h.submit();else if(27!==e.keyCode){i.attr("data-lastval",x);var C=r[k].length,$=0,S=0;if(d.empty(),""!=x&&x.length>=v){for(;$<C;)S<w&&("containing"===b&&"yes"===y&&r[k][$].indexOf(x)>=0||"no"===y&&r[k][$].toUpperCase().indexOf(x.toUpperCase())>=0||"beginning"===b&&"yes"===y&&r[k][$].substring(0,x.length)===x||"no"===y&&r[k][$].substring(0,x.length).toUpperCase()===x.toUpperCase())&&(d.append('<div id="suggestion-'+k+"-"+S+'" class="js-suggestion '+u+'suggestion" tabindex="-1" role="option">'+r[k][$]+"</div>"),S++),$++;if(S>=w&&S++,S>1&&(D=g+S+" "+m+"s."),1===S&&(D=p+S+" "+m+"."),0===S&&(D=p+S+" "+m+"."),S>=0){var j=f.text();if(D!=j){var T=t("<p>").text(D);f.attr("aria-live","polite"),f.empty(),f.append(T)}}}}}).on("click",function(e){var i=t(e.target),s=t(".js-suggestion-text:not(:empty)"),a=s.parents(".js-container"),n=a.find(".js-combobox"),o=a.find(".js-suggest div");i.is(".js-suggestion")||i.is(".js-combobox")||!s.length||(n.val(n.attr("data-lastval")),o.empty(),s.empty())}).on("keydown",".js-combobox",function(e){var i=t(this),s=i.parent(),a=s.find(".js-combobox"),n=s.find(".js-suggest div"),o=n.find(".js-suggestion"),r=s.find(".js-suggestion-text"),l=void 0===i.attr("data-combobox-notab-options"),h=o.first();(!e.shiftKey&&9==e.keyCode&&l||40==e.keyCode)&&o.length&&(a.val(h.html()),o.first().focus(),e.preventDefault()),(27==e.keyCode||!1===l&&9==e.keyCode)&&(a.val(a.attr("data-lastval")),n.empty(),r.empty(),27==e.keyCode&&(e.preventDefault(),setTimeout(function(){a.focus()},300)))}).on("keydown",".js-suggestion",function(e){var i=t(this),s=i.parents(".js-container"),a=s.find(".js-combobox"),n=void 0===a.attr("data-combobox-notab-options"),o=s.find(".js-suggest div"),r=s.find(".js-suggestion-text"),h=i.next(),c=i.prev();if((27==e.keyCode||!1===n&&9==e.keyCode)&&(27==e.keyCode&&(a.val(a.attr("data-lastval")),o.empty(),r.empty(),setTimeout(function(){a.focus()},300),e.preventDefault()),!1===n&&9==e.keyCode&&(o.empty(),r.empty(),a.focus())),13!=e.keyCode&&32!=e.keyCode||(i.hasClass("js-seemore")?(a.val(a.attr("data-lastval")),o.empty(),r.empty(),setTimeout(function(){a.focus()},300),setTimeout(function(){l()},301),e.preventDefault()):(a.val(i.html()),a.attr("data-lastval",i.html()),o.empty(),r.empty(),setTimeout(function(){a.focus()},300),e.preventDefault())),!e.shiftKey&&9==e.keyCode&&n||40==e.keyCode){if(h.length)a.val(h.html()),h.focus();else if(a.val(a.attr("data-lastval")),e.shiftKey||9!=e.keyCode)setTimeout(function(){a.focus()},300);else{var u=jQuery.Event("keydown");u.which=27,u.keyCode=27,i.trigger(u)}e.preventDefault()}(e.shiftKey&&9==e.keyCode&&n||38==e.keyCode)&&(c.length?(a.val(c.html()),c.focus()):a.val(a.attr("data-lastval")).focus(),e.preventDefault())}).on("click",".js-clear-button",function(e){var i=t(this),s=i.parent(),a=s.find(".js-combobox"),n=s.find(".js-suggest div"),o=s.find(".js-suggestion-text");n.empty(),o.empty(),a.val(""),a.attr("data-lastval","")}).on("click",".js-suggestion",function(e){var i=t(this),s=i.html(),a=i.parents(".js-container"),n=a.find(".js-combobox"),o=a.find(".js-suggest div"),r=a.find(".js-suggestion-text");i.hasClass("js-seemore")?(o.empty(),r.empty(),n.focus(),l()):(n.val(s).focus(),o.empty(),r.empty())})}}}(jQuery)},function(t,e,i){"use strict";function s(t){var e=document.createElement("option");return e.innerText=t,e}var a=i(5),n=(0,a.debounce)(function(){var t=$(this).val(),e=$(this);if(!(t.length<2)&&0==r){r=!0;var i=null!=$("#states").val()?$("#states").val().toString():"",a={text:t,jurisdiction:""!=i?i:"US"};$.ajax({type:"GET",url:"/legislative-compass/_search_committee_lookup",data:a,success:function(i){if(r=!1,null!=i&&void 0==i.success){var a=$("#committee-filter").val()||[],n=i.map(function(t){return t.name}),o=n.concat(a.filter(function(t){return n.indexOf(t)<0})),l=o.map(s);t=e.val(),$("#committee-filter").html(l).val(a).trigger("chosen:updated"),e.val(t)}}})}},333),o=(0,a.debounce)(function(){var t=$(this).val(),e=$(this);t.length>1&&0==r&&(r=!0,$.ajax({type:"GET",url:"/legislative-compass/_search_crsIssueArea_lookup?text="+t,success:function(i){if(r=!1,null!=i&&void 0==i.success){var a=$("#crsIssueArea").val()||[],n=i.map(function(t){return t.term}),o=n.concat(a.filter(function(t){return n.indexOf(t)<0})),l=o.map(s);t=e.val(),$("#crsIssueArea").html(l).val(a).trigger("chosen:updated"),e.val(t)}}}))},333),r=!1;$(document).on("input","#committeeFilterList input",n).on("input","#crsIssueAreaListItem input",o)},function(t,e,i){"use strict";!function(){function t(){var i,s=this.querySelectorAll("template"),a=[],n=0;if(e){for(i=this.cloneNode(!0),s=i.content.querySelectorAll("template");s[n];n++)s[n].clone=t;return i}for(;s[n];n++)a.push(s[n].content);for(i=this.cloneNode(!0),i.content=this.content,i.clone=t,s=i.querySelectorAll("template"),n=0;s[n];n++)s[n].content=a[n],s[n].clone=t;return i}var e="content"in document.createElement("template");if(!e)for(var i,s,a,n,o,r=Array.prototype.slice.call(document.getElementsByTagName("template")),l=0;i=r[l++];){for(s=i.children,a=document.createDocumentFragment(),o=0;n=s[o];o++)a.appendChild(n);i.content=a}for(var i,r=document.querySelectorAll("template"),l=0;i=r[l++];)i.clone=t}()},function(t,e,i){"use strict";i(3),i(0),i(1),i(2),$(document).ready(function(){var t=new Date;$(".js-datepicker").datepicker({daysMin:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],endDate:t,offset:-1}),$(".js-chosen").chosen()}),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&$("html").addClass("ios")},function(t,e,i){"use strict";function s(t,e,i){var s;return function(){var a=this,n=arguments,o=function(){s=null,i||t.apply(a,n)},r=i&&!s;clearTimeout(s),s=setTimeout(o,e),r&&t.apply(a,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=s},function(t,e){t.exports=jQuery}]);
{
"name": "politico-assets",
"version": "0.2.18",
"version": "0.2.19",
"description": "Minified front end assets used by politico.com",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc