vendor: 8,875 bytes, line 1
1!function r(o,i,s){function c(e,t){if(!i[e]){if(!o[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(u)return u(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}n=i[e]={exports:{}},o[e][0].call(n.exports,function(t){return c(o[e][1][t]||t)},n,n.exports,r,o,i,s)}return i[e].exports}for(var u="function"==typeof require&&require,t=0;t<s.length;t++)c(s[t]);return c}({1:[function(t,e,n){"use strict";if("document"in window.self){if(!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))if("Element"in(i=window.self)){var r="classList",o="prototype",i=i.Element[o],s=Object,c=String[o].trim||function(){return this.replace(/^\s+|\s+$/g,"")},u=Array[o].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},l=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 u.call(t,e)},d=function(t){for(var e=c.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},f=d[o]=[],p=function(){return new d(this)};if(a[o]=Error[o],f.item=function(t){return this[t]||null},f.contains=function(t){return-1!==l(this,t+="")},f.add=function(){for(var t,e=arguments,n=0,r=e.length,o=!1;-1===l(this,t=e[n]+"")&&(this.push(t),o=!0),++n<r;);o&&this._updateClassName()},f.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(e=l(this,t=n[r]+"");-1!==e;)this.splice(e,1),i=!0,e=l(this,t)}while(++r<o);i&&this._updateClassName()},f.toggle=function(t,e){var n=this.contains(t+=""),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},f.toString=function(){return this.join(" ")},s.defineProperty){f={get:p,enumerable:!0,configurable:!0};try{s.defineProperty(i,r,f)}catch(t){void 0!==t.number&&-2146823252!==t.number||(f.enumerable=!1,s.defineProperty(i,r,f))}}else s[o].__defineGetter__&&i.__defineGetter__(r,p)}(f=document.createElement("_")).classList.add("c1","c2"),f.classList.contains("c2")||((s=function(t){var r=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){for(var e=arguments.length,n=0;n<e;n++)r.call(this,arguments[n])}})("add"),s("remove")),f.classList.toggle("c3",!1),f.classList.contains("c3")&&(h=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:h.call(this,t)})}var h},{}],2:[function(t,e,n){"use strict";var r;"function"!=typeof(r=window.Element.prototype).matches&&(r.matches=r.msMatchesSelector||r.mozMatchesSelector||r.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 r.closest&&(r.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})},{}],3:[function(t,e,n){"use strict";var u=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(Object.assign){var t=new String("abc");if(t[5]="de","5"!==Object.getOwnPropertyNames(t)[0]){for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r,o=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"===o.join(""))return r={},"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")?1:void 0}}}catch(t){}}()?Object.assign:function(t,e){for(var n,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]))a.call(n,i)&&(r[i]=n[i]);if(u)for(var s=u(n),c=0;c<s.length;c++)l.call(n,s[c])&&(r[s[c]]=n[s[c]])}return r}},{}],4:[function(t,e,n){"use strict";const u=t("object-assign"),a=t("../delegate"),l=t("../delegateAll"),d=/^(.+):delegate\((.+)\)$/;function f(t,e){var n=t[e];return delete t[e],n}e.exports=function(c,t){const n=Object.keys(c).reduce(function(t,e){n=c[e=e],(s=e.match(d))&&(e=s[1],r=s[2]),"object"==typeof n&&(o={capture:f(n,"capture"),passive:f(n,"passive")}),i={selector:r,delegate:"object"==typeof n?l(n):r?a(r,n):n,options:o};var n,r,o,i,s=-1<e.indexOf(" ")?e.split(" ").map(function(t){return u({type:t},i)}):(i.type=e,[i]);return t.concat(s)},[]);return u({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":7,"../delegateAll":6,"object-assign":3}],5:[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)}}},{}],6:[function(t,e,n){"use strict";const r=t("../delegate"),o=t("../compose");e.exports=function(n){var t=Object.keys(n);return 1===t.length&&"*"===t[0]?n["*"]:(t=t.reduce(function(t,e){return t.push(r(e,n[e])),t},[]),o(t))}},{"../compose":5,"../delegate":7}],7:[function(t,e,n){"use strict";t("element-closest"),e.exports=function(n,r){return function(t){var e=t.target.closest(n);if(e)return r.call(e,t)}}},{"element-closest":2}],8:[function(t,e,n){"use strict";const r=t("../../uswds-core/src/js/utils/select");var o=t("../../uswds-core/src/js/utils/behavior");const i=t("../../uswds-core/src/js/utils/toggle"),s=t("../../uswds-core/src/js/utils/is-in-viewport");var c=t("../../uswds-core/src/js/events")["CLICK"],t=t("../../uswds-core/src/js/config")["prefix"];const u=`.${t}-accordion, .${t}-accordion--bordered`,a=`.${t}-accordion__button[aria-controls]:not(${`.${t}-banner__button`})`,l="aria-expanded",d=e=>{return r(a,e).filter(t=>t.closest(u)===e)},f=(e,t)=>{var n=e.closest(u);if(!n)throw new Error(a+" is missing outer "+u);var t=i(e,t),r=n.hasAttribute("data-allow-multiple");t&&!r&&d(n).forEach(t=>{t!==e&&i(t,!1)})};t=o({[c]:{[a](){f(this),"true"!==this.getAttribute(l)||s(this)||this.scrollIntoView()}}},{init(t){r(a,t).forEach(t=>{var e="true"===t.getAttribute(l);f(t,e)})},ACCORDION:u,BUTTON:a,show:t=>f(t,!0),hide:t=>f(t,!1),toggle:f,getButtons:d});e.exports=t},{"../../uswds-core/src/js/config":9,"../../uswds-core/src/js/events":10,"../../uswds-core/src/js/utils/behavior":18,"../../uswds-core/src/js/utils/is-in-viewport":19,"../../uswds-core/src/js/utils/select":20,"../../uswds-core/src/js/utils/toggle":21}],9:[function(t,e,n){"use strict";e.exports={prefix:"wested"}},{}],10:[function(t,e,n){"use strict";e.exports={CLICK:"click"}},{}],11:[function(t,e,n){"use strict";t=t("../../../wested-accordion/src/index");e.exports={accordion:t}},{"../../../wested-accordion/src/index":8}],12:[function(t,e,n){"use strict";"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(t,e){var e=e||{bubbles:!1,cancelable:!1,detail:null},n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n})},{}],13:[function(t,e,n){"use strict";var r=window.HTMLElement.prototype;const o="hidden";o in r||Object.defineProperty(r,o,{get(){return this.hasAttribute(o)},set(t){t?this.setAttribute(o,""):this.removeAttribute(o)}})},{}],14:[function(t,e,n){"use strict";t("classlist-polyfill"),t("./element-hidden"),t("./number-is-nan"),t("./custom-event"),t("./svg4everybody")},{"./custom-event":12,"./element-hidden":13,"./number-is-nan":15,"./svg4everybody":16,"classlist-polyfill":1}],15:[function(t,e,n){"use strict";Number.isNaN=Number.isNaN||function(t){return"number"==typeof t&&t!=t}},{}],16:[function(t,e,n){"use strict";function h(t,e,n,r){if(n){var o=document.createDocumentFragment(),i=!e.hasAttribute("viewBox")&&n.getAttribute("viewBox");i&&e.setAttribute("viewBox",i);for(var s=document.importNode?document.importNode(n,!0):n.cloneNode(!0),c=document.createElementNS(e.namespaceURI||"http://www.w3.org/2000/svg","g");s.childNodes.length;)c.appendChild(s.firstChild);if(r)for(var u=0;r.attributes.length>u;u++){var a=r.attributes[u];"xlink:href"!==a.name&&"href"!==a.name&&c.setAttribute(a.name,a.value)}o.appendChild(c),t.appendChild(o)}}e.exports=function(t){var u,a=Object(t),t=window.top!==window.self,l=(u="polyfill"in a?a.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&t,{}),d=window.requestAnimationFrame||setTimeout,f=document.getElementsByTagName("use"),p=0;u&&function t(){if(!(p&&f.length-p<=0))for(var e=p=0;e<f.length;){var n,r,o=f[e],i=o.parentNode,s=function(t){for(var e=t;
1"svg"!==e.nodeName.toLowerCase()&&(e=e.parentNode););return e}(i),c=o.getAttribute("xlink:href")||o.getAttribute("href");!c&&a.attributeName&&(c=o.getAttribute(a.attributeName)),s&&c?u&&(!a.validate||a.validate(c,s,o)?(i.removeChild(o),n=(c=c.split("#")).shift(),c=c.join("#"),n.length?((r=l[n])||((r=l[n]=new XMLHttpRequest).open("GET",n),r.send(),r._embeds=[]),r._embeds.push({parent:i,svg:s,id:c}),function(r,o){r.onreadystatechange=function(){var n;4===r.readyState&&((n=r._cachedDocument)||((n=r._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=r.responseText,n.domain!==document.domain&&(n.domain=document.domain),r._cachedTarget={}),r._embeds.splice(0).map(function(t){var e=(e=r._cachedTarget[t.id])||(r._cachedTarget[t.id]=n.getElementById(t.id));h(t.parent,t.svg,e,o)}))},r.onreadystatechange()}(r,o)):h(i,s,document.getElementById(c),o)):(++e,++p)):++e}d(t,67)}()}},{}],17:[function(t,e,n){"use strict";window.uswdsPresent=!0,t("./polyfills");var r=t("./config");const o=t("./index"),i=t("./polyfills/svg4everybody");r.components=o;t=()=>{const e=document.body;Object.keys(o).forEach(t=>{o[t].on(e)}),i()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t,{once:!0}):t(),n.default=r,n.initComponents=t},{"./config":9,"./index":11,"./polyfills":14,"./polyfills/svg4everybody":16}],18:[function(t,e,n){"use strict";const r=t("object-assign"),o=t("receptor/behavior"),i=(...t)=>function(e=document.body){t.forEach(t=>{"function"==typeof this[t]&&this[t].call(this,e)})};e.exports=(t,e)=>o(t,r({on:i("init","add"),off:i("teardown","remove")},e))},{"object-assign":3,"receptor/behavior":4}],19:[function(t,e,n){"use strict";e.exports=function(t,e=window,n=document.documentElement){return 0<=(t=t.getBoundingClientRect()).top&&0<=t.left&&t.bottom<=(e.innerHeight||n.clientHeight)&&t.right<=(e.innerWidth||n.clientWidth)}},{}],20:[function(t,e,n){"use strict";e.exports=(t,e)=>{var n;return"string"!=typeof t?[]:(n=(e=e&&(n=e)&&"object"==typeof n&&1===n.nodeType?e:window.document).querySelectorAll(t),Array.prototype.slice.call(n))}},{}],21:[function(t,e,n){"use strict";const r="aria-expanded";e.exports=(t,e)=>{let n=e;"boolean"!=typeof n&&(n="false"===t.getAttribute(r)),t.setAttribute(r,n);e=t.getAttribute("aria-controls"),t=document.getElementById(e);if(t)return n?t.removeAttribute("hidden"):t.setAttribute("hidden",""),n;throw new Error(`No toggle target found with id: "${e}"`)}},{}]},{},[17]); 2//# sourceMappingURL=uswds.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.