diff --git a/docs/.eslintrc b/docs/.eslintrc deleted file mode 100755 index 310e5d2f33e..00000000000 --- a/docs/.eslintrc +++ /dev/null @@ -1,89 +0,0 @@ -{ - "env": { - "browser": true - }, - "parserOptions": { - "ecmaVersion": 5 - }, - "globals": { - "_": false, - "Backbone": false, - "jQuery": false, - "JSON": false, - "wp": false - }, - "rules": { - "array-bracket-spacing": [ 2, "always" ], - "brace-style": [ 2, "1tbs" ], - "camelcase": 2, - "comma-dangle": 0, - "comma-spacing": 2, - "comma-style": 2, - "computed-property-spacing": [ 2, "always" ], - "constructor-super": 2, - "consistent-return": 0, - "curly": 2, - "dot-notation": 2, - "eqeqeq": [ 2, "allow-null" ], - "eol-last": 2, - "func-call-spacing": 2, - "jsx-quotes": [ 2, "prefer-double" ], - "key-spacing": 0, - "keyword-spacing": 2, - "max-len": [ 2, { "code": 100 } ], - "new-cap": [ 2, { "capIsNew": false, "newIsCap": true } ], - "no-cond-assign": 2, - "no-const-assign": 2, - "no-console": 2, - "no-debugger": 2, - "no-dupe-args": 2, - "no-dupe-keys": 2, - "no-duplicate-case": 2, - "no-else-return": 2, - "no-empty": [ 2, { "allowEmptyCatch": true } ], - "no-extra-semi": 2, - "no-fallthrough": 0, - "no-lonely-if": 2, - "no-mixed-requires": 0, - "no-multiple-empty-lines": [ 2, { "max": 1 } ], - "no-negated-in-lhs": 2, - "no-nested-ternary": 2, - "no-new": 2, - "no-process-exit": 2, - "no-redeclare": 2, - "no-spaced-func": 2, - "no-trailing-spaces": 2, - "no-undef": 2, - "no-underscore-dangle": 0, - "no-unreachable": 2, - "no-unused-vars": 2, - "no-use-before-define": [ 2, "nofunc" ], - "object-curly-spacing": [ 2, "always" ], - "one-var": 0, - "operator-linebreak": [ 2, "after", { "overrides": { - "?": "before", - ":": "before" - } } ], - "padded-blocks": [ 2, "never" ], - "prefer-const": 2, - "quote-props": [ 2, "as-needed", { "keywords": true } ], - "quotes": [ 2, "single", "avoid-escape" ], - "semi": 2, - "semi-spacing": 2, - "space-before-blocks": [ 2, "always" ], - "space-before-function-paren": [ 2, "never" ], - "space-in-parens": [ 2, "always" ], - "space-infix-ops": [ 2, { "int32Hint": false } ], - "space-unary-ops": [ 2, { - "overrides": { - "!": true - } - } ], - "strict": [ 2, "function" ], - "yoda": 0, - "no-shadow": 0, - "indent": [ "error", "tab", { "SwitchCase": 1, "VariableDeclarator": 2 } ], - "no-mixed-spaces-and-tabs": 0, - "no-multi-spaces": [ "error", { "exceptions": { "Property": true, "VariableDeclarator": true, "ImportDeclaration": true } } ] - } -} diff --git a/docs/.gitignore b/docs/.gitignore deleted file mode 100755 index 8007976a09c..00000000000 --- a/docs/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# ------ -# Common -# ------ -*~ -.DS_Store -.svn -.cvs -*.bak -*.swp -Thumbs.db - - -# ----------------------- -# Local Development Tools -# ----------------------- -/node_modules -/npm-debug.log - -# --------------- -# Compiled assets -# --------------- -.sass-cache -_site diff --git a/docs/.gitlab-ci.yml b/docs/.gitlab-ci.yml deleted file mode 100755 index e72a488d555..00000000000 --- a/docs/.gitlab-ci.yml +++ /dev/null @@ -1,15 +0,0 @@ -image: ruby:2.3 - -variables: - JEKYLL_ENV: production - -pages: - stage: deploy - script: - - gem install jekyll - - jekyll build -d public/ - artifacts: - paths: - - public - only: - - main diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 00000000000..e2ac6616add --- /dev/null +++ b/docs/.nojekyll @@ -0,0 +1 @@ +TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/docs/404.md b/docs/404.md deleted file mode 100755 index a13cec08791..00000000000 --- a/docs/404.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -# Page settings -layout: error-404 -title: 404 - Page not found - -# Content settings -page_content: - title: 404 / Page not found - message: The link you clicked may be broken
or the page may have been removed. ---- diff --git a/docs/Gemfile b/docs/Gemfile deleted file mode 100644 index 4160f2932dc..00000000000 --- a/docs/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -source "https://rubygems.org" - -# Hello! This is where you manage which Jekyll version is used to run. -# When you want to use a different version, change it below, save the -# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: -# -# bundle exec jekyll serve -# -# This will help ensure the proper Jekyll version is running. -# Happy Jekylling! -gem "jekyll" - -# This is the default theme for new Jekyll sites. You may change this to anything you like. -# gem "minima", "~> 2.0" - -# If you want to use GitHub Pages, remove the "gem "jekyll"" above and -# uncomment the line below. To upgrade, run `bundle update github-pages`. -# gem "github-pages", group: :jekyll_plugins - -# If you have any plugins, put them here! -group :jekyll_plugins do - gem "jekyll-feed" - gem "github-pages" -end - -# Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] - -# Performance-booster for watching directories on Windows -gem "wdm", "~> 0.1.0" if Gem.win_platform? - - diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock deleted file mode 100644 index d0e3c2d52d2..00000000000 --- a/docs/Gemfile.lock +++ /dev/null @@ -1,263 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - activesupport (7.0.7.2) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 1.6, < 2) - minitest (>= 5.1) - tzinfo (~> 2.0) - addressable (2.8.1) - public_suffix (>= 2.0.2, < 6.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.11.1) - colorator (1.1.0) - commonmarker (0.23.10) - concurrent-ruby (1.2.2) - dnsruby (1.61.9) - simpleidn (~> 0.1) - em-websocket (0.5.3) - eventmachine (>= 0.12.9) - http_parser.rb (~> 0) - ethon (0.16.0) - ffi (>= 1.15.0) - eventmachine (1.2.7) - execjs (2.8.1) - faraday (2.7.4) - faraday-net_http (>= 2.0, < 3.1) - ruby2_keywords (>= 0.0.4) - faraday-net_http (3.0.2) - ffi (1.15.5) - forwardable-extended (2.6.0) - gemoji (3.0.1) - github-pages (228) - github-pages-health-check (= 1.17.9) - jekyll (= 3.9.3) - jekyll-avatar (= 0.7.0) - jekyll-coffeescript (= 1.1.1) - jekyll-commonmark-ghpages (= 0.4.0) - jekyll-default-layout (= 0.1.4) - jekyll-feed (= 0.15.1) - jekyll-gist (= 1.5.0) - jekyll-github-metadata (= 2.13.0) - jekyll-include-cache (= 0.2.1) - jekyll-mentions (= 1.6.0) - jekyll-optional-front-matter (= 0.3.2) - jekyll-paginate (= 1.1.0) - jekyll-readme-index (= 0.3.0) - jekyll-redirect-from (= 0.16.0) - jekyll-relative-links (= 0.6.1) - jekyll-remote-theme (= 0.4.3) - jekyll-sass-converter (= 1.5.2) - jekyll-seo-tag (= 2.8.0) - jekyll-sitemap (= 1.4.0) - jekyll-swiss (= 1.0.0) - jekyll-theme-architect (= 0.2.0) - jekyll-theme-cayman (= 0.2.0) - jekyll-theme-dinky (= 0.2.0) - jekyll-theme-hacker (= 0.2.0) - jekyll-theme-leap-day (= 0.2.0) - jekyll-theme-merlot (= 0.2.0) - jekyll-theme-midnight (= 0.2.0) - jekyll-theme-minimal (= 0.2.0) - jekyll-theme-modernist (= 0.2.0) - jekyll-theme-primer (= 0.6.0) - jekyll-theme-slate (= 0.2.0) - jekyll-theme-tactile (= 0.2.0) - jekyll-theme-time-machine (= 0.2.0) - jekyll-titles-from-headings (= 0.5.3) - jemoji (= 0.12.0) - kramdown (= 2.3.2) - kramdown-parser-gfm (= 1.1.0) - liquid (= 4.0.4) - mercenary (~> 0.3) - minima (= 2.5.1) - nokogiri (>= 1.13.6, < 2.0) - rouge (= 3.26.0) - terminal-table (~> 1.4) - github-pages-health-check (1.17.9) - addressable (~> 2.3) - dnsruby (~> 1.60) - octokit (~> 4.0) - public_suffix (>= 3.0, < 5.0) - typhoeus (~> 1.3) - html-pipeline (2.14.3) - activesupport (>= 2) - nokogiri (>= 1.4) - http_parser.rb (0.8.0) - i18n (1.14.1) - concurrent-ruby (~> 1.0) - jekyll (3.9.3) - addressable (~> 2.4) - colorator (~> 1.0) - em-websocket (~> 0.5) - i18n (>= 0.7, < 2) - jekyll-sass-converter (~> 1.0) - jekyll-watch (~> 2.0) - kramdown (>= 1.17, < 3) - liquid (~> 4.0) - mercenary (~> 0.3.3) - pathutil (~> 0.9) - rouge (>= 1.7, < 4) - safe_yaml (~> 1.0) - jekyll-avatar (0.7.0) - jekyll (>= 3.0, < 5.0) - jekyll-coffeescript (1.1.1) - coffee-script (~> 2.2) - coffee-script-source (~> 1.11.1) - jekyll-commonmark (1.4.0) - commonmarker (~> 0.22) - jekyll-commonmark-ghpages (0.4.0) - commonmarker (~> 0.23.7) - jekyll (~> 3.9.0) - jekyll-commonmark (~> 1.4.0) - rouge (>= 2.0, < 5.0) - jekyll-default-layout (0.1.4) - jekyll (~> 3.0) - jekyll-feed (0.15.1) - jekyll (>= 3.7, < 5.0) - jekyll-gist (1.5.0) - octokit (~> 4.2) - jekyll-github-metadata (2.13.0) - jekyll (>= 3.4, < 5.0) - octokit (~> 4.0, != 4.4.0) - jekyll-include-cache (0.2.1) - jekyll (>= 3.7, < 5.0) - jekyll-mentions (1.6.0) - html-pipeline (~> 2.3) - jekyll (>= 3.7, < 5.0) - jekyll-optional-front-matter (0.3.2) - jekyll (>= 3.0, < 5.0) - jekyll-paginate (1.1.0) - jekyll-readme-index (0.3.0) - jekyll (>= 3.0, < 5.0) - jekyll-redirect-from (0.16.0) - jekyll (>= 3.3, < 5.0) - jekyll-relative-links (0.6.1) - jekyll (>= 3.3, < 5.0) - jekyll-remote-theme (0.4.3) - addressable (~> 2.0) - jekyll (>= 3.5, < 5.0) - jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0) - rubyzip (>= 1.3.0, < 3.0) - jekyll-sass-converter (1.5.2) - sass (~> 3.4) - jekyll-seo-tag (2.8.0) - jekyll (>= 3.8, < 5.0) - jekyll-sitemap (1.4.0) - jekyll (>= 3.7, < 5.0) - jekyll-swiss (1.0.0) - jekyll-theme-architect (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-cayman (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-dinky (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-hacker (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-leap-day (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-merlot (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-midnight (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-minimal (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-modernist (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-primer (0.6.0) - jekyll (> 3.5, < 5.0) - jekyll-github-metadata (~> 2.9) - jekyll-seo-tag (~> 2.0) - jekyll-theme-slate (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-tactile (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-time-machine (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-titles-from-headings (0.5.3) - jekyll (>= 3.3, < 5.0) - jekyll-watch (2.2.1) - listen (~> 3.0) - jemoji (0.12.0) - gemoji (~> 3.0) - html-pipeline (~> 2.2) - jekyll (>= 3.0, < 5.0) - kramdown (2.3.2) - rexml - kramdown-parser-gfm (1.1.0) - kramdown (~> 2.0) - liquid (4.0.4) - listen (3.8.0) - rb-fsevent (~> 0.10, >= 0.10.3) - rb-inotify (~> 0.9, >= 0.9.10) - mercenary (0.3.6) - mini_portile2 (2.8.5) - minima (2.5.1) - jekyll (>= 3.5, < 5.0) - jekyll-feed (~> 0.9) - jekyll-seo-tag (~> 2.1) - minitest (5.19.0) - nokogiri (1.16.2) - mini_portile2 (~> 2.8.2) - racc (~> 1.4) - octokit (4.25.1) - faraday (>= 1, < 3) - sawyer (~> 0.9) - pathutil (0.16.2) - forwardable-extended (~> 2.6) - public_suffix (4.0.7) - racc (1.7.3) - rb-fsevent (0.11.2) - rb-inotify (0.10.1) - ffi (~> 1.0) - rexml (3.2.5) - rouge (3.26.0) - ruby2_keywords (0.0.5) - rubyzip (2.3.2) - safe_yaml (1.0.5) - sass (3.7.4) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sawyer (0.9.2) - addressable (>= 2.3.5) - faraday (>= 0.17.3, < 3) - simpleidn (0.2.1) - unf (~> 0.1.4) - terminal-table (1.8.0) - unicode-display_width (~> 1.1, >= 1.1.1) - typhoeus (1.4.0) - ethon (>= 0.9.0) - tzinfo (2.0.6) - concurrent-ruby (~> 1.0) - unf (0.1.4) - unf_ext - unf_ext (0.0.8.2) - unicode-display_width (1.8.0) - -PLATFORMS - ruby - -DEPENDENCIES - github-pages - jekyll - jekyll-feed - tzinfo-data - -BUNDLED WITH - 1.17.2 diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000000..bf46900a6c9 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,21 @@ +Welcome to the API reference guide for Amplify JS v6. Here you will find API references and type definitions for the library. + +## Using this Website +This website is organized by the packages and export paths that we expose in the library. + +Internal or reference types that you may encounter while interacting with the library are documented in the `` directories. + +## Additional Resources +Additional resources for using the library are listed below. + +- [Amplify Dev Center](https://docs.amplify.aws/) +- [Amplify JS GitHub repository](https://github.com/aws-amplify/amplify-js) + +### How to Contribute +If you're running into trouble using the library or have a question, you can contact us using any of the resources below. + +- [Report a bug or issue](https://github.com/aws-amplify/amplify-js/issues/new?assignees=&labels=pending-triage&projects=&template=1.bug_report.yaml) +- [Request a feature](https://github.com/aws-amplify/amplify-js/issues/new?assignees=&labels=pending-triage&projects=&template=2.feature_request.yaml) +- [Engage with us on Discord](https://discord.gg/jWVbPfC) + +We welcome contributions to the library! If you'd like to contribute, please start with our [contributing guidelines](https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md). diff --git a/docs/_config.yml b/docs/_config.yml deleted file mode 100644 index b848fe11fce..00000000000 --- a/docs/_config.yml +++ /dev/null @@ -1,345 +0,0 @@ -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely edit after that. If you find -# yourself editing this file very often, consider using Jekyll's data files -# feature for the data you need to update frequently. -# -# For technical reasons, this file is *NOT* reloaded automatically when you use -# 'bundle exec jekyll serve'. If you change this file, please restart the server process. - -# Site settings -# -# These are used to personalize your new site. If you look in the HTML files, -# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. -# You can create any custom variable you would like, and they will be accessible -# in the templates via {{ site.myvariable }}. -title: AWS Amplify Developer Documentation -email: your-email@example.com -description: >- # this means to ignore newlines until "baseurl:" - AWS Amplify is a JavaScript library for frontend and mobile developers building cloud-enabled applications. -baseurl: "" # the subpath of your site, e.g. /blog -url: "" # the base hostname & protocol for your site, e.g. http://example.com -github: - repository_url: https://github.com/aws-amplify/amplify-js/edit/main/docs/ - -show_downloads: "true" -include: -- api -- api/assets -- api/classes -- api/enums -- api/interfaces -- api/modules - -# Exclude from processing. -# The following items will not be processed, by default. Create a custom list -# to override the default setting. -exclude: - - Gemfile - - Gemfile.lock - - node_modules - - vendor/bundle/ - - vendor/cache/ - - vendor/gems/ - - vendor/ruby/ - - -# Build settings -markdown: kramdown -kramdown: - parse_block_html: true -plugins: - - jekyll-feed - - jekyll-sitemap -future: true - - -# Amplify theme settings -amplify: - baseurl: # Since the site is deployed under https://aws-amplify.github.io/amplify-js - docs_baseurl: /amplify-js - color_theme: # Available themes: blue (default), green, purple, red and yellow - header: - logo: - text: AWS Amplify - image: true - platform: for JavaScript - nav: - - item_name: Get Started - item_url: '/media/get_started' - id: get_started - - item_name: Toolchain - item_url: '/media/toolchain' - id: toolchain - - item_name: Style Guide - item_url: '/media/ui_library' - id: ui_library - #- item_name: - # item_icon: github - # item_external_url: 'https://github.com/aws-amplify/amplify-js' - footer: - content: - logo: - text: AWS Amplify is supported by Amazon Web Services - image: true - copyright: © 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - social_list: - - network_name: gitter - profile_url: 'https://gitter.im/AWS-Amplify/Lobby/' - - network_name: github - profile_url: 'https://github.com/aws-amplify/amplify-js' - - network_name: twitter - profile_url: 'https://twitter.com/search?q=%23awsamplify&src=typd' - - network_name: youtube - profile_url: 'https://www.youtube.com/watch?v=vAjf3lyjf8c' - - google_analytics: - tracking_code: # Add your Google Analytics tracking code to activate Google Analytics - comments: - disqus_forum_shortname: 'aws-amplify' # Add your disqus forum shortname to activate comments - -# SASS settings -sass: - sass_dir: ./amplify-theme/_sass - style: :compressed - -# Jekyll settings -layouts_dir: ./amplify-theme/_layouts -includes_dir: ./amplify-theme/_includes -exclude: [ 'README.md', 'CHANGELOG.md' ] -permalink: /:title - -category_list: - - category: SetupAndInstallation - title: Setup & Installation - excerpt: - base_url: '/media/quick_start' - subs: - - title: Getting Started - excerpt: get started excerpt - url: '/media/quick_start' - icon: '/images/icons/Misc/Present.svg' - # - category: Tutorials - # title: Tutorials - # excerpt: - # base_url: 'building-web-apps' - # subs: - # - title: Web Apps - # excerpt: 'A step-by-step tutorial for learning how to build a cloud-enabled React Web app with AWS Amplify.
30 min to complete' - # url: '/media/building-web-apps' - # icon: '/images/icons/Misc/Present.svg' - # - title: React Native Apps - # excerpt: 'A step-by-step tutorial for learning how to build a cloud-enabled mobile app with React Native and AWS Amplify.
30 min to complete' - # url: '/media/building-react-native-apps' - # icon: '/images/icons/Misc/Present.svg' - # - title: Ionic 4 Apps - # excerpt: "Learn to build a cloud enabled 'Notes App' with Ionic 4 and AWS Amplify
45 min to complete" - # url: '/media/building-ionic-4-apps' - # icon: '/images/icons/Misc/Present.svg' - - category: Tutorials - title: Framework Support - excerpt: - base_url: '/media/react_guide' - subs: - - title: React & React Native - excerpt: #'A step-by-step tutorial for learning how to build a cloud-enabled React Web app with AWS Amplify.
30 min to complete' - url: '/media/react_guide' - icon: '/images/icons/Misc/Present.svg' - - title: Angular & Ionic - excerpt: #"Learn to build a cloud enabled 'Notes App' with Ionic 4 and AWS Amplify
45 min to complete" - url: '/media/ionic_guide' - icon: '/images/icons/Misc/Present.svg' - - title: Vue - excerpt: #"Learn to build a cloud enabled App with Vue.js and AWS Amplify
45 min to complete" - url: '/media/vue_guide' - icon: '/images/icons/Misc/Present.svg' - - category: Toolchain - title: Toolchain - excerpt: Better developer experience when building and deploying your apps. - base_url: '/media/hosting_guide' - subs: - - title: CLI - excerpt: Deploy your Web app or static website for global CDN distribution with media streaming support. - cta: Read more - class: aws-icon-ps-60-network-nodes - url: '/media/cli_guide' - icon: '/images/icons/Misc/Tool.svg' - services: - - title: Amazon CloudFront - url: https://aws.amazon.com/cloudfront/ - - title: UI Components - excerpt: UI excerpt - url: '/media/ui_guide' - icon: '/images/icons/Misc/Present.svg' - - title: VS Code Extension - excerpt: Code snippets for AWS Amplify in Visual Studio Code. - cta: Read more - class: aws-icon-ps-60-network-nodes - url_external: 'https://marketplace.visualstudio.com/items?itemName=aws-amplify.aws-amplify-vscode' - icon: '/images/icons/Misc/Present.svg' - - category: Categories - title: API Guides - excerpt: Add cloud features to your app quickly using our toolchain and declarative APIs. - base_url: '/media/analytics_guide' - subs: - - title: Analytics - excerpt: Drop-in analytics to track user sessions, custom user attributes, and in-app metrics. - cta: Read more - class: aws-icon-ps-60-pie-bar-charts - url: '/media/analytics_guide' - icon: '/images/icons/Misc/Cloud.svg' - services: - - title: Amazon Pinpoint, - url: https://aws.amazon.com/pinpoint/ - - title: Amazon Kinesis, - url: https://aws.amazon.com/kinesis/ - - title: Custom Plugin - url: https://aws-amplify.github.io/amplify-js/media/analytics_guide#using-a-custom-plugin - - title: API - excerpt: A simple and secure solution for making HTTP requests using REST and GraphQL, with support for real-time data. - cta: Read more - class: aws-icon-ps-60-database-server - url: '/media/api_guide' - icon: '/images/icons/Misc/Cloud.svg' - services: - - title: Amazon API Gateway, - url: https://aws.amazon.com/api-gateway - - title: AWS AppSync - url: https://aws.amazon.com/appsync - - title: Authentication - excerpt: Authentication APIs with pre-built UI components for your app. - cta: Read more - class: aws-icon-ps-60-shield-circle - url: '/media/authentication_guide' - icon: '/images/icons/Misc/Cloud.svg' - services: - - title: Amazon Cognito, - url: https://aws.amazon.com/cognito/ - - title: OAuth 2.0 , - url: https://aws.amazon.com/cognito/ - - title: Custom Plugin - url: - - title: Interactions - excerpt: Create conversational bots powered by deep learning technologies. - cta: Read more - class: aws-icon-ps-60-bubble-gear - url: '/media/interactions_guide' - icon: '/images/icons/Misc/Cloud.svg' - services: - - title: Amazon Lex - url: https://aws.amazon.com/lex/ - - title: PubSub - excerpt: Connect your app to message-oriented middleware on the cloud. - cta: Read more - class: aws-icon-ps-60-circular-circuit - url: '/media/pub_sub_guide' - icon: '/images/icons/Misc/Cloud.svg' - services: - - title: AWS IoT, - url: https://aws.amazon.com/iot/ - - title: Generic MQTT, - url: https://docs.aws.amazon.com/iot/latest/developerguide/protocols.html#mqtt - - title: Custom Plugin - url: - - title: Push Notifications - excerpt: Push notifications with campaign analytics and targeting. - cta: Read more - class: aws-icon-ps-60-device-message - url: '/media/push_notifications_setup' - icon: '/images/icons/Misc/Cloud.svg' - services: - - title: Amazon Pinpoint - url: https://aws.amazon.com/pinpoint/ - - title: Storage - excerpt: A simple mechanism for managing user content in public, protected or private storage. - cta: Read more - class: aws-icon-ps-60-file-box - url: '/media/storage_guide' - icon: '/images/icons/Misc/Cloud.svg' - services: - - title: Amazon S3 - url: https://aws.amazon.com/s3/ - - title: XR - excerpt: Build AR/VR enabled web applications. - cta: Read more - class: aws-icon-ps-60-file-box - url: '/media/xr_guide' - icon: '/images/icons/Misc/Cloud.svg' - services: - - title: Amazon S3 - url: https://aws.amazon.com/s3/ - - category: Utilities - title: Utilities - excerpt: Common programming utilities that you can use with your app. - base_url: '/media/cache_guide' - subs: - - title: Service Worker - excerpt: A utility class to work with PWA and Service Worker APIs. - cta: Read more - url: '/media/service_workers_guide' - icon: '/images/icons/Misc/Gear.svg' - - title: Cache - excerpt: A generic LRU cache for storing data with priority and expiration settings. - cta: Read more - url: '/media/cache_guide' - icon: '/images/icons/Misc/Gear.svg' - - title: Hub - excerpt: A lightweight local event bus for your app. - cta: Read more - url: '/media/hub_guide' - icon: '/images/icons/Misc/Gear.svg' - - title: I18n - excerpt: A lightweight internationalization solution. - cta: Read more - url: '/media/i18n_guide' - icon: '/images/icons/Misc/Gear.svg' - - title: Logger - excerpt: Console logging utility. - cta: Read more - url: '/media/logger_guide' - icon: '/images/icons/Misc/Gear.svg' - -defaults: - - - scope: - path: "" # an empty string here means all files in the project - values: - layout: "default" - - -examples: - - title: Web apps - url: 'web-apps' - - title: React Native apps - url: 'react-native-apps' - - title: Hybrid Mobile - url: 'hybrid-mobile-apps' - - title: Static Websites - url: 'static-web-sites' - - title: Code Examples - url: 'examples' - -styleguide: - - title: Colors - url: '#colors' - - title: 'Typography' - url: '#typography' - #- title: 'Controls' - # url: '#controls--inputs' - #- title: 'Widgets' - # url: '#widgets' - - title: Components - url: '#aws-components' - -js_libraries: - - title: React - url: '?platform=react' - - title: React Native - url: '?platform=react-native' - - title: Angular - url: '?platform=angular' - - title: Ionic - url: '?platform=ionic' - - title: JavaScript - url: '?platform=purejs' diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html deleted file mode 100644 index 836be1d21b9..00000000000 --- a/docs/_layouts/default.html +++ /dev/null @@ -1,309 +0,0 @@ - - - - - - -{% seo %} - - - - - - - - - - - -
- -
- -
-

{{ site.title | default: site.github.repository_name }}

-

{{ site.description | default: site.github.project_tagline }}

-
- -
- -
- {{ content }} -
- -
- - -
-
- - - - - diff --git a/docs/_layouts/home.md b/docs/_layouts/home.md deleted file mode 100644 index c20ef2f20d3..00000000000 --- a/docs/_layouts/home.md +++ /dev/null @@ -1,70 +0,0 @@ ---- -layout: default ---- - -

- - Gitter Chat - - - npm version - - - npm downloads - - - build:started - - - - -

- - AWS Amplify is a JavaScript library for frontend and mobile developers building cloud-enabled applications. The library is a declarative interface across different categories of operations in order to make common tasks easier to add into your application. The default implementation works with Amazon Web Services (AWS) resources but is designed to be open and pluggable for usage with other cloud services that wish to provide an implementation or custom backends. - - - - ## Installation - - ### Web Development - AWS Amplify is available as the `aws-amplify` package on [npm](https://www.npmjs.com/) - - ``` - npm install aws-amplify --save - ``` - - If you are developing a [React](https://github.com/facebook/react/) app, you can install an additional package `aws-amplify-react` containing [Higher Order Components](https://reactjs.org/docs/higher-order-components.html): - - ``` - npm install aws-amplify-react --save - ``` - - ### React Native Development - - For React Native development, install `aws-amplify` - ``` - npm install aws-amplify --save - ``` - If you are developing a [React Native](https://github.com/facebook/react-native) app, you can install an additional package `aws-amplify-react-native` containing [Higher Order Components](https://reactjs.org/docs/higher-order-components.html): - ``` - npm install aws-amplify-react-native --save - ``` - - Unless you're react-native app was created using [Expo v25.0.0 or greater](https://blog.expo.io/expo-sdk-v25-0-0-is-now-available-714d10a8c3f7), you will need to [link](https://facebook.github.io/react-native/docs/linking-libraries-ios.html) libraries in your project for the Auth module on React Native. - - To link `amazon-cognito-identity-js`, you must first `eject` the project: - - ```bash - npm run eject - react-native link amazon-cognito-identity-js - ``` - - Now run your application as normal: - - ```bash - react-native run-ios - ``` - - ## Contributing - - See [Contributing Guidelines](https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md) \ No newline at end of file diff --git a/docs/amplify-theme/_includes/comments.html b/docs/amplify-theme/_includes/comments.html deleted file mode 100755 index 114e31ead66..00000000000 --- a/docs/amplify-theme/_includes/comments.html +++ /dev/null @@ -1,41 +0,0 @@ -
- - - - - - \ No newline at end of file diff --git a/docs/amplify-theme/_includes/docs-header.html b/docs/amplify-theme/_includes/docs-header.html deleted file mode 100644 index 5c3e9ea4248..00000000000 --- a/docs/amplify-theme/_includes/docs-header.html +++ /dev/null @@ -1,195 +0,0 @@ -{% if site.amplify.header.logo.text or site.amplify.header.logo.image or site.amplify.header.nav %} -
-
- -

Announcing the AWS Amplify CLI toolchain. Click here to read more.

-
-
- -
-
-{% endif %} - -{% if site.amplify.header.nav %} -
- -
-{% endif %} - -{% if site.amplify.header.logo.text or site.amplify.header.logo.image or site.amplify.header.nav %} - -{% endif %} - - - -{% if jekyll.environment == 'production' %} - -{% else %} - -{% endif %} - - - -{% if jekyll.environment == 'production' %} - -{% else %} - -{% endif %} \ No newline at end of file diff --git a/docs/amplify-theme/_includes/google-analytics.html b/docs/amplify-theme/_includes/google-analytics.html deleted file mode 100755 index 0528e7cbd9b..00000000000 --- a/docs/amplify-theme/_includes/google-analytics.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - diff --git a/docs/amplify-theme/_includes/micro-nav.html b/docs/amplify-theme/_includes/micro-nav.html deleted file mode 100755 index fffabac1661..00000000000 --- a/docs/amplify-theme/_includes/micro-nav.html +++ /dev/null @@ -1,14 +0,0 @@ - - -
- -
diff --git a/docs/amplify-theme/_includes/site-footer.html b/docs/amplify-theme/_includes/site-footer.html deleted file mode 100755 index 7c881d0750f..00000000000 --- a/docs/amplify-theme/_includes/site-footer.html +++ /dev/null @@ -1,82 +0,0 @@ -{% if site.amplify.footer.content.logo.image or site.amplify.footer.content.logo.text or site.amplify.footer.content.copyright or site.amplify.footer.social_list %} - -{% endif %} - - - - - - - - -{% include google-analytics.html %} - - - - - - \ No newline at end of file diff --git a/docs/amplify-theme/_includes/site-head.html b/docs/amplify-theme/_includes/site-head.html deleted file mode 100755 index 243481d5ea3..00000000000 --- a/docs/amplify-theme/_includes/site-head.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - -{{ page.title }} -{% if page.description %} - -{% endif %} -{% if page.keywords %} - -{% endif %} - - - - - diff --git a/docs/amplify-theme/_includes/site-header.html b/docs/amplify-theme/_includes/site-header.html deleted file mode 100755 index a2e8b3cfda2..00000000000 --- a/docs/amplify-theme/_includes/site-header.html +++ /dev/null @@ -1,155 +0,0 @@ -{% if site.amplify.header.logo.text or site.amplify.header.logo.image or site.amplify.header.nav %} -
-
- -

Announcing the AWS Amplify CLI toolchain. Click here to read more.

-
-
- -
-
-{% endif %} - -{% if site.amplify.header.nav %} -
- -
-{% endif %} - -{% if site.amplify.header.logo.text or site.amplify.header.logo.image or site.amplify.header.nav %} - -{% endif %} - -{% if jekyll.environment == 'production' %} - -{% else %} - -{% endif %} diff --git a/docs/amplify-theme/_layouts/blog-detail.html b/docs/amplify-theme/_layouts/blog-detail.html deleted file mode 100755 index 93e8b98b857..00000000000 --- a/docs/amplify-theme/_layouts/blog-detail.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - {% include site-head.html %} - - - {% include site-header.html %} - -
-
- - -
-
-
- {{ content }} -
-
-
-
-
- - - - - - - - - - - - - - diff --git a/docs/amplify-theme/_layouts/blog-home.html b/docs/amplify-theme/_layouts/blog-home.html deleted file mode 100755 index d25605957c0..00000000000 --- a/docs/amplify-theme/_layouts/blog-home.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - {% include site-head.html %} - - - {% include site-header.html %} - -
-
- -
-
-
- {{ content }} -
-
-
-
- -
-
-
-
-
-
- - - - - - diff --git a/docs/amplify-theme/_layouts/blog.html b/docs/amplify-theme/_layouts/blog.html deleted file mode 100755 index 66bacf5e01d..00000000000 --- a/docs/amplify-theme/_layouts/blog.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - {% include site-head.html %} - - - {% include site-header.html %} - -
-
- - - {% if site.category_list %} - {% for category in site.category_list %} - {% for item in category.subs %} - {% assign url = page.url | append: "index.html" %} - {% if url == item.url %} - {% assign isPageInCategories = true %} - {% endif %} - {% endfor %} - {% endfor %} - {% endif %} - -
-
-
- {{ content }} -
-
-
-
- -
-
-
-
-
-
- - - - - - - - - - - - - - diff --git a/docs/amplify-theme/_layouts/categories.html b/docs/amplify-theme/_layouts/categories.html deleted file mode 100755 index d6a51cc0b27..00000000000 --- a/docs/amplify-theme/_layouts/categories.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - {% include site-head.html %} - - - {% include docs-header.html %} - -
-
- - - {% if site.category_list %} - {% for category in site.category_list %} - {% for item in category.subs %} - {% if page.url contains item.url %} - {% assign isPageInCategories = true %} - {% endif %} - {% endfor %} - {% endfor %} - {% endif %} - -
-
- {% if page.url contains 'tutorials' %} -
-
-
-
-
-
-
-
-
-
-
- {% else %} - -
-

View Section

-
- -
-
-
-
-
- {% if site.category_list %} - {% for category in site.category_list %} -
- -
- {% for item in category.subs %} - {% if page.url contains item.url %} -
- {% else %} - {{ item.title }} - {% endif %} - {% endfor %} -
-
- {% endfor %} - {% endif %} -
-
-
- {% endif %} -
-
- {% if page.url contains 'quick_start' %} -
- Select your framework -
-
- - -
- {% endif %} -
- {{ content }} -
-
-
-
-
- - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/amplify-theme/_layouts/default.html b/docs/amplify-theme/_layouts/default.html deleted file mode 100755 index 756c4d90a40..00000000000 --- a/docs/amplify-theme/_layouts/default.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - {% include site-head.html %} - - - {% include docs-header.html %} - -
-
- - - {% if site.category_list %} - {% for category in site.category_list %} - {% for item in category.subs %} - {% if page.url contains item.url %} - {% assign isPageInCategories = true %} - {% endif %} - {% endfor %} - {% endfor %} - {% endif %} - -
-
- {% if page.url contains 'tutorials' %} -
-
-
-
-
-
-
-
-
-
-
- {% else %} - -
-

View Section

-
- -
-
-
-
-
- {% if site.category_list %} - {% for category in site.category_list %} -
- {% if category.title != 'Setup & Installation' %} - - {% endif %} -
- {% for item in category.subs %} - {% if page.url contains item.url %} -
- {% else %} - {{ item.title }} - - {% endif %} - {% endfor %} -
-
- {% endfor %} - {% endif %} -
-
-
- {% endif %} -
-
- {% if page.url contains 'quick_start' %} -
- Select your framework -
- - - {% endif %} -
- {{ content }} -
-
-
-
-
- - - - - - - - - - - - - diff --git a/docs/amplify-theme/_layouts/error-404.html b/docs/amplify-theme/_layouts/error-404.html deleted file mode 100755 index f090966c057..00000000000 --- a/docs/amplify-theme/_layouts/error-404.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - -

Redirecting to https://aws-amplify.github.io/amplify-js/media/quick_start

- - - - - - {% include site-head.html %} - - -
-
-

{{ page.page_content.title }}

- {% if page.page_content.message %} -

{{ page.page_content.message }}

- {% endif %} - - -

Go back home

-
-
-
- - diff --git a/docs/amplify-theme/_layouts/examples.html b/docs/amplify-theme/_layouts/examples.html deleted file mode 100644 index 899e5f90639..00000000000 --- a/docs/amplify-theme/_layouts/examples.html +++ /dev/null @@ -1,116 +0,0 @@ -{% if jekyll.environment == 'production' %} - - - - - -

Redirecting to https://aws-amplify.github.io/amplify-js/media/quick_start

- - -{% else %} - - - - {% include site-head.html %} - - - {% include docs-header.html %} - -
-
- - - {% if site.category_list %} - {% for category in site.category_list %} - {% for item in category.subs %} - {% if page.url contains item.url %} - {% assign isPageInCategories = true %} - {% endif %} - {% endfor %} - {% endfor %} - {% endif %} - -
-
-
-

Version

-
- -
-
-
-
-
- {% if site.examples %} -
-

Examples

-
- {% for item in site.examples %} - {% if page.url contains item.url %} -
- {% else %} - {{ item.title }} - {% endif %} - {% endfor %} -
-
- {% endif %} -
-
-
-
-
-
- {{ content }} -
-
-
-
-
- - - - - - - - - - - - -{% endif %} \ No newline at end of file diff --git a/docs/amplify-theme/_layouts/get_started.html b/docs/amplify-theme/_layouts/get_started.html deleted file mode 100644 index 84fb6941c47..00000000000 --- a/docs/amplify-theme/_layouts/get_started.html +++ /dev/null @@ -1,190 +0,0 @@ -{% if jekyll.environment == 'production' %} - - - - - -

Redirecting to https://aws-amplify.github.io/amplify-js/media/quick_start

- - -{% else %} - - - - {% include site-head.html %} - - - {% include site-header.html %} - - {% if page.marketing_grid%} -
- - {% endif %} -
-
-
-
-
-
- Sign up for an AWS Account -
-
- There are no upfront charges or any term commitments to create an AWS account and signing up gives you immediate access to the AWS Free Tier -
-
- - -
1
-
-
-
-
- -
-
-
-
-
-
- Install the CLI -
-
- The Amplify Command Line Interface (CLI) is a unified toolchain to create, integrate, and manage the AWS cloud services for your app. Install Node.js® and npm if they are not already on your machine. -
-
-

Note: Verify that you are running at least Node.js version 8.x or greater and npm version 5.x or greater by running node -v and npm -v in a terminal/console window. Older versions produce errors, but newer versions are fine.

-

Now, install and configure the Amplify CLI globally.

-
-
-
-$ npm install -g @aws-amplify/cli
-$ amplify configure
-                                    
-
-
-
2
-
-
-
-
- - -
- - {% include site-footer.html %} - - -{% endif %} \ No newline at end of file diff --git a/docs/amplify-theme/_layouts/homepage.html b/docs/amplify-theme/_layouts/homepage.html deleted file mode 100755 index 68bfe56347c..00000000000 --- a/docs/amplify-theme/_layouts/homepage.html +++ /dev/null @@ -1,348 +0,0 @@ -{% if jekyll.environment == 'production' %} - - - - - -

Redirecting to https://aws-amplify.github.io/amplify-js/media/quick_start

- - -{% else %} - - - - {% include site-head.html %} - - - {% include site-header.html %} -
-
-
-
-
-
- {% if page.title %} -

{{ page.title }}

- {% endif %} - {% if page.description %} -

{{ page.description }}

- {% endif %} -
- {% for button in page.buttons %} - {% if button.external_url == true %} - - {% if button.icon %}{% endif %} - {{ button.content }} - - {% else %} - - {% if button.icon %}{% endif %} - {{ button.content }} - - {% endif %} - {% endfor %} -
- - - - -
- -
-
-
-
- {% if page.author.title and page.author.description and page.author.title_url %} - - {% endif %} -
-
-
- - - {% if page.marketing_message%} -
-
-
-
- {{ page.marketing_message }} -
-
-
-
- {% endif %} - - {% if page.marketing_grid%} -
-
-
-
- Amplify your apps. Build on flexible, scalable, and reliable serverless infrastructure. -
- -
- -
-
-
- {% for item in page.marketing_grid %} -
-
- -
-

{{ item.title }}

-

{{ item.excerpt }}

- - - - -
-
-
- {% endfor %} -
-
-
- -
-
- {% endif %} - - {% if page.marketing_grid%} -
-
-
- A comprehensive library for building sophisticated cloud-powered apps -
- - - -
-
-

Cloud Features

- - -
-
-

Utilities

- -
-
-
- iOS & Android are supported with our Native SDKs. - - - - -
-
-
- {% endif %} - -
-
-
-
- Powerful toolchain built for developers. -
-
-
-
-

The Amplify Command Line Interface (CLI) is a unified toolchain to create and manage your serverless infrastructure on AWS.

- - - - -
-
- - - -
-
- - {% if page.marketing_grid%} -
-
-
- A beautiful component library connected to the cloud. -
-
- Launch your apps with our minimally-styled UI components or change them to match your app style. - - - - -
- -
- - -
-
-
- {% endif %} - - - - - - {% include site-footer.html %} - - -{% endif %} \ No newline at end of file diff --git a/docs/amplify-theme/_layouts/toolchain.html b/docs/amplify-theme/_layouts/toolchain.html deleted file mode 100644 index 7dac3b76653..00000000000 --- a/docs/amplify-theme/_layouts/toolchain.html +++ /dev/null @@ -1,108 +0,0 @@ -{% if jekyll.environment == 'production' %} - - - - - -

Redirecting to https://aws-amplify.github.io/media/toolchain

- - -{% else %} - - - - {% include site-head.html %} - - - {% include site-header.html %} -
-
-
-
-
-
-

A comprehensive & powerful serverless toolchain

- -
-
-
-
-
-
- - -
-
-
- Effortlessly Build, Test, and Deploy -
-
-

The Amplify Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

-
-
-
-
-$ npm install -g @aws-amplify/cli
-$ amplify configure
-$ cd <app>
-$ amplify init
-$ amplify add <category>
-$ amplify push
-						
-
-
- -
-
- -
-
-
- Easy to Use Hosting for Static Assets and Websites -
-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

-
-
-
-
-$ amplify add hosting
-$ amplify publish
-						
-
-
-
-
- -
-
-
- Cloud Automation and Code Generation -
-
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

-
-
-
-
-$ amplify codegen add
-$ amplify codegen generate
-						
-
-
-
-
- {% include site-footer.html %} - - -{% endif %} \ No newline at end of file diff --git a/docs/amplify-theme/_layouts/tutorials.html b/docs/amplify-theme/_layouts/tutorials.html deleted file mode 100755 index 866b25e488e..00000000000 --- a/docs/amplify-theme/_layouts/tutorials.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - {% include site-head.html %} - - - {% include site-header.html %} - -
- {% if page.marketing_grid%} - - {% endif %} - - {% if page.tutorial_list %} -
-
-
- -
- -
-
- {% endif %} -
- - {% include site-footer.html %} - - diff --git a/docs/amplify-theme/_layouts/ui_library.html b/docs/amplify-theme/_layouts/ui_library.html deleted file mode 100644 index 264d09b056c..00000000000 --- a/docs/amplify-theme/_layouts/ui_library.html +++ /dev/null @@ -1,126 +0,0 @@ -{% if jekyll.environment == 'production' %} - - - - - -

Redirecting to https://aws-amplify.github.io/media/ui_library

- - -{% else %} - - - - {% include site-head.html %} - - - {% include site-header.html %} - -
-
-
-
-
-
-

A beautiful component library connected to the cloud

- -
-
-
-
-
-
- -
-
- - - {% if site.category_list %} - {% for category in site.category_list %} - {% for item in category.subs %} - {% if page.url contains item.url %} - {% assign isPageInCategories = true %} - {% endif %} - {% endfor %} - {% endfor %} - {% endif %} - -
-
-
- {{ content }} -
-
-
-
-
-
- {% if site.styleguide %} - - {% endif %} -
-
-
-
-
-
-
- - - - - - - - - - - - -{% endif %} \ No newline at end of file diff --git a/docs/amplify-theme/_sass/_variables.scss b/docs/amplify-theme/_sass/_variables.scss deleted file mode 100755 index c4b6a0d8ca9..00000000000 --- a/docs/amplify-theme/_sass/_variables.scss +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Variables (_variables.scss) - */ - -/* ----- Colors ----- */ -// General -$color-white: #fff !default; -$color-black: #000 !default; -$color-dark: #333 !default; -$color-dark-blue: #253951 !default; -$color-yellow: #f6d000 !default; - -// Base -$color-h2-border: #dadada !default; -$color-horizontal-rule: #dadada !default; -$color-list-prefix:#000 !default; -$color-definition-list: #8a8a8a !default; -$color-table-border: #f5f5f5 !default; -$color-table-header-border: #ececec !default; -$color-table-header-bg: #f5f5f5 !default; - -// Code -$color-code: #c0341d !default; -$color-code-bg: #fcefed !default; -$color-pre: #f8f8f2 !default; -$color-pre-border: #3c4654 !default; - -// Section -$color-section-grey: #f5f5f5 !default; - -// Callouts -$color-callout: #f9f9f9 !default; -$color-callout-success: #eaffee !default; -$color-callout-info: #f2f8ff !default; -$color-callout-warning: #fffae9 !default; -$color-callout-danger: #ffedeb !default; - -// Footer -$color-footer-bg: white !default; -$color-footer-copyright: #bdbdbd !default; - -// Social list -$color-social-item: #bdbdbd !default; - -// Themes -$color-theme-green: #F0FAE6 !default; -$color-theme-blue: #E8F2FC !default; -$color-theme-purple: #FDE8F8 !default; -$color-theme-red: #FFECE6 !default; -$color-theme-yellow: #FCFDE8 !default; - -/* ----- Font families ----- */ -$font-family-primary: 'Amazon Ember,Arial,sans-serif', sans-serif !default; -$font-family-secondary: 'Amazon Ember,Arial,sans-serif', sans-serif !default; -$font-family-monospace: 'Source Code Pro', monospace !default; - -/* ----- Font sizes ----- */ -// Base -$font-size-base: 1em !default; - -// Headings -$font-size-h1: 2.5em !default; -$font-size-h2: 2em !default; -$font-size-h3: 1.75em !default; -$font-size-h4: 1.5em !default; -$font-size-h5: 1.25em !default; -$font-size-h6: 1em !default; - -// Other -$font-size-small: 0.75em !default; - -/* ----- Line heights ----- */ -// Base -$line-height-base: 1.8em !default; - -// Headings -$line-height-headings: 1.5em !default; - -/* ----- Z Indexes ----- */ -$z-index-offcanvas: 2 !default; -$z-index-offcanvas-toggle: 3 !default; - -/* ----- Media queries breakpoints ----- */ -// Mobile first -$screen-xs-min: 480px !default; // Extra small screens, Phones -$screen-sm-min: 828px !default; // Small screens, Tablets -$screen-md-min: 992px !default; // Medium screens, Desktop -$screen-lg-min: 1430px !default; // Large screens, Wide desktops - -// Desktop first -$screen-xs-max: ($screen-sm-min - 1) !default; -$screen-sm-max: ($screen-md-min - 1) !default; -$screen-md-max: ($screen-lg-min - 1) !default; - -/* ----- Grid system ----- */ -// Columns -$grid-columns: 12 !default; - -// Gutter -$grid-gutter-width: 30px !default; - -// Container -$container-tablet: (90%) !default; -$container-sm: $container-tablet !default; -$container-desktop: (90%) !default; -$container-md: $container-desktop !default; -$container-large-desktop: (1400px + $grid-gutter-width) !default; -$container-lg: $container-large-desktop !default; diff --git a/docs/amplify-theme/_sass/components/_callout.scss b/docs/amplify-theme/_sass/components/_callout.scss deleted file mode 100755 index 8829cea1949..00000000000 --- a/docs/amplify-theme/_sass/components/_callout.scss +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Callout (components/_callout.scss) - */ - -/* ----- General ----- */ -.callout { - border: 1px solid darken($color-callout, 4%); - border-radius: 5px; - background-color: $color-callout; - padding: .9375rem 1.25rem .625rem 1.25rem; - margin: 0 0 1.25rem 0; - - @media (min-width: $screen-sm-min) { - padding: 1.25rem 1.875rem .9375rem 1.875rem; - } - - p { - font-size: .9375em; - line-height: 1.8em; - margin-bottom: .625rem; - } - - strong { - display: block; - color: $color-dark; - font-family: $font-family-secondary; - font-size: 1.133em; - font-weight: 500; - margin-bottom: .625rem; - } - - -} - -/* ----- Variations ----- */ -.callout { - &--success { - background-color: $color-callout-success; - border-color: darken($color-callout-success, 6%); - - strong { - color: darken($color-callout-success, 82%); - } - } - - &--info { - background-color: $color-callout-info; - border-color: darken($color-callout-info, 4%); - - strong { - color: darken($color-callout-info, 82%); - } - - a { - border-bottom-color:#9999ff; - } - } - - &--warning { - background-color: $color-callout-warning; - border-color: darken($color-callout-warning, 10%); - - strong { - color: darken($color-callout-warning, 70%); - } - - a { - border-bottom-color: red; - } - } - - &--danger { - background-color: $color-callout-danger; - border-color: darken($color-callout-danger, 4%); - - strong { - color: darken($color-callout-danger, 70%); - } - } - - &--action { - border:none; - border-left-style: solid; - border-left-width: 2px; - border-left-color:orange; - border-radius: 0px; - strong { - color: darken($color-callout-danger, 70%); - } - a { - text-decoration: underline; - } - } - -} - - - -/* ----- General ----- */ -.label { - background-color: $color-callout; - padding: .3rem .5rem .3rem .5rem; - text-decoration: none; - font-size: .75rem; - font-style: normal; - border-width: 1px; - border-color:black; - border-style: solid; - border-radius: 4px; - font-weight: bold; -} - -/* ----- Variations ----- */ -.label { - &--success { - background-color: $color-callout-success; - border-color: darken($color-callout-success, 6%); - - strong { - color: darken($color-callout-success, 82%); - } - } - - &--info { - background-color: $color-callout-info; - border-color: darken($color-callout-info, 4%); - - strong { - color: darken($color-callout-info, 82%); - } - } - - &--warning { - background-color: $color-callout-warning; - border-color: darken($color-callout-warning, 10%); - - strong { - color: darken($color-callout-warning, 70%); - } - - a { - border-bottom-color: red; - } - } - - &--danger { - background-color: $color-callout-danger; - border-color: darken($color-callout-danger, 4%); - - strong { - color: darken($color-callout-danger, 70%); - } - } -} diff --git a/docs/amplify-theme/_sass/components/_example.scss b/docs/amplify-theme/_sass/components/_example.scss deleted file mode 100755 index 8e9326deac6..00000000000 --- a/docs/amplify-theme/_sass/components/_example.scss +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Example (components/_example.scss) - */ - -/* ----- General ----- */ -.example { - overflow: hidden; - color: $color-white; - background-color: $color-pre-border; - padding: .625rem .625rem .625rem 1.4375rem; - - &::before { - content: 'Example'; - display: inline-block; - margin-top: .25rem; - margin-bottom: .25rem; - text-transform: uppercase; - } - - a { - @include link-reset; - display: block; - float: right; - color: $color-dark-blue; - font-size: .875em; - background-color: $color-white; - border-radius: 1.25rem; - padding: .25rem 1.25rem .3125rem 1.25rem; - transition: background-color .2s; - - &:hover, - &:focus, - &:active { - background-color: $color-yellow; - } - - &::after { - @extend .icon; - content: '\e922'; - display: inline-block; - position: relative; - top: .125rem; - margin-left: .5rem; - } - } -} diff --git a/docs/amplify-theme/_sass/components/_hero-subheader.scss b/docs/amplify-theme/_sass/components/_hero-subheader.scss deleted file mode 100755 index 963dd9319ea..00000000000 --- a/docs/amplify-theme/_sass/components/_hero-subheader.scss +++ /dev/null @@ -1,84 +0,0 @@ -/** - * Hero subheader (components/_hero-subheader.scss) - */ - -/* ----- General ----- */ -.hero-subheader { - color: $color-dark-blue; - //background-image: url("{% if jekyll.environment == 'production' %}{{ site.amplify.baseurl }}{% endif %}/images/layout/background.jpg"); - padding: 3.75rem 0 (4.6875rem - 1.25rem) 0; - background-position: center; - background-size: cover; - background-repeat: no-repeat; - background-position: center center; - - @media (min-width: $screen-sm-min) { - padding: 9.375rem 0 (10.3125rem - 1.25rem) 0; - } - - .btn { - margin-right: .9375rem; - } - - .btn--github, - .btn--w-arrow-down { - @extend .btn--dark; - } - - .site-header + & { - padding: 9.375rem 0 (4.6875rem - 1.25rem) 0; - - @media (min-width: $screen-sm-min) { - padding: 15rem 0 (10.3125rem - 1.25rem) 0; - } - } -} - -.hero-subheader--before-out { - @media (min-width: $screen-sm-min) { - padding: 9.375rem 0 (15.3125rem - 1.25rem) 0; - } -} - -/* ----- Title ----- */ -.hero-subheader__title { - margin-top: 0; - color:white; -} - -/* ----- Title ----- */ -.hero-subheader__desc { - margin-bottom: 1.875rem; - font-size: 1.3rem; - color:white; -} - -/* ----- Author ----- */ -.hero-subheader__author { - border-left: 2px solid; - padding-left: 2.5rem; - - .btn { - margin-bottom: 0; - } -} - -.hero-subheader__author-title { - font-size: $font-size-h5; -} - -/* ----- More ----- */ -.hero-subheader__btn-more { - color: inherit; -} - - -.photo-credit { - font-size: 10px; - bottom: -340px; - left: 90%; - color: lightgray; - margin-top: -30px; - text-align: right; - padding-right: 30px; -} \ No newline at end of file diff --git a/docs/amplify-theme/_sass/components/_micro-nav.scss b/docs/amplify-theme/_sass/components/_micro-nav.scss deleted file mode 100755 index 1f804f08daf..00000000000 --- a/docs/amplify-theme/_sass/components/_micro-nav.scss +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Micro nav (components/_micro-nav.scss) - */ - -/* ----- General ----- */ -.micro-nav { - color: $color-white; - background-color: $color-dark-blue; - padding: .9375rem 0; - text-align: center; - - @media (min-width: $screen-sm-min) { - text-align: left; - } -} - -/* ----- Back ----- */ -.micro-nav__back { - @include link-reset; - display: inline-block; - font-weight: 500; - font-family: $font-family-secondary; - text-transform: uppercase; - - &:hover, - &:focus, - &:active { - .icon { - @include translate(-.3125rem, 0); - } - } - - .icon { - display: inline-block; - margin-right: .5rem; - position: relative; - bottom: -.125rem; - transition: transform .2s; - } -} diff --git a/docs/amplify-theme/_sass/components/_nav-grid.scss b/docs/amplify-theme/_sass/components/_nav-grid.scss deleted file mode 100755 index a523ef0168f..00000000000 --- a/docs/amplify-theme/_sass/components/_nav-grid.scss +++ /dev/null @@ -1,121 +0,0 @@ -/** - * Nav grid (components/_nav-grid.scss) - */ - -/* ----- General ----- */ -.nav-grid { - font-size: .9375em; - line-height: 1.8em; - color: $color-dark-blue; -} - -.nav-grid--out { - @media (min-width: $screen-sm-min) { - //margin-top: -11.25rem; - } -} - -/* ----- Item ----- */ -.nav-grid__item { - @include link-reset; - display: block; - background-color: white; - border: 1px solid rgba($color-dark-blue, .2); - border-radius: 3px; - margin-bottom: .9375rem; - transition: background-color .2s, border .2s; - - @media (min-width: $screen-sm-min) { - margin-bottom: 1.875rem; - } - - &:hover, - &:active, - &:focus { - border-color: orange; - - .nav-grid__btn { - border-color: orange; - .icon { - @include translate(.625rem, 0); - } - } - } -} - -/* ----- Content ----- */ -.nav-grid__content { - @include clearfix(); - padding: 1.25rem 1.875rem .625rem 1.875rem; - - @media (min-width: $screen-md-min) { - padding: 1.875rem 2.5rem 1.25rem 2.5rem; - .nav-services { - - } - } - - p { - margin-bottom: .625rem; - } - - .nav-services { - font-size: small; - bottom:10px; - small { - margin-bottom:-5px; - } - i { - &:hover { - text-decoration: underline; - } - } - } - .tutorial-image { - img { - float:left; - margin-top: -7px; - margin-right: 7px; - } - } -} - -/* ----- Title ----- */ -.nav-grid__title { - display: block; - font-size: $font-size-h3; - font-weight: 500; - padding: 0; - margin-top: 0; - border: 0; - line-height: 1.3em; -} - -.nav-grid-tutorials { - .nav-grid__title { - font-size: 1.4em; - } -} - -/* ----- Read more ----- */ -.nav-grid__btn { - font-family: $font-family-secondary; - font-weight: 500; - text-transform: uppercase; - border-top: 1px solid rgba($color-dark-blue, .2); - padding: 1.25rem 1.875rem 0 1.875rem; - transition: border .2s; - - @media (min-width: $screen-md-min) { - padding: 1.25rem 2.5rem 0 2.5rem; - } - - .icon { - display: inline-block; - font-size: 1.25em; - margin-left: .5rem; - position: relative; - bottom: -.125rem; - transition: transform .2s; - } -} diff --git a/docs/amplify-theme/_sass/components/_page-nav.scss b/docs/amplify-theme/_sass/components/_page-nav.scss deleted file mode 100755 index 7a20875322a..00000000000 --- a/docs/amplify-theme/_sass/components/_page-nav.scss +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Page nav (components/_page-nav.scss) - */ - -/* ----- General ----- */ -.page-nav { - color: $color-dark-blue; - background-color: $color-theme-blue; - padding: 1.25rem 0; - - @media (min-width: $screen-sm-min) { - padding: 2.1875rem 0 2.5rem 0; - } -} - -/* ----- Item ----- */ -.page-nav__item { - @include link-reset; - display: block; - text-align: center; - font-weight: 500; - font-family: $font-family-secondary; - - @media (min-width: $screen-sm-min) { - font-size: $font-size-h3; - } - - & + & { - border-top: 1px solid rgba($color-dark, .15); - padding-top: 1.25rem; - margin-top: 1.25rem; - - @media (min-width: $screen-sm-min) { - border-top: 0; - padding-top: 0; - margin-top: 0; - } - } - - .icon { - display: inline-block; - position: relative; - bottom: -.0625rem; - transition: transform .2s; - } -} - -.page-nav__item--prev { - @media (min-width: $screen-sm-min) { - float: left; - } - - &:hover, - &:focus, - &:active { - .icon { - @include translate(-.625rem, 0); - } - } - - .icon { - margin-right: .625rem; - } -} - -.page-nav__item--next { - @media (min-width: $screen-sm-min) { - float: right; - } - - &:hover, - &:focus, - &:active { - .icon { - @include translate(.625rem, 0); - } - } - - .icon { - margin-left: .625rem; - } -} diff --git a/docs/amplify-theme/_sass/components/_redesign.scss b/docs/amplify-theme/_sass/components/_redesign.scss deleted file mode 100644 index 8be6b0a47cc..00000000000 --- a/docs/amplify-theme/_sass/components/_redesign.scss +++ /dev/null @@ -1,3117 +0,0 @@ -/** - * Site header (components/_site-header.scss) - */ - -/* ----- General ----- */ -.orange-text { - color: #FF9900 !important; -} - -.white-text { - color: white !important; -} - -.inline { - display: inline !important; -} - -.inline-block { - display: inline-block !important; -} - -.block { - display: block !important; -} - -.content-filter { - float:none; - .filter-item { - float:left; - margin-right: 10px; - } - .btn { - height: 30px !important; - font-weight: normal; - } - .row { - margin-bottom:15px !important; - line-height: 38px; - } -} - -.site-header { - position: fixed; - //width: 1442px; - //height: 75px; - //border-bottom: 1px solid rgba($color-dark-blue, .15); - z-index: 1000; - background-color:white; - margin: auto; - width: 100%; - //left: 0; - //right: 0; - //border-bottom: 1px solid rgba(0,0,0,0.08); - box-shadow: 0px -2px 10px rgba(0,0,0,.3); - - @media (max-width: 828px) { - height: 60px; //75px - } - - .site-header-container { - margin-top: 17px; - margin-bottom: 9px; - width: 1180px; - max-width: 90%; - - @media (max-width: 828px) { - max-width: 95%; - margin-top: 11px; - margin-left: 0; - } - - #github-logo { - position: absolute; - display: none; - opacity: 0.5; - - @media (min-width: 1314px) { - right: calc(50vw - 640px); - bottom: 24px; - display: block; - } - } - - #github-logo-docs { - position: absolute; - display: none; - filter: brightness(0) invert(1); - - @media (min-width: 1314px) { - right: calc(50vw - 640px); - bottom: 24px; - display: block; - } - } - } -} - -.logo-container { - display: inline-block; - - @media (min-width: 828px) { - visibility: visible !important; - } - - @media (max-width: 828px) { - display: block; - width: 208px; - margin: auto; - } -} - -.homepage-header { - width: 1180px; - max-width: 90%; - padding: 0; -} - -/* ----- Navigation ----- */ -.site-header__logo { - @include link-reset; - //display: block; - //float: left; - height: 31px; - width: 93px; - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 26px; - line-height: 31px; - top: 0; - bottom: 0; - - &:hover, - &:focus, - &:active { - color: $color-dark-blue; - } - - img { - //height: 38px; - width: 50px; - //margin-left: 109px; - - @media (max-width: 828px) { - width: 46px; - margin-top: 1px; - } - } - - .header-amplify { - display: inline-block; - margin-top: 2px; - - @media (max-width: 828px) { - margin-top: 1px; - } - } - - .docs-header-amplify { - color: white; - font-weight: 100; - } -} - -.col-xs-12 { - margin-top: 1%; -} - -.dropbtn { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - font-weight: 500; - border: none; - cursor: pointer; -} - -.dropdown { - position: relative; - display: inline-block; -} - -.dropdown-content { - display: none; - position: absolute; - background-color: #f9f9f9; - min-width: 160px; - box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); - z-index: 1; -} - -.dropdown-content a { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - height: 32px; - font-weight: 500; - padding: 4px 10px; - text-decoration: none; - display: block; - border-bottom: none !important; - - p { - display: inline-block; - } -} - -.dropdown-content a:hover p { - border-bottom: 2px solid #FF9900; -} - -.dropdown-content a:hover {background-color: #f1f1f1} - -.dropdown:hover .dropdown-content { - display: block; -} - -.dropdown:active .dropdown-content { - display: block; -} - - -.dropbtn:hover { - border-bottom: 2px solid #FF9900; -} - - -/* ----- Navigation ----- */ -.site-header__nav { - @include list-horizontal; - @include clearfix; - float: right; - margin-bottom: 0; - margin-top: 8px; - background: transparent !important; - - @media (max-width: 882px){ - //margin-top: 20px !important; - } - - .dropbtn { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - font-weight: 500; - border: none; - cursor: pointer; - } - - .dropdown { - position: relative; - display: inline-block; - } - - .dropdown-content { - display: none; - position: absolute; - background-color: #f9f9f9; - min-width: 160px; - box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); - z-index: 1; - } - - .dropdown-content a { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - height: 32px; - font-weight: 500; - padding: 4px 10px; - text-decoration: none; - display: block; - border-bottom: none !important; - - p { - display: inline-block; - } - } - - .dropdown-content a:hover p { - border-bottom: 2px solid #FF9900; - } - - .dropdown-content a:hover {background-color: #f1f1f1} - - .dropdown:hover .dropdown-content { - display: block; - } - - .dropbtn:hover { - border-bottom: 2px solid #FF9900; - } - - select { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - font-weight: 500; - width: 50px; - background: transparent; - border-bottom: 2px solid; - border-color: transparent; - transition: border-color 0.2s; - border-radius: 0px; - -webkit-border-radius: 0px; - -moz-border-radius: 0px; - //-webkit-appearance: none; - - &:hover, - &:focus, - &:active { - border-bottom: 2px solid #FF9900; - transition: border-color 0.2s; - cursor: pointer; - } - } - - li { - + li { - margin-left: 2.5rem; - } - } - - a { - @include link-reset; - display: block; - //font-size: .875em; - font-weight: 500; - //font-family: $font-family-primary; - //line-height: calc(3.5rem - 1px); - //text-transform: uppercase; - border-bottom: 2px solid; - border-color: transparent; - transition: border-color .2s; - - height: 24px; - //width: 76px; - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - - - &:hover, - &:focus, - &:active { - border-color: #FF9900; - } - } - -} - -.site-search { - border-radius: 5px; - background-color: #E1E4EA; - box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.1); - height: 36px; - width: 180px; - margin-top: -7px; - - .search-image { - margin-left: 12px; - margin-top: 9px; - z-index: 2; - float: left; - } - - #search-input { - margin-top: 6px; - padding-left: 10px !important; - background-color: #E1E4EA; - border: none; - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - max-width: 150px; - - } - #search-input:focus { - outline: none; - } -} - -@media (max-width: 1084px) { - .site-header__nav { - //width: 100%; - background: white; - text-align: center; - //margin-top: -2px; - } -} - -button { - cursor: pointer; -} - -a { - border-bottom: none; -} - -/* ----- Offcanvas ----- */ -.offcanvas { - overflow: hidden; - width: 100%; - height: 100%; - text-align: center; - background-color: $color-white; - position: fixed; - top: 0; - bottom: 0; - opacity: 0; - visibility: hidden; - @include translate(0, -1.875rem); - transition: transform .2s, opacity .2s, visibility .2s; - z-index: $z-index-offcanvas; - - .offcanvas-expanded & { - opacity: 1; - visibility: visible; - @include translate(0, 0); - } -} - -/* ----- Offcanvas navigation ----- */ -.offcanvas__nav { - height: 100%; - overflow: scroll; - padding-top: 100px; - padding-bottom: 5rem; - -webkit-overflow-scrolling: touch; - - li { - padding: 0; - - &::before { - display: none; - } - - + li { - margin-top: 1.25rem; - } - } - - a { - @include link-reset; - color: $color-dark-blue; - font-family: $font-family-secondary; - text-transform: uppercase; - } -} - -/* ----- Offcanvas toggle ----- */ -.toggle-button-container-expanded { - top: 11px !important; - left: 6px !important; -} - -.toggle-button-container { - position: absolute; - top: 17px; - left: 10px; - - .docs-toggle { - span { - background-color: white !important; - } - } - - .offcanvas-toggle { - height: auto; - width: auto; - cursor: pointer; - @include translate3d(0, 0, 0); - z-index: $z-index-offcanvas-toggle; - //margin-top: -12px; - - span { - display: block; - height: 4px; - background-color: #FF9900; - //position: absolute; - left: 1.875rem; - transition: top .2s, transform .2s, opacity .2s; - margin-bottom: 6px; - - &:first-child { - width: 29px; - } - - &:nth-child(2) { - width: 24px; - } - - &:last-child { - width: 19px; - } - } - - .offcanvas-expanded & { - - span { - margin-bottom: -4px; - - &:first-child, - &:last-child { - top: 2.6875rem; - } - - &:first-child { - @include rotate(45); - width: 42px; - } - - &:last-child { - @include rotate(-45); - width: 42px; - } - - &:nth-child(2) { - opacity: 0; - } - } - } - } -} - -.algolia-autocomplete { - position: static !important; -} - -#search-input-xs { - position: absolute !important; - right: 10px; - top: 10px; - width: 40px; - height: 40px; - background-color: #FF9900; - border-radius: 100%; - //background-image: url("/images/icons/Medium/Search.svg"),url("/amplify-js/images/icons/Medium/Search.svg"); - background-repeat: no-repeat; - background-position: 33% 42%; - transition: all 0.2s !important; - border: none; -} - -.docs-search-xs { - background-color: #F4F4F4 !important; - background-position: 48% 48% !important; - color: #828282 !important; -} - -#search-input-xs:focus { - outline: none; -} - -.search-box-expanded { - right: 60px !important; - width: 80% !important; - border-radius: 5px !important; - transition: all 0.2s !important; - background-image: none !important; - padding: 3px 3px 3px 10px !important; - color: white; - font-size: 16px !important; -} - -#collapse-search { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - text-decoration: underline; - display: none; - border: none; - background: none; - float: right; - position: absolute; - top: 21px; - right: 7px; - - @media (min-width: 828px) { - display: none !important; - } -} - -/** - * Hero subheader (components/_hero-subheader.scss) - */ - -/* ----- General ----- */ -.section-padding { - padding-top: 68px; -} -.hero-subheader { - - @media (max-width: 828px) { - height: auto !important; - background: linear-gradient(30deg, #FF9900 55%, #FFC300) !important; - padding-bottom: 8px !important; - - #half-phone { - display: none !important; - } - - #half-laptop { - display: none !important; - } - - #half-chatbot { - display: none !important; - } - - .hero-subheader__title { - width: 100% !important; - font-size: 24px !important; //30 - text-align: center !important; - line-height: 30px !important; //36 - margin: auto; - height: auto !important; - } - - .btn { - display: block !important; - margin: auto !important; - margin-top: 35px !important; //50px - } - - .logos { - margin: 30px auto !important; - display: block !important; - width: 264px; - - img { - margin-left: 0 !important; - position: relative; - min-height: 1px; - padding-left: 14px; - padding-right: 14px; - } - } - } - - .toolchain-header { - @media (max-width: 828px) { - margin-bottom: 50px; - } - } - - .ui-header { - position: relative; - //top: 75px; - - @media (max-width: 828px) { - margin-bottom: 50px; - } - } - - color: $color-dark-blue; - //background-image: url("/images/layout/background.jpg"); - background: linear-gradient(to right, #FF9900 70%,#fccf30); - //padding: 3.75rem 0 (4.6875rem - 1.25rem) 0; - background-position: center; - background-size: cover; - background-repeat: no-repeat; - background-position: center center; - //width: 1440px; - height: 475px; - margin: auto; - overflow: hidden; - - @media (min-width: $screen-sm-min) { - padding-top: 130px; - } - - @media (max-width: 828px) { - padding-top: 110px !important; - } - - .btn { - margin-right: .9375rem; - height: 61px; - width: 275px; - color: #FF9900; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 14px; - font-weight: bold; - letter-spacing: 1.8px; - line-height: 18px; - text-align: center; - //margin-left: 110px; - text-transform: uppercase; - padding-top: 21px; - margin-top: 30px; - - border-radius: 4px; - background-color: #FFFFFF; - box-shadow: 1px 2px 4px 0 rgba(0,0,0,0.3); - - @media (max-width: 828px) { - height: 50px; - width: 230px; - padding-top: 17px; - } - } - - .btn:hover { - background-color: #ededed - } - - .btn:focus { - background-color: #d6d6d6; - } - - .btn--github, - .btn--w-arrow-down { - @extend .btn--dark; - } - .icon--arrow-right { - display: none; - } - - .site-header + & { - //padding: 9.375rem 0 (4.6875rem - 1.25rem) 0; - padding-top: 130px; - - @media (min-width: $screen-sm-min) { - //padding: 15rem 0 (10.3125rem - 1.25rem) 0; - padding-top: 130px; - } - - .container { - @media (min--width: 566px) { - width: 100%; - } - - } - } - - .logo-sm { - margin-left: 20px; - vertical-align: middle; - } - - .logos { - margin-left: 10px; - display: inline-block; - } - - #half-phone { - width: 618px; - display: inline-block; - margin-top: -195px; - margin-left: 620px; - } - - #half-laptop { - width: 478px; - display: inline-block; - margin-top: -260px; - margin-left: 620px; - } - - #half-chatbot { - position: relative; - left: 500px; - bottom: 200px; - } -} - -#marketing-section { - margin-top: 70px; -} - -.btn { - color: #FFFFFF; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 14px; - font-weight: bold; - letter-spacing: 1.8px; - line-height: 18px; - text-align: center; - background-color: #FF9900; - padding: 0 40px; - height: 60px; - text-transform: uppercase; -} - -.btn:hover { - background-color: #FFA41D; -} - -.btn:focus { - background-color: #E88B01; -} - -.btn--light { - color: $color-black; - background-color: white; - - &:hover, - &:focus, - &:active { - color: $color-white; - background-color: orange; - border-color: orange; - } - border-style: solid; - border-width: 1px; - border-color: lightgray; -} - -@media (max-width: 828px) { - #marketing-section { - margin-top: 20px !important; - } -} - -.section-top { - position: relative; - - @media (max-width: 828px) { - max-width: 95% !important; - margin-top: 10px !important; - - .container { - margin: auto !important; - padding-top: 36px !important; - } - - .header { - font-size: 30px !important; - line-height: 34px !important; - margin-bottom: 20px !important; - padding-top: 0 !important; - } - - .subheader { - font-size: 14px !important; - line-height: 20px !important; - margin-bottom: 25px !important; - width: 90% !important; - } - - .bottom-subheader { - width: 100% !important; - margin-top: 20px !important; - } - - .btn { - padding: 0 60px !important; - margin-bottom: 0 !important; - } - } - - .section-code-block { - max-width: 100%; - margin-bottom: 30px; - padding-bottom: 12px; - } - - padding: 0; - - .btn { - height: 50px; - } - - .container { - padding: 0; - //padding-top: 63px; - margin: auto; - max-width: 83%; - } - //height: 680px; - width: 1180px; - //min-width: 1180px; - max-width: 90%; - border-radius: 9px; - background-color: #FFFFFF; - box-shadow: 1px 1px 5px 0 rgba(0,0,0,0.15); - margin: auto; - margin-top: 34px; - - .header { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 42px; - font-weight: 300; - line-height: 53px; - //width: 940px; - //margin: 63px 100px 10px 100px; - margin-bottom: 30px; - padding: 0; - padding-top: 63px; - } - - #launch-header { - max-width: 600px; - } - - #launch-subheader { - max-width: 680px; - } - - .marketing-div { - // padding-right: 40px; - // padding-left: 0px; - - @media screen { - margin-bottom: 20px; - } - } - - .subheader { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - //width: 940px; - //margin: 20px 100px 10px 100px; - margin-bottom: 40px; - padding: 0; - - a { - color: #007EB9; - } - } - .bottom-subheader { - //margin-bottom: -100px; - margin-bottom: 0 !important; - } - - - #library-btn { - margin-bottom: 60px; - } - - #cli-code-block { - @media (max-width: 1130px) { - display: none !important; - } - width: 500px; - position: relative; - float: right; - bottom: 100px; - margin-bottom: -60px; - - pre { - //height: 144px; - padding: 14px; - } - - pre.highlight { - font-size: 12px !important; - line-height: 16px !important; - overflow: hidden; - } - } - - #homepage-code-block { - @media (max-width: 1150px) { - display: none !important; - } - width: 310px; - position: absolute; - top: 70px; - right: 100px; - - pre { - height: 144px; - padding: 14px; - } - - pre.highlight { - font-size: 12px !important; - line-height: 16px !important; - overflow: hidden; - } - } - - .grids-container { - width: 100%; - - .cloud-grid { - display: inline-block; - } - @media (max-width: 828px) { - .cloud-grid { - margin: auto; - margin-bottom: 30px; - width: 100%; - } - .grid-icon { - height: 19px; - width: 18px; - position: relative; - margin: 8px 8px; - float: right; - } - - .cloud-col { - width: 100%; - margin: auto; - } - - .cloud-grid-item { - //max-width: 330px; - width: 100%; - margin: auto; - margin-bottom: 8px; - height: auto; - - .cloud-grid-text { - width: 80%; - margin-bottom: 12px; - } - } - - padding: 0; - } - - .row { - margin: 0; - //display: inline-block; - } - - .launch-grid-title { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 18px; - line-height: 22px; - - @media (max-width: 828px) { - text-align: center; - } - } - - // .cloud-grid-left { - // float: left; - // } - - // .cloud-grid-right { - // float: right; - // } - - #right-cloud-col { - @media (min-width: 819px) { - float: right; - } - } - - .cloud-col { - display: inline-block; - margin-right: 20px; - - @media (max-width: 776px) { - display: block; - } - } - - .cloud-grid-item { - height: 100px; - width: 280px; - border: 1px solid #E1E1E1; - border-radius: 5px; - display: block; - margin-bottom: 12px; - position: relative; - - .platforms-container { - position: absolute; - top: 5px; - right: 5px; - - .platform-logo { - height: 15px; - } - } - } - - - .cloud-grid-item:hover { - border-color: #FF9900; - } -} - - /*.cloud-grid-item-left { - float: left; - } - - .cloud-grid-item-right { - float: right; - }*/ - - .cloud-grid__title { - color: #FF9900; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - font-weight: bold; - line-height: 20px; - border: none; - margin: 12px 0 0 18px; - padding: 0; - } - - .cloud-grid__excerpt { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 12px; - line-height: 15px; - margin-left: 18px; - margin-top: 3px; - } - - .utility-modules-grid { - //margin-right: 100px; - //margin-top: 50px; - padding: 0; - - @media (min-width: 1194px) { - float: right; - } - } - - .grid-icon { - height: 32px; - width: 30px; - margin: 14px 0 0 16px; - display: inline-block; - } - - .cloud-grid-text { - display: inline-block; - width: 210px; - height: 80px; - } - - #library-header { - max-width: 563px; - } - - #install-header { - max-width: 563px; - } - - .image-container { - #library-auth { - margin-top: 43px; - @media (max-width: 828px) { - margin-top: 40px; - } - } - - #library-chat { - @media (max-width: 828px) { - display: none; - } - - float: right; - //margin-right: 100px; - margin-top: -90px; - - @media (max-width: 1102px) { - margin-top: 20px; - } - } - } - - .install-container{ - //margin-left: 100px; - - - .install-box { - vertical-align: top; - height: 250px; - width: 218px; - border-radius: 5px; - display: inline-block; - //margin-right: 33px; - color: #FFFFFF; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - font-weight: bold; - letter-spacing: 1.06px; - line-height: 20px; - text-align: center; - margin-bottom: 44px; - margin-right: 31px; - - @media (max-width: 828px) { - height: 176px; - width: 140px; - margin-right: 10px; - margin-bottom: 18px; - line-height: 18px; - } - - @media (max-width: 372px) { - width: 80%; - margin-left: auto !important; - margin-right: auto !important; - display: block; - } - } - - .install-text { - max-width: 135px; - margin: auto; - margin-top: 24px; - - @media (max-width: 828px) { - margin-top: 8px; - } - } - - .install-button { - background-color: white; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 14px; - font-weight: bold; - letter-spacing: 1.8px; - line-height: 18px; - text-align: center; - height: 44px; - width: 192.26px; - border-radius: 4px; - box-shadow: 1px 2px 4px 0 rgba(0,0,0,0.3); - margin-top: 32px; - text-transform: uppercase; - - @media (max-width: 828px) { - width: 126px; - font-size: 13px; - line-height: 17px; - margin-top: 16px !important; - height: 34px; - letter-spacing: 0.93px; - } - } - - #js-box { - background-color: #FF9900; - } - #js-btn { - color: #FF9900; - } - #react-box { - background-color: #45C5E6; - - @media (max-width: 566px) { - margin-right: 0; - } - } - #react-btn { - color: #45C5E6; - margin-top: 26px; - } - #react-native-box { - background-color: #007BB2; - } - #react-native-btn { - color: #007BB2; - margin-top: 26px; - } - #angular-box { - background-color: #C3002F; - margin-right: 0; - } - #angular-btn { - color: #C3002F; - margin-top: 30px; - } - - .logo-lg { - margin-top: 21px; - - @media (max-width: 828px) { - margin-top: 15px; - height: 48px; - } - } - } - - #view-all-platforms-btn { - height: 50px; - width: 280px; - - @media (max-width: 828px) { - width: auto !important; - padding: 0 30px !important; - } - } - - .above-code-block { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - margin-bottom: 10px; - width: 90%; - display: block; - } -} - -.not-top-section { - padding-bottom: 50px; - - @media (max-width: 828px) { - padding-bottom: 40px; - } -} - -#bottom-section { - margin-bottom: 100px; - - @media (max-width: 828px) { - margin-bottom: 30px; - } -} - -body { - background-color: #F3F3F3; - overflow-x: hidden; -} - -.install-amplify-cli { - @media (max-width: 828px) { - height: 50px; - width: 95%; - display: block; - margin-left: auto; - margin-right: auto; - } -} - -.hero-subheader { - @media (min-width: 828px) { - //padding: 9.375rem 0 (15.3125rem - 1.25rem) 0; - padding-top: 130px; - } -} - -/* ----- Title ----- */ -.hero-subheader__title { - height: 168px; - //width: 660px; - color: #FFFFFF; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 50px; - font-weight: bold; - line-height: 56px; - //margin-left: 110px; -} - -/* ----- Title ----- */ -.hero-subheader__desc { - margin-bottom: 1.875rem; - font-size: 1.3rem; - color:white; -} - -/* ----- Author ----- */ -.hero-subheader__author { - border-left: 2px solid; - padding-left: 2.5rem; - - .btn { - margin-bottom: 0; - } -} - -.hero-subheader__author-title { - font-size: $font-size-h5; -} - -/* ----- More ----- */ -.hero-subheader__btn-more { - color: inherit; -} -.marketing-grid { - @media (max-width: 828px) { - //margin-bottom: 0 !important; - - .marketing-grid-item { - .marketing-grid__title { - font-size: 18px !important; - line-height: 23px !important; - margin-bottom: 8px !important; - } - .marketing-grid__excerpt { - font-size: 14px !important; - line-height: 20px !important; - margin-bottom: 4px !important; - } - } - } - - margin-bottom: 50px; - //margin-top: 30px; - // .col-sm-6 { - // max-width: 340px; - // } - - .marketing-grid-item { - .marketing-grid__icon { - max-width: 43%; - display: block; - margin: auto; - } - .marketing-grid-content { - display: block; - margin: auto; - width: 90%; - - .marketing-grid__title { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 21px; - font-weight: bold; - line-height: 26px; - padding-bottom: 0; - } - .marketing-grid__excerpt { - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - margin-bottom: 4px; - color: #232F3E; - } - } - li { - margin: 0; - - a { - border: none; - } - } - } -} - -.notification-bar { - @media (max-width: 828px) { - display: none !important; - } - - //display: block; - position: sticky; - position: -webkit-sticky; - top: 0; - width: 100%; - background-color: #31465F; - //width: 101%; - //display: block; - z-index: 1000; - - .close-button { - position: absolute; - right: 10px; - top: 9px; - - i { - margin-right: 0; - } - } - - .icon--x { - vertical-align: text-top; - color: white; - cursor: pointer; - } - - .notification-content { - margin-top: 8px; - width: 95%; - display: inline-block; - text-align: center; - - .notification-text { - color: #FFFFFF; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - display: inline-block; - } - img { - display: inline-block; - vertical-align: middle; - } - } - - a { - border: none; - } - - // .col-xs-4 { - // width: 38%; - // } - // .col-xs-8 { - // width: 62%; - // } -} - -li { - /*margin-left: 17px; - padding-left: 0 !important; - content: none !important; - list-style-type: disk !important;*/ - a { - color: #007EB9; - } -} - -.error-btn-icon { - line-height: 55px; -} - -.error-btn-text { - line-height: 60px; -} - - -//============================================================================= -/*** new stuff for developer guide ***/ -//============================================================================= - -.page-container { - max-width: 1180px; - width: 90%; - margin: auto; - - @media (max-width: 828px) { - width: 100% !important; - } - - .section-top { - max-width: 1180px; - width: 100%; - } - - .container { - //padding: 0; - width: 100%; - } - - .row { - padding: 0; - } - - .section-category { - // width: 1180px; - // max-width: 90%; - margin: auto; - padding-bottom: 0; - - @media (max-width: 828px) { - padding-bottom: 10px; - } - - .container { - - - .dev-guide-heading { - - .dev-guide__title { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 42px; - font-weight: 300; - line-height: 53px; - margin-top: 60px; - margin-bottom: 60px; - - @media (max-width: 828px) { - margin-top: 80px; - font-size: 30px; - line-height: 34px; - width: 65%; - margin-left: auto; - margin-right: auto; - text-align: center; - margin-bottom: 0; - } - } - - .dev-guide__excerpt { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - margin-bottom: 45px; - - @media (max-width: 828px) { - font-size: 14px; - line-height: 20px; - text-align: center; - margin-bottom: 25px; - } - } - } - } - } - - .section-top-category { - margin: 0; - - @media (max-width: 828px) { - margin: auto; - } - - .header { - //padding: 0 20px; - //margin-top: 68px; - - @media (max-width: 828px) { - margin-top: 0; - padding: 0; - } - } - - .subheader { - //padding: 0 20px; - - @media (max-width: 828px) { - padding: 0; - } - } - - .container { - width: 85%; - margin: auto; - margin-bottom: 30px; - - .row { - margin-bottom: 68px; - - @media (max-width: 828px) { - margin-bottom: 0 !important; - padding-bottom: 30px; - } - } - } - - .col-xs-12 { - margin-top: 2%; - padding: 0 20px; - - @media (max-width: 828px) { - padding: 0; - } - } - - .dev-guide-item { - padding: 23px 16px 20px 16px; - border: 1px solid #E1E1E1; - border-radius: 5px; - display: inline-block; - width: 100%; - //height: 180px; - - @media (max-width: 828px) { - height: auto; - padding: 13px 0 12px 10px; - } - - .dev-guide-icon { - width: 31px; - position: absolute; - top: 10px; - right: 32px; - - @media (max-width: 828px) { - height: 19px; - width: 18px; - top: 6px; - right: 6px; - } - } - - .dev-guide-logo { - width: 48px; - position: absolute; - top: 12px; - right: 12px; - } - - .tutorials-content { - margin-bottom: 0 !important; - } - - .dev-guide-content { - float: left; - margin-bottom: 20px; - width: 94%; - - @media (max-width: 828px) { - margin-bottom: 0; - } - - .dev-guide-title { - color: #FF9900; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 20px; - font-weight: bold; - line-height: 25px; - margin-bottom: 13px; - - @media (max-width: 828px) { - font-size: 16px; - line-height: 20px; - } - } - - .dev-guide-by { - color: gray; - font-size: 13px; - margin-top: -15px; - margin-bottom: 10px; - } - - .dev-guide-excerpt { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 14px; - line-height: 18px; - - @media (max-width: 828px) { - font-size: 12px; - line-height: 15px; - } - } - } - - .services-container { - position: absolute; - bottom: 0; - width: 270px; - max-width: 75%; - - .dev-guide-services { - color: #828282; - font-family: "Helvetica Neue"; - font-size: 11px; - font-style: italic; - line-height: 16px; - position: absolute; - bottom: 23px; - - @media (max-width: 828px) { - display: none; - } - } - } - #angular-logo { - width: 58px; - top: 0; - right: 19px; - - @media (max-width: 828px) { - right: 0; - width: 40px; - height: auto; - } - } - - #react-logo { - width: 54px; - top: 6px; - right: 24px; - - @media (max-width: 828px) { - right: 2px; - width: 36px; - height: auto; - } - } - - #react-native-logo { - width: 54px; - top: 6px; - right: 24px; - - @media (max-width: 828px) { - right: 2px; - width: 36px; - height: auto; - } - } - - #vuejs-logo { - width: 43px; - top: 8px; - right: 26px; - - @media (max-width: 828px) { - right: 0; - width: 40px; - height: auto; - } - } - - #ionic-logo { - width: 43px; - top: 8px; - right: 26px; - - @media (max-width: 828px) { - right: 0; - width: 40px; - height: auto; - } - } - } - - .dev-guide-item:hover { - border-color: #FF9900; - } - } -} - -//============================================================================= -/*** new stuff for get started home ***/ -//============================================================================= - -#learn-more-about-cli-box { - display: inline-block; - //margin-left: 80px; - margin-bottom: 40px; - - @media (max-width: 828px) { - display: block; - width: 226px; - margin: auto; - margin-top: 10px; - margin-left: 0; - } -} - -#node-link:hover { - text-decoration: underline; -} - -.amplify-link-box { - margin-bottom: 20px; -} - -.amplify-link { - color: #FF9900; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - display: inline-block; -} - -.amplify-link:hover { - text-decoration: underline; -} - -.down-arrow { - display: inline-block; - vertical-align: middle; - margin-left: 13px; - box-shadow: 1px 1px 10px rgba(0,0,0,0.2); - border-radius: 100%; -} - -.side-arrow { - position: relative; - right: 5px; - display: inline-block; - vertical-align: middle; - //margin-left: 13px; - //box-shadow: 1px 1px 10px rgba(0,0,0,0.2); - border-radius: 100%; - transform: rotate(-90deg); -} - -.section-top-quickstart { - margin-top: 0; - margin-bottom: 34px; - - .section-code-block { - width: 90%; - padding-bottom: 25px; - - .highlight { - .highlight { - padding-bottom: 10px; - } - } - - } - - #orange-logos { - width: 220px; - } - - .div-number { - width: 47px; - border-radius: 100%; - position: absolute; - top: 19px; - right: 23px; - box-shadow: 0 2px 4px 0 rgba(0,0,0,0.23); - background: linear-gradient(180deg, #FFBC00 0%, #FF9900 100%); - border: 2px solid #FFFFFF; - font-family: "Amazon Ember", "Helvetica", sans-serif; - color: white; - font-size: 22px; - font-weight: bold; - line-height: 43px; - text-align: center; - - @media (max-width: 828px) { - width: 37px; - line-height: 34px; - font-size: 22px; - top: 10px; - right: 10px; - } - } - - .install-node-block { - @media (min-width: 1014px){ - position: relative; - vertical-align: top; - left: 36px; - top: 15px; - } - - p { - margin-bottom: 20px !important; - } - } - - #aws-logo { - width: 260px; - position: relative; - float: right; - bottom: 280px; - margin-bottom: -130px; - - @media (min-width: 1000px) { - right: 50px; - } - - @media (max-width: 785px) { - display: none; - } - } - - a { - border: none; - } - - .btn { - padding: 0 31px; - width: 100%; - - @media (max-width: 828px) { - font-size: 12px; - line-height: 15px; - padding: 0 16px !important; - height: 46px; - margin: auto; - display: block; - } - } - - #aws-signup-btn { - padding: 0 50px; - width: auto !important; - //margin-right: 25px; - - @media (max-width: 828px) { - display: inline-block; - margin: 0 25px 30px 0 !important; - padding: 0 34px !important; - } - } - - .container { - .row { - margin-bottom: 78px; - - .subheader { - padding: 0; - margin: 0; - } - - #get-started-header { - margin-bottom: 0; - } - - .row-title { - max-width: 90%; - - @media (max-width: 828px) { - max-width: 100%; - } - - .title { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 21px; - font-weight: bold; - line-height: 26px; - margin-bottom: 10px; - - @media (max-width: 828px) { - font-size: 18px; - line-height: 21px; - } - } - .subtitle { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - margin-bottom: 34px; - - @media (max-width: 828px) { - margin-bottom: 16px; - } - } - } - - .platform-container { - - @media (max-width: 828px) { - margin-bottom: 30px; - } - - .platform-box { - display: inline-block; - margin-right: 35px; - width: 180px; - - @media (max-width: 828px) { - width: 49%; - margin: auto; - padding: 4px; - margin-bottom: 12px; - } - - .circle-badge { - margin: auto; - margin-bottom: 18px; - display: block; - width: 112px; - - @media (max-width: 828px) { - margin-bottom: 12px; - width: 76px; - } - } - - .platform-title { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - font-weight: bold; - letter-spacing: 1.06px; - line-height: 20px; - text-align: center; - width: 61%; - margin: auto; - margin-bottom: 14px; - - @media (max-width: 828px) { - line-height: 18px; - width: 85%; - letter-spacing: 1.06px; - } - } - } - } - } - } -} - - -//============================================================================= -/*** new stuff for docs header ***/ -//============================================================================= - -.docs-header { - background-color: #FF9900; - - .site-search { - background-color: #F4F4F4; - - #search-input { - background-color: #F4F4F4; - } - #search-input:focus { - outline: none; - } - } - - .site-header__nav { - width: auto; - - @media (max-width: 882px) { - margin-top: 8px !important; - } - - .docs-nav:hover { - - a { - border-bottom: 2px solid white; - transition: border-color 0.2s; - } - } - - .dropbtn:hover{ - border-bottom: 2px solid white; - transition: border-color 0.2s; - } - } - - .language-selector { - border-radius: 4px; - background-color: #E57E00; - display: inline-block; - margin-left: 50px; - width: 193px; - display: none; - - select { - //background: url("/images/icons/Minis/Arrows.svg") no-repeat; - background-position: 164px 6px; - filter: brightness(0) invert(1); - border: 0 !important; /*Removes border*/ - -webkit-appearance: none; /*Removes default chrome and safari style*/ - -moz-appearance: none; /* Removes Default Firefox style*/ - text-indent: 0.01px; /* Removes default arrow from firefox*/ - text-overflow: ""; /*Removes default arrow from firefox*/ - padding: 10px; - width: 100%; - color: #FFFFFF; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - } - - select:focus { - outline: none; - } - } -} - -//============================================================================= -/*** new stuff for docs pages ***/ -//============================================================================= - -.docs-page-container { - width: 1180px; - max-width: 90%; - margin: auto; - - @media (max-width: 828px) { - max-width: 95%; - } - - .section-top { - margin-top: 60px; - } - - ::-webkit-scrollbar { - height: 0px; - width: 2px; - background: transparent; - } - - ::-webkit-scrollbar-thumb { - background: #FF9900; - } - - .nt { - color: white; - } - - .dev-guide-container { - float: left; - width: 260px; - padding: 0; - position: sticky; - position: -webkit-sticky; - top: 0; - margin-top: 60px; - - @media (max-width: 828px) { - margin-top: 20px; - } - - .in-this-page { - margin-top: 10px; - - ul { - margin-bottom: 4px; - } - } - - .sections-list { - overflow-y: scroll; - max-height: 90vh; - background: none; - - @media (max-width: 828px) { - margin-top: 0; - } - - ul li { - border: none; - } - } - - .sections-list.affix { - position: sticky; - position: -webkit-sticky; - margin-top: 84px; - } - - .styleguide-affix { - margin-top: 20px !important; - } - - .version-section { - - @media (max-width: 828px) { - margin-bottom: 20px; - } - - p { - color: #152939; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 14px; - letter-spacing: 0.4px; - line-height: 17px; - margin-bottom: 8px; - } - - .version-selector { - border-radius: 5px; - border: 1px solid #C4C4C4; - background-color: #FFFFFF; - display: inline-block; - width: 193px; - - @media (max-width: 828px) { - width: 274px; - } - - select { - //background: url("/images/icons/Minis/Arrows.svg") no-repeat; - background-position: 164px 3px; - //filter: brightness(0) invert(1); - border: 0 !important; /*Removes border*/ - -webkit-appearance: none; /*Removes default chrome and safari style*/ - -moz-appearance: none; /* Removes Default Firefox style*/ - text-indent: 0.01px; /* Removes default arrow from firefox*/ - text-overflow: ""; /*Removes default arrow from firefox*/ - padding: 10px; - width: 100%; - color: #152939; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 14px; - letter-spacing: 0.4px; - line-height: 17px; - - @media (max-width: 828px) { - padding: 12px; - background-position: 240px 5px; - } - } - } - } - - .left-nav-section { - margin-bottom: 20px; - } - - a:hover { - text-decoration: underline; - } - - .gray-section-head { - color: #B4B4B4; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 13px; - line-height: 35px; - text-transform: uppercase; - margin: 0; - } - - .orange-section-head { - - color: #FF9900 !important; - &::after { - color: #232F3E !important; - transform: rotate(0deg) !important; - } - } - - .section-head { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - font-weight: bold; - line-height: 25px; - padding: 0; - border-bottom: none; - display: block; - max-width: 260px; - - &::after { - @extend .icon; - content: '\e91d'; - color: #bdbdbd; - //display: inline-block; - font-size: 1.25rem; - position: relative; - float: right; - top: 0; - //transition: color .5s; - //transition: transform 0.5s; - transform: rotate(90deg); - } - } - - ul:hover { - //overflow-x: scroll; - } - - ul { - - a { - color: #4A4A4A; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 14px; - font-weight: bold; - line-height: 16px; - max-width: 240px; - display: block; - //overflow-x: scroll !important; - - @media (max-width: 828px) { - font-weight: normal; - line-height: 20px; - } - } - - ul { - margin-top: .625rem; - margin-bottom: 0; - color:black; - } - - li { - padding-bottom: 2px; - border-left: 1px solid #eee; - transition: border .2s; - border-left-color:white; - line-height: 20px; - padding-left: 0px; - margin-bottom: 4px; - - &.active { - border-left-color: gray; - } - - &.section-link { - a { - padding-left:11px; - } - } - - &.first-submenu { - &::after { - top: 8px !important; - } - } - - &.has-submenu { - //padding-right: 10px; - //font-weight: bold; - - .level-3 { - margin-left: 10px; - padding-left: 10px; - - li { - border: none; - } - - a { - padding-left: 10px; - font-size: 13px; - line-height: 15px; - //border-left: 2px solid #DBD6D6; - font-weight: normal; - } - } - - .level-4 { - padding-left: 10px; - margin-left: 20px; - //border-left: 2px solid #DBD6D6; - a { - padding: 0; - font-size: 12px; - line-height: 14px; - border: none; - color: #7F7F7F; - } - } - - > ul { - // display: none; - // height: 0; - // transition: height 2s ease-out; - display: block; - } - - &.active { - - > ul { - height: auto; - display: block; - //transition: height 2s ease-in; - } - } - - - } - - &::before { - display: none; - } - - a { - @include link-reset; - //font-size:0.9rem; - padding-left: 10px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - &:hover { - text-decoration: underline; - } - } - - } - - .level-2 { - @media (max-width: 828px) { - border-left: 1px solid #CCCCCC; - } - } - - /*.level-2 { - li { - &.active { - border-left-color: gray; - margin-left: -2px; - padding-left:0px; - border-width: 3px; - //font-weight: bold; - } - } - } - - .level-3 { - li { - &.active { - border-left-color: #585858; - margin-left: -3px; - padding-left:0px; - border-width: 3px; - } - } - } - - .level-4 { - li { - &.active { - border-left-color: black; - margin-left: -3px; - padding-left:0px; - border-width: 3px; - } - } - }*/ - - } - } - - .docs-container { - float: right; - width: calc(100% - 280px); - padding: 53px 65px; - margin-bottom: 20px; - - @media (max-width: 828px) { - float: left; - width: 100%; - padding: 36px 20px; - max-width: 100% !important; - } - - .js-library-selector { - z-index: 999; - background-color: #FF9900; - border-radius: 4px; - position: absolute; - top: 53px; - right: 27px; - - @media (max-width: 828px) { - position: static; - margin-bottom: 20px; - width: 162px; - } - - img { - height: 20px; - left: 10px; - position: relative; - vertical-align: text-bottom; - filter: brightness(0) invert(1); - } - - select { - color: white; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - margin: 10px; - border: none; - background: none; - filter: brightness(0) invert(1); - cursor: pointer; - } - } - - .js-library-selector-hover { - background-color: #FFA41D; - cursor: pointer; - } - - - .js-library-selector-text { - top: 29px; - right: 27px; - font-size: 12px; - color:darkgray; - position: absolute; - - @media (max-width: 828px) { - position: static; - } - } - - .content { - - .tab-content { - padding: 0; - } - - h1 { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 42px; - font-weight: 300; - line-height: 53px; - margin: 0; - margin-bottom: 40px; - - @media (max-width: 828px) { - font-size: 30px; - line-height: 34px; - margin-bottom: 28px; - } - } - - p { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - - @media (max-width: 828px) { - font-size: 14px; - line-height: 20px; - } - } - - h2 { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 21px; - font-weight: bold; - line-height: 26px; - border-bottom: none; - border-top: 1px solid #E1E4EA; - padding: 25px 0 0 0; - margin-top: 48px; - } - - .orange-subheader { - color: #FF9900; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 21px; - font-weight: bold; - line-height: 26px; - - @media (max-width: 828px) { - font-size: 18px; - line-height: 23px; - } - } - - pre { - .line-number { - display: block; - float: left; - margin: 0 1em 0 -1em; - border-right: 1px solid white; - text-align: right; - //border: 1px solid #DBDBDB; - //border-radius: 5px; - //background-color: #F9F9F9; - span { - display: block; - padding: 1px 18px 0 10px; - color: white; - } - } - .cl { - display: block; - clear: both; - } - - .code { - padding: 20px 0 20px 5px; - } - - .highlight { - padding: 0; - } - } - } - } -} - -//============================================================================= -/*** new stuff for toolchain page ***/ -//============================================================================= - -.hero-subheader.dark { - background: none !important; - background-color: #31465F !important; - - .btn { - color: #31465F; - } -} - -.section-top.cli { - .marketing-content { - width: 40%; - margin-bottom: 10px; - - @media (max-width: 1130px) { - width: 80%; - margin-bottom: 0; - } - - @media (max-width: 828px) { - width: 100%; - margin-top: 0; - } - - .marketing-grid__title { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 21px; - font-weight: bold; - line-height: 26px; - padding-bottom: 0; - border-bottom: none; - } - .marketing-grid__excerpt { - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - margin-bottom: 4px; - } - } - - .integrate-content { - width: 60%; - margin-bottom: 50px; - - .marketing-grid__excerpt { - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - margin-bottom: 4px; - } - } - - .toolchain-code-block { - float: right; - width: 360px; - - pre { - @media (min-width: 829px) { - overflow-x: hidden; - } - } - } - - .logo-container { - display: block; - margin-bottom: 30px; - - .logo-box { - display: inline-block; - margin: 0; - text-align: center; - width: 19%; - - .logo-title { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - letter-spacing: 1.06px; - line-height: 20px; - text-align: center; - } - } - } - - .button-container { - display: inline-block; - .top-section-btn { - margin-bottom: 100px; - margin-right: 20px; - } - } - - #code-window { - float: right; - position: relative; - width: 390px; - bottom: 276px; - left: 20px; - margin-bottom: -230px; - } - - #orange-logos { - width: 220px; - - @media (max-width: 1130px) { - margin-bottom: 40px; - } - } - - #pages { - width: 218px; - float: right; - position: relative; - bottom: 205px; - margin-bottom: -205px; - - @media (max-width: 836px) { - bottom: 450px; - margin-bottom: -450px; - } - } -} - -//============================================================================= -/*** new stuff for style guide ***/ -//============================================================================= - -#styleguide-section { - background-color: #F6F6F5 -} - -.styleguide-container { - background: none; - box-shadow: none; - padding: 0 !important; - float: none !important; - display: inline-block; - width: calc(100% - 230px) !important; - - @media (max-width: 1023px) { - overflow: scroll; - } - - @media (max-width: 828px) { - //width: calc(100% - 140px) !important; - width: 100% !important; - } - - .ui-section { - border-bottom: 1px solid #232F3E; - } - - h1 { - font-size: 50px !important; - } - - h2 { - color: #232F3E !important; - font-family: "Amazon Ember", "Helvetica", sans-serif !important; - font-size: 42px !important; - font-weight: 300 !important; - line-height: 53px !important; - border-top: none !important; - border-bottom: 1px solid #E1E4EA !important; - padding: 20px 0 20px 0 !important; - margin-top: 0 !important; - } - - h3 { - color: #232F3E !important; - font-family: "Amazon Ember", "Helvetica", sans-serif !important; - font-size: 21px !important; - font-weight: bold !important; - line-height: 26px !important; - margin-top: 50px; - } - - p { - margin-bottom: 20px; - color: #232F3E !important; - display: inline-block; - max-width: 100%; - } - - img { - //max-width: none; - } - - .title { - color: #828282; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 12px; - font-weight: bold; - line-height: 15px; - display: block; - text-transform: uppercase; - margin-bottom: 20px; - } - - .excerpt { - margin-bottom: 16px; - } - - .inline-img { - display: inline-block; - margin-right: 62px; - margin-bottom: 40px; - } - - .btn-img { - margin-right: 50px; - - .btn-colors { - @media (min-width: 1306px) { - margin-top: 45px; - } - } - - #critical-action-btn-colors { - width: 163px; - } - } - - .font-link { - color: #828282; - font-family: "Proxima Nova"; - font-size: 14px; - font-style: italic; - letter-spacing: 0.49px; - line-height: 16px; - display: block; - } - - .font-specific { - color: #232F3E; - font-family: "Amazon Ember", "Helvetica", sans-serif; - font-size: 16px; - line-height: 24px; - font-weight: bold; - display: block; - } - - .font-example { - float: right; - width: 66%; - } - - .font-example-div { - display: inline-block; - margin-bottom: 20px; - } - - #h1 { - font-size: 50px; - font-weight: bold; - line-height: 60px; - margin-top: -12px; - } - - #h2 { - font-size: 42px; - font-weight: 300; - line-height: 53px; - margin-top: -10px; - } - - #h4 { - font-size: 28px; - font-weight: 300; - line-height: 35px; - margin-top: -8px; - } - - #h5 { - font-size: 20px; - font-weight: bold; - line-height: 25px; - margin-top: -4px; - } - - #p { - font-size: 16px; - line-height: 24px; - } - - .inline-div { - display: inline-block; - max-width: 100%; - } - - #dropdowns { - @media (min-width: 1246px) { - float: right; - } - } - - #tooltips { - @media (min-width: 1248px) { - margin-left: 63px; - } - } - - #recover-user { - width: 483px; - @media (min-width: 1312px) { - float: right; - - .inline-img { - float: right; - } - - #recover-user-title { - margin-left: 18px; - } - } - } - - #message-chat { - @media (min-width: 1178px) { - float: right; - margin-right: 50px; - } - } - - #new-user-mobile-keyboard { - @media (min-width: 1184px) { - position: relative; - bottom: 490px; - margin-bottom: -490px; - } - } - - .statusbar-img { - margin-bottom: 10px; - } - - .small-right-margin { - margin-right: 11px; - } - - .no-right-margin { - margin-right: 0px; - } - - .statusbar-text { - display: block; - color: #4A4A4A; - font-size: 13px; - line-height: 18px; - width: 373px; - margin-bottom: 40px; - } - - .mobile-right-margin { - margin-right: 72px; - } - - .separator { - border-bottom: 1px solid #E1E4EA; - width: 100%; - } -} - -.styleguide-nav { - width: 230px !important; - top: 80px !important; - - @media (max-width: 828px) { - width: 140px !important; - } - - .sections-list { - margin-top: 30px; - } - - li { - .style-category { - color: #828282 !important; - font-family: "Amazon Ember", "Helvetica", sans-serif !important; - font-size: 28px !important; - font-weight: 300 !important; - line-height: 35px !important; - display: block !important; - margin-bottom: 20px !important; - text-decoration: none !important; - - @media (max-width: 828px) { - font-size: 20px !important; - line-height: 24px !important; - } - } - &.active { - .style-category { - color: #232F3E !important; - } - } - } -} - -.relative { - position: relative; -} - -.docs-header { - #search-input-xs { - right: -12px; - top: -1px; - } -} - -#docs-edit-bar { - position: absolute; - right: 0; - top: 62px; - background-color: white; - border-bottom-left-radius: 10px; - border-bottom-right-radius: 10px; - box-shadow: 1px 1px 5px rgba(0,0,0,.3); - height: 30px; - padding: 0px 10px; - - @media (max-width: 998px) { - top: 99px; - } - - a { - display: inline-block; - padding: 0 5px; - - p { - display: inline-block; - color: #232F3E; - margin: 0; - } - - img { - height: 24px; - vertical-align: middle; - filter: opacity(75%); - } - - #twitter-logo { - height: 28px; - position: relative; - bottom: 2px; - left: 5px; - filter: brightness(0) opacity(75%); - } - } - - a:hover { - p { - color: #FF9900; - } - } -} \ No newline at end of file diff --git a/docs/amplify-theme/_sass/components/_sections-list.scss b/docs/amplify-theme/_sass/components/_sections-list.scss deleted file mode 100755 index ea166f9ded8..00000000000 --- a/docs/amplify-theme/_sass/components/_sections-list.scss +++ /dev/null @@ -1,175 +0,0 @@ -/** - * Sections list (components/_sections-list.scss) - */ - -/* ----- General ----- */ -.sections-list { - float: left; - margin-top: 1.25rem; - background-color: white; -} - -/* ----- Wrapper ----- */ -.sections-list-wrapper { - width: 100%; -} - -/* ----- Affix ----- */ -.sections-list.affix { - position: fixed; - top: 30; -} - -.sections-list.affix-bottom { - position: absolute; -} - - -/* ----- List ----- */ -.sections-list { - - a.section-head { - font-weight: bold; - font-size: 18px; - } - - .level-1 { - .in-this-page { - ul:first-of-type { - - } - } - } - - ul { - ul { - margin-top: .625rem; - margin-bottom: 0; - color:black; - } - - li { - padding-bottom: 2px; - border-left: 1px solid #eee; - transition: border .2s; - border-left-color:white; - line-height: 20px; - padding-left:0px; - - &.active { - border-left-color: gray; - } - - &.section-link { - a { - padding-left:11px; - } - } - - &.has-submenu { - //padding-right: 1.25rem; - //font-weight: bold; - .level-3{ - a { - padding-left:20px; - } - } - - .level-4 { - a { - padding-left:30px; - } - } - - /* &::after { - @extend .icon; - content: '\e91d'; - color: #bdbdbd; - display: inline-block; - font-size: 1.25rem; - position: absolute; - right: 0; - top: .3125rem; - transition: color .5s; - } */ - - > ul { - display: none; - } - - &.active { - - /* &::after { - color: $color-dark-blue; - - } */ - - > ul { - display: block; - } - } - - - } - - &::before { - display: none; - } - - a { - @include link-reset; - //font-size:0.9rem; - padding-left: 10px; - white-space: nowrap; - overflow: hidden; - &:hover { - text-decoration: underline; - } - } - - } - - /*.level-2 { - li { - &.active { - border-left-color: gray; - margin-left: -2px; - padding-left:0px; - border-width: 3px; - } - } - } - - .level-3 { - li { - &.active { - border-left-color: #585858; - margin-left: -3px; - padding-left:0px; - border-width: 3px; - } - } - } - - .level-4 { - li { - &.active { - border-left-color: black; - margin-left: -3px; - padding-left:0px; - border-width: 3px; - } - } - }*/ - - } -} - -.marketing-grid-item { - .marketing-grid__title { - font-size: 1.55rem; - font-weight: normal; - border:none; - - } -} diff --git a/docs/amplify-theme/_sass/components/_site-footer.scss b/docs/amplify-theme/_sass/components/_site-footer.scss deleted file mode 100755 index 3bd577c1322..00000000000 --- a/docs/amplify-theme/_sass/components/_site-footer.scss +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Site footer (components/_site-footer.scss) - */ - -/* ----- General ----- */ -.site-footer { - background-color: $color-footer-bg; - padding: 3.75rem 0 (3.75rem - 1.25rem) 0; - - hr { - width: 5.625rem; - } - - border-top-width: 1px; - border-top-style: solid; - border-top-color: #dfe2e5; -} - -/* ----- Logo ----- */ -.site-footer__logo { - @include link-reset; - display: inline-block; - color: $color-footer-copyright; - font-family: $font-family-secondary; - font-size: small; - vertical-align: top; - margin: 0 0 1.25rem 0; - - img { - display: block; - width: 140px; - margin-top: 5px; - margin-left: -26px; - margin-top: -10px; - } -} - -/* ----- Copyright ----- */ -.site-footer__copyright { - color: $color-footer-copyright; - font-size: .875em; - line-height: $line-height-base; -} diff --git a/docs/amplify-theme/_sass/components/_site-header.scss b/docs/amplify-theme/_sass/components/_site-header.scss deleted file mode 100755 index fc7d2498cf1..00000000000 --- a/docs/amplify-theme/_sass/components/_site-header.scss +++ /dev/null @@ -1,188 +0,0 @@ - -// /* /** -// * Site header (components/_site-header.scss) -// */ - -// /* ----- General ----- */ -// .site-header { -// position: fixed; -// width: 100%; -// height: 3.5rem; -// border-bottom: 1px solid rgba($color-dark-blue, .15); -// z-index:999; -// background-color:white; -// } - - -// /* ----- Navigation ----- */ -// .site-header__logo { -// @include link-reset; -// display: block; -// float: left; -// color: $color-dark-blue; -// font-family: $font-family-primary; -// font-size: 1.25em; -// line-height: 3.625rem; -// font-weight: 200; - -// &:hover, -// &:focus, -// &:active { -// color: $color-dark-blue; -// } - -// img { -// height: calc(2.25rem); -// margin-top:10px; -// } -// } - -// /* ----- Navigation ----- */ -// .site-header__nav { -// @include list-horizontal; -// @include clearfix; -// float: right; -// margin-bottom: 0; - -// li { -// + li { -// margin-left: 2.5rem; -// } -// } - -// a { -// @include link-reset; -// display: block; -// font-size: .875em; -// font-weight: 500; -// font-family: $font-family-primary; -// line-height: calc(3.5rem - 1px); -// text-transform: uppercase; -// border-bottom: 2px solid; -// border-color: transparent; -// transition: border-color .2s; - -// &:hover, -// &:focus, -// &:active { -// border-color: orange; -// } -// } - -// } - -// @media (max-width: $screen-md-min) { -// .site-header__nav { -// width: 100%; -// background: white; -// text-align: center; -// margin-top: -2px; -// } -// } - -// /* ----- Offcanvas ----- */ -// .offcanvas { -// overflow: hidden; -// width: 100%; -// height: 100%; -// text-align: center; -// background-color: $color-white; -// position: fixed; -// top: 0; -// bottom: 0; -// opacity: 0; -// visibility: hidden; -// @include translate(0, -1.875rem); -// transition: transform .2s, opacity .2s, visibility .2s; -// z-index: $z-index-offcanvas; - -// .offcanvas-expanded & { -// opacity: 1; -// visibility: visible; -// @include translate(0, 0); -// } -// } - -// /* ----- Offcanvas navigation ----- */ -// .offcanvas__nav { -// height: 100%; -// overflow: scroll; -// padding-top: 5rem; -// padding-bottom: 5rem; -// -webkit-overflow-scrolling: touch; - -// li { -// padding: 0; - -// &::before { -// display: none; -// } - -// + li { -// margin-top: 1.25rem; -// } -// } - -// a { -// @include link-reset; -// color: $color-dark-blue; -// font-family: $font-family-secondary; -// text-transform: uppercase; -// } -// } - -// /* ----- Offcanvas toggle ----- */ -// .offcanvas-toggle { -// height: calc(3.5rem - 1px); -// width: 5.625rem; -// cursor: pointer; -// position: fixed; -// right: 0; -// top: 0; -// @include translate3d(0, 0, 0); -// z-index: $z-index-offcanvas-toggle; -// margin-top: -12px; - -// span { -// display: block; -// height: 2px; -// width: 1.875rem; -// background-color: $color-dark-blue; -// position: absolute; -// left: 1.875rem; -// transition: top .2s, transform .2s, opacity .2s; - -// &:first-child { -// top: 2.125rem; -// } - -// &:nth-child(2) { -// top: 2.6875rem; -// } - -// &:last-child { -// top: 3.25rem; -// } -// } - -// .offcanvas-expanded & { -// span { -// &:first-child, -// &:last-child { -// top: 2.6875rem; -// } - -// &:first-child { -// @include rotate(45); -// } - -// &:last-child { -// @include rotate(-45); -// } - -// &:nth-child(2) { -// opacity: 0; -// } -// } -// } -// } \ No newline at end of file diff --git a/docs/amplify-theme/_sass/components/_social-list.scss b/docs/amplify-theme/_sass/components/_social-list.scss deleted file mode 100755 index 19f56b26800..00000000000 --- a/docs/amplify-theme/_sass/components/_social-list.scss +++ /dev/null @@ -1,140 +0,0 @@ -/** - * Social list (components/_social-list.scss) - */ - -/* ----- General ----- */ -.social-list { - margin-bottom: 0; - - li { - display: inline-block; - padding: 0; - - + li { - margin-left: 1.25rem; - margin-bottom: 1.25rem; - } - - &::before { - display: none; - } - } -} - -/* ----- Item ----- */ -.social-list__item { - @include link-reset; - display: block; - color: $color-social-item; - font-size: 1.875em; - line-height: 1; - transition: color .2s; - - &:hover, - &:focus, - &:active { - &.social-list__item--behance { - color: #1769ff; - } - - &.social-list__item--bitbucket { - color: #205081; - } - - &.social-list__item--codepen { - color: #494949; - } - - &.social-list__item--dribbble { - color: #ea4c89; - } - - &.social-list__item--dropbox { - color: #007ee5; - } - - &.social-list__item--facebook { - color: #3b5998; - } - - &.social-list__item--github { - color: #333; - } - - &.social-list__item--gitlab { - color: #fc6d26; - } - - &.social-list__item--google-plus { - color: #dd4b39; - } - - &.social-list__item--gulp { - color: #DA4648; - } - - &.social-list__item--instagram { - color: #e1306c; - } - - &.social-list__item--kickstarter { - color: #2bde73; - } - - &.social-list__item--linkedin { - color: #0077b5; - } - - &.social-list__item--medium { - color: #00ab6c; - } - - &.social-list__item--meetup { - color: #e0393e; - } - - &.social-list__item--pocket { - color: #ef4056; - } - - &.social-list__item--producthunt { - color: #da552f; - } - - &.social-list__item--reddit { - color: #ff4500; - } - - &.social-list__item--skype { - color: #00aff0; - } - - &.social-list__item--slack { - color: #3eb991; - } - - &.social-list__item--stackoverflow { - color: #f48024; - } - - &.social-list__item--trello { - color: #0079bf; - } - - &.social-list__item--tumblr { - color: #35465c; - } - - &.social-list__item--twitter { - color: #1da1f2; - } - - &.social-list__item--youtube { - color: #cd201f; - } - } - - .icon { - display: block; - } -} diff --git a/docs/amplify-theme/_sass/components/_tabs.scss b/docs/amplify-theme/_sass/components/_tabs.scss deleted file mode 100755 index 5d4ee059fb2..00000000000 --- a/docs/amplify-theme/_sass/components/_tabs.scss +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Tab av (components/_tab.scss) - */ - -/* ----- General ----- */ -ul.tabs{ - margin: 0px; - padding: 0px; - list-style: none; -} -ul.tabs li{ - background: none; - color: #222; - display: inline-block; - padding: 10px 15px; - cursor: pointer; - - &:before { - content: ''; - } -} - -ul.tabs li.current{ - color: #222; - font-weight: bold; - border-bottom-width: 1px; - border-bottom-style: solid; - border-bottom-color:#333; -} - -.tab-content{ - display: none; - padding: 15px; -} - -.tab-content.current{ - display: inherit; -} \ No newline at end of file diff --git a/docs/amplify-theme/_sass/components/_title-anchor-link.scss b/docs/amplify-theme/_sass/components/_title-anchor-link.scss deleted file mode 100755 index ff38715b7c1..00000000000 --- a/docs/amplify-theme/_sass/components/_title-anchor-link.scss +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Title anchor link (components/_title-anchor-link.scss) - */ - -/* ----- General ----- */ -.title-anchor-link { - @include link-reset; - display: block; - position: absolute; - opacity: 0; - @include translate3d(-100%, 0, 0); - transition: opacity .2s; - padding-right: .625rem; -} - -h1, .h1, -h2, .h2, -h3, .h3, -h4, .h4, -h5, .h5, -h6, .h6 { - &:hover, - &:focus, - &:active { - .title-anchor-link { - opacity: .4; - - &:hover, - &:focus, - &:active { - opacity: 1; - } - } - } -} diff --git a/docs/amplify-theme/_sass/generic/_base.scss b/docs/amplify-theme/_sass/generic/_base.scss deleted file mode 100755 index eae48a3a531..00000000000 --- a/docs/amplify-theme/_sass/generic/_base.scss +++ /dev/null @@ -1,249 +0,0 @@ -/** - * Base (generic/_base.scss) - */ - -/* ----- General ----- */ -html { - font-size: 14px; - @include box-sizing(border-box); - -webkit-tap-highlight-color: transparent; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - - @media (min-width: $screen-sm-min) { - font-size: 16px; - } -} - -body { - color: $color-dark; - font-family: $font-family-primary; - font-size: $font-size-base; - line-height: $line-height-base; -} - -/* ----- Everything ----- */ -* { - &, - &::before, - &::after { - @include box-sizing(inherit); - } -} - -/* ----- Headings ----- */ -h1, .h1, -h2, .h2, -h3, .h3, -h4, .h4, -h5, .h5, -h6, .h6 { - font-family: $font-family-secondary; - font-weight: 400; - line-height: $line-height-headings; - margin: 2.5rem 0 .9375rem 0; - - &[id] { - position: relative; - } - - & + & { - margin-top: 0; - } -} - -h1, .h1 { - font-size: $font-size-h1; - font-weight: 700; -} - -h2, .h2 { - font-size: $font-size-h2; - font-weight: 300; - border-bottom: 1px solid $color-h2-border; - padding-bottom: .5rem; -} - -h3, .h3 { - font-size: $font-size-h3; - font-weight: 300; -} - -h4, .h4 { - font-size: $font-size-h4; -} - -h5, .h5 { - font-size: $font-size-h5; -} - -h6, .h6 { - font-size: $font-size-h6; -} - -/* ----- Inline elements ----- */ -small, -.text-small { - font-size: $font-size-small; -} - -/* ----- Paragraphs ----- */ -p { - margin: 0 0 1.25rem 0; -} - -/* ----- Hyperlinks ----- */ -a { - color: orange; - text-decoration: none; - border-bottom: .0625em solid; - border-color: inherit; - padding-bottom: .125em; - border-color: #ffa50042; - &:hover { - border-color: orange; - } -} - -/* ----- Images ----- */ -img { - max-width: 100%; - height: auto; - vertical-align: top; -} - -/* ----- Horizontal rules ----- */ -hr { - border: 0; - border-top: 1px solid $color-horizontal-rule; - margin: 0 0 1.25rem 0; -} - -/* ----- States ----- */ -::-moz-selection { - background: rgba($color-yellow, .99); - color: $color-dark-blue; -} - -::selection { - background: rgba($color-yellow, .99); - color: $color-dark-blue; -} - -/* ----- Quotes ----- */ -blockquote { - margin: 0 0 1.25rem 0; -} - -q { - color: $color-dark-blue; -} - -/* ----- Lists ----- */ -ul { - list-style-type: none; - padding: 0; - margin: 0 0 1.25rem 0; - - li { - position: relative; - padding-left: 1.575rem; - margin-bottom: .3125rem; - - &:before { - content: '•'; - color: $color-list-prefix; - position: absolute; - left: 0; - } - } -} - -/* ----- Definition lists ----- */ -dl { - margin: 0 0 1.25rem 0; - - dt { - color: $color-definition-list; - font-weight: 700; - } - - dd { - margin: 0; - } -} - -/* ----- Acronym and Emphasize tags ----- */ -acronym, -em { - font-style: italic; -} - -/* ----- Tables ----- */ -table { - width: 100%; - text-align: left; - font-size: $font-size-base; - border-collapse: collapse; - margin: 0 0 1.25rem 0; - - th, td { - border: 2px solid $color-table-border; - vertical-align: middle; - padding: .625rem .9375rem; - - @media (min-width: $screen-sm-min) { - padding: .8125rem 1.25rem; - } - - a { - border-color: $color-dark; - } - } - - th { - font-family: $font-family-secondary; - text-transform: uppercase; - background-color: $color-table-header-bg; - border-color: $color-table-header-border; - } -} - -.table-responsive { - width: 100%; - overflow-x: scroll; - -webkit-overflow-scrolling: touch; - margin: 0 0 1.25rem 0; - - @media (min-width: $screen-sm-min) { - overflow-x: visible; - } - - table { - min-width: 43.75rem; - margin: 0; - - @media (min-width: $screen-sm-min) { - min-width: 0; - margin: 0; - } - } -} - -/* ----- Iframe ----- */ -iframe { - display: block; - border: 0; - margin: 0 0 1.25rem 0; -} - -/* ----- Button ----- */ -button { - border: 0; - padding: 0; - background-color: transparent; - - &:focus { - outline: none; - } -} diff --git a/docs/amplify-theme/_sass/generic/_code.scss b/docs/amplify-theme/_sass/generic/_code.scss deleted file mode 100755 index 3b1de79cab2..00000000000 --- a/docs/amplify-theme/_sass/generic/_code.scss +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Code (generic/_code.scss) - */ - -/* ----- General ----- */ -code, -kbd, -tt { - font-family: $font-family-monospace; - color: $color-code; - background-color: $color-code-bg; - border-radius: .1875rem; - padding: .125rem .375rem .1875rem .375rem; -} - -pre { - overflow: auto; - border-left: 8px solid $color-pre-border; - margin: 0 0 1.25rem 0; - -webkit-overflow-scrolling: touch; - - code { - color: $color-pre; - background-color: transparent; - border-radius: 0; - padding: 0; - } -} - -/* ----- Highlight ----- */ -.highlight .hll { background-color: #49483e } -pre.highlight { background: #212733; color: $color-pre; padding: 1.5625rem; border-radius: 5px;line-height: 19px; - font-size: 15px;} -.highlight .c { color: #75715e } /* Comment */ -.highlight .err { color: #960050; background-color: #1e0010 } /* Error */ -.highlight .k { color: #66d9ef } /* Keyword */ -.highlight .l { color: #ae81ff } /* Literal */ -.highlight .n { color: #f8f8f2 } /* Name */ -.highlight .o { color: #f92672 } /* Operator */ -.highlight .p { color: #f8f8f2 } /* Punctuation */ -.highlight .ch { color: #75715e } /* Comment.Hashbang */ -.highlight .cm { color: #75715e } /* Comment.Multiline */ -.highlight .cp { color: #75715e } /* Comment.Preproc */ -.highlight .cpf { color: #75715e } /* Comment.PreprocFile */ -.highlight .c1 { color: #75715e } /* Comment.Single */ -.highlight .cs { color: #75715e } /* Comment.Special */ -.highlight .gd { color: #f92672 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gi { color: #a6e22e } /* Generic.Inserted */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #75715e } /* Generic.Subheading */ -.highlight .kc { color: #66d9ef } /* Keyword.Constant */ -.highlight .kd { color: #66d9ef } /* Keyword.Declaration */ -.highlight .kn { color: #f92672 } /* Keyword.Namespace */ -.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */ -.highlight .kr { color: #66d9ef } /* Keyword.Reserved */ -.highlight .kt { color: #66d9ef } /* Keyword.Type */ -.highlight .ld { color: #e6db74 } /* Literal.Date */ -.highlight .m { color: #ae81ff } /* Literal.Number */ -.highlight .s { color: #e6db74 } /* Literal.String */ -.highlight .na { color: #a6e22e } /* Name.Attribute */ -.highlight .nb { color: #f8f8f2 } /* Name.Builtin */ -.highlight .nc { color: #a6e22e } /* Name.Class */ -.highlight .no { color: #66d9ef } /* Name.Constant */ -.highlight .nd { color: #a6e22e } /* Name.Decorator */ -.highlight .ni { color: #f8f8f2 } /* Name.Entity */ -.highlight .ne { color: #a6e22e } /* Name.Exception */ -.highlight .nf { color: #a6e22e } /* Name.Function */ -.highlight .nl { color: #f8f8f2 } /* Name.Label */ -.highlight .nn { color: #f8f8f2 } /* Name.Namespace */ -.highlight .nx { color: #a6e22e } /* Name.Other */ -.highlight .py { color: #f8f8f2 } /* Name.Property */ -.highlight .nt { color: #f92672 } /* Name.Tag */ -.highlight .nv { color: #f8f8f2 } /* Name.Variable */ -.highlight .ow { color: #f92672 } /* Operator.Word */ -.highlight .w { color: #f8f8f2 } /* Text.Whitespace */ -.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */ -.highlight .mf { color: #ae81ff } /* Literal.Number.Float */ -.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */ -.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */ -.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */ -.highlight .sa { color: #e6db74 } /* Literal.String.Affix */ -.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */ -.highlight .sc { color: #e6db74 } /* Literal.String.Char */ -.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */ -.highlight .sd { color: #e6db74 } /* Literal.String.Doc */ -.highlight .s2 { color: #e6db74 } /* Literal.String.Double */ -.highlight .se { color: #ae81ff } /* Literal.String.Escape */ -.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */ -.highlight .si { color: #e6db74 } /* Literal.String.Interpol */ -.highlight .sx { color: #e6db74 } /* Literal.String.Other */ -.highlight .sr { color: #e6db74 } /* Literal.String.Regex */ -.highlight .s1 { color: #e6db74 } /* Literal.String.Single */ -.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */ -.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */ -.highlight .fm { color: #a6e22e } /* Name.Function.Magic */ -.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */ -.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */ -.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */ -.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */ -.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */ diff --git a/docs/amplify-theme/_sass/generic/_normalize.scss b/docs/amplify-theme/_sass/generic/_normalize.scss deleted file mode 100755 index 2580f8bfb7e..00000000000 --- a/docs/amplify-theme/_sass/generic/_normalize.scss +++ /dev/null @@ -1,447 +0,0 @@ -/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ - -/* Document - ========================================================================== */ - -/** - * 1. Correct the line height in all browsers. - * 2. Prevent adjustments of font size after orientation changes in - * IE on Windows Phone and in iOS. - */ - -html { - line-height: 1.15; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ - -webkit-text-size-adjust: 100%; /* 2 */ -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers (opinionated). - */ - -body { - margin: 0; -} - -/** - * Add the correct display in IE 9-. - */ - -article, -aside, -footer, -header, -nav, -section { - display: block; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/* Grouping content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - * 1. Add the correct display in IE. - */ - -figcaption, -figure, -main { /* 1 */ - display: block; -} - -/** - * Add the correct margin in IE 8. - */ - -figure { - margin: 1em 40px; -} - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - -hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -pre { - font-family: monospace, monospace; /* 1 */ - font-size: 0.95em; /* 2 */ -} - -/* Text-level semantics - ========================================================================== */ - -/** - * 1. Remove the gray background on active links in IE 10. - * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. - */ - -a { - background-color: transparent; /* 1 */ - -webkit-text-decoration-skip: objects; /* 2 */ -} - -/** - * 1. Remove the bottom border in Chrome 57- and Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - -abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ -} - -/** - * Prevent the duplicate application of `bolder` by the next rule in Safari 6. - */ - -b, -strong { - font-weight: inherit; -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - -b, -strong { - font-weight: bolder; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -code, -kbd, -samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/** - * Add the correct font style in Android 4.3-. - */ - -dfn { - font-style: italic; -} - -/** - * Add the correct background and color in IE 9-. - */ - -mark { - background-color: #ff0; - color: #000; -} - -/** - * Add the correct font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -audio, -video { - display: inline-block; -} - -/** - * Add the correct display in iOS 4-7. - */ - -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * Remove the border on images inside links in IE 10-. - */ - -img { - border-style: none; -} - -/** - * Hide the overflow in IE. - */ - -svg:not(:root) { - overflow: hidden; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers (opinionated). - * 2. Remove the margin in Firefox and Safari. - */ - -button, -input, -optgroup, -select, -textarea { - font-family: sans-serif; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ - margin: 0; /* 2 */ -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { /* 1 */ - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - -button, -select { /* 1 */ - text-transform: none; -} - -/** - * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` - * controls in Android 4. - * 2. Correct the inability to style clickable types in iOS and Safari. - */ - -button, -html [type="button"], /* 1 */ -[type="reset"], -[type="submit"] { - -webkit-appearance: button; /* 2 */ -} - -/** - * Remove the inner border and padding in Firefox. - */ - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ - -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Correct the padding in Firefox. - */ - -fieldset { - padding: 0.35em 0.75em 0.625em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - -legend { - box-sizing: border-box; /* 1 */ - color: inherit; /* 2 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - white-space: normal; /* 1 */ -} - -/** - * 1. Add the correct display in IE 9-. - * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - -progress { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ -} - -/** - * Remove the default vertical scrollbar in IE. - */ - -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10-. - * 2. Remove the padding in IE 10-. - */ - -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - -[type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/** - * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. - */ - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in IE 9-. - * 1. Add the correct display in Edge, IE, and Firefox. - */ - -details, /* 1 */ -menu { - display: block; -} - -/* - * Add the correct display in all browsers. - */ - -summary { - display: list-item; -} - -/* Scripting - ========================================================================== */ - -/** - * Add the correct display in IE 9-. - */ - -canvas { - display: inline-block; -} - -/** - * Add the correct display in IE. - */ - -template { - display: none; -} - -/* Hidden - ========================================================================== */ - -/** - * Add the correct display in IE 10-. - */ - -[hidden] { - display: none; -} diff --git a/docs/amplify-theme/_sass/objects/_buttons.scss b/docs/amplify-theme/_sass/objects/_buttons.scss deleted file mode 100755 index c9797390d65..00000000000 --- a/docs/amplify-theme/_sass/objects/_buttons.scss +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Buttons (objects/_buttons.scss) - */ - -/* ----- General ----- */ -.btn { - @include link-reset; - font-family: $font-family-secondary; - font-weight: 500; - display: inline-block; - margin: 0 0 1.25rem 0; -} - -/* ----- Variations ----- */ -.btn--full-width { - display: block; - width: 100%; -} - -.btn--rounded { - border-radius: 3.125rem; -} - -.btn--dark { - color: $color-white; - background-color: orange; - padding: .5625rem 1.5625rem; - transition: color .2s, background-color .2s; - - @media (min-width: $screen-sm-min) { - padding: .8125rem 2.1875rem; - } - - &:hover, - &:focus, - &:active { - color: $color-dark-blue; - background-color: $color-yellow; - } -} - -.btn--w-icon { - .icon { - float: right; - font-size: 1.375rem; - margin-left: .75rem; - position: relative; - bottom: -.125rem; - } -} - -.btn--w-icon-left { - .icon { - float: left; - margin-left: 0; - margin-right: .75rem; - } -} - -.btn--read-more { - text-transform: uppercase; - - .icon { - display: inline-block; - margin-left: .625rem; - transition: transform .2s; - } - - &:hover, - &:focus, - &:active { - .icon { - @include translate(.3125rem, 0); - } - } -} diff --git a/docs/amplify-theme/_sass/objects/_content.scss b/docs/amplify-theme/_sass/objects/_content.scss deleted file mode 100755 index 6e3ad8a0190..00000000000 --- a/docs/amplify-theme/_sass/objects/_content.scss +++ /dev/null @@ -1,148 +0,0 @@ -/** - * Content (objects/_content.scss) - */ - -/* ----- Headings ----- */ -.content { - > :first-child { - margin-top: 50; - } -} - -.language-terminal { - .go { - font-size:13px; - line-height: 13px; - } -} - -.next-link, .tab-link.current { - &:before { - font-family: 'icons' !important; - content: '\e91f'; - font-size: 15px; - font-weight: bold; - color: #212834; - margin-left:-4px; - } -} - -/* ----- Small grid ----- */ -@media (min-width: $screen-sm-min) { - .github-edit-link { - display: none; - } -} - -@media (min-width: $screen-xs-min) { - .github-edit-link { - display: none; - } -} - - -/* ----- Medium grid ----- */ -@media (min-width: $screen-md-min) { - .github-edit-link { - position: absolute; - margin-top: 0px; - right: 100px; - font-size:12px; - display: inherit; - } - -} - -/* ----- Large grid ----- */ -@media (min-width: $screen-lg-min) { - .github-edit-link { - position: absolute; - margin-top: 0px; - right: 100px; - font-size:12px; - display: inherit; - } -} - -.sections-list-wrapper { - .dev-guide { - .category-header { - font-size: 13px; - margin-left: 12px; - color: orange; - } - .in-this-page { - - } - } - .section-header { - padding-left: 0px; - font-weight: bold; - } -} - -// .site-search { - -// #search-input { -// vertical-align: middle !important; -// border-radius: 20px; -// border-width: 1px; -// border-style:solid; -// border-color:#d8d8d8; -// padding:4px; -// font-size: 16px; -// padding-left:0px; -// margin-top:-4px; -// border: none; -// outline: none; -// cursor: pointer; -// line-height: 30px; -// } -// } - - -.gitter-chat-embed { - z-index:99999; -} - -.gitter-open-chat-button { - background-color: orange; - height: 30px; - padding-top: 2px; - opacity: 0.8; - padding-left: 15px; - padding-right: 15px; - right: 20px; -} - -.notification-bar{ - - // controlled by JS - display: none; - - background:#ffb850; - color:black; - text-align: center; - margin-top: -3px; - //opacity: 0.94; - font-size: 16px; - padding-top: 5px; - - a { - text-decoration: underline; - } - .close-button{ - float: right; - i { - font-size: 25px; - margin-right: 20px; - } - a { - text-decoration: none; - } - } -} - -img.screencap { - margin-top:10px; -} \ No newline at end of file diff --git a/docs/amplify-theme/_sass/objects/_error-404.scss b/docs/amplify-theme/_sass/objects/_error-404.scss deleted file mode 100755 index 20b85793213..00000000000 --- a/docs/amplify-theme/_sass/objects/_error-404.scss +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Error 404 (objects/_error-404.scss) - */ - -/* ----- General ----- */ -.error-404 { - background-color: $color-theme-blue; - text-align: center; - - .align-container { - height: 100vh; - } -} - -/* ----- Title ----- */ -.error-404__title { - color: $color-dark-blue; - font-weight: normal; - font-size: $font-size-h3; - margin-top: 0; - - @media (min-width: $screen-sm-min) { - font-size: $font-size-h1; - } -} diff --git a/docs/amplify-theme/_sass/objects/_grid.scss b/docs/amplify-theme/_sass/objects/_grid.scss deleted file mode 100755 index 1df8dd4b029..00000000000 --- a/docs/amplify-theme/_sass/objects/_grid.scss +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Grid (objects/_grid.scss) - */ - -/* ----- Container widths ----- */ -.container { - @include container-fixed; - - @media (min-width: $screen-sm-min) { - width: $container-sm; - } - - @media (min-width: $screen-md-min) { - width: $container-md; - } - - @media (min-width: $screen-lg-min) { - width: $container-lg; - } -} - -/* ----- Fluid container ----- */ -.container-fluid { - @include container-fixed; -} - -/* ----- Row ----- */ -.row { - @include make-row; -} - -/* ----- Columns ----- */ -@include make-grid-columns; - -/* ----- Extra small grid ----- */ -@include make-grid(xs); - -/* ----- Small grid ----- */ -@media (min-width: $screen-sm-min) { - @include make-grid(sm); -} - -/* ----- Medium grid ----- */ -@media (min-width: $screen-md-min) { - @include make-grid(md); -} - -/* ----- Large grid ----- */ -@media (min-width: $screen-lg-min) { - @include make-grid(lg); -} diff --git a/docs/amplify-theme/_sass/objects/_icons.scss b/docs/amplify-theme/_sass/objects/_icons.scss deleted file mode 100755 index 0e4563cd1fb..00000000000 --- a/docs/amplify-theme/_sass/objects/_icons.scss +++ /dev/null @@ -1,296 +0,0 @@ -/** - * Icons (objects/_icons.scss) - */ - -/* ----- General ----- */ -@font-face { - font-family: 'icons'; - src: url('../fonts/icons/icons.ttf') format('truetype'), - url('../fonts/icons/icons.woff') format('woff'), - url('../fonts/icons/icons.svg#icons') format('svg'); - font-weight: normal; - font-style: normal; -} - -.icon { - font-family: 'icons' !important; - speak: none; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; -} - -/* ----- List of icons ----- */ -.icon--behance { - &::before { - content: '\e900'; - } -} - -.icon--bitbucket { - &::before { - content: '\e901'; - } -} - -.icon--codepen { - &::before { - content: '\e902'; - } -} - -.icon--dribbble { - &::before { - content: '\e903'; - } -} - -.icon--dropbox { - &::before { - content: '\e904'; - } -} - -.icon--facebook { - &::before { - content: '\e905'; - } -} - -.icon--github { - &::before { - content: '\e906'; - } -} - -.icon--gitlab { - &::before { - content: '\e907'; - } -} - -.icon--google-plus { - &::before { - content: '\e908'; - } -} - -.icon--gulp { - &::before { - content: '\e909'; - } -} - -.icon--instagram { - &::before { - content: '\e90a'; - } -} - -.icon--kickstarter { - &::before { - content: '\e90b'; - } -} - -.icon--linkedin { - &::before { - content: '\e90c'; - } -} - -.icon--medium { - &::before { - content: '\e90d'; - } -} - -.icon--meetup { - &::before { - content: '\e90e'; - } -} - -.icon--pocket { - &::before { - content: '\e90f'; - } -} - -.icon--producthunt { - &::before { - content: '\e910'; - } -} - -.icon--reddit { - &::before { - content: '\e911'; - } -} - -.icon--skype { - &::before { - content: '\e912'; - } -} - -.icon--slack { - &::before { - content: '\e913'; - } -} - -.icon--stackoverflow { - &::before { - content: '\e914'; - } -} - -.icon--trello { - &::before { - content: '\e915'; - } -} - -.icon--tumblr { - &::before { - content: '\e916'; - } -} - -.icon--twitter { - &::before { - content: '\e917'; - } -} - -.icon--youtube { - &::before { - content: '\e918'; - } -} - -.icon--arrow-down { - &::before { - content: '\e919'; - } -} - -.icon--arrow-left { - &::before { - content: '\e91a'; - } -} - -.icon--arrow-right { - &::before { - content: '\e91b'; - } -} - -.icon--arrow-up { - &::before { - content: '\e91c'; - } -} - -.icon--chevron-down { - &::before { - content: '\e91d'; - } -} - -.icon--chevron-left { - &::before { - content: '\e91e'; - } -} - -.icon--chevron-right { - &::before { - content: '\e91f'; - } -} - -.icon--chevron-up { - &::before { - content: '\e920'; - } -} - -.icon--home { - &::before { - content: '\e921'; - } -} - -.icon--maximize { - &::before { - content: '\e922'; - } -} - -.icon--x { - &::before { - content: '\e923'; - } -} - - - -h2.with-icon { - margin-left:50px; -} - -[class^="aws-icon-"]:before, [class*=" aws-icon-"]:before { - box-sizing: border-box; - content: ' '; - position: absolute; - width: 60px; - height: 60px; - margin-top:-10px; - margin-left:-60px; - margin-right:10px; -} - -[class^="aws-icon-ps-"]:before, [class*=" aws-icon-ps-"]:before { - background-image: url(images/icons/products_services_sprite_9182ebfe54f4fa0c8e7a5e67da3c85d4.png); -} - - -.aws-icon-ps-60-pie-bar-charts:before { - background-position: -600px -420px; -} - -.aws-icon-ps-60-database-server:before { - background-position: -60px -540px; -} - -.aws-icon-ps-60-shield-circle:before { - background-position: -600px -540px; -} - -.aws-icon-ps-60-file-box:before { - background-position: -300px -540px; -} - -.aws-icon-ps-60-network-nodes:before { - background-position: -600px -300px; -} - -.aws-icon-ps-60-bubble-gear:before { - background-position: -300px -440px; -} - -.aws-icon-ps-60-circular-circuit:before { - background-position: -540px 0; -} - -.aws-icon-ps-60-device-message:before { - background-position: -84px -680px; -} - - diff --git a/docs/amplify-theme/_sass/objects/_section.scss b/docs/amplify-theme/_sass/objects/_section.scss deleted file mode 100755 index 4079fa2234d..00000000000 --- a/docs/amplify-theme/_sass/objects/_section.scss +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Section (objects/_section.scss) - */ - -/* ----- General ----- */ -.section { - //padding: 3.75rem 0 (3.75rem - 1.25rem) 0; - - @media (min-width: $screen-sm-min) { - //padding: 4.25rem 0 (4.25rem - 1.25rem) 0; - } -} - -.section-top { - @media (min-width: $screen-sm-min) { - padding-top: 0px; - //padding-bottom: 150px; - } -} - -.section-category { - @media (min-width: $screen-sm-min) { - padding-top: 75px; - padding-bottom: 150px; - } -} - -/* ----- Variations ----- */ -.section--darker-theme-color-bg { - background-color: #ececec; -} - -.section--grey { - background-color: $color-section-grey; -} - -.col-md-offset-1 { - margin-top:1.25rem; - margin-left:0px; -} \ No newline at end of file diff --git a/docs/amplify-theme/_sass/themes/_green.scss b/docs/amplify-theme/_sass/themes/_green.scss deleted file mode 100755 index 1d363d0d1d6..00000000000 --- a/docs/amplify-theme/_sass/themes/_green.scss +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Green (themes/_green.scss) - */ - -/* ----- Hero subheader ----- */ -.green { - .hero-subheader { - background-color: $color-theme-green; - } -} - -/* ----- Nav grid ----- */ -.green { - .nav-grid__item { - background-color: $color-theme-green; - - &:hover, - &:active, - &:focus { - background-color: $color-theme-green; - } - } -} - -/* ----- Section ----- */ -.green { - .section--darker-theme-color-bg { - background-color: darken($color-theme-green, 3%); - } -} - -/* ----- Page nav ----- */ -.green { - .page-nav { - background-color: $color-theme-green; - } -} - -/* ----- Error 404 ----- */ -.green { - &.error-404 { - background-color: $color-theme-green; - } -} diff --git a/docs/amplify-theme/_sass/themes/_purple.scss b/docs/amplify-theme/_sass/themes/_purple.scss deleted file mode 100755 index 23144e622b7..00000000000 --- a/docs/amplify-theme/_sass/themes/_purple.scss +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Purple (themes/_purple.scss) - */ - -/* ----- Hero subheader ----- */ -.purple { - .hero-subheader { - background-color: $color-theme-purple; - } -} - -/* ----- Nav grid ----- */ -.purple { - .nav-grid__item { - background-color: $color-theme-purple; - - &:hover, - &:active, - &:focus { - background-color: $color-theme-purple; - } - } -} - -/* ----- Section ----- */ -.purple { - .section--darker-theme-color-bg { - background-color: darken($color-theme-purple, 3%); - } -} - -/* ----- Page nav ----- */ -.purple { - .page-nav { - background-color: $color-theme-purple; - } -} - -/* ----- Error 404 ----- */ -.purple { - &.error-404 { - background-color: $color-theme-purple; - } -} diff --git a/docs/amplify-theme/_sass/themes/_red.scss b/docs/amplify-theme/_sass/themes/_red.scss deleted file mode 100755 index 45d06408572..00000000000 --- a/docs/amplify-theme/_sass/themes/_red.scss +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Red (themes/_red.scss) - */ - -/* ----- Hero subheader ----- */ -.red { - .hero-subheader { - background-color: $color-theme-red; - } -} - -/* ----- Nav grid ----- */ -.red { - .nav-grid__item { - background-color: $color-theme-red; - - &:hover, - &:active, - &:focus { - background-color: $color-theme-red; - } - } -} - -/* ----- Section ----- */ -.red { - .section--darker-theme-color-bg { - background-color: darken($color-theme-red, 3%); - } -} - -/* ----- Page nav ----- */ -.red { - .page-nav { - background-color: $color-theme-red; - } -} - -/* ----- Error 404 ----- */ -.red { - &.error-404 { - background-color: $color-theme-red; - } -} diff --git a/docs/amplify-theme/_sass/themes/_yellow.scss b/docs/amplify-theme/_sass/themes/_yellow.scss deleted file mode 100755 index 5882485058a..00000000000 --- a/docs/amplify-theme/_sass/themes/_yellow.scss +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Yellow (themes/_yellow.scss) - */ - -/* ----- Hero subheader ----- */ -.yellow { - .hero-subheader { - background-color: $color-theme-yellow; - } -} - -/* ----- Nav grid ----- */ -.yellow { - .nav-grid__item { - background-color: $color-theme-yellow; - - &:hover, - &:active, - &:focus { - background-color: $color-theme-yellow; - } - } -} - -/* ----- Section ----- */ -.yellow { - .section--darker-theme-color-bg { - background-color: darken($color-theme-yellow, 3%); - } -} - -/* ----- Page nav ----- */ -.yellow { - .page-nav { - background-color: $color-theme-yellow; - } -} - -/* ----- Error 404 ----- */ -.yellow { - &.error-404 { - background-color: $color-theme-yellow; - } -} diff --git a/docs/amplify-theme/_sass/tools/_clearfix.scss b/docs/amplify-theme/_sass/tools/_clearfix.scss deleted file mode 100755 index 7bfcd8c9340..00000000000 --- a/docs/amplify-theme/_sass/tools/_clearfix.scss +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Clearfix (tools/_clearfix.scss) - */ - -/* ----- General ----- */ -@mixin clearfix { - &::before, - &::after { - content: ' '; - display: table; - } - - &::after { - clear: both; - } -} diff --git a/docs/amplify-theme/_sass/tools/_grid-framework.scss b/docs/amplify-theme/_sass/tools/_grid-framework.scss deleted file mode 100755 index 2948847f922..00000000000 --- a/docs/amplify-theme/_sass/tools/_grid-framework.scss +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Grid framework (tools/_grid-framework.scss) - */ - -/* ----- Make grid columns ----- */ -@mixin make-grid-columns($i: 1, $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}") { - @for $i from (1 + 1) through $grid-columns { - $list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}"; - } - - #{$list} { - position: relative; - min-height: 1px; - padding-left: ceil(($grid-gutter-width / 2)); - padding-right: floor(($grid-gutter-width / 2)); - } -} - -/* ----- Float grid columns ----- */ -@mixin float-grid-columns($class, $i: 1, $list: ".col-#{$class}-#{$i}") { - @for $i from (1 + 1) through $grid-columns { - $list: "#{$list}, .col-#{$class}-#{$i}"; - } - - #{$list} { - float: left; - } -} - -/* ----- Calc grid column ----- */ -@mixin calc-grid-column($index, $class, $type) { - @if ($type == width) and ($index > 0) { - .col-#{$class}-#{$index} { - width: percentage(($index / $grid-columns)); - } - } - - @if ($type == push) and ($index > 0) { - .col-#{$class}-push-#{$index} { - left: percentage(($index / $grid-columns)); - } - } - - @if ($type == push) and ($index == 0) { - .col-#{$class}-push-0 { - left: auto; - } - } - - @if ($type == pull) and ($index > 0) { - .col-#{$class}-pull-#{$index} { - right: percentage(($index / $grid-columns)); - } - } - - @if ($type == pull) and ($index == 0) { - .col-#{$class}-pull-0 { - right: auto; - } - } - - @if ($type == offset) { - .col-#{$class}-offset-#{$index} { - margin-left: percentage(($index / $grid-columns)); - } - } -} - -/* ----- Loop grid columns ----- */ -@mixin loop-grid-columns($columns, $class, $type) { - @for $i from 0 through $columns { - @include calc-grid-column($i, $class, $type); - } -} - -/* ----- Make grid ----- */ -@mixin make-grid($class) { - @include float-grid-columns($class); - @include loop-grid-columns($grid-columns, $class, width); - @include loop-grid-columns($grid-columns, $class, pull); - @include loop-grid-columns($grid-columns, $class, push); - @include loop-grid-columns($grid-columns, $class, offset); -} diff --git a/docs/amplify-theme/_sass/tools/_grid.scss b/docs/amplify-theme/_sass/tools/_grid.scss deleted file mode 100755 index e01b181f9f3..00000000000 --- a/docs/amplify-theme/_sass/tools/_grid.scss +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Grid (tools/_grid.scss) - */ - -/* ----- Centered container element ----- */ -@mixin container-fixed($gutter: $grid-gutter-width) { - margin-right: auto; - margin-left: auto; - padding-left: floor(($gutter / 2)); - padding-right: ceil(($gutter / 2)); - @include clearfix; -} - -/* ----- Creates a wrapper for a series of columns ----- */ -@mixin make-row($gutter: $grid-gutter-width) { - margin-left: ceil(($gutter / -2)); - margin-right: floor(($gutter / -2)); - @include clearfix; -} - -/* ----- Generate the extra small columns ----- */ -@mixin make-xs-column($columns, $gutter: $grid-gutter-width) { - position: relative; - float: left; - width: percentage(($columns / $grid-columns)); - min-height: 1px; - padding-left: ($gutter / 2); - padding-right: ($gutter / 2); -} - -@mixin make-xs-column-offset($columns) { - margin-left: percentage(($columns / $grid-columns)); -} - -@mixin make-xs-column-push($columns) { - left: percentage(($columns / $grid-columns)); -} - -@mixin make-xs-column-pull($columns) { - right: percentage(($columns / $grid-columns)); -} - -/* ----- Generate the small columns ----- */ -@mixin make-sm-column($columns, $gutter: $grid-gutter-width) { - position: relative; - min-height: 1px; - padding-left: ($gutter / 2); - padding-right: ($gutter / 2); - - @media (min-width: $screen-sm-min) { - float: left; - width: percentage(($columns / $grid-columns)); - } -} - -@mixin make-sm-column-offset($columns) { - @media (min-width: $screen-sm-min) { - margin-left: percentage(($columns / $grid-columns)); - } -} - -@mixin make-sm-column-push($columns) { - @media (min-width: $screen-sm-min) { - left: percentage(($columns / $grid-columns)); - } -} - -@mixin make-sm-column-pull($columns) { - @media (min-width: $screen-sm-min) { - right: percentage(($columns / $grid-columns)); - } -} - -/* ----- Generate the medium columns ----- */ -@mixin make-md-column($columns, $gutter: $grid-gutter-width) { - position: relative; - min-height: 1px; - padding-left: ($gutter / 2); - padding-right: ($gutter / 2); - - @media (min-width: $screen-md-min) { - float: left; - width: percentage(($columns / $grid-columns)); - } -} - -@mixin make-md-column-offset($columns) { - @media (min-width: $screen-md-min) { - margin-left: percentage(($columns / $grid-columns)); - } -} - -@mixin make-md-column-push($columns) { - @media (min-width: $screen-md-min) { - left: percentage(($columns / $grid-columns)); - } -} - -@mixin make-md-column-pull($columns) { - @media (min-width: $screen-md-min) { - right: percentage(($columns / $grid-columns)); - } -} - -/* ----- Generate the large columns ----- */ -@mixin make-lg-column($columns, $gutter: $grid-gutter-width) { - position: relative; - min-height: 1px; - padding-left: ($gutter / 2); - padding-right: ($gutter / 2); - - @media (min-width: $screen-lg-min) { - float: left; - width: percentage(($columns / $grid-columns)); - } -} - -@mixin make-lg-column-offset($columns) { - @media (min-width: $screen-lg-min) { - margin-left: percentage(($columns / $grid-columns)); - } -} - -@mixin make-lg-column-push($columns) { - @media (min-width: $screen-lg-min) { - left: percentage(($columns / $grid-columns)); - } -} - -@mixin make-lg-column-pull($columns) { - @media (min-width: $screen-lg-min) { - right: percentage(($columns / $grid-columns)); - } -} diff --git a/docs/amplify-theme/_sass/tools/_hyperlinks.scss b/docs/amplify-theme/_sass/tools/_hyperlinks.scss deleted file mode 100755 index ec208c71318..00000000000 --- a/docs/amplify-theme/_sass/tools/_hyperlinks.scss +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Hyperlinks (tools/_hyperlinks.scss) - */ - -/* ----- Reset ----- */ -@mixin link-reset { - border-bottom: 0; - padding: 0; -} diff --git a/docs/amplify-theme/_sass/tools/_lists.scss b/docs/amplify-theme/_sass/tools/_lists.scss deleted file mode 100755 index e379774d449..00000000000 --- a/docs/amplify-theme/_sass/tools/_lists.scss +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Lists (tools/_lists.scss) - */ - -/* ----- Horizontal list ----- */ -@mixin list-horizontal { - li { - float: left; - padding: 0; - margin-bottom: 0; - - &::before { - display: none; - } - } -} diff --git a/docs/amplify-theme/_sass/tools/_prefixer.scss b/docs/amplify-theme/_sass/tools/_prefixer.scss deleted file mode 100755 index 3b98a3ae7af..00000000000 --- a/docs/amplify-theme/_sass/tools/_prefixer.scss +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Prefixer (tools/_prefixer.scss) - */ - -/* ----- Box sizing ----- */ -@mixin box-sizing ($value) { - -webkit-box-sizing: $value; - -moz-box-sizing: $value; - box-sizing: $value; -} - -/* ----- Transform ----- */ -// Rotate -@mixin rotate ($deg) { - -webkit-transform: rotate(#{$deg}deg); - -moz-transform: rotate(#{$deg}deg); - -ms-transform: rotate(#{$deg}deg); - transform: rotate(#{$deg}deg); -} - -// Translate -@mixin translate ($x, $y) { - -webkit-transform: translate($x, $y); - -moz-transform: translate($x, $y); - -ms-transform: translate($x, $y); - transform: translate($x, $y); -} - -// Translate 3D -@mixin translate3d ($x, $y, $z) { - -webkit-transform: translate3d($x, $y, $z); - -moz-transform: translate3d($x, $y, $z); - transform: translate3d($x, $y, $z); -} diff --git a/docs/amplify-theme/_sass/tools/_responsive-visibility.scss b/docs/amplify-theme/_sass/tools/_responsive-visibility.scss deleted file mode 100755 index cda1f469027..00000000000 --- a/docs/amplify-theme/_sass/tools/_responsive-visibility.scss +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Responsive visibility (tools/_responsive-visibility.scss) - */ - -/* ----- Visibility ----- */ -@mixin responsive-visibility($parent) { - #{$parent} { - display: block !important; - } - table#{$parent} { display: table !important; } - tr#{$parent} { display: table-row !important; } - th#{$parent}, - td#{$parent} { display: table-cell !important; } -} - -/* ----- Invisibility ----- */ -@mixin responsive-invisibility($parent) { - #{$parent} { - display: none !important; - } -} diff --git a/docs/amplify-theme/_sass/utilities/_alignment.scss b/docs/amplify-theme/_sass/utilities/_alignment.scss deleted file mode 100755 index 701dd7a36ae..00000000000 --- a/docs/amplify-theme/_sass/utilities/_alignment.scss +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Alignment (utilities/_alignment.scss) - */ - -/* ----- Vertical alignment ----- */ -.align-container { - display: table; - width: 100%; - height: 100%; -} - -.align-inner { - display: table-cell; - vertical-align: middle; -} - -.align-inner--top { - vertical-align: top; -} - -.align-inner--bottom { - vertical-align: bottom; -} - -/* ----- Horizontal alignment ----- */ -.align-right { - @media (min-width: $screen-sm-min) { - text-align: right; - } -} diff --git a/docs/amplify-theme/_sass/utilities/_visibility.scss b/docs/amplify-theme/_sass/utilities/_visibility.scss deleted file mode 100755 index 2bb81d4aef0..00000000000 --- a/docs/amplify-theme/_sass/utilities/_visibility.scss +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Visibility (utilities/_visibility.scss) - */ - -/* ----- IE Responsive issue fix ----- */ -@at-root { - @-ms-viewport { - width: device-width; - } -} - -/* ----- Visibility ----- */ -@include responsive-invisibility('.visible-xs'); -@include responsive-invisibility('.visible-sm'); -@include responsive-invisibility('.visible-md'); -@include responsive-invisibility('.visible-lg'); - -.visible-xs-block, -.visible-xs-inline, -.visible-xs-inline-block, -.visible-sm-block, -.visible-sm-inline, -.visible-sm-inline-block, -.visible-md-block, -.visible-md-inline, -.visible-md-inline-block, -.visible-lg-block, -.visible-lg-inline, -.visible-lg-inline-block { - display: none !important; -} - -@media (max-width: 828px) { - @include responsive-visibility('.visible-xs'); -} - -.visible-xs-block { - @media (max-width: $screen-xs-max) { - display: block !important; - } -} - -.visible-xs-inline { - @media (max-width: $screen-xs-max) { - display: inline !important; - } -} - -.visible-xs-inline-block { - @media (max-width: $screen-xs-max) { - display: inline-block !important; - } -} - -@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { - @include responsive-visibility('.visible-sm'); -} - -.visible-sm-block { - @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { - display: block !important; - } -} - -.visible-sm-inline { - @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { - display: inline !important; - } -} - -.visible-sm-inline-block { - @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { - display: inline-block !important; - } -} - -@media (min-width: $screen-md-min) and (max-width: $screen-md-max) { - @include responsive-visibility('.visible-md'); -} - -.visible-md-block { - @media (min-width: $screen-md-min) and (max-width: $screen-md-max) { - display: block !important; - } -} - -.visible-md-inline { - @media (min-width: $screen-md-min) and (max-width: $screen-md-max) { - display: inline !important; - } -} - -.visible-md-inline-block { - @media (min-width: $screen-md-min) and (max-width: $screen-md-max) { - display: inline-block !important; - } -} - -@media (min-width: $screen-lg-min) { - @include responsive-visibility('.visible-lg'); -} - -.visible-lg-block { - @media (min-width: $screen-lg-min) { - display: block !important; - } -} - -.visible-lg-inline { - @media (min-width: $screen-lg-min) { - display: inline !important; - } -} - -.visible-lg-inline-block { - @media (min-width: $screen-lg-min) { - display: inline-block !important; - } -} - -@media (max-width: 828px) { - @include responsive-invisibility('.hidden-xs'); -} - -@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { - @include responsive-invisibility('.hidden-sm'); -} - -@media (min-width: $screen-md-min) and (max-width: $screen-md-max) { - @include responsive-invisibility('.hidden-md'); -} - -@media (min-width: $screen-lg-min) { - @include responsive-invisibility('.hidden-lg'); -} diff --git a/docs/amplify-theme/assets/css/style.scss b/docs/amplify-theme/assets/css/style.scss deleted file mode 100755 index f39a1a0e1a8..00000000000 --- a/docs/amplify-theme/assets/css/style.scss +++ /dev/null @@ -1,62 +0,0 @@ ---- -# This ensures Jekyll reads the file to be transformed into CSS later -# only Main files contain this front matter, not partials. ---- - -/** - * Style (style.scss) - */ - - -/* ----- Charset ----- */ -@charset 'utf-8'; - -/* ----- Variables ----- */ -@import 'variables'; - -/* ----- Tools ----- */ -@import 'tools/prefixer'; -@import 'tools/clearfix'; -@import 'tools/grid-framework'; -@import 'tools/grid'; -@import 'tools/hyperlinks'; -@import 'tools/lists'; -@import 'tools/responsive-visibility'; - -/* ----- Base ----- */ -@import 'generic/normalize'; -@import 'generic/base'; -@import 'generic/code'; - -/* ----- Utilities ----- */ -@import 'utilities/alignment'; -@import 'utilities/visibility'; - -/* ----- Objects ----- */ -@import 'objects/buttons'; -@import 'objects/content'; -@import 'objects/error-404'; -@import 'objects/grid'; -@import 'objects/icons'; -@import 'objects/section'; - -/* ----- Components ----- */ -@import 'components/callout'; -@import 'components/example'; -@import 'components/hero-subheader'; -@import 'components/micro-nav'; -@import 'components/nav-grid'; -@import 'components/page-nav'; -@import 'components/sections-list'; -@import 'components/site-footer'; -@import 'components/site-header'; -@import 'components/social-list'; -@import 'components/title-anchor-link'; -@import 'components/_tabs'; -@import 'components/redesign'; - -/* ----- Themes ----- */ -@import 'themes/green'; -@import 'themes/red'; -@import 'themes/yellow'; -@import 'themes/purple'; diff --git a/docs/amplify-theme/assets/fonts/icons/icons.svg b/docs/amplify-theme/assets/fonts/icons/icons.svg deleted file mode 100755 index e2372aea95c..00000000000 --- a/docs/amplify-theme/assets/fonts/icons/icons.svg +++ /dev/null @@ -1,48 +0,0 @@ - - - -Generated by IcoMoon - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/amplify-theme/assets/fonts/icons/icons.ttf b/docs/amplify-theme/assets/fonts/icons/icons.ttf deleted file mode 100755 index 50f244135a5..00000000000 Binary files a/docs/amplify-theme/assets/fonts/icons/icons.ttf and /dev/null differ diff --git a/docs/amplify-theme/assets/fonts/icons/icons.woff b/docs/amplify-theme/assets/fonts/icons/icons.woff deleted file mode 100755 index 614c85466f0..00000000000 Binary files a/docs/amplify-theme/assets/fonts/icons/icons.woff and /dev/null differ diff --git a/docs/amplify-theme/assets/fonts/icons/selection.json b/docs/amplify-theme/assets/fonts/icons/selection.json deleted file mode 100755 index 48c89136d9d..00000000000 --- a/docs/amplify-theme/assets/fonts/icons/selection.json +++ /dev/null @@ -1,1199 +0,0 @@ -{ - "IcoMoonType": "selection", - "icons": [ - { - "icon": { - "paths": [ - "M296.96 191.168c30.080 0 57.344 2.56 82.176 8 24.704 5.248 45.76 13.952 63.616 25.984 17.536 11.968 31.36 27.904 41.088 48 9.6 19.84 14.464 44.608 14.464 73.92 0 31.68-7.232 58.24-21.632 79.36-14.464 21.12-35.84 38.528-64.256 51.968 38.784 11.136 67.456 30.72 86.528 58.624 19.2 28.16 28.48 62.080 28.48 101.12 0 32-5.76 59.52-17.92 82.56-12.16 23.68-28.8 42.88-49.92 57.6-20.48 14.72-44.8 25.6-71.68 32.64-26.24 7.040-53.76 10.88-81.92 10.88h-305.984v-630.464h296.96zM725.12 711.68c18.752 18.304 45.888 27.52 81.024 27.52 25.216 0 47.104-6.4 65.408-19.2 18.176-12.608 29.184-26.24 33.472-40.32h110.72c-17.28 54.848-44.8 94.080-81.28 117.632-36.48 23.68-80.64 35.52-131.84 35.52-35.84 0-67.84-5.76-97.28-17.28-28.8-11.52-53.12-27.84-73.6-49.024-19.84-21.248-35.2-46.464-46.080-76.032-10.88-29.44-16-62.080-16-97.28 0-34.56 5.76-65.92 17.28-95.36 11.52-30.080 27.52-55.040 48-76.8 21.12-21.76 45.44-38.4 74.24-51.2s60.16-18.56 95.36-18.56c39.040 0 72.32 7.040 101.76 22.4 28.8 14.72 52.48 35.2 71.040 60.16 19.2 24.96 32 53.76 40.32 86.4 8.32 32 10.88 65.92 8.96 101.76h-329.024c0 35.84 12.16 69.76 30.72 88.32zM286.72 713.792c13.632 0 26.624-1.28 38.848-3.968 12.416-2.56 23.424-7.040 32.64-12.8 9.344-5.76 17.024-14.080 22.592-24.96 5.568-10.24 8.32-24.32 8.32-40.96 0-32-9.152-55.040-27.328-69.12-18.24-13.44-42.496-20.48-72.32-20.48h-150.784v173.44h148.032zM869.12 472.064c-14.976-16.512-40.192-25.408-70.912-25.408-20.032 0-36.608 3.2-49.92 10.24-12.928 6.4-23.552 14.72-31.68 24.96-8.064 10.24-13.568 20.48-16.768 32-3.2 10.88-5.12 21.12-5.76 30.080h203.84c-3.008-32-13.888-55.68-28.8-72.32zM279.040 445.632c24.576 0 44.928-5.76 60.992-17.664 16-11.648 23.68-30.848 23.68-57.28 0-14.72-2.56-26.752-7.68-36.16-5.376-9.408-12.48-16.768-21.376-21.888-8.96-5.376-19.2-9.088-30.72-11.072-11.52-2.24-23.68-3.2-35.84-3.2h-129.856v147.2h140.8zM668.48 233.408h255.36v62.208h-255.36v-62.72z" - ], - "attrs": [ - { - "fill": "rgb(23, 105, 255)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "behance" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(23, 105, 255)" - } - ], - "properties": { - "id": 19, - "order": 363, - "prevSize": 32, - "code": 59648, - "name": "behance" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 18 - }, - { - "icon": { - "paths": [ - "M512 0c-244.032 0-444.48 65.28-444.48 148.16 0 21.76 52.288 331.136 74.112 453.12 8.704 56.704 152.512 135.040 370.368 135.040s357.312-78.336 370.368-135.040c21.76-121.984 74.112-431.36 74.112-453.12-4.352-82.88-200.448-148.16-444.48-148.16zM512 636.16c-78.464 0-139.52-60.992-139.52-139.392 0-78.464 61.056-139.52 139.52-139.52s139.52 61.056 139.52 139.52c0 74.112-61.12 139.392-139.52 139.392zM512 191.744c-156.8 0-283.264-26.24-283.264-60.992 0-34.88 126.4-61.056 283.264-61.056 156.8 0 283.264 25.6 283.264 60.8 0 34.56-126.4 60.8-283.264 60.8z", - "M830.080 718.976c-8.704 0-13.056 4.352-13.056 4.352s-108.928 87.168-305.024 87.168-305.024-87.168-305.024-87.168-8.704-4.352-13.056-4.352c-8.704 0-17.472 4.352-17.472 17.408v4.352c17.472 91.52 30.528 156.928 30.528 165.632 13.056 65.28 143.744 117.632 300.672 117.632 156.8 0 287.616-52.288 300.672-117.632 0-8.704 13.056-74.112 30.464-165.632v-4.352c4.352-8.704 0-17.408-8.704-17.408z", - "M581.696 492.416c0 38.492-31.204 69.696-69.696 69.696s-69.696-31.204-69.696-69.696c0-38.492 31.204-69.696 69.696-69.696s69.696 31.204 69.696 69.696z" - ], - "attrs": [ - { - "fill": "rgb(32, 80, 129)" - }, - { - "fill": "rgb(32, 80, 129)" - }, - { - "fill": "rgb(32, 80, 129)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "bitbucket" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(32, 80, 129)" - }, - { - "fill": "rgb(32, 80, 129)" - }, - { - "fill": "rgb(32, 80, 129)" - } - ], - "properties": { - "id": 22, - "order": 325, - "prevSize": 32, - "code": 59649, - "name": "bitbucket" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 21 - }, - { - "icon": { - "paths": [ - "M1023.232 348.352c-0.256-1.28-0.448-2.56-0.768-3.712l-0.64-2.112c-0.384-1.088-0.768-2.176-1.28-3.2-0.192-0.768-0.64-1.472-0.896-2.176l-1.472-2.88-1.28-2.048-1.92-2.56-1.92-1.92-2.56-1.92-1.92-1.28-2.56-1.92-1.92-1.28-0.64-0.64-467.136-313.024c-14.72-9.856-33.92-9.856-48.64 0l-470.912 313.792-2.56 2.048-1.6 1.728-2.176 2.368-1.536 1.92-1.92 2.56c-0.64 0.64-1.28 1.28-1.28 1.92l-1.92 2.56-0.64 2.56c-0.64 0.64-0.64 1.92-1.28 3.2l-0.64 1.92c-0.64 1.28-0.64 2.56-0.64 3.84v1.92c-0.576 1.984-0.576 3.904-0.576 5.824v312c0 1.92 0.128 3.84 0.384 5.76l0.448 1.92c0.192 1.28 0.384 2.56 0.832 3.712l0.64 2.112c0.384 1.152 0.64 2.24 1.152 3.2l0.96 2.112c0 0.64 0.64 1.92 1.28 2.56l1.28 1.92c0.64 0.64 1.28 1.92 1.92 2.56l1.28 1.92 1.92 1.92c0.64 0.64 0.64 1.28 1.28 1.28l2.56 1.92 1.92 1.28 0.64 0.64 467.84 312.32c7.040 5.12 16 7.040 24.32 7.040s16.64-2.56 24.32-7.68l471.104-312.384 2.56-1.92 1.92-1.664 2.24-2.368 1.536-1.92 1.92-2.56 1.28-2.048 1.28-2.944 0.64-2.304 1.28-3.2 0.64-1.92 1.28-3.2v-320c0-1.92 0-3.84-0.64-5.76l-0.64-1.92zM512 616.064l-155.648-104.064 155.648-104.064 155.648 104.064-155.648 104.064zM467.968 331.52l-190.72 127.552-153.984-103.040 344.704-229.76v205.248zM198.080 512l-110.080 73.6v-147.2l110.080 73.6zM277.248 564.992l190.72 127.552v205.44l-344.704-229.76 153.984-103.040zM555.968 692.544l190.72-127.36 154.048 103.040-344.768 229.76v-204.8zM825.92 512l110.080-73.6v147.2l-110.080-73.6zM746.752 459.072l-190.72-127.552v-205.44l344.704 229.76-153.984 103.040z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "codepen" - ], - "grid": 0 - }, - "attrs": [], - "properties": { - "id": 36, - "order": 324, - "prevSize": 32, - "code": 59650, - "name": "codepen" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 35 - }, - { - "icon": { - "paths": [ - "M512 1024c-282.24 0-512-229.76-512-512s229.76-512 512-512 512 229.76 512 512-229.76 512-512 512zM943.808 582.080c-14.976-4.736-135.36-40.64-272.448-18.688 57.216 157.184 80.512 285.184 84.992 311.808 98.112-66.368 167.936-171.52 187.52-293.12zM682.88 915.2c-6.528-38.4-32-172.032-93.44-331.52l-2.816 0.896c-246.656 85.952-335.104 257.024-343.040 273.024 74.112 57.92 167.296 92.416 268.416 92.416 60.608 0 118.4-12.416 170.88-34.752zM187.072 805.12c9.92-17.024 129.92-215.68 355.52-288.64 5.76-1.92 11.52-3.584 17.28-5.12-11.072-24.96-23.040-49.792-35.52-74.24-218.432 65.28-430.272 62.528-449.472 62.080l-0.192 13.312c0 112.32 42.56 214.912 112.384 292.48zM83.84 423.040c19.648 0.32 199.808 1.088 404.352-53.248-72.448-128.768-150.592-237.12-162.112-252.928-122.368 57.728-213.76 170.496-242.176 306.24zM409.6 87.552c12.032 16.192 91.52 124.352 163.072 256 155.52-58.24 221.44-146.752 229.248-157.952-77.248-68.672-178.816-110.336-289.92-110.336-35.2 0-69.568 4.224-102.4 12.16zM850.56 236.16c-9.28 12.416-82.56 106.368-244.224 172.416 10.24 20.8 19.84 41.984 28.992 63.36 3.2 7.488 6.4 15.040 9.408 22.528 145.536-18.304 290.112 11.008 304.512 14.080-0.96-103.232-37.76-198.016-98.752-272.448z" - ], - "attrs": [ - { - "fill": "rgb(234, 76, 137)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "dribbble" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(234, 76, 137)" - } - ], - "properties": { - "id": 59, - "order": 328, - "prevSize": 32, - "code": 59651, - "name": "dribbble" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 58 - }, - { - "icon": { - "paths": [ - "M301.248 35.84l-301.248 196.48 208.256 166.784 303.744-187.392-210.752-176zM0 566.016l301.248 196.672 210.752-175.808-303.744-187.712-208.256 166.848zM512 586.88l210.752 175.872 301.248-196.672-208.256-166.848-303.744 187.52zM1024 232.448l-301.248-196.608-210.752 175.808 303.744 187.52 208.256-166.72z", - "M512.64 624.64l-211.392 175.36-90.496-59.008v66.24l301.888 180.928 301.824-180.928v-66.24l-90.432 59.072-211.392-175.424z" - ], - "attrs": [ - { - "fill": "rgb(0, 126, 229)" - }, - { - "fill": "rgb(0, 126, 229)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "dropbox" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(0, 126, 229)" - }, - { - "fill": "rgb(0, 126, 229)" - } - ], - "properties": { - "id": 60, - "order": 327, - "prevSize": 32, - "code": 59652, - "name": "dropbox" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 59 - }, - { - "icon": { - "paths": [ - "M967.488 0h-910.976c-31.232 0-56.512 25.28-56.512 56.512v910.976c0 31.232 25.28 56.512 56.512 56.512h490.432v-396.544h-133.504v-154.496h133.504v-114.112c0-132.224 80.768-204.16 198.784-204.16 56.512 0 105.088 4.096 119.232 6.016v138.24h-81.92c-64 0-76.48 30.72-76.48 75.52v98.56h152.96l-19.84 154.88h-133.12v396.096h260.928c31.232 0 56.512-25.28 56.512-56.512v-910.976c0-31.232-25.28-56.512-56.512-56.512z" - ], - "attrs": [ - { - "fill": "rgb(59, 89, 152)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "facebook" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(59, 89, 152)" - } - ], - "properties": { - "id": 71, - "order": 326, - "prevSize": 32, - "code": 59653, - "name": "facebook" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 70 - }, - { - "icon": { - "paths": [ - "M512 0c-282.88 0-512 229.248-512 512 0 226.24 146.688 418.112 350.080 485.76 25.6 4.8 35.008-11.008 35.008-24.64 0-12.16-0.448-44.352-0.64-87.040-142.464 30.912-172.48-68.672-172.48-68.672-23.296-59.136-56.96-74.88-56.96-74.88-46.4-31.744 3.584-31.104 3.584-31.104 51.392 3.584 78.4 52.736 78.4 52.736 45.696 78.272 119.872 55.68 149.12 42.56 4.608-33.088 17.792-55.68 32.448-68.48-113.728-12.8-233.216-56.832-233.216-252.992 0-55.872 19.84-101.568 52.672-137.408-5.76-12.928-23.040-64.96 4.48-135.488 0 0 42.88-13.76 140.8 52.48 40.96-11.392 84.48-17.024 128-17.28 43.52 0.256 87.040 5.888 128 17.28 97.28-66.24 140.16-52.48 140.16-52.48 27.52 70.528 10.24 122.56 5.12 135.488 32.64 35.84 52.48 81.536 52.48 137.408 0 196.672-119.68 240-233.6 252.608 17.92 15.36 34.56 46.72 34.56 94.72 0 68.48-0.64 123.52-0.64 140.16 0 13.44 8.96 29.44 35.2 24.32 204.864-67.136 351.424-259.136 351.424-485.056 0-282.752-229.248-512-512-512z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "github" - ], - "grid": 0 - }, - "attrs": [], - "properties": { - "id": 84, - "order": 329, - "prevSize": 32, - "code": 59654, - "name": "github" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 83 - }, - { - "icon": { - "paths": [ - "M1022.080 579.712l-57.28-176.384-113.6-349.44c-5.76-18.048-31.232-18.048-37.12 0l-113.536 349.312h-377.088l-113.536-349.312c-5.888-18.048-31.36-18.048-37.12-0.128l-113.664 349.44-57.216 176.512c-5.248 16 0.512 33.664 14.080 43.648l496 360.32 496-360.32c13.568-9.984 19.328-27.52 14.080-43.648z" - ], - "attrs": [ - { - "fill": "rgb(226, 67, 41)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "gitlab" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(226, 67, 41)" - } - ], - "properties": { - "id": 85, - "order": 330, - "prevSize": 32, - "code": 59655, - "name": "gitlab" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 84 - }, - { - "icon": { - "paths": [ - "M325.76 465.472v111.68h184.96c-7.424 48-55.872 140.608-184.768 140.608-111.168 0-201.92-92.16-201.92-205.76s90.56-205.76 201.728-205.76c63.36 0 105.728 27.008 129.92 50.304l88.448-85.12c-56.768-53.12-130.368-85.12-218.24-85.12-180.288-0.064-325.888 145.856-325.888 325.696s145.664 325.76 325.76 325.76c188.16 0 312.832-132.16 312.832-318.336 0-21.376-2.304-37.76-5.12-53.952h-307.712zM1024 465.472h-93.12v-93.12h-93.12v93.12h-93.056v93.056h93.12v93.12h93.44v-93.12h92.736z" - ], - "attrs": [ - { - "fill": "rgb(220, 78, 65)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "googleplus" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(220, 78, 65)" - } - ], - "properties": { - "id": 96, - "order": 331, - "prevSize": 32, - "code": 59656, - "name": "google-plus" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 95 - }, - { - "icon": { - "paths": [ - "M646.912 829.44l27.136-46.336s-61.696 25.28-164.992 25.28c-103.296 0-164.096-24.32-164.096-24.32l30.4 50.56 10.752 159.36c0 17.28 56.192 30.72 125.44 30.72 69.376 0 125.568-13.44 125.568-30.72l9.792-163.84zM673.152 528.32c-32.832 1.92-49.28 38.592-65.792 77.12-6.080 14.080-26.88 74.24-40.512 66.816s17.664-56.832 26.432-86.208c-10.112 7.424-47.232 36.288-56.768 9.216-15.36 13.44-48.256 20.48-44.544-14.080-8.192 14.72-26.56 35.2-48.64 26.24-28.8-10.88 16.832-103.040 28.16-98.56 11.392 5.12-2.24 25.6-5.76 33.92-7.936 17.92-17.024 40.96-10.88 45.44 10.24 8.32 38.592-30.080 39.232-30.72 5.312-7.040 20.48-52.48 32.64-47.36 12.16 5.76-30.4 65.92-14.528 78.080 3.2 2.56 16.32-1.28 24.32-10.24 5.12-5.12 3.328-17.92 20.48-58.88 17.28-40.96 32.64-92.16 44.416-88.32s2.048 30.080-2.176 40.32c-19.84 46.080-54.208 121.6-38.016 115.84 16-5.76 24.32-5.76 40.32-24.32s14.72-49.28 25.6-48.64c10.24 0.64 8.96 10.88 6.4 17.92 10.24-11.52 49.28-37.12 58.24-12.16 10.88 29.44-55.68 72.32-39.040 69.76 16-1.92 42.24-18.56 53.76-33.92l30.72-277.76s-31.36 25.6-229.12 25.6-225.92-24.96-225.92-24.96l26.24 253.44c14.080-39.68 47.36-120.32 99.2-117.12 23.68 1.28 55.68 47.36 28.16 48.64-11.52 0.64-12.8-23.040-26.24-26.24-10.24-1.92-23.68 5.76-32.64 14.72-17.28 17.28-55.68 85.76-50.56 119.68 6.4 43.52 60.16-14.72 69.12-32 6.4-12.16 10.88-48.64 24.32-44.8 14.080 3.84-1.28 41.6-11.52 74.24-11.52 37.12-17.28 76.16-31.36 71.68s8.96-52.48 7.68-60.8c-13.44 12.8-37.76 43.52-69.76 28.16l16 158.080s43.52 33.92 174.080 33.92 176-33.92 176-33.92l20.48-183.040c-16.64 16.64-69.12 45.44-72.32 12.8-2.56-26.24 56.96-64 41.6-64.64zM741.184 26.816v-1.28c2.56-3.84-1.92-12.16-10.24-18.56-8.256-7.040-17.28-10.24-20.224-6.4l-120.768 128-23.936 97.28c-17.984-0.64-35.968-0.64-54.016-0.64-127.232 0-230.4 14.72-230.4 32.64s103.168 32.64 230.4 32.64c127.232 0 230.4-14.464 230.4-32.384 0-13.184-55.936-24.512-136.32-29.632l20.736-81.28 113.664-119.68zM576.64 275.2s-22.4 0-26.112-3.456c-0.96-1.024-1.536-2.432-1.536-3.84 0-2.432 1.664-3.84 3.84-4.672l1.92 3.2c-0.896 0.256-1.28 0.64-1.408 0.96 0 1.792 13.44 3.008 23.68 2.88s22.72-1.024 22.784-2.752c0-0.512-0.96-1.024-2.56-1.408l1.92-3.072c2.688 0.832 4.992 2.432 4.992 5.12 0 4.736-6.016 5.504-9.856 6.016-4.608 0.64-17.6 1.024-17.6 1.024z" - ], - "attrs": [ - { - "fill": "rgb(218, 70, 72)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "gulp" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(218, 70, 72)" - } - ], - "properties": { - "id": 101, - "order": 332, - "prevSize": 32, - "code": 59657, - "name": "gulp" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 100 - }, - { - "icon": { - "paths": [ - "M512 0c-139.072 0-156.48 0.64-211.072 3.072-54.528 2.56-91.648 11.136-124.288 23.808-33.664 13.056-62.272 30.592-90.688 59.072-28.48 28.416-46.080 56.96-59.072 90.688-12.672 32.64-21.312 69.76-23.808 124.288-2.56 54.592-3.072 72-3.072 211.072s0.64 156.48 3.072 211.072c2.56 54.528 11.136 91.712 23.808 124.288 13.056 33.664 30.592 62.272 59.072 90.688 28.416 28.48 56.96 46.080 90.688 59.072 32.64 12.672 69.76 21.312 124.288 23.808 54.592 2.56 72 3.072 211.072 3.072s156.48-0.64 211.072-3.072c54.528-2.56 91.712-11.136 124.288-23.808 33.664-13.056 62.272-30.592 90.688-59.072 28.48-28.416 46.080-56.96 59.072-90.688 12.672-32.64 21.312-69.76 23.808-124.288 2.56-54.592 3.072-72 3.072-211.072s-0.64-156.48-3.072-211.072c-2.56-54.528-11.136-91.712-23.808-124.288-13.056-33.664-30.592-62.272-59.072-90.688-28.416-28.48-56.96-46.080-90.688-59.072-32.64-12.672-69.76-21.312-124.288-23.808-54.592-2.56-72-3.072-211.072-3.072zM512 92.16c136.704 0 152.96 0.64 206.912 3.072 49.92 2.304 76.992 10.624 95.040 17.664 23.936 9.28 40.96 20.352 58.88 38.272s28.992 34.944 38.272 58.88c7.040 18.048 15.36 45.12 17.664 95.040 2.432 54.016 3.008 70.208 3.008 206.912s-0.64 152.96-3.2 206.912c-2.56 49.92-10.88 76.992-17.92 95.040-9.6 23.936-20.48 40.96-38.4 58.88s-35.2 28.992-58.88 38.272c-17.92 7.040-45.44 15.36-95.36 17.664-54.4 2.432-70.4 3.008-207.36 3.008s-152.96-0.64-207.36-3.2c-49.92-2.56-77.44-10.88-95.36-17.92-24.32-9.6-40.96-20.48-58.88-38.4s-29.44-35.2-38.4-58.88c-7.040-17.92-15.36-45.44-17.92-95.36-1.92-53.76-2.56-70.4-2.56-206.72s0.64-152.96 2.56-207.36c2.56-49.92 10.88-77.44 17.92-95.36 8.96-24.32 20.48-40.96 38.4-58.88s34.56-29.44 58.88-38.4c17.92-7.040 44.8-15.36 94.72-17.92 54.4-1.92 70.4-2.56 207.36-2.56zM512 249.088c-145.28 0-262.912 117.76-262.912 262.912 0 145.28 117.76 262.912 262.912 262.912 145.28 0 262.912-117.76 262.912-262.912 0-145.28-117.76-262.912-262.912-262.912zM512 682.688c-94.272 0-170.688-76.416-170.688-170.688s76.416-170.688 170.688-170.688c94.272 0 170.688 76.416 170.688 170.688s-76.416 170.688-170.688 170.688zM846.72 238.72c0 33.92-27.52 61.44-61.44 61.44s-61.44-27.52-61.44-61.44 27.52-61.44 61.44-61.44 61.44 27.52 61.44 61.44z" - ], - "attrs": [ - { - "fill": "rgb(228, 64, 95)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "instagram" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(228, 64, 95)" - } - ], - "properties": { - "id": 115, - "order": 333, - "prevSize": 32, - "code": 59658, - "name": "instagram" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 114 - }, - { - "icon": { - "paths": [ - "M409.984 348.992l187.776-272.192c35.52-51.2 81.28-76.8 137.6-76.8 45.76 0 85.44 16.256 119.040 48.768 33.408 32.64 50.176 71.488 50.176 116.864 0 33.472-8.832 63.104-26.624 88.704l-169.28 246.144 207.040 262.528c20.672 26.112 31.040 56.704 31.040 91.712 0 46.336-16.256 86.080-48.832 119.36-32.512 33.28-71.936 49.92-118.272 49.92-50.752 0-89.472-16.512-116.096-49.536l-253.568-316.416v174.464c0 49.792-8.64 88.512-25.92 116.096-31.424 50.24-76.864 75.392-137.024 75.392-54.72 0-97.152-18.56-127.168-55.424-28.16-34.048-42.24-79.168-42.24-135.296v-647.040c0-53.12 14.336-97.024 42.88-131.52 29.76-36.48 71.168-54.72 123.968-54.72 50.304 0 92.16 18.24 125.696 54.72 18.688 20.224 30.528 40.64 35.456 61.44 3.008 12.8 4.48 36.608 4.48 71.68v161.152z" - ], - "attrs": [ - { - "fill": "rgb(43, 222, 115)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "kickstarter" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(43, 222, 115)" - } - ], - "properties": { - "id": 129, - "order": 351, - "prevSize": 32, - "code": 59659, - "name": "kickstarter" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 128 - }, - { - "icon": { - "paths": [ - "M872.448 872.64h-151.68v-237.632c0-56.704-1.152-129.6-78.976-129.6-79.040 0-91.136 61.696-91.136 125.44v241.792h-151.68v-488.64h145.664v66.56h1.92c20.352-38.4 69.888-78.912 143.808-78.912 153.6 0 182.080 101.12 182.080 232.768v268.032zM227.712 317.12c-48.768 0-88.064-39.488-88.064-88.128 0-48.512 39.296-88 88.064-88 48.64 0 88.064 39.488 88.064 88 0 48.64-39.488 88.128-88.064 88.128zM303.744 872.64h-152.064v-488.64h152.064v488.64zM948.224 0h-872.704c-41.728 0-75.52 33.024-75.52 73.792v876.416c0 40.768 33.792 73.792 75.52 73.792h872.64c41.728 0 75.84-33.024 75.84-73.792v-876.416c0-40.768-34.112-73.792-75.84-73.792z" - ], - "attrs": [ - { - "fill": "rgb(0, 119, 181)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "linkedin" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(0, 119, 181)" - } - ], - "properties": { - "id": 139, - "order": 334, - "prevSize": 32, - "code": 59660, - "name": "linkedin" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 138 - }, - { - "icon": { - "paths": [ - "M756.736 808.192l-17.664 28.8 226.688 113.28c9.6 4.864 18.816 7.040 26.752 7.040 17.792 0 29.888-11.328 29.888-31.488v-549.312l-265.6 431.68zM1018.88 253.312c-0.256-0.192 0-0.64-0.192-0.768l-308.8-154.368c-3.84-1.92-7.872-2.432-11.968-2.816-1.024 0-1.92-0.64-3.008-0.64-11.776 0-23.552 5.888-29.888 16.256l-15.36 24.96-32 52.096-120.96 197.12 184.96 300.864 37.76 60.8 301.44-488.96c1.28-1.92 0.64-3.84-1.28-5.12zM617.6 704.192l-177.6-288.64-18.816-30.528-16-26.624v311.488l276.48 138.432-64-104.064zM47.168 107.52l-9.408-4.608c-5.44-2.688-10.624-3.968-15.36-3.968-13.184 0-22.4 10.24-22.4 27.328v650.368c0 17.408 12.8 38.016 28.288 45.824l265.28 133.12c6.848 3.84 13.312 5.12 19.2 5.12 16.448 0 28.032-12.8 28.032-33.92v-670.144c0-1.28-0.768-2.56-1.92-3.008l-291.648-146.112z" - ], - "attrs": [ - { - "fill": "rgb(0, 171, 107)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "medium" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(0, 171, 107)" - } - ], - "properties": { - "id": 150, - "order": 335, - "prevSize": 32, - "code": 59661, - "name": "medium" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 149 - }, - { - "icon": { - "paths": [ - "M64 848c-35.328 0-64-28.672-64-64v-544.384c0.256-35.2 28.8-63.616 64-63.616h896c35.2 0 63.744 28.48 64 63.616v544.384c0 35.328-28.672 64-64 64h-896zM992.448 366.912h-960v384h960v-384z" - ], - "attrs": [ - { - "fill": "rgb(226, 55, 60)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "meetup" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(226, 55, 60)" - } - ], - "properties": { - "id": 151, - "order": 350, - "prevSize": 32, - "code": 59662, - "name": "meetup" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 150 - }, - { - "icon": { - "paths": [ - "M802.112 437.76l-240.832 231.040c-13.632 13.056-31.104 19.584-48.64 19.584-17.472 0-35.008-6.528-48.64-19.584l-240.768-231.040c-27.968-26.752-28.8-71.232-2.048-99.2 26.88-28.032 71.296-28.928 99.2-2.112l192.32 184.32 192.64-184.32c28.16-26.88 72.32-25.92 99.2 2.048 26.88 27.52 26.24 72.32-1.92 99.2zM1018.944 115.968c-12.8-36.608-48-61.184-87.040-61.184h-839.104c-38.4 0-73.216 24.064-86.848 59.904-4.032 10.624-6.080 21.76-6.080 32.96v308.992l3.52 61.44c14.848 139.776 87.36 261.888 199.68 347.072 1.92 1.536 4.032 3.008 6.080 4.48l1.28 0.96c60.16 43.968 127.488 73.728 200.192 88.448 33.536 6.72 67.84 10.24 101.888 10.24 31.488 0 63.104-2.944 94.208-8.704 3.712-1.28 7.424-1.92 11.2-2.56 1.024 0 2.112-0.64 3.2-1.28 69.632-15.36 134.272-44.16 192.256-86.4l1.28-1.28 5.76-4.48c112-85.12 184.32-207.36 199.68-347.52l3.2-61.44v-308.416c0-10.688-1.28-21.312-5.12-31.68z" - ], - "attrs": [ - { - "fill": "rgb(239, 63, 86)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "pocket" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(239, 63, 86)" - } - ], - "properties": { - "id": 191, - "order": 348, - "prevSize": 32, - "code": 59663, - "name": "pocket" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 190 - }, - { - "icon": { - "paths": [ - "M580.48 358.4h-145.28v153.6h145.28c42.415 0 76.8-34.385 76.8-76.8s-34.385-76.8-76.8-76.8z", - "M512 0c-282.77 0-512 229.23-512 512s229.23 512 512 512c282.77 0 512-229.23 512-512s-229.23-512-512-512zM580.48 614.4h-145.28v153.6h-102.4v-512h247.68c98.969 0 179.2 80.231 179.2 179.2s-80.231 179.2-179.2 179.2z" - ], - "attrs": [ - { - "fill": "rgb(218, 85, 47)" - }, - { - "fill": "rgb(218, 85, 47)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "producthunt" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(218, 85, 47)" - }, - { - "fill": "rgb(218, 85, 47)" - } - ], - "properties": { - "id": 194, - "order": 337, - "prevSize": 32, - "code": 59664, - "name": "producthunt" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 193 - }, - { - "icon": { - "paths": [ - "M94.272 599.552c-2.56 11.84-3.84 23.936-3.84 36.224 0 147.2 188.16 267.072 419.456 267.072 231.232 0 419.392-119.808 419.392-267.072 0-11.712-1.28-23.296-3.52-34.56l-0.64-1.408c-0.832-2.304-1.28-4.672-1.28-7.040-12.8-50.176-47.68-95.808-98.112-132.608-1.92-0.64-3.712-1.664-5.376-3.008-1.088-0.832-1.92-1.792-2.816-2.752-76.672-52.736-186.24-85.76-307.648-85.76-120.32 0-228.864 32.384-305.408 84.16-0.64 0.768-1.28 1.472-2.112 2.112-1.664 1.408-3.584 2.56-5.568 3.2-51.52 36.864-87.296 82.752-100.608 133.504 0 2.432-0.64 4.928-1.6 7.296l-0.32 0.64zM512 832.192c-76.672 0-130.688-16.64-165.12-51.2-7.424-7.424-7.424-19.52 0-27.008 7.488-7.040 19.648-7.040 27.136 0 26.88 26.88 72 40.32 137.92 40.32s110.72-12.8 137.6-39.68c7.040-7.040 19.2-7.040 26.88 0 7.040 7.68 7.040 19.84 0 27.52-34.56 34.56-88.32 51.2-165.12 51.2zM357.888 508.48c-39.040 0-71.68 32.64-71.68 71.68 0 38.912 32.64 70.528 71.68 70.528s70.592-31.616 70.592-70.528c0-39.040-31.616-71.68-70.592-71.68zM667.008 508.48c-39.040 0-71.68 32.64-71.68 71.68 0 38.912 32.64 70.528 71.68 70.528s70.592-31.616 70.592-70.528c0-39.040-31.616-71.68-70.592-71.68zM861.44 440.32c44.352 35.584 76.928 77.824 93.568 124.16 19.2-14.4 30.72-36.992 30.72-61.952 0-42.88-34.88-77.696-77.696-77.696-17.088 0-33.28 5.568-46.592 15.552zM115.968 424.96c-42.88 0-77.696 34.88-77.696 77.696 0 23.232 10.24 44.8 27.52 59.328 17.152-46.080 50.048-87.68 94.592-122.88-12.928-8.96-28.352-14.080-44.416-14.080zM509.888 941.248c-252.416 0-457.728-136.96-457.728-305.28 0-11.712 1.024-23.232 2.944-34.56-33.92-21.12-55.040-58.24-55.040-98.88 0-64 52.48-115.968 116.48-115.968 28.8 0 55.68 10.496 76.8 29.12 79.36-50.944 186.24-83.008 304-85.12l77.44-236.16 17.28 4.032s0.64 0 0.64 0.128l180.48 42.432c14.72-34.112 48.64-58.112 88.32-58.112 52.48 0 95.36 42.88 95.36 95.488 0 52.672-42.88 95.488-95.36 95.488s-95.36-42.88-95.36-95.36l-164.544-38.976-62.72 191.36c113.28 4.48 215.68 36.48 292.48 86.4 21.12-19.84 48.896-30.72 78.4-30.72 64 0 116.096 51.84 116.096 115.84 0 42.24-23.040 80.64-58.88 101.12 1.28 10.88 2.56 21.12 2.56 32-0.64 168.32-205.44 305.28-458.24 305.28zM859.52 121.152c-31.616 0-57.28 25.6-57.28 57.216 0 31.552 25.6 57.216 57.216 57.216 31.36 0 56.96-25.6 56.96-56.96s-25.6-56.96-57.6-56.96z" - ], - "attrs": [ - { - "fill": "rgb(255, 69, 0)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "reddit" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(255, 69, 0)" - } - ], - "properties": { - "id": 204, - "order": 336, - "prevSize": 32, - "code": 59665, - "name": "reddit" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 203 - }, - { - "icon": { - "paths": [ - "M514.24 806.4c-171.84 0-248.64-84.608-248.64-148.032 0-32.64 23.936-55.36 56.96-55.36 73.6 0 54.4 105.792 191.68 105.792 70.144 0 108.992-38.208 108.992-77.312 0-23.552-11.52-49.6-57.856-61.056l-152.768-38.208c-123.072-30.912-145.408-97.664-145.408-160.256 0-130.176 122.24-179.072 237.056-179.072 105.6 0 230.4 58.624 230.4 136.704 0 33.472-29.44 52.928-62.080 52.928-62.72 0-51.2-87.040-177.92-87.040-62.72 0-97.92 28.416-97.92 69.12s49.28 53.76 92.16 63.552l112.64 25.088c123.52 27.712 154.88 100.224 154.88 168.512 0 105.728-81.28 184.704-244.48 184.704zM985.536 597.824l-1.28 5.76-1.92-10.24c0.64 1.92 1.92 3.2 2.56 5.12 5.12-28.8 7.68-58.24 7.68-87.68 0-65.28-12.8-128.64-38.4-188.8-24.32-57.6-59.52-109.44-103.68-153.6-44.8-44.16-96-79.36-153.6-103.68-56.256-26.944-119.616-39.744-184.896-39.744-30.72 0-61.696 3.008-91.52 8.768l5.12 2.56-10.24-1.472 5.12-1.024c-41.152-22.080-87.36-33.792-134.272-33.792-76.416 0-148.288 29.824-202.368 84.032s-83.84 126.272-83.84 202.88c0 48.832 12.48 96.768 36.032 139.2l0.832-5.312 1.792 10.24-2.56-4.928c-4.864 27.52-7.36 55.488-7.36 83.52 0 65.408 12.8 128.896 37.76 188.672 24.32 58.24 58.88 110.080 103.68 154.24 44.16 44.8 96 79.36 153.6 104.32 59.52 25.6 122.88 38.4 188.16 38.4 28.16 0 56.96-2.56 84.48-7.68l-5.12-2.56 10.24 1.92-5.76 1.28c42.88 24.32 90.88 37.12 140.8 37.12 76.16 0 147.84-29.44 202.24-83.84 53.76-53.76 83.84-126.080 83.84-202.88 0-48.64-12.8-96.64-36.48-139.52z" - ], - "attrs": [ - { - "fill": "rgb(0, 175, 240)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "skype" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(0, 175, 240)" - } - ], - "properties": { - "id": 222, - "order": 338, - "prevSize": 32, - "code": 59666, - "name": "skype" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 221 - }, - { - "icon": { - "paths": [ - "M421.504 469.12l44.16 131.648 136.768-45.824-44.16-131.2-136.768 46.080z", - "M803.2 599.68l-66.368 22.208 23.040 68.672c9.28 27.776-5.76 57.856-33.536 67.2-6.4 1.92-12.16 2.88-18.56 2.688-21.76-0.64-41.6-14.464-49.28-36.224l-23.040-68.608-136.96 45.824 23.040 68.608c8.96 27.84-5.76 57.92-33.92 67.2-6.4 2.048-12.16 2.88-18.56 2.752-21.76-0.64-41.6-14.464-49.28-36.224l-23.040-69.12-66.56 22.4c-6.4 1.92-12.16 2.56-18.56 2.56-21.76-0.64-41.6-14.72-49.28-36.48-9.6-28.16 5.76-58.24 33.28-67.2l66.56-22.4-42.176-131.776-66.176 22.4c-6.016 2.048-12.16 2.88-18.24 2.752-21.12-0.64-41.6-14.4-48.64-36.16-8.96-27.712 5.76-57.792 33.92-67.2l66.56-22.144-23.040-68.48c-8.96-27.904 5.76-57.984 33.92-67.2 28.16-9.408 58.24 5.76 67.2 33.408l23.040 68.608 136.256-45.824-23.040-68.48c-8.96-27.52 5.76-57.6 33.664-67.2 27.84-8.96 57.984 5.76 67.2 33.792l23.040 69.12 66.368-21.76c27.776-9.344 57.856 5.76 67.2 33.28 9.28 27.904-5.76 57.984-33.472 67.2l-66.432 22.4 44.16 131.648 66.176-22.016c27.84-8.96 57.92 5.76 67.2 33.92 9.344 28.16-5.76 58.24-33.28 67.2zM981.12 371.2c-105.6-351.744-258.048-433.92-609.92-328.32-351.744 105.6-433.92 257.92-328.32 609.92 105.6 351.808 257.92 433.92 609.92 328.32 351.808-105.6 433.92-257.92 328.32-609.92z" - ], - "attrs": [ - { - "fill": "rgb(86, 182, 139)" - }, - { - "fill": "rgb(86, 182, 139)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "slack" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(86, 182, 139)" - }, - { - "fill": "rgb(86, 182, 139)" - } - ], - "properties": { - "id": 223, - "order": 339, - "prevSize": 32, - "code": 59667, - "name": "slack" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 222 - }, - { - "icon": { - "paths": [ - "M810.112 932.928v-273.28h91.072v364.352h-822.464v-364.352h90.88v273.28h640.384zM260.8 841.856h458.24v-91.136h-458.24v91.136zM271.872 634.816l447.168 93.44 19.2-88.32-447.040-93.376-19.328 88.32zM329.856 419.136l414.080 193.28 38.528-83.2-414.080-193.28-38.528 82.56zM445.696 214.976l350.592 292.48 57.984-69.12-350.592-292.416-57.6 68.992zM672.128 0l-74.496 55.232 273.28 367.040 74.496-55.168-273.408-367.104z" - ], - "attrs": [ - { - "fill": "rgb(254, 122, 22)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "stackoverflow" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(254, 122, 22)" - } - ], - "properties": { - "id": 237, - "order": 340, - "prevSize": 32, - "code": 59668, - "name": "stackoverflow" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 236 - }, - { - "icon": { - "paths": [ - "M128 0h768c70.656 0 128 57.28 128 128v768c0 70.656-57.28 128-128 128h-768c-70.656 0-128-57.28-128-128v-768c0-70.656 57.28-128 128-128zM640 133.12c-33.92 0-61.44 27.52-61.44 61.44v325.12c0 33.92 27.52 61.44 61.44 61.44h189.44c33.92 0 61.44-27.52 61.44-61.44v-325.12c0-33.92-27.52-61.44-61.44-61.44h-189.44zM194.56 133.12c-33.92 0-61.44 27.52-61.44 61.44v581.12c0 33.92 27.52 61.44 61.44 61.44h189.44c33.92 0 61.44-27.52 61.44-61.44v-581.12c0-33.92-27.52-61.44-61.44-61.44h-189.44z" - ], - "attrs": [ - { - "fill": "rgb(0, 121, 191)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "trello" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(0, 121, 191)" - } - ], - "properties": { - "id": 262, - "order": 342, - "prevSize": 32, - "code": 59669, - "name": "trello" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 261 - }, - { - "icon": { - "paths": [ - "M621.312 1024c-217.344 0-299.968-160.256-299.968-273.536v-334.592h-103.104v-132.224c154.88-56 192.512-196.096 200.96-275.968 0.64-5.504 4.928-7.68 7.36-7.68h150.080v260.864h204.8v155.008h-205.632v318.72c0.64 42.688 16 101.12 94.208 101.12h3.84c26.88-0.768 63.36-8.704 82.56-17.792l49.28 146.112c-18.56 27.136-102.4 58.624-177.28 59.904h-7.616z" - ], - "attrs": [ - { - "fill": "rgb(54, 70, 93)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "tumblr" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(54, 70, 93)" - } - ], - "properties": { - "id": 265, - "order": 341, - "prevSize": 32, - "code": 59670, - "name": "tumblr" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 264 - }, - { - "icon": { - "paths": [ - "M1024 194.432c-37.76 16.64-78.080 27.968-120.64 33.088 43.328-26.048 76.672-67.2 92.352-116.224-40.576 23.68-85.568 40.96-133.44 50.56-38.272-40.96-92.8-66.56-153.344-66.56-115.968 0-210.048 94.080-210.048 209.92 0 16.64 1.92 32.64 5.44 48-174.592-8.32-329.408-92.16-433.024-218.88-18.176 30.784-28.416 66.624-28.416 105.664 0 72.96 37.12 137.152 93.44 174.848-34.432-1.088-66.88-10.56-95.168-26.24v2.56c0 101.76 72.32 186.752 168.512 206.080-17.664 4.736-36.224 7.296-55.36 7.296-13.44 0-26.24-1.28-39.040-3.712 26.88 83.456 104.32 144.192 196.48 145.92-71.68 56.32-162.56 89.856-260.48 89.856-16.64 0-33.28-0.96-49.92-2.88 93.44 59.52 203.52 94.336 322.56 94.336 386.56 0 597.76-320 597.76-597.12 0-8.96 0-17.92-0.64-26.88 40.96-29.44 76.8-66.56 104.96-108.8z" - ], - "attrs": [ - { - "fill": "rgb(29, 161, 242)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "twitter" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(29, 161, 242)" - } - ], - "properties": { - "id": 268, - "order": 343, - "prevSize": 32, - "code": 59671, - "name": "twitter" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 267 - }, - { - "icon": { - "paths": [ - "M0 470.080v80.64c0 82.88 10.24 165.76 10.24 165.76s9.984 70.4 40.704 101.568c38.912 40.768 90.112 39.488 112.896 43.776 81.92 7.872 348.16 10.24 348.16 10.24s215.168-0.256 358.4-10.624c20.096-2.432 63.744-2.56 102.656-43.392 30.72-31.104 40.704-101.632 40.704-101.632s10.24-82.816 10.24-165.76v-80.512c0-82.944-10.24-165.76-10.24-165.76s-9.984-70.528-40.704-101.632c-38.912-40.832-82.56-40.96-102.656-43.392-143.232-10.368-358.4-10.624-358.4-10.624s-266.24 2.304-348.16 10.24c-22.784 4.288-73.984 3.008-112.896 43.776-30.72 31.168-40.704 101.568-40.704 101.568s-10.24 82.944-10.24 165.76zM406.272 644.8v-287.68l276.672 144.32-276.48 143.36z" - ], - "attrs": [ - { - "fill": "rgb(205, 32, 31)" - } - ], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "brand", - "youtube" - ], - "grid": 0 - }, - "attrs": [ - { - "fill": "rgb(205, 32, 31)" - } - ], - "properties": { - "id": 297, - "order": 344, - "prevSize": 32, - "code": 59672, - "name": "youtube" - }, - "setIdx": 0, - "setId": 6, - "iconIdx": 296 - }, - { - "icon": { - "paths": [ - "M798.133 567.2c-16.533-16.533-43.733-16.533-60.267 0l-183.2 183.2v-579.733c0-23.467-19.2-42.667-42.667-42.667s-42.667 19.2-42.667 42.667v579.733l-183.2-183.2c-16.533-16.533-43.733-16.533-60.267 0s-16.533 43.733 0 60.267l256 256c0.533 0.533 1.067 1.067 1.6 1.6 0 0 0 0 0 0s0.267 0.267 0.267 0.267c0 0 0 0 0.267 0.267 0 0 0 0 0.267 0.267 0 0 0.267 0.267 0.267 0.267s0 0 0 0 0.267 0.267 0.267 0.267c0 0 0 0 0 0 3.2 2.667 6.4 4.533 9.867 6.133 0 0 0 0 0.267 0 0 0 0 0 0.267 0 4.533 1.867 9.6 3.2 14.933 3.467 0 0 0 0 0 0 0.267 0 0.267 0 0.533 0 0 0 0 0 0 0s0.267 0 0.267 0c0 0 0.267 0 0.267 0s0.267 0 0.267 0 0.267 0 0.533 0 0.267 0 0.533 0c0 0 0.267 0 0.267 0s0.267 0 0.267 0c0 0 0.267 0 0.267 0s0 0 0 0c0.267 0 0.267 0 0.533 0 0 0 0 0 0 0 5.333-0.267 10.4-1.333 14.933-3.467 0 0 0 0 0 0s0.267 0 0.267 0c0 0 0.267 0 0.267 0s0 0 0 0c3.2-1.333 6.133-3.2 9.067-5.6 0 0 0 0 0 0s0.267-0.267 0.267-0.267c0 0 0 0 0 0s0.267-0.267 0.267-0.267c0 0 0 0 0.267-0.267 0 0 0 0 0.267-0.267 0 0 0.267-0.267 0.267-0.267s0 0 0 0c0.8-0.533 1.333-1.333 2.133-2.133l255.733-255.733c17.333-16.8 17.333-44 0.533-60.533z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "arrow-down" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 12, - "order": 352, - "prevSize": 24, - "code": 59673, - "name": "arrow-down" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 11 - }, - { - "icon": { - "paths": [ - "M853.333 469.333h-579.733l183.2-183.2c16.533-16.533 16.533-43.733 0-60.267s-43.733-16.533-60.267 0l-256 256c-0.533 0.533-0.8 0.8-1.333 1.333 0 0 0 0 0 0s-0.267 0.267-0.267 0.267c0 0-0.267 0.267-0.267 0.267s0 0 0 0.267c0 0-0.267 0.267-0.267 0.267v0c-2.933 3.2-5.067 6.933-6.933 10.667 0 0 0 0 0 0s0 0.267 0 0.267c0 0 0 0.267 0 0.267s0 0 0 0c-2.133 5.067-3.2 10.667-3.2 16.533s1.067 11.467 3.2 16.533c0 0 0 0 0 0s0 0.267 0.267 0.267c0 0 0 0 0 0.267 0 0 0 0 0 0.267 1.6 3.733 3.733 7.2 6.4 10.4 0 0 0 0 0 0s0.267 0.267 0.267 0.267c0 0 0 0 0.267 0.267 0 0 0 0 0.267 0.267 0 0 0.267 0.267 0.267 0.267s0 0 0 0c0.533 0.533 1.067 1.067 1.6 1.6l256 256c8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533c16.533-16.533 16.533-43.733 0-60.267l-183.467-183.467h579.733c23.467 0 42.667-19.2 42.667-42.667s-19.2-42.667-42.667-42.667z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "arrow-left" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 13, - "order": 353, - "prevSize": 24, - "code": 59674, - "name": "arrow-left" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 12 - }, - { - "icon": { - "paths": [ - "M885.067 540.533c0 0 0 0 0 0 0.267-0.267 0.267-0.267 0.267-0.267s0 0 0 0 0.267-0.267 0.267-0.267c0 0 0.267-0.267 0.267-0.267s0 0 0 0 0.267-0.267 0.267-0.267c0 0 0 0 0 0 2.667-3.2 4.8-6.667 6.4-10.4 0 0 0 0 0-0.267 0 0 0-0.267 0-0.267s0-0.267 0-0.267c0 0 0 0 0 0 1.6-4 2.667-8.267 2.933-12.8 0 0 0 0 0 0s0-0.267 0-0.267c0 0 0-0.267 0-0.267s0-0.267 0-0.267c0 0 0-0.267 0-0.267s0 0 0-0.267c0-1.067 0-2.133 0-3.2 0 0 0 0 0-0.267 0 0 0-0.267 0-0.267s0-0.267 0-0.267c0 0 0-0.267 0-0.267s0-0.267 0-0.267c0 0 0 0 0 0-0.267-4.533-1.333-8.8-2.933-12.8 0 0 0 0 0-0.267 0 0 0 0 0-0.267 0 0 0-0.267-0.267-0.267 0 0 0 0 0 0-1.6-4-4-7.467-6.667-10.933 0 0 0 0 0 0s-0.267-0.267-0.267-0.267c0 0 0 0 0 0s-0.267-0.267-0.267-0.267-0.267-0.267-0.267-0.267 0 0 0-0.267c-0.533-0.533-1.067-1.067-1.6-1.6l-256-256c-16.533-16.533-43.733-16.533-60.267 0s-16.533 43.733 0 60.267l183.2 183.2h-579.467c-23.467 0-42.667 19.2-42.667 42.667s19.2 42.667 42.667 42.667h579.733l-183.2 183.2c-16.533 16.533-16.533 43.733 0 60.267 8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533l255.733-255.733c0.8-1.067 1.333-1.867 1.867-2.4z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "arrow-right" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 14, - "order": 354, - "prevSize": 24, - "code": 59675, - "name": "arrow-right" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 13 - }, - { - "icon": { - "paths": [ - "M798.133 396.533l-256-256c-0.533-0.533-1.067-1.067-1.6-1.6 0 0 0 0-0.267 0 0 0-0.267-0.267-0.267-0.267s-0.267 0-0.267-0.267c0 0 0 0-0.267 0 0 0-0.267-0.267-0.267-0.267s0 0 0 0c-3.2-2.933-6.933-5.067-10.933-6.667 0 0 0 0 0 0s-0.267 0-0.267 0c0 0 0 0-0.267 0 0 0 0 0-0.267 0-4-1.6-8.267-2.667-12.8-2.933 0 0 0 0 0 0s-0.267 0-0.267 0c0 0-0.267 0-0.267 0s-0.267 0-0.267 0c0 0-0.267 0-0.267 0s0 0-0.267 0c-1.067 0-2.133 0-3.2 0 0 0 0 0-0.267 0 0 0-0.267 0-0.267 0s-0.267 0-0.267 0c0 0-0.267 0-0.267 0s-0.267 0-0.267 0c0 0 0 0 0 0-4.267 0.267-8.533 1.333-12.533 2.933 0 0 0 0 0 0s-0.267 0-0.267 0c0 0-0.267 0-0.267 0s0 0 0 0c-4.267 1.6-8 4-11.733 7.2 0 0 0 0 0 0s-0.267 0.267-0.267 0.267c0 0 0 0 0 0s-0.267 0.267-0.267 0.267c0 0-0.267 0.267-0.267 0.267s0 0 0 0c-0.533 0.267-0.8 0.8-1.333 1.333l-256 256c-16.533 16.533-16.533 43.733 0 60.267s43.733 16.533 60.267 0l183.2-183.2v579.467c0 23.467 19.2 42.667 42.667 42.667s42.667-19.2 42.667-42.667v-579.733l183.2 183.2c8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533c16.8-16.533 16.8-43.733-0-60.267z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "arrow-up" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 15, - "order": 355, - "prevSize": 24, - "code": 59676, - "name": "arrow-up" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 14 - }, - { - "icon": { - "paths": [ - "M798.133 353.867c-16.533-16.533-43.733-16.533-60.267 0l-225.867 225.867-225.867-225.867c-16.533-16.533-43.733-16.533-60.267 0s-16.533 43.733 0 60.267l256 256c8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533l256-256c16.8-16.533 16.8-43.733 0-60.267z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "chevron-down" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 33, - "order": 359, - "prevSize": 24, - "code": 59677, - "name": "chevron-down" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 32 - }, - { - "icon": { - "paths": [ - "M444.267 512l225.867-225.867c16.533-16.533 16.533-43.733 0-60.267s-43.733-16.533-60.267 0l-256 256c-16.533 16.533-16.533 43.733 0 60.267l256 256c8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533c16.533-16.533 16.533-43.733 0-60.267l-225.867-225.867z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "chevron-left" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 34, - "order": 358, - "prevSize": 24, - "code": 59678, - "name": "chevron-left" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 33 - }, - { - "icon": { - "paths": [ - "M670.133 481.867l-256-256c-16.533-16.533-43.733-16.533-60.267 0s-16.533 43.733 0 60.267l225.867 225.867-225.867 225.867c-16.533 16.533-16.533 43.733 0 60.267 8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533l256-256c16.8-16.533 16.8-43.733-0-60.267z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "chevron-right" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 35, - "order": 357, - "prevSize": 24, - "code": 59679, - "name": "chevron-right" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 34 - }, - { - "icon": { - "paths": [ - "M798.133 609.867l-256-256c-16.533-16.533-43.733-16.533-60.267 0l-256 256c-16.533 16.533-16.533 43.733 0 60.267s43.733 16.533 60.267 0l225.867-225.867 225.867 225.867c8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533c16.8-16.533 16.8-43.733 0-60.267z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "chevron-up" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 36, - "order": 356, - "prevSize": 24, - "code": 59680, - "name": "chevron-up" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 35 - }, - { - "icon": { - "paths": [ - "M922.133 350.4l-384-298.667c-15.467-12-37.067-12-52.267 0l-384 298.667c-10.4 8-16.533 20.533-16.533 33.6v469.333c0 70.667 57.333 128 128 128h597.333c70.667 0 128-57.333 128-128v-469.333c0-13.067-6.133-25.6-16.533-33.6zM597.333 896h-170.667v-341.333h170.667v341.333zM853.333 853.333c0 23.467-19.2 42.667-42.667 42.667h-128v-384c0-23.467-19.2-42.667-42.667-42.667h-256c-23.467 0-42.667 19.2-42.667 42.667v384h-128c-23.467 0-42.667-19.2-42.667-42.667v-448.533l341.333-265.6 341.333 265.6v448.533z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "home" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 70, - "order": 361, - "prevSize": 24, - "code": 59681, - "name": "home" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 69 - }, - { - "icon": { - "paths": [ - "M938.667 126.4c0 0 0 0 0 0 0-0.267 0-0.267 0-0.533 0 0 0-0.267 0-0.267s0-0.267 0-0.267c0 0 0-0.267 0-0.267s0 0 0 0c-0.267-4.533-1.333-8.8-2.933-12.8 0 0 0 0 0-0.267 0 0 0 0 0-0.267 0 0 0-0.267-0.267-0.267 0 0 0 0 0 0-1.6-4-4-7.467-6.667-10.933 0 0 0 0 0 0s-0.267-0.267-0.267-0.267c0 0 0 0 0 0s-0.267-0.267-0.267-0.267-0.267-0.267-0.267-0.267 0 0 0-0.267c-1.067-1.067-1.867-2.133-2.933-2.933 0 0 0 0-0.267 0 0 0-0.267-0.267-0.267-0.267s-0.267 0-0.267-0.267c0 0 0 0-0.267 0 0 0-0.267-0.267-0.267-0.267s0 0 0 0c-3.2-2.933-6.933-5.067-10.933-6.667 0 0 0 0 0 0s-0.267 0-0.267 0c0 0 0 0-0.267 0 0 0 0 0-0.267 0-4-1.6-8.267-2.667-12.8-2.933 0 0 0 0 0 0s-0.267 0-0.267 0c0 0-0.267 0-0.267 0s-0.267 0-0.267 0c0 0-0.267 0-0.267 0s0 0-0.267 0c-0.533 0-1.067 0-1.6 0h-256c-23.467 0-42.667 19.2-42.667 42.667s19.2 42.667 42.667 42.667h153.067l-225.867 225.867c-16.533 16.533-16.533 43.733 0 60.267 8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533l225.6-226.667v153.067c0 23.467 19.2 42.667 42.667 42.667s42.667-19.2 42.667-42.667v-256c0-0.533 0-1.067 0-1.6z", - "M396.533 567.2l-225.867 225.867v-153.067c0-23.467-19.2-42.667-42.667-42.667s-42.667 19.2-42.667 42.667v256c0 5.867 1.067 11.467 3.2 16.533 0 0 0 0 0 0s0 0.267 0.267 0.267c0 0 0 0 0 0.267 0 0 0 0 0 0.267 1.6 3.733 3.733 7.2 6.4 10.4 0 0 0 0 0 0s0.267 0.267 0.267 0.267c0 0 0 0 0.267 0.267 0 0 0 0 0.267 0.267 0 0 0.267 0.267 0.267 0.267s0 0 0 0c1.067 1.067 1.867 2.133 2.933 2.933 0 0 0 0 0 0s0.267 0.267 0.267 0.267c0 0 0 0 0.267 0.267 0 0 0 0 0.267 0.267 0 0 0.267 0.267 0.267 0.267s0 0 0 0 0.267 0.267 0.267 0.267c0 0 0 0 0 0 3.2 2.667 6.4 4.533 9.867 6.133 0 0 0 0 0.267 0 0 0 0 0 0.267 0 4.533 1.867 9.6 3.2 14.933 3.467 0 0 0 0 0 0 0.267 0 0.267 0 0.533 0 0 0 0 0 0 0s0.267 0 0.267 0c0 0 0.267 0 0.267 0s0.267 0 0.267 0 0.267 0 0.533 0h256c23.467 0 42.667-19.2 42.667-42.667s-19.2-42.667-42.667-42.667h-152.8l225.867-225.867c16.533-16.533 16.533-43.733 0-60.267-16.533-16.8-43.733-16.8-60.267-0z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "maximize-2" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 84, - "order": 360, - "prevSize": 24, - "code": 59682, - "name": "maximize" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 83 - }, - { - "icon": { - "paths": [ - "M572.267 512l225.867-225.867c16.533-16.533 16.533-43.733 0-60.267s-43.733-16.533-60.267 0l-225.867 225.867-225.867-225.867c-16.533-16.533-43.733-16.533-60.267 0s-16.533 43.733 0 60.267l225.867 225.867-225.867 225.867c-16.533 16.533-16.533 43.733 0 60.267 8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533l225.867-225.867 225.867 225.867c8.267 8.267 19.2 12.533 30.133 12.533s21.867-4.267 30.133-12.533c16.533-16.533 16.533-43.733 0-60.267l-225.867-225.867z" - ], - "attrs": [], - "isMulticolor": false, - "isMulticolor2": false, - "tags": [ - "x" - ], - "grid": 24 - }, - "attrs": [], - "properties": { - "id": 160, - "order": 362, - "prevSize": 24, - "code": 59683, - "name": "x" - }, - "setIdx": 1, - "setId": 5, - "iconIdx": 159 - } - ], - "height": 1024, - "metadata": { - "name": "icons" - }, - "preferences": { - "showGlyphs": true, - "showCodes": true, - "showQuickUse": true, - "showQuickUse2": true, - "showSVGs": true, - "fontPref": { - "prefix": "icon--", - "metadata": { - "fontFamily": "icons", - "majorVersion": 1, - "minorVersion": 0 - }, - "metrics": { - "emSize": 1024, - "baseline": 6.25, - "whitespace": 50 - }, - "embed": false, - "showSelector": true, - "showMetrics": false, - "showMetadata": false, - "showVersion": false, - "noie8": true, - "ie7": false, - "includeMetadata": false, - "cssVars": false, - "cssVarsFormat": "scss", - "selector": "class", - "classSelector": ".icon", - "resetPoint": 59648 - }, - "imagePref": { - "prefix": "icon-", - "png": true, - "useClassSelector": true, - "color": 4473924, - "bgColor": 16777215, - "classSelector": ".icon" - }, - "historySize": 100, - "gridSize": 16, - "showGrid": true, - "showLiga": false - } -} \ No newline at end of file diff --git a/docs/amplify-theme/assets/js/scripts.js b/docs/amplify-theme/assets/js/scripts.js deleted file mode 100755 index e3ac9645de8..00000000000 --- a/docs/amplify-theme/assets/js/scripts.js +++ /dev/null @@ -1,467 +0,0 @@ -( function( $ ) { - 'use strict'; - -(function(document, history, location) { - - var HISTORY_SUPPORT = !!(history && history.pushState); - - var anchorScrolls = { - ANCHOR_REGEX: /^#[^ ]+$/, - OFFSET_HEIGHT_PX: 70, - - /** - * Establish events, and fix initial scroll position if a hash is provided. - */ - init: function() { - this.scrollToCurrent(); - window.addEventListener('hashchange', this.scrollToCurrent.bind(this)); - document.body.addEventListener('click', this.delegateAnchors.bind(this)); - }, - - /** - * Return the offset amount to deduct from the normal scroll position. - * Modify as appropriate to allow for dynamic calculations - */ - getFixedOffset: function() { - return this.OFFSET_HEIGHT_PX; - }, - - /** - * If the provided href is an anchor which resolves to an element on the - * page, scroll to it. - * @param {String} href - * @return {Boolean} - Was the href an anchor. - */ - scrollIfAnchor: function(href, pushToHistory) { - var match, rect, anchorOffset; - - if(!this.ANCHOR_REGEX.test(href)) { - return false; - } - - match = document.getElementById(href.slice(1)); - - if(match) { - rect = match.getBoundingClientRect(); - anchorOffset = window.pageYOffset + rect.top - this.getFixedOffset(); - window.scrollTo(window.pageXOffset, anchorOffset); - - // Add the state to history as-per normal anchor links - if(HISTORY_SUPPORT && pushToHistory) { - history.pushState({}, document.title, location.pathname + href); - } - } - - return !!match; - }, - - /** - * Attempt to scroll to the current location's hash. - */ - scrollToCurrent: function() { - this.scrollIfAnchor(window.location.hash); - }, - - /** - * If the click event's target was an anchor, fix the scroll position. - */ - delegateAnchors: function(e) { - var elem = e.target; - - if( - elem.nodeName === 'A' && - this.scrollIfAnchor(elem.getAttribute('href'), true) - ) { - e.preventDefault(); - } - } - }; - - window.addEventListener( - 'DOMContentLoaded', anchorScrolls.init.bind(anchorScrolls) - ); - })(window.document, window.history, window.location); - - // get UR parameters - $.urlParam = function(name){ - var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); - - if ( results && results[ 1 ] ) - return results[ 1 ]; - else - return 0; - }; - - // Reduce - $.fn.reduce = function( fnReduce, initialValue ) { - var values = this, - previousValue = initialValue; - - values.each( function( index, currentValue ) { - previousValue = fnReduce.call( - currentValue, - - previousValue, - currentValue, - index, - values - ); - } ); - - return previousValue; - }; - - // Title sections - $( ':header[id]' ).each( function() { - var $self = $( this ); - - $self.html( - '# ' + $self.html() - ); - } ); - - var getHeadingLevel = function( $el ) { - var tagName = $el.prop( 'tagName' ).toLowerCase(); - - if ( - ! tagName || - [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ].indexOf( tagName ) === -1 - ) { - return false; - } - - return parseInt( tagName.replace( 'h', '' ), 10 ); - }; - - var headings = $( ':header[id]' ).reduce( function( previousValue, currentValue ) { - var currentHeading = { - childrens: [], - }; - - currentHeading.$el = $( currentValue ); - currentHeading.level = getHeadingLevel( currentHeading.$el ); - - if ( ! currentHeading.$el.length || currentHeading.level === false ) { - return previousValue; - } - - previousValue.push( currentHeading ); - - return previousValue; - }, [] ); - - var majik = function( previousValue, currentHeading ) { - if ( ! currentHeading.$el.length || currentHeading.level === false ) { - return previousValue; - } - - if ( previousValue.length < 1 ) { - return [ currentHeading ]; - } - - var previousHeadingLevel = previousValue[ previousValue.length - 1 ].level; - - if ( currentHeading.level > previousHeadingLevel ) { - previousValue[ previousValue.length - 1 ].childrens.push( currentHeading ); - } else { - previousValue.push( currentHeading ); - } - - return previousValue; - }; - - var reduceLevels = function( list ) { - list = list.reduce( majik, [] ); - - var i; - for ( i = 0; i < list.length; i += 1 ) { - if ( ! list[ i ].childrens || ! list[ i ].childrens.length ) { - continue; - } - - list[ i ].childrens = reduceLevels( list[ i ].childrens ); - } - - return list; - }; - - var generateList = function( list, isFirstLevel ) { - var $ul = $( '' ); - $ul.addClass( 'level-' + list[ 0 ].level ); - if (list[ 0 ].level > 2) { - $ul.addClass( 'hidden-xs' ); - } - - if ( true === isFirstLevel ) { - $ul.addClass( 'nav first-level' ); - } - - var i, $li; - var aClass=''; - - for ( i = 0; i < list.length; i += 1 ) { - $li = $( '
  • ' ); - - if (true === isFirstLevel && i == 0 ) { - aClass='section-head orange-section-head'; - } - - $li.append( - '' + - list[ i ].$el.text().replace( /^#\ /, '' ) + - '' - ); - - if ( list[ i ].childrens && list[ i ].childrens.length ) { - $li.append( generateList( list[ i ].childrens ) ); - $li.addClass( 'has-submenu' ); - if ( isFirstLevel ) { - $li.addClass( 'first-submenu' ); - } - } - - $ul.append( $li ); - } - return $ul; - }; - - if ( headings.length ) { - headings = reduceLevels( headings ); - - generateList( headings, true ).appendTo( '.js-sections' ); - } - - // Smooth anchor scrolling - var $jsSmoothScroll = $( '.js-smooth-scroll' ); - - $jsSmoothScroll.click( function() { - $( 'html, body' ).animate( { - scrollTop: $( $( this ).attr( 'href' ) ).offset().top - 85 - }, 500 ); - - return false; - } ); - - var handleSectionsListSize = function() { - $( '.sections-list' ).css( 'width', $( '.sections-list-wrapper' ).width() ); - }; - - handleSectionsListSize(); - $( window ).on( 'resize', handleSectionsListSize ); - - // Affix init - $( window ).on( 'load', function() { - $( '.js-affix' ).affix( { - offset: { - top: function() { - return ( - this.top = $( '.hero-subheader' ).outerHeight( true ) + 100 - ); - }, - bottom: function() { - return ( - this.bottom = $( '.js-footer-area' ).outerHeight( true ) + 80 - ); - } - } - } ); - } ); - - // Offcanvas - $( '.offcanvas-toggle' ).on( 'click', function() { - $( 'body' ).toggleClass( 'offcanvas-expanded' ); - }); - - // Create next action for installation page - if ( $(location).attr('href').search ('install_n_config') > 1) { - var ref_url = $.urlParam( 'ref_url' ); - var ref_content = unescape($.urlParam( 'ref_content' )); - var ref_content_section = $.urlParam( 'ref_content_section' ); - - if (ref_url && ref_content) { - $('.installation_default_next_step').hide(); - $('.installation_custom_next_step').html ("Continue following the " + ref_content + " from where you left off."); - } else { - $('.installation_custom_next_step').hide(); - } - } - - // Handle click on tabs - $('ul.tabs li').click(function(event, stopPropogation){ - var parent_tab_class='.' + $(this).parent().parent().attr('data-group'); - var tab_id = $(this).attr('data-tab'); - - $(parent_tab_class + ' ul.tabs li').removeClass('current'); - $(parent_tab_class +' .tab-content').removeClass('current'); - - $(this).addClass('current'); - $(parent_tab_class + " #"+tab_id).addClass('current'); - - // Prevent circular trigger actions - if (stopPropogation == true) - return; - - // Find other tab classes in page and trigger click respectively - // Without propogating - // $('li.tab-link.' + tab_id).not ('.current').trigger('click',[true]); - - }); - - // Open tabs when the page is launched with the query params - if ( $.urlParam( 'platform' )) { - var platform = $.urlParam('platform'); - if (platform) { - $('li.tab-link.'+ platform ).trigger('click'); - } - } - - //Handle click for notification bar - $( 'div.row.notification-bar a' ) - .click( function( event ) { - Cookies.set('notificationMessage_LastReceived', new String( new Date() ) ); - Cookies.set('notificationStatus', 'none'); - $( 'div.row.notification-bar' ).hide(); - - if ( this.className == 'link-button' ) { - // go to link - } else { - return false; - } - } - ); - - var showNotificationBar = function ( messageDate ) { - - var lastMessageReceived; - - if (Cookies.get('notificationMessage_LastReceived')) { - lastMessageReceived = new Date( Cookies.get('notificationMessage_LastReceived')); - } else { - lastMessageReceived = new Date('January 1, 2017 12:00:00') ; - } - - // new message reveived - if ( messageDate.getTime() > lastMessageReceived.getTime() ){ - $( 'div.row.notification-bar' ).show(); - Cookies.set('notificationStatus', 'received'); - } else { - // do nothing - } - - } - - // When the last message is received. Typicaly the announcement time - showNotificationBar( new Date('August 1, 2018 11:42:00') ); - - // Hide magnifying glass in search bar - - var hideSearchIcon = function() { - let search_box = document.getElementById("search-input") - search_box.onclick = function() { - document.getElementById("search-image").style.display = "none"; - search_box.style.outline = "none"; - search_box.placeholder = "Search"; - search_box.style.paddingLeft = "2px"; - } - } - - hideSearchIcon(); - - // temporary for editing notif bar - //document.getElementById("notification-bar").style.display = "block"; - - var addLineNumbers = function() { - var pre = document.getElementsByTagName('pre'), pl = pre.length; - for (var i = 0; i < pl; i++) { - var parent = pre[i].parentNode.parentNode; - if (parent.classList.contains("language-js")) { - pre[i].innerHTML = '' + pre[i].innerHTML + ''; - var num = pre[i].innerHTML.split(/\n/).length; - for (var j = 0; j < (num - 1); j++) { - var line_num = pre[i].getElementsByTagName('span')[0]; - line_num.innerHTML += '' + (j + 1) + ''; - } - } - } - }; - - addLineNumbers(); - - var expandSearchBar = function() { - const search_box = document.getElementById("search-input-xs"); - search_box.classList.add('search-box-expanded'); - const collapse_search = document.getElementById("collapse-search"); - collapse_search.style.display = "inline-block"; - const logo_container = document.getElementById("logo-container"); - logo_container.style.visibility = "hidden"; - document.getElementsByClassName("offcanvas-toggle")[0].style.visibility = "hidden"; - } - - var collapseSearchBar = function() { - const search_box = document.getElementById("search-input-xs"); - search_box.classList.remove('search-box-expanded'); - const collapse_search = document.getElementById("collapse-search"); - collapse_search.style.display = "none"; - const logo_container = document.getElementById("logo-container"); - logo_container.style.visibility = "visible"; - search_box.value = ""; - document.getElementsByClassName("offcanvas-toggle")[0].style.visibility = "visible"; - } - - var moveOffCanvasToggle = function() { - const container = document.getElementById("toggle-button-container"); - container.classList.toggle('toggle-button-container-expanded'); - } - - let search_box = document.getElementById("search-input-xs"); - let collapse_search = document.getElementById("collapse-search"); - let offcanvas_toggle = document.getElementsByClassName("offcanvas-toggle")[0]; - - if (search_box) search_box.addEventListener("click", expandSearchBar); - if (collapse_search) collapse_search.addEventListener("click", collapseSearchBar); - if (offcanvas_toggle) offcanvas_toggle.addEventListener("click", moveOffCanvasToggle); - $('meta[name=viewport]').attr('content', 'width=device-width,initial-scale=1,maximum-scale=1'); - - let apiLink = function() { - let api_select = document.getElementById('api-select'); - if (api_select.value != "default") { - window.open(api_select.value, '_blank'); - api_select.value = "default"; - } - } - let api_select = document.getElementById('api-select'); - if (api_select) api_select.addEventListener("change", apiLink); - - let docsLink = function() { - let docs_select = document.getElementById('docs-select'); - if (docs_select.value != "default") { - if (docs_select.value.includes("aws-mobile")) { - window.open(docs_select.value, '_blank'); - docs_select.value = "default"; - } - else { - window.open(docs_select.value, '_self'); - } - } - } - let docs_select = document.getElementById('docs-select'); - if (docs_select) docs_select.addEventListener("change", docsLink); - -}( jQuery ) ); - - /** - * Function that tracks a click on an outbound link in Analytics. - * This function takes a valid URL string as an argument, and uses that URL string - * as the event label. Setting the transport method to 'beacon' lets the hit be sent - * using 'navigator.sendBeacon' in browser that support it. - */ - var trackOutboundLink = function(url) { - gtag('event', 'click', { - 'event_category': 'outbound', - 'event_label': url, - 'transport_type': 'beacon', - 'event_callback': function(){document.location = url;} - }); - - return false; - } \ No newline at end of file diff --git a/docs/amplify-theme/assets/js/scripts.min.js b/docs/amplify-theme/assets/js/scripts.min.js deleted file mode 100755 index 02340ec1973..00000000000 --- a/docs/amplify-theme/assets/js/scripts.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){"use strict";e.fn.reduce=function(e,t){var n=this,r=t;return n.each(function(t,l){r=e.call(l,r,l,t,n)}),r},e(":header[id]").each(function(){var t=e(this);t.html('# '+t.html())});var t=function(e){var t=e.prop("tagName").toLowerCase();return t&&-1!==["h1","h2","h3","h4","h5","h6"].indexOf(t)?parseInt(t.replace("h",""),10):!1},n=e(":header[id]").reduce(function(n,r){var l={childrens:[]};return l.$el=e(r),l.level=t(l.$el),l.$el.length&&l.level!==!1?(n.push(l),n):n},[]),r=function(e,t){if(!t.$el.length||t.level===!1)return e;if(e.length<1)return[t];var n=e[e.length-1].level;return t.level>n?e[e.length-1].childrens.push(t):e.push(t),e},l=function(e){e=e.reduce(r,[]);var t;for(t=0;t");r.addClass("level-"+t[0].level),!0===n&&r.addClass("nav");var l,i;for(l=0;l"),i.append(''+t[l].$el.text().replace(/^#\ /,"")+""),t[l].childrens&&t[l].childrens.length&&(i.append(a(t[l].childrens)),i.addClass("has-submenu")),r.append(i);return r};n.length&&(n=l(n),a(n,!0).appendTo(".js-sections"));var i=e(".js-smooth-scroll");i.click(function(){return e("html, body").animate({scrollTop:e(e(this).attr("href")).offset().top},1200),!1});var o=function(){e(".sections-list").css("width",e(".sections-list-wrapper").width())};o(),e(window).on("resize",o),e(window).on("load",function(){e(".js-affix").affix({offset:{top:function(){return this.top=e(".hero-subheader").outerHeight(!0)+100},bottom:function(){return this.bottom=e(".js-footer-area").outerHeight(!0)+80}}})}),e(".offcanvas-toggle").on("click",function(){e("body").toggleClass("offcanvas-expanded")})}(jQuery); diff --git a/docs/amplify-theme/assets/js/vendor/bootstrap/affix.js b/docs/amplify-theme/assets/js/vendor/bootstrap/affix.js deleted file mode 100755 index 7f6516818ac..00000000000 --- a/docs/amplify-theme/assets/js/vendor/bootstrap/affix.js +++ /dev/null @@ -1,162 +0,0 @@ -/* ======================================================================== - * Bootstrap: affix.js v3.3.7 - * http://getbootstrap.com/javascript/#affix - * ======================================================================== - * Copyright 2011-2016 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - * ======================================================================== */ - - -+function ($) { - 'use strict'; - - // AFFIX CLASS DEFINITION - // ====================== - - var Affix = function (element, options) { - this.options = $.extend({}, Affix.DEFAULTS, options) - - this.$target = $(this.options.target) - .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this)) - .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) - - this.$element = $(element) - this.affixed = null - this.unpin = null - this.pinnedOffset = null - - this.checkPosition() - } - - Affix.VERSION = '3.3.7' - - Affix.RESET = 'affix affix-top affix-bottom' - - Affix.DEFAULTS = { - offset: 0, - target: window - } - - Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) { - var scrollTop = this.$target.scrollTop() - var position = this.$element.offset() - var targetHeight = this.$target.height() - - if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false - - if (this.affixed == 'bottom') { - if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom' - return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom' - } - - var initializing = this.affixed == null - var colliderTop = initializing ? scrollTop : position.top - var colliderHeight = initializing ? targetHeight : height - - if (offsetTop != null && scrollTop <= offsetTop) return 'top' - if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom' - - return false - } - - Affix.prototype.getPinnedOffset = function () { - if (this.pinnedOffset) return this.pinnedOffset - this.$element.removeClass(Affix.RESET).addClass('affix') - var scrollTop = this.$target.scrollTop() - var position = this.$element.offset() - return (this.pinnedOffset = position.top - scrollTop) - } - - Affix.prototype.checkPositionWithEventLoop = function () { - setTimeout($.proxy(this.checkPosition, this), 1) - } - - Affix.prototype.checkPosition = function () { - if (!this.$element.is(':visible')) return - - var height = this.$element.height() - var offset = this.options.offset - var offsetTop = offset.top - var offsetBottom = offset.bottom - var scrollHeight = Math.max($(document).height(), $(document.body).height()) - - if (typeof offset != 'object') offsetBottom = offsetTop = offset - if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) - if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element) - - var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom) - - if (this.affixed != affix) { - if (this.unpin != null) this.$element.css('top', '') - - var affixType = 'affix' + (affix ? '-' + affix : '') - var e = $.Event(affixType + '.bs.affix') - - this.$element.trigger(e) - - if (e.isDefaultPrevented()) return - - this.affixed = affix - this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null - - this.$element - .removeClass(Affix.RESET) - .addClass(affixType) - .trigger(affixType.replace('affix', 'affixed') + '.bs.affix') - } - - if (affix == 'bottom') { - this.$element.offset({ - top: scrollHeight - height - offsetBottom - }) - } - } - - - // AFFIX PLUGIN DEFINITION - // ======================= - - function Plugin(option) { - return this.each(function () { - var $this = $(this) - var data = $this.data('bs.affix') - var options = typeof option == 'object' && option - - if (!data) $this.data('bs.affix', (data = new Affix(this, options))) - if (typeof option == 'string') data[option]() - }) - } - - var old = $.fn.affix - - $.fn.affix = Plugin - $.fn.affix.Constructor = Affix - - - // AFFIX NO CONFLICT - // ================= - - $.fn.affix.noConflict = function () { - $.fn.affix = old - return this - } - - - // AFFIX DATA-API - // ============== - - $(window).on('load', function () { - $('[data-spy="affix"]').each(function () { - var $spy = $(this) - var data = $spy.data() - - data.offset = data.offset || {} - - if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom - if (data.offsetTop != null) data.offset.top = data.offsetTop - - Plugin.call($spy, data) - }) - }) - -}(jQuery); diff --git a/docs/amplify-theme/assets/js/vendor/bootstrap/affix.min.js b/docs/amplify-theme/assets/js/vendor/bootstrap/affix.min.js deleted file mode 100755 index 874e3f4b0ec..00000000000 --- a/docs/amplify-theme/assets/js/vendor/bootstrap/affix.min.js +++ /dev/null @@ -1 +0,0 @@ -+function(t){"use strict";function i(i){return this.each(function(){var o=t(this),f=o.data("bs.affix"),n="object"==typeof i&&i;f||o.data("bs.affix",f=new e(this,n)),"string"==typeof i&&f[i]()})}var e=function(i,o){this.options=t.extend({},e.DEFAULTS,o),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};e.VERSION="3.3.7",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,i,e,o){var f=this.$target.scrollTop(),n=this.$element.offset(),s=this.$target.height();if(null!=e&&"top"==this.affixed)return e>f?"top":!1;if("bottom"==this.affixed)return null!=e?f+this.unpin<=n.top?!1:"bottom":t-o>=f+s?!1:"bottom";var a=null==this.affixed,h=a?f:n.top,r=a?s:i;return null!=e&&e>=f?"top":null!=o&&h+r>=t-o?"bottom":!1},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=this.$element.height(),o=this.options.offset,f=o.top,n=o.bottom,s=Math.max(t(document).height(),t(document.body).height());"object"!=typeof o&&(n=f=o),"function"==typeof f&&(f=o.top(this.$element)),"function"==typeof n&&(n=o.bottom(this.$element));var a=this.getState(s,i,f,n);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var h="affix"+(a?"-"+a:""),r=t.Event(h+".bs.affix");if(this.$element.trigger(r),r.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(h).trigger(h.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-i-n})}};var o=t.fn.affix;t.fn.affix=i,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=o,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),o=e.data();o.offset=o.offset||{},null!=o.offsetBottom&&(o.offset.bottom=o.offsetBottom),null!=o.offsetTop&&(o.offset.top=o.offsetTop),i.call(e,o)})})}(jQuery); diff --git a/docs/amplify-theme/assets/js/vendor/bootstrap/scrollspy.js b/docs/amplify-theme/assets/js/vendor/bootstrap/scrollspy.js deleted file mode 100755 index f19b59a1865..00000000000 --- a/docs/amplify-theme/assets/js/vendor/bootstrap/scrollspy.js +++ /dev/null @@ -1,172 +0,0 @@ -/* ======================================================================== - * Bootstrap: scrollspy.js v3.3.7 - * http://getbootstrap.com/javascript/#scrollspy - * ======================================================================== - * Copyright 2011-2016 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - * ======================================================================== */ - - -+function ($) { - 'use strict'; - - // SCROLLSPY CLASS DEFINITION - // ========================== - - function ScrollSpy(element, options) { - this.$body = $(document.body) - this.$scrollElement = $(element).is(document.body) ? $(window) : $(element) - this.options = $.extend({}, ScrollSpy.DEFAULTS, options) - this.selector = (this.options.target || '') + ' .nav li > a' - this.offsets = [] - this.targets = [] - this.activeTarget = null - this.scrollHeight = 0 - - this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this)) - this.refresh() - this.process() - } - - ScrollSpy.VERSION = '3.3.7' - - ScrollSpy.DEFAULTS = { - offset: 110 - } - - ScrollSpy.prototype.getScrollHeight = function () { - return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) - } - - ScrollSpy.prototype.refresh = function () { - var that = this - var offsetMethod = 'offset' - var offsetBase = 0 - - this.offsets = [] - this.targets = [] - this.scrollHeight = this.getScrollHeight() - - if (!$.isWindow(this.$scrollElement[0])) { - offsetMethod = 'position' - offsetBase = this.$scrollElement.scrollTop() - } - - this.$body - .find(this.selector) - .map(function () { - var $el = $(this) - var href = $el.data('target') || $el.attr('href') - var $href = /^#./.test(href) && $(href) - - return ($href - && $href.length - && $href.is(':visible') - && [[$href[offsetMethod]().top + offsetBase, href]]) || null - }) - .sort(function (a, b) { return a[0] - b[0] }) - .each(function () { - that.offsets.push(this[0]) - that.targets.push(this[1]) - }) - } - - ScrollSpy.prototype.process = function () { - var scrollTop = this.$scrollElement.scrollTop() + this.options.offset - var scrollHeight = this.getScrollHeight() - var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height() - var offsets = this.offsets - var targets = this.targets - var activeTarget = this.activeTarget - var i - - if (this.scrollHeight != scrollHeight) { - this.refresh() - } - - if (scrollTop >= maxScroll) { - return activeTarget != (i = targets[targets.length - 1]) && this.activate(i) - } - - if (activeTarget && scrollTop < offsets[0]) { - this.activeTarget = null - return this.clear() - } - - for (i = offsets.length; i--;) { - activeTarget != targets[i] - && scrollTop >= offsets[i] - && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1]) - && this.activate(targets[i]) - } - } - - ScrollSpy.prototype.activate = function (target) { - this.activeTarget = target - - this.clear() - - var selector = this.selector + - '[data-target="' + target + '"],' + - this.selector + '[href="' + target + '"]' - - var active = $(selector) - .parents('li') - .addClass('active') - - if (active.parent('.dropdown-menu').length) { - active = active - .closest('li.dropdown') - .addClass('active') - } - - active.trigger('activate.bs.scrollspy') - } - - ScrollSpy.prototype.clear = function () { - $(this.selector) - .parentsUntil(this.options.target, '.active') - .removeClass('active') - } - - - // SCROLLSPY PLUGIN DEFINITION - // =========================== - - function Plugin(option) { - return this.each(function () { - var $this = $(this) - var data = $this.data('bs.scrollspy') - var options = typeof option == 'object' && option - - if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options))) - if (typeof option == 'string') data[option]() - }) - } - - var old = $.fn.scrollspy - - $.fn.scrollspy = Plugin - $.fn.scrollspy.Constructor = ScrollSpy - - - // SCROLLSPY NO CONFLICT - // ===================== - - $.fn.scrollspy.noConflict = function () { - $.fn.scrollspy = old - return this - } - - - // SCROLLSPY DATA-API - // ================== - - $(window).on('load.bs.scrollspy.data-api', function () { - $('[data-spy="scroll"]').each(function () { - var $spy = $(this) - Plugin.call($spy, $spy.data()) - }) - }) - -}(jQuery); diff --git a/docs/amplify-theme/assets/js/vendor/bootstrap/scrollspy.min.js b/docs/amplify-theme/assets/js/vendor/bootstrap/scrollspy.min.js deleted file mode 100755 index b37b2c7ab63..00000000000 --- a/docs/amplify-theme/assets/js/vendor/bootstrap/scrollspy.min.js +++ /dev/null @@ -1 +0,0 @@ -+function(t){"use strict";function s(e,i){this.$body=t(document.body),this.$scrollElement=t(t(e).is(document.body)?window:e),this.options=t.extend({},s.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function e(e){return this.each(function(){var i=t(this),o=i.data("bs.scrollspy"),r="object"==typeof e&&e;o||i.data("bs.scrollspy",o=new s(this,r)),"string"==typeof e&&o[e]()})}s.VERSION="3.3.7",s.DEFAULTS={offset:110},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var s=this,e="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var s=t(this),o=s.data("target")||s.attr("href"),r=/^#./.test(o)&&t(o);return r&&r.length&&r.is(":visible")&&[[r[e]().top+i,o]]||null}).sort(function(t,s){return t[0]-s[0]}).each(function(){s.offsets.push(this[0]),s.targets.push(this[1])})},s.prototype.process=function(){var t,s=this.$scrollElement.scrollTop()+this.options.offset,e=this.getScrollHeight(),i=this.options.offset+e-this.$scrollElement.height(),o=this.offsets,r=this.targets,l=this.activeTarget;if(this.scrollHeight!=e&&this.refresh(),s>=i)return l!=(t=r[r.length-1])&&this.activate(t);if(l&&s=o[t]&&(void 0===o[t+1]||s elements - // (i.e., `typeof document.createElement( "object" ) === "function"`). - // We don't want to classify *any* DOM node as a function. - // Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5 - // Plus for old WebKit, typeof returns "function" for HTML collections - // (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756) - return typeof obj === "function" && typeof obj.nodeType !== "number" && - typeof obj.item !== "function"; - }; - - -var isWindow = function isWindow( obj ) { - return obj != null && obj === obj.window; - }; - - -var document = window.document; - - - - var preservedScriptAttributes = { - type: true, - src: true, - nonce: true, - noModule: true - }; - - function DOMEval( code, node, doc ) { - doc = doc || document; - - var i, val, - script = doc.createElement( "script" ); - - script.text = code; - if ( node ) { - for ( i in preservedScriptAttributes ) { - - // Support: Firefox 64+, Edge 18+ - // Some browsers don't support the "nonce" property on scripts. - // On the other hand, just using `getAttribute` is not enough as - // the `nonce` attribute is reset to an empty string whenever it - // becomes browsing-context connected. - // See https://github.com/whatwg/html/issues/2369 - // See https://html.spec.whatwg.org/#nonce-attributes - // The `node.getAttribute` check was added for the sake of - // `jQuery.globalEval` so that it can fake a nonce-containing node - // via an object. - val = node[ i ] || node.getAttribute && node.getAttribute( i ); - if ( val ) { - script.setAttribute( i, val ); - } - } - } - doc.head.appendChild( script ).parentNode.removeChild( script ); - } - - -function toType( obj ) { - if ( obj == null ) { - return obj + ""; - } - - // Support: Android <=2.3 only (functionish RegExp) - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call( obj ) ] || "object" : - typeof obj; -} -/* global Symbol */ -// Defining this global in .eslintrc.json would create a danger of using the global -// unguarded in another place, it seems safer to define global only for this module - - - -var - version = "3.6.1", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }; - -jQuery.fn = jQuery.prototype = { - - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - - // Return all the elements in a clean array - if ( num == null ) { - return slice.call( this ); - } - - // Return just the one element from the set - return num < 0 ? this[ num + this.length ] : this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - each: function( callback ) { - return jQuery.each( this, callback ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map( this, function( elem, i ) { - return callback.call( elem, i, elem ); - } ) ); - }, - - slice: function() { - return this.pushStack( slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - even: function() { - return this.pushStack( jQuery.grep( this, function( _elem, i ) { - return ( i + 1 ) % 2; - } ) ); - }, - - odd: function() { - return this.pushStack( jQuery.grep( this, function( _elem, i ) { - return i % 2; - } ) ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: arr.sort, - splice: arr.splice -}; - -jQuery.extend = jQuery.fn.extend = function() { - var options, name, src, copy, copyIsArray, clone, - target = arguments[ 0 ] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // Skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !isFunction( target ) ) { - target = {}; - } - - // Extend jQuery itself if only one argument is passed - if ( i === length ) { - target = this; - i--; - } - - for ( ; i < length; i++ ) { - - // Only deal with non-null/undefined values - if ( ( options = arguments[ i ] ) != null ) { - - // Extend the base object - for ( name in options ) { - copy = options[ name ]; - - // Prevent Object.prototype pollution - // Prevent never-ending loop - if ( name === "__proto__" || target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject( copy ) || - ( copyIsArray = Array.isArray( copy ) ) ) ) { - src = target[ name ]; - - // Ensure proper type for the source value - if ( copyIsArray && !Array.isArray( src ) ) { - clone = []; - } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { - clone = {}; - } else { - clone = src; - } - copyIsArray = false; - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend( { - - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - isPlainObject: function( obj ) { - var proto, Ctor; - - // Detect obvious negatives - // Use toString instead of jQuery.type to catch host objects - if ( !obj || toString.call( obj ) !== "[object Object]" ) { - return false; - } - - proto = getProto( obj ); - - // Objects with no prototype (e.g., `Object.create( null )`) are plain - if ( !proto ) { - return true; - } - - // Objects with prototype are plain iff they were constructed by a global Object function - Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; - return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; - }, - - isEmptyObject: function( obj ) { - var name; - - for ( name in obj ) { - return false; - } - return true; - }, - - // Evaluates a script in a provided context; falls back to the global one - // if not specified. - globalEval: function( code, options, doc ) { - DOMEval( code, { nonce: options && options.nonce }, doc ); - }, - - each: function( obj, callback ) { - var length, i = 0; - - if ( isArrayLike( obj ) ) { - length = obj.length; - for ( ; i < length; i++ ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } else { - for ( i in obj ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } - - return obj; - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArrayLike( Object( arr ) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - return arr == null ? -1 : indexOf.call( arr, elem, i ); - }, - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - for ( ; j < len; j++ ) { - first[ i++ ] = second[ j ]; - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var length, value, - i = 0, - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArrayLike( elems ) ) { - length = elems.length; - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return flat( ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support -} ); - -if ( typeof Symbol === "function" ) { - jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; -} - -// Populate the class2type map -jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), - function( _i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); - } ); - -function isArrayLike( obj ) { - - // Support: real iOS 8.2 only (not reproducible in simulator) - // `in` check used to prevent JIT error (gh-2145) - // hasOwn isn't used here due to false negatives - // regarding Nodelist length in IE - var length = !!obj && "length" in obj && obj.length, - type = toType( obj ); - - if ( isFunction( obj ) || isWindow( obj ) ) { - return false; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.3.6 - * https://sizzlejs.com/ - * - * Copyright JS Foundation and other contributors - * Released under the MIT license - * https://js.foundation/ - * - * Date: 2021-02-16 - */ -( function( window ) { -var i, - support, - Expr, - getText, - isXML, - tokenize, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - nonnativeSelectorCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - // Instance methods - hasOwn = ( {} ).hasOwnProperty, - arr = [], - pop = arr.pop, - pushNative = arr.push, - push = arr.push, - slice = arr.slice, - - // Use a stripped-down indexOf as it's faster than native - // https://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[ i ] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" + - "ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - - // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram - identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + - "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", - - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + - - // Operator (capture 2) - "*([*^$|!~]?=)" + whitespace + - - // "Attribute values must be CSS identifiers [capture 5] - // or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + - whitespace + "*\\]", - - pseudos = ":(" + identifier + ")(?:\\((" + - - // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: - // 1. quoted (capture 3; capture 4 or capture 5) - "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + - - // 2. simple (capture 6) - "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + - - // 3. anything else (capture 2) - ".*" + - ")\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + - whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + - "*" ), - rdescend = new RegExp( whitespace + "|>" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + identifier + ")" ), - "CLASS": new RegExp( "^\\.(" + identifier + ")" ), - "TAG": new RegExp( "^(" + identifier + "|[*])" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + - whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + - whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + - "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + - "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rhtml = /HTML$/i, - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - - // CSS escapes - // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ), - funescape = function( escape, nonHex ) { - var high = "0x" + escape.slice( 1 ) - 0x10000; - - return nonHex ? - - // Strip the backslash prefix from a non-hex escape sequence - nonHex : - - // Replace a hexadecimal escape sequence with the encoded Unicode code point - // Support: IE <=11+ - // For values outside the Basic Multilingual Plane (BMP), manually construct a - // surrogate pair - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // CSS string/identifier serialization - // https://drafts.csswg.org/cssom/#common-serializing-idioms - rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, - fcssescape = function( ch, asCodePoint ) { - if ( asCodePoint ) { - - // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - if ( ch === "\0" ) { - return "\uFFFD"; - } - - // Control characters and (dependent upon position) numbers get escaped as code points - return ch.slice( 0, -1 ) + "\\" + - ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; - } - - // Other potentially-special ASCII characters get backslash-escaped - return "\\" + ch; - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }, - - inDisabledFieldset = addCombinator( - function( elem ) { - return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset"; - }, - { dir: "parentNode", next: "legend" } - ); - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - ( arr = slice.call( preferredDoc.childNodes ) ), - preferredDoc.childNodes - ); - - // Support: Android<4.0 - // Detect silently failing push.apply - // eslint-disable-next-line no-unused-expressions - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - pushNative.apply( target, slice.call( els ) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - - // Can't trust NodeList.length - while ( ( target[ j++ ] = els[ i++ ] ) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var m, i, elem, nid, match, groups, newSelector, - newContext = context && context.ownerDocument, - - // nodeType defaults to 9, since context defaults to document - nodeType = context ? context.nodeType : 9; - - results = results || []; - - // Return early from calls with invalid selector or context - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - // Try to shortcut find operations (as opposed to filters) in HTML documents - if ( !seed ) { - setDocument( context ); - context = context || document; - - if ( documentIsHTML ) { - - // If the selector is sufficiently simple, try using a "get*By*" DOM method - // (excepting DocumentFragment context, where the methods don't exist) - if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) { - - // ID selector - if ( ( m = match[ 1 ] ) ) { - - // Document context - if ( nodeType === 9 ) { - if ( ( elem = context.getElementById( m ) ) ) { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - - // Element context - } else { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( newContext && ( elem = newContext.getElementById( m ) ) && - contains( context, elem ) && - elem.id === m ) { - - results.push( elem ); - return results; - } - } - - // Type selector - } else if ( match[ 2 ] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Class selector - } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName && - context.getElementsByClassName ) { - - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // Take advantage of querySelectorAll - if ( support.qsa && - !nonnativeSelectorCache[ selector + " " ] && - ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) && - - // Support: IE 8 only - // Exclude object elements - ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) { - - newSelector = selector; - newContext = context; - - // qSA considers elements outside a scoping root when evaluating child or - // descendant combinators, which is not what we want. - // In such cases, we work around the behavior by prefixing every selector in the - // list with an ID selector referencing the scope context. - // The technique has to be used as well when a leading combinator is used - // as such selectors are not recognized by querySelectorAll. - // Thanks to Andrew Dupont for this technique. - if ( nodeType === 1 && - ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) { - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; - - // We can use :scope instead of the ID hack if the browser - // supports it & if we're not changing the context. - if ( newContext !== context || !support.scope ) { - - // Capture the context ID, setting it first if necessary - if ( ( nid = context.getAttribute( "id" ) ) ) { - nid = nid.replace( rcssescape, fcssescape ); - } else { - context.setAttribute( "id", ( nid = expando ) ); - } - } - - // Prefix every selector in the list - groups = tokenize( selector ); - i = groups.length; - while ( i-- ) { - groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " + - toSelector( groups[ i ] ); - } - newSelector = groups.join( "," ); - } - - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch ( qsaError ) { - nonnativeSelectorCache( selector, true ); - } finally { - if ( nid === expando ) { - context.removeAttribute( "id" ); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {function(string, object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return ( cache[ key + " " ] = value ); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created element and returns a boolean result - */ -function assert( fn ) { - var el = document.createElement( "fieldset" ); - - try { - return !!fn( el ); - } catch ( e ) { - return false; - } finally { - - // Remove from its parent by default - if ( el.parentNode ) { - el.parentNode.removeChild( el ); - } - - // release memory in IE - el = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split( "|" ), - i = arr.length; - - while ( i-- ) { - Expr.attrHandle[ arr[ i ] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - a.sourceIndex - b.sourceIndex; - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( ( cur = cur.nextSibling ) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return ( name === "input" || name === "button" ) && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for :enabled/:disabled - * @param {Boolean} disabled true for :disabled; false for :enabled - */ -function createDisabledPseudo( disabled ) { - - // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable - return function( elem ) { - - // Only certain elements can match :enabled or :disabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled - if ( "form" in elem ) { - - // Check for inherited disabledness on relevant non-disabled elements: - // * listed form-associated elements in a disabled fieldset - // https://html.spec.whatwg.org/multipage/forms.html#category-listed - // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled - // * option elements in a disabled optgroup - // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled - // All such elements have a "form" property. - if ( elem.parentNode && elem.disabled === false ) { - - // Option elements defer to a parent optgroup if present - if ( "label" in elem ) { - if ( "label" in elem.parentNode ) { - return elem.parentNode.disabled === disabled; - } else { - return elem.disabled === disabled; - } - } - - // Support: IE 6 - 11 - // Use the isDisabled shortcut property to check for disabled fieldset ancestors - return elem.isDisabled === disabled || - - // Where there is no isDisabled, check manually - /* jshint -W018 */ - elem.isDisabled !== !disabled && - inDisabledFieldset( elem ) === disabled; - } - - return elem.disabled === disabled; - - // Try to winnow out elements that can't be disabled before trusting the disabled property. - // Some victims get caught in our net (label, legend, menu, track), but it shouldn't - // even exist on them, let alone have a boolean value. - } else if ( "label" in elem ) { - return elem.disabled === disabled; - } - - // Remaining elements are neither :enabled nor :disabled - return false; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction( function( argument ) { - argument = +argument; - return markFunction( function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ ( j = matchIndexes[ i ] ) ] ) { - seed[ j ] = !( matches[ j ] = seed[ j ] ); - } - } - } ); - } ); -} - -/** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ -function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; -} - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - var namespace = elem && elem.namespaceURI, - docElem = elem && ( elem.ownerDocument || elem ).documentElement; - - // Support: IE <=8 - // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes - // https://bugs.jquery.com/ticket/4833 - return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" ); -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, subWindow, - doc = node ? node.ownerDocument || node : preferredDoc; - - // Return early if doc is invalid or already selected - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Update global variables - document = doc; - docElem = document.documentElement; - documentIsHTML = !isXML( document ); - - // Support: IE 9 - 11+, Edge 12 - 18+ - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( preferredDoc != document && - ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) { - - // Support: IE 11, Edge - if ( subWindow.addEventListener ) { - subWindow.addEventListener( "unload", unloadHandler, false ); - - // Support: IE 9 - 10 only - } else if ( subWindow.attachEvent ) { - subWindow.attachEvent( "onunload", unloadHandler ); - } - } - - // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only, - // Safari 4 - 5 only, Opera <=11.6 - 12.x only - // IE/Edge & older browsers don't support the :scope pseudo-class. - // Support: Safari 6.0 only - // Safari 6.0 supports :scope but it's an alias of :root there. - support.scope = assert( function( el ) { - docElem.appendChild( el ).appendChild( document.createElement( "div" ) ); - return typeof el.querySelectorAll !== "undefined" && - !el.querySelectorAll( ":scope fieldset div" ).length; - } ); - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert( function( el ) { - el.className = "i"; - return !el.getAttribute( "className" ); - } ); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert( function( el ) { - el.appendChild( document.createComment( "" ) ); - return !el.getElementsByTagName( "*" ).length; - } ); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( document.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programmatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert( function( el ) { - docElem.appendChild( el ).id = expando; - return !document.getElementsByName || !document.getElementsByName( expando ).length; - } ); - - // ID filter and find - if ( support.getById ) { - Expr.filter[ "ID" ] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute( "id" ) === attrId; - }; - }; - Expr.find[ "ID" ] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var elem = context.getElementById( id ); - return elem ? [ elem ] : []; - } - }; - } else { - Expr.filter[ "ID" ] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && - elem.getAttributeNode( "id" ); - return node && node.value === attrId; - }; - }; - - // Support: IE 6 - 7 only - // getElementById is not reliable as a find shortcut - Expr.find[ "ID" ] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var node, i, elems, - elem = context.getElementById( id ); - - if ( elem ) { - - // Verify the id attribute - node = elem.getAttributeNode( "id" ); - if ( node && node.value === id ) { - return [ elem ]; - } - - // Fall back on getElementsByName - elems = context.getElementsByName( id ); - i = 0; - while ( ( elem = elems[ i++ ] ) ) { - node = elem.getAttributeNode( "id" ); - if ( node && node.value === id ) { - return [ elem ]; - } - } - } - - return []; - } - }; - } - - // Tag - Expr.find[ "TAG" ] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( ( elem = results[ i++ ] ) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See https://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) { - - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert( function( el ) { - - var input; - - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // https://bugs.jquery.com/ticket/12359 - docElem.appendChild( el ).innerHTML = "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !el.querySelectorAll( "[selected]" ).length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ - if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push( "~=" ); - } - - // Support: IE 11+, Edge 15 - 18+ - // IE 11/Edge don't find elements on a `[name='']` query in some cases. - // Adding a temporary attribute to the document before the selection works - // around the issue. - // Interestingly, IE 10 & older don't seem to have the issue. - input = document.createElement( "input" ); - input.setAttribute( "name", "" ); - el.appendChild( input ); - if ( !el.querySelectorAll( "[name='']" ).length ) { - rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" + - whitespace + "*(?:''|\"\")" ); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !el.querySelectorAll( ":checked" ).length ) { - rbuggyQSA.push( ":checked" ); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibling-combinator selector` fails - if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push( ".#.+[+~]" ); - } - - // Support: Firefox <=3.6 - 5 only - // Old Firefox doesn't throw on a badly-escaped identifier. - el.querySelectorAll( "\\\f" ); - rbuggyQSA.push( "[\\r\\n\\f]" ); - } ); - - assert( function( el ) { - el.innerHTML = "" + - ""; - - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = document.createElement( "input" ); - input.setAttribute( "type", "hidden" ); - el.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( el.querySelectorAll( "[name=d]" ).length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( el.querySelectorAll( ":enabled" ).length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: IE9-11+ - // IE's :disabled selector does not pick up the children of disabled fieldsets - docElem.appendChild( el ).disabled = true; - if ( el.querySelectorAll( ":disabled" ).length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: Opera 10 - 11 only - // Opera 10-11 does not throw on post-comma invalid pseudos - el.querySelectorAll( "*,:x" ); - rbuggyQSA.push( ",.*:" ); - } ); - } - - if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector ) ) ) ) { - - assert( function( el ) { - - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( el, "*" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( el, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - } ); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully self-exclusive - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - ) ); - } : - function( a, b ) { - if ( b ) { - while ( ( b = b.parentNode ) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) { - - // Choose the first element that is related to our preferred document - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( a == document || a.ownerDocument == preferredDoc && - contains( preferredDoc, a ) ) { - return -1; - } - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( b == document || b.ownerDocument == preferredDoc && - contains( preferredDoc, b ) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - /* eslint-disable eqeqeq */ - return a == document ? -1 : - b == document ? 1 : - /* eslint-enable eqeqeq */ - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( ( cur = cur.parentNode ) ) { - ap.unshift( cur ); - } - cur = b; - while ( ( cur = cur.parentNode ) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[ i ] === bp[ i ] ) { - i++; - } - - return i ? - - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[ i ], bp[ i ] ) : - - // Otherwise nodes in our document sort first - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - /* eslint-disable eqeqeq */ - ap[ i ] == preferredDoc ? -1 : - bp[ i ] == preferredDoc ? 1 : - /* eslint-enable eqeqeq */ - 0; - }; - - return document; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - setDocument( elem ); - - if ( support.matchesSelector && documentIsHTML && - !nonnativeSelectorCache[ expr + " " ] && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch ( e ) { - nonnativeSelectorCache( expr, true ); - } - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - - // Set document vars if needed - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( ( context.ownerDocument || context ) != document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - - // Set document vars if needed - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( ( elem.ownerDocument || elem ) != document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - ( val = elem.getAttributeNode( name ) ) && val.specified ? - val.value : - null; -}; - -Sizzle.escape = function( sel ) { - return ( sel + "" ).replace( rcssescape, fcssescape ); -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( ( elem = results[ i++ ] ) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - - // If no nodeType, this is expected to be an array - while ( ( node = elem[ i++ ] ) ) { - - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[ 1 ] = match[ 1 ].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[ 3 ] = ( match[ 3 ] || match[ 4 ] || - match[ 5 ] || "" ).replace( runescape, funescape ); - - if ( match[ 2 ] === "~=" ) { - match[ 3 ] = " " + match[ 3 ] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[ 1 ] = match[ 1 ].toLowerCase(); - - if ( match[ 1 ].slice( 0, 3 ) === "nth" ) { - - // nth-* requires argument - if ( !match[ 3 ] ) { - Sizzle.error( match[ 0 ] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[ 4 ] = +( match[ 4 ] ? - match[ 5 ] + ( match[ 6 ] || 1 ) : - 2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) ); - match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" ); - - // other types prohibit arguments - } else if ( match[ 3 ] ) { - Sizzle.error( match[ 0 ] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[ 6 ] && match[ 2 ]; - - if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[ 3 ] ) { - match[ 2 ] = match[ 4 ] || match[ 5 ] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - - // Get excess from tokenize (recursively) - ( excess = tokenize( unquoted, true ) ) && - - // advance to the next closing parenthesis - ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) { - - // excess is a negative index - match[ 0 ] = match[ 0 ].slice( 0, excess ); - match[ 2 ] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { - return true; - } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - ( pattern = new RegExp( "(^|" + whitespace + - ")" + className + "(" + whitespace + "|$)" ) ) && classCache( - className, function( elem ) { - return pattern.test( - typeof elem.className === "string" && elem.className || - typeof elem.getAttribute !== "undefined" && - elem.getAttribute( "class" ) || - "" - ); - } ); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - /* eslint-disable max-len */ - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - /* eslint-enable max-len */ - - }; - }, - - "CHILD": function( type, what, _argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, _context, xml ) { - var cache, uniqueCache, outerCache, node, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType, - diff = false; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( ( node = node[ dir ] ) ) { - if ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) { - - return false; - } - } - - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - - // Seek `elem` from a previously-cached index - - // ...in a gzip-friendly way - node = parent; - outerCache = node[ expando ] || ( node[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - ( outerCache[ node.uniqueID ] = {} ); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex && cache[ 2 ]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( ( node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - ( diff = nodeIndex = 0 ) || start.pop() ) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - } else { - - // Use previously-cached element index if available - if ( useCache ) { - - // ...in a gzip-friendly way - node = elem; - outerCache = node[ expando ] || ( node[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - ( outerCache[ node.uniqueID ] = {} ); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex; - } - - // xml :nth-child(...) - // or :nth-last-child(...) or :nth(-last)?-of-type(...) - if ( diff === false ) { - - // Use the same loop as above to seek `elem` from the start - while ( ( node = ++nodeIndex && node && node[ dir ] || - ( diff = nodeIndex = 0 ) || start.pop() ) ) { - - if ( ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) && - ++diff ) { - - // Cache the index of each encountered element - if ( useCache ) { - outerCache = node[ expando ] || - ( node[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - ( outerCache[ node.uniqueID ] = {} ); - - uniqueCache[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction( function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[ i ] ); - seed[ idx ] = !( matches[ idx ] = matched[ i ] ); - } - } ) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - - // Potentially complex pseudos - "not": markFunction( function( selector ) { - - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction( function( seed, matches, _context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( ( elem = unmatched[ i ] ) ) { - seed[ i ] = !( matches[ i ] = elem ); - } - } - } ) : - function( elem, _context, xml ) { - input[ 0 ] = elem; - matcher( input, null, xml, results ); - - // Don't keep the element (issue #299) - input[ 0 ] = null; - return !results.pop(); - }; - } ), - - "has": markFunction( function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - } ), - - "contains": markFunction( function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1; - }; - } ), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - - // lang value must be a valid identifier - if ( !ridentifier.test( lang || "" ) ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( ( elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 ); - return false; - }; - } ), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && - ( !document.hasFocus || document.hasFocus() ) && - !!( elem.type || elem.href || ~elem.tabIndex ); - }, - - // Boolean properties - "enabled": createDisabledPseudo( false ), - "disabled": createDisabledPseudo( true ), - - "checked": function( elem ) { - - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return ( nodeName === "input" && !!elem.checked ) || - ( nodeName === "option" && !!elem.selected ); - }, - - "selected": function( elem ) { - - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - // eslint-disable-next-line no-unused-expressions - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos[ "empty" ]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( ( attr = elem.getAttribute( "type" ) ) == null || - attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo( function() { - return [ 0 ]; - } ), - - "last": createPositionalPseudo( function( _matchIndexes, length ) { - return [ length - 1 ]; - } ), - - "eq": createPositionalPseudo( function( _matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - } ), - - "even": createPositionalPseudo( function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ), - - "odd": createPositionalPseudo( function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ), - - "lt": createPositionalPseudo( function( matchIndexes, length, argument ) { - var i = argument < 0 ? - argument + length : - argument > length ? - length : - argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ), - - "gt": createPositionalPseudo( function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ) - } -}; - -Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || ( match = rcomma.exec( soFar ) ) ) { - if ( match ) { - - // Don't consume trailing commas as valid - soFar = soFar.slice( match[ 0 ].length ) || soFar; - } - groups.push( ( tokens = [] ) ); - } - - matched = false; - - // Combinators - if ( ( match = rcombinators.exec( soFar ) ) ) { - matched = match.shift(); - tokens.push( { - value: matched, - - // Cast descendant combinators to space - type: match[ 0 ].replace( rtrim, " " ) - } ); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] || - ( match = preFilters[ type ]( match ) ) ) ) { - matched = match.shift(); - tokens.push( { - value: matched, - type: type, - matches: match - } ); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[ i ].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - skip = combinator.next, - key = skip || dir, - checkNonElements = base && key === "parentNode", - doneName = done++; - - return combinator.first ? - - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( ( elem = elem[ dir ] ) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - return false; - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, uniqueCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching - if ( xml ) { - while ( ( elem = elem[ dir ] ) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( ( elem = elem[ dir ] ) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || ( elem[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ elem.uniqueID ] || - ( outerCache[ elem.uniqueID ] = {} ); - - if ( skip && skip === elem.nodeName.toLowerCase() ) { - elem = elem[ dir ] || elem; - } else if ( ( oldCache = uniqueCache[ key ] ) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return ( newCache[ 2 ] = oldCache[ 2 ] ); - } else { - - // Reuse newcache so results back-propagate to previous elements - uniqueCache[ key ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) { - return true; - } - } - } - } - } - return false; - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[ i ]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[ 0 ]; -} - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[ i ], results ); - } - return results; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( ( elem = unmatched[ i ] ) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction( function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( - selector || "*", - context.nodeType ? [ context ] : context, - [] - ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( ( elem = temp[ i ] ) ) { - matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem ); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( ( elem = matcherOut[ i ] ) ) { - - // Restore matcherIn since elem is not yet a final match - temp.push( ( matcherIn[ i ] = elem ) ); - } - } - postFinder( null, ( matcherOut = [] ), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( ( elem = matcherOut[ i ] ) && - ( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) { - - seed[ temp ] = !( results[ temp ] = elem ); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - } ); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[ 0 ].type ], - implicitRelative = leadingRelative || Expr.relative[ " " ], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - ( checkContext = context ).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) { - matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ]; - } else { - matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[ j ].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens - .slice( 0, i - 1 ) - .concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } ) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ), - - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ), - len = elems.length; - - if ( outermost ) { - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - outermostContext = context == document || context || outermost; - } - - // Add elements passing elementMatchers directly to results - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( !context && elem.ownerDocument != document ) { - setDocument( elem ); - xml = !documentIsHTML; - } - while ( ( matcher = elementMatchers[ j++ ] ) ) { - if ( matcher( elem, context || document, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - - // They will have gone through all possible matchers - if ( ( elem = !matcher && elem ) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // `i` is now the count of elements visited above, and adding it to `matchedCount` - // makes the latter nonnegative. - matchedCount += i; - - // Apply set filters to unmatched elements - // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` - // equals `i`), unless we didn't visit _any_ elements in the above loop because we have - // no element matchers and no seed. - // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that - // case, which will result in a "00" `matchedCount` that differs from `i` but is also - // numerically zero. - if ( bySet && i !== matchedCount ) { - j = 0; - while ( ( matcher = setMatchers[ j++ ] ) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !( unmatched[ i ] || setMatched[ i ] ) ) { - setMatched[ i ] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[ i ] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( - selector, - matcherFromGroupMatchers( elementMatchers, setMatchers ) - ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; -}; - -/** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against - */ -select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( ( selector = compiled.selector || selector ) ); - - results = results || []; - - // Try to minimize operations if there is only one selector in the list and no seed - // (the latter of which guarantees us context) - if ( match.length === 1 ) { - - // Reduce context if the leading compound selector is an ID - tokens = match[ 0 ] = match[ 0 ].slice( 0 ); - if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" && - context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) { - - context = ( Expr.find[ "ID" ]( token.matches[ 0 ] - .replace( runescape, funescape ), context ) || [] )[ 0 ]; - if ( !context ) { - return results; - - // Precompiled matchers will still verify ancestry, so step up a level - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[ i ]; - - // Abort if we hit a combinator - if ( Expr.relative[ ( type = token.type ) ] ) { - break; - } - if ( ( find = Expr.find[ type ] ) ) { - - // Search, expanding context for leading sibling combinators - if ( ( seed = find( - token.matches[ 0 ].replace( runescape, funescape ), - rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) || - context - ) ) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - // Compile and execute a filtering function if one is not provided - // Provide `match` to avoid retokenization if we modified the selector above - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - !context || rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; -}; - -// One-time assignments - -// Sort stability -support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert( function( el ) { - - // Should return 1, but returns 4 (following) - return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1; -} ); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert( function( el ) { - el.innerHTML = ""; - return el.firstChild.getAttribute( "href" ) === "#"; -} ) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - } ); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert( function( el ) { - el.innerHTML = ""; - el.firstChild.setAttribute( "value", "" ); - return el.firstChild.getAttribute( "value" ) === ""; -} ) ) { - addHandle( "value", function( elem, _name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - } ); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert( function( el ) { - return el.getAttribute( "disabled" ) == null; -} ) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - ( val = elem.getAttributeNode( name ) ) && val.specified ? - val.value : - null; - } - } ); -} - -return Sizzle; - -} )( window ); - - - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; - -// Deprecated -jQuery.expr[ ":" ] = jQuery.expr.pseudos; -jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; -jQuery.escapeSelector = Sizzle.escape; - - - - -var dir = function( elem, dir, until ) { - var matched = [], - truncate = until !== undefined; - - while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { - if ( elem.nodeType === 1 ) { - if ( truncate && jQuery( elem ).is( until ) ) { - break; - } - matched.push( elem ); - } - } - return matched; -}; - - -var siblings = function( n, elem ) { - var matched = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - matched.push( n ); - } - } - - return matched; -}; - - -var rneedsContext = jQuery.expr.match.needsContext; - - - -function nodeName( elem, name ) { - - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - -} -var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); - - - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - return !!qualifier.call( elem, i, elem ) !== not; - } ); - } - - // Single element - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - } ); - } - - // Arraylike of elements (jQuery, arguments, Array) - if ( typeof qualifier !== "string" ) { - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) > -1 ) !== not; - } ); - } - - // Filtered directly for both simple and complex selectors - return jQuery.filter( qualifier, elements, not ); -} - -jQuery.filter = function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - if ( elems.length === 1 && elem.nodeType === 1 ) { - return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; - } - - return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - } ) ); -}; - -jQuery.fn.extend( { - find: function( selector ) { - var i, ret, - len = this.length, - self = this; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter( function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - } ) ); - } - - ret = this.pushStack( [] ); - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - return len > 1 ? jQuery.uniqueSort( ret ) : ret; - }, - filter: function( selector ) { - return this.pushStack( winnow( this, selector || [], false ) ); - }, - not: function( selector ) { - return this.pushStack( winnow( this, selector || [], true ) ); - }, - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - } -} ); - - -// Initialize a jQuery object - - -// A central reference to the root jQuery(document) -var rootjQuery, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (trac-9521) - // Strict HTML recognition (trac-11290: must start with <) - // Shortcut simple #id case for speed - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, - - init = jQuery.fn.init = function( selector, context, root ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Method init() accepts an alternate rootjQuery - // so migrate can support jQuery.sub (gh-2101) - root = root || rootjQuery; - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector[ 0 ] === "<" && - selector[ selector.length - 1 ] === ">" && - selector.length >= 3 ) { - - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && ( match[ 1 ] || !context ) ) { - - // HANDLE: $(html) -> $(array) - if ( match[ 1 ] ) { - context = context instanceof jQuery ? context[ 0 ] : context; - - // Option to run scripts is true for back-compat - // Intentionally let the error be thrown if parseHTML is not present - jQuery.merge( this, jQuery.parseHTML( - match[ 1 ], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - - // Properties of context are called as methods if possible - if ( isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[ 2 ] ); - - if ( elem ) { - - // Inject the element directly into the jQuery object - this[ 0 ] = elem; - this.length = 1; - } - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || root ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this[ 0 ] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( isFunction( selector ) ) { - return root.ready !== undefined ? - root.ready( selector ) : - - // Execute immediately if ready is not present - selector( jQuery ); - } - - return jQuery.makeArray( selector, this ); - }; - -// Give the init function the jQuery prototype for later instantiation -init.prototype = jQuery.fn; - -// Initialize central reference -rootjQuery = jQuery( document ); - - -var rparentsprev = /^(?:parents|prev(?:Until|All))/, - - // Methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend( { - has: function( target ) { - var targets = jQuery( target, this ), - l = targets.length; - - return this.filter( function() { - var i = 0; - for ( ; i < l; i++ ) { - if ( jQuery.contains( this, targets[ i ] ) ) { - return true; - } - } - } ); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - matched = [], - targets = typeof selectors !== "string" && jQuery( selectors ); - - // Positional selectors never match, since there's no _selection_ context - if ( !rneedsContext.test( selectors ) ) { - for ( ; i < l; i++ ) { - for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { - - // Always skip document fragments - if ( cur.nodeType < 11 && ( targets ? - targets.index( cur ) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector( cur, selectors ) ) ) { - - matched.push( cur ); - break; - } - } - } - } - - return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); - }, - - // Determine the position of an element within the set - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; - } - - // Index in selector - if ( typeof elem === "string" ) { - return indexOf.call( jQuery( elem ), this[ 0 ] ); - } - - // Locate the position of the desired element - return indexOf.call( this, - - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[ 0 ] : elem - ); - }, - - add: function( selector, context ) { - return this.pushStack( - jQuery.uniqueSort( - jQuery.merge( this.get(), jQuery( selector, context ) ) - ) - ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter( selector ) - ); - } -} ); - -function sibling( cur, dir ) { - while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} - return cur; -} - -jQuery.each( { - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, _i, until ) { - return dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, _i, until ) { - return dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, _i, until ) { - return dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return siblings( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return siblings( elem.firstChild ); - }, - contents: function( elem ) { - if ( elem.contentDocument != null && - - // Support: IE 11+ - // elements with no `data` attribute has an object - // `contentDocument` with a `null` prototype. - getProto( elem.contentDocument ) ) { - - return elem.contentDocument; - } - - // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only - // Treat the template element as a regular one in browsers that - // don't support it. - if ( nodeName( elem, "template" ) ) { - elem = elem.content || elem; - } - - return jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var matched = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - matched = jQuery.filter( selector, matched ); - } - - if ( this.length > 1 ) { - - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - jQuery.uniqueSort( matched ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - matched.reverse(); - } - } - - return this.pushStack( matched ); - }; -} ); -var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); - - - -// Convert String-formatted options into Object-formatted ones -function createOptions( options ) { - var object = {}; - jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { - object[ flag ] = true; - } ); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - createOptions( options ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - - // Last fire value for non-forgettable lists - memory, - - // Flag to know if list was already fired - fired, - - // Flag to prevent firing - locked, - - // Actual callback list - list = [], - - // Queue of execution data for repeatable lists - queue = [], - - // Index of currently firing callback (modified by add/remove as needed) - firingIndex = -1, - - // Fire callbacks - fire = function() { - - // Enforce single-firing - locked = locked || options.once; - - // Execute callbacks for all pending executions, - // respecting firingIndex overrides and runtime changes - fired = firing = true; - for ( ; queue.length; firingIndex = -1 ) { - memory = queue.shift(); - while ( ++firingIndex < list.length ) { - - // Run callback and check for early termination - if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && - options.stopOnFalse ) { - - // Jump to end and forget the data so .add doesn't re-fire - firingIndex = list.length; - memory = false; - } - } - } - - // Forget the data if we're done with it - if ( !options.memory ) { - memory = false; - } - - firing = false; - - // Clean up if we're done firing for good - if ( locked ) { - - // Keep an empty list if we have data for future add calls - if ( memory ) { - list = []; - - // Otherwise, this object is spent - } else { - list = ""; - } - } - }, - - // Actual Callbacks object - self = { - - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - - // If we have memory from a past run, we should fire after adding - if ( memory && !firing ) { - firingIndex = list.length - 1; - queue.push( memory ); - } - - ( function add( args ) { - jQuery.each( args, function( _, arg ) { - if ( isFunction( arg ) ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && toType( arg ) !== "string" ) { - - // Inspect recursively - add( arg ); - } - } ); - } )( arguments ); - - if ( memory && !firing ) { - fire(); - } - } - return this; - }, - - // Remove a callback from the list - remove: function() { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - - // Handle firing indexes - if ( index <= firingIndex ) { - firingIndex--; - } - } - } ); - return this; - }, - - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? - jQuery.inArray( fn, list ) > -1 : - list.length > 0; - }, - - // Remove all callbacks from the list - empty: function() { - if ( list ) { - list = []; - } - return this; - }, - - // Disable .fire and .add - // Abort any current/pending executions - // Clear all callbacks and values - disable: function() { - locked = queue = []; - list = memory = ""; - return this; - }, - disabled: function() { - return !list; - }, - - // Disable .fire - // Also disable .add unless we have memory (since it would have no effect) - // Abort any pending executions - lock: function() { - locked = queue = []; - if ( !memory && !firing ) { - list = memory = ""; - } - return this; - }, - locked: function() { - return !!locked; - }, - - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( !locked ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - queue.push( args ); - if ( !firing ) { - fire(); - } - } - return this; - }, - - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; - - -function Identity( v ) { - return v; -} -function Thrower( ex ) { - throw ex; -} - -function adoptValue( value, resolve, reject, noValue ) { - var method; - - try { - - // Check for promise aspect first to privilege synchronous behavior - if ( value && isFunction( ( method = value.promise ) ) ) { - method.call( value ).done( resolve ).fail( reject ); - - // Other thenables - } else if ( value && isFunction( ( method = value.then ) ) ) { - method.call( value, resolve, reject ); - - // Other non-thenables - } else { - - // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: - // * false: [ value ].slice( 0 ) => resolve( value ) - // * true: [ value ].slice( 1 ) => resolve() - resolve.apply( undefined, [ value ].slice( noValue ) ); - } - - // For Promises/A+, convert exceptions into rejections - // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in - // Deferred#then to conditionally suppress rejection. - } catch ( value ) { - - // Support: Android 4.0 only - // Strict mode functions invoked without .call/.apply get global-object context - reject.apply( undefined, [ value ] ); - } -} - -jQuery.extend( { - - Deferred: function( func ) { - var tuples = [ - - // action, add listener, callbacks, - // ... .then handlers, argument index, [final state] - [ "notify", "progress", jQuery.Callbacks( "memory" ), - jQuery.Callbacks( "memory" ), 2 ], - [ "resolve", "done", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 0, "resolved" ], - [ "reject", "fail", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 1, "rejected" ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - "catch": function( fn ) { - return promise.then( null, fn ); - }, - - // Keep pipe for back-compat - pipe: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - - return jQuery.Deferred( function( newDefer ) { - jQuery.each( tuples, function( _i, tuple ) { - - // Map tuples (progress, done, fail) to arguments (done, fail, progress) - var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; - - // deferred.progress(function() { bind to newDefer or newDefer.notify }) - // deferred.done(function() { bind to newDefer or newDefer.resolve }) - // deferred.fail(function() { bind to newDefer or newDefer.reject }) - deferred[ tuple[ 1 ] ]( function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && isFunction( returned.promise ) ) { - returned.promise() - .progress( newDefer.notify ) - .done( newDefer.resolve ) - .fail( newDefer.reject ); - } else { - newDefer[ tuple[ 0 ] + "With" ]( - this, - fn ? [ returned ] : arguments - ); - } - } ); - } ); - fns = null; - } ).promise(); - }, - then: function( onFulfilled, onRejected, onProgress ) { - var maxDepth = 0; - function resolve( depth, deferred, handler, special ) { - return function() { - var that = this, - args = arguments, - mightThrow = function() { - var returned, then; - - // Support: Promises/A+ section 2.3.3.3.3 - // https://promisesaplus.com/#point-59 - // Ignore double-resolution attempts - if ( depth < maxDepth ) { - return; - } - - returned = handler.apply( that, args ); - - // Support: Promises/A+ section 2.3.1 - // https://promisesaplus.com/#point-48 - if ( returned === deferred.promise() ) { - throw new TypeError( "Thenable self-resolution" ); - } - - // Support: Promises/A+ sections 2.3.3.1, 3.5 - // https://promisesaplus.com/#point-54 - // https://promisesaplus.com/#point-75 - // Retrieve `then` only once - then = returned && - - // Support: Promises/A+ section 2.3.4 - // https://promisesaplus.com/#point-64 - // Only check objects and functions for thenability - ( typeof returned === "object" || - typeof returned === "function" ) && - returned.then; - - // Handle a returned thenable - if ( isFunction( then ) ) { - - // Special processors (notify) just wait for resolution - if ( special ) { - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ) - ); - - // Normal processors (resolve) also hook into progress - } else { - - // ...and disregard older resolution values - maxDepth++; - - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ), - resolve( maxDepth, deferred, Identity, - deferred.notifyWith ) - ); - } - - // Handle all other returned values - } else { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Identity ) { - that = undefined; - args = [ returned ]; - } - - // Process the value(s) - // Default process is resolve - ( special || deferred.resolveWith )( that, args ); - } - }, - - // Only normal processors (resolve) catch and reject exceptions - process = special ? - mightThrow : - function() { - try { - mightThrow(); - } catch ( e ) { - - if ( jQuery.Deferred.exceptionHook ) { - jQuery.Deferred.exceptionHook( e, - process.stackTrace ); - } - - // Support: Promises/A+ section 2.3.3.3.4.1 - // https://promisesaplus.com/#point-61 - // Ignore post-resolution exceptions - if ( depth + 1 >= maxDepth ) { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Thrower ) { - that = undefined; - args = [ e ]; - } - - deferred.rejectWith( that, args ); - } - } - }; - - // Support: Promises/A+ section 2.3.3.3.1 - // https://promisesaplus.com/#point-57 - // Re-resolve promises immediately to dodge false rejection from - // subsequent errors - if ( depth ) { - process(); - } else { - - // Call an optional hook to record the stack, in case of exception - // since it's otherwise lost when execution goes async - if ( jQuery.Deferred.getStackHook ) { - process.stackTrace = jQuery.Deferred.getStackHook(); - } - window.setTimeout( process ); - } - }; - } - - return jQuery.Deferred( function( newDefer ) { - - // progress_handlers.add( ... ) - tuples[ 0 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onProgress ) ? - onProgress : - Identity, - newDefer.notifyWith - ) - ); - - // fulfilled_handlers.add( ... ) - tuples[ 1 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onFulfilled ) ? - onFulfilled : - Identity - ) - ); - - // rejected_handlers.add( ... ) - tuples[ 2 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onRejected ) ? - onRejected : - Thrower - ) - ); - } ).promise(); - }, - - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 5 ]; - - // promise.progress = list.add - // promise.done = list.add - // promise.fail = list.add - promise[ tuple[ 1 ] ] = list.add; - - // Handle state - if ( stateString ) { - list.add( - function() { - - // state = "resolved" (i.e., fulfilled) - // state = "rejected" - state = stateString; - }, - - // rejected_callbacks.disable - // fulfilled_callbacks.disable - tuples[ 3 - i ][ 2 ].disable, - - // rejected_handlers.disable - // fulfilled_handlers.disable - tuples[ 3 - i ][ 3 ].disable, - - // progress_callbacks.lock - tuples[ 0 ][ 2 ].lock, - - // progress_handlers.lock - tuples[ 0 ][ 3 ].lock - ); - } - - // progress_handlers.fire - // fulfilled_handlers.fire - // rejected_handlers.fire - list.add( tuple[ 3 ].fire ); - - // deferred.notify = function() { deferred.notifyWith(...) } - // deferred.resolve = function() { deferred.resolveWith(...) } - // deferred.reject = function() { deferred.rejectWith(...) } - deferred[ tuple[ 0 ] ] = function() { - deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); - return this; - }; - - // deferred.notifyWith = list.fireWith - // deferred.resolveWith = list.fireWith - // deferred.rejectWith = list.fireWith - deferred[ tuple[ 0 ] + "With" ] = list.fireWith; - } ); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( singleValue ) { - var - - // count of uncompleted subordinates - remaining = arguments.length, - - // count of unprocessed arguments - i = remaining, - - // subordinate fulfillment data - resolveContexts = Array( i ), - resolveValues = slice.call( arguments ), - - // the primary Deferred - primary = jQuery.Deferred(), - - // subordinate callback factory - updateFunc = function( i ) { - return function( value ) { - resolveContexts[ i ] = this; - resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( !( --remaining ) ) { - primary.resolveWith( resolveContexts, resolveValues ); - } - }; - }; - - // Single- and empty arguments are adopted like Promise.resolve - if ( remaining <= 1 ) { - adoptValue( singleValue, primary.done( updateFunc( i ) ).resolve, primary.reject, - !remaining ); - - // Use .then() to unwrap secondary thenables (cf. gh-3000) - if ( primary.state() === "pending" || - isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { - - return primary.then(); - } - } - - // Multiple arguments are aggregated like Promise.all array elements - while ( i-- ) { - adoptValue( resolveValues[ i ], updateFunc( i ), primary.reject ); - } - - return primary.promise(); - } -} ); - - -// These usually indicate a programmer mistake during development, -// warn about them ASAP rather than swallowing them by default. -var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; - -jQuery.Deferred.exceptionHook = function( error, stack ) { - - // Support: IE 8 - 9 only - // Console exists when dev tools are open, which can happen at any time - if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { - window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); - } -}; - - - - -jQuery.readyException = function( error ) { - window.setTimeout( function() { - throw error; - } ); -}; - - - - -// The deferred used on DOM ready -var readyList = jQuery.Deferred(); - -jQuery.fn.ready = function( fn ) { - - readyList - .then( fn ) - - // Wrap jQuery.readyException in a function so that the lookup - // happens at the time of error handling instead of callback - // registration. - .catch( function( error ) { - jQuery.readyException( error ); - } ); - - return this; -}; - -jQuery.extend( { - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See trac-6781 - readyWait: 1, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - } -} ); - -jQuery.ready.then = readyList.then; - -// The ready event handler and self cleanup method -function completed() { - document.removeEventListener( "DOMContentLoaded", completed ); - window.removeEventListener( "load", completed ); - jQuery.ready(); -} - -// Catch cases where $(document).ready() is called -// after the browser event has already occurred. -// Support: IE <=9 - 10 only -// Older IE sometimes signals "interactive" too soon -if ( document.readyState === "complete" || - ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { - - // Handle it asynchronously to allow scripts the opportunity to delay ready - window.setTimeout( jQuery.ready ); - -} else { - - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed ); -} - - - - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - len = elems.length, - bulk = key == null; - - // Sets many values - if ( toType( key ) === "object" ) { - chainable = true; - for ( i in key ) { - access( elems, fn, i, key[ i ], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, _key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < len; i++ ) { - fn( - elems[ i ], key, raw ? - value : - value.call( elems[ i ], i, fn( elems[ i ], key ) ) - ); - } - } - } - - if ( chainable ) { - return elems; - } - - // Gets - if ( bulk ) { - return fn.call( elems ); - } - - return len ? fn( elems[ 0 ], key ) : emptyGet; -}; - - -// Matches dashed string for camelizing -var rmsPrefix = /^-ms-/, - rdashAlpha = /-([a-z])/g; - -// Used by camelCase as callback to replace() -function fcamelCase( _all, letter ) { - return letter.toUpperCase(); -} - -// Convert dashed to camelCase; used by the css and data modules -// Support: IE <=9 - 11, Edge 12 - 15 -// Microsoft forgot to hump their vendor prefix (trac-9572) -function camelCase( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); -} -var acceptData = function( owner ) { - - // Accepts only: - // - Node - // - Node.ELEMENT_NODE - // - Node.DOCUMENT_NODE - // - Object - // - Any - return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); -}; - - - - -function Data() { - this.expando = jQuery.expando + Data.uid++; -} - -Data.uid = 1; - -Data.prototype = { - - cache: function( owner ) { - - // Check if the owner object already has a cache - var value = owner[ this.expando ]; - - // If not, create one - if ( !value ) { - value = {}; - - // We can accept data for non-element nodes in modern browsers, - // but we should not, see trac-8335. - // Always return an empty object. - if ( acceptData( owner ) ) { - - // If it is a node unlikely to be stringify-ed or looped over - // use plain assignment - if ( owner.nodeType ) { - owner[ this.expando ] = value; - - // Otherwise secure it in a non-enumerable property - // configurable must be true to allow the property to be - // deleted when data is removed - } else { - Object.defineProperty( owner, this.expando, { - value: value, - configurable: true - } ); - } - } - } - - return value; - }, - set: function( owner, data, value ) { - var prop, - cache = this.cache( owner ); - - // Handle: [ owner, key, value ] args - // Always use camelCase key (gh-2257) - if ( typeof data === "string" ) { - cache[ camelCase( data ) ] = value; - - // Handle: [ owner, { properties } ] args - } else { - - // Copy the properties one-by-one to the cache object - for ( prop in data ) { - cache[ camelCase( prop ) ] = data[ prop ]; - } - } - return cache; - }, - get: function( owner, key ) { - return key === undefined ? - this.cache( owner ) : - - // Always use camelCase key (gh-2257) - owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; - }, - access: function( owner, key, value ) { - - // In cases where either: - // - // 1. No key was specified - // 2. A string key was specified, but no value provided - // - // Take the "read" path and allow the get method to determine - // which value to return, respectively either: - // - // 1. The entire cache object - // 2. The data stored at the key - // - if ( key === undefined || - ( ( key && typeof key === "string" ) && value === undefined ) ) { - - return this.get( owner, key ); - } - - // When the key is not a string, or both a key and value - // are specified, set or extend (existing objects) with either: - // - // 1. An object of properties - // 2. A key and value - // - this.set( owner, key, value ); - - // Since the "set" path can have two possible entry points - // return the expected data based on which path was taken[*] - return value !== undefined ? value : key; - }, - remove: function( owner, key ) { - var i, - cache = owner[ this.expando ]; - - if ( cache === undefined ) { - return; - } - - if ( key !== undefined ) { - - // Support array or space separated string of keys - if ( Array.isArray( key ) ) { - - // If key is an array of keys... - // We always set camelCase keys, so remove that. - key = key.map( camelCase ); - } else { - key = camelCase( key ); - - // If a key with the spaces exists, use it. - // Otherwise, create an array by matching non-whitespace - key = key in cache ? - [ key ] : - ( key.match( rnothtmlwhite ) || [] ); - } - - i = key.length; - - while ( i-- ) { - delete cache[ key[ i ] ]; - } - } - - // Remove the expando if there's no more data - if ( key === undefined || jQuery.isEmptyObject( cache ) ) { - - // Support: Chrome <=35 - 45 - // Webkit & Blink performance suffers when deleting properties - // from DOM nodes, so set to undefined instead - // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) - if ( owner.nodeType ) { - owner[ this.expando ] = undefined; - } else { - delete owner[ this.expando ]; - } - } - }, - hasData: function( owner ) { - var cache = owner[ this.expando ]; - return cache !== undefined && !jQuery.isEmptyObject( cache ); - } -}; -var dataPriv = new Data(); - -var dataUser = new Data(); - - - -// Implementation Summary -// -// 1. Enforce API surface and semantic compatibility with 1.9.x branch -// 2. Improve the module's maintainability by reducing the storage -// paths to a single mechanism. -// 3. Use the same single mechanism to support "private" and "user" data. -// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) -// 5. Avoid exposing implementation details on user objects (eg. expando properties) -// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 - -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /[A-Z]/g; - -function getData( data ) { - if ( data === "true" ) { - return true; - } - - if ( data === "false" ) { - return false; - } - - if ( data === "null" ) { - return null; - } - - // Only convert to a number if it doesn't change the string - if ( data === +data + "" ) { - return +data; - } - - if ( rbrace.test( data ) ) { - return JSON.parse( data ); - } - - return data; -} - -function dataAttr( elem, key, data ) { - var name; - - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = getData( data ); - } catch ( e ) {} - - // Make sure we set the data so it isn't changed later - dataUser.set( elem, key, data ); - } else { - data = undefined; - } - } - return data; -} - -jQuery.extend( { - hasData: function( elem ) { - return dataUser.hasData( elem ) || dataPriv.hasData( elem ); - }, - - data: function( elem, name, data ) { - return dataUser.access( elem, name, data ); - }, - - removeData: function( elem, name ) { - dataUser.remove( elem, name ); - }, - - // TODO: Now that all calls to _data and _removeData have been replaced - // with direct calls to dataPriv methods, these can be deprecated. - _data: function( elem, name, data ) { - return dataPriv.access( elem, name, data ); - }, - - _removeData: function( elem, name ) { - dataPriv.remove( elem, name ); - } -} ); - -jQuery.fn.extend( { - data: function( key, value ) { - var i, name, data, - elem = this[ 0 ], - attrs = elem && elem.attributes; - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = dataUser.get( elem ); - - if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { - i = attrs.length; - while ( i-- ) { - - // Support: IE 11 only - // The attrs elements can be null (trac-14894) - if ( attrs[ i ] ) { - name = attrs[ i ].name; - if ( name.indexOf( "data-" ) === 0 ) { - name = camelCase( name.slice( 5 ) ); - dataAttr( elem, name, data[ name ] ); - } - } - } - dataPriv.set( elem, "hasDataAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each( function() { - dataUser.set( this, key ); - } ); - } - - return access( this, function( value ) { - var data; - - // The calling jQuery object (element matches) is not empty - // (and therefore has an element appears at this[ 0 ]) and the - // `value` parameter was not undefined. An empty jQuery object - // will result in `undefined` for elem = this[ 0 ] which will - // throw an exception if an attempt to read a data cache is made. - if ( elem && value === undefined ) { - - // Attempt to get data from the cache - // The key will always be camelCased in Data - data = dataUser.get( elem, key ); - if ( data !== undefined ) { - return data; - } - - // Attempt to "discover" the data in - // HTML5 custom data-* attrs - data = dataAttr( elem, key ); - if ( data !== undefined ) { - return data; - } - - // We tried really hard, but the data doesn't exist. - return; - } - - // Set the data... - this.each( function() { - - // We always store the camelCased key - dataUser.set( this, key, value ); - } ); - }, null, value, arguments.length > 1, null, true ); - }, - - removeData: function( key ) { - return this.each( function() { - dataUser.remove( this, key ); - } ); - } -} ); - - -jQuery.extend( { - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = dataPriv.get( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || Array.isArray( data ) ) { - queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // Clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // Not public - generate a queueHooks object, or return the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { - empty: jQuery.Callbacks( "once memory" ).add( function() { - dataPriv.remove( elem, [ type + "queue", key ] ); - } ) - } ); - } -} ); - -jQuery.fn.extend( { - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[ 0 ], type ); - } - - return data === undefined ? - this : - this.each( function() { - var queue = jQuery.queue( this, type, data ); - - // Ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - } ); - }, - dequeue: function( type ) { - return this.each( function() { - jQuery.dequeue( this, type ); - } ); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while ( i-- ) { - tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -} ); -var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; - -var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); - - -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; - -var documentElement = document.documentElement; - - - - var isAttached = function( elem ) { - return jQuery.contains( elem.ownerDocument, elem ); - }, - composed = { composed: true }; - - // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only - // Check attachment across shadow DOM boundaries when possible (gh-3504) - // Support: iOS 10.0-10.2 only - // Early iOS 10 versions support `attachShadow` but not `getRootNode`, - // leading to errors. We need to check for `getRootNode`. - if ( documentElement.getRootNode ) { - isAttached = function( elem ) { - return jQuery.contains( elem.ownerDocument, elem ) || - elem.getRootNode( composed ) === elem.ownerDocument; - }; - } -var isHiddenWithinTree = function( elem, el ) { - - // isHiddenWithinTree might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - - // Inline style trumps all - return elem.style.display === "none" || - elem.style.display === "" && - - // Otherwise, check computed style - // Support: Firefox <=43 - 45 - // Disconnected elements can have computed display: none, so first confirm that elem is - // in the document. - isAttached( elem ) && - - jQuery.css( elem, "display" ) === "none"; - }; - - - -function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, scale, - maxIterations = 20, - currentValue = tween ? - function() { - return tween.cur(); - } : - function() { - return jQuery.css( elem, prop, "" ); - }, - initial = currentValue(), - unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - initialInUnit = elem.nodeType && - ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && - rcssNum.exec( jQuery.css( elem, prop ) ); - - if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { - - // Support: Firefox <=54 - // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) - initial = initial / 2; - - // Trust units reported by jQuery.css - unit = unit || initialInUnit[ 3 ]; - - // Iteratively approximate from a nonzero starting point - initialInUnit = +initial || 1; - - while ( maxIterations-- ) { - - // Evaluate and update our best guess (doubling guesses that zero out). - // Finish if the scale equals or crosses 1 (making the old*new product non-positive). - jQuery.style( elem, prop, initialInUnit + unit ); - if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { - maxIterations = 0; - } - initialInUnit = initialInUnit / scale; - - } - - initialInUnit = initialInUnit * 2; - jQuery.style( elem, prop, initialInUnit + unit ); - - // Make sure we update the tween properties later on - valueParts = valueParts || []; - } - - if ( valueParts ) { - initialInUnit = +initialInUnit || +initial || 0; - - // Apply relative offset (+=/-=) if specified - adjusted = valueParts[ 1 ] ? - initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : - +valueParts[ 2 ]; - if ( tween ) { - tween.unit = unit; - tween.start = initialInUnit; - tween.end = adjusted; - } - } - return adjusted; -} - - -var defaultDisplayMap = {}; - -function getDefaultDisplay( elem ) { - var temp, - doc = elem.ownerDocument, - nodeName = elem.nodeName, - display = defaultDisplayMap[ nodeName ]; - - if ( display ) { - return display; - } - - temp = doc.body.appendChild( doc.createElement( nodeName ) ); - display = jQuery.css( temp, "display" ); - - temp.parentNode.removeChild( temp ); - - if ( display === "none" ) { - display = "block"; - } - defaultDisplayMap[ nodeName ] = display; - - return display; -} - -function showHide( elements, show ) { - var display, elem, - values = [], - index = 0, - length = elements.length; - - // Determine new display value for elements that need to change - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - display = elem.style.display; - if ( show ) { - - // Since we force visibility upon cascade-hidden elements, an immediate (and slow) - // check is required in this first loop unless we have a nonempty display value (either - // inline or about-to-be-restored) - if ( display === "none" ) { - values[ index ] = dataPriv.get( elem, "display" ) || null; - if ( !values[ index ] ) { - elem.style.display = ""; - } - } - if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { - values[ index ] = getDefaultDisplay( elem ); - } - } else { - if ( display !== "none" ) { - values[ index ] = "none"; - - // Remember what we're overwriting - dataPriv.set( elem, "display", display ); - } - } - } - - // Set the display of the elements in a second loop to avoid constant reflow - for ( index = 0; index < length; index++ ) { - if ( values[ index ] != null ) { - elements[ index ].style.display = values[ index ]; - } - } - - return elements; -} - -jQuery.fn.extend( { - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each( function() { - if ( isHiddenWithinTree( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - } ); - } -} ); -var rcheckableType = ( /^(?:checkbox|radio)$/i ); - -var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); - -var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); - - - -( function() { - var fragment = document.createDocumentFragment(), - div = fragment.appendChild( document.createElement( "div" ) ), - input = document.createElement( "input" ); - - // Support: Android 4.0 - 4.3 only - // Check state lost if the name is set (trac-11217) - // Support: Windows Web Apps (WWA) - // `name` and `type` must use .setAttribute for WWA (trac-14901) - input.setAttribute( "type", "radio" ); - input.setAttribute( "checked", "checked" ); - input.setAttribute( "name", "t" ); - - div.appendChild( input ); - - // Support: Android <=4.1 only - // Older WebKit doesn't clone checked state correctly in fragments - support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE <=11 only - // Make sure textarea (and checkbox) defaultValue is properly cloned - div.innerHTML = ""; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; - - // Support: IE <=9 only - // IE <=9 replaces "; - support.option = !!div.lastChild; -} )(); - - -// We have to close these tags to support XHTML (trac-13200) -var wrapMap = { - - // XHTML parsers do not magically insert elements in the - // same way that tag soup parsers do. So we cannot shorten - // this by omitting or other required elements. - thead: [ 1, "", "
    " ], - col: [ 2, "", "
    " ], - tr: [ 2, "", "
    " ], - td: [ 3, "", "
    " ], - - _default: [ 0, "", "" ] -}; - -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -// Support: IE <=9 only -if ( !support.option ) { - wrapMap.optgroup = wrapMap.option = [ 1, "" ]; -} - - -function getAll( context, tag ) { - - // Support: IE <=9 - 11 only - // Use typeof to avoid zero-argument method invocation on host objects (trac-15151) - var ret; - - if ( typeof context.getElementsByTagName !== "undefined" ) { - ret = context.getElementsByTagName( tag || "*" ); - - } else if ( typeof context.querySelectorAll !== "undefined" ) { - ret = context.querySelectorAll( tag || "*" ); - - } else { - ret = []; - } - - if ( tag === undefined || tag && nodeName( context, tag ) ) { - return jQuery.merge( [ context ], ret ); - } - - return ret; -} - - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - dataPriv.set( - elems[ i ], - "globalEval", - !refElements || dataPriv.get( refElements[ i ], "globalEval" ) - ); - } -} - - -var rhtml = /<|&#?\w+;/; - -function buildFragment( elems, context, scripts, selection, ignored ) { - var elem, tmp, tag, wrap, attached, j, - fragment = context.createDocumentFragment(), - nodes = [], - i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( toType( elem ) === "object" ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; - - // Descend through wrappers to the right content - j = wrap[ 0 ]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, tmp.childNodes ); - - // Remember the top-level container - tmp = fragment.firstChild; - - // Ensure the created nodes are orphaned (trac-12392) - tmp.textContent = ""; - } - } - } - - // Remove wrapper from fragment - fragment.textContent = ""; - - i = 0; - while ( ( elem = nodes[ i++ ] ) ) { - - // Skip elements already in the context collection (trac-4087) - if ( selection && jQuery.inArray( elem, selection ) > -1 ) { - if ( ignored ) { - ignored.push( elem ); - } - continue; - } - - attached = isAttached( elem ); - - // Append to fragment - tmp = getAll( fragment.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( attached ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( ( elem = tmp[ j++ ] ) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - return fragment; -} - - -var rtypenamespace = /^([^.]*)(?:\.(.+)|)/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -// Support: IE <=9 - 11+ -// focus() and blur() are asynchronous, except when they are no-op. -// So expect focus to be synchronous when the element is already active, -// and blur to be synchronous when the element is not already active. -// (focus and blur are always synchronous in other supported browsers, -// this just defines when we can count on it). -function expectSync( elem, type ) { - return ( elem === safeActiveElement() ) === ( type === "focus" ); -} - -// Support: IE <=9 only -// Accessing document.activeElement can throw unexpectedly -// https://bugs.jquery.com/ticket/13393 -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -function on( elem, types, selector, data, fn, one ) { - var origFn, type; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - on( elem, type, selector, data, types[ type ], one ); - } - return elem; - } - - if ( data == null && fn == null ) { - - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return elem; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return elem.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - } ); -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.get( elem ); - - // Only attach events to objects that accept data - if ( !acceptData( elem ) ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Ensure that invalid selectors throw exceptions at attach time - // Evaluate against documentElement in case elem is a non-element node (e.g., document) - if ( selector ) { - jQuery.find.matchesSelector( documentElement, selector ); - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !( events = elemData.events ) ) { - events = elemData.events = Object.create( null ); - } - if ( !( eventHandle = elemData.handle ) ) { - eventHandle = elemData.handle = function( e ) { - - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? - jQuery.event.dispatch.apply( elem, arguments ) : undefined; - }; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend( { - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join( "." ) - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !( handlers = events[ type ] ) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener if the special events handler returns false - if ( !special.setup || - special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - - var j, origCount, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); - - if ( !elemData || !( events = elemData.events ) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[ 2 ] && - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || - selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || - special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove data and the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - dataPriv.remove( elem, "handle events" ); - } - }, - - dispatch: function( nativeEvent ) { - - var i, j, ret, matched, handleObj, handlerQueue, - args = new Array( arguments.length ), - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( nativeEvent ), - - handlers = ( - dataPriv.get( this, "events" ) || Object.create( null ) - )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[ 0 ] = event; - - for ( i = 1; i < arguments.length; i++ ) { - args[ i ] = arguments[ i ]; - } - - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( ( handleObj = matched.handlers[ j++ ] ) && - !event.isImmediatePropagationStopped() ) { - - // If the event is namespaced, then each handler is only invoked if it is - // specially universal or its namespaces are a superset of the event's. - if ( !event.rnamespace || handleObj.namespace === false || - event.rnamespace.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || - handleObj.handler ).apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( ( event.result = ret ) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var i, handleObj, sel, matchedHandlers, matchedSelectors, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - if ( delegateCount && - - // Support: IE <=9 - // Black-hole SVG instance trees (trac-13180) - cur.nodeType && - - // Support: Firefox <=42 - // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) - // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click - // Support: IE 11 only - // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) - !( event.type === "click" && event.button >= 1 ) ) { - - for ( ; cur !== this; cur = cur.parentNode || this ) { - - // Don't check non-elements (trac-13208) - // Don't process clicks on disabled elements (trac-6911, trac-8165, trac-11382, trac-11764) - if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { - matchedHandlers = []; - matchedSelectors = {}; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (trac-13203) - sel = handleObj.selector + " "; - - if ( matchedSelectors[ sel ] === undefined ) { - matchedSelectors[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) > -1 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matchedSelectors[ sel ] ) { - matchedHandlers.push( handleObj ); - } - } - if ( matchedHandlers.length ) { - handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); - } - } - } - } - - // Add the remaining (directly-bound) handlers - cur = this; - if ( delegateCount < handlers.length ) { - handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); - } - - return handlerQueue; - }, - - addProp: function( name, hook ) { - Object.defineProperty( jQuery.Event.prototype, name, { - enumerable: true, - configurable: true, - - get: isFunction( hook ) ? - function() { - if ( this.originalEvent ) { - return hook( this.originalEvent ); - } - } : - function() { - if ( this.originalEvent ) { - return this.originalEvent[ name ]; - } - }, - - set: function( value ) { - Object.defineProperty( this, name, { - enumerable: true, - configurable: true, - writable: true, - value: value - } ); - } - } ); - }, - - fix: function( originalEvent ) { - return originalEvent[ jQuery.expando ] ? - originalEvent : - new jQuery.Event( originalEvent ); - }, - - special: { - load: { - - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - click: { - - // Utilize native event to ensure correct state for checkable inputs - setup: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Claim the first handler - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - // dataPriv.set( el, "click", ... ) - leverageNative( el, "click", returnTrue ); - } - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Force setup before triggering a click - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - leverageNative( el, "click" ); - } - - // Return non-false to allow normal event-path propagation - return true; - }, - - // For cross-browser consistency, suppress native .click() on links - // Also prevent it if we're currently inside a leveraged native-event stack - _default: function( event ) { - var target = event.target; - return rcheckableType.test( target.type ) && - target.click && nodeName( target, "input" ) && - dataPriv.get( target, "click" ) || - nodeName( target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - } -}; - -// Ensure the presence of an event listener that handles manually-triggered -// synthetic events by interrupting progress until reinvoked in response to -// *native* events that it fires directly, ensuring that state changes have -// already occurred before other listeners are invoked. -function leverageNative( el, type, expectSync ) { - - // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add - if ( !expectSync ) { - if ( dataPriv.get( el, type ) === undefined ) { - jQuery.event.add( el, type, returnTrue ); - } - return; - } - - // Register the controller as a special universal handler for all event namespaces - dataPriv.set( el, type, false ); - jQuery.event.add( el, type, { - namespace: false, - handler: function( event ) { - var notAsync, result, - saved = dataPriv.get( this, type ); - - if ( ( event.isTrigger & 1 ) && this[ type ] ) { - - // Interrupt processing of the outer synthetic .trigger()ed event - // Saved data should be false in such cases, but might be a leftover capture object - // from an async native handler (gh-4350) - if ( !saved.length ) { - - // Store arguments for use when handling the inner native event - // There will always be at least one argument (an event object), so this array - // will not be confused with a leftover capture object. - saved = slice.call( arguments ); - dataPriv.set( this, type, saved ); - - // Trigger the native event and capture its result - // Support: IE <=9 - 11+ - // focus() and blur() are asynchronous - notAsync = expectSync( this, type ); - this[ type ](); - result = dataPriv.get( this, type ); - if ( saved !== result || notAsync ) { - dataPriv.set( this, type, false ); - } else { - result = {}; - } - if ( saved !== result ) { - - // Cancel the outer synthetic event - event.stopImmediatePropagation(); - event.preventDefault(); - - // Support: Chrome 86+ - // In Chrome, if an element having a focusout handler is blurred by - // clicking outside of it, it invokes the handler synchronously. If - // that handler calls `.remove()` on the element, the data is cleared, - // leaving `result` undefined. We need to guard against this. - return result && result.value; - } - - // If this is an inner synthetic event for an event with a bubbling surrogate - // (focus or blur), assume that the surrogate already propagated from triggering the - // native event and prevent that from happening again here. - // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the - // bubbling surrogate propagates *after* the non-bubbling base), but that seems - // less bad than duplication. - } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { - event.stopPropagation(); - } - - // If this is a native event triggered above, everything is now in order - // Fire an inner synthetic event with the original arguments - } else if ( saved.length ) { - - // ...and capture the result - dataPriv.set( this, type, { - value: jQuery.event.trigger( - - // Support: IE <=9 - 11+ - // Extend with the prototype to reset the above stopImmediatePropagation() - jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), - saved.slice( 1 ), - this - ) - } ); - - // Abort handling of the native event - event.stopImmediatePropagation(); - } - } - } ); -} - -jQuery.removeEvent = function( elem, type, handle ) { - - // This "if" is needed for plain objects - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle ); - } -}; - -jQuery.Event = function( src, props ) { - - // Allow instantiation without the 'new' keyword - if ( !( this instanceof jQuery.Event ) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - - // Support: Android <=2.3 only - src.returnValue === false ? - returnTrue : - returnFalse; - - // Create target properties - // Support: Safari <=6 - 7 only - // Target should not be a text node (trac-504, trac-13143) - this.target = ( src.target && src.target.nodeType === 3 ) ? - src.target.parentNode : - src.target; - - this.currentTarget = src.currentTarget; - this.relatedTarget = src.relatedTarget; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || Date.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - constructor: jQuery.Event, - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - isSimulated: false, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - - if ( e && !this.isSimulated ) { - e.preventDefault(); - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopPropagation(); - } - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Includes all common event props including KeyEvent and MouseEvent specific props -jQuery.each( { - altKey: true, - bubbles: true, - cancelable: true, - changedTouches: true, - ctrlKey: true, - detail: true, - eventPhase: true, - metaKey: true, - pageX: true, - pageY: true, - shiftKey: true, - view: true, - "char": true, - code: true, - charCode: true, - key: true, - keyCode: true, - button: true, - buttons: true, - clientX: true, - clientY: true, - offsetX: true, - offsetY: true, - pointerId: true, - pointerType: true, - screenX: true, - screenY: true, - targetTouches: true, - toElement: true, - touches: true, - which: true -}, jQuery.event.addProp ); - -jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { - jQuery.event.special[ type ] = { - - // Utilize native event if possible so blur/focus sequence is correct - setup: function() { - - // Claim the first handler - // dataPriv.set( this, "focus", ... ) - // dataPriv.set( this, "blur", ... ) - leverageNative( this, type, expectSync ); - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function() { - - // Force setup before trigger - leverageNative( this, type ); - - // Return non-false to allow normal event-path propagation - return true; - }, - - // Suppress native focus or blur if we're currently inside - // a leveraged native-event stack - _default: function( event ) { - return dataPriv.get( event.target, type ); - }, - - delegateType: delegateType - }; -} ); - -// Create mouseenter/leave events using mouseover/out and event-time checks -// so that event delegation works in jQuery. -// Do the same for pointerenter/pointerleave and pointerover/pointerout -// -// Support: Safari 7 only -// Safari sends mouseenter too often; see: -// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 -// for the description of the bug (it existed in older Chrome versions as well). -jQuery.each( { - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mouseenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -} ); - -jQuery.fn.extend( { - - on: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn ); - }, - one: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? - handleObj.origType + "." + handleObj.namespace : - handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each( function() { - jQuery.event.remove( this, types, fn, selector ); - } ); - } -} ); - - -var - - // Support: IE <=10 - 11, Edge 12 - 13 only - // In IE/Edge using regex groups here causes severe slowdowns. - // See https://connect.microsoft.com/IE/feedback/details/1736512/ - rnoInnerhtml = /\s*$/g; - -// Prefer a tbody over its parent table for containing new rows -function manipulationTarget( elem, content ) { - if ( nodeName( elem, "table" ) && - nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { - - return jQuery( elem ).children( "tbody" )[ 0 ] || elem; - } - - return elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { - elem.type = elem.type.slice( 5 ); - } else { - elem.removeAttribute( "type" ); - } - - return elem; -} - -function cloneCopyEvent( src, dest ) { - var i, l, type, pdataOld, udataOld, udataCur, events; - - if ( dest.nodeType !== 1 ) { - return; - } - - // 1. Copy private data: events, handlers, etc. - if ( dataPriv.hasData( src ) ) { - pdataOld = dataPriv.get( src ); - events = pdataOld.events; - - if ( events ) { - dataPriv.remove( dest, "handle events" ); - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - } - - // 2. Copy user data - if ( dataUser.hasData( src ) ) { - udataOld = dataUser.access( src ); - udataCur = jQuery.extend( {}, udataOld ); - - dataUser.set( dest, udataCur ); - } -} - -// Fix IE bugs, see support tests -function fixInput( src, dest ) { - var nodeName = dest.nodeName.toLowerCase(); - - // Fails to persist the checked state of a cloned checkbox or radio button. - if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - dest.checked = src.checked; - - // Fails to return the selected option to the default selected state when cloning options - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -function domManip( collection, args, callback, ignored ) { - - // Flatten any nested arrays - args = flat( args ); - - var fragment, first, scripts, hasScripts, node, doc, - i = 0, - l = collection.length, - iNoClone = l - 1, - value = args[ 0 ], - valueIsFunction = isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( valueIsFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return collection.each( function( index ) { - var self = collection.eq( index ); - if ( valueIsFunction ) { - args[ 0 ] = value.call( this, index, self.html() ); - } - domManip( self, args, callback, ignored ); - } ); - } - - if ( l ) { - fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - // Require either new content or an interest in ignored elements to invoke the callback - if ( first || ignored ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item - // instead of the first because it can end up - // being emptied incorrectly in certain situations (trac-8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( collection[ i ], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !dataPriv.access( node, "globalEval" ) && - jQuery.contains( doc, node ) ) { - - if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { - - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl && !node.noModule ) { - jQuery._evalUrl( node.src, { - nonce: node.nonce || node.getAttribute( "nonce" ) - }, doc ); - } - } else { - - // Unwrap a CDATA section containing script contents. This shouldn't be - // needed as in XML documents they're already not visible when - // inspecting element contents and in HTML documents they have no - // meaning but we're preserving that logic for backwards compatibility. - // This will be removed completely in 4.0. See gh-4904. - DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); - } - } - } - } - } - } - - return collection; -} - -function remove( elem, selector, keepData ) { - var node, - nodes = selector ? jQuery.filter( selector, elem ) : elem, - i = 0; - - for ( ; ( node = nodes[ i ] ) != null; i++ ) { - if ( !keepData && node.nodeType === 1 ) { - jQuery.cleanData( getAll( node ) ); - } - - if ( node.parentNode ) { - if ( keepData && isAttached( node ) ) { - setGlobalEval( getAll( node, "script" ) ); - } - node.parentNode.removeChild( node ); - } - } - - return elem; -} - -jQuery.extend( { - htmlPrefilter: function( html ) { - return html; - }, - - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var i, l, srcElements, destElements, - clone = elem.cloneNode( true ), - inPage = isAttached( elem ); - - // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && - !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixInput( srcElements[ i ], destElements[ i ] ); - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - cloneCopyEvent( srcElements[ i ], destElements[ i ] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - // Return the cloned set - return clone; - }, - - cleanData: function( elems ) { - var data, elem, type, - special = jQuery.event.special, - i = 0; - - for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { - if ( acceptData( elem ) ) { - if ( ( data = elem[ dataPriv.expando ] ) ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataPriv.expando ] = undefined; - } - if ( elem[ dataUser.expando ] ) { - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataUser.expando ] = undefined; - } - } - } - } -} ); - -jQuery.fn.extend( { - detach: function( selector ) { - return remove( this, selector, true ); - }, - - remove: function( selector ) { - return remove( this, selector ); - }, - - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().each( function() { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.textContent = value; - } - } ); - }, null, value, arguments.length ); - }, - - append: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - } ); - }, - - prepend: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - } ); - }, - - before: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - } ); - }, - - after: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - } ); - }, - - empty: function() { - var elem, - i = 0; - - for ( ; ( elem = this[ i ] ) != null; i++ ) { - if ( elem.nodeType === 1 ) { - - // Prevent memory leaks - jQuery.cleanData( getAll( elem, false ) ); - - // Remove any remaining nodes - elem.textContent = ""; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - } ); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined && elem.nodeType === 1 ) { - return elem.innerHTML; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { - - value = jQuery.htmlPrefilter( value ); - - try { - for ( ; i < l; i++ ) { - elem = this[ i ] || {}; - - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch ( e ) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var ignored = []; - - // Make the changes, replacing each non-ignored context element with the new content - return domManip( this, arguments, function( elem ) { - var parent = this.parentNode; - - if ( jQuery.inArray( this, ignored ) < 0 ) { - jQuery.cleanData( getAll( this ) ); - if ( parent ) { - parent.replaceChild( elem, this ); - } - } - - // Force callback invocation - }, ignored ); - } -} ); - -jQuery.each( { - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1, - i = 0; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone( true ); - jQuery( insert[ i ] )[ original ]( elems ); - - // Support: Android <=4.0 only, PhantomJS 1 only - // .get() because push.apply(_, arraylike) throws on ancient WebKit - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -} ); -var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); - -var rcustomProp = /^--/; - - -var getStyles = function( elem ) { - - // Support: IE <=11 only, Firefox <=30 (trac-15098, trac-14150) - // IE throws on elements created in popups - // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" - var view = elem.ownerDocument.defaultView; - - if ( !view || !view.opener ) { - view = window; - } - - return view.getComputedStyle( elem ); - }; - -var swap = function( elem, options, callback ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.call( elem ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; -}; - - -var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); - -var whitespace = "[\\x20\\t\\r\\n\\f]"; - - -var rtrimCSS = new RegExp( - "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", - "g" -); - - - - -( function() { - - // Executing both pixelPosition & boxSizingReliable tests require only one layout - // so they're executed at the same time to save the second computation. - function computeStyleTests() { - - // This is a singleton, we need to execute it only once - if ( !div ) { - return; - } - - container.style.cssText = "position:absolute;left:-11111px;width:60px;" + - "margin-top:1px;padding:0;border:0"; - div.style.cssText = - "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + - "margin:auto;border:1px;padding:1px;" + - "width:60%;top:1%"; - documentElement.appendChild( container ).appendChild( div ); - - var divStyle = window.getComputedStyle( div ); - pixelPositionVal = divStyle.top !== "1%"; - - // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 - reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; - - // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 - // Some styles come back with percentage values, even though they shouldn't - div.style.right = "60%"; - pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; - - // Support: IE 9 - 11 only - // Detect misreporting of content dimensions for box-sizing:border-box elements - boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; - - // Support: IE 9 only - // Detect overflow:scroll screwiness (gh-3699) - // Support: Chrome <=64 - // Don't get tricked when zoom affects offsetWidth (gh-4029) - div.style.position = "absolute"; - scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; - - documentElement.removeChild( container ); - - // Nullify the div so it wouldn't be stored in the memory and - // it will also be a sign that checks already performed - div = null; - } - - function roundPixelMeasures( measure ) { - return Math.round( parseFloat( measure ) ); - } - - var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, - reliableTrDimensionsVal, reliableMarginLeftVal, - container = document.createElement( "div" ), - div = document.createElement( "div" ); - - // Finish early in limited (non-browser) environments - if ( !div.style ) { - return; - } - - // Support: IE <=9 - 11 only - // Style of cloned element affects source element cloned (trac-8908) - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - jQuery.extend( support, { - boxSizingReliable: function() { - computeStyleTests(); - return boxSizingReliableVal; - }, - pixelBoxStyles: function() { - computeStyleTests(); - return pixelBoxStylesVal; - }, - pixelPosition: function() { - computeStyleTests(); - return pixelPositionVal; - }, - reliableMarginLeft: function() { - computeStyleTests(); - return reliableMarginLeftVal; - }, - scrollboxSize: function() { - computeStyleTests(); - return scrollboxSizeVal; - }, - - // Support: IE 9 - 11+, Edge 15 - 18+ - // IE/Edge misreport `getComputedStyle` of table rows with width/height - // set in CSS while `offset*` properties report correct values. - // Behavior in IE 9 is more subtle than in newer versions & it passes - // some versions of this test; make sure not to make it pass there! - // - // Support: Firefox 70+ - // Only Firefox includes border widths - // in computed dimensions. (gh-4529) - reliableTrDimensions: function() { - var table, tr, trChild, trStyle; - if ( reliableTrDimensionsVal == null ) { - table = document.createElement( "table" ); - tr = document.createElement( "tr" ); - trChild = document.createElement( "div" ); - - table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate"; - tr.style.cssText = "border:1px solid"; - - // Support: Chrome 86+ - // Height set through cssText does not get applied. - // Computed height then comes back as 0. - tr.style.height = "1px"; - trChild.style.height = "9px"; - - // Support: Android 8 Chrome 86+ - // In our bodyBackground.html iframe, - // display for all div elements is set to "inline", - // which causes a problem only in Android 8 Chrome 86. - // Ensuring the div is display: block - // gets around this issue. - trChild.style.display = "block"; - - documentElement - .appendChild( table ) - .appendChild( tr ) - .appendChild( trChild ); - - trStyle = window.getComputedStyle( tr ); - reliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) + - parseInt( trStyle.borderTopWidth, 10 ) + - parseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight; - - documentElement.removeChild( table ); - } - return reliableTrDimensionsVal; - } - } ); -} )(); - - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - isCustomProp = rcustomProp.test( name ), - - // Support: Firefox 51+ - // Retrieving style before computed somehow - // fixes an issue with getting wrong values - // on detached elements - style = elem.style; - - computed = computed || getStyles( elem ); - - // getPropertyValue is needed for: - // .css('filter') (IE 9 only, trac-12537) - // .css('--customProperty) (gh-3144) - if ( computed ) { - ret = computed.getPropertyValue( name ) || computed[ name ]; - - // trim whitespace for custom property (issue gh-4926) - if ( isCustomProp ) { - - // rtrim treats U+000D CARRIAGE RETURN and U+000C FORM FEED - // as whitespace while CSS does not, but this is not a problem - // because CSS preprocessing replaces them with U+000A LINE FEED - // (which *is* CSS whitespace) - // https://www.w3.org/TR/css-syntax-3/#input-preprocessing - ret = ret.replace( rtrimCSS, "$1" ); - } - - if ( ret === "" && !isAttached( elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Android Browser returns percentage for some values, - // but width seems to be reliably pixels. - // This is against the CSSOM draft spec: - // https://drafts.csswg.org/cssom/#resolved-values - if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - - // Support: IE <=9 - 11 only - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - - -function addGetHookIf( conditionFn, hookFn ) { - - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return ( this.get = hookFn ).apply( this, arguments ); - } - }; -} - - -var cssPrefixes = [ "Webkit", "Moz", "ms" ], - emptyStyle = document.createElement( "div" ).style, - vendorProps = {}; - -// Return a vendor-prefixed property or undefined -function vendorPropName( name ) { - - // Check for vendor prefixed names - var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in emptyStyle ) { - return name; - } - } -} - -// Return a potentially-mapped jQuery.cssProps or vendor prefixed property -function finalPropName( name ) { - var final = jQuery.cssProps[ name ] || vendorProps[ name ]; - - if ( final ) { - return final; - } - if ( name in emptyStyle ) { - return name; - } - return vendorProps[ name ] = vendorPropName( name ) || name; -} - - -var - - // Swappable if display is none or starts with table - // except "table", "table-cell", or "table-caption" - // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: "0", - fontWeight: "400" - }; - -function setPositiveNumber( _elem, value, subtract ) { - - // Any relative (+/-) values have already been - // normalized at this point - var matches = rcssNum.exec( value ); - return matches ? - - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : - value; -} - -function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { - var i = dimension === "width" ? 1 : 0, - extra = 0, - delta = 0; - - // Adjustment may not be necessary - if ( box === ( isBorderBox ? "border" : "content" ) ) { - return 0; - } - - for ( ; i < 4; i += 2 ) { - - // Both box models exclude margin - if ( box === "margin" ) { - delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); - } - - // If we get here with a content-box, we're seeking "padding" or "border" or "margin" - if ( !isBorderBox ) { - - // Add padding - delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // For "border" or "margin", add border - if ( box !== "padding" ) { - delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - - // But still keep track of it otherwise - } else { - extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - - // If we get here with a border-box (content + padding + border), we're seeking "content" or - // "padding" or "margin" - } else { - - // For "content", subtract padding - if ( box === "content" ) { - delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // For "content" or "padding", subtract border - if ( box !== "margin" ) { - delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - // Account for positive content-box scroll gutter when requested by providing computedVal - if ( !isBorderBox && computedVal >= 0 ) { - - // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border - // Assuming integer scroll gutter, subtract the rest and round down - delta += Math.max( 0, Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - computedVal - - delta - - extra - - 0.5 - - // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter - // Use an explicit zero to avoid NaN (gh-3964) - ) ) || 0; - } - - return delta; -} - -function getWidthOrHeight( elem, dimension, extra ) { - - // Start with computed style - var styles = getStyles( elem ), - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). - // Fake content-box until we know it's needed to know the true value. - boxSizingNeeded = !support.boxSizingReliable() || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - valueIsBorderBox = isBorderBox, - - val = curCSS( elem, dimension, styles ), - offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); - - // Support: Firefox <=54 - // Return a confounding non-pixel value or feign ignorance, as appropriate. - if ( rnumnonpx.test( val ) ) { - if ( !extra ) { - return val; - } - val = "auto"; - } - - - // Support: IE 9 - 11 only - // Use offsetWidth/offsetHeight for when box sizing is unreliable. - // In those cases, the computed value can be trusted to be border-box. - if ( ( !support.boxSizingReliable() && isBorderBox || - - // Support: IE 10 - 11+, Edge 15 - 18+ - // IE/Edge misreport `getComputedStyle` of table rows with width/height - // set in CSS while `offset*` properties report correct values. - // Interestingly, in some cases IE 9 doesn't suffer from this issue. - !support.reliableTrDimensions() && nodeName( elem, "tr" ) || - - // Fall back to offsetWidth/offsetHeight when value is "auto" - // This happens for inline elements with no explicit setting (gh-3571) - val === "auto" || - - // Support: Android <=4.1 - 4.3 only - // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) - !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && - - // Make sure the element is visible & connected - elem.getClientRects().length ) { - - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // Where available, offsetWidth/offsetHeight approximate border box dimensions. - // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the - // retrieved value as a content box dimension. - valueIsBorderBox = offsetProp in elem; - if ( valueIsBorderBox ) { - val = elem[ offsetProp ]; - } - } - - // Normalize "" and auto - val = parseFloat( val ) || 0; - - // Adjust for the element's box model - return ( val + - boxModelAdjustment( - elem, - dimension, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles, - - // Provide the current computed size to request scroll gutter calculation (gh-3589) - val - ) - ) + "px"; -} - -jQuery.extend( { - - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "animationIterationCount": true, - "columnCount": true, - "fillOpacity": true, - "flexGrow": true, - "flexShrink": true, - "fontWeight": true, - "gridArea": true, - "gridColumn": true, - "gridColumnEnd": true, - "gridColumnStart": true, - "gridRow": true, - "gridRowEnd": true, - "gridRowStart": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: {}, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ), - style = elem.style; - - // Make sure that we're working with the right name. We don't - // want to query the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Gets hook for the prefixed version, then unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // Convert "+=" or "-=" to relative numbers (trac-7345) - if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { - value = adjustCSS( elem, name, ret ); - - // Fixes bug trac-9237 - type = "number"; - } - - // Make sure that null and NaN values aren't set (trac-7116) - if ( value == null || value !== value ) { - return; - } - - // If a number was passed in, add the unit (except for certain CSS properties) - // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append - // "px" to a few hardcoded values. - if ( type === "number" && !isCustomProp ) { - value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); - } - - // background-* props affect original clone's values - if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !( "set" in hooks ) || - ( value = hooks.set( elem, value, extra ) ) !== undefined ) { - - if ( isCustomProp ) { - style.setProperty( name, value ); - } else { - style[ name ] = value; - } - } - - } else { - - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && - ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { - - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var val, num, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ); - - // Make sure that we're working with the right name. We don't - // want to modify the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Try prefixed name followed by the unprefixed name - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - // Convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Make numeric if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || isFinite( num ) ? num || 0 : val; - } - - return val; - } -} ); - -jQuery.each( [ "height", "width" ], function( _i, dimension ) { - jQuery.cssHooks[ dimension ] = { - get: function( elem, computed, extra ) { - if ( computed ) { - - // Certain elements can have dimension info if we invisibly show them - // but it must have a current display style that would benefit - return rdisplayswap.test( jQuery.css( elem, "display" ) ) && - - // Support: Safari 8+ - // Table columns in Safari have non-zero offsetWidth & zero - // getBoundingClientRect().width unless display is changed. - // Support: IE <=11 only - // Running getBoundingClientRect on a disconnected node - // in IE throws an error. - ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? - swap( elem, cssShow, function() { - return getWidthOrHeight( elem, dimension, extra ); - } ) : - getWidthOrHeight( elem, dimension, extra ); - } - }, - - set: function( elem, value, extra ) { - var matches, - styles = getStyles( elem ), - - // Only read styles.position if the test has a chance to fail - // to avoid forcing a reflow. - scrollboxSizeBuggy = !support.scrollboxSize() && - styles.position === "absolute", - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) - boxSizingNeeded = scrollboxSizeBuggy || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - subtract = extra ? - boxModelAdjustment( - elem, - dimension, - extra, - isBorderBox, - styles - ) : - 0; - - // Account for unreliable border-box dimensions by comparing offset* to computed and - // faking a content-box to get border and padding (gh-3699) - if ( isBorderBox && scrollboxSizeBuggy ) { - subtract -= Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - parseFloat( styles[ dimension ] ) - - boxModelAdjustment( elem, dimension, "border", false, styles ) - - 0.5 - ); - } - - // Convert to pixels if value adjustment is needed - if ( subtract && ( matches = rcssNum.exec( value ) ) && - ( matches[ 3 ] || "px" ) !== "px" ) { - - elem.style[ dimension ] = value; - value = jQuery.css( elem, dimension ); - } - - return setPositiveNumber( elem, value, subtract ); - } - }; -} ); - -jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, - function( elem, computed ) { - if ( computed ) { - return ( parseFloat( curCSS( elem, "marginLeft" ) ) || - elem.getBoundingClientRect().left - - swap( elem, { marginLeft: 0 }, function() { - return elem.getBoundingClientRect().left; - } ) - ) + "px"; - } - } -); - -// These hooks are used by animate to expand properties -jQuery.each( { - margin: "", - padding: "", - border: "Width" -}, function( prefix, suffix ) { - jQuery.cssHooks[ prefix + suffix ] = { - expand: function( value ) { - var i = 0, - expanded = {}, - - // Assumes a single number if not a string - parts = typeof value === "string" ? value.split( " " ) : [ value ]; - - for ( ; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - - return expanded; - } - }; - - if ( prefix !== "margin" ) { - jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; - } -} ); - -jQuery.fn.extend( { - css: function( name, value ) { - return access( this, function( elem, name, value ) { - var styles, len, - map = {}, - i = 0; - - if ( Array.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - } -} ); - - -function Tween( elem, options, prop, end, easing ) { - return new Tween.prototype.init( elem, options, prop, end, easing ); -} -jQuery.Tween = Tween; - -Tween.prototype = { - constructor: Tween, - init: function( elem, options, prop, end, easing, unit ) { - this.elem = elem; - this.prop = prop; - this.easing = easing || jQuery.easing._default; - this.options = options; - this.start = this.now = this.cur(); - this.end = end; - this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); - }, - cur: function() { - var hooks = Tween.propHooks[ this.prop ]; - - return hooks && hooks.get ? - hooks.get( this ) : - Tween.propHooks._default.get( this ); - }, - run: function( percent ) { - var eased, - hooks = Tween.propHooks[ this.prop ]; - - if ( this.options.duration ) { - this.pos = eased = jQuery.easing[ this.easing ]( - percent, this.options.duration * percent, 0, 1, this.options.duration - ); - } else { - this.pos = eased = percent; - } - this.now = ( this.end - this.start ) * eased + this.start; - - if ( this.options.step ) { - this.options.step.call( this.elem, this.now, this ); - } - - if ( hooks && hooks.set ) { - hooks.set( this ); - } else { - Tween.propHooks._default.set( this ); - } - return this; - } -}; - -Tween.prototype.init.prototype = Tween.prototype; - -Tween.propHooks = { - _default: { - get: function( tween ) { - var result; - - // Use a property on the element directly when it is not a DOM element, - // or when there is no matching style property that exists. - if ( tween.elem.nodeType !== 1 || - tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { - return tween.elem[ tween.prop ]; - } - - // Passing an empty string as a 3rd parameter to .css will automatically - // attempt a parseFloat and fallback to a string if the parse fails. - // Simple values such as "10px" are parsed to Float; - // complex values such as "rotate(1rad)" are returned as-is. - result = jQuery.css( tween.elem, tween.prop, "" ); - - // Empty strings, null, undefined and "auto" are converted to 0. - return !result || result === "auto" ? 0 : result; - }, - set: function( tween ) { - - // Use step hook for back compat. - // Use cssHook if its there. - // Use .style if available and use plain properties where available. - if ( jQuery.fx.step[ tween.prop ] ) { - jQuery.fx.step[ tween.prop ]( tween ); - } else if ( tween.elem.nodeType === 1 && ( - jQuery.cssHooks[ tween.prop ] || - tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { - jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); - } else { - tween.elem[ tween.prop ] = tween.now; - } - } - } -}; - -// Support: IE <=9 only -// Panic based approach to setting things on disconnected nodes -Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { - set: function( tween ) { - if ( tween.elem.nodeType && tween.elem.parentNode ) { - tween.elem[ tween.prop ] = tween.now; - } - } -}; - -jQuery.easing = { - linear: function( p ) { - return p; - }, - swing: function( p ) { - return 0.5 - Math.cos( p * Math.PI ) / 2; - }, - _default: "swing" -}; - -jQuery.fx = Tween.prototype.init; - -// Back compat <1.8 extension point -jQuery.fx.step = {}; - - - - -var - fxNow, inProgress, - rfxtypes = /^(?:toggle|show|hide)$/, - rrun = /queueHooks$/; - -function schedule() { - if ( inProgress ) { - if ( document.hidden === false && window.requestAnimationFrame ) { - window.requestAnimationFrame( schedule ); - } else { - window.setTimeout( schedule, jQuery.fx.interval ); - } - - jQuery.fx.tick(); - } -} - -// Animations created synchronously will run synchronously -function createFxNow() { - window.setTimeout( function() { - fxNow = undefined; - } ); - return ( fxNow = Date.now() ); -} - -// Generate parameters to create a standard animation -function genFx( type, includeWidth ) { - var which, - i = 0, - attrs = { height: type }; - - // If we include width, step value is 1 to do all cssExpand values, - // otherwise step value is 2 to skip over Left and Right - includeWidth = includeWidth ? 1 : 0; - for ( ; i < 4; i += 2 - includeWidth ) { - which = cssExpand[ i ]; - attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; - } - - if ( includeWidth ) { - attrs.opacity = attrs.width = type; - } - - return attrs; -} - -function createTween( value, prop, animation ) { - var tween, - collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), - index = 0, - length = collection.length; - for ( ; index < length; index++ ) { - if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { - - // We're done with this property - return tween; - } - } -} - -function defaultPrefilter( elem, props, opts ) { - var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, - isBox = "width" in props || "height" in props, - anim = this, - orig = {}, - style = elem.style, - hidden = elem.nodeType && isHiddenWithinTree( elem ), - dataShow = dataPriv.get( elem, "fxshow" ); - - // Queue-skipping animations hijack the fx hooks - if ( !opts.queue ) { - hooks = jQuery._queueHooks( elem, "fx" ); - if ( hooks.unqueued == null ) { - hooks.unqueued = 0; - oldfire = hooks.empty.fire; - hooks.empty.fire = function() { - if ( !hooks.unqueued ) { - oldfire(); - } - }; - } - hooks.unqueued++; - - anim.always( function() { - - // Ensure the complete handler is called before this completes - anim.always( function() { - hooks.unqueued--; - if ( !jQuery.queue( elem, "fx" ).length ) { - hooks.empty.fire(); - } - } ); - } ); - } - - // Detect show/hide animations - for ( prop in props ) { - value = props[ prop ]; - if ( rfxtypes.test( value ) ) { - delete props[ prop ]; - toggle = toggle || value === "toggle"; - if ( value === ( hidden ? "hide" : "show" ) ) { - - // Pretend to be hidden if this is a "show" and - // there is still data from a stopped show/hide - if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { - hidden = true; - - // Ignore all other no-op show/hide data - } else { - continue; - } - } - orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); - } - } - - // Bail out if this is a no-op like .hide().hide() - propTween = !jQuery.isEmptyObject( props ); - if ( !propTween && jQuery.isEmptyObject( orig ) ) { - return; - } - - // Restrict "overflow" and "display" styles during box animations - if ( isBox && elem.nodeType === 1 ) { - - // Support: IE <=9 - 11, Edge 12 - 15 - // Record all 3 overflow attributes because IE does not infer the shorthand - // from identically-valued overflowX and overflowY and Edge just mirrors - // the overflowX value there. - opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; - - // Identify a display type, preferring old show/hide data over the CSS cascade - restoreDisplay = dataShow && dataShow.display; - if ( restoreDisplay == null ) { - restoreDisplay = dataPriv.get( elem, "display" ); - } - display = jQuery.css( elem, "display" ); - if ( display === "none" ) { - if ( restoreDisplay ) { - display = restoreDisplay; - } else { - - // Get nonempty value(s) by temporarily forcing visibility - showHide( [ elem ], true ); - restoreDisplay = elem.style.display || restoreDisplay; - display = jQuery.css( elem, "display" ); - showHide( [ elem ] ); - } - } - - // Animate inline elements as inline-block - if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { - if ( jQuery.css( elem, "float" ) === "none" ) { - - // Restore the original display value at the end of pure show/hide animations - if ( !propTween ) { - anim.done( function() { - style.display = restoreDisplay; - } ); - if ( restoreDisplay == null ) { - display = style.display; - restoreDisplay = display === "none" ? "" : display; - } - } - style.display = "inline-block"; - } - } - } - - if ( opts.overflow ) { - style.overflow = "hidden"; - anim.always( function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - } ); - } - - // Implement show/hide animations - propTween = false; - for ( prop in orig ) { - - // General show/hide setup for this element animation - if ( !propTween ) { - if ( dataShow ) { - if ( "hidden" in dataShow ) { - hidden = dataShow.hidden; - } - } else { - dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); - } - - // Store hidden/visible for toggle so `.stop().toggle()` "reverses" - if ( toggle ) { - dataShow.hidden = !hidden; - } - - // Show elements before animating them - if ( hidden ) { - showHide( [ elem ], true ); - } - - /* eslint-disable no-loop-func */ - - anim.done( function() { - - /* eslint-enable no-loop-func */ - - // The final step of a "hide" animation is actually hiding the element - if ( !hidden ) { - showHide( [ elem ] ); - } - dataPriv.remove( elem, "fxshow" ); - for ( prop in orig ) { - jQuery.style( elem, prop, orig[ prop ] ); - } - } ); - } - - // Per-property setup - propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); - if ( !( prop in dataShow ) ) { - dataShow[ prop ] = propTween.start; - if ( hidden ) { - propTween.end = propTween.start; - propTween.start = 0; - } - } - } -} - -function propFilter( props, specialEasing ) { - var index, name, easing, value, hooks; - - // camelCase, specialEasing and expand cssHook pass - for ( index in props ) { - name = camelCase( index ); - easing = specialEasing[ name ]; - value = props[ index ]; - if ( Array.isArray( value ) ) { - easing = value[ 1 ]; - value = props[ index ] = value[ 0 ]; - } - - if ( index !== name ) { - props[ name ] = value; - delete props[ index ]; - } - - hooks = jQuery.cssHooks[ name ]; - if ( hooks && "expand" in hooks ) { - value = hooks.expand( value ); - delete props[ name ]; - - // Not quite $.extend, this won't overwrite existing keys. - // Reusing 'index' because we have the correct "name" - for ( index in value ) { - if ( !( index in props ) ) { - props[ index ] = value[ index ]; - specialEasing[ index ] = easing; - } - } - } else { - specialEasing[ name ] = easing; - } - } -} - -function Animation( elem, properties, options ) { - var result, - stopped, - index = 0, - length = Animation.prefilters.length, - deferred = jQuery.Deferred().always( function() { - - // Don't match elem in the :animated selector - delete tick.elem; - } ), - tick = function() { - if ( stopped ) { - return false; - } - var currentTime = fxNow || createFxNow(), - remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - - // Support: Android 2.3 only - // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (trac-12497) - temp = remaining / animation.duration || 0, - percent = 1 - temp, - index = 0, - length = animation.tweens.length; - - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( percent ); - } - - deferred.notifyWith( elem, [ animation, percent, remaining ] ); - - // If there's more to do, yield - if ( percent < 1 && length ) { - return remaining; - } - - // If this was an empty animation, synthesize a final progress notification - if ( !length ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - } - - // Resolve the animation and report its conclusion - deferred.resolveWith( elem, [ animation ] ); - return false; - }, - animation = deferred.promise( { - elem: elem, - props: jQuery.extend( {}, properties ), - opts: jQuery.extend( true, { - specialEasing: {}, - easing: jQuery.easing._default - }, options ), - originalProperties: properties, - originalOptions: options, - startTime: fxNow || createFxNow(), - duration: options.duration, - tweens: [], - createTween: function( prop, end ) { - var tween = jQuery.Tween( elem, animation.opts, prop, end, - animation.opts.specialEasing[ prop ] || animation.opts.easing ); - animation.tweens.push( tween ); - return tween; - }, - stop: function( gotoEnd ) { - var index = 0, - - // If we are going to the end, we want to run all the tweens - // otherwise we skip this part - length = gotoEnd ? animation.tweens.length : 0; - if ( stopped ) { - return this; - } - stopped = true; - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( 1 ); - } - - // Resolve when we played the last frame; otherwise, reject - if ( gotoEnd ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - deferred.resolveWith( elem, [ animation, gotoEnd ] ); - } else { - deferred.rejectWith( elem, [ animation, gotoEnd ] ); - } - return this; - } - } ), - props = animation.props; - - propFilter( props, animation.opts.specialEasing ); - - for ( ; index < length; index++ ) { - result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); - if ( result ) { - if ( isFunction( result.stop ) ) { - jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = - result.stop.bind( result ); - } - return result; - } - } - - jQuery.map( props, createTween, animation ); - - if ( isFunction( animation.opts.start ) ) { - animation.opts.start.call( elem, animation ); - } - - // Attach callbacks from options - animation - .progress( animation.opts.progress ) - .done( animation.opts.done, animation.opts.complete ) - .fail( animation.opts.fail ) - .always( animation.opts.always ); - - jQuery.fx.timer( - jQuery.extend( tick, { - elem: elem, - anim: animation, - queue: animation.opts.queue - } ) - ); - - return animation; -} - -jQuery.Animation = jQuery.extend( Animation, { - - tweeners: { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ); - adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); - return tween; - } ] - }, - - tweener: function( props, callback ) { - if ( isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.match( rnothtmlwhite ); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length; index++ ) { - prop = props[ index ]; - Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; - Animation.tweeners[ prop ].unshift( callback ); - } - }, - - prefilters: [ defaultPrefilter ], - - prefilter: function( callback, prepend ) { - if ( prepend ) { - Animation.prefilters.unshift( callback ); - } else { - Animation.prefilters.push( callback ); - } - } -} ); - -jQuery.speed = function( speed, easing, fn ) { - var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || - isFunction( speed ) && speed, - duration: speed, - easing: fn && easing || easing && !isFunction( easing ) && easing - }; - - // Go to the end state if fx are off - if ( jQuery.fx.off ) { - opt.duration = 0; - - } else { - if ( typeof opt.duration !== "number" ) { - if ( opt.duration in jQuery.fx.speeds ) { - opt.duration = jQuery.fx.speeds[ opt.duration ]; - - } else { - opt.duration = jQuery.fx.speeds._default; - } - } - } - - // Normalize opt.queue - true/undefined/null -> "fx" - if ( opt.queue == null || opt.queue === true ) { - opt.queue = "fx"; - } - - // Queueing - opt.old = opt.complete; - - opt.complete = function() { - if ( isFunction( opt.old ) ) { - opt.old.call( this ); - } - - if ( opt.queue ) { - jQuery.dequeue( this, opt.queue ); - } - }; - - return opt; -}; - -jQuery.fn.extend( { - fadeTo: function( speed, to, easing, callback ) { - - // Show any hidden elements after setting opacity to 0 - return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() - - // Animate to the value specified - .end().animate( { opacity: to }, speed, easing, callback ); - }, - animate: function( prop, speed, easing, callback ) { - var empty = jQuery.isEmptyObject( prop ), - optall = jQuery.speed( speed, easing, callback ), - doAnimation = function() { - - // Operate on a copy of prop so per-property easing won't be lost - var anim = Animation( this, jQuery.extend( {}, prop ), optall ); - - // Empty animations, or finishing resolves immediately - if ( empty || dataPriv.get( this, "finish" ) ) { - anim.stop( true ); - } - }; - - doAnimation.finish = doAnimation; - - return empty || optall.queue === false ? - this.each( doAnimation ) : - this.queue( optall.queue, doAnimation ); - }, - stop: function( type, clearQueue, gotoEnd ) { - var stopQueue = function( hooks ) { - var stop = hooks.stop; - delete hooks.stop; - stop( gotoEnd ); - }; - - if ( typeof type !== "string" ) { - gotoEnd = clearQueue; - clearQueue = type; - type = undefined; - } - if ( clearQueue ) { - this.queue( type || "fx", [] ); - } - - return this.each( function() { - var dequeue = true, - index = type != null && type + "queueHooks", - timers = jQuery.timers, - data = dataPriv.get( this ); - - if ( index ) { - if ( data[ index ] && data[ index ].stop ) { - stopQueue( data[ index ] ); - } - } else { - for ( index in data ) { - if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { - stopQueue( data[ index ] ); - } - } - } - - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && - ( type == null || timers[ index ].queue === type ) ) { - - timers[ index ].anim.stop( gotoEnd ); - dequeue = false; - timers.splice( index, 1 ); - } - } - - // Start the next in the queue if the last step wasn't forced. - // Timers currently will call their complete callbacks, which - // will dequeue but only if they were gotoEnd. - if ( dequeue || !gotoEnd ) { - jQuery.dequeue( this, type ); - } - } ); - }, - finish: function( type ) { - if ( type !== false ) { - type = type || "fx"; - } - return this.each( function() { - var index, - data = dataPriv.get( this ), - queue = data[ type + "queue" ], - hooks = data[ type + "queueHooks" ], - timers = jQuery.timers, - length = queue ? queue.length : 0; - - // Enable finishing flag on private data - data.finish = true; - - // Empty the queue first - jQuery.queue( this, type, [] ); - - if ( hooks && hooks.stop ) { - hooks.stop.call( this, true ); - } - - // Look for any active animations, and finish them - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && timers[ index ].queue === type ) { - timers[ index ].anim.stop( true ); - timers.splice( index, 1 ); - } - } - - // Look for any animations in the old queue and finish them - for ( index = 0; index < length; index++ ) { - if ( queue[ index ] && queue[ index ].finish ) { - queue[ index ].finish.call( this ); - } - } - - // Turn off finishing flag - delete data.finish; - } ); - } -} ); - -jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) { - var cssFn = jQuery.fn[ name ]; - jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" ? - cssFn.apply( this, arguments ) : - this.animate( genFx( name, true ), speed, easing, callback ); - }; -} ); - -// Generate shortcuts for custom animations -jQuery.each( { - slideDown: genFx( "show" ), - slideUp: genFx( "hide" ), - slideToggle: genFx( "toggle" ), - fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" }, - fadeToggle: { opacity: "toggle" } -}, function( name, props ) { - jQuery.fn[ name ] = function( speed, easing, callback ) { - return this.animate( props, speed, easing, callback ); - }; -} ); - -jQuery.timers = []; -jQuery.fx.tick = function() { - var timer, - i = 0, - timers = jQuery.timers; - - fxNow = Date.now(); - - for ( ; i < timers.length; i++ ) { - timer = timers[ i ]; - - // Run the timer and safely remove it when done (allowing for external removal) - if ( !timer() && timers[ i ] === timer ) { - timers.splice( i--, 1 ); - } - } - - if ( !timers.length ) { - jQuery.fx.stop(); - } - fxNow = undefined; -}; - -jQuery.fx.timer = function( timer ) { - jQuery.timers.push( timer ); - jQuery.fx.start(); -}; - -jQuery.fx.interval = 13; -jQuery.fx.start = function() { - if ( inProgress ) { - return; - } - - inProgress = true; - schedule(); -}; - -jQuery.fx.stop = function() { - inProgress = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - - // Default speed - _default: 400 -}; - - -// Based off of the plugin by Clint Helfers, with permission. -jQuery.fn.delay = function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = window.setTimeout( next, time ); - hooks.stop = function() { - window.clearTimeout( timeout ); - }; - } ); -}; - - -( function() { - var input = document.createElement( "input" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - input.type = "checkbox"; - - // Support: Android <=4.3 only - // Default value for a checkbox should be "on" - support.checkOn = input.value !== ""; - - // Support: IE <=11 only - // Must access selectedIndex to make default options select - support.optSelected = opt.selected; - - // Support: IE <=11 only - // An input loses its value after becoming a radio - input = document.createElement( "input" ); - input.value = "t"; - input.type = "radio"; - support.radioValue = input.value === "t"; -} )(); - - -var boolHook, - attrHandle = jQuery.expr.attrHandle; - -jQuery.fn.extend( { - attr: function( name, value ) { - return access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each( function() { - jQuery.removeAttr( this, name ); - } ); - } -} ); - -jQuery.extend( { - attr: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set attributes on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === "undefined" ) { - return jQuery.prop( elem, name, value ); - } - - // Attribute hooks are determined by the lowercase version - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - hooks = jQuery.attrHooks[ name.toLowerCase() ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); - } - - if ( value !== undefined ) { - if ( value === null ) { - jQuery.removeAttr( elem, name ); - return; - } - - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - elem.setAttribute( name, value + "" ); - return value; - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? undefined : ret; - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !support.radioValue && value === "radio" && - nodeName( elem, "input" ) ) { - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - removeAttr: function( elem, value ) { - var name, - i = 0, - - // Attribute names can contain non-HTML whitespace characters - // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 - attrNames = value && value.match( rnothtmlwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( ( name = attrNames[ i++ ] ) ) { - elem.removeAttribute( name ); - } - } - } -} ); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else { - elem.setAttribute( name, name ); - } - return name; - } -}; - -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) { - var getter = attrHandle[ name ] || jQuery.find.attr; - - attrHandle[ name ] = function( elem, name, isXML ) { - var ret, handle, - lowercaseName = name.toLowerCase(); - - if ( !isXML ) { - - // Avoid an infinite loop by temporarily removing this function from the getter - handle = attrHandle[ lowercaseName ]; - attrHandle[ lowercaseName ] = ret; - ret = getter( elem, name, isXML ) != null ? - lowercaseName : - null; - attrHandle[ lowercaseName ] = handle; - } - return ret; - }; -} ); - - - - -var rfocusable = /^(?:input|select|textarea|button)$/i, - rclickable = /^(?:a|area)$/i; - -jQuery.fn.extend( { - prop: function( name, value ) { - return access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - return this.each( function() { - delete this[ jQuery.propFix[ name ] || name ]; - } ); - } -} ); - -jQuery.extend( { - prop: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set properties on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - return ( elem[ name ] = value ); - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - return elem[ name ]; - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - - // Support: IE <=9 - 11 only - // elem.tabIndex doesn't always return the - // correct value when it hasn't been explicitly set - // Use proper attribute retrieval (trac-12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - if ( tabindex ) { - return parseInt( tabindex, 10 ); - } - - if ( - rfocusable.test( elem.nodeName ) || - rclickable.test( elem.nodeName ) && - elem.href - ) { - return 0; - } - - return -1; - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - } -} ); - -// Support: IE <=11 only -// Accessing the selectedIndex property -// forces the browser to respect setting selected -// on the option -// The getter ensures a default option is selected -// when in an optgroup -// eslint rule "no-unused-expressions" is disabled for this code -// since it considers such accessions noop -if ( !support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent && parent.parentNode ) { - parent.parentNode.selectedIndex; - } - return null; - }, - set: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent ) { - parent.selectedIndex; - - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - } - }; -} - -jQuery.each( [ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -} ); - - - - - // Strip and collapse whitespace according to HTML spec - // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace - function stripAndCollapse( value ) { - var tokens = value.match( rnothtmlwhite ) || []; - return tokens.join( " " ); - } - - -function getClass( elem ) { - return elem.getAttribute && elem.getAttribute( "class" ) || ""; -} - -function classesToArray( value ) { - if ( Array.isArray( value ) ) { - return value; - } - if ( typeof value === "string" ) { - return value.match( rnothtmlwhite ) || []; - } - return []; -} - -jQuery.fn.extend( { - addClass: function( value ) { - var classNames, cur, curValue, className, i, finalValue; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - classNames = classesToArray( value ); - - if ( classNames.length ) { - return this.each( function() { - curValue = getClass( this ); - cur = this.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - for ( i = 0; i < classNames.length; i++ ) { - className = classNames[ i ]; - if ( cur.indexOf( " " + className + " " ) < 0 ) { - cur += className + " "; - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - this.setAttribute( "class", finalValue ); - } - } - } ); - } - - return this; - }, - - removeClass: function( value ) { - var classNames, cur, curValue, className, i, finalValue; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( !arguments.length ) { - return this.attr( "class", "" ); - } - - classNames = classesToArray( value ); - - if ( classNames.length ) { - return this.each( function() { - curValue = getClass( this ); - - // This expression is here for better compressibility (see addClass) - cur = this.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - for ( i = 0; i < classNames.length; i++ ) { - className = classNames[ i ]; - - // Remove *all* instances - while ( cur.indexOf( " " + className + " " ) > -1 ) { - cur = cur.replace( " " + className + " ", " " ); - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - this.setAttribute( "class", finalValue ); - } - } - } ); - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var classNames, className, i, self, - type = typeof value, - isValidValue = type === "string" || Array.isArray( value ); - - if ( isFunction( value ) ) { - return this.each( function( i ) { - jQuery( this ).toggleClass( - value.call( this, i, getClass( this ), stateVal ), - stateVal - ); - } ); - } - - if ( typeof stateVal === "boolean" && isValidValue ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - classNames = classesToArray( value ); - - return this.each( function() { - if ( isValidValue ) { - - // Toggle individual class names - self = jQuery( this ); - - for ( i = 0; i < classNames.length; i++ ) { - className = classNames[ i ]; - - // Check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( value === undefined || type === "boolean" ) { - className = getClass( this ); - if ( className ) { - - // Store className if set - dataPriv.set( this, "__className__", className ); - } - - // If the element has a class name or if we're passed `false`, - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - if ( this.setAttribute ) { - this.setAttribute( "class", - className || value === false ? - "" : - dataPriv.get( this, "__className__" ) || "" - ); - } - } - } ); - }, - - hasClass: function( selector ) { - var className, elem, - i = 0; - - className = " " + selector + " "; - while ( ( elem = this[ i++ ] ) ) { - if ( elem.nodeType === 1 && - ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { - return true; - } - } - - return false; - } -} ); - - - - -var rreturn = /\r/g; - -jQuery.fn.extend( { - val: function( value ) { - var hooks, ret, valueIsFunction, - elem = this[ 0 ]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || - jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && - "get" in hooks && - ( ret = hooks.get( elem, "value" ) ) !== undefined - ) { - return ret; - } - - ret = elem.value; - - // Handle most common string cases - if ( typeof ret === "string" ) { - return ret.replace( rreturn, "" ); - } - - // Handle cases where value is null/undef or number - return ret == null ? "" : ret; - } - - return; - } - - valueIsFunction = isFunction( value ); - - return this.each( function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( valueIsFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - - } else if ( typeof val === "number" ) { - val += ""; - - } else if ( Array.isArray( val ) ) { - val = jQuery.map( val, function( value ) { - return value == null ? "" : value + ""; - } ); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - } ); - } -} ); - -jQuery.extend( { - valHooks: { - option: { - get: function( elem ) { - - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - - // Support: IE <=10 - 11 only - // option.text throws exceptions (trac-14686, trac-14858) - // Strip and collapse whitespace - // https://html.spec.whatwg.org/#strip-and-collapse-whitespace - stripAndCollapse( jQuery.text( elem ) ); - } - }, - select: { - get: function( elem ) { - var value, option, i, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one", - values = one ? null : [], - max = one ? index + 1 : options.length; - - if ( index < 0 ) { - i = max; - - } else { - i = one ? index : 0; - } - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // Support: IE <=9 only - // IE8-9 doesn't update selected after form reset (trac-2551) - if ( ( option.selected || i === index ) && - - // Don't return options that are disabled or in a disabled optgroup - !option.disabled && - ( !option.parentNode.disabled || - !nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - - /* eslint-disable no-cond-assign */ - - if ( option.selected = - jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 - ) { - optionSet = true; - } - - /* eslint-enable no-cond-assign */ - } - - // Force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - } -} ); - -// Radios and checkboxes getter/setter -jQuery.each( [ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( Array.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); - } - } - }; - if ( !support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - return elem.getAttribute( "value" ) === null ? "on" : elem.value; - }; - } -} ); - - - - -// Return jQuery for attributes-only inclusion - - -support.focusin = "onfocusin" in window; - - -var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - stopPropagationCallback = function( e ) { - e.stopPropagation(); - }; - -jQuery.extend( jQuery.event, { - - trigger: function( event, data, elem, onlyHandlers ) { - - var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; - - cur = lastElement = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf( "." ) > -1 ) { - - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split( "." ); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf( ":" ) < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join( "." ); - event.rnamespace = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (trac-9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (trac-9724) - if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === ( elem.ownerDocument || document ) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { - lastElement = cur; - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( dataPriv.get( cur, "events" ) || Object.create( null ) )[ event.type ] && - dataPriv.get( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( ( !special._default || - special._default.apply( eventPath.pop(), data ) === false ) && - acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name as the event. - // Don't do default actions on window, that's where global variables be (trac-6170) - if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - - if ( event.isPropagationStopped() ) { - lastElement.addEventListener( type, stopPropagationCallback ); - } - - elem[ type ](); - - if ( event.isPropagationStopped() ) { - lastElement.removeEventListener( type, stopPropagationCallback ); - } - - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - // Piggyback on a donor event to simulate a different one - // Used only for `focus(in | out)` events - simulate: function( type, elem, event ) { - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true - } - ); - - jQuery.event.trigger( e, null, elem ); - } - -} ); - -jQuery.fn.extend( { - - trigger: function( type, data ) { - return this.each( function() { - jQuery.event.trigger( type, data, this ); - } ); - }, - triggerHandler: function( type, data ) { - var elem = this[ 0 ]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -} ); - - -// Support: Firefox <=44 -// Firefox doesn't have focus(in | out) events -// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 -// -// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 -// focus(in | out) events fire after focus & blur events, -// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order -// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 -if ( !support.focusin ) { - jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - - // Handle: regular nodes (via `this.ownerDocument`), window - // (via `this.document`) & document (via `this`). - var doc = this.ownerDocument || this.document || this, - attaches = dataPriv.access( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this.document || this, - attaches = dataPriv.access( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - dataPriv.remove( doc, fix ); - - } else { - dataPriv.access( doc, fix, attaches ); - } - } - }; - } ); -} -var location = window.location; - -var nonce = { guid: Date.now() }; - -var rquery = ( /\?/ ); - - - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml, parserErrorElem; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE 9 - 11 only - // IE throws on parseFromString with invalid input. - try { - xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); - } catch ( e ) {} - - parserErrorElem = xml && xml.getElementsByTagName( "parsererror" )[ 0 ]; - if ( !xml || parserErrorElem ) { - jQuery.error( "Invalid XML: " + ( - parserErrorElem ? - jQuery.map( parserErrorElem.childNodes, function( el ) { - return el.textContent; - } ).join( "\n" ) : - data - ) ); - } - return xml; -}; - - -var - rbracket = /\[\]$/, - rCRLF = /\r?\n/g, - rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, - rsubmittable = /^(?:input|select|textarea|keygen)/i; - -function buildParams( prefix, obj, traditional, add ) { - var name; - - if ( Array.isArray( obj ) ) { - - // Serialize array item. - jQuery.each( obj, function( i, v ) { - if ( traditional || rbracket.test( prefix ) ) { - - // Treat each array item as a scalar. - add( prefix, v ); - - } else { - - // Item is non-scalar (array or object), encode its numeric index. - buildParams( - prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", - v, - traditional, - add - ); - } - } ); - - } else if ( !traditional && toType( obj ) === "object" ) { - - // Serialize object item. - for ( name in obj ) { - buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); - } - - } else { - - // Serialize scalar item. - add( prefix, obj ); - } -} - -// Serialize an array of form elements or a set of -// key/values into a query string -jQuery.param = function( a, traditional ) { - var prefix, - s = [], - add = function( key, valueOrFunction ) { - - // If value is a function, invoke it and use its return value - var value = isFunction( valueOrFunction ) ? - valueOrFunction() : - valueOrFunction; - - s[ s.length ] = encodeURIComponent( key ) + "=" + - encodeURIComponent( value == null ? "" : value ); - }; - - if ( a == null ) { - return ""; - } - - // If an array was passed in, assume that it is an array of form elements. - if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { - - // Serialize the form elements - jQuery.each( a, function() { - add( this.name, this.value ); - } ); - - } else { - - // If traditional, encode the "old" way (the way 1.3.2 or older - // did it), otherwise encode params recursively. - for ( prefix in a ) { - buildParams( prefix, a[ prefix ], traditional, add ); - } - } - - // Return the resulting serialization - return s.join( "&" ); -}; - -jQuery.fn.extend( { - serialize: function() { - return jQuery.param( this.serializeArray() ); - }, - serializeArray: function() { - return this.map( function() { - - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); - return elements ? jQuery.makeArray( elements ) : this; - } ).filter( function() { - var type = this.type; - - // Use .is( ":disabled" ) so that fieldset[disabled] works - return this.name && !jQuery( this ).is( ":disabled" ) && - rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && - ( this.checked || !rcheckableType.test( type ) ); - } ).map( function( _i, elem ) { - var val = jQuery( this ).val(); - - if ( val == null ) { - return null; - } - - if ( Array.isArray( val ) ) { - return jQuery.map( val, function( val ) { - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ); - } - - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ).get(); - } -} ); - - -var - r20 = /%20/g, - rhash = /#.*$/, - rantiCache = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - - // trac-7653, trac-8125, trac-8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (trac-10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Anchor tag for parsing the document origin - originAnchor = document.createElement( "a" ); - -originAnchor.href = location.href; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; - - if ( isFunction( func ) ) { - - // For each dataType in the dataTypeExpression - while ( ( dataType = dataTypes[ i++ ] ) ) { - - // Prepend if requested - if ( dataType[ 0 ] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); - - // Otherwise append - } else { - ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && - !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - } ); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes trac-9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { - state: "parsererror", - error: conv ? e : "No conversion from " + prev + " to " + current - }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend( { - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: location.href, - type: "GET", - isLocal: rlocalProtocol.test( location.protocol ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /\bxml\b/, - html: /\bhtml/, - json: /\bjson\b/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": JSON.parse, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - - // URL without anti-cache param - cacheURL, - - // Response headers - responseHeadersString, - responseHeaders, - - // timeout handle - timeoutTimer, - - // Url cleanup var - urlAnchor, - - // Request state (becomes false upon send and true upon completion) - completed, - - // To know if global events are to be dispatched - fireGlobals, - - // Loop variable - i, - - // uncached part of the url - uncached, - - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - - // Callbacks context - callbackContext = s.context || s, - - // Context for global events is callbackContext if it is a DOM node or jQuery collection - globalEventContext = s.context && - ( callbackContext.nodeType || callbackContext.jquery ) ? - jQuery( callbackContext ) : - jQuery.event, - - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks( "once memory" ), - - // Status-dependent callbacks - statusCode = s.statusCode || {}, - - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - - // Default abort message - strAbort = "canceled", - - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( completed ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( ( match = rheaders.exec( responseHeadersString ) ) ) { - responseHeaders[ match[ 1 ].toLowerCase() + " " ] = - ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) - .concat( match[ 2 ] ); - } - } - match = responseHeaders[ key.toLowerCase() + " " ]; - } - return match == null ? null : match.join( ", " ); - }, - - // Raw string - getAllResponseHeaders: function() { - return completed ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - if ( completed == null ) { - name = requestHeadersNames[ name.toLowerCase() ] = - requestHeadersNames[ name.toLowerCase() ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( completed == null ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( completed ) { - - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } else { - - // Lazy-add the new callbacks in a way that preserves old ones - for ( code in map ) { - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ); - - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (trac-10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || location.href ) + "" ) - .replace( rprotocol, location.protocol + "//" ); - - // Alias method option to type as per ticket trac-12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; - - // A cross-domain request is in order when the origin doesn't match the current origin. - if ( s.crossDomain == null ) { - urlAnchor = document.createElement( "a" ); - - // Support: IE <=8 - 11, Edge 12 - 15 - // IE throws exception on accessing the href property if url is malformed, - // e.g. http://example.com:80x/ - try { - urlAnchor.href = s.url; - - // Support: IE <=8 - 11 only - // Anchor's host property isn't correctly set when s.url is relative - urlAnchor.href = urlAnchor.href; - s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== - urlAnchor.protocol + "//" + urlAnchor.host; - } catch ( e ) { - - // If there is an error parsing the URL, assume it is crossDomain, - // it can be rejected by the transport if it is invalid - s.crossDomain = true; - } - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( completed ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (trac-15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger( "ajaxStart" ); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - // Remove hash to simplify url manipulation - cacheURL = s.url.replace( rhash, "" ); - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // Remember the hash so we can put it back - uncached = s.url.slice( cacheURL.length ); - - // If data is available and should be processed, append data to url - if ( s.data && ( s.processData || typeof s.data === "string" ) ) { - cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - - // trac-9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add or update anti-cache param if needed - if ( s.cache === false ) { - cacheURL = cacheURL.replace( rantiCache, "$1" ); - uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) + - uncached; - } - - // Put hash and anti-cache on the URL that will be requested (gh-1732) - s.url = cacheURL + uncached; - - // Change '%20' to '+' if this is encoded form body content (gh-2658) - } else if ( s.data && s.processData && - ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { - s.data = s.data.replace( r20, "+" ); - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? - s.accepts[ s.dataTypes[ 0 ] ] + - ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && - ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { - - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - completeDeferred.add( s.complete ); - jqXHR.done( s.success ); - jqXHR.fail( s.error ); - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - - // If request was aborted inside ajaxSend, stop there - if ( completed ) { - return jqXHR; - } - - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = window.setTimeout( function() { - jqXHR.abort( "timeout" ); - }, s.timeout ); - } - - try { - completed = false; - transport.send( requestHeaders, done ); - } catch ( e ) { - - // Rethrow post-completion exceptions - if ( completed ) { - throw e; - } - - // Propagate others as results - done( -1, e ); - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Ignore repeat invocations - if ( completed ) { - return; - } - - completed = true; - - // Clear timeout if it exists - if ( timeoutTimer ) { - window.clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Use a noop converter for missing script but not if jsonp - if ( !isSuccess && - jQuery.inArray( "script", s.dataTypes ) > -1 && - jQuery.inArray( "json", s.dataTypes ) < 0 ) { - s.converters[ "text script" ] = function() {}; - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader( "Last-Modified" ); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader( "etag" ); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger( "ajaxStop" ); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -} ); - -jQuery.each( [ "get", "post" ], function( _i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - - // Shift arguments if data argument was omitted - if ( isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - // The url can be an options object (which then must have .url) - return jQuery.ajax( jQuery.extend( { - url: url, - type: method, - dataType: type, - data: data, - success: callback - }, jQuery.isPlainObject( url ) && url ) ); - }; -} ); - -jQuery.ajaxPrefilter( function( s ) { - var i; - for ( i in s.headers ) { - if ( i.toLowerCase() === "content-type" ) { - s.contentType = s.headers[ i ] || ""; - } - } -} ); - - -jQuery._evalUrl = function( url, options, doc ) { - return jQuery.ajax( { - url: url, - - // Make this explicit, since user can override this through ajaxSetup (trac-11264) - type: "GET", - dataType: "script", - cache: true, - async: false, - global: false, - - // Only evaluate the response if it is successful (gh-4126) - // dataFilter is not invoked for failure responses, so using it instead - // of the default converter is kludgy but it works. - converters: { - "text script": function() {} - }, - dataFilter: function( response ) { - jQuery.globalEval( response, options, doc ); - } - } ); -}; - - -jQuery.fn.extend( { - wrapAll: function( html ) { - var wrap; - - if ( this[ 0 ] ) { - if ( isFunction( html ) ) { - html = html.call( this[ 0 ] ); - } - - // The elements to wrap the target around - wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); - - if ( this[ 0 ].parentNode ) { - wrap.insertBefore( this[ 0 ] ); - } - - wrap.map( function() { - var elem = this; - - while ( elem.firstElementChild ) { - elem = elem.firstElementChild; - } - - return elem; - } ).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( isFunction( html ) ) { - return this.each( function( i ) { - jQuery( this ).wrapInner( html.call( this, i ) ); - } ); - } - - return this.each( function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - } ); - }, - - wrap: function( html ) { - var htmlIsFunction = isFunction( html ); - - return this.each( function( i ) { - jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); - } ); - }, - - unwrap: function( selector ) { - this.parent( selector ).not( "body" ).each( function() { - jQuery( this ).replaceWith( this.childNodes ); - } ); - return this; - } -} ); - - -jQuery.expr.pseudos.hidden = function( elem ) { - return !jQuery.expr.pseudos.visible( elem ); -}; -jQuery.expr.pseudos.visible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); -}; - - - - -jQuery.ajaxSettings.xhr = function() { - try { - return new window.XMLHttpRequest(); - } catch ( e ) {} -}; - -var xhrSuccessStatus = { - - // File protocol always yields status code 0, assume 200 - 0: 200, - - // Support: IE <=9 only - // trac-1450: sometimes IE returns 1223 when it should be 204 - 1223: 204 - }, - xhrSupported = jQuery.ajaxSettings.xhr(); - -support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); -support.ajax = xhrSupported = !!xhrSupported; - -jQuery.ajaxTransport( function( options ) { - var callback, errorCallback; - - // Cross domain only allowed if supported through XMLHttpRequest - if ( support.cors || xhrSupported && !options.crossDomain ) { - return { - send: function( headers, complete ) { - var i, - xhr = options.xhr(); - - xhr.open( - options.type, - options.url, - options.async, - options.username, - options.password - ); - - // Apply custom fields if provided - if ( options.xhrFields ) { - for ( i in options.xhrFields ) { - xhr[ i ] = options.xhrFields[ i ]; - } - } - - // Override mime type if needed - if ( options.mimeType && xhr.overrideMimeType ) { - xhr.overrideMimeType( options.mimeType ); - } - - // X-Requested-With header - // For cross-domain requests, seeing as conditions for a preflight are - // akin to a jigsaw puzzle, we simply never set it to be sure. - // (it can always be set on a per-request basis or even using ajaxSetup) - // For same-domain requests, won't change header if already provided. - if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { - headers[ "X-Requested-With" ] = "XMLHttpRequest"; - } - - // Set headers - for ( i in headers ) { - xhr.setRequestHeader( i, headers[ i ] ); - } - - // Callback - callback = function( type ) { - return function() { - if ( callback ) { - callback = errorCallback = xhr.onload = - xhr.onerror = xhr.onabort = xhr.ontimeout = - xhr.onreadystatechange = null; - - if ( type === "abort" ) { - xhr.abort(); - } else if ( type === "error" ) { - - // Support: IE <=9 only - // On a manual native abort, IE9 throws - // errors on any property access that is not readyState - if ( typeof xhr.status !== "number" ) { - complete( 0, "error" ); - } else { - complete( - - // File: protocol always yields status 0; see trac-8605, trac-14207 - xhr.status, - xhr.statusText - ); - } - } else { - complete( - xhrSuccessStatus[ xhr.status ] || xhr.status, - xhr.statusText, - - // Support: IE <=9 only - // IE9 has no XHR2 but throws on binary (trac-11426) - // For XHR2 non-text, let the caller handle it (gh-2498) - ( xhr.responseType || "text" ) !== "text" || - typeof xhr.responseText !== "string" ? - { binary: xhr.response } : - { text: xhr.responseText }, - xhr.getAllResponseHeaders() - ); - } - } - }; - }; - - // Listen to events - xhr.onload = callback(); - errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); - - // Support: IE 9 only - // Use onreadystatechange to replace onabort - // to handle uncaught aborts - if ( xhr.onabort !== undefined ) { - xhr.onabort = errorCallback; - } else { - xhr.onreadystatechange = function() { - - // Check readyState before timeout as it changes - if ( xhr.readyState === 4 ) { - - // Allow onerror to be called first, - // but that will not handle a native abort - // Also, save errorCallback to a variable - // as xhr.onerror cannot be accessed - window.setTimeout( function() { - if ( callback ) { - errorCallback(); - } - } ); - } - }; - } - - // Create the abort callback - callback = callback( "abort" ); - - try { - - // Do send the request (this may raise an exception) - xhr.send( options.hasContent && options.data || null ); - } catch ( e ) { - - // trac-14683: Only rethrow if this hasn't been notified as an error yet - if ( callback ) { - throw e; - } - } - }, - - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -} ); - - - - -// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -jQuery.ajaxPrefilter( function( s ) { - if ( s.crossDomain ) { - s.contents.script = false; - } -} ); - -// Install script dataType -jQuery.ajaxSetup( { - accepts: { - script: "text/javascript, application/javascript, " + - "application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -} ); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -} ); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - - // This transport only deals with cross domain or forced-by-attrs requests - if ( s.crossDomain || s.scriptAttrs ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery( " - -{{> analytics}} - - - diff --git a/docs/amplify-theme/typedoc/partials/analytics.hbs b/docs/amplify-theme/typedoc/partials/analytics.hbs deleted file mode 100644 index 8b4f3695435..00000000000 --- a/docs/amplify-theme/typedoc/partials/analytics.hbs +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/docs/amplify-theme/typedoc/partials/breadcrumb.hbs b/docs/amplify-theme/typedoc/partials/breadcrumb.hbs deleted file mode 100644 index 319741831c8..00000000000 --- a/docs/amplify-theme/typedoc/partials/breadcrumb.hbs +++ /dev/null @@ -1,16 +0,0 @@ -{{#if parent}} - {{#with parent}}{{> breadcrumb}}{{/with}} -
  • - {{#if url}} - {{name}} - {{else}} - {{name}} - {{/if}} -
  • -{{else}} - {{#if url}} -
  • - Globals -
  • - {{/if}} -{{/if}} \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/comment.hbs b/docs/amplify-theme/typedoc/partials/comment.hbs deleted file mode 100644 index 1fbd2d7869e..00000000000 --- a/docs/amplify-theme/typedoc/partials/comment.hbs +++ /dev/null @@ -1,22 +0,0 @@ -{{#with comment}} - {{#if hasVisibleComponent}} -
    - {{#if shortText}} -
    - {{#markdown}}{{{shortText}}}{{/markdown}} -
    - {{/if}} - {{#if text}} - {{#markdown}}{{{text}}}{{/markdown}} - {{/if}} - {{#if tags}} -
    - {{#each tags}} -
    {{tagName}}
    -
    {{#markdown}}{{{text}}}{{/markdown}}
    - {{/each}} -
    - {{/if}} -
    - {{/if}} -{{/with}} \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/footer.hbs b/docs/amplify-theme/typedoc/partials/footer.hbs deleted file mode 100644 index 76812560de1..00000000000 --- a/docs/amplify-theme/typedoc/partials/footer.hbs +++ /dev/null @@ -1,66 +0,0 @@ - - -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    - - -{{#unless settings.hideGenerator}} -
    -

    Generated using TypeDoc

    -
    -{{/unless}} \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/header.hbs b/docs/amplify-theme/typedoc/partials/header.hbs deleted file mode 100644 index 55b6f9ce96e..00000000000 --- a/docs/amplify-theme/typedoc/partials/header.hbs +++ /dev/null @@ -1,41 +0,0 @@ -
    -
    -
    -
    - - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - {{#unless settings.excludeExternals}} - - - {{/unless}} - - -
    -
    - Menu -
    -
    -
    -
    -
    \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/hierarchy.hbs b/docs/amplify-theme/typedoc/partials/hierarchy.hbs deleted file mode 100644 index 9a54d5109ba..00000000000 --- a/docs/amplify-theme/typedoc/partials/hierarchy.hbs +++ /dev/null @@ -1,17 +0,0 @@ -
      - {{#each types}} -
    • - {{#if ../isTarget}} - {{this}} - {{else}} - {{> type}} - {{/if}} - - {{#if @last}} - {{#with ../next}} - {{> hierarchy}} - {{/with}} - {{/if}} -
    • - {{/each}} -
    diff --git a/docs/amplify-theme/typedoc/partials/index.hbs b/docs/amplify-theme/typedoc/partials/index.hbs deleted file mode 100644 index 6224dfeab24..00000000000 --- a/docs/amplify-theme/typedoc/partials/index.hbs +++ /dev/null @@ -1,19 +0,0 @@ -{{#if groups}} -
    -

    Index

    -
    -
    - {{#each groups}} -
    -

    {{title}}

    - -
    - {{/each}} -
    -
    -
    -{{/if}} \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/member.declaration.hbs b/docs/amplify-theme/typedoc/partials/member.declaration.hbs deleted file mode 100644 index 9dbe3f32dad..00000000000 --- a/docs/amplify-theme/typedoc/partials/member.declaration.hbs +++ /dev/null @@ -1,22 +0,0 @@ -
    {{#compact}} - {{{wbr name}}}{{#if isOptional}}?{{/if}}: {{#with type}}{{>type}}{{/with}} - {{#if defaultValue}} - -  =  - {{defaultValue}} - - {{/if}} -{{/compact}}
    - -{{> member.sources}} - -{{> comment}} - -{{#if type.declaration}} -
    -

    Type declaration

    - {{#with type.declaration}} - {{> parameter}} - {{/with}} -
    -{{/if}} \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/member.getterSetter.hbs b/docs/amplify-theme/typedoc/partials/member.getterSetter.hbs deleted file mode 100644 index 3dede27e21a..00000000000 --- a/docs/amplify-theme/typedoc/partials/member.getterSetter.hbs +++ /dev/null @@ -1,37 +0,0 @@ -
      - {{#if getSignature}} - {{#with getSignature}} -
    • {{#compact}} - get  - {{../name}} - {{> member.signature.title hideName=true }} - {{/compact}}
    • - {{/with}} - {{/if}} - {{#if setSignature}} - {{#with setSignature}} -
    • {{#compact}} - set  - {{../name}} - {{> member.signature.title hideName=true }} - {{/compact}}
    • - {{/with}} - {{/if}} -
    - -
      - {{#if getSignature}} - {{#with getSignature}} -
    • - {{> member.signature.body }} -
    • - {{/with}} - {{/if}} - {{#if setSignature}} - {{#with setSignature}} -
    • - {{> member.signature.body }} -
    • - {{/with}} - {{/if}} -
    \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/member.hbs b/docs/amplify-theme/typedoc/partials/member.hbs deleted file mode 100644 index ca6a2d5cadc..00000000000 --- a/docs/amplify-theme/typedoc/partials/member.hbs +++ /dev/null @@ -1,27 +0,0 @@ -
    - - {{#if name}} -

    {{#each flags}}{{this}} {{/each}}{{{wbr name}}}

    - {{/if}} - - {{#if signatures}} - {{> member.signatures}} - {{else}} - {{> member.declaration}} - {{/if}} - - {{#unless isContainer}} - {{#each groups}} - {{#each children}} - {{#unless hasOwnDocument}} - {{> member}} - {{/unless}} - {{/each}} - {{/each}} - {{/unless}} -
    - -{{#if isContainer}} - {{> index}} - {{> members}} -{{/if}} diff --git a/docs/amplify-theme/typedoc/partials/member.signature.body.hbs b/docs/amplify-theme/typedoc/partials/member.signature.body.hbs deleted file mode 100644 index fdde257d0dc..00000000000 --- a/docs/amplify-theme/typedoc/partials/member.signature.body.hbs +++ /dev/null @@ -1,56 +0,0 @@ -{{#unless hideSources}} - {{> member.sources}} -{{/unless}} - -{{> comment}} - -{{#if typeParameters}} -

    Type parameters

    - {{> typeParameters}} -{{/if}} - -{{#if parameters}} -

    Parameters

    -
      - {{#each parameters}} -
    • -
      {{#compact}} - {{#each flags}} - {{this}}  - {{/each}} - {{#if flags.isRest}}...{{/if}} - {{name}}:  - {{#with type}}{{>type}}{{/with}} - {{#if defaultValue}} - -  =  - {{defaultValue}} - - {{/if}} - {{/compact}}
      - - {{> comment}} - - {{#if type.declaration}} - {{#with type.declaration}} - {{> parameter}} - {{/with}} - {{/if}} -
    • - {{/each}} -
    -{{/if}} - -{{#if type}} -

    Returns {{#with type}}{{>type}}{{/with}}

    - - {{#if comment.returns}} - {{#markdown}}{{{comment.returns}}}{{/markdown}} - {{/if}} - - {{#if type.declaration}} - {{#with type.declaration}} - {{> parameter}} - {{/with}} - {{/if}} -{{/if}} \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/member.signature.title.hbs b/docs/amplify-theme/typedoc/partials/member.signature.title.hbs deleted file mode 100644 index efe9bcc4c8a..00000000000 --- a/docs/amplify-theme/typedoc/partials/member.signature.title.hbs +++ /dev/null @@ -1,28 +0,0 @@ -{{#compact}} - {{#unless hideName}}{{{wbr name}}}{{/unless}} - {{#if typeParameters}} - < - {{#each typeParameters}} - {{#if @index}}, {{/if}} - {{name}} - {{/each}} - > - {{/if}} - ( - {{#each parameters}} - {{#if @index}}, {{/if}} - {{#if flags.isRest}}...{{/if}} - {{name}} - - {{#if flags.isOptional}}?{{/if}} - {{#if defaultValue}}?{{/if}} - :  - - {{#with type}}{{>type}}{{/with}} - {{/each}} - ) - {{#if type}} - - {{#with type}}{{>type}}{{/with}} - {{/if}} -{{/compact}} \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/member.signatures.hbs b/docs/amplify-theme/typedoc/partials/member.signatures.hbs deleted file mode 100644 index cc258112451..00000000000 --- a/docs/amplify-theme/typedoc/partials/member.signatures.hbs +++ /dev/null @@ -1,13 +0,0 @@ -
      - {{#each signatures}} -
    • {{> member.signature.title }}
    • - {{/each}} -
    - -
      - {{#each signatures}} -
    • - {{> member.signature.body }} -
    • - {{/each}} -
    \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/member.sources.hbs b/docs/amplify-theme/typedoc/partials/member.sources.hbs deleted file mode 100644 index 367a3aedccc..00000000000 --- a/docs/amplify-theme/typedoc/partials/member.sources.hbs +++ /dev/null @@ -1,22 +0,0 @@ - \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/members.group.hbs b/docs/amplify-theme/typedoc/partials/members.group.hbs deleted file mode 100644 index 574cf147485..00000000000 --- a/docs/amplify-theme/typedoc/partials/members.group.hbs +++ /dev/null @@ -1,8 +0,0 @@ -
    -

    {{title}}

    - {{#each children}} - {{#unless hasOwnDocument}} - {{> member}} - {{/unless}} - {{/each}} -
    diff --git a/docs/amplify-theme/typedoc/partials/members.hbs b/docs/amplify-theme/typedoc/partials/members.hbs deleted file mode 100644 index 728fe7b54ab..00000000000 --- a/docs/amplify-theme/typedoc/partials/members.hbs +++ /dev/null @@ -1,5 +0,0 @@ -{{#each groups}} - {{#unless allChildrenHaveOwnDocument}} - {{> members.group}} - {{/unless}} -{{/each}} \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/navigation.hbs b/docs/amplify-theme/typedoc/partials/navigation.hbs deleted file mode 100644 index b1f91e4e9d0..00000000000 --- a/docs/amplify-theme/typedoc/partials/navigation.hbs +++ /dev/null @@ -1,26 +0,0 @@ -{{#if isVisible}} - {{#if isLabel}} -
  • - {{{wbr title}}} -
  • - {{else}} - {{#if isGlobals}} -
  • - {{{wbr title}}} -
  • - {{else}} -
  • - {{{wbr title}}} - {{#if isInPath}} - {{#if children}} -
      - {{#each children}} - {{> navigation}} - {{/each}} -
    - {{/if}} - {{/if}} -
  • - {{/if}} - {{/if}} -{{/if}} diff --git a/docs/amplify-theme/typedoc/partials/parameter.hbs b/docs/amplify-theme/typedoc/partials/parameter.hbs deleted file mode 100644 index eb06dc07ddf..00000000000 --- a/docs/amplify-theme/typedoc/partials/parameter.hbs +++ /dev/null @@ -1,81 +0,0 @@ -
      - {{#if signatures}} -
    • -
        - {{#each signatures}} -
      • {{> member.signature.title hideName=true }}
      • - {{/each}} -
      - -
        - {{#each signatures}} -
      • {{> member.signature.body hideSources=true }}
      • - {{/each}} -
      -
    • - {{/if}} - {{#if indexSignature}} -
    • -
      {{#compact}} - [ - {{#each indexSignature.parameters}} - {{#if flags.isRest}}...{{/if}}{{name}}: {{#with type}}{{>type}}{{/with}} - {{/each}} - ]:  - {{#with indexSignature.type}}{{>type}}{{/with}} - {{/compact}}
      - - {{#with indexSignature}} - {{> comment}} - {{/with}} - - {{#if indexSignature.type.declaration}} - {{#with indexSignature.type.declaration}} - {{> parameter}} - {{/with}} - {{/if}} -
    • - {{/if}} - {{#each children}} -
    • - {{#if signatures}} -
      {{#compact}} - {{#if flags.isRest}}...{{/if}} - {{{wbr name}}} - - {{#if isOptional}}?{{/if}} - :  - - function - {{/compact}}
      - - {{> member.signatures}} - {{else}} -
      {{#compact}} - {{#each flags}} - {{this}}  - {{/each}} - {{#if flags.isRest}}...{{/if}} - {{{wbr name}}} - - {{#if flags.isOptional}}?{{/if}} - :  - - {{#with type}}{{>type}}{{/with}} - {{/compact}}
      - - {{> comment}} - - {{#if children}} - {{> parameter}} - {{/if}} - - {{#if type.declaration}} - {{#with type.declaration}} - {{> parameter}} - {{/with}} - {{/if}} - {{/if}} -
    • - {{/each}} -
    diff --git a/docs/amplify-theme/typedoc/partials/toc.hbs b/docs/amplify-theme/typedoc/partials/toc.hbs deleted file mode 100644 index 56b1d748728..00000000000 --- a/docs/amplify-theme/typedoc/partials/toc.hbs +++ /dev/null @@ -1,10 +0,0 @@ -
  • - {{{wbr title}}} - {{#if children}} -
      - {{#each children}} - {{> toc}} - {{/each}} -
    - {{/if}} -
  • diff --git a/docs/amplify-theme/typedoc/partials/toc.root.hbs b/docs/amplify-theme/typedoc/partials/toc.root.hbs deleted file mode 100644 index cba0d663705..00000000000 --- a/docs/amplify-theme/typedoc/partials/toc.root.hbs +++ /dev/null @@ -1,18 +0,0 @@ -{{#if isInPath}} - -
      -{{/if}} -
    • - {{{wbr title}}} - {{#if children}} -
        - {{#each children}} - {{> toc}} - {{/each}} -
      - {{/if}} -
    • -{{#if isInPath}} -
    -
      -{{/if}} diff --git a/docs/amplify-theme/typedoc/partials/type.hbs b/docs/amplify-theme/typedoc/partials/type.hbs deleted file mode 100644 index 93f8d99bbe9..00000000000 --- a/docs/amplify-theme/typedoc/partials/type.hbs +++ /dev/null @@ -1,83 +0,0 @@ -{{#if this}} - {{#if reflection}} - {{#compact}} - - {{reflection.name}} - - {{#if typeArguments}} - < - - {{#each typeArguments}} - {{#if @index}} - , - {{/if}}{{> type}} - {{/each}} - - > - {{/if}} - {{/compact}} - {{else}} - {{#if elementType}} - {{#with elementType}} - {{#compact}} - {{#if types}} - ( - {{/if}} - {{> type}} - {{#if types}} - ) - {{/if}}[] - {{/compact}} - {{/with}} - {{else}} - {{#if types}} - {{#each types}} - {{#if @index}} - {{#ifCond ../type '==' 'intersection'}}&{{else}}|{{/ifCond}} - {{/if}}{{> type}} - {{/each}} - {{else}} - {{#if elements}} - {{#compact}} - [ - - {{#each elements}} - {{#if @index}} - , - {{/if}}{{> type}} - {{/each}} - - ] - {{/compact}} - {{else}} - {{#compact}} - - {{#if name}} - {{name}} - {{else}} - {{#if value}} - "{{value}}" - {{else}} - {{this}} - {{/if}} - {{/if}} - - {{#if typeArguments}} - < - - {{#each typeArguments}} - {{#if @index}} - , - {{/if}}{{> type}} - {{/each}} - - > - {{/if}} - {{/compact}} - {{/if}} - {{/if}} - {{/if}} - {{/if}} -{{else}} - void -{{/if}} diff --git a/docs/amplify-theme/typedoc/partials/typeAndParent.hbs b/docs/amplify-theme/typedoc/partials/typeAndParent.hbs deleted file mode 100644 index 02b25f557d8..00000000000 --- a/docs/amplify-theme/typedoc/partials/typeAndParent.hbs +++ /dev/null @@ -1,42 +0,0 @@ -{{#compact}} - {{#if this}} - {{#if elementType}} - {{#with elementType}} - {{> typeAndParent}} - {{/with}} - [] - {{else}} - {{#if reflection}} - {{#ifSignature reflection}} - {{#if reflection.parent.parent.url}} - {{reflection.parent.parent.name}} - {{else}} - {{reflection.parent.parent.name}} - {{/if}} - . - {{#if reflection.parent.url}} - {{reflection.parent.name}} - {{else}} - {{reflection.parent.name}} - {{/if}} - {{else}} - {{#if reflection.parent.url}} - {{reflection.parent.name}} - {{else}} - {{reflection.parent.name}} - {{/if}} - . - {{#if reflection.url}} - {{reflection.name}} - {{else}} - {{reflection.name}} - {{/if}} - {{/ifSignature}} - {{else}} - {{this}} - {{/if}} - {{/if}} - {{else}} - void - {{/if}} -{{/compact}} \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/partials/typeParameters.hbs b/docs/amplify-theme/typedoc/partials/typeParameters.hbs deleted file mode 100644 index 35f89d2ca96..00000000000 --- a/docs/amplify-theme/typedoc/partials/typeParameters.hbs +++ /dev/null @@ -1,14 +0,0 @@ -
        - {{#each typeParameters}} -
      • -

        {{#compact}} - {{name}} - {{#if type}} - - {{#with type}}{{> type}}{{/with}} - {{/if}} - {{/compact}}

        - {{> comment}} -
      • - {{/each}} -
      \ No newline at end of file diff --git a/docs/amplify-theme/typedoc/templates/index.hbs b/docs/amplify-theme/typedoc/templates/index.hbs deleted file mode 100644 index 1cda7d4d085..00000000000 --- a/docs/amplify-theme/typedoc/templates/index.hbs +++ /dev/null @@ -1,16 +0,0 @@ -{{#with model}} - {{> comment}} -{{/with}} - -{{#if model.typeHierarchy}} -
      -

      Hierarchy

      - {{#with model.typeHierarchy}}{{> hierarchy}}{{/with}} -
      -{{/if}} - -{{#with model}} -
      - {{> index}} - {{> members}} -{{/with}} \ No newline at end of file diff --git a/docs/changelog.md b/docs/changelog.md deleted file mode 100644 index a2fcfd4d6a5..00000000000 --- a/docs/changelog.md +++ /dev/null @@ -1,4 +0,0 @@ -02/28/2008 - -- New theme applied for documentation -- New documentation home page (Removed dublicate installation guidance on homepage) diff --git a/docs/default.md b/docs/default.md deleted file mode 100755 index 58d4710aedb..00000000000 --- a/docs/default.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100755 index 5856002f186..00000000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/images/Circle-Badge/Angular@1x.png b/docs/images/Circle-Badge/Angular@1x.png deleted file mode 100644 index 0c5f9f24f94..00000000000 Binary files a/docs/images/Circle-Badge/Angular@1x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/Angular@2x.png b/docs/images/Circle-Badge/Angular@2x.png deleted file mode 100644 index 8b488a8a452..00000000000 Binary files a/docs/images/Circle-Badge/Angular@2x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/Apple@1x.png b/docs/images/Circle-Badge/Apple@1x.png deleted file mode 100644 index a99362525ab..00000000000 Binary files a/docs/images/Circle-Badge/Apple@1x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/Apple@2x.png b/docs/images/Circle-Badge/Apple@2x.png deleted file mode 100644 index ea29e3ab1cd..00000000000 Binary files a/docs/images/Circle-Badge/Apple@2x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/Droid@1x.png b/docs/images/Circle-Badge/Droid@1x.png deleted file mode 100644 index 0883265d21b..00000000000 Binary files a/docs/images/Circle-Badge/Droid@1x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/Droid@2x.png b/docs/images/Circle-Badge/Droid@2x.png deleted file mode 100644 index f55278a52d6..00000000000 Binary files a/docs/images/Circle-Badge/Droid@2x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/JS@1x.png b/docs/images/Circle-Badge/JS@1x.png deleted file mode 100644 index d9e95448169..00000000000 Binary files a/docs/images/Circle-Badge/JS@1x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/JS@2x.png b/docs/images/Circle-Badge/JS@2x.png deleted file mode 100644 index 2a19411098d..00000000000 Binary files a/docs/images/Circle-Badge/JS@2x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/React@1x.png b/docs/images/Circle-Badge/React@1x.png deleted file mode 100644 index 124c57f9195..00000000000 Binary files a/docs/images/Circle-Badge/React@1x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/React@2x.png b/docs/images/Circle-Badge/React@2x.png deleted file mode 100644 index 06d7eeb79da..00000000000 Binary files a/docs/images/Circle-Badge/React@2x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/ReactNat@1x.png b/docs/images/Circle-Badge/ReactNat@1x.png deleted file mode 100644 index e25becc1d56..00000000000 Binary files a/docs/images/Circle-Badge/ReactNat@1x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/ReactNat@2x.png b/docs/images/Circle-Badge/ReactNat@2x.png deleted file mode 100644 index 6d33377df25..00000000000 Binary files a/docs/images/Circle-Badge/ReactNat@2x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/Xamarin@1x.png b/docs/images/Circle-Badge/Xamarin@1x.png deleted file mode 100644 index 01262cb0473..00000000000 Binary files a/docs/images/Circle-Badge/Xamarin@1x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/Xamarin@2x.png b/docs/images/Circle-Badge/Xamarin@2x.png deleted file mode 100644 index 91832fe2d62..00000000000 Binary files a/docs/images/Circle-Badge/Xamarin@2x.png and /dev/null differ diff --git a/docs/images/Circle-Badge/web.png b/docs/images/Circle-Badge/web.png deleted file mode 100644 index 0f6d4dacfb6..00000000000 Binary files a/docs/images/Circle-Badge/web.png and /dev/null differ diff --git a/docs/images/Images/Auth@1x.png b/docs/images/Images/Auth@1x.png deleted file mode 100644 index f992bdeffef..00000000000 Binary files a/docs/images/Images/Auth@1x.png and /dev/null differ diff --git a/docs/images/Images/Auth@2x.png b/docs/images/Images/Auth@2x.png deleted file mode 100644 index 07fabc8444d..00000000000 Binary files a/docs/images/Images/Auth@2x.png and /dev/null differ diff --git a/docs/images/Images/Chat@1x.png b/docs/images/Images/Chat@1x.png deleted file mode 100644 index 5f242126923..00000000000 Binary files a/docs/images/Images/Chat@1x.png and /dev/null differ diff --git a/docs/images/Images/Chat@2x.png b/docs/images/Images/Chat@2x.png deleted file mode 100644 index a9b726bd861..00000000000 Binary files a/docs/images/Images/Chat@2x.png and /dev/null differ diff --git a/docs/images/Images/Code-Window@2x.png b/docs/images/Images/Code-Window@2x.png deleted file mode 100644 index e6859743b1d..00000000000 Binary files a/docs/images/Images/Code-Window@2x.png and /dev/null differ diff --git a/docs/images/Images/Laptop-Image@2x.png b/docs/images/Images/Laptop-Image@2x.png deleted file mode 100644 index 18c2b0cef75..00000000000 Binary files a/docs/images/Images/Laptop-Image@2x.png and /dev/null differ diff --git a/docs/images/Images/Pages@2x.png b/docs/images/Images/Pages@2x.png deleted file mode 100644 index 9bd47ad168c..00000000000 Binary files a/docs/images/Images/Pages@2x.png and /dev/null differ diff --git a/docs/images/Images/Phone Banner@1x.png b/docs/images/Images/Phone Banner@1x.png deleted file mode 100644 index 6d151babfa8..00000000000 Binary files a/docs/images/Images/Phone Banner@1x.png and /dev/null differ diff --git a/docs/images/Images/Phone-Banner@2x.png b/docs/images/Images/Phone-Banner@2x.png deleted file mode 100644 index 458409e7df5..00000000000 Binary files a/docs/images/Images/Phone-Banner@2x.png and /dev/null differ diff --git a/docs/images/Logos/AWS logo footer.svg b/docs/images/Logos/AWS logo footer.svg deleted file mode 100644 index 348b2e94b95..00000000000 --- a/docs/images/Logos/AWS logo footer.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - Logos/AWS logo footer - Created with Sketch. - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/images/Logos/Amplify Logo.svg b/docs/images/Logos/Amplify Logo.svg deleted file mode 100644 index f548ffa44d8..00000000000 --- a/docs/images/Logos/Amplify Logo.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - Logo/Amplify Logo - Created with Sketch. - - - - - - - - \ No newline at end of file diff --git a/docs/images/Logos/Amplify-Logo-White.svg b/docs/images/Logos/Amplify-Logo-White.svg deleted file mode 100644 index f317596319b..00000000000 --- a/docs/images/Logos/Amplify-Logo-White.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - Logo/Amplify Logo White - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/docs/images/Logos/Angular Color@2x.png b/docs/images/Logos/Angular Color@2x.png deleted file mode 100644 index 3a895a10f06..00000000000 Binary files a/docs/images/Logos/Angular Color@2x.png and /dev/null differ diff --git a/docs/images/Logos/Angular Med White@2x.png b/docs/images/Logos/Angular Med White@2x.png deleted file mode 100644 index 1c6dac570f0..00000000000 Binary files a/docs/images/Logos/Angular Med White@2x.png and /dev/null differ diff --git a/docs/images/Logos/Angular-Color@1x.png b/docs/images/Logos/Angular-Color@1x.png deleted file mode 100644 index 5ec7ccacdb0..00000000000 Binary files a/docs/images/Logos/Angular-Color@1x.png and /dev/null differ diff --git a/docs/images/Logos/Angular-Med-White@1x.png b/docs/images/Logos/Angular-Med-White@1x.png deleted file mode 100644 index 2a852fc1e62..00000000000 Binary files a/docs/images/Logos/Angular-Med-White@1x.png and /dev/null differ diff --git a/docs/images/Logos/Apple Small Grey.png b/docs/images/Logos/Apple Small Grey.png deleted file mode 100644 index c6b8f59389f..00000000000 Binary files a/docs/images/Logos/Apple Small Grey.png and /dev/null differ diff --git a/docs/images/Logos/Apple Small White@2x.png b/docs/images/Logos/Apple Small White@2x.png deleted file mode 100644 index 6db27ff94d7..00000000000 Binary files a/docs/images/Logos/Apple Small White@2x.png and /dev/null differ diff --git a/docs/images/Logos/Apple-Small-White@1x.png b/docs/images/Logos/Apple-Small-White@1x.png deleted file mode 100644 index 0cddb856d4f..00000000000 Binary files a/docs/images/Logos/Apple-Small-White@1x.png and /dev/null differ diff --git a/docs/images/Logos/Droid Small Grey.png b/docs/images/Logos/Droid Small Grey.png deleted file mode 100644 index a2beff2b482..00000000000 Binary files a/docs/images/Logos/Droid Small Grey.png and /dev/null differ diff --git a/docs/images/Logos/Droid Small White@2x.png b/docs/images/Logos/Droid Small White@2x.png deleted file mode 100644 index 18dbb8298b9..00000000000 Binary files a/docs/images/Logos/Droid Small White@2x.png and /dev/null differ diff --git a/docs/images/Logos/Droid-Small-White@1x.png b/docs/images/Logos/Droid-Small-White@1x.png deleted file mode 100644 index df709b9e642..00000000000 Binary files a/docs/images/Logos/Droid-Small-White@1x.png and /dev/null differ diff --git a/docs/images/Logos/GitHub-Mark-120px-plus.png b/docs/images/Logos/GitHub-Mark-120px-plus.png deleted file mode 100644 index ea6ff545a24..00000000000 Binary files a/docs/images/Logos/GitHub-Mark-120px-plus.png and /dev/null differ diff --git a/docs/images/Logos/GitHub-Mark-32px.png b/docs/images/Logos/GitHub-Mark-32px.png deleted file mode 100644 index 8b25551a979..00000000000 Binary files a/docs/images/Logos/GitHub-Mark-32px.png and /dev/null differ diff --git a/docs/images/Logos/GitHub-Mark-64px.png b/docs/images/Logos/GitHub-Mark-64px.png deleted file mode 100644 index 182a1a3f734..00000000000 Binary files a/docs/images/Logos/GitHub-Mark-64px.png and /dev/null differ diff --git a/docs/images/Logos/GitHub-Mark-Light-120px-plus.png b/docs/images/Logos/GitHub-Mark-Light-120px-plus.png deleted file mode 100644 index 192846a1208..00000000000 Binary files a/docs/images/Logos/GitHub-Mark-Light-120px-plus.png and /dev/null differ diff --git a/docs/images/Logos/GitHub-Mark-Light-32px.png b/docs/images/Logos/GitHub-Mark-Light-32px.png deleted file mode 100644 index 628da97c708..00000000000 Binary files a/docs/images/Logos/GitHub-Mark-Light-32px.png and /dev/null differ diff --git a/docs/images/Logos/GitHub-Mark-Light-64px.png b/docs/images/Logos/GitHub-Mark-Light-64px.png deleted file mode 100644 index 73db1f61f3a..00000000000 Binary files a/docs/images/Logos/GitHub-Mark-Light-64px.png and /dev/null differ diff --git a/docs/images/Logos/Ionic Color@2x.png b/docs/images/Logos/Ionic Color@2x.png deleted file mode 100644 index b77a63270bf..00000000000 Binary files a/docs/images/Logos/Ionic Color@2x.png and /dev/null differ diff --git a/docs/images/Logos/Ionic-Color@1x.png b/docs/images/Logos/Ionic-Color@1x.png deleted file mode 100644 index 1e40fa359b4..00000000000 Binary files a/docs/images/Logos/Ionic-Color@1x.png and /dev/null differ diff --git a/docs/images/Logos/JS Med White@2x.png b/docs/images/Logos/JS Med White@2x.png deleted file mode 100644 index 2c3a18fe804..00000000000 Binary files a/docs/images/Logos/JS Med White@2x.png and /dev/null differ diff --git a/docs/images/Logos/JS-Med-White@1x.png b/docs/images/Logos/JS-Med-White@1x.png deleted file mode 100644 index 5f23ea1de30..00000000000 Binary files a/docs/images/Logos/JS-Med-White@1x.png and /dev/null differ diff --git a/docs/images/Logos/JS-Small-White@1x.png b/docs/images/Logos/JS-Small-White@1x.png deleted file mode 100644 index 8cf8a16aa82..00000000000 Binary files a/docs/images/Logos/JS-Small-White@1x.png and /dev/null differ diff --git a/docs/images/Logos/JS-Small-White@2x.png b/docs/images/Logos/JS-Small-White@2x.png deleted file mode 100644 index c5afe541fd4..00000000000 Binary files a/docs/images/Logos/JS-Small-White@2x.png and /dev/null differ diff --git a/docs/images/Logos/JS-White.png b/docs/images/Logos/JS-White.png deleted file mode 100644 index c92d67ee806..00000000000 Binary files a/docs/images/Logos/JS-White.png and /dev/null differ diff --git a/docs/images/Logos/Mini super g.svg b/docs/images/Logos/Mini super g.svg deleted file mode 100644 index 7bd8703d114..00000000000 --- a/docs/images/Logos/Mini super g.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - Logos/Mini super g - Created with Sketch. - - - - - - - - - \ No newline at end of file diff --git a/docs/images/Logos/Platform-Icons-Color@2x.png b/docs/images/Logos/Platform-Icons-Color@2x.png deleted file mode 100644 index f5ca98cf012..00000000000 Binary files a/docs/images/Logos/Platform-Icons-Color@2x.png and /dev/null differ diff --git a/docs/images/Logos/React Color@2x.png b/docs/images/Logos/React Color@2x.png deleted file mode 100644 index befddac06d1..00000000000 Binary files a/docs/images/Logos/React Color@2x.png and /dev/null differ diff --git a/docs/images/Logos/React Med White@1x.png b/docs/images/Logos/React Med White@1x.png deleted file mode 100644 index 5328e327179..00000000000 Binary files a/docs/images/Logos/React Med White@1x.png and /dev/null differ diff --git a/docs/images/Logos/React Med White@2x.png b/docs/images/Logos/React Med White@2x.png deleted file mode 100644 index ee7df2ab676..00000000000 Binary files a/docs/images/Logos/React Med White@2x.png and /dev/null differ diff --git a/docs/images/Logos/React-Color@1x.png b/docs/images/Logos/React-Color@1x.png deleted file mode 100644 index 5ceab28e2bc..00000000000 Binary files a/docs/images/Logos/React-Color@1x.png and /dev/null differ diff --git a/docs/images/Logos/React-Small-Grey.png b/docs/images/Logos/React-Small-Grey.png deleted file mode 100644 index 767e1b70afa..00000000000 Binary files a/docs/images/Logos/React-Small-Grey.png and /dev/null differ diff --git a/docs/images/Logos/React-Small-White@1x.png b/docs/images/Logos/React-Small-White@1x.png deleted file mode 100644 index a9d4b964f66..00000000000 Binary files a/docs/images/Logos/React-Small-White@1x.png and /dev/null differ diff --git a/docs/images/Logos/React-Small-White@2x.png b/docs/images/Logos/React-Small-White@2x.png deleted file mode 100644 index a0da634c51d..00000000000 Binary files a/docs/images/Logos/React-Small-White@2x.png and /dev/null differ diff --git a/docs/images/Logos/Twitter_Logo_Blue.svg b/docs/images/Logos/Twitter_Logo_Blue.svg deleted file mode 100755 index 2832e7b524a..00000000000 --- a/docs/images/Logos/Twitter_Logo_Blue.svg +++ /dev/null @@ -1 +0,0 @@ -Twitter_Logo_Blue \ No newline at end of file diff --git a/docs/images/Logos/Vue Color@2x.png b/docs/images/Logos/Vue Color@2x.png deleted file mode 100644 index fe1167844c6..00000000000 Binary files a/docs/images/Logos/Vue Color@2x.png and /dev/null differ diff --git a/docs/images/Logos/Vue-Color@1x.png b/docs/images/Logos/Vue-Color@1x.png deleted file mode 100644 index 76d0fe28a18..00000000000 Binary files a/docs/images/Logos/Vue-Color@1x.png and /dev/null differ diff --git a/docs/images/Logos/Web-Small-Grey.png b/docs/images/Logos/Web-Small-Grey.png deleted file mode 100644 index a3b61fbce40..00000000000 Binary files a/docs/images/Logos/Web-Small-Grey.png and /dev/null differ diff --git a/docs/images/Logos/aws_logo.png b/docs/images/Logos/aws_logo.png deleted file mode 100644 index 1bf47a64228..00000000000 Binary files a/docs/images/Logos/aws_logo.png and /dev/null differ diff --git a/docs/images/Style_Guide/alert.png b/docs/images/Style_Guide/alert.png deleted file mode 100644 index ec3dab60e0a..00000000000 Binary files a/docs/images/Style_Guide/alert.png and /dev/null differ diff --git a/docs/images/Style_Guide/big_toggle.png b/docs/images/Style_Guide/big_toggle.png deleted file mode 100644 index d1df6dc1873..00000000000 Binary files a/docs/images/Style_Guide/big_toggle.png and /dev/null differ diff --git a/docs/images/Style_Guide/checkboxes.png b/docs/images/Style_Guide/checkboxes.png deleted file mode 100644 index 73eaaa6247f..00000000000 Binary files a/docs/images/Style_Guide/checkboxes.png and /dev/null differ diff --git a/docs/images/Style_Guide/confirm_signup.png b/docs/images/Style_Guide/confirm_signup.png deleted file mode 100644 index c2af1ff17bc..00000000000 Binary files a/docs/images/Style_Guide/confirm_signup.png and /dev/null differ diff --git a/docs/images/Style_Guide/critical_action_btn.png b/docs/images/Style_Guide/critical_action_btn.png deleted file mode 100644 index 4d7119fcf90..00000000000 Binary files a/docs/images/Style_Guide/critical_action_btn.png and /dev/null differ diff --git a/docs/images/Style_Guide/critical_action_btn_colors.png b/docs/images/Style_Guide/critical_action_btn_colors.png deleted file mode 100644 index e85c864f3b4..00000000000 Binary files a/docs/images/Style_Guide/critical_action_btn_colors.png and /dev/null differ diff --git a/docs/images/Style_Guide/dropdowns_menus.png b/docs/images/Style_Guide/dropdowns_menus.png deleted file mode 100644 index 97c46d7ec45..00000000000 Binary files a/docs/images/Style_Guide/dropdowns_menus.png and /dev/null differ diff --git a/docs/images/Style_Guide/el_amazon_orange.png b/docs/images/Style_Guide/el_amazon_orange.png deleted file mode 100644 index e7a7a0af80c..00000000000 Binary files a/docs/images/Style_Guide/el_amazon_orange.png and /dev/null differ diff --git a/docs/images/Style_Guide/el_greys.png b/docs/images/Style_Guide/el_greys.png deleted file mode 100644 index 2ea07b5df30..00000000000 Binary files a/docs/images/Style_Guide/el_greys.png and /dev/null differ diff --git a/docs/images/Style_Guide/el_prime_blue.png b/docs/images/Style_Guide/el_prime_blue.png deleted file mode 100644 index f1e069560c0..00000000000 Binary files a/docs/images/Style_Guide/el_prime_blue.png and /dev/null differ diff --git a/docs/images/Style_Guide/el_purple_blue.png b/docs/images/Style_Guide/el_purple_blue.png deleted file mode 100644 index e29d6a23273..00000000000 Binary files a/docs/images/Style_Guide/el_purple_blue.png and /dev/null differ diff --git a/docs/images/Style_Guide/el_squid_ink.png b/docs/images/Style_Guide/el_squid_ink.png deleted file mode 100644 index d1ed3a5c00b..00000000000 Binary files a/docs/images/Style_Guide/el_squid_ink.png and /dev/null differ diff --git a/docs/images/Style_Guide/ember_bold.png b/docs/images/Style_Guide/ember_bold.png deleted file mode 100644 index 34ba75c073f..00000000000 Binary files a/docs/images/Style_Guide/ember_bold.png and /dev/null differ diff --git a/docs/images/Style_Guide/ember_light.png b/docs/images/Style_Guide/ember_light.png deleted file mode 100644 index 7ff1d1b6805..00000000000 Binary files a/docs/images/Style_Guide/ember_light.png and /dev/null differ diff --git a/docs/images/Style_Guide/ember_reg.png b/docs/images/Style_Guide/ember_reg.png deleted file mode 100644 index d0c09a1a34a..00000000000 Binary files a/docs/images/Style_Guide/ember_reg.png and /dev/null differ diff --git a/docs/images/Style_Guide/graphic_toast.png b/docs/images/Style_Guide/graphic_toast.png deleted file mode 100644 index 4aab86fbf8a..00000000000 Binary files a/docs/images/Style_Guide/graphic_toast.png and /dev/null differ diff --git a/docs/images/Style_Guide/helvetica_neue.png b/docs/images/Style_Guide/helvetica_neue.png deleted file mode 100644 index 5e09ad60811..00000000000 Binary files a/docs/images/Style_Guide/helvetica_neue.png and /dev/null differ diff --git a/docs/images/Style_Guide/large_dialog.png b/docs/images/Style_Guide/large_dialog.png deleted file mode 100644 index 68e18e12ca1..00000000000 Binary files a/docs/images/Style_Guide/large_dialog.png and /dev/null differ diff --git a/docs/images/Style_Guide/large_modal.png b/docs/images/Style_Guide/large_modal.png deleted file mode 100644 index 681dbfb2194..00000000000 Binary files a/docs/images/Style_Guide/large_modal.png and /dev/null differ diff --git a/docs/images/Style_Guide/medium_btns.png b/docs/images/Style_Guide/medium_btns.png deleted file mode 100644 index d343787755b..00000000000 Binary files a/docs/images/Style_Guide/medium_btns.png and /dev/null differ diff --git a/docs/images/Style_Guide/message_chat.png b/docs/images/Style_Guide/message_chat.png deleted file mode 100644 index f949733450d..00000000000 Binary files a/docs/images/Style_Guide/message_chat.png and /dev/null differ diff --git a/docs/images/Style_Guide/message_chat_site.png b/docs/images/Style_Guide/message_chat_site.png deleted file mode 100644 index bcb3573b762..00000000000 Binary files a/docs/images/Style_Guide/message_chat_site.png and /dev/null differ diff --git a/docs/images/Style_Guide/message_list.png b/docs/images/Style_Guide/message_list.png deleted file mode 100644 index ab19ae91f34..00000000000 Binary files a/docs/images/Style_Guide/message_list.png and /dev/null differ diff --git a/docs/images/Style_Guide/multi_select_calendar.png b/docs/images/Style_Guide/multi_select_calendar.png deleted file mode 100644 index 16f7e306c6c..00000000000 Binary files a/docs/images/Style_Guide/multi_select_calendar.png and /dev/null differ diff --git a/docs/images/Style_Guide/multi_select_calendar_mobile.png b/docs/images/Style_Guide/multi_select_calendar_mobile.png deleted file mode 100644 index 7ab94c0a837..00000000000 Binary files a/docs/images/Style_Guide/multi_select_calendar_mobile.png and /dev/null differ diff --git a/docs/images/Style_Guide/new_user_account.png b/docs/images/Style_Guide/new_user_account.png deleted file mode 100644 index 12ce8028c9b..00000000000 Binary files a/docs/images/Style_Guide/new_user_account.png and /dev/null differ diff --git a/docs/images/Style_Guide/new_user_account_mobile.png b/docs/images/Style_Guide/new_user_account_mobile.png deleted file mode 100644 index 5f42a60a3e0..00000000000 Binary files a/docs/images/Style_Guide/new_user_account_mobile.png and /dev/null differ diff --git a/docs/images/Style_Guide/new_user_account_mobile_keyboard.png b/docs/images/Style_Guide/new_user_account_mobile_keyboard.png deleted file mode 100644 index 7ad4c3d25e2..00000000000 Binary files a/docs/images/Style_Guide/new_user_account_mobile_keyboard.png and /dev/null differ diff --git a/docs/images/Style_Guide/new_user_account_social.png b/docs/images/Style_Guide/new_user_account_social.png deleted file mode 100644 index ede59332547..00000000000 Binary files a/docs/images/Style_Guide/new_user_account_social.png and /dev/null differ diff --git a/docs/images/Style_Guide/pagination_carousel.png b/docs/images/Style_Guide/pagination_carousel.png deleted file mode 100644 index 056d02438fb..00000000000 Binary files a/docs/images/Style_Guide/pagination_carousel.png and /dev/null differ diff --git a/docs/images/Style_Guide/pc_amazon_orange.png b/docs/images/Style_Guide/pc_amazon_orange.png deleted file mode 100644 index b7ad25bb55f..00000000000 Binary files a/docs/images/Style_Guide/pc_amazon_orange.png and /dev/null differ diff --git a/docs/images/Style_Guide/pc_dark_gray.png b/docs/images/Style_Guide/pc_dark_gray.png deleted file mode 100644 index 9c739fed3d0..00000000000 Binary files a/docs/images/Style_Guide/pc_dark_gray.png and /dev/null differ diff --git a/docs/images/Style_Guide/pc_light_gray.png b/docs/images/Style_Guide/pc_light_gray.png deleted file mode 100644 index 5df9ddcb26d..00000000000 Binary files a/docs/images/Style_Guide/pc_light_gray.png and /dev/null differ diff --git a/docs/images/Style_Guide/pc_squid_ink.png b/docs/images/Style_Guide/pc_squid_ink.png deleted file mode 100644 index d46860bdad7..00000000000 Binary files a/docs/images/Style_Guide/pc_squid_ink.png and /dev/null differ diff --git a/docs/images/Style_Guide/photo_picker.png b/docs/images/Style_Guide/photo_picker.png deleted file mode 100644 index 99c78a0b92c..00000000000 Binary files a/docs/images/Style_Guide/photo_picker.png and /dev/null differ diff --git a/docs/images/Style_Guide/photo_picker_empty.png b/docs/images/Style_Guide/photo_picker_empty.png deleted file mode 100644 index bde2f816279..00000000000 Binary files a/docs/images/Style_Guide/photo_picker_empty.png and /dev/null differ diff --git a/docs/images/Style_Guide/photo_picker_mobile.png b/docs/images/Style_Guide/photo_picker_mobile.png deleted file mode 100644 index 1ca6722f97d..00000000000 Binary files a/docs/images/Style_Guide/photo_picker_mobile.png and /dev/null differ diff --git a/docs/images/Style_Guide/photo_picker_mobile_empty.png b/docs/images/Style_Guide/photo_picker_mobile_empty.png deleted file mode 100644 index 7a8ebc2a478..00000000000 Binary files a/docs/images/Style_Guide/photo_picker_mobile_empty.png and /dev/null differ diff --git a/docs/images/Style_Guide/primary_btn_colors.png b/docs/images/Style_Guide/primary_btn_colors.png deleted file mode 100644 index e0b9c544314..00000000000 Binary files a/docs/images/Style_Guide/primary_btn_colors.png and /dev/null differ diff --git a/docs/images/Style_Guide/primary_lg_btn.png b/docs/images/Style_Guide/primary_lg_btn.png deleted file mode 100644 index 65d8e4a244c..00000000000 Binary files a/docs/images/Style_Guide/primary_lg_btn.png and /dev/null differ diff --git a/docs/images/Style_Guide/primary_secondary_btns.png b/docs/images/Style_Guide/primary_secondary_btns.png deleted file mode 100644 index 9b4c1d2cea3..00000000000 Binary files a/docs/images/Style_Guide/primary_secondary_btns.png and /dev/null differ diff --git a/docs/images/Style_Guide/radios.png b/docs/images/Style_Guide/radios.png deleted file mode 100644 index 5a089ce31f7..00000000000 Binary files a/docs/images/Style_Guide/radios.png and /dev/null differ diff --git a/docs/images/Style_Guide/recover_user_account.png b/docs/images/Style_Guide/recover_user_account.png deleted file mode 100644 index df3f339d927..00000000000 Binary files a/docs/images/Style_Guide/recover_user_account.png and /dev/null differ diff --git a/docs/images/Style_Guide/recover_user_account2.png b/docs/images/Style_Guide/recover_user_account2.png deleted file mode 100644 index 3cc9488f0ab..00000000000 Binary files a/docs/images/Style_Guide/recover_user_account2.png and /dev/null differ diff --git a/docs/images/Style_Guide/reset_password_mobile.png b/docs/images/Style_Guide/reset_password_mobile.png deleted file mode 100644 index 7a1efdad321..00000000000 Binary files a/docs/images/Style_Guide/reset_password_mobile.png and /dev/null differ diff --git a/docs/images/Style_Guide/sc_amazon_ember_blaze.png b/docs/images/Style_Guide/sc_amazon_ember_blaze.png deleted file mode 100644 index 9ab58f3447f..00000000000 Binary files a/docs/images/Style_Guide/sc_amazon_ember_blaze.png and /dev/null differ diff --git a/docs/images/Style_Guide/sc_dark_blue.png b/docs/images/Style_Guide/sc_dark_blue.png deleted file mode 100644 index fae67bffd34..00000000000 Binary files a/docs/images/Style_Guide/sc_dark_blue.png and /dev/null differ diff --git a/docs/images/Style_Guide/sc_deep_squid_ink.png b/docs/images/Style_Guide/sc_deep_squid_ink.png deleted file mode 100644 index e9ccf602916..00000000000 Binary files a/docs/images/Style_Guide/sc_deep_squid_ink.png and /dev/null differ diff --git a/docs/images/Style_Guide/secondary_btn_colors.png b/docs/images/Style_Guide/secondary_btn_colors.png deleted file mode 100644 index e3180bf3721..00000000000 Binary files a/docs/images/Style_Guide/secondary_btn_colors.png and /dev/null differ diff --git a/docs/images/Style_Guide/secondary_lg_btn.png b/docs/images/Style_Guide/secondary_lg_btn.png deleted file mode 100644 index 969df002558..00000000000 Binary files a/docs/images/Style_Guide/secondary_lg_btn.png and /dev/null differ diff --git a/docs/images/Style_Guide/setup_totp.png b/docs/images/Style_Guide/setup_totp.png deleted file mode 100644 index c225e233340..00000000000 Binary files a/docs/images/Style_Guide/setup_totp.png and /dev/null differ diff --git a/docs/images/Style_Guide/sign_in_existing.png b/docs/images/Style_Guide/sign_in_existing.png deleted file mode 100644 index 4a69624ec22..00000000000 Binary files a/docs/images/Style_Guide/sign_in_existing.png and /dev/null differ diff --git a/docs/images/Style_Guide/single_select_calendar.png b/docs/images/Style_Guide/single_select_calendar.png deleted file mode 100644 index 1e0d0cf1886..00000000000 Binary files a/docs/images/Style_Guide/single_select_calendar.png and /dev/null differ diff --git a/docs/images/Style_Guide/small_toggle.png b/docs/images/Style_Guide/small_toggle.png deleted file mode 100644 index 82b18d775a6..00000000000 Binary files a/docs/images/Style_Guide/small_toggle.png and /dev/null differ diff --git a/docs/images/Style_Guide/status_bar_orange.png b/docs/images/Style_Guide/status_bar_orange.png deleted file mode 100644 index 5d0eff317fc..00000000000 Binary files a/docs/images/Style_Guide/status_bar_orange.png and /dev/null differ diff --git a/docs/images/Style_Guide/status_bar_white.png b/docs/images/Style_Guide/status_bar_white.png deleted file mode 100644 index c4f02920682..00000000000 Binary files a/docs/images/Style_Guide/status_bar_white.png and /dev/null differ diff --git a/docs/images/Style_Guide/tabs.png b/docs/images/Style_Guide/tabs.png deleted file mode 100644 index ef70295d99d..00000000000 Binary files a/docs/images/Style_Guide/tabs.png and /dev/null differ diff --git a/docs/images/Style_Guide/text_fields.png b/docs/images/Style_Guide/text_fields.png deleted file mode 100644 index d4e018075c4..00000000000 Binary files a/docs/images/Style_Guide/text_fields.png and /dev/null differ diff --git a/docs/images/Style_Guide/toast.png b/docs/images/Style_Guide/toast.png deleted file mode 100644 index a603eec80ef..00000000000 Binary files a/docs/images/Style_Guide/toast.png and /dev/null differ diff --git a/docs/images/Style_Guide/toggles.png b/docs/images/Style_Guide/toggles.png deleted file mode 100644 index 29eca6bb478..00000000000 Binary files a/docs/images/Style_Guide/toggles.png and /dev/null differ diff --git a/docs/images/Style_Guide/tooltips.png b/docs/images/Style_Guide/tooltips.png deleted file mode 100644 index 49bd0a3462e..00000000000 Binary files a/docs/images/Style_Guide/tooltips.png and /dev/null differ diff --git a/docs/images/Style_Guide/user_account_veri.png b/docs/images/Style_Guide/user_account_veri.png deleted file mode 100644 index c40da027138..00000000000 Binary files a/docs/images/Style_Guide/user_account_veri.png and /dev/null differ diff --git a/docs/images/icons/Medium/CLI-Toolchain.png b/docs/images/icons/Medium/CLI-Toolchain.png deleted file mode 100644 index ed40b97ea00..00000000000 Binary files a/docs/images/icons/Medium/CLI-Toolchain.png and /dev/null differ diff --git a/docs/images/icons/Medium/CommandLine-Icon.svg b/docs/images/icons/Medium/CommandLine-Icon.svg deleted file mode 100644 index e4cc5e4f9c2..00000000000 --- a/docs/images/icons/Medium/CommandLine-Icon.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - CommandLine Icon - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Medium/Down Arrow Grey.svg b/docs/images/icons/Medium/Down Arrow Grey.svg deleted file mode 100644 index fa08f9a5222..00000000000 --- a/docs/images/icons/Medium/Down Arrow Grey.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Medium/Down Arrow Grey - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Medium/Down Arrow.svg b/docs/images/icons/Medium/Down Arrow.svg deleted file mode 100644 index 1b2a6cb03ca..00000000000 --- a/docs/images/icons/Medium/Down Arrow.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Medium/Down Arrow - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Medium/Library-window.png b/docs/images/icons/Medium/Library-window.png deleted file mode 100644 index 16456908afa..00000000000 Binary files a/docs/images/icons/Medium/Library-window.png and /dev/null differ diff --git a/docs/images/icons/Medium/Search Grey.svg b/docs/images/icons/Medium/Search Grey.svg deleted file mode 100644 index f963f4ad732..00000000000 --- a/docs/images/icons/Medium/Search Grey.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Medium/Search Grey - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Medium/Search.svg b/docs/images/icons/Medium/Search.svg deleted file mode 100644 index e8801dae17e..00000000000 --- a/docs/images/icons/Medium/Search.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Medium/Search - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Medium/Trash Grey.svg b/docs/images/icons/Medium/Trash Grey.svg deleted file mode 100644 index 9fbd2307cff..00000000000 --- a/docs/images/icons/Medium/Trash Grey.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Medium/Trash Grey - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Medium/Trash.svg b/docs/images/icons/Medium/Trash.svg deleted file mode 100644 index 439922f7adf..00000000000 --- a/docs/images/icons/Medium/Trash.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Medium/Trash - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Medium/UI-Components.png b/docs/images/icons/Medium/UI-Components.png deleted file mode 100644 index 7da1dbf651d..00000000000 Binary files a/docs/images/icons/Medium/UI-Components.png and /dev/null differ diff --git a/docs/images/icons/Medium/Volume.svg b/docs/images/icons/Medium/Volume.svg deleted file mode 100644 index b89e7976deb..00000000000 --- a/docs/images/icons/Medium/Volume.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - Icons/Medium/Volume - Created with Sketch. - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Minis/Arrows.svg b/docs/images/icons/Minis/Arrows.svg deleted file mode 100644 index 05bcf2e74b9..00000000000 --- a/docs/images/icons/Minis/Arrows.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - Icons/Minis/Arrows - Created with Sketch. - - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Minis/Card.svg b/docs/images/icons/Minis/Card.svg deleted file mode 100644 index 47ed66db3ec..00000000000 --- a/docs/images/icons/Minis/Card.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Minis/Card - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Minis/Email.svg b/docs/images/icons/Minis/Email.svg deleted file mode 100644 index 1cc3e565097..00000000000 --- a/docs/images/icons/Minis/Email.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Minis/Email - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Minis/outline-create-24px.svg b/docs/images/icons/Minis/outline-create-24px.svg deleted file mode 100644 index 60e9f55017d..00000000000 --- a/docs/images/icons/Minis/outline-create-24px.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/docs/images/icons/Minis/outline-feedback-24px.svg b/docs/images/icons/Minis/outline-feedback-24px.svg deleted file mode 100644 index e148e12e345..00000000000 --- a/docs/images/icons/Minis/outline-feedback-24px.svg +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/images/icons/Misc/Add.svg b/docs/images/icons/Misc/Add.svg deleted file mode 100644 index c050c8d6ca3..00000000000 --- a/docs/images/icons/Misc/Add.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Misc/Add - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Misc/CircleCheck.svg b/docs/images/icons/Misc/CircleCheck.svg deleted file mode 100644 index 5317f553cb9..00000000000 --- a/docs/images/icons/Misc/CircleCheck.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - Icons/Misc/CircleCheck - Created with Sketch. - - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Misc/Cloud.svg b/docs/images/icons/Misc/Cloud.svg deleted file mode 100644 index 26091cc61a4..00000000000 --- a/docs/images/icons/Misc/Cloud.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Misc/Cloud - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Misc/Find.svg b/docs/images/icons/Misc/Find.svg deleted file mode 100644 index 92fa0841345..00000000000 --- a/docs/images/icons/Misc/Find.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Misc/Find - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Misc/Gear.svg b/docs/images/icons/Misc/Gear.svg deleted file mode 100644 index 244b6ac29e6..00000000000 --- a/docs/images/icons/Misc/Gear.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - Icons/Misc/Gear - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Misc/Info.svg b/docs/images/icons/Misc/Info.svg deleted file mode 100644 index 5b0a76b25d1..00000000000 --- a/docs/images/icons/Misc/Info.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Misc/Info - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Misc/Pencil.svg b/docs/images/icons/Misc/Pencil.svg deleted file mode 100644 index 28f97c512f0..00000000000 --- a/docs/images/icons/Misc/Pencil.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - Icons/Misc/Pencil - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Misc/Present.svg b/docs/images/icons/Misc/Present.svg deleted file mode 100644 index 497f50382b2..00000000000 --- a/docs/images/icons/Misc/Present.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Misc/Present - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Misc/Tool.svg b/docs/images/icons/Misc/Tool.svg deleted file mode 100644 index f3b31307ad3..00000000000 --- a/docs/images/icons/Misc/Tool.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Misc/Tool - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Check Line Grey.svg b/docs/images/icons/Small/Check Line Grey.svg deleted file mode 100644 index 539207af8d7..00000000000 --- a/docs/images/icons/Small/Check Line Grey.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Check Line Grey - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Check Line.svg b/docs/images/icons/Small/Check Line.svg deleted file mode 100644 index 4a622b19185..00000000000 --- a/docs/images/icons/Small/Check Line.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Check Line - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Checkmark Grey.svg b/docs/images/icons/Small/Checkmark Grey.svg deleted file mode 100644 index d9299bf5152..00000000000 --- a/docs/images/icons/Small/Checkmark Grey.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - Icons/Small/Checkmark Grey - Created with Sketch. - - - - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Checkmark.svg b/docs/images/icons/Small/Checkmark.svg deleted file mode 100644 index 94341e2656c..00000000000 --- a/docs/images/icons/Small/Checkmark.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - Icons/Small/Checkmark - Created with Sketch. - - - - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Close Grey.svg b/docs/images/icons/Small/Close Grey.svg deleted file mode 100644 index e915ceb3d78..00000000000 --- a/docs/images/icons/Small/Close Grey.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Close Grey - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Close.svg b/docs/images/icons/Small/Close.svg deleted file mode 100644 index 12023a53e05..00000000000 --- a/docs/images/icons/Small/Close.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Close - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Down Arrow Sm Grey.svg b/docs/images/icons/Small/Down Arrow Sm Grey.svg deleted file mode 100644 index 16eb0bada8f..00000000000 --- a/docs/images/icons/Small/Down Arrow Sm Grey.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Down Arrow Sm Grey - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Down-Arrow-Sm.svg b/docs/images/icons/Small/Down-Arrow-Sm.svg deleted file mode 100644 index eaa07f8f94b..00000000000 --- a/docs/images/icons/Small/Down-Arrow-Sm.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Down Arrow Sm - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/More-Button-no-shadow.svg b/docs/images/icons/Small/More-Button-no-shadow.svg deleted file mode 100644 index 09b5812da1c..00000000000 --- a/docs/images/icons/Small/More-Button-no-shadow.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - More Button - Created with Sketch. - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/More-Button.svg b/docs/images/icons/Small/More-Button.svg deleted file mode 100644 index d234590ecf8..00000000000 --- a/docs/images/icons/Small/More-Button.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - More Button - Created with Sketch. - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/RadioSelect Copy.svg b/docs/images/icons/Small/RadioSelect Copy.svg deleted file mode 100644 index 3dce7c37333..00000000000 --- a/docs/images/icons/Small/RadioSelect Copy.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/RadioSelect Copy - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/RadioSelect Grey.svg b/docs/images/icons/Small/RadioSelect Grey.svg deleted file mode 100644 index 0ee6efca5a4..00000000000 --- a/docs/images/icons/Small/RadioSelect Grey.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/RadioSelect Grey - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Search Sm Grey.svg b/docs/images/icons/Small/Search Sm Grey.svg deleted file mode 100644 index 02ed01eeda3..00000000000 --- a/docs/images/icons/Small/Search Sm Grey.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Search Sm Grey - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Search-Sm.svg b/docs/images/icons/Small/Search-Sm.svg deleted file mode 100644 index 192ff6104a3..00000000000 --- a/docs/images/icons/Small/Search-Sm.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Search Sm - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Trash Sm Grey.svg b/docs/images/icons/Small/Trash Sm Grey.svg deleted file mode 100644 index 540b5be4e5a..00000000000 --- a/docs/images/icons/Small/Trash Sm Grey.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Trash Sm Grey - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Trash Sm.svg b/docs/images/icons/Small/Trash Sm.svg deleted file mode 100644 index b358070da43..00000000000 --- a/docs/images/icons/Small/Trash Sm.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - Icons/Small/Trash Sm - Created with Sketch. - - - - - \ No newline at end of file diff --git a/docs/images/icons/Small/Web-Icon.svg b/docs/images/icons/Small/Web-Icon.svg deleted file mode 100644 index 43708b2b4a1..00000000000 --- a/docs/images/icons/Small/Web-Icon.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - Fill 34 - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/docs/images/icons/products_services_sprite_9182ebfe54f4fa0c8e7a5e67da3c85d4.png b/docs/images/icons/products_services_sprite_9182ebfe54f4fa0c8e7a5e67da3c85d4.png deleted file mode 100644 index e51a3396221..00000000000 Binary files a/docs/images/icons/products_services_sprite_9182ebfe54f4fa0c8e7a5e67da3c85d4.png and /dev/null differ diff --git a/docs/images/layout/Search.svg b/docs/images/layout/Search.svg deleted file mode 100644 index ce63c7f2384..00000000000 --- a/docs/images/layout/Search.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - A9628238-EC9F-4D99-9F98-B471224F8D93 - Created with sketchtool. - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/images/layout/favicon.ico b/docs/images/layout/favicon.ico deleted file mode 100644 index b0fcefd8e28..00000000000 Binary files a/docs/images/layout/favicon.ico and /dev/null differ diff --git a/docs/images/layout/logo-footer.png b/docs/images/layout/logo-footer.png deleted file mode 100644 index 3b53d8f20f9..00000000000 Binary files a/docs/images/layout/logo-footer.png and /dev/null differ diff --git a/docs/images/layout/logo.png b/docs/images/layout/logo.png deleted file mode 100644 index 5450456c24c..00000000000 Binary files a/docs/images/layout/logo.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000000..552f1f9bf00 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,10 @@ + + + + + Amplify JS API Documentation + + + + + diff --git a/docs/index.md b/docs/index.md deleted file mode 100644 index 58d4710aedb..00000000000 --- a/docs/index.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/analytics_guide.md b/docs/media/analytics_guide.md deleted file mode 100644 index 70b6835922a..00000000000 --- a/docs/media/analytics_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/angular_guide.md b/docs/media/angular_guide.md deleted file mode 100644 index 1da9eeac4c2..00000000000 --- a/docs/media/angular_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/api_guide.md b/docs/media/api_guide.md deleted file mode 100644 index 239e41f8896..00000000000 --- a/docs/media/api_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/api_reference.md b/docs/media/api_reference.md deleted file mode 100644 index 1269146c1ce..00000000000 --- a/docs/media/api_reference.md +++ /dev/null @@ -1,3 +0,0 @@ -# API Reference - -[API Reference](https://aws-amplify.github.io/amplify-js/api/) diff --git a/docs/media/api_reference_home.md b/docs/media/api_reference_home.md deleted file mode 100644 index 239e41f8896..00000000000 --- a/docs/media/api_reference_home.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/authentication_guide.md b/docs/media/authentication_guide.md deleted file mode 100644 index 70eaec2f580..00000000000 --- a/docs/media/authentication_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/backend/import_mobilehub/analytics.zip b/docs/media/backend/import_mobilehub/analytics.zip deleted file mode 100644 index 7d27d44cb73..00000000000 Binary files a/docs/media/backend/import_mobilehub/analytics.zip and /dev/null differ diff --git a/docs/media/backend/import_mobilehub/api.zip b/docs/media/backend/import_mobilehub/api.zip deleted file mode 100644 index 0280c513f28..00000000000 Binary files a/docs/media/backend/import_mobilehub/api.zip and /dev/null differ diff --git a/docs/media/backend/import_mobilehub/quick_start.zip b/docs/media/backend/import_mobilehub/quick_start.zip deleted file mode 100644 index d15bdf339a9..00000000000 Binary files a/docs/media/backend/import_mobilehub/quick_start.zip and /dev/null differ diff --git a/docs/media/backend/import_mobilehub/user-files.zip b/docs/media/backend/import_mobilehub/user-files.zip deleted file mode 100644 index 90206de3b15..00000000000 Binary files a/docs/media/backend/import_mobilehub/user-files.zip and /dev/null differ diff --git a/docs/media/backend/import_mobilehub/user-signin.zip b/docs/media/backend/import_mobilehub/user-signin.zip deleted file mode 100644 index df109f47e0a..00000000000 Binary files a/docs/media/backend/import_mobilehub/user-signin.zip and /dev/null differ diff --git a/docs/media/cache_guide.md b/docs/media/cache_guide.md deleted file mode 100644 index 2c8833aee28..00000000000 --- a/docs/media/cache_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/cli_guide.md b/docs/media/cli_guide.md deleted file mode 100644 index 91b0060752b..00000000000 --- a/docs/media/cli_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/configure.md b/docs/media/configure.md deleted file mode 100644 index 813e6a093e9..00000000000 --- a/docs/media/configure.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/create/hybrid-mobile-apps.md b/docs/media/create/hybrid-mobile-apps.md deleted file mode 100644 index d416831bcf0..00000000000 --- a/docs/media/create/hybrid-mobile-apps.md +++ /dev/null @@ -1,120 +0,0 @@ ---- -layout: examples ---- - -# Hybrid Mobile apps with AWS Amplify - -#### AWS Amplify helps web developers to build cloud-powered hybrid mobile apps quickly. - -Hybrid development based on Apache Cordova is an easy path to create mobile apps. AWS Amplify makes it even easier by handling the creation, configuration, and integration of cloud services. -{: style="font-size:20px;"} - -### What's in it for Hybrid Mobile Developers? - -For hybrid mobile developers, AWS Amplify provides following main benefits: - -- **Easy integration** for cloud operations with declarative API -- **CLI support** for bootstrapping your app backend quickly -- **Local configuration and deployment** of your app's backend logic -- **UI components** for common operations such as Authorization and Storage -- **Monitoring** app usage and **engaging** users with campaign analytics - -### Building Hybrid Mobile Apps with AWS Amplify - -Hybrid mobile development gives you the flexibility of creating multi-platform mobile apps with the tools and technologies you use for Web development. Combined with AWS Amplify's cloud services support, you can create your apps faster and iterate quickly to provide the best experience for your customers. - -Creating a web app with JavaScript, CSS and HTML5 and packaging it as a mobile app for distribution is an exciting idea for many developers. Indeed, this is the easiest way to build a mobile app if you are familiar with web development. - -When building hybrid mobile apps with AWS Amplify, your app resources are bundled and deployed with the toolchain of your preference, and your app's backend integration will be handled by AWS Amplify. - -You can import AWS Amplify in your Cordova or PhoneGap project to start working with your backend. In addition, AWS Amplify provides Angular components which you can use with Ionic. - -#### Declarative and easy-to-use API - -AWS Amplify's declarative API is focused on the interactions with data, rather than specific implementations of cloud operations. - -With AWS Amplify, you can focus more on your app's business logic and your end-user requirements, and let the standard functionality like authorization, user management, storage, notifications and analytics is handled for you. - -As an example, here is how you upload an image to a logged-in user's private storage: - -```js -Storage.put('example.png', file, { - level: 'private', - contentType: 'image/png', -}); -``` - -In this example, AWS Amplify Storage category already knows about the authenticated user context, your Amazon S3 buckets and request signing requirements for added security. All the underlying process is managed automatically under the hood, and you get what you want; uploading a user file to a protected location. - -#### CLI support - -Amplify CLI helps you to configure your app's backend easily. For example, the following command will create a cloud API which is an Amazon API Gateway endpoint: - -```bash -amplify add api -``` - -Amplify CLI creates the necessary folder structure and generates JavaScript files for your app's backend logic: - -![Performance Results](../images/backend_cloud_api.png?raw=true 'Performance Results') - -After working with your backend code, deploying your app backend is very simple with CLI: - -```bash -amplify push -``` - -#### Manage your Backend with Amplify CLI - -If you have existing AWS resources such as Amazon API Gateway endpoints or Amazon S3 buckets, you can use them with AWS Amplify by setting up resource credentials in your app's configuration. - -Otherwise, AWS Amplify CLI is a great tool for creating AWS resources, related user roles, and security policies. - -Mix and match building blocks for app's backend, and start working with cloud operations like Authorization, Storage and Cloud API. - -Syncing your latest backend configuration with your local app project is simple with the CLI: - -```bash -amplify push -``` - -#### Use your Favorite Frontend Library - -AWS Amplify provides UI components for React, Angular and Ionic, so you can import AWS Amplify modules easily and use UI components for Authentication and Storage categories. (Vue.js components support is coming soon.) - -In a React app, you can use a Higher-Order Components to provide a sign-in/sign-out experience for your app simply by wrapping your app's main component: - -```js -export default withAuthenticator(App); -``` - -In Angular or Ionic, you can use Authenticator UI component in your view to provide the same auth experience: - -```html - -``` - -#### Engage your audience - -Once you have deployed your web app, the next challenge is understanding how your users are interacting with your app. - -AWS Amplify provides built-in analytics, push notifications and targeted messaging. You will start getting key engagement metrics such as the number of user sessions and the number of app launches automatically after you deploy your app. - -Also, collecting more data with Analytics category is as simple as; - -```js -Analytics.record('albumVisit', { genre: 'jazz', artist: 'Miles Davis' }); -``` - -Analytics events are displayed in Amazon Pinpoint console. In the console, you can create targeted campaigns and push notifications to engage your customers. - -![Pinpoint](../images/pinpoint_analytics.png?raw=true 'Pinpoint') - -#### Utilities - -AWS Amplify comes with additional utility modules that will help you to build better-quality hybrid mobile apps. - -### Start Building now! - -Start building your hybrid mobile app with AWS Amplify by visiting our [Get Started Guide]({%if jekyll.environment == 'production'%}{{site.amplify.docs_baseurl}}{%endif%}/media/quick_start?utm_source=hybrid-mobile-apps&utm_campaign=build-pages). -{: .next-link .callout .callout--info} diff --git a/docs/media/create/react-native-apps.md b/docs/media/create/react-native-apps.md deleted file mode 100644 index 429351d68d8..00000000000 --- a/docs/media/create/react-native-apps.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -layout: examples ---- - -# React Native apps with AWS Amplify - -### AWS Amplify helps mobile developers to create cloud-powered React Native apps quickly. - -When working with React Native, AWS Amplify handles the heavy lifting of configuring and integrating cloud services for you. It provides a powerful API and React Native components to speed-up your development. -{: style="font-size:20px;"} - -### What's in it for React Native Developers? - -With AWS Amplify's cloud connectivity support, you can create your apps quickly and deliver the best experience for your users. For React Native developers, AWS Amplify provides following main benefits: - -- **Easy integration** with cloud operations using declarative API -- **CLI support** for bootstrapping your app backend quickly -- **Local configuration and deployment** of your app's backend logic -- **Security best-practices** with out-of-the-box implementations -- **React Native UI components** for common operations such as authorization and storage -- **Monitoring** app usage and **engaging** users with campaign analytics - -### Building React Native Apps with AWS Amplify - -React Native gives you the flexibility of creating multi-platform native mobile experiences with JavaScript. Unlike [hybrid mobile apps]({%if jekyll.environment == 'production'%}{{site.amplify.docs_baseurl}}{%endif%}/media/create/hybrid-mobile-apps) that run on a browser view, React Native apps run on a faster runtime environment which has better integration with native capabilities of the device. - -When building React Native apps, your app bundle is deployed to the app stores, and your mobile app's backend logic will be handled by cloud operations that you integrate with AWS Amplify. - -Cloud services for mobile apps are often categorized as MBaaS (mobile back-end as a service). AWS Amplify offers MBaaS functionality for various categories of cloud operations so that you can create your mobile app backend easily. - -#### Declarative and easy-to-use API - -AWS Amplify's declarative API is focused on the interactions with data, rather than specific implementations of cloud operations. - -With AWS Amplify, you can concentrate more on your app's business logic, while your backend features like authorization, user management, storage, notifications, and analytics are handled for you by cloud services. - -As an example, here is how you upload an image to a logged-in user's private storage: - -```js -Storage.put('example.png', file, { - level: 'private', - contentType: 'image/png', -}); -``` - -In this example, AWS Amplify Storage category already knows about the authenticated user context, your Amazon S3 buckets and request signing requirements for security. All the underlying operations are executed automatically under the hood, and you get what you want; uploading a user file to a secure location. - -#### CLI support - -Amplify CLI helps you to configure your app's backend easily. For example, the following command will create a cloud API which is an Amazon API Gateway endpoint: - -```bash -amplify add api -``` - -Amplify CLI generates JavaScript files for your app's backend logic, and places them to the appropriate folder structure in your project. - -![Performance Results](../images/backend_cloud_api.png?raw=true 'Performance Results') - -After working with your backend code, deploying your app backend is very simple with the CLI: - -```bash -amplify push -``` - -#### Manage your Backend with Amplify CLI - -If you have existing AWS resources such as Amazon API Gateway endpoints or Amazon S3 buckets, you can use them with AWS Amplify by setting up resource credentials in your app's configuration. - -Alternatively, Amplify CLI is an excellent tool for creating AWS resources, related user roles, and security policies. - -Syncing your latest backend configuration with your local app project is simple with the CLI: - -```bash -amplify push -``` - -#### React Native components - -To speed-up your React Native development, AWS Amplify provides UI components. You can import the UI components and use out-of-the box functionality for Authentication and Storage categories. - -As an example, in you React Native app, you can use a Higher-Order Components to provide a sign-in/sign-out experience for your app simply by wrapping your app's main component: - -```js -export default withAuthenticator(App); -``` - -#### Engage your audience - -Once you have deployed your web app, the next challenge will be monitoring your users' interaction with your app. - -AWS Amplify provides analytics, push notifications and targeted messaging capabilities out-of-the-box. You will start receiving key engagement metrics such as the number of user sessions and the number of app launches automatically after you deploy your app. - -Also, collecting more data with Analytics category is simple: - -```js -Analytics.record('albumVisit', { genre: 'jazz', artist: 'Miles Davis' }); -``` - -Analytics events are displayed in Amazon Pinpoint console. In the console, you can create targeted campaigns and send push notifications to engage your customers. - -![Performance Results](../images/pinpoint_analytics.png?raw=true 'Performance Results') - -#### Utilities - -AWS Amplify comes with additional utility modules that will help you to build better React Native apps with local cache, notifications, and more. - -### Start Building a React Native app now! - -Start building your Web app today with AWS Amplify by visiting our [Get Started Guide]({%if jekyll.environment == 'production'%}{{site.amplify.docs_baseurl}}{%endif%}/media/quick_start?platform=react-native&utm_source=web-apps&utm_campaign=build-pages). -{: .next-link .callout .callout--info} diff --git a/docs/media/create/static-web-sites.md b/docs/media/create/static-web-sites.md deleted file mode 100644 index 595b4c086dd..00000000000 --- a/docs/media/create/static-web-sites.md +++ /dev/null @@ -1,79 +0,0 @@ ---- -layout: examples ---- - -# Static Websites with AWS Amplify - -#### Deploy your Static Website with AWS Amplify - -With AWS Amplify, you can easily deploy your website for hosting and streaming, and add other cloud services going forward. -{: style="font-size:20px;"} - -### What's in it for Static Websites? - -For static websites, AWS Amplify provides following main benefits: - -- **One-command deployment** of your site with secure, CDN powered hosting -- **Streaming** support for your audio and video files -- **Testing** your website's loading times on real devices -- **Monitoring** and **engaging** users with campaign analytics -- **Adding cloud services** to your website quickly with the **CLI** - -### Building Static Websites with AWS Amplify - -When building static websites with AWS Amplify, your static assets are deployed to highly available globally CDN service for hosting and media streaming. - -If you wish to add new features such as user-signup, API access or analytics, AWS Amplify enables you to integrate those features quickly. - -Our CLI will handle deployments and backend service orchestration, so you can focus on your content and user experience without worrying about managing server resources. - -#### Deploy your Site with CLI - -Amplify CLI provides a one-line deploy command that pushes your app's static assets to the Content Delivery Network (CDN). Using a CDN dramatically increases your app's loading performance by serving your content to your users from the nearest edge location. - -```bash -amplify publish -``` - -CDN service, which is provided by Amazon CloudFront, will handle the high-performance delivery of your static assets. - -![CDN](../images/mobile_hub_cdn.png?raw=true 'CDN'){: style="max-height:450px;"} - -If your website includes video or audio files, those assets will be automatically streamed to the browser. - -#### Test your Site's Loading Performance - -Every time you deploy your website, a performance test is executed using real devices. The test results will show the initial loading time for your website. - -![Performance Results](../images/performance_results.png?raw=true 'Performance Results') - -#### Easily Add Cloud Features to your Website - -Amplify CLI helps you to configure your website's backend easily. For example, the following command will create a cloud API which is an Amazon API Gateway endpoint: - -```bash -amplify add api -``` - -Amplify CLI also creates the necessary folder structure and generates JavaScript files necessary for your app's backend logic: - -After working with your backend code, deploying your web backend is very simple: - -```bash -amplify push -``` - -#### Engage your audience - -Once you deploy your website, the next challenge is understanding how your users are interacting with your website. - -AWS Amplify provides analytics capabilities, push notifications and targeted messaging campaigns out-of-the-box. You will start getting key engagement metrics such as the number of user sessions and the number of app launches automatically after you deploy your website. - -Analytics events are displayed in Amazon Pinpoint console. In the console, you can create targeted campaigns and push notifications to engage your customers. - -![Pinpoint](../images/pinpoint_analytics.png?raw=true 'Pinpoint'){: style="max-height:450px;"} - -### Start Building now! - -Start building your static Web app today with AWS Amplify by visiting our [Get Started Guide]({%if jekyll.environment == 'production'%}{{site.amplify.docs_baseurl}}{%endif%}/media/quick_start?utm_source=static-web-sites&utm_campaign=build-pages). -{: .next-link .callout .callout--info} diff --git a/docs/media/create/web-apps.md b/docs/media/create/web-apps.md deleted file mode 100644 index 8cbd4ef935f..00000000000 --- a/docs/media/create/web-apps.md +++ /dev/null @@ -1,141 +0,0 @@ ---- -layout: examples ---- - -# Web Apps with AWS Amplify - -#### AWS Amplify helps developers to create high-quality web apps quickly - -AWS Amplify handles the heavy lifting of configuring and integrating cloud services behind the scenes. It provides a powerful high-level API and ready-to-use best practices. -{: style="font-size:20px;"} - -### What's in it for Web Developers? - -For Web developers, AWS Amplify provides following main benefits: - -- **Easy integration** with cloud operations with declarative API -- **CLI support** for bootstrapping your app backend quickly -- **Local configuration and deployment** of your app's backend logic -- **Deployment** of static assets for hosting and streaming -- **UI components** for common operations such as Authorization and Storage -- **Monitoring** app usage and **engaging** users with campaign analytics - -### Building and Deploying Web Apps with AWS Amplify - -When building serverless web apps with AWS Amplify, your frontend resources are deployed for hosting, and your app's backend will be handled by cloud services that you integrate. - -Cloud services to build serverless web apps are usually described as BaaS (backend as a service). Serverless apps will allow you to focus on your requirements without worrying about managing server resources or paying for unused capacity. - -#### Declarative and easy-to-use API - -AWS Amplify's declarative API is focused on the interactions with data, rather than specific implementations of cloud operations. - -With AWS Amplify, you can focus more on your app's business logic, and let the standard functionality like authorization, user management, storage, notifications and analytics is handled for you by the cloud. - -As an example, here is how you upload an image to a logged-in user's private storage: - -```js -Storage.put('example.png', file, { - level: 'private', - contentType: 'image/png', -}); -``` - -In the example, AWS Amplify Storage category already knows about the authenticated user context, your Amazon S3 buckets and request signing requirements for added security. All the underlying process is managed automatically under the hood, and you get what you want; uploading a user file to a protected location. - -#### Command line support - -Amplify CLI helps you to configure your app's backend easily. For example, the following command will create a cloud API which is an Amazon API Gateway endpoint: - -```bash -amplify add api -``` - -Amplify CLI creates the necessary folder structure and generates JavaScript files for your app's backend: - -![Performance Results](../images/backend_cloud_api.png?raw=true 'Performance Results') - -After working with your backend code, deploying your app backend is very simple with CLI: - -```bash -amplify push -``` - -#### Manage your Backend with Amplify CLI - -If you have existing AWS resources such as Amazon API Gateway endpoints or Amazon S3 buckets, you can use them with AWS Amplify. - -Otherwise, Amplify CLI is a great tool for creating AWS resources, related user roles, and security policies. - -Mix and match building blocks for your app, and start implementing cloud operations like Authorization, Storage and Cloud API. - -Syncing your latest backend configuration with your local app project is simple with the CLI: - -```bash -amplify push -``` - -#### Deploy your Web App - -Amplify CLI provides a one-line deploy command that pushes your app's static assets to the Content Delivery Network (CDN). This is your apps' hosting environment with media streaming features. - -Using a CDN dramatically increases your app's loading performance by serving static assets to your users from the nearest edge location. - -With Amplify CLI, you can deploy your app with single line command: - -```bash -amplify publish -``` - -Amazon CloudFront will handle the delivery of your static assets to the browser. - -![CDN](../images/mobile_hub_cdn.png?raw=true 'CDN') - -If your web app resources include media files like video or audio, those assets will be automatically streamed to the browser, providing the best user experience. - -#### Monitor your Web App's Loading Performance - -Every time you deploy your app to hosting, a performance test will be automatically executed using real devices. The test results will show the initial load times for your app. - -![Performance Results](../images/performance_results.png?raw=true 'Performance Results') - -#### Use your Favorite Frontend Library - -AWS Amplify provides UI components for React and Angular, so you can import AWS Amplify modules easily and use the UI components for Authentication and Storage categories. (Vue.js components support is coming soon.) - -In a React app, you can also use a Higher-Order Components to provide a sign-in/sign-out experience simply by wrapping your app's main component: - -```js -export default withAuthenticator(App); -``` - -In Angular, you can use Authenticator UI component to enable the same auth experience: - -```html - -``` - -#### Engage your audience - -Once you have deployed your web app, the next challenge is understanding how your users are interacting with your app. - -AWS Amplify provides analytics capabilities, push notifications and targeted messaging campaigns out-of-the-box. You will start getting key engagement metrics such as the number of user sessions and the number of app launches automatically after you deploy your app. - -Also, collecting more data with Analytics category is as simple as; - -```js -Analytics.record('albumVisit', { genre: 'jazz', artist: 'Miles Davis' }); -``` - -Analytics events are displayed in Amazon Pinpoint console. In the console, you can create targeted campaigns and push notifications to engage your customers. - -![Pinpoint](../images/pinpoint_analytics.png?raw=true 'Pinpoint') - -#### Utilities - -AWS Amplify comes with additional utility modules that will help you to build better-quality apps and PWAs (Progressive Web Apps) that benefits local cache, notifications, and service workers. - -### Start Building now! - -Start building your Web app today with AWS Amplify by visiting our [Get Started Guide]({%if jekyll.environment == 'production'%}{{site.amplify.docs_baseurl}}{%endif%}/media/quick_start?utm_source=web-apps&utm_campaign=build-pages). -{: .next-link .callout .callout--info} diff --git a/docs/media/developer_guide.md b/docs/media/developer_guide.md deleted file mode 100644 index 813e6a093e9..00000000000 --- a/docs/media/developer_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/examples.md b/docs/media/examples.md deleted file mode 100644 index 813e6a093e9..00000000000 --- a/docs/media/examples.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/federated_identity_setup.md b/docs/media/federated_identity_setup.md deleted file mode 100644 index 616d4ad40fc..00000000000 --- a/docs/media/federated_identity_setup.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/get_started.md b/docs/media/get_started.md deleted file mode 100644 index 813e6a093e9..00000000000 --- a/docs/media/get_started.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/hosting_guide.md b/docs/media/hosting_guide.md deleted file mode 100644 index d2377e64dbd..00000000000 --- a/docs/media/hosting_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/hub_guide.md b/docs/media/hub_guide.md deleted file mode 100644 index 7e63753df5b..00000000000 --- a/docs/media/hub_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/i18n_guide.md b/docs/media/i18n_guide.md deleted file mode 100644 index 977da03029f..00000000000 --- a/docs/media/i18n_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/images/S3Album_and_code.png b/docs/media/images/S3Album_and_code.png deleted file mode 100644 index 68b531be39c..00000000000 Binary files a/docs/media/images/S3Album_and_code.png and /dev/null differ diff --git a/docs/media/images/amplify_dependency.png b/docs/media/images/amplify_dependency.png deleted file mode 100644 index b93c364d518..00000000000 Binary files a/docs/media/images/amplify_dependency.png and /dev/null differ diff --git a/docs/media/images/backend_cloud_api.png b/docs/media/images/backend_cloud_api.png deleted file mode 100644 index 987e1acd3b0..00000000000 Binary files a/docs/media/images/backend_cloud_api.png and /dev/null differ diff --git a/docs/media/images/capabilities.gif b/docs/media/images/capabilities.gif deleted file mode 100644 index 04f00a369c3..00000000000 Binary files a/docs/media/images/capabilities.gif and /dev/null differ diff --git a/docs/media/images/cognito_user_pool_settings.png b/docs/media/images/cognito_user_pool_settings.png deleted file mode 100644 index 3cf5b870fbb..00000000000 Binary files a/docs/media/images/cognito_user_pool_settings.png and /dev/null differ diff --git a/docs/media/images/cognito_user_pool_standart_attributes.png b/docs/media/images/cognito_user_pool_standart_attributes.png deleted file mode 100644 index 5e1d76ced6b..00000000000 Binary files a/docs/media/images/cognito_user_pool_standart_attributes.png and /dev/null differ diff --git a/docs/media/images/console.gif b/docs/media/images/console.gif deleted file mode 100644 index 17d5a0a5193..00000000000 Binary files a/docs/media/images/console.gif and /dev/null differ diff --git a/docs/media/images/icon_mobile.png b/docs/media/images/icon_mobile.png deleted file mode 100644 index e41df552d65..00000000000 Binary files a/docs/media/images/icon_mobile.png and /dev/null differ diff --git a/docs/media/images/icon_web.png b/docs/media/images/icon_web.png deleted file mode 100644 index 4076e0c4b71..00000000000 Binary files a/docs/media/images/icon_web.png and /dev/null differ diff --git a/docs/media/images/identifiers.gif b/docs/media/images/identifiers.gif deleted file mode 100644 index fa13b4d7da7..00000000000 Binary files a/docs/media/images/identifiers.gif and /dev/null differ diff --git a/docs/media/images/interactions_lex_console_edit_bot.jpg b/docs/media/images/interactions_lex_console_edit_bot.jpg deleted file mode 100644 index fe8d4945078..00000000000 Binary files a/docs/media/images/interactions_lex_console_edit_bot.jpg and /dev/null differ diff --git a/docs/media/images/interactions_mobile_hub_add.jpg b/docs/media/images/interactions_mobile_hub_add.jpg deleted file mode 100644 index 605f3fb880d..00000000000 Binary files a/docs/media/images/interactions_mobile_hub_add.jpg and /dev/null differ diff --git a/docs/media/images/interactions_mobile_hub_configure.jpg b/docs/media/images/interactions_mobile_hub_configure.jpg deleted file mode 100644 index 7f51255c11f..00000000000 Binary files a/docs/media/images/interactions_mobile_hub_configure.jpg and /dev/null differ diff --git a/docs/media/images/interactions_mobile_hub_sample_bot.jpg b/docs/media/images/interactions_mobile_hub_sample_bot.jpg deleted file mode 100644 index ed30f897c5f..00000000000 Binary files a/docs/media/images/interactions_mobile_hub_sample_bot.jpg and /dev/null differ diff --git a/docs/media/images/interactions_mobile_hub_sample_bot.png b/docs/media/images/interactions_mobile_hub_sample_bot.png deleted file mode 100644 index b39e8ee66d5..00000000000 Binary files a/docs/media/images/interactions_mobile_hub_sample_bot.png and /dev/null differ diff --git a/docs/media/images/interactions_mobile_hub_select_bot.jpg b/docs/media/images/interactions_mobile_hub_select_bot.jpg deleted file mode 100644 index 0b0eae4cd6d..00000000000 Binary files a/docs/media/images/interactions_mobile_hub_select_bot.jpg and /dev/null differ diff --git a/docs/media/images/iot_attach_policy.png b/docs/media/images/iot_attach_policy.png deleted file mode 100644 index 0da2324d108..00000000000 Binary files a/docs/media/images/iot_attach_policy.png and /dev/null differ diff --git a/docs/media/images/logo_apache_cordova.png b/docs/media/images/logo_apache_cordova.png deleted file mode 100644 index fe581c18a00..00000000000 Binary files a/docs/media/images/logo_apache_cordova.png and /dev/null differ diff --git a/docs/media/images/logo_ionic.png b/docs/media/images/logo_ionic.png deleted file mode 100644 index 2f163b7b57f..00000000000 Binary files a/docs/media/images/logo_ionic.png and /dev/null differ diff --git a/docs/media/images/logo_phonegap.png b/docs/media/images/logo_phonegap.png deleted file mode 100644 index 190fc62305f..00000000000 Binary files a/docs/media/images/logo_phonegap.png and /dev/null differ diff --git a/docs/media/images/logo_react_native.png b/docs/media/images/logo_react_native.png deleted file mode 100644 index dd5f7d41633..00000000000 Binary files a/docs/media/images/logo_react_native.png and /dev/null differ diff --git a/docs/media/images/logo_web_apps.png b/docs/media/images/logo_web_apps.png deleted file mode 100644 index 6777f5870b0..00000000000 Binary files a/docs/media/images/logo_web_apps.png and /dev/null differ diff --git a/docs/media/images/mobile_hub_1.png b/docs/media/images/mobile_hub_1.png deleted file mode 100644 index b36dffdc58b..00000000000 Binary files a/docs/media/images/mobile_hub_1.png and /dev/null differ diff --git a/docs/media/images/mobile_hub_2.png b/docs/media/images/mobile_hub_2.png deleted file mode 100644 index e87906f900c..00000000000 Binary files a/docs/media/images/mobile_hub_2.png and /dev/null differ diff --git a/docs/media/images/mobile_hub_3.png b/docs/media/images/mobile_hub_3.png deleted file mode 100644 index 3096ab16dd7..00000000000 Binary files a/docs/media/images/mobile_hub_3.png and /dev/null differ diff --git a/docs/media/images/mobile_hub_app_detail.jpg b/docs/media/images/mobile_hub_app_detail.jpg deleted file mode 100644 index aa1ec90c55b..00000000000 Binary files a/docs/media/images/mobile_hub_app_detail.jpg and /dev/null differ diff --git a/docs/media/images/mobile_hub_cdn.png b/docs/media/images/mobile_hub_cdn.png deleted file mode 100644 index 7a9d4ab4dbf..00000000000 Binary files a/docs/media/images/mobile_hub_cdn.png and /dev/null differ diff --git a/docs/media/images/mobile_hub_services.png b/docs/media/images/mobile_hub_services.png deleted file mode 100644 index 98487b2b966..00000000000 Binary files a/docs/media/images/mobile_hub_services.png and /dev/null differ diff --git a/docs/media/images/performance_results.png b/docs/media/images/performance_results.png deleted file mode 100644 index 8b309148c0b..00000000000 Binary files a/docs/media/images/performance_results.png and /dev/null differ diff --git a/docs/media/images/photo_picker_and_code.png b/docs/media/images/photo_picker_and_code.png deleted file mode 100644 index ddc10525626..00000000000 Binary files a/docs/media/images/photo_picker_and_code.png and /dev/null differ diff --git a/docs/media/images/pinpoint_analytics.png b/docs/media/images/pinpoint_analytics.png deleted file mode 100644 index bbea9dde539..00000000000 Binary files a/docs/media/images/pinpoint_analytics.png and /dev/null differ diff --git a/docs/media/images/pinpoint_dashboard.png b/docs/media/images/pinpoint_dashboard.png deleted file mode 100644 index d853a0b60e5..00000000000 Binary files a/docs/media/images/pinpoint_dashboard.png and /dev/null differ diff --git a/docs/media/images/react_native_with_authenticator.png b/docs/media/images/react_native_with_authenticator.png deleted file mode 100644 index 99413de1401..00000000000 Binary files a/docs/media/images/react_native_with_authenticator.png and /dev/null differ diff --git a/docs/media/images/runningApp.gif b/docs/media/images/runningApp.gif deleted file mode 100644 index 365ab0113d2..00000000000 Binary files a/docs/media/images/runningApp.gif and /dev/null differ diff --git a/docs/media/images/sign_in.png b/docs/media/images/sign_in.png deleted file mode 100644 index 6066fcbb370..00000000000 Binary files a/docs/media/images/sign_in.png and /dev/null differ diff --git a/docs/media/images/web-view-cloud-api.png b/docs/media/images/web-view-cloud-api.png deleted file mode 100644 index 431da3292b1..00000000000 Binary files a/docs/media/images/web-view-cloud-api.png and /dev/null differ diff --git a/docs/media/install_n_config.md b/docs/media/install_n_config.md deleted file mode 100644 index 813e6a093e9..00000000000 --- a/docs/media/install_n_config.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/interactions_guide.md b/docs/media/interactions_guide.md deleted file mode 100644 index c7279eb7397..00000000000 --- a/docs/media/interactions_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/ionic_guide.md b/docs/media/ionic_guide.md deleted file mode 100644 index 8eb2b3119b4..00000000000 --- a/docs/media/ionic_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/logger_guide.md b/docs/media/logger_guide.md deleted file mode 100644 index 895a30ec03f..00000000000 --- a/docs/media/logger_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/pub_sub_guide.md b/docs/media/pub_sub_guide.md deleted file mode 100644 index f26056ad232..00000000000 --- a/docs/media/pub_sub_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/push_notifications_setup.md b/docs/media/push_notifications_setup.md deleted file mode 100644 index 4d0aab41559..00000000000 --- a/docs/media/push_notifications_setup.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/quick_start.md b/docs/media/quick_start.md deleted file mode 100644 index 813e6a093e9..00000000000 --- a/docs/media/quick_start.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/react_guide.md b/docs/media/react_guide.md deleted file mode 100644 index 509792f9aba..00000000000 --- a/docs/media/react_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/react_native_guide.md b/docs/media/react_native_guide.md deleted file mode 100644 index 509792f9aba..00000000000 --- a/docs/media/react_native_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/sample/service-worker.md b/docs/media/sample/service-worker.md deleted file mode 100644 index 913d821769a..00000000000 --- a/docs/media/sample/service-worker.md +++ /dev/null @@ -1,121 +0,0 @@ ---- ---- - -```js -/** - * @copyright 2018 Amazon Web Services - * - * An example service worker that utilizes lifecycle events. - * https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers - * - * This service worker provides the means to cache local static assets - * into browsers Cache Storage as well as network requests using the - * fetch events. Network requests and static assets are cached and - * available offline. Other strategies exist for offline application development: - * https://hacks.mozilla.org/2016/10/offline-strategies-come-to-the-service-worker-cookbook/ - * - */ - -/** - * Static assets to cache. This is specific on your application - * and build process and framework - */ -var appCacheFiles = ['/', '/index.html'], - // The name of the Cache Storage - appCache = 'aws-amplify-v1'; - -/** - * The install event is fired when the service worker - * is installed. - * https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API - */ -addEventListener('install', event => { - console.log('[Service Worker] Install Event', event); - event.waitUntil( - caches.open(appCache).then(function(cache) { - return cache.addAll(appCacheFiles); - }) - ); -}); - -/** - * The activate vent is fired when the service worker is activated - * and added to the home screen. - * https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API - */ -addEventListener('activate', event => { - console.log('[Service Worker] Activate Event ', event); -}); - -/** - * The fetch event is fired for every network request. It is also dependent - * on the scope of which your service worker was registered. - * https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API - */ -addEventListener('fetch', function(event) { - //return fetch(event.request); - console.log('[Service Worker] Fetch: ', event); - let url = new URL(event.request.url); - //url.pathname - event.respondWith( - caches.match(event.request).then(function(resp) { - return ( - resp || - fetch(event.request).then(function(response) { - return caches.open(appCache).then(function(cache) { - if (event.request.method === 'GET') { - cache.put(event.request, response.clone()); - } - return response; - }); - }) - ); - }) - ); -}); -/** - * The message will receive messages sent from the application. - * This can be useful for updating a service worker or messaging - * other clients (browser restrictions currently exist) - * https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage - */ -addEventListener('message', event => { - console.log('[Service Worker] Message Event: ', event.data); -}); - -/** - * Listen for incoming Push events - */ -addEventListener('push', event => { - console.log('[Service Worker] Push Received.'); - console.log(`[Service Worker] Push had this data: "${event.data.text()}"`); - - if (!(self.Notification && self.Notification.permission === 'granted')) - return; - - var data = {}; - if (event.data) data = event.data.json(); - - var title = data.title || 'Web Push Notification'; - var message = data.message || 'New Push Notification Received'; - var icon = 'images/notification-icon.png'; - var badge = 'images/notification-badge.png'; - var options = { - body: message, - icon: icon, - badge: badge, - }; - event.waitUntil(self.registration.showNotification(title, options)); -}); - -/** - * Handle a notification click - */ -addEventListener('notificationclick', event => { - console.log('[Service Worker] Notification click: ', event); - event.notification.close(); - event.waitUntil( - clients.openWindow('https://aws-amplify.github.io/amplify-js') - ); -}); -``` diff --git a/docs/media/service_workers_guide.md b/docs/media/service_workers_guide.md deleted file mode 100644 index 33a7f61a9bf..00000000000 --- a/docs/media/service_workers_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/storage_guide.md b/docs/media/storage_guide.md deleted file mode 100644 index a6ac086492b..00000000000 --- a/docs/media/storage_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/toolchain.md b/docs/media/toolchain.md deleted file mode 100644 index bc896518618..00000000000 --- a/docs/media/toolchain.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/tutorials.md b/docs/media/tutorials.md deleted file mode 100644 index 813e6a093e9..00000000000 --- a/docs/media/tutorials.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/tutorials/building-ionic-4-apps/images/browser-login-screen-default.jpg b/docs/media/tutorials/building-ionic-4-apps/images/browser-login-screen-default.jpg deleted file mode 100644 index efe195cc2ed..00000000000 Binary files a/docs/media/tutorials/building-ionic-4-apps/images/browser-login-screen-default.jpg and /dev/null differ diff --git a/docs/media/tutorials/building-ionic-4-apps/images/browser-login-screen.jpg b/docs/media/tutorials/building-ionic-4-apps/images/browser-login-screen.jpg deleted file mode 100644 index 44f2ffc1d53..00000000000 Binary files a/docs/media/tutorials/building-ionic-4-apps/images/browser-login-screen.jpg and /dev/null differ diff --git a/docs/media/tutorials/building-ionic-4-apps/images/cloud-api-folder-structure.png b/docs/media/tutorials/building-ionic-4-apps/images/cloud-api-folder-structure.png deleted file mode 100644 index 1e3ee325819..00000000000 Binary files a/docs/media/tutorials/building-ionic-4-apps/images/cloud-api-folder-structure.png and /dev/null differ diff --git a/docs/media/tutorials/building-ionic-4-apps/index.md b/docs/media/tutorials/building-ionic-4-apps/index.md deleted file mode 100644 index d0e3ed57e51..00000000000 --- a/docs/media/tutorials/building-ionic-4-apps/index.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/tutorials/building-react-native-apps/index.md b/docs/media/tutorials/building-react-native-apps/index.md deleted file mode 100644 index d87ba359955..00000000000 --- a/docs/media/tutorials/building-react-native-apps/index.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/tutorials/building-web-apps/index.md b/docs/media/tutorials/building-web-apps/index.md deleted file mode 100644 index 58d4710aedb..00000000000 --- a/docs/media/tutorials/building-web-apps/index.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/ui_guide.md b/docs/media/ui_guide.md deleted file mode 100644 index f00ab9c8218..00000000000 --- a/docs/media/ui_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/ui_library.md b/docs/media/ui_library.md deleted file mode 100644 index f00ab9c8218..00000000000 --- a/docs/media/ui_library.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/vue_guide.md b/docs/media/vue_guide.md deleted file mode 100644 index 3909fbaff0d..00000000000 --- a/docs/media/vue_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/vuejs_guide.md b/docs/media/vuejs_guide.md deleted file mode 100644 index 3909fbaff0d..00000000000 --- a/docs/media/vuejs_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/media/xr_guide.md b/docs/media/xr_guide.md deleted file mode 100644 index 510ce6fbe30..00000000000 --- a/docs/media/xr_guide.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/theme/favicon.ico b/docs/theme/favicon.ico new file mode 100644 index 00000000000..fc2bfcdbc47 Binary files /dev/null and b/docs/theme/favicon.ico differ diff --git a/docs/theme/styles.css b/docs/theme/styles.css new file mode 100644 index 00000000000..df3526b7f6d --- /dev/null +++ b/docs/theme/styles.css @@ -0,0 +1,40 @@ +/* +This document contains styles that modify the default TypeDoc theme. +*/ + +/* Handle OS theme selection */ +@media (prefers-color-scheme: light) { + html:not([data-theme="dark"]) body { + background: white; + } + + html:not([data-theme="dark"]) .tsd-page-toolbar { + background: white; + box-shadow: 0 1px 3px rgba(0,0,0,.1); + border: none; + } + + html:not([data-theme="dark"]) .tsd-navigation a.current, .tsd-page-navigation a.current { + background: #eeeeee; + } +} + +/* Handle manual theme selection */ +html[data-theme="light"] body { + background: white; +} + +html[data-theme="light"] .tsd-page-toolbar { + background: white; + box-shadow: 0 1px 3px rgba(0,0,0,.1); + border: none; +} + +html[data-theme="light"] .tsd-navigation a.current, .tsd-page-navigation a.current { + background: #eeeeee; +} + +.tsd-page-toolbar a.title { + font-weight: 400; + font-size: 1.2em; +} diff --git a/package.json b/package.json index de0fd5a2201..8554eb68a2a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "test:license": "license-check-and-add check -f license_config.json", "test:github-actions": "node ./scripts/test-github-actions.js", "test:tsc-compliance": "yarn workspace tsc-compliance-test test:compliance", - "docs": "typedoc packages/**/src --name amplify-js --hideGenerator --excludePrivate --ignoreCompilerErrors --mode file --out docs/api --theme docs/amplify-theme/typedoc/ --readme README.md", + "docs": "typedoc", "build": "lerna run build --stream && yarn test:duplicates", "build:watch": "concurrently 'lerna run build:watch --parallel' --raw", "build:client-types": "cd scripts/dts-bundler && yarn && yarn run build", @@ -118,8 +118,10 @@ "ts-loader": "^9.4.3", "tslint": "^5.7.0", "tslint-config-airbnb": "^5.8.0", - "typedoc": "^0.17.0", - "typescript": "^4.3.5", + "typedoc": "0.25.8", + "typedoc-plugin-extras": "^3.0.0", + "typedoc-plugin-missing-exports": "^2.2.0", + "typescript": "^4.6.0", "typescript-coverage-report": "^0.6.4", "uuid-validate": "^0.0.3", "webpack": "^5.75.0", diff --git a/packages/adapter-nextjs/README.md b/packages/adapter-nextjs/README.md new file mode 100644 index 00000000000..8f1def07b2c --- /dev/null +++ b/packages/adapter-nextjs/README.md @@ -0,0 +1,2 @@ +This package contains the AWS Amplify Next.js Adapter. For more information on using Next.js in your application please reference the [Amplify Dev Center](https://docs.amplify.aws/javascript/build-a-backend/server-side-rendering/nextjs/). + diff --git a/packages/adapter-nextjs/src/createServerRunner.ts b/packages/adapter-nextjs/src/createServerRunner.ts index 3887054c4f7..78d419af99b 100644 --- a/packages/adapter-nextjs/src/createServerRunner.ts +++ b/packages/adapter-nextjs/src/createServerRunner.ts @@ -23,7 +23,6 @@ import { NextServer } from './types'; * import config from './amplifyconfiguration.json'; * * export const { runWithAmplifyServerContext } = createServerRunner({ config }) - * */ export const createServerRunner: NextServer.CreateServerRunner = ({ config, diff --git a/packages/adapter-nextjs/typedoc.json b/packages/adapter-nextjs/typedoc.json new file mode 100644 index 00000000000..7ad49c6279c --- /dev/null +++ b/packages/adapter-nextjs/typedoc.json @@ -0,0 +1,11 @@ +{ + "name": "@aws-amplify/adapter-nextjs", + "extends": ["../../typedoc.base.json"], + "entryPointStrategy": "resolve", + "entryPoints": [ + "src/index.ts", + "src/api/index.ts", + "src/utils/index.ts" + ], + "readme": "README.md", +} diff --git a/packages/api-graphql/__tests__/fixtures/modeled/amplifyconfiguration.ts b/packages/api-graphql/__tests__/fixtures/modeled/amplifyconfiguration.ts index 390e84d175f..9ff3d6b9908 100644 --- a/packages/api-graphql/__tests__/fixtures/modeled/amplifyconfiguration.ts +++ b/packages/api-graphql/__tests__/fixtures/modeled/amplifyconfiguration.ts @@ -906,6 +906,16 @@ const amplifyConfig = { }, }, + metadata: { + name: 'metadata', + isArray: false, + type: { + nonModel: 'CommunityPostMetadata', + }, + isRequired: false, + attributes: [], + }, + communityPostPollId: { name: 'communityPostPollId', isArray: false, @@ -1068,7 +1078,28 @@ const amplifyConfig = { values: ['NOT_STARTED', 'STARTED', 'DONE', 'CANCELED'], }, }, - nonModels: {}, + nonModels: { + CommunityPostMetadata: { + name: 'CommunityPostMetadata', + fields: { + type: { + name: 'type', + isArray: false, + type: 'String', + isRequired: true, + attributes: [], + }, + + deleted: { + name: 'deleted', + isArray: false, + type: 'Boolean', + isRequired: false, + attributes: [], + }, + }, + }, + }, }, }; export default amplifyConfig; diff --git a/packages/api-graphql/__tests__/fixtures/modeled/schema.ts b/packages/api-graphql/__tests__/fixtures/modeled/schema.ts index 3cd50241cc5..8208be71e4c 100644 --- a/packages/api-graphql/__tests__/fixtures/modeled/schema.ts +++ b/packages/api-graphql/__tests__/fixtures/modeled/schema.ts @@ -53,9 +53,15 @@ const schema = a.schema({ }) .identifier(['cpk_cluster_key', 'cpk_sort_key']), + CommunityPostMetadata: a.customType({ + type: a.string().required(), + deleted: a.boolean(), + }), + CommunityPost: a.model({ id: a.id().required(), poll: a.hasOne('CommunityPoll'), + metadata: a.ref('CommunityPostMetadata'), }), CommunityPoll: a.model({ id: a.id().required(), diff --git a/packages/api-graphql/__tests__/internals/APIClient.test.ts b/packages/api-graphql/__tests__/internals/APIClient.test.ts index 71ad6f4e850..f4d20d63e69 100644 --- a/packages/api-graphql/__tests__/internals/APIClient.test.ts +++ b/packages/api-graphql/__tests__/internals/APIClient.test.ts @@ -168,7 +168,7 @@ describe('flattenItems', () => { describe('customSelectionSetToIR', () => { test('specific fields on the model', () => { - const selSet = customSelectionSetToIR(modelIntroSchema.models, 'Todo', [ + const selSet = customSelectionSetToIR(modelIntroSchema, 'Todo', [ 'id', 'name', ]); @@ -182,7 +182,7 @@ describe('flattenItems', () => { }); test('specific fields on the model and related model', () => { - const selSet = customSelectionSetToIR(modelIntroSchema.models, 'Todo', [ + const selSet = customSelectionSetToIR(modelIntroSchema, 'Todo', [ 'id', 'name', 'notes.id', @@ -203,8 +203,39 @@ describe('flattenItems', () => { expect(selSet).toEqual(expected); }); + test('related property without any specified field in selectionSet should throw an error', () => { + expect(() => + customSelectionSetToIR(modelIntroSchema, 'Todo', [ + 'id', + 'name', + 'notes', + ]) + ).toThrow('notes must declare a wildcard (*) or a field of model Note'); + }); + + test('inexistent field should throw an error', () => { + expect(() => + customSelectionSetToIR(modelIntroSchema, 'Todo', [ + 'id', + 'name', + 'inexistentField', + 'notes.*', + ]) + ).toThrow('inexistentField is not a field of model Todo'); + }); + + test('related inexistent field should throw an error', () => { + expect(() => + customSelectionSetToIR(modelIntroSchema, 'Todo', [ + 'id', + 'name', + 'notes.inexistentField', + ]) + ).toThrow('inexistentField is not a field of model Note'); + }); + test('specific fields on the model; all fields on related model', () => { - const selSet = customSelectionSetToIR(modelIntroSchema.models, 'Todo', [ + const selSet = customSelectionSetToIR(modelIntroSchema, 'Todo', [ 'id', 'name', 'notes.*', @@ -229,7 +260,7 @@ describe('flattenItems', () => { }); test('deeply nested on a bi-directional model', () => { - const selSet = customSelectionSetToIR(modelIntroSchema.models, 'Todo', [ + const selSet = customSelectionSetToIR(modelIntroSchema, 'Todo', [ 'id', 'name', 'notes.todo.notes.todo.notes.todo.notes.*', @@ -272,7 +303,7 @@ describe('flattenItems', () => { }); test("subsequent wildcard doesn't overwrite existing nested object", () => { - const selSet = customSelectionSetToIR(modelIntroSchema.models, 'Todo', [ + const selSet = customSelectionSetToIR(modelIntroSchema, 'Todo', [ 'id', 'name', 'notes.todo.name', @@ -300,12 +331,71 @@ describe('flattenItems', () => { expect(selSet).toEqual(expected); }); - test('mix of related and non-related fields in a nested model creates a nested object with all necessary fields', () => { - const selSet = customSelectionSetToIR( - modelIntroSchema.models, - 'CommunityPost', - ['poll.question', 'poll.answers.answer', 'poll.answers.votes.id'], + test('custom type works properly', () => { + const selSet = customSelectionSetToIR(modelIntroSchema, 'CommunityPost', [ + 'metadata.type', + 'poll.question', + ]); + + const expected = { + metadata: { + type: '', + }, + poll: { + question: '', + }, + }; + + expect(selSet).toEqual(expected); + }); + + test('custom type with wildcard works properly', () => { + const selSet = customSelectionSetToIR(modelIntroSchema, 'CommunityPost', [ + 'metadata.*', + 'poll.question', + ]); + + const expected = { + metadata: { + type: '', + deleted: '', + }, + poll: { + question: '', + }, + }; + + expect(selSet).toEqual(expected); + }); + + test('custom type with invalid property throws an error', () => { + expect(() => + customSelectionSetToIR(modelIntroSchema, 'CommunityPost', [ + 'metadata.inexistentField', + 'poll.question', + ]) + ).toThrow( + 'inexistentField is not a field of custom type CommunityPostMetadata' + ); + }); + + test('custom type without any properties throws an error', () => { + expect(() => + customSelectionSetToIR(modelIntroSchema, 'CommunityPost', [ + 'metadata', + 'poll.question', + ]) + ).toThrow( + 'metadata must declare a wildcard (*) or a field of custom type CommunityPostMetadata' ); + }); + + test('mix of related and non-related fields in a nested model creates a nested object with all necessary fields', () => { + const selSet = customSelectionSetToIR(modelIntroSchema, 'CommunityPost', [ + 'poll.question', + 'poll.answers.answer', + 'poll.answers.votes.id', + ]); const expected = { poll: { @@ -329,7 +419,7 @@ describe('flattenItems', () => { describe('generateSelectionSet', () => { test('it should generate default selection set', () => { - const selSet = generateSelectionSet(modelIntroSchema.models, 'Todo'); + const selSet = generateSelectionSet(modelIntroSchema, 'Todo'); const expected = 'id name description status tags createdAt updatedAt todoMetaId owner'; @@ -338,7 +428,7 @@ describe('flattenItems', () => { }); test('it should generate custom selection set - top-level fields', () => { - const selSet = generateSelectionSet(modelIntroSchema.models, 'Todo', [ + const selSet = generateSelectionSet(modelIntroSchema, 'Todo', [ 'id', 'name', ]); @@ -349,7 +439,7 @@ describe('flattenItems', () => { }); test('it should generate custom selection set - specific nested fields', () => { - const selSet = generateSelectionSet(modelIntroSchema.models, 'Todo', [ + const selSet = generateSelectionSet(modelIntroSchema, 'Todo', [ 'id', 'name', 'notes.id', @@ -362,7 +452,7 @@ describe('flattenItems', () => { }); test('it should generate custom selection set - all nested fields', () => { - const selSet = generateSelectionSet(modelIntroSchema.models, 'Todo', [ + const selSet = generateSelectionSet(modelIntroSchema, 'Todo', [ 'id', 'name', 'notes.*', @@ -375,7 +465,7 @@ describe('flattenItems', () => { }); test('deeply nested on a bi-directional model', () => { - const selSet = generateSelectionSet(modelIntroSchema.models, 'Todo', [ + const selSet = generateSelectionSet(modelIntroSchema, 'Todo', [ 'id', 'name', 'notes.todo.notes.todo.notes.todo.notes.*', @@ -393,8 +483,13 @@ describe('generateGraphQLDocument()', () => { describe('for `READ` operation', () => { const modelOperation = 'READ'; const mockModelDefinitions = { - User: userSchemaModel, - Product: productSchemaModel, + version: 1 as const, + enums: {}, + nonModels: {}, + models: { + User: userSchemaModel, + Product: productSchemaModel, + } }; test.each([ diff --git a/packages/api-graphql/src/internals/APIClient.ts b/packages/api-graphql/src/internals/APIClient.ts index cc8561b9ed9..c0610b460b4 100644 --- a/packages/api-graphql/src/internals/APIClient.ts +++ b/packages/api-graphql/src/internals/APIClient.ts @@ -5,6 +5,7 @@ import { GraphQLAuthMode, ModelIntrospectionSchema, ModelFieldType, + NonModelFieldType, SchemaModel, SchemaModels, AssociationHasOne, @@ -24,6 +25,7 @@ import { } from '../types'; import { AmplifyServer } from '@aws-amplify/core/internals/adapter-core'; import { CustomHeaders } from '@aws-amplify/data-schema-types'; +import { SchemaNonModel } from '@aws-amplify/core/dist/esm/singleton/API/types'; import type { IndexMeta } from './operations/indexQuery'; type LazyLoadOptions = { @@ -314,12 +316,13 @@ type OperationPrefix = const SELECTION_SET_WILDCARD = '*'; -function defaultSelectionSetForModel(modelDefinition: SchemaModel): string[] { - // fields that are explicitly part of the graphql schema; not - // inferred from owner auth rules. - const { fields } = modelDefinition; +function defaultSelectionSetForNonModel( + nonModelDefinition: SchemaNonModel +): string[] { + // fields that are explicitly part of the graphql schema; + const { fields } = nonModelDefinition; const explicitFields = Object.values(fields) - // Default selection set omits model fields + // Default selection set omits non-model fields .map( ({ type, name }) => (typeof type === 'string' || @@ -328,6 +331,31 @@ function defaultSelectionSetForModel(modelDefinition: SchemaModel): string[] { ) .filter(Boolean); + // fields used for owner auth rules that may or may not also + // be explicit on the model. + + return Array.from(new Set(explicitFields)); +} + +function defaultSelectionSetForModel(modelDefinition: SchemaModel): string[] { + // fields that are explicitly part of the graphql schema; not + // inferred from owner auth rules. + const { fields } = modelDefinition; + const explicitFields = Object.values(fields) + // Default selection set omits model fields + .map(({ type, name }) => { + if (typeof type === 'string') return name; + + if (typeof type === 'object') { + if (typeof type?.enum === 'string') { + return name; + } else if (typeof type?.nonModel === 'string') { + return `${name}.${SELECTION_SET_WILDCARD}`; + } + } + }) + .filter(Boolean); + // fields used for owner auth rules that may or may not also // be explicit on the model. const ownerFields = resolveOwnerFields(modelDefinition); @@ -357,44 +385,71 @@ const FIELD_IR = ''; * ``` */ export function customSelectionSetToIR( - modelDefinitions: SchemaModels, + modelInstrospection: ModelIntrospectionSchema, modelName: string, selectionSet: string[], ): Record { - const dotNotationToObject = ( - path: string, - modelName: string, - ): Record => { + const dotNotationToObject = (path: string, modelOrNonModelName: string) => { const [fieldName, ...rest] = path.split('.'); - let result: Record = {}; + const nested = rest[0]; + const modelDefinition = modelInstrospection.models[modelOrNonModelName]; - if (rest.length === 0) { - result = { [fieldName]: FIELD_IR }; - } else { - const nested = rest[0]; - const modelDefinition = modelDefinitions[modelName]; - const modelFields = modelDefinition.fields; - const relatedModel = (modelFields[fieldName]?.type as ModelFieldType) - ?.model; - - if (!relatedModel) { - // TODO: may need to change this to support custom types - throw Error(`${fieldName} is not a model field`); + const modelFields = modelDefinition?.fields; + const relatedModel = (modelFields?.[fieldName]?.type as ModelFieldType) + ?.model; + + const relatedModelDefinition = modelInstrospection.models[relatedModel]; + const relatedNonModel = ( + modelFields?.[fieldName]?.type as NonModelFieldType + )?.nonModel; + const relatedNonModelDefinition = + modelInstrospection.nonModels[relatedNonModel]; + + const isModelOrNonModelOrField = relatedModelDefinition + ? 'model' + : relatedNonModelDefinition + ? 'nonModel' + : 'field'; + + if (isModelOrNonModelOrField === 'nonModel') { + let result: Record = {}; + + if (!nested) { + throw Error( + `${fieldName} must declare a wildcard (*) or a field of custom type ${relatedNonModel}` + ); } if (nested === SELECTION_SET_WILDCARD) { - const relatedModelDefinition = modelDefinitions[relatedModel]; - result = { - [fieldName]: defaultSelectionSetIR(relatedModelDefinition), + [fieldName]: nonModelsDefaultSelectionSetIR( + relatedNonModelDefinition + ), }; } else { - const exists = Boolean(modelFields[fieldName]); - if (!exists) { - throw Error(`${fieldName} is not a field of model ${modelName}`); - } + result = { + [fieldName]: dotNotationToObject(rest.join('.'), relatedNonModel), + }; + } + + return result; + } else if (isModelOrNonModelOrField === 'model') { + let result: Record = {}; + + if (!nested) { + throw Error( + `${fieldName} must declare a wildcard (*) or a field of model ${relatedModel}` + ); + } + + if (nested === SELECTION_SET_WILDCARD) { + const relatedModelDefinition = modelInstrospection.models[relatedModel]; + result = { + [fieldName]: modelsDefaultSelectionSetIR(relatedModelDefinition), + }; + } else { result = { [fieldName]: dotNotationToObject(rest.join('.'), relatedModel), }; @@ -407,9 +462,34 @@ export function customSelectionSetToIR( }, }; } - } - return result; + return result; + } else { + const modelField = modelFields?.[fieldName]; + + const nonModelDefinition = + modelInstrospection.nonModels[modelOrNonModelName]; + const nonModelField = nonModelDefinition?.fields?.[fieldName]; + + if (!nonModelDefinition) { + const isOwnerField = + resolveOwnerFields(modelDefinition).includes(fieldName); + + if (!modelField && !isOwnerField) { + throw Error( + `${fieldName} is not a field of model ${modelOrNonModelName}` + ); + } + } else { + if (!nonModelField) { + throw Error( + `${fieldName} is not a field of custom type ${modelOrNonModelName}` + ); + } + } + + return { [fieldName]: FIELD_IR }; + } }; return selectionSet.reduce( @@ -422,7 +502,7 @@ export function customSelectionSetToIR( ); } -const defaultSelectionSetIR = (relatedModelDefinition: SchemaModel) => { +const modelsDefaultSelectionSetIR = (relatedModelDefinition: SchemaModel) => { const defaultSelectionSet = defaultSelectionSetForModel( relatedModelDefinition, ); @@ -438,6 +518,24 @@ const defaultSelectionSetIR = (relatedModelDefinition: SchemaModel) => { return reduced; }; +const nonModelsDefaultSelectionSetIR = ( + relatedNonModelDefinition: SchemaNonModel +) => { + const defaultSelectionSet = defaultSelectionSetForNonModel( + relatedNonModelDefinition + ); + + const reduced = defaultSelectionSet.reduce( + (acc: Record, curVal) => { + acc[curVal] = FIELD_IR; + return acc; + }, + {} + ); + + return reduced; +}; + /** * Stringifies selection set IR * * @example @@ -510,20 +608,16 @@ function deepMergeSelectionSetObjects>( } export function generateSelectionSet( - modelDefinitions: SchemaModels, + modelInstrospection: ModelIntrospectionSchema, modelName: string, selectionSet?: string[], ) { - const modelDefinition = modelDefinitions[modelName]; - - if (!selectionSet) { - return defaultSelectionSetForModel(modelDefinition).join(' '); - } + const modelDefinition = modelInstrospection.models[modelName]; const selSetIr = customSelectionSetToIR( - modelDefinitions, + modelInstrospection, modelName, - selectionSet, + selectionSet ?? defaultSelectionSetForModel(modelDefinition) ); const selSetString = selectionSetIRToString(selSetIr); @@ -531,13 +625,13 @@ export function generateSelectionSet( } export function generateGraphQLDocument( - modelDefinitions: SchemaModels, + modelInstrospection: ModelIntrospectionSchema, modelName: string, modelOperation: ModelOperation, listArgs?: ListArgs | QueryArgs, indexMeta?: IndexMeta, ): string { - const modelDefinition = modelDefinitions[modelName]; + const modelDefinition = modelInstrospection.models[modelName]; const { name, @@ -584,7 +678,7 @@ export function generateGraphQLDocument( let graphQLArguments: Record | undefined; const selectionSetFields = generateSelectionSet( - modelDefinitions, + modelInstrospection, modelName, selectionSet as ListArgs['selectionSet'], ); diff --git a/packages/api-graphql/src/internals/operations/get.ts b/packages/api-graphql/src/internals/operations/get.ts index 74b2512c4c6..fc727f22c21 100644 --- a/packages/api-graphql/src/internals/operations/get.ts +++ b/packages/api-graphql/src/internals/operations/get.ts @@ -67,7 +67,7 @@ async function _get( const { name } = model; const query = generateGraphQLDocument( - modelIntrospection.models, + modelIntrospection, name, operation, options, diff --git a/packages/api-graphql/src/internals/operations/indexQuery.ts b/packages/api-graphql/src/internals/operations/indexQuery.ts index 7565fb93daf..240f2d5de3c 100644 --- a/packages/api-graphql/src/internals/operations/indexQuery.ts +++ b/packages/api-graphql/src/internals/operations/indexQuery.ts @@ -110,7 +110,7 @@ async function _indexQuery( const { name } = model; const query = generateGraphQLDocument( - modelIntrospection.models, + modelIntrospection, name, 'INDEX_QUERY', args, diff --git a/packages/api-graphql/src/internals/operations/list.ts b/packages/api-graphql/src/internals/operations/list.ts index 4dab67f9883..5ba50663889 100644 --- a/packages/api-graphql/src/internals/operations/list.ts +++ b/packages/api-graphql/src/internals/operations/list.ts @@ -52,7 +52,7 @@ async function _list( const { name } = model; const query = generateGraphQLDocument( - modelIntrospection.models, + modelIntrospection, name, 'LIST', args, diff --git a/packages/api-graphql/src/internals/operations/subscription.ts b/packages/api-graphql/src/internals/operations/subscription.ts index 4ff6655b19f..03947238fb6 100644 --- a/packages/api-graphql/src/internals/operations/subscription.ts +++ b/packages/api-graphql/src/internals/operations/subscription.ts @@ -26,10 +26,12 @@ export function subscriptionFactory( const subscription = (args?: any) => { const query = generateGraphQLDocument( - modelIntrospection.models, + modelIntrospection, name, operation, + args ); + const variables = buildGraphQLVariables( model, operation, diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index fa720992069..b3508328b5f 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -334,7 +334,7 @@ "name": "[API] generateClient (AppSync)", "path": "./dist/esm/api/index.mjs", "import": "{ generateClient }", - "limit": "37.00 kB" + "limit": "37.50 kB" }, { "name": "[API] REST API handlers", diff --git a/packages/aws-amplify/typeDoc.js b/packages/aws-amplify/typeDoc.js deleted file mode 100644 index c22a8c022d7..00000000000 --- a/packages/aws-amplify/typeDoc.js +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -module.exports = { - readme: '../../README.md', - media: '../../media', - exclude: '**/*+(ErrorUtils|cacheHelpers|CacheList|index).ts', - excludeExternals: true, - excludeNotExported: true, - excludePrivate: true, -}; diff --git a/packages/aws-amplify/typedoc.json b/packages/aws-amplify/typedoc.json new file mode 100644 index 00000000000..a22ac199304 --- /dev/null +++ b/packages/aws-amplify/typedoc.json @@ -0,0 +1,31 @@ +{ + "name": "aws-amplify", + "extends": ["../../typedoc.base.json"], + "entryPointStrategy": "resolve", + "includeVersion": true, + "entryPoints": [ + "src/index.ts", + "src/utils/index.ts", + "src/adapterCore/index.ts", + "src/analytics/index.ts", + "src/analytics/pinpoint/index.ts", + "src/analytics/kinesis/index.ts", + "src/analytics/kinesis-firehose/index.ts", + "src/analytics/personalize/index.ts", + "src/api/index.ts", + "src/api/server.ts", + "src/auth/index.ts", + "src/auth/server.ts", + "src/auth/cognito/index.ts", + "src/auth/cognito/server/index.ts", + "src/in-app-messaging/index.ts", + "src/in-app-messaging/pinpoint/index.ts", + "src/push-notifications/index.ts", + "src/push-notifications/pinpoint/index.ts", + "src/storage/index.ts", + "src/storage/server.ts", + "src/storage/s3/index.ts", + "src/datastore/index.ts", + ], + "readme": "README.md", +} diff --git a/packages/core/src/I18n/index.ts b/packages/core/src/I18n/index.ts index 1f6456adaa5..fcfc5d644f2 100644 --- a/packages/core/src/I18n/index.ts +++ b/packages/core/src/I18n/index.ts @@ -83,7 +83,7 @@ export class I18n { * @static * @method * Add vocabularies for one language - * @param {String} langurage - Language of the dictionary + * @param {String} language - Language of the dictionary * @param {Object} vocabularies - Object that has key-value as dictionary entry */ static putVocabulariesForLanguage( diff --git a/packages/core/src/ServiceWorker/ServiceWorker.ts b/packages/core/src/ServiceWorker/ServiceWorker.ts index d8350b59c40..975e0e34fb2 100644 --- a/packages/core/src/ServiceWorker/ServiceWorker.ts +++ b/packages/core/src/ServiceWorker/ServiceWorker.ts @@ -55,8 +55,8 @@ export class ServiceWorkerClass { * Make sure the service-worker.js is part of the build * for example with Angular, modify the angular-cli.json file * and add to "assets" array "service-worker.js" - * @param {string} - (optional) Service worker file. Defaults to "/service-worker.js" - * @param {string} - (optional) The service worker scope. Defaults to "/" + * @param {string} filePath Service worker file. Defaults to "/service-worker.js" + * @param {string} scope The service worker scope. Defaults to "/" * - API Doc: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register * @returns {Promise} * - resolve(ServiceWorkerRegistration) @@ -195,7 +195,7 @@ export class ServiceWorkerClass { * Send a message to the service worker. The service worker needs * to implement `self.addEventListener('message') to handle the * message. This ***currently*** does not work in Safari or IE. - * @param {object | string} - An arbitrary JSON object or string message to send to the service worker + * @param {object | string} message An arbitrary JSON object or string message to send to the service worker * - see: https://developer.mozilla.org/en-US/docs/Web/API/Transferable * @returns {Promise} **/ diff --git a/packages/core/src/libraryUtils.ts b/packages/core/src/libraryUtils.ts index 6384eb7df25..acda741ea99 100644 --- a/packages/core/src/libraryUtils.ts +++ b/packages/core/src/libraryUtils.ts @@ -40,6 +40,7 @@ export { DocumentType, GraphQLAuthMode, ModelFieldType, + NonModelFieldType, ModelIntrospectionSchema, SchemaModel, SchemaModels, diff --git a/packages/core/src/singleton/API/types.ts b/packages/core/src/singleton/API/types.ts index e67916f088d..67a2a4676df 100644 --- a/packages/core/src/singleton/API/types.ts +++ b/packages/core/src/singleton/API/types.ts @@ -164,6 +164,9 @@ export interface Field { export interface ModelFieldType { model: string; } +export interface NonModelFieldType { + nonModel: string; +} export type FieldType = | 'ID' @@ -182,7 +185,7 @@ export type FieldType = | 'AWSPhone' | { enum: string } | ModelFieldType - | { nonModel: string }; + | NonModelFieldType; export type FieldAttribute = ModelAttribute; /** diff --git a/packages/core/src/singleton/types.ts b/packages/core/src/singleton/types.ts index c67884df78a..423ac96d23f 100644 --- a/packages/core/src/singleton/types.ts +++ b/packages/core/src/singleton/types.ts @@ -26,6 +26,9 @@ import { import { NotificationsConfig } from './Notifications/types'; import { InteractionsConfig } from './Interactions/types'; +/** + * Compatibility type representing the Amplify Gen 1 configuration file schema. This type should not be used directly. + */ export interface LegacyConfig { /** * @deprecated The field should not be used. @@ -36,6 +39,9 @@ export interface LegacyConfig { export type AtLeastOne }> = Partial & U[keyof U]; +/** + * Amplify library configuration type. Used to specify back-end resource configuration across the library. + */ export interface ResourcesConfig { API?: APIConfig; Analytics?: AnalyticsConfig; @@ -47,6 +53,9 @@ export interface ResourcesConfig { Geo?: GeoConfig; } +/** + * Amplify library options type. Used to customize library behavior. + */ export interface LibraryOptions { API?: LibraryAPIOptions; Auth?: LibraryAuthOptions; diff --git a/packages/datastore-storage-adapter/README.md b/packages/datastore-storage-adapter/README.md new file mode 100644 index 00000000000..48affb3232e --- /dev/null +++ b/packages/datastore-storage-adapter/README.md @@ -0,0 +1 @@ +This package contains the AWS Amplify DataStore storage adapter. For more information on using the DataStore storage adapter in your application please reference the [Amplify Dev Center](https://docs.amplify.aws/react-native/build-a-backend/more-features/datastore/set-up-datastore/#setup-local-development-environment). diff --git a/packages/datastore-storage-adapter/typedoc.json b/packages/datastore-storage-adapter/typedoc.json new file mode 100644 index 00000000000..ce91913662a --- /dev/null +++ b/packages/datastore-storage-adapter/typedoc.json @@ -0,0 +1,11 @@ +{ + "name": "@aws-amplify/datastore-storage-adapter", + "extends": ["../../typedoc.base.json"], + "entryPointStrategy": "resolve", + "entryPoints": [ + "src/index.ts", + "src/SQLiteAdapter/SQLiteAdapter.ts", + "src/ExpoSQLiteAdapter/ExpoSQLiteAdapter.ts" + ], + "readme": "README.md", +} diff --git a/packages/geo/README.md b/packages/geo/README.md new file mode 100644 index 00000000000..0a826d65cfa --- /dev/null +++ b/packages/geo/README.md @@ -0,0 +1 @@ +This package contains the AWS Amplify Geo category. For more information on using Geo in your application please reference the [Amplify Dev Center](https://docs.amplify.aws/javascript/build-a-backend/more-features/geo/). diff --git a/packages/geo/src/Geo.ts b/packages/geo/src/Geo.ts index ea98d997320..f1936e229c2 100644 --- a/packages/geo/src/Geo.ts +++ b/packages/geo/src/Geo.ts @@ -60,7 +60,7 @@ export class GeoClass { /** * add plugin into Geo category - * @param {Object} pluggable - an instance of the plugin + * @param {Object} pluggable an instance of the plugin */ public addPluggable(pluggable: GeoProvider) { if (pluggable && pluggable.getCategory() === 'Geo') { @@ -70,7 +70,7 @@ export class GeoClass { /** * Get the plugin object - * @param providerName - the name of the plugin + * @param providerName the name of the plugin */ public getPluggable(providerName: string) { const pluggable = this._pluggables.find( @@ -84,7 +84,7 @@ export class GeoClass { /** * Remove the plugin object - * @param providerName - the name of the plugin + * @param providerName the name of the plugin */ public removePluggable(providerName: string) { this._pluggables = this._pluggables.filter( @@ -117,8 +117,8 @@ export class GeoClass { /** * Search by text input with optional parameters - * @param {string} text - The text string that is to be searched for - * @param {SearchByTextOptions} options? - Optional parameters to the search + * @param {string} text The text string that is to be searched for + * @param {SearchByTextOptions} options Optional parameters to the search * @returns {Promise} - Promise resolves to a list of Places that match search parameters */ public async searchByText( @@ -138,8 +138,8 @@ export class GeoClass { /** * Search for search term suggestions based on input text - * @param {string} text - The text string that is to be search for - * @param {SearchByTextOptions} options? - Optional parameters to the search + * @param {string} text The text string that is to be search for + * @param {SearchByTextOptions} options Optional parameters to the search * @returns {Promise} - Resolves to an array of search suggestion strings */ public async searchForSuggestions( @@ -159,8 +159,8 @@ export class GeoClass { /** * Search for location by unique ID - * @param {string} placeId - Unique ID of the location that is to be searched for - * @param {searchByPlaceIdOptions} options? - Optional parameters to the search + * @param {string} placeId Unique ID of the location that is to be searched for + * @param {searchByPlaceIdOptions} options Optional parameters to the search * @returns {Promise} - Resolves to a place with the given placeId */ public async searchByPlaceId( @@ -180,8 +180,8 @@ export class GeoClass { /** * Reverse geocoding search via a coordinate point on the map - * @param coordinates - Coordinates array for the search input - * @param options - Options parameters for the search + * @param coordinates Coordinates array for the search input + * @param options Options parameters for the search * @returns {Promise} - Promise that resolves to a place matching search coordinates */ public async searchByCoordinates( @@ -203,8 +203,8 @@ export class GeoClass { /** * Create geofences - * @param geofences - Single or array of geofence objects to create - * @param options? - Optional parameters for creating geofences + * @param geofences Single or array of geofence objects to create + * @param options Optional parameters for creating geofences * @returns {Promise} - Promise that resolves to an object with: * successes: list of geofences successfully created * errors: list of geofences that failed to create @@ -234,8 +234,8 @@ export class GeoClass { /** * Get a single geofence by geofenceId - * @param geofenceId: GeofenceId - The string id of the geofence to get - * @param options?: GeofenceOptions - Optional parameters for getting a geofence + * @param geofenceId The string id of the geofence to get + * @param options Optional parameters for getting a geofence * @returns Promise - Promise that resolves to a geofence object */ public async getGeofence( @@ -255,7 +255,7 @@ export class GeoClass { /** * List geofences - * @param options?: ListGeofenceOptions + * @param options ListGeofenceOptions * @returns {Promise} - Promise that resolves to an object with: * entries: list of geofences - 100 geofences are listed per page * nextToken: token for next page of geofences @@ -276,8 +276,8 @@ export class GeoClass { /** * Delete geofences - * @param geofenceIds: string|string[] - * @param options?: GeofenceOptions + * @param geofenceIds string|string[] + * @param options GeofenceOptions * @returns {Promise} - Promise that resolves to an object with: * successes: list of geofences successfully deleted * errors: list of geofences that failed to delete diff --git a/packages/geo/src/providers/location-service/AmazonLocationServiceProvider.ts b/packages/geo/src/providers/location-service/AmazonLocationServiceProvider.ts index 85957e43ab4..62bc4da7443 100644 --- a/packages/geo/src/providers/location-service/AmazonLocationServiceProvider.ts +++ b/packages/geo/src/providers/location-service/AmazonLocationServiceProvider.ts @@ -133,8 +133,8 @@ export class AmazonLocationServiceProvider implements GeoProvider { /** * Search by text input with optional parameters - * @param {string} text - The text string that is to be searched for - * @param {SearchByTextOptions} options? - Optional parameters to the search + * @param {string} text The text string that is to be searched for + * @param {SearchByTextOptions} options Optional parameters to the search * @returns {Promise} - Promise resolves to a list of Places that match search parameters */ public async searchByText( @@ -198,8 +198,8 @@ export class AmazonLocationServiceProvider implements GeoProvider { /** * Search for suggestions based on the input text - * @param {string} text - The text string that is to be searched for - * @param {SearchByTextOptions} options? - Optional parameters to the search + * @param {string} text The text string that is to be searched for + * @param {SearchByTextOptions} options Optional parameters to the search * @returns {Promise} - Resolves to an array of search suggestion strings */ @@ -311,8 +311,8 @@ export class AmazonLocationServiceProvider implements GeoProvider { /** * Reverse geocoding search via a coordinate point on the map - * @param coordinates - Coordinates array for the search input - * @param options - Options parameters for the search + * @param coordinates Coordinates array for the search input + * @param options Options parameters for the search * @returns {Promise} - Promise that resolves to a place matching search coordinates */ public async searchByCoordinates( @@ -370,8 +370,8 @@ export class AmazonLocationServiceProvider implements GeoProvider { /** * Create geofences inside of a geofence collection - * @param geofences - Array of geofence objects to create - * @param options? - Optional parameters for creating geofences + * @param geofences Array of geofence objects to create + * @param options Optional parameters for creating geofences * @returns {Promise} - Promise that resolves to an object with: * successes: list of geofences successfully created * errors: list of geofences that failed to create @@ -476,8 +476,8 @@ export class AmazonLocationServiceProvider implements GeoProvider { /** * Get geofence from a geofence collection - * @param geofenceId:string - * @param options?: Optional parameters for getGeofence + * @param geofenceId string + * @param options Optional parameters for getGeofence * @returns {Promise} - Promise that resolves to a geofence object */ public async getGeofence( @@ -540,7 +540,7 @@ export class AmazonLocationServiceProvider implements GeoProvider { /** * List geofences from a geofence collection - * @param options?: ListGeofenceOptions + * @param options ListGeofenceOptions * @returns {Promise} - Promise that resolves to an object with: * entries: list of geofences - 100 geofences are listed per page * nextToken: token for next page of geofences @@ -614,8 +614,8 @@ export class AmazonLocationServiceProvider implements GeoProvider { /** * Delete geofences from a geofence collection - * @param geofenceIds: string|string[] - * @param options?: GeofenceOptions + * @param geofenceIds string|string[] + * @param options GeofenceOptions * @returns {Promise} - Promise that resolves to an object with: * successes: list of geofences successfully deleted * errors: list of geofences that failed to delete diff --git a/packages/geo/typedoc.json b/packages/geo/typedoc.json new file mode 100644 index 00000000000..2dfbb49b4c3 --- /dev/null +++ b/packages/geo/typedoc.json @@ -0,0 +1,10 @@ +{ + "name": "@aws-amplify/geo", + "extends": ["../../typedoc.base.json"], + "entryPointStrategy": "resolve", + "entryPoints": [ + "src/index.ts", + "src/providers/location-service/AmazonLocationServiceProvider.ts" + ], + "readme": "README.md", +} diff --git a/packages/interactions/README.md b/packages/interactions/README.md index 1436a284cf0..94ae39a771b 100644 --- a/packages/interactions/README.md +++ b/packages/interactions/README.md @@ -1,3 +1 @@ -> INTERNAL USE ONLY - -This package contains the AWS Amplify Interactions category and is intended for internal use only. To integrate Amplify into your app, please use [aws-amplify](https://www.npmjs.com/package/aws-amplify). +This package contains the AWS Amplify Interactions category. For more information on using Interactions in your application please reference the [Amplify Dev Center](https://docs.amplify.aws/javascript/build-a-backend/more-features/interactions/). diff --git a/packages/interactions/typedoc.json b/packages/interactions/typedoc.json new file mode 100644 index 00000000000..f9d0a93fe43 --- /dev/null +++ b/packages/interactions/typedoc.json @@ -0,0 +1,11 @@ +{ + "name": "@aws-amplify/interactions", + "extends": ["../../typedoc.base.json"], + "entryPointStrategy": "resolve", + "entryPoints": [ + "src/index.ts", + "src/lex-v1/index.ts", + "src/lex-v2/index.ts" + ], + "readme": "README.md", +} diff --git a/packages/notifications/src/inAppMessaging/providers/pinpoint/apis/dispatchEvent.ts b/packages/notifications/src/inAppMessaging/providers/pinpoint/apis/dispatchEvent.ts index c89fda70591..42a5340aaf2 100644 --- a/packages/notifications/src/inAppMessaging/providers/pinpoint/apis/dispatchEvent.ts +++ b/packages/notifications/src/inAppMessaging/providers/pinpoint/apis/dispatchEvent.ts @@ -26,11 +26,14 @@ import { assertIsInitialized } from '../../../utils'; * To change this behavior, you can use the {@link setConflictHandler} API to provide * your own logic for resolving message conflicts. * - * @param DispatchEventInput The input object that holds the event to be dispatched. + * @param input The input object that holds the event to be dispatched. + * * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library * configuration is incorrect, or if In App messaging hasn't been initialized. * @throws service exceptions - Thrown when the underlying Pinpoint service returns an error. + * * @returns A promise that will resolve when the operation is complete. + * * @example * ```ts * // Sync message before disptaching an event diff --git a/packages/notifications/src/inAppMessaging/providers/pinpoint/apis/setConflictHandler.ts b/packages/notifications/src/inAppMessaging/providers/pinpoint/apis/setConflictHandler.ts index 58333a11c9d..ec6bdd6b91e 100644 --- a/packages/notifications/src/inAppMessaging/providers/pinpoint/apis/setConflictHandler.ts +++ b/packages/notifications/src/inAppMessaging/providers/pinpoint/apis/setConflictHandler.ts @@ -15,9 +15,12 @@ export let conflictHandler: InAppMessageConflictHandler = * @remark * The conflict handler is not persisted across app restarts and so must be set again before dispatching an event for * any custom handling to take effect. + * * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library * configuration is incorrect, or if In App messaging hasn't been initialized. - * @param SetConflictHandlerInput: The input object that holds the conflict handler to be used. + * + * @param input The input object that holds the conflict handler to be used. + * * @example * ```ts * // Sync messages before dispatching an event diff --git a/packages/predictions/README.md b/packages/predictions/README.md index e897a9a2fcb..01021e2aa51 100644 --- a/packages/predictions/README.md +++ b/packages/predictions/README.md @@ -1,3 +1,2 @@ -> INTERNAL USE ONLY +This package contains the AWS Amplify Predictions category. For more information on using Predictions in your application please reference the [Amplify Dev Center](https://docs.amplify.aws/javascript/build-a-backend/more-features/predictions/). -This package contains the AWS Amplify Predictions category and is intended for internal use only. To integrate Amplify into your app, please use [aws-amplify](https://www.npmjs.com/package/aws-amplify). diff --git a/packages/predictions/typedoc.json b/packages/predictions/typedoc.json new file mode 100644 index 00000000000..b41bbe4e86f --- /dev/null +++ b/packages/predictions/typedoc.json @@ -0,0 +1,9 @@ +{ + "name": "@aws-amplify/predictions", + "extends": ["../../typedoc.base.json"], + "entryPointStrategy": "resolve", + "entryPoints": [ + "src/index.ts" + ], + "readme": "README.md", +} diff --git a/packages/pubsub/README.md b/packages/pubsub/README.md new file mode 100644 index 00000000000..972237f114a --- /dev/null +++ b/packages/pubsub/README.md @@ -0,0 +1,2 @@ +This package contains the AWS Amplify PubSub category. For more information on using PubSub in your application please reference the [Amplify Dev Center](https://docs.amplify.aws/javascript/build-a-backend/more-features/pubsub/). + diff --git a/packages/pubsub/typedoc.json b/packages/pubsub/typedoc.json new file mode 100644 index 00000000000..ad6a41a8f52 --- /dev/null +++ b/packages/pubsub/typedoc.json @@ -0,0 +1,11 @@ +{ + "name": "@aws-amplify/pubsub", + "extends": ["../../typedoc.base.json"], + "entryPointStrategy": "resolve", + "entryPoints": [ + "src/index.ts", + "src/clients/iot.ts", + "src/clients/mqtt.ts" + ], + "readme": "README.md", +} diff --git a/packages/storage/src/providers/s3/apis/server/list.ts b/packages/storage/src/providers/s3/apis/server/list.ts index 50eb58ebfec..1c15a98af88 100644 --- a/packages/storage/src/providers/s3/apis/server/list.ts +++ b/packages/storage/src/providers/s3/apis/server/list.ts @@ -19,7 +19,7 @@ import { StorageValidationErrorCode } from '../../../../errors/types/validation' interface ListApi { /** * Lists bucket objects with pagination. - * @param {ListPaginateInput} The input object + * @param {ListPaginateInput} input The input object * @return {Promise} - Promise resolves to list of keys and metadata with * pageSize defaulting to 1000. Additionally the result will include a nextToken if there are more items to retrieve * @throws service: {@link S3Exception} - S3 service errors thrown when checking for existence of bucket @@ -31,7 +31,7 @@ interface ListApi { ): Promise; /** * Lists all bucket objects. - * @param {ListAllInput} The input object + * @param {ListAllInput} input The input object * @return {Promise} - Promise resolves to list of keys and metadata for all objects in path * @throws service: {@link S3Exception} - S3 service errors thrown when checking for existence of bucket * @throws validation: {@link StorageValidationErrorCode } - thrown when there are issues with credentials diff --git a/typedoc.base.json b/typedoc.base.json new file mode 100644 index 00000000000..9bc83c3dbf0 --- /dev/null +++ b/typedoc.base.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://typedoc.org/schema.json", + "includeVersion": true, + "excludePrivate": true, + "excludeInternal": true, + "skipErrorChecking": true, + "disableSources": true, + "internalModule": "" +} diff --git a/typedoc.json b/typedoc.json new file mode 100644 index 00000000000..3fd7fe50a7d --- /dev/null +++ b/typedoc.json @@ -0,0 +1,29 @@ +{ + "name": "Amplify JS API Documentation", + "entryPointStrategy": "packages", + "entryPoints": [ + "packages/aws-amplify", + "packages/geo", + "packages/interactions", + "packages/predictions", + "packages/pubsub", + "packages/adapter-nextjs", + "packages/datastore-storage-adapter", + ], + "out": "docs/api", + "readme": "docs/README.md", + "sortEntryPoints": false, + "includeVersion": false, + "hideGenerator": true, + "navigationLinks": { + "Library Documentation": "https://docs.amplify.aws/", + "NPM": "https://www.npmjs.com/package/aws-amplify", + "GitHub": "https://github.com/aws-amplify/amplify-js" + }, + "customCss": "./docs/theme/styles.css", + "favicon": "./docs/theme/favicon.ico", + "plugin": [ + "typedoc-plugin-missing-exports", + "typedoc-plugin-extras" + ], +} diff --git a/yarn.lock b/yarn.lock index 37a28009997..fe13f3ac8e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5571,6 +5571,11 @@ ansi-regex@^6.0.1: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== +ansi-sequence-parser@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ansi-sequence-parser/-/ansi-sequence-parser-1.1.1.tgz#e0aa1cdcbc8f8bb0b5bca625aac41f5f056973cf" + integrity sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg== + ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -8526,7 +8531,7 @@ gzip-size@^6.0.0: dependencies: duplexer "^0.1.2" -handlebars@^4.7.6, handlebars@^4.7.7: +handlebars@^4.7.7: version "4.7.8" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.8.tgz#41c42c18b1be2365439188c77c6afae71c0cd9e9" integrity sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ== @@ -8649,11 +8654,6 @@ hermes-profile-transformer@^0.0.6: dependencies: source-map "^0.7.3" -highlight.js@^10.0.0: - version "10.7.3" - resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.7.3.tgz#697272e3991356e40c3cac566a74eef681756531" - integrity sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A== - hosted-git-info@^2.1.4: version "2.8.9" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" @@ -8932,11 +8932,6 @@ internal-slot@^1.0.7: hasown "^2.0.0" side-channel "^1.0.4" -interpret@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" - integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== - interpret@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/interpret/-/interpret-3.1.1.tgz#5be0ceed67ca79c6c4bc5cf0d7ee843dcea110c4" @@ -8963,9 +8958,9 @@ ip-address@^9.0.5: sprintf-js "^1.1.3" ip@^1.1.5: - version "1.1.8" - resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" - integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== + version "1.1.9" + resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.9.tgz#8dfbcc99a754d07f425310b86a99546b1151e396" + integrity sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ== is-arguments@^1.1.1: version "1.1.1" @@ -9975,6 +9970,11 @@ jsonc-parser@3.2.0: resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== +jsonc-parser@^3.2.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.1.tgz#031904571ccf929d7670ee8c547545081cb37f1a" + integrity sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA== + jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" @@ -10328,7 +10328,7 @@ lru-cache@^7.4.4, lru-cache@^7.5.1, lru-cache@^7.7.1: resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.2.0.tgz#0bd445ca57363465900f4d1f9bd8db343a4d95c3" integrity sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q== -lunr@^2.3.8: +lunr@^2.3.9: version "2.3.9" resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.9.tgz#18b123142832337dd6e964df1a5a7707b25d35e1" integrity sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow== @@ -10442,10 +10442,10 @@ map-obj@^4.0.0: resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== -marked@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/marked/-/marked-1.0.0.tgz#d35784245a04871e5988a491e28867362e941693" - integrity sha512-Wo+L1pWTVibfrSr+TTtMuiMfNzmZWiOPeO7rZsQUY5bgsxpHesBEcIWJloWVTFnrMXnf/TL30eTFSGJddmQAng== +marked@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/marked/-/marked-4.3.0.tgz#796362821b019f734054582038b116481b456cf3" + integrity sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A== marky@^1.2.2: version "1.2.5" @@ -11647,14 +11647,14 @@ minimatch@3.0.5: dependencies: brace-expansion "^1.1.7" -"minimatch@6 || 7 || 8 || 9", minimatch@9.0.3, minimatch@^9.0.0, minimatch@^9.0.1: +"minimatch@6 || 7 || 8 || 9", minimatch@9.0.3, minimatch@^9.0.0, minimatch@^9.0.1, minimatch@^9.0.3: version "9.0.3" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825" integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== dependencies: brace-expansion "^2.0.1" -minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: +minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -12889,11 +12889,6 @@ process-nextick-args@~2.0.0: resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== -progress@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" - integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== - promise-all-reject-late@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz#f8ebf13483e5ca91ad809ccc2fcf25f26f8643c2" @@ -13399,13 +13394,6 @@ recast@^0.21.0: source-map "~0.6.1" tslib "^2.0.1" -rechoir@^0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" - integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw== - dependencies: - resolve "^1.1.6" - rechoir@^0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.8.0.tgz#49f866e0d32146142da3ad8f0eff352b3215ff22" @@ -13536,7 +13524,7 @@ resolve.exports@^2.0.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.2, resolve@^1.22.4, resolve@^1.3.2: +resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.2, resolve@^1.22.4, resolve@^1.3.2: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== @@ -13884,14 +13872,15 @@ shell-quote@^1.6.1, shell-quote@^1.7.3: resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680" integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA== -shelljs@^0.8.4: - version "0.8.5" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c" - integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== +shiki@^0.14.7: + version "0.14.7" + resolved "https://registry.yarnpkg.com/shiki/-/shiki-0.14.7.tgz#c3c9e1853e9737845f1d2ef81b31bcfb07056d4e" + integrity sha512-dNPAPrxSc87ua2sKJ3H5dQ/6ZaY8RNnaAqK+t0eG7p0Soi2ydiqbGOTaZCqaYvA/uZYfS1LJnemt3Q+mSfcPCg== dependencies: - glob "^7.0.0" - interpret "^1.0.0" - rechoir "^0.6.2" + ansi-sequence-parser "^1.1.0" + jsonc-parser "^3.2.0" + vscode-oniguruma "^1.7.0" + vscode-textmate "^8.0.0" side-channel@^1.0.4: version "1.0.5" @@ -14890,28 +14879,25 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -typedoc-default-themes@^0.10.2: - version "0.10.2" - resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.10.2.tgz#743380a80afe62c5ef92ca1bd4abe2ac596be4d2" - integrity sha512-zo09yRj+xwLFE3hyhJeVHWRSPuKEIAsFK5r2u47KL/HBKqpwdUSanoaz5L34IKiSATFrjG5ywmIu98hPVMfxZg== - dependencies: - lunr "^2.3.8" +typedoc-plugin-extras@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/typedoc-plugin-extras/-/typedoc-plugin-extras-3.0.0.tgz#e41eeb815aaa572beb8c274834a6b7f51dd55b24" + integrity sha512-eiAe3qtm2WbV5owdncpt0zHZPqsNZH2mzNGILPd4zqrvEZie3Et9es4cpGZ+8lHO/SI0pVKwsAj7IuMxPNOdYg== + +typedoc-plugin-missing-exports@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/typedoc-plugin-missing-exports/-/typedoc-plugin-missing-exports-2.2.0.tgz#e39a04bab5b0d7f7b28507d64c07a4c40b788648" + integrity sha512-2+XR1IcyQ5UwXZVJe9NE6HrLmNufT9i5OwoIuuj79VxuA3eYq+Y6itS9rnNV1D7UeQnUSH8kISYD73gHE5zw+w== -typedoc@^0.17.0: - version "0.17.8" - resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.17.8.tgz#96b67e9454aa7853bfc4dc9a55c8a07adfd5478e" - integrity sha512-/OyrHCJ8jtzu+QZ+771YaxQ9s4g5Z3XsQE3Ma7q+BL392xxBn4UMvvCdVnqKC2T/dz03/VXSLVKOP3lHmDdc/w== +typedoc@0.25.8: + version "0.25.8" + resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.25.8.tgz#7d0e1bf12d23bf1c459fd4893c82cb855911ff12" + integrity sha512-mh8oLW66nwmeB9uTa0Bdcjfis+48bAjSH3uqdzSuSawfduROQLlXw//WSNZLYDdhmMVB7YcYZicq6e8T0d271A== dependencies: - fs-extra "^8.1.0" - handlebars "^4.7.6" - highlight.js "^10.0.0" - lodash "^4.17.15" - lunr "^2.3.8" - marked "1.0.0" - minimatch "^3.0.0" - progress "^2.0.3" - shelljs "^0.8.4" - typedoc-default-themes "^0.10.2" + lunr "^2.3.9" + marked "^4.3.0" + minimatch "^9.0.3" + shiki "^0.14.7" typescript-coverage-report@^0.6.4: version "0.6.4" @@ -14948,7 +14934,7 @@ typescript@5.1.6: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37" integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw== -typescript@^4.3.5: +typescript@^4.6.0: version "4.9.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== @@ -15219,6 +15205,16 @@ vlq@^1.0.0: resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.1.tgz#c003f6e7c0b4c1edd623fd6ee50bbc0d6a1de468" integrity sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w== +vscode-oniguruma@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz#439bfad8fe71abd7798338d1cd3dc53a8beea94b" + integrity sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA== + +vscode-textmate@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-8.0.0.tgz#2c7a3b1163ef0441097e0b5d6389cd5504b59e5d" + integrity sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg== + w3c-xmlserializer@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz#aebdc84920d806222936e3cdce408e32488a3073"