iqvoc 4.8.1 → 4.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +9 -15
- data/app/assets/javascripts/framework.js +10 -10
- data/app/assets/javascripts/iqvoc/iqvoc.js +3 -3
- data/app/assets/javascripts/iqvoc/langselect.js +1 -1
- data/app/assets/stylesheets/_framework.scss +4 -4
- data/app/assets/stylesheets/iqvoc/components/_components.scss +6 -4
- data/app/assets/stylesheets/iqvoc/components/_entity_select.scss +1 -1
- data/app/assets/stylesheets/iqvoc/components/_notes.scss +1 -1
- data/app/assets/stylesheets/iqvoc/mixins/_mixins.scss +6 -2
- data/app/assets/stylesheets/iqvoc/settings/_bootstrap.scss +6 -7
- data/app/models/ability.rb +11 -2
- data/app/models/user.rb +4 -0
- data/app/views/collections/show_unpublished.html.erb +17 -14
- data/app/views/concepts/show_unpublished.html.erb +14 -11
- data/app/views/dashboard/index.html.erb +3 -3
- data/app/views/layouts/_controls.html.erb +3 -1
- data/app/views/layouts/application.html.erb +1 -1
- data/app/views/search_results/sections/_datasets.html.erb +1 -1
- data/app/views/search_results/sections/_languages.html.erb +1 -1
- data/config/initializers/assets.rb +2 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/en.yml +2 -1
- data/lib/iqvoc/configuration/core.rb +1 -4
- data/lib/iqvoc/version.rb +1 -1
- data/public/export/151644452539207638297695765208032122293.nt +28 -0
- data/public/export/213987519797093111958174693910375706600.nt +28 -0
- data/public/export/220598335291843294191166072463233833628.nt +28 -0
- data/public/export/242910803893093872189091525372405462985.nt +28 -0
- data/public/export/25981.nt +28 -0
- data/public/export/3199.nt +28 -0
- data/public/export/50650725356216411444149011685563244498.nt +28 -0
- data/public/export/801.nt +28 -0
- data/public/uploads/import/596c40774bb5979c8de5ce6daa58de35.nt +259 -0
- data/public/uploads/import/77ea050ae3a00aedd2a6e4158454a54d.nt +259 -0
- data/public/uploads/import/7cc9feb5e9180d29865b9d4e81694921.nt +259 -0
- data/public/uploads/import/8e0bf83a2ca503753efaa29bff6f84f6.nt +259 -0
- data/public/uploads/import/a712bf10adc7546d5c567194d7a13603.nt +259 -0
- data/public/uploads/import/a7e315db905ac7808126b600dd1f6203.nt +259 -0
- data/public/uploads/import/d038a0416528900076cdb4a28211a84c.nt +259 -0
- data/public/uploads/import/d250e9b7a2819d62a43d5270031eaa6d.nt +259 -0
- data/public/uploads/tmp/1422290833-38334-3392/hobbies.nt +259 -0
- data/public/uploads/tmp/1422292996-38701-6635/hobbies.nt +259 -0
- data/public/uploads/tmp/1422293183-38751-2662/hobbies.nt +259 -0
- data/public/uploads/tmp/1422293478-38811-6215/hobbies.nt +259 -0
- data/public/uploads/tmp/1422300870-38980-1343/hobbies.nt +259 -0
- data/public/uploads/tmp/1422372626-67843-5956/hobbies.nt +259 -0
- data/public/uploads/tmp/1422374262-68176-3483/hobbies.nt +259 -0
- data/public/uploads/tmp/1422374611-68319-4455/hobbies.nt +259 -0
- data/test/integration/authentication_test.rb +2 -2
- data/vendor/assets/bower_components/URIjs/LICENSE.txt +21 -0
- data/vendor/assets/bower_components/URIjs/README.md +496 -0
- data/vendor/assets/bower_components/URIjs/bower.json +29 -0
- data/vendor/assets/bower_components/URIjs/contributing.md +19 -0
- data/vendor/assets/bower_components/URIjs/src/IPv6.js +188 -0
- data/vendor/assets/bower_components/URIjs/src/SecondLevelDomains.js +241 -0
- data/vendor/assets/bower_components/URIjs/src/URI.fragmentQuery.js +104 -0
- data/vendor/assets/bower_components/URIjs/src/URI.fragmentURI.js +97 -0
- data/vendor/assets/{javascripts → bower_components/URIjs/src}/URI.js +45 -49
- data/vendor/assets/bower_components/URIjs/src/URI.min.js +84 -0
- data/vendor/assets/bower_components/URIjs/src/URITemplate.js +499 -0
- data/vendor/assets/bower_components/URIjs/src/jquery.URI.js +235 -0
- data/vendor/assets/bower_components/URIjs/src/jquery.URI.min.js +7 -0
- data/vendor/assets/bower_components/URIjs/src/punycode.js +508 -0
- data/vendor/assets/bower_components/bootstrap-sass/CHANGELOG.md +183 -0
- data/vendor/assets/bower_components/bootstrap-sass/CONTRIBUTING.md +86 -0
- data/vendor/assets/bower_components/bootstrap-sass/LICENSE +21 -0
- data/vendor/assets/bower_components/bootstrap-sass/README.md +330 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap-sprockets.js +12 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap.js +2306 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap.min.js +7 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/affix.js +162 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/alert.js +94 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/button.js +116 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/carousel.js +237 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/collapse.js +211 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/dropdown.js +161 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/modal.js +324 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/popover.js +113 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/scrollspy.js +175 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/tab.js +153 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/tooltip.js +472 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/javascripts/bootstrap/transition.js +59 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/_bootstrap-compass.scss +9 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/_bootstrap-mincer.scss +19 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/_bootstrap.scss +50 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_alerts.scss +73 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss +67 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_button-groups.scss +243 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_buttons.scss +160 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_carousel.scss +269 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_close.scss +36 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_code.scss +69 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_dropdowns.scss +214 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_forms.scss +570 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_glyphicons.scss +301 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_grid.scss +84 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_input-groups.scss +166 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_jumbotron.scss +50 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_labels.scss +66 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_list-group.scss +124 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_media.scss +61 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_mixins.scss +39 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_modals.scss +148 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_navbar.scss +663 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_navs.scss +244 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_normalize.scss +427 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_pager.scss +54 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_pagination.scss +88 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_panels.scss +265 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_popovers.scss +135 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_print.scss +107 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_progress-bars.scss +87 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-embed.scss +35 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-utilities.scss +177 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_scaffolding.scss +150 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_tables.scss +234 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_theme.scss +273 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_tooltip.scss +103 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_type.scss +298 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_utilities.scss +56 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss +862 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_wells.scss +29 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
- data/vendor/assets/bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/vendor/assets/bower_components/bootstrap-sass/bower.json +40 -0
- data/vendor/assets/bower_components/bootstrap-sass/composer.json +35 -0
- data/vendor/assets/bower_components/bootstrap-sass/package.json +30 -0
- data/vendor/assets/bower_components/bootstrap-sass/sache.json +5 -0
- data/vendor/assets/bower_components/html5shiv/Gruntfile.js +61 -0
- data/vendor/assets/bower_components/html5shiv/bower.json +15 -0
- data/vendor/assets/bower_components/html5shiv/dist/html5shiv-printshiv.js +520 -0
- data/vendor/assets/bower_components/html5shiv/dist/html5shiv-printshiv.min.js +4 -0
- data/vendor/assets/bower_components/html5shiv/dist/html5shiv.js +322 -0
- data/vendor/assets/bower_components/html5shiv/dist/html5shiv.min.js +4 -0
- data/vendor/assets/bower_components/html5shiv/package.json +16 -0
- data/vendor/assets/bower_components/html5shiv/readme.md +152 -0
- data/vendor/assets/bower_components/jqtree/LICENSE +202 -0
- data/vendor/assets/bower_components/jqtree/README.md +24 -0
- data/vendor/assets/bower_components/jqtree/_config.yml +18 -0
- data/vendor/assets/bower_components/jqtree/_entries/01_general.md +7 -0
- data/vendor/assets/bower_components/jqtree/_entries/02_introduction.md +9 -0
- data/vendor/assets/bower_components/jqtree/_entries/03_features.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/04_demo.html +34 -0
- data/vendor/assets/bower_components/jqtree/_entries/05_requirements.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/06_downloads.md +9 -0
- data/vendor/assets/bower_components/jqtree/_entries/07_tutorial.md +77 -0
- data/vendor/assets/bower_components/jqtree/_entries/08_examples.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/09_changelog.md +179 -0
- data/vendor/assets/bower_components/jqtree/_entries/10_options.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/11_autoescape.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/12_autoopen.md +28 -0
- data/vendor/assets/bower_components/jqtree/_entries/13_closedicon.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/14_data.md +41 -0
- data/vendor/assets/bower_components/jqtree/_entries/15_datafilter.md +17 -0
- data/vendor/assets/bower_components/jqtree/_entries/16_data-url.md +21 -0
- data/vendor/assets/bower_components/jqtree/_entries/17_draganddrop.md +18 -0
- data/vendor/assets/bower_components/jqtree/_entries/18_keyboardsupport.md +14 -0
- data/vendor/assets/bower_components/jqtree/_entries/19_oncanmove.md +22 -0
- data/vendor/assets/bower_components/jqtree/_entries/20_oncanmoveto.md +22 -0
- data/vendor/assets/bower_components/jqtree/_entries/21_oncanselectnode.md +26 -0
- data/vendor/assets/bower_components/jqtree/_entries/22_oncreateli.md +16 -0
- data/vendor/assets/bower_components/jqtree/_entries/23_onismovehandle.md +17 -0
- data/vendor/assets/bower_components/jqtree/_entries/24_onloadfailed.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/25_openedicon.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/26_openfolderdelay.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/27_savestate.md +42 -0
- data/vendor/assets/bower_components/jqtree/_entries/28_selectable.md +18 -0
- data/vendor/assets/bower_components/jqtree/_entries/29_slide.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/30_usecontextmenu.md +14 -0
- data/vendor/assets/bower_components/jqtree/_entries/31_functions.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/32_addnodeafter.md +20 -0
- data/vendor/assets/bower_components/jqtree/_entries/33_addnodebefore.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/34_appendnode.md +33 -0
- data/vendor/assets/bower_components/jqtree/_entries/35_closenode.md +23 -0
- data/vendor/assets/bower_components/jqtree/_entries/36_getnodebyid.md +21 -0
- data/vendor/assets/bower_components/jqtree/_entries/37_getselectednode.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/38_getstate.md +19 -0
- data/vendor/assets/bower_components/jqtree/_entries/39_gettree.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/40_loaddata.md +46 -0
- data/vendor/assets/bower_components/jqtree/_entries/41_loaddatafromurl.md +55 -0
- data/vendor/assets/bower_components/jqtree/_entries/42_movedown.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/43_movenode.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/44_moveup.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/45_opennode.md +29 -0
- data/vendor/assets/bower_components/jqtree/_entries/46_addparentnode.md +20 -0
- data/vendor/assets/bower_components/jqtree/_entries/47_reload.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/48_removenode.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/49_selectnode.md +24 -0
- data/vendor/assets/bower_components/jqtree/_entries/50_scrolltonode.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/51_setoption.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/52_setstate.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/53_toggle.md +8 -0
- data/vendor/assets/bower_components/jqtree/_entries/54_tojson.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/55_updatenode.md +33 -0
- data/vendor/assets/bower_components/jqtree/_entries/56_events.md +6 -0
- data/vendor/assets/bower_components/jqtree/_entries/57_tree-click.md +37 -0
- data/vendor/assets/bower_components/jqtree/_entries/58_tree-close.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/59_tree-contextmenu.md +21 -0
- data/vendor/assets/bower_components/jqtree/_entries/60_tree-dblclick.md +19 -0
- data/vendor/assets/bower_components/jqtree/_entries/61_tree-init.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/62_tree-move.md +71 -0
- data/vendor/assets/bower_components/jqtree/_entries/63_tree-open.md +15 -0
- data/vendor/assets/bower_components/jqtree/_entries/64_tree-select.md +28 -0
- data/vendor/assets/bower_components/jqtree/_entries/65_multiple-selection.md +9 -0
- data/vendor/assets/bower_components/jqtree/_entries/66_add-to-selection.md +11 -0
- data/vendor/assets/bower_components/jqtree/_entries/67_get-selected-nodes.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/68_is-node-selected.md +11 -0
- data/vendor/assets/bower_components/jqtree/_entries/69_remove-from-selection.md +11 -0
- data/vendor/assets/bower_components/jqtree/_entries/70_node-functions.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/71_children.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/72_getdata.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/73_getlevel.md +13 -0
- data/vendor/assets/bower_components/jqtree/_entries/74_getnextnode.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/75_getnextsibling.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/76_getpreviousnode.md +12 -0
- data/vendor/assets/bower_components/jqtree/_entries/77_getprevioussibling.md +10 -0
- data/vendor/assets/bower_components/jqtree/_entries/78_parent.md +10 -0
- data/vendor/assets/bower_components/jqtree/_examples/01_load_json_data.html +47 -0
- data/vendor/assets/bower_components/jqtree/_examples/02_load_json_data_from_server.html +31 -0
- data/vendor/assets/bower_components/jqtree/_examples/03_drag_and_drop.html +45 -0
- data/vendor/assets/bower_components/jqtree/_examples/04_save_state.html +52 -0
- data/vendor/assets/bower_components/jqtree/_examples/05_load_on_demand.html +70 -0
- data/vendor/assets/bower_components/jqtree/_examples/06_autoescape.html +47 -0
- data/vendor/assets/bower_components/jqtree/_examples/07_autoscroll.html +23 -0
- data/vendor/assets/bower_components/jqtree/_examples/08_multiple_select.html +72 -0
- data/vendor/assets/bower_components/jqtree/_examples/09_custom_html.html +68 -0
- data/vendor/assets/bower_components/jqtree/_examples/10_icon_buttons.html +27 -0
- data/vendor/assets/bower_components/jqtree/_layouts/base.html +48 -0
- data/vendor/assets/bower_components/jqtree/_layouts/frontpage.html +20 -0
- data/vendor/assets/bower_components/jqtree/_layouts/page.html +7 -0
- data/vendor/assets/bower_components/jqtree/bower.json +12 -0
- data/vendor/assets/bower_components/jqtree/gulpfile.coffee +30 -0
- data/vendor/assets/bower_components/jqtree/gulpfile.js +2 -0
- data/vendor/assets/bower_components/jqtree/index.html +48 -0
- data/vendor/assets/bower_components/jqtree/jqtree-circle.png +0 -0
- data/vendor/assets/bower_components/jqtree/jqtree.css +143 -0
- data/vendor/assets/bower_components/jqtree/jqtree.jquery.json +23 -0
- data/vendor/assets/bower_components/jqtree/package.json +23 -0
- data/vendor/assets/bower_components/jqtree/phantomjs/runner.js +193 -0
- data/vendor/assets/bower_components/jqtree/phantomjs/server.js +14 -0
- data/vendor/assets/bower_components/jqtree/screenshot.png +0 -0
- data/vendor/assets/bower_components/jqtree/sitemap.txt +11 -0
- data/vendor/assets/bower_components/jqtree/src/drag_and_drop_handler.coffee +466 -0
- data/vendor/assets/bower_components/jqtree/src/elements_renderer.coffee +198 -0
- data/vendor/assets/bower_components/jqtree/src/key_handler.coffee +92 -0
- data/vendor/assets/bower_components/jqtree/src/mouse.widget.coffee +181 -0
- data/vendor/assets/bower_components/jqtree/src/node.coffee +431 -0
- data/vendor/assets/bower_components/jqtree/src/node_element.coffee +144 -0
- data/vendor/assets/bower_components/jqtree/src/save_state_handler.coffee +191 -0
- data/vendor/assets/bower_components/jqtree/src/scroll_handler.coffee +100 -0
- data/vendor/assets/bower_components/jqtree/src/select_node_handler.coffee +76 -0
- data/vendor/assets/bower_components/jqtree/src/simple.widget.coffee +102 -0
- data/vendor/assets/bower_components/jqtree/src/test.js +1945 -0
- data/vendor/assets/bower_components/jqtree/src/tree.jquery.coffee +772 -0
- data/vendor/assets/bower_components/jqtree/src/util.coffee +117 -0
- data/vendor/assets/bower_components/jqtree/src/version.coffee +1 -0
- data/vendor/assets/bower_components/jqtree/static/bower.json +13 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/blanket/dist/qunit/blanket.js +5430 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/css/bootstrap-theme.min.css +5 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/css/bootstrap.min.css +5 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/bootstrap/dist/js/bootstrap.min.js +7 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/css/font-awesome.min.css +4 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/fontawesome-webfont.svg +520 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/fontawesome/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/jquery-cookie/jquery.cookie.js +117 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/jquery-mockjax/jquery.mockjax.js +692 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/jquery/dist/jquery.min.js +5 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/pygments/css/monokai.css +63 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/qunit/qunit/qunit.css +264 -0
- data/vendor/assets/bower_components/jqtree/static/bower_components/qunit/qunit/qunit.js +2819 -0
- data/vendor/assets/bower_components/jqtree/static/documentation.css +165 -0
- data/vendor/assets/bower_components/jqtree/static/documentation.js +51 -0
- data/vendor/assets/bower_components/jqtree/static/example.css +53 -0
- data/vendor/assets/bower_components/jqtree/static/example_data.js +128 -0
- data/vendor/assets/bower_components/jqtree/static/examples/autoescape.js +19 -0
- data/vendor/assets/bower_components/jqtree/static/examples/autoscroll.js +8 -0
- data/vendor/assets/bower_components/jqtree/static/examples/custom_html.js +32 -0
- data/vendor/assets/bower_components/jqtree/static/examples/drag_and_drop.js +15 -0
- data/vendor/assets/bower_components/jqtree/static/examples/icon_buttons.js +14 -0
- data/vendor/assets/bower_components/jqtree/static/examples/load_json_data.js +21 -0
- data/vendor/assets/bower_components/jqtree/static/examples/load_json_data_from_server.js +11 -0
- data/vendor/assets/bower_components/jqtree/static/examples/load_on_demand.js +20 -0
- data/vendor/assets/bower_components/jqtree/static/examples/multiple_select.js +27 -0
- data/vendor/assets/bower_components/jqtree/static/examples/save_state.js +13 -0
- data/vendor/assets/bower_components/jqtree/static/jquery-1.11.2.min.js +4 -0
- data/vendor/assets/bower_components/jqtree/static/spinner.gif +0 -0
- data/vendor/assets/bower_components/jqtree/test/test.html +23 -0
- data/vendor/assets/bower_components/jqtree/test/test.js +2604 -0
- data/vendor/assets/{javascripts → bower_components/jqtree}/tree.jquery.js +2274 -1932
- data/vendor/assets/bower_components/jquery-ujs/CHANGELOG.md +24 -0
- data/vendor/assets/bower_components/jquery-ujs/MIT-LICENSE.txt +20 -0
- data/vendor/assets/bower_components/jquery-ujs/README.md +72 -0
- data/vendor/assets/bower_components/jquery-ujs/bower.json +20 -0
- data/vendor/assets/bower_components/jquery-ujs/src/rails.js +469 -0
- data/vendor/assets/bower_components/jquery/MIT-LICENSE.txt +21 -0
- data/vendor/assets/bower_components/jquery/bower.json +27 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.js +9205 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.min.js +5 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -0
- data/vendor/assets/bower_components/jquery/src/ajax.js +786 -0
- data/vendor/assets/bower_components/jquery/src/ajax/jsonp.js +89 -0
- data/vendor/assets/bower_components/jquery/src/ajax/load.js +75 -0
- data/vendor/assets/bower_components/jquery/src/ajax/parseJSON.js +13 -0
- data/vendor/assets/bower_components/jquery/src/ajax/parseXML.js +28 -0
- data/vendor/assets/bower_components/jquery/src/ajax/script.js +64 -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 +136 -0
- data/vendor/assets/bower_components/jquery/src/attributes.js +11 -0
- data/vendor/assets/bower_components/jquery/src/attributes/attr.js +141 -0
- data/vendor/assets/bower_components/jquery/src/attributes/classes.js +158 -0
- data/vendor/assets/bower_components/jquery/src/attributes/prop.js +94 -0
- data/vendor/assets/bower_components/jquery/src/attributes/support.js +35 -0
- data/vendor/assets/bower_components/jquery/src/attributes/val.js +161 -0
- data/vendor/assets/bower_components/jquery/src/callbacks.js +205 -0
- data/vendor/assets/bower_components/jquery/src/core.js +497 -0
- data/vendor/assets/bower_components/jquery/src/core/access.js +60 -0
- data/vendor/assets/bower_components/jquery/src/core/init.js +123 -0
- data/vendor/assets/bower_components/jquery/src/core/parseHTML.js +39 -0
- data/vendor/assets/bower_components/jquery/src/core/ready.js +97 -0
- data/vendor/assets/bower_components/jquery/src/core/var/rsingleTag.js +4 -0
- data/vendor/assets/bower_components/jquery/src/css.js +450 -0
- data/vendor/assets/bower_components/jquery/src/css/addGetHookIf.js +22 -0
- data/vendor/assets/bower_components/jquery/src/css/curCSS.js +57 -0
- data/vendor/assets/bower_components/jquery/src/css/defaultDisplay.js +70 -0
- data/vendor/assets/bower_components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/vendor/assets/bower_components/jquery/src/css/support.js +96 -0
- data/vendor/assets/bower_components/jquery/src/css/swap.js +28 -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 +12 -0
- data/vendor/assets/bower_components/jquery/src/css/var/isHidden.js +13 -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/data.js +178 -0
- data/vendor/assets/bower_components/jquery/src/data/Data.js +181 -0
- data/vendor/assets/bower_components/jquery/src/data/accepts.js +20 -0
- data/vendor/assets/bower_components/jquery/src/data/var/data_priv.js +5 -0
- data/vendor/assets/bower_components/jquery/src/data/var/data_user.js +5 -0
- data/vendor/assets/bower_components/jquery/src/deferred.js +149 -0
- data/vendor/assets/bower_components/jquery/src/deprecated.js +13 -0
- data/vendor/assets/bower_components/jquery/src/dimensions.js +50 -0
- data/vendor/assets/bower_components/jquery/src/effects.js +648 -0
- data/vendor/assets/bower_components/jquery/src/effects/Tween.js +114 -0
- data/vendor/assets/bower_components/jquery/src/effects/animatedSelector.js +13 -0
- data/vendor/assets/bower_components/jquery/src/event.js +868 -0
- data/vendor/assets/bower_components/jquery/src/event/ajax.js +13 -0
- data/vendor/assets/bower_components/jquery/src/event/alias.js +39 -0
- data/vendor/assets/bower_components/jquery/src/event/support.js +9 -0
- data/vendor/assets/bower_components/jquery/src/exports/amd.js +24 -0
- data/vendor/assets/bower_components/jquery/src/exports/global.js +32 -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 +580 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/_evalUrl.js +18 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/support.js +32 -0
- data/vendor/assets/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/vendor/assets/bower_components/jquery/src/offset.js +207 -0
- data/vendor/assets/bower_components/jquery/src/outro.js +1 -0
- data/vendor/assets/bower_components/jquery/src/queue.js +142 -0
- data/vendor/assets/bower_components/jquery/src/queue/delay.js +22 -0
- data/vendor/assets/bower_components/jquery/src/selector-native.js +172 -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 +111 -0
- data/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.js +2067 -0
- data/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
- data/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
- data/vendor/assets/bower_components/jquery/src/traversing.js +199 -0
- data/vendor/assets/bower_components/jquery/src/traversing/findFilter.js +100 -0
- data/vendor/assets/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/vendor/assets/bower_components/jquery/src/var/arr.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/class2type.js +4 -0
- data/vendor/assets/bower_components/jquery/src/var/concat.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/rnotwhite.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/slice.js +5 -0
- data/vendor/assets/bower_components/jquery/src/var/strundefined.js +3 -0
- data/vendor/assets/bower_components/jquery/src/var/support.js +4 -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/pickadate/Gruntfile.js +275 -0
- data/vendor/assets/bower_components/pickadate/bower.json +63 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/legacy.js +10 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/picker.date.js +5 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/picker.js +7 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/picker.time.js +5 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/classic.css +4 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/classic.date.css +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/classic.time.css +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/default.css +4 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/default.date.css +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/default.time.css +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/themes/rtl.css +3 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ar.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/bg_BG.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/bs_BA.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ca_ES.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/cs_CZ.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/da_DK.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/de_DE.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/el_GR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/es_ES.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/et_EE.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/eu_ES.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/fi_FI.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/fr_FR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/gl_ES.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/he_IL.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/hr_HR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/hu_HU.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/id_ID.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/is_IS.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/it_IT.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ja_JP.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ko_KR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ne_NP.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/nl_NL.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/no_NO.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/pl_PL.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/pt_BR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/pt_PT.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ro_RO.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/ru_RU.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/sk_SK.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/sl_SI.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/sv_SE.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/th_TH.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/tr_TR.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/uk_UA.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/vi_VN.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/zh_CN.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/compressed/translations/zh_TW.js +1 -0
- data/vendor/assets/bower_components/pickadate/lib/legacy.js +133 -0
- data/vendor/assets/{javascripts/pickadate → bower_components/pickadate/lib}/picker.date.js +60 -28
- data/vendor/assets/{javascripts/pickadate → bower_components/pickadate/lib}/picker.js +41 -25
- data/vendor/assets/bower_components/pickadate/lib/picker.time.js +1014 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/_variables.less +208 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/base.date.less +333 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/base.less +55 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/base.time.less +119 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/classic.date.less +9 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/classic.less +119 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/classic.time.less +49 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/default.date.less +9 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/default.less +246 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/default.time.less +41 -0
- data/vendor/assets/bower_components/pickadate/lib/themes-source/rtl.less +38 -0
- data/vendor/assets/{stylesheets/pickadate/classic.scss → bower_components/pickadate/lib/themes/classic.css} +0 -0
- data/vendor/assets/{stylesheets/pickadate/classic.date.scss → bower_components/pickadate/lib/themes/classic.date.css} +33 -10
- data/vendor/assets/bower_components/pickadate/lib/themes/classic.time.css +132 -0
- data/vendor/assets/bower_components/pickadate/lib/themes/default.css +175 -0
- data/vendor/assets/bower_components/pickadate/lib/themes/default.date.css +301 -0
- data/vendor/assets/bower_components/pickadate/lib/themes/default.time.css +126 -0
- data/vendor/assets/bower_components/pickadate/lib/themes/rtl.css +29 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ar.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/bg_BG.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/bs_BA.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ca_ES.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/cs_CZ.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/da_DK.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/de_DE.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/el_GR.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/es_ES.js +14 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/et_EE.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/eu_ES.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/fi_FI.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/fr_FR.js +18 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/gl_ES.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/he_IL.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/hr_HR.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/hu_HU.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/id_ID.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/is_IS.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/it_IT.js +14 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ja_JP.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ko_KR.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ne_NP.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/nl_NL.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/no_NO.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/pl_PL.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/pt_BR.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/pt_PT.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ro_RO.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/ru_RU.js +14 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/sk_SK.js +14 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/sl_SI.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/sv_SE.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/th_TH.js +12 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/tr_TR.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/uk_UA.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/vi_VN.js +11 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/zh_CN.js +13 -0
- data/vendor/assets/bower_components/pickadate/lib/translations/zh_TW.js +13 -0
- data/vendor/assets/bower_components/pickadate/package.json +63 -0
- data/vendor/assets/bower_components/pickadate/pickadate.jquery.json +63 -0
- data/vendor/assets/bower_components/typeahead.js/CHANGELOG.md +222 -0
- data/vendor/assets/bower_components/typeahead.js/CONTRIBUTING.md +120 -0
- data/vendor/assets/bower_components/typeahead.js/Gruntfile.js +265 -0
- data/vendor/assets/bower_components/typeahead.js/LICENSE +19 -0
- data/vendor/assets/bower_components/typeahead.js/README.md +188 -0
- data/vendor/assets/bower_components/typeahead.js/bower.json +13 -0
- data/vendor/assets/bower_components/typeahead.js/composer.json +17 -0
- data/vendor/assets/bower_components/typeahead.js/dist/bloodhound.js +727 -0
- data/vendor/assets/bower_components/typeahead.js/dist/bloodhound.min.js +7 -0
- data/vendor/assets/bower_components/typeahead.js/dist/typeahead.bundle.js +1782 -0
- data/vendor/assets/bower_components/typeahead.js/dist/typeahead.bundle.min.js +7 -0
- data/vendor/assets/{javascripts → bower_components/typeahead.js/dist}/typeahead.jquery.js +0 -0
- data/vendor/assets/bower_components/typeahead.js/dist/typeahead.jquery.min.js +7 -0
- data/vendor/assets/bower_components/typeahead.js/doc/bloodhound.md +279 -0
- data/vendor/assets/bower_components/typeahead.js/doc/jquery_typeahead.md +383 -0
- data/vendor/assets/bower_components/typeahead.js/doc/migration/0.10.0.md +234 -0
- data/vendor/assets/bower_components/typeahead.js/karma.conf.js +98 -0
- data/vendor/assets/bower_components/typeahead.js/package.json +57 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/bloodhound.js +234 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/lru_cache.js +99 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/options_parser.js +89 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/persistent_storage.js +131 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/search_index.js +169 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/tokenizers.js +44 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/transport.js +152 -0
- data/vendor/assets/bower_components/typeahead.js/src/bloodhound/version.js +7 -0
- data/vendor/assets/bower_components/typeahead.js/src/common/utils.js +152 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/css.js +77 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/dataset.js +210 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/dropdown.js +245 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/event_bus.js +38 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/event_emitter.js +119 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/highlight.js +84 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/html.js +15 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/input.js +311 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/plugin.js +129 -0
- data/vendor/assets/bower_components/typeahead.js/src/typeahead/typeahead.js +391 -0
- data/vendor/assets/bower_components/typeahead.js/test/bloodhound_spec.js +592 -0
- data/vendor/assets/bower_components/typeahead.js/test/ci +12 -0
- data/vendor/assets/bower_components/typeahead.js/test/dataset_view_spec.js +222 -0
- data/vendor/assets/bower_components/typeahead.js/test/dropdown_view_spec.js +353 -0
- data/vendor/assets/bower_components/typeahead.js/test/event_emitter_spec.js +111 -0
- data/vendor/assets/bower_components/typeahead.js/test/fixtures/ajax_responses.js +19 -0
- data/vendor/assets/bower_components/typeahead.js/test/fixtures/data.js +116 -0
- data/vendor/assets/bower_components/typeahead.js/test/fixtures/html.js +17 -0
- data/vendor/assets/bower_components/typeahead.js/test/helpers/typeahead_mocks.js +71 -0
- data/vendor/assets/bower_components/typeahead.js/test/highlight_spec.js +117 -0
- data/vendor/assets/bower_components/typeahead.js/test/input_view_spec.js +449 -0
- data/vendor/assets/bower_components/typeahead.js/test/integration/test.html +112 -0
- data/vendor/assets/bower_components/typeahead.js/test/integration/test.js +397 -0
- data/vendor/assets/bower_components/typeahead.js/test/lru_cache_spec.js +42 -0
- data/vendor/assets/bower_components/typeahead.js/test/persistent_storage_spec.js +131 -0
- data/vendor/assets/bower_components/typeahead.js/test/playground.html +347 -0
- data/vendor/assets/bower_components/typeahead.js/test/search_index_spec.js +60 -0
- data/vendor/assets/bower_components/typeahead.js/test/tokenizers_spec.js +60 -0
- data/vendor/assets/bower_components/typeahead.js/test/transport_spec.js +197 -0
- data/vendor/assets/bower_components/typeahead.js/test/typeahead_view_spec.js +570 -0
- data/vendor/assets/bower_components/typeahead.js/typeahead.js.jquery.json +40 -0
- metadata +576 -12
- data/vendor/assets/javascripts/html5.js +0 -3
- data/vendor/assets/javascripts/jquery-1.7.1.js +0 -9266
- data/vendor/assets/javascripts/rails.js +0 -373
@@ -0,0 +1,104 @@
|
|
1
|
+
/*
|
2
|
+
* Extending URI.js for fragment abuse
|
3
|
+
*/
|
4
|
+
|
5
|
+
// --------------------------------------------------------------------------------
|
6
|
+
// EXAMPLE: storing application/x-www-form-urlencoded data in the fragment
|
7
|
+
// possibly helpful for Google's hashbangs
|
8
|
+
// see http://code.google.com/web/ajaxcrawling/
|
9
|
+
// --------------------------------------------------------------------------------
|
10
|
+
|
11
|
+
// Note: make sure this is the last file loaded!
|
12
|
+
|
13
|
+
// USAGE:
|
14
|
+
// var uri = URI("http://example.org/#?foo=bar");
|
15
|
+
// uri.fragment(true) === {foo: "bar"};
|
16
|
+
// uri.fragment({bar: "foo"});
|
17
|
+
// uri.toString() === "http://example.org/#?bar=foo";
|
18
|
+
// uri.addFragment("name", "value");
|
19
|
+
// uri.toString() === "http://example.org/#?bar=foo&name=value";
|
20
|
+
// uri.removeFragment("name");
|
21
|
+
// uri.toString() === "http://example.org/#?bar=foo";
|
22
|
+
|
23
|
+
(function (root, factory) {
|
24
|
+
'use strict';
|
25
|
+
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
26
|
+
if (typeof exports === 'object') {
|
27
|
+
// Node
|
28
|
+
module.exports = factory(require('./URI'));
|
29
|
+
} else if (typeof define === 'function' && define.amd) {
|
30
|
+
// AMD. Register as an anonymous module.
|
31
|
+
define(['./URI'], factory);
|
32
|
+
} else {
|
33
|
+
// Browser globals (root is window)
|
34
|
+
factory(root.URI);
|
35
|
+
}
|
36
|
+
}(this, function (URI) {
|
37
|
+
'use strict';
|
38
|
+
|
39
|
+
var p = URI.prototype;
|
40
|
+
// old fragment handler we need to wrap
|
41
|
+
var f = p.fragment;
|
42
|
+
|
43
|
+
// make fragmentPrefix configurable
|
44
|
+
URI.fragmentPrefix = '?';
|
45
|
+
var _parts = URI._parts;
|
46
|
+
URI._parts = function() {
|
47
|
+
var parts = _parts();
|
48
|
+
parts.fragmentPrefix = URI.fragmentPrefix;
|
49
|
+
return parts;
|
50
|
+
};
|
51
|
+
p.fragmentPrefix = function(v) {
|
52
|
+
this._parts.fragmentPrefix = v;
|
53
|
+
return this;
|
54
|
+
};
|
55
|
+
|
56
|
+
// add fragment(true) and fragment({key: value}) signatures
|
57
|
+
p.fragment = function(v, build) {
|
58
|
+
var prefix = this._parts.fragmentPrefix;
|
59
|
+
var fragment = this._parts.fragment || '';
|
60
|
+
|
61
|
+
if (v === true) {
|
62
|
+
if (fragment.substring(0, prefix.length) !== prefix) {
|
63
|
+
return {};
|
64
|
+
}
|
65
|
+
|
66
|
+
return URI.parseQuery(fragment.substring(prefix.length));
|
67
|
+
} else if (v !== undefined && typeof v !== 'string') {
|
68
|
+
this._parts.fragment = prefix + URI.buildQuery(v);
|
69
|
+
this.build(!build);
|
70
|
+
return this;
|
71
|
+
} else {
|
72
|
+
return f.call(this, v, build);
|
73
|
+
}
|
74
|
+
};
|
75
|
+
p.addFragment = function(name, value, build) {
|
76
|
+
var prefix = this._parts.fragmentPrefix;
|
77
|
+
var data = URI.parseQuery((this._parts.fragment || '').substring(prefix.length));
|
78
|
+
URI.addQuery(data, name, value);
|
79
|
+
this._parts.fragment = prefix + URI.buildQuery(data);
|
80
|
+
if (typeof name !== 'string') {
|
81
|
+
build = value;
|
82
|
+
}
|
83
|
+
|
84
|
+
this.build(!build);
|
85
|
+
return this;
|
86
|
+
};
|
87
|
+
p.removeFragment = function(name, value, build) {
|
88
|
+
var prefix = this._parts.fragmentPrefix;
|
89
|
+
var data = URI.parseQuery((this._parts.fragment || '').substring(prefix.length));
|
90
|
+
URI.removeQuery(data, name, value);
|
91
|
+
this._parts.fragment = prefix + URI.buildQuery(data);
|
92
|
+
if (typeof name !== 'string') {
|
93
|
+
build = value;
|
94
|
+
}
|
95
|
+
|
96
|
+
this.build(!build);
|
97
|
+
return this;
|
98
|
+
};
|
99
|
+
p.addHash = p.addFragment;
|
100
|
+
p.removeHash = p.removeFragment;
|
101
|
+
|
102
|
+
// extending existing object rather than defining something new
|
103
|
+
return URI;
|
104
|
+
}));
|
@@ -0,0 +1,97 @@
|
|
1
|
+
/*
|
2
|
+
* Extending URI.js for fragment abuse
|
3
|
+
*/
|
4
|
+
|
5
|
+
// --------------------------------------------------------------------------------
|
6
|
+
// EXAMPLE: storing a relative URL in the fragment ("FragmentURI")
|
7
|
+
// possibly helpful when working with backbone.js or sammy.js
|
8
|
+
// inspired by https://github.com/medialize/URI.js/pull/2
|
9
|
+
// --------------------------------------------------------------------------------
|
10
|
+
|
11
|
+
// Note: make sure this is the last file loaded!
|
12
|
+
|
13
|
+
// USAGE:
|
14
|
+
// var uri = URI("http://example.org/#!/foo/bar/baz.html");
|
15
|
+
// var furi = uri.fragment(true);
|
16
|
+
// furi.pathname() === '/foo/bar/baz.html';
|
17
|
+
// furi.pathname('/hello.html');
|
18
|
+
// uri.toString() === "http://example.org/#!/hello.html"
|
19
|
+
|
20
|
+
(function (root, factory) {
|
21
|
+
'use strict';
|
22
|
+
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
23
|
+
if (typeof exports === 'object') {
|
24
|
+
// Node
|
25
|
+
module.exports = factory(require('./URI'));
|
26
|
+
} else if (typeof define === 'function' && define.amd) {
|
27
|
+
// AMD. Register as an anonymous module.
|
28
|
+
define(['./URI'], factory);
|
29
|
+
} else {
|
30
|
+
// Browser globals (root is window)
|
31
|
+
factory(root.URI);
|
32
|
+
}
|
33
|
+
}(this, function (URI) {
|
34
|
+
'use strict';
|
35
|
+
|
36
|
+
var p = URI.prototype;
|
37
|
+
// old handlers we need to wrap
|
38
|
+
var f = p.fragment;
|
39
|
+
var b = p.build;
|
40
|
+
|
41
|
+
// make fragmentPrefix configurable
|
42
|
+
URI.fragmentPrefix = '!';
|
43
|
+
var _parts = URI._parts;
|
44
|
+
URI._parts = function() {
|
45
|
+
var parts = _parts();
|
46
|
+
parts.fragmentPrefix = URI.fragmentPrefix;
|
47
|
+
return parts;
|
48
|
+
};
|
49
|
+
p.fragmentPrefix = function(v) {
|
50
|
+
this._parts.fragmentPrefix = v;
|
51
|
+
return this;
|
52
|
+
};
|
53
|
+
|
54
|
+
// add fragment(true) and fragment(URI) signatures
|
55
|
+
p.fragment = function(v, build) {
|
56
|
+
var prefix = this._parts.fragmentPrefix;
|
57
|
+
var fragment = this._parts.fragment || '';
|
58
|
+
var furi;
|
59
|
+
|
60
|
+
if (v === true) {
|
61
|
+
if (fragment.substring(0, prefix.length) !== prefix) {
|
62
|
+
furi = URI('');
|
63
|
+
} else {
|
64
|
+
furi = new URI(fragment.substring(prefix.length));
|
65
|
+
}
|
66
|
+
|
67
|
+
this._fragmentURI = furi;
|
68
|
+
furi._parentURI = this;
|
69
|
+
return furi;
|
70
|
+
} else if (v !== undefined && typeof v !== 'string') {
|
71
|
+
this._fragmentURI = v;
|
72
|
+
v._parentURI = v;
|
73
|
+
this._parts.fragment = prefix + v.toString();
|
74
|
+
this.build(!build);
|
75
|
+
return this;
|
76
|
+
} else if (typeof v === 'string') {
|
77
|
+
this._fragmentURI = undefined;
|
78
|
+
}
|
79
|
+
|
80
|
+
return f.call(this, v, build);
|
81
|
+
};
|
82
|
+
|
83
|
+
// make .build() of the actual URI aware of the FragmentURI
|
84
|
+
p.build = function(deferBuild) {
|
85
|
+
var t = b.call(this, deferBuild);
|
86
|
+
|
87
|
+
if (deferBuild !== false && this._parentURI) {
|
88
|
+
// update the parent
|
89
|
+
this._parentURI.fragment(this);
|
90
|
+
}
|
91
|
+
|
92
|
+
return t;
|
93
|
+
};
|
94
|
+
|
95
|
+
// extending existing object rather than defining something new
|
96
|
+
return URI;
|
97
|
+
}));
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* URI.js - Mutating URLs
|
3
3
|
*
|
4
|
-
* Version: 1.
|
4
|
+
* Version: 1.14.1
|
5
5
|
*
|
6
6
|
* Author: Rodney Rehm
|
7
7
|
* Web: http://medialize.github.io/URI.js/
|
@@ -57,7 +57,7 @@
|
|
57
57
|
return this;
|
58
58
|
}
|
59
59
|
|
60
|
-
URI.version = '1.
|
60
|
+
URI.version = '1.14.1';
|
61
61
|
|
62
62
|
var p = URI.prototype;
|
63
63
|
var hasOwn = Object.prototype.hasOwnProperty;
|
@@ -225,7 +225,9 @@
|
|
225
225
|
'embed': 'src',
|
226
226
|
'source': 'src',
|
227
227
|
'track': 'src',
|
228
|
-
'input': 'src' // but only if type="image"
|
228
|
+
'input': 'src', // but only if type="image"
|
229
|
+
'audio': 'src',
|
230
|
+
'video': 'src'
|
229
231
|
};
|
230
232
|
URI.getDomAttribute = function(node) {
|
231
233
|
if (!node || !node.nodeName) {
|
@@ -365,9 +367,17 @@
|
|
365
367
|
var _part;
|
366
368
|
var generateAccessor = function(_group, _part) {
|
367
369
|
return function(string) {
|
368
|
-
|
369
|
-
return URI.characters[_group][_part].
|
370
|
-
|
370
|
+
try {
|
371
|
+
return URI[_part](string + '').replace(URI.characters[_group][_part].expression, function(c) {
|
372
|
+
return URI.characters[_group][_part].map[c];
|
373
|
+
});
|
374
|
+
} catch (e) {
|
375
|
+
// we're not going to mess with weird encodings,
|
376
|
+
// give up and return the undecoded original string
|
377
|
+
// see https://github.com/medialize/URI.js/issues/87
|
378
|
+
// see https://github.com/medialize/URI.js/issues/92
|
379
|
+
return string;
|
380
|
+
}
|
371
381
|
};
|
372
382
|
};
|
373
383
|
|
@@ -414,9 +424,6 @@
|
|
414
424
|
if (parts.protocol && !parts.protocol.match(URI.protocol_expression)) {
|
415
425
|
// : may be within the path
|
416
426
|
parts.protocol = undefined;
|
417
|
-
} else if (parts.protocol === 'file') {
|
418
|
-
// the file scheme: does not contain an authority
|
419
|
-
string = string.substring(pos + 3);
|
420
427
|
} else if (string.substring(pos + 1, pos + 3) === '//') {
|
421
428
|
string = string.substring(pos + 3);
|
422
429
|
|
@@ -480,11 +487,7 @@
|
|
480
487
|
URI.parseUserinfo = function(string, parts) {
|
481
488
|
// extract username:password
|
482
489
|
var firstSlash = string.indexOf('/');
|
483
|
-
|
484
|
-
var pos = firstSlash > -1
|
485
|
-
? string.lastIndexOf('@', firstSlash)
|
486
|
-
: string.indexOf('@');
|
487
|
-
/*jshint laxbreak: false */
|
490
|
+
var pos = string.lastIndexOf('@', firstSlash > -1 ? firstSlash : string.length - 1);
|
488
491
|
var t;
|
489
492
|
|
490
493
|
// authority@ must come before /path
|
@@ -524,7 +527,7 @@
|
|
524
527
|
// no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
|
525
528
|
value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;
|
526
529
|
|
527
|
-
if (items
|
530
|
+
if (hasOwn.call(items, name)) {
|
528
531
|
if (typeof items[name] === 'string') {
|
529
532
|
items[name] = [items[name]];
|
530
533
|
}
|
@@ -657,7 +660,7 @@
|
|
657
660
|
value = [value];
|
658
661
|
}
|
659
662
|
|
660
|
-
data[name] = data[name].concat(value);
|
663
|
+
data[name] = (data[name] || []).concat(value);
|
661
664
|
} else {
|
662
665
|
throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
|
663
666
|
}
|
@@ -882,9 +885,8 @@
|
|
882
885
|
return this.build(false)._string;
|
883
886
|
};
|
884
887
|
|
885
|
-
|
886
|
-
|
887
|
-
generateAccessor = function(_part){
|
888
|
+
|
889
|
+
function generateSimpleAccessor(_part){
|
888
890
|
return function(v, build) {
|
889
891
|
if (v === undefined) {
|
890
892
|
return this._parts[_part] || '';
|
@@ -894,15 +896,9 @@
|
|
894
896
|
return this;
|
895
897
|
}
|
896
898
|
};
|
897
|
-
};
|
898
|
-
|
899
|
-
for (_part in _parts) {
|
900
|
-
p[_part] = generateAccessor(_parts[_part]);
|
901
899
|
}
|
902
900
|
|
903
|
-
|
904
|
-
_parts = {query: '?', fragment: '#'};
|
905
|
-
generateAccessor = function(_part, _key){
|
901
|
+
function generatePrefixAccessor(_part, _key){
|
906
902
|
return function(v, build) {
|
907
903
|
if (v === undefined) {
|
908
904
|
return this._parts[_part] || '';
|
@@ -919,24 +915,24 @@
|
|
919
915
|
return this;
|
920
916
|
}
|
921
917
|
};
|
922
|
-
};
|
923
|
-
|
924
|
-
for (_part in _parts) {
|
925
|
-
p[_part] = generateAccessor(_part, _parts[_part]);
|
926
918
|
}
|
927
919
|
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
};
|
920
|
+
p.protocol = generateSimpleAccessor('protocol');
|
921
|
+
p.username = generateSimpleAccessor('username');
|
922
|
+
p.password = generateSimpleAccessor('password');
|
923
|
+
p.hostname = generateSimpleAccessor('hostname');
|
924
|
+
p.port = generateSimpleAccessor('port');
|
925
|
+
p.query = generatePrefixAccessor('query', '?');
|
926
|
+
p.fragment = generatePrefixAccessor('fragment', '#');
|
936
927
|
|
937
|
-
|
938
|
-
|
939
|
-
|
928
|
+
p.search = function(v, build) {
|
929
|
+
var t = this.query(v, build);
|
930
|
+
return typeof t === 'string' && t.length ? ('?' + t) : t;
|
931
|
+
};
|
932
|
+
p.hash = function(v, build) {
|
933
|
+
var t = this.fragment(v, build);
|
934
|
+
return typeof t === 'string' && t.length ? ('#' + t) : t;
|
935
|
+
};
|
940
936
|
|
941
937
|
p.pathname = function(v, build) {
|
942
938
|
if (v === undefined || v === true) {
|
@@ -978,8 +974,8 @@
|
|
978
974
|
href = href.toString();
|
979
975
|
}
|
980
976
|
|
981
|
-
if (typeof href === 'string') {
|
982
|
-
this._parts = URI.parse(href, this._parts);
|
977
|
+
if (typeof href === 'string' || href instanceof String) {
|
978
|
+
this._parts = URI.parse(String(href), this._parts);
|
983
979
|
} else if (_URI || _object) {
|
984
980
|
var src = _URI ? href._parts : href;
|
985
981
|
for (key in src) {
|
@@ -1485,7 +1481,7 @@
|
|
1485
1481
|
|
1486
1482
|
segments.push(v[i]);
|
1487
1483
|
}
|
1488
|
-
} else if (v ||
|
1484
|
+
} else if (v || typeof v === 'string') {
|
1489
1485
|
if (segments[segments.length -1] === '') {
|
1490
1486
|
// empty trailing elements have to be overwritten
|
1491
1487
|
// to prevent results such as /foo//bar
|
@@ -1495,7 +1491,7 @@
|
|
1495
1491
|
}
|
1496
1492
|
}
|
1497
1493
|
} else {
|
1498
|
-
if (v
|
1494
|
+
if (v) {
|
1499
1495
|
segments[segment] = v;
|
1500
1496
|
} else {
|
1501
1497
|
segments.splice(segment, 1);
|
@@ -1531,7 +1527,7 @@
|
|
1531
1527
|
}
|
1532
1528
|
|
1533
1529
|
if (!isArray(v)) {
|
1534
|
-
v = typeof v === 'string' ? URI.encode(v) : v;
|
1530
|
+
v = (typeof v === 'string' || v instanceof String) ? URI.encode(v) : v;
|
1535
1531
|
} else {
|
1536
1532
|
for (i = 0, l = v.length; i < l; i++) {
|
1537
1533
|
v[i] = URI.decode(v[i]);
|
@@ -1563,14 +1559,14 @@
|
|
1563
1559
|
p.setQuery = function(name, value, build) {
|
1564
1560
|
var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
|
1565
1561
|
|
1566
|
-
if (typeof name === '
|
1562
|
+
if (typeof name === 'string' || name instanceof String) {
|
1563
|
+
data[name] = value !== undefined ? value : null;
|
1564
|
+
} else if (typeof name === 'object') {
|
1567
1565
|
for (var key in name) {
|
1568
1566
|
if (hasOwn.call(name, key)) {
|
1569
1567
|
data[key] = name[key];
|
1570
1568
|
}
|
1571
1569
|
}
|
1572
|
-
} else if (typeof name === 'string') {
|
1573
|
-
data[name] = value !== undefined ? value : null;
|
1574
1570
|
} else {
|
1575
1571
|
throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
|
1576
1572
|
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
/*! URI.js v1.14.1 http://medialize.github.io/URI.js/ */
|
2
|
+
/* build contains: IPv6.js, punycode.js, SecondLevelDomains.js, URI.js, URITemplate.js */
|
3
|
+
(function(f,l){"object"===typeof exports?module.exports=l():"function"===typeof define&&define.amd?define(l):f.IPv6=l(f)})(this,function(f){var l=f&&f.IPv6;return{best:function(g){g=g.toLowerCase().split(":");var m=g.length,b=8;""===g[0]&&""===g[1]&&""===g[2]?(g.shift(),g.shift()):""===g[0]&&""===g[1]?g.shift():""===g[m-1]&&""===g[m-2]&&g.pop();m=g.length;-1!==g[m-1].indexOf(".")&&(b=7);var k;for(k=0;k<m&&""!==g[k];k++);if(k<b)for(g.splice(k,1,"0000");g.length<b;)g.splice(k,0,"0000");for(k=0;k<b;k++){for(var m=
|
4
|
+
g[k].split(""),f=0;3>f;f++)if("0"===m[0]&&1<m.length)m.splice(0,1);else break;g[k]=m.join("")}var m=-1,l=f=0,h=-1,r=!1;for(k=0;k<b;k++)r?"0"===g[k]?l+=1:(r=!1,l>f&&(m=h,f=l)):"0"===g[k]&&(r=!0,h=k,l=1);l>f&&(m=h,f=l);1<f&&g.splice(m,f,"");m=g.length;b="";""===g[0]&&(b=":");for(k=0;k<m;k++){b+=g[k];if(k===m-1)break;b+=":"}""===g[m-1]&&(b+=":");return b},noConflict:function(){f.IPv6===this&&(f.IPv6=l);return this}}});
|
5
|
+
(function(f){function l(b){throw RangeError(v[b]);}function g(b,e){for(var h=b.length;h--;)b[h]=e(b[h]);return b}function m(b,e){return g(b.split(u),e).join(".")}function b(b){for(var e=[],h=0,a=b.length,c,d;h<a;)c=b.charCodeAt(h++),55296<=c&&56319>=c&&h<a?(d=b.charCodeAt(h++),56320==(d&64512)?e.push(((c&1023)<<10)+(d&1023)+65536):(e.push(c),h--)):e.push(c);return e}function k(b){return g(b,function(b){var e="";65535<b&&(b-=65536,e+=A(b>>>10&1023|55296),b=56320|b&1023);return e+=A(b)}).join("")}function y(b,
|
6
|
+
e){return b+22+75*(26>b)-((0!=e)<<5)}function p(b,e,h){var a=0;b=h?q(b/700):b>>1;for(b+=q(b/e);455<b;a+=36)b=q(b/35);return q(a+36*b/(b+38))}function h(b){var e=[],h=b.length,a,c=0,d=128,t=72,w,x,g,f,m;w=b.lastIndexOf("-");0>w&&(w=0);for(x=0;x<w;++x)128<=b.charCodeAt(x)&&l("not-basic"),e.push(b.charCodeAt(x));for(w=0<w?w+1:0;w<h;){x=c;a=1;for(g=36;;g+=36){w>=h&&l("invalid-input");f=b.charCodeAt(w++);f=10>f-48?f-22:26>f-65?f-65:26>f-97?f-97:36;(36<=f||f>q((2147483647-c)/a))&&l("overflow");c+=f*a;m=
|
7
|
+
g<=t?1:g>=t+26?26:g-t;if(f<m)break;f=36-m;a>q(2147483647/f)&&l("overflow");a*=f}a=e.length+1;t=p(c-x,a,0==x);q(c/a)>2147483647-d&&l("overflow");d+=q(c/a);c%=a;e.splice(c++,0,d)}return k(e)}function r(e){var h,g,a,c,d,t,w,x,f,m=[],r,k,n;e=b(e);r=e.length;h=128;g=0;d=72;for(t=0;t<r;++t)f=e[t],128>f&&m.push(A(f));for((a=c=m.length)&&m.push("-");a<r;){w=2147483647;for(t=0;t<r;++t)f=e[t],f>=h&&f<w&&(w=f);k=a+1;w-h>q((2147483647-g)/k)&&l("overflow");g+=(w-h)*k;h=w;for(t=0;t<r;++t)if(f=e[t],f<h&&2147483647<
|
8
|
+
++g&&l("overflow"),f==h){x=g;for(w=36;;w+=36){f=w<=d?1:w>=d+26?26:w-d;if(x<f)break;n=x-f;x=36-f;m.push(A(y(f+n%x,0)));x=q(n/x)}m.push(A(y(x,0)));d=p(g,k,a==c);g=0;++a}++g;++h}return m.join("")}var B="object"==typeof exports&&exports,C="object"==typeof module&&module&&module.exports==B&&module,z="object"==typeof global&&global;if(z.global===z||z.window===z)f=z;var s,n=/^xn--/,e=/[^ -~]/,u=/\x2E|\u3002|\uFF0E|\uFF61/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)",
|
9
|
+
"invalid-input":"Invalid input"},q=Math.floor,A=String.fromCharCode,D;s={version:"1.2.3",ucs2:{decode:b,encode:k},decode:h,encode:r,toASCII:function(b){return m(b,function(b){return e.test(b)?"xn--"+r(b):b})},toUnicode:function(b){return m(b,function(b){return n.test(b)?h(b.slice(4).toLowerCase()):b})}};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return s});else if(B&&!B.nodeType)if(C)C.exports=s;else for(D in s)s.hasOwnProperty(D)&&(B[D]=s[D]);else f.punycode=
|
10
|
+
s})(this);
|
11
|
+
(function(f,l){"object"===typeof exports?module.exports=l():"function"===typeof define&&define.amd?define(l):f.SecondLevelDomains=l(f)})(this,function(f){var l=f&&f.SecondLevelDomains,g={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",
|
12
|
+
bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",
|
13
|
+
cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ","do":" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",
|
14
|
+
et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",
|
15
|
+
id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ","in":" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",
|
16
|
+
kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",
|
17
|
+
mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",
|
18
|
+
ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",
|
19
|
+
ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",
|
20
|
+
tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",
|
21
|
+
rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",
|
22
|
+
tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",
|
23
|
+
us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch "},has:function(f){var b=f.lastIndexOf(".");if(0>=b||b>=f.length-1)return!1;
|
24
|
+
var k=f.lastIndexOf(".",b-1);if(0>=k||k>=b-1)return!1;var l=g.list[f.slice(b+1)];return l?0<=l.indexOf(" "+f.slice(k+1,b)+" "):!1},is:function(f){var b=f.lastIndexOf(".");if(0>=b||b>=f.length-1||0<=f.lastIndexOf(".",b-1))return!1;var k=g.list[f.slice(b+1)];return k?0<=k.indexOf(" "+f.slice(0,b)+" "):!1},get:function(f){var b=f.lastIndexOf(".");if(0>=b||b>=f.length-1)return null;var k=f.lastIndexOf(".",b-1);if(0>=k||k>=b-1)return null;var l=g.list[f.slice(b+1)];return!l||0>l.indexOf(" "+f.slice(k+
|
25
|
+
1,b)+" ")?null:f.slice(k+1)},noConflict:function(){f.SecondLevelDomains===this&&(f.SecondLevelDomains=l);return this}};return g});
|
26
|
+
(function(f,l){"object"===typeof exports?module.exports=l(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"===typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],l):f.URI=l(f.punycode,f.IPv6,f.SecondLevelDomains,f)})(this,function(f,l,g,m){function b(a,c){if(!(this instanceof b))return new b(a,c);void 0===a&&(a="undefined"!==typeof location?location.href+"":"");this.href(a);return void 0!==c?this.absoluteTo(c):this}function k(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,
|
27
|
+
"\\$1")}function y(a){return void 0===a?"Undefined":String(Object.prototype.toString.call(a)).slice(8,-1)}function p(a){return"Array"===y(a)}function h(a,c){var d,b;if(p(c)){d=0;for(b=c.length;d<b;d++)if(!h(a,c[d]))return!1;return!0}var e=y(c);d=0;for(b=a.length;d<b;d++)if("RegExp"===e){if("string"===typeof a[d]&&a[d].match(c))return!0}else if(a[d]===c)return!0;return!1}function r(a,c){if(!p(a)||!p(c)||a.length!==c.length)return!1;a.sort();c.sort();for(var d=0,b=a.length;d<b;d++)if(a[d]!==c[d])return!1;
|
28
|
+
return!0}function B(a){return escape(a)}function C(a){return encodeURIComponent(a).replace(/[!'()*]/g,B).replace(/\*/g,"%2A")}function z(a){return function(c,d){if(void 0===c)return this._parts[a]||"";this._parts[a]=c||null;this.build(!d);return this}}function s(a,c){return function(d,b){if(void 0===d)return this._parts[a]||"";null!==d&&(d+="",d.charAt(0)===c&&(d=d.substring(1)));this._parts[a]=d;this.build(!b);return this}}var n=m&&m.URI;b.version="1.14.1";var e=b.prototype,u=Object.prototype.hasOwnProperty;
|
29
|
+
b._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:b.duplicateQueryParameters,escapeQuerySpace:b.escapeQuerySpace}};b.duplicateQueryParameters=!1;b.escapeQuerySpace=!0;b.protocol_expression=/^[a-z][a-z0-9.+-]*$/i;b.idn_expression=/[^a-z0-9\.-]/i;b.punycode_expression=/(xn--)/i;b.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;b.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;
|
30
|
+
b.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/ig;b.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/};b.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"};b.invalid_hostname_characters=
|
31
|
+
/[^a-zA-Z0-9\.-]/;b.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"};b.getDomAttribute=function(a){if(a&&a.nodeName){var c=a.nodeName.toLowerCase();return"input"===c&&"image"!==a.type?void 0:b.domAttributes[c]}};b.encode=C;b.decode=decodeURIComponent;b.iso8859=function(){b.encode=escape;b.decode=unescape};b.unicode=function(){b.encode=C;b.decode=
|
32
|
+
decodeURIComponent};b.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",",
|
33
|
+
"%3B":";","%3D":"="}}}};b.encodeQuery=function(a,c){var d=b.encode(a+"");void 0===c&&(c=b.escapeQuerySpace);return c?d.replace(/%20/g,"+"):d};b.decodeQuery=function(a,c){a+="";void 0===c&&(c=b.escapeQuerySpace);try{return b.decode(c?a.replace(/\+/g,"%20"):a)}catch(d){return a}};b.recodePath=function(a){a=(a+"").split("/");for(var c=0,d=a.length;c<d;c++)a[c]=b.encodePathSegment(b.decode(a[c]));return a.join("/")};b.decodePath=function(a){a=(a+"").split("/");for(var c=0,d=a.length;c<d;c++)a[c]=b.decodePathSegment(a[c]);
|
34
|
+
return a.join("/")};var v={encode:"encode",decode:"decode"},q,A=function(a,c){return function(d){try{return b[c](d+"").replace(b.characters[a][c].expression,function(d){return b.characters[a][c].map[d]})}catch(t){return d}}};for(q in v)b[q+"PathSegment"]=A("pathname",v[q]);b.encodeReserved=A("reserved","encode");b.parse=function(a,c){var d;c||(c={});d=a.indexOf("#");-1<d&&(c.fragment=a.substring(d+1)||null,a=a.substring(0,d));d=a.indexOf("?");-1<d&&(c.query=a.substring(d+1)||null,a=a.substring(0,
|
35
|
+
d));"//"===a.substring(0,2)?(c.protocol=null,a=a.substring(2),a=b.parseAuthority(a,c)):(d=a.indexOf(":"),-1<d&&(c.protocol=a.substring(0,d)||null,c.protocol&&!c.protocol.match(b.protocol_expression)?c.protocol=void 0:"//"===a.substring(d+1,d+3)?(a=a.substring(d+3),a=b.parseAuthority(a,c)):(a=a.substring(d+1),c.urn=!0)));c.path=a;return c};b.parseHost=function(a,c){var d=a.indexOf("/"),b;-1===d&&(d=a.length);"["===a.charAt(0)?(b=a.indexOf("]"),c.hostname=a.substring(1,b)||null,c.port=a.substring(b+
|
36
|
+
2,d)||null,"/"===c.port&&(c.port=null)):a.indexOf(":")!==a.lastIndexOf(":")?(c.hostname=a.substring(0,d)||null,c.port=null):(b=a.substring(0,d).split(":"),c.hostname=b[0]||null,c.port=b[1]||null);c.hostname&&"/"!==a.substring(d).charAt(0)&&(d++,a="/"+a);return a.substring(d)||"/"};b.parseAuthority=function(a,c){a=b.parseUserinfo(a,c);return b.parseHost(a,c)};b.parseUserinfo=function(a,c){var d=a.indexOf("/"),t=a.lastIndexOf("@",-1<d?d:a.length-1);-1<t&&(-1===d||t<d)?(d=a.substring(0,t).split(":"),
|
37
|
+
c.username=d[0]?b.decode(d[0]):null,d.shift(),c.password=d[0]?b.decode(d.join(":")):null,a=a.substring(t+1)):(c.username=null,c.password=null);return a};b.parseQuery=function(a,c){if(!a)return{};a=a.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"");if(!a)return{};for(var d={},t=a.split("&"),e=t.length,f,h,g=0;g<e;g++)f=t[g].split("="),h=b.decodeQuery(f.shift(),c),f=f.length?b.decodeQuery(f.join("="),c):null,u.call(d,h)?("string"===typeof d[h]&&(d[h]=[d[h]]),d[h].push(f)):d[h]=f;return d};b.build=function(a){var c=
|
38
|
+
"";a.protocol&&(c+=a.protocol+":");a.urn||!c&&!a.hostname||(c+="//");c+=b.buildAuthority(a)||"";"string"===typeof a.path&&("/"!==a.path.charAt(0)&&"string"===typeof a.hostname&&(c+="/"),c+=a.path);"string"===typeof a.query&&a.query&&(c+="?"+a.query);"string"===typeof a.fragment&&a.fragment&&(c+="#"+a.fragment);return c};b.buildHost=function(a){var c="";if(a.hostname)c=b.ip6_expression.test(a.hostname)?c+("["+a.hostname+"]"):c+a.hostname;else return"";a.port&&(c+=":"+a.port);return c};b.buildAuthority=
|
39
|
+
function(a){return b.buildUserinfo(a)+b.buildHost(a)};b.buildUserinfo=function(a){var c="";a.username&&(c+=b.encode(a.username),a.password&&(c+=":"+b.encode(a.password)),c+="@");return c};b.buildQuery=function(a,c,d){var t="",e,f,h,g;for(f in a)if(u.call(a,f)&&f)if(p(a[f]))for(e={},h=0,g=a[f].length;h<g;h++)void 0!==a[f][h]&&void 0===e[a[f][h]+""]&&(t+="&"+b.buildQueryParameter(f,a[f][h],d),!0!==c&&(e[a[f][h]+""]=!0));else void 0!==a[f]&&(t+="&"+b.buildQueryParameter(f,a[f],d));return t.substring(1)};
|
40
|
+
b.buildQueryParameter=function(a,c,d){return b.encodeQuery(a,d)+(null!==c?"="+b.encodeQuery(c,d):"")};b.addQuery=function(a,c,d){if("object"===typeof c)for(var e in c)u.call(c,e)&&b.addQuery(a,e,c[e]);else if("string"===typeof c)void 0===a[c]?a[c]=d:("string"===typeof a[c]&&(a[c]=[a[c]]),p(d)||(d=[d]),a[c]=(a[c]||[]).concat(d));else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");};b.removeQuery=function(a,c,d){var e;if(p(c))for(d=0,e=c.length;d<e;d++)a[c[d]]=
|
41
|
+
void 0;else if("object"===typeof c)for(e in c)u.call(c,e)&&b.removeQuery(a,e,c[e]);else if("string"===typeof c)if(void 0!==d)if(a[c]===d)a[c]=void 0;else{if(p(a[c])){e=a[c];var f={},h,g;if(p(d))for(h=0,g=d.length;h<g;h++)f[d[h]]=!0;else f[d]=!0;h=0;for(g=e.length;h<g;h++)void 0!==f[e[h]]&&(e.splice(h,1),g--,h--);a[c]=e}}else a[c]=void 0;else throw new TypeError("URI.addQuery() accepts an object, string as the first parameter");};b.hasQuery=function(a,c,d,e){if("object"===typeof c){for(var f in c)if(u.call(c,
|
42
|
+
f)&&!b.hasQuery(a,f,c[f]))return!1;return!0}if("string"!==typeof c)throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter");switch(y(d)){case "Undefined":return c in a;case "Boolean":return a=Boolean(p(a[c])?a[c].length:a[c]),d===a;case "Function":return!!d(a[c],c,a);case "Array":return p(a[c])?(e?h:r)(a[c],d):!1;case "RegExp":return p(a[c])?e?h(a[c],d):!1:Boolean(a[c]&&a[c].match(d));case "Number":d=String(d);case "String":return p(a[c])?e?h(a[c],d):!1:a[c]===d;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter");
|
43
|
+
}};b.commonPath=function(a,c){var d=Math.min(a.length,c.length),b;for(b=0;b<d;b++)if(a.charAt(b)!==c.charAt(b)){b--;break}if(1>b)return a.charAt(0)===c.charAt(0)&&"/"===a.charAt(0)?"/":"";if("/"!==a.charAt(b)||"/"!==c.charAt(b))b=a.substring(0,b).lastIndexOf("/");return a.substring(0,b+1)};b.withinString=function(a,c,d){d||(d={});var e=d.start||b.findUri.start,f=d.end||b.findUri.end,h=d.trim||b.findUri.trim,g=/[a-z0-9-]=["']?$/i;for(e.lastIndex=0;;){var r=e.exec(a);if(!r)break;r=r.index;if(d.ignoreHtml){var k=
|
44
|
+
a.slice(Math.max(r-3,0),r);if(k&&g.test(k))continue}var k=r+a.slice(r).search(f),m=a.slice(r,k).replace(h,"");d.ignore&&d.ignore.test(m)||(k=r+m.length,m=c(m,r,k,a),a=a.slice(0,r)+m+a.slice(k),e.lastIndex=r+m.length)}e.lastIndex=0;return a};b.ensureValidHostname=function(a){if(a.match(b.invalid_hostname_characters)){if(!f)throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available');if(f.toASCII(a).match(b.invalid_hostname_characters))throw new TypeError('Hostname "'+
|
45
|
+
a+'" contains characters other than [A-Z0-9.-]');}};b.noConflict=function(a){if(a)return a={URI:this.noConflict()},m.URITemplate&&"function"===typeof m.URITemplate.noConflict&&(a.URITemplate=m.URITemplate.noConflict()),m.IPv6&&"function"===typeof m.IPv6.noConflict&&(a.IPv6=m.IPv6.noConflict()),m.SecondLevelDomains&&"function"===typeof m.SecondLevelDomains.noConflict&&(a.SecondLevelDomains=m.SecondLevelDomains.noConflict()),a;m.URI===this&&(m.URI=n);return this};e.build=function(a){if(!0===a)this._deferred_build=
|
46
|
+
!0;else if(void 0===a||this._deferred_build)this._string=b.build(this._parts),this._deferred_build=!1;return this};e.clone=function(){return new b(this)};e.valueOf=e.toString=function(){return this.build(!1)._string};e.protocol=z("protocol");e.username=z("username");e.password=z("password");e.hostname=z("hostname");e.port=z("port");e.query=s("query","?");e.fragment=s("fragment","#");e.search=function(a,c){var d=this.query(a,c);return"string"===typeof d&&d.length?"?"+d:d};e.hash=function(a,c){var d=
|
47
|
+
this.fragment(a,c);return"string"===typeof d&&d.length?"#"+d:d};e.pathname=function(a,c){if(void 0===a||!0===a){var d=this._parts.path||(this._parts.hostname?"/":"");return a?b.decodePath(d):d}this._parts.path=a?b.recodePath(a):"/";this.build(!c);return this};e.path=e.pathname;e.href=function(a,c){var d;if(void 0===a)return this.toString();this._string="";this._parts=b._parts();var e=a instanceof b,f="object"===typeof a&&(a.hostname||a.path||a.pathname);a.nodeName&&(f=b.getDomAttribute(a),a=a[f]||
|
48
|
+
"",f=!1);!e&&f&&void 0!==a.pathname&&(a=a.toString());if("string"===typeof a||a instanceof String)this._parts=b.parse(String(a),this._parts);else if(e||f)for(d in e=e?a._parts:a,e)u.call(this._parts,d)&&(this._parts[d]=e[d]);else throw new TypeError("invalid input");this.build(!c);return this};e.is=function(a){var c=!1,d=!1,e=!1,f=!1,h=!1,r=!1,k=!1,m=!this._parts.urn;this._parts.hostname&&(m=!1,d=b.ip4_expression.test(this._parts.hostname),e=b.ip6_expression.test(this._parts.hostname),c=d||e,h=(f=
|
49
|
+
!c)&&g&&g.has(this._parts.hostname),r=f&&b.idn_expression.test(this._parts.hostname),k=f&&b.punycode_expression.test(this._parts.hostname));switch(a.toLowerCase()){case "relative":return m;case "absolute":return!m;case "domain":case "name":return f;case "sld":return h;case "ip":return c;case "ip4":case "ipv4":case "inet4":return d;case "ip6":case "ipv6":case "inet6":return e;case "idn":return r;case "url":return!this._parts.urn;case "urn":return!!this._parts.urn;case "punycode":return k}return null};
|
50
|
+
var D=e.protocol,E=e.port,F=e.hostname;e.protocol=function(a,c){if(void 0!==a&&a&&(a=a.replace(/:(\/\/)?$/,""),!a.match(b.protocol_expression)))throw new TypeError('Protocol "'+a+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return D.call(this,a,c)};e.scheme=e.protocol;e.port=function(a,c){if(this._parts.urn)return void 0===a?"":this;if(void 0!==a&&(0===a&&(a=null),a&&(a+="",":"===a.charAt(0)&&(a=a.substring(1)),a.match(/[^0-9]/))))throw new TypeError('Port "'+a+'" contains characters other than [0-9]');
|
51
|
+
return E.call(this,a,c)};e.hostname=function(a,c){if(this._parts.urn)return void 0===a?"":this;if(void 0!==a){var d={};b.parseHost(a,d);a=d.hostname}return F.call(this,a,c)};e.host=function(a,c){if(this._parts.urn)return void 0===a?"":this;if(void 0===a)return this._parts.hostname?b.buildHost(this._parts):"";b.parseHost(a,this._parts);this.build(!c);return this};e.authority=function(a,c){if(this._parts.urn)return void 0===a?"":this;if(void 0===a)return this._parts.hostname?b.buildAuthority(this._parts):
|
52
|
+
"";b.parseAuthority(a,this._parts);this.build(!c);return this};e.userinfo=function(a,c){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){if(!this._parts.username)return"";var d=b.buildUserinfo(this._parts);return d.substring(0,d.length-1)}"@"!==a[a.length-1]&&(a+="@");b.parseUserinfo(a,this._parts);this.build(!c);return this};e.resource=function(a,c){var d;if(void 0===a)return this.path()+this.search()+this.hash();d=b.parse(a);this._parts.path=d.path;this._parts.query=d.query;this._parts.fragment=
|
53
|
+
d.fragment;this.build(!c);return this};e.subdomain=function(a,c){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var d=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,d)||""}d=this._parts.hostname.length-this.domain().length;d=this._parts.hostname.substring(0,d);d=new RegExp("^"+k(d));a&&"."!==a.charAt(a.length-1)&&(a+=".");a&&b.ensureValidHostname(a);this._parts.hostname=this._parts.hostname.replace(d,
|
54
|
+
a);this.build(!c);return this};e.domain=function(a,c){if(this._parts.urn)return void 0===a?"":this;"boolean"===typeof a&&(c=a,a=void 0);if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var d=this._parts.hostname.match(/\./g);if(d&&2>d.length)return this._parts.hostname;d=this._parts.hostname.length-this.tld(c).length-1;d=this._parts.hostname.lastIndexOf(".",d-1)+1;return this._parts.hostname.substring(d)||""}if(!a)throw new TypeError("cannot set domain empty");b.ensureValidHostname(a);
|
55
|
+
!this._parts.hostname||this.is("IP")?this._parts.hostname=a:(d=new RegExp(k(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(d,a));this.build(!c);return this};e.tld=function(a,c){if(this._parts.urn)return void 0===a?"":this;"boolean"===typeof a&&(c=a,a=void 0);if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var d=this._parts.hostname.lastIndexOf("."),d=this._parts.hostname.substring(d+1);return!0!==c&&g&&g.list[d.toLowerCase()]?g.get(this._parts.hostname)||d:d}if(a)if(a.match(/[^a-zA-Z0-9-]/))if(g&&
|
56
|
+
g.is(a))d=new RegExp(k(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(d,a);else throw new TypeError('TLD "'+a+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");d=new RegExp(k(this.tld())+"$");this._parts.hostname=this._parts.hostname.replace(d,a)}else throw new TypeError("cannot set TLD empty");this.build(!c);return this};e.directory=function(a,c){if(this._parts.urn)return void 0===
|
57
|
+
a?"":this;if(void 0===a||!0===a){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var d=this._parts.path.length-this.filename().length-1,d=this._parts.path.substring(0,d)||(this._parts.hostname?"/":"");return a?b.decodePath(d):d}d=this._parts.path.length-this.filename().length;d=this._parts.path.substring(0,d);d=new RegExp("^"+k(d));this.is("relative")||(a||(a="/"),"/"!==a.charAt(0)&&(a="/"+a));a&&"/"!==a.charAt(a.length-1)&&(a+="/");a=b.recodePath(a);this._parts.path=
|
58
|
+
this._parts.path.replace(d,a);this.build(!c);return this};e.filename=function(a,c){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path||"/"===this._parts.path)return"";var d=this._parts.path.lastIndexOf("/"),d=this._parts.path.substring(d+1);return a?b.decodePathSegment(d):d}d=!1;"/"===a.charAt(0)&&(a=a.substring(1));a.match(/\.?\//)&&(d=!0);var e=new RegExp(k(this.filename())+"$");a=b.recodePath(a);this._parts.path=this._parts.path.replace(e,a);d?this.normalizePath(c):
|
59
|
+
this.build(!c);return this};e.suffix=function(a,c){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path||"/"===this._parts.path)return"";var d=this.filename(),e=d.lastIndexOf(".");if(-1===e)return"";d=d.substring(e+1);d=/^[a-z0-9%]+$/i.test(d)?d:"";return a?b.decodePathSegment(d):d}"."===a.charAt(0)&&(a=a.substring(1));if(d=this.suffix())e=a?new RegExp(k(d)+"$"):new RegExp(k("."+d)+"$");else{if(!a)return this;this._parts.path+="."+b.recodePath(a)}e&&(a=b.recodePath(a),
|
60
|
+
this._parts.path=this._parts.path.replace(e,a));this.build(!c);return this};e.segment=function(a,c,d){var b=this._parts.urn?":":"/",e=this.path(),f="/"===e.substring(0,1),e=e.split(b);void 0!==a&&"number"!==typeof a&&(d=c,c=a,a=void 0);if(void 0!==a&&"number"!==typeof a)throw Error('Bad segment "'+a+'", must be 0-based integer');f&&e.shift();0>a&&(a=Math.max(e.length+a,0));if(void 0===c)return void 0===a?e:e[a];if(null===a||void 0===e[a])if(p(c)){e=[];a=0;for(var h=c.length;a<h;a++)if(c[a].length||
|
61
|
+
e.length&&e[e.length-1].length)e.length&&!e[e.length-1].length&&e.pop(),e.push(c[a])}else{if(c||"string"===typeof c)""===e[e.length-1]?e[e.length-1]=c:e.push(c)}else c?e[a]=c:e.splice(a,1);f&&e.unshift("");return this.path(e.join(b),d)};e.segmentCoded=function(a,c,d){var e,f;"number"!==typeof a&&(d=c,c=a,a=void 0);if(void 0===c){a=this.segment(a,c,d);if(p(a))for(e=0,f=a.length;e<f;e++)a[e]=b.decode(a[e]);else a=void 0!==a?b.decode(a):void 0;return a}if(p(c))for(e=0,f=c.length;e<f;e++)c[e]=b.decode(c[e]);
|
62
|
+
else c="string"===typeof c||c instanceof String?b.encode(c):c;return this.segment(a,c,d)};var G=e.query;e.query=function(a,c){if(!0===a)return b.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"===typeof a){var d=b.parseQuery(this._parts.query,this._parts.escapeQuerySpace),e=a.call(this,d);this._parts.query=b.buildQuery(e||d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);this.build(!c);return this}return void 0!==a&&"string"!==typeof a?(this._parts.query=
|
63
|
+
b.buildQuery(a,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!c),this):G.call(this,a,c)};e.setQuery=function(a,c,d){var e=b.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"===typeof a||a instanceof String)e[a]=void 0!==c?c:null;else if("object"===typeof a)for(var f in a)u.call(a,f)&&(e[f]=a[f]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");this._parts.query=b.buildQuery(e,this._parts.duplicateQueryParameters,
|
64
|
+
this._parts.escapeQuerySpace);"string"!==typeof a&&(d=c);this.build(!d);return this};e.addQuery=function(a,c,d){var e=b.parseQuery(this._parts.query,this._parts.escapeQuerySpace);b.addQuery(e,a,void 0===c?null:c);this._parts.query=b.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(d=c);this.build(!d);return this};e.removeQuery=function(a,c,d){var e=b.parseQuery(this._parts.query,this._parts.escapeQuerySpace);b.removeQuery(e,a,c);this._parts.query=
|
65
|
+
b.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(d=c);this.build(!d);return this};e.hasQuery=function(a,c,d){var e=b.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return b.hasQuery(e,a,c,d)};e.setSearch=e.setQuery;e.addSearch=e.addQuery;e.removeSearch=e.removeQuery;e.hasSearch=e.hasQuery;e.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()};
|
66
|
+
e.normalizeProtocol=function(a){"string"===typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!a));return this};e.normalizeHostname=function(a){this._parts.hostname&&(this.is("IDN")&&f?this._parts.hostname=f.toASCII(this._parts.hostname):this.is("IPv6")&&l&&(this._parts.hostname=l.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!a));return this};e.normalizePort=function(a){"string"===typeof this._parts.protocol&&
|
67
|
+
this._parts.port===b.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!a));return this};e.normalizePath=function(a){if(this._parts.urn||!this._parts.path||"/"===this._parts.path)return this;var c,d=this._parts.path,e="",f,h;"/"!==d.charAt(0)&&(c=!0,d="/"+d);d=d.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/");c&&(e=d.substring(1).match(/^(\.\.\/)+/)||"")&&(e=e[0]);for(;;){f=d.indexOf("/..");if(-1===f)break;else if(0===f){d=d.substring(3);continue}h=d.substring(0,f).lastIndexOf("/");
|
68
|
+
-1===h&&(h=f);d=d.substring(0,h)+d.substring(f+3)}c&&this.is("relative")&&(d=e+d.substring(1));d=b.recodePath(d);this._parts.path=d;this.build(!a);return this};e.normalizePathname=e.normalizePath;e.normalizeQuery=function(a){"string"===typeof this._parts.query&&(this._parts.query.length?this.query(b.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!a));return this};e.normalizeFragment=function(a){this._parts.fragment||(this._parts.fragment=null,this.build(!a));
|
69
|
+
return this};e.normalizeSearch=e.normalizeQuery;e.normalizeHash=e.normalizeFragment;e.iso8859=function(){var a=b.encode,c=b.decode;b.encode=escape;b.decode=decodeURIComponent;this.normalize();b.encode=a;b.decode=c;return this};e.unicode=function(){var a=b.encode,c=b.decode;b.encode=C;b.decode=unescape;this.normalize();b.encode=a;b.decode=c;return this};e.readable=function(){var a=this.clone();a.username("").password("").normalize();var c="";a._parts.protocol&&(c+=a._parts.protocol+"://");a._parts.hostname&&
|
70
|
+
(a.is("punycode")&&f?(c+=f.toUnicode(a._parts.hostname),a._parts.port&&(c+=":"+a._parts.port)):c+=a.host());a._parts.hostname&&a._parts.path&&"/"!==a._parts.path.charAt(0)&&(c+="/");c+=a.path(!0);if(a._parts.query){for(var d="",e=0,h=a._parts.query.split("&"),g=h.length;e<g;e++){var r=(h[e]||"").split("="),d=d+("&"+b.decodeQuery(r[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"));void 0!==r[1]&&(d+="="+b.decodeQuery(r[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}c+="?"+d.substring(1)}return c+=
|
71
|
+
b.decodeQuery(a.hash(),!0)};e.absoluteTo=function(a){var c=this.clone(),d=["protocol","username","password","hostname","port"],e,f;if(this._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");a instanceof b||(a=new b(a));c._parts.protocol||(c._parts.protocol=a._parts.protocol);if(this._parts.hostname)return c;for(e=0;f=d[e];e++)c._parts[f]=a._parts[f];c._parts.path?".."===c._parts.path.substring(-2)&&(c._parts.path+="/"):(c._parts.path=a._parts.path,c._parts.query||
|
72
|
+
(c._parts.query=a._parts.query));"/"!==c.path().charAt(0)&&(a=a.directory(),c._parts.path=(a?a+"/":"")+c._parts.path,c.normalizePath());c.build();return c};e.relativeTo=function(a){var c=this.clone().normalize(),d,e,f,h;if(c._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");a=(new b(a)).normalize();d=c._parts;e=a._parts;f=c.path();h=a.path();if("/"!==f.charAt(0))throw Error("URI is already relative");if("/"!==h.charAt(0))throw Error("Cannot calculate a URI relative to another relative URI");
|
73
|
+
d.protocol===e.protocol&&(d.protocol=null);if(d.username===e.username&&d.password===e.password&&null===d.protocol&&null===d.username&&null===d.password&&d.hostname===e.hostname&&d.port===e.port)d.hostname=null,d.port=null;else return c.build();if(f===h)return d.path="",c.build();a=b.commonPath(c.path(),a.path());if(!a)return c.build();e=e.path.substring(a.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");d.path=e+d.path.substring(a.length);return c.build()};e.equals=function(a){var c=this.clone();
|
74
|
+
a=new b(a);var d={},e={},f={},h;c.normalize();a.normalize();if(c.toString()===a.toString())return!0;d=c.query();e=a.query();c.query("");a.query("");if(c.toString()!==a.toString()||d.length!==e.length)return!1;d=b.parseQuery(d,this._parts.escapeQuerySpace);e=b.parseQuery(e,this._parts.escapeQuerySpace);for(h in d)if(u.call(d,h)){if(!p(d[h])){if(d[h]!==e[h])return!1}else if(!r(d[h],e[h]))return!1;f[h]=!0}for(h in e)if(u.call(e,h)&&!f[h])return!1;return!0};e.duplicateQueryParameters=function(a){this._parts.duplicateQueryParameters=
|
75
|
+
!!a;return this};e.escapeQuerySpace=function(a){this._parts.escapeQuerySpace=!!a;return this};return b});
|
76
|
+
(function(f,l){"object"===typeof exports?module.exports=l(require("./URI")):"function"===typeof define&&define.amd?define(["./URI"],l):f.URITemplate=l(f.URI,f)})(this,function(f,l){function g(b){if(g._cache[b])return g._cache[b];if(!(this instanceof g))return new g(b);this.expression=b;g._cache[b]=this;return this}function m(b){this.data=b;this.cache={}}var b=l&&l.URITemplate,k=Object.prototype.hasOwnProperty,y=g.prototype,p={"":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encode"},
|
77
|
+
"+":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},"#":{prefix:"#",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},".":{prefix:".",separator:".",named:!1,empty_name_separator:!1,encode:"encode"},"/":{prefix:"/",separator:"/",named:!1,empty_name_separator:!1,encode:"encode"},";":{prefix:";",separator:";",named:!0,empty_name_separator:!1,encode:"encode"},"?":{prefix:"?",separator:"&",named:!0,empty_name_separator:!0,encode:"encode"},"&":{prefix:"&",
|
78
|
+
separator:"&",named:!0,empty_name_separator:!0,encode:"encode"}};g._cache={};g.EXPRESSION_PATTERN=/\{([^a-zA-Z0-9%_]?)([^\}]+)(\}|$)/g;g.VARIABLE_PATTERN=/^([^*:]+)((\*)|:(\d+))?$/;g.VARIABLE_NAME_PATTERN=/[^a-zA-Z0-9%_]/;g.expand=function(b,f){var k=p[b.operator],m=k.named?"Named":"Unnamed",l=b.variables,s=[],n,e,u;for(u=0;e=l[u];u++)n=f.get(e.name),n.val.length?s.push(g["expand"+m](n,k,e.explode,e.explode&&k.separator||",",e.maxlength,e.name)):n.type&&s.push("");return s.length?k.prefix+s.join(k.separator):
|
79
|
+
""};g.expandNamed=function(b,g,k,m,l,s){var n="",e=g.encode;g=g.empty_name_separator;var u=!b[e].length,v=2===b.type?"":f[e](s),q,p,y;p=0;for(y=b.val.length;p<y;p++)l?(q=f[e](b.val[p][1].substring(0,l)),2===b.type&&(v=f[e](b.val[p][0].substring(0,l)))):u?(q=f[e](b.val[p][1]),2===b.type?(v=f[e](b.val[p][0]),b[e].push([v,q])):b[e].push([void 0,q])):(q=b[e][p][1],2===b.type&&(v=b[e][p][0])),n&&(n+=m),k?n+=v+(g||q?"=":"")+q:(p||(n+=f[e](s)+(g||q?"=":"")),2===b.type&&(n+=v+","),n+=q);return n};g.expandUnnamed=
|
80
|
+
function(b,g,k,m,l){var s="",n=g.encode;g=g.empty_name_separator;var e=!b[n].length,p,v,q,y;q=0;for(y=b.val.length;q<y;q++)l?v=f[n](b.val[q][1].substring(0,l)):e?(v=f[n](b.val[q][1]),b[n].push([2===b.type?f[n](b.val[q][0]):void 0,v])):v=b[n][q][1],s&&(s+=m),2===b.type&&(p=l?f[n](b.val[q][0].substring(0,l)):b[n][q][0],s+=p,s=k?s+(g||v?"=":""):s+","),s+=v;return s};g.noConflict=function(){l.URITemplate===g&&(l.URITemplate=b);return g};y.expand=function(b){var f="";this.parts&&this.parts.length||this.parse();
|
81
|
+
b instanceof m||(b=new m(b));for(var k=0,l=this.parts.length;k<l;k++)f+="string"===typeof this.parts[k]?this.parts[k]:g.expand(this.parts[k],b);return f};y.parse=function(){var b=this.expression,f=g.EXPRESSION_PATTERN,k=g.VARIABLE_PATTERN,m=g.VARIABLE_NAME_PATTERN,l=[],s=0,n,e,u;for(f.lastIndex=0;;){e=f.exec(b);if(null===e){l.push(b.substring(s));break}else l.push(b.substring(s,e.index)),s=e.index+e[0].length;if(!p[e[1]])throw Error('Unknown Operator "'+e[1]+'" in "'+e[0]+'"');if(!e[3])throw Error('Unclosed Expression "'+
|
82
|
+
e[0]+'"');n=e[2].split(",");for(var v=0,q=n.length;v<q;v++){u=n[v].match(k);if(null===u)throw Error('Invalid Variable "'+n[v]+'" in "'+e[0]+'"');if(u[1].match(m))throw Error('Invalid Variable Name "'+u[1]+'" in "'+e[0]+'"');n[v]={name:u[1],explode:!!u[3],maxlength:u[4]&&parseInt(u[4],10)}}if(!n.length)throw Error('Expression Missing Variable(s) "'+e[0]+'"');l.push({expression:e[0],operator:e[1],variables:n})}l.length||l.push(b);this.parts=l;return this};m.prototype.get=function(b){var f=this.data,
|
83
|
+
g={type:0,val:[],encode:[],encodeReserved:[]},l;if(void 0!==this.cache[b])return this.cache[b];this.cache[b]=g;f="[object Function]"===String(Object.prototype.toString.call(f))?f(b):"[object Function]"===String(Object.prototype.toString.call(f[b]))?f[b](b):f[b];if(void 0!==f&&null!==f)if("[object Array]"===String(Object.prototype.toString.call(f))){l=0;for(b=f.length;l<b;l++)void 0!==f[l]&&null!==f[l]&&g.val.push([void 0,String(f[l])]);g.val.length&&(g.type=3)}else if("[object Object]"===String(Object.prototype.toString.call(f))){for(l in f)k.call(f,
|
84
|
+
l)&&void 0!==f[l]&&null!==f[l]&&g.val.push([l,String(f[l])]);g.val.length&&(g.type=2)}else g.type=1,g.val.push([void 0,String(f)]);return g};f.expand=function(b,k){var l=(new g(b)).expand(k);return new f(l)};return g});
|