ad2games-ui_components 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +28 -0
- data/app/assets/javascripts/ui_components.js.erb +26 -0
- data/app/assets/javascripts/ui_components/chosen_init.coffee +9 -0
- data/app/assets/javascripts/ui_components/domchange.coffee +1 -0
- data/app/assets/javascripts/ui_components/hide_empty_dropdowns.coffee +4 -0
- data/app/assets/javascripts/ui_components/modal.coffee +1 -0
- data/app/assets/javascripts/ui_components/navbar.coffee +2 -0
- data/app/assets/javascripts/ui_components/sticky_header.coffee +24 -0
- data/app/assets/javascripts/ui_components/submit_on_change.coffee +3 -0
- data/app/assets/javascripts/ui_components/turbolinks_progressbar.coffee +2 -0
- data/app/assets/stylesheets/a2g_ui_components.scss +8 -0
- data/app/assets/stylesheets/default_theme/button.scss +160 -0
- data/app/assets/stylesheets/default_theme/common.scss +15 -0
- data/app/assets/stylesheets/default_theme/footer.scss +7 -0
- data/app/assets/stylesheets/default_theme/form.scss +72 -0
- data/app/assets/stylesheets/default_theme/navbar.scss +55 -0
- data/app/assets/stylesheets/default_theme/table.scss +68 -0
- data/app/assets/stylesheets/default_theme/toolbar.scss +117 -0
- data/app/assets/stylesheets/libs.scss +6 -0
- data/app/assets/stylesheets/ui_components.scss.erb +15 -0
- data/app/assets/stylesheets/ui_components/checkbox_list.scss +11 -0
- data/app/assets/stylesheets/ui_components/date_range.scss +5 -0
- data/app/assets/stylesheets/ui_components/markdown_textarea.scss +7 -0
- data/app/assets/stylesheets/variables.scss +893 -0
- data/app/cells/checkbox_list/checkbox_list.yml +7 -0
- data/app/cells/checkbox_list/checkbox_list_cell.rb +33 -0
- data/app/cells/datagrid_filter/datagrid_filter.yml +14 -0
- data/app/cells/datagrid_filter/datagrid_filter_cell.rb +35 -0
- data/app/cells/date_range/date_range.coffee +69 -0
- data/app/cells/date_range/date_range.yml +7 -0
- data/app/cells/date_range/date_range_cell.rb +55 -0
- data/app/cells/form_cell_base.rb +26 -0
- data/app/cells/hello_world/hello_world.slim +1 -0
- data/app/cells/hello_world/hello_world.yml +5 -0
- data/app/cells/hello_world/hello_world_cell.rb +4 -0
- data/app/cells/markdown_readonly/markdown_readonly.coffee +5 -0
- data/app/cells/markdown_readonly/markdown_readonly.slim +1 -0
- data/app/cells/markdown_readonly/markdown_readonly.yml +4 -0
- data/app/cells/markdown_readonly/markdown_readonly_cell.rb +4 -0
- data/app/cells/markdown_textarea/markdown_textarea.coffee +9 -0
- data/app/cells/markdown_textarea/markdown_textarea.slim +9 -0
- data/app/cells/markdown_textarea/markdown_textarea.yml +8 -0
- data/app/cells/markdown_textarea/markdown_textarea_cell.rb +42 -0
- data/app/cells/modal/modal.coffee +2 -0
- data/app/cells/modal/modal.slim +12 -0
- data/app/cells/modal/modal.yml +22 -0
- data/app/cells/modal/modal_cell.rb +31 -0
- data/app/cells/select/select.coffee +35 -0
- data/app/cells/select/select.yml +14 -0
- data/app/cells/select/select_cell.rb +59 -0
- data/app/helpers/ui_components/view_helper.rb +8 -0
- data/lib/generators/generate_component.thor +32 -0
- data/lib/tasks/styleguide.rake +8 -0
- data/lib/ui_components.rb +14 -0
- data/lib/ui_components/cell.rb +16 -0
- data/lib/ui_components/cell_attributes.rb +49 -0
- data/lib/ui_components/docu_cop.rb +31 -0
- data/lib/ui_components/engine.rb +26 -0
- data/lib/ui_components/form_helper.rb +32 -0
- data/lib/ui_components/templates/cell.tt +2 -0
- data/lib/ui_components/templates/coffee.tt +0 -0
- data/lib/ui_components/templates/config.tt +9 -0
- data/lib/ui_components/templates/sass.tt +0 -0
- data/lib/ui_components/templates/view.tt +0 -0
- data/vendor/assets/bower_components/ajax-chosen/CHANGELOG.md +10 -0
- data/vendor/assets/bower_components/ajax-chosen/Cakefile +93 -0
- data/vendor/assets/bower_components/ajax-chosen/Makefile +2 -0
- data/vendor/assets/bower_components/ajax-chosen/README.md +131 -0
- data/vendor/assets/bower_components/ajax-chosen/VERSION +1 -0
- data/vendor/assets/bower_components/ajax-chosen/bower.json +23 -0
- data/vendor/assets/bower_components/ajax-chosen/data.json +57 -0
- data/vendor/assets/bower_components/ajax-chosen/docs/ajax-chosen.html +71 -0
- data/vendor/assets/bower_components/ajax-chosen/docs/docco.css +186 -0
- data/vendor/assets/bower_components/ajax-chosen/index.html +47 -0
- data/vendor/assets/bower_components/ajax-chosen/lib/ajax-chosen.js +159 -0
- data/vendor/assets/bower_components/ajax-chosen/lib/ajax-chosen.min.js +17 -0
- data/vendor/assets/bower_components/ajax-chosen/package.json +18 -0
- data/vendor/assets/bower_components/ajax-chosen/src/ajax-chosen.coffee +183 -0
- data/vendor/assets/bower_components/bootstrap-chosen/README.md +29 -0
- data/vendor/assets/bower_components/bootstrap-chosen/bootstrap-chosen-variables.less +24 -0
- data/vendor/assets/bower_components/bootstrap-chosen/bootstrap-chosen-variables.scss +16 -0
- data/vendor/assets/bower_components/bootstrap-chosen/bootstrap-chosen.less +473 -0
- data/vendor/assets/bower_components/bootstrap-chosen/bootstrap-chosen.scss +459 -0
- data/vendor/assets/bower_components/bootstrap-chosen/bower.json +25 -0
- data/vendor/assets/bower_components/bootstrap-chosen/chosen-sprite.png +0 -0
- data/vendor/assets/bower_components/bootstrap-chosen/chosen-sprite@2x.png +0 -0
- data/vendor/assets/bower_components/bootstrap-daterangepicker/README.md +200 -0
- data/vendor/assets/bower_components/bootstrap-daterangepicker/bower.json +20 -0
- data/vendor/assets/bower_components/bootstrap-daterangepicker/daterangepicker-bs2.css +303 -0
- data/vendor/assets/bower_components/bootstrap-daterangepicker/daterangepicker-bs3.css +335 -0
- data/vendor/assets/bower_components/bootstrap-daterangepicker/daterangepicker.js +1348 -0
- data/vendor/assets/bower_components/bootstrap-daterangepicker/examples.html +272 -0
- data/vendor/assets/bower_components/bootstrap-daterangepicker/package.js +18 -0
- data/vendor/assets/bower_components/bootstrap-daterangepicker/package.json +32 -0
- data/vendor/assets/bower_components/chosen/bower.json +50 -0
- data/vendor/assets/bower_components/chosen/chosen-sprite.png +0 -0
- data/vendor/assets/bower_components/chosen/chosen-sprite@2x.png +0 -0
- data/vendor/assets/bower_components/chosen/chosen.css +448 -0
- data/vendor/assets/bower_components/chosen/chosen.jquery.js +1272 -0
- data/vendor/assets/bower_components/highlightjs/LICENSE +24 -0
- data/vendor/assets/bower_components/highlightjs/Makefile +21 -0
- data/vendor/assets/bower_components/highlightjs/README.md +12 -0
- data/vendor/assets/bower_components/highlightjs/bower.json +14 -0
- data/vendor/assets/bower_components/highlightjs/component.json +12 -0
- data/vendor/assets/bower_components/highlightjs/composer.json +26 -0
- data/vendor/assets/bower_components/highlightjs/highlight.pack.js +15263 -0
- data/vendor/assets/bower_components/highlightjs/highlight.pack.min.js +12 -0
- data/vendor/assets/bower_components/highlightjs/package.json +8 -0
- data/vendor/assets/bower_components/highlightjs/styles/agate.css +108 -0
- data/vendor/assets/bower_components/highlightjs/styles/androidstudio.css +66 -0
- data/vendor/assets/bower_components/highlightjs/styles/arduino-light.css +88 -0
- data/vendor/assets/bower_components/highlightjs/styles/arta.css +73 -0
- data/vendor/assets/bower_components/highlightjs/styles/ascetic.css +45 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-cave-dark.css +83 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-cave-light.css +85 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-cave.dark.css +113 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-cave.light.css +113 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-dune-dark.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-dune-light.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-dune.dark.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-dune.light.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-estuary-dark.css +84 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-estuary-light.css +84 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-estuary.dark.css +113 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-estuary.light.css +113 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-forest-dark.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-forest-light.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-forest.dark.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-forest.light.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-heath-dark.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-heath-light.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-heath.dark.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-heath.light.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-lakeside-dark.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-lakeside-light.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-lakeside.dark.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-lakeside.light.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-plateau-dark.css +84 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-plateau-light.css +84 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-plateau.dark.css +113 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-plateau.light.css +113 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-savanna-dark.css +84 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-savanna-light.css +84 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-savanna.dark.css +113 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-savanna.light.css +113 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-seaside-dark.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-seaside-light.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-seaside.dark.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-seaside.light.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-sulphurpool-dark.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-sulphurpool-light.css +69 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-sulphurpool.dark.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/atelier-sulphurpool.light.css +94 -0
- data/vendor/assets/bower_components/highlightjs/styles/brown-paper.css +64 -0
- data/vendor/assets/bower_components/highlightjs/styles/brown-papersq.png +0 -0
- data/vendor/assets/bower_components/highlightjs/styles/brown_paper.css +103 -0
- data/vendor/assets/bower_components/highlightjs/styles/brown_papersq.png +0 -0
- data/vendor/assets/bower_components/highlightjs/styles/codepen-embed.css +60 -0
- data/vendor/assets/bower_components/highlightjs/styles/color-brewer.css +71 -0
- data/vendor/assets/bower_components/highlightjs/styles/dark.css +63 -0
- data/vendor/assets/bower_components/highlightjs/styles/darkula.css +74 -0
- data/vendor/assets/bower_components/highlightjs/styles/default.css +99 -0
- data/vendor/assets/bower_components/highlightjs/styles/docco.css +97 -0
- data/vendor/assets/bower_components/highlightjs/styles/dracula.css +76 -0
- data/vendor/assets/bower_components/highlightjs/styles/far.css +71 -0
- data/vendor/assets/bower_components/highlightjs/styles/foundation.css +88 -0
- data/vendor/assets/bower_components/highlightjs/styles/github-gist.css +71 -0
- data/vendor/assets/bower_components/highlightjs/styles/github.css +99 -0
- data/vendor/assets/bower_components/highlightjs/styles/googlecode.css +89 -0
- data/vendor/assets/bower_components/highlightjs/styles/grayscale.css +101 -0
- data/vendor/assets/bower_components/highlightjs/styles/gruvbox-dark.css +108 -0
- data/vendor/assets/bower_components/highlightjs/styles/gruvbox-light.css +108 -0
- data/vendor/assets/bower_components/highlightjs/styles/hopscotch.css +83 -0
- data/vendor/assets/bower_components/highlightjs/styles/hybrid.css +102 -0
- data/vendor/assets/bower_components/highlightjs/styles/idea.css +97 -0
- data/vendor/assets/bower_components/highlightjs/styles/ir-black.css +73 -0
- data/vendor/assets/bower_components/highlightjs/styles/ir_black.css +106 -0
- data/vendor/assets/bower_components/highlightjs/styles/kimbie.dark.css +74 -0
- data/vendor/assets/bower_components/highlightjs/styles/kimbie.light.css +74 -0
- data/vendor/assets/bower_components/highlightjs/styles/magula.css +70 -0
- data/vendor/assets/bower_components/highlightjs/styles/mono-blue.css +59 -0
- data/vendor/assets/bower_components/highlightjs/styles/monokai-sublime.css +83 -0
- data/vendor/assets/bower_components/highlightjs/styles/monokai.css +70 -0
- data/vendor/assets/bower_components/highlightjs/styles/monokai_sublime.css +154 -0
- data/vendor/assets/bower_components/highlightjs/styles/obsidian.css +88 -0
- data/vendor/assets/bower_components/highlightjs/styles/paraiso-dark.css +72 -0
- data/vendor/assets/bower_components/highlightjs/styles/paraiso-light.css +72 -0
- data/vendor/assets/bower_components/highlightjs/styles/paraiso.dark.css +96 -0
- data/vendor/assets/bower_components/highlightjs/styles/paraiso.light.css +96 -0
- data/vendor/assets/bower_components/highlightjs/styles/pojoaque.css +83 -0
- data/vendor/assets/bower_components/highlightjs/styles/pojoaque.jpg +0 -0
- data/vendor/assets/bower_components/highlightjs/styles/qtcreator_dark.css +83 -0
- data/vendor/assets/bower_components/highlightjs/styles/qtcreator_light.css +83 -0
- data/vendor/assets/bower_components/highlightjs/styles/railscasts.css +106 -0
- data/vendor/assets/bower_components/highlightjs/styles/rainbow.css +85 -0
- data/vendor/assets/bower_components/highlightjs/styles/school-book.css +72 -0
- data/vendor/assets/bower_components/highlightjs/styles/school-book.png +0 -0
- data/vendor/assets/bower_components/highlightjs/styles/school_book.css +111 -0
- data/vendor/assets/bower_components/highlightjs/styles/school_book.png +0 -0
- data/vendor/assets/bower_components/highlightjs/styles/solarized-dark.css +84 -0
- data/vendor/assets/bower_components/highlightjs/styles/solarized-light.css +84 -0
- data/vendor/assets/bower_components/highlightjs/styles/solarized_dark.css +107 -0
- data/vendor/assets/bower_components/highlightjs/styles/solarized_light.css +107 -0
- data/vendor/assets/bower_components/highlightjs/styles/sunburst.css +102 -0
- data/vendor/assets/bower_components/highlightjs/styles/tomorrow-night-blue.css +75 -0
- data/vendor/assets/bower_components/highlightjs/styles/tomorrow-night-bright.css +74 -0
- data/vendor/assets/bower_components/highlightjs/styles/tomorrow-night-eighties.css +74 -0
- data/vendor/assets/bower_components/highlightjs/styles/tomorrow-night.css +75 -0
- data/vendor/assets/bower_components/highlightjs/styles/tomorrow.css +72 -0
- data/vendor/assets/bower_components/highlightjs/styles/vs.css +68 -0
- data/vendor/assets/bower_components/highlightjs/styles/xcode.css +93 -0
- data/vendor/assets/bower_components/highlightjs/styles/zenburn.css +80 -0
- data/vendor/assets/bower_components/jquery.floatThead/CONTRIBUTING.md +33 -0
- data/vendor/assets/bower_components/jquery.floatThead/README.md +285 -0
- data/vendor/assets/bower_components/jquery.floatThead/bower.json +34 -0
- data/vendor/assets/bower_components/jquery.floatThead/dist/jquery.floatThead-slim.js +899 -0
- data/vendor/assets/bower_components/jquery.floatThead/dist/jquery.floatThead-slim.min.js +3 -0
- data/vendor/assets/bower_components/jquery.floatThead/dist/jquery.floatThead.js +964 -0
- data/vendor/assets/bower_components/jquery.floatThead/dist/jquery.floatThead.min.js +3 -0
- data/vendor/assets/bower_components/jquery.floatThead/license.txt +21 -0
- data/vendor/assets/bower_components/jquery/AUTHORS.txt +278 -0
- data/vendor/assets/bower_components/jquery/LICENSE.txt +36 -0
- data/vendor/assets/bower_components/jquery/README.md +65 -0
- data/vendor/assets/bower_components/jquery/bower.json +14 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.js +9842 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.min.js +4 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.slim.js +7877 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.slim.min.js +4 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.slim.min.map +1 -0
- data/vendor/assets/bower_components/jquery/sizzle/LICENSE.txt +36 -0
- data/vendor/assets/bower_components/jquery/sizzle/dist/sizzle.js +2143 -0
- data/vendor/assets/bower_components/jquery/sizzle/dist/sizzle.min.js +3 -0
- data/vendor/assets/bower_components/jquery/sizzle/dist/sizzle.min.map +1 -0
- data/vendor/assets/bower_components/jquery/src/ajax.js +845 -0
- data/vendor/assets/bower_components/jquery/src/ajax/jsonp.js +100 -0
- data/vendor/assets/bower_components/jquery/src/ajax/load.js +83 -0
- data/vendor/assets/bower_components/jquery/src/ajax/parseJSON.js +13 -0
- data/vendor/assets/bower_components/jquery/src/ajax/parseXML.js +27 -0
- data/vendor/assets/bower_components/jquery/src/ajax/script.js +68 -0
- data/vendor/assets/bower_components/jquery/src/ajax/var/location.js +3 -0
- data/vendor/assets/bower_components/jquery/src/ajax/var/nonce.js +5 -0
- data/vendor/assets/bower_components/jquery/src/ajax/var/rquery.js +3 -0
- data/vendor/assets/bower_components/jquery/src/ajax/xhr.js +167 -0
- data/vendor/assets/bower_components/jquery/src/attributes.js +11 -0
- data/vendor/assets/bower_components/jquery/src/attributes/attr.js +142 -0
- data/vendor/assets/bower_components/jquery/src/attributes/classes.js +177 -0
- data/vendor/assets/bower_components/jquery/src/attributes/prop.js +125 -0
- data/vendor/assets/bower_components/jquery/src/attributes/support.js +36 -0
- data/vendor/assets/bower_components/jquery/src/attributes/val.js +177 -0
- data/vendor/assets/bower_components/jquery/src/callbacks.js +232 -0
- data/vendor/assets/bower_components/jquery/src/core.js +494 -0
- data/vendor/assets/bower_components/jquery/src/core/DOMEval.js +14 -0
- data/vendor/assets/bower_components/jquery/src/core/access.js +65 -0
- data/vendor/assets/bower_components/jquery/src/core/init.js +134 -0
- data/vendor/assets/bower_components/jquery/src/core/parseHTML.js +41 -0
- data/vendor/assets/bower_components/jquery/src/core/ready.js +103 -0
- data/vendor/assets/bower_components/jquery/src/core/support.js +18 -0
- data/vendor/assets/bower_components/jquery/src/core/var/rsingleTag.js +5 -0
- data/vendor/assets/bower_components/jquery/src/css.js +515 -0
- data/vendor/assets/bower_components/jquery/src/css/addGetHookIf.js +24 -0
- data/vendor/assets/bower_components/jquery/src/css/adjustCSS.js +65 -0
- data/vendor/assets/bower_components/jquery/src/css/curCSS.js +60 -0
- data/vendor/assets/bower_components/jquery/src/css/defaultDisplay.js +72 -0
- data/vendor/assets/bower_components/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/vendor/assets/bower_components/jquery/src/css/showHide.js +48 -0
- data/vendor/assets/bower_components/jquery/src/css/support.js +121 -0
- data/vendor/assets/bower_components/jquery/src/css/var/cssExpand.js +3 -0
- data/vendor/assets/bower_components/jquery/src/css/var/getStyles.js +15 -0
- data/vendor/assets/bower_components/jquery/src/css/var/isHidden.js +16 -0
- data/vendor/assets/bower_components/jquery/src/css/var/rmargin.js +3 -0
- data/vendor/assets/bower_components/jquery/src/css/var/rnumnonpx.js +5 -0
- data/vendor/assets/bower_components/jquery/src/css/var/swap.js +24 -0
- data/vendor/assets/bower_components/jquery/src/data.js +187 -0
- data/vendor/assets/bower_components/jquery/src/data/Data.js +200 -0
- data/vendor/assets/bower_components/jquery/src/data/accepts.js +20 -0
- data/vendor/assets/bower_components/jquery/src/data/support.js +23 -0
- data/vendor/assets/bower_components/jquery/src/data/var/acceptData.js +18 -0
- data/vendor/assets/bower_components/jquery/src/data/var/dataPriv.js +5 -0
- data/vendor/assets/bower_components/jquery/src/data/var/dataUser.js +5 -0
- data/vendor/assets/bower_components/jquery/src/deferred.js +158 -0
- data/vendor/assets/bower_components/jquery/src/deferred/exceptionHook.js +19 -0
- data/vendor/assets/bower_components/jquery/src/deprecated.js +32 -0
- data/vendor/assets/bower_components/jquery/src/dimensions.js +54 -0
- data/vendor/assets/bower_components/jquery/src/effects.js +629 -0
- data/vendor/assets/bower_components/jquery/src/effects/Tween.js +121 -0
- data/vendor/assets/bower_components/jquery/src/effects/animatedSelector.js +13 -0
- data/vendor/assets/bower_components/jquery/src/effects/support.js +58 -0
- data/vendor/assets/bower_components/jquery/src/event.js +710 -0
- data/vendor/assets/bower_components/jquery/src/event/ajax.js +20 -0
- data/vendor/assets/bower_components/jquery/src/event/alias.js +27 -0
- data/vendor/assets/bower_components/jquery/src/event/focusin.js +53 -0
- data/vendor/assets/bower_components/jquery/src/event/support.js +9 -0
- data/vendor/assets/bower_components/jquery/src/event/trigger.js +199 -0
- data/vendor/assets/bower_components/jquery/src/exports/amd.js +24 -0
- data/vendor/assets/bower_components/jquery/src/exports/global.js +26 -0
- data/vendor/assets/bower_components/jquery/src/intro.js +44 -0
- data/vendor/assets/bower_components/jquery/src/jquery.js +37 -0
- data/vendor/assets/bower_components/jquery/src/manipulation.js +481 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/_evalUrl.js +20 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/buildFragment.js +102 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/createSafeFragment.js +20 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/getAll.js +21 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/support.js +33 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/var/nodeNames.js +5 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/var/rtagName.js +3 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/wrapMap.js +27 -0
- data/vendor/assets/bower_components/jquery/src/offset.js +218 -0
- data/vendor/assets/bower_components/jquery/src/outro.js +2 -0
- data/vendor/assets/bower_components/jquery/src/queue.js +143 -0
- data/vendor/assets/bower_components/jquery/src/queue/delay.js +22 -0
- data/vendor/assets/bower_components/jquery/src/selector-native.js +211 -0
- data/vendor/assets/bower_components/jquery/src/selector-sizzle.js +14 -0
- data/vendor/assets/bower_components/jquery/src/selector.js +1 -0
- data/vendor/assets/bower_components/jquery/src/serialize.js +125 -0
- data/vendor/assets/bower_components/jquery/src/support.js +63 -0
- data/vendor/assets/bower_components/jquery/src/traversing.js +175 -0
- data/vendor/assets/bower_components/jquery/src/traversing/findFilter.js +100 -0
- data/vendor/assets/bower_components/jquery/src/traversing/var/dir.js +20 -0
- data/vendor/assets/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/vendor/assets/bower_components/jquery/src/traversing/var/siblings.js +15 -0
- data/vendor/assets/bower_components/jquery/src/var/arr.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/class2type.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/concat.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/deletedIds.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/document.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/documentElement.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/hasOwn.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/indexOf.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/pnum.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/push.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/rcssNum.js +7 -0
- data/vendor/assets/bower_components/jquery/src/var/rnotwhite.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/slice.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/support.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/toString.js +5 -0
- data/vendor/assets/bower_components/jquery/src/wrap.js +79 -0
- data/vendor/assets/bower_components/marked/Gulpfile.js +22 -0
- data/vendor/assets/bower_components/marked/LICENSE +19 -0
- data/vendor/assets/bower_components/marked/Makefile +12 -0
- data/vendor/assets/bower_components/marked/README.md +406 -0
- data/vendor/assets/bower_components/marked/bin/marked +187 -0
- data/vendor/assets/bower_components/marked/bower.json +24 -0
- data/vendor/assets/bower_components/marked/component.json +10 -0
- data/vendor/assets/bower_components/marked/doc/broken.md +426 -0
- data/vendor/assets/bower_components/marked/doc/todo.md +2 -0
- data/vendor/assets/bower_components/marked/index.js +1 -0
- data/vendor/assets/bower_components/marked/lib/marked.js +1285 -0
- data/vendor/assets/bower_components/marked/man/marked.1 +91 -0
- data/vendor/assets/bower_components/marked/marked.min.js +6 -0
- data/vendor/assets/bower_components/marked/package.json +24 -0
- data/vendor/assets/bower_components/moment/CHANGELOG.md +423 -0
- data/vendor/assets/bower_components/moment/LICENSE +22 -0
- data/vendor/assets/bower_components/moment/Moment.js.nuspec +28 -0
- data/vendor/assets/bower_components/moment/README.md +39 -0
- data/vendor/assets/bower_components/moment/benchmarks/clone.js +10 -0
- data/vendor/assets/bower_components/moment/bower.json +20 -0
- data/vendor/assets/bower_components/moment/locale/af.js +71 -0
- data/vendor/assets/bower_components/moment/locale/ar-ma.js +57 -0
- data/vendor/assets/bower_components/moment/locale/ar-sa.js +101 -0
- data/vendor/assets/bower_components/moment/locale/ar-tn.js +55 -0
- data/vendor/assets/bower_components/moment/locale/ar.js +134 -0
- data/vendor/assets/bower_components/moment/locale/az.js +107 -0
- data/vendor/assets/bower_components/moment/locale/be.js +154 -0
- data/vendor/assets/bower_components/moment/locale/bg.js +88 -0
- data/vendor/assets/bower_components/moment/locale/bn.js +111 -0
- data/vendor/assets/bower_components/moment/locale/bo.js +108 -0
- data/vendor/assets/bower_components/moment/locale/br.js +109 -0
- data/vendor/assets/bower_components/moment/locale/bs.js +140 -0
- data/vendor/assets/bower_components/moment/locale/ca.js +77 -0
- data/vendor/assets/bower_components/moment/locale/cs.js +157 -0
- data/vendor/assets/bower_components/moment/locale/cv.js +61 -0
- data/vendor/assets/bower_components/moment/locale/cy.js +79 -0
- data/vendor/assets/bower_components/moment/locale/da.js +58 -0
- data/vendor/assets/bower_components/moment/locale/de-at.js +74 -0
- data/vendor/assets/bower_components/moment/locale/de.js +73 -0
- data/vendor/assets/bower_components/moment/locale/el.js +94 -0
- data/vendor/assets/bower_components/moment/locale/en-au.js +64 -0
- data/vendor/assets/bower_components/moment/locale/en-ca.js +61 -0
- data/vendor/assets/bower_components/moment/locale/en-gb.js +65 -0
- data/vendor/assets/bower_components/moment/locale/eo.js +71 -0
- data/vendor/assets/bower_components/moment/locale/es.js +77 -0
- data/vendor/assets/bower_components/moment/locale/et.js +78 -0
- data/vendor/assets/bower_components/moment/locale/eu.js +62 -0
- data/vendor/assets/bower_components/moment/locale/fa.js +103 -0
- data/vendor/assets/bower_components/moment/locale/fi.js +107 -0
- data/vendor/assets/bower_components/moment/locale/fo.js +58 -0
- data/vendor/assets/bower_components/moment/locale/fr-ca.js +56 -0
- data/vendor/assets/bower_components/moment/locale/fr.js +60 -0
- data/vendor/assets/bower_components/moment/locale/fy.js +69 -0
- data/vendor/assets/bower_components/moment/locale/gl.js +73 -0
- data/vendor/assets/bower_components/moment/locale/he.js +80 -0
- data/vendor/assets/bower_components/moment/locale/hi.js +121 -0
- data/vendor/assets/bower_components/moment/locale/hr.js +141 -0
- data/vendor/assets/bower_components/moment/locale/hu.js +111 -0
- data/vendor/assets/bower_components/moment/locale/hy-am.js +118 -0
- data/vendor/assets/bower_components/moment/locale/id.js +81 -0
- data/vendor/assets/bower_components/moment/locale/is.js +126 -0
- data/vendor/assets/bower_components/moment/locale/it.js +68 -0
- data/vendor/assets/bower_components/moment/locale/ja.js +63 -0
- data/vendor/assets/bower_components/moment/locale/ka.js +109 -0
- data/vendor/assets/bower_components/moment/locale/km.js +56 -0
- data/vendor/assets/bower_components/moment/locale/ko.js +65 -0
- data/vendor/assets/bower_components/moment/locale/lb.js +139 -0
- data/vendor/assets/bower_components/moment/locale/lt.js +120 -0
- data/vendor/assets/bower_components/moment/locale/lv.js +79 -0
- data/vendor/assets/bower_components/moment/locale/mk.js +88 -0
- data/vendor/assets/bower_components/moment/locale/ml.js +69 -0
- data/vendor/assets/bower_components/moment/locale/mr.js +120 -0
- data/vendor/assets/bower_components/moment/locale/ms-my.js +80 -0
- data/vendor/assets/bower_components/moment/locale/my.js +89 -0
- data/vendor/assets/bower_components/moment/locale/nb.js +59 -0
- data/vendor/assets/bower_components/moment/locale/ne.js +121 -0
- data/vendor/assets/bower_components/moment/locale/nl.js +69 -0
- data/vendor/assets/bower_components/moment/locale/nn.js +58 -0
- data/vendor/assets/bower_components/moment/locale/pl.js +100 -0
- data/vendor/assets/bower_components/moment/locale/pt-br.js +58 -0
- data/vendor/assets/bower_components/moment/locale/pt.js +62 -0
- data/vendor/assets/bower_components/moment/locale/ro.js +73 -0
- data/vendor/assets/bower_components/moment/locale/ru.js +176 -0
- data/vendor/assets/bower_components/moment/locale/sk.js +158 -0
- data/vendor/assets/bower_components/moment/locale/sl.js +146 -0
- data/vendor/assets/bower_components/moment/locale/sq.js +67 -0
- data/vendor/assets/bower_components/moment/locale/sr-cyrl.js +107 -0
- data/vendor/assets/bower_components/moment/locale/sr.js +107 -0
- data/vendor/assets/bower_components/moment/locale/sv.js +65 -0
- data/vendor/assets/bower_components/moment/locale/ta.js +130 -0
- data/vendor/assets/bower_components/moment/locale/th.js +63 -0
- data/vendor/assets/bower_components/moment/locale/tl-ph.js +60 -0
- data/vendor/assets/bower_components/moment/locale/tr.js +94 -0
- data/vendor/assets/bower_components/moment/locale/tzm-latn.js +56 -0
- data/vendor/assets/bower_components/moment/locale/tzm.js +56 -0
- data/vendor/assets/bower_components/moment/locale/uk.js +163 -0
- data/vendor/assets/bower_components/moment/locale/uz.js +56 -0
- data/vendor/assets/bower_components/moment/locale/vi.js +64 -0
- data/vendor/assets/bower_components/moment/locale/zh-cn.js +125 -0
- data/vendor/assets/bower_components/moment/locale/zh-tw.js +99 -0
- data/vendor/assets/bower_components/moment/meteor/README.md +25 -0
- data/vendor/assets/bower_components/moment/meteor/export.js +3 -0
- data/vendor/assets/bower_components/moment/meteor/test.js +5 -0
- data/vendor/assets/bower_components/moment/min/locales.js +7306 -0
- data/vendor/assets/bower_components/moment/min/locales.min.js +4 -0
- data/vendor/assets/bower_components/moment/min/moment-with-locales.js +9792 -0
- data/vendor/assets/bower_components/moment/min/moment-with-locales.min.js +10 -0
- data/vendor/assets/bower_components/moment/min/moment.min.js +7 -0
- data/vendor/assets/bower_components/moment/moment.js +3043 -0
- data/vendor/assets/bower_components/moment/scripts/npm_prepublish.sh +43 -0
- data/vendor/assets/bower_components/underscore/LICENSE +23 -0
- data/vendor/assets/bower_components/underscore/README.md +22 -0
- data/vendor/assets/bower_components/underscore/bower.json +7 -0
- data/vendor/assets/bower_components/underscore/underscore-min.js +6 -0
- data/vendor/assets/bower_components/underscore/underscore-min.map +1 -0
- data/vendor/assets/bower_components/underscore/underscore.js +1548 -0
- metadata +782 -0
@@ -0,0 +1,3 @@
|
|
1
|
+
/*! Sizzle v2.2.1 | (c) jQuery Foundation, Inc. | jquery.org/license */
|
2
|
+
!function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=R.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),"function"==typeof define&&define.amd?define(function(){return fa}):"undefined"!=typeof module&&module.exports?module.exports=fa:a.Sizzle=fa}(window);
|
3
|
+
//# sourceMappingURL=sizzle.min.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sizzle.min.js","sources":["sizzle.js"],"names":["window","i","support","Expr","getText","isXML","tokenize","compile","select","outermostContext","sortInput","hasDuplicate","setDocument","document","docElem","documentIsHTML","rbuggyQSA","rbuggyMatches","matches","contains","expando","Date","preferredDoc","dirruns","done","classCache","createCache","tokenCache","compilerCache","sortOrder","a","b","MAX_NEGATIVE","hasOwn","hasOwnProperty","arr","pop","push_native","push","slice","indexOf","list","elem","len","length","booleans","whitespace","identifier","attributes","pseudos","rwhitespace","RegExp","rtrim","rcomma","rcombinators","rattributeQuotes","rpseudo","ridentifier","matchExpr","ID","CLASS","TAG","ATTR","PSEUDO","CHILD","bool","needsContext","rinputs","rheader","rnative","rquickExpr","rsibling","rescape","runescape","funescape","_","escaped","escapedWhitespace","high","String","fromCharCode","unloadHandler","apply","call","childNodes","nodeType","e","target","els","j","Sizzle","selector","context","results","seed","m","nid","nidselect","match","groups","newSelector","newContext","ownerDocument","exec","getElementById","id","getElementsByTagName","getElementsByClassName","qsa","test","nodeName","toLowerCase","getAttribute","replace","setAttribute","toSelector","join","testContext","parentNode","querySelectorAll","qsaError","removeAttribute","keys","cache","key","value","cacheLength","shift","markFunction","fn","assert","div","createElement","removeChild","addHandle","attrs","handler","split","attrHandle","siblingCheck","cur","diff","sourceIndex","nextSibling","createInputPseudo","type","name","createButtonPseudo","createPositionalPseudo","argument","matchIndexes","documentElement","node","hasCompare","parent","doc","defaultView","top","addEventListener","attachEvent","className","appendChild","createComment","getById","getElementsByName","find","filter","attrId","getAttributeNode","tag","tmp","innerHTML","input","matchesSelector","webkitMatchesSelector","mozMatchesSelector","oMatchesSelector","msMatchesSelector","disconnectedMatch","compareDocumentPosition","adown","bup","compare","sortDetached","aup","ap","bp","unshift","expr","elements","ret","attr","val","undefined","specified","error","msg","Error","uniqueSort","duplicates","detectDuplicates","sortStable","sort","splice","textContent","firstChild","nodeValue","selectors","createPseudo","relative",">","dir","first"," ","+","~","preFilter","excess","unquoted","nodeNameSelector","pattern","operator","check","result","what","last","simple","forward","ofType","xml","uniqueCache","outerCache","nodeIndex","start","useCache","lastChild","uniqueID","pseudo","args","setFilters","idx","matched","not","matcher","unmatched","has","text","innerText","lang","elemLang","hash","location","root","focus","activeElement","hasFocus","href","tabIndex","enabled","disabled","checked","selected","selectedIndex","empty","header","button","eq","even","odd","lt","gt","radio","checkbox","file","password","image","submit","reset","prototype","filters","parseOnly","tokens","soFar","preFilters","cached","addCombinator","combinator","base","checkNonElements","doneName","oldCache","newCache","elementMatcher","matchers","multipleContexts","contexts","condense","map","newUnmatched","mapped","setMatcher","postFilter","postFinder","postSelector","temp","preMap","postMap","preexisting","elems","matcherIn","matcherOut","matcherFromTokens","checkContext","leadingRelative","implicitRelative","matchContext","matchAnyContext","concat","matcherFromGroupMatchers","elementMatchers","setMatchers","bySet","byElement","superMatcher","outermost","matchedCount","setMatched","contextBackup","dirrunsUnique","Math","random","token","compiled","div1","defaultValue","define","amd","module","exports"],"mappings":";CAUA,SAAWA,GAEX,GAAIC,GACHC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAGAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAGAC,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AAekF,GAAO,SAAUC,GAG7C,MAFAA,GAAIwC,UAAY,WAChBxC,EAAI0E,WAAW3F,aAAc,QAAS,IACY,KAA3CiB,EAAI0E,WAAW7F,aAAc,YAEpCsB,GAAW,QAAS,SAAU5F,EAAMwG,EAAM7I,GACzC,MAAMA,IAAyC,UAAhCqC,EAAKoE,SAASC,cAA7B,OACQrE,EAAKoS,eAOT5M,GAAO,SAAUC,GACtB,MAAuC,OAAhCA,EAAInB,aAAa,eAExBsB,GAAWzF,EAAU,SAAUH,EAAMwG,EAAM7I,GAC1C,GAAI2L,EACJ,OAAM3L,GAAN,OACQqC,EAAMwG,MAAW,EAAOA,EAAKnC,eACjCiF,EAAMtJ,EAAK8H,iBAAkBtB,KAAW8C,EAAIE,UAC7CF,EAAInE,MACL,OAMmB,kBAAXkN,SAAyBA,OAAOC,IAC3CD,OAAO,WAAa,MAAOrP,MAEE,mBAAXuP,SAA0BA,OAAOC,QACnDD,OAAOC,QAAUxP,GAEjB1F,EAAO0F,OAASA,IAIb1F"}
|
@@ -0,0 +1,845 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"./var/document",
|
4
|
+
"./var/rnotwhite",
|
5
|
+
"./ajax/var/location",
|
6
|
+
"./ajax/var/nonce",
|
7
|
+
"./ajax/var/rquery",
|
8
|
+
|
9
|
+
"./core/init",
|
10
|
+
"./ajax/parseJSON",
|
11
|
+
"./ajax/parseXML",
|
12
|
+
"./event/trigger",
|
13
|
+
"./deferred"
|
14
|
+
], function( jQuery, document, rnotwhite, location, nonce, rquery ) {
|
15
|
+
|
16
|
+
var
|
17
|
+
rhash = /#.*$/,
|
18
|
+
rts = /([?&])_=[^&]*/,
|
19
|
+
rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
|
20
|
+
|
21
|
+
// #7653, #8125, #8152: local protocol detection
|
22
|
+
rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
|
23
|
+
rnoContent = /^(?:GET|HEAD)$/,
|
24
|
+
rprotocol = /^\/\//,
|
25
|
+
|
26
|
+
/* Prefilters
|
27
|
+
* 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
|
28
|
+
* 2) These are called:
|
29
|
+
* - BEFORE asking for a transport
|
30
|
+
* - AFTER param serialization (s.data is a string if s.processData is true)
|
31
|
+
* 3) key is the dataType
|
32
|
+
* 4) the catchall symbol "*" can be used
|
33
|
+
* 5) execution will start with transport dataType and THEN continue down to "*" if needed
|
34
|
+
*/
|
35
|
+
prefilters = {},
|
36
|
+
|
37
|
+
/* Transports bindings
|
38
|
+
* 1) key is the dataType
|
39
|
+
* 2) the catchall symbol "*" can be used
|
40
|
+
* 3) selection will start with transport dataType and THEN go to "*" if needed
|
41
|
+
*/
|
42
|
+
transports = {},
|
43
|
+
|
44
|
+
// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
|
45
|
+
allTypes = "*/".concat( "*" ),
|
46
|
+
|
47
|
+
// Anchor tag for parsing the document origin
|
48
|
+
originAnchor = document.createElement( "a" );
|
49
|
+
originAnchor.href = location.href;
|
50
|
+
|
51
|
+
// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
|
52
|
+
function addToPrefiltersOrTransports( structure ) {
|
53
|
+
|
54
|
+
// dataTypeExpression is optional and defaults to "*"
|
55
|
+
return function( dataTypeExpression, func ) {
|
56
|
+
|
57
|
+
if ( typeof dataTypeExpression !== "string" ) {
|
58
|
+
func = dataTypeExpression;
|
59
|
+
dataTypeExpression = "*";
|
60
|
+
}
|
61
|
+
|
62
|
+
var dataType,
|
63
|
+
i = 0,
|
64
|
+
dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
|
65
|
+
|
66
|
+
if ( jQuery.isFunction( func ) ) {
|
67
|
+
|
68
|
+
// For each dataType in the dataTypeExpression
|
69
|
+
while ( ( dataType = dataTypes[ i++ ] ) ) {
|
70
|
+
|
71
|
+
// Prepend if requested
|
72
|
+
if ( dataType[ 0 ] === "+" ) {
|
73
|
+
dataType = dataType.slice( 1 ) || "*";
|
74
|
+
( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
|
75
|
+
|
76
|
+
// Otherwise append
|
77
|
+
} else {
|
78
|
+
( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
};
|
83
|
+
}
|
84
|
+
|
85
|
+
// Base inspection function for prefilters and transports
|
86
|
+
function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
|
87
|
+
|
88
|
+
var inspected = {},
|
89
|
+
seekingTransport = ( structure === transports );
|
90
|
+
|
91
|
+
function inspect( dataType ) {
|
92
|
+
var selected;
|
93
|
+
inspected[ dataType ] = true;
|
94
|
+
jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
|
95
|
+
var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
|
96
|
+
if ( typeof dataTypeOrTransport === "string" &&
|
97
|
+
!seekingTransport && !inspected[ dataTypeOrTransport ] ) {
|
98
|
+
|
99
|
+
options.dataTypes.unshift( dataTypeOrTransport );
|
100
|
+
inspect( dataTypeOrTransport );
|
101
|
+
return false;
|
102
|
+
} else if ( seekingTransport ) {
|
103
|
+
return !( selected = dataTypeOrTransport );
|
104
|
+
}
|
105
|
+
} );
|
106
|
+
return selected;
|
107
|
+
}
|
108
|
+
|
109
|
+
return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
|
110
|
+
}
|
111
|
+
|
112
|
+
// A special extend for ajax options
|
113
|
+
// that takes "flat" options (not to be deep extended)
|
114
|
+
// Fixes #9887
|
115
|
+
function ajaxExtend( target, src ) {
|
116
|
+
var key, deep,
|
117
|
+
flatOptions = jQuery.ajaxSettings.flatOptions || {};
|
118
|
+
|
119
|
+
for ( key in src ) {
|
120
|
+
if ( src[ key ] !== undefined ) {
|
121
|
+
( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
|
122
|
+
}
|
123
|
+
}
|
124
|
+
if ( deep ) {
|
125
|
+
jQuery.extend( true, target, deep );
|
126
|
+
}
|
127
|
+
|
128
|
+
return target;
|
129
|
+
}
|
130
|
+
|
131
|
+
/* Handles responses to an ajax request:
|
132
|
+
* - finds the right dataType (mediates between content-type and expected dataType)
|
133
|
+
* - returns the corresponding response
|
134
|
+
*/
|
135
|
+
function ajaxHandleResponses( s, jqXHR, responses ) {
|
136
|
+
|
137
|
+
var ct, type, finalDataType, firstDataType,
|
138
|
+
contents = s.contents,
|
139
|
+
dataTypes = s.dataTypes;
|
140
|
+
|
141
|
+
// Remove auto dataType and get content-type in the process
|
142
|
+
while ( dataTypes[ 0 ] === "*" ) {
|
143
|
+
dataTypes.shift();
|
144
|
+
if ( ct === undefined ) {
|
145
|
+
ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
// Check if we're dealing with a known content-type
|
150
|
+
if ( ct ) {
|
151
|
+
for ( type in contents ) {
|
152
|
+
if ( contents[ type ] && contents[ type ].test( ct ) ) {
|
153
|
+
dataTypes.unshift( type );
|
154
|
+
break;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
// Check to see if we have a response for the expected dataType
|
160
|
+
if ( dataTypes[ 0 ] in responses ) {
|
161
|
+
finalDataType = dataTypes[ 0 ];
|
162
|
+
} else {
|
163
|
+
|
164
|
+
// Try convertible dataTypes
|
165
|
+
for ( type in responses ) {
|
166
|
+
if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
|
167
|
+
finalDataType = type;
|
168
|
+
break;
|
169
|
+
}
|
170
|
+
if ( !firstDataType ) {
|
171
|
+
firstDataType = type;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
// Or just use first one
|
176
|
+
finalDataType = finalDataType || firstDataType;
|
177
|
+
}
|
178
|
+
|
179
|
+
// If we found a dataType
|
180
|
+
// We add the dataType to the list if needed
|
181
|
+
// and return the corresponding response
|
182
|
+
if ( finalDataType ) {
|
183
|
+
if ( finalDataType !== dataTypes[ 0 ] ) {
|
184
|
+
dataTypes.unshift( finalDataType );
|
185
|
+
}
|
186
|
+
return responses[ finalDataType ];
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
/* Chain conversions given the request and the original response
|
191
|
+
* Also sets the responseXXX fields on the jqXHR instance
|
192
|
+
*/
|
193
|
+
function ajaxConvert( s, response, jqXHR, isSuccess ) {
|
194
|
+
var conv2, current, conv, tmp, prev,
|
195
|
+
converters = {},
|
196
|
+
|
197
|
+
// Work with a copy of dataTypes in case we need to modify it for conversion
|
198
|
+
dataTypes = s.dataTypes.slice();
|
199
|
+
|
200
|
+
// Create converters map with lowercased keys
|
201
|
+
if ( dataTypes[ 1 ] ) {
|
202
|
+
for ( conv in s.converters ) {
|
203
|
+
converters[ conv.toLowerCase() ] = s.converters[ conv ];
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
current = dataTypes.shift();
|
208
|
+
|
209
|
+
// Convert to each sequential dataType
|
210
|
+
while ( current ) {
|
211
|
+
|
212
|
+
if ( s.responseFields[ current ] ) {
|
213
|
+
jqXHR[ s.responseFields[ current ] ] = response;
|
214
|
+
}
|
215
|
+
|
216
|
+
// Apply the dataFilter if provided
|
217
|
+
if ( !prev && isSuccess && s.dataFilter ) {
|
218
|
+
response = s.dataFilter( response, s.dataType );
|
219
|
+
}
|
220
|
+
|
221
|
+
prev = current;
|
222
|
+
current = dataTypes.shift();
|
223
|
+
|
224
|
+
if ( current ) {
|
225
|
+
|
226
|
+
// There's only work to do if current dataType is non-auto
|
227
|
+
if ( current === "*" ) {
|
228
|
+
|
229
|
+
current = prev;
|
230
|
+
|
231
|
+
// Convert response if prev dataType is non-auto and differs from current
|
232
|
+
} else if ( prev !== "*" && prev !== current ) {
|
233
|
+
|
234
|
+
// Seek a direct converter
|
235
|
+
conv = converters[ prev + " " + current ] || converters[ "* " + current ];
|
236
|
+
|
237
|
+
// If none found, seek a pair
|
238
|
+
if ( !conv ) {
|
239
|
+
for ( conv2 in converters ) {
|
240
|
+
|
241
|
+
// If conv2 outputs current
|
242
|
+
tmp = conv2.split( " " );
|
243
|
+
if ( tmp[ 1 ] === current ) {
|
244
|
+
|
245
|
+
// If prev can be converted to accepted input
|
246
|
+
conv = converters[ prev + " " + tmp[ 0 ] ] ||
|
247
|
+
converters[ "* " + tmp[ 0 ] ];
|
248
|
+
if ( conv ) {
|
249
|
+
|
250
|
+
// Condense equivalence converters
|
251
|
+
if ( conv === true ) {
|
252
|
+
conv = converters[ conv2 ];
|
253
|
+
|
254
|
+
// Otherwise, insert the intermediate dataType
|
255
|
+
} else if ( converters[ conv2 ] !== true ) {
|
256
|
+
current = tmp[ 0 ];
|
257
|
+
dataTypes.unshift( tmp[ 1 ] );
|
258
|
+
}
|
259
|
+
break;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
|
265
|
+
// Apply converter (if not an equivalence)
|
266
|
+
if ( conv !== true ) {
|
267
|
+
|
268
|
+
// Unless errors are allowed to bubble, catch and return them
|
269
|
+
if ( conv && s.throws ) {
|
270
|
+
response = conv( response );
|
271
|
+
} else {
|
272
|
+
try {
|
273
|
+
response = conv( response );
|
274
|
+
} catch ( e ) {
|
275
|
+
return {
|
276
|
+
state: "parsererror",
|
277
|
+
error: conv ? e : "No conversion from " + prev + " to " + current
|
278
|
+
};
|
279
|
+
}
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
return { state: "success", data: response };
|
287
|
+
}
|
288
|
+
|
289
|
+
jQuery.extend( {
|
290
|
+
|
291
|
+
// Counter for holding the number of active queries
|
292
|
+
active: 0,
|
293
|
+
|
294
|
+
// Last-Modified header cache for next request
|
295
|
+
lastModified: {},
|
296
|
+
etag: {},
|
297
|
+
|
298
|
+
ajaxSettings: {
|
299
|
+
url: location.href,
|
300
|
+
type: "GET",
|
301
|
+
isLocal: rlocalProtocol.test( location.protocol ),
|
302
|
+
global: true,
|
303
|
+
processData: true,
|
304
|
+
async: true,
|
305
|
+
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
306
|
+
/*
|
307
|
+
timeout: 0,
|
308
|
+
data: null,
|
309
|
+
dataType: null,
|
310
|
+
username: null,
|
311
|
+
password: null,
|
312
|
+
cache: null,
|
313
|
+
throws: false,
|
314
|
+
traditional: false,
|
315
|
+
headers: {},
|
316
|
+
*/
|
317
|
+
|
318
|
+
accepts: {
|
319
|
+
"*": allTypes,
|
320
|
+
text: "text/plain",
|
321
|
+
html: "text/html",
|
322
|
+
xml: "application/xml, text/xml",
|
323
|
+
json: "application/json, text/javascript"
|
324
|
+
},
|
325
|
+
|
326
|
+
contents: {
|
327
|
+
xml: /\bxml\b/,
|
328
|
+
html: /\bhtml/,
|
329
|
+
json: /\bjson\b/
|
330
|
+
},
|
331
|
+
|
332
|
+
responseFields: {
|
333
|
+
xml: "responseXML",
|
334
|
+
text: "responseText",
|
335
|
+
json: "responseJSON"
|
336
|
+
},
|
337
|
+
|
338
|
+
// Data converters
|
339
|
+
// Keys separate source (or catchall "*") and destination types with a single space
|
340
|
+
converters: {
|
341
|
+
|
342
|
+
// Convert anything to text
|
343
|
+
"* text": String,
|
344
|
+
|
345
|
+
// Text to html (true = no transformation)
|
346
|
+
"text html": true,
|
347
|
+
|
348
|
+
// Evaluate text as a json expression
|
349
|
+
"text json": jQuery.parseJSON,
|
350
|
+
|
351
|
+
// Parse text as xml
|
352
|
+
"text xml": jQuery.parseXML
|
353
|
+
},
|
354
|
+
|
355
|
+
// For options that shouldn't be deep extended:
|
356
|
+
// you can add your own custom options here if
|
357
|
+
// and when you create one that shouldn't be
|
358
|
+
// deep extended (see ajaxExtend)
|
359
|
+
flatOptions: {
|
360
|
+
url: true,
|
361
|
+
context: true
|
362
|
+
}
|
363
|
+
},
|
364
|
+
|
365
|
+
// Creates a full fledged settings object into target
|
366
|
+
// with both ajaxSettings and settings fields.
|
367
|
+
// If target is omitted, writes into ajaxSettings.
|
368
|
+
ajaxSetup: function( target, settings ) {
|
369
|
+
return settings ?
|
370
|
+
|
371
|
+
// Building a settings object
|
372
|
+
ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
|
373
|
+
|
374
|
+
// Extending ajaxSettings
|
375
|
+
ajaxExtend( jQuery.ajaxSettings, target );
|
376
|
+
},
|
377
|
+
|
378
|
+
ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
|
379
|
+
ajaxTransport: addToPrefiltersOrTransports( transports ),
|
380
|
+
|
381
|
+
// Main method
|
382
|
+
ajax: function( url, options ) {
|
383
|
+
|
384
|
+
// If url is an object, simulate pre-1.5 signature
|
385
|
+
if ( typeof url === "object" ) {
|
386
|
+
options = url;
|
387
|
+
url = undefined;
|
388
|
+
}
|
389
|
+
|
390
|
+
// Force options to be an object
|
391
|
+
options = options || {};
|
392
|
+
|
393
|
+
var transport,
|
394
|
+
|
395
|
+
// URL without anti-cache param
|
396
|
+
cacheURL,
|
397
|
+
|
398
|
+
// Response headers
|
399
|
+
responseHeadersString,
|
400
|
+
responseHeaders,
|
401
|
+
|
402
|
+
// timeout handle
|
403
|
+
timeoutTimer,
|
404
|
+
|
405
|
+
// Url cleanup var
|
406
|
+
urlAnchor,
|
407
|
+
|
408
|
+
// To know if global events are to be dispatched
|
409
|
+
fireGlobals,
|
410
|
+
|
411
|
+
// Loop variable
|
412
|
+
i,
|
413
|
+
|
414
|
+
// Create the final options object
|
415
|
+
s = jQuery.ajaxSetup( {}, options ),
|
416
|
+
|
417
|
+
// Callbacks context
|
418
|
+
callbackContext = s.context || s,
|
419
|
+
|
420
|
+
// Context for global events is callbackContext if it is a DOM node or jQuery collection
|
421
|
+
globalEventContext = s.context &&
|
422
|
+
( callbackContext.nodeType || callbackContext.jquery ) ?
|
423
|
+
jQuery( callbackContext ) :
|
424
|
+
jQuery.event,
|
425
|
+
|
426
|
+
// Deferreds
|
427
|
+
deferred = jQuery.Deferred(),
|
428
|
+
completeDeferred = jQuery.Callbacks( "once memory" ),
|
429
|
+
|
430
|
+
// Status-dependent callbacks
|
431
|
+
statusCode = s.statusCode || {},
|
432
|
+
|
433
|
+
// Headers (they are sent all at once)
|
434
|
+
requestHeaders = {},
|
435
|
+
requestHeadersNames = {},
|
436
|
+
|
437
|
+
// The jqXHR state
|
438
|
+
state = 0,
|
439
|
+
|
440
|
+
// Default abort message
|
441
|
+
strAbort = "canceled",
|
442
|
+
|
443
|
+
// Fake xhr
|
444
|
+
jqXHR = {
|
445
|
+
readyState: 0,
|
446
|
+
|
447
|
+
// Builds headers hashtable if needed
|
448
|
+
getResponseHeader: function( key ) {
|
449
|
+
var match;
|
450
|
+
if ( state === 2 ) {
|
451
|
+
if ( !responseHeaders ) {
|
452
|
+
responseHeaders = {};
|
453
|
+
while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
|
454
|
+
responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
|
455
|
+
}
|
456
|
+
}
|
457
|
+
match = responseHeaders[ key.toLowerCase() ];
|
458
|
+
}
|
459
|
+
return match == null ? null : match;
|
460
|
+
},
|
461
|
+
|
462
|
+
// Raw string
|
463
|
+
getAllResponseHeaders: function() {
|
464
|
+
return state === 2 ? responseHeadersString : null;
|
465
|
+
},
|
466
|
+
|
467
|
+
// Caches the header
|
468
|
+
setRequestHeader: function( name, value ) {
|
469
|
+
var lname = name.toLowerCase();
|
470
|
+
if ( !state ) {
|
471
|
+
name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
|
472
|
+
requestHeaders[ name ] = value;
|
473
|
+
}
|
474
|
+
return this;
|
475
|
+
},
|
476
|
+
|
477
|
+
// Overrides response content-type header
|
478
|
+
overrideMimeType: function( type ) {
|
479
|
+
if ( !state ) {
|
480
|
+
s.mimeType = type;
|
481
|
+
}
|
482
|
+
return this;
|
483
|
+
},
|
484
|
+
|
485
|
+
// Status-dependent callbacks
|
486
|
+
statusCode: function( map ) {
|
487
|
+
var code;
|
488
|
+
if ( map ) {
|
489
|
+
if ( state < 2 ) {
|
490
|
+
for ( code in map ) {
|
491
|
+
|
492
|
+
// Lazy-add the new callback in a way that preserves old ones
|
493
|
+
statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
|
494
|
+
}
|
495
|
+
} else {
|
496
|
+
|
497
|
+
// Execute the appropriate callbacks
|
498
|
+
jqXHR.always( map[ jqXHR.status ] );
|
499
|
+
}
|
500
|
+
}
|
501
|
+
return this;
|
502
|
+
},
|
503
|
+
|
504
|
+
// Cancel the request
|
505
|
+
abort: function( statusText ) {
|
506
|
+
var finalText = statusText || strAbort;
|
507
|
+
if ( transport ) {
|
508
|
+
transport.abort( finalText );
|
509
|
+
}
|
510
|
+
done( 0, finalText );
|
511
|
+
return this;
|
512
|
+
}
|
513
|
+
};
|
514
|
+
|
515
|
+
// Attach deferreds
|
516
|
+
deferred.promise( jqXHR ).complete = completeDeferred.add;
|
517
|
+
jqXHR.success = jqXHR.done;
|
518
|
+
jqXHR.error = jqXHR.fail;
|
519
|
+
|
520
|
+
// Remove hash character (#7531: and string promotion)
|
521
|
+
// Add protocol if not provided (prefilters might expect it)
|
522
|
+
// Handle falsy url in the settings object (#10093: consistency with old signature)
|
523
|
+
// We also use the url parameter if available
|
524
|
+
s.url = ( ( url || s.url || location.href ) + "" ).replace( rhash, "" )
|
525
|
+
.replace( rprotocol, location.protocol + "//" );
|
526
|
+
|
527
|
+
// Alias method option to type as per ticket #12004
|
528
|
+
s.type = options.method || options.type || s.method || s.type;
|
529
|
+
|
530
|
+
// Extract dataTypes list
|
531
|
+
s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
|
532
|
+
|
533
|
+
// A cross-domain request is in order when the origin doesn't match the current origin.
|
534
|
+
if ( s.crossDomain == null ) {
|
535
|
+
urlAnchor = document.createElement( "a" );
|
536
|
+
|
537
|
+
// Support: IE8-11+
|
538
|
+
// IE throws exception if url is malformed, e.g. http://example.com:80x/
|
539
|
+
try {
|
540
|
+
urlAnchor.href = s.url;
|
541
|
+
|
542
|
+
// Support: IE8-11+
|
543
|
+
// Anchor's host property isn't correctly set when s.url is relative
|
544
|
+
urlAnchor.href = urlAnchor.href;
|
545
|
+
s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
|
546
|
+
urlAnchor.protocol + "//" + urlAnchor.host;
|
547
|
+
} catch ( e ) {
|
548
|
+
|
549
|
+
// If there is an error parsing the URL, assume it is crossDomain,
|
550
|
+
// it can be rejected by the transport if it is invalid
|
551
|
+
s.crossDomain = true;
|
552
|
+
}
|
553
|
+
}
|
554
|
+
|
555
|
+
// Convert data if not already a string
|
556
|
+
if ( s.data && s.processData && typeof s.data !== "string" ) {
|
557
|
+
s.data = jQuery.param( s.data, s.traditional );
|
558
|
+
}
|
559
|
+
|
560
|
+
// Apply prefilters
|
561
|
+
inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
|
562
|
+
|
563
|
+
// If request was aborted inside a prefilter, stop there
|
564
|
+
if ( state === 2 ) {
|
565
|
+
return jqXHR;
|
566
|
+
}
|
567
|
+
|
568
|
+
// We can fire global events as of now if asked to
|
569
|
+
// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
|
570
|
+
fireGlobals = jQuery.event && s.global;
|
571
|
+
|
572
|
+
// Watch for a new set of requests
|
573
|
+
if ( fireGlobals && jQuery.active++ === 0 ) {
|
574
|
+
jQuery.event.trigger( "ajaxStart" );
|
575
|
+
}
|
576
|
+
|
577
|
+
// Uppercase the type
|
578
|
+
s.type = s.type.toUpperCase();
|
579
|
+
|
580
|
+
// Determine if request has content
|
581
|
+
s.hasContent = !rnoContent.test( s.type );
|
582
|
+
|
583
|
+
// Save the URL in case we're toying with the If-Modified-Since
|
584
|
+
// and/or If-None-Match header later on
|
585
|
+
cacheURL = s.url;
|
586
|
+
|
587
|
+
// More options handling for requests with no content
|
588
|
+
if ( !s.hasContent ) {
|
589
|
+
|
590
|
+
// If data is available, append data to url
|
591
|
+
if ( s.data ) {
|
592
|
+
cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
|
593
|
+
|
594
|
+
// #9682: remove data so that it's not used in an eventual retry
|
595
|
+
delete s.data;
|
596
|
+
}
|
597
|
+
|
598
|
+
// Add anti-cache in url if needed
|
599
|
+
if ( s.cache === false ) {
|
600
|
+
s.url = rts.test( cacheURL ) ?
|
601
|
+
|
602
|
+
// If there is already a '_' parameter, set its value
|
603
|
+
cacheURL.replace( rts, "$1_=" + nonce++ ) :
|
604
|
+
|
605
|
+
// Otherwise add one to the end
|
606
|
+
cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
|
607
|
+
}
|
608
|
+
}
|
609
|
+
|
610
|
+
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
|
611
|
+
if ( s.ifModified ) {
|
612
|
+
if ( jQuery.lastModified[ cacheURL ] ) {
|
613
|
+
jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
|
614
|
+
}
|
615
|
+
if ( jQuery.etag[ cacheURL ] ) {
|
616
|
+
jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
|
617
|
+
}
|
618
|
+
}
|
619
|
+
|
620
|
+
// Set the correct header, if data is being sent
|
621
|
+
if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
|
622
|
+
jqXHR.setRequestHeader( "Content-Type", s.contentType );
|
623
|
+
}
|
624
|
+
|
625
|
+
// Set the Accepts header for the server, depending on the dataType
|
626
|
+
jqXHR.setRequestHeader(
|
627
|
+
"Accept",
|
628
|
+
s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
|
629
|
+
s.accepts[ s.dataTypes[ 0 ] ] +
|
630
|
+
( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
|
631
|
+
s.accepts[ "*" ]
|
632
|
+
);
|
633
|
+
|
634
|
+
// Check for headers option
|
635
|
+
for ( i in s.headers ) {
|
636
|
+
jqXHR.setRequestHeader( i, s.headers[ i ] );
|
637
|
+
}
|
638
|
+
|
639
|
+
// Allow custom headers/mimetypes and early abort
|
640
|
+
if ( s.beforeSend &&
|
641
|
+
( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
|
642
|
+
|
643
|
+
// Abort if not done already and return
|
644
|
+
return jqXHR.abort();
|
645
|
+
}
|
646
|
+
|
647
|
+
// Aborting is no longer a cancellation
|
648
|
+
strAbort = "abort";
|
649
|
+
|
650
|
+
// Install callbacks on deferreds
|
651
|
+
for ( i in { success: 1, error: 1, complete: 1 } ) {
|
652
|
+
jqXHR[ i ]( s[ i ] );
|
653
|
+
}
|
654
|
+
|
655
|
+
// Get transport
|
656
|
+
transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
|
657
|
+
|
658
|
+
// If no transport, we auto-abort
|
659
|
+
if ( !transport ) {
|
660
|
+
done( -1, "No Transport" );
|
661
|
+
} else {
|
662
|
+
jqXHR.readyState = 1;
|
663
|
+
|
664
|
+
// Send global event
|
665
|
+
if ( fireGlobals ) {
|
666
|
+
globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
|
667
|
+
}
|
668
|
+
|
669
|
+
// If request was aborted inside ajaxSend, stop there
|
670
|
+
if ( state === 2 ) {
|
671
|
+
return jqXHR;
|
672
|
+
}
|
673
|
+
|
674
|
+
// Timeout
|
675
|
+
if ( s.async && s.timeout > 0 ) {
|
676
|
+
timeoutTimer = window.setTimeout( function() {
|
677
|
+
jqXHR.abort( "timeout" );
|
678
|
+
}, s.timeout );
|
679
|
+
}
|
680
|
+
|
681
|
+
try {
|
682
|
+
state = 1;
|
683
|
+
transport.send( requestHeaders, done );
|
684
|
+
} catch ( e ) {
|
685
|
+
|
686
|
+
// Propagate exception as error if not done
|
687
|
+
if ( state < 2 ) {
|
688
|
+
done( -1, e );
|
689
|
+
|
690
|
+
// Simply rethrow otherwise
|
691
|
+
} else {
|
692
|
+
throw e;
|
693
|
+
}
|
694
|
+
}
|
695
|
+
}
|
696
|
+
|
697
|
+
// Callback for when everything is done
|
698
|
+
function done( status, nativeStatusText, responses, headers ) {
|
699
|
+
var isSuccess, success, error, response, modified,
|
700
|
+
statusText = nativeStatusText;
|
701
|
+
|
702
|
+
// Called once
|
703
|
+
if ( state === 2 ) {
|
704
|
+
return;
|
705
|
+
}
|
706
|
+
|
707
|
+
// State is "done" now
|
708
|
+
state = 2;
|
709
|
+
|
710
|
+
// Clear timeout if it exists
|
711
|
+
if ( timeoutTimer ) {
|
712
|
+
window.clearTimeout( timeoutTimer );
|
713
|
+
}
|
714
|
+
|
715
|
+
// Dereference transport for early garbage collection
|
716
|
+
// (no matter how long the jqXHR object will be used)
|
717
|
+
transport = undefined;
|
718
|
+
|
719
|
+
// Cache response headers
|
720
|
+
responseHeadersString = headers || "";
|
721
|
+
|
722
|
+
// Set readyState
|
723
|
+
jqXHR.readyState = status > 0 ? 4 : 0;
|
724
|
+
|
725
|
+
// Determine if successful
|
726
|
+
isSuccess = status >= 200 && status < 300 || status === 304;
|
727
|
+
|
728
|
+
// Get response data
|
729
|
+
if ( responses ) {
|
730
|
+
response = ajaxHandleResponses( s, jqXHR, responses );
|
731
|
+
}
|
732
|
+
|
733
|
+
// Convert no matter what (that way responseXXX fields are always set)
|
734
|
+
response = ajaxConvert( s, response, jqXHR, isSuccess );
|
735
|
+
|
736
|
+
// If successful, handle type chaining
|
737
|
+
if ( isSuccess ) {
|
738
|
+
|
739
|
+
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
|
740
|
+
if ( s.ifModified ) {
|
741
|
+
modified = jqXHR.getResponseHeader( "Last-Modified" );
|
742
|
+
if ( modified ) {
|
743
|
+
jQuery.lastModified[ cacheURL ] = modified;
|
744
|
+
}
|
745
|
+
modified = jqXHR.getResponseHeader( "etag" );
|
746
|
+
if ( modified ) {
|
747
|
+
jQuery.etag[ cacheURL ] = modified;
|
748
|
+
}
|
749
|
+
}
|
750
|
+
|
751
|
+
// if no content
|
752
|
+
if ( status === 204 || s.type === "HEAD" ) {
|
753
|
+
statusText = "nocontent";
|
754
|
+
|
755
|
+
// if not modified
|
756
|
+
} else if ( status === 304 ) {
|
757
|
+
statusText = "notmodified";
|
758
|
+
|
759
|
+
// If we have data, let's convert it
|
760
|
+
} else {
|
761
|
+
statusText = response.state;
|
762
|
+
success = response.data;
|
763
|
+
error = response.error;
|
764
|
+
isSuccess = !error;
|
765
|
+
}
|
766
|
+
} else {
|
767
|
+
|
768
|
+
// Extract error from statusText and normalize for non-aborts
|
769
|
+
error = statusText;
|
770
|
+
if ( status || !statusText ) {
|
771
|
+
statusText = "error";
|
772
|
+
if ( status < 0 ) {
|
773
|
+
status = 0;
|
774
|
+
}
|
775
|
+
}
|
776
|
+
}
|
777
|
+
|
778
|
+
// Set data for the fake xhr object
|
779
|
+
jqXHR.status = status;
|
780
|
+
jqXHR.statusText = ( nativeStatusText || statusText ) + "";
|
781
|
+
|
782
|
+
// Success/Error
|
783
|
+
if ( isSuccess ) {
|
784
|
+
deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
|
785
|
+
} else {
|
786
|
+
deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
|
787
|
+
}
|
788
|
+
|
789
|
+
// Status-dependent callbacks
|
790
|
+
jqXHR.statusCode( statusCode );
|
791
|
+
statusCode = undefined;
|
792
|
+
|
793
|
+
if ( fireGlobals ) {
|
794
|
+
globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
|
795
|
+
[ jqXHR, s, isSuccess ? success : error ] );
|
796
|
+
}
|
797
|
+
|
798
|
+
// Complete
|
799
|
+
completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
|
800
|
+
|
801
|
+
if ( fireGlobals ) {
|
802
|
+
globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
|
803
|
+
|
804
|
+
// Handle the global AJAX counter
|
805
|
+
if ( !( --jQuery.active ) ) {
|
806
|
+
jQuery.event.trigger( "ajaxStop" );
|
807
|
+
}
|
808
|
+
}
|
809
|
+
}
|
810
|
+
|
811
|
+
return jqXHR;
|
812
|
+
},
|
813
|
+
|
814
|
+
getJSON: function( url, data, callback ) {
|
815
|
+
return jQuery.get( url, data, callback, "json" );
|
816
|
+
},
|
817
|
+
|
818
|
+
getScript: function( url, callback ) {
|
819
|
+
return jQuery.get( url, undefined, callback, "script" );
|
820
|
+
}
|
821
|
+
} );
|
822
|
+
|
823
|
+
jQuery.each( [ "get", "post" ], function( i, method ) {
|
824
|
+
jQuery[ method ] = function( url, data, callback, type ) {
|
825
|
+
|
826
|
+
// Shift arguments if data argument was omitted
|
827
|
+
if ( jQuery.isFunction( data ) ) {
|
828
|
+
type = type || callback;
|
829
|
+
callback = data;
|
830
|
+
data = undefined;
|
831
|
+
}
|
832
|
+
|
833
|
+
// The url can be an options object (which then must have .url)
|
834
|
+
return jQuery.ajax( jQuery.extend( {
|
835
|
+
url: url,
|
836
|
+
type: method,
|
837
|
+
dataType: type,
|
838
|
+
data: data,
|
839
|
+
success: callback
|
840
|
+
}, jQuery.isPlainObject( url ) && url ) );
|
841
|
+
};
|
842
|
+
} );
|
843
|
+
|
844
|
+
return jQuery;
|
845
|
+
} );
|