federalist-basic-report-theme 0.1.0 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +13 -0
- data/_sass/uswds/_all.scss +1 -0
- data/_sass/uswds/components/_accordions.scss +150 -0
- data/_sass/uswds/components/_alerts.scss +128 -0
- data/_sass/uswds/components/_banner.scss +203 -0
- data/_sass/uswds/components/_footer.scss +522 -0
- data/_sass/uswds/components/_forms.scss +156 -0
- data/_sass/uswds/components/_graphic-list.scss +35 -0
- data/_sass/uswds/components/_header.scss +216 -0
- data/_sass/uswds/components/_hero.scss +37 -0
- data/_sass/uswds/components/_layout.scss +36 -0
- data/_sass/uswds/components/_media-block.scss +12 -0
- data/_sass/uswds/components/_navigation.scss +561 -0
- data/_sass/uswds/components/_search.scss +111 -0
- data/_sass/uswds/components/_section.scss +37 -0
- data/_sass/uswds/components/_sidenav.scss +31 -0
- data/_sass/uswds/components/_skipnav.scss +19 -0
- data/_sass/uswds/core/_base.scss +36 -0
- data/_sass/uswds/core/_defaults.scss +8 -0
- data/_sass/uswds/core/_fonts.scss +65 -0
- data/_sass/uswds/core/_grid-settings.scss +3 -0
- data/_sass/uswds/core/_grid.scss +198 -0
- data/_sass/uswds/core/_utilities.scss +252 -0
- data/_sass/uswds/core/_variables-vendor.scss +12 -0
- data/_sass/uswds/core/_variables.scss +159 -0
- data/_sass/uswds/elements/_buttons.scss +217 -0
- data/_sass/uswds/elements/_embed.scss +26 -0
- data/_sass/uswds/elements/_figure.scss +13 -0
- data/_sass/uswds/elements/_inputs.scss +368 -0
- data/_sass/uswds/elements/_labels.scss +20 -0
- data/_sass/uswds/elements/_list.scss +32 -0
- data/_sass/uswds/elements/_table.scss +55 -0
- data/_sass/uswds/elements/_typography.scss +240 -0
- data/_sass/uswds/lib/_bourbon-deprecated-upcoming.scss +411 -0
- data/_sass/uswds/lib/_bourbon.scss +87 -0
- data/_sass/uswds/lib/_neat-helpers.scss +11 -0
- data/_sass/uswds/lib/_neat.scss +23 -0
- data/_sass/uswds/lib/_normalize.scss +424 -0
- data/_sass/uswds/lib/addons/_border-color.scss +26 -0
- data/_sass/uswds/lib/addons/_border-radius.scss +48 -0
- data/_sass/uswds/lib/addons/_border-style.scss +25 -0
- data/_sass/uswds/lib/addons/_border-width.scss +25 -0
- data/_sass/uswds/lib/addons/_buttons.scss +64 -0
- data/_sass/uswds/lib/addons/_clearfix.scss +25 -0
- data/_sass/uswds/lib/addons/_ellipsis.scss +30 -0
- data/_sass/uswds/lib/addons/_font-stacks.scss +31 -0
- data/_sass/uswds/lib/addons/_hide-text.scss +27 -0
- data/_sass/uswds/lib/addons/_margin.scss +26 -0
- data/_sass/uswds/lib/addons/_padding.scss +26 -0
- data/_sass/uswds/lib/addons/_position.scss +48 -0
- data/_sass/uswds/lib/addons/_prefixer.scss +66 -0
- data/_sass/uswds/lib/addons/_retina-image.scss +25 -0
- data/_sass/uswds/lib/addons/_size.scss +51 -0
- data/_sass/uswds/lib/addons/_text-inputs.scss +113 -0
- data/_sass/uswds/lib/addons/_timing-functions.scss +34 -0
- data/_sass/uswds/lib/addons/_triangle.scss +63 -0
- data/_sass/uswds/lib/addons/_word-wrap.scss +29 -0
- data/_sass/uswds/lib/css3/_animation.scss +43 -0
- data/_sass/uswds/lib/css3/_appearance.scss +3 -0
- data/_sass/uswds/lib/css3/_backface-visibility.scss +3 -0
- data/_sass/uswds/lib/css3/_background-image.scss +42 -0
- data/_sass/uswds/lib/css3/_background.scss +55 -0
- data/_sass/uswds/lib/css3/_border-image.scss +59 -0
- data/_sass/uswds/lib/css3/_calc.scss +4 -0
- data/_sass/uswds/lib/css3/_columns.scss +47 -0
- data/_sass/uswds/lib/css3/_filter.scss +4 -0
- data/_sass/uswds/lib/css3/_flex-box.scss +287 -0
- data/_sass/uswds/lib/css3/_font-face.scss +24 -0
- data/_sass/uswds/lib/css3/_font-feature-settings.scss +4 -0
- data/_sass/uswds/lib/css3/_hidpi-media-query.scss +10 -0
- data/_sass/uswds/lib/css3/_hyphens.scss +4 -0
- data/_sass/uswds/lib/css3/_image-rendering.scss +14 -0
- data/_sass/uswds/lib/css3/_keyframes.scss +36 -0
- data/_sass/uswds/lib/css3/_linear-gradient.scss +38 -0
- data/_sass/uswds/lib/css3/_perspective.scss +8 -0
- data/_sass/uswds/lib/css3/_placeholder.scss +8 -0
- data/_sass/uswds/lib/css3/_radial-gradient.scss +39 -0
- data/_sass/uswds/lib/css3/_selection.scss +42 -0
- data/_sass/uswds/lib/css3/_text-decoration.scss +19 -0
- data/_sass/uswds/lib/css3/_transform.scss +15 -0
- data/_sass/uswds/lib/css3/_transition.scss +71 -0
- data/_sass/uswds/lib/css3/_user-select.scss +3 -0
- data/_sass/uswds/lib/functions/_assign-inputs.scss +11 -0
- data/_sass/uswds/lib/functions/_contains-falsy.scss +20 -0
- data/_sass/uswds/lib/functions/_contains.scss +26 -0
- data/_sass/uswds/lib/functions/_is-length.scss +11 -0
- data/_sass/uswds/lib/functions/_is-light.scss +21 -0
- data/_sass/uswds/lib/functions/_is-number.scss +11 -0
- data/_sass/uswds/lib/functions/_is-size.scss +13 -0
- data/_sass/uswds/lib/functions/_modular-scale.scss +69 -0
- data/_sass/uswds/lib/functions/_new-breakpoint.scss +49 -0
- data/_sass/uswds/lib/functions/_private.scss +114 -0
- data/_sass/uswds/lib/functions/_px-to-em.scss +13 -0
- data/_sass/uswds/lib/functions/_px-to-rem.scss +15 -0
- data/_sass/uswds/lib/functions/_shade.scss +24 -0
- data/_sass/uswds/lib/functions/_strip-units.scss +17 -0
- data/_sass/uswds/lib/functions/_tint.scss +24 -0
- data/_sass/uswds/lib/functions/_transition-property-name.scss +22 -0
- data/_sass/uswds/lib/functions/_unpack.scss +27 -0
- data/_sass/uswds/lib/grid/_box-sizing.scss +15 -0
- data/_sass/uswds/lib/grid/_direction-context.scss +33 -0
- data/_sass/uswds/lib/grid/_display-context.scss +28 -0
- data/_sass/uswds/lib/grid/_fill-parent.scss +22 -0
- data/_sass/uswds/lib/grid/_media.scss +92 -0
- data/_sass/uswds/lib/grid/_omega.scss +87 -0
- data/_sass/uswds/lib/grid/_outer-container.scss +34 -0
- data/_sass/uswds/lib/grid/_pad.scss +25 -0
- data/_sass/uswds/lib/grid/_private.scss +35 -0
- data/_sass/uswds/lib/grid/_row.scss +52 -0
- data/_sass/uswds/lib/grid/_shift.scss +50 -0
- data/_sass/uswds/lib/grid/_span-columns.scss +94 -0
- data/_sass/uswds/lib/grid/_to-deprecate.scss +97 -0
- data/_sass/uswds/lib/grid/_visual-grid.scss +42 -0
- data/_sass/uswds/lib/helpers/_convert-units.scss +21 -0
- data/_sass/uswds/lib/helpers/_directional-values.scss +96 -0
- data/_sass/uswds/lib/helpers/_font-source-declaration.scss +43 -0
- data/_sass/uswds/lib/helpers/_gradient-positions-parser.scss +13 -0
- data/_sass/uswds/lib/helpers/_linear-angle-parser.scss +25 -0
- data/_sass/uswds/lib/helpers/_linear-gradient-parser.scss +41 -0
- data/_sass/uswds/lib/helpers/_linear-positions-parser.scss +61 -0
- data/_sass/uswds/lib/helpers/_linear-side-corner-parser.scss +31 -0
- data/_sass/uswds/lib/helpers/_radial-arg-parser.scss +69 -0
- data/_sass/uswds/lib/helpers/_radial-gradient-parser.scss +50 -0
- data/_sass/uswds/lib/helpers/_radial-positions-parser.scss +18 -0
- data/_sass/uswds/lib/helpers/_render-gradients.scss +26 -0
- data/_sass/uswds/lib/helpers/_shape-size-stripper.scss +10 -0
- data/_sass/uswds/lib/helpers/_str-to-num.scss +50 -0
- data/_sass/uswds/lib/mixins/_clearfix.scss +25 -0
- data/_sass/uswds/lib/settings/_asset-pipeline.scss +7 -0
- data/_sass/uswds/lib/settings/_disable-warnings.scss +13 -0
- data/_sass/uswds/lib/settings/_grid.scss +51 -0
- data/_sass/uswds/lib/settings/_prefixer.scss +9 -0
- data/_sass/uswds/lib/settings/_px-to-em.scss +1 -0
- data/_sass/uswds/lib/settings/_visual-grid.scss +27 -0
- data/_sass/uswds/uswds.scss +42 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.woff2 +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.woff2 +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.woff2 +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
- data/assets/uswds/img/alerts/error.png +0 -0
- data/assets/uswds/img/alerts/error.svg +17 -0
- data/assets/uswds/img/alerts/info.png +0 -0
- data/assets/uswds/img/alerts/info.svg +18 -0
- data/assets/uswds/img/alerts/success.png +0 -0
- data/assets/uswds/img/alerts/success.svg +12 -0
- data/assets/uswds/img/alerts/warning.png +0 -0
- data/assets/uswds/img/alerts/warning.svg +16 -0
- data/assets/uswds/img/angle-arrow-down-hover.png +0 -0
- data/assets/uswds/img/angle-arrow-down-hover.svg +1 -0
- data/assets/uswds/img/angle-arrow-down-primary-hover.png +0 -0
- data/assets/uswds/img/angle-arrow-down-primary-hover.svg +1 -0
- data/assets/uswds/img/angle-arrow-down-primary.png +0 -0
- data/assets/uswds/img/angle-arrow-down-primary.svg +1 -0
- data/assets/uswds/img/angle-arrow-down.png +0 -0
- data/assets/uswds/img/angle-arrow-down.svg +1 -0
- data/assets/uswds/img/angle-arrow-up-primary-hover.png +0 -0
- data/assets/uswds/img/angle-arrow-up-primary-hover.svg +1 -0
- data/assets/uswds/img/angle-arrow-up-primary.png +0 -0
- data/assets/uswds/img/angle-arrow-up-primary.svg +1 -0
- data/assets/uswds/img/arrow-both.png +0 -0
- data/assets/uswds/img/arrow-both.svg +1 -0
- data/assets/uswds/img/arrow-down.png +0 -0
- data/assets/uswds/img/arrow-down.svg +1 -0
- data/assets/uswds/img/arrow-right.png +0 -0
- data/assets/uswds/img/arrow-right.svg +1 -0
- data/assets/uswds/img/circle-124.png +0 -0
- data/assets/uswds/img/close-primary.png +0 -0
- data/assets/uswds/img/close-primary.svg +16 -0
- data/assets/uswds/img/close.png +0 -0
- data/assets/uswds/img/close.svg +12 -0
- data/assets/uswds/img/correct8.png +0 -0
- data/assets/uswds/img/correct8.svg +1 -0
- data/assets/uswds/img/correct9.png +0 -0
- data/assets/uswds/img/correct9.svg +1 -0
- data/assets/uswds/img/external-link-alt-hover.png +0 -0
- data/assets/uswds/img/external-link-alt-hover.svg +1 -0
- data/assets/uswds/img/external-link-alt.png +0 -0
- data/assets/uswds/img/external-link-alt.svg +1 -0
- data/assets/uswds/img/external-link-hover.png +0 -0
- data/assets/uswds/img/external-link-hover.svg +1 -0
- data/assets/uswds/img/external-link.png +0 -0
- data/assets/uswds/img/external-link.svg +1 -0
- data/assets/uswds/img/favicons/favicon-114.png +0 -0
- data/assets/uswds/img/favicons/favicon-144.png +0 -0
- data/assets/uswds/img/favicons/favicon-16.png +0 -0
- data/assets/uswds/img/favicons/favicon-192.png +0 -0
- data/assets/uswds/img/favicons/favicon-40.png +0 -0
- data/assets/uswds/img/favicons/favicon-57.png +0 -0
- data/assets/uswds/img/favicons/favicon-72.png +0 -0
- data/assets/uswds/img/favicons/favicon.ico +0 -0
- data/assets/uswds/img/favicons/favicon.png +0 -0
- data/assets/uswds/img/hero.png +0 -0
- data/assets/uswds/img/icon-dot-gov.svg +1 -0
- data/assets/uswds/img/icon-https.svg +1 -0
- data/assets/uswds/img/logo-img.png +0 -0
- data/assets/uswds/img/minus-alt.png +0 -0
- data/assets/uswds/img/minus-alt.svg +1 -0
- data/assets/uswds/img/minus.png +0 -0
- data/assets/uswds/img/minus.svg +1 -0
- data/assets/uswds/img/plus-alt.png +0 -0
- data/assets/uswds/img/plus-alt.svg +1 -0
- data/assets/uswds/img/plus.png +0 -0
- data/assets/uswds/img/plus.svg +1 -0
- data/assets/uswds/img/search-alt.png +0 -0
- data/assets/uswds/img/search-alt.svg +1 -0
- data/assets/uswds/img/search-primary.png +0 -0
- data/assets/uswds/img/search-primary.svg +12 -0
- data/assets/uswds/img/search.png +0 -0
- data/assets/uswds/img/search.svg +1 -0
- data/assets/uswds/img/social-icons/png/facebook25.png +0 -0
- data/assets/uswds/img/social-icons/png/rss25.png +0 -0
- data/assets/uswds/img/social-icons/png/twitter16.png +0 -0
- data/assets/uswds/img/social-icons/png/youtube15.png +0 -0
- data/assets/uswds/img/social-icons/svg/facebook25.svg +1 -0
- data/assets/uswds/img/social-icons/svg/rss25.svg +1 -0
- data/assets/uswds/img/social-icons/svg/twitter16.svg +1 -0
- data/assets/uswds/img/social-icons/svg/youtube15.svg +1 -0
- data/assets/uswds/img/us_flag_small.png +0 -0
- data/assets/uswds/js/uswds.js +1930 -0
- data/assets/uswds/js/uswds.min.js +2 -0
- data/assets/uswds/js/uswds.min.js.map +1 -0
- metadata +251 -3
Binary file
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
2
|
+
width="216px" height="216px" viewBox="0 0 216 216" xml:space="preserve">
|
3
|
+
<path d="M162.18,41.592c-5.595-9.586-13.185-17.176-22.771-22.771c-9.588-5.595-20.055-8.392-31.408-8.392
|
4
|
+
c-11.352,0-21.822,2.797-31.408,8.392c-9.587,5.594-17.177,13.184-22.772,22.771C48.225,51.179,45.428,61.649,45.428,73
|
5
|
+
c0,11.352,2.798,21.82,8.392,31.408c5.595,9.585,13.185,17.176,22.772,22.771c9.587,5.595,20.056,8.392,31.408,8.392
|
6
|
+
c11.352,0,21.822-2.797,31.408-8.392c9.586-5.594,17.176-13.185,22.771-22.771c5.594-9.587,8.391-20.057,8.391-31.408
|
7
|
+
C170.57,61.648,167.773,51.178,162.18,41.592z M148.572,63.468l-44.239,44.239c-1.032,1.032-2.281,1.549-3.748,1.549
|
8
|
+
c-1.412,0-2.634-0.517-3.666-1.549L67.425,78.215c-0.977-0.979-1.466-2.199-1.466-3.666c0-1.521,0.488-2.771,1.466-3.749
|
9
|
+
l7.414-7.332c1.033-1.032,2.254-1.548,3.667-1.548s2.635,0.516,3.667,1.548l18.413,18.413l33.241-33.16
|
10
|
+
c1.032-1.032,2.254-1.548,3.666-1.548c1.411,0,2.635,0.516,3.666,1.548l7.414,7.333c0.979,0.977,1.467,2.226,1.467,3.747
|
11
|
+
C150.04,61.268,149.552,62.49,148.572,63.468z"/>
|
12
|
+
</svg>
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4
|
+
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
5
|
+
width="216px" height="146px" viewBox="0 0 216 146" enable-background="new 0 0 216 146" xml:space="preserve">
|
6
|
+
<path d="M179.695,125.388L117.126,10.673c-0.924-1.684-2.2-3.015-3.832-3.992c-1.628-0.978-3.394-1.467-5.295-1.467
|
7
|
+
c-1.901,0-3.667,0.49-5.296,1.467s-2.906,2.308-3.829,3.992L36.303,125.388c-1.901,3.423-1.847,6.845,0.163,10.267
|
8
|
+
c0.924,1.574,2.187,2.824,3.789,3.746c1.603,0.924,3.327,1.387,5.174,1.387H170.57c1.849,0,3.572-0.463,5.175-1.387
|
9
|
+
c1.603-0.922,2.864-2.172,3.789-3.746C181.544,132.232,181.598,128.811,179.695,125.388z M118.43,117.24
|
10
|
+
c0,0.76-0.259,1.398-0.773,1.914c-0.516,0.516-1.127,0.773-1.834,0.773H100.18c-0.706,0-1.317-0.257-1.833-0.773
|
11
|
+
c-0.516-0.517-0.774-1.154-0.774-1.914v-15.48c0-0.76,0.258-1.397,0.774-1.914c0.516-0.516,1.126-0.773,1.833-0.773h15.642
|
12
|
+
c0.707,0,1.318,0.257,1.834,0.773c0.515,0.517,0.773,1.154,0.773,1.914V117.24z M118.268,86.77
|
13
|
+
c-0.056,0.543-0.341,0.991-0.856,1.344c-0.517,0.354-1.154,0.529-1.915,0.529h-15.073c-0.76,0-1.412-0.176-1.955-0.529
|
14
|
+
c-0.544-0.354-0.815-0.801-0.815-1.346l-1.385-37.231c0-0.761,0.272-1.331,0.815-1.711c0.706-0.597,1.358-0.896,1.956-0.896h17.924
|
15
|
+
c0.598,0,1.25,0.298,1.956,0.896c0.543,0.38,0.813,0.896,0.813,1.548L118.268,86.77z"/>
|
16
|
+
</svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 284.929 284.929"><path d="M282.082 76.51L267.808 62.24c-1.902-1.906-4.093-2.856-6.57-2.856-2.47 0-4.66.95-6.563 2.856L142.465 174.44 30.263 62.24c-1.903-1.905-4.093-2.855-6.567-2.855-2.475 0-4.665.95-6.567 2.856L2.856 76.516C.95 78.417 0 80.607 0 83.082c0 2.473.953 4.663 2.856 6.565L135.9 222.693c1.9 1.903 4.092 2.854 6.566 2.854s4.66-.95 6.562-2.854L282.082 89.647c1.902-1.903 2.847-4.093 2.847-6.565 0-2.475-.946-4.665-2.848-6.57z" fill="#ffffff"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 284.929 284.929"><path d="M282.082 76.51L267.808 62.24c-1.902-1.906-4.093-2.856-6.57-2.856-2.47 0-4.66.95-6.563 2.856L142.465 174.44 30.263 62.24c-1.903-1.905-4.093-2.855-6.567-2.855-2.475 0-4.665.95-6.567 2.856L2.856 76.516C.95 78.417 0 80.607 0 83.082c0 2.473.953 4.663 2.856 6.565L135.9 222.693c1.9 1.903 4.092 2.854 6.566 2.854s4.66-.95 6.562-2.854L282.082 89.647c1.902-1.903 2.847-4.093 2.847-6.565 0-2.475-.946-4.665-2.848-6.57z" fill="#205493"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 284.929 284.929"><path d="M282.082 76.51L267.808 62.24c-1.902-1.906-4.093-2.856-6.57-2.856-2.47 0-4.66.95-6.563 2.856L142.465 174.44 30.263 62.24c-1.903-1.905-4.093-2.855-6.567-2.855-2.475 0-4.665.95-6.567 2.856L2.856 76.516C.95 78.417 0 80.607 0 83.082c0 2.473.953 4.663 2.856 6.565L135.9 222.693c1.9 1.903 4.092 2.854 6.566 2.854s4.66-.95 6.562-2.854L282.082 89.647c1.902-1.903 2.847-4.093 2.847-6.565 0-2.475-.946-4.665-2.848-6.57z" fill="#0071bc"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 284.929 284.929"><path d="M282.082 76.51L267.808 62.24c-1.902-1.906-4.093-2.856-6.57-2.856-2.47 0-4.66.95-6.563 2.856L142.465 174.44 30.263 62.24c-1.903-1.905-4.093-2.855-6.567-2.855-2.475 0-4.665.95-6.567 2.856L2.856 76.516C.95 78.417 0 80.607 0 83.082c0 2.473.953 4.663 2.856 6.565L135.9 222.693c1.9 1.903 4.092 2.854 6.566 2.854s4.66-.95 6.562-2.854L282.082 89.647c1.902-1.903 2.847-4.093 2.847-6.565 0-2.475-.946-4.665-2.848-6.57z" fill="#5b616b"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 284.929 284.929"><path d="M282.082 195.285L149.028 62.24c-1.9-1.903-4.088-2.856-6.562-2.856s-4.665.953-6.567 2.856L2.855 195.285C.95 197.19 0 199.378 0 201.853c0 2.474.953 4.664 2.856 6.566l14.272 14.27c1.903 1.903 4.093 2.854 6.567 2.854s4.664-.95 6.567-2.854l112.204-112.202 112.208 112.21c1.902 1.902 4.093 2.847 6.563 2.847 2.478 0 4.668-.95 6.57-2.848l14.274-14.277c1.903-1.902 2.848-4.093 2.848-6.566 0-2.476-.944-4.666-2.846-6.57z" fill="#205493"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 284.929 284.929"><path d="M282.082 195.285L149.028 62.24c-1.9-1.903-4.088-2.856-6.562-2.856s-4.665.953-6.567 2.856L2.855 195.285C.95 197.19 0 199.378 0 201.853c0 2.474.953 4.664 2.856 6.566l14.272 14.27c1.903 1.903 4.093 2.854 6.567 2.854s4.664-.95 6.567-2.854l112.204-112.202 112.208 112.21c1.902 1.902 4.093 2.847 6.563 2.847 2.478 0 4.668-.95 6.57-2.848l14.274-14.277c1.903-1.902 2.848-4.093 2.848-6.566 0-2.476-.944-4.666-2.846-6.57z" fill="#0071bc"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 14"><g fill="#323a45" fill-rule="evenodd"><path d="M.62639628 5.99993896H9.3727389c.25339173.00130856.482416-.15074264.57956202-.38477624.09714598-.2340336.04312294-.50357616-.13670922-.6820964L5.4401815.1835435C5.32475606.06613116 5.1670083 0 5.00236114 0c-.16464716 0-.3223949.06613117-.43782037.1835435L.1835435 4.93306632C.06613116 5.0484918 0 5.20623953 0 5.3708867s.06613117.32239492.1835435.43782038c.1146444.1224934.27508006.19177244.44285278.19123188zM9.3727389 7.9999685H.6263963c-.1662653-.00316183-.32647608.06237894-.4428528.18116705C.0661312 8.296561 0 8.45430875 0 8.61895592s.06613117.32239492.1835435.43782037l4.38099726 4.7596802C4.67996622 13.9338688 4.83771396 14 5.00236113 14s.32239492-.0661312.43782038-.1835435l4.3754102-4.74961537c.17983216-.17852023.2338552-.44806278.13670922-.68209638-.09714602-.2340336-.3261703-.3860848-.579562-.38477625z"/></g></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 444.8 444.8"><path d="M248.1 352L434 165.9c7.2-6.9 10.8-15.4 10.8-25.7 0-10.3-3.6-18.8-10.8-25.7l-21.4-21.7c-7-7-15.6-10.6-25.7-10.6-9.9 0-18.6 3.5-26 10.6L222.4 231.5 83.7 92.8c-7-7-15.6-10.6-25.7-10.6-9.9 0-18.6 3.5-26 10.6l-21.4 21.7c-7 7-10.6 15.6-10.6 25.7s3.5 18.7 10.6 25.7L196.4 352c7.4 7 16.1 10.6 26 10.6 10.1 0 18.7-3.5 25.7-10.6z"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="444.819" height="444.819" viewBox="0 0 444.819 444.819"><path d="M352.025 196.712L165.885 10.848C159.028 3.615 150.468 0 140.185 0s-18.84 3.62-25.696 10.848l-21.7 21.416c-7.045 7.043-10.567 15.604-10.567 25.692 0 9.897 3.52 18.56 10.566 25.98L231.544 222.41 92.785 361.168c-7.04 7.043-10.563 15.604-10.563 25.693 0 9.9 3.52 18.566 10.564 25.98l21.7 21.417c7.043 7.043 15.612 10.564 25.697 10.564 10.09 0 18.656-3.52 25.697-10.564L352.025 248.39c7.046-7.423 10.57-16.084 10.57-25.98.002-10.09-3.524-18.655-10.57-25.698z"/></svg>
|
Binary file
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<svg width="15px" height="15px" viewBox="0 0 15 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>UI element / Icons / Close</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="UI-components" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<g id="Headers---Mobile" transform="translate(-298.000000, -362.000000)" fill="#0071BB">
|
9
|
+
<g id="Header---Mobile---Collapse" transform="translate(0.000000, 279.000000)">
|
10
|
+
<g id="UI-element-/-Icons-/-Close" transform="translate(298.000000, 83.000000)">
|
11
|
+
<path d="M14.6467778,11.2126037 C14.8818403,11.4476661 15,11.7342663 15,12.0711472 C15,12.4080282 14.8818403,12.6946283 14.6467778,12.9296908 L12.9296908,14.6467778 C12.6933713,14.8830973 12.4067711,15.001257 12.0698902,15.001257 C11.7342663,15.001257 11.4476661,14.8830973 11.2126037,14.6467778 L7.49937149,10.9348026 L3.7873963,14.6467778 C3.55233386,14.8830973 3.26573368,15.001257 2.92885276,15.001257 C2.59197184,15.001257 2.30662868,14.8830973 2.07030923,14.6467778 L0.353222157,12.9296908 C0.116902707,12.6946283 0,12.4080282 0,12.0711472 C0,11.7342663 0.116902707,11.4476661 0.353222157,11.2126037 L4.06519735,7.50062851 L0.353222157,3.78865331 C0.116902707,3.55233386 0,3.2669907 0,2.92885276 C0,2.59322886 0.116902707,2.30662868 0.353222157,2.07156624 L2.07030923,0.353222157 C2.30662868,0.118159725 2.59197184,0 2.92885276,0 C3.26573368,0 3.55233386,0.118159725 3.7873963,0.353222157 L7.49937149,4.06519735 L11.2126037,0.353222157 C11.4476661,0.118159725 11.7342663,0 12.0698902,0 C12.4067711,0 12.6933713,0.118159725 12.9296908,0.353222157 L14.6467778,2.07156624 C14.8818403,2.30662868 15,2.59322886 15,2.92885276 C15,3.2669907 14.8818403,3.55233386 14.6467778,3.78865331 L10.9348026,7.50062851 L14.6467778,11.2126037 Z" id="Fill-15-Copy"></path>
|
12
|
+
</g>
|
13
|
+
</g>
|
14
|
+
</g>
|
15
|
+
</g>
|
16
|
+
</svg>
|
Binary file
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<svg width="15px" height="15px" viewBox="0 0 15 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>Fill 15 Copy</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<g id="UI-element-/-Icons-/-Close" fill="#5B616B">
|
9
|
+
<path d="M14.6467778,11.2126037 C14.8818403,11.4476661 15,11.7342663 15,12.0711472 C15,12.4080282 14.8818403,12.6946283 14.6467778,12.9296908 L12.9296908,14.6467778 C12.6933713,14.8830973 12.4067711,15.001257 12.0698902,15.001257 C11.7342663,15.001257 11.4476661,14.8830973 11.2126037,14.6467778 L7.49937149,10.9348026 L3.7873963,14.6467778 C3.55233386,14.8830973 3.26573368,15.001257 2.92885276,15.001257 C2.59197184,15.001257 2.30662868,14.8830973 2.07030923,14.6467778 L0.353222157,12.9296908 C0.116902707,12.6946283 0,12.4080282 0,12.0711472 C0,11.7342663 0.116902707,11.4476661 0.353222157,11.2126037 L4.06519735,7.50062851 L0.353222157,3.78865331 C0.116902707,3.55233386 0,3.2669907 0,2.92885276 C0,2.59322886 0.116902707,2.30662868 0.353222157,2.07156624 L2.07030923,0.353222157 C2.30662868,0.118159725 2.59197184,0 2.92885276,0 C3.26573368,0 3.55233386,0.118159725 3.7873963,0.353222157 L7.49937149,4.06519735 L11.2126037,0.353222157 C11.4476661,0.118159725 11.7342663,0 12.0698902,0 C12.4067711,0 12.6933713,0.118159725 12.9296908,0.353222157 L14.6467778,2.07156624 C14.8818403,2.30662868 15,2.59322886 15,2.92885276 C15,3.2669907 14.8818403,3.55233386 14.6467778,3.78865331 L10.9348026,7.50062851 L14.6467778,11.2126037 Z" id="Fill-15-Copy"></path>
|
10
|
+
</g>
|
11
|
+
</g>
|
12
|
+
</svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 216 146"><path fill="#fff" d="M168.86 37.966l-11.08-11.08c-1.52-1.52-3.367-2.28-5.54-2.28-2.172 0-4.02.76-5.54 2.28L93.254 80.414 69.3 56.38c-1.52-1.522-3.367-2.282-5.54-2.282-2.172 0-4.02.76-5.54 2.28L47.14 67.46c-1.52 1.522-2.28 3.37-2.28 5.542 0 2.172.76 4.02 2.28 5.54l29.493 29.493 11.08 11.08c1.52 1.52 3.368 2.28 5.54 2.28 2.173 0 4.02-.76 5.54-2.28l11.082-11.08L168.86 49.05c1.52-1.52 2.283-3.37 2.283-5.54 0-2.174-.76-4.02-2.28-5.54z"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 216 146"><path fill="#0071bc" d="M168.86 37.966l-11.08-11.08c-1.52-1.52-3.367-2.28-5.54-2.28-2.172 0-4.02.76-5.54 2.28L93.254 80.414 69.3 56.38c-1.52-1.522-3.367-2.282-5.54-2.282-2.172 0-4.02.76-5.54 2.28L47.14 67.46c-1.52 1.522-2.28 3.37-2.28 5.542 0 2.172.76 4.02 2.28 5.54l29.493 29.493 11.08 11.08c1.52 1.52 3.368 2.28 5.54 2.28 2.173 0 4.02-.76 5.54-2.28l11.082-11.08L168.86 49.05c1.52-1.52 2.283-3.37 2.283-5.54 0-2.174-.76-4.02-2.28-5.54z"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="511.626" height="511.627" viewBox="0 0 511.626 511.627"><g fill="#ffffff"><path d="M392.857 292.354h-18.274c-2.67 0-4.86.855-6.563 2.573-1.718 1.708-2.573 3.897-2.573 6.563v91.36c0 12.564-4.47 23.316-13.415 32.263-8.945 8.945-19.7 13.414-32.264 13.414H82.224c-12.562 0-23.317-4.47-32.264-13.414-8.945-8.946-13.417-19.698-13.417-32.262V155.31c0-12.562 4.47-23.313 13.417-32.26 8.947-8.946 19.702-13.417 32.264-13.417h200.994c2.67 0 4.86-.86 6.57-2.57 1.71-1.713 2.566-3.9 2.566-6.567V82.22c0-2.66-.855-4.852-2.566-6.562-1.71-1.713-3.9-2.568-6.57-2.568H82.224c-22.648 0-42.016 8.042-58.102 24.125C8.042 113.297 0 132.665 0 155.313v237.542c0 22.647 8.042 42.018 24.123 58.095 16.086 16.084 35.454 24.13 58.102 24.13h237.543c22.647 0 42.017-8.046 58.1-24.13 16.086-16.077 24.128-35.447 24.128-58.095v-91.358c0-2.67-.856-4.86-2.574-6.57-1.713-1.718-3.903-2.573-6.565-2.573z"/><path d="M506.2 41.97c-3.618-3.616-7.906-5.423-12.85-5.423H347.17c-4.947 0-9.232 1.807-12.846 5.424-3.617 3.616-5.428 7.9-5.428 12.848s1.81 9.233 5.428 12.85l50.247 50.248-186.146 186.15c-1.906 1.904-2.856 4.094-2.856 6.564 0 2.48.953 4.668 2.856 6.57l32.548 32.545c1.903 1.903 4.093 2.852 6.567 2.852s4.664-.948 6.566-2.852l186.148-186.148 50.25 50.248c3.615 3.617 7.9 5.426 12.848 5.426s9.233-1.808 12.85-5.425c3.618-3.616 5.425-7.898 5.425-12.847V54.818c0-4.952-1.814-9.232-5.428-12.847z"/></g></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="511.626" height="511.627" viewBox="0 0 511.626 511.627"><g fill="#d6d7d9"><path d="M392.857 292.354h-18.274c-2.67 0-4.86.855-6.563 2.573-1.718 1.708-2.573 3.897-2.573 6.563v91.36c0 12.564-4.47 23.316-13.415 32.263-8.945 8.945-19.7 13.414-32.264 13.414H82.224c-12.562 0-23.317-4.47-32.264-13.414-8.945-8.946-13.417-19.698-13.417-32.262V155.31c0-12.562 4.47-23.313 13.417-32.26 8.947-8.946 19.702-13.417 32.264-13.417h200.994c2.67 0 4.86-.86 6.57-2.57 1.71-1.713 2.566-3.9 2.566-6.567V82.22c0-2.66-.855-4.852-2.566-6.562-1.71-1.713-3.9-2.568-6.57-2.568H82.224c-22.648 0-42.016 8.042-58.102 24.125C8.042 113.297 0 132.665 0 155.313v237.542c0 22.647 8.042 42.018 24.123 58.095 16.086 16.084 35.454 24.13 58.102 24.13h237.543c22.647 0 42.017-8.046 58.1-24.13 16.086-16.077 24.128-35.447 24.128-58.095v-91.358c0-2.67-.856-4.86-2.574-6.57-1.713-1.718-3.903-2.573-6.565-2.573z"/><path d="M506.2 41.97c-3.618-3.616-7.906-5.423-12.85-5.423H347.17c-4.947 0-9.232 1.807-12.846 5.424-3.617 3.616-5.428 7.9-5.428 12.848s1.81 9.233 5.428 12.85l50.247 50.248-186.146 186.15c-1.906 1.904-2.856 4.094-2.856 6.564 0 2.48.953 4.668 2.856 6.57l32.548 32.545c1.903 1.903 4.093 2.852 6.567 2.852s4.664-.948 6.566-2.852l186.148-186.148 50.25 50.248c3.615 3.617 7.9 5.426 12.848 5.426s9.233-1.808 12.85-5.425c3.618-3.616 5.425-7.898 5.425-12.847V54.818c0-4.952-1.814-9.232-5.428-12.847z"/></g></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="511.626" height="511.627" viewBox="0 0 511.626 511.627"><g fill="#205493"><path d="M392.857 292.354h-18.274c-2.67 0-4.86.855-6.563 2.573-1.718 1.708-2.573 3.897-2.573 6.563v91.36c0 12.564-4.47 23.316-13.415 32.263-8.945 8.945-19.7 13.414-32.264 13.414H82.224c-12.562 0-23.317-4.47-32.264-13.414-8.945-8.946-13.417-19.698-13.417-32.262V155.31c0-12.562 4.47-23.313 13.417-32.26 8.947-8.946 19.702-13.417 32.264-13.417h200.994c2.67 0 4.86-.86 6.57-2.57 1.71-1.713 2.566-3.9 2.566-6.567V82.22c0-2.66-.855-4.852-2.566-6.562-1.71-1.713-3.9-2.568-6.57-2.568H82.224c-22.648 0-42.016 8.042-58.102 24.125C8.042 113.297 0 132.665 0 155.313v237.542c0 22.647 8.042 42.018 24.123 58.095 16.086 16.084 35.454 24.13 58.102 24.13h237.543c22.647 0 42.017-8.046 58.1-24.13 16.086-16.077 24.128-35.447 24.128-58.095v-91.358c0-2.67-.856-4.86-2.574-6.57-1.713-1.718-3.903-2.573-6.565-2.573z"/><path d="M506.2 41.97c-3.618-3.616-7.906-5.423-12.85-5.423H347.17c-4.947 0-9.232 1.807-12.846 5.424-3.617 3.616-5.428 7.9-5.428 12.848s1.81 9.233 5.428 12.85l50.247 50.248-186.146 186.15c-1.906 1.904-2.856 4.094-2.856 6.564 0 2.48.953 4.668 2.856 6.57l32.548 32.545c1.903 1.903 4.093 2.852 6.567 2.852s4.664-.948 6.566-2.852l186.148-186.148 50.25 50.248c3.615 3.617 7.9 5.426 12.848 5.426s9.233-1.808 12.85-5.425c3.618-3.616 5.425-7.898 5.425-12.847V54.818c0-4.952-1.814-9.232-5.428-12.847z"/></g></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="511.626" height="511.627" viewBox="0 0 511.626 511.627"><g fill="#0071bc"><path d="M392.857 292.354h-18.274c-2.67 0-4.86.855-6.563 2.573-1.718 1.708-2.573 3.897-2.573 6.563v91.36c0 12.564-4.47 23.316-13.415 32.263-8.945 8.945-19.7 13.414-32.264 13.414H82.224c-12.562 0-23.317-4.47-32.264-13.414-8.945-8.946-13.417-19.698-13.417-32.262V155.31c0-12.562 4.47-23.313 13.417-32.26 8.947-8.946 19.702-13.417 32.264-13.417h200.994c2.67 0 4.86-.86 6.57-2.57 1.71-1.713 2.566-3.9 2.566-6.567V82.22c0-2.66-.855-4.852-2.566-6.562-1.71-1.713-3.9-2.568-6.57-2.568H82.224c-22.648 0-42.016 8.042-58.102 24.125C8.042 113.297 0 132.665 0 155.313v237.542c0 22.647 8.042 42.018 24.123 58.095 16.086 16.084 35.454 24.13 58.102 24.13h237.543c22.647 0 42.017-8.046 58.1-24.13 16.086-16.077 24.128-35.447 24.128-58.095v-91.358c0-2.67-.856-4.86-2.574-6.57-1.713-1.718-3.903-2.573-6.565-2.573z"/><path d="M506.2 41.97c-3.618-3.616-7.906-5.423-12.85-5.423H347.17c-4.947 0-9.232 1.807-12.846 5.424-3.617 3.616-5.428 7.9-5.428 12.848s1.81 9.233 5.428 12.85l50.247 50.248-186.146 186.15c-1.906 1.904-2.856 4.094-2.856 6.564 0 2.48.953 4.668 2.856 6.57l32.548 32.545c1.903 1.903 4.093 2.852 6.567 2.852s4.664-.948 6.566-2.852l186.148-186.148 50.25 50.248c3.615 3.617 7.9 5.426 12.848 5.426s9.233-1.808 12.85-5.425c3.618-3.616 5.425-7.898 5.425-12.847V54.818c0-4.952-1.814-9.232-5.428-12.847z"/></g></svg>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 54 54"><defs><style>.cls-1{fill:#007faa;}.cls-2{fill:none;stroke:#046b99;stroke-miterlimit:10;}</style></defs><title>dot gov icon</title><path class="cls-1" d="M36.5,20.91v1.36H35.15a0.71,0.71,0,0,1-.73.68H18.23a0.71,0.71,0,0,1-.73-0.68H16.14V20.91l10.18-4.07Zm0,13.57v1.36H16.14V34.48a0.71,0.71,0,0,1,.73-0.68h18.9A0.71,0.71,0,0,1,36.5,34.48ZM21.57,23.62v8.14h1.36V23.62h2.71v8.14H27V23.62h2.71v8.14h1.36V23.62h2.71v8.14h0.63a0.71,0.71,0,0,1,.73.68v0.68H17.5V32.45a0.71,0.71,0,0,1,.73-0.68h0.63V23.62h2.71Z"/><circle class="cls-2" cx="27" cy="27.12" r="26"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 54 54"><defs><style>.cls-1{fill:#549500;}.cls-2{fill:none;stroke:#458600;stroke-miterlimit:10;}</style></defs><title>https icon</title><path class="cls-1" d="M34.72,34.84a1.29,1.29,0,0,1-1.29,1.29H20.57a1.29,1.29,0,0,1-1.29-1.29V27.12a1.29,1.29,0,0,1,1.29-1.29H21V23.26a6,6,0,0,1,12,0v2.57h0.43a1.29,1.29,0,0,1,1.29,1.29v7.72Zm-4.29-9V23.26a3.43,3.43,0,0,0-6.86,0v2.57h6.86Z"/><circle class="cls-2" cx="27" cy="27.12" r="26"/></svg>
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="401.991" height="401.991" viewBox="0 0 401.991 401.991"><path fill="#5B616B" d="M394 154.174c-5.33-5.33-11.806-7.995-19.417-7.995H27.406c-7.61 0-14.084 2.66-19.414 7.99C2.662 159.5 0 165.97 0 173.586v54.82c0 7.617 2.662 14.086 7.992 19.41 5.33 5.332 11.803 7.994 19.414 7.994h347.176c7.61 0 14.086-2.66 19.417-7.993 5.32-5.324 7.99-11.793 7.99-19.41v-54.82c0-7.615-2.66-14.087-7.99-19.413z"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="401.991" height="401.991" viewBox="0 0 401.991 401.991"><path d="M394 154.174c-5.33-5.33-11.806-7.995-19.417-7.995H27.406c-7.61 0-14.084 2.66-19.414 7.99C2.662 159.5 0 165.97 0 173.586v54.82c0 7.617 2.662 14.086 7.992 19.41 5.33 5.332 11.803 7.994 19.414 7.994h347.176c7.61 0 14.086-2.66 19.417-7.993 5.32-5.324 7.99-11.793 7.99-19.41v-54.82c0-7.615-2.66-14.087-7.99-19.413z"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="401.994" height="401.994" viewBox="0 0 401.994 401.994"><path fill="#5B616B" d="M394 154.175c-5.33-5.33-11.806-7.994-19.417-7.994H255.81V27.41c0-7.61-2.665-14.084-7.993-19.414C242.487 2.666 236.02 0 228.397 0h-54.81c-7.613 0-14.085 2.663-19.415 7.993-5.33 5.33-7.994 11.803-7.994 19.414v118.775H27.408c-7.612 0-14.085 2.664-19.415 7.994S0 165.973 0 173.59v54.818c0 7.618 2.662 14.086 7.992 19.41 5.33 5.333 11.803 7.995 19.414 7.995h118.77V374.59c0 7.61 2.665 14.09 7.995 19.417 5.33 5.325 11.806 7.987 19.418 7.987H228.4c7.618 0 14.087-2.662 19.418-7.987 5.332-5.33 7.994-11.806 7.994-19.417V255.813h118.77c7.618 0 14.09-2.662 19.417-7.994 5.325-5.33 7.99-11.797 7.99-19.415v-54.82c0-7.615-2.66-14.086-7.993-19.413z"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="401.994" height="401.994" viewBox="0 0 401.994 401.994"><path d="M394 154.175c-5.33-5.33-11.806-7.994-19.417-7.994H255.81V27.41c0-7.61-2.665-14.084-7.993-19.414C242.487 2.666 236.02 0 228.397 0h-54.81c-7.613 0-14.085 2.663-19.415 7.993-5.33 5.33-7.994 11.803-7.994 19.414v118.775H27.408c-7.612 0-14.085 2.664-19.415 7.994S0 165.973 0 173.59v54.818c0 7.618 2.662 14.086 7.992 19.41 5.33 5.333 11.803 7.995 19.414 7.995h118.77V374.59c0 7.61 2.665 14.09 7.995 19.417 5.33 5.325 11.806 7.987 19.418 7.987H228.4c7.618 0 14.087-2.662 19.418-7.987 5.332-5.33 7.994-11.806 7.994-19.417V255.813h118.77c7.618 0 14.09-2.662 19.417-7.994 5.325-5.33 7.99-11.797 7.99-19.415v-54.82c0-7.615-2.66-14.086-7.993-19.413z"/></svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 216 146"><path fill="#5b616b" d="M172.77 123.025L144.825 95.08c6.735-9.722 10.104-20.56 10.104-32.508 0-7.767-1.51-15.195-4.527-22.283-3.014-7.09-7.088-13.2-12.22-18.336s-11.243-9.207-18.33-12.22c-7.09-3.016-14.52-4.523-22.286-4.523-7.768 0-15.196 1.508-22.284 4.523-7.09 3.014-13.2 7.088-18.332 12.22-5.132 5.134-9.206 11.245-12.22 18.333-3.015 7.088-4.522 14.515-4.522 22.282 0 7.766 1.507 15.192 4.522 22.282 3.014 7.088 7.088 13.197 12.22 18.33 5.134 5.134 11.245 9.207 18.333 12.222 7.09 3.015 14.516 4.522 22.283 4.522 11.95 0 22.786-3.37 32.51-10.105l27.943 27.863c1.955 2.064 4.397 3.096 7.332 3.096 2.824 0 5.27-1.03 7.332-3.096 2.064-2.063 3.096-4.508 3.096-7.332 0-2.877-1.002-5.322-3.013-7.33zm-49.413-34.668C116.214 95.5 107.62 99.07 97.57 99.07c-10.048 0-18.643-3.57-25.786-10.713C64.64 81.214 61.07 72.62 61.07 62.57c0-10.047 3.572-18.643 10.714-25.785C78.926 29.642 87.522 26.07 97.57 26.07c10.048 0 18.643 3.573 25.787 10.715 7.143 7.142 10.715 15.738 10.715 25.786 0 10.05-3.573 18.647-10.715 25.79z"/></svg>
|
Binary file
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<svg width="15px" height="15px" viewBox="0 0 15 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>Fill 200 Copy</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<g id="UI-element-/-Icons-/-Search---blue" fill="#0071BC">
|
9
|
+
<path d="M9.19897377,9.19897377 C9.9895477,8.40935006 10.3848347,7.4581908 10.3848347,6.34644622 C10.3848347,5.23470163 9.9895477,4.28354238 9.19897377,3.49296845 C8.40935006,2.70334474 7.4581908,2.30805777 6.34644622,2.30805777 C5.23470163,2.30805777 4.28354238,2.70334474 3.49296845,3.49296845 C2.70334474,4.28354238 2.30805777,5.23470163 2.30805777,6.34644622 C2.30805777,7.4581908 2.70334474,8.40935006 3.49296845,9.19897377 C4.28354238,9.9895477 5.23470163,10.3848347 6.34644622,10.3848347 C7.4581908,10.3848347 8.40935006,9.9895477 9.19897377,9.19897377 L9.19897377,9.19897377 Z M14.6664766,13.0349677 C14.8888255,13.2573166 15,13.5281262 15,13.8464462 C15,14.159065 14.8859749,14.4289244 14.6569745,14.6569745 C14.4289244,14.8850247 14.159065,14.9990498 13.8464462,14.9990498 C13.5214747,14.9990498 13.2516154,14.8850247 13.0349677,14.6569745 L9.94298746,11.5744964 C8.86735082,12.3194603 7.66913721,12.6919422 6.34644622,12.6919422 C5.48745724,12.6919422 4.66552642,12.5256556 3.88065374,12.1911821 C3.09673128,11.8586089 2.42018244,11.4072596 1.85290764,10.8399848 C1.28468263,10.2717598 0.834283542,9.59616116 0.500760167,8.81128848 C0.167236792,8.02736602 0,7.2054352 0,6.34644622 C0,5.48745724 0.167236792,4.66552642 0.500760167,3.88065374 C0.834283542,3.09673128 1.28468263,2.42018244 1.85290764,1.85290764 C2.42018244,1.28468263 3.09673128,0.833333333 3.88065374,0.500760167 C4.66552642,0.166286583 5.48745724,0 6.34644622,0 C7.2054352,0 8.02831623,0.166286583 8.81223869,0.500760167 C9.59616116,0.833333333 10.2717598,1.28468263 10.8399848,1.85290764 C11.4072596,2.42018244 11.8586089,3.09673128 12.1921323,3.88065374 C12.5256556,4.66552642 12.6928924,5.48745724 12.6928924,6.34644622 C12.6928924,7.668187 12.3194603,8.86640061 11.5744964,9.94298746 L14.6664766,13.0349677 Z" id="Fill-200-Copy"></path>
|
10
|
+
</g>
|
11
|
+
</g>
|
12
|
+
</svg>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 216 146"><path fill="#fff" d="M172.77 123.025L144.825 95.08c6.735-9.722 10.104-20.56 10.104-32.508 0-7.767-1.51-15.195-4.527-22.283-3.014-7.09-7.088-13.2-12.22-18.336s-11.243-9.207-18.33-12.22c-7.09-3.016-14.52-4.523-22.286-4.523-7.768 0-15.196 1.508-22.284 4.523-7.09 3.014-13.2 7.088-18.332 12.22-5.132 5.134-9.206 11.245-12.22 18.333-3.015 7.088-4.522 14.515-4.522 22.282 0 7.766 1.507 15.192 4.522 22.282 3.014 7.088 7.088 13.197 12.22 18.33 5.134 5.134 11.245 9.207 18.333 12.222 7.09 3.015 14.516 4.522 22.283 4.522 11.95 0 22.786-3.37 32.51-10.105l27.943 27.863c1.955 2.064 4.397 3.096 7.332 3.096 2.824 0 5.27-1.03 7.332-3.096 2.064-2.063 3.096-4.508 3.096-7.332 0-2.877-1.002-5.322-3.013-7.33zm-49.413-34.668C116.214 95.5 107.62 99.07 97.57 99.07c-10.048 0-18.643-3.57-25.786-10.713C64.64 81.214 61.07 72.62 61.07 62.57c0-10.047 3.572-18.643 10.714-25.785C78.926 29.642 87.522 26.07 97.57 26.07c10.048 0 18.643 3.573 25.787 10.715 7.143 7.142 10.715 15.738 10.715 25.786 0 10.05-3.573 18.647-10.715 25.79z"/></svg>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="216" height="146" viewBox="0 0 216 146"><path d="M118.348 49.86V38.293c0-1.737.08-3.082.243-4.032.165-.95.53-1.886 1.104-2.81.57-.923 1.494-1.56 2.77-1.914 1.277-.354 2.975-.53 5.094-.53h11.568V5.866H120.63c-10.702 0-18.387 2.54-23.058 7.617-4.67 5.08-7.006 12.56-7.006 22.446v13.93H76.714V73h13.85v67.134h27.784V73h18.494l2.444-23.14h-20.938z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="216" height="146" viewBox="0 0 216 146"><path d="M66.28 99.072c-4.347 0-8.04 1.52-11.082 4.562-3.04 3.042-4.562 6.735-4.562 11.08 0 4.347 1.52 8.04 4.562 11.08 3.042 3.042 6.736 4.563 11.08 4.563 4.346 0 8.04-1.52 11.08-4.562 3.042-3.042 4.563-6.734 4.563-11.08s-1.52-8.04-4.56-11.08c-3.04-3.042-6.733-4.563-11.08-4.563zm36.01-20.37c-6.138-6.19-13.172-11.12-21.102-14.786-7.93-3.667-16.24-5.853-24.93-6.56h-.408c-1.412 0-2.58.463-3.503 1.386-1.14.977-1.71 2.254-1.71 3.83V73.57c0 1.357.447 2.525 1.343 3.503.896.98 2.023 1.522 3.38 1.63 12.44 1.195 23.07 6.206 31.897 15.032 8.826 8.825 13.837 19.458 15.032 31.896.106 1.36.65 2.488 1.63 3.384.975.897 2.142 1.346 3.5 1.346h11c1.574 0 2.85-.57 3.83-1.71 1.03-1.09 1.492-2.393 1.385-3.914-.707-8.69-2.894-17-6.56-24.93-3.666-7.93-8.595-14.964-14.787-21.102z"/><path d="M155.573 84.04c-5.812-13.01-13.796-24.565-23.953-34.668-10.103-10.157-21.658-18.14-34.667-23.953-13.008-5.814-26.628-9.074-40.86-9.78h-.243c-1.412 0-2.607.49-3.585 1.467-1.086.976-1.63 2.226-1.63 3.747v11.65c0 1.358.477 2.54 1.427 3.544s2.104 1.534 3.462 1.59c11.678.706 22.772 3.477 33.282 8.31 10.51 4.835 19.635 11.12 27.375 18.86 7.74 7.74 14.03 16.866 18.86 27.376 4.837 10.512 7.58 21.604 8.23 33.282.057 1.357.586 2.512 1.59 3.462 1.006.95 2.215 1.427 3.627 1.427h11.65c1.52 0 2.768-.544 3.747-1.632 1.087-1.086 1.574-2.36 1.468-3.828-.704-14.232-3.964-27.852-9.776-40.86z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="216" height="146" viewBox="0 0 216 146"><path d="M172.2 33.24c-5.05 2.174-10.103 3.53-15.152 4.076 5.703-3.422 9.56-8.256 11.57-14.502-5.216 3.095-10.783 5.213-16.703 6.354-5.215-5.54-11.623-8.31-19.228-8.31-7.278 0-13.483 2.565-18.617 7.698-5.133 5.133-7.7 11.338-7.7 18.616 0 1.955.218 3.965.653 6.03-10.755-.544-20.844-3.246-30.268-8.107-9.424-4.862-17.422-11.34-23.994-19.432-2.39 4.073-3.582 8.5-3.582 13.28 0 4.508 1.06 8.69 3.178 12.547 2.118 3.856 4.97 6.98 8.555 9.37-4.237-.164-8.202-1.278-11.895-3.342v.326c0 6.355 1.996 11.935 5.988 16.743 3.992 4.808 9.03 7.835 15.113 9.084-2.28.6-4.59.9-6.925.9-1.52 0-3.177-.137-4.97-.407 1.685 5.27 4.78 9.6 9.29 12.995 4.507 3.396 9.613 5.146 15.316 5.256-9.56 7.495-20.45 11.243-32.67 11.243-2.336 0-4.454-.107-6.355-.325 12.22 7.876 25.69 11.813 40.41 11.813 9.344 0 18.116-1.48 26.316-4.44 8.203-2.96 15.21-6.924 21.02-11.895 5.812-4.97 10.823-10.686 15.032-17.15 4.21-6.463 7.345-13.21 9.41-20.245 2.064-7.035 3.096-14.08 3.096-21.143 0-1.52-.027-2.66-.082-3.422 5.163-3.746 9.563-8.282 13.2-13.604z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="216" height="146" viewBox="0 0 216 146"><path d="M166.254 75.443c-.705-3.205-2.268-5.893-4.684-8.065-2.418-2.172-5.202-3.45-8.353-3.83-9.993-1.085-25.065-1.628-45.218-1.628-20.155 0-35.2.543-45.14 1.63-3.204.38-6 1.656-8.39 3.828-2.39 2.173-3.967 4.86-4.728 8.065-1.412 6.302-2.118 15.807-2.118 28.517 0 12.927.706 22.433 2.118 28.517.707 3.203 2.27 5.893 4.686 8.064 2.416 2.176 5.2 3.425 8.35 3.75C72.776 145.43 87.85 146 108 146s35.225-.57 45.217-1.71c3.15-.327 5.92-1.576 8.31-3.75 2.392-2.17 3.967-4.86 4.727-8.063 1.412-6.302 2.12-15.807 2.12-28.517-.002-12.927-.71-22.433-2.12-28.517zm-84.162 8.23h-8.718v46.358h-8.147V83.677h-8.555v-7.66h25.42v7.66zm21.997 46.358h-7.254v-4.4c-2.933 3.317-5.704 4.97-8.31 4.97-2.5 0-4.075-1.002-4.726-3.01-.433-1.305-.65-3.288-.65-5.95V89.783h7.25v29.656c0 1.737.027 2.688.082 2.85.163 1.142.733 1.712 1.71 1.712 1.467 0 3.016-1.14 4.645-3.422V89.783h7.25v40.248zm27.7-12.055c0 3.965-.246 6.682-.73 8.15-.928 2.984-2.855 4.478-5.788 4.478-2.607 0-5.133-1.493-7.578-4.478v3.91h-7.25v-54.02h7.25v17.68c2.337-2.93 4.86-4.4 7.578-4.4 2.933 0 4.86 1.523 5.785 4.564.486 1.41.73 4.1.73 8.063v16.048zm27.536-6.68h-14.583v7.088c0 3.75 1.248 5.622 3.747 5.622 1.793 0 2.88-.977 3.26-2.934.108-.542.163-2.2.163-4.97h7.414v1.06c0 2.663-.055 4.237-.163 4.728-.162 1.465-.73 2.932-1.71 4.398-1.956 2.88-4.89 4.318-8.8 4.318-3.748 0-6.68-1.384-8.8-4.153-1.574-2.01-2.362-5.16-2.362-9.45v-14.1c0-4.29.76-7.44 2.28-9.45 2.12-2.77 5.025-4.154 8.72-4.154 3.64 0 6.52 1.384 8.635 4.154 1.468 2.01 2.2 5.16 2.2 9.45v8.392z"/><path d="M121.36 95.895c-1.25 0-2.47.6-3.665 1.793v24.522c1.195 1.194 2.416 1.792 3.666 1.792 2.12 0 3.18-1.818 3.18-5.46v-17.188c0-3.64-1.06-5.46-3.18-5.46zm27.05 0c-2.443 0-3.665 1.847-3.665 5.54v3.747h7.332v-3.748c0-3.694-1.223-5.54-3.666-5.54zM77.368 32.508v22.08h8.147v-22.08L95.372 0h-8.31l-5.54 21.428L75.74 0h-8.636c1.52 4.563 3.286 9.64 5.296 15.236 2.553 7.495 4.21 13.253 4.97 17.272zm28.922 22.65c3.747 0 6.625-1.385 8.635-4.155 1.52-2.01 2.28-5.215 2.28-9.614V27.13c0-4.344-.76-7.522-2.28-9.532-2.01-2.77-4.888-4.155-8.636-4.155-3.64 0-6.495 1.385-8.558 4.155-1.52 2.01-2.28 5.188-2.28 9.533v14.26c0 4.346.76 7.55 2.28 9.615 2.064 2.77 4.915 4.155 8.555 4.155zm-3.505-29.494c0-3.748 1.168-5.622 3.504-5.622s3.5 1.874 3.5 5.622v17.11c0 3.802-1.167 5.702-3.503 5.702s-3.505-1.9-3.505-5.703v-17.11zm25.908 29.494c2.717 0 5.515-1.684 8.393-5.052v4.48h7.414V13.933h-7.414v31.04c-1.63 2.337-3.177 3.504-4.645 3.504-.976 0-1.546-.597-1.71-1.792-.053-.11-.08-1.06-.08-2.852v-29.9h-7.414v32.1c0 2.77.218 4.807.652 6.11.707 2.01 2.31 3.016 4.807 3.016z"/></svg>
|
Binary file
|
@@ -0,0 +1,1930 @@
|
|
1
|
+
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(require,module,exports){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Array#filter.
|
6
|
+
*
|
7
|
+
* @param {Array} arr
|
8
|
+
* @param {Function} fn
|
9
|
+
* @param {Object=} self
|
10
|
+
* @return {Array}
|
11
|
+
* @throw TypeError
|
12
|
+
*/
|
13
|
+
|
14
|
+
module.exports = function (arr, fn, self) {
|
15
|
+
if (arr.filter) return arr.filter(fn, self);
|
16
|
+
if (void 0 === arr || null === arr) throw new TypeError();
|
17
|
+
if ('function' != typeof fn) throw new TypeError();
|
18
|
+
var ret = [];
|
19
|
+
for (var i = 0; i < arr.length; i++) {
|
20
|
+
if (!hasOwn.call(arr, i)) continue;
|
21
|
+
var val = arr[i];
|
22
|
+
if (fn.call(self, val, i, arr)) ret.push(val);
|
23
|
+
}
|
24
|
+
return ret;
|
25
|
+
};
|
26
|
+
|
27
|
+
var hasOwn = Object.prototype.hasOwnProperty;
|
28
|
+
|
29
|
+
},{}],2:[function(require,module,exports){
|
30
|
+
/**
|
31
|
+
* array-foreach
|
32
|
+
* Array#forEach ponyfill for older browsers
|
33
|
+
* (Ponyfill: A polyfill that doesn't overwrite the native method)
|
34
|
+
*
|
35
|
+
* https://github.com/twada/array-foreach
|
36
|
+
*
|
37
|
+
* Copyright (c) 2015-2016 Takuto Wada
|
38
|
+
* Licensed under the MIT license.
|
39
|
+
* https://github.com/twada/array-foreach/blob/master/MIT-LICENSE
|
40
|
+
*/
|
41
|
+
'use strict';
|
42
|
+
|
43
|
+
module.exports = function forEach(ary, callback, thisArg) {
|
44
|
+
if (ary.forEach) {
|
45
|
+
ary.forEach(callback, thisArg);
|
46
|
+
return;
|
47
|
+
}
|
48
|
+
for (var i = 0; i < ary.length; i += 1) {
|
49
|
+
callback.call(thisArg, ary[i], i, ary);
|
50
|
+
}
|
51
|
+
};
|
52
|
+
|
53
|
+
},{}],3:[function(require,module,exports){
|
54
|
+
"use strict";
|
55
|
+
|
56
|
+
/*
|
57
|
+
* classList.js: Cross-browser full element.classList implementation.
|
58
|
+
* 1.1.20170427
|
59
|
+
*
|
60
|
+
* By Eli Grey, http://eligrey.com
|
61
|
+
* License: Dedicated to the public domain.
|
62
|
+
* See https://github.com/eligrey/classList.js/blob/master/LICENSE.md
|
63
|
+
*/
|
64
|
+
|
65
|
+
/*global self, document, DOMException */
|
66
|
+
|
67
|
+
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
|
68
|
+
|
69
|
+
if ("document" in window.self) {
|
70
|
+
|
71
|
+
// Full polyfill for browsers with no classList support
|
72
|
+
// Including IE < Edge missing SVGElement.classList
|
73
|
+
if (!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) {
|
74
|
+
|
75
|
+
(function (view) {
|
76
|
+
|
77
|
+
"use strict";
|
78
|
+
|
79
|
+
if (!('Element' in view)) return;
|
80
|
+
|
81
|
+
var classListProp = "classList",
|
82
|
+
protoProp = "prototype",
|
83
|
+
elemCtrProto = view.Element[protoProp],
|
84
|
+
objCtr = Object,
|
85
|
+
strTrim = String[protoProp].trim || function () {
|
86
|
+
return this.replace(/^\s+|\s+$/g, "");
|
87
|
+
},
|
88
|
+
arrIndexOf = Array[protoProp].indexOf || function (item) {
|
89
|
+
var i = 0,
|
90
|
+
len = this.length;
|
91
|
+
for (; i < len; i++) {
|
92
|
+
if (i in this && this[i] === item) {
|
93
|
+
return i;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
return -1;
|
97
|
+
}
|
98
|
+
// Vendors: please allow content code to instantiate DOMExceptions
|
99
|
+
,
|
100
|
+
DOMEx = function DOMEx(type, message) {
|
101
|
+
this.name = type;
|
102
|
+
this.code = DOMException[type];
|
103
|
+
this.message = message;
|
104
|
+
},
|
105
|
+
checkTokenAndGetIndex = function checkTokenAndGetIndex(classList, token) {
|
106
|
+
if (token === "") {
|
107
|
+
throw new DOMEx("SYNTAX_ERR", "An invalid or illegal string was specified");
|
108
|
+
}
|
109
|
+
if (/\s/.test(token)) {
|
110
|
+
throw new DOMEx("INVALID_CHARACTER_ERR", "String contains an invalid character");
|
111
|
+
}
|
112
|
+
return arrIndexOf.call(classList, token);
|
113
|
+
},
|
114
|
+
ClassList = function ClassList(elem) {
|
115
|
+
var trimmedClasses = strTrim.call(elem.getAttribute("class") || ""),
|
116
|
+
classes = trimmedClasses ? trimmedClasses.split(/\s+/) : [],
|
117
|
+
i = 0,
|
118
|
+
len = classes.length;
|
119
|
+
for (; i < len; i++) {
|
120
|
+
this.push(classes[i]);
|
121
|
+
}
|
122
|
+
this._updateClassName = function () {
|
123
|
+
elem.setAttribute("class", this.toString());
|
124
|
+
};
|
125
|
+
},
|
126
|
+
classListProto = ClassList[protoProp] = [],
|
127
|
+
classListGetter = function classListGetter() {
|
128
|
+
return new ClassList(this);
|
129
|
+
};
|
130
|
+
// Most DOMException implementations don't allow calling DOMException's toString()
|
131
|
+
// on non-DOMExceptions. Error's toString() is sufficient here.
|
132
|
+
DOMEx[protoProp] = Error[protoProp];
|
133
|
+
classListProto.item = function (i) {
|
134
|
+
return this[i] || null;
|
135
|
+
};
|
136
|
+
classListProto.contains = function (token) {
|
137
|
+
token += "";
|
138
|
+
return checkTokenAndGetIndex(this, token) !== -1;
|
139
|
+
};
|
140
|
+
classListProto.add = function () {
|
141
|
+
var tokens = arguments,
|
142
|
+
i = 0,
|
143
|
+
l = tokens.length,
|
144
|
+
token,
|
145
|
+
updated = false;
|
146
|
+
do {
|
147
|
+
token = tokens[i] + "";
|
148
|
+
if (checkTokenAndGetIndex(this, token) === -1) {
|
149
|
+
this.push(token);
|
150
|
+
updated = true;
|
151
|
+
}
|
152
|
+
} while (++i < l);
|
153
|
+
|
154
|
+
if (updated) {
|
155
|
+
this._updateClassName();
|
156
|
+
}
|
157
|
+
};
|
158
|
+
classListProto.remove = function () {
|
159
|
+
var tokens = arguments,
|
160
|
+
i = 0,
|
161
|
+
l = tokens.length,
|
162
|
+
token,
|
163
|
+
updated = false,
|
164
|
+
index;
|
165
|
+
do {
|
166
|
+
token = tokens[i] + "";
|
167
|
+
index = checkTokenAndGetIndex(this, token);
|
168
|
+
while (index !== -1) {
|
169
|
+
this.splice(index, 1);
|
170
|
+
updated = true;
|
171
|
+
index = checkTokenAndGetIndex(this, token);
|
172
|
+
}
|
173
|
+
} while (++i < l);
|
174
|
+
|
175
|
+
if (updated) {
|
176
|
+
this._updateClassName();
|
177
|
+
}
|
178
|
+
};
|
179
|
+
classListProto.toggle = function (token, force) {
|
180
|
+
token += "";
|
181
|
+
|
182
|
+
var result = this.contains(token),
|
183
|
+
method = result ? force !== true && "remove" : force !== false && "add";
|
184
|
+
|
185
|
+
if (method) {
|
186
|
+
this[method](token);
|
187
|
+
}
|
188
|
+
|
189
|
+
if (force === true || force === false) {
|
190
|
+
return force;
|
191
|
+
} else {
|
192
|
+
return !result;
|
193
|
+
}
|
194
|
+
};
|
195
|
+
classListProto.toString = function () {
|
196
|
+
return this.join(" ");
|
197
|
+
};
|
198
|
+
|
199
|
+
if (objCtr.defineProperty) {
|
200
|
+
var classListPropDesc = {
|
201
|
+
get: classListGetter,
|
202
|
+
enumerable: true,
|
203
|
+
configurable: true
|
204
|
+
};
|
205
|
+
try {
|
206
|
+
objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);
|
207
|
+
} catch (ex) {
|
208
|
+
// IE 8 doesn't support enumerable:true
|
209
|
+
// adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36
|
210
|
+
// modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected
|
211
|
+
if (ex.number === undefined || ex.number === -0x7FF5EC54) {
|
212
|
+
classListPropDesc.enumerable = false;
|
213
|
+
objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);
|
214
|
+
}
|
215
|
+
}
|
216
|
+
} else if (objCtr[protoProp].__defineGetter__) {
|
217
|
+
elemCtrProto.__defineGetter__(classListProp, classListGetter);
|
218
|
+
}
|
219
|
+
})(window.self);
|
220
|
+
}
|
221
|
+
|
222
|
+
// There is full or partial native classList support, so just check if we need
|
223
|
+
// to normalize the add/remove and toggle APIs.
|
224
|
+
|
225
|
+
(function () {
|
226
|
+
"use strict";
|
227
|
+
|
228
|
+
var testElement = document.createElement("_");
|
229
|
+
|
230
|
+
testElement.classList.add("c1", "c2");
|
231
|
+
|
232
|
+
// Polyfill for IE 10/11 and Firefox <26, where classList.add and
|
233
|
+
// classList.remove exist but support only one argument at a time.
|
234
|
+
if (!testElement.classList.contains("c2")) {
|
235
|
+
var createMethod = function createMethod(method) {
|
236
|
+
var original = DOMTokenList.prototype[method];
|
237
|
+
|
238
|
+
DOMTokenList.prototype[method] = function (token) {
|
239
|
+
var i,
|
240
|
+
len = arguments.length;
|
241
|
+
|
242
|
+
for (i = 0; i < len; i++) {
|
243
|
+
token = arguments[i];
|
244
|
+
original.call(this, token);
|
245
|
+
}
|
246
|
+
};
|
247
|
+
};
|
248
|
+
createMethod('add');
|
249
|
+
createMethod('remove');
|
250
|
+
}
|
251
|
+
|
252
|
+
testElement.classList.toggle("c3", false);
|
253
|
+
|
254
|
+
// Polyfill for IE 10 and Firefox <24, where classList.toggle does not
|
255
|
+
// support the second argument.
|
256
|
+
if (testElement.classList.contains("c3")) {
|
257
|
+
var _toggle = DOMTokenList.prototype.toggle;
|
258
|
+
|
259
|
+
DOMTokenList.prototype.toggle = function (token, force) {
|
260
|
+
if (1 in arguments && !this.contains(token) === !force) {
|
261
|
+
return force;
|
262
|
+
} else {
|
263
|
+
return _toggle.call(this, token);
|
264
|
+
}
|
265
|
+
};
|
266
|
+
}
|
267
|
+
|
268
|
+
testElement = null;
|
269
|
+
})();
|
270
|
+
}
|
271
|
+
|
272
|
+
},{}],4:[function(require,module,exports){
|
273
|
+
'use strict';
|
274
|
+
|
275
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
276
|
+
|
277
|
+
/*!
|
278
|
+
* domready (c) Dustin Diaz 2014 - License MIT
|
279
|
+
*/
|
280
|
+
!function (name, definition) {
|
281
|
+
|
282
|
+
if (typeof module != 'undefined') module.exports = definition();else if (typeof define == 'function' && _typeof(define.amd) == 'object') define(definition);else this[name] = definition();
|
283
|
+
}('domready', function () {
|
284
|
+
|
285
|
+
var fns = [],
|
286
|
+
_listener,
|
287
|
+
doc = document,
|
288
|
+
hack = doc.documentElement.doScroll,
|
289
|
+
domContentLoaded = 'DOMContentLoaded',
|
290
|
+
loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);
|
291
|
+
|
292
|
+
if (!loaded) doc.addEventListener(domContentLoaded, _listener = function listener() {
|
293
|
+
doc.removeEventListener(domContentLoaded, _listener);
|
294
|
+
loaded = 1;
|
295
|
+
while (_listener = fns.shift()) {
|
296
|
+
_listener();
|
297
|
+
}
|
298
|
+
});
|
299
|
+
|
300
|
+
return function (fn) {
|
301
|
+
loaded ? setTimeout(fn, 0) : fns.push(fn);
|
302
|
+
};
|
303
|
+
});
|
304
|
+
|
305
|
+
},{}],5:[function(require,module,exports){
|
306
|
+
'use strict';
|
307
|
+
|
308
|
+
// <3 Modernizr
|
309
|
+
// https://raw.githubusercontent.com/Modernizr/Modernizr/master/feature-detects/dom/dataset.js
|
310
|
+
|
311
|
+
function useNative() {
|
312
|
+
var elem = document.createElement('div');
|
313
|
+
elem.setAttribute('data-a-b', 'c');
|
314
|
+
|
315
|
+
return Boolean(elem.dataset && elem.dataset.aB === 'c');
|
316
|
+
}
|
317
|
+
|
318
|
+
function nativeDataset(element) {
|
319
|
+
return element.dataset;
|
320
|
+
}
|
321
|
+
|
322
|
+
module.exports = useNative() ? nativeDataset : function (element) {
|
323
|
+
var map = {};
|
324
|
+
var attributes = element.attributes;
|
325
|
+
|
326
|
+
function getter() {
|
327
|
+
return this.value;
|
328
|
+
}
|
329
|
+
|
330
|
+
function setter(name, value) {
|
331
|
+
if (typeof value === 'undefined') {
|
332
|
+
this.removeAttribute(name);
|
333
|
+
} else {
|
334
|
+
this.setAttribute(name, value);
|
335
|
+
}
|
336
|
+
}
|
337
|
+
|
338
|
+
for (var i = 0, j = attributes.length; i < j; i++) {
|
339
|
+
var attribute = attributes[i];
|
340
|
+
|
341
|
+
if (attribute) {
|
342
|
+
var name = attribute.name;
|
343
|
+
|
344
|
+
if (name.indexOf('data-') === 0) {
|
345
|
+
var prop = name.slice(5).replace(/-./g, function (u) {
|
346
|
+
return u.charAt(1).toUpperCase();
|
347
|
+
});
|
348
|
+
|
349
|
+
var value = attribute.value;
|
350
|
+
|
351
|
+
Object.defineProperty(map, prop, {
|
352
|
+
enumerable: true,
|
353
|
+
get: getter.bind({ value: value || '' }),
|
354
|
+
set: setter.bind(element, name)
|
355
|
+
});
|
356
|
+
}
|
357
|
+
}
|
358
|
+
}
|
359
|
+
|
360
|
+
return map;
|
361
|
+
};
|
362
|
+
|
363
|
+
},{}],6:[function(require,module,exports){
|
364
|
+
'use strict';
|
365
|
+
|
366
|
+
// element-closest | CC0-1.0 | github.com/jonathantneal/closest
|
367
|
+
|
368
|
+
(function (ElementProto) {
|
369
|
+
if (typeof ElementProto.matches !== 'function') {
|
370
|
+
ElementProto.matches = ElementProto.msMatchesSelector || ElementProto.mozMatchesSelector || ElementProto.webkitMatchesSelector || function matches(selector) {
|
371
|
+
var element = this;
|
372
|
+
var elements = (element.document || element.ownerDocument).querySelectorAll(selector);
|
373
|
+
var index = 0;
|
374
|
+
|
375
|
+
while (elements[index] && elements[index] !== element) {
|
376
|
+
++index;
|
377
|
+
}
|
378
|
+
|
379
|
+
return Boolean(elements[index]);
|
380
|
+
};
|
381
|
+
}
|
382
|
+
|
383
|
+
if (typeof ElementProto.closest !== 'function') {
|
384
|
+
ElementProto.closest = function closest(selector) {
|
385
|
+
var element = this;
|
386
|
+
|
387
|
+
while (element && element.nodeType === 1) {
|
388
|
+
if (element.matches(selector)) {
|
389
|
+
return element;
|
390
|
+
}
|
391
|
+
|
392
|
+
element = element.parentNode;
|
393
|
+
}
|
394
|
+
|
395
|
+
return null;
|
396
|
+
};
|
397
|
+
}
|
398
|
+
})(window.Element.prototype);
|
399
|
+
|
400
|
+
},{}],7:[function(require,module,exports){
|
401
|
+
(function (global){
|
402
|
+
'use strict';
|
403
|
+
|
404
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
405
|
+
|
406
|
+
/**
|
407
|
+
* lodash (Custom Build) <https://lodash.com/>
|
408
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
409
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
410
|
+
* Released under MIT license <https://lodash.com/license>
|
411
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
412
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
413
|
+
*/
|
414
|
+
|
415
|
+
/** Used as the `TypeError` message for "Functions" methods. */
|
416
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
417
|
+
|
418
|
+
/** Used as references for various `Number` constants. */
|
419
|
+
var NAN = 0 / 0;
|
420
|
+
|
421
|
+
/** `Object#toString` result references. */
|
422
|
+
var symbolTag = '[object Symbol]';
|
423
|
+
|
424
|
+
/** Used to match leading and trailing whitespace. */
|
425
|
+
var reTrim = /^\s+|\s+$/g;
|
426
|
+
|
427
|
+
/** Used to detect bad signed hexadecimal string values. */
|
428
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
429
|
+
|
430
|
+
/** Used to detect binary string values. */
|
431
|
+
var reIsBinary = /^0b[01]+$/i;
|
432
|
+
|
433
|
+
/** Used to detect octal string values. */
|
434
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
435
|
+
|
436
|
+
/** Built-in method references without a dependency on `root`. */
|
437
|
+
var freeParseInt = parseInt;
|
438
|
+
|
439
|
+
/** Detect free variable `global` from Node.js. */
|
440
|
+
var freeGlobal = (typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global && global.Object === Object && global;
|
441
|
+
|
442
|
+
/** Detect free variable `self`. */
|
443
|
+
var freeSelf = (typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self && self.Object === Object && self;
|
444
|
+
|
445
|
+
/** Used as a reference to the global object. */
|
446
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
447
|
+
|
448
|
+
/** Used for built-in method references. */
|
449
|
+
var objectProto = Object.prototype;
|
450
|
+
|
451
|
+
/**
|
452
|
+
* Used to resolve the
|
453
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
454
|
+
* of values.
|
455
|
+
*/
|
456
|
+
var objectToString = objectProto.toString;
|
457
|
+
|
458
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
459
|
+
var nativeMax = Math.max,
|
460
|
+
nativeMin = Math.min;
|
461
|
+
|
462
|
+
/**
|
463
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
464
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
465
|
+
*
|
466
|
+
* @static
|
467
|
+
* @memberOf _
|
468
|
+
* @since 2.4.0
|
469
|
+
* @category Date
|
470
|
+
* @returns {number} Returns the timestamp.
|
471
|
+
* @example
|
472
|
+
*
|
473
|
+
* _.defer(function(stamp) {
|
474
|
+
* console.log(_.now() - stamp);
|
475
|
+
* }, _.now());
|
476
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
477
|
+
*/
|
478
|
+
var now = function now() {
|
479
|
+
return root.Date.now();
|
480
|
+
};
|
481
|
+
|
482
|
+
/**
|
483
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
484
|
+
* milliseconds have elapsed since the last time the debounced function was
|
485
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
486
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
487
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
488
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
489
|
+
* with the last arguments provided to the debounced function. Subsequent
|
490
|
+
* calls to the debounced function return the result of the last `func`
|
491
|
+
* invocation.
|
492
|
+
*
|
493
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
494
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
495
|
+
* is invoked more than once during the `wait` timeout.
|
496
|
+
*
|
497
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
498
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
499
|
+
*
|
500
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
501
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
502
|
+
*
|
503
|
+
* @static
|
504
|
+
* @memberOf _
|
505
|
+
* @since 0.1.0
|
506
|
+
* @category Function
|
507
|
+
* @param {Function} func The function to debounce.
|
508
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
509
|
+
* @param {Object} [options={}] The options object.
|
510
|
+
* @param {boolean} [options.leading=false]
|
511
|
+
* Specify invoking on the leading edge of the timeout.
|
512
|
+
* @param {number} [options.maxWait]
|
513
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
514
|
+
* @param {boolean} [options.trailing=true]
|
515
|
+
* Specify invoking on the trailing edge of the timeout.
|
516
|
+
* @returns {Function} Returns the new debounced function.
|
517
|
+
* @example
|
518
|
+
*
|
519
|
+
* // Avoid costly calculations while the window size is in flux.
|
520
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
521
|
+
*
|
522
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
523
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
524
|
+
* 'leading': true,
|
525
|
+
* 'trailing': false
|
526
|
+
* }));
|
527
|
+
*
|
528
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
529
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
530
|
+
* var source = new EventSource('/stream');
|
531
|
+
* jQuery(source).on('message', debounced);
|
532
|
+
*
|
533
|
+
* // Cancel the trailing debounced invocation.
|
534
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
535
|
+
*/
|
536
|
+
function debounce(func, wait, options) {
|
537
|
+
var lastArgs,
|
538
|
+
lastThis,
|
539
|
+
maxWait,
|
540
|
+
result,
|
541
|
+
timerId,
|
542
|
+
lastCallTime,
|
543
|
+
lastInvokeTime = 0,
|
544
|
+
leading = false,
|
545
|
+
maxing = false,
|
546
|
+
trailing = true;
|
547
|
+
|
548
|
+
if (typeof func != 'function') {
|
549
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
550
|
+
}
|
551
|
+
wait = toNumber(wait) || 0;
|
552
|
+
if (isObject(options)) {
|
553
|
+
leading = !!options.leading;
|
554
|
+
maxing = 'maxWait' in options;
|
555
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
556
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
557
|
+
}
|
558
|
+
|
559
|
+
function invokeFunc(time) {
|
560
|
+
var args = lastArgs,
|
561
|
+
thisArg = lastThis;
|
562
|
+
|
563
|
+
lastArgs = lastThis = undefined;
|
564
|
+
lastInvokeTime = time;
|
565
|
+
result = func.apply(thisArg, args);
|
566
|
+
return result;
|
567
|
+
}
|
568
|
+
|
569
|
+
function leadingEdge(time) {
|
570
|
+
// Reset any `maxWait` timer.
|
571
|
+
lastInvokeTime = time;
|
572
|
+
// Start the timer for the trailing edge.
|
573
|
+
timerId = setTimeout(timerExpired, wait);
|
574
|
+
// Invoke the leading edge.
|
575
|
+
return leading ? invokeFunc(time) : result;
|
576
|
+
}
|
577
|
+
|
578
|
+
function remainingWait(time) {
|
579
|
+
var timeSinceLastCall = time - lastCallTime,
|
580
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
581
|
+
result = wait - timeSinceLastCall;
|
582
|
+
|
583
|
+
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
584
|
+
}
|
585
|
+
|
586
|
+
function shouldInvoke(time) {
|
587
|
+
var timeSinceLastCall = time - lastCallTime,
|
588
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
589
|
+
|
590
|
+
// Either this is the first call, activity has stopped and we're at the
|
591
|
+
// trailing edge, the system time has gone backwards and we're treating
|
592
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
593
|
+
return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
594
|
+
}
|
595
|
+
|
596
|
+
function timerExpired() {
|
597
|
+
var time = now();
|
598
|
+
if (shouldInvoke(time)) {
|
599
|
+
return trailingEdge(time);
|
600
|
+
}
|
601
|
+
// Restart the timer.
|
602
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
603
|
+
}
|
604
|
+
|
605
|
+
function trailingEdge(time) {
|
606
|
+
timerId = undefined;
|
607
|
+
|
608
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
609
|
+
// debounced at least once.
|
610
|
+
if (trailing && lastArgs) {
|
611
|
+
return invokeFunc(time);
|
612
|
+
}
|
613
|
+
lastArgs = lastThis = undefined;
|
614
|
+
return result;
|
615
|
+
}
|
616
|
+
|
617
|
+
function cancel() {
|
618
|
+
if (timerId !== undefined) {
|
619
|
+
clearTimeout(timerId);
|
620
|
+
}
|
621
|
+
lastInvokeTime = 0;
|
622
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
623
|
+
}
|
624
|
+
|
625
|
+
function flush() {
|
626
|
+
return timerId === undefined ? result : trailingEdge(now());
|
627
|
+
}
|
628
|
+
|
629
|
+
function debounced() {
|
630
|
+
var time = now(),
|
631
|
+
isInvoking = shouldInvoke(time);
|
632
|
+
|
633
|
+
lastArgs = arguments;
|
634
|
+
lastThis = this;
|
635
|
+
lastCallTime = time;
|
636
|
+
|
637
|
+
if (isInvoking) {
|
638
|
+
if (timerId === undefined) {
|
639
|
+
return leadingEdge(lastCallTime);
|
640
|
+
}
|
641
|
+
if (maxing) {
|
642
|
+
// Handle invocations in a tight loop.
|
643
|
+
timerId = setTimeout(timerExpired, wait);
|
644
|
+
return invokeFunc(lastCallTime);
|
645
|
+
}
|
646
|
+
}
|
647
|
+
if (timerId === undefined) {
|
648
|
+
timerId = setTimeout(timerExpired, wait);
|
649
|
+
}
|
650
|
+
return result;
|
651
|
+
}
|
652
|
+
debounced.cancel = cancel;
|
653
|
+
debounced.flush = flush;
|
654
|
+
return debounced;
|
655
|
+
}
|
656
|
+
|
657
|
+
/**
|
658
|
+
* Checks if `value` is the
|
659
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
660
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
661
|
+
*
|
662
|
+
* @static
|
663
|
+
* @memberOf _
|
664
|
+
* @since 0.1.0
|
665
|
+
* @category Lang
|
666
|
+
* @param {*} value The value to check.
|
667
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
668
|
+
* @example
|
669
|
+
*
|
670
|
+
* _.isObject({});
|
671
|
+
* // => true
|
672
|
+
*
|
673
|
+
* _.isObject([1, 2, 3]);
|
674
|
+
* // => true
|
675
|
+
*
|
676
|
+
* _.isObject(_.noop);
|
677
|
+
* // => true
|
678
|
+
*
|
679
|
+
* _.isObject(null);
|
680
|
+
* // => false
|
681
|
+
*/
|
682
|
+
function isObject(value) {
|
683
|
+
var type = typeof value === 'undefined' ? 'undefined' : _typeof(value);
|
684
|
+
return !!value && (type == 'object' || type == 'function');
|
685
|
+
}
|
686
|
+
|
687
|
+
/**
|
688
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
689
|
+
* and has a `typeof` result of "object".
|
690
|
+
*
|
691
|
+
* @static
|
692
|
+
* @memberOf _
|
693
|
+
* @since 4.0.0
|
694
|
+
* @category Lang
|
695
|
+
* @param {*} value The value to check.
|
696
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
697
|
+
* @example
|
698
|
+
*
|
699
|
+
* _.isObjectLike({});
|
700
|
+
* // => true
|
701
|
+
*
|
702
|
+
* _.isObjectLike([1, 2, 3]);
|
703
|
+
* // => true
|
704
|
+
*
|
705
|
+
* _.isObjectLike(_.noop);
|
706
|
+
* // => false
|
707
|
+
*
|
708
|
+
* _.isObjectLike(null);
|
709
|
+
* // => false
|
710
|
+
*/
|
711
|
+
function isObjectLike(value) {
|
712
|
+
return !!value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'object';
|
713
|
+
}
|
714
|
+
|
715
|
+
/**
|
716
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
717
|
+
*
|
718
|
+
* @static
|
719
|
+
* @memberOf _
|
720
|
+
* @since 4.0.0
|
721
|
+
* @category Lang
|
722
|
+
* @param {*} value The value to check.
|
723
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
724
|
+
* @example
|
725
|
+
*
|
726
|
+
* _.isSymbol(Symbol.iterator);
|
727
|
+
* // => true
|
728
|
+
*
|
729
|
+
* _.isSymbol('abc');
|
730
|
+
* // => false
|
731
|
+
*/
|
732
|
+
function isSymbol(value) {
|
733
|
+
return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
734
|
+
}
|
735
|
+
|
736
|
+
/**
|
737
|
+
* Converts `value` to a number.
|
738
|
+
*
|
739
|
+
* @static
|
740
|
+
* @memberOf _
|
741
|
+
* @since 4.0.0
|
742
|
+
* @category Lang
|
743
|
+
* @param {*} value The value to process.
|
744
|
+
* @returns {number} Returns the number.
|
745
|
+
* @example
|
746
|
+
*
|
747
|
+
* _.toNumber(3.2);
|
748
|
+
* // => 3.2
|
749
|
+
*
|
750
|
+
* _.toNumber(Number.MIN_VALUE);
|
751
|
+
* // => 5e-324
|
752
|
+
*
|
753
|
+
* _.toNumber(Infinity);
|
754
|
+
* // => Infinity
|
755
|
+
*
|
756
|
+
* _.toNumber('3.2');
|
757
|
+
* // => 3.2
|
758
|
+
*/
|
759
|
+
function toNumber(value) {
|
760
|
+
if (typeof value == 'number') {
|
761
|
+
return value;
|
762
|
+
}
|
763
|
+
if (isSymbol(value)) {
|
764
|
+
return NAN;
|
765
|
+
}
|
766
|
+
if (isObject(value)) {
|
767
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
768
|
+
value = isObject(other) ? other + '' : other;
|
769
|
+
}
|
770
|
+
if (typeof value != 'string') {
|
771
|
+
return value === 0 ? value : +value;
|
772
|
+
}
|
773
|
+
value = value.replace(reTrim, '');
|
774
|
+
var isBinary = reIsBinary.test(value);
|
775
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
776
|
+
}
|
777
|
+
|
778
|
+
module.exports = debounce;
|
779
|
+
|
780
|
+
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
781
|
+
|
782
|
+
},{}],8:[function(require,module,exports){
|
783
|
+
/*
|
784
|
+
object-assign
|
785
|
+
(c) Sindre Sorhus
|
786
|
+
@license MIT
|
787
|
+
*/
|
788
|
+
|
789
|
+
'use strict';
|
790
|
+
/* eslint-disable no-unused-vars */
|
791
|
+
|
792
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
793
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
794
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
795
|
+
|
796
|
+
function toObject(val) {
|
797
|
+
if (val === null || val === undefined) {
|
798
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
799
|
+
}
|
800
|
+
|
801
|
+
return Object(val);
|
802
|
+
}
|
803
|
+
|
804
|
+
function shouldUseNative() {
|
805
|
+
try {
|
806
|
+
if (!Object.assign) {
|
807
|
+
return false;
|
808
|
+
}
|
809
|
+
|
810
|
+
// Detect buggy property enumeration order in older V8 versions.
|
811
|
+
|
812
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
813
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
814
|
+
test1[5] = 'de';
|
815
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
816
|
+
return false;
|
817
|
+
}
|
818
|
+
|
819
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
820
|
+
var test2 = {};
|
821
|
+
for (var i = 0; i < 10; i++) {
|
822
|
+
test2['_' + String.fromCharCode(i)] = i;
|
823
|
+
}
|
824
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
825
|
+
return test2[n];
|
826
|
+
});
|
827
|
+
if (order2.join('') !== '0123456789') {
|
828
|
+
return false;
|
829
|
+
}
|
830
|
+
|
831
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
832
|
+
var test3 = {};
|
833
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
834
|
+
test3[letter] = letter;
|
835
|
+
});
|
836
|
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
837
|
+
return false;
|
838
|
+
}
|
839
|
+
|
840
|
+
return true;
|
841
|
+
} catch (err) {
|
842
|
+
// We don't expect any of the above to throw, but better to be safe.
|
843
|
+
return false;
|
844
|
+
}
|
845
|
+
}
|
846
|
+
|
847
|
+
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
848
|
+
var from;
|
849
|
+
var to = toObject(target);
|
850
|
+
var symbols;
|
851
|
+
|
852
|
+
for (var s = 1; s < arguments.length; s++) {
|
853
|
+
from = Object(arguments[s]);
|
854
|
+
|
855
|
+
for (var key in from) {
|
856
|
+
if (hasOwnProperty.call(from, key)) {
|
857
|
+
to[key] = from[key];
|
858
|
+
}
|
859
|
+
}
|
860
|
+
|
861
|
+
if (getOwnPropertySymbols) {
|
862
|
+
symbols = getOwnPropertySymbols(from);
|
863
|
+
for (var i = 0; i < symbols.length; i++) {
|
864
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
865
|
+
to[symbols[i]] = from[symbols[i]];
|
866
|
+
}
|
867
|
+
}
|
868
|
+
}
|
869
|
+
}
|
870
|
+
|
871
|
+
return to;
|
872
|
+
};
|
873
|
+
|
874
|
+
},{}],9:[function(require,module,exports){
|
875
|
+
'use strict';
|
876
|
+
|
877
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
878
|
+
|
879
|
+
var assign = require('object-assign');
|
880
|
+
var delegate = require('../delegate');
|
881
|
+
var delegateAll = require('../delegateAll');
|
882
|
+
|
883
|
+
var DELEGATE_PATTERN = /^(.+):delegate\((.+)\)$/;
|
884
|
+
var SPACE = ' ';
|
885
|
+
|
886
|
+
var getListeners = function getListeners(type, handler) {
|
887
|
+
var match = type.match(DELEGATE_PATTERN);
|
888
|
+
var selector;
|
889
|
+
if (match) {
|
890
|
+
type = match[1];
|
891
|
+
selector = match[2];
|
892
|
+
}
|
893
|
+
|
894
|
+
var options;
|
895
|
+
if ((typeof handler === 'undefined' ? 'undefined' : _typeof(handler)) === 'object') {
|
896
|
+
options = {
|
897
|
+
capture: popKey(handler, 'capture'),
|
898
|
+
passive: popKey(handler, 'passive')
|
899
|
+
};
|
900
|
+
}
|
901
|
+
|
902
|
+
var listener = {
|
903
|
+
selector: selector,
|
904
|
+
delegate: (typeof handler === 'undefined' ? 'undefined' : _typeof(handler)) === 'object' ? delegateAll(handler) : selector ? delegate(selector, handler) : handler,
|
905
|
+
options: options
|
906
|
+
};
|
907
|
+
|
908
|
+
if (type.indexOf(SPACE) > -1) {
|
909
|
+
return type.split(SPACE).map(function (_type) {
|
910
|
+
return assign({ type: _type }, listener);
|
911
|
+
});
|
912
|
+
} else {
|
913
|
+
listener.type = type;
|
914
|
+
return [listener];
|
915
|
+
}
|
916
|
+
};
|
917
|
+
|
918
|
+
var popKey = function popKey(obj, key) {
|
919
|
+
var value = obj[key];
|
920
|
+
delete obj[key];
|
921
|
+
return value;
|
922
|
+
};
|
923
|
+
|
924
|
+
module.exports = function behavior(events, props) {
|
925
|
+
var listeners = Object.keys(events).reduce(function (memo, type) {
|
926
|
+
var listeners = getListeners(type, events[type]);
|
927
|
+
return memo.concat(listeners);
|
928
|
+
}, []);
|
929
|
+
|
930
|
+
return assign({
|
931
|
+
add: function addBehavior(element) {
|
932
|
+
listeners.forEach(function (listener) {
|
933
|
+
element.addEventListener(listener.type, listener.delegate, listener.options);
|
934
|
+
});
|
935
|
+
},
|
936
|
+
remove: function removeBehavior(element) {
|
937
|
+
listeners.forEach(function (listener) {
|
938
|
+
element.removeEventListener(listener.type, listener.delegate, listener.options);
|
939
|
+
});
|
940
|
+
}
|
941
|
+
}, props);
|
942
|
+
};
|
943
|
+
|
944
|
+
},{"../delegate":11,"../delegateAll":12,"object-assign":8}],10:[function(require,module,exports){
|
945
|
+
"use strict";
|
946
|
+
|
947
|
+
module.exports = function compose(functions) {
|
948
|
+
return function (e) {
|
949
|
+
return functions.some(function (fn) {
|
950
|
+
return fn.call(this, e) === false;
|
951
|
+
}, this);
|
952
|
+
};
|
953
|
+
};
|
954
|
+
|
955
|
+
},{}],11:[function(require,module,exports){
|
956
|
+
'use strict';
|
957
|
+
|
958
|
+
// polyfill Element.prototype.closest
|
959
|
+
require('element-closest');
|
960
|
+
|
961
|
+
module.exports = function delegate(selector, fn) {
|
962
|
+
return function delegation(event) {
|
963
|
+
var target = event.target.closest(selector);
|
964
|
+
if (target) {
|
965
|
+
return fn.call(target, event);
|
966
|
+
}
|
967
|
+
};
|
968
|
+
};
|
969
|
+
|
970
|
+
},{"element-closest":6}],12:[function(require,module,exports){
|
971
|
+
'use strict';
|
972
|
+
|
973
|
+
var delegate = require('../delegate');
|
974
|
+
var compose = require('../compose');
|
975
|
+
|
976
|
+
var SPLAT = '*';
|
977
|
+
|
978
|
+
module.exports = function delegateAll(selectors) {
|
979
|
+
var keys = Object.keys(selectors);
|
980
|
+
|
981
|
+
// XXX optimization: if there is only one handler and it applies to
|
982
|
+
// all elements (the "*" CSS selector), then just return that
|
983
|
+
// handler
|
984
|
+
if (keys.length === 1 && keys[0] === SPLAT) {
|
985
|
+
return selectors[SPLAT];
|
986
|
+
}
|
987
|
+
|
988
|
+
var delegates = keys.reduce(function (memo, selector) {
|
989
|
+
memo.push(delegate(selector, selectors[selector]));
|
990
|
+
return memo;
|
991
|
+
}, []);
|
992
|
+
return compose(delegates);
|
993
|
+
};
|
994
|
+
|
995
|
+
},{"../compose":10,"../delegate":11}],13:[function(require,module,exports){
|
996
|
+
"use strict";
|
997
|
+
|
998
|
+
module.exports = function ignore(element, fn) {
|
999
|
+
return function ignorance(e) {
|
1000
|
+
if (element !== e.target && !element.contains(e.target)) {
|
1001
|
+
return fn.call(this, e);
|
1002
|
+
}
|
1003
|
+
};
|
1004
|
+
};
|
1005
|
+
|
1006
|
+
},{}],14:[function(require,module,exports){
|
1007
|
+
"use strict";
|
1008
|
+
|
1009
|
+
module.exports = function once(listener, options) {
|
1010
|
+
var wrapped = function wrappedOnce(e) {
|
1011
|
+
e.currentTarget.removeEventListener(e.type, wrapped, options);
|
1012
|
+
return listener.call(this, e);
|
1013
|
+
};
|
1014
|
+
return wrapped;
|
1015
|
+
};
|
1016
|
+
|
1017
|
+
},{}],15:[function(require,module,exports){
|
1018
|
+
'use strict';
|
1019
|
+
|
1020
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
1021
|
+
|
1022
|
+
var RE_TRIM = /(^\s+)|(\s+$)/g;
|
1023
|
+
var RE_SPLIT = /\s+/;
|
1024
|
+
|
1025
|
+
var trim = String.prototype.trim ? function (str) {
|
1026
|
+
return str.trim();
|
1027
|
+
} : function (str) {
|
1028
|
+
return str.replace(RE_TRIM, '');
|
1029
|
+
};
|
1030
|
+
|
1031
|
+
var queryById = function queryById(id) {
|
1032
|
+
return this.querySelector('[id="' + id.replace(/"/g, '\\"') + '"]');
|
1033
|
+
};
|
1034
|
+
|
1035
|
+
module.exports = function resolveIds(ids, doc) {
|
1036
|
+
if (typeof ids !== 'string') {
|
1037
|
+
throw new Error('Expected a string but got ' + (typeof ids === 'undefined' ? 'undefined' : _typeof(ids)));
|
1038
|
+
}
|
1039
|
+
|
1040
|
+
if (!doc) {
|
1041
|
+
doc = window.document;
|
1042
|
+
}
|
1043
|
+
|
1044
|
+
var getElementById = doc.getElementById ? doc.getElementById.bind(doc) : queryById.bind(doc);
|
1045
|
+
|
1046
|
+
ids = trim(ids).split(RE_SPLIT);
|
1047
|
+
|
1048
|
+
// XXX we can short-circuit here because trimming and splitting a
|
1049
|
+
// string of just whitespace produces an array containing a single,
|
1050
|
+
// empty string
|
1051
|
+
if (ids.length === 1 && ids[0] === '') {
|
1052
|
+
return [];
|
1053
|
+
}
|
1054
|
+
|
1055
|
+
return ids.map(function (id) {
|
1056
|
+
var el = getElementById(id);
|
1057
|
+
if (!el) {
|
1058
|
+
throw new Error('no element with id: "' + id + '"');
|
1059
|
+
}
|
1060
|
+
return el;
|
1061
|
+
});
|
1062
|
+
};
|
1063
|
+
|
1064
|
+
},{}],16:[function(require,module,exports){
|
1065
|
+
'use strict';
|
1066
|
+
|
1067
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
1068
|
+
|
1069
|
+
var behavior = require('../utils/behavior');
|
1070
|
+
var filter = require('array-filter');
|
1071
|
+
var forEach = require('array-foreach');
|
1072
|
+
var toggle = require('../utils/toggle');
|
1073
|
+
var isElementInViewport = require('../utils/is-in-viewport');
|
1074
|
+
|
1075
|
+
var CLICK = require('../events').CLICK;
|
1076
|
+
var PREFIX = require('../config').prefix;
|
1077
|
+
|
1078
|
+
// XXX match .usa-accordion and .usa-accordion-bordered
|
1079
|
+
var ACCORDION = '.' + PREFIX + '-accordion, .' + PREFIX + '-accordion-bordered';
|
1080
|
+
var BUTTON = '.' + PREFIX + '-accordion-button[aria-controls]';
|
1081
|
+
var EXPANDED = 'aria-expanded';
|
1082
|
+
var MULTISELECTABLE = 'aria-multiselectable';
|
1083
|
+
|
1084
|
+
/**
|
1085
|
+
* Toggle a button's "pressed" state, optionally providing a target
|
1086
|
+
* state.
|
1087
|
+
*
|
1088
|
+
* @param {HTMLButtonElement} button
|
1089
|
+
* @param {boolean?} expanded If no state is provided, the current
|
1090
|
+
* state will be toggled (from false to true, and vice-versa).
|
1091
|
+
* @return {boolean} the resulting state
|
1092
|
+
*/
|
1093
|
+
var toggleButton = function toggleButton(button, expanded) {
|
1094
|
+
var accordion = button.closest(ACCORDION);
|
1095
|
+
if (!accordion) {
|
1096
|
+
throw new Error(BUTTON + ' is missing outer ' + ACCORDION);
|
1097
|
+
}
|
1098
|
+
|
1099
|
+
expanded = toggle(button, expanded);
|
1100
|
+
// XXX multiselectable is opt-in, to preserve legacy behavior
|
1101
|
+
var multiselectable = accordion.getAttribute(MULTISELECTABLE) === 'true';
|
1102
|
+
|
1103
|
+
if (expanded && !multiselectable) {
|
1104
|
+
forEach(getAccordionButtons(accordion), function (other) {
|
1105
|
+
if (other !== button) {
|
1106
|
+
toggle(other, false);
|
1107
|
+
}
|
1108
|
+
});
|
1109
|
+
}
|
1110
|
+
};
|
1111
|
+
|
1112
|
+
/**
|
1113
|
+
* @param {HTMLButtonElement} button
|
1114
|
+
* @return {boolean} true
|
1115
|
+
*/
|
1116
|
+
var showButton = function showButton(button) {
|
1117
|
+
return toggleButton(button, true);
|
1118
|
+
};
|
1119
|
+
|
1120
|
+
/**
|
1121
|
+
* @param {HTMLButtonElement} button
|
1122
|
+
* @return {boolean} false
|
1123
|
+
*/
|
1124
|
+
var hideButton = function hideButton(button) {
|
1125
|
+
return toggleButton(button, false);
|
1126
|
+
};
|
1127
|
+
|
1128
|
+
/**
|
1129
|
+
* Get an Array of button elements belonging directly to the given
|
1130
|
+
* accordion element.
|
1131
|
+
* @param {HTMLElement} accordion
|
1132
|
+
* @return {array<HTMLButtonElement>}
|
1133
|
+
*/
|
1134
|
+
var getAccordionButtons = function getAccordionButtons(accordion) {
|
1135
|
+
return filter(accordion.querySelectorAll(BUTTON), function (button) {
|
1136
|
+
return button.closest(ACCORDION) === accordion;
|
1137
|
+
});
|
1138
|
+
};
|
1139
|
+
|
1140
|
+
var accordion = behavior(_defineProperty({}, CLICK, _defineProperty({}, BUTTON, function (event) {
|
1141
|
+
event.preventDefault();
|
1142
|
+
toggleButton(this);
|
1143
|
+
|
1144
|
+
if (this.getAttribute(EXPANDED) === 'true') {
|
1145
|
+
// We were just expanded, but if another accordion was also just
|
1146
|
+
// collapsed, we may no longer be in the viewport. This ensures
|
1147
|
+
// that we are still visible, so the user isn't confused.
|
1148
|
+
if (!isElementInViewport(this)) this.scrollIntoView();
|
1149
|
+
}
|
1150
|
+
})), {
|
1151
|
+
init: function init(root) {
|
1152
|
+
forEach(root.querySelectorAll(BUTTON), function (button) {
|
1153
|
+
var expanded = button.getAttribute(EXPANDED) === 'true';
|
1154
|
+
toggleButton(button, expanded);
|
1155
|
+
});
|
1156
|
+
},
|
1157
|
+
ACCORDION: ACCORDION,
|
1158
|
+
BUTTON: BUTTON,
|
1159
|
+
show: showButton,
|
1160
|
+
hide: hideButton,
|
1161
|
+
toggle: toggleButton,
|
1162
|
+
getButtons: getAccordionButtons
|
1163
|
+
});
|
1164
|
+
|
1165
|
+
/**
|
1166
|
+
* TODO: for 2.0, remove everything below this comment and export the
|
1167
|
+
* behavior directly:
|
1168
|
+
*
|
1169
|
+
* module.exports = behavior({...});
|
1170
|
+
*/
|
1171
|
+
var Accordion = function Accordion(root) {
|
1172
|
+
this.root = root;
|
1173
|
+
accordion.on(this.root);
|
1174
|
+
};
|
1175
|
+
|
1176
|
+
// copy all of the behavior methods and props to Accordion
|
1177
|
+
var assign = require('object-assign');
|
1178
|
+
assign(Accordion, accordion);
|
1179
|
+
|
1180
|
+
Accordion.prototype.show = showButton;
|
1181
|
+
Accordion.prototype.hide = hideButton;
|
1182
|
+
|
1183
|
+
Accordion.prototype.remove = function () {
|
1184
|
+
accordion.off(this.root);
|
1185
|
+
};
|
1186
|
+
|
1187
|
+
module.exports = Accordion;
|
1188
|
+
|
1189
|
+
},{"../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(require,module,exports){
|
1190
|
+
'use strict';
|
1191
|
+
|
1192
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
1193
|
+
|
1194
|
+
var behavior = require('../utils/behavior');
|
1195
|
+
var toggle = require('../utils/toggle');
|
1196
|
+
|
1197
|
+
var CLICK = require('../events').CLICK;
|
1198
|
+
var PREFIX = require('../config').prefix;
|
1199
|
+
|
1200
|
+
var HEADER = '.' + PREFIX + '-banner-header';
|
1201
|
+
var EXPANDED_CLASS = PREFIX + '-banner-header-expanded';
|
1202
|
+
|
1203
|
+
var toggleBanner = function toggleBanner(event) {
|
1204
|
+
event.preventDefault();
|
1205
|
+
this.closest(HEADER).classList.toggle(EXPANDED_CLASS);
|
1206
|
+
return false;
|
1207
|
+
};
|
1208
|
+
|
1209
|
+
module.exports = behavior(_defineProperty({}, CLICK, _defineProperty({}, HEADER + ' [aria-controls]', toggleBanner)));
|
1210
|
+
|
1211
|
+
},{"../config":25,"../events":26,"../utils/behavior":30,"../utils/toggle":35}],18:[function(require,module,exports){
|
1212
|
+
'use strict';
|
1213
|
+
|
1214
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
1215
|
+
|
1216
|
+
var accordion = require('./accordion');
|
1217
|
+
var behavior = require('../utils/behavior');
|
1218
|
+
var debounce = require('lodash.debounce');
|
1219
|
+
var forEach = require('array-foreach');
|
1220
|
+
var select = require('../utils/select');
|
1221
|
+
|
1222
|
+
var CLICK = require('../events').CLICK;
|
1223
|
+
var PREFIX = require('../config').prefix;
|
1224
|
+
|
1225
|
+
var HIDDEN = 'hidden';
|
1226
|
+
var SCOPE = '.' + PREFIX + '-footer-big';
|
1227
|
+
var NAV = SCOPE + ' nav';
|
1228
|
+
var BUTTON = NAV + ' .' + PREFIX + '-footer-primary-link';
|
1229
|
+
var LIST = NAV + ' ul';
|
1230
|
+
|
1231
|
+
var HIDE_MAX_WIDTH = 600;
|
1232
|
+
var DEBOUNCE_RATE = 180;
|
1233
|
+
|
1234
|
+
var showPanel = function showPanel() {
|
1235
|
+
if (window.innerWidth < HIDE_MAX_WIDTH) {
|
1236
|
+
var list = this.closest(LIST);
|
1237
|
+
list.classList.toggle(HIDDEN);
|
1238
|
+
|
1239
|
+
// NB: this *should* always succeed because the button
|
1240
|
+
// selector is scoped to ".{prefix}-footer-big nav"
|
1241
|
+
var lists = list.closest(NAV).querySelectorAll('ul');
|
1242
|
+
|
1243
|
+
forEach(lists, function (el) {
|
1244
|
+
if (el !== list) {
|
1245
|
+
el.classList.add(HIDDEN);
|
1246
|
+
}
|
1247
|
+
});
|
1248
|
+
}
|
1249
|
+
};
|
1250
|
+
|
1251
|
+
var resize = debounce(function () {
|
1252
|
+
var hidden = window.innerWidth < HIDE_MAX_WIDTH;
|
1253
|
+
forEach(select(LIST), function (list) {
|
1254
|
+
list.classList.toggle(HIDDEN, hidden);
|
1255
|
+
});
|
1256
|
+
}, DEBOUNCE_RATE);
|
1257
|
+
|
1258
|
+
module.exports = behavior(_defineProperty({}, CLICK, _defineProperty({}, BUTTON, showPanel)), {
|
1259
|
+
// export for use elsewhere
|
1260
|
+
HIDE_MAX_WIDTH: HIDE_MAX_WIDTH,
|
1261
|
+
DEBOUNCE_RATE: DEBOUNCE_RATE,
|
1262
|
+
|
1263
|
+
init: function init(target) {
|
1264
|
+
resize();
|
1265
|
+
window.addEventListener('resize', resize);
|
1266
|
+
},
|
1267
|
+
|
1268
|
+
teardown: function teardown(target) {
|
1269
|
+
window.removeEventListener('resize', resize);
|
1270
|
+
}
|
1271
|
+
});
|
1272
|
+
|
1273
|
+
},{"../config":25,"../events":26,"../utils/behavior":30,"../utils/select":32,"./accordion":16,"array-foreach":2,"lodash.debounce":7}],19:[function(require,module,exports){
|
1274
|
+
'use strict';
|
1275
|
+
|
1276
|
+
module.exports = {
|
1277
|
+
accordion: require('./accordion'),
|
1278
|
+
banner: require('./banner'),
|
1279
|
+
footer: require('./footer'),
|
1280
|
+
navigation: require('./navigation'),
|
1281
|
+
password: require('./password'),
|
1282
|
+
search: require('./search'),
|
1283
|
+
skipnav: require('./skipnav'),
|
1284
|
+
validator: require('./validator')
|
1285
|
+
};
|
1286
|
+
|
1287
|
+
},{"./accordion":16,"./banner":17,"./footer":18,"./navigation":20,"./password":21,"./search":22,"./skipnav":23,"./validator":24}],20:[function(require,module,exports){
|
1288
|
+
'use strict';
|
1289
|
+
|
1290
|
+
var _CLICK;
|
1291
|
+
|
1292
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
1293
|
+
|
1294
|
+
var behavior = require('../utils/behavior');
|
1295
|
+
var forEach = require('array-foreach');
|
1296
|
+
var select = require('../utils/select');
|
1297
|
+
var accordion = require('./accordion');
|
1298
|
+
|
1299
|
+
var CLICK = require('../events').CLICK;
|
1300
|
+
var PREFIX = require('../config').prefix;
|
1301
|
+
|
1302
|
+
var NAV = '.' + PREFIX + '-nav';
|
1303
|
+
var NAV_LINKS = NAV + ' a';
|
1304
|
+
var OPENERS = '.' + PREFIX + '-menu-btn';
|
1305
|
+
var CLOSE_BUTTON = '.' + PREFIX + '-nav-close';
|
1306
|
+
var OVERLAY = '.' + PREFIX + '-overlay';
|
1307
|
+
var CLOSERS = CLOSE_BUTTON + ', .' + PREFIX + '-overlay';
|
1308
|
+
var TOGGLES = [NAV, OVERLAY].join(', ');
|
1309
|
+
|
1310
|
+
var ACTIVE_CLASS = 'usa-mobile_nav-active';
|
1311
|
+
var VISIBLE_CLASS = 'is-visible';
|
1312
|
+
|
1313
|
+
var isActive = function isActive() {
|
1314
|
+
return document.body.classList.contains(ACTIVE_CLASS);
|
1315
|
+
};
|
1316
|
+
|
1317
|
+
var _focusTrap = function _focusTrap(trapContainer) {
|
1318
|
+
// Find all focusable children
|
1319
|
+
var focusableElementsString = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]';
|
1320
|
+
var focusableElements = trapContainer.querySelectorAll(focusableElementsString);
|
1321
|
+
var firstTabStop = focusableElements[0];
|
1322
|
+
var lastTabStop = focusableElements[focusableElements.length - 1];
|
1323
|
+
|
1324
|
+
function trapTabKey(e) {
|
1325
|
+
// Check for TAB key press
|
1326
|
+
if (e.keyCode === 9) {
|
1327
|
+
|
1328
|
+
// SHIFT + TAB
|
1329
|
+
if (e.shiftKey) {
|
1330
|
+
if (document.activeElement === firstTabStop) {
|
1331
|
+
e.preventDefault();
|
1332
|
+
lastTabStop.focus();
|
1333
|
+
}
|
1334
|
+
|
1335
|
+
// TAB
|
1336
|
+
} else {
|
1337
|
+
if (document.activeElement === lastTabStop) {
|
1338
|
+
e.preventDefault();
|
1339
|
+
firstTabStop.focus();
|
1340
|
+
}
|
1341
|
+
}
|
1342
|
+
}
|
1343
|
+
|
1344
|
+
// ESCAPE
|
1345
|
+
if (e.keyCode === 27) {
|
1346
|
+
toggleNav.call(this, false);
|
1347
|
+
}
|
1348
|
+
}
|
1349
|
+
|
1350
|
+
// Focus first child
|
1351
|
+
firstTabStop.focus();
|
1352
|
+
|
1353
|
+
return {
|
1354
|
+
enable: function enable() {
|
1355
|
+
// Listen for and trap the keyboard
|
1356
|
+
trapContainer.addEventListener('keydown', trapTabKey);
|
1357
|
+
},
|
1358
|
+
release: function release() {
|
1359
|
+
trapContainer.removeEventListener('keydown', trapTabKey);
|
1360
|
+
}
|
1361
|
+
};
|
1362
|
+
};
|
1363
|
+
|
1364
|
+
var focusTrap = void 0;
|
1365
|
+
|
1366
|
+
var toggleNav = function toggleNav(active) {
|
1367
|
+
var body = document.body;
|
1368
|
+
if (typeof active !== 'boolean') {
|
1369
|
+
active = !isActive();
|
1370
|
+
}
|
1371
|
+
body.classList.toggle(ACTIVE_CLASS, active);
|
1372
|
+
|
1373
|
+
forEach(select(TOGGLES), function (el) {
|
1374
|
+
el.classList.toggle(VISIBLE_CLASS, active);
|
1375
|
+
});
|
1376
|
+
|
1377
|
+
if (active) {
|
1378
|
+
focusTrap.enable();
|
1379
|
+
} else {
|
1380
|
+
focusTrap.release();
|
1381
|
+
}
|
1382
|
+
|
1383
|
+
var closeButton = body.querySelector(CLOSE_BUTTON);
|
1384
|
+
var menuButton = body.querySelector(OPENERS);
|
1385
|
+
|
1386
|
+
if (active && closeButton) {
|
1387
|
+
// The mobile nav was just activated, so focus on the close button,
|
1388
|
+
// which is just before all the nav elements in the tab order.
|
1389
|
+
closeButton.focus();
|
1390
|
+
} else if (!active && document.activeElement === closeButton && menuButton) {
|
1391
|
+
// The mobile nav was just deactivated, and focus was on the close
|
1392
|
+
// button, which is no longer visible. We don't want the focus to
|
1393
|
+
// disappear into the void, so focus on the menu button if it's
|
1394
|
+
// visible (this may have been what the user was just focused on,
|
1395
|
+
// if they triggered the mobile nav by mistake).
|
1396
|
+
menuButton.focus();
|
1397
|
+
}
|
1398
|
+
|
1399
|
+
return active;
|
1400
|
+
};
|
1401
|
+
|
1402
|
+
var resize = function resize() {
|
1403
|
+
var closer = document.body.querySelector(CLOSE_BUTTON);
|
1404
|
+
|
1405
|
+
if (isActive() && closer && closer.getBoundingClientRect().width === 0) {
|
1406
|
+
// The mobile nav is active, but the close box isn't visible, which
|
1407
|
+
// means the user's viewport has been resized so that it is no longer
|
1408
|
+
// in mobile mode. Let's make the page state consistent by
|
1409
|
+
// deactivating the mobile nav.
|
1410
|
+
toggleNav.call(closer, false);
|
1411
|
+
}
|
1412
|
+
};
|
1413
|
+
|
1414
|
+
var navigation = behavior(_defineProperty({}, CLICK, (_CLICK = {}, _defineProperty(_CLICK, OPENERS, toggleNav), _defineProperty(_CLICK, CLOSERS, toggleNav), _defineProperty(_CLICK, NAV_LINKS, function () {
|
1415
|
+
// A navigation link has been clicked! We want to collapse any
|
1416
|
+
// hierarchical navigation UI it's a part of, so that the user
|
1417
|
+
// can focus on whatever they've just selected.
|
1418
|
+
|
1419
|
+
// Some navigation links are inside accordions; when they're
|
1420
|
+
// clicked, we want to collapse those accordions.
|
1421
|
+
var acc = this.closest(accordion.ACCORDION);
|
1422
|
+
if (acc) {
|
1423
|
+
accordion.getButtons(acc).forEach(function (btn) {
|
1424
|
+
return accordion.hide(btn);
|
1425
|
+
});
|
1426
|
+
}
|
1427
|
+
|
1428
|
+
// If the mobile navigation menu is active, we want to hide it.
|
1429
|
+
if (isActive()) {
|
1430
|
+
toggleNav.call(this, false);
|
1431
|
+
}
|
1432
|
+
}), _CLICK)), {
|
1433
|
+
init: function init() {
|
1434
|
+
var trapContainer = document.querySelector(NAV);
|
1435
|
+
|
1436
|
+
if (trapContainer) {
|
1437
|
+
focusTrap = _focusTrap(trapContainer);
|
1438
|
+
}
|
1439
|
+
|
1440
|
+
resize();
|
1441
|
+
window.addEventListener('resize', resize, false);
|
1442
|
+
},
|
1443
|
+
teardown: function teardown() {
|
1444
|
+
window.removeEventListener('resize', resize, false);
|
1445
|
+
}
|
1446
|
+
});
|
1447
|
+
|
1448
|
+
/**
|
1449
|
+
* TODO for 2.0, remove this statement and export `navigation` directly:
|
1450
|
+
*
|
1451
|
+
* module.exports = behavior({...});
|
1452
|
+
*/
|
1453
|
+
var assign = require('object-assign');
|
1454
|
+
module.exports = assign(function (el) {
|
1455
|
+
return navigation.on(el);
|
1456
|
+
}, navigation);
|
1457
|
+
|
1458
|
+
},{"../config":25,"../events":26,"../utils/behavior":30,"../utils/select":32,"./accordion":16,"array-foreach":2,"object-assign":8}],21:[function(require,module,exports){
|
1459
|
+
'use strict';
|
1460
|
+
|
1461
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
1462
|
+
|
1463
|
+
var behavior = require('../utils/behavior');
|
1464
|
+
var toggleFormInput = require('../utils/toggle-form-input');
|
1465
|
+
|
1466
|
+
var CLICK = require('../events').CLICK;
|
1467
|
+
var PREFIX = require('../config').prefix;
|
1468
|
+
|
1469
|
+
var LINK = '.' + PREFIX + '-show_password, .' + PREFIX + '-show_multipassword';
|
1470
|
+
|
1471
|
+
var toggle = function toggle(event) {
|
1472
|
+
event.preventDefault();
|
1473
|
+
toggleFormInput(this);
|
1474
|
+
};
|
1475
|
+
|
1476
|
+
module.exports = behavior(_defineProperty({}, CLICK, _defineProperty({}, LINK, toggle)));
|
1477
|
+
|
1478
|
+
},{"../config":25,"../events":26,"../utils/behavior":30,"../utils/toggle-form-input":34}],22:[function(require,module,exports){
|
1479
|
+
'use strict';
|
1480
|
+
|
1481
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
1482
|
+
|
1483
|
+
var behavior = require('../utils/behavior');
|
1484
|
+
var forEach = require('array-foreach');
|
1485
|
+
var ignore = require('receptor/ignore');
|
1486
|
+
var select = require('../utils/select');
|
1487
|
+
|
1488
|
+
var CLICK = require('../events').CLICK;
|
1489
|
+
var PREFIX = require('../config').prefix;
|
1490
|
+
|
1491
|
+
var BUTTON = '.js-search-button';
|
1492
|
+
var FORM = '.js-search-form';
|
1493
|
+
var INPUT = '[type=search]';
|
1494
|
+
var CONTEXT = 'header'; // XXX
|
1495
|
+
var VISUALLY_HIDDEN = PREFIX + '-sr-only';
|
1496
|
+
|
1497
|
+
var lastButton = void 0;
|
1498
|
+
|
1499
|
+
var showSearch = function showSearch(event) {
|
1500
|
+
toggleSearch(this, true);
|
1501
|
+
lastButton = this;
|
1502
|
+
};
|
1503
|
+
|
1504
|
+
var hideSearch = function hideSearch(event) {
|
1505
|
+
toggleSearch(this, false);
|
1506
|
+
lastButton = undefined;
|
1507
|
+
};
|
1508
|
+
|
1509
|
+
var getForm = function getForm(button) {
|
1510
|
+
var context = button.closest(CONTEXT);
|
1511
|
+
return context ? context.querySelector(FORM) : document.querySelector(FORM);
|
1512
|
+
};
|
1513
|
+
|
1514
|
+
var toggleSearch = function toggleSearch(button, active) {
|
1515
|
+
var form = getForm(button);
|
1516
|
+
if (!form) {
|
1517
|
+
throw new Error('No ' + FORM + ' found for search toggle in ' + CONTEXT + '!');
|
1518
|
+
}
|
1519
|
+
|
1520
|
+
button.hidden = active;
|
1521
|
+
form.classList.toggle(VISUALLY_HIDDEN, !active);
|
1522
|
+
|
1523
|
+
if (active) {
|
1524
|
+
var input = form.querySelector(INPUT);
|
1525
|
+
if (input) {
|
1526
|
+
input.focus();
|
1527
|
+
}
|
1528
|
+
// when the user clicks _outside_ of the form w/ignore(): hide the
|
1529
|
+
// search, then remove the listener
|
1530
|
+
var listener = ignore(form, function (e) {
|
1531
|
+
if (lastButton) {
|
1532
|
+
hideSearch.call(lastButton);
|
1533
|
+
}
|
1534
|
+
document.body.removeEventListener(CLICK, listener);
|
1535
|
+
});
|
1536
|
+
|
1537
|
+
// Normally we would just run this code without a timeout, but
|
1538
|
+
// IE11 and Edge will actually call the listener *immediately* because
|
1539
|
+
// they are currently handling this exact type of event, so we'll
|
1540
|
+
// make sure the browser is done handling the current click event,
|
1541
|
+
// if any, before we attach the listener.
|
1542
|
+
setTimeout(function () {
|
1543
|
+
document.body.addEventListener(CLICK, listener);
|
1544
|
+
}, 0);
|
1545
|
+
}
|
1546
|
+
};
|
1547
|
+
|
1548
|
+
var search = behavior(_defineProperty({}, CLICK, _defineProperty({}, BUTTON, showSearch)), {
|
1549
|
+
init: function init(target) {
|
1550
|
+
forEach(select(BUTTON, target), function (button) {
|
1551
|
+
toggleSearch(button, false);
|
1552
|
+
});
|
1553
|
+
},
|
1554
|
+
teardown: function teardown(target) {
|
1555
|
+
// forget the last button clicked
|
1556
|
+
lastButton = undefined;
|
1557
|
+
}
|
1558
|
+
});
|
1559
|
+
|
1560
|
+
/**
|
1561
|
+
* TODO for 2.0, remove this statement and export `navigation` directly:
|
1562
|
+
*
|
1563
|
+
* module.exports = behavior({...});
|
1564
|
+
*/
|
1565
|
+
var assign = require('object-assign');
|
1566
|
+
module.exports = assign(function (el) {
|
1567
|
+
return search.on(el);
|
1568
|
+
}, search);
|
1569
|
+
|
1570
|
+
},{"../config":25,"../events":26,"../utils/behavior":30,"../utils/select":32,"array-foreach":2,"object-assign":8,"receptor/ignore":13}],23:[function(require,module,exports){
|
1571
|
+
'use strict';
|
1572
|
+
|
1573
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
1574
|
+
|
1575
|
+
var behavior = require('../utils/behavior');
|
1576
|
+
var once = require('receptor/once');
|
1577
|
+
|
1578
|
+
var CLICK = require('../events').CLICK;
|
1579
|
+
var PREFIX = require('../config').prefix;
|
1580
|
+
var LINK = '.' + PREFIX + '-skipnav[href^="#"], .' + PREFIX + '-footer-return-to-top [href^="#"]';
|
1581
|
+
var MAINCONTENT = 'main-content';
|
1582
|
+
|
1583
|
+
var setTabindex = function setTabindex(event) {
|
1584
|
+
// NB: we know because of the selector we're delegating to below that the
|
1585
|
+
// href already begins with '#'
|
1586
|
+
var id = this.getAttribute('href');
|
1587
|
+
var target = document.getElementById(id === '#' ? MAINCONTENT : id.slice(1));
|
1588
|
+
|
1589
|
+
if (target) {
|
1590
|
+
target.style.outline = '0';
|
1591
|
+
target.setAttribute('tabindex', 0);
|
1592
|
+
target.focus();
|
1593
|
+
target.addEventListener('blur', once(function (event) {
|
1594
|
+
target.setAttribute('tabindex', -1);
|
1595
|
+
}));
|
1596
|
+
} else {
|
1597
|
+
// throw an error?
|
1598
|
+
}
|
1599
|
+
};
|
1600
|
+
|
1601
|
+
module.exports = behavior(_defineProperty({}, CLICK, _defineProperty({}, LINK, setTabindex)));
|
1602
|
+
|
1603
|
+
},{"../config":25,"../events":26,"../utils/behavior":30,"receptor/once":14}],24:[function(require,module,exports){
|
1604
|
+
'use strict';
|
1605
|
+
|
1606
|
+
var behavior = require('../utils/behavior');
|
1607
|
+
var validate = require('../utils/validate-input');
|
1608
|
+
var debounce = require('lodash.debounce');
|
1609
|
+
|
1610
|
+
var change = function change(event) {
|
1611
|
+
return validate(this);
|
1612
|
+
};
|
1613
|
+
|
1614
|
+
var validator = behavior({
|
1615
|
+
'keyup change': {
|
1616
|
+
'input[data-validation-element]': change
|
1617
|
+
}
|
1618
|
+
});
|
1619
|
+
|
1620
|
+
/**
|
1621
|
+
* TODO for 2.0, remove this statement and export `navigation` directly:
|
1622
|
+
*
|
1623
|
+
* module.exports = behavior({...});
|
1624
|
+
*/
|
1625
|
+
var assign = require('object-assign');
|
1626
|
+
module.exports = assign(function (el) {
|
1627
|
+
return validator.on(el);
|
1628
|
+
}, validator);
|
1629
|
+
|
1630
|
+
},{"../utils/behavior":30,"../utils/validate-input":36,"lodash.debounce":7,"object-assign":8}],25:[function(require,module,exports){
|
1631
|
+
'use strict';
|
1632
|
+
|
1633
|
+
module.exports = {
|
1634
|
+
prefix: 'usa'
|
1635
|
+
};
|
1636
|
+
|
1637
|
+
},{}],26:[function(require,module,exports){
|
1638
|
+
'use strict';
|
1639
|
+
|
1640
|
+
module.exports = {
|
1641
|
+
// This used to be conditionally dependent on whether the
|
1642
|
+
// browser supported touch events; if it did, `CLICK` was set to
|
1643
|
+
// `touchstart`. However, this had downsides:
|
1644
|
+
//
|
1645
|
+
// * It pre-empted mobile browsers' default behavior of detecting
|
1646
|
+
// whether a touch turned into a scroll, thereby preventing
|
1647
|
+
// users from using some of our components as scroll surfaces.
|
1648
|
+
//
|
1649
|
+
// * Some devices, such as the Microsoft Surface Pro, support *both*
|
1650
|
+
// touch and clicks. This meant the conditional effectively dropped
|
1651
|
+
// support for the user's mouse, frustrating users who preferred
|
1652
|
+
// it on those systems.
|
1653
|
+
CLICK: 'click'
|
1654
|
+
};
|
1655
|
+
|
1656
|
+
},{}],27:[function(require,module,exports){
|
1657
|
+
'use strict';
|
1658
|
+
|
1659
|
+
var elproto = window.HTMLElement.prototype;
|
1660
|
+
var HIDDEN = 'hidden';
|
1661
|
+
|
1662
|
+
if (!(HIDDEN in elproto)) {
|
1663
|
+
Object.defineProperty(elproto, HIDDEN, {
|
1664
|
+
get: function get() {
|
1665
|
+
return this.hasAttribute(HIDDEN);
|
1666
|
+
},
|
1667
|
+
set: function set(value) {
|
1668
|
+
if (value) {
|
1669
|
+
this.setAttribute(HIDDEN, '');
|
1670
|
+
} else {
|
1671
|
+
this.removeAttribute(HIDDEN);
|
1672
|
+
}
|
1673
|
+
}
|
1674
|
+
});
|
1675
|
+
}
|
1676
|
+
|
1677
|
+
},{}],28:[function(require,module,exports){
|
1678
|
+
'use strict';
|
1679
|
+
// polyfills HTMLElement.prototype.classList and DOMTokenList
|
1680
|
+
|
1681
|
+
require('classlist-polyfill');
|
1682
|
+
// polyfills HTMLElement.prototype.hidden
|
1683
|
+
require('./element-hidden');
|
1684
|
+
|
1685
|
+
},{"./element-hidden":27,"classlist-polyfill":3}],29:[function(require,module,exports){
|
1686
|
+
'use strict';
|
1687
|
+
|
1688
|
+
var domready = require('domready');
|
1689
|
+
|
1690
|
+
/**
|
1691
|
+
* The 'polyfills' define key ECMAScript 5 methods that may be missing from
|
1692
|
+
* older browsers, so must be loaded first.
|
1693
|
+
*/
|
1694
|
+
require('./polyfills');
|
1695
|
+
|
1696
|
+
var uswds = require('./config');
|
1697
|
+
|
1698
|
+
var components = require('./components');
|
1699
|
+
uswds.components = components;
|
1700
|
+
|
1701
|
+
domready(function () {
|
1702
|
+
var target = document.body;
|
1703
|
+
for (var name in components) {
|
1704
|
+
var behavior = components[name];
|
1705
|
+
behavior.on(target);
|
1706
|
+
}
|
1707
|
+
});
|
1708
|
+
|
1709
|
+
module.exports = uswds;
|
1710
|
+
|
1711
|
+
},{"./components":19,"./config":25,"./polyfills":28,"domready":4}],30:[function(require,module,exports){
|
1712
|
+
'use strict';
|
1713
|
+
|
1714
|
+
var assign = require('object-assign');
|
1715
|
+
var forEach = require('array-foreach');
|
1716
|
+
var Behavior = require('receptor/behavior');
|
1717
|
+
|
1718
|
+
var sequence = function sequence() {
|
1719
|
+
var seq = [].slice.call(arguments);
|
1720
|
+
return function (target) {
|
1721
|
+
var _this = this;
|
1722
|
+
|
1723
|
+
if (!target) {
|
1724
|
+
target = document.body;
|
1725
|
+
}
|
1726
|
+
forEach(seq, function (method) {
|
1727
|
+
if (typeof _this[method] === 'function') {
|
1728
|
+
_this[method].call(_this, target);
|
1729
|
+
}
|
1730
|
+
});
|
1731
|
+
};
|
1732
|
+
};
|
1733
|
+
|
1734
|
+
/**
|
1735
|
+
* @name behavior
|
1736
|
+
* @param {object} events
|
1737
|
+
* @param {object?} props
|
1738
|
+
* @return {receptor.behavior}
|
1739
|
+
*/
|
1740
|
+
module.exports = function (events, props) {
|
1741
|
+
return Behavior(events, assign({
|
1742
|
+
on: sequence('init', 'add'),
|
1743
|
+
off: sequence('teardown', 'remove')
|
1744
|
+
}, props));
|
1745
|
+
};
|
1746
|
+
|
1747
|
+
},{"array-foreach":2,"object-assign":8,"receptor/behavior":9}],31:[function(require,module,exports){
|
1748
|
+
"use strict";
|
1749
|
+
|
1750
|
+
// https://stackoverflow.com/a/7557433
|
1751
|
+
function isElementInViewport(el) {
|
1752
|
+
var win = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window;
|
1753
|
+
var docEl = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.documentElement;
|
1754
|
+
|
1755
|
+
var rect = el.getBoundingClientRect();
|
1756
|
+
|
1757
|
+
return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (win.innerHeight || docEl.clientHeight) && rect.right <= (win.innerWidth || docEl.clientWidth);
|
1758
|
+
}
|
1759
|
+
|
1760
|
+
module.exports = isElementInViewport;
|
1761
|
+
|
1762
|
+
},{}],32:[function(require,module,exports){
|
1763
|
+
'use strict';
|
1764
|
+
|
1765
|
+
/**
|
1766
|
+
* @name isElement
|
1767
|
+
* @desc returns whether or not the given argument is a DOM element.
|
1768
|
+
* @param {any} value
|
1769
|
+
* @return {boolean}
|
1770
|
+
*/
|
1771
|
+
|
1772
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
1773
|
+
|
1774
|
+
var isElement = function isElement(value) {
|
1775
|
+
return value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.nodeType === 1;
|
1776
|
+
};
|
1777
|
+
|
1778
|
+
/**
|
1779
|
+
* @name select
|
1780
|
+
* @desc selects elements from the DOM by class selector or ID selector.
|
1781
|
+
* @param {string} selector - The selector to traverse the DOM with.
|
1782
|
+
* @param {Document|HTMLElement?} context - The context to traverse the DOM
|
1783
|
+
* in. If not provided, it defaults to the document.
|
1784
|
+
* @return {HTMLElement[]} - An array of DOM nodes or an empty array.
|
1785
|
+
*/
|
1786
|
+
module.exports = function select(selector, context) {
|
1787
|
+
|
1788
|
+
if (typeof selector !== 'string') {
|
1789
|
+
return [];
|
1790
|
+
}
|
1791
|
+
|
1792
|
+
if (!context || !isElement(context)) {
|
1793
|
+
context = window.document;
|
1794
|
+
}
|
1795
|
+
|
1796
|
+
var selection = context.querySelectorAll(selector);
|
1797
|
+
return Array.prototype.slice.call(selection);
|
1798
|
+
};
|
1799
|
+
|
1800
|
+
},{}],33:[function(require,module,exports){
|
1801
|
+
'use strict';
|
1802
|
+
|
1803
|
+
/**
|
1804
|
+
* Flips given INPUT elements between masked (hiding the field value) and unmasked
|
1805
|
+
* @param {Array.HTMLElement} fields - An array of INPUT elements
|
1806
|
+
* @param {Boolean} mask - Whether the mask should be applied, hiding the field value
|
1807
|
+
*/
|
1808
|
+
module.exports = function (field, mask) {
|
1809
|
+
field.setAttribute('autocapitalize', 'off');
|
1810
|
+
field.setAttribute('autocorrect', 'off');
|
1811
|
+
field.setAttribute('type', mask ? 'password' : 'text');
|
1812
|
+
};
|
1813
|
+
|
1814
|
+
},{}],34:[function(require,module,exports){
|
1815
|
+
'use strict';
|
1816
|
+
|
1817
|
+
var forEach = require('array-foreach');
|
1818
|
+
var resolveIdRefs = require('resolve-id-refs');
|
1819
|
+
var select = require('./select');
|
1820
|
+
var toggleFieldMask = require('./toggle-field-mask');
|
1821
|
+
|
1822
|
+
var CONTROLS = 'aria-controls';
|
1823
|
+
var PRESSED = 'aria-pressed';
|
1824
|
+
var SHOW_ATTR = 'data-show-text';
|
1825
|
+
var HIDE_ATTR = 'data-hide-text';
|
1826
|
+
|
1827
|
+
/**
|
1828
|
+
* Replace the word "Show" (or "show") with "Hide" (or "hide") in a string.
|
1829
|
+
* @param {string} showText
|
1830
|
+
* @return {strong} hideText
|
1831
|
+
*/
|
1832
|
+
var getHideText = function getHideText(showText) {
|
1833
|
+
return showText.replace(/\bShow\b/i, function (show) {
|
1834
|
+
return ('S' === show[0] ? 'H' : 'h') + 'ide';
|
1835
|
+
});
|
1836
|
+
};
|
1837
|
+
|
1838
|
+
/**
|
1839
|
+
* Component that decorates an HTML element with the ability to toggle the
|
1840
|
+
* masked state of an input field (like a password) when clicked.
|
1841
|
+
* The ids of the fields to be masked will be pulled directly from the button's
|
1842
|
+
* `aria-controls` attribute.
|
1843
|
+
*
|
1844
|
+
* @param {HTMLElement} el Parent element containing the fields to be masked
|
1845
|
+
* @return {boolean}
|
1846
|
+
*/
|
1847
|
+
module.exports = function (el) {
|
1848
|
+
// this is the *target* state:
|
1849
|
+
// * if the element has the attr and it's !== "true", pressed is true
|
1850
|
+
// * otherwise, pressed is false
|
1851
|
+
var pressed = el.hasAttribute(PRESSED) && el.getAttribute(PRESSED) !== 'true';
|
1852
|
+
|
1853
|
+
var fields = resolveIdRefs(el.getAttribute(CONTROLS));
|
1854
|
+
forEach(fields, function (field) {
|
1855
|
+
return toggleFieldMask(field, pressed);
|
1856
|
+
});
|
1857
|
+
|
1858
|
+
if (!el.hasAttribute(SHOW_ATTR)) {
|
1859
|
+
el.setAttribute(SHOW_ATTR, el.textContent);
|
1860
|
+
}
|
1861
|
+
|
1862
|
+
var showText = el.getAttribute(SHOW_ATTR);
|
1863
|
+
var hideText = el.getAttribute(HIDE_ATTR) || getHideText(showText);
|
1864
|
+
|
1865
|
+
el.textContent = pressed ? showText : hideText;
|
1866
|
+
el.setAttribute(PRESSED, pressed);
|
1867
|
+
return pressed;
|
1868
|
+
};
|
1869
|
+
|
1870
|
+
},{"./select":32,"./toggle-field-mask":33,"array-foreach":2,"resolve-id-refs":15}],35:[function(require,module,exports){
|
1871
|
+
'use strict';
|
1872
|
+
|
1873
|
+
var EXPANDED = 'aria-expanded';
|
1874
|
+
var CONTROLS = 'aria-controls';
|
1875
|
+
var HIDDEN = 'aria-hidden';
|
1876
|
+
|
1877
|
+
module.exports = function (button, expanded) {
|
1878
|
+
|
1879
|
+
if (typeof expanded !== 'boolean') {
|
1880
|
+
expanded = button.getAttribute(EXPANDED) === 'false';
|
1881
|
+
}
|
1882
|
+
button.setAttribute(EXPANDED, expanded);
|
1883
|
+
|
1884
|
+
var id = button.getAttribute(CONTROLS);
|
1885
|
+
var controls = document.getElementById(id);
|
1886
|
+
if (!controls) {
|
1887
|
+
throw new Error('No toggle target found with id: "' + id + '"');
|
1888
|
+
}
|
1889
|
+
|
1890
|
+
controls.setAttribute(HIDDEN, !expanded);
|
1891
|
+
return expanded;
|
1892
|
+
};
|
1893
|
+
|
1894
|
+
},{}],36:[function(require,module,exports){
|
1895
|
+
'use strict';
|
1896
|
+
|
1897
|
+
var dataset = require('elem-dataset');
|
1898
|
+
|
1899
|
+
var PREFIX = require('../config').prefix;
|
1900
|
+
var CHECKED = 'aria-checked';
|
1901
|
+
var CHECKED_CLASS = PREFIX + '-checklist-checked';
|
1902
|
+
|
1903
|
+
module.exports = function validate(el) {
|
1904
|
+
var data = dataset(el);
|
1905
|
+
var id = data.validationElement;
|
1906
|
+
var checkList = id.charAt(0) === '#' ? document.querySelector(id) : document.getElementById(id);
|
1907
|
+
|
1908
|
+
if (!checkList) {
|
1909
|
+
throw new Error('No validation element found with id: "' + id + '"');
|
1910
|
+
}
|
1911
|
+
|
1912
|
+
for (var key in data) {
|
1913
|
+
if (key.startsWith('validate')) {
|
1914
|
+
var validatorName = key.substr('validate'.length).toLowerCase();
|
1915
|
+
var validatorPattern = new RegExp(data[key]);
|
1916
|
+
var validatorSelector = '[data-validator="' + validatorName + '"]';
|
1917
|
+
var validatorCheckbox = checkList.querySelector(validatorSelector);
|
1918
|
+
if (!validatorCheckbox) {
|
1919
|
+
throw new Error('No validator checkbox found for: "' + validatorName + '"');
|
1920
|
+
}
|
1921
|
+
|
1922
|
+
var checked = validatorPattern.test(el.value);
|
1923
|
+
validatorCheckbox.classList.toggle(CHECKED_CLASS, checked);
|
1924
|
+
validatorCheckbox.setAttribute(CHECKED, checked);
|
1925
|
+
}
|
1926
|
+
}
|
1927
|
+
};
|
1928
|
+
|
1929
|
+
},{"../config":25,"elem-dataset":5}]},{},[29])
|
1930
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJub2RlX21vZHVsZXMvYXJyYXktZmlsdGVyL2luZGV4LmpzIiwibm9kZV9tb2R1bGVzL2FycmF5LWZvcmVhY2gvaW5kZXguanMiLCJub2RlX21vZHVsZXMvY2xhc3NsaXN0LXBvbHlmaWxsL3NyYy9pbmRleC5qcyIsIm5vZGVfbW9kdWxlcy9kb21yZWFkeS9yZWFkeS5qcyIsIm5vZGVfbW9kdWxlcy9lbGVtLWRhdGFzZXQvZGlzdC9pbmRleC5qcyIsIm5vZGVfbW9kdWxlcy9lbG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