uswds-jekyll 5.0.1 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -93
- data/_includes/components/banner.html +11 -9
- data/_sass/uswds/components/_header.scss +1 -1
- data/_sass/uswds/components/_nav-buttons.scss +4 -4
- data/_sass/uswds/src/components/_alerts.scss +8 -9
- data/_sass/uswds/src/components/_banner.scss +102 -31
- data/_sass/uswds/src/components/_breadcrumb.scss +168 -0
- data/_sass/uswds/src/components/_footer.scss +14 -4
- data/_sass/uswds/src/components/_header.scss +1 -1
- data/_sass/uswds/src/components/_identifier.scss +146 -0
- data/_sass/uswds/src/components/_media-block.scss +6 -1
- data/_sass/uswds/src/components/_megamenu.scss +4 -1
- data/_sass/uswds/src/components/_section.scss +6 -2
- data/_sass/uswds/src/components/_skipnav.scss +2 -2
- data/_sass/uswds/src/components/_step-indicator.scss +444 -0
- data/_sass/uswds/src/components/_tooltip.scss +114 -0
- data/_sass/uswds/src/core/_functions.scss +631 -0
- data/_sass/uswds/src/core/_notifications.scss +14 -0
- data/_sass/uswds/src/core/_properties.scss +120 -108
- data/_sass/uswds/src/core/_system-tokens.scss +140 -155
- data/_sass/uswds/src/core/_variables.scss +134 -32
- data/_sass/uswds/src/core/mixins/_add-link-styles.scss +20 -0
- data/_sass/uswds/src/core/mixins/_all.scss +4 -0
- data/_sass/uswds/src/core/mixins/_font-face.scss +1 -1
- data/_sass/uswds/src/core/mixins/_icon.scss +119 -0
- data/_sass/uswds/src/core/mixins/_media-block-img.scss +1 -1
- data/_sass/uswds/src/core/mixins/_set-link-from-bg.scss +30 -0
- data/_sass/uswds/src/core/mixins/_set-text-from-bg.scss +28 -0
- data/_sass/uswds/src/core/mixins/utilities/_align-self.scss +11 -0
- data/_sass/uswds/src/core/mixins/utilities/_border.scss +1 -1
- data/_sass/uswds/src/core/mixins/utilities/_flex.scss +6 -1
- data/_sass/uswds/src/core/mixins/utilities/_text.scss +6 -1
- data/_sass/uswds/src/core/placeholders/_list.scss +5 -0
- data/_sass/uswds/src/core/system-tokens/_blue-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_blue-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_blue.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_cyan.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_gold.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_gray-cool.scss +2 -2
- data/_sass/uswds/src/core/system-tokens/_gray-warm.scss +2 -2
- data/_sass/uswds/src/core/system-tokens/_gray.scss +2 -2
- data/_sass/uswds/src/core/system-tokens/_green-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_green-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_green.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_indigo-cool.scss +6 -6
- data/_sass/uswds/src/core/system-tokens/_indigo-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_indigo.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_magenta.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_mint-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_mint.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_orange-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_orange.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_red-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_red-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_red.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_violet-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_violet.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_yellow.scss +3 -3
- data/_sass/uswds/src/elements/_buttons.scss +31 -24
- data/_sass/uswds/src/elements/form-controls/_all.scss +2 -0
- data/_sass/uswds/src/elements/form-controls/_checkbox-and-radio.scss +4 -2
- data/_sass/uswds/src/elements/form-controls/_combo-box.scss +80 -9
- data/_sass/uswds/src/elements/form-controls/_date-picker.scss +325 -0
- data/_sass/uswds/src/elements/form-controls/_file-input.scss +195 -0
- data/_sass/uswds/src/elements/form-controls/_global.scss +10 -3
- data/_sass/uswds/src/elements/form-controls/_time-picker.scss +3 -0
- data/_sass/uswds/src/packages/_usa-breadcrumb.scss +4 -0
- data/_sass/uswds/src/packages/_usa-identifier.scss +1 -0
- data/_sass/uswds/src/packages/_usa-step-indicator.scss +2 -0
- data/_sass/uswds/src/packages/_usa-tooltip.scss +2 -0
- data/_sass/uswds/src/packages/_uswds-components.scss +4 -0
- data/_sass/uswds/src/settings/_settings-color.scss +6 -1
- data/_sass/uswds/src/settings/_settings-components.scss +45 -1
- data/_sass/uswds/src/settings/_settings-general.scss +4 -4
- data/_sass/uswds/src/settings/_settings-typography.scss +5 -5
- data/_sass/uswds/src/settings/_settings-utilities.scss +89 -75
- data/_sass/uswds/src/theme/_uswds-theme-color.scss +4 -1
- data/_sass/uswds/src/theme/_uswds-theme-components.scss +45 -1
- data/_sass/uswds/src/theme/_uswds-theme-general.scss +4 -4
- data/_sass/uswds/src/theme/_uswds-theme-typography.scss +5 -5
- data/_sass/uswds/src/theme/_uswds-theme-utilities.scss +90 -77
- data/_sass/uswds/src/theme/styles.scss +5 -1
- data/_sass/uswds/src/utilities/palettes/_default-palettes.scss +2 -1
- data/_sass/uswds/src/utilities/palettes/_font-palettes.scss +478 -478
- data/_sass/uswds/src/utilities/palettes/_spacing-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_all-colors-palettes.scss +2 -2
- data/_sass/uswds/src/utilities/palettes/colors/_black-transparent-palettes.scss +2 -2
- data/_sass/uswds/src/utilities/palettes/colors/_blue-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_blue-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_blue-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_cyan-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_gold-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_gray-cool-palettes.scss +5 -5
- data/_sass/uswds/src/utilities/palettes/colors/_gray-palettes.scss +5 -5
- data/_sass/uswds/src/utilities/palettes/colors/_gray-warm-palettes.scss +5 -5
- data/_sass/uswds/src/utilities/palettes/colors/_green-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_green-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_green-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_indigo-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_indigo-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_indigo-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_magenta-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_mint-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_mint-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_orange-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_orange-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_red-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_red-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_red-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_violet-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_violet-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_white-transparent-palettes.scss +2 -2
- data/_sass/uswds/src/utilities/palettes/colors/_yellow-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/rules/_all.scss +1 -0
- data/_sass/uswds/src/utilities/rules/_package.scss +1 -0
- data/_sass/uswds/src/utilities/rules/add-aspect.scss +13 -13
- data/_sass/uswds/src/utilities/rules/add-list-reset.scss +5 -5
- data/_sass/uswds/src/utilities/rules/align-items.scss +2 -2
- data/_sass/uswds/src/utilities/rules/align-self.scss +27 -0
- data/_sass/uswds/src/utilities/rules/background-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/border-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/border-radius.scss +7 -7
- data/_sass/uswds/src/utilities/rules/border-style.scss +2 -2
- data/_sass/uswds/src/utilities/rules/border-width.scss +5 -5
- data/_sass/uswds/src/utilities/rules/border.scss +5 -5
- data/_sass/uswds/src/utilities/rules/bottom.scss +2 -2
- data/_sass/uswds/src/utilities/rules/box-shadow.scss +2 -2
- data/_sass/uswds/src/utilities/rules/circle.scss +4 -4
- data/_sass/uswds/src/utilities/rules/clearfix.scss +5 -5
- data/_sass/uswds/src/utilities/rules/color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/cursor.scss +2 -2
- data/_sass/uswds/src/utilities/rules/display.scss +2 -2
- data/_sass/uswds/src/utilities/rules/flex-direction.scss +2 -2
- data/_sass/uswds/src/utilities/rules/flex-wrap.scss +2 -2
- data/_sass/uswds/src/utilities/rules/flex.scss +2 -2
- data/_sass/uswds/src/utilities/rules/float.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-family.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-feature.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-style.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-weight.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font.scss +2 -2
- data/_sass/uswds/src/utilities/rules/height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/justify-content.scss +2 -2
- data/_sass/uswds/src/utilities/rules/left.scss +2 -2
- data/_sass/uswds/src/utilities/rules/letter-spacing.scss +2 -2
- data/_sass/uswds/src/utilities/rules/line-height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/margin.scss +9 -9
- data/_sass/uswds/src/utilities/rules/max-height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/max-width.scss +2 -2
- data/_sass/uswds/src/utilities/rules/measure.scss +2 -2
- data/_sass/uswds/src/utilities/rules/min-height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/min-width.scss +2 -2
- data/_sass/uswds/src/utilities/rules/opacity.scss +3 -5
- data/_sass/uswds/src/utilities/rules/order.scss +2 -2
- data/_sass/uswds/src/utilities/rules/outline-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/outline.scss +2 -2
- data/_sass/uswds/src/utilities/rules/overflow.scss +3 -3
- data/_sass/uswds/src/utilities/rules/padding.scss +5 -5
- data/_sass/uswds/src/utilities/rules/pin.scss +19 -19
- data/_sass/uswds/src/utilities/rules/position.scss +2 -2
- data/_sass/uswds/src/utilities/rules/right.scss +2 -2
- data/_sass/uswds/src/utilities/rules/square.scss +4 -4
- data/_sass/uswds/src/utilities/rules/text-align.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-decoration-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-decoration.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-indent.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-transform.scss +2 -2
- data/_sass/uswds/src/utilities/rules/top.scss +2 -2
- data/_sass/uswds/src/utilities/rules/vertical-align.scss +2 -2
- data/_sass/uswds/src/utilities/rules/whitespace.scss +2 -2
- data/_sass/uswds/src/utilities/rules/width.scss +2 -2
- data/_sass/uswds/src/utilities/rules/z-index.scss +2 -2
- data/assets/uswds/img/angle-arrow-down-gray-90.svg +1 -0
- data/assets/uswds/img/angle-arrow-right-white.svg +1 -0
- data/assets/uswds/img/angle-arrow-right.svg +1 -0
- data/assets/uswds/img/angle-double-left-solid.svg +1 -0
- data/assets/uswds/img/angle-double-right-solid.svg +1 -0
- data/assets/uswds/img/angle-left-solid.svg +1 -0
- data/assets/uswds/img/angle-right-solid.svg +1 -0
- data/assets/uswds/img/arrow-down-gray-60.svg +1 -0
- data/assets/uswds/img/arrow-left-indigo-cool-50v.svg +1 -0
- data/assets/uswds/img/arrow-left-white.svg +1 -0
- data/assets/uswds/img/arrow-left.svg +1 -0
- data/assets/uswds/img/calendar-alt-solid.svg +1 -0
- data/assets/uswds/img/chevron-right-white.svg +1 -0
- data/assets/uswds/img/chevron-right.svg +1 -0
- data/assets/uswds/img/chevron-white.svg +1 -0
- data/assets/uswds/img/chevron.svg +1 -0
- data/assets/uswds/img/circle-gray-20.svg +1 -0
- data/assets/uswds/img/close-alt-blue-60v.svg +3 -0
- data/assets/uswds/img/close-alt.svg +3 -0
- data/assets/uswds/img/close-gray-60.svg +1 -0
- data/assets/uswds/img/file-excel.svg +1 -0
- data/assets/uswds/img/file-pdf.svg +1 -0
- data/assets/uswds/img/file-video.svg +1 -0
- data/assets/uswds/img/file-word.svg +1 -0
- data/assets/uswds/img/file.svg +1 -0
- data/assets/uswds/img/loader.gif +0 -0
- data/assets/uswds/img/loader.svg +1 -0
- data/assets/uswds/img/lock.svg +1 -0
- data/assets/uswds/js/uswds.js +3570 -216
- data/assets/uswds/js/uswds.min.js +1 -1
- data/assets/uswds/js/uswds.min.js.map +1 -1
- metadata +59 -2
@@ -1,2 +1,2 @@
|
|
1
|
-
!function i(c,a,u){function s(e,t){if(!a[e]){if(!c[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(l)return l(e,!0);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}var r=a[e]={exports:{}};c[e][0].call(r.exports,function(t){return s(c[e][1][t]||t)},r,r.exports,i,c,a,u)}return a[e].exports}for(var l="function"==typeof require&&require,t=0;t<u.length;t++)s(u[t]);return s}({1:[function(t,e,n){"use strict";"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){if("Element"in t){var e="classList",n="prototype",o=t.Element[n],r=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},u=function(t,e){if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return c.call(t,e)},s=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],o=0,r=n.length;o<r;o++)this.push(n[o]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=s[n]=[],f=function(){return new s(this)};if(a[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return-1!==u(this,t+="")},l.add=function(){for(var t,e=arguments,n=0,o=e.length,r=!1;-1===u(this,t=e[n]+"")&&(this.push(t),r=!0),++n<o;);r&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,o=0,r=n.length,i=!1;do{for(e=u(this,t=n[o]+"");-1!==e;)this.splice(e,1),i=!0,e=u(this,t)}while(++o<r);i&&this._updateClassName()},l.toggle=function(t,e){t+="";var n=this.contains(t),o=n?!0!==e&&"remove":!1!==e&&"add";return o&&this[o](t),!0===e||!1===e?e:!n},l.toString=function(){return this.join(" ")},r.defineProperty){var d={get:f,enumerable:!0,configurable:!0};try{r.defineProperty(o,e,d)}catch(t){void 0!==t.number&&-2146823252!==t.number||(d.enumerable=!1,r.defineProperty(o,e,d))}}else r[n].__defineGetter__&&o.__defineGetter__(e,f)}}(window.self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var o=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var e,n=arguments.length;for(e=0;e<n;e++)t=arguments[e],o.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}())},{}],2:[function(t,n,e){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){void 0!==n?n.exports=e():"function"==typeof define&&"object"==o(define.amd)?define(e):this.domready=e()}(0,function(){var t,e=[],n=document,o=n.documentElement.doScroll,r="DOMContentLoaded",i=(o?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return i||n.addEventListener(r,t=function(){for(n.removeEventListener(r,t),i=1;t=e.shift();)t()}),function(t){i?setTimeout(t,0):e.push(t)}})},{}],3:[function(t,e,n){"use strict";var o;e.exports=((o=document.createElement("div")).setAttribute("data-a-b","c"),Boolean(o.dataset&&"c"===o.dataset.aB)?function(t){return t.dataset}:function(t){var e={},n=t.attributes;function o(){return this.value}function r(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var i=0,c=n.length;i<c;i++){var a=n[i];if(a){var u=a.name;if(0===u.indexOf("data-")){var s=u.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),l=a.value;Object.defineProperty(e,s,{enumerable:!0,get:o.bind({value:l||""}),set:r.bind(t,u)})}}}return e})},{}],4:[function(t,e,n){"use strict";var o;"function"!=typeof(o=window.Element.prototype).matches&&(o.matches=o.msMatchesSelector||o.mozMatchesSelector||o.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=0;e[n]&&e[n]!==this;)++n;return Boolean(e[n])}),"function"!=typeof o.closest&&(o.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})},{}],5:[function(t,o,r){"use strict";!function(){var t,e={polyfill:function(){if(!("KeyboardEvent"in window)||"key"in KeyboardEvent.prototype)return!1;var t={get:function(){var t=e.keys[this.which||this.keyCode];return Array.isArray(t)&&(t=t[+this.shiftKey]),t}};return Object.defineProperty(KeyboardEvent.prototype,"key",t),t},keys:{3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"}};for(t=1;t<25;t++)e.keys[111+t]="F"+t;var n="";for(t=65;t<91;t++)n=String.fromCharCode(t),e.keys[t]=[n.toLowerCase(),n.toUpperCase()];"function"==typeof define&&define.amd?define("keyboardevent-key-polyfill",e):void 0!==r&&void 0!==o?o.exports=e:window&&(window.keyboardeventKeyPolyfill=e)}()},{}],6:[function(t,p,e){(function(t){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(){return f.Date.now()}var o=NaN,e="[object Symbol]",r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,s="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,l="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,f=s||l||Function("return this")(),d=Object.prototype.toString,m=Math.max,w=Math.min;function E(t){var e=n(t);return!!t&&("object"==e||"function"==e)}function v(t){return"symbol"==n(t)||function(t){return!!t&&"object"==n(t)}(t)&&d.call(t)==e}function x(t){if("number"==typeof t)return t;if(v(t))return o;if(E(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=E(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=c.test(t);return n||a.test(t)?u(t.slice(2),n?2:8):i.test(t)?o:+t}p.exports=function(o,n,t){var r,i,c,a,u,s,l=0,f=!1,d=!1,e=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function v(t){var e=r,n=i;return r=i=void 0,l=t,a=o.apply(n,e)}function p(t){var e=t-s;return void 0===s||n<=e||e<0||d&&c<=t-l}function b(){var t=y();if(p(t))return h(t);u=setTimeout(b,function(t){var e=n-(t-s);return d?w(e,c-(t-l)):e}(t))}function h(t){return u=void 0,e&&r?v(t):(r=i=void 0,a)}function g(){var t=y(),e=p(t);if(r=arguments,i=this,s=t,e){if(void 0===u)return function(t){return l=t,u=setTimeout(b,n),f?v(t):a}(s);if(d)return u=setTimeout(b,n),v(s)}return void 0===u&&(u=setTimeout(b,n)),a}return n=x(n)||0,E(t)&&(f=!!t.leading,c=(d="maxWait"in t)?m(x(t.maxWait)||0,n):c,e="trailing"in t?!!t.trailing:e),g.cancel=function(){void 0!==u&&clearTimeout(u),r=s=i=u=void(l=0)},g.flush=function(){return void 0===u?a:h(y())},g}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(t,e,n){"use strict";var u=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,o,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++){for(var c in n=Object(arguments[i]))s.call(n,c)&&(r[c]=n[c]);if(u){o=u(n);for(var a=0;a<o.length;a++)l.call(n,o[a])&&(r[o[a]]=n[o[a]])}}return r}},{}],8:[function(t,e,n){"use strict";function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=t("object-assign"),u=t("../delegate"),s=t("../delegateAll"),l=/^(.+):delegate\((.+)\)$/,f=function(t,e){var n=t[e];return delete t[e],n};e.exports=function(o,t){var n=Object.keys(o).reduce(function(t,e){var n=function(t,e){var n,o,r=t.match(l);r&&(t=r[1],n=r[2]),"object"===c(e)&&(o={capture:f(e,"capture"),passive:f(e,"passive")});var i={selector:n,delegate:"object"===c(e)?s(e):n?u(n,e):e,options:o};return-1<t.indexOf(" ")?t.split(" ").map(function(t){return a({type:t},i)}):(i.type=t,[i])}(e,o[e]);return t.concat(n)},[]);return a({add:function(e){n.forEach(function(t){e.addEventListener(t.type,t.delegate,t.options)})},remove:function(e){n.forEach(function(t){e.removeEventListener(t.type,t.delegate,t.options)})}},t)}},{"../delegate":10,"../delegateAll":11,"object-assign":7}],9:[function(t,e,n){"use strict";e.exports=function(t){return function(e){return t.some(function(t){return!1===t.call(this,e)},this)}}},{}],10:[function(t,e,n){"use strict";t("element-closest"),e.exports=function(n,o){return function(t){var e=t.target.closest(n);if(e)return o.call(e,t)}}},{"element-closest":4}],11:[function(t,e,n){"use strict";var o=t("../delegate"),r=t("../compose");e.exports=function(n){var t=Object.keys(n);if(1===t.length&&"*"===t[0])return n["*"];var e=t.reduce(function(t,e){return t.push(o(e,n[e])),t},[]);return r(e)}},{"../compose":9,"../delegate":10}],12:[function(t,e,n){"use strict";e.exports=function(e,n){return function(t){if(e!==t.target&&!e.contains(t.target))return n.call(this,t)}}},{}],13:[function(t,e,n){"use strict";e.exports={behavior:t("./behavior"),delegate:t("./delegate"),delegateAll:t("./delegateAll"),ignore:t("./ignore"),keymap:t("./keymap")}},{"./behavior":8,"./delegate":10,"./delegateAll":11,"./ignore":12,"./keymap":14}],14:[function(t,e,n){"use strict";t("keyboardevent-key-polyfill");var i={Alt:"altKey",Control:"ctrlKey",Ctrl:"ctrlKey",Shift:"shiftKey"};e.exports=function(r){var t=Object.keys(r).some(function(t){return-1<t.indexOf("+")});return function(n){var o=function(t,e){var n=t.key;if(e)for(var o in i)!0===t[i[o]]&&(n=[o,n].join("+"));return n}(n,t);return[o,o.toLowerCase()].reduce(function(t,e){return e in r&&(t=r[o].call(this,n)),t},void 0)}},e.exports.MODIFIERS=i},{"keyboardevent-key-polyfill":5}],15:[function(t,e,n){"use strict";e.exports=function(e,n){var o=function(t){return t.currentTarget.removeEventListener(t.type,o,n),e.call(this,t)};return o}},{}],16:[function(t,e,n){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=/(^\s+)|(\s+$)/g,i=/\s+/,c=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(r,"")};e.exports=function(t,e){if("string"!=typeof t)throw new Error("Expected a string but got "+o(t));var n=(e=e||window.document).getElementById?e.getElementById.bind(e):function(t){return this.querySelector('[id="'+t.replace(/"/g,'\\"')+'"]')}.bind(e);return 1===(t=c(t).split(i)).length&&""===t[0]?[]:t.map(function(t){var e=n(t);if(!e)throw new Error('no element with id: "'+t+'"');return e})}},{}],17:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(e){return c(v,e).filter(function(t){return t.closest(d)===e})}function r(e,t){var n,o=e.closest(d);if(!o)throw new Error("".concat(v," is missing outer ").concat(d));n=u(e,t);var r="true"===o.getAttribute("aria-multiselectable");n&&!r&&i(o).forEach(function(t){t!==e&&u(t,!1)})}var c=t("../utils/select"),a=t("../utils/behavior"),u=t("../utils/toggle"),s=t("../utils/is-in-viewport"),l=t("../events").CLICK,f=t("../config").prefix,d=".".concat(f,"-accordion, .").concat(f,"-accordion--bordered"),v=".".concat(f,"-accordion__button[aria-controls]"),p="aria-expanded",b=a(o({},l,o({},v,function(t){t.preventDefault(),r(this),"true"===this.getAttribute(p)&&(s(this)||this.scrollIntoView())})),{init:function(t){c(v,t).forEach(function(t){var e="true"===t.getAttribute(p);r(t,e)})},ACCORDION:d,BUTTON:v,show:function(t){return r(t,!0)},hide:function(t){return r(t,!1)},toggle:r,getButtons:i});e.exports=b},{"../config":28,"../events":29,"../utils/behavior":34,"../utils/is-in-viewport":36,"../utils/select":37,"../utils/toggle":40}],18:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=t("../utils/behavior"),i=t("../events").CLICK,c=t("../config").prefix,a=".".concat(c,"-banner__header"),u="".concat(c,"-banner__header--expanded");e.exports=r(o({},i,o({},"".concat(a," [aria-controls]"),function(t){t.preventDefault(),this.closest(a).classList.toggle(u)})))},{"../config":28,"../events":29,"../utils/behavior":34}],19:[function(t,e,n){"use strict";function f(t){var e=t.closest(l);if(!e)throw new Error("".concat(d," is missing outer ").concat(l));var n=e.querySelector(v);if(!n)throw new Error("".concat(l," is missing inner ").concat(v));return{characterCountEl:e,messageEl:n}}function o(t){var e=f(t),n=e.characterCountEl,o=e.messageEl,r=parseInt(n.getAttribute("data-maxlength"),10);if(r){var i="",c=t.value.length,a=c&&r<c;if(0===c)i="".concat(r," characters allowed");else{var u=Math.abs(r-c),s="character".concat(1===u?"":"s"),l=a?"over limit":"left";i="".concat(u," ").concat(s," ").concat(l)}o.classList.toggle(b,a),o.innerHTML=i,a&&!t.validationMessage&&t.setCustomValidity(p),a||t.validationMessage!==p||t.setCustomValidity("")}}var r,i,c,a=t("../utils/select"),u=t("../utils/behavior"),s=t("../config").prefix,l=".".concat(s,"-character-count"),d=".".concat(s,"-character-count__field"),v=".".concat(s,"-character-count__message"),p="The content is too long.",b="".concat(s,"-character-count__message--invalid"),h=u({input:(r={},i=d,c=function(){o(this)},i in r?Object.defineProperty(r,i,{value:c,enumerable:!0,configurable:!0,writable:!0}):r[i]=c,r)},{init:function(t){a(d,t).forEach(function(t){!function(t){var e=f(t).characterCountEl,n=t.getAttribute("maxlength");n&&(t.removeAttribute("maxlength"),e.setAttribute("data-maxlength",n))}(t),o(t)})},MESSAGE_INVALID_CLASS:b,VALIDATION_MESSAGE:p});e.exports=h},{"../config":28,"../utils/behavior":34,"../utils/select":37}],20:[function(t,e,n){"use strict";var o,r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=t.closest(y);if(!e)throw new Error("Element is missing outer ".concat(y));var n=e.querySelector(S);if(!n)throw new Error("".concat(y," is missing inner ").concat(S));var o=e.querySelector(O),r=e.querySelector(C),i=e.querySelector(_),c=e.querySelector(L);return{comboBoxEl:e,selectEl:n,inputEl:o,listEl:r,statusEl:i,focusedOptionEl:c}}function c(t){for(var e=b(t),n=e.selectEl,o=e.inputEl,r=e.listEl,i=e.statusEl,c="".concat(r.id,"--option-"),a=(o.value||"").toLowerCase(),u=[],s=0,l=n.options.length;s<l;s+=1){var f=n.options[s];!f.value||a&&-1===f.text.toLowerCase().indexOf(a)||u.push(f)}var d=u.length,v=u.map(function(t,e){return'<li\n aria-selected="false"\n aria-setsize="'.concat(u.length,'"\n aria-posinset="').concat(e+1,'"\n id="').concat(c).concat(e,'"\n class="').concat(E,'"\n tabindex="-1"\n role="option"\n data-option-value="').concat(t.value,'"\n >').concat(t.text,"</li>")}).join(""),p='<li class="'.concat(E,'--no-results">No results found</li>');r.hidden=!1,r.innerHTML=d?v:p,o.setAttribute("aria-expanded","true"),i.innerHTML=d?"".concat(d," result").concat(1<d?"s":""," available."):"No results."}function a(t){var e=b(t),n=e.inputEl,o=e.listEl;e.statusEl.innerHTML="",n.setAttribute("aria-expanded","false"),n.setAttribute("aria-activedescendant",""),o.innerHTML="",o.hidden=!0}function u(t){var e=b(t),n=e.selectEl,o=e.inputEl,r=e.statusEl,i=e.focusedOptionEl;if(r.textContent="",i)return n.value=i.getAttribute("data-option-value"),void(o.value=i.textContent);var c=(o.value||"").toLowerCase();if(c)for(var a=0,u=n.options.length;a<u;a+=1){var s=n.options[a];if(s.text.toLowerCase()===c)return n.value=s.value,void(o.value=s.text)}n.value="",o.value&&(o.value="")}function s(t,e,n){var o=b(t),r=o.inputEl,i=o.listEl;if(e&&(e.classList.remove(A),e.setAttribute("aria-selected","false")),n){r.setAttribute("aria-activedescendant",n.id),n.setAttribute("aria-selected","true"),n.classList.add(A);var c=n.offsetTop+n.offsetHeight;i.scrollTop+i.offsetHeight<c&&(i.scrollTop=c-i.offsetHeight),n.offsetTop<i.scrollTop&&(i.scrollTop=n.offsetTop),n.focus()}else r.setAttribute("aria-activedescendant",""),r.focus()}function l(t){var e=b(t.target),n=e.comboBoxEl,o=e.listEl,r=e.focusedOptionEl,i=r&&r.previousSibling,c=!o.hidden;s(n,r,i),c&&t.preventDefault(),i||a(n)}function f(t){var e=b(t.target),n=e.comboBoxEl,o=e.listEl,r=e.focusedOptionEl;o.hidden&&c(n);var i=r?r.nextSibling:o.querySelector(j);i&&s(n,r,i),t.preventDefault()}var d=t("receptor/keymap"),v=t("../utils/select"),p=t("../utils/behavior"),h=t("../config").prefix,g=t("../events").CLICK,y=".".concat(h,"-combo-box"),m="".concat(h,"-combo-box__input"),w="".concat(h,"-combo-box__list"),E="".concat(h,"-combo-box__list-option"),x="".concat(h,"-combo-box__status"),A="".concat(E,"--focused"),S=".".concat(h,"-combo-box__select"),O=".".concat(m),C=".".concat(w),j=".".concat(E),L=".".concat(A),_=".".concat(x),k=p((i(r={},g,(i(o={},O,function(){c(this)}),i(o,j,function(){!function(t){var e=b(t),n=e.comboBoxEl,o=e.selectEl,r=e.inputEl;o.value=t.getAttribute("data-option-value"),r.value=t.textContent,a(n),r.focus()}(this)}),o)),i(r,"focusout",i({},y,function(t){var e=b(t.target).comboBoxEl;e.contains(t.relatedTarget)||(u(e),a(e))})),i(r,"keydown",i({},y,d({ArrowUp:l,Up:l,ArrowDown:f,Down:f,Escape:function(t){var e=b(t.target),n=e.comboBoxEl,o=e.inputEl;a(n),o.focus()},Enter:function(t){var e=b(t.target),n=e.comboBoxEl,o=e.inputEl,r=!e.listEl.hidden;u(n),r&&(a(n),o.focus(),t.preventDefault())}}))),i(r,"keyup",i({},O,function(t){!function(t){return 47<t&&t<58||32===t||8===t||64<t&&t<91||95<t&&t<112||185<t&&t<193||218<t&&t<223}(t.keyCode)||c(this)})),r),{init:function(t){v(S,t).forEach(function(t){!function(t){for(var e,n=b(t),o=n.comboBoxEl,r=n.selectEl,i=r.id,c="".concat(i,"--list"),a="".concat(i,"--assistiveHint"),u="",s=[],l=0,f=r.options.length;l<f;l+=1){var d=r.options[l];if(u||d.value||(u='placeholder="'.concat(d.text,'"')),!e&&d.selected&&d.value&&(e=d),u&&e)break}if(r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1"),r.classList.add("usa-sr-only"),r.id="",["required","aria-label","aria-labelledby"].forEach(function(t){if(r.hasAttribute(t)){var e=r.getAttribute(t);s.push("".concat(t,'="').concat(e,'"')),r.removeAttribute(t)}}),o.insertAdjacentHTML("beforeend",['<input\n aria-owns="'.concat(c,'"\n aria-autocomplete="list"\n aria-describedby="').concat(a,'"\n aria-expanded="false"\n autocapitalize="off"\n ').concat(u||"",'\n autocomplete="off"\n id="').concat(i,'"\n class="').concat(m,'"\n type="text"\n role="combobox"\n ').concat(s.join(" "),"\n >"),'<ul\n id="'.concat(c,'"\n class="').concat(w,'"\n role="listbox"\n hidden>\n </ul>'),'<div class="'.concat(x,' usa-sr-only" role="status">\n </div>'),'<span id="'.concat(a,'" class="usa-sr-only">\n When autocomplete results are available use up and down arrows to review and enter to select.\n Touch device users, explore by touch or with swipe gestures.\n </span>')].join("")),e){var v=b(t).inputEl;r.value=e.value,v.value=e.text}}(t)})}});e.exports=k},{"../config":28,"../events":29,"../utils/behavior":34,"../utils/select":37,"receptor/keymap":14}],21:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r,i=t("lodash.debounce"),c=t("../utils/behavior"),a=t("../utils/select"),u=t("../events").CLICK,s=t("../config").prefix,l="hidden",f=".".concat(s,"-footer--big"),d="".concat(f," nav"),v="".concat(d," .").concat(s,"-footer__primary-link"),p=".".concat(s,"-footer__primary-content--collapsible");var b=i(function(){if(r!==window.innerWidth){r=window.innerWidth;var e=window.innerWidth<480;a(p).forEach(function(t){return t.classList.toggle(l,e)})}},180);e.exports=c(o({},u,o({},v,function(){if(window.innerWidth<480){var e=this.closest(p);e.classList.toggle(l),a(p,e.closest(d)).forEach(function(t){t!==e&&t.classList.add(l)})}})),{HIDE_MAX_WIDTH:480,DEBOUNCE_RATE:180,init:function(){b(),window.addEventListener("resize",b)},teardown:function(){window.removeEventListener("resize",b)}})},{"../config":28,"../events":29,"../utils/behavior":34,"../utils/select":37,"lodash.debounce":6}],22:[function(t,e,n){"use strict";var o=t("./accordion"),r=t("./banner"),i=t("./character-count"),c=t("./combo-box"),a=t("./footer"),u=t("./navigation"),s=t("./password"),l=t("./search"),f=t("./skipnav"),d=t("./validator");e.exports={accordion:o,banner:r,characterCount:i,comboBox:c,footer:a,navigation:u,password:s,search:l,skipnav:f,validator:d}},{"./accordion":17,"./banner":18,"./character-count":19,"./combo-box":20,"./footer":21,"./navigation":23,"./password":24,"./search":25,"./skipnav":26,"./validator":27}],23:[function(t,e,n){"use strict";var o;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return document.body.classList.contains(j)}function c(t){var e=document.body,n="boolean"==typeof t?t:!i();e.classList.toggle(j,n),v(C).forEach(function(t){return t.classList.toggle("is-visible",n)}),l.focusTrap.update(n);var o=e.querySelector(A),r=e.querySelector(x);return n&&o?o.focus():!n&&document.activeElement===o&&r&&r.focus(),n}function a(){var t=document.body.querySelector(A);i()&&t&&0===t.getBoundingClientRect().width&&l.toggleNav.call(t,!1)}function u(){return l.toggleNav.call(l,!1)}function s(){p(f,!1),f=null}var l,f,d=t("../utils/behavior"),v=t("../utils/select"),p=t("../utils/toggle"),b=t("../utils/focus-trap"),h=t("./accordion"),g=t("../events").CLICK,y=t("../config").prefix,m=".".concat(y,"-nav"),w="".concat(m," a"),E="button.".concat(y,"-nav__link"),x=".".concat(y,"-menu-btn"),A=".".concat(y,"-nav__close"),S=".".concat(y,"-overlay"),O="".concat(A,", .").concat(y,"-overlay"),C=[m,S].join(", "),j="usa-js-mobile-nav--active";l=d(r({},g,(r(o={},E,function(){return f&&f!==this&&s(),f?s():p(f=this,!0),!1}),r(o,"body",function(){f&&s()}),r(o,x,c),r(o,O,c),r(o,w,function(){var t=this.closest(h.ACCORDION);t&&h.getButtons(t).forEach(function(t){return h.hide(t)}),i()&&l.toggleNav.call(l,!1)}),o)),{init:function(t){var e=t.querySelector(m);e&&(l.focusTrap=b(e,{Escape:u})),a(),window.addEventListener("resize",a,!1)},teardown:function(){window.removeEventListener("resize",a,!1),f=!1},focusTrap:null,toggleNav:c}),e.exports=l},{"../config":28,"../events":29,"../utils/behavior":34,"../utils/focus-trap":35,"../utils/select":37,"../utils/toggle":40,"./accordion":17}],24:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=t("../utils/behavior"),i=t("../utils/toggle-form-input"),c=t("../events").CLICK,a=t("../config").prefix,u=".".concat(a,"-show-password, .").concat(a,"-show-multipassword");e.exports=r(o({},c,o({},u,function(t){t.preventDefault(),i(this)})))},{"../config":28,"../events":29,"../utils/behavior":34,"../utils/toggle-form-input":39}],25:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i,c=t("receptor/ignore"),r=t("../utils/behavior"),a=t("../utils/select"),u=t("../events").CLICK,s=".js-search-button",l=".js-search-form",f=function(t,e){var n=function(t){var e=t.closest("header");return e?e.querySelector(l):document.querySelector(l)}(t);if(!n)throw new Error("No ".concat(l," found for search toggle in ").concat("header","!"));if(t.hidden=e,n.hidden=!e,e){var o=n.querySelector("[type=search]");o&&o.focus();var r=c(n,function(){i&&function(){f(this,!1),i=void 0}.call(i),document.body.removeEventListener(u,r)});setTimeout(function(){document.body.addEventListener(u,r)},0)}};var d=r(o({},u,o({},s,function(){f(this,!0),i=this})),{init:function(t){a(s,t).forEach(function(t){f(t,!1)})},teardown:function(){i=void 0}});e.exports=d},{"../events":29,"../utils/behavior":34,"../utils/select":37,"receptor/ignore":12}],26:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=t("receptor/once"),i=t("../utils/behavior"),c=t("../events").CLICK,a=t("../config").prefix,u=".".concat(a,'-skipnav[href^="#"], .').concat(a,'-footer__return-to-top [href^="#"]');e.exports=i(o({},c,o({},u,function(){var t=this.getAttribute("href"),e=document.getElementById("#"===t?"main-content":t.slice(1));e&&(e.style.outline="0",e.setAttribute("tabindex",0),e.focus(),e.addEventListener("blur",r(function(){e.setAttribute("tabindex",-1)})))})))},{"../config":28,"../events":29,"../utils/behavior":34,"receptor/once":15}],27:[function(t,e,n){"use strict";var o=t("../utils/behavior"),r=t("../utils/validate-input");var i=o({"keyup change":{"input[data-validation-element]":function(){r(this)}}});e.exports=i},{"../utils/behavior":34,"../utils/validate-input":41}],28:[function(t,e,n){"use strict";e.exports={prefix:"usa"}},{}],29:[function(t,e,n){"use strict";e.exports={CLICK:"click"}},{}],30:[function(t,e,n){"use strict";var o=window.HTMLElement.prototype,r="hidden";r in o||Object.defineProperty(o,r,{get:function(){return this.hasAttribute(r)},set:function(t){t?this.setAttribute(r,""):this.removeAttribute(r)}})},{}],31:[function(t,e,n){"use strict";t("classlist-polyfill"),t("./element-hidden")},{"./element-hidden":30,"classlist-polyfill":1}],32:[function(t,e,n){"use strict";var o=t("domready");t("./polyfills");var r=t("./config"),i=t("./components");r.components=i,o(function(){var e=document.body;Object.keys(i).forEach(function(t){i[t].on(e)})}),e.exports=r},{"./components":22,"./config":28,"./polyfills":31,domready:2}],33:[function(t,e,n){"use strict";e.exports=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:document).activeElement}},{}],34:[function(t,e,n){"use strict";function o(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(t){var e=this,n=0<arguments.length&&void 0!==t?t:document.body;o.forEach(function(t){"function"==typeof e[t]&&e[t].call(e,n)})}}var r=t("object-assign"),i=t("receptor/behavior");e.exports=function(t,e){return i(t,r({on:o("init","add"),off:o("teardown","remove")},e))}},{"object-assign":7,"receptor/behavior":8}],35:[function(t,e,n){"use strict";function r(t){var e=u('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]',t),n=e[0],o=e[e.length-1];return{firstTabStop:n,lastTabStop:o,tabAhead:function(t){s()===o&&(t.preventDefault(),n.focus())},tabBack:function(t){s()===n&&(t.preventDefault(),o.focus())}}}var i=t("object-assign"),c=t("receptor").keymap,a=t("./behavior"),u=t("./select"),s=t("./active-element");e.exports=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=r(t),o=c(i({Tab:n.tabAhead,"Shift+Tab":n.tabBack},e));return a({keydown:o},{init:function(){n.firstTabStop.focus()},update:function(t){t?this.on():this.off()}})}},{"./active-element":33,"./behavior":34,"./select":37,"object-assign":7,receptor:13}],36:[function(t,e,n){"use strict";e.exports=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.documentElement,o=t.getBoundingClientRect();return 0<=o.top&&0<=o.left&&o.bottom<=(e.innerHeight||n.clientHeight)&&o.right<=(e.innerWidth||n.clientWidth)}},{}],37:[function(t,e,n){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports=function(t,e){if("string"!=typeof t)return[];e&&function(t){return t&&"object"===o(t)&&1===t.nodeType}(e)||(e=window.document);var n=e.querySelectorAll(t);return Array.prototype.slice.call(n)}},{}],38:[function(t,e,n){"use strict";e.exports=function(t,e){t.setAttribute("autocapitalize","off"),t.setAttribute("autocorrect","off"),t.setAttribute("type",e?"password":"text")}},{}],39:[function(t,e,n){"use strict";var r=t("resolve-id-refs"),i=t("./toggle-field-mask"),c="aria-pressed",a="data-show-text";e.exports=function(t){var e=t.hasAttribute(c)&&"true"!==t.getAttribute(c);r(t.getAttribute("aria-controls")).forEach(function(t){return i(t,e)}),t.hasAttribute(a)||t.setAttribute(a,t.textContent);var n=t.getAttribute(a),o=t.getAttribute("data-hide-text")||function(t){return t.replace(/\bShow\b/i,function(t){return"".concat("S"===t[0]?"H":"h","ide")})}(n);return t.textContent=e?n:o,t.setAttribute(c,e),e}},{"./toggle-field-mask":38,"resolve-id-refs":16}],40:[function(t,e,n){"use strict";var i="aria-expanded";e.exports=function(t,e){var n=e;"boolean"!=typeof n&&(n="false"===t.getAttribute(i)),t.setAttribute(i,n);var o=t.getAttribute("aria-controls"),r=document.getElementById(o);if(!r)throw new Error('No toggle target found with id: "'.concat(o,'"'));return n?r.removeAttribute("hidden"):r.setAttribute("hidden",""),n}},{}],41:[function(t,e,n){"use strict";function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(o=(c=a.next()).done)&&(n.push(c.value),!e||n.length!==e);o=!0);}catch(t){r=!0,i=t}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=t("elem-dataset"),r=t("../config").prefix,d="".concat(r,"-checklist__item--checked");e.exports=function(s){var t=o(s),e=t.validationElement,l="#"===e.charAt(0)?document.querySelector(e):document.getElementById(e);if(!l)throw new Error('No validation element found with id: "'.concat(e,'"'));Object.entries(t).forEach(function(t){var e=f(t,2),n=e[0],o=e[1];if(n.startsWith("validate")){var r=n.substr("validate".length).toLowerCase(),i=new RegExp(o),c='[data-validator="'.concat(r,'"]'),a=l.querySelector(c);if(!a)throw new Error('No validator checkbox found for: "'.concat(r,'"'));var u=i.test(s.value);a.classList.toggle(d,u),a.setAttribute("aria-checked",u)}})}},{"../config":28,"elem-dataset":3}]},{},[32]);
|
1
|
+
!function o(i,c,s){function u(e,t){if(!c[e]){if(!i[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(l)return l(e,!0);var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}var r=c[e]={exports:{}};i[e][0].call(r.exports,function(t){return u(i[e][1][t]||t)},r,r.exports,o,i,c,s)}return c[e].exports}for(var l="function"==typeof require&&require,t=0;t<s.length;t++)u(s[t]);return u}({1:[function(t,e,n){"use strict";var a,r,o;"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){if("Element"in t){var e="classList",n="prototype",a=t.Element[n],r=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},c=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},s=function(t,e){if(""===e)throw new c("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new c("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(t,e)},u=function(t){for(var e=o.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],a=0,r=n.length;a<r;a++)this.push(n[a]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=u[n]=[],d=function(){return new u(this)};if(c[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return-1!==s(this,t+="")},l.add=function(){for(var t,e=arguments,n=0,a=e.length,r=!1;-1===s(this,t=e[n]+"")&&(this.push(t),r=!0),++n<a;);r&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,a=0,r=n.length,o=!1;do{for(e=s(this,t=n[a]+"");-1!==e;)this.splice(e,1),o=!0,e=s(this,t)}while(++a<r);o&&this._updateClassName()},l.toggle=function(t,e){t+="";var n=this.contains(t),a=n?!0!==e&&"remove":!1!==e&&"add";return a&&this[a](t),!0===e||!1===e?e:!n},l.toString=function(){return this.join(" ")},r.defineProperty){var f={get:d,enumerable:!0,configurable:!0};try{r.defineProperty(a,e,f)}catch(t){void 0!==t.number&&-2146823252!==t.number||(f.enumerable=!1,r.defineProperty(a,e,f))}}else r[n].__defineGetter__&&a.__defineGetter__(e,d)}}(window.self),(o=document.createElement("_")).classList.add("c1","c2"),o.classList.contains("c2")||((a=function(t){var a=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){for(var e=arguments.length,n=0;n<e;n++)t=arguments[n],a.call(this,t)}})("add"),a("remove")),o.classList.toggle("c3",!1),o.classList.contains("c3")&&(r=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:r.call(this,t)}),o=null)},{}],2:[function(t,e,n){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){void 0!==e?e.exports=t():"function"==typeof define&&"object"==a(define.amd)?define(t):this.domready=t()}(function(){var t,e=[],n=document,a=n.documentElement.doScroll,r="DOMContentLoaded",o=(a?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(r,t=function(){for(n.removeEventListener(r,t),o=1;t=e.shift();)t()}),function(t){o?setTimeout(t,0):e.push(t)}})},{}],3:[function(t,e,n){"use strict";var a;e.exports=((a=document.createElement("div")).setAttribute("data-a-b","c"),Boolean(a.dataset&&"c"===a.dataset.aB)?function(t){return t.dataset}:function(t){var e={},n=t.attributes;function a(){return this.value}function r(t,e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}for(var o=0,i=n.length;o<i;o++){var c,s,u,l=n[o];!l||0===(c=l.name).indexOf("data-")&&(s=c.slice(5).replace(/-./g,function(t){return t.charAt(1).toUpperCase()}),u=l.value,Object.defineProperty(e,s,{enumerable:!0,get:a.bind({value:u||""}),set:r.bind(t,c)}))}return e})},{}],4:[function(t,e,n){"use strict";var a;"function"!=typeof(a=window.Element.prototype).matches&&(a.matches=a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=0;e[n]&&e[n]!==this;)++n;return Boolean(e[n])}),"function"!=typeof a.closest&&(a.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})},{}],5:[function(t,a,r){"use strict";!function(){for(var e={polyfill:function(){if(!("KeyboardEvent"in window)||"key"in KeyboardEvent.prototype)return!1;var t={get:function(){var t=e.keys[this.which||this.keyCode];return Array.isArray(t)&&(t=t[+this.shiftKey]),t}};return Object.defineProperty(KeyboardEvent.prototype,"key",t),t},keys:{3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"}},t=1;t<25;t++)e.keys[111+t]="F"+t;var n="";for(t=65;t<91;t++)n=String.fromCharCode(t),e.keys[t]=[n.toLowerCase(),n.toUpperCase()];"function"==typeof define&&define.amd?define("keyboardevent-key-polyfill",e):void 0!==r&&void 0!==a?a.exports=e:window&&(window.keyboardeventKeyPolyfill=e)}()},{}],6:[function(t,v,e){(function(t){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(){return d.Date.now()}var a=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,e="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,l="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,d=e||l||Function("return this")(),f=Object.prototype.toString,y=Math.max,E=Math.min;function w(t){var e=n(t);return t&&("object"==e||"function"==e)}function p(t){return"symbol"==n(t)||!!(e=t)&&"object"==n(e)&&f.call(t)==r;var e}function x(t){if("number"==typeof t)return t;if(p(t))return a;var e;if(w(t)&&(t=w(e="function"==typeof t.valueOf?t.valueOf():t)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=c.test(t);return n||s.test(t)?u(t.slice(2),n?2:8):i.test(t)?a:+t}v.exports=function(a,r,t){var o,i,c,s,u,l,d=0,f=!1,p=!1,e=!0;if("function"!=typeof a)throw new TypeError("Expected a function");function v(t){var e=o,n=i;return o=i=void 0,d=t,s=a.apply(n,e)}function b(t){var e=t-l;return void 0===l||r<=e||e<0||p&&c<=t-d}function h(){var t,e,n=g();if(b(n))return m(n);u=setTimeout(h,(e=r-((t=n)-l),p?E(e,c-(t-d)):e))}function m(t){return u=void 0,e&&o?v(t):(o=i=void 0,s)}function n(){var t,e=g(),n=b(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return d=t=l,u=setTimeout(h,r),f?v(t):s;if(p)return u=setTimeout(h,r),v(l)}return void 0===u&&(u=setTimeout(h,r)),s}return r=x(r)||0,w(t)&&(f=!!t.leading,p="maxWait"in t,c=p?y(x(t.maxWait)||0,r):c,e="trailing"in t?!!t.trailing:e),n.cancel=function(){void 0!==u&&clearTimeout(u),o=l=i=u=void(d=0)},n.flush=function(){return void 0===u?s:m(g())},n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(t,e,n){"use strict";var s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(t){a[t]=t}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},a)).join("")?void 0:1}catch(t){return}}()?Object.assign:function(t,e){for(var n,a,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))u.call(n,i)&&(r[i]=n[i]);if(s){a=s(n);for(var c=0;c<a.length;c++)l.call(n,a[c])&&(r[a[c]]=n[a[c]])}}return r}},{}],8:[function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c=t("object-assign"),s=t("../delegate"),u=t("../delegateAll"),l=/^(.+):delegate\((.+)\)$/,d=function(t,e){var n=t[e];return delete t[e],n};e.exports=function(a,t){var n=Object.keys(a).reduce(function(t,e){var n=function(t,e){var n,a,r=t.match(l);r&&(t=r[1],n=r[2]),"object"===i(e)&&(a={capture:d(e,"capture"),passive:d(e,"passive")});var o={selector:n,delegate:"object"===i(e)?u(e):n?s(n,e):e,options:a};return-1<t.indexOf(" ")?t.split(" ").map(function(t){return c({type:t},o)}):(o.type=t,[o])}(e,a[e]);return t.concat(n)},[]);return c({add:function(e){n.forEach(function(t){e.addEventListener(t.type,t.delegate,t.options)})},remove:function(e){n.forEach(function(t){e.removeEventListener(t.type,t.delegate,t.options)})}},t)}},{"../delegate":10,"../delegateAll":11,"object-assign":7}],9:[function(t,e,n){"use strict";e.exports=function(t){return function(e){return t.some(function(t){return!1===t.call(this,e)},this)}}},{}],10:[function(t,e,n){"use strict";t("element-closest"),e.exports=function(n,a){return function(t){var e=t.target.closest(n);if(e)return a.call(e,t)}}},{"element-closest":4}],11:[function(t,e,n){"use strict";var a=t("../delegate"),r=t("../compose");e.exports=function(n){var t=Object.keys(n);if(1===t.length&&"*"===t[0])return n["*"];var e=t.reduce(function(t,e){return t.push(a(e,n[e])),t},[]);return r(e)}},{"../compose":9,"../delegate":10}],12:[function(t,e,n){"use strict";e.exports=function(e,n){return function(t){if(e!==t.target&&!e.contains(t.target))return n.call(this,t)}}},{}],13:[function(t,e,n){"use strict";e.exports={behavior:t("./behavior"),delegate:t("./delegate"),delegateAll:t("./delegateAll"),ignore:t("./ignore"),keymap:t("./keymap")}},{"./behavior":8,"./delegate":10,"./delegateAll":11,"./ignore":12,"./keymap":14}],14:[function(t,e,n){"use strict";t("keyboardevent-key-polyfill");var o={Alt:"altKey",Control:"ctrlKey",Ctrl:"ctrlKey",Shift:"shiftKey"};e.exports=function(r){var t=Object.keys(r).some(function(t){return-1<t.indexOf("+")});return function(n){var a=function(t,e){var n=t.key;if(e)for(var a in o)!0===t[o[a]]&&(n=[a,n].join("+"));return n}(n,t);return[a,a.toLowerCase()].reduce(function(t,e){return e in r&&(t=r[a].call(this,n)),t},void 0)}},e.exports.MODIFIERS=o},{"keyboardevent-key-polyfill":5}],15:[function(t,e,n){"use strict";e.exports=function(e,n){var a=function(t){return t.currentTarget.removeEventListener(t.type,a,n),e.call(this,t)};return a}},{}],16:[function(t,e,n){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=/(^\s+)|(\s+$)/g,o=/\s+/,i=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(r,"")};e.exports=function(t,e){if("string"!=typeof t)throw new Error("Expected a string but got "+a(t));var n=(e=e||window.document).getElementById?e.getElementById.bind(e):function(t){return this.querySelector('[id="'+t.replace(/"/g,'\\"')+'"]')}.bind(e);return 1===(t=i(t).split(o)).length&&""===t[0]?[]:t.map(function(t){var e=n(t);if(!e)throw new Error('no element with id: "'+t+'"');return e})}},{}],17:[function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(e){return i(p,e).filter(function(t){return t.closest(f)===e})}function r(e,t){var n,a=e.closest(f);if(!a)throw new Error("".concat(p," is missing outer ").concat(f));n=s(e,t);var r="true"===a.getAttribute("aria-multiselectable");n&&!r&&o(a).forEach(function(t){t!==e&&s(t,!1)})}var i=t("../utils/select"),c=t("../utils/behavior"),s=t("../utils/toggle"),u=t("../utils/is-in-viewport"),l=t("../events").CLICK,d=t("../config").prefix,f=".".concat(d,"-accordion, .").concat(d,"-accordion--bordered"),p=".".concat(d,"-accordion__button[aria-controls]"),v="aria-expanded",b=c(a({},l,a({},p,function(t){t.preventDefault(),r(this),"true"===this.getAttribute(v)&&(u(this)||this.scrollIntoView())})),{init:function(t){i(p,t).forEach(function(t){var e="true"===t.getAttribute(v);r(t,e)})},ACCORDION:f,BUTTON:p,show:function(t){return r(t,!0)},hide:function(t){return r(t,!1)},toggle:r,getButtons:o});e.exports=b},{"../config":33,"../events":34,"../utils/behavior":41,"../utils/is-in-viewport":43,"../utils/select":45,"../utils/toggle":48}],18:[function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=t("../utils/behavior"),o=t("../events").CLICK,i=t("../config").prefix,c=".".concat(i,"-banner__header"),s="".concat(i,"-banner__header--expanded");e.exports=r(a({},o,a({},"".concat(c," [aria-controls]"),function(t){t.preventDefault(),this.closest(c).classList.toggle(s)})))},{"../config":33,"../events":34,"../utils/behavior":41}],19:[function(t,e,n){"use strict";function d(t){var e=t.closest(l);if(!e)throw new Error("".concat(f," is missing outer ").concat(l));var n=e.querySelector(p);if(!n)throw new Error("".concat(l," is missing inner ").concat(p));return{characterCountEl:e,messageEl:n}}function r(t){var e,n,a,r,o,i,c=d(t),s=c.characterCountEl,u=c.messageEl,l=parseInt(s.getAttribute("data-maxlength"),10);l&&(i="",n=(e=t.value.length)&&l<e,i=0===e?"".concat(l," characters allowed"):(a=Math.abs(l-e),r="character".concat(1===a?"":"s"),o=n?"over limit":"left","".concat(a," ").concat(r," ").concat(o)),u.classList.toggle(b,n),u.innerHTML=i,n&&!t.validationMessage&&t.setCustomValidity(v),n||t.validationMessage!==v||t.setCustomValidity(""))}var a,o,i,c=t("../utils/select"),s=t("../utils/behavior"),u=t("../config").prefix,l=".".concat(u,"-character-count"),f=".".concat(u,"-character-count__field"),p=".".concat(u,"-character-count__message"),v="The content is too long.",b="".concat(u,"-character-count__message--invalid"),h=s({input:(i=function(){r(this)},(o=f)in(a={})?Object.defineProperty(a,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[o]=i,a)},{init:function(t){c(f,t).forEach(function(t){var e,n,a;n=d(e=t).characterCountEl,(a=e.getAttribute("maxlength"))&&(e.removeAttribute("maxlength"),n.setAttribute("data-maxlength",a)),r(t)})},MESSAGE_INVALID_CLASS:b,VALIDATION_MESSAGE:v});e.exports=h},{"../config":33,"../utils/behavior":41,"../utils/select":45}],20:[function(t,e,n){"use strict";var a,r,o;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){var n=1<arguments.length&&void 0!==e?e:"",a=t;a.value=n;var r=new CustomEvent("change",{bubbles:!0,cancelable:!0,detail:{value:n}});a.dispatchEvent(r)}function S(t){var e=t.closest(F);if(!e)throw new Error("Element is missing outer ".concat(F));var n=e.querySelector(H),a=e.querySelector(R),r=e.querySelector(K),o=e.querySelector(z),i=e.querySelector(W),c=e.querySelector($),s=e.querySelector(U),u=e.querySelector(Y),l=e.classList.contains(A);return{comboBoxEl:e,selectEl:n,inputEl:a,listEl:r,statusEl:o,focusedOptionEl:i,selectedOptionEl:c,toggleListBtnEl:s,clearInputBtnEl:u,isPristine:l,disableFiltering:"true"===e.dataset.disableFiltering}}function b(t){var e=S(t),n=e.inputEl,a=e.toggleListBtnEl,r=e.clearInputBtnEl;r.hidden=!0,r.disabled=!0,a.disabled=!0,n.disabled=!0}function c(t){var e=t.closest(F);if(!e.dataset.enhanced){var n=e.querySelector("select");if(!n)throw new Error("".concat(F," is missing inner select"));var a,r,o=n.id,i="".concat(o,"--list"),c="".concat(o,"--assistiveHint"),s=[],u=e.dataset.defaultValue,l=e.dataset.placeholder;if(l&&s.push('placeholder="'.concat(l,'"')),u)for(var d=0,f=n.options.length;d<f;d+=1){var p=n.options[d];if(p.value===u){a=p;break}}n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex","-1"),n.classList.add("usa-sr-only",_),n.id="",n.value="",["required","aria-label","aria-labelledby"].forEach(function(t){var e;n.hasAttribute(t)&&(e=n.getAttribute(t),s.push("".concat(t,'="').concat(e,'"')),n.removeAttribute(t))}),e.insertAdjacentHTML("beforeend",['<input\n aria-owns="'.concat(i,'"\n aria-autocomplete="list"\n aria-describedby="').concat(c,'"\n aria-expanded="false"\n autocapitalize="off"\n autocomplete="off"\n id="').concat(o,'"\n class="').concat(C,'"\n type="text"\n role="combobox"\n ').concat(s.join(" "),"\n >"),'<span class="'.concat(T,'" tabindex="-1">\n <button type="button" class="').concat(k,'" aria-label="Clear the select contents"> </button>\n </span>'),'<span class="'.concat(M,'"> </span>'),'<span class="'.concat(j,'" tabindex="-1">\n <button type="button" tabindex="-1" class="').concat(O,'" aria-label="Toggle the dropdown list"> </button>\n </span>'),'<ul\n tabindex="-1"\n id="'.concat(i,'"\n class="').concat(I,'"\n role="listbox"\n hidden>\n </ul>'),'<div class="'.concat(P,' usa-sr-only" role="status"></div>'),'<span id="'.concat(c,'" class="usa-sr-only">\n When autocomplete results are available use up and down arrows to review and enter to select.\n Touch device users, explore by touch or with swipe gestures.\n </span>')].join("")),a&&(r=S(e).inputEl,v(n,a.value),v(r,a.text),e.classList.add(A)),n.disabled&&(b(e),n.disabled=!1),e.dataset.enhanced="true"}}function D(t,e,n){var a,r=2<arguments.length&&void 0!==n?n:{},o=r.skipFocus,i=r.preventScroll,c=S(t),s=c.inputEl,u=c.listEl,l=c.focusedOptionEl;l&&(l.classList.remove(N),l.setAttribute("tabIndex","-1")),e?(s.setAttribute("aria-activedescendant",e.id),e.setAttribute("tabIndex","0"),e.classList.add(N),i||(a=e.offsetTop+e.offsetHeight,u.scrollTop+u.offsetHeight<a&&(u.scrollTop=a-u.offsetHeight),e.offsetTop<u.scrollTop&&(u.scrollTop=e.offsetTop)),o||e.focus({preventScroll:i})):(s.setAttribute("aria-activedescendant",""),s.focus())}function L(t,e,n){function i(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var c=1<arguments.length&&void 0!==e?e:"",s=2<arguments.length&&void 0!==n?n:{},a="^(?:"+(a=t.replace(/{{(.*?)}}/g,function(t,e){var n=e.trim(),a=s[n];if("query"!==n&&a){var r=new RegExp(a,"i"),o=c.match(r);return o?i(o[1]):""}return i(c)}))+")$";return new RegExp(a,"i")}function s(t){for(var i,e,n=S(t),a=n.comboBoxEl,r=n.selectEl,o=n.inputEl,c=n.listEl,s=n.statusEl,u=n.isPristine,l=n.disableFiltering,d="".concat(c.id,"--option-"),f=(o.value||"").toLowerCase(),p=a.dataset.filter||".*{{query}}.*",v=L(p,f,a.dataset),b=[],h=0,m=r.options.length;h<m;h+=1){var g=r.options[h],y="".concat(d).concat(b.length);g.value&&(l||u||!f||v.test(g.text))&&(r.value&&g.value===r.value&&(i=y),l&&!e&&v.test(g.text)&&(e=y),b.push(g))}var E,w=b.length,x=b.map(function(t,e){var n="".concat(d).concat(e),a=[q],r="-1",o="false";return n===i&&(a.push(B,N),r="0",o="true"),i||0!==e||(a.push(N),r="0"),'<li\n aria-selected="false"\n aria-setsize="'.concat(b.length,'"\n aria-posinset="').concat(e+1,'"\n aria-selected="').concat(o,'"\n id="').concat(n,'"\n class="').concat(a.join(" "),'"\n tabindex="').concat(r,'"\n role="option"\n data-value="').concat(t.value,'"\n >').concat(t.text,"</li>")}).join(""),A='<li class="'.concat(q,'--no-results">No results found</li>');c.hidden=!1,c.innerHTML=w?x:A,o.setAttribute("aria-expanded","true"),s.innerHTML=w?"".concat(w," result").concat(1<w?"s":""," available."):"No results.",u&&i?E=c.querySelector("#"+i):l&&e&&(E=c.querySelector("#"+e)),E&&D(c,E,{skipFocus:!0})}function u(t){var e=S(t),n=e.inputEl,a=e.listEl,r=e.statusEl,o=e.focusedOptionEl;r.innerHTML="",n.setAttribute("aria-expanded","false"),n.setAttribute("aria-activedescendant",""),o&&o.classList.remove(N),a.scrollTop=0,a.hidden=!0}function l(t){var e=S(t),n=e.comboBoxEl,a=e.selectEl,r=e.inputEl;v(a,t.dataset.value),v(r,t.textContent),n.classList.add(A),u(n),r.focus()}function d(t){var e=S(t),n=e.comboBoxEl,a=e.selectEl,r=e.inputEl,o=a.value,i=(r.value||"").toLowerCase();if(o)for(var c=0,s=a.options.length;c<s;c+=1){var u=a.options[c];if(u.value===o)return i!==u.text&&v(r,u.text),n.classList.add(A),0}i&&v(r)}function f(t){var e=S(t.target),n=e.comboBoxEl,a=e.listEl;a.hidden&&s(n);var r=a.querySelector(W)||a.querySelector(V);r&&D(n,r),t.preventDefault()}function p(t){var e=t.target,n=e.nextSibling;n&&D(e,n),t.preventDefault()}function h(t){var e=S(t.target),n=e.comboBoxEl,a=e.listEl,r=e.focusedOptionEl,o=r&&r.previousSibling,i=!a.hidden;D(n,o),i&&t.preventDefault(),o||u(n)}var m=t("receptor/keymap"),g=t("../utils/select"),y=t("../utils/behavior"),E=t("../config").prefix,w=t("../events").CLICK,x="".concat(E,"-combo-box"),A="".concat(x,"--pristine"),_="".concat(x,"__select"),C="".concat(x,"__input"),k="".concat(x,"__clear-input"),T="".concat(k,"__wrapper"),M="".concat(x,"__input-button-separator"),O="".concat(x,"__toggle-list"),j="".concat(O,"__wrapper"),I="".concat(x,"__list"),q="".concat(x,"__list-option"),N="".concat(q,"--focused"),B="".concat(q,"--selected"),P="".concat(x,"__status"),F=".".concat(x),H=".".concat(_),R=".".concat(C),Y=".".concat(k),U=".".concat(O),K=".".concat(I),V=".".concat(q),W=".".concat(N),$=".".concat(B),z=".".concat(P),Q=y((i(o={},w,(i(a={},R,function(){var t,e;this.disabled||(t=S(this),e=t.comboBoxEl,t.listEl.hidden&&s(e))}),i(a,U,function(){var t,e,n,a;this.disabled||(t=S(this),e=t.comboBoxEl,n=t.listEl,a=t.inputEl,(n.hidden?s:u)(e),a.focus())}),i(a,V,function(){this.disabled||l(this)}),i(a,Y,function(){var t,e,n,a,r,o;this.disabled||(t=S(this),e=t.comboBoxEl,n=t.listEl,a=t.selectEl,r=t.inputEl,o=!n.hidden,a.value&&v(a),r.value&&v(r),e.classList.remove(A),o&&s(e),r.focus())}),a)),i(o,"focusout",i({},F,function(t){this.contains(t.relatedTarget)||(d(this),u(this))})),i(o,"keydown",(i(r={},F,m({Escape:function(t){var e=S(t.target),n=e.comboBoxEl,a=e.inputEl;u(n),d(n),a.focus()}})),i(r,R,m({Enter:function(t){var e=S(t.target),n=e.comboBoxEl,a=!e.listEl.hidden;!function(t){var e=S(t),n=e.comboBoxEl,a=e.selectEl,r=e.inputEl;e.statusEl.textContent="";var o=(r.value||"").toLowerCase();if(o)for(var i=0,c=a.options.length;i<c;i+=1){var s=a.options[i];if(s.text.toLowerCase()===o)return v(a,s.value),v(r,s.text),n.classList.add(A)}d(n)}(n),a&&u(n),t.preventDefault()},ArrowDown:f,Down:f})),i(r,V,m({ArrowUp:h,Up:h,ArrowDown:p,Down:p,Enter:function(t){l(t.target),t.preventDefault()},Tab:function(t){l(t.target),t.preventDefault()},"Shift+Tab":function(){}})),r)),i(o,"input",i({},R,function(){this.closest(F).classList.remove(A),s(this)})),i(o,"mousemove",i({},V,function(){var t;(t=this).classList.contains(N)||D(t,t,{preventScroll:!0})})),o),{init:function(t){g(F,t).forEach(function(t){c(t)})},getComboBoxContext:S,enhanceComboBox:c,generateDynamicRegExp:L,disable:b,enable:function(t){var e=S(t),n=e.inputEl,a=e.toggleListBtnEl,r=e.clearInputBtnEl;r.hidden=!1,r.disabled=!1,a.disabled=!1,n.disabled=!1},displayList:s,hideList:u,COMBO_BOX_CLASS:x});e.exports=Q},{"../config":33,"../events":34,"../utils/behavior":41,"../utils/select":45,"receptor/keymap":14}],21:[function(t,e,n){"use strict";var a,r,o,i;function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],a=!0,r=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(a=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);a=!0);}catch(t){r=!0,o=t}finally{try{a||null==c.return||c.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function u(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.map(function(t){return t+":not([disabled])"}).join(", ")}function l(t,e){return e!==t.getMonth()&&t.setDate(0),t}function m(t,e,n){var a=new Date(0);return a.setFullYear(t,e,n),a}function N(){var t=new Date,e=t.getDate(),n=t.getMonth(),a=t.getFullYear();return m(a,n,e)}function B(t){var e=new Date(0);return e.setFullYear(t.getFullYear(),t.getMonth(),1),e}function b(t){var e=new Date(0);return e.setFullYear(t.getFullYear(),t.getMonth()+1,0),e}function P(t,e){var n=new Date(t.getTime());return n.setDate(n.getDate()+e),n}function F(t,e){return P(t,-e)}function d(t,e){return P(t,7*e)}function H(t){var e=t.getDay();return F(t,e)}function R(t,e){var n=new Date(t.getTime()),a=(n.getMonth()+12+e)%12;return n.setMonth(n.getMonth()+e),l(n,a),n}function Y(t,e){return R(t,-e)}function f(t,e){return R(t,12*e)}function p(t,e){return f(t,-e)}function g(t,e){var n=new Date(t.getTime());return n.setMonth(e),l(n,e),n}function w(t,e){var n=new Date(t.getTime()),a=n.getMonth();return n.setFullYear(e),l(n,a),n}function v(t,e){return t&&e&&t.getFullYear()===e.getFullYear()}function U(t,e){return v(t,e)&&t.getMonth()===e.getMonth()}function K(t,e){return U(t,e)&&t.getDate()===e.getDate()}function y(t,e,n){var a=t;return t<e?a=e:n&&n<t&&(a=n),new Date(a.getTime())}function V(t,e,n){return e<=t&&(!n||t<=n)}function x(t,e,n){return b(g(t,11))<e||n&&B(g(t,0))>n}function E(t,e,n){var a,r,o,i,c,s,u,l,d,f,p,v,b=2<arguments.length&&void 0!==n&&n;return t&&((1<arguments.length&&void 0!==e?e:xe)===we?(i=(o=h(t.split("/"),3))[0],c=o[1],s=o[2]):(s=(u=h(t.split("-"),3))[0],i=u[1],c=u[2]),s&&(f=parseInt(s,10),Number.isNaN(f)||(d=f,b&&(d=Math.max(0,d),s.length<3&&(d=(l=N().getFullYear())-l%Math.pow(10,s.length)+f)))),i&&(f=parseInt(i,10),Number.isNaN(f)||(r=f,b&&(r=Math.max(1,r),r=Math.min(12,r)))),r&&c&&null!=d&&(f=parseInt(c,10),Number.isNaN(f)||(v=f,b&&(p=m(d,r,0).getDate(),v=Math.max(1,v),v=Math.min(p,v)))),r&&v&&null!=d&&(a=m(d,r-1,v))),a}function W(t,e){function n(t,e){return"0000".concat(t).slice(-e)}var a=1<arguments.length&&void 0!==e?e:xe,r=t.getMonth()+1,o=t.getDate(),i=t.getFullYear();return a===we?[n(r,2),n(o,2),n(i,4)].join("/"):[n(i,4),n(r,2),n(o,2)].join("-")}function $(t,e){for(var n=[],a=[],r=0;r<t.length;){for(a=[];r<t.length&&a.length<e;)a.push("<td>".concat(t[r],"</td>")),r+=1;n.push("<tr>".concat(a.join(""),"</tr>"))}return n.join("")}function A(t,e){var n=1<arguments.length&&void 0!==e?e:"",a=t;a.value=n;var r=new CustomEvent("change",{bubbles:!0,cancelable:!0,detail:{value:n}});a.dispatchEvent(r)}function z(t){var e=t.closest(zt);if(!e)throw new Error("Element is missing outer ".concat(zt));var n=e.querySelector(Gt),a=e.querySelector(Xt),r=e.querySelector(Jt),o=e.querySelector(Qt),i=e.querySelector(Zt),c=e.querySelector(le),s=E(a.value,we,!0),u=E(n.value),l=E(r.dataset.value),d=E(e.dataset.minDate),f=E(e.dataset.maxDate),p=E(e.dataset.rangeDate),v=E(e.dataset.defaultDate);if(d&&f&&f<d)throw new Error("Minimum date cannot be after maximum date");return{calendarDate:l,minDate:d,toggleBtnEl:o,selectedDate:u,maxDate:f,firstYearChunkEl:c,datePickerEl:e,inputDate:s,internalInputEl:n,externalInputEl:a,calendarEl:r,rangeDate:p,defaultDate:v,statusEl:i}}function S(t){var e=z(t),n=e.externalInputEl;e.toggleBtnEl.disabled=!0,n.disabled=!0}function D(t){var e,n,a,r,o,i,c=z(t),s=c.externalInputEl,u=c.minDate,l=c.maxDate,d=s.value,f=!1;return d&&(f=!0,a=(n=h((e=d.split("/")).map(function(t){var e,n=parseInt(t,10);return Number.isNaN(n)||(e=n),e}),3))[0],r=n[1],o=n[2],a&&r&&null!=o&&((i=m(o,a-1,r)).getMonth()===a-1&&i.getDate()===r&&i.getFullYear()===o&&4===e[2].length&&V(i,u,l)&&(f=!1))),f}function L(t){var e=z(t).externalInputEl,n=D(e);n&&!e.validationMessage&&e.setCustomValidity(ge),n||e.validationMessage!==ge||e.setCustomValidity("")}function _(t,e){var n,a,r,o,i,c=E(e);c&&(n=W(c,we),r=(a=z(t)).datePickerEl,o=a.internalInputEl,i=a.externalInputEl,A(o,e),A(i,n),L(r))}function C(t,e){for(var n,a,r,o,i=z(t),c=i.datePickerEl,s=i.calendarEl,u=i.statusEl,f=i.selectedDate,p=i.maxDate,v=i.minDate,b=i.rangeDate,h=N(),l=e||h,d=s.hidden,m=P(l,0),g=l.getMonth(),y=l.getFullYear(),E=Y(l,1),w=R(l,1),x=W(l),A=B(l),S=U(l,v),D=U(l,p),L=f||l,_=b&&(n=L,a=b,new Date((a<n?a:n).getTime())),C=b&&(r=L,o=b,new Date((r<o?o:r).getTime())),k=b&&P(_,1),T=b&&F(C,1),M=ye[g],l=H(A),O=[];O.length<28||l.getMonth()===g||O.length%7!=0;)O.push(function(t){var e=[vt],n=t.getDate(),a=t.getMonth(),r=t.getFullYear(),o=t.getDay(),i=W(t),c="-1",s=!V(t,v,p),u=K(t,f);U(t,E)&&e.push(mt),U(t,m)&&e.push(gt),U(t,w)&&e.push(yt),u&&e.push(ht),K(t,h)&&e.push(wt),b&&(K(t,b)&&e.push(Et),K(t,_)&&e.push(xt),K(t,C)&&e.push(At),V(t,k,T)&&e.push(St)),K(t,m)&&(c="0",e.push(bt));var l=ye[a],d=Ee[o];return'<button\n type="button"\n tabindex="'.concat(c,'"\n class="').concat(e.join(" "),'" \n data-day="').concat(n,'" \n data-month="').concat(a+1,'" \n data-year="').concat(r,'" \n data-value="').concat(i,'"\n aria-label="').concat(n," ").concat(l," ").concat(r," ").concat(d,'"\n aria-selected="').concat(u?"true":"false",'"\n ').concat(s?'disabled="disabled"':"","\n >").concat(n,"</button>")}(l)),l=P(l,1);var j=$(O,7),I=s.cloneNode();I.dataset.value=x,I.style.top="".concat(c.offsetHeight,"px"),I.hidden=!1,I.innerHTML='<div tabindex="-1" class="'.concat(Ft,'">\n <div class="').concat(Ut,'">\n <div class="').concat(Kt," ").concat(Vt,'">\n <button \n type="button"\n class="').concat(Dt,'"\n aria-label="Navigate back one year"\n ').concat(S?'disabled="disabled"':"",'\n > </button>\n </div>\n <div class="').concat(Kt," ").concat(Vt,'">\n <button \n type="button"\n class="').concat(Lt,'"\n aria-label="Navigate back one month"\n ').concat(S?'disabled="disabled"':"",'\n > </button>\n </div>\n <div class="').concat(Kt," ").concat(Wt,'">\n <button \n type="button"\n class="').concat(kt,'" aria-label="').concat(M,'. Click to select month"\n >').concat(M,'</button>\n <button \n type="button"\n class="').concat(Tt,'" aria-label="').concat(y,'. Click to select year"\n >').concat(y,'</button>\n </div>\n <div class="').concat(Kt," ").concat(Vt,'">\n <button \n type="button"\n class="').concat(Ct,'"\n aria-label="Navigate forward one month"\n ').concat(D?'disabled="disabled"':"",'\n > </button>\n </div>\n <div class="').concat(Kt," ").concat(Vt,'">\n <button \n type="button"\n class="').concat(_t,'"\n aria-label="Navigate forward one year"\n ').concat(D?'disabled="disabled"':"",'\n > </button>\n </div>\n </div>\n <table class="').concat(Yt,'" role="presentation">\n <thead>\n <tr>\n <th class="').concat($t,'" scope="col" aria-label="Sunday">S</th>\n <th class="').concat($t,'" scope="col" aria-label="Monday">M</th>\n <th class="').concat($t,'" scope="col" aria-label="Tuesday">T</th>\n <th class="').concat($t,'" scope="col" aria-label="Wednesday">W</th>\n <th class="').concat($t,'" scope="col" aria-label="Thursday">Th</th>\n <th class="').concat($t,'" scope="col" aria-label="Friday">F</th>\n <th class="').concat($t,'" scope="col" aria-label="Saturday">S</th>\n </tr>\n </thead>\n <tbody>\n ').concat(j,"\n </tbody>\n </table>\n </div>"),s.parentNode.replaceChild(I,s),c.classList.add(st);var q=[];return K(f,m)&&q.push("Selected date"),d?(q.push("You can navigate by day using left and right arrows","Weeks by using up and down arrows","Months by using page up and page down keys","Years by using shift plus page up and shift plus page down","Home and end keys navigate to the beginning and end of a week"),u.textContent=""):q.push("".concat(M," ").concat(y)),u.textContent=q.join(". "),I}function k(t){var e=z(t),n=e.datePickerEl,a=e.calendarEl,r=e.statusEl;n.classList.remove(st),a.hidden=!0,r.textContent=""}function T(t){var e,n=z(t),a=n.calendarEl,r=n.inputDate,o=n.minDate,i=n.maxDate;!a.hidden&&r&&(e=y(r,o,i),C(a,e))}function M(t,e){var n=z(t),a=n.calendarEl,r=n.statusEl,l=n.calendarDate,d=n.minDate,f=n.maxDate,p=l.getMonth(),v=null==e?p:e,o=ye.map(function(t,e){var n,a,r,o=g(l,e),i=(a=d,r=f,b(n=o)<a||r&&B(n)>r),c="-1",s=[Mt],u=e===p;return e===v&&(c="0",s.push(Ot)),u&&s.push(jt),'<button \n type="button"\n tabindex="'.concat(c,'"\n class="').concat(s.join(" "),'" \n data-value="').concat(e,'"\n data-label="').concat(t,'"\n aria-selected="').concat(u?"true":"false",'"\n ').concat(i?'disabled="disabled"':"","\n >").concat(t,"</button>")}),i='<div tabindex="-1" class="'.concat(Ht,'">\n <table class="').concat(Yt,'" role="presentation">\n <tbody>\n ').concat($(o,3),"\n </tbody>\n </table>\n </div>"),c=a.cloneNode();return c.innerHTML=i,a.parentNode.replaceChild(c,a),r.textContent="Select a month.",c}function O(t,e){var n=z(t),a=n.calendarEl,r=n.statusEl,o=n.calendarDate,i=n.minDate,c=n.maxDate,s=o.getFullYear(),u=null==e?s:e,l=u;l-=l%12,l=Math.max(0,l);for(var d=x(w(o,l-1),i,c),f=x(w(o,l+12),i,c),p=[],v=l;p.length<12;){var b=x(w(o,v),i,c),h="-1",m=[It],g=v===s;v===u&&(h="0",m.push(qt)),g&&m.push(Nt),p.push('<button \n type="button"\n tabindex="'.concat(h,'"\n class="').concat(m.join(" "),'" \n data-value="').concat(v,'"\n aria-selected="').concat(g?"true":"false",'"\n ').concat(b?'disabled="disabled"':"","\n >").concat(v,"</button>")),v+=1}var y=$(p,3),E=a.cloneNode();return E.innerHTML='<div tabindex="-1" class="'.concat(Rt,'">\n <table class="').concat(Yt,'" role="presentation">\n <tbody>\n <tr>\n <td>\n <button\n type="button"\n class="').concat(Bt,'" \n aria-label="Navigate back ').concat(12,' years"\n ').concat(d?'disabled="disabled"':"",'\n > </button>\n </td>\n <td colspan="3">\n <table class="').concat(Yt,'" role="presentation">\n <tbody>\n ').concat(y,'\n </tbody>\n </table>\n </td>\n <td>\n <button\n type="button"\n class="').concat(Pt,'" \n aria-label="Navigate forward ').concat(12,' years"\n ').concat(f?'disabled="disabled"':"","\n > </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>"),a.parentNode.replaceChild(E,a),r.textContent="Showing years ".concat(l," to ").concat(l+12-1,". Select a year."),E}function j(t){var e=z(t.target),n=e.datePickerEl,a=e.externalInputEl;k(n),a.focus(),t.preventDefault()}function I(s){return function(t){var e=z(t.target),n=e.calendarEl,a=e.calendarDate,r=e.minDate,o=e.maxDate,i=s(a),c=y(i,r,o);K(a,c)||C(n,c).querySelector(ee).focus(),t.preventDefault()}}function q(f){return function(t){var e=t.target,n=parseInt(e.dataset.value,10),a=z(e),r=a.calendarEl,o=a.calendarDate,i=a.minDate,c=a.maxDate,s=g(o,n),u=f(n),u=Math.max(0,Math.min(11,u)),l=g(o,u),d=y(l,i,c);U(s,d)||M(r,d.getMonth()).querySelector(he).focus(),t.preventDefault()}}function Q(f){return function(t){var e=t.target,n=parseInt(e.dataset.value,10),a=z(e),r=a.calendarEl,o=a.calendarDate,i=a.minDate,c=a.maxDate,s=w(o,n),u=f(n),u=Math.max(0,u),l=w(o,u),d=y(l,i,c);v(s,d)||O(r,d.getFullYear()).querySelector(me).focus(),t.preventDefault()}}function G(c){function o(t){var e=z(t).calendarEl,n=tt(c,e),a=n.length-1,r=n[0],o=n[a],i=n.indexOf(at());return{focusableElements:n,isNotFound:-1===i,firstTabStop:r,isFirstTab:0===i,lastTabStop:o,isLastTab:i===a}}return{tabAhead:function(t){var e=o(t.target),n=e.firstTabStop,a=e.isLastTab,r=e.isNotFound;(a||r)&&(t.preventDefault(),n.focus())},tabBack:function(t){var e=o(t.target),n=e.lastTabStop,a=e.isFirstTab,r=e.isNotFound;(a||r)&&(t.preventDefault(),n.focus())}}}var X,J=t("receptor/keymap"),Z=t("../utils/behavior"),tt=t("../utils/select"),et=t("../config").prefix,nt=t("../events").CLICK,at=t("../utils/active-element"),rt=t("../utils/is-ios-device"),ot="".concat(et,"-date-picker"),it="".concat(ot,"__wrapper"),ct="".concat(ot,"--initialized"),st="".concat(ot,"--active"),ut="".concat(ot,"__internal-input"),lt="".concat(ot,"__external-input"),dt="".concat(ot,"__button"),ft="".concat(ot,"__calendar"),pt="".concat(ot,"__status"),vt="".concat(ft,"__date"),bt="".concat(vt,"--focused"),ht="".concat(vt,"--selected"),mt="".concat(vt,"--previous-month"),gt="".concat(vt,"--current-month"),yt="".concat(vt,"--next-month"),Et="".concat(vt,"--range-date"),wt="".concat(vt,"--today"),xt="".concat(vt,"--range-date-start"),At="".concat(vt,"--range-date-end"),St="".concat(vt,"--within-range"),Dt="".concat(ft,"__previous-year"),Lt="".concat(ft,"__previous-month"),_t="".concat(ft,"__next-year"),Ct="".concat(ft,"__next-month"),kt="".concat(ft,"__month-selection"),Tt="".concat(ft,"__year-selection"),Mt="".concat(ft,"__month"),Ot="".concat(Mt,"--focused"),jt="".concat(Mt,"--selected"),It="".concat(ft,"__year"),qt="".concat(It,"--focused"),Nt="".concat(It,"--selected"),Bt="".concat(ft,"__previous-year-chunk"),Pt="".concat(ft,"__next-year-chunk"),Ft="".concat(ft,"__date-picker"),Ht="".concat(ft,"__month-picker"),Rt="".concat(ft,"__year-picker"),Yt="".concat(ft,"__table"),Ut="".concat(ft,"__row"),Kt="".concat(ft,"__cell"),Vt="".concat(Kt,"--center-items"),Wt="".concat(ft,"__month-label"),$t="".concat(ft,"__day-of-week"),zt=".".concat(ot),Qt=".".concat(dt),Gt=".".concat(ut),Xt=".".concat(lt),Jt=".".concat(ft),Zt=".".concat(pt),te=".".concat(vt),ee=".".concat(bt),ne=".".concat(gt),ae=".".concat(Dt),re=".".concat(Lt),oe=".".concat(_t),ie=".".concat(Ct),ce=".".concat(Tt),se=".".concat(kt),ue=".".concat(Mt),le=".".concat(It),de=".".concat(Bt),fe=".".concat(Pt),pe=".".concat(Ft),ve=".".concat(Ht),be=".".concat(Rt),he=".".concat(Ot),me=".".concat(qt),ge="Please enter a valid date",ye=["January","February","March","April","May","June","July","August","September","October","November","December"],Ee=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],we="MM/DD/YYYY",xe="YYYY-MM-DD",Ae=u(ae,re,ce,se,oe,ie,ee),Se=u(he),De=u(de,fe,me),Le=I(function(t){return d(t,-1)}),_e=I(function(t){return d(t,1)}),Ce=I(function(t){return F(t,1)}),ke=I(function(t){return P(t,1)}),Te=I(H),Me=I(function(t){return n=(e=t).getDay(),P(e,6-n);var e,n}),Oe=I(function(t){return R(t,1)}),je=I(function(t){return Y(t,1)}),Ie=I(function(t){return f(t,1)}),qe=I(function(t){return p(t,1)}),Ne=q(function(t){return t-3}),Be=q(function(t){return t+3}),Pe=q(function(t){return t-1}),Fe=q(function(t){return t+1}),He=q(function(t){return t-t%3}),Re=q(function(t){return t+2-t%3}),Ye=q(function(){return 11}),Ue=q(function(){return 0}),Ke=Q(function(t){return t-3}),Ve=Q(function(t){return t+3}),We=Q(function(t){return t-1}),$e=Q(function(t){return t+1}),ze=Q(function(t){return t-t%3}),Qe=Q(function(t){return t+2-t%3}),Ge=Q(function(t){return t-12}),Xe=Q(function(t){return t+12}),Je=G(Ae),Ze=G(Se),tn=G(De),en=(c(i={},nt,(c(a={},Qt,function(){var t,e,n,a,r,o,i,c;(t=this).disabled||(n=(e=z(t)).calendarEl,a=e.inputDate,r=e.minDate,o=e.maxDate,i=e.defaultDate,n.hidden?(c=y(a||i||N(),r,o),C(n,c).querySelector(ee).focus()):k(t))}),c(a,te,function(){var t,e,n,a;(t=this).disabled||(n=(e=z(t)).datePickerEl,a=e.externalInputEl,_(t,t.dataset.value),k(n),a.focus())}),c(a,ue,function(){var t,e,n,a,r,o,i,c;(t=this).disabled||(n=(e=z(t)).calendarEl,a=e.calendarDate,r=e.minDate,o=e.maxDate,i=parseInt(t.dataset.value,10),c=g(a,i),c=y(c,r,o),C(n,c).querySelector(ee).focus())}),c(a,le,function(){var t,e,n,a,r,o,i,c;(t=this).disabled||(n=(e=z(t)).calendarEl,a=e.calendarDate,r=e.minDate,o=e.maxDate,i=parseInt(t.innerHTML,10),c=w(a,i),c=y(c,r,o),C(n,c).querySelector(ee).focus())}),c(a,re,function(){var t,e,n,a,r,o,i,c,s;(t=this).disabled||(n=(e=z(t)).calendarEl,a=e.calendarDate,r=e.minDate,o=e.maxDate,i=Y(a,1),i=y(i,r,o),(s=(c=C(n,i)).querySelector(re)).disabled&&(s=c.querySelector(pe)),s.focus())}),c(a,ie,function(){var t,e,n,a,r,o,i,c,s;(t=this).disabled||(n=(e=z(t)).calendarEl,a=e.calendarDate,r=e.minDate,o=e.maxDate,i=R(a,1),i=y(i,r,o),(s=(c=C(n,i)).querySelector(ie)).disabled&&(s=c.querySelector(pe)),s.focus())}),c(a,ae,function(){var t,e,n,a,r,o,i,c,s;(t=this).disabled||(n=(e=z(t)).calendarEl,a=e.calendarDate,r=e.minDate,o=e.maxDate,i=p(a,1),i=y(i,r,o),(s=(c=C(n,i)).querySelector(ae)).disabled&&(s=c.querySelector(pe)),s.focus())}),c(a,oe,function(){var t,e,n,a,r,o,i,c,s;(t=this).disabled||(n=(e=z(t)).calendarEl,a=e.calendarDate,r=e.minDate,o=e.maxDate,i=f(a,1),i=y(i,r,o),(s=(c=C(n,i)).querySelector(oe)).disabled&&(s=c.querySelector(pe)),s.focus())}),c(a,de,function(){var t,e,n,a,r,o,i,c,s,u,l,d;(t=this).disabled||(n=(e=z(t)).calendarEl,a=e.calendarDate,r=e.minDate,o=e.maxDate,i=n.querySelector(me),c=parseInt(i.textContent,10)-12,c=Math.max(0,c),s=w(a,c),u=y(s,r,o),(d=(l=O(n,u.getFullYear())).querySelector(de)).disabled&&(d=l.querySelector(be)),d.focus())}),c(a,fe,function(){var t,e,n,a,r,o,i,c,s,u,l,d;(t=this).disabled||(n=(e=z(t)).calendarEl,a=e.calendarDate,r=e.minDate,o=e.maxDate,i=n.querySelector(me),c=parseInt(i.textContent,10)+12,c=Math.max(0,c),s=w(a,c),u=y(s,r,o),(d=(l=O(n,u.getFullYear())).querySelector(fe)).disabled&&(d=l.querySelector(be)),d.focus())}),c(a,se,function(){M(this).querySelector(he).focus()}),c(a,ce,function(){O(this).querySelector(me).focus()}),a)),c(i,"keyup",c({},Jt,function(t){var e=this.dataset.keydownKeyCode;"".concat(t.keyCode)!==e&&t.preventDefault()})),c(i,"keydown",(c(r={},Xt,function(t){13===t.keyCode&&L(this)}),c(r,te,J({Up:Le,ArrowUp:Le,Down:_e,ArrowDown:_e,Left:Ce,ArrowLeft:Ce,Right:ke,ArrowRight:ke,Home:Te,End:Me,PageDown:Oe,PageUp:je,"Shift+PageDown":Ie,"Shift+PageUp":qe})),c(r,pe,J({Tab:Je.tabAhead,"Shift+Tab":Je.tabBack})),c(r,ue,J({Up:Ne,ArrowUp:Ne,Down:Be,ArrowDown:Be,Left:Pe,ArrowLeft:Pe,Right:Fe,ArrowRight:Fe,Home:He,End:Re,PageDown:Ye,PageUp:Ue})),c(r,ve,J({Tab:Ze.tabAhead,"Shift+Tab":Ze.tabBack})),c(r,le,J({Up:Ke,ArrowUp:Ke,Down:Ve,ArrowDown:Ve,Left:We,ArrowLeft:We,Right:$e,ArrowRight:$e,Home:ze,End:Qe,PageDown:Xe,PageUp:Ge})),c(r,be,J({Tab:tn.tabAhead,"Shift+Tab":tn.tabBack})),c(r,Jt,function(t){this.dataset.keydownKeyCode=t.keyCode}),c(r,zt,function(t){J({Escape:j})(t)}),r)),c(i,"focusout",(c(o={},Xt,function(){L(this)}),c(o,zt,function(t){this.contains(t.relatedTarget)||k(this)}),o)),c(i,"input",c({},Xt,function(){var t,e,n,a,r;e=z(t=this),n=e.internalInputEl,a=e.inputDate,r="",a&&!D(t)&&(r=W(a)),n.value!==r&&A(n,r),T(this)})),i);rt()||(en.mousemove=(c(X={},ne,function(){var t,e,n,a,r;(t=this).disabled||(n=(e=t.closest(Jt)).dataset.value,(a=t.dataset.value)!==n&&(r=E(a),C(e,r).querySelector(ee).focus()))}),c(X,ue,function(){var t,e;(t=this).disabled||t.classList.contains(Ot)||(e=parseInt(t.dataset.value,10),M(t,e).querySelector(he).focus())}),c(X,le,function(){var t,e;(t=this).disabled||t.classList.contains(qt)||(e=parseInt(t.dataset.value,10),O(t,e).querySelector(me).focus())}),X));var nn=Z(en,{init:function(t){tt(zt,t).forEach(function(t){!function(t){var e=t.closest(zt),n=e.dataset.defaultValue,a=e.querySelector("input");if(!a)throw new Error("".concat(zt," is missing inner input"));a.value&&(a.value="");var r=E(e.dataset.minDate||a.getAttribute("min"));e.dataset.minDate=r?W(r):"0000-01-01";var o=E(e.dataset.maxDate||a.getAttribute("max"));o&&(e.dataset.maxDate=W(o));var i=document.createElement("div");i.classList.add(it),i.tabIndex="-1";var c=a.cloneNode();c.classList.add(lt),c.type="text",c.name="",i.appendChild(c),i.insertAdjacentHTML("beforeend",['<button type="button" class="'.concat(dt,'" aria-haspopup="true" aria-label="Toggle calendar"> </button>'),'<div class="'.concat(ft,'" role="dialog" aria-modal="true" hidden></div>'),'<div class="usa-sr-only '.concat(pt,'" role="status" aria-live="polite"></div>')].join("")),a.setAttribute("aria-hidden","true"),a.setAttribute("tabindex","-1"),a.classList.add("usa-sr-only",ut),a.id="",a.required=!1,e.appendChild(i),e.classList.add(ct),n&&_(e,n),a.disabled&&(S(e),a.disabled=!1)}(t)})},getDatePickerContext:z,disable:S,enable:function(t){var e=z(t),n=e.externalInputEl;e.toggleBtnEl.disabled=!1,n.disabled=!1},isDateInputInvalid:D,setCalendarValue:_,validateDateInput:L,renderCalendar:C,updateCalendarIfVisible:T});e.exports=nn},{"../config":33,"../events":34,"../utils/active-element":40,"../utils/behavior":41,"../utils/is-ios-device":44,"../utils/select":45,"receptor/keymap":14}],22:[function(t,e,n){"use strict";var a;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],a=!0,r=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(a=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);a=!0);}catch(t){r=!0,o=t}finally{try{a||null==c.return||c.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function s(t){var e=t.closest(x);if(!e)throw new Error("Element is missing outer ".concat(x));var n=e.querySelector(A),a=e.querySelector(S);return{dateRangePickerEl:e,rangeStartEl:n,rangeEndEl:a}}function u(t){var e=s(t),n=e.dateRangePickerEl,a=e.rangeStartEl,r=e.rangeEndEl,o=v(a).internalInputEl,i=o.value;i&&!b(o)?(r.dataset.minDate=i,r.dataset.rangeDate=i,r.dataset.defaultDate=i):(r.dataset.minDate=n.dataset.minDate||"",r.dataset.rangeDate="",r.dataset.defaultDate=""),h(r)}function l(t){var e=s(t),n=e.dateRangePickerEl,a=e.rangeStartEl,r=e.rangeEndEl,o=v(r).internalInputEl,i=o.value;i&&!b(o)?(a.dataset.maxDate=i,a.dataset.rangeDate=i,a.dataset.defaultDate=i):(a.dataset.maxDate=n.dataset.maxDate||"",a.dataset.rangeDate="",a.dataset.defaultDate=""),h(a)}var i=t("../utils/behavior"),d=t("../utils/select"),f=t("../config").prefix,p=t("./date-picker"),v=p.getDatePickerContext,b=p.isDateInputInvalid,h=p.updateCalendarIfVisible,m="".concat(f,"-date-picker"),g="".concat(f,"-date-range-picker"),y="".concat(g,"__range-start"),E="".concat(g,"__range-end"),w=".".concat(m),x=".".concat(g),A=".".concat(y),S=".".concat(E),D=i({"input change":(r(a={},A,function(){u(this)}),r(a,S,function(){l(this)}),a)},{init:function(t){d(x,t).forEach(function(t){!function(t){var e=t.closest(x),n=c(d(w,e),2),a=n[0],r=n[1];if(!a)throw new Error("".concat(x," is missing inner two '").concat(w,"' elements"));if(!r)throw new Error("".concat(x," is missing second '").concat(w,"' element"));a.classList.add(y),r.classList.add(E),e.dataset.minDate||(e.dataset.minDate="0000-01-01");var o=e.dataset.minDate;a.dataset.minDate=o,r.dataset.minDate=o;var i=e.dataset.maxDate;i&&(a.dataset.maxDate=i,r.dataset.maxDate=i),u(e),l(e)}(t)})}});e.exports=D},{"../config":33,"../utils/behavior":41,"../utils/select":45,"./date-picker":21}],23:[function(t,e,n){"use strict";function d(t){return t.replace(/[^a-z0-9]/g,function(t){var e=t.charCodeAt(0);return 32===e?"-":65<=e&&e<=90?"img_".concat(t.toLowerCase()):"__".concat(e.toString(16).slice(-4))})}function f(t,e){var n=t.querySelectorAll(".".concat(g)),a=t.querySelector(".".concat(y)),r=t.querySelector(".".concat(x));a&&(a.outerHTML=""),r&&(r.outerHTML="",t.classList.remove(_)),null!==n&&(e&&e.classList.remove(L),Array.prototype.forEach.call(n,function(t){t.parentNode.removeChild(t)}))}var a=t("../utils/select"),r=t("../utils/behavior"),o=t("../config").prefix,p="".concat(o,"-file-input"),i=".".concat(p),v="".concat(o,"-file-input__input"),b="".concat(o,"-file-input__target"),h="".concat(o,"-file-input__box"),m="".concat(o,"-file-input__instructions"),g="".concat(o,"-file-input__preview"),y="".concat(o,"-file-input__preview-heading"),E="".concat(o,"-file-input--disabled"),w="".concat(o,"-file-input__choose"),x="".concat(o,"-file-input__accepted-files-message"),A="".concat(o,"-file-input__drag-text"),S="".concat(o,"-file-input--drag"),D="is-loading",L="display-none",_="has-invalid-file",C="".concat(o,"-file-input__preview-image"),k="".concat(C,"--generic"),T="".concat(C,"--pdf"),M="".concat(C,"--word"),O="".concat(C,"--video"),j="".concat(C,"--excel"),I="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",c=r({},{init:function(t){a(i,t).forEach(function(e){var t,n,a,r,o,i,c,s=(n=(t=e).hasAttribute("multiple"),a=document.createElement("div"),r=document.createElement("div"),o=document.createElement("div"),i=document.createElement("div"),c=t.hasAttribute("disabled"),t.classList.remove(p),t.classList.add(v),a.classList.add(p),o.classList.add(h),i.classList.add(m),i.setAttribute("aria-hidden","true"),r.classList.add(b),t.parentNode.insertBefore(r,t),t.parentNode.insertBefore(a,r),r.appendChild(t),a.appendChild(r),t.parentNode.insertBefore(i,t),t.parentNode.insertBefore(o,t),c&&(a.classList.add(E),a.setAttribute("aria-disabled","true")),i.innerHTML=n?'<span class="'.concat(A,'">Drag files here or </span><span class="').concat(w,'">choose from folder</span>'):'<span class="'.concat(A,'">Drag file here or </span><span class="').concat(w,'">choose from folder</span>'),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(a.querySelector(".".concat(A)).outerHTML=""),{instructions:i,dropTarget:r}),u=s.instructions,l=s.dropTarget;l.addEventListener("dragover",function(){this.classList.add(S)},!1),l.addEventListener("dragleave",function(){this.classList.remove(S)},!1),l.addEventListener("drop",function(t){!function(t,e,n,a){var r=e.getAttribute("accept");if(a.classList.remove(_),r){for(var o=document.createElement("div"),i=!0,c=0;c<t.dataTransfer.files.length;c+=1){var s=t.dataTransfer.files[c];if(i&&(i=s.name.indexOf(r))<0)break}i<0&&(f(a,n),e.value="",a.insertBefore(o,e),o.innerHTML="This is not a valid file type.",o.classList.add(x),a.classList.add(_),t.preventDefault(),t.stopPropagation())}}(t,e,u,l),this.classList.remove(S)},!1),e.onchange=function(t){!function(t,r,e){var o=t.target.files,i=document.createElement("div");f(e,r);for(var n=0;n<o.length;n+=1)!function(t){var n=new FileReader,a=o[t].name;n.onloadstart=function(){var t=d(a),e='<img id="'.concat(t,'" src="').concat(I,'" alt="" class="').concat(C," ").concat(D,'"/>');r.insertAdjacentHTML("afterend",'<div class="'.concat(g,'" aria-hidden="true">').concat(e).concat(a,"<div>"))},n.onloadend=function(){var t=d(a),e=document.getElementById(t);0<a.indexOf(".pdf")?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(I,'"; this.classList.add("').concat(T,'")')):0<a.indexOf(".doc")||0<a.indexOf(".pages")?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(I,'"; this.classList.add("').concat(M,'")')):0<a.indexOf(".xls")||0<a.indexOf(".numbers")?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(I,'"; this.classList.add("').concat(j,'")')):0<a.indexOf(".mov")||0<a.indexOf(".mp4")?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(I,'"; this.classList.add("').concat(O,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(I,'"; this.classList.add("').concat(k,'")')),e.classList.remove(D),e.src=n.result},o[t]&&n.readAsDataURL(o[t]),0===t?(e.insertBefore(i,r),i.innerHTML='Selected file <span class="usa-file-input__choose">Change file</span>'):1<=t&&(e.insertBefore(i,r),i.innerHTML="".concat(t+1,' files selected <span class="usa-file-input__choose">Change files</span>')),i&&(r.classList.add(L),i.classList.add(y))}(n)}(t,u,l)}})}});e.exports=c},{"../config":33,"../utils/behavior":41,"../utils/select":45}],24:[function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r,o=t("lodash.debounce"),i=t("../utils/behavior"),c=t("../utils/select"),s=t("../events").CLICK,u=t("../config").prefix,l="hidden",d=".".concat(u,"-footer--big"),f="".concat(d," nav"),p="".concat(f," .").concat(u,"-footer__primary-link"),v=".".concat(u,"-footer__primary-content--collapsible");var b=o(function(){var e;r!==window.innerWidth&&(r=window.innerWidth,e=window.innerWidth<480,c(v).forEach(function(t){return t.classList.toggle(l,e)}))},180);e.exports=i(a({},s,a({},p,function(){var e;window.innerWidth<480&&((e=this.closest(v)).classList.toggle(l),c(v,e.closest(f)).forEach(function(t){t!==e&&t.classList.add(l)}))})),{HIDE_MAX_WIDTH:480,DEBOUNCE_RATE:180,init:function(){b(),window.addEventListener("resize",b)},teardown:function(){window.removeEventListener("resize",b)}})},{"../config":33,"../events":34,"../utils/behavior":41,"../utils/select":45,"lodash.debounce":6}],25:[function(t,e,n){"use strict";var a=t("./accordion"),r=t("./banner"),o=t("./character-count"),i=t("./combo-box"),c=t("./file-input"),s=t("./footer"),u=t("./navigation"),l=t("./password"),d=t("./search"),f=t("./skipnav"),p=t("./tooltip"),v=t("./validator"),b=t("./date-picker"),h=t("./date-range-picker"),m=t("./time-picker");e.exports={accordion:a,banner:r,characterCount:o,comboBox:i,datePicker:b,dateRangePicker:h,fileInput:c,footer:s,navigation:u,password:l,search:d,skipnav:f,timePicker:m,tooltip:p,validator:v}},{"./accordion":17,"./banner":18,"./character-count":19,"./combo-box":20,"./date-picker":21,"./date-range-picker":22,"./file-input":23,"./footer":24,"./navigation":26,"./password":27,"./search":28,"./skipnav":29,"./time-picker":30,"./tooltip":31,"./validator":32}],26:[function(t,e,n){"use strict";var a;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return document.body.classList.contains(L)}function i(t){var e=document.body,n="boolean"==typeof t?t:!o();e.classList.toggle(L,n),f(D).forEach(function(t){return t.classList.toggle("is-visible",n)}),_.focusTrap.update(n);var a=e.querySelector(x),r=e.querySelector(w);return n&&a?a.focus():!n&&document.activeElement===a&&r&&r.focus(),n}function c(){var t=document.body.querySelector(x);o()&&t&&0===t.getBoundingClientRect().width&&_.toggleNav.call(t,!1)}function s(){return _.toggleNav.call(_,!1)}function u(){p(l,!1),l=null}var l,d=t("../utils/behavior"),f=t("../utils/select"),p=t("../utils/toggle"),v=t("../utils/focus-trap"),b=t("./accordion"),h=t("../events").CLICK,m=t("../config").prefix,g=".".concat(m,"-nav"),y="".concat(g," a"),E="button.".concat(m,"-nav__link"),w=".".concat(m,"-menu-btn"),x=".".concat(m,"-nav__close"),A=".".concat(m,"-overlay"),S="".concat(x,", .").concat(m,"-overlay"),D=[g,A].join(", "),L="usa-js-mobile-nav--active",_=d(r({},h,(r(a={},E,function(){return l&&l!==this&&u(),l?u():p(l=this,!0),!1}),r(a,"body",function(){l&&u()}),r(a,w,i),r(a,S,i),r(a,y,function(){var t=this.closest(b.ACCORDION);t&&b.getButtons(t).forEach(function(t){return b.hide(t)}),o()&&_.toggleNav.call(_,!1)}),a)),{init:function(t){var e=t.querySelector(g);e&&(_.focusTrap=v(e,{Escape:s})),c(),window.addEventListener("resize",c,!1)},teardown:function(){window.removeEventListener("resize",c,!1),l=!1},focusTrap:null,toggleNav:i});e.exports=_},{"../config":33,"../events":34,"../utils/behavior":41,"../utils/focus-trap":42,"../utils/select":45,"../utils/toggle":48,"./accordion":17}],27:[function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=t("../utils/behavior"),o=t("../utils/toggle-form-input"),i=t("../events").CLICK,c=t("../config").prefix,s=".".concat(c,"-show-password, .").concat(c,"-show-multipassword");e.exports=r(a({},i,a({},s,function(t){t.preventDefault(),o(this)})))},{"../config":33,"../events":34,"../utils/behavior":41,"../utils/toggle-form-input":47}],28:[function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i,c=t("receptor/ignore"),r=t("../utils/behavior"),o=t("../utils/select"),s=t("../events").CLICK,u=".js-search-button",l=".js-search-form",d=function(t,e){var n,a,r,o=(n=t.closest("header"))?n.querySelector(l):document.querySelector(l);if(!o)throw new Error("No ".concat(l," found for search toggle in ").concat("header","!"));t.hidden=e,o.hidden=!e,e&&((a=o.querySelector("[type=search]"))&&a.focus(),r=c(o,function(){i&&function(){d(this,!1),i=void 0}.call(i),document.body.removeEventListener(s,r)}),setTimeout(function(){document.body.addEventListener(s,r)},0))};var f=r(a({},s,a({},u,function(){d(this,!0),i=this})),{init:function(t){o(u,t).forEach(function(t){d(t,!1)})},teardown:function(){i=void 0}});e.exports=f},{"../events":34,"../utils/behavior":41,"../utils/select":45,"receptor/ignore":12}],29:[function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=t("receptor/once"),o=t("../utils/behavior"),i=t("../events").CLICK,c=t("../config").prefix,s=".".concat(c,'-skipnav[href^="#"], .').concat(c,'-footer__return-to-top [href^="#"]');e.exports=o(a({},i,a({},s,function(){var t=this.getAttribute("href"),e=document.getElementById("#"===t?"main-content":t.slice(1));e&&(e.style.outline="0",e.setAttribute("tabindex",0),e.focus(),e.addEventListener("blur",r(function(){e.setAttribute("tabindex",-1)})))})))},{"../config":33,"../events":34,"../utils/behavior":41,"receptor/once":15}],30:[function(t,e,n){"use strict";function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],a=!0,r=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(a=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);a=!0);}catch(t){r=!0,o=t}finally{try{a||null==c.return||c.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function g(t){var e,n,a,r;return t&&(a=(n=o(t.split(":").map(function(t){var e,n=parseInt(t,10);return Number.isNaN(n)||(e=n),e}),2))[0],r=n[1],null!=a&&null!=r&&(e=60*a+r)),e}var r=t("../utils/behavior"),i=t("../utils/select"),c=t("../config").prefix,s=t("./combo-box"),y=s.COMBO_BOX_CLASS,u=s.enhanceComboBox,l="".concat(c,"-time-picker"),E=".".concat(l),w={filter:"0?{{ hourQueryFilter }}:{{minuteQueryFilter}}.*{{ apQueryFilter }}m?",apQueryFilter:"([ap])",hourQueryFilter:"([1-9][0-2]?)",minuteQueryFilter:"[\\d]+:([0-9]{0,2})"},d=r({},{init:function(t){i(E,t).forEach(function(t){!function(t){var e=t.closest(E),n=e.querySelector("input");if(!n)throw new Error("".concat(E," is missing inner input"));var a=document.createElement("select");["id","name","required","aria-label","aria-labelledby"].forEach(function(t){var e;n.hasAttribute(t)&&(e=n.getAttribute(t),a.setAttribute(t,e),n.removeAttribute(t))});for(var r,o,i,c=function(t,e){return"0000".concat(t).slice(-e)},s=Math.max(0,g(e.dataset.minTime)||0),u=Math.min(1439,g(e.dataset.maxTime)||1439),l=Math.floor(Math.max(1,e.dataset.step||30)),d=s;d<=u;d+=l){var f=(i=o=void 0,o=(r=d)%60,i=Math.floor(r/60),{minute:o,hour24:i,hour12:i%12||12,ampm:i<12?"am":"pm"}),p=f.minute,v=f.hour24,b=f.hour12,h=f.ampm,m=document.createElement("option");m.value="".concat(c(v,2),":").concat(c(p,2)),m.text="".concat(b,":").concat(c(p,2)).concat(h),a.appendChild(m)}e.classList.add(y),Object.keys(w).forEach(function(t){e.dataset[t]=w[t]}),e.dataset.disableFiltering="true",e.appendChild(a),n.style.display="none"}(t),u(t)})},FILTER_DATASET:w});e.exports=d},{"../config":33,"../utils/behavior":41,"../utils/select":45,"./combo-box":20}],31:[function(t,e,n){"use strict";function f(t,e,n){for(var a=e.split(" "),r=0,o=a.length;r<o;r+=1)t.addEventListener(a[r],n,!1)}function p(e,t,n,a){function r(t){e.classList.remove("".concat(x,"--top")),e.classList.remove("".concat(x,"--bottom")),e.classList.remove("".concat(x,"--right")),e.classList.remove("".concat(x,"--left")),e.classList.add("".concat(x,"--").concat(t))}function o(t){r("top"),t.style.marginLeft="".concat(g,"px"),w(t)||t.classList.add(S),t.style.marginBottom="".concat(E+f+v,"px")}function i(t){r("bottom"),t.style.marginLeft="".concat(g,"px"),w(t)||t.classList.add(S),t.style.marginTop="".concat(E+d+p,"px")}function c(t){return r("right"),t.style.marginBottom="0",t.style.marginLeft="".concat(y+h,"px"),t.style.bottom="".concat((l-b)/2+f+v,"px"),0}function s(t){r("left"),t.style.marginBottom="0",t.style.marginLeft=m<h?"".concat(h-m-7,"px"):"-".concat(m-h+7,"px"),t.style.bottom="".concat((l-b)/2+f+v,"px")}e.setAttribute("aria-hidden","false"),e.classList.add("is-set");var u=t.offsetWidth,l=t.offsetHeight,d=parseInt(window.getComputedStyle(t).getPropertyValue("margin-top"),10),f=parseInt(window.getComputedStyle(t).getPropertyValue("margin-bottom"),10),p=parseInt(window.getComputedStyle(a).getPropertyValue("padding-top"),10),v=parseInt(window.getComputedStyle(a).getPropertyValue("padding-bottom"),10),b=parseInt(window.getComputedStyle(e).getPropertyValue("height"),10),h=t.offsetLeft,m=e.offsetWidth,g=u/2+h,y=u+5+2,E=l+5+2;switch(n){case"top":o(e),w(e)||i(e);break;case"bottom":i(e),w(e)||o(e);break;case"right":c(e),w(e)||(s(e),w(e)||o(e));break;case"left":s(e),w(e)||(c(e),w(e)||o(e))}setTimeout(function(){e.classList.add(A)},20)}var a=t("../utils/select"),r=t("../utils/behavior"),o=t("../config").prefix,w=t("../utils/is-in-viewport"),i=".".concat(o,"-tooltip"),v="".concat(o,"-tooltip__trigger"),b="".concat(o,"-tooltip"),x="".concat(o,"-tooltip__body"),A="is-visible",S="".concat(o,"-tooltip__body--wrap"),c=r({},{init:function(t){a(i,t).forEach(function(t){var e,n,a,r,o,i,c,s=(e=t,n="tooltip-".concat(Math.floor(9e5*Math.random())+1e5),a=e.getAttribute("title"),r=document.createElement("span"),o=document.createElement("span"),i=e.getAttribute("data-position")?e.getAttribute("data-position"):"top",c=e.getAttribute("data-classes"),e.setAttribute("aria-describedby",n),e.setAttribute("tabindex","0"),e.setAttribute("title",""),e.classList.remove(b),e.classList.add(v),e.parentNode.insertBefore(r,e),r.appendChild(e),r.classList.add(b),r.appendChild(o),c&&c.split(" ").forEach(function(t){return r.classList.add(t)}),o.classList.add(x),o.setAttribute("id",n),o.setAttribute("role","tooltip"),o.setAttribute("aria-hidden","true"),o.innerHTML=a,{tooltipBody:o,position:i,tooltipContent:a,wrapper:r}),u=s.tooltipBody,l=s.position,d=s.wrapper;s.tooltipContent&&(f(t,"mouseenter focus",function(){return p(u,t,l,d),!1}),f(t,"mouseleave blur keydown",function(){var t;return(t=u).classList.remove(A),t.classList.remove("is-set"),t.classList.remove(S),t.setAttribute("aria-hidden","true"),!1}))})}});e.exports=c},{"../config":33,"../utils/behavior":41,"../utils/is-in-viewport":43,"../utils/select":45}],32:[function(t,e,n){"use strict";var a=t("../utils/behavior"),r=t("../utils/validate-input");var o=a({"keyup change":{"input[data-validation-element]":function(){r(this)}}});e.exports=o},{"../utils/behavior":41,"../utils/validate-input":49}],33:[function(t,e,n){"use strict";e.exports={prefix:"usa"}},{}],34:[function(t,e,n){"use strict";e.exports={CLICK:"click"}},{}],35:[function(t,e,n){"use strict";"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(t,e){var n=e||{bubbles:!1,cancelable:!1,detail:null},a=document.createEvent("CustomEvent");return a.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),a})},{}],36:[function(t,e,n){"use strict";var a=window.HTMLElement.prototype,r="hidden";r in a||Object.defineProperty(a,r,{get:function(){return this.hasAttribute(r)},set:function(t){t?this.setAttribute(r,""):this.removeAttribute(r)}})},{}],37:[function(t,e,n){"use strict";t("classlist-polyfill"),t("./element-hidden"),t("./number-is-nan"),t("./custom-event")},{"./custom-event":35,"./element-hidden":36,"./number-is-nan":38,"classlist-polyfill":1}],38:[function(t,e,n){"use strict";Number.isNaN=Number.isNaN||function(t){return"number"==typeof t&&t!=t}},{}],39:[function(t,e,n){"use strict";var a=t("domready");t("./polyfills");var r=t("./config"),o=t("./components");r.components=o,a(function(){var e=document.body;Object.keys(o).forEach(function(t){o[t].on(e)})}),e.exports=r},{"./components":25,"./config":33,"./polyfills":37,domready:2}],40:[function(t,e,n){"use strict";e.exports=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:document).activeElement}},{}],41:[function(t,e,n){"use strict";function a(){for(var t=arguments.length,a=new Array(t),e=0;e<t;e++)a[e]=arguments[e];return function(t){var e=this,n=0<arguments.length&&void 0!==t?t:document.body;a.forEach(function(t){"function"==typeof e[t]&&e[t].call(e,n)})}}var r=t("object-assign"),o=t("receptor/behavior");e.exports=function(t,e){return o(t,r({on:a("init","add"),off:a("teardown","remove")},e))}},{"object-assign":7,"receptor/behavior":8}],42:[function(t,e,n){"use strict";function i(t){var e=r('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]',t),n=e[0],a=e[e.length-1];return{firstTabStop:n,lastTabStop:a,tabAhead:function(t){o()===a&&(t.preventDefault(),n.focus())},tabBack:function(t){o()===n&&(t.preventDefault(),a.focus())}}}var c=t("object-assign"),s=t("receptor").keymap,u=t("./behavior"),r=t("./select"),o=t("./active-element");e.exports=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=i(t),a=e.Esc,r=e.Escape;r&&!a&&(e.Esc=r);var o=s(c({Tab:n.tabAhead,"Shift+Tab":n.tabBack},e));return u({keydown:o},{init:function(){n.firstTabStop.focus()},update:function(t){t?this.on():this.off()}})}},{"./active-element":40,"./behavior":41,"./select":45,"object-assign":7,receptor:13}],43:[function(t,e,n){"use strict";e.exports=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.documentElement,a=t.getBoundingClientRect();return 0<=a.top&&0<=a.left&&a.bottom<=(e.innerHeight||n.clientHeight)&&a.right<=(e.innerWidth||n.clientWidth)}},{}],44:[function(t,e,n){"use strict";e.exports=function(){return"undefined"!=typeof navigator&&(navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!window.MSStream}},{}],45:[function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports=function(t,e){if("string"!=typeof t)return[];var n;e&&((n=e)&&"object"===r(n)&&1===n.nodeType)||(e=window.document);var a=e.querySelectorAll(t);return Array.prototype.slice.call(a)}},{}],46:[function(t,e,n){"use strict";e.exports=function(t,e){t.setAttribute("autocapitalize","off"),t.setAttribute("autocorrect","off"),t.setAttribute("type",e?"password":"text")}},{}],47:[function(t,e,n){"use strict";var r=t("resolve-id-refs"),o=t("./toggle-field-mask"),i="aria-pressed",c="data-show-text";e.exports=function(t){var e=t.hasAttribute(i)&&"true"!==t.getAttribute(i);r(t.getAttribute("aria-controls")).forEach(function(t){return o(t,e)}),t.hasAttribute(c)||t.setAttribute(c,t.textContent);var n=t.getAttribute(c),a=t.getAttribute("data-hide-text")||n.replace(/\bShow\b/i,function(t){return"".concat("S"===t[0]?"H":"h","ide")});return t.textContent=e?n:a,t.setAttribute(i,e),e}},{"./toggle-field-mask":46,"resolve-id-refs":16}],48:[function(t,e,n){"use strict";var o="aria-expanded";e.exports=function(t,e){var n=e;"boolean"!=typeof n&&(n="false"===t.getAttribute(o)),t.setAttribute(o,n);var a=t.getAttribute("aria-controls"),r=document.getElementById(a);if(!r)throw new Error('No toggle target found with id: "'.concat(a,'"'));return n?r.removeAttribute("hidden"):r.setAttribute("hidden",""),n}},{}],49:[function(t,e,n){"use strict";function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],a=!0,r=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(a=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);a=!0);}catch(t){r=!0,o=t}finally{try{a||null==c.return||c.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}var r=t("elem-dataset"),o=t("../config").prefix,f="".concat(o,"-checklist__item--checked");e.exports=function(u){var t=r(u),e=t.validationElement,l="#"===e.charAt(0)?document.querySelector(e):document.getElementById(e);if(!l)throw new Error('No validation element found with id: "'.concat(e,'"'));Object.entries(t).forEach(function(t){var e=d(t,2),n=e[0],a=e[1];if(n.startsWith("validate")){var r=n.substr("validate".length).toLowerCase(),o=new RegExp(a),i='[data-validator="'.concat(r,'"]'),c=l.querySelector(i);if(!c)throw new Error('No validator checkbox found for: "'.concat(r,'"'));var s=o.test(u.value);c.classList.toggle(f,s),c.setAttribute("aria-checked",s)}})}},{"../config":33,"elem-dataset":3}]},{},[39]);
|
2
2
|
//# sourceMappingURL=uswds.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["node_modules/browser-pack/_prelude.js","node_modules/classlist-polyfill/src/index.js","node_modules/domready/ready.js","node_modules/elem-dataset/dist/index.js","node_modules/element-closest/element-closest.js","node_modules/keyboardevent-key-polyfill/index.js","node_modules/lodash.debounce/index.js","node_modules/object-assign/index.js","node_modules/receptor/behavior/index.js","node_modules/receptor/compose/index.js","node_modules/receptor/delegate/index.js","node_modules/receptor/delegateAll/index.js","node_modules/receptor/ignore/index.js","node_modules/receptor/index.js","node_modules/receptor/keymap/index.js","node_modules/receptor/once/index.js","node_modules/resolve-id-refs/index.js","src/js/components/accordion.js","src/js/components/banner.js","src/js/components/character-count.js","src/js/components/combo-box.js","src/js/components/footer.js","src/js/components/index.js","src/js/components/navigation.js","src/js/components/password.js","src/js/components/search.js","src/js/components/skipnav.js","src/js/components/validator.js","src/js/config.js","src/js/events.js","src/js/polyfills/element-hidden.js","src/js/polyfills/index.js","src/js/start.js","src/js/utils/active-element.js","src/js/utils/behavior.js","src/js/utils/focus-trap.js","src/js/utils/is-in-viewport.js","src/js/utils/select.js","src/js/utils/toggle-field-mask.js","src/js/utils/toggle-form-input.js","src/js/utils/toggle.js","src/js/utils/validate-input.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","window","self","document","createElement","createElementNS","view","classListProp","protoProp","elemCtrProto","Element","objCtr","Object","strTrim","String","trim","this","replace","arrIndexOf","Array","indexOf","item","len","DOMEx","type","message","name","DOMException","checkTokenAndGetIndex","classList","token","test","ClassList","elem","trimmedClasses","getAttribute","classes","split","push","_updateClassName","setAttribute","toString","classListProto","classListGetter","contains","add","tokens","arguments","l","updated","remove","index","splice","toggle","force","result","method","join","defineProperty","classListPropDesc","get","enumerable","configurable","ex","undefined","number","__defineGetter__","testElement","createMethod","original","DOMTokenList","prototype","_toggle","definition","define","_typeof","amd","_listener","fns","doc","hack","documentElement","doScroll","domContentLoaded","loaded","readyState","addEventListener","removeEventListener","shift","fn","setTimeout","Boolean","dataset","aB","element","map","attributes","getter","value","setter","removeAttribute","j","attribute","prop","slice","charAt","toUpperCase","bind","set","ElementProto","matches","msMatchesSelector","mozMatchesSelector","webkitMatchesSelector","selector","elements","ownerDocument","querySelectorAll","closest","nodeType","parentNode","keyboardeventKeyPolyfill","polyfill","KeyboardEvent","proto","key","keys","which","keyCode","isArray","shiftKey","3","6","8","9","12","13","16","17","18","19","20","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","48","49","50","51","52","53","54","55","56","57","91","93","144","145","181","182","183","186","187","188","189","190","191","192","219","220","221","222","224","225","246","247","248","249","250","251","letter","fromCharCode","toLowerCase","now","root","Date","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","global","freeSelf","Function","objectToString","nativeMax","Math","max","nativeMin","min","isObject","isSymbol","isObjectLike","toNumber","other","valueOf","isBinary","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","remainingWait","debounced","isInvoking","leadingEdge","cancel","clearTimeout","flush","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","propertyIsEnumerable","assign","test1","getOwnPropertyNames","test2","test3","forEach","err","shouldUseNative","target","source","from","symbols","to","val","toObject","s","delegate","delegateAll","DELEGATE_PATTERN","popKey","obj","events","props","listeners","reduce","memo","handler","match","capture","passive","listener","_type","getListeners","concat","functions","some","event","compose","selectors","delegates","behavior","ignore","keymap","MODIFIERS","Alt","Control","Ctrl","Shift","hasModifiers","modifier","getEventKey","_key","wrapped","currentTarget","RE_TRIM","RE_SPLIT","str","ids","getElementById","id","querySelector","el","getAccordionButtons","accordion","select","BUTTON","filter","button","ACCORDION","toggleButton","expanded","safeExpanded","multiselectable","isElementInViewport","CLICK","PREFIX","prefix","EXPANDED","_defineProperty","preventDefault","scrollIntoView","init","show","hide","getButtons","HEADER","EXPANDED_CLASS","getCharacterCountElements","inputEl","characterCountEl","CHARACTER_COUNT","INPUT","messageEl","MESSAGE","updateCountMessage","_getCharacterCountEle","maxlength","newMessage","currentLength","isOverLimit","difference","abs","characters","guidance","MESSAGE_INVALID_CLASS","innerHTML","validationMessage","setCustomValidity","VALIDATION_MESSAGE","characterCount","input","setupAttributes","getComboBoxElements","comboBoxEl","COMBO_BOX","selectEl","SELECT","listEl","LIST","statusEl","STATUS","focusedOptionEl","LIST_OPTION_FOCUSED","displayList","_getComboBoxElements3","listOptionBaseId","inputValue","optionEl","text","numOptions","optionHtml","option","LIST_OPTION_CLASS","noResults","hidden","hideList","_getComboBoxElements4","completeSelection","_getComboBoxElements6","textContent","highlightOption","currentEl","nextEl","_getComboBoxElements7","LIST_OPTION_FOCUSED_CLASS","optionBottom","offsetTop","offsetHeight","scrollTop","focus","handleUp","_getComboBoxElements10","nextOptionEl","previousSibling","listShown","handleDown","_getComboBoxElements11","nextSibling","LIST_OPTION","INPUT_CLASS","LIST_CLASS","STATUS_CLASS","comboBox","_behavior","_CLICK","listOptionEl","_getComboBoxElements5","selectItem","relatedTarget","ArrowUp","Up","ArrowDown","Down","Escape","_getComboBoxElements9","Enter","_getComboBoxElements8","isPrintableKeyCode","selectedOption","_getComboBoxElements","selectId","listId","assistiveHintID","placeholder","additionalAttributes","selected","hasAttribute","insertAdjacentHTML","enhanceComboBox","lastInnerWidth","debounce","HIDDEN","SCOPE","NAV","COLLAPSIBLE","resize","innerWidth","list","collapseEl","HIDE_MAX_WIDTH","DEBOUNCE_RATE","teardown","banner","footer","navigation","password","search","skipnav","validator","isActive","body","ACTIVE_CLASS","toggleNav","active","safeActive","TOGGLES","focusTrap","update","closeButton","CLOSE_BUTTON","menuButton","OPENERS","activeElement","closer","getBoundingClientRect","width","onMenuClose","hideActiveNavDropdown","navActive","FocusTrap","NAV_LINKS","NAV_CONTROL","OVERLAY","CLOSERS","acc","btn","trapContainer","toggleFormInput","LINK","lastButton","FORM","toggleSearch","form","context","getForm","once","style","outline","validate","keyup change","input[data-validation-element]","elproto","HTMLElement","domready","uswds","components","on","sequence","_len","seq","_this","Behavior","off","tabHandler","focusableElements","firstTabStop","lastTabStop","tabAhead","tabBack","additionalKeyBindings","tabEventHandler","keyMappings","Tab","Shift+Tab","keydown","win","docEl","rect","top","left","bottom","innerHeight","clientHeight","right","clientWidth","isElement","selection","field","mask","resolveIdRefs","toggleFieldMask","PRESSED","SHOW_ATTR","pressed","showText","hideText","getHideText","controls","CHECKED_CLASS","data","validationElement","checkList","entries","_ref","_ref2","_slicedToArray","startsWith","validatorName","substr","validatorPattern","RegExp","validatorSelector","validatorCheckbox","checked"],"mappings":"CAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,EAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,IAAAE,EAAA,mBAAAC,SAAAA,QAAA,IAAAF,GAAAC,EAAA,OAAAA,EAAAF,GAAA,GAAA,GAAAI,EAAA,OAAAA,EAAAJ,GAAA,GAAA,IAAAK,EAAA,IAAAC,MAAA,uBAAAN,EAAA,KAAA,MAAAK,EAAAE,KAAA,mBAAAF,EAAA,IAAAG,EAAAX,EAAAG,GAAA,CAAAS,QAAA,IAAAb,EAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,OAAAD,EAAAG,GAAAS,QAAA,IAAA,IAAAL,EAAA,mBAAAD,SAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,IAAAD,EAAAD,EAAAE,IAAA,OAAAD,EAAA,CAAA,CAAAa,EAAA,CAAA,SAAAT,EAAAU,EAAAJ,gBCaI,aAAcK,OAAOC,OAInB,cAAeC,SAASC,cAAc,QACxCD,SAASE,iBAAqB,cAAeF,SAASE,gBAAgB,6BAA6B,OAEtG,SAAUC,GAIX,GAAM,YAAaA,EAAnB,CAEA,IACGC,EAAgB,YAChBC,EAAY,YACZC,EAAeH,EAAKI,QAAQF,GAC5BG,EAASC,OACTC,EA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AXpd,EAAWod,EAAA,GAC7C,GAAIzb,EAAI2b,WAAW,YAAa,CAC9B,IAAMC,EAAgB5b,EAAI6b,OAAO,WAAW5jB,QAAQ0M,cAC9CmX,EAAmB,IAAIC,OAAO1d,GAC9B2d,EAAiB,oBAAAtR,OAAuBkR,EAAvB,MACjBK,EAAoBX,EAAUjP,cAAc2P,GAElD,IAAKC,EACH,MAAM,IAAIrkB,MAAJ,qCAAA8S,OAA+CkR,EAA/C,MAGR,IAAMM,EAAUJ,EAAiB5hB,KAAKoS,EAAGjO,OACzC4d,EAAkBjiB,UAAUwB,OAAO2f,EAAee,GAClDD,EAAkBthB,aA5BR,eA4B8BuhB","file":"uswds.min.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()","/*\n * classList.js: Cross-browser full element.classList implementation.\n * 1.1.20170427\n *\n * By Eli Grey, http://eligrey.com\n * License: Dedicated to the public domain.\n * See https://github.com/eligrey/classList.js/blob/master/LICENSE.md\n */\n\n/*global self, document, DOMException */\n\n/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */\n\nif (\"document\" in window.self) {\n\n// Full polyfill for browsers with no classList support\n// Including IE < Edge missing SVGElement.classList\nif (!(\"classList\" in document.createElement(\"_\")) \n\t|| document.createElementNS && !(\"classList\" in document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"))) {\n\n(function (view) {\n\n\"use strict\";\n\nif (!('Element' in view)) return;\n\nvar\n\t classListProp = \"classList\"\n\t, protoProp = \"prototype\"\n\t, elemCtrProto = view.Element[protoProp]\n\t, objCtr = Object\n\t, strTrim = String[protoProp].trim || function () {\n\t\treturn this.replace(/^\\s+|\\s+$/g, \"\");\n\t}\n\t, arrIndexOf = Array[protoProp].indexOf || function (item) {\n\t\tvar\n\t\t\t i = 0\n\t\t\t, len = this.length\n\t\t;\n\t\tfor (; i < len; i++) {\n\t\t\tif (i in this && this[i] === item) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}\n\t// Vendors: please allow content code to instantiate DOMExceptions\n\t, DOMEx = function (type, message) {\n\t\tthis.name = type;\n\t\tthis.code = DOMException[type];\n\t\tthis.message = message;\n\t}\n\t, checkTokenAndGetIndex = function (classList, token) {\n\t\tif (token === \"\") {\n\t\t\tthrow new DOMEx(\n\t\t\t\t \"SYNTAX_ERR\"\n\t\t\t\t, \"An invalid or illegal string was specified\"\n\t\t\t);\n\t\t}\n\t\tif (/\\s/.test(token)) {\n\t\t\tthrow new DOMEx(\n\t\t\t\t \"INVALID_CHARACTER_ERR\"\n\t\t\t\t, \"String contains an invalid character\"\n\t\t\t);\n\t\t}\n\t\treturn arrIndexOf.call(classList, token);\n\t}\n\t, ClassList = function (elem) {\n\t\tvar\n\t\t\t trimmedClasses = strTrim.call(elem.getAttribute(\"class\") || \"\")\n\t\t\t, classes = trimmedClasses ? trimmedClasses.split(/\\s+/) : []\n\t\t\t, i = 0\n\t\t\t, len = classes.length\n\t\t;\n\t\tfor (; i < len; i++) {\n\t\t\tthis.push(classes[i]);\n\t\t}\n\t\tthis._updateClassName = function () {\n\t\t\telem.setAttribute(\"class\", this.toString());\n\t\t};\n\t}\n\t, classListProto = ClassList[protoProp] = []\n\t, classListGetter = function () {\n\t\treturn new ClassList(this);\n\t}\n;\n// Most DOMException implementations don't allow calling DOMException's toString()\n// on non-DOMExceptions. Error's toString() is sufficient here.\nDOMEx[protoProp] = Error[protoProp];\nclassListProto.item = function (i) {\n\treturn this[i] || null;\n};\nclassListProto.contains = function (token) {\n\ttoken += \"\";\n\treturn checkTokenAndGetIndex(this, token) !== -1;\n};\nclassListProto.add = function () {\n\tvar\n\t\t tokens = arguments\n\t\t, i = 0\n\t\t, l = tokens.length\n\t\t, token\n\t\t, updated = false\n\t;\n\tdo {\n\t\ttoken = tokens[i] + \"\";\n\t\tif (checkTokenAndGetIndex(this, token) === -1) {\n\t\t\tthis.push(token);\n\t\t\tupdated = true;\n\t\t}\n\t}\n\twhile (++i < l);\n\n\tif (updated) {\n\t\tthis._updateClassName();\n\t}\n};\nclassListProto.remove = function () {\n\tvar\n\t\t tokens = arguments\n\t\t, i = 0\n\t\t, l = tokens.length\n\t\t, token\n\t\t, updated = false\n\t\t, index\n\t;\n\tdo {\n\t\ttoken = tokens[i] + \"\";\n\t\tindex = checkTokenAndGetIndex(this, token);\n\t\twhile (index !== -1) {\n\t\t\tthis.splice(index, 1);\n\t\t\tupdated = true;\n\t\t\tindex = checkTokenAndGetIndex(this, token);\n\t\t}\n\t}\n\twhile (++i < l);\n\n\tif (updated) {\n\t\tthis._updateClassName();\n\t}\n};\nclassListProto.toggle = function (token, force) {\n\ttoken += \"\";\n\n\tvar\n\t\t result = this.contains(token)\n\t\t, method = result ?\n\t\t\tforce !== true && \"remove\"\n\t\t:\n\t\t\tforce !== false && \"add\"\n\t;\n\n\tif (method) {\n\t\tthis[method](token);\n\t}\n\n\tif (force === true || force === false) {\n\t\treturn force;\n\t} else {\n\t\treturn !result;\n\t}\n};\nclassListProto.toString = function () {\n\treturn this.join(\" \");\n};\n\nif (objCtr.defineProperty) {\n\tvar classListPropDesc = {\n\t\t get: classListGetter\n\t\t, enumerable: true\n\t\t, configurable: true\n\t};\n\ttry {\n\t\tobjCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);\n\t} catch (ex) { // IE 8 doesn't support enumerable:true\n\t\t// adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36\n\t\t// modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected\n\t\tif (ex.number === undefined || ex.number === -0x7FF5EC54) {\n\t\t\tclassListPropDesc.enumerable = false;\n\t\t\tobjCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);\n\t\t}\n\t}\n} else if (objCtr[protoProp].__defineGetter__) {\n\telemCtrProto.__defineGetter__(classListProp, classListGetter);\n}\n\n}(window.self));\n\n}\n\n// There is full or partial native classList support, so just check if we need\n// to normalize the add/remove and toggle APIs.\n\n(function () {\n\t\"use strict\";\n\n\tvar testElement = document.createElement(\"_\");\n\n\ttestElement.classList.add(\"c1\", \"c2\");\n\n\t// Polyfill for IE 10/11 and Firefox <26, where classList.add and\n\t// classList.remove exist but support only one argument at a time.\n\tif (!testElement.classList.contains(\"c2\")) {\n\t\tvar createMethod = function(method) {\n\t\t\tvar original = DOMTokenList.prototype[method];\n\n\t\t\tDOMTokenList.prototype[method] = function(token) {\n\t\t\t\tvar i, len = arguments.length;\n\n\t\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\t\ttoken = arguments[i];\n\t\t\t\t\toriginal.call(this, token);\n\t\t\t\t}\n\t\t\t};\n\t\t};\n\t\tcreateMethod('add');\n\t\tcreateMethod('remove');\n\t}\n\n\ttestElement.classList.toggle(\"c3\", false);\n\n\t// Polyfill for IE 10 and Firefox <24, where classList.toggle does not\n\t// support the second argument.\n\tif (testElement.classList.contains(\"c3\")) {\n\t\tvar _toggle = DOMTokenList.prototype.toggle;\n\n\t\tDOMTokenList.prototype.toggle = function(token, force) {\n\t\t\tif (1 in arguments && !this.contains(token) === !force) {\n\t\t\t\treturn force;\n\t\t\t} else {\n\t\t\t\treturn _toggle.call(this, token);\n\t\t\t}\n\t\t};\n\n\t}\n\n\ttestElement = null;\n}());\n\n}\n","/*!\n * domready (c) Dustin Diaz 2014 - License MIT\n */\n!function (name, definition) {\n\n if (typeof module != 'undefined') module.exports = definition()\n else if (typeof define == 'function' && typeof define.amd == 'object') define(definition)\n else this[name] = definition()\n\n}('domready', function () {\n\n var fns = [], listener\n , doc = document\n , hack = doc.documentElement.doScroll\n , domContentLoaded = 'DOMContentLoaded'\n , loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState)\n\n\n if (!loaded)\n doc.addEventListener(domContentLoaded, listener = function () {\n doc.removeEventListener(domContentLoaded, listener)\n loaded = 1\n while (listener = fns.shift()) listener()\n })\n\n return function (fn) {\n loaded ? setTimeout(fn, 0) : fns.push(fn)\n }\n\n});\n","'use strict';\n\n// <3 Modernizr\n// https://raw.githubusercontent.com/Modernizr/Modernizr/master/feature-detects/dom/dataset.js\n\nfunction useNative() {\n\tvar elem = document.createElement('div');\n\telem.setAttribute('data-a-b', 'c');\n\n\treturn Boolean(elem.dataset && elem.dataset.aB === 'c');\n}\n\nfunction nativeDataset(element) {\n\treturn element.dataset;\n}\n\nmodule.exports = useNative() ? nativeDataset : function (element) {\n\tvar map = {};\n\tvar attributes = element.attributes;\n\n\tfunction getter() {\n\t\treturn this.value;\n\t}\n\n\tfunction setter(name, value) {\n\t\tif (typeof value === 'undefined') {\n\t\t\tthis.removeAttribute(name);\n\t\t} else {\n\t\t\tthis.setAttribute(name, value);\n\t\t}\n\t}\n\n\tfor (var i = 0, j = attributes.length; i < j; i++) {\n\t\tvar attribute = attributes[i];\n\n\t\tif (attribute) {\n\t\t\tvar name = attribute.name;\n\n\t\t\tif (name.indexOf('data-') === 0) {\n\t\t\t\tvar prop = name.slice(5).replace(/-./g, function (u) {\n\t\t\t\t\treturn u.charAt(1).toUpperCase();\n\t\t\t\t});\n\n\t\t\t\tvar value = attribute.value;\n\n\t\t\t\tObject.defineProperty(map, prop, {\n\t\t\t\t\tenumerable: true,\n\t\t\t\t\tget: getter.bind({ value: value || '' }),\n\t\t\t\t\tset: setter.bind(element, name)\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\treturn map;\n};\n\n","// element-closest | CC0-1.0 | github.com/jonathantneal/closest\n\n(function (ElementProto) {\n\tif (typeof ElementProto.matches !== 'function') {\n\t\tElementProto.matches = ElementProto.msMatchesSelector || ElementProto.mozMatchesSelector || ElementProto.webkitMatchesSelector || function matches(selector) {\n\t\t\tvar element = this;\n\t\t\tvar elements = (element.document || element.ownerDocument).querySelectorAll(selector);\n\t\t\tvar index = 0;\n\n\t\t\twhile (elements[index] && elements[index] !== element) {\n\t\t\t\t++index;\n\t\t\t}\n\n\t\t\treturn Boolean(elements[index]);\n\t\t};\n\t}\n\n\tif (typeof ElementProto.closest !== 'function') {\n\t\tElementProto.closest = function closest(selector) {\n\t\t\tvar element = this;\n\n\t\t\twhile (element && element.nodeType === 1) {\n\t\t\t\tif (element.matches(selector)) {\n\t\t\t\t\treturn element;\n\t\t\t\t}\n\n\t\t\t\telement = element.parentNode;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t};\n\t}\n})(window.Element.prototype);\n","/* global define, KeyboardEvent, module */\n\n(function () {\n\n var keyboardeventKeyPolyfill = {\n polyfill: polyfill,\n keys: {\n 3: 'Cancel',\n 6: 'Help',\n 8: 'Backspace',\n 9: 'Tab',\n 12: 'Clear',\n 13: 'Enter',\n 16: 'Shift',\n 17: 'Control',\n 18: 'Alt',\n 19: 'Pause',\n 20: 'CapsLock',\n 27: 'Escape',\n 28: 'Convert',\n 29: 'NonConvert',\n 30: 'Accept',\n 31: 'ModeChange',\n 32: ' ',\n 33: 'PageUp',\n 34: 'PageDown',\n 35: 'End',\n 36: 'Home',\n 37: 'ArrowLeft',\n 38: 'ArrowUp',\n 39: 'ArrowRight',\n 40: 'ArrowDown',\n 41: 'Select',\n 42: 'Print',\n 43: 'Execute',\n 44: 'PrintScreen',\n 45: 'Insert',\n 46: 'Delete',\n 48: ['0', ')'],\n 49: ['1', '!'],\n 50: ['2', '@'],\n 51: ['3', '#'],\n 52: ['4', '$'],\n 53: ['5', '%'],\n 54: ['6', '^'],\n 55: ['7', '&'],\n 56: ['8', '*'],\n 57: ['9', '('],\n 91: 'OS',\n 93: 'ContextMenu',\n 144: 'NumLock',\n 145: 'ScrollLock',\n 181: 'VolumeMute',\n 182: 'VolumeDown',\n 183: 'VolumeUp',\n 186: [';', ':'],\n 187: ['=', '+'],\n 188: [',', '<'],\n 189: ['-', '_'],\n 190: ['.', '>'],\n 191: ['/', '?'],\n 192: ['`', '~'],\n 219: ['[', '{'],\n 220: ['\\\\', '|'],\n 221: [']', '}'],\n 222: [\"'\", '\"'],\n 224: 'Meta',\n 225: 'AltGraph',\n 246: 'Attn',\n 247: 'CrSel',\n 248: 'ExSel',\n 249: 'EraseEof',\n 250: 'Play',\n 251: 'ZoomOut'\n }\n };\n\n // Function keys (F1-24).\n var i;\n for (i = 1; i < 25; i++) {\n keyboardeventKeyPolyfill.keys[111 + i] = 'F' + i;\n }\n\n // Printable ASCII characters.\n var letter = '';\n for (i = 65; i < 91; i++) {\n letter = String.fromCharCode(i);\n keyboardeventKeyPolyfill.keys[i] = [letter.toLowerCase(), letter.toUpperCase()];\n }\n\n function polyfill () {\n if (!('KeyboardEvent' in window) ||\n 'key' in KeyboardEvent.prototype) {\n return false;\n }\n\n // Polyfill `key` on `KeyboardEvent`.\n var proto = {\n get: function (x) {\n var key = keyboardeventKeyPolyfill.keys[this.which || this.keyCode];\n\n if (Array.isArray(key)) {\n key = key[+this.shiftKey];\n }\n\n return key;\n }\n };\n Object.defineProperty(KeyboardEvent.prototype, 'key', proto);\n return proto;\n }\n\n if (typeof define === 'function' && define.amd) {\n define('keyboardevent-key-polyfill', keyboardeventKeyPolyfill);\n } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {\n module.exports = keyboardeventKeyPolyfill;\n } else if (window) {\n window.keyboardeventKeyPolyfill = keyboardeventKeyPolyfill;\n }\n\n})();\n","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","const assign = require('object-assign');\nconst delegate = require('../delegate');\nconst delegateAll = require('../delegateAll');\n\nconst DELEGATE_PATTERN = /^(.+):delegate\\((.+)\\)$/;\nconst SPACE = ' ';\n\nconst getListeners = function(type, handler) {\n var match = type.match(DELEGATE_PATTERN);\n var selector;\n if (match) {\n type = match[1];\n selector = match[2];\n }\n\n var options;\n if (typeof handler === 'object') {\n options = {\n capture: popKey(handler, 'capture'),\n passive: popKey(handler, 'passive')\n };\n }\n\n var listener = {\n selector: selector,\n delegate: (typeof handler === 'object')\n ? delegateAll(handler)\n : selector\n ? delegate(selector, handler)\n : handler,\n options: options\n };\n\n if (type.indexOf(SPACE) > -1) {\n return type.split(SPACE).map(function(_type) {\n return assign({type: _type}, listener);\n });\n } else {\n listener.type = type;\n return [listener];\n }\n};\n\nvar popKey = function(obj, key) {\n var value = obj[key];\n delete obj[key];\n return value;\n};\n\nmodule.exports = function behavior(events, props) {\n const listeners = Object.keys(events)\n .reduce(function(memo, type) {\n var listeners = getListeners(type, events[type]);\n return memo.concat(listeners);\n }, []);\n\n return assign({\n add: function addBehavior(element) {\n listeners.forEach(function(listener) {\n element.addEventListener(\n listener.type,\n listener.delegate,\n listener.options\n );\n });\n },\n remove: function removeBehavior(element) {\n listeners.forEach(function(listener) {\n element.removeEventListener(\n listener.type,\n listener.delegate,\n listener.options\n );\n });\n }\n }, props);\n};\n","module.exports = function compose(functions) {\n return function(e) {\n return functions.some(function(fn) {\n return fn.call(this, e) === false;\n }, this);\n };\n};\n","// polyfill Element.prototype.closest\nrequire('element-closest');\n\nmodule.exports = function delegate(selector, fn) {\n return function delegation(event) {\n var target = event.target.closest(selector);\n if (target) {\n return fn.call(target, event);\n }\n }\n};\n","const delegate = require('../delegate');\nconst compose = require('../compose');\n\nconst SPLAT = '*';\n\nmodule.exports = function delegateAll(selectors) {\n const keys = Object.keys(selectors)\n\n // XXX optimization: if there is only one handler and it applies to\n // all elements (the \"*\" CSS selector), then just return that\n // handler\n if (keys.length === 1 && keys[0] === SPLAT) {\n return selectors[SPLAT];\n }\n\n const delegates = keys.reduce(function(memo, selector) {\n memo.push(delegate(selector, selectors[selector]));\n return memo;\n }, []);\n return compose(delegates);\n};\n","module.exports = function ignore(element, fn) {\n return function ignorance(e) {\n if (element !== e.target && !element.contains(e.target)) {\n return fn.call(this, e);\n }\n };\n};\n","module.exports = {\n behavior: require('./behavior'),\n delegate: require('./delegate'),\n delegateAll: require('./delegateAll'),\n ignore: require('./ignore'),\n keymap: require('./keymap'),\n};\n","require('keyboardevent-key-polyfill');\n\n// these are the only relevant modifiers supported on all platforms,\n// according to MDN:\n// <https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState>\nconst MODIFIERS = {\n 'Alt': 'altKey',\n 'Control': 'ctrlKey',\n 'Ctrl': 'ctrlKey',\n 'Shift': 'shiftKey'\n};\n\nconst MODIFIER_SEPARATOR = '+';\n\nconst getEventKey = function(event, hasModifiers) {\n var key = event.key;\n if (hasModifiers) {\n for (var modifier in MODIFIERS) {\n if (event[MODIFIERS[modifier]] === true) {\n key = [modifier, key].join(MODIFIER_SEPARATOR);\n }\n }\n }\n return key;\n};\n\nmodule.exports = function keymap(keys) {\n const hasModifiers = Object.keys(keys).some(function(key) {\n return key.indexOf(MODIFIER_SEPARATOR) > -1;\n });\n return function(event) {\n var key = getEventKey(event, hasModifiers);\n return [key, key.toLowerCase()]\n .reduce(function(result, _key) {\n if (_key in keys) {\n result = keys[key].call(this, event);\n }\n return result;\n }, undefined);\n };\n};\n\nmodule.exports.MODIFIERS = MODIFIERS;\n","module.exports = function once(listener, options) {\n var wrapped = function wrappedOnce(e) {\n e.currentTarget.removeEventListener(e.type, wrapped, options);\n return listener.call(this, e);\n };\n return wrapped;\n};\n\n","'use strict';\n\nvar RE_TRIM = /(^\\s+)|(\\s+$)/g;\nvar RE_SPLIT = /\\s+/;\n\nvar trim = String.prototype.trim\n ? function(str) { return str.trim(); }\n : function(str) { return str.replace(RE_TRIM, ''); };\n\nvar queryById = function(id) {\n return this.querySelector('[id=\"' + id.replace(/\"/g, '\\\\\"') + '\"]');\n};\n\nmodule.exports = function resolveIds(ids, doc) {\n if (typeof ids !== 'string') {\n throw new Error('Expected a string but got ' + (typeof ids));\n }\n\n if (!doc) {\n doc = window.document;\n }\n\n var getElementById = doc.getElementById\n ? doc.getElementById.bind(doc)\n : queryById.bind(doc);\n\n ids = trim(ids).split(RE_SPLIT);\n\n // XXX we can short-circuit here because trimming and splitting a\n // string of just whitespace produces an array containing a single,\n // empty string\n if (ids.length === 1 && ids[0] === '') {\n return [];\n }\n\n return ids\n .map(function(id) {\n var el = getElementById(id);\n if (!el) {\n throw new Error('no element with id: \"' + id + '\"');\n }\n return el;\n });\n};\n","const select = require(\"../utils/select\");\nconst behavior = require(\"../utils/behavior\");\nconst toggle = require(\"../utils/toggle\");\nconst isElementInViewport = require(\"../utils/is-in-viewport\");\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst ACCORDION = `.${PREFIX}-accordion, .${PREFIX}-accordion--bordered`;\nconst BUTTON = `.${PREFIX}-accordion__button[aria-controls]`;\nconst EXPANDED = \"aria-expanded\";\nconst MULTISELECTABLE = \"aria-multiselectable\";\n\n/**\n * Get an Array of button elements belonging directly to the given\n * accordion element.\n * @param {HTMLElement} accordion\n * @return {array<HTMLButtonElement>}\n */\nconst getAccordionButtons = accordion => {\n const buttons = select(BUTTON, accordion);\n\n return buttons.filter(button => button.closest(ACCORDION) === accordion);\n};\n\n/**\n * Toggle a button's \"pressed\" state, optionally providing a target\n * state.\n *\n * @param {HTMLButtonElement} button\n * @param {boolean?} expanded If no state is provided, the current\n * state will be toggled (from false to true, and vice-versa).\n * @return {boolean} the resulting state\n */\nconst toggleButton = (button, expanded) => {\n const accordion = button.closest(ACCORDION);\n let safeExpanded = expanded;\n\n if (!accordion) {\n throw new Error(`${BUTTON} is missing outer ${ACCORDION}`);\n }\n\n safeExpanded = toggle(button, expanded);\n\n // XXX multiselectable is opt-in, to preserve legacy behavior\n const multiselectable = accordion.getAttribute(MULTISELECTABLE) === \"true\";\n\n if (safeExpanded && !multiselectable) {\n getAccordionButtons(accordion).forEach(other => {\n if (other !== button) {\n toggle(other, false);\n }\n });\n }\n};\n\n/**\n * @param {HTMLButtonElement} button\n * @return {boolean} true\n */\nconst showButton = button => toggleButton(button, true);\n\n/**\n * @param {HTMLButtonElement} button\n * @return {boolean} false\n */\nconst hideButton = button => toggleButton(button, false);\n\nconst accordion = behavior(\n {\n [CLICK]: {\n [BUTTON](event) {\n event.preventDefault();\n\n toggleButton(this);\n\n if (this.getAttribute(EXPANDED) === \"true\") {\n // We were just expanded, but if another accordion was also just\n // collapsed, we may no longer be in the viewport. This ensures\n // that we are still visible, so the user isn't confused.\n if (!isElementInViewport(this)) this.scrollIntoView();\n }\n }\n }\n },\n {\n init(root) {\n select(BUTTON, root).forEach(button => {\n const expanded = button.getAttribute(EXPANDED) === \"true\";\n toggleButton(button, expanded);\n });\n },\n ACCORDION,\n BUTTON,\n show: showButton,\n hide: hideButton,\n toggle: toggleButton,\n getButtons: getAccordionButtons\n }\n);\n\nmodule.exports = accordion;\n","const behavior = require(\"../utils/behavior\");\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst HEADER = `.${PREFIX}-banner__header`;\nconst EXPANDED_CLASS = `${PREFIX}-banner__header--expanded`;\n\nconst toggleBanner = function toggleEl(event) {\n event.preventDefault();\n this.closest(HEADER).classList.toggle(EXPANDED_CLASS);\n};\n\nmodule.exports = behavior({\n [CLICK]: {\n [`${HEADER} [aria-controls]`]: toggleBanner\n }\n});\n","const select = require(\"../utils/select\");\nconst behavior = require(\"../utils/behavior\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst CHARACTER_COUNT = `.${PREFIX}-character-count`;\nconst INPUT = `.${PREFIX}-character-count__field`;\nconst MESSAGE = `.${PREFIX}-character-count__message`;\nconst VALIDATION_MESSAGE = \"The content is too long.\";\nconst MESSAGE_INVALID_CLASS = `${PREFIX}-character-count__message--invalid`;\n\n/**\n * The elements within the character count.\n * @typedef {Object} CharacterCountElements\n * @property {HTMLDivElement} characterCountEl\n * @property {HTMLSpanElement} messageEl\n */\n\n/**\n * Returns the root and message element\n * for an character count input\n *\n * @param {HTMLInputElement|HTMLTextAreaElement} inputEl The character count input element\n * @returns {CharacterCountElements} elements The root and message element.\n */\nconst getCharacterCountElements = inputEl => {\n const characterCountEl = inputEl.closest(CHARACTER_COUNT);\n\n if (!characterCountEl) {\n throw new Error(`${INPUT} is missing outer ${CHARACTER_COUNT}`);\n }\n\n const messageEl = characterCountEl.querySelector(MESSAGE);\n\n if (!messageEl) {\n throw new Error(`${CHARACTER_COUNT} is missing inner ${MESSAGE}`);\n }\n\n return { characterCountEl, messageEl };\n};\n\n/**\n * Update the character count component\n *\n * @param {HTMLInputElement|HTMLTextAreaElement} inputEl The character count input element\n */\nconst updateCountMessage = inputEl => {\n const { characterCountEl, messageEl } = getCharacterCountElements(inputEl);\n\n const maxlength = parseInt(\n characterCountEl.getAttribute(\"data-maxlength\"),\n 10\n );\n\n if (!maxlength) return;\n\n let newMessage = \"\";\n const currentLength = inputEl.value.length;\n const isOverLimit = currentLength && currentLength > maxlength;\n\n if (currentLength === 0) {\n newMessage = `${maxlength} characters allowed`;\n } else {\n const difference = Math.abs(maxlength - currentLength);\n const characters = `character${difference === 1 ? \"\" : \"s\"}`;\n const guidance = isOverLimit ? \"over limit\" : \"left\";\n\n newMessage = `${difference} ${characters} ${guidance}`;\n }\n\n messageEl.classList.toggle(MESSAGE_INVALID_CLASS, isOverLimit);\n messageEl.innerHTML = newMessage;\n\n if (isOverLimit && !inputEl.validationMessage) {\n inputEl.setCustomValidity(VALIDATION_MESSAGE);\n }\n\n if (!isOverLimit && inputEl.validationMessage === VALIDATION_MESSAGE) {\n inputEl.setCustomValidity(\"\");\n }\n};\n\n/**\n * Setup the character count component\n *\n * @param {HTMLInputElement|HTMLTextAreaElement} inputEl The character count input element\n */\nconst setupAttributes = inputEl => {\n const { characterCountEl } = getCharacterCountElements(inputEl);\n\n const maxlength = inputEl.getAttribute(\"maxlength\");\n\n if (!maxlength) return;\n\n inputEl.removeAttribute(\"maxlength\");\n characterCountEl.setAttribute(\"data-maxlength\", maxlength);\n};\n\nconst characterCount = behavior(\n {\n input: {\n [INPUT]() {\n updateCountMessage(this);\n }\n }\n },\n {\n init(root) {\n select(INPUT, root).forEach(input => {\n setupAttributes(input);\n updateCountMessage(input);\n });\n },\n MESSAGE_INVALID_CLASS,\n VALIDATION_MESSAGE\n }\n);\n\nmodule.exports = characterCount;\n","const keymap = require(\"receptor/keymap\");\nconst select = require(\"../utils/select\");\nconst behavior = require(\"../utils/behavior\");\nconst { prefix: PREFIX } = require(\"../config\");\nconst { CLICK } = require(\"../events\");\n\nconst COMBO_BOX = `.${PREFIX}-combo-box`;\n\nconst INPUT_CLASS = `${PREFIX}-combo-box__input`;\nconst LIST_CLASS = `${PREFIX}-combo-box__list`;\nconst LIST_OPTION_CLASS = `${PREFIX}-combo-box__list-option`;\nconst STATUS_CLASS = `${PREFIX}-combo-box__status`;\nconst LIST_OPTION_FOCUSED_CLASS = `${LIST_OPTION_CLASS}--focused`;\n\nconst SELECT = `.${PREFIX}-combo-box__select`;\nconst INPUT = `.${INPUT_CLASS}`;\nconst LIST = `.${LIST_CLASS}`;\nconst LIST_OPTION = `.${LIST_OPTION_CLASS}`;\nconst LIST_OPTION_FOCUSED = `.${LIST_OPTION_FOCUSED_CLASS}`;\nconst STATUS = `.${STATUS_CLASS}`;\n\n/**\n * Determine if the key code of an event is printable\n *\n * @param {number} keyCode The key code of the event\n * @returns {boolean} true is the key code is printable\n */\nconst isPrintableKeyCode = keyCode => {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || // space\n keyCode === 8 || // backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n );\n};\n\n/**\n * The elements within the combo box.\n * @typedef {Object} ComboBoxElements\n * @property {HTMLElement} comboBoxEl\n * @property {HTMLSelectElement} selectEl\n * @property {HTMLInputElement} inputEl\n * @property {HTMLUListElement} listEl\n * @property {HTMLDivElement} statusEl\n * @property {HTMLOptionElement} focusedOptionEl\n */\n\n/**\n * Get an object of elements belonging directly to the given\n * combo box component.\n *\n * @param {HTMLElement} el the element within the combo box\n * @returns {ComboBoxElements} elements\n */\nconst getComboBoxElements = el => {\n const comboBoxEl = el.closest(COMBO_BOX);\n\n if (!comboBoxEl) {\n throw new Error(`Element is missing outer ${COMBO_BOX}`);\n }\n\n const selectEl = comboBoxEl.querySelector(SELECT);\n\n if (!selectEl) {\n throw new Error(`${COMBO_BOX} is missing inner ${SELECT}`);\n }\n\n const inputEl = comboBoxEl.querySelector(INPUT);\n const listEl = comboBoxEl.querySelector(LIST);\n const statusEl = comboBoxEl.querySelector(STATUS);\n const focusedOptionEl = comboBoxEl.querySelector(LIST_OPTION_FOCUSED);\n\n return { comboBoxEl, selectEl, inputEl, listEl, statusEl, focusedOptionEl };\n};\n\n/**\n * Enhance a select element into a combo box component.\n *\n * @param {HTMLElement} el The initial element within the combo box component\n */\nconst enhanceComboBox = el => {\n const { comboBoxEl, selectEl } = getComboBoxElements(el);\n\n const selectId = selectEl.id;\n const listId = `${selectId}--list`;\n const assistiveHintID = `${selectId}--assistiveHint`;\n let placeholder = \"\";\n let selectedOption;\n const additionalAttributes = [];\n\n for (let i = 0, len = selectEl.options.length; i < len; i += 1) {\n const optionEl = selectEl.options[i];\n\n if (!placeholder && !optionEl.value) {\n placeholder = `placeholder=\"${optionEl.text}\"`;\n }\n\n if (!selectedOption && optionEl.selected && optionEl.value) {\n selectedOption = optionEl;\n }\n\n if (placeholder && selectedOption) {\n break;\n }\n }\n\n selectEl.setAttribute(\"aria-hidden\", \"true\");\n selectEl.setAttribute(\"tabindex\", \"-1\");\n selectEl.classList.add(\"usa-sr-only\");\n selectEl.id = \"\";\n\n [\"required\", \"aria-label\", \"aria-labelledby\"].forEach(name => {\n if (selectEl.hasAttribute(name)) {\n const value = selectEl.getAttribute(name);\n additionalAttributes.push(`${name}=\"${value}\"`);\n selectEl.removeAttribute(name);\n }\n });\n\n comboBoxEl.insertAdjacentHTML(\n \"beforeend\",\n [\n `<input\n aria-owns=\"${listId}\"\n aria-autocomplete=\"list\"\n aria-describedby=\"${assistiveHintID}\"\n aria-expanded=\"false\"\n autocapitalize=\"off\"\n ${placeholder || \"\"}\n autocomplete=\"off\"\n id=\"${selectId}\"\n class=\"${INPUT_CLASS}\"\n type=\"text\"\n role=\"combobox\"\n ${additionalAttributes.join(\" \")}\n >`,\n `<ul\n id=\"${listId}\"\n class=\"${LIST_CLASS}\"\n role=\"listbox\"\n hidden>\n </ul>`,\n `<div class=\"${STATUS_CLASS} usa-sr-only\" role=\"status\">\n </div>`,\n `<span id=\"${assistiveHintID}\" class=\"usa-sr-only\">\n When autocomplete results are available use up and down arrows to review and enter to select.\n Touch device users, explore by touch or with swipe gestures.\n </span>`\n ].join(\"\")\n );\n\n if (selectedOption) {\n const { inputEl } = getComboBoxElements(el);\n selectEl.value = selectedOption.value;\n inputEl.value = selectedOption.text;\n }\n};\n\n/**\n * Display the option list of a combo box component.\n *\n * @param {HTMLElement} el An element within the combo box component\n */\nconst displayList = el => {\n const { selectEl, inputEl, listEl, statusEl } = getComboBoxElements(el);\n\n const listOptionBaseId = `${listEl.id}--option-`;\n\n const inputValue = (inputEl.value || \"\").toLowerCase();\n\n const options = [];\n for (let i = 0, len = selectEl.options.length; i < len; i += 1) {\n const optionEl = selectEl.options[i];\n if (\n optionEl.value &&\n (!inputValue || optionEl.text.toLowerCase().indexOf(inputValue) !== -1)\n ) {\n options.push(optionEl);\n }\n }\n\n const numOptions = options.length;\n const optionHtml = options\n .map(\n (option, index) =>\n `<li\n aria-selected=\"false\"\n aria-setsize=\"${options.length}\"\n aria-posinset=\"${index + 1}\"\n id=\"${listOptionBaseId}${index}\"\n class=\"${LIST_OPTION_CLASS}\"\n tabindex=\"-1\"\n role=\"option\"\n data-option-value=\"${option.value}\"\n >${option.text}</li>`\n )\n .join(\"\");\n\n const noResults = `<li class=\"${LIST_OPTION_CLASS}--no-results\">No results found</li>`;\n\n listEl.hidden = false;\n listEl.innerHTML = numOptions ? optionHtml : noResults;\n\n inputEl.setAttribute(\"aria-expanded\", \"true\");\n\n statusEl.innerHTML = numOptions\n ? `${numOptions} result${numOptions > 1 ? \"s\" : \"\"} available.`\n : \"No results.\";\n};\n\n/**\n * Hide the option list of a combo box component.\n *\n * @param {HTMLElement} el An element within the combo box component\n */\nconst hideList = el => {\n const { inputEl, listEl, statusEl } = getComboBoxElements(el);\n\n statusEl.innerHTML = \"\";\n\n inputEl.setAttribute(\"aria-expanded\", \"false\");\n inputEl.setAttribute(\"aria-activedescendant\", \"\");\n\n listEl.innerHTML = \"\";\n listEl.hidden = true;\n};\n\n/**\n * Select an option list of the combo box component.\n *\n * @param {HTMLElement} listOptionEl The list option being selected\n */\nconst selectItem = listOptionEl => {\n const { comboBoxEl, selectEl, inputEl } = getComboBoxElements(listOptionEl);\n\n selectEl.value = listOptionEl.getAttribute(\"data-option-value\");\n inputEl.value = listOptionEl.textContent;\n hideList(comboBoxEl);\n inputEl.focus();\n};\n\n/**\n * Select an option list of the combo box component based off of\n * having a current focused list option or\n * having test that completely matches a list option.\n * Otherwise it clears the input and select.\n *\n * @param {HTMLElement} el An element within the combo box component\n */\nconst completeSelection = el => {\n const { selectEl, inputEl, statusEl, focusedOptionEl } = getComboBoxElements(\n el\n );\n\n statusEl.textContent = \"\";\n\n if (focusedOptionEl) {\n selectEl.value = focusedOptionEl.getAttribute(\"data-option-value\");\n inputEl.value = focusedOptionEl.textContent;\n return;\n }\n\n const inputValue = (inputEl.value || \"\").toLowerCase();\n\n if (inputValue) {\n for (let i = 0, len = selectEl.options.length; i < len; i += 1) {\n const optionEl = selectEl.options[i];\n if (optionEl.text.toLowerCase() === inputValue) {\n selectEl.value = optionEl.value;\n inputEl.value = optionEl.text;\n return;\n }\n }\n }\n\n selectEl.value = \"\";\n\n if (inputEl.value) {\n inputEl.value = \"\";\n }\n};\n\n/**\n * Manage the focused element within the list options when\n * navigating via keyboard.\n *\n * @param {HTMLElement} el An element within the combo box component\n * @param {HTMLElement} currentEl An element within the combo box component\n * @param {HTMLElement} nextEl An element within the combo box component\n */\nconst highlightOption = (el, currentEl, nextEl) => {\n const { inputEl, listEl } = getComboBoxElements(el);\n\n if (currentEl) {\n currentEl.classList.remove(LIST_OPTION_FOCUSED_CLASS);\n currentEl.setAttribute(\"aria-selected\", \"false\");\n }\n\n if (nextEl) {\n inputEl.setAttribute(\"aria-activedescendant\", nextEl.id);\n nextEl.setAttribute(\"aria-selected\", \"true\");\n nextEl.classList.add(LIST_OPTION_FOCUSED_CLASS);\n\n const optionBottom = nextEl.offsetTop + nextEl.offsetHeight;\n const currentBottom = listEl.scrollTop + listEl.offsetHeight;\n\n if (optionBottom > currentBottom) {\n listEl.scrollTop = optionBottom - listEl.offsetHeight;\n }\n\n if (nextEl.offsetTop < listEl.scrollTop) {\n listEl.scrollTop = nextEl.offsetTop;\n }\n nextEl.focus();\n } else {\n inputEl.setAttribute(\"aria-activedescendant\", \"\");\n inputEl.focus();\n }\n};\n\n/**\n * Handle the enter event within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleEnter = event => {\n const { comboBoxEl, inputEl, listEl } = getComboBoxElements(event.target);\n const listShown = !listEl.hidden;\n\n completeSelection(comboBoxEl);\n\n if (listShown) {\n hideList(comboBoxEl);\n inputEl.focus();\n event.preventDefault();\n }\n};\n\n/**\n * Handle the down event within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleEscape = event => {\n const { comboBoxEl, inputEl } = getComboBoxElements(event.target);\n\n hideList(comboBoxEl);\n inputEl.focus();\n};\n\n/**\n * Handle the up event within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleUp = event => {\n const { comboBoxEl, listEl, focusedOptionEl } = getComboBoxElements(\n event.target\n );\n const nextOptionEl = focusedOptionEl && focusedOptionEl.previousSibling;\n const listShown = !listEl.hidden;\n\n highlightOption(comboBoxEl, focusedOptionEl, nextOptionEl);\n\n if (listShown) {\n event.preventDefault();\n }\n\n if (!nextOptionEl) {\n hideList(comboBoxEl);\n }\n};\n\n/**\n * Handle the down event within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleDown = event => {\n const { comboBoxEl, listEl, focusedOptionEl } = getComboBoxElements(\n event.target\n );\n\n if (listEl.hidden) {\n displayList(comboBoxEl);\n }\n\n const nextOptionEl = focusedOptionEl\n ? focusedOptionEl.nextSibling\n : listEl.querySelector(LIST_OPTION);\n\n if (nextOptionEl) {\n highlightOption(comboBoxEl, focusedOptionEl, nextOptionEl);\n }\n\n event.preventDefault();\n};\n\nconst comboBox = behavior(\n {\n [CLICK]: {\n [INPUT]() {\n displayList(this);\n },\n [LIST_OPTION]() {\n selectItem(this);\n }\n },\n focusout: {\n [COMBO_BOX](event) {\n const { comboBoxEl } = getComboBoxElements(event.target);\n if (!comboBoxEl.contains(event.relatedTarget)) {\n completeSelection(comboBoxEl);\n hideList(comboBoxEl);\n }\n }\n },\n keydown: {\n [COMBO_BOX]: keymap({\n ArrowUp: handleUp,\n Up: handleUp,\n ArrowDown: handleDown,\n Down: handleDown,\n Escape: handleEscape,\n Enter: handleEnter\n })\n },\n keyup: {\n [INPUT](event) {\n if (isPrintableKeyCode(event.keyCode)) {\n displayList(this);\n }\n }\n }\n },\n {\n init(root) {\n select(SELECT, root).forEach(selectEl => {\n enhanceComboBox(selectEl);\n });\n }\n }\n);\n\nmodule.exports = comboBox;\n","const debounce = require(\"lodash.debounce\");\nconst behavior = require(\"../utils/behavior\");\nconst select = require(\"../utils/select\");\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst HIDDEN = \"hidden\";\nconst SCOPE = `.${PREFIX}-footer--big`;\nconst NAV = `${SCOPE} nav`;\nconst BUTTON = `${NAV} .${PREFIX}-footer__primary-link`;\nconst COLLAPSIBLE = `.${PREFIX}-footer__primary-content--collapsible`;\n\nconst HIDE_MAX_WIDTH = 480;\nconst DEBOUNCE_RATE = 180;\n\nfunction showPanel() {\n if (window.innerWidth < HIDE_MAX_WIDTH) {\n const collapseEl = this.closest(COLLAPSIBLE);\n collapseEl.classList.toggle(HIDDEN);\n\n // NB: this *should* always succeed because the button\n // selector is scoped to \".{prefix}-footer-big nav\"\n const collapsibleEls = select(COLLAPSIBLE, collapseEl.closest(NAV));\n\n collapsibleEls.forEach(el => {\n if (el !== collapseEl) {\n el.classList.add(HIDDEN);\n }\n });\n }\n}\n\nlet lastInnerWidth;\n\nconst resize = debounce(() => {\n if (lastInnerWidth === window.innerWidth) return;\n lastInnerWidth = window.innerWidth;\n const hidden = window.innerWidth < HIDE_MAX_WIDTH;\n select(COLLAPSIBLE).forEach(list => list.classList.toggle(HIDDEN, hidden));\n}, DEBOUNCE_RATE);\n\nmodule.exports = behavior(\n {\n [CLICK]: {\n [BUTTON]: showPanel\n }\n },\n {\n // export for use elsewhere\n HIDE_MAX_WIDTH,\n DEBOUNCE_RATE,\n\n init() {\n resize();\n window.addEventListener(\"resize\", resize);\n },\n\n teardown() {\n window.removeEventListener(\"resize\", resize);\n }\n }\n);\n","const accordion = require(\"./accordion\");\nconst banner = require(\"./banner\");\nconst characterCount = require(\"./character-count\");\nconst comboBox = require(\"./combo-box\");\nconst footer = require(\"./footer\");\nconst navigation = require(\"./navigation\");\nconst password = require(\"./password\");\nconst search = require(\"./search\");\nconst skipnav = require(\"./skipnav\");\nconst validator = require(\"./validator\");\n\nmodule.exports = {\n accordion,\n banner,\n characterCount,\n comboBox,\n footer,\n navigation,\n password,\n search,\n skipnav,\n validator\n};\n","const behavior = require(\"../utils/behavior\");\nconst select = require(\"../utils/select\");\nconst toggle = require(\"../utils/toggle\");\nconst FocusTrap = require(\"../utils/focus-trap\");\nconst accordion = require(\"./accordion\");\n\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst BODY = \"body\";\nconst NAV = `.${PREFIX}-nav`;\nconst NAV_LINKS = `${NAV} a`;\nconst NAV_CONTROL = `button.${PREFIX}-nav__link`;\nconst OPENERS = `.${PREFIX}-menu-btn`;\nconst CLOSE_BUTTON = `.${PREFIX}-nav__close`;\nconst OVERLAY = `.${PREFIX}-overlay`;\nconst CLOSERS = `${CLOSE_BUTTON}, .${PREFIX}-overlay`;\nconst TOGGLES = [NAV, OVERLAY].join(\", \");\n\nconst ACTIVE_CLASS = \"usa-js-mobile-nav--active\";\nconst VISIBLE_CLASS = \"is-visible\";\n\nlet navigation;\nlet navActive;\n\nconst isActive = () => document.body.classList.contains(ACTIVE_CLASS);\n\nconst toggleNav = active => {\n const { body } = document;\n const safeActive = typeof active === \"boolean\" ? active : !isActive();\n\n body.classList.toggle(ACTIVE_CLASS, safeActive);\n\n select(TOGGLES).forEach(el => el.classList.toggle(VISIBLE_CLASS, safeActive));\n\n navigation.focusTrap.update(safeActive);\n\n const closeButton = body.querySelector(CLOSE_BUTTON);\n const menuButton = body.querySelector(OPENERS);\n\n if (safeActive && closeButton) {\n // The mobile nav was just activated, so focus on the close button,\n // which is just before all the nav elements in the tab order.\n closeButton.focus();\n } else if (\n !safeActive &&\n document.activeElement === closeButton &&\n menuButton\n ) {\n // The mobile nav was just deactivated, and focus was on the close\n // button, which is no longer visible. We don't want the focus to\n // disappear into the void, so focus on the menu button if it's\n // visible (this may have been what the user was just focused on,\n // if they triggered the mobile nav by mistake).\n menuButton.focus();\n }\n\n return safeActive;\n};\n\nconst resize = () => {\n const closer = document.body.querySelector(CLOSE_BUTTON);\n\n if (isActive() && closer && closer.getBoundingClientRect().width === 0) {\n // When the mobile nav is active, and the close box isn't visible,\n // we know the user's viewport has been resized to be larger.\n // Let's make the page state consistent by deactivating the mobile nav.\n navigation.toggleNav.call(closer, false);\n }\n};\n\nconst onMenuClose = () => navigation.toggleNav.call(navigation, false);\nconst hideActiveNavDropdown = () => {\n toggle(navActive, false);\n navActive = null;\n};\n\nnavigation = behavior(\n {\n [CLICK]: {\n [NAV_CONTROL]() {\n // If another nav is open, close it\n if (navActive && navActive !== this) {\n hideActiveNavDropdown();\n }\n // store a reference to the last clicked nav link element, so we\n // can hide the dropdown if another element on the page is clicked\n if (navActive) {\n hideActiveNavDropdown();\n } else {\n navActive = this;\n toggle(navActive, true);\n }\n\n // Do this so the event handler on the body doesn't fire\n return false;\n },\n [BODY]() {\n if (navActive) {\n hideActiveNavDropdown();\n }\n },\n [OPENERS]: toggleNav,\n [CLOSERS]: toggleNav,\n [NAV_LINKS]() {\n // A navigation link has been clicked! We want to collapse any\n // hierarchical navigation UI it's a part of, so that the user\n // can focus on whatever they've just selected.\n\n // Some navigation links are inside accordions; when they're\n // clicked, we want to collapse those accordions.\n const acc = this.closest(accordion.ACCORDION);\n\n if (acc) {\n accordion.getButtons(acc).forEach(btn => accordion.hide(btn));\n }\n\n // If the mobile navigation menu is active, we want to hide it.\n if (isActive()) {\n navigation.toggleNav.call(navigation, false);\n }\n }\n }\n },\n {\n init(root) {\n const trapContainer = root.querySelector(NAV);\n\n if (trapContainer) {\n navigation.focusTrap = FocusTrap(trapContainer, {\n Escape: onMenuClose\n });\n }\n\n resize();\n window.addEventListener(\"resize\", resize, false);\n },\n teardown() {\n window.removeEventListener(\"resize\", resize, false);\n navActive = false;\n },\n focusTrap: null,\n toggleNav\n }\n);\n\nmodule.exports = navigation;\n","const behavior = require(\"../utils/behavior\");\nconst toggleFormInput = require(\"../utils/toggle-form-input\");\n\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst LINK = `.${PREFIX}-show-password, .${PREFIX}-show-multipassword`;\n\nfunction toggle(event) {\n event.preventDefault();\n toggleFormInput(this);\n}\n\nmodule.exports = behavior({\n [CLICK]: {\n [LINK]: toggle\n }\n});\n","const ignore = require(\"receptor/ignore\");\nconst behavior = require(\"../utils/behavior\");\nconst select = require(\"../utils/select\");\n\nconst { CLICK } = require(\"../events\");\n\nconst BUTTON = \".js-search-button\";\nconst FORM = \".js-search-form\";\nconst INPUT = \"[type=search]\";\nconst CONTEXT = \"header\"; // XXX\n\nlet lastButton;\n\nconst getForm = button => {\n const context = button.closest(CONTEXT);\n return context ? context.querySelector(FORM) : document.querySelector(FORM);\n};\n\nconst toggleSearch = (button, active) => {\n const form = getForm(button);\n\n if (!form) {\n throw new Error(`No ${FORM} found for search toggle in ${CONTEXT}!`);\n }\n\n /* eslint-disable no-param-reassign */\n button.hidden = active;\n form.hidden = !active;\n /* eslint-enable */\n\n if (!active) {\n return;\n }\n\n const input = form.querySelector(INPUT);\n\n if (input) {\n input.focus();\n }\n // when the user clicks _outside_ of the form w/ignore(): hide the\n // search, then remove the listener\n const listener = ignore(form, () => {\n if (lastButton) {\n hideSearch.call(lastButton); // eslint-disable-line no-use-before-define\n }\n\n document.body.removeEventListener(CLICK, listener);\n });\n\n // Normally we would just run this code without a timeout, but\n // IE11 and Edge will actually call the listener *immediately* because\n // they are currently handling this exact type of event, so we'll\n // make sure the browser is done handling the current click event,\n // if any, before we attach the listener.\n setTimeout(() => {\n document.body.addEventListener(CLICK, listener);\n }, 0);\n};\n\nfunction showSearch() {\n toggleSearch(this, true);\n lastButton = this;\n}\n\nfunction hideSearch() {\n toggleSearch(this, false);\n lastButton = undefined;\n}\n\nconst search = behavior(\n {\n [CLICK]: {\n [BUTTON]: showSearch\n }\n },\n {\n init(target) {\n select(BUTTON, target).forEach(button => {\n toggleSearch(button, false);\n });\n },\n teardown() {\n // forget the last button clicked\n lastButton = undefined;\n }\n }\n);\n\nmodule.exports = search;\n","const once = require(\"receptor/once\");\nconst behavior = require(\"../utils/behavior\");\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst LINK = `.${PREFIX}-skipnav[href^=\"#\"], .${PREFIX}-footer__return-to-top [href^=\"#\"]`;\nconst MAINCONTENT = \"main-content\";\n\nfunction setTabindex() {\n // NB: we know because of the selector we're delegating to below that the\n // href already begins with '#'\n const id = this.getAttribute(\"href\");\n const target = document.getElementById(\n id === \"#\" ? MAINCONTENT : id.slice(1)\n );\n\n if (target) {\n target.style.outline = \"0\";\n target.setAttribute(\"tabindex\", 0);\n target.focus();\n target.addEventListener(\n \"blur\",\n once(() => {\n target.setAttribute(\"tabindex\", -1);\n })\n );\n } else {\n // throw an error?\n }\n}\n\nmodule.exports = behavior({\n [CLICK]: {\n [LINK]: setTabindex\n }\n});\n","const behavior = require(\"../utils/behavior\");\nconst validate = require(\"../utils/validate-input\");\n\nfunction change() {\n validate(this);\n}\n\nconst validator = behavior({\n \"keyup change\": {\n \"input[data-validation-element]\": change\n }\n});\n\nmodule.exports = validator;\n","module.exports = {\n prefix: \"usa\"\n};\n","module.exports = {\n // This used to be conditionally dependent on whether the\n // browser supported touch events; if it did, `CLICK` was set to\n // `touchstart`. However, this had downsides:\n //\n // * It pre-empted mobile browsers' default behavior of detecting\n // whether a touch turned into a scroll, thereby preventing\n // users from using some of our components as scroll surfaces.\n //\n // * Some devices, such as the Microsoft Surface Pro, support *both*\n // touch and clicks. This meant the conditional effectively dropped\n // support for the user's mouse, frustrating users who preferred\n // it on those systems.\n CLICK: \"click\"\n};\n","const elproto = window.HTMLElement.prototype;\nconst HIDDEN = \"hidden\";\n\nif (!(HIDDEN in elproto)) {\n Object.defineProperty(elproto, HIDDEN, {\n get() {\n return this.hasAttribute(HIDDEN);\n },\n set(value) {\n if (value) {\n this.setAttribute(HIDDEN, \"\");\n } else {\n this.removeAttribute(HIDDEN);\n }\n }\n });\n}\n","// polyfills HTMLElement.prototype.classList and DOMTokenList\nrequire(\"classlist-polyfill\");\n// polyfills HTMLElement.prototype.hidden\nrequire(\"./element-hidden\");\n","const domready = require(\"domready\");\n\n/**\n * The 'polyfills' define key ECMAScript 5 methods that may be missing from\n * older browsers, so must be loaded first.\n */\nrequire(\"./polyfills\");\n\nconst uswds = require(\"./config\");\n\nconst components = require(\"./components\");\n\nuswds.components = components;\n\ndomready(() => {\n const target = document.body;\n Object.keys(components).forEach(key => {\n const behavior = components[key];\n behavior.on(target);\n });\n});\n\nmodule.exports = uswds;\n","module.exports = (htmlDocument = document) => htmlDocument.activeElement;\n","const assign = require(\"object-assign\");\nconst Behavior = require(\"receptor/behavior\");\n\n/**\n * @name sequence\n * @param {...Function} seq an array of functions\n * @return { closure } callHooks\n */\n// We use a named function here because we want it to inherit its lexical scope\n// from the behavior props object, not from the module\nconst sequence = (...seq) =>\n function callHooks(target = document.body) {\n seq.forEach(method => {\n if (typeof this[method] === \"function\") {\n this[method].call(this, target);\n }\n });\n };\n\n/**\n * @name behavior\n * @param {object} events\n * @param {object?} props\n * @return {receptor.behavior}\n */\nmodule.exports = (events, props) =>\n Behavior(\n events,\n assign(\n {\n on: sequence(\"init\", \"add\"),\n off: sequence(\"teardown\", \"remove\")\n },\n props\n )\n );\n","const assign = require(\"object-assign\");\nconst { keymap } = require(\"receptor\");\nconst behavior = require(\"./behavior\");\nconst select = require(\"./select\");\nconst activeElement = require(\"./active-element\");\n\nconst FOCUSABLE =\n 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex=\"0\"], [contenteditable]';\n\nconst tabHandler = context => {\n const focusableElements = select(FOCUSABLE, context);\n const firstTabStop = focusableElements[0];\n const lastTabStop = focusableElements[focusableElements.length - 1];\n\n // Special rules for when the user is tabbing forward from the last focusable element,\n // or when tabbing backwards from the first focusable element\n function tabAhead(event) {\n if (activeElement() === lastTabStop) {\n event.preventDefault();\n firstTabStop.focus();\n }\n }\n\n function tabBack(event) {\n if (activeElement() === firstTabStop) {\n event.preventDefault();\n lastTabStop.focus();\n }\n }\n\n return {\n firstTabStop,\n lastTabStop,\n tabAhead,\n tabBack\n };\n};\n\nmodule.exports = (context, additionalKeyBindings = {}) => {\n const tabEventHandler = tabHandler(context);\n\n // TODO: In the future, loop over additional keybindings and pass an array\n // of functions, if necessary, to the map keys. Then people implementing\n // the focus trap could pass callbacks to fire when tabbing\n const keyMappings = keymap(\n assign(\n {\n Tab: tabEventHandler.tabAhead,\n \"Shift+Tab\": tabEventHandler.tabBack\n },\n additionalKeyBindings\n )\n );\n\n const focusTrap = behavior(\n {\n keydown: keyMappings\n },\n {\n init() {\n // TODO: is this desireable behavior? Should the trap always do this by default or should\n // the component getting decorated handle this?\n tabEventHandler.firstTabStop.focus();\n },\n update(isActive) {\n if (isActive) {\n this.on();\n } else {\n this.off();\n }\n }\n }\n );\n\n return focusTrap;\n};\n","// https://stackoverflow.com/a/7557433\nfunction isElementInViewport(\n el,\n win = window,\n docEl = document.documentElement\n) {\n const rect = el.getBoundingClientRect();\n\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (win.innerHeight || docEl.clientHeight) &&\n rect.right <= (win.innerWidth || docEl.clientWidth)\n );\n}\n\nmodule.exports = isElementInViewport;\n","/**\n * @name isElement\n * @desc returns whether or not the given argument is a DOM element.\n * @param {any} value\n * @return {boolean}\n */\nconst isElement = value =>\n value && typeof value === \"object\" && value.nodeType === 1;\n\n/**\n * @name select\n * @desc selects elements from the DOM by class selector or ID selector.\n * @param {string} selector - The selector to traverse the DOM with.\n * @param {Document|HTMLElement?} context - The context to traverse the DOM\n * in. If not provided, it defaults to the document.\n * @return {HTMLElement[]} - An array of DOM nodes or an empty array.\n */\nmodule.exports = (selector, context) => {\n if (typeof selector !== \"string\") {\n return [];\n }\n\n if (!context || !isElement(context)) {\n context = window.document; // eslint-disable-line no-param-reassign\n }\n\n const selection = context.querySelectorAll(selector);\n return Array.prototype.slice.call(selection);\n};\n","/**\n * Flips given INPUT elements between masked (hiding the field value) and unmasked\n * @param {Array.HTMLElement} fields - An array of INPUT elements\n * @param {Boolean} mask - Whether the mask should be applied, hiding the field value\n */\nmodule.exports = (field, mask) => {\n field.setAttribute(\"autocapitalize\", \"off\");\n field.setAttribute(\"autocorrect\", \"off\");\n field.setAttribute(\"type\", mask ? \"password\" : \"text\");\n};\n","const resolveIdRefs = require(\"resolve-id-refs\");\nconst toggleFieldMask = require(\"./toggle-field-mask\");\n\nconst CONTROLS = \"aria-controls\";\nconst PRESSED = \"aria-pressed\";\nconst SHOW_ATTR = \"data-show-text\";\nconst HIDE_ATTR = \"data-hide-text\";\n\n/**\n * Replace the word \"Show\" (or \"show\") with \"Hide\" (or \"hide\") in a string.\n * @param {string} showText\n * @return {strong} hideText\n */\nconst getHideText = showText =>\n showText.replace(/\\bShow\\b/i, show => `${show[0] === \"S\" ? \"H\" : \"h\"}ide`);\n\n/**\n * Component that decorates an HTML element with the ability to toggle the\n * masked state of an input field (like a password) when clicked.\n * The ids of the fields to be masked will be pulled directly from the button's\n * `aria-controls` attribute.\n *\n * @param {HTMLElement} el Parent element containing the fields to be masked\n * @return {boolean}\n */\nmodule.exports = el => {\n // this is the *target* state:\n // * if the element has the attr and it's !== \"true\", pressed is true\n // * otherwise, pressed is false\n const pressed =\n el.hasAttribute(PRESSED) && el.getAttribute(PRESSED) !== \"true\";\n\n const fields = resolveIdRefs(el.getAttribute(CONTROLS));\n fields.forEach(field => toggleFieldMask(field, pressed));\n\n if (!el.hasAttribute(SHOW_ATTR)) {\n el.setAttribute(SHOW_ATTR, el.textContent);\n }\n\n const showText = el.getAttribute(SHOW_ATTR);\n const hideText = el.getAttribute(HIDE_ATTR) || getHideText(showText);\n\n el.textContent = pressed ? showText : hideText; // eslint-disable-line no-param-reassign\n el.setAttribute(PRESSED, pressed);\n return pressed;\n};\n","const EXPANDED = \"aria-expanded\";\nconst CONTROLS = \"aria-controls\";\nconst HIDDEN = \"hidden\";\n\nmodule.exports = (button, expanded) => {\n let safeExpanded = expanded;\n\n if (typeof safeExpanded !== \"boolean\") {\n safeExpanded = button.getAttribute(EXPANDED) === \"false\";\n }\n\n button.setAttribute(EXPANDED, safeExpanded);\n\n const id = button.getAttribute(CONTROLS);\n const controls = document.getElementById(id);\n if (!controls) {\n throw new Error(`No toggle target found with id: \"${id}\"`);\n }\n\n if (safeExpanded) {\n controls.removeAttribute(HIDDEN);\n } else {\n controls.setAttribute(HIDDEN, \"\");\n }\n\n return safeExpanded;\n};\n","const dataset = require(\"elem-dataset\");\n\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst CHECKED = \"aria-checked\";\nconst CHECKED_CLASS = `${PREFIX}-checklist__item--checked`;\n\nmodule.exports = function validate(el) {\n const data = dataset(el);\n const id = data.validationElement;\n const checkList =\n id.charAt(0) === \"#\"\n ? document.querySelector(id)\n : document.getElementById(id);\n\n if (!checkList) {\n throw new Error(`No validation element found with id: \"${id}\"`);\n }\n\n Object.entries(data).forEach(([key, value]) => {\n if (key.startsWith(\"validate\")) {\n const validatorName = key.substr(\"validate\".length).toLowerCase();\n const validatorPattern = new RegExp(value);\n const validatorSelector = `[data-validator=\"${validatorName}\"]`;\n const validatorCheckbox = checkList.querySelector(validatorSelector);\n\n if (!validatorCheckbox) {\n throw new Error(`No validator checkbox found for: \"${validatorName}\"`);\n }\n\n const checked = validatorPattern.test(el.value);\n validatorCheckbox.classList.toggle(CHECKED_CLASS, checked);\n validatorCheckbox.setAttribute(CHECKED, checked);\n }\n });\n};\n"]}
|
1
|
+
{"version":3,"sources":["node_modules/browser-pack/_prelude.js","node_modules/classlist-polyfill/src/index.js","node_modules/domready/ready.js","node_modules/elem-dataset/dist/index.js","node_modules/element-closest/element-closest.js","node_modules/keyboardevent-key-polyfill/index.js","node_modules/lodash.debounce/index.js","node_modules/object-assign/index.js","node_modules/receptor/behavior/index.js","node_modules/receptor/compose/index.js","node_modules/receptor/delegate/index.js","node_modules/receptor/delegateAll/index.js","node_modules/receptor/ignore/index.js","node_modules/receptor/index.js","node_modules/receptor/keymap/index.js","node_modules/receptor/once/index.js","node_modules/resolve-id-refs/index.js","src/js/components/accordion.js","src/js/components/banner.js","src/js/components/character-count.js","src/js/components/combo-box.js","src/js/components/date-picker.js","src/js/components/date-range-picker.js","src/js/components/file-input.js","src/js/components/footer.js","src/js/components/index.js","src/js/components/navigation.js","src/js/components/password.js","src/js/components/search.js","src/js/components/skipnav.js","src/js/components/time-picker.js","src/js/components/tooltip.js","src/js/components/validator.js","src/js/config.js","src/js/events.js","src/js/polyfills/custom-event.js","src/js/polyfills/element-hidden.js","src/js/polyfills/index.js","src/js/polyfills/number-is-nan.js","src/js/start.js","src/js/utils/active-element.js","src/js/utils/behavior.js","src/js/utils/focus-trap.js","src/js/utils/is-in-viewport.js","src/js/utils/is-ios-device.js","src/js/utils/select.js","src/js/utils/toggle-field-mask.js","src/js/utils/toggle-form-input.js","src/js/utils/toggle.js","src/js/utils/validate-input.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","createMethod","_toggle","testElement","window","self","document","createElement","createElementNS","view","classListProp","protoProp","elemCtrProto","Element","objCtr","Object","strTrim","String","trim","this","replace","arrIndexOf","Array","indexOf","item","len","DOMEx","type","message","name","DOMException","checkTokenAndGetIndex","classList","token","test","ClassList","elem","trimmedClasses","getAttribute","classes","split","push","_updateClassName","setAttribute","toString","classListProto","classListGetter","contains","add","tokens","arguments","l","updated","remove","index","splice","toggle","force","result","method","join","defineProperty","classListPropDesc","get","enumerable","configurable","ex","undefined","number","__defineGetter__","original","DOMTokenList","prototype","definition","define","_typeof","amd","_listener","fns","doc","hack","documentElement","doScroll","domContentLoaded","loaded","readyState","addEventListener","removeEventListener","shift","fn","setTimeout","Boolean","dataset","aB","element","map","attributes","getter","value","setter","removeAttribute","j","prop","attribute","slice","charAt","toUpperCase","bind","set","ElementProto","matches","msMatchesSelector","mozMatchesSelector","webkitMatchesSelector","selector","elements","ownerDocument","querySelectorAll","closest","nodeType","parentNode","keyboardeventKeyPolyfill","polyfill","KeyboardEvent","proto","key","keys","which","keyCode","isArray","shiftKey","3","6","8","9","12","13","16","17","18","19","20","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","48","49","50","51","52","53","54","55","56","57","91","93","144","145","181","182","183","186","187","188","189","190","191","192","219","220","221","222","224","225","246","247","248","249","250","251","letter","fromCharCode","toLowerCase","now","root","Date","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","global","freeSelf","Function","objectToString","nativeMax","Math","max","nativeMin","min","isObject","isSymbol","toNumber","other","valueOf","isBinary","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","debounced","isInvoking","cancel","clearTimeout","flush","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","propertyIsEnumerable","assign","test1","getOwnPropertyNames","test2","test3","forEach","err","shouldUseNative","target","source","from","symbols","to","val","toObject","s","delegate","delegateAll","DELEGATE_PATTERN","popKey","obj","events","props","listeners","reduce","memo","handler","match","capture","passive","listener","_type","getListeners","concat","functions","some","event","compose","selectors","delegates","behavior","ignore","keymap","MODIFIERS","Alt","Control","Ctrl","Shift","hasModifiers","modifier","getEventKey","_key","wrapped","currentTarget","RE_TRIM","RE_SPLIT","str","ids","getElementById","id","querySelector","el","getAccordionButtons","accordion","select","BUTTON","filter","button","ACCORDION","toggleButton","expanded","safeExpanded","multiselectable","isElementInViewport","CLICK","PREFIX","prefix","EXPANDED","_defineProperty","preventDefault","scrollIntoView","init","show","hide","getButtons","HEADER","EXPANDED_CLASS","getCharacterCountElements","inputEl","characterCountEl","CHARACTER_COUNT","INPUT","messageEl","MESSAGE","updateCountMessage","currentLength","isOverLimit","difference","characters","guidance","newMessage","_getCharacterCountEle","maxlength","abs","MESSAGE_INVALID_CLASS","innerHTML","validationMessage","setCustomValidity","VALIDATION_MESSAGE","characterCount","input","changeElementValue","elementToChange","CustomEvent","bubbles","cancelable","detail","dispatchEvent","getComboBoxContext","comboBoxEl","COMBO_BOX","selectEl","SELECT","listEl","LIST","statusEl","STATUS","focusedOptionEl","LIST_OPTION_FOCUSED","selectedOptionEl","LIST_OPTION_SELECTED","toggleListBtnEl","TOGGLE_LIST_BUTTON","clearInputBtnEl","CLEAR_INPUT_BUTTON","isPristine","COMBO_BOX_PRISTINE_CLASS","disableFiltering","disable","_getComboBoxContext","hidden","disabled","enhanceComboBox","_comboBoxEl","enhanced","selectedOption","selectId","listId","assistiveHintID","additionalAttributes","defaultValue","placeholder","optionEl","SELECT_CLASS","hasAttribute","insertAdjacentHTML","INPUT_CLASS","CLEAR_INPUT_BUTTON_WRAPPER_CLASS","CLEAR_INPUT_BUTTON_CLASS","INPUT_BUTTON_SEPARATOR_CLASS","TOGGLE_LIST_BUTTON_WRAPPER_CLASS","TOGGLE_LIST_BUTTON_CLASS","LIST_CLASS","STATUS_CLASS","text","highlightOption","nextEl","optionBottom","_ref","skipFocus","preventScroll","_getComboBoxContext4","LIST_OPTION_FOCUSED_CLASS","offsetTop","offsetHeight","scrollTop","focus","generateDynamicRegExp","escapeRegExp","query","extras","find","m","$1","queryFilter","matcher","RegExp","displayList","selectedItemId","firstFoundId","_getComboBoxContext5","listOptionBaseId","inputValue","regex","optionId","itemToFocus","numOptions","optionHtml","option","LIST_OPTION_CLASS","tabindex","ariaSelected","LIST_OPTION_SELECTED_CLASS","noResults","hideList","_getComboBoxContext6","selectItem","listOptionEl","_getComboBoxContext7","textContent","resetSelection","_getComboBoxContext9","selectValue","handleDownFromInput","_getComboBoxContext12","nextOptionEl","LIST_OPTION","handleDownFromListOption","nextSibling","handleUpFromListOption","_getComboBoxContext14","previousSibling","listShown","COMBO_BOX_CLASS","comboBox","_behavior","_CLICK","_getComboBoxContext16","_getComboBoxContext15","_getComboBoxContext8","relatedTarget","_keydown","Escape","_getComboBoxContext11","Enter","_getComboBoxContext13","_getComboBoxContext10","completeSelection","ArrowDown","Down","ArrowUp","Up","Tab","Shift+Tab","enable","_getComboBoxContext2","processFocusableSelectors","_len","keepDateWithinMonth","dateToCheck","month","getMonth","setDate","year","date","newDate","setFullYear","today","day","getDate","getFullYear","startOfMonth","lastDayOfMonth","addDays","_date","numDays","getTime","subDays","addWeeks","numWeeks","startOfWeek","dayOfWeek","getDay","addMonths","numMonths","dateMonth","setMonth","subMonths","addYears","numYears","subYears","setYear","isSameYear","dateA","dateB","isSameMonth","isSameDay","keepDateBetweenMinAndMax","minDate","maxDate","isDateWithinMinAndMax","isDatesYearOutsideMinOrMax","parseDateString","dateString","_dateString$split2","monthStr","dayStr","yearStr","_dateString$split4","currentYear","parsed","lastDayOfTheMonth","adjustDate","INTERNAL_DATE_FORMAT","DEFAULT_EXTERNAL_DATE_FORMAT","_slicedToArray","Number","isNaN","pow","formatDate","padZeros","dateFormat","listToGridHtml","htmlArray","rowSize","grid","row","getDatePickerContext","datePickerEl","DATE_PICKER","internalInputEl","DATE_PICKER_INTERNAL_INPUT","externalInputEl","DATE_PICKER_EXTERNAL_INPUT","calendarEl","DATE_PICKER_CALENDAR","toggleBtnEl","DATE_PICKER_BUTTON","DATE_PICKER_STATUS","firstYearChunkEl","CALENDAR_YEAR","inputDate","selectedDate","calendarDate","rangeDate","defaultDate","_getDatePickerContext","isDateInputInvalid","dateStringParts","_dateStringParts$map2","checkDate","_getDatePickerContext3","isInvalid","validateDateInput","setCalendarValue","formattedDate","_getDatePickerContext6","parsedDate","renderCalendar","_dateToDisplay","_getDatePickerContext7","todaysDate","dateToDisplay","calendarWasHidden","focusedDate","focusedMonth","focusedYear","prevMonth","nextMonth","currentFormattedDate","firstOfMonth","prevButtonsDisabled","nextButtonsDisabled","rangeConclusionDate","rangeStartDate","rangeEndDate","withinRangeStartDate","withinRangeEndDate","monthLabel","MONTH_LABELS","days","dateToRender","CALENDAR_DATE_CLASS","isDisabled","isSelected","CALENDAR_DATE_PREVIOUS_MONTH_CLASS","CALENDAR_DATE_CURRENT_MONTH_CLASS","CALENDAR_DATE_NEXT_MONTH_CLASS","CALENDAR_DATE_SELECTED_CLASS","CALENDAR_DATE_TODAY_CLASS","CALENDAR_DATE_RANGE_DATE_CLASS","CALENDAR_DATE_RANGE_DATE_START_CLASS","CALENDAR_DATE_RANGE_DATE_END_CLASS","CALENDAR_DATE_WITHIN_RANGE_CLASS","CALENDAR_DATE_FOCUSED_CLASS","DAY_OF_WEEK_LABELS","generateDateHtml","datesHtml","newCalendar","cloneNode","style","top","CALENDAR_DATE_PICKER_CLASS","CALENDAR_ROW_CLASS","CALENDAR_CELL_CLASS","CALENDAR_CELL_CENTER_ITEMS_CLASS","CALENDAR_PREVIOUS_YEAR_CLASS","CALENDAR_PREVIOUS_MONTH_CLASS","CALENDAR_MONTH_LABEL_CLASS","CALENDAR_MONTH_SELECTION_CLASS","CALENDAR_YEAR_SELECTION_CLASS","CALENDAR_NEXT_MONTH_CLASS","CALENDAR_NEXT_YEAR_CLASS","CALENDAR_TABLE_CLASS","CALENDAR_DAY_OF_WEEK_CLASS","replaceChild","DATE_PICKER_ACTIVE_CLASS","statuses","hideCalendar","_getDatePickerContext12","updateCalendarIfVisible","_getDatePickerContext15","displayMonthSelection","monthToDisplay","_getDatePickerContext16","selectedMonth","months","monthToCheck","CALENDAR_MONTH_CLASS","CALENDAR_MONTH_FOCUSED_CLASS","CALENDAR_MONTH_SELECTED_CLASS","monthsHtml","CALENDAR_MONTH_PICKER_CLASS","displayYearSelection","yearToDisplay","_getDatePickerContext18","selectedYear","yearToChunk","prevYearChunkDisabled","nextYearChunkDisabled","years","yearIndex","CALENDAR_YEAR_CLASS","CALENDAR_YEAR_FOCUSED_CLASS","CALENDAR_YEAR_SELECTED_CLASS","yearsHtml","CALENDAR_YEAR_PICKER_CLASS","CALENDAR_PREVIOUS_YEAR_CHUNK_CLASS","CALENDAR_NEXT_YEAR_CHUNK_CLASS","handleEscapeFromCalendar","_getDatePickerContext22","adjustCalendar","adjustDateFn","_getDatePickerContext23","cappedDate","CALENDAR_DATE_FOCUSED","adjustMonthSelectionScreen","adjustMonthFn","monthEl","_getDatePickerContext24","currentDate","adjustedMonth","CALENDAR_MONTH_FOCUSED","adjustYearSelectionScreen","adjustYearFn","yearEl","_getDatePickerContext25","adjustedYear","CALENDAR_YEAR_FOCUSED","tabHandler","focusable","getFocusableContext","focusableElements","lastTabIndex","firstTabStop","lastTabStop","focusIndex","activeElement","isNotFound","isFirstTab","isLastTab","tabAhead","_getFocusableContext","tabBack","_getFocusableContext2","_datePickerEvents$mou","isIosDevice","DATE_PICKER_CLASS","DATE_PICKER_WRAPPER_CLASS","DATE_PICKER_INITIALIZED_CLASS","DATE_PICKER_INTERNAL_INPUT_CLASS","DATE_PICKER_EXTERNAL_INPUT_CLASS","DATE_PICKER_BUTTON_CLASS","DATE_PICKER_CALENDAR_CLASS","DATE_PICKER_STATUS_CLASS","CALENDAR_DATE","CALENDAR_DATE_CURRENT_MONTH","CALENDAR_PREVIOUS_YEAR","CALENDAR_PREVIOUS_MONTH","CALENDAR_NEXT_YEAR","CALENDAR_NEXT_MONTH","CALENDAR_YEAR_SELECTION","CALENDAR_MONTH_SELECTION","CALENDAR_MONTH","CALENDAR_PREVIOUS_YEAR_CHUNK","CALENDAR_NEXT_YEAR_CHUNK","CALENDAR_DATE_PICKER","CALENDAR_MONTH_PICKER","CALENDAR_YEAR_PICKER","DATE_PICKER_FOCUSABLE","MONTH_PICKER_FOCUSABLE","YEAR_PICKER_FOCUSABLE","handleUpFromDate","handleDownFromDate","handleLeftFromDate","handleRightFromDate","handleHomeFromDate","handleEndFromDate","handlePageDownFromDate","handlePageUpFromDate","handleShiftPageDownFromDate","handleShiftPageUpFromDate","handleUpFromMonth","handleDownFromMonth","handleLeftFromMonth","handleRightFromMonth","handleHomeFromMonth","handleEndFromMonth","handlePageDownFromMonth","handlePageUpFromMonth","handleUpFromYear","handleDownFromYear","handleLeftFromYear","handleRightFromYear","handleHomeFromYear","handleEndFromYear","handlePageUpFromYear","handlePageDownFromYear","datePickerTabEventHandler","monthPickerTabEventHandler","yearPickerTabEventHandler","datePickerEvents","_datePickerEvents","_getDatePickerContext14","calendarDateEl","_getDatePickerContext13","_getDatePickerContext17","_getDatePickerContext21","_buttonEl","_getDatePickerContext9","nextToFocus","_getDatePickerContext10","_getDatePickerContext8","_getDatePickerContext11","_getDatePickerContext19","_getDatePickerContext20","keydown","keydownKeyCode","Left","ArrowLeft","Right","ArrowRight","Home","End","PageDown","PageUp","Shift+PageDown","Shift+PageUp","keyMap","_focusout","_getDatePickerContext5","newValue","mousemove","dateEl","currentCalendarDate","hoverDate","focusMonth","focusYear","datePicker","calendarWrapper","tabIndex","appendChild","required","enhanceDatePicker","_getDatePickerContext2","getDateRangePickerContext","dateRangePickerEl","DATE_RANGE_PICKER","rangeStartEl","DATE_RANGE_PICKER_RANGE_START","rangeEndEl","DATE_RANGE_PICKER_RANGE_END","handleRangeStartUpdate","_getDateRangePickerCo","updatedDate","handleRangeEndUpdate","_getDateRangePickerCo2","DATE_RANGE_PICKER_CLASS","DATE_RANGE_PICKER_RANGE_START_CLASS","DATE_RANGE_PICKER_RANGE_END_CLASS","dateRangePicker","input change","_inputChange","_select2","rangeStart","rangeEnd","enhanceDateRangePicker","makeSafeForID","charCodeAt","removeOldPreviews","dropTarget","instructions","filePreviews","PREVIEW_CLASS","currentPreviewHeading","PREVIEW_HEADING_CLASS","currentErrorMessage","ACCEPTED_FILE_MESSAGE_CLASS","outerHTML","INVALID_FILE_CLASS","HIDDEN_CLASS","node","removeChild","DROPZONE_CLASS","DROPZONE","TARGET_CLASS","BOX_CLASS","INSTRUCTIONS_CLASS","DISABLED_CLASS","CHOOSE_CLASS","DRAG_TEXT_CLASS","DRAG_CLASS","LOADING_CLASS","GENERIC_PREVIEW_CLASS_NAME","GENERIC_PREVIEW_CLASS","PDF_PREVIEW_CLASS","WORD_PREVIEW_CLASS","VIDEO_PREVIEW_CLASS","EXCEL_PREVIEW_CLASS","SPACER_GIF","fileInput","fileInputEl","acceptsMultiple","fileInputParent","box","_buildFileInput","insertBefore","navigator","userAgent","acceptedFiles","errorMessage","allFilesAllowed","dataTransfer","files","file","stopPropagation","preventInvalidFiles","onchange","fileNames","filePreviewsHeading","reader","FileReader","fileName","onloadstart","imageId","previewImage","onloadend","src","readAsDataURL","_loop","handleChange","lastInnerWidth","debounce","HIDDEN","SCOPE","NAV","COLLAPSIBLE","resize","innerWidth","list","collapseEl","HIDE_MAX_WIDTH","DEBOUNCE_RATE","teardown","banner","footer","navigation","password","search","skipnav","tooltip","validator","timePicker","isActive","body","ACTIVE_CLASS","toggleNav","active","safeActive","TOGGLES","focusTrap","update","closeButton","CLOSE_BUTTON","menuButton","OPENERS","closer","getBoundingClientRect","width","onMenuClose","hideActiveNavDropdown","navActive","FocusTrap","NAV_LINKS","NAV_CONTROL","OVERLAY","CLOSERS","acc","btn","trapContainer","toggleFormInput","LINK","lastButton","FORM","toggleSearch","context","form","once","outline","parseTimeString","timeStr","minutes","_timeStr$split$map2","hours","mins","TIME_PICKER_CLASS","TIME_PICKER","FILTER_DATASET","apQueryFilter","hourQueryFilter","minuteQueryFilter","timePickerEl","initialInputEl","minute","hour24","minTime","maxTime","step","floor","_getTimeContext","hour12","ampm","display","transformTimePicker","addListenerMulti","eventNames","iLen","showToolTip","tooltipBody","tooltipTrigger","position","wrapper","setPositionClass","setPos","TOOLTIP_BODY_CLASS","positionTop","marginLeft","adjustHorizontalCenter","ADJUST_WIDTH_CLASS","marginBottom","adjustToEdgeY","offsetForBottomMargin","offsetForBottomPadding","positionBottom","marginTop","offsetForTopMargin","offsetForTopPadding","positionRight","adjustToEdgeX","leftOffset","bottom","tooltipHeight","offsetForTooltipBodyHeight","positionLeft","toolTipBodyWidth","tooltipWidth","offsetWidth","getComputedStyle","getPropertyValue","offsetLeft","VISIBLE_CLASS","TOOLTIP","TOOLTIP_TRIGGER_CLASS","TOOLTIP_CLASS","tooltipID","tooltipContent","additionalClasses","_setUpAttributes","random","classname","validate","keyup change","input[data-validation-element]","_params","params","evt","createEvent","initCustomEvent","elproto","HTMLElement","domready","uswds","components","on","sequence","seq","_this","Behavior","off","additionalKeyBindings","tabEventHandler","Esc","keyMappings","win","docEl","rect","left","innerHeight","clientHeight","right","clientWidth","platform","maxTouchPoints","MSStream","selection","field","mask","resolveIdRefs","toggleFieldMask","PRESSED","SHOW_ATTR","pressed","showText","hideText","controls","CHECKED_CLASS","data","validationElement","checkList","entries","_ref2","startsWith","validatorName","substr","validatorPattern","validatorSelector","validatorCheckbox","checked"],"mappings":"CAAA,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A3ByV,OAGFuvB,EAAa,GAAAlyB,OAAM0C,EAAN,6BAEnB9U,EAAOJ,QAAU,SAAkBoU,GACjC,IAAMuwB,EAAO3+B,EAAQoO,GACfF,EAAKywB,EAAKC,kBACVC,EACa,MAAjB3wB,EAAGrN,OAAO,GACNnG,SAASyT,cAAcD,GACvBxT,SAASuT,eAAeC,GAE9B,IAAK2wB,EACH,MAAM,IAAIhlC,MAAJ,yCAAA2S,OAAmD0B,EAAnD,MAGR/S,OAAO2jC,QAAQH,GAAM/zB,QAAQ,SAAAmK,GAAkB,IAAAgqB,EAAAvhB,EAAAzI,EAAA,GAAhB9S,EAAgB88B,EAAA,GAAXz+B,EAAWy+B,EAAA,GAC7C,GAAI98B,EAAI+8B,WAAW,YAAa,CAC9B,IAAMC,EAAgBh9B,EAAIi9B,OAAO,WAAWhlC,QAAQ0M,cAC9Cu4B,EAAmB,IAAIlpB,OAAO3V,GAC9B8+B,EAAiB,oBAAA5yB,OAAuByyB,EAAvB,MACjBI,EAAoBR,EAAU1wB,cAAcixB,GAElD,IAAKC,EACH,MAAM,IAAIxlC,MAAJ,qCAAA2S,OAA+CyyB,EAA/C,MAGR,IAAMK,EAAUH,EAAiB7iC,KAAK8R,EAAG9N,OACzC++B,EAAkBjjC,UAAUwB,OAAO8gC,EAAeY,GAClDD,EAAkBtiC,aA5BR,eA4B8BuiC","file":"uswds.min.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()","/*\n * classList.js: Cross-browser full element.classList implementation.\n * 1.1.20170427\n *\n * By Eli Grey, http://eligrey.com\n * License: Dedicated to the public domain.\n * See https://github.com/eligrey/classList.js/blob/master/LICENSE.md\n */\n\n/*global self, document, DOMException */\n\n/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */\n\nif (\"document\" in window.self) {\n\n// Full polyfill for browsers with no classList support\n// Including IE < Edge missing SVGElement.classList\nif (!(\"classList\" in document.createElement(\"_\")) \n\t|| document.createElementNS && !(\"classList\" in document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"))) {\n\n(function (view) {\n\n\"use strict\";\n\nif (!('Element' in view)) return;\n\nvar\n\t classListProp = \"classList\"\n\t, protoProp = \"prototype\"\n\t, elemCtrProto = view.Element[protoProp]\n\t, objCtr = Object\n\t, strTrim = String[protoProp].trim || function () {\n\t\treturn this.replace(/^\\s+|\\s+$/g, \"\");\n\t}\n\t, arrIndexOf = Array[protoProp].indexOf || function (item) {\n\t\tvar\n\t\t\t i = 0\n\t\t\t, len = this.length\n\t\t;\n\t\tfor (; i < len; i++) {\n\t\t\tif (i in this && this[i] === item) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}\n\t// Vendors: please allow content code to instantiate DOMExceptions\n\t, DOMEx = function (type, message) {\n\t\tthis.name = type;\n\t\tthis.code = DOMException[type];\n\t\tthis.message = message;\n\t}\n\t, checkTokenAndGetIndex = function (classList, token) {\n\t\tif (token === \"\") {\n\t\t\tthrow new DOMEx(\n\t\t\t\t \"SYNTAX_ERR\"\n\t\t\t\t, \"An invalid or illegal string was specified\"\n\t\t\t);\n\t\t}\n\t\tif (/\\s/.test(token)) {\n\t\t\tthrow new DOMEx(\n\t\t\t\t \"INVALID_CHARACTER_ERR\"\n\t\t\t\t, \"String contains an invalid character\"\n\t\t\t);\n\t\t}\n\t\treturn arrIndexOf.call(classList, token);\n\t}\n\t, ClassList = function (elem) {\n\t\tvar\n\t\t\t trimmedClasses = strTrim.call(elem.getAttribute(\"class\") || \"\")\n\t\t\t, classes = trimmedClasses ? trimmedClasses.split(/\\s+/) : []\n\t\t\t, i = 0\n\t\t\t, len = classes.length\n\t\t;\n\t\tfor (; i < len; i++) {\n\t\t\tthis.push(classes[i]);\n\t\t}\n\t\tthis._updateClassName = function () {\n\t\t\telem.setAttribute(\"class\", this.toString());\n\t\t};\n\t}\n\t, classListProto = ClassList[protoProp] = []\n\t, classListGetter = function () {\n\t\treturn new ClassList(this);\n\t}\n;\n// Most DOMException implementations don't allow calling DOMException's toString()\n// on non-DOMExceptions. Error's toString() is sufficient here.\nDOMEx[protoProp] = Error[protoProp];\nclassListProto.item = function (i) {\n\treturn this[i] || null;\n};\nclassListProto.contains = function (token) {\n\ttoken += \"\";\n\treturn checkTokenAndGetIndex(this, token) !== -1;\n};\nclassListProto.add = function () {\n\tvar\n\t\t tokens = arguments\n\t\t, i = 0\n\t\t, l = tokens.length\n\t\t, token\n\t\t, updated = false\n\t;\n\tdo {\n\t\ttoken = tokens[i] + \"\";\n\t\tif (checkTokenAndGetIndex(this, token) === -1) {\n\t\t\tthis.push(token);\n\t\t\tupdated = true;\n\t\t}\n\t}\n\twhile (++i < l);\n\n\tif (updated) {\n\t\tthis._updateClassName();\n\t}\n};\nclassListProto.remove = function () {\n\tvar\n\t\t tokens = arguments\n\t\t, i = 0\n\t\t, l = tokens.length\n\t\t, token\n\t\t, updated = false\n\t\t, index\n\t;\n\tdo {\n\t\ttoken = tokens[i] + \"\";\n\t\tindex = checkTokenAndGetIndex(this, token);\n\t\twhile (index !== -1) {\n\t\t\tthis.splice(index, 1);\n\t\t\tupdated = true;\n\t\t\tindex = checkTokenAndGetIndex(this, token);\n\t\t}\n\t}\n\twhile (++i < l);\n\n\tif (updated) {\n\t\tthis._updateClassName();\n\t}\n};\nclassListProto.toggle = function (token, force) {\n\ttoken += \"\";\n\n\tvar\n\t\t result = this.contains(token)\n\t\t, method = result ?\n\t\t\tforce !== true && \"remove\"\n\t\t:\n\t\t\tforce !== false && \"add\"\n\t;\n\n\tif (method) {\n\t\tthis[method](token);\n\t}\n\n\tif (force === true || force === false) {\n\t\treturn force;\n\t} else {\n\t\treturn !result;\n\t}\n};\nclassListProto.toString = function () {\n\treturn this.join(\" \");\n};\n\nif (objCtr.defineProperty) {\n\tvar classListPropDesc = {\n\t\t get: classListGetter\n\t\t, enumerable: true\n\t\t, configurable: true\n\t};\n\ttry {\n\t\tobjCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);\n\t} catch (ex) { // IE 8 doesn't support enumerable:true\n\t\t// adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36\n\t\t// modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected\n\t\tif (ex.number === undefined || ex.number === -0x7FF5EC54) {\n\t\t\tclassListPropDesc.enumerable = false;\n\t\t\tobjCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);\n\t\t}\n\t}\n} else if (objCtr[protoProp].__defineGetter__) {\n\telemCtrProto.__defineGetter__(classListProp, classListGetter);\n}\n\n}(window.self));\n\n}\n\n// There is full or partial native classList support, so just check if we need\n// to normalize the add/remove and toggle APIs.\n\n(function () {\n\t\"use strict\";\n\n\tvar testElement = document.createElement(\"_\");\n\n\ttestElement.classList.add(\"c1\", \"c2\");\n\n\t// Polyfill for IE 10/11 and Firefox <26, where classList.add and\n\t// classList.remove exist but support only one argument at a time.\n\tif (!testElement.classList.contains(\"c2\")) {\n\t\tvar createMethod = function(method) {\n\t\t\tvar original = DOMTokenList.prototype[method];\n\n\t\t\tDOMTokenList.prototype[method] = function(token) {\n\t\t\t\tvar i, len = arguments.length;\n\n\t\t\t\tfor (i = 0; i < len; i++) {\n\t\t\t\t\ttoken = arguments[i];\n\t\t\t\t\toriginal.call(this, token);\n\t\t\t\t}\n\t\t\t};\n\t\t};\n\t\tcreateMethod('add');\n\t\tcreateMethod('remove');\n\t}\n\n\ttestElement.classList.toggle(\"c3\", false);\n\n\t// Polyfill for IE 10 and Firefox <24, where classList.toggle does not\n\t// support the second argument.\n\tif (testElement.classList.contains(\"c3\")) {\n\t\tvar _toggle = DOMTokenList.prototype.toggle;\n\n\t\tDOMTokenList.prototype.toggle = function(token, force) {\n\t\t\tif (1 in arguments && !this.contains(token) === !force) {\n\t\t\t\treturn force;\n\t\t\t} else {\n\t\t\t\treturn _toggle.call(this, token);\n\t\t\t}\n\t\t};\n\n\t}\n\n\ttestElement = null;\n}());\n\n}\n","/*!\n * domready (c) Dustin Diaz 2014 - License MIT\n */\n!function (name, definition) {\n\n if (typeof module != 'undefined') module.exports = definition()\n else if (typeof define == 'function' && typeof define.amd == 'object') define(definition)\n else this[name] = definition()\n\n}('domready', function () {\n\n var fns = [], listener\n , doc = document\n , hack = doc.documentElement.doScroll\n , domContentLoaded = 'DOMContentLoaded'\n , loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState)\n\n\n if (!loaded)\n doc.addEventListener(domContentLoaded, listener = function () {\n doc.removeEventListener(domContentLoaded, listener)\n loaded = 1\n while (listener = fns.shift()) listener()\n })\n\n return function (fn) {\n loaded ? setTimeout(fn, 0) : fns.push(fn)\n }\n\n});\n","'use strict';\n\nfunction useNative() {\n var elem = document.createElement('div');\n elem.setAttribute('data-a-b', 'c');\n return Boolean(elem.dataset && elem.dataset.aB === 'c');\n}\n\nfunction nativeDataset(element) {\n return element.dataset;\n}\n\nmodule.exports = useNative() ? nativeDataset : function (element) {\n var map = {};\n var attributes = element.attributes;\n\n function getter() {\n return this.value;\n }\n\n function setter(name, value) {\n if (typeof value === 'undefined') {\n this.removeAttribute(name);\n } else {\n this.setAttribute(name, value);\n }\n }\n\n for (var i = 0, j = attributes.length; i < j; i++) {\n var attribute = attributes[i];\n\n if (attribute) {\n var name = attribute.name;\n\n if (name.indexOf('data-') === 0) {\n var prop = name.slice(5).replace(/-./g, function (u) {\n return u.charAt(1).toUpperCase();\n });\n var value = attribute.value;\n Object.defineProperty(map, prop, {\n enumerable: true,\n get: getter.bind({\n value: value || ''\n }),\n set: setter.bind(element, name)\n });\n }\n }\n }\n\n return map;\n};\n\n","// element-closest | CC0-1.0 | github.com/jonathantneal/closest\n\n(function (ElementProto) {\n\tif (typeof ElementProto.matches !== 'function') {\n\t\tElementProto.matches = ElementProto.msMatchesSelector || ElementProto.mozMatchesSelector || ElementProto.webkitMatchesSelector || function matches(selector) {\n\t\t\tvar element = this;\n\t\t\tvar elements = (element.document || element.ownerDocument).querySelectorAll(selector);\n\t\t\tvar index = 0;\n\n\t\t\twhile (elements[index] && elements[index] !== element) {\n\t\t\t\t++index;\n\t\t\t}\n\n\t\t\treturn Boolean(elements[index]);\n\t\t};\n\t}\n\n\tif (typeof ElementProto.closest !== 'function') {\n\t\tElementProto.closest = function closest(selector) {\n\t\t\tvar element = this;\n\n\t\t\twhile (element && element.nodeType === 1) {\n\t\t\t\tif (element.matches(selector)) {\n\t\t\t\t\treturn element;\n\t\t\t\t}\n\n\t\t\t\telement = element.parentNode;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t};\n\t}\n})(window.Element.prototype);\n","/* global define, KeyboardEvent, module */\n\n(function () {\n\n var keyboardeventKeyPolyfill = {\n polyfill: polyfill,\n keys: {\n 3: 'Cancel',\n 6: 'Help',\n 8: 'Backspace',\n 9: 'Tab',\n 12: 'Clear',\n 13: 'Enter',\n 16: 'Shift',\n 17: 'Control',\n 18: 'Alt',\n 19: 'Pause',\n 20: 'CapsLock',\n 27: 'Escape',\n 28: 'Convert',\n 29: 'NonConvert',\n 30: 'Accept',\n 31: 'ModeChange',\n 32: ' ',\n 33: 'PageUp',\n 34: 'PageDown',\n 35: 'End',\n 36: 'Home',\n 37: 'ArrowLeft',\n 38: 'ArrowUp',\n 39: 'ArrowRight',\n 40: 'ArrowDown',\n 41: 'Select',\n 42: 'Print',\n 43: 'Execute',\n 44: 'PrintScreen',\n 45: 'Insert',\n 46: 'Delete',\n 48: ['0', ')'],\n 49: ['1', '!'],\n 50: ['2', '@'],\n 51: ['3', '#'],\n 52: ['4', '$'],\n 53: ['5', '%'],\n 54: ['6', '^'],\n 55: ['7', '&'],\n 56: ['8', '*'],\n 57: ['9', '('],\n 91: 'OS',\n 93: 'ContextMenu',\n 144: 'NumLock',\n 145: 'ScrollLock',\n 181: 'VolumeMute',\n 182: 'VolumeDown',\n 183: 'VolumeUp',\n 186: [';', ':'],\n 187: ['=', '+'],\n 188: [',', '<'],\n 189: ['-', '_'],\n 190: ['.', '>'],\n 191: ['/', '?'],\n 192: ['`', '~'],\n 219: ['[', '{'],\n 220: ['\\\\', '|'],\n 221: [']', '}'],\n 222: [\"'\", '\"'],\n 224: 'Meta',\n 225: 'AltGraph',\n 246: 'Attn',\n 247: 'CrSel',\n 248: 'ExSel',\n 249: 'EraseEof',\n 250: 'Play',\n 251: 'ZoomOut'\n }\n };\n\n // Function keys (F1-24).\n var i;\n for (i = 1; i < 25; i++) {\n keyboardeventKeyPolyfill.keys[111 + i] = 'F' + i;\n }\n\n // Printable ASCII characters.\n var letter = '';\n for (i = 65; i < 91; i++) {\n letter = String.fromCharCode(i);\n keyboardeventKeyPolyfill.keys[i] = [letter.toLowerCase(), letter.toUpperCase()];\n }\n\n function polyfill () {\n if (!('KeyboardEvent' in window) ||\n 'key' in KeyboardEvent.prototype) {\n return false;\n }\n\n // Polyfill `key` on `KeyboardEvent`.\n var proto = {\n get: function (x) {\n var key = keyboardeventKeyPolyfill.keys[this.which || this.keyCode];\n\n if (Array.isArray(key)) {\n key = key[+this.shiftKey];\n }\n\n return key;\n }\n };\n Object.defineProperty(KeyboardEvent.prototype, 'key', proto);\n return proto;\n }\n\n if (typeof define === 'function' && define.amd) {\n define('keyboardevent-key-polyfill', keyboardeventKeyPolyfill);\n } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {\n module.exports = keyboardeventKeyPolyfill;\n } else if (window) {\n window.keyboardeventKeyPolyfill = keyboardeventKeyPolyfill;\n }\n\n})();\n","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","const assign = require('object-assign');\nconst delegate = require('../delegate');\nconst delegateAll = require('../delegateAll');\n\nconst DELEGATE_PATTERN = /^(.+):delegate\\((.+)\\)$/;\nconst SPACE = ' ';\n\nconst getListeners = function(type, handler) {\n var match = type.match(DELEGATE_PATTERN);\n var selector;\n if (match) {\n type = match[1];\n selector = match[2];\n }\n\n var options;\n if (typeof handler === 'object') {\n options = {\n capture: popKey(handler, 'capture'),\n passive: popKey(handler, 'passive')\n };\n }\n\n var listener = {\n selector: selector,\n delegate: (typeof handler === 'object')\n ? delegateAll(handler)\n : selector\n ? delegate(selector, handler)\n : handler,\n options: options\n };\n\n if (type.indexOf(SPACE) > -1) {\n return type.split(SPACE).map(function(_type) {\n return assign({type: _type}, listener);\n });\n } else {\n listener.type = type;\n return [listener];\n }\n};\n\nvar popKey = function(obj, key) {\n var value = obj[key];\n delete obj[key];\n return value;\n};\n\nmodule.exports = function behavior(events, props) {\n const listeners = Object.keys(events)\n .reduce(function(memo, type) {\n var listeners = getListeners(type, events[type]);\n return memo.concat(listeners);\n }, []);\n\n return assign({\n add: function addBehavior(element) {\n listeners.forEach(function(listener) {\n element.addEventListener(\n listener.type,\n listener.delegate,\n listener.options\n );\n });\n },\n remove: function removeBehavior(element) {\n listeners.forEach(function(listener) {\n element.removeEventListener(\n listener.type,\n listener.delegate,\n listener.options\n );\n });\n }\n }, props);\n};\n","module.exports = function compose(functions) {\n return function(e) {\n return functions.some(function(fn) {\n return fn.call(this, e) === false;\n }, this);\n };\n};\n","// polyfill Element.prototype.closest\nrequire('element-closest');\n\nmodule.exports = function delegate(selector, fn) {\n return function delegation(event) {\n var target = event.target.closest(selector);\n if (target) {\n return fn.call(target, event);\n }\n }\n};\n","const delegate = require('../delegate');\nconst compose = require('../compose');\n\nconst SPLAT = '*';\n\nmodule.exports = function delegateAll(selectors) {\n const keys = Object.keys(selectors)\n\n // XXX optimization: if there is only one handler and it applies to\n // all elements (the \"*\" CSS selector), then just return that\n // handler\n if (keys.length === 1 && keys[0] === SPLAT) {\n return selectors[SPLAT];\n }\n\n const delegates = keys.reduce(function(memo, selector) {\n memo.push(delegate(selector, selectors[selector]));\n return memo;\n }, []);\n return compose(delegates);\n};\n","module.exports = function ignore(element, fn) {\n return function ignorance(e) {\n if (element !== e.target && !element.contains(e.target)) {\n return fn.call(this, e);\n }\n };\n};\n","module.exports = {\n behavior: require('./behavior'),\n delegate: require('./delegate'),\n delegateAll: require('./delegateAll'),\n ignore: require('./ignore'),\n keymap: require('./keymap'),\n};\n","require('keyboardevent-key-polyfill');\n\n// these are the only relevant modifiers supported on all platforms,\n// according to MDN:\n// <https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState>\nconst MODIFIERS = {\n 'Alt': 'altKey',\n 'Control': 'ctrlKey',\n 'Ctrl': 'ctrlKey',\n 'Shift': 'shiftKey'\n};\n\nconst MODIFIER_SEPARATOR = '+';\n\nconst getEventKey = function(event, hasModifiers) {\n var key = event.key;\n if (hasModifiers) {\n for (var modifier in MODIFIERS) {\n if (event[MODIFIERS[modifier]] === true) {\n key = [modifier, key].join(MODIFIER_SEPARATOR);\n }\n }\n }\n return key;\n};\n\nmodule.exports = function keymap(keys) {\n const hasModifiers = Object.keys(keys).some(function(key) {\n return key.indexOf(MODIFIER_SEPARATOR) > -1;\n });\n return function(event) {\n var key = getEventKey(event, hasModifiers);\n return [key, key.toLowerCase()]\n .reduce(function(result, _key) {\n if (_key in keys) {\n result = keys[key].call(this, event);\n }\n return result;\n }, undefined);\n };\n};\n\nmodule.exports.MODIFIERS = MODIFIERS;\n","module.exports = function once(listener, options) {\n var wrapped = function wrappedOnce(e) {\n e.currentTarget.removeEventListener(e.type, wrapped, options);\n return listener.call(this, e);\n };\n return wrapped;\n};\n\n","'use strict';\n\nvar RE_TRIM = /(^\\s+)|(\\s+$)/g;\nvar RE_SPLIT = /\\s+/;\n\nvar trim = String.prototype.trim\n ? function(str) { return str.trim(); }\n : function(str) { return str.replace(RE_TRIM, ''); };\n\nvar queryById = function(id) {\n return this.querySelector('[id=\"' + id.replace(/\"/g, '\\\\\"') + '\"]');\n};\n\nmodule.exports = function resolveIds(ids, doc) {\n if (typeof ids !== 'string') {\n throw new Error('Expected a string but got ' + (typeof ids));\n }\n\n if (!doc) {\n doc = window.document;\n }\n\n var getElementById = doc.getElementById\n ? doc.getElementById.bind(doc)\n : queryById.bind(doc);\n\n ids = trim(ids).split(RE_SPLIT);\n\n // XXX we can short-circuit here because trimming and splitting a\n // string of just whitespace produces an array containing a single,\n // empty string\n if (ids.length === 1 && ids[0] === '') {\n return [];\n }\n\n return ids\n .map(function(id) {\n var el = getElementById(id);\n if (!el) {\n throw new Error('no element with id: \"' + id + '\"');\n }\n return el;\n });\n};\n","const select = require(\"../utils/select\");\nconst behavior = require(\"../utils/behavior\");\nconst toggle = require(\"../utils/toggle\");\nconst isElementInViewport = require(\"../utils/is-in-viewport\");\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst ACCORDION = `.${PREFIX}-accordion, .${PREFIX}-accordion--bordered`;\nconst BUTTON = `.${PREFIX}-accordion__button[aria-controls]`;\nconst EXPANDED = \"aria-expanded\";\nconst MULTISELECTABLE = \"aria-multiselectable\";\n\n/**\n * Get an Array of button elements belonging directly to the given\n * accordion element.\n * @param {HTMLElement} accordion\n * @return {array<HTMLButtonElement>}\n */\nconst getAccordionButtons = (accordion) => {\n const buttons = select(BUTTON, accordion);\n\n return buttons.filter((button) => button.closest(ACCORDION) === accordion);\n};\n\n/**\n * Toggle a button's \"pressed\" state, optionally providing a target\n * state.\n *\n * @param {HTMLButtonElement} button\n * @param {boolean?} expanded If no state is provided, the current\n * state will be toggled (from false to true, and vice-versa).\n * @return {boolean} the resulting state\n */\nconst toggleButton = (button, expanded) => {\n const accordion = button.closest(ACCORDION);\n let safeExpanded = expanded;\n\n if (!accordion) {\n throw new Error(`${BUTTON} is missing outer ${ACCORDION}`);\n }\n\n safeExpanded = toggle(button, expanded);\n\n // XXX multiselectable is opt-in, to preserve legacy behavior\n const multiselectable = accordion.getAttribute(MULTISELECTABLE) === \"true\";\n\n if (safeExpanded && !multiselectable) {\n getAccordionButtons(accordion).forEach((other) => {\n if (other !== button) {\n toggle(other, false);\n }\n });\n }\n};\n\n/**\n * @param {HTMLButtonElement} button\n * @return {boolean} true\n */\nconst showButton = (button) => toggleButton(button, true);\n\n/**\n * @param {HTMLButtonElement} button\n * @return {boolean} false\n */\nconst hideButton = (button) => toggleButton(button, false);\n\nconst accordion = behavior(\n {\n [CLICK]: {\n [BUTTON](event) {\n event.preventDefault();\n\n toggleButton(this);\n\n if (this.getAttribute(EXPANDED) === \"true\") {\n // We were just expanded, but if another accordion was also just\n // collapsed, we may no longer be in the viewport. This ensures\n // that we are still visible, so the user isn't confused.\n if (!isElementInViewport(this)) this.scrollIntoView();\n }\n },\n },\n },\n {\n init(root) {\n select(BUTTON, root).forEach((button) => {\n const expanded = button.getAttribute(EXPANDED) === \"true\";\n toggleButton(button, expanded);\n });\n },\n ACCORDION,\n BUTTON,\n show: showButton,\n hide: hideButton,\n toggle: toggleButton,\n getButtons: getAccordionButtons,\n }\n);\n\nmodule.exports = accordion;\n","const behavior = require(\"../utils/behavior\");\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst HEADER = `.${PREFIX}-banner__header`;\nconst EXPANDED_CLASS = `${PREFIX}-banner__header--expanded`;\n\nconst toggleBanner = function toggleEl(event) {\n event.preventDefault();\n this.closest(HEADER).classList.toggle(EXPANDED_CLASS);\n};\n\nmodule.exports = behavior({\n [CLICK]: {\n [`${HEADER} [aria-controls]`]: toggleBanner,\n },\n});\n","const select = require(\"../utils/select\");\nconst behavior = require(\"../utils/behavior\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst CHARACTER_COUNT = `.${PREFIX}-character-count`;\nconst INPUT = `.${PREFIX}-character-count__field`;\nconst MESSAGE = `.${PREFIX}-character-count__message`;\nconst VALIDATION_MESSAGE = \"The content is too long.\";\nconst MESSAGE_INVALID_CLASS = `${PREFIX}-character-count__message--invalid`;\n\n/**\n * The elements within the character count.\n * @typedef {Object} CharacterCountElements\n * @property {HTMLDivElement} characterCountEl\n * @property {HTMLSpanElement} messageEl\n */\n\n/**\n * Returns the root and message element\n * for an character count input\n *\n * @param {HTMLInputElement|HTMLTextAreaElement} inputEl The character count input element\n * @returns {CharacterCountElements} elements The root and message element.\n */\nconst getCharacterCountElements = (inputEl) => {\n const characterCountEl = inputEl.closest(CHARACTER_COUNT);\n\n if (!characterCountEl) {\n throw new Error(`${INPUT} is missing outer ${CHARACTER_COUNT}`);\n }\n\n const messageEl = characterCountEl.querySelector(MESSAGE);\n\n if (!messageEl) {\n throw new Error(`${CHARACTER_COUNT} is missing inner ${MESSAGE}`);\n }\n\n return { characterCountEl, messageEl };\n};\n\n/**\n * Update the character count component\n *\n * @param {HTMLInputElement|HTMLTextAreaElement} inputEl The character count input element\n */\nconst updateCountMessage = (inputEl) => {\n const { characterCountEl, messageEl } = getCharacterCountElements(inputEl);\n\n const maxlength = parseInt(\n characterCountEl.getAttribute(\"data-maxlength\"),\n 10\n );\n\n if (!maxlength) return;\n\n let newMessage = \"\";\n const currentLength = inputEl.value.length;\n const isOverLimit = currentLength && currentLength > maxlength;\n\n if (currentLength === 0) {\n newMessage = `${maxlength} characters allowed`;\n } else {\n const difference = Math.abs(maxlength - currentLength);\n const characters = `character${difference === 1 ? \"\" : \"s\"}`;\n const guidance = isOverLimit ? \"over limit\" : \"left\";\n\n newMessage = `${difference} ${characters} ${guidance}`;\n }\n\n messageEl.classList.toggle(MESSAGE_INVALID_CLASS, isOverLimit);\n messageEl.innerHTML = newMessage;\n\n if (isOverLimit && !inputEl.validationMessage) {\n inputEl.setCustomValidity(VALIDATION_MESSAGE);\n }\n\n if (!isOverLimit && inputEl.validationMessage === VALIDATION_MESSAGE) {\n inputEl.setCustomValidity(\"\");\n }\n};\n\n/**\n * Setup the character count component\n *\n * @param {HTMLInputElement|HTMLTextAreaElement} inputEl The character count input element\n */\nconst setupAttributes = (inputEl) => {\n const { characterCountEl } = getCharacterCountElements(inputEl);\n\n const maxlength = inputEl.getAttribute(\"maxlength\");\n\n if (!maxlength) return;\n\n inputEl.removeAttribute(\"maxlength\");\n characterCountEl.setAttribute(\"data-maxlength\", maxlength);\n};\n\nconst characterCount = behavior(\n {\n input: {\n [INPUT]() {\n updateCountMessage(this);\n },\n },\n },\n {\n init(root) {\n select(INPUT, root).forEach((input) => {\n setupAttributes(input);\n updateCountMessage(input);\n });\n },\n MESSAGE_INVALID_CLASS,\n VALIDATION_MESSAGE,\n }\n);\n\nmodule.exports = characterCount;\n","const keymap = require(\"receptor/keymap\");\nconst select = require(\"../utils/select\");\nconst behavior = require(\"../utils/behavior\");\nconst { prefix: PREFIX } = require(\"../config\");\nconst { CLICK } = require(\"../events\");\n\nconst COMBO_BOX_CLASS = `${PREFIX}-combo-box`;\nconst COMBO_BOX_PRISTINE_CLASS = `${COMBO_BOX_CLASS}--pristine`;\nconst SELECT_CLASS = `${COMBO_BOX_CLASS}__select`;\nconst INPUT_CLASS = `${COMBO_BOX_CLASS}__input`;\nconst CLEAR_INPUT_BUTTON_CLASS = `${COMBO_BOX_CLASS}__clear-input`;\nconst CLEAR_INPUT_BUTTON_WRAPPER_CLASS = `${CLEAR_INPUT_BUTTON_CLASS}__wrapper`;\nconst INPUT_BUTTON_SEPARATOR_CLASS = `${COMBO_BOX_CLASS}__input-button-separator`;\nconst TOGGLE_LIST_BUTTON_CLASS = `${COMBO_BOX_CLASS}__toggle-list`;\nconst TOGGLE_LIST_BUTTON_WRAPPER_CLASS = `${TOGGLE_LIST_BUTTON_CLASS}__wrapper`;\nconst LIST_CLASS = `${COMBO_BOX_CLASS}__list`;\nconst LIST_OPTION_CLASS = `${COMBO_BOX_CLASS}__list-option`;\nconst LIST_OPTION_FOCUSED_CLASS = `${LIST_OPTION_CLASS}--focused`;\nconst LIST_OPTION_SELECTED_CLASS = `${LIST_OPTION_CLASS}--selected`;\nconst STATUS_CLASS = `${COMBO_BOX_CLASS}__status`;\n\nconst COMBO_BOX = `.${COMBO_BOX_CLASS}`;\nconst SELECT = `.${SELECT_CLASS}`;\nconst INPUT = `.${INPUT_CLASS}`;\nconst CLEAR_INPUT_BUTTON = `.${CLEAR_INPUT_BUTTON_CLASS}`;\nconst TOGGLE_LIST_BUTTON = `.${TOGGLE_LIST_BUTTON_CLASS}`;\nconst LIST = `.${LIST_CLASS}`;\nconst LIST_OPTION = `.${LIST_OPTION_CLASS}`;\nconst LIST_OPTION_FOCUSED = `.${LIST_OPTION_FOCUSED_CLASS}`;\nconst LIST_OPTION_SELECTED = `.${LIST_OPTION_SELECTED_CLASS}`;\nconst STATUS = `.${STATUS_CLASS}`;\n\nconst DEFAULT_FILTER = \".*{{query}}.*\";\n\nconst noop = () => {};\n\n/**\n * set the value of the element and dispatch a change event\n *\n * @param {HTMLInputElement|HTMLSelectElement} el The element to update\n * @param {string} value The new value of the element\n */\nconst changeElementValue = (el, value = \"\") => {\n const elementToChange = el;\n elementToChange.value = value;\n\n const event = new CustomEvent(\"change\", {\n bubbles: true,\n cancelable: true,\n detail: { value },\n });\n elementToChange.dispatchEvent(event);\n};\n\n/**\n * The elements within the combo box.\n * @typedef {Object} ComboBoxContext\n * @property {HTMLElement} comboBoxEl\n * @property {HTMLSelectElement} selectEl\n * @property {HTMLInputElement} inputEl\n * @property {HTMLUListElement} listEl\n * @property {HTMLDivElement} statusEl\n * @property {HTMLLIElement} focusedOptionEl\n * @property {HTMLLIElement} selectedOptionEl\n * @property {HTMLButtonElement} toggleListBtnEl\n * @property {HTMLButtonElement} clearInputBtnEl\n * @property {boolean} isPristine\n * @property {boolean} disableFiltering\n */\n\n/**\n * Get an object of elements belonging directly to the given\n * combo box component.\n *\n * @param {HTMLElement} el the element within the combo box\n * @returns {ComboBoxContext} elements\n */\nconst getComboBoxContext = (el) => {\n const comboBoxEl = el.closest(COMBO_BOX);\n\n if (!comboBoxEl) {\n throw new Error(`Element is missing outer ${COMBO_BOX}`);\n }\n\n const selectEl = comboBoxEl.querySelector(SELECT);\n const inputEl = comboBoxEl.querySelector(INPUT);\n const listEl = comboBoxEl.querySelector(LIST);\n const statusEl = comboBoxEl.querySelector(STATUS);\n const focusedOptionEl = comboBoxEl.querySelector(LIST_OPTION_FOCUSED);\n const selectedOptionEl = comboBoxEl.querySelector(LIST_OPTION_SELECTED);\n const toggleListBtnEl = comboBoxEl.querySelector(TOGGLE_LIST_BUTTON);\n const clearInputBtnEl = comboBoxEl.querySelector(CLEAR_INPUT_BUTTON);\n\n const isPristine = comboBoxEl.classList.contains(COMBO_BOX_PRISTINE_CLASS);\n const disableFiltering = comboBoxEl.dataset.disableFiltering === \"true\";\n\n return {\n comboBoxEl,\n selectEl,\n inputEl,\n listEl,\n statusEl,\n focusedOptionEl,\n selectedOptionEl,\n toggleListBtnEl,\n clearInputBtnEl,\n isPristine,\n disableFiltering,\n };\n};\n\n/**\n * Disable the combo-box component\n *\n * @param {HTMLInputElement} el An element within the combo box component\n */\nconst disable = (el) => {\n const { inputEl, toggleListBtnEl, clearInputBtnEl } = getComboBoxContext(el);\n\n clearInputBtnEl.hidden = true;\n clearInputBtnEl.disabled = true;\n toggleListBtnEl.disabled = true;\n inputEl.disabled = true;\n};\n\n/**\n * Enable the combo-box component\n *\n * @param {HTMLInputElement} el An element within the combo box component\n */\nconst enable = (el) => {\n const { inputEl, toggleListBtnEl, clearInputBtnEl } = getComboBoxContext(el);\n\n clearInputBtnEl.hidden = false;\n clearInputBtnEl.disabled = false;\n toggleListBtnEl.disabled = false;\n inputEl.disabled = false;\n};\n\n/**\n * Enhance a select element into a combo box component.\n *\n * @param {HTMLElement} _comboBoxEl The initial element of the combo box component\n */\nconst enhanceComboBox = (_comboBoxEl) => {\n const comboBoxEl = _comboBoxEl.closest(COMBO_BOX);\n\n if (comboBoxEl.dataset.enhanced) return;\n\n const selectEl = comboBoxEl.querySelector(\"select\");\n\n if (!selectEl) {\n throw new Error(`${COMBO_BOX} is missing inner select`);\n }\n\n const selectId = selectEl.id;\n const listId = `${selectId}--list`;\n const assistiveHintID = `${selectId}--assistiveHint`;\n const additionalAttributes = [];\n const defaultValue = comboBoxEl.dataset.defaultValue;\n const placeholder = comboBoxEl.dataset.placeholder;\n let selectedOption;\n\n if (placeholder) {\n additionalAttributes.push(`placeholder=\"${placeholder}\"`);\n }\n\n if (defaultValue) {\n for (let i = 0, len = selectEl.options.length; i < len; i += 1) {\n const optionEl = selectEl.options[i];\n\n if (optionEl.value === defaultValue) {\n selectedOption = optionEl;\n break;\n }\n }\n }\n\n selectEl.setAttribute(\"aria-hidden\", \"true\");\n selectEl.setAttribute(\"tabindex\", \"-1\");\n selectEl.classList.add(\"usa-sr-only\", SELECT_CLASS);\n selectEl.id = \"\";\n selectEl.value = \"\";\n\n [\"required\", \"aria-label\", \"aria-labelledby\"].forEach((name) => {\n if (selectEl.hasAttribute(name)) {\n const value = selectEl.getAttribute(name);\n additionalAttributes.push(`${name}=\"${value}\"`);\n selectEl.removeAttribute(name);\n }\n });\n\n comboBoxEl.insertAdjacentHTML(\n \"beforeend\",\n [\n `<input\n aria-owns=\"${listId}\"\n aria-autocomplete=\"list\"\n aria-describedby=\"${assistiveHintID}\"\n aria-expanded=\"false\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n id=\"${selectId}\"\n class=\"${INPUT_CLASS}\"\n type=\"text\"\n role=\"combobox\"\n ${additionalAttributes.join(\" \")}\n >`,\n `<span class=\"${CLEAR_INPUT_BUTTON_WRAPPER_CLASS}\" tabindex=\"-1\">\n <button type=\"button\" class=\"${CLEAR_INPUT_BUTTON_CLASS}\" aria-label=\"Clear the select contents\"> </button>\n </span>`,\n `<span class=\"${INPUT_BUTTON_SEPARATOR_CLASS}\"> </span>`,\n `<span class=\"${TOGGLE_LIST_BUTTON_WRAPPER_CLASS}\" tabindex=\"-1\">\n <button type=\"button\" tabindex=\"-1\" class=\"${TOGGLE_LIST_BUTTON_CLASS}\" aria-label=\"Toggle the dropdown list\"> </button>\n </span>`,\n `<ul\n tabindex=\"-1\"\n id=\"${listId}\"\n class=\"${LIST_CLASS}\"\n role=\"listbox\"\n hidden>\n </ul>`,\n `<div class=\"${STATUS_CLASS} usa-sr-only\" role=\"status\"></div>`,\n `<span id=\"${assistiveHintID}\" class=\"usa-sr-only\">\n When autocomplete results are available use up and down arrows to review and enter to select.\n Touch device users, explore by touch or with swipe gestures.\n </span>`,\n ].join(\"\")\n );\n\n if (selectedOption) {\n const { inputEl } = getComboBoxContext(comboBoxEl);\n changeElementValue(selectEl, selectedOption.value);\n changeElementValue(inputEl, selectedOption.text);\n comboBoxEl.classList.add(COMBO_BOX_PRISTINE_CLASS);\n }\n\n if (selectEl.disabled) {\n disable(comboBoxEl);\n selectEl.disabled = false;\n }\n\n comboBoxEl.dataset.enhanced = \"true\";\n};\n\n/**\n * Manage the focused element within the list options when\n * navigating via keyboard.\n *\n * @param {HTMLElement} el An anchor element within the combo box component\n * @param {HTMLElement} nextEl An element within the combo box component\n * @param {Object} options options\n * @param {boolean} options.skipFocus skip focus of highlighted item\n * @param {boolean} options.preventScroll should skip procedure to scroll to element\n */\nconst highlightOption = (el, nextEl, { skipFocus, preventScroll } = {}) => {\n const { inputEl, listEl, focusedOptionEl } = getComboBoxContext(el);\n\n if (focusedOptionEl) {\n focusedOptionEl.classList.remove(LIST_OPTION_FOCUSED_CLASS);\n focusedOptionEl.setAttribute(\"tabIndex\", \"-1\");\n }\n\n if (nextEl) {\n inputEl.setAttribute(\"aria-activedescendant\", nextEl.id);\n nextEl.setAttribute(\"tabIndex\", \"0\");\n nextEl.classList.add(LIST_OPTION_FOCUSED_CLASS);\n\n if (!preventScroll) {\n const optionBottom = nextEl.offsetTop + nextEl.offsetHeight;\n const currentBottom = listEl.scrollTop + listEl.offsetHeight;\n\n if (optionBottom > currentBottom) {\n listEl.scrollTop = optionBottom - listEl.offsetHeight;\n }\n\n if (nextEl.offsetTop < listEl.scrollTop) {\n listEl.scrollTop = nextEl.offsetTop;\n }\n }\n\n if (!skipFocus) {\n nextEl.focus({ preventScroll });\n }\n } else {\n inputEl.setAttribute(\"aria-activedescendant\", \"\");\n inputEl.focus();\n }\n};\n\n/**\n * Generate a dynamic regular expression based off of a replaceable and possibly filtered value.\n *\n * @param {string} el An element within the combo box component\n * @param {string} query The value to use in the regular expression\n * @param {object} extras An object of regular expressions to replace and filter the query\n */\nconst generateDynamicRegExp = (filter, query = \"\", extras = {}) => {\n const escapeRegExp = (text) => {\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, \"\\\\$&\");\n };\n\n let find = filter.replace(/{{(.*?)}}/g, (m, $1) => {\n const key = $1.trim();\n const queryFilter = extras[key];\n if (key !== \"query\" && queryFilter) {\n const matcher = new RegExp(queryFilter, \"i\");\n const matches = query.match(matcher);\n\n if (matches) {\n return escapeRegExp(matches[1]);\n }\n\n return \"\";\n }\n return escapeRegExp(query);\n });\n\n find = \"^(?:\" + find + \")$\";\n\n return new RegExp(find, \"i\");\n};\n\n/**\n * Display the option list of a combo box component.\n *\n * @param {HTMLElement} el An element within the combo box component\n */\nconst displayList = (el) => {\n const {\n comboBoxEl,\n selectEl,\n inputEl,\n listEl,\n statusEl,\n isPristine,\n disableFiltering,\n } = getComboBoxContext(el);\n let selectedItemId;\n let firstFoundId;\n\n const listOptionBaseId = `${listEl.id}--option-`;\n\n const inputValue = (inputEl.value || \"\").toLowerCase();\n const filter = comboBoxEl.dataset.filter || DEFAULT_FILTER;\n const regex = generateDynamicRegExp(filter, inputValue, comboBoxEl.dataset);\n\n const options = [];\n for (let i = 0, len = selectEl.options.length; i < len; i += 1) {\n const optionEl = selectEl.options[i];\n const optionId = `${listOptionBaseId}${options.length}`;\n\n if (\n optionEl.value &&\n (disableFiltering ||\n isPristine ||\n !inputValue ||\n regex.test(optionEl.text))\n ) {\n if (selectEl.value && optionEl.value === selectEl.value) {\n selectedItemId = optionId;\n }\n\n if (disableFiltering && !firstFoundId && regex.test(optionEl.text)) {\n firstFoundId = optionId;\n }\n\n options.push(optionEl);\n }\n }\n\n const numOptions = options.length;\n const optionHtml = options\n .map((option, index) => {\n const optionId = `${listOptionBaseId}${index}`;\n const classes = [LIST_OPTION_CLASS];\n let tabindex = \"-1\";\n let ariaSelected = \"false\";\n\n if (optionId === selectedItemId) {\n classes.push(LIST_OPTION_SELECTED_CLASS, LIST_OPTION_FOCUSED_CLASS);\n tabindex = \"0\";\n ariaSelected = \"true\";\n }\n\n if (!selectedItemId && index === 0) {\n classes.push(LIST_OPTION_FOCUSED_CLASS);\n tabindex = \"0\";\n }\n\n return `<li\n aria-selected=\"false\"\n aria-setsize=\"${options.length}\"\n aria-posinset=\"${index + 1}\"\n aria-selected=\"${ariaSelected}\"\n id=\"${optionId}\"\n class=\"${classes.join(\" \")}\"\n tabindex=\"${tabindex}\"\n role=\"option\"\n data-value=\"${option.value}\"\n >${option.text}</li>`;\n })\n .join(\"\");\n\n const noResults = `<li class=\"${LIST_OPTION_CLASS}--no-results\">No results found</li>`;\n\n listEl.hidden = false;\n listEl.innerHTML = numOptions ? optionHtml : noResults;\n\n inputEl.setAttribute(\"aria-expanded\", \"true\");\n\n statusEl.innerHTML = numOptions\n ? `${numOptions} result${numOptions > 1 ? \"s\" : \"\"} available.`\n : \"No results.\";\n\n let itemToFocus;\n\n if (isPristine && selectedItemId) {\n itemToFocus = listEl.querySelector(\"#\" + selectedItemId);\n } else if (disableFiltering && firstFoundId) {\n itemToFocus = listEl.querySelector(\"#\" + firstFoundId);\n }\n\n if (itemToFocus) {\n highlightOption(listEl, itemToFocus, {\n skipFocus: true,\n });\n }\n};\n\n/**\n * Hide the option list of a combo box component.\n *\n * @param {HTMLElement} el An element within the combo box component\n */\nconst hideList = (el) => {\n const { inputEl, listEl, statusEl, focusedOptionEl } = getComboBoxContext(el);\n\n statusEl.innerHTML = \"\";\n\n inputEl.setAttribute(\"aria-expanded\", \"false\");\n inputEl.setAttribute(\"aria-activedescendant\", \"\");\n\n if (focusedOptionEl) {\n focusedOptionEl.classList.remove(LIST_OPTION_FOCUSED_CLASS);\n }\n\n listEl.scrollTop = 0;\n listEl.hidden = true;\n};\n\n/**\n * Select an option list of the combo box component.\n *\n * @param {HTMLElement} listOptionEl The list option being selected\n */\nconst selectItem = (listOptionEl) => {\n const { comboBoxEl, selectEl, inputEl } = getComboBoxContext(listOptionEl);\n\n changeElementValue(selectEl, listOptionEl.dataset.value);\n changeElementValue(inputEl, listOptionEl.textContent);\n comboBoxEl.classList.add(COMBO_BOX_PRISTINE_CLASS);\n hideList(comboBoxEl);\n inputEl.focus();\n};\n\n/**\n * Clear the input of the combo box\n *\n * @param {HTMLButtonElement} clearButtonEl The clear input button\n */\nconst clearInput = (clearButtonEl) => {\n const { comboBoxEl, listEl, selectEl, inputEl } = getComboBoxContext(\n clearButtonEl\n );\n const listShown = !listEl.hidden;\n\n if (selectEl.value) changeElementValue(selectEl);\n if (inputEl.value) changeElementValue(inputEl);\n comboBoxEl.classList.remove(COMBO_BOX_PRISTINE_CLASS);\n\n if (listShown) displayList(comboBoxEl);\n inputEl.focus();\n};\n\n/**\n * Reset the select based off of currently set select value\n *\n * @param {HTMLElement} el An element within the combo box component\n */\nconst resetSelection = (el) => {\n const { comboBoxEl, selectEl, inputEl } = getComboBoxContext(el);\n\n const selectValue = selectEl.value;\n const inputValue = (inputEl.value || \"\").toLowerCase();\n\n if (selectValue) {\n for (let i = 0, len = selectEl.options.length; i < len; i += 1) {\n const optionEl = selectEl.options[i];\n if (optionEl.value === selectValue) {\n if (inputValue !== optionEl.text) {\n changeElementValue(inputEl, optionEl.text);\n }\n comboBoxEl.classList.add(COMBO_BOX_PRISTINE_CLASS);\n return;\n }\n }\n }\n\n if (inputValue) {\n changeElementValue(inputEl);\n }\n};\n\n/**\n * Select an option list of the combo box component based off of\n * having a current focused list option or\n * having test that completely matches a list option.\n * Otherwise it clears the input and select.\n *\n * @param {HTMLElement} el An element within the combo box component\n */\nconst completeSelection = (el) => {\n const { comboBoxEl, selectEl, inputEl, statusEl } = getComboBoxContext(el);\n\n statusEl.textContent = \"\";\n\n const inputValue = (inputEl.value || \"\").toLowerCase();\n\n if (inputValue) {\n for (let i = 0, len = selectEl.options.length; i < len; i += 1) {\n const optionEl = selectEl.options[i];\n if (optionEl.text.toLowerCase() === inputValue) {\n changeElementValue(selectEl, optionEl.value);\n changeElementValue(inputEl, optionEl.text);\n comboBoxEl.classList.add(COMBO_BOX_PRISTINE_CLASS);\n return;\n }\n }\n }\n\n resetSelection(comboBoxEl);\n};\n\n/**\n * Handle the escape event within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleEscape = (event) => {\n const { comboBoxEl, inputEl } = getComboBoxContext(event.target);\n\n hideList(comboBoxEl);\n resetSelection(comboBoxEl);\n inputEl.focus();\n};\n\n/**\n * Handle the down event within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleDownFromInput = (event) => {\n const { comboBoxEl, listEl } = getComboBoxContext(event.target);\n\n if (listEl.hidden) {\n displayList(comboBoxEl);\n }\n\n let nextOptionEl =\n listEl.querySelector(LIST_OPTION_FOCUSED) ||\n listEl.querySelector(LIST_OPTION);\n\n if (nextOptionEl) {\n highlightOption(comboBoxEl, nextOptionEl);\n }\n\n event.preventDefault();\n};\n\n/**\n * Handle the enter event from an input element within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleEnterFromInput = (event) => {\n const { comboBoxEl, listEl } = getComboBoxContext(event.target);\n const listShown = !listEl.hidden;\n\n completeSelection(comboBoxEl);\n\n if (listShown) {\n hideList(comboBoxEl);\n }\n\n event.preventDefault();\n};\n\n/**\n * Handle the down event within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleDownFromListOption = (event) => {\n const focusedOptionEl = event.target;\n const nextOptionEl = focusedOptionEl.nextSibling;\n\n if (nextOptionEl) {\n highlightOption(focusedOptionEl, nextOptionEl);\n }\n\n event.preventDefault();\n};\n\n/**\n * Handle the tab event from an list option element within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleTabFromListOption = (event) => {\n selectItem(event.target);\n event.preventDefault();\n};\n\n/**\n * Handle the enter event from list option within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleEnterFromListOption = (event) => {\n selectItem(event.target);\n event.preventDefault();\n};\n\n/**\n * Handle the up event from list option within the combo box component.\n *\n * @param {KeyboardEvent} event An event within the combo box component\n */\nconst handleUpFromListOption = (event) => {\n const { comboBoxEl, listEl, focusedOptionEl } = getComboBoxContext(\n event.target\n );\n const nextOptionEl = focusedOptionEl && focusedOptionEl.previousSibling;\n const listShown = !listEl.hidden;\n\n highlightOption(comboBoxEl, nextOptionEl);\n\n if (listShown) {\n event.preventDefault();\n }\n\n if (!nextOptionEl) {\n hideList(comboBoxEl);\n }\n};\n\n/**\n * Select list option on the mousemove event.\n *\n * @param {MouseEvent} event The mousemove event\n * @param {HTMLLIElement} listOptionEl An element within the combo box component\n */\nconst handleMousemove = (listOptionEl) => {\n const isCurrentlyFocused = listOptionEl.classList.contains(\n LIST_OPTION_FOCUSED_CLASS\n );\n\n if (isCurrentlyFocused) return;\n\n highlightOption(listOptionEl, listOptionEl, {\n preventScroll: true,\n });\n};\n\n/**\n * Toggle the list when the button is clicked\n *\n * @param {HTMLElement} el An element within the combo box component\n */\nconst toggleList = (el) => {\n const { comboBoxEl, listEl, inputEl } = getComboBoxContext(el);\n\n if (listEl.hidden) {\n displayList(comboBoxEl);\n } else {\n hideList(comboBoxEl);\n }\n\n inputEl.focus();\n};\n\n/**\n * Handle click from input\n *\n * @param {HTMLInputElement} el An element within the combo box component\n */\nconst handleClickFromInput = (el) => {\n const { comboBoxEl, listEl } = getComboBoxContext(el);\n\n if (listEl.hidden) {\n displayList(comboBoxEl);\n }\n};\n\nconst comboBox = behavior(\n {\n [CLICK]: {\n [INPUT]() {\n if (this.disabled) return;\n handleClickFromInput(this);\n },\n [TOGGLE_LIST_BUTTON]() {\n if (this.disabled) return;\n toggleList(this);\n },\n [LIST_OPTION]() {\n if (this.disabled) return;\n selectItem(this);\n },\n [CLEAR_INPUT_BUTTON]() {\n if (this.disabled) return;\n clearInput(this);\n },\n },\n focusout: {\n [COMBO_BOX](event) {\n if (!this.contains(event.relatedTarget)) {\n resetSelection(this);\n hideList(this);\n }\n },\n },\n keydown: {\n [COMBO_BOX]: keymap({\n Escape: handleEscape,\n }),\n [INPUT]: keymap({\n Enter: handleEnterFromInput,\n ArrowDown: handleDownFromInput,\n Down: handleDownFromInput,\n }),\n [LIST_OPTION]: keymap({\n ArrowUp: handleUpFromListOption,\n Up: handleUpFromListOption,\n ArrowDown: handleDownFromListOption,\n Down: handleDownFromListOption,\n Enter: handleEnterFromListOption,\n Tab: handleTabFromListOption,\n \"Shift+Tab\": noop,\n }),\n },\n input: {\n [INPUT]() {\n const comboBoxEl = this.closest(COMBO_BOX);\n comboBoxEl.classList.remove(COMBO_BOX_PRISTINE_CLASS);\n displayList(this);\n },\n },\n mousemove: {\n [LIST_OPTION]() {\n handleMousemove(this);\n },\n },\n },\n {\n init(root) {\n select(COMBO_BOX, root).forEach((comboBoxEl) => {\n enhanceComboBox(comboBoxEl);\n });\n },\n getComboBoxContext,\n enhanceComboBox,\n generateDynamicRegExp,\n disable,\n enable,\n displayList,\n hideList,\n COMBO_BOX_CLASS,\n }\n);\n\nmodule.exports = comboBox;\n","const keymap = require(\"receptor/keymap\");\nconst behavior = require(\"../utils/behavior\");\nconst select = require(\"../utils/select\");\nconst { prefix: PREFIX } = require(\"../config\");\nconst { CLICK } = require(\"../events\");\nconst activeElement = require(\"../utils/active-element\");\nconst isIosDevice = require(\"../utils/is-ios-device\");\n\nconst DATE_PICKER_CLASS = `${PREFIX}-date-picker`;\nconst DATE_PICKER_WRAPPER_CLASS = `${DATE_PICKER_CLASS}__wrapper`;\nconst DATE_PICKER_INITIALIZED_CLASS = `${DATE_PICKER_CLASS}--initialized`;\nconst DATE_PICKER_ACTIVE_CLASS = `${DATE_PICKER_CLASS}--active`;\nconst DATE_PICKER_INTERNAL_INPUT_CLASS = `${DATE_PICKER_CLASS}__internal-input`;\nconst DATE_PICKER_EXTERNAL_INPUT_CLASS = `${DATE_PICKER_CLASS}__external-input`;\nconst DATE_PICKER_BUTTON_CLASS = `${DATE_PICKER_CLASS}__button`;\nconst DATE_PICKER_CALENDAR_CLASS = `${DATE_PICKER_CLASS}__calendar`;\nconst DATE_PICKER_STATUS_CLASS = `${DATE_PICKER_CLASS}__status`;\nconst CALENDAR_DATE_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__date`;\n\nconst CALENDAR_DATE_FOCUSED_CLASS = `${CALENDAR_DATE_CLASS}--focused`;\nconst CALENDAR_DATE_SELECTED_CLASS = `${CALENDAR_DATE_CLASS}--selected`;\nconst CALENDAR_DATE_PREVIOUS_MONTH_CLASS = `${CALENDAR_DATE_CLASS}--previous-month`;\nconst CALENDAR_DATE_CURRENT_MONTH_CLASS = `${CALENDAR_DATE_CLASS}--current-month`;\nconst CALENDAR_DATE_NEXT_MONTH_CLASS = `${CALENDAR_DATE_CLASS}--next-month`;\nconst CALENDAR_DATE_RANGE_DATE_CLASS = `${CALENDAR_DATE_CLASS}--range-date`;\nconst CALENDAR_DATE_TODAY_CLASS = `${CALENDAR_DATE_CLASS}--today`;\nconst CALENDAR_DATE_RANGE_DATE_START_CLASS = `${CALENDAR_DATE_CLASS}--range-date-start`;\nconst CALENDAR_DATE_RANGE_DATE_END_CLASS = `${CALENDAR_DATE_CLASS}--range-date-end`;\nconst CALENDAR_DATE_WITHIN_RANGE_CLASS = `${CALENDAR_DATE_CLASS}--within-range`;\nconst CALENDAR_PREVIOUS_YEAR_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__previous-year`;\nconst CALENDAR_PREVIOUS_MONTH_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__previous-month`;\nconst CALENDAR_NEXT_YEAR_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__next-year`;\nconst CALENDAR_NEXT_MONTH_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__next-month`;\nconst CALENDAR_MONTH_SELECTION_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__month-selection`;\nconst CALENDAR_YEAR_SELECTION_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__year-selection`;\nconst CALENDAR_MONTH_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__month`;\nconst CALENDAR_MONTH_FOCUSED_CLASS = `${CALENDAR_MONTH_CLASS}--focused`;\nconst CALENDAR_MONTH_SELECTED_CLASS = `${CALENDAR_MONTH_CLASS}--selected`;\nconst CALENDAR_YEAR_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__year`;\nconst CALENDAR_YEAR_FOCUSED_CLASS = `${CALENDAR_YEAR_CLASS}--focused`;\nconst CALENDAR_YEAR_SELECTED_CLASS = `${CALENDAR_YEAR_CLASS}--selected`;\nconst CALENDAR_PREVIOUS_YEAR_CHUNK_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__previous-year-chunk`;\nconst CALENDAR_NEXT_YEAR_CHUNK_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__next-year-chunk`;\nconst CALENDAR_DATE_PICKER_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__date-picker`;\nconst CALENDAR_MONTH_PICKER_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__month-picker`;\nconst CALENDAR_YEAR_PICKER_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__year-picker`;\nconst CALENDAR_TABLE_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__table`;\nconst CALENDAR_ROW_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__row`;\nconst CALENDAR_CELL_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__cell`;\nconst CALENDAR_CELL_CENTER_ITEMS_CLASS = `${CALENDAR_CELL_CLASS}--center-items`;\nconst CALENDAR_MONTH_LABEL_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__month-label`;\nconst CALENDAR_DAY_OF_WEEK_CLASS = `${DATE_PICKER_CALENDAR_CLASS}__day-of-week`;\n\nconst DATE_PICKER = `.${DATE_PICKER_CLASS}`;\nconst DATE_PICKER_BUTTON = `.${DATE_PICKER_BUTTON_CLASS}`;\nconst DATE_PICKER_INTERNAL_INPUT = `.${DATE_PICKER_INTERNAL_INPUT_CLASS}`;\nconst DATE_PICKER_EXTERNAL_INPUT = `.${DATE_PICKER_EXTERNAL_INPUT_CLASS}`;\nconst DATE_PICKER_CALENDAR = `.${DATE_PICKER_CALENDAR_CLASS}`;\nconst DATE_PICKER_STATUS = `.${DATE_PICKER_STATUS_CLASS}`;\nconst CALENDAR_DATE = `.${CALENDAR_DATE_CLASS}`;\nconst CALENDAR_DATE_FOCUSED = `.${CALENDAR_DATE_FOCUSED_CLASS}`;\nconst CALENDAR_DATE_CURRENT_MONTH = `.${CALENDAR_DATE_CURRENT_MONTH_CLASS}`;\nconst CALENDAR_PREVIOUS_YEAR = `.${CALENDAR_PREVIOUS_YEAR_CLASS}`;\nconst CALENDAR_PREVIOUS_MONTH = `.${CALENDAR_PREVIOUS_MONTH_CLASS}`;\nconst CALENDAR_NEXT_YEAR = `.${CALENDAR_NEXT_YEAR_CLASS}`;\nconst CALENDAR_NEXT_MONTH = `.${CALENDAR_NEXT_MONTH_CLASS}`;\nconst CALENDAR_YEAR_SELECTION = `.${CALENDAR_YEAR_SELECTION_CLASS}`;\nconst CALENDAR_MONTH_SELECTION = `.${CALENDAR_MONTH_SELECTION_CLASS}`;\nconst CALENDAR_MONTH = `.${CALENDAR_MONTH_CLASS}`;\nconst CALENDAR_YEAR = `.${CALENDAR_YEAR_CLASS}`;\nconst CALENDAR_PREVIOUS_YEAR_CHUNK = `.${CALENDAR_PREVIOUS_YEAR_CHUNK_CLASS}`;\nconst CALENDAR_NEXT_YEAR_CHUNK = `.${CALENDAR_NEXT_YEAR_CHUNK_CLASS}`;\nconst CALENDAR_DATE_PICKER = `.${CALENDAR_DATE_PICKER_CLASS}`;\nconst CALENDAR_MONTH_PICKER = `.${CALENDAR_MONTH_PICKER_CLASS}`;\nconst CALENDAR_YEAR_PICKER = `.${CALENDAR_YEAR_PICKER_CLASS}`;\nconst CALENDAR_MONTH_FOCUSED = `.${CALENDAR_MONTH_FOCUSED_CLASS}`;\nconst CALENDAR_YEAR_FOCUSED = `.${CALENDAR_YEAR_FOCUSED_CLASS}`;\n\nconst VALIDATION_MESSAGE = \"Please enter a valid date\";\n\nconst MONTH_LABELS = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n];\n\nconst DAY_OF_WEEK_LABELS = [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n];\n\nconst ENTER_KEYCODE = 13;\n\nconst YEAR_CHUNK = 12;\n\nconst DEFAULT_MIN_DATE = \"0000-01-01\";\nconst DEFAULT_EXTERNAL_DATE_FORMAT = \"MM/DD/YYYY\";\nconst INTERNAL_DATE_FORMAT = \"YYYY-MM-DD\";\n\nconst NOT_DISABLED_SELECTOR = \":not([disabled])\";\n\nconst processFocusableSelectors = (...selectors) =>\n selectors.map((query) => query + NOT_DISABLED_SELECTOR).join(\", \");\n\nconst DATE_PICKER_FOCUSABLE = processFocusableSelectors(\n CALENDAR_PREVIOUS_YEAR,\n CALENDAR_PREVIOUS_MONTH,\n CALENDAR_YEAR_SELECTION,\n CALENDAR_MONTH_SELECTION,\n CALENDAR_NEXT_YEAR,\n CALENDAR_NEXT_MONTH,\n CALENDAR_DATE_FOCUSED\n);\n\nconst MONTH_PICKER_FOCUSABLE = processFocusableSelectors(\n CALENDAR_MONTH_FOCUSED\n);\n\nconst YEAR_PICKER_FOCUSABLE = processFocusableSelectors(\n CALENDAR_PREVIOUS_YEAR_CHUNK,\n CALENDAR_NEXT_YEAR_CHUNK,\n CALENDAR_YEAR_FOCUSED\n);\n\n// #region Date Manipulation Functions\n\n/**\n * Keep date within month. Month would only be over by 1 to 3 days\n *\n * @param {Date} dateToCheck the date object to check\n * @param {number} month the correct month\n * @returns {Date} the date, corrected if needed\n */\nconst keepDateWithinMonth = (dateToCheck, month) => {\n if (month !== dateToCheck.getMonth()) {\n dateToCheck.setDate(0);\n }\n\n return dateToCheck;\n};\n\n/**\n * Set date from month day year\n *\n * @param {number} year the year to set\n * @param {number} month the month to set (zero-indexed)\n * @param {number} date the date to set\n * @returns {Date} the set date\n */\nconst setDate = (year, month, date) => {\n const newDate = new Date(0);\n newDate.setFullYear(year, month, date);\n return newDate;\n};\n\n/**\n * todays date\n *\n * @returns {Date} todays date\n */\nconst today = () => {\n const newDate = new Date();\n const day = newDate.getDate();\n const month = newDate.getMonth();\n const year = newDate.getFullYear();\n return setDate(year, month, day);\n};\n\n/**\n * Set date to first day of the month\n *\n * @param {number} date the date to adjust\n * @returns {Date} the adjusted date\n */\nconst startOfMonth = (date) => {\n const newDate = new Date(0);\n newDate.setFullYear(date.getFullYear(), date.getMonth(), 1);\n return newDate;\n};\n\n/**\n * Set date to last day of the month\n *\n * @param {number} date the date to adjust\n * @returns {Date} the adjusted date\n */\nconst lastDayOfMonth = (date) => {\n const newDate = new Date(0);\n newDate.setFullYear(date.getFullYear(), date.getMonth() + 1, 0);\n return newDate;\n};\n\n/**\n * Add days to date\n *\n * @param {Date} _date the date to adjust\n * @param {number} numDays the difference in days\n * @returns {Date} the adjusted date\n */\nconst addDays = (_date, numDays) => {\n const newDate = new Date(_date.getTime());\n newDate.setDate(newDate.getDate() + numDays);\n return newDate;\n};\n\n/**\n * Subtract days from date\n *\n * @param {Date} _date the date to adjust\n * @param {number} numDays the difference in days\n * @returns {Date} the adjusted date\n */\nconst subDays = (_date, numDays) => addDays(_date, -numDays);\n\n/**\n * Add weeks to date\n *\n * @param {Date} _date the date to adjust\n * @param {number} numWeeks the difference in weeks\n * @returns {Date} the adjusted date\n */\nconst addWeeks = (_date, numWeeks) => addDays(_date, numWeeks * 7);\n\n/**\n * Subtract weeks from date\n *\n * @param {Date} _date the date to adjust\n * @param {number} numWeeks the difference in weeks\n * @returns {Date} the adjusted date\n */\nconst subWeeks = (_date, numWeeks) => addWeeks(_date, -numWeeks);\n\n/**\n * Set date to the start of the week (Sunday)\n *\n * @param {Date} _date the date to adjust\n * @returns {Date} the adjusted date\n */\nconst startOfWeek = (_date) => {\n const dayOfWeek = _date.getDay();\n return subDays(_date, dayOfWeek);\n};\n\n/**\n * Set date to the end of the week (Saturday)\n *\n * @param {Date} _date the date to adjust\n * @param {number} numWeeks the difference in weeks\n * @returns {Date} the adjusted date\n */\nconst endOfWeek = (_date) => {\n const dayOfWeek = _date.getDay();\n return addDays(_date, 6 - dayOfWeek);\n};\n\n/**\n * Add months to date and keep date within month\n *\n * @param {Date} _date the date to adjust\n * @param {number} numMonths the difference in months\n * @returns {Date} the adjusted date\n */\nconst addMonths = (_date, numMonths) => {\n const newDate = new Date(_date.getTime());\n\n const dateMonth = (newDate.getMonth() + 12 + numMonths) % 12;\n newDate.setMonth(newDate.getMonth() + numMonths);\n keepDateWithinMonth(newDate, dateMonth);\n\n return newDate;\n};\n\n/**\n * Subtract months from date\n *\n * @param {Date} _date the date to adjust\n * @param {number} numMonths the difference in months\n * @returns {Date} the adjusted date\n */\nconst subMonths = (_date, numMonths) => addMonths(_date, -numMonths);\n\n/**\n * Add years to date and keep date within month\n *\n * @param {Date} _date the date to adjust\n * @param {number} numYears the difference in years\n * @returns {Date} the adjusted date\n */\nconst addYears = (_date, numYears) => addMonths(_date, numYears * 12);\n\n/**\n * Subtract years from date\n *\n * @param {Date} _date the date to adjust\n * @param {number} numYears the difference in years\n * @returns {Date} the adjusted date\n */\nconst subYears = (_date, numYears) => addYears(_date, -numYears);\n\n/**\n * Set months of date\n *\n * @param {Date} _date the date to adjust\n * @param {number} month zero-indexed month to set\n * @returns {Date} the adjusted date\n */\nconst setMonth = (_date, month) => {\n const newDate = new Date(_date.getTime());\n\n newDate.setMonth(month);\n keepDateWithinMonth(newDate, month);\n\n return newDate;\n};\n\n/**\n * Set year of date\n *\n * @param {Date} _date the date to adjust\n * @param {number} year the year to set\n * @returns {Date} the adjusted date\n */\nconst setYear = (_date, year) => {\n const newDate = new Date(_date.getTime());\n\n const month = newDate.getMonth();\n newDate.setFullYear(year);\n keepDateWithinMonth(newDate, month);\n\n return newDate;\n};\n\n/**\n * Return the earliest date\n *\n * @param {Date} dateA date to compare\n * @param {Date} dateB date to compare\n * @returns {Date} the earliest date\n */\nconst min = (dateA, dateB) => {\n let newDate = dateA;\n\n if (dateB < dateA) {\n newDate = dateB;\n }\n\n return new Date(newDate.getTime());\n};\n\n/**\n * Return the latest date\n *\n * @param {Date} dateA date to compare\n * @param {Date} dateB date to compare\n * @returns {Date} the latest date\n */\nconst max = (dateA, dateB) => {\n let newDate = dateA;\n\n if (dateB > dateA) {\n newDate = dateB;\n }\n\n return new Date(newDate.getTime());\n};\n\n/**\n * Check if dates are the in the same year\n *\n * @param {Date} dateA date to compare\n * @param {Date} dateB date to compare\n * @returns {boolean} are dates in the same year\n */\nconst isSameYear = (dateA, dateB) => {\n return dateA && dateB && dateA.getFullYear() === dateB.getFullYear();\n};\n\n/**\n * Check if dates are the in the same month\n *\n * @param {Date} dateA date to compare\n * @param {Date} dateB date to compare\n * @returns {boolean} are dates in the same month\n */\nconst isSameMonth = (dateA, dateB) => {\n return isSameYear(dateA, dateB) && dateA.getMonth() === dateB.getMonth();\n};\n\n/**\n * Check if dates are the same date\n *\n * @param {Date} dateA the date to compare\n * @param {Date} dateA the date to compare\n * @returns {boolean} are dates the same date\n */\nconst isSameDay = (dateA, dateB) => {\n return isSameMonth(dateA, dateB) && dateA.getDate() === dateB.getDate();\n};\n\n/**\n * return a new date within minimum and maximum date\n *\n * @param {Date} date date to check\n * @param {Date} minDate minimum date to allow\n * @param {Date} maxDate maximum date to allow\n * @returns {Date} the date between min and max\n */\nconst keepDateBetweenMinAndMax = (date, minDate, maxDate) => {\n let newDate = date;\n\n if (date < minDate) {\n newDate = minDate;\n } else if (maxDate && date > maxDate) {\n newDate = maxDate;\n }\n\n return new Date(newDate.getTime());\n};\n\n/**\n * Check if dates is valid.\n *\n * @param {Date} date date to check\n * @param {Date} minDate minimum date to allow\n * @param {Date} maxDate maximum date to allow\n * @return {boolean} is there a day within the month within min and max dates\n */\nconst isDateWithinMinAndMax = (date, minDate, maxDate) =>\n date >= minDate && (!maxDate || date <= maxDate);\n\n/**\n * Check if dates month is invalid.\n *\n * @param {Date} date date to check\n * @param {Date} minDate minimum date to allow\n * @param {Date} maxDate maximum date to allow\n * @return {boolean} is the month outside min or max dates\n */\nconst isDatesMonthOutsideMinOrMax = (date, minDate, maxDate) => {\n return (\n lastDayOfMonth(date) < minDate || (maxDate && startOfMonth(date) > maxDate)\n );\n};\n\n/**\n * Check if dates year is invalid.\n *\n * @param {Date} date date to check\n * @param {Date} minDate minimum date to allow\n * @param {Date} maxDate maximum date to allow\n * @return {boolean} is the month outside min or max dates\n */\nconst isDatesYearOutsideMinOrMax = (date, minDate, maxDate) => {\n return (\n lastDayOfMonth(setMonth(date, 11)) < minDate ||\n (maxDate && startOfMonth(setMonth(date, 0)) > maxDate)\n );\n};\n\n/**\n * Parse a date with format M-D-YY\n *\n * @param {string} dateString the date string to parse\n * @param {string} dateFormat the format of the date string\n * @param {boolean} adjustDate should the date be adjusted\n * @returns {Date} the parsed date\n */\nconst parseDateString = (\n dateString,\n dateFormat = INTERNAL_DATE_FORMAT,\n adjustDate = false\n) => {\n let date;\n let month;\n let day;\n let year;\n let parsed;\n\n if (dateString) {\n let monthStr, dayStr, yearStr;\n\n if (dateFormat === DEFAULT_EXTERNAL_DATE_FORMAT) {\n [monthStr, dayStr, yearStr] = dateString.split(\"/\");\n } else {\n [yearStr, monthStr, dayStr] = dateString.split(\"-\");\n }\n\n if (yearStr) {\n parsed = parseInt(yearStr, 10);\n if (!Number.isNaN(parsed)) {\n year = parsed;\n if (adjustDate) {\n year = Math.max(0, year);\n if (yearStr.length < 3) {\n const currentYear = today().getFullYear();\n const currentYearStub =\n currentYear - (currentYear % 10 ** yearStr.length);\n year = currentYearStub + parsed;\n }\n }\n }\n }\n\n if (monthStr) {\n parsed = parseInt(monthStr, 10);\n if (!Number.isNaN(parsed)) {\n month = parsed;\n if (adjustDate) {\n month = Math.max(1, month);\n month = Math.min(12, month);\n }\n }\n }\n\n if (month && dayStr && year != null) {\n parsed = parseInt(dayStr, 10);\n if (!Number.isNaN(parsed)) {\n day = parsed;\n if (adjustDate) {\n const lastDayOfTheMonth = setDate(year, month, 0).getDate();\n day = Math.max(1, day);\n day = Math.min(lastDayOfTheMonth, day);\n }\n }\n }\n\n if (month && day && year != null) {\n date = setDate(year, month - 1, day);\n }\n }\n\n return date;\n};\n\n/**\n * Format a date to format MM-DD-YYYY\n *\n * @param {Date} date the date to format\n * @param {string} dateFormat the format of the date string\n * @returns {string} the formatted date string\n */\nconst formatDate = (date, dateFormat = INTERNAL_DATE_FORMAT) => {\n const padZeros = (value, length) => {\n return `0000${value}`.slice(-length);\n };\n\n const month = date.getMonth() + 1;\n const day = date.getDate();\n const year = date.getFullYear();\n\n if (dateFormat === DEFAULT_EXTERNAL_DATE_FORMAT) {\n return [padZeros(month, 2), padZeros(day, 2), padZeros(year, 4)].join(\"/\");\n }\n\n return [padZeros(year, 4), padZeros(month, 2), padZeros(day, 2)].join(\"-\");\n};\n\n// #endregion Date Manipulation Functions\n\n/**\n * Create a grid string from an array of html strings\n *\n * @param {string[]} htmlArray the array of html items\n * @param {number} rowSize the length of a row\n * @returns {string} the grid string\n */\nconst listToGridHtml = (htmlArray, rowSize) => {\n const grid = [];\n let row = [];\n\n let i = 0;\n while (i < htmlArray.length) {\n row = [];\n while (i < htmlArray.length && row.length < rowSize) {\n row.push(`<td>${htmlArray[i]}</td>`);\n i += 1;\n }\n grid.push(`<tr>${row.join(\"\")}</tr>`);\n }\n\n return grid.join(\"\");\n};\n\n/**\n * set the value of the element and dispatch a change event\n *\n * @param {HTMLInputElement} el The element to update\n * @param {string} value The new value of the element\n */\nconst changeElementValue = (el, value = \"\") => {\n const elementToChange = el;\n elementToChange.value = value;\n\n const event = new CustomEvent(\"change\", {\n bubbles: true,\n cancelable: true,\n detail: { value },\n });\n elementToChange.dispatchEvent(event);\n};\n\n/**\n * The properties and elements within the date picker.\n * @typedef {Object} DatePickerContext\n * @property {HTMLDivElement} calendarEl\n * @property {HTMLElement} datePickerEl\n * @property {HTMLInputElement} internalInputEl\n * @property {HTMLInputElement} externalInputEl\n * @property {HTMLDivElement} statusEl\n * @property {HTMLDivElement} firstYearChunkEl\n * @property {Date} calendarDate\n * @property {Date} minDate\n * @property {Date} maxDate\n * @property {Date} selectedDate\n * @property {Date} rangeDate\n * @property {Date} defaultDate\n */\n\n/**\n * Get an object of the properties and elements belonging directly to the given\n * date picker component.\n *\n * @param {HTMLElement} el the element within the date picker\n * @returns {DatePickerContext} elements\n */\nconst getDatePickerContext = (el) => {\n const datePickerEl = el.closest(DATE_PICKER);\n\n if (!datePickerEl) {\n throw new Error(`Element is missing outer ${DATE_PICKER}`);\n }\n\n const internalInputEl = datePickerEl.querySelector(\n DATE_PICKER_INTERNAL_INPUT\n );\n const externalInputEl = datePickerEl.querySelector(\n DATE_PICKER_EXTERNAL_INPUT\n );\n const calendarEl = datePickerEl.querySelector(DATE_PICKER_CALENDAR);\n const toggleBtnEl = datePickerEl.querySelector(DATE_PICKER_BUTTON);\n const statusEl = datePickerEl.querySelector(DATE_PICKER_STATUS);\n const firstYearChunkEl = datePickerEl.querySelector(CALENDAR_YEAR);\n\n const inputDate = parseDateString(\n externalInputEl.value,\n DEFAULT_EXTERNAL_DATE_FORMAT,\n true\n );\n const selectedDate = parseDateString(internalInputEl.value);\n\n const calendarDate = parseDateString(calendarEl.dataset.value);\n const minDate = parseDateString(datePickerEl.dataset.minDate);\n const maxDate = parseDateString(datePickerEl.dataset.maxDate);\n const rangeDate = parseDateString(datePickerEl.dataset.rangeDate);\n const defaultDate = parseDateString(datePickerEl.dataset.defaultDate);\n\n if (minDate && maxDate && minDate > maxDate) {\n throw new Error(\"Minimum date cannot be after maximum date\");\n }\n\n return {\n calendarDate,\n minDate,\n toggleBtnEl,\n selectedDate,\n maxDate,\n firstYearChunkEl,\n datePickerEl,\n inputDate,\n internalInputEl,\n externalInputEl,\n calendarEl,\n rangeDate,\n defaultDate,\n statusEl,\n };\n};\n\n/**\n * Disable the date picker component\n *\n * @param {HTMLElement} el An element within the date picker component\n */\nconst disable = (el) => {\n const { externalInputEl, toggleBtnEl } = getDatePickerContext(el);\n\n toggleBtnEl.disabled = true;\n externalInputEl.disabled = true;\n};\n\n/**\n * Enable the date picker component\n *\n * @param {HTMLElement} el An element within the date picker component\n */\nconst enable = (el) => {\n const { externalInputEl, toggleBtnEl } = getDatePickerContext(el);\n\n toggleBtnEl.disabled = false;\n externalInputEl.disabled = false;\n};\n\n// #region Validation\n\n/**\n * Validate the value in the input as a valid date of format M/D/YYYY\n *\n * @param {HTMLElement} el An element within the date picker component\n */\nconst isDateInputInvalid = (el) => {\n const { externalInputEl, minDate, maxDate } = getDatePickerContext(el);\n\n const dateString = externalInputEl.value;\n let isInvalid = false;\n\n if (dateString) {\n isInvalid = true;\n\n const dateStringParts = dateString.split(\"/\");\n const [month, day, year] = dateStringParts.map((str) => {\n let value;\n const parsed = parseInt(str, 10);\n if (!Number.isNaN(parsed)) value = parsed;\n return value;\n });\n\n if (month && day && year != null) {\n const checkDate = setDate(year, month - 1, day);\n\n if (\n checkDate.getMonth() === month - 1 &&\n checkDate.getDate() === day &&\n checkDate.getFullYear() === year &&\n dateStringParts[2].length === 4 &&\n isDateWithinMinAndMax(checkDate, minDate, maxDate)\n ) {\n isInvalid = false;\n }\n }\n }\n\n return isInvalid;\n};\n\n/**\n * Validate the value in the input as a valid date of format M/D/YYYY\n *\n * @param {HTMLElement} el An element within the date picker component\n */\nconst validateDateInput = (el) => {\n const { externalInputEl } = getDatePickerContext(el);\n const isInvalid = isDateInputInvalid(externalInputEl);\n\n if (isInvalid && !externalInputEl.validationMessage) {\n externalInputEl.setCustomValidity(VALIDATION_MESSAGE);\n }\n\n if (!isInvalid && externalInputEl.validationMessage === VALIDATION_MESSAGE) {\n externalInputEl.setCustomValidity(\"\");\n }\n};\n\n// #endregion Validation\n\n/**\n * Enable the date picker component\n *\n * @param {HTMLElement} el An element within the date picker component\n */\nconst reconcileInputValues = (el) => {\n const { internalInputEl, inputDate } = getDatePickerContext(el);\n let newValue = \"\";\n\n if (inputDate && !isDateInputInvalid(el)) {\n newValue = formatDate(inputDate);\n }\n\n if (internalInputEl.value !== newValue) {\n changeElementValue(internalInputEl, newValue);\n }\n};\n\n/**\n * Select the value of the date picker inputs.\n *\n * @param {HTMLButtonElement} el An element within the date picker component\n * @param {string} dateString The date string to update in YYYY-MM-DD format\n */\nconst setCalendarValue = (el, dateString) => {\n const parsedDate = parseDateString(dateString);\n\n if (parsedDate) {\n const formattedDate = formatDate(parsedDate, DEFAULT_EXTERNAL_DATE_FORMAT);\n\n const {\n datePickerEl,\n internalInputEl,\n externalInputEl,\n } = getDatePickerContext(el);\n\n changeElementValue(internalInputEl, dateString);\n changeElementValue(externalInputEl, formattedDate);\n\n validateDateInput(datePickerEl);\n }\n};\n\n/**\n * Enhance an input with the date picker elements\n *\n * @param {HTMLElement} el The initial wrapping element of the date picker component\n */\nconst enhanceDatePicker = (el) => {\n const datePickerEl = el.closest(DATE_PICKER);\n const defaultValue = datePickerEl.dataset.defaultValue;\n\n const internalInputEl = datePickerEl.querySelector(`input`);\n\n if (!internalInputEl) {\n throw new Error(`${DATE_PICKER} is missing inner input`);\n }\n\n if (internalInputEl.value) {\n internalInputEl.value = \"\";\n }\n\n const minDate = parseDateString(\n datePickerEl.dataset.minDate || internalInputEl.getAttribute(\"min\")\n );\n datePickerEl.dataset.minDate = minDate\n ? formatDate(minDate)\n : DEFAULT_MIN_DATE;\n\n const maxDate = parseDateString(\n datePickerEl.dataset.maxDate || internalInputEl.getAttribute(\"max\")\n );\n if (maxDate) {\n datePickerEl.dataset.maxDate = formatDate(maxDate);\n }\n\n const calendarWrapper = document.createElement(\"div\");\n calendarWrapper.classList.add(DATE_PICKER_WRAPPER_CLASS);\n calendarWrapper.tabIndex = \"-1\";\n\n const externalInputEl = internalInputEl.cloneNode();\n externalInputEl.classList.add(DATE_PICKER_EXTERNAL_INPUT_CLASS);\n externalInputEl.type = \"text\";\n externalInputEl.name = \"\";\n\n calendarWrapper.appendChild(externalInputEl);\n calendarWrapper.insertAdjacentHTML(\n \"beforeend\",\n [\n `<button type=\"button\" class=\"${DATE_PICKER_BUTTON_CLASS}\" aria-haspopup=\"true\" aria-label=\"Toggle calendar\"> </button>`,\n `<div class=\"${DATE_PICKER_CALENDAR_CLASS}\" role=\"dialog\" aria-modal=\"true\" hidden></div>`,\n `<div class=\"usa-sr-only ${DATE_PICKER_STATUS_CLASS}\" role=\"status\" aria-live=\"polite\"></div>`,\n ].join(\"\")\n );\n\n internalInputEl.setAttribute(\"aria-hidden\", \"true\");\n internalInputEl.setAttribute(\"tabindex\", \"-1\");\n internalInputEl.classList.add(\n \"usa-sr-only\",\n DATE_PICKER_INTERNAL_INPUT_CLASS\n );\n internalInputEl.id = \"\";\n internalInputEl.required = false;\n\n datePickerEl.appendChild(calendarWrapper);\n datePickerEl.classList.add(DATE_PICKER_INITIALIZED_CLASS);\n\n if (defaultValue) {\n setCalendarValue(datePickerEl, defaultValue);\n }\n\n if (internalInputEl.disabled) {\n disable(datePickerEl);\n internalInputEl.disabled = false;\n }\n};\n\n// #region Calendar - Date Selection View\n\n/**\n * render the calendar.\n *\n * @param {HTMLElement} el An element within the date picker component\n * @param {Date} _dateToDisplay a date to render on the calendar\n * @returns {HTMLElement} a reference to the new calendar element\n */\nconst renderCalendar = (el, _dateToDisplay) => {\n const {\n datePickerEl,\n calendarEl,\n statusEl,\n selectedDate,\n maxDate,\n minDate,\n rangeDate,\n } = getDatePickerContext(el);\n const todaysDate = today();\n let dateToDisplay = _dateToDisplay || todaysDate;\n\n const calendarWasHidden = calendarEl.hidden;\n\n const focusedDate = addDays(dateToDisplay, 0);\n const focusedMonth = dateToDisplay.getMonth();\n const focusedYear = dateToDisplay.getFullYear();\n\n const prevMonth = subMonths(dateToDisplay, 1);\n const nextMonth = addMonths(dateToDisplay, 1);\n\n const currentFormattedDate = formatDate(dateToDisplay);\n\n const firstOfMonth = startOfMonth(dateToDisplay);\n const prevButtonsDisabled = isSameMonth(dateToDisplay, minDate);\n const nextButtonsDisabled = isSameMonth(dateToDisplay, maxDate);\n\n const rangeConclusionDate = selectedDate || dateToDisplay;\n const rangeStartDate = rangeDate && min(rangeConclusionDate, rangeDate);\n const rangeEndDate = rangeDate && max(rangeConclusionDate, rangeDate);\n\n const withinRangeStartDate = rangeDate && addDays(rangeStartDate, 1);\n const withinRangeEndDate = rangeDate && subDays(rangeEndDate, 1);\n\n const monthLabel = MONTH_LABELS[focusedMonth];\n\n const generateDateHtml = (dateToRender) => {\n const classes = [CALENDAR_DATE_CLASS];\n const day = dateToRender.getDate();\n const month = dateToRender.getMonth();\n const year = dateToRender.getFullYear();\n const dayOfWeek = dateToRender.getDay();\n\n const formattedDate = formatDate(dateToRender);\n\n let tabindex = \"-1\";\n\n const isDisabled = !isDateWithinMinAndMax(dateToRender, minDate, maxDate);\n const isSelected = isSameDay(dateToRender, selectedDate);\n\n if (isSameMonth(dateToRender, prevMonth)) {\n classes.push(CALENDAR_DATE_PREVIOUS_MONTH_CLASS);\n }\n\n if (isSameMonth(dateToRender, focusedDate)) {\n classes.push(CALENDAR_DATE_CURRENT_MONTH_CLASS);\n }\n\n if (isSameMonth(dateToRender, nextMonth)) {\n classes.push(CALENDAR_DATE_NEXT_MONTH_CLASS);\n }\n\n if (isSelected) {\n classes.push(CALENDAR_DATE_SELECTED_CLASS);\n }\n\n if (isSameDay(dateToRender, todaysDate)) {\n classes.push(CALENDAR_DATE_TODAY_CLASS);\n }\n\n if (rangeDate) {\n if (isSameDay(dateToRender, rangeDate)) {\n classes.push(CALENDAR_DATE_RANGE_DATE_CLASS);\n }\n\n if (isSameDay(dateToRender, rangeStartDate)) {\n classes.push(CALENDAR_DATE_RANGE_DATE_START_CLASS);\n }\n\n if (isSameDay(dateToRender, rangeEndDate)) {\n classes.push(CALENDAR_DATE_RANGE_DATE_END_CLASS);\n }\n\n if (\n isDateWithinMinAndMax(\n dateToRender,\n withinRangeStartDate,\n withinRangeEndDate\n )\n ) {\n classes.push(CALENDAR_DATE_WITHIN_RANGE_CLASS);\n }\n }\n\n if (isSameDay(dateToRender, focusedDate)) {\n tabindex = \"0\";\n classes.push(CALENDAR_DATE_FOCUSED_CLASS);\n }\n\n const monthStr = MONTH_LABELS[month];\n const dayStr = DAY_OF_WEEK_LABELS[dayOfWeek];\n\n return `<button\n type=\"button\"\n tabindex=\"${tabindex}\"\n class=\"${classes.join(\" \")}\" \n data-day=\"${day}\" \n data-month=\"${month + 1}\" \n data-year=\"${year}\" \n data-value=\"${formattedDate}\"\n aria-label=\"${day} ${monthStr} ${year} ${dayStr}\"\n aria-selected=\"${isSelected ? \"true\" : \"false\"}\"\n ${isDisabled ? `disabled=\"disabled\"` : \"\"}\n >${day}</button>`;\n };\n\n // set date to first rendered day\n dateToDisplay = startOfWeek(firstOfMonth);\n\n const days = [];\n\n while (\n days.length < 28 ||\n dateToDisplay.getMonth() === focusedMonth ||\n days.length % 7 !== 0\n ) {\n days.push(generateDateHtml(dateToDisplay));\n dateToDisplay = addDays(dateToDisplay, 1);\n }\n\n const datesHtml = listToGridHtml(days, 7);\n\n const newCalendar = calendarEl.cloneNode();\n newCalendar.dataset.value = currentFormattedDate;\n newCalendar.style.top = `${datePickerEl.offsetHeight}px`;\n newCalendar.hidden = false;\n newCalendar.innerHTML = `<div tabindex=\"-1\" class=\"${CALENDAR_DATE_PICKER_CLASS}\">\n <div class=\"${CALENDAR_ROW_CLASS}\">\n <div class=\"${CALENDAR_CELL_CLASS} ${CALENDAR_CELL_CENTER_ITEMS_CLASS}\">\n <button \n type=\"button\"\n class=\"${CALENDAR_PREVIOUS_YEAR_CLASS}\"\n aria-label=\"Navigate back one year\"\n ${prevButtonsDisabled ? `disabled=\"disabled\"` : \"\"}\n > </button>\n </div>\n <div class=\"${CALENDAR_CELL_CLASS} ${CALENDAR_CELL_CENTER_ITEMS_CLASS}\">\n <button \n type=\"button\"\n class=\"${CALENDAR_PREVIOUS_MONTH_CLASS}\"\n aria-label=\"Navigate back one month\"\n ${prevButtonsDisabled ? `disabled=\"disabled\"` : \"\"}\n > </button>\n </div>\n <div class=\"${CALENDAR_CELL_CLASS} ${CALENDAR_MONTH_LABEL_CLASS}\">\n <button \n type=\"button\"\n class=\"${CALENDAR_MONTH_SELECTION_CLASS}\" aria-label=\"${monthLabel}. Click to select month\"\n >${monthLabel}</button>\n <button \n type=\"button\"\n class=\"${CALENDAR_YEAR_SELECTION_CLASS}\" aria-label=\"${focusedYear}. Click to select year\"\n >${focusedYear}</button>\n </div>\n <div class=\"${CALENDAR_CELL_CLASS} ${CALENDAR_CELL_CENTER_ITEMS_CLASS}\">\n <button \n type=\"button\"\n class=\"${CALENDAR_NEXT_MONTH_CLASS}\"\n aria-label=\"Navigate forward one month\"\n ${nextButtonsDisabled ? `disabled=\"disabled\"` : \"\"}\n > </button>\n </div>\n <div class=\"${CALENDAR_CELL_CLASS} ${CALENDAR_CELL_CENTER_ITEMS_CLASS}\">\n <button \n type=\"button\"\n class=\"${CALENDAR_NEXT_YEAR_CLASS}\"\n aria-label=\"Navigate forward one year\"\n ${nextButtonsDisabled ? `disabled=\"disabled\"` : \"\"}\n > </button>\n </div>\n </div>\n <table class=\"${CALENDAR_TABLE_CLASS}\" role=\"presentation\">\n <thead>\n <tr>\n <th class=\"${CALENDAR_DAY_OF_WEEK_CLASS}\" scope=\"col\" aria-label=\"Sunday\">S</th>\n <th class=\"${CALENDAR_DAY_OF_WEEK_CLASS}\" scope=\"col\" aria-label=\"Monday\">M</th>\n <th class=\"${CALENDAR_DAY_OF_WEEK_CLASS}\" scope=\"col\" aria-label=\"Tuesday\">T</th>\n <th class=\"${CALENDAR_DAY_OF_WEEK_CLASS}\" scope=\"col\" aria-label=\"Wednesday\">W</th>\n <th class=\"${CALENDAR_DAY_OF_WEEK_CLASS}\" scope=\"col\" aria-label=\"Thursday\">Th</th>\n <th class=\"${CALENDAR_DAY_OF_WEEK_CLASS}\" scope=\"col\" aria-label=\"Friday\">F</th>\n <th class=\"${CALENDAR_DAY_OF_WEEK_CLASS}\" scope=\"col\" aria-label=\"Saturday\">S</th>\n </tr>\n </thead>\n <tbody>\n ${datesHtml}\n </tbody>\n </table>\n </div>`;\n\n calendarEl.parentNode.replaceChild(newCalendar, calendarEl);\n\n datePickerEl.classList.add(DATE_PICKER_ACTIVE_CLASS);\n\n const statuses = [];\n\n if (isSameDay(selectedDate, focusedDate)) {\n statuses.push(\"Selected date\");\n }\n\n if (calendarWasHidden) {\n statuses.push(\n \"You can navigate by day using left and right arrows\",\n \"Weeks by using up and down arrows\",\n \"Months by using page up and page down keys\",\n \"Years by using shift plus page up and shift plus page down\",\n \"Home and end keys navigate to the beginning and end of a week\"\n );\n statusEl.textContent = \"\";\n } else {\n statuses.push(`${monthLabel} ${focusedYear}`);\n }\n statusEl.textContent = statuses.join(\". \");\n\n return newCalendar;\n};\n\n/**\n * Navigate back one year and display the calendar.\n *\n * @param {HTMLButtonElement} _buttonEl An element within the date picker component\n */\nconst displayPreviousYear = (_buttonEl) => {\n if (_buttonEl.disabled) return;\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n _buttonEl\n );\n let date = subYears(calendarDate, 1);\n date = keepDateBetweenMinAndMax(date, minDate, maxDate);\n const newCalendar = renderCalendar(calendarEl, date);\n\n let nextToFocus = newCalendar.querySelector(CALENDAR_PREVIOUS_YEAR);\n if (nextToFocus.disabled) {\n nextToFocus = newCalendar.querySelector(CALENDAR_DATE_PICKER);\n }\n nextToFocus.focus();\n};\n\n/**\n * Navigate back one month and display the calendar.\n *\n * @param {HTMLButtonElement} _buttonEl An element within the date picker component\n */\nconst displayPreviousMonth = (_buttonEl) => {\n if (_buttonEl.disabled) return;\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n _buttonEl\n );\n let date = subMonths(calendarDate, 1);\n date = keepDateBetweenMinAndMax(date, minDate, maxDate);\n const newCalendar = renderCalendar(calendarEl, date);\n\n let nextToFocus = newCalendar.querySelector(CALENDAR_PREVIOUS_MONTH);\n if (nextToFocus.disabled) {\n nextToFocus = newCalendar.querySelector(CALENDAR_DATE_PICKER);\n }\n nextToFocus.focus();\n};\n\n/**\n * Navigate forward one month and display the calendar.\n *\n * @param {HTMLButtonElement} _buttonEl An element within the date picker component\n */\nconst displayNextMonth = (_buttonEl) => {\n if (_buttonEl.disabled) return;\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n _buttonEl\n );\n let date = addMonths(calendarDate, 1);\n date = keepDateBetweenMinAndMax(date, minDate, maxDate);\n const newCalendar = renderCalendar(calendarEl, date);\n\n let nextToFocus = newCalendar.querySelector(CALENDAR_NEXT_MONTH);\n if (nextToFocus.disabled) {\n nextToFocus = newCalendar.querySelector(CALENDAR_DATE_PICKER);\n }\n nextToFocus.focus();\n};\n\n/**\n * Navigate forward one year and display the calendar.\n *\n * @param {HTMLButtonElement} _buttonEl An element within the date picker component\n */\nconst displayNextYear = (_buttonEl) => {\n if (_buttonEl.disabled) return;\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n _buttonEl\n );\n let date = addYears(calendarDate, 1);\n date = keepDateBetweenMinAndMax(date, minDate, maxDate);\n const newCalendar = renderCalendar(calendarEl, date);\n\n let nextToFocus = newCalendar.querySelector(CALENDAR_NEXT_YEAR);\n if (nextToFocus.disabled) {\n nextToFocus = newCalendar.querySelector(CALENDAR_DATE_PICKER);\n }\n nextToFocus.focus();\n};\n\n/**\n * Hide the calendar of a date picker component.\n *\n * @param {HTMLElement} el An element within the date picker component\n */\nconst hideCalendar = (el) => {\n const { datePickerEl, calendarEl, statusEl } = getDatePickerContext(el);\n\n datePickerEl.classList.remove(DATE_PICKER_ACTIVE_CLASS);\n calendarEl.hidden = true;\n statusEl.textContent = \"\";\n};\n\n/**\n * Select a date within the date picker component.\n *\n * @param {HTMLButtonElement} calendarDateEl A date element within the date picker component\n */\nconst selectDate = (calendarDateEl) => {\n if (calendarDateEl.disabled) return;\n\n const { datePickerEl, externalInputEl } = getDatePickerContext(\n calendarDateEl\n );\n\n setCalendarValue(calendarDateEl, calendarDateEl.dataset.value);\n hideCalendar(datePickerEl);\n\n externalInputEl.focus();\n};\n\n/**\n * Toggle the calendar.\n *\n * @param {HTMLButtonElement} el An element within the date picker component\n */\nconst toggleCalendar = (el) => {\n if (el.disabled) return;\n const {\n calendarEl,\n inputDate,\n minDate,\n maxDate,\n defaultDate,\n } = getDatePickerContext(el);\n\n if (calendarEl.hidden) {\n const dateToDisplay = keepDateBetweenMinAndMax(\n inputDate || defaultDate || today(),\n minDate,\n maxDate\n );\n const newCalendar = renderCalendar(calendarEl, dateToDisplay);\n newCalendar.querySelector(CALENDAR_DATE_FOCUSED).focus();\n } else {\n hideCalendar(el);\n }\n};\n\n/**\n * Update the calendar when visible.\n *\n * @param {HTMLElement} el an element within the date picker\n */\nconst updateCalendarIfVisible = (el) => {\n const { calendarEl, inputDate, minDate, maxDate } = getDatePickerContext(el);\n const calendarShown = !calendarEl.hidden;\n\n if (calendarShown && inputDate) {\n const dateToDisplay = keepDateBetweenMinAndMax(inputDate, minDate, maxDate);\n renderCalendar(calendarEl, dateToDisplay);\n }\n};\n\n// #endregion Calendar - Date Selection View\n\n// #region Calendar - Month Selection View\n/**\n * Display the month selection screen in the date picker.\n *\n * @param {HTMLButtonElement} el An element within the date picker component\n * @returns {HTMLElement} a reference to the new calendar element\n */\nconst displayMonthSelection = (el, monthToDisplay) => {\n const {\n calendarEl,\n statusEl,\n calendarDate,\n minDate,\n maxDate,\n } = getDatePickerContext(el);\n\n const selectedMonth = calendarDate.getMonth();\n const focusedMonth = monthToDisplay == null ? selectedMonth : monthToDisplay;\n\n const months = MONTH_LABELS.map((month, index) => {\n const monthToCheck = setMonth(calendarDate, index);\n\n const isDisabled = isDatesMonthOutsideMinOrMax(\n monthToCheck,\n minDate,\n maxDate\n );\n\n let tabindex = \"-1\";\n\n const classes = [CALENDAR_MONTH_CLASS];\n const isSelected = index === selectedMonth;\n\n if (index === focusedMonth) {\n tabindex = \"0\";\n classes.push(CALENDAR_MONTH_FOCUSED_CLASS);\n }\n\n if (isSelected) {\n classes.push(CALENDAR_MONTH_SELECTED_CLASS);\n }\n\n return `<button \n type=\"button\"\n tabindex=\"${tabindex}\"\n class=\"${classes.join(\" \")}\" \n data-value=\"${index}\"\n data-label=\"${month}\"\n aria-selected=\"${isSelected ? \"true\" : \"false\"}\"\n ${isDisabled ? `disabled=\"disabled\"` : \"\"}\n >${month}</button>`;\n });\n\n const monthsHtml = `<div tabindex=\"-1\" class=\"${CALENDAR_MONTH_PICKER_CLASS}\">\n <table class=\"${CALENDAR_TABLE_CLASS}\" role=\"presentation\">\n <tbody>\n ${listToGridHtml(months, 3)}\n </tbody>\n </table>\n </div>`;\n\n const newCalendar = calendarEl.cloneNode();\n newCalendar.innerHTML = monthsHtml;\n calendarEl.parentNode.replaceChild(newCalendar, calendarEl);\n\n statusEl.textContent = \"Select a month.\";\n\n return newCalendar;\n};\n\n/**\n * Select a month in the date picker component.\n *\n * @param {HTMLButtonElement} monthEl An month element within the date picker component\n */\nconst selectMonth = (monthEl) => {\n if (monthEl.disabled) return;\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n monthEl\n );\n const selectedMonth = parseInt(monthEl.dataset.value, 10);\n let date = setMonth(calendarDate, selectedMonth);\n date = keepDateBetweenMinAndMax(date, minDate, maxDate);\n const newCalendar = renderCalendar(calendarEl, date);\n newCalendar.querySelector(CALENDAR_DATE_FOCUSED).focus();\n};\n\n// #endregion Calendar - Month Selection View\n\n// #region Calendar - Year Selection View\n\n/**\n * Display the year selection screen in the date picker.\n *\n * @param {HTMLButtonElement} el An element within the date picker component\n * @param {number} yearToDisplay year to display in year selection\n * @returns {HTMLElement} a reference to the new calendar element\n */\nconst displayYearSelection = (el, yearToDisplay) => {\n const {\n calendarEl,\n statusEl,\n calendarDate,\n minDate,\n maxDate,\n } = getDatePickerContext(el);\n\n const selectedYear = calendarDate.getFullYear();\n const focusedYear = yearToDisplay == null ? selectedYear : yearToDisplay;\n\n let yearToChunk = focusedYear;\n yearToChunk -= yearToChunk % YEAR_CHUNK;\n yearToChunk = Math.max(0, yearToChunk);\n\n const prevYearChunkDisabled = isDatesYearOutsideMinOrMax(\n setYear(calendarDate, yearToChunk - 1),\n minDate,\n maxDate\n );\n\n const nextYearChunkDisabled = isDatesYearOutsideMinOrMax(\n setYear(calendarDate, yearToChunk + YEAR_CHUNK),\n minDate,\n maxDate\n );\n\n const years = [];\n let yearIndex = yearToChunk;\n while (years.length < YEAR_CHUNK) {\n const isDisabled = isDatesYearOutsideMinOrMax(\n setYear(calendarDate, yearIndex),\n minDate,\n maxDate\n );\n\n let tabindex = \"-1\";\n\n const classes = [CALENDAR_YEAR_CLASS];\n const isSelected = yearIndex === selectedYear;\n\n if (yearIndex === focusedYear) {\n tabindex = \"0\";\n classes.push(CALENDAR_YEAR_FOCUSED_CLASS);\n }\n\n if (isSelected) {\n classes.push(CALENDAR_YEAR_SELECTED_CLASS);\n }\n\n years.push(\n `<button \n type=\"button\"\n tabindex=\"${tabindex}\"\n class=\"${classes.join(\" \")}\" \n data-value=\"${yearIndex}\"\n aria-selected=\"${isSelected ? \"true\" : \"false\"}\"\n ${isDisabled ? `disabled=\"disabled\"` : \"\"}\n >${yearIndex}</button>`\n );\n yearIndex += 1;\n }\n\n const yearsHtml = listToGridHtml(years, 3);\n\n const newCalendar = calendarEl.cloneNode();\n newCalendar.innerHTML = `<div tabindex=\"-1\" class=\"${CALENDAR_YEAR_PICKER_CLASS}\">\n <table class=\"${CALENDAR_TABLE_CLASS}\" role=\"presentation\">\n <tbody>\n <tr>\n <td>\n <button\n type=\"button\"\n class=\"${CALENDAR_PREVIOUS_YEAR_CHUNK_CLASS}\" \n aria-label=\"Navigate back ${YEAR_CHUNK} years\"\n ${prevYearChunkDisabled ? `disabled=\"disabled\"` : \"\"}\n > </button>\n </td>\n <td colspan=\"3\">\n <table class=\"${CALENDAR_TABLE_CLASS}\" role=\"presentation\">\n <tbody>\n ${yearsHtml}\n </tbody>\n </table>\n </td>\n <td>\n <button\n type=\"button\"\n class=\"${CALENDAR_NEXT_YEAR_CHUNK_CLASS}\" \n aria-label=\"Navigate forward ${YEAR_CHUNK} years\"\n ${nextYearChunkDisabled ? `disabled=\"disabled\"` : \"\"}\n > </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>`;\n calendarEl.parentNode.replaceChild(newCalendar, calendarEl);\n\n statusEl.textContent = `Showing years ${yearToChunk} to ${\n yearToChunk + YEAR_CHUNK - 1\n }. Select a year.`;\n\n return newCalendar;\n};\n\n/**\n * Navigate back by years and display the year selection screen.\n *\n * @param {HTMLButtonElement} el An element within the date picker component\n */\nconst displayPreviousYearChunk = (el) => {\n if (el.disabled) return;\n\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n el\n );\n const yearEl = calendarEl.querySelector(CALENDAR_YEAR_FOCUSED);\n const selectedYear = parseInt(yearEl.textContent, 10);\n\n let adjustedYear = selectedYear - YEAR_CHUNK;\n adjustedYear = Math.max(0, adjustedYear);\n\n const date = setYear(calendarDate, adjustedYear);\n const cappedDate = keepDateBetweenMinAndMax(date, minDate, maxDate);\n const newCalendar = displayYearSelection(\n calendarEl,\n cappedDate.getFullYear()\n );\n\n let nextToFocus = newCalendar.querySelector(CALENDAR_PREVIOUS_YEAR_CHUNK);\n if (nextToFocus.disabled) {\n nextToFocus = newCalendar.querySelector(CALENDAR_YEAR_PICKER);\n }\n nextToFocus.focus();\n};\n\n/**\n * Navigate forward by years and display the year selection screen.\n *\n * @param {HTMLButtonElement} el An element within the date picker component\n */\nconst displayNextYearChunk = (el) => {\n if (el.disabled) return;\n\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n el\n );\n const yearEl = calendarEl.querySelector(CALENDAR_YEAR_FOCUSED);\n const selectedYear = parseInt(yearEl.textContent, 10);\n\n let adjustedYear = selectedYear + YEAR_CHUNK;\n adjustedYear = Math.max(0, adjustedYear);\n\n const date = setYear(calendarDate, adjustedYear);\n const cappedDate = keepDateBetweenMinAndMax(date, minDate, maxDate);\n const newCalendar = displayYearSelection(\n calendarEl,\n cappedDate.getFullYear()\n );\n\n let nextToFocus = newCalendar.querySelector(CALENDAR_NEXT_YEAR_CHUNK);\n if (nextToFocus.disabled) {\n nextToFocus = newCalendar.querySelector(CALENDAR_YEAR_PICKER);\n }\n nextToFocus.focus();\n};\n\n/**\n * Select a year in the date picker component.\n *\n * @param {HTMLButtonElement} yearEl A year element within the date picker component\n */\nconst selectYear = (yearEl) => {\n if (yearEl.disabled) return;\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n yearEl\n );\n const selectedYear = parseInt(yearEl.innerHTML, 10);\n let date = setYear(calendarDate, selectedYear);\n date = keepDateBetweenMinAndMax(date, minDate, maxDate);\n const newCalendar = renderCalendar(calendarEl, date);\n newCalendar.querySelector(CALENDAR_DATE_FOCUSED).focus();\n};\n\n// #endregion Calendar - Year Selection View\n\n// #region Calendar Event Handling\n\n/**\n * Hide the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleEscapeFromCalendar = (event) => {\n const { datePickerEl, externalInputEl } = getDatePickerContext(event.target);\n\n hideCalendar(datePickerEl);\n externalInputEl.focus();\n\n event.preventDefault();\n};\n\n// #endregion Calendar Event Handling\n\n// #region Calendar Date Event Handling\n\n/**\n * Adjust the date and display the calendar if needed.\n *\n * @param {function} adjustDateFn function that returns the adjusted date\n */\nconst adjustCalendar = (adjustDateFn) => {\n return (event) => {\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n event.target\n );\n\n const date = adjustDateFn(calendarDate);\n\n const cappedDate = keepDateBetweenMinAndMax(date, minDate, maxDate);\n if (!isSameDay(calendarDate, cappedDate)) {\n const newCalendar = renderCalendar(calendarEl, cappedDate);\n newCalendar.querySelector(CALENDAR_DATE_FOCUSED).focus();\n }\n event.preventDefault();\n };\n};\n\n/**\n * Navigate back one week and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleUpFromDate = adjustCalendar((date) => subWeeks(date, 1));\n\n/**\n * Navigate forward one week and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleDownFromDate = adjustCalendar((date) => addWeeks(date, 1));\n\n/**\n * Navigate back one day and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleLeftFromDate = adjustCalendar((date) => subDays(date, 1));\n\n/**\n * Navigate forward one day and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleRightFromDate = adjustCalendar((date) => addDays(date, 1));\n\n/**\n * Navigate to the start of the week and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleHomeFromDate = adjustCalendar((date) => startOfWeek(date));\n\n/**\n * Navigate to the end of the week and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleEndFromDate = adjustCalendar((date) => endOfWeek(date));\n\n/**\n * Navigate forward one month and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handlePageDownFromDate = adjustCalendar((date) => addMonths(date, 1));\n\n/**\n * Navigate back one month and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handlePageUpFromDate = adjustCalendar((date) => subMonths(date, 1));\n\n/**\n * Navigate forward one year and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleShiftPageDownFromDate = adjustCalendar((date) => addYears(date, 1));\n\n/**\n * Navigate back one year and display the calendar.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleShiftPageUpFromDate = adjustCalendar((date) => subYears(date, 1));\n\n/**\n * display the calendar for the mousemove date.\n *\n * @param {MouseEvent} event The mousemove event\n * @param {HTMLButtonElement} dateEl A date element within the date picker component\n */\nconst handleMousemoveFromDate = (dateEl) => {\n if (dateEl.disabled) return;\n\n const calendarEl = dateEl.closest(DATE_PICKER_CALENDAR);\n\n const currentCalendarDate = calendarEl.dataset.value;\n const hoverDate = dateEl.dataset.value;\n\n if (hoverDate === currentCalendarDate) return;\n\n const dateToDisplay = parseDateString(hoverDate);\n const newCalendar = renderCalendar(calendarEl, dateToDisplay);\n newCalendar.querySelector(CALENDAR_DATE_FOCUSED).focus();\n};\n\n// #endregion Calendar Date Event Handling\n\n// #region Calendar Month Event Handling\n\n/**\n * Adjust the month and display the month selection screen if needed.\n *\n * @param {function} adjustMonthFn function that returns the adjusted month\n */\nconst adjustMonthSelectionScreen = (adjustMonthFn) => {\n return (event) => {\n const monthEl = event.target;\n const selectedMonth = parseInt(monthEl.dataset.value, 10);\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n monthEl\n );\n const currentDate = setMonth(calendarDate, selectedMonth);\n\n let adjustedMonth = adjustMonthFn(selectedMonth);\n adjustedMonth = Math.max(0, Math.min(11, adjustedMonth));\n\n const date = setMonth(calendarDate, adjustedMonth);\n const cappedDate = keepDateBetweenMinAndMax(date, minDate, maxDate);\n if (!isSameMonth(currentDate, cappedDate)) {\n const newCalendar = displayMonthSelection(\n calendarEl,\n cappedDate.getMonth()\n );\n newCalendar.querySelector(CALENDAR_MONTH_FOCUSED).focus();\n }\n event.preventDefault();\n };\n};\n\n/**\n * Navigate back three months and display the month selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleUpFromMonth = adjustMonthSelectionScreen((month) => month - 3);\n\n/**\n * Navigate forward three months and display the month selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleDownFromMonth = adjustMonthSelectionScreen((month) => month + 3);\n\n/**\n * Navigate back one month and display the month selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleLeftFromMonth = adjustMonthSelectionScreen((month) => month - 1);\n\n/**\n * Navigate forward one month and display the month selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleRightFromMonth = adjustMonthSelectionScreen((month) => month + 1);\n\n/**\n * Navigate to the start of the row of months and display the month selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleHomeFromMonth = adjustMonthSelectionScreen(\n (month) => month - (month % 3)\n);\n\n/**\n * Navigate to the end of the row of months and display the month selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleEndFromMonth = adjustMonthSelectionScreen(\n (month) => month + 2 - (month % 3)\n);\n\n/**\n * Navigate to the last month (December) and display the month selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handlePageDownFromMonth = adjustMonthSelectionScreen(() => 11);\n\n/**\n * Navigate to the first month (January) and display the month selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handlePageUpFromMonth = adjustMonthSelectionScreen(() => 0);\n\n/**\n * update the focus on a month when the mouse moves.\n *\n * @param {MouseEvent} event The mousemove event\n * @param {HTMLButtonElement} monthEl A month element within the date picker component\n */\nconst handleMousemoveFromMonth = (monthEl) => {\n if (monthEl.disabled) return;\n if (monthEl.classList.contains(CALENDAR_MONTH_FOCUSED_CLASS)) return;\n\n const focusMonth = parseInt(monthEl.dataset.value, 10);\n\n const newCalendar = displayMonthSelection(monthEl, focusMonth);\n newCalendar.querySelector(CALENDAR_MONTH_FOCUSED).focus();\n};\n\n// #endregion Calendar Month Event Handling\n\n// #region Calendar Year Event Handling\n\n/**\n * Adjust the year and display the year selection screen if needed.\n *\n * @param {function} adjustYearFn function that returns the adjusted year\n */\nconst adjustYearSelectionScreen = (adjustYearFn) => {\n return (event) => {\n const yearEl = event.target;\n const selectedYear = parseInt(yearEl.dataset.value, 10);\n const { calendarEl, calendarDate, minDate, maxDate } = getDatePickerContext(\n yearEl\n );\n const currentDate = setYear(calendarDate, selectedYear);\n\n let adjustedYear = adjustYearFn(selectedYear);\n adjustedYear = Math.max(0, adjustedYear);\n\n const date = setYear(calendarDate, adjustedYear);\n const cappedDate = keepDateBetweenMinAndMax(date, minDate, maxDate);\n if (!isSameYear(currentDate, cappedDate)) {\n const newCalendar = displayYearSelection(\n calendarEl,\n cappedDate.getFullYear()\n );\n newCalendar.querySelector(CALENDAR_YEAR_FOCUSED).focus();\n }\n event.preventDefault();\n };\n};\n\n/**\n * Navigate back three years and display the year selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleUpFromYear = adjustYearSelectionScreen((year) => year - 3);\n\n/**\n * Navigate forward three years and display the year selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleDownFromYear = adjustYearSelectionScreen((year) => year + 3);\n\n/**\n * Navigate back one year and display the year selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleLeftFromYear = adjustYearSelectionScreen((year) => year - 1);\n\n/**\n * Navigate forward one year and display the year selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleRightFromYear = adjustYearSelectionScreen((year) => year + 1);\n\n/**\n * Navigate to the start of the row of years and display the year selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleHomeFromYear = adjustYearSelectionScreen(\n (year) => year - (year % 3)\n);\n\n/**\n * Navigate to the end of the row of years and display the year selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handleEndFromYear = adjustYearSelectionScreen(\n (year) => year + 2 - (year % 3)\n);\n\n/**\n * Navigate to back 12 years and display the year selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handlePageUpFromYear = adjustYearSelectionScreen(\n (year) => year - YEAR_CHUNK\n);\n\n/**\n * Navigate forward 12 years and display the year selection screen.\n *\n * @param {KeyboardEvent} event the keydown event\n */\nconst handlePageDownFromYear = adjustYearSelectionScreen(\n (year) => year + YEAR_CHUNK\n);\n\n/**\n * update the focus on a year when the mouse moves.\n *\n * @param {MouseEvent} event The mousemove event\n * @param {HTMLButtonElement} dateEl A year element within the date picker component\n */\nconst handleMousemoveFromYear = (yearEl) => {\n if (yearEl.disabled) return;\n if (yearEl.classList.contains(CALENDAR_YEAR_FOCUSED_CLASS)) return;\n\n const focusYear = parseInt(yearEl.dataset.value, 10);\n\n const newCalendar = displayYearSelection(yearEl, focusYear);\n newCalendar.querySelector(CALENDAR_YEAR_FOCUSED).focus();\n};\n\n// #endregion Calendar Year Event Handling\n\n// #region Focus Handling Event Handling\n\nconst tabHandler = (focusable) => {\n const getFocusableContext = (el) => {\n const { calendarEl } = getDatePickerContext(el);\n const focusableElements = select(focusable, calendarEl);\n\n const firstTabIndex = 0;\n const lastTabIndex = focusableElements.length - 1;\n const firstTabStop = focusableElements[firstTabIndex];\n const lastTabStop = focusableElements[lastTabIndex];\n const focusIndex = focusableElements.indexOf(activeElement());\n\n const isLastTab = focusIndex === lastTabIndex;\n const isFirstTab = focusIndex === firstTabIndex;\n const isNotFound = focusIndex === -1;\n\n return {\n focusableElements,\n isNotFound,\n firstTabStop,\n isFirstTab,\n lastTabStop,\n isLastTab,\n };\n };\n\n return {\n tabAhead(event) {\n const { firstTabStop, isLastTab, isNotFound } = getFocusableContext(\n event.target\n );\n\n if (isLastTab || isNotFound) {\n event.preventDefault();\n firstTabStop.focus();\n }\n },\n tabBack(event) {\n const { lastTabStop, isFirstTab, isNotFound } = getFocusableContext(\n event.target\n );\n\n if (isFirstTab || isNotFound) {\n event.preventDefault();\n lastTabStop.focus();\n }\n },\n };\n};\n\nconst datePickerTabEventHandler = tabHandler(DATE_PICKER_FOCUSABLE);\nconst monthPickerTabEventHandler = tabHandler(MONTH_PICKER_FOCUSABLE);\nconst yearPickerTabEventHandler = tabHandler(YEAR_PICKER_FOCUSABLE);\n\n// #endregion Focus Handling Event Handling\n\n// #region Date Picker Event Delegation Registration / Component\n\nconst datePickerEvents = {\n [CLICK]: {\n [DATE_PICKER_BUTTON]() {\n toggleCalendar(this);\n },\n [CALENDAR_DATE]() {\n selectDate(this);\n },\n [CALENDAR_MONTH]() {\n selectMonth(this);\n },\n [CALENDAR_YEAR]() {\n selectYear(this);\n },\n [CALENDAR_PREVIOUS_MONTH]() {\n displayPreviousMonth(this);\n },\n [CALENDAR_NEXT_MONTH]() {\n displayNextMonth(this);\n },\n [CALENDAR_PREVIOUS_YEAR]() {\n displayPreviousYear(this);\n },\n [CALENDAR_NEXT_YEAR]() {\n displayNextYear(this);\n },\n [CALENDAR_PREVIOUS_YEAR_CHUNK]() {\n displayPreviousYearChunk(this);\n },\n [CALENDAR_NEXT_YEAR_CHUNK]() {\n displayNextYearChunk(this);\n },\n [CALENDAR_MONTH_SELECTION]() {\n const newCalendar = displayMonthSelection(this);\n newCalendar.querySelector(CALENDAR_MONTH_FOCUSED).focus();\n },\n [CALENDAR_YEAR_SELECTION]() {\n const newCalendar = displayYearSelection(this);\n newCalendar.querySelector(CALENDAR_YEAR_FOCUSED).focus();\n },\n },\n keyup: {\n [DATE_PICKER_CALENDAR](event) {\n const keydown = this.dataset.keydownKeyCode;\n if (`${event.keyCode}` !== keydown) {\n event.preventDefault();\n }\n },\n },\n keydown: {\n [DATE_PICKER_EXTERNAL_INPUT](event) {\n if (event.keyCode === ENTER_KEYCODE) {\n validateDateInput(this);\n }\n },\n [CALENDAR_DATE]: keymap({\n Up: handleUpFromDate,\n ArrowUp: handleUpFromDate,\n Down: handleDownFromDate,\n ArrowDown: handleDownFromDate,\n Left: handleLeftFromDate,\n ArrowLeft: handleLeftFromDate,\n Right: handleRightFromDate,\n ArrowRight: handleRightFromDate,\n Home: handleHomeFromDate,\n End: handleEndFromDate,\n PageDown: handlePageDownFromDate,\n PageUp: handlePageUpFromDate,\n \"Shift+PageDown\": handleShiftPageDownFromDate,\n \"Shift+PageUp\": handleShiftPageUpFromDate,\n }),\n [CALENDAR_DATE_PICKER]: keymap({\n Tab: datePickerTabEventHandler.tabAhead,\n \"Shift+Tab\": datePickerTabEventHandler.tabBack,\n }),\n [CALENDAR_MONTH]: keymap({\n Up: handleUpFromMonth,\n ArrowUp: handleUpFromMonth,\n Down: handleDownFromMonth,\n ArrowDown: handleDownFromMonth,\n Left: handleLeftFromMonth,\n ArrowLeft: handleLeftFromMonth,\n Right: handleRightFromMonth,\n ArrowRight: handleRightFromMonth,\n Home: handleHomeFromMonth,\n End: handleEndFromMonth,\n PageDown: handlePageDownFromMonth,\n PageUp: handlePageUpFromMonth,\n }),\n [CALENDAR_MONTH_PICKER]: keymap({\n Tab: monthPickerTabEventHandler.tabAhead,\n \"Shift+Tab\": monthPickerTabEventHandler.tabBack,\n }),\n [CALENDAR_YEAR]: keymap({\n Up: handleUpFromYear,\n ArrowUp: handleUpFromYear,\n Down: handleDownFromYear,\n ArrowDown: handleDownFromYear,\n Left: handleLeftFromYear,\n ArrowLeft: handleLeftFromYear,\n Right: handleRightFromYear,\n ArrowRight: handleRightFromYear,\n Home: handleHomeFromYear,\n End: handleEndFromYear,\n PageDown: handlePageDownFromYear,\n PageUp: handlePageUpFromYear,\n }),\n [CALENDAR_YEAR_PICKER]: keymap({\n Tab: yearPickerTabEventHandler.tabAhead,\n \"Shift+Tab\": yearPickerTabEventHandler.tabBack,\n }),\n [DATE_PICKER_CALENDAR](event) {\n this.dataset.keydownKeyCode = event.keyCode;\n },\n [DATE_PICKER](event) {\n const keyMap = keymap({\n Escape: handleEscapeFromCalendar,\n });\n\n keyMap(event);\n },\n },\n focusout: {\n [DATE_PICKER_EXTERNAL_INPUT]() {\n validateDateInput(this);\n },\n [DATE_PICKER](event) {\n if (!this.contains(event.relatedTarget)) {\n hideCalendar(this);\n }\n },\n },\n input: {\n [DATE_PICKER_EXTERNAL_INPUT]() {\n reconcileInputValues(this);\n updateCalendarIfVisible(this);\n },\n },\n};\n\nif (!isIosDevice()) {\n datePickerEvents.mousemove = {\n [CALENDAR_DATE_CURRENT_MONTH]() {\n handleMousemoveFromDate(this);\n },\n [CALENDAR_MONTH]() {\n handleMousemoveFromMonth(this);\n },\n [CALENDAR_YEAR]() {\n handleMousemoveFromYear(this);\n },\n };\n}\n\nconst datePicker = behavior(datePickerEvents, {\n init(root) {\n select(DATE_PICKER, root).forEach((datePickerEl) => {\n enhanceDatePicker(datePickerEl);\n });\n },\n getDatePickerContext,\n disable,\n enable,\n isDateInputInvalid,\n setCalendarValue,\n validateDateInput,\n renderCalendar,\n updateCalendarIfVisible,\n});\n\n// #endregion Date Picker Event Delegation Registration / Component\n\nmodule.exports = datePicker;\n","const behavior = require(\"../utils/behavior\");\nconst select = require(\"../utils/select\");\nconst { prefix: PREFIX } = require(\"../config\");\nconst {\n getDatePickerContext,\n isDateInputInvalid,\n updateCalendarIfVisible,\n} = require(\"./date-picker\");\n\nconst DATE_PICKER_CLASS = `${PREFIX}-date-picker`;\nconst DATE_RANGE_PICKER_CLASS = `${PREFIX}-date-range-picker`;\nconst DATE_RANGE_PICKER_RANGE_START_CLASS = `${DATE_RANGE_PICKER_CLASS}__range-start`;\nconst DATE_RANGE_PICKER_RANGE_END_CLASS = `${DATE_RANGE_PICKER_CLASS}__range-end`;\n\nconst DATE_PICKER = `.${DATE_PICKER_CLASS}`;\nconst DATE_RANGE_PICKER = `.${DATE_RANGE_PICKER_CLASS}`;\nconst DATE_RANGE_PICKER_RANGE_START = `.${DATE_RANGE_PICKER_RANGE_START_CLASS}`;\nconst DATE_RANGE_PICKER_RANGE_END = `.${DATE_RANGE_PICKER_RANGE_END_CLASS}`;\n\nconst DEFAULT_MIN_DATE = \"0000-01-01\";\n\n/**\n * The properties and elements within the date range picker.\n * @typedef {Object} DateRangePickerContext\n * @property {HTMLElement} dateRangePickerEl\n * @property {HTMLElement} rangeStartEl\n * @property {HTMLElement} rangeEndEl\n */\n\n/**\n * Get an object of the properties and elements belonging directly to the given\n * date picker component.\n *\n * @param {HTMLElement} el the element within the date picker\n * @returns {DateRangePickerContext} elements\n */\nconst getDateRangePickerContext = (el) => {\n const dateRangePickerEl = el.closest(DATE_RANGE_PICKER);\n\n if (!dateRangePickerEl) {\n throw new Error(`Element is missing outer ${DATE_RANGE_PICKER}`);\n }\n\n const rangeStartEl = dateRangePickerEl.querySelector(\n DATE_RANGE_PICKER_RANGE_START\n );\n const rangeEndEl = dateRangePickerEl.querySelector(\n DATE_RANGE_PICKER_RANGE_END\n );\n\n return {\n dateRangePickerEl,\n rangeStartEl,\n rangeEndEl,\n };\n};\n\n/**\n * handle update from range start date picker\n *\n * @param {HTMLElement} el an element within the date range picker\n */\nconst handleRangeStartUpdate = (el) => {\n const {\n dateRangePickerEl,\n rangeStartEl,\n rangeEndEl,\n } = getDateRangePickerContext(el);\n const { internalInputEl } = getDatePickerContext(rangeStartEl);\n const updatedDate = internalInputEl.value;\n\n if (updatedDate && !isDateInputInvalid(internalInputEl)) {\n rangeEndEl.dataset.minDate = updatedDate;\n rangeEndEl.dataset.rangeDate = updatedDate;\n rangeEndEl.dataset.defaultDate = updatedDate;\n } else {\n rangeEndEl.dataset.minDate = dateRangePickerEl.dataset.minDate || \"\";\n rangeEndEl.dataset.rangeDate = \"\";\n rangeEndEl.dataset.defaultDate = \"\";\n }\n\n updateCalendarIfVisible(rangeEndEl);\n};\n\n/**\n * handle update from range start date picker\n *\n * @param {HTMLElement} el an element within the date range picker\n */\nconst handleRangeEndUpdate = (el) => {\n const {\n dateRangePickerEl,\n rangeStartEl,\n rangeEndEl,\n } = getDateRangePickerContext(el);\n const { internalInputEl } = getDatePickerContext(rangeEndEl);\n const updatedDate = internalInputEl.value;\n\n if (updatedDate && !isDateInputInvalid(internalInputEl)) {\n rangeStartEl.dataset.maxDate = updatedDate;\n rangeStartEl.dataset.rangeDate = updatedDate;\n rangeStartEl.dataset.defaultDate = updatedDate;\n } else {\n rangeStartEl.dataset.maxDate = dateRangePickerEl.dataset.maxDate || \"\";\n rangeStartEl.dataset.rangeDate = \"\";\n rangeStartEl.dataset.defaultDate = \"\";\n }\n\n updateCalendarIfVisible(rangeStartEl);\n};\n\n/**\n * Enhance an input with the date picker elements\n *\n * @param {HTMLElement} el The initial wrapping element of the date range picker component\n */\nconst enhanceDateRangePicker = (el) => {\n const dateRangePickerEl = el.closest(DATE_RANGE_PICKER);\n\n const [rangeStart, rangeEnd] = select(DATE_PICKER, dateRangePickerEl);\n\n if (!rangeStart) {\n throw new Error(\n `${DATE_RANGE_PICKER} is missing inner two '${DATE_PICKER}' elements`\n );\n }\n\n if (!rangeEnd) {\n throw new Error(\n `${DATE_RANGE_PICKER} is missing second '${DATE_PICKER}' element`\n );\n }\n\n rangeStart.classList.add(DATE_RANGE_PICKER_RANGE_START_CLASS);\n rangeEnd.classList.add(DATE_RANGE_PICKER_RANGE_END_CLASS);\n\n if (!dateRangePickerEl.dataset.minDate) {\n dateRangePickerEl.dataset.minDate = DEFAULT_MIN_DATE;\n }\n\n const minDate = dateRangePickerEl.dataset.minDate;\n rangeStart.dataset.minDate = minDate;\n rangeEnd.dataset.minDate = minDate;\n\n const maxDate = dateRangePickerEl.dataset.maxDate;\n if (maxDate) {\n rangeStart.dataset.maxDate = maxDate;\n rangeEnd.dataset.maxDate = maxDate;\n }\n\n handleRangeStartUpdate(dateRangePickerEl);\n handleRangeEndUpdate(dateRangePickerEl);\n};\n\nconst dateRangePicker = behavior(\n {\n \"input change\": {\n [DATE_RANGE_PICKER_RANGE_START]() {\n handleRangeStartUpdate(this);\n },\n [DATE_RANGE_PICKER_RANGE_END]() {\n handleRangeEndUpdate(this);\n },\n },\n },\n {\n init(root) {\n select(DATE_RANGE_PICKER, root).forEach((dateRangePickerEl) => {\n enhanceDateRangePicker(dateRangePickerEl);\n });\n },\n }\n);\n\nmodule.exports = dateRangePicker;\n","const select = require(\"../utils/select\");\nconst behavior = require(\"../utils/behavior\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst DROPZONE_CLASS = `${PREFIX}-file-input`;\nconst DROPZONE = `.${DROPZONE_CLASS}`;\nconst INPUT_CLASS = `${PREFIX}-file-input__input`;\nconst TARGET_CLASS = `${PREFIX}-file-input__target`;\nconst BOX_CLASS = `${PREFIX}-file-input__box`;\nconst INSTRUCTIONS_CLASS = `${PREFIX}-file-input__instructions`;\nconst PREVIEW_CLASS = `${PREFIX}-file-input__preview`;\nconst PREVIEW_HEADING_CLASS = `${PREFIX}-file-input__preview-heading`;\nconst DISABLED_CLASS = `${PREFIX}-file-input--disabled`;\nconst CHOOSE_CLASS = `${PREFIX}-file-input__choose`;\nconst ACCEPTED_FILE_MESSAGE_CLASS = `${PREFIX}-file-input__accepted-files-message`;\nconst DRAG_TEXT_CLASS = `${PREFIX}-file-input__drag-text`;\nconst DRAG_CLASS = `${PREFIX}-file-input--drag`;\nconst LOADING_CLASS = \"is-loading\";\nconst HIDDEN_CLASS = \"display-none\";\nconst INVALID_FILE_CLASS = \"has-invalid-file\";\nconst GENERIC_PREVIEW_CLASS_NAME = `${PREFIX}-file-input__preview-image`;\nconst GENERIC_PREVIEW_CLASS = `${GENERIC_PREVIEW_CLASS_NAME}--generic`;\nconst PDF_PREVIEW_CLASS = `${GENERIC_PREVIEW_CLASS_NAME}--pdf`;\nconst WORD_PREVIEW_CLASS = `${GENERIC_PREVIEW_CLASS_NAME}--word`;\nconst VIDEO_PREVIEW_CLASS = `${GENERIC_PREVIEW_CLASS_NAME}--video`;\nconst EXCEL_PREVIEW_CLASS = `${GENERIC_PREVIEW_CLASS_NAME}--excel`;\nconst SPACER_GIF =\n \"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\";\n\n/**\n * Creates an ID name for each file that strips all invalid characters.\n * @param {string} name - name of the file added to file input\n * @returns {string} same characters as the name with invalide chars removed\n */\nconst makeSafeForID = (name) => {\n return name.replace(/[^a-z0-9]/g, function replaceName(s) {\n const c = s.charCodeAt(0);\n if (c === 32) return \"-\";\n if (c >= 65 && c <= 90) return `img_${s.toLowerCase()}`;\n return `__${(\"000\", c.toString(16)).slice(-4)}`;\n });\n};\n\n/**\n * Builds full file input comonent\n * @param {HTMLElement} fileInputEl - original file input on page\n * @returns {HTMLElement|HTMLElement} - Instructions, target area div\n */\nconst buildFileInput = (fileInputEl) => {\n const acceptsMultiple = fileInputEl.hasAttribute(\"multiple\");\n const fileInputParent = document.createElement(\"div\");\n const dropTarget = document.createElement(\"div\");\n const box = document.createElement(\"div\");\n const instructions = document.createElement(\"div\");\n const disabled = fileInputEl.hasAttribute(\"disabled\");\n\n // Adds class names and other attributes\n fileInputEl.classList.remove(DROPZONE_CLASS);\n fileInputEl.classList.add(INPUT_CLASS);\n fileInputParent.classList.add(DROPZONE_CLASS);\n box.classList.add(BOX_CLASS);\n instructions.classList.add(INSTRUCTIONS_CLASS);\n instructions.setAttribute(\"aria-hidden\", \"true\");\n dropTarget.classList.add(TARGET_CLASS);\n\n // Adds child elements to the DOM\n fileInputEl.parentNode.insertBefore(dropTarget, fileInputEl);\n fileInputEl.parentNode.insertBefore(fileInputParent, dropTarget);\n dropTarget.appendChild(fileInputEl);\n fileInputParent.appendChild(dropTarget);\n fileInputEl.parentNode.insertBefore(instructions, fileInputEl);\n fileInputEl.parentNode.insertBefore(box, fileInputEl);\n\n // Disabled styling\n if (disabled) {\n fileInputParent.classList.add(DISABLED_CLASS);\n fileInputParent.setAttribute(\"aria-disabled\", \"true\");\n }\n\n // Sets instruction test based on whether or not multipe files are accepted\n if (acceptsMultiple) {\n instructions.innerHTML = `<span class=\"${DRAG_TEXT_CLASS}\">Drag files here or </span><span class=\"${CHOOSE_CLASS}\">choose from folder</span>`;\n } else {\n instructions.innerHTML = `<span class=\"${DRAG_TEXT_CLASS}\">Drag file here or </span><span class=\"${CHOOSE_CLASS}\">choose from folder</span>`;\n }\n\n // IE11 and Edge do not support drop files on file inputs, so we've removed text that indicates that\n if (\n /rv:11.0/i.test(navigator.userAgent) ||\n /Edge\\/\\d./i.test(navigator.userAgent)\n ) {\n fileInputParent.querySelector(`.${DRAG_TEXT_CLASS}`).outerHTML = \"\";\n }\n\n return { instructions, dropTarget };\n};\n\n/**\n * Removes image previews, we want to start with a clean list every time files are added to the file input\n * @param {HTMLElement} dropTarget - target area div that encases the input\n * @param {HTMLElement} instructions - text to infrom users to drag or select files\n */\nconst removeOldPreviews = (dropTarget, instructions) => {\n const filePreviews = dropTarget.querySelectorAll(`.${PREVIEW_CLASS}`);\n const currentPreviewHeading = dropTarget.querySelector(\n `.${PREVIEW_HEADING_CLASS}`\n );\n const currentErrorMessage = dropTarget.querySelector(\n `.${ACCEPTED_FILE_MESSAGE_CLASS}`\n );\n\n // Remove the heading above the previews\n if (currentPreviewHeading) {\n currentPreviewHeading.outerHTML = \"\";\n }\n\n // Remove existing error messages\n if (currentErrorMessage) {\n currentErrorMessage.outerHTML = \"\";\n dropTarget.classList.remove(INVALID_FILE_CLASS);\n }\n\n // Get rid of existing previews if they exist, show instructions\n if (filePreviews !== null) {\n if (instructions) {\n instructions.classList.remove(HIDDEN_CLASS);\n }\n Array.prototype.forEach.call(filePreviews, function removeImages(node) {\n node.parentNode.removeChild(node);\n });\n }\n};\n\n/**\n * When using an Accept attribute, invalid files will be hidden from\n * file browser, but they can still be dragged to the input. This\n * function prevents them from being dragged and removes error states\n * when correct files are added.\n * @param {event} e\n * @param {HTMLElement} fileInputEl - file input element\n * @param {HTMLElement} instructions - text to infrom users to drag or select files\n * @param {HTMLElement} dropTarget - target area div that encases the input\n */\nconst preventInvalidFiles = (e, fileInputEl, instructions, dropTarget) => {\n const acceptedFiles = fileInputEl.getAttribute(\"accept\");\n dropTarget.classList.remove(INVALID_FILE_CLASS);\n\n // Runs if only specific files are accepted\n if (acceptedFiles) {\n const errorMessage = document.createElement(\"div\");\n\n // If multiple files are dragged, this iterates through them and look for any files that are not accepted.\n let allFilesAllowed = true;\n for (let i = 0; i < e.dataTransfer.files.length; i += 1) {\n const file = e.dataTransfer.files[i];\n if (allFilesAllowed) {\n allFilesAllowed = file.name.indexOf(acceptedFiles);\n if (allFilesAllowed < 0) {\n break;\n }\n }\n }\n\n // If dragged files are not accepted, this removes them from the value of the input and creates and error state\n if (allFilesAllowed < 0) {\n removeOldPreviews(dropTarget, instructions);\n fileInputEl.value = \"\"; // eslint-disable-line no-param-reassign\n dropTarget.insertBefore(errorMessage, fileInputEl);\n errorMessage.innerHTML = `This is not a valid file type.`;\n errorMessage.classList.add(ACCEPTED_FILE_MESSAGE_CLASS);\n dropTarget.classList.add(INVALID_FILE_CLASS);\n e.preventDefault();\n e.stopPropagation();\n }\n }\n};\n\n/**\n * When new files are applied to file input, this function generates previews\n * and removes old ones.\n * @param {event} e\n * @param {HTMLElement} fileInputEl - file input element\n * @param {HTMLElement} instructions - text to infrom users to drag or select files\n * @param {HTMLElement} dropTarget - target area div that encases the input\n */\nconst handleChange = (e, fileInputEl, instructions, dropTarget) => {\n const fileNames = e.target.files;\n const filePreviewsHeading = document.createElement(\"div\");\n\n // First, get rid of existing previews\n removeOldPreviews(dropTarget, instructions);\n\n // Iterates through files list and creates previews\n for (let i = 0; i < fileNames.length; i += 1) {\n const reader = new FileReader();\n const fileName = fileNames[i].name;\n\n // Starts with a loading image while preview is created\n reader.onloadstart = function createLoadingImage() {\n const imageId = makeSafeForID(fileName);\n const previewImage = `<img id=\"${imageId}\" src=\"${SPACER_GIF}\" alt=\"\" class=\"${GENERIC_PREVIEW_CLASS_NAME} ${LOADING_CLASS}\"/>`;\n\n instructions.insertAdjacentHTML(\n \"afterend\",\n `<div class=\"${PREVIEW_CLASS}\" aria-hidden=\"true\">${previewImage}${fileName}<div>`\n );\n };\n\n // Not all files will be able to generate previews. In case this happens, we provide several types \"generic previews\" based on the file extension.\n reader.onloadend = function createFilePreview() {\n const imageId = makeSafeForID(fileName);\n const previewImage = document.getElementById(imageId);\n if (fileName.indexOf(\".pdf\") > 0) {\n previewImage.setAttribute(\n \"onerror\",\n `this.onerror=null;this.src=\"${SPACER_GIF}\"; this.classList.add(\"${PDF_PREVIEW_CLASS}\")`\n );\n } else if (\n fileName.indexOf(\".doc\") > 0 ||\n fileName.indexOf(\".pages\") > 0\n ) {\n previewImage.setAttribute(\n \"onerror\",\n `this.onerror=null;this.src=\"${SPACER_GIF}\"; this.classList.add(\"${WORD_PREVIEW_CLASS}\")`\n );\n } else if (\n fileName.indexOf(\".xls\") > 0 ||\n fileName.indexOf(\".numbers\") > 0\n ) {\n previewImage.setAttribute(\n \"onerror\",\n `this.onerror=null;this.src=\"${SPACER_GIF}\"; this.classList.add(\"${EXCEL_PREVIEW_CLASS}\")`\n );\n } else if (fileName.indexOf(\".mov\") > 0 || fileName.indexOf(\".mp4\") > 0) {\n previewImage.setAttribute(\n \"onerror\",\n `this.onerror=null;this.src=\"${SPACER_GIF}\"; this.classList.add(\"${VIDEO_PREVIEW_CLASS}\")`\n );\n } else {\n previewImage.setAttribute(\n \"onerror\",\n `this.onerror=null;this.src=\"${SPACER_GIF}\"; this.classList.add(\"${GENERIC_PREVIEW_CLASS}\")`\n );\n }\n\n // Removes loader and displays preview\n previewImage.classList.remove(LOADING_CLASS);\n previewImage.src = reader.result;\n };\n\n if (fileNames[i]) {\n reader.readAsDataURL(fileNames[i]);\n }\n\n // Adds heading above file previews, pluralizes if there are multiple\n if (i === 0) {\n dropTarget.insertBefore(filePreviewsHeading, instructions);\n filePreviewsHeading.innerHTML = `Selected file <span class=\"usa-file-input__choose\">Change file</span>`;\n } else if (i >= 1) {\n dropTarget.insertBefore(filePreviewsHeading, instructions);\n filePreviewsHeading.innerHTML = `${\n i + 1\n } files selected <span class=\"usa-file-input__choose\">Change files</span>`;\n }\n\n // Hides null state content and sets preview heading class\n if (filePreviewsHeading) {\n instructions.classList.add(HIDDEN_CLASS);\n filePreviewsHeading.classList.add(PREVIEW_HEADING_CLASS);\n }\n }\n};\n\nconst fileInput = behavior(\n {},\n {\n init(root) {\n select(DROPZONE, root).forEach((fileInputEl) => {\n const { instructions, dropTarget } = buildFileInput(fileInputEl);\n\n dropTarget.addEventListener(\n \"dragover\",\n function handleDragOver() {\n this.classList.add(DRAG_CLASS);\n },\n false\n );\n\n dropTarget.addEventListener(\n \"dragleave\",\n function handleDragLeave() {\n this.classList.remove(DRAG_CLASS);\n },\n false\n );\n\n dropTarget.addEventListener(\n \"drop\",\n function handleDrop(e) {\n preventInvalidFiles(e, fileInputEl, instructions, dropTarget);\n this.classList.remove(DRAG_CLASS);\n },\n false\n );\n\n // eslint-disable-next-line no-param-reassign\n fileInputEl.onchange = (e) => {\n handleChange(e, fileInputEl, instructions, dropTarget);\n };\n });\n },\n }\n);\n\nmodule.exports = fileInput;\n","const debounce = require(\"lodash.debounce\");\nconst behavior = require(\"../utils/behavior\");\nconst select = require(\"../utils/select\");\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst HIDDEN = \"hidden\";\nconst SCOPE = `.${PREFIX}-footer--big`;\nconst NAV = `${SCOPE} nav`;\nconst BUTTON = `${NAV} .${PREFIX}-footer__primary-link`;\nconst COLLAPSIBLE = `.${PREFIX}-footer__primary-content--collapsible`;\n\nconst HIDE_MAX_WIDTH = 480;\nconst DEBOUNCE_RATE = 180;\n\nfunction showPanel() {\n if (window.innerWidth < HIDE_MAX_WIDTH) {\n const collapseEl = this.closest(COLLAPSIBLE);\n collapseEl.classList.toggle(HIDDEN);\n\n // NB: this *should* always succeed because the button\n // selector is scoped to \".{prefix}-footer-big nav\"\n const collapsibleEls = select(COLLAPSIBLE, collapseEl.closest(NAV));\n\n collapsibleEls.forEach((el) => {\n if (el !== collapseEl) {\n el.classList.add(HIDDEN);\n }\n });\n }\n}\n\nlet lastInnerWidth;\n\nconst resize = debounce(() => {\n if (lastInnerWidth === window.innerWidth) return;\n lastInnerWidth = window.innerWidth;\n const hidden = window.innerWidth < HIDE_MAX_WIDTH;\n select(COLLAPSIBLE).forEach((list) => list.classList.toggle(HIDDEN, hidden));\n}, DEBOUNCE_RATE);\n\nmodule.exports = behavior(\n {\n [CLICK]: {\n [BUTTON]: showPanel,\n },\n },\n {\n // export for use elsewhere\n HIDE_MAX_WIDTH,\n DEBOUNCE_RATE,\n\n init() {\n resize();\n window.addEventListener(\"resize\", resize);\n },\n\n teardown() {\n window.removeEventListener(\"resize\", resize);\n },\n }\n);\n","const accordion = require(\"./accordion\");\nconst banner = require(\"./banner\");\nconst characterCount = require(\"./character-count\");\nconst comboBox = require(\"./combo-box\");\nconst fileInput = require(\"./file-input\");\nconst footer = require(\"./footer\");\nconst navigation = require(\"./navigation\");\nconst password = require(\"./password\");\nconst search = require(\"./search\");\nconst skipnav = require(\"./skipnav\");\nconst tooltip = require(\"./tooltip\");\nconst validator = require(\"./validator\");\nconst datePicker = require(\"./date-picker\");\nconst dateRangePicker = require(\"./date-range-picker\");\nconst timePicker = require(\"./time-picker\");\n\nmodule.exports = {\n accordion,\n banner,\n characterCount,\n comboBox,\n datePicker,\n dateRangePicker,\n fileInput,\n footer,\n navigation,\n password,\n search,\n skipnav,\n timePicker,\n tooltip,\n validator,\n};\n","const behavior = require(\"../utils/behavior\");\nconst select = require(\"../utils/select\");\nconst toggle = require(\"../utils/toggle\");\nconst FocusTrap = require(\"../utils/focus-trap\");\nconst accordion = require(\"./accordion\");\n\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst BODY = \"body\";\nconst NAV = `.${PREFIX}-nav`;\nconst NAV_LINKS = `${NAV} a`;\nconst NAV_CONTROL = `button.${PREFIX}-nav__link`;\nconst OPENERS = `.${PREFIX}-menu-btn`;\nconst CLOSE_BUTTON = `.${PREFIX}-nav__close`;\nconst OVERLAY = `.${PREFIX}-overlay`;\nconst CLOSERS = `${CLOSE_BUTTON}, .${PREFIX}-overlay`;\nconst TOGGLES = [NAV, OVERLAY].join(\", \");\n\nconst ACTIVE_CLASS = \"usa-js-mobile-nav--active\";\nconst VISIBLE_CLASS = \"is-visible\";\n\nlet navigation;\nlet navActive;\n\nconst isActive = () => document.body.classList.contains(ACTIVE_CLASS);\n\nconst toggleNav = (active) => {\n const { body } = document;\n const safeActive = typeof active === \"boolean\" ? active : !isActive();\n\n body.classList.toggle(ACTIVE_CLASS, safeActive);\n\n select(TOGGLES).forEach((el) =>\n el.classList.toggle(VISIBLE_CLASS, safeActive)\n );\n\n navigation.focusTrap.update(safeActive);\n\n const closeButton = body.querySelector(CLOSE_BUTTON);\n const menuButton = body.querySelector(OPENERS);\n\n if (safeActive && closeButton) {\n // The mobile nav was just activated, so focus on the close button,\n // which is just before all the nav elements in the tab order.\n closeButton.focus();\n } else if (\n !safeActive &&\n document.activeElement === closeButton &&\n menuButton\n ) {\n // The mobile nav was just deactivated, and focus was on the close\n // button, which is no longer visible. We don't want the focus to\n // disappear into the void, so focus on the menu button if it's\n // visible (this may have been what the user was just focused on,\n // if they triggered the mobile nav by mistake).\n menuButton.focus();\n }\n\n return safeActive;\n};\n\nconst resize = () => {\n const closer = document.body.querySelector(CLOSE_BUTTON);\n\n if (isActive() && closer && closer.getBoundingClientRect().width === 0) {\n // When the mobile nav is active, and the close box isn't visible,\n // we know the user's viewport has been resized to be larger.\n // Let's make the page state consistent by deactivating the mobile nav.\n navigation.toggleNav.call(closer, false);\n }\n};\n\nconst onMenuClose = () => navigation.toggleNav.call(navigation, false);\nconst hideActiveNavDropdown = () => {\n toggle(navActive, false);\n navActive = null;\n};\n\nnavigation = behavior(\n {\n [CLICK]: {\n [NAV_CONTROL]() {\n // If another nav is open, close it\n if (navActive && navActive !== this) {\n hideActiveNavDropdown();\n }\n // store a reference to the last clicked nav link element, so we\n // can hide the dropdown if another element on the page is clicked\n if (navActive) {\n hideActiveNavDropdown();\n } else {\n navActive = this;\n toggle(navActive, true);\n }\n\n // Do this so the event handler on the body doesn't fire\n return false;\n },\n [BODY]() {\n if (navActive) {\n hideActiveNavDropdown();\n }\n },\n [OPENERS]: toggleNav,\n [CLOSERS]: toggleNav,\n [NAV_LINKS]() {\n // A navigation link has been clicked! We want to collapse any\n // hierarchical navigation UI it's a part of, so that the user\n // can focus on whatever they've just selected.\n\n // Some navigation links are inside accordions; when they're\n // clicked, we want to collapse those accordions.\n const acc = this.closest(accordion.ACCORDION);\n\n if (acc) {\n accordion.getButtons(acc).forEach((btn) => accordion.hide(btn));\n }\n\n // If the mobile navigation menu is active, we want to hide it.\n if (isActive()) {\n navigation.toggleNav.call(navigation, false);\n }\n },\n },\n },\n {\n init(root) {\n const trapContainer = root.querySelector(NAV);\n\n if (trapContainer) {\n navigation.focusTrap = FocusTrap(trapContainer, {\n Escape: onMenuClose,\n });\n }\n\n resize();\n window.addEventListener(\"resize\", resize, false);\n },\n teardown() {\n window.removeEventListener(\"resize\", resize, false);\n navActive = false;\n },\n focusTrap: null,\n toggleNav,\n }\n);\n\nmodule.exports = navigation;\n","const behavior = require(\"../utils/behavior\");\nconst toggleFormInput = require(\"../utils/toggle-form-input\");\n\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst LINK = `.${PREFIX}-show-password, .${PREFIX}-show-multipassword`;\n\nfunction toggle(event) {\n event.preventDefault();\n toggleFormInput(this);\n}\n\nmodule.exports = behavior({\n [CLICK]: {\n [LINK]: toggle,\n },\n});\n","const ignore = require(\"receptor/ignore\");\nconst behavior = require(\"../utils/behavior\");\nconst select = require(\"../utils/select\");\n\nconst { CLICK } = require(\"../events\");\n\nconst BUTTON = \".js-search-button\";\nconst FORM = \".js-search-form\";\nconst INPUT = \"[type=search]\";\nconst CONTEXT = \"header\"; // XXX\n\nlet lastButton;\n\nconst getForm = (button) => {\n const context = button.closest(CONTEXT);\n return context ? context.querySelector(FORM) : document.querySelector(FORM);\n};\n\nconst toggleSearch = (button, active) => {\n const form = getForm(button);\n\n if (!form) {\n throw new Error(`No ${FORM} found for search toggle in ${CONTEXT}!`);\n }\n\n /* eslint-disable no-param-reassign */\n button.hidden = active;\n form.hidden = !active;\n /* eslint-enable */\n\n if (!active) {\n return;\n }\n\n const input = form.querySelector(INPUT);\n\n if (input) {\n input.focus();\n }\n // when the user clicks _outside_ of the form w/ignore(): hide the\n // search, then remove the listener\n const listener = ignore(form, () => {\n if (lastButton) {\n hideSearch.call(lastButton); // eslint-disable-line no-use-before-define\n }\n\n document.body.removeEventListener(CLICK, listener);\n });\n\n // Normally we would just run this code without a timeout, but\n // IE11 and Edge will actually call the listener *immediately* because\n // they are currently handling this exact type of event, so we'll\n // make sure the browser is done handling the current click event,\n // if any, before we attach the listener.\n setTimeout(() => {\n document.body.addEventListener(CLICK, listener);\n }, 0);\n};\n\nfunction showSearch() {\n toggleSearch(this, true);\n lastButton = this;\n}\n\nfunction hideSearch() {\n toggleSearch(this, false);\n lastButton = undefined;\n}\n\nconst search = behavior(\n {\n [CLICK]: {\n [BUTTON]: showSearch,\n },\n },\n {\n init(target) {\n select(BUTTON, target).forEach((button) => {\n toggleSearch(button, false);\n });\n },\n teardown() {\n // forget the last button clicked\n lastButton = undefined;\n },\n }\n);\n\nmodule.exports = search;\n","const once = require(\"receptor/once\");\nconst behavior = require(\"../utils/behavior\");\nconst { CLICK } = require(\"../events\");\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst LINK = `.${PREFIX}-skipnav[href^=\"#\"], .${PREFIX}-footer__return-to-top [href^=\"#\"]`;\nconst MAINCONTENT = \"main-content\";\n\nfunction setTabindex() {\n // NB: we know because of the selector we're delegating to below that the\n // href already begins with '#'\n const id = this.getAttribute(\"href\");\n const target = document.getElementById(\n id === \"#\" ? MAINCONTENT : id.slice(1)\n );\n\n if (target) {\n target.style.outline = \"0\";\n target.setAttribute(\"tabindex\", 0);\n target.focus();\n target.addEventListener(\n \"blur\",\n once(() => {\n target.setAttribute(\"tabindex\", -1);\n })\n );\n } else {\n // throw an error?\n }\n}\n\nmodule.exports = behavior({\n [CLICK]: {\n [LINK]: setTabindex,\n },\n});\n","const behavior = require(\"../utils/behavior\");\nconst select = require(\"../utils/select\");\nconst { prefix: PREFIX } = require(\"../config\");\nconst { COMBO_BOX_CLASS, enhanceComboBox } = require(\"./combo-box\");\n\nconst TIME_PICKER_CLASS = `${PREFIX}-time-picker`;\nconst TIME_PICKER = `.${TIME_PICKER_CLASS}`;\nconst MAX_TIME = 60 * 24 - 1;\nconst MIN_TIME = 0;\nconst DEFAULT_STEP = 30;\nconst MIN_STEP = 1;\n\nconst FILTER_DATASET = {\n filter:\n \"0?{{ hourQueryFilter }}:{{minuteQueryFilter}}.*{{ apQueryFilter }}m?\",\n apQueryFilter: \"([ap])\",\n hourQueryFilter: \"([1-9][0-2]?)\",\n minuteQueryFilter: \"[\\\\d]+:([0-9]{0,2})\",\n};\n\n/**\n * Parse a string of hh:mm into minutes\n *\n * @param {string} timeStr the time string to parse\n * @returns {number} the number of minutes\n */\nconst parseTimeString = (timeStr) => {\n let minutes;\n\n if (timeStr) {\n const [hours, mins] = timeStr.split(\":\").map((str) => {\n let value;\n const parsed = parseInt(str, 10);\n if (!Number.isNaN(parsed)) value = parsed;\n return value;\n });\n\n if (hours != null && mins != null) {\n minutes = hours * 60 + mins;\n }\n }\n\n return minutes;\n};\n\n/**\n * Enhance an input with the date picker elements\n *\n * @param {HTMLElement} el The initial wrapping element of the date picker component\n */\nconst transformTimePicker = (el) => {\n const timePickerEl = el.closest(TIME_PICKER);\n\n const initialInputEl = timePickerEl.querySelector(`input`);\n\n if (!initialInputEl) {\n throw new Error(`${TIME_PICKER} is missing inner input`);\n }\n\n const selectEl = document.createElement(\"select\");\n\n [\"id\", \"name\", \"required\", \"aria-label\", \"aria-labelledby\"].forEach(\n (name) => {\n if (initialInputEl.hasAttribute(name)) {\n const value = initialInputEl.getAttribute(name);\n selectEl.setAttribute(name, value);\n initialInputEl.removeAttribute(name);\n }\n }\n );\n\n const padZeros = (value, length) => {\n return `0000${value}`.slice(-length);\n };\n\n const getTimeContext = (minutes) => {\n const minute = minutes % 60;\n const hour24 = Math.floor(minutes / 60);\n const hour12 = hour24 % 12 || 12;\n const ampm = hour24 < 12 ? \"am\" : \"pm\";\n\n return {\n minute,\n hour24,\n hour12,\n ampm,\n };\n };\n\n const minTime = Math.max(\n MIN_TIME,\n parseTimeString(timePickerEl.dataset.minTime) || MIN_TIME\n );\n const maxTime = Math.min(\n MAX_TIME,\n parseTimeString(timePickerEl.dataset.maxTime) || MAX_TIME\n );\n const step = Math.floor(\n Math.max(MIN_STEP, timePickerEl.dataset.step || DEFAULT_STEP)\n );\n\n for (let time = minTime; time <= maxTime; time += step) {\n const { minute, hour24, hour12, ampm } = getTimeContext(time);\n\n const option = document.createElement(\"option\");\n option.value = `${padZeros(hour24, 2)}:${padZeros(minute, 2)}`;\n option.text = `${hour12}:${padZeros(minute, 2)}${ampm}`;\n selectEl.appendChild(option);\n }\n\n timePickerEl.classList.add(COMBO_BOX_CLASS);\n\n // combo box properties\n Object.keys(FILTER_DATASET).forEach((key) => {\n timePickerEl.dataset[key] = FILTER_DATASET[key];\n });\n timePickerEl.dataset.disableFiltering = \"true\";\n\n timePickerEl.appendChild(selectEl);\n initialInputEl.style.display = \"none\";\n};\n\nconst timePicker = behavior(\n {},\n {\n init(root) {\n select(TIME_PICKER, root).forEach((timePickerEl) => {\n transformTimePicker(timePickerEl);\n enhanceComboBox(timePickerEl);\n });\n },\n FILTER_DATASET,\n }\n);\n\nmodule.exports = timePicker;\n","// Tooltips\nconst select = require(\"../utils/select\");\nconst behavior = require(\"../utils/behavior\");\nconst { prefix: PREFIX } = require(\"../config\");\nconst isElementInViewport = require(\"../utils/is-in-viewport\");\n\nconst TOOLTIP = `.${PREFIX}-tooltip`;\nconst TOOLTIP_TRIGGER_CLASS = `${PREFIX}-tooltip__trigger`;\nconst TOOLTIP_CLASS = `${PREFIX}-tooltip`;\nconst TOOLTIP_BODY_CLASS = `${PREFIX}-tooltip__body`;\nconst SET_CLASS = \"is-set\";\nconst VISIBLE_CLASS = \"is-visible\";\nconst TRIANGLE_SIZE = 5;\nconst SPACER = 2;\nconst ADJUST_WIDTH_CLASS = `${PREFIX}-tooltip__body--wrap`;\n\n/**\n * Add one or more listeners to an element\n * @param {DOMElement} element - DOM element to add listeners to\n * @param {events} eventNames - space separated list of event names, e.g. 'click change'\n * @param {Function} listener - function to attach for each event as a listener\n */\nconst addListenerMulti = (element, eventNames, listener) => {\n const events = eventNames.split(\" \");\n for (let i = 0, iLen = events.length; i < iLen; i += 1) {\n element.addEventListener(events[i], listener, false);\n }\n};\n\n/**\n * Shows the tooltip\n * @param {HTMLElement} tooltipTrigger - the element that initializes the tooltip\n */\nconst showToolTip = (tooltipBody, tooltipTrigger, position, wrapper) => {\n tooltipBody.setAttribute(\"aria-hidden\", \"false\");\n\n // This sets up the tooltip body. The opacity is 0, but\n // we can begin running the calculations below.\n tooltipBody.classList.add(SET_CLASS);\n\n // Calculate sizing and adjustments for positioning\n const tooltipWidth = tooltipTrigger.offsetWidth;\n const tooltipHeight = tooltipTrigger.offsetHeight;\n const offsetForTopMargin = parseInt(\n window.getComputedStyle(tooltipTrigger).getPropertyValue(\"margin-top\"),\n 10\n );\n const offsetForBottomMargin = parseInt(\n window.getComputedStyle(tooltipTrigger).getPropertyValue(\"margin-bottom\"),\n 10\n );\n const offsetForTopPadding = parseInt(\n window.getComputedStyle(wrapper).getPropertyValue(\"padding-top\"),\n 10\n );\n const offsetForBottomPadding = parseInt(\n window.getComputedStyle(wrapper).getPropertyValue(\"padding-bottom\"),\n 10\n );\n const offsetForTooltipBodyHeight = parseInt(\n window.getComputedStyle(tooltipBody).getPropertyValue(\"height\"),\n 10\n );\n const leftOffset = tooltipTrigger.offsetLeft;\n const toolTipBodyWidth = tooltipBody.offsetWidth;\n const adjustHorizontalCenter = tooltipWidth / 2 + leftOffset;\n const adjustToEdgeX = tooltipWidth + TRIANGLE_SIZE + SPACER;\n const adjustToEdgeY = tooltipHeight + TRIANGLE_SIZE + SPACER;\n\n /**\n * Position the tooltip body when the trigger is hovered\n * Removes old positioning classnames and reapplies. This allows\n * positioning to change in case the user resizes browser or DOM manipulation\n * causes tooltip to get clipped from viewport\n *\n * @param {string} setPos - can be \"top\", \"bottom\", \"right\", \"left\"\n */\n const setPositionClass = (setPos) => {\n tooltipBody.classList.remove(`${TOOLTIP_BODY_CLASS}--top`);\n tooltipBody.classList.remove(`${TOOLTIP_BODY_CLASS}--bottom`);\n tooltipBody.classList.remove(`${TOOLTIP_BODY_CLASS}--right`);\n tooltipBody.classList.remove(`${TOOLTIP_BODY_CLASS}--left`);\n tooltipBody.classList.add(`${TOOLTIP_BODY_CLASS}--${setPos}`);\n };\n\n /**\n * Positions tooltip at the top\n * We check if the element is in the viewport so we know whether or not we\n * need to constrain the width\n * @param {HTMLElement} e - this is the tooltip body\n */\n const positionTop = (e) => {\n setPositionClass(\"top\");\n e.style.marginLeft = `${adjustHorizontalCenter}px`;\n if (!isElementInViewport(e)) {\n e.classList.add(ADJUST_WIDTH_CLASS);\n }\n e.style.marginBottom = `${\n adjustToEdgeY + offsetForBottomMargin + offsetForBottomPadding\n }px`;\n };\n\n /**\n * Positions tooltip at the bottom\n * We check if the element is in theviewport so we know whether or not we\n * need to constrain the width\n * @param {HTMLElement} e - this is the tooltip body\n */\n const positionBottom = (e) => {\n setPositionClass(\"bottom\");\n e.style.marginLeft = `${adjustHorizontalCenter}px`;\n if (!isElementInViewport(e)) {\n e.classList.add(ADJUST_WIDTH_CLASS);\n }\n e.style.marginTop = `${\n adjustToEdgeY + offsetForTopMargin + offsetForTopPadding\n }px`;\n };\n\n /**\n * Positions tooltip at the right\n * @param {HTMLElement} e - this is the tooltip body\n */\n const positionRight = (e) => {\n setPositionClass(\"right\");\n e.style.marginBottom = \"0\";\n e.style.marginLeft = `${adjustToEdgeX + leftOffset}px`;\n e.style.bottom = `${\n (tooltipHeight - offsetForTooltipBodyHeight) / 2 +\n offsetForBottomMargin +\n offsetForBottomPadding\n }px`;\n return false;\n };\n\n /**\n * Positions tooltip at the right\n * @param {HTMLElement} e - this is the tooltip body\n */\n const positionLeft = (e) => {\n setPositionClass(\"left\");\n e.style.marginBottom = \"0\";\n if (leftOffset > toolTipBodyWidth) {\n e.style.marginLeft = `${\n leftOffset - toolTipBodyWidth - (TRIANGLE_SIZE + SPACER)\n }px`;\n } else {\n e.style.marginLeft = `-${\n toolTipBodyWidth - leftOffset + (TRIANGLE_SIZE + SPACER)\n }px`;\n }\n e.style.bottom = `${\n (tooltipHeight - offsetForTooltipBodyHeight) / 2 +\n offsetForBottomMargin +\n offsetForBottomPadding\n }px`;\n };\n\n /**\n * We try to set the position based on the\n * original intention, but make adjustments\n * if the element is clipped out of the viewport\n */\n switch (position) {\n case \"top\":\n positionTop(tooltipBody);\n if (!isElementInViewport(tooltipBody)) {\n positionBottom(tooltipBody);\n }\n break;\n case \"bottom\":\n positionBottom(tooltipBody);\n if (!isElementInViewport(tooltipBody)) {\n positionTop(tooltipBody);\n }\n break;\n case \"right\":\n positionRight(tooltipBody);\n if (!isElementInViewport(tooltipBody)) {\n positionLeft(tooltipBody);\n if (!isElementInViewport(tooltipBody)) {\n positionTop(tooltipBody);\n }\n }\n break;\n case \"left\":\n positionLeft(tooltipBody);\n if (!isElementInViewport(tooltipBody)) {\n positionRight(tooltipBody);\n if (!isElementInViewport(tooltipBody)) {\n positionTop(tooltipBody);\n }\n }\n break;\n\n default:\n // skip default case\n break;\n }\n\n /**\n * Actually show the tooltip. The VISIBLE_CLASS\n * will change the opacity to 1\n */\n setTimeout(function makeVisible() {\n tooltipBody.classList.add(VISIBLE_CLASS);\n }, 20);\n};\n\n/**\n * Removes all the properties to show and position the tooltip,\n * and resets the tooltip position to the original intention\n * in case the window is resized or the element is moved through\n * DOM maniulation.\n * @param {HTMLElement} tooltipBody - The body of the tooltip\n */\nconst hideToolTip = (tooltipBody) => {\n tooltipBody.classList.remove(VISIBLE_CLASS);\n tooltipBody.classList.remove(SET_CLASS);\n tooltipBody.classList.remove(ADJUST_WIDTH_CLASS);\n tooltipBody.setAttribute(\"aria-hidden\", \"true\");\n};\n\n/**\n * Setup the tooltip component\n * @param {HTMLElement} tooltipTrigger The element that creates the tooltip\n */\nconst setUpAttributes = (tooltipTrigger) => {\n const tooltipID = `tooltip-${Math.floor(Math.random() * 900000) + 100000}`;\n const tooltipContent = tooltipTrigger.getAttribute(\"title\");\n const wrapper = document.createElement(\"span\");\n const tooltipBody = document.createElement(\"span\");\n const position = tooltipTrigger.getAttribute(\"data-position\")\n ? tooltipTrigger.getAttribute(\"data-position\")\n : \"top\";\n const additionalClasses = tooltipTrigger.getAttribute(\"data-classes\");\n\n // Set up tooltip attributes\n tooltipTrigger.setAttribute(\"aria-describedby\", tooltipID);\n tooltipTrigger.setAttribute(\"tabindex\", \"0\");\n tooltipTrigger.setAttribute(\"title\", \"\");\n tooltipTrigger.classList.remove(TOOLTIP_CLASS);\n tooltipTrigger.classList.add(TOOLTIP_TRIGGER_CLASS);\n\n // insert wrapper before el in the DOM tree\n tooltipTrigger.parentNode.insertBefore(wrapper, tooltipTrigger);\n\n // set up the wrapper\n wrapper.appendChild(tooltipTrigger);\n wrapper.classList.add(TOOLTIP_CLASS);\n wrapper.appendChild(tooltipBody);\n\n // Apply additional class names to wrapper element\n if (additionalClasses) {\n const classesArray = additionalClasses.split(\" \");\n classesArray.forEach((classname) => wrapper.classList.add(classname));\n }\n\n // set up the tooltip body\n tooltipBody.classList.add(TOOLTIP_BODY_CLASS);\n tooltipBody.setAttribute(\"id\", tooltipID);\n tooltipBody.setAttribute(\"role\", \"tooltip\");\n tooltipBody.setAttribute(\"aria-hidden\", \"true\");\n\n // place the text in the tooltip\n tooltipBody.innerHTML = tooltipContent;\n\n return { tooltipBody, position, tooltipContent, wrapper };\n};\n\n// Setup our function to run on various events\nconst tooltip = behavior(\n {},\n {\n init(root) {\n select(TOOLTIP, root).forEach((tooltipTrigger) => {\n const {\n tooltipBody,\n position,\n tooltipContent,\n wrapper,\n } = setUpAttributes(tooltipTrigger);\n\n if (tooltipContent) {\n // Listeners for showing and hiding the tooltip\n addListenerMulti(\n tooltipTrigger,\n \"mouseenter focus\",\n function handleShow() {\n showToolTip(tooltipBody, tooltipTrigger, position, wrapper);\n return false;\n }\n );\n\n // Keydown here prevents tooltips from being read twice by screen reader. also allows excape key to close it (along with any other.)\n addListenerMulti(\n tooltipTrigger,\n \"mouseleave blur keydown\",\n function handleHide() {\n hideToolTip(tooltipBody);\n return false;\n }\n );\n } else {\n // throw error or let other tooltips on page function?\n }\n });\n },\n }\n);\n\nmodule.exports = tooltip;\n","const behavior = require(\"../utils/behavior\");\nconst validate = require(\"../utils/validate-input\");\n\nfunction change() {\n validate(this);\n}\n\nconst validator = behavior({\n \"keyup change\": {\n \"input[data-validation-element]\": change,\n },\n});\n\nmodule.exports = validator;\n","module.exports = {\n prefix: \"usa\",\n};\n","module.exports = {\n // This used to be conditionally dependent on whether the\n // browser supported touch events; if it did, `CLICK` was set to\n // `touchstart`. However, this had downsides:\n //\n // * It pre-empted mobile browsers' default behavior of detecting\n // whether a touch turned into a scroll, thereby preventing\n // users from using some of our components as scroll surfaces.\n //\n // * Some devices, such as the Microsoft Surface Pro, support *both*\n // touch and clicks. This meant the conditional effectively dropped\n // support for the user's mouse, frustrating users who preferred\n // it on those systems.\n CLICK: \"click\",\n};\n","/* eslint-disable consistent-return */\n/* eslint-disable func-names */\n(function () {\n if (typeof window.CustomEvent === \"function\") return false;\n\n function CustomEvent(event, _params) {\n const params = _params || {\n bubbles: false,\n cancelable: false,\n detail: null,\n };\n const evt = document.createEvent(\"CustomEvent\");\n evt.initCustomEvent(\n event,\n params.bubbles,\n params.cancelable,\n params.detail\n );\n return evt;\n }\n\n window.CustomEvent = CustomEvent;\n})();\n","const elproto = window.HTMLElement.prototype;\nconst HIDDEN = \"hidden\";\n\nif (!(HIDDEN in elproto)) {\n Object.defineProperty(elproto, HIDDEN, {\n get() {\n return this.hasAttribute(HIDDEN);\n },\n set(value) {\n if (value) {\n this.setAttribute(HIDDEN, \"\");\n } else {\n this.removeAttribute(HIDDEN);\n }\n },\n });\n}\n","// polyfills HTMLElement.prototype.classList and DOMTokenList\nrequire(\"classlist-polyfill\");\n// polyfills HTMLElement.prototype.hidden\nrequire(\"./element-hidden\");\n// polyfills Number.isNaN()\nrequire(\"./number-is-nan\");\n// polyfills CustomEvent\nrequire(\"./custom-event\");\n","Number.isNaN =\n Number.isNaN ||\n function isNaN(input) {\n // eslint-disable-next-line no-self-compare\n return typeof input === \"number\" && input !== input;\n };\n","const domready = require(\"domready\");\n\n/**\n * The 'polyfills' define key ECMAScript 5 methods that may be missing from\n * older browsers, so must be loaded first.\n */\nrequire(\"./polyfills\");\n\nconst uswds = require(\"./config\");\n\nconst components = require(\"./components\");\n\nuswds.components = components;\n\ndomready(() => {\n const target = document.body;\n Object.keys(components).forEach((key) => {\n const behavior = components[key];\n behavior.on(target);\n });\n});\n\nmodule.exports = uswds;\n","module.exports = (htmlDocument = document) => htmlDocument.activeElement;\n","const assign = require(\"object-assign\");\nconst Behavior = require(\"receptor/behavior\");\n\n/**\n * @name sequence\n * @param {...Function} seq an array of functions\n * @return { closure } callHooks\n */\n// We use a named function here because we want it to inherit its lexical scope\n// from the behavior props object, not from the module\nconst sequence = (...seq) =>\n function callHooks(target = document.body) {\n seq.forEach((method) => {\n if (typeof this[method] === \"function\") {\n this[method].call(this, target);\n }\n });\n };\n\n/**\n * @name behavior\n * @param {object} events\n * @param {object?} props\n * @return {receptor.behavior}\n */\nmodule.exports = (events, props) =>\n Behavior(\n events,\n assign(\n {\n on: sequence(\"init\", \"add\"),\n off: sequence(\"teardown\", \"remove\"),\n },\n props\n )\n );\n","const assign = require(\"object-assign\");\nconst { keymap } = require(\"receptor\");\nconst behavior = require(\"./behavior\");\nconst select = require(\"./select\");\nconst activeElement = require(\"./active-element\");\n\nconst FOCUSABLE =\n 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex=\"0\"], [contenteditable]';\n\nconst tabHandler = (context) => {\n const focusableElements = select(FOCUSABLE, context);\n const firstTabStop = focusableElements[0];\n const lastTabStop = focusableElements[focusableElements.length - 1];\n\n // Special rules for when the user is tabbing forward from the last focusable element,\n // or when tabbing backwards from the first focusable element\n function tabAhead(event) {\n if (activeElement() === lastTabStop) {\n event.preventDefault();\n firstTabStop.focus();\n }\n }\n\n function tabBack(event) {\n if (activeElement() === firstTabStop) {\n event.preventDefault();\n lastTabStop.focus();\n }\n }\n\n return {\n firstTabStop,\n lastTabStop,\n tabAhead,\n tabBack,\n };\n};\n\nmodule.exports = (context, additionalKeyBindings = {}) => {\n const tabEventHandler = tabHandler(context);\n const bindings = additionalKeyBindings;\n const { Esc, Escape } = bindings;\n\n if (Escape && !Esc) bindings.Esc = Escape;\n\n // TODO: In the future, loop over additional keybindings and pass an array\n // of functions, if necessary, to the map keys. Then people implementing\n // the focus trap could pass callbacks to fire when tabbing\n const keyMappings = keymap(\n assign(\n {\n Tab: tabEventHandler.tabAhead,\n \"Shift+Tab\": tabEventHandler.tabBack,\n },\n additionalKeyBindings\n )\n );\n\n const focusTrap = behavior(\n {\n keydown: keyMappings,\n },\n {\n init() {\n // TODO: is this desireable behavior? Should the trap always do this by default or should\n // the component getting decorated handle this?\n tabEventHandler.firstTabStop.focus();\n },\n update(isActive) {\n if (isActive) {\n this.on();\n } else {\n this.off();\n }\n },\n }\n );\n\n return focusTrap;\n};\n","// https://stackoverflow.com/a/7557433\nfunction isElementInViewport(\n el,\n win = window,\n docEl = document.documentElement\n) {\n const rect = el.getBoundingClientRect();\n\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (win.innerHeight || docEl.clientHeight) &&\n rect.right <= (win.innerWidth || docEl.clientWidth)\n );\n}\n\nmodule.exports = isElementInViewport;\n","// iOS detection from: http://stackoverflow.com/a/9039885/177710\nfunction isIosDevice() {\n return (\n typeof navigator !== \"undefined\" &&\n (navigator.userAgent.match(/(iPod|iPhone|iPad)/g) ||\n (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1)) &&\n !window.MSStream\n );\n}\n\nmodule.exports = isIosDevice;\n","/**\n * @name isElement\n * @desc returns whether or not the given argument is a DOM element.\n * @param {any} value\n * @return {boolean}\n */\nconst isElement = (value) =>\n value && typeof value === \"object\" && value.nodeType === 1;\n\n/**\n * @name select\n * @desc selects elements from the DOM by class selector or ID selector.\n * @param {string} selector - The selector to traverse the DOM with.\n * @param {Document|HTMLElement?} context - The context to traverse the DOM\n * in. If not provided, it defaults to the document.\n * @return {HTMLElement[]} - An array of DOM nodes or an empty array.\n */\nmodule.exports = (selector, context) => {\n if (typeof selector !== \"string\") {\n return [];\n }\n\n if (!context || !isElement(context)) {\n context = window.document; // eslint-disable-line no-param-reassign\n }\n\n const selection = context.querySelectorAll(selector);\n return Array.prototype.slice.call(selection);\n};\n","/**\n * Flips given INPUT elements between masked (hiding the field value) and unmasked\n * @param {Array.HTMLElement} fields - An array of INPUT elements\n * @param {Boolean} mask - Whether the mask should be applied, hiding the field value\n */\nmodule.exports = (field, mask) => {\n field.setAttribute(\"autocapitalize\", \"off\");\n field.setAttribute(\"autocorrect\", \"off\");\n field.setAttribute(\"type\", mask ? \"password\" : \"text\");\n};\n","const resolveIdRefs = require(\"resolve-id-refs\");\nconst toggleFieldMask = require(\"./toggle-field-mask\");\n\nconst CONTROLS = \"aria-controls\";\nconst PRESSED = \"aria-pressed\";\nconst SHOW_ATTR = \"data-show-text\";\nconst HIDE_ATTR = \"data-hide-text\";\n\n/**\n * Replace the word \"Show\" (or \"show\") with \"Hide\" (or \"hide\") in a string.\n * @param {string} showText\n * @return {strong} hideText\n */\nconst getHideText = (showText) =>\n showText.replace(/\\bShow\\b/i, (show) => `${show[0] === \"S\" ? \"H\" : \"h\"}ide`);\n\n/**\n * Component that decorates an HTML element with the ability to toggle the\n * masked state of an input field (like a password) when clicked.\n * The ids of the fields to be masked will be pulled directly from the button's\n * `aria-controls` attribute.\n *\n * @param {HTMLElement} el Parent element containing the fields to be masked\n * @return {boolean}\n */\nmodule.exports = (el) => {\n // this is the *target* state:\n // * if the element has the attr and it's !== \"true\", pressed is true\n // * otherwise, pressed is false\n const pressed =\n el.hasAttribute(PRESSED) && el.getAttribute(PRESSED) !== \"true\";\n\n const fields = resolveIdRefs(el.getAttribute(CONTROLS));\n fields.forEach((field) => toggleFieldMask(field, pressed));\n\n if (!el.hasAttribute(SHOW_ATTR)) {\n el.setAttribute(SHOW_ATTR, el.textContent);\n }\n\n const showText = el.getAttribute(SHOW_ATTR);\n const hideText = el.getAttribute(HIDE_ATTR) || getHideText(showText);\n\n el.textContent = pressed ? showText : hideText; // eslint-disable-line no-param-reassign\n el.setAttribute(PRESSED, pressed);\n return pressed;\n};\n","const EXPANDED = \"aria-expanded\";\nconst CONTROLS = \"aria-controls\";\nconst HIDDEN = \"hidden\";\n\nmodule.exports = (button, expanded) => {\n let safeExpanded = expanded;\n\n if (typeof safeExpanded !== \"boolean\") {\n safeExpanded = button.getAttribute(EXPANDED) === \"false\";\n }\n\n button.setAttribute(EXPANDED, safeExpanded);\n\n const id = button.getAttribute(CONTROLS);\n const controls = document.getElementById(id);\n if (!controls) {\n throw new Error(`No toggle target found with id: \"${id}\"`);\n }\n\n if (safeExpanded) {\n controls.removeAttribute(HIDDEN);\n } else {\n controls.setAttribute(HIDDEN, \"\");\n }\n\n return safeExpanded;\n};\n","const dataset = require(\"elem-dataset\");\n\nconst { prefix: PREFIX } = require(\"../config\");\n\nconst CHECKED = \"aria-checked\";\nconst CHECKED_CLASS = `${PREFIX}-checklist__item--checked`;\n\nmodule.exports = function validate(el) {\n const data = dataset(el);\n const id = data.validationElement;\n const checkList =\n id.charAt(0) === \"#\"\n ? document.querySelector(id)\n : document.getElementById(id);\n\n if (!checkList) {\n throw new Error(`No validation element found with id: \"${id}\"`);\n }\n\n Object.entries(data).forEach(([key, value]) => {\n if (key.startsWith(\"validate\")) {\n const validatorName = key.substr(\"validate\".length).toLowerCase();\n const validatorPattern = new RegExp(value);\n const validatorSelector = `[data-validator=\"${validatorName}\"]`;\n const validatorCheckbox = checkList.querySelector(validatorSelector);\n\n if (!validatorCheckbox) {\n throw new Error(`No validator checkbox found for: \"${validatorName}\"`);\n }\n\n const checked = validatorPattern.test(el.value);\n validatorCheckbox.classList.toggle(CHECKED_CLASS, checked);\n validatorCheckbox.setAttribute(CHECKED, checked);\n }\n });\n};\n"]}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uswds-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Allen
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2020-
|
15
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: jekyll
|
@@ -34,6 +34,20 @@ dependencies:
|
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '5'
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: jekyll-autoprefixer
|
39
|
+
requirement: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
37
51
|
- !ruby/object:Gem::Dependency
|
38
52
|
name: bundler
|
39
53
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +136,7 @@ files:
|
|
122
136
|
- _sass/uswds/src/components/_accordions.scss
|
123
137
|
- _sass/uswds/src/components/_alerts.scss
|
124
138
|
- _sass/uswds/src/components/_banner.scss
|
139
|
+
- _sass/uswds/src/components/_breadcrumb.scss
|
125
140
|
- _sass/uswds/src/components/_button-groups.scss
|
126
141
|
- _sass/uswds/src/components/_card.scss
|
127
142
|
- _sass/uswds/src/components/_checklist.scss
|
@@ -130,6 +145,7 @@ files:
|
|
130
145
|
- _sass/uswds/src/components/_graphic-list.scss
|
131
146
|
- _sass/uswds/src/components/_header.scss
|
132
147
|
- _sass/uswds/src/components/_hero.scss
|
148
|
+
- _sass/uswds/src/components/_identifier.scss
|
133
149
|
- _sass/uswds/src/components/_layout.scss
|
134
150
|
- _sass/uswds/src/components/_media-block.scss
|
135
151
|
- _sass/uswds/src/components/_megamenu.scss
|
@@ -140,6 +156,8 @@ files:
|
|
140
156
|
- _sass/uswds/src/components/_section.scss
|
141
157
|
- _sass/uswds/src/components/_sidenav.scss
|
142
158
|
- _sass/uswds/src/components/_skipnav.scss
|
159
|
+
- _sass/uswds/src/components/_step-indicator.scss
|
160
|
+
- _sass/uswds/src/components/_tooltip.scss
|
143
161
|
- _sass/uswds/src/core/_defaults.scss
|
144
162
|
- _sass/uswds/src/core/_deprecated.scss
|
145
163
|
- _sass/uswds/src/core/_functions.scss
|
@@ -153,6 +171,7 @@ files:
|
|
153
171
|
- _sass/uswds/src/core/mixins/_add-checkbox-placeholder.scss
|
154
172
|
- _sass/uswds/src/core/mixins/_add-kerning.scss
|
155
173
|
- _sass/uswds/src/core/mixins/_add-knockout-font-smoothing.scss
|
174
|
+
- _sass/uswds/src/core/mixins/_add-link-styles.scss
|
156
175
|
- _sass/uswds/src/core/mixins/_add-list-reset.scss
|
157
176
|
- _sass/uswds/src/core/mixins/_add-responsive-site-margins.scss
|
158
177
|
- _sass/uswds/src/core/mixins/_add-success-mark.scss
|
@@ -173,6 +192,8 @@ files:
|
|
173
192
|
- _sass/uswds/src/core/mixins/_nav-list.scss
|
174
193
|
- _sass/uswds/src/core/mixins/_override-prose.scss
|
175
194
|
- _sass/uswds/src/core/mixins/_screen-reader.scss
|
195
|
+
- _sass/uswds/src/core/mixins/_set-link-from-bg.scss
|
196
|
+
- _sass/uswds/src/core/mixins/_set-text-from-bg.scss
|
176
197
|
- _sass/uswds/src/core/mixins/_typography.scss
|
177
198
|
- _sass/uswds/src/core/mixins/_unstyled-list.scss
|
178
199
|
- _sass/uswds/src/core/mixins/_usa-list-styles.scss
|
@@ -182,6 +203,7 @@ files:
|
|
182
203
|
- _sass/uswds/src/core/mixins/layout-grid/_grid-container.scss
|
183
204
|
- _sass/uswds/src/core/mixins/layout-grid/_grid-row.scss
|
184
205
|
- _sass/uswds/src/core/mixins/utilities/_align-items.scss
|
206
|
+
- _sass/uswds/src/core/mixins/utilities/_align-self.scss
|
185
207
|
- _sass/uswds/src/core/mixins/utilities/_background-color.scss
|
186
208
|
- _sass/uswds/src/core/mixins/utilities/_border-color.scss
|
187
209
|
- _sass/uswds/src/core/mixins/utilities/_border-radius.scss
|
@@ -266,11 +288,13 @@ files:
|
|
266
288
|
- _sass/uswds/src/elements/form-controls/_checkbox-and-radio.scss
|
267
289
|
- _sass/uswds/src/elements/form-controls/_combo-box.scss
|
268
290
|
- _sass/uswds/src/elements/form-controls/_date-input.scss
|
291
|
+
- _sass/uswds/src/elements/form-controls/_date-picker.scss
|
269
292
|
- _sass/uswds/src/elements/form-controls/_dropdown.scss
|
270
293
|
- _sass/uswds/src/elements/form-controls/_file-input.scss
|
271
294
|
- _sass/uswds/src/elements/form-controls/_global.scss
|
272
295
|
- _sass/uswds/src/elements/form-controls/_range-input.scss
|
273
296
|
- _sass/uswds/src/elements/form-controls/_text-input.scss
|
297
|
+
- _sass/uswds/src/elements/form-controls/_time-picker.scss
|
274
298
|
- _sass/uswds/src/elements/typography/_content.scss
|
275
299
|
- _sass/uswds/src/elements/typography/_links.scss
|
276
300
|
- _sass/uswds/src/elements/typography/_list.scss
|
@@ -289,6 +313,7 @@ files:
|
|
289
313
|
- _sass/uswds/src/packages/_usa-accordion.scss
|
290
314
|
- _sass/uswds/src/packages/_usa-alert.scss
|
291
315
|
- _sass/uswds/src/packages/_usa-banner.scss
|
316
|
+
- _sass/uswds/src/packages/_usa-breadcrumb.scss
|
292
317
|
- _sass/uswds/src/packages/_usa-button-group.scss
|
293
318
|
- _sass/uswds/src/packages/_usa-button.scss
|
294
319
|
- _sass/uswds/src/packages/_usa-card.scss
|
@@ -296,6 +321,7 @@ files:
|
|
296
321
|
- _sass/uswds/src/packages/_usa-footer.scss
|
297
322
|
- _sass/uswds/src/packages/_usa-header.scss
|
298
323
|
- _sass/uswds/src/packages/_usa-hero.scss
|
324
|
+
- _sass/uswds/src/packages/_usa-identifier.scss
|
299
325
|
- _sass/uswds/src/packages/_usa-media-block.scss
|
300
326
|
- _sass/uswds/src/packages/_usa-megamenu.scss
|
301
327
|
- _sass/uswds/src/packages/_usa-nav-container.scss
|
@@ -304,8 +330,10 @@ files:
|
|
304
330
|
- _sass/uswds/src/packages/_usa-search.scss
|
305
331
|
- _sass/uswds/src/packages/_usa-sidenav.scss
|
306
332
|
- _sass/uswds/src/packages/_usa-skipnav.scss
|
333
|
+
- _sass/uswds/src/packages/_usa-step-indicator.scss
|
307
334
|
- _sass/uswds/src/packages/_usa-table.scss
|
308
335
|
- _sass/uswds/src/packages/_usa-tag.scss
|
336
|
+
- _sass/uswds/src/packages/_usa-tooltip.scss
|
309
337
|
- _sass/uswds/src/packages/_uswds-components.scss
|
310
338
|
- _sass/uswds/src/packages/_uswds-fonts.scss
|
311
339
|
- _sass/uswds/src/packages/_uswds-utilities.scss
|
@@ -363,6 +391,7 @@ files:
|
|
363
391
|
- _sass/uswds/src/utilities/rules/add-aspect.scss
|
364
392
|
- _sass/uswds/src/utilities/rules/add-list-reset.scss
|
365
393
|
- _sass/uswds/src/utilities/rules/align-items.scss
|
394
|
+
- _sass/uswds/src/utilities/rules/align-self.scss
|
366
395
|
- _sass/uswds/src/utilities/rules/background-color.scss
|
367
396
|
- _sass/uswds/src/utilities/rules/border-color.scss
|
368
397
|
- _sass/uswds/src/utilities/rules/border-radius.scss
|
@@ -572,25 +601,45 @@ files:
|
|
572
601
|
- assets/uswds/img/alerts/info.svg
|
573
602
|
- assets/uswds/img/alerts/success.svg
|
574
603
|
- assets/uswds/img/alerts/warning.svg
|
604
|
+
- assets/uswds/img/angle-arrow-down-gray-90.svg
|
575
605
|
- assets/uswds/img/angle-arrow-down-hover.svg
|
576
606
|
- assets/uswds/img/angle-arrow-down-primary-hover.svg
|
577
607
|
- assets/uswds/img/angle-arrow-down-primary.svg
|
578
608
|
- assets/uswds/img/angle-arrow-down-white.svg
|
579
609
|
- assets/uswds/img/angle-arrow-down.svg
|
610
|
+
- assets/uswds/img/angle-arrow-right-white.svg
|
611
|
+
- assets/uswds/img/angle-arrow-right.svg
|
580
612
|
- assets/uswds/img/angle-arrow-up-primary-hover.svg
|
581
613
|
- assets/uswds/img/angle-arrow-up-primary.svg
|
582
614
|
- assets/uswds/img/angle-arrow-up-white.svg
|
615
|
+
- assets/uswds/img/angle-double-left-solid.svg
|
616
|
+
- assets/uswds/img/angle-double-right-solid.svg
|
617
|
+
- assets/uswds/img/angle-left-solid.svg
|
618
|
+
- assets/uswds/img/angle-right-solid.svg
|
583
619
|
- assets/uswds/img/arrow-both.svg
|
620
|
+
- assets/uswds/img/arrow-down-gray-60.svg
|
584
621
|
- assets/uswds/img/arrow-down.svg
|
622
|
+
- assets/uswds/img/arrow-left-indigo-cool-50v.svg
|
623
|
+
- assets/uswds/img/arrow-left-white.svg
|
624
|
+
- assets/uswds/img/arrow-left.svg
|
585
625
|
- assets/uswds/img/arrow-right.svg
|
626
|
+
- assets/uswds/img/calendar-alt-solid.svg
|
586
627
|
- assets/uswds/img/checkbox-check-print.svg
|
628
|
+
- assets/uswds/img/chevron-right-white.svg
|
629
|
+
- assets/uswds/img/chevron-right.svg
|
630
|
+
- assets/uswds/img/chevron-white.svg
|
631
|
+
- assets/uswds/img/chevron.svg
|
587
632
|
- assets/uswds/img/circle-124.png
|
633
|
+
- assets/uswds/img/circle-gray-20.svg
|
634
|
+
- assets/uswds/img/close-alt-blue-60v.svg
|
635
|
+
- assets/uswds/img/close-alt.svg
|
588
636
|
- assets/uswds/img/close-blue-30-alt.svg
|
589
637
|
- assets/uswds/img/close-blue-40v-alt.svg
|
590
638
|
- assets/uswds/img/close-blue-50-alt.svg
|
591
639
|
- assets/uswds/img/close-blue-50v-alt.svg
|
592
640
|
- assets/uswds/img/close-blue-60-alt.svg
|
593
641
|
- assets/uswds/img/close-blue-60v-alt.svg
|
642
|
+
- assets/uswds/img/close-gray-60.svg
|
594
643
|
- assets/uswds/img/close-gray-90-alt.svg
|
595
644
|
- assets/uswds/img/close-primary.svg
|
596
645
|
- assets/uswds/img/close-white-alt.svg
|
@@ -613,9 +662,17 @@ files:
|
|
613
662
|
- assets/uswds/img/favicons/favicon-72.png
|
614
663
|
- assets/uswds/img/favicons/favicon.ico
|
615
664
|
- assets/uswds/img/favicons/favicon.png
|
665
|
+
- assets/uswds/img/file-excel.svg
|
666
|
+
- assets/uswds/img/file-pdf.svg
|
667
|
+
- assets/uswds/img/file-video.svg
|
668
|
+
- assets/uswds/img/file-word.svg
|
669
|
+
- assets/uswds/img/file.svg
|
616
670
|
- assets/uswds/img/hero.png
|
617
671
|
- assets/uswds/img/icon-dot-gov.svg
|
618
672
|
- assets/uswds/img/icon-https.svg
|
673
|
+
- assets/uswds/img/loader.gif
|
674
|
+
- assets/uswds/img/loader.svg
|
675
|
+
- assets/uswds/img/lock.svg
|
619
676
|
- assets/uswds/img/logo-img.png
|
620
677
|
- assets/uswds/img/minus-alt.svg
|
621
678
|
- assets/uswds/img/minus.svg
|