-
Notifications
You must be signed in to change notification settings - Fork 0
/
uswds.min.js
2 lines (2 loc) · 70.7 KB
/
uswds.min.js
1
2
!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]);
//# sourceMappingURL=uswds.min.js.map