!function(){function t(e,n,r){function o(u,c){if(!n){if(!e){var s=“function”==typeof require&&require;if(!c&&s)return s(u,!0);if(i)return i(u,!0);var a=new Error(“Cannot find module '”u
“'”);throw a.code=“MODULE_NOT_FOUND”,a}var f=n={exports:{}};e[0].call(f.exports,function(t){var n=e[1];return o(n?n:t)},f,f.exports,t,e,n,r)}return n.exports}for(var i=“function”==typeof require&&require,u=0;u]0x[0-9a-f]
$/i,p=/^0b+$/i,v=/^0o+$/i,b=parseInt,h=“object”==(“undefined”==typeof t?“undefined”:c(t))&&t&&t.Object===Object&&t,y=“object”==(“undefined”==typeof self?“undefined”:c(self))&&self&&self.Object===Object&&self,g=h||y||Function(“return this”)(),m=Object.prototype,w=m.toString,x=Math.max,E=Math.min,S=function(){return g.Date.now()};e.exports=n}).call(this,“undefined”!=typeof global?global:“undefined”!=typeof self?self:“undefined”!=typeof window?window:{})},{}],8:[function(t,e,n){“use strict”;function r(t){if(null===t||void 0===t)throw new TypeError(“Object.assign cannot be called with null or undefined”);return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String(“abc”);if(t=“de”,“5”===Object.getOwnPropertyNames(t))return!1;for(var e={},n=0;n<10;n++)e=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e});if(“0123456789”!==r.join(“”))return!1;var o={};return“abcdefghijklmnopqrst”.split(“”).forEach(function(t){o=t}),“abcdefghijklmnopqrst”===Object.keys(Object.assign({},o)).join(“”)}catch(i){return!1}}var i=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;e.exports=o()?Object.assign:function(t,e){for(var n,o,s=r(t),a=1;a<arguments.length;a++){n=Object(arguments);for(var f in n)u.call(n,f)&&(s=n);if(i){o=i(n);for(var l=0;lt
'”');return e})}},{}],16:[function(t,e,n){“use strict”;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t=n,t}var o=t(“../utils/behavior”),i=t(“array-filter”),u=t(“array-foreach”),c=t(“../utils/toggle”),s=t(“../utils/is-in-viewport”),a=t(“../events”).CLICK,f=t(“../config”).prefix,l=“.”f
“-accordion, .”f
“-accordion-bordered”,d=“.”f
“-accordion-button”,p=“aria-expanded”,v=“aria-multiselectable”,b=function(t,e){var n=t.closest(l);if(!n)throw new Error(d+“ is missing outer ”+l);e=c(t,e);var r=“true”===n.getAttribute(v);e&&!r&&u(g(n),function(e){e!==t&&c(e,!1)})},h=function(t){return b(t,!0)},y=function(t){return b(t,!1)},g=function(t){return i(t.querySelectorAll(d),function(e){return e.closest(l)===t})},m=o(r({},a,r({},d,function(t){t.preventDefault(),b(this),“true”===this.getAttribute(p)&&(s(this)||this.scrollIntoView())})),{init:function(t){u(t.querySelectorAll(d),function(t){var e=“true”===t.getAttribute(p);b(t,e)})},ACCORDION:l,BUTTON:d,show:h,hide:y,toggle:b,getButtons:g}),w=function(t){this.root=t,m.on(this.root)},x=t(“object-assign”);x(w,m),w.prototype.show=h,w.prototype.hide=y,w.prototype.remove=function(){m.off(this.root)},e.exports=w},{“../config”:25,“../events”:26,“../utils/behavior”:30,“../utils/is-in-viewport”:31,“../utils/toggle”:35,“array-filter”:1,“array-foreach”:2,“object-assign”:8}],17:[function(t,e,n){“use strict”;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t=n,t}var o=t(“../utils/behavior”),i=(t(“../utils/toggle”),t(“../events”).CLICK),u=t(“../config”).prefix,c=“.”u
“-banner-header”,s=u+“-banner-header-expanded”,a=function(t){return t.preventDefault(),this.closest©.classList.toggle(s),!1};e.exports=o(r({},i,r({},c+“ [aria-controls]”,a)))},{“../config”:25,“../events”:26,“../utils/behavior”:30,“../utils/toggle”:35}],18:[function(t,e,n){“use strict”;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t=n,t}var o=(t(“./accordion”),t(“../utils/behavior”)),i=t(“lodash.debounce”),u=t(“array-foreach”),c=t(“../utils/select”),s=t(“../events”).CLICK,a=t(“../config”).prefix,f=“hidden”,l=“.”a
“-footer-big”,d=l+“ nav”,p=d+“ .”a
“-footer-primary-link”,v=d+“ ul”,b=600,h=180,y=function(){if(window.innerWidth<b){var t=this.closest(v);t.classList.toggle(f);var e=t.closest(d).querySelectorAll(“ul”);u(e,function(e){e!==t&&e.classList.add(f)})}},g=i(function(){var t=window.innerWidth<b;u(c(v),function(e){e.classList.toggle(f,t)})},h);e.exports=o(r({},s,r({},p,y)),{HIDE_MAX_WIDTH:b,DEBOUNCE_RATE:h,init:function(t){g(),window.addEventListener(“resize”,g)},teardown:function(t){window.removeEventListener(“resize”,g)}})},{“../config”:25,“../events”:26,“../utils/behavior”:30,“../utils/select”:32,“./accordion”:16,“array-foreach”:2,“lodash.debounce”:7}],19:[function(t,e,n){“use strict”;e.exports={accordion:t(“./accordion”),banner:t(“./banner”),footer:t(“./footer”),navigation:t(“./navigation”),password:t(“./password”),search:t(“./search”),skipnav:t(“./skipnav”),validator:t(“./validator”)}},{“./accordion”:16,“./banner”:17,“./footer”:18,“./navigation”:20,“./password”:21,“./search”:22,“./skipnav”:23,“./validator”:24}],20:[function(t,e,n){“use strict”;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t=n,t}var o,i=t(“../utils/behavior”),u=t(“array-foreach”),c=t(“../utils/select”),s=t(“./accordion”),a=t(“../events”).CLICK,f=t(“../config”).prefix,l=“.”f
“-nav”,d=l+“ a”,p=“.”f
“-menu-btn”,v=“.”f
“-nav-close”,b=“.”f
“-overlay”,h=v+“, .”f
“-overlay”,y=.join(“, ”),g=“usa-mobile_nav-active”,m=“is-visible”,w=function(){return document.body.classList.contains(g)},x=function(t){function e(t){9===t.keyCode&&(t.shiftKey?document.activeElement===o&&(t.preventDefault(),i.focus()):document.activeElement===i&&(t.preventDefault(),o.focus())),27===t.keyCode&&S.call(this,!1)}var n=’a, area, input:not(), select:not(), textarea:not(), button:not(), iframe, object, embed, [tabindex=“0”], [contenteditable]‘,r=t.querySelectorAll(n),o=r,i=r;return o.focus(),{enable:function(){t.addEventListener(“keydown”,e)},release:function(){t.removeEventListener(“keydown”,e)}}},E=void 0,S=function(t){var e=document.body;“boolean”!=typeof t&&(t=!w()),e.classList.toggle(g,t),u(c(y),function(e){e.classList.toggle(m,t)}),t?E.enable():E.release();var n=e.querySelector(v),r=e.querySelector(p);return t&&n?n.focus():!t&&document.activeElement===n&&r&&r.focus(),t},j=function(){var t=document.body.querySelector(v);w()&&t&&0===t.getBoundingClientRect().width&&S.call(t,!1)},O=i(r({},a,(o={},r(o,p,S),r(o,h,S),r(o,d,function(){var t=this.closest(s.ACCORDION);t&&s.getButtons(t).forEach(function(t){return s.hide(t)}),w()&&S.call(this,!1)}),o)),{init:function(){var t=document.querySelector(l);t&&(E=x(t)),j(),window.addEventListener(“resize”,j,!1)},teardown:function(){window.removeEventListener(“resize”,j,!1)}}),A=t(“object-assign”);e.exports=A(function(t){return O.on(t)},O)},{“../config”:25,“../events”:26,“../utils/behavior”:30,“../utils/select”:32,“./accordion”:16,“array-foreach”:2,“object-assign”:8}],21:[function(t,e,n){“use strict”;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t=n,t}var o=t(“../utils/behavior”),i=t(“../utils/toggle-form-input”),u=t(“../events”).CLICK,c=t(“../config”).prefix,s=“.”c
“-show_password, .”c
“-show_multipassword”,a=function(t){t.preventDefault(),i(this)};e.exports=o(r({},u,r({},s,a)))},{“../config”:25,“../events”:26,“../utils/behavior”:30,“../utils/toggle-form-input”:34}],22:[function(t,e,n){“use strict”;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t=n,t}var o=t(“../utils/behavior”),i=t(“array-foreach”),u=t(“receptor/ignore”),c=t(“../utils/select”),s=t(“../events”).CLICK,a=t(“../config”).prefix,f=“.js-search-button”,l=“.js-search-form”,d=“”,p=“header”,v=a+“-sr-only”,b=void 0,h=function(t){m(this,!0),b=this},y=function(t){m(this,!1),b=void 0},g=function(t){var e=t.closest(p);return e?e.querySelector(l):document.querySelector(l)},m=function(t,e){var n=g(t);if(!n)throw new Error(“No ”l
“ found for search toggle in ”p
“!”);if(t.hidden=e,n.classList.toggle(v,!e),e){var r=n.querySelector(d);r&&r.focus();var o=u(n,function(t){b&&y.call(b),document.body.removeEventListener(s,o)});setTimeout(function(){document.body.addEventListener(s,o)},0)}},w=o(r({},s,r({},f,h)),{init:function(t){i(c(f,t),function(t){m(t,!1)})},teardown:function(t){b=void 0}}),x=t(“object-assign”);e.exports=x(function(t){return w.on(t)},w)},{“../config”:25,“../events”:26,“../utils/behavior”:30,“../utils/select”:32,“array-foreach”:2,“object-assign”:8,“receptor/ignore”:13}],23:[function(t,e,n){“use strict”;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t=n,t}var o=t(“../utils/behavior”),i=t(“receptor/once”),u=t(“../events”).CLICK,c=t(“../config”).prefix,s=“.”c
’-skipnav, .'c
'-footer-return-to-top [href^=“#”]',a=“main-content”,f=function(t){var e=this.getAttribute(“href”),n=document.getElementById(“#”===e?a:e.slice(1));n&&(n.style.outline=“0”,n.setAttribute(“tabindex”,0),n.focus(),n.addEventListener(“blur”,i(function(t){n.setAttribute(“tabindex”,-1)})))};e.exports=o(r({},u,r({},s,f)))},{“../config”:25,“../events”:26,“../utils/behavior”:30,“receptor/once”:14}],24:[function(t,e,n){“use strict”;var r=t(“../utils/behavior”),o=t(“../utils/validate-input”),i=(t(“lodash.debounce”),function(t){return o(this)}),u=r({“keyup change”:{“input”:i}}),c=t(“object-assign”);e.exports=c(function(t){return u.on(t)},u)},{“../utils/behavior”:30,“../utils/validate-input”:36,“lodash.debounce”:7,“object-assign”:8}],25:[function(t,e,n){“use strict”;e.exports={prefix:“usa”}},{}],26:[function(t,e,n){“use strict”;e.exports={CLICK:“click”}},{}],27:[function(t,e,n){“use strict”;var r=window.HTMLElement.prototype,o=“hidden”;o in r||Object.defineProperty(r,o,{get:function(){return this.hasAttribute(o)},set:function(t){t?this.setAttribute(o,“”):this.removeAttribute(o)}})},{}],28:[function(t,e,n){“use strict”;t(“classlist-polyfill”),t(“./element-hidden”)},{“./element-hidden”:27,“classlist-polyfill”:3}],29:[function(t,e,n){“use strict”;var r=t(“domready”);t(“./polyfills”);var o=t(“./config”),i=t(“./components”);o.components=i,r(function(){var t=document.body;for(var e in i){var n=i;n.on(t)}}),e.exports=o},{“./components”:19,“./config”:25,“./polyfills”:28,domready:4}],30:[function(t,e,n){“use strict”;var r=t(“object-assign”),o=t(“array-foreach”),i=t(“receptor/behavior”),u=function(){var t=[].slice.call(arguments);return function(e){var n=this;e||(e=document.body),o(t,function(t){“function”==typeof n&&n.call(n,e)})}};e.exports=function(t,e){return i(t,r({on:u(“init”,“add”),off:u(“teardown”,“remove”)},e))}},{“array-foreach”:2,“object-assign”:8,“receptor/behavior”:9}],31:[function(t,e,n){“use strict”;function r(t){var e=arguments.length>1&&void 0!==arguments?arguments:window,n=arguments.length>2&&void 0!==arguments?arguments:document.documentElement,r=t.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(e.innerHeight||n.clientHeight)&&r.right<=(e.innerWidth||n.clientWidth)}e.exports=r},{}],32:[function(t,e,n){“use strict”;var 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},o=function(t){return t&&“object”===(“undefined”==typeof t?“undefined”:r(t))&&1===t.nodeType};e.exports=function(t,e){if(“string”!=typeof t)return[];e&&o(e)||(e=window.document);var n=e.querySelectorAll(t);return Array.prototype.slice.call(n)}},{}],33:[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”)}},{}],34:[function(t,e,n){“use strict”;var r=t(“array-foreach”),o=t(“resolve-id-refs”),i=(t(“./select”),t(“./toggle-field-mask”)),u=“aria-controls”,c=“aria-pressed”,s=“data-show-text”,a=“data-hide-text”,f=function(t){return t.replace(/bShowb/i,function(t){return(“S”===t?“H”:“h”)+“ide”})};e.exports=function(t){var e=t.hasAttribute©&&“true”!==t.getAttribute©,n=o(t.getAttribute(u));r(n,function(t){return i(t,e)}),t.hasAttribute(s)||t.setAttribute(s,t.textContent);var l=t.getAttribute(s),d=t.getAttribute(a)||f(l);return t.textContent=e?l:d,t.setAttribute(c,e),e}},{“./select”:32,“./toggle-field-mask”:33,“array-foreach”:2,“resolve-id-refs”:15}],35:[function(t,e,n){“use strict”;var r=“aria-expanded”,o=“aria-controls”,i=“aria-hidden”;e.exports=function(t,e){“boolean”!=typeof e&&(e=“false”===t.getAttribute®),t.setAttribute(r,e);var n=t.getAttribute(o),u=document.getElementById(n);if(!u)throw new Error('No toggle target found with id: “'n
'”');return u.setAttribute(i,!e),e}},{}],36:[function(t,e,n){“use strict”;var r=t(“elem-dataset”),o=t(“../config”).prefix,i=“aria-checked”,u=o+“-checklist-checked”;e.exports=function(t){var e=r(t),n=e.validationElement,o=“#”===n.charAt(0)?document.querySelector(n):document.getElementById(n);if(!o)throw new Error('No validation element found with id: “'n
'”');for(var c in e)if(c.startsWith(“validate”)){var s=c.substr(“validate”.length).toLowerCase(),a=new RegExp(e),f=‘[data-validator=“’s
‘”]',l=o.querySelector(f);if(!l)throw new Error('No validator checkbox found for: “'s
'”');var d=a.test(t.value);l.classList.toggle(u,d),l.setAttribute(i,d)}}},{“../config”:25,“elem-dataset”:5}]},{},[29]); //# sourceMappingURL=uswds.min.js.map